src/user/request/dto/update-user-profile.dto.ts
| address |
Type : string
|
Decorators :
@ApiProperty({type: String, maxLength: 200, required: false})
|
| allowNotifications |
Type : boolean
|
Decorators :
@ApiProperty({type: Boolean, required: false})
|
| automatedEmergency |
Type : boolean
|
Decorators :
@ApiProperty({type: Boolean, required: false})
|
| dateOfBirth |
Type : string
|
Decorators :
@ApiProperty({type: String, required: false, example: '12/08/1986'})
|
Type : string
|
Decorators :
@ApiProperty({type: String, maxLength: 320, required: false})
|
| emergencyEmailAndSms |
Type : boolean
|
Decorators :
@ApiProperty({type: Boolean, required: false})
|
| emergencyMessage |
Type : string
|
Decorators :
@ApiProperty({type: String, maxLength: 1000, required: false})
|
| frequencyOfRegularNotification |
Type : number
|
Decorators :
@ApiProperty({type: Number, required: false})
|
| lastHospitalVisit |
Type : string
|
Decorators :
@ApiProperty({type: String, required: false, example: '12/08/1986'})
|
| Optional location |
Type : string
|
Decorators :
@ApiProperty({type: String, required: false})
|
| locationAccess |
Type : boolean
|
Decorators :
@ApiProperty({type: Boolean, required: false})
|
| mostRecentDiagnosis |
Type : string
|
Decorators :
@ApiProperty({type: String, maxLength: 300, required: false})
|
| name |
Type : string
|
Decorators :
@ApiProperty({type: String, maxLength: 100, required: false})
|
| phone |
Type : string
|
Decorators :
@ApiProperty({type: String, maxLength: 12, required: false, example: '123456789'})
|
| positiveInfoPeriod |
Type : number
|
Decorators :
@ApiProperty({type: Number, required: false})
|
| prefix |
Type : number
|
Decorators :
@ApiProperty({type: Number, maxLength: 3, required: false})
|
| primaryPhysician |
Type : string
|
Decorators :
@ApiProperty({type: String, maxLength: 200, required: false})
|
| primaryPhysicianAddress |
Type : string
|
Decorators :
@ApiProperty({type: String, maxLength: 200, required: false})
|
| pulseBasedTriggerBackgroundModesEnabled |
Type : boolean
|
Decorators :
@ApiProperty({type: Boolean, required: false})
|
| pulseBasedTriggerConnectedToGoogleFit |
Type : boolean
|
Decorators :
@ApiProperty({type: Boolean, required: false})
|
| pulseBasedTriggerGoogleFitAuthenticated |
Type : boolean
|
Decorators :
@ApiProperty({type: Boolean, required: false})
|
| pulseBasedTriggerIOSAppleWatchPaired |
Type : boolean
|
Decorators :
@ApiProperty({type: Boolean, required: false})
|
| pulseBasedTriggerIOSHealthPermissions |
Type : boolean
|
Decorators :
@ApiProperty({type: Boolean, required: false})
|
| readManual |
Type : boolean
|
Decorators :
@ApiProperty({type: Boolean, required: false})
|
| regularPushNotification |
Type : boolean
|
Decorators :
@ApiProperty({type: Boolean, required: false})
|
| seriousMedicalIssues |
Type : boolean
|
Decorators :
@ApiProperty({type: Boolean, required: false})
|
| surname |
Type : string
|
Decorators :
@ApiProperty({type: String, maxLength: 100, required: false})
|
| Optional timezone |
Type : string
|
Decorators :
@ApiProperty({type: String, required: false})
|
| tipsAndTricks |
Type : boolean
|
Decorators :
@ApiProperty({type: Boolean, required: false})
|
| uploadedDocumentsAccess |
Type : boolean
|
Decorators :
@ApiProperty({type: Boolean, required: false})
|
import { ApiProperty } from "@nestjs/swagger";
export class UpdateUserProfileDTO {
@ApiProperty({ type: String, maxLength: 100, required: false })
name: string;
@ApiProperty({ type: String, maxLength: 100, required: false })
surname: string;
@ApiProperty({ type: String, maxLength: 320, required: false })
email: string;
@ApiProperty({ type: Number, maxLength: 3, required: false })
prefix: number;
@ApiProperty({ type: String, required: false })
location?: string;
@ApiProperty({ type: String, required: false })
timezone?: string;
@ApiProperty({
type: String,
maxLength: 12,
required: false,
example: "123456789",
})
phone: string;
@ApiProperty({ type: String, maxLength: 200, required: false })
address: string;
@ApiProperty({ type: String, required: false, example: "12/08/1986" })
dateOfBirth: string;
@ApiProperty({ type: String, maxLength: 200, required: false })
primaryPhysician: string;
@ApiProperty({ type: String, maxLength: 200, required: false })
primaryPhysicianAddress: string;
@ApiProperty({ type: Boolean, required: false })
seriousMedicalIssues: boolean;
@ApiProperty({ type: String, maxLength: 300, required: false })
mostRecentDiagnosis: string;
@ApiProperty({ type: String, required: false, example: "12/08/1986" })
lastHospitalVisit: string;
@ApiProperty({ type: Boolean, required: false })
allowNotifications: boolean;
@ApiProperty({ type: Boolean, required: false })
tipsAndTricks: boolean;
@ApiProperty({ type: Boolean, required: false })
emergencyEmailAndSms: boolean;
@ApiProperty({ type: Boolean, required: false })
locationAccess: boolean;
@ApiProperty({ type: Boolean, required: false })
uploadedDocumentsAccess: boolean;
@ApiProperty({ type: Boolean, required: false })
readManual: boolean;
@ApiProperty({ type: Boolean, required: false })
automatedEmergency: boolean;
@ApiProperty({ type: String, maxLength: 1000, required: false })
emergencyMessage: string;
@ApiProperty({ type: Boolean, required: false })
regularPushNotification: boolean;
@ApiProperty({ type: Number, required: false })
frequencyOfRegularNotification: number;
@ApiProperty({ type: Number, required: false })
positiveInfoPeriod: number;
@ApiProperty({ type: Boolean, required: false })
pulseBasedTriggerIOSHealthPermissions: boolean;
@ApiProperty({ type: Boolean, required: false })
pulseBasedTriggerIOSAppleWatchPaired: boolean;
@ApiProperty({ type: Boolean, required: false })
pulseBasedTriggerGoogleFitAuthenticated: boolean;
@ApiProperty({ type: Boolean, required: false })
pulseBasedTriggerConnectedToGoogleFit: boolean;
@ApiProperty({ type: Boolean, required: false })
pulseBasedTriggerBackgroundModesEnabled: boolean;
}