@experts_hub/shared 1.0.357 → 1.0.359
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/entities/user.entity.d.ts +1 -0
- package/dist/index.d.mts +15 -1
- package/dist/index.d.ts +15 -1
- package/dist/index.js +702 -671
- package/dist/index.mjs +294 -265
- package/dist/modules/authentication/dto/index.d.ts +1 -0
- package/dist/modules/authentication/dto/login-via-otp.dto.d.ts +11 -0
- package/dist/modules/authentication/pattern/pattern.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -13,6 +13,7 @@ var __decorateClass = (decorators, target, key, kind) => {
|
|
|
13
13
|
var AUTHENTICATION_PATTERN = {
|
|
14
14
|
handleValidateToken: "handle.validate.token",
|
|
15
15
|
handleLogin: "handle.login",
|
|
16
|
+
handleLoginViaOtp: "handle.login.via.otp",
|
|
16
17
|
handleRefreshToken: "handle.refresh.token",
|
|
17
18
|
handleLogout: "handle.logout",
|
|
18
19
|
handleLogoutAll: "handle.logout.all",
|
|
@@ -47,28 +48,51 @@ __decorateClass([
|
|
|
47
48
|
})
|
|
48
49
|
], LoginDto.prototype, "scope", 2);
|
|
49
50
|
|
|
51
|
+
// src/modules/authentication/dto/login-via-otp.dto.ts
|
|
52
|
+
import { IsEnum as IsEnum2, IsNotEmpty as IsNotEmpty2 } from "class-validator";
|
|
53
|
+
var LoginViaOtpScopeEnum = /* @__PURE__ */ ((LoginViaOtpScopeEnum2) => {
|
|
54
|
+
LoginViaOtpScopeEnum2["ADMIN"] = "ADMIN";
|
|
55
|
+
LoginViaOtpScopeEnum2["SUB_ADMIN"] = "SUB_ADMIN";
|
|
56
|
+
LoginViaOtpScopeEnum2["CLIENT"] = "CLIENT";
|
|
57
|
+
LoginViaOtpScopeEnum2["FREELANCER"] = "FREELANCER";
|
|
58
|
+
return LoginViaOtpScopeEnum2;
|
|
59
|
+
})(LoginViaOtpScopeEnum || {});
|
|
60
|
+
var LoginViaOtpDto = class {
|
|
61
|
+
};
|
|
62
|
+
__decorateClass([
|
|
63
|
+
IsNotEmpty2({ message: "Please enter email." })
|
|
64
|
+
], LoginViaOtpDto.prototype, "email", 2);
|
|
65
|
+
__decorateClass([
|
|
66
|
+
IsNotEmpty2({ message: "Please enter otp." })
|
|
67
|
+
], LoginViaOtpDto.prototype, "otp", 2);
|
|
68
|
+
__decorateClass([
|
|
69
|
+
IsEnum2(LoginViaOtpScopeEnum, {
|
|
70
|
+
message: `Scope must be one of: ${Object.values(LoginViaOtpScopeEnum).join(", ")}`
|
|
71
|
+
})
|
|
72
|
+
], LoginViaOtpDto.prototype, "scope", 2);
|
|
73
|
+
|
|
50
74
|
// src/modules/authentication/dto/refresh.dto.ts
|
|
51
75
|
import {
|
|
52
|
-
IsNotEmpty as
|
|
76
|
+
IsNotEmpty as IsNotEmpty3
|
|
53
77
|
} from "class-validator";
|
|
54
78
|
var RefreshDto = class {
|
|
55
79
|
};
|
|
56
80
|
__decorateClass([
|
|
57
|
-
|
|
81
|
+
IsNotEmpty3({ message: "Please provide refresh token." })
|
|
58
82
|
], RefreshDto.prototype, "refreshToken", 2);
|
|
59
83
|
|
|
60
84
|
// src/modules/authentication/dto/logout.dto.ts
|
|
61
85
|
import {
|
|
62
|
-
IsNotEmpty as
|
|
86
|
+
IsNotEmpty as IsNotEmpty4
|
|
63
87
|
} from "class-validator";
|
|
64
88
|
var LogoutDto = class {
|
|
65
89
|
};
|
|
66
90
|
__decorateClass([
|
|
67
|
-
|
|
91
|
+
IsNotEmpty4({ message: "Please provide refresh token." })
|
|
68
92
|
], LogoutDto.prototype, "refreshToken", 2);
|
|
69
93
|
|
|
70
94
|
// src/modules/authentication/dto/forgot-password.dto.ts
|
|
71
|
-
import { IsEmail, IsEnum as
|
|
95
|
+
import { IsEmail, IsEnum as IsEnum3, IsNotEmpty as IsNotEmpty5 } from "class-validator";
|
|
72
96
|
var ScopeEnum2 = /* @__PURE__ */ ((ScopeEnum5) => {
|
|
73
97
|
ScopeEnum5["ADMIN"] = "ADMIN";
|
|
74
98
|
ScopeEnum5["CLIENT"] = "CLIENT";
|
|
@@ -78,19 +102,19 @@ var ScopeEnum2 = /* @__PURE__ */ ((ScopeEnum5) => {
|
|
|
78
102
|
var ForgotPasswordDto = class {
|
|
79
103
|
};
|
|
80
104
|
__decorateClass([
|
|
81
|
-
|
|
105
|
+
IsNotEmpty5({ message: "Please enter email." }),
|
|
82
106
|
IsEmail({}, { message: "Please enter a valid email." })
|
|
83
107
|
], ForgotPasswordDto.prototype, "email", 2);
|
|
84
108
|
__decorateClass([
|
|
85
|
-
|
|
109
|
+
IsEnum3(ScopeEnum2, {
|
|
86
110
|
message: `Scope must be one of: ${Object.values(ScopeEnum2).join(", ")}`
|
|
87
111
|
})
|
|
88
112
|
], ForgotPasswordDto.prototype, "scope", 2);
|
|
89
113
|
|
|
90
114
|
// src/modules/authentication/dto/reset-password.dto.ts
|
|
91
115
|
import {
|
|
92
|
-
IsEnum as
|
|
93
|
-
IsNotEmpty as
|
|
116
|
+
IsEnum as IsEnum4,
|
|
117
|
+
IsNotEmpty as IsNotEmpty6,
|
|
94
118
|
Matches,
|
|
95
119
|
MaxLength,
|
|
96
120
|
MinLength
|
|
@@ -104,10 +128,10 @@ var ScopeEnum3 = /* @__PURE__ */ ((ScopeEnum5) => {
|
|
|
104
128
|
var ResetPasswordDto = class {
|
|
105
129
|
};
|
|
106
130
|
__decorateClass([
|
|
107
|
-
|
|
131
|
+
IsNotEmpty6({ message: "Please enter token." })
|
|
108
132
|
], ResetPasswordDto.prototype, "token", 2);
|
|
109
133
|
__decorateClass([
|
|
110
|
-
|
|
134
|
+
IsNotEmpty6({ message: "Please enter password." }),
|
|
111
135
|
MinLength(6),
|
|
112
136
|
MaxLength(32),
|
|
113
137
|
Matches(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
@@ -115,14 +139,14 @@ __decorateClass([
|
|
|
115
139
|
})
|
|
116
140
|
], ResetPasswordDto.prototype, "password", 2);
|
|
117
141
|
__decorateClass([
|
|
118
|
-
|
|
142
|
+
IsEnum4(ScopeEnum3, {
|
|
119
143
|
message: `Scope must be one of: ${Object.values(ScopeEnum3).join(", ")}`
|
|
120
144
|
})
|
|
121
145
|
], ResetPasswordDto.prototype, "scope", 2);
|
|
122
146
|
|
|
123
147
|
// src/modules/authentication/dto/set-password.dto.ts
|
|
124
148
|
import {
|
|
125
|
-
IsNotEmpty as
|
|
149
|
+
IsNotEmpty as IsNotEmpty7,
|
|
126
150
|
Matches as Matches2,
|
|
127
151
|
MaxLength as MaxLength2,
|
|
128
152
|
MinLength as MinLength2
|
|
@@ -130,10 +154,10 @@ import {
|
|
|
130
154
|
var SetPasswordDto = class {
|
|
131
155
|
};
|
|
132
156
|
__decorateClass([
|
|
133
|
-
|
|
157
|
+
IsNotEmpty7({ message: "Please enter token." })
|
|
134
158
|
], SetPasswordDto.prototype, "token", 2);
|
|
135
159
|
__decorateClass([
|
|
136
|
-
|
|
160
|
+
IsNotEmpty7({ message: "Please enter password." }),
|
|
137
161
|
MinLength2(6),
|
|
138
162
|
MaxLength2(32),
|
|
139
163
|
Matches2(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
@@ -143,8 +167,8 @@ __decorateClass([
|
|
|
143
167
|
|
|
144
168
|
// src/modules/authentication/dto/reset-password-token-validation.dto.ts
|
|
145
169
|
import {
|
|
146
|
-
IsEnum as
|
|
147
|
-
IsNotEmpty as
|
|
170
|
+
IsEnum as IsEnum6,
|
|
171
|
+
IsNotEmpty as IsNotEmpty8
|
|
148
172
|
} from "class-validator";
|
|
149
173
|
var ScopeEnum4 = /* @__PURE__ */ ((ScopeEnum5) => {
|
|
150
174
|
ScopeEnum5["ADMIN"] = "ADMIN";
|
|
@@ -155,10 +179,10 @@ var ScopeEnum4 = /* @__PURE__ */ ((ScopeEnum5) => {
|
|
|
155
179
|
var ResetPasswordTokenValidationDto = class {
|
|
156
180
|
};
|
|
157
181
|
__decorateClass([
|
|
158
|
-
|
|
182
|
+
IsNotEmpty8({ message: "Please enter token." })
|
|
159
183
|
], ResetPasswordTokenValidationDto.prototype, "token", 2);
|
|
160
184
|
__decorateClass([
|
|
161
|
-
|
|
185
|
+
IsEnum6(ScopeEnum4, {
|
|
162
186
|
message: `Scope must be one of: ${Object.values(ScopeEnum4).join(", ")}`
|
|
163
187
|
})
|
|
164
188
|
], ResetPasswordTokenValidationDto.prototype, "scope", 2);
|
|
@@ -172,7 +196,7 @@ var OTP_PATTERN = {
|
|
|
172
196
|
};
|
|
173
197
|
|
|
174
198
|
// src/modules/otp/dto/send-guest-otp.dto.ts
|
|
175
|
-
import { IsEnum as
|
|
199
|
+
import { IsEnum as IsEnum7, IsNotEmpty as IsNotEmpty9, IsOptional, IsString } from "class-validator";
|
|
176
200
|
var SendGuestOtpPurposeEnum = /* @__PURE__ */ ((SendGuestOtpPurposeEnum2) => {
|
|
177
201
|
SendGuestOtpPurposeEnum2["ACCOUNT_VERIFICATION"] = "ACCOUNT_VERIFICATION";
|
|
178
202
|
return SendGuestOtpPurposeEnum2;
|
|
@@ -185,11 +209,11 @@ var SendGuestOtpScopeEnum = /* @__PURE__ */ ((SendGuestOtpScopeEnum2) => {
|
|
|
185
209
|
var SendGuestOtpDto = class {
|
|
186
210
|
};
|
|
187
211
|
__decorateClass([
|
|
188
|
-
|
|
212
|
+
IsNotEmpty9({ message: "Please enter full name." }),
|
|
189
213
|
IsString({ message: "Please enter valid full name." })
|
|
190
214
|
], SendGuestOtpDto.prototype, "fullName", 2);
|
|
191
215
|
__decorateClass([
|
|
192
|
-
|
|
216
|
+
IsNotEmpty9({ message: "Please enter target." }),
|
|
193
217
|
IsString({ message: "Please enter valid target." })
|
|
194
218
|
], SendGuestOtpDto.prototype, "target", 2);
|
|
195
219
|
__decorateClass([
|
|
@@ -197,16 +221,16 @@ __decorateClass([
|
|
|
197
221
|
IsString({ message: "Please enter valid fallback target." })
|
|
198
222
|
], SendGuestOtpDto.prototype, "fallbackTarget", 2);
|
|
199
223
|
__decorateClass([
|
|
200
|
-
|
|
201
|
-
|
|
224
|
+
IsNotEmpty9({ message: "Please enter OTP purpose." }),
|
|
225
|
+
IsEnum7(SendGuestOtpPurposeEnum, { message: "Purpose must be a valid OTP purpose" })
|
|
202
226
|
], SendGuestOtpDto.prototype, "purpose", 2);
|
|
203
227
|
__decorateClass([
|
|
204
|
-
|
|
205
|
-
|
|
228
|
+
IsNotEmpty9({ message: "Please enter scope." }),
|
|
229
|
+
IsEnum7(SendGuestOtpScopeEnum, { message: "scope must be a valid" })
|
|
206
230
|
], SendGuestOtpDto.prototype, "scope", 2);
|
|
207
231
|
|
|
208
232
|
// src/modules/otp/dto/verify-guest-otp.dto.ts
|
|
209
|
-
import { IsEnum as
|
|
233
|
+
import { IsEnum as IsEnum8, IsNotEmpty as IsNotEmpty10, IsString as IsString2, Length } from "class-validator";
|
|
210
234
|
var VerifyGuestOtpPurposeEnum = /* @__PURE__ */ ((VerifyGuestOtpPurposeEnum2) => {
|
|
211
235
|
VerifyGuestOtpPurposeEnum2["ACCOUNT_VERIFICATION"] = "ACCOUNT_VERIFICATION";
|
|
212
236
|
return VerifyGuestOtpPurposeEnum2;
|
|
@@ -214,17 +238,17 @@ var VerifyGuestOtpPurposeEnum = /* @__PURE__ */ ((VerifyGuestOtpPurposeEnum2) =>
|
|
|
214
238
|
var VerifyGuestOtpDto = class {
|
|
215
239
|
};
|
|
216
240
|
__decorateClass([
|
|
217
|
-
|
|
241
|
+
IsNotEmpty10({ message: "Please enter target." }),
|
|
218
242
|
IsString2({ message: "Please enter valid target." })
|
|
219
243
|
], VerifyGuestOtpDto.prototype, "target", 2);
|
|
220
244
|
__decorateClass([
|
|
221
|
-
|
|
245
|
+
IsNotEmpty10({ message: "Please enter otp." }),
|
|
222
246
|
IsString2({ message: "Please enter valid otp." }),
|
|
223
247
|
Length(4, 6, { message: "OTP must be between 4 and 6 characters" })
|
|
224
248
|
], VerifyGuestOtpDto.prototype, "otp", 2);
|
|
225
249
|
__decorateClass([
|
|
226
|
-
|
|
227
|
-
|
|
250
|
+
IsNotEmpty10({ message: "Please enter OTP purpose." }),
|
|
251
|
+
IsEnum8(VerifyGuestOtpPurposeEnum, {
|
|
228
252
|
message: "Purpose must be a valid OTP purpose"
|
|
229
253
|
})
|
|
230
254
|
], VerifyGuestOtpDto.prototype, "purpose", 2);
|
|
@@ -243,7 +267,7 @@ var ONBOARDING_PATTERN = {
|
|
|
243
267
|
|
|
244
268
|
// src/modules/onboarding/dto/freelancer-create-account.dto.ts
|
|
245
269
|
import {
|
|
246
|
-
IsNotEmpty as
|
|
270
|
+
IsNotEmpty as IsNotEmpty11,
|
|
247
271
|
IsEmail as IsEmail2,
|
|
248
272
|
Matches as Matches3,
|
|
249
273
|
IsString as IsString3,
|
|
@@ -423,21 +447,21 @@ function IsBusinessEmail(validationOptions) {
|
|
|
423
447
|
var FreelancerCreateAccountDto = class {
|
|
424
448
|
};
|
|
425
449
|
__decorateClass([
|
|
426
|
-
|
|
450
|
+
IsNotEmpty11({ message: "Please enter full name." }),
|
|
427
451
|
IsString3({ message: "Please enter valid full name." })
|
|
428
452
|
], FreelancerCreateAccountDto.prototype, "fullName", 2);
|
|
429
453
|
__decorateClass([
|
|
430
|
-
|
|
454
|
+
IsNotEmpty11({ message: "Please enter email." }),
|
|
431
455
|
IsEmail2()
|
|
432
456
|
], FreelancerCreateAccountDto.prototype, "email", 2);
|
|
433
457
|
__decorateClass([
|
|
434
|
-
|
|
458
|
+
IsNotEmpty11({ message: "Please enter mobile code." }),
|
|
435
459
|
Matches3(/^\+\d{1,4}$/, {
|
|
436
460
|
message: "Please enter a valid country mobile code (e.g., +91, +1, +44)."
|
|
437
461
|
})
|
|
438
462
|
], FreelancerCreateAccountDto.prototype, "mobileCode", 2);
|
|
439
463
|
__decorateClass([
|
|
440
|
-
|
|
464
|
+
IsNotEmpty11({ message: "Please enter mobile number." }),
|
|
441
465
|
IsValidMobileNumber({ message: "Mobile number is not valid for the selected country code." })
|
|
442
466
|
], FreelancerCreateAccountDto.prototype, "mobile", 2);
|
|
443
467
|
__decorateClass([
|
|
@@ -445,78 +469,78 @@ __decorateClass([
|
|
|
445
469
|
], FreelancerCreateAccountDto.prototype, "onBoardedBy", 2);
|
|
446
470
|
|
|
447
471
|
// src/modules/onboarding/dto/freelancer-upload-resume.dto.ts
|
|
448
|
-
import { IsUUID, IsNotEmpty as
|
|
472
|
+
import { IsUUID, IsNotEmpty as IsNotEmpty12 } from "class-validator";
|
|
449
473
|
var FreelancerUploadResumeDto = class {
|
|
450
474
|
};
|
|
451
475
|
__decorateClass([
|
|
452
|
-
|
|
476
|
+
IsNotEmpty12({ message: "Please enter uuid." }),
|
|
453
477
|
IsUUID()
|
|
454
478
|
], FreelancerUploadResumeDto.prototype, "uuid", 2);
|
|
455
479
|
|
|
456
480
|
// src/modules/onboarding/dto/freelancer-parse-resume.dto.ts
|
|
457
|
-
import { IsUUID as IsUUID2, IsNotEmpty as
|
|
481
|
+
import { IsUUID as IsUUID2, IsNotEmpty as IsNotEmpty13 } from "class-validator";
|
|
458
482
|
var FreelancerParseResumeDto = class {
|
|
459
483
|
};
|
|
460
484
|
__decorateClass([
|
|
461
|
-
|
|
485
|
+
IsNotEmpty13({ message: "Please enter uuid." }),
|
|
462
486
|
IsUUID2()
|
|
463
487
|
], FreelancerParseResumeDto.prototype, "uuid", 2);
|
|
464
488
|
|
|
465
489
|
// src/modules/onboarding/dto/freelancer-initiate-mcq-assessment.dto.ts
|
|
466
|
-
import { IsUUID as IsUUID3, IsNotEmpty as
|
|
490
|
+
import { IsUUID as IsUUID3, IsNotEmpty as IsNotEmpty14 } from "class-validator";
|
|
467
491
|
var FreelancerInitiateMcqAssessmentDto = class {
|
|
468
492
|
};
|
|
469
493
|
__decorateClass([
|
|
470
|
-
|
|
494
|
+
IsNotEmpty14({ message: "Please enter uuid." }),
|
|
471
495
|
IsUUID3()
|
|
472
496
|
], FreelancerInitiateMcqAssessmentDto.prototype, "uuid", 2);
|
|
473
497
|
|
|
474
498
|
// src/modules/onboarding/dto/freelancer-skip-ai-assessment.dto.ts
|
|
475
|
-
import { IsUUID as IsUUID4, IsNotEmpty as
|
|
499
|
+
import { IsUUID as IsUUID4, IsNotEmpty as IsNotEmpty15 } from "class-validator";
|
|
476
500
|
var FreelancerSkipAiAssessmentDto = class {
|
|
477
501
|
};
|
|
478
502
|
__decorateClass([
|
|
479
|
-
|
|
503
|
+
IsNotEmpty15({ message: "Please enter uuid." }),
|
|
480
504
|
IsUUID4()
|
|
481
505
|
], FreelancerSkipAiAssessmentDto.prototype, "uuid", 2);
|
|
482
506
|
|
|
483
507
|
// src/modules/onboarding/dto/freelancer-initiate-ai-assessment.dto.ts
|
|
484
|
-
import { IsUUID as IsUUID5, IsNotEmpty as
|
|
508
|
+
import { IsUUID as IsUUID5, IsNotEmpty as IsNotEmpty16 } from "class-validator";
|
|
485
509
|
var FreelancerInitiateAiAssessmentDto = class {
|
|
486
510
|
};
|
|
487
511
|
__decorateClass([
|
|
488
|
-
|
|
512
|
+
IsNotEmpty16({ message: "Please enter uuid." }),
|
|
489
513
|
IsUUID5()
|
|
490
514
|
], FreelancerInitiateAiAssessmentDto.prototype, "uuid", 2);
|
|
491
515
|
|
|
492
516
|
// src/modules/onboarding/dto/freelancer-capture-ai-assessment-status.dto.ts
|
|
493
|
-
import { IsUUID as IsUUID6, IsNotEmpty as
|
|
517
|
+
import { IsUUID as IsUUID6, IsNotEmpty as IsNotEmpty17, IsOptional as IsOptional3 } from "class-validator";
|
|
494
518
|
var FreelancerCaptureAiAssessmentStatusDto = class {
|
|
495
519
|
};
|
|
496
520
|
__decorateClass([
|
|
497
|
-
|
|
521
|
+
IsNotEmpty17({ message: "Please enter uuid." }),
|
|
498
522
|
IsUUID6()
|
|
499
523
|
], FreelancerCaptureAiAssessmentStatusDto.prototype, "uuid", 2);
|
|
500
524
|
__decorateClass([
|
|
501
|
-
|
|
525
|
+
IsNotEmpty17({ message: "Please enter assessment id." })
|
|
502
526
|
], FreelancerCaptureAiAssessmentStatusDto.prototype, "assessmentId", 2);
|
|
503
527
|
__decorateClass([
|
|
504
|
-
|
|
528
|
+
IsNotEmpty17({ message: "Please enter assessment status." })
|
|
505
529
|
], FreelancerCaptureAiAssessmentStatusDto.prototype, "assessmentStatus", 2);
|
|
506
530
|
__decorateClass([
|
|
507
531
|
IsOptional3()
|
|
508
532
|
], FreelancerCaptureAiAssessmentStatusDto.prototype, "iframeEventData", 2);
|
|
509
533
|
|
|
510
534
|
// src/modules/onboarding/dto/freelancer-development-preference.dto.ts
|
|
511
|
-
import { IsUUID as IsUUID7, IsNotEmpty as
|
|
535
|
+
import { IsUUID as IsUUID7, IsNotEmpty as IsNotEmpty18, IsBoolean } from "class-validator";
|
|
512
536
|
var FreelancerDevelopmentPreferenceDto = class {
|
|
513
537
|
};
|
|
514
538
|
__decorateClass([
|
|
515
|
-
|
|
539
|
+
IsNotEmpty18({ message: "Please enter uuid." }),
|
|
516
540
|
IsUUID7()
|
|
517
541
|
], FreelancerDevelopmentPreferenceDto.prototype, "uuid", 2);
|
|
518
542
|
__decorateClass([
|
|
519
|
-
|
|
543
|
+
IsNotEmpty18({ message: "Please select development flag." }),
|
|
520
544
|
IsBoolean()
|
|
521
545
|
], FreelancerDevelopmentPreferenceDto.prototype, "developer", 2);
|
|
522
546
|
|
|
@@ -524,18 +548,18 @@ __decorateClass([
|
|
|
524
548
|
import {
|
|
525
549
|
IsUUID as IsUUID8,
|
|
526
550
|
IsString as IsString4,
|
|
527
|
-
IsNotEmpty as
|
|
551
|
+
IsNotEmpty as IsNotEmpty19,
|
|
528
552
|
IsIn,
|
|
529
553
|
IsOptional as IsOptional4
|
|
530
554
|
} from "class-validator";
|
|
531
555
|
var FreelancerProfileQuestionDto = class {
|
|
532
556
|
};
|
|
533
557
|
__decorateClass([
|
|
534
|
-
|
|
558
|
+
IsNotEmpty19({ message: "Please enter uuid." }),
|
|
535
559
|
IsUUID8()
|
|
536
560
|
], FreelancerProfileQuestionDto.prototype, "uuid", 2);
|
|
537
561
|
__decorateClass([
|
|
538
|
-
|
|
562
|
+
IsNotEmpty19({ message: "Please enter question slug." }),
|
|
539
563
|
IsString4(),
|
|
540
564
|
IsIn([
|
|
541
565
|
"natureOfWork",
|
|
@@ -546,7 +570,7 @@ __decorateClass([
|
|
|
546
570
|
])
|
|
547
571
|
], FreelancerProfileQuestionDto.prototype, "question_slug", 2);
|
|
548
572
|
__decorateClass([
|
|
549
|
-
|
|
573
|
+
IsNotEmpty19({ message: "Please enter answer." })
|
|
550
574
|
], FreelancerProfileQuestionDto.prototype, "answer", 2);
|
|
551
575
|
__decorateClass([
|
|
552
576
|
IsOptional4()
|
|
@@ -554,7 +578,7 @@ __decorateClass([
|
|
|
554
578
|
|
|
555
579
|
// src/modules/onboarding/dto/freelancer-work-showcase.dto.ts
|
|
556
580
|
import {
|
|
557
|
-
IsNotEmpty as
|
|
581
|
+
IsNotEmpty as IsNotEmpty20,
|
|
558
582
|
IsOptional as IsOptional5,
|
|
559
583
|
IsUrl,
|
|
560
584
|
IsString as IsString5,
|
|
@@ -563,11 +587,11 @@ import {
|
|
|
563
587
|
var FreelancerWorkShowcaseDto = class {
|
|
564
588
|
};
|
|
565
589
|
__decorateClass([
|
|
566
|
-
|
|
590
|
+
IsNotEmpty20({ message: "Please enter uuid." }),
|
|
567
591
|
IsUUID9()
|
|
568
592
|
], FreelancerWorkShowcaseDto.prototype, "uuid", 2);
|
|
569
593
|
__decorateClass([
|
|
570
|
-
|
|
594
|
+
IsNotEmpty20({ message: "Please enter likedin profile url." }),
|
|
571
595
|
IsString5(),
|
|
572
596
|
IsUrl(
|
|
573
597
|
{ require_protocol: false },
|
|
@@ -617,18 +641,18 @@ __decorateClass([
|
|
|
617
641
|
import {
|
|
618
642
|
IsUUID as IsUUID10,
|
|
619
643
|
IsString as IsString6,
|
|
620
|
-
IsNotEmpty as
|
|
644
|
+
IsNotEmpty as IsNotEmpty21,
|
|
621
645
|
IsIn as IsIn2,
|
|
622
646
|
ValidateIf
|
|
623
647
|
} from "class-validator";
|
|
624
648
|
var ClientProfileQuestionDto = class {
|
|
625
649
|
};
|
|
626
650
|
__decorateClass([
|
|
627
|
-
|
|
651
|
+
IsNotEmpty21({ message: "Please enter uuid." }),
|
|
628
652
|
IsUUID10()
|
|
629
653
|
], ClientProfileQuestionDto.prototype, "uuid", 2);
|
|
630
654
|
__decorateClass([
|
|
631
|
-
|
|
655
|
+
IsNotEmpty21({ message: "Please enter question slug." }),
|
|
632
656
|
IsString6(),
|
|
633
657
|
IsIn2([
|
|
634
658
|
"skills",
|
|
@@ -639,17 +663,17 @@ __decorateClass([
|
|
|
639
663
|
])
|
|
640
664
|
], ClientProfileQuestionDto.prototype, "question_slug", 2);
|
|
641
665
|
__decorateClass([
|
|
642
|
-
|
|
666
|
+
IsNotEmpty21({ message: "Please enter answer." })
|
|
643
667
|
], ClientProfileQuestionDto.prototype, "answer", 2);
|
|
644
668
|
__decorateClass([
|
|
645
669
|
ValidateIf((o) => o.questionSlug === "foundUsOn" && o.answer === "OTHER"),
|
|
646
|
-
|
|
670
|
+
IsNotEmpty21({ message: "Please enter foundUsOnDetail if answer is OTHER." }),
|
|
647
671
|
IsString6()
|
|
648
672
|
], ClientProfileQuestionDto.prototype, "foundUsOnDetail", 2);
|
|
649
673
|
|
|
650
674
|
// src/modules/onboarding/dto/client-create-account.dto.ts
|
|
651
675
|
import {
|
|
652
|
-
IsNotEmpty as
|
|
676
|
+
IsNotEmpty as IsNotEmpty22,
|
|
653
677
|
IsEmail as IsEmail3,
|
|
654
678
|
IsString as IsString7,
|
|
655
679
|
IsOptional as IsOptional6
|
|
@@ -657,20 +681,20 @@ import {
|
|
|
657
681
|
var ClientCreateAccountDto = class {
|
|
658
682
|
};
|
|
659
683
|
__decorateClass([
|
|
660
|
-
|
|
684
|
+
IsNotEmpty22({ message: "Please enter first name." }),
|
|
661
685
|
IsString7({ message: "Please enter valid first name." })
|
|
662
686
|
], ClientCreateAccountDto.prototype, "firstName", 2);
|
|
663
687
|
__decorateClass([
|
|
664
|
-
|
|
688
|
+
IsNotEmpty22({ message: "Please enter last name." }),
|
|
665
689
|
IsString7({ message: "Please enter valid last name." })
|
|
666
690
|
], ClientCreateAccountDto.prototype, "lastName", 2);
|
|
667
691
|
__decorateClass([
|
|
668
|
-
|
|
692
|
+
IsNotEmpty22({ message: "Please enter email." }),
|
|
669
693
|
IsEmail3(),
|
|
670
694
|
IsBusinessEmail()
|
|
671
695
|
], ClientCreateAccountDto.prototype, "email", 2);
|
|
672
696
|
__decorateClass([
|
|
673
|
-
|
|
697
|
+
IsNotEmpty22({ message: "Please enter company name." }),
|
|
674
698
|
IsString7({ message: "Please enter valid company name." })
|
|
675
699
|
], ClientCreateAccountDto.prototype, "companyName", 2);
|
|
676
700
|
__decorateClass([
|
|
@@ -696,33 +720,33 @@ var SUBADMIN_PATTERN = {
|
|
|
696
720
|
|
|
697
721
|
// src/modules/user/subadmin/dto/create-subadmin.dto.ts
|
|
698
722
|
import {
|
|
699
|
-
IsNotEmpty as
|
|
723
|
+
IsNotEmpty as IsNotEmpty23
|
|
700
724
|
} from "class-validator";
|
|
701
725
|
var CreateSubAdminDto = class {
|
|
702
726
|
};
|
|
703
727
|
__decorateClass([
|
|
704
|
-
|
|
728
|
+
IsNotEmpty23({ message: "Please enter username." })
|
|
705
729
|
], CreateSubAdminDto.prototype, "userName", 2);
|
|
706
730
|
__decorateClass([
|
|
707
|
-
|
|
731
|
+
IsNotEmpty23({ message: "Please enter first name." })
|
|
708
732
|
], CreateSubAdminDto.prototype, "firstName", 2);
|
|
709
733
|
__decorateClass([
|
|
710
|
-
|
|
734
|
+
IsNotEmpty23({ message: "Please enter last name." })
|
|
711
735
|
], CreateSubAdminDto.prototype, "lastName", 2);
|
|
712
736
|
__decorateClass([
|
|
713
|
-
|
|
737
|
+
IsNotEmpty23({ message: "Please enter email." })
|
|
714
738
|
], CreateSubAdminDto.prototype, "email", 2);
|
|
715
739
|
__decorateClass([
|
|
716
|
-
|
|
740
|
+
IsNotEmpty23({ message: "Please enter mobile Code." })
|
|
717
741
|
], CreateSubAdminDto.prototype, "mobileCode", 2);
|
|
718
742
|
__decorateClass([
|
|
719
|
-
|
|
743
|
+
IsNotEmpty23({ message: "Please enter mobile number." })
|
|
720
744
|
], CreateSubAdminDto.prototype, "mobile", 2);
|
|
721
745
|
__decorateClass([
|
|
722
|
-
|
|
746
|
+
IsNotEmpty23({ message: "Please enter the password." })
|
|
723
747
|
], CreateSubAdminDto.prototype, "password", 2);
|
|
724
748
|
__decorateClass([
|
|
725
|
-
|
|
749
|
+
IsNotEmpty23({ message: "Please Select Roles." })
|
|
726
750
|
], CreateSubAdminDto.prototype, "roleIds", 2);
|
|
727
751
|
|
|
728
752
|
// src/modules/user/subadmin/dto/update-subadmin-status.dto.ts
|
|
@@ -735,26 +759,26 @@ __decorateClass([
|
|
|
735
759
|
|
|
736
760
|
// src/modules/user/subadmin/dto/update-subadmin.dto.ts
|
|
737
761
|
import { Transform } from "class-transformer";
|
|
738
|
-
import { IsNotEmpty as
|
|
762
|
+
import { IsNotEmpty as IsNotEmpty24, IsOptional as IsOptional7, Matches as Matches5, MaxLength as MaxLength5, MinLength as MinLength5 } from "class-validator";
|
|
739
763
|
var UpdateSubAdminDto = class {
|
|
740
764
|
};
|
|
741
765
|
__decorateClass([
|
|
742
|
-
|
|
766
|
+
IsNotEmpty24({ message: "Please enter username." })
|
|
743
767
|
], UpdateSubAdminDto.prototype, "userName", 2);
|
|
744
768
|
__decorateClass([
|
|
745
|
-
|
|
769
|
+
IsNotEmpty24({ message: "Please enter first name." })
|
|
746
770
|
], UpdateSubAdminDto.prototype, "firstName", 2);
|
|
747
771
|
__decorateClass([
|
|
748
|
-
|
|
772
|
+
IsNotEmpty24({ message: "Please enter last name." })
|
|
749
773
|
], UpdateSubAdminDto.prototype, "lastName", 2);
|
|
750
774
|
__decorateClass([
|
|
751
|
-
|
|
775
|
+
IsNotEmpty24({ message: "Please enter email." })
|
|
752
776
|
], UpdateSubAdminDto.prototype, "email", 2);
|
|
753
777
|
__decorateClass([
|
|
754
|
-
|
|
778
|
+
IsNotEmpty24({ message: "Please enter mobile Code." })
|
|
755
779
|
], UpdateSubAdminDto.prototype, "mobileCode", 2);
|
|
756
780
|
__decorateClass([
|
|
757
|
-
|
|
781
|
+
IsNotEmpty24({ message: "Please enter mobile number." })
|
|
758
782
|
], UpdateSubAdminDto.prototype, "mobile", 2);
|
|
759
783
|
__decorateClass([
|
|
760
784
|
IsOptional7(),
|
|
@@ -766,7 +790,7 @@ __decorateClass([
|
|
|
766
790
|
})
|
|
767
791
|
], UpdateSubAdminDto.prototype, "password", 2);
|
|
768
792
|
__decorateClass([
|
|
769
|
-
|
|
793
|
+
IsNotEmpty24({ message: "Please Select Roles." })
|
|
770
794
|
], UpdateSubAdminDto.prototype, "roleIds", 2);
|
|
771
795
|
|
|
772
796
|
// src/modules/user/client-profile/pattern/pattern.ts
|
|
@@ -782,7 +806,7 @@ var CLIENT_PROFILE_PATTERN = {
|
|
|
782
806
|
// src/modules/user/client-profile/dto/update-client-profile.dto.ts
|
|
783
807
|
import {
|
|
784
808
|
IsString as IsString9,
|
|
785
|
-
IsNotEmpty as
|
|
809
|
+
IsNotEmpty as IsNotEmpty25,
|
|
786
810
|
IsEmail as IsEmail4,
|
|
787
811
|
Length as Length2,
|
|
788
812
|
IsUrl as IsUrl2,
|
|
@@ -792,7 +816,7 @@ import {
|
|
|
792
816
|
var UpdateCompanyProfileDto = class {
|
|
793
817
|
};
|
|
794
818
|
__decorateClass([
|
|
795
|
-
|
|
819
|
+
IsNotEmpty25({ message: "Please enter company name." }),
|
|
796
820
|
IsString9({ message: "Company name must be a string." }),
|
|
797
821
|
Length2(2, 255, {
|
|
798
822
|
message: "Company name must be between 2 and 255 characters"
|
|
@@ -804,23 +828,23 @@ __decorateClass([
|
|
|
804
828
|
IsUrl2({}, { message: "Invalid website URL format" })
|
|
805
829
|
], UpdateCompanyProfileDto.prototype, "webSite", 2);
|
|
806
830
|
__decorateClass([
|
|
807
|
-
|
|
831
|
+
IsNotEmpty25({ message: "Please enter company address." }),
|
|
808
832
|
IsString9({ message: "Company address must be a string" }),
|
|
809
833
|
Length2(5, 1e3, { message: "Address must be between 5 and 1000 characters" })
|
|
810
834
|
], UpdateCompanyProfileDto.prototype, "companyAddress", 2);
|
|
811
835
|
__decorateClass([
|
|
812
|
-
|
|
836
|
+
IsNotEmpty25({ message: "Please enter mobile code." }),
|
|
813
837
|
IsString9({ message: "Mobile Code must be a string" })
|
|
814
838
|
], UpdateCompanyProfileDto.prototype, "mobileCode", 2);
|
|
815
839
|
// @Matches(/^(\+1\s?)?(\(?\d{3}\)?[\s.-]?)?\d{3}[\s.-]?\d{4}$/, {
|
|
816
840
|
// message: "Please enter a valid US phone number",
|
|
817
841
|
// })
|
|
818
842
|
__decorateClass([
|
|
819
|
-
|
|
843
|
+
IsNotEmpty25({ message: "Please enter phone number." }),
|
|
820
844
|
IsString9({ message: "Please enter valid phone number." })
|
|
821
845
|
], UpdateCompanyProfileDto.prototype, "phoneNumber", 2);
|
|
822
846
|
__decorateClass([
|
|
823
|
-
|
|
847
|
+
IsNotEmpty25({ message: "Please enter email." }),
|
|
824
848
|
IsEmail4()
|
|
825
849
|
], UpdateCompanyProfileDto.prototype, "email", 2);
|
|
826
850
|
__decorateClass([
|
|
@@ -833,7 +857,7 @@ import {
|
|
|
833
857
|
IsString as IsString10,
|
|
834
858
|
MinLength as MinLength6,
|
|
835
859
|
Matches as Matches7,
|
|
836
|
-
IsNotEmpty as
|
|
860
|
+
IsNotEmpty as IsNotEmpty26
|
|
837
861
|
} from "class-validator";
|
|
838
862
|
var ClientChangePasswordDto = class {
|
|
839
863
|
};
|
|
@@ -845,7 +869,7 @@ __decorateClass([
|
|
|
845
869
|
})
|
|
846
870
|
], ClientChangePasswordDto.prototype, "newPassword", 2);
|
|
847
871
|
__decorateClass([
|
|
848
|
-
|
|
872
|
+
IsNotEmpty26({ message: "Please enter confirm password." }),
|
|
849
873
|
Match("newPassword", { message: "Passwords do not match" })
|
|
850
874
|
], ClientChangePasswordDto.prototype, "confirmPassword", 2);
|
|
851
875
|
|
|
@@ -859,23 +883,23 @@ var ASSESSMENT_QUESTION_PATTERN = {
|
|
|
859
883
|
|
|
860
884
|
// src/modules/question/dto/create-question.dto.ts
|
|
861
885
|
import {
|
|
862
|
-
IsNotEmpty as
|
|
886
|
+
IsNotEmpty as IsNotEmpty27,
|
|
863
887
|
IsOptional as IsOptional9,
|
|
864
888
|
IsBoolean as IsBoolean2
|
|
865
889
|
} from "class-validator";
|
|
866
890
|
var CreateQuestionDto = class {
|
|
867
891
|
};
|
|
868
892
|
__decorateClass([
|
|
869
|
-
|
|
893
|
+
IsNotEmpty27({ message: "Please enter unique id." })
|
|
870
894
|
], CreateQuestionDto.prototype, "questionId", 2);
|
|
871
895
|
__decorateClass([
|
|
872
|
-
|
|
896
|
+
IsNotEmpty27({ message: "Please enter question." })
|
|
873
897
|
], CreateQuestionDto.prototype, "question", 2);
|
|
874
898
|
__decorateClass([
|
|
875
|
-
|
|
899
|
+
IsNotEmpty27({ message: "Please enter for whom the question is." })
|
|
876
900
|
], CreateQuestionDto.prototype, "questionFor", 2);
|
|
877
901
|
__decorateClass([
|
|
878
|
-
|
|
902
|
+
IsNotEmpty27({ message: "Please enter options." })
|
|
879
903
|
], CreateQuestionDto.prototype, "options", 2);
|
|
880
904
|
__decorateClass([
|
|
881
905
|
IsOptional9(),
|
|
@@ -910,12 +934,12 @@ var JOB_PATTERN = {
|
|
|
910
934
|
// src/modules/job/dto/job-basic-information.dto.ts
|
|
911
935
|
import {
|
|
912
936
|
IsString as IsString11,
|
|
913
|
-
IsNotEmpty as
|
|
937
|
+
IsNotEmpty as IsNotEmpty28,
|
|
914
938
|
IsArray,
|
|
915
939
|
ArrayNotEmpty,
|
|
916
940
|
IsNumber,
|
|
917
941
|
IsOptional as IsOptional10,
|
|
918
|
-
IsEnum as
|
|
942
|
+
IsEnum as IsEnum9,
|
|
919
943
|
Min,
|
|
920
944
|
ValidateIf as ValidateIf3
|
|
921
945
|
} from "class-validator";
|
|
@@ -942,7 +966,7 @@ __decorateClass([
|
|
|
942
966
|
Type(() => Boolean)
|
|
943
967
|
], JobBasicInformationDto.prototype, "isDraft", 2);
|
|
944
968
|
__decorateClass([
|
|
945
|
-
|
|
969
|
+
IsNotEmpty28({ message: "Please enter job role" }),
|
|
946
970
|
IsString11({ message: "Job role must be a string" })
|
|
947
971
|
], JobBasicInformationDto.prototype, "jobRole", 2);
|
|
948
972
|
__decorateClass([
|
|
@@ -964,7 +988,7 @@ __decorateClass([
|
|
|
964
988
|
], JobBasicInformationDto.prototype, "openings", 2);
|
|
965
989
|
__decorateClass([
|
|
966
990
|
ValidateIf3((o) => !o.isDraft),
|
|
967
|
-
|
|
991
|
+
IsEnum9(JobLocation, {
|
|
968
992
|
message: `Location must be one of: ${Object.values(JobLocation).join(
|
|
969
993
|
", "
|
|
970
994
|
)}`
|
|
@@ -987,7 +1011,7 @@ __decorateClass([
|
|
|
987
1011
|
], JobBasicInformationDto.prototype, "cityId", 2);
|
|
988
1012
|
__decorateClass([
|
|
989
1013
|
ValidateIf3((o) => !o.isDraft),
|
|
990
|
-
|
|
1014
|
+
IsEnum9(EmploymentType, {
|
|
991
1015
|
message: `Type of employment must be one of: ${Object.values(
|
|
992
1016
|
EmploymentType
|
|
993
1017
|
).join(", ")}`
|
|
@@ -1011,12 +1035,12 @@ __decorateClass([
|
|
|
1011
1035
|
], JobBasicInformationDto.prototype, "expectedSalaryTo", 2);
|
|
1012
1036
|
__decorateClass([
|
|
1013
1037
|
ValidateIf3((o) => !o.isDraft),
|
|
1014
|
-
|
|
1038
|
+
IsNotEmpty28({ message: "Please enter start date" }),
|
|
1015
1039
|
IsString11({ message: "Start date must be valid" })
|
|
1016
1040
|
], JobBasicInformationDto.prototype, "tentativeStartDate", 2);
|
|
1017
1041
|
__decorateClass([
|
|
1018
1042
|
ValidateIf3((o) => !o.isDraft),
|
|
1019
|
-
|
|
1043
|
+
IsNotEmpty28({ message: "Please enter end date" }),
|
|
1020
1044
|
IsString11({ message: "End date must be valid" })
|
|
1021
1045
|
], JobBasicInformationDto.prototype, "tentativeEndDate", 2);
|
|
1022
1046
|
__decorateClass([
|
|
@@ -1031,17 +1055,17 @@ __decorateClass([
|
|
|
1031
1055
|
], JobBasicInformationDto.prototype, "candidateCommunicationSkills", 2);
|
|
1032
1056
|
__decorateClass([
|
|
1033
1057
|
ValidateIf3((o) => !o.isDraft),
|
|
1034
|
-
|
|
1058
|
+
IsNotEmpty28({ message: "Please enter the academic qualification" }),
|
|
1035
1059
|
IsString11({ message: "Academic qualification must be a string" })
|
|
1036
1060
|
], JobBasicInformationDto.prototype, "academicQualification", 2);
|
|
1037
1061
|
__decorateClass([
|
|
1038
1062
|
ValidateIf3((o) => !o.isDraft),
|
|
1039
|
-
|
|
1063
|
+
IsNotEmpty28({ message: "Please enter the years of experience" }),
|
|
1040
1064
|
IsString11({ message: "Years of experience must be a string" })
|
|
1041
1065
|
], JobBasicInformationDto.prototype, "yearsOfExperience", 2);
|
|
1042
1066
|
__decorateClass([
|
|
1043
1067
|
ValidateIf3((o) => !o.isDraft),
|
|
1044
|
-
|
|
1068
|
+
IsNotEmpty28({ message: "Please enter the business industry" }),
|
|
1045
1069
|
IsString11({ message: "Business industry must be a string" })
|
|
1046
1070
|
], JobBasicInformationDto.prototype, "businessIndustry", 2);
|
|
1047
1071
|
|
|
@@ -1056,17 +1080,17 @@ __decorateClass([
|
|
|
1056
1080
|
], JobAdditionalCommentDto.prototype, "additionalComment", 2);
|
|
1057
1081
|
|
|
1058
1082
|
// src/modules/job/dto/job-description.dto.ts
|
|
1059
|
-
import { IsString as IsString13, IsNotEmpty as
|
|
1083
|
+
import { IsString as IsString13, IsNotEmpty as IsNotEmpty29, MaxLength as MaxLength7 } from "class-validator";
|
|
1060
1084
|
var JobDescriptionDto = class {
|
|
1061
1085
|
};
|
|
1062
1086
|
__decorateClass([
|
|
1063
|
-
|
|
1087
|
+
IsNotEmpty29({ message: "Please enter job description" }),
|
|
1064
1088
|
IsString13({ message: "Description must be a string" }),
|
|
1065
1089
|
MaxLength7(5e3, { message: "Description must not exceed 5000 characters" })
|
|
1066
1090
|
], JobDescriptionDto.prototype, "description", 2);
|
|
1067
1091
|
|
|
1068
1092
|
// src/modules/job/dto/job-status.dto.ts
|
|
1069
|
-
import { IsEnum as
|
|
1093
|
+
import { IsEnum as IsEnum10, IsNotEmpty as IsNotEmpty30 } from "class-validator";
|
|
1070
1094
|
var JobStatus = /* @__PURE__ */ ((JobStatus2) => {
|
|
1071
1095
|
JobStatus2["ACTIVE"] = "ACTIVE";
|
|
1072
1096
|
JobStatus2["OPEN"] = "OPEN";
|
|
@@ -1078,8 +1102,8 @@ var JobStatus = /* @__PURE__ */ ((JobStatus2) => {
|
|
|
1078
1102
|
var JobStatusDto = class {
|
|
1079
1103
|
};
|
|
1080
1104
|
__decorateClass([
|
|
1081
|
-
|
|
1082
|
-
|
|
1105
|
+
IsNotEmpty30({ message: "Please provide a job status" }),
|
|
1106
|
+
IsEnum10(JobStatus, {
|
|
1083
1107
|
message: `Status must be one of: ${Object.values(JobStatus).join(", ")}`
|
|
1084
1108
|
})
|
|
1085
1109
|
], JobStatusDto.prototype, "status", 2);
|
|
@@ -1109,7 +1133,7 @@ var PROFILE_PATTERN = {
|
|
|
1109
1133
|
// src/modules/user/freelancer-profile/dto/freelancer-change-password.dto.ts
|
|
1110
1134
|
import {
|
|
1111
1135
|
IsString as IsString14,
|
|
1112
|
-
IsNotEmpty as
|
|
1136
|
+
IsNotEmpty as IsNotEmpty31,
|
|
1113
1137
|
MaxLength as MaxLength8,
|
|
1114
1138
|
MinLength as MinLength7,
|
|
1115
1139
|
Matches as Matches8
|
|
@@ -1117,11 +1141,11 @@ import {
|
|
|
1117
1141
|
var FreelancerChangePasswordDto = class {
|
|
1118
1142
|
};
|
|
1119
1143
|
__decorateClass([
|
|
1120
|
-
|
|
1144
|
+
IsNotEmpty31({ message: "Please enter Old Password." }),
|
|
1121
1145
|
IsString14()
|
|
1122
1146
|
], FreelancerChangePasswordDto.prototype, "oldPassword", 2);
|
|
1123
1147
|
__decorateClass([
|
|
1124
|
-
|
|
1148
|
+
IsNotEmpty31({ message: "Please enter New Password." }),
|
|
1125
1149
|
IsString14(),
|
|
1126
1150
|
MinLength7(6),
|
|
1127
1151
|
MaxLength8(32),
|
|
@@ -1136,8 +1160,8 @@ import {
|
|
|
1136
1160
|
IsString as IsString15,
|
|
1137
1161
|
IsEmail as IsEmail5,
|
|
1138
1162
|
IsNumber as IsNumber2,
|
|
1139
|
-
IsEnum as
|
|
1140
|
-
IsNotEmpty as
|
|
1163
|
+
IsEnum as IsEnum11,
|
|
1164
|
+
IsNotEmpty as IsNotEmpty32
|
|
1141
1165
|
} from "class-validator";
|
|
1142
1166
|
var NatureOfWorkDto = /* @__PURE__ */ ((NatureOfWorkDto2) => {
|
|
1143
1167
|
NatureOfWorkDto2["FULLTIME"] = "FULLTIME";
|
|
@@ -1154,31 +1178,31 @@ var ModeOfWorkDto = /* @__PURE__ */ ((ModeOfWorkDto2) => {
|
|
|
1154
1178
|
var UpdateFreelancerProfileDto = class {
|
|
1155
1179
|
};
|
|
1156
1180
|
__decorateClass([
|
|
1157
|
-
|
|
1181
|
+
IsNotEmpty32({ message: "Please enter first name." }),
|
|
1158
1182
|
IsString15({ message: "Please enter valid first name." })
|
|
1159
1183
|
], UpdateFreelancerProfileDto.prototype, "firstName", 2);
|
|
1160
1184
|
__decorateClass([
|
|
1161
|
-
|
|
1185
|
+
IsNotEmpty32({ message: "Please enter last name." }),
|
|
1162
1186
|
IsString15({ message: "Please enter valid last name." })
|
|
1163
1187
|
], UpdateFreelancerProfileDto.prototype, "lastName", 2);
|
|
1164
1188
|
__decorateClass([
|
|
1165
|
-
|
|
1189
|
+
IsNotEmpty32({ message: "Please enter designation." }),
|
|
1166
1190
|
IsString15({ message: "Please enter valid designation." })
|
|
1167
1191
|
], UpdateFreelancerProfileDto.prototype, "designation", 2);
|
|
1168
1192
|
__decorateClass([
|
|
1169
|
-
|
|
1193
|
+
IsNotEmpty32({ message: "Please enter experience." }),
|
|
1170
1194
|
IsString15({ message: "Please enter valid experience." })
|
|
1171
1195
|
], UpdateFreelancerProfileDto.prototype, "experience", 2);
|
|
1172
1196
|
__decorateClass([
|
|
1173
|
-
|
|
1197
|
+
IsNotEmpty32({ message: "Please enter email id." }),
|
|
1174
1198
|
IsEmail5()
|
|
1175
1199
|
], UpdateFreelancerProfileDto.prototype, "email", 2);
|
|
1176
1200
|
__decorateClass([
|
|
1177
|
-
|
|
1201
|
+
IsNotEmpty32({ message: "Please enter mobile code." }),
|
|
1178
1202
|
IsString15({ message: "Please enter valid mobile code." })
|
|
1179
1203
|
], UpdateFreelancerProfileDto.prototype, "mobileCode", 2);
|
|
1180
1204
|
__decorateClass([
|
|
1181
|
-
|
|
1205
|
+
IsNotEmpty32({ message: "Please enter mobile number." }),
|
|
1182
1206
|
IsString15({ message: "Please enter valid mobile number." })
|
|
1183
1207
|
], UpdateFreelancerProfileDto.prototype, "mobile", 2);
|
|
1184
1208
|
__decorateClass([
|
|
@@ -1186,24 +1210,24 @@ __decorateClass([
|
|
|
1186
1210
|
IsNumber2()
|
|
1187
1211
|
], UpdateFreelancerProfileDto.prototype, "countryId", 2);
|
|
1188
1212
|
__decorateClass([
|
|
1189
|
-
|
|
1213
|
+
IsNotEmpty32({ message: "Please select currency." }),
|
|
1190
1214
|
IsString15({ message: "Please enter valid currency." })
|
|
1191
1215
|
], UpdateFreelancerProfileDto.prototype, "currency", 2);
|
|
1192
1216
|
__decorateClass([
|
|
1193
|
-
|
|
1217
|
+
IsNotEmpty32({ message: "Please enter expected hourly compensation." }),
|
|
1194
1218
|
IsString15({ message: "Please enter valid expected hourly compensation." })
|
|
1195
1219
|
], UpdateFreelancerProfileDto.prototype, "expectedHourlyCompensation", 2);
|
|
1196
1220
|
__decorateClass([
|
|
1197
|
-
|
|
1198
|
-
|
|
1221
|
+
IsNotEmpty32({ message: "Please select engagement type." }),
|
|
1222
|
+
IsEnum11(NatureOfWorkDto, {
|
|
1199
1223
|
message: `Engagement Type must be one of: ${Object.values(
|
|
1200
1224
|
NatureOfWorkDto
|
|
1201
1225
|
).join(", ")}`
|
|
1202
1226
|
})
|
|
1203
1227
|
], UpdateFreelancerProfileDto.prototype, "natureOfWork", 2);
|
|
1204
1228
|
__decorateClass([
|
|
1205
|
-
|
|
1206
|
-
|
|
1229
|
+
IsNotEmpty32({ message: "Please select mode of work." }),
|
|
1230
|
+
IsEnum11(ModeOfWorkDto, {
|
|
1207
1231
|
message: `Mode of work must be one of: ${Object.values(ModeOfWorkDto).join(
|
|
1208
1232
|
", "
|
|
1209
1233
|
)}`
|
|
@@ -1251,8 +1275,8 @@ var BANK_PATTERN = {
|
|
|
1251
1275
|
|
|
1252
1276
|
// src/modules/bank/dto/freelancer-bank-details.dto.ts
|
|
1253
1277
|
import {
|
|
1254
|
-
IsEnum as
|
|
1255
|
-
IsNotEmpty as
|
|
1278
|
+
IsEnum as IsEnum12,
|
|
1279
|
+
IsNotEmpty as IsNotEmpty33,
|
|
1256
1280
|
IsOptional as IsOptional13,
|
|
1257
1281
|
ValidateIf as ValidateIf4
|
|
1258
1282
|
} from "class-validator";
|
|
@@ -1264,47 +1288,47 @@ var BankAccountScope = /* @__PURE__ */ ((BankAccountScope2) => {
|
|
|
1264
1288
|
var FreelancerBankDetailsDto = class {
|
|
1265
1289
|
};
|
|
1266
1290
|
__decorateClass([
|
|
1267
|
-
|
|
1291
|
+
IsNotEmpty33({ message: "Please enter Account Holder Name." })
|
|
1268
1292
|
], FreelancerBankDetailsDto.prototype, "name", 2);
|
|
1269
1293
|
__decorateClass([
|
|
1270
|
-
|
|
1294
|
+
IsNotEmpty33({ message: "Please enter Mobile Number." })
|
|
1271
1295
|
], FreelancerBankDetailsDto.prototype, "mobile", 2);
|
|
1272
1296
|
__decorateClass([
|
|
1273
|
-
|
|
1297
|
+
IsNotEmpty33({ message: "Please enter Email." })
|
|
1274
1298
|
], FreelancerBankDetailsDto.prototype, "email", 2);
|
|
1275
1299
|
__decorateClass([
|
|
1276
1300
|
IsOptional13()
|
|
1277
1301
|
], FreelancerBankDetailsDto.prototype, "address", 2);
|
|
1278
1302
|
__decorateClass([
|
|
1279
|
-
|
|
1303
|
+
IsNotEmpty33({ message: "Please enter Account Number." })
|
|
1280
1304
|
], FreelancerBankDetailsDto.prototype, "accountNumber", 2);
|
|
1281
1305
|
__decorateClass([
|
|
1282
|
-
|
|
1306
|
+
IsNotEmpty33({ message: "Please enter Bank Name." })
|
|
1283
1307
|
], FreelancerBankDetailsDto.prototype, "bankName", 2);
|
|
1284
1308
|
__decorateClass([
|
|
1285
|
-
|
|
1309
|
+
IsNotEmpty33({ message: "Please enter Branch Name." })
|
|
1286
1310
|
], FreelancerBankDetailsDto.prototype, "branchName", 2);
|
|
1287
1311
|
__decorateClass([
|
|
1288
1312
|
ValidateIf4((dto) => dto.accountScope === "DOMESTIC"),
|
|
1289
|
-
|
|
1313
|
+
IsNotEmpty33({ message: "IFSC Code is required for DOMESTIC accounts." })
|
|
1290
1314
|
], FreelancerBankDetailsDto.prototype, "ifscCode", 2);
|
|
1291
1315
|
__decorateClass([
|
|
1292
1316
|
ValidateIf4((dto) => dto.accountScope === "INTERNATIONAL"),
|
|
1293
|
-
|
|
1317
|
+
IsNotEmpty33({ message: "Routing Number/Sort Code is required for INTERNATIONAL accounts." })
|
|
1294
1318
|
], FreelancerBankDetailsDto.prototype, "routingNo", 2);
|
|
1295
1319
|
__decorateClass([
|
|
1296
1320
|
ValidateIf4((dto) => dto.accountScope === "INTERNATIONAL"),
|
|
1297
|
-
|
|
1321
|
+
IsNotEmpty33({ message: "ABA Number is required for INTERNATIONAL accounts." })
|
|
1298
1322
|
], FreelancerBankDetailsDto.prototype, "abaNumber", 2);
|
|
1299
1323
|
__decorateClass([
|
|
1300
1324
|
ValidateIf4((dto) => dto.accountScope === "INTERNATIONAL"),
|
|
1301
|
-
|
|
1325
|
+
IsNotEmpty33({ message: "IBAN is required for INTERNATIONAL accounts." })
|
|
1302
1326
|
], FreelancerBankDetailsDto.prototype, "iban", 2);
|
|
1303
1327
|
__decorateClass([
|
|
1304
1328
|
IsOptional13()
|
|
1305
1329
|
], FreelancerBankDetailsDto.prototype, "accountType", 2);
|
|
1306
1330
|
__decorateClass([
|
|
1307
|
-
|
|
1331
|
+
IsEnum12(BankAccountScope, {
|
|
1308
1332
|
message: `Type of Account Scope must be one of: ${Object.values(
|
|
1309
1333
|
BankAccountScope
|
|
1310
1334
|
).join(", ")}`
|
|
@@ -1326,7 +1350,7 @@ var SYSTEM_PREFERENCES_PATTERN = {
|
|
|
1326
1350
|
// src/modules/system-preference/dto/system-preference.dto.ts
|
|
1327
1351
|
import {
|
|
1328
1352
|
IsBoolean as IsBoolean3,
|
|
1329
|
-
IsEnum as
|
|
1353
|
+
IsEnum as IsEnum13
|
|
1330
1354
|
} from "class-validator";
|
|
1331
1355
|
var SystemPreferenceKey = /* @__PURE__ */ ((SystemPreferenceKey2) => {
|
|
1332
1356
|
SystemPreferenceKey2["EMAIL_NOTIFICATION"] = "EMAIL_NOTIFICATION";
|
|
@@ -1339,7 +1363,7 @@ __decorateClass([
|
|
|
1339
1363
|
IsBoolean3()
|
|
1340
1364
|
], SystemPreferenceDto.prototype, "value", 2);
|
|
1341
1365
|
__decorateClass([
|
|
1342
|
-
|
|
1366
|
+
IsEnum13(SystemPreferenceKey, {
|
|
1343
1367
|
message: `key must be one of: ${Object.values(
|
|
1344
1368
|
SystemPreferenceKey
|
|
1345
1369
|
).join(", ")}`
|
|
@@ -1360,9 +1384,9 @@ var RATING_PATTERN = {
|
|
|
1360
1384
|
|
|
1361
1385
|
// src/modules/rating/dto/add.rating.dto.ts
|
|
1362
1386
|
import {
|
|
1363
|
-
IsEnum as
|
|
1387
|
+
IsEnum as IsEnum14,
|
|
1364
1388
|
IsInt,
|
|
1365
|
-
IsNotEmpty as
|
|
1389
|
+
IsNotEmpty as IsNotEmpty34,
|
|
1366
1390
|
IsOptional as IsOptional14,
|
|
1367
1391
|
IsString as IsString16,
|
|
1368
1392
|
Max,
|
|
@@ -4057,6 +4081,9 @@ __decorateClass([
|
|
|
4057
4081
|
nullable: true
|
|
4058
4082
|
})
|
|
4059
4083
|
], User.prototype, "resetTokenExpireAt", 2);
|
|
4084
|
+
__decorateClass([
|
|
4085
|
+
Column46({ name: "set_password_token", type: "varchar", nullable: true })
|
|
4086
|
+
], User.prototype, "setPasswordToken", 2);
|
|
4060
4087
|
__decorateClass([
|
|
4061
4088
|
OneToMany16(() => RefreshToken, (token) => token.user)
|
|
4062
4089
|
], User.prototype, "refreshTokens", 2);
|
|
@@ -4224,10 +4251,10 @@ var CreateRatingDto = class {
|
|
|
4224
4251
|
};
|
|
4225
4252
|
__decorateClass([
|
|
4226
4253
|
IsInt({ message: "Reviewee ID must be a valid integer" }),
|
|
4227
|
-
|
|
4254
|
+
IsNotEmpty34({ message: "Reviewee ID is required" })
|
|
4228
4255
|
], CreateRatingDto.prototype, "revieweeId", 2);
|
|
4229
4256
|
__decorateClass([
|
|
4230
|
-
|
|
4257
|
+
IsEnum14(RatingTypeEnum, {
|
|
4231
4258
|
message: `Rating type must be one of: ${Object.values(RatingTypeEnum).join(", ")}`
|
|
4232
4259
|
})
|
|
4233
4260
|
], CreateRatingDto.prototype, "ratingType", 2);
|
|
@@ -4254,17 +4281,17 @@ var COMPANY_ROLES_PATTERNS = {
|
|
|
4254
4281
|
};
|
|
4255
4282
|
|
|
4256
4283
|
// src/modules/company-role/dto/create-company-role.dto.ts
|
|
4257
|
-
import { ArrayNotEmpty as ArrayNotEmpty2, IsArray as IsArray2, IsBoolean as IsBoolean4, IsInt as IsInt2, IsNotEmpty as
|
|
4284
|
+
import { ArrayNotEmpty as ArrayNotEmpty2, IsArray as IsArray2, IsBoolean as IsBoolean4, IsInt as IsInt2, IsNotEmpty as IsNotEmpty35, IsOptional as IsOptional15 } from "class-validator";
|
|
4258
4285
|
var CreateCompanyRoleDto = class {
|
|
4259
4286
|
};
|
|
4260
4287
|
__decorateClass([
|
|
4261
|
-
|
|
4288
|
+
IsNotEmpty35({ message: "Please enter company role name." })
|
|
4262
4289
|
], CreateCompanyRoleDto.prototype, "name", 2);
|
|
4263
4290
|
__decorateClass([
|
|
4264
|
-
|
|
4291
|
+
IsNotEmpty35({ message: "Please enter company role slug" })
|
|
4265
4292
|
], CreateCompanyRoleDto.prototype, "slug", 2);
|
|
4266
4293
|
__decorateClass([
|
|
4267
|
-
|
|
4294
|
+
IsNotEmpty35({ message: "Please enter description" })
|
|
4268
4295
|
], CreateCompanyRoleDto.prototype, "description", 2);
|
|
4269
4296
|
__decorateClass([
|
|
4270
4297
|
IsArray2({ message: "Permission IDs must be an array." }),
|
|
@@ -4277,17 +4304,17 @@ __decorateClass([
|
|
|
4277
4304
|
], CreateCompanyRoleDto.prototype, "isActive", 2);
|
|
4278
4305
|
|
|
4279
4306
|
// src/modules/company-role/dto/update-company-role.dto.ts
|
|
4280
|
-
import { ArrayNotEmpty as ArrayNotEmpty3, IsArray as IsArray3, IsBoolean as IsBoolean5, IsInt as IsInt3, IsNotEmpty as
|
|
4307
|
+
import { ArrayNotEmpty as ArrayNotEmpty3, IsArray as IsArray3, IsBoolean as IsBoolean5, IsInt as IsInt3, IsNotEmpty as IsNotEmpty36, IsOptional as IsOptional16 } from "class-validator";
|
|
4281
4308
|
var UpdateCompanyRoleDto = class {
|
|
4282
4309
|
};
|
|
4283
4310
|
__decorateClass([
|
|
4284
|
-
|
|
4311
|
+
IsNotEmpty36({ message: "Please enter company name." })
|
|
4285
4312
|
], UpdateCompanyRoleDto.prototype, "name", 2);
|
|
4286
4313
|
__decorateClass([
|
|
4287
|
-
|
|
4314
|
+
IsNotEmpty36({ message: "Please enter slug" })
|
|
4288
4315
|
], UpdateCompanyRoleDto.prototype, "slug", 2);
|
|
4289
4316
|
__decorateClass([
|
|
4290
|
-
|
|
4317
|
+
IsNotEmpty36({ message: "Please enter description" })
|
|
4291
4318
|
], UpdateCompanyRoleDto.prototype, "description", 2);
|
|
4292
4319
|
__decorateClass([
|
|
4293
4320
|
IsArray3({ message: "Permission IDs must be an array." }),
|
|
@@ -4316,7 +4343,7 @@ var FREELANCER_EXPERIENCE_PATTERN = {
|
|
|
4316
4343
|
// src/modules/user/freelancer-experience/dto/freelancer-experience.dto.ts
|
|
4317
4344
|
import {
|
|
4318
4345
|
ArrayMinSize,
|
|
4319
|
-
IsNotEmpty as
|
|
4346
|
+
IsNotEmpty as IsNotEmpty37,
|
|
4320
4347
|
IsOptional as IsOptional17,
|
|
4321
4348
|
IsString as IsString19,
|
|
4322
4349
|
MaxLength as MaxLength10,
|
|
@@ -4329,15 +4356,15 @@ __decorateClass([
|
|
|
4329
4356
|
IsOptional17()
|
|
4330
4357
|
], ExperienceDto.prototype, "uuid", 2);
|
|
4331
4358
|
__decorateClass([
|
|
4332
|
-
|
|
4359
|
+
IsNotEmpty37(),
|
|
4333
4360
|
IsString19()
|
|
4334
4361
|
], ExperienceDto.prototype, "companyName", 2);
|
|
4335
4362
|
__decorateClass([
|
|
4336
|
-
|
|
4363
|
+
IsNotEmpty37(),
|
|
4337
4364
|
IsString19()
|
|
4338
4365
|
], ExperienceDto.prototype, "designation", 2);
|
|
4339
4366
|
__decorateClass([
|
|
4340
|
-
|
|
4367
|
+
IsNotEmpty37(),
|
|
4341
4368
|
IsString19()
|
|
4342
4369
|
], ExperienceDto.prototype, "jobDuration", 2);
|
|
4343
4370
|
__decorateClass([
|
|
@@ -4366,14 +4393,14 @@ var COMPANY_MEMBERS_PATTERNS = {
|
|
|
4366
4393
|
};
|
|
4367
4394
|
|
|
4368
4395
|
// src/modules/company-member/dto/create-company-member.dto.ts
|
|
4369
|
-
import { ArrayNotEmpty as ArrayNotEmpty4, IsArray as IsArray4, IsInt as IsInt4, IsNotEmpty as
|
|
4396
|
+
import { ArrayNotEmpty as ArrayNotEmpty4, IsArray as IsArray4, IsInt as IsInt4, IsNotEmpty as IsNotEmpty38 } from "class-validator";
|
|
4370
4397
|
var CreateCompanyMemberDto = class {
|
|
4371
4398
|
};
|
|
4372
4399
|
__decorateClass([
|
|
4373
|
-
|
|
4400
|
+
IsNotEmpty38({ message: "Please enter name." })
|
|
4374
4401
|
], CreateCompanyMemberDto.prototype, "name", 2);
|
|
4375
4402
|
__decorateClass([
|
|
4376
|
-
|
|
4403
|
+
IsNotEmpty38({ message: "Please enter email" })
|
|
4377
4404
|
], CreateCompanyMemberDto.prototype, "email", 2);
|
|
4378
4405
|
__decorateClass([
|
|
4379
4406
|
IsArray4({ message: "Role IDs must be an array." }),
|
|
@@ -4382,14 +4409,14 @@ __decorateClass([
|
|
|
4382
4409
|
], CreateCompanyMemberDto.prototype, "roleIds", 2);
|
|
4383
4410
|
|
|
4384
4411
|
// src/modules/company-member/dto/update-company-member.dto.ts
|
|
4385
|
-
import { ArrayNotEmpty as ArrayNotEmpty5, IsArray as IsArray5, IsInt as IsInt5, IsNotEmpty as
|
|
4412
|
+
import { ArrayNotEmpty as ArrayNotEmpty5, IsArray as IsArray5, IsInt as IsInt5, IsNotEmpty as IsNotEmpty39 } from "class-validator";
|
|
4386
4413
|
var UpdateCompanyMemberDto = class {
|
|
4387
4414
|
};
|
|
4388
4415
|
__decorateClass([
|
|
4389
|
-
|
|
4416
|
+
IsNotEmpty39({ message: "Please enter name." })
|
|
4390
4417
|
], UpdateCompanyMemberDto.prototype, "name", 2);
|
|
4391
4418
|
__decorateClass([
|
|
4392
|
-
|
|
4419
|
+
IsNotEmpty39({ message: "Please enter email" })
|
|
4393
4420
|
], UpdateCompanyMemberDto.prototype, "email", 2);
|
|
4394
4421
|
__decorateClass([
|
|
4395
4422
|
IsArray5({ message: "Role IDs must be an array." }),
|
|
@@ -4412,7 +4439,7 @@ var FREELANCER_EDUCATION_PATTERN = {
|
|
|
4412
4439
|
};
|
|
4413
4440
|
|
|
4414
4441
|
// src/modules/user/freelancer-education/dto/freelancer-education.dto.ts
|
|
4415
|
-
import { IsArray as IsArray6, ValidateNested as ValidateNested2, IsString as IsString22, IsNotEmpty as
|
|
4442
|
+
import { IsArray as IsArray6, ValidateNested as ValidateNested2, IsString as IsString22, IsNotEmpty as IsNotEmpty40, IsOptional as IsOptional20, ArrayMinSize as ArrayMinSize2 } from "class-validator";
|
|
4416
4443
|
import { Type as Type3 } from "class-transformer";
|
|
4417
4444
|
var EducationDto = class {
|
|
4418
4445
|
};
|
|
@@ -4421,15 +4448,15 @@ __decorateClass([
|
|
|
4421
4448
|
], EducationDto.prototype, "uuid", 2);
|
|
4422
4449
|
__decorateClass([
|
|
4423
4450
|
IsString22(),
|
|
4424
|
-
|
|
4451
|
+
IsNotEmpty40({ message: "Please Enter Degree " })
|
|
4425
4452
|
], EducationDto.prototype, "degree", 2);
|
|
4426
4453
|
__decorateClass([
|
|
4427
4454
|
IsString22(),
|
|
4428
|
-
|
|
4455
|
+
IsNotEmpty40({ message: "Please Enter University " })
|
|
4429
4456
|
], EducationDto.prototype, "university", 2);
|
|
4430
4457
|
__decorateClass([
|
|
4431
4458
|
IsString22(),
|
|
4432
|
-
|
|
4459
|
+
IsNotEmpty40({ message: "Please Enter Year of Graduation " })
|
|
4433
4460
|
], EducationDto.prototype, "yearOfGraduation", 2);
|
|
4434
4461
|
var FreelancerEducationDto = class {
|
|
4435
4462
|
};
|
|
@@ -4447,7 +4474,7 @@ var FREELANCER_PROJECT_PATTERN = {
|
|
|
4447
4474
|
};
|
|
4448
4475
|
|
|
4449
4476
|
// src/modules/user/freelancer-project/dto/freelancer-project.dto.ts
|
|
4450
|
-
import { IsArray as IsArray7, ValidateNested as ValidateNested3, IsString as IsString23, IsNotEmpty as
|
|
4477
|
+
import { IsArray as IsArray7, ValidateNested as ValidateNested3, IsString as IsString23, IsNotEmpty as IsNotEmpty41, IsOptional as IsOptional21, IsDateString, MaxLength as MaxLength12, ArrayMinSize as ArrayMinSize3 } from "class-validator";
|
|
4451
4478
|
import { Type as Type4 } from "class-transformer";
|
|
4452
4479
|
var ProjectDto = class {
|
|
4453
4480
|
};
|
|
@@ -4456,15 +4483,15 @@ __decorateClass([
|
|
|
4456
4483
|
], ProjectDto.prototype, "uuid", 2);
|
|
4457
4484
|
__decorateClass([
|
|
4458
4485
|
IsString23(),
|
|
4459
|
-
|
|
4486
|
+
IsNotEmpty41({ message: "Please Enter Project Name " })
|
|
4460
4487
|
], ProjectDto.prototype, "projectName", 2);
|
|
4461
4488
|
__decorateClass([
|
|
4462
4489
|
IsDateString(),
|
|
4463
|
-
|
|
4490
|
+
IsNotEmpty41({ message: "Please Enter Start Date " })
|
|
4464
4491
|
], ProjectDto.prototype, "startDate", 2);
|
|
4465
4492
|
__decorateClass([
|
|
4466
4493
|
IsDateString(),
|
|
4467
|
-
|
|
4494
|
+
IsNotEmpty41({ message: "Please Enter End Date " })
|
|
4468
4495
|
], ProjectDto.prototype, "endDate", 2);
|
|
4469
4496
|
__decorateClass([
|
|
4470
4497
|
IsOptional21(),
|
|
@@ -4486,7 +4513,7 @@ __decorateClass([
|
|
|
4486
4513
|
], CaseStudyDto.prototype, "uuid", 2);
|
|
4487
4514
|
__decorateClass([
|
|
4488
4515
|
IsString23(),
|
|
4489
|
-
|
|
4516
|
+
IsNotEmpty41({ message: "Please Enter Project Name " })
|
|
4490
4517
|
], CaseStudyDto.prototype, "projectName", 2);
|
|
4491
4518
|
__decorateClass([
|
|
4492
4519
|
IsOptional21(),
|
|
@@ -4569,12 +4596,12 @@ import {
|
|
|
4569
4596
|
IsEmail as IsEmail10,
|
|
4570
4597
|
IsBoolean as IsBoolean10,
|
|
4571
4598
|
IsOptional as IsOptional23,
|
|
4572
|
-
IsEnum as
|
|
4599
|
+
IsEnum as IsEnum15,
|
|
4573
4600
|
IsNumber as IsNumber3,
|
|
4574
4601
|
IsUrl as IsUrl3,
|
|
4575
4602
|
Min as Min3,
|
|
4576
4603
|
MaxLength as MaxLength14,
|
|
4577
|
-
IsNotEmpty as
|
|
4604
|
+
IsNotEmpty as IsNotEmpty43,
|
|
4578
4605
|
MinLength as MinLength12,
|
|
4579
4606
|
Matches as Matches9,
|
|
4580
4607
|
ValidateIf as ValidateIf5
|
|
@@ -4608,7 +4635,7 @@ __decorateClass([
|
|
|
4608
4635
|
IsString25({ message: "Mobile must be a string (e.g., 1243253534)" })
|
|
4609
4636
|
], CreateFreelancerDto.prototype, "mobile", 2);
|
|
4610
4637
|
__decorateClass([
|
|
4611
|
-
|
|
4638
|
+
IsNotEmpty43({ message: "Please enter password." }),
|
|
4612
4639
|
MinLength12(6),
|
|
4613
4640
|
MaxLength14(32),
|
|
4614
4641
|
Matches9(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
@@ -4616,7 +4643,7 @@ __decorateClass([
|
|
|
4616
4643
|
})
|
|
4617
4644
|
], CreateFreelancerDto.prototype, "password", 2);
|
|
4618
4645
|
__decorateClass([
|
|
4619
|
-
|
|
4646
|
+
IsNotEmpty43({ message: "Please enter confirm password." }),
|
|
4620
4647
|
Match("confirmPassword", { message: "Passwords do not match" })
|
|
4621
4648
|
], CreateFreelancerDto.prototype, "confirmPassword", 2);
|
|
4622
4649
|
__decorateClass([
|
|
@@ -4624,7 +4651,7 @@ __decorateClass([
|
|
|
4624
4651
|
Type6(() => Boolean)
|
|
4625
4652
|
], CreateFreelancerDto.prototype, "developer", 2);
|
|
4626
4653
|
__decorateClass([
|
|
4627
|
-
|
|
4654
|
+
IsEnum15(NatureOfWorkEnum, {
|
|
4628
4655
|
message: `Nature of work must be one of: ${Object.values(
|
|
4629
4656
|
NatureOfWorkEnum
|
|
4630
4657
|
).join(", ")}`
|
|
@@ -4636,7 +4663,7 @@ __decorateClass([
|
|
|
4636
4663
|
Type6(() => Number)
|
|
4637
4664
|
], CreateFreelancerDto.prototype, "expectedHourlyCompensation", 2);
|
|
4638
4665
|
__decorateClass([
|
|
4639
|
-
|
|
4666
|
+
IsEnum15(ModeOfWorkEnum, {
|
|
4640
4667
|
message: `Mode of work must be one of: ${Object.values(ModeOfWorkEnum).join(
|
|
4641
4668
|
", "
|
|
4642
4669
|
)}`
|
|
@@ -4648,7 +4675,7 @@ __decorateClass([
|
|
|
4648
4675
|
], CreateFreelancerDto.prototype, "isImmediateJoiner", 2);
|
|
4649
4676
|
__decorateClass([
|
|
4650
4677
|
ValidateIf5((o) => o.isImmediateJoiner === false),
|
|
4651
|
-
|
|
4678
|
+
IsNotEmpty43({ message: "Please enter availability to join." })
|
|
4652
4679
|
], CreateFreelancerDto.prototype, "availabilityToJoin", 2);
|
|
4653
4680
|
__decorateClass([
|
|
4654
4681
|
IsOptional23(),
|
|
@@ -4677,14 +4704,14 @@ import {
|
|
|
4677
4704
|
IsEmail as IsEmail11,
|
|
4678
4705
|
IsBoolean as IsBoolean11,
|
|
4679
4706
|
IsOptional as IsOptional24,
|
|
4680
|
-
IsEnum as
|
|
4707
|
+
IsEnum as IsEnum16,
|
|
4681
4708
|
IsNumber as IsNumber4,
|
|
4682
4709
|
IsUrl as IsUrl4,
|
|
4683
4710
|
Min as Min4,
|
|
4684
4711
|
MaxLength as MaxLength15,
|
|
4685
4712
|
MinLength as MinLength13,
|
|
4686
4713
|
Matches as Matches10,
|
|
4687
|
-
IsNotEmpty as
|
|
4714
|
+
IsNotEmpty as IsNotEmpty44,
|
|
4688
4715
|
ValidateIf as ValidateIf6
|
|
4689
4716
|
} from "class-validator";
|
|
4690
4717
|
import { Transform as Transform2, Type as Type7 } from "class-transformer";
|
|
@@ -4735,7 +4762,7 @@ __decorateClass([
|
|
|
4735
4762
|
], UpdateFreelancerDto.prototype, "developer", 2);
|
|
4736
4763
|
__decorateClass([
|
|
4737
4764
|
IsOptional24(),
|
|
4738
|
-
|
|
4765
|
+
IsEnum16(NatureOfWorkEnum2, {
|
|
4739
4766
|
message: `Nature of work must be one of: ${Object.values(
|
|
4740
4767
|
NatureOfWorkEnum2
|
|
4741
4768
|
).join(", ")}`
|
|
@@ -4749,7 +4776,7 @@ __decorateClass([
|
|
|
4749
4776
|
], UpdateFreelancerDto.prototype, "expectedHourlyCompensation", 2);
|
|
4750
4777
|
__decorateClass([
|
|
4751
4778
|
IsOptional24(),
|
|
4752
|
-
|
|
4779
|
+
IsEnum16(ModeOfWorkEnum2, {
|
|
4753
4780
|
message: `Mode of work must be one of: ${Object.values(ModeOfWorkEnum2).join(
|
|
4754
4781
|
", "
|
|
4755
4782
|
)}`
|
|
@@ -4762,7 +4789,7 @@ __decorateClass([
|
|
|
4762
4789
|
], UpdateFreelancerDto.prototype, "isImmediateJoiner", 2);
|
|
4763
4790
|
__decorateClass([
|
|
4764
4791
|
ValidateIf6((o) => o.isImmediateJoiner === false),
|
|
4765
|
-
|
|
4792
|
+
IsNotEmpty44({ message: "Please enter availability to join." })
|
|
4766
4793
|
], UpdateFreelancerDto.prototype, "availabilityToJoin", 2);
|
|
4767
4794
|
__decorateClass([
|
|
4768
4795
|
IsOptional24(),
|
|
@@ -4800,14 +4827,14 @@ var CLIENT_ADMIN_PATTERNS = {
|
|
|
4800
4827
|
|
|
4801
4828
|
// src/modules/client-admin/dto/create-client.dto.ts
|
|
4802
4829
|
import {
|
|
4803
|
-
IsNotEmpty as
|
|
4830
|
+
IsNotEmpty as IsNotEmpty45,
|
|
4804
4831
|
IsEmail as IsEmail12,
|
|
4805
4832
|
IsOptional as IsOptional25,
|
|
4806
4833
|
IsString as IsString27,
|
|
4807
4834
|
IsArray as IsArray9,
|
|
4808
4835
|
MinLength as MinLength14,
|
|
4809
4836
|
MaxLength as MaxLength16,
|
|
4810
|
-
IsEnum as
|
|
4837
|
+
IsEnum as IsEnum17,
|
|
4811
4838
|
Matches as Matches11
|
|
4812
4839
|
} from "class-validator";
|
|
4813
4840
|
var CreateClientHiringModeEnum = /* @__PURE__ */ ((CreateClientHiringModeEnum2) => {
|
|
@@ -4825,19 +4852,19 @@ var CreateClientHiringTypeEnum = /* @__PURE__ */ ((CreateClientHiringTypeEnum2)
|
|
|
4825
4852
|
var CreateClientDto = class {
|
|
4826
4853
|
};
|
|
4827
4854
|
__decorateClass([
|
|
4828
|
-
|
|
4855
|
+
IsNotEmpty45({ message: "Please enter first name." }),
|
|
4829
4856
|
IsString27()
|
|
4830
4857
|
], CreateClientDto.prototype, "firstName", 2);
|
|
4831
4858
|
__decorateClass([
|
|
4832
|
-
|
|
4859
|
+
IsNotEmpty45({ message: "Please enter last name." }),
|
|
4833
4860
|
IsString27()
|
|
4834
4861
|
], CreateClientDto.prototype, "lastName", 2);
|
|
4835
4862
|
__decorateClass([
|
|
4836
|
-
|
|
4863
|
+
IsNotEmpty45({ message: "Please enter email." }),
|
|
4837
4864
|
IsEmail12()
|
|
4838
4865
|
], CreateClientDto.prototype, "email", 2);
|
|
4839
4866
|
__decorateClass([
|
|
4840
|
-
|
|
4867
|
+
IsNotEmpty45({ message: "Please enter password." }),
|
|
4841
4868
|
MinLength14(6),
|
|
4842
4869
|
MaxLength16(32),
|
|
4843
4870
|
Matches11(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
@@ -4845,31 +4872,31 @@ __decorateClass([
|
|
|
4845
4872
|
})
|
|
4846
4873
|
], CreateClientDto.prototype, "password", 2);
|
|
4847
4874
|
__decorateClass([
|
|
4848
|
-
|
|
4875
|
+
IsNotEmpty45({ message: "Please enter confirm password." }),
|
|
4849
4876
|
Match("confirmPassword", { message: "Passwords do not match" })
|
|
4850
4877
|
], CreateClientDto.prototype, "confirmPassword", 2);
|
|
4851
4878
|
__decorateClass([
|
|
4852
|
-
|
|
4879
|
+
IsNotEmpty45({ message: "Please enter company name." }),
|
|
4853
4880
|
IsString27()
|
|
4854
4881
|
], CreateClientDto.prototype, "companyName", 2);
|
|
4855
4882
|
__decorateClass([
|
|
4856
4883
|
IsArray9({ message: "Skills should be an array." }),
|
|
4857
|
-
|
|
4884
|
+
IsNotEmpty45({ message: "Please enter skills." })
|
|
4858
4885
|
], CreateClientDto.prototype, "skills", 2);
|
|
4859
4886
|
__decorateClass([
|
|
4860
|
-
|
|
4887
|
+
IsNotEmpty45({ message: "Please specify required freelancer count." }),
|
|
4861
4888
|
IsString27()
|
|
4862
4889
|
], CreateClientDto.prototype, "requiredFreelancer", 2);
|
|
4863
4890
|
__decorateClass([
|
|
4864
|
-
|
|
4865
|
-
|
|
4891
|
+
IsNotEmpty45({ message: "Please specify the kind of hiring." }),
|
|
4892
|
+
IsEnum17(CreateClientHiringTypeEnum)
|
|
4866
4893
|
], CreateClientDto.prototype, "kindOfHiring", 2);
|
|
4867
4894
|
__decorateClass([
|
|
4868
|
-
|
|
4869
|
-
|
|
4895
|
+
IsNotEmpty45({ message: "Please specify the mode of hire." }),
|
|
4896
|
+
IsEnum17(CreateClientHiringModeEnum)
|
|
4870
4897
|
], CreateClientDto.prototype, "modeOfHire", 2);
|
|
4871
4898
|
__decorateClass([
|
|
4872
|
-
|
|
4899
|
+
IsNotEmpty45({ message: "Please let us know how you found us." }),
|
|
4873
4900
|
IsString27()
|
|
4874
4901
|
], CreateClientDto.prototype, "foundUsOn", 2);
|
|
4875
4902
|
__decorateClass([
|
|
@@ -4878,25 +4905,25 @@ __decorateClass([
|
|
|
4878
4905
|
], CreateClientDto.prototype, "foundUsOnDetail", 2);
|
|
4879
4906
|
|
|
4880
4907
|
// src/modules/client-admin/dto/update-client-status.dto.ts
|
|
4881
|
-
import { IsString as IsString28, IsNotEmpty as
|
|
4908
|
+
import { IsString as IsString28, IsNotEmpty as IsNotEmpty46 } from "class-validator";
|
|
4882
4909
|
var UpdateClientAccountStatusDto = class {
|
|
4883
4910
|
};
|
|
4884
4911
|
__decorateClass([
|
|
4885
|
-
|
|
4912
|
+
IsNotEmpty46({ message: "Please enter account status." }),
|
|
4886
4913
|
IsString28()
|
|
4887
4914
|
], UpdateClientAccountStatusDto.prototype, "accountStatus", 2);
|
|
4888
4915
|
|
|
4889
4916
|
// src/modules/client-admin/dto/update-client.dto.ts
|
|
4890
4917
|
import { Transform as Transform3 } from "class-transformer";
|
|
4891
4918
|
import {
|
|
4892
|
-
IsNotEmpty as
|
|
4919
|
+
IsNotEmpty as IsNotEmpty47,
|
|
4893
4920
|
IsEmail as IsEmail13,
|
|
4894
4921
|
IsOptional as IsOptional26,
|
|
4895
4922
|
IsString as IsString29,
|
|
4896
4923
|
IsArray as IsArray10,
|
|
4897
4924
|
MinLength as MinLength15,
|
|
4898
4925
|
MaxLength as MaxLength17,
|
|
4899
|
-
IsEnum as
|
|
4926
|
+
IsEnum as IsEnum18,
|
|
4900
4927
|
Matches as Matches12
|
|
4901
4928
|
} from "class-validator";
|
|
4902
4929
|
var UpdateClientHiringModeEnum = /* @__PURE__ */ ((UpdateClientHiringModeEnum2) => {
|
|
@@ -4914,15 +4941,15 @@ var UpdateClientHiringTypeEnum = /* @__PURE__ */ ((UpdateClientHiringTypeEnum2)
|
|
|
4914
4941
|
var UpdateClientDto = class {
|
|
4915
4942
|
};
|
|
4916
4943
|
__decorateClass([
|
|
4917
|
-
|
|
4944
|
+
IsNotEmpty47({ message: "Please enter first name." }),
|
|
4918
4945
|
IsString29()
|
|
4919
4946
|
], UpdateClientDto.prototype, "firstName", 2);
|
|
4920
4947
|
__decorateClass([
|
|
4921
|
-
|
|
4948
|
+
IsNotEmpty47({ message: "Please enter last name." }),
|
|
4922
4949
|
IsString29()
|
|
4923
4950
|
], UpdateClientDto.prototype, "lastName", 2);
|
|
4924
4951
|
__decorateClass([
|
|
4925
|
-
|
|
4952
|
+
IsNotEmpty47({ message: "Please enter email." }),
|
|
4926
4953
|
IsEmail13()
|
|
4927
4954
|
], UpdateClientDto.prototype, "email", 2);
|
|
4928
4955
|
__decorateClass([
|
|
@@ -4935,27 +4962,27 @@ __decorateClass([
|
|
|
4935
4962
|
})
|
|
4936
4963
|
], UpdateClientDto.prototype, "password", 2);
|
|
4937
4964
|
__decorateClass([
|
|
4938
|
-
|
|
4965
|
+
IsNotEmpty47({ message: "Please enter company name." }),
|
|
4939
4966
|
IsString29()
|
|
4940
4967
|
], UpdateClientDto.prototype, "companyName", 2);
|
|
4941
4968
|
__decorateClass([
|
|
4942
4969
|
IsArray10({ message: "Skills should be an array." }),
|
|
4943
|
-
|
|
4970
|
+
IsNotEmpty47({ message: "Please enter skills." })
|
|
4944
4971
|
], UpdateClientDto.prototype, "skills", 2);
|
|
4945
4972
|
__decorateClass([
|
|
4946
|
-
|
|
4973
|
+
IsNotEmpty47({ message: "Please specify required freelancer count." }),
|
|
4947
4974
|
IsString29()
|
|
4948
4975
|
], UpdateClientDto.prototype, "requiredFreelancer", 2);
|
|
4949
4976
|
__decorateClass([
|
|
4950
|
-
|
|
4951
|
-
|
|
4977
|
+
IsNotEmpty47({ message: "Please specify the kind of hiring." }),
|
|
4978
|
+
IsEnum18(UpdateClientHiringTypeEnum)
|
|
4952
4979
|
], UpdateClientDto.prototype, "kindOfHiring", 2);
|
|
4953
4980
|
__decorateClass([
|
|
4954
|
-
|
|
4955
|
-
|
|
4981
|
+
IsNotEmpty47({ message: "Please specify the mode of hire." }),
|
|
4982
|
+
IsEnum18(UpdateClientHiringModeEnum)
|
|
4956
4983
|
], UpdateClientDto.prototype, "modeOfHire", 2);
|
|
4957
4984
|
__decorateClass([
|
|
4958
|
-
|
|
4985
|
+
IsNotEmpty47({ message: "Please let us know how you found us." }),
|
|
4959
4986
|
IsString29()
|
|
4960
4987
|
], UpdateClientDto.prototype, "foundUsOn", 2);
|
|
4961
4988
|
__decorateClass([
|
|
@@ -4970,7 +4997,7 @@ var FREELANCER_DECLARATION_PATTERN = {
|
|
|
4970
4997
|
};
|
|
4971
4998
|
|
|
4972
4999
|
// src/modules/user/freelancer-declaration/dto/freelancer-declaration.dto.ts
|
|
4973
|
-
import { IsOptional as IsOptional27, IsEnum as
|
|
5000
|
+
import { IsOptional as IsOptional27, IsEnum as IsEnum19, IsString as IsString30, IsNotEmpty as IsNotEmpty48, IsIn as IsIn3 } from "class-validator";
|
|
4974
5001
|
var DocumentTypeEnum = /* @__PURE__ */ ((DocumentTypeEnum2) => {
|
|
4975
5002
|
DocumentTypeEnum2["AADHAAR"] = "AADHAAR_CARD";
|
|
4976
5003
|
DocumentTypeEnum2["PASSPORT"] = "PASSPORT";
|
|
@@ -4985,10 +5012,10 @@ __decorateClass([
|
|
|
4985
5012
|
IsString30({ message: "UUID must be a string" })
|
|
4986
5013
|
], FreelancerDeclarationDto.prototype, "uuid", 2);
|
|
4987
5014
|
__decorateClass([
|
|
4988
|
-
|
|
5015
|
+
IsEnum19(DocumentTypeEnum, { message: "Document type must be one of AADHAAR_CARD, PASSPORT, DRIVING_LICENSE, PAN_CARD" })
|
|
4989
5016
|
], FreelancerDeclarationDto.prototype, "documentType", 2);
|
|
4990
5017
|
__decorateClass([
|
|
4991
|
-
|
|
5018
|
+
IsNotEmpty48({ message: "Please accept the declaration " }),
|
|
4992
5019
|
IsString30(),
|
|
4993
5020
|
IsIn3([
|
|
4994
5021
|
"true"
|
|
@@ -5005,11 +5032,11 @@ var CMS_PATTERNS = {
|
|
|
5005
5032
|
};
|
|
5006
5033
|
|
|
5007
5034
|
// src/modules/cms/dto/create-cms.dto.ts
|
|
5008
|
-
import { IsBoolean as IsBoolean12, IsNotEmpty as
|
|
5035
|
+
import { IsBoolean as IsBoolean12, IsNotEmpty as IsNotEmpty49, IsOptional as IsOptional28 } from "class-validator";
|
|
5009
5036
|
var CreateCmsDto = class {
|
|
5010
5037
|
};
|
|
5011
5038
|
__decorateClass([
|
|
5012
|
-
|
|
5039
|
+
IsNotEmpty49({ message: "Please enter name." })
|
|
5013
5040
|
], CreateCmsDto.prototype, "title", 2);
|
|
5014
5041
|
__decorateClass([
|
|
5015
5042
|
IsOptional28()
|
|
@@ -5020,14 +5047,14 @@ __decorateClass([
|
|
|
5020
5047
|
], CreateCmsDto.prototype, "isActive", 2);
|
|
5021
5048
|
|
|
5022
5049
|
// src/modules/cms/dto/update-cms.dto.ts
|
|
5023
|
-
import { IsBoolean as IsBoolean13, IsNotEmpty as
|
|
5050
|
+
import { IsBoolean as IsBoolean13, IsNotEmpty as IsNotEmpty50, IsOptional as IsOptional29 } from "class-validator";
|
|
5024
5051
|
var UpdateCmsDto = class {
|
|
5025
5052
|
};
|
|
5026
5053
|
__decorateClass([
|
|
5027
5054
|
IsOptional29()
|
|
5028
5055
|
], UpdateCmsDto.prototype, "uuid", 2);
|
|
5029
5056
|
__decorateClass([
|
|
5030
|
-
|
|
5057
|
+
IsNotEmpty50({ message: "Please enter name." })
|
|
5031
5058
|
], UpdateCmsDto.prototype, "title", 2);
|
|
5032
5059
|
__decorateClass([
|
|
5033
5060
|
IsOptional29()
|
|
@@ -5064,12 +5091,12 @@ var ADMIN_JOB_PATTERN = {
|
|
|
5064
5091
|
import { Type as Type8 } from "class-transformer";
|
|
5065
5092
|
import {
|
|
5066
5093
|
IsString as IsString31,
|
|
5067
|
-
IsEnum as
|
|
5094
|
+
IsEnum as IsEnum20,
|
|
5068
5095
|
IsInt as IsInt6,
|
|
5069
5096
|
IsOptional as IsOptional30,
|
|
5070
5097
|
IsArray as IsArray11,
|
|
5071
5098
|
IsDateString as IsDateString4,
|
|
5072
|
-
IsNotEmpty as
|
|
5099
|
+
IsNotEmpty as IsNotEmpty51,
|
|
5073
5100
|
ArrayNotEmpty as ArrayNotEmpty6,
|
|
5074
5101
|
Min as Min5,
|
|
5075
5102
|
IsNumber as IsNumber5
|
|
@@ -5090,7 +5117,7 @@ var AdminCreateJobInformationDto = class {
|
|
|
5090
5117
|
};
|
|
5091
5118
|
__decorateClass([
|
|
5092
5119
|
IsString31({ message: "Job role must be a string." }),
|
|
5093
|
-
|
|
5120
|
+
IsNotEmpty51({ message: "Job role is required." })
|
|
5094
5121
|
], AdminCreateJobInformationDto.prototype, "jobRole", 2);
|
|
5095
5122
|
__decorateClass([
|
|
5096
5123
|
IsOptional30(),
|
|
@@ -5106,14 +5133,14 @@ __decorateClass([
|
|
|
5106
5133
|
Min5(1, { message: "There must be at least one opening." })
|
|
5107
5134
|
], AdminCreateJobInformationDto.prototype, "openings", 2);
|
|
5108
5135
|
__decorateClass([
|
|
5109
|
-
|
|
5136
|
+
IsEnum20(JobLocationEnumDto, {
|
|
5110
5137
|
message: `Location must be one of: ${Object.values(JobLocationEnumDto).join(
|
|
5111
5138
|
", "
|
|
5112
5139
|
)}.`
|
|
5113
5140
|
})
|
|
5114
5141
|
], AdminCreateJobInformationDto.prototype, "location", 2);
|
|
5115
5142
|
__decorateClass([
|
|
5116
|
-
|
|
5143
|
+
IsEnum20(TypeOfEmploymentEnumDto, {
|
|
5117
5144
|
message: `Type of employment must be one of: ${Object.values(
|
|
5118
5145
|
TypeOfEmploymentEnumDto
|
|
5119
5146
|
).join(", ")}.`
|
|
@@ -5121,15 +5148,15 @@ __decorateClass([
|
|
|
5121
5148
|
], AdminCreateJobInformationDto.prototype, "typeOfEmployment", 2);
|
|
5122
5149
|
__decorateClass([
|
|
5123
5150
|
IsString31({ message: "Onboarding Days must be a string." }),
|
|
5124
|
-
|
|
5151
|
+
IsNotEmpty51({ message: "Onboarding Days is required." })
|
|
5125
5152
|
], AdminCreateJobInformationDto.prototype, "onboardingTat", 2);
|
|
5126
5153
|
__decorateClass([
|
|
5127
5154
|
IsString31({ message: "Communication skills must be a string." }),
|
|
5128
|
-
|
|
5155
|
+
IsNotEmpty51({ message: "Communication skills are required." })
|
|
5129
5156
|
], AdminCreateJobInformationDto.prototype, "candidateCommunicationSkills", 2);
|
|
5130
5157
|
__decorateClass([
|
|
5131
5158
|
IsString31({ message: "Currency must be a string." }),
|
|
5132
|
-
|
|
5159
|
+
IsNotEmpty51({ message: "Currency is required." })
|
|
5133
5160
|
], AdminCreateJobInformationDto.prototype, "currency", 2);
|
|
5134
5161
|
__decorateClass([
|
|
5135
5162
|
Type8(() => Number),
|
|
@@ -5172,12 +5199,12 @@ __decorateClass([
|
|
|
5172
5199
|
import { Type as Type9 } from "class-transformer";
|
|
5173
5200
|
import {
|
|
5174
5201
|
IsString as IsString32,
|
|
5175
|
-
IsEnum as
|
|
5202
|
+
IsEnum as IsEnum21,
|
|
5176
5203
|
IsInt as IsInt7,
|
|
5177
5204
|
IsOptional as IsOptional31,
|
|
5178
5205
|
IsArray as IsArray12,
|
|
5179
5206
|
IsDateString as IsDateString5,
|
|
5180
|
-
IsNotEmpty as
|
|
5207
|
+
IsNotEmpty as IsNotEmpty52,
|
|
5181
5208
|
ArrayNotEmpty as ArrayNotEmpty7,
|
|
5182
5209
|
Min as Min6,
|
|
5183
5210
|
IsNumber as IsNumber6
|
|
@@ -5198,7 +5225,7 @@ var AdminUpdateJobInformationDto = class {
|
|
|
5198
5225
|
};
|
|
5199
5226
|
__decorateClass([
|
|
5200
5227
|
IsString32({ message: "Job role must be a string." }),
|
|
5201
|
-
|
|
5228
|
+
IsNotEmpty52({ message: "Job role is required." })
|
|
5202
5229
|
], AdminUpdateJobInformationDto.prototype, "jobRole", 2);
|
|
5203
5230
|
__decorateClass([
|
|
5204
5231
|
IsOptional31(),
|
|
@@ -5214,14 +5241,14 @@ __decorateClass([
|
|
|
5214
5241
|
Min6(1, { message: "There must be at least one opening." })
|
|
5215
5242
|
], AdminUpdateJobInformationDto.prototype, "openings", 2);
|
|
5216
5243
|
__decorateClass([
|
|
5217
|
-
|
|
5244
|
+
IsEnum21(JobLocationEnums, {
|
|
5218
5245
|
message: `Location must be one of: ${Object.values(JobLocationEnums).join(
|
|
5219
5246
|
", "
|
|
5220
5247
|
)}.`
|
|
5221
5248
|
})
|
|
5222
5249
|
], AdminUpdateJobInformationDto.prototype, "location", 2);
|
|
5223
5250
|
__decorateClass([
|
|
5224
|
-
|
|
5251
|
+
IsEnum21(TypeOfEmploymentEnums, {
|
|
5225
5252
|
message: `Type of employment must be one of: ${Object.values(
|
|
5226
5253
|
TypeOfEmploymentEnums
|
|
5227
5254
|
).join(", ")}.`
|
|
@@ -5229,15 +5256,15 @@ __decorateClass([
|
|
|
5229
5256
|
], AdminUpdateJobInformationDto.prototype, "typeOfEmployment", 2);
|
|
5230
5257
|
__decorateClass([
|
|
5231
5258
|
IsString32({ message: "Onboarding Days must be a string." }),
|
|
5232
|
-
|
|
5259
|
+
IsNotEmpty52({ message: "Onboarding Days is required." })
|
|
5233
5260
|
], AdminUpdateJobInformationDto.prototype, "onboardingTat", 2);
|
|
5234
5261
|
__decorateClass([
|
|
5235
5262
|
IsString32({ message: "Communication skills must be a string." }),
|
|
5236
|
-
|
|
5263
|
+
IsNotEmpty52({ message: "Communication skills are required." })
|
|
5237
5264
|
], AdminUpdateJobInformationDto.prototype, "candidateCommunicationSkills", 2);
|
|
5238
5265
|
__decorateClass([
|
|
5239
5266
|
IsString32({ message: "Currency must be a string." }),
|
|
5240
|
-
|
|
5267
|
+
IsNotEmpty52({ message: "Currency is required." })
|
|
5241
5268
|
], AdminUpdateJobInformationDto.prototype, "currency", 2);
|
|
5242
5269
|
__decorateClass([
|
|
5243
5270
|
Type9(() => Number),
|
|
@@ -5283,7 +5310,7 @@ var LEAD_PATTERN = {
|
|
|
5283
5310
|
};
|
|
5284
5311
|
|
|
5285
5312
|
// src/modules/lead/dto/create-lead.dto.ts
|
|
5286
|
-
import { IsString as IsString33, IsEmail as IsEmail14, IsOptional as IsOptional32, IsEnum as
|
|
5313
|
+
import { IsString as IsString33, IsEmail as IsEmail14, IsOptional as IsOptional32, IsEnum as IsEnum22 } from "class-validator";
|
|
5287
5314
|
var CategoryEmumDto = /* @__PURE__ */ ((CategoryEmumDto2) => {
|
|
5288
5315
|
CategoryEmumDto2["BUSINESS"] = "BUSINESS";
|
|
5289
5316
|
CategoryEmumDto2["FREELANCER"] = "FREELANCER";
|
|
@@ -5308,7 +5335,7 @@ __decorateClass([
|
|
|
5308
5335
|
IsString33({ message: "Description must be a string" })
|
|
5309
5336
|
], CreateLeadDto.prototype, "description", 2);
|
|
5310
5337
|
__decorateClass([
|
|
5311
|
-
|
|
5338
|
+
IsEnum22(CategoryEmumDto, {
|
|
5312
5339
|
message: `Type of category must be one of: ${Object.values(
|
|
5313
5340
|
CategoryEmumDto
|
|
5314
5341
|
).join(", ")}`
|
|
@@ -5328,11 +5355,11 @@ var ADMIN_ROLE_PATTERN = {
|
|
|
5328
5355
|
};
|
|
5329
5356
|
|
|
5330
5357
|
// src/modules/admin-role/dto/create-admin-role.dto.ts
|
|
5331
|
-
import { IsNotEmpty as
|
|
5358
|
+
import { IsNotEmpty as IsNotEmpty53, IsOptional as IsOptional33, IsString as IsString34 } from "class-validator";
|
|
5332
5359
|
var CreateAdminRoleDto = class {
|
|
5333
5360
|
};
|
|
5334
5361
|
__decorateClass([
|
|
5335
|
-
|
|
5362
|
+
IsNotEmpty53({ message: "Please enter admin role name." }),
|
|
5336
5363
|
IsString34({ message: "Role name must be a string." })
|
|
5337
5364
|
], CreateAdminRoleDto.prototype, "roleName", 2);
|
|
5338
5365
|
__decorateClass([
|
|
@@ -5341,11 +5368,11 @@ __decorateClass([
|
|
|
5341
5368
|
], CreateAdminRoleDto.prototype, "roleDescription", 2);
|
|
5342
5369
|
|
|
5343
5370
|
// src/modules/admin-role/dto/update-admin-role.dto.ts
|
|
5344
|
-
import { IsBoolean as IsBoolean15, IsNotEmpty as
|
|
5371
|
+
import { IsBoolean as IsBoolean15, IsNotEmpty as IsNotEmpty54, IsOptional as IsOptional34, IsString as IsString35 } from "class-validator";
|
|
5345
5372
|
var UpdateAdminRoleDto = class {
|
|
5346
5373
|
};
|
|
5347
5374
|
__decorateClass([
|
|
5348
|
-
|
|
5375
|
+
IsNotEmpty54({ message: "Please enter admin role name." }),
|
|
5349
5376
|
IsString35({ message: "Role name must be a string." })
|
|
5350
5377
|
], UpdateAdminRoleDto.prototype, "roleName", 2);
|
|
5351
5378
|
__decorateClass([
|
|
@@ -5358,15 +5385,15 @@ __decorateClass([
|
|
|
5358
5385
|
], UpdateAdminRoleDto.prototype, "isActive", 2);
|
|
5359
5386
|
|
|
5360
5387
|
// src/modules/admin-role/dto/attach-permissions-to-role.dto.ts
|
|
5361
|
-
import { IsNotEmpty as
|
|
5388
|
+
import { IsNotEmpty as IsNotEmpty55, IsString as IsString36 } from "class-validator";
|
|
5362
5389
|
var AttachPermissionsToRoleDto = class {
|
|
5363
5390
|
};
|
|
5364
5391
|
__decorateClass([
|
|
5365
|
-
|
|
5392
|
+
IsNotEmpty55({ message: "Please enter admin role ID." }),
|
|
5366
5393
|
IsString36({ message: "Role ID must be a string." })
|
|
5367
5394
|
], AttachPermissionsToRoleDto.prototype, "roleId", 2);
|
|
5368
5395
|
__decorateClass([
|
|
5369
|
-
|
|
5396
|
+
IsNotEmpty55({ message: "Please enter permission IDs." }),
|
|
5370
5397
|
IsString36({ message: "Permission IDs must be a comma-separated string." })
|
|
5371
5398
|
], AttachPermissionsToRoleDto.prototype, "permissionIds", 2);
|
|
5372
5399
|
|
|
@@ -5395,12 +5422,12 @@ var CALENDLY_PATTERN = {
|
|
|
5395
5422
|
// src/modules/interview/dto/interview-invite.dto.ts
|
|
5396
5423
|
import {
|
|
5397
5424
|
IsString as IsString37,
|
|
5398
|
-
IsNotEmpty as
|
|
5425
|
+
IsNotEmpty as IsNotEmpty56,
|
|
5399
5426
|
IsArray as IsArray13,
|
|
5400
5427
|
ArrayNotEmpty as ArrayNotEmpty8,
|
|
5401
5428
|
IsEmail as IsEmail15,
|
|
5402
5429
|
IsUUID as IsUUID12,
|
|
5403
|
-
IsEnum as
|
|
5430
|
+
IsEnum as IsEnum23,
|
|
5404
5431
|
ValidateIf as ValidateIf7,
|
|
5405
5432
|
ValidateNested as ValidateNested5
|
|
5406
5433
|
} from "class-validator";
|
|
@@ -5418,21 +5445,21 @@ __decorateClass([
|
|
|
5418
5445
|
IsUUID12()
|
|
5419
5446
|
], ExistingCandidateDto.prototype, "id", 2);
|
|
5420
5447
|
__decorateClass([
|
|
5421
|
-
|
|
5448
|
+
IsEnum23(CandidateType, {
|
|
5422
5449
|
message: "type must be one of SHORTLISTED, APPLICATNTS, or RECOMMENDED"
|
|
5423
5450
|
})
|
|
5424
5451
|
], ExistingCandidateDto.prototype, "type", 2);
|
|
5425
5452
|
var NewCandidateDto = class {
|
|
5426
5453
|
};
|
|
5427
5454
|
__decorateClass([
|
|
5428
|
-
|
|
5455
|
+
IsNotEmpty56({ message: "Please enter the candidate name" }),
|
|
5429
5456
|
IsString37({ message: "Name must be a string" })
|
|
5430
5457
|
], NewCandidateDto.prototype, "name", 2);
|
|
5431
5458
|
__decorateClass([
|
|
5432
5459
|
IsEmail15({}, { message: "Please enter a valid email." })
|
|
5433
5460
|
], NewCandidateDto.prototype, "email", 2);
|
|
5434
5461
|
__decorateClass([
|
|
5435
|
-
|
|
5462
|
+
IsEnum23(CandidateType, {
|
|
5436
5463
|
message: "type must be NEW"
|
|
5437
5464
|
})
|
|
5438
5465
|
], NewCandidateDto.prototype, "type", 2);
|
|
@@ -5465,7 +5492,7 @@ __decorateClass([
|
|
|
5465
5492
|
// src/modules/interview/dto/create-f2f-interview.dto.ts
|
|
5466
5493
|
import {
|
|
5467
5494
|
IsString as IsString38,
|
|
5468
|
-
IsNotEmpty as
|
|
5495
|
+
IsNotEmpty as IsNotEmpty57,
|
|
5469
5496
|
IsEmail as IsEmail16,
|
|
5470
5497
|
IsNumber as IsNumber7
|
|
5471
5498
|
} from "class-validator";
|
|
@@ -5473,11 +5500,11 @@ var CreateF2FInterviewDto = class {
|
|
|
5473
5500
|
};
|
|
5474
5501
|
__decorateClass([
|
|
5475
5502
|
IsEmail16({}, { message: "Please enter a valid email address." }),
|
|
5476
|
-
|
|
5503
|
+
IsNotEmpty57({ message: "Invitee email is required." })
|
|
5477
5504
|
], CreateF2FInterviewDto.prototype, "inviteeEmail", 2);
|
|
5478
5505
|
__decorateClass([
|
|
5479
5506
|
IsString38({ message: "Invitee name must be a string." }),
|
|
5480
|
-
|
|
5507
|
+
IsNotEmpty57({ message: "Invitee name is required." })
|
|
5481
5508
|
], CreateF2FInterviewDto.prototype, "inviteeName", 2);
|
|
5482
5509
|
__decorateClass([
|
|
5483
5510
|
IsNumber7({}, { message: "Interview ID must be a number." })
|
|
@@ -5489,19 +5516,19 @@ __decorateClass([
|
|
|
5489
5516
|
// src/modules/interview/dto/create-f2f-interview-reschedule-request.dto.ts
|
|
5490
5517
|
import {
|
|
5491
5518
|
IsString as IsString39,
|
|
5492
|
-
IsNotEmpty as
|
|
5519
|
+
IsNotEmpty as IsNotEmpty58
|
|
5493
5520
|
} from "class-validator";
|
|
5494
5521
|
var CreateF2FInterviewRescheduleRequestDto = class {
|
|
5495
5522
|
};
|
|
5496
5523
|
__decorateClass([
|
|
5497
|
-
|
|
5524
|
+
IsNotEmpty58({ message: "F2F Interview ID is required." })
|
|
5498
5525
|
], CreateF2FInterviewRescheduleRequestDto.prototype, "f2FInterviewId", 2);
|
|
5499
5526
|
__decorateClass([
|
|
5500
|
-
|
|
5527
|
+
IsNotEmpty58({ message: "Rescheduled date is required." })
|
|
5501
5528
|
], CreateF2FInterviewRescheduleRequestDto.prototype, "rescheduledDate", 2);
|
|
5502
5529
|
__decorateClass([
|
|
5503
5530
|
IsString39({ message: "Rescheduled slot must be a string." }),
|
|
5504
|
-
|
|
5531
|
+
IsNotEmpty58({ message: "Rescheduled slot is required." })
|
|
5505
5532
|
], CreateF2FInterviewRescheduleRequestDto.prototype, "rescheduledSlot", 2);
|
|
5506
5533
|
__decorateClass([
|
|
5507
5534
|
IsString39({ message: "Freelancer reason must be a string." })
|
|
@@ -6411,6 +6438,8 @@ export {
|
|
|
6411
6438
|
LEAD_PATTERN,
|
|
6412
6439
|
Lead,
|
|
6413
6440
|
LoginDto,
|
|
6441
|
+
LoginViaOtpDto,
|
|
6442
|
+
LoginViaOtpScopeEnum,
|
|
6414
6443
|
LogoutDto,
|
|
6415
6444
|
McqStatusEnum,
|
|
6416
6445
|
ModeOfHire,
|