Skip to content
Snippets Groups Projects
Commit 98efe68e authored by Marlène SIMONDANT's avatar Marlène SIMONDANT
Browse files

DTO + schema

parent 45d08822
No related branches found
No related tags found
1 merge request!479Draft: feat(dashboard) : create dashboard !
Pipeline #123894 passed
......@@ -140,4 +140,9 @@ export class OrientationDto {
@IsNotEmpty()
@IsEnum(['pending', 'acknowledged', 'completed', 'uncompleted', 'expired'])
status: 'pending' | 'acknowledged' | 'completed' | 'uncompleted' | 'expired';
@ApiProperty({ enum: ['defineRdv', 'rdvTaken', 'visit', 'rdvDone'] })
@IsNotEmpty()
@IsEnum(['defineRdv', 'rdvTaken', 'visit', 'rdvDone'])
action: 'defineRdv' | 'rdvTaken' | 'visit' | 'rdvDone';
}
......@@ -104,6 +104,13 @@ export class Orientation {
default: 'pending',
})
status: string;
@Prop({
required: true,
enum: ['defineRdv', 'rdvTaken', 'visit', 'rdvDone'],
default: '',
})
action: string;
}
export const OrientationSchema = SchemaFactory.createForClass(Orientation);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment