Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
hospital-service
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Roshan Suvarnkar
hospital-service
Merge requests
!6
added DR update API
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Open
added DR update API
updateDRAPI
into
develop-beta
Overview
9
Commits
12
Pipelines
0
Changes
13
Open
added DR update API
Prathviraj Suryakant Thokal
requested to merge
updateDRAPI
into
develop-beta
3 months ago
Overview
9
Commits
12
Pipelines
0
Changes
13
0
0
Merge request reports
Compare
develop-beta
version 9
8c507ab5
3 months ago
version 8
92b76668
3 months ago
version 7
d27bc12c
3 months ago
version 6
b7980027
3 months ago
version 5
19537d5a
3 months ago
version 4
6c9c0185
3 months ago
version 3
29012cae
3 months ago
version 2
6884657e
3 months ago
version 1
7c5128b0
3 months ago
develop-beta (base)
and
version 8
latest version
3f3aa79b
12 commits,
3 months ago
version 9
8c507ab5
11 commits,
3 months ago
version 8
92b76668
10 commits,
3 months ago
version 7
d27bc12c
9 commits,
3 months ago
version 6
b7980027
6 commits,
3 months ago
version 5
19537d5a
5 commits,
3 months ago
version 4
6c9c0185
4 commits,
3 months ago
version 3
29012cae
3 commits,
3 months ago
version 2
6884657e
2 commits,
3 months ago
version 1
7c5128b0
1 commit,
3 months ago
13 files
+
669
−
8
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
13
src/doctors/dto/update-doctors-request.dto.ts
0 → 100644
+
155
−
0
View file @ 3f3aa79b
Edit in single-file editor
Open in Web IDE
/**
@file <file name>
@description <description>
@author <Your Name>
@created <YYYY-MM-DD>
**/
import
{
IsString
,
IsEmail
,
IsOptional
,
IsNumber
,
IsUUID
,
IsNotEmpty
,
}
from
'
class-validator
'
;
import
{
ApiProperty
}
from
'
@nestjs/swagger
'
;
import
{
Type
}
from
'
class-transformer
'
;
/**
*
*/
export
class
UpdateDoctorsRequestDto
{
@
IsUUID
()
@
IsNotEmpty
({
message
:
'
Doctor ID must be a valid UUID
'
})
@
ApiProperty
({
example
:
'
uuid
'
,
description
:
'
Doctor ID
'
})
doctorId
:
string
;
@
IsUUID
()
@
IsNotEmpty
({
message
:
'
User ID must be a valid UUID
'
})
@
ApiProperty
({
example
:
'
2733a326-f4e2-4005-ad18-3b8f67a7613c
'
,
description
:
'
User ID
'
,
})
userId
:
string
;
@
IsOptional
()
@
IsString
({
message
:
'
Doctor name must be a string
'
})
@
ApiProperty
({
example
:
'
Dr. Prathviraj Thokal
'
,
description
:
'
Name of the doctor
'
,
})
doctorName
?:
string
;
@
IsOptional
()
@
IsString
({
message
:
'
Doctor registration number must be a string
'
})
@
ApiProperty
({
example
:
'
DRREG-112
'
,
description
:
'
Registration number of the doctor
'
,
})
doctorRegNo
?:
string
;
@
IsOptional
()
@
IsUUID
()
@
IsNotEmpty
({
message
:
'
Doctor speciality ID must be a valid UUID
'
})
@
ApiProperty
({
example
:
'
2733a326-f4e2-4005-ad18-3b8f67a7613c
'
,
description
:
'
Doctor speciality ID
'
,
})
doctorSpecialityId
?:
string
;
@
IsOptional
()
@
IsUUID
()
@
IsNotEmpty
({
message
:
'
Doctor qualification ID must be a valid UUID
'
})
@
ApiProperty
({
example
:
'
2733a326-f4e2-4005-ad18-3b8f67a7613c
'
,
description
:
'
Doctor qualification ID
'
,
})
doctorQualificationId
?:
string
;
@
IsOptional
()
@
IsString
({
message
:
'
Contact number must be a string
'
})
@
ApiProperty
({
example
:
'
7208806389
'
,
description
:
'
Contact number of the doctor
'
,
})
contactNo
?:
string
;
@
IsOptional
()
@
IsString
({
message
:
'
HPR code must be a string
'
})
@
ApiProperty
({
example
:
'
HPR-112
'
,
description
:
'
HPR code of the doctor
'
,
})
hprCode
?:
string
;
@
IsOptional
()
@
IsEmail
({},
{
message
:
'
Invalid email format
'
})
@
ApiProperty
({
example
:
'
niveus@example.com
'
,
description
:
'
Email of the doctor
'
,
})
emailId
?:
string
;
@
IsOptional
()
@
IsString
({
message
:
'
Pan number must be a string
'
})
@
ApiProperty
({
example
:
'
HSLDY8769P
'
,
description
:
'
Pan number of the doctor
'
,
})
panNo
?:
string
;
@
IsOptional
()
@
IsString
({
message
:
'
Address must be a string
'
})
@
ApiProperty
({
example
:
'
Mumbai
'
,
description
:
'
Address of the doctor
'
,
})
address
?:
string
;
@
IsOptional
()
@
IsUUID
()
@
IsNotEmpty
({
message
:
'
Pincode ID must be a valid UUID
'
})
@
ApiProperty
({
example
:
'
2733a326-f4e2-4005-ad18-3b8f67a7613c
'
,
description
:
'
Pincode ID
'
,
})
pincode
?:
string
;
@
IsOptional
()
@
Type
(()
=>
Number
)
@
IsNumber
()
@
ApiProperty
({
example
:
76.22222
,
description
:
'
Latitude
'
,
})
latitude
?:
number
;
@
IsOptional
()
@
Type
(()
=>
Number
)
@
IsNumber
()
@
ApiProperty
({
example
:
76.22222
,
description
:
'
Longitude
'
,
})
longitude
?:
number
;
//State and city ID
@
IsOptional
()
@
IsUUID
()
@
IsNotEmpty
({
message
:
'
State ID must be a valid UUID
'
})
@
ApiProperty
({
example
:
'
2733a326-f4e2-4005-ad18-3b8f67a7613c
'
,
description
:
'
State ID
'
,
})
stateId
?:
string
;
@
IsOptional
()
@
IsUUID
()
@
IsNotEmpty
({
message
:
'
City ID must be a valid UUID
'
})
@
ApiProperty
({
example
:
'
2733a326-f4e2-4005-ad18-3b8f67a7613c
'
,
description
:
'
City ID
'
,
})
cityId
?:
string
;
}
Loading