@experts_hub/shared 1.0.643 → 1.0.645
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 +1514 -1456
- package/dist/index.mjs +679 -625
- 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 +1 -0
- package/dist/modules/interview/pattern/pattern.d.ts +1 -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,13 @@ 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"
|
|
7814
7831
|
};
|
|
7815
7832
|
|
|
7816
7833
|
// src/modules/freelancer-admin/dto/create-freelancer.dto.ts
|
|
7817
7834
|
import {
|
|
7818
|
-
IsString as
|
|
7835
|
+
IsString as IsString42,
|
|
7819
7836
|
IsEmail as IsEmail13,
|
|
7820
7837
|
IsBoolean as IsBoolean11,
|
|
7821
7838
|
IsOptional as IsOptional38,
|
|
@@ -7823,9 +7840,9 @@ import {
|
|
|
7823
7840
|
IsNumber as IsNumber9,
|
|
7824
7841
|
IsUrl as IsUrl3,
|
|
7825
7842
|
MaxLength as MaxLength17,
|
|
7826
|
-
MinLength as
|
|
7843
|
+
MinLength as MinLength13,
|
|
7827
7844
|
Matches as Matches9,
|
|
7828
|
-
IsNotEmpty as
|
|
7845
|
+
IsNotEmpty as IsNotEmpty65,
|
|
7829
7846
|
ValidateIf as ValidateIf8,
|
|
7830
7847
|
IsInt as IsInt7
|
|
7831
7848
|
} from "class-validator";
|
|
@@ -7846,7 +7863,7 @@ var CreateFreelancerDto = class {
|
|
|
7846
7863
|
};
|
|
7847
7864
|
__decorateClass([
|
|
7848
7865
|
IsOptional38(),
|
|
7849
|
-
|
|
7866
|
+
IsString42({ message: "Full name must be a string" }),
|
|
7850
7867
|
MaxLength17(100, { message: "Full name must not exceed 100 characters" }),
|
|
7851
7868
|
Transform2(({ value }) => {
|
|
7852
7869
|
if (Array.isArray(value)) return value[0]?.trim();
|
|
@@ -7863,7 +7880,7 @@ __decorateClass([
|
|
|
7863
7880
|
], CreateFreelancerDto.prototype, "email", 2);
|
|
7864
7881
|
__decorateClass([
|
|
7865
7882
|
IsOptional38(),
|
|
7866
|
-
|
|
7883
|
+
IsString42({ message: "Mobile code must be a string (e.g., +1)" }),
|
|
7867
7884
|
Transform2(({ value }) => {
|
|
7868
7885
|
if (Array.isArray(value)) return value[0]?.trim();
|
|
7869
7886
|
return typeof value === "string" ? value.trim() : value;
|
|
@@ -7871,15 +7888,15 @@ __decorateClass([
|
|
|
7871
7888
|
], CreateFreelancerDto.prototype, "mobileCode", 2);
|
|
7872
7889
|
__decorateClass([
|
|
7873
7890
|
IsOptional38(),
|
|
7874
|
-
|
|
7891
|
+
IsString42({ message: "Mobile must be a string (e.g., 1243253534)" }),
|
|
7875
7892
|
Transform2(({ value }) => {
|
|
7876
7893
|
if (Array.isArray(value)) return value[0]?.trim();
|
|
7877
7894
|
return typeof value === "string" ? value.trim() : value;
|
|
7878
7895
|
})
|
|
7879
7896
|
], CreateFreelancerDto.prototype, "mobile", 2);
|
|
7880
7897
|
__decorateClass([
|
|
7881
|
-
|
|
7882
|
-
|
|
7898
|
+
IsNotEmpty65({ message: "Please enter address." }),
|
|
7899
|
+
IsString42({ message: "address must be a string" }),
|
|
7883
7900
|
Transform2(({ value }) => {
|
|
7884
7901
|
if (Array.isArray(value)) {
|
|
7885
7902
|
const val = value[0];
|
|
@@ -7890,7 +7907,7 @@ __decorateClass([
|
|
|
7890
7907
|
], CreateFreelancerDto.prototype, "address", 2);
|
|
7891
7908
|
__decorateClass([
|
|
7892
7909
|
IsOptional38(),
|
|
7893
|
-
|
|
7910
|
+
IsString42({ message: "addressLine must be a string" }),
|
|
7894
7911
|
Transform2(({ value }) => {
|
|
7895
7912
|
if (Array.isArray(value)) {
|
|
7896
7913
|
const val = value[0];
|
|
@@ -7930,7 +7947,7 @@ __decorateClass([
|
|
|
7930
7947
|
], CreateFreelancerDto.prototype, "cityId", 2);
|
|
7931
7948
|
__decorateClass([
|
|
7932
7949
|
IsOptional38(),
|
|
7933
|
-
|
|
7950
|
+
IsString42({ message: "postalCode must be a string" }),
|
|
7934
7951
|
Transform2(({ value }) => {
|
|
7935
7952
|
if (Array.isArray(value)) {
|
|
7936
7953
|
const val = value[0];
|
|
@@ -7943,7 +7960,7 @@ __decorateClass([
|
|
|
7943
7960
|
], CreateFreelancerDto.prototype, "postalCode", 2);
|
|
7944
7961
|
__decorateClass([
|
|
7945
7962
|
IsOptional38(),
|
|
7946
|
-
|
|
7963
|
+
IsString42({ message: "about must be a string" }),
|
|
7947
7964
|
Transform2(({ value }) => {
|
|
7948
7965
|
if (Array.isArray(value)) {
|
|
7949
7966
|
const val = value[0];
|
|
@@ -7956,7 +7973,7 @@ __decorateClass([
|
|
|
7956
7973
|
], CreateFreelancerDto.prototype, "about", 2);
|
|
7957
7974
|
__decorateClass([
|
|
7958
7975
|
IsOptional38(),
|
|
7959
|
-
|
|
7976
|
+
IsString42({ message: "designation must be a string" }),
|
|
7960
7977
|
Transform2(({ value }) => {
|
|
7961
7978
|
if (Array.isArray(value)) {
|
|
7962
7979
|
const val = value[0];
|
|
@@ -7982,14 +7999,14 @@ __decorateClass([
|
|
|
7982
7999
|
if (Array.isArray(value)) value = value[0];
|
|
7983
8000
|
return value === null || value === "" ? void 0 : value;
|
|
7984
8001
|
}),
|
|
7985
|
-
|
|
8002
|
+
MinLength13(6, { message: "Password must be at least 6 characters." }),
|
|
7986
8003
|
MaxLength17(32, { message: "Password must not exceed 32 characters." }),
|
|
7987
8004
|
Matches9(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
7988
8005
|
message: "Password must include letters, numbers and symbols."
|
|
7989
8006
|
})
|
|
7990
8007
|
], CreateFreelancerDto.prototype, "password", 2);
|
|
7991
8008
|
__decorateClass([
|
|
7992
|
-
|
|
8009
|
+
IsNotEmpty65({ message: "Please enter confirm password." }),
|
|
7993
8010
|
Match("confirmPassword", { message: "Passwords do not match" }),
|
|
7994
8011
|
Transform2(({ value }) => {
|
|
7995
8012
|
if (Array.isArray(value)) {
|
|
@@ -8074,7 +8091,7 @@ __decorateClass([
|
|
|
8074
8091
|
__decorateClass([
|
|
8075
8092
|
ValidateIf8((o) => o.isImmediateJoiner === false),
|
|
8076
8093
|
IsOptional38(),
|
|
8077
|
-
|
|
8094
|
+
IsString42({ message: "availabilityToJoin must be a string" }),
|
|
8078
8095
|
Transform2(({ value }) => {
|
|
8079
8096
|
if (Array.isArray(value)) {
|
|
8080
8097
|
const val = value[0];
|
|
@@ -8100,7 +8117,7 @@ __decorateClass([
|
|
|
8100
8117
|
], CreateFreelancerDto.prototype, "linkedinProfileLink", 2);
|
|
8101
8118
|
__decorateClass([
|
|
8102
8119
|
IsOptional38(),
|
|
8103
|
-
|
|
8120
|
+
IsString42({ message: "Kaggle profile link must be a string" }),
|
|
8104
8121
|
Transform2(({ value }) => {
|
|
8105
8122
|
if (Array.isArray(value)) {
|
|
8106
8123
|
const val = value[0];
|
|
@@ -8156,7 +8173,7 @@ __decorateClass([
|
|
|
8156
8173
|
|
|
8157
8174
|
// src/modules/freelancer-admin/dto/update-freelancer.dto.ts
|
|
8158
8175
|
import {
|
|
8159
|
-
IsString as
|
|
8176
|
+
IsString as IsString43,
|
|
8160
8177
|
IsEmail as IsEmail14,
|
|
8161
8178
|
IsBoolean as IsBoolean12,
|
|
8162
8179
|
IsOptional as IsOptional39,
|
|
@@ -8164,9 +8181,9 @@ import {
|
|
|
8164
8181
|
IsNumber as IsNumber10,
|
|
8165
8182
|
IsUrl as IsUrl4,
|
|
8166
8183
|
MaxLength as MaxLength18,
|
|
8167
|
-
MinLength as
|
|
8184
|
+
MinLength as MinLength14,
|
|
8168
8185
|
Matches as Matches10,
|
|
8169
|
-
IsNotEmpty as
|
|
8186
|
+
IsNotEmpty as IsNotEmpty66,
|
|
8170
8187
|
ValidateIf as ValidateIf9,
|
|
8171
8188
|
IsInt as IsInt8
|
|
8172
8189
|
} from "class-validator";
|
|
@@ -8187,7 +8204,7 @@ var UpdateFreelancerDto = class {
|
|
|
8187
8204
|
};
|
|
8188
8205
|
__decorateClass([
|
|
8189
8206
|
IsOptional39(),
|
|
8190
|
-
|
|
8207
|
+
IsString43({ message: "Full name must be a string" }),
|
|
8191
8208
|
MaxLength18(100, { message: "Full name must not exceed 100 characters" }),
|
|
8192
8209
|
Transform3(({ value }) => {
|
|
8193
8210
|
if (Array.isArray(value)) return value[0]?.trim();
|
|
@@ -8204,7 +8221,7 @@ __decorateClass([
|
|
|
8204
8221
|
], UpdateFreelancerDto.prototype, "email", 2);
|
|
8205
8222
|
__decorateClass([
|
|
8206
8223
|
IsOptional39(),
|
|
8207
|
-
|
|
8224
|
+
IsString43({ message: "Mobile code must be a string (e.g., +1)" }),
|
|
8208
8225
|
Transform3(({ value }) => {
|
|
8209
8226
|
if (Array.isArray(value)) return value[0]?.trim();
|
|
8210
8227
|
return typeof value === "string" ? value.trim() : value;
|
|
@@ -8212,15 +8229,15 @@ __decorateClass([
|
|
|
8212
8229
|
], UpdateFreelancerDto.prototype, "mobileCode", 2);
|
|
8213
8230
|
__decorateClass([
|
|
8214
8231
|
IsOptional39(),
|
|
8215
|
-
|
|
8232
|
+
IsString43({ message: "Mobile must be a string (e.g., 1243253534)" }),
|
|
8216
8233
|
Transform3(({ value }) => {
|
|
8217
8234
|
if (Array.isArray(value)) return value[0]?.trim();
|
|
8218
8235
|
return typeof value === "string" ? value.trim() : value;
|
|
8219
8236
|
})
|
|
8220
8237
|
], UpdateFreelancerDto.prototype, "mobile", 2);
|
|
8221
8238
|
__decorateClass([
|
|
8222
|
-
|
|
8223
|
-
|
|
8239
|
+
IsNotEmpty66({ message: "Please enter address." }),
|
|
8240
|
+
IsString43({ message: "address must be a string" }),
|
|
8224
8241
|
Transform3(({ value }) => {
|
|
8225
8242
|
if (Array.isArray(value)) {
|
|
8226
8243
|
const val = value[0];
|
|
@@ -8231,7 +8248,7 @@ __decorateClass([
|
|
|
8231
8248
|
], UpdateFreelancerDto.prototype, "address", 2);
|
|
8232
8249
|
__decorateClass([
|
|
8233
8250
|
IsOptional39(),
|
|
8234
|
-
|
|
8251
|
+
IsString43({ message: "addressLine must be a string" }),
|
|
8235
8252
|
Transform3(({ value }) => {
|
|
8236
8253
|
if (Array.isArray(value)) {
|
|
8237
8254
|
const val = value[0];
|
|
@@ -8271,7 +8288,7 @@ __decorateClass([
|
|
|
8271
8288
|
], UpdateFreelancerDto.prototype, "cityId", 2);
|
|
8272
8289
|
__decorateClass([
|
|
8273
8290
|
IsOptional39(),
|
|
8274
|
-
|
|
8291
|
+
IsString43({ message: "postalCode must be a string" }),
|
|
8275
8292
|
Transform3(({ value }) => {
|
|
8276
8293
|
if (Array.isArray(value)) {
|
|
8277
8294
|
const val = value[0];
|
|
@@ -8284,7 +8301,7 @@ __decorateClass([
|
|
|
8284
8301
|
], UpdateFreelancerDto.prototype, "postalCode", 2);
|
|
8285
8302
|
__decorateClass([
|
|
8286
8303
|
IsOptional39(),
|
|
8287
|
-
|
|
8304
|
+
IsString43({ message: "about must be a string" }),
|
|
8288
8305
|
Transform3(({ value }) => {
|
|
8289
8306
|
if (Array.isArray(value)) {
|
|
8290
8307
|
const val = value[0];
|
|
@@ -8297,7 +8314,7 @@ __decorateClass([
|
|
|
8297
8314
|
], UpdateFreelancerDto.prototype, "about", 2);
|
|
8298
8315
|
__decorateClass([
|
|
8299
8316
|
IsOptional39(),
|
|
8300
|
-
|
|
8317
|
+
IsString43({ message: "designation must be a string" }),
|
|
8301
8318
|
Transform3(({ value }) => {
|
|
8302
8319
|
if (Array.isArray(value)) {
|
|
8303
8320
|
const val = value[0];
|
|
@@ -8323,7 +8340,7 @@ __decorateClass([
|
|
|
8323
8340
|
if (Array.isArray(value)) value = value[0];
|
|
8324
8341
|
return value === null || value === "" ? void 0 : value;
|
|
8325
8342
|
}),
|
|
8326
|
-
|
|
8343
|
+
MinLength14(6, { message: "Password must be at least 6 characters." }),
|
|
8327
8344
|
MaxLength18(32, { message: "Password must not exceed 32 characters." }),
|
|
8328
8345
|
Matches10(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
8329
8346
|
message: "Password must include letters, numbers and symbols."
|
|
@@ -8404,7 +8421,7 @@ __decorateClass([
|
|
|
8404
8421
|
__decorateClass([
|
|
8405
8422
|
ValidateIf9((o) => o.isImmediateJoiner === false),
|
|
8406
8423
|
IsOptional39(),
|
|
8407
|
-
|
|
8424
|
+
IsString43({ message: "availabilityToJoin must be a string" }),
|
|
8408
8425
|
Transform3(({ value }) => {
|
|
8409
8426
|
if (Array.isArray(value)) {
|
|
8410
8427
|
const val = value[0];
|
|
@@ -8430,7 +8447,7 @@ __decorateClass([
|
|
|
8430
8447
|
], UpdateFreelancerDto.prototype, "linkedinProfileLink", 2);
|
|
8431
8448
|
__decorateClass([
|
|
8432
8449
|
IsOptional39(),
|
|
8433
|
-
|
|
8450
|
+
IsString43({ message: "Kaggle profile link must be a string" }),
|
|
8434
8451
|
Transform3(({ value }) => {
|
|
8435
8452
|
if (Array.isArray(value)) {
|
|
8436
8453
|
const val = value[0];
|
|
@@ -8485,16 +8502,16 @@ __decorateClass([
|
|
|
8485
8502
|
], UpdateFreelancerDto.prototype, "file", 2);
|
|
8486
8503
|
|
|
8487
8504
|
// src/modules/freelancer-admin/dto/send-ai-assessment-link.dto.ts
|
|
8488
|
-
import { IsNotEmpty as
|
|
8505
|
+
import { IsNotEmpty as IsNotEmpty67, IsUUID as IsUUID19 } from "class-validator";
|
|
8489
8506
|
var SendAiAssessmentLinkDto = class {
|
|
8490
8507
|
};
|
|
8491
8508
|
__decorateClass([
|
|
8492
|
-
|
|
8493
|
-
|
|
8509
|
+
IsUUID19("4", { message: "Freelancer UUID must be a valid UUID." }),
|
|
8510
|
+
IsNotEmpty67({ message: "Freelancer UUID is required." })
|
|
8494
8511
|
], SendAiAssessmentLinkDto.prototype, "uuid", 2);
|
|
8495
8512
|
|
|
8496
8513
|
// src/modules/freelancer-admin/dto/update-assessment-request-status.dto.ts
|
|
8497
|
-
import { IsEnum as IsEnum26, IsOptional as IsOptional40, IsString as
|
|
8514
|
+
import { IsEnum as IsEnum26, IsOptional as IsOptional40, IsString as IsString44 } from "class-validator";
|
|
8498
8515
|
var AssessmentRequestStatus = /* @__PURE__ */ ((AssessmentRequestStatus2) => {
|
|
8499
8516
|
AssessmentRequestStatus2["PENDING"] = "PENDING";
|
|
8500
8517
|
AssessmentRequestStatus2["APPROVED"] = "APPROVED";
|
|
@@ -8511,7 +8528,7 @@ __decorateClass([
|
|
|
8511
8528
|
], UpdateAssessmentRequestStatusDto.prototype, "status", 2);
|
|
8512
8529
|
__decorateClass([
|
|
8513
8530
|
IsOptional40(),
|
|
8514
|
-
|
|
8531
|
+
IsString44()
|
|
8515
8532
|
], UpdateAssessmentRequestStatusDto.prototype, "remarks", 2);
|
|
8516
8533
|
|
|
8517
8534
|
// src/modules/freelancer-admin/dto/admin-export-freelancerV2-optimised.dto.ts
|
|
@@ -8528,6 +8545,16 @@ __decorateClass([
|
|
|
8528
8545
|
IsEmail15({}, { each: true, message: "Each email must be a valid email address" })
|
|
8529
8546
|
], AdminExportFreelancerV2OptimisedDto.prototype, "customEmails", 2);
|
|
8530
8547
|
|
|
8548
|
+
// src/modules/freelancer-admin/dto/update-admin-freelancer-account-status.dto.ts
|
|
8549
|
+
import { IsEnum as IsEnum27 } from "class-validator";
|
|
8550
|
+
var UpdateAdminFreelancerAccountStatusDto = class {
|
|
8551
|
+
};
|
|
8552
|
+
__decorateClass([
|
|
8553
|
+
IsEnum27(AccountStatus, {
|
|
8554
|
+
message: `accountStatus must be one of: ${Object.values(AccountStatus).join(", ")}`
|
|
8555
|
+
})
|
|
8556
|
+
], UpdateAdminFreelancerAccountStatusDto.prototype, "accountStatus", 2);
|
|
8557
|
+
|
|
8531
8558
|
// src/modules/client-admin/pattern/pattern.ts
|
|
8532
8559
|
var CLIENT_ADMIN_PATTERNS = {
|
|
8533
8560
|
fetchAdminClients: "fetch.admin.clients",
|
|
@@ -8540,16 +8567,18 @@ var CLIENT_ADMIN_PATTERNS = {
|
|
|
8540
8567
|
fetchClientDropdown: "fetch.client.dropdown",
|
|
8541
8568
|
fetchClientGraphCount: "fetch.client.graph.count",
|
|
8542
8569
|
adminExportClientV2Optimised: "admin.export.client.v2.optimised",
|
|
8543
|
-
updateAdminClientAccountStatus: "update.admin.client.account.status"
|
|
8570
|
+
updateAdminClientAccountStatus: "update.admin.client.account.status",
|
|
8571
|
+
skipServiceAgreementFlow: "skip.service.agreement.flow",
|
|
8572
|
+
updateAdminClientJobPostingRestrictionStatus: "update.admin.client.job.posting.restriction.status"
|
|
8544
8573
|
};
|
|
8545
8574
|
|
|
8546
8575
|
// src/modules/client-admin/dto/create-client.dto.ts
|
|
8547
8576
|
import {
|
|
8548
|
-
IsNotEmpty as
|
|
8577
|
+
IsNotEmpty as IsNotEmpty68,
|
|
8549
8578
|
IsEmail as IsEmail16,
|
|
8550
8579
|
IsOptional as IsOptional42,
|
|
8551
|
-
IsString as
|
|
8552
|
-
MinLength as
|
|
8580
|
+
IsString as IsString45,
|
|
8581
|
+
MinLength as MinLength15,
|
|
8553
8582
|
MaxLength as MaxLength19,
|
|
8554
8583
|
Matches as Matches11,
|
|
8555
8584
|
IsInt as IsInt9,
|
|
@@ -8559,52 +8588,52 @@ import { Type as Type8 } from "class-transformer";
|
|
|
8559
8588
|
var CreateClientDto = class {
|
|
8560
8589
|
};
|
|
8561
8590
|
__decorateClass([
|
|
8562
|
-
|
|
8563
|
-
|
|
8591
|
+
IsNotEmpty68({ message: "Please enter first name." }),
|
|
8592
|
+
IsString45()
|
|
8564
8593
|
], CreateClientDto.prototype, "firstName", 2);
|
|
8565
8594
|
__decorateClass([
|
|
8566
|
-
|
|
8567
|
-
|
|
8595
|
+
IsNotEmpty68({ message: "Please enter last name." }),
|
|
8596
|
+
IsString45()
|
|
8568
8597
|
], CreateClientDto.prototype, "lastName", 2);
|
|
8569
8598
|
__decorateClass([
|
|
8570
|
-
|
|
8599
|
+
IsNotEmpty68({ message: "Please enter email." }),
|
|
8571
8600
|
IsEmail16()
|
|
8572
8601
|
], CreateClientDto.prototype, "email", 2);
|
|
8573
8602
|
__decorateClass([
|
|
8574
|
-
|
|
8575
|
-
|
|
8603
|
+
IsNotEmpty68({ message: "Please enter mobile code." }),
|
|
8604
|
+
IsString45({ message: "Mobile code must be a string." })
|
|
8576
8605
|
], CreateClientDto.prototype, "mobileCode", 2);
|
|
8577
8606
|
__decorateClass([
|
|
8578
|
-
|
|
8579
|
-
|
|
8607
|
+
IsNotEmpty68({ message: "Please enter phone number." }),
|
|
8608
|
+
IsString45({ message: "Phone number must be a string." })
|
|
8580
8609
|
], CreateClientDto.prototype, "phoneNumber", 2);
|
|
8581
8610
|
__decorateClass([
|
|
8582
|
-
|
|
8583
|
-
|
|
8611
|
+
IsNotEmpty68({ message: "Please enter password." }),
|
|
8612
|
+
MinLength15(6),
|
|
8584
8613
|
MaxLength19(32),
|
|
8585
8614
|
Matches11(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
8586
8615
|
message: "Password must include letters, numbers and symbols."
|
|
8587
8616
|
})
|
|
8588
8617
|
], CreateClientDto.prototype, "password", 2);
|
|
8589
8618
|
__decorateClass([
|
|
8590
|
-
|
|
8619
|
+
IsNotEmpty68({ message: "Please enter confirm password." }),
|
|
8591
8620
|
Match("confirmPassword", { message: "Passwords do not match" })
|
|
8592
8621
|
], CreateClientDto.prototype, "confirmPassword", 2);
|
|
8593
8622
|
__decorateClass([
|
|
8594
|
-
|
|
8595
|
-
|
|
8623
|
+
IsNotEmpty68({ message: "Please enter company name." }),
|
|
8624
|
+
IsString45()
|
|
8596
8625
|
], CreateClientDto.prototype, "companyName", 2);
|
|
8597
8626
|
__decorateClass([
|
|
8598
8627
|
IsOptional42(),
|
|
8599
|
-
|
|
8628
|
+
IsString45()
|
|
8600
8629
|
], CreateClientDto.prototype, "foundUsOn", 2);
|
|
8601
8630
|
__decorateClass([
|
|
8602
8631
|
IsOptional42(),
|
|
8603
|
-
|
|
8632
|
+
IsString45()
|
|
8604
8633
|
], CreateClientDto.prototype, "foundUsOnDetail", 2);
|
|
8605
8634
|
__decorateClass([
|
|
8606
8635
|
IsOptional42(),
|
|
8607
|
-
|
|
8636
|
+
IsString45({ message: "About company must be a string." })
|
|
8608
8637
|
], CreateClientDto.prototype, "about", 2);
|
|
8609
8638
|
__decorateClass([
|
|
8610
8639
|
IsOptional42(),
|
|
@@ -8612,15 +8641,15 @@ __decorateClass([
|
|
|
8612
8641
|
], CreateClientDto.prototype, "webSite", 2);
|
|
8613
8642
|
__decorateClass([
|
|
8614
8643
|
IsOptional42(),
|
|
8615
|
-
|
|
8644
|
+
IsString45({ message: "Company address must be a string." })
|
|
8616
8645
|
], CreateClientDto.prototype, "companyAddress", 2);
|
|
8617
8646
|
__decorateClass([
|
|
8618
8647
|
IsOptional42(),
|
|
8619
|
-
|
|
8648
|
+
IsString45({ message: "Address line must be a string." })
|
|
8620
8649
|
], CreateClientDto.prototype, "addressLine", 2);
|
|
8621
8650
|
__decorateClass([
|
|
8622
8651
|
IsOptional42(),
|
|
8623
|
-
|
|
8652
|
+
IsString45({ message: "Postal code must be a string." })
|
|
8624
8653
|
], CreateClientDto.prototype, "postalCode", 2);
|
|
8625
8654
|
__decorateClass([
|
|
8626
8655
|
IsOptional42(),
|
|
@@ -8639,12 +8668,13 @@ __decorateClass([
|
|
|
8639
8668
|
], CreateClientDto.prototype, "cityId", 2);
|
|
8640
8669
|
|
|
8641
8670
|
// src/modules/client-admin/dto/update-client-status.dto.ts
|
|
8642
|
-
import {
|
|
8671
|
+
import { IsEnum as IsEnum29 } from "class-validator";
|
|
8643
8672
|
var UpdateClientAccountStatusDto = class {
|
|
8644
8673
|
};
|
|
8645
8674
|
__decorateClass([
|
|
8646
|
-
|
|
8647
|
-
|
|
8675
|
+
IsEnum29(AccountStatus, {
|
|
8676
|
+
message: `accountStatus must be one of: ${Object.values(AccountStatus).join(", ")}`
|
|
8677
|
+
})
|
|
8648
8678
|
], UpdateClientAccountStatusDto.prototype, "accountStatus", 2);
|
|
8649
8679
|
|
|
8650
8680
|
// src/modules/client-admin/dto/update-client.dto.ts
|
|
@@ -8654,7 +8684,7 @@ import {
|
|
|
8654
8684
|
IsEmail as IsEmail17,
|
|
8655
8685
|
IsOptional as IsOptional43,
|
|
8656
8686
|
IsString as IsString46,
|
|
8657
|
-
MinLength as
|
|
8687
|
+
MinLength as MinLength16,
|
|
8658
8688
|
MaxLength as MaxLength20,
|
|
8659
8689
|
Matches as Matches12
|
|
8660
8690
|
} from "class-validator";
|
|
@@ -8683,7 +8713,7 @@ __decorateClass([
|
|
|
8683
8713
|
__decorateClass([
|
|
8684
8714
|
IsOptional43(),
|
|
8685
8715
|
Transform5(({ value }) => value === null || value === "" ? void 0 : value),
|
|
8686
|
-
|
|
8716
|
+
MinLength16(6, { message: "Password must be at least 6 characters." }),
|
|
8687
8717
|
MaxLength20(32, { message: "Password must not exceed 32 characters." }),
|
|
8688
8718
|
Matches12(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
8689
8719
|
message: "Password must include letters, numbers and symbols."
|
|
@@ -8749,15 +8779,33 @@ __decorateClass([
|
|
|
8749
8779
|
], AdminExportClientV2OptimisedDto.prototype, "customEmails", 2);
|
|
8750
8780
|
|
|
8751
8781
|
// src/modules/client-admin/dto/update-admin-client-account-status.dto.ts
|
|
8752
|
-
import { IsEnum as
|
|
8782
|
+
import { IsEnum as IsEnum31 } from "class-validator";
|
|
8753
8783
|
var UpdateAdminClientAccountStatusDto = class {
|
|
8754
8784
|
};
|
|
8755
8785
|
__decorateClass([
|
|
8756
|
-
|
|
8786
|
+
IsEnum31(AccountStatus, {
|
|
8757
8787
|
message: `accountStatus must be one of: ${Object.values(AccountStatus).join(", ")}`
|
|
8758
8788
|
})
|
|
8759
8789
|
], UpdateAdminClientAccountStatusDto.prototype, "accountStatus", 2);
|
|
8760
8790
|
|
|
8791
|
+
// src/modules/client-admin/dto/update-admin-client-job-posting-restriction.dto.ts
|
|
8792
|
+
import { IsBoolean as IsBoolean13, IsNotEmpty as IsNotEmpty70 } from "class-validator";
|
|
8793
|
+
var UpdateAdminClientJobPostingRestrictionDto = class {
|
|
8794
|
+
};
|
|
8795
|
+
__decorateClass([
|
|
8796
|
+
IsNotEmpty70({ message: "Job posting restriction status is required." }),
|
|
8797
|
+
IsBoolean13({ message: "Job posting restriction status must be a boolean value." })
|
|
8798
|
+
], UpdateAdminClientJobPostingRestrictionDto.prototype, "isJobPostingRestricted", 2);
|
|
8799
|
+
|
|
8800
|
+
// src/modules/client-admin/dto/skip-service-agreement-flow.dto.ts
|
|
8801
|
+
import { IsBoolean as IsBoolean14, IsNotEmpty as IsNotEmpty71 } from "class-validator";
|
|
8802
|
+
var SkipServiceAgreementFlowDto = class {
|
|
8803
|
+
};
|
|
8804
|
+
__decorateClass([
|
|
8805
|
+
IsNotEmpty71({ message: "Skip service agreement flag is required." }),
|
|
8806
|
+
IsBoolean14({ message: "Skip service agreement must be a boolean value." })
|
|
8807
|
+
], SkipServiceAgreementFlowDto.prototype, "skipServiceAgreement", 2);
|
|
8808
|
+
|
|
8761
8809
|
// src/modules/user/freelancer-declaration/pattern/pattern.ts
|
|
8762
8810
|
var FREELANCER_DECLARATION_PATTERN = {
|
|
8763
8811
|
fetchFreelancerDeclaration: "fetch.freelancer.declaration",
|
|
@@ -8765,7 +8813,7 @@ var FREELANCER_DECLARATION_PATTERN = {
|
|
|
8765
8813
|
};
|
|
8766
8814
|
|
|
8767
8815
|
// src/modules/user/freelancer-declaration/dto/freelancer-declaration.dto.ts
|
|
8768
|
-
import { IsOptional as IsOptional45, IsEnum as
|
|
8816
|
+
import { IsOptional as IsOptional45, IsEnum as IsEnum32, IsString as IsString47, IsNotEmpty as IsNotEmpty72, IsIn as IsIn3 } from "class-validator";
|
|
8769
8817
|
var DocumentTypeEnum = /* @__PURE__ */ ((DocumentTypeEnum2) => {
|
|
8770
8818
|
DocumentTypeEnum2["AADHAAR"] = "AADHAAR_CARD";
|
|
8771
8819
|
DocumentTypeEnum2["PASSPORT"] = "PASSPORT";
|
|
@@ -8780,10 +8828,10 @@ __decorateClass([
|
|
|
8780
8828
|
IsString47({ message: "UUID must be a string" })
|
|
8781
8829
|
], FreelancerDeclarationDto.prototype, "uuid", 2);
|
|
8782
8830
|
__decorateClass([
|
|
8783
|
-
|
|
8831
|
+
IsEnum32(DocumentTypeEnum, { message: "Document type must be one of AADHAAR_CARD, PASSPORT, DRIVING_LICENSE, PAN_CARD" })
|
|
8784
8832
|
], FreelancerDeclarationDto.prototype, "documentType", 2);
|
|
8785
8833
|
__decorateClass([
|
|
8786
|
-
|
|
8834
|
+
IsNotEmpty72({ message: "Please accept the declaration " }),
|
|
8787
8835
|
IsString47(),
|
|
8788
8836
|
IsIn3([
|
|
8789
8837
|
"true"
|
|
@@ -8800,12 +8848,12 @@ var CLIENT_CANDIDATE_PREFERENCE_PATTERN = {
|
|
|
8800
8848
|
};
|
|
8801
8849
|
|
|
8802
8850
|
// src/modules/user/client-candidate-preference/dto/mark-candidate-status.dto.ts
|
|
8803
|
-
import { IsNotEmpty as
|
|
8851
|
+
import { IsNotEmpty as IsNotEmpty73, IsNumber as IsNumber11, IsOptional as IsOptional46 } from "class-validator";
|
|
8804
8852
|
import { Type as Type10 } from "class-transformer";
|
|
8805
8853
|
var MarkCandidateStatusDto = class {
|
|
8806
8854
|
};
|
|
8807
8855
|
__decorateClass([
|
|
8808
|
-
|
|
8856
|
+
IsNotEmpty73({ message: "Candidate ID is required." }),
|
|
8809
8857
|
IsNumber11({}, { message: "Candidate ID must be a number." }),
|
|
8810
8858
|
Type10(() => Number)
|
|
8811
8859
|
], MarkCandidateStatusDto.prototype, "candidateId", 2);
|
|
@@ -8843,45 +8891,45 @@ var CMS_PATTERNS = {
|
|
|
8843
8891
|
};
|
|
8844
8892
|
|
|
8845
8893
|
// src/modules/cms/dto/create-cms.dto.ts
|
|
8846
|
-
import { IsBoolean as
|
|
8894
|
+
import { IsBoolean as IsBoolean15, IsNotEmpty as IsNotEmpty74, IsOptional as IsOptional48 } from "class-validator";
|
|
8847
8895
|
var CreateCmsDto = class {
|
|
8848
8896
|
};
|
|
8849
8897
|
__decorateClass([
|
|
8850
|
-
|
|
8898
|
+
IsNotEmpty74({ message: "Please enter name." })
|
|
8851
8899
|
], CreateCmsDto.prototype, "title", 2);
|
|
8852
8900
|
__decorateClass([
|
|
8853
8901
|
IsOptional48()
|
|
8854
8902
|
], CreateCmsDto.prototype, "content", 2);
|
|
8855
8903
|
__decorateClass([
|
|
8856
8904
|
IsOptional48(),
|
|
8857
|
-
|
|
8905
|
+
IsBoolean15({ message: "Is active must be a boolean value" })
|
|
8858
8906
|
], CreateCmsDto.prototype, "isActive", 2);
|
|
8859
8907
|
|
|
8860
8908
|
// src/modules/cms/dto/update-cms-status.dto.ts
|
|
8861
|
-
import { IsBoolean as
|
|
8909
|
+
import { IsBoolean as IsBoolean16, IsNotEmpty as IsNotEmpty75 } from "class-validator";
|
|
8862
8910
|
var UpdateCmsStatusDto = class {
|
|
8863
8911
|
};
|
|
8864
8912
|
__decorateClass([
|
|
8865
|
-
|
|
8866
|
-
|
|
8913
|
+
IsNotEmpty75({ message: "Please specify cms status." }),
|
|
8914
|
+
IsBoolean16({ message: "Is active must be a boolean value" })
|
|
8867
8915
|
], UpdateCmsStatusDto.prototype, "isActive", 2);
|
|
8868
8916
|
|
|
8869
8917
|
// src/modules/cms/dto/update-cms.dto.ts
|
|
8870
|
-
import { IsBoolean as
|
|
8918
|
+
import { IsBoolean as IsBoolean17, IsNotEmpty as IsNotEmpty76, IsOptional as IsOptional49 } from "class-validator";
|
|
8871
8919
|
var UpdateCmsDto = class {
|
|
8872
8920
|
};
|
|
8873
8921
|
__decorateClass([
|
|
8874
8922
|
IsOptional49()
|
|
8875
8923
|
], UpdateCmsDto.prototype, "uuid", 2);
|
|
8876
8924
|
__decorateClass([
|
|
8877
|
-
|
|
8925
|
+
IsNotEmpty76({ message: "Please enter name." })
|
|
8878
8926
|
], UpdateCmsDto.prototype, "title", 2);
|
|
8879
8927
|
__decorateClass([
|
|
8880
8928
|
IsOptional49()
|
|
8881
8929
|
], UpdateCmsDto.prototype, "content", 2);
|
|
8882
8930
|
__decorateClass([
|
|
8883
8931
|
IsOptional49(),
|
|
8884
|
-
|
|
8932
|
+
IsBoolean17({ message: "Is active must be a boolean value" })
|
|
8885
8933
|
], UpdateCmsDto.prototype, "isActive", 2);
|
|
8886
8934
|
|
|
8887
8935
|
// src/modules/geographic/pattern/pattern.ts
|
|
@@ -8910,19 +8958,20 @@ var ADMIN_JOB_PATTERN = {
|
|
|
8910
8958
|
adminFetchJobByIdV2: "admin.fetch.job.by.id.v2",
|
|
8911
8959
|
adminExportJobsToCSV: "admin.export.jobs.to.csv",
|
|
8912
8960
|
adminFetchJobDescription: "admin.fetch.job.description",
|
|
8913
|
-
adminUpdateJobDescription: "admin.update.job.description"
|
|
8961
|
+
adminUpdateJobDescription: "admin.update.job.description",
|
|
8962
|
+
adminFetchJobsPostedByClient: "AdminFetchJobsPostedByClient"
|
|
8914
8963
|
};
|
|
8915
8964
|
|
|
8916
8965
|
// src/modules/job-admin/dto/admin-create-job-information.dto.ts
|
|
8917
8966
|
import { Type as Type12 } from "class-transformer";
|
|
8918
8967
|
import {
|
|
8919
8968
|
IsString as IsString48,
|
|
8920
|
-
IsEnum as
|
|
8969
|
+
IsEnum as IsEnum33,
|
|
8921
8970
|
IsInt as IsInt10,
|
|
8922
8971
|
IsOptional as IsOptional50,
|
|
8923
8972
|
IsArray as IsArray17,
|
|
8924
8973
|
IsDateString as IsDateString3,
|
|
8925
|
-
IsNotEmpty as
|
|
8974
|
+
IsNotEmpty as IsNotEmpty77,
|
|
8926
8975
|
ArrayNotEmpty as ArrayNotEmpty9,
|
|
8927
8976
|
Min as Min6,
|
|
8928
8977
|
IsNumber as IsNumber13
|
|
@@ -8943,7 +8992,7 @@ var AdminCreateJobInformationDto = class {
|
|
|
8943
8992
|
};
|
|
8944
8993
|
__decorateClass([
|
|
8945
8994
|
IsString48({ message: "Job role must be a string." }),
|
|
8946
|
-
|
|
8995
|
+
IsNotEmpty77({ message: "Job role is required." })
|
|
8947
8996
|
], AdminCreateJobInformationDto.prototype, "jobRole", 2);
|
|
8948
8997
|
__decorateClass([
|
|
8949
8998
|
IsOptional50(),
|
|
@@ -8959,14 +9008,14 @@ __decorateClass([
|
|
|
8959
9008
|
Min6(1, { message: "There must be at least one opening." })
|
|
8960
9009
|
], AdminCreateJobInformationDto.prototype, "openings", 2);
|
|
8961
9010
|
__decorateClass([
|
|
8962
|
-
|
|
9011
|
+
IsEnum33(JobLocationEnumDto, {
|
|
8963
9012
|
message: `Location must be one of: ${Object.values(JobLocationEnumDto).join(
|
|
8964
9013
|
", "
|
|
8965
9014
|
)}.`
|
|
8966
9015
|
})
|
|
8967
9016
|
], AdminCreateJobInformationDto.prototype, "location", 2);
|
|
8968
9017
|
__decorateClass([
|
|
8969
|
-
|
|
9018
|
+
IsEnum33(TypeOfEmploymentEnumDto, {
|
|
8970
9019
|
message: `Type of employment must be one of: ${Object.values(
|
|
8971
9020
|
TypeOfEmploymentEnumDto
|
|
8972
9021
|
).join(", ")}.`
|
|
@@ -8974,15 +9023,15 @@ __decorateClass([
|
|
|
8974
9023
|
], AdminCreateJobInformationDto.prototype, "typeOfEmployment", 2);
|
|
8975
9024
|
__decorateClass([
|
|
8976
9025
|
IsString48({ message: "Onboarding Days must be a string." }),
|
|
8977
|
-
|
|
9026
|
+
IsNotEmpty77({ message: "Onboarding Days is required." })
|
|
8978
9027
|
], AdminCreateJobInformationDto.prototype, "onboardingTat", 2);
|
|
8979
9028
|
__decorateClass([
|
|
8980
9029
|
IsString48({ message: "Communication skills must be a string." }),
|
|
8981
|
-
|
|
9030
|
+
IsNotEmpty77({ message: "Communication skills are required." })
|
|
8982
9031
|
], AdminCreateJobInformationDto.prototype, "candidateCommunicationSkills", 2);
|
|
8983
9032
|
__decorateClass([
|
|
8984
9033
|
IsString48({ message: "Currency must be a string." }),
|
|
8985
|
-
|
|
9034
|
+
IsNotEmpty77({ message: "Currency is required." })
|
|
8986
9035
|
], AdminCreateJobInformationDto.prototype, "currency", 2);
|
|
8987
9036
|
__decorateClass([
|
|
8988
9037
|
Type12(() => Number),
|
|
@@ -9028,12 +9077,12 @@ __decorateClass([
|
|
|
9028
9077
|
import { Type as Type13 } from "class-transformer";
|
|
9029
9078
|
import {
|
|
9030
9079
|
IsString as IsString49,
|
|
9031
|
-
IsEnum as
|
|
9080
|
+
IsEnum as IsEnum34,
|
|
9032
9081
|
IsInt as IsInt11,
|
|
9033
9082
|
IsOptional as IsOptional51,
|
|
9034
9083
|
IsArray as IsArray18,
|
|
9035
9084
|
IsDateString as IsDateString4,
|
|
9036
|
-
IsNotEmpty as
|
|
9085
|
+
IsNotEmpty as IsNotEmpty78,
|
|
9037
9086
|
ArrayNotEmpty as ArrayNotEmpty10,
|
|
9038
9087
|
Min as Min7,
|
|
9039
9088
|
IsNumber as IsNumber14
|
|
@@ -9054,7 +9103,7 @@ var AdminUpdateJobInformationDto = class {
|
|
|
9054
9103
|
};
|
|
9055
9104
|
__decorateClass([
|
|
9056
9105
|
IsString49({ message: "Job role must be a string." }),
|
|
9057
|
-
|
|
9106
|
+
IsNotEmpty78({ message: "Job role is required." })
|
|
9058
9107
|
], AdminUpdateJobInformationDto.prototype, "jobRole", 2);
|
|
9059
9108
|
__decorateClass([
|
|
9060
9109
|
IsOptional51(),
|
|
@@ -9070,14 +9119,14 @@ __decorateClass([
|
|
|
9070
9119
|
Min7(1, { message: "There must be at least one opening." })
|
|
9071
9120
|
], AdminUpdateJobInformationDto.prototype, "openings", 2);
|
|
9072
9121
|
__decorateClass([
|
|
9073
|
-
|
|
9122
|
+
IsEnum34(JobLocationEnums, {
|
|
9074
9123
|
message: `Location must be one of: ${Object.values(JobLocationEnums).join(
|
|
9075
9124
|
", "
|
|
9076
9125
|
)}.`
|
|
9077
9126
|
})
|
|
9078
9127
|
], AdminUpdateJobInformationDto.prototype, "location", 2);
|
|
9079
9128
|
__decorateClass([
|
|
9080
|
-
|
|
9129
|
+
IsEnum34(TypeOfEmploymentEnums, {
|
|
9081
9130
|
message: `Type of employment must be one of: ${Object.values(
|
|
9082
9131
|
TypeOfEmploymentEnums
|
|
9083
9132
|
).join(", ")}.`
|
|
@@ -9085,15 +9134,15 @@ __decorateClass([
|
|
|
9085
9134
|
], AdminUpdateJobInformationDto.prototype, "typeOfEmployment", 2);
|
|
9086
9135
|
__decorateClass([
|
|
9087
9136
|
IsString49({ message: "Onboarding Days must be a string." }),
|
|
9088
|
-
|
|
9137
|
+
IsNotEmpty78({ message: "Onboarding Days is required." })
|
|
9089
9138
|
], AdminUpdateJobInformationDto.prototype, "onboardingTat", 2);
|
|
9090
9139
|
__decorateClass([
|
|
9091
9140
|
IsString49({ message: "Communication skills must be a string." }),
|
|
9092
|
-
|
|
9141
|
+
IsNotEmpty78({ message: "Communication skills are required." })
|
|
9093
9142
|
], AdminUpdateJobInformationDto.prototype, "candidateCommunicationSkills", 2);
|
|
9094
9143
|
__decorateClass([
|
|
9095
9144
|
IsString49({ message: "Currency must be a string." }),
|
|
9096
|
-
|
|
9145
|
+
IsNotEmpty78({ message: "Currency is required." })
|
|
9097
9146
|
], AdminUpdateJobInformationDto.prototype, "currency", 2);
|
|
9098
9147
|
__decorateClass([
|
|
9099
9148
|
Type13(() => Number),
|
|
@@ -9138,12 +9187,12 @@ __decorateClass([
|
|
|
9138
9187
|
// src/modules/job-admin/dto/admin-job-basic-information-v2.dto.ts
|
|
9139
9188
|
import {
|
|
9140
9189
|
IsString as IsString50,
|
|
9141
|
-
IsNotEmpty as
|
|
9190
|
+
IsNotEmpty as IsNotEmpty79,
|
|
9142
9191
|
IsArray as IsArray19,
|
|
9143
9192
|
ArrayNotEmpty as ArrayNotEmpty11,
|
|
9144
9193
|
IsNumber as IsNumber15,
|
|
9145
9194
|
IsOptional as IsOptional52,
|
|
9146
|
-
IsEnum as
|
|
9195
|
+
IsEnum as IsEnum35,
|
|
9147
9196
|
Min as Min8,
|
|
9148
9197
|
ValidateIf as ValidateIf10,
|
|
9149
9198
|
MaxLength as MaxLength21,
|
|
@@ -9203,7 +9252,7 @@ __decorateClass([
|
|
|
9203
9252
|
IsInt12({ message: "Client ID must be a valid integer." })
|
|
9204
9253
|
], AdminJobBasicInformationV2Dto.prototype, "clientId", 2);
|
|
9205
9254
|
__decorateClass([
|
|
9206
|
-
|
|
9255
|
+
IsNotEmpty79({ message: "Please enter job role" }),
|
|
9207
9256
|
IsString50({ message: "Job role must be a string" })
|
|
9208
9257
|
], AdminJobBasicInformationV2Dto.prototype, "jobRole", 2);
|
|
9209
9258
|
__decorateClass([
|
|
@@ -9226,7 +9275,7 @@ __decorateClass([
|
|
|
9226
9275
|
], AdminJobBasicInformationV2Dto.prototype, "openings", 2);
|
|
9227
9276
|
__decorateClass([
|
|
9228
9277
|
ValidateIf10((o) => !o.isDraft),
|
|
9229
|
-
|
|
9278
|
+
IsEnum35(JobLocationAdminEnumDto, {
|
|
9230
9279
|
message: `Location must be one of: ${Object.values(JobLocationAdminEnumDto).join(
|
|
9231
9280
|
", "
|
|
9232
9281
|
)}`
|
|
@@ -9234,7 +9283,7 @@ __decorateClass([
|
|
|
9234
9283
|
], AdminJobBasicInformationV2Dto.prototype, "location", 2);
|
|
9235
9284
|
__decorateClass([
|
|
9236
9285
|
ValidateIf10((o) => !o.isDraft),
|
|
9237
|
-
|
|
9286
|
+
IsEnum35(EmploymentTypeAdminEnumDto, {
|
|
9238
9287
|
message: `Type of employment must be one of: ${Object.values(
|
|
9239
9288
|
EmploymentTypeAdminEnumDto
|
|
9240
9289
|
).join(", ")}`
|
|
@@ -9262,7 +9311,7 @@ __decorateClass([
|
|
|
9262
9311
|
], AdminJobBasicInformationV2Dto.prototype, "academicQualification", 2);
|
|
9263
9312
|
__decorateClass([
|
|
9264
9313
|
ValidateIf10((o) => !o.isDraft),
|
|
9265
|
-
|
|
9314
|
+
IsEnum35(typeOfExperienceAdminEnumDto, {
|
|
9266
9315
|
message: `Type of experience must be one of: ${Object.values(
|
|
9267
9316
|
typeOfExperienceAdminEnumDto
|
|
9268
9317
|
).join(", ")}`
|
|
@@ -9270,12 +9319,12 @@ __decorateClass([
|
|
|
9270
9319
|
], AdminJobBasicInformationV2Dto.prototype, "yearsOfExperienceType", 2);
|
|
9271
9320
|
__decorateClass([
|
|
9272
9321
|
ValidateIf10((o) => !o.isDraft),
|
|
9273
|
-
|
|
9322
|
+
IsNotEmpty79({ message: "Please enter the years of experience" }),
|
|
9274
9323
|
IsString50({ message: "Years of experience must be a string" })
|
|
9275
9324
|
], AdminJobBasicInformationV2Dto.prototype, "yearsOfExperienceFrom", 2);
|
|
9276
9325
|
__decorateClass([
|
|
9277
9326
|
ValidateIf10((o) => !o.isDraft),
|
|
9278
|
-
|
|
9327
|
+
IsNotEmpty79({ message: "Please enter the years of experience upto" }),
|
|
9279
9328
|
IsString50({ message: "Years of experience must be a string" })
|
|
9280
9329
|
], AdminJobBasicInformationV2Dto.prototype, "yearsOfExperienceTo", 2);
|
|
9281
9330
|
__decorateClass([
|
|
@@ -9346,7 +9395,7 @@ __decorateClass([
|
|
|
9346
9395
|
], AdminJobBasicInformationV2Dto.prototype, "jobRoleCanonicalName", 2);
|
|
9347
9396
|
__decorateClass([
|
|
9348
9397
|
IsOptional52(),
|
|
9349
|
-
|
|
9398
|
+
IsEnum35(AdminStepCompletedEnumV2, {
|
|
9350
9399
|
message: `Type of stepCompleted must be one of: ${Object.values(
|
|
9351
9400
|
AdminStepCompletedEnumV2
|
|
9352
9401
|
).join(", ")}`
|
|
@@ -9360,7 +9409,7 @@ var LEAD_PATTERN = {
|
|
|
9360
9409
|
};
|
|
9361
9410
|
|
|
9362
9411
|
// src/modules/lead/dto/create-lead.dto.ts
|
|
9363
|
-
import { IsString as IsString51, IsEmail as IsEmail19, IsOptional as IsOptional53, IsEnum as
|
|
9412
|
+
import { IsString as IsString51, IsEmail as IsEmail19, IsOptional as IsOptional53, IsEnum as IsEnum36 } from "class-validator";
|
|
9364
9413
|
var CategoryEmumDto = /* @__PURE__ */ ((CategoryEmumDto2) => {
|
|
9365
9414
|
CategoryEmumDto2["BUSINESS"] = "BUSINESS";
|
|
9366
9415
|
CategoryEmumDto2["FREELANCER"] = "FREELANCER";
|
|
@@ -9385,7 +9434,7 @@ __decorateClass([
|
|
|
9385
9434
|
IsString51({ message: "Description must be a string" })
|
|
9386
9435
|
], CreateLeadDto.prototype, "description", 2);
|
|
9387
9436
|
__decorateClass([
|
|
9388
|
-
|
|
9437
|
+
IsEnum36(CategoryEmumDto, {
|
|
9389
9438
|
message: `Type of category must be one of: ${Object.values(
|
|
9390
9439
|
CategoryEmumDto
|
|
9391
9440
|
).join(", ")}`
|
|
@@ -9407,11 +9456,11 @@ var ADMIN_ROLE_PATTERN = {
|
|
|
9407
9456
|
};
|
|
9408
9457
|
|
|
9409
9458
|
// src/modules/admin-role/dto/create-admin-role.dto.ts
|
|
9410
|
-
import { IsBoolean as
|
|
9459
|
+
import { IsBoolean as IsBoolean18, IsNotEmpty as IsNotEmpty80, IsOptional as IsOptional54, IsString as IsString52 } from "class-validator";
|
|
9411
9460
|
var CreateAdminRoleDto = class {
|
|
9412
9461
|
};
|
|
9413
9462
|
__decorateClass([
|
|
9414
|
-
|
|
9463
|
+
IsNotEmpty80({ message: "Please enter admin role name." }),
|
|
9415
9464
|
IsString52({ message: "Role name must be a string." })
|
|
9416
9465
|
], CreateAdminRoleDto.prototype, "roleName", 2);
|
|
9417
9466
|
__decorateClass([
|
|
@@ -9420,15 +9469,15 @@ __decorateClass([
|
|
|
9420
9469
|
], CreateAdminRoleDto.prototype, "roleDescription", 2);
|
|
9421
9470
|
__decorateClass([
|
|
9422
9471
|
IsOptional54(),
|
|
9423
|
-
|
|
9472
|
+
IsBoolean18({ message: "Is active must be a boolean value" })
|
|
9424
9473
|
], CreateAdminRoleDto.prototype, "isActive", 2);
|
|
9425
9474
|
|
|
9426
9475
|
// src/modules/admin-role/dto/update-admin-role.dto.ts
|
|
9427
|
-
import { IsBoolean as
|
|
9476
|
+
import { IsBoolean as IsBoolean19, IsNotEmpty as IsNotEmpty81, IsOptional as IsOptional55, IsString as IsString53 } from "class-validator";
|
|
9428
9477
|
var UpdateAdminRoleDto = class {
|
|
9429
9478
|
};
|
|
9430
9479
|
__decorateClass([
|
|
9431
|
-
|
|
9480
|
+
IsNotEmpty81({ message: "Please enter admin role name." }),
|
|
9432
9481
|
IsString53({ message: "Role name must be a string." })
|
|
9433
9482
|
], UpdateAdminRoleDto.prototype, "roleName", 2);
|
|
9434
9483
|
__decorateClass([
|
|
@@ -9437,29 +9486,29 @@ __decorateClass([
|
|
|
9437
9486
|
], UpdateAdminRoleDto.prototype, "roleDescription", 2);
|
|
9438
9487
|
__decorateClass([
|
|
9439
9488
|
IsOptional55(),
|
|
9440
|
-
|
|
9489
|
+
IsBoolean19({ message: "Is active must be a boolean value." })
|
|
9441
9490
|
], UpdateAdminRoleDto.prototype, "isActive", 2);
|
|
9442
9491
|
|
|
9443
9492
|
// src/modules/admin-role/dto/attach-permissions-to-role.dto.ts
|
|
9444
|
-
import { IsNotEmpty as
|
|
9493
|
+
import { IsNotEmpty as IsNotEmpty82, IsString as IsString54 } from "class-validator";
|
|
9445
9494
|
var AttachPermissionsToRoleDto = class {
|
|
9446
9495
|
};
|
|
9447
9496
|
__decorateClass([
|
|
9448
|
-
|
|
9497
|
+
IsNotEmpty82({ message: "Please enter admin role ID." }),
|
|
9449
9498
|
IsString54({ message: "Role ID must be a string." })
|
|
9450
9499
|
], AttachPermissionsToRoleDto.prototype, "roleId", 2);
|
|
9451
9500
|
__decorateClass([
|
|
9452
|
-
|
|
9501
|
+
IsNotEmpty82({ message: "Please enter permission IDs." }),
|
|
9453
9502
|
IsString54({ message: "Permission IDs must be a comma-separated string." })
|
|
9454
9503
|
], AttachPermissionsToRoleDto.prototype, "permissionIds", 2);
|
|
9455
9504
|
|
|
9456
9505
|
// src/modules/admin-role/dto/update-admin-role-status.dto.ts
|
|
9457
|
-
import { IsBoolean as
|
|
9506
|
+
import { IsBoolean as IsBoolean20, IsNotEmpty as IsNotEmpty83 } from "class-validator";
|
|
9458
9507
|
var UpdateAdminRoleStatusDto = class {
|
|
9459
9508
|
};
|
|
9460
9509
|
__decorateClass([
|
|
9461
|
-
|
|
9462
|
-
|
|
9510
|
+
IsNotEmpty83({ message: "Please specify admin role status." }),
|
|
9511
|
+
IsBoolean20({ message: "Is active must be a boolean value" })
|
|
9463
9512
|
], UpdateAdminRoleStatusDto.prototype, "isActive", 2);
|
|
9464
9513
|
|
|
9465
9514
|
// src/modules/admin-permission/pattern/pattern.ts
|
|
@@ -9535,18 +9584,19 @@ var INTERVIEW_PATTERN = {
|
|
|
9535
9584
|
updateInterviewSetting: "update.interview.setting",
|
|
9536
9585
|
markInterviewAsPublished: "mark.interview.as.published",
|
|
9537
9586
|
deleteInterview: "delete.interview",
|
|
9538
|
-
fetchInterviewCountAsPerStatus: "fetch.interview.count.as.per.status"
|
|
9587
|
+
fetchInterviewCountAsPerStatus: "fetch.interview.count.as.per.status",
|
|
9588
|
+
fetchCompletedAiAndF2FInterviewForClient: "fetch.completed.ai.and.f2f.interview.for.client"
|
|
9539
9589
|
};
|
|
9540
9590
|
|
|
9541
9591
|
// src/modules/interview/dto/interview-invite.dto.ts
|
|
9542
9592
|
import {
|
|
9543
9593
|
IsString as IsString55,
|
|
9544
|
-
IsNotEmpty as
|
|
9594
|
+
IsNotEmpty as IsNotEmpty84,
|
|
9545
9595
|
IsArray as IsArray20,
|
|
9546
9596
|
ArrayNotEmpty as ArrayNotEmpty12,
|
|
9547
9597
|
IsEmail as IsEmail20,
|
|
9548
|
-
IsUUID as
|
|
9549
|
-
IsEnum as
|
|
9598
|
+
IsUUID as IsUUID20,
|
|
9599
|
+
IsEnum as IsEnum37,
|
|
9550
9600
|
ValidateIf as ValidateIf11,
|
|
9551
9601
|
ValidateNested as ValidateNested7
|
|
9552
9602
|
} from "class-validator";
|
|
@@ -9561,24 +9611,24 @@ var CandidateType = /* @__PURE__ */ ((CandidateType2) => {
|
|
|
9561
9611
|
var ExistingCandidateDto = class {
|
|
9562
9612
|
};
|
|
9563
9613
|
__decorateClass([
|
|
9564
|
-
|
|
9614
|
+
IsUUID20()
|
|
9565
9615
|
], ExistingCandidateDto.prototype, "id", 2);
|
|
9566
9616
|
__decorateClass([
|
|
9567
|
-
|
|
9617
|
+
IsEnum37(CandidateType, {
|
|
9568
9618
|
message: "type must be one of SHORTLISTED, APPLICATNTS, or RECOMMENDED"
|
|
9569
9619
|
})
|
|
9570
9620
|
], ExistingCandidateDto.prototype, "type", 2);
|
|
9571
9621
|
var NewCandidateDto = class {
|
|
9572
9622
|
};
|
|
9573
9623
|
__decorateClass([
|
|
9574
|
-
|
|
9624
|
+
IsNotEmpty84({ message: "Please enter the candidate name" }),
|
|
9575
9625
|
IsString55({ message: "Name must be a string" })
|
|
9576
9626
|
], NewCandidateDto.prototype, "name", 2);
|
|
9577
9627
|
__decorateClass([
|
|
9578
9628
|
IsEmail20({}, { message: "Please enter a valid email." })
|
|
9579
9629
|
], NewCandidateDto.prototype, "email", 2);
|
|
9580
9630
|
__decorateClass([
|
|
9581
|
-
|
|
9631
|
+
IsEnum37(CandidateType, {
|
|
9582
9632
|
message: "type must be NEW"
|
|
9583
9633
|
})
|
|
9584
9634
|
], NewCandidateDto.prototype, "type", 2);
|
|
@@ -9601,7 +9651,7 @@ __decorateClass([
|
|
|
9601
9651
|
var InterviewInviteDto = class {
|
|
9602
9652
|
};
|
|
9603
9653
|
__decorateClass([
|
|
9604
|
-
|
|
9654
|
+
IsUUID20()
|
|
9605
9655
|
], InterviewInviteDto.prototype, "jobId", 2);
|
|
9606
9656
|
__decorateClass([
|
|
9607
9657
|
ValidateNested7({ each: true }),
|
|
@@ -9611,10 +9661,10 @@ __decorateClass([
|
|
|
9611
9661
|
// src/modules/interview/dto/send-interview-invite.dto.ts
|
|
9612
9662
|
import {
|
|
9613
9663
|
IsString as IsString56,
|
|
9614
|
-
IsNotEmpty as
|
|
9664
|
+
IsNotEmpty as IsNotEmpty85,
|
|
9615
9665
|
IsArray as IsArray21,
|
|
9616
|
-
IsUUID as
|
|
9617
|
-
IsEnum as
|
|
9666
|
+
IsUUID as IsUUID21,
|
|
9667
|
+
IsEnum as IsEnum38,
|
|
9618
9668
|
IsEmail as IsEmail21,
|
|
9619
9669
|
ValidateNested as ValidateNested8,
|
|
9620
9670
|
IsOptional as IsOptional57
|
|
@@ -9630,36 +9680,36 @@ var InterviewInviteCandidateType = /* @__PURE__ */ ((InterviewInviteCandidateTyp
|
|
|
9630
9680
|
var ExistingCandidateDto2 = class {
|
|
9631
9681
|
};
|
|
9632
9682
|
__decorateClass([
|
|
9633
|
-
|
|
9634
|
-
|
|
9683
|
+
IsUUID21("4", { message: "Candidate ID must be a valid UUID." }),
|
|
9684
|
+
IsNotEmpty85({ message: "Candidate ID is required." })
|
|
9635
9685
|
], ExistingCandidateDto2.prototype, "id", 2);
|
|
9636
9686
|
__decorateClass([
|
|
9637
|
-
|
|
9687
|
+
IsEnum38(InterviewInviteCandidateType, {
|
|
9638
9688
|
message: "Type must be one of SHORTLISTED, APPLICANTS, or RECOMMENDED."
|
|
9639
9689
|
}),
|
|
9640
|
-
|
|
9690
|
+
IsNotEmpty85({ message: "Candidate type is required." })
|
|
9641
9691
|
], ExistingCandidateDto2.prototype, "type", 2);
|
|
9642
9692
|
var NewCandidateDto2 = class {
|
|
9643
9693
|
};
|
|
9644
9694
|
__decorateClass([
|
|
9645
9695
|
IsString56({ message: "Name must be a string." }),
|
|
9646
|
-
|
|
9696
|
+
IsNotEmpty85({ message: "Candidate name is required." })
|
|
9647
9697
|
], NewCandidateDto2.prototype, "name", 2);
|
|
9648
9698
|
__decorateClass([
|
|
9649
9699
|
IsEmail21({}, { message: "Please enter a valid email address." }),
|
|
9650
|
-
|
|
9700
|
+
IsNotEmpty85({ message: "Email is required." })
|
|
9651
9701
|
], NewCandidateDto2.prototype, "email", 2);
|
|
9652
9702
|
__decorateClass([
|
|
9653
|
-
|
|
9703
|
+
IsEnum38(InterviewInviteCandidateType, {
|
|
9654
9704
|
message: "Type must be NEW for new candidates."
|
|
9655
9705
|
}),
|
|
9656
|
-
|
|
9706
|
+
IsNotEmpty85({ message: "Candidate type is required." })
|
|
9657
9707
|
], NewCandidateDto2.prototype, "type", 2);
|
|
9658
9708
|
var SendInterviewInviteDto = class {
|
|
9659
9709
|
};
|
|
9660
9710
|
__decorateClass([
|
|
9661
|
-
|
|
9662
|
-
|
|
9711
|
+
IsUUID21("4", { message: "Job ID must be a valid UUID." }),
|
|
9712
|
+
IsNotEmpty85({ message: "Job ID is required." })
|
|
9663
9713
|
], SendInterviewInviteDto.prototype, "jobId", 2);
|
|
9664
9714
|
__decorateClass([
|
|
9665
9715
|
IsArray21({ message: "Existing candidates must be an array." }),
|
|
@@ -9677,7 +9727,7 @@ __decorateClass([
|
|
|
9677
9727
|
// src/modules/interview/dto/create-f2f-interview.dto.ts
|
|
9678
9728
|
import {
|
|
9679
9729
|
IsString as IsString57,
|
|
9680
|
-
IsNotEmpty as
|
|
9730
|
+
IsNotEmpty as IsNotEmpty86,
|
|
9681
9731
|
IsEmail as IsEmail22,
|
|
9682
9732
|
IsNumber as IsNumber16
|
|
9683
9733
|
} from "class-validator";
|
|
@@ -9685,11 +9735,11 @@ var CreateF2FInterviewDto = class {
|
|
|
9685
9735
|
};
|
|
9686
9736
|
__decorateClass([
|
|
9687
9737
|
IsEmail22({}, { message: "Please enter a valid email address." }),
|
|
9688
|
-
|
|
9738
|
+
IsNotEmpty86({ message: "Invitee email is required." })
|
|
9689
9739
|
], CreateF2FInterviewDto.prototype, "inviteeEmail", 2);
|
|
9690
9740
|
__decorateClass([
|
|
9691
9741
|
IsString57({ message: "Invitee name must be a string." }),
|
|
9692
|
-
|
|
9742
|
+
IsNotEmpty86({ message: "Invitee name is required." })
|
|
9693
9743
|
], CreateF2FInterviewDto.prototype, "inviteeName", 2);
|
|
9694
9744
|
__decorateClass([
|
|
9695
9745
|
IsNumber16({}, { message: "Interview ID must be a number." })
|
|
@@ -9701,7 +9751,7 @@ __decorateClass([
|
|
|
9701
9751
|
// src/modules/interview/dto/create-f2f-interview-direct.dto.ts
|
|
9702
9752
|
import {
|
|
9703
9753
|
IsString as IsString58,
|
|
9704
|
-
IsNotEmpty as
|
|
9754
|
+
IsNotEmpty as IsNotEmpty87,
|
|
9705
9755
|
IsEmail as IsEmail23,
|
|
9706
9756
|
IsNumber as IsNumber17
|
|
9707
9757
|
} from "class-validator";
|
|
@@ -9709,11 +9759,11 @@ var CreateF2FInterviewDirectDto = class {
|
|
|
9709
9759
|
};
|
|
9710
9760
|
__decorateClass([
|
|
9711
9761
|
IsEmail23({}, { message: "Please enter a valid email address." }),
|
|
9712
|
-
|
|
9762
|
+
IsNotEmpty87({ message: "Invitee email is required." })
|
|
9713
9763
|
], CreateF2FInterviewDirectDto.prototype, "inviteeEmail", 2);
|
|
9714
9764
|
__decorateClass([
|
|
9715
9765
|
IsString58({ message: "Invitee name must be a string." }),
|
|
9716
|
-
|
|
9766
|
+
IsNotEmpty87({ message: "Invitee name is required." })
|
|
9717
9767
|
], CreateF2FInterviewDirectDto.prototype, "inviteeName", 2);
|
|
9718
9768
|
__decorateClass([
|
|
9719
9769
|
IsNumber17({}, { message: "Job ID must be a number." })
|
|
@@ -9725,22 +9775,22 @@ __decorateClass([
|
|
|
9725
9775
|
// src/modules/interview/dto/create-f2f-interview-reschedule-request.dto.ts
|
|
9726
9776
|
import {
|
|
9727
9777
|
IsString as IsString59,
|
|
9728
|
-
IsNotEmpty as
|
|
9778
|
+
IsNotEmpty as IsNotEmpty88,
|
|
9729
9779
|
IsOptional as IsOptional58,
|
|
9730
|
-
IsUUID as
|
|
9780
|
+
IsUUID as IsUUID22
|
|
9731
9781
|
} from "class-validator";
|
|
9732
9782
|
var CreateF2FInterviewRescheduleRequestDto = class {
|
|
9733
9783
|
};
|
|
9734
9784
|
__decorateClass([
|
|
9735
|
-
|
|
9736
|
-
|
|
9785
|
+
IsUUID22("4", { message: "F2F Interview ID must be a valid UUID." }),
|
|
9786
|
+
IsNotEmpty88({ message: "F2F Interview ID is required." })
|
|
9737
9787
|
], CreateF2FInterviewRescheduleRequestDto.prototype, "f2FInterviewId", 2);
|
|
9738
9788
|
__decorateClass([
|
|
9739
|
-
|
|
9789
|
+
IsNotEmpty88({ message: "Rescheduled date is required." })
|
|
9740
9790
|
], CreateF2FInterviewRescheduleRequestDto.prototype, "rescheduledDate", 2);
|
|
9741
9791
|
__decorateClass([
|
|
9742
9792
|
IsString59({ message: "Rescheduled slot must be a string." }),
|
|
9743
|
-
|
|
9793
|
+
IsNotEmpty88({ message: "Rescheduled slot is required." })
|
|
9744
9794
|
], CreateF2FInterviewRescheduleRequestDto.prototype, "rescheduledSlot", 2);
|
|
9745
9795
|
__decorateClass([
|
|
9746
9796
|
IsOptional58(),
|
|
@@ -9750,12 +9800,12 @@ __decorateClass([
|
|
|
9750
9800
|
// src/modules/interview/dto/create-ai-interview-reschedule-request.dto.ts
|
|
9751
9801
|
import {
|
|
9752
9802
|
IsString as IsString60,
|
|
9753
|
-
IsNotEmpty as
|
|
9803
|
+
IsNotEmpty as IsNotEmpty89
|
|
9754
9804
|
} from "class-validator";
|
|
9755
9805
|
var CreateAIInterviewRescheduleRequestDto = class {
|
|
9756
9806
|
};
|
|
9757
9807
|
__decorateClass([
|
|
9758
|
-
|
|
9808
|
+
IsNotEmpty89({ message: "AI Interview ID is required." })
|
|
9759
9809
|
], CreateAIInterviewRescheduleRequestDto.prototype, "aiInterviewId", 2);
|
|
9760
9810
|
__decorateClass([
|
|
9761
9811
|
IsString60({ message: "Freelancer reason must be a string." })
|
|
@@ -9781,11 +9831,11 @@ __decorateClass([
|
|
|
9781
9831
|
], RejectF2FInterviewRescheduleRequestDto.prototype, "clientRejectReason", 2);
|
|
9782
9832
|
|
|
9783
9833
|
// src/modules/interview/dto/capture-ai-interview-result-public.dto.ts
|
|
9784
|
-
import { IsNotEmpty as
|
|
9834
|
+
import { IsNotEmpty as IsNotEmpty90, IsString as IsString63, IsOptional as IsOptional61, IsObject as IsObject6 } from "class-validator";
|
|
9785
9835
|
var CaptureAiInterviewResultPublicDto = class {
|
|
9786
9836
|
};
|
|
9787
9837
|
__decorateClass([
|
|
9788
|
-
|
|
9838
|
+
IsNotEmpty90({ message: "AI Interview UUID is required" }),
|
|
9789
9839
|
IsString63({ message: "AI Interview UUID must be a string" })
|
|
9790
9840
|
], CaptureAiInterviewResultPublicDto.prototype, "aiInterviewUuid", 2);
|
|
9791
9841
|
__decorateClass([
|
|
@@ -9798,15 +9848,15 @@ __decorateClass([
|
|
|
9798
9848
|
], CaptureAiInterviewResultPublicDto.prototype, "status", 2);
|
|
9799
9849
|
|
|
9800
9850
|
// src/modules/interview/dto/create-interview-basic-information.dto.ts
|
|
9801
|
-
import { IsNotEmpty as
|
|
9851
|
+
import { IsNotEmpty as IsNotEmpty91, IsString as IsString64, IsNumber as IsNumber18 } from "class-validator";
|
|
9802
9852
|
var CreateInterviewBasicInformationDto = class {
|
|
9803
9853
|
};
|
|
9804
9854
|
__decorateClass([
|
|
9805
|
-
|
|
9855
|
+
IsNotEmpty91({ message: "Job ID is required" }),
|
|
9806
9856
|
IsNumber18({}, { message: "Job ID must be a number" })
|
|
9807
9857
|
], CreateInterviewBasicInformationDto.prototype, "jobId", 2);
|
|
9808
9858
|
__decorateClass([
|
|
9809
|
-
|
|
9859
|
+
IsNotEmpty91({ message: "Interview name is required" }),
|
|
9810
9860
|
IsString64({ message: "Interview name must be a string" })
|
|
9811
9861
|
], CreateInterviewBasicInformationDto.prototype, "interviewName", 2);
|
|
9812
9862
|
|
|
@@ -9843,7 +9893,7 @@ __decorateClass([
|
|
|
9843
9893
|
// src/modules/interview/dto/create-interview-skills.dto.ts
|
|
9844
9894
|
import {
|
|
9845
9895
|
IsArray as IsArray24,
|
|
9846
|
-
IsNotEmpty as
|
|
9896
|
+
IsNotEmpty as IsNotEmpty92,
|
|
9847
9897
|
IsOptional as IsOptional64,
|
|
9848
9898
|
IsString as IsString66,
|
|
9849
9899
|
ValidateNested as ValidateNested9
|
|
@@ -9856,7 +9906,7 @@ __decorateClass([
|
|
|
9856
9906
|
], InterviewSkillItemDto.prototype, "uuid", 2);
|
|
9857
9907
|
__decorateClass([
|
|
9858
9908
|
IsString66({ message: "Skill name must be a string." }),
|
|
9859
|
-
|
|
9909
|
+
IsNotEmpty92({ message: "Skill name is required." })
|
|
9860
9910
|
], InterviewSkillItemDto.prototype, "skill", 2);
|
|
9861
9911
|
__decorateClass([
|
|
9862
9912
|
IsOptional64(),
|
|
@@ -9866,7 +9916,7 @@ var CreateInterviewSkillsDto = class {
|
|
|
9866
9916
|
};
|
|
9867
9917
|
__decorateClass([
|
|
9868
9918
|
IsArray24({ message: "Skills must be an array." }),
|
|
9869
|
-
|
|
9919
|
+
IsNotEmpty92({ message: "At least one skill is required." }),
|
|
9870
9920
|
ValidateNested9({ each: true }),
|
|
9871
9921
|
Type17(() => InterviewSkillItemDto)
|
|
9872
9922
|
], CreateInterviewSkillsDto.prototype, "skills", 2);
|
|
@@ -9874,10 +9924,10 @@ __decorateClass([
|
|
|
9874
9924
|
// src/modules/interview/dto/create-interview-questions.dto.ts
|
|
9875
9925
|
import {
|
|
9876
9926
|
IsArray as IsArray25,
|
|
9877
|
-
IsNotEmpty as
|
|
9927
|
+
IsNotEmpty as IsNotEmpty93,
|
|
9878
9928
|
IsOptional as IsOptional65,
|
|
9879
9929
|
IsString as IsString67,
|
|
9880
|
-
IsUUID as
|
|
9930
|
+
IsUUID as IsUUID24,
|
|
9881
9931
|
ValidateNested as ValidateNested10
|
|
9882
9932
|
} from "class-validator";
|
|
9883
9933
|
import { Type as Type18 } from "class-transformer";
|
|
@@ -9885,21 +9935,21 @@ var CustomQuestionItemDto = class {
|
|
|
9885
9935
|
};
|
|
9886
9936
|
__decorateClass([
|
|
9887
9937
|
IsOptional65(),
|
|
9888
|
-
|
|
9938
|
+
IsUUID24("4", { message: "Question UUID must be a valid UUID." })
|
|
9889
9939
|
], CustomQuestionItemDto.prototype, "uuid", 2);
|
|
9890
9940
|
__decorateClass([
|
|
9891
9941
|
IsString67({ message: "Question must be a string." }),
|
|
9892
|
-
|
|
9942
|
+
IsNotEmpty93({ message: "Question is required." })
|
|
9893
9943
|
], CustomQuestionItemDto.prototype, "question", 2);
|
|
9894
9944
|
var AiQuestionItemDto = class {
|
|
9895
9945
|
};
|
|
9896
9946
|
__decorateClass([
|
|
9897
9947
|
IsOptional65(),
|
|
9898
|
-
|
|
9948
|
+
IsUUID24("4", { message: "Question UUID must be a valid UUID." })
|
|
9899
9949
|
], AiQuestionItemDto.prototype, "uuid", 2);
|
|
9900
9950
|
__decorateClass([
|
|
9901
9951
|
IsString67({ message: "Question must be a string." }),
|
|
9902
|
-
|
|
9952
|
+
IsNotEmpty93({ message: "Question is required." })
|
|
9903
9953
|
], AiQuestionItemDto.prototype, "question", 2);
|
|
9904
9954
|
__decorateClass([
|
|
9905
9955
|
IsOptional65(),
|
|
@@ -9923,7 +9973,7 @@ __decorateClass([
|
|
|
9923
9973
|
|
|
9924
9974
|
// src/modules/interview/dto/update-interview-setting.dto.ts
|
|
9925
9975
|
import {
|
|
9926
|
-
IsBoolean as
|
|
9976
|
+
IsBoolean as IsBoolean21,
|
|
9927
9977
|
IsOptional as IsOptional66,
|
|
9928
9978
|
IsString as IsString68
|
|
9929
9979
|
} from "class-validator";
|
|
@@ -9936,7 +9986,7 @@ __decorateClass([
|
|
|
9936
9986
|
], UpdateInterviewSettingDto.prototype, "interviewLanguage", 2);
|
|
9937
9987
|
__decorateClass([
|
|
9938
9988
|
IsOptional66(),
|
|
9939
|
-
|
|
9989
|
+
IsBoolean21({ message: "Allow proctoring must be a boolean." }),
|
|
9940
9990
|
Type19(() => Boolean)
|
|
9941
9991
|
], UpdateInterviewSettingDto.prototype, "allowProctoring", 2);
|
|
9942
9992
|
__decorateClass([
|
|
@@ -10005,53 +10055,53 @@ var CONTRACT_PATTERN = {
|
|
|
10005
10055
|
};
|
|
10006
10056
|
|
|
10007
10057
|
// src/modules/contract/dto/sign-contract-for-client.dto.ts
|
|
10008
|
-
import { IsEnum as
|
|
10058
|
+
import { IsEnum as IsEnum39, IsNotEmpty as IsNotEmpty94, IsNumber as IsNumber20 } from "class-validator";
|
|
10009
10059
|
import { Type as Type20 } from "class-transformer";
|
|
10010
10060
|
var SignContractForClientDto = class {
|
|
10011
10061
|
};
|
|
10012
10062
|
__decorateClass([
|
|
10013
|
-
|
|
10063
|
+
IsNotEmpty94({ message: "Job Id is required." }),
|
|
10014
10064
|
Type20(() => Number),
|
|
10015
10065
|
IsNumber20({}, { message: "Job ID must be a number." })
|
|
10016
10066
|
], SignContractForClientDto.prototype, "jobId", 2);
|
|
10017
10067
|
__decorateClass([
|
|
10018
|
-
|
|
10068
|
+
IsNotEmpty94({ message: "Freelancer ID is required." }),
|
|
10019
10069
|
Type20(() => Number),
|
|
10020
10070
|
IsNumber20({}, { message: "Freelancer ID must be a number." })
|
|
10021
10071
|
], SignContractForClientDto.prototype, "freelancerId", 2);
|
|
10022
10072
|
__decorateClass([
|
|
10023
|
-
|
|
10024
|
-
|
|
10073
|
+
IsNotEmpty94({ message: "Contract type is required." }),
|
|
10074
|
+
IsEnum39(ContractTypeEnum)
|
|
10025
10075
|
], SignContractForClientDto.prototype, "contractType", 2);
|
|
10026
10076
|
|
|
10027
10077
|
// src/modules/contract/dto/sign-contract-for-freelancer.dto.ts
|
|
10028
|
-
import { IsEnum as
|
|
10078
|
+
import { IsEnum as IsEnum40, IsNotEmpty as IsNotEmpty95, IsNumber as IsNumber21 } from "class-validator";
|
|
10029
10079
|
import { Type as Type21 } from "class-transformer";
|
|
10030
10080
|
var SignContractForFreelancerDto = class {
|
|
10031
10081
|
};
|
|
10032
10082
|
__decorateClass([
|
|
10033
|
-
|
|
10083
|
+
IsNotEmpty95({ message: "Job Id is required." }),
|
|
10034
10084
|
Type21(() => Number),
|
|
10035
10085
|
IsNumber21({}, { message: "Job ID must be a number." })
|
|
10036
10086
|
], SignContractForFreelancerDto.prototype, "jobId", 2);
|
|
10037
10087
|
__decorateClass([
|
|
10038
|
-
|
|
10088
|
+
IsNotEmpty95({ message: "Client ID is required." }),
|
|
10039
10089
|
Type21(() => Number),
|
|
10040
10090
|
IsNumber21({}, { message: "Client ID must be a number." })
|
|
10041
10091
|
], SignContractForFreelancerDto.prototype, "clientId", 2);
|
|
10042
10092
|
__decorateClass([
|
|
10043
|
-
|
|
10044
|
-
|
|
10093
|
+
IsNotEmpty95({ message: "Contract type is required." }),
|
|
10094
|
+
IsEnum40(ContractTypeEnum)
|
|
10045
10095
|
], SignContractForFreelancerDto.prototype, "contractType", 2);
|
|
10046
10096
|
|
|
10047
10097
|
// src/modules/contract/dto/generate-contract.dto.ts
|
|
10048
10098
|
import {
|
|
10049
|
-
IsNotEmpty as
|
|
10099
|
+
IsNotEmpty as IsNotEmpty96,
|
|
10050
10100
|
IsNumber as IsNumber22,
|
|
10051
10101
|
IsOptional as IsOptional68,
|
|
10052
10102
|
IsString as IsString70,
|
|
10053
|
-
IsUUID as
|
|
10054
|
-
IsEnum as
|
|
10103
|
+
IsUUID as IsUUID25,
|
|
10104
|
+
IsEnum as IsEnum41
|
|
10055
10105
|
} from "class-validator";
|
|
10056
10106
|
var ContractSourceEnum = /* @__PURE__ */ ((ContractSourceEnum3) => {
|
|
10057
10107
|
ContractSourceEnum3["AI_INTERVIEW"] = "AI_INTERVIEW";
|
|
@@ -10074,15 +10124,15 @@ var GenerateContractDto = class {
|
|
|
10074
10124
|
};
|
|
10075
10125
|
__decorateClass([
|
|
10076
10126
|
IsNumber22({}, { message: "Job ID must be a number." }),
|
|
10077
|
-
|
|
10127
|
+
IsNotEmpty96({ message: "Job ID is required." })
|
|
10078
10128
|
], GenerateContractDto.prototype, "jobId", 2);
|
|
10079
10129
|
__decorateClass([
|
|
10080
10130
|
IsNumber22({}, { message: "Freelancer ID must be a number." }),
|
|
10081
|
-
|
|
10131
|
+
IsNotEmpty96({ message: "Freelancer ID is required." })
|
|
10082
10132
|
], GenerateContractDto.prototype, "freelancerId", 2);
|
|
10083
10133
|
__decorateClass([
|
|
10084
10134
|
IsOptional68(),
|
|
10085
|
-
|
|
10135
|
+
IsEnum41(ContractTypeEnumDto, {
|
|
10086
10136
|
message: "Contract type must be one of NDA, MSA, SOW, or WORK."
|
|
10087
10137
|
})
|
|
10088
10138
|
], GenerateContractDto.prototype, "contractType", 2);
|
|
@@ -10095,51 +10145,51 @@ __decorateClass([
|
|
|
10095
10145
|
IsString70({ message: "Contract invoicing cycle must be a string." })
|
|
10096
10146
|
], GenerateContractDto.prototype, "contractInvoicingCycle", 2);
|
|
10097
10147
|
__decorateClass([
|
|
10098
|
-
|
|
10099
|
-
|
|
10148
|
+
IsNotEmpty96({ message: "Preferred engagement type is required" }),
|
|
10149
|
+
IsEnum41(PreferredEngagementTypeEnum, {
|
|
10100
10150
|
message: "Preferred engagement type must be FREELANCE."
|
|
10101
10151
|
})
|
|
10102
10152
|
], GenerateContractDto.prototype, "preferredEngagementType", 2);
|
|
10103
10153
|
__decorateClass([
|
|
10104
10154
|
IsOptional68(),
|
|
10105
|
-
|
|
10155
|
+
IsEnum41(ContractSourceEnum, {
|
|
10106
10156
|
message: "Source must be one of AI_INTERVIEW, F2F_INTERVIEW, or JOB."
|
|
10107
10157
|
})
|
|
10108
10158
|
], GenerateContractDto.prototype, "source", 2);
|
|
10109
10159
|
__decorateClass([
|
|
10110
10160
|
IsOptional68(),
|
|
10111
|
-
|
|
10161
|
+
IsUUID25("4", { message: "Source UUID must be a valid UUID." })
|
|
10112
10162
|
], GenerateContractDto.prototype, "sourceUuid", 2);
|
|
10113
10163
|
|
|
10114
10164
|
// src/modules/contract/dto/esign-contract-client.dto.ts
|
|
10115
|
-
import { IsNotEmpty as
|
|
10165
|
+
import { IsNotEmpty as IsNotEmpty97, IsUUID as IsUUID26 } from "class-validator";
|
|
10116
10166
|
var EsignContractClientDto = class {
|
|
10117
10167
|
};
|
|
10118
10168
|
__decorateClass([
|
|
10119
|
-
|
|
10120
|
-
|
|
10169
|
+
IsUUID26("4", { message: "Contract UUID must be a valid UUID." }),
|
|
10170
|
+
IsNotEmpty97({ message: "Contract UUID is required." })
|
|
10121
10171
|
], EsignContractClientDto.prototype, "contractUuid", 2);
|
|
10122
10172
|
|
|
10123
10173
|
// src/modules/contract/dto/esign-contract-freelancer.dto.ts
|
|
10124
|
-
import { IsNotEmpty as
|
|
10174
|
+
import { IsNotEmpty as IsNotEmpty98, IsUUID as IsUUID27 } from "class-validator";
|
|
10125
10175
|
var EsignContractFreelancerDto = class {
|
|
10126
10176
|
};
|
|
10127
10177
|
__decorateClass([
|
|
10128
|
-
|
|
10129
|
-
|
|
10178
|
+
IsUUID27("4", { message: "Contract UUID must be a valid UUID." }),
|
|
10179
|
+
IsNotEmpty98({ message: "Contract UUID is required." })
|
|
10130
10180
|
], EsignContractFreelancerDto.prototype, "contractUuid", 2);
|
|
10131
10181
|
|
|
10132
10182
|
// src/modules/contract/dto/escrow-fund-contract.dto.ts
|
|
10133
|
-
import { IsNotEmpty as
|
|
10183
|
+
import { IsNotEmpty as IsNotEmpty99, IsUUID as IsUUID28 } from "class-validator";
|
|
10134
10184
|
var EscrowFundContractDto = class {
|
|
10135
10185
|
};
|
|
10136
10186
|
__decorateClass([
|
|
10137
|
-
|
|
10138
|
-
|
|
10187
|
+
IsUUID28("4", { message: "Contract ID must be a valid UUID." }),
|
|
10188
|
+
IsNotEmpty99({ message: "Contract ID is required." })
|
|
10139
10189
|
], EscrowFundContractDto.prototype, "contractId", 2);
|
|
10140
10190
|
|
|
10141
10191
|
// src/modules/contract/dto/send-nda-contract-to-freelancer.dto.ts
|
|
10142
|
-
import { IsNotEmpty as
|
|
10192
|
+
import { IsNotEmpty as IsNotEmpty100, IsOptional as IsOptional69, IsUUID as IsUUID29, IsEnum as IsEnum42 } from "class-validator";
|
|
10143
10193
|
var ContractSourceEnum2 = /* @__PURE__ */ ((ContractSourceEnum3) => {
|
|
10144
10194
|
ContractSourceEnum3["AI_INTERVIEW"] = "AI_INTERVIEW";
|
|
10145
10195
|
ContractSourceEnum3["F2F_INTERVIEW"] = "F2F_INTERVIEW";
|
|
@@ -10149,18 +10199,18 @@ var ContractSourceEnum2 = /* @__PURE__ */ ((ContractSourceEnum3) => {
|
|
|
10149
10199
|
var SendNdaContractToFreelancerDto = class {
|
|
10150
10200
|
};
|
|
10151
10201
|
__decorateClass([
|
|
10152
|
-
|
|
10153
|
-
|
|
10202
|
+
IsUUID29("4", { message: "Contract UUID must be a valid UUID." }),
|
|
10203
|
+
IsNotEmpty100({ message: "Contract UUID is required." })
|
|
10154
10204
|
], SendNdaContractToFreelancerDto.prototype, "contractUuid", 2);
|
|
10155
10205
|
__decorateClass([
|
|
10156
10206
|
IsOptional69(),
|
|
10157
|
-
|
|
10207
|
+
IsEnum42(ContractSourceEnum2, {
|
|
10158
10208
|
message: "Source must be one of AI_INTERVIEW, F2F_INTERVIEW, or JOB."
|
|
10159
10209
|
})
|
|
10160
10210
|
], SendNdaContractToFreelancerDto.prototype, "source", 2);
|
|
10161
10211
|
__decorateClass([
|
|
10162
10212
|
IsOptional69(),
|
|
10163
|
-
|
|
10213
|
+
IsUUID29("4", { message: "Source UUID must be a valid UUID." })
|
|
10164
10214
|
], SendNdaContractToFreelancerDto.prototype, "sourceUuid", 2);
|
|
10165
10215
|
|
|
10166
10216
|
// src/modules/contract/dto/reject-contract.dto.ts
|
|
@@ -10194,20 +10244,20 @@ var STRIPE_PATTERN = {
|
|
|
10194
10244
|
|
|
10195
10245
|
// src/modules/stripe/dto/create-checkout-session.dto.ts
|
|
10196
10246
|
import {
|
|
10197
|
-
IsNotEmpty as
|
|
10247
|
+
IsNotEmpty as IsNotEmpty101
|
|
10198
10248
|
} from "class-validator";
|
|
10199
10249
|
var CreateCheckoutSessionDto = class {
|
|
10200
10250
|
};
|
|
10201
10251
|
__decorateClass([
|
|
10202
|
-
|
|
10252
|
+
IsNotEmpty101({ message: "Amount is required" })
|
|
10203
10253
|
], CreateCheckoutSessionDto.prototype, "amount", 2);
|
|
10204
10254
|
|
|
10205
10255
|
// src/modules/stripe/dto/pre-checkout-calculation.dto.ts
|
|
10206
|
-
import { IsNotEmpty as
|
|
10256
|
+
import { IsNotEmpty as IsNotEmpty102, IsNumber as IsNumber23, IsOptional as IsOptional71, IsString as IsString73 } from "class-validator";
|
|
10207
10257
|
var PreCheckoutCalculationDto = class {
|
|
10208
10258
|
};
|
|
10209
10259
|
__decorateClass([
|
|
10210
|
-
|
|
10260
|
+
IsNotEmpty102({ message: "Amount is required" }),
|
|
10211
10261
|
IsNumber23({}, { message: "Amount must be a number" })
|
|
10212
10262
|
], PreCheckoutCalculationDto.prototype, "amount", 2);
|
|
10213
10263
|
__decorateClass([
|
|
@@ -10220,11 +10270,11 @@ __decorateClass([
|
|
|
10220
10270
|
], PreCheckoutCalculationDto.prototype, "description", 2);
|
|
10221
10271
|
|
|
10222
10272
|
// src/modules/stripe/dto/client-add-fund.dto.ts
|
|
10223
|
-
import { IsNotEmpty as
|
|
10273
|
+
import { IsNotEmpty as IsNotEmpty103, IsNumber as IsNumber24, IsOptional as IsOptional72, IsString as IsString74 } from "class-validator";
|
|
10224
10274
|
var ClientAddFundDto = class {
|
|
10225
10275
|
};
|
|
10226
10276
|
__decorateClass([
|
|
10227
|
-
|
|
10277
|
+
IsNotEmpty103({ message: "Amount is required" }),
|
|
10228
10278
|
IsNumber24({}, { message: "Amount must be a number" })
|
|
10229
10279
|
], ClientAddFundDto.prototype, "amount", 2);
|
|
10230
10280
|
__decorateClass([
|
|
@@ -10237,12 +10287,12 @@ __decorateClass([
|
|
|
10237
10287
|
], ClientAddFundDto.prototype, "description", 2);
|
|
10238
10288
|
|
|
10239
10289
|
// src/modules/stripe/dto/transfer-funds.dto.ts
|
|
10240
|
-
import { IsNotEmpty as
|
|
10290
|
+
import { IsNotEmpty as IsNotEmpty104, IsUUID as IsUUID30 } from "class-validator";
|
|
10241
10291
|
var TransferFundsDto = class {
|
|
10242
10292
|
};
|
|
10243
10293
|
__decorateClass([
|
|
10244
|
-
|
|
10245
|
-
|
|
10294
|
+
IsUUID30("4", { message: "Invoice UUID must be a valid UUID." }),
|
|
10295
|
+
IsNotEmpty104({ message: "Invoice UUID is required." })
|
|
10246
10296
|
], TransferFundsDto.prototype, "invoiceUuid", 2);
|
|
10247
10297
|
|
|
10248
10298
|
// src/modules/timesheet/pattern/pattern.ts
|
|
@@ -10289,7 +10339,7 @@ var TIMESHEET_CLIENT_PATTERN = {
|
|
|
10289
10339
|
import {
|
|
10290
10340
|
IsDateString as IsDateString10,
|
|
10291
10341
|
IsInt as IsInt13,
|
|
10292
|
-
IsNotEmpty as
|
|
10342
|
+
IsNotEmpty as IsNotEmpty105,
|
|
10293
10343
|
IsOptional as IsOptional73,
|
|
10294
10344
|
IsString as IsString75,
|
|
10295
10345
|
Matches as Matches13,
|
|
@@ -10298,25 +10348,25 @@ import {
|
|
|
10298
10348
|
var CreateFreelancerTimesheetDto = class {
|
|
10299
10349
|
};
|
|
10300
10350
|
__decorateClass([
|
|
10301
|
-
|
|
10351
|
+
IsNotEmpty105({ message: "Job id is required" }),
|
|
10302
10352
|
IsNumber25({}, { message: "Job id must be a number" })
|
|
10303
10353
|
], CreateFreelancerTimesheetDto.prototype, "jobId", 2);
|
|
10304
10354
|
__decorateClass([
|
|
10305
|
-
|
|
10355
|
+
IsNotEmpty105({ message: "start date is required" }),
|
|
10306
10356
|
IsDateString10()
|
|
10307
10357
|
], CreateFreelancerTimesheetDto.prototype, "startDate", 2);
|
|
10308
10358
|
__decorateClass([
|
|
10309
|
-
|
|
10359
|
+
IsNotEmpty105({ message: "end date is required" }),
|
|
10310
10360
|
IsDateString10()
|
|
10311
10361
|
], CreateFreelancerTimesheetDto.prototype, "endDate", 2);
|
|
10312
10362
|
__decorateClass([
|
|
10313
|
-
|
|
10363
|
+
IsNotEmpty105({ message: "start time is required" }),
|
|
10314
10364
|
Matches13(/^([01]\d|2[0-3]):([0-5]\d):([0-5]\d)$/, {
|
|
10315
10365
|
message: "startTime must be in HH:mm:ss format"
|
|
10316
10366
|
})
|
|
10317
10367
|
], CreateFreelancerTimesheetDto.prototype, "startTime", 2);
|
|
10318
10368
|
__decorateClass([
|
|
10319
|
-
|
|
10369
|
+
IsNotEmpty105({ message: "end time is required" }),
|
|
10320
10370
|
Matches13(/^([01]\d|2[0-3]):([0-5]\d):([0-5]\d)$/, {
|
|
10321
10371
|
message: "endTime must be in HH:mm:ss format"
|
|
10322
10372
|
})
|
|
@@ -10338,14 +10388,14 @@ __decorateClass([
|
|
|
10338
10388
|
IsString75()
|
|
10339
10389
|
], CreateFreelancerTimesheetDto.prototype, "taskName", 2);
|
|
10340
10390
|
__decorateClass([
|
|
10341
|
-
|
|
10391
|
+
IsNotEmpty105({ message: "Description is required" })
|
|
10342
10392
|
], CreateFreelancerTimesheetDto.prototype, "description", 2);
|
|
10343
10393
|
|
|
10344
10394
|
// src/modules/timesheet/dto/update-freelancer-timesheet.dto.ts
|
|
10345
10395
|
import {
|
|
10346
10396
|
IsDateString as IsDateString11,
|
|
10347
10397
|
IsInt as IsInt14,
|
|
10348
|
-
IsNotEmpty as
|
|
10398
|
+
IsNotEmpty as IsNotEmpty106,
|
|
10349
10399
|
IsOptional as IsOptional74,
|
|
10350
10400
|
IsString as IsString76,
|
|
10351
10401
|
Matches as Matches14,
|
|
@@ -10354,25 +10404,25 @@ import {
|
|
|
10354
10404
|
var UpdateFreelancerTimesheetDto = class {
|
|
10355
10405
|
};
|
|
10356
10406
|
__decorateClass([
|
|
10357
|
-
|
|
10407
|
+
IsNotEmpty106({ message: "Job id is required" }),
|
|
10358
10408
|
IsNumber26({}, { message: "Job id must be a number" })
|
|
10359
10409
|
], UpdateFreelancerTimesheetDto.prototype, "jobId", 2);
|
|
10360
10410
|
__decorateClass([
|
|
10361
|
-
|
|
10411
|
+
IsNotEmpty106({ message: "start date is required" }),
|
|
10362
10412
|
IsDateString11()
|
|
10363
10413
|
], UpdateFreelancerTimesheetDto.prototype, "startDate", 2);
|
|
10364
10414
|
__decorateClass([
|
|
10365
|
-
|
|
10415
|
+
IsNotEmpty106({ message: "end date is required" }),
|
|
10366
10416
|
IsDateString11()
|
|
10367
10417
|
], UpdateFreelancerTimesheetDto.prototype, "endDate", 2);
|
|
10368
10418
|
__decorateClass([
|
|
10369
|
-
|
|
10419
|
+
IsNotEmpty106({ message: "start time is required" }),
|
|
10370
10420
|
Matches14(/^([01]\d|2[0-3]):([0-5]\d):([0-5]\d)$/, {
|
|
10371
10421
|
message: "startTime must be in HH:mm:ss format"
|
|
10372
10422
|
})
|
|
10373
10423
|
], UpdateFreelancerTimesheetDto.prototype, "startTime", 2);
|
|
10374
10424
|
__decorateClass([
|
|
10375
|
-
|
|
10425
|
+
IsNotEmpty106({ message: "end time is required" }),
|
|
10376
10426
|
Matches14(/^([01]\d|2[0-3]):([0-5]\d):([0-5]\d)$/, {
|
|
10377
10427
|
message: "endTime must be in HH:mm:ss format"
|
|
10378
10428
|
})
|
|
@@ -10394,46 +10444,46 @@ __decorateClass([
|
|
|
10394
10444
|
IsString76()
|
|
10395
10445
|
], UpdateFreelancerTimesheetDto.prototype, "taskName", 2);
|
|
10396
10446
|
__decorateClass([
|
|
10397
|
-
|
|
10447
|
+
IsNotEmpty106({ message: "Description is required" })
|
|
10398
10448
|
], UpdateFreelancerTimesheetDto.prototype, "description", 2);
|
|
10399
10449
|
|
|
10400
10450
|
// src/modules/timesheet/dto/submit-timesheet.dto.ts
|
|
10401
|
-
import { IsNotEmpty as
|
|
10451
|
+
import { IsNotEmpty as IsNotEmpty107, IsNumber as IsNumber27 } from "class-validator";
|
|
10402
10452
|
var SubmitTimesheetDto = class {
|
|
10403
10453
|
};
|
|
10404
10454
|
__decorateClass([
|
|
10405
|
-
|
|
10455
|
+
IsNotEmpty107({ message: "Timesheet line ID is required" }),
|
|
10406
10456
|
IsNumber27({}, { message: "Timesheet line ID must be a number" })
|
|
10407
10457
|
], SubmitTimesheetDto.prototype, "timesheetLineId", 2);
|
|
10408
10458
|
|
|
10409
10459
|
// src/modules/timesheet/dto/resubmit-timesheet.dto.ts
|
|
10410
|
-
import { IsNotEmpty as
|
|
10460
|
+
import { IsNotEmpty as IsNotEmpty108, IsNumber as IsNumber28 } from "class-validator";
|
|
10411
10461
|
var ResubmitTimesheetDto = class {
|
|
10412
10462
|
};
|
|
10413
10463
|
__decorateClass([
|
|
10414
|
-
|
|
10464
|
+
IsNotEmpty108({ message: "Timesheet line ID is required" }),
|
|
10415
10465
|
IsNumber28({}, { message: "Timesheet line ID must be a number" })
|
|
10416
10466
|
], ResubmitTimesheetDto.prototype, "timesheetLineId", 2);
|
|
10417
10467
|
|
|
10418
10468
|
// src/modules/timesheet/dto/approve-timesheets.dto.ts
|
|
10419
|
-
import { IsNotEmpty as
|
|
10469
|
+
import { IsNotEmpty as IsNotEmpty109, IsNumber as IsNumber29 } from "class-validator";
|
|
10420
10470
|
import { Type as Type22 } from "class-transformer";
|
|
10421
10471
|
var ApproveTimesheetsDto = class {
|
|
10422
10472
|
};
|
|
10423
10473
|
__decorateClass([
|
|
10424
10474
|
IsNumber29({}, { message: "Timesheet line ID must be a number." }),
|
|
10425
|
-
|
|
10475
|
+
IsNotEmpty109({ message: "Timesheet line ID is required." }),
|
|
10426
10476
|
Type22(() => Number)
|
|
10427
10477
|
], ApproveTimesheetsDto.prototype, "timesheetLineId", 2);
|
|
10428
10478
|
|
|
10429
10479
|
// src/modules/timesheet/dto/send-back-timesheets.dto.ts
|
|
10430
|
-
import { IsNotEmpty as
|
|
10480
|
+
import { IsNotEmpty as IsNotEmpty110, IsNumber as IsNumber30, IsOptional as IsOptional75, IsString as IsString77 } from "class-validator";
|
|
10431
10481
|
import { Type as Type23 } from "class-transformer";
|
|
10432
10482
|
var SendBackTimesheetsDto = class {
|
|
10433
10483
|
};
|
|
10434
10484
|
__decorateClass([
|
|
10435
10485
|
IsNumber30({}, { message: "Timesheet line ID must be a number." }),
|
|
10436
|
-
|
|
10486
|
+
IsNotEmpty110({ message: "Timesheet line ID is required." }),
|
|
10437
10487
|
Type23(() => Number)
|
|
10438
10488
|
], SendBackTimesheetsDto.prototype, "timesheetLineId", 2);
|
|
10439
10489
|
__decorateClass([
|
|
@@ -10442,19 +10492,19 @@ __decorateClass([
|
|
|
10442
10492
|
], SendBackTimesheetsDto.prototype, "clientSendBackReason", 2);
|
|
10443
10493
|
|
|
10444
10494
|
// src/modules/timesheet/dto/create-default-timesheet-line.dto.ts
|
|
10445
|
-
import { IsNotEmpty as
|
|
10495
|
+
import { IsNotEmpty as IsNotEmpty111, IsNumber as IsNumber31 } from "class-validator";
|
|
10446
10496
|
var CreateDefaultTimesheetLineDto = class {
|
|
10447
10497
|
};
|
|
10448
10498
|
__decorateClass([
|
|
10449
|
-
|
|
10499
|
+
IsNotEmpty111({ message: "Contract ID is required" }),
|
|
10450
10500
|
IsNumber31({}, { message: "Contract ID must be a number" })
|
|
10451
10501
|
], CreateDefaultTimesheetLineDto.prototype, "contractId", 2);
|
|
10452
10502
|
__decorateClass([
|
|
10453
|
-
|
|
10503
|
+
IsNotEmpty111({ message: "Freelancer ID is required" }),
|
|
10454
10504
|
IsNumber31({}, { message: "Freelancer ID must be a number" })
|
|
10455
10505
|
], CreateDefaultTimesheetLineDto.prototype, "freelancerId", 2);
|
|
10456
10506
|
__decorateClass([
|
|
10457
|
-
|
|
10507
|
+
IsNotEmpty111({ message: "Client ID is required" }),
|
|
10458
10508
|
IsNumber31({}, { message: "Client ID must be a number" })
|
|
10459
10509
|
], CreateDefaultTimesheetLineDto.prototype, "clientId", 2);
|
|
10460
10510
|
|
|
@@ -10477,22 +10527,22 @@ var INVOICE_PATTERN = {
|
|
|
10477
10527
|
};
|
|
10478
10528
|
|
|
10479
10529
|
// src/modules/invoice/dto/update-invoice-status.dto.ts
|
|
10480
|
-
import { IsEnum as
|
|
10530
|
+
import { IsEnum as IsEnum45, IsNotEmpty as IsNotEmpty112 } from "class-validator";
|
|
10481
10531
|
var UpdateInvoiceStatusDto = class {
|
|
10482
10532
|
};
|
|
10483
10533
|
__decorateClass([
|
|
10484
|
-
|
|
10485
|
-
|
|
10534
|
+
IsNotEmpty112({ message: "Please provide invoice status." }),
|
|
10535
|
+
IsEnum45(InvoiceStatusEnum, {
|
|
10486
10536
|
message: "Status must be one of: APPROVED, REJECTED"
|
|
10487
10537
|
})
|
|
10488
10538
|
], UpdateInvoiceStatusDto.prototype, "status", 2);
|
|
10489
10539
|
|
|
10490
10540
|
// src/modules/invoice/dto/create-invoice.dto.ts
|
|
10491
|
-
import { IsNotEmpty as
|
|
10541
|
+
import { IsNotEmpty as IsNotEmpty113, IsNumber as IsNumber32 } from "class-validator";
|
|
10492
10542
|
var CreateInvoiceDto = class {
|
|
10493
10543
|
};
|
|
10494
10544
|
__decorateClass([
|
|
10495
|
-
|
|
10545
|
+
IsNotEmpty113({ message: "Timesheet line ID is required" }),
|
|
10496
10546
|
IsNumber32({}, { message: "Timesheet line ID must be a number" })
|
|
10497
10547
|
], CreateInvoiceDto.prototype, "timeSheetLineId", 2);
|
|
10498
10548
|
|
|
@@ -10506,7 +10556,7 @@ var DISPUTE_PATTERN = {
|
|
|
10506
10556
|
// src/modules/dispute/dto/create-dispute.dto.ts
|
|
10507
10557
|
import {
|
|
10508
10558
|
IsString as IsString78,
|
|
10509
|
-
IsNotEmpty as
|
|
10559
|
+
IsNotEmpty as IsNotEmpty114,
|
|
10510
10560
|
IsIn as IsIn4,
|
|
10511
10561
|
IsOptional as IsOptional76,
|
|
10512
10562
|
MaxLength as MaxLength22,
|
|
@@ -10528,16 +10578,16 @@ __decorateClass([
|
|
|
10528
10578
|
Type24(() => Number)
|
|
10529
10579
|
], CreateDisputeDto.prototype, "freelancerId", 2);
|
|
10530
10580
|
__decorateClass([
|
|
10531
|
-
|
|
10581
|
+
IsNotEmpty114({ message: "Please select dispute type." }),
|
|
10532
10582
|
IsString78(),
|
|
10533
10583
|
IsIn4(["JOB", "INVOICE"])
|
|
10534
10584
|
], CreateDisputeDto.prototype, "disputeType", 2);
|
|
10535
10585
|
__decorateClass([
|
|
10536
|
-
|
|
10586
|
+
IsNotEmpty114({ message: "Please provide initiator type." }),
|
|
10537
10587
|
IsString78()
|
|
10538
10588
|
], CreateDisputeDto.prototype, "initiatorType", 2);
|
|
10539
10589
|
__decorateClass([
|
|
10540
|
-
|
|
10590
|
+
IsNotEmpty114({ message: "Please enter description." }),
|
|
10541
10591
|
IsString78({ message: "Description must be a string" }),
|
|
10542
10592
|
MaxLength22(500, { message: "Description must not exceed 500 characters" })
|
|
10543
10593
|
], CreateDisputeDto.prototype, "description", 2);
|
|
@@ -10570,23 +10620,23 @@ var SENSELOAF_PATTERN = {
|
|
|
10570
10620
|
|
|
10571
10621
|
// src/modules/senseloaf/dto/ai-interview-question-generate.dto.ts
|
|
10572
10622
|
import {
|
|
10573
|
-
IsNotEmpty as
|
|
10623
|
+
IsNotEmpty as IsNotEmpty115
|
|
10574
10624
|
} from "class-validator";
|
|
10575
10625
|
var AiInterviewQuestionGenerateDto = class {
|
|
10576
10626
|
};
|
|
10577
10627
|
__decorateClass([
|
|
10578
|
-
|
|
10628
|
+
IsNotEmpty115({ message: "Please enter job description." })
|
|
10579
10629
|
], AiInterviewQuestionGenerateDto.prototype, "jobDescription", 2);
|
|
10580
10630
|
__decorateClass([
|
|
10581
|
-
|
|
10631
|
+
IsNotEmpty115({ message: "Please enter number of questions." })
|
|
10582
10632
|
], AiInterviewQuestionGenerateDto.prototype, "numQuestions", 2);
|
|
10583
10633
|
|
|
10584
10634
|
// src/modules/senseloaf/dto/resume-parsing-by-url.dto.ts
|
|
10585
|
-
import { IsNotEmpty as
|
|
10635
|
+
import { IsNotEmpty as IsNotEmpty116, IsString as IsString79, IsOptional as IsOptional77 } from "class-validator";
|
|
10586
10636
|
var ResumeParsingByUrlDto = class {
|
|
10587
10637
|
};
|
|
10588
10638
|
__decorateClass([
|
|
10589
|
-
|
|
10639
|
+
IsNotEmpty116({ message: "Resume URL is required" }),
|
|
10590
10640
|
IsString79({ message: "Resume URL must be a string" })
|
|
10591
10641
|
], ResumeParsingByUrlDto.prototype, "resumeUrl", 2);
|
|
10592
10642
|
__decorateClass([
|
|
@@ -10595,11 +10645,11 @@ __decorateClass([
|
|
|
10595
10645
|
], ResumeParsingByUrlDto.prototype, "fileName", 2);
|
|
10596
10646
|
|
|
10597
10647
|
// src/modules/senseloaf/dto/resume-data-processing.dto.ts
|
|
10598
|
-
import { IsNotEmpty as
|
|
10648
|
+
import { IsNotEmpty as IsNotEmpty117, IsString as IsString80, IsOptional as IsOptional78, IsObject as IsObject8 } from "class-validator";
|
|
10599
10649
|
var ResumeDataProcessingDto = class {
|
|
10600
10650
|
};
|
|
10601
10651
|
__decorateClass([
|
|
10602
|
-
|
|
10652
|
+
IsNotEmpty117({ message: "Resume data is required" }),
|
|
10603
10653
|
IsObject8()
|
|
10604
10654
|
], ResumeDataProcessingDto.prototype, "resumeData", 2);
|
|
10605
10655
|
__decorateClass([
|
|
@@ -10612,11 +10662,11 @@ __decorateClass([
|
|
|
10612
10662
|
], ResumeDataProcessingDto.prototype, "processingType", 2);
|
|
10613
10663
|
|
|
10614
10664
|
// src/modules/senseloaf/dto/check-resume-eligibility.dto.ts
|
|
10615
|
-
import { IsNotEmpty as
|
|
10665
|
+
import { IsNotEmpty as IsNotEmpty118, IsString as IsString81, IsOptional as IsOptional79, IsObject as IsObject9 } from "class-validator";
|
|
10616
10666
|
var CheckResumeEligibilityDto = class {
|
|
10617
10667
|
};
|
|
10618
10668
|
__decorateClass([
|
|
10619
|
-
|
|
10669
|
+
IsNotEmpty118({ message: "Resume data is required" }),
|
|
10620
10670
|
IsObject9()
|
|
10621
10671
|
], CheckResumeEligibilityDto.prototype, "resumeData", 2);
|
|
10622
10672
|
__decorateClass([
|
|
@@ -10629,11 +10679,11 @@ __decorateClass([
|
|
|
10629
10679
|
], CheckResumeEligibilityDto.prototype, "userId", 2);
|
|
10630
10680
|
|
|
10631
10681
|
// src/modules/senseloaf/dto/ai-interview-template-generation.dto.ts
|
|
10632
|
-
import { IsNotEmpty as
|
|
10682
|
+
import { IsNotEmpty as IsNotEmpty119, IsString as IsString82, IsOptional as IsOptional80, IsArray as IsArray26, IsNumber as IsNumber34 } from "class-validator";
|
|
10633
10683
|
var AiInterviewTemplateGenerationDto = class {
|
|
10634
10684
|
};
|
|
10635
10685
|
__decorateClass([
|
|
10636
|
-
|
|
10686
|
+
IsNotEmpty119({ message: "Job ID is required" }),
|
|
10637
10687
|
IsString82({ message: "Job ID must be a string" })
|
|
10638
10688
|
], AiInterviewTemplateGenerationDto.prototype, "jobId", 2);
|
|
10639
10689
|
__decorateClass([
|
|
@@ -10651,15 +10701,15 @@ __decorateClass([
|
|
|
10651
10701
|
], AiInterviewTemplateGenerationDto.prototype, "difficulty", 2);
|
|
10652
10702
|
|
|
10653
10703
|
// src/modules/senseloaf/dto/ai-interview-link-generation.dto.ts
|
|
10654
|
-
import { IsNotEmpty as
|
|
10704
|
+
import { IsNotEmpty as IsNotEmpty120, IsString as IsString83, IsOptional as IsOptional81, IsNumber as IsNumber35 } from "class-validator";
|
|
10655
10705
|
var AiInterviewLinkGenerationDto = class {
|
|
10656
10706
|
};
|
|
10657
10707
|
__decorateClass([
|
|
10658
|
-
|
|
10708
|
+
IsNotEmpty120({ message: "Template ID is required" }),
|
|
10659
10709
|
IsString83({ message: "Template ID must be a string" })
|
|
10660
10710
|
], AiInterviewLinkGenerationDto.prototype, "templateId", 2);
|
|
10661
10711
|
__decorateClass([
|
|
10662
|
-
|
|
10712
|
+
IsNotEmpty120({ message: "Freelancer ID is required" }),
|
|
10663
10713
|
IsString83({ message: "Freelancer ID must be a string" })
|
|
10664
10714
|
], AiInterviewLinkGenerationDto.prototype, "freelancerId", 2);
|
|
10665
10715
|
__decorateClass([
|
|
@@ -10672,11 +10722,11 @@ __decorateClass([
|
|
|
10672
10722
|
], AiInterviewLinkGenerationDto.prototype, "expiryHours", 2);
|
|
10673
10723
|
|
|
10674
10724
|
// src/modules/senseloaf/dto/ai-assessment-creation.dto.ts
|
|
10675
|
-
import { IsNotEmpty as
|
|
10725
|
+
import { IsNotEmpty as IsNotEmpty121, IsString as IsString84, IsOptional as IsOptional82, IsNumber as IsNumber36 } from "class-validator";
|
|
10676
10726
|
var AiAssessmentCreationDto = class {
|
|
10677
10727
|
};
|
|
10678
10728
|
__decorateClass([
|
|
10679
|
-
|
|
10729
|
+
IsNotEmpty121({ message: "User ID is required" }),
|
|
10680
10730
|
IsString84({ message: "User ID must be a string" })
|
|
10681
10731
|
], AiAssessmentCreationDto.prototype, "userId", 2);
|
|
10682
10732
|
__decorateClass([
|
|
@@ -10705,7 +10755,7 @@ var HIRING_PATTERN = {
|
|
|
10705
10755
|
};
|
|
10706
10756
|
|
|
10707
10757
|
// src/modules/hiring/dto/create-hiring.dto.ts
|
|
10708
|
-
import { IsEnum as
|
|
10758
|
+
import { IsEnum as IsEnum46, IsNotEmpty as IsNotEmpty122, IsNumber as IsNumber37 } from "class-validator";
|
|
10709
10759
|
var PreferredEngagementTypeEnum2 = /* @__PURE__ */ ((PreferredEngagementTypeEnum3) => {
|
|
10710
10760
|
PreferredEngagementTypeEnum3["FTE"] = "FTE";
|
|
10711
10761
|
PreferredEngagementTypeEnum3["FREELANCE"] = "FREELANCE";
|
|
@@ -10714,16 +10764,16 @@ var PreferredEngagementTypeEnum2 = /* @__PURE__ */ ((PreferredEngagementTypeEnum
|
|
|
10714
10764
|
var CreateHiringDto = class {
|
|
10715
10765
|
};
|
|
10716
10766
|
__decorateClass([
|
|
10717
|
-
|
|
10767
|
+
IsNotEmpty122({ message: "Freelancer ID is required" }),
|
|
10718
10768
|
IsNumber37({}, { message: "Freelancer ID must be a number" })
|
|
10719
10769
|
], CreateHiringDto.prototype, "freelancerId", 2);
|
|
10720
10770
|
__decorateClass([
|
|
10721
|
-
|
|
10771
|
+
IsNotEmpty122({ message: "Job ID is required" }),
|
|
10722
10772
|
IsNumber37({}, { message: "Job ID must be a number" })
|
|
10723
10773
|
], CreateHiringDto.prototype, "jobId", 2);
|
|
10724
10774
|
__decorateClass([
|
|
10725
|
-
|
|
10726
|
-
|
|
10775
|
+
IsNotEmpty122({ message: "Preferred engagement type is required" }),
|
|
10776
|
+
IsEnum46(PreferredEngagementTypeEnum2, {
|
|
10727
10777
|
message: "Preferred engagement type must be one of FTE or FREELANCE."
|
|
10728
10778
|
})
|
|
10729
10779
|
], CreateHiringDto.prototype, "preferredEngagementType", 2);
|
|
@@ -10773,25 +10823,25 @@ var WALLET_ADMIN_PATTERN = {
|
|
|
10773
10823
|
};
|
|
10774
10824
|
|
|
10775
10825
|
// src/modules/wallet/dto/add-topup-escrow-amount.dto.ts
|
|
10776
|
-
import { IsNotEmpty as
|
|
10826
|
+
import { IsNotEmpty as IsNotEmpty123, IsNumber as IsNumber38, IsUUID as IsUUID31 } from "class-validator";
|
|
10777
10827
|
var AddTopupEscrowAmountDto = class {
|
|
10778
10828
|
};
|
|
10779
10829
|
__decorateClass([
|
|
10780
|
-
|
|
10830
|
+
IsNotEmpty123({ message: "Amount is required" }),
|
|
10781
10831
|
IsNumber38({}, { message: "Amount must be a number" })
|
|
10782
10832
|
], AddTopupEscrowAmountDto.prototype, "amount", 2);
|
|
10783
10833
|
__decorateClass([
|
|
10784
|
-
|
|
10785
|
-
|
|
10834
|
+
IsNotEmpty123({ message: "Escrow wallet UUID is required" }),
|
|
10835
|
+
IsUUID31("4", { message: "Escrow wallet UUID must be a valid UUID" })
|
|
10786
10836
|
], AddTopupEscrowAmountDto.prototype, "escrowWalletUuid", 2);
|
|
10787
10837
|
|
|
10788
10838
|
// src/modules/wallet/dto/debit-commission-fte-hiring.dto.ts
|
|
10789
|
-
import { IsNotEmpty as
|
|
10839
|
+
import { IsNotEmpty as IsNotEmpty124, IsUUID as IsUUID32 } from "class-validator";
|
|
10790
10840
|
var DebitCommissionFteHiringDto = class {
|
|
10791
10841
|
};
|
|
10792
10842
|
__decorateClass([
|
|
10793
|
-
|
|
10794
|
-
|
|
10843
|
+
IsUUID32("4", { message: "Invoice UUID must be a valid UUID." }),
|
|
10844
|
+
IsNotEmpty124({ message: "Invoice UUID is required." })
|
|
10795
10845
|
], DebitCommissionFteHiringDto.prototype, "invoiceUuid", 2);
|
|
10796
10846
|
|
|
10797
10847
|
// src/modules/discord/discord-alert.interface.ts
|
|
@@ -13219,6 +13269,7 @@ export {
|
|
|
13219
13269
|
RemoveGlobalSettingDto,
|
|
13220
13270
|
ResetPasswordDto,
|
|
13221
13271
|
ResetPasswordTokenValidationDto,
|
|
13272
|
+
ResetUserPasswordByAdminDto,
|
|
13222
13273
|
ResubmitTimesheetDto,
|
|
13223
13274
|
ResultStatusEnum,
|
|
13224
13275
|
ResumeDataProcessingDto,
|
|
@@ -13248,6 +13299,7 @@ export {
|
|
|
13248
13299
|
Signature,
|
|
13249
13300
|
Skill,
|
|
13250
13301
|
SkillCatalog,
|
|
13302
|
+
SkipServiceAgreementFlowDto,
|
|
13251
13303
|
SocialAuthDto,
|
|
13252
13304
|
State,
|
|
13253
13305
|
Step,
|
|
@@ -13274,6 +13326,8 @@ export {
|
|
|
13274
13326
|
TransferFundsDto,
|
|
13275
13327
|
TypeOfEmploymentEnum,
|
|
13276
13328
|
UpdateAdminClientAccountStatusDto,
|
|
13329
|
+
UpdateAdminClientJobPostingRestrictionDto,
|
|
13330
|
+
UpdateAdminFreelancerAccountStatusDto,
|
|
13277
13331
|
UpdateAdminRoleDto,
|
|
13278
13332
|
UpdateAdminRoleStatusDto,
|
|
13279
13333
|
UpdateAssessmentRequestStatusDto,
|