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