@experts_hub/shared 1.0.632 → 1.0.633
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 +13 -1
- package/dist/index.d.ts +13 -1
- package/dist/index.js +1514 -1483
- package/dist/index.mjs +843 -814
- package/dist/modules/authentication/dto/index.d.ts +1 -0
- package/dist/modules/authentication/dto/login-using-uuid.dto.d.ts +3 -0
- package/dist/modules/authentication/pattern/pattern.d.ts +2 -0
- package/dist/modules/client-admin/dto/index.d.ts +1 -0
- package/dist/modules/notification/pattern/pattern.d.ts +2 -0
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -21,6 +21,7 @@ var AUTHENTICATION_PATTERN = {
|
|
|
21
21
|
revokeSession: "revoke.session",
|
|
22
22
|
handleForgotPassword: "handle.forgot.password",
|
|
23
23
|
handleResetPassword: "handle.reset.password",
|
|
24
|
+
handleAdminResetPassword: "handle.admin.reset.password",
|
|
24
25
|
handleValidateResetPasswordToken: "handle.validate.reset.password.token",
|
|
25
26
|
handleVerifyPermission: "handle.verify.permission",
|
|
26
27
|
handleValidateEmail: "handle.validate.email",
|
|
@@ -32,7 +33,8 @@ var AUTHENTICATION_PATTERN = {
|
|
|
32
33
|
loginWithLinkedIn: "login.with.linkedin",
|
|
33
34
|
signUpWithGoogle: "signup.with.google",
|
|
34
35
|
loginWithGoogle: "login.with.google",
|
|
35
|
-
validateOnboardingToken: "validate.onboarding.token"
|
|
36
|
+
validateOnboardingToken: "validate.onboarding.token",
|
|
37
|
+
loginUsingUuid: "login.using.uuid"
|
|
36
38
|
};
|
|
37
39
|
|
|
38
40
|
// src/modules/authentication/dto/login.dto.ts
|
|
@@ -279,6 +281,15 @@ __decorateClass([
|
|
|
279
281
|
IsString2()
|
|
280
282
|
], SocialAuthDto.prototype, "providerId", 2);
|
|
281
283
|
|
|
284
|
+
// src/modules/authentication/dto/login-using-uuid.dto.ts
|
|
285
|
+
import { IsNotEmpty as IsNotEmpty12, IsString as IsString3 } from "class-validator";
|
|
286
|
+
var LoginUsingUuidDTO = class {
|
|
287
|
+
};
|
|
288
|
+
__decorateClass([
|
|
289
|
+
IsNotEmpty12({ message: "Uuid is required" }),
|
|
290
|
+
IsString3({ message: "uuid must be a string." })
|
|
291
|
+
], LoginUsingUuidDTO.prototype, "uuid", 2);
|
|
292
|
+
|
|
282
293
|
// src/modules/otp/pattern/pattern.ts
|
|
283
294
|
var OTP_PATTERN = {
|
|
284
295
|
handleSendGuestOtp: "handle.send.guest.otp",
|
|
@@ -289,7 +300,7 @@ var OTP_PATTERN = {
|
|
|
289
300
|
};
|
|
290
301
|
|
|
291
302
|
// src/modules/otp/dto/send-guest-otp.dto.ts
|
|
292
|
-
import { IsEnum as IsEnum9, IsNotEmpty as
|
|
303
|
+
import { IsEnum as IsEnum9, IsNotEmpty as IsNotEmpty13, IsOptional as IsOptional3, IsString as IsString4 } from "class-validator";
|
|
293
304
|
var SendGuestOtpPurposeEnum = /* @__PURE__ */ ((SendGuestOtpPurposeEnum2) => {
|
|
294
305
|
SendGuestOtpPurposeEnum2["ACCOUNT_VERIFICATION"] = "ACCOUNT_VERIFICATION";
|
|
295
306
|
return SendGuestOtpPurposeEnum2;
|
|
@@ -302,28 +313,28 @@ var SendGuestOtpScopeEnum = /* @__PURE__ */ ((SendGuestOtpScopeEnum2) => {
|
|
|
302
313
|
var SendGuestOtpDto = class {
|
|
303
314
|
};
|
|
304
315
|
__decorateClass([
|
|
305
|
-
|
|
306
|
-
|
|
316
|
+
IsNotEmpty13({ message: "Please enter full name." }),
|
|
317
|
+
IsString4({ message: "Please enter valid full name." })
|
|
307
318
|
], SendGuestOtpDto.prototype, "fullName", 2);
|
|
308
319
|
__decorateClass([
|
|
309
|
-
|
|
310
|
-
|
|
320
|
+
IsNotEmpty13({ message: "Please enter target." }),
|
|
321
|
+
IsString4({ message: "Please enter valid target." })
|
|
311
322
|
], SendGuestOtpDto.prototype, "target", 2);
|
|
312
323
|
__decorateClass([
|
|
313
324
|
IsOptional3(),
|
|
314
|
-
|
|
325
|
+
IsString4({ message: "Please enter valid fallback target." })
|
|
315
326
|
], SendGuestOtpDto.prototype, "fallbackTarget", 2);
|
|
316
327
|
__decorateClass([
|
|
317
|
-
|
|
328
|
+
IsNotEmpty13({ message: "Please enter OTP purpose." }),
|
|
318
329
|
IsEnum9(SendGuestOtpPurposeEnum, { message: "Purpose must be a valid OTP purpose" })
|
|
319
330
|
], SendGuestOtpDto.prototype, "purpose", 2);
|
|
320
331
|
__decorateClass([
|
|
321
|
-
|
|
332
|
+
IsNotEmpty13({ message: "Please enter scope." }),
|
|
322
333
|
IsEnum9(SendGuestOtpScopeEnum, { message: "scope must be a valid" })
|
|
323
334
|
], SendGuestOtpDto.prototype, "scope", 2);
|
|
324
335
|
|
|
325
336
|
// src/modules/otp/dto/send-login-otp.dto.ts
|
|
326
|
-
import { IsEnum as IsEnum10, IsNotEmpty as
|
|
337
|
+
import { IsEnum as IsEnum10, IsNotEmpty as IsNotEmpty14, IsString as IsString5 } from "class-validator";
|
|
327
338
|
var SendLoginOtpPurposeEnum = /* @__PURE__ */ ((SendLoginOtpPurposeEnum2) => {
|
|
328
339
|
SendLoginOtpPurposeEnum2["ACCOUNT_VERIFICATION"] = "ACCOUNT_VERIFICATION";
|
|
329
340
|
return SendLoginOtpPurposeEnum2;
|
|
@@ -336,20 +347,20 @@ var SendLoginOtpScopeEnum = /* @__PURE__ */ ((SendLoginOtpScopeEnum2) => {
|
|
|
336
347
|
var SendLoginOtpDto = class {
|
|
337
348
|
};
|
|
338
349
|
__decorateClass([
|
|
339
|
-
|
|
340
|
-
|
|
350
|
+
IsNotEmpty14({ message: "Please enter target." }),
|
|
351
|
+
IsString5({ message: "Please enter valid target." })
|
|
341
352
|
], SendLoginOtpDto.prototype, "target", 2);
|
|
342
353
|
__decorateClass([
|
|
343
|
-
|
|
354
|
+
IsNotEmpty14({ message: "Please enter OTP purpose." }),
|
|
344
355
|
IsEnum10(SendLoginOtpPurposeEnum, { message: "Purpose must be a valid OTP purpose" })
|
|
345
356
|
], SendLoginOtpDto.prototype, "purpose", 2);
|
|
346
357
|
__decorateClass([
|
|
347
|
-
|
|
358
|
+
IsNotEmpty14({ message: "Please enter scope." }),
|
|
348
359
|
IsEnum10(SendLoginOtpScopeEnum, { message: "scope must be a valid" })
|
|
349
360
|
], SendLoginOtpDto.prototype, "scope", 2);
|
|
350
361
|
|
|
351
362
|
// src/modules/otp/dto/verify-guest-otp.dto.ts
|
|
352
|
-
import { IsEnum as IsEnum11, IsNotEmpty as
|
|
363
|
+
import { IsEnum as IsEnum11, IsNotEmpty as IsNotEmpty15, IsString as IsString6, Length } from "class-validator";
|
|
353
364
|
var VerifyGuestOtpPurposeEnum = /* @__PURE__ */ ((VerifyGuestOtpPurposeEnum2) => {
|
|
354
365
|
VerifyGuestOtpPurposeEnum2["ACCOUNT_VERIFICATION"] = "ACCOUNT_VERIFICATION";
|
|
355
366
|
return VerifyGuestOtpPurposeEnum2;
|
|
@@ -357,49 +368,49 @@ var VerifyGuestOtpPurposeEnum = /* @__PURE__ */ ((VerifyGuestOtpPurposeEnum2) =>
|
|
|
357
368
|
var VerifyGuestOtpDto = class {
|
|
358
369
|
};
|
|
359
370
|
__decorateClass([
|
|
360
|
-
|
|
361
|
-
|
|
371
|
+
IsNotEmpty15({ message: "Please enter target." }),
|
|
372
|
+
IsString6({ message: "Please enter valid target." })
|
|
362
373
|
], VerifyGuestOtpDto.prototype, "target", 2);
|
|
363
374
|
__decorateClass([
|
|
364
|
-
|
|
365
|
-
|
|
375
|
+
IsNotEmpty15({ message: "Please enter otp." }),
|
|
376
|
+
IsString6({ message: "Please enter valid otp." }),
|
|
366
377
|
Length(4, 6, { message: "OTP must be between 4 and 6 characters" })
|
|
367
378
|
], VerifyGuestOtpDto.prototype, "otp", 2);
|
|
368
379
|
__decorateClass([
|
|
369
|
-
|
|
380
|
+
IsNotEmpty15({ message: "Please enter OTP purpose." }),
|
|
370
381
|
IsEnum11(VerifyGuestOtpPurposeEnum, {
|
|
371
382
|
message: "Purpose must be a valid OTP purpose"
|
|
372
383
|
})
|
|
373
384
|
], VerifyGuestOtpDto.prototype, "purpose", 2);
|
|
374
385
|
|
|
375
386
|
// src/modules/otp/dto/send-otp.dto.ts
|
|
376
|
-
import { IsNotEmpty as
|
|
387
|
+
import { IsNotEmpty as IsNotEmpty16, IsString as IsString7, IsOptional as IsOptional5, IsUUID } from "class-validator";
|
|
377
388
|
var SendOtpDto = class {
|
|
378
389
|
};
|
|
379
390
|
__decorateClass([
|
|
380
391
|
IsUUID("4", { message: "User ID must be a valid UUID." }),
|
|
381
|
-
|
|
392
|
+
IsNotEmpty16({ message: "User ID is required." })
|
|
382
393
|
], SendOtpDto.prototype, "userId", 2);
|
|
383
394
|
__decorateClass([
|
|
384
395
|
IsOptional5(),
|
|
385
|
-
|
|
396
|
+
IsString7({ message: "Purpose must be a string." })
|
|
386
397
|
], SendOtpDto.prototype, "purpose", 2);
|
|
387
398
|
|
|
388
399
|
// src/modules/otp/dto/verify-otp.dto.ts
|
|
389
|
-
import { IsNotEmpty as
|
|
400
|
+
import { IsNotEmpty as IsNotEmpty17, IsString as IsString8, IsOptional as IsOptional6, IsUUID as IsUUID2 } from "class-validator";
|
|
390
401
|
var VerifyOtpDto = class {
|
|
391
402
|
};
|
|
392
403
|
__decorateClass([
|
|
393
404
|
IsUUID2("4", { message: "User ID must be a valid UUID." }),
|
|
394
|
-
|
|
405
|
+
IsNotEmpty17({ message: "User ID is required." })
|
|
395
406
|
], VerifyOtpDto.prototype, "userId", 2);
|
|
396
407
|
__decorateClass([
|
|
397
|
-
|
|
398
|
-
|
|
408
|
+
IsNotEmpty17({ message: "OTP code is required." }),
|
|
409
|
+
IsString8({ message: "OTP code must be a string." })
|
|
399
410
|
], VerifyOtpDto.prototype, "otp", 2);
|
|
400
411
|
__decorateClass([
|
|
401
412
|
IsOptional6(),
|
|
402
|
-
|
|
413
|
+
IsString8({ message: "Purpose must be a string." })
|
|
403
414
|
], VerifyOtpDto.prototype, "purpose", 2);
|
|
404
415
|
|
|
405
416
|
// src/modules/onboarding/pattern/pattern.ts
|
|
@@ -428,10 +439,10 @@ var ONBOARDING_PATTERN = {
|
|
|
428
439
|
|
|
429
440
|
// src/modules/onboarding/dto/freelancer-create-account.dto.ts
|
|
430
441
|
import {
|
|
431
|
-
IsNotEmpty as
|
|
442
|
+
IsNotEmpty as IsNotEmpty18,
|
|
432
443
|
IsEmail as IsEmail4,
|
|
433
444
|
Matches as Matches3,
|
|
434
|
-
IsString as
|
|
445
|
+
IsString as IsString9,
|
|
435
446
|
IsOptional as IsOptional7
|
|
436
447
|
} from "class-validator";
|
|
437
448
|
|
|
@@ -608,123 +619,123 @@ function IsBusinessEmail(validationOptions) {
|
|
|
608
619
|
var FreelancerCreateAccountDto = class {
|
|
609
620
|
};
|
|
610
621
|
__decorateClass([
|
|
611
|
-
|
|
612
|
-
|
|
622
|
+
IsNotEmpty18({ message: "Please enter full name." }),
|
|
623
|
+
IsString9({ message: "Please enter valid full name." })
|
|
613
624
|
], FreelancerCreateAccountDto.prototype, "fullName", 2);
|
|
614
625
|
__decorateClass([
|
|
615
|
-
|
|
626
|
+
IsNotEmpty18({ message: "Please enter email." }),
|
|
616
627
|
IsEmail4()
|
|
617
628
|
], FreelancerCreateAccountDto.prototype, "email", 2);
|
|
618
629
|
__decorateClass([
|
|
619
|
-
|
|
630
|
+
IsNotEmpty18({ message: "Please enter mobile code." }),
|
|
620
631
|
Matches3(/^\+\d{1,4}$/, {
|
|
621
632
|
message: "Please enter a valid country mobile code (e.g., +91, +1, +44)."
|
|
622
633
|
})
|
|
623
634
|
], FreelancerCreateAccountDto.prototype, "mobileCode", 2);
|
|
624
635
|
__decorateClass([
|
|
625
|
-
|
|
636
|
+
IsNotEmpty18({ message: "Please enter mobile number." }),
|
|
626
637
|
IsValidMobileNumber({ message: "Mobile number is not valid for the selected country code." })
|
|
627
638
|
], FreelancerCreateAccountDto.prototype, "mobile", 2);
|
|
628
639
|
__decorateClass([
|
|
629
|
-
|
|
640
|
+
IsNotEmpty18({ message: "Please enter country iso code." })
|
|
630
641
|
], FreelancerCreateAccountDto.prototype, "countryISOCode", 2);
|
|
631
642
|
__decorateClass([
|
|
632
643
|
IsOptional7()
|
|
633
644
|
], FreelancerCreateAccountDto.prototype, "onBoardedBy", 2);
|
|
634
645
|
|
|
635
646
|
// src/modules/onboarding/dto/freelancer-upload-resume.dto.ts
|
|
636
|
-
import { IsUUID as IsUUID3, IsNotEmpty as
|
|
647
|
+
import { IsUUID as IsUUID3, IsNotEmpty as IsNotEmpty19 } from "class-validator";
|
|
637
648
|
var FreelancerUploadResumeDto = class {
|
|
638
649
|
};
|
|
639
650
|
__decorateClass([
|
|
640
|
-
|
|
651
|
+
IsNotEmpty19({ message: "Please enter uuid." }),
|
|
641
652
|
IsUUID3()
|
|
642
653
|
], FreelancerUploadResumeDto.prototype, "uuid", 2);
|
|
643
654
|
|
|
644
655
|
// src/modules/onboarding/dto/freelancer-parse-resume.dto.ts
|
|
645
|
-
import { IsUUID as IsUUID4, IsNotEmpty as
|
|
656
|
+
import { IsUUID as IsUUID4, IsNotEmpty as IsNotEmpty20 } from "class-validator";
|
|
646
657
|
var FreelancerParseResumeDto = class {
|
|
647
658
|
};
|
|
648
659
|
__decorateClass([
|
|
649
|
-
|
|
660
|
+
IsNotEmpty20({ message: "Please enter uuid." }),
|
|
650
661
|
IsUUID4()
|
|
651
662
|
], FreelancerParseResumeDto.prototype, "uuid", 2);
|
|
652
663
|
|
|
653
664
|
// src/modules/onboarding/dto/freelancer-initiate-mcq-assessment.dto.ts
|
|
654
|
-
import { IsUUID as IsUUID5, IsNotEmpty as
|
|
665
|
+
import { IsUUID as IsUUID5, IsNotEmpty as IsNotEmpty21 } from "class-validator";
|
|
655
666
|
var FreelancerInitiateMcqAssessmentDto = class {
|
|
656
667
|
};
|
|
657
668
|
__decorateClass([
|
|
658
|
-
|
|
669
|
+
IsNotEmpty21({ message: "Please enter uuid." }),
|
|
659
670
|
IsUUID5()
|
|
660
671
|
], FreelancerInitiateMcqAssessmentDto.prototype, "uuid", 2);
|
|
661
672
|
|
|
662
673
|
// src/modules/onboarding/dto/freelancer-skip-ai-assessment.dto.ts
|
|
663
|
-
import { IsUUID as IsUUID6, IsNotEmpty as
|
|
674
|
+
import { IsUUID as IsUUID6, IsNotEmpty as IsNotEmpty22 } from "class-validator";
|
|
664
675
|
var FreelancerSkipAiAssessmentDto = class {
|
|
665
676
|
};
|
|
666
677
|
__decorateClass([
|
|
667
|
-
|
|
678
|
+
IsNotEmpty22({ message: "Please enter uuid." }),
|
|
668
679
|
IsUUID6()
|
|
669
680
|
], FreelancerSkipAiAssessmentDto.prototype, "uuid", 2);
|
|
670
681
|
|
|
671
682
|
// src/modules/onboarding/dto/freelancer-initiate-ai-assessment.dto.ts
|
|
672
|
-
import { IsUUID as IsUUID7, IsNotEmpty as
|
|
683
|
+
import { IsUUID as IsUUID7, IsNotEmpty as IsNotEmpty23 } from "class-validator";
|
|
673
684
|
var FreelancerInitiateAiAssessmentDto = class {
|
|
674
685
|
};
|
|
675
686
|
__decorateClass([
|
|
676
|
-
|
|
687
|
+
IsNotEmpty23({ message: "Please enter uuid." }),
|
|
677
688
|
IsUUID7()
|
|
678
689
|
], FreelancerInitiateAiAssessmentDto.prototype, "uuid", 2);
|
|
679
690
|
|
|
680
691
|
// src/modules/onboarding/dto/freelancer-capture-ai-assessment-status.dto.ts
|
|
681
|
-
import { IsUUID as IsUUID8, IsNotEmpty as
|
|
692
|
+
import { IsUUID as IsUUID8, IsNotEmpty as IsNotEmpty24, IsOptional as IsOptional8 } from "class-validator";
|
|
682
693
|
var FreelancerCaptureAiAssessmentStatusDto = class {
|
|
683
694
|
};
|
|
684
695
|
__decorateClass([
|
|
685
|
-
|
|
696
|
+
IsNotEmpty24({ message: "Please enter uuid." }),
|
|
686
697
|
IsUUID8()
|
|
687
698
|
], FreelancerCaptureAiAssessmentStatusDto.prototype, "uuid", 2);
|
|
688
699
|
__decorateClass([
|
|
689
|
-
|
|
700
|
+
IsNotEmpty24({ message: "Please enter assessment id." })
|
|
690
701
|
], FreelancerCaptureAiAssessmentStatusDto.prototype, "assessmentId", 2);
|
|
691
702
|
__decorateClass([
|
|
692
|
-
|
|
703
|
+
IsNotEmpty24({ message: "Please enter assessment status." })
|
|
693
704
|
], FreelancerCaptureAiAssessmentStatusDto.prototype, "assessmentStatus", 2);
|
|
694
705
|
__decorateClass([
|
|
695
706
|
IsOptional8()
|
|
696
707
|
], FreelancerCaptureAiAssessmentStatusDto.prototype, "iframeEventData", 2);
|
|
697
708
|
|
|
698
709
|
// src/modules/onboarding/dto/freelancer-development-preference.dto.ts
|
|
699
|
-
import { IsUUID as IsUUID9, IsNotEmpty as
|
|
710
|
+
import { IsUUID as IsUUID9, IsNotEmpty as IsNotEmpty25, IsBoolean } from "class-validator";
|
|
700
711
|
var FreelancerDevelopmentPreferenceDto = class {
|
|
701
712
|
};
|
|
702
713
|
__decorateClass([
|
|
703
|
-
|
|
714
|
+
IsNotEmpty25({ message: "Please enter uuid." }),
|
|
704
715
|
IsUUID9()
|
|
705
716
|
], FreelancerDevelopmentPreferenceDto.prototype, "uuid", 2);
|
|
706
717
|
__decorateClass([
|
|
707
|
-
|
|
718
|
+
IsNotEmpty25({ message: "Please select development flag." }),
|
|
708
719
|
IsBoolean()
|
|
709
720
|
], FreelancerDevelopmentPreferenceDto.prototype, "developer", 2);
|
|
710
721
|
|
|
711
722
|
// src/modules/onboarding/dto/freelancer-profile-question.dto.ts
|
|
712
723
|
import {
|
|
713
724
|
IsUUID as IsUUID10,
|
|
714
|
-
IsString as
|
|
715
|
-
IsNotEmpty as
|
|
725
|
+
IsString as IsString10,
|
|
726
|
+
IsNotEmpty as IsNotEmpty26,
|
|
716
727
|
IsIn,
|
|
717
728
|
IsOptional as IsOptional9
|
|
718
729
|
} from "class-validator";
|
|
719
730
|
var FreelancerProfileQuestionDto = class {
|
|
720
731
|
};
|
|
721
732
|
__decorateClass([
|
|
722
|
-
|
|
733
|
+
IsNotEmpty26({ message: "Please enter uuid." }),
|
|
723
734
|
IsUUID10()
|
|
724
735
|
], FreelancerProfileQuestionDto.prototype, "uuid", 2);
|
|
725
736
|
__decorateClass([
|
|
726
|
-
|
|
727
|
-
|
|
737
|
+
IsNotEmpty26({ message: "Please enter question slug." }),
|
|
738
|
+
IsString10(),
|
|
728
739
|
IsIn([
|
|
729
740
|
"natureOfWork",
|
|
730
741
|
"expectedHourlyCompensation",
|
|
@@ -734,7 +745,7 @@ __decorateClass([
|
|
|
734
745
|
])
|
|
735
746
|
], FreelancerProfileQuestionDto.prototype, "question_slug", 2);
|
|
736
747
|
__decorateClass([
|
|
737
|
-
|
|
748
|
+
IsNotEmpty26({ message: "Please enter answer." })
|
|
738
749
|
], FreelancerProfileQuestionDto.prototype, "answer", 2);
|
|
739
750
|
__decorateClass([
|
|
740
751
|
IsOptional9()
|
|
@@ -748,21 +759,21 @@ __decorateClass([
|
|
|
748
759
|
|
|
749
760
|
// src/modules/onboarding/dto/freelancer-work-showcase.dto.ts
|
|
750
761
|
import {
|
|
751
|
-
IsNotEmpty as
|
|
762
|
+
IsNotEmpty as IsNotEmpty27,
|
|
752
763
|
IsOptional as IsOptional10,
|
|
753
764
|
IsUrl,
|
|
754
|
-
IsString as
|
|
765
|
+
IsString as IsString11,
|
|
755
766
|
IsUUID as IsUUID11
|
|
756
767
|
} from "class-validator";
|
|
757
768
|
var FreelancerWorkShowcaseDto = class {
|
|
758
769
|
};
|
|
759
770
|
__decorateClass([
|
|
760
|
-
|
|
771
|
+
IsNotEmpty27({ message: "Please enter uuid." }),
|
|
761
772
|
IsUUID11()
|
|
762
773
|
], FreelancerWorkShowcaseDto.prototype, "uuid", 2);
|
|
763
774
|
__decorateClass([
|
|
764
|
-
|
|
765
|
-
|
|
775
|
+
IsNotEmpty27({ message: "Please enter likedin profile url." }),
|
|
776
|
+
IsString11(),
|
|
766
777
|
IsUrl(
|
|
767
778
|
{ require_protocol: false },
|
|
768
779
|
{
|
|
@@ -810,8 +821,8 @@ __decorateClass([
|
|
|
810
821
|
// src/modules/onboarding/dto/client-profile-question.dto.ts
|
|
811
822
|
import {
|
|
812
823
|
IsUUID as IsUUID12,
|
|
813
|
-
IsString as
|
|
814
|
-
IsNotEmpty as
|
|
824
|
+
IsString as IsString12,
|
|
825
|
+
IsNotEmpty as IsNotEmpty28,
|
|
815
826
|
IsIn as IsIn2,
|
|
816
827
|
ValidateIf,
|
|
817
828
|
IsOptional as IsOptional11
|
|
@@ -819,12 +830,12 @@ import {
|
|
|
819
830
|
var ClientProfileQuestionDto = class {
|
|
820
831
|
};
|
|
821
832
|
__decorateClass([
|
|
822
|
-
|
|
833
|
+
IsNotEmpty28({ message: "Please enter uuid." }),
|
|
823
834
|
IsUUID12()
|
|
824
835
|
], ClientProfileQuestionDto.prototype, "uuid", 2);
|
|
825
836
|
__decorateClass([
|
|
826
|
-
|
|
827
|
-
|
|
837
|
+
IsNotEmpty28({ message: "Please enter question slug." }),
|
|
838
|
+
IsString12(),
|
|
828
839
|
IsIn2([
|
|
829
840
|
"skills",
|
|
830
841
|
"requiredFreelancer",
|
|
@@ -834,50 +845,50 @@ __decorateClass([
|
|
|
834
845
|
])
|
|
835
846
|
], ClientProfileQuestionDto.prototype, "question_slug", 2);
|
|
836
847
|
__decorateClass([
|
|
837
|
-
|
|
848
|
+
IsNotEmpty28({ message: "Please enter answer." })
|
|
838
849
|
], ClientProfileQuestionDto.prototype, "answer", 2);
|
|
839
850
|
__decorateClass([
|
|
840
851
|
IsOptional11()
|
|
841
852
|
], ClientProfileQuestionDto.prototype, "numberOfHours", 2);
|
|
842
853
|
__decorateClass([
|
|
843
854
|
ValidateIf((o) => o.questionSlug === "foundUsOn" && o.answer === "OTHER"),
|
|
844
|
-
|
|
845
|
-
|
|
855
|
+
IsNotEmpty28({ message: "Please enter foundUsOnDetail if answer is OTHER." }),
|
|
856
|
+
IsString12()
|
|
846
857
|
], ClientProfileQuestionDto.prototype, "foundUsOnDetail", 2);
|
|
847
858
|
|
|
848
859
|
// src/modules/onboarding/dto/client-create-account.dto.ts
|
|
849
860
|
import {
|
|
850
|
-
IsNotEmpty as
|
|
861
|
+
IsNotEmpty as IsNotEmpty29,
|
|
851
862
|
IsEmail as IsEmail5,
|
|
852
|
-
IsString as
|
|
863
|
+
IsString as IsString13,
|
|
853
864
|
IsOptional as IsOptional12
|
|
854
865
|
} from "class-validator";
|
|
855
866
|
var ClientCreateAccountDto = class {
|
|
856
867
|
};
|
|
857
868
|
__decorateClass([
|
|
858
|
-
|
|
859
|
-
|
|
869
|
+
IsNotEmpty29({ message: "Please enter full name." }),
|
|
870
|
+
IsString13({ message: "Please enter valid full name." })
|
|
860
871
|
], ClientCreateAccountDto.prototype, "fullName", 2);
|
|
861
872
|
__decorateClass([
|
|
862
|
-
|
|
873
|
+
IsNotEmpty29({ message: "Please enter email." }),
|
|
863
874
|
IsEmail5(),
|
|
864
875
|
IsBusinessEmail()
|
|
865
876
|
], ClientCreateAccountDto.prototype, "email", 2);
|
|
866
877
|
__decorateClass([
|
|
867
|
-
|
|
868
|
-
|
|
878
|
+
IsNotEmpty29({ message: "Please enter company name." }),
|
|
879
|
+
IsString13({ message: "Please enter valid company name." })
|
|
869
880
|
], ClientCreateAccountDto.prototype, "companyName", 2);
|
|
870
881
|
__decorateClass([
|
|
871
882
|
IsOptional12()
|
|
872
883
|
], ClientCreateAccountDto.prototype, "onBoardedBy", 2);
|
|
873
884
|
|
|
874
885
|
// src/modules/onboarding/dto/verify-onboarding-token.dto.ts
|
|
875
|
-
import { IsNotEmpty as
|
|
886
|
+
import { IsNotEmpty as IsNotEmpty30, IsUUID as IsUUID13 } from "class-validator";
|
|
876
887
|
var VerifyOnboardingTokenDto = class {
|
|
877
888
|
};
|
|
878
889
|
__decorateClass([
|
|
879
890
|
IsUUID13("4", { message: "UUID must be a valid UUID." }),
|
|
880
|
-
|
|
891
|
+
IsNotEmpty30({ message: "UUID is required." })
|
|
881
892
|
], VerifyOnboardingTokenDto.prototype, "uuid", 2);
|
|
882
893
|
|
|
883
894
|
// src/modules/maintenance/pattern/pattern.ts
|
|
@@ -910,7 +921,7 @@ var SUBADMIN_PATTERN = {
|
|
|
910
921
|
|
|
911
922
|
// src/modules/user/subadmin/dto/create-subadmin.dto.ts
|
|
912
923
|
import {
|
|
913
|
-
IsNotEmpty as
|
|
924
|
+
IsNotEmpty as IsNotEmpty31,
|
|
914
925
|
IsEnum as IsEnum12
|
|
915
926
|
} from "class-validator";
|
|
916
927
|
var AccountType = /* @__PURE__ */ ((AccountType4) => {
|
|
@@ -921,47 +932,47 @@ var AccountType = /* @__PURE__ */ ((AccountType4) => {
|
|
|
921
932
|
var CreateSubAdminDto = class {
|
|
922
933
|
};
|
|
923
934
|
__decorateClass([
|
|
924
|
-
|
|
935
|
+
IsNotEmpty31({ message: "Please enter username." })
|
|
925
936
|
], CreateSubAdminDto.prototype, "userName", 2);
|
|
926
937
|
__decorateClass([
|
|
927
|
-
|
|
938
|
+
IsNotEmpty31({ message: "Please enter first name." })
|
|
928
939
|
], CreateSubAdminDto.prototype, "firstName", 2);
|
|
929
940
|
__decorateClass([
|
|
930
|
-
|
|
941
|
+
IsNotEmpty31({ message: "Please enter last name." })
|
|
931
942
|
], CreateSubAdminDto.prototype, "lastName", 2);
|
|
932
943
|
__decorateClass([
|
|
933
|
-
|
|
944
|
+
IsNotEmpty31({ message: "Please enter account type." }),
|
|
934
945
|
IsEnum12(AccountType, {
|
|
935
946
|
message: `Account type must be one of: ${Object.values(AccountType).join(", ")}`
|
|
936
947
|
})
|
|
937
948
|
], CreateSubAdminDto.prototype, "accountType", 2);
|
|
938
949
|
__decorateClass([
|
|
939
|
-
|
|
950
|
+
IsNotEmpty31({ message: "Please enter email." })
|
|
940
951
|
], CreateSubAdminDto.prototype, "email", 2);
|
|
941
952
|
__decorateClass([
|
|
942
|
-
|
|
953
|
+
IsNotEmpty31({ message: "Please enter mobile Code." })
|
|
943
954
|
], CreateSubAdminDto.prototype, "mobileCode", 2);
|
|
944
955
|
__decorateClass([
|
|
945
|
-
|
|
956
|
+
IsNotEmpty31({ message: "Please enter mobile number." })
|
|
946
957
|
], CreateSubAdminDto.prototype, "mobile", 2);
|
|
947
958
|
__decorateClass([
|
|
948
|
-
|
|
959
|
+
IsNotEmpty31({ message: "Please enter the password." })
|
|
949
960
|
], CreateSubAdminDto.prototype, "password", 2);
|
|
950
961
|
__decorateClass([
|
|
951
|
-
|
|
962
|
+
IsNotEmpty31({ message: "Please Select Roles." })
|
|
952
963
|
], CreateSubAdminDto.prototype, "roleIds", 2);
|
|
953
964
|
|
|
954
965
|
// src/modules/user/subadmin/dto/update-subadmin-status.dto.ts
|
|
955
|
-
import { IsString as
|
|
966
|
+
import { IsString as IsString14 } from "class-validator";
|
|
956
967
|
var UpdateSubAdminAccountStatusDto = class {
|
|
957
968
|
};
|
|
958
969
|
__decorateClass([
|
|
959
|
-
|
|
970
|
+
IsString14()
|
|
960
971
|
], UpdateSubAdminAccountStatusDto.prototype, "accountStatus", 2);
|
|
961
972
|
|
|
962
973
|
// src/modules/user/subadmin/dto/update-subadmin.dto.ts
|
|
963
974
|
import { Transform } from "class-transformer";
|
|
964
|
-
import { IsNotEmpty as
|
|
975
|
+
import { IsNotEmpty as IsNotEmpty32, IsOptional as IsOptional13, Matches as Matches5, MaxLength as MaxLength5, MinLength as MinLength5, IsEnum as IsEnum13 } from "class-validator";
|
|
965
976
|
var AccountType2 = /* @__PURE__ */ ((AccountType4) => {
|
|
966
977
|
AccountType4["ADMIN"] = "ADMIN";
|
|
967
978
|
AccountType4["SUB_ADMIN"] = "SUB_ADMIN";
|
|
@@ -970,28 +981,28 @@ var AccountType2 = /* @__PURE__ */ ((AccountType4) => {
|
|
|
970
981
|
var UpdateSubAdminDto = class {
|
|
971
982
|
};
|
|
972
983
|
__decorateClass([
|
|
973
|
-
|
|
984
|
+
IsNotEmpty32({ message: "Please enter username." })
|
|
974
985
|
], UpdateSubAdminDto.prototype, "userName", 2);
|
|
975
986
|
__decorateClass([
|
|
976
|
-
|
|
987
|
+
IsNotEmpty32({ message: "Please enter first name." })
|
|
977
988
|
], UpdateSubAdminDto.prototype, "firstName", 2);
|
|
978
989
|
__decorateClass([
|
|
979
|
-
|
|
990
|
+
IsNotEmpty32({ message: "Please enter last name." })
|
|
980
991
|
], UpdateSubAdminDto.prototype, "lastName", 2);
|
|
981
992
|
__decorateClass([
|
|
982
|
-
|
|
993
|
+
IsNotEmpty32({ message: "Please enter account type." }),
|
|
983
994
|
IsEnum13(AccountType2, {
|
|
984
995
|
message: `Account type must be one of: ${Object.values(AccountType2).join(", ")}`
|
|
985
996
|
})
|
|
986
997
|
], UpdateSubAdminDto.prototype, "accountType", 2);
|
|
987
998
|
__decorateClass([
|
|
988
|
-
|
|
999
|
+
IsNotEmpty32({ message: "Please enter email." })
|
|
989
1000
|
], UpdateSubAdminDto.prototype, "email", 2);
|
|
990
1001
|
__decorateClass([
|
|
991
|
-
|
|
1002
|
+
IsNotEmpty32({ message: "Please enter mobile Code." })
|
|
992
1003
|
], UpdateSubAdminDto.prototype, "mobileCode", 2);
|
|
993
1004
|
__decorateClass([
|
|
994
|
-
|
|
1005
|
+
IsNotEmpty32({ message: "Please enter mobile number." })
|
|
995
1006
|
], UpdateSubAdminDto.prototype, "mobile", 2);
|
|
996
1007
|
__decorateClass([
|
|
997
1008
|
IsOptional13(),
|
|
@@ -1003,7 +1014,7 @@ __decorateClass([
|
|
|
1003
1014
|
})
|
|
1004
1015
|
], UpdateSubAdminDto.prototype, "password", 2);
|
|
1005
1016
|
__decorateClass([
|
|
1006
|
-
|
|
1017
|
+
IsNotEmpty32({ message: "Please Select Roles." })
|
|
1007
1018
|
], UpdateSubAdminDto.prototype, "roleIds", 2);
|
|
1008
1019
|
|
|
1009
1020
|
// src/modules/user/client-profile/pattern/pattern.ts
|
|
@@ -1031,8 +1042,8 @@ var CLIENT_PROFILE_PATTERN = {
|
|
|
1031
1042
|
|
|
1032
1043
|
// src/modules/user/client-profile/dto/update-client-profile.dto.ts
|
|
1033
1044
|
import {
|
|
1034
|
-
IsString as
|
|
1035
|
-
IsNotEmpty as
|
|
1045
|
+
IsString as IsString15,
|
|
1046
|
+
IsNotEmpty as IsNotEmpty33,
|
|
1036
1047
|
IsEmail as IsEmail6,
|
|
1037
1048
|
Length as Length2,
|
|
1038
1049
|
IsUrl as IsUrl2,
|
|
@@ -1043,8 +1054,8 @@ import {
|
|
|
1043
1054
|
var UpdateCompanyProfileDto = class {
|
|
1044
1055
|
};
|
|
1045
1056
|
__decorateClass([
|
|
1046
|
-
|
|
1047
|
-
|
|
1057
|
+
IsNotEmpty33({ message: "Please enter company name." }),
|
|
1058
|
+
IsString15({ message: "Company name must be a string." }),
|
|
1048
1059
|
Length2(2, 255, {
|
|
1049
1060
|
message: "Company name must be between 2 and 255 characters"
|
|
1050
1061
|
})
|
|
@@ -1067,83 +1078,83 @@ __decorateClass([
|
|
|
1067
1078
|
IsNumber()
|
|
1068
1079
|
], UpdateCompanyProfileDto.prototype, "cityId", 2);
|
|
1069
1080
|
__decorateClass([
|
|
1070
|
-
|
|
1071
|
-
|
|
1081
|
+
IsNotEmpty33({ message: "Please enter company address." }),
|
|
1082
|
+
IsString15({ message: "Company address must be a string" }),
|
|
1072
1083
|
Length2(5, 1e3, { message: "Address must be between 5 and 1000 characters" })
|
|
1073
1084
|
], UpdateCompanyProfileDto.prototype, "companyAddress", 2);
|
|
1074
1085
|
__decorateClass([
|
|
1075
1086
|
IsOptional14(),
|
|
1076
|
-
|
|
1087
|
+
IsString15({ message: "Address line must be a string" })
|
|
1077
1088
|
], UpdateCompanyProfileDto.prototype, "addressLine", 2);
|
|
1078
1089
|
__decorateClass([
|
|
1079
|
-
|
|
1080
|
-
|
|
1090
|
+
IsNotEmpty33({ message: "Please enter postal code." }),
|
|
1091
|
+
IsString15({ message: "Postal Code must be a string" })
|
|
1081
1092
|
], UpdateCompanyProfileDto.prototype, "postalCode", 2);
|
|
1082
1093
|
__decorateClass([
|
|
1083
|
-
|
|
1084
|
-
|
|
1094
|
+
IsNotEmpty33({ message: "Please enter mobile code." }),
|
|
1095
|
+
IsString15({ message: "Mobile Code must be a string" })
|
|
1085
1096
|
], UpdateCompanyProfileDto.prototype, "mobileCode", 2);
|
|
1086
1097
|
// @Matches(/^(\+1\s?)?(\(?\d{3}\)?[\s.-]?)?\d{3}[\s.-]?\d{4}$/, {
|
|
1087
1098
|
// message: "Please enter a valid US phone number",
|
|
1088
1099
|
// })
|
|
1089
1100
|
__decorateClass([
|
|
1090
|
-
|
|
1091
|
-
|
|
1101
|
+
IsNotEmpty33({ message: "Please enter phone number." }),
|
|
1102
|
+
IsString15({ message: "Please enter valid phone number." })
|
|
1092
1103
|
], UpdateCompanyProfileDto.prototype, "phoneNumber", 2);
|
|
1093
1104
|
__decorateClass([
|
|
1094
|
-
|
|
1105
|
+
IsNotEmpty33({ message: "Please enter email." }),
|
|
1095
1106
|
IsEmail6()
|
|
1096
1107
|
], UpdateCompanyProfileDto.prototype, "email", 2);
|
|
1097
1108
|
__decorateClass([
|
|
1098
1109
|
IsOptional14(),
|
|
1099
|
-
|
|
1110
|
+
IsString15({ message: "About company must be a string." })
|
|
1100
1111
|
], UpdateCompanyProfileDto.prototype, "aboutCompany", 2);
|
|
1101
1112
|
|
|
1102
1113
|
// src/modules/user/client-profile/dto/client-change-password.dto.ts
|
|
1103
1114
|
import {
|
|
1104
|
-
IsString as
|
|
1115
|
+
IsString as IsString16,
|
|
1105
1116
|
MinLength as MinLength6,
|
|
1106
1117
|
Matches as Matches7,
|
|
1107
|
-
IsNotEmpty as
|
|
1118
|
+
IsNotEmpty as IsNotEmpty34
|
|
1108
1119
|
} from "class-validator";
|
|
1109
1120
|
var ClientChangePasswordDto = class {
|
|
1110
1121
|
};
|
|
1111
1122
|
__decorateClass([
|
|
1112
|
-
|
|
1123
|
+
IsString16(),
|
|
1113
1124
|
MinLength6(8, { message: "Password must be at least 8 characters long." }),
|
|
1114
1125
|
Matches7(/^(?=.*[A-Z])(?=.*\d).+$/, {
|
|
1115
1126
|
message: "Password must contain at least one uppercase letter and one number."
|
|
1116
1127
|
})
|
|
1117
1128
|
], ClientChangePasswordDto.prototype, "newPassword", 2);
|
|
1118
1129
|
__decorateClass([
|
|
1119
|
-
|
|
1130
|
+
IsNotEmpty34({ message: "Please enter confirm password." }),
|
|
1120
1131
|
Match("newPassword", { message: "Passwords do not match" })
|
|
1121
1132
|
], ClientChangePasswordDto.prototype, "confirmPassword", 2);
|
|
1122
1133
|
|
|
1123
1134
|
// src/modules/user/client-profile/dto/client-service-agreement-upload.dto.ts
|
|
1124
|
-
import { IsOptional as IsOptional15, IsString as
|
|
1135
|
+
import { IsOptional as IsOptional15, IsString as IsString17 } from "class-validator";
|
|
1125
1136
|
var ClientServiceAgreementUploadDto = class {
|
|
1126
1137
|
};
|
|
1127
1138
|
__decorateClass([
|
|
1128
1139
|
IsOptional15(),
|
|
1129
|
-
|
|
1140
|
+
IsString17()
|
|
1130
1141
|
], ClientServiceAgreementUploadDto.prototype, "serviceAgreementSignedOn", 2);
|
|
1131
1142
|
|
|
1132
1143
|
// src/modules/user/client-profile/dto/client-e-signature.dto.ts
|
|
1133
|
-
import { IsNotEmpty as
|
|
1144
|
+
import { IsNotEmpty as IsNotEmpty35, IsUUID as IsUUID14 } from "class-validator";
|
|
1134
1145
|
var ClientESignatureDto = class {
|
|
1135
1146
|
};
|
|
1136
1147
|
__decorateClass([
|
|
1137
1148
|
IsUUID14("4", { message: "Client UUID must be a valid UUID." }),
|
|
1138
|
-
|
|
1149
|
+
IsNotEmpty35({ message: "Client UUID is required." })
|
|
1139
1150
|
], ClientESignatureDto.prototype, "uuid", 2);
|
|
1140
1151
|
|
|
1141
1152
|
// src/modules/user/client-profile/dto/fetch-freelancer-info-for-chat.dto.ts
|
|
1142
|
-
import { IsNotEmpty as
|
|
1153
|
+
import { IsNotEmpty as IsNotEmpty36, IsNumber as IsNumber2 } from "class-validator";
|
|
1143
1154
|
var FetchFreelancerInfoForChatDto = class {
|
|
1144
1155
|
};
|
|
1145
1156
|
__decorateClass([
|
|
1146
|
-
|
|
1157
|
+
IsNotEmpty36({ message: "Freelancer ID is required" }),
|
|
1147
1158
|
IsNumber2({}, { message: "Freelancer ID must be a number" })
|
|
1148
1159
|
], FetchFreelancerInfoForChatDto.prototype, "freelancerId", 2);
|
|
1149
1160
|
|
|
@@ -1161,23 +1172,23 @@ var ASSESSMENT_QUESTION_PATTERN = {
|
|
|
1161
1172
|
|
|
1162
1173
|
// src/modules/question/dto/create-question.dto.ts
|
|
1163
1174
|
import {
|
|
1164
|
-
IsNotEmpty as
|
|
1175
|
+
IsNotEmpty as IsNotEmpty37,
|
|
1165
1176
|
IsOptional as IsOptional16,
|
|
1166
1177
|
IsBoolean as IsBoolean2
|
|
1167
1178
|
} from "class-validator";
|
|
1168
1179
|
var CreateQuestionDto = class {
|
|
1169
1180
|
};
|
|
1170
1181
|
__decorateClass([
|
|
1171
|
-
|
|
1182
|
+
IsNotEmpty37({ message: "Please enter unique id." })
|
|
1172
1183
|
], CreateQuestionDto.prototype, "questionId", 2);
|
|
1173
1184
|
__decorateClass([
|
|
1174
|
-
|
|
1185
|
+
IsNotEmpty37({ message: "Please enter question." })
|
|
1175
1186
|
], CreateQuestionDto.prototype, "question", 2);
|
|
1176
1187
|
__decorateClass([
|
|
1177
|
-
|
|
1188
|
+
IsNotEmpty37({ message: "Please enter for whom the question is." })
|
|
1178
1189
|
], CreateQuestionDto.prototype, "questionFor", 2);
|
|
1179
1190
|
__decorateClass([
|
|
1180
|
-
|
|
1191
|
+
IsNotEmpty37({ message: "Please enter options." })
|
|
1181
1192
|
], CreateQuestionDto.prototype, "options", 2);
|
|
1182
1193
|
__decorateClass([
|
|
1183
1194
|
IsOptional16(),
|
|
@@ -1185,42 +1196,42 @@ __decorateClass([
|
|
|
1185
1196
|
], CreateQuestionDto.prototype, "isActive", 2);
|
|
1186
1197
|
|
|
1187
1198
|
// src/modules/question/dto/record-assessment-answer.dto.ts
|
|
1188
|
-
import { IsNotEmpty as
|
|
1199
|
+
import { IsNotEmpty as IsNotEmpty38, IsString as IsString18, IsOptional as IsOptional17, IsObject as IsObject2 } from "class-validator";
|
|
1189
1200
|
var RecordAssessmentAnswerDto = class {
|
|
1190
1201
|
};
|
|
1191
1202
|
__decorateClass([
|
|
1192
|
-
|
|
1193
|
-
|
|
1203
|
+
IsNotEmpty38({ message: "Question ID is required" }),
|
|
1204
|
+
IsString18({ message: "Question ID must be a string" })
|
|
1194
1205
|
], RecordAssessmentAnswerDto.prototype, "questionId", 2);
|
|
1195
1206
|
__decorateClass([
|
|
1196
|
-
|
|
1207
|
+
IsNotEmpty38({ message: "Answer is required" }),
|
|
1197
1208
|
IsObject2()
|
|
1198
1209
|
], RecordAssessmentAnswerDto.prototype, "answer", 2);
|
|
1199
1210
|
__decorateClass([
|
|
1200
1211
|
IsOptional17(),
|
|
1201
|
-
|
|
1212
|
+
IsString18()
|
|
1202
1213
|
], RecordAssessmentAnswerDto.prototype, "assessmentId", 2);
|
|
1203
1214
|
__decorateClass([
|
|
1204
1215
|
IsOptional17(),
|
|
1205
|
-
|
|
1216
|
+
IsString18()
|
|
1206
1217
|
], RecordAssessmentAnswerDto.prototype, "userId", 2);
|
|
1207
1218
|
|
|
1208
1219
|
// src/modules/question/dto/record-assessment-answers.dto.ts
|
|
1209
|
-
import { IsNotEmpty as
|
|
1220
|
+
import { IsNotEmpty as IsNotEmpty39, IsArray, IsObject as IsObject3, IsOptional as IsOptional18, IsString as IsString19 } from "class-validator";
|
|
1210
1221
|
var RecordAssessmentAnswersDto = class {
|
|
1211
1222
|
};
|
|
1212
1223
|
__decorateClass([
|
|
1213
|
-
|
|
1224
|
+
IsNotEmpty39({ message: "Answers array is required" }),
|
|
1214
1225
|
IsArray({ message: "Answers must be an array" }),
|
|
1215
1226
|
IsObject3({ each: true, message: "Each answer must be an object" })
|
|
1216
1227
|
], RecordAssessmentAnswersDto.prototype, "answers", 2);
|
|
1217
1228
|
__decorateClass([
|
|
1218
1229
|
IsOptional18(),
|
|
1219
|
-
|
|
1230
|
+
IsString19()
|
|
1220
1231
|
], RecordAssessmentAnswersDto.prototype, "assessmentId", 2);
|
|
1221
1232
|
__decorateClass([
|
|
1222
1233
|
IsOptional18(),
|
|
1223
|
-
|
|
1234
|
+
IsString19()
|
|
1224
1235
|
], RecordAssessmentAnswersDto.prototype, "userId", 2);
|
|
1225
1236
|
|
|
1226
1237
|
// src/modules/job/pattern/pattern.ts
|
|
@@ -1280,8 +1291,8 @@ var JOB_APPLICATION_PATTERN = {
|
|
|
1280
1291
|
|
|
1281
1292
|
// src/modules/job/dto/job-basic-information.dto.ts
|
|
1282
1293
|
import {
|
|
1283
|
-
IsString as
|
|
1284
|
-
IsNotEmpty as
|
|
1294
|
+
IsString as IsString20,
|
|
1295
|
+
IsNotEmpty as IsNotEmpty40,
|
|
1285
1296
|
IsArray as IsArray2,
|
|
1286
1297
|
ArrayNotEmpty,
|
|
1287
1298
|
IsNumber as IsNumber3,
|
|
@@ -1318,32 +1329,32 @@ __decorateClass([
|
|
|
1318
1329
|
Type(() => Boolean)
|
|
1319
1330
|
], JobBasicInformationDto.prototype, "isDraft", 2);
|
|
1320
1331
|
__decorateClass([
|
|
1321
|
-
|
|
1322
|
-
|
|
1332
|
+
IsNotEmpty40({ message: "Please enter job role" }),
|
|
1333
|
+
IsString20({ message: "Job role must be a string" })
|
|
1323
1334
|
], JobBasicInformationDto.prototype, "jobRole", 2);
|
|
1324
1335
|
__decorateClass([
|
|
1325
1336
|
IsOptional19()
|
|
1326
1337
|
], JobBasicInformationDto.prototype, "jobRoleCanonicalName", 2);
|
|
1327
1338
|
__decorateClass([
|
|
1328
1339
|
IsOptional19(),
|
|
1329
|
-
|
|
1340
|
+
IsString20({ message: "Project name must be a string" })
|
|
1330
1341
|
], JobBasicInformationDto.prototype, "projectName", 2);
|
|
1331
1342
|
__decorateClass([
|
|
1332
1343
|
IsOptional19(),
|
|
1333
|
-
|
|
1344
|
+
IsString20({ message: "Note must be a string" })
|
|
1334
1345
|
], JobBasicInformationDto.prototype, "note", 2);
|
|
1335
1346
|
__decorateClass([
|
|
1336
1347
|
ValidateIf3((o) => !o.isDraft),
|
|
1337
1348
|
IsOptional19(),
|
|
1338
1349
|
IsArray2({ message: "Skills must be an array" }),
|
|
1339
1350
|
ArrayNotEmpty({ message: "Please select at least one skill" }),
|
|
1340
|
-
|
|
1351
|
+
IsString20({ each: true, message: "Each skill must be a string" }),
|
|
1341
1352
|
Type(() => String)
|
|
1342
1353
|
], JobBasicInformationDto.prototype, "skills", 2);
|
|
1343
1354
|
__decorateClass([
|
|
1344
1355
|
ValidateIf3((o) => !o.isDraft),
|
|
1345
1356
|
IsArray2({ message: "Good to have skills must be an array" }),
|
|
1346
|
-
|
|
1357
|
+
IsString20({ each: true, message: "Each skill must be a string" }),
|
|
1347
1358
|
IsOptional19(),
|
|
1348
1359
|
Type(() => String)
|
|
1349
1360
|
], JobBasicInformationDto.prototype, "goodToHaveSkills", 2);
|
|
@@ -1386,7 +1397,7 @@ __decorateClass([
|
|
|
1386
1397
|
], JobBasicInformationDto.prototype, "typeOfEmployment", 2);
|
|
1387
1398
|
__decorateClass([
|
|
1388
1399
|
ValidateIf3((o) => !o.isDraft),
|
|
1389
|
-
|
|
1400
|
+
IsString20({ message: "Currency must be a string" })
|
|
1390
1401
|
], JobBasicInformationDto.prototype, "currency", 2);
|
|
1391
1402
|
__decorateClass([
|
|
1392
1403
|
ValidateIf3((o) => !o.isDraft),
|
|
@@ -1427,41 +1438,41 @@ __decorateClass([
|
|
|
1427
1438
|
], JobBasicInformationDto.prototype, "numberOfHours", 2);
|
|
1428
1439
|
__decorateClass([
|
|
1429
1440
|
ValidateIf3((o) => !o.isDraft),
|
|
1430
|
-
|
|
1441
|
+
IsString20({ message: "Candidate communication skills must be a string" }),
|
|
1431
1442
|
IsOptional19()
|
|
1432
1443
|
], JobBasicInformationDto.prototype, "candidateCommunicationSkills", 2);
|
|
1433
1444
|
__decorateClass([
|
|
1434
1445
|
ValidateIf3((o) => !o.isDraft),
|
|
1435
|
-
|
|
1436
|
-
|
|
1446
|
+
IsNotEmpty40({ message: "Please enter the academic qualification" }),
|
|
1447
|
+
IsString20({ message: "Academic qualification must be a string" })
|
|
1437
1448
|
], JobBasicInformationDto.prototype, "academicQualification", 2);
|
|
1438
1449
|
__decorateClass([
|
|
1439
1450
|
ValidateIf3((o) => !o.isDraft),
|
|
1440
|
-
|
|
1441
|
-
|
|
1451
|
+
IsNotEmpty40({ message: "Please enter the years of experience" }),
|
|
1452
|
+
IsString20({ message: "Years of experience must be a string" })
|
|
1442
1453
|
], JobBasicInformationDto.prototype, "yearsOfExperience", 2);
|
|
1443
1454
|
__decorateClass([
|
|
1444
1455
|
IsOptional19(),
|
|
1445
|
-
|
|
1456
|
+
IsString20({ message: "Business industry must be a string" })
|
|
1446
1457
|
], JobBasicInformationDto.prototype, "businessIndustry", 2);
|
|
1447
1458
|
__decorateClass([
|
|
1448
1459
|
IsOptional19(),
|
|
1449
|
-
|
|
1460
|
+
IsString20({ message: "Additional comment must be a string" }),
|
|
1450
1461
|
MaxLength6(500, { message: "Additional comment must not exceed 500 characters" })
|
|
1451
1462
|
], JobBasicInformationDto.prototype, "additionalComment", 2);
|
|
1452
1463
|
|
|
1453
1464
|
// src/modules/job/dto/job-additional-comment.dto.ts
|
|
1454
|
-
import { IsOptional as IsOptional20, IsString as
|
|
1465
|
+
import { IsOptional as IsOptional20, IsString as IsString21, MaxLength as MaxLength7 } from "class-validator";
|
|
1455
1466
|
var JobAdditionalCommentDto = class {
|
|
1456
1467
|
};
|
|
1457
1468
|
__decorateClass([
|
|
1458
1469
|
IsOptional20(),
|
|
1459
|
-
|
|
1470
|
+
IsString21({ message: "Additional comment must be a string" }),
|
|
1460
1471
|
MaxLength7(500, { message: "Additional comment must not exceed 500 characters" })
|
|
1461
1472
|
], JobAdditionalCommentDto.prototype, "additionalComment", 2);
|
|
1462
1473
|
|
|
1463
1474
|
// src/modules/job/dto/job-description.dto.ts
|
|
1464
|
-
import { IsString as
|
|
1475
|
+
import { IsString as IsString22, IsNotEmpty as IsNotEmpty41, MaxLength as MaxLength8, IsOptional as IsOptional21 } from "class-validator";
|
|
1465
1476
|
import { Type as Type2 } from "class-transformer";
|
|
1466
1477
|
var JobDescriptionDto = class {
|
|
1467
1478
|
constructor() {
|
|
@@ -1473,13 +1484,13 @@ __decorateClass([
|
|
|
1473
1484
|
Type2(() => Boolean)
|
|
1474
1485
|
], JobDescriptionDto.prototype, "isDraft", 2);
|
|
1475
1486
|
__decorateClass([
|
|
1476
|
-
|
|
1477
|
-
|
|
1487
|
+
IsNotEmpty41({ message: "Please enter job description" }),
|
|
1488
|
+
IsString22({ message: "Description must be a string" }),
|
|
1478
1489
|
MaxLength8(5e3, { message: "Description must not exceed 5000 characters" })
|
|
1479
1490
|
], JobDescriptionDto.prototype, "description", 2);
|
|
1480
1491
|
|
|
1481
1492
|
// src/modules/job/dto/job-status.dto.ts
|
|
1482
|
-
import { IsEnum as IsEnum15, IsNotEmpty as
|
|
1493
|
+
import { IsEnum as IsEnum15, IsNotEmpty as IsNotEmpty42 } from "class-validator";
|
|
1483
1494
|
var JobStatus = /* @__PURE__ */ ((JobStatus2) => {
|
|
1484
1495
|
JobStatus2["ACTIVE"] = "ACTIVE";
|
|
1485
1496
|
JobStatus2["OPEN"] = "OPEN";
|
|
@@ -1491,7 +1502,7 @@ var JobStatus = /* @__PURE__ */ ((JobStatus2) => {
|
|
|
1491
1502
|
var JobStatusDto = class {
|
|
1492
1503
|
};
|
|
1493
1504
|
__decorateClass([
|
|
1494
|
-
|
|
1505
|
+
IsNotEmpty42({ message: "Please provide a job status" }),
|
|
1495
1506
|
IsEnum15(JobStatus, {
|
|
1496
1507
|
message: `Status must be one of: ${Object.values(JobStatus).join(", ")}`
|
|
1497
1508
|
})
|
|
@@ -1509,8 +1520,8 @@ __decorateClass([
|
|
|
1509
1520
|
|
|
1510
1521
|
// src/modules/job/dto/job-basic-information-v2.dto.ts
|
|
1511
1522
|
import {
|
|
1512
|
-
IsString as
|
|
1513
|
-
IsNotEmpty as
|
|
1523
|
+
IsString as IsString23,
|
|
1524
|
+
IsNotEmpty as IsNotEmpty43,
|
|
1514
1525
|
IsArray as IsArray3,
|
|
1515
1526
|
ArrayNotEmpty as ArrayNotEmpty2,
|
|
1516
1527
|
IsNumber as IsNumber4,
|
|
@@ -1558,17 +1569,17 @@ __decorateClass([
|
|
|
1558
1569
|
], JobLocationDto.prototype, "cityId", 2);
|
|
1559
1570
|
__decorateClass([
|
|
1560
1571
|
IsOptional22(),
|
|
1561
|
-
|
|
1572
|
+
IsString23({ message: "Country name must be a string" }),
|
|
1562
1573
|
MaxLength9(255, { message: "Country name must not exceed 255 characters" })
|
|
1563
1574
|
], JobLocationDto.prototype, "countryName", 2);
|
|
1564
1575
|
__decorateClass([
|
|
1565
1576
|
IsOptional22(),
|
|
1566
|
-
|
|
1577
|
+
IsString23({ message: "State name must be a string" }),
|
|
1567
1578
|
MaxLength9(255, { message: "State name must not exceed 255 characters" })
|
|
1568
1579
|
], JobLocationDto.prototype, "stateName", 2);
|
|
1569
1580
|
__decorateClass([
|
|
1570
1581
|
IsOptional22(),
|
|
1571
|
-
|
|
1582
|
+
IsString23({ message: "City name must be a string" }),
|
|
1572
1583
|
MaxLength9(255, { message: "City name must not exceed 255 characters" })
|
|
1573
1584
|
], JobLocationDto.prototype, "cityName", 2);
|
|
1574
1585
|
var JobBasicInformationV2Dto = class {
|
|
@@ -1581,32 +1592,32 @@ __decorateClass([
|
|
|
1581
1592
|
Type3(() => Boolean)
|
|
1582
1593
|
], JobBasicInformationV2Dto.prototype, "isDraft", 2);
|
|
1583
1594
|
__decorateClass([
|
|
1584
|
-
|
|
1585
|
-
|
|
1595
|
+
IsNotEmpty43({ message: "Please enter job role" }),
|
|
1596
|
+
IsString23({ message: "Job role must be a string" })
|
|
1586
1597
|
], JobBasicInformationV2Dto.prototype, "jobRole", 2);
|
|
1587
1598
|
__decorateClass([
|
|
1588
1599
|
IsOptional22()
|
|
1589
1600
|
], JobBasicInformationV2Dto.prototype, "jobRoleCanonicalName", 2);
|
|
1590
1601
|
__decorateClass([
|
|
1591
1602
|
IsOptional22(),
|
|
1592
|
-
|
|
1603
|
+
IsString23({ message: "Project name must be a string" })
|
|
1593
1604
|
], JobBasicInformationV2Dto.prototype, "projectName", 2);
|
|
1594
1605
|
__decorateClass([
|
|
1595
1606
|
IsOptional22(),
|
|
1596
|
-
|
|
1607
|
+
IsString23({ message: "Note must be a string" })
|
|
1597
1608
|
], JobBasicInformationV2Dto.prototype, "note", 2);
|
|
1598
1609
|
__decorateClass([
|
|
1599
1610
|
ValidateIf4((o) => !o.isDraft),
|
|
1600
1611
|
IsOptional22(),
|
|
1601
1612
|
IsArray3({ message: "Skills must be an array" }),
|
|
1602
1613
|
ArrayNotEmpty2({ message: "Please select at least one skill" }),
|
|
1603
|
-
|
|
1614
|
+
IsString23({ each: true, message: "Each skill must be a string" }),
|
|
1604
1615
|
Type3(() => String)
|
|
1605
1616
|
], JobBasicInformationV2Dto.prototype, "skills", 2);
|
|
1606
1617
|
__decorateClass([
|
|
1607
1618
|
ValidateIf4((o) => !o.isDraft),
|
|
1608
1619
|
IsArray3({ message: "Good to have skills must be an array" }),
|
|
1609
|
-
|
|
1620
|
+
IsString23({ each: true, message: "Each skill must be a string" }),
|
|
1610
1621
|
IsOptional22(),
|
|
1611
1622
|
Type3(() => String)
|
|
1612
1623
|
], JobBasicInformationV2Dto.prototype, "goodToHaveSkills", 2);
|
|
@@ -1638,7 +1649,7 @@ __decorateClass([
|
|
|
1638
1649
|
], JobBasicInformationV2Dto.prototype, "typeOfEmployment", 2);
|
|
1639
1650
|
__decorateClass([
|
|
1640
1651
|
ValidateIf4((o) => !o.isDraft),
|
|
1641
|
-
|
|
1652
|
+
IsString23({ message: "Currency must be a string" })
|
|
1642
1653
|
], JobBasicInformationV2Dto.prototype, "currency", 2);
|
|
1643
1654
|
__decorateClass([
|
|
1644
1655
|
ValidateIf4((o) => !o.isDraft),
|
|
@@ -1697,26 +1708,26 @@ __decorateClass([
|
|
|
1697
1708
|
], JobBasicInformationV2Dto.prototype, "numberOfHours", 2);
|
|
1698
1709
|
__decorateClass([
|
|
1699
1710
|
ValidateIf4((o) => !o.isDraft),
|
|
1700
|
-
|
|
1711
|
+
IsString23({ message: "Candidate communication skills must be a string" }),
|
|
1701
1712
|
IsOptional22()
|
|
1702
1713
|
], JobBasicInformationV2Dto.prototype, "candidateCommunicationSkills", 2);
|
|
1703
1714
|
__decorateClass([
|
|
1704
1715
|
IsOptional22(),
|
|
1705
|
-
|
|
1716
|
+
IsString23({ message: "Academic qualification must be a string" })
|
|
1706
1717
|
], JobBasicInformationV2Dto.prototype, "academicQualification", 2);
|
|
1707
1718
|
__decorateClass([
|
|
1708
1719
|
ValidateIf4((o) => !o.isDraft),
|
|
1709
|
-
|
|
1710
|
-
|
|
1720
|
+
IsNotEmpty43({ message: "Please enter the years of experience" }),
|
|
1721
|
+
IsString23({ message: "Years of experience must be a string" })
|
|
1711
1722
|
], JobBasicInformationV2Dto.prototype, "yearsOfExperienceFrom", 2);
|
|
1712
1723
|
__decorateClass([
|
|
1713
1724
|
ValidateIf4((o) => !o.isDraft),
|
|
1714
|
-
|
|
1715
|
-
|
|
1725
|
+
IsNotEmpty43({ message: "Please enter the years of experience upto" }),
|
|
1726
|
+
IsString23({ message: "Years of experience must be a string" })
|
|
1716
1727
|
], JobBasicInformationV2Dto.prototype, "yearsOfExperienceTo", 2);
|
|
1717
1728
|
__decorateClass([
|
|
1718
1729
|
IsOptional22(),
|
|
1719
|
-
|
|
1730
|
+
IsString23({ message: "Business industry must be a string" })
|
|
1720
1731
|
], JobBasicInformationV2Dto.prototype, "businessIndustry", 2);
|
|
1721
1732
|
__decorateClass([
|
|
1722
1733
|
IsOptional22(),
|
|
@@ -1728,26 +1739,26 @@ __decorateClass([
|
|
|
1728
1739
|
], JobBasicInformationV2Dto.prototype, "stepCompleted", 2);
|
|
1729
1740
|
__decorateClass([
|
|
1730
1741
|
IsOptional22(),
|
|
1731
|
-
|
|
1742
|
+
IsString23({ message: "Additional comment must be a string" }),
|
|
1732
1743
|
MaxLength9(500, { message: "Additional comment must not exceed 500 characters" })
|
|
1733
1744
|
], JobBasicInformationV2Dto.prototype, "additionalComment", 2);
|
|
1734
1745
|
|
|
1735
1746
|
// src/modules/job/dto/close-job.dto.ts
|
|
1736
|
-
import { IsOptional as IsOptional23, IsString as
|
|
1747
|
+
import { IsOptional as IsOptional23, IsString as IsString24 } from "class-validator";
|
|
1737
1748
|
var CloseJobDto = class {
|
|
1738
1749
|
};
|
|
1739
1750
|
__decorateClass([
|
|
1740
1751
|
IsOptional23(),
|
|
1741
|
-
|
|
1752
|
+
IsString24()
|
|
1742
1753
|
], CloseJobDto.prototype, "reason", 2);
|
|
1743
1754
|
|
|
1744
1755
|
// src/modules/job/dto/create-job-application.dto.ts
|
|
1745
|
-
import { IsBoolean as IsBoolean3, IsNotEmpty as
|
|
1756
|
+
import { IsBoolean as IsBoolean3, IsNotEmpty as IsNotEmpty44, IsOptional as IsOptional24, IsString as IsString25 } from "class-validator";
|
|
1746
1757
|
var CreateJobApplicationDto = class {
|
|
1747
1758
|
};
|
|
1748
1759
|
__decorateClass([
|
|
1749
|
-
|
|
1750
|
-
|
|
1760
|
+
IsNotEmpty44({ message: "Job ID is required" }),
|
|
1761
|
+
IsString25({ message: "Job ID must be a string" })
|
|
1751
1762
|
], CreateJobApplicationDto.prototype, "jobId", 2);
|
|
1752
1763
|
__decorateClass([
|
|
1753
1764
|
IsOptional24(),
|
|
@@ -1755,7 +1766,7 @@ __decorateClass([
|
|
|
1755
1766
|
], CreateJobApplicationDto.prototype, "isCta", 2);
|
|
1756
1767
|
|
|
1757
1768
|
// src/modules/job/dto/change-job-application-status.dto.ts
|
|
1758
|
-
import { IsEnum as IsEnum17, IsNotEmpty as
|
|
1769
|
+
import { IsEnum as IsEnum17, IsNotEmpty as IsNotEmpty45 } from "class-validator";
|
|
1759
1770
|
var JobApplicationStatus = /* @__PURE__ */ ((JobApplicationStatus2) => {
|
|
1760
1771
|
JobApplicationStatus2["PENDING"] = "PENDING";
|
|
1761
1772
|
JobApplicationStatus2["SHORTLISTED"] = "SHORTLISTED";
|
|
@@ -1767,14 +1778,14 @@ var JobApplicationStatus = /* @__PURE__ */ ((JobApplicationStatus2) => {
|
|
|
1767
1778
|
var ChangeJobApplicationStatusDto = class {
|
|
1768
1779
|
};
|
|
1769
1780
|
__decorateClass([
|
|
1770
|
-
|
|
1781
|
+
IsNotEmpty45({ message: "Status is required" }),
|
|
1771
1782
|
IsEnum17(JobApplicationStatus, {
|
|
1772
1783
|
message: `Status must be one of: ${Object.values(JobApplicationStatus).join(", ")}`
|
|
1773
1784
|
})
|
|
1774
1785
|
], ChangeJobApplicationStatusDto.prototype, "status", 2);
|
|
1775
1786
|
|
|
1776
1787
|
// src/modules/job/dto/change-job-application-status-bulk.dto.ts
|
|
1777
|
-
import { ArrayNotEmpty as ArrayNotEmpty3, IsArray as IsArray4, IsEnum as IsEnum18, IsNotEmpty as
|
|
1788
|
+
import { ArrayNotEmpty as ArrayNotEmpty3, IsArray as IsArray4, IsEnum as IsEnum18, IsNotEmpty as IsNotEmpty46, IsNumber as IsNumber5 } from "class-validator";
|
|
1778
1789
|
var ChangeJobApplicationStatusBulkDto = class {
|
|
1779
1790
|
};
|
|
1780
1791
|
__decorateClass([
|
|
@@ -1783,7 +1794,7 @@ __decorateClass([
|
|
|
1783
1794
|
IsNumber5({}, { each: true, message: "Each job application ID must be a number" })
|
|
1784
1795
|
], ChangeJobApplicationStatusBulkDto.prototype, "jobApplicationIds", 2);
|
|
1785
1796
|
__decorateClass([
|
|
1786
|
-
|
|
1797
|
+
IsNotEmpty46({ message: "Status is required" }),
|
|
1787
1798
|
IsEnum18(JobApplicationStatus, {
|
|
1788
1799
|
message: `Status must be one of: ${Object.values(JobApplicationStatus).join(", ")}`
|
|
1789
1800
|
})
|
|
@@ -1832,8 +1843,8 @@ var FREELANCER_ASSESSMENT_REQUEST_PATTERN = {
|
|
|
1832
1843
|
|
|
1833
1844
|
// src/modules/user/freelancer-profile/dto/freelancer-change-password.dto.ts
|
|
1834
1845
|
import {
|
|
1835
|
-
IsString as
|
|
1836
|
-
IsNotEmpty as
|
|
1846
|
+
IsString as IsString26,
|
|
1847
|
+
IsNotEmpty as IsNotEmpty47,
|
|
1837
1848
|
MaxLength as MaxLength10,
|
|
1838
1849
|
MinLength as MinLength7,
|
|
1839
1850
|
Matches as Matches8
|
|
@@ -1841,12 +1852,12 @@ import {
|
|
|
1841
1852
|
var FreelancerChangePasswordDto = class {
|
|
1842
1853
|
};
|
|
1843
1854
|
__decorateClass([
|
|
1844
|
-
|
|
1845
|
-
|
|
1855
|
+
IsNotEmpty47({ message: "Please enter Old Password." }),
|
|
1856
|
+
IsString26()
|
|
1846
1857
|
], FreelancerChangePasswordDto.prototype, "oldPassword", 2);
|
|
1847
1858
|
__decorateClass([
|
|
1848
|
-
|
|
1849
|
-
|
|
1859
|
+
IsNotEmpty47({ message: "Please enter New Password." }),
|
|
1860
|
+
IsString26(),
|
|
1850
1861
|
MinLength7(6),
|
|
1851
1862
|
MaxLength10(32),
|
|
1852
1863
|
Matches8(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
@@ -1857,11 +1868,11 @@ __decorateClass([
|
|
|
1857
1868
|
// src/modules/user/freelancer-profile/dto/update-freelancer-profile.dto.ts
|
|
1858
1869
|
import {
|
|
1859
1870
|
IsOptional as IsOptional25,
|
|
1860
|
-
IsString as
|
|
1871
|
+
IsString as IsString27,
|
|
1861
1872
|
IsEmail as IsEmail7,
|
|
1862
1873
|
IsNumber as IsNumber6,
|
|
1863
1874
|
IsEnum as IsEnum19,
|
|
1864
|
-
IsNotEmpty as
|
|
1875
|
+
IsNotEmpty as IsNotEmpty48,
|
|
1865
1876
|
ValidateIf as ValidateIf5,
|
|
1866
1877
|
IsInt
|
|
1867
1878
|
} from "class-validator";
|
|
@@ -1880,33 +1891,33 @@ var ModeOfWorkDto = /* @__PURE__ */ ((ModeOfWorkDto2) => {
|
|
|
1880
1891
|
var UpdateFreelancerProfileDto = class {
|
|
1881
1892
|
};
|
|
1882
1893
|
__decorateClass([
|
|
1883
|
-
|
|
1884
|
-
|
|
1894
|
+
IsNotEmpty48({ message: "Please enter first name." }),
|
|
1895
|
+
IsString27({ message: "Please enter valid first name." })
|
|
1885
1896
|
], UpdateFreelancerProfileDto.prototype, "firstName", 2);
|
|
1886
1897
|
__decorateClass([
|
|
1887
1898
|
IsOptional25(),
|
|
1888
|
-
|
|
1889
|
-
|
|
1899
|
+
IsNotEmpty48({ message: "Please enter last name." }),
|
|
1900
|
+
IsString27({ message: "Please enter valid last name." })
|
|
1890
1901
|
], UpdateFreelancerProfileDto.prototype, "lastName", 2);
|
|
1891
1902
|
__decorateClass([
|
|
1892
|
-
|
|
1893
|
-
|
|
1903
|
+
IsNotEmpty48({ message: "Please enter designation." }),
|
|
1904
|
+
IsString27({ message: "Please enter valid designation." })
|
|
1894
1905
|
], UpdateFreelancerProfileDto.prototype, "designation", 2);
|
|
1895
1906
|
__decorateClass([
|
|
1896
|
-
|
|
1897
|
-
|
|
1907
|
+
IsNotEmpty48({ message: "Please enter experience." }),
|
|
1908
|
+
IsString27({ message: "Please enter valid experience." })
|
|
1898
1909
|
], UpdateFreelancerProfileDto.prototype, "experience", 2);
|
|
1899
1910
|
__decorateClass([
|
|
1900
|
-
|
|
1911
|
+
IsNotEmpty48({ message: "Please enter email id." }),
|
|
1901
1912
|
IsEmail7()
|
|
1902
1913
|
], UpdateFreelancerProfileDto.prototype, "email", 2);
|
|
1903
1914
|
__decorateClass([
|
|
1904
|
-
|
|
1905
|
-
|
|
1915
|
+
IsNotEmpty48({ message: "Please enter mobile code." }),
|
|
1916
|
+
IsString27({ message: "Please enter valid mobile code." })
|
|
1906
1917
|
], UpdateFreelancerProfileDto.prototype, "mobileCode", 2);
|
|
1907
1918
|
__decorateClass([
|
|
1908
|
-
|
|
1909
|
-
|
|
1919
|
+
IsNotEmpty48({ message: "Please enter mobile number." }),
|
|
1920
|
+
IsString27({ message: "Please enter valid mobile number." })
|
|
1910
1921
|
], UpdateFreelancerProfileDto.prototype, "mobile", 2);
|
|
1911
1922
|
__decorateClass([
|
|
1912
1923
|
IsOptional25(),
|
|
@@ -1923,19 +1934,19 @@ __decorateClass([
|
|
|
1923
1934
|
//@IsString({ message: "Please enter valid expected hourly compensation." })
|
|
1924
1935
|
__decorateClass([
|
|
1925
1936
|
ValidateIf5((dto) => dto.NatureOfWorkDto === "FREELANCE" /* FREELANCE */ || dto.NatureOfWorkDto === "BOTH" /* BOTH */),
|
|
1926
|
-
|
|
1937
|
+
IsNotEmpty48({ message: "Please enter expected hourly compensation." })
|
|
1927
1938
|
], UpdateFreelancerProfileDto.prototype, "expectedHourlyCompensation", 2);
|
|
1928
1939
|
__decorateClass([
|
|
1929
1940
|
ValidateIf5((dto) => dto.NatureOfWorkDto === "BOTH" /* BOTH */),
|
|
1930
|
-
|
|
1941
|
+
IsNotEmpty48({ message: "Please enter expected annual compensation." })
|
|
1931
1942
|
], UpdateFreelancerProfileDto.prototype, "expectedAnnualCompensation", 2);
|
|
1932
1943
|
__decorateClass([
|
|
1933
1944
|
ValidateIf5((dto) => dto.NatureOfWorkDto === "FREELANCE" /* FREELANCE */),
|
|
1934
1945
|
IsInt({ message: "Please enter valid weekly availability hours (integer)." }),
|
|
1935
|
-
|
|
1946
|
+
IsNotEmpty48({ message: "Please enter weekly availability hours" })
|
|
1936
1947
|
], UpdateFreelancerProfileDto.prototype, "numberOfHours", 2);
|
|
1937
1948
|
__decorateClass([
|
|
1938
|
-
|
|
1949
|
+
IsNotEmpty48({ message: "Please select engagement type." }),
|
|
1939
1950
|
IsEnum19(NatureOfWorkDto, {
|
|
1940
1951
|
message: `Engagement Type must be one of: ${Object.values(
|
|
1941
1952
|
NatureOfWorkDto
|
|
@@ -1943,7 +1954,7 @@ __decorateClass([
|
|
|
1943
1954
|
})
|
|
1944
1955
|
], UpdateFreelancerProfileDto.prototype, "natureOfWork", 2);
|
|
1945
1956
|
__decorateClass([
|
|
1946
|
-
|
|
1957
|
+
IsNotEmpty48({ message: "Please select mode of work." }),
|
|
1947
1958
|
IsEnum19(ModeOfWorkDto, {
|
|
1948
1959
|
message: `Mode of work must be one of: ${Object.values(ModeOfWorkDto).join(
|
|
1949
1960
|
", "
|
|
@@ -1952,70 +1963,70 @@ __decorateClass([
|
|
|
1952
1963
|
], UpdateFreelancerProfileDto.prototype, "modeOfWork", 2);
|
|
1953
1964
|
__decorateClass([
|
|
1954
1965
|
IsOptional25(),
|
|
1955
|
-
|
|
1966
|
+
IsString27()
|
|
1956
1967
|
], UpdateFreelancerProfileDto.prototype, "portfolioLink", 2);
|
|
1957
1968
|
__decorateClass([
|
|
1958
|
-
|
|
1959
|
-
|
|
1969
|
+
IsNotEmpty48({ message: "Please enter address." }),
|
|
1970
|
+
IsString27()
|
|
1960
1971
|
], UpdateFreelancerProfileDto.prototype, "address", 2);
|
|
1961
1972
|
__decorateClass([
|
|
1962
1973
|
IsOptional25(),
|
|
1963
|
-
|
|
1974
|
+
IsString27()
|
|
1964
1975
|
], UpdateFreelancerProfileDto.prototype, "addressLine", 2);
|
|
1965
1976
|
__decorateClass([
|
|
1966
|
-
|
|
1967
|
-
|
|
1977
|
+
IsNotEmpty48({ message: "Please enter postalCode." }),
|
|
1978
|
+
IsString27()
|
|
1968
1979
|
], UpdateFreelancerProfileDto.prototype, "postalCode", 2);
|
|
1969
1980
|
__decorateClass([
|
|
1970
1981
|
IsOptional25(),
|
|
1971
|
-
|
|
1982
|
+
IsString27()
|
|
1972
1983
|
], UpdateFreelancerProfileDto.prototype, "about", 2);
|
|
1973
1984
|
__decorateClass([
|
|
1974
1985
|
IsOptional25(),
|
|
1975
|
-
|
|
1986
|
+
IsString27()
|
|
1976
1987
|
], UpdateFreelancerProfileDto.prototype, "linkedinProfileLink", 2);
|
|
1977
1988
|
__decorateClass([
|
|
1978
1989
|
IsOptional25(),
|
|
1979
|
-
|
|
1990
|
+
IsString27()
|
|
1980
1991
|
], UpdateFreelancerProfileDto.prototype, "kaggleProfileLink", 2);
|
|
1981
1992
|
__decorateClass([
|
|
1982
1993
|
IsOptional25(),
|
|
1983
|
-
|
|
1994
|
+
IsString27()
|
|
1984
1995
|
], UpdateFreelancerProfileDto.prototype, "githubProfileLink", 2);
|
|
1985
1996
|
__decorateClass([
|
|
1986
1997
|
IsOptional25(),
|
|
1987
|
-
|
|
1998
|
+
IsString27()
|
|
1988
1999
|
], UpdateFreelancerProfileDto.prototype, "stackOverflowProfileLink", 2);
|
|
1989
2000
|
__decorateClass([
|
|
1990
2001
|
IsOptional25(),
|
|
1991
|
-
|
|
2002
|
+
IsString27()
|
|
1992
2003
|
], UpdateFreelancerProfileDto.prototype, "resumeUrl", 2);
|
|
1993
2004
|
|
|
1994
2005
|
// src/modules/user/freelancer-profile/dto/freelancer-e-signature.dto.ts
|
|
1995
|
-
import { IsNotEmpty as
|
|
2006
|
+
import { IsNotEmpty as IsNotEmpty49, IsUUID as IsUUID16 } from "class-validator";
|
|
1996
2007
|
var FreelancerESignatureDto = class {
|
|
1997
2008
|
};
|
|
1998
2009
|
__decorateClass([
|
|
1999
2010
|
IsUUID16("4", { message: "Freelancer UUID must be a valid UUID." }),
|
|
2000
|
-
|
|
2011
|
+
IsNotEmpty49({ message: "Freelancer UUID is required." })
|
|
2001
2012
|
], FreelancerESignatureDto.prototype, "uuid", 2);
|
|
2002
2013
|
|
|
2003
2014
|
// src/modules/user/freelancer-profile/dto/fetch-client-info-for-chat.dto.ts
|
|
2004
|
-
import { IsNotEmpty as
|
|
2015
|
+
import { IsNotEmpty as IsNotEmpty50, IsNumber as IsNumber7 } from "class-validator";
|
|
2005
2016
|
var FetchClientInfoForChatDto = class {
|
|
2006
2017
|
};
|
|
2007
2018
|
__decorateClass([
|
|
2008
|
-
|
|
2019
|
+
IsNotEmpty50({ message: "Client ID is required" }),
|
|
2009
2020
|
IsNumber7({}, { message: "Client ID must be a number" })
|
|
2010
2021
|
], FetchClientInfoForChatDto.prototype, "clientId", 2);
|
|
2011
2022
|
|
|
2012
2023
|
// src/modules/user/freelancer-profile/dto/capture-ai-assessment-result.dto.ts
|
|
2013
|
-
import { IsNotEmpty as
|
|
2024
|
+
import { IsNotEmpty as IsNotEmpty51, IsString as IsString28, IsOptional as IsOptional26, IsObject as IsObject4 } from "class-validator";
|
|
2014
2025
|
var CaptureAiAssessmentResultDto = class {
|
|
2015
2026
|
};
|
|
2016
2027
|
__decorateClass([
|
|
2017
|
-
|
|
2018
|
-
|
|
2028
|
+
IsNotEmpty51({ message: "AI Assessment UUID is required" }),
|
|
2029
|
+
IsString28({ message: "AI Assessment UUID must be a string" })
|
|
2019
2030
|
], CaptureAiAssessmentResultDto.prototype, "aiAssessmentUuid", 2);
|
|
2020
2031
|
__decorateClass([
|
|
2021
2032
|
IsOptional26(),
|
|
@@ -2023,7 +2034,7 @@ __decorateClass([
|
|
|
2023
2034
|
], CaptureAiAssessmentResultDto.prototype, "result", 2);
|
|
2024
2035
|
__decorateClass([
|
|
2025
2036
|
IsOptional26(),
|
|
2026
|
-
|
|
2037
|
+
IsString28()
|
|
2027
2038
|
], CaptureAiAssessmentResultDto.prototype, "status", 2);
|
|
2028
2039
|
|
|
2029
2040
|
// src/modules/bank/pattern/pattern.ts
|
|
@@ -2039,9 +2050,9 @@ var BANK_PATTERN = {
|
|
|
2039
2050
|
// src/modules/bank/dto/freelancer-bank-details.dto.ts
|
|
2040
2051
|
import {
|
|
2041
2052
|
IsEnum as IsEnum20,
|
|
2042
|
-
IsNotEmpty as
|
|
2053
|
+
IsNotEmpty as IsNotEmpty52,
|
|
2043
2054
|
IsOptional as IsOptional27,
|
|
2044
|
-
IsString as
|
|
2055
|
+
IsString as IsString29,
|
|
2045
2056
|
ValidateIf as ValidateIf6
|
|
2046
2057
|
} from "class-validator";
|
|
2047
2058
|
var BankAccountScope = /* @__PURE__ */ ((BankAccountScope2) => {
|
|
@@ -2052,45 +2063,45 @@ var BankAccountScope = /* @__PURE__ */ ((BankAccountScope2) => {
|
|
|
2052
2063
|
var FreelancerBankDetailsDto = class {
|
|
2053
2064
|
};
|
|
2054
2065
|
__decorateClass([
|
|
2055
|
-
|
|
2066
|
+
IsNotEmpty52({ message: "Please enter Account Holder Name." })
|
|
2056
2067
|
], FreelancerBankDetailsDto.prototype, "name", 2);
|
|
2057
2068
|
__decorateClass([
|
|
2058
|
-
|
|
2069
|
+
IsNotEmpty52({ message: "Please enter Mobile Code." })
|
|
2059
2070
|
], FreelancerBankDetailsDto.prototype, "mobileCode", 2);
|
|
2060
2071
|
__decorateClass([
|
|
2061
|
-
|
|
2072
|
+
IsNotEmpty52({ message: "Please enter Mobile Number." })
|
|
2062
2073
|
], FreelancerBankDetailsDto.prototype, "mobile", 2);
|
|
2063
2074
|
__decorateClass([
|
|
2064
|
-
|
|
2075
|
+
IsNotEmpty52({ message: "Please enter Email." })
|
|
2065
2076
|
], FreelancerBankDetailsDto.prototype, "email", 2);
|
|
2066
2077
|
__decorateClass([
|
|
2067
2078
|
IsOptional27()
|
|
2068
2079
|
], FreelancerBankDetailsDto.prototype, "address", 2);
|
|
2069
2080
|
__decorateClass([
|
|
2070
|
-
|
|
2081
|
+
IsNotEmpty52({ message: "Please enter Account Number." })
|
|
2071
2082
|
], FreelancerBankDetailsDto.prototype, "accountNumber", 2);
|
|
2072
2083
|
__decorateClass([
|
|
2073
|
-
|
|
2084
|
+
IsNotEmpty52({ message: "Please enter Bank Name." })
|
|
2074
2085
|
], FreelancerBankDetailsDto.prototype, "bankName", 2);
|
|
2075
2086
|
__decorateClass([
|
|
2076
2087
|
IsOptional27(),
|
|
2077
|
-
|
|
2088
|
+
IsString29()
|
|
2078
2089
|
], FreelancerBankDetailsDto.prototype, "branchName", 2);
|
|
2079
2090
|
__decorateClass([
|
|
2080
2091
|
ValidateIf6((dto) => dto.accountScope === "DOMESTIC"),
|
|
2081
|
-
|
|
2092
|
+
IsNotEmpty52({ message: "IFSC Code is required for DOMESTIC accounts." })
|
|
2082
2093
|
], FreelancerBankDetailsDto.prototype, "ifscCode", 2);
|
|
2083
2094
|
__decorateClass([
|
|
2084
2095
|
ValidateIf6((dto) => dto.accountScope === "INTERNATIONAL"),
|
|
2085
|
-
|
|
2096
|
+
IsNotEmpty52({ message: "Routing Number/Sort Code is required for INTERNATIONAL accounts." })
|
|
2086
2097
|
], FreelancerBankDetailsDto.prototype, "routingNo", 2);
|
|
2087
2098
|
__decorateClass([
|
|
2088
2099
|
ValidateIf6((dto) => dto.accountScope === "INTERNATIONAL"),
|
|
2089
|
-
|
|
2100
|
+
IsNotEmpty52({ message: "ABA Number is required for INTERNATIONAL accounts." })
|
|
2090
2101
|
], FreelancerBankDetailsDto.prototype, "abaNumber", 2);
|
|
2091
2102
|
__decorateClass([
|
|
2092
2103
|
ValidateIf6((dto) => dto.accountScope === "INTERNATIONAL"),
|
|
2093
|
-
|
|
2104
|
+
IsNotEmpty52({ message: "IBAN is required for INTERNATIONAL accounts." })
|
|
2094
2105
|
], FreelancerBankDetailsDto.prototype, "iban", 2);
|
|
2095
2106
|
__decorateClass([
|
|
2096
2107
|
IsOptional27()
|
|
@@ -2155,6 +2166,8 @@ var NOTIFICATION_PATTERN = {
|
|
|
2155
2166
|
handleResumeParserErrorNotification: "handle.resume.parser.error.notification",
|
|
2156
2167
|
handleFreelancerExportReadyNotification: "handle.freelancer.export.ready.notification",
|
|
2157
2168
|
handleFreelancerExportFailedNotification: "handle.freelancer.export.failed.notification",
|
|
2169
|
+
handleClientExportReadyNotification: "handle.client.export.ready.notification",
|
|
2170
|
+
handleClientExportFailedNotification: "handle.client.export.failed.notification",
|
|
2158
2171
|
handleAiInterviewResultErrorNotification: "handle.ai.interview.result.error.notification",
|
|
2159
2172
|
handleAiInterviewRecordingErrorNotification: "handle.ai.interview.recording.error.notification",
|
|
2160
2173
|
handleAiAssessmentInterviewResultErrorNotification: "handle.ai.assessment.interview.result.error.notification",
|
|
@@ -2177,7 +2190,7 @@ var EMAIL_PATTERN = {
|
|
|
2177
2190
|
};
|
|
2178
2191
|
|
|
2179
2192
|
// src/modules/notification/dto/test-notification.dto.ts
|
|
2180
|
-
import { IsOptional as IsOptional28, IsString as
|
|
2193
|
+
import { IsOptional as IsOptional28, IsString as IsString30, IsObject as IsObject5, IsEmail as IsEmail8, IsPhoneNumber } from "class-validator";
|
|
2181
2194
|
var TestNotificationDto = class {
|
|
2182
2195
|
};
|
|
2183
2196
|
__decorateClass([
|
|
@@ -2190,7 +2203,7 @@ __decorateClass([
|
|
|
2190
2203
|
], TestNotificationDto.prototype, "phone", 2);
|
|
2191
2204
|
__decorateClass([
|
|
2192
2205
|
IsOptional28(),
|
|
2193
|
-
|
|
2206
|
+
IsString30()
|
|
2194
2207
|
], TestNotificationDto.prototype, "message", 2);
|
|
2195
2208
|
__decorateClass([
|
|
2196
2209
|
IsOptional28(),
|
|
@@ -2198,7 +2211,7 @@ __decorateClass([
|
|
|
2198
2211
|
], TestNotificationDto.prototype, "data", 2);
|
|
2199
2212
|
__decorateClass([
|
|
2200
2213
|
IsOptional28(),
|
|
2201
|
-
|
|
2214
|
+
IsString30()
|
|
2202
2215
|
], TestNotificationDto.prototype, "type", 2);
|
|
2203
2216
|
|
|
2204
2217
|
// src/modules/rating/pattern/pattern.ts
|
|
@@ -2212,9 +2225,9 @@ var RATING_PATTERN = {
|
|
|
2212
2225
|
import {
|
|
2213
2226
|
IsEnum as IsEnum22,
|
|
2214
2227
|
IsInt as IsInt2,
|
|
2215
|
-
IsNotEmpty as
|
|
2228
|
+
IsNotEmpty as IsNotEmpty53,
|
|
2216
2229
|
IsOptional as IsOptional29,
|
|
2217
|
-
IsString as
|
|
2230
|
+
IsString as IsString31,
|
|
2218
2231
|
IsNumber as IsNumber8,
|
|
2219
2232
|
Min as Min3,
|
|
2220
2233
|
Max as Max3
|
|
@@ -7284,7 +7297,7 @@ __decorateClass([
|
|
|
7284
7297
|
], CreateRatingDto.prototype, "reviewerId", 2);
|
|
7285
7298
|
__decorateClass([
|
|
7286
7299
|
IsInt2({ message: "Job ID must be a valid integer" }),
|
|
7287
|
-
|
|
7300
|
+
IsNotEmpty53({ message: "Job ID is required" })
|
|
7288
7301
|
], CreateRatingDto.prototype, "jobId", 2);
|
|
7289
7302
|
__decorateClass([
|
|
7290
7303
|
IsEnum22(RatingTypeEnum, {
|
|
@@ -7293,7 +7306,7 @@ __decorateClass([
|
|
|
7293
7306
|
], CreateRatingDto.prototype, "ratingType", 2);
|
|
7294
7307
|
__decorateClass([
|
|
7295
7308
|
IsOptional29(),
|
|
7296
|
-
|
|
7309
|
+
IsString31({ message: "Reviewer comment must be a string" })
|
|
7297
7310
|
], CreateRatingDto.prototype, "reviewerComment", 2);
|
|
7298
7311
|
__decorateClass([
|
|
7299
7312
|
IsOptional29(),
|
|
@@ -7375,17 +7388,17 @@ var COMPANY_ROLES_PATTERNS = {
|
|
|
7375
7388
|
};
|
|
7376
7389
|
|
|
7377
7390
|
// src/modules/company-role/dto/create-company-role.dto.ts
|
|
7378
|
-
import { ArrayNotEmpty as ArrayNotEmpty4, IsArray as IsArray5, IsBoolean as IsBoolean5, IsInt as IsInt3, IsNotEmpty as
|
|
7391
|
+
import { ArrayNotEmpty as ArrayNotEmpty4, IsArray as IsArray5, IsBoolean as IsBoolean5, IsInt as IsInt3, IsNotEmpty as IsNotEmpty54, IsOptional as IsOptional30 } from "class-validator";
|
|
7379
7392
|
var CreateCompanyRoleDto = class {
|
|
7380
7393
|
};
|
|
7381
7394
|
__decorateClass([
|
|
7382
|
-
|
|
7395
|
+
IsNotEmpty54({ message: "Please enter company role name." })
|
|
7383
7396
|
], CreateCompanyRoleDto.prototype, "name", 2);
|
|
7384
7397
|
__decorateClass([
|
|
7385
|
-
|
|
7398
|
+
IsNotEmpty54({ message: "Please enter company role slug" })
|
|
7386
7399
|
], CreateCompanyRoleDto.prototype, "slug", 2);
|
|
7387
7400
|
__decorateClass([
|
|
7388
|
-
|
|
7401
|
+
IsNotEmpty54({ message: "Please enter description" })
|
|
7389
7402
|
], CreateCompanyRoleDto.prototype, "description", 2);
|
|
7390
7403
|
__decorateClass([
|
|
7391
7404
|
IsArray5({ message: "Permission IDs must be an array." }),
|
|
@@ -7398,17 +7411,17 @@ __decorateClass([
|
|
|
7398
7411
|
], CreateCompanyRoleDto.prototype, "isActive", 2);
|
|
7399
7412
|
|
|
7400
7413
|
// src/modules/company-role/dto/update-company-role.dto.ts
|
|
7401
|
-
import { ArrayNotEmpty as ArrayNotEmpty5, IsArray as IsArray6, IsBoolean as IsBoolean6, IsInt as IsInt4, IsNotEmpty as
|
|
7414
|
+
import { ArrayNotEmpty as ArrayNotEmpty5, IsArray as IsArray6, IsBoolean as IsBoolean6, IsInt as IsInt4, IsNotEmpty as IsNotEmpty55, IsOptional as IsOptional31 } from "class-validator";
|
|
7402
7415
|
var UpdateCompanyRoleDto = class {
|
|
7403
7416
|
};
|
|
7404
7417
|
__decorateClass([
|
|
7405
|
-
|
|
7418
|
+
IsNotEmpty55({ message: "Please enter company name." })
|
|
7406
7419
|
], UpdateCompanyRoleDto.prototype, "name", 2);
|
|
7407
7420
|
__decorateClass([
|
|
7408
|
-
|
|
7421
|
+
IsNotEmpty55({ message: "Please enter slug" })
|
|
7409
7422
|
], UpdateCompanyRoleDto.prototype, "slug", 2);
|
|
7410
7423
|
__decorateClass([
|
|
7411
|
-
|
|
7424
|
+
IsNotEmpty55({ message: "Please enter description" })
|
|
7412
7425
|
], UpdateCompanyRoleDto.prototype, "description", 2);
|
|
7413
7426
|
__decorateClass([
|
|
7414
7427
|
IsArray6({ message: "Permission IDs must be an array." }),
|
|
@@ -7437,9 +7450,9 @@ var FREELANCER_EXPERIENCE_PATTERN = {
|
|
|
7437
7450
|
// src/modules/user/freelancer-experience/dto/freelancer-experience.dto.ts
|
|
7438
7451
|
import {
|
|
7439
7452
|
ArrayMinSize,
|
|
7440
|
-
IsNotEmpty as
|
|
7453
|
+
IsNotEmpty as IsNotEmpty56,
|
|
7441
7454
|
IsOptional as IsOptional32,
|
|
7442
|
-
IsString as
|
|
7455
|
+
IsString as IsString34,
|
|
7443
7456
|
MaxLength as MaxLength12,
|
|
7444
7457
|
ValidateNested as ValidateNested2
|
|
7445
7458
|
} from "class-validator";
|
|
@@ -7450,20 +7463,20 @@ __decorateClass([
|
|
|
7450
7463
|
IsOptional32()
|
|
7451
7464
|
], ExperienceDto.prototype, "uuid", 2);
|
|
7452
7465
|
__decorateClass([
|
|
7453
|
-
|
|
7454
|
-
|
|
7466
|
+
IsNotEmpty56(),
|
|
7467
|
+
IsString34()
|
|
7455
7468
|
], ExperienceDto.prototype, "companyName", 2);
|
|
7456
7469
|
__decorateClass([
|
|
7457
|
-
|
|
7458
|
-
|
|
7470
|
+
IsNotEmpty56(),
|
|
7471
|
+
IsString34()
|
|
7459
7472
|
], ExperienceDto.prototype, "designation", 2);
|
|
7460
7473
|
__decorateClass([
|
|
7461
|
-
|
|
7462
|
-
|
|
7474
|
+
IsNotEmpty56(),
|
|
7475
|
+
IsString34()
|
|
7463
7476
|
], ExperienceDto.prototype, "jobDuration", 2);
|
|
7464
7477
|
__decorateClass([
|
|
7465
7478
|
IsOptional32(),
|
|
7466
|
-
|
|
7479
|
+
IsString34(),
|
|
7467
7480
|
MaxLength12(5e3, { message: "Description must not exceed 5000 characters" })
|
|
7468
7481
|
], ExperienceDto.prototype, "description", 2);
|
|
7469
7482
|
var FreelancerExperienceDto = class {
|
|
@@ -7487,14 +7500,14 @@ var COMPANY_MEMBERS_PATTERNS = {
|
|
|
7487
7500
|
};
|
|
7488
7501
|
|
|
7489
7502
|
// src/modules/company-member/dto/create-company-member.dto.ts
|
|
7490
|
-
import { ArrayNotEmpty as ArrayNotEmpty6, IsArray as IsArray7, IsInt as IsInt5, IsNotEmpty as
|
|
7503
|
+
import { ArrayNotEmpty as ArrayNotEmpty6, IsArray as IsArray7, IsInt as IsInt5, IsNotEmpty as IsNotEmpty57 } from "class-validator";
|
|
7491
7504
|
var CreateCompanyMemberDto = class {
|
|
7492
7505
|
};
|
|
7493
7506
|
__decorateClass([
|
|
7494
|
-
|
|
7507
|
+
IsNotEmpty57({ message: "Please enter name." })
|
|
7495
7508
|
], CreateCompanyMemberDto.prototype, "name", 2);
|
|
7496
7509
|
__decorateClass([
|
|
7497
|
-
|
|
7510
|
+
IsNotEmpty57({ message: "Please enter email" })
|
|
7498
7511
|
], CreateCompanyMemberDto.prototype, "email", 2);
|
|
7499
7512
|
__decorateClass([
|
|
7500
7513
|
IsArray7({ message: "Role IDs must be an array." }),
|
|
@@ -7503,14 +7516,14 @@ __decorateClass([
|
|
|
7503
7516
|
], CreateCompanyMemberDto.prototype, "roleIds", 2);
|
|
7504
7517
|
|
|
7505
7518
|
// src/modules/company-member/dto/update-company-member.dto.ts
|
|
7506
|
-
import { ArrayNotEmpty as ArrayNotEmpty7, IsArray as IsArray8, IsInt as IsInt6, IsNotEmpty as
|
|
7519
|
+
import { ArrayNotEmpty as ArrayNotEmpty7, IsArray as IsArray8, IsInt as IsInt6, IsNotEmpty as IsNotEmpty58 } from "class-validator";
|
|
7507
7520
|
var UpdateCompanyMemberDto = class {
|
|
7508
7521
|
};
|
|
7509
7522
|
__decorateClass([
|
|
7510
|
-
|
|
7523
|
+
IsNotEmpty58({ message: "Please enter name." })
|
|
7511
7524
|
], UpdateCompanyMemberDto.prototype, "name", 2);
|
|
7512
7525
|
__decorateClass([
|
|
7513
|
-
|
|
7526
|
+
IsNotEmpty58({ message: "Please enter email" })
|
|
7514
7527
|
], UpdateCompanyMemberDto.prototype, "email", 2);
|
|
7515
7528
|
__decorateClass([
|
|
7516
7529
|
IsArray8({ message: "Role IDs must be an array." }),
|
|
@@ -7533,7 +7546,7 @@ var FREELANCER_EDUCATION_PATTERN = {
|
|
|
7533
7546
|
};
|
|
7534
7547
|
|
|
7535
7548
|
// src/modules/user/freelancer-education/dto/freelancer-education.dto.ts
|
|
7536
|
-
import { IsArray as IsArray9, ValidateNested as ValidateNested3, IsString as
|
|
7549
|
+
import { IsArray as IsArray9, ValidateNested as ValidateNested3, IsString as IsString37, IsNotEmpty as IsNotEmpty59, IsOptional as IsOptional35, ArrayMinSize as ArrayMinSize2 } from "class-validator";
|
|
7537
7550
|
import { Type as Type5 } from "class-transformer";
|
|
7538
7551
|
var EducationDto = class {
|
|
7539
7552
|
};
|
|
@@ -7541,16 +7554,16 @@ __decorateClass([
|
|
|
7541
7554
|
IsOptional35()
|
|
7542
7555
|
], EducationDto.prototype, "uuid", 2);
|
|
7543
7556
|
__decorateClass([
|
|
7544
|
-
|
|
7545
|
-
|
|
7557
|
+
IsString37(),
|
|
7558
|
+
IsNotEmpty59({ message: "Please Enter Degree " })
|
|
7546
7559
|
], EducationDto.prototype, "degree", 2);
|
|
7547
7560
|
__decorateClass([
|
|
7548
|
-
|
|
7549
|
-
|
|
7561
|
+
IsString37(),
|
|
7562
|
+
IsNotEmpty59({ message: "Please Enter University " })
|
|
7550
7563
|
], EducationDto.prototype, "university", 2);
|
|
7551
7564
|
__decorateClass([
|
|
7552
|
-
|
|
7553
|
-
|
|
7565
|
+
IsString37(),
|
|
7566
|
+
IsNotEmpty59({ message: "Please Enter Year of Graduation " })
|
|
7554
7567
|
], EducationDto.prototype, "yearOfGraduation", 2);
|
|
7555
7568
|
var FreelancerEducationDto = class {
|
|
7556
7569
|
};
|
|
@@ -7568,7 +7581,7 @@ var FREELANCER_PROJECT_PATTERN = {
|
|
|
7568
7581
|
};
|
|
7569
7582
|
|
|
7570
7583
|
// src/modules/user/freelancer-project/dto/freelancer-project.dto.ts
|
|
7571
|
-
import { IsArray as IsArray10, ValidateNested as ValidateNested4, IsString as
|
|
7584
|
+
import { IsArray as IsArray10, ValidateNested as ValidateNested4, IsString as IsString38, IsNotEmpty as IsNotEmpty60, IsOptional as IsOptional36, IsDateString, MaxLength as MaxLength14, ArrayMinSize as ArrayMinSize3 } from "class-validator";
|
|
7572
7585
|
import { Type as Type6 } from "class-transformer";
|
|
7573
7586
|
var ProjectDto = class {
|
|
7574
7587
|
};
|
|
@@ -7576,28 +7589,28 @@ __decorateClass([
|
|
|
7576
7589
|
IsOptional36()
|
|
7577
7590
|
], ProjectDto.prototype, "uuid", 2);
|
|
7578
7591
|
__decorateClass([
|
|
7579
|
-
|
|
7580
|
-
|
|
7592
|
+
IsString38(),
|
|
7593
|
+
IsNotEmpty60({ message: "Please Enter Project Name " })
|
|
7581
7594
|
], ProjectDto.prototype, "projectName", 2);
|
|
7582
7595
|
__decorateClass([
|
|
7583
7596
|
IsDateString(),
|
|
7584
|
-
|
|
7597
|
+
IsNotEmpty60({ message: "Please Enter Start Date " })
|
|
7585
7598
|
], ProjectDto.prototype, "startDate", 2);
|
|
7586
7599
|
__decorateClass([
|
|
7587
7600
|
IsDateString(),
|
|
7588
|
-
|
|
7601
|
+
IsNotEmpty60({ message: "Please Enter End Date " })
|
|
7589
7602
|
], ProjectDto.prototype, "endDate", 2);
|
|
7590
7603
|
__decorateClass([
|
|
7591
7604
|
IsOptional36(),
|
|
7592
|
-
|
|
7605
|
+
IsString38()
|
|
7593
7606
|
], ProjectDto.prototype, "clientName", 2);
|
|
7594
7607
|
__decorateClass([
|
|
7595
7608
|
IsOptional36(),
|
|
7596
|
-
|
|
7609
|
+
IsString38()
|
|
7597
7610
|
], ProjectDto.prototype, "gitLink", 2);
|
|
7598
7611
|
__decorateClass([
|
|
7599
7612
|
IsOptional36(),
|
|
7600
|
-
|
|
7613
|
+
IsString38(),
|
|
7601
7614
|
MaxLength14(5e3, { message: "Description must not exceed 5000 characters" })
|
|
7602
7615
|
], ProjectDto.prototype, "description", 2);
|
|
7603
7616
|
var CaseStudyDto = class {
|
|
@@ -7606,16 +7619,16 @@ __decorateClass([
|
|
|
7606
7619
|
IsOptional36()
|
|
7607
7620
|
], CaseStudyDto.prototype, "uuid", 2);
|
|
7608
7621
|
__decorateClass([
|
|
7609
|
-
|
|
7610
|
-
|
|
7622
|
+
IsString38(),
|
|
7623
|
+
IsNotEmpty60({ message: "Please Enter Project Name " })
|
|
7611
7624
|
], CaseStudyDto.prototype, "projectName", 2);
|
|
7612
7625
|
__decorateClass([
|
|
7613
7626
|
IsOptional36(),
|
|
7614
|
-
|
|
7627
|
+
IsString38()
|
|
7615
7628
|
], CaseStudyDto.prototype, "caseStudyLink", 2);
|
|
7616
7629
|
__decorateClass([
|
|
7617
7630
|
IsOptional36(),
|
|
7618
|
-
|
|
7631
|
+
IsString38(),
|
|
7619
7632
|
MaxLength14(5e3, { message: "Description must not exceed 5000 characters" })
|
|
7620
7633
|
], CaseStudyDto.prototype, "description", 2);
|
|
7621
7634
|
var FreelancerProjectDto = class {
|
|
@@ -7645,7 +7658,7 @@ var FREELANCER_SKILL_PATTERN = {
|
|
|
7645
7658
|
};
|
|
7646
7659
|
|
|
7647
7660
|
// src/modules/user/freelancer-skill/dto/freelancer-skill.dto.ts
|
|
7648
|
-
import { IsArray as IsArray11, IsString as
|
|
7661
|
+
import { IsArray as IsArray11, IsString as IsString39, IsOptional as IsOptional37 } from "class-validator";
|
|
7649
7662
|
import { Type as Type7 } from "class-transformer";
|
|
7650
7663
|
var FreelancerSkillDto = class {
|
|
7651
7664
|
constructor() {
|
|
@@ -7659,25 +7672,25 @@ __decorateClass([
|
|
|
7659
7672
|
IsOptional37(),
|
|
7660
7673
|
IsArray11(),
|
|
7661
7674
|
Type7(() => String),
|
|
7662
|
-
|
|
7675
|
+
IsString39({ each: true })
|
|
7663
7676
|
], FreelancerSkillDto.prototype, "coreSkills", 2);
|
|
7664
7677
|
__decorateClass([
|
|
7665
7678
|
IsOptional37(),
|
|
7666
7679
|
IsArray11(),
|
|
7667
7680
|
Type7(() => String),
|
|
7668
|
-
|
|
7681
|
+
IsString39({ each: true })
|
|
7669
7682
|
], FreelancerSkillDto.prototype, "secondarySkills", 2);
|
|
7670
7683
|
__decorateClass([
|
|
7671
7684
|
IsOptional37(),
|
|
7672
7685
|
IsArray11(),
|
|
7673
7686
|
Type7(() => String),
|
|
7674
|
-
|
|
7687
|
+
IsString39({ each: true })
|
|
7675
7688
|
], FreelancerSkillDto.prototype, "tools", 2);
|
|
7676
7689
|
__decorateClass([
|
|
7677
7690
|
IsOptional37(),
|
|
7678
7691
|
IsArray11(),
|
|
7679
7692
|
Type7(() => String),
|
|
7680
|
-
|
|
7693
|
+
IsString39({ each: true })
|
|
7681
7694
|
], FreelancerSkillDto.prototype, "frameworks", 2);
|
|
7682
7695
|
|
|
7683
7696
|
// src/modules/freelancer-admin/pattern/pattern.ts
|
|
@@ -7705,7 +7718,7 @@ var ADMIN_FREELANCER_PATTERN = {
|
|
|
7705
7718
|
|
|
7706
7719
|
// src/modules/freelancer-admin/dto/create-freelancer.dto.ts
|
|
7707
7720
|
import {
|
|
7708
|
-
IsString as
|
|
7721
|
+
IsString as IsString40,
|
|
7709
7722
|
IsEmail as IsEmail13,
|
|
7710
7723
|
IsBoolean as IsBoolean11,
|
|
7711
7724
|
IsOptional as IsOptional38,
|
|
@@ -7715,7 +7728,7 @@ import {
|
|
|
7715
7728
|
MaxLength as MaxLength16,
|
|
7716
7729
|
MinLength as MinLength12,
|
|
7717
7730
|
Matches as Matches9,
|
|
7718
|
-
IsNotEmpty as
|
|
7731
|
+
IsNotEmpty as IsNotEmpty62,
|
|
7719
7732
|
ValidateIf as ValidateIf7,
|
|
7720
7733
|
IsInt as IsInt7
|
|
7721
7734
|
} from "class-validator";
|
|
@@ -7736,7 +7749,7 @@ var CreateFreelancerDto = class {
|
|
|
7736
7749
|
};
|
|
7737
7750
|
__decorateClass([
|
|
7738
7751
|
IsOptional38(),
|
|
7739
|
-
|
|
7752
|
+
IsString40({ message: "Full name must be a string" }),
|
|
7740
7753
|
MaxLength16(100, { message: "Full name must not exceed 100 characters" }),
|
|
7741
7754
|
Transform2(({ value }) => {
|
|
7742
7755
|
if (Array.isArray(value)) return value[0]?.trim();
|
|
@@ -7753,7 +7766,7 @@ __decorateClass([
|
|
|
7753
7766
|
], CreateFreelancerDto.prototype, "email", 2);
|
|
7754
7767
|
__decorateClass([
|
|
7755
7768
|
IsOptional38(),
|
|
7756
|
-
|
|
7769
|
+
IsString40({ message: "Mobile code must be a string (e.g., +1)" }),
|
|
7757
7770
|
Transform2(({ value }) => {
|
|
7758
7771
|
if (Array.isArray(value)) return value[0]?.trim();
|
|
7759
7772
|
return typeof value === "string" ? value.trim() : value;
|
|
@@ -7761,15 +7774,15 @@ __decorateClass([
|
|
|
7761
7774
|
], CreateFreelancerDto.prototype, "mobileCode", 2);
|
|
7762
7775
|
__decorateClass([
|
|
7763
7776
|
IsOptional38(),
|
|
7764
|
-
|
|
7777
|
+
IsString40({ message: "Mobile must be a string (e.g., 1243253534)" }),
|
|
7765
7778
|
Transform2(({ value }) => {
|
|
7766
7779
|
if (Array.isArray(value)) return value[0]?.trim();
|
|
7767
7780
|
return typeof value === "string" ? value.trim() : value;
|
|
7768
7781
|
})
|
|
7769
7782
|
], CreateFreelancerDto.prototype, "mobile", 2);
|
|
7770
7783
|
__decorateClass([
|
|
7771
|
-
|
|
7772
|
-
|
|
7784
|
+
IsNotEmpty62({ message: "Please enter address." }),
|
|
7785
|
+
IsString40({ message: "address must be a string" }),
|
|
7773
7786
|
Transform2(({ value }) => {
|
|
7774
7787
|
if (Array.isArray(value)) {
|
|
7775
7788
|
const val = value[0];
|
|
@@ -7780,7 +7793,7 @@ __decorateClass([
|
|
|
7780
7793
|
], CreateFreelancerDto.prototype, "address", 2);
|
|
7781
7794
|
__decorateClass([
|
|
7782
7795
|
IsOptional38(),
|
|
7783
|
-
|
|
7796
|
+
IsString40({ message: "addressLine must be a string" }),
|
|
7784
7797
|
Transform2(({ value }) => {
|
|
7785
7798
|
if (Array.isArray(value)) {
|
|
7786
7799
|
const val = value[0];
|
|
@@ -7820,7 +7833,7 @@ __decorateClass([
|
|
|
7820
7833
|
], CreateFreelancerDto.prototype, "cityId", 2);
|
|
7821
7834
|
__decorateClass([
|
|
7822
7835
|
IsOptional38(),
|
|
7823
|
-
|
|
7836
|
+
IsString40({ message: "postalCode must be a string" }),
|
|
7824
7837
|
Transform2(({ value }) => {
|
|
7825
7838
|
if (Array.isArray(value)) {
|
|
7826
7839
|
const val = value[0];
|
|
@@ -7833,7 +7846,7 @@ __decorateClass([
|
|
|
7833
7846
|
], CreateFreelancerDto.prototype, "postalCode", 2);
|
|
7834
7847
|
__decorateClass([
|
|
7835
7848
|
IsOptional38(),
|
|
7836
|
-
|
|
7849
|
+
IsString40({ message: "about must be a string" }),
|
|
7837
7850
|
Transform2(({ value }) => {
|
|
7838
7851
|
if (Array.isArray(value)) {
|
|
7839
7852
|
const val = value[0];
|
|
@@ -7846,7 +7859,7 @@ __decorateClass([
|
|
|
7846
7859
|
], CreateFreelancerDto.prototype, "about", 2);
|
|
7847
7860
|
__decorateClass([
|
|
7848
7861
|
IsOptional38(),
|
|
7849
|
-
|
|
7862
|
+
IsString40({ message: "designation must be a string" }),
|
|
7850
7863
|
Transform2(({ value }) => {
|
|
7851
7864
|
if (Array.isArray(value)) {
|
|
7852
7865
|
const val = value[0];
|
|
@@ -7879,7 +7892,7 @@ __decorateClass([
|
|
|
7879
7892
|
})
|
|
7880
7893
|
], CreateFreelancerDto.prototype, "password", 2);
|
|
7881
7894
|
__decorateClass([
|
|
7882
|
-
|
|
7895
|
+
IsNotEmpty62({ message: "Please enter confirm password." }),
|
|
7883
7896
|
Match("confirmPassword", { message: "Passwords do not match" }),
|
|
7884
7897
|
Transform2(({ value }) => {
|
|
7885
7898
|
if (Array.isArray(value)) {
|
|
@@ -7964,7 +7977,7 @@ __decorateClass([
|
|
|
7964
7977
|
__decorateClass([
|
|
7965
7978
|
ValidateIf7((o) => o.isImmediateJoiner === false),
|
|
7966
7979
|
IsOptional38(),
|
|
7967
|
-
|
|
7980
|
+
IsString40({ message: "availabilityToJoin must be a string" }),
|
|
7968
7981
|
Transform2(({ value }) => {
|
|
7969
7982
|
if (Array.isArray(value)) {
|
|
7970
7983
|
const val = value[0];
|
|
@@ -7990,7 +8003,7 @@ __decorateClass([
|
|
|
7990
8003
|
], CreateFreelancerDto.prototype, "linkedinProfileLink", 2);
|
|
7991
8004
|
__decorateClass([
|
|
7992
8005
|
IsOptional38(),
|
|
7993
|
-
|
|
8006
|
+
IsString40({ message: "Kaggle profile link must be a string" }),
|
|
7994
8007
|
Transform2(({ value }) => {
|
|
7995
8008
|
if (Array.isArray(value)) {
|
|
7996
8009
|
const val = value[0];
|
|
@@ -8046,7 +8059,7 @@ __decorateClass([
|
|
|
8046
8059
|
|
|
8047
8060
|
// src/modules/freelancer-admin/dto/update-freelancer.dto.ts
|
|
8048
8061
|
import {
|
|
8049
|
-
IsString as
|
|
8062
|
+
IsString as IsString41,
|
|
8050
8063
|
IsEmail as IsEmail14,
|
|
8051
8064
|
IsBoolean as IsBoolean12,
|
|
8052
8065
|
IsOptional as IsOptional39,
|
|
@@ -8056,7 +8069,7 @@ import {
|
|
|
8056
8069
|
MaxLength as MaxLength17,
|
|
8057
8070
|
MinLength as MinLength13,
|
|
8058
8071
|
Matches as Matches10,
|
|
8059
|
-
IsNotEmpty as
|
|
8072
|
+
IsNotEmpty as IsNotEmpty63,
|
|
8060
8073
|
ValidateIf as ValidateIf8,
|
|
8061
8074
|
IsInt as IsInt8
|
|
8062
8075
|
} from "class-validator";
|
|
@@ -8077,7 +8090,7 @@ var UpdateFreelancerDto = class {
|
|
|
8077
8090
|
};
|
|
8078
8091
|
__decorateClass([
|
|
8079
8092
|
IsOptional39(),
|
|
8080
|
-
|
|
8093
|
+
IsString41({ message: "Full name must be a string" }),
|
|
8081
8094
|
MaxLength17(100, { message: "Full name must not exceed 100 characters" }),
|
|
8082
8095
|
Transform3(({ value }) => {
|
|
8083
8096
|
if (Array.isArray(value)) return value[0]?.trim();
|
|
@@ -8094,7 +8107,7 @@ __decorateClass([
|
|
|
8094
8107
|
], UpdateFreelancerDto.prototype, "email", 2);
|
|
8095
8108
|
__decorateClass([
|
|
8096
8109
|
IsOptional39(),
|
|
8097
|
-
|
|
8110
|
+
IsString41({ message: "Mobile code must be a string (e.g., +1)" }),
|
|
8098
8111
|
Transform3(({ value }) => {
|
|
8099
8112
|
if (Array.isArray(value)) return value[0]?.trim();
|
|
8100
8113
|
return typeof value === "string" ? value.trim() : value;
|
|
@@ -8102,15 +8115,15 @@ __decorateClass([
|
|
|
8102
8115
|
], UpdateFreelancerDto.prototype, "mobileCode", 2);
|
|
8103
8116
|
__decorateClass([
|
|
8104
8117
|
IsOptional39(),
|
|
8105
|
-
|
|
8118
|
+
IsString41({ message: "Mobile must be a string (e.g., 1243253534)" }),
|
|
8106
8119
|
Transform3(({ value }) => {
|
|
8107
8120
|
if (Array.isArray(value)) return value[0]?.trim();
|
|
8108
8121
|
return typeof value === "string" ? value.trim() : value;
|
|
8109
8122
|
})
|
|
8110
8123
|
], UpdateFreelancerDto.prototype, "mobile", 2);
|
|
8111
8124
|
__decorateClass([
|
|
8112
|
-
|
|
8113
|
-
|
|
8125
|
+
IsNotEmpty63({ message: "Please enter address." }),
|
|
8126
|
+
IsString41({ message: "address must be a string" }),
|
|
8114
8127
|
Transform3(({ value }) => {
|
|
8115
8128
|
if (Array.isArray(value)) {
|
|
8116
8129
|
const val = value[0];
|
|
@@ -8121,7 +8134,7 @@ __decorateClass([
|
|
|
8121
8134
|
], UpdateFreelancerDto.prototype, "address", 2);
|
|
8122
8135
|
__decorateClass([
|
|
8123
8136
|
IsOptional39(),
|
|
8124
|
-
|
|
8137
|
+
IsString41({ message: "addressLine must be a string" }),
|
|
8125
8138
|
Transform3(({ value }) => {
|
|
8126
8139
|
if (Array.isArray(value)) {
|
|
8127
8140
|
const val = value[0];
|
|
@@ -8161,7 +8174,7 @@ __decorateClass([
|
|
|
8161
8174
|
], UpdateFreelancerDto.prototype, "cityId", 2);
|
|
8162
8175
|
__decorateClass([
|
|
8163
8176
|
IsOptional39(),
|
|
8164
|
-
|
|
8177
|
+
IsString41({ message: "postalCode must be a string" }),
|
|
8165
8178
|
Transform3(({ value }) => {
|
|
8166
8179
|
if (Array.isArray(value)) {
|
|
8167
8180
|
const val = value[0];
|
|
@@ -8174,7 +8187,7 @@ __decorateClass([
|
|
|
8174
8187
|
], UpdateFreelancerDto.prototype, "postalCode", 2);
|
|
8175
8188
|
__decorateClass([
|
|
8176
8189
|
IsOptional39(),
|
|
8177
|
-
|
|
8190
|
+
IsString41({ message: "about must be a string" }),
|
|
8178
8191
|
Transform3(({ value }) => {
|
|
8179
8192
|
if (Array.isArray(value)) {
|
|
8180
8193
|
const val = value[0];
|
|
@@ -8187,7 +8200,7 @@ __decorateClass([
|
|
|
8187
8200
|
], UpdateFreelancerDto.prototype, "about", 2);
|
|
8188
8201
|
__decorateClass([
|
|
8189
8202
|
IsOptional39(),
|
|
8190
|
-
|
|
8203
|
+
IsString41({ message: "designation must be a string" }),
|
|
8191
8204
|
Transform3(({ value }) => {
|
|
8192
8205
|
if (Array.isArray(value)) {
|
|
8193
8206
|
const val = value[0];
|
|
@@ -8294,7 +8307,7 @@ __decorateClass([
|
|
|
8294
8307
|
__decorateClass([
|
|
8295
8308
|
ValidateIf8((o) => o.isImmediateJoiner === false),
|
|
8296
8309
|
IsOptional39(),
|
|
8297
|
-
|
|
8310
|
+
IsString41({ message: "availabilityToJoin must be a string" }),
|
|
8298
8311
|
Transform3(({ value }) => {
|
|
8299
8312
|
if (Array.isArray(value)) {
|
|
8300
8313
|
const val = value[0];
|
|
@@ -8320,7 +8333,7 @@ __decorateClass([
|
|
|
8320
8333
|
], UpdateFreelancerDto.prototype, "linkedinProfileLink", 2);
|
|
8321
8334
|
__decorateClass([
|
|
8322
8335
|
IsOptional39(),
|
|
8323
|
-
|
|
8336
|
+
IsString41({ message: "Kaggle profile link must be a string" }),
|
|
8324
8337
|
Transform3(({ value }) => {
|
|
8325
8338
|
if (Array.isArray(value)) {
|
|
8326
8339
|
const val = value[0];
|
|
@@ -8375,16 +8388,16 @@ __decorateClass([
|
|
|
8375
8388
|
], UpdateFreelancerDto.prototype, "file", 2);
|
|
8376
8389
|
|
|
8377
8390
|
// src/modules/freelancer-admin/dto/send-ai-assessment-link.dto.ts
|
|
8378
|
-
import { IsNotEmpty as
|
|
8391
|
+
import { IsNotEmpty as IsNotEmpty64, IsUUID as IsUUID17 } from "class-validator";
|
|
8379
8392
|
var SendAiAssessmentLinkDto = class {
|
|
8380
8393
|
};
|
|
8381
8394
|
__decorateClass([
|
|
8382
8395
|
IsUUID17("4", { message: "Freelancer UUID must be a valid UUID." }),
|
|
8383
|
-
|
|
8396
|
+
IsNotEmpty64({ message: "Freelancer UUID is required." })
|
|
8384
8397
|
], SendAiAssessmentLinkDto.prototype, "uuid", 2);
|
|
8385
8398
|
|
|
8386
8399
|
// src/modules/freelancer-admin/dto/update-assessment-request-status.dto.ts
|
|
8387
|
-
import { IsEnum as IsEnum25, IsOptional as IsOptional40, IsString as
|
|
8400
|
+
import { IsEnum as IsEnum25, IsOptional as IsOptional40, IsString as IsString42 } from "class-validator";
|
|
8388
8401
|
var AssessmentRequestStatus = /* @__PURE__ */ ((AssessmentRequestStatus2) => {
|
|
8389
8402
|
AssessmentRequestStatus2["PENDING"] = "PENDING";
|
|
8390
8403
|
AssessmentRequestStatus2["APPROVED"] = "APPROVED";
|
|
@@ -8401,7 +8414,7 @@ __decorateClass([
|
|
|
8401
8414
|
], UpdateAssessmentRequestStatusDto.prototype, "status", 2);
|
|
8402
8415
|
__decorateClass([
|
|
8403
8416
|
IsOptional40(),
|
|
8404
|
-
|
|
8417
|
+
IsString42()
|
|
8405
8418
|
], UpdateAssessmentRequestStatusDto.prototype, "remarks", 2);
|
|
8406
8419
|
|
|
8407
8420
|
// src/modules/freelancer-admin/dto/admin-export-freelancerV2-optimised.dto.ts
|
|
@@ -8434,10 +8447,10 @@ var CLIENT_ADMIN_PATTERNS = {
|
|
|
8434
8447
|
|
|
8435
8448
|
// src/modules/client-admin/dto/create-client.dto.ts
|
|
8436
8449
|
import {
|
|
8437
|
-
IsNotEmpty as
|
|
8450
|
+
IsNotEmpty as IsNotEmpty65,
|
|
8438
8451
|
IsEmail as IsEmail16,
|
|
8439
8452
|
IsOptional as IsOptional42,
|
|
8440
|
-
IsString as
|
|
8453
|
+
IsString as IsString43,
|
|
8441
8454
|
MinLength as MinLength14,
|
|
8442
8455
|
MaxLength as MaxLength18,
|
|
8443
8456
|
Matches as Matches11,
|
|
@@ -8448,27 +8461,27 @@ import { Type as Type8 } from "class-transformer";
|
|
|
8448
8461
|
var CreateClientDto = class {
|
|
8449
8462
|
};
|
|
8450
8463
|
__decorateClass([
|
|
8451
|
-
|
|
8452
|
-
|
|
8464
|
+
IsNotEmpty65({ message: "Please enter first name." }),
|
|
8465
|
+
IsString43()
|
|
8453
8466
|
], CreateClientDto.prototype, "firstName", 2);
|
|
8454
8467
|
__decorateClass([
|
|
8455
|
-
|
|
8456
|
-
|
|
8468
|
+
IsNotEmpty65({ message: "Please enter last name." }),
|
|
8469
|
+
IsString43()
|
|
8457
8470
|
], CreateClientDto.prototype, "lastName", 2);
|
|
8458
8471
|
__decorateClass([
|
|
8459
|
-
|
|
8472
|
+
IsNotEmpty65({ message: "Please enter email." }),
|
|
8460
8473
|
IsEmail16()
|
|
8461
8474
|
], CreateClientDto.prototype, "email", 2);
|
|
8462
8475
|
__decorateClass([
|
|
8463
|
-
|
|
8464
|
-
|
|
8476
|
+
IsNotEmpty65({ message: "Please enter mobile code." }),
|
|
8477
|
+
IsString43({ message: "Mobile code must be a string." })
|
|
8465
8478
|
], CreateClientDto.prototype, "mobileCode", 2);
|
|
8466
8479
|
__decorateClass([
|
|
8467
|
-
|
|
8468
|
-
|
|
8480
|
+
IsNotEmpty65({ message: "Please enter phone number." }),
|
|
8481
|
+
IsString43({ message: "Phone number must be a string." })
|
|
8469
8482
|
], CreateClientDto.prototype, "phoneNumber", 2);
|
|
8470
8483
|
__decorateClass([
|
|
8471
|
-
|
|
8484
|
+
IsNotEmpty65({ message: "Please enter password." }),
|
|
8472
8485
|
MinLength14(6),
|
|
8473
8486
|
MaxLength18(32),
|
|
8474
8487
|
Matches11(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
@@ -8476,24 +8489,24 @@ __decorateClass([
|
|
|
8476
8489
|
})
|
|
8477
8490
|
], CreateClientDto.prototype, "password", 2);
|
|
8478
8491
|
__decorateClass([
|
|
8479
|
-
|
|
8492
|
+
IsNotEmpty65({ message: "Please enter confirm password." }),
|
|
8480
8493
|
Match("confirmPassword", { message: "Passwords do not match" })
|
|
8481
8494
|
], CreateClientDto.prototype, "confirmPassword", 2);
|
|
8482
8495
|
__decorateClass([
|
|
8483
|
-
|
|
8484
|
-
|
|
8496
|
+
IsNotEmpty65({ message: "Please enter company name." }),
|
|
8497
|
+
IsString43()
|
|
8485
8498
|
], CreateClientDto.prototype, "companyName", 2);
|
|
8486
8499
|
__decorateClass([
|
|
8487
8500
|
IsOptional42(),
|
|
8488
|
-
|
|
8501
|
+
IsString43()
|
|
8489
8502
|
], CreateClientDto.prototype, "foundUsOn", 2);
|
|
8490
8503
|
__decorateClass([
|
|
8491
8504
|
IsOptional42(),
|
|
8492
|
-
|
|
8505
|
+
IsString43()
|
|
8493
8506
|
], CreateClientDto.prototype, "foundUsOnDetail", 2);
|
|
8494
8507
|
__decorateClass([
|
|
8495
8508
|
IsOptional42(),
|
|
8496
|
-
|
|
8509
|
+
IsString43({ message: "About company must be a string." })
|
|
8497
8510
|
], CreateClientDto.prototype, "about", 2);
|
|
8498
8511
|
__decorateClass([
|
|
8499
8512
|
IsOptional42(),
|
|
@@ -8501,15 +8514,15 @@ __decorateClass([
|
|
|
8501
8514
|
], CreateClientDto.prototype, "webSite", 2);
|
|
8502
8515
|
__decorateClass([
|
|
8503
8516
|
IsOptional42(),
|
|
8504
|
-
|
|
8517
|
+
IsString43({ message: "Company address must be a string." })
|
|
8505
8518
|
], CreateClientDto.prototype, "companyAddress", 2);
|
|
8506
8519
|
__decorateClass([
|
|
8507
8520
|
IsOptional42(),
|
|
8508
|
-
|
|
8521
|
+
IsString43({ message: "Address line must be a string." })
|
|
8509
8522
|
], CreateClientDto.prototype, "addressLine", 2);
|
|
8510
8523
|
__decorateClass([
|
|
8511
8524
|
IsOptional42(),
|
|
8512
|
-
|
|
8525
|
+
IsString43({ message: "Postal code must be a string." })
|
|
8513
8526
|
], CreateClientDto.prototype, "postalCode", 2);
|
|
8514
8527
|
__decorateClass([
|
|
8515
8528
|
IsOptional42(),
|
|
@@ -8528,21 +8541,21 @@ __decorateClass([
|
|
|
8528
8541
|
], CreateClientDto.prototype, "cityId", 2);
|
|
8529
8542
|
|
|
8530
8543
|
// src/modules/client-admin/dto/update-client-status.dto.ts
|
|
8531
|
-
import { IsString as
|
|
8544
|
+
import { IsString as IsString44, IsNotEmpty as IsNotEmpty66 } from "class-validator";
|
|
8532
8545
|
var UpdateClientAccountStatusDto = class {
|
|
8533
8546
|
};
|
|
8534
8547
|
__decorateClass([
|
|
8535
|
-
|
|
8536
|
-
|
|
8548
|
+
IsNotEmpty66({ message: "Please enter account status." }),
|
|
8549
|
+
IsString44()
|
|
8537
8550
|
], UpdateClientAccountStatusDto.prototype, "accountStatus", 2);
|
|
8538
8551
|
|
|
8539
8552
|
// src/modules/client-admin/dto/update-client.dto.ts
|
|
8540
8553
|
import { Transform as Transform5, Type as Type9 } from "class-transformer";
|
|
8541
8554
|
import {
|
|
8542
|
-
IsNotEmpty as
|
|
8555
|
+
IsNotEmpty as IsNotEmpty67,
|
|
8543
8556
|
IsEmail as IsEmail17,
|
|
8544
8557
|
IsOptional as IsOptional43,
|
|
8545
|
-
IsString as
|
|
8558
|
+
IsString as IsString45,
|
|
8546
8559
|
MinLength as MinLength15,
|
|
8547
8560
|
MaxLength as MaxLength19,
|
|
8548
8561
|
Matches as Matches12
|
|
@@ -8550,24 +8563,24 @@ import {
|
|
|
8550
8563
|
var UpdateClientDto = class {
|
|
8551
8564
|
};
|
|
8552
8565
|
__decorateClass([
|
|
8553
|
-
|
|
8554
|
-
|
|
8566
|
+
IsNotEmpty67({ message: "Please enter first name." }),
|
|
8567
|
+
IsString45()
|
|
8555
8568
|
], UpdateClientDto.prototype, "firstName", 2);
|
|
8556
8569
|
__decorateClass([
|
|
8557
|
-
|
|
8558
|
-
|
|
8570
|
+
IsNotEmpty67({ message: "Please enter last name." }),
|
|
8571
|
+
IsString45()
|
|
8559
8572
|
], UpdateClientDto.prototype, "lastName", 2);
|
|
8560
8573
|
__decorateClass([
|
|
8561
|
-
|
|
8574
|
+
IsNotEmpty67({ message: "Please enter email." }),
|
|
8562
8575
|
IsEmail17()
|
|
8563
8576
|
], UpdateClientDto.prototype, "email", 2);
|
|
8564
8577
|
__decorateClass([
|
|
8565
8578
|
IsOptional43(),
|
|
8566
|
-
|
|
8579
|
+
IsString45({ message: "Mobile code must be a string." })
|
|
8567
8580
|
], UpdateClientDto.prototype, "mobileCode", 2);
|
|
8568
8581
|
__decorateClass([
|
|
8569
8582
|
IsOptional43(),
|
|
8570
|
-
|
|
8583
|
+
IsString45({ message: "Phone number must be a string." })
|
|
8571
8584
|
], UpdateClientDto.prototype, "phoneNumber", 2);
|
|
8572
8585
|
__decorateClass([
|
|
8573
8586
|
IsOptional43(),
|
|
@@ -8579,36 +8592,36 @@ __decorateClass([
|
|
|
8579
8592
|
})
|
|
8580
8593
|
], UpdateClientDto.prototype, "password", 2);
|
|
8581
8594
|
__decorateClass([
|
|
8582
|
-
|
|
8583
|
-
|
|
8595
|
+
IsNotEmpty67({ message: "Please enter company name." }),
|
|
8596
|
+
IsString45()
|
|
8584
8597
|
], UpdateClientDto.prototype, "companyName", 2);
|
|
8585
8598
|
__decorateClass([
|
|
8586
8599
|
IsOptional43(),
|
|
8587
|
-
|
|
8600
|
+
IsString45()
|
|
8588
8601
|
], UpdateClientDto.prototype, "foundUsOn", 2);
|
|
8589
8602
|
__decorateClass([
|
|
8590
8603
|
IsOptional43(),
|
|
8591
|
-
|
|
8604
|
+
IsString45()
|
|
8592
8605
|
], UpdateClientDto.prototype, "foundUsOnDetail", 2);
|
|
8593
8606
|
__decorateClass([
|
|
8594
8607
|
IsOptional43(),
|
|
8595
|
-
|
|
8608
|
+
IsString45({ message: "About company must be a string." })
|
|
8596
8609
|
], UpdateClientDto.prototype, "about", 2);
|
|
8597
8610
|
__decorateClass([
|
|
8598
8611
|
IsOptional43(),
|
|
8599
|
-
|
|
8612
|
+
IsString45({ message: "Website must be a string." })
|
|
8600
8613
|
], UpdateClientDto.prototype, "webSite", 2);
|
|
8601
8614
|
__decorateClass([
|
|
8602
8615
|
IsOptional43(),
|
|
8603
|
-
|
|
8616
|
+
IsString45({ message: "Company address must be a string." })
|
|
8604
8617
|
], UpdateClientDto.prototype, "companyAddress", 2);
|
|
8605
8618
|
__decorateClass([
|
|
8606
8619
|
IsOptional43(),
|
|
8607
|
-
|
|
8620
|
+
IsString45({ message: "Address line must be a string." })
|
|
8608
8621
|
], UpdateClientDto.prototype, "addressLine", 2);
|
|
8609
8622
|
__decorateClass([
|
|
8610
8623
|
IsOptional43(),
|
|
8611
|
-
|
|
8624
|
+
IsString45({ message: "Postal code must be a string." })
|
|
8612
8625
|
], UpdateClientDto.prototype, "postalCode", 2);
|
|
8613
8626
|
__decorateClass([
|
|
8614
8627
|
IsOptional43(),
|
|
@@ -8623,6 +8636,20 @@ __decorateClass([
|
|
|
8623
8636
|
Type9(() => Number)
|
|
8624
8637
|
], UpdateClientDto.prototype, "cityId", 2);
|
|
8625
8638
|
|
|
8639
|
+
// src/modules/client-admin/dto/admin-export-clientV2-optimised.dto.ts
|
|
8640
|
+
import { IsOptional as IsOptional44, IsArray as IsArray15, IsEmail as IsEmail18 } from "class-validator";
|
|
8641
|
+
import { Transform as Transform6 } from "class-transformer";
|
|
8642
|
+
var AdminExportClientV2OptimisedDto = class {
|
|
8643
|
+
};
|
|
8644
|
+
__decorateClass([
|
|
8645
|
+
IsOptional44(),
|
|
8646
|
+
Transform6(
|
|
8647
|
+
({ value }) => typeof value === "string" ? value.split(",").map((email) => email.trim().toLowerCase()).filter(Boolean) : []
|
|
8648
|
+
),
|
|
8649
|
+
IsArray15({ message: "customEmails must be an array" }),
|
|
8650
|
+
IsEmail18({}, { each: true, message: "Each email must be a valid email address" })
|
|
8651
|
+
], AdminExportClientV2OptimisedDto.prototype, "customEmails", 2);
|
|
8652
|
+
|
|
8626
8653
|
// src/modules/user/freelancer-declaration/pattern/pattern.ts
|
|
8627
8654
|
var FREELANCER_DECLARATION_PATTERN = {
|
|
8628
8655
|
fetchFreelancerDeclaration: "fetch.freelancer.declaration",
|
|
@@ -8630,7 +8657,7 @@ var FREELANCER_DECLARATION_PATTERN = {
|
|
|
8630
8657
|
};
|
|
8631
8658
|
|
|
8632
8659
|
// src/modules/user/freelancer-declaration/dto/freelancer-declaration.dto.ts
|
|
8633
|
-
import { IsOptional as
|
|
8660
|
+
import { IsOptional as IsOptional45, IsEnum as IsEnum28, IsString as IsString46, IsNotEmpty as IsNotEmpty68, IsIn as IsIn3 } from "class-validator";
|
|
8634
8661
|
var DocumentTypeEnum = /* @__PURE__ */ ((DocumentTypeEnum2) => {
|
|
8635
8662
|
DocumentTypeEnum2["AADHAAR"] = "AADHAAR_CARD";
|
|
8636
8663
|
DocumentTypeEnum2["PASSPORT"] = "PASSPORT";
|
|
@@ -8641,15 +8668,15 @@ var DocumentTypeEnum = /* @__PURE__ */ ((DocumentTypeEnum2) => {
|
|
|
8641
8668
|
var FreelancerDeclarationDto = class {
|
|
8642
8669
|
};
|
|
8643
8670
|
__decorateClass([
|
|
8644
|
-
|
|
8645
|
-
|
|
8671
|
+
IsOptional45(),
|
|
8672
|
+
IsString46({ message: "UUID must be a string" })
|
|
8646
8673
|
], FreelancerDeclarationDto.prototype, "uuid", 2);
|
|
8647
8674
|
__decorateClass([
|
|
8648
8675
|
IsEnum28(DocumentTypeEnum, { message: "Document type must be one of AADHAAR_CARD, PASSPORT, DRIVING_LICENSE, PAN_CARD" })
|
|
8649
8676
|
], FreelancerDeclarationDto.prototype, "documentType", 2);
|
|
8650
8677
|
__decorateClass([
|
|
8651
|
-
|
|
8652
|
-
|
|
8678
|
+
IsNotEmpty68({ message: "Please accept the declaration " }),
|
|
8679
|
+
IsString46(),
|
|
8653
8680
|
IsIn3([
|
|
8654
8681
|
"true"
|
|
8655
8682
|
])
|
|
@@ -8665,34 +8692,34 @@ var CLIENT_CANDIDATE_PREFERENCE_PATTERN = {
|
|
|
8665
8692
|
};
|
|
8666
8693
|
|
|
8667
8694
|
// src/modules/user/client-candidate-preference/dto/mark-candidate-status.dto.ts
|
|
8668
|
-
import { IsNotEmpty as
|
|
8695
|
+
import { IsNotEmpty as IsNotEmpty69, IsNumber as IsNumber11, IsOptional as IsOptional46 } from "class-validator";
|
|
8669
8696
|
import { Type as Type10 } from "class-transformer";
|
|
8670
8697
|
var MarkCandidateStatusDto = class {
|
|
8671
8698
|
};
|
|
8672
8699
|
__decorateClass([
|
|
8673
|
-
|
|
8700
|
+
IsNotEmpty69({ message: "Candidate ID is required." }),
|
|
8674
8701
|
IsNumber11({}, { message: "Candidate ID must be a number." }),
|
|
8675
8702
|
Type10(() => Number)
|
|
8676
8703
|
], MarkCandidateStatusDto.prototype, "candidateId", 2);
|
|
8677
8704
|
__decorateClass([
|
|
8678
|
-
|
|
8705
|
+
IsOptional46(),
|
|
8679
8706
|
IsNumber11({}, { message: "Job ID must be a number." }),
|
|
8680
8707
|
Type10(() => Number)
|
|
8681
8708
|
], MarkCandidateStatusDto.prototype, "jobId", 2);
|
|
8682
8709
|
|
|
8683
8710
|
// src/modules/user/client-candidate-preference/dto/mark-candidate-status-bulk.dto.ts
|
|
8684
|
-
import { ArrayNotEmpty as ArrayNotEmpty8, IsArray as
|
|
8711
|
+
import { ArrayNotEmpty as ArrayNotEmpty8, IsArray as IsArray16, IsNumber as IsNumber12, IsOptional as IsOptional47 } from "class-validator";
|
|
8685
8712
|
import { Type as Type11 } from "class-transformer";
|
|
8686
8713
|
var MarkCandidateStatusBulkDto = class {
|
|
8687
8714
|
};
|
|
8688
8715
|
__decorateClass([
|
|
8689
|
-
|
|
8716
|
+
IsArray16({ message: "Candidate IDs must be an array." }),
|
|
8690
8717
|
ArrayNotEmpty8({ message: "At least one candidate ID is required." }),
|
|
8691
8718
|
IsNumber12({}, { each: true, message: "Each candidate ID must be a number." }),
|
|
8692
8719
|
Type11(() => Number)
|
|
8693
8720
|
], MarkCandidateStatusBulkDto.prototype, "candidateIds", 2);
|
|
8694
8721
|
__decorateClass([
|
|
8695
|
-
|
|
8722
|
+
IsOptional47(),
|
|
8696
8723
|
IsNumber12({}, { message: "Job ID must be a number." }),
|
|
8697
8724
|
Type11(() => Number)
|
|
8698
8725
|
], MarkCandidateStatusBulkDto.prototype, "jobId", 2);
|
|
@@ -8708,44 +8735,44 @@ var CMS_PATTERNS = {
|
|
|
8708
8735
|
};
|
|
8709
8736
|
|
|
8710
8737
|
// src/modules/cms/dto/create-cms.dto.ts
|
|
8711
|
-
import { IsBoolean as IsBoolean13, IsNotEmpty as
|
|
8738
|
+
import { IsBoolean as IsBoolean13, IsNotEmpty as IsNotEmpty70, IsOptional as IsOptional48 } from "class-validator";
|
|
8712
8739
|
var CreateCmsDto = class {
|
|
8713
8740
|
};
|
|
8714
8741
|
__decorateClass([
|
|
8715
|
-
|
|
8742
|
+
IsNotEmpty70({ message: "Please enter name." })
|
|
8716
8743
|
], CreateCmsDto.prototype, "title", 2);
|
|
8717
8744
|
__decorateClass([
|
|
8718
|
-
|
|
8745
|
+
IsOptional48()
|
|
8719
8746
|
], CreateCmsDto.prototype, "content", 2);
|
|
8720
8747
|
__decorateClass([
|
|
8721
|
-
|
|
8748
|
+
IsOptional48(),
|
|
8722
8749
|
IsBoolean13({ message: "Is active must be a boolean value" })
|
|
8723
8750
|
], CreateCmsDto.prototype, "isActive", 2);
|
|
8724
8751
|
|
|
8725
8752
|
// src/modules/cms/dto/update-cms-status.dto.ts
|
|
8726
|
-
import { IsBoolean as IsBoolean14, IsNotEmpty as
|
|
8753
|
+
import { IsBoolean as IsBoolean14, IsNotEmpty as IsNotEmpty71 } from "class-validator";
|
|
8727
8754
|
var UpdateCmsStatusDto = class {
|
|
8728
8755
|
};
|
|
8729
8756
|
__decorateClass([
|
|
8730
|
-
|
|
8757
|
+
IsNotEmpty71({ message: "Please specify cms status." }),
|
|
8731
8758
|
IsBoolean14({ message: "Is active must be a boolean value" })
|
|
8732
8759
|
], UpdateCmsStatusDto.prototype, "isActive", 2);
|
|
8733
8760
|
|
|
8734
8761
|
// src/modules/cms/dto/update-cms.dto.ts
|
|
8735
|
-
import { IsBoolean as IsBoolean15, IsNotEmpty as
|
|
8762
|
+
import { IsBoolean as IsBoolean15, IsNotEmpty as IsNotEmpty72, IsOptional as IsOptional49 } from "class-validator";
|
|
8736
8763
|
var UpdateCmsDto = class {
|
|
8737
8764
|
};
|
|
8738
8765
|
__decorateClass([
|
|
8739
|
-
|
|
8766
|
+
IsOptional49()
|
|
8740
8767
|
], UpdateCmsDto.prototype, "uuid", 2);
|
|
8741
8768
|
__decorateClass([
|
|
8742
|
-
|
|
8769
|
+
IsNotEmpty72({ message: "Please enter name." })
|
|
8743
8770
|
], UpdateCmsDto.prototype, "title", 2);
|
|
8744
8771
|
__decorateClass([
|
|
8745
|
-
|
|
8772
|
+
IsOptional49()
|
|
8746
8773
|
], UpdateCmsDto.prototype, "content", 2);
|
|
8747
8774
|
__decorateClass([
|
|
8748
|
-
|
|
8775
|
+
IsOptional49(),
|
|
8749
8776
|
IsBoolean15({ message: "Is active must be a boolean value" })
|
|
8750
8777
|
], UpdateCmsDto.prototype, "isActive", 2);
|
|
8751
8778
|
|
|
@@ -8781,13 +8808,13 @@ var ADMIN_JOB_PATTERN = {
|
|
|
8781
8808
|
// src/modules/job-admin/dto/admin-create-job-information.dto.ts
|
|
8782
8809
|
import { Type as Type12 } from "class-transformer";
|
|
8783
8810
|
import {
|
|
8784
|
-
IsString as
|
|
8811
|
+
IsString as IsString47,
|
|
8785
8812
|
IsEnum as IsEnum29,
|
|
8786
8813
|
IsInt as IsInt10,
|
|
8787
|
-
IsOptional as
|
|
8788
|
-
IsArray as
|
|
8814
|
+
IsOptional as IsOptional50,
|
|
8815
|
+
IsArray as IsArray17,
|
|
8789
8816
|
IsDateString as IsDateString3,
|
|
8790
|
-
IsNotEmpty as
|
|
8817
|
+
IsNotEmpty as IsNotEmpty73,
|
|
8791
8818
|
ArrayNotEmpty as ArrayNotEmpty9,
|
|
8792
8819
|
Min as Min6,
|
|
8793
8820
|
IsNumber as IsNumber13
|
|
@@ -8807,17 +8834,17 @@ var TypeOfEmploymentEnumDto = /* @__PURE__ */ ((TypeOfEmploymentEnumDto2) => {
|
|
|
8807
8834
|
var AdminCreateJobInformationDto = class {
|
|
8808
8835
|
};
|
|
8809
8836
|
__decorateClass([
|
|
8810
|
-
|
|
8811
|
-
|
|
8837
|
+
IsString47({ message: "Job role must be a string." }),
|
|
8838
|
+
IsNotEmpty73({ message: "Job role is required." })
|
|
8812
8839
|
], AdminCreateJobInformationDto.prototype, "jobRole", 2);
|
|
8813
8840
|
__decorateClass([
|
|
8814
|
-
|
|
8815
|
-
|
|
8841
|
+
IsOptional50(),
|
|
8842
|
+
IsString47({ message: "Note must be a string." })
|
|
8816
8843
|
], AdminCreateJobInformationDto.prototype, "note", 2);
|
|
8817
8844
|
__decorateClass([
|
|
8818
|
-
|
|
8845
|
+
IsArray17({ message: "Skills must be an array of skill names." }),
|
|
8819
8846
|
ArrayNotEmpty9({ message: "At least one skill must be provided." }),
|
|
8820
|
-
|
|
8847
|
+
IsString47({ each: true, message: "Each skill must be a valid string." })
|
|
8821
8848
|
], AdminCreateJobInformationDto.prototype, "skills", 2);
|
|
8822
8849
|
__decorateClass([
|
|
8823
8850
|
IsInt10({ message: "Openings must be a valid integer." }),
|
|
@@ -8838,16 +8865,16 @@ __decorateClass([
|
|
|
8838
8865
|
})
|
|
8839
8866
|
], AdminCreateJobInformationDto.prototype, "typeOfEmployment", 2);
|
|
8840
8867
|
__decorateClass([
|
|
8841
|
-
|
|
8842
|
-
|
|
8868
|
+
IsString47({ message: "Onboarding Days must be a string." }),
|
|
8869
|
+
IsNotEmpty73({ message: "Onboarding Days is required." })
|
|
8843
8870
|
], AdminCreateJobInformationDto.prototype, "onboardingTat", 2);
|
|
8844
8871
|
__decorateClass([
|
|
8845
|
-
|
|
8846
|
-
|
|
8872
|
+
IsString47({ message: "Communication skills must be a string." }),
|
|
8873
|
+
IsNotEmpty73({ message: "Communication skills are required." })
|
|
8847
8874
|
], AdminCreateJobInformationDto.prototype, "candidateCommunicationSkills", 2);
|
|
8848
8875
|
__decorateClass([
|
|
8849
|
-
|
|
8850
|
-
|
|
8876
|
+
IsString47({ message: "Currency must be a string." }),
|
|
8877
|
+
IsNotEmpty73({ message: "Currency is required." })
|
|
8851
8878
|
], AdminCreateJobInformationDto.prototype, "currency", 2);
|
|
8852
8879
|
__decorateClass([
|
|
8853
8880
|
Type12(() => Number),
|
|
@@ -8870,19 +8897,19 @@ __decorateClass([
|
|
|
8870
8897
|
)
|
|
8871
8898
|
], AdminCreateJobInformationDto.prototype, "tentativeEndDate", 2);
|
|
8872
8899
|
__decorateClass([
|
|
8873
|
-
|
|
8874
|
-
|
|
8900
|
+
IsOptional50(),
|
|
8901
|
+
IsString47({ message: "Additional comment must be a string." })
|
|
8875
8902
|
], AdminCreateJobInformationDto.prototype, "additionalComment", 2);
|
|
8876
8903
|
__decorateClass([
|
|
8877
|
-
|
|
8904
|
+
IsOptional50(),
|
|
8878
8905
|
IsInt10({ message: "Country ID must be a valid integer." })
|
|
8879
8906
|
], AdminCreateJobInformationDto.prototype, "countryId", 2);
|
|
8880
8907
|
__decorateClass([
|
|
8881
|
-
|
|
8908
|
+
IsOptional50(),
|
|
8882
8909
|
IsInt10({ message: "State ID must be a valid integer." })
|
|
8883
8910
|
], AdminCreateJobInformationDto.prototype, "stateId", 2);
|
|
8884
8911
|
__decorateClass([
|
|
8885
|
-
|
|
8912
|
+
IsOptional50(),
|
|
8886
8913
|
IsInt10({ message: "City ID must be a valid integer." })
|
|
8887
8914
|
], AdminCreateJobInformationDto.prototype, "cityId", 2);
|
|
8888
8915
|
__decorateClass([
|
|
@@ -8892,13 +8919,13 @@ __decorateClass([
|
|
|
8892
8919
|
// src/modules/job-admin/dto/admin-update-job-information.dto.ts
|
|
8893
8920
|
import { Type as Type13 } from "class-transformer";
|
|
8894
8921
|
import {
|
|
8895
|
-
IsString as
|
|
8922
|
+
IsString as IsString48,
|
|
8896
8923
|
IsEnum as IsEnum30,
|
|
8897
8924
|
IsInt as IsInt11,
|
|
8898
|
-
IsOptional as
|
|
8899
|
-
IsArray as
|
|
8925
|
+
IsOptional as IsOptional51,
|
|
8926
|
+
IsArray as IsArray18,
|
|
8900
8927
|
IsDateString as IsDateString4,
|
|
8901
|
-
IsNotEmpty as
|
|
8928
|
+
IsNotEmpty as IsNotEmpty74,
|
|
8902
8929
|
ArrayNotEmpty as ArrayNotEmpty10,
|
|
8903
8930
|
Min as Min7,
|
|
8904
8931
|
IsNumber as IsNumber14
|
|
@@ -8918,17 +8945,17 @@ var TypeOfEmploymentEnums = /* @__PURE__ */ ((TypeOfEmploymentEnums2) => {
|
|
|
8918
8945
|
var AdminUpdateJobInformationDto = class {
|
|
8919
8946
|
};
|
|
8920
8947
|
__decorateClass([
|
|
8921
|
-
|
|
8922
|
-
|
|
8948
|
+
IsString48({ message: "Job role must be a string." }),
|
|
8949
|
+
IsNotEmpty74({ message: "Job role is required." })
|
|
8923
8950
|
], AdminUpdateJobInformationDto.prototype, "jobRole", 2);
|
|
8924
8951
|
__decorateClass([
|
|
8925
|
-
|
|
8926
|
-
|
|
8952
|
+
IsOptional51(),
|
|
8953
|
+
IsString48({ message: "Note must be a string." })
|
|
8927
8954
|
], AdminUpdateJobInformationDto.prototype, "note", 2);
|
|
8928
8955
|
__decorateClass([
|
|
8929
|
-
|
|
8956
|
+
IsArray18({ message: "Skills must be an array of skill names." }),
|
|
8930
8957
|
ArrayNotEmpty10({ message: "At least one skill must be provided." }),
|
|
8931
|
-
|
|
8958
|
+
IsString48({ each: true, message: "Each skill must be a valid string." })
|
|
8932
8959
|
], AdminUpdateJobInformationDto.prototype, "skills", 2);
|
|
8933
8960
|
__decorateClass([
|
|
8934
8961
|
IsInt11({ message: "Openings must be a valid integer." }),
|
|
@@ -8949,16 +8976,16 @@ __decorateClass([
|
|
|
8949
8976
|
})
|
|
8950
8977
|
], AdminUpdateJobInformationDto.prototype, "typeOfEmployment", 2);
|
|
8951
8978
|
__decorateClass([
|
|
8952
|
-
|
|
8953
|
-
|
|
8979
|
+
IsString48({ message: "Onboarding Days must be a string." }),
|
|
8980
|
+
IsNotEmpty74({ message: "Onboarding Days is required." })
|
|
8954
8981
|
], AdminUpdateJobInformationDto.prototype, "onboardingTat", 2);
|
|
8955
8982
|
__decorateClass([
|
|
8956
|
-
|
|
8957
|
-
|
|
8983
|
+
IsString48({ message: "Communication skills must be a string." }),
|
|
8984
|
+
IsNotEmpty74({ message: "Communication skills are required." })
|
|
8958
8985
|
], AdminUpdateJobInformationDto.prototype, "candidateCommunicationSkills", 2);
|
|
8959
8986
|
__decorateClass([
|
|
8960
|
-
|
|
8961
|
-
|
|
8987
|
+
IsString48({ message: "Currency must be a string." }),
|
|
8988
|
+
IsNotEmpty74({ message: "Currency is required." })
|
|
8962
8989
|
], AdminUpdateJobInformationDto.prototype, "currency", 2);
|
|
8963
8990
|
__decorateClass([
|
|
8964
8991
|
Type13(() => Number),
|
|
@@ -8981,19 +9008,19 @@ __decorateClass([
|
|
|
8981
9008
|
)
|
|
8982
9009
|
], AdminUpdateJobInformationDto.prototype, "tentativeEndDate", 2);
|
|
8983
9010
|
__decorateClass([
|
|
8984
|
-
|
|
8985
|
-
|
|
9011
|
+
IsOptional51(),
|
|
9012
|
+
IsString48({ message: "Additional comment must be a string." })
|
|
8986
9013
|
], AdminUpdateJobInformationDto.prototype, "additionalComment", 2);
|
|
8987
9014
|
__decorateClass([
|
|
8988
|
-
|
|
9015
|
+
IsOptional51(),
|
|
8989
9016
|
IsInt11({ message: "Country ID must be a valid integer." })
|
|
8990
9017
|
], AdminUpdateJobInformationDto.prototype, "countryId", 2);
|
|
8991
9018
|
__decorateClass([
|
|
8992
|
-
|
|
9019
|
+
IsOptional51(),
|
|
8993
9020
|
IsInt11({ message: "State ID must be a valid integer." })
|
|
8994
9021
|
], AdminUpdateJobInformationDto.prototype, "stateId", 2);
|
|
8995
9022
|
__decorateClass([
|
|
8996
|
-
|
|
9023
|
+
IsOptional51(),
|
|
8997
9024
|
IsInt11({ message: "City ID must be a valid integer." })
|
|
8998
9025
|
], AdminUpdateJobInformationDto.prototype, "cityId", 2);
|
|
8999
9026
|
__decorateClass([
|
|
@@ -9002,12 +9029,12 @@ __decorateClass([
|
|
|
9002
9029
|
|
|
9003
9030
|
// src/modules/job-admin/dto/admin-job-basic-information-v2.dto.ts
|
|
9004
9031
|
import {
|
|
9005
|
-
IsString as
|
|
9006
|
-
IsNotEmpty as
|
|
9007
|
-
IsArray as
|
|
9032
|
+
IsString as IsString49,
|
|
9033
|
+
IsNotEmpty as IsNotEmpty75,
|
|
9034
|
+
IsArray as IsArray19,
|
|
9008
9035
|
ArrayNotEmpty as ArrayNotEmpty11,
|
|
9009
9036
|
IsNumber as IsNumber15,
|
|
9010
|
-
IsOptional as
|
|
9037
|
+
IsOptional as IsOptional52,
|
|
9011
9038
|
IsEnum as IsEnum31,
|
|
9012
9039
|
Min as Min8,
|
|
9013
9040
|
ValidateIf as ValidateIf9,
|
|
@@ -9044,15 +9071,15 @@ var AdminStepCompletedEnumV2 = /* @__PURE__ */ ((AdminStepCompletedEnumV22) => {
|
|
|
9044
9071
|
var JobLocationAdminDto = class {
|
|
9045
9072
|
};
|
|
9046
9073
|
__decorateClass([
|
|
9047
|
-
|
|
9074
|
+
IsOptional52(),
|
|
9048
9075
|
IsNumber15()
|
|
9049
9076
|
], JobLocationAdminDto.prototype, "countryId", 2);
|
|
9050
9077
|
__decorateClass([
|
|
9051
|
-
|
|
9078
|
+
IsOptional52(),
|
|
9052
9079
|
IsNumber15()
|
|
9053
9080
|
], JobLocationAdminDto.prototype, "stateId", 2);
|
|
9054
9081
|
__decorateClass([
|
|
9055
|
-
|
|
9082
|
+
IsOptional52(),
|
|
9056
9083
|
IsNumber15()
|
|
9057
9084
|
], JobLocationAdminDto.prototype, "cityId", 2);
|
|
9058
9085
|
var AdminJobBasicInformationV2Dto = class {
|
|
@@ -9061,26 +9088,26 @@ var AdminJobBasicInformationV2Dto = class {
|
|
|
9061
9088
|
}
|
|
9062
9089
|
};
|
|
9063
9090
|
__decorateClass([
|
|
9064
|
-
|
|
9091
|
+
IsOptional52(),
|
|
9065
9092
|
Type14(() => Boolean)
|
|
9066
9093
|
], AdminJobBasicInformationV2Dto.prototype, "isDraft", 2);
|
|
9067
9094
|
__decorateClass([
|
|
9068
9095
|
IsInt12({ message: "Client ID must be a valid integer." })
|
|
9069
9096
|
], AdminJobBasicInformationV2Dto.prototype, "clientId", 2);
|
|
9070
9097
|
__decorateClass([
|
|
9071
|
-
|
|
9072
|
-
|
|
9098
|
+
IsNotEmpty75({ message: "Please enter job role" }),
|
|
9099
|
+
IsString49({ message: "Job role must be a string" })
|
|
9073
9100
|
], AdminJobBasicInformationV2Dto.prototype, "jobRole", 2);
|
|
9074
9101
|
__decorateClass([
|
|
9075
|
-
|
|
9076
|
-
|
|
9102
|
+
IsOptional52(),
|
|
9103
|
+
IsString49({ message: "Note must be a string" })
|
|
9077
9104
|
], AdminJobBasicInformationV2Dto.prototype, "note", 2);
|
|
9078
9105
|
__decorateClass([
|
|
9079
9106
|
ValidateIf9((o) => !o.isDraft),
|
|
9080
|
-
|
|
9081
|
-
|
|
9107
|
+
IsOptional52(),
|
|
9108
|
+
IsArray19({ message: "Skills must be an array" }),
|
|
9082
9109
|
ArrayNotEmpty11({ message: "Please select at least one skill" }),
|
|
9083
|
-
|
|
9110
|
+
IsString49({ each: true, message: "Each skill must be a string" }),
|
|
9084
9111
|
Type14(() => String)
|
|
9085
9112
|
], AdminJobBasicInformationV2Dto.prototype, "skills", 2);
|
|
9086
9113
|
__decorateClass([
|
|
@@ -9106,24 +9133,24 @@ __decorateClass([
|
|
|
9106
9133
|
})
|
|
9107
9134
|
], AdminJobBasicInformationV2Dto.prototype, "typeOfEmployment", 2);
|
|
9108
9135
|
__decorateClass([
|
|
9109
|
-
|
|
9136
|
+
IsOptional52(),
|
|
9110
9137
|
IsNumber15({}, { message: "Expected salary (from) must be a number" }),
|
|
9111
9138
|
Min8(0, { message: "Expected salary (from) cannot be negative" }),
|
|
9112
9139
|
Type14(() => Number)
|
|
9113
9140
|
], AdminJobBasicInformationV2Dto.prototype, "expectedSalaryFrom", 2);
|
|
9114
9141
|
__decorateClass([
|
|
9115
|
-
|
|
9142
|
+
IsOptional52(),
|
|
9116
9143
|
IsNumber15({}, { message: "Expected salary (to) must be a number" }),
|
|
9117
9144
|
Min8(0, { message: "Expected salary (to) cannot be negative" }),
|
|
9118
9145
|
Type14(() => Number)
|
|
9119
9146
|
], AdminJobBasicInformationV2Dto.prototype, "expectedSalaryTo", 2);
|
|
9120
9147
|
__decorateClass([
|
|
9121
|
-
|
|
9148
|
+
IsOptional52(),
|
|
9122
9149
|
Type14(() => JobLocationAdminDto)
|
|
9123
9150
|
], AdminJobBasicInformationV2Dto.prototype, "locations", 2);
|
|
9124
9151
|
__decorateClass([
|
|
9125
|
-
|
|
9126
|
-
|
|
9152
|
+
IsOptional52(),
|
|
9153
|
+
IsString49({ message: "Academic qualification must be a string" })
|
|
9127
9154
|
], AdminJobBasicInformationV2Dto.prototype, "academicQualification", 2);
|
|
9128
9155
|
__decorateClass([
|
|
9129
9156
|
ValidateIf9((o) => !o.isDraft),
|
|
@@ -9135,82 +9162,82 @@ __decorateClass([
|
|
|
9135
9162
|
], AdminJobBasicInformationV2Dto.prototype, "yearsOfExperienceType", 2);
|
|
9136
9163
|
__decorateClass([
|
|
9137
9164
|
ValidateIf9((o) => !o.isDraft),
|
|
9138
|
-
|
|
9139
|
-
|
|
9165
|
+
IsNotEmpty75({ message: "Please enter the years of experience" }),
|
|
9166
|
+
IsString49({ message: "Years of experience must be a string" })
|
|
9140
9167
|
], AdminJobBasicInformationV2Dto.prototype, "yearsOfExperienceFrom", 2);
|
|
9141
9168
|
__decorateClass([
|
|
9142
9169
|
ValidateIf9((o) => !o.isDraft),
|
|
9143
|
-
|
|
9144
|
-
|
|
9170
|
+
IsNotEmpty75({ message: "Please enter the years of experience upto" }),
|
|
9171
|
+
IsString49({ message: "Years of experience must be a string" })
|
|
9145
9172
|
], AdminJobBasicInformationV2Dto.prototype, "yearsOfExperienceTo", 2);
|
|
9146
9173
|
__decorateClass([
|
|
9147
|
-
|
|
9148
|
-
|
|
9174
|
+
IsOptional52(),
|
|
9175
|
+
IsString49({ message: "Business industry must be a string" })
|
|
9149
9176
|
], AdminJobBasicInformationV2Dto.prototype, "businessIndustry", 2);
|
|
9150
9177
|
__decorateClass([
|
|
9151
|
-
|
|
9152
|
-
|
|
9178
|
+
IsOptional52(),
|
|
9179
|
+
IsString49({ message: "Project name must be a string" })
|
|
9153
9180
|
], AdminJobBasicInformationV2Dto.prototype, "projectName", 2);
|
|
9154
9181
|
__decorateClass([
|
|
9155
|
-
|
|
9182
|
+
IsOptional52()
|
|
9156
9183
|
], AdminJobBasicInformationV2Dto.prototype, "hideExpectedSalaryFrom", 2);
|
|
9157
9184
|
__decorateClass([
|
|
9158
|
-
|
|
9185
|
+
IsOptional52()
|
|
9159
9186
|
], AdminJobBasicInformationV2Dto.prototype, "hideExpectedSalaryTo", 2);
|
|
9160
9187
|
__decorateClass([
|
|
9161
|
-
|
|
9188
|
+
IsOptional52(),
|
|
9162
9189
|
IsNumber15({}, { message: "Expected annual budget (from) must be a number" }),
|
|
9163
9190
|
Min8(0, { message: "Expected annual budget (from) cannot be negative" }),
|
|
9164
9191
|
Type14(() => Number)
|
|
9165
9192
|
], AdminJobBasicInformationV2Dto.prototype, "expectedAnnualBudgetFrom", 2);
|
|
9166
9193
|
__decorateClass([
|
|
9167
|
-
|
|
9194
|
+
IsOptional52()
|
|
9168
9195
|
], AdminJobBasicInformationV2Dto.prototype, "hideExpectedAnnualBudgetFrom", 2);
|
|
9169
9196
|
__decorateClass([
|
|
9170
|
-
|
|
9197
|
+
IsOptional52(),
|
|
9171
9198
|
IsNumber15({}, { message: "Expected annual budget (to) must be a number" }),
|
|
9172
9199
|
Min8(0, { message: "Expected annual budget (to) cannot be negative" }),
|
|
9173
9200
|
Type14(() => Number)
|
|
9174
9201
|
], AdminJobBasicInformationV2Dto.prototype, "expectedAnnualBudgetTo", 2);
|
|
9175
9202
|
__decorateClass([
|
|
9176
|
-
|
|
9203
|
+
IsOptional52()
|
|
9177
9204
|
], AdminJobBasicInformationV2Dto.prototype, "hideExpectedAnnualBudgetTo", 2);
|
|
9178
9205
|
__decorateClass([
|
|
9179
|
-
|
|
9206
|
+
IsOptional52(),
|
|
9180
9207
|
IsNumber15({}, { message: "Number of hours must be a number" }),
|
|
9181
9208
|
Min8(0, { message: "Number of hours cannot be negative" }),
|
|
9182
9209
|
Max4(40, { message: "Number of hours cannot exceed 40" }),
|
|
9183
9210
|
Type14(() => Number)
|
|
9184
9211
|
], AdminJobBasicInformationV2Dto.prototype, "numberOfHours", 2);
|
|
9185
9212
|
__decorateClass([
|
|
9186
|
-
|
|
9213
|
+
IsOptional52()
|
|
9187
9214
|
], AdminJobBasicInformationV2Dto.prototype, "years", 2);
|
|
9188
9215
|
__decorateClass([
|
|
9189
|
-
|
|
9216
|
+
IsOptional52()
|
|
9190
9217
|
], AdminJobBasicInformationV2Dto.prototype, "months", 2);
|
|
9191
9218
|
__decorateClass([
|
|
9192
|
-
|
|
9219
|
+
IsOptional52()
|
|
9193
9220
|
], AdminJobBasicInformationV2Dto.prototype, "weeks", 2);
|
|
9194
9221
|
__decorateClass([
|
|
9195
|
-
|
|
9222
|
+
IsOptional52()
|
|
9196
9223
|
], AdminJobBasicInformationV2Dto.prototype, "days", 2);
|
|
9197
9224
|
__decorateClass([
|
|
9198
|
-
|
|
9199
|
-
|
|
9225
|
+
IsOptional52(),
|
|
9226
|
+
IsString49({ message: "Additional comment must be a string" }),
|
|
9200
9227
|
MaxLength20(500, { message: "Additional comment must not exceed 500 characters" })
|
|
9201
9228
|
], AdminJobBasicInformationV2Dto.prototype, "additionalComment", 2);
|
|
9202
9229
|
__decorateClass([
|
|
9203
9230
|
ValidateIf9((o) => !o.isDraft),
|
|
9204
|
-
|
|
9205
|
-
|
|
9206
|
-
|
|
9231
|
+
IsArray19({ message: "Good to have skills must be an array" }),
|
|
9232
|
+
IsString49({ each: true, message: "Each skill must be a string" }),
|
|
9233
|
+
IsOptional52(),
|
|
9207
9234
|
Type14(() => String)
|
|
9208
9235
|
], AdminJobBasicInformationV2Dto.prototype, "goodToHaveSkills", 2);
|
|
9209
9236
|
__decorateClass([
|
|
9210
|
-
|
|
9237
|
+
IsOptional52()
|
|
9211
9238
|
], AdminJobBasicInformationV2Dto.prototype, "jobRoleCanonicalName", 2);
|
|
9212
9239
|
__decorateClass([
|
|
9213
|
-
|
|
9240
|
+
IsOptional52(),
|
|
9214
9241
|
IsEnum31(AdminStepCompletedEnumV2, {
|
|
9215
9242
|
message: `Type of stepCompleted must be one of: ${Object.values(
|
|
9216
9243
|
AdminStepCompletedEnumV2
|
|
@@ -9225,7 +9252,7 @@ var LEAD_PATTERN = {
|
|
|
9225
9252
|
};
|
|
9226
9253
|
|
|
9227
9254
|
// src/modules/lead/dto/create-lead.dto.ts
|
|
9228
|
-
import { IsString as
|
|
9255
|
+
import { IsString as IsString50, IsEmail as IsEmail19, IsOptional as IsOptional53, IsEnum as IsEnum32 } from "class-validator";
|
|
9229
9256
|
var CategoryEmumDto = /* @__PURE__ */ ((CategoryEmumDto2) => {
|
|
9230
9257
|
CategoryEmumDto2["BUSINESS"] = "BUSINESS";
|
|
9231
9258
|
CategoryEmumDto2["FREELANCER"] = "FREELANCER";
|
|
@@ -9234,20 +9261,20 @@ var CategoryEmumDto = /* @__PURE__ */ ((CategoryEmumDto2) => {
|
|
|
9234
9261
|
var CreateLeadDto = class {
|
|
9235
9262
|
};
|
|
9236
9263
|
__decorateClass([
|
|
9237
|
-
|
|
9264
|
+
IsString50({ message: "Name must be a string" })
|
|
9238
9265
|
], CreateLeadDto.prototype, "name", 2);
|
|
9239
9266
|
__decorateClass([
|
|
9240
|
-
|
|
9267
|
+
IsEmail19({}, { message: "Invalid email address" })
|
|
9241
9268
|
], CreateLeadDto.prototype, "email", 2);
|
|
9242
9269
|
__decorateClass([
|
|
9243
|
-
|
|
9270
|
+
IsString50({ message: "Mobile code must be a string (e.g., +1)" })
|
|
9244
9271
|
], CreateLeadDto.prototype, "mobileCode", 2);
|
|
9245
9272
|
__decorateClass([
|
|
9246
|
-
|
|
9273
|
+
IsString50({ message: "Mobile must be a string (e.g., 1243253534)" })
|
|
9247
9274
|
], CreateLeadDto.prototype, "mobile", 2);
|
|
9248
9275
|
__decorateClass([
|
|
9249
|
-
|
|
9250
|
-
|
|
9276
|
+
IsOptional53(),
|
|
9277
|
+
IsString50({ message: "Description must be a string" })
|
|
9251
9278
|
], CreateLeadDto.prototype, "description", 2);
|
|
9252
9279
|
__decorateClass([
|
|
9253
9280
|
IsEnum32(CategoryEmumDto, {
|
|
@@ -9272,58 +9299,58 @@ var ADMIN_ROLE_PATTERN = {
|
|
|
9272
9299
|
};
|
|
9273
9300
|
|
|
9274
9301
|
// src/modules/admin-role/dto/create-admin-role.dto.ts
|
|
9275
|
-
import { IsBoolean as IsBoolean16, IsNotEmpty as
|
|
9302
|
+
import { IsBoolean as IsBoolean16, IsNotEmpty as IsNotEmpty76, IsOptional as IsOptional54, IsString as IsString51 } from "class-validator";
|
|
9276
9303
|
var CreateAdminRoleDto = class {
|
|
9277
9304
|
};
|
|
9278
9305
|
__decorateClass([
|
|
9279
|
-
|
|
9280
|
-
|
|
9306
|
+
IsNotEmpty76({ message: "Please enter admin role name." }),
|
|
9307
|
+
IsString51({ message: "Role name must be a string." })
|
|
9281
9308
|
], CreateAdminRoleDto.prototype, "roleName", 2);
|
|
9282
9309
|
__decorateClass([
|
|
9283
|
-
|
|
9284
|
-
|
|
9310
|
+
IsOptional54(),
|
|
9311
|
+
IsString51({ message: "Role description must be a string." })
|
|
9285
9312
|
], CreateAdminRoleDto.prototype, "roleDescription", 2);
|
|
9286
9313
|
__decorateClass([
|
|
9287
|
-
|
|
9314
|
+
IsOptional54(),
|
|
9288
9315
|
IsBoolean16({ message: "Is active must be a boolean value" })
|
|
9289
9316
|
], CreateAdminRoleDto.prototype, "isActive", 2);
|
|
9290
9317
|
|
|
9291
9318
|
// src/modules/admin-role/dto/update-admin-role.dto.ts
|
|
9292
|
-
import { IsBoolean as IsBoolean17, IsNotEmpty as
|
|
9319
|
+
import { IsBoolean as IsBoolean17, IsNotEmpty as IsNotEmpty77, IsOptional as IsOptional55, IsString as IsString52 } from "class-validator";
|
|
9293
9320
|
var UpdateAdminRoleDto = class {
|
|
9294
9321
|
};
|
|
9295
9322
|
__decorateClass([
|
|
9296
|
-
|
|
9297
|
-
|
|
9323
|
+
IsNotEmpty77({ message: "Please enter admin role name." }),
|
|
9324
|
+
IsString52({ message: "Role name must be a string." })
|
|
9298
9325
|
], UpdateAdminRoleDto.prototype, "roleName", 2);
|
|
9299
9326
|
__decorateClass([
|
|
9300
|
-
|
|
9301
|
-
|
|
9327
|
+
IsOptional55(),
|
|
9328
|
+
IsString52({ message: "Role description must be a string." })
|
|
9302
9329
|
], UpdateAdminRoleDto.prototype, "roleDescription", 2);
|
|
9303
9330
|
__decorateClass([
|
|
9304
|
-
|
|
9331
|
+
IsOptional55(),
|
|
9305
9332
|
IsBoolean17({ message: "Is active must be a boolean value." })
|
|
9306
9333
|
], UpdateAdminRoleDto.prototype, "isActive", 2);
|
|
9307
9334
|
|
|
9308
9335
|
// src/modules/admin-role/dto/attach-permissions-to-role.dto.ts
|
|
9309
|
-
import { IsNotEmpty as
|
|
9336
|
+
import { IsNotEmpty as IsNotEmpty78, IsString as IsString53 } from "class-validator";
|
|
9310
9337
|
var AttachPermissionsToRoleDto = class {
|
|
9311
9338
|
};
|
|
9312
9339
|
__decorateClass([
|
|
9313
|
-
|
|
9314
|
-
|
|
9340
|
+
IsNotEmpty78({ message: "Please enter admin role ID." }),
|
|
9341
|
+
IsString53({ message: "Role ID must be a string." })
|
|
9315
9342
|
], AttachPermissionsToRoleDto.prototype, "roleId", 2);
|
|
9316
9343
|
__decorateClass([
|
|
9317
|
-
|
|
9318
|
-
|
|
9344
|
+
IsNotEmpty78({ message: "Please enter permission IDs." }),
|
|
9345
|
+
IsString53({ message: "Permission IDs must be a comma-separated string." })
|
|
9319
9346
|
], AttachPermissionsToRoleDto.prototype, "permissionIds", 2);
|
|
9320
9347
|
|
|
9321
9348
|
// src/modules/admin-role/dto/update-admin-role-status.dto.ts
|
|
9322
|
-
import { IsBoolean as IsBoolean18, IsNotEmpty as
|
|
9349
|
+
import { IsBoolean as IsBoolean18, IsNotEmpty as IsNotEmpty79 } from "class-validator";
|
|
9323
9350
|
var UpdateAdminRoleStatusDto = class {
|
|
9324
9351
|
};
|
|
9325
9352
|
__decorateClass([
|
|
9326
|
-
|
|
9353
|
+
IsNotEmpty79({ message: "Please specify admin role status." }),
|
|
9327
9354
|
IsBoolean18({ message: "Is active must be a boolean value" })
|
|
9328
9355
|
], UpdateAdminRoleStatusDto.prototype, "isActive", 2);
|
|
9329
9356
|
|
|
@@ -9405,11 +9432,11 @@ var INTERVIEW_PATTERN = {
|
|
|
9405
9432
|
|
|
9406
9433
|
// src/modules/interview/dto/interview-invite.dto.ts
|
|
9407
9434
|
import {
|
|
9408
|
-
IsString as
|
|
9409
|
-
IsNotEmpty as
|
|
9410
|
-
IsArray as
|
|
9435
|
+
IsString as IsString54,
|
|
9436
|
+
IsNotEmpty as IsNotEmpty80,
|
|
9437
|
+
IsArray as IsArray20,
|
|
9411
9438
|
ArrayNotEmpty as ArrayNotEmpty12,
|
|
9412
|
-
IsEmail as
|
|
9439
|
+
IsEmail as IsEmail20,
|
|
9413
9440
|
IsUUID as IsUUID18,
|
|
9414
9441
|
IsEnum as IsEnum33,
|
|
9415
9442
|
ValidateIf as ValidateIf10,
|
|
@@ -9436,11 +9463,11 @@ __decorateClass([
|
|
|
9436
9463
|
var NewCandidateDto = class {
|
|
9437
9464
|
};
|
|
9438
9465
|
__decorateClass([
|
|
9439
|
-
|
|
9440
|
-
|
|
9466
|
+
IsNotEmpty80({ message: "Please enter the candidate name" }),
|
|
9467
|
+
IsString54({ message: "Name must be a string" })
|
|
9441
9468
|
], NewCandidateDto.prototype, "name", 2);
|
|
9442
9469
|
__decorateClass([
|
|
9443
|
-
|
|
9470
|
+
IsEmail20({}, { message: "Please enter a valid email." })
|
|
9444
9471
|
], NewCandidateDto.prototype, "email", 2);
|
|
9445
9472
|
__decorateClass([
|
|
9446
9473
|
IsEnum33(CandidateType, {
|
|
@@ -9451,14 +9478,14 @@ var CandidatesDto = class {
|
|
|
9451
9478
|
};
|
|
9452
9479
|
__decorateClass([
|
|
9453
9480
|
ValidateIf10((o) => o.exixtingCandidates?.length > 0),
|
|
9454
|
-
|
|
9481
|
+
IsArray20({ message: "Existing candidates should be an array." }),
|
|
9455
9482
|
ArrayNotEmpty12({ message: "Please select at least one candidate." }),
|
|
9456
9483
|
ValidateNested7({ each: true }),
|
|
9457
9484
|
Type15(() => ExistingCandidateDto)
|
|
9458
9485
|
], CandidatesDto.prototype, "exixtingCandidates", 2);
|
|
9459
9486
|
__decorateClass([
|
|
9460
9487
|
ValidateIf10((o) => o.newCandidates?.length > 0),
|
|
9461
|
-
|
|
9488
|
+
IsArray20({ message: "New candidates should be an array." }),
|
|
9462
9489
|
ArrayNotEmpty12({ message: "Please add at least one candidate." }),
|
|
9463
9490
|
ValidateNested7({ each: true }),
|
|
9464
9491
|
Type15(() => NewCandidateDto)
|
|
@@ -9475,14 +9502,14 @@ __decorateClass([
|
|
|
9475
9502
|
|
|
9476
9503
|
// src/modules/interview/dto/send-interview-invite.dto.ts
|
|
9477
9504
|
import {
|
|
9478
|
-
IsString as
|
|
9479
|
-
IsNotEmpty as
|
|
9480
|
-
IsArray as
|
|
9505
|
+
IsString as IsString55,
|
|
9506
|
+
IsNotEmpty as IsNotEmpty81,
|
|
9507
|
+
IsArray as IsArray21,
|
|
9481
9508
|
IsUUID as IsUUID19,
|
|
9482
9509
|
IsEnum as IsEnum34,
|
|
9483
|
-
IsEmail as
|
|
9510
|
+
IsEmail as IsEmail21,
|
|
9484
9511
|
ValidateNested as ValidateNested8,
|
|
9485
|
-
IsOptional as
|
|
9512
|
+
IsOptional as IsOptional57
|
|
9486
9513
|
} from "class-validator";
|
|
9487
9514
|
import { Type as Type16 } from "class-transformer";
|
|
9488
9515
|
var InterviewInviteCandidateType = /* @__PURE__ */ ((InterviewInviteCandidateType2) => {
|
|
@@ -9496,65 +9523,65 @@ var ExistingCandidateDto2 = class {
|
|
|
9496
9523
|
};
|
|
9497
9524
|
__decorateClass([
|
|
9498
9525
|
IsUUID19("4", { message: "Candidate ID must be a valid UUID." }),
|
|
9499
|
-
|
|
9526
|
+
IsNotEmpty81({ message: "Candidate ID is required." })
|
|
9500
9527
|
], ExistingCandidateDto2.prototype, "id", 2);
|
|
9501
9528
|
__decorateClass([
|
|
9502
9529
|
IsEnum34(InterviewInviteCandidateType, {
|
|
9503
9530
|
message: "Type must be one of SHORTLISTED, APPLICANTS, or RECOMMENDED."
|
|
9504
9531
|
}),
|
|
9505
|
-
|
|
9532
|
+
IsNotEmpty81({ message: "Candidate type is required." })
|
|
9506
9533
|
], ExistingCandidateDto2.prototype, "type", 2);
|
|
9507
9534
|
var NewCandidateDto2 = class {
|
|
9508
9535
|
};
|
|
9509
9536
|
__decorateClass([
|
|
9510
|
-
|
|
9511
|
-
|
|
9537
|
+
IsString55({ message: "Name must be a string." }),
|
|
9538
|
+
IsNotEmpty81({ message: "Candidate name is required." })
|
|
9512
9539
|
], NewCandidateDto2.prototype, "name", 2);
|
|
9513
9540
|
__decorateClass([
|
|
9514
|
-
|
|
9515
|
-
|
|
9541
|
+
IsEmail21({}, { message: "Please enter a valid email address." }),
|
|
9542
|
+
IsNotEmpty81({ message: "Email is required." })
|
|
9516
9543
|
], NewCandidateDto2.prototype, "email", 2);
|
|
9517
9544
|
__decorateClass([
|
|
9518
9545
|
IsEnum34(InterviewInviteCandidateType, {
|
|
9519
9546
|
message: "Type must be NEW for new candidates."
|
|
9520
9547
|
}),
|
|
9521
|
-
|
|
9548
|
+
IsNotEmpty81({ message: "Candidate type is required." })
|
|
9522
9549
|
], NewCandidateDto2.prototype, "type", 2);
|
|
9523
9550
|
var SendInterviewInviteDto = class {
|
|
9524
9551
|
};
|
|
9525
9552
|
__decorateClass([
|
|
9526
9553
|
IsUUID19("4", { message: "Job ID must be a valid UUID." }),
|
|
9527
|
-
|
|
9554
|
+
IsNotEmpty81({ message: "Job ID is required." })
|
|
9528
9555
|
], SendInterviewInviteDto.prototype, "jobId", 2);
|
|
9529
9556
|
__decorateClass([
|
|
9530
|
-
|
|
9557
|
+
IsArray21({ message: "Existing candidates must be an array." }),
|
|
9531
9558
|
ValidateNested8({ each: true }),
|
|
9532
9559
|
Type16(() => ExistingCandidateDto2),
|
|
9533
|
-
|
|
9560
|
+
IsOptional57()
|
|
9534
9561
|
], SendInterviewInviteDto.prototype, "existingCandidates", 2);
|
|
9535
9562
|
__decorateClass([
|
|
9536
|
-
|
|
9563
|
+
IsArray21({ message: "New candidates must be an array." }),
|
|
9537
9564
|
ValidateNested8({ each: true }),
|
|
9538
9565
|
Type16(() => NewCandidateDto2),
|
|
9539
|
-
|
|
9566
|
+
IsOptional57()
|
|
9540
9567
|
], SendInterviewInviteDto.prototype, "newCandidates", 2);
|
|
9541
9568
|
|
|
9542
9569
|
// src/modules/interview/dto/create-f2f-interview.dto.ts
|
|
9543
9570
|
import {
|
|
9544
|
-
IsString as
|
|
9545
|
-
IsNotEmpty as
|
|
9546
|
-
IsEmail as
|
|
9571
|
+
IsString as IsString56,
|
|
9572
|
+
IsNotEmpty as IsNotEmpty82,
|
|
9573
|
+
IsEmail as IsEmail22,
|
|
9547
9574
|
IsNumber as IsNumber16
|
|
9548
9575
|
} from "class-validator";
|
|
9549
9576
|
var CreateF2FInterviewDto = class {
|
|
9550
9577
|
};
|
|
9551
9578
|
__decorateClass([
|
|
9552
|
-
|
|
9553
|
-
|
|
9579
|
+
IsEmail22({}, { message: "Please enter a valid email address." }),
|
|
9580
|
+
IsNotEmpty82({ message: "Invitee email is required." })
|
|
9554
9581
|
], CreateF2FInterviewDto.prototype, "inviteeEmail", 2);
|
|
9555
9582
|
__decorateClass([
|
|
9556
|
-
|
|
9557
|
-
|
|
9583
|
+
IsString56({ message: "Invitee name must be a string." }),
|
|
9584
|
+
IsNotEmpty82({ message: "Invitee name is required." })
|
|
9558
9585
|
], CreateF2FInterviewDto.prototype, "inviteeName", 2);
|
|
9559
9586
|
__decorateClass([
|
|
9560
9587
|
IsNumber16({}, { message: "Interview ID must be a number." })
|
|
@@ -9565,20 +9592,20 @@ __decorateClass([
|
|
|
9565
9592
|
|
|
9566
9593
|
// src/modules/interview/dto/create-f2f-interview-direct.dto.ts
|
|
9567
9594
|
import {
|
|
9568
|
-
IsString as
|
|
9569
|
-
IsNotEmpty as
|
|
9570
|
-
IsEmail as
|
|
9595
|
+
IsString as IsString57,
|
|
9596
|
+
IsNotEmpty as IsNotEmpty83,
|
|
9597
|
+
IsEmail as IsEmail23,
|
|
9571
9598
|
IsNumber as IsNumber17
|
|
9572
9599
|
} from "class-validator";
|
|
9573
9600
|
var CreateF2FInterviewDirectDto = class {
|
|
9574
9601
|
};
|
|
9575
9602
|
__decorateClass([
|
|
9576
|
-
|
|
9577
|
-
|
|
9603
|
+
IsEmail23({}, { message: "Please enter a valid email address." }),
|
|
9604
|
+
IsNotEmpty83({ message: "Invitee email is required." })
|
|
9578
9605
|
], CreateF2FInterviewDirectDto.prototype, "inviteeEmail", 2);
|
|
9579
9606
|
__decorateClass([
|
|
9580
|
-
|
|
9581
|
-
|
|
9607
|
+
IsString57({ message: "Invitee name must be a string." }),
|
|
9608
|
+
IsNotEmpty83({ message: "Invitee name is required." })
|
|
9582
9609
|
], CreateF2FInterviewDirectDto.prototype, "inviteeName", 2);
|
|
9583
9610
|
__decorateClass([
|
|
9584
9611
|
IsNumber17({}, { message: "Job ID must be a number." })
|
|
@@ -9589,159 +9616,159 @@ __decorateClass([
|
|
|
9589
9616
|
|
|
9590
9617
|
// src/modules/interview/dto/create-f2f-interview-reschedule-request.dto.ts
|
|
9591
9618
|
import {
|
|
9592
|
-
IsString as
|
|
9593
|
-
IsNotEmpty as
|
|
9594
|
-
IsOptional as
|
|
9619
|
+
IsString as IsString58,
|
|
9620
|
+
IsNotEmpty as IsNotEmpty84,
|
|
9621
|
+
IsOptional as IsOptional58,
|
|
9595
9622
|
IsUUID as IsUUID20
|
|
9596
9623
|
} from "class-validator";
|
|
9597
9624
|
var CreateF2FInterviewRescheduleRequestDto = class {
|
|
9598
9625
|
};
|
|
9599
9626
|
__decorateClass([
|
|
9600
9627
|
IsUUID20("4", { message: "F2F Interview ID must be a valid UUID." }),
|
|
9601
|
-
|
|
9628
|
+
IsNotEmpty84({ message: "F2F Interview ID is required." })
|
|
9602
9629
|
], CreateF2FInterviewRescheduleRequestDto.prototype, "f2FInterviewId", 2);
|
|
9603
9630
|
__decorateClass([
|
|
9604
|
-
|
|
9631
|
+
IsNotEmpty84({ message: "Rescheduled date is required." })
|
|
9605
9632
|
], CreateF2FInterviewRescheduleRequestDto.prototype, "rescheduledDate", 2);
|
|
9606
9633
|
__decorateClass([
|
|
9607
|
-
|
|
9608
|
-
|
|
9634
|
+
IsString58({ message: "Rescheduled slot must be a string." }),
|
|
9635
|
+
IsNotEmpty84({ message: "Rescheduled slot is required." })
|
|
9609
9636
|
], CreateF2FInterviewRescheduleRequestDto.prototype, "rescheduledSlot", 2);
|
|
9610
9637
|
__decorateClass([
|
|
9611
|
-
|
|
9612
|
-
|
|
9638
|
+
IsOptional58(),
|
|
9639
|
+
IsString58({ message: "Freelancer request reason must be a string." })
|
|
9613
9640
|
], CreateF2FInterviewRescheduleRequestDto.prototype, "freelancerRequestReason", 2);
|
|
9614
9641
|
|
|
9615
9642
|
// src/modules/interview/dto/create-ai-interview-reschedule-request.dto.ts
|
|
9616
9643
|
import {
|
|
9617
|
-
IsString as
|
|
9618
|
-
IsNotEmpty as
|
|
9644
|
+
IsString as IsString59,
|
|
9645
|
+
IsNotEmpty as IsNotEmpty85
|
|
9619
9646
|
} from "class-validator";
|
|
9620
9647
|
var CreateAIInterviewRescheduleRequestDto = class {
|
|
9621
9648
|
};
|
|
9622
9649
|
__decorateClass([
|
|
9623
|
-
|
|
9650
|
+
IsNotEmpty85({ message: "AI Interview ID is required." })
|
|
9624
9651
|
], CreateAIInterviewRescheduleRequestDto.prototype, "aiInterviewId", 2);
|
|
9625
9652
|
__decorateClass([
|
|
9626
|
-
|
|
9653
|
+
IsString59({ message: "Freelancer reason must be a string." })
|
|
9627
9654
|
], CreateAIInterviewRescheduleRequestDto.prototype, "freelancerRequestReason", 2);
|
|
9628
9655
|
|
|
9629
9656
|
// src/modules/interview/dto/reject-ai-interview-reschedule-request.dto.ts
|
|
9630
9657
|
import {
|
|
9631
|
-
IsString as
|
|
9658
|
+
IsString as IsString60
|
|
9632
9659
|
} from "class-validator";
|
|
9633
9660
|
var RejectAIInterviewRescheduleRequestDto = class {
|
|
9634
9661
|
};
|
|
9635
9662
|
__decorateClass([
|
|
9636
|
-
|
|
9663
|
+
IsString60({ message: "Client reject reason must be a string." })
|
|
9637
9664
|
], RejectAIInterviewRescheduleRequestDto.prototype, "clientRejectReason", 2);
|
|
9638
9665
|
|
|
9639
9666
|
// src/modules/interview/dto/reject-f2f-interview-reschedule-request.dto.ts
|
|
9640
|
-
import { IsOptional as
|
|
9667
|
+
import { IsOptional as IsOptional60, IsString as IsString61 } from "class-validator";
|
|
9641
9668
|
var RejectF2FInterviewRescheduleRequestDto = class {
|
|
9642
9669
|
};
|
|
9643
9670
|
__decorateClass([
|
|
9644
|
-
|
|
9645
|
-
|
|
9671
|
+
IsOptional60(),
|
|
9672
|
+
IsString61()
|
|
9646
9673
|
], RejectF2FInterviewRescheduleRequestDto.prototype, "clientRejectReason", 2);
|
|
9647
9674
|
|
|
9648
9675
|
// src/modules/interview/dto/capture-ai-interview-result-public.dto.ts
|
|
9649
|
-
import { IsNotEmpty as
|
|
9676
|
+
import { IsNotEmpty as IsNotEmpty86, IsString as IsString62, IsOptional as IsOptional61, IsObject as IsObject6 } from "class-validator";
|
|
9650
9677
|
var CaptureAiInterviewResultPublicDto = class {
|
|
9651
9678
|
};
|
|
9652
9679
|
__decorateClass([
|
|
9653
|
-
|
|
9654
|
-
|
|
9680
|
+
IsNotEmpty86({ message: "AI Interview UUID is required" }),
|
|
9681
|
+
IsString62({ message: "AI Interview UUID must be a string" })
|
|
9655
9682
|
], CaptureAiInterviewResultPublicDto.prototype, "aiInterviewUuid", 2);
|
|
9656
9683
|
__decorateClass([
|
|
9657
|
-
|
|
9684
|
+
IsOptional61(),
|
|
9658
9685
|
IsObject6()
|
|
9659
9686
|
], CaptureAiInterviewResultPublicDto.prototype, "result", 2);
|
|
9660
9687
|
__decorateClass([
|
|
9661
|
-
|
|
9662
|
-
|
|
9688
|
+
IsOptional61(),
|
|
9689
|
+
IsString62()
|
|
9663
9690
|
], CaptureAiInterviewResultPublicDto.prototype, "status", 2);
|
|
9664
9691
|
|
|
9665
9692
|
// src/modules/interview/dto/create-interview-basic-information.dto.ts
|
|
9666
|
-
import { IsNotEmpty as
|
|
9693
|
+
import { IsNotEmpty as IsNotEmpty87, IsString as IsString63, IsNumber as IsNumber18 } from "class-validator";
|
|
9667
9694
|
var CreateInterviewBasicInformationDto = class {
|
|
9668
9695
|
};
|
|
9669
9696
|
__decorateClass([
|
|
9670
|
-
|
|
9697
|
+
IsNotEmpty87({ message: "Job ID is required" }),
|
|
9671
9698
|
IsNumber18({}, { message: "Job ID must be a number" })
|
|
9672
9699
|
], CreateInterviewBasicInformationDto.prototype, "jobId", 2);
|
|
9673
9700
|
__decorateClass([
|
|
9674
|
-
|
|
9675
|
-
|
|
9701
|
+
IsNotEmpty87({ message: "Interview name is required" }),
|
|
9702
|
+
IsString63({ message: "Interview name must be a string" })
|
|
9676
9703
|
], CreateInterviewBasicInformationDto.prototype, "interviewName", 2);
|
|
9677
9704
|
|
|
9678
9705
|
// src/modules/interview/dto/update-interview-basic-information.dto.ts
|
|
9679
|
-
import { IsOptional as
|
|
9706
|
+
import { IsOptional as IsOptional63, IsString as IsString64, IsNumber as IsNumber19, IsArray as IsArray23, IsDateString as IsDateString8 } from "class-validator";
|
|
9680
9707
|
var UpdateInterviewBasicInformationDto = class {
|
|
9681
9708
|
};
|
|
9682
9709
|
__decorateClass([
|
|
9683
|
-
|
|
9684
|
-
|
|
9710
|
+
IsOptional63(),
|
|
9711
|
+
IsString64()
|
|
9685
9712
|
], UpdateInterviewBasicInformationDto.prototype, "title", 2);
|
|
9686
9713
|
__decorateClass([
|
|
9687
|
-
|
|
9688
|
-
|
|
9714
|
+
IsOptional63(),
|
|
9715
|
+
IsString64()
|
|
9689
9716
|
], UpdateInterviewBasicInformationDto.prototype, "description", 2);
|
|
9690
9717
|
__decorateClass([
|
|
9691
|
-
|
|
9718
|
+
IsOptional63(),
|
|
9692
9719
|
IsDateString8()
|
|
9693
9720
|
], UpdateInterviewBasicInformationDto.prototype, "scheduledAt", 2);
|
|
9694
9721
|
__decorateClass([
|
|
9695
|
-
|
|
9722
|
+
IsOptional63(),
|
|
9696
9723
|
IsNumber19({}, { message: "Duration must be a number" })
|
|
9697
9724
|
], UpdateInterviewBasicInformationDto.prototype, "duration", 2);
|
|
9698
9725
|
__decorateClass([
|
|
9699
|
-
|
|
9700
|
-
|
|
9726
|
+
IsOptional63(),
|
|
9727
|
+
IsArray23(),
|
|
9701
9728
|
IsNumber19({}, { each: true, message: "Each skill ID must be a number" })
|
|
9702
9729
|
], UpdateInterviewBasicInformationDto.prototype, "skillIds", 2);
|
|
9703
9730
|
__decorateClass([
|
|
9704
|
-
|
|
9705
|
-
|
|
9731
|
+
IsOptional63(),
|
|
9732
|
+
IsString64()
|
|
9706
9733
|
], UpdateInterviewBasicInformationDto.prototype, "location", 2);
|
|
9707
9734
|
|
|
9708
9735
|
// src/modules/interview/dto/create-interview-skills.dto.ts
|
|
9709
9736
|
import {
|
|
9710
|
-
IsArray as
|
|
9711
|
-
IsNotEmpty as
|
|
9712
|
-
IsOptional as
|
|
9713
|
-
IsString as
|
|
9737
|
+
IsArray as IsArray24,
|
|
9738
|
+
IsNotEmpty as IsNotEmpty88,
|
|
9739
|
+
IsOptional as IsOptional64,
|
|
9740
|
+
IsString as IsString65,
|
|
9714
9741
|
ValidateNested as ValidateNested9
|
|
9715
9742
|
} from "class-validator";
|
|
9716
9743
|
import { Type as Type17 } from "class-transformer";
|
|
9717
9744
|
var InterviewSkillItemDto = class {
|
|
9718
9745
|
};
|
|
9719
9746
|
__decorateClass([
|
|
9720
|
-
|
|
9747
|
+
IsOptional64()
|
|
9721
9748
|
], InterviewSkillItemDto.prototype, "uuid", 2);
|
|
9722
9749
|
__decorateClass([
|
|
9723
|
-
|
|
9724
|
-
|
|
9750
|
+
IsString65({ message: "Skill name must be a string." }),
|
|
9751
|
+
IsNotEmpty88({ message: "Skill name is required." })
|
|
9725
9752
|
], InterviewSkillItemDto.prototype, "skill", 2);
|
|
9726
9753
|
__decorateClass([
|
|
9727
|
-
|
|
9728
|
-
|
|
9754
|
+
IsOptional64(),
|
|
9755
|
+
IsString65({ message: "Skill description must be a string." })
|
|
9729
9756
|
], InterviewSkillItemDto.prototype, "description", 2);
|
|
9730
9757
|
var CreateInterviewSkillsDto = class {
|
|
9731
9758
|
};
|
|
9732
9759
|
__decorateClass([
|
|
9733
|
-
|
|
9734
|
-
|
|
9760
|
+
IsArray24({ message: "Skills must be an array." }),
|
|
9761
|
+
IsNotEmpty88({ message: "At least one skill is required." }),
|
|
9735
9762
|
ValidateNested9({ each: true }),
|
|
9736
9763
|
Type17(() => InterviewSkillItemDto)
|
|
9737
9764
|
], CreateInterviewSkillsDto.prototype, "skills", 2);
|
|
9738
9765
|
|
|
9739
9766
|
// src/modules/interview/dto/create-interview-questions.dto.ts
|
|
9740
9767
|
import {
|
|
9741
|
-
IsArray as
|
|
9742
|
-
IsNotEmpty as
|
|
9743
|
-
IsOptional as
|
|
9744
|
-
IsString as
|
|
9768
|
+
IsArray as IsArray25,
|
|
9769
|
+
IsNotEmpty as IsNotEmpty89,
|
|
9770
|
+
IsOptional as IsOptional65,
|
|
9771
|
+
IsString as IsString66,
|
|
9745
9772
|
IsUUID as IsUUID22,
|
|
9746
9773
|
ValidateNested as ValidateNested10
|
|
9747
9774
|
} from "class-validator";
|
|
@@ -9749,39 +9776,39 @@ import { Type as Type18 } from "class-transformer";
|
|
|
9749
9776
|
var CustomQuestionItemDto = class {
|
|
9750
9777
|
};
|
|
9751
9778
|
__decorateClass([
|
|
9752
|
-
|
|
9779
|
+
IsOptional65(),
|
|
9753
9780
|
IsUUID22("4", { message: "Question UUID must be a valid UUID." })
|
|
9754
9781
|
], CustomQuestionItemDto.prototype, "uuid", 2);
|
|
9755
9782
|
__decorateClass([
|
|
9756
|
-
|
|
9757
|
-
|
|
9783
|
+
IsString66({ message: "Question must be a string." }),
|
|
9784
|
+
IsNotEmpty89({ message: "Question is required." })
|
|
9758
9785
|
], CustomQuestionItemDto.prototype, "question", 2);
|
|
9759
9786
|
var AiQuestionItemDto = class {
|
|
9760
9787
|
};
|
|
9761
9788
|
__decorateClass([
|
|
9762
|
-
|
|
9789
|
+
IsOptional65(),
|
|
9763
9790
|
IsUUID22("4", { message: "Question UUID must be a valid UUID." })
|
|
9764
9791
|
], AiQuestionItemDto.prototype, "uuid", 2);
|
|
9765
9792
|
__decorateClass([
|
|
9766
|
-
|
|
9767
|
-
|
|
9793
|
+
IsString66({ message: "Question must be a string." }),
|
|
9794
|
+
IsNotEmpty89({ message: "Question is required." })
|
|
9768
9795
|
], AiQuestionItemDto.prototype, "question", 2);
|
|
9769
9796
|
__decorateClass([
|
|
9770
|
-
|
|
9771
|
-
|
|
9772
|
-
|
|
9797
|
+
IsOptional65(),
|
|
9798
|
+
IsArray25({ message: "Concepts must be an array." }),
|
|
9799
|
+
IsString66({ each: true, message: "Each concept must be a string." })
|
|
9773
9800
|
], AiQuestionItemDto.prototype, "concepts", 2);
|
|
9774
9801
|
var CreateInterviewQuestionsDto = class {
|
|
9775
9802
|
};
|
|
9776
9803
|
__decorateClass([
|
|
9777
|
-
|
|
9778
|
-
|
|
9804
|
+
IsOptional65(),
|
|
9805
|
+
IsArray25({ message: "Questions must be an array." }),
|
|
9779
9806
|
ValidateNested10({ each: true }),
|
|
9780
9807
|
Type18(() => CustomQuestionItemDto)
|
|
9781
9808
|
], CreateInterviewQuestionsDto.prototype, "questions", 2);
|
|
9782
9809
|
__decorateClass([
|
|
9783
|
-
|
|
9784
|
-
|
|
9810
|
+
IsOptional65(),
|
|
9811
|
+
IsArray25({ message: "AI questions must be an array." }),
|
|
9785
9812
|
ValidateNested10({ each: true }),
|
|
9786
9813
|
Type18(() => AiQuestionItemDto)
|
|
9787
9814
|
], CreateInterviewQuestionsDto.prototype, "aiQuestions", 2);
|
|
@@ -9789,49 +9816,49 @@ __decorateClass([
|
|
|
9789
9816
|
// src/modules/interview/dto/update-interview-setting.dto.ts
|
|
9790
9817
|
import {
|
|
9791
9818
|
IsBoolean as IsBoolean19,
|
|
9792
|
-
IsOptional as
|
|
9793
|
-
IsString as
|
|
9819
|
+
IsOptional as IsOptional66,
|
|
9820
|
+
IsString as IsString67
|
|
9794
9821
|
} from "class-validator";
|
|
9795
9822
|
import { Type as Type19 } from "class-transformer";
|
|
9796
9823
|
var UpdateInterviewSettingDto = class {
|
|
9797
9824
|
};
|
|
9798
9825
|
__decorateClass([
|
|
9799
|
-
|
|
9800
|
-
|
|
9826
|
+
IsOptional66(),
|
|
9827
|
+
IsString67({ message: "Interview language must be a string." })
|
|
9801
9828
|
], UpdateInterviewSettingDto.prototype, "interviewLanguage", 2);
|
|
9802
9829
|
__decorateClass([
|
|
9803
|
-
|
|
9830
|
+
IsOptional66(),
|
|
9804
9831
|
IsBoolean19({ message: "Allow proctoring must be a boolean." }),
|
|
9805
9832
|
Type19(() => Boolean)
|
|
9806
9833
|
], UpdateInterviewSettingDto.prototype, "allowProctoring", 2);
|
|
9807
9834
|
__decorateClass([
|
|
9808
|
-
|
|
9809
|
-
|
|
9835
|
+
IsOptional66(),
|
|
9836
|
+
IsString67({ message: "Interview duration must be a string." })
|
|
9810
9837
|
], UpdateInterviewSettingDto.prototype, "interviewDuration", 2);
|
|
9811
9838
|
__decorateClass([
|
|
9812
|
-
|
|
9813
|
-
|
|
9839
|
+
IsOptional66(),
|
|
9840
|
+
IsString67({ message: "Interview validity period must be a string." })
|
|
9814
9841
|
], UpdateInterviewSettingDto.prototype, "interviewValidityPeriod", 2);
|
|
9815
9842
|
__decorateClass([
|
|
9816
|
-
|
|
9817
|
-
|
|
9843
|
+
IsOptional66(),
|
|
9844
|
+
IsString67({ message: "Maximum attempts allowed must be a string." })
|
|
9818
9845
|
], UpdateInterviewSettingDto.prototype, "maximumAttemptsAllowed", 2);
|
|
9819
9846
|
__decorateClass([
|
|
9820
|
-
|
|
9821
|
-
|
|
9847
|
+
IsOptional66(),
|
|
9848
|
+
IsString67({ message: "Start interview message must be a string." })
|
|
9822
9849
|
], UpdateInterviewSettingDto.prototype, "startInterviewMessage", 2);
|
|
9823
9850
|
__decorateClass([
|
|
9824
|
-
|
|
9825
|
-
|
|
9851
|
+
IsOptional66(),
|
|
9852
|
+
IsString67({ message: "End interview message must be a string." })
|
|
9826
9853
|
], UpdateInterviewSettingDto.prototype, "endInterviewMessage", 2);
|
|
9827
9854
|
|
|
9828
9855
|
// src/modules/interview/dto/update-interview-type-information.dto.ts
|
|
9829
|
-
import { IsOptional as
|
|
9856
|
+
import { IsOptional as IsOptional67, IsString as IsString68 } from "class-validator";
|
|
9830
9857
|
var UpdateInterviewTypeInformationDto = class {
|
|
9831
9858
|
};
|
|
9832
9859
|
__decorateClass([
|
|
9833
|
-
|
|
9834
|
-
|
|
9860
|
+
IsOptional67(),
|
|
9861
|
+
IsString68({ message: "Interview type must be a string." })
|
|
9835
9862
|
], UpdateInterviewTypeInformationDto.prototype, "interviewType", 2);
|
|
9836
9863
|
|
|
9837
9864
|
// src/modules/contract/pattern/pattern.ts
|
|
@@ -9869,51 +9896,51 @@ var CONTRACT_PATTERN = {
|
|
|
9869
9896
|
};
|
|
9870
9897
|
|
|
9871
9898
|
// src/modules/contract/dto/sign-contract-for-client.dto.ts
|
|
9872
|
-
import { IsEnum as IsEnum35, IsNotEmpty as
|
|
9899
|
+
import { IsEnum as IsEnum35, IsNotEmpty as IsNotEmpty90, IsNumber as IsNumber20 } from "class-validator";
|
|
9873
9900
|
import { Type as Type20 } from "class-transformer";
|
|
9874
9901
|
var SignContractForClientDto = class {
|
|
9875
9902
|
};
|
|
9876
9903
|
__decorateClass([
|
|
9877
|
-
|
|
9904
|
+
IsNotEmpty90({ message: "Job Id is required." }),
|
|
9878
9905
|
Type20(() => Number),
|
|
9879
9906
|
IsNumber20({}, { message: "Job ID must be a number." })
|
|
9880
9907
|
], SignContractForClientDto.prototype, "jobId", 2);
|
|
9881
9908
|
__decorateClass([
|
|
9882
|
-
|
|
9909
|
+
IsNotEmpty90({ message: "Freelancer ID is required." }),
|
|
9883
9910
|
Type20(() => Number),
|
|
9884
9911
|
IsNumber20({}, { message: "Freelancer ID must be a number." })
|
|
9885
9912
|
], SignContractForClientDto.prototype, "freelancerId", 2);
|
|
9886
9913
|
__decorateClass([
|
|
9887
|
-
|
|
9914
|
+
IsNotEmpty90({ message: "Contract type is required." }),
|
|
9888
9915
|
IsEnum35(ContractTypeEnum)
|
|
9889
9916
|
], SignContractForClientDto.prototype, "contractType", 2);
|
|
9890
9917
|
|
|
9891
9918
|
// src/modules/contract/dto/sign-contract-for-freelancer.dto.ts
|
|
9892
|
-
import { IsEnum as IsEnum36, IsNotEmpty as
|
|
9919
|
+
import { IsEnum as IsEnum36, IsNotEmpty as IsNotEmpty91, IsNumber as IsNumber21 } from "class-validator";
|
|
9893
9920
|
import { Type as Type21 } from "class-transformer";
|
|
9894
9921
|
var SignContractForFreelancerDto = class {
|
|
9895
9922
|
};
|
|
9896
9923
|
__decorateClass([
|
|
9897
|
-
|
|
9924
|
+
IsNotEmpty91({ message: "Job Id is required." }),
|
|
9898
9925
|
Type21(() => Number),
|
|
9899
9926
|
IsNumber21({}, { message: "Job ID must be a number." })
|
|
9900
9927
|
], SignContractForFreelancerDto.prototype, "jobId", 2);
|
|
9901
9928
|
__decorateClass([
|
|
9902
|
-
|
|
9929
|
+
IsNotEmpty91({ message: "Client ID is required." }),
|
|
9903
9930
|
Type21(() => Number),
|
|
9904
9931
|
IsNumber21({}, { message: "Client ID must be a number." })
|
|
9905
9932
|
], SignContractForFreelancerDto.prototype, "clientId", 2);
|
|
9906
9933
|
__decorateClass([
|
|
9907
|
-
|
|
9934
|
+
IsNotEmpty91({ message: "Contract type is required." }),
|
|
9908
9935
|
IsEnum36(ContractTypeEnum)
|
|
9909
9936
|
], SignContractForFreelancerDto.prototype, "contractType", 2);
|
|
9910
9937
|
|
|
9911
9938
|
// src/modules/contract/dto/generate-contract.dto.ts
|
|
9912
9939
|
import {
|
|
9913
|
-
IsNotEmpty as
|
|
9940
|
+
IsNotEmpty as IsNotEmpty92,
|
|
9914
9941
|
IsNumber as IsNumber22,
|
|
9915
|
-
IsOptional as
|
|
9916
|
-
IsString as
|
|
9942
|
+
IsOptional as IsOptional68,
|
|
9943
|
+
IsString as IsString69,
|
|
9917
9944
|
IsUUID as IsUUID23,
|
|
9918
9945
|
IsEnum as IsEnum37
|
|
9919
9946
|
} from "class-validator";
|
|
@@ -9938,72 +9965,72 @@ var GenerateContractDto = class {
|
|
|
9938
9965
|
};
|
|
9939
9966
|
__decorateClass([
|
|
9940
9967
|
IsNumber22({}, { message: "Job ID must be a number." }),
|
|
9941
|
-
|
|
9968
|
+
IsNotEmpty92({ message: "Job ID is required." })
|
|
9942
9969
|
], GenerateContractDto.prototype, "jobId", 2);
|
|
9943
9970
|
__decorateClass([
|
|
9944
9971
|
IsNumber22({}, { message: "Freelancer ID must be a number." }),
|
|
9945
|
-
|
|
9972
|
+
IsNotEmpty92({ message: "Freelancer ID is required." })
|
|
9946
9973
|
], GenerateContractDto.prototype, "freelancerId", 2);
|
|
9947
9974
|
__decorateClass([
|
|
9948
|
-
|
|
9975
|
+
IsOptional68(),
|
|
9949
9976
|
IsEnum37(ContractTypeEnumDto, {
|
|
9950
9977
|
message: "Contract type must be one of NDA, MSA, SOW, or WORK."
|
|
9951
9978
|
})
|
|
9952
9979
|
], GenerateContractDto.prototype, "contractType", 2);
|
|
9953
9980
|
__decorateClass([
|
|
9954
|
-
|
|
9955
|
-
|
|
9981
|
+
IsOptional68(),
|
|
9982
|
+
IsString69({ message: "Contract start date must be a string." })
|
|
9956
9983
|
], GenerateContractDto.prototype, "contractStartDate", 2);
|
|
9957
9984
|
__decorateClass([
|
|
9958
|
-
|
|
9959
|
-
|
|
9985
|
+
IsOptional68(),
|
|
9986
|
+
IsString69({ message: "Contract invoicing cycle must be a string." })
|
|
9960
9987
|
], GenerateContractDto.prototype, "contractInvoicingCycle", 2);
|
|
9961
9988
|
__decorateClass([
|
|
9962
|
-
|
|
9989
|
+
IsNotEmpty92({ message: "Preferred engagement type is required" }),
|
|
9963
9990
|
IsEnum37(PreferredEngagementTypeEnum, {
|
|
9964
9991
|
message: "Preferred engagement type must be FREELANCE."
|
|
9965
9992
|
})
|
|
9966
9993
|
], GenerateContractDto.prototype, "preferredEngagementType", 2);
|
|
9967
9994
|
__decorateClass([
|
|
9968
|
-
|
|
9995
|
+
IsOptional68(),
|
|
9969
9996
|
IsEnum37(ContractSourceEnum, {
|
|
9970
9997
|
message: "Source must be one of AI_INTERVIEW, F2F_INTERVIEW, or JOB."
|
|
9971
9998
|
})
|
|
9972
9999
|
], GenerateContractDto.prototype, "source", 2);
|
|
9973
10000
|
__decorateClass([
|
|
9974
|
-
|
|
10001
|
+
IsOptional68(),
|
|
9975
10002
|
IsUUID23("4", { message: "Source UUID must be a valid UUID." })
|
|
9976
10003
|
], GenerateContractDto.prototype, "sourceUuid", 2);
|
|
9977
10004
|
|
|
9978
10005
|
// src/modules/contract/dto/esign-contract-client.dto.ts
|
|
9979
|
-
import { IsNotEmpty as
|
|
10006
|
+
import { IsNotEmpty as IsNotEmpty93, IsUUID as IsUUID24 } from "class-validator";
|
|
9980
10007
|
var EsignContractClientDto = class {
|
|
9981
10008
|
};
|
|
9982
10009
|
__decorateClass([
|
|
9983
10010
|
IsUUID24("4", { message: "Contract UUID must be a valid UUID." }),
|
|
9984
|
-
|
|
10011
|
+
IsNotEmpty93({ message: "Contract UUID is required." })
|
|
9985
10012
|
], EsignContractClientDto.prototype, "contractUuid", 2);
|
|
9986
10013
|
|
|
9987
10014
|
// src/modules/contract/dto/esign-contract-freelancer.dto.ts
|
|
9988
|
-
import { IsNotEmpty as
|
|
10015
|
+
import { IsNotEmpty as IsNotEmpty94, IsUUID as IsUUID25 } from "class-validator";
|
|
9989
10016
|
var EsignContractFreelancerDto = class {
|
|
9990
10017
|
};
|
|
9991
10018
|
__decorateClass([
|
|
9992
10019
|
IsUUID25("4", { message: "Contract UUID must be a valid UUID." }),
|
|
9993
|
-
|
|
10020
|
+
IsNotEmpty94({ message: "Contract UUID is required." })
|
|
9994
10021
|
], EsignContractFreelancerDto.prototype, "contractUuid", 2);
|
|
9995
10022
|
|
|
9996
10023
|
// src/modules/contract/dto/escrow-fund-contract.dto.ts
|
|
9997
|
-
import { IsNotEmpty as
|
|
10024
|
+
import { IsNotEmpty as IsNotEmpty95, IsUUID as IsUUID26 } from "class-validator";
|
|
9998
10025
|
var EscrowFundContractDto = class {
|
|
9999
10026
|
};
|
|
10000
10027
|
__decorateClass([
|
|
10001
10028
|
IsUUID26("4", { message: "Contract ID must be a valid UUID." }),
|
|
10002
|
-
|
|
10029
|
+
IsNotEmpty95({ message: "Contract ID is required." })
|
|
10003
10030
|
], EscrowFundContractDto.prototype, "contractId", 2);
|
|
10004
10031
|
|
|
10005
10032
|
// src/modules/contract/dto/send-nda-contract-to-freelancer.dto.ts
|
|
10006
|
-
import { IsNotEmpty as
|
|
10033
|
+
import { IsNotEmpty as IsNotEmpty96, IsOptional as IsOptional69, IsUUID as IsUUID27, IsEnum as IsEnum38 } from "class-validator";
|
|
10007
10034
|
var ContractSourceEnum2 = /* @__PURE__ */ ((ContractSourceEnum3) => {
|
|
10008
10035
|
ContractSourceEnum3["AI_INTERVIEW"] = "AI_INTERVIEW";
|
|
10009
10036
|
ContractSourceEnum3["F2F_INTERVIEW"] = "F2F_INTERVIEW";
|
|
@@ -10014,26 +10041,26 @@ var SendNdaContractToFreelancerDto = class {
|
|
|
10014
10041
|
};
|
|
10015
10042
|
__decorateClass([
|
|
10016
10043
|
IsUUID27("4", { message: "Contract UUID must be a valid UUID." }),
|
|
10017
|
-
|
|
10044
|
+
IsNotEmpty96({ message: "Contract UUID is required." })
|
|
10018
10045
|
], SendNdaContractToFreelancerDto.prototype, "contractUuid", 2);
|
|
10019
10046
|
__decorateClass([
|
|
10020
|
-
|
|
10047
|
+
IsOptional69(),
|
|
10021
10048
|
IsEnum38(ContractSourceEnum2, {
|
|
10022
10049
|
message: "Source must be one of AI_INTERVIEW, F2F_INTERVIEW, or JOB."
|
|
10023
10050
|
})
|
|
10024
10051
|
], SendNdaContractToFreelancerDto.prototype, "source", 2);
|
|
10025
10052
|
__decorateClass([
|
|
10026
|
-
|
|
10053
|
+
IsOptional69(),
|
|
10027
10054
|
IsUUID27("4", { message: "Source UUID must be a valid UUID." })
|
|
10028
10055
|
], SendNdaContractToFreelancerDto.prototype, "sourceUuid", 2);
|
|
10029
10056
|
|
|
10030
10057
|
// src/modules/contract/dto/reject-contract.dto.ts
|
|
10031
|
-
import { IsOptional as
|
|
10058
|
+
import { IsOptional as IsOptional70, IsString as IsString71 } from "class-validator";
|
|
10032
10059
|
var RejectContractDto = class {
|
|
10033
10060
|
};
|
|
10034
10061
|
__decorateClass([
|
|
10035
|
-
|
|
10036
|
-
|
|
10062
|
+
IsOptional70(),
|
|
10063
|
+
IsString71({ message: "Reject reason must be a string." })
|
|
10037
10064
|
], RejectContractDto.prototype, "rejectReason", 2);
|
|
10038
10065
|
|
|
10039
10066
|
// src/modules/stripe/pattern/pattern.ts
|
|
@@ -10058,55 +10085,55 @@ var STRIPE_PATTERN = {
|
|
|
10058
10085
|
|
|
10059
10086
|
// src/modules/stripe/dto/create-checkout-session.dto.ts
|
|
10060
10087
|
import {
|
|
10061
|
-
IsNotEmpty as
|
|
10088
|
+
IsNotEmpty as IsNotEmpty97
|
|
10062
10089
|
} from "class-validator";
|
|
10063
10090
|
var CreateCheckoutSessionDto = class {
|
|
10064
10091
|
};
|
|
10065
10092
|
__decorateClass([
|
|
10066
|
-
|
|
10093
|
+
IsNotEmpty97({ message: "Amount is required" })
|
|
10067
10094
|
], CreateCheckoutSessionDto.prototype, "amount", 2);
|
|
10068
10095
|
|
|
10069
10096
|
// src/modules/stripe/dto/pre-checkout-calculation.dto.ts
|
|
10070
|
-
import { IsNotEmpty as
|
|
10097
|
+
import { IsNotEmpty as IsNotEmpty98, IsNumber as IsNumber23, IsOptional as IsOptional71, IsString as IsString72 } from "class-validator";
|
|
10071
10098
|
var PreCheckoutCalculationDto = class {
|
|
10072
10099
|
};
|
|
10073
10100
|
__decorateClass([
|
|
10074
|
-
|
|
10101
|
+
IsNotEmpty98({ message: "Amount is required" }),
|
|
10075
10102
|
IsNumber23({}, { message: "Amount must be a number" })
|
|
10076
10103
|
], PreCheckoutCalculationDto.prototype, "amount", 2);
|
|
10077
10104
|
__decorateClass([
|
|
10078
|
-
|
|
10079
|
-
|
|
10105
|
+
IsOptional71(),
|
|
10106
|
+
IsString72()
|
|
10080
10107
|
], PreCheckoutCalculationDto.prototype, "currency", 2);
|
|
10081
10108
|
__decorateClass([
|
|
10082
|
-
|
|
10083
|
-
|
|
10109
|
+
IsOptional71(),
|
|
10110
|
+
IsString72()
|
|
10084
10111
|
], PreCheckoutCalculationDto.prototype, "description", 2);
|
|
10085
10112
|
|
|
10086
10113
|
// src/modules/stripe/dto/client-add-fund.dto.ts
|
|
10087
|
-
import { IsNotEmpty as
|
|
10114
|
+
import { IsNotEmpty as IsNotEmpty99, IsNumber as IsNumber24, IsOptional as IsOptional72, IsString as IsString73 } from "class-validator";
|
|
10088
10115
|
var ClientAddFundDto = class {
|
|
10089
10116
|
};
|
|
10090
10117
|
__decorateClass([
|
|
10091
|
-
|
|
10118
|
+
IsNotEmpty99({ message: "Amount is required" }),
|
|
10092
10119
|
IsNumber24({}, { message: "Amount must be a number" })
|
|
10093
10120
|
], ClientAddFundDto.prototype, "amount", 2);
|
|
10094
10121
|
__decorateClass([
|
|
10095
|
-
|
|
10096
|
-
|
|
10122
|
+
IsOptional72(),
|
|
10123
|
+
IsString73()
|
|
10097
10124
|
], ClientAddFundDto.prototype, "currency", 2);
|
|
10098
10125
|
__decorateClass([
|
|
10099
|
-
|
|
10100
|
-
|
|
10126
|
+
IsOptional72(),
|
|
10127
|
+
IsString73()
|
|
10101
10128
|
], ClientAddFundDto.prototype, "description", 2);
|
|
10102
10129
|
|
|
10103
10130
|
// src/modules/stripe/dto/transfer-funds.dto.ts
|
|
10104
|
-
import { IsNotEmpty as
|
|
10131
|
+
import { IsNotEmpty as IsNotEmpty100, IsUUID as IsUUID28 } from "class-validator";
|
|
10105
10132
|
var TransferFundsDto = class {
|
|
10106
10133
|
};
|
|
10107
10134
|
__decorateClass([
|
|
10108
10135
|
IsUUID28("4", { message: "Invoice UUID must be a valid UUID." }),
|
|
10109
|
-
|
|
10136
|
+
IsNotEmpty100({ message: "Invoice UUID is required." })
|
|
10110
10137
|
], TransferFundsDto.prototype, "invoiceUuid", 2);
|
|
10111
10138
|
|
|
10112
10139
|
// src/modules/timesheet/pattern/pattern.ts
|
|
@@ -10153,172 +10180,172 @@ var TIMESHEET_CLIENT_PATTERN = {
|
|
|
10153
10180
|
import {
|
|
10154
10181
|
IsDateString as IsDateString10,
|
|
10155
10182
|
IsInt as IsInt13,
|
|
10156
|
-
IsNotEmpty as
|
|
10157
|
-
IsOptional as
|
|
10158
|
-
IsString as
|
|
10183
|
+
IsNotEmpty as IsNotEmpty101,
|
|
10184
|
+
IsOptional as IsOptional73,
|
|
10185
|
+
IsString as IsString74,
|
|
10159
10186
|
Matches as Matches13,
|
|
10160
10187
|
IsNumber as IsNumber25
|
|
10161
10188
|
} from "class-validator";
|
|
10162
10189
|
var CreateFreelancerTimesheetDto = class {
|
|
10163
10190
|
};
|
|
10164
10191
|
__decorateClass([
|
|
10165
|
-
|
|
10192
|
+
IsNotEmpty101({ message: "Job id is required" }),
|
|
10166
10193
|
IsNumber25({}, { message: "Job id must be a number" })
|
|
10167
10194
|
], CreateFreelancerTimesheetDto.prototype, "jobId", 2);
|
|
10168
10195
|
__decorateClass([
|
|
10169
|
-
|
|
10196
|
+
IsNotEmpty101({ message: "start date is required" }),
|
|
10170
10197
|
IsDateString10()
|
|
10171
10198
|
], CreateFreelancerTimesheetDto.prototype, "startDate", 2);
|
|
10172
10199
|
__decorateClass([
|
|
10173
|
-
|
|
10200
|
+
IsNotEmpty101({ message: "end date is required" }),
|
|
10174
10201
|
IsDateString10()
|
|
10175
10202
|
], CreateFreelancerTimesheetDto.prototype, "endDate", 2);
|
|
10176
10203
|
__decorateClass([
|
|
10177
|
-
|
|
10204
|
+
IsNotEmpty101({ message: "start time is required" }),
|
|
10178
10205
|
Matches13(/^([01]\d|2[0-3]):([0-5]\d):([0-5]\d)$/, {
|
|
10179
10206
|
message: "startTime must be in HH:mm:ss format"
|
|
10180
10207
|
})
|
|
10181
10208
|
], CreateFreelancerTimesheetDto.prototype, "startTime", 2);
|
|
10182
10209
|
__decorateClass([
|
|
10183
|
-
|
|
10210
|
+
IsNotEmpty101({ message: "end time is required" }),
|
|
10184
10211
|
Matches13(/^([01]\d|2[0-3]):([0-5]\d):([0-5]\d)$/, {
|
|
10185
10212
|
message: "endTime must be in HH:mm:ss format"
|
|
10186
10213
|
})
|
|
10187
10214
|
], CreateFreelancerTimesheetDto.prototype, "endTime", 2);
|
|
10188
10215
|
__decorateClass([
|
|
10189
|
-
|
|
10216
|
+
IsOptional73(),
|
|
10190
10217
|
IsInt13()
|
|
10191
10218
|
], CreateFreelancerTimesheetDto.prototype, "taskId", 2);
|
|
10192
10219
|
__decorateClass([
|
|
10193
|
-
|
|
10194
|
-
|
|
10220
|
+
IsOptional73(),
|
|
10221
|
+
IsString74()
|
|
10195
10222
|
], CreateFreelancerTimesheetDto.prototype, "projectName", 2);
|
|
10196
10223
|
__decorateClass([
|
|
10197
|
-
|
|
10198
|
-
|
|
10224
|
+
IsOptional73(),
|
|
10225
|
+
IsString74()
|
|
10199
10226
|
], CreateFreelancerTimesheetDto.prototype, "deliverable", 2);
|
|
10200
10227
|
__decorateClass([
|
|
10201
|
-
|
|
10202
|
-
|
|
10228
|
+
IsOptional73(),
|
|
10229
|
+
IsString74()
|
|
10203
10230
|
], CreateFreelancerTimesheetDto.prototype, "taskName", 2);
|
|
10204
10231
|
__decorateClass([
|
|
10205
|
-
|
|
10232
|
+
IsNotEmpty101({ message: "Description is required" })
|
|
10206
10233
|
], CreateFreelancerTimesheetDto.prototype, "description", 2);
|
|
10207
10234
|
|
|
10208
10235
|
// src/modules/timesheet/dto/update-freelancer-timesheet.dto.ts
|
|
10209
10236
|
import {
|
|
10210
10237
|
IsDateString as IsDateString11,
|
|
10211
10238
|
IsInt as IsInt14,
|
|
10212
|
-
IsNotEmpty as
|
|
10213
|
-
IsOptional as
|
|
10214
|
-
IsString as
|
|
10239
|
+
IsNotEmpty as IsNotEmpty102,
|
|
10240
|
+
IsOptional as IsOptional74,
|
|
10241
|
+
IsString as IsString75,
|
|
10215
10242
|
Matches as Matches14,
|
|
10216
10243
|
IsNumber as IsNumber26
|
|
10217
10244
|
} from "class-validator";
|
|
10218
10245
|
var UpdateFreelancerTimesheetDto = class {
|
|
10219
10246
|
};
|
|
10220
10247
|
__decorateClass([
|
|
10221
|
-
|
|
10248
|
+
IsNotEmpty102({ message: "Job id is required" }),
|
|
10222
10249
|
IsNumber26({}, { message: "Job id must be a number" })
|
|
10223
10250
|
], UpdateFreelancerTimesheetDto.prototype, "jobId", 2);
|
|
10224
10251
|
__decorateClass([
|
|
10225
|
-
|
|
10252
|
+
IsNotEmpty102({ message: "start date is required" }),
|
|
10226
10253
|
IsDateString11()
|
|
10227
10254
|
], UpdateFreelancerTimesheetDto.prototype, "startDate", 2);
|
|
10228
10255
|
__decorateClass([
|
|
10229
|
-
|
|
10256
|
+
IsNotEmpty102({ message: "end date is required" }),
|
|
10230
10257
|
IsDateString11()
|
|
10231
10258
|
], UpdateFreelancerTimesheetDto.prototype, "endDate", 2);
|
|
10232
10259
|
__decorateClass([
|
|
10233
|
-
|
|
10260
|
+
IsNotEmpty102({ message: "start time is required" }),
|
|
10234
10261
|
Matches14(/^([01]\d|2[0-3]):([0-5]\d):([0-5]\d)$/, {
|
|
10235
10262
|
message: "startTime must be in HH:mm:ss format"
|
|
10236
10263
|
})
|
|
10237
10264
|
], UpdateFreelancerTimesheetDto.prototype, "startTime", 2);
|
|
10238
10265
|
__decorateClass([
|
|
10239
|
-
|
|
10266
|
+
IsNotEmpty102({ message: "end time is required" }),
|
|
10240
10267
|
Matches14(/^([01]\d|2[0-3]):([0-5]\d):([0-5]\d)$/, {
|
|
10241
10268
|
message: "endTime must be in HH:mm:ss format"
|
|
10242
10269
|
})
|
|
10243
10270
|
], UpdateFreelancerTimesheetDto.prototype, "endTime", 2);
|
|
10244
10271
|
__decorateClass([
|
|
10245
|
-
|
|
10272
|
+
IsOptional74(),
|
|
10246
10273
|
IsInt14()
|
|
10247
10274
|
], UpdateFreelancerTimesheetDto.prototype, "taskId", 2);
|
|
10248
10275
|
__decorateClass([
|
|
10249
|
-
|
|
10250
|
-
|
|
10276
|
+
IsOptional74(),
|
|
10277
|
+
IsString75()
|
|
10251
10278
|
], UpdateFreelancerTimesheetDto.prototype, "projectName", 2);
|
|
10252
10279
|
__decorateClass([
|
|
10253
|
-
|
|
10254
|
-
|
|
10280
|
+
IsOptional74(),
|
|
10281
|
+
IsString75()
|
|
10255
10282
|
], UpdateFreelancerTimesheetDto.prototype, "deliverable", 2);
|
|
10256
10283
|
__decorateClass([
|
|
10257
|
-
|
|
10258
|
-
|
|
10284
|
+
IsOptional74(),
|
|
10285
|
+
IsString75()
|
|
10259
10286
|
], UpdateFreelancerTimesheetDto.prototype, "taskName", 2);
|
|
10260
10287
|
__decorateClass([
|
|
10261
|
-
|
|
10288
|
+
IsNotEmpty102({ message: "Description is required" })
|
|
10262
10289
|
], UpdateFreelancerTimesheetDto.prototype, "description", 2);
|
|
10263
10290
|
|
|
10264
10291
|
// src/modules/timesheet/dto/submit-timesheet.dto.ts
|
|
10265
|
-
import { IsNotEmpty as
|
|
10292
|
+
import { IsNotEmpty as IsNotEmpty103, IsNumber as IsNumber27 } from "class-validator";
|
|
10266
10293
|
var SubmitTimesheetDto = class {
|
|
10267
10294
|
};
|
|
10268
10295
|
__decorateClass([
|
|
10269
|
-
|
|
10296
|
+
IsNotEmpty103({ message: "Timesheet line ID is required" }),
|
|
10270
10297
|
IsNumber27({}, { message: "Timesheet line ID must be a number" })
|
|
10271
10298
|
], SubmitTimesheetDto.prototype, "timesheetLineId", 2);
|
|
10272
10299
|
|
|
10273
10300
|
// src/modules/timesheet/dto/resubmit-timesheet.dto.ts
|
|
10274
|
-
import { IsNotEmpty as
|
|
10301
|
+
import { IsNotEmpty as IsNotEmpty104, IsNumber as IsNumber28 } from "class-validator";
|
|
10275
10302
|
var ResubmitTimesheetDto = class {
|
|
10276
10303
|
};
|
|
10277
10304
|
__decorateClass([
|
|
10278
|
-
|
|
10305
|
+
IsNotEmpty104({ message: "Timesheet line ID is required" }),
|
|
10279
10306
|
IsNumber28({}, { message: "Timesheet line ID must be a number" })
|
|
10280
10307
|
], ResubmitTimesheetDto.prototype, "timesheetLineId", 2);
|
|
10281
10308
|
|
|
10282
10309
|
// src/modules/timesheet/dto/approve-timesheets.dto.ts
|
|
10283
|
-
import { IsNotEmpty as
|
|
10310
|
+
import { IsNotEmpty as IsNotEmpty105, IsNumber as IsNumber29 } from "class-validator";
|
|
10284
10311
|
import { Type as Type22 } from "class-transformer";
|
|
10285
10312
|
var ApproveTimesheetsDto = class {
|
|
10286
10313
|
};
|
|
10287
10314
|
__decorateClass([
|
|
10288
10315
|
IsNumber29({}, { message: "Timesheet line ID must be a number." }),
|
|
10289
|
-
|
|
10316
|
+
IsNotEmpty105({ message: "Timesheet line ID is required." }),
|
|
10290
10317
|
Type22(() => Number)
|
|
10291
10318
|
], ApproveTimesheetsDto.prototype, "timesheetLineId", 2);
|
|
10292
10319
|
|
|
10293
10320
|
// src/modules/timesheet/dto/send-back-timesheets.dto.ts
|
|
10294
|
-
import { IsNotEmpty as
|
|
10321
|
+
import { IsNotEmpty as IsNotEmpty106, IsNumber as IsNumber30, IsOptional as IsOptional75, IsString as IsString76 } from "class-validator";
|
|
10295
10322
|
import { Type as Type23 } from "class-transformer";
|
|
10296
10323
|
var SendBackTimesheetsDto = class {
|
|
10297
10324
|
};
|
|
10298
10325
|
__decorateClass([
|
|
10299
10326
|
IsNumber30({}, { message: "Timesheet line ID must be a number." }),
|
|
10300
|
-
|
|
10327
|
+
IsNotEmpty106({ message: "Timesheet line ID is required." }),
|
|
10301
10328
|
Type23(() => Number)
|
|
10302
10329
|
], SendBackTimesheetsDto.prototype, "timesheetLineId", 2);
|
|
10303
10330
|
__decorateClass([
|
|
10304
|
-
|
|
10305
|
-
|
|
10331
|
+
IsOptional75(),
|
|
10332
|
+
IsString76({ message: "Client send back reason must be a string." })
|
|
10306
10333
|
], SendBackTimesheetsDto.prototype, "clientSendBackReason", 2);
|
|
10307
10334
|
|
|
10308
10335
|
// src/modules/timesheet/dto/create-default-timesheet-line.dto.ts
|
|
10309
|
-
import { IsNotEmpty as
|
|
10336
|
+
import { IsNotEmpty as IsNotEmpty107, IsNumber as IsNumber31 } from "class-validator";
|
|
10310
10337
|
var CreateDefaultTimesheetLineDto = class {
|
|
10311
10338
|
};
|
|
10312
10339
|
__decorateClass([
|
|
10313
|
-
|
|
10340
|
+
IsNotEmpty107({ message: "Contract ID is required" }),
|
|
10314
10341
|
IsNumber31({}, { message: "Contract ID must be a number" })
|
|
10315
10342
|
], CreateDefaultTimesheetLineDto.prototype, "contractId", 2);
|
|
10316
10343
|
__decorateClass([
|
|
10317
|
-
|
|
10344
|
+
IsNotEmpty107({ message: "Freelancer ID is required" }),
|
|
10318
10345
|
IsNumber31({}, { message: "Freelancer ID must be a number" })
|
|
10319
10346
|
], CreateDefaultTimesheetLineDto.prototype, "freelancerId", 2);
|
|
10320
10347
|
__decorateClass([
|
|
10321
|
-
|
|
10348
|
+
IsNotEmpty107({ message: "Client ID is required" }),
|
|
10322
10349
|
IsNumber31({}, { message: "Client ID must be a number" })
|
|
10323
10350
|
], CreateDefaultTimesheetLineDto.prototype, "clientId", 2);
|
|
10324
10351
|
|
|
@@ -10341,22 +10368,22 @@ var INVOICE_PATTERN = {
|
|
|
10341
10368
|
};
|
|
10342
10369
|
|
|
10343
10370
|
// src/modules/invoice/dto/update-invoice-status.dto.ts
|
|
10344
|
-
import { IsEnum as IsEnum41, IsNotEmpty as
|
|
10371
|
+
import { IsEnum as IsEnum41, IsNotEmpty as IsNotEmpty108 } from "class-validator";
|
|
10345
10372
|
var UpdateInvoiceStatusDto = class {
|
|
10346
10373
|
};
|
|
10347
10374
|
__decorateClass([
|
|
10348
|
-
|
|
10375
|
+
IsNotEmpty108({ message: "Please provide invoice status." }),
|
|
10349
10376
|
IsEnum41(InvoiceStatusEnum, {
|
|
10350
10377
|
message: "Status must be one of: APPROVED, REJECTED"
|
|
10351
10378
|
})
|
|
10352
10379
|
], UpdateInvoiceStatusDto.prototype, "status", 2);
|
|
10353
10380
|
|
|
10354
10381
|
// src/modules/invoice/dto/create-invoice.dto.ts
|
|
10355
|
-
import { IsNotEmpty as
|
|
10382
|
+
import { IsNotEmpty as IsNotEmpty109, IsNumber as IsNumber32 } from "class-validator";
|
|
10356
10383
|
var CreateInvoiceDto = class {
|
|
10357
10384
|
};
|
|
10358
10385
|
__decorateClass([
|
|
10359
|
-
|
|
10386
|
+
IsNotEmpty109({ message: "Timesheet line ID is required" }),
|
|
10360
10387
|
IsNumber32({}, { message: "Timesheet line ID must be a number" })
|
|
10361
10388
|
], CreateInvoiceDto.prototype, "timeSheetLineId", 2);
|
|
10362
10389
|
|
|
@@ -10369,16 +10396,16 @@ var DISPUTE_PATTERN = {
|
|
|
10369
10396
|
|
|
10370
10397
|
// src/modules/dispute/dto/create-dispute.dto.ts
|
|
10371
10398
|
import {
|
|
10372
|
-
IsString as
|
|
10373
|
-
IsNotEmpty as
|
|
10399
|
+
IsString as IsString77,
|
|
10400
|
+
IsNotEmpty as IsNotEmpty110,
|
|
10374
10401
|
IsIn as IsIn4,
|
|
10375
|
-
IsOptional as
|
|
10402
|
+
IsOptional as IsOptional76,
|
|
10376
10403
|
MaxLength as MaxLength21,
|
|
10377
10404
|
IsObject as IsObject7,
|
|
10378
10405
|
IsNumber as IsNumber33,
|
|
10379
10406
|
ValidateIf as ValidateIf11
|
|
10380
10407
|
} from "class-validator";
|
|
10381
|
-
import { Transform as
|
|
10408
|
+
import { Transform as Transform7, Type as Type24 } from "class-transformer";
|
|
10382
10409
|
var CreateDisputeDto = class {
|
|
10383
10410
|
};
|
|
10384
10411
|
__decorateClass([
|
|
@@ -10392,28 +10419,28 @@ __decorateClass([
|
|
|
10392
10419
|
Type24(() => Number)
|
|
10393
10420
|
], CreateDisputeDto.prototype, "freelancerId", 2);
|
|
10394
10421
|
__decorateClass([
|
|
10395
|
-
|
|
10396
|
-
|
|
10422
|
+
IsNotEmpty110({ message: "Please select dispute type." }),
|
|
10423
|
+
IsString77(),
|
|
10397
10424
|
IsIn4(["JOB", "INVOICE"])
|
|
10398
10425
|
], CreateDisputeDto.prototype, "disputeType", 2);
|
|
10399
10426
|
__decorateClass([
|
|
10400
|
-
|
|
10401
|
-
|
|
10427
|
+
IsNotEmpty110({ message: "Please provide initiator type." }),
|
|
10428
|
+
IsString77()
|
|
10402
10429
|
], CreateDisputeDto.prototype, "initiatorType", 2);
|
|
10403
10430
|
__decorateClass([
|
|
10404
|
-
|
|
10405
|
-
|
|
10431
|
+
IsNotEmpty110({ message: "Please enter description." }),
|
|
10432
|
+
IsString77({ message: "Description must be a string" }),
|
|
10406
10433
|
MaxLength21(500, { message: "Description must not exceed 500 characters" })
|
|
10407
10434
|
], CreateDisputeDto.prototype, "description", 2);
|
|
10408
10435
|
__decorateClass([
|
|
10409
|
-
|
|
10410
|
-
|
|
10436
|
+
IsOptional76(),
|
|
10437
|
+
IsString77({ message: "Comment must be a string" }),
|
|
10411
10438
|
MaxLength21(500, { message: "Comment must not exceed 500 characters" })
|
|
10412
10439
|
], CreateDisputeDto.prototype, "comment", 2);
|
|
10413
10440
|
__decorateClass([
|
|
10414
|
-
|
|
10441
|
+
IsOptional76(),
|
|
10415
10442
|
IsObject7({ message: "Dynamic fields must be a valid object" }),
|
|
10416
|
-
|
|
10443
|
+
Transform7(({ value }) => {
|
|
10417
10444
|
if (typeof value === "string") {
|
|
10418
10445
|
try {
|
|
10419
10446
|
return JSON.parse(value);
|
|
@@ -10434,126 +10461,126 @@ var SENSELOAF_PATTERN = {
|
|
|
10434
10461
|
|
|
10435
10462
|
// src/modules/senseloaf/dto/ai-interview-question-generate.dto.ts
|
|
10436
10463
|
import {
|
|
10437
|
-
IsNotEmpty as
|
|
10464
|
+
IsNotEmpty as IsNotEmpty111
|
|
10438
10465
|
} from "class-validator";
|
|
10439
10466
|
var AiInterviewQuestionGenerateDto = class {
|
|
10440
10467
|
};
|
|
10441
10468
|
__decorateClass([
|
|
10442
|
-
|
|
10469
|
+
IsNotEmpty111({ message: "Please enter job description." })
|
|
10443
10470
|
], AiInterviewQuestionGenerateDto.prototype, "jobDescription", 2);
|
|
10444
10471
|
__decorateClass([
|
|
10445
|
-
|
|
10472
|
+
IsNotEmpty111({ message: "Please enter number of questions." })
|
|
10446
10473
|
], AiInterviewQuestionGenerateDto.prototype, "numQuestions", 2);
|
|
10447
10474
|
|
|
10448
10475
|
// src/modules/senseloaf/dto/resume-parsing-by-url.dto.ts
|
|
10449
|
-
import { IsNotEmpty as
|
|
10476
|
+
import { IsNotEmpty as IsNotEmpty112, IsString as IsString78, IsOptional as IsOptional77 } from "class-validator";
|
|
10450
10477
|
var ResumeParsingByUrlDto = class {
|
|
10451
10478
|
};
|
|
10452
10479
|
__decorateClass([
|
|
10453
|
-
|
|
10454
|
-
|
|
10480
|
+
IsNotEmpty112({ message: "Resume URL is required" }),
|
|
10481
|
+
IsString78({ message: "Resume URL must be a string" })
|
|
10455
10482
|
], ResumeParsingByUrlDto.prototype, "resumeUrl", 2);
|
|
10456
10483
|
__decorateClass([
|
|
10457
|
-
|
|
10458
|
-
|
|
10484
|
+
IsOptional77(),
|
|
10485
|
+
IsString78()
|
|
10459
10486
|
], ResumeParsingByUrlDto.prototype, "fileName", 2);
|
|
10460
10487
|
|
|
10461
10488
|
// src/modules/senseloaf/dto/resume-data-processing.dto.ts
|
|
10462
|
-
import { IsNotEmpty as
|
|
10489
|
+
import { IsNotEmpty as IsNotEmpty113, IsString as IsString79, IsOptional as IsOptional78, IsObject as IsObject8 } from "class-validator";
|
|
10463
10490
|
var ResumeDataProcessingDto = class {
|
|
10464
10491
|
};
|
|
10465
10492
|
__decorateClass([
|
|
10466
|
-
|
|
10493
|
+
IsNotEmpty113({ message: "Resume data is required" }),
|
|
10467
10494
|
IsObject8()
|
|
10468
10495
|
], ResumeDataProcessingDto.prototype, "resumeData", 2);
|
|
10469
10496
|
__decorateClass([
|
|
10470
|
-
|
|
10471
|
-
|
|
10497
|
+
IsOptional78(),
|
|
10498
|
+
IsString79()
|
|
10472
10499
|
], ResumeDataProcessingDto.prototype, "userId", 2);
|
|
10473
10500
|
__decorateClass([
|
|
10474
|
-
|
|
10475
|
-
|
|
10501
|
+
IsOptional78(),
|
|
10502
|
+
IsString79()
|
|
10476
10503
|
], ResumeDataProcessingDto.prototype, "processingType", 2);
|
|
10477
10504
|
|
|
10478
10505
|
// src/modules/senseloaf/dto/check-resume-eligibility.dto.ts
|
|
10479
|
-
import { IsNotEmpty as
|
|
10506
|
+
import { IsNotEmpty as IsNotEmpty114, IsString as IsString80, IsOptional as IsOptional79, IsObject as IsObject9 } from "class-validator";
|
|
10480
10507
|
var CheckResumeEligibilityDto = class {
|
|
10481
10508
|
};
|
|
10482
10509
|
__decorateClass([
|
|
10483
|
-
|
|
10510
|
+
IsNotEmpty114({ message: "Resume data is required" }),
|
|
10484
10511
|
IsObject9()
|
|
10485
10512
|
], CheckResumeEligibilityDto.prototype, "resumeData", 2);
|
|
10486
10513
|
__decorateClass([
|
|
10487
|
-
|
|
10488
|
-
|
|
10514
|
+
IsOptional79(),
|
|
10515
|
+
IsString80()
|
|
10489
10516
|
], CheckResumeEligibilityDto.prototype, "jobId", 2);
|
|
10490
10517
|
__decorateClass([
|
|
10491
|
-
|
|
10492
|
-
|
|
10518
|
+
IsOptional79(),
|
|
10519
|
+
IsString80()
|
|
10493
10520
|
], CheckResumeEligibilityDto.prototype, "userId", 2);
|
|
10494
10521
|
|
|
10495
10522
|
// src/modules/senseloaf/dto/ai-interview-template-generation.dto.ts
|
|
10496
|
-
import { IsNotEmpty as
|
|
10523
|
+
import { IsNotEmpty as IsNotEmpty115, IsString as IsString81, IsOptional as IsOptional80, IsArray as IsArray26, IsNumber as IsNumber34 } from "class-validator";
|
|
10497
10524
|
var AiInterviewTemplateGenerationDto = class {
|
|
10498
10525
|
};
|
|
10499
10526
|
__decorateClass([
|
|
10500
|
-
|
|
10501
|
-
|
|
10527
|
+
IsNotEmpty115({ message: "Job ID is required" }),
|
|
10528
|
+
IsString81({ message: "Job ID must be a string" })
|
|
10502
10529
|
], AiInterviewTemplateGenerationDto.prototype, "jobId", 2);
|
|
10503
10530
|
__decorateClass([
|
|
10504
|
-
|
|
10505
|
-
|
|
10506
|
-
|
|
10531
|
+
IsOptional80(),
|
|
10532
|
+
IsArray26(),
|
|
10533
|
+
IsString81({ each: true, message: "Each skill must be a string" })
|
|
10507
10534
|
], AiInterviewTemplateGenerationDto.prototype, "skills", 2);
|
|
10508
10535
|
__decorateClass([
|
|
10509
|
-
|
|
10536
|
+
IsOptional80(),
|
|
10510
10537
|
IsNumber34({}, { message: "Number of questions must be a number" })
|
|
10511
10538
|
], AiInterviewTemplateGenerationDto.prototype, "numberOfQuestions", 2);
|
|
10512
10539
|
__decorateClass([
|
|
10513
|
-
|
|
10514
|
-
|
|
10540
|
+
IsOptional80(),
|
|
10541
|
+
IsString81()
|
|
10515
10542
|
], AiInterviewTemplateGenerationDto.prototype, "difficulty", 2);
|
|
10516
10543
|
|
|
10517
10544
|
// src/modules/senseloaf/dto/ai-interview-link-generation.dto.ts
|
|
10518
|
-
import { IsNotEmpty as
|
|
10545
|
+
import { IsNotEmpty as IsNotEmpty116, IsString as IsString82, IsOptional as IsOptional81, IsNumber as IsNumber35 } from "class-validator";
|
|
10519
10546
|
var AiInterviewLinkGenerationDto = class {
|
|
10520
10547
|
};
|
|
10521
10548
|
__decorateClass([
|
|
10522
|
-
|
|
10523
|
-
|
|
10549
|
+
IsNotEmpty116({ message: "Template ID is required" }),
|
|
10550
|
+
IsString82({ message: "Template ID must be a string" })
|
|
10524
10551
|
], AiInterviewLinkGenerationDto.prototype, "templateId", 2);
|
|
10525
10552
|
__decorateClass([
|
|
10526
|
-
|
|
10527
|
-
|
|
10553
|
+
IsNotEmpty116({ message: "Freelancer ID is required" }),
|
|
10554
|
+
IsString82({ message: "Freelancer ID must be a string" })
|
|
10528
10555
|
], AiInterviewLinkGenerationDto.prototype, "freelancerId", 2);
|
|
10529
10556
|
__decorateClass([
|
|
10530
|
-
|
|
10531
|
-
|
|
10557
|
+
IsOptional81(),
|
|
10558
|
+
IsString82()
|
|
10532
10559
|
], AiInterviewLinkGenerationDto.prototype, "jobId", 2);
|
|
10533
10560
|
__decorateClass([
|
|
10534
|
-
|
|
10561
|
+
IsOptional81(),
|
|
10535
10562
|
IsNumber35({}, { message: "Expiry hours must be a number" })
|
|
10536
10563
|
], AiInterviewLinkGenerationDto.prototype, "expiryHours", 2);
|
|
10537
10564
|
|
|
10538
10565
|
// src/modules/senseloaf/dto/ai-assessment-creation.dto.ts
|
|
10539
|
-
import { IsNotEmpty as
|
|
10566
|
+
import { IsNotEmpty as IsNotEmpty117, IsString as IsString83, IsOptional as IsOptional82, IsNumber as IsNumber36 } from "class-validator";
|
|
10540
10567
|
var AiAssessmentCreationDto = class {
|
|
10541
10568
|
};
|
|
10542
10569
|
__decorateClass([
|
|
10543
|
-
|
|
10544
|
-
|
|
10570
|
+
IsNotEmpty117({ message: "User ID is required" }),
|
|
10571
|
+
IsString83({ message: "User ID must be a string" })
|
|
10545
10572
|
], AiAssessmentCreationDto.prototype, "userId", 2);
|
|
10546
10573
|
__decorateClass([
|
|
10547
|
-
|
|
10548
|
-
|
|
10574
|
+
IsOptional82(),
|
|
10575
|
+
IsString83()
|
|
10549
10576
|
], AiAssessmentCreationDto.prototype, "assessmentType", 2);
|
|
10550
10577
|
__decorateClass([
|
|
10551
|
-
|
|
10578
|
+
IsOptional82(),
|
|
10552
10579
|
IsNumber36({}, { message: "Number of questions must be a number" })
|
|
10553
10580
|
], AiAssessmentCreationDto.prototype, "numberOfQuestions", 2);
|
|
10554
10581
|
__decorateClass([
|
|
10555
|
-
|
|
10556
|
-
|
|
10582
|
+
IsOptional82(),
|
|
10583
|
+
IsString83()
|
|
10557
10584
|
], AiAssessmentCreationDto.prototype, "difficulty", 2);
|
|
10558
10585
|
|
|
10559
10586
|
// src/modules/commission/pattern/pattern.ts
|
|
@@ -10569,7 +10596,7 @@ var HIRING_PATTERN = {
|
|
|
10569
10596
|
};
|
|
10570
10597
|
|
|
10571
10598
|
// src/modules/hiring/dto/create-hiring.dto.ts
|
|
10572
|
-
import { IsEnum as IsEnum42, IsNotEmpty as
|
|
10599
|
+
import { IsEnum as IsEnum42, IsNotEmpty as IsNotEmpty118, IsNumber as IsNumber37 } from "class-validator";
|
|
10573
10600
|
var PreferredEngagementTypeEnum2 = /* @__PURE__ */ ((PreferredEngagementTypeEnum3) => {
|
|
10574
10601
|
PreferredEngagementTypeEnum3["FTE"] = "FTE";
|
|
10575
10602
|
PreferredEngagementTypeEnum3["FREELANCE"] = "FREELANCE";
|
|
@@ -10578,15 +10605,15 @@ var PreferredEngagementTypeEnum2 = /* @__PURE__ */ ((PreferredEngagementTypeEnum
|
|
|
10578
10605
|
var CreateHiringDto = class {
|
|
10579
10606
|
};
|
|
10580
10607
|
__decorateClass([
|
|
10581
|
-
|
|
10608
|
+
IsNotEmpty118({ message: "Freelancer ID is required" }),
|
|
10582
10609
|
IsNumber37({}, { message: "Freelancer ID must be a number" })
|
|
10583
10610
|
], CreateHiringDto.prototype, "freelancerId", 2);
|
|
10584
10611
|
__decorateClass([
|
|
10585
|
-
|
|
10612
|
+
IsNotEmpty118({ message: "Job ID is required" }),
|
|
10586
10613
|
IsNumber37({}, { message: "Job ID must be a number" })
|
|
10587
10614
|
], CreateHiringDto.prototype, "jobId", 2);
|
|
10588
10615
|
__decorateClass([
|
|
10589
|
-
|
|
10616
|
+
IsNotEmpty118({ message: "Preferred engagement type is required" }),
|
|
10590
10617
|
IsEnum42(PreferredEngagementTypeEnum2, {
|
|
10591
10618
|
message: "Preferred engagement type must be one of FTE or FREELANCE."
|
|
10592
10619
|
})
|
|
@@ -10610,16 +10637,16 @@ var SIGNATURE_PATTERN = {
|
|
|
10610
10637
|
};
|
|
10611
10638
|
|
|
10612
10639
|
// src/modules/user/signature/dto/save-signature.dto.ts
|
|
10613
|
-
import { IsOptional as
|
|
10640
|
+
import { IsOptional as IsOptional83, IsString as IsString84 } from "class-validator";
|
|
10614
10641
|
var SaveSignatureDto = class {
|
|
10615
10642
|
};
|
|
10616
10643
|
__decorateClass([
|
|
10617
|
-
|
|
10618
|
-
|
|
10644
|
+
IsOptional83(),
|
|
10645
|
+
IsString84()
|
|
10619
10646
|
], SaveSignatureDto.prototype, "signatureType", 2);
|
|
10620
10647
|
__decorateClass([
|
|
10621
|
-
|
|
10622
|
-
|
|
10648
|
+
IsOptional83(),
|
|
10649
|
+
IsString84()
|
|
10623
10650
|
], SaveSignatureDto.prototype, "description", 2);
|
|
10624
10651
|
|
|
10625
10652
|
// src/modules/wallet/pattern/pattern.ts
|
|
@@ -10637,25 +10664,25 @@ var WALLET_ADMIN_PATTERN = {
|
|
|
10637
10664
|
};
|
|
10638
10665
|
|
|
10639
10666
|
// src/modules/wallet/dto/add-topup-escrow-amount.dto.ts
|
|
10640
|
-
import { IsNotEmpty as
|
|
10667
|
+
import { IsNotEmpty as IsNotEmpty119, IsNumber as IsNumber38, IsUUID as IsUUID29 } from "class-validator";
|
|
10641
10668
|
var AddTopupEscrowAmountDto = class {
|
|
10642
10669
|
};
|
|
10643
10670
|
__decorateClass([
|
|
10644
|
-
|
|
10671
|
+
IsNotEmpty119({ message: "Amount is required" }),
|
|
10645
10672
|
IsNumber38({}, { message: "Amount must be a number" })
|
|
10646
10673
|
], AddTopupEscrowAmountDto.prototype, "amount", 2);
|
|
10647
10674
|
__decorateClass([
|
|
10648
|
-
|
|
10675
|
+
IsNotEmpty119({ message: "Escrow wallet UUID is required" }),
|
|
10649
10676
|
IsUUID29("4", { message: "Escrow wallet UUID must be a valid UUID" })
|
|
10650
10677
|
], AddTopupEscrowAmountDto.prototype, "escrowWalletUuid", 2);
|
|
10651
10678
|
|
|
10652
10679
|
// src/modules/wallet/dto/debit-commission-fte-hiring.dto.ts
|
|
10653
|
-
import { IsNotEmpty as
|
|
10680
|
+
import { IsNotEmpty as IsNotEmpty120, IsUUID as IsUUID30 } from "class-validator";
|
|
10654
10681
|
var DebitCommissionFteHiringDto = class {
|
|
10655
10682
|
};
|
|
10656
10683
|
__decorateClass([
|
|
10657
10684
|
IsUUID30("4", { message: "Invoice UUID must be a valid UUID." }),
|
|
10658
|
-
|
|
10685
|
+
IsNotEmpty120({ message: "Invoice UUID is required." })
|
|
10659
10686
|
], DebitCommissionFteHiringDto.prototype, "invoiceUuid", 2);
|
|
10660
10687
|
|
|
10661
10688
|
// src/modules/discord/discord-alert.interface.ts
|
|
@@ -12783,6 +12810,7 @@ export {
|
|
|
12783
12810
|
AccountType3 as AccountType,
|
|
12784
12811
|
AddTopupEscrowAmountDto,
|
|
12785
12812
|
AdminCreateJobInformationDto,
|
|
12813
|
+
AdminExportClientV2OptimisedDto,
|
|
12786
12814
|
AdminExportFreelancerV2OptimisedDto,
|
|
12787
12815
|
AdminJobBasicInformationV2Dto,
|
|
12788
12816
|
AdminPermission,
|
|
@@ -13013,6 +13041,7 @@ export {
|
|
|
13013
13041
|
LLM_PATTERN,
|
|
13014
13042
|
Lead,
|
|
13015
13043
|
LoginDto,
|
|
13044
|
+
LoginUsingUuidDTO,
|
|
13016
13045
|
LoginViaOtpDto,
|
|
13017
13046
|
LogoutDto,
|
|
13018
13047
|
MAINTENANCE_PATTERN,
|