Skip to content

Commit

Permalink
Merge branch 'main' into feat!-CE-718---Allow-users-to-remove-Review-…
Browse files Browse the repository at this point in the history
…Complete-from-file-review
  • Loading branch information
barrfalk authored May 28, 2024
2 parents 8b16510 + 931ca62 commit e24722a
Show file tree
Hide file tree
Showing 21 changed files with 1,898 additions and 87 deletions.
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

0 comments on commit e24722a

Please sign in to comment.