@experts_hub/shared 1.0.644 → 1.0.646
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 +26 -2
- package/dist/index.d.ts +26 -2
- package/dist/index.js +1513 -1455
- package/dist/index.mjs +678 -624
- package/dist/modules/authentication/dto/index.d.ts +1 -0
- package/dist/modules/authentication/dto/reset-password-by-admin.dto.d.ts +4 -0
- package/dist/modules/authentication/pattern/pattern.d.ts +1 -0
- package/dist/modules/client-admin/dto/index.d.ts +2 -0
- package/dist/modules/client-admin/dto/skip-service-agreement-flow.dto.d.ts +3 -0
- package/dist/modules/client-admin/dto/update-admin-client-job-posting-restriction.dto.d.ts +3 -0
- package/dist/modules/client-admin/dto/update-client-status.dto.d.ts +2 -1
- package/dist/modules/client-admin/pattern/pattern.d.ts +2 -0
- package/dist/modules/freelancer-admin/dto/index.d.ts +1 -0
- package/dist/modules/freelancer-admin/dto/update-admin-freelancer-account-status.dto.d.ts +4 -0
- package/dist/modules/freelancer-admin/pattern/pattern.d.ts +2 -0
- package/dist/modules/job-admin/pattern/pattern.d.ts +1 -0
- package/dist/modules/notification/pattern/pattern.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -34,7 +34,8 @@ var AUTHENTICATION_PATTERN = {
|
|
|
34
34
|
signUpWithGoogle: "signup.with.google",
|
|
35
35
|
loginWithGoogle: "login.with.google",
|
|
36
36
|
validateOnboardingToken: "validate.onboarding.token",
|
|
37
|
-
loginUsingUuid: "login.using.uuid"
|
|
37
|
+
loginUsingUuid: "login.using.uuid",
|
|
38
|
+
handleUserResetPasswordByAdmin: "handle.user.reset.password.by.admin"
|
|
38
39
|
};
|
|
39
40
|
|
|
40
41
|
// src/modules/authentication/dto/login.dto.ts
|
|
@@ -290,6 +291,20 @@ __decorateClass([
|
|
|
290
291
|
IsString3({ message: "uuid must be a string." })
|
|
291
292
|
], LoginUsingUuidDTO.prototype, "uuid", 2);
|
|
292
293
|
|
|
294
|
+
// src/modules/authentication/dto/reset-password-by-admin.dto.ts
|
|
295
|
+
import { IsNotEmpty as IsNotEmpty13, IsString as IsString4, IsUUID, MinLength as MinLength3 } from "class-validator";
|
|
296
|
+
var ResetUserPasswordByAdminDto = class {
|
|
297
|
+
};
|
|
298
|
+
__decorateClass([
|
|
299
|
+
IsNotEmpty13({ message: "User UUID is required." }),
|
|
300
|
+
IsUUID("4", { message: "User UUID must be a valid UUID." })
|
|
301
|
+
], ResetUserPasswordByAdminDto.prototype, "uuid", 2);
|
|
302
|
+
__decorateClass([
|
|
303
|
+
IsNotEmpty13({ message: "Password is required." }),
|
|
304
|
+
IsString4({ message: "Password must be a string." }),
|
|
305
|
+
MinLength3(6, { message: "Password must be at least 6 characters long." })
|
|
306
|
+
], ResetUserPasswordByAdminDto.prototype, "password", 2);
|
|
307
|
+
|
|
293
308
|
// src/modules/otp/pattern/pattern.ts
|
|
294
309
|
var OTP_PATTERN = {
|
|
295
310
|
handleSendGuestOtp: "handle.send.guest.otp",
|
|
@@ -300,7 +315,7 @@ var OTP_PATTERN = {
|
|
|
300
315
|
};
|
|
301
316
|
|
|
302
317
|
// src/modules/otp/dto/send-guest-otp.dto.ts
|
|
303
|
-
import { IsEnum as IsEnum9, IsNotEmpty as
|
|
318
|
+
import { IsEnum as IsEnum9, IsNotEmpty as IsNotEmpty14, IsOptional as IsOptional3, IsString as IsString5 } from "class-validator";
|
|
304
319
|
var SendGuestOtpPurposeEnum = /* @__PURE__ */ ((SendGuestOtpPurposeEnum2) => {
|
|
305
320
|
SendGuestOtpPurposeEnum2["ACCOUNT_VERIFICATION"] = "ACCOUNT_VERIFICATION";
|
|
306
321
|
return SendGuestOtpPurposeEnum2;
|
|
@@ -313,28 +328,28 @@ var SendGuestOtpScopeEnum = /* @__PURE__ */ ((SendGuestOtpScopeEnum2) => {
|
|
|
313
328
|
var SendGuestOtpDto = class {
|
|
314
329
|
};
|
|
315
330
|
__decorateClass([
|
|
316
|
-
|
|
317
|
-
|
|
331
|
+
IsNotEmpty14({ message: "Please enter full name." }),
|
|
332
|
+
IsString5({ message: "Please enter valid full name." })
|
|
318
333
|
], SendGuestOtpDto.prototype, "fullName", 2);
|
|
319
334
|
__decorateClass([
|
|
320
|
-
|
|
321
|
-
|
|
335
|
+
IsNotEmpty14({ message: "Please enter target." }),
|
|
336
|
+
IsString5({ message: "Please enter valid target." })
|
|
322
337
|
], SendGuestOtpDto.prototype, "target", 2);
|
|
323
338
|
__decorateClass([
|
|
324
339
|
IsOptional3(),
|
|
325
|
-
|
|
340
|
+
IsString5({ message: "Please enter valid fallback target." })
|
|
326
341
|
], SendGuestOtpDto.prototype, "fallbackTarget", 2);
|
|
327
342
|
__decorateClass([
|
|
328
|
-
|
|
343
|
+
IsNotEmpty14({ message: "Please enter OTP purpose." }),
|
|
329
344
|
IsEnum9(SendGuestOtpPurposeEnum, { message: "Purpose must be a valid OTP purpose" })
|
|
330
345
|
], SendGuestOtpDto.prototype, "purpose", 2);
|
|
331
346
|
__decorateClass([
|
|
332
|
-
|
|
347
|
+
IsNotEmpty14({ message: "Please enter scope." }),
|
|
333
348
|
IsEnum9(SendGuestOtpScopeEnum, { message: "scope must be a valid" })
|
|
334
349
|
], SendGuestOtpDto.prototype, "scope", 2);
|
|
335
350
|
|
|
336
351
|
// src/modules/otp/dto/send-login-otp.dto.ts
|
|
337
|
-
import { IsEnum as IsEnum10, IsNotEmpty as
|
|
352
|
+
import { IsEnum as IsEnum10, IsNotEmpty as IsNotEmpty15, IsString as IsString6 } from "class-validator";
|
|
338
353
|
var SendLoginOtpPurposeEnum = /* @__PURE__ */ ((SendLoginOtpPurposeEnum2) => {
|
|
339
354
|
SendLoginOtpPurposeEnum2["ACCOUNT_VERIFICATION"] = "ACCOUNT_VERIFICATION";
|
|
340
355
|
return SendLoginOtpPurposeEnum2;
|
|
@@ -347,20 +362,20 @@ var SendLoginOtpScopeEnum = /* @__PURE__ */ ((SendLoginOtpScopeEnum2) => {
|
|
|
347
362
|
var SendLoginOtpDto = class {
|
|
348
363
|
};
|
|
349
364
|
__decorateClass([
|
|
350
|
-
|
|
351
|
-
|
|
365
|
+
IsNotEmpty15({ message: "Please enter target." }),
|
|
366
|
+
IsString6({ message: "Please enter valid target." })
|
|
352
367
|
], SendLoginOtpDto.prototype, "target", 2);
|
|
353
368
|
__decorateClass([
|
|
354
|
-
|
|
369
|
+
IsNotEmpty15({ message: "Please enter OTP purpose." }),
|
|
355
370
|
IsEnum10(SendLoginOtpPurposeEnum, { message: "Purpose must be a valid OTP purpose" })
|
|
356
371
|
], SendLoginOtpDto.prototype, "purpose", 2);
|
|
357
372
|
__decorateClass([
|
|
358
|
-
|
|
373
|
+
IsNotEmpty15({ message: "Please enter scope." }),
|
|
359
374
|
IsEnum10(SendLoginOtpScopeEnum, { message: "scope must be a valid" })
|
|
360
375
|
], SendLoginOtpDto.prototype, "scope", 2);
|
|
361
376
|
|
|
362
377
|
// src/modules/otp/dto/verify-guest-otp.dto.ts
|
|
363
|
-
import { IsEnum as IsEnum11, IsNotEmpty as
|
|
378
|
+
import { IsEnum as IsEnum11, IsNotEmpty as IsNotEmpty16, IsString as IsString7, Length } from "class-validator";
|
|
364
379
|
var VerifyGuestOtpPurposeEnum = /* @__PURE__ */ ((VerifyGuestOtpPurposeEnum2) => {
|
|
365
380
|
VerifyGuestOtpPurposeEnum2["ACCOUNT_VERIFICATION"] = "ACCOUNT_VERIFICATION";
|
|
366
381
|
return VerifyGuestOtpPurposeEnum2;
|
|
@@ -368,49 +383,49 @@ var VerifyGuestOtpPurposeEnum = /* @__PURE__ */ ((VerifyGuestOtpPurposeEnum2) =>
|
|
|
368
383
|
var VerifyGuestOtpDto = class {
|
|
369
384
|
};
|
|
370
385
|
__decorateClass([
|
|
371
|
-
|
|
372
|
-
|
|
386
|
+
IsNotEmpty16({ message: "Please enter target." }),
|
|
387
|
+
IsString7({ message: "Please enter valid target." })
|
|
373
388
|
], VerifyGuestOtpDto.prototype, "target", 2);
|
|
374
389
|
__decorateClass([
|
|
375
|
-
|
|
376
|
-
|
|
390
|
+
IsNotEmpty16({ message: "Please enter otp." }),
|
|
391
|
+
IsString7({ message: "Please enter valid otp." }),
|
|
377
392
|
Length(4, 6, { message: "OTP must be between 4 and 6 characters" })
|
|
378
393
|
], VerifyGuestOtpDto.prototype, "otp", 2);
|
|
379
394
|
__decorateClass([
|
|
380
|
-
|
|
395
|
+
IsNotEmpty16({ message: "Please enter OTP purpose." }),
|
|
381
396
|
IsEnum11(VerifyGuestOtpPurposeEnum, {
|
|
382
397
|
message: "Purpose must be a valid OTP purpose"
|
|
383
398
|
})
|
|
384
399
|
], VerifyGuestOtpDto.prototype, "purpose", 2);
|
|
385
400
|
|
|
386
401
|
// src/modules/otp/dto/send-otp.dto.ts
|
|
387
|
-
import { IsNotEmpty as
|
|
402
|
+
import { IsNotEmpty as IsNotEmpty17, IsString as IsString8, IsOptional as IsOptional5, IsUUID as IsUUID2 } from "class-validator";
|
|
388
403
|
var SendOtpDto = class {
|
|
389
404
|
};
|
|
390
405
|
__decorateClass([
|
|
391
|
-
|
|
392
|
-
|
|
406
|
+
IsUUID2("4", { message: "User ID must be a valid UUID." }),
|
|
407
|
+
IsNotEmpty17({ message: "User ID is required." })
|
|
393
408
|
], SendOtpDto.prototype, "userId", 2);
|
|
394
409
|
__decorateClass([
|
|
395
410
|
IsOptional5(),
|
|
396
|
-
|
|
411
|
+
IsString8({ message: "Purpose must be a string." })
|
|
397
412
|
], SendOtpDto.prototype, "purpose", 2);
|
|
398
413
|
|
|
399
414
|
// src/modules/otp/dto/verify-otp.dto.ts
|
|
400
|
-
import { IsNotEmpty as
|
|
415
|
+
import { IsNotEmpty as IsNotEmpty18, IsString as IsString9, IsOptional as IsOptional6, IsUUID as IsUUID3 } from "class-validator";
|
|
401
416
|
var VerifyOtpDto = class {
|
|
402
417
|
};
|
|
403
418
|
__decorateClass([
|
|
404
|
-
|
|
405
|
-
|
|
419
|
+
IsUUID3("4", { message: "User ID must be a valid UUID." }),
|
|
420
|
+
IsNotEmpty18({ message: "User ID is required." })
|
|
406
421
|
], VerifyOtpDto.prototype, "userId", 2);
|
|
407
422
|
__decorateClass([
|
|
408
|
-
|
|
409
|
-
|
|
423
|
+
IsNotEmpty18({ message: "OTP code is required." }),
|
|
424
|
+
IsString9({ message: "OTP code must be a string." })
|
|
410
425
|
], VerifyOtpDto.prototype, "otp", 2);
|
|
411
426
|
__decorateClass([
|
|
412
427
|
IsOptional6(),
|
|
413
|
-
|
|
428
|
+
IsString9({ message: "Purpose must be a string." })
|
|
414
429
|
], VerifyOtpDto.prototype, "purpose", 2);
|
|
415
430
|
|
|
416
431
|
// src/modules/onboarding/pattern/pattern.ts
|
|
@@ -439,10 +454,10 @@ var ONBOARDING_PATTERN = {
|
|
|
439
454
|
|
|
440
455
|
// src/modules/onboarding/dto/freelancer-create-account.dto.ts
|
|
441
456
|
import {
|
|
442
|
-
IsNotEmpty as
|
|
457
|
+
IsNotEmpty as IsNotEmpty19,
|
|
443
458
|
IsEmail as IsEmail4,
|
|
444
459
|
Matches as Matches3,
|
|
445
|
-
IsString as
|
|
460
|
+
IsString as IsString10,
|
|
446
461
|
IsOptional as IsOptional7
|
|
447
462
|
} from "class-validator";
|
|
448
463
|
|
|
@@ -619,123 +634,123 @@ function IsBusinessEmail(validationOptions) {
|
|
|
619
634
|
var FreelancerCreateAccountDto = class {
|
|
620
635
|
};
|
|
621
636
|
__decorateClass([
|
|
622
|
-
|
|
623
|
-
|
|
637
|
+
IsNotEmpty19({ message: "Please enter full name." }),
|
|
638
|
+
IsString10({ message: "Please enter valid full name." })
|
|
624
639
|
], FreelancerCreateAccountDto.prototype, "fullName", 2);
|
|
625
640
|
__decorateClass([
|
|
626
|
-
|
|
641
|
+
IsNotEmpty19({ message: "Please enter email." }),
|
|
627
642
|
IsEmail4()
|
|
628
643
|
], FreelancerCreateAccountDto.prototype, "email", 2);
|
|
629
644
|
__decorateClass([
|
|
630
|
-
|
|
645
|
+
IsNotEmpty19({ message: "Please enter mobile code." }),
|
|
631
646
|
Matches3(/^\+\d{1,4}$/, {
|
|
632
647
|
message: "Please enter a valid country mobile code (e.g., +91, +1, +44)."
|
|
633
648
|
})
|
|
634
649
|
], FreelancerCreateAccountDto.prototype, "mobileCode", 2);
|
|
635
650
|
__decorateClass([
|
|
636
|
-
|
|
651
|
+
IsNotEmpty19({ message: "Please enter mobile number." }),
|
|
637
652
|
IsValidMobileNumber({ message: "Mobile number is not valid for the selected country code." })
|
|
638
653
|
], FreelancerCreateAccountDto.prototype, "mobile", 2);
|
|
639
654
|
__decorateClass([
|
|
640
|
-
|
|
655
|
+
IsNotEmpty19({ message: "Please enter country iso code." })
|
|
641
656
|
], FreelancerCreateAccountDto.prototype, "countryISOCode", 2);
|
|
642
657
|
__decorateClass([
|
|
643
658
|
IsOptional7()
|
|
644
659
|
], FreelancerCreateAccountDto.prototype, "onBoardedBy", 2);
|
|
645
660
|
|
|
646
661
|
// src/modules/onboarding/dto/freelancer-upload-resume.dto.ts
|
|
647
|
-
import { IsUUID as
|
|
662
|
+
import { IsUUID as IsUUID4, IsNotEmpty as IsNotEmpty20 } from "class-validator";
|
|
648
663
|
var FreelancerUploadResumeDto = class {
|
|
649
664
|
};
|
|
650
665
|
__decorateClass([
|
|
651
|
-
|
|
652
|
-
|
|
666
|
+
IsNotEmpty20({ message: "Please enter uuid." }),
|
|
667
|
+
IsUUID4()
|
|
653
668
|
], FreelancerUploadResumeDto.prototype, "uuid", 2);
|
|
654
669
|
|
|
655
670
|
// src/modules/onboarding/dto/freelancer-parse-resume.dto.ts
|
|
656
|
-
import { IsUUID as
|
|
671
|
+
import { IsUUID as IsUUID5, IsNotEmpty as IsNotEmpty21 } from "class-validator";
|
|
657
672
|
var FreelancerParseResumeDto = class {
|
|
658
673
|
};
|
|
659
674
|
__decorateClass([
|
|
660
|
-
|
|
661
|
-
|
|
675
|
+
IsNotEmpty21({ message: "Please enter uuid." }),
|
|
676
|
+
IsUUID5()
|
|
662
677
|
], FreelancerParseResumeDto.prototype, "uuid", 2);
|
|
663
678
|
|
|
664
679
|
// src/modules/onboarding/dto/freelancer-initiate-mcq-assessment.dto.ts
|
|
665
|
-
import { IsUUID as
|
|
680
|
+
import { IsUUID as IsUUID6, IsNotEmpty as IsNotEmpty22 } from "class-validator";
|
|
666
681
|
var FreelancerInitiateMcqAssessmentDto = class {
|
|
667
682
|
};
|
|
668
683
|
__decorateClass([
|
|
669
|
-
|
|
670
|
-
|
|
684
|
+
IsNotEmpty22({ message: "Please enter uuid." }),
|
|
685
|
+
IsUUID6()
|
|
671
686
|
], FreelancerInitiateMcqAssessmentDto.prototype, "uuid", 2);
|
|
672
687
|
|
|
673
688
|
// src/modules/onboarding/dto/freelancer-skip-ai-assessment.dto.ts
|
|
674
|
-
import { IsUUID as
|
|
689
|
+
import { IsUUID as IsUUID7, IsNotEmpty as IsNotEmpty23 } from "class-validator";
|
|
675
690
|
var FreelancerSkipAiAssessmentDto = class {
|
|
676
691
|
};
|
|
677
692
|
__decorateClass([
|
|
678
|
-
|
|
679
|
-
|
|
693
|
+
IsNotEmpty23({ message: "Please enter uuid." }),
|
|
694
|
+
IsUUID7()
|
|
680
695
|
], FreelancerSkipAiAssessmentDto.prototype, "uuid", 2);
|
|
681
696
|
|
|
682
697
|
// src/modules/onboarding/dto/freelancer-initiate-ai-assessment.dto.ts
|
|
683
|
-
import { IsUUID as
|
|
698
|
+
import { IsUUID as IsUUID8, IsNotEmpty as IsNotEmpty24 } from "class-validator";
|
|
684
699
|
var FreelancerInitiateAiAssessmentDto = class {
|
|
685
700
|
};
|
|
686
701
|
__decorateClass([
|
|
687
|
-
|
|
688
|
-
|
|
702
|
+
IsNotEmpty24({ message: "Please enter uuid." }),
|
|
703
|
+
IsUUID8()
|
|
689
704
|
], FreelancerInitiateAiAssessmentDto.prototype, "uuid", 2);
|
|
690
705
|
|
|
691
706
|
// src/modules/onboarding/dto/freelancer-capture-ai-assessment-status.dto.ts
|
|
692
|
-
import { IsUUID as
|
|
707
|
+
import { IsUUID as IsUUID9, IsNotEmpty as IsNotEmpty25, IsOptional as IsOptional8 } from "class-validator";
|
|
693
708
|
var FreelancerCaptureAiAssessmentStatusDto = class {
|
|
694
709
|
};
|
|
695
710
|
__decorateClass([
|
|
696
|
-
|
|
697
|
-
|
|
711
|
+
IsNotEmpty25({ message: "Please enter uuid." }),
|
|
712
|
+
IsUUID9()
|
|
698
713
|
], FreelancerCaptureAiAssessmentStatusDto.prototype, "uuid", 2);
|
|
699
714
|
__decorateClass([
|
|
700
|
-
|
|
715
|
+
IsNotEmpty25({ message: "Please enter assessment id." })
|
|
701
716
|
], FreelancerCaptureAiAssessmentStatusDto.prototype, "assessmentId", 2);
|
|
702
717
|
__decorateClass([
|
|
703
|
-
|
|
718
|
+
IsNotEmpty25({ message: "Please enter assessment status." })
|
|
704
719
|
], FreelancerCaptureAiAssessmentStatusDto.prototype, "assessmentStatus", 2);
|
|
705
720
|
__decorateClass([
|
|
706
721
|
IsOptional8()
|
|
707
722
|
], FreelancerCaptureAiAssessmentStatusDto.prototype, "iframeEventData", 2);
|
|
708
723
|
|
|
709
724
|
// src/modules/onboarding/dto/freelancer-development-preference.dto.ts
|
|
710
|
-
import { IsUUID as
|
|
725
|
+
import { IsUUID as IsUUID10, IsNotEmpty as IsNotEmpty26, IsBoolean } from "class-validator";
|
|
711
726
|
var FreelancerDevelopmentPreferenceDto = class {
|
|
712
727
|
};
|
|
713
728
|
__decorateClass([
|
|
714
|
-
|
|
715
|
-
|
|
729
|
+
IsNotEmpty26({ message: "Please enter uuid." }),
|
|
730
|
+
IsUUID10()
|
|
716
731
|
], FreelancerDevelopmentPreferenceDto.prototype, "uuid", 2);
|
|
717
732
|
__decorateClass([
|
|
718
|
-
|
|
733
|
+
IsNotEmpty26({ message: "Please select development flag." }),
|
|
719
734
|
IsBoolean()
|
|
720
735
|
], FreelancerDevelopmentPreferenceDto.prototype, "developer", 2);
|
|
721
736
|
|
|
722
737
|
// src/modules/onboarding/dto/freelancer-profile-question.dto.ts
|
|
723
738
|
import {
|
|
724
|
-
IsUUID as
|
|
725
|
-
IsString as
|
|
726
|
-
IsNotEmpty as
|
|
739
|
+
IsUUID as IsUUID11,
|
|
740
|
+
IsString as IsString11,
|
|
741
|
+
IsNotEmpty as IsNotEmpty27,
|
|
727
742
|
IsIn,
|
|
728
743
|
IsOptional as IsOptional9
|
|
729
744
|
} from "class-validator";
|
|
730
745
|
var FreelancerProfileQuestionDto = class {
|
|
731
746
|
};
|
|
732
747
|
__decorateClass([
|
|
733
|
-
|
|
734
|
-
|
|
748
|
+
IsNotEmpty27({ message: "Please enter uuid." }),
|
|
749
|
+
IsUUID11()
|
|
735
750
|
], FreelancerProfileQuestionDto.prototype, "uuid", 2);
|
|
736
751
|
__decorateClass([
|
|
737
|
-
|
|
738
|
-
|
|
752
|
+
IsNotEmpty27({ message: "Please enter question slug." }),
|
|
753
|
+
IsString11(),
|
|
739
754
|
IsIn([
|
|
740
755
|
"natureOfWork",
|
|
741
756
|
"expectedHourlyCompensation",
|
|
@@ -745,7 +760,7 @@ __decorateClass([
|
|
|
745
760
|
])
|
|
746
761
|
], FreelancerProfileQuestionDto.prototype, "question_slug", 2);
|
|
747
762
|
__decorateClass([
|
|
748
|
-
|
|
763
|
+
IsNotEmpty27({ message: "Please enter answer." })
|
|
749
764
|
], FreelancerProfileQuestionDto.prototype, "answer", 2);
|
|
750
765
|
__decorateClass([
|
|
751
766
|
IsOptional9()
|
|
@@ -759,21 +774,21 @@ __decorateClass([
|
|
|
759
774
|
|
|
760
775
|
// src/modules/onboarding/dto/freelancer-work-showcase.dto.ts
|
|
761
776
|
import {
|
|
762
|
-
IsNotEmpty as
|
|
777
|
+
IsNotEmpty as IsNotEmpty28,
|
|
763
778
|
IsOptional as IsOptional10,
|
|
764
779
|
IsUrl,
|
|
765
|
-
IsString as
|
|
766
|
-
IsUUID as
|
|
780
|
+
IsString as IsString12,
|
|
781
|
+
IsUUID as IsUUID12
|
|
767
782
|
} from "class-validator";
|
|
768
783
|
var FreelancerWorkShowcaseDto = class {
|
|
769
784
|
};
|
|
770
785
|
__decorateClass([
|
|
771
|
-
|
|
772
|
-
|
|
786
|
+
IsNotEmpty28({ message: "Please enter uuid." }),
|
|
787
|
+
IsUUID12()
|
|
773
788
|
], FreelancerWorkShowcaseDto.prototype, "uuid", 2);
|
|
774
789
|
__decorateClass([
|
|
775
|
-
|
|
776
|
-
|
|
790
|
+
IsNotEmpty28({ message: "Please enter likedin profile url." }),
|
|
791
|
+
IsString12(),
|
|
777
792
|
IsUrl(
|
|
778
793
|
{ require_protocol: false },
|
|
779
794
|
{
|
|
@@ -820,9 +835,9 @@ __decorateClass([
|
|
|
820
835
|
|
|
821
836
|
// src/modules/onboarding/dto/client-profile-question.dto.ts
|
|
822
837
|
import {
|
|
823
|
-
IsUUID as
|
|
824
|
-
IsString as
|
|
825
|
-
IsNotEmpty as
|
|
838
|
+
IsUUID as IsUUID13,
|
|
839
|
+
IsString as IsString13,
|
|
840
|
+
IsNotEmpty as IsNotEmpty29,
|
|
826
841
|
IsIn as IsIn2,
|
|
827
842
|
ValidateIf,
|
|
828
843
|
IsOptional as IsOptional11
|
|
@@ -830,12 +845,12 @@ import {
|
|
|
830
845
|
var ClientProfileQuestionDto = class {
|
|
831
846
|
};
|
|
832
847
|
__decorateClass([
|
|
833
|
-
|
|
834
|
-
|
|
848
|
+
IsNotEmpty29({ message: "Please enter uuid." }),
|
|
849
|
+
IsUUID13()
|
|
835
850
|
], ClientProfileQuestionDto.prototype, "uuid", 2);
|
|
836
851
|
__decorateClass([
|
|
837
|
-
|
|
838
|
-
|
|
852
|
+
IsNotEmpty29({ message: "Please enter question slug." }),
|
|
853
|
+
IsString13(),
|
|
839
854
|
IsIn2([
|
|
840
855
|
"skills",
|
|
841
856
|
"requiredFreelancer",
|
|
@@ -845,50 +860,50 @@ __decorateClass([
|
|
|
845
860
|
])
|
|
846
861
|
], ClientProfileQuestionDto.prototype, "question_slug", 2);
|
|
847
862
|
__decorateClass([
|
|
848
|
-
|
|
863
|
+
IsNotEmpty29({ message: "Please enter answer." })
|
|
849
864
|
], ClientProfileQuestionDto.prototype, "answer", 2);
|
|
850
865
|
__decorateClass([
|
|
851
866
|
IsOptional11()
|
|
852
867
|
], ClientProfileQuestionDto.prototype, "numberOfHours", 2);
|
|
853
868
|
__decorateClass([
|
|
854
869
|
ValidateIf((o) => o.questionSlug === "foundUsOn" && o.answer === "OTHER"),
|
|
855
|
-
|
|
856
|
-
|
|
870
|
+
IsNotEmpty29({ message: "Please enter foundUsOnDetail if answer is OTHER." }),
|
|
871
|
+
IsString13()
|
|
857
872
|
], ClientProfileQuestionDto.prototype, "foundUsOnDetail", 2);
|
|
858
873
|
|
|
859
874
|
// src/modules/onboarding/dto/client-create-account.dto.ts
|
|
860
875
|
import {
|
|
861
|
-
IsNotEmpty as
|
|
876
|
+
IsNotEmpty as IsNotEmpty30,
|
|
862
877
|
IsEmail as IsEmail5,
|
|
863
|
-
IsString as
|
|
878
|
+
IsString as IsString14,
|
|
864
879
|
IsOptional as IsOptional12
|
|
865
880
|
} from "class-validator";
|
|
866
881
|
var ClientCreateAccountDto = class {
|
|
867
882
|
};
|
|
868
883
|
__decorateClass([
|
|
869
|
-
|
|
870
|
-
|
|
884
|
+
IsNotEmpty30({ message: "Please enter full name." }),
|
|
885
|
+
IsString14({ message: "Please enter valid full name." })
|
|
871
886
|
], ClientCreateAccountDto.prototype, "fullName", 2);
|
|
872
887
|
__decorateClass([
|
|
873
|
-
|
|
888
|
+
IsNotEmpty30({ message: "Please enter email." }),
|
|
874
889
|
IsEmail5(),
|
|
875
890
|
IsBusinessEmail()
|
|
876
891
|
], ClientCreateAccountDto.prototype, "email", 2);
|
|
877
892
|
__decorateClass([
|
|
878
|
-
|
|
879
|
-
|
|
893
|
+
IsNotEmpty30({ message: "Please enter company name." }),
|
|
894
|
+
IsString14({ message: "Please enter valid company name." })
|
|
880
895
|
], ClientCreateAccountDto.prototype, "companyName", 2);
|
|
881
896
|
__decorateClass([
|
|
882
897
|
IsOptional12()
|
|
883
898
|
], ClientCreateAccountDto.prototype, "onBoardedBy", 2);
|
|
884
899
|
|
|
885
900
|
// src/modules/onboarding/dto/verify-onboarding-token.dto.ts
|
|
886
|
-
import { IsNotEmpty as
|
|
901
|
+
import { IsNotEmpty as IsNotEmpty31, IsUUID as IsUUID14 } from "class-validator";
|
|
887
902
|
var VerifyOnboardingTokenDto = class {
|
|
888
903
|
};
|
|
889
904
|
__decorateClass([
|
|
890
|
-
|
|
891
|
-
|
|
905
|
+
IsUUID14("4", { message: "UUID must be a valid UUID." }),
|
|
906
|
+
IsNotEmpty31({ message: "UUID is required." })
|
|
892
907
|
], VerifyOnboardingTokenDto.prototype, "uuid", 2);
|
|
893
908
|
|
|
894
909
|
// src/modules/maintenance/pattern/pattern.ts
|
|
@@ -921,7 +936,7 @@ var SUBADMIN_PATTERN = {
|
|
|
921
936
|
|
|
922
937
|
// src/modules/user/subadmin/dto/create-subadmin.dto.ts
|
|
923
938
|
import {
|
|
924
|
-
IsNotEmpty as
|
|
939
|
+
IsNotEmpty as IsNotEmpty32,
|
|
925
940
|
IsEnum as IsEnum12
|
|
926
941
|
} from "class-validator";
|
|
927
942
|
var AccountType = /* @__PURE__ */ ((AccountType4) => {
|
|
@@ -932,34 +947,34 @@ var AccountType = /* @__PURE__ */ ((AccountType4) => {
|
|
|
932
947
|
var CreateSubAdminDto = class {
|
|
933
948
|
};
|
|
934
949
|
__decorateClass([
|
|
935
|
-
|
|
950
|
+
IsNotEmpty32({ message: "Please enter username." })
|
|
936
951
|
], CreateSubAdminDto.prototype, "userName", 2);
|
|
937
952
|
__decorateClass([
|
|
938
|
-
|
|
953
|
+
IsNotEmpty32({ message: "Please enter first name." })
|
|
939
954
|
], CreateSubAdminDto.prototype, "firstName", 2);
|
|
940
955
|
__decorateClass([
|
|
941
|
-
|
|
956
|
+
IsNotEmpty32({ message: "Please enter last name." })
|
|
942
957
|
], CreateSubAdminDto.prototype, "lastName", 2);
|
|
943
958
|
__decorateClass([
|
|
944
|
-
|
|
959
|
+
IsNotEmpty32({ message: "Please enter account type." }),
|
|
945
960
|
IsEnum12(AccountType, {
|
|
946
961
|
message: `Account type must be one of: ${Object.values(AccountType).join(", ")}`
|
|
947
962
|
})
|
|
948
963
|
], CreateSubAdminDto.prototype, "accountType", 2);
|
|
949
964
|
__decorateClass([
|
|
950
|
-
|
|
965
|
+
IsNotEmpty32({ message: "Please enter email." })
|
|
951
966
|
], CreateSubAdminDto.prototype, "email", 2);
|
|
952
967
|
__decorateClass([
|
|
953
|
-
|
|
968
|
+
IsNotEmpty32({ message: "Please enter mobile Code." })
|
|
954
969
|
], CreateSubAdminDto.prototype, "mobileCode", 2);
|
|
955
970
|
__decorateClass([
|
|
956
|
-
|
|
971
|
+
IsNotEmpty32({ message: "Please enter mobile number." })
|
|
957
972
|
], CreateSubAdminDto.prototype, "mobile", 2);
|
|
958
973
|
__decorateClass([
|
|
959
|
-
|
|
974
|
+
IsNotEmpty32({ message: "Please enter the password." })
|
|
960
975
|
], CreateSubAdminDto.prototype, "password", 2);
|
|
961
976
|
__decorateClass([
|
|
962
|
-
|
|
977
|
+
IsNotEmpty32({ message: "Please Select Roles." })
|
|
963
978
|
], CreateSubAdminDto.prototype, "roleIds", 2);
|
|
964
979
|
|
|
965
980
|
// src/modules/user/subadmin/dto/update-subadmin-account-status.dto.ts
|
|
@@ -6075,7 +6090,7 @@ __decorateClass([
|
|
|
6075
6090
|
|
|
6076
6091
|
// src/modules/user/subadmin/dto/update-subadmin.dto.ts
|
|
6077
6092
|
import { Transform } from "class-transformer";
|
|
6078
|
-
import { IsNotEmpty as
|
|
6093
|
+
import { IsNotEmpty as IsNotEmpty33, IsOptional as IsOptional13, Matches as Matches5, MaxLength as MaxLength5, MinLength as MinLength6, IsEnum as IsEnum14 } from "class-validator";
|
|
6079
6094
|
var AccountType3 = /* @__PURE__ */ ((AccountType4) => {
|
|
6080
6095
|
AccountType4["ADMIN"] = "ADMIN";
|
|
6081
6096
|
AccountType4["SUB_ADMIN"] = "SUB_ADMIN";
|
|
@@ -6084,40 +6099,40 @@ var AccountType3 = /* @__PURE__ */ ((AccountType4) => {
|
|
|
6084
6099
|
var UpdateSubAdminDto = class {
|
|
6085
6100
|
};
|
|
6086
6101
|
__decorateClass([
|
|
6087
|
-
|
|
6102
|
+
IsNotEmpty33({ message: "Please enter username." })
|
|
6088
6103
|
], UpdateSubAdminDto.prototype, "userName", 2);
|
|
6089
6104
|
__decorateClass([
|
|
6090
|
-
|
|
6105
|
+
IsNotEmpty33({ message: "Please enter first name." })
|
|
6091
6106
|
], UpdateSubAdminDto.prototype, "firstName", 2);
|
|
6092
6107
|
__decorateClass([
|
|
6093
|
-
|
|
6108
|
+
IsNotEmpty33({ message: "Please enter last name." })
|
|
6094
6109
|
], UpdateSubAdminDto.prototype, "lastName", 2);
|
|
6095
6110
|
__decorateClass([
|
|
6096
|
-
|
|
6111
|
+
IsNotEmpty33({ message: "Please enter account type." }),
|
|
6097
6112
|
IsEnum14(AccountType3, {
|
|
6098
6113
|
message: `Account type must be one of: ${Object.values(AccountType3).join(", ")}`
|
|
6099
6114
|
})
|
|
6100
6115
|
], UpdateSubAdminDto.prototype, "accountType", 2);
|
|
6101
6116
|
__decorateClass([
|
|
6102
|
-
|
|
6117
|
+
IsNotEmpty33({ message: "Please enter email." })
|
|
6103
6118
|
], UpdateSubAdminDto.prototype, "email", 2);
|
|
6104
6119
|
__decorateClass([
|
|
6105
|
-
|
|
6120
|
+
IsNotEmpty33({ message: "Please enter mobile Code." })
|
|
6106
6121
|
], UpdateSubAdminDto.prototype, "mobileCode", 2);
|
|
6107
6122
|
__decorateClass([
|
|
6108
|
-
|
|
6123
|
+
IsNotEmpty33({ message: "Please enter mobile number." })
|
|
6109
6124
|
], UpdateSubAdminDto.prototype, "mobile", 2);
|
|
6110
6125
|
__decorateClass([
|
|
6111
6126
|
IsOptional13(),
|
|
6112
6127
|
Transform(({ value }) => value === null || value === "" ? void 0 : value),
|
|
6113
|
-
|
|
6128
|
+
MinLength6(6, { message: "Password must be at least 6 characters." }),
|
|
6114
6129
|
MaxLength5(32, { message: "Password must not exceed 32 characters." }),
|
|
6115
6130
|
Matches5(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
6116
6131
|
message: "Password must include letters, numbers and symbols."
|
|
6117
6132
|
})
|
|
6118
6133
|
], UpdateSubAdminDto.prototype, "password", 2);
|
|
6119
6134
|
__decorateClass([
|
|
6120
|
-
|
|
6135
|
+
IsNotEmpty33({ message: "Please Select Roles." })
|
|
6121
6136
|
], UpdateSubAdminDto.prototype, "roleIds", 2);
|
|
6122
6137
|
|
|
6123
6138
|
// src/modules/user/client-profile/pattern/pattern.ts
|
|
@@ -6145,8 +6160,8 @@ var CLIENT_PROFILE_PATTERN = {
|
|
|
6145
6160
|
|
|
6146
6161
|
// src/modules/user/client-profile/dto/update-client-profile.dto.ts
|
|
6147
6162
|
import {
|
|
6148
|
-
IsString as
|
|
6149
|
-
IsNotEmpty as
|
|
6163
|
+
IsString as IsString15,
|
|
6164
|
+
IsNotEmpty as IsNotEmpty34,
|
|
6150
6165
|
IsEmail as IsEmail6,
|
|
6151
6166
|
Length as Length2,
|
|
6152
6167
|
IsUrl as IsUrl2,
|
|
@@ -6157,8 +6172,8 @@ import {
|
|
|
6157
6172
|
var UpdateCompanyProfileDto = class {
|
|
6158
6173
|
};
|
|
6159
6174
|
__decorateClass([
|
|
6160
|
-
|
|
6161
|
-
|
|
6175
|
+
IsNotEmpty34({ message: "Please enter company name." }),
|
|
6176
|
+
IsString15({ message: "Company name must be a string." }),
|
|
6162
6177
|
Length2(2, 255, {
|
|
6163
6178
|
message: "Company name must be between 2 and 255 characters"
|
|
6164
6179
|
})
|
|
@@ -6181,83 +6196,83 @@ __decorateClass([
|
|
|
6181
6196
|
IsNumber()
|
|
6182
6197
|
], UpdateCompanyProfileDto.prototype, "cityId", 2);
|
|
6183
6198
|
__decorateClass([
|
|
6184
|
-
|
|
6185
|
-
|
|
6199
|
+
IsNotEmpty34({ message: "Please enter company address." }),
|
|
6200
|
+
IsString15({ message: "Company address must be a string" }),
|
|
6186
6201
|
Length2(5, 1e3, { message: "Address must be between 5 and 1000 characters" })
|
|
6187
6202
|
], UpdateCompanyProfileDto.prototype, "companyAddress", 2);
|
|
6188
6203
|
__decorateClass([
|
|
6189
6204
|
IsOptional14(),
|
|
6190
|
-
|
|
6205
|
+
IsString15({ message: "Address line must be a string" })
|
|
6191
6206
|
], UpdateCompanyProfileDto.prototype, "addressLine", 2);
|
|
6192
6207
|
__decorateClass([
|
|
6193
|
-
|
|
6194
|
-
|
|
6208
|
+
IsNotEmpty34({ message: "Please enter postal code." }),
|
|
6209
|
+
IsString15({ message: "Postal Code must be a string" })
|
|
6195
6210
|
], UpdateCompanyProfileDto.prototype, "postalCode", 2);
|
|
6196
6211
|
__decorateClass([
|
|
6197
|
-
|
|
6198
|
-
|
|
6212
|
+
IsNotEmpty34({ message: "Please enter mobile code." }),
|
|
6213
|
+
IsString15({ message: "Mobile Code must be a string" })
|
|
6199
6214
|
], UpdateCompanyProfileDto.prototype, "mobileCode", 2);
|
|
6200
6215
|
// @Matches(/^(\+1\s?)?(\(?\d{3}\)?[\s.-]?)?\d{3}[\s.-]?\d{4}$/, {
|
|
6201
6216
|
// message: "Please enter a valid US phone number",
|
|
6202
6217
|
// })
|
|
6203
6218
|
__decorateClass([
|
|
6204
|
-
|
|
6205
|
-
|
|
6219
|
+
IsNotEmpty34({ message: "Please enter phone number." }),
|
|
6220
|
+
IsString15({ message: "Please enter valid phone number." })
|
|
6206
6221
|
], UpdateCompanyProfileDto.prototype, "phoneNumber", 2);
|
|
6207
6222
|
__decorateClass([
|
|
6208
|
-
|
|
6223
|
+
IsNotEmpty34({ message: "Please enter email." }),
|
|
6209
6224
|
IsEmail6()
|
|
6210
6225
|
], UpdateCompanyProfileDto.prototype, "email", 2);
|
|
6211
6226
|
__decorateClass([
|
|
6212
6227
|
IsOptional14(),
|
|
6213
|
-
|
|
6228
|
+
IsString15({ message: "About company must be a string." })
|
|
6214
6229
|
], UpdateCompanyProfileDto.prototype, "aboutCompany", 2);
|
|
6215
6230
|
|
|
6216
6231
|
// src/modules/user/client-profile/dto/client-change-password.dto.ts
|
|
6217
6232
|
import {
|
|
6218
|
-
IsString as
|
|
6219
|
-
MinLength as
|
|
6233
|
+
IsString as IsString16,
|
|
6234
|
+
MinLength as MinLength7,
|
|
6220
6235
|
Matches as Matches7,
|
|
6221
|
-
IsNotEmpty as
|
|
6236
|
+
IsNotEmpty as IsNotEmpty35
|
|
6222
6237
|
} from "class-validator";
|
|
6223
6238
|
var ClientChangePasswordDto = class {
|
|
6224
6239
|
};
|
|
6225
6240
|
__decorateClass([
|
|
6226
|
-
|
|
6227
|
-
|
|
6241
|
+
IsString16(),
|
|
6242
|
+
MinLength7(8, { message: "Password must be at least 8 characters long." }),
|
|
6228
6243
|
Matches7(/^(?=.*[A-Z])(?=.*\d).+$/, {
|
|
6229
6244
|
message: "Password must contain at least one uppercase letter and one number."
|
|
6230
6245
|
})
|
|
6231
6246
|
], ClientChangePasswordDto.prototype, "newPassword", 2);
|
|
6232
6247
|
__decorateClass([
|
|
6233
|
-
|
|
6248
|
+
IsNotEmpty35({ message: "Please enter confirm password." }),
|
|
6234
6249
|
Match("newPassword", { message: "Passwords do not match" })
|
|
6235
6250
|
], ClientChangePasswordDto.prototype, "confirmPassword", 2);
|
|
6236
6251
|
|
|
6237
6252
|
// src/modules/user/client-profile/dto/client-service-agreement-upload.dto.ts
|
|
6238
|
-
import { IsOptional as IsOptional15, IsString as
|
|
6253
|
+
import { IsOptional as IsOptional15, IsString as IsString17 } from "class-validator";
|
|
6239
6254
|
var ClientServiceAgreementUploadDto = class {
|
|
6240
6255
|
};
|
|
6241
6256
|
__decorateClass([
|
|
6242
6257
|
IsOptional15(),
|
|
6243
|
-
|
|
6258
|
+
IsString17()
|
|
6244
6259
|
], ClientServiceAgreementUploadDto.prototype, "serviceAgreementSignedOn", 2);
|
|
6245
6260
|
|
|
6246
6261
|
// src/modules/user/client-profile/dto/client-e-signature.dto.ts
|
|
6247
|
-
import { IsNotEmpty as
|
|
6262
|
+
import { IsNotEmpty as IsNotEmpty36, IsUUID as IsUUID15 } from "class-validator";
|
|
6248
6263
|
var ClientESignatureDto = class {
|
|
6249
6264
|
};
|
|
6250
6265
|
__decorateClass([
|
|
6251
|
-
|
|
6252
|
-
|
|
6266
|
+
IsUUID15("4", { message: "Client UUID must be a valid UUID." }),
|
|
6267
|
+
IsNotEmpty36({ message: "Client UUID is required." })
|
|
6253
6268
|
], ClientESignatureDto.prototype, "uuid", 2);
|
|
6254
6269
|
|
|
6255
6270
|
// src/modules/user/client-profile/dto/fetch-freelancer-info-for-chat.dto.ts
|
|
6256
|
-
import { IsNotEmpty as
|
|
6271
|
+
import { IsNotEmpty as IsNotEmpty37, IsNumber as IsNumber2 } from "class-validator";
|
|
6257
6272
|
var FetchFreelancerInfoForChatDto = class {
|
|
6258
6273
|
};
|
|
6259
6274
|
__decorateClass([
|
|
6260
|
-
|
|
6275
|
+
IsNotEmpty37({ message: "Freelancer ID is required" }),
|
|
6261
6276
|
IsNumber2({}, { message: "Freelancer ID must be a number" })
|
|
6262
6277
|
], FetchFreelancerInfoForChatDto.prototype, "freelancerId", 2);
|
|
6263
6278
|
|
|
@@ -6275,23 +6290,23 @@ var ASSESSMENT_QUESTION_PATTERN = {
|
|
|
6275
6290
|
|
|
6276
6291
|
// src/modules/question/dto/create-question.dto.ts
|
|
6277
6292
|
import {
|
|
6278
|
-
IsNotEmpty as
|
|
6293
|
+
IsNotEmpty as IsNotEmpty38,
|
|
6279
6294
|
IsOptional as IsOptional16,
|
|
6280
6295
|
IsBoolean as IsBoolean2
|
|
6281
6296
|
} from "class-validator";
|
|
6282
6297
|
var CreateQuestionDto = class {
|
|
6283
6298
|
};
|
|
6284
6299
|
__decorateClass([
|
|
6285
|
-
|
|
6300
|
+
IsNotEmpty38({ message: "Please enter unique id." })
|
|
6286
6301
|
], CreateQuestionDto.prototype, "questionId", 2);
|
|
6287
6302
|
__decorateClass([
|
|
6288
|
-
|
|
6303
|
+
IsNotEmpty38({ message: "Please enter question." })
|
|
6289
6304
|
], CreateQuestionDto.prototype, "question", 2);
|
|
6290
6305
|
__decorateClass([
|
|
6291
|
-
|
|
6306
|
+
IsNotEmpty38({ message: "Please enter for whom the question is." })
|
|
6292
6307
|
], CreateQuestionDto.prototype, "questionFor", 2);
|
|
6293
6308
|
__decorateClass([
|
|
6294
|
-
|
|
6309
|
+
IsNotEmpty38({ message: "Please enter options." })
|
|
6295
6310
|
], CreateQuestionDto.prototype, "options", 2);
|
|
6296
6311
|
__decorateClass([
|
|
6297
6312
|
IsOptional16(),
|
|
@@ -6299,42 +6314,42 @@ __decorateClass([
|
|
|
6299
6314
|
], CreateQuestionDto.prototype, "isActive", 2);
|
|
6300
6315
|
|
|
6301
6316
|
// src/modules/question/dto/record-assessment-answer.dto.ts
|
|
6302
|
-
import { IsNotEmpty as
|
|
6317
|
+
import { IsNotEmpty as IsNotEmpty39, IsString as IsString18, IsOptional as IsOptional17, IsObject as IsObject2 } from "class-validator";
|
|
6303
6318
|
var RecordAssessmentAnswerDto = class {
|
|
6304
6319
|
};
|
|
6305
6320
|
__decorateClass([
|
|
6306
|
-
|
|
6307
|
-
|
|
6321
|
+
IsNotEmpty39({ message: "Question ID is required" }),
|
|
6322
|
+
IsString18({ message: "Question ID must be a string" })
|
|
6308
6323
|
], RecordAssessmentAnswerDto.prototype, "questionId", 2);
|
|
6309
6324
|
__decorateClass([
|
|
6310
|
-
|
|
6325
|
+
IsNotEmpty39({ message: "Answer is required" }),
|
|
6311
6326
|
IsObject2()
|
|
6312
6327
|
], RecordAssessmentAnswerDto.prototype, "answer", 2);
|
|
6313
6328
|
__decorateClass([
|
|
6314
6329
|
IsOptional17(),
|
|
6315
|
-
|
|
6330
|
+
IsString18()
|
|
6316
6331
|
], RecordAssessmentAnswerDto.prototype, "assessmentId", 2);
|
|
6317
6332
|
__decorateClass([
|
|
6318
6333
|
IsOptional17(),
|
|
6319
|
-
|
|
6334
|
+
IsString18()
|
|
6320
6335
|
], RecordAssessmentAnswerDto.prototype, "userId", 2);
|
|
6321
6336
|
|
|
6322
6337
|
// src/modules/question/dto/record-assessment-answers.dto.ts
|
|
6323
|
-
import { IsNotEmpty as
|
|
6338
|
+
import { IsNotEmpty as IsNotEmpty40, IsArray, IsObject as IsObject3, IsOptional as IsOptional18, IsString as IsString19 } from "class-validator";
|
|
6324
6339
|
var RecordAssessmentAnswersDto = class {
|
|
6325
6340
|
};
|
|
6326
6341
|
__decorateClass([
|
|
6327
|
-
|
|
6342
|
+
IsNotEmpty40({ message: "Answers array is required" }),
|
|
6328
6343
|
IsArray({ message: "Answers must be an array" }),
|
|
6329
6344
|
IsObject3({ each: true, message: "Each answer must be an object" })
|
|
6330
6345
|
], RecordAssessmentAnswersDto.prototype, "answers", 2);
|
|
6331
6346
|
__decorateClass([
|
|
6332
6347
|
IsOptional18(),
|
|
6333
|
-
|
|
6348
|
+
IsString19()
|
|
6334
6349
|
], RecordAssessmentAnswersDto.prototype, "assessmentId", 2);
|
|
6335
6350
|
__decorateClass([
|
|
6336
6351
|
IsOptional18(),
|
|
6337
|
-
|
|
6352
|
+
IsString19()
|
|
6338
6353
|
], RecordAssessmentAnswersDto.prototype, "userId", 2);
|
|
6339
6354
|
|
|
6340
6355
|
// src/modules/job/pattern/pattern.ts
|
|
@@ -6394,8 +6409,8 @@ var JOB_APPLICATION_PATTERN = {
|
|
|
6394
6409
|
|
|
6395
6410
|
// src/modules/job/dto/job-basic-information.dto.ts
|
|
6396
6411
|
import {
|
|
6397
|
-
IsString as
|
|
6398
|
-
IsNotEmpty as
|
|
6412
|
+
IsString as IsString20,
|
|
6413
|
+
IsNotEmpty as IsNotEmpty41,
|
|
6399
6414
|
IsArray as IsArray2,
|
|
6400
6415
|
ArrayNotEmpty,
|
|
6401
6416
|
IsNumber as IsNumber3,
|
|
@@ -6432,32 +6447,32 @@ __decorateClass([
|
|
|
6432
6447
|
Type(() => Boolean)
|
|
6433
6448
|
], JobBasicInformationDto.prototype, "isDraft", 2);
|
|
6434
6449
|
__decorateClass([
|
|
6435
|
-
|
|
6436
|
-
|
|
6450
|
+
IsNotEmpty41({ message: "Please enter job role" }),
|
|
6451
|
+
IsString20({ message: "Job role must be a string" })
|
|
6437
6452
|
], JobBasicInformationDto.prototype, "jobRole", 2);
|
|
6438
6453
|
__decorateClass([
|
|
6439
6454
|
IsOptional19()
|
|
6440
6455
|
], JobBasicInformationDto.prototype, "jobRoleCanonicalName", 2);
|
|
6441
6456
|
__decorateClass([
|
|
6442
6457
|
IsOptional19(),
|
|
6443
|
-
|
|
6458
|
+
IsString20({ message: "Project name must be a string" })
|
|
6444
6459
|
], JobBasicInformationDto.prototype, "projectName", 2);
|
|
6445
6460
|
__decorateClass([
|
|
6446
6461
|
IsOptional19(),
|
|
6447
|
-
|
|
6462
|
+
IsString20({ message: "Note must be a string" })
|
|
6448
6463
|
], JobBasicInformationDto.prototype, "note", 2);
|
|
6449
6464
|
__decorateClass([
|
|
6450
6465
|
ValidateIf3((o) => !o.isDraft),
|
|
6451
6466
|
IsOptional19(),
|
|
6452
6467
|
IsArray2({ message: "Skills must be an array" }),
|
|
6453
6468
|
ArrayNotEmpty({ message: "Please select at least one skill" }),
|
|
6454
|
-
|
|
6469
|
+
IsString20({ each: true, message: "Each skill must be a string" }),
|
|
6455
6470
|
Type(() => String)
|
|
6456
6471
|
], JobBasicInformationDto.prototype, "skills", 2);
|
|
6457
6472
|
__decorateClass([
|
|
6458
6473
|
ValidateIf3((o) => !o.isDraft),
|
|
6459
6474
|
IsArray2({ message: "Good to have skills must be an array" }),
|
|
6460
|
-
|
|
6475
|
+
IsString20({ each: true, message: "Each skill must be a string" }),
|
|
6461
6476
|
IsOptional19(),
|
|
6462
6477
|
Type(() => String)
|
|
6463
6478
|
], JobBasicInformationDto.prototype, "goodToHaveSkills", 2);
|
|
@@ -6500,7 +6515,7 @@ __decorateClass([
|
|
|
6500
6515
|
], JobBasicInformationDto.prototype, "typeOfEmployment", 2);
|
|
6501
6516
|
__decorateClass([
|
|
6502
6517
|
ValidateIf3((o) => !o.isDraft),
|
|
6503
|
-
|
|
6518
|
+
IsString20({ message: "Currency must be a string" })
|
|
6504
6519
|
], JobBasicInformationDto.prototype, "currency", 2);
|
|
6505
6520
|
__decorateClass([
|
|
6506
6521
|
ValidateIf3((o) => !o.isDraft),
|
|
@@ -6541,41 +6556,41 @@ __decorateClass([
|
|
|
6541
6556
|
], JobBasicInformationDto.prototype, "numberOfHours", 2);
|
|
6542
6557
|
__decorateClass([
|
|
6543
6558
|
ValidateIf3((o) => !o.isDraft),
|
|
6544
|
-
|
|
6559
|
+
IsString20({ message: "Candidate communication skills must be a string" }),
|
|
6545
6560
|
IsOptional19()
|
|
6546
6561
|
], JobBasicInformationDto.prototype, "candidateCommunicationSkills", 2);
|
|
6547
6562
|
__decorateClass([
|
|
6548
6563
|
ValidateIf3((o) => !o.isDraft),
|
|
6549
|
-
|
|
6550
|
-
|
|
6564
|
+
IsNotEmpty41({ message: "Please enter the academic qualification" }),
|
|
6565
|
+
IsString20({ message: "Academic qualification must be a string" })
|
|
6551
6566
|
], JobBasicInformationDto.prototype, "academicQualification", 2);
|
|
6552
6567
|
__decorateClass([
|
|
6553
6568
|
ValidateIf3((o) => !o.isDraft),
|
|
6554
|
-
|
|
6555
|
-
|
|
6569
|
+
IsNotEmpty41({ message: "Please enter the years of experience" }),
|
|
6570
|
+
IsString20({ message: "Years of experience must be a string" })
|
|
6556
6571
|
], JobBasicInformationDto.prototype, "yearsOfExperience", 2);
|
|
6557
6572
|
__decorateClass([
|
|
6558
6573
|
IsOptional19(),
|
|
6559
|
-
|
|
6574
|
+
IsString20({ message: "Business industry must be a string" })
|
|
6560
6575
|
], JobBasicInformationDto.prototype, "businessIndustry", 2);
|
|
6561
6576
|
__decorateClass([
|
|
6562
6577
|
IsOptional19(),
|
|
6563
|
-
|
|
6578
|
+
IsString20({ message: "Additional comment must be a string" }),
|
|
6564
6579
|
MaxLength6(500, { message: "Additional comment must not exceed 500 characters" })
|
|
6565
6580
|
], JobBasicInformationDto.prototype, "additionalComment", 2);
|
|
6566
6581
|
|
|
6567
6582
|
// src/modules/job/dto/job-additional-comment.dto.ts
|
|
6568
|
-
import { IsOptional as IsOptional20, IsString as
|
|
6583
|
+
import { IsOptional as IsOptional20, IsString as IsString21, MaxLength as MaxLength7 } from "class-validator";
|
|
6569
6584
|
var JobAdditionalCommentDto = class {
|
|
6570
6585
|
};
|
|
6571
6586
|
__decorateClass([
|
|
6572
6587
|
IsOptional20(),
|
|
6573
|
-
|
|
6588
|
+
IsString21({ message: "Additional comment must be a string" }),
|
|
6574
6589
|
MaxLength7(500, { message: "Additional comment must not exceed 500 characters" })
|
|
6575
6590
|
], JobAdditionalCommentDto.prototype, "additionalComment", 2);
|
|
6576
6591
|
|
|
6577
6592
|
// src/modules/job/dto/job-description.dto.ts
|
|
6578
|
-
import { IsString as
|
|
6593
|
+
import { IsString as IsString22, IsNotEmpty as IsNotEmpty42, MaxLength as MaxLength8, IsOptional as IsOptional21 } from "class-validator";
|
|
6579
6594
|
import { Type as Type2 } from "class-transformer";
|
|
6580
6595
|
var JobDescriptionDto = class {
|
|
6581
6596
|
constructor() {
|
|
@@ -6587,13 +6602,13 @@ __decorateClass([
|
|
|
6587
6602
|
Type2(() => Boolean)
|
|
6588
6603
|
], JobDescriptionDto.prototype, "isDraft", 2);
|
|
6589
6604
|
__decorateClass([
|
|
6590
|
-
|
|
6591
|
-
|
|
6605
|
+
IsNotEmpty42({ message: "Please enter job description" }),
|
|
6606
|
+
IsString22({ message: "Description must be a string" }),
|
|
6592
6607
|
MaxLength8(5e3, { message: "Description must not exceed 5000 characters" })
|
|
6593
6608
|
], JobDescriptionDto.prototype, "description", 2);
|
|
6594
6609
|
|
|
6595
6610
|
// src/modules/job/dto/job-status.dto.ts
|
|
6596
|
-
import { IsEnum as IsEnum16, IsNotEmpty as
|
|
6611
|
+
import { IsEnum as IsEnum16, IsNotEmpty as IsNotEmpty43 } from "class-validator";
|
|
6597
6612
|
var JobStatus = /* @__PURE__ */ ((JobStatus2) => {
|
|
6598
6613
|
JobStatus2["ACTIVE"] = "ACTIVE";
|
|
6599
6614
|
JobStatus2["OPEN"] = "OPEN";
|
|
@@ -6605,26 +6620,26 @@ var JobStatus = /* @__PURE__ */ ((JobStatus2) => {
|
|
|
6605
6620
|
var JobStatusDto = class {
|
|
6606
6621
|
};
|
|
6607
6622
|
__decorateClass([
|
|
6608
|
-
|
|
6623
|
+
IsNotEmpty43({ message: "Please provide a job status" }),
|
|
6609
6624
|
IsEnum16(JobStatus, {
|
|
6610
6625
|
message: `Status must be one of: ${Object.values(JobStatus).join(", ")}`
|
|
6611
6626
|
})
|
|
6612
6627
|
], JobStatusDto.prototype, "status", 2);
|
|
6613
6628
|
|
|
6614
6629
|
// src/modules/job/dto/job-id-param.dto.ts
|
|
6615
|
-
import { IsUUID as
|
|
6630
|
+
import { IsUUID as IsUUID16 } from "class-validator";
|
|
6616
6631
|
var JobIdParamDto = class {
|
|
6617
6632
|
};
|
|
6618
6633
|
__decorateClass([
|
|
6619
|
-
|
|
6634
|
+
IsUUID16("4", {
|
|
6620
6635
|
message: "Invalid job ID. It must be a valid UUID version 4."
|
|
6621
6636
|
})
|
|
6622
6637
|
], JobIdParamDto.prototype, "id", 2);
|
|
6623
6638
|
|
|
6624
6639
|
// src/modules/job/dto/job-basic-information-v2.dto.ts
|
|
6625
6640
|
import {
|
|
6626
|
-
IsString as
|
|
6627
|
-
IsNotEmpty as
|
|
6641
|
+
IsString as IsString23,
|
|
6642
|
+
IsNotEmpty as IsNotEmpty44,
|
|
6628
6643
|
IsArray as IsArray3,
|
|
6629
6644
|
ArrayNotEmpty as ArrayNotEmpty2,
|
|
6630
6645
|
IsNumber as IsNumber4,
|
|
@@ -6672,17 +6687,17 @@ __decorateClass([
|
|
|
6672
6687
|
], JobLocationDto.prototype, "cityId", 2);
|
|
6673
6688
|
__decorateClass([
|
|
6674
6689
|
IsOptional22(),
|
|
6675
|
-
|
|
6690
|
+
IsString23({ message: "Country name must be a string" }),
|
|
6676
6691
|
MaxLength9(255, { message: "Country name must not exceed 255 characters" })
|
|
6677
6692
|
], JobLocationDto.prototype, "countryName", 2);
|
|
6678
6693
|
__decorateClass([
|
|
6679
6694
|
IsOptional22(),
|
|
6680
|
-
|
|
6695
|
+
IsString23({ message: "State name must be a string" }),
|
|
6681
6696
|
MaxLength9(255, { message: "State name must not exceed 255 characters" })
|
|
6682
6697
|
], JobLocationDto.prototype, "stateName", 2);
|
|
6683
6698
|
__decorateClass([
|
|
6684
6699
|
IsOptional22(),
|
|
6685
|
-
|
|
6700
|
+
IsString23({ message: "City name must be a string" }),
|
|
6686
6701
|
MaxLength9(255, { message: "City name must not exceed 255 characters" })
|
|
6687
6702
|
], JobLocationDto.prototype, "cityName", 2);
|
|
6688
6703
|
var JobBasicInformationV2Dto = class {
|
|
@@ -6695,32 +6710,32 @@ __decorateClass([
|
|
|
6695
6710
|
Type3(() => Boolean)
|
|
6696
6711
|
], JobBasicInformationV2Dto.prototype, "isDraft", 2);
|
|
6697
6712
|
__decorateClass([
|
|
6698
|
-
|
|
6699
|
-
|
|
6713
|
+
IsNotEmpty44({ message: "Please enter job role" }),
|
|
6714
|
+
IsString23({ message: "Job role must be a string" })
|
|
6700
6715
|
], JobBasicInformationV2Dto.prototype, "jobRole", 2);
|
|
6701
6716
|
__decorateClass([
|
|
6702
6717
|
IsOptional22()
|
|
6703
6718
|
], JobBasicInformationV2Dto.prototype, "jobRoleCanonicalName", 2);
|
|
6704
6719
|
__decorateClass([
|
|
6705
6720
|
IsOptional22(),
|
|
6706
|
-
|
|
6721
|
+
IsString23({ message: "Project name must be a string" })
|
|
6707
6722
|
], JobBasicInformationV2Dto.prototype, "projectName", 2);
|
|
6708
6723
|
__decorateClass([
|
|
6709
6724
|
IsOptional22(),
|
|
6710
|
-
|
|
6725
|
+
IsString23({ message: "Note must be a string" })
|
|
6711
6726
|
], JobBasicInformationV2Dto.prototype, "note", 2);
|
|
6712
6727
|
__decorateClass([
|
|
6713
6728
|
ValidateIf4((o) => !o.isDraft),
|
|
6714
6729
|
IsOptional22(),
|
|
6715
6730
|
IsArray3({ message: "Skills must be an array" }),
|
|
6716
6731
|
ArrayNotEmpty2({ message: "Please select at least one skill" }),
|
|
6717
|
-
|
|
6732
|
+
IsString23({ each: true, message: "Each skill must be a string" }),
|
|
6718
6733
|
Type3(() => String)
|
|
6719
6734
|
], JobBasicInformationV2Dto.prototype, "skills", 2);
|
|
6720
6735
|
__decorateClass([
|
|
6721
6736
|
ValidateIf4((o) => !o.isDraft),
|
|
6722
6737
|
IsArray3({ message: "Good to have skills must be an array" }),
|
|
6723
|
-
|
|
6738
|
+
IsString23({ each: true, message: "Each skill must be a string" }),
|
|
6724
6739
|
IsOptional22(),
|
|
6725
6740
|
Type3(() => String)
|
|
6726
6741
|
], JobBasicInformationV2Dto.prototype, "goodToHaveSkills", 2);
|
|
@@ -6752,7 +6767,7 @@ __decorateClass([
|
|
|
6752
6767
|
], JobBasicInformationV2Dto.prototype, "typeOfEmployment", 2);
|
|
6753
6768
|
__decorateClass([
|
|
6754
6769
|
ValidateIf4((o) => !o.isDraft),
|
|
6755
|
-
|
|
6770
|
+
IsString23({ message: "Currency must be a string" })
|
|
6756
6771
|
], JobBasicInformationV2Dto.prototype, "currency", 2);
|
|
6757
6772
|
__decorateClass([
|
|
6758
6773
|
ValidateIf4((o) => !o.isDraft),
|
|
@@ -6811,26 +6826,26 @@ __decorateClass([
|
|
|
6811
6826
|
], JobBasicInformationV2Dto.prototype, "numberOfHours", 2);
|
|
6812
6827
|
__decorateClass([
|
|
6813
6828
|
ValidateIf4((o) => !o.isDraft),
|
|
6814
|
-
|
|
6829
|
+
IsString23({ message: "Candidate communication skills must be a string" }),
|
|
6815
6830
|
IsOptional22()
|
|
6816
6831
|
], JobBasicInformationV2Dto.prototype, "candidateCommunicationSkills", 2);
|
|
6817
6832
|
__decorateClass([
|
|
6818
6833
|
IsOptional22(),
|
|
6819
|
-
|
|
6834
|
+
IsString23({ message: "Academic qualification must be a string" })
|
|
6820
6835
|
], JobBasicInformationV2Dto.prototype, "academicQualification", 2);
|
|
6821
6836
|
__decorateClass([
|
|
6822
6837
|
ValidateIf4((o) => !o.isDraft),
|
|
6823
|
-
|
|
6824
|
-
|
|
6838
|
+
IsNotEmpty44({ message: "Please enter the years of experience" }),
|
|
6839
|
+
IsString23({ message: "Years of experience must be a string" })
|
|
6825
6840
|
], JobBasicInformationV2Dto.prototype, "yearsOfExperienceFrom", 2);
|
|
6826
6841
|
__decorateClass([
|
|
6827
6842
|
ValidateIf4((o) => !o.isDraft),
|
|
6828
|
-
|
|
6829
|
-
|
|
6843
|
+
IsNotEmpty44({ message: "Please enter the years of experience upto" }),
|
|
6844
|
+
IsString23({ message: "Years of experience must be a string" })
|
|
6830
6845
|
], JobBasicInformationV2Dto.prototype, "yearsOfExperienceTo", 2);
|
|
6831
6846
|
__decorateClass([
|
|
6832
6847
|
IsOptional22(),
|
|
6833
|
-
|
|
6848
|
+
IsString23({ message: "Business industry must be a string" })
|
|
6834
6849
|
], JobBasicInformationV2Dto.prototype, "businessIndustry", 2);
|
|
6835
6850
|
__decorateClass([
|
|
6836
6851
|
IsOptional22(),
|
|
@@ -6842,26 +6857,26 @@ __decorateClass([
|
|
|
6842
6857
|
], JobBasicInformationV2Dto.prototype, "stepCompleted", 2);
|
|
6843
6858
|
__decorateClass([
|
|
6844
6859
|
IsOptional22(),
|
|
6845
|
-
|
|
6860
|
+
IsString23({ message: "Additional comment must be a string" }),
|
|
6846
6861
|
MaxLength9(500, { message: "Additional comment must not exceed 500 characters" })
|
|
6847
6862
|
], JobBasicInformationV2Dto.prototype, "additionalComment", 2);
|
|
6848
6863
|
|
|
6849
6864
|
// src/modules/job/dto/close-job.dto.ts
|
|
6850
|
-
import { IsOptional as IsOptional23, IsString as
|
|
6865
|
+
import { IsOptional as IsOptional23, IsString as IsString24 } from "class-validator";
|
|
6851
6866
|
var CloseJobDto = class {
|
|
6852
6867
|
};
|
|
6853
6868
|
__decorateClass([
|
|
6854
6869
|
IsOptional23(),
|
|
6855
|
-
|
|
6870
|
+
IsString24()
|
|
6856
6871
|
], CloseJobDto.prototype, "reason", 2);
|
|
6857
6872
|
|
|
6858
6873
|
// src/modules/job/dto/create-job-application.dto.ts
|
|
6859
|
-
import { IsBoolean as IsBoolean3, IsNotEmpty as
|
|
6874
|
+
import { IsBoolean as IsBoolean3, IsNotEmpty as IsNotEmpty45, IsOptional as IsOptional24, IsString as IsString25 } from "class-validator";
|
|
6860
6875
|
var CreateJobApplicationDto = class {
|
|
6861
6876
|
};
|
|
6862
6877
|
__decorateClass([
|
|
6863
|
-
|
|
6864
|
-
|
|
6878
|
+
IsNotEmpty45({ message: "Job ID is required" }),
|
|
6879
|
+
IsString25({ message: "Job ID must be a string" })
|
|
6865
6880
|
], CreateJobApplicationDto.prototype, "jobId", 2);
|
|
6866
6881
|
__decorateClass([
|
|
6867
6882
|
IsOptional24(),
|
|
@@ -6869,7 +6884,7 @@ __decorateClass([
|
|
|
6869
6884
|
], CreateJobApplicationDto.prototype, "isCta", 2);
|
|
6870
6885
|
|
|
6871
6886
|
// src/modules/job/dto/change-job-application-status.dto.ts
|
|
6872
|
-
import { IsEnum as IsEnum18, IsNotEmpty as
|
|
6887
|
+
import { IsEnum as IsEnum18, IsNotEmpty as IsNotEmpty46 } from "class-validator";
|
|
6873
6888
|
var JobApplicationStatus = /* @__PURE__ */ ((JobApplicationStatus2) => {
|
|
6874
6889
|
JobApplicationStatus2["PENDING"] = "PENDING";
|
|
6875
6890
|
JobApplicationStatus2["SHORTLISTED"] = "SHORTLISTED";
|
|
@@ -6881,14 +6896,14 @@ var JobApplicationStatus = /* @__PURE__ */ ((JobApplicationStatus2) => {
|
|
|
6881
6896
|
var ChangeJobApplicationStatusDto = class {
|
|
6882
6897
|
};
|
|
6883
6898
|
__decorateClass([
|
|
6884
|
-
|
|
6899
|
+
IsNotEmpty46({ message: "Status is required" }),
|
|
6885
6900
|
IsEnum18(JobApplicationStatus, {
|
|
6886
6901
|
message: `Status must be one of: ${Object.values(JobApplicationStatus).join(", ")}`
|
|
6887
6902
|
})
|
|
6888
6903
|
], ChangeJobApplicationStatusDto.prototype, "status", 2);
|
|
6889
6904
|
|
|
6890
6905
|
// src/modules/job/dto/change-job-application-status-bulk.dto.ts
|
|
6891
|
-
import { ArrayNotEmpty as ArrayNotEmpty3, IsArray as IsArray4, IsEnum as IsEnum19, IsNotEmpty as
|
|
6906
|
+
import { ArrayNotEmpty as ArrayNotEmpty3, IsArray as IsArray4, IsEnum as IsEnum19, IsNotEmpty as IsNotEmpty47, IsNumber as IsNumber5 } from "class-validator";
|
|
6892
6907
|
var ChangeJobApplicationStatusBulkDto = class {
|
|
6893
6908
|
};
|
|
6894
6909
|
__decorateClass([
|
|
@@ -6897,7 +6912,7 @@ __decorateClass([
|
|
|
6897
6912
|
IsNumber5({}, { each: true, message: "Each job application ID must be a number" })
|
|
6898
6913
|
], ChangeJobApplicationStatusBulkDto.prototype, "jobApplicationIds", 2);
|
|
6899
6914
|
__decorateClass([
|
|
6900
|
-
|
|
6915
|
+
IsNotEmpty47({ message: "Status is required" }),
|
|
6901
6916
|
IsEnum19(JobApplicationStatus, {
|
|
6902
6917
|
message: `Status must be one of: ${Object.values(JobApplicationStatus).join(", ")}`
|
|
6903
6918
|
})
|
|
@@ -6946,22 +6961,22 @@ var FREELANCER_ASSESSMENT_REQUEST_PATTERN = {
|
|
|
6946
6961
|
|
|
6947
6962
|
// src/modules/user/freelancer-profile/dto/freelancer-change-password.dto.ts
|
|
6948
6963
|
import {
|
|
6949
|
-
IsString as
|
|
6950
|
-
IsNotEmpty as
|
|
6964
|
+
IsString as IsString26,
|
|
6965
|
+
IsNotEmpty as IsNotEmpty48,
|
|
6951
6966
|
MaxLength as MaxLength10,
|
|
6952
|
-
MinLength as
|
|
6967
|
+
MinLength as MinLength8,
|
|
6953
6968
|
Matches as Matches8
|
|
6954
6969
|
} from "class-validator";
|
|
6955
6970
|
var FreelancerChangePasswordDto = class {
|
|
6956
6971
|
};
|
|
6957
6972
|
__decorateClass([
|
|
6958
|
-
|
|
6959
|
-
|
|
6973
|
+
IsNotEmpty48({ message: "Please enter Old Password." }),
|
|
6974
|
+
IsString26()
|
|
6960
6975
|
], FreelancerChangePasswordDto.prototype, "oldPassword", 2);
|
|
6961
6976
|
__decorateClass([
|
|
6962
|
-
|
|
6963
|
-
|
|
6964
|
-
|
|
6977
|
+
IsNotEmpty48({ message: "Please enter New Password." }),
|
|
6978
|
+
IsString26(),
|
|
6979
|
+
MinLength8(6),
|
|
6965
6980
|
MaxLength10(32),
|
|
6966
6981
|
Matches8(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
6967
6982
|
message: "New Password must include letters, numbers and symbols."
|
|
@@ -6971,11 +6986,11 @@ __decorateClass([
|
|
|
6971
6986
|
// src/modules/user/freelancer-profile/dto/update-freelancer-profile.dto.ts
|
|
6972
6987
|
import {
|
|
6973
6988
|
IsOptional as IsOptional25,
|
|
6974
|
-
IsString as
|
|
6989
|
+
IsString as IsString27,
|
|
6975
6990
|
IsEmail as IsEmail7,
|
|
6976
6991
|
IsNumber as IsNumber6,
|
|
6977
6992
|
IsEnum as IsEnum20,
|
|
6978
|
-
IsNotEmpty as
|
|
6993
|
+
IsNotEmpty as IsNotEmpty49,
|
|
6979
6994
|
ValidateIf as ValidateIf5,
|
|
6980
6995
|
IsInt
|
|
6981
6996
|
} from "class-validator";
|
|
@@ -6994,33 +7009,33 @@ var ModeOfWorkDto = /* @__PURE__ */ ((ModeOfWorkDto2) => {
|
|
|
6994
7009
|
var UpdateFreelancerProfileDto = class {
|
|
6995
7010
|
};
|
|
6996
7011
|
__decorateClass([
|
|
6997
|
-
|
|
6998
|
-
|
|
7012
|
+
IsNotEmpty49({ message: "Please enter first name." }),
|
|
7013
|
+
IsString27({ message: "Please enter valid first name." })
|
|
6999
7014
|
], UpdateFreelancerProfileDto.prototype, "firstName", 2);
|
|
7000
7015
|
__decorateClass([
|
|
7001
7016
|
IsOptional25(),
|
|
7002
|
-
|
|
7003
|
-
|
|
7017
|
+
IsNotEmpty49({ message: "Please enter last name." }),
|
|
7018
|
+
IsString27({ message: "Please enter valid last name." })
|
|
7004
7019
|
], UpdateFreelancerProfileDto.prototype, "lastName", 2);
|
|
7005
7020
|
__decorateClass([
|
|
7006
|
-
|
|
7007
|
-
|
|
7021
|
+
IsNotEmpty49({ message: "Please enter designation." }),
|
|
7022
|
+
IsString27({ message: "Please enter valid designation." })
|
|
7008
7023
|
], UpdateFreelancerProfileDto.prototype, "designation", 2);
|
|
7009
7024
|
__decorateClass([
|
|
7010
|
-
|
|
7011
|
-
|
|
7025
|
+
IsNotEmpty49({ message: "Please enter experience." }),
|
|
7026
|
+
IsString27({ message: "Please enter valid experience." })
|
|
7012
7027
|
], UpdateFreelancerProfileDto.prototype, "experience", 2);
|
|
7013
7028
|
__decorateClass([
|
|
7014
|
-
|
|
7029
|
+
IsNotEmpty49({ message: "Please enter email id." }),
|
|
7015
7030
|
IsEmail7()
|
|
7016
7031
|
], UpdateFreelancerProfileDto.prototype, "email", 2);
|
|
7017
7032
|
__decorateClass([
|
|
7018
|
-
|
|
7019
|
-
|
|
7033
|
+
IsNotEmpty49({ message: "Please enter mobile code." }),
|
|
7034
|
+
IsString27({ message: "Please enter valid mobile code." })
|
|
7020
7035
|
], UpdateFreelancerProfileDto.prototype, "mobileCode", 2);
|
|
7021
7036
|
__decorateClass([
|
|
7022
|
-
|
|
7023
|
-
|
|
7037
|
+
IsNotEmpty49({ message: "Please enter mobile number." }),
|
|
7038
|
+
IsString27({ message: "Please enter valid mobile number." })
|
|
7024
7039
|
], UpdateFreelancerProfileDto.prototype, "mobile", 2);
|
|
7025
7040
|
__decorateClass([
|
|
7026
7041
|
IsOptional25(),
|
|
@@ -7037,19 +7052,19 @@ __decorateClass([
|
|
|
7037
7052
|
//@IsString({ message: "Please enter valid expected hourly compensation." })
|
|
7038
7053
|
__decorateClass([
|
|
7039
7054
|
ValidateIf5((dto) => dto.NatureOfWorkDto === "FREELANCE" /* FREELANCE */ || dto.NatureOfWorkDto === "BOTH" /* BOTH */),
|
|
7040
|
-
|
|
7055
|
+
IsNotEmpty49({ message: "Please enter expected hourly compensation." })
|
|
7041
7056
|
], UpdateFreelancerProfileDto.prototype, "expectedHourlyCompensation", 2);
|
|
7042
7057
|
__decorateClass([
|
|
7043
|
-
ValidateIf5((dto) => dto.NatureOfWorkDto === "BOTH" /* BOTH */),
|
|
7044
|
-
|
|
7058
|
+
ValidateIf5((dto) => dto.NatureOfWorkDto === "FTE" /* FTE */ || dto.NatureOfWorkDto === "BOTH" /* BOTH */),
|
|
7059
|
+
IsNotEmpty49({ message: "Please enter expected annual compensation." })
|
|
7045
7060
|
], UpdateFreelancerProfileDto.prototype, "expectedAnnualCompensation", 2);
|
|
7046
7061
|
__decorateClass([
|
|
7047
7062
|
ValidateIf5((dto) => dto.NatureOfWorkDto === "FREELANCE" /* FREELANCE */),
|
|
7048
7063
|
IsInt({ message: "Please enter valid weekly availability hours (integer)." }),
|
|
7049
|
-
|
|
7064
|
+
IsNotEmpty49({ message: "Please enter weekly availability hours" })
|
|
7050
7065
|
], UpdateFreelancerProfileDto.prototype, "numberOfHours", 2);
|
|
7051
7066
|
__decorateClass([
|
|
7052
|
-
|
|
7067
|
+
IsNotEmpty49({ message: "Please select engagement type." }),
|
|
7053
7068
|
IsEnum20(NatureOfWorkDto, {
|
|
7054
7069
|
message: `Engagement Type must be one of: ${Object.values(
|
|
7055
7070
|
NatureOfWorkDto
|
|
@@ -7057,7 +7072,7 @@ __decorateClass([
|
|
|
7057
7072
|
})
|
|
7058
7073
|
], UpdateFreelancerProfileDto.prototype, "natureOfWork", 2);
|
|
7059
7074
|
__decorateClass([
|
|
7060
|
-
|
|
7075
|
+
IsNotEmpty49({ message: "Please select mode of work." }),
|
|
7061
7076
|
IsEnum20(ModeOfWorkDto, {
|
|
7062
7077
|
message: `Mode of work must be one of: ${Object.values(ModeOfWorkDto).join(
|
|
7063
7078
|
", "
|
|
@@ -7066,70 +7081,70 @@ __decorateClass([
|
|
|
7066
7081
|
], UpdateFreelancerProfileDto.prototype, "modeOfWork", 2);
|
|
7067
7082
|
__decorateClass([
|
|
7068
7083
|
IsOptional25(),
|
|
7069
|
-
|
|
7084
|
+
IsString27()
|
|
7070
7085
|
], UpdateFreelancerProfileDto.prototype, "portfolioLink", 2);
|
|
7071
7086
|
__decorateClass([
|
|
7072
|
-
|
|
7073
|
-
|
|
7087
|
+
IsNotEmpty49({ message: "Please enter address." }),
|
|
7088
|
+
IsString27()
|
|
7074
7089
|
], UpdateFreelancerProfileDto.prototype, "address", 2);
|
|
7075
7090
|
__decorateClass([
|
|
7076
7091
|
IsOptional25(),
|
|
7077
|
-
|
|
7092
|
+
IsString27()
|
|
7078
7093
|
], UpdateFreelancerProfileDto.prototype, "addressLine", 2);
|
|
7079
7094
|
__decorateClass([
|
|
7080
|
-
|
|
7081
|
-
|
|
7095
|
+
IsNotEmpty49({ message: "Please enter postalCode." }),
|
|
7096
|
+
IsString27()
|
|
7082
7097
|
], UpdateFreelancerProfileDto.prototype, "postalCode", 2);
|
|
7083
7098
|
__decorateClass([
|
|
7084
7099
|
IsOptional25(),
|
|
7085
|
-
|
|
7100
|
+
IsString27()
|
|
7086
7101
|
], UpdateFreelancerProfileDto.prototype, "about", 2);
|
|
7087
7102
|
__decorateClass([
|
|
7088
7103
|
IsOptional25(),
|
|
7089
|
-
|
|
7104
|
+
IsString27()
|
|
7090
7105
|
], UpdateFreelancerProfileDto.prototype, "linkedinProfileLink", 2);
|
|
7091
7106
|
__decorateClass([
|
|
7092
7107
|
IsOptional25(),
|
|
7093
|
-
|
|
7108
|
+
IsString27()
|
|
7094
7109
|
], UpdateFreelancerProfileDto.prototype, "kaggleProfileLink", 2);
|
|
7095
7110
|
__decorateClass([
|
|
7096
7111
|
IsOptional25(),
|
|
7097
|
-
|
|
7112
|
+
IsString27()
|
|
7098
7113
|
], UpdateFreelancerProfileDto.prototype, "githubProfileLink", 2);
|
|
7099
7114
|
__decorateClass([
|
|
7100
7115
|
IsOptional25(),
|
|
7101
|
-
|
|
7116
|
+
IsString27()
|
|
7102
7117
|
], UpdateFreelancerProfileDto.prototype, "stackOverflowProfileLink", 2);
|
|
7103
7118
|
__decorateClass([
|
|
7104
7119
|
IsOptional25(),
|
|
7105
|
-
|
|
7120
|
+
IsString27()
|
|
7106
7121
|
], UpdateFreelancerProfileDto.prototype, "resumeUrl", 2);
|
|
7107
7122
|
|
|
7108
7123
|
// src/modules/user/freelancer-profile/dto/freelancer-e-signature.dto.ts
|
|
7109
|
-
import { IsNotEmpty as
|
|
7124
|
+
import { IsNotEmpty as IsNotEmpty50, IsUUID as IsUUID17 } from "class-validator";
|
|
7110
7125
|
var FreelancerESignatureDto = class {
|
|
7111
7126
|
};
|
|
7112
7127
|
__decorateClass([
|
|
7113
|
-
|
|
7114
|
-
|
|
7128
|
+
IsUUID17("4", { message: "Freelancer UUID must be a valid UUID." }),
|
|
7129
|
+
IsNotEmpty50({ message: "Freelancer UUID is required." })
|
|
7115
7130
|
], FreelancerESignatureDto.prototype, "uuid", 2);
|
|
7116
7131
|
|
|
7117
7132
|
// src/modules/user/freelancer-profile/dto/fetch-client-info-for-chat.dto.ts
|
|
7118
|
-
import { IsNotEmpty as
|
|
7133
|
+
import { IsNotEmpty as IsNotEmpty51, IsNumber as IsNumber7 } from "class-validator";
|
|
7119
7134
|
var FetchClientInfoForChatDto = class {
|
|
7120
7135
|
};
|
|
7121
7136
|
__decorateClass([
|
|
7122
|
-
|
|
7137
|
+
IsNotEmpty51({ message: "Client ID is required" }),
|
|
7123
7138
|
IsNumber7({}, { message: "Client ID must be a number" })
|
|
7124
7139
|
], FetchClientInfoForChatDto.prototype, "clientId", 2);
|
|
7125
7140
|
|
|
7126
7141
|
// src/modules/user/freelancer-profile/dto/capture-ai-assessment-result.dto.ts
|
|
7127
|
-
import { IsNotEmpty as
|
|
7142
|
+
import { IsNotEmpty as IsNotEmpty52, IsString as IsString28, IsOptional as IsOptional26, IsObject as IsObject4 } from "class-validator";
|
|
7128
7143
|
var CaptureAiAssessmentResultDto = class {
|
|
7129
7144
|
};
|
|
7130
7145
|
__decorateClass([
|
|
7131
|
-
|
|
7132
|
-
|
|
7146
|
+
IsNotEmpty52({ message: "AI Assessment UUID is required" }),
|
|
7147
|
+
IsString28({ message: "AI Assessment UUID must be a string" })
|
|
7133
7148
|
], CaptureAiAssessmentResultDto.prototype, "aiAssessmentUuid", 2);
|
|
7134
7149
|
__decorateClass([
|
|
7135
7150
|
IsOptional26(),
|
|
@@ -7137,7 +7152,7 @@ __decorateClass([
|
|
|
7137
7152
|
], CaptureAiAssessmentResultDto.prototype, "result", 2);
|
|
7138
7153
|
__decorateClass([
|
|
7139
7154
|
IsOptional26(),
|
|
7140
|
-
|
|
7155
|
+
IsString28()
|
|
7141
7156
|
], CaptureAiAssessmentResultDto.prototype, "status", 2);
|
|
7142
7157
|
|
|
7143
7158
|
// src/modules/bank/pattern/pattern.ts
|
|
@@ -7153,9 +7168,9 @@ var BANK_PATTERN = {
|
|
|
7153
7168
|
// src/modules/bank/dto/freelancer-bank-details.dto.ts
|
|
7154
7169
|
import {
|
|
7155
7170
|
IsEnum as IsEnum21,
|
|
7156
|
-
IsNotEmpty as
|
|
7171
|
+
IsNotEmpty as IsNotEmpty53,
|
|
7157
7172
|
IsOptional as IsOptional27,
|
|
7158
|
-
IsString as
|
|
7173
|
+
IsString as IsString29,
|
|
7159
7174
|
ValidateIf as ValidateIf6
|
|
7160
7175
|
} from "class-validator";
|
|
7161
7176
|
var BankAccountScope = /* @__PURE__ */ ((BankAccountScope2) => {
|
|
@@ -7166,45 +7181,45 @@ var BankAccountScope = /* @__PURE__ */ ((BankAccountScope2) => {
|
|
|
7166
7181
|
var FreelancerBankDetailsDto = class {
|
|
7167
7182
|
};
|
|
7168
7183
|
__decorateClass([
|
|
7169
|
-
|
|
7184
|
+
IsNotEmpty53({ message: "Please enter Account Holder Name." })
|
|
7170
7185
|
], FreelancerBankDetailsDto.prototype, "name", 2);
|
|
7171
7186
|
__decorateClass([
|
|
7172
|
-
|
|
7187
|
+
IsNotEmpty53({ message: "Please enter Mobile Code." })
|
|
7173
7188
|
], FreelancerBankDetailsDto.prototype, "mobileCode", 2);
|
|
7174
7189
|
__decorateClass([
|
|
7175
|
-
|
|
7190
|
+
IsNotEmpty53({ message: "Please enter Mobile Number." })
|
|
7176
7191
|
], FreelancerBankDetailsDto.prototype, "mobile", 2);
|
|
7177
7192
|
__decorateClass([
|
|
7178
|
-
|
|
7193
|
+
IsNotEmpty53({ message: "Please enter Email." })
|
|
7179
7194
|
], FreelancerBankDetailsDto.prototype, "email", 2);
|
|
7180
7195
|
__decorateClass([
|
|
7181
7196
|
IsOptional27()
|
|
7182
7197
|
], FreelancerBankDetailsDto.prototype, "address", 2);
|
|
7183
7198
|
__decorateClass([
|
|
7184
|
-
|
|
7199
|
+
IsNotEmpty53({ message: "Please enter Account Number." })
|
|
7185
7200
|
], FreelancerBankDetailsDto.prototype, "accountNumber", 2);
|
|
7186
7201
|
__decorateClass([
|
|
7187
|
-
|
|
7202
|
+
IsNotEmpty53({ message: "Please enter Bank Name." })
|
|
7188
7203
|
], FreelancerBankDetailsDto.prototype, "bankName", 2);
|
|
7189
7204
|
__decorateClass([
|
|
7190
7205
|
IsOptional27(),
|
|
7191
|
-
|
|
7206
|
+
IsString29()
|
|
7192
7207
|
], FreelancerBankDetailsDto.prototype, "branchName", 2);
|
|
7193
7208
|
__decorateClass([
|
|
7194
7209
|
ValidateIf6((dto) => dto.accountScope === "DOMESTIC"),
|
|
7195
|
-
|
|
7210
|
+
IsNotEmpty53({ message: "IFSC Code is required for DOMESTIC accounts." })
|
|
7196
7211
|
], FreelancerBankDetailsDto.prototype, "ifscCode", 2);
|
|
7197
7212
|
__decorateClass([
|
|
7198
7213
|
ValidateIf6((dto) => dto.accountScope === "INTERNATIONAL"),
|
|
7199
|
-
|
|
7214
|
+
IsNotEmpty53({ message: "Routing Number/Sort Code is required for INTERNATIONAL accounts." })
|
|
7200
7215
|
], FreelancerBankDetailsDto.prototype, "routingNo", 2);
|
|
7201
7216
|
__decorateClass([
|
|
7202
7217
|
ValidateIf6((dto) => dto.accountScope === "INTERNATIONAL"),
|
|
7203
|
-
|
|
7218
|
+
IsNotEmpty53({ message: "ABA Number is required for INTERNATIONAL accounts." })
|
|
7204
7219
|
], FreelancerBankDetailsDto.prototype, "abaNumber", 2);
|
|
7205
7220
|
__decorateClass([
|
|
7206
7221
|
ValidateIf6((dto) => dto.accountScope === "INTERNATIONAL"),
|
|
7207
|
-
|
|
7222
|
+
IsNotEmpty53({ message: "IBAN is required for INTERNATIONAL accounts." })
|
|
7208
7223
|
], FreelancerBankDetailsDto.prototype, "iban", 2);
|
|
7209
7224
|
__decorateClass([
|
|
7210
7225
|
IsOptional27()
|
|
@@ -7260,40 +7275,40 @@ var GLOBAL_SETTING_PATTERN = {
|
|
|
7260
7275
|
|
|
7261
7276
|
// src/modules/global-setting/dto/add-global-setting.dto.ts
|
|
7262
7277
|
import {
|
|
7263
|
-
IsString as
|
|
7264
|
-
IsNotEmpty as
|
|
7278
|
+
IsString as IsString30,
|
|
7279
|
+
IsNotEmpty as IsNotEmpty54,
|
|
7265
7280
|
MaxLength as MaxLength11
|
|
7266
7281
|
} from "class-validator";
|
|
7267
7282
|
var AddGlobalSettingDto = class {
|
|
7268
7283
|
};
|
|
7269
7284
|
__decorateClass([
|
|
7270
|
-
|
|
7271
|
-
|
|
7285
|
+
IsNotEmpty54({ message: "Key is required" }),
|
|
7286
|
+
IsString30({ message: "Key must be a string" }),
|
|
7272
7287
|
MaxLength11(255, { message: "Key must not exceed 255 characters" })
|
|
7273
7288
|
], AddGlobalSettingDto.prototype, "key", 2);
|
|
7274
7289
|
__decorateClass([
|
|
7275
|
-
|
|
7276
|
-
|
|
7290
|
+
IsNotEmpty54({ message: "Value is required" }),
|
|
7291
|
+
IsString30({ message: "Value must be a string" })
|
|
7277
7292
|
], AddGlobalSettingDto.prototype, "value", 2);
|
|
7278
7293
|
|
|
7279
7294
|
// src/modules/global-setting/dto/remove-global-setting.dto.ts
|
|
7280
7295
|
import {
|
|
7281
|
-
IsString as
|
|
7282
|
-
IsNotEmpty as
|
|
7283
|
-
IsUUID as
|
|
7296
|
+
IsString as IsString31,
|
|
7297
|
+
IsNotEmpty as IsNotEmpty55,
|
|
7298
|
+
IsUUID as IsUUID18,
|
|
7284
7299
|
ValidateIf as ValidateIf7
|
|
7285
7300
|
} from "class-validator";
|
|
7286
7301
|
var RemoveGlobalSettingDto = class {
|
|
7287
7302
|
};
|
|
7288
7303
|
__decorateClass([
|
|
7289
7304
|
ValidateIf7((o) => !o.key),
|
|
7290
|
-
|
|
7291
|
-
|
|
7305
|
+
IsNotEmpty55({ message: "Either uuid or key is required" }),
|
|
7306
|
+
IsUUID18("4", { message: "UUID must be a valid UUID" })
|
|
7292
7307
|
], RemoveGlobalSettingDto.prototype, "uuid", 2);
|
|
7293
7308
|
__decorateClass([
|
|
7294
7309
|
ValidateIf7((o) => !o.uuid),
|
|
7295
|
-
|
|
7296
|
-
|
|
7310
|
+
IsNotEmpty55({ message: "Either uuid or key is required" }),
|
|
7311
|
+
IsString31({ message: "Key must be a string" })
|
|
7297
7312
|
], RemoveGlobalSettingDto.prototype, "key", 2);
|
|
7298
7313
|
|
|
7299
7314
|
// src/modules/notification/pattern/pattern.ts
|
|
@@ -7319,7 +7334,8 @@ var NOTIFICATION_PATTERN = {
|
|
|
7319
7334
|
handleAiInterviewRecordingErrorNotification: "handle.ai.interview.recording.error.notification",
|
|
7320
7335
|
handleAiAssessmentInterviewResultErrorNotification: "handle.ai.assessment.interview.result.error.notification",
|
|
7321
7336
|
handleAiAssessmentInterviewRecordingErrorNotification: "handle.ai.assessment.interview.recording.error.notification",
|
|
7322
|
-
handleSubAdminAccountCreatedNotification: "handle.subadmin.account.created.notification"
|
|
7337
|
+
handleSubAdminAccountCreatedNotification: "handle.subadmin.account.created.notification",
|
|
7338
|
+
handleUserResetPasswordByAdminNotification: "handle.user.reset.password.by.admin.notification"
|
|
7323
7339
|
};
|
|
7324
7340
|
var SMS_PATTERN = {
|
|
7325
7341
|
sendTest: "sms.send.test",
|
|
@@ -7337,7 +7353,7 @@ var EMAIL_PATTERN = {
|
|
|
7337
7353
|
};
|
|
7338
7354
|
|
|
7339
7355
|
// src/modules/notification/dto/test-notification.dto.ts
|
|
7340
|
-
import { IsOptional as IsOptional28, IsString as
|
|
7356
|
+
import { IsOptional as IsOptional28, IsString as IsString32, IsObject as IsObject5, IsEmail as IsEmail8, IsPhoneNumber } from "class-validator";
|
|
7341
7357
|
var TestNotificationDto = class {
|
|
7342
7358
|
};
|
|
7343
7359
|
__decorateClass([
|
|
@@ -7350,7 +7366,7 @@ __decorateClass([
|
|
|
7350
7366
|
], TestNotificationDto.prototype, "phone", 2);
|
|
7351
7367
|
__decorateClass([
|
|
7352
7368
|
IsOptional28(),
|
|
7353
|
-
|
|
7369
|
+
IsString32()
|
|
7354
7370
|
], TestNotificationDto.prototype, "message", 2);
|
|
7355
7371
|
__decorateClass([
|
|
7356
7372
|
IsOptional28(),
|
|
@@ -7358,7 +7374,7 @@ __decorateClass([
|
|
|
7358
7374
|
], TestNotificationDto.prototype, "data", 2);
|
|
7359
7375
|
__decorateClass([
|
|
7360
7376
|
IsOptional28(),
|
|
7361
|
-
|
|
7377
|
+
IsString32()
|
|
7362
7378
|
], TestNotificationDto.prototype, "type", 2);
|
|
7363
7379
|
|
|
7364
7380
|
// src/modules/rating/pattern/pattern.ts
|
|
@@ -7372,9 +7388,9 @@ var RATING_PATTERN = {
|
|
|
7372
7388
|
import {
|
|
7373
7389
|
IsEnum as IsEnum23,
|
|
7374
7390
|
IsInt as IsInt2,
|
|
7375
|
-
IsNotEmpty as
|
|
7391
|
+
IsNotEmpty as IsNotEmpty56,
|
|
7376
7392
|
IsOptional as IsOptional29,
|
|
7377
|
-
IsString as
|
|
7393
|
+
IsString as IsString33,
|
|
7378
7394
|
IsNumber as IsNumber8,
|
|
7379
7395
|
Min as Min3,
|
|
7380
7396
|
Max as Max3
|
|
@@ -7391,7 +7407,7 @@ __decorateClass([
|
|
|
7391
7407
|
], CreateRatingDto.prototype, "reviewerId", 2);
|
|
7392
7408
|
__decorateClass([
|
|
7393
7409
|
IsInt2({ message: "Job ID must be a valid integer" }),
|
|
7394
|
-
|
|
7410
|
+
IsNotEmpty56({ message: "Job ID is required" })
|
|
7395
7411
|
], CreateRatingDto.prototype, "jobId", 2);
|
|
7396
7412
|
__decorateClass([
|
|
7397
7413
|
IsEnum23(RatingTypeEnum, {
|
|
@@ -7400,7 +7416,7 @@ __decorateClass([
|
|
|
7400
7416
|
], CreateRatingDto.prototype, "ratingType", 2);
|
|
7401
7417
|
__decorateClass([
|
|
7402
7418
|
IsOptional29(),
|
|
7403
|
-
|
|
7419
|
+
IsString33({ message: "Reviewer comment must be a string" })
|
|
7404
7420
|
], CreateRatingDto.prototype, "reviewerComment", 2);
|
|
7405
7421
|
__decorateClass([
|
|
7406
7422
|
IsOptional29(),
|
|
@@ -7482,17 +7498,17 @@ var COMPANY_ROLES_PATTERNS = {
|
|
|
7482
7498
|
};
|
|
7483
7499
|
|
|
7484
7500
|
// src/modules/company-role/dto/create-company-role.dto.ts
|
|
7485
|
-
import { ArrayNotEmpty as ArrayNotEmpty4, IsArray as IsArray5, IsBoolean as IsBoolean5, IsInt as IsInt3, IsNotEmpty as
|
|
7501
|
+
import { ArrayNotEmpty as ArrayNotEmpty4, IsArray as IsArray5, IsBoolean as IsBoolean5, IsInt as IsInt3, IsNotEmpty as IsNotEmpty57, IsOptional as IsOptional30 } from "class-validator";
|
|
7486
7502
|
var CreateCompanyRoleDto = class {
|
|
7487
7503
|
};
|
|
7488
7504
|
__decorateClass([
|
|
7489
|
-
|
|
7505
|
+
IsNotEmpty57({ message: "Please enter company role name." })
|
|
7490
7506
|
], CreateCompanyRoleDto.prototype, "name", 2);
|
|
7491
7507
|
__decorateClass([
|
|
7492
|
-
|
|
7508
|
+
IsNotEmpty57({ message: "Please enter company role slug" })
|
|
7493
7509
|
], CreateCompanyRoleDto.prototype, "slug", 2);
|
|
7494
7510
|
__decorateClass([
|
|
7495
|
-
|
|
7511
|
+
IsNotEmpty57({ message: "Please enter description" })
|
|
7496
7512
|
], CreateCompanyRoleDto.prototype, "description", 2);
|
|
7497
7513
|
__decorateClass([
|
|
7498
7514
|
IsArray5({ message: "Permission IDs must be an array." }),
|
|
@@ -7505,17 +7521,17 @@ __decorateClass([
|
|
|
7505
7521
|
], CreateCompanyRoleDto.prototype, "isActive", 2);
|
|
7506
7522
|
|
|
7507
7523
|
// src/modules/company-role/dto/update-company-role.dto.ts
|
|
7508
|
-
import { ArrayNotEmpty as ArrayNotEmpty5, IsArray as IsArray6, IsBoolean as IsBoolean6, IsInt as IsInt4, IsNotEmpty as
|
|
7524
|
+
import { ArrayNotEmpty as ArrayNotEmpty5, IsArray as IsArray6, IsBoolean as IsBoolean6, IsInt as IsInt4, IsNotEmpty as IsNotEmpty58, IsOptional as IsOptional31 } from "class-validator";
|
|
7509
7525
|
var UpdateCompanyRoleDto = class {
|
|
7510
7526
|
};
|
|
7511
7527
|
__decorateClass([
|
|
7512
|
-
|
|
7528
|
+
IsNotEmpty58({ message: "Please enter company name." })
|
|
7513
7529
|
], UpdateCompanyRoleDto.prototype, "name", 2);
|
|
7514
7530
|
__decorateClass([
|
|
7515
|
-
|
|
7531
|
+
IsNotEmpty58({ message: "Please enter slug" })
|
|
7516
7532
|
], UpdateCompanyRoleDto.prototype, "slug", 2);
|
|
7517
7533
|
__decorateClass([
|
|
7518
|
-
|
|
7534
|
+
IsNotEmpty58({ message: "Please enter description" })
|
|
7519
7535
|
], UpdateCompanyRoleDto.prototype, "description", 2);
|
|
7520
7536
|
__decorateClass([
|
|
7521
7537
|
IsArray6({ message: "Permission IDs must be an array." }),
|
|
@@ -7544,9 +7560,9 @@ var FREELANCER_EXPERIENCE_PATTERN = {
|
|
|
7544
7560
|
// src/modules/user/freelancer-experience/dto/freelancer-experience.dto.ts
|
|
7545
7561
|
import {
|
|
7546
7562
|
ArrayMinSize,
|
|
7547
|
-
IsNotEmpty as
|
|
7563
|
+
IsNotEmpty as IsNotEmpty59,
|
|
7548
7564
|
IsOptional as IsOptional32,
|
|
7549
|
-
IsString as
|
|
7565
|
+
IsString as IsString36,
|
|
7550
7566
|
MaxLength as MaxLength13,
|
|
7551
7567
|
ValidateNested as ValidateNested2
|
|
7552
7568
|
} from "class-validator";
|
|
@@ -7557,20 +7573,20 @@ __decorateClass([
|
|
|
7557
7573
|
IsOptional32()
|
|
7558
7574
|
], ExperienceDto.prototype, "uuid", 2);
|
|
7559
7575
|
__decorateClass([
|
|
7560
|
-
|
|
7561
|
-
|
|
7576
|
+
IsNotEmpty59(),
|
|
7577
|
+
IsString36()
|
|
7562
7578
|
], ExperienceDto.prototype, "companyName", 2);
|
|
7563
7579
|
__decorateClass([
|
|
7564
|
-
|
|
7565
|
-
|
|
7580
|
+
IsNotEmpty59(),
|
|
7581
|
+
IsString36()
|
|
7566
7582
|
], ExperienceDto.prototype, "designation", 2);
|
|
7567
7583
|
__decorateClass([
|
|
7568
|
-
|
|
7569
|
-
|
|
7584
|
+
IsNotEmpty59(),
|
|
7585
|
+
IsString36()
|
|
7570
7586
|
], ExperienceDto.prototype, "jobDuration", 2);
|
|
7571
7587
|
__decorateClass([
|
|
7572
7588
|
IsOptional32(),
|
|
7573
|
-
|
|
7589
|
+
IsString36(),
|
|
7574
7590
|
MaxLength13(5e3, { message: "Description must not exceed 5000 characters" })
|
|
7575
7591
|
], ExperienceDto.prototype, "description", 2);
|
|
7576
7592
|
var FreelancerExperienceDto = class {
|
|
@@ -7594,14 +7610,14 @@ var COMPANY_MEMBERS_PATTERNS = {
|
|
|
7594
7610
|
};
|
|
7595
7611
|
|
|
7596
7612
|
// src/modules/company-member/dto/create-company-member.dto.ts
|
|
7597
|
-
import { ArrayNotEmpty as ArrayNotEmpty6, IsArray as IsArray7, IsInt as IsInt5, IsNotEmpty as
|
|
7613
|
+
import { ArrayNotEmpty as ArrayNotEmpty6, IsArray as IsArray7, IsInt as IsInt5, IsNotEmpty as IsNotEmpty60 } from "class-validator";
|
|
7598
7614
|
var CreateCompanyMemberDto = class {
|
|
7599
7615
|
};
|
|
7600
7616
|
__decorateClass([
|
|
7601
|
-
|
|
7617
|
+
IsNotEmpty60({ message: "Please enter name." })
|
|
7602
7618
|
], CreateCompanyMemberDto.prototype, "name", 2);
|
|
7603
7619
|
__decorateClass([
|
|
7604
|
-
|
|
7620
|
+
IsNotEmpty60({ message: "Please enter email" })
|
|
7605
7621
|
], CreateCompanyMemberDto.prototype, "email", 2);
|
|
7606
7622
|
__decorateClass([
|
|
7607
7623
|
IsArray7({ message: "Role IDs must be an array." }),
|
|
@@ -7610,14 +7626,14 @@ __decorateClass([
|
|
|
7610
7626
|
], CreateCompanyMemberDto.prototype, "roleIds", 2);
|
|
7611
7627
|
|
|
7612
7628
|
// src/modules/company-member/dto/update-company-member.dto.ts
|
|
7613
|
-
import { ArrayNotEmpty as ArrayNotEmpty7, IsArray as IsArray8, IsInt as IsInt6, IsNotEmpty as
|
|
7629
|
+
import { ArrayNotEmpty as ArrayNotEmpty7, IsArray as IsArray8, IsInt as IsInt6, IsNotEmpty as IsNotEmpty61 } from "class-validator";
|
|
7614
7630
|
var UpdateCompanyMemberDto = class {
|
|
7615
7631
|
};
|
|
7616
7632
|
__decorateClass([
|
|
7617
|
-
|
|
7633
|
+
IsNotEmpty61({ message: "Please enter name." })
|
|
7618
7634
|
], UpdateCompanyMemberDto.prototype, "name", 2);
|
|
7619
7635
|
__decorateClass([
|
|
7620
|
-
|
|
7636
|
+
IsNotEmpty61({ message: "Please enter email" })
|
|
7621
7637
|
], UpdateCompanyMemberDto.prototype, "email", 2);
|
|
7622
7638
|
__decorateClass([
|
|
7623
7639
|
IsArray8({ message: "Role IDs must be an array." }),
|
|
@@ -7640,7 +7656,7 @@ var FREELANCER_EDUCATION_PATTERN = {
|
|
|
7640
7656
|
};
|
|
7641
7657
|
|
|
7642
7658
|
// src/modules/user/freelancer-education/dto/freelancer-education.dto.ts
|
|
7643
|
-
import { IsArray as IsArray9, ValidateNested as ValidateNested3, IsString as
|
|
7659
|
+
import { IsArray as IsArray9, ValidateNested as ValidateNested3, IsString as IsString39, IsNotEmpty as IsNotEmpty62, IsOptional as IsOptional35, ArrayMinSize as ArrayMinSize2 } from "class-validator";
|
|
7644
7660
|
import { Type as Type5 } from "class-transformer";
|
|
7645
7661
|
var EducationDto = class {
|
|
7646
7662
|
};
|
|
@@ -7648,16 +7664,16 @@ __decorateClass([
|
|
|
7648
7664
|
IsOptional35()
|
|
7649
7665
|
], EducationDto.prototype, "uuid", 2);
|
|
7650
7666
|
__decorateClass([
|
|
7651
|
-
|
|
7652
|
-
|
|
7667
|
+
IsString39(),
|
|
7668
|
+
IsNotEmpty62({ message: "Please Enter Degree " })
|
|
7653
7669
|
], EducationDto.prototype, "degree", 2);
|
|
7654
7670
|
__decorateClass([
|
|
7655
|
-
|
|
7656
|
-
|
|
7671
|
+
IsString39(),
|
|
7672
|
+
IsNotEmpty62({ message: "Please Enter University " })
|
|
7657
7673
|
], EducationDto.prototype, "university", 2);
|
|
7658
7674
|
__decorateClass([
|
|
7659
|
-
|
|
7660
|
-
|
|
7675
|
+
IsString39(),
|
|
7676
|
+
IsNotEmpty62({ message: "Please Enter Year of Graduation " })
|
|
7661
7677
|
], EducationDto.prototype, "yearOfGraduation", 2);
|
|
7662
7678
|
var FreelancerEducationDto = class {
|
|
7663
7679
|
};
|
|
@@ -7675,7 +7691,7 @@ var FREELANCER_PROJECT_PATTERN = {
|
|
|
7675
7691
|
};
|
|
7676
7692
|
|
|
7677
7693
|
// src/modules/user/freelancer-project/dto/freelancer-project.dto.ts
|
|
7678
|
-
import { IsArray as IsArray10, ValidateNested as ValidateNested4, IsString as
|
|
7694
|
+
import { IsArray as IsArray10, ValidateNested as ValidateNested4, IsString as IsString40, IsNotEmpty as IsNotEmpty63, IsOptional as IsOptional36, IsDateString, MaxLength as MaxLength15, ArrayMinSize as ArrayMinSize3 } from "class-validator";
|
|
7679
7695
|
import { Type as Type6 } from "class-transformer";
|
|
7680
7696
|
var ProjectDto = class {
|
|
7681
7697
|
};
|
|
@@ -7683,28 +7699,28 @@ __decorateClass([
|
|
|
7683
7699
|
IsOptional36()
|
|
7684
7700
|
], ProjectDto.prototype, "uuid", 2);
|
|
7685
7701
|
__decorateClass([
|
|
7686
|
-
|
|
7687
|
-
|
|
7702
|
+
IsString40(),
|
|
7703
|
+
IsNotEmpty63({ message: "Please Enter Project Name " })
|
|
7688
7704
|
], ProjectDto.prototype, "projectName", 2);
|
|
7689
7705
|
__decorateClass([
|
|
7690
7706
|
IsDateString(),
|
|
7691
|
-
|
|
7707
|
+
IsNotEmpty63({ message: "Please Enter Start Date " })
|
|
7692
7708
|
], ProjectDto.prototype, "startDate", 2);
|
|
7693
7709
|
__decorateClass([
|
|
7694
7710
|
IsDateString(),
|
|
7695
|
-
|
|
7711
|
+
IsNotEmpty63({ message: "Please Enter End Date " })
|
|
7696
7712
|
], ProjectDto.prototype, "endDate", 2);
|
|
7697
7713
|
__decorateClass([
|
|
7698
7714
|
IsOptional36(),
|
|
7699
|
-
|
|
7715
|
+
IsString40()
|
|
7700
7716
|
], ProjectDto.prototype, "clientName", 2);
|
|
7701
7717
|
__decorateClass([
|
|
7702
7718
|
IsOptional36(),
|
|
7703
|
-
|
|
7719
|
+
IsString40()
|
|
7704
7720
|
], ProjectDto.prototype, "gitLink", 2);
|
|
7705
7721
|
__decorateClass([
|
|
7706
7722
|
IsOptional36(),
|
|
7707
|
-
|
|
7723
|
+
IsString40(),
|
|
7708
7724
|
MaxLength15(5e3, { message: "Description must not exceed 5000 characters" })
|
|
7709
7725
|
], ProjectDto.prototype, "description", 2);
|
|
7710
7726
|
var CaseStudyDto = class {
|
|
@@ -7713,16 +7729,16 @@ __decorateClass([
|
|
|
7713
7729
|
IsOptional36()
|
|
7714
7730
|
], CaseStudyDto.prototype, "uuid", 2);
|
|
7715
7731
|
__decorateClass([
|
|
7716
|
-
|
|
7717
|
-
|
|
7732
|
+
IsString40(),
|
|
7733
|
+
IsNotEmpty63({ message: "Please Enter Project Name " })
|
|
7718
7734
|
], CaseStudyDto.prototype, "projectName", 2);
|
|
7719
7735
|
__decorateClass([
|
|
7720
7736
|
IsOptional36(),
|
|
7721
|
-
|
|
7737
|
+
IsString40()
|
|
7722
7738
|
], CaseStudyDto.prototype, "caseStudyLink", 2);
|
|
7723
7739
|
__decorateClass([
|
|
7724
7740
|
IsOptional36(),
|
|
7725
|
-
|
|
7741
|
+
IsString40(),
|
|
7726
7742
|
MaxLength15(5e3, { message: "Description must not exceed 5000 characters" })
|
|
7727
7743
|
], CaseStudyDto.prototype, "description", 2);
|
|
7728
7744
|
var FreelancerProjectDto = class {
|
|
@@ -7752,7 +7768,7 @@ var FREELANCER_SKILL_PATTERN = {
|
|
|
7752
7768
|
};
|
|
7753
7769
|
|
|
7754
7770
|
// src/modules/user/freelancer-skill/dto/freelancer-skill.dto.ts
|
|
7755
|
-
import { IsArray as IsArray11, IsString as
|
|
7771
|
+
import { IsArray as IsArray11, IsString as IsString41, IsOptional as IsOptional37 } from "class-validator";
|
|
7756
7772
|
import { Type as Type7 } from "class-transformer";
|
|
7757
7773
|
var FreelancerSkillDto = class {
|
|
7758
7774
|
constructor() {
|
|
@@ -7766,25 +7782,25 @@ __decorateClass([
|
|
|
7766
7782
|
IsOptional37(),
|
|
7767
7783
|
IsArray11(),
|
|
7768
7784
|
Type7(() => String),
|
|
7769
|
-
|
|
7785
|
+
IsString41({ each: true })
|
|
7770
7786
|
], FreelancerSkillDto.prototype, "coreSkills", 2);
|
|
7771
7787
|
__decorateClass([
|
|
7772
7788
|
IsOptional37(),
|
|
7773
7789
|
IsArray11(),
|
|
7774
7790
|
Type7(() => String),
|
|
7775
|
-
|
|
7791
|
+
IsString41({ each: true })
|
|
7776
7792
|
], FreelancerSkillDto.prototype, "secondarySkills", 2);
|
|
7777
7793
|
__decorateClass([
|
|
7778
7794
|
IsOptional37(),
|
|
7779
7795
|
IsArray11(),
|
|
7780
7796
|
Type7(() => String),
|
|
7781
|
-
|
|
7797
|
+
IsString41({ each: true })
|
|
7782
7798
|
], FreelancerSkillDto.prototype, "tools", 2);
|
|
7783
7799
|
__decorateClass([
|
|
7784
7800
|
IsOptional37(),
|
|
7785
7801
|
IsArray11(),
|
|
7786
7802
|
Type7(() => String),
|
|
7787
|
-
|
|
7803
|
+
IsString41({ each: true })
|
|
7788
7804
|
], FreelancerSkillDto.prototype, "frameworks", 2);
|
|
7789
7805
|
|
|
7790
7806
|
// src/modules/freelancer-admin/pattern/pattern.ts
|
|
@@ -7810,12 +7826,14 @@ var ADMIN_FREELANCER_PATTERN = {
|
|
|
7810
7826
|
updateAssessmentRequestStatus: "update.assessment.request.status",
|
|
7811
7827
|
fetchAIassessmentResultForFreelancerAdmin: "fetch.ai.assessment.result.for.freelancer.admin",
|
|
7812
7828
|
deleteAIassessmentForAdminFreelancer: "delete.ai.assessment.for.admin.freelancer",
|
|
7813
|
-
fetchAppliedJobsOfAdminFreelancer: "fetch.applied.jobs.of.admin.freelancer"
|
|
7829
|
+
fetchAppliedJobsOfAdminFreelancer: "fetch.applied.jobs.of.admin.freelancer",
|
|
7830
|
+
updateAdminFreelancerAccountStatus: "update.admin.freelancer.account.status",
|
|
7831
|
+
downloadAllFreelancerResumes: "download.all.freelancer.resumes"
|
|
7814
7832
|
};
|
|
7815
7833
|
|
|
7816
7834
|
// src/modules/freelancer-admin/dto/create-freelancer.dto.ts
|
|
7817
7835
|
import {
|
|
7818
|
-
IsString as
|
|
7836
|
+
IsString as IsString42,
|
|
7819
7837
|
IsEmail as IsEmail13,
|
|
7820
7838
|
IsBoolean as IsBoolean11,
|
|
7821
7839
|
IsOptional as IsOptional38,
|
|
@@ -7823,9 +7841,9 @@ import {
|
|
|
7823
7841
|
IsNumber as IsNumber9,
|
|
7824
7842
|
IsUrl as IsUrl3,
|
|
7825
7843
|
MaxLength as MaxLength17,
|
|
7826
|
-
MinLength as
|
|
7844
|
+
MinLength as MinLength13,
|
|
7827
7845
|
Matches as Matches9,
|
|
7828
|
-
IsNotEmpty as
|
|
7846
|
+
IsNotEmpty as IsNotEmpty65,
|
|
7829
7847
|
ValidateIf as ValidateIf8,
|
|
7830
7848
|
IsInt as IsInt7
|
|
7831
7849
|
} from "class-validator";
|
|
@@ -7846,7 +7864,7 @@ var CreateFreelancerDto = class {
|
|
|
7846
7864
|
};
|
|
7847
7865
|
__decorateClass([
|
|
7848
7866
|
IsOptional38(),
|
|
7849
|
-
|
|
7867
|
+
IsString42({ message: "Full name must be a string" }),
|
|
7850
7868
|
MaxLength17(100, { message: "Full name must not exceed 100 characters" }),
|
|
7851
7869
|
Transform2(({ value }) => {
|
|
7852
7870
|
if (Array.isArray(value)) return value[0]?.trim();
|
|
@@ -7863,7 +7881,7 @@ __decorateClass([
|
|
|
7863
7881
|
], CreateFreelancerDto.prototype, "email", 2);
|
|
7864
7882
|
__decorateClass([
|
|
7865
7883
|
IsOptional38(),
|
|
7866
|
-
|
|
7884
|
+
IsString42({ message: "Mobile code must be a string (e.g., +1)" }),
|
|
7867
7885
|
Transform2(({ value }) => {
|
|
7868
7886
|
if (Array.isArray(value)) return value[0]?.trim();
|
|
7869
7887
|
return typeof value === "string" ? value.trim() : value;
|
|
@@ -7871,15 +7889,15 @@ __decorateClass([
|
|
|
7871
7889
|
], CreateFreelancerDto.prototype, "mobileCode", 2);
|
|
7872
7890
|
__decorateClass([
|
|
7873
7891
|
IsOptional38(),
|
|
7874
|
-
|
|
7892
|
+
IsString42({ message: "Mobile must be a string (e.g., 1243253534)" }),
|
|
7875
7893
|
Transform2(({ value }) => {
|
|
7876
7894
|
if (Array.isArray(value)) return value[0]?.trim();
|
|
7877
7895
|
return typeof value === "string" ? value.trim() : value;
|
|
7878
7896
|
})
|
|
7879
7897
|
], CreateFreelancerDto.prototype, "mobile", 2);
|
|
7880
7898
|
__decorateClass([
|
|
7881
|
-
|
|
7882
|
-
|
|
7899
|
+
IsNotEmpty65({ message: "Please enter address." }),
|
|
7900
|
+
IsString42({ message: "address must be a string" }),
|
|
7883
7901
|
Transform2(({ value }) => {
|
|
7884
7902
|
if (Array.isArray(value)) {
|
|
7885
7903
|
const val = value[0];
|
|
@@ -7890,7 +7908,7 @@ __decorateClass([
|
|
|
7890
7908
|
], CreateFreelancerDto.prototype, "address", 2);
|
|
7891
7909
|
__decorateClass([
|
|
7892
7910
|
IsOptional38(),
|
|
7893
|
-
|
|
7911
|
+
IsString42({ message: "addressLine must be a string" }),
|
|
7894
7912
|
Transform2(({ value }) => {
|
|
7895
7913
|
if (Array.isArray(value)) {
|
|
7896
7914
|
const val = value[0];
|
|
@@ -7930,7 +7948,7 @@ __decorateClass([
|
|
|
7930
7948
|
], CreateFreelancerDto.prototype, "cityId", 2);
|
|
7931
7949
|
__decorateClass([
|
|
7932
7950
|
IsOptional38(),
|
|
7933
|
-
|
|
7951
|
+
IsString42({ message: "postalCode must be a string" }),
|
|
7934
7952
|
Transform2(({ value }) => {
|
|
7935
7953
|
if (Array.isArray(value)) {
|
|
7936
7954
|
const val = value[0];
|
|
@@ -7943,7 +7961,7 @@ __decorateClass([
|
|
|
7943
7961
|
], CreateFreelancerDto.prototype, "postalCode", 2);
|
|
7944
7962
|
__decorateClass([
|
|
7945
7963
|
IsOptional38(),
|
|
7946
|
-
|
|
7964
|
+
IsString42({ message: "about must be a string" }),
|
|
7947
7965
|
Transform2(({ value }) => {
|
|
7948
7966
|
if (Array.isArray(value)) {
|
|
7949
7967
|
const val = value[0];
|
|
@@ -7956,7 +7974,7 @@ __decorateClass([
|
|
|
7956
7974
|
], CreateFreelancerDto.prototype, "about", 2);
|
|
7957
7975
|
__decorateClass([
|
|
7958
7976
|
IsOptional38(),
|
|
7959
|
-
|
|
7977
|
+
IsString42({ message: "designation must be a string" }),
|
|
7960
7978
|
Transform2(({ value }) => {
|
|
7961
7979
|
if (Array.isArray(value)) {
|
|
7962
7980
|
const val = value[0];
|
|
@@ -7982,14 +8000,14 @@ __decorateClass([
|
|
|
7982
8000
|
if (Array.isArray(value)) value = value[0];
|
|
7983
8001
|
return value === null || value === "" ? void 0 : value;
|
|
7984
8002
|
}),
|
|
7985
|
-
|
|
8003
|
+
MinLength13(6, { message: "Password must be at least 6 characters." }),
|
|
7986
8004
|
MaxLength17(32, { message: "Password must not exceed 32 characters." }),
|
|
7987
8005
|
Matches9(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
7988
8006
|
message: "Password must include letters, numbers and symbols."
|
|
7989
8007
|
})
|
|
7990
8008
|
], CreateFreelancerDto.prototype, "password", 2);
|
|
7991
8009
|
__decorateClass([
|
|
7992
|
-
|
|
8010
|
+
IsNotEmpty65({ message: "Please enter confirm password." }),
|
|
7993
8011
|
Match("confirmPassword", { message: "Passwords do not match" }),
|
|
7994
8012
|
Transform2(({ value }) => {
|
|
7995
8013
|
if (Array.isArray(value)) {
|
|
@@ -8074,7 +8092,7 @@ __decorateClass([
|
|
|
8074
8092
|
__decorateClass([
|
|
8075
8093
|
ValidateIf8((o) => o.isImmediateJoiner === false),
|
|
8076
8094
|
IsOptional38(),
|
|
8077
|
-
|
|
8095
|
+
IsString42({ message: "availabilityToJoin must be a string" }),
|
|
8078
8096
|
Transform2(({ value }) => {
|
|
8079
8097
|
if (Array.isArray(value)) {
|
|
8080
8098
|
const val = value[0];
|
|
@@ -8100,7 +8118,7 @@ __decorateClass([
|
|
|
8100
8118
|
], CreateFreelancerDto.prototype, "linkedinProfileLink", 2);
|
|
8101
8119
|
__decorateClass([
|
|
8102
8120
|
IsOptional38(),
|
|
8103
|
-
|
|
8121
|
+
IsString42({ message: "Kaggle profile link must be a string" }),
|
|
8104
8122
|
Transform2(({ value }) => {
|
|
8105
8123
|
if (Array.isArray(value)) {
|
|
8106
8124
|
const val = value[0];
|
|
@@ -8156,7 +8174,7 @@ __decorateClass([
|
|
|
8156
8174
|
|
|
8157
8175
|
// src/modules/freelancer-admin/dto/update-freelancer.dto.ts
|
|
8158
8176
|
import {
|
|
8159
|
-
IsString as
|
|
8177
|
+
IsString as IsString43,
|
|
8160
8178
|
IsEmail as IsEmail14,
|
|
8161
8179
|
IsBoolean as IsBoolean12,
|
|
8162
8180
|
IsOptional as IsOptional39,
|
|
@@ -8164,9 +8182,9 @@ import {
|
|
|
8164
8182
|
IsNumber as IsNumber10,
|
|
8165
8183
|
IsUrl as IsUrl4,
|
|
8166
8184
|
MaxLength as MaxLength18,
|
|
8167
|
-
MinLength as
|
|
8185
|
+
MinLength as MinLength14,
|
|
8168
8186
|
Matches as Matches10,
|
|
8169
|
-
IsNotEmpty as
|
|
8187
|
+
IsNotEmpty as IsNotEmpty66,
|
|
8170
8188
|
ValidateIf as ValidateIf9,
|
|
8171
8189
|
IsInt as IsInt8
|
|
8172
8190
|
} from "class-validator";
|
|
@@ -8187,7 +8205,7 @@ var UpdateFreelancerDto = class {
|
|
|
8187
8205
|
};
|
|
8188
8206
|
__decorateClass([
|
|
8189
8207
|
IsOptional39(),
|
|
8190
|
-
|
|
8208
|
+
IsString43({ message: "Full name must be a string" }),
|
|
8191
8209
|
MaxLength18(100, { message: "Full name must not exceed 100 characters" }),
|
|
8192
8210
|
Transform3(({ value }) => {
|
|
8193
8211
|
if (Array.isArray(value)) return value[0]?.trim();
|
|
@@ -8204,7 +8222,7 @@ __decorateClass([
|
|
|
8204
8222
|
], UpdateFreelancerDto.prototype, "email", 2);
|
|
8205
8223
|
__decorateClass([
|
|
8206
8224
|
IsOptional39(),
|
|
8207
|
-
|
|
8225
|
+
IsString43({ message: "Mobile code must be a string (e.g., +1)" }),
|
|
8208
8226
|
Transform3(({ value }) => {
|
|
8209
8227
|
if (Array.isArray(value)) return value[0]?.trim();
|
|
8210
8228
|
return typeof value === "string" ? value.trim() : value;
|
|
@@ -8212,15 +8230,15 @@ __decorateClass([
|
|
|
8212
8230
|
], UpdateFreelancerDto.prototype, "mobileCode", 2);
|
|
8213
8231
|
__decorateClass([
|
|
8214
8232
|
IsOptional39(),
|
|
8215
|
-
|
|
8233
|
+
IsString43({ message: "Mobile must be a string (e.g., 1243253534)" }),
|
|
8216
8234
|
Transform3(({ value }) => {
|
|
8217
8235
|
if (Array.isArray(value)) return value[0]?.trim();
|
|
8218
8236
|
return typeof value === "string" ? value.trim() : value;
|
|
8219
8237
|
})
|
|
8220
8238
|
], UpdateFreelancerDto.prototype, "mobile", 2);
|
|
8221
8239
|
__decorateClass([
|
|
8222
|
-
|
|
8223
|
-
|
|
8240
|
+
IsNotEmpty66({ message: "Please enter address." }),
|
|
8241
|
+
IsString43({ message: "address must be a string" }),
|
|
8224
8242
|
Transform3(({ value }) => {
|
|
8225
8243
|
if (Array.isArray(value)) {
|
|
8226
8244
|
const val = value[0];
|
|
@@ -8231,7 +8249,7 @@ __decorateClass([
|
|
|
8231
8249
|
], UpdateFreelancerDto.prototype, "address", 2);
|
|
8232
8250
|
__decorateClass([
|
|
8233
8251
|
IsOptional39(),
|
|
8234
|
-
|
|
8252
|
+
IsString43({ message: "addressLine must be a string" }),
|
|
8235
8253
|
Transform3(({ value }) => {
|
|
8236
8254
|
if (Array.isArray(value)) {
|
|
8237
8255
|
const val = value[0];
|
|
@@ -8271,7 +8289,7 @@ __decorateClass([
|
|
|
8271
8289
|
], UpdateFreelancerDto.prototype, "cityId", 2);
|
|
8272
8290
|
__decorateClass([
|
|
8273
8291
|
IsOptional39(),
|
|
8274
|
-
|
|
8292
|
+
IsString43({ message: "postalCode must be a string" }),
|
|
8275
8293
|
Transform3(({ value }) => {
|
|
8276
8294
|
if (Array.isArray(value)) {
|
|
8277
8295
|
const val = value[0];
|
|
@@ -8284,7 +8302,7 @@ __decorateClass([
|
|
|
8284
8302
|
], UpdateFreelancerDto.prototype, "postalCode", 2);
|
|
8285
8303
|
__decorateClass([
|
|
8286
8304
|
IsOptional39(),
|
|
8287
|
-
|
|
8305
|
+
IsString43({ message: "about must be a string" }),
|
|
8288
8306
|
Transform3(({ value }) => {
|
|
8289
8307
|
if (Array.isArray(value)) {
|
|
8290
8308
|
const val = value[0];
|
|
@@ -8297,7 +8315,7 @@ __decorateClass([
|
|
|
8297
8315
|
], UpdateFreelancerDto.prototype, "about", 2);
|
|
8298
8316
|
__decorateClass([
|
|
8299
8317
|
IsOptional39(),
|
|
8300
|
-
|
|
8318
|
+
IsString43({ message: "designation must be a string" }),
|
|
8301
8319
|
Transform3(({ value }) => {
|
|
8302
8320
|
if (Array.isArray(value)) {
|
|
8303
8321
|
const val = value[0];
|
|
@@ -8323,7 +8341,7 @@ __decorateClass([
|
|
|
8323
8341
|
if (Array.isArray(value)) value = value[0];
|
|
8324
8342
|
return value === null || value === "" ? void 0 : value;
|
|
8325
8343
|
}),
|
|
8326
|
-
|
|
8344
|
+
MinLength14(6, { message: "Password must be at least 6 characters." }),
|
|
8327
8345
|
MaxLength18(32, { message: "Password must not exceed 32 characters." }),
|
|
8328
8346
|
Matches10(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
8329
8347
|
message: "Password must include letters, numbers and symbols."
|
|
@@ -8404,7 +8422,7 @@ __decorateClass([
|
|
|
8404
8422
|
__decorateClass([
|
|
8405
8423
|
ValidateIf9((o) => o.isImmediateJoiner === false),
|
|
8406
8424
|
IsOptional39(),
|
|
8407
|
-
|
|
8425
|
+
IsString43({ message: "availabilityToJoin must be a string" }),
|
|
8408
8426
|
Transform3(({ value }) => {
|
|
8409
8427
|
if (Array.isArray(value)) {
|
|
8410
8428
|
const val = value[0];
|
|
@@ -8430,7 +8448,7 @@ __decorateClass([
|
|
|
8430
8448
|
], UpdateFreelancerDto.prototype, "linkedinProfileLink", 2);
|
|
8431
8449
|
__decorateClass([
|
|
8432
8450
|
IsOptional39(),
|
|
8433
|
-
|
|
8451
|
+
IsString43({ message: "Kaggle profile link must be a string" }),
|
|
8434
8452
|
Transform3(({ value }) => {
|
|
8435
8453
|
if (Array.isArray(value)) {
|
|
8436
8454
|
const val = value[0];
|
|
@@ -8485,16 +8503,16 @@ __decorateClass([
|
|
|
8485
8503
|
], UpdateFreelancerDto.prototype, "file", 2);
|
|
8486
8504
|
|
|
8487
8505
|
// src/modules/freelancer-admin/dto/send-ai-assessment-link.dto.ts
|
|
8488
|
-
import { IsNotEmpty as
|
|
8506
|
+
import { IsNotEmpty as IsNotEmpty67, IsUUID as IsUUID19 } from "class-validator";
|
|
8489
8507
|
var SendAiAssessmentLinkDto = class {
|
|
8490
8508
|
};
|
|
8491
8509
|
__decorateClass([
|
|
8492
|
-
|
|
8493
|
-
|
|
8510
|
+
IsUUID19("4", { message: "Freelancer UUID must be a valid UUID." }),
|
|
8511
|
+
IsNotEmpty67({ message: "Freelancer UUID is required." })
|
|
8494
8512
|
], SendAiAssessmentLinkDto.prototype, "uuid", 2);
|
|
8495
8513
|
|
|
8496
8514
|
// src/modules/freelancer-admin/dto/update-assessment-request-status.dto.ts
|
|
8497
|
-
import { IsEnum as IsEnum26, IsOptional as IsOptional40, IsString as
|
|
8515
|
+
import { IsEnum as IsEnum26, IsOptional as IsOptional40, IsString as IsString44 } from "class-validator";
|
|
8498
8516
|
var AssessmentRequestStatus = /* @__PURE__ */ ((AssessmentRequestStatus2) => {
|
|
8499
8517
|
AssessmentRequestStatus2["PENDING"] = "PENDING";
|
|
8500
8518
|
AssessmentRequestStatus2["APPROVED"] = "APPROVED";
|
|
@@ -8511,7 +8529,7 @@ __decorateClass([
|
|
|
8511
8529
|
], UpdateAssessmentRequestStatusDto.prototype, "status", 2);
|
|
8512
8530
|
__decorateClass([
|
|
8513
8531
|
IsOptional40(),
|
|
8514
|
-
|
|
8532
|
+
IsString44()
|
|
8515
8533
|
], UpdateAssessmentRequestStatusDto.prototype, "remarks", 2);
|
|
8516
8534
|
|
|
8517
8535
|
// src/modules/freelancer-admin/dto/admin-export-freelancerV2-optimised.dto.ts
|
|
@@ -8528,6 +8546,16 @@ __decorateClass([
|
|
|
8528
8546
|
IsEmail15({}, { each: true, message: "Each email must be a valid email address" })
|
|
8529
8547
|
], AdminExportFreelancerV2OptimisedDto.prototype, "customEmails", 2);
|
|
8530
8548
|
|
|
8549
|
+
// src/modules/freelancer-admin/dto/update-admin-freelancer-account-status.dto.ts
|
|
8550
|
+
import { IsEnum as IsEnum27 } from "class-validator";
|
|
8551
|
+
var UpdateAdminFreelancerAccountStatusDto = class {
|
|
8552
|
+
};
|
|
8553
|
+
__decorateClass([
|
|
8554
|
+
IsEnum27(AccountStatus, {
|
|
8555
|
+
message: `accountStatus must be one of: ${Object.values(AccountStatus).join(", ")}`
|
|
8556
|
+
})
|
|
8557
|
+
], UpdateAdminFreelancerAccountStatusDto.prototype, "accountStatus", 2);
|
|
8558
|
+
|
|
8531
8559
|
// src/modules/client-admin/pattern/pattern.ts
|
|
8532
8560
|
var CLIENT_ADMIN_PATTERNS = {
|
|
8533
8561
|
fetchAdminClients: "fetch.admin.clients",
|
|
@@ -8540,16 +8568,18 @@ var CLIENT_ADMIN_PATTERNS = {
|
|
|
8540
8568
|
fetchClientDropdown: "fetch.client.dropdown",
|
|
8541
8569
|
fetchClientGraphCount: "fetch.client.graph.count",
|
|
8542
8570
|
adminExportClientV2Optimised: "admin.export.client.v2.optimised",
|
|
8543
|
-
updateAdminClientAccountStatus: "update.admin.client.account.status"
|
|
8571
|
+
updateAdminClientAccountStatus: "update.admin.client.account.status",
|
|
8572
|
+
skipServiceAgreementFlow: "skip.service.agreement.flow",
|
|
8573
|
+
updateAdminClientJobPostingRestrictionStatus: "update.admin.client.job.posting.restriction.status"
|
|
8544
8574
|
};
|
|
8545
8575
|
|
|
8546
8576
|
// src/modules/client-admin/dto/create-client.dto.ts
|
|
8547
8577
|
import {
|
|
8548
|
-
IsNotEmpty as
|
|
8578
|
+
IsNotEmpty as IsNotEmpty68,
|
|
8549
8579
|
IsEmail as IsEmail16,
|
|
8550
8580
|
IsOptional as IsOptional42,
|
|
8551
|
-
IsString as
|
|
8552
|
-
MinLength as
|
|
8581
|
+
IsString as IsString45,
|
|
8582
|
+
MinLength as MinLength15,
|
|
8553
8583
|
MaxLength as MaxLength19,
|
|
8554
8584
|
Matches as Matches11,
|
|
8555
8585
|
IsInt as IsInt9,
|
|
@@ -8559,52 +8589,52 @@ import { Type as Type8 } from "class-transformer";
|
|
|
8559
8589
|
var CreateClientDto = class {
|
|
8560
8590
|
};
|
|
8561
8591
|
__decorateClass([
|
|
8562
|
-
|
|
8563
|
-
|
|
8592
|
+
IsNotEmpty68({ message: "Please enter first name." }),
|
|
8593
|
+
IsString45()
|
|
8564
8594
|
], CreateClientDto.prototype, "firstName", 2);
|
|
8565
8595
|
__decorateClass([
|
|
8566
|
-
|
|
8567
|
-
|
|
8596
|
+
IsNotEmpty68({ message: "Please enter last name." }),
|
|
8597
|
+
IsString45()
|
|
8568
8598
|
], CreateClientDto.prototype, "lastName", 2);
|
|
8569
8599
|
__decorateClass([
|
|
8570
|
-
|
|
8600
|
+
IsNotEmpty68({ message: "Please enter email." }),
|
|
8571
8601
|
IsEmail16()
|
|
8572
8602
|
], CreateClientDto.prototype, "email", 2);
|
|
8573
8603
|
__decorateClass([
|
|
8574
|
-
|
|
8575
|
-
|
|
8604
|
+
IsNotEmpty68({ message: "Please enter mobile code." }),
|
|
8605
|
+
IsString45({ message: "Mobile code must be a string." })
|
|
8576
8606
|
], CreateClientDto.prototype, "mobileCode", 2);
|
|
8577
8607
|
__decorateClass([
|
|
8578
|
-
|
|
8579
|
-
|
|
8608
|
+
IsNotEmpty68({ message: "Please enter phone number." }),
|
|
8609
|
+
IsString45({ message: "Phone number must be a string." })
|
|
8580
8610
|
], CreateClientDto.prototype, "phoneNumber", 2);
|
|
8581
8611
|
__decorateClass([
|
|
8582
|
-
|
|
8583
|
-
|
|
8612
|
+
IsNotEmpty68({ message: "Please enter password." }),
|
|
8613
|
+
MinLength15(6),
|
|
8584
8614
|
MaxLength19(32),
|
|
8585
8615
|
Matches11(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
8586
8616
|
message: "Password must include letters, numbers and symbols."
|
|
8587
8617
|
})
|
|
8588
8618
|
], CreateClientDto.prototype, "password", 2);
|
|
8589
8619
|
__decorateClass([
|
|
8590
|
-
|
|
8620
|
+
IsNotEmpty68({ message: "Please enter confirm password." }),
|
|
8591
8621
|
Match("confirmPassword", { message: "Passwords do not match" })
|
|
8592
8622
|
], CreateClientDto.prototype, "confirmPassword", 2);
|
|
8593
8623
|
__decorateClass([
|
|
8594
|
-
|
|
8595
|
-
|
|
8624
|
+
IsNotEmpty68({ message: "Please enter company name." }),
|
|
8625
|
+
IsString45()
|
|
8596
8626
|
], CreateClientDto.prototype, "companyName", 2);
|
|
8597
8627
|
__decorateClass([
|
|
8598
8628
|
IsOptional42(),
|
|
8599
|
-
|
|
8629
|
+
IsString45()
|
|
8600
8630
|
], CreateClientDto.prototype, "foundUsOn", 2);
|
|
8601
8631
|
__decorateClass([
|
|
8602
8632
|
IsOptional42(),
|
|
8603
|
-
|
|
8633
|
+
IsString45()
|
|
8604
8634
|
], CreateClientDto.prototype, "foundUsOnDetail", 2);
|
|
8605
8635
|
__decorateClass([
|
|
8606
8636
|
IsOptional42(),
|
|
8607
|
-
|
|
8637
|
+
IsString45({ message: "About company must be a string." })
|
|
8608
8638
|
], CreateClientDto.prototype, "about", 2);
|
|
8609
8639
|
__decorateClass([
|
|
8610
8640
|
IsOptional42(),
|
|
@@ -8612,15 +8642,15 @@ __decorateClass([
|
|
|
8612
8642
|
], CreateClientDto.prototype, "webSite", 2);
|
|
8613
8643
|
__decorateClass([
|
|
8614
8644
|
IsOptional42(),
|
|
8615
|
-
|
|
8645
|
+
IsString45({ message: "Company address must be a string." })
|
|
8616
8646
|
], CreateClientDto.prototype, "companyAddress", 2);
|
|
8617
8647
|
__decorateClass([
|
|
8618
8648
|
IsOptional42(),
|
|
8619
|
-
|
|
8649
|
+
IsString45({ message: "Address line must be a string." })
|
|
8620
8650
|
], CreateClientDto.prototype, "addressLine", 2);
|
|
8621
8651
|
__decorateClass([
|
|
8622
8652
|
IsOptional42(),
|
|
8623
|
-
|
|
8653
|
+
IsString45({ message: "Postal code must be a string." })
|
|
8624
8654
|
], CreateClientDto.prototype, "postalCode", 2);
|
|
8625
8655
|
__decorateClass([
|
|
8626
8656
|
IsOptional42(),
|
|
@@ -8639,12 +8669,13 @@ __decorateClass([
|
|
|
8639
8669
|
], CreateClientDto.prototype, "cityId", 2);
|
|
8640
8670
|
|
|
8641
8671
|
// src/modules/client-admin/dto/update-client-status.dto.ts
|
|
8642
|
-
import {
|
|
8672
|
+
import { IsEnum as IsEnum29 } from "class-validator";
|
|
8643
8673
|
var UpdateClientAccountStatusDto = class {
|
|
8644
8674
|
};
|
|
8645
8675
|
__decorateClass([
|
|
8646
|
-
|
|
8647
|
-
|
|
8676
|
+
IsEnum29(AccountStatus, {
|
|
8677
|
+
message: `accountStatus must be one of: ${Object.values(AccountStatus).join(", ")}`
|
|
8678
|
+
})
|
|
8648
8679
|
], UpdateClientAccountStatusDto.prototype, "accountStatus", 2);
|
|
8649
8680
|
|
|
8650
8681
|
// src/modules/client-admin/dto/update-client.dto.ts
|
|
@@ -8654,7 +8685,7 @@ import {
|
|
|
8654
8685
|
IsEmail as IsEmail17,
|
|
8655
8686
|
IsOptional as IsOptional43,
|
|
8656
8687
|
IsString as IsString46,
|
|
8657
|
-
MinLength as
|
|
8688
|
+
MinLength as MinLength16,
|
|
8658
8689
|
MaxLength as MaxLength20,
|
|
8659
8690
|
Matches as Matches12
|
|
8660
8691
|
} from "class-validator";
|
|
@@ -8683,7 +8714,7 @@ __decorateClass([
|
|
|
8683
8714
|
__decorateClass([
|
|
8684
8715
|
IsOptional43(),
|
|
8685
8716
|
Transform5(({ value }) => value === null || value === "" ? void 0 : value),
|
|
8686
|
-
|
|
8717
|
+
MinLength16(6, { message: "Password must be at least 6 characters." }),
|
|
8687
8718
|
MaxLength20(32, { message: "Password must not exceed 32 characters." }),
|
|
8688
8719
|
Matches12(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
8689
8720
|
message: "Password must include letters, numbers and symbols."
|
|
@@ -8749,15 +8780,33 @@ __decorateClass([
|
|
|
8749
8780
|
], AdminExportClientV2OptimisedDto.prototype, "customEmails", 2);
|
|
8750
8781
|
|
|
8751
8782
|
// src/modules/client-admin/dto/update-admin-client-account-status.dto.ts
|
|
8752
|
-
import { IsEnum as
|
|
8783
|
+
import { IsEnum as IsEnum31 } from "class-validator";
|
|
8753
8784
|
var UpdateAdminClientAccountStatusDto = class {
|
|
8754
8785
|
};
|
|
8755
8786
|
__decorateClass([
|
|
8756
|
-
|
|
8787
|
+
IsEnum31(AccountStatus, {
|
|
8757
8788
|
message: `accountStatus must be one of: ${Object.values(AccountStatus).join(", ")}`
|
|
8758
8789
|
})
|
|
8759
8790
|
], UpdateAdminClientAccountStatusDto.prototype, "accountStatus", 2);
|
|
8760
8791
|
|
|
8792
|
+
// src/modules/client-admin/dto/update-admin-client-job-posting-restriction.dto.ts
|
|
8793
|
+
import { IsBoolean as IsBoolean13, IsNotEmpty as IsNotEmpty70 } from "class-validator";
|
|
8794
|
+
var UpdateAdminClientJobPostingRestrictionDto = class {
|
|
8795
|
+
};
|
|
8796
|
+
__decorateClass([
|
|
8797
|
+
IsNotEmpty70({ message: "Job posting restriction status is required." }),
|
|
8798
|
+
IsBoolean13({ message: "Job posting restriction status must be a boolean value." })
|
|
8799
|
+
], UpdateAdminClientJobPostingRestrictionDto.prototype, "isJobPostingRestricted", 2);
|
|
8800
|
+
|
|
8801
|
+
// src/modules/client-admin/dto/skip-service-agreement-flow.dto.ts
|
|
8802
|
+
import { IsBoolean as IsBoolean14, IsNotEmpty as IsNotEmpty71 } from "class-validator";
|
|
8803
|
+
var SkipServiceAgreementFlowDto = class {
|
|
8804
|
+
};
|
|
8805
|
+
__decorateClass([
|
|
8806
|
+
IsNotEmpty71({ message: "Skip service agreement flag is required." }),
|
|
8807
|
+
IsBoolean14({ message: "Skip service agreement must be a boolean value." })
|
|
8808
|
+
], SkipServiceAgreementFlowDto.prototype, "skipServiceAgreement", 2);
|
|
8809
|
+
|
|
8761
8810
|
// src/modules/user/freelancer-declaration/pattern/pattern.ts
|
|
8762
8811
|
var FREELANCER_DECLARATION_PATTERN = {
|
|
8763
8812
|
fetchFreelancerDeclaration: "fetch.freelancer.declaration",
|
|
@@ -8765,7 +8814,7 @@ var FREELANCER_DECLARATION_PATTERN = {
|
|
|
8765
8814
|
};
|
|
8766
8815
|
|
|
8767
8816
|
// src/modules/user/freelancer-declaration/dto/freelancer-declaration.dto.ts
|
|
8768
|
-
import { IsOptional as IsOptional45, IsEnum as
|
|
8817
|
+
import { IsOptional as IsOptional45, IsEnum as IsEnum32, IsString as IsString47, IsNotEmpty as IsNotEmpty72, IsIn as IsIn3 } from "class-validator";
|
|
8769
8818
|
var DocumentTypeEnum = /* @__PURE__ */ ((DocumentTypeEnum2) => {
|
|
8770
8819
|
DocumentTypeEnum2["AADHAAR"] = "AADHAAR_CARD";
|
|
8771
8820
|
DocumentTypeEnum2["PASSPORT"] = "PASSPORT";
|
|
@@ -8780,10 +8829,10 @@ __decorateClass([
|
|
|
8780
8829
|
IsString47({ message: "UUID must be a string" })
|
|
8781
8830
|
], FreelancerDeclarationDto.prototype, "uuid", 2);
|
|
8782
8831
|
__decorateClass([
|
|
8783
|
-
|
|
8832
|
+
IsEnum32(DocumentTypeEnum, { message: "Document type must be one of AADHAAR_CARD, PASSPORT, DRIVING_LICENSE, PAN_CARD" })
|
|
8784
8833
|
], FreelancerDeclarationDto.prototype, "documentType", 2);
|
|
8785
8834
|
__decorateClass([
|
|
8786
|
-
|
|
8835
|
+
IsNotEmpty72({ message: "Please accept the declaration " }),
|
|
8787
8836
|
IsString47(),
|
|
8788
8837
|
IsIn3([
|
|
8789
8838
|
"true"
|
|
@@ -8800,12 +8849,12 @@ var CLIENT_CANDIDATE_PREFERENCE_PATTERN = {
|
|
|
8800
8849
|
};
|
|
8801
8850
|
|
|
8802
8851
|
// src/modules/user/client-candidate-preference/dto/mark-candidate-status.dto.ts
|
|
8803
|
-
import { IsNotEmpty as
|
|
8852
|
+
import { IsNotEmpty as IsNotEmpty73, IsNumber as IsNumber11, IsOptional as IsOptional46 } from "class-validator";
|
|
8804
8853
|
import { Type as Type10 } from "class-transformer";
|
|
8805
8854
|
var MarkCandidateStatusDto = class {
|
|
8806
8855
|
};
|
|
8807
8856
|
__decorateClass([
|
|
8808
|
-
|
|
8857
|
+
IsNotEmpty73({ message: "Candidate ID is required." }),
|
|
8809
8858
|
IsNumber11({}, { message: "Candidate ID must be a number." }),
|
|
8810
8859
|
Type10(() => Number)
|
|
8811
8860
|
], MarkCandidateStatusDto.prototype, "candidateId", 2);
|
|
@@ -8843,45 +8892,45 @@ var CMS_PATTERNS = {
|
|
|
8843
8892
|
};
|
|
8844
8893
|
|
|
8845
8894
|
// src/modules/cms/dto/create-cms.dto.ts
|
|
8846
|
-
import { IsBoolean as
|
|
8895
|
+
import { IsBoolean as IsBoolean15, IsNotEmpty as IsNotEmpty74, IsOptional as IsOptional48 } from "class-validator";
|
|
8847
8896
|
var CreateCmsDto = class {
|
|
8848
8897
|
};
|
|
8849
8898
|
__decorateClass([
|
|
8850
|
-
|
|
8899
|
+
IsNotEmpty74({ message: "Please enter name." })
|
|
8851
8900
|
], CreateCmsDto.prototype, "title", 2);
|
|
8852
8901
|
__decorateClass([
|
|
8853
8902
|
IsOptional48()
|
|
8854
8903
|
], CreateCmsDto.prototype, "content", 2);
|
|
8855
8904
|
__decorateClass([
|
|
8856
8905
|
IsOptional48(),
|
|
8857
|
-
|
|
8906
|
+
IsBoolean15({ message: "Is active must be a boolean value" })
|
|
8858
8907
|
], CreateCmsDto.prototype, "isActive", 2);
|
|
8859
8908
|
|
|
8860
8909
|
// src/modules/cms/dto/update-cms-status.dto.ts
|
|
8861
|
-
import { IsBoolean as
|
|
8910
|
+
import { IsBoolean as IsBoolean16, IsNotEmpty as IsNotEmpty75 } from "class-validator";
|
|
8862
8911
|
var UpdateCmsStatusDto = class {
|
|
8863
8912
|
};
|
|
8864
8913
|
__decorateClass([
|
|
8865
|
-
|
|
8866
|
-
|
|
8914
|
+
IsNotEmpty75({ message: "Please specify cms status." }),
|
|
8915
|
+
IsBoolean16({ message: "Is active must be a boolean value" })
|
|
8867
8916
|
], UpdateCmsStatusDto.prototype, "isActive", 2);
|
|
8868
8917
|
|
|
8869
8918
|
// src/modules/cms/dto/update-cms.dto.ts
|
|
8870
|
-
import { IsBoolean as
|
|
8919
|
+
import { IsBoolean as IsBoolean17, IsNotEmpty as IsNotEmpty76, IsOptional as IsOptional49 } from "class-validator";
|
|
8871
8920
|
var UpdateCmsDto = class {
|
|
8872
8921
|
};
|
|
8873
8922
|
__decorateClass([
|
|
8874
8923
|
IsOptional49()
|
|
8875
8924
|
], UpdateCmsDto.prototype, "uuid", 2);
|
|
8876
8925
|
__decorateClass([
|
|
8877
|
-
|
|
8926
|
+
IsNotEmpty76({ message: "Please enter name." })
|
|
8878
8927
|
], UpdateCmsDto.prototype, "title", 2);
|
|
8879
8928
|
__decorateClass([
|
|
8880
8929
|
IsOptional49()
|
|
8881
8930
|
], UpdateCmsDto.prototype, "content", 2);
|
|
8882
8931
|
__decorateClass([
|
|
8883
8932
|
IsOptional49(),
|
|
8884
|
-
|
|
8933
|
+
IsBoolean17({ message: "Is active must be a boolean value" })
|
|
8885
8934
|
], UpdateCmsDto.prototype, "isActive", 2);
|
|
8886
8935
|
|
|
8887
8936
|
// src/modules/geographic/pattern/pattern.ts
|
|
@@ -8910,19 +8959,20 @@ var ADMIN_JOB_PATTERN = {
|
|
|
8910
8959
|
adminFetchJobByIdV2: "admin.fetch.job.by.id.v2",
|
|
8911
8960
|
adminExportJobsToCSV: "admin.export.jobs.to.csv",
|
|
8912
8961
|
adminFetchJobDescription: "admin.fetch.job.description",
|
|
8913
|
-
adminUpdateJobDescription: "admin.update.job.description"
|
|
8962
|
+
adminUpdateJobDescription: "admin.update.job.description",
|
|
8963
|
+
adminFetchJobsPostedByClient: "AdminFetchJobsPostedByClient"
|
|
8914
8964
|
};
|
|
8915
8965
|
|
|
8916
8966
|
// src/modules/job-admin/dto/admin-create-job-information.dto.ts
|
|
8917
8967
|
import { Type as Type12 } from "class-transformer";
|
|
8918
8968
|
import {
|
|
8919
8969
|
IsString as IsString48,
|
|
8920
|
-
IsEnum as
|
|
8970
|
+
IsEnum as IsEnum33,
|
|
8921
8971
|
IsInt as IsInt10,
|
|
8922
8972
|
IsOptional as IsOptional50,
|
|
8923
8973
|
IsArray as IsArray17,
|
|
8924
8974
|
IsDateString as IsDateString3,
|
|
8925
|
-
IsNotEmpty as
|
|
8975
|
+
IsNotEmpty as IsNotEmpty77,
|
|
8926
8976
|
ArrayNotEmpty as ArrayNotEmpty9,
|
|
8927
8977
|
Min as Min6,
|
|
8928
8978
|
IsNumber as IsNumber13
|
|
@@ -8943,7 +8993,7 @@ var AdminCreateJobInformationDto = class {
|
|
|
8943
8993
|
};
|
|
8944
8994
|
__decorateClass([
|
|
8945
8995
|
IsString48({ message: "Job role must be a string." }),
|
|
8946
|
-
|
|
8996
|
+
IsNotEmpty77({ message: "Job role is required." })
|
|
8947
8997
|
], AdminCreateJobInformationDto.prototype, "jobRole", 2);
|
|
8948
8998
|
__decorateClass([
|
|
8949
8999
|
IsOptional50(),
|
|
@@ -8959,14 +9009,14 @@ __decorateClass([
|
|
|
8959
9009
|
Min6(1, { message: "There must be at least one opening." })
|
|
8960
9010
|
], AdminCreateJobInformationDto.prototype, "openings", 2);
|
|
8961
9011
|
__decorateClass([
|
|
8962
|
-
|
|
9012
|
+
IsEnum33(JobLocationEnumDto, {
|
|
8963
9013
|
message: `Location must be one of: ${Object.values(JobLocationEnumDto).join(
|
|
8964
9014
|
", "
|
|
8965
9015
|
)}.`
|
|
8966
9016
|
})
|
|
8967
9017
|
], AdminCreateJobInformationDto.prototype, "location", 2);
|
|
8968
9018
|
__decorateClass([
|
|
8969
|
-
|
|
9019
|
+
IsEnum33(TypeOfEmploymentEnumDto, {
|
|
8970
9020
|
message: `Type of employment must be one of: ${Object.values(
|
|
8971
9021
|
TypeOfEmploymentEnumDto
|
|
8972
9022
|
).join(", ")}.`
|
|
@@ -8974,15 +9024,15 @@ __decorateClass([
|
|
|
8974
9024
|
], AdminCreateJobInformationDto.prototype, "typeOfEmployment", 2);
|
|
8975
9025
|
__decorateClass([
|
|
8976
9026
|
IsString48({ message: "Onboarding Days must be a string." }),
|
|
8977
|
-
|
|
9027
|
+
IsNotEmpty77({ message: "Onboarding Days is required." })
|
|
8978
9028
|
], AdminCreateJobInformationDto.prototype, "onboardingTat", 2);
|
|
8979
9029
|
__decorateClass([
|
|
8980
9030
|
IsString48({ message: "Communication skills must be a string." }),
|
|
8981
|
-
|
|
9031
|
+
IsNotEmpty77({ message: "Communication skills are required." })
|
|
8982
9032
|
], AdminCreateJobInformationDto.prototype, "candidateCommunicationSkills", 2);
|
|
8983
9033
|
__decorateClass([
|
|
8984
9034
|
IsString48({ message: "Currency must be a string." }),
|
|
8985
|
-
|
|
9035
|
+
IsNotEmpty77({ message: "Currency is required." })
|
|
8986
9036
|
], AdminCreateJobInformationDto.prototype, "currency", 2);
|
|
8987
9037
|
__decorateClass([
|
|
8988
9038
|
Type12(() => Number),
|
|
@@ -9028,12 +9078,12 @@ __decorateClass([
|
|
|
9028
9078
|
import { Type as Type13 } from "class-transformer";
|
|
9029
9079
|
import {
|
|
9030
9080
|
IsString as IsString49,
|
|
9031
|
-
IsEnum as
|
|
9081
|
+
IsEnum as IsEnum34,
|
|
9032
9082
|
IsInt as IsInt11,
|
|
9033
9083
|
IsOptional as IsOptional51,
|
|
9034
9084
|
IsArray as IsArray18,
|
|
9035
9085
|
IsDateString as IsDateString4,
|
|
9036
|
-
IsNotEmpty as
|
|
9086
|
+
IsNotEmpty as IsNotEmpty78,
|
|
9037
9087
|
ArrayNotEmpty as ArrayNotEmpty10,
|
|
9038
9088
|
Min as Min7,
|
|
9039
9089
|
IsNumber as IsNumber14
|
|
@@ -9054,7 +9104,7 @@ var AdminUpdateJobInformationDto = class {
|
|
|
9054
9104
|
};
|
|
9055
9105
|
__decorateClass([
|
|
9056
9106
|
IsString49({ message: "Job role must be a string." }),
|
|
9057
|
-
|
|
9107
|
+
IsNotEmpty78({ message: "Job role is required." })
|
|
9058
9108
|
], AdminUpdateJobInformationDto.prototype, "jobRole", 2);
|
|
9059
9109
|
__decorateClass([
|
|
9060
9110
|
IsOptional51(),
|
|
@@ -9070,14 +9120,14 @@ __decorateClass([
|
|
|
9070
9120
|
Min7(1, { message: "There must be at least one opening." })
|
|
9071
9121
|
], AdminUpdateJobInformationDto.prototype, "openings", 2);
|
|
9072
9122
|
__decorateClass([
|
|
9073
|
-
|
|
9123
|
+
IsEnum34(JobLocationEnums, {
|
|
9074
9124
|
message: `Location must be one of: ${Object.values(JobLocationEnums).join(
|
|
9075
9125
|
", "
|
|
9076
9126
|
)}.`
|
|
9077
9127
|
})
|
|
9078
9128
|
], AdminUpdateJobInformationDto.prototype, "location", 2);
|
|
9079
9129
|
__decorateClass([
|
|
9080
|
-
|
|
9130
|
+
IsEnum34(TypeOfEmploymentEnums, {
|
|
9081
9131
|
message: `Type of employment must be one of: ${Object.values(
|
|
9082
9132
|
TypeOfEmploymentEnums
|
|
9083
9133
|
).join(", ")}.`
|
|
@@ -9085,15 +9135,15 @@ __decorateClass([
|
|
|
9085
9135
|
], AdminUpdateJobInformationDto.prototype, "typeOfEmployment", 2);
|
|
9086
9136
|
__decorateClass([
|
|
9087
9137
|
IsString49({ message: "Onboarding Days must be a string." }),
|
|
9088
|
-
|
|
9138
|
+
IsNotEmpty78({ message: "Onboarding Days is required." })
|
|
9089
9139
|
], AdminUpdateJobInformationDto.prototype, "onboardingTat", 2);
|
|
9090
9140
|
__decorateClass([
|
|
9091
9141
|
IsString49({ message: "Communication skills must be a string." }),
|
|
9092
|
-
|
|
9142
|
+
IsNotEmpty78({ message: "Communication skills are required." })
|
|
9093
9143
|
], AdminUpdateJobInformationDto.prototype, "candidateCommunicationSkills", 2);
|
|
9094
9144
|
__decorateClass([
|
|
9095
9145
|
IsString49({ message: "Currency must be a string." }),
|
|
9096
|
-
|
|
9146
|
+
IsNotEmpty78({ message: "Currency is required." })
|
|
9097
9147
|
], AdminUpdateJobInformationDto.prototype, "currency", 2);
|
|
9098
9148
|
__decorateClass([
|
|
9099
9149
|
Type13(() => Number),
|
|
@@ -9138,12 +9188,12 @@ __decorateClass([
|
|
|
9138
9188
|
// src/modules/job-admin/dto/admin-job-basic-information-v2.dto.ts
|
|
9139
9189
|
import {
|
|
9140
9190
|
IsString as IsString50,
|
|
9141
|
-
IsNotEmpty as
|
|
9191
|
+
IsNotEmpty as IsNotEmpty79,
|
|
9142
9192
|
IsArray as IsArray19,
|
|
9143
9193
|
ArrayNotEmpty as ArrayNotEmpty11,
|
|
9144
9194
|
IsNumber as IsNumber15,
|
|
9145
9195
|
IsOptional as IsOptional52,
|
|
9146
|
-
IsEnum as
|
|
9196
|
+
IsEnum as IsEnum35,
|
|
9147
9197
|
Min as Min8,
|
|
9148
9198
|
ValidateIf as ValidateIf10,
|
|
9149
9199
|
MaxLength as MaxLength21,
|
|
@@ -9203,7 +9253,7 @@ __decorateClass([
|
|
|
9203
9253
|
IsInt12({ message: "Client ID must be a valid integer." })
|
|
9204
9254
|
], AdminJobBasicInformationV2Dto.prototype, "clientId", 2);
|
|
9205
9255
|
__decorateClass([
|
|
9206
|
-
|
|
9256
|
+
IsNotEmpty79({ message: "Please enter job role" }),
|
|
9207
9257
|
IsString50({ message: "Job role must be a string" })
|
|
9208
9258
|
], AdminJobBasicInformationV2Dto.prototype, "jobRole", 2);
|
|
9209
9259
|
__decorateClass([
|
|
@@ -9226,7 +9276,7 @@ __decorateClass([
|
|
|
9226
9276
|
], AdminJobBasicInformationV2Dto.prototype, "openings", 2);
|
|
9227
9277
|
__decorateClass([
|
|
9228
9278
|
ValidateIf10((o) => !o.isDraft),
|
|
9229
|
-
|
|
9279
|
+
IsEnum35(JobLocationAdminEnumDto, {
|
|
9230
9280
|
message: `Location must be one of: ${Object.values(JobLocationAdminEnumDto).join(
|
|
9231
9281
|
", "
|
|
9232
9282
|
)}`
|
|
@@ -9234,7 +9284,7 @@ __decorateClass([
|
|
|
9234
9284
|
], AdminJobBasicInformationV2Dto.prototype, "location", 2);
|
|
9235
9285
|
__decorateClass([
|
|
9236
9286
|
ValidateIf10((o) => !o.isDraft),
|
|
9237
|
-
|
|
9287
|
+
IsEnum35(EmploymentTypeAdminEnumDto, {
|
|
9238
9288
|
message: `Type of employment must be one of: ${Object.values(
|
|
9239
9289
|
EmploymentTypeAdminEnumDto
|
|
9240
9290
|
).join(", ")}`
|
|
@@ -9262,7 +9312,7 @@ __decorateClass([
|
|
|
9262
9312
|
], AdminJobBasicInformationV2Dto.prototype, "academicQualification", 2);
|
|
9263
9313
|
__decorateClass([
|
|
9264
9314
|
ValidateIf10((o) => !o.isDraft),
|
|
9265
|
-
|
|
9315
|
+
IsEnum35(typeOfExperienceAdminEnumDto, {
|
|
9266
9316
|
message: `Type of experience must be one of: ${Object.values(
|
|
9267
9317
|
typeOfExperienceAdminEnumDto
|
|
9268
9318
|
).join(", ")}`
|
|
@@ -9270,12 +9320,12 @@ __decorateClass([
|
|
|
9270
9320
|
], AdminJobBasicInformationV2Dto.prototype, "yearsOfExperienceType", 2);
|
|
9271
9321
|
__decorateClass([
|
|
9272
9322
|
ValidateIf10((o) => !o.isDraft),
|
|
9273
|
-
|
|
9323
|
+
IsNotEmpty79({ message: "Please enter the years of experience" }),
|
|
9274
9324
|
IsString50({ message: "Years of experience must be a string" })
|
|
9275
9325
|
], AdminJobBasicInformationV2Dto.prototype, "yearsOfExperienceFrom", 2);
|
|
9276
9326
|
__decorateClass([
|
|
9277
9327
|
ValidateIf10((o) => !o.isDraft),
|
|
9278
|
-
|
|
9328
|
+
IsNotEmpty79({ message: "Please enter the years of experience upto" }),
|
|
9279
9329
|
IsString50({ message: "Years of experience must be a string" })
|
|
9280
9330
|
], AdminJobBasicInformationV2Dto.prototype, "yearsOfExperienceTo", 2);
|
|
9281
9331
|
__decorateClass([
|
|
@@ -9346,7 +9396,7 @@ __decorateClass([
|
|
|
9346
9396
|
], AdminJobBasicInformationV2Dto.prototype, "jobRoleCanonicalName", 2);
|
|
9347
9397
|
__decorateClass([
|
|
9348
9398
|
IsOptional52(),
|
|
9349
|
-
|
|
9399
|
+
IsEnum35(AdminStepCompletedEnumV2, {
|
|
9350
9400
|
message: `Type of stepCompleted must be one of: ${Object.values(
|
|
9351
9401
|
AdminStepCompletedEnumV2
|
|
9352
9402
|
).join(", ")}`
|
|
@@ -9360,7 +9410,7 @@ var LEAD_PATTERN = {
|
|
|
9360
9410
|
};
|
|
9361
9411
|
|
|
9362
9412
|
// src/modules/lead/dto/create-lead.dto.ts
|
|
9363
|
-
import { IsString as IsString51, IsEmail as IsEmail19, IsOptional as IsOptional53, IsEnum as
|
|
9413
|
+
import { IsString as IsString51, IsEmail as IsEmail19, IsOptional as IsOptional53, IsEnum as IsEnum36 } from "class-validator";
|
|
9364
9414
|
var CategoryEmumDto = /* @__PURE__ */ ((CategoryEmumDto2) => {
|
|
9365
9415
|
CategoryEmumDto2["BUSINESS"] = "BUSINESS";
|
|
9366
9416
|
CategoryEmumDto2["FREELANCER"] = "FREELANCER";
|
|
@@ -9385,7 +9435,7 @@ __decorateClass([
|
|
|
9385
9435
|
IsString51({ message: "Description must be a string" })
|
|
9386
9436
|
], CreateLeadDto.prototype, "description", 2);
|
|
9387
9437
|
__decorateClass([
|
|
9388
|
-
|
|
9438
|
+
IsEnum36(CategoryEmumDto, {
|
|
9389
9439
|
message: `Type of category must be one of: ${Object.values(
|
|
9390
9440
|
CategoryEmumDto
|
|
9391
9441
|
).join(", ")}`
|
|
@@ -9407,11 +9457,11 @@ var ADMIN_ROLE_PATTERN = {
|
|
|
9407
9457
|
};
|
|
9408
9458
|
|
|
9409
9459
|
// src/modules/admin-role/dto/create-admin-role.dto.ts
|
|
9410
|
-
import { IsBoolean as
|
|
9460
|
+
import { IsBoolean as IsBoolean18, IsNotEmpty as IsNotEmpty80, IsOptional as IsOptional54, IsString as IsString52 } from "class-validator";
|
|
9411
9461
|
var CreateAdminRoleDto = class {
|
|
9412
9462
|
};
|
|
9413
9463
|
__decorateClass([
|
|
9414
|
-
|
|
9464
|
+
IsNotEmpty80({ message: "Please enter admin role name." }),
|
|
9415
9465
|
IsString52({ message: "Role name must be a string." })
|
|
9416
9466
|
], CreateAdminRoleDto.prototype, "roleName", 2);
|
|
9417
9467
|
__decorateClass([
|
|
@@ -9420,15 +9470,15 @@ __decorateClass([
|
|
|
9420
9470
|
], CreateAdminRoleDto.prototype, "roleDescription", 2);
|
|
9421
9471
|
__decorateClass([
|
|
9422
9472
|
IsOptional54(),
|
|
9423
|
-
|
|
9473
|
+
IsBoolean18({ message: "Is active must be a boolean value" })
|
|
9424
9474
|
], CreateAdminRoleDto.prototype, "isActive", 2);
|
|
9425
9475
|
|
|
9426
9476
|
// src/modules/admin-role/dto/update-admin-role.dto.ts
|
|
9427
|
-
import { IsBoolean as
|
|
9477
|
+
import { IsBoolean as IsBoolean19, IsNotEmpty as IsNotEmpty81, IsOptional as IsOptional55, IsString as IsString53 } from "class-validator";
|
|
9428
9478
|
var UpdateAdminRoleDto = class {
|
|
9429
9479
|
};
|
|
9430
9480
|
__decorateClass([
|
|
9431
|
-
|
|
9481
|
+
IsNotEmpty81({ message: "Please enter admin role name." }),
|
|
9432
9482
|
IsString53({ message: "Role name must be a string." })
|
|
9433
9483
|
], UpdateAdminRoleDto.prototype, "roleName", 2);
|
|
9434
9484
|
__decorateClass([
|
|
@@ -9437,29 +9487,29 @@ __decorateClass([
|
|
|
9437
9487
|
], UpdateAdminRoleDto.prototype, "roleDescription", 2);
|
|
9438
9488
|
__decorateClass([
|
|
9439
9489
|
IsOptional55(),
|
|
9440
|
-
|
|
9490
|
+
IsBoolean19({ message: "Is active must be a boolean value." })
|
|
9441
9491
|
], UpdateAdminRoleDto.prototype, "isActive", 2);
|
|
9442
9492
|
|
|
9443
9493
|
// src/modules/admin-role/dto/attach-permissions-to-role.dto.ts
|
|
9444
|
-
import { IsNotEmpty as
|
|
9494
|
+
import { IsNotEmpty as IsNotEmpty82, IsString as IsString54 } from "class-validator";
|
|
9445
9495
|
var AttachPermissionsToRoleDto = class {
|
|
9446
9496
|
};
|
|
9447
9497
|
__decorateClass([
|
|
9448
|
-
|
|
9498
|
+
IsNotEmpty82({ message: "Please enter admin role ID." }),
|
|
9449
9499
|
IsString54({ message: "Role ID must be a string." })
|
|
9450
9500
|
], AttachPermissionsToRoleDto.prototype, "roleId", 2);
|
|
9451
9501
|
__decorateClass([
|
|
9452
|
-
|
|
9502
|
+
IsNotEmpty82({ message: "Please enter permission IDs." }),
|
|
9453
9503
|
IsString54({ message: "Permission IDs must be a comma-separated string." })
|
|
9454
9504
|
], AttachPermissionsToRoleDto.prototype, "permissionIds", 2);
|
|
9455
9505
|
|
|
9456
9506
|
// src/modules/admin-role/dto/update-admin-role-status.dto.ts
|
|
9457
|
-
import { IsBoolean as
|
|
9507
|
+
import { IsBoolean as IsBoolean20, IsNotEmpty as IsNotEmpty83 } from "class-validator";
|
|
9458
9508
|
var UpdateAdminRoleStatusDto = class {
|
|
9459
9509
|
};
|
|
9460
9510
|
__decorateClass([
|
|
9461
|
-
|
|
9462
|
-
|
|
9511
|
+
IsNotEmpty83({ message: "Please specify admin role status." }),
|
|
9512
|
+
IsBoolean20({ message: "Is active must be a boolean value" })
|
|
9463
9513
|
], UpdateAdminRoleStatusDto.prototype, "isActive", 2);
|
|
9464
9514
|
|
|
9465
9515
|
// src/modules/admin-permission/pattern/pattern.ts
|
|
@@ -9542,12 +9592,12 @@ var INTERVIEW_PATTERN = {
|
|
|
9542
9592
|
// src/modules/interview/dto/interview-invite.dto.ts
|
|
9543
9593
|
import {
|
|
9544
9594
|
IsString as IsString55,
|
|
9545
|
-
IsNotEmpty as
|
|
9595
|
+
IsNotEmpty as IsNotEmpty84,
|
|
9546
9596
|
IsArray as IsArray20,
|
|
9547
9597
|
ArrayNotEmpty as ArrayNotEmpty12,
|
|
9548
9598
|
IsEmail as IsEmail20,
|
|
9549
|
-
IsUUID as
|
|
9550
|
-
IsEnum as
|
|
9599
|
+
IsUUID as IsUUID20,
|
|
9600
|
+
IsEnum as IsEnum37,
|
|
9551
9601
|
ValidateIf as ValidateIf11,
|
|
9552
9602
|
ValidateNested as ValidateNested7
|
|
9553
9603
|
} from "class-validator";
|
|
@@ -9562,24 +9612,24 @@ var CandidateType = /* @__PURE__ */ ((CandidateType2) => {
|
|
|
9562
9612
|
var ExistingCandidateDto = class {
|
|
9563
9613
|
};
|
|
9564
9614
|
__decorateClass([
|
|
9565
|
-
|
|
9615
|
+
IsUUID20()
|
|
9566
9616
|
], ExistingCandidateDto.prototype, "id", 2);
|
|
9567
9617
|
__decorateClass([
|
|
9568
|
-
|
|
9618
|
+
IsEnum37(CandidateType, {
|
|
9569
9619
|
message: "type must be one of SHORTLISTED, APPLICATNTS, or RECOMMENDED"
|
|
9570
9620
|
})
|
|
9571
9621
|
], ExistingCandidateDto.prototype, "type", 2);
|
|
9572
9622
|
var NewCandidateDto = class {
|
|
9573
9623
|
};
|
|
9574
9624
|
__decorateClass([
|
|
9575
|
-
|
|
9625
|
+
IsNotEmpty84({ message: "Please enter the candidate name" }),
|
|
9576
9626
|
IsString55({ message: "Name must be a string" })
|
|
9577
9627
|
], NewCandidateDto.prototype, "name", 2);
|
|
9578
9628
|
__decorateClass([
|
|
9579
9629
|
IsEmail20({}, { message: "Please enter a valid email." })
|
|
9580
9630
|
], NewCandidateDto.prototype, "email", 2);
|
|
9581
9631
|
__decorateClass([
|
|
9582
|
-
|
|
9632
|
+
IsEnum37(CandidateType, {
|
|
9583
9633
|
message: "type must be NEW"
|
|
9584
9634
|
})
|
|
9585
9635
|
], NewCandidateDto.prototype, "type", 2);
|
|
@@ -9602,7 +9652,7 @@ __decorateClass([
|
|
|
9602
9652
|
var InterviewInviteDto = class {
|
|
9603
9653
|
};
|
|
9604
9654
|
__decorateClass([
|
|
9605
|
-
|
|
9655
|
+
IsUUID20()
|
|
9606
9656
|
], InterviewInviteDto.prototype, "jobId", 2);
|
|
9607
9657
|
__decorateClass([
|
|
9608
9658
|
ValidateNested7({ each: true }),
|
|
@@ -9612,10 +9662,10 @@ __decorateClass([
|
|
|
9612
9662
|
// src/modules/interview/dto/send-interview-invite.dto.ts
|
|
9613
9663
|
import {
|
|
9614
9664
|
IsString as IsString56,
|
|
9615
|
-
IsNotEmpty as
|
|
9665
|
+
IsNotEmpty as IsNotEmpty85,
|
|
9616
9666
|
IsArray as IsArray21,
|
|
9617
|
-
IsUUID as
|
|
9618
|
-
IsEnum as
|
|
9667
|
+
IsUUID as IsUUID21,
|
|
9668
|
+
IsEnum as IsEnum38,
|
|
9619
9669
|
IsEmail as IsEmail21,
|
|
9620
9670
|
ValidateNested as ValidateNested8,
|
|
9621
9671
|
IsOptional as IsOptional57
|
|
@@ -9631,36 +9681,36 @@ var InterviewInviteCandidateType = /* @__PURE__ */ ((InterviewInviteCandidateTyp
|
|
|
9631
9681
|
var ExistingCandidateDto2 = class {
|
|
9632
9682
|
};
|
|
9633
9683
|
__decorateClass([
|
|
9634
|
-
|
|
9635
|
-
|
|
9684
|
+
IsUUID21("4", { message: "Candidate ID must be a valid UUID." }),
|
|
9685
|
+
IsNotEmpty85({ message: "Candidate ID is required." })
|
|
9636
9686
|
], ExistingCandidateDto2.prototype, "id", 2);
|
|
9637
9687
|
__decorateClass([
|
|
9638
|
-
|
|
9688
|
+
IsEnum38(InterviewInviteCandidateType, {
|
|
9639
9689
|
message: "Type must be one of SHORTLISTED, APPLICANTS, or RECOMMENDED."
|
|
9640
9690
|
}),
|
|
9641
|
-
|
|
9691
|
+
IsNotEmpty85({ message: "Candidate type is required." })
|
|
9642
9692
|
], ExistingCandidateDto2.prototype, "type", 2);
|
|
9643
9693
|
var NewCandidateDto2 = class {
|
|
9644
9694
|
};
|
|
9645
9695
|
__decorateClass([
|
|
9646
9696
|
IsString56({ message: "Name must be a string." }),
|
|
9647
|
-
|
|
9697
|
+
IsNotEmpty85({ message: "Candidate name is required." })
|
|
9648
9698
|
], NewCandidateDto2.prototype, "name", 2);
|
|
9649
9699
|
__decorateClass([
|
|
9650
9700
|
IsEmail21({}, { message: "Please enter a valid email address." }),
|
|
9651
|
-
|
|
9701
|
+
IsNotEmpty85({ message: "Email is required." })
|
|
9652
9702
|
], NewCandidateDto2.prototype, "email", 2);
|
|
9653
9703
|
__decorateClass([
|
|
9654
|
-
|
|
9704
|
+
IsEnum38(InterviewInviteCandidateType, {
|
|
9655
9705
|
message: "Type must be NEW for new candidates."
|
|
9656
9706
|
}),
|
|
9657
|
-
|
|
9707
|
+
IsNotEmpty85({ message: "Candidate type is required." })
|
|
9658
9708
|
], NewCandidateDto2.prototype, "type", 2);
|
|
9659
9709
|
var SendInterviewInviteDto = class {
|
|
9660
9710
|
};
|
|
9661
9711
|
__decorateClass([
|
|
9662
|
-
|
|
9663
|
-
|
|
9712
|
+
IsUUID21("4", { message: "Job ID must be a valid UUID." }),
|
|
9713
|
+
IsNotEmpty85({ message: "Job ID is required." })
|
|
9664
9714
|
], SendInterviewInviteDto.prototype, "jobId", 2);
|
|
9665
9715
|
__decorateClass([
|
|
9666
9716
|
IsArray21({ message: "Existing candidates must be an array." }),
|
|
@@ -9678,7 +9728,7 @@ __decorateClass([
|
|
|
9678
9728
|
// src/modules/interview/dto/create-f2f-interview.dto.ts
|
|
9679
9729
|
import {
|
|
9680
9730
|
IsString as IsString57,
|
|
9681
|
-
IsNotEmpty as
|
|
9731
|
+
IsNotEmpty as IsNotEmpty86,
|
|
9682
9732
|
IsEmail as IsEmail22,
|
|
9683
9733
|
IsNumber as IsNumber16
|
|
9684
9734
|
} from "class-validator";
|
|
@@ -9686,11 +9736,11 @@ var CreateF2FInterviewDto = class {
|
|
|
9686
9736
|
};
|
|
9687
9737
|
__decorateClass([
|
|
9688
9738
|
IsEmail22({}, { message: "Please enter a valid email address." }),
|
|
9689
|
-
|
|
9739
|
+
IsNotEmpty86({ message: "Invitee email is required." })
|
|
9690
9740
|
], CreateF2FInterviewDto.prototype, "inviteeEmail", 2);
|
|
9691
9741
|
__decorateClass([
|
|
9692
9742
|
IsString57({ message: "Invitee name must be a string." }),
|
|
9693
|
-
|
|
9743
|
+
IsNotEmpty86({ message: "Invitee name is required." })
|
|
9694
9744
|
], CreateF2FInterviewDto.prototype, "inviteeName", 2);
|
|
9695
9745
|
__decorateClass([
|
|
9696
9746
|
IsNumber16({}, { message: "Interview ID must be a number." })
|
|
@@ -9702,7 +9752,7 @@ __decorateClass([
|
|
|
9702
9752
|
// src/modules/interview/dto/create-f2f-interview-direct.dto.ts
|
|
9703
9753
|
import {
|
|
9704
9754
|
IsString as IsString58,
|
|
9705
|
-
IsNotEmpty as
|
|
9755
|
+
IsNotEmpty as IsNotEmpty87,
|
|
9706
9756
|
IsEmail as IsEmail23,
|
|
9707
9757
|
IsNumber as IsNumber17
|
|
9708
9758
|
} from "class-validator";
|
|
@@ -9710,11 +9760,11 @@ var CreateF2FInterviewDirectDto = class {
|
|
|
9710
9760
|
};
|
|
9711
9761
|
__decorateClass([
|
|
9712
9762
|
IsEmail23({}, { message: "Please enter a valid email address." }),
|
|
9713
|
-
|
|
9763
|
+
IsNotEmpty87({ message: "Invitee email is required." })
|
|
9714
9764
|
], CreateF2FInterviewDirectDto.prototype, "inviteeEmail", 2);
|
|
9715
9765
|
__decorateClass([
|
|
9716
9766
|
IsString58({ message: "Invitee name must be a string." }),
|
|
9717
|
-
|
|
9767
|
+
IsNotEmpty87({ message: "Invitee name is required." })
|
|
9718
9768
|
], CreateF2FInterviewDirectDto.prototype, "inviteeName", 2);
|
|
9719
9769
|
__decorateClass([
|
|
9720
9770
|
IsNumber17({}, { message: "Job ID must be a number." })
|
|
@@ -9726,22 +9776,22 @@ __decorateClass([
|
|
|
9726
9776
|
// src/modules/interview/dto/create-f2f-interview-reschedule-request.dto.ts
|
|
9727
9777
|
import {
|
|
9728
9778
|
IsString as IsString59,
|
|
9729
|
-
IsNotEmpty as
|
|
9779
|
+
IsNotEmpty as IsNotEmpty88,
|
|
9730
9780
|
IsOptional as IsOptional58,
|
|
9731
|
-
IsUUID as
|
|
9781
|
+
IsUUID as IsUUID22
|
|
9732
9782
|
} from "class-validator";
|
|
9733
9783
|
var CreateF2FInterviewRescheduleRequestDto = class {
|
|
9734
9784
|
};
|
|
9735
9785
|
__decorateClass([
|
|
9736
|
-
|
|
9737
|
-
|
|
9786
|
+
IsUUID22("4", { message: "F2F Interview ID must be a valid UUID." }),
|
|
9787
|
+
IsNotEmpty88({ message: "F2F Interview ID is required." })
|
|
9738
9788
|
], CreateF2FInterviewRescheduleRequestDto.prototype, "f2FInterviewId", 2);
|
|
9739
9789
|
__decorateClass([
|
|
9740
|
-
|
|
9790
|
+
IsNotEmpty88({ message: "Rescheduled date is required." })
|
|
9741
9791
|
], CreateF2FInterviewRescheduleRequestDto.prototype, "rescheduledDate", 2);
|
|
9742
9792
|
__decorateClass([
|
|
9743
9793
|
IsString59({ message: "Rescheduled slot must be a string." }),
|
|
9744
|
-
|
|
9794
|
+
IsNotEmpty88({ message: "Rescheduled slot is required." })
|
|
9745
9795
|
], CreateF2FInterviewRescheduleRequestDto.prototype, "rescheduledSlot", 2);
|
|
9746
9796
|
__decorateClass([
|
|
9747
9797
|
IsOptional58(),
|
|
@@ -9751,12 +9801,12 @@ __decorateClass([
|
|
|
9751
9801
|
// src/modules/interview/dto/create-ai-interview-reschedule-request.dto.ts
|
|
9752
9802
|
import {
|
|
9753
9803
|
IsString as IsString60,
|
|
9754
|
-
IsNotEmpty as
|
|
9804
|
+
IsNotEmpty as IsNotEmpty89
|
|
9755
9805
|
} from "class-validator";
|
|
9756
9806
|
var CreateAIInterviewRescheduleRequestDto = class {
|
|
9757
9807
|
};
|
|
9758
9808
|
__decorateClass([
|
|
9759
|
-
|
|
9809
|
+
IsNotEmpty89({ message: "AI Interview ID is required." })
|
|
9760
9810
|
], CreateAIInterviewRescheduleRequestDto.prototype, "aiInterviewId", 2);
|
|
9761
9811
|
__decorateClass([
|
|
9762
9812
|
IsString60({ message: "Freelancer reason must be a string." })
|
|
@@ -9782,11 +9832,11 @@ __decorateClass([
|
|
|
9782
9832
|
], RejectF2FInterviewRescheduleRequestDto.prototype, "clientRejectReason", 2);
|
|
9783
9833
|
|
|
9784
9834
|
// src/modules/interview/dto/capture-ai-interview-result-public.dto.ts
|
|
9785
|
-
import { IsNotEmpty as
|
|
9835
|
+
import { IsNotEmpty as IsNotEmpty90, IsString as IsString63, IsOptional as IsOptional61, IsObject as IsObject6 } from "class-validator";
|
|
9786
9836
|
var CaptureAiInterviewResultPublicDto = class {
|
|
9787
9837
|
};
|
|
9788
9838
|
__decorateClass([
|
|
9789
|
-
|
|
9839
|
+
IsNotEmpty90({ message: "AI Interview UUID is required" }),
|
|
9790
9840
|
IsString63({ message: "AI Interview UUID must be a string" })
|
|
9791
9841
|
], CaptureAiInterviewResultPublicDto.prototype, "aiInterviewUuid", 2);
|
|
9792
9842
|
__decorateClass([
|
|
@@ -9799,15 +9849,15 @@ __decorateClass([
|
|
|
9799
9849
|
], CaptureAiInterviewResultPublicDto.prototype, "status", 2);
|
|
9800
9850
|
|
|
9801
9851
|
// src/modules/interview/dto/create-interview-basic-information.dto.ts
|
|
9802
|
-
import { IsNotEmpty as
|
|
9852
|
+
import { IsNotEmpty as IsNotEmpty91, IsString as IsString64, IsNumber as IsNumber18 } from "class-validator";
|
|
9803
9853
|
var CreateInterviewBasicInformationDto = class {
|
|
9804
9854
|
};
|
|
9805
9855
|
__decorateClass([
|
|
9806
|
-
|
|
9856
|
+
IsNotEmpty91({ message: "Job ID is required" }),
|
|
9807
9857
|
IsNumber18({}, { message: "Job ID must be a number" })
|
|
9808
9858
|
], CreateInterviewBasicInformationDto.prototype, "jobId", 2);
|
|
9809
9859
|
__decorateClass([
|
|
9810
|
-
|
|
9860
|
+
IsNotEmpty91({ message: "Interview name is required" }),
|
|
9811
9861
|
IsString64({ message: "Interview name must be a string" })
|
|
9812
9862
|
], CreateInterviewBasicInformationDto.prototype, "interviewName", 2);
|
|
9813
9863
|
|
|
@@ -9844,7 +9894,7 @@ __decorateClass([
|
|
|
9844
9894
|
// src/modules/interview/dto/create-interview-skills.dto.ts
|
|
9845
9895
|
import {
|
|
9846
9896
|
IsArray as IsArray24,
|
|
9847
|
-
IsNotEmpty as
|
|
9897
|
+
IsNotEmpty as IsNotEmpty92,
|
|
9848
9898
|
IsOptional as IsOptional64,
|
|
9849
9899
|
IsString as IsString66,
|
|
9850
9900
|
ValidateNested as ValidateNested9
|
|
@@ -9857,7 +9907,7 @@ __decorateClass([
|
|
|
9857
9907
|
], InterviewSkillItemDto.prototype, "uuid", 2);
|
|
9858
9908
|
__decorateClass([
|
|
9859
9909
|
IsString66({ message: "Skill name must be a string." }),
|
|
9860
|
-
|
|
9910
|
+
IsNotEmpty92({ message: "Skill name is required." })
|
|
9861
9911
|
], InterviewSkillItemDto.prototype, "skill", 2);
|
|
9862
9912
|
__decorateClass([
|
|
9863
9913
|
IsOptional64(),
|
|
@@ -9867,7 +9917,7 @@ var CreateInterviewSkillsDto = class {
|
|
|
9867
9917
|
};
|
|
9868
9918
|
__decorateClass([
|
|
9869
9919
|
IsArray24({ message: "Skills must be an array." }),
|
|
9870
|
-
|
|
9920
|
+
IsNotEmpty92({ message: "At least one skill is required." }),
|
|
9871
9921
|
ValidateNested9({ each: true }),
|
|
9872
9922
|
Type17(() => InterviewSkillItemDto)
|
|
9873
9923
|
], CreateInterviewSkillsDto.prototype, "skills", 2);
|
|
@@ -9875,10 +9925,10 @@ __decorateClass([
|
|
|
9875
9925
|
// src/modules/interview/dto/create-interview-questions.dto.ts
|
|
9876
9926
|
import {
|
|
9877
9927
|
IsArray as IsArray25,
|
|
9878
|
-
IsNotEmpty as
|
|
9928
|
+
IsNotEmpty as IsNotEmpty93,
|
|
9879
9929
|
IsOptional as IsOptional65,
|
|
9880
9930
|
IsString as IsString67,
|
|
9881
|
-
IsUUID as
|
|
9931
|
+
IsUUID as IsUUID24,
|
|
9882
9932
|
ValidateNested as ValidateNested10
|
|
9883
9933
|
} from "class-validator";
|
|
9884
9934
|
import { Type as Type18 } from "class-transformer";
|
|
@@ -9886,21 +9936,21 @@ var CustomQuestionItemDto = class {
|
|
|
9886
9936
|
};
|
|
9887
9937
|
__decorateClass([
|
|
9888
9938
|
IsOptional65(),
|
|
9889
|
-
|
|
9939
|
+
IsUUID24("4", { message: "Question UUID must be a valid UUID." })
|
|
9890
9940
|
], CustomQuestionItemDto.prototype, "uuid", 2);
|
|
9891
9941
|
__decorateClass([
|
|
9892
9942
|
IsString67({ message: "Question must be a string." }),
|
|
9893
|
-
|
|
9943
|
+
IsNotEmpty93({ message: "Question is required." })
|
|
9894
9944
|
], CustomQuestionItemDto.prototype, "question", 2);
|
|
9895
9945
|
var AiQuestionItemDto = class {
|
|
9896
9946
|
};
|
|
9897
9947
|
__decorateClass([
|
|
9898
9948
|
IsOptional65(),
|
|
9899
|
-
|
|
9949
|
+
IsUUID24("4", { message: "Question UUID must be a valid UUID." })
|
|
9900
9950
|
], AiQuestionItemDto.prototype, "uuid", 2);
|
|
9901
9951
|
__decorateClass([
|
|
9902
9952
|
IsString67({ message: "Question must be a string." }),
|
|
9903
|
-
|
|
9953
|
+
IsNotEmpty93({ message: "Question is required." })
|
|
9904
9954
|
], AiQuestionItemDto.prototype, "question", 2);
|
|
9905
9955
|
__decorateClass([
|
|
9906
9956
|
IsOptional65(),
|
|
@@ -9924,7 +9974,7 @@ __decorateClass([
|
|
|
9924
9974
|
|
|
9925
9975
|
// src/modules/interview/dto/update-interview-setting.dto.ts
|
|
9926
9976
|
import {
|
|
9927
|
-
IsBoolean as
|
|
9977
|
+
IsBoolean as IsBoolean21,
|
|
9928
9978
|
IsOptional as IsOptional66,
|
|
9929
9979
|
IsString as IsString68
|
|
9930
9980
|
} from "class-validator";
|
|
@@ -9937,7 +9987,7 @@ __decorateClass([
|
|
|
9937
9987
|
], UpdateInterviewSettingDto.prototype, "interviewLanguage", 2);
|
|
9938
9988
|
__decorateClass([
|
|
9939
9989
|
IsOptional66(),
|
|
9940
|
-
|
|
9990
|
+
IsBoolean21({ message: "Allow proctoring must be a boolean." }),
|
|
9941
9991
|
Type19(() => Boolean)
|
|
9942
9992
|
], UpdateInterviewSettingDto.prototype, "allowProctoring", 2);
|
|
9943
9993
|
__decorateClass([
|
|
@@ -10006,53 +10056,53 @@ var CONTRACT_PATTERN = {
|
|
|
10006
10056
|
};
|
|
10007
10057
|
|
|
10008
10058
|
// src/modules/contract/dto/sign-contract-for-client.dto.ts
|
|
10009
|
-
import { IsEnum as
|
|
10059
|
+
import { IsEnum as IsEnum39, IsNotEmpty as IsNotEmpty94, IsNumber as IsNumber20 } from "class-validator";
|
|
10010
10060
|
import { Type as Type20 } from "class-transformer";
|
|
10011
10061
|
var SignContractForClientDto = class {
|
|
10012
10062
|
};
|
|
10013
10063
|
__decorateClass([
|
|
10014
|
-
|
|
10064
|
+
IsNotEmpty94({ message: "Job Id is required." }),
|
|
10015
10065
|
Type20(() => Number),
|
|
10016
10066
|
IsNumber20({}, { message: "Job ID must be a number." })
|
|
10017
10067
|
], SignContractForClientDto.prototype, "jobId", 2);
|
|
10018
10068
|
__decorateClass([
|
|
10019
|
-
|
|
10069
|
+
IsNotEmpty94({ message: "Freelancer ID is required." }),
|
|
10020
10070
|
Type20(() => Number),
|
|
10021
10071
|
IsNumber20({}, { message: "Freelancer ID must be a number." })
|
|
10022
10072
|
], SignContractForClientDto.prototype, "freelancerId", 2);
|
|
10023
10073
|
__decorateClass([
|
|
10024
|
-
|
|
10025
|
-
|
|
10074
|
+
IsNotEmpty94({ message: "Contract type is required." }),
|
|
10075
|
+
IsEnum39(ContractTypeEnum)
|
|
10026
10076
|
], SignContractForClientDto.prototype, "contractType", 2);
|
|
10027
10077
|
|
|
10028
10078
|
// src/modules/contract/dto/sign-contract-for-freelancer.dto.ts
|
|
10029
|
-
import { IsEnum as
|
|
10079
|
+
import { IsEnum as IsEnum40, IsNotEmpty as IsNotEmpty95, IsNumber as IsNumber21 } from "class-validator";
|
|
10030
10080
|
import { Type as Type21 } from "class-transformer";
|
|
10031
10081
|
var SignContractForFreelancerDto = class {
|
|
10032
10082
|
};
|
|
10033
10083
|
__decorateClass([
|
|
10034
|
-
|
|
10084
|
+
IsNotEmpty95({ message: "Job Id is required." }),
|
|
10035
10085
|
Type21(() => Number),
|
|
10036
10086
|
IsNumber21({}, { message: "Job ID must be a number." })
|
|
10037
10087
|
], SignContractForFreelancerDto.prototype, "jobId", 2);
|
|
10038
10088
|
__decorateClass([
|
|
10039
|
-
|
|
10089
|
+
IsNotEmpty95({ message: "Client ID is required." }),
|
|
10040
10090
|
Type21(() => Number),
|
|
10041
10091
|
IsNumber21({}, { message: "Client ID must be a number." })
|
|
10042
10092
|
], SignContractForFreelancerDto.prototype, "clientId", 2);
|
|
10043
10093
|
__decorateClass([
|
|
10044
|
-
|
|
10045
|
-
|
|
10094
|
+
IsNotEmpty95({ message: "Contract type is required." }),
|
|
10095
|
+
IsEnum40(ContractTypeEnum)
|
|
10046
10096
|
], SignContractForFreelancerDto.prototype, "contractType", 2);
|
|
10047
10097
|
|
|
10048
10098
|
// src/modules/contract/dto/generate-contract.dto.ts
|
|
10049
10099
|
import {
|
|
10050
|
-
IsNotEmpty as
|
|
10100
|
+
IsNotEmpty as IsNotEmpty96,
|
|
10051
10101
|
IsNumber as IsNumber22,
|
|
10052
10102
|
IsOptional as IsOptional68,
|
|
10053
10103
|
IsString as IsString70,
|
|
10054
|
-
IsUUID as
|
|
10055
|
-
IsEnum as
|
|
10104
|
+
IsUUID as IsUUID25,
|
|
10105
|
+
IsEnum as IsEnum41
|
|
10056
10106
|
} from "class-validator";
|
|
10057
10107
|
var ContractSourceEnum = /* @__PURE__ */ ((ContractSourceEnum3) => {
|
|
10058
10108
|
ContractSourceEnum3["AI_INTERVIEW"] = "AI_INTERVIEW";
|
|
@@ -10075,15 +10125,15 @@ var GenerateContractDto = class {
|
|
|
10075
10125
|
};
|
|
10076
10126
|
__decorateClass([
|
|
10077
10127
|
IsNumber22({}, { message: "Job ID must be a number." }),
|
|
10078
|
-
|
|
10128
|
+
IsNotEmpty96({ message: "Job ID is required." })
|
|
10079
10129
|
], GenerateContractDto.prototype, "jobId", 2);
|
|
10080
10130
|
__decorateClass([
|
|
10081
10131
|
IsNumber22({}, { message: "Freelancer ID must be a number." }),
|
|
10082
|
-
|
|
10132
|
+
IsNotEmpty96({ message: "Freelancer ID is required." })
|
|
10083
10133
|
], GenerateContractDto.prototype, "freelancerId", 2);
|
|
10084
10134
|
__decorateClass([
|
|
10085
10135
|
IsOptional68(),
|
|
10086
|
-
|
|
10136
|
+
IsEnum41(ContractTypeEnumDto, {
|
|
10087
10137
|
message: "Contract type must be one of NDA, MSA, SOW, or WORK."
|
|
10088
10138
|
})
|
|
10089
10139
|
], GenerateContractDto.prototype, "contractType", 2);
|
|
@@ -10096,51 +10146,51 @@ __decorateClass([
|
|
|
10096
10146
|
IsString70({ message: "Contract invoicing cycle must be a string." })
|
|
10097
10147
|
], GenerateContractDto.prototype, "contractInvoicingCycle", 2);
|
|
10098
10148
|
__decorateClass([
|
|
10099
|
-
|
|
10100
|
-
|
|
10149
|
+
IsNotEmpty96({ message: "Preferred engagement type is required" }),
|
|
10150
|
+
IsEnum41(PreferredEngagementTypeEnum, {
|
|
10101
10151
|
message: "Preferred engagement type must be FREELANCE."
|
|
10102
10152
|
})
|
|
10103
10153
|
], GenerateContractDto.prototype, "preferredEngagementType", 2);
|
|
10104
10154
|
__decorateClass([
|
|
10105
10155
|
IsOptional68(),
|
|
10106
|
-
|
|
10156
|
+
IsEnum41(ContractSourceEnum, {
|
|
10107
10157
|
message: "Source must be one of AI_INTERVIEW, F2F_INTERVIEW, or JOB."
|
|
10108
10158
|
})
|
|
10109
10159
|
], GenerateContractDto.prototype, "source", 2);
|
|
10110
10160
|
__decorateClass([
|
|
10111
10161
|
IsOptional68(),
|
|
10112
|
-
|
|
10162
|
+
IsUUID25("4", { message: "Source UUID must be a valid UUID." })
|
|
10113
10163
|
], GenerateContractDto.prototype, "sourceUuid", 2);
|
|
10114
10164
|
|
|
10115
10165
|
// src/modules/contract/dto/esign-contract-client.dto.ts
|
|
10116
|
-
import { IsNotEmpty as
|
|
10166
|
+
import { IsNotEmpty as IsNotEmpty97, IsUUID as IsUUID26 } from "class-validator";
|
|
10117
10167
|
var EsignContractClientDto = class {
|
|
10118
10168
|
};
|
|
10119
10169
|
__decorateClass([
|
|
10120
|
-
|
|
10121
|
-
|
|
10170
|
+
IsUUID26("4", { message: "Contract UUID must be a valid UUID." }),
|
|
10171
|
+
IsNotEmpty97({ message: "Contract UUID is required." })
|
|
10122
10172
|
], EsignContractClientDto.prototype, "contractUuid", 2);
|
|
10123
10173
|
|
|
10124
10174
|
// src/modules/contract/dto/esign-contract-freelancer.dto.ts
|
|
10125
|
-
import { IsNotEmpty as
|
|
10175
|
+
import { IsNotEmpty as IsNotEmpty98, IsUUID as IsUUID27 } from "class-validator";
|
|
10126
10176
|
var EsignContractFreelancerDto = class {
|
|
10127
10177
|
};
|
|
10128
10178
|
__decorateClass([
|
|
10129
|
-
|
|
10130
|
-
|
|
10179
|
+
IsUUID27("4", { message: "Contract UUID must be a valid UUID." }),
|
|
10180
|
+
IsNotEmpty98({ message: "Contract UUID is required." })
|
|
10131
10181
|
], EsignContractFreelancerDto.prototype, "contractUuid", 2);
|
|
10132
10182
|
|
|
10133
10183
|
// src/modules/contract/dto/escrow-fund-contract.dto.ts
|
|
10134
|
-
import { IsNotEmpty as
|
|
10184
|
+
import { IsNotEmpty as IsNotEmpty99, IsUUID as IsUUID28 } from "class-validator";
|
|
10135
10185
|
var EscrowFundContractDto = class {
|
|
10136
10186
|
};
|
|
10137
10187
|
__decorateClass([
|
|
10138
|
-
|
|
10139
|
-
|
|
10188
|
+
IsUUID28("4", { message: "Contract ID must be a valid UUID." }),
|
|
10189
|
+
IsNotEmpty99({ message: "Contract ID is required." })
|
|
10140
10190
|
], EscrowFundContractDto.prototype, "contractId", 2);
|
|
10141
10191
|
|
|
10142
10192
|
// src/modules/contract/dto/send-nda-contract-to-freelancer.dto.ts
|
|
10143
|
-
import { IsNotEmpty as
|
|
10193
|
+
import { IsNotEmpty as IsNotEmpty100, IsOptional as IsOptional69, IsUUID as IsUUID29, IsEnum as IsEnum42 } from "class-validator";
|
|
10144
10194
|
var ContractSourceEnum2 = /* @__PURE__ */ ((ContractSourceEnum3) => {
|
|
10145
10195
|
ContractSourceEnum3["AI_INTERVIEW"] = "AI_INTERVIEW";
|
|
10146
10196
|
ContractSourceEnum3["F2F_INTERVIEW"] = "F2F_INTERVIEW";
|
|
@@ -10150,18 +10200,18 @@ var ContractSourceEnum2 = /* @__PURE__ */ ((ContractSourceEnum3) => {
|
|
|
10150
10200
|
var SendNdaContractToFreelancerDto = class {
|
|
10151
10201
|
};
|
|
10152
10202
|
__decorateClass([
|
|
10153
|
-
|
|
10154
|
-
|
|
10203
|
+
IsUUID29("4", { message: "Contract UUID must be a valid UUID." }),
|
|
10204
|
+
IsNotEmpty100({ message: "Contract UUID is required." })
|
|
10155
10205
|
], SendNdaContractToFreelancerDto.prototype, "contractUuid", 2);
|
|
10156
10206
|
__decorateClass([
|
|
10157
10207
|
IsOptional69(),
|
|
10158
|
-
|
|
10208
|
+
IsEnum42(ContractSourceEnum2, {
|
|
10159
10209
|
message: "Source must be one of AI_INTERVIEW, F2F_INTERVIEW, or JOB."
|
|
10160
10210
|
})
|
|
10161
10211
|
], SendNdaContractToFreelancerDto.prototype, "source", 2);
|
|
10162
10212
|
__decorateClass([
|
|
10163
10213
|
IsOptional69(),
|
|
10164
|
-
|
|
10214
|
+
IsUUID29("4", { message: "Source UUID must be a valid UUID." })
|
|
10165
10215
|
], SendNdaContractToFreelancerDto.prototype, "sourceUuid", 2);
|
|
10166
10216
|
|
|
10167
10217
|
// src/modules/contract/dto/reject-contract.dto.ts
|
|
@@ -10195,20 +10245,20 @@ var STRIPE_PATTERN = {
|
|
|
10195
10245
|
|
|
10196
10246
|
// src/modules/stripe/dto/create-checkout-session.dto.ts
|
|
10197
10247
|
import {
|
|
10198
|
-
IsNotEmpty as
|
|
10248
|
+
IsNotEmpty as IsNotEmpty101
|
|
10199
10249
|
} from "class-validator";
|
|
10200
10250
|
var CreateCheckoutSessionDto = class {
|
|
10201
10251
|
};
|
|
10202
10252
|
__decorateClass([
|
|
10203
|
-
|
|
10253
|
+
IsNotEmpty101({ message: "Amount is required" })
|
|
10204
10254
|
], CreateCheckoutSessionDto.prototype, "amount", 2);
|
|
10205
10255
|
|
|
10206
10256
|
// src/modules/stripe/dto/pre-checkout-calculation.dto.ts
|
|
10207
|
-
import { IsNotEmpty as
|
|
10257
|
+
import { IsNotEmpty as IsNotEmpty102, IsNumber as IsNumber23, IsOptional as IsOptional71, IsString as IsString73 } from "class-validator";
|
|
10208
10258
|
var PreCheckoutCalculationDto = class {
|
|
10209
10259
|
};
|
|
10210
10260
|
__decorateClass([
|
|
10211
|
-
|
|
10261
|
+
IsNotEmpty102({ message: "Amount is required" }),
|
|
10212
10262
|
IsNumber23({}, { message: "Amount must be a number" })
|
|
10213
10263
|
], PreCheckoutCalculationDto.prototype, "amount", 2);
|
|
10214
10264
|
__decorateClass([
|
|
@@ -10221,11 +10271,11 @@ __decorateClass([
|
|
|
10221
10271
|
], PreCheckoutCalculationDto.prototype, "description", 2);
|
|
10222
10272
|
|
|
10223
10273
|
// src/modules/stripe/dto/client-add-fund.dto.ts
|
|
10224
|
-
import { IsNotEmpty as
|
|
10274
|
+
import { IsNotEmpty as IsNotEmpty103, IsNumber as IsNumber24, IsOptional as IsOptional72, IsString as IsString74 } from "class-validator";
|
|
10225
10275
|
var ClientAddFundDto = class {
|
|
10226
10276
|
};
|
|
10227
10277
|
__decorateClass([
|
|
10228
|
-
|
|
10278
|
+
IsNotEmpty103({ message: "Amount is required" }),
|
|
10229
10279
|
IsNumber24({}, { message: "Amount must be a number" })
|
|
10230
10280
|
], ClientAddFundDto.prototype, "amount", 2);
|
|
10231
10281
|
__decorateClass([
|
|
@@ -10238,12 +10288,12 @@ __decorateClass([
|
|
|
10238
10288
|
], ClientAddFundDto.prototype, "description", 2);
|
|
10239
10289
|
|
|
10240
10290
|
// src/modules/stripe/dto/transfer-funds.dto.ts
|
|
10241
|
-
import { IsNotEmpty as
|
|
10291
|
+
import { IsNotEmpty as IsNotEmpty104, IsUUID as IsUUID30 } from "class-validator";
|
|
10242
10292
|
var TransferFundsDto = class {
|
|
10243
10293
|
};
|
|
10244
10294
|
__decorateClass([
|
|
10245
|
-
|
|
10246
|
-
|
|
10295
|
+
IsUUID30("4", { message: "Invoice UUID must be a valid UUID." }),
|
|
10296
|
+
IsNotEmpty104({ message: "Invoice UUID is required." })
|
|
10247
10297
|
], TransferFundsDto.prototype, "invoiceUuid", 2);
|
|
10248
10298
|
|
|
10249
10299
|
// src/modules/timesheet/pattern/pattern.ts
|
|
@@ -10290,7 +10340,7 @@ var TIMESHEET_CLIENT_PATTERN = {
|
|
|
10290
10340
|
import {
|
|
10291
10341
|
IsDateString as IsDateString10,
|
|
10292
10342
|
IsInt as IsInt13,
|
|
10293
|
-
IsNotEmpty as
|
|
10343
|
+
IsNotEmpty as IsNotEmpty105,
|
|
10294
10344
|
IsOptional as IsOptional73,
|
|
10295
10345
|
IsString as IsString75,
|
|
10296
10346
|
Matches as Matches13,
|
|
@@ -10299,25 +10349,25 @@ import {
|
|
|
10299
10349
|
var CreateFreelancerTimesheetDto = class {
|
|
10300
10350
|
};
|
|
10301
10351
|
__decorateClass([
|
|
10302
|
-
|
|
10352
|
+
IsNotEmpty105({ message: "Job id is required" }),
|
|
10303
10353
|
IsNumber25({}, { message: "Job id must be a number" })
|
|
10304
10354
|
], CreateFreelancerTimesheetDto.prototype, "jobId", 2);
|
|
10305
10355
|
__decorateClass([
|
|
10306
|
-
|
|
10356
|
+
IsNotEmpty105({ message: "start date is required" }),
|
|
10307
10357
|
IsDateString10()
|
|
10308
10358
|
], CreateFreelancerTimesheetDto.prototype, "startDate", 2);
|
|
10309
10359
|
__decorateClass([
|
|
10310
|
-
|
|
10360
|
+
IsNotEmpty105({ message: "end date is required" }),
|
|
10311
10361
|
IsDateString10()
|
|
10312
10362
|
], CreateFreelancerTimesheetDto.prototype, "endDate", 2);
|
|
10313
10363
|
__decorateClass([
|
|
10314
|
-
|
|
10364
|
+
IsNotEmpty105({ message: "start time is required" }),
|
|
10315
10365
|
Matches13(/^([01]\d|2[0-3]):([0-5]\d):([0-5]\d)$/, {
|
|
10316
10366
|
message: "startTime must be in HH:mm:ss format"
|
|
10317
10367
|
})
|
|
10318
10368
|
], CreateFreelancerTimesheetDto.prototype, "startTime", 2);
|
|
10319
10369
|
__decorateClass([
|
|
10320
|
-
|
|
10370
|
+
IsNotEmpty105({ message: "end time is required" }),
|
|
10321
10371
|
Matches13(/^([01]\d|2[0-3]):([0-5]\d):([0-5]\d)$/, {
|
|
10322
10372
|
message: "endTime must be in HH:mm:ss format"
|
|
10323
10373
|
})
|
|
@@ -10339,14 +10389,14 @@ __decorateClass([
|
|
|
10339
10389
|
IsString75()
|
|
10340
10390
|
], CreateFreelancerTimesheetDto.prototype, "taskName", 2);
|
|
10341
10391
|
__decorateClass([
|
|
10342
|
-
|
|
10392
|
+
IsNotEmpty105({ message: "Description is required" })
|
|
10343
10393
|
], CreateFreelancerTimesheetDto.prototype, "description", 2);
|
|
10344
10394
|
|
|
10345
10395
|
// src/modules/timesheet/dto/update-freelancer-timesheet.dto.ts
|
|
10346
10396
|
import {
|
|
10347
10397
|
IsDateString as IsDateString11,
|
|
10348
10398
|
IsInt as IsInt14,
|
|
10349
|
-
IsNotEmpty as
|
|
10399
|
+
IsNotEmpty as IsNotEmpty106,
|
|
10350
10400
|
IsOptional as IsOptional74,
|
|
10351
10401
|
IsString as IsString76,
|
|
10352
10402
|
Matches as Matches14,
|
|
@@ -10355,25 +10405,25 @@ import {
|
|
|
10355
10405
|
var UpdateFreelancerTimesheetDto = class {
|
|
10356
10406
|
};
|
|
10357
10407
|
__decorateClass([
|
|
10358
|
-
|
|
10408
|
+
IsNotEmpty106({ message: "Job id is required" }),
|
|
10359
10409
|
IsNumber26({}, { message: "Job id must be a number" })
|
|
10360
10410
|
], UpdateFreelancerTimesheetDto.prototype, "jobId", 2);
|
|
10361
10411
|
__decorateClass([
|
|
10362
|
-
|
|
10412
|
+
IsNotEmpty106({ message: "start date is required" }),
|
|
10363
10413
|
IsDateString11()
|
|
10364
10414
|
], UpdateFreelancerTimesheetDto.prototype, "startDate", 2);
|
|
10365
10415
|
__decorateClass([
|
|
10366
|
-
|
|
10416
|
+
IsNotEmpty106({ message: "end date is required" }),
|
|
10367
10417
|
IsDateString11()
|
|
10368
10418
|
], UpdateFreelancerTimesheetDto.prototype, "endDate", 2);
|
|
10369
10419
|
__decorateClass([
|
|
10370
|
-
|
|
10420
|
+
IsNotEmpty106({ message: "start time is required" }),
|
|
10371
10421
|
Matches14(/^([01]\d|2[0-3]):([0-5]\d):([0-5]\d)$/, {
|
|
10372
10422
|
message: "startTime must be in HH:mm:ss format"
|
|
10373
10423
|
})
|
|
10374
10424
|
], UpdateFreelancerTimesheetDto.prototype, "startTime", 2);
|
|
10375
10425
|
__decorateClass([
|
|
10376
|
-
|
|
10426
|
+
IsNotEmpty106({ message: "end time is required" }),
|
|
10377
10427
|
Matches14(/^([01]\d|2[0-3]):([0-5]\d):([0-5]\d)$/, {
|
|
10378
10428
|
message: "endTime must be in HH:mm:ss format"
|
|
10379
10429
|
})
|
|
@@ -10395,46 +10445,46 @@ __decorateClass([
|
|
|
10395
10445
|
IsString76()
|
|
10396
10446
|
], UpdateFreelancerTimesheetDto.prototype, "taskName", 2);
|
|
10397
10447
|
__decorateClass([
|
|
10398
|
-
|
|
10448
|
+
IsNotEmpty106({ message: "Description is required" })
|
|
10399
10449
|
], UpdateFreelancerTimesheetDto.prototype, "description", 2);
|
|
10400
10450
|
|
|
10401
10451
|
// src/modules/timesheet/dto/submit-timesheet.dto.ts
|
|
10402
|
-
import { IsNotEmpty as
|
|
10452
|
+
import { IsNotEmpty as IsNotEmpty107, IsNumber as IsNumber27 } from "class-validator";
|
|
10403
10453
|
var SubmitTimesheetDto = class {
|
|
10404
10454
|
};
|
|
10405
10455
|
__decorateClass([
|
|
10406
|
-
|
|
10456
|
+
IsNotEmpty107({ message: "Timesheet line ID is required" }),
|
|
10407
10457
|
IsNumber27({}, { message: "Timesheet line ID must be a number" })
|
|
10408
10458
|
], SubmitTimesheetDto.prototype, "timesheetLineId", 2);
|
|
10409
10459
|
|
|
10410
10460
|
// src/modules/timesheet/dto/resubmit-timesheet.dto.ts
|
|
10411
|
-
import { IsNotEmpty as
|
|
10461
|
+
import { IsNotEmpty as IsNotEmpty108, IsNumber as IsNumber28 } from "class-validator";
|
|
10412
10462
|
var ResubmitTimesheetDto = class {
|
|
10413
10463
|
};
|
|
10414
10464
|
__decorateClass([
|
|
10415
|
-
|
|
10465
|
+
IsNotEmpty108({ message: "Timesheet line ID is required" }),
|
|
10416
10466
|
IsNumber28({}, { message: "Timesheet line ID must be a number" })
|
|
10417
10467
|
], ResubmitTimesheetDto.prototype, "timesheetLineId", 2);
|
|
10418
10468
|
|
|
10419
10469
|
// src/modules/timesheet/dto/approve-timesheets.dto.ts
|
|
10420
|
-
import { IsNotEmpty as
|
|
10470
|
+
import { IsNotEmpty as IsNotEmpty109, IsNumber as IsNumber29 } from "class-validator";
|
|
10421
10471
|
import { Type as Type22 } from "class-transformer";
|
|
10422
10472
|
var ApproveTimesheetsDto = class {
|
|
10423
10473
|
};
|
|
10424
10474
|
__decorateClass([
|
|
10425
10475
|
IsNumber29({}, { message: "Timesheet line ID must be a number." }),
|
|
10426
|
-
|
|
10476
|
+
IsNotEmpty109({ message: "Timesheet line ID is required." }),
|
|
10427
10477
|
Type22(() => Number)
|
|
10428
10478
|
], ApproveTimesheetsDto.prototype, "timesheetLineId", 2);
|
|
10429
10479
|
|
|
10430
10480
|
// src/modules/timesheet/dto/send-back-timesheets.dto.ts
|
|
10431
|
-
import { IsNotEmpty as
|
|
10481
|
+
import { IsNotEmpty as IsNotEmpty110, IsNumber as IsNumber30, IsOptional as IsOptional75, IsString as IsString77 } from "class-validator";
|
|
10432
10482
|
import { Type as Type23 } from "class-transformer";
|
|
10433
10483
|
var SendBackTimesheetsDto = class {
|
|
10434
10484
|
};
|
|
10435
10485
|
__decorateClass([
|
|
10436
10486
|
IsNumber30({}, { message: "Timesheet line ID must be a number." }),
|
|
10437
|
-
|
|
10487
|
+
IsNotEmpty110({ message: "Timesheet line ID is required." }),
|
|
10438
10488
|
Type23(() => Number)
|
|
10439
10489
|
], SendBackTimesheetsDto.prototype, "timesheetLineId", 2);
|
|
10440
10490
|
__decorateClass([
|
|
@@ -10443,19 +10493,19 @@ __decorateClass([
|
|
|
10443
10493
|
], SendBackTimesheetsDto.prototype, "clientSendBackReason", 2);
|
|
10444
10494
|
|
|
10445
10495
|
// src/modules/timesheet/dto/create-default-timesheet-line.dto.ts
|
|
10446
|
-
import { IsNotEmpty as
|
|
10496
|
+
import { IsNotEmpty as IsNotEmpty111, IsNumber as IsNumber31 } from "class-validator";
|
|
10447
10497
|
var CreateDefaultTimesheetLineDto = class {
|
|
10448
10498
|
};
|
|
10449
10499
|
__decorateClass([
|
|
10450
|
-
|
|
10500
|
+
IsNotEmpty111({ message: "Contract ID is required" }),
|
|
10451
10501
|
IsNumber31({}, { message: "Contract ID must be a number" })
|
|
10452
10502
|
], CreateDefaultTimesheetLineDto.prototype, "contractId", 2);
|
|
10453
10503
|
__decorateClass([
|
|
10454
|
-
|
|
10504
|
+
IsNotEmpty111({ message: "Freelancer ID is required" }),
|
|
10455
10505
|
IsNumber31({}, { message: "Freelancer ID must be a number" })
|
|
10456
10506
|
], CreateDefaultTimesheetLineDto.prototype, "freelancerId", 2);
|
|
10457
10507
|
__decorateClass([
|
|
10458
|
-
|
|
10508
|
+
IsNotEmpty111({ message: "Client ID is required" }),
|
|
10459
10509
|
IsNumber31({}, { message: "Client ID must be a number" })
|
|
10460
10510
|
], CreateDefaultTimesheetLineDto.prototype, "clientId", 2);
|
|
10461
10511
|
|
|
@@ -10478,22 +10528,22 @@ var INVOICE_PATTERN = {
|
|
|
10478
10528
|
};
|
|
10479
10529
|
|
|
10480
10530
|
// src/modules/invoice/dto/update-invoice-status.dto.ts
|
|
10481
|
-
import { IsEnum as
|
|
10531
|
+
import { IsEnum as IsEnum45, IsNotEmpty as IsNotEmpty112 } from "class-validator";
|
|
10482
10532
|
var UpdateInvoiceStatusDto = class {
|
|
10483
10533
|
};
|
|
10484
10534
|
__decorateClass([
|
|
10485
|
-
|
|
10486
|
-
|
|
10535
|
+
IsNotEmpty112({ message: "Please provide invoice status." }),
|
|
10536
|
+
IsEnum45(InvoiceStatusEnum, {
|
|
10487
10537
|
message: "Status must be one of: APPROVED, REJECTED"
|
|
10488
10538
|
})
|
|
10489
10539
|
], UpdateInvoiceStatusDto.prototype, "status", 2);
|
|
10490
10540
|
|
|
10491
10541
|
// src/modules/invoice/dto/create-invoice.dto.ts
|
|
10492
|
-
import { IsNotEmpty as
|
|
10542
|
+
import { IsNotEmpty as IsNotEmpty113, IsNumber as IsNumber32 } from "class-validator";
|
|
10493
10543
|
var CreateInvoiceDto = class {
|
|
10494
10544
|
};
|
|
10495
10545
|
__decorateClass([
|
|
10496
|
-
|
|
10546
|
+
IsNotEmpty113({ message: "Timesheet line ID is required" }),
|
|
10497
10547
|
IsNumber32({}, { message: "Timesheet line ID must be a number" })
|
|
10498
10548
|
], CreateInvoiceDto.prototype, "timeSheetLineId", 2);
|
|
10499
10549
|
|
|
@@ -10507,7 +10557,7 @@ var DISPUTE_PATTERN = {
|
|
|
10507
10557
|
// src/modules/dispute/dto/create-dispute.dto.ts
|
|
10508
10558
|
import {
|
|
10509
10559
|
IsString as IsString78,
|
|
10510
|
-
IsNotEmpty as
|
|
10560
|
+
IsNotEmpty as IsNotEmpty114,
|
|
10511
10561
|
IsIn as IsIn4,
|
|
10512
10562
|
IsOptional as IsOptional76,
|
|
10513
10563
|
MaxLength as MaxLength22,
|
|
@@ -10529,16 +10579,16 @@ __decorateClass([
|
|
|
10529
10579
|
Type24(() => Number)
|
|
10530
10580
|
], CreateDisputeDto.prototype, "freelancerId", 2);
|
|
10531
10581
|
__decorateClass([
|
|
10532
|
-
|
|
10582
|
+
IsNotEmpty114({ message: "Please select dispute type." }),
|
|
10533
10583
|
IsString78(),
|
|
10534
10584
|
IsIn4(["JOB", "INVOICE"])
|
|
10535
10585
|
], CreateDisputeDto.prototype, "disputeType", 2);
|
|
10536
10586
|
__decorateClass([
|
|
10537
|
-
|
|
10587
|
+
IsNotEmpty114({ message: "Please provide initiator type." }),
|
|
10538
10588
|
IsString78()
|
|
10539
10589
|
], CreateDisputeDto.prototype, "initiatorType", 2);
|
|
10540
10590
|
__decorateClass([
|
|
10541
|
-
|
|
10591
|
+
IsNotEmpty114({ message: "Please enter description." }),
|
|
10542
10592
|
IsString78({ message: "Description must be a string" }),
|
|
10543
10593
|
MaxLength22(500, { message: "Description must not exceed 500 characters" })
|
|
10544
10594
|
], CreateDisputeDto.prototype, "description", 2);
|
|
@@ -10571,23 +10621,23 @@ var SENSELOAF_PATTERN = {
|
|
|
10571
10621
|
|
|
10572
10622
|
// src/modules/senseloaf/dto/ai-interview-question-generate.dto.ts
|
|
10573
10623
|
import {
|
|
10574
|
-
IsNotEmpty as
|
|
10624
|
+
IsNotEmpty as IsNotEmpty115
|
|
10575
10625
|
} from "class-validator";
|
|
10576
10626
|
var AiInterviewQuestionGenerateDto = class {
|
|
10577
10627
|
};
|
|
10578
10628
|
__decorateClass([
|
|
10579
|
-
|
|
10629
|
+
IsNotEmpty115({ message: "Please enter job description." })
|
|
10580
10630
|
], AiInterviewQuestionGenerateDto.prototype, "jobDescription", 2);
|
|
10581
10631
|
__decorateClass([
|
|
10582
|
-
|
|
10632
|
+
IsNotEmpty115({ message: "Please enter number of questions." })
|
|
10583
10633
|
], AiInterviewQuestionGenerateDto.prototype, "numQuestions", 2);
|
|
10584
10634
|
|
|
10585
10635
|
// src/modules/senseloaf/dto/resume-parsing-by-url.dto.ts
|
|
10586
|
-
import { IsNotEmpty as
|
|
10636
|
+
import { IsNotEmpty as IsNotEmpty116, IsString as IsString79, IsOptional as IsOptional77 } from "class-validator";
|
|
10587
10637
|
var ResumeParsingByUrlDto = class {
|
|
10588
10638
|
};
|
|
10589
10639
|
__decorateClass([
|
|
10590
|
-
|
|
10640
|
+
IsNotEmpty116({ message: "Resume URL is required" }),
|
|
10591
10641
|
IsString79({ message: "Resume URL must be a string" })
|
|
10592
10642
|
], ResumeParsingByUrlDto.prototype, "resumeUrl", 2);
|
|
10593
10643
|
__decorateClass([
|
|
@@ -10596,11 +10646,11 @@ __decorateClass([
|
|
|
10596
10646
|
], ResumeParsingByUrlDto.prototype, "fileName", 2);
|
|
10597
10647
|
|
|
10598
10648
|
// src/modules/senseloaf/dto/resume-data-processing.dto.ts
|
|
10599
|
-
import { IsNotEmpty as
|
|
10649
|
+
import { IsNotEmpty as IsNotEmpty117, IsString as IsString80, IsOptional as IsOptional78, IsObject as IsObject8 } from "class-validator";
|
|
10600
10650
|
var ResumeDataProcessingDto = class {
|
|
10601
10651
|
};
|
|
10602
10652
|
__decorateClass([
|
|
10603
|
-
|
|
10653
|
+
IsNotEmpty117({ message: "Resume data is required" }),
|
|
10604
10654
|
IsObject8()
|
|
10605
10655
|
], ResumeDataProcessingDto.prototype, "resumeData", 2);
|
|
10606
10656
|
__decorateClass([
|
|
@@ -10613,11 +10663,11 @@ __decorateClass([
|
|
|
10613
10663
|
], ResumeDataProcessingDto.prototype, "processingType", 2);
|
|
10614
10664
|
|
|
10615
10665
|
// src/modules/senseloaf/dto/check-resume-eligibility.dto.ts
|
|
10616
|
-
import { IsNotEmpty as
|
|
10666
|
+
import { IsNotEmpty as IsNotEmpty118, IsString as IsString81, IsOptional as IsOptional79, IsObject as IsObject9 } from "class-validator";
|
|
10617
10667
|
var CheckResumeEligibilityDto = class {
|
|
10618
10668
|
};
|
|
10619
10669
|
__decorateClass([
|
|
10620
|
-
|
|
10670
|
+
IsNotEmpty118({ message: "Resume data is required" }),
|
|
10621
10671
|
IsObject9()
|
|
10622
10672
|
], CheckResumeEligibilityDto.prototype, "resumeData", 2);
|
|
10623
10673
|
__decorateClass([
|
|
@@ -10630,11 +10680,11 @@ __decorateClass([
|
|
|
10630
10680
|
], CheckResumeEligibilityDto.prototype, "userId", 2);
|
|
10631
10681
|
|
|
10632
10682
|
// src/modules/senseloaf/dto/ai-interview-template-generation.dto.ts
|
|
10633
|
-
import { IsNotEmpty as
|
|
10683
|
+
import { IsNotEmpty as IsNotEmpty119, IsString as IsString82, IsOptional as IsOptional80, IsArray as IsArray26, IsNumber as IsNumber34 } from "class-validator";
|
|
10634
10684
|
var AiInterviewTemplateGenerationDto = class {
|
|
10635
10685
|
};
|
|
10636
10686
|
__decorateClass([
|
|
10637
|
-
|
|
10687
|
+
IsNotEmpty119({ message: "Job ID is required" }),
|
|
10638
10688
|
IsString82({ message: "Job ID must be a string" })
|
|
10639
10689
|
], AiInterviewTemplateGenerationDto.prototype, "jobId", 2);
|
|
10640
10690
|
__decorateClass([
|
|
@@ -10652,15 +10702,15 @@ __decorateClass([
|
|
|
10652
10702
|
], AiInterviewTemplateGenerationDto.prototype, "difficulty", 2);
|
|
10653
10703
|
|
|
10654
10704
|
// src/modules/senseloaf/dto/ai-interview-link-generation.dto.ts
|
|
10655
|
-
import { IsNotEmpty as
|
|
10705
|
+
import { IsNotEmpty as IsNotEmpty120, IsString as IsString83, IsOptional as IsOptional81, IsNumber as IsNumber35 } from "class-validator";
|
|
10656
10706
|
var AiInterviewLinkGenerationDto = class {
|
|
10657
10707
|
};
|
|
10658
10708
|
__decorateClass([
|
|
10659
|
-
|
|
10709
|
+
IsNotEmpty120({ message: "Template ID is required" }),
|
|
10660
10710
|
IsString83({ message: "Template ID must be a string" })
|
|
10661
10711
|
], AiInterviewLinkGenerationDto.prototype, "templateId", 2);
|
|
10662
10712
|
__decorateClass([
|
|
10663
|
-
|
|
10713
|
+
IsNotEmpty120({ message: "Freelancer ID is required" }),
|
|
10664
10714
|
IsString83({ message: "Freelancer ID must be a string" })
|
|
10665
10715
|
], AiInterviewLinkGenerationDto.prototype, "freelancerId", 2);
|
|
10666
10716
|
__decorateClass([
|
|
@@ -10673,11 +10723,11 @@ __decorateClass([
|
|
|
10673
10723
|
], AiInterviewLinkGenerationDto.prototype, "expiryHours", 2);
|
|
10674
10724
|
|
|
10675
10725
|
// src/modules/senseloaf/dto/ai-assessment-creation.dto.ts
|
|
10676
|
-
import { IsNotEmpty as
|
|
10726
|
+
import { IsNotEmpty as IsNotEmpty121, IsString as IsString84, IsOptional as IsOptional82, IsNumber as IsNumber36 } from "class-validator";
|
|
10677
10727
|
var AiAssessmentCreationDto = class {
|
|
10678
10728
|
};
|
|
10679
10729
|
__decorateClass([
|
|
10680
|
-
|
|
10730
|
+
IsNotEmpty121({ message: "User ID is required" }),
|
|
10681
10731
|
IsString84({ message: "User ID must be a string" })
|
|
10682
10732
|
], AiAssessmentCreationDto.prototype, "userId", 2);
|
|
10683
10733
|
__decorateClass([
|
|
@@ -10706,7 +10756,7 @@ var HIRING_PATTERN = {
|
|
|
10706
10756
|
};
|
|
10707
10757
|
|
|
10708
10758
|
// src/modules/hiring/dto/create-hiring.dto.ts
|
|
10709
|
-
import { IsEnum as
|
|
10759
|
+
import { IsEnum as IsEnum46, IsNotEmpty as IsNotEmpty122, IsNumber as IsNumber37 } from "class-validator";
|
|
10710
10760
|
var PreferredEngagementTypeEnum2 = /* @__PURE__ */ ((PreferredEngagementTypeEnum3) => {
|
|
10711
10761
|
PreferredEngagementTypeEnum3["FTE"] = "FTE";
|
|
10712
10762
|
PreferredEngagementTypeEnum3["FREELANCE"] = "FREELANCE";
|
|
@@ -10715,16 +10765,16 @@ var PreferredEngagementTypeEnum2 = /* @__PURE__ */ ((PreferredEngagementTypeEnum
|
|
|
10715
10765
|
var CreateHiringDto = class {
|
|
10716
10766
|
};
|
|
10717
10767
|
__decorateClass([
|
|
10718
|
-
|
|
10768
|
+
IsNotEmpty122({ message: "Freelancer ID is required" }),
|
|
10719
10769
|
IsNumber37({}, { message: "Freelancer ID must be a number" })
|
|
10720
10770
|
], CreateHiringDto.prototype, "freelancerId", 2);
|
|
10721
10771
|
__decorateClass([
|
|
10722
|
-
|
|
10772
|
+
IsNotEmpty122({ message: "Job ID is required" }),
|
|
10723
10773
|
IsNumber37({}, { message: "Job ID must be a number" })
|
|
10724
10774
|
], CreateHiringDto.prototype, "jobId", 2);
|
|
10725
10775
|
__decorateClass([
|
|
10726
|
-
|
|
10727
|
-
|
|
10776
|
+
IsNotEmpty122({ message: "Preferred engagement type is required" }),
|
|
10777
|
+
IsEnum46(PreferredEngagementTypeEnum2, {
|
|
10728
10778
|
message: "Preferred engagement type must be one of FTE or FREELANCE."
|
|
10729
10779
|
})
|
|
10730
10780
|
], CreateHiringDto.prototype, "preferredEngagementType", 2);
|
|
@@ -10774,25 +10824,25 @@ var WALLET_ADMIN_PATTERN = {
|
|
|
10774
10824
|
};
|
|
10775
10825
|
|
|
10776
10826
|
// src/modules/wallet/dto/add-topup-escrow-amount.dto.ts
|
|
10777
|
-
import { IsNotEmpty as
|
|
10827
|
+
import { IsNotEmpty as IsNotEmpty123, IsNumber as IsNumber38, IsUUID as IsUUID31 } from "class-validator";
|
|
10778
10828
|
var AddTopupEscrowAmountDto = class {
|
|
10779
10829
|
};
|
|
10780
10830
|
__decorateClass([
|
|
10781
|
-
|
|
10831
|
+
IsNotEmpty123({ message: "Amount is required" }),
|
|
10782
10832
|
IsNumber38({}, { message: "Amount must be a number" })
|
|
10783
10833
|
], AddTopupEscrowAmountDto.prototype, "amount", 2);
|
|
10784
10834
|
__decorateClass([
|
|
10785
|
-
|
|
10786
|
-
|
|
10835
|
+
IsNotEmpty123({ message: "Escrow wallet UUID is required" }),
|
|
10836
|
+
IsUUID31("4", { message: "Escrow wallet UUID must be a valid UUID" })
|
|
10787
10837
|
], AddTopupEscrowAmountDto.prototype, "escrowWalletUuid", 2);
|
|
10788
10838
|
|
|
10789
10839
|
// src/modules/wallet/dto/debit-commission-fte-hiring.dto.ts
|
|
10790
|
-
import { IsNotEmpty as
|
|
10840
|
+
import { IsNotEmpty as IsNotEmpty124, IsUUID as IsUUID32 } from "class-validator";
|
|
10791
10841
|
var DebitCommissionFteHiringDto = class {
|
|
10792
10842
|
};
|
|
10793
10843
|
__decorateClass([
|
|
10794
|
-
|
|
10795
|
-
|
|
10844
|
+
IsUUID32("4", { message: "Invoice UUID must be a valid UUID." }),
|
|
10845
|
+
IsNotEmpty124({ message: "Invoice UUID is required." })
|
|
10796
10846
|
], DebitCommissionFteHiringDto.prototype, "invoiceUuid", 2);
|
|
10797
10847
|
|
|
10798
10848
|
// src/modules/discord/discord-alert.interface.ts
|
|
@@ -13220,6 +13270,7 @@ export {
|
|
|
13220
13270
|
RemoveGlobalSettingDto,
|
|
13221
13271
|
ResetPasswordDto,
|
|
13222
13272
|
ResetPasswordTokenValidationDto,
|
|
13273
|
+
ResetUserPasswordByAdminDto,
|
|
13223
13274
|
ResubmitTimesheetDto,
|
|
13224
13275
|
ResultStatusEnum,
|
|
13225
13276
|
ResumeDataProcessingDto,
|
|
@@ -13249,6 +13300,7 @@ export {
|
|
|
13249
13300
|
Signature,
|
|
13250
13301
|
Skill,
|
|
13251
13302
|
SkillCatalog,
|
|
13303
|
+
SkipServiceAgreementFlowDto,
|
|
13252
13304
|
SocialAuthDto,
|
|
13253
13305
|
State,
|
|
13254
13306
|
Step,
|
|
@@ -13275,6 +13327,8 @@ export {
|
|
|
13275
13327
|
TransferFundsDto,
|
|
13276
13328
|
TypeOfEmploymentEnum,
|
|
13277
13329
|
UpdateAdminClientAccountStatusDto,
|
|
13330
|
+
UpdateAdminClientJobPostingRestrictionDto,
|
|
13331
|
+
UpdateAdminFreelancerAccountStatusDto,
|
|
13278
13332
|
UpdateAdminRoleDto,
|
|
13279
13333
|
UpdateAdminRoleStatusDto,
|
|
13280
13334
|
UpdateAssessmentRequestStatusDto,
|