grm-shared-library 1.1.75 → 1.1.77
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/modules/auth/dtos/login-mobile-user.dto.js +10 -0
- package/dist/cjs/modules/auth/dtos/login-mobile-user.dto.js.map +1 -1
- package/dist/cjs/modules/auth/dtos/login.dto.js +12 -0
- package/dist/cjs/modules/auth/dtos/login.dto.js.map +1 -1
- package/dist/cjs/modules/auth/dtos/register.dto.js +60 -0
- package/dist/cjs/modules/auth/dtos/register.dto.js.map +1 -1
- package/dist/cjs/modules/auth/dtos/verify-otp.dto.js +9 -0
- package/dist/cjs/modules/auth/dtos/verify-otp.dto.js.map +1 -1
- package/dist/cjs/modules/user/dtos/create-guardian-relation.dto.js +24 -0
- package/dist/cjs/modules/user/dtos/create-guardian-relation.dto.js.map +1 -1
- package/dist/cjs/modules/user/dtos/create-user.dto.js +25 -0
- package/dist/cjs/modules/user/dtos/create-user.dto.js.map +1 -1
- package/dist/cjs/modules/user/dtos/guardian.dto.js +29 -0
- package/dist/cjs/modules/user/dtos/guardian.dto.js.map +1 -1
- package/dist/cjs/modules/user/dtos/update-guardian-relation-status.dto.js +6 -0
- package/dist/cjs/modules/user/dtos/update-guardian-relation-status.dto.js.map +1 -1
- package/dist/esm/modules/auth/dtos/login-mobile-user.dto.js +10 -0
- package/dist/esm/modules/auth/dtos/login-mobile-user.dto.js.map +1 -1
- package/dist/esm/modules/auth/dtos/login.dto.js +12 -0
- package/dist/esm/modules/auth/dtos/login.dto.js.map +1 -1
- package/dist/esm/modules/auth/dtos/register.dto.js +60 -0
- package/dist/esm/modules/auth/dtos/register.dto.js.map +1 -1
- package/dist/esm/modules/auth/dtos/verify-otp.dto.js +9 -0
- package/dist/esm/modules/auth/dtos/verify-otp.dto.js.map +1 -1
- package/dist/esm/modules/user/dtos/create-guardian-relation.dto.js +24 -0
- package/dist/esm/modules/user/dtos/create-guardian-relation.dto.js.map +1 -1
- package/dist/esm/modules/user/dtos/create-user.dto.js +25 -0
- package/dist/esm/modules/user/dtos/create-user.dto.js.map +1 -1
- package/dist/esm/modules/user/dtos/guardian.dto.js +29 -0
- package/dist/esm/modules/user/dtos/guardian.dto.js.map +1 -1
- package/dist/esm/modules/user/dtos/update-guardian-relation-status.dto.js +6 -0
- package/dist/esm/modules/user/dtos/update-guardian-relation-status.dto.js.map +1 -1
- package/package.json +6 -4
|
@@ -11,15 +11,25 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.LoginMobileUserDto = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
14
15
|
class LoginMobileUserDto {
|
|
15
16
|
}
|
|
16
17
|
exports.LoginMobileUserDto = LoginMobileUserDto;
|
|
17
18
|
__decorate([
|
|
19
|
+
(0, swagger_1.ApiProperty)({
|
|
20
|
+
description: 'Mobile phone number with country code',
|
|
21
|
+
example: '+1234567890',
|
|
22
|
+
format: 'phone'
|
|
23
|
+
}),
|
|
18
24
|
(0, class_validator_1.IsPhoneNumber)(),
|
|
19
25
|
(0, class_validator_1.IsNotEmpty)(),
|
|
20
26
|
__metadata("design:type", String)
|
|
21
27
|
], LoginMobileUserDto.prototype, "phoneNumber", void 0);
|
|
22
28
|
__decorate([
|
|
29
|
+
(0, swagger_1.ApiProperty)({
|
|
30
|
+
description: 'Verification token received',
|
|
31
|
+
example: 'abc123def456'
|
|
32
|
+
}),
|
|
23
33
|
(0, class_validator_1.IsString)(),
|
|
24
34
|
(0, class_validator_1.IsNotEmpty)(),
|
|
25
35
|
__metadata("design:type", String)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"login-mobile-user.dto.js","sourceRoot":"","sources":["../../../../../src/modules/auth/dtos/login-mobile-user.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAsE;
|
|
1
|
+
{"version":3,"file":"login-mobile-user.dto.js","sourceRoot":"","sources":["../../../../../src/modules/auth/dtos/login-mobile-user.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAsE;AACtE,6CAA8C;AAE9C,MAAa,kBAAkB;CAiB9B;AAjBD,gDAiBC;AATG;IAPC,IAAA,qBAAW,EAAC;QACT,WAAW,EAAE,uCAAuC;QACpD,OAAO,EAAE,aAAa;QACtB,MAAM,EAAE,OAAO;KAClB,CAAC;IACD,IAAA,+BAAa,GAAE;IACf,IAAA,4BAAU,GAAE;;uDACQ;AAQrB;IANC,IAAA,qBAAW,EAAC;QACT,WAAW,EAAE,6BAA6B;QAC1C,OAAO,EAAE,cAAc;KAC1B,CAAC;IACD,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;6DACc"}
|
|
@@ -11,16 +11,28 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.LoginDto = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
14
15
|
const password_regex_const_1 = require("../../common/constants/password-regex.const");
|
|
15
16
|
class LoginDto {
|
|
16
17
|
}
|
|
17
18
|
exports.LoginDto = LoginDto;
|
|
18
19
|
__decorate([
|
|
20
|
+
(0, swagger_1.ApiProperty)({
|
|
21
|
+
description: 'User email address',
|
|
22
|
+
example: 'user@example.com',
|
|
23
|
+
format: 'email'
|
|
24
|
+
}),
|
|
19
25
|
(0, class_validator_1.IsEmail)(),
|
|
20
26
|
(0, class_validator_1.IsNotEmpty)(),
|
|
21
27
|
__metadata("design:type", String)
|
|
22
28
|
], LoginDto.prototype, "email", void 0);
|
|
23
29
|
__decorate([
|
|
30
|
+
(0, swagger_1.ApiProperty)({
|
|
31
|
+
description: 'User password',
|
|
32
|
+
example: 'SecurePass123!',
|
|
33
|
+
minLength: 8,
|
|
34
|
+
pattern: password_regex_const_1.PASSWORD_REGEX.source
|
|
35
|
+
}),
|
|
24
36
|
(0, class_validator_1.IsString)(),
|
|
25
37
|
(0, class_validator_1.IsNotEmpty)(),
|
|
26
38
|
(0, class_validator_1.MinLength)(8),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"login.dto.js","sourceRoot":"","sources":["../../../../../src/modules/auth/dtos/login.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAoF;AACpF,sFAAqG;AAErG,MAAa,QAAQ;
|
|
1
|
+
{"version":3,"file":"login.dto.js","sourceRoot":"","sources":["../../../../../src/modules/auth/dtos/login.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAoF;AACpF,6CAA8C;AAC9C,sFAAqG;AAErG,MAAa,QAAQ;CAqBpB;AArBD,4BAqBC;AAbG;IAPC,IAAA,qBAAW,EAAC;QACT,WAAW,EAAE,oBAAoB;QACjC,OAAO,EAAE,kBAAkB;QAC3B,MAAM,EAAE,OAAO;KAClB,CAAC;IACD,IAAA,yBAAO,GAAE;IACT,IAAA,4BAAU,GAAE;;uCACE;AAYf;IAVC,IAAA,qBAAW,EAAC;QACT,WAAW,EAAE,eAAe;QAC5B,OAAO,EAAE,gBAAgB;QACzB,SAAS,EAAE,CAAC;QACZ,OAAO,EAAE,qCAAc,CAAC,MAAM;KACjC,CAAC;IACD,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,EAAC,CAAC,CAAC;IACZ,IAAA,yBAAO,EAAC,qCAAc,EAAE,EAAE,OAAO,EAAE,6CAAsB,EAAE,CAAC;;0CAC3C"}
|
|
@@ -11,6 +11,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.RegisterDto = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
14
15
|
const common_1 = require("../../common");
|
|
15
16
|
const role_1 = require("../../role");
|
|
16
17
|
const case_decorators_1 = require("../../../decorators/case-decorators");
|
|
@@ -22,11 +23,22 @@ class RegisterDto {
|
|
|
22
23
|
}
|
|
23
24
|
exports.RegisterDto = RegisterDto;
|
|
24
25
|
__decorate([
|
|
26
|
+
(0, swagger_1.ApiProperty)({
|
|
27
|
+
description: 'Type of incidents the organization handles',
|
|
28
|
+
enum: incident_1.IncidentClass,
|
|
29
|
+
example: incident_1.IncidentClass.INCIDENT
|
|
30
|
+
}),
|
|
25
31
|
(0, class_validator_1.IsEnum)(incident_1.IncidentClass),
|
|
26
32
|
(0, class_validator_1.IsNotEmpty)(),
|
|
27
33
|
__metadata("design:type", String)
|
|
28
34
|
], RegisterDto.prototype, "incidentClass", void 0);
|
|
29
35
|
__decorate([
|
|
36
|
+
(0, swagger_1.ApiProperty)({
|
|
37
|
+
description: 'Full name of the user',
|
|
38
|
+
example: 'John Doe',
|
|
39
|
+
minLength: 2,
|
|
40
|
+
maxLength: 50
|
|
41
|
+
}),
|
|
30
42
|
(0, class_validator_1.IsString)(),
|
|
31
43
|
(0, class_validator_1.IsNotEmpty)(),
|
|
32
44
|
(0, class_validator_1.MinLength)(2),
|
|
@@ -35,30 +47,59 @@ __decorate([
|
|
|
35
47
|
__metadata("design:type", String)
|
|
36
48
|
], RegisterDto.prototype, "name", void 0);
|
|
37
49
|
__decorate([
|
|
50
|
+
(0, swagger_1.ApiProperty)({
|
|
51
|
+
description: 'Email address of the user',
|
|
52
|
+
example: 'john.doe@example.com',
|
|
53
|
+
format: 'email',
|
|
54
|
+
maxLength: 50
|
|
55
|
+
}),
|
|
38
56
|
(0, class_validator_1.IsEmail)(),
|
|
39
57
|
(0, class_validator_1.IsNotEmpty)(),
|
|
40
58
|
(0, class_validator_1.MaxLength)(50),
|
|
41
59
|
__metadata("design:type", String)
|
|
42
60
|
], RegisterDto.prototype, "email", void 0);
|
|
43
61
|
__decorate([
|
|
62
|
+
(0, swagger_1.ApiProperty)({
|
|
63
|
+
description: 'Phone number with country code',
|
|
64
|
+
example: '+1234567890',
|
|
65
|
+
format: 'phone',
|
|
66
|
+
maxLength: 20
|
|
67
|
+
}),
|
|
44
68
|
(0, class_validator_1.IsPhoneNumber)(),
|
|
45
69
|
(0, class_validator_1.MaxLength)(20),
|
|
46
70
|
(0, class_validator_1.IsNotEmpty)(),
|
|
47
71
|
__metadata("design:type", String)
|
|
48
72
|
], RegisterDto.prototype, "phoneNumber", void 0);
|
|
49
73
|
__decorate([
|
|
74
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
75
|
+
description: 'User roles (optional)',
|
|
76
|
+
enum: role_1.Roles,
|
|
77
|
+
isArray: true,
|
|
78
|
+
example: [role_1.Roles.ORGANIZATION_ADMIN]
|
|
79
|
+
}),
|
|
50
80
|
(0, class_validator_1.IsArray)(),
|
|
51
81
|
(0, class_validator_1.IsEnum)(role_1.Roles, { each: true }),
|
|
52
82
|
(0, class_validator_1.IsOptional)(),
|
|
53
83
|
__metadata("design:type", Array)
|
|
54
84
|
], RegisterDto.prototype, "roles", void 0);
|
|
55
85
|
__decorate([
|
|
86
|
+
(0, swagger_1.ApiProperty)({
|
|
87
|
+
description: 'User designation/job title',
|
|
88
|
+
example: 'Emergency Manager',
|
|
89
|
+
maxLength: 50
|
|
90
|
+
}),
|
|
56
91
|
(0, class_validator_1.IsString)(),
|
|
57
92
|
(0, class_validator_1.IsNotEmpty)(),
|
|
58
93
|
(0, class_validator_1.MaxLength)(50),
|
|
59
94
|
__metadata("design:type", String)
|
|
60
95
|
], RegisterDto.prototype, "designation", void 0);
|
|
61
96
|
__decorate([
|
|
97
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
98
|
+
description: 'User password (optional)',
|
|
99
|
+
example: 'SecurePass123!',
|
|
100
|
+
minLength: 8,
|
|
101
|
+
pattern: password_regex_const_1.PASSWORD_REGEX.source
|
|
102
|
+
}),
|
|
62
103
|
(0, class_validator_1.IsString)(),
|
|
63
104
|
(0, class_validator_1.MinLength)(8),
|
|
64
105
|
(0, class_validator_1.Matches)(password_regex_const_1.PASSWORD_REGEX, { message: password_regex_const_1.PASSWORD_ERROR_MESSAGE }),
|
|
@@ -66,23 +107,42 @@ __decorate([
|
|
|
66
107
|
__metadata("design:type", String)
|
|
67
108
|
], RegisterDto.prototype, "password", void 0);
|
|
68
109
|
__decorate([
|
|
110
|
+
(0, swagger_1.ApiProperty)({
|
|
111
|
+
description: 'Organization name',
|
|
112
|
+
example: 'Emergency Response Services Inc.',
|
|
113
|
+
maxLength: 50
|
|
114
|
+
}),
|
|
69
115
|
(0, class_validator_1.IsString)(),
|
|
70
116
|
(0, class_validator_1.IsNotEmpty)(),
|
|
71
117
|
(0, class_validator_1.MaxLength)(50),
|
|
72
118
|
__metadata("design:type", String)
|
|
73
119
|
], RegisterDto.prototype, "orgName", void 0);
|
|
74
120
|
__decorate([
|
|
121
|
+
(0, swagger_1.ApiProperty)({
|
|
122
|
+
description: 'Organization address',
|
|
123
|
+
type: common_1.MapAddressDto
|
|
124
|
+
}),
|
|
75
125
|
(0, class_validator_1.ValidateNested)(),
|
|
76
126
|
(0, class_transformer_1.Type)(() => common_1.MapAddressDto),
|
|
77
127
|
(0, class_validator_1.IsNotEmpty)(),
|
|
78
128
|
__metadata("design:type", common_1.MapAddressDto)
|
|
79
129
|
], RegisterDto.prototype, "orgAddress", void 0);
|
|
80
130
|
__decorate([
|
|
131
|
+
(0, swagger_1.ApiProperty)({
|
|
132
|
+
description: 'Organization website URL',
|
|
133
|
+
example: 'https://www.emergencyservices.com',
|
|
134
|
+
format: 'url'
|
|
135
|
+
}),
|
|
81
136
|
(0, class_validator_1.IsUrl)({}, { message: 'Invalid URL. Format should be http://www.example.com' }),
|
|
82
137
|
(0, class_validator_1.IsNotEmpty)(),
|
|
83
138
|
__metadata("design:type", String)
|
|
84
139
|
], RegisterDto.prototype, "orgWebsite", void 0);
|
|
85
140
|
__decorate([
|
|
141
|
+
(0, swagger_1.ApiProperty)({
|
|
142
|
+
description: 'Type of organization',
|
|
143
|
+
enum: org_type_enum_1.OrganizationType,
|
|
144
|
+
example: org_type_enum_1.OrganizationType.PUBLIC
|
|
145
|
+
}),
|
|
86
146
|
(0, class_validator_1.IsEnum)(org_type_enum_1.OrganizationType),
|
|
87
147
|
(0, class_validator_1.IsNotEmpty)(),
|
|
88
148
|
__metadata("design:type", String)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"register.dto.js","sourceRoot":"","sources":["../../../../../src/modules/auth/dtos/register.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAkK;AAClK,yCAA6C;AAC7C,qCAAmC;AACnC,yEAAmE;AACnE,sFAAqG;AACrG,yDAAyC;AACzC,0EAA0E;AAC1E,6CAA+C;AAE/C,MAAa,WAAW;
|
|
1
|
+
{"version":3,"file":"register.dto.js","sourceRoot":"","sources":["../../../../../src/modules/auth/dtos/register.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAkK;AAClK,6CAAmE;AACnE,yCAA6C;AAC7C,qCAAmC;AACnC,yEAAmE;AACnE,sFAAqG;AACrG,yDAAyC;AACzC,0EAA0E;AAC1E,6CAA+C;AAE/C,MAAa,WAAW;CAkHvB;AAlHD,kCAkHC;AA1GG;IAPC,IAAA,qBAAW,EAAC;QACT,WAAW,EAAE,4CAA4C;QACzD,IAAI,EAAE,wBAAa;QACnB,OAAO,EAAE,wBAAa,CAAC,QAAQ;KAClC,CAAC;IACD,IAAA,wBAAM,EAAC,wBAAa,CAAC;IACrB,IAAA,4BAAU,GAAE;;kDACiB;AAa9B;IAXC,IAAA,qBAAW,EAAC;QACT,WAAW,EAAE,uBAAuB;QACpC,OAAO,EAAE,UAAU;QACnB,SAAS,EAAE,CAAC;QACZ,SAAS,EAAE,EAAE;KAChB,CAAC;IACD,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,EAAC,CAAC,C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AAE;IACV,IAAA,2BAAS,EAAC,CAAC,CAAC;IACZ,IAAA,yBAAO,EAAC,qCAAc,EAAE,EAAE,OAAO,EAAE,6CAAsB,EAAE,CAAC;IAC5D,IAAA,4BAAU,GAAE;;6CACK;AAUlB;IARC,IAAA,qBAAW,EAAC;QACT,WAAW,EAAE,mBAAmB;QAChC,OAAO,EAAE,kCAAkC;QAC3C,SAAS,EAAE,EAAE;KAChB,CAAC;IACD,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,EAAC,EAAE,CAAC;;4CACG;AASjB;IAPC,IAAA,qBAAW,EAAC;QACT,WAAW,EAAE,sBAAsB;QACnC,IAAI,EAAE,sBAAa;KACtB,CAAC;IACD,IAAA,gCAAc,GAAE;IAChB,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,sBAAa,CAAC;IACzB,IAAA,4BAAU,GAAE;8BACA,sBAAa;+CAAC;AAS3B;IAPC,IAAA,qBAAW,EAAC;QACT,WAAW,EAAE,0BAA0B;QACvC,OAAO,EAAE,mCAAmC;QAC5C,MAAM,EAAE,KAAK;KAChB,CAAC;IACD,IAAA,uBAAK,EAAC,EAAE,EAAE,EAAE,OAAO,EAAE,sDAAsD,EAAE,CAAC;IAC9E,IAAA,4BAAU,GAAE;;+CACO;AASpB;IAPC,IAAA,qBAAW,EAAC;QACT,WAAW,EAAE,sBAAsB;QACnC,IAAI,EAAE,gCAAgB;QACtB,OAAO,EAAE,gCAAgB,CAAC,MAAM;KACnC,CAAC;IACD,IAAA,wBAAM,EAAC,gCAAgB,CAAC;IACxB,IAAA,4BAAU,GAAE;;4CACc"}
|
|
@@ -11,15 +11,24 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.VerifyOTPDto = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
14
15
|
class VerifyOTPDto {
|
|
15
16
|
}
|
|
16
17
|
exports.VerifyOTPDto = VerifyOTPDto;
|
|
17
18
|
__decorate([
|
|
19
|
+
(0, swagger_1.ApiProperty)({
|
|
20
|
+
description: 'Verification token received during registration/login',
|
|
21
|
+
example: 'abc123def456'
|
|
22
|
+
}),
|
|
18
23
|
(0, class_validator_1.IsString)(),
|
|
19
24
|
(0, class_validator_1.IsNotEmpty)(),
|
|
20
25
|
__metadata("design:type", String)
|
|
21
26
|
], VerifyOTPDto.prototype, "verificationToken", void 0);
|
|
22
27
|
__decorate([
|
|
28
|
+
(0, swagger_1.ApiProperty)({
|
|
29
|
+
description: 'One-time password received via SMS/email',
|
|
30
|
+
example: '123456'
|
|
31
|
+
}),
|
|
23
32
|
(0, class_validator_1.IsString)(),
|
|
24
33
|
(0, class_validator_1.IsNotEmpty)(),
|
|
25
34
|
__metadata("design:type", String)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"verify-otp.dto.js","sourceRoot":"","sources":["../../../../../src/modules/auth/dtos/verify-otp.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuD;
|
|
1
|
+
{"version":3,"file":"verify-otp.dto.js","sourceRoot":"","sources":["../../../../../src/modules/auth/dtos/verify-otp.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuD;AACvD,6CAA8C;AAE9C,MAAa,YAAY;CAgBxB;AAhBD,oCAgBC;AATG;IANC,IAAA,qBAAW,EAAC;QACT,WAAW,EAAE,uDAAuD;QACpE,OAAO,EAAE,cAAc;KAC1B,CAAC;IACD,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;uDACc;AAQ3B;IANC,IAAA,qBAAW,EAAC;QACT,WAAW,EAAE,0CAA0C;QACvD,OAAO,EAAE,QAAQ;KACpB,CAAC;IACD,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;yCACA"}
|
|
@@ -11,32 +11,56 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.CreateGuardianRelationDto = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
14
15
|
const guardian_relation_status_enum_1 = require("../enums/guardian-relation-status.enum");
|
|
15
16
|
const guardian_relationship_enum_1 = require("../enums/guardian-relationship.enum");
|
|
16
17
|
class CreateGuardianRelationDto {
|
|
17
18
|
}
|
|
18
19
|
exports.CreateGuardianRelationDto = CreateGuardianRelationDto;
|
|
19
20
|
__decorate([
|
|
21
|
+
(0, swagger_1.ApiProperty)({
|
|
22
|
+
description: 'ID of the guardian user',
|
|
23
|
+
example: 123
|
|
24
|
+
}),
|
|
20
25
|
(0, class_validator_1.IsNumber)(),
|
|
21
26
|
(0, class_validator_1.IsNotEmpty)(),
|
|
22
27
|
__metadata("design:type", Number)
|
|
23
28
|
], CreateGuardianRelationDto.prototype, "guardianId", void 0);
|
|
24
29
|
__decorate([
|
|
30
|
+
(0, swagger_1.ApiProperty)({
|
|
31
|
+
description: 'ID of the dependent user',
|
|
32
|
+
example: 456
|
|
33
|
+
}),
|
|
25
34
|
(0, class_validator_1.IsNumber)(),
|
|
26
35
|
(0, class_validator_1.IsNotEmpty)(),
|
|
27
36
|
__metadata("design:type", Number)
|
|
28
37
|
], CreateGuardianRelationDto.prototype, "dependentId", void 0);
|
|
29
38
|
__decorate([
|
|
39
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
40
|
+
description: 'Relationship between guardian and dependent',
|
|
41
|
+
enum: guardian_relationship_enum_1.GuardianRelationship,
|
|
42
|
+
example: guardian_relationship_enum_1.GuardianRelationship.PARENT
|
|
43
|
+
}),
|
|
30
44
|
(0, class_validator_1.IsEnum)(guardian_relationship_enum_1.GuardianRelationship),
|
|
31
45
|
(0, class_validator_1.IsOptional)(),
|
|
32
46
|
__metadata("design:type", String)
|
|
33
47
|
], CreateGuardianRelationDto.prototype, "relationship", void 0);
|
|
34
48
|
__decorate([
|
|
49
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
50
|
+
description: 'Whether this is the primary guardian',
|
|
51
|
+
example: true,
|
|
52
|
+
default: false
|
|
53
|
+
}),
|
|
35
54
|
(0, class_validator_1.IsBoolean)(),
|
|
36
55
|
(0, class_validator_1.IsOptional)(),
|
|
37
56
|
__metadata("design:type", Boolean)
|
|
38
57
|
], CreateGuardianRelationDto.prototype, "isPrimary", void 0);
|
|
39
58
|
__decorate([
|
|
59
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
60
|
+
description: 'Status of the guardian relation',
|
|
61
|
+
enum: guardian_relation_status_enum_1.GuardianRelationStatus,
|
|
62
|
+
example: guardian_relation_status_enum_1.GuardianRelationStatus.PENDING
|
|
63
|
+
}),
|
|
40
64
|
(0, class_validator_1.IsEnum)(guardian_relation_status_enum_1.GuardianRelationStatus),
|
|
41
65
|
(0, class_validator_1.IsOptional)(),
|
|
42
66
|
__metadata("design:type", String)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-guardian-relation.dto.js","sourceRoot":"","sources":["../../../../../src/modules/user/dtos/create-guardian-relation.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAsF;AACtF,0FAAgF;AAChF,oFAA2E;AAE3E,MAAa,yBAAyB;
|
|
1
|
+
{"version":3,"file":"create-guardian-relation.dto.js","sourceRoot":"","sources":["../../../../../src/modules/user/dtos/create-guardian-relation.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAsF;AACtF,6CAAmE;AACnE,0FAAgF;AAChF,oFAA2E;AAE3E,MAAa,yBAAyB;CA2CrC;AA3CD,8DA2CC;AApCG;IANC,IAAA,qBAAW,EAAC;QACT,WAAW,EAAE,yBAAyB;QACtC,OAAO,EAAE,GAAG;KACf,CAAC;IACD,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;6DACO;AAQpB;IANC,IAAA,qBAAW,EAAC;QACT,WAAW,EAAE,0BAA0B;QACvC,OAAO,EAAE,GAAG;KACf,CAAC;IACD,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;8DACQ;AASrB;IAPC,IAAA,6BAAmB,EAAC;QACjB,WAAW,EAAE,6CAA6C;QAC1D,IAAI,EAAE,iDAAoB;QAC1B,OAAO,EAAE,iDAAoB,CAAC,MAAM;KACvC,CAAC;IACD,IAAA,wBAAM,EAAC,iDAAoB,CAAC;IAC5B,IAAA,4BAAU,GAAE;;+DACuB;AASpC;IAPC,IAAA,6BAAmB,EAAC;QACjB,WAAW,EAAE,sCAAsC;QACnD,OAAO,EAAE,IAAI;QACb,OAAO,EAAE,KAAK;KACjB,CAAC;IACD,IAAA,2BAAS,GAAE;IACX,IAAA,4BAAU,GAAE;;4DACO;AASpB;IAPC,IAAA,6BAAmB,EAAC;QACjB,WAAW,EAAE,iCAAiC;QAC9C,IAAI,EAAE,sDAAsB;QAC5B,OAAO,EAAE,sDAAsB,CAAC,OAAO;KAC1C,CAAC;IACD,IAAA,wBAAM,EAAC,sDAAsB,CAAC;IAC9B,IAAA,4BAAU,GAAE;;yDACmB"}
|
|
@@ -11,6 +11,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.CreateUserDto = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
14
15
|
const case_decorators_1 = require("../../../decorators/case-decorators");
|
|
15
16
|
const user_status_enum_1 = require("../enums/user-status.enum");
|
|
16
17
|
const password_regex_const_1 = require("../../common/constants/password-regex.const");
|
|
@@ -21,6 +22,12 @@ class CreateUserDto {
|
|
|
21
22
|
}
|
|
22
23
|
exports.CreateUserDto = CreateUserDto;
|
|
23
24
|
__decorate([
|
|
25
|
+
(0, swagger_1.ApiProperty)({
|
|
26
|
+
description: 'Full name of the user',
|
|
27
|
+
example: 'John Doe',
|
|
28
|
+
minLength: 2,
|
|
29
|
+
maxLength: 50
|
|
30
|
+
}),
|
|
24
31
|
(0, class_validator_1.IsString)(),
|
|
25
32
|
(0, class_validator_1.IsNotEmpty)(),
|
|
26
33
|
(0, class_validator_1.MinLength)(2),
|
|
@@ -29,18 +36,36 @@ __decorate([
|
|
|
29
36
|
__metadata("design:type", String)
|
|
30
37
|
], CreateUserDto.prototype, "name", void 0);
|
|
31
38
|
__decorate([
|
|
39
|
+
(0, swagger_1.ApiProperty)({
|
|
40
|
+
description: 'Email address of the user',
|
|
41
|
+
example: 'john.doe@example.com',
|
|
42
|
+
format: 'email',
|
|
43
|
+
maxLength: 50
|
|
44
|
+
}),
|
|
32
45
|
(0, class_validator_1.IsEmail)(),
|
|
33
46
|
(0, class_validator_1.IsNotEmpty)(),
|
|
34
47
|
(0, class_validator_1.MaxLength)(50),
|
|
35
48
|
__metadata("design:type", String)
|
|
36
49
|
], CreateUserDto.prototype, "email", void 0);
|
|
37
50
|
__decorate([
|
|
51
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
52
|
+
description: 'Phone number with country code',
|
|
53
|
+
example: '+1234567890',
|
|
54
|
+
format: 'phone',
|
|
55
|
+
maxLength: 20
|
|
56
|
+
}),
|
|
38
57
|
(0, class_validator_1.IsPhoneNumber)(),
|
|
39
58
|
(0, class_validator_1.MaxLength)(20),
|
|
40
59
|
(0, class_validator_1.IsOptional)(),
|
|
41
60
|
__metadata("design:type", String)
|
|
42
61
|
], CreateUserDto.prototype, "phoneNumber", void 0);
|
|
43
62
|
__decorate([
|
|
63
|
+
(0, swagger_1.ApiProperty)({
|
|
64
|
+
description: 'User roles',
|
|
65
|
+
enum: role_1.Roles,
|
|
66
|
+
isArray: true,
|
|
67
|
+
example: [role_1.Roles.ORGANIZATION_USER]
|
|
68
|
+
}),
|
|
44
69
|
(0, class_validator_1.IsArray)(),
|
|
45
70
|
(0, class_validator_1.IsEnum)(role_1.Roles, { each: true }),
|
|
46
71
|
(0, class_validator_1.ArrayNotEmpty)(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-user.dto.js","sourceRoot":"","sources":["../../../../../src/modules/user/dtos/create-user.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAgByB;AACzB,yEAAmE;AACnE,gEAAuD;AACvD,sFAAqG;AACrG,qCAAmC;AACnC,yDAAyC;AACzC,iDAA6C;AAE7C,MAAa,aAAa;
|
|
1
|
+
{"version":3,"file":"create-user.dto.js","sourceRoot":"","sources":["../../../../../src/modules/user/dtos/create-user.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAgByB;AACzB,6CAAmE;AACnE,yEAAmE;AACnE,gEAAuD;AACvD,sFAAqG;AACrG,qCAAmC;AACnC,yDAAyC;AACzC,iDAA6C;AAE7C,MAAa,aAAa;CA+FzB;AA/FD,sCA+FC;AAnFG;IAXC,IAAA,qBAAW,EAAC;QACT,WAAW,EAAE,uBAAuB;QACpC,OAAO,EAAE,UAAU;QACnB,SAAS,EAAE,CAAC;QACZ,SAAS,EAAE,EAAE;KAChB,CAAC;IACD,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,EAAC,CAAC,CAAC;IACZ,IAAA,2BAAS,EAAC,EAAE,CAAC;IACb,IAAA,8BAAY,GAAE;;2CACD;AAWd;IATC,IAAA,qBAAW,EAAC;QACT,WAAW,EAAE,2BAA2B;QACxC,OAAO,EAAE,sBAAsB;QAC/B,MAAM,EAAE,OAAO;QACf,SAAS,EAAE,EAAE;KAChB,CAAC;IACD,IAAA,yBAAO,GAAE;IACT,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,EAAC,EAAE,CAAC;;4CACC;AAWf;IATC,IAAA,6BAAmB,EAAC;QACjB,WAAW,EAAE,gCAAgC;QAC7C,OAAO,EAAE,aAAa;QACtB,MAAM,EAAE,OAAO;QACf,SAAS,E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V,IAAA,4BAAU,GAAE;;wDACc;AAI3B;IAFC,IAAA,wBAAM,GAAE;IACR,IAAA,4BAAU,GAAE;8BACgB,IAAI;iEAAC;AAIlC;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;sDACY;AAIzB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;qDACW"}
|
|
@@ -11,36 +11,65 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.GuardianDto = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
14
15
|
const guardian_relationship_enum_1 = require("../enums/guardian-relationship.enum");
|
|
15
16
|
class GuardianDto {
|
|
16
17
|
}
|
|
17
18
|
exports.GuardianDto = GuardianDto;
|
|
18
19
|
__decorate([
|
|
20
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
21
|
+
description: 'User ID (if guardian is a system user)',
|
|
22
|
+
example: 123
|
|
23
|
+
}),
|
|
19
24
|
(0, class_validator_1.IsNumber)(),
|
|
20
25
|
(0, class_validator_1.IsOptional)(),
|
|
21
26
|
__metadata("design:type", Number)
|
|
22
27
|
], GuardianDto.prototype, "userId", void 0);
|
|
23
28
|
__decorate([
|
|
29
|
+
(0, swagger_1.ApiProperty)({
|
|
30
|
+
description: 'Guardian full name',
|
|
31
|
+
example: 'Jane Smith'
|
|
32
|
+
}),
|
|
24
33
|
(0, class_validator_1.IsString)(),
|
|
25
34
|
(0, class_validator_1.IsNotEmpty)(),
|
|
26
35
|
__metadata("design:type", String)
|
|
27
36
|
], GuardianDto.prototype, "name", void 0);
|
|
28
37
|
__decorate([
|
|
38
|
+
(0, swagger_1.ApiProperty)({
|
|
39
|
+
description: 'Guardian phone number with country code',
|
|
40
|
+
example: '+1234567890',
|
|
41
|
+
format: 'phone'
|
|
42
|
+
}),
|
|
29
43
|
(0, class_validator_1.IsPhoneNumber)(),
|
|
30
44
|
(0, class_validator_1.IsNotEmpty)(),
|
|
31
45
|
__metadata("design:type", String)
|
|
32
46
|
], GuardianDto.prototype, "phoneNumber", void 0);
|
|
33
47
|
__decorate([
|
|
48
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
49
|
+
description: 'Whether this is the primary guardian',
|
|
50
|
+
example: true,
|
|
51
|
+
default: false
|
|
52
|
+
}),
|
|
34
53
|
(0, class_validator_1.IsBoolean)(),
|
|
35
54
|
(0, class_validator_1.IsOptional)(),
|
|
36
55
|
__metadata("design:type", Boolean)
|
|
37
56
|
], GuardianDto.prototype, "isPrimary", void 0);
|
|
38
57
|
__decorate([
|
|
58
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
59
|
+
description: 'Relationship to the dependent',
|
|
60
|
+
enum: guardian_relationship_enum_1.GuardianRelationship,
|
|
61
|
+
example: guardian_relationship_enum_1.GuardianRelationship.PARENT
|
|
62
|
+
}),
|
|
39
63
|
(0, class_validator_1.IsEnum)(guardian_relationship_enum_1.GuardianRelationship),
|
|
40
64
|
(0, class_validator_1.IsOptional)(),
|
|
41
65
|
__metadata("design:type", String)
|
|
42
66
|
], GuardianDto.prototype, "relationship", void 0);
|
|
43
67
|
__decorate([
|
|
68
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
69
|
+
description: 'Guardian email address',
|
|
70
|
+
example: 'jane.smith@example.com',
|
|
71
|
+
format: 'email'
|
|
72
|
+
}),
|
|
44
73
|
(0, class_validator_1.IsEmail)(),
|
|
45
74
|
(0, class_validator_1.IsString)(),
|
|
46
75
|
__metadata("design:type", String)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"guardian.dto.js","sourceRoot":"","sources":["../../../../../src/modules/user/dtos/guardian.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAwH;AACxH,oFAA2E;AAE3E,MAAa,WAAW;
|
|
1
|
+
{"version":3,"file":"guardian.dto.js","sourceRoot":"","sources":["../../../../../src/modules/user/dtos/guardian.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAwH;AACxH,6CAAmE;AACnE,oFAA2E;AAE3E,MAAa,WAAW;CAoDvB;AApDD,kCAoDC;AA7CG;IANC,IAAA,6BAAmB,EAAC;QACjB,WAAW,EAAE,wCAAwC;QACrD,OAAO,EAAE,GAAG;KACf,CAAC;IACD,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;2CACG;AAQhB;IANC,IAAA,qBAAW,EAAC;QACT,WAAW,EAAE,oBAAoB;QACjC,OAAO,EAAE,YAAY;KACxB,CAAC;IACD,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;yCACC;AASd;IAPC,IAAA,qBAAW,EAAC;QACT,WAAW,EAAE,yCAAyC;QACtD,OAAO,EAAE,aAAa;QACtB,MAAM,EAAE,OAAO;KAClB,CAAC;IACD,IAAA,+BAAa,GAAE;IACf,IAAA,4BAAU,GAAE;;gDACQ;AASrB;IAPC,IAAA,6BAAmB,EAAC;QACjB,WAAW,EAAE,sCAAsC;QACnD,OAAO,EAAE,IAAI;QACb,OAAO,EAAE,KAAK;KACjB,CAAC;IACD,IAAA,2BAAS,GAAE;IACX,IAAA,4BAAU,GAAE;;8CACO;AASpB;IAPC,IAAA,6BAAmB,EAAC;QACjB,WAAW,EAAE,+BAA+B;QAC5C,IAAI,EAAE,iDAAoB;QAC1B,OAAO,EAAE,iDAAoB,CAAC,MAAM;KACvC,CAAC;IACD,IAAA,wBAAM,EAAC,iDAAoB,CAAC;IAC5B,IAAA,4BAAU,GAAE;;iDACuB;AASpC;IAPC,IAAA,6BAAmB,EAAC;QACjB,WAAW,EAAE,wBAAwB;QACrC,OAAO,EAAE,wBAAwB;QACjC,MAAM,EAAE,OAAO;KAClB,CAAC;IACD,IAAA,yBAAO,GAAE;IACT,IAAA,0BAAQ,GAAE;;0CACI"}
|
|
@@ -11,11 +11,17 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.UpdateGuardianRelationStatusDto = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
14
15
|
const guardian_relation_status_enum_1 = require("../enums/guardian-relation-status.enum");
|
|
15
16
|
class UpdateGuardianRelationStatusDto {
|
|
16
17
|
}
|
|
17
18
|
exports.UpdateGuardianRelationStatusDto = UpdateGuardianRelationStatusDto;
|
|
18
19
|
__decorate([
|
|
20
|
+
(0, swagger_1.ApiProperty)({
|
|
21
|
+
description: 'New status for the guardian relation',
|
|
22
|
+
enum: guardian_relation_status_enum_1.GuardianRelationStatus,
|
|
23
|
+
example: guardian_relation_status_enum_1.GuardianRelationStatus.ACCEPTED
|
|
24
|
+
}),
|
|
19
25
|
(0, class_validator_1.IsEnum)(guardian_relation_status_enum_1.GuardianRelationStatus),
|
|
20
26
|
(0, class_validator_1.IsNotEmpty)(),
|
|
21
27
|
__metadata("design:type", String)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-guardian-relation-status.dto.js","sourceRoot":"","sources":["../../../../../src/modules/user/dtos/update-guardian-relation-status.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAqD;AACrD,0FAAgF;AAEhF,MAAa,+BAA+B;
|
|
1
|
+
{"version":3,"file":"update-guardian-relation-status.dto.js","sourceRoot":"","sources":["../../../../../src/modules/user/dtos/update-guardian-relation-status.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAqD;AACrD,6CAA8C;AAC9C,0FAAgF;AAEhF,MAAa,+BAA+B;CAS3C;AATD,0EASC;AADC;IAPC,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,sCAAsC;QACnD,IAAI,EAAE,sDAAsB;QAC5B,OAAO,EAAE,sDAAsB,CAAC,QAAQ;KACzC,CAAC;IACD,IAAA,wBAAM,EAAC,sDAAsB,CAAC;IAC9B,IAAA,4BAAU,GAAE;;+DACmB"}
|
|
@@ -8,14 +8,24 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
8
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
9
|
};
|
|
10
10
|
import { IsNotEmpty, IsPhoneNumber, IsString } from "class-validator";
|
|
11
|
+
import { ApiProperty } from "@nestjs/swagger";
|
|
11
12
|
export class LoginMobileUserDto {
|
|
12
13
|
}
|
|
13
14
|
__decorate([
|
|
15
|
+
ApiProperty({
|
|
16
|
+
description: 'Mobile phone number with country code',
|
|
17
|
+
example: '+1234567890',
|
|
18
|
+
format: 'phone'
|
|
19
|
+
}),
|
|
14
20
|
IsPhoneNumber(),
|
|
15
21
|
IsNotEmpty(),
|
|
16
22
|
__metadata("design:type", String)
|
|
17
23
|
], LoginMobileUserDto.prototype, "phoneNumber", void 0);
|
|
18
24
|
__decorate([
|
|
25
|
+
ApiProperty({
|
|
26
|
+
description: 'Verification token received',
|
|
27
|
+
example: 'abc123def456'
|
|
28
|
+
}),
|
|
19
29
|
IsString(),
|
|
20
30
|
IsNotEmpty(),
|
|
21
31
|
__metadata("design:type", String)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"login-mobile-user.dto.js","sourceRoot":"","sources":["../../../../../src/modules/auth/dtos/login-mobile-user.dto.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"login-mobile-user.dto.js","sourceRoot":"","sources":["../../../../../src/modules/auth/dtos/login-mobile-user.dto.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AACtE,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE9C,MAAM,OAAO,kBAAkB;CAiB9B;AATG;IAPC,WAAW,CAAC;QACT,WAAW,EAAE,uCAAuC;QACpD,OAAO,EAAE,aAAa;QACtB,MAAM,EAAE,OAAO;KAClB,CAAC;IACD,aAAa,EAAE;IACf,UAAU,EAAE;;uDACQ;AAQrB;IANC,WAAW,CAAC;QACT,WAAW,EAAE,6BAA6B;QAC1C,OAAO,EAAE,cAAc;KAC1B,CAAC;IACD,QAAQ,EAAE;IACV,UAAU,EAAE;;6DACc"}
|
|
@@ -8,15 +8,27 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
8
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
9
|
};
|
|
10
10
|
import { IsEmail, IsNotEmpty, IsString, Matches, MinLength } from "class-validator";
|
|
11
|
+
import { ApiProperty } from "@nestjs/swagger";
|
|
11
12
|
import { PASSWORD_ERROR_MESSAGE, PASSWORD_REGEX } from "../../common/constants/password-regex.const";
|
|
12
13
|
export class LoginDto {
|
|
13
14
|
}
|
|
14
15
|
__decorate([
|
|
16
|
+
ApiProperty({
|
|
17
|
+
description: 'User email address',
|
|
18
|
+
example: 'user@example.com',
|
|
19
|
+
format: 'email'
|
|
20
|
+
}),
|
|
15
21
|
IsEmail(),
|
|
16
22
|
IsNotEmpty(),
|
|
17
23
|
__metadata("design:type", String)
|
|
18
24
|
], LoginDto.prototype, "email", void 0);
|
|
19
25
|
__decorate([
|
|
26
|
+
ApiProperty({
|
|
27
|
+
description: 'User password',
|
|
28
|
+
example: 'SecurePass123!',
|
|
29
|
+
minLength: 8,
|
|
30
|
+
pattern: PASSWORD_REGEX.source
|
|
31
|
+
}),
|
|
20
32
|
IsString(),
|
|
21
33
|
IsNotEmpty(),
|
|
22
34
|
MinLength(8),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"login.dto.js","sourceRoot":"","sources":["../../../../../src/modules/auth/dtos/login.dto.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AACpF,OAAO,EAAE,sBAAsB,EAAE,cAAc,EAAE,MAAM,6CAA6C,CAAC;AAErG,MAAM,OAAO,QAAQ;
|
|
1
|
+
{"version":3,"file":"login.dto.js","sourceRoot":"","sources":["../../../../../src/modules/auth/dtos/login.dto.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AACpF,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAE,sBAAsB,EAAE,cAAc,EAAE,MAAM,6CAA6C,CAAC;AAErG,MAAM,OAAO,QAAQ;CAqBpB;AAbG;IAPC,WAAW,CAAC;QACT,WAAW,EAAE,oBAAoB;QACjC,OAAO,EAAE,kBAAkB;QAC3B,MAAM,EAAE,OAAO;KAClB,CAAC;IACD,OAAO,EAAE;IACT,UAAU,EAAE;;uCACE;AAYf;IAVC,WAAW,CAAC;QACT,WAAW,EAAE,eAAe;QAC5B,OAAO,EAAE,gBAAgB;QACzB,SAAS,EAAE,CAAC;QACZ,OAAO,EAAE,cAAc,CAAC,MAAM;KACjC,CAAC;IACD,QAAQ,EAAE;IACV,UAAU,EAAE;IACZ,SAAS,CAAC,CAAC,CAAC;IACZ,OAAO,CAAC,cAAc,EAAE,EAAE,OAAO,EAAE,sBAAsB,EAAE,CAAC;;0CAC3C"}
|
|
@@ -8,6 +8,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
8
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
9
|
};
|
|
10
10
|
import { IsArray, IsEmail, IsEnum, IsNotEmpty, IsOptional, IsPhoneNumber, IsString, IsUrl, Matches, MaxLength, MinLength, ValidateNested } from "class-validator";
|
|
11
|
+
import { ApiProperty, ApiPropertyOptional } from "@nestjs/swagger";
|
|
11
12
|
import { MapAddressDto } from "../../common";
|
|
12
13
|
import { Roles } from "../../role";
|
|
13
14
|
import { SentenceCase } from "../../../decorators/case-decorators";
|
|
@@ -18,11 +19,22 @@ import { IncidentClass } from "../../incident";
|
|
|
18
19
|
export class RegisterDto {
|
|
19
20
|
}
|
|
20
21
|
__decorate([
|
|
22
|
+
ApiProperty({
|
|
23
|
+
description: 'Type of incidents the organization handles',
|
|
24
|
+
enum: IncidentClass,
|
|
25
|
+
example: IncidentClass.INCIDENT
|
|
26
|
+
}),
|
|
21
27
|
IsEnum(IncidentClass),
|
|
22
28
|
IsNotEmpty(),
|
|
23
29
|
__metadata("design:type", String)
|
|
24
30
|
], RegisterDto.prototype, "incidentClass", void 0);
|
|
25
31
|
__decorate([
|
|
32
|
+
ApiProperty({
|
|
33
|
+
description: 'Full name of the user',
|
|
34
|
+
example: 'John Doe',
|
|
35
|
+
minLength: 2,
|
|
36
|
+
maxLength: 50
|
|
37
|
+
}),
|
|
26
38
|
IsString(),
|
|
27
39
|
IsNotEmpty(),
|
|
28
40
|
MinLength(2),
|
|
@@ -31,30 +43,59 @@ __decorate([
|
|
|
31
43
|
__metadata("design:type", String)
|
|
32
44
|
], RegisterDto.prototype, "name", void 0);
|
|
33
45
|
__decorate([
|
|
46
|
+
ApiProperty({
|
|
47
|
+
description: 'Email address of the user',
|
|
48
|
+
example: 'john.doe@example.com',
|
|
49
|
+
format: 'email',
|
|
50
|
+
maxLength: 50
|
|
51
|
+
}),
|
|
34
52
|
IsEmail(),
|
|
35
53
|
IsNotEmpty(),
|
|
36
54
|
MaxLength(50),
|
|
37
55
|
__metadata("design:type", String)
|
|
38
56
|
], RegisterDto.prototype, "email", void 0);
|
|
39
57
|
__decorate([
|
|
58
|
+
ApiProperty({
|
|
59
|
+
description: 'Phone number with country code',
|
|
60
|
+
example: '+1234567890',
|
|
61
|
+
format: 'phone',
|
|
62
|
+
maxLength: 20
|
|
63
|
+
}),
|
|
40
64
|
IsPhoneNumber(),
|
|
41
65
|
MaxLength(20),
|
|
42
66
|
IsNotEmpty(),
|
|
43
67
|
__metadata("design:type", String)
|
|
44
68
|
], RegisterDto.prototype, "phoneNumber", void 0);
|
|
45
69
|
__decorate([
|
|
70
|
+
ApiPropertyOptional({
|
|
71
|
+
description: 'User roles (optional)',
|
|
72
|
+
enum: Roles,
|
|
73
|
+
isArray: true,
|
|
74
|
+
example: [Roles.ORGANIZATION_ADMIN]
|
|
75
|
+
}),
|
|
46
76
|
IsArray(),
|
|
47
77
|
IsEnum(Roles, { each: true }),
|
|
48
78
|
IsOptional(),
|
|
49
79
|
__metadata("design:type", Array)
|
|
50
80
|
], RegisterDto.prototype, "roles", void 0);
|
|
51
81
|
__decorate([
|
|
82
|
+
ApiProperty({
|
|
83
|
+
description: 'User designation/job title',
|
|
84
|
+
example: 'Emergency Manager',
|
|
85
|
+
maxLength: 50
|
|
86
|
+
}),
|
|
52
87
|
IsString(),
|
|
53
88
|
IsNotEmpty(),
|
|
54
89
|
MaxLength(50),
|
|
55
90
|
__metadata("design:type", String)
|
|
56
91
|
], RegisterDto.prototype, "designation", void 0);
|
|
57
92
|
__decorate([
|
|
93
|
+
ApiPropertyOptional({
|
|
94
|
+
description: 'User password (optional)',
|
|
95
|
+
example: 'SecurePass123!',
|
|
96
|
+
minLength: 8,
|
|
97
|
+
pattern: PASSWORD_REGEX.source
|
|
98
|
+
}),
|
|
58
99
|
IsString(),
|
|
59
100
|
MinLength(8),
|
|
60
101
|
Matches(PASSWORD_REGEX, { message: PASSWORD_ERROR_MESSAGE }),
|
|
@@ -62,23 +103,42 @@ __decorate([
|
|
|
62
103
|
__metadata("design:type", String)
|
|
63
104
|
], RegisterDto.prototype, "password", void 0);
|
|
64
105
|
__decorate([
|
|
106
|
+
ApiProperty({
|
|
107
|
+
description: 'Organization name',
|
|
108
|
+
example: 'Emergency Response Services Inc.',
|
|
109
|
+
maxLength: 50
|
|
110
|
+
}),
|
|
65
111
|
IsString(),
|
|
66
112
|
IsNotEmpty(),
|
|
67
113
|
MaxLength(50),
|
|
68
114
|
__metadata("design:type", String)
|
|
69
115
|
], RegisterDto.prototype, "orgName", void 0);
|
|
70
116
|
__decorate([
|
|
117
|
+
ApiProperty({
|
|
118
|
+
description: 'Organization address',
|
|
119
|
+
type: MapAddressDto
|
|
120
|
+
}),
|
|
71
121
|
ValidateNested(),
|
|
72
122
|
Type(() => MapAddressDto),
|
|
73
123
|
IsNotEmpty(),
|
|
74
124
|
__metadata("design:type", MapAddressDto)
|
|
75
125
|
], RegisterDto.prototype, "orgAddress", void 0);
|
|
76
126
|
__decorate([
|
|
127
|
+
ApiProperty({
|
|
128
|
+
description: 'Organization website URL',
|
|
129
|
+
example: 'https://www.emergencyservices.com',
|
|
130
|
+
format: 'url'
|
|
131
|
+
}),
|
|
77
132
|
IsUrl({}, { message: 'Invalid URL. Format should be http://www.example.com' }),
|
|
78
133
|
IsNotEmpty(),
|
|
79
134
|
__metadata("design:type", String)
|
|
80
135
|
], RegisterDto.prototype, "orgWebsite", void 0);
|
|
81
136
|
__decorate([
|
|
137
|
+
ApiProperty({
|
|
138
|
+
description: 'Type of organization',
|
|
139
|
+
enum: OrganizationType,
|
|
140
|
+
example: OrganizationType.PUBLIC
|
|
141
|
+
}),
|
|
82
142
|
IsEnum(OrganizationType),
|
|
83
143
|
IsNotEmpty(),
|
|
84
144
|
__metadata("design:type", String)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"register.dto.js","sourceRoot":"","sources":["../../../../../src/modules/auth/dtos/register.dto.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,UAAU,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAClK,OAAO,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B,WAAW,EAAE,0BAA0B;QACvC,OAAO,EAAE,gBAAgB;QACzB,SAAS,EAAE,CAAC;QACZ,OAAO,EAAE,cAAc,CAAC,MAAM;KACjC,CAAC;IACD,QAAQ,EAAE;IACV,SAAS,CAAC,CAAC,CAAC;IACZ,OAAO,CAAC,cAAc,EAAE,EAAE,OAAO,EAAE,sBAAsB,EAAE,CAAC;IAC5D,UAAU,EAAE;;6CACK;AAUlB;IARC,WAAW,CAAC;QACT,WAAW,EAAE,mBAAmB;QAChC,OAAO,EAAE,kCAAkC;QAC3C,SAAS,EAAE,EAAE;KAChB,CAAC;IACD,QAAQ,EAAE;IACV,UAAU,EAAE;IACZ,SAAS,CAAC,EAAE,CAAC;;4CACG;AASjB;IAPC,WAAW,CAAC;QACT,WAAW,EAAE,sBAAsB;QACnC,IAAI,EAAE,aAAa;KACtB,CAAC;IACD,cAAc,EAAE;IAChB,IAAI,CAAC,GAAG,EAAE,CAAC,aAAa,CAAC;IACzB,UAAU,EAAE;8BACA,aAAa;+CAAC;AAS3B;IAPC,WAAW,CAAC;QACT,WAAW,EAAE,0BAA0B;QACvC,OAAO,EAAE,mCAAmC;QAC5C,MAAM,EAAE,KAAK;KAChB,CAAC;IACD,KAAK,CAAC,EAAE,EAAE,EAAE,OAAO,EAAE,sDAAsD,EAAE,CAAC;IAC9E,UAAU,EAAE;;+CACO;AASpB;IAPC,WAAW,CAAC;QACT,WAAW,EAAE,sBAAsB;QACnC,IAAI,EAAE,gBAAgB;QACtB,OAAO,EAAE,gBAAgB,CAAC,MAAM;KACnC,CAAC;IACD,MAAM,CAAC,gBAAgB,CAAC;IACxB,UAAU,EAAE;;4CACc"}
|
|
@@ -8,14 +8,23 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
8
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
9
|
};
|
|
10
10
|
import { IsNotEmpty, IsString } from "class-validator";
|
|
11
|
+
import { ApiProperty } from "@nestjs/swagger";
|
|
11
12
|
export class VerifyOTPDto {
|
|
12
13
|
}
|
|
13
14
|
__decorate([
|
|
15
|
+
ApiProperty({
|
|
16
|
+
description: 'Verification token received during registration/login',
|
|
17
|
+
example: 'abc123def456'
|
|
18
|
+
}),
|
|
14
19
|
IsString(),
|
|
15
20
|
IsNotEmpty(),
|
|
16
21
|
__metadata("design:type", String)
|
|
17
22
|
], VerifyOTPDto.prototype, "verificationToken", void 0);
|
|
18
23
|
__decorate([
|
|
24
|
+
ApiProperty({
|
|
25
|
+
description: 'One-time password received via SMS/email',
|
|
26
|
+
example: '123456'
|
|
27
|
+
}),
|
|
19
28
|
IsString(),
|
|
20
29
|
IsNotEmpty(),
|
|
21
30
|
__metadata("design:type", String)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"verify-otp.dto.js","sourceRoot":"","sources":["../../../../../src/modules/auth/dtos/verify-otp.dto.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"verify-otp.dto.js","sourceRoot":"","sources":["../../../../../src/modules/auth/dtos/verify-otp.dto.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE9C,MAAM,OAAO,YAAY;CAgBxB;AATG;IANC,WAAW,CAAC;QACT,WAAW,EAAE,uDAAuD;QACpE,OAAO,EAAE,cAAc;KAC1B,CAAC;IACD,QAAQ,EAAE;IACV,UAAU,EAAE;;uDACc;AAQ3B;IANC,WAAW,CAAC;QACT,WAAW,EAAE,0CAA0C;QACvD,OAAO,EAAE,QAAQ;KACpB,CAAC;IACD,QAAQ,EAAE;IACV,UAAU,EAAE;;yCACA"}
|
|
@@ -8,31 +8,55 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
8
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
9
|
};
|
|
10
10
|
import { IsBoolean, IsEnum, IsNotEmpty, IsNumber, IsOptional } from "class-validator";
|
|
11
|
+
import { ApiProperty, ApiPropertyOptional } from "@nestjs/swagger";
|
|
11
12
|
import { GuardianRelationStatus } from "../enums/guardian-relation-status.enum";
|
|
12
13
|
import { GuardianRelationship } from "../enums/guardian-relationship.enum";
|
|
13
14
|
export class CreateGuardianRelationDto {
|
|
14
15
|
}
|
|
15
16
|
__decorate([
|
|
17
|
+
ApiProperty({
|
|
18
|
+
description: 'ID of the guardian user',
|
|
19
|
+
example: 123
|
|
20
|
+
}),
|
|
16
21
|
IsNumber(),
|
|
17
22
|
IsNotEmpty(),
|
|
18
23
|
__metadata("design:type", Number)
|
|
19
24
|
], CreateGuardianRelationDto.prototype, "guardianId", void 0);
|
|
20
25
|
__decorate([
|
|
26
|
+
ApiProperty({
|
|
27
|
+
description: 'ID of the dependent user',
|
|
28
|
+
example: 456
|
|
29
|
+
}),
|
|
21
30
|
IsNumber(),
|
|
22
31
|
IsNotEmpty(),
|
|
23
32
|
__metadata("design:type", Number)
|
|
24
33
|
], CreateGuardianRelationDto.prototype, "dependentId", void 0);
|
|
25
34
|
__decorate([
|
|
35
|
+
ApiPropertyOptional({
|
|
36
|
+
description: 'Relationship between guardian and dependent',
|
|
37
|
+
enum: GuardianRelationship,
|
|
38
|
+
example: GuardianRelationship.PARENT
|
|
39
|
+
}),
|
|
26
40
|
IsEnum(GuardianRelationship),
|
|
27
41
|
IsOptional(),
|
|
28
42
|
__metadata("design:type", String)
|
|
29
43
|
], CreateGuardianRelationDto.prototype, "relationship", void 0);
|
|
30
44
|
__decorate([
|
|
45
|
+
ApiPropertyOptional({
|
|
46
|
+
description: 'Whether this is the primary guardian',
|
|
47
|
+
example: true,
|
|
48
|
+
default: false
|
|
49
|
+
}),
|
|
31
50
|
IsBoolean(),
|
|
32
51
|
IsOptional(),
|
|
33
52
|
__metadata("design:type", Boolean)
|
|
34
53
|
], CreateGuardianRelationDto.prototype, "isPrimary", void 0);
|
|
35
54
|
__decorate([
|
|
55
|
+
ApiPropertyOptional({
|
|
56
|
+
description: 'Status of the guardian relation',
|
|
57
|
+
enum: GuardianRelationStatus,
|
|
58
|
+
example: GuardianRelationStatus.PENDING
|
|
59
|
+
}),
|
|
36
60
|
IsEnum(GuardianRelationStatus),
|
|
37
61
|
IsOptional(),
|
|
38
62
|
__metadata("design:type", String)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-guardian-relation.dto.js","sourceRoot":"","sources":["../../../../../src/modules/user/dtos/create-guardian-relation.dto.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AACtF,OAAO,EAAE,sBAAsB,EAAE,MAAM,wCAAwC,CAAC;AAChF,OAAO,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAE3E,MAAM,OAAO,yBAAyB;
|
|
1
|
+
{"version":3,"file":"create-guardian-relation.dto.js","sourceRoot":"","sources":["../../../../../src/modules/user/dtos/create-guardian-relation.dto.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AACtF,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AACnE,OAAO,EAAE,sBAAsB,EAAE,MAAM,wCAAwC,CAAC;AAChF,OAAO,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAE3E,MAAM,OAAO,yBAAyB;CA2CrC;AApCG;IANC,WAAW,CAAC;QACT,WAAW,EAAE,yBAAyB;QACtC,OAAO,EAAE,GAAG;KACf,CAAC;IACD,QAAQ,EAAE;IACV,UAAU,EAAE;;6DACO;AAQpB;IANC,WAAW,CAAC;QACT,WAAW,EAAE,0BAA0B;QACvC,OAAO,EAAE,GAAG;KACf,CAAC;IACD,QAAQ,EAAE;IACV,UAAU,EAAE;;8DACQ;AASrB;IAPC,mBAAmB,CAAC;QACjB,WAAW,EAAE,6CAA6C;QAC1D,IAAI,EAAE,oBAAoB;QAC1B,OAAO,EAAE,oBAAoB,CAAC,MAAM;KACvC,CAAC;IACD,MAAM,CAAC,oBAAoB,CAAC;IAC5B,UAAU,EAAE;;+DACuB;AASpC;IAPC,mBAAmB,CAAC;QACjB,WAAW,EAAE,sCAAsC;QACnD,OAAO,EAAE,IAAI;QACb,OAAO,EAAE,KAAK;KACjB,CAAC;IACD,SAAS,EAAE;IACX,UAAU,EAAE;;4DACO;AASpB;IAPC,mBAAmB,CAAC;QACjB,WAAW,EAAE,iCAAiC;QAC9C,IAAI,EAAE,sBAAsB;QAC5B,OAAO,EAAE,sBAAsB,CAAC,OAAO;KAC1C,CAAC;IACD,MAAM,CAAC,sBAAsB,CAAC;IAC9B,UAAU,EAAE;;yDACmB"}
|
|
@@ -8,6 +8,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
8
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
9
|
};
|
|
10
10
|
import { ArrayNotEmpty, IsArray, IsBoolean, IsDate, IsEmail, IsEnum, IsNotEmpty, IsNumber, IsOptional, IsPhoneNumber, IsString, Matches, MaxLength, MinLength, ValidateNested, } from 'class-validator';
|
|
11
|
+
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
|
11
12
|
import { SentenceCase } from '../../../decorators/case-decorators';
|
|
12
13
|
import { UserStatus } from '../enums/user-status.enum';
|
|
13
14
|
import { PASSWORD_ERROR_MESSAGE, PASSWORD_REGEX } from '../../common/constants/password-regex.const';
|
|
@@ -17,6 +18,12 @@ import { GuardianDto } from './guardian.dto';
|
|
|
17
18
|
export class CreateUserDto {
|
|
18
19
|
}
|
|
19
20
|
__decorate([
|
|
21
|
+
ApiProperty({
|
|
22
|
+
description: 'Full name of the user',
|
|
23
|
+
example: 'John Doe',
|
|
24
|
+
minLength: 2,
|
|
25
|
+
maxLength: 50
|
|
26
|
+
}),
|
|
20
27
|
IsString(),
|
|
21
28
|
IsNotEmpty(),
|
|
22
29
|
MinLength(2),
|
|
@@ -25,18 +32,36 @@ __decorate([
|
|
|
25
32
|
__metadata("design:type", String)
|
|
26
33
|
], CreateUserDto.prototype, "name", void 0);
|
|
27
34
|
__decorate([
|
|
35
|
+
ApiProperty({
|
|
36
|
+
description: 'Email address of the user',
|
|
37
|
+
example: 'john.doe@example.com',
|
|
38
|
+
format: 'email',
|
|
39
|
+
maxLength: 50
|
|
40
|
+
}),
|
|
28
41
|
IsEmail(),
|
|
29
42
|
IsNotEmpty(),
|
|
30
43
|
MaxLength(50),
|
|
31
44
|
__metadata("design:type", String)
|
|
32
45
|
], CreateUserDto.prototype, "email", void 0);
|
|
33
46
|
__decorate([
|
|
47
|
+
ApiPropertyOptional({
|
|
48
|
+
description: 'Phone number with country code',
|
|
49
|
+
example: '+1234567890',
|
|
50
|
+
format: 'phone',
|
|
51
|
+
maxLength: 20
|
|
52
|
+
}),
|
|
34
53
|
IsPhoneNumber(),
|
|
35
54
|
MaxLength(20),
|
|
36
55
|
IsOptional(),
|
|
37
56
|
__metadata("design:type", String)
|
|
38
57
|
], CreateUserDto.prototype, "phoneNumber", void 0);
|
|
39
58
|
__decorate([
|
|
59
|
+
ApiProperty({
|
|
60
|
+
description: 'User roles',
|
|
61
|
+
enum: Roles,
|
|
62
|
+
isArray: true,
|
|
63
|
+
example: [Roles.ORGANIZATION_USER]
|
|
64
|
+
}),
|
|
40
65
|
IsArray(),
|
|
41
66
|
IsEnum(Roles, { each: true }),
|
|
42
67
|
ArrayNotEmpty(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-user.dto.js","sourceRoot":"","sources":["../../../../../src/modules/user/dtos/create-user.dto.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EACH,aAAa,EACb,OAAO,EACP,SAAS,EACT,MAAM,EACN,OAAO,EACP,MAAM,EACN,UAAU,EACV,QAAQ,EACR,UAAU,EACV,aAAa,EACb,QAAQ,EACR,OAAO,EACP,SAAS,EACT,SAAS,EACT,cAAc,GACjB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAC;AACnE,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,sBAAsB,EAAE,cAAc,EAAE,MAAM,6CAA6C,CAAC;AACrG,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,MAAM,OAAO,aAAa;
|
|
1
|
+
{"version":3,"file":"create-user.dto.js","sourceRoot":"","sources":["../../../../../src/modules/user/dtos/create-user.dto.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EACH,aAAa,EACb,OAAO,EACP,SAAS,EACT,MAAM,EACN,OAAO,EACP,MAAM,EACN,UAAU,EACV,QAAQ,EACR,UAAU,EACV,aAAa,EACb,QAAQ,EACR,OAAO,EACP,SAAS,EACT,SAAS,EACT,cAAc,GACjB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AACnE,OAAO,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAC;AACnE,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,sBAAsB,EAAE,cAAc,EAAE,MAAM,6CAA6C,CAAC;AACrG,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,IAAI,EAAE,MAAM,m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hB;IAHC,QAAQ,EAAE;IACV,UAAU,EAAE;IACZ,SAAS,CAAC,EAAE,CAAC;;kDACO;AAIrB;IAFC,MAAM,CAAC,UAAU,CAAC;IAClB,UAAU,EAAE;;6CACO;AAKpB;IAHC,cAAc,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IAC9B,IAAI,CAAC,GAAG,EAAE,CAAC,WAAW,CAAC;IACvB,UAAU,EAAE;;gDACa;AAK1B;IAHC,OAAO,EAAE;IACT,QAAQ,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IAC5B,UAAU,EAAE;;mDACW;AAIxB;IAFC,SAAS,EAAE;IACX,UAAU,EAAE;;sDACa;AAI1B;IAFC,QAAQ,EAAE;IACV,UAAU,EAAE;;wDACc;AAI3B;IAFC,MAAM,EAAE;IACR,UAAU,EAAE;8BACgB,IAAI;iEAAC;AAIlC;IAFC,QAAQ,EAAE;IACV,UAAU,EAAE;;sDACY;AAIzB;IAFC,QAAQ,EAAE;IACV,UAAU,EAAE;;qDACW"}
|
|
@@ -8,35 +8,64 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
8
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
9
|
};
|
|
10
10
|
import { IsBoolean, IsEmail, IsEnum, IsNotEmpty, IsNumber, IsOptional, IsPhoneNumber, IsString } from "class-validator";
|
|
11
|
+
import { ApiProperty, ApiPropertyOptional } from "@nestjs/swagger";
|
|
11
12
|
import { GuardianRelationship } from "../enums/guardian-relationship.enum";
|
|
12
13
|
export class GuardianDto {
|
|
13
14
|
}
|
|
14
15
|
__decorate([
|
|
16
|
+
ApiPropertyOptional({
|
|
17
|
+
description: 'User ID (if guardian is a system user)',
|
|
18
|
+
example: 123
|
|
19
|
+
}),
|
|
15
20
|
IsNumber(),
|
|
16
21
|
IsOptional(),
|
|
17
22
|
__metadata("design:type", Number)
|
|
18
23
|
], GuardianDto.prototype, "userId", void 0);
|
|
19
24
|
__decorate([
|
|
25
|
+
ApiProperty({
|
|
26
|
+
description: 'Guardian full name',
|
|
27
|
+
example: 'Jane Smith'
|
|
28
|
+
}),
|
|
20
29
|
IsString(),
|
|
21
30
|
IsNotEmpty(),
|
|
22
31
|
__metadata("design:type", String)
|
|
23
32
|
], GuardianDto.prototype, "name", void 0);
|
|
24
33
|
__decorate([
|
|
34
|
+
ApiProperty({
|
|
35
|
+
description: 'Guardian phone number with country code',
|
|
36
|
+
example: '+1234567890',
|
|
37
|
+
format: 'phone'
|
|
38
|
+
}),
|
|
25
39
|
IsPhoneNumber(),
|
|
26
40
|
IsNotEmpty(),
|
|
27
41
|
__metadata("design:type", String)
|
|
28
42
|
], GuardianDto.prototype, "phoneNumber", void 0);
|
|
29
43
|
__decorate([
|
|
44
|
+
ApiPropertyOptional({
|
|
45
|
+
description: 'Whether this is the primary guardian',
|
|
46
|
+
example: true,
|
|
47
|
+
default: false
|
|
48
|
+
}),
|
|
30
49
|
IsBoolean(),
|
|
31
50
|
IsOptional(),
|
|
32
51
|
__metadata("design:type", Boolean)
|
|
33
52
|
], GuardianDto.prototype, "isPrimary", void 0);
|
|
34
53
|
__decorate([
|
|
54
|
+
ApiPropertyOptional({
|
|
55
|
+
description: 'Relationship to the dependent',
|
|
56
|
+
enum: GuardianRelationship,
|
|
57
|
+
example: GuardianRelationship.PARENT
|
|
58
|
+
}),
|
|
35
59
|
IsEnum(GuardianRelationship),
|
|
36
60
|
IsOptional(),
|
|
37
61
|
__metadata("design:type", String)
|
|
38
62
|
], GuardianDto.prototype, "relationship", void 0);
|
|
39
63
|
__decorate([
|
|
64
|
+
ApiPropertyOptional({
|
|
65
|
+
description: 'Guardian email address',
|
|
66
|
+
example: 'jane.smith@example.com',
|
|
67
|
+
format: 'email'
|
|
68
|
+
}),
|
|
40
69
|
IsEmail(),
|
|
41
70
|
IsString(),
|
|
42
71
|
__metadata("design:type", String)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"guardian.dto.js","sourceRoot":"","sources":["../../../../../src/modules/user/dtos/guardian.dto.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,UAAU,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AACxH,OAAO,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAE3E,MAAM,OAAO,WAAW;
|
|
1
|
+
{"version":3,"file":"guardian.dto.js","sourceRoot":"","sources":["../../../../../src/modules/user/dtos/guardian.dto.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,UAAU,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AACxH,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AACnE,OAAO,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAE3E,MAAM,OAAO,WAAW;CAoDvB;AA7CG;IANC,mBAAmB,CAAC;QACjB,WAAW,EAAE,wCAAwC;QACrD,OAAO,EAAE,GAAG;KACf,CAAC;IACD,QAAQ,EAAE;IACV,UAAU,EAAE;;2CACG;AAQhB;IANC,WAAW,CAAC;QACT,WAAW,EAAE,oBAAoB;QACjC,OAAO,EAAE,YAAY;KACxB,CAAC;IACD,QAAQ,EAAE;IACV,UAAU,EAAE;;yCACC;AASd;IAPC,WAAW,CAAC;QACT,WAAW,EAAE,yCAAyC;QACtD,OAAO,EAAE,aAAa;QACtB,MAAM,EAAE,OAAO;KAClB,CAAC;IACD,aAAa,EAAE;IACf,UAAU,EAAE;;gDACQ;AASrB;IAPC,mBAAmB,CAAC;QACjB,WAAW,EAAE,sCAAsC;QACnD,OAAO,EAAE,IAAI;QACb,OAAO,EAAE,KAAK;KACjB,CAAC;IACD,SAAS,EAAE;IACX,UAAU,EAAE;;8CACO;AASpB;IAPC,mBAAmB,CAAC;QACjB,WAAW,EAAE,+BAA+B;QAC5C,IAAI,EAAE,oBAAoB;QAC1B,OAAO,EAAE,oBAAoB,CAAC,MAAM;KACvC,CAAC;IACD,MAAM,CAAC,oBAAoB,CAAC;IAC5B,UAAU,EAAE;;iDACuB;AASpC;IAPC,mBAAmB,CAAC;QACjB,WAAW,EAAE,wBAAwB;QACrC,OAAO,EAAE,wBAAwB;QACjC,MAAM,EAAE,OAAO;KAClB,CAAC;IACD,OAAO,EAAE;IACT,QAAQ,EAAE;;0CACI"}
|
|
@@ -8,10 +8,16 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
8
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
9
|
};
|
|
10
10
|
import { IsEnum, IsNotEmpty } from "class-validator";
|
|
11
|
+
import { ApiProperty } from "@nestjs/swagger";
|
|
11
12
|
import { GuardianRelationStatus } from "../enums/guardian-relation-status.enum";
|
|
12
13
|
export class UpdateGuardianRelationStatusDto {
|
|
13
14
|
}
|
|
14
15
|
__decorate([
|
|
16
|
+
ApiProperty({
|
|
17
|
+
description: 'New status for the guardian relation',
|
|
18
|
+
enum: GuardianRelationStatus,
|
|
19
|
+
example: GuardianRelationStatus.ACCEPTED
|
|
20
|
+
}),
|
|
15
21
|
IsEnum(GuardianRelationStatus),
|
|
16
22
|
IsNotEmpty(),
|
|
17
23
|
__metadata("design:type", String)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-guardian-relation-status.dto.js","sourceRoot":"","sources":["../../../../../src/modules/user/dtos/update-guardian-relation-status.dto.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,EAAE,sBAAsB,EAAE,MAAM,wCAAwC,CAAC;AAEhF,MAAM,OAAO,+BAA+B;
|
|
1
|
+
{"version":3,"file":"update-guardian-relation-status.dto.js","sourceRoot":"","sources":["../../../../../src/modules/user/dtos/update-guardian-relation-status.dto.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAE,sBAAsB,EAAE,MAAM,wCAAwC,CAAC;AAEhF,MAAM,OAAO,+BAA+B;CAS3C;AADC;IAPC,WAAW,CAAC;QACX,WAAW,EAAE,sCAAsC;QACnD,IAAI,EAAE,sBAAsB;QAC5B,OAAO,EAAE,sBAAsB,CAAC,QAAQ;KACzC,CAAC;IACD,MAAM,CAAC,sBAAsB,CAAC;IAC9B,UAAU,EAAE;;+DACmB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "grm-shared-library",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.77",
|
|
4
4
|
"main": "dist/cjs/index.js",
|
|
5
5
|
"module": "dist/esm/index.js",
|
|
6
6
|
"types": "dist/types/index.d.ts",
|
|
@@ -38,19 +38,21 @@
|
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@types/express": "^5.0.3",
|
|
40
40
|
"@types/node": "^22.10.5",
|
|
41
|
-
"
|
|
42
|
-
"
|
|
41
|
+
"rimraf": "^5.0.5",
|
|
42
|
+
"typescript": "^5.7.3"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@nestjs/common": "^11.0.0",
|
|
46
46
|
"@nestjs/core": "^11.0.0",
|
|
47
47
|
"@nestjs/mapped-types": "^2.0.6",
|
|
48
48
|
"@nestjs/microservices": "^11.0.0",
|
|
49
|
+
"@nestjs/swagger": "^11.2.0",
|
|
49
50
|
"@sentry/node": "^8.0.0",
|
|
50
51
|
"class-transformer": "^0.5.0",
|
|
51
52
|
"class-validator": "^0.14.0",
|
|
52
53
|
"express": "^5.1.0",
|
|
53
|
-
"rxjs": "^7.8.2"
|
|
54
|
+
"rxjs": "^7.8.2",
|
|
55
|
+
"swagger-ui-express": "^5.0.1"
|
|
54
56
|
},
|
|
55
57
|
"peerDependencies": {
|
|
56
58
|
"@nestjs/common": "^11.0.0",
|