-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: finish off in-person training, revoking it and infractions
- Loading branch information
Showing
10 changed files
with
411 additions
and
232 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,20 @@ | ||
import { | ||
CreateUserSchema, | ||
UpdateUserSchema, | ||
} from "@dbschema/edgedb-zod/modules/users"; | ||
import { CreateInfractionSchema, CreateUserSchema, UpdateUserSchema } from "@dbschema/edgedb-zod/modules/users"; | ||
import { createZodDto } from "nestjs-zod"; | ||
import { z } from "zod"; | ||
|
||
export class CreateUserDto extends createZodDto(CreateUserSchema) {} | ||
export class UpdateUserDto extends createZodDto(UpdateUserSchema) {} | ||
export class CreateInfractionDto extends createZodDto(CreateInfractionSchema) {} | ||
|
||
export const AddInPersonTrainingSchema = z.object({ | ||
rep_id: z.string(), | ||
created_at: z.date(), | ||
}); | ||
|
||
export class AddInPersonTrainingDto extends createZodDto(AddInPersonTrainingSchema) {} | ||
|
||
export const RevokeTrainingSchema = z.object({ | ||
reason: z.string(), | ||
}); | ||
|
||
export class RevokeTrainingDto extends createZodDto(RevokeTrainingSchema) {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.