Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: CE-358 - Animal outcome CRUD #54

Merged
merged 24 commits into from
May 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
9172383
feat: added sql scripts for new animal outcome codes
Apr 24, 2024
45418bb
feat: added wildlife table
Apr 24, 2024
655caa6
feat: database tables generated
Apr 24, 2024
152a934
feat: added create animal outcome graph types
Apr 25, 2024
f8c43fd
feat: creating initial create mutation
Apr 25, 2024
f405cc0
Merge branch 'main' into feature/CE-358
marqueone-ps Apr 29, 2024
15d73cc
Merge branch 'main' into feature/CE-358
marqueone-ps May 3, 2024
6b46974
feat: ability to create wildlife outcomes added
May 4, 2024
a33d791
Merge branch 'main' into feature/CE-358
marqueone-ps May 6, 2024
6160f83
feat: updates to the backend to return animal outcomes
May 8, 2024
4d831e1
feat: delete wildlife enabled, updated tables
May 9, 2024
b459fdb
feat: added update mutation
May 10, 2024
b3db558
feat: edit wildlife functionality added
May 15, 2024
068fd6c
Merge branch 'main' into feature/CE-358
afwilcox May 15, 2024
51a07e3
Merge commit.
afwilcox May 15, 2024
9bc0cc0
Merge branch 'feature/CE-358' of https://github.com/bcgov/nr-complian…
afwilcox May 15, 2024
6eccce7
one more merge...
afwilcox May 15, 2024
2f30897
fix: added an order property to the wildlife outcome
May 22, 2024
68b5f96
fix: ear tag ordering problem
May 22, 2024
7c41869
Merge branch 'main' into feature/CE-358
marqueone-ps May 23, 2024
33d97db
chore: prisma updates
May 23, 2024
a566485
Merge branch 'main' into feature/CE-358
barrfalk May 24, 2024
d56b9ad
fix: fly script renamed
May 24, 2024
20ed5e2
fix: updated update behaviour
May 27, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
270 changes: 188 additions & 82 deletions backend/prisma/schema.prisma

Large diffs are not rendered by default.

22 changes: 22 additions & 0 deletions backend/src/case_file/case_file.resolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ import { CreateSupplementalNoteInput } from "./dto/supplemental-note/create-supp
import { UpdateSupplementalNoteInput } from "./dto/supplemental-note/update-supplemental-note.input";
import { DeleteSupplementalNoteInput } from "./dto/supplemental-note/delete-supplemental-note.input";
import { DeleteEquipmentInput } from "./dto/equipment/delete-equipment.input";
import { CreateWildlifeInput } from "./dto/wildlife/create-wildlife-input";
import { DeleteWildlifeInput } from "./dto/wildlife/delete-wildlife-input";
import { UpdateWildlifeInput } from "./dto/wildlife/update-wildlife-input";

@UseGuards(JwtRoleGuard)
@Resolver("CaseFile")
Expand Down Expand Up @@ -100,4 +103,23 @@ export class CaseFileResolver {
deleteNote(@Args("input") input: DeleteSupplementalNoteInput) {
return this.caseFileService.deleteNote(input);
}

@Mutation("createWildlife")
@Roles(Role.COS_OFFICER)
createWildlife(@Args("input") input: CreateWildlifeInput) {
return this.caseFileService.createWildlife(input);
}

@Mutation("updateWildlife")
@Roles(Role.COS_OFFICER)
updateWildlife(@Args("input") input: UpdateWildlifeInput) {
return this.caseFileService.updateWildlife(input);
}

@Mutation("deleteWildlife")
@Roles(Role.COS_OFFICER)
deleteWildlife(@Args("input") input: DeleteWildlifeInput) {
return this.caseFileService.deleteWildlife(input);
}
}
//moo
Loading
Loading