@experts_hub/shared 1.0.296 → 1.0.298
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/entities/job-freelancer-recommendation.entity.d.ts +1 -0
- package/dist/index.d.mts +19 -7
- package/dist/index.d.ts +19 -7
- package/dist/index.js +642 -617
- package/dist/index.mjs +283 -256
- package/dist/modules/authentication/dto/index.d.ts +1 -0
- package/dist/modules/authentication/dto/reset-password-token-validation.dto.d.ts +10 -0
- package/dist/modules/authentication/pattern/pattern.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -20,16 +20,17 @@ var AUTHENTICATION_PATTERN = {
|
|
|
20
20
|
revokeSession: "revoke.session",
|
|
21
21
|
handleForgotPassword: "handle.forgot.password",
|
|
22
22
|
handleResetPassword: "handle.reset.password",
|
|
23
|
+
handleValidateResetPasswordToken: "handle.validate.reset.password.token",
|
|
23
24
|
handleSetPassword: "handle.set.password"
|
|
24
25
|
};
|
|
25
26
|
|
|
26
27
|
// src/modules/authentication/dto/login.dto.ts
|
|
27
28
|
import { IsEnum, IsNotEmpty } from "class-validator";
|
|
28
|
-
var ScopeEnum = /* @__PURE__ */ ((
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
return
|
|
29
|
+
var ScopeEnum = /* @__PURE__ */ ((ScopeEnum5) => {
|
|
30
|
+
ScopeEnum5["ADMIN"] = "ADMIN";
|
|
31
|
+
ScopeEnum5["CLIENT"] = "CLIENT";
|
|
32
|
+
ScopeEnum5["FREELANCER"] = "FREELANCER";
|
|
33
|
+
return ScopeEnum5;
|
|
33
34
|
})(ScopeEnum || {});
|
|
34
35
|
var LoginDto = class {
|
|
35
36
|
};
|
|
@@ -67,11 +68,11 @@ __decorateClass([
|
|
|
67
68
|
|
|
68
69
|
// src/modules/authentication/dto/forgot-password.dto.ts
|
|
69
70
|
import { IsEmail, IsEnum as IsEnum2, IsNotEmpty as IsNotEmpty4 } from "class-validator";
|
|
70
|
-
var ScopeEnum2 = /* @__PURE__ */ ((
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
return
|
|
71
|
+
var ScopeEnum2 = /* @__PURE__ */ ((ScopeEnum5) => {
|
|
72
|
+
ScopeEnum5["ADMIN"] = "ADMIN";
|
|
73
|
+
ScopeEnum5["CLIENT"] = "CLIENT";
|
|
74
|
+
ScopeEnum5["FREELANCER"] = "FREELANCER";
|
|
75
|
+
return ScopeEnum5;
|
|
75
76
|
})(ScopeEnum2 || {});
|
|
76
77
|
var ForgotPasswordDto = class {
|
|
77
78
|
};
|
|
@@ -93,11 +94,11 @@ import {
|
|
|
93
94
|
MaxLength,
|
|
94
95
|
MinLength
|
|
95
96
|
} from "class-validator";
|
|
96
|
-
var ScopeEnum3 = /* @__PURE__ */ ((
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
return
|
|
97
|
+
var ScopeEnum3 = /* @__PURE__ */ ((ScopeEnum5) => {
|
|
98
|
+
ScopeEnum5["ADMIN"] = "ADMIN";
|
|
99
|
+
ScopeEnum5["CLIENT"] = "CLIENT";
|
|
100
|
+
ScopeEnum5["FREELANCER"] = "FREELANCER";
|
|
101
|
+
return ScopeEnum5;
|
|
101
102
|
})(ScopeEnum3 || {});
|
|
102
103
|
var ResetPasswordDto = class {
|
|
103
104
|
};
|
|
@@ -139,6 +140,28 @@ __decorateClass([
|
|
|
139
140
|
})
|
|
140
141
|
], SetPasswordDto.prototype, "password", 2);
|
|
141
142
|
|
|
143
|
+
// src/modules/authentication/dto/reset-password-token-validation.dto.ts
|
|
144
|
+
import {
|
|
145
|
+
IsEnum as IsEnum5,
|
|
146
|
+
IsNotEmpty as IsNotEmpty7
|
|
147
|
+
} from "class-validator";
|
|
148
|
+
var ScopeEnum4 = /* @__PURE__ */ ((ScopeEnum5) => {
|
|
149
|
+
ScopeEnum5["ADMIN"] = "ADMIN";
|
|
150
|
+
ScopeEnum5["CLIENT"] = "CLIENT";
|
|
151
|
+
ScopeEnum5["FREELANCER"] = "FREELANCER";
|
|
152
|
+
return ScopeEnum5;
|
|
153
|
+
})(ScopeEnum4 || {});
|
|
154
|
+
var ResetPasswordTokenValidationDto = class {
|
|
155
|
+
};
|
|
156
|
+
__decorateClass([
|
|
157
|
+
IsNotEmpty7({ message: "Please enter token." })
|
|
158
|
+
], ResetPasswordTokenValidationDto.prototype, "token", 2);
|
|
159
|
+
__decorateClass([
|
|
160
|
+
IsEnum5(ScopeEnum4, {
|
|
161
|
+
message: `Scope must be one of: ${Object.values(ScopeEnum4).join(", ")}`
|
|
162
|
+
})
|
|
163
|
+
], ResetPasswordTokenValidationDto.prototype, "scope", 2);
|
|
164
|
+
|
|
142
165
|
// src/modules/otp/pattern/pattern.ts
|
|
143
166
|
var OTP_PATTERN = {
|
|
144
167
|
handleSendGuestOtp: "handle.send.guest.otp",
|
|
@@ -148,7 +171,7 @@ var OTP_PATTERN = {
|
|
|
148
171
|
};
|
|
149
172
|
|
|
150
173
|
// src/modules/otp/dto/send-guest-otp.dto.ts
|
|
151
|
-
import { IsEnum as
|
|
174
|
+
import { IsEnum as IsEnum6, IsNotEmpty as IsNotEmpty8, IsOptional, IsString } from "class-validator";
|
|
152
175
|
var SendGuestOtpPurposeEnum = /* @__PURE__ */ ((SendGuestOtpPurposeEnum2) => {
|
|
153
176
|
SendGuestOtpPurposeEnum2["ACCOUNT_VERIFICATION"] = "ACCOUNT_VERIFICATION";
|
|
154
177
|
return SendGuestOtpPurposeEnum2;
|
|
@@ -161,11 +184,11 @@ var SendGuestOtpScopeEnum = /* @__PURE__ */ ((SendGuestOtpScopeEnum2) => {
|
|
|
161
184
|
var SendGuestOtpDto = class {
|
|
162
185
|
};
|
|
163
186
|
__decorateClass([
|
|
164
|
-
|
|
187
|
+
IsNotEmpty8({ message: "Please enter full name." }),
|
|
165
188
|
IsString({ message: "Please enter valid full name." })
|
|
166
189
|
], SendGuestOtpDto.prototype, "fullName", 2);
|
|
167
190
|
__decorateClass([
|
|
168
|
-
|
|
191
|
+
IsNotEmpty8({ message: "Please enter target." }),
|
|
169
192
|
IsString({ message: "Please enter valid target." })
|
|
170
193
|
], SendGuestOtpDto.prototype, "target", 2);
|
|
171
194
|
__decorateClass([
|
|
@@ -173,16 +196,16 @@ __decorateClass([
|
|
|
173
196
|
IsString({ message: "Please enter valid fallback target." })
|
|
174
197
|
], SendGuestOtpDto.prototype, "fallbackTarget", 2);
|
|
175
198
|
__decorateClass([
|
|
176
|
-
|
|
177
|
-
|
|
199
|
+
IsNotEmpty8({ message: "Please enter OTP purpose." }),
|
|
200
|
+
IsEnum6(SendGuestOtpPurposeEnum, { message: "Purpose must be a valid OTP purpose" })
|
|
178
201
|
], SendGuestOtpDto.prototype, "purpose", 2);
|
|
179
202
|
__decorateClass([
|
|
180
|
-
|
|
181
|
-
|
|
203
|
+
IsNotEmpty8({ message: "Please enter scope." }),
|
|
204
|
+
IsEnum6(SendGuestOtpScopeEnum, { message: "scope must be a valid" })
|
|
182
205
|
], SendGuestOtpDto.prototype, "scope", 2);
|
|
183
206
|
|
|
184
207
|
// src/modules/otp/dto/verify-guest-otp.dto.ts
|
|
185
|
-
import { IsEnum as
|
|
208
|
+
import { IsEnum as IsEnum7, IsNotEmpty as IsNotEmpty9, IsString as IsString2, Length } from "class-validator";
|
|
186
209
|
var VerifyGuestOtpPurposeEnum = /* @__PURE__ */ ((VerifyGuestOtpPurposeEnum2) => {
|
|
187
210
|
VerifyGuestOtpPurposeEnum2["ACCOUNT_VERIFICATION"] = "ACCOUNT_VERIFICATION";
|
|
188
211
|
return VerifyGuestOtpPurposeEnum2;
|
|
@@ -190,17 +213,17 @@ var VerifyGuestOtpPurposeEnum = /* @__PURE__ */ ((VerifyGuestOtpPurposeEnum2) =>
|
|
|
190
213
|
var VerifyGuestOtpDto = class {
|
|
191
214
|
};
|
|
192
215
|
__decorateClass([
|
|
193
|
-
|
|
216
|
+
IsNotEmpty9({ message: "Please enter target." }),
|
|
194
217
|
IsString2({ message: "Please enter valid target." })
|
|
195
218
|
], VerifyGuestOtpDto.prototype, "target", 2);
|
|
196
219
|
__decorateClass([
|
|
197
|
-
|
|
220
|
+
IsNotEmpty9({ message: "Please enter otp." }),
|
|
198
221
|
IsString2({ message: "Please enter valid otp." }),
|
|
199
222
|
Length(4, 6, { message: "OTP must be between 4 and 6 characters" })
|
|
200
223
|
], VerifyGuestOtpDto.prototype, "otp", 2);
|
|
201
224
|
__decorateClass([
|
|
202
|
-
|
|
203
|
-
|
|
225
|
+
IsNotEmpty9({ message: "Please enter OTP purpose." }),
|
|
226
|
+
IsEnum7(VerifyGuestOtpPurposeEnum, {
|
|
204
227
|
message: "Purpose must be a valid OTP purpose"
|
|
205
228
|
})
|
|
206
229
|
], VerifyGuestOtpDto.prototype, "purpose", 2);
|
|
@@ -219,7 +242,7 @@ var ONBOARDING_PATTERN = {
|
|
|
219
242
|
|
|
220
243
|
// src/modules/onboarding/dto/freelancer-create-account.dto.ts
|
|
221
244
|
import {
|
|
222
|
-
IsNotEmpty as
|
|
245
|
+
IsNotEmpty as IsNotEmpty10,
|
|
223
246
|
IsEmail as IsEmail2,
|
|
224
247
|
Matches as Matches3,
|
|
225
248
|
MinLength as MinLength3,
|
|
@@ -400,25 +423,25 @@ function IsBusinessEmail(validationOptions) {
|
|
|
400
423
|
var FreelancerCreateAccountDto = class {
|
|
401
424
|
};
|
|
402
425
|
__decorateClass([
|
|
403
|
-
|
|
426
|
+
IsNotEmpty10({ message: "Please enter full name." }),
|
|
404
427
|
IsString3({ message: "Please enter valid full name." })
|
|
405
428
|
], FreelancerCreateAccountDto.prototype, "fullName", 2);
|
|
406
429
|
__decorateClass([
|
|
407
|
-
|
|
430
|
+
IsNotEmpty10({ message: "Please enter email." }),
|
|
408
431
|
IsEmail2()
|
|
409
432
|
], FreelancerCreateAccountDto.prototype, "email", 2);
|
|
410
433
|
__decorateClass([
|
|
411
|
-
|
|
434
|
+
IsNotEmpty10({ message: "Please enter mobile code." }),
|
|
412
435
|
Matches3(/^\+\d{1,4}$/, {
|
|
413
436
|
message: "Please enter a valid country mobile code (e.g., +91, +1, +44)."
|
|
414
437
|
})
|
|
415
438
|
], FreelancerCreateAccountDto.prototype, "mobileCode", 2);
|
|
416
439
|
__decorateClass([
|
|
417
|
-
|
|
440
|
+
IsNotEmpty10({ message: "Please enter mobile number." }),
|
|
418
441
|
IsValidMobileNumber({ message: "Mobile number is not valid for the selected country code." })
|
|
419
442
|
], FreelancerCreateAccountDto.prototype, "mobile", 2);
|
|
420
443
|
__decorateClass([
|
|
421
|
-
|
|
444
|
+
IsNotEmpty10({ message: "Please enter password." }),
|
|
422
445
|
MinLength3(6),
|
|
423
446
|
MaxLength3(32),
|
|
424
447
|
Matches3(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
@@ -426,83 +449,83 @@ __decorateClass([
|
|
|
426
449
|
})
|
|
427
450
|
], FreelancerCreateAccountDto.prototype, "password", 2);
|
|
428
451
|
__decorateClass([
|
|
429
|
-
|
|
452
|
+
IsNotEmpty10({ message: "Please enter confirm password." }),
|
|
430
453
|
Match("password", { message: "Passwords do not match" })
|
|
431
454
|
], FreelancerCreateAccountDto.prototype, "confirmPassword", 2);
|
|
432
455
|
|
|
433
456
|
// src/modules/onboarding/dto/freelancer-upload-resume.dto.ts
|
|
434
|
-
import { IsUUID, IsNotEmpty as
|
|
457
|
+
import { IsUUID, IsNotEmpty as IsNotEmpty11 } from "class-validator";
|
|
435
458
|
var FreelancerUploadResumeDto = class {
|
|
436
459
|
};
|
|
437
460
|
__decorateClass([
|
|
438
|
-
|
|
461
|
+
IsNotEmpty11({ message: "Please enter uuid." }),
|
|
439
462
|
IsUUID()
|
|
440
463
|
], FreelancerUploadResumeDto.prototype, "uuid", 2);
|
|
441
464
|
|
|
442
465
|
// src/modules/onboarding/dto/freelancer-parse-resume.dto.ts
|
|
443
|
-
import { IsUUID as IsUUID2, IsNotEmpty as
|
|
466
|
+
import { IsUUID as IsUUID2, IsNotEmpty as IsNotEmpty12 } from "class-validator";
|
|
444
467
|
var FreelancerParseResumeDto = class {
|
|
445
468
|
};
|
|
446
469
|
__decorateClass([
|
|
447
|
-
|
|
470
|
+
IsNotEmpty12({ message: "Please enter uuid." }),
|
|
448
471
|
IsUUID2()
|
|
449
472
|
], FreelancerParseResumeDto.prototype, "uuid", 2);
|
|
450
473
|
|
|
451
474
|
// src/modules/onboarding/dto/freelancer-initiate-mcq-assessment.dto.ts
|
|
452
|
-
import { IsUUID as IsUUID3, IsNotEmpty as
|
|
475
|
+
import { IsUUID as IsUUID3, IsNotEmpty as IsNotEmpty13 } from "class-validator";
|
|
453
476
|
var FreelancerInitiateMcqAssessmentDto = class {
|
|
454
477
|
};
|
|
455
478
|
__decorateClass([
|
|
456
|
-
|
|
479
|
+
IsNotEmpty13({ message: "Please enter uuid." }),
|
|
457
480
|
IsUUID3()
|
|
458
481
|
], FreelancerInitiateMcqAssessmentDto.prototype, "uuid", 2);
|
|
459
482
|
|
|
460
483
|
// src/modules/onboarding/dto/freelancer-skip-ai-assessment.dto.ts
|
|
461
|
-
import { IsUUID as IsUUID4, IsNotEmpty as
|
|
484
|
+
import { IsUUID as IsUUID4, IsNotEmpty as IsNotEmpty14 } from "class-validator";
|
|
462
485
|
var FreelancerSkipAiAssessmentDto = class {
|
|
463
486
|
};
|
|
464
487
|
__decorateClass([
|
|
465
|
-
|
|
488
|
+
IsNotEmpty14({ message: "Please enter uuid." }),
|
|
466
489
|
IsUUID4()
|
|
467
490
|
], FreelancerSkipAiAssessmentDto.prototype, "uuid", 2);
|
|
468
491
|
|
|
469
492
|
// src/modules/onboarding/dto/freelancer-initiate-ai-assessment.dto.ts
|
|
470
|
-
import { IsUUID as IsUUID5, IsNotEmpty as
|
|
493
|
+
import { IsUUID as IsUUID5, IsNotEmpty as IsNotEmpty15 } from "class-validator";
|
|
471
494
|
var FreelancerInitiateAiAssessmentDto = class {
|
|
472
495
|
};
|
|
473
496
|
__decorateClass([
|
|
474
|
-
|
|
497
|
+
IsNotEmpty15({ message: "Please enter uuid." }),
|
|
475
498
|
IsUUID5()
|
|
476
499
|
], FreelancerInitiateAiAssessmentDto.prototype, "uuid", 2);
|
|
477
500
|
|
|
478
501
|
// src/modules/onboarding/dto/freelancer-capture-ai-assessment-status.dto.ts
|
|
479
|
-
import { IsUUID as IsUUID6, IsNotEmpty as
|
|
502
|
+
import { IsUUID as IsUUID6, IsNotEmpty as IsNotEmpty16, IsOptional as IsOptional2 } from "class-validator";
|
|
480
503
|
var FreelancerCaptureAiAssessmentStatusDto = class {
|
|
481
504
|
};
|
|
482
505
|
__decorateClass([
|
|
483
|
-
|
|
506
|
+
IsNotEmpty16({ message: "Please enter uuid." }),
|
|
484
507
|
IsUUID6()
|
|
485
508
|
], FreelancerCaptureAiAssessmentStatusDto.prototype, "uuid", 2);
|
|
486
509
|
__decorateClass([
|
|
487
|
-
|
|
510
|
+
IsNotEmpty16({ message: "Please enter assessment id." })
|
|
488
511
|
], FreelancerCaptureAiAssessmentStatusDto.prototype, "assessmentId", 2);
|
|
489
512
|
__decorateClass([
|
|
490
|
-
|
|
513
|
+
IsNotEmpty16({ message: "Please enter assessment status." })
|
|
491
514
|
], FreelancerCaptureAiAssessmentStatusDto.prototype, "assessmentStatus", 2);
|
|
492
515
|
__decorateClass([
|
|
493
516
|
IsOptional2()
|
|
494
517
|
], FreelancerCaptureAiAssessmentStatusDto.prototype, "iframeEventData", 2);
|
|
495
518
|
|
|
496
519
|
// src/modules/onboarding/dto/freelancer-development-preference.dto.ts
|
|
497
|
-
import { IsUUID as IsUUID7, IsNotEmpty as
|
|
520
|
+
import { IsUUID as IsUUID7, IsNotEmpty as IsNotEmpty17, IsBoolean } from "class-validator";
|
|
498
521
|
var FreelancerDevelopmentPreferenceDto = class {
|
|
499
522
|
};
|
|
500
523
|
__decorateClass([
|
|
501
|
-
|
|
524
|
+
IsNotEmpty17({ message: "Please enter uuid." }),
|
|
502
525
|
IsUUID7()
|
|
503
526
|
], FreelancerDevelopmentPreferenceDto.prototype, "uuid", 2);
|
|
504
527
|
__decorateClass([
|
|
505
|
-
|
|
528
|
+
IsNotEmpty17({ message: "Please select development flag." }),
|
|
506
529
|
IsBoolean()
|
|
507
530
|
], FreelancerDevelopmentPreferenceDto.prototype, "developer", 2);
|
|
508
531
|
|
|
@@ -510,17 +533,17 @@ __decorateClass([
|
|
|
510
533
|
import {
|
|
511
534
|
IsUUID as IsUUID8,
|
|
512
535
|
IsString as IsString4,
|
|
513
|
-
IsNotEmpty as
|
|
536
|
+
IsNotEmpty as IsNotEmpty18,
|
|
514
537
|
IsIn
|
|
515
538
|
} from "class-validator";
|
|
516
539
|
var FreelancerProfileQuestionDto = class {
|
|
517
540
|
};
|
|
518
541
|
__decorateClass([
|
|
519
|
-
|
|
542
|
+
IsNotEmpty18({ message: "Please enter uuid." }),
|
|
520
543
|
IsUUID8()
|
|
521
544
|
], FreelancerProfileQuestionDto.prototype, "uuid", 2);
|
|
522
545
|
__decorateClass([
|
|
523
|
-
|
|
546
|
+
IsNotEmpty18({ message: "Please enter question slug." }),
|
|
524
547
|
IsString4(),
|
|
525
548
|
IsIn([
|
|
526
549
|
"natureOfWork",
|
|
@@ -531,12 +554,12 @@ __decorateClass([
|
|
|
531
554
|
])
|
|
532
555
|
], FreelancerProfileQuestionDto.prototype, "question_slug", 2);
|
|
533
556
|
__decorateClass([
|
|
534
|
-
|
|
557
|
+
IsNotEmpty18({ message: "Please enter answer." })
|
|
535
558
|
], FreelancerProfileQuestionDto.prototype, "answer", 2);
|
|
536
559
|
|
|
537
560
|
// src/modules/onboarding/dto/freelancer-work-showcase.dto.ts
|
|
538
561
|
import {
|
|
539
|
-
IsNotEmpty as
|
|
562
|
+
IsNotEmpty as IsNotEmpty19,
|
|
540
563
|
IsOptional as IsOptional3,
|
|
541
564
|
IsUrl,
|
|
542
565
|
IsString as IsString5,
|
|
@@ -545,11 +568,11 @@ import {
|
|
|
545
568
|
var FreelancerWorkShowcaseDto = class {
|
|
546
569
|
};
|
|
547
570
|
__decorateClass([
|
|
548
|
-
|
|
571
|
+
IsNotEmpty19({ message: "Please enter uuid." }),
|
|
549
572
|
IsUUID9()
|
|
550
573
|
], FreelancerWorkShowcaseDto.prototype, "uuid", 2);
|
|
551
574
|
__decorateClass([
|
|
552
|
-
|
|
575
|
+
IsNotEmpty19({ message: "Please enter likedin profile url." }),
|
|
553
576
|
IsString5(),
|
|
554
577
|
IsUrl(
|
|
555
578
|
{ require_protocol: false },
|
|
@@ -599,18 +622,18 @@ __decorateClass([
|
|
|
599
622
|
import {
|
|
600
623
|
IsUUID as IsUUID10,
|
|
601
624
|
IsString as IsString6,
|
|
602
|
-
IsNotEmpty as
|
|
625
|
+
IsNotEmpty as IsNotEmpty20,
|
|
603
626
|
IsIn as IsIn2,
|
|
604
627
|
ValidateIf
|
|
605
628
|
} from "class-validator";
|
|
606
629
|
var ClientProfileQuestionDto = class {
|
|
607
630
|
};
|
|
608
631
|
__decorateClass([
|
|
609
|
-
|
|
632
|
+
IsNotEmpty20({ message: "Please enter uuid." }),
|
|
610
633
|
IsUUID10()
|
|
611
634
|
], ClientProfileQuestionDto.prototype, "uuid", 2);
|
|
612
635
|
__decorateClass([
|
|
613
|
-
|
|
636
|
+
IsNotEmpty20({ message: "Please enter question slug." }),
|
|
614
637
|
IsString6(),
|
|
615
638
|
IsIn2([
|
|
616
639
|
"skills",
|
|
@@ -621,17 +644,17 @@ __decorateClass([
|
|
|
621
644
|
])
|
|
622
645
|
], ClientProfileQuestionDto.prototype, "question_slug", 2);
|
|
623
646
|
__decorateClass([
|
|
624
|
-
|
|
647
|
+
IsNotEmpty20({ message: "Please enter answer." })
|
|
625
648
|
], ClientProfileQuestionDto.prototype, "answer", 2);
|
|
626
649
|
__decorateClass([
|
|
627
650
|
ValidateIf((o) => o.questionSlug === "foundUsOn" && o.answer === "OTHER"),
|
|
628
|
-
|
|
651
|
+
IsNotEmpty20({ message: "Please enter foundUsOnDetail if answer is OTHER." }),
|
|
629
652
|
IsString6()
|
|
630
653
|
], ClientProfileQuestionDto.prototype, "foundUsOnDetail", 2);
|
|
631
654
|
|
|
632
655
|
// src/modules/onboarding/dto/client-create-account.dto.ts
|
|
633
656
|
import {
|
|
634
|
-
IsNotEmpty as
|
|
657
|
+
IsNotEmpty as IsNotEmpty21,
|
|
635
658
|
IsEmail as IsEmail3,
|
|
636
659
|
Matches as Matches4,
|
|
637
660
|
MinLength as MinLength4,
|
|
@@ -641,24 +664,24 @@ import {
|
|
|
641
664
|
var ClientCreateAccountDto = class {
|
|
642
665
|
};
|
|
643
666
|
__decorateClass([
|
|
644
|
-
|
|
667
|
+
IsNotEmpty21({ message: "Please enter first name." }),
|
|
645
668
|
IsString7({ message: "Please enter valid first name." })
|
|
646
669
|
], ClientCreateAccountDto.prototype, "firstName", 2);
|
|
647
670
|
__decorateClass([
|
|
648
|
-
|
|
671
|
+
IsNotEmpty21({ message: "Please enter last name." }),
|
|
649
672
|
IsString7({ message: "Please enter valid last name." })
|
|
650
673
|
], ClientCreateAccountDto.prototype, "lastName", 2);
|
|
651
674
|
__decorateClass([
|
|
652
|
-
|
|
675
|
+
IsNotEmpty21({ message: "Please enter email." }),
|
|
653
676
|
IsEmail3(),
|
|
654
677
|
IsBusinessEmail()
|
|
655
678
|
], ClientCreateAccountDto.prototype, "email", 2);
|
|
656
679
|
__decorateClass([
|
|
657
|
-
|
|
680
|
+
IsNotEmpty21({ message: "Please enter company name." }),
|
|
658
681
|
IsString7({ message: "Please enter valid company name." })
|
|
659
682
|
], ClientCreateAccountDto.prototype, "companyName", 2);
|
|
660
683
|
__decorateClass([
|
|
661
|
-
|
|
684
|
+
IsNotEmpty21({ message: "Please enter password." }),
|
|
662
685
|
MinLength4(6),
|
|
663
686
|
MaxLength4(32),
|
|
664
687
|
Matches4(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
@@ -666,7 +689,7 @@ __decorateClass([
|
|
|
666
689
|
})
|
|
667
690
|
], ClientCreateAccountDto.prototype, "password", 2);
|
|
668
691
|
__decorateClass([
|
|
669
|
-
|
|
692
|
+
IsNotEmpty21({ message: "Please enter confirm password." }),
|
|
670
693
|
Match("password", { message: "Passwords do not match" })
|
|
671
694
|
], ClientCreateAccountDto.prototype, "confirmPassword", 2);
|
|
672
695
|
|
|
@@ -689,33 +712,33 @@ var SUBADMIN_PATTERN = {
|
|
|
689
712
|
|
|
690
713
|
// src/modules/user/subadmin/dto/create-subadmin.dto.ts
|
|
691
714
|
import {
|
|
692
|
-
IsNotEmpty as
|
|
715
|
+
IsNotEmpty as IsNotEmpty22
|
|
693
716
|
} from "class-validator";
|
|
694
717
|
var CreateSubAdminDto = class {
|
|
695
718
|
};
|
|
696
719
|
__decorateClass([
|
|
697
|
-
|
|
720
|
+
IsNotEmpty22({ message: "Please enter username." })
|
|
698
721
|
], CreateSubAdminDto.prototype, "userName", 2);
|
|
699
722
|
__decorateClass([
|
|
700
|
-
|
|
723
|
+
IsNotEmpty22({ message: "Please enter first name." })
|
|
701
724
|
], CreateSubAdminDto.prototype, "firstName", 2);
|
|
702
725
|
__decorateClass([
|
|
703
|
-
|
|
726
|
+
IsNotEmpty22({ message: "Please enter last name." })
|
|
704
727
|
], CreateSubAdminDto.prototype, "lastName", 2);
|
|
705
728
|
__decorateClass([
|
|
706
|
-
|
|
729
|
+
IsNotEmpty22({ message: "Please enter email." })
|
|
707
730
|
], CreateSubAdminDto.prototype, "email", 2);
|
|
708
731
|
__decorateClass([
|
|
709
|
-
|
|
732
|
+
IsNotEmpty22({ message: "Please enter mobile Code." })
|
|
710
733
|
], CreateSubAdminDto.prototype, "mobileCode", 2);
|
|
711
734
|
__decorateClass([
|
|
712
|
-
|
|
735
|
+
IsNotEmpty22({ message: "Please enter mobile number." })
|
|
713
736
|
], CreateSubAdminDto.prototype, "mobile", 2);
|
|
714
737
|
__decorateClass([
|
|
715
|
-
|
|
738
|
+
IsNotEmpty22({ message: "Please enter the password." })
|
|
716
739
|
], CreateSubAdminDto.prototype, "password", 2);
|
|
717
740
|
__decorateClass([
|
|
718
|
-
|
|
741
|
+
IsNotEmpty22({ message: "Please Select Roles." })
|
|
719
742
|
], CreateSubAdminDto.prototype, "roleIds", 2);
|
|
720
743
|
|
|
721
744
|
// src/modules/user/subadmin/dto/update-subadmin-status.dto.ts
|
|
@@ -727,32 +750,32 @@ __decorateClass([
|
|
|
727
750
|
], UpdateSubAdminAccountStatusDto.prototype, "accountStatus", 2);
|
|
728
751
|
|
|
729
752
|
// src/modules/user/subadmin/dto/update-subadmin.dto.ts
|
|
730
|
-
import { IsNotEmpty as
|
|
753
|
+
import { IsNotEmpty as IsNotEmpty23 } from "class-validator";
|
|
731
754
|
var UpdateSubAdminDto = class {
|
|
732
755
|
};
|
|
733
756
|
__decorateClass([
|
|
734
|
-
|
|
757
|
+
IsNotEmpty23({ message: "Please enter username." })
|
|
735
758
|
], UpdateSubAdminDto.prototype, "userName", 2);
|
|
736
759
|
__decorateClass([
|
|
737
|
-
|
|
760
|
+
IsNotEmpty23({ message: "Please enter first name." })
|
|
738
761
|
], UpdateSubAdminDto.prototype, "firstName", 2);
|
|
739
762
|
__decorateClass([
|
|
740
|
-
|
|
763
|
+
IsNotEmpty23({ message: "Please enter last name." })
|
|
741
764
|
], UpdateSubAdminDto.prototype, "lastName", 2);
|
|
742
765
|
__decorateClass([
|
|
743
|
-
|
|
766
|
+
IsNotEmpty23({ message: "Please enter email." })
|
|
744
767
|
], UpdateSubAdminDto.prototype, "email", 2);
|
|
745
768
|
__decorateClass([
|
|
746
|
-
|
|
769
|
+
IsNotEmpty23({ message: "Please enter mobile Code." })
|
|
747
770
|
], UpdateSubAdminDto.prototype, "mobileCode", 2);
|
|
748
771
|
__decorateClass([
|
|
749
|
-
|
|
772
|
+
IsNotEmpty23({ message: "Please enter mobile number." })
|
|
750
773
|
], UpdateSubAdminDto.prototype, "mobile", 2);
|
|
751
774
|
__decorateClass([
|
|
752
|
-
|
|
775
|
+
IsNotEmpty23({ message: "Please enter the password." })
|
|
753
776
|
], UpdateSubAdminDto.prototype, "password", 2);
|
|
754
777
|
__decorateClass([
|
|
755
|
-
|
|
778
|
+
IsNotEmpty23({ message: "Please Select Roles." })
|
|
756
779
|
], UpdateSubAdminDto.prototype, "roleIds", 2);
|
|
757
780
|
|
|
758
781
|
// src/modules/user/client-profile/pattern/pattern.ts
|
|
@@ -768,7 +791,7 @@ var CLIENT_PROFILE_PATTERN = {
|
|
|
768
791
|
// src/modules/user/client-profile/dto/update-client-profile.dto.ts
|
|
769
792
|
import {
|
|
770
793
|
IsString as IsString9,
|
|
771
|
-
IsNotEmpty as
|
|
794
|
+
IsNotEmpty as IsNotEmpty24,
|
|
772
795
|
IsEmail as IsEmail4,
|
|
773
796
|
Length as Length2,
|
|
774
797
|
IsUrl as IsUrl2
|
|
@@ -776,38 +799,38 @@ import {
|
|
|
776
799
|
var UpdateCompanyProfileDto = class {
|
|
777
800
|
};
|
|
778
801
|
__decorateClass([
|
|
779
|
-
|
|
802
|
+
IsNotEmpty24({ message: "Please enter company name." }),
|
|
780
803
|
IsString9({ message: "Company name must be a string." }),
|
|
781
804
|
Length2(2, 255, {
|
|
782
805
|
message: "Company name must be between 2 and 255 characters"
|
|
783
806
|
})
|
|
784
807
|
], UpdateCompanyProfileDto.prototype, "companyName", 2);
|
|
785
808
|
__decorateClass([
|
|
786
|
-
|
|
809
|
+
IsNotEmpty24({ message: "Please enter company website url." }),
|
|
787
810
|
IsUrl2({}, { message: "Invalid website URL format" })
|
|
788
811
|
], UpdateCompanyProfileDto.prototype, "webSite", 2);
|
|
789
812
|
__decorateClass([
|
|
790
|
-
|
|
813
|
+
IsNotEmpty24({ message: "Please enter company address." }),
|
|
791
814
|
IsString9({ message: "Company address must be a string" }),
|
|
792
815
|
Length2(5, 1e3, { message: "Address must be between 5 and 1000 characters" })
|
|
793
816
|
], UpdateCompanyProfileDto.prototype, "companyAddress", 2);
|
|
794
817
|
__decorateClass([
|
|
795
|
-
|
|
818
|
+
IsNotEmpty24({ message: "Please enter mobile code." }),
|
|
796
819
|
IsString9({ message: "Mobile Code must be a string" })
|
|
797
820
|
], UpdateCompanyProfileDto.prototype, "mobileCode", 2);
|
|
798
821
|
// @Matches(/^(\+1\s?)?(\(?\d{3}\)?[\s.-]?)?\d{3}[\s.-]?\d{4}$/, {
|
|
799
822
|
// message: "Please enter a valid US phone number",
|
|
800
823
|
// })
|
|
801
824
|
__decorateClass([
|
|
802
|
-
|
|
825
|
+
IsNotEmpty24({ message: "Please enter phone number." }),
|
|
803
826
|
IsString9({ message: "Please enter valid phone number." })
|
|
804
827
|
], UpdateCompanyProfileDto.prototype, "phoneNumber", 2);
|
|
805
828
|
__decorateClass([
|
|
806
|
-
|
|
829
|
+
IsNotEmpty24({ message: "Please enter email." }),
|
|
807
830
|
IsEmail4()
|
|
808
831
|
], UpdateCompanyProfileDto.prototype, "email", 2);
|
|
809
832
|
__decorateClass([
|
|
810
|
-
|
|
833
|
+
IsNotEmpty24({ message: "Please enter something about company." }),
|
|
811
834
|
IsString9({ message: "About company must be a string." })
|
|
812
835
|
], UpdateCompanyProfileDto.prototype, "aboutCompany", 2);
|
|
813
836
|
|
|
@@ -816,7 +839,7 @@ import {
|
|
|
816
839
|
IsString as IsString10,
|
|
817
840
|
MinLength as MinLength5,
|
|
818
841
|
Matches as Matches6,
|
|
819
|
-
IsNotEmpty as
|
|
842
|
+
IsNotEmpty as IsNotEmpty25
|
|
820
843
|
} from "class-validator";
|
|
821
844
|
var ClientChangePasswordDto = class {
|
|
822
845
|
};
|
|
@@ -828,7 +851,7 @@ __decorateClass([
|
|
|
828
851
|
})
|
|
829
852
|
], ClientChangePasswordDto.prototype, "newPassword", 2);
|
|
830
853
|
__decorateClass([
|
|
831
|
-
|
|
854
|
+
IsNotEmpty25({ message: "Please enter confirm password." }),
|
|
832
855
|
Match("newPassword", { message: "Passwords do not match" })
|
|
833
856
|
], ClientChangePasswordDto.prototype, "confirmPassword", 2);
|
|
834
857
|
|
|
@@ -842,23 +865,23 @@ var ASSESSMENT_QUESTION_PATTERN = {
|
|
|
842
865
|
|
|
843
866
|
// src/modules/question/dto/create-question.dto.ts
|
|
844
867
|
import {
|
|
845
|
-
IsNotEmpty as
|
|
868
|
+
IsNotEmpty as IsNotEmpty26,
|
|
846
869
|
IsOptional as IsOptional4,
|
|
847
870
|
IsBoolean as IsBoolean2
|
|
848
871
|
} from "class-validator";
|
|
849
872
|
var CreateQuestionDto = class {
|
|
850
873
|
};
|
|
851
874
|
__decorateClass([
|
|
852
|
-
|
|
875
|
+
IsNotEmpty26({ message: "Please enter unique id." })
|
|
853
876
|
], CreateQuestionDto.prototype, "questionId", 2);
|
|
854
877
|
__decorateClass([
|
|
855
|
-
|
|
878
|
+
IsNotEmpty26({ message: "Please enter question." })
|
|
856
879
|
], CreateQuestionDto.prototype, "question", 2);
|
|
857
880
|
__decorateClass([
|
|
858
|
-
|
|
881
|
+
IsNotEmpty26({ message: "Please enter for whom the question is." })
|
|
859
882
|
], CreateQuestionDto.prototype, "questionFor", 2);
|
|
860
883
|
__decorateClass([
|
|
861
|
-
|
|
884
|
+
IsNotEmpty26({ message: "Please enter options." })
|
|
862
885
|
], CreateQuestionDto.prototype, "options", 2);
|
|
863
886
|
__decorateClass([
|
|
864
887
|
IsOptional4(),
|
|
@@ -893,12 +916,12 @@ var JOB_PATTERN = {
|
|
|
893
916
|
// src/modules/job/dto/job-basic-information.dto.ts
|
|
894
917
|
import {
|
|
895
918
|
IsString as IsString11,
|
|
896
|
-
IsNotEmpty as
|
|
919
|
+
IsNotEmpty as IsNotEmpty27,
|
|
897
920
|
IsArray,
|
|
898
921
|
ArrayNotEmpty,
|
|
899
922
|
IsNumber,
|
|
900
923
|
IsOptional as IsOptional5,
|
|
901
|
-
IsEnum as
|
|
924
|
+
IsEnum as IsEnum8,
|
|
902
925
|
Min
|
|
903
926
|
} from "class-validator";
|
|
904
927
|
import { Type } from "class-transformer";
|
|
@@ -917,7 +940,7 @@ var EmploymentType = /* @__PURE__ */ ((EmploymentType2) => {
|
|
|
917
940
|
var JobBasicInformationDto = class {
|
|
918
941
|
};
|
|
919
942
|
__decorateClass([
|
|
920
|
-
|
|
943
|
+
IsNotEmpty27({ message: "Please enter job role" }),
|
|
921
944
|
IsString11({ message: "Job role must be a string" })
|
|
922
945
|
], JobBasicInformationDto.prototype, "jobRole", 2);
|
|
923
946
|
__decorateClass([
|
|
@@ -936,7 +959,7 @@ __decorateClass([
|
|
|
936
959
|
Type(() => Number)
|
|
937
960
|
], JobBasicInformationDto.prototype, "openings", 2);
|
|
938
961
|
__decorateClass([
|
|
939
|
-
|
|
962
|
+
IsEnum8(JobLocation, {
|
|
940
963
|
message: `Location must be one of: ${Object.values(JobLocation).join(
|
|
941
964
|
", "
|
|
942
965
|
)}`
|
|
@@ -955,7 +978,7 @@ __decorateClass([
|
|
|
955
978
|
Type(() => Number)
|
|
956
979
|
], JobBasicInformationDto.prototype, "cityId", 2);
|
|
957
980
|
__decorateClass([
|
|
958
|
-
|
|
981
|
+
IsEnum8(EmploymentType, {
|
|
959
982
|
message: `Type of employment must be one of: ${Object.values(
|
|
960
983
|
EmploymentType
|
|
961
984
|
).join(", ")}`
|
|
@@ -975,11 +998,11 @@ __decorateClass([
|
|
|
975
998
|
Type(() => Number)
|
|
976
999
|
], JobBasicInformationDto.prototype, "expectedSalaryTo", 2);
|
|
977
1000
|
__decorateClass([
|
|
978
|
-
|
|
1001
|
+
IsNotEmpty27({ message: "Please enter start date" }),
|
|
979
1002
|
IsString11({ message: "Start date must be valid" })
|
|
980
1003
|
], JobBasicInformationDto.prototype, "tentativeStartDate", 2);
|
|
981
1004
|
__decorateClass([
|
|
982
|
-
|
|
1005
|
+
IsNotEmpty27({ message: "Please enter end date" }),
|
|
983
1006
|
IsString11({ message: "End date must be valid" })
|
|
984
1007
|
], JobBasicInformationDto.prototype, "tentativeEndDate", 2);
|
|
985
1008
|
__decorateClass([
|
|
@@ -991,15 +1014,15 @@ __decorateClass([
|
|
|
991
1014
|
IsOptional5()
|
|
992
1015
|
], JobBasicInformationDto.prototype, "candidateCommunicationSkills", 2);
|
|
993
1016
|
__decorateClass([
|
|
994
|
-
|
|
1017
|
+
IsNotEmpty27({ message: "Please enter the academic qualification" }),
|
|
995
1018
|
IsString11({ message: "Academic qualification must be a string" })
|
|
996
1019
|
], JobBasicInformationDto.prototype, "academicQualification", 2);
|
|
997
1020
|
__decorateClass([
|
|
998
|
-
|
|
1021
|
+
IsNotEmpty27({ message: "Please enter the years of experience" }),
|
|
999
1022
|
IsString11({ message: "Years of experience must be a string" })
|
|
1000
1023
|
], JobBasicInformationDto.prototype, "yearsOfExperience", 2);
|
|
1001
1024
|
__decorateClass([
|
|
1002
|
-
|
|
1025
|
+
IsNotEmpty27({ message: "Please enter the business industry" }),
|
|
1003
1026
|
IsString11({ message: "Business industry must be a string" })
|
|
1004
1027
|
], JobBasicInformationDto.prototype, "businessIndustry", 2);
|
|
1005
1028
|
|
|
@@ -1014,17 +1037,17 @@ __decorateClass([
|
|
|
1014
1037
|
], JobAdditionalCommentDto.prototype, "additionalComment", 2);
|
|
1015
1038
|
|
|
1016
1039
|
// src/modules/job/dto/job-description.dto.ts
|
|
1017
|
-
import { IsString as IsString13, IsNotEmpty as
|
|
1040
|
+
import { IsString as IsString13, IsNotEmpty as IsNotEmpty28, MaxLength as MaxLength6 } from "class-validator";
|
|
1018
1041
|
var JobDescriptionDto = class {
|
|
1019
1042
|
};
|
|
1020
1043
|
__decorateClass([
|
|
1021
|
-
|
|
1044
|
+
IsNotEmpty28({ message: "Please enter job description" }),
|
|
1022
1045
|
IsString13({ message: "Description must be a string" }),
|
|
1023
1046
|
MaxLength6(5e3, { message: "Description must not exceed 5000 characters" })
|
|
1024
1047
|
], JobDescriptionDto.prototype, "description", 2);
|
|
1025
1048
|
|
|
1026
1049
|
// src/modules/job/dto/job-status.dto.ts
|
|
1027
|
-
import { IsEnum as
|
|
1050
|
+
import { IsEnum as IsEnum9, IsNotEmpty as IsNotEmpty29 } from "class-validator";
|
|
1028
1051
|
var JobStatus = /* @__PURE__ */ ((JobStatus2) => {
|
|
1029
1052
|
JobStatus2["ACTIVE"] = "ACTIVE";
|
|
1030
1053
|
JobStatus2["OPEN"] = "OPEN";
|
|
@@ -1036,8 +1059,8 @@ var JobStatus = /* @__PURE__ */ ((JobStatus2) => {
|
|
|
1036
1059
|
var JobStatusDto = class {
|
|
1037
1060
|
};
|
|
1038
1061
|
__decorateClass([
|
|
1039
|
-
|
|
1040
|
-
|
|
1062
|
+
IsNotEmpty29({ message: "Please provide a job status" }),
|
|
1063
|
+
IsEnum9(JobStatus, {
|
|
1041
1064
|
message: `Status must be one of: ${Object.values(JobStatus).join(", ")}`
|
|
1042
1065
|
})
|
|
1043
1066
|
], JobStatusDto.prototype, "status", 2);
|
|
@@ -1067,7 +1090,7 @@ var PROFILE_PATTERN = {
|
|
|
1067
1090
|
// src/modules/user/freelancer-profile/dto/freelancer-change-password.dto.ts
|
|
1068
1091
|
import {
|
|
1069
1092
|
IsString as IsString14,
|
|
1070
|
-
IsNotEmpty as
|
|
1093
|
+
IsNotEmpty as IsNotEmpty30,
|
|
1071
1094
|
MaxLength as MaxLength7,
|
|
1072
1095
|
MinLength as MinLength6,
|
|
1073
1096
|
Matches as Matches7
|
|
@@ -1075,11 +1098,11 @@ import {
|
|
|
1075
1098
|
var FreelancerChangePasswordDto = class {
|
|
1076
1099
|
};
|
|
1077
1100
|
__decorateClass([
|
|
1078
|
-
|
|
1101
|
+
IsNotEmpty30({ message: "Please enter Old Password." }),
|
|
1079
1102
|
IsString14()
|
|
1080
1103
|
], FreelancerChangePasswordDto.prototype, "oldPassword", 2);
|
|
1081
1104
|
__decorateClass([
|
|
1082
|
-
|
|
1105
|
+
IsNotEmpty30({ message: "Please enter New Password." }),
|
|
1083
1106
|
IsString14(),
|
|
1084
1107
|
MinLength6(6),
|
|
1085
1108
|
MaxLength7(32),
|
|
@@ -1094,8 +1117,8 @@ import {
|
|
|
1094
1117
|
IsString as IsString15,
|
|
1095
1118
|
IsEmail as IsEmail5,
|
|
1096
1119
|
IsNumber as IsNumber2,
|
|
1097
|
-
IsEnum as
|
|
1098
|
-
IsNotEmpty as
|
|
1120
|
+
IsEnum as IsEnum10,
|
|
1121
|
+
IsNotEmpty as IsNotEmpty31
|
|
1099
1122
|
} from "class-validator";
|
|
1100
1123
|
var NatureOfWorkDto = /* @__PURE__ */ ((NatureOfWorkDto2) => {
|
|
1101
1124
|
NatureOfWorkDto2["FULLTIME"] = "FULLTIME";
|
|
@@ -1112,31 +1135,31 @@ var ModeOfWorkDto = /* @__PURE__ */ ((ModeOfWorkDto2) => {
|
|
|
1112
1135
|
var UpdateFreelancerProfileDto = class {
|
|
1113
1136
|
};
|
|
1114
1137
|
__decorateClass([
|
|
1115
|
-
|
|
1138
|
+
IsNotEmpty31({ message: "Please enter first name." }),
|
|
1116
1139
|
IsString15({ message: "Please enter valid first name." })
|
|
1117
1140
|
], UpdateFreelancerProfileDto.prototype, "firstName", 2);
|
|
1118
1141
|
__decorateClass([
|
|
1119
|
-
|
|
1142
|
+
IsNotEmpty31({ message: "Please enter last name." }),
|
|
1120
1143
|
IsString15({ message: "Please enter valid last name." })
|
|
1121
1144
|
], UpdateFreelancerProfileDto.prototype, "lastName", 2);
|
|
1122
1145
|
__decorateClass([
|
|
1123
|
-
|
|
1146
|
+
IsNotEmpty31({ message: "Please enter designation." }),
|
|
1124
1147
|
IsString15({ message: "Please enter valid designation." })
|
|
1125
1148
|
], UpdateFreelancerProfileDto.prototype, "designation", 2);
|
|
1126
1149
|
__decorateClass([
|
|
1127
|
-
|
|
1150
|
+
IsNotEmpty31({ message: "Please enter experience." }),
|
|
1128
1151
|
IsString15({ message: "Please enter valid experience." })
|
|
1129
1152
|
], UpdateFreelancerProfileDto.prototype, "experience", 2);
|
|
1130
1153
|
__decorateClass([
|
|
1131
|
-
|
|
1154
|
+
IsNotEmpty31({ message: "Please enter email id." }),
|
|
1132
1155
|
IsEmail5()
|
|
1133
1156
|
], UpdateFreelancerProfileDto.prototype, "email", 2);
|
|
1134
1157
|
__decorateClass([
|
|
1135
|
-
|
|
1158
|
+
IsNotEmpty31({ message: "Please enter mobile code." }),
|
|
1136
1159
|
IsString15({ message: "Please enter valid mobile code." })
|
|
1137
1160
|
], UpdateFreelancerProfileDto.prototype, "mobileCode", 2);
|
|
1138
1161
|
__decorateClass([
|
|
1139
|
-
|
|
1162
|
+
IsNotEmpty31({ message: "Please enter mobile number." }),
|
|
1140
1163
|
IsString15({ message: "Please enter valid mobile number." })
|
|
1141
1164
|
], UpdateFreelancerProfileDto.prototype, "mobile", 2);
|
|
1142
1165
|
__decorateClass([
|
|
@@ -1144,24 +1167,24 @@ __decorateClass([
|
|
|
1144
1167
|
IsNumber2()
|
|
1145
1168
|
], UpdateFreelancerProfileDto.prototype, "countryId", 2);
|
|
1146
1169
|
__decorateClass([
|
|
1147
|
-
|
|
1170
|
+
IsNotEmpty31({ message: "Please select currency." }),
|
|
1148
1171
|
IsString15({ message: "Please enter valid currency." })
|
|
1149
1172
|
], UpdateFreelancerProfileDto.prototype, "currency", 2);
|
|
1150
1173
|
__decorateClass([
|
|
1151
|
-
|
|
1174
|
+
IsNotEmpty31({ message: "Please enter expected hourly compensation." }),
|
|
1152
1175
|
IsString15({ message: "Please enter valid expected hourly compensation." })
|
|
1153
1176
|
], UpdateFreelancerProfileDto.prototype, "expectedHourlyCompensation", 2);
|
|
1154
1177
|
__decorateClass([
|
|
1155
|
-
|
|
1156
|
-
|
|
1178
|
+
IsNotEmpty31({ message: "Please select engagement type." }),
|
|
1179
|
+
IsEnum10(NatureOfWorkDto, {
|
|
1157
1180
|
message: `Engagement Type must be one of: ${Object.values(
|
|
1158
1181
|
NatureOfWorkDto
|
|
1159
1182
|
).join(", ")}`
|
|
1160
1183
|
})
|
|
1161
1184
|
], UpdateFreelancerProfileDto.prototype, "natureOfWork", 2);
|
|
1162
1185
|
__decorateClass([
|
|
1163
|
-
|
|
1164
|
-
|
|
1186
|
+
IsNotEmpty31({ message: "Please select mode of work." }),
|
|
1187
|
+
IsEnum10(ModeOfWorkDto, {
|
|
1165
1188
|
message: `Mode of work must be one of: ${Object.values(ModeOfWorkDto).join(
|
|
1166
1189
|
", "
|
|
1167
1190
|
)}`
|
|
@@ -1209,8 +1232,8 @@ var BANK_PATTERN = {
|
|
|
1209
1232
|
|
|
1210
1233
|
// src/modules/bank/dto/freelancer-bank-details.dto.ts
|
|
1211
1234
|
import {
|
|
1212
|
-
IsEnum as
|
|
1213
|
-
IsNotEmpty as
|
|
1235
|
+
IsEnum as IsEnum11,
|
|
1236
|
+
IsNotEmpty as IsNotEmpty32,
|
|
1214
1237
|
IsOptional as IsOptional8,
|
|
1215
1238
|
ValidateIf as ValidateIf2
|
|
1216
1239
|
} from "class-validator";
|
|
@@ -1222,47 +1245,47 @@ var BankAccountScope = /* @__PURE__ */ ((BankAccountScope2) => {
|
|
|
1222
1245
|
var FreelancerBankDetailsDto = class {
|
|
1223
1246
|
};
|
|
1224
1247
|
__decorateClass([
|
|
1225
|
-
|
|
1248
|
+
IsNotEmpty32({ message: "Please enter Account Holder Name." })
|
|
1226
1249
|
], FreelancerBankDetailsDto.prototype, "name", 2);
|
|
1227
1250
|
__decorateClass([
|
|
1228
|
-
|
|
1251
|
+
IsNotEmpty32({ message: "Please enter Mobile Number." })
|
|
1229
1252
|
], FreelancerBankDetailsDto.prototype, "mobile", 2);
|
|
1230
1253
|
__decorateClass([
|
|
1231
|
-
|
|
1254
|
+
IsNotEmpty32({ message: "Please enter Email." })
|
|
1232
1255
|
], FreelancerBankDetailsDto.prototype, "email", 2);
|
|
1233
1256
|
__decorateClass([
|
|
1234
1257
|
IsOptional8()
|
|
1235
1258
|
], FreelancerBankDetailsDto.prototype, "address", 2);
|
|
1236
1259
|
__decorateClass([
|
|
1237
|
-
|
|
1260
|
+
IsNotEmpty32({ message: "Please enter Account Number." })
|
|
1238
1261
|
], FreelancerBankDetailsDto.prototype, "accountNumber", 2);
|
|
1239
1262
|
__decorateClass([
|
|
1240
|
-
|
|
1263
|
+
IsNotEmpty32({ message: "Please enter Bank Name." })
|
|
1241
1264
|
], FreelancerBankDetailsDto.prototype, "bankName", 2);
|
|
1242
1265
|
__decorateClass([
|
|
1243
|
-
|
|
1266
|
+
IsNotEmpty32({ message: "Please enter Branch Name." })
|
|
1244
1267
|
], FreelancerBankDetailsDto.prototype, "branchName", 2);
|
|
1245
1268
|
__decorateClass([
|
|
1246
1269
|
ValidateIf2((dto) => dto.accountScope === "DOMESTIC"),
|
|
1247
|
-
|
|
1270
|
+
IsNotEmpty32({ message: "IFSC Code is required for DOMESTIC accounts." })
|
|
1248
1271
|
], FreelancerBankDetailsDto.prototype, "ifscCode", 2);
|
|
1249
1272
|
__decorateClass([
|
|
1250
1273
|
ValidateIf2((dto) => dto.accountScope === "INTERNATIONAL"),
|
|
1251
|
-
|
|
1274
|
+
IsNotEmpty32({ message: "Routing Number/Sort Code is required for INTERNATIONAL accounts." })
|
|
1252
1275
|
], FreelancerBankDetailsDto.prototype, "routingNo", 2);
|
|
1253
1276
|
__decorateClass([
|
|
1254
1277
|
ValidateIf2((dto) => dto.accountScope === "INTERNATIONAL"),
|
|
1255
|
-
|
|
1278
|
+
IsNotEmpty32({ message: "ABA Number is required for INTERNATIONAL accounts." })
|
|
1256
1279
|
], FreelancerBankDetailsDto.prototype, "abaNumber", 2);
|
|
1257
1280
|
__decorateClass([
|
|
1258
1281
|
ValidateIf2((dto) => dto.accountScope === "INTERNATIONAL"),
|
|
1259
|
-
|
|
1282
|
+
IsNotEmpty32({ message: "IBAN is required for INTERNATIONAL accounts." })
|
|
1260
1283
|
], FreelancerBankDetailsDto.prototype, "iban", 2);
|
|
1261
1284
|
__decorateClass([
|
|
1262
1285
|
IsOptional8()
|
|
1263
1286
|
], FreelancerBankDetailsDto.prototype, "accountType", 2);
|
|
1264
1287
|
__decorateClass([
|
|
1265
|
-
|
|
1288
|
+
IsEnum11(BankAccountScope, {
|
|
1266
1289
|
message: `Type of Account Scope must be one of: ${Object.values(
|
|
1267
1290
|
BankAccountScope
|
|
1268
1291
|
).join(", ")}`
|
|
@@ -1284,7 +1307,7 @@ var SYSTEM_PREFERENCES_PATTERN = {
|
|
|
1284
1307
|
// src/modules/system-preference/dto/system-preference.dto.ts
|
|
1285
1308
|
import {
|
|
1286
1309
|
IsBoolean as IsBoolean3,
|
|
1287
|
-
IsEnum as
|
|
1310
|
+
IsEnum as IsEnum12
|
|
1288
1311
|
} from "class-validator";
|
|
1289
1312
|
var SystemPreferenceKey = /* @__PURE__ */ ((SystemPreferenceKey2) => {
|
|
1290
1313
|
SystemPreferenceKey2["EMAIL_NOTIFICATION"] = "EMAIL_NOTIFICATION";
|
|
@@ -1297,7 +1320,7 @@ __decorateClass([
|
|
|
1297
1320
|
IsBoolean3()
|
|
1298
1321
|
], SystemPreferenceDto.prototype, "value", 2);
|
|
1299
1322
|
__decorateClass([
|
|
1300
|
-
|
|
1323
|
+
IsEnum12(SystemPreferenceKey, {
|
|
1301
1324
|
message: `key must be one of: ${Object.values(
|
|
1302
1325
|
SystemPreferenceKey
|
|
1303
1326
|
).join(", ")}`
|
|
@@ -1318,9 +1341,9 @@ var RATING_PATTERN = {
|
|
|
1318
1341
|
|
|
1319
1342
|
// src/modules/rating/dto/add.rating.dto.ts
|
|
1320
1343
|
import {
|
|
1321
|
-
IsEnum as
|
|
1344
|
+
IsEnum as IsEnum13,
|
|
1322
1345
|
IsInt,
|
|
1323
|
-
IsNotEmpty as
|
|
1346
|
+
IsNotEmpty as IsNotEmpty33,
|
|
1324
1347
|
IsOptional as IsOptional9,
|
|
1325
1348
|
IsString as IsString16,
|
|
1326
1349
|
Max,
|
|
@@ -3718,10 +3741,10 @@ var CreateRatingDto = class {
|
|
|
3718
3741
|
};
|
|
3719
3742
|
__decorateClass([
|
|
3720
3743
|
IsInt({ message: "Reviewee ID must be a valid integer" }),
|
|
3721
|
-
|
|
3744
|
+
IsNotEmpty33({ message: "Reviewee ID is required" })
|
|
3722
3745
|
], CreateRatingDto.prototype, "revieweeId", 2);
|
|
3723
3746
|
__decorateClass([
|
|
3724
|
-
|
|
3747
|
+
IsEnum13(RatingTypeEnum, {
|
|
3725
3748
|
message: `Rating type must be one of: ${Object.values(RatingTypeEnum).join(", ")}`
|
|
3726
3749
|
})
|
|
3727
3750
|
], CreateRatingDto.prototype, "ratingType", 2);
|
|
@@ -3748,17 +3771,17 @@ var COMPANY_ROLES_PATTERNS = {
|
|
|
3748
3771
|
};
|
|
3749
3772
|
|
|
3750
3773
|
// src/modules/company-role/dto/create-company-role.dto.ts
|
|
3751
|
-
import { ArrayNotEmpty as ArrayNotEmpty2, IsArray as IsArray2, IsBoolean as IsBoolean4, IsInt as IsInt2, IsNotEmpty as
|
|
3774
|
+
import { ArrayNotEmpty as ArrayNotEmpty2, IsArray as IsArray2, IsBoolean as IsBoolean4, IsInt as IsInt2, IsNotEmpty as IsNotEmpty34, IsOptional as IsOptional10 } from "class-validator";
|
|
3752
3775
|
var CreateCompanyRoleDto = class {
|
|
3753
3776
|
};
|
|
3754
3777
|
__decorateClass([
|
|
3755
|
-
|
|
3778
|
+
IsNotEmpty34({ message: "Please enter company role name." })
|
|
3756
3779
|
], CreateCompanyRoleDto.prototype, "name", 2);
|
|
3757
3780
|
__decorateClass([
|
|
3758
|
-
|
|
3781
|
+
IsNotEmpty34({ message: "Please enter company role slug" })
|
|
3759
3782
|
], CreateCompanyRoleDto.prototype, "slug", 2);
|
|
3760
3783
|
__decorateClass([
|
|
3761
|
-
|
|
3784
|
+
IsNotEmpty34({ message: "Please enter description" })
|
|
3762
3785
|
], CreateCompanyRoleDto.prototype, "description", 2);
|
|
3763
3786
|
__decorateClass([
|
|
3764
3787
|
IsArray2({ message: "Permission IDs must be an array." }),
|
|
@@ -3771,17 +3794,17 @@ __decorateClass([
|
|
|
3771
3794
|
], CreateCompanyRoleDto.prototype, "isActive", 2);
|
|
3772
3795
|
|
|
3773
3796
|
// src/modules/company-role/dto/update-company-role.dto.ts
|
|
3774
|
-
import { ArrayNotEmpty as ArrayNotEmpty3, IsArray as IsArray3, IsBoolean as IsBoolean5, IsInt as IsInt3, IsNotEmpty as
|
|
3797
|
+
import { ArrayNotEmpty as ArrayNotEmpty3, IsArray as IsArray3, IsBoolean as IsBoolean5, IsInt as IsInt3, IsNotEmpty as IsNotEmpty35, IsOptional as IsOptional11 } from "class-validator";
|
|
3775
3798
|
var UpdateCompanyRoleDto = class {
|
|
3776
3799
|
};
|
|
3777
3800
|
__decorateClass([
|
|
3778
|
-
|
|
3801
|
+
IsNotEmpty35({ message: "Please enter company name." })
|
|
3779
3802
|
], UpdateCompanyRoleDto.prototype, "name", 2);
|
|
3780
3803
|
__decorateClass([
|
|
3781
|
-
|
|
3804
|
+
IsNotEmpty35({ message: "Please enter slug" })
|
|
3782
3805
|
], UpdateCompanyRoleDto.prototype, "slug", 2);
|
|
3783
3806
|
__decorateClass([
|
|
3784
|
-
|
|
3807
|
+
IsNotEmpty35({ message: "Please enter description" })
|
|
3785
3808
|
], UpdateCompanyRoleDto.prototype, "description", 2);
|
|
3786
3809
|
__decorateClass([
|
|
3787
3810
|
IsArray3({ message: "Permission IDs must be an array." }),
|
|
@@ -3810,7 +3833,7 @@ var FREELANCER_EXPERIENCE_PATTERN = {
|
|
|
3810
3833
|
// src/modules/user/freelancer-experience/dto/freelancer-experience.dto.ts
|
|
3811
3834
|
import {
|
|
3812
3835
|
ArrayMinSize,
|
|
3813
|
-
IsNotEmpty as
|
|
3836
|
+
IsNotEmpty as IsNotEmpty36,
|
|
3814
3837
|
IsOptional as IsOptional12,
|
|
3815
3838
|
IsString as IsString19,
|
|
3816
3839
|
MaxLength as MaxLength9,
|
|
@@ -3823,15 +3846,15 @@ __decorateClass([
|
|
|
3823
3846
|
IsOptional12()
|
|
3824
3847
|
], ExperienceDto.prototype, "uuid", 2);
|
|
3825
3848
|
__decorateClass([
|
|
3826
|
-
|
|
3849
|
+
IsNotEmpty36(),
|
|
3827
3850
|
IsString19()
|
|
3828
3851
|
], ExperienceDto.prototype, "companyName", 2);
|
|
3829
3852
|
__decorateClass([
|
|
3830
|
-
|
|
3853
|
+
IsNotEmpty36(),
|
|
3831
3854
|
IsString19()
|
|
3832
3855
|
], ExperienceDto.prototype, "designation", 2);
|
|
3833
3856
|
__decorateClass([
|
|
3834
|
-
|
|
3857
|
+
IsNotEmpty36(),
|
|
3835
3858
|
IsString19()
|
|
3836
3859
|
], ExperienceDto.prototype, "jobDuration", 2);
|
|
3837
3860
|
__decorateClass([
|
|
@@ -3860,14 +3883,14 @@ var COMPANY_MEMBERS_PATTERNS = {
|
|
|
3860
3883
|
};
|
|
3861
3884
|
|
|
3862
3885
|
// src/modules/company-member/dto/create-company-member.dto.ts
|
|
3863
|
-
import { ArrayNotEmpty as ArrayNotEmpty4, IsArray as IsArray4, IsInt as IsInt4, IsNotEmpty as
|
|
3886
|
+
import { ArrayNotEmpty as ArrayNotEmpty4, IsArray as IsArray4, IsInt as IsInt4, IsNotEmpty as IsNotEmpty37 } from "class-validator";
|
|
3864
3887
|
var CreateCompanyMemberDto = class {
|
|
3865
3888
|
};
|
|
3866
3889
|
__decorateClass([
|
|
3867
|
-
|
|
3890
|
+
IsNotEmpty37({ message: "Please enter name." })
|
|
3868
3891
|
], CreateCompanyMemberDto.prototype, "name", 2);
|
|
3869
3892
|
__decorateClass([
|
|
3870
|
-
|
|
3893
|
+
IsNotEmpty37({ message: "Please enter email" })
|
|
3871
3894
|
], CreateCompanyMemberDto.prototype, "email", 2);
|
|
3872
3895
|
__decorateClass([
|
|
3873
3896
|
IsArray4({ message: "Role IDs must be an array." }),
|
|
@@ -3876,14 +3899,14 @@ __decorateClass([
|
|
|
3876
3899
|
], CreateCompanyMemberDto.prototype, "roleIds", 2);
|
|
3877
3900
|
|
|
3878
3901
|
// src/modules/company-member/dto/update-company-member.dto.ts
|
|
3879
|
-
import { ArrayNotEmpty as ArrayNotEmpty5, IsArray as IsArray5, IsInt as IsInt5, IsNotEmpty as
|
|
3902
|
+
import { ArrayNotEmpty as ArrayNotEmpty5, IsArray as IsArray5, IsInt as IsInt5, IsNotEmpty as IsNotEmpty38 } from "class-validator";
|
|
3880
3903
|
var UpdateCompanyMemberDto = class {
|
|
3881
3904
|
};
|
|
3882
3905
|
__decorateClass([
|
|
3883
|
-
|
|
3906
|
+
IsNotEmpty38({ message: "Please enter name." })
|
|
3884
3907
|
], UpdateCompanyMemberDto.prototype, "name", 2);
|
|
3885
3908
|
__decorateClass([
|
|
3886
|
-
|
|
3909
|
+
IsNotEmpty38({ message: "Please enter email" })
|
|
3887
3910
|
], UpdateCompanyMemberDto.prototype, "email", 2);
|
|
3888
3911
|
__decorateClass([
|
|
3889
3912
|
IsArray5({ message: "Role IDs must be an array." }),
|
|
@@ -3906,7 +3929,7 @@ var FREELANCER_EDUCATION_PATTERN = {
|
|
|
3906
3929
|
};
|
|
3907
3930
|
|
|
3908
3931
|
// src/modules/user/freelancer-education/dto/freelancer-education.dto.ts
|
|
3909
|
-
import { IsArray as IsArray6, ValidateNested as ValidateNested2, IsString as IsString22, IsNotEmpty as
|
|
3932
|
+
import { IsArray as IsArray6, ValidateNested as ValidateNested2, IsString as IsString22, IsNotEmpty as IsNotEmpty39, IsOptional as IsOptional15, ArrayMinSize as ArrayMinSize2 } from "class-validator";
|
|
3910
3933
|
import { Type as Type3 } from "class-transformer";
|
|
3911
3934
|
var EducationDto = class {
|
|
3912
3935
|
};
|
|
@@ -3915,15 +3938,15 @@ __decorateClass([
|
|
|
3915
3938
|
], EducationDto.prototype, "uuid", 2);
|
|
3916
3939
|
__decorateClass([
|
|
3917
3940
|
IsString22(),
|
|
3918
|
-
|
|
3941
|
+
IsNotEmpty39({ message: "Please Enter Degree " })
|
|
3919
3942
|
], EducationDto.prototype, "degree", 2);
|
|
3920
3943
|
__decorateClass([
|
|
3921
3944
|
IsString22(),
|
|
3922
|
-
|
|
3945
|
+
IsNotEmpty39({ message: "Please Enter University " })
|
|
3923
3946
|
], EducationDto.prototype, "university", 2);
|
|
3924
3947
|
__decorateClass([
|
|
3925
3948
|
IsString22(),
|
|
3926
|
-
|
|
3949
|
+
IsNotEmpty39({ message: "Please Enter Year of Graduation " })
|
|
3927
3950
|
], EducationDto.prototype, "yearOfGraduation", 2);
|
|
3928
3951
|
var FreelancerEducationDto = class {
|
|
3929
3952
|
};
|
|
@@ -3941,7 +3964,7 @@ var FREELANCER_PROJECT_PATTERN = {
|
|
|
3941
3964
|
};
|
|
3942
3965
|
|
|
3943
3966
|
// src/modules/user/freelancer-project/dto/freelancer-project.dto.ts
|
|
3944
|
-
import { IsArray as IsArray7, ValidateNested as ValidateNested3, IsString as IsString23, IsNotEmpty as
|
|
3967
|
+
import { IsArray as IsArray7, ValidateNested as ValidateNested3, IsString as IsString23, IsNotEmpty as IsNotEmpty40, IsOptional as IsOptional16, IsDateString, MaxLength as MaxLength11, ArrayMinSize as ArrayMinSize3 } from "class-validator";
|
|
3945
3968
|
import { Type as Type4 } from "class-transformer";
|
|
3946
3969
|
var ProjectDto = class {
|
|
3947
3970
|
};
|
|
@@ -3950,15 +3973,15 @@ __decorateClass([
|
|
|
3950
3973
|
], ProjectDto.prototype, "uuid", 2);
|
|
3951
3974
|
__decorateClass([
|
|
3952
3975
|
IsString23(),
|
|
3953
|
-
|
|
3976
|
+
IsNotEmpty40({ message: "Please Enter Project Name " })
|
|
3954
3977
|
], ProjectDto.prototype, "projectName", 2);
|
|
3955
3978
|
__decorateClass([
|
|
3956
3979
|
IsDateString(),
|
|
3957
|
-
|
|
3980
|
+
IsNotEmpty40({ message: "Please Enter Start Date " })
|
|
3958
3981
|
], ProjectDto.prototype, "startDate", 2);
|
|
3959
3982
|
__decorateClass([
|
|
3960
3983
|
IsDateString(),
|
|
3961
|
-
|
|
3984
|
+
IsNotEmpty40({ message: "Please Enter End Date " })
|
|
3962
3985
|
], ProjectDto.prototype, "endDate", 2);
|
|
3963
3986
|
__decorateClass([
|
|
3964
3987
|
IsOptional16(),
|
|
@@ -3980,7 +4003,7 @@ __decorateClass([
|
|
|
3980
4003
|
], CaseStudyDto.prototype, "uuid", 2);
|
|
3981
4004
|
__decorateClass([
|
|
3982
4005
|
IsString23(),
|
|
3983
|
-
|
|
4006
|
+
IsNotEmpty40({ message: "Please Enter Project Name " })
|
|
3984
4007
|
], CaseStudyDto.prototype, "projectName", 2);
|
|
3985
4008
|
__decorateClass([
|
|
3986
4009
|
IsOptional16(),
|
|
@@ -4063,12 +4086,12 @@ import {
|
|
|
4063
4086
|
IsEmail as IsEmail10,
|
|
4064
4087
|
IsBoolean as IsBoolean10,
|
|
4065
4088
|
IsOptional as IsOptional18,
|
|
4066
|
-
IsEnum as
|
|
4089
|
+
IsEnum as IsEnum14,
|
|
4067
4090
|
IsNumber as IsNumber3,
|
|
4068
4091
|
IsUrl as IsUrl3,
|
|
4069
4092
|
Min as Min3,
|
|
4070
4093
|
MaxLength as MaxLength13,
|
|
4071
|
-
IsNotEmpty as
|
|
4094
|
+
IsNotEmpty as IsNotEmpty42,
|
|
4072
4095
|
MinLength as MinLength11,
|
|
4073
4096
|
Matches as Matches8,
|
|
4074
4097
|
ValidateIf as ValidateIf3
|
|
@@ -4102,7 +4125,7 @@ __decorateClass([
|
|
|
4102
4125
|
IsString25({ message: "Mobile must be a string (e.g., 1243253534)" })
|
|
4103
4126
|
], CreateFreelancerDto.prototype, "mobile", 2);
|
|
4104
4127
|
__decorateClass([
|
|
4105
|
-
|
|
4128
|
+
IsNotEmpty42({ message: "Please enter password." }),
|
|
4106
4129
|
MinLength11(6),
|
|
4107
4130
|
MaxLength13(32),
|
|
4108
4131
|
Matches8(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
@@ -4110,7 +4133,7 @@ __decorateClass([
|
|
|
4110
4133
|
})
|
|
4111
4134
|
], CreateFreelancerDto.prototype, "password", 2);
|
|
4112
4135
|
__decorateClass([
|
|
4113
|
-
|
|
4136
|
+
IsNotEmpty42({ message: "Please enter confirm password." }),
|
|
4114
4137
|
Match("confirmPassword", { message: "Passwords do not match" })
|
|
4115
4138
|
], CreateFreelancerDto.prototype, "confirmPassword", 2);
|
|
4116
4139
|
__decorateClass([
|
|
@@ -4118,7 +4141,7 @@ __decorateClass([
|
|
|
4118
4141
|
Type6(() => Boolean)
|
|
4119
4142
|
], CreateFreelancerDto.prototype, "developer", 2);
|
|
4120
4143
|
__decorateClass([
|
|
4121
|
-
|
|
4144
|
+
IsEnum14(NatureOfWorkEnum, {
|
|
4122
4145
|
message: `Nature of work must be one of: ${Object.values(
|
|
4123
4146
|
NatureOfWorkEnum
|
|
4124
4147
|
).join(", ")}`
|
|
@@ -4130,7 +4153,7 @@ __decorateClass([
|
|
|
4130
4153
|
Type6(() => Number)
|
|
4131
4154
|
], CreateFreelancerDto.prototype, "expectedHourlyCompensation", 2);
|
|
4132
4155
|
__decorateClass([
|
|
4133
|
-
|
|
4156
|
+
IsEnum14(ModeOfWorkEnum, {
|
|
4134
4157
|
message: `Mode of work must be one of: ${Object.values(ModeOfWorkEnum).join(
|
|
4135
4158
|
", "
|
|
4136
4159
|
)}`
|
|
@@ -4142,7 +4165,7 @@ __decorateClass([
|
|
|
4142
4165
|
], CreateFreelancerDto.prototype, "isImmediateJoiner", 2);
|
|
4143
4166
|
__decorateClass([
|
|
4144
4167
|
ValidateIf3((o) => o.isImmediateJoiner === false),
|
|
4145
|
-
|
|
4168
|
+
IsNotEmpty42({ message: "Please enter availability to join." })
|
|
4146
4169
|
], CreateFreelancerDto.prototype, "availabilityToJoin", 2);
|
|
4147
4170
|
__decorateClass([
|
|
4148
4171
|
IsOptional18(),
|
|
@@ -4171,14 +4194,14 @@ import {
|
|
|
4171
4194
|
IsEmail as IsEmail11,
|
|
4172
4195
|
IsBoolean as IsBoolean11,
|
|
4173
4196
|
IsOptional as IsOptional19,
|
|
4174
|
-
IsEnum as
|
|
4197
|
+
IsEnum as IsEnum15,
|
|
4175
4198
|
IsNumber as IsNumber4,
|
|
4176
4199
|
IsUrl as IsUrl4,
|
|
4177
4200
|
Min as Min4,
|
|
4178
4201
|
MaxLength as MaxLength14,
|
|
4179
4202
|
MinLength as MinLength12,
|
|
4180
4203
|
Matches as Matches9,
|
|
4181
|
-
IsNotEmpty as
|
|
4204
|
+
IsNotEmpty as IsNotEmpty43,
|
|
4182
4205
|
ValidateIf as ValidateIf4
|
|
4183
4206
|
} from "class-validator";
|
|
4184
4207
|
import { Type as Type7 } from "class-transformer";
|
|
@@ -4228,7 +4251,7 @@ __decorateClass([
|
|
|
4228
4251
|
], UpdateFreelancerDto.prototype, "developer", 2);
|
|
4229
4252
|
__decorateClass([
|
|
4230
4253
|
IsOptional19(),
|
|
4231
|
-
|
|
4254
|
+
IsEnum15(NatureOfWorkEnum2, {
|
|
4232
4255
|
message: `Nature of work must be one of: ${Object.values(
|
|
4233
4256
|
NatureOfWorkEnum2
|
|
4234
4257
|
).join(", ")}`
|
|
@@ -4242,7 +4265,7 @@ __decorateClass([
|
|
|
4242
4265
|
], UpdateFreelancerDto.prototype, "expectedHourlyCompensation", 2);
|
|
4243
4266
|
__decorateClass([
|
|
4244
4267
|
IsOptional19(),
|
|
4245
|
-
|
|
4268
|
+
IsEnum15(ModeOfWorkEnum2, {
|
|
4246
4269
|
message: `Mode of work must be one of: ${Object.values(ModeOfWorkEnum2).join(
|
|
4247
4270
|
", "
|
|
4248
4271
|
)}`
|
|
@@ -4255,7 +4278,7 @@ __decorateClass([
|
|
|
4255
4278
|
], UpdateFreelancerDto.prototype, "isImmediateJoiner", 2);
|
|
4256
4279
|
__decorateClass([
|
|
4257
4280
|
ValidateIf4((o) => o.isImmediateJoiner === false),
|
|
4258
|
-
|
|
4281
|
+
IsNotEmpty43({ message: "Please enter availability to join." })
|
|
4259
4282
|
], UpdateFreelancerDto.prototype, "availabilityToJoin", 2);
|
|
4260
4283
|
__decorateClass([
|
|
4261
4284
|
IsOptional19(),
|
|
@@ -4293,14 +4316,14 @@ var CLIENT_ADMIN_PATTERNS = {
|
|
|
4293
4316
|
|
|
4294
4317
|
// src/modules/client-admin/dto/create-client.dto.ts
|
|
4295
4318
|
import {
|
|
4296
|
-
IsNotEmpty as
|
|
4319
|
+
IsNotEmpty as IsNotEmpty44,
|
|
4297
4320
|
IsEmail as IsEmail12,
|
|
4298
4321
|
IsOptional as IsOptional20,
|
|
4299
4322
|
IsString as IsString27,
|
|
4300
4323
|
IsArray as IsArray9,
|
|
4301
4324
|
MinLength as MinLength13,
|
|
4302
4325
|
MaxLength as MaxLength15,
|
|
4303
|
-
IsEnum as
|
|
4326
|
+
IsEnum as IsEnum16,
|
|
4304
4327
|
Matches as Matches10
|
|
4305
4328
|
} from "class-validator";
|
|
4306
4329
|
var CreateClientHiringModeEnum = /* @__PURE__ */ ((CreateClientHiringModeEnum2) => {
|
|
@@ -4318,19 +4341,19 @@ var CreateClientHiringTypeEnum = /* @__PURE__ */ ((CreateClientHiringTypeEnum2)
|
|
|
4318
4341
|
var CreateClientDto = class {
|
|
4319
4342
|
};
|
|
4320
4343
|
__decorateClass([
|
|
4321
|
-
|
|
4344
|
+
IsNotEmpty44({ message: "Please enter first name." }),
|
|
4322
4345
|
IsString27()
|
|
4323
4346
|
], CreateClientDto.prototype, "firstName", 2);
|
|
4324
4347
|
__decorateClass([
|
|
4325
|
-
|
|
4348
|
+
IsNotEmpty44({ message: "Please enter last name." }),
|
|
4326
4349
|
IsString27()
|
|
4327
4350
|
], CreateClientDto.prototype, "lastName", 2);
|
|
4328
4351
|
__decorateClass([
|
|
4329
|
-
|
|
4352
|
+
IsNotEmpty44({ message: "Please enter email." }),
|
|
4330
4353
|
IsEmail12()
|
|
4331
4354
|
], CreateClientDto.prototype, "email", 2);
|
|
4332
4355
|
__decorateClass([
|
|
4333
|
-
|
|
4356
|
+
IsNotEmpty44({ message: "Please enter password." }),
|
|
4334
4357
|
MinLength13(6),
|
|
4335
4358
|
MaxLength15(32),
|
|
4336
4359
|
Matches10(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
@@ -4338,31 +4361,31 @@ __decorateClass([
|
|
|
4338
4361
|
})
|
|
4339
4362
|
], CreateClientDto.prototype, "password", 2);
|
|
4340
4363
|
__decorateClass([
|
|
4341
|
-
|
|
4364
|
+
IsNotEmpty44({ message: "Please enter confirm password." }),
|
|
4342
4365
|
Match("confirmPassword", { message: "Passwords do not match" })
|
|
4343
4366
|
], CreateClientDto.prototype, "confirmPassword", 2);
|
|
4344
4367
|
__decorateClass([
|
|
4345
|
-
|
|
4368
|
+
IsNotEmpty44({ message: "Please enter company name." }),
|
|
4346
4369
|
IsString27()
|
|
4347
4370
|
], CreateClientDto.prototype, "companyName", 2);
|
|
4348
4371
|
__decorateClass([
|
|
4349
4372
|
IsArray9({ message: "Skills should be an array." }),
|
|
4350
|
-
|
|
4373
|
+
IsNotEmpty44({ message: "Please enter skills." })
|
|
4351
4374
|
], CreateClientDto.prototype, "skills", 2);
|
|
4352
4375
|
__decorateClass([
|
|
4353
|
-
|
|
4376
|
+
IsNotEmpty44({ message: "Please specify required freelancer count." }),
|
|
4354
4377
|
IsString27()
|
|
4355
4378
|
], CreateClientDto.prototype, "requiredFreelancer", 2);
|
|
4356
4379
|
__decorateClass([
|
|
4357
|
-
|
|
4358
|
-
|
|
4380
|
+
IsNotEmpty44({ message: "Please specify the kind of hiring." }),
|
|
4381
|
+
IsEnum16(CreateClientHiringTypeEnum)
|
|
4359
4382
|
], CreateClientDto.prototype, "kindOfHiring", 2);
|
|
4360
4383
|
__decorateClass([
|
|
4361
|
-
|
|
4362
|
-
|
|
4384
|
+
IsNotEmpty44({ message: "Please specify the mode of hire." }),
|
|
4385
|
+
IsEnum16(CreateClientHiringModeEnum)
|
|
4363
4386
|
], CreateClientDto.prototype, "modeOfHire", 2);
|
|
4364
4387
|
__decorateClass([
|
|
4365
|
-
|
|
4388
|
+
IsNotEmpty44({ message: "Please let us know how you found us." }),
|
|
4366
4389
|
IsString27()
|
|
4367
4390
|
], CreateClientDto.prototype, "foundUsOn", 2);
|
|
4368
4391
|
__decorateClass([
|
|
@@ -4371,24 +4394,24 @@ __decorateClass([
|
|
|
4371
4394
|
], CreateClientDto.prototype, "foundUsOnDetail", 2);
|
|
4372
4395
|
|
|
4373
4396
|
// src/modules/client-admin/dto/update-client-status.dto.ts
|
|
4374
|
-
import { IsString as IsString28, IsNotEmpty as
|
|
4397
|
+
import { IsString as IsString28, IsNotEmpty as IsNotEmpty45 } from "class-validator";
|
|
4375
4398
|
var UpdateClientAccountStatusDto = class {
|
|
4376
4399
|
};
|
|
4377
4400
|
__decorateClass([
|
|
4378
|
-
|
|
4401
|
+
IsNotEmpty45({ message: "Please enter account status." }),
|
|
4379
4402
|
IsString28()
|
|
4380
4403
|
], UpdateClientAccountStatusDto.prototype, "accountStatus", 2);
|
|
4381
4404
|
|
|
4382
4405
|
// src/modules/client-admin/dto/update-client.dto.ts
|
|
4383
4406
|
import {
|
|
4384
|
-
IsNotEmpty as
|
|
4407
|
+
IsNotEmpty as IsNotEmpty46,
|
|
4385
4408
|
IsEmail as IsEmail13,
|
|
4386
4409
|
IsOptional as IsOptional21,
|
|
4387
4410
|
IsString as IsString29,
|
|
4388
4411
|
IsArray as IsArray10,
|
|
4389
4412
|
MinLength as MinLength14,
|
|
4390
4413
|
MaxLength as MaxLength16,
|
|
4391
|
-
IsEnum as
|
|
4414
|
+
IsEnum as IsEnum17,
|
|
4392
4415
|
Matches as Matches11
|
|
4393
4416
|
} from "class-validator";
|
|
4394
4417
|
var UpdateClientHiringModeEnum = /* @__PURE__ */ ((UpdateClientHiringModeEnum2) => {
|
|
@@ -4406,15 +4429,15 @@ var UpdateClientHiringTypeEnum = /* @__PURE__ */ ((UpdateClientHiringTypeEnum2)
|
|
|
4406
4429
|
var UpdateClientDto = class {
|
|
4407
4430
|
};
|
|
4408
4431
|
__decorateClass([
|
|
4409
|
-
|
|
4432
|
+
IsNotEmpty46({ message: "Please enter first name." }),
|
|
4410
4433
|
IsString29()
|
|
4411
4434
|
], UpdateClientDto.prototype, "firstName", 2);
|
|
4412
4435
|
__decorateClass([
|
|
4413
|
-
|
|
4436
|
+
IsNotEmpty46({ message: "Please enter last name." }),
|
|
4414
4437
|
IsString29()
|
|
4415
4438
|
], UpdateClientDto.prototype, "lastName", 2);
|
|
4416
4439
|
__decorateClass([
|
|
4417
|
-
|
|
4440
|
+
IsNotEmpty46({ message: "Please enter email." }),
|
|
4418
4441
|
IsEmail13()
|
|
4419
4442
|
], UpdateClientDto.prototype, "email", 2);
|
|
4420
4443
|
__decorateClass([
|
|
@@ -4426,27 +4449,27 @@ __decorateClass([
|
|
|
4426
4449
|
})
|
|
4427
4450
|
], UpdateClientDto.prototype, "password", 2);
|
|
4428
4451
|
__decorateClass([
|
|
4429
|
-
|
|
4452
|
+
IsNotEmpty46({ message: "Please enter company name." }),
|
|
4430
4453
|
IsString29()
|
|
4431
4454
|
], UpdateClientDto.prototype, "companyName", 2);
|
|
4432
4455
|
__decorateClass([
|
|
4433
4456
|
IsArray10({ message: "Skills should be an array." }),
|
|
4434
|
-
|
|
4457
|
+
IsNotEmpty46({ message: "Please enter skills." })
|
|
4435
4458
|
], UpdateClientDto.prototype, "skills", 2);
|
|
4436
4459
|
__decorateClass([
|
|
4437
|
-
|
|
4460
|
+
IsNotEmpty46({ message: "Please specify required freelancer count." }),
|
|
4438
4461
|
IsString29()
|
|
4439
4462
|
], UpdateClientDto.prototype, "requiredFreelancer", 2);
|
|
4440
4463
|
__decorateClass([
|
|
4441
|
-
|
|
4442
|
-
|
|
4464
|
+
IsNotEmpty46({ message: "Please specify the kind of hiring." }),
|
|
4465
|
+
IsEnum17(UpdateClientHiringTypeEnum)
|
|
4443
4466
|
], UpdateClientDto.prototype, "kindOfHiring", 2);
|
|
4444
4467
|
__decorateClass([
|
|
4445
|
-
|
|
4446
|
-
|
|
4468
|
+
IsNotEmpty46({ message: "Please specify the mode of hire." }),
|
|
4469
|
+
IsEnum17(UpdateClientHiringModeEnum)
|
|
4447
4470
|
], UpdateClientDto.prototype, "modeOfHire", 2);
|
|
4448
4471
|
__decorateClass([
|
|
4449
|
-
|
|
4472
|
+
IsNotEmpty46({ message: "Please let us know how you found us." }),
|
|
4450
4473
|
IsString29()
|
|
4451
4474
|
], UpdateClientDto.prototype, "foundUsOn", 2);
|
|
4452
4475
|
__decorateClass([
|
|
@@ -4461,7 +4484,7 @@ var FREELANCER_DECLARATION_PATTERN = {
|
|
|
4461
4484
|
};
|
|
4462
4485
|
|
|
4463
4486
|
// src/modules/user/freelancer-declaration/dto/freelancer-declaration.dto.ts
|
|
4464
|
-
import { IsOptional as IsOptional22, IsEnum as
|
|
4487
|
+
import { IsOptional as IsOptional22, IsEnum as IsEnum18, IsString as IsString30, IsNotEmpty as IsNotEmpty47, IsIn as IsIn3 } from "class-validator";
|
|
4465
4488
|
var DocumentTypeEnum = /* @__PURE__ */ ((DocumentTypeEnum2) => {
|
|
4466
4489
|
DocumentTypeEnum2["AADHAAR"] = "AADHAAR_CARD";
|
|
4467
4490
|
DocumentTypeEnum2["PASSPORT"] = "PASSPORT";
|
|
@@ -4476,10 +4499,10 @@ __decorateClass([
|
|
|
4476
4499
|
IsString30({ message: "UUID must be a string" })
|
|
4477
4500
|
], FreelancerDeclarationDto.prototype, "uuid", 2);
|
|
4478
4501
|
__decorateClass([
|
|
4479
|
-
|
|
4502
|
+
IsEnum18(DocumentTypeEnum, { message: "Document type must be one of AADHAAR_CARD, PASSPORT, DRIVING_LICENSE, PAN_CARD" })
|
|
4480
4503
|
], FreelancerDeclarationDto.prototype, "documentType", 2);
|
|
4481
4504
|
__decorateClass([
|
|
4482
|
-
|
|
4505
|
+
IsNotEmpty47({ message: "Please accept the declaration " }),
|
|
4483
4506
|
IsString30(),
|
|
4484
4507
|
IsIn3([
|
|
4485
4508
|
"true"
|
|
@@ -4496,11 +4519,11 @@ var CMS_PATTERNS = {
|
|
|
4496
4519
|
};
|
|
4497
4520
|
|
|
4498
4521
|
// src/modules/cms/dto/create-cms.dto.ts
|
|
4499
|
-
import { IsBoolean as IsBoolean12, IsNotEmpty as
|
|
4522
|
+
import { IsBoolean as IsBoolean12, IsNotEmpty as IsNotEmpty48, IsOptional as IsOptional23 } from "class-validator";
|
|
4500
4523
|
var CreateCmsDto = class {
|
|
4501
4524
|
};
|
|
4502
4525
|
__decorateClass([
|
|
4503
|
-
|
|
4526
|
+
IsNotEmpty48({ message: "Please enter name." })
|
|
4504
4527
|
], CreateCmsDto.prototype, "title", 2);
|
|
4505
4528
|
__decorateClass([
|
|
4506
4529
|
IsOptional23()
|
|
@@ -4511,14 +4534,14 @@ __decorateClass([
|
|
|
4511
4534
|
], CreateCmsDto.prototype, "isActive", 2);
|
|
4512
4535
|
|
|
4513
4536
|
// src/modules/cms/dto/update-cms.dto.ts
|
|
4514
|
-
import { IsBoolean as IsBoolean13, IsNotEmpty as
|
|
4537
|
+
import { IsBoolean as IsBoolean13, IsNotEmpty as IsNotEmpty49, IsOptional as IsOptional24 } from "class-validator";
|
|
4515
4538
|
var UpdateCmsDto = class {
|
|
4516
4539
|
};
|
|
4517
4540
|
__decorateClass([
|
|
4518
4541
|
IsOptional24()
|
|
4519
4542
|
], UpdateCmsDto.prototype, "uuid", 2);
|
|
4520
4543
|
__decorateClass([
|
|
4521
|
-
|
|
4544
|
+
IsNotEmpty49({ message: "Please enter name." })
|
|
4522
4545
|
], UpdateCmsDto.prototype, "title", 2);
|
|
4523
4546
|
__decorateClass([
|
|
4524
4547
|
IsOptional24()
|
|
@@ -4555,12 +4578,12 @@ var ADMIN_JOB_PATTERN = {
|
|
|
4555
4578
|
import { Type as Type8 } from "class-transformer";
|
|
4556
4579
|
import {
|
|
4557
4580
|
IsString as IsString31,
|
|
4558
|
-
IsEnum as
|
|
4581
|
+
IsEnum as IsEnum19,
|
|
4559
4582
|
IsInt as IsInt6,
|
|
4560
4583
|
IsOptional as IsOptional25,
|
|
4561
4584
|
IsArray as IsArray11,
|
|
4562
4585
|
IsDateString as IsDateString4,
|
|
4563
|
-
IsNotEmpty as
|
|
4586
|
+
IsNotEmpty as IsNotEmpty50,
|
|
4564
4587
|
ArrayNotEmpty as ArrayNotEmpty6,
|
|
4565
4588
|
Min as Min5,
|
|
4566
4589
|
IsNumber as IsNumber5
|
|
@@ -4581,7 +4604,7 @@ var AdminCreateJobInformationDto = class {
|
|
|
4581
4604
|
};
|
|
4582
4605
|
__decorateClass([
|
|
4583
4606
|
IsString31({ message: "Job role must be a string." }),
|
|
4584
|
-
|
|
4607
|
+
IsNotEmpty50({ message: "Job role is required." })
|
|
4585
4608
|
], AdminCreateJobInformationDto.prototype, "jobRole", 2);
|
|
4586
4609
|
__decorateClass([
|
|
4587
4610
|
IsOptional25(),
|
|
@@ -4598,26 +4621,26 @@ __decorateClass([
|
|
|
4598
4621
|
Min5(1, { message: "There must be at least one opening." })
|
|
4599
4622
|
], AdminCreateJobInformationDto.prototype, "openings", 2);
|
|
4600
4623
|
__decorateClass([
|
|
4601
|
-
|
|
4624
|
+
IsEnum19(JobLocationEnumDto, {
|
|
4602
4625
|
message: `Location must be one of: ${Object.values(JobLocationEnumDto).join(", ")}.`
|
|
4603
4626
|
})
|
|
4604
4627
|
], AdminCreateJobInformationDto.prototype, "location", 2);
|
|
4605
4628
|
__decorateClass([
|
|
4606
|
-
|
|
4629
|
+
IsEnum19(TypeOfEmploymentEnumDto, {
|
|
4607
4630
|
message: `Type of employment must be one of: ${Object.values(TypeOfEmploymentEnumDto).join(", ")}.`
|
|
4608
4631
|
})
|
|
4609
4632
|
], AdminCreateJobInformationDto.prototype, "typeOfEmployment", 2);
|
|
4610
4633
|
__decorateClass([
|
|
4611
4634
|
IsString31({ message: "Onboarding Days must be a string." }),
|
|
4612
|
-
|
|
4635
|
+
IsNotEmpty50({ message: "Onboarding Days is required." })
|
|
4613
4636
|
], AdminCreateJobInformationDto.prototype, "onboardingTat", 2);
|
|
4614
4637
|
__decorateClass([
|
|
4615
4638
|
IsString31({ message: "Communication skills must be a string." }),
|
|
4616
|
-
|
|
4639
|
+
IsNotEmpty50({ message: "Communication skills are required." })
|
|
4617
4640
|
], AdminCreateJobInformationDto.prototype, "candidateCommunicationSkills", 2);
|
|
4618
4641
|
__decorateClass([
|
|
4619
4642
|
IsString31({ message: "Currency must be a string." }),
|
|
4620
|
-
|
|
4643
|
+
IsNotEmpty50({ message: "Currency is required." })
|
|
4621
4644
|
], AdminCreateJobInformationDto.prototype, "currency", 2);
|
|
4622
4645
|
__decorateClass([
|
|
4623
4646
|
Type8(() => Number),
|
|
@@ -4654,12 +4677,12 @@ __decorateClass([
|
|
|
4654
4677
|
import { Type as Type9 } from "class-transformer";
|
|
4655
4678
|
import {
|
|
4656
4679
|
IsString as IsString32,
|
|
4657
|
-
IsEnum as
|
|
4680
|
+
IsEnum as IsEnum20,
|
|
4658
4681
|
IsInt as IsInt7,
|
|
4659
4682
|
IsOptional as IsOptional26,
|
|
4660
4683
|
IsArray as IsArray12,
|
|
4661
4684
|
IsDateString as IsDateString5,
|
|
4662
|
-
IsNotEmpty as
|
|
4685
|
+
IsNotEmpty as IsNotEmpty51,
|
|
4663
4686
|
ArrayNotEmpty as ArrayNotEmpty7,
|
|
4664
4687
|
Min as Min6,
|
|
4665
4688
|
IsNumber as IsNumber6
|
|
@@ -4680,7 +4703,7 @@ var AdminUpdateJobInformationDto = class {
|
|
|
4680
4703
|
};
|
|
4681
4704
|
__decorateClass([
|
|
4682
4705
|
IsString32({ message: "Job role must be a string." }),
|
|
4683
|
-
|
|
4706
|
+
IsNotEmpty51({ message: "Job role is required." })
|
|
4684
4707
|
], AdminUpdateJobInformationDto.prototype, "jobRole", 2);
|
|
4685
4708
|
__decorateClass([
|
|
4686
4709
|
IsOptional26(),
|
|
@@ -4697,26 +4720,26 @@ __decorateClass([
|
|
|
4697
4720
|
Min6(1, { message: "There must be at least one opening." })
|
|
4698
4721
|
], AdminUpdateJobInformationDto.prototype, "openings", 2);
|
|
4699
4722
|
__decorateClass([
|
|
4700
|
-
|
|
4723
|
+
IsEnum20(JobLocationEnums, {
|
|
4701
4724
|
message: `Location must be one of: ${Object.values(JobLocationEnums).join(", ")}.`
|
|
4702
4725
|
})
|
|
4703
4726
|
], AdminUpdateJobInformationDto.prototype, "location", 2);
|
|
4704
4727
|
__decorateClass([
|
|
4705
|
-
|
|
4728
|
+
IsEnum20(TypeOfEmploymentEnums, {
|
|
4706
4729
|
message: `Type of employment must be one of: ${Object.values(TypeOfEmploymentEnums).join(", ")}.`
|
|
4707
4730
|
})
|
|
4708
4731
|
], AdminUpdateJobInformationDto.prototype, "typeOfEmployment", 2);
|
|
4709
4732
|
__decorateClass([
|
|
4710
4733
|
IsString32({ message: "Onboarding Days must be a string." }),
|
|
4711
|
-
|
|
4734
|
+
IsNotEmpty51({ message: "Onboarding Days is required." })
|
|
4712
4735
|
], AdminUpdateJobInformationDto.prototype, "onboardingTat", 2);
|
|
4713
4736
|
__decorateClass([
|
|
4714
4737
|
IsString32({ message: "Communication skills must be a string." }),
|
|
4715
|
-
|
|
4738
|
+
IsNotEmpty51({ message: "Communication skills are required." })
|
|
4716
4739
|
], AdminUpdateJobInformationDto.prototype, "candidateCommunicationSkills", 2);
|
|
4717
4740
|
__decorateClass([
|
|
4718
4741
|
IsString32({ message: "Currency must be a string." }),
|
|
4719
|
-
|
|
4742
|
+
IsNotEmpty51({ message: "Currency is required." })
|
|
4720
4743
|
], AdminUpdateJobInformationDto.prototype, "currency", 2);
|
|
4721
4744
|
__decorateClass([
|
|
4722
4745
|
Type9(() => Number),
|
|
@@ -4756,7 +4779,7 @@ var LEAD_PATTERN = {
|
|
|
4756
4779
|
};
|
|
4757
4780
|
|
|
4758
4781
|
// src/modules/lead/dto/create-lead.dto.ts
|
|
4759
|
-
import { IsString as IsString33, IsEmail as IsEmail14, IsOptional as IsOptional27, IsEnum as
|
|
4782
|
+
import { IsString as IsString33, IsEmail as IsEmail14, IsOptional as IsOptional27, IsEnum as IsEnum21 } from "class-validator";
|
|
4760
4783
|
var CategoryEmumDto = /* @__PURE__ */ ((CategoryEmumDto2) => {
|
|
4761
4784
|
CategoryEmumDto2["BUSINESS"] = "BUSINESS";
|
|
4762
4785
|
CategoryEmumDto2["FREELANCER"] = "FREELANCER";
|
|
@@ -4781,7 +4804,7 @@ __decorateClass([
|
|
|
4781
4804
|
IsString33({ message: "Description must be a string" })
|
|
4782
4805
|
], CreateLeadDto.prototype, "description", 2);
|
|
4783
4806
|
__decorateClass([
|
|
4784
|
-
|
|
4807
|
+
IsEnum21(CategoryEmumDto, {
|
|
4785
4808
|
message: `Type of category must be one of: ${Object.values(
|
|
4786
4809
|
CategoryEmumDto
|
|
4787
4810
|
).join(", ")}`
|
|
@@ -4801,11 +4824,11 @@ var ADMIN_ROLE_PATTERN = {
|
|
|
4801
4824
|
};
|
|
4802
4825
|
|
|
4803
4826
|
// src/modules/admin-role/dto/create-admin-role.dto.ts
|
|
4804
|
-
import { IsNotEmpty as
|
|
4827
|
+
import { IsNotEmpty as IsNotEmpty52, IsOptional as IsOptional28, IsString as IsString34 } from "class-validator";
|
|
4805
4828
|
var CreateAdminRoleDto = class {
|
|
4806
4829
|
};
|
|
4807
4830
|
__decorateClass([
|
|
4808
|
-
|
|
4831
|
+
IsNotEmpty52({ message: "Please enter admin role name." }),
|
|
4809
4832
|
IsString34({ message: "Role name must be a string." })
|
|
4810
4833
|
], CreateAdminRoleDto.prototype, "roleName", 2);
|
|
4811
4834
|
__decorateClass([
|
|
@@ -4814,11 +4837,11 @@ __decorateClass([
|
|
|
4814
4837
|
], CreateAdminRoleDto.prototype, "roleDescription", 2);
|
|
4815
4838
|
|
|
4816
4839
|
// src/modules/admin-role/dto/update-admin-role.dto.ts
|
|
4817
|
-
import { IsBoolean as IsBoolean15, IsNotEmpty as
|
|
4840
|
+
import { IsBoolean as IsBoolean15, IsNotEmpty as IsNotEmpty53, IsOptional as IsOptional29, IsString as IsString35 } from "class-validator";
|
|
4818
4841
|
var UpdateAdminRoleDto = class {
|
|
4819
4842
|
};
|
|
4820
4843
|
__decorateClass([
|
|
4821
|
-
|
|
4844
|
+
IsNotEmpty53({ message: "Please enter admin role name." }),
|
|
4822
4845
|
IsString35({ message: "Role name must be a string." })
|
|
4823
4846
|
], UpdateAdminRoleDto.prototype, "roleName", 2);
|
|
4824
4847
|
__decorateClass([
|
|
@@ -4831,15 +4854,15 @@ __decorateClass([
|
|
|
4831
4854
|
], UpdateAdminRoleDto.prototype, "isActive", 2);
|
|
4832
4855
|
|
|
4833
4856
|
// src/modules/admin-role/dto/attach-permissions-to-role.dto.ts
|
|
4834
|
-
import { IsNotEmpty as
|
|
4857
|
+
import { IsNotEmpty as IsNotEmpty54, IsString as IsString36 } from "class-validator";
|
|
4835
4858
|
var AttachPermissionsToRoleDto = class {
|
|
4836
4859
|
};
|
|
4837
4860
|
__decorateClass([
|
|
4838
|
-
|
|
4861
|
+
IsNotEmpty54({ message: "Please enter admin role ID." }),
|
|
4839
4862
|
IsString36({ message: "Role ID must be a string." })
|
|
4840
4863
|
], AttachPermissionsToRoleDto.prototype, "roleId", 2);
|
|
4841
4864
|
__decorateClass([
|
|
4842
|
-
|
|
4865
|
+
IsNotEmpty54({ message: "Please enter permission IDs." }),
|
|
4843
4866
|
IsString36({ message: "Permission IDs must be a comma-separated string." })
|
|
4844
4867
|
], AttachPermissionsToRoleDto.prototype, "permissionIds", 2);
|
|
4845
4868
|
|
|
@@ -5316,6 +5339,9 @@ __decorateClass([
|
|
|
5316
5339
|
__decorateClass([
|
|
5317
5340
|
ViewColumn({ name: "freelancer_profile_picture" })
|
|
5318
5341
|
], JobFreelancerRecommendation.prototype, "freelancerProfilePicture", 2);
|
|
5342
|
+
__decorateClass([
|
|
5343
|
+
ViewColumn({ name: "freelancer_is_social" })
|
|
5344
|
+
], JobFreelancerRecommendation.prototype, "freelancerIsSocial", 2);
|
|
5319
5345
|
__decorateClass([
|
|
5320
5346
|
ViewColumn({ name: "freelancer_created_at" })
|
|
5321
5347
|
], JobFreelancerRecommendation.prototype, "freelancerCreatedAt", 2);
|
|
@@ -5543,6 +5569,7 @@ export {
|
|
|
5543
5569
|
RefreshDto,
|
|
5544
5570
|
RefreshToken,
|
|
5545
5571
|
ResetPasswordDto,
|
|
5572
|
+
ResetPasswordTokenValidationDto,
|
|
5546
5573
|
STATE_PATTERN,
|
|
5547
5574
|
SUBADMIN_PATTERN,
|
|
5548
5575
|
SYSTEM_PREFERENCES_PATTERN,
|