Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Server
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
web-et-numerique
Factory
Resin
Server
Commits
98efe68e
Commit
98efe68e
authored
7 hours ago
by
Marlène SIMONDANT
Browse files
Options
Downloads
Patches
Plain Diff
DTO + schema
parent
45d08822
No related branches found
No related tags found
1 merge request
!479
Draft: feat(dashboard) : create dashboard !
Pipeline
#123894
passed
7 hours ago
Stage: test
Stage: build
Stage: deploy
Stage: quality
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/orientation/dto/orientation.dto.ts
+5
-0
5 additions, 0 deletions
src/orientation/dto/orientation.dto.ts
src/orientation/orientation.schema.ts
+7
-0
7 additions, 0 deletions
src/orientation/orientation.schema.ts
with
12 additions
and
0 deletions
src/orientation/dto/orientation.dto.ts
+
5
−
0
View file @
98efe68e
...
...
@@ -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
'
;
}
This diff is collapsed.
Click to expand it.
src/orientation/orientation.schema.ts
+
7
−
0
View file @
98efe68e
...
...
@@ -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
);
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment