@experts_hub/shared 1.0.358 → 1.0.360
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/index.d.mts +28 -1
- package/dist/index.d.ts +28 -1
- package/dist/index.js +732 -671
- package/dist/index.mjs +560 -504
- 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/dist/modules/otp/dto/index.d.ts +1 -0
- package/dist/modules/otp/dto/send-login-otp.dto.d.ts +12 -0
- package/dist/modules/otp/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);
|
|
@@ -167,12 +191,13 @@ __decorateClass([
|
|
|
167
191
|
var OTP_PATTERN = {
|
|
168
192
|
handleSendGuestOtp: "handle.send.guest.otp",
|
|
169
193
|
handleSendOtp: "handle.send.otp",
|
|
194
|
+
handleSendOtpForLogin: "handle.send.otp.for.login",
|
|
170
195
|
handleVerifyGuestOtp: "handle.verify.guest.otp",
|
|
171
196
|
handleVerifyOtp: "handle.verify.otp"
|
|
172
197
|
};
|
|
173
198
|
|
|
174
199
|
// src/modules/otp/dto/send-guest-otp.dto.ts
|
|
175
|
-
import { IsEnum as
|
|
200
|
+
import { IsEnum as IsEnum7, IsNotEmpty as IsNotEmpty9, IsOptional, IsString } from "class-validator";
|
|
176
201
|
var SendGuestOtpPurposeEnum = /* @__PURE__ */ ((SendGuestOtpPurposeEnum2) => {
|
|
177
202
|
SendGuestOtpPurposeEnum2["ACCOUNT_VERIFICATION"] = "ACCOUNT_VERIFICATION";
|
|
178
203
|
return SendGuestOtpPurposeEnum2;
|
|
@@ -185,11 +210,11 @@ var SendGuestOtpScopeEnum = /* @__PURE__ */ ((SendGuestOtpScopeEnum2) => {
|
|
|
185
210
|
var SendGuestOtpDto = class {
|
|
186
211
|
};
|
|
187
212
|
__decorateClass([
|
|
188
|
-
|
|
213
|
+
IsNotEmpty9({ message: "Please enter full name." }),
|
|
189
214
|
IsString({ message: "Please enter valid full name." })
|
|
190
215
|
], SendGuestOtpDto.prototype, "fullName", 2);
|
|
191
216
|
__decorateClass([
|
|
192
|
-
|
|
217
|
+
IsNotEmpty9({ message: "Please enter target." }),
|
|
193
218
|
IsString({ message: "Please enter valid target." })
|
|
194
219
|
], SendGuestOtpDto.prototype, "target", 2);
|
|
195
220
|
__decorateClass([
|
|
@@ -197,16 +222,42 @@ __decorateClass([
|
|
|
197
222
|
IsString({ message: "Please enter valid fallback target." })
|
|
198
223
|
], SendGuestOtpDto.prototype, "fallbackTarget", 2);
|
|
199
224
|
__decorateClass([
|
|
200
|
-
|
|
201
|
-
|
|
225
|
+
IsNotEmpty9({ message: "Please enter OTP purpose." }),
|
|
226
|
+
IsEnum7(SendGuestOtpPurposeEnum, { message: "Purpose must be a valid OTP purpose" })
|
|
202
227
|
], SendGuestOtpDto.prototype, "purpose", 2);
|
|
203
228
|
__decorateClass([
|
|
204
|
-
|
|
205
|
-
|
|
229
|
+
IsNotEmpty9({ message: "Please enter scope." }),
|
|
230
|
+
IsEnum7(SendGuestOtpScopeEnum, { message: "scope must be a valid" })
|
|
206
231
|
], SendGuestOtpDto.prototype, "scope", 2);
|
|
207
232
|
|
|
233
|
+
// src/modules/otp/dto/send-login-otp.dto.ts
|
|
234
|
+
import { IsEnum as IsEnum8, IsNotEmpty as IsNotEmpty10, IsString as IsString2 } from "class-validator";
|
|
235
|
+
var SendLoginOtpPurposeEnum = /* @__PURE__ */ ((SendLoginOtpPurposeEnum2) => {
|
|
236
|
+
SendLoginOtpPurposeEnum2["ACCOUNT_VERIFICATION"] = "ACCOUNT_VERIFICATION";
|
|
237
|
+
return SendLoginOtpPurposeEnum2;
|
|
238
|
+
})(SendLoginOtpPurposeEnum || {});
|
|
239
|
+
var SendLoginOtpScopeEnum = /* @__PURE__ */ ((SendLoginOtpScopeEnum2) => {
|
|
240
|
+
SendLoginOtpScopeEnum2["CLIENT"] = "CLIENT";
|
|
241
|
+
SendLoginOtpScopeEnum2["FREELANCER"] = "FREELANCER";
|
|
242
|
+
return SendLoginOtpScopeEnum2;
|
|
243
|
+
})(SendLoginOtpScopeEnum || {});
|
|
244
|
+
var SendLoginOtpDto = class {
|
|
245
|
+
};
|
|
246
|
+
__decorateClass([
|
|
247
|
+
IsNotEmpty10({ message: "Please enter target." }),
|
|
248
|
+
IsString2({ message: "Please enter valid target." })
|
|
249
|
+
], SendLoginOtpDto.prototype, "target", 2);
|
|
250
|
+
__decorateClass([
|
|
251
|
+
IsNotEmpty10({ message: "Please enter OTP purpose." }),
|
|
252
|
+
IsEnum8(SendLoginOtpPurposeEnum, { message: "Purpose must be a valid OTP purpose" })
|
|
253
|
+
], SendLoginOtpDto.prototype, "purpose", 2);
|
|
254
|
+
__decorateClass([
|
|
255
|
+
IsNotEmpty10({ message: "Please enter scope." }),
|
|
256
|
+
IsEnum8(SendLoginOtpScopeEnum, { message: "scope must be a valid" })
|
|
257
|
+
], SendLoginOtpDto.prototype, "scope", 2);
|
|
258
|
+
|
|
208
259
|
// src/modules/otp/dto/verify-guest-otp.dto.ts
|
|
209
|
-
import { IsEnum as
|
|
260
|
+
import { IsEnum as IsEnum9, IsNotEmpty as IsNotEmpty11, IsString as IsString3, Length } from "class-validator";
|
|
210
261
|
var VerifyGuestOtpPurposeEnum = /* @__PURE__ */ ((VerifyGuestOtpPurposeEnum2) => {
|
|
211
262
|
VerifyGuestOtpPurposeEnum2["ACCOUNT_VERIFICATION"] = "ACCOUNT_VERIFICATION";
|
|
212
263
|
return VerifyGuestOtpPurposeEnum2;
|
|
@@ -214,17 +265,17 @@ var VerifyGuestOtpPurposeEnum = /* @__PURE__ */ ((VerifyGuestOtpPurposeEnum2) =>
|
|
|
214
265
|
var VerifyGuestOtpDto = class {
|
|
215
266
|
};
|
|
216
267
|
__decorateClass([
|
|
217
|
-
|
|
218
|
-
|
|
268
|
+
IsNotEmpty11({ message: "Please enter target." }),
|
|
269
|
+
IsString3({ message: "Please enter valid target." })
|
|
219
270
|
], VerifyGuestOtpDto.prototype, "target", 2);
|
|
220
271
|
__decorateClass([
|
|
221
|
-
|
|
222
|
-
|
|
272
|
+
IsNotEmpty11({ message: "Please enter otp." }),
|
|
273
|
+
IsString3({ message: "Please enter valid otp." }),
|
|
223
274
|
Length(4, 6, { message: "OTP must be between 4 and 6 characters" })
|
|
224
275
|
], VerifyGuestOtpDto.prototype, "otp", 2);
|
|
225
276
|
__decorateClass([
|
|
226
|
-
|
|
227
|
-
|
|
277
|
+
IsNotEmpty11({ message: "Please enter OTP purpose." }),
|
|
278
|
+
IsEnum9(VerifyGuestOtpPurposeEnum, {
|
|
228
279
|
message: "Purpose must be a valid OTP purpose"
|
|
229
280
|
})
|
|
230
281
|
], VerifyGuestOtpDto.prototype, "purpose", 2);
|
|
@@ -243,11 +294,11 @@ var ONBOARDING_PATTERN = {
|
|
|
243
294
|
|
|
244
295
|
// src/modules/onboarding/dto/freelancer-create-account.dto.ts
|
|
245
296
|
import {
|
|
246
|
-
IsNotEmpty as
|
|
297
|
+
IsNotEmpty as IsNotEmpty12,
|
|
247
298
|
IsEmail as IsEmail2,
|
|
248
299
|
Matches as Matches3,
|
|
249
|
-
IsString as
|
|
250
|
-
IsOptional as
|
|
300
|
+
IsString as IsString4,
|
|
301
|
+
IsOptional as IsOptional3
|
|
251
302
|
} from "class-validator";
|
|
252
303
|
|
|
253
304
|
// src/decorators/match.decorator.ts
|
|
@@ -423,120 +474,120 @@ function IsBusinessEmail(validationOptions) {
|
|
|
423
474
|
var FreelancerCreateAccountDto = class {
|
|
424
475
|
};
|
|
425
476
|
__decorateClass([
|
|
426
|
-
|
|
427
|
-
|
|
477
|
+
IsNotEmpty12({ message: "Please enter full name." }),
|
|
478
|
+
IsString4({ message: "Please enter valid full name." })
|
|
428
479
|
], FreelancerCreateAccountDto.prototype, "fullName", 2);
|
|
429
480
|
__decorateClass([
|
|
430
|
-
|
|
481
|
+
IsNotEmpty12({ message: "Please enter email." }),
|
|
431
482
|
IsEmail2()
|
|
432
483
|
], FreelancerCreateAccountDto.prototype, "email", 2);
|
|
433
484
|
__decorateClass([
|
|
434
|
-
|
|
485
|
+
IsNotEmpty12({ message: "Please enter mobile code." }),
|
|
435
486
|
Matches3(/^\+\d{1,4}$/, {
|
|
436
487
|
message: "Please enter a valid country mobile code (e.g., +91, +1, +44)."
|
|
437
488
|
})
|
|
438
489
|
], FreelancerCreateAccountDto.prototype, "mobileCode", 2);
|
|
439
490
|
__decorateClass([
|
|
440
|
-
|
|
491
|
+
IsNotEmpty12({ message: "Please enter mobile number." }),
|
|
441
492
|
IsValidMobileNumber({ message: "Mobile number is not valid for the selected country code." })
|
|
442
493
|
], FreelancerCreateAccountDto.prototype, "mobile", 2);
|
|
443
494
|
__decorateClass([
|
|
444
|
-
|
|
495
|
+
IsOptional3()
|
|
445
496
|
], FreelancerCreateAccountDto.prototype, "onBoardedBy", 2);
|
|
446
497
|
|
|
447
498
|
// src/modules/onboarding/dto/freelancer-upload-resume.dto.ts
|
|
448
|
-
import { IsUUID, IsNotEmpty as
|
|
499
|
+
import { IsUUID, IsNotEmpty as IsNotEmpty13 } from "class-validator";
|
|
449
500
|
var FreelancerUploadResumeDto = class {
|
|
450
501
|
};
|
|
451
502
|
__decorateClass([
|
|
452
|
-
|
|
503
|
+
IsNotEmpty13({ message: "Please enter uuid." }),
|
|
453
504
|
IsUUID()
|
|
454
505
|
], FreelancerUploadResumeDto.prototype, "uuid", 2);
|
|
455
506
|
|
|
456
507
|
// src/modules/onboarding/dto/freelancer-parse-resume.dto.ts
|
|
457
|
-
import { IsUUID as IsUUID2, IsNotEmpty as
|
|
508
|
+
import { IsUUID as IsUUID2, IsNotEmpty as IsNotEmpty14 } from "class-validator";
|
|
458
509
|
var FreelancerParseResumeDto = class {
|
|
459
510
|
};
|
|
460
511
|
__decorateClass([
|
|
461
|
-
|
|
512
|
+
IsNotEmpty14({ message: "Please enter uuid." }),
|
|
462
513
|
IsUUID2()
|
|
463
514
|
], FreelancerParseResumeDto.prototype, "uuid", 2);
|
|
464
515
|
|
|
465
516
|
// src/modules/onboarding/dto/freelancer-initiate-mcq-assessment.dto.ts
|
|
466
|
-
import { IsUUID as IsUUID3, IsNotEmpty as
|
|
517
|
+
import { IsUUID as IsUUID3, IsNotEmpty as IsNotEmpty15 } from "class-validator";
|
|
467
518
|
var FreelancerInitiateMcqAssessmentDto = class {
|
|
468
519
|
};
|
|
469
520
|
__decorateClass([
|
|
470
|
-
|
|
521
|
+
IsNotEmpty15({ message: "Please enter uuid." }),
|
|
471
522
|
IsUUID3()
|
|
472
523
|
], FreelancerInitiateMcqAssessmentDto.prototype, "uuid", 2);
|
|
473
524
|
|
|
474
525
|
// src/modules/onboarding/dto/freelancer-skip-ai-assessment.dto.ts
|
|
475
|
-
import { IsUUID as IsUUID4, IsNotEmpty as
|
|
526
|
+
import { IsUUID as IsUUID4, IsNotEmpty as IsNotEmpty16 } from "class-validator";
|
|
476
527
|
var FreelancerSkipAiAssessmentDto = class {
|
|
477
528
|
};
|
|
478
529
|
__decorateClass([
|
|
479
|
-
|
|
530
|
+
IsNotEmpty16({ message: "Please enter uuid." }),
|
|
480
531
|
IsUUID4()
|
|
481
532
|
], FreelancerSkipAiAssessmentDto.prototype, "uuid", 2);
|
|
482
533
|
|
|
483
534
|
// src/modules/onboarding/dto/freelancer-initiate-ai-assessment.dto.ts
|
|
484
|
-
import { IsUUID as IsUUID5, IsNotEmpty as
|
|
535
|
+
import { IsUUID as IsUUID5, IsNotEmpty as IsNotEmpty17 } from "class-validator";
|
|
485
536
|
var FreelancerInitiateAiAssessmentDto = class {
|
|
486
537
|
};
|
|
487
538
|
__decorateClass([
|
|
488
|
-
|
|
539
|
+
IsNotEmpty17({ message: "Please enter uuid." }),
|
|
489
540
|
IsUUID5()
|
|
490
541
|
], FreelancerInitiateAiAssessmentDto.prototype, "uuid", 2);
|
|
491
542
|
|
|
492
543
|
// src/modules/onboarding/dto/freelancer-capture-ai-assessment-status.dto.ts
|
|
493
|
-
import { IsUUID as IsUUID6, IsNotEmpty as
|
|
544
|
+
import { IsUUID as IsUUID6, IsNotEmpty as IsNotEmpty18, IsOptional as IsOptional4 } from "class-validator";
|
|
494
545
|
var FreelancerCaptureAiAssessmentStatusDto = class {
|
|
495
546
|
};
|
|
496
547
|
__decorateClass([
|
|
497
|
-
|
|
548
|
+
IsNotEmpty18({ message: "Please enter uuid." }),
|
|
498
549
|
IsUUID6()
|
|
499
550
|
], FreelancerCaptureAiAssessmentStatusDto.prototype, "uuid", 2);
|
|
500
551
|
__decorateClass([
|
|
501
|
-
|
|
552
|
+
IsNotEmpty18({ message: "Please enter assessment id." })
|
|
502
553
|
], FreelancerCaptureAiAssessmentStatusDto.prototype, "assessmentId", 2);
|
|
503
554
|
__decorateClass([
|
|
504
|
-
|
|
555
|
+
IsNotEmpty18({ message: "Please enter assessment status." })
|
|
505
556
|
], FreelancerCaptureAiAssessmentStatusDto.prototype, "assessmentStatus", 2);
|
|
506
557
|
__decorateClass([
|
|
507
|
-
|
|
558
|
+
IsOptional4()
|
|
508
559
|
], FreelancerCaptureAiAssessmentStatusDto.prototype, "iframeEventData", 2);
|
|
509
560
|
|
|
510
561
|
// src/modules/onboarding/dto/freelancer-development-preference.dto.ts
|
|
511
|
-
import { IsUUID as IsUUID7, IsNotEmpty as
|
|
562
|
+
import { IsUUID as IsUUID7, IsNotEmpty as IsNotEmpty19, IsBoolean } from "class-validator";
|
|
512
563
|
var FreelancerDevelopmentPreferenceDto = class {
|
|
513
564
|
};
|
|
514
565
|
__decorateClass([
|
|
515
|
-
|
|
566
|
+
IsNotEmpty19({ message: "Please enter uuid." }),
|
|
516
567
|
IsUUID7()
|
|
517
568
|
], FreelancerDevelopmentPreferenceDto.prototype, "uuid", 2);
|
|
518
569
|
__decorateClass([
|
|
519
|
-
|
|
570
|
+
IsNotEmpty19({ message: "Please select development flag." }),
|
|
520
571
|
IsBoolean()
|
|
521
572
|
], FreelancerDevelopmentPreferenceDto.prototype, "developer", 2);
|
|
522
573
|
|
|
523
574
|
// src/modules/onboarding/dto/freelancer-profile-question.dto.ts
|
|
524
575
|
import {
|
|
525
576
|
IsUUID as IsUUID8,
|
|
526
|
-
IsString as
|
|
527
|
-
IsNotEmpty as
|
|
577
|
+
IsString as IsString5,
|
|
578
|
+
IsNotEmpty as IsNotEmpty20,
|
|
528
579
|
IsIn,
|
|
529
|
-
IsOptional as
|
|
580
|
+
IsOptional as IsOptional5
|
|
530
581
|
} from "class-validator";
|
|
531
582
|
var FreelancerProfileQuestionDto = class {
|
|
532
583
|
};
|
|
533
584
|
__decorateClass([
|
|
534
|
-
|
|
585
|
+
IsNotEmpty20({ message: "Please enter uuid." }),
|
|
535
586
|
IsUUID8()
|
|
536
587
|
], FreelancerProfileQuestionDto.prototype, "uuid", 2);
|
|
537
588
|
__decorateClass([
|
|
538
|
-
|
|
539
|
-
|
|
589
|
+
IsNotEmpty20({ message: "Please enter question slug." }),
|
|
590
|
+
IsString5(),
|
|
540
591
|
IsIn([
|
|
541
592
|
"natureOfWork",
|
|
542
593
|
"expectedHourlyCompensation",
|
|
@@ -546,29 +597,29 @@ __decorateClass([
|
|
|
546
597
|
])
|
|
547
598
|
], FreelancerProfileQuestionDto.prototype, "question_slug", 2);
|
|
548
599
|
__decorateClass([
|
|
549
|
-
|
|
600
|
+
IsNotEmpty20({ message: "Please enter answer." })
|
|
550
601
|
], FreelancerProfileQuestionDto.prototype, "answer", 2);
|
|
551
602
|
__decorateClass([
|
|
552
|
-
|
|
603
|
+
IsOptional5()
|
|
553
604
|
], FreelancerProfileQuestionDto.prototype, "currency", 2);
|
|
554
605
|
|
|
555
606
|
// src/modules/onboarding/dto/freelancer-work-showcase.dto.ts
|
|
556
607
|
import {
|
|
557
|
-
IsNotEmpty as
|
|
558
|
-
IsOptional as
|
|
608
|
+
IsNotEmpty as IsNotEmpty21,
|
|
609
|
+
IsOptional as IsOptional6,
|
|
559
610
|
IsUrl,
|
|
560
|
-
IsString as
|
|
611
|
+
IsString as IsString6,
|
|
561
612
|
IsUUID as IsUUID9
|
|
562
613
|
} from "class-validator";
|
|
563
614
|
var FreelancerWorkShowcaseDto = class {
|
|
564
615
|
};
|
|
565
616
|
__decorateClass([
|
|
566
|
-
|
|
617
|
+
IsNotEmpty21({ message: "Please enter uuid." }),
|
|
567
618
|
IsUUID9()
|
|
568
619
|
], FreelancerWorkShowcaseDto.prototype, "uuid", 2);
|
|
569
620
|
__decorateClass([
|
|
570
|
-
|
|
571
|
-
|
|
621
|
+
IsNotEmpty21({ message: "Please enter likedin profile url." }),
|
|
622
|
+
IsString6(),
|
|
572
623
|
IsUrl(
|
|
573
624
|
{ require_protocol: false },
|
|
574
625
|
{
|
|
@@ -577,7 +628,7 @@ __decorateClass([
|
|
|
577
628
|
)
|
|
578
629
|
], FreelancerWorkShowcaseDto.prototype, "linkedinProfileLink", 2);
|
|
579
630
|
__decorateClass([
|
|
580
|
-
|
|
631
|
+
IsOptional6(),
|
|
581
632
|
IsUrl(
|
|
582
633
|
{ require_protocol: false },
|
|
583
634
|
{
|
|
@@ -586,7 +637,7 @@ __decorateClass([
|
|
|
586
637
|
)
|
|
587
638
|
], FreelancerWorkShowcaseDto.prototype, "kaggleProfileLink", 2);
|
|
588
639
|
__decorateClass([
|
|
589
|
-
|
|
640
|
+
IsOptional6(),
|
|
590
641
|
IsUrl(
|
|
591
642
|
{ require_protocol: false },
|
|
592
643
|
{
|
|
@@ -595,7 +646,7 @@ __decorateClass([
|
|
|
595
646
|
)
|
|
596
647
|
], FreelancerWorkShowcaseDto.prototype, "githubProfileLink", 2);
|
|
597
648
|
__decorateClass([
|
|
598
|
-
|
|
649
|
+
IsOptional6(),
|
|
599
650
|
IsUrl(
|
|
600
651
|
{ require_protocol: false },
|
|
601
652
|
{
|
|
@@ -604,7 +655,7 @@ __decorateClass([
|
|
|
604
655
|
)
|
|
605
656
|
], FreelancerWorkShowcaseDto.prototype, "stackOverflowProfileLink", 2);
|
|
606
657
|
__decorateClass([
|
|
607
|
-
|
|
658
|
+
IsOptional6(),
|
|
608
659
|
IsUrl(
|
|
609
660
|
{ require_protocol: false },
|
|
610
661
|
{
|
|
@@ -616,20 +667,20 @@ __decorateClass([
|
|
|
616
667
|
// src/modules/onboarding/dto/client-profile-question.dto.ts
|
|
617
668
|
import {
|
|
618
669
|
IsUUID as IsUUID10,
|
|
619
|
-
IsString as
|
|
620
|
-
IsNotEmpty as
|
|
670
|
+
IsString as IsString7,
|
|
671
|
+
IsNotEmpty as IsNotEmpty22,
|
|
621
672
|
IsIn as IsIn2,
|
|
622
673
|
ValidateIf
|
|
623
674
|
} from "class-validator";
|
|
624
675
|
var ClientProfileQuestionDto = class {
|
|
625
676
|
};
|
|
626
677
|
__decorateClass([
|
|
627
|
-
|
|
678
|
+
IsNotEmpty22({ message: "Please enter uuid." }),
|
|
628
679
|
IsUUID10()
|
|
629
680
|
], ClientProfileQuestionDto.prototype, "uuid", 2);
|
|
630
681
|
__decorateClass([
|
|
631
|
-
|
|
632
|
-
|
|
682
|
+
IsNotEmpty22({ message: "Please enter question slug." }),
|
|
683
|
+
IsString7(),
|
|
633
684
|
IsIn2([
|
|
634
685
|
"skills",
|
|
635
686
|
"requiredFreelancer",
|
|
@@ -639,42 +690,42 @@ __decorateClass([
|
|
|
639
690
|
])
|
|
640
691
|
], ClientProfileQuestionDto.prototype, "question_slug", 2);
|
|
641
692
|
__decorateClass([
|
|
642
|
-
|
|
693
|
+
IsNotEmpty22({ message: "Please enter answer." })
|
|
643
694
|
], ClientProfileQuestionDto.prototype, "answer", 2);
|
|
644
695
|
__decorateClass([
|
|
645
696
|
ValidateIf((o) => o.questionSlug === "foundUsOn" && o.answer === "OTHER"),
|
|
646
|
-
|
|
647
|
-
|
|
697
|
+
IsNotEmpty22({ message: "Please enter foundUsOnDetail if answer is OTHER." }),
|
|
698
|
+
IsString7()
|
|
648
699
|
], ClientProfileQuestionDto.prototype, "foundUsOnDetail", 2);
|
|
649
700
|
|
|
650
701
|
// src/modules/onboarding/dto/client-create-account.dto.ts
|
|
651
702
|
import {
|
|
652
|
-
IsNotEmpty as
|
|
703
|
+
IsNotEmpty as IsNotEmpty23,
|
|
653
704
|
IsEmail as IsEmail3,
|
|
654
|
-
IsString as
|
|
655
|
-
IsOptional as
|
|
705
|
+
IsString as IsString8,
|
|
706
|
+
IsOptional as IsOptional7
|
|
656
707
|
} from "class-validator";
|
|
657
708
|
var ClientCreateAccountDto = class {
|
|
658
709
|
};
|
|
659
710
|
__decorateClass([
|
|
660
|
-
|
|
661
|
-
|
|
711
|
+
IsNotEmpty23({ message: "Please enter first name." }),
|
|
712
|
+
IsString8({ message: "Please enter valid first name." })
|
|
662
713
|
], ClientCreateAccountDto.prototype, "firstName", 2);
|
|
663
714
|
__decorateClass([
|
|
664
|
-
|
|
665
|
-
|
|
715
|
+
IsNotEmpty23({ message: "Please enter last name." }),
|
|
716
|
+
IsString8({ message: "Please enter valid last name." })
|
|
666
717
|
], ClientCreateAccountDto.prototype, "lastName", 2);
|
|
667
718
|
__decorateClass([
|
|
668
|
-
|
|
719
|
+
IsNotEmpty23({ message: "Please enter email." }),
|
|
669
720
|
IsEmail3(),
|
|
670
721
|
IsBusinessEmail()
|
|
671
722
|
], ClientCreateAccountDto.prototype, "email", 2);
|
|
672
723
|
__decorateClass([
|
|
673
|
-
|
|
674
|
-
|
|
724
|
+
IsNotEmpty23({ message: "Please enter company name." }),
|
|
725
|
+
IsString8({ message: "Please enter valid company name." })
|
|
675
726
|
], ClientCreateAccountDto.prototype, "companyName", 2);
|
|
676
727
|
__decorateClass([
|
|
677
|
-
|
|
728
|
+
IsOptional7()
|
|
678
729
|
], ClientCreateAccountDto.prototype, "onBoardedBy", 2);
|
|
679
730
|
|
|
680
731
|
// src/modules/resume-parser/pattern/pattern.ts
|
|
@@ -696,68 +747,68 @@ var SUBADMIN_PATTERN = {
|
|
|
696
747
|
|
|
697
748
|
// src/modules/user/subadmin/dto/create-subadmin.dto.ts
|
|
698
749
|
import {
|
|
699
|
-
IsNotEmpty as
|
|
750
|
+
IsNotEmpty as IsNotEmpty24
|
|
700
751
|
} from "class-validator";
|
|
701
752
|
var CreateSubAdminDto = class {
|
|
702
753
|
};
|
|
703
754
|
__decorateClass([
|
|
704
|
-
|
|
755
|
+
IsNotEmpty24({ message: "Please enter username." })
|
|
705
756
|
], CreateSubAdminDto.prototype, "userName", 2);
|
|
706
757
|
__decorateClass([
|
|
707
|
-
|
|
758
|
+
IsNotEmpty24({ message: "Please enter first name." })
|
|
708
759
|
], CreateSubAdminDto.prototype, "firstName", 2);
|
|
709
760
|
__decorateClass([
|
|
710
|
-
|
|
761
|
+
IsNotEmpty24({ message: "Please enter last name." })
|
|
711
762
|
], CreateSubAdminDto.prototype, "lastName", 2);
|
|
712
763
|
__decorateClass([
|
|
713
|
-
|
|
764
|
+
IsNotEmpty24({ message: "Please enter email." })
|
|
714
765
|
], CreateSubAdminDto.prototype, "email", 2);
|
|
715
766
|
__decorateClass([
|
|
716
|
-
|
|
767
|
+
IsNotEmpty24({ message: "Please enter mobile Code." })
|
|
717
768
|
], CreateSubAdminDto.prototype, "mobileCode", 2);
|
|
718
769
|
__decorateClass([
|
|
719
|
-
|
|
770
|
+
IsNotEmpty24({ message: "Please enter mobile number." })
|
|
720
771
|
], CreateSubAdminDto.prototype, "mobile", 2);
|
|
721
772
|
__decorateClass([
|
|
722
|
-
|
|
773
|
+
IsNotEmpty24({ message: "Please enter the password." })
|
|
723
774
|
], CreateSubAdminDto.prototype, "password", 2);
|
|
724
775
|
__decorateClass([
|
|
725
|
-
|
|
776
|
+
IsNotEmpty24({ message: "Please Select Roles." })
|
|
726
777
|
], CreateSubAdminDto.prototype, "roleIds", 2);
|
|
727
778
|
|
|
728
779
|
// src/modules/user/subadmin/dto/update-subadmin-status.dto.ts
|
|
729
|
-
import { IsString as
|
|
780
|
+
import { IsString as IsString9 } from "class-validator";
|
|
730
781
|
var UpdateSubAdminAccountStatusDto = class {
|
|
731
782
|
};
|
|
732
783
|
__decorateClass([
|
|
733
|
-
|
|
784
|
+
IsString9()
|
|
734
785
|
], UpdateSubAdminAccountStatusDto.prototype, "accountStatus", 2);
|
|
735
786
|
|
|
736
787
|
// src/modules/user/subadmin/dto/update-subadmin.dto.ts
|
|
737
788
|
import { Transform } from "class-transformer";
|
|
738
|
-
import { IsNotEmpty as
|
|
789
|
+
import { IsNotEmpty as IsNotEmpty25, IsOptional as IsOptional8, Matches as Matches5, MaxLength as MaxLength5, MinLength as MinLength5 } from "class-validator";
|
|
739
790
|
var UpdateSubAdminDto = class {
|
|
740
791
|
};
|
|
741
792
|
__decorateClass([
|
|
742
|
-
|
|
793
|
+
IsNotEmpty25({ message: "Please enter username." })
|
|
743
794
|
], UpdateSubAdminDto.prototype, "userName", 2);
|
|
744
795
|
__decorateClass([
|
|
745
|
-
|
|
796
|
+
IsNotEmpty25({ message: "Please enter first name." })
|
|
746
797
|
], UpdateSubAdminDto.prototype, "firstName", 2);
|
|
747
798
|
__decorateClass([
|
|
748
|
-
|
|
799
|
+
IsNotEmpty25({ message: "Please enter last name." })
|
|
749
800
|
], UpdateSubAdminDto.prototype, "lastName", 2);
|
|
750
801
|
__decorateClass([
|
|
751
|
-
|
|
802
|
+
IsNotEmpty25({ message: "Please enter email." })
|
|
752
803
|
], UpdateSubAdminDto.prototype, "email", 2);
|
|
753
804
|
__decorateClass([
|
|
754
|
-
|
|
805
|
+
IsNotEmpty25({ message: "Please enter mobile Code." })
|
|
755
806
|
], UpdateSubAdminDto.prototype, "mobileCode", 2);
|
|
756
807
|
__decorateClass([
|
|
757
|
-
|
|
808
|
+
IsNotEmpty25({ message: "Please enter mobile number." })
|
|
758
809
|
], UpdateSubAdminDto.prototype, "mobile", 2);
|
|
759
810
|
__decorateClass([
|
|
760
|
-
|
|
811
|
+
IsOptional8(),
|
|
761
812
|
Transform(({ value }) => value === null || value === "" ? void 0 : value),
|
|
762
813
|
MinLength5(6, { message: "Password must be at least 6 characters." }),
|
|
763
814
|
MaxLength5(32, { message: "Password must not exceed 32 characters." }),
|
|
@@ -766,7 +817,7 @@ __decorateClass([
|
|
|
766
817
|
})
|
|
767
818
|
], UpdateSubAdminDto.prototype, "password", 2);
|
|
768
819
|
__decorateClass([
|
|
769
|
-
|
|
820
|
+
IsNotEmpty25({ message: "Please Select Roles." })
|
|
770
821
|
], UpdateSubAdminDto.prototype, "roleIds", 2);
|
|
771
822
|
|
|
772
823
|
// src/modules/user/client-profile/pattern/pattern.ts
|
|
@@ -781,71 +832,71 @@ var CLIENT_PROFILE_PATTERN = {
|
|
|
781
832
|
|
|
782
833
|
// src/modules/user/client-profile/dto/update-client-profile.dto.ts
|
|
783
834
|
import {
|
|
784
|
-
IsString as
|
|
785
|
-
IsNotEmpty as
|
|
835
|
+
IsString as IsString10,
|
|
836
|
+
IsNotEmpty as IsNotEmpty26,
|
|
786
837
|
IsEmail as IsEmail4,
|
|
787
838
|
Length as Length2,
|
|
788
839
|
IsUrl as IsUrl2,
|
|
789
|
-
IsOptional as
|
|
840
|
+
IsOptional as IsOptional9,
|
|
790
841
|
ValidateIf as ValidateIf2
|
|
791
842
|
} from "class-validator";
|
|
792
843
|
var UpdateCompanyProfileDto = class {
|
|
793
844
|
};
|
|
794
845
|
__decorateClass([
|
|
795
|
-
|
|
796
|
-
|
|
846
|
+
IsNotEmpty26({ message: "Please enter company name." }),
|
|
847
|
+
IsString10({ message: "Company name must be a string." }),
|
|
797
848
|
Length2(2, 255, {
|
|
798
849
|
message: "Company name must be between 2 and 255 characters"
|
|
799
850
|
})
|
|
800
851
|
], UpdateCompanyProfileDto.prototype, "companyName", 2);
|
|
801
852
|
__decorateClass([
|
|
802
|
-
|
|
853
|
+
IsOptional9(),
|
|
803
854
|
ValidateIf2((o) => o.webSite !== ""),
|
|
804
855
|
IsUrl2({}, { message: "Invalid website URL format" })
|
|
805
856
|
], UpdateCompanyProfileDto.prototype, "webSite", 2);
|
|
806
857
|
__decorateClass([
|
|
807
|
-
|
|
808
|
-
|
|
858
|
+
IsNotEmpty26({ message: "Please enter company address." }),
|
|
859
|
+
IsString10({ message: "Company address must be a string" }),
|
|
809
860
|
Length2(5, 1e3, { message: "Address must be between 5 and 1000 characters" })
|
|
810
861
|
], UpdateCompanyProfileDto.prototype, "companyAddress", 2);
|
|
811
862
|
__decorateClass([
|
|
812
|
-
|
|
813
|
-
|
|
863
|
+
IsNotEmpty26({ message: "Please enter mobile code." }),
|
|
864
|
+
IsString10({ message: "Mobile Code must be a string" })
|
|
814
865
|
], UpdateCompanyProfileDto.prototype, "mobileCode", 2);
|
|
815
866
|
// @Matches(/^(\+1\s?)?(\(?\d{3}\)?[\s.-]?)?\d{3}[\s.-]?\d{4}$/, {
|
|
816
867
|
// message: "Please enter a valid US phone number",
|
|
817
868
|
// })
|
|
818
869
|
__decorateClass([
|
|
819
|
-
|
|
820
|
-
|
|
870
|
+
IsNotEmpty26({ message: "Please enter phone number." }),
|
|
871
|
+
IsString10({ message: "Please enter valid phone number." })
|
|
821
872
|
], UpdateCompanyProfileDto.prototype, "phoneNumber", 2);
|
|
822
873
|
__decorateClass([
|
|
823
|
-
|
|
874
|
+
IsNotEmpty26({ message: "Please enter email." }),
|
|
824
875
|
IsEmail4()
|
|
825
876
|
], UpdateCompanyProfileDto.prototype, "email", 2);
|
|
826
877
|
__decorateClass([
|
|
827
|
-
|
|
828
|
-
|
|
878
|
+
IsOptional9(),
|
|
879
|
+
IsString10({ message: "About company must be a string." })
|
|
829
880
|
], UpdateCompanyProfileDto.prototype, "aboutCompany", 2);
|
|
830
881
|
|
|
831
882
|
// src/modules/user/client-profile/dto/client-change-password.dto.ts
|
|
832
883
|
import {
|
|
833
|
-
IsString as
|
|
884
|
+
IsString as IsString11,
|
|
834
885
|
MinLength as MinLength6,
|
|
835
886
|
Matches as Matches7,
|
|
836
|
-
IsNotEmpty as
|
|
887
|
+
IsNotEmpty as IsNotEmpty27
|
|
837
888
|
} from "class-validator";
|
|
838
889
|
var ClientChangePasswordDto = class {
|
|
839
890
|
};
|
|
840
891
|
__decorateClass([
|
|
841
|
-
|
|
892
|
+
IsString11(),
|
|
842
893
|
MinLength6(8, { message: "Password must be at least 8 characters long." }),
|
|
843
894
|
Matches7(/^(?=.*[A-Z])(?=.*\d).+$/, {
|
|
844
895
|
message: "Password must contain at least one uppercase letter and one number."
|
|
845
896
|
})
|
|
846
897
|
], ClientChangePasswordDto.prototype, "newPassword", 2);
|
|
847
898
|
__decorateClass([
|
|
848
|
-
|
|
899
|
+
IsNotEmpty27({ message: "Please enter confirm password." }),
|
|
849
900
|
Match("newPassword", { message: "Passwords do not match" })
|
|
850
901
|
], ClientChangePasswordDto.prototype, "confirmPassword", 2);
|
|
851
902
|
|
|
@@ -859,26 +910,26 @@ var ASSESSMENT_QUESTION_PATTERN = {
|
|
|
859
910
|
|
|
860
911
|
// src/modules/question/dto/create-question.dto.ts
|
|
861
912
|
import {
|
|
862
|
-
IsNotEmpty as
|
|
863
|
-
IsOptional as
|
|
913
|
+
IsNotEmpty as IsNotEmpty28,
|
|
914
|
+
IsOptional as IsOptional10,
|
|
864
915
|
IsBoolean as IsBoolean2
|
|
865
916
|
} from "class-validator";
|
|
866
917
|
var CreateQuestionDto = class {
|
|
867
918
|
};
|
|
868
919
|
__decorateClass([
|
|
869
|
-
|
|
920
|
+
IsNotEmpty28({ message: "Please enter unique id." })
|
|
870
921
|
], CreateQuestionDto.prototype, "questionId", 2);
|
|
871
922
|
__decorateClass([
|
|
872
|
-
|
|
923
|
+
IsNotEmpty28({ message: "Please enter question." })
|
|
873
924
|
], CreateQuestionDto.prototype, "question", 2);
|
|
874
925
|
__decorateClass([
|
|
875
|
-
|
|
926
|
+
IsNotEmpty28({ message: "Please enter for whom the question is." })
|
|
876
927
|
], CreateQuestionDto.prototype, "questionFor", 2);
|
|
877
928
|
__decorateClass([
|
|
878
|
-
|
|
929
|
+
IsNotEmpty28({ message: "Please enter options." })
|
|
879
930
|
], CreateQuestionDto.prototype, "options", 2);
|
|
880
931
|
__decorateClass([
|
|
881
|
-
|
|
932
|
+
IsOptional10(),
|
|
882
933
|
IsBoolean2({ message: "Whether the question status active" })
|
|
883
934
|
], CreateQuestionDto.prototype, "isActive", 2);
|
|
884
935
|
|
|
@@ -909,13 +960,13 @@ var JOB_PATTERN = {
|
|
|
909
960
|
|
|
910
961
|
// src/modules/job/dto/job-basic-information.dto.ts
|
|
911
962
|
import {
|
|
912
|
-
IsString as
|
|
913
|
-
IsNotEmpty as
|
|
963
|
+
IsString as IsString12,
|
|
964
|
+
IsNotEmpty as IsNotEmpty29,
|
|
914
965
|
IsArray,
|
|
915
966
|
ArrayNotEmpty,
|
|
916
967
|
IsNumber,
|
|
917
|
-
IsOptional as
|
|
918
|
-
IsEnum as
|
|
968
|
+
IsOptional as IsOptional11,
|
|
969
|
+
IsEnum as IsEnum10,
|
|
919
970
|
Min,
|
|
920
971
|
ValidateIf as ValidateIf3
|
|
921
972
|
} from "class-validator";
|
|
@@ -938,22 +989,22 @@ var JobBasicInformationDto = class {
|
|
|
938
989
|
}
|
|
939
990
|
};
|
|
940
991
|
__decorateClass([
|
|
941
|
-
|
|
992
|
+
IsOptional11(),
|
|
942
993
|
Type(() => Boolean)
|
|
943
994
|
], JobBasicInformationDto.prototype, "isDraft", 2);
|
|
944
995
|
__decorateClass([
|
|
945
|
-
|
|
946
|
-
|
|
996
|
+
IsNotEmpty29({ message: "Please enter job role" }),
|
|
997
|
+
IsString12({ message: "Job role must be a string" })
|
|
947
998
|
], JobBasicInformationDto.prototype, "jobRole", 2);
|
|
948
999
|
__decorateClass([
|
|
949
|
-
|
|
950
|
-
|
|
1000
|
+
IsOptional11(),
|
|
1001
|
+
IsString12({ message: "Note must be a string" })
|
|
951
1002
|
], JobBasicInformationDto.prototype, "note", 2);
|
|
952
1003
|
__decorateClass([
|
|
953
1004
|
ValidateIf3((o) => !o.isDraft),
|
|
954
1005
|
IsArray({ message: "Skills must be an array" }),
|
|
955
1006
|
ArrayNotEmpty({ message: "Please select at least one skill" }),
|
|
956
|
-
|
|
1007
|
+
IsString12({ each: true, message: "Each skill must be a string" }),
|
|
957
1008
|
Type(() => String)
|
|
958
1009
|
], JobBasicInformationDto.prototype, "skills", 2);
|
|
959
1010
|
__decorateClass([
|
|
@@ -964,7 +1015,7 @@ __decorateClass([
|
|
|
964
1015
|
], JobBasicInformationDto.prototype, "openings", 2);
|
|
965
1016
|
__decorateClass([
|
|
966
1017
|
ValidateIf3((o) => !o.isDraft),
|
|
967
|
-
|
|
1018
|
+
IsEnum10(JobLocation, {
|
|
968
1019
|
message: `Location must be one of: ${Object.values(JobLocation).join(
|
|
969
1020
|
", "
|
|
970
1021
|
)}`
|
|
@@ -987,7 +1038,7 @@ __decorateClass([
|
|
|
987
1038
|
], JobBasicInformationDto.prototype, "cityId", 2);
|
|
988
1039
|
__decorateClass([
|
|
989
1040
|
ValidateIf3((o) => !o.isDraft),
|
|
990
|
-
|
|
1041
|
+
IsEnum10(EmploymentType, {
|
|
991
1042
|
message: `Type of employment must be one of: ${Object.values(
|
|
992
1043
|
EmploymentType
|
|
993
1044
|
).join(", ")}`
|
|
@@ -995,7 +1046,7 @@ __decorateClass([
|
|
|
995
1046
|
], JobBasicInformationDto.prototype, "typeOfEmployment", 2);
|
|
996
1047
|
__decorateClass([
|
|
997
1048
|
ValidateIf3((o) => !o.isDraft),
|
|
998
|
-
|
|
1049
|
+
IsString12({ message: "Currency must be a string" })
|
|
999
1050
|
], JobBasicInformationDto.prototype, "currency", 2);
|
|
1000
1051
|
__decorateClass([
|
|
1001
1052
|
ValidateIf3((o) => !o.isDraft),
|
|
@@ -1011,62 +1062,62 @@ __decorateClass([
|
|
|
1011
1062
|
], JobBasicInformationDto.prototype, "expectedSalaryTo", 2);
|
|
1012
1063
|
__decorateClass([
|
|
1013
1064
|
ValidateIf3((o) => !o.isDraft),
|
|
1014
|
-
|
|
1015
|
-
|
|
1065
|
+
IsNotEmpty29({ message: "Please enter start date" }),
|
|
1066
|
+
IsString12({ message: "Start date must be valid" })
|
|
1016
1067
|
], JobBasicInformationDto.prototype, "tentativeStartDate", 2);
|
|
1017
1068
|
__decorateClass([
|
|
1018
1069
|
ValidateIf3((o) => !o.isDraft),
|
|
1019
|
-
|
|
1020
|
-
|
|
1070
|
+
IsNotEmpty29({ message: "Please enter end date" }),
|
|
1071
|
+
IsString12({ message: "End date must be valid" })
|
|
1021
1072
|
], JobBasicInformationDto.prototype, "tentativeEndDate", 2);
|
|
1022
1073
|
__decorateClass([
|
|
1023
1074
|
ValidateIf3((o) => !o.isDraft),
|
|
1024
|
-
|
|
1025
|
-
|
|
1075
|
+
IsString12({ message: "Onboarding TAT must be a string" }),
|
|
1076
|
+
IsOptional11()
|
|
1026
1077
|
], JobBasicInformationDto.prototype, "onboardingTat", 2);
|
|
1027
1078
|
__decorateClass([
|
|
1028
1079
|
ValidateIf3((o) => !o.isDraft),
|
|
1029
|
-
|
|
1030
|
-
|
|
1080
|
+
IsString12({ message: "Candidate communication skills must be a string" }),
|
|
1081
|
+
IsOptional11()
|
|
1031
1082
|
], JobBasicInformationDto.prototype, "candidateCommunicationSkills", 2);
|
|
1032
1083
|
__decorateClass([
|
|
1033
1084
|
ValidateIf3((o) => !o.isDraft),
|
|
1034
|
-
|
|
1035
|
-
|
|
1085
|
+
IsNotEmpty29({ message: "Please enter the academic qualification" }),
|
|
1086
|
+
IsString12({ message: "Academic qualification must be a string" })
|
|
1036
1087
|
], JobBasicInformationDto.prototype, "academicQualification", 2);
|
|
1037
1088
|
__decorateClass([
|
|
1038
1089
|
ValidateIf3((o) => !o.isDraft),
|
|
1039
|
-
|
|
1040
|
-
|
|
1090
|
+
IsNotEmpty29({ message: "Please enter the years of experience" }),
|
|
1091
|
+
IsString12({ message: "Years of experience must be a string" })
|
|
1041
1092
|
], JobBasicInformationDto.prototype, "yearsOfExperience", 2);
|
|
1042
1093
|
__decorateClass([
|
|
1043
1094
|
ValidateIf3((o) => !o.isDraft),
|
|
1044
|
-
|
|
1045
|
-
|
|
1095
|
+
IsNotEmpty29({ message: "Please enter the business industry" }),
|
|
1096
|
+
IsString12({ message: "Business industry must be a string" })
|
|
1046
1097
|
], JobBasicInformationDto.prototype, "businessIndustry", 2);
|
|
1047
1098
|
|
|
1048
1099
|
// src/modules/job/dto/job-additional-comment.dto.ts
|
|
1049
|
-
import { IsOptional as
|
|
1100
|
+
import { IsOptional as IsOptional12, IsString as IsString13, MaxLength as MaxLength6 } from "class-validator";
|
|
1050
1101
|
var JobAdditionalCommentDto = class {
|
|
1051
1102
|
};
|
|
1052
1103
|
__decorateClass([
|
|
1053
|
-
|
|
1054
|
-
|
|
1104
|
+
IsOptional12(),
|
|
1105
|
+
IsString13({ message: "Additional comment must be a string" }),
|
|
1055
1106
|
MaxLength6(500, { message: "Additional comment must not exceed 500 characters" })
|
|
1056
1107
|
], JobAdditionalCommentDto.prototype, "additionalComment", 2);
|
|
1057
1108
|
|
|
1058
1109
|
// src/modules/job/dto/job-description.dto.ts
|
|
1059
|
-
import { IsString as
|
|
1110
|
+
import { IsString as IsString14, IsNotEmpty as IsNotEmpty30, MaxLength as MaxLength7 } from "class-validator";
|
|
1060
1111
|
var JobDescriptionDto = class {
|
|
1061
1112
|
};
|
|
1062
1113
|
__decorateClass([
|
|
1063
|
-
|
|
1064
|
-
|
|
1114
|
+
IsNotEmpty30({ message: "Please enter job description" }),
|
|
1115
|
+
IsString14({ message: "Description must be a string" }),
|
|
1065
1116
|
MaxLength7(5e3, { message: "Description must not exceed 5000 characters" })
|
|
1066
1117
|
], JobDescriptionDto.prototype, "description", 2);
|
|
1067
1118
|
|
|
1068
1119
|
// src/modules/job/dto/job-status.dto.ts
|
|
1069
|
-
import { IsEnum as
|
|
1120
|
+
import { IsEnum as IsEnum11, IsNotEmpty as IsNotEmpty31 } from "class-validator";
|
|
1070
1121
|
var JobStatus = /* @__PURE__ */ ((JobStatus2) => {
|
|
1071
1122
|
JobStatus2["ACTIVE"] = "ACTIVE";
|
|
1072
1123
|
JobStatus2["OPEN"] = "OPEN";
|
|
@@ -1078,8 +1129,8 @@ var JobStatus = /* @__PURE__ */ ((JobStatus2) => {
|
|
|
1078
1129
|
var JobStatusDto = class {
|
|
1079
1130
|
};
|
|
1080
1131
|
__decorateClass([
|
|
1081
|
-
|
|
1082
|
-
|
|
1132
|
+
IsNotEmpty31({ message: "Please provide a job status" }),
|
|
1133
|
+
IsEnum11(JobStatus, {
|
|
1083
1134
|
message: `Status must be one of: ${Object.values(JobStatus).join(", ")}`
|
|
1084
1135
|
})
|
|
1085
1136
|
], JobStatusDto.prototype, "status", 2);
|
|
@@ -1108,8 +1159,8 @@ var PROFILE_PATTERN = {
|
|
|
1108
1159
|
|
|
1109
1160
|
// src/modules/user/freelancer-profile/dto/freelancer-change-password.dto.ts
|
|
1110
1161
|
import {
|
|
1111
|
-
IsString as
|
|
1112
|
-
IsNotEmpty as
|
|
1162
|
+
IsString as IsString15,
|
|
1163
|
+
IsNotEmpty as IsNotEmpty32,
|
|
1113
1164
|
MaxLength as MaxLength8,
|
|
1114
1165
|
MinLength as MinLength7,
|
|
1115
1166
|
Matches as Matches8
|
|
@@ -1117,12 +1168,12 @@ import {
|
|
|
1117
1168
|
var FreelancerChangePasswordDto = class {
|
|
1118
1169
|
};
|
|
1119
1170
|
__decorateClass([
|
|
1120
|
-
|
|
1121
|
-
|
|
1171
|
+
IsNotEmpty32({ message: "Please enter Old Password." }),
|
|
1172
|
+
IsString15()
|
|
1122
1173
|
], FreelancerChangePasswordDto.prototype, "oldPassword", 2);
|
|
1123
1174
|
__decorateClass([
|
|
1124
|
-
|
|
1125
|
-
|
|
1175
|
+
IsNotEmpty32({ message: "Please enter New Password." }),
|
|
1176
|
+
IsString15(),
|
|
1126
1177
|
MinLength7(6),
|
|
1127
1178
|
MaxLength8(32),
|
|
1128
1179
|
Matches8(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
@@ -1132,12 +1183,12 @@ __decorateClass([
|
|
|
1132
1183
|
|
|
1133
1184
|
// src/modules/user/freelancer-profile/dto/update-freelancer-profile.dto.ts
|
|
1134
1185
|
import {
|
|
1135
|
-
IsOptional as
|
|
1136
|
-
IsString as
|
|
1186
|
+
IsOptional as IsOptional13,
|
|
1187
|
+
IsString as IsString16,
|
|
1137
1188
|
IsEmail as IsEmail5,
|
|
1138
1189
|
IsNumber as IsNumber2,
|
|
1139
|
-
IsEnum as
|
|
1140
|
-
IsNotEmpty as
|
|
1190
|
+
IsEnum as IsEnum12,
|
|
1191
|
+
IsNotEmpty as IsNotEmpty33
|
|
1141
1192
|
} from "class-validator";
|
|
1142
1193
|
var NatureOfWorkDto = /* @__PURE__ */ ((NatureOfWorkDto2) => {
|
|
1143
1194
|
NatureOfWorkDto2["FULLTIME"] = "FULLTIME";
|
|
@@ -1154,92 +1205,92 @@ var ModeOfWorkDto = /* @__PURE__ */ ((ModeOfWorkDto2) => {
|
|
|
1154
1205
|
var UpdateFreelancerProfileDto = class {
|
|
1155
1206
|
};
|
|
1156
1207
|
__decorateClass([
|
|
1157
|
-
|
|
1158
|
-
|
|
1208
|
+
IsNotEmpty33({ message: "Please enter first name." }),
|
|
1209
|
+
IsString16({ message: "Please enter valid first name." })
|
|
1159
1210
|
], UpdateFreelancerProfileDto.prototype, "firstName", 2);
|
|
1160
1211
|
__decorateClass([
|
|
1161
|
-
|
|
1162
|
-
|
|
1212
|
+
IsNotEmpty33({ message: "Please enter last name." }),
|
|
1213
|
+
IsString16({ message: "Please enter valid last name." })
|
|
1163
1214
|
], UpdateFreelancerProfileDto.prototype, "lastName", 2);
|
|
1164
1215
|
__decorateClass([
|
|
1165
|
-
|
|
1166
|
-
|
|
1216
|
+
IsNotEmpty33({ message: "Please enter designation." }),
|
|
1217
|
+
IsString16({ message: "Please enter valid designation." })
|
|
1167
1218
|
], UpdateFreelancerProfileDto.prototype, "designation", 2);
|
|
1168
1219
|
__decorateClass([
|
|
1169
|
-
|
|
1170
|
-
|
|
1220
|
+
IsNotEmpty33({ message: "Please enter experience." }),
|
|
1221
|
+
IsString16({ message: "Please enter valid experience." })
|
|
1171
1222
|
], UpdateFreelancerProfileDto.prototype, "experience", 2);
|
|
1172
1223
|
__decorateClass([
|
|
1173
|
-
|
|
1224
|
+
IsNotEmpty33({ message: "Please enter email id." }),
|
|
1174
1225
|
IsEmail5()
|
|
1175
1226
|
], UpdateFreelancerProfileDto.prototype, "email", 2);
|
|
1176
1227
|
__decorateClass([
|
|
1177
|
-
|
|
1178
|
-
|
|
1228
|
+
IsNotEmpty33({ message: "Please enter mobile code." }),
|
|
1229
|
+
IsString16({ message: "Please enter valid mobile code." })
|
|
1179
1230
|
], UpdateFreelancerProfileDto.prototype, "mobileCode", 2);
|
|
1180
1231
|
__decorateClass([
|
|
1181
|
-
|
|
1182
|
-
|
|
1232
|
+
IsNotEmpty33({ message: "Please enter mobile number." }),
|
|
1233
|
+
IsString16({ message: "Please enter valid mobile number." })
|
|
1183
1234
|
], UpdateFreelancerProfileDto.prototype, "mobile", 2);
|
|
1184
1235
|
__decorateClass([
|
|
1185
|
-
|
|
1236
|
+
IsOptional13(),
|
|
1186
1237
|
IsNumber2()
|
|
1187
1238
|
], UpdateFreelancerProfileDto.prototype, "countryId", 2);
|
|
1188
1239
|
__decorateClass([
|
|
1189
|
-
|
|
1190
|
-
|
|
1240
|
+
IsNotEmpty33({ message: "Please select currency." }),
|
|
1241
|
+
IsString16({ message: "Please enter valid currency." })
|
|
1191
1242
|
], UpdateFreelancerProfileDto.prototype, "currency", 2);
|
|
1192
1243
|
__decorateClass([
|
|
1193
|
-
|
|
1194
|
-
|
|
1244
|
+
IsNotEmpty33({ message: "Please enter expected hourly compensation." }),
|
|
1245
|
+
IsString16({ message: "Please enter valid expected hourly compensation." })
|
|
1195
1246
|
], UpdateFreelancerProfileDto.prototype, "expectedHourlyCompensation", 2);
|
|
1196
1247
|
__decorateClass([
|
|
1197
|
-
|
|
1198
|
-
|
|
1248
|
+
IsNotEmpty33({ message: "Please select engagement type." }),
|
|
1249
|
+
IsEnum12(NatureOfWorkDto, {
|
|
1199
1250
|
message: `Engagement Type must be one of: ${Object.values(
|
|
1200
1251
|
NatureOfWorkDto
|
|
1201
1252
|
).join(", ")}`
|
|
1202
1253
|
})
|
|
1203
1254
|
], UpdateFreelancerProfileDto.prototype, "natureOfWork", 2);
|
|
1204
1255
|
__decorateClass([
|
|
1205
|
-
|
|
1206
|
-
|
|
1256
|
+
IsNotEmpty33({ message: "Please select mode of work." }),
|
|
1257
|
+
IsEnum12(ModeOfWorkDto, {
|
|
1207
1258
|
message: `Mode of work must be one of: ${Object.values(ModeOfWorkDto).join(
|
|
1208
1259
|
", "
|
|
1209
1260
|
)}`
|
|
1210
1261
|
})
|
|
1211
1262
|
], UpdateFreelancerProfileDto.prototype, "modeOfWork", 2);
|
|
1212
1263
|
__decorateClass([
|
|
1213
|
-
|
|
1214
|
-
|
|
1264
|
+
IsOptional13(),
|
|
1265
|
+
IsString16()
|
|
1215
1266
|
], UpdateFreelancerProfileDto.prototype, "portfolioLink", 2);
|
|
1216
1267
|
__decorateClass([
|
|
1217
|
-
|
|
1218
|
-
|
|
1268
|
+
IsOptional13(),
|
|
1269
|
+
IsString16()
|
|
1219
1270
|
], UpdateFreelancerProfileDto.prototype, "address", 2);
|
|
1220
1271
|
__decorateClass([
|
|
1221
|
-
|
|
1222
|
-
|
|
1272
|
+
IsOptional13(),
|
|
1273
|
+
IsString16()
|
|
1223
1274
|
], UpdateFreelancerProfileDto.prototype, "about", 2);
|
|
1224
1275
|
__decorateClass([
|
|
1225
|
-
|
|
1226
|
-
|
|
1276
|
+
IsOptional13(),
|
|
1277
|
+
IsString16()
|
|
1227
1278
|
], UpdateFreelancerProfileDto.prototype, "linkedinProfileLink", 2);
|
|
1228
1279
|
__decorateClass([
|
|
1229
|
-
|
|
1230
|
-
|
|
1280
|
+
IsOptional13(),
|
|
1281
|
+
IsString16()
|
|
1231
1282
|
], UpdateFreelancerProfileDto.prototype, "kaggleProfileLink", 2);
|
|
1232
1283
|
__decorateClass([
|
|
1233
|
-
|
|
1234
|
-
|
|
1284
|
+
IsOptional13(),
|
|
1285
|
+
IsString16()
|
|
1235
1286
|
], UpdateFreelancerProfileDto.prototype, "githubProfileLink", 2);
|
|
1236
1287
|
__decorateClass([
|
|
1237
|
-
|
|
1238
|
-
|
|
1288
|
+
IsOptional13(),
|
|
1289
|
+
IsString16()
|
|
1239
1290
|
], UpdateFreelancerProfileDto.prototype, "stackOverflowProfileLink", 2);
|
|
1240
1291
|
__decorateClass([
|
|
1241
|
-
|
|
1242
|
-
|
|
1292
|
+
IsOptional13(),
|
|
1293
|
+
IsString16()
|
|
1243
1294
|
], UpdateFreelancerProfileDto.prototype, "resumeUrl", 2);
|
|
1244
1295
|
|
|
1245
1296
|
// src/modules/bank/pattern/pattern.ts
|
|
@@ -1251,9 +1302,9 @@ var BANK_PATTERN = {
|
|
|
1251
1302
|
|
|
1252
1303
|
// src/modules/bank/dto/freelancer-bank-details.dto.ts
|
|
1253
1304
|
import {
|
|
1254
|
-
IsEnum as
|
|
1255
|
-
IsNotEmpty as
|
|
1256
|
-
IsOptional as
|
|
1305
|
+
IsEnum as IsEnum13,
|
|
1306
|
+
IsNotEmpty as IsNotEmpty34,
|
|
1307
|
+
IsOptional as IsOptional14,
|
|
1257
1308
|
ValidateIf as ValidateIf4
|
|
1258
1309
|
} from "class-validator";
|
|
1259
1310
|
var BankAccountScope = /* @__PURE__ */ ((BankAccountScope2) => {
|
|
@@ -1264,47 +1315,47 @@ var BankAccountScope = /* @__PURE__ */ ((BankAccountScope2) => {
|
|
|
1264
1315
|
var FreelancerBankDetailsDto = class {
|
|
1265
1316
|
};
|
|
1266
1317
|
__decorateClass([
|
|
1267
|
-
|
|
1318
|
+
IsNotEmpty34({ message: "Please enter Account Holder Name." })
|
|
1268
1319
|
], FreelancerBankDetailsDto.prototype, "name", 2);
|
|
1269
1320
|
__decorateClass([
|
|
1270
|
-
|
|
1321
|
+
IsNotEmpty34({ message: "Please enter Mobile Number." })
|
|
1271
1322
|
], FreelancerBankDetailsDto.prototype, "mobile", 2);
|
|
1272
1323
|
__decorateClass([
|
|
1273
|
-
|
|
1324
|
+
IsNotEmpty34({ message: "Please enter Email." })
|
|
1274
1325
|
], FreelancerBankDetailsDto.prototype, "email", 2);
|
|
1275
1326
|
__decorateClass([
|
|
1276
|
-
|
|
1327
|
+
IsOptional14()
|
|
1277
1328
|
], FreelancerBankDetailsDto.prototype, "address", 2);
|
|
1278
1329
|
__decorateClass([
|
|
1279
|
-
|
|
1330
|
+
IsNotEmpty34({ message: "Please enter Account Number." })
|
|
1280
1331
|
], FreelancerBankDetailsDto.prototype, "accountNumber", 2);
|
|
1281
1332
|
__decorateClass([
|
|
1282
|
-
|
|
1333
|
+
IsNotEmpty34({ message: "Please enter Bank Name." })
|
|
1283
1334
|
], FreelancerBankDetailsDto.prototype, "bankName", 2);
|
|
1284
1335
|
__decorateClass([
|
|
1285
|
-
|
|
1336
|
+
IsNotEmpty34({ message: "Please enter Branch Name." })
|
|
1286
1337
|
], FreelancerBankDetailsDto.prototype, "branchName", 2);
|
|
1287
1338
|
__decorateClass([
|
|
1288
1339
|
ValidateIf4((dto) => dto.accountScope === "DOMESTIC"),
|
|
1289
|
-
|
|
1340
|
+
IsNotEmpty34({ message: "IFSC Code is required for DOMESTIC accounts." })
|
|
1290
1341
|
], FreelancerBankDetailsDto.prototype, "ifscCode", 2);
|
|
1291
1342
|
__decorateClass([
|
|
1292
1343
|
ValidateIf4((dto) => dto.accountScope === "INTERNATIONAL"),
|
|
1293
|
-
|
|
1344
|
+
IsNotEmpty34({ message: "Routing Number/Sort Code is required for INTERNATIONAL accounts." })
|
|
1294
1345
|
], FreelancerBankDetailsDto.prototype, "routingNo", 2);
|
|
1295
1346
|
__decorateClass([
|
|
1296
1347
|
ValidateIf4((dto) => dto.accountScope === "INTERNATIONAL"),
|
|
1297
|
-
|
|
1348
|
+
IsNotEmpty34({ message: "ABA Number is required for INTERNATIONAL accounts." })
|
|
1298
1349
|
], FreelancerBankDetailsDto.prototype, "abaNumber", 2);
|
|
1299
1350
|
__decorateClass([
|
|
1300
1351
|
ValidateIf4((dto) => dto.accountScope === "INTERNATIONAL"),
|
|
1301
|
-
|
|
1352
|
+
IsNotEmpty34({ message: "IBAN is required for INTERNATIONAL accounts." })
|
|
1302
1353
|
], FreelancerBankDetailsDto.prototype, "iban", 2);
|
|
1303
1354
|
__decorateClass([
|
|
1304
|
-
|
|
1355
|
+
IsOptional14()
|
|
1305
1356
|
], FreelancerBankDetailsDto.prototype, "accountType", 2);
|
|
1306
1357
|
__decorateClass([
|
|
1307
|
-
|
|
1358
|
+
IsEnum13(BankAccountScope, {
|
|
1308
1359
|
message: `Type of Account Scope must be one of: ${Object.values(
|
|
1309
1360
|
BankAccountScope
|
|
1310
1361
|
).join(", ")}`
|
|
@@ -1326,7 +1377,7 @@ var SYSTEM_PREFERENCES_PATTERN = {
|
|
|
1326
1377
|
// src/modules/system-preference/dto/system-preference.dto.ts
|
|
1327
1378
|
import {
|
|
1328
1379
|
IsBoolean as IsBoolean3,
|
|
1329
|
-
IsEnum as
|
|
1380
|
+
IsEnum as IsEnum14
|
|
1330
1381
|
} from "class-validator";
|
|
1331
1382
|
var SystemPreferenceKey = /* @__PURE__ */ ((SystemPreferenceKey2) => {
|
|
1332
1383
|
SystemPreferenceKey2["EMAIL_NOTIFICATION"] = "EMAIL_NOTIFICATION";
|
|
@@ -1339,7 +1390,7 @@ __decorateClass([
|
|
|
1339
1390
|
IsBoolean3()
|
|
1340
1391
|
], SystemPreferenceDto.prototype, "value", 2);
|
|
1341
1392
|
__decorateClass([
|
|
1342
|
-
|
|
1393
|
+
IsEnum14(SystemPreferenceKey, {
|
|
1343
1394
|
message: `key must be one of: ${Object.values(
|
|
1344
1395
|
SystemPreferenceKey
|
|
1345
1396
|
).join(", ")}`
|
|
@@ -1360,11 +1411,11 @@ var RATING_PATTERN = {
|
|
|
1360
1411
|
|
|
1361
1412
|
// src/modules/rating/dto/add.rating.dto.ts
|
|
1362
1413
|
import {
|
|
1363
|
-
IsEnum as
|
|
1414
|
+
IsEnum as IsEnum15,
|
|
1364
1415
|
IsInt,
|
|
1365
|
-
IsNotEmpty as
|
|
1366
|
-
IsOptional as
|
|
1367
|
-
IsString as
|
|
1416
|
+
IsNotEmpty as IsNotEmpty35,
|
|
1417
|
+
IsOptional as IsOptional15,
|
|
1418
|
+
IsString as IsString17,
|
|
1368
1419
|
Max,
|
|
1369
1420
|
Min as Min2
|
|
1370
1421
|
} from "class-validator";
|
|
@@ -4227,10 +4278,10 @@ var CreateRatingDto = class {
|
|
|
4227
4278
|
};
|
|
4228
4279
|
__decorateClass([
|
|
4229
4280
|
IsInt({ message: "Reviewee ID must be a valid integer" }),
|
|
4230
|
-
|
|
4281
|
+
IsNotEmpty35({ message: "Reviewee ID is required" })
|
|
4231
4282
|
], CreateRatingDto.prototype, "revieweeId", 2);
|
|
4232
4283
|
__decorateClass([
|
|
4233
|
-
|
|
4284
|
+
IsEnum15(RatingTypeEnum, {
|
|
4234
4285
|
message: `Rating type must be one of: ${Object.values(RatingTypeEnum).join(", ")}`
|
|
4235
4286
|
})
|
|
4236
4287
|
], CreateRatingDto.prototype, "ratingType", 2);
|
|
@@ -4240,8 +4291,8 @@ __decorateClass([
|
|
|
4240
4291
|
Max(5, { message: "Rating must be at most 5" })
|
|
4241
4292
|
], CreateRatingDto.prototype, "rating", 2);
|
|
4242
4293
|
__decorateClass([
|
|
4243
|
-
|
|
4244
|
-
|
|
4294
|
+
IsOptional15(),
|
|
4295
|
+
IsString17({ message: "Review must be a string" })
|
|
4245
4296
|
], CreateRatingDto.prototype, "review", 2);
|
|
4246
4297
|
|
|
4247
4298
|
// src/modules/company-role/pattern/pattern.ts
|
|
@@ -4257,17 +4308,17 @@ var COMPANY_ROLES_PATTERNS = {
|
|
|
4257
4308
|
};
|
|
4258
4309
|
|
|
4259
4310
|
// src/modules/company-role/dto/create-company-role.dto.ts
|
|
4260
|
-
import { ArrayNotEmpty as ArrayNotEmpty2, IsArray as IsArray2, IsBoolean as IsBoolean4, IsInt as IsInt2, IsNotEmpty as
|
|
4311
|
+
import { ArrayNotEmpty as ArrayNotEmpty2, IsArray as IsArray2, IsBoolean as IsBoolean4, IsInt as IsInt2, IsNotEmpty as IsNotEmpty36, IsOptional as IsOptional16 } from "class-validator";
|
|
4261
4312
|
var CreateCompanyRoleDto = class {
|
|
4262
4313
|
};
|
|
4263
4314
|
__decorateClass([
|
|
4264
|
-
|
|
4315
|
+
IsNotEmpty36({ message: "Please enter company role name." })
|
|
4265
4316
|
], CreateCompanyRoleDto.prototype, "name", 2);
|
|
4266
4317
|
__decorateClass([
|
|
4267
|
-
|
|
4318
|
+
IsNotEmpty36({ message: "Please enter company role slug" })
|
|
4268
4319
|
], CreateCompanyRoleDto.prototype, "slug", 2);
|
|
4269
4320
|
__decorateClass([
|
|
4270
|
-
|
|
4321
|
+
IsNotEmpty36({ message: "Please enter description" })
|
|
4271
4322
|
], CreateCompanyRoleDto.prototype, "description", 2);
|
|
4272
4323
|
__decorateClass([
|
|
4273
4324
|
IsArray2({ message: "Permission IDs must be an array." }),
|
|
@@ -4275,22 +4326,22 @@ __decorateClass([
|
|
|
4275
4326
|
IsInt2({ each: true, message: "Each permission ID must be an integer." })
|
|
4276
4327
|
], CreateCompanyRoleDto.prototype, "permissionIds", 2);
|
|
4277
4328
|
__decorateClass([
|
|
4278
|
-
|
|
4329
|
+
IsOptional16(),
|
|
4279
4330
|
IsBoolean4({ message: "Is active must be a boolean value" })
|
|
4280
4331
|
], CreateCompanyRoleDto.prototype, "isActive", 2);
|
|
4281
4332
|
|
|
4282
4333
|
// src/modules/company-role/dto/update-company-role.dto.ts
|
|
4283
|
-
import { ArrayNotEmpty as ArrayNotEmpty3, IsArray as IsArray3, IsBoolean as IsBoolean5, IsInt as IsInt3, IsNotEmpty as
|
|
4334
|
+
import { ArrayNotEmpty as ArrayNotEmpty3, IsArray as IsArray3, IsBoolean as IsBoolean5, IsInt as IsInt3, IsNotEmpty as IsNotEmpty37, IsOptional as IsOptional17 } from "class-validator";
|
|
4284
4335
|
var UpdateCompanyRoleDto = class {
|
|
4285
4336
|
};
|
|
4286
4337
|
__decorateClass([
|
|
4287
|
-
|
|
4338
|
+
IsNotEmpty37({ message: "Please enter company name." })
|
|
4288
4339
|
], UpdateCompanyRoleDto.prototype, "name", 2);
|
|
4289
4340
|
__decorateClass([
|
|
4290
|
-
|
|
4341
|
+
IsNotEmpty37({ message: "Please enter slug" })
|
|
4291
4342
|
], UpdateCompanyRoleDto.prototype, "slug", 2);
|
|
4292
4343
|
__decorateClass([
|
|
4293
|
-
|
|
4344
|
+
IsNotEmpty37({ message: "Please enter description" })
|
|
4294
4345
|
], UpdateCompanyRoleDto.prototype, "description", 2);
|
|
4295
4346
|
__decorateClass([
|
|
4296
4347
|
IsArray3({ message: "Permission IDs must be an array." }),
|
|
@@ -4298,7 +4349,7 @@ __decorateClass([
|
|
|
4298
4349
|
IsInt3({ each: true, message: "Each permission ID must be an integer." })
|
|
4299
4350
|
], UpdateCompanyRoleDto.prototype, "permissionIds", 2);
|
|
4300
4351
|
__decorateClass([
|
|
4301
|
-
|
|
4352
|
+
IsOptional17(),
|
|
4302
4353
|
IsBoolean5({ message: "Is active must be a boolean value" })
|
|
4303
4354
|
], UpdateCompanyRoleDto.prototype, "isActive", 2);
|
|
4304
4355
|
|
|
@@ -4319,9 +4370,9 @@ var FREELANCER_EXPERIENCE_PATTERN = {
|
|
|
4319
4370
|
// src/modules/user/freelancer-experience/dto/freelancer-experience.dto.ts
|
|
4320
4371
|
import {
|
|
4321
4372
|
ArrayMinSize,
|
|
4322
|
-
IsNotEmpty as
|
|
4323
|
-
IsOptional as
|
|
4324
|
-
IsString as
|
|
4373
|
+
IsNotEmpty as IsNotEmpty38,
|
|
4374
|
+
IsOptional as IsOptional18,
|
|
4375
|
+
IsString as IsString20,
|
|
4325
4376
|
MaxLength as MaxLength10,
|
|
4326
4377
|
ValidateNested
|
|
4327
4378
|
} from "class-validator";
|
|
@@ -4329,23 +4380,23 @@ import { Type as Type2 } from "class-transformer";
|
|
|
4329
4380
|
var ExperienceDto = class {
|
|
4330
4381
|
};
|
|
4331
4382
|
__decorateClass([
|
|
4332
|
-
|
|
4383
|
+
IsOptional18()
|
|
4333
4384
|
], ExperienceDto.prototype, "uuid", 2);
|
|
4334
4385
|
__decorateClass([
|
|
4335
|
-
|
|
4336
|
-
|
|
4386
|
+
IsNotEmpty38(),
|
|
4387
|
+
IsString20()
|
|
4337
4388
|
], ExperienceDto.prototype, "companyName", 2);
|
|
4338
4389
|
__decorateClass([
|
|
4339
|
-
|
|
4340
|
-
|
|
4390
|
+
IsNotEmpty38(),
|
|
4391
|
+
IsString20()
|
|
4341
4392
|
], ExperienceDto.prototype, "designation", 2);
|
|
4342
4393
|
__decorateClass([
|
|
4343
|
-
|
|
4344
|
-
|
|
4394
|
+
IsNotEmpty38(),
|
|
4395
|
+
IsString20()
|
|
4345
4396
|
], ExperienceDto.prototype, "jobDuration", 2);
|
|
4346
4397
|
__decorateClass([
|
|
4347
|
-
|
|
4348
|
-
|
|
4398
|
+
IsOptional18(),
|
|
4399
|
+
IsString20(),
|
|
4349
4400
|
MaxLength10(5e3, { message: "Description must not exceed 5000 characters" })
|
|
4350
4401
|
], ExperienceDto.prototype, "description", 2);
|
|
4351
4402
|
var FreelancerExperienceDto = class {
|
|
@@ -4369,14 +4420,14 @@ var COMPANY_MEMBERS_PATTERNS = {
|
|
|
4369
4420
|
};
|
|
4370
4421
|
|
|
4371
4422
|
// src/modules/company-member/dto/create-company-member.dto.ts
|
|
4372
|
-
import { ArrayNotEmpty as ArrayNotEmpty4, IsArray as IsArray4, IsInt as IsInt4, IsNotEmpty as
|
|
4423
|
+
import { ArrayNotEmpty as ArrayNotEmpty4, IsArray as IsArray4, IsInt as IsInt4, IsNotEmpty as IsNotEmpty39 } from "class-validator";
|
|
4373
4424
|
var CreateCompanyMemberDto = class {
|
|
4374
4425
|
};
|
|
4375
4426
|
__decorateClass([
|
|
4376
|
-
|
|
4427
|
+
IsNotEmpty39({ message: "Please enter name." })
|
|
4377
4428
|
], CreateCompanyMemberDto.prototype, "name", 2);
|
|
4378
4429
|
__decorateClass([
|
|
4379
|
-
|
|
4430
|
+
IsNotEmpty39({ message: "Please enter email" })
|
|
4380
4431
|
], CreateCompanyMemberDto.prototype, "email", 2);
|
|
4381
4432
|
__decorateClass([
|
|
4382
4433
|
IsArray4({ message: "Role IDs must be an array." }),
|
|
@@ -4385,14 +4436,14 @@ __decorateClass([
|
|
|
4385
4436
|
], CreateCompanyMemberDto.prototype, "roleIds", 2);
|
|
4386
4437
|
|
|
4387
4438
|
// src/modules/company-member/dto/update-company-member.dto.ts
|
|
4388
|
-
import { ArrayNotEmpty as ArrayNotEmpty5, IsArray as IsArray5, IsInt as IsInt5, IsNotEmpty as
|
|
4439
|
+
import { ArrayNotEmpty as ArrayNotEmpty5, IsArray as IsArray5, IsInt as IsInt5, IsNotEmpty as IsNotEmpty40 } from "class-validator";
|
|
4389
4440
|
var UpdateCompanyMemberDto = class {
|
|
4390
4441
|
};
|
|
4391
4442
|
__decorateClass([
|
|
4392
|
-
|
|
4443
|
+
IsNotEmpty40({ message: "Please enter name." })
|
|
4393
4444
|
], UpdateCompanyMemberDto.prototype, "name", 2);
|
|
4394
4445
|
__decorateClass([
|
|
4395
|
-
|
|
4446
|
+
IsNotEmpty40({ message: "Please enter email" })
|
|
4396
4447
|
], UpdateCompanyMemberDto.prototype, "email", 2);
|
|
4397
4448
|
__decorateClass([
|
|
4398
4449
|
IsArray5({ message: "Role IDs must be an array." }),
|
|
@@ -4415,24 +4466,24 @@ var FREELANCER_EDUCATION_PATTERN = {
|
|
|
4415
4466
|
};
|
|
4416
4467
|
|
|
4417
4468
|
// src/modules/user/freelancer-education/dto/freelancer-education.dto.ts
|
|
4418
|
-
import { IsArray as IsArray6, ValidateNested as ValidateNested2, IsString as
|
|
4469
|
+
import { IsArray as IsArray6, ValidateNested as ValidateNested2, IsString as IsString23, IsNotEmpty as IsNotEmpty41, IsOptional as IsOptional21, ArrayMinSize as ArrayMinSize2 } from "class-validator";
|
|
4419
4470
|
import { Type as Type3 } from "class-transformer";
|
|
4420
4471
|
var EducationDto = class {
|
|
4421
4472
|
};
|
|
4422
4473
|
__decorateClass([
|
|
4423
|
-
|
|
4474
|
+
IsOptional21()
|
|
4424
4475
|
], EducationDto.prototype, "uuid", 2);
|
|
4425
4476
|
__decorateClass([
|
|
4426
|
-
|
|
4427
|
-
|
|
4477
|
+
IsString23(),
|
|
4478
|
+
IsNotEmpty41({ message: "Please Enter Degree " })
|
|
4428
4479
|
], EducationDto.prototype, "degree", 2);
|
|
4429
4480
|
__decorateClass([
|
|
4430
|
-
|
|
4431
|
-
|
|
4481
|
+
IsString23(),
|
|
4482
|
+
IsNotEmpty41({ message: "Please Enter University " })
|
|
4432
4483
|
], EducationDto.prototype, "university", 2);
|
|
4433
4484
|
__decorateClass([
|
|
4434
|
-
|
|
4435
|
-
|
|
4485
|
+
IsString23(),
|
|
4486
|
+
IsNotEmpty41({ message: "Please Enter Year of Graduation " })
|
|
4436
4487
|
], EducationDto.prototype, "yearOfGraduation", 2);
|
|
4437
4488
|
var FreelancerEducationDto = class {
|
|
4438
4489
|
};
|
|
@@ -4450,54 +4501,54 @@ var FREELANCER_PROJECT_PATTERN = {
|
|
|
4450
4501
|
};
|
|
4451
4502
|
|
|
4452
4503
|
// src/modules/user/freelancer-project/dto/freelancer-project.dto.ts
|
|
4453
|
-
import { IsArray as IsArray7, ValidateNested as ValidateNested3, IsString as
|
|
4504
|
+
import { IsArray as IsArray7, ValidateNested as ValidateNested3, IsString as IsString24, IsNotEmpty as IsNotEmpty42, IsOptional as IsOptional22, IsDateString, MaxLength as MaxLength12, ArrayMinSize as ArrayMinSize3 } from "class-validator";
|
|
4454
4505
|
import { Type as Type4 } from "class-transformer";
|
|
4455
4506
|
var ProjectDto = class {
|
|
4456
4507
|
};
|
|
4457
4508
|
__decorateClass([
|
|
4458
|
-
|
|
4509
|
+
IsOptional22()
|
|
4459
4510
|
], ProjectDto.prototype, "uuid", 2);
|
|
4460
4511
|
__decorateClass([
|
|
4461
|
-
|
|
4462
|
-
|
|
4512
|
+
IsString24(),
|
|
4513
|
+
IsNotEmpty42({ message: "Please Enter Project Name " })
|
|
4463
4514
|
], ProjectDto.prototype, "projectName", 2);
|
|
4464
4515
|
__decorateClass([
|
|
4465
4516
|
IsDateString(),
|
|
4466
|
-
|
|
4517
|
+
IsNotEmpty42({ message: "Please Enter Start Date " })
|
|
4467
4518
|
], ProjectDto.prototype, "startDate", 2);
|
|
4468
4519
|
__decorateClass([
|
|
4469
4520
|
IsDateString(),
|
|
4470
|
-
|
|
4521
|
+
IsNotEmpty42({ message: "Please Enter End Date " })
|
|
4471
4522
|
], ProjectDto.prototype, "endDate", 2);
|
|
4472
4523
|
__decorateClass([
|
|
4473
|
-
|
|
4474
|
-
|
|
4524
|
+
IsOptional22(),
|
|
4525
|
+
IsString24()
|
|
4475
4526
|
], ProjectDto.prototype, "clientName", 2);
|
|
4476
4527
|
__decorateClass([
|
|
4477
|
-
|
|
4478
|
-
|
|
4528
|
+
IsOptional22(),
|
|
4529
|
+
IsString24()
|
|
4479
4530
|
], ProjectDto.prototype, "gitLink", 2);
|
|
4480
4531
|
__decorateClass([
|
|
4481
|
-
|
|
4482
|
-
|
|
4532
|
+
IsOptional22(),
|
|
4533
|
+
IsString24(),
|
|
4483
4534
|
MaxLength12(5e3, { message: "Description must not exceed 5000 characters" })
|
|
4484
4535
|
], ProjectDto.prototype, "description", 2);
|
|
4485
4536
|
var CaseStudyDto = class {
|
|
4486
4537
|
};
|
|
4487
4538
|
__decorateClass([
|
|
4488
|
-
|
|
4539
|
+
IsOptional22()
|
|
4489
4540
|
], CaseStudyDto.prototype, "uuid", 2);
|
|
4490
4541
|
__decorateClass([
|
|
4491
|
-
|
|
4492
|
-
|
|
4542
|
+
IsString24(),
|
|
4543
|
+
IsNotEmpty42({ message: "Please Enter Project Name " })
|
|
4493
4544
|
], CaseStudyDto.prototype, "projectName", 2);
|
|
4494
4545
|
__decorateClass([
|
|
4495
|
-
|
|
4496
|
-
|
|
4546
|
+
IsOptional22(),
|
|
4547
|
+
IsString24()
|
|
4497
4548
|
], CaseStudyDto.prototype, "caseStudyLink", 2);
|
|
4498
4549
|
__decorateClass([
|
|
4499
|
-
|
|
4500
|
-
|
|
4550
|
+
IsOptional22(),
|
|
4551
|
+
IsString24(),
|
|
4501
4552
|
MaxLength12(5e3, { message: "Description must not exceed 5000 characters" })
|
|
4502
4553
|
], CaseStudyDto.prototype, "description", 2);
|
|
4503
4554
|
var FreelancerProjectDto = class {
|
|
@@ -4526,7 +4577,7 @@ var FREELANCER_SKILL_PATTERN = {
|
|
|
4526
4577
|
};
|
|
4527
4578
|
|
|
4528
4579
|
// src/modules/user/freelancer-skill/dto/freelancer-skill.dto.ts
|
|
4529
|
-
import { IsArray as IsArray8, IsString as
|
|
4580
|
+
import { IsArray as IsArray8, IsString as IsString25, IsOptional as IsOptional23 } from "class-validator";
|
|
4530
4581
|
import { Type as Type5 } from "class-transformer";
|
|
4531
4582
|
var FreelancerSkillDto = class {
|
|
4532
4583
|
constructor() {
|
|
@@ -4536,22 +4587,22 @@ var FreelancerSkillDto = class {
|
|
|
4536
4587
|
}
|
|
4537
4588
|
};
|
|
4538
4589
|
__decorateClass([
|
|
4539
|
-
|
|
4590
|
+
IsOptional23(),
|
|
4540
4591
|
IsArray8(),
|
|
4541
4592
|
Type5(() => String),
|
|
4542
|
-
|
|
4593
|
+
IsString25({ each: true })
|
|
4543
4594
|
], FreelancerSkillDto.prototype, "coreSkills", 2);
|
|
4544
4595
|
__decorateClass([
|
|
4545
|
-
|
|
4596
|
+
IsOptional23(),
|
|
4546
4597
|
IsArray8(),
|
|
4547
4598
|
Type5(() => String),
|
|
4548
|
-
|
|
4599
|
+
IsString25({ each: true })
|
|
4549
4600
|
], FreelancerSkillDto.prototype, "tools", 2);
|
|
4550
4601
|
__decorateClass([
|
|
4551
|
-
|
|
4602
|
+
IsOptional23(),
|
|
4552
4603
|
IsArray8(),
|
|
4553
4604
|
Type5(() => String),
|
|
4554
|
-
|
|
4605
|
+
IsString25({ each: true })
|
|
4555
4606
|
], FreelancerSkillDto.prototype, "frameworks", 2);
|
|
4556
4607
|
|
|
4557
4608
|
// src/modules/freelancer-admin/pattern/pattern.ts
|
|
@@ -4568,16 +4619,16 @@ var ADMIN_FREELANCER_PATTERN = {
|
|
|
4568
4619
|
|
|
4569
4620
|
// src/modules/freelancer-admin/dto/create-freelancer.dto.ts
|
|
4570
4621
|
import {
|
|
4571
|
-
IsString as
|
|
4622
|
+
IsString as IsString26,
|
|
4572
4623
|
IsEmail as IsEmail10,
|
|
4573
4624
|
IsBoolean as IsBoolean10,
|
|
4574
|
-
IsOptional as
|
|
4575
|
-
IsEnum as
|
|
4625
|
+
IsOptional as IsOptional24,
|
|
4626
|
+
IsEnum as IsEnum16,
|
|
4576
4627
|
IsNumber as IsNumber3,
|
|
4577
4628
|
IsUrl as IsUrl3,
|
|
4578
4629
|
Min as Min3,
|
|
4579
4630
|
MaxLength as MaxLength14,
|
|
4580
|
-
IsNotEmpty as
|
|
4631
|
+
IsNotEmpty as IsNotEmpty44,
|
|
4581
4632
|
MinLength as MinLength12,
|
|
4582
4633
|
Matches as Matches9,
|
|
4583
4634
|
ValidateIf as ValidateIf5
|
|
@@ -4598,20 +4649,20 @@ var ModeOfWorkEnum = /* @__PURE__ */ ((ModeOfWorkEnum3) => {
|
|
|
4598
4649
|
var CreateFreelancerDto = class {
|
|
4599
4650
|
};
|
|
4600
4651
|
__decorateClass([
|
|
4601
|
-
|
|
4652
|
+
IsString26({ message: "Full name must be a string" }),
|
|
4602
4653
|
MaxLength14(100, { message: "Full name must not exceed 100 characters" })
|
|
4603
4654
|
], CreateFreelancerDto.prototype, "fullName", 2);
|
|
4604
4655
|
__decorateClass([
|
|
4605
4656
|
IsEmail10({}, { message: "Invalid email address" })
|
|
4606
4657
|
], CreateFreelancerDto.prototype, "email", 2);
|
|
4607
4658
|
__decorateClass([
|
|
4608
|
-
|
|
4659
|
+
IsString26({ message: "Mobile code must be a string (e.g., +1)" })
|
|
4609
4660
|
], CreateFreelancerDto.prototype, "mobileCode", 2);
|
|
4610
4661
|
__decorateClass([
|
|
4611
|
-
|
|
4662
|
+
IsString26({ message: "Mobile must be a string (e.g., 1243253534)" })
|
|
4612
4663
|
], CreateFreelancerDto.prototype, "mobile", 2);
|
|
4613
4664
|
__decorateClass([
|
|
4614
|
-
|
|
4665
|
+
IsNotEmpty44({ message: "Please enter password." }),
|
|
4615
4666
|
MinLength12(6),
|
|
4616
4667
|
MaxLength14(32),
|
|
4617
4668
|
Matches9(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
@@ -4619,7 +4670,7 @@ __decorateClass([
|
|
|
4619
4670
|
})
|
|
4620
4671
|
], CreateFreelancerDto.prototype, "password", 2);
|
|
4621
4672
|
__decorateClass([
|
|
4622
|
-
|
|
4673
|
+
IsNotEmpty44({ message: "Please enter confirm password." }),
|
|
4623
4674
|
Match("confirmPassword", { message: "Passwords do not match" })
|
|
4624
4675
|
], CreateFreelancerDto.prototype, "confirmPassword", 2);
|
|
4625
4676
|
__decorateClass([
|
|
@@ -4627,7 +4678,7 @@ __decorateClass([
|
|
|
4627
4678
|
Type6(() => Boolean)
|
|
4628
4679
|
], CreateFreelancerDto.prototype, "developer", 2);
|
|
4629
4680
|
__decorateClass([
|
|
4630
|
-
|
|
4681
|
+
IsEnum16(NatureOfWorkEnum, {
|
|
4631
4682
|
message: `Nature of work must be one of: ${Object.values(
|
|
4632
4683
|
NatureOfWorkEnum
|
|
4633
4684
|
).join(", ")}`
|
|
@@ -4639,7 +4690,7 @@ __decorateClass([
|
|
|
4639
4690
|
Type6(() => Number)
|
|
4640
4691
|
], CreateFreelancerDto.prototype, "expectedHourlyCompensation", 2);
|
|
4641
4692
|
__decorateClass([
|
|
4642
|
-
|
|
4693
|
+
IsEnum16(ModeOfWorkEnum, {
|
|
4643
4694
|
message: `Mode of work must be one of: ${Object.values(ModeOfWorkEnum).join(
|
|
4644
4695
|
", "
|
|
4645
4696
|
)}`
|
|
@@ -4651,43 +4702,43 @@ __decorateClass([
|
|
|
4651
4702
|
], CreateFreelancerDto.prototype, "isImmediateJoiner", 2);
|
|
4652
4703
|
__decorateClass([
|
|
4653
4704
|
ValidateIf5((o) => o.isImmediateJoiner === false),
|
|
4654
|
-
|
|
4705
|
+
IsNotEmpty44({ message: "Please enter availability to join." })
|
|
4655
4706
|
], CreateFreelancerDto.prototype, "availabilityToJoin", 2);
|
|
4656
4707
|
__decorateClass([
|
|
4657
|
-
|
|
4708
|
+
IsOptional24(),
|
|
4658
4709
|
IsUrl3({}, { message: "LinkedIn profile link must be a valid URL" })
|
|
4659
4710
|
], CreateFreelancerDto.prototype, "linkedinProfileLink", 2);
|
|
4660
4711
|
__decorateClass([
|
|
4661
|
-
|
|
4662
|
-
|
|
4712
|
+
IsOptional24(),
|
|
4713
|
+
IsString26({ message: "Kaggle profile link must be a string" })
|
|
4663
4714
|
], CreateFreelancerDto.prototype, "kaggleProfileLink", 2);
|
|
4664
4715
|
__decorateClass([
|
|
4665
|
-
|
|
4716
|
+
IsOptional24(),
|
|
4666
4717
|
IsUrl3({}, { message: "GitHub profile link must be a valid URL" })
|
|
4667
4718
|
], CreateFreelancerDto.prototype, "githubProfileLink", 2);
|
|
4668
4719
|
__decorateClass([
|
|
4669
|
-
|
|
4720
|
+
IsOptional24(),
|
|
4670
4721
|
IsUrl3({}, { message: "StackOverflow profile link must be a valid URL" })
|
|
4671
4722
|
], CreateFreelancerDto.prototype, "stackOverflowProfileLink", 2);
|
|
4672
4723
|
__decorateClass([
|
|
4673
|
-
|
|
4724
|
+
IsOptional24(),
|
|
4674
4725
|
IsUrl3({}, { message: "Portfolio link must be a valid URL" })
|
|
4675
4726
|
], CreateFreelancerDto.prototype, "portfolioLink", 2);
|
|
4676
4727
|
|
|
4677
4728
|
// src/modules/freelancer-admin/dto/update-freelancer.dto.ts
|
|
4678
4729
|
import {
|
|
4679
|
-
IsString as
|
|
4730
|
+
IsString as IsString27,
|
|
4680
4731
|
IsEmail as IsEmail11,
|
|
4681
4732
|
IsBoolean as IsBoolean11,
|
|
4682
|
-
IsOptional as
|
|
4683
|
-
IsEnum as
|
|
4733
|
+
IsOptional as IsOptional25,
|
|
4734
|
+
IsEnum as IsEnum17,
|
|
4684
4735
|
IsNumber as IsNumber4,
|
|
4685
4736
|
IsUrl as IsUrl4,
|
|
4686
4737
|
Min as Min4,
|
|
4687
4738
|
MaxLength as MaxLength15,
|
|
4688
4739
|
MinLength as MinLength13,
|
|
4689
4740
|
Matches as Matches10,
|
|
4690
|
-
IsNotEmpty as
|
|
4741
|
+
IsNotEmpty as IsNotEmpty45,
|
|
4691
4742
|
ValidateIf as ValidateIf6
|
|
4692
4743
|
} from "class-validator";
|
|
4693
4744
|
import { Transform as Transform2, Type as Type7 } from "class-transformer";
|
|
@@ -4706,24 +4757,24 @@ var ModeOfWorkEnum2 = /* @__PURE__ */ ((ModeOfWorkEnum3) => {
|
|
|
4706
4757
|
var UpdateFreelancerDto = class {
|
|
4707
4758
|
};
|
|
4708
4759
|
__decorateClass([
|
|
4709
|
-
|
|
4710
|
-
|
|
4760
|
+
IsOptional25(),
|
|
4761
|
+
IsString27({ message: "Full name must be a string" }),
|
|
4711
4762
|
MaxLength15(100, { message: "Full name must not exceed 100 characters" })
|
|
4712
4763
|
], UpdateFreelancerDto.prototype, "fullName", 2);
|
|
4713
4764
|
__decorateClass([
|
|
4714
|
-
|
|
4765
|
+
IsOptional25(),
|
|
4715
4766
|
IsEmail11({}, { message: "Invalid email address" })
|
|
4716
4767
|
], UpdateFreelancerDto.prototype, "email", 2);
|
|
4717
4768
|
__decorateClass([
|
|
4718
|
-
|
|
4719
|
-
|
|
4769
|
+
IsOptional25(),
|
|
4770
|
+
IsString27({ message: "Mobile code must be a string (e.g., +1)" })
|
|
4720
4771
|
], UpdateFreelancerDto.prototype, "mobileCode", 2);
|
|
4721
4772
|
__decorateClass([
|
|
4722
|
-
|
|
4723
|
-
|
|
4773
|
+
IsOptional25(),
|
|
4774
|
+
IsString27({ message: "Mobile must be a string (e.g., 1243253534)" })
|
|
4724
4775
|
], UpdateFreelancerDto.prototype, "mobile", 2);
|
|
4725
4776
|
__decorateClass([
|
|
4726
|
-
|
|
4777
|
+
IsOptional25(),
|
|
4727
4778
|
Transform2(({ value }) => value === null || value === "" ? void 0 : value),
|
|
4728
4779
|
MinLength13(6, { message: "Password must be at least 6 characters." }),
|
|
4729
4780
|
MaxLength15(32, { message: "Password must not exceed 32 characters." }),
|
|
@@ -4732,59 +4783,59 @@ __decorateClass([
|
|
|
4732
4783
|
})
|
|
4733
4784
|
], UpdateFreelancerDto.prototype, "password", 2);
|
|
4734
4785
|
__decorateClass([
|
|
4735
|
-
|
|
4786
|
+
IsOptional25(),
|
|
4736
4787
|
IsBoolean11({ message: "Developer flag must be true or false" }),
|
|
4737
4788
|
Type7(() => Boolean)
|
|
4738
4789
|
], UpdateFreelancerDto.prototype, "developer", 2);
|
|
4739
4790
|
__decorateClass([
|
|
4740
|
-
|
|
4741
|
-
|
|
4791
|
+
IsOptional25(),
|
|
4792
|
+
IsEnum17(NatureOfWorkEnum2, {
|
|
4742
4793
|
message: `Nature of work must be one of: ${Object.values(
|
|
4743
4794
|
NatureOfWorkEnum2
|
|
4744
4795
|
).join(", ")}`
|
|
4745
4796
|
})
|
|
4746
4797
|
], UpdateFreelancerDto.prototype, "natureOfWork", 2);
|
|
4747
4798
|
__decorateClass([
|
|
4748
|
-
|
|
4799
|
+
IsOptional25(),
|
|
4749
4800
|
IsNumber4({}, { message: "Expected hourly compensation must be a number" }),
|
|
4750
4801
|
Min4(0, { message: "Expected hourly compensation must be 0 or more" }),
|
|
4751
4802
|
Type7(() => Number)
|
|
4752
4803
|
], UpdateFreelancerDto.prototype, "expectedHourlyCompensation", 2);
|
|
4753
4804
|
__decorateClass([
|
|
4754
|
-
|
|
4755
|
-
|
|
4805
|
+
IsOptional25(),
|
|
4806
|
+
IsEnum17(ModeOfWorkEnum2, {
|
|
4756
4807
|
message: `Mode of work must be one of: ${Object.values(ModeOfWorkEnum2).join(
|
|
4757
4808
|
", "
|
|
4758
4809
|
)}`
|
|
4759
4810
|
})
|
|
4760
4811
|
], UpdateFreelancerDto.prototype, "modeOfWork", 2);
|
|
4761
4812
|
__decorateClass([
|
|
4762
|
-
|
|
4813
|
+
IsOptional25(),
|
|
4763
4814
|
IsBoolean11({ message: "isImmediateJoiner must be true or false" }),
|
|
4764
4815
|
Type7(() => Boolean)
|
|
4765
4816
|
], UpdateFreelancerDto.prototype, "isImmediateJoiner", 2);
|
|
4766
4817
|
__decorateClass([
|
|
4767
4818
|
ValidateIf6((o) => o.isImmediateJoiner === false),
|
|
4768
|
-
|
|
4819
|
+
IsNotEmpty45({ message: "Please enter availability to join." })
|
|
4769
4820
|
], UpdateFreelancerDto.prototype, "availabilityToJoin", 2);
|
|
4770
4821
|
__decorateClass([
|
|
4771
|
-
|
|
4822
|
+
IsOptional25(),
|
|
4772
4823
|
IsUrl4({}, { message: "LinkedIn profile link must be a valid URL" })
|
|
4773
4824
|
], UpdateFreelancerDto.prototype, "linkedinProfileLink", 2);
|
|
4774
4825
|
__decorateClass([
|
|
4775
|
-
|
|
4776
|
-
|
|
4826
|
+
IsOptional25(),
|
|
4827
|
+
IsString27({ message: "Kaggle profile link must be a string" })
|
|
4777
4828
|
], UpdateFreelancerDto.prototype, "kaggleProfileLink", 2);
|
|
4778
4829
|
__decorateClass([
|
|
4779
|
-
|
|
4830
|
+
IsOptional25(),
|
|
4780
4831
|
IsUrl4({}, { message: "GitHub profile link must be a valid URL" })
|
|
4781
4832
|
], UpdateFreelancerDto.prototype, "githubProfileLink", 2);
|
|
4782
4833
|
__decorateClass([
|
|
4783
|
-
|
|
4834
|
+
IsOptional25(),
|
|
4784
4835
|
IsUrl4({}, { message: "StackOverflow profile link must be a valid URL" })
|
|
4785
4836
|
], UpdateFreelancerDto.prototype, "stackOverflowProfileLink", 2);
|
|
4786
4837
|
__decorateClass([
|
|
4787
|
-
|
|
4838
|
+
IsOptional25(),
|
|
4788
4839
|
IsUrl4({}, { message: "Portfolio link must be a valid URL" })
|
|
4789
4840
|
], UpdateFreelancerDto.prototype, "portfolioLink", 2);
|
|
4790
4841
|
|
|
@@ -4803,14 +4854,14 @@ var CLIENT_ADMIN_PATTERNS = {
|
|
|
4803
4854
|
|
|
4804
4855
|
// src/modules/client-admin/dto/create-client.dto.ts
|
|
4805
4856
|
import {
|
|
4806
|
-
IsNotEmpty as
|
|
4857
|
+
IsNotEmpty as IsNotEmpty46,
|
|
4807
4858
|
IsEmail as IsEmail12,
|
|
4808
|
-
IsOptional as
|
|
4809
|
-
IsString as
|
|
4859
|
+
IsOptional as IsOptional26,
|
|
4860
|
+
IsString as IsString28,
|
|
4810
4861
|
IsArray as IsArray9,
|
|
4811
4862
|
MinLength as MinLength14,
|
|
4812
4863
|
MaxLength as MaxLength16,
|
|
4813
|
-
IsEnum as
|
|
4864
|
+
IsEnum as IsEnum18,
|
|
4814
4865
|
Matches as Matches11
|
|
4815
4866
|
} from "class-validator";
|
|
4816
4867
|
var CreateClientHiringModeEnum = /* @__PURE__ */ ((CreateClientHiringModeEnum2) => {
|
|
@@ -4828,19 +4879,19 @@ var CreateClientHiringTypeEnum = /* @__PURE__ */ ((CreateClientHiringTypeEnum2)
|
|
|
4828
4879
|
var CreateClientDto = class {
|
|
4829
4880
|
};
|
|
4830
4881
|
__decorateClass([
|
|
4831
|
-
|
|
4832
|
-
|
|
4882
|
+
IsNotEmpty46({ message: "Please enter first name." }),
|
|
4883
|
+
IsString28()
|
|
4833
4884
|
], CreateClientDto.prototype, "firstName", 2);
|
|
4834
4885
|
__decorateClass([
|
|
4835
|
-
|
|
4836
|
-
|
|
4886
|
+
IsNotEmpty46({ message: "Please enter last name." }),
|
|
4887
|
+
IsString28()
|
|
4837
4888
|
], CreateClientDto.prototype, "lastName", 2);
|
|
4838
4889
|
__decorateClass([
|
|
4839
|
-
|
|
4890
|
+
IsNotEmpty46({ message: "Please enter email." }),
|
|
4840
4891
|
IsEmail12()
|
|
4841
4892
|
], CreateClientDto.prototype, "email", 2);
|
|
4842
4893
|
__decorateClass([
|
|
4843
|
-
|
|
4894
|
+
IsNotEmpty46({ message: "Please enter password." }),
|
|
4844
4895
|
MinLength14(6),
|
|
4845
4896
|
MaxLength16(32),
|
|
4846
4897
|
Matches11(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
@@ -4848,58 +4899,58 @@ __decorateClass([
|
|
|
4848
4899
|
})
|
|
4849
4900
|
], CreateClientDto.prototype, "password", 2);
|
|
4850
4901
|
__decorateClass([
|
|
4851
|
-
|
|
4902
|
+
IsNotEmpty46({ message: "Please enter confirm password." }),
|
|
4852
4903
|
Match("confirmPassword", { message: "Passwords do not match" })
|
|
4853
4904
|
], CreateClientDto.prototype, "confirmPassword", 2);
|
|
4854
4905
|
__decorateClass([
|
|
4855
|
-
|
|
4856
|
-
|
|
4906
|
+
IsNotEmpty46({ message: "Please enter company name." }),
|
|
4907
|
+
IsString28()
|
|
4857
4908
|
], CreateClientDto.prototype, "companyName", 2);
|
|
4858
4909
|
__decorateClass([
|
|
4859
4910
|
IsArray9({ message: "Skills should be an array." }),
|
|
4860
|
-
|
|
4911
|
+
IsNotEmpty46({ message: "Please enter skills." })
|
|
4861
4912
|
], CreateClientDto.prototype, "skills", 2);
|
|
4862
4913
|
__decorateClass([
|
|
4863
|
-
|
|
4864
|
-
|
|
4914
|
+
IsNotEmpty46({ message: "Please specify required freelancer count." }),
|
|
4915
|
+
IsString28()
|
|
4865
4916
|
], CreateClientDto.prototype, "requiredFreelancer", 2);
|
|
4866
4917
|
__decorateClass([
|
|
4867
|
-
|
|
4868
|
-
|
|
4918
|
+
IsNotEmpty46({ message: "Please specify the kind of hiring." }),
|
|
4919
|
+
IsEnum18(CreateClientHiringTypeEnum)
|
|
4869
4920
|
], CreateClientDto.prototype, "kindOfHiring", 2);
|
|
4870
4921
|
__decorateClass([
|
|
4871
|
-
|
|
4872
|
-
|
|
4922
|
+
IsNotEmpty46({ message: "Please specify the mode of hire." }),
|
|
4923
|
+
IsEnum18(CreateClientHiringModeEnum)
|
|
4873
4924
|
], CreateClientDto.prototype, "modeOfHire", 2);
|
|
4874
4925
|
__decorateClass([
|
|
4875
|
-
|
|
4876
|
-
|
|
4926
|
+
IsNotEmpty46({ message: "Please let us know how you found us." }),
|
|
4927
|
+
IsString28()
|
|
4877
4928
|
], CreateClientDto.prototype, "foundUsOn", 2);
|
|
4878
4929
|
__decorateClass([
|
|
4879
|
-
|
|
4880
|
-
|
|
4930
|
+
IsOptional26(),
|
|
4931
|
+
IsString28()
|
|
4881
4932
|
], CreateClientDto.prototype, "foundUsOnDetail", 2);
|
|
4882
4933
|
|
|
4883
4934
|
// src/modules/client-admin/dto/update-client-status.dto.ts
|
|
4884
|
-
import { IsString as
|
|
4935
|
+
import { IsString as IsString29, IsNotEmpty as IsNotEmpty47 } from "class-validator";
|
|
4885
4936
|
var UpdateClientAccountStatusDto = class {
|
|
4886
4937
|
};
|
|
4887
4938
|
__decorateClass([
|
|
4888
|
-
|
|
4889
|
-
|
|
4939
|
+
IsNotEmpty47({ message: "Please enter account status." }),
|
|
4940
|
+
IsString29()
|
|
4890
4941
|
], UpdateClientAccountStatusDto.prototype, "accountStatus", 2);
|
|
4891
4942
|
|
|
4892
4943
|
// src/modules/client-admin/dto/update-client.dto.ts
|
|
4893
4944
|
import { Transform as Transform3 } from "class-transformer";
|
|
4894
4945
|
import {
|
|
4895
|
-
IsNotEmpty as
|
|
4946
|
+
IsNotEmpty as IsNotEmpty48,
|
|
4896
4947
|
IsEmail as IsEmail13,
|
|
4897
|
-
IsOptional as
|
|
4898
|
-
IsString as
|
|
4948
|
+
IsOptional as IsOptional27,
|
|
4949
|
+
IsString as IsString30,
|
|
4899
4950
|
IsArray as IsArray10,
|
|
4900
4951
|
MinLength as MinLength15,
|
|
4901
4952
|
MaxLength as MaxLength17,
|
|
4902
|
-
IsEnum as
|
|
4953
|
+
IsEnum as IsEnum19,
|
|
4903
4954
|
Matches as Matches12
|
|
4904
4955
|
} from "class-validator";
|
|
4905
4956
|
var UpdateClientHiringModeEnum = /* @__PURE__ */ ((UpdateClientHiringModeEnum2) => {
|
|
@@ -4917,19 +4968,19 @@ var UpdateClientHiringTypeEnum = /* @__PURE__ */ ((UpdateClientHiringTypeEnum2)
|
|
|
4917
4968
|
var UpdateClientDto = class {
|
|
4918
4969
|
};
|
|
4919
4970
|
__decorateClass([
|
|
4920
|
-
|
|
4921
|
-
|
|
4971
|
+
IsNotEmpty48({ message: "Please enter first name." }),
|
|
4972
|
+
IsString30()
|
|
4922
4973
|
], UpdateClientDto.prototype, "firstName", 2);
|
|
4923
4974
|
__decorateClass([
|
|
4924
|
-
|
|
4925
|
-
|
|
4975
|
+
IsNotEmpty48({ message: "Please enter last name." }),
|
|
4976
|
+
IsString30()
|
|
4926
4977
|
], UpdateClientDto.prototype, "lastName", 2);
|
|
4927
4978
|
__decorateClass([
|
|
4928
|
-
|
|
4979
|
+
IsNotEmpty48({ message: "Please enter email." }),
|
|
4929
4980
|
IsEmail13()
|
|
4930
4981
|
], UpdateClientDto.prototype, "email", 2);
|
|
4931
4982
|
__decorateClass([
|
|
4932
|
-
|
|
4983
|
+
IsOptional27(),
|
|
4933
4984
|
Transform3(({ value }) => value === null || value === "" ? void 0 : value),
|
|
4934
4985
|
MinLength15(6, { message: "Password must be at least 6 characters." }),
|
|
4935
4986
|
MaxLength17(32, { message: "Password must not exceed 32 characters." }),
|
|
@@ -4938,32 +4989,32 @@ __decorateClass([
|
|
|
4938
4989
|
})
|
|
4939
4990
|
], UpdateClientDto.prototype, "password", 2);
|
|
4940
4991
|
__decorateClass([
|
|
4941
|
-
|
|
4942
|
-
|
|
4992
|
+
IsNotEmpty48({ message: "Please enter company name." }),
|
|
4993
|
+
IsString30()
|
|
4943
4994
|
], UpdateClientDto.prototype, "companyName", 2);
|
|
4944
4995
|
__decorateClass([
|
|
4945
4996
|
IsArray10({ message: "Skills should be an array." }),
|
|
4946
|
-
|
|
4997
|
+
IsNotEmpty48({ message: "Please enter skills." })
|
|
4947
4998
|
], UpdateClientDto.prototype, "skills", 2);
|
|
4948
4999
|
__decorateClass([
|
|
4949
|
-
|
|
4950
|
-
|
|
5000
|
+
IsNotEmpty48({ message: "Please specify required freelancer count." }),
|
|
5001
|
+
IsString30()
|
|
4951
5002
|
], UpdateClientDto.prototype, "requiredFreelancer", 2);
|
|
4952
5003
|
__decorateClass([
|
|
4953
|
-
|
|
4954
|
-
|
|
5004
|
+
IsNotEmpty48({ message: "Please specify the kind of hiring." }),
|
|
5005
|
+
IsEnum19(UpdateClientHiringTypeEnum)
|
|
4955
5006
|
], UpdateClientDto.prototype, "kindOfHiring", 2);
|
|
4956
5007
|
__decorateClass([
|
|
4957
|
-
|
|
4958
|
-
|
|
5008
|
+
IsNotEmpty48({ message: "Please specify the mode of hire." }),
|
|
5009
|
+
IsEnum19(UpdateClientHiringModeEnum)
|
|
4959
5010
|
], UpdateClientDto.prototype, "modeOfHire", 2);
|
|
4960
5011
|
__decorateClass([
|
|
4961
|
-
|
|
4962
|
-
|
|
5012
|
+
IsNotEmpty48({ message: "Please let us know how you found us." }),
|
|
5013
|
+
IsString30()
|
|
4963
5014
|
], UpdateClientDto.prototype, "foundUsOn", 2);
|
|
4964
5015
|
__decorateClass([
|
|
4965
|
-
|
|
4966
|
-
|
|
5016
|
+
IsOptional27(),
|
|
5017
|
+
IsString30()
|
|
4967
5018
|
], UpdateClientDto.prototype, "foundUsOnDetail", 2);
|
|
4968
5019
|
|
|
4969
5020
|
// src/modules/user/freelancer-declaration/pattern/pattern.ts
|
|
@@ -4973,7 +5024,7 @@ var FREELANCER_DECLARATION_PATTERN = {
|
|
|
4973
5024
|
};
|
|
4974
5025
|
|
|
4975
5026
|
// src/modules/user/freelancer-declaration/dto/freelancer-declaration.dto.ts
|
|
4976
|
-
import { IsOptional as
|
|
5027
|
+
import { IsOptional as IsOptional28, IsEnum as IsEnum20, IsString as IsString31, IsNotEmpty as IsNotEmpty49, IsIn as IsIn3 } from "class-validator";
|
|
4977
5028
|
var DocumentTypeEnum = /* @__PURE__ */ ((DocumentTypeEnum2) => {
|
|
4978
5029
|
DocumentTypeEnum2["AADHAAR"] = "AADHAAR_CARD";
|
|
4979
5030
|
DocumentTypeEnum2["PASSPORT"] = "PASSPORT";
|
|
@@ -4984,15 +5035,15 @@ var DocumentTypeEnum = /* @__PURE__ */ ((DocumentTypeEnum2) => {
|
|
|
4984
5035
|
var FreelancerDeclarationDto = class {
|
|
4985
5036
|
};
|
|
4986
5037
|
__decorateClass([
|
|
4987
|
-
|
|
4988
|
-
|
|
5038
|
+
IsOptional28(),
|
|
5039
|
+
IsString31({ message: "UUID must be a string" })
|
|
4989
5040
|
], FreelancerDeclarationDto.prototype, "uuid", 2);
|
|
4990
5041
|
__decorateClass([
|
|
4991
|
-
|
|
5042
|
+
IsEnum20(DocumentTypeEnum, { message: "Document type must be one of AADHAAR_CARD, PASSPORT, DRIVING_LICENSE, PAN_CARD" })
|
|
4992
5043
|
], FreelancerDeclarationDto.prototype, "documentType", 2);
|
|
4993
5044
|
__decorateClass([
|
|
4994
|
-
|
|
4995
|
-
|
|
5045
|
+
IsNotEmpty49({ message: "Please accept the declaration " }),
|
|
5046
|
+
IsString31(),
|
|
4996
5047
|
IsIn3([
|
|
4997
5048
|
"true"
|
|
4998
5049
|
])
|
|
@@ -5008,35 +5059,35 @@ var CMS_PATTERNS = {
|
|
|
5008
5059
|
};
|
|
5009
5060
|
|
|
5010
5061
|
// src/modules/cms/dto/create-cms.dto.ts
|
|
5011
|
-
import { IsBoolean as IsBoolean12, IsNotEmpty as
|
|
5062
|
+
import { IsBoolean as IsBoolean12, IsNotEmpty as IsNotEmpty50, IsOptional as IsOptional29 } from "class-validator";
|
|
5012
5063
|
var CreateCmsDto = class {
|
|
5013
5064
|
};
|
|
5014
5065
|
__decorateClass([
|
|
5015
|
-
|
|
5066
|
+
IsNotEmpty50({ message: "Please enter name." })
|
|
5016
5067
|
], CreateCmsDto.prototype, "title", 2);
|
|
5017
5068
|
__decorateClass([
|
|
5018
|
-
|
|
5069
|
+
IsOptional29()
|
|
5019
5070
|
], CreateCmsDto.prototype, "content", 2);
|
|
5020
5071
|
__decorateClass([
|
|
5021
|
-
|
|
5072
|
+
IsOptional29(),
|
|
5022
5073
|
IsBoolean12({ message: "Is active must be a boolean value" })
|
|
5023
5074
|
], CreateCmsDto.prototype, "isActive", 2);
|
|
5024
5075
|
|
|
5025
5076
|
// src/modules/cms/dto/update-cms.dto.ts
|
|
5026
|
-
import { IsBoolean as IsBoolean13, IsNotEmpty as
|
|
5077
|
+
import { IsBoolean as IsBoolean13, IsNotEmpty as IsNotEmpty51, IsOptional as IsOptional30 } from "class-validator";
|
|
5027
5078
|
var UpdateCmsDto = class {
|
|
5028
5079
|
};
|
|
5029
5080
|
__decorateClass([
|
|
5030
|
-
|
|
5081
|
+
IsOptional30()
|
|
5031
5082
|
], UpdateCmsDto.prototype, "uuid", 2);
|
|
5032
5083
|
__decorateClass([
|
|
5033
|
-
|
|
5084
|
+
IsNotEmpty51({ message: "Please enter name." })
|
|
5034
5085
|
], UpdateCmsDto.prototype, "title", 2);
|
|
5035
5086
|
__decorateClass([
|
|
5036
|
-
|
|
5087
|
+
IsOptional30()
|
|
5037
5088
|
], UpdateCmsDto.prototype, "content", 2);
|
|
5038
5089
|
__decorateClass([
|
|
5039
|
-
|
|
5090
|
+
IsOptional30(),
|
|
5040
5091
|
IsBoolean13({ message: "Is active must be a boolean value" })
|
|
5041
5092
|
], UpdateCmsDto.prototype, "isActive", 2);
|
|
5042
5093
|
|
|
@@ -5066,13 +5117,13 @@ var ADMIN_JOB_PATTERN = {
|
|
|
5066
5117
|
// src/modules/job-admin/dto/admin-create-job-information.dto.ts
|
|
5067
5118
|
import { Type as Type8 } from "class-transformer";
|
|
5068
5119
|
import {
|
|
5069
|
-
IsString as
|
|
5070
|
-
IsEnum as
|
|
5120
|
+
IsString as IsString32,
|
|
5121
|
+
IsEnum as IsEnum21,
|
|
5071
5122
|
IsInt as IsInt6,
|
|
5072
|
-
IsOptional as
|
|
5123
|
+
IsOptional as IsOptional31,
|
|
5073
5124
|
IsArray as IsArray11,
|
|
5074
5125
|
IsDateString as IsDateString4,
|
|
5075
|
-
IsNotEmpty as
|
|
5126
|
+
IsNotEmpty as IsNotEmpty52,
|
|
5076
5127
|
ArrayNotEmpty as ArrayNotEmpty6,
|
|
5077
5128
|
Min as Min5,
|
|
5078
5129
|
IsNumber as IsNumber5
|
|
@@ -5092,47 +5143,47 @@ var TypeOfEmploymentEnumDto = /* @__PURE__ */ ((TypeOfEmploymentEnumDto2) => {
|
|
|
5092
5143
|
var AdminCreateJobInformationDto = class {
|
|
5093
5144
|
};
|
|
5094
5145
|
__decorateClass([
|
|
5095
|
-
|
|
5096
|
-
|
|
5146
|
+
IsString32({ message: "Job role must be a string." }),
|
|
5147
|
+
IsNotEmpty52({ message: "Job role is required." })
|
|
5097
5148
|
], AdminCreateJobInformationDto.prototype, "jobRole", 2);
|
|
5098
5149
|
__decorateClass([
|
|
5099
|
-
|
|
5100
|
-
|
|
5150
|
+
IsOptional31(),
|
|
5151
|
+
IsString32({ message: "Note must be a string." })
|
|
5101
5152
|
], AdminCreateJobInformationDto.prototype, "note", 2);
|
|
5102
5153
|
__decorateClass([
|
|
5103
5154
|
IsArray11({ message: "Skills must be an array of skill names." }),
|
|
5104
5155
|
ArrayNotEmpty6({ message: "At least one skill must be provided." }),
|
|
5105
|
-
|
|
5156
|
+
IsString32({ each: true, message: "Each skill must be a valid string." })
|
|
5106
5157
|
], AdminCreateJobInformationDto.prototype, "skills", 2);
|
|
5107
5158
|
__decorateClass([
|
|
5108
5159
|
IsInt6({ message: "Openings must be a valid integer." }),
|
|
5109
5160
|
Min5(1, { message: "There must be at least one opening." })
|
|
5110
5161
|
], AdminCreateJobInformationDto.prototype, "openings", 2);
|
|
5111
5162
|
__decorateClass([
|
|
5112
|
-
|
|
5163
|
+
IsEnum21(JobLocationEnumDto, {
|
|
5113
5164
|
message: `Location must be one of: ${Object.values(JobLocationEnumDto).join(
|
|
5114
5165
|
", "
|
|
5115
5166
|
)}.`
|
|
5116
5167
|
})
|
|
5117
5168
|
], AdminCreateJobInformationDto.prototype, "location", 2);
|
|
5118
5169
|
__decorateClass([
|
|
5119
|
-
|
|
5170
|
+
IsEnum21(TypeOfEmploymentEnumDto, {
|
|
5120
5171
|
message: `Type of employment must be one of: ${Object.values(
|
|
5121
5172
|
TypeOfEmploymentEnumDto
|
|
5122
5173
|
).join(", ")}.`
|
|
5123
5174
|
})
|
|
5124
5175
|
], AdminCreateJobInformationDto.prototype, "typeOfEmployment", 2);
|
|
5125
5176
|
__decorateClass([
|
|
5126
|
-
|
|
5127
|
-
|
|
5177
|
+
IsString32({ message: "Onboarding Days must be a string." }),
|
|
5178
|
+
IsNotEmpty52({ message: "Onboarding Days is required." })
|
|
5128
5179
|
], AdminCreateJobInformationDto.prototype, "onboardingTat", 2);
|
|
5129
5180
|
__decorateClass([
|
|
5130
|
-
|
|
5131
|
-
|
|
5181
|
+
IsString32({ message: "Communication skills must be a string." }),
|
|
5182
|
+
IsNotEmpty52({ message: "Communication skills are required." })
|
|
5132
5183
|
], AdminCreateJobInformationDto.prototype, "candidateCommunicationSkills", 2);
|
|
5133
5184
|
__decorateClass([
|
|
5134
|
-
|
|
5135
|
-
|
|
5185
|
+
IsString32({ message: "Currency must be a string." }),
|
|
5186
|
+
IsNotEmpty52({ message: "Currency is required." })
|
|
5136
5187
|
], AdminCreateJobInformationDto.prototype, "currency", 2);
|
|
5137
5188
|
__decorateClass([
|
|
5138
5189
|
Type8(() => Number),
|
|
@@ -5155,8 +5206,8 @@ __decorateClass([
|
|
|
5155
5206
|
)
|
|
5156
5207
|
], AdminCreateJobInformationDto.prototype, "tentativeEndDate", 2);
|
|
5157
5208
|
__decorateClass([
|
|
5158
|
-
|
|
5159
|
-
|
|
5209
|
+
IsOptional31(),
|
|
5210
|
+
IsString32({ message: "Additional comment must be a string." })
|
|
5160
5211
|
], AdminCreateJobInformationDto.prototype, "additionalComment", 2);
|
|
5161
5212
|
__decorateClass([
|
|
5162
5213
|
IsInt6({ message: "Country ID must be a valid integer." })
|
|
@@ -5174,13 +5225,13 @@ __decorateClass([
|
|
|
5174
5225
|
// src/modules/job-admin/dto/admin-update-job-information.dto.ts
|
|
5175
5226
|
import { Type as Type9 } from "class-transformer";
|
|
5176
5227
|
import {
|
|
5177
|
-
IsString as
|
|
5178
|
-
IsEnum as
|
|
5228
|
+
IsString as IsString33,
|
|
5229
|
+
IsEnum as IsEnum22,
|
|
5179
5230
|
IsInt as IsInt7,
|
|
5180
|
-
IsOptional as
|
|
5231
|
+
IsOptional as IsOptional32,
|
|
5181
5232
|
IsArray as IsArray12,
|
|
5182
5233
|
IsDateString as IsDateString5,
|
|
5183
|
-
IsNotEmpty as
|
|
5234
|
+
IsNotEmpty as IsNotEmpty53,
|
|
5184
5235
|
ArrayNotEmpty as ArrayNotEmpty7,
|
|
5185
5236
|
Min as Min6,
|
|
5186
5237
|
IsNumber as IsNumber6
|
|
@@ -5200,47 +5251,47 @@ var TypeOfEmploymentEnums = /* @__PURE__ */ ((TypeOfEmploymentEnums2) => {
|
|
|
5200
5251
|
var AdminUpdateJobInformationDto = class {
|
|
5201
5252
|
};
|
|
5202
5253
|
__decorateClass([
|
|
5203
|
-
|
|
5204
|
-
|
|
5254
|
+
IsString33({ message: "Job role must be a string." }),
|
|
5255
|
+
IsNotEmpty53({ message: "Job role is required." })
|
|
5205
5256
|
], AdminUpdateJobInformationDto.prototype, "jobRole", 2);
|
|
5206
5257
|
__decorateClass([
|
|
5207
|
-
|
|
5208
|
-
|
|
5258
|
+
IsOptional32(),
|
|
5259
|
+
IsString33({ message: "Note must be a string." })
|
|
5209
5260
|
], AdminUpdateJobInformationDto.prototype, "note", 2);
|
|
5210
5261
|
__decorateClass([
|
|
5211
5262
|
IsArray12({ message: "Skills must be an array of skill names." }),
|
|
5212
5263
|
ArrayNotEmpty7({ message: "At least one skill must be provided." }),
|
|
5213
|
-
|
|
5264
|
+
IsString33({ each: true, message: "Each skill must be a valid string." })
|
|
5214
5265
|
], AdminUpdateJobInformationDto.prototype, "skills", 2);
|
|
5215
5266
|
__decorateClass([
|
|
5216
5267
|
IsInt7({ message: "Openings must be a valid integer." }),
|
|
5217
5268
|
Min6(1, { message: "There must be at least one opening." })
|
|
5218
5269
|
], AdminUpdateJobInformationDto.prototype, "openings", 2);
|
|
5219
5270
|
__decorateClass([
|
|
5220
|
-
|
|
5271
|
+
IsEnum22(JobLocationEnums, {
|
|
5221
5272
|
message: `Location must be one of: ${Object.values(JobLocationEnums).join(
|
|
5222
5273
|
", "
|
|
5223
5274
|
)}.`
|
|
5224
5275
|
})
|
|
5225
5276
|
], AdminUpdateJobInformationDto.prototype, "location", 2);
|
|
5226
5277
|
__decorateClass([
|
|
5227
|
-
|
|
5278
|
+
IsEnum22(TypeOfEmploymentEnums, {
|
|
5228
5279
|
message: `Type of employment must be one of: ${Object.values(
|
|
5229
5280
|
TypeOfEmploymentEnums
|
|
5230
5281
|
).join(", ")}.`
|
|
5231
5282
|
})
|
|
5232
5283
|
], AdminUpdateJobInformationDto.prototype, "typeOfEmployment", 2);
|
|
5233
5284
|
__decorateClass([
|
|
5234
|
-
|
|
5235
|
-
|
|
5285
|
+
IsString33({ message: "Onboarding Days must be a string." }),
|
|
5286
|
+
IsNotEmpty53({ message: "Onboarding Days is required." })
|
|
5236
5287
|
], AdminUpdateJobInformationDto.prototype, "onboardingTat", 2);
|
|
5237
5288
|
__decorateClass([
|
|
5238
|
-
|
|
5239
|
-
|
|
5289
|
+
IsString33({ message: "Communication skills must be a string." }),
|
|
5290
|
+
IsNotEmpty53({ message: "Communication skills are required." })
|
|
5240
5291
|
], AdminUpdateJobInformationDto.prototype, "candidateCommunicationSkills", 2);
|
|
5241
5292
|
__decorateClass([
|
|
5242
|
-
|
|
5243
|
-
|
|
5293
|
+
IsString33({ message: "Currency must be a string." }),
|
|
5294
|
+
IsNotEmpty53({ message: "Currency is required." })
|
|
5244
5295
|
], AdminUpdateJobInformationDto.prototype, "currency", 2);
|
|
5245
5296
|
__decorateClass([
|
|
5246
5297
|
Type9(() => Number),
|
|
@@ -5263,8 +5314,8 @@ __decorateClass([
|
|
|
5263
5314
|
)
|
|
5264
5315
|
], AdminUpdateJobInformationDto.prototype, "tentativeEndDate", 2);
|
|
5265
5316
|
__decorateClass([
|
|
5266
|
-
|
|
5267
|
-
|
|
5317
|
+
IsOptional32(),
|
|
5318
|
+
IsString33({ message: "Additional comment must be a string." })
|
|
5268
5319
|
], AdminUpdateJobInformationDto.prototype, "additionalComment", 2);
|
|
5269
5320
|
__decorateClass([
|
|
5270
5321
|
IsInt7({ message: "Country ID must be a valid integer." })
|
|
@@ -5286,7 +5337,7 @@ var LEAD_PATTERN = {
|
|
|
5286
5337
|
};
|
|
5287
5338
|
|
|
5288
5339
|
// src/modules/lead/dto/create-lead.dto.ts
|
|
5289
|
-
import { IsString as
|
|
5340
|
+
import { IsString as IsString34, IsEmail as IsEmail14, IsOptional as IsOptional33, IsEnum as IsEnum23 } from "class-validator";
|
|
5290
5341
|
var CategoryEmumDto = /* @__PURE__ */ ((CategoryEmumDto2) => {
|
|
5291
5342
|
CategoryEmumDto2["BUSINESS"] = "BUSINESS";
|
|
5292
5343
|
CategoryEmumDto2["FREELANCER"] = "FREELANCER";
|
|
@@ -5295,23 +5346,23 @@ var CategoryEmumDto = /* @__PURE__ */ ((CategoryEmumDto2) => {
|
|
|
5295
5346
|
var CreateLeadDto = class {
|
|
5296
5347
|
};
|
|
5297
5348
|
__decorateClass([
|
|
5298
|
-
|
|
5349
|
+
IsString34({ message: "Name must be a string" })
|
|
5299
5350
|
], CreateLeadDto.prototype, "name", 2);
|
|
5300
5351
|
__decorateClass([
|
|
5301
5352
|
IsEmail14({}, { message: "Invalid email address" })
|
|
5302
5353
|
], CreateLeadDto.prototype, "email", 2);
|
|
5303
5354
|
__decorateClass([
|
|
5304
|
-
|
|
5355
|
+
IsString34({ message: "Mobile code must be a string (e.g., +1)" })
|
|
5305
5356
|
], CreateLeadDto.prototype, "mobileCode", 2);
|
|
5306
5357
|
__decorateClass([
|
|
5307
|
-
|
|
5358
|
+
IsString34({ message: "Mobile must be a string (e.g., 1243253534)" })
|
|
5308
5359
|
], CreateLeadDto.prototype, "mobile", 2);
|
|
5309
5360
|
__decorateClass([
|
|
5310
|
-
|
|
5311
|
-
|
|
5361
|
+
IsOptional33(),
|
|
5362
|
+
IsString34({ message: "Description must be a string" })
|
|
5312
5363
|
], CreateLeadDto.prototype, "description", 2);
|
|
5313
5364
|
__decorateClass([
|
|
5314
|
-
|
|
5365
|
+
IsEnum23(CategoryEmumDto, {
|
|
5315
5366
|
message: `Type of category must be one of: ${Object.values(
|
|
5316
5367
|
CategoryEmumDto
|
|
5317
5368
|
).join(", ")}`
|
|
@@ -5331,46 +5382,46 @@ var ADMIN_ROLE_PATTERN = {
|
|
|
5331
5382
|
};
|
|
5332
5383
|
|
|
5333
5384
|
// src/modules/admin-role/dto/create-admin-role.dto.ts
|
|
5334
|
-
import { IsNotEmpty as
|
|
5385
|
+
import { IsNotEmpty as IsNotEmpty54, IsOptional as IsOptional34, IsString as IsString35 } from "class-validator";
|
|
5335
5386
|
var CreateAdminRoleDto = class {
|
|
5336
5387
|
};
|
|
5337
5388
|
__decorateClass([
|
|
5338
|
-
|
|
5339
|
-
|
|
5389
|
+
IsNotEmpty54({ message: "Please enter admin role name." }),
|
|
5390
|
+
IsString35({ message: "Role name must be a string." })
|
|
5340
5391
|
], CreateAdminRoleDto.prototype, "roleName", 2);
|
|
5341
5392
|
__decorateClass([
|
|
5342
|
-
|
|
5343
|
-
|
|
5393
|
+
IsOptional34(),
|
|
5394
|
+
IsString35({ message: "Role description must be a string." })
|
|
5344
5395
|
], CreateAdminRoleDto.prototype, "roleDescription", 2);
|
|
5345
5396
|
|
|
5346
5397
|
// src/modules/admin-role/dto/update-admin-role.dto.ts
|
|
5347
|
-
import { IsBoolean as IsBoolean15, IsNotEmpty as
|
|
5398
|
+
import { IsBoolean as IsBoolean15, IsNotEmpty as IsNotEmpty55, IsOptional as IsOptional35, IsString as IsString36 } from "class-validator";
|
|
5348
5399
|
var UpdateAdminRoleDto = class {
|
|
5349
5400
|
};
|
|
5350
5401
|
__decorateClass([
|
|
5351
|
-
|
|
5352
|
-
|
|
5402
|
+
IsNotEmpty55({ message: "Please enter admin role name." }),
|
|
5403
|
+
IsString36({ message: "Role name must be a string." })
|
|
5353
5404
|
], UpdateAdminRoleDto.prototype, "roleName", 2);
|
|
5354
5405
|
__decorateClass([
|
|
5355
|
-
|
|
5356
|
-
|
|
5406
|
+
IsOptional35(),
|
|
5407
|
+
IsString36({ message: "Role description must be a string." })
|
|
5357
5408
|
], UpdateAdminRoleDto.prototype, "roleDescription", 2);
|
|
5358
5409
|
__decorateClass([
|
|
5359
|
-
|
|
5410
|
+
IsOptional35(),
|
|
5360
5411
|
IsBoolean15({ message: "Is active must be a boolean value." })
|
|
5361
5412
|
], UpdateAdminRoleDto.prototype, "isActive", 2);
|
|
5362
5413
|
|
|
5363
5414
|
// src/modules/admin-role/dto/attach-permissions-to-role.dto.ts
|
|
5364
|
-
import { IsNotEmpty as
|
|
5415
|
+
import { IsNotEmpty as IsNotEmpty56, IsString as IsString37 } from "class-validator";
|
|
5365
5416
|
var AttachPermissionsToRoleDto = class {
|
|
5366
5417
|
};
|
|
5367
5418
|
__decorateClass([
|
|
5368
|
-
|
|
5369
|
-
|
|
5419
|
+
IsNotEmpty56({ message: "Please enter admin role ID." }),
|
|
5420
|
+
IsString37({ message: "Role ID must be a string." })
|
|
5370
5421
|
], AttachPermissionsToRoleDto.prototype, "roleId", 2);
|
|
5371
5422
|
__decorateClass([
|
|
5372
|
-
|
|
5373
|
-
|
|
5423
|
+
IsNotEmpty56({ message: "Please enter permission IDs." }),
|
|
5424
|
+
IsString37({ message: "Permission IDs must be a comma-separated string." })
|
|
5374
5425
|
], AttachPermissionsToRoleDto.prototype, "permissionIds", 2);
|
|
5375
5426
|
|
|
5376
5427
|
// src/modules/admin-permission/pattern/pattern.ts
|
|
@@ -5397,13 +5448,13 @@ var CALENDLY_PATTERN = {
|
|
|
5397
5448
|
|
|
5398
5449
|
// src/modules/interview/dto/interview-invite.dto.ts
|
|
5399
5450
|
import {
|
|
5400
|
-
IsString as
|
|
5401
|
-
IsNotEmpty as
|
|
5451
|
+
IsString as IsString38,
|
|
5452
|
+
IsNotEmpty as IsNotEmpty57,
|
|
5402
5453
|
IsArray as IsArray13,
|
|
5403
5454
|
ArrayNotEmpty as ArrayNotEmpty8,
|
|
5404
5455
|
IsEmail as IsEmail15,
|
|
5405
5456
|
IsUUID as IsUUID12,
|
|
5406
|
-
IsEnum as
|
|
5457
|
+
IsEnum as IsEnum24,
|
|
5407
5458
|
ValidateIf as ValidateIf7,
|
|
5408
5459
|
ValidateNested as ValidateNested5
|
|
5409
5460
|
} from "class-validator";
|
|
@@ -5421,21 +5472,21 @@ __decorateClass([
|
|
|
5421
5472
|
IsUUID12()
|
|
5422
5473
|
], ExistingCandidateDto.prototype, "id", 2);
|
|
5423
5474
|
__decorateClass([
|
|
5424
|
-
|
|
5475
|
+
IsEnum24(CandidateType, {
|
|
5425
5476
|
message: "type must be one of SHORTLISTED, APPLICATNTS, or RECOMMENDED"
|
|
5426
5477
|
})
|
|
5427
5478
|
], ExistingCandidateDto.prototype, "type", 2);
|
|
5428
5479
|
var NewCandidateDto = class {
|
|
5429
5480
|
};
|
|
5430
5481
|
__decorateClass([
|
|
5431
|
-
|
|
5432
|
-
|
|
5482
|
+
IsNotEmpty57({ message: "Please enter the candidate name" }),
|
|
5483
|
+
IsString38({ message: "Name must be a string" })
|
|
5433
5484
|
], NewCandidateDto.prototype, "name", 2);
|
|
5434
5485
|
__decorateClass([
|
|
5435
5486
|
IsEmail15({}, { message: "Please enter a valid email." })
|
|
5436
5487
|
], NewCandidateDto.prototype, "email", 2);
|
|
5437
5488
|
__decorateClass([
|
|
5438
|
-
|
|
5489
|
+
IsEnum24(CandidateType, {
|
|
5439
5490
|
message: "type must be NEW"
|
|
5440
5491
|
})
|
|
5441
5492
|
], NewCandidateDto.prototype, "type", 2);
|
|
@@ -5467,8 +5518,8 @@ __decorateClass([
|
|
|
5467
5518
|
|
|
5468
5519
|
// src/modules/interview/dto/create-f2f-interview.dto.ts
|
|
5469
5520
|
import {
|
|
5470
|
-
IsString as
|
|
5471
|
-
IsNotEmpty as
|
|
5521
|
+
IsString as IsString39,
|
|
5522
|
+
IsNotEmpty as IsNotEmpty58,
|
|
5472
5523
|
IsEmail as IsEmail16,
|
|
5473
5524
|
IsNumber as IsNumber7
|
|
5474
5525
|
} from "class-validator";
|
|
@@ -5476,11 +5527,11 @@ var CreateF2FInterviewDto = class {
|
|
|
5476
5527
|
};
|
|
5477
5528
|
__decorateClass([
|
|
5478
5529
|
IsEmail16({}, { message: "Please enter a valid email address." }),
|
|
5479
|
-
|
|
5530
|
+
IsNotEmpty58({ message: "Invitee email is required." })
|
|
5480
5531
|
], CreateF2FInterviewDto.prototype, "inviteeEmail", 2);
|
|
5481
5532
|
__decorateClass([
|
|
5482
|
-
|
|
5483
|
-
|
|
5533
|
+
IsString39({ message: "Invitee name must be a string." }),
|
|
5534
|
+
IsNotEmpty58({ message: "Invitee name is required." })
|
|
5484
5535
|
], CreateF2FInterviewDto.prototype, "inviteeName", 2);
|
|
5485
5536
|
__decorateClass([
|
|
5486
5537
|
IsNumber7({}, { message: "Interview ID must be a number." })
|
|
@@ -5491,23 +5542,23 @@ __decorateClass([
|
|
|
5491
5542
|
|
|
5492
5543
|
// src/modules/interview/dto/create-f2f-interview-reschedule-request.dto.ts
|
|
5493
5544
|
import {
|
|
5494
|
-
IsString as
|
|
5495
|
-
IsNotEmpty as
|
|
5545
|
+
IsString as IsString40,
|
|
5546
|
+
IsNotEmpty as IsNotEmpty59
|
|
5496
5547
|
} from "class-validator";
|
|
5497
5548
|
var CreateF2FInterviewRescheduleRequestDto = class {
|
|
5498
5549
|
};
|
|
5499
5550
|
__decorateClass([
|
|
5500
|
-
|
|
5551
|
+
IsNotEmpty59({ message: "F2F Interview ID is required." })
|
|
5501
5552
|
], CreateF2FInterviewRescheduleRequestDto.prototype, "f2FInterviewId", 2);
|
|
5502
5553
|
__decorateClass([
|
|
5503
|
-
|
|
5554
|
+
IsNotEmpty59({ message: "Rescheduled date is required." })
|
|
5504
5555
|
], CreateF2FInterviewRescheduleRequestDto.prototype, "rescheduledDate", 2);
|
|
5505
5556
|
__decorateClass([
|
|
5506
|
-
|
|
5507
|
-
|
|
5557
|
+
IsString40({ message: "Rescheduled slot must be a string." }),
|
|
5558
|
+
IsNotEmpty59({ message: "Rescheduled slot is required." })
|
|
5508
5559
|
], CreateF2FInterviewRescheduleRequestDto.prototype, "rescheduledSlot", 2);
|
|
5509
5560
|
__decorateClass([
|
|
5510
|
-
|
|
5561
|
+
IsString40({ message: "Freelancer reason must be a string." })
|
|
5511
5562
|
], CreateF2FInterviewRescheduleRequestDto.prototype, "freelancerRequestReason", 2);
|
|
5512
5563
|
|
|
5513
5564
|
// src/adapters/tcp/user.tcp.adapter.ts
|
|
@@ -6414,6 +6465,8 @@ export {
|
|
|
6414
6465
|
LEAD_PATTERN,
|
|
6415
6466
|
Lead,
|
|
6416
6467
|
LoginDto,
|
|
6468
|
+
LoginViaOtpDto,
|
|
6469
|
+
LoginViaOtpScopeEnum,
|
|
6417
6470
|
LogoutDto,
|
|
6418
6471
|
McqStatusEnum,
|
|
6419
6472
|
ModeOfHire,
|
|
@@ -6455,6 +6508,9 @@ export {
|
|
|
6455
6508
|
SendGuestOtpDto,
|
|
6456
6509
|
SendGuestOtpPurposeEnum,
|
|
6457
6510
|
SendGuestOtpScopeEnum,
|
|
6511
|
+
SendLoginOtpDto,
|
|
6512
|
+
SendLoginOtpPurposeEnum,
|
|
6513
|
+
SendLoginOtpScopeEnum,
|
|
6458
6514
|
SenseloafLog,
|
|
6459
6515
|
SequenceGenerator,
|
|
6460
6516
|
SetPasswordDto,
|