@experts_hub/shared 1.0.697 → 1.0.698
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.mjs
CHANGED
|
@@ -39,7 +39,7 @@ var AUTHENTICATION_PATTERN = {
|
|
|
39
39
|
};
|
|
40
40
|
|
|
41
41
|
// src/modules/authentication/dto/login.dto.ts
|
|
42
|
-
import { IsEnum, IsNotEmpty } from "class-validator";
|
|
42
|
+
import { IsEnum, IsNotEmpty, IsOptional } from "class-validator";
|
|
43
43
|
var ScopeEnum = /* @__PURE__ */ ((ScopeEnum5) => {
|
|
44
44
|
ScopeEnum5["ADMIN"] = "ADMIN";
|
|
45
45
|
ScopeEnum5["SUB_ADMIN"] = "SUB_ADMIN";
|
|
@@ -60,9 +60,12 @@ __decorateClass([
|
|
|
60
60
|
message: `Scope must be one of: ${Object.values(ScopeEnum).join(", ")}`
|
|
61
61
|
})
|
|
62
62
|
], LoginDto.prototype, "scope", 2);
|
|
63
|
+
__decorateClass([
|
|
64
|
+
IsOptional()
|
|
65
|
+
], LoginDto.prototype, "ip", 2);
|
|
63
66
|
|
|
64
67
|
// src/modules/authentication/dto/login-via-otp.dto.ts
|
|
65
|
-
import { IsEnum as IsEnum2, IsNotEmpty as IsNotEmpty2 } from "class-validator";
|
|
68
|
+
import { IsEnum as IsEnum2, IsNotEmpty as IsNotEmpty2, IsOptional as IsOptional2 } from "class-validator";
|
|
66
69
|
var LoginViaOtpScopeEnum = /* @__PURE__ */ ((LoginViaOtpScopeEnum2) => {
|
|
67
70
|
LoginViaOtpScopeEnum2["ADMIN"] = "ADMIN";
|
|
68
71
|
LoginViaOtpScopeEnum2["SUB_ADMIN"] = "SUB_ADMIN";
|
|
@@ -83,6 +86,9 @@ __decorateClass([
|
|
|
83
86
|
message: `Scope must be one of: ${Object.values(LoginViaOtpScopeEnum).join(", ")}`
|
|
84
87
|
})
|
|
85
88
|
], LoginViaOtpDto.prototype, "scope", 2);
|
|
89
|
+
__decorateClass([
|
|
90
|
+
IsOptional2()
|
|
91
|
+
], LoginViaOtpDto.prototype, "ip", 2);
|
|
86
92
|
|
|
87
93
|
// src/modules/authentication/dto/refresh.dto.ts
|
|
88
94
|
import {
|
|
@@ -201,7 +207,7 @@ __decorateClass([
|
|
|
201
207
|
], ResetPasswordTokenValidationDto.prototype, "scope", 2);
|
|
202
208
|
|
|
203
209
|
// src/modules/authentication/dto/validate-email.dto.ts
|
|
204
|
-
import { IsNotEmpty as IsNotEmpty9, IsEmail as IsEmail2, IsOptional, IsEnum as IsEnum7 } from "class-validator";
|
|
210
|
+
import { IsNotEmpty as IsNotEmpty9, IsEmail as IsEmail2, IsOptional as IsOptional3, IsEnum as IsEnum7 } from "class-validator";
|
|
205
211
|
var ScopeEmailEnumDto = /* @__PURE__ */ ((ScopeEmailEnumDto2) => {
|
|
206
212
|
ScopeEmailEnumDto2["ADMIN"] = "ADMIN";
|
|
207
213
|
ScopeEmailEnumDto2["SUB_ADMIN"] = "SUB_ADMIN";
|
|
@@ -216,7 +222,7 @@ __decorateClass([
|
|
|
216
222
|
IsEmail2({}, { message: "Email must be valid" })
|
|
217
223
|
], ValidateEmailDto.prototype, "email", 2);
|
|
218
224
|
__decorateClass([
|
|
219
|
-
|
|
225
|
+
IsOptional3(),
|
|
220
226
|
IsEnum7(ScopeEmailEnumDto, {
|
|
221
227
|
message: `Scope must be one of: ${Object.values(ScopeEmailEnumDto).join(", ")}`
|
|
222
228
|
})
|
|
@@ -258,27 +264,27 @@ __decorateClass([
|
|
|
258
264
|
], ValidateMobileDto.prototype, "mobile", 2);
|
|
259
265
|
|
|
260
266
|
// src/modules/authentication/dto/social-auth.dto.ts
|
|
261
|
-
import { IsOptional as
|
|
267
|
+
import { IsOptional as IsOptional4, IsString as IsString2, IsObject } from "class-validator";
|
|
262
268
|
var SocialAuthDto = class {
|
|
263
269
|
};
|
|
264
270
|
__decorateClass([
|
|
265
|
-
|
|
271
|
+
IsOptional4(),
|
|
266
272
|
IsString2()
|
|
267
273
|
], SocialAuthDto.prototype, "accessToken", 2);
|
|
268
274
|
__decorateClass([
|
|
269
|
-
|
|
275
|
+
IsOptional4(),
|
|
270
276
|
IsString2()
|
|
271
277
|
], SocialAuthDto.prototype, "refreshToken", 2);
|
|
272
278
|
__decorateClass([
|
|
273
|
-
|
|
279
|
+
IsOptional4(),
|
|
274
280
|
IsObject()
|
|
275
281
|
], SocialAuthDto.prototype, "profile", 2);
|
|
276
282
|
__decorateClass([
|
|
277
|
-
|
|
283
|
+
IsOptional4(),
|
|
278
284
|
IsString2()
|
|
279
285
|
], SocialAuthDto.prototype, "provider", 2);
|
|
280
286
|
__decorateClass([
|
|
281
|
-
|
|
287
|
+
IsOptional4(),
|
|
282
288
|
IsString2()
|
|
283
289
|
], SocialAuthDto.prototype, "providerId", 2);
|
|
284
290
|
|
|
@@ -315,7 +321,7 @@ var OTP_PATTERN = {
|
|
|
315
321
|
};
|
|
316
322
|
|
|
317
323
|
// src/modules/otp/dto/send-guest-otp.dto.ts
|
|
318
|
-
import { IsEnum as IsEnum9, IsNotEmpty as IsNotEmpty14, IsOptional as
|
|
324
|
+
import { IsEnum as IsEnum9, IsNotEmpty as IsNotEmpty14, IsOptional as IsOptional5, IsString as IsString5 } from "class-validator";
|
|
319
325
|
var SendGuestOtpPurposeEnum = /* @__PURE__ */ ((SendGuestOtpPurposeEnum2) => {
|
|
320
326
|
SendGuestOtpPurposeEnum2["ACCOUNT_VERIFICATION"] = "ACCOUNT_VERIFICATION";
|
|
321
327
|
return SendGuestOtpPurposeEnum2;
|
|
@@ -336,7 +342,7 @@ __decorateClass([
|
|
|
336
342
|
IsString5({ message: "Please enter valid target." })
|
|
337
343
|
], SendGuestOtpDto.prototype, "target", 2);
|
|
338
344
|
__decorateClass([
|
|
339
|
-
|
|
345
|
+
IsOptional5(),
|
|
340
346
|
IsString5({ message: "Please enter valid fallback target." })
|
|
341
347
|
], SendGuestOtpDto.prototype, "fallbackTarget", 2);
|
|
342
348
|
__decorateClass([
|
|
@@ -399,7 +405,7 @@ __decorateClass([
|
|
|
399
405
|
], VerifyGuestOtpDto.prototype, "purpose", 2);
|
|
400
406
|
|
|
401
407
|
// src/modules/otp/dto/send-otp.dto.ts
|
|
402
|
-
import { IsNotEmpty as IsNotEmpty17, IsString as IsString8, IsOptional as
|
|
408
|
+
import { IsNotEmpty as IsNotEmpty17, IsString as IsString8, IsOptional as IsOptional7, IsUUID as IsUUID2 } from "class-validator";
|
|
403
409
|
var SendOtpDto = class {
|
|
404
410
|
};
|
|
405
411
|
__decorateClass([
|
|
@@ -407,12 +413,12 @@ __decorateClass([
|
|
|
407
413
|
IsNotEmpty17({ message: "User ID is required." })
|
|
408
414
|
], SendOtpDto.prototype, "userId", 2);
|
|
409
415
|
__decorateClass([
|
|
410
|
-
|
|
416
|
+
IsOptional7(),
|
|
411
417
|
IsString8({ message: "Purpose must be a string." })
|
|
412
418
|
], SendOtpDto.prototype, "purpose", 2);
|
|
413
419
|
|
|
414
420
|
// src/modules/otp/dto/verify-otp.dto.ts
|
|
415
|
-
import { IsNotEmpty as IsNotEmpty18, IsString as IsString9, IsOptional as
|
|
421
|
+
import { IsNotEmpty as IsNotEmpty18, IsString as IsString9, IsOptional as IsOptional8, IsUUID as IsUUID3 } from "class-validator";
|
|
416
422
|
var VerifyOtpDto = class {
|
|
417
423
|
};
|
|
418
424
|
__decorateClass([
|
|
@@ -424,7 +430,7 @@ __decorateClass([
|
|
|
424
430
|
IsString9({ message: "OTP code must be a string." })
|
|
425
431
|
], VerifyOtpDto.prototype, "otp", 2);
|
|
426
432
|
__decorateClass([
|
|
427
|
-
|
|
433
|
+
IsOptional8(),
|
|
428
434
|
IsString9({ message: "Purpose must be a string." })
|
|
429
435
|
], VerifyOtpDto.prototype, "purpose", 2);
|
|
430
436
|
|
|
@@ -458,7 +464,7 @@ import {
|
|
|
458
464
|
IsEmail as IsEmail4,
|
|
459
465
|
Matches as Matches3,
|
|
460
466
|
IsString as IsString10,
|
|
461
|
-
IsOptional as
|
|
467
|
+
IsOptional as IsOptional9
|
|
462
468
|
} from "class-validator";
|
|
463
469
|
|
|
464
470
|
// src/decorators/match.decorator.ts
|
|
@@ -655,13 +661,13 @@ __decorateClass([
|
|
|
655
661
|
IsNotEmpty19({ message: "Please enter country iso code." })
|
|
656
662
|
], FreelancerCreateAccountDto.prototype, "countryISOCode", 2);
|
|
657
663
|
__decorateClass([
|
|
658
|
-
|
|
664
|
+
IsOptional9()
|
|
659
665
|
], FreelancerCreateAccountDto.prototype, "onBoardedBy", 2);
|
|
660
666
|
__decorateClass([
|
|
661
|
-
|
|
667
|
+
IsOptional9()
|
|
662
668
|
], FreelancerCreateAccountDto.prototype, "ip", 2);
|
|
663
669
|
__decorateClass([
|
|
664
|
-
|
|
670
|
+
IsOptional9()
|
|
665
671
|
], FreelancerCreateAccountDto.prototype, "referralCode", 2);
|
|
666
672
|
|
|
667
673
|
// src/modules/onboarding/dto/freelancer-upload-resume.dto.ts
|
|
@@ -710,7 +716,7 @@ __decorateClass([
|
|
|
710
716
|
], FreelancerInitiateAiAssessmentDto.prototype, "uuid", 2);
|
|
711
717
|
|
|
712
718
|
// src/modules/onboarding/dto/freelancer-capture-ai-assessment-status.dto.ts
|
|
713
|
-
import { IsUUID as IsUUID9, IsNotEmpty as IsNotEmpty25, IsOptional as
|
|
719
|
+
import { IsUUID as IsUUID9, IsNotEmpty as IsNotEmpty25, IsOptional as IsOptional10 } from "class-validator";
|
|
714
720
|
var FreelancerCaptureAiAssessmentStatusDto = class {
|
|
715
721
|
};
|
|
716
722
|
__decorateClass([
|
|
@@ -724,7 +730,7 @@ __decorateClass([
|
|
|
724
730
|
IsNotEmpty25({ message: "Please enter assessment status." })
|
|
725
731
|
], FreelancerCaptureAiAssessmentStatusDto.prototype, "assessmentStatus", 2);
|
|
726
732
|
__decorateClass([
|
|
727
|
-
|
|
733
|
+
IsOptional10()
|
|
728
734
|
], FreelancerCaptureAiAssessmentStatusDto.prototype, "iframeEventData", 2);
|
|
729
735
|
|
|
730
736
|
// src/modules/onboarding/dto/freelancer-development-preference.dto.ts
|
|
@@ -746,7 +752,7 @@ import {
|
|
|
746
752
|
IsString as IsString11,
|
|
747
753
|
IsNotEmpty as IsNotEmpty27,
|
|
748
754
|
IsIn,
|
|
749
|
-
IsOptional as
|
|
755
|
+
IsOptional as IsOptional11
|
|
750
756
|
} from "class-validator";
|
|
751
757
|
var FreelancerProfileQuestionDto = class {
|
|
752
758
|
};
|
|
@@ -769,19 +775,19 @@ __decorateClass([
|
|
|
769
775
|
IsNotEmpty27({ message: "Please enter answer." })
|
|
770
776
|
], FreelancerProfileQuestionDto.prototype, "answer", 2);
|
|
771
777
|
__decorateClass([
|
|
772
|
-
|
|
778
|
+
IsOptional11()
|
|
773
779
|
], FreelancerProfileQuestionDto.prototype, "numberOfHours", 2);
|
|
774
780
|
__decorateClass([
|
|
775
|
-
|
|
781
|
+
IsOptional11()
|
|
776
782
|
], FreelancerProfileQuestionDto.prototype, "currency", 2);
|
|
777
783
|
__decorateClass([
|
|
778
|
-
|
|
784
|
+
IsOptional11()
|
|
779
785
|
], FreelancerProfileQuestionDto.prototype, "ctc", 2);
|
|
780
786
|
|
|
781
787
|
// src/modules/onboarding/dto/freelancer-work-showcase.dto.ts
|
|
782
788
|
import {
|
|
783
789
|
IsNotEmpty as IsNotEmpty28,
|
|
784
|
-
IsOptional as
|
|
790
|
+
IsOptional as IsOptional12,
|
|
785
791
|
IsUrl,
|
|
786
792
|
IsString as IsString12,
|
|
787
793
|
IsUUID as IsUUID12
|
|
@@ -803,7 +809,7 @@ __decorateClass([
|
|
|
803
809
|
)
|
|
804
810
|
], FreelancerWorkShowcaseDto.prototype, "linkedinProfileLink", 2);
|
|
805
811
|
__decorateClass([
|
|
806
|
-
|
|
812
|
+
IsOptional12(),
|
|
807
813
|
IsUrl(
|
|
808
814
|
{ require_protocol: false },
|
|
809
815
|
{
|
|
@@ -812,7 +818,7 @@ __decorateClass([
|
|
|
812
818
|
)
|
|
813
819
|
], FreelancerWorkShowcaseDto.prototype, "kaggleProfileLink", 2);
|
|
814
820
|
__decorateClass([
|
|
815
|
-
|
|
821
|
+
IsOptional12(),
|
|
816
822
|
IsUrl(
|
|
817
823
|
{ require_protocol: false },
|
|
818
824
|
{
|
|
@@ -821,7 +827,7 @@ __decorateClass([
|
|
|
821
827
|
)
|
|
822
828
|
], FreelancerWorkShowcaseDto.prototype, "githubProfileLink", 2);
|
|
823
829
|
__decorateClass([
|
|
824
|
-
|
|
830
|
+
IsOptional12(),
|
|
825
831
|
IsUrl(
|
|
826
832
|
{ require_protocol: false },
|
|
827
833
|
{
|
|
@@ -830,7 +836,7 @@ __decorateClass([
|
|
|
830
836
|
)
|
|
831
837
|
], FreelancerWorkShowcaseDto.prototype, "stackOverflowProfileLink", 2);
|
|
832
838
|
__decorateClass([
|
|
833
|
-
|
|
839
|
+
IsOptional12(),
|
|
834
840
|
IsUrl(
|
|
835
841
|
{ require_protocol: false },
|
|
836
842
|
{
|
|
@@ -846,7 +852,7 @@ import {
|
|
|
846
852
|
IsNotEmpty as IsNotEmpty29,
|
|
847
853
|
IsIn as IsIn2,
|
|
848
854
|
ValidateIf,
|
|
849
|
-
IsOptional as
|
|
855
|
+
IsOptional as IsOptional13
|
|
850
856
|
} from "class-validator";
|
|
851
857
|
var ClientProfileQuestionDto = class {
|
|
852
858
|
};
|
|
@@ -869,7 +875,7 @@ __decorateClass([
|
|
|
869
875
|
IsNotEmpty29({ message: "Please enter answer." })
|
|
870
876
|
], ClientProfileQuestionDto.prototype, "answer", 2);
|
|
871
877
|
__decorateClass([
|
|
872
|
-
|
|
878
|
+
IsOptional13()
|
|
873
879
|
], ClientProfileQuestionDto.prototype, "numberOfHours", 2);
|
|
874
880
|
__decorateClass([
|
|
875
881
|
ValidateIf((o) => o.questionSlug === "foundUsOn" && o.answer === "OTHER"),
|
|
@@ -882,7 +888,7 @@ import {
|
|
|
882
888
|
IsNotEmpty as IsNotEmpty30,
|
|
883
889
|
IsEmail as IsEmail5,
|
|
884
890
|
IsString as IsString14,
|
|
885
|
-
IsOptional as
|
|
891
|
+
IsOptional as IsOptional14
|
|
886
892
|
} from "class-validator";
|
|
887
893
|
var ClientCreateAccountDto = class {
|
|
888
894
|
};
|
|
@@ -900,10 +906,10 @@ __decorateClass([
|
|
|
900
906
|
IsString14({ message: "Please enter valid company name." })
|
|
901
907
|
], ClientCreateAccountDto.prototype, "companyName", 2);
|
|
902
908
|
__decorateClass([
|
|
903
|
-
|
|
909
|
+
IsOptional14()
|
|
904
910
|
], ClientCreateAccountDto.prototype, "onBoardedBy", 2);
|
|
905
911
|
__decorateClass([
|
|
906
|
-
|
|
912
|
+
IsOptional14()
|
|
907
913
|
], ClientCreateAccountDto.prototype, "referralCode", 2);
|
|
908
914
|
|
|
909
915
|
// src/modules/onboarding/dto/verify-onboarding-token.dto.ts
|
|
@@ -6912,7 +6918,7 @@ __decorateClass([
|
|
|
6912
6918
|
|
|
6913
6919
|
// src/modules/user/subadmin/dto/update-subadmin.dto.ts
|
|
6914
6920
|
import { Transform } from "class-transformer";
|
|
6915
|
-
import { IsNotEmpty as IsNotEmpty33, IsOptional as
|
|
6921
|
+
import { IsNotEmpty as IsNotEmpty33, IsOptional as IsOptional15, Matches as Matches5, MaxLength as MaxLength5, MinLength as MinLength6, IsEnum as IsEnum14 } from "class-validator";
|
|
6916
6922
|
var AccountType3 = /* @__PURE__ */ ((AccountType4) => {
|
|
6917
6923
|
AccountType4["ADMIN"] = "ADMIN";
|
|
6918
6924
|
AccountType4["SUB_ADMIN"] = "SUB_ADMIN";
|
|
@@ -6945,7 +6951,7 @@ __decorateClass([
|
|
|
6945
6951
|
IsNotEmpty33({ message: "Please enter mobile number." })
|
|
6946
6952
|
], UpdateSubAdminDto.prototype, "mobile", 2);
|
|
6947
6953
|
__decorateClass([
|
|
6948
|
-
|
|
6954
|
+
IsOptional15(),
|
|
6949
6955
|
Transform(({ value }) => value === null || value === "" ? void 0 : value),
|
|
6950
6956
|
MinLength6(6, { message: "Password must be at least 6 characters." }),
|
|
6951
6957
|
MaxLength5(32, { message: "Password must not exceed 32 characters." }),
|
|
@@ -6991,7 +6997,7 @@ import {
|
|
|
6991
6997
|
IsEmail as IsEmail6,
|
|
6992
6998
|
Length as Length2,
|
|
6993
6999
|
IsUrl as IsUrl2,
|
|
6994
|
-
IsOptional as
|
|
7000
|
+
IsOptional as IsOptional16,
|
|
6995
7001
|
ValidateIf as ValidateIf2,
|
|
6996
7002
|
IsNumber
|
|
6997
7003
|
} from "class-validator";
|
|
@@ -7005,20 +7011,20 @@ __decorateClass([
|
|
|
7005
7011
|
})
|
|
7006
7012
|
], UpdateCompanyProfileDto.prototype, "companyName", 2);
|
|
7007
7013
|
__decorateClass([
|
|
7008
|
-
|
|
7014
|
+
IsOptional16(),
|
|
7009
7015
|
ValidateIf2((o) => o.webSite !== ""),
|
|
7010
7016
|
IsUrl2({}, { message: "Invalid website URL format" })
|
|
7011
7017
|
], UpdateCompanyProfileDto.prototype, "webSite", 2);
|
|
7012
7018
|
__decorateClass([
|
|
7013
|
-
|
|
7019
|
+
IsOptional16(),
|
|
7014
7020
|
IsNumber()
|
|
7015
7021
|
], UpdateCompanyProfileDto.prototype, "countryId", 2);
|
|
7016
7022
|
__decorateClass([
|
|
7017
|
-
|
|
7023
|
+
IsOptional16(),
|
|
7018
7024
|
IsNumber()
|
|
7019
7025
|
], UpdateCompanyProfileDto.prototype, "stateId", 2);
|
|
7020
7026
|
__decorateClass([
|
|
7021
|
-
|
|
7027
|
+
IsOptional16(),
|
|
7022
7028
|
IsNumber()
|
|
7023
7029
|
], UpdateCompanyProfileDto.prototype, "cityId", 2);
|
|
7024
7030
|
__decorateClass([
|
|
@@ -7027,7 +7033,7 @@ __decorateClass([
|
|
|
7027
7033
|
Length2(5, 1e3, { message: "Address must be between 5 and 1000 characters" })
|
|
7028
7034
|
], UpdateCompanyProfileDto.prototype, "companyAddress", 2);
|
|
7029
7035
|
__decorateClass([
|
|
7030
|
-
|
|
7036
|
+
IsOptional16(),
|
|
7031
7037
|
IsString15({ message: "Address line must be a string" })
|
|
7032
7038
|
], UpdateCompanyProfileDto.prototype, "addressLine", 2);
|
|
7033
7039
|
__decorateClass([
|
|
@@ -7050,7 +7056,7 @@ __decorateClass([
|
|
|
7050
7056
|
IsEmail6()
|
|
7051
7057
|
], UpdateCompanyProfileDto.prototype, "email", 2);
|
|
7052
7058
|
__decorateClass([
|
|
7053
|
-
|
|
7059
|
+
IsOptional16(),
|
|
7054
7060
|
IsString15({ message: "About company must be a string." })
|
|
7055
7061
|
], UpdateCompanyProfileDto.prototype, "aboutCompany", 2);
|
|
7056
7062
|
|
|
@@ -7076,11 +7082,11 @@ __decorateClass([
|
|
|
7076
7082
|
], ClientChangePasswordDto.prototype, "confirmPassword", 2);
|
|
7077
7083
|
|
|
7078
7084
|
// src/modules/user/client-profile/dto/client-service-agreement-upload.dto.ts
|
|
7079
|
-
import { IsOptional as
|
|
7085
|
+
import { IsOptional as IsOptional17, IsString as IsString17 } from "class-validator";
|
|
7080
7086
|
var ClientServiceAgreementUploadDto = class {
|
|
7081
7087
|
};
|
|
7082
7088
|
__decorateClass([
|
|
7083
|
-
|
|
7089
|
+
IsOptional17(),
|
|
7084
7090
|
IsString17()
|
|
7085
7091
|
], ClientServiceAgreementUploadDto.prototype, "serviceAgreementSignedOn", 2);
|
|
7086
7092
|
|
|
@@ -7162,7 +7168,7 @@ var ASSESSMENT_QUESTION_PATTERN = {
|
|
|
7162
7168
|
// src/modules/question/dto/create-question.dto.ts
|
|
7163
7169
|
import {
|
|
7164
7170
|
IsNotEmpty as IsNotEmpty40,
|
|
7165
|
-
IsOptional as
|
|
7171
|
+
IsOptional as IsOptional18,
|
|
7166
7172
|
IsBoolean as IsBoolean2
|
|
7167
7173
|
} from "class-validator";
|
|
7168
7174
|
var CreateQuestionDto = class {
|
|
@@ -7180,12 +7186,12 @@ __decorateClass([
|
|
|
7180
7186
|
IsNotEmpty40({ message: "Please enter options." })
|
|
7181
7187
|
], CreateQuestionDto.prototype, "options", 2);
|
|
7182
7188
|
__decorateClass([
|
|
7183
|
-
|
|
7189
|
+
IsOptional18(),
|
|
7184
7190
|
IsBoolean2({ message: "Whether the question status active" })
|
|
7185
7191
|
], CreateQuestionDto.prototype, "isActive", 2);
|
|
7186
7192
|
|
|
7187
7193
|
// src/modules/question/dto/record-assessment-answer.dto.ts
|
|
7188
|
-
import { IsNotEmpty as IsNotEmpty41, IsString as IsString20, IsOptional as
|
|
7194
|
+
import { IsNotEmpty as IsNotEmpty41, IsString as IsString20, IsOptional as IsOptional19, IsObject as IsObject2 } from "class-validator";
|
|
7189
7195
|
var RecordAssessmentAnswerDto = class {
|
|
7190
7196
|
};
|
|
7191
7197
|
__decorateClass([
|
|
@@ -7197,16 +7203,16 @@ __decorateClass([
|
|
|
7197
7203
|
IsObject2()
|
|
7198
7204
|
], RecordAssessmentAnswerDto.prototype, "answer", 2);
|
|
7199
7205
|
__decorateClass([
|
|
7200
|
-
|
|
7206
|
+
IsOptional19(),
|
|
7201
7207
|
IsString20()
|
|
7202
7208
|
], RecordAssessmentAnswerDto.prototype, "assessmentId", 2);
|
|
7203
7209
|
__decorateClass([
|
|
7204
|
-
|
|
7210
|
+
IsOptional19(),
|
|
7205
7211
|
IsString20()
|
|
7206
7212
|
], RecordAssessmentAnswerDto.prototype, "userId", 2);
|
|
7207
7213
|
|
|
7208
7214
|
// src/modules/question/dto/record-assessment-answers.dto.ts
|
|
7209
|
-
import { IsNotEmpty as IsNotEmpty42, IsArray, IsObject as IsObject3, IsOptional as
|
|
7215
|
+
import { IsNotEmpty as IsNotEmpty42, IsArray, IsObject as IsObject3, IsOptional as IsOptional20, IsString as IsString21 } from "class-validator";
|
|
7210
7216
|
var RecordAssessmentAnswersDto = class {
|
|
7211
7217
|
};
|
|
7212
7218
|
__decorateClass([
|
|
@@ -7215,11 +7221,11 @@ __decorateClass([
|
|
|
7215
7221
|
IsObject3({ each: true, message: "Each answer must be an object" })
|
|
7216
7222
|
], RecordAssessmentAnswersDto.prototype, "answers", 2);
|
|
7217
7223
|
__decorateClass([
|
|
7218
|
-
|
|
7224
|
+
IsOptional20(),
|
|
7219
7225
|
IsString21()
|
|
7220
7226
|
], RecordAssessmentAnswersDto.prototype, "assessmentId", 2);
|
|
7221
7227
|
__decorateClass([
|
|
7222
|
-
|
|
7228
|
+
IsOptional20(),
|
|
7223
7229
|
IsString21()
|
|
7224
7230
|
], RecordAssessmentAnswersDto.prototype, "userId", 2);
|
|
7225
7231
|
|
|
@@ -7287,7 +7293,7 @@ import {
|
|
|
7287
7293
|
IsArray as IsArray2,
|
|
7288
7294
|
ArrayNotEmpty,
|
|
7289
7295
|
IsNumber as IsNumber3,
|
|
7290
|
-
IsOptional as
|
|
7296
|
+
IsOptional as IsOptional21,
|
|
7291
7297
|
IsEnum as IsEnum15,
|
|
7292
7298
|
Min,
|
|
7293
7299
|
ValidateIf as ValidateIf3,
|
|
@@ -7316,7 +7322,7 @@ var JobBasicInformationDto = class {
|
|
|
7316
7322
|
}
|
|
7317
7323
|
};
|
|
7318
7324
|
__decorateClass([
|
|
7319
|
-
|
|
7325
|
+
IsOptional21(),
|
|
7320
7326
|
Type(() => Boolean)
|
|
7321
7327
|
], JobBasicInformationDto.prototype, "isDraft", 2);
|
|
7322
7328
|
__decorateClass([
|
|
@@ -7324,19 +7330,19 @@ __decorateClass([
|
|
|
7324
7330
|
IsString22({ message: "Job role must be a string" })
|
|
7325
7331
|
], JobBasicInformationDto.prototype, "jobRole", 2);
|
|
7326
7332
|
__decorateClass([
|
|
7327
|
-
|
|
7333
|
+
IsOptional21()
|
|
7328
7334
|
], JobBasicInformationDto.prototype, "jobRoleCanonicalName", 2);
|
|
7329
7335
|
__decorateClass([
|
|
7330
|
-
|
|
7336
|
+
IsOptional21(),
|
|
7331
7337
|
IsString22({ message: "Project name must be a string" })
|
|
7332
7338
|
], JobBasicInformationDto.prototype, "projectName", 2);
|
|
7333
7339
|
__decorateClass([
|
|
7334
|
-
|
|
7340
|
+
IsOptional21(),
|
|
7335
7341
|
IsString22({ message: "Note must be a string" })
|
|
7336
7342
|
], JobBasicInformationDto.prototype, "note", 2);
|
|
7337
7343
|
__decorateClass([
|
|
7338
7344
|
ValidateIf3((o) => !o.isDraft),
|
|
7339
|
-
|
|
7345
|
+
IsOptional21(),
|
|
7340
7346
|
IsArray2({ message: "Skills must be an array" }),
|
|
7341
7347
|
ArrayNotEmpty({ message: "Please select at least one skill" }),
|
|
7342
7348
|
IsString22({ each: true, message: "Each skill must be a string" }),
|
|
@@ -7346,7 +7352,7 @@ __decorateClass([
|
|
|
7346
7352
|
ValidateIf3((o) => !o.isDraft),
|
|
7347
7353
|
IsArray2({ message: "Good to have skills must be an array" }),
|
|
7348
7354
|
IsString22({ each: true, message: "Each skill must be a string" }),
|
|
7349
|
-
|
|
7355
|
+
IsOptional21(),
|
|
7350
7356
|
Type(() => String)
|
|
7351
7357
|
], JobBasicInformationDto.prototype, "goodToHaveSkills", 2);
|
|
7352
7358
|
__decorateClass([
|
|
@@ -7364,17 +7370,17 @@ __decorateClass([
|
|
|
7364
7370
|
})
|
|
7365
7371
|
], JobBasicInformationDto.prototype, "location", 2);
|
|
7366
7372
|
__decorateClass([
|
|
7367
|
-
|
|
7373
|
+
IsOptional21(),
|
|
7368
7374
|
IsNumber3({}, { message: "Country id must be a number" }),
|
|
7369
7375
|
Type(() => Number)
|
|
7370
7376
|
], JobBasicInformationDto.prototype, "countryId", 2);
|
|
7371
7377
|
__decorateClass([
|
|
7372
|
-
|
|
7378
|
+
IsOptional21(),
|
|
7373
7379
|
IsNumber3({}, { message: "State id must be a number" }),
|
|
7374
7380
|
Type(() => Number)
|
|
7375
7381
|
], JobBasicInformationDto.prototype, "stateId", 2);
|
|
7376
7382
|
__decorateClass([
|
|
7377
|
-
|
|
7383
|
+
IsOptional21(),
|
|
7378
7384
|
IsNumber3({}, { message: "City id must be a number" }),
|
|
7379
7385
|
Type(() => Number)
|
|
7380
7386
|
], JobBasicInformationDto.prototype, "cityId", 2);
|
|
@@ -7397,7 +7403,7 @@ __decorateClass([
|
|
|
7397
7403
|
Type(() => Number)
|
|
7398
7404
|
], JobBasicInformationDto.prototype, "expectedSalaryFrom", 2);
|
|
7399
7405
|
__decorateClass([
|
|
7400
|
-
|
|
7406
|
+
IsOptional21()
|
|
7401
7407
|
], JobBasicInformationDto.prototype, "hideExpectedSalaryFrom", 2);
|
|
7402
7408
|
__decorateClass([
|
|
7403
7409
|
ValidateIf3((o) => !o.isDraft),
|
|
@@ -7406,22 +7412,22 @@ __decorateClass([
|
|
|
7406
7412
|
Type(() => Number)
|
|
7407
7413
|
], JobBasicInformationDto.prototype, "expectedSalaryTo", 2);
|
|
7408
7414
|
__decorateClass([
|
|
7409
|
-
|
|
7415
|
+
IsOptional21()
|
|
7410
7416
|
], JobBasicInformationDto.prototype, "hideExpectedSalaryTo", 2);
|
|
7411
7417
|
__decorateClass([
|
|
7412
|
-
|
|
7418
|
+
IsOptional21()
|
|
7413
7419
|
], JobBasicInformationDto.prototype, "years", 2);
|
|
7414
7420
|
__decorateClass([
|
|
7415
|
-
|
|
7421
|
+
IsOptional21()
|
|
7416
7422
|
], JobBasicInformationDto.prototype, "months", 2);
|
|
7417
7423
|
__decorateClass([
|
|
7418
|
-
|
|
7424
|
+
IsOptional21()
|
|
7419
7425
|
], JobBasicInformationDto.prototype, "weeks", 2);
|
|
7420
7426
|
__decorateClass([
|
|
7421
|
-
|
|
7427
|
+
IsOptional21()
|
|
7422
7428
|
], JobBasicInformationDto.prototype, "days", 2);
|
|
7423
7429
|
__decorateClass([
|
|
7424
|
-
|
|
7430
|
+
IsOptional21(),
|
|
7425
7431
|
IsNumber3({}, { message: "Number of hours must be a number" }),
|
|
7426
7432
|
Min(0, { message: "Number of hours cannot be negative" }),
|
|
7427
7433
|
Max(40, { message: "Number of hours cannot exceed 40" }),
|
|
@@ -7430,7 +7436,7 @@ __decorateClass([
|
|
|
7430
7436
|
__decorateClass([
|
|
7431
7437
|
ValidateIf3((o) => !o.isDraft),
|
|
7432
7438
|
IsString22({ message: "Candidate communication skills must be a string" }),
|
|
7433
|
-
|
|
7439
|
+
IsOptional21()
|
|
7434
7440
|
], JobBasicInformationDto.prototype, "candidateCommunicationSkills", 2);
|
|
7435
7441
|
__decorateClass([
|
|
7436
7442
|
ValidateIf3((o) => !o.isDraft),
|
|
@@ -7443,27 +7449,27 @@ __decorateClass([
|
|
|
7443
7449
|
IsString22({ message: "Years of experience must be a string" })
|
|
7444
7450
|
], JobBasicInformationDto.prototype, "yearsOfExperience", 2);
|
|
7445
7451
|
__decorateClass([
|
|
7446
|
-
|
|
7452
|
+
IsOptional21(),
|
|
7447
7453
|
IsString22({ message: "Business industry must be a string" })
|
|
7448
7454
|
], JobBasicInformationDto.prototype, "businessIndustry", 2);
|
|
7449
7455
|
__decorateClass([
|
|
7450
|
-
|
|
7456
|
+
IsOptional21(),
|
|
7451
7457
|
IsString22({ message: "Additional comment must be a string" }),
|
|
7452
7458
|
MaxLength6(500, { message: "Additional comment must not exceed 500 characters" })
|
|
7453
7459
|
], JobBasicInformationDto.prototype, "additionalComment", 2);
|
|
7454
7460
|
|
|
7455
7461
|
// src/modules/job/dto/job-additional-comment.dto.ts
|
|
7456
|
-
import { IsOptional as
|
|
7462
|
+
import { IsOptional as IsOptional22, IsString as IsString23, MaxLength as MaxLength7 } from "class-validator";
|
|
7457
7463
|
var JobAdditionalCommentDto = class {
|
|
7458
7464
|
};
|
|
7459
7465
|
__decorateClass([
|
|
7460
|
-
|
|
7466
|
+
IsOptional22(),
|
|
7461
7467
|
IsString23({ message: "Additional comment must be a string" }),
|
|
7462
7468
|
MaxLength7(500, { message: "Additional comment must not exceed 500 characters" })
|
|
7463
7469
|
], JobAdditionalCommentDto.prototype, "additionalComment", 2);
|
|
7464
7470
|
|
|
7465
7471
|
// src/modules/job/dto/job-description.dto.ts
|
|
7466
|
-
import { IsString as IsString24, IsNotEmpty as IsNotEmpty44, MaxLength as MaxLength8, IsOptional as
|
|
7472
|
+
import { IsString as IsString24, IsNotEmpty as IsNotEmpty44, MaxLength as MaxLength8, IsOptional as IsOptional23 } from "class-validator";
|
|
7467
7473
|
import { Type as Type2 } from "class-transformer";
|
|
7468
7474
|
var JobDescriptionDto = class {
|
|
7469
7475
|
constructor() {
|
|
@@ -7471,7 +7477,7 @@ var JobDescriptionDto = class {
|
|
|
7471
7477
|
}
|
|
7472
7478
|
};
|
|
7473
7479
|
__decorateClass([
|
|
7474
|
-
|
|
7480
|
+
IsOptional23(),
|
|
7475
7481
|
Type2(() => Boolean)
|
|
7476
7482
|
], JobDescriptionDto.prototype, "isDraft", 2);
|
|
7477
7483
|
__decorateClass([
|
|
@@ -7487,7 +7493,7 @@ import {
|
|
|
7487
7493
|
IsArray as IsArray3,
|
|
7488
7494
|
ArrayNotEmpty as ArrayNotEmpty2,
|
|
7489
7495
|
IsNumber as IsNumber4,
|
|
7490
|
-
IsOptional as
|
|
7496
|
+
IsOptional as IsOptional24,
|
|
7491
7497
|
IsEnum as IsEnum16,
|
|
7492
7498
|
Min as Min2,
|
|
7493
7499
|
ValidateIf as ValidateIf4,
|
|
@@ -7523,29 +7529,29 @@ var StepCompletedEnumV2 = /* @__PURE__ */ ((StepCompletedEnumV23) => {
|
|
|
7523
7529
|
var JobLocationDto = class {
|
|
7524
7530
|
};
|
|
7525
7531
|
__decorateClass([
|
|
7526
|
-
|
|
7532
|
+
IsOptional24(),
|
|
7527
7533
|
Type3(() => Number)
|
|
7528
7534
|
], JobLocationDto.prototype, "countryId", 2);
|
|
7529
7535
|
__decorateClass([
|
|
7530
|
-
|
|
7536
|
+
IsOptional24(),
|
|
7531
7537
|
Type3(() => Number)
|
|
7532
7538
|
], JobLocationDto.prototype, "stateId", 2);
|
|
7533
7539
|
__decorateClass([
|
|
7534
|
-
|
|
7540
|
+
IsOptional24(),
|
|
7535
7541
|
Type3(() => Number)
|
|
7536
7542
|
], JobLocationDto.prototype, "cityId", 2);
|
|
7537
7543
|
__decorateClass([
|
|
7538
|
-
|
|
7544
|
+
IsOptional24(),
|
|
7539
7545
|
IsString25({ message: "Country name must be a string" }),
|
|
7540
7546
|
MaxLength9(255, { message: "Country name must not exceed 255 characters" })
|
|
7541
7547
|
], JobLocationDto.prototype, "countryName", 2);
|
|
7542
7548
|
__decorateClass([
|
|
7543
|
-
|
|
7549
|
+
IsOptional24(),
|
|
7544
7550
|
IsString25({ message: "State name must be a string" }),
|
|
7545
7551
|
MaxLength9(255, { message: "State name must not exceed 255 characters" })
|
|
7546
7552
|
], JobLocationDto.prototype, "stateName", 2);
|
|
7547
7553
|
__decorateClass([
|
|
7548
|
-
|
|
7554
|
+
IsOptional24(),
|
|
7549
7555
|
IsString25({ message: "City name must be a string" }),
|
|
7550
7556
|
MaxLength9(255, { message: "City name must not exceed 255 characters" })
|
|
7551
7557
|
], JobLocationDto.prototype, "cityName", 2);
|
|
@@ -7559,7 +7565,7 @@ __decorateClass([
|
|
|
7559
7565
|
Type3(() => Number)
|
|
7560
7566
|
], CreateJobViaAIDto.prototype, "userId", 2);
|
|
7561
7567
|
__decorateClass([
|
|
7562
|
-
|
|
7568
|
+
IsOptional24(),
|
|
7563
7569
|
Type3(() => Boolean)
|
|
7564
7570
|
], CreateJobViaAIDto.prototype, "isDraft", 2);
|
|
7565
7571
|
__decorateClass([
|
|
@@ -7567,19 +7573,19 @@ __decorateClass([
|
|
|
7567
7573
|
IsString25({ message: "Job role must be a string" })
|
|
7568
7574
|
], CreateJobViaAIDto.prototype, "jobRole", 2);
|
|
7569
7575
|
__decorateClass([
|
|
7570
|
-
|
|
7576
|
+
IsOptional24()
|
|
7571
7577
|
], CreateJobViaAIDto.prototype, "jobRoleCanonicalName", 2);
|
|
7572
7578
|
__decorateClass([
|
|
7573
|
-
|
|
7579
|
+
IsOptional24(),
|
|
7574
7580
|
IsString25({ message: "Project name must be a string" })
|
|
7575
7581
|
], CreateJobViaAIDto.prototype, "projectName", 2);
|
|
7576
7582
|
__decorateClass([
|
|
7577
|
-
|
|
7583
|
+
IsOptional24(),
|
|
7578
7584
|
IsString25({ message: "Note must be a string" })
|
|
7579
7585
|
], CreateJobViaAIDto.prototype, "note", 2);
|
|
7580
7586
|
__decorateClass([
|
|
7581
7587
|
ValidateIf4((o) => !o.isDraft),
|
|
7582
|
-
|
|
7588
|
+
IsOptional24(),
|
|
7583
7589
|
IsArray3({ message: "Skills must be an array" }),
|
|
7584
7590
|
ArrayNotEmpty2({ message: "Please select at least one skill" }),
|
|
7585
7591
|
IsString25({ each: true, message: "Each skill must be a string" }),
|
|
@@ -7589,7 +7595,7 @@ __decorateClass([
|
|
|
7589
7595
|
ValidateIf4((o) => !o.isDraft),
|
|
7590
7596
|
IsArray3({ message: "Good to have skills must be an array" }),
|
|
7591
7597
|
IsString25({ each: true, message: "Each skill must be a string" }),
|
|
7592
|
-
|
|
7598
|
+
IsOptional24(),
|
|
7593
7599
|
Type3(() => String)
|
|
7594
7600
|
], CreateJobViaAIDto.prototype, "goodToHaveSkills", 2);
|
|
7595
7601
|
__decorateClass([
|
|
@@ -7607,7 +7613,7 @@ __decorateClass([
|
|
|
7607
7613
|
})
|
|
7608
7614
|
], CreateJobViaAIDto.prototype, "locationMode", 2);
|
|
7609
7615
|
__decorateClass([
|
|
7610
|
-
|
|
7616
|
+
IsOptional24(),
|
|
7611
7617
|
Type3(() => JobLocationDto)
|
|
7612
7618
|
], CreateJobViaAIDto.prototype, "locations", 2);
|
|
7613
7619
|
__decorateClass([
|
|
@@ -7619,7 +7625,7 @@ __decorateClass([
|
|
|
7619
7625
|
})
|
|
7620
7626
|
], CreateJobViaAIDto.prototype, "typeOfEmployment", 2);
|
|
7621
7627
|
__decorateClass([
|
|
7622
|
-
|
|
7628
|
+
IsOptional24(),
|
|
7623
7629
|
IsEnum16(BillingCycleEnumV2, {
|
|
7624
7630
|
message: `Billing cycle must be one of: ${Object.values(BillingCycleEnumV2).join(", ")}`
|
|
7625
7631
|
})
|
|
@@ -7635,7 +7641,7 @@ __decorateClass([
|
|
|
7635
7641
|
Type3(() => Number)
|
|
7636
7642
|
], CreateJobViaAIDto.prototype, "expectedSalaryFrom", 2);
|
|
7637
7643
|
__decorateClass([
|
|
7638
|
-
|
|
7644
|
+
IsOptional24()
|
|
7639
7645
|
], CreateJobViaAIDto.prototype, "hideExpectedSalaryFrom", 2);
|
|
7640
7646
|
__decorateClass([
|
|
7641
7647
|
ValidateIf4((o) => !o.isDraft),
|
|
@@ -7644,40 +7650,40 @@ __decorateClass([
|
|
|
7644
7650
|
Type3(() => Number)
|
|
7645
7651
|
], CreateJobViaAIDto.prototype, "expectedSalaryTo", 2);
|
|
7646
7652
|
__decorateClass([
|
|
7647
|
-
|
|
7653
|
+
IsOptional24()
|
|
7648
7654
|
], CreateJobViaAIDto.prototype, "hideExpectedSalaryTo", 2);
|
|
7649
7655
|
__decorateClass([
|
|
7650
|
-
|
|
7656
|
+
IsOptional24(),
|
|
7651
7657
|
IsNumber4({}, { message: "Expected annual budget (from) must be a number" }),
|
|
7652
7658
|
Min2(0, { message: "Expected annual budget (from) cannot be negative" }),
|
|
7653
7659
|
Type3(() => Number)
|
|
7654
7660
|
], CreateJobViaAIDto.prototype, "expectedAnnualBudgetFrom", 2);
|
|
7655
7661
|
__decorateClass([
|
|
7656
|
-
|
|
7662
|
+
IsOptional24()
|
|
7657
7663
|
], CreateJobViaAIDto.prototype, "hideExpectedAnnualBudgetFrom", 2);
|
|
7658
7664
|
__decorateClass([
|
|
7659
|
-
|
|
7665
|
+
IsOptional24(),
|
|
7660
7666
|
IsNumber4({}, { message: "Expected annual budget (to) must be a number" }),
|
|
7661
7667
|
Min2(0, { message: "Expected annual budget (to) cannot be negative" }),
|
|
7662
7668
|
Type3(() => Number)
|
|
7663
7669
|
], CreateJobViaAIDto.prototype, "expectedAnnualBudgetTo", 2);
|
|
7664
7670
|
__decorateClass([
|
|
7665
|
-
|
|
7671
|
+
IsOptional24()
|
|
7666
7672
|
], CreateJobViaAIDto.prototype, "hideExpectedAnnualBudgetTo", 2);
|
|
7667
7673
|
__decorateClass([
|
|
7668
|
-
|
|
7674
|
+
IsOptional24()
|
|
7669
7675
|
], CreateJobViaAIDto.prototype, "years", 2);
|
|
7670
7676
|
__decorateClass([
|
|
7671
|
-
|
|
7677
|
+
IsOptional24()
|
|
7672
7678
|
], CreateJobViaAIDto.prototype, "months", 2);
|
|
7673
7679
|
__decorateClass([
|
|
7674
|
-
|
|
7680
|
+
IsOptional24()
|
|
7675
7681
|
], CreateJobViaAIDto.prototype, "weeks", 2);
|
|
7676
7682
|
__decorateClass([
|
|
7677
|
-
|
|
7683
|
+
IsOptional24()
|
|
7678
7684
|
], CreateJobViaAIDto.prototype, "days", 2);
|
|
7679
7685
|
__decorateClass([
|
|
7680
|
-
|
|
7686
|
+
IsOptional24(),
|
|
7681
7687
|
IsNumber4({}, { message: "Number of hours must be a number" }),
|
|
7682
7688
|
Min2(0, { message: "Number of hours cannot be negative" }),
|
|
7683
7689
|
Max2(40, { message: "Number of hours cannot exceed 40" }),
|
|
@@ -7686,10 +7692,10 @@ __decorateClass([
|
|
|
7686
7692
|
__decorateClass([
|
|
7687
7693
|
ValidateIf4((o) => !o.isDraft),
|
|
7688
7694
|
IsString25({ message: "Candidate communication skills must be a string" }),
|
|
7689
|
-
|
|
7695
|
+
IsOptional24()
|
|
7690
7696
|
], CreateJobViaAIDto.prototype, "candidateCommunicationSkills", 2);
|
|
7691
7697
|
__decorateClass([
|
|
7692
|
-
|
|
7698
|
+
IsOptional24(),
|
|
7693
7699
|
IsString25({ message: "Academic qualification must be a string" })
|
|
7694
7700
|
], CreateJobViaAIDto.prototype, "academicQualification", 2);
|
|
7695
7701
|
__decorateClass([
|
|
@@ -7703,11 +7709,11 @@ __decorateClass([
|
|
|
7703
7709
|
IsString25({ message: "Years of experience must be a string" })
|
|
7704
7710
|
], CreateJobViaAIDto.prototype, "yearsOfExperienceTo", 2);
|
|
7705
7711
|
__decorateClass([
|
|
7706
|
-
|
|
7712
|
+
IsOptional24(),
|
|
7707
7713
|
IsString25({ message: "Business industry must be a string" })
|
|
7708
7714
|
], CreateJobViaAIDto.prototype, "businessIndustry", 2);
|
|
7709
7715
|
__decorateClass([
|
|
7710
|
-
|
|
7716
|
+
IsOptional24(),
|
|
7711
7717
|
IsEnum16(StepCompletedEnumV2, {
|
|
7712
7718
|
message: `Type of stepCompleted must be one of: ${Object.values(
|
|
7713
7719
|
StepCompletedEnumV2
|
|
@@ -7715,7 +7721,7 @@ __decorateClass([
|
|
|
7715
7721
|
})
|
|
7716
7722
|
], CreateJobViaAIDto.prototype, "stepCompleted", 2);
|
|
7717
7723
|
__decorateClass([
|
|
7718
|
-
|
|
7724
|
+
IsOptional24(),
|
|
7719
7725
|
IsString25({ message: "Additional comment must be a string" }),
|
|
7720
7726
|
MaxLength9(500, { message: "Additional comment must not exceed 500 characters" })
|
|
7721
7727
|
], CreateJobViaAIDto.prototype, "additionalComment", 2);
|
|
@@ -7725,7 +7731,7 @@ __decorateClass([
|
|
|
7725
7731
|
MaxLength9(5e3, { message: "Description must not exceed 5000 characters" })
|
|
7726
7732
|
], CreateJobViaAIDto.prototype, "description", 2);
|
|
7727
7733
|
__decorateClass([
|
|
7728
|
-
|
|
7734
|
+
IsOptional24()
|
|
7729
7735
|
], CreateJobViaAIDto.prototype, "dealBreakers", 2);
|
|
7730
7736
|
|
|
7731
7737
|
// src/modules/job/dto/job-status.dto.ts
|
|
@@ -7765,7 +7771,7 @@ import {
|
|
|
7765
7771
|
IsArray as IsArray4,
|
|
7766
7772
|
ArrayNotEmpty as ArrayNotEmpty3,
|
|
7767
7773
|
IsNumber as IsNumber5,
|
|
7768
|
-
IsOptional as
|
|
7774
|
+
IsOptional as IsOptional25,
|
|
7769
7775
|
IsEnum as IsEnum18,
|
|
7770
7776
|
Min as Min3,
|
|
7771
7777
|
ValidateIf as ValidateIf5,
|
|
@@ -7801,29 +7807,29 @@ var BillingCycleEnumV22 = /* @__PURE__ */ ((BillingCycleEnumV24) => {
|
|
|
7801
7807
|
var JobLocationDto2 = class {
|
|
7802
7808
|
};
|
|
7803
7809
|
__decorateClass([
|
|
7804
|
-
|
|
7810
|
+
IsOptional25(),
|
|
7805
7811
|
Type4(() => Number)
|
|
7806
7812
|
], JobLocationDto2.prototype, "countryId", 2);
|
|
7807
7813
|
__decorateClass([
|
|
7808
|
-
|
|
7814
|
+
IsOptional25(),
|
|
7809
7815
|
Type4(() => Number)
|
|
7810
7816
|
], JobLocationDto2.prototype, "stateId", 2);
|
|
7811
7817
|
__decorateClass([
|
|
7812
|
-
|
|
7818
|
+
IsOptional25(),
|
|
7813
7819
|
Type4(() => Number)
|
|
7814
7820
|
], JobLocationDto2.prototype, "cityId", 2);
|
|
7815
7821
|
__decorateClass([
|
|
7816
|
-
|
|
7822
|
+
IsOptional25(),
|
|
7817
7823
|
IsString26({ message: "Country name must be a string" }),
|
|
7818
7824
|
MaxLength10(255, { message: "Country name must not exceed 255 characters" })
|
|
7819
7825
|
], JobLocationDto2.prototype, "countryName", 2);
|
|
7820
7826
|
__decorateClass([
|
|
7821
|
-
|
|
7827
|
+
IsOptional25(),
|
|
7822
7828
|
IsString26({ message: "State name must be a string" }),
|
|
7823
7829
|
MaxLength10(255, { message: "State name must not exceed 255 characters" })
|
|
7824
7830
|
], JobLocationDto2.prototype, "stateName", 2);
|
|
7825
7831
|
__decorateClass([
|
|
7826
|
-
|
|
7832
|
+
IsOptional25(),
|
|
7827
7833
|
IsString26({ message: "City name must be a string" }),
|
|
7828
7834
|
MaxLength10(255, { message: "City name must not exceed 255 characters" })
|
|
7829
7835
|
], JobLocationDto2.prototype, "cityName", 2);
|
|
@@ -7833,7 +7839,7 @@ var JobBasicInformationV2Dto = class {
|
|
|
7833
7839
|
}
|
|
7834
7840
|
};
|
|
7835
7841
|
__decorateClass([
|
|
7836
|
-
|
|
7842
|
+
IsOptional25(),
|
|
7837
7843
|
Type4(() => Boolean)
|
|
7838
7844
|
], JobBasicInformationV2Dto.prototype, "isDraft", 2);
|
|
7839
7845
|
__decorateClass([
|
|
@@ -7841,19 +7847,19 @@ __decorateClass([
|
|
|
7841
7847
|
IsString26({ message: "Job role must be a string" })
|
|
7842
7848
|
], JobBasicInformationV2Dto.prototype, "jobRole", 2);
|
|
7843
7849
|
__decorateClass([
|
|
7844
|
-
|
|
7850
|
+
IsOptional25()
|
|
7845
7851
|
], JobBasicInformationV2Dto.prototype, "jobRoleCanonicalName", 2);
|
|
7846
7852
|
__decorateClass([
|
|
7847
|
-
|
|
7853
|
+
IsOptional25(),
|
|
7848
7854
|
IsString26({ message: "Project name must be a string" })
|
|
7849
7855
|
], JobBasicInformationV2Dto.prototype, "projectName", 2);
|
|
7850
7856
|
__decorateClass([
|
|
7851
|
-
|
|
7857
|
+
IsOptional25(),
|
|
7852
7858
|
IsString26({ message: "Note must be a string" })
|
|
7853
7859
|
], JobBasicInformationV2Dto.prototype, "note", 2);
|
|
7854
7860
|
__decorateClass([
|
|
7855
7861
|
ValidateIf5((o) => !o.isDraft),
|
|
7856
|
-
|
|
7862
|
+
IsOptional25(),
|
|
7857
7863
|
IsArray4({ message: "Skills must be an array" }),
|
|
7858
7864
|
ArrayNotEmpty3({ message: "Please select at least one skill" }),
|
|
7859
7865
|
IsString26({ each: true, message: "Each skill must be a string" }),
|
|
@@ -7863,7 +7869,7 @@ __decorateClass([
|
|
|
7863
7869
|
ValidateIf5((o) => !o.isDraft),
|
|
7864
7870
|
IsArray4({ message: "Good to have skills must be an array" }),
|
|
7865
7871
|
IsString26({ each: true, message: "Each skill must be a string" }),
|
|
7866
|
-
|
|
7872
|
+
IsOptional25(),
|
|
7867
7873
|
Type4(() => String)
|
|
7868
7874
|
], JobBasicInformationV2Dto.prototype, "goodToHaveSkills", 2);
|
|
7869
7875
|
__decorateClass([
|
|
@@ -7881,7 +7887,7 @@ __decorateClass([
|
|
|
7881
7887
|
})
|
|
7882
7888
|
], JobBasicInformationV2Dto.prototype, "locationMode", 2);
|
|
7883
7889
|
__decorateClass([
|
|
7884
|
-
|
|
7890
|
+
IsOptional25(),
|
|
7885
7891
|
Type4(() => JobLocationDto2)
|
|
7886
7892
|
], JobBasicInformationV2Dto.prototype, "locations", 2);
|
|
7887
7893
|
__decorateClass([
|
|
@@ -7893,7 +7899,7 @@ __decorateClass([
|
|
|
7893
7899
|
})
|
|
7894
7900
|
], JobBasicInformationV2Dto.prototype, "typeOfEmployment", 2);
|
|
7895
7901
|
__decorateClass([
|
|
7896
|
-
|
|
7902
|
+
IsOptional25(),
|
|
7897
7903
|
IsEnum18(BillingCycleEnumV22, {
|
|
7898
7904
|
message: `Billing cycle must be one of: ${Object.values(BillingCycleEnumV22).join(", ")}`
|
|
7899
7905
|
})
|
|
@@ -7909,7 +7915,7 @@ __decorateClass([
|
|
|
7909
7915
|
Type4(() => Number)
|
|
7910
7916
|
], JobBasicInformationV2Dto.prototype, "expectedSalaryFrom", 2);
|
|
7911
7917
|
__decorateClass([
|
|
7912
|
-
|
|
7918
|
+
IsOptional25()
|
|
7913
7919
|
], JobBasicInformationV2Dto.prototype, "hideExpectedSalaryFrom", 2);
|
|
7914
7920
|
__decorateClass([
|
|
7915
7921
|
ValidateIf5((o) => !o.isDraft),
|
|
@@ -7918,40 +7924,40 @@ __decorateClass([
|
|
|
7918
7924
|
Type4(() => Number)
|
|
7919
7925
|
], JobBasicInformationV2Dto.prototype, "expectedSalaryTo", 2);
|
|
7920
7926
|
__decorateClass([
|
|
7921
|
-
|
|
7927
|
+
IsOptional25()
|
|
7922
7928
|
], JobBasicInformationV2Dto.prototype, "hideExpectedSalaryTo", 2);
|
|
7923
7929
|
__decorateClass([
|
|
7924
|
-
|
|
7930
|
+
IsOptional25(),
|
|
7925
7931
|
IsNumber5({}, { message: "Expected annual budget (from) must be a number" }),
|
|
7926
7932
|
Min3(0, { message: "Expected annual budget (from) cannot be negative" }),
|
|
7927
7933
|
Type4(() => Number)
|
|
7928
7934
|
], JobBasicInformationV2Dto.prototype, "expectedAnnualBudgetFrom", 2);
|
|
7929
7935
|
__decorateClass([
|
|
7930
|
-
|
|
7936
|
+
IsOptional25()
|
|
7931
7937
|
], JobBasicInformationV2Dto.prototype, "hideExpectedAnnualBudgetFrom", 2);
|
|
7932
7938
|
__decorateClass([
|
|
7933
|
-
|
|
7939
|
+
IsOptional25(),
|
|
7934
7940
|
IsNumber5({}, { message: "Expected annual budget (to) must be a number" }),
|
|
7935
7941
|
Min3(0, { message: "Expected annual budget (to) cannot be negative" }),
|
|
7936
7942
|
Type4(() => Number)
|
|
7937
7943
|
], JobBasicInformationV2Dto.prototype, "expectedAnnualBudgetTo", 2);
|
|
7938
7944
|
__decorateClass([
|
|
7939
|
-
|
|
7945
|
+
IsOptional25()
|
|
7940
7946
|
], JobBasicInformationV2Dto.prototype, "hideExpectedAnnualBudgetTo", 2);
|
|
7941
7947
|
__decorateClass([
|
|
7942
|
-
|
|
7948
|
+
IsOptional25()
|
|
7943
7949
|
], JobBasicInformationV2Dto.prototype, "years", 2);
|
|
7944
7950
|
__decorateClass([
|
|
7945
|
-
|
|
7951
|
+
IsOptional25()
|
|
7946
7952
|
], JobBasicInformationV2Dto.prototype, "months", 2);
|
|
7947
7953
|
__decorateClass([
|
|
7948
|
-
|
|
7954
|
+
IsOptional25()
|
|
7949
7955
|
], JobBasicInformationV2Dto.prototype, "weeks", 2);
|
|
7950
7956
|
__decorateClass([
|
|
7951
|
-
|
|
7957
|
+
IsOptional25()
|
|
7952
7958
|
], JobBasicInformationV2Dto.prototype, "days", 2);
|
|
7953
7959
|
__decorateClass([
|
|
7954
|
-
|
|
7960
|
+
IsOptional25(),
|
|
7955
7961
|
IsNumber5({}, { message: "Number of hours must be a number" }),
|
|
7956
7962
|
Min3(0, { message: "Number of hours cannot be negative" }),
|
|
7957
7963
|
Max3(40, { message: "Number of hours cannot exceed 40" }),
|
|
@@ -7960,10 +7966,10 @@ __decorateClass([
|
|
|
7960
7966
|
__decorateClass([
|
|
7961
7967
|
ValidateIf5((o) => !o.isDraft),
|
|
7962
7968
|
IsString26({ message: "Candidate communication skills must be a string" }),
|
|
7963
|
-
|
|
7969
|
+
IsOptional25()
|
|
7964
7970
|
], JobBasicInformationV2Dto.prototype, "candidateCommunicationSkills", 2);
|
|
7965
7971
|
__decorateClass([
|
|
7966
|
-
|
|
7972
|
+
IsOptional25(),
|
|
7967
7973
|
IsString26({ message: "Academic qualification must be a string" })
|
|
7968
7974
|
], JobBasicInformationV2Dto.prototype, "academicQualification", 2);
|
|
7969
7975
|
__decorateClass([
|
|
@@ -7977,11 +7983,11 @@ __decorateClass([
|
|
|
7977
7983
|
IsString26({ message: "Years of experience must be a string" })
|
|
7978
7984
|
], JobBasicInformationV2Dto.prototype, "yearsOfExperienceTo", 2);
|
|
7979
7985
|
__decorateClass([
|
|
7980
|
-
|
|
7986
|
+
IsOptional25(),
|
|
7981
7987
|
IsString26({ message: "Business industry must be a string" })
|
|
7982
7988
|
], JobBasicInformationV2Dto.prototype, "businessIndustry", 2);
|
|
7983
7989
|
__decorateClass([
|
|
7984
|
-
|
|
7990
|
+
IsOptional25(),
|
|
7985
7991
|
IsEnum18(StepCompletedEnumV22, {
|
|
7986
7992
|
message: `Type of stepCompleted must be one of: ${Object.values(
|
|
7987
7993
|
StepCompletedEnumV22
|
|
@@ -7989,22 +7995,22 @@ __decorateClass([
|
|
|
7989
7995
|
})
|
|
7990
7996
|
], JobBasicInformationV2Dto.prototype, "stepCompleted", 2);
|
|
7991
7997
|
__decorateClass([
|
|
7992
|
-
|
|
7998
|
+
IsOptional25(),
|
|
7993
7999
|
IsString26({ message: "Additional comment must be a string" }),
|
|
7994
8000
|
MaxLength10(500, { message: "Additional comment must not exceed 500 characters" })
|
|
7995
8001
|
], JobBasicInformationV2Dto.prototype, "additionalComment", 2);
|
|
7996
8002
|
|
|
7997
8003
|
// src/modules/job/dto/close-job.dto.ts
|
|
7998
|
-
import { IsOptional as
|
|
8004
|
+
import { IsOptional as IsOptional26, IsString as IsString27 } from "class-validator";
|
|
7999
8005
|
var CloseJobDto = class {
|
|
8000
8006
|
};
|
|
8001
8007
|
__decorateClass([
|
|
8002
|
-
|
|
8008
|
+
IsOptional26(),
|
|
8003
8009
|
IsString27()
|
|
8004
8010
|
], CloseJobDto.prototype, "reason", 2);
|
|
8005
8011
|
|
|
8006
8012
|
// src/modules/job/dto/create-job-application.dto.ts
|
|
8007
|
-
import { IsBoolean as IsBoolean3, IsNotEmpty as IsNotEmpty48, IsOptional as
|
|
8013
|
+
import { IsBoolean as IsBoolean3, IsNotEmpty as IsNotEmpty48, IsOptional as IsOptional27, IsString as IsString28 } from "class-validator";
|
|
8008
8014
|
var CreateJobApplicationDto = class {
|
|
8009
8015
|
};
|
|
8010
8016
|
__decorateClass([
|
|
@@ -8012,7 +8018,7 @@ __decorateClass([
|
|
|
8012
8018
|
IsString28({ message: "Job ID must be a string" })
|
|
8013
8019
|
], CreateJobApplicationDto.prototype, "jobId", 2);
|
|
8014
8020
|
__decorateClass([
|
|
8015
|
-
|
|
8021
|
+
IsOptional27(),
|
|
8016
8022
|
IsBoolean3({ message: "isCta must be a boolean" })
|
|
8017
8023
|
], CreateJobApplicationDto.prototype, "isCta", 2);
|
|
8018
8024
|
|
|
@@ -8121,7 +8127,7 @@ __decorateClass([
|
|
|
8121
8127
|
|
|
8122
8128
|
// src/modules/user/freelancer-profile/dto/update-freelancer-profile.dto.ts
|
|
8123
8129
|
import {
|
|
8124
|
-
IsOptional as
|
|
8130
|
+
IsOptional as IsOptional28,
|
|
8125
8131
|
IsString as IsString30,
|
|
8126
8132
|
IsEmail as IsEmail7,
|
|
8127
8133
|
IsNumber as IsNumber7,
|
|
@@ -8149,7 +8155,7 @@ __decorateClass([
|
|
|
8149
8155
|
IsString30({ message: "Please enter valid first name." })
|
|
8150
8156
|
], UpdateFreelancerProfileDto.prototype, "firstName", 2);
|
|
8151
8157
|
__decorateClass([
|
|
8152
|
-
|
|
8158
|
+
IsOptional28(),
|
|
8153
8159
|
IsNotEmpty52({ message: "Please enter last name." }),
|
|
8154
8160
|
IsString30({ message: "Please enter valid last name." })
|
|
8155
8161
|
], UpdateFreelancerProfileDto.prototype, "lastName", 2);
|
|
@@ -8174,15 +8180,15 @@ __decorateClass([
|
|
|
8174
8180
|
IsString30({ message: "Please enter valid mobile number." })
|
|
8175
8181
|
], UpdateFreelancerProfileDto.prototype, "mobile", 2);
|
|
8176
8182
|
__decorateClass([
|
|
8177
|
-
|
|
8183
|
+
IsOptional28(),
|
|
8178
8184
|
IsNumber7()
|
|
8179
8185
|
], UpdateFreelancerProfileDto.prototype, "countryId", 2);
|
|
8180
8186
|
__decorateClass([
|
|
8181
|
-
|
|
8187
|
+
IsOptional28(),
|
|
8182
8188
|
IsNumber7()
|
|
8183
8189
|
], UpdateFreelancerProfileDto.prototype, "stateId", 2);
|
|
8184
8190
|
__decorateClass([
|
|
8185
|
-
|
|
8191
|
+
IsOptional28(),
|
|
8186
8192
|
IsNumber7()
|
|
8187
8193
|
], UpdateFreelancerProfileDto.prototype, "cityId", 2);
|
|
8188
8194
|
//@IsString({ message: "Please enter valid expected hourly compensation." })
|
|
@@ -8216,7 +8222,7 @@ __decorateClass([
|
|
|
8216
8222
|
})
|
|
8217
8223
|
], UpdateFreelancerProfileDto.prototype, "modeOfWork", 2);
|
|
8218
8224
|
__decorateClass([
|
|
8219
|
-
|
|
8225
|
+
IsOptional28(),
|
|
8220
8226
|
IsString30()
|
|
8221
8227
|
], UpdateFreelancerProfileDto.prototype, "portfolioLink", 2);
|
|
8222
8228
|
__decorateClass([
|
|
@@ -8224,7 +8230,7 @@ __decorateClass([
|
|
|
8224
8230
|
IsString30()
|
|
8225
8231
|
], UpdateFreelancerProfileDto.prototype, "address", 2);
|
|
8226
8232
|
__decorateClass([
|
|
8227
|
-
|
|
8233
|
+
IsOptional28(),
|
|
8228
8234
|
IsString30()
|
|
8229
8235
|
], UpdateFreelancerProfileDto.prototype, "addressLine", 2);
|
|
8230
8236
|
__decorateClass([
|
|
@@ -8232,27 +8238,27 @@ __decorateClass([
|
|
|
8232
8238
|
IsString30()
|
|
8233
8239
|
], UpdateFreelancerProfileDto.prototype, "postalCode", 2);
|
|
8234
8240
|
__decorateClass([
|
|
8235
|
-
|
|
8241
|
+
IsOptional28(),
|
|
8236
8242
|
IsString30()
|
|
8237
8243
|
], UpdateFreelancerProfileDto.prototype, "about", 2);
|
|
8238
8244
|
__decorateClass([
|
|
8239
|
-
|
|
8245
|
+
IsOptional28(),
|
|
8240
8246
|
IsString30()
|
|
8241
8247
|
], UpdateFreelancerProfileDto.prototype, "linkedinProfileLink", 2);
|
|
8242
8248
|
__decorateClass([
|
|
8243
|
-
|
|
8249
|
+
IsOptional28(),
|
|
8244
8250
|
IsString30()
|
|
8245
8251
|
], UpdateFreelancerProfileDto.prototype, "kaggleProfileLink", 2);
|
|
8246
8252
|
__decorateClass([
|
|
8247
|
-
|
|
8253
|
+
IsOptional28(),
|
|
8248
8254
|
IsString30()
|
|
8249
8255
|
], UpdateFreelancerProfileDto.prototype, "githubProfileLink", 2);
|
|
8250
8256
|
__decorateClass([
|
|
8251
|
-
|
|
8257
|
+
IsOptional28(),
|
|
8252
8258
|
IsString30()
|
|
8253
8259
|
], UpdateFreelancerProfileDto.prototype, "stackOverflowProfileLink", 2);
|
|
8254
8260
|
__decorateClass([
|
|
8255
|
-
|
|
8261
|
+
IsOptional28(),
|
|
8256
8262
|
IsString30()
|
|
8257
8263
|
], UpdateFreelancerProfileDto.prototype, "resumeUrl", 2);
|
|
8258
8264
|
|
|
@@ -8275,7 +8281,7 @@ __decorateClass([
|
|
|
8275
8281
|
], FetchClientInfoForChatDto.prototype, "clientId", 2);
|
|
8276
8282
|
|
|
8277
8283
|
// src/modules/user/freelancer-profile/dto/capture-ai-assessment-result.dto.ts
|
|
8278
|
-
import { IsNotEmpty as IsNotEmpty55, IsString as IsString31, IsOptional as
|
|
8284
|
+
import { IsNotEmpty as IsNotEmpty55, IsString as IsString31, IsOptional as IsOptional29, IsObject as IsObject4 } from "class-validator";
|
|
8279
8285
|
var CaptureAiAssessmentResultDto = class {
|
|
8280
8286
|
};
|
|
8281
8287
|
__decorateClass([
|
|
@@ -8283,11 +8289,11 @@ __decorateClass([
|
|
|
8283
8289
|
IsString31({ message: "AI Assessment UUID must be a string" })
|
|
8284
8290
|
], CaptureAiAssessmentResultDto.prototype, "aiAssessmentUuid", 2);
|
|
8285
8291
|
__decorateClass([
|
|
8286
|
-
|
|
8292
|
+
IsOptional29(),
|
|
8287
8293
|
IsObject4()
|
|
8288
8294
|
], CaptureAiAssessmentResultDto.prototype, "result", 2);
|
|
8289
8295
|
__decorateClass([
|
|
8290
|
-
|
|
8296
|
+
IsOptional29(),
|
|
8291
8297
|
IsString31()
|
|
8292
8298
|
], CaptureAiAssessmentResultDto.prototype, "status", 2);
|
|
8293
8299
|
|
|
@@ -8350,7 +8356,7 @@ var BANK_PATTERN = {
|
|
|
8350
8356
|
import {
|
|
8351
8357
|
IsEnum as IsEnum22,
|
|
8352
8358
|
IsNotEmpty as IsNotEmpty58,
|
|
8353
|
-
IsOptional as
|
|
8359
|
+
IsOptional as IsOptional30,
|
|
8354
8360
|
IsString as IsString34,
|
|
8355
8361
|
ValidateIf as ValidateIf7
|
|
8356
8362
|
} from "class-validator";
|
|
@@ -8374,7 +8380,7 @@ __decorateClass([
|
|
|
8374
8380
|
IsNotEmpty58({ message: "Please enter Email." })
|
|
8375
8381
|
], FreelancerBankDetailsDto.prototype, "email", 2);
|
|
8376
8382
|
__decorateClass([
|
|
8377
|
-
|
|
8383
|
+
IsOptional30()
|
|
8378
8384
|
], FreelancerBankDetailsDto.prototype, "address", 2);
|
|
8379
8385
|
__decorateClass([
|
|
8380
8386
|
IsNotEmpty58({ message: "Please enter Account Number." })
|
|
@@ -8383,7 +8389,7 @@ __decorateClass([
|
|
|
8383
8389
|
IsNotEmpty58({ message: "Please enter Bank Name." })
|
|
8384
8390
|
], FreelancerBankDetailsDto.prototype, "bankName", 2);
|
|
8385
8391
|
__decorateClass([
|
|
8386
|
-
|
|
8392
|
+
IsOptional30(),
|
|
8387
8393
|
IsString34()
|
|
8388
8394
|
], FreelancerBankDetailsDto.prototype, "branchName", 2);
|
|
8389
8395
|
__decorateClass([
|
|
@@ -8403,7 +8409,7 @@ __decorateClass([
|
|
|
8403
8409
|
IsNotEmpty58({ message: "IBAN is required for INTERNATIONAL accounts." })
|
|
8404
8410
|
], FreelancerBankDetailsDto.prototype, "iban", 2);
|
|
8405
8411
|
__decorateClass([
|
|
8406
|
-
|
|
8412
|
+
IsOptional30()
|
|
8407
8413
|
], FreelancerBankDetailsDto.prototype, "accountType", 2);
|
|
8408
8414
|
__decorateClass([
|
|
8409
8415
|
IsEnum22(BankAccountScope, {
|
|
@@ -8535,27 +8541,27 @@ var EMAIL_PATTERN = {
|
|
|
8535
8541
|
};
|
|
8536
8542
|
|
|
8537
8543
|
// src/modules/notification/dto/test-notification.dto.ts
|
|
8538
|
-
import { IsOptional as
|
|
8544
|
+
import { IsOptional as IsOptional31, IsString as IsString37, IsObject as IsObject5, IsEmail as IsEmail8, IsPhoneNumber } from "class-validator";
|
|
8539
8545
|
var TestNotificationDto = class {
|
|
8540
8546
|
};
|
|
8541
8547
|
__decorateClass([
|
|
8542
|
-
|
|
8548
|
+
IsOptional31(),
|
|
8543
8549
|
IsEmail8({}, { message: "Email must be valid" })
|
|
8544
8550
|
], TestNotificationDto.prototype, "email", 2);
|
|
8545
8551
|
__decorateClass([
|
|
8546
|
-
|
|
8552
|
+
IsOptional31(),
|
|
8547
8553
|
IsPhoneNumber()
|
|
8548
8554
|
], TestNotificationDto.prototype, "phone", 2);
|
|
8549
8555
|
__decorateClass([
|
|
8550
|
-
|
|
8556
|
+
IsOptional31(),
|
|
8551
8557
|
IsString37()
|
|
8552
8558
|
], TestNotificationDto.prototype, "message", 2);
|
|
8553
8559
|
__decorateClass([
|
|
8554
|
-
|
|
8560
|
+
IsOptional31(),
|
|
8555
8561
|
IsObject5()
|
|
8556
8562
|
], TestNotificationDto.prototype, "data", 2);
|
|
8557
8563
|
__decorateClass([
|
|
8558
|
-
|
|
8564
|
+
IsOptional31(),
|
|
8559
8565
|
IsString37()
|
|
8560
8566
|
], TestNotificationDto.prototype, "type", 2);
|
|
8561
8567
|
|
|
@@ -8571,7 +8577,7 @@ import {
|
|
|
8571
8577
|
IsEnum as IsEnum24,
|
|
8572
8578
|
IsInt as IsInt2,
|
|
8573
8579
|
IsNotEmpty as IsNotEmpty61,
|
|
8574
|
-
IsOptional as
|
|
8580
|
+
IsOptional as IsOptional32,
|
|
8575
8581
|
IsString as IsString38,
|
|
8576
8582
|
IsNumber as IsNumber9,
|
|
8577
8583
|
Min as Min4,
|
|
@@ -8580,11 +8586,11 @@ import {
|
|
|
8580
8586
|
var CreateRatingDto = class {
|
|
8581
8587
|
};
|
|
8582
8588
|
__decorateClass([
|
|
8583
|
-
|
|
8589
|
+
IsOptional32(),
|
|
8584
8590
|
IsInt2({ message: "Reviewee ID must be a valid integer" })
|
|
8585
8591
|
], CreateRatingDto.prototype, "revieweeId", 2);
|
|
8586
8592
|
__decorateClass([
|
|
8587
|
-
|
|
8593
|
+
IsOptional32(),
|
|
8588
8594
|
IsInt2({ message: "Reviewer ID must be a valid integer" })
|
|
8589
8595
|
], CreateRatingDto.prototype, "reviewerId", 2);
|
|
8590
8596
|
__decorateClass([
|
|
@@ -8597,71 +8603,71 @@ __decorateClass([
|
|
|
8597
8603
|
})
|
|
8598
8604
|
], CreateRatingDto.prototype, "ratingType", 2);
|
|
8599
8605
|
__decorateClass([
|
|
8600
|
-
|
|
8606
|
+
IsOptional32(),
|
|
8601
8607
|
IsString38({ message: "Reviewer comment must be a string" })
|
|
8602
8608
|
], CreateRatingDto.prototype, "reviewerComment", 2);
|
|
8603
8609
|
__decorateClass([
|
|
8604
|
-
|
|
8610
|
+
IsOptional32(),
|
|
8605
8611
|
IsNumber9(),
|
|
8606
8612
|
Min4(0),
|
|
8607
8613
|
Max4(5)
|
|
8608
8614
|
], CreateRatingDto.prototype, "overallExperience", 2);
|
|
8609
8615
|
__decorateClass([
|
|
8610
|
-
|
|
8616
|
+
IsOptional32(),
|
|
8611
8617
|
IsNumber9(),
|
|
8612
8618
|
Min4(0),
|
|
8613
8619
|
Max4(5)
|
|
8614
8620
|
], CreateRatingDto.prototype, "workQuality", 2);
|
|
8615
8621
|
__decorateClass([
|
|
8616
|
-
|
|
8622
|
+
IsOptional32(),
|
|
8617
8623
|
IsNumber9(),
|
|
8618
8624
|
Min4(0),
|
|
8619
8625
|
Max4(5)
|
|
8620
8626
|
], CreateRatingDto.prototype, "oneTimeDelivery", 2);
|
|
8621
8627
|
__decorateClass([
|
|
8622
|
-
|
|
8628
|
+
IsOptional32(),
|
|
8623
8629
|
IsNumber9(),
|
|
8624
8630
|
Min4(0),
|
|
8625
8631
|
Max4(5)
|
|
8626
8632
|
], CreateRatingDto.prototype, "understaning", 2);
|
|
8627
8633
|
__decorateClass([
|
|
8628
|
-
|
|
8634
|
+
IsOptional32(),
|
|
8629
8635
|
IsNumber9(),
|
|
8630
8636
|
Min4(0),
|
|
8631
8637
|
Max4(5)
|
|
8632
8638
|
], CreateRatingDto.prototype, "communication", 2);
|
|
8633
8639
|
__decorateClass([
|
|
8634
|
-
|
|
8640
|
+
IsOptional32(),
|
|
8635
8641
|
IsNumber9(),
|
|
8636
8642
|
Min4(0),
|
|
8637
8643
|
Max4(5)
|
|
8638
8644
|
], CreateRatingDto.prototype, "skillUtilized", 2);
|
|
8639
8645
|
__decorateClass([
|
|
8640
|
-
|
|
8646
|
+
IsOptional32(),
|
|
8641
8647
|
IsNumber9(),
|
|
8642
8648
|
Min4(0),
|
|
8643
8649
|
Max4(5)
|
|
8644
8650
|
], CreateRatingDto.prototype, "communicationClarity", 2);
|
|
8645
8651
|
__decorateClass([
|
|
8646
|
-
|
|
8652
|
+
IsOptional32(),
|
|
8647
8653
|
IsNumber9(),
|
|
8648
8654
|
Min4(0),
|
|
8649
8655
|
Max4(5)
|
|
8650
8656
|
], CreateRatingDto.prototype, "requirementsClarity", 2);
|
|
8651
8657
|
__decorateClass([
|
|
8652
|
-
|
|
8658
|
+
IsOptional32(),
|
|
8653
8659
|
IsNumber9(),
|
|
8654
8660
|
Min4(0),
|
|
8655
8661
|
Max4(5)
|
|
8656
8662
|
], CreateRatingDto.prototype, "responsiveness", 2);
|
|
8657
8663
|
__decorateClass([
|
|
8658
|
-
|
|
8664
|
+
IsOptional32(),
|
|
8659
8665
|
IsNumber9(),
|
|
8660
8666
|
Min4(0),
|
|
8661
8667
|
Max4(5)
|
|
8662
8668
|
], CreateRatingDto.prototype, "paymentPromptness", 2);
|
|
8663
8669
|
__decorateClass([
|
|
8664
|
-
|
|
8670
|
+
IsOptional32(),
|
|
8665
8671
|
IsNumber9(),
|
|
8666
8672
|
Min4(0),
|
|
8667
8673
|
Max4(5)
|
|
@@ -8680,7 +8686,7 @@ var COMPANY_ROLES_PATTERNS = {
|
|
|
8680
8686
|
};
|
|
8681
8687
|
|
|
8682
8688
|
// src/modules/company-role/dto/create-company-role.dto.ts
|
|
8683
|
-
import { ArrayNotEmpty as ArrayNotEmpty5, IsArray as IsArray6, IsBoolean as IsBoolean5, IsInt as IsInt3, IsNotEmpty as IsNotEmpty62, IsOptional as
|
|
8689
|
+
import { ArrayNotEmpty as ArrayNotEmpty5, IsArray as IsArray6, IsBoolean as IsBoolean5, IsInt as IsInt3, IsNotEmpty as IsNotEmpty62, IsOptional as IsOptional33 } from "class-validator";
|
|
8684
8690
|
var CreateCompanyRoleDto = class {
|
|
8685
8691
|
};
|
|
8686
8692
|
__decorateClass([
|
|
@@ -8698,12 +8704,12 @@ __decorateClass([
|
|
|
8698
8704
|
IsInt3({ each: true, message: "Each permission ID must be an integer." })
|
|
8699
8705
|
], CreateCompanyRoleDto.prototype, "permissionIds", 2);
|
|
8700
8706
|
__decorateClass([
|
|
8701
|
-
|
|
8707
|
+
IsOptional33(),
|
|
8702
8708
|
IsBoolean5({ message: "Is active must be a boolean value" })
|
|
8703
8709
|
], CreateCompanyRoleDto.prototype, "isActive", 2);
|
|
8704
8710
|
|
|
8705
8711
|
// src/modules/company-role/dto/update-company-role.dto.ts
|
|
8706
|
-
import { ArrayNotEmpty as ArrayNotEmpty6, IsArray as IsArray7, IsBoolean as IsBoolean6, IsInt as IsInt4, IsNotEmpty as IsNotEmpty63, IsOptional as
|
|
8712
|
+
import { ArrayNotEmpty as ArrayNotEmpty6, IsArray as IsArray7, IsBoolean as IsBoolean6, IsInt as IsInt4, IsNotEmpty as IsNotEmpty63, IsOptional as IsOptional34 } from "class-validator";
|
|
8707
8713
|
var UpdateCompanyRoleDto = class {
|
|
8708
8714
|
};
|
|
8709
8715
|
__decorateClass([
|
|
@@ -8721,7 +8727,7 @@ __decorateClass([
|
|
|
8721
8727
|
IsInt4({ each: true, message: "Each permission ID must be an integer." })
|
|
8722
8728
|
], UpdateCompanyRoleDto.prototype, "permissionIds", 2);
|
|
8723
8729
|
__decorateClass([
|
|
8724
|
-
|
|
8730
|
+
IsOptional34(),
|
|
8725
8731
|
IsBoolean6({ message: "Is active must be a boolean value" })
|
|
8726
8732
|
], UpdateCompanyRoleDto.prototype, "isActive", 2);
|
|
8727
8733
|
|
|
@@ -8743,7 +8749,7 @@ var FREELANCER_EXPERIENCE_PATTERN = {
|
|
|
8743
8749
|
import {
|
|
8744
8750
|
ArrayMinSize,
|
|
8745
8751
|
IsNotEmpty as IsNotEmpty64,
|
|
8746
|
-
IsOptional as
|
|
8752
|
+
IsOptional as IsOptional35,
|
|
8747
8753
|
IsString as IsString41,
|
|
8748
8754
|
MaxLength as MaxLength14,
|
|
8749
8755
|
ValidateNested as ValidateNested3
|
|
@@ -8752,7 +8758,7 @@ import { Type as Type5 } from "class-transformer";
|
|
|
8752
8758
|
var ExperienceDto = class {
|
|
8753
8759
|
};
|
|
8754
8760
|
__decorateClass([
|
|
8755
|
-
|
|
8761
|
+
IsOptional35()
|
|
8756
8762
|
], ExperienceDto.prototype, "uuid", 2);
|
|
8757
8763
|
__decorateClass([
|
|
8758
8764
|
IsNotEmpty64(),
|
|
@@ -8767,7 +8773,7 @@ __decorateClass([
|
|
|
8767
8773
|
IsString41()
|
|
8768
8774
|
], ExperienceDto.prototype, "jobDuration", 2);
|
|
8769
8775
|
__decorateClass([
|
|
8770
|
-
|
|
8776
|
+
IsOptional35(),
|
|
8771
8777
|
IsString41(),
|
|
8772
8778
|
MaxLength14(5e3, { message: "Description must not exceed 5000 characters" })
|
|
8773
8779
|
], ExperienceDto.prototype, "description", 2);
|
|
@@ -8838,12 +8844,12 @@ var FREELANCER_EDUCATION_PATTERN = {
|
|
|
8838
8844
|
};
|
|
8839
8845
|
|
|
8840
8846
|
// src/modules/user/freelancer-education/dto/freelancer-education.dto.ts
|
|
8841
|
-
import { IsArray as IsArray10, ValidateNested as ValidateNested4, IsString as IsString44, IsNotEmpty as IsNotEmpty67, IsOptional as
|
|
8847
|
+
import { IsArray as IsArray10, ValidateNested as ValidateNested4, IsString as IsString44, IsNotEmpty as IsNotEmpty67, IsOptional as IsOptional38, ArrayMinSize as ArrayMinSize2 } from "class-validator";
|
|
8842
8848
|
import { Type as Type6 } from "class-transformer";
|
|
8843
8849
|
var EducationDto = class {
|
|
8844
8850
|
};
|
|
8845
8851
|
__decorateClass([
|
|
8846
|
-
|
|
8852
|
+
IsOptional38()
|
|
8847
8853
|
], EducationDto.prototype, "uuid", 2);
|
|
8848
8854
|
__decorateClass([
|
|
8849
8855
|
IsString44(),
|
|
@@ -8873,12 +8879,12 @@ var FREELANCER_PROJECT_PATTERN = {
|
|
|
8873
8879
|
};
|
|
8874
8880
|
|
|
8875
8881
|
// src/modules/user/freelancer-project/dto/freelancer-project.dto.ts
|
|
8876
|
-
import { IsArray as IsArray11, ValidateNested as ValidateNested5, IsString as IsString45, IsNotEmpty as IsNotEmpty68, IsOptional as
|
|
8882
|
+
import { IsArray as IsArray11, ValidateNested as ValidateNested5, IsString as IsString45, IsNotEmpty as IsNotEmpty68, IsOptional as IsOptional39, IsDateString, MaxLength as MaxLength16, ArrayMinSize as ArrayMinSize3 } from "class-validator";
|
|
8877
8883
|
import { Type as Type7 } from "class-transformer";
|
|
8878
8884
|
var ProjectDto = class {
|
|
8879
8885
|
};
|
|
8880
8886
|
__decorateClass([
|
|
8881
|
-
|
|
8887
|
+
IsOptional39()
|
|
8882
8888
|
], ProjectDto.prototype, "uuid", 2);
|
|
8883
8889
|
__decorateClass([
|
|
8884
8890
|
IsString45(),
|
|
@@ -8893,33 +8899,33 @@ __decorateClass([
|
|
|
8893
8899
|
IsNotEmpty68({ message: "Please Enter End Date " })
|
|
8894
8900
|
], ProjectDto.prototype, "endDate", 2);
|
|
8895
8901
|
__decorateClass([
|
|
8896
|
-
|
|
8902
|
+
IsOptional39(),
|
|
8897
8903
|
IsString45()
|
|
8898
8904
|
], ProjectDto.prototype, "clientName", 2);
|
|
8899
8905
|
__decorateClass([
|
|
8900
|
-
|
|
8906
|
+
IsOptional39(),
|
|
8901
8907
|
IsString45()
|
|
8902
8908
|
], ProjectDto.prototype, "gitLink", 2);
|
|
8903
8909
|
__decorateClass([
|
|
8904
|
-
|
|
8910
|
+
IsOptional39(),
|
|
8905
8911
|
IsString45(),
|
|
8906
8912
|
MaxLength16(5e3, { message: "Description must not exceed 5000 characters" })
|
|
8907
8913
|
], ProjectDto.prototype, "description", 2);
|
|
8908
8914
|
var CaseStudyDto = class {
|
|
8909
8915
|
};
|
|
8910
8916
|
__decorateClass([
|
|
8911
|
-
|
|
8917
|
+
IsOptional39()
|
|
8912
8918
|
], CaseStudyDto.prototype, "uuid", 2);
|
|
8913
8919
|
__decorateClass([
|
|
8914
8920
|
IsString45(),
|
|
8915
8921
|
IsNotEmpty68({ message: "Please Enter Project Name " })
|
|
8916
8922
|
], CaseStudyDto.prototype, "projectName", 2);
|
|
8917
8923
|
__decorateClass([
|
|
8918
|
-
|
|
8924
|
+
IsOptional39(),
|
|
8919
8925
|
IsString45()
|
|
8920
8926
|
], CaseStudyDto.prototype, "caseStudyLink", 2);
|
|
8921
8927
|
__decorateClass([
|
|
8922
|
-
|
|
8928
|
+
IsOptional39(),
|
|
8923
8929
|
IsString45(),
|
|
8924
8930
|
MaxLength16(5e3, { message: "Description must not exceed 5000 characters" })
|
|
8925
8931
|
], CaseStudyDto.prototype, "description", 2);
|
|
@@ -8950,7 +8956,7 @@ var FREELANCER_SKILL_PATTERN = {
|
|
|
8950
8956
|
};
|
|
8951
8957
|
|
|
8952
8958
|
// src/modules/user/freelancer-skill/dto/freelancer-skill.dto.ts
|
|
8953
|
-
import { IsArray as IsArray12, IsString as IsString46, IsOptional as
|
|
8959
|
+
import { IsArray as IsArray12, IsString as IsString46, IsOptional as IsOptional40 } from "class-validator";
|
|
8954
8960
|
import { Type as Type8 } from "class-transformer";
|
|
8955
8961
|
var FreelancerSkillDto = class {
|
|
8956
8962
|
constructor() {
|
|
@@ -8961,25 +8967,25 @@ var FreelancerSkillDto = class {
|
|
|
8961
8967
|
}
|
|
8962
8968
|
};
|
|
8963
8969
|
__decorateClass([
|
|
8964
|
-
|
|
8970
|
+
IsOptional40(),
|
|
8965
8971
|
IsArray12(),
|
|
8966
8972
|
Type8(() => String),
|
|
8967
8973
|
IsString46({ each: true })
|
|
8968
8974
|
], FreelancerSkillDto.prototype, "coreSkills", 2);
|
|
8969
8975
|
__decorateClass([
|
|
8970
|
-
|
|
8976
|
+
IsOptional40(),
|
|
8971
8977
|
IsArray12(),
|
|
8972
8978
|
Type8(() => String),
|
|
8973
8979
|
IsString46({ each: true })
|
|
8974
8980
|
], FreelancerSkillDto.prototype, "secondarySkills", 2);
|
|
8975
8981
|
__decorateClass([
|
|
8976
|
-
|
|
8982
|
+
IsOptional40(),
|
|
8977
8983
|
IsArray12(),
|
|
8978
8984
|
Type8(() => String),
|
|
8979
8985
|
IsString46({ each: true })
|
|
8980
8986
|
], FreelancerSkillDto.prototype, "tools", 2);
|
|
8981
8987
|
__decorateClass([
|
|
8982
|
-
|
|
8988
|
+
IsOptional40(),
|
|
8983
8989
|
IsArray12(),
|
|
8984
8990
|
Type8(() => String),
|
|
8985
8991
|
IsString46({ each: true })
|
|
@@ -9020,7 +9026,7 @@ import {
|
|
|
9020
9026
|
IsString as IsString47,
|
|
9021
9027
|
IsEmail as IsEmail13,
|
|
9022
9028
|
IsBoolean as IsBoolean11,
|
|
9023
|
-
IsOptional as
|
|
9029
|
+
IsOptional as IsOptional41,
|
|
9024
9030
|
IsEnum as IsEnum25,
|
|
9025
9031
|
IsNumber as IsNumber10,
|
|
9026
9032
|
IsUrl as IsUrl3,
|
|
@@ -9047,7 +9053,7 @@ var ModeOfWorkEnum = /* @__PURE__ */ ((ModeOfWorkEnum3) => {
|
|
|
9047
9053
|
var CreateFreelancerDto = class {
|
|
9048
9054
|
};
|
|
9049
9055
|
__decorateClass([
|
|
9050
|
-
|
|
9056
|
+
IsOptional41(),
|
|
9051
9057
|
IsString47({ message: "Full name must be a string" }),
|
|
9052
9058
|
MaxLength18(100, { message: "Full name must not exceed 100 characters" }),
|
|
9053
9059
|
Transform2(({ value }) => {
|
|
@@ -9056,7 +9062,7 @@ __decorateClass([
|
|
|
9056
9062
|
})
|
|
9057
9063
|
], CreateFreelancerDto.prototype, "fullName", 2);
|
|
9058
9064
|
__decorateClass([
|
|
9059
|
-
|
|
9065
|
+
IsOptional41(),
|
|
9060
9066
|
IsEmail13({}, { message: "Invalid email address" }),
|
|
9061
9067
|
Transform2(({ value }) => {
|
|
9062
9068
|
if (Array.isArray(value)) return value[0]?.trim();
|
|
@@ -9064,7 +9070,7 @@ __decorateClass([
|
|
|
9064
9070
|
})
|
|
9065
9071
|
], CreateFreelancerDto.prototype, "email", 2);
|
|
9066
9072
|
__decorateClass([
|
|
9067
|
-
|
|
9073
|
+
IsOptional41(),
|
|
9068
9074
|
IsString47({ message: "Mobile code must be a string (e.g., +1)" }),
|
|
9069
9075
|
Transform2(({ value }) => {
|
|
9070
9076
|
if (Array.isArray(value)) return value[0]?.trim();
|
|
@@ -9072,7 +9078,7 @@ __decorateClass([
|
|
|
9072
9078
|
})
|
|
9073
9079
|
], CreateFreelancerDto.prototype, "mobileCode", 2);
|
|
9074
9080
|
__decorateClass([
|
|
9075
|
-
|
|
9081
|
+
IsOptional41(),
|
|
9076
9082
|
IsString47({ message: "Mobile must be a string (e.g., 1243253534)" }),
|
|
9077
9083
|
Transform2(({ value }) => {
|
|
9078
9084
|
if (Array.isArray(value)) return value[0]?.trim();
|
|
@@ -9091,7 +9097,7 @@ __decorateClass([
|
|
|
9091
9097
|
})
|
|
9092
9098
|
], CreateFreelancerDto.prototype, "address", 2);
|
|
9093
9099
|
__decorateClass([
|
|
9094
|
-
|
|
9100
|
+
IsOptional41(),
|
|
9095
9101
|
IsString47({ message: "addressLine must be a string" }),
|
|
9096
9102
|
Transform2(({ value }) => {
|
|
9097
9103
|
if (Array.isArray(value)) {
|
|
@@ -9104,7 +9110,7 @@ __decorateClass([
|
|
|
9104
9110
|
})
|
|
9105
9111
|
], CreateFreelancerDto.prototype, "addressLine", 2);
|
|
9106
9112
|
__decorateClass([
|
|
9107
|
-
|
|
9113
|
+
IsOptional41(),
|
|
9108
9114
|
IsInt7({ message: "countryId must be an integer" }),
|
|
9109
9115
|
Transform2(({ value }) => {
|
|
9110
9116
|
if (Array.isArray(value)) value = value[0];
|
|
@@ -9113,7 +9119,7 @@ __decorateClass([
|
|
|
9113
9119
|
})
|
|
9114
9120
|
], CreateFreelancerDto.prototype, "countryId", 2);
|
|
9115
9121
|
__decorateClass([
|
|
9116
|
-
|
|
9122
|
+
IsOptional41(),
|
|
9117
9123
|
IsInt7({ message: "stateId must be an integer" }),
|
|
9118
9124
|
Transform2(({ value }) => {
|
|
9119
9125
|
if (Array.isArray(value)) value = value[0];
|
|
@@ -9122,7 +9128,7 @@ __decorateClass([
|
|
|
9122
9128
|
})
|
|
9123
9129
|
], CreateFreelancerDto.prototype, "stateId", 2);
|
|
9124
9130
|
__decorateClass([
|
|
9125
|
-
|
|
9131
|
+
IsOptional41(),
|
|
9126
9132
|
IsInt7({ message: "cityId must be an integer" }),
|
|
9127
9133
|
Transform2(({ value }) => {
|
|
9128
9134
|
if (Array.isArray(value)) value = value[0];
|
|
@@ -9131,7 +9137,7 @@ __decorateClass([
|
|
|
9131
9137
|
})
|
|
9132
9138
|
], CreateFreelancerDto.prototype, "cityId", 2);
|
|
9133
9139
|
__decorateClass([
|
|
9134
|
-
|
|
9140
|
+
IsOptional41(),
|
|
9135
9141
|
IsString47({ message: "postalCode must be a string" }),
|
|
9136
9142
|
Transform2(({ value }) => {
|
|
9137
9143
|
if (Array.isArray(value)) {
|
|
@@ -9144,7 +9150,7 @@ __decorateClass([
|
|
|
9144
9150
|
})
|
|
9145
9151
|
], CreateFreelancerDto.prototype, "postalCode", 2);
|
|
9146
9152
|
__decorateClass([
|
|
9147
|
-
|
|
9153
|
+
IsOptional41(),
|
|
9148
9154
|
IsString47({ message: "about must be a string" }),
|
|
9149
9155
|
Transform2(({ value }) => {
|
|
9150
9156
|
if (Array.isArray(value)) {
|
|
@@ -9157,7 +9163,7 @@ __decorateClass([
|
|
|
9157
9163
|
})
|
|
9158
9164
|
], CreateFreelancerDto.prototype, "about", 2);
|
|
9159
9165
|
__decorateClass([
|
|
9160
|
-
|
|
9166
|
+
IsOptional41(),
|
|
9161
9167
|
IsString47({ message: "designation must be a string" }),
|
|
9162
9168
|
Transform2(({ value }) => {
|
|
9163
9169
|
if (Array.isArray(value)) {
|
|
@@ -9170,7 +9176,7 @@ __decorateClass([
|
|
|
9170
9176
|
})
|
|
9171
9177
|
], CreateFreelancerDto.prototype, "designation", 2);
|
|
9172
9178
|
__decorateClass([
|
|
9173
|
-
|
|
9179
|
+
IsOptional41(),
|
|
9174
9180
|
IsNumber10({}, { message: "experience must be a number" }),
|
|
9175
9181
|
Transform2(({ value }) => {
|
|
9176
9182
|
if (Array.isArray(value)) value = value[0];
|
|
@@ -9179,7 +9185,7 @@ __decorateClass([
|
|
|
9179
9185
|
})
|
|
9180
9186
|
], CreateFreelancerDto.prototype, "experience", 2);
|
|
9181
9187
|
__decorateClass([
|
|
9182
|
-
|
|
9188
|
+
IsOptional41(),
|
|
9183
9189
|
Transform2(({ value }) => {
|
|
9184
9190
|
if (Array.isArray(value)) value = value[0];
|
|
9185
9191
|
return value === null || value === "" ? void 0 : value;
|
|
@@ -9202,7 +9208,7 @@ __decorateClass([
|
|
|
9202
9208
|
})
|
|
9203
9209
|
], CreateFreelancerDto.prototype, "confirmPassword", 2);
|
|
9204
9210
|
__decorateClass([
|
|
9205
|
-
|
|
9211
|
+
IsOptional41(),
|
|
9206
9212
|
Transform2(({ value }) => {
|
|
9207
9213
|
if (Array.isArray(value)) value = value[0];
|
|
9208
9214
|
if (value === "true" || value === true) return true;
|
|
@@ -9212,7 +9218,7 @@ __decorateClass([
|
|
|
9212
9218
|
IsBoolean11({ message: "Developer flag must be true or false" })
|
|
9213
9219
|
], CreateFreelancerDto.prototype, "developer", 2);
|
|
9214
9220
|
__decorateClass([
|
|
9215
|
-
|
|
9221
|
+
IsOptional41(),
|
|
9216
9222
|
IsEnum25(NatureOfWorkEnum, {
|
|
9217
9223
|
message: `Nature of work must be one of: ${Object.values(
|
|
9218
9224
|
NatureOfWorkEnum
|
|
@@ -9223,7 +9229,7 @@ __decorateClass([
|
|
|
9223
9229
|
ValidateIf9(
|
|
9224
9230
|
(dto) => dto.natureOfWork === "FREELANCE" /* FREELANCE */ || dto.natureOfWork === "BOTH" /* BOTH */
|
|
9225
9231
|
),
|
|
9226
|
-
|
|
9232
|
+
IsOptional41(),
|
|
9227
9233
|
IsNumber10({}, { message: "Expected hourly compensation must be a number" }),
|
|
9228
9234
|
Transform2(({ value }) => {
|
|
9229
9235
|
if (Array.isArray(value)) value = value[0];
|
|
@@ -9235,7 +9241,7 @@ __decorateClass([
|
|
|
9235
9241
|
ValidateIf9(
|
|
9236
9242
|
(dto) => dto.natureOfWork === "FTE" /* FTE */ || dto.natureOfWork === "BOTH" /* BOTH */
|
|
9237
9243
|
),
|
|
9238
|
-
|
|
9244
|
+
IsOptional41(),
|
|
9239
9245
|
IsNumber10({}, { message: "Expected annual compensation must be a number" }),
|
|
9240
9246
|
Transform2(({ value }) => {
|
|
9241
9247
|
if (Array.isArray(value)) value = value[0];
|
|
@@ -9247,7 +9253,7 @@ __decorateClass([
|
|
|
9247
9253
|
ValidateIf9(
|
|
9248
9254
|
(dto) => dto.natureOfWork === "FREELANCE" /* FREELANCE */ || dto.natureOfWork === "BOTH" /* BOTH */
|
|
9249
9255
|
),
|
|
9250
|
-
|
|
9256
|
+
IsOptional41(),
|
|
9251
9257
|
IsInt7({ message: "Please enter valid weekly availability hours (integer)." }),
|
|
9252
9258
|
Transform2(({ value }) => {
|
|
9253
9259
|
if (Array.isArray(value)) value = value[0];
|
|
@@ -9256,7 +9262,7 @@ __decorateClass([
|
|
|
9256
9262
|
})
|
|
9257
9263
|
], CreateFreelancerDto.prototype, "numberOfHours", 2);
|
|
9258
9264
|
__decorateClass([
|
|
9259
|
-
|
|
9265
|
+
IsOptional41(),
|
|
9260
9266
|
IsEnum25(ModeOfWorkEnum, {
|
|
9261
9267
|
message: `Mode of work must be one of: ${Object.values(ModeOfWorkEnum).join(
|
|
9262
9268
|
", "
|
|
@@ -9264,7 +9270,7 @@ __decorateClass([
|
|
|
9264
9270
|
})
|
|
9265
9271
|
], CreateFreelancerDto.prototype, "modeOfWork", 2);
|
|
9266
9272
|
__decorateClass([
|
|
9267
|
-
|
|
9273
|
+
IsOptional41(),
|
|
9268
9274
|
Transform2(({ value }) => {
|
|
9269
9275
|
if (Array.isArray(value)) value = value[0];
|
|
9270
9276
|
if (value === "true" || value === true) return true;
|
|
@@ -9275,7 +9281,7 @@ __decorateClass([
|
|
|
9275
9281
|
], CreateFreelancerDto.prototype, "isImmediateJoiner", 2);
|
|
9276
9282
|
__decorateClass([
|
|
9277
9283
|
ValidateIf9((o) => o.isImmediateJoiner === false),
|
|
9278
|
-
|
|
9284
|
+
IsOptional41(),
|
|
9279
9285
|
IsString47({ message: "availabilityToJoin must be a string" }),
|
|
9280
9286
|
Transform2(({ value }) => {
|
|
9281
9287
|
if (Array.isArray(value)) {
|
|
@@ -9288,7 +9294,7 @@ __decorateClass([
|
|
|
9288
9294
|
})
|
|
9289
9295
|
], CreateFreelancerDto.prototype, "availabilityToJoin", 2);
|
|
9290
9296
|
__decorateClass([
|
|
9291
|
-
|
|
9297
|
+
IsOptional41(),
|
|
9292
9298
|
IsUrl3({}, { message: "LinkedIn profile link must be a valid URL" }),
|
|
9293
9299
|
Transform2(({ value }) => {
|
|
9294
9300
|
if (Array.isArray(value)) {
|
|
@@ -9301,7 +9307,7 @@ __decorateClass([
|
|
|
9301
9307
|
})
|
|
9302
9308
|
], CreateFreelancerDto.prototype, "linkedinProfileLink", 2);
|
|
9303
9309
|
__decorateClass([
|
|
9304
|
-
|
|
9310
|
+
IsOptional41(),
|
|
9305
9311
|
IsString47({ message: "Kaggle profile link must be a string" }),
|
|
9306
9312
|
Transform2(({ value }) => {
|
|
9307
9313
|
if (Array.isArray(value)) {
|
|
@@ -9314,7 +9320,7 @@ __decorateClass([
|
|
|
9314
9320
|
})
|
|
9315
9321
|
], CreateFreelancerDto.prototype, "kaggleProfileLink", 2);
|
|
9316
9322
|
__decorateClass([
|
|
9317
|
-
|
|
9323
|
+
IsOptional41(),
|
|
9318
9324
|
IsUrl3({}, { message: "GitHub profile link must be a valid URL" }),
|
|
9319
9325
|
Transform2(({ value }) => {
|
|
9320
9326
|
if (Array.isArray(value)) {
|
|
@@ -9327,7 +9333,7 @@ __decorateClass([
|
|
|
9327
9333
|
})
|
|
9328
9334
|
], CreateFreelancerDto.prototype, "githubProfileLink", 2);
|
|
9329
9335
|
__decorateClass([
|
|
9330
|
-
|
|
9336
|
+
IsOptional41(),
|
|
9331
9337
|
IsUrl3({}, { message: "StackOverflow profile link must be a valid URL" }),
|
|
9332
9338
|
Transform2(({ value }) => {
|
|
9333
9339
|
if (Array.isArray(value)) {
|
|
@@ -9340,7 +9346,7 @@ __decorateClass([
|
|
|
9340
9346
|
})
|
|
9341
9347
|
], CreateFreelancerDto.prototype, "stackOverflowProfileLink", 2);
|
|
9342
9348
|
__decorateClass([
|
|
9343
|
-
|
|
9349
|
+
IsOptional41(),
|
|
9344
9350
|
IsUrl3({}, { message: "Portfolio link must be a valid URL" }),
|
|
9345
9351
|
Transform2(({ value }) => {
|
|
9346
9352
|
if (Array.isArray(value)) {
|
|
@@ -9353,7 +9359,7 @@ __decorateClass([
|
|
|
9353
9359
|
})
|
|
9354
9360
|
], CreateFreelancerDto.prototype, "portfolioLink", 2);
|
|
9355
9361
|
__decorateClass([
|
|
9356
|
-
|
|
9362
|
+
IsOptional41()
|
|
9357
9363
|
], CreateFreelancerDto.prototype, "file", 2);
|
|
9358
9364
|
|
|
9359
9365
|
// src/modules/freelancer-admin/dto/update-freelancer.dto.ts
|
|
@@ -9361,7 +9367,7 @@ import {
|
|
|
9361
9367
|
IsString as IsString48,
|
|
9362
9368
|
IsEmail as IsEmail14,
|
|
9363
9369
|
IsBoolean as IsBoolean12,
|
|
9364
|
-
IsOptional as
|
|
9370
|
+
IsOptional as IsOptional42,
|
|
9365
9371
|
IsEnum as IsEnum26,
|
|
9366
9372
|
IsNumber as IsNumber11,
|
|
9367
9373
|
IsUrl as IsUrl4,
|
|
@@ -9388,7 +9394,7 @@ var ModeOfWorkEnum2 = /* @__PURE__ */ ((ModeOfWorkEnum3) => {
|
|
|
9388
9394
|
var UpdateFreelancerDto = class {
|
|
9389
9395
|
};
|
|
9390
9396
|
__decorateClass([
|
|
9391
|
-
|
|
9397
|
+
IsOptional42(),
|
|
9392
9398
|
IsString48({ message: "Full name must be a string" }),
|
|
9393
9399
|
MaxLength19(100, { message: "Full name must not exceed 100 characters" }),
|
|
9394
9400
|
Transform3(({ value }) => {
|
|
@@ -9397,7 +9403,7 @@ __decorateClass([
|
|
|
9397
9403
|
})
|
|
9398
9404
|
], UpdateFreelancerDto.prototype, "fullName", 2);
|
|
9399
9405
|
__decorateClass([
|
|
9400
|
-
|
|
9406
|
+
IsOptional42(),
|
|
9401
9407
|
IsEmail14({}, { message: "Invalid email address" }),
|
|
9402
9408
|
Transform3(({ value }) => {
|
|
9403
9409
|
if (Array.isArray(value)) return value[0]?.trim();
|
|
@@ -9405,7 +9411,7 @@ __decorateClass([
|
|
|
9405
9411
|
})
|
|
9406
9412
|
], UpdateFreelancerDto.prototype, "email", 2);
|
|
9407
9413
|
__decorateClass([
|
|
9408
|
-
|
|
9414
|
+
IsOptional42(),
|
|
9409
9415
|
IsString48({ message: "Mobile code must be a string (e.g., +1)" }),
|
|
9410
9416
|
Transform3(({ value }) => {
|
|
9411
9417
|
if (Array.isArray(value)) return value[0]?.trim();
|
|
@@ -9413,7 +9419,7 @@ __decorateClass([
|
|
|
9413
9419
|
})
|
|
9414
9420
|
], UpdateFreelancerDto.prototype, "mobileCode", 2);
|
|
9415
9421
|
__decorateClass([
|
|
9416
|
-
|
|
9422
|
+
IsOptional42(),
|
|
9417
9423
|
IsString48({ message: "Mobile must be a string (e.g., 1243253534)" }),
|
|
9418
9424
|
Transform3(({ value }) => {
|
|
9419
9425
|
if (Array.isArray(value)) return value[0]?.trim();
|
|
@@ -9432,7 +9438,7 @@ __decorateClass([
|
|
|
9432
9438
|
})
|
|
9433
9439
|
], UpdateFreelancerDto.prototype, "address", 2);
|
|
9434
9440
|
__decorateClass([
|
|
9435
|
-
|
|
9441
|
+
IsOptional42(),
|
|
9436
9442
|
IsString48({ message: "addressLine must be a string" }),
|
|
9437
9443
|
Transform3(({ value }) => {
|
|
9438
9444
|
if (Array.isArray(value)) {
|
|
@@ -9445,7 +9451,7 @@ __decorateClass([
|
|
|
9445
9451
|
})
|
|
9446
9452
|
], UpdateFreelancerDto.prototype, "addressLine", 2);
|
|
9447
9453
|
__decorateClass([
|
|
9448
|
-
|
|
9454
|
+
IsOptional42(),
|
|
9449
9455
|
IsInt8({ message: "countryId must be an integer" }),
|
|
9450
9456
|
Transform3(({ value }) => {
|
|
9451
9457
|
if (Array.isArray(value)) value = value[0];
|
|
@@ -9454,7 +9460,7 @@ __decorateClass([
|
|
|
9454
9460
|
})
|
|
9455
9461
|
], UpdateFreelancerDto.prototype, "countryId", 2);
|
|
9456
9462
|
__decorateClass([
|
|
9457
|
-
|
|
9463
|
+
IsOptional42(),
|
|
9458
9464
|
IsInt8({ message: "stateId must be an integer" }),
|
|
9459
9465
|
Transform3(({ value }) => {
|
|
9460
9466
|
if (Array.isArray(value)) value = value[0];
|
|
@@ -9463,7 +9469,7 @@ __decorateClass([
|
|
|
9463
9469
|
})
|
|
9464
9470
|
], UpdateFreelancerDto.prototype, "stateId", 2);
|
|
9465
9471
|
__decorateClass([
|
|
9466
|
-
|
|
9472
|
+
IsOptional42(),
|
|
9467
9473
|
IsInt8({ message: "cityId must be an integer" }),
|
|
9468
9474
|
Transform3(({ value }) => {
|
|
9469
9475
|
if (Array.isArray(value)) value = value[0];
|
|
@@ -9472,7 +9478,7 @@ __decorateClass([
|
|
|
9472
9478
|
})
|
|
9473
9479
|
], UpdateFreelancerDto.prototype, "cityId", 2);
|
|
9474
9480
|
__decorateClass([
|
|
9475
|
-
|
|
9481
|
+
IsOptional42(),
|
|
9476
9482
|
IsString48({ message: "postalCode must be a string" }),
|
|
9477
9483
|
Transform3(({ value }) => {
|
|
9478
9484
|
if (Array.isArray(value)) {
|
|
@@ -9485,7 +9491,7 @@ __decorateClass([
|
|
|
9485
9491
|
})
|
|
9486
9492
|
], UpdateFreelancerDto.prototype, "postalCode", 2);
|
|
9487
9493
|
__decorateClass([
|
|
9488
|
-
|
|
9494
|
+
IsOptional42(),
|
|
9489
9495
|
IsString48({ message: "about must be a string" }),
|
|
9490
9496
|
Transform3(({ value }) => {
|
|
9491
9497
|
if (Array.isArray(value)) {
|
|
@@ -9498,7 +9504,7 @@ __decorateClass([
|
|
|
9498
9504
|
})
|
|
9499
9505
|
], UpdateFreelancerDto.prototype, "about", 2);
|
|
9500
9506
|
__decorateClass([
|
|
9501
|
-
|
|
9507
|
+
IsOptional42(),
|
|
9502
9508
|
IsString48({ message: "designation must be a string" }),
|
|
9503
9509
|
Transform3(({ value }) => {
|
|
9504
9510
|
if (Array.isArray(value)) {
|
|
@@ -9511,7 +9517,7 @@ __decorateClass([
|
|
|
9511
9517
|
})
|
|
9512
9518
|
], UpdateFreelancerDto.prototype, "designation", 2);
|
|
9513
9519
|
__decorateClass([
|
|
9514
|
-
|
|
9520
|
+
IsOptional42(),
|
|
9515
9521
|
IsNumber11({}, { message: "experience must be a number" }),
|
|
9516
9522
|
Transform3(({ value }) => {
|
|
9517
9523
|
if (Array.isArray(value)) value = value[0];
|
|
@@ -9520,7 +9526,7 @@ __decorateClass([
|
|
|
9520
9526
|
})
|
|
9521
9527
|
], UpdateFreelancerDto.prototype, "experience", 2);
|
|
9522
9528
|
__decorateClass([
|
|
9523
|
-
|
|
9529
|
+
IsOptional42(),
|
|
9524
9530
|
Transform3(({ value }) => {
|
|
9525
9531
|
if (Array.isArray(value)) value = value[0];
|
|
9526
9532
|
return value === null || value === "" ? void 0 : value;
|
|
@@ -9532,7 +9538,7 @@ __decorateClass([
|
|
|
9532
9538
|
})
|
|
9533
9539
|
], UpdateFreelancerDto.prototype, "password", 2);
|
|
9534
9540
|
__decorateClass([
|
|
9535
|
-
|
|
9541
|
+
IsOptional42(),
|
|
9536
9542
|
Transform3(({ value }) => {
|
|
9537
9543
|
if (Array.isArray(value)) value = value[0];
|
|
9538
9544
|
if (value === "true" || value === true) return true;
|
|
@@ -9542,7 +9548,7 @@ __decorateClass([
|
|
|
9542
9548
|
IsBoolean12({ message: "Developer flag must be true or false" })
|
|
9543
9549
|
], UpdateFreelancerDto.prototype, "developer", 2);
|
|
9544
9550
|
__decorateClass([
|
|
9545
|
-
|
|
9551
|
+
IsOptional42(),
|
|
9546
9552
|
IsEnum26(NatureOfWorkEnum2, {
|
|
9547
9553
|
message: `Nature of work must be one of: ${Object.values(
|
|
9548
9554
|
NatureOfWorkEnum2
|
|
@@ -9553,7 +9559,7 @@ __decorateClass([
|
|
|
9553
9559
|
ValidateIf10(
|
|
9554
9560
|
(dto) => dto.natureOfWork === "FREELANCE" /* FREELANCE */ || dto.natureOfWork === "BOTH" /* BOTH */
|
|
9555
9561
|
),
|
|
9556
|
-
|
|
9562
|
+
IsOptional42(),
|
|
9557
9563
|
IsNumber11({}, { message: "Expected hourly compensation must be a number" }),
|
|
9558
9564
|
Transform3(({ value }) => {
|
|
9559
9565
|
if (Array.isArray(value)) value = value[0];
|
|
@@ -9565,7 +9571,7 @@ __decorateClass([
|
|
|
9565
9571
|
ValidateIf10(
|
|
9566
9572
|
(dto) => dto.natureOfWork === "FTE" /* FTE */ || dto.natureOfWork === "BOTH" /* BOTH */
|
|
9567
9573
|
),
|
|
9568
|
-
|
|
9574
|
+
IsOptional42(),
|
|
9569
9575
|
IsNumber11({}, { message: "Expected annual compensation must be a number" }),
|
|
9570
9576
|
Transform3(({ value }) => {
|
|
9571
9577
|
if (Array.isArray(value)) value = value[0];
|
|
@@ -9577,7 +9583,7 @@ __decorateClass([
|
|
|
9577
9583
|
ValidateIf10(
|
|
9578
9584
|
(dto) => dto.natureOfWork === "FREELANCE" /* FREELANCE */ || dto.natureOfWork === "BOTH" /* BOTH */
|
|
9579
9585
|
),
|
|
9580
|
-
|
|
9586
|
+
IsOptional42(),
|
|
9581
9587
|
IsInt8({ message: "Please enter valid weekly availability hours (integer)." }),
|
|
9582
9588
|
Transform3(({ value }) => {
|
|
9583
9589
|
if (Array.isArray(value)) value = value[0];
|
|
@@ -9586,7 +9592,7 @@ __decorateClass([
|
|
|
9586
9592
|
})
|
|
9587
9593
|
], UpdateFreelancerDto.prototype, "numberOfHours", 2);
|
|
9588
9594
|
__decorateClass([
|
|
9589
|
-
|
|
9595
|
+
IsOptional42(),
|
|
9590
9596
|
IsEnum26(ModeOfWorkEnum2, {
|
|
9591
9597
|
message: `Mode of work must be one of: ${Object.values(ModeOfWorkEnum2).join(
|
|
9592
9598
|
", "
|
|
@@ -9594,7 +9600,7 @@ __decorateClass([
|
|
|
9594
9600
|
})
|
|
9595
9601
|
], UpdateFreelancerDto.prototype, "modeOfWork", 2);
|
|
9596
9602
|
__decorateClass([
|
|
9597
|
-
|
|
9603
|
+
IsOptional42(),
|
|
9598
9604
|
Transform3(({ value }) => {
|
|
9599
9605
|
if (Array.isArray(value)) value = value[0];
|
|
9600
9606
|
if (value === "true" || value === true) return true;
|
|
@@ -9605,7 +9611,7 @@ __decorateClass([
|
|
|
9605
9611
|
], UpdateFreelancerDto.prototype, "isImmediateJoiner", 2);
|
|
9606
9612
|
__decorateClass([
|
|
9607
9613
|
ValidateIf10((o) => o.isImmediateJoiner === false),
|
|
9608
|
-
|
|
9614
|
+
IsOptional42(),
|
|
9609
9615
|
IsString48({ message: "availabilityToJoin must be a string" }),
|
|
9610
9616
|
Transform3(({ value }) => {
|
|
9611
9617
|
if (Array.isArray(value)) {
|
|
@@ -9618,7 +9624,7 @@ __decorateClass([
|
|
|
9618
9624
|
})
|
|
9619
9625
|
], UpdateFreelancerDto.prototype, "availabilityToJoin", 2);
|
|
9620
9626
|
__decorateClass([
|
|
9621
|
-
|
|
9627
|
+
IsOptional42(),
|
|
9622
9628
|
IsUrl4({}, { message: "LinkedIn profile link must be a valid URL" }),
|
|
9623
9629
|
Transform3(({ value }) => {
|
|
9624
9630
|
if (Array.isArray(value)) {
|
|
@@ -9631,7 +9637,7 @@ __decorateClass([
|
|
|
9631
9637
|
})
|
|
9632
9638
|
], UpdateFreelancerDto.prototype, "linkedinProfileLink", 2);
|
|
9633
9639
|
__decorateClass([
|
|
9634
|
-
|
|
9640
|
+
IsOptional42(),
|
|
9635
9641
|
IsString48({ message: "Kaggle profile link must be a string" }),
|
|
9636
9642
|
Transform3(({ value }) => {
|
|
9637
9643
|
if (Array.isArray(value)) {
|
|
@@ -9644,7 +9650,7 @@ __decorateClass([
|
|
|
9644
9650
|
})
|
|
9645
9651
|
], UpdateFreelancerDto.prototype, "kaggleProfileLink", 2);
|
|
9646
9652
|
__decorateClass([
|
|
9647
|
-
|
|
9653
|
+
IsOptional42(),
|
|
9648
9654
|
IsUrl4({}, { message: "GitHub profile link must be a valid URL" }),
|
|
9649
9655
|
Transform3(({ value }) => {
|
|
9650
9656
|
if (Array.isArray(value)) {
|
|
@@ -9657,7 +9663,7 @@ __decorateClass([
|
|
|
9657
9663
|
})
|
|
9658
9664
|
], UpdateFreelancerDto.prototype, "githubProfileLink", 2);
|
|
9659
9665
|
__decorateClass([
|
|
9660
|
-
|
|
9666
|
+
IsOptional42(),
|
|
9661
9667
|
IsUrl4({}, { message: "StackOverflow profile link must be a valid URL" }),
|
|
9662
9668
|
Transform3(({ value }) => {
|
|
9663
9669
|
if (Array.isArray(value)) {
|
|
@@ -9670,7 +9676,7 @@ __decorateClass([
|
|
|
9670
9676
|
})
|
|
9671
9677
|
], UpdateFreelancerDto.prototype, "stackOverflowProfileLink", 2);
|
|
9672
9678
|
__decorateClass([
|
|
9673
|
-
|
|
9679
|
+
IsOptional42(),
|
|
9674
9680
|
IsUrl4({}, { message: "Portfolio link must be a valid URL" }),
|
|
9675
9681
|
Transform3(({ value }) => {
|
|
9676
9682
|
if (Array.isArray(value)) {
|
|
@@ -9683,7 +9689,7 @@ __decorateClass([
|
|
|
9683
9689
|
})
|
|
9684
9690
|
], UpdateFreelancerDto.prototype, "portfolioLink", 2);
|
|
9685
9691
|
__decorateClass([
|
|
9686
|
-
|
|
9692
|
+
IsOptional42()
|
|
9687
9693
|
], UpdateFreelancerDto.prototype, "file", 2);
|
|
9688
9694
|
|
|
9689
9695
|
// src/modules/freelancer-admin/dto/send-ai-assessment-link.dto.ts
|
|
@@ -9696,7 +9702,7 @@ __decorateClass([
|
|
|
9696
9702
|
], SendAiAssessmentLinkDto.prototype, "uuid", 2);
|
|
9697
9703
|
|
|
9698
9704
|
// src/modules/freelancer-admin/dto/update-assessment-request-status.dto.ts
|
|
9699
|
-
import { IsEnum as IsEnum27, IsOptional as
|
|
9705
|
+
import { IsEnum as IsEnum27, IsOptional as IsOptional43, IsString as IsString49 } from "class-validator";
|
|
9700
9706
|
var AssessmentRequestStatus = /* @__PURE__ */ ((AssessmentRequestStatus2) => {
|
|
9701
9707
|
AssessmentRequestStatus2["PENDING"] = "PENDING";
|
|
9702
9708
|
AssessmentRequestStatus2["APPROVED"] = "APPROVED";
|
|
@@ -9712,17 +9718,17 @@ __decorateClass([
|
|
|
9712
9718
|
})
|
|
9713
9719
|
], UpdateAssessmentRequestStatusDto.prototype, "status", 2);
|
|
9714
9720
|
__decorateClass([
|
|
9715
|
-
|
|
9721
|
+
IsOptional43(),
|
|
9716
9722
|
IsString49()
|
|
9717
9723
|
], UpdateAssessmentRequestStatusDto.prototype, "remarks", 2);
|
|
9718
9724
|
|
|
9719
9725
|
// src/modules/freelancer-admin/dto/admin-export-freelancerV2-optimised.dto.ts
|
|
9720
|
-
import { IsOptional as
|
|
9726
|
+
import { IsOptional as IsOptional44, IsArray as IsArray13, IsEmail as IsEmail15 } from "class-validator";
|
|
9721
9727
|
import { Transform as Transform4 } from "class-transformer";
|
|
9722
9728
|
var AdminExportFreelancerV2OptimisedDto = class {
|
|
9723
9729
|
};
|
|
9724
9730
|
__decorateClass([
|
|
9725
|
-
|
|
9731
|
+
IsOptional44(),
|
|
9726
9732
|
Transform4(
|
|
9727
9733
|
({ value }) => typeof value === "string" ? value.split(",").map((email) => email.trim().toLowerCase()).filter(Boolean) : []
|
|
9728
9734
|
),
|
|
@@ -9789,7 +9795,7 @@ var CLIENT_ADMIN_PATTERNS = {
|
|
|
9789
9795
|
import {
|
|
9790
9796
|
IsNotEmpty as IsNotEmpty74,
|
|
9791
9797
|
IsEmail as IsEmail17,
|
|
9792
|
-
IsOptional as
|
|
9798
|
+
IsOptional as IsOptional45,
|
|
9793
9799
|
IsString as IsString51,
|
|
9794
9800
|
MinLength as MinLength19,
|
|
9795
9801
|
MaxLength as MaxLength20,
|
|
@@ -9837,45 +9843,45 @@ __decorateClass([
|
|
|
9837
9843
|
IsString51()
|
|
9838
9844
|
], CreateClientDto.prototype, "companyName", 2);
|
|
9839
9845
|
__decorateClass([
|
|
9840
|
-
|
|
9846
|
+
IsOptional45(),
|
|
9841
9847
|
IsString51()
|
|
9842
9848
|
], CreateClientDto.prototype, "foundUsOn", 2);
|
|
9843
9849
|
__decorateClass([
|
|
9844
|
-
|
|
9850
|
+
IsOptional45(),
|
|
9845
9851
|
IsString51()
|
|
9846
9852
|
], CreateClientDto.prototype, "foundUsOnDetail", 2);
|
|
9847
9853
|
__decorateClass([
|
|
9848
|
-
|
|
9854
|
+
IsOptional45(),
|
|
9849
9855
|
IsString51({ message: "About company must be a string." })
|
|
9850
9856
|
], CreateClientDto.prototype, "about", 2);
|
|
9851
9857
|
__decorateClass([
|
|
9852
|
-
|
|
9858
|
+
IsOptional45(),
|
|
9853
9859
|
IsUrl5({}, { message: "Website must be a valid URL." })
|
|
9854
9860
|
], CreateClientDto.prototype, "webSite", 2);
|
|
9855
9861
|
__decorateClass([
|
|
9856
|
-
|
|
9862
|
+
IsOptional45(),
|
|
9857
9863
|
IsString51({ message: "Company address must be a string." })
|
|
9858
9864
|
], CreateClientDto.prototype, "companyAddress", 2);
|
|
9859
9865
|
__decorateClass([
|
|
9860
|
-
|
|
9866
|
+
IsOptional45(),
|
|
9861
9867
|
IsString51({ message: "Address line must be a string." })
|
|
9862
9868
|
], CreateClientDto.prototype, "addressLine", 2);
|
|
9863
9869
|
__decorateClass([
|
|
9864
|
-
|
|
9870
|
+
IsOptional45(),
|
|
9865
9871
|
IsString51({ message: "Postal code must be a string." })
|
|
9866
9872
|
], CreateClientDto.prototype, "postalCode", 2);
|
|
9867
9873
|
__decorateClass([
|
|
9868
|
-
|
|
9874
|
+
IsOptional45(),
|
|
9869
9875
|
IsInt9({ message: "Country ID must be an integer." }),
|
|
9870
9876
|
Type9(() => Number)
|
|
9871
9877
|
], CreateClientDto.prototype, "countryId", 2);
|
|
9872
9878
|
__decorateClass([
|
|
9873
|
-
|
|
9879
|
+
IsOptional45(),
|
|
9874
9880
|
IsInt9({ message: "State ID must be an integer." }),
|
|
9875
9881
|
Type9(() => Number)
|
|
9876
9882
|
], CreateClientDto.prototype, "stateId", 2);
|
|
9877
9883
|
__decorateClass([
|
|
9878
|
-
|
|
9884
|
+
IsOptional45(),
|
|
9879
9885
|
IsInt9({ message: "City ID must be an integer." }),
|
|
9880
9886
|
Type9(() => Number)
|
|
9881
9887
|
], CreateClientDto.prototype, "cityId", 2);
|
|
@@ -9895,7 +9901,7 @@ import { Transform as Transform5, Type as Type10 } from "class-transformer";
|
|
|
9895
9901
|
import {
|
|
9896
9902
|
IsNotEmpty as IsNotEmpty75,
|
|
9897
9903
|
IsEmail as IsEmail18,
|
|
9898
|
-
IsOptional as
|
|
9904
|
+
IsOptional as IsOptional46,
|
|
9899
9905
|
IsString as IsString52,
|
|
9900
9906
|
MinLength as MinLength20,
|
|
9901
9907
|
MaxLength as MaxLength21,
|
|
@@ -9916,15 +9922,15 @@ __decorateClass([
|
|
|
9916
9922
|
IsEmail18()
|
|
9917
9923
|
], UpdateClientDto.prototype, "email", 2);
|
|
9918
9924
|
__decorateClass([
|
|
9919
|
-
|
|
9925
|
+
IsOptional46(),
|
|
9920
9926
|
IsString52({ message: "Mobile code must be a string." })
|
|
9921
9927
|
], UpdateClientDto.prototype, "mobileCode", 2);
|
|
9922
9928
|
__decorateClass([
|
|
9923
|
-
|
|
9929
|
+
IsOptional46(),
|
|
9924
9930
|
IsString52({ message: "Phone number must be a string." })
|
|
9925
9931
|
], UpdateClientDto.prototype, "phoneNumber", 2);
|
|
9926
9932
|
__decorateClass([
|
|
9927
|
-
|
|
9933
|
+
IsOptional46(),
|
|
9928
9934
|
Transform5(({ value }) => value === null || value === "" ? void 0 : value),
|
|
9929
9935
|
MinLength20(6, { message: "Password must be at least 6 characters." }),
|
|
9930
9936
|
MaxLength21(32, { message: "Password must not exceed 32 characters." }),
|
|
@@ -9937,53 +9943,53 @@ __decorateClass([
|
|
|
9937
9943
|
IsString52()
|
|
9938
9944
|
], UpdateClientDto.prototype, "companyName", 2);
|
|
9939
9945
|
__decorateClass([
|
|
9940
|
-
|
|
9946
|
+
IsOptional46(),
|
|
9941
9947
|
IsString52()
|
|
9942
9948
|
], UpdateClientDto.prototype, "foundUsOn", 2);
|
|
9943
9949
|
__decorateClass([
|
|
9944
|
-
|
|
9950
|
+
IsOptional46(),
|
|
9945
9951
|
IsString52()
|
|
9946
9952
|
], UpdateClientDto.prototype, "foundUsOnDetail", 2);
|
|
9947
9953
|
__decorateClass([
|
|
9948
|
-
|
|
9954
|
+
IsOptional46(),
|
|
9949
9955
|
IsString52({ message: "About company must be a string." })
|
|
9950
9956
|
], UpdateClientDto.prototype, "about", 2);
|
|
9951
9957
|
__decorateClass([
|
|
9952
|
-
|
|
9958
|
+
IsOptional46(),
|
|
9953
9959
|
IsString52({ message: "Website must be a string." })
|
|
9954
9960
|
], UpdateClientDto.prototype, "webSite", 2);
|
|
9955
9961
|
__decorateClass([
|
|
9956
|
-
|
|
9962
|
+
IsOptional46(),
|
|
9957
9963
|
IsString52({ message: "Company address must be a string." })
|
|
9958
9964
|
], UpdateClientDto.prototype, "companyAddress", 2);
|
|
9959
9965
|
__decorateClass([
|
|
9960
|
-
|
|
9966
|
+
IsOptional46(),
|
|
9961
9967
|
IsString52({ message: "Address line must be a string." })
|
|
9962
9968
|
], UpdateClientDto.prototype, "addressLine", 2);
|
|
9963
9969
|
__decorateClass([
|
|
9964
|
-
|
|
9970
|
+
IsOptional46(),
|
|
9965
9971
|
IsString52({ message: "Postal code must be a string." })
|
|
9966
9972
|
], UpdateClientDto.prototype, "postalCode", 2);
|
|
9967
9973
|
__decorateClass([
|
|
9968
|
-
|
|
9974
|
+
IsOptional46(),
|
|
9969
9975
|
Type10(() => Number)
|
|
9970
9976
|
], UpdateClientDto.prototype, "countryId", 2);
|
|
9971
9977
|
__decorateClass([
|
|
9972
|
-
|
|
9978
|
+
IsOptional46(),
|
|
9973
9979
|
Type10(() => Number)
|
|
9974
9980
|
], UpdateClientDto.prototype, "stateId", 2);
|
|
9975
9981
|
__decorateClass([
|
|
9976
|
-
|
|
9982
|
+
IsOptional46(),
|
|
9977
9983
|
Type10(() => Number)
|
|
9978
9984
|
], UpdateClientDto.prototype, "cityId", 2);
|
|
9979
9985
|
|
|
9980
9986
|
// src/modules/client-admin/dto/admin-export-clientV2-optimised.dto.ts
|
|
9981
|
-
import { IsOptional as
|
|
9987
|
+
import { IsOptional as IsOptional47, IsArray as IsArray16, IsEmail as IsEmail19 } from "class-validator";
|
|
9982
9988
|
import { Transform as Transform6 } from "class-transformer";
|
|
9983
9989
|
var AdminExportClientV2OptimisedDto = class {
|
|
9984
9990
|
};
|
|
9985
9991
|
__decorateClass([
|
|
9986
|
-
|
|
9992
|
+
IsOptional47(),
|
|
9987
9993
|
Transform6(
|
|
9988
9994
|
({ value }) => typeof value === "string" ? value.split(",").map((email) => email.trim().toLowerCase()).filter(Boolean) : []
|
|
9989
9995
|
),
|
|
@@ -10026,7 +10032,7 @@ var FREELANCER_DECLARATION_PATTERN = {
|
|
|
10026
10032
|
};
|
|
10027
10033
|
|
|
10028
10034
|
// src/modules/user/freelancer-declaration/dto/freelancer-declaration.dto.ts
|
|
10029
|
-
import { IsOptional as
|
|
10035
|
+
import { IsOptional as IsOptional48, IsEnum as IsEnum33, IsString as IsString53, IsNotEmpty as IsNotEmpty78, IsIn as IsIn3 } from "class-validator";
|
|
10030
10036
|
var DocumentTypeEnum = /* @__PURE__ */ ((DocumentTypeEnum2) => {
|
|
10031
10037
|
DocumentTypeEnum2["AADHAAR"] = "AADHAAR_CARD";
|
|
10032
10038
|
DocumentTypeEnum2["PASSPORT"] = "PASSPORT";
|
|
@@ -10037,7 +10043,7 @@ var DocumentTypeEnum = /* @__PURE__ */ ((DocumentTypeEnum2) => {
|
|
|
10037
10043
|
var FreelancerDeclarationDto = class {
|
|
10038
10044
|
};
|
|
10039
10045
|
__decorateClass([
|
|
10040
|
-
|
|
10046
|
+
IsOptional48(),
|
|
10041
10047
|
IsString53({ message: "UUID must be a string" })
|
|
10042
10048
|
], FreelancerDeclarationDto.prototype, "uuid", 2);
|
|
10043
10049
|
__decorateClass([
|
|
@@ -10061,7 +10067,7 @@ var CLIENT_CANDIDATE_PREFERENCE_PATTERN = {
|
|
|
10061
10067
|
};
|
|
10062
10068
|
|
|
10063
10069
|
// src/modules/user/client-candidate-preference/dto/mark-candidate-status.dto.ts
|
|
10064
|
-
import { IsNotEmpty as IsNotEmpty79, IsNumber as IsNumber12, IsOptional as
|
|
10070
|
+
import { IsNotEmpty as IsNotEmpty79, IsNumber as IsNumber12, IsOptional as IsOptional49 } from "class-validator";
|
|
10065
10071
|
import { Type as Type11 } from "class-transformer";
|
|
10066
10072
|
var MarkCandidateStatusDto = class {
|
|
10067
10073
|
};
|
|
@@ -10071,13 +10077,13 @@ __decorateClass([
|
|
|
10071
10077
|
Type11(() => Number)
|
|
10072
10078
|
], MarkCandidateStatusDto.prototype, "candidateId", 2);
|
|
10073
10079
|
__decorateClass([
|
|
10074
|
-
|
|
10080
|
+
IsOptional49(),
|
|
10075
10081
|
IsNumber12({}, { message: "Job ID must be a number." }),
|
|
10076
10082
|
Type11(() => Number)
|
|
10077
10083
|
], MarkCandidateStatusDto.prototype, "jobId", 2);
|
|
10078
10084
|
|
|
10079
10085
|
// src/modules/user/client-candidate-preference/dto/mark-candidate-status-bulk.dto.ts
|
|
10080
|
-
import { ArrayNotEmpty as ArrayNotEmpty9, IsArray as IsArray17, IsNumber as IsNumber13, IsOptional as
|
|
10086
|
+
import { ArrayNotEmpty as ArrayNotEmpty9, IsArray as IsArray17, IsNumber as IsNumber13, IsOptional as IsOptional50 } from "class-validator";
|
|
10081
10087
|
import { Type as Type12 } from "class-transformer";
|
|
10082
10088
|
var MarkCandidateStatusBulkDto = class {
|
|
10083
10089
|
};
|
|
@@ -10088,7 +10094,7 @@ __decorateClass([
|
|
|
10088
10094
|
Type12(() => Number)
|
|
10089
10095
|
], MarkCandidateStatusBulkDto.prototype, "candidateIds", 2);
|
|
10090
10096
|
__decorateClass([
|
|
10091
|
-
|
|
10097
|
+
IsOptional50(),
|
|
10092
10098
|
IsNumber13({}, { message: "Job ID must be a number." }),
|
|
10093
10099
|
Type12(() => Number)
|
|
10094
10100
|
], MarkCandidateStatusBulkDto.prototype, "jobId", 2);
|
|
@@ -10104,17 +10110,17 @@ var CMS_PATTERNS = {
|
|
|
10104
10110
|
};
|
|
10105
10111
|
|
|
10106
10112
|
// src/modules/cms/dto/create-cms.dto.ts
|
|
10107
|
-
import { IsBoolean as IsBoolean15, IsNotEmpty as IsNotEmpty80, IsOptional as
|
|
10113
|
+
import { IsBoolean as IsBoolean15, IsNotEmpty as IsNotEmpty80, IsOptional as IsOptional51 } from "class-validator";
|
|
10108
10114
|
var CreateCmsDto = class {
|
|
10109
10115
|
};
|
|
10110
10116
|
__decorateClass([
|
|
10111
10117
|
IsNotEmpty80({ message: "Please enter name." })
|
|
10112
10118
|
], CreateCmsDto.prototype, "title", 2);
|
|
10113
10119
|
__decorateClass([
|
|
10114
|
-
|
|
10120
|
+
IsOptional51()
|
|
10115
10121
|
], CreateCmsDto.prototype, "content", 2);
|
|
10116
10122
|
__decorateClass([
|
|
10117
|
-
|
|
10123
|
+
IsOptional51(),
|
|
10118
10124
|
IsBoolean15({ message: "Is active must be a boolean value" })
|
|
10119
10125
|
], CreateCmsDto.prototype, "isActive", 2);
|
|
10120
10126
|
|
|
@@ -10128,20 +10134,20 @@ __decorateClass([
|
|
|
10128
10134
|
], UpdateCmsStatusDto.prototype, "isActive", 2);
|
|
10129
10135
|
|
|
10130
10136
|
// src/modules/cms/dto/update-cms.dto.ts
|
|
10131
|
-
import { IsBoolean as IsBoolean17, IsNotEmpty as IsNotEmpty82, IsOptional as
|
|
10137
|
+
import { IsBoolean as IsBoolean17, IsNotEmpty as IsNotEmpty82, IsOptional as IsOptional52 } from "class-validator";
|
|
10132
10138
|
var UpdateCmsDto = class {
|
|
10133
10139
|
};
|
|
10134
10140
|
__decorateClass([
|
|
10135
|
-
|
|
10141
|
+
IsOptional52()
|
|
10136
10142
|
], UpdateCmsDto.prototype, "uuid", 2);
|
|
10137
10143
|
__decorateClass([
|
|
10138
10144
|
IsNotEmpty82({ message: "Please enter name." })
|
|
10139
10145
|
], UpdateCmsDto.prototype, "title", 2);
|
|
10140
10146
|
__decorateClass([
|
|
10141
|
-
|
|
10147
|
+
IsOptional52()
|
|
10142
10148
|
], UpdateCmsDto.prototype, "content", 2);
|
|
10143
10149
|
__decorateClass([
|
|
10144
|
-
|
|
10150
|
+
IsOptional52(),
|
|
10145
10151
|
IsBoolean17({ message: "Is active must be a boolean value" })
|
|
10146
10152
|
], UpdateCmsDto.prototype, "isActive", 2);
|
|
10147
10153
|
|
|
@@ -10182,7 +10188,7 @@ import {
|
|
|
10182
10188
|
IsString as IsString54,
|
|
10183
10189
|
IsEnum as IsEnum34,
|
|
10184
10190
|
IsInt as IsInt10,
|
|
10185
|
-
IsOptional as
|
|
10191
|
+
IsOptional as IsOptional53,
|
|
10186
10192
|
IsArray as IsArray18,
|
|
10187
10193
|
IsDateString as IsDateString3,
|
|
10188
10194
|
IsNotEmpty as IsNotEmpty83,
|
|
@@ -10209,7 +10215,7 @@ __decorateClass([
|
|
|
10209
10215
|
IsNotEmpty83({ message: "Job role is required." })
|
|
10210
10216
|
], AdminCreateJobInformationDto.prototype, "jobRole", 2);
|
|
10211
10217
|
__decorateClass([
|
|
10212
|
-
|
|
10218
|
+
IsOptional53(),
|
|
10213
10219
|
IsString54({ message: "Note must be a string." })
|
|
10214
10220
|
], AdminCreateJobInformationDto.prototype, "note", 2);
|
|
10215
10221
|
__decorateClass([
|
|
@@ -10268,19 +10274,19 @@ __decorateClass([
|
|
|
10268
10274
|
)
|
|
10269
10275
|
], AdminCreateJobInformationDto.prototype, "tentativeEndDate", 2);
|
|
10270
10276
|
__decorateClass([
|
|
10271
|
-
|
|
10277
|
+
IsOptional53(),
|
|
10272
10278
|
IsString54({ message: "Additional comment must be a string." })
|
|
10273
10279
|
], AdminCreateJobInformationDto.prototype, "additionalComment", 2);
|
|
10274
10280
|
__decorateClass([
|
|
10275
|
-
|
|
10281
|
+
IsOptional53(),
|
|
10276
10282
|
IsInt10({ message: "Country ID must be a valid integer." })
|
|
10277
10283
|
], AdminCreateJobInformationDto.prototype, "countryId", 2);
|
|
10278
10284
|
__decorateClass([
|
|
10279
|
-
|
|
10285
|
+
IsOptional53(),
|
|
10280
10286
|
IsInt10({ message: "State ID must be a valid integer." })
|
|
10281
10287
|
], AdminCreateJobInformationDto.prototype, "stateId", 2);
|
|
10282
10288
|
__decorateClass([
|
|
10283
|
-
|
|
10289
|
+
IsOptional53(),
|
|
10284
10290
|
IsInt10({ message: "City ID must be a valid integer." })
|
|
10285
10291
|
], AdminCreateJobInformationDto.prototype, "cityId", 2);
|
|
10286
10292
|
__decorateClass([
|
|
@@ -10293,7 +10299,7 @@ import {
|
|
|
10293
10299
|
IsString as IsString55,
|
|
10294
10300
|
IsEnum as IsEnum35,
|
|
10295
10301
|
IsInt as IsInt11,
|
|
10296
|
-
IsOptional as
|
|
10302
|
+
IsOptional as IsOptional54,
|
|
10297
10303
|
IsArray as IsArray19,
|
|
10298
10304
|
IsDateString as IsDateString4,
|
|
10299
10305
|
IsNotEmpty as IsNotEmpty84,
|
|
@@ -10320,7 +10326,7 @@ __decorateClass([
|
|
|
10320
10326
|
IsNotEmpty84({ message: "Job role is required." })
|
|
10321
10327
|
], AdminUpdateJobInformationDto.prototype, "jobRole", 2);
|
|
10322
10328
|
__decorateClass([
|
|
10323
|
-
|
|
10329
|
+
IsOptional54(),
|
|
10324
10330
|
IsString55({ message: "Note must be a string." })
|
|
10325
10331
|
], AdminUpdateJobInformationDto.prototype, "note", 2);
|
|
10326
10332
|
__decorateClass([
|
|
@@ -10379,19 +10385,19 @@ __decorateClass([
|
|
|
10379
10385
|
)
|
|
10380
10386
|
], AdminUpdateJobInformationDto.prototype, "tentativeEndDate", 2);
|
|
10381
10387
|
__decorateClass([
|
|
10382
|
-
|
|
10388
|
+
IsOptional54(),
|
|
10383
10389
|
IsString55({ message: "Additional comment must be a string." })
|
|
10384
10390
|
], AdminUpdateJobInformationDto.prototype, "additionalComment", 2);
|
|
10385
10391
|
__decorateClass([
|
|
10386
|
-
|
|
10392
|
+
IsOptional54(),
|
|
10387
10393
|
IsInt11({ message: "Country ID must be a valid integer." })
|
|
10388
10394
|
], AdminUpdateJobInformationDto.prototype, "countryId", 2);
|
|
10389
10395
|
__decorateClass([
|
|
10390
|
-
|
|
10396
|
+
IsOptional54(),
|
|
10391
10397
|
IsInt11({ message: "State ID must be a valid integer." })
|
|
10392
10398
|
], AdminUpdateJobInformationDto.prototype, "stateId", 2);
|
|
10393
10399
|
__decorateClass([
|
|
10394
|
-
|
|
10400
|
+
IsOptional54(),
|
|
10395
10401
|
IsInt11({ message: "City ID must be a valid integer." })
|
|
10396
10402
|
], AdminUpdateJobInformationDto.prototype, "cityId", 2);
|
|
10397
10403
|
__decorateClass([
|
|
@@ -10405,7 +10411,7 @@ import {
|
|
|
10405
10411
|
IsArray as IsArray20,
|
|
10406
10412
|
ArrayNotEmpty as ArrayNotEmpty12,
|
|
10407
10413
|
IsNumber as IsNumber16,
|
|
10408
|
-
IsOptional as
|
|
10414
|
+
IsOptional as IsOptional55,
|
|
10409
10415
|
IsEnum as IsEnum36,
|
|
10410
10416
|
Min as Min9,
|
|
10411
10417
|
ValidateIf as ValidateIf11,
|
|
@@ -10447,15 +10453,15 @@ var BillingCycleEnumV23 = /* @__PURE__ */ ((BillingCycleEnumV24) => {
|
|
|
10447
10453
|
var JobLocationAdminDto = class {
|
|
10448
10454
|
};
|
|
10449
10455
|
__decorateClass([
|
|
10450
|
-
|
|
10456
|
+
IsOptional55(),
|
|
10451
10457
|
IsNumber16()
|
|
10452
10458
|
], JobLocationAdminDto.prototype, "countryId", 2);
|
|
10453
10459
|
__decorateClass([
|
|
10454
|
-
|
|
10460
|
+
IsOptional55(),
|
|
10455
10461
|
IsNumber16()
|
|
10456
10462
|
], JobLocationAdminDto.prototype, "stateId", 2);
|
|
10457
10463
|
__decorateClass([
|
|
10458
|
-
|
|
10464
|
+
IsOptional55(),
|
|
10459
10465
|
IsNumber16()
|
|
10460
10466
|
], JobLocationAdminDto.prototype, "cityId", 2);
|
|
10461
10467
|
var AdminJobBasicInformationV2Dto = class {
|
|
@@ -10464,7 +10470,7 @@ var AdminJobBasicInformationV2Dto = class {
|
|
|
10464
10470
|
}
|
|
10465
10471
|
};
|
|
10466
10472
|
__decorateClass([
|
|
10467
|
-
|
|
10473
|
+
IsOptional55(),
|
|
10468
10474
|
Type15(() => Boolean)
|
|
10469
10475
|
], AdminJobBasicInformationV2Dto.prototype, "isDraft", 2);
|
|
10470
10476
|
__decorateClass([
|
|
@@ -10475,12 +10481,12 @@ __decorateClass([
|
|
|
10475
10481
|
IsString56({ message: "Job role must be a string" })
|
|
10476
10482
|
], AdminJobBasicInformationV2Dto.prototype, "jobRole", 2);
|
|
10477
10483
|
__decorateClass([
|
|
10478
|
-
|
|
10484
|
+
IsOptional55(),
|
|
10479
10485
|
IsString56({ message: "Note must be a string" })
|
|
10480
10486
|
], AdminJobBasicInformationV2Dto.prototype, "note", 2);
|
|
10481
10487
|
__decorateClass([
|
|
10482
10488
|
ValidateIf11((o) => !o.isDraft),
|
|
10483
|
-
|
|
10489
|
+
IsOptional55(),
|
|
10484
10490
|
IsArray20({ message: "Skills must be an array" }),
|
|
10485
10491
|
ArrayNotEmpty12({ message: "Please select at least one skill" }),
|
|
10486
10492
|
IsString56({ each: true, message: "Each skill must be a string" }),
|
|
@@ -10509,29 +10515,29 @@ __decorateClass([
|
|
|
10509
10515
|
})
|
|
10510
10516
|
], AdminJobBasicInformationV2Dto.prototype, "typeOfEmployment", 2);
|
|
10511
10517
|
__decorateClass([
|
|
10512
|
-
|
|
10518
|
+
IsOptional55(),
|
|
10513
10519
|
IsEnum36(BillingCycleEnumV23, {
|
|
10514
10520
|
message: `Billing cycle must be one of: ${Object.values(BillingCycleEnumV23).join(", ")}`
|
|
10515
10521
|
})
|
|
10516
10522
|
], AdminJobBasicInformationV2Dto.prototype, "billingCycle", 2);
|
|
10517
10523
|
__decorateClass([
|
|
10518
|
-
|
|
10524
|
+
IsOptional55(),
|
|
10519
10525
|
IsNumber16({}, { message: "Expected salary (from) must be a number" }),
|
|
10520
10526
|
Min9(0, { message: "Expected salary (from) cannot be negative" }),
|
|
10521
10527
|
Type15(() => Number)
|
|
10522
10528
|
], AdminJobBasicInformationV2Dto.prototype, "expectedSalaryFrom", 2);
|
|
10523
10529
|
__decorateClass([
|
|
10524
|
-
|
|
10530
|
+
IsOptional55(),
|
|
10525
10531
|
IsNumber16({}, { message: "Expected salary (to) must be a number" }),
|
|
10526
10532
|
Min9(0, { message: "Expected salary (to) cannot be negative" }),
|
|
10527
10533
|
Type15(() => Number)
|
|
10528
10534
|
], AdminJobBasicInformationV2Dto.prototype, "expectedSalaryTo", 2);
|
|
10529
10535
|
__decorateClass([
|
|
10530
|
-
|
|
10536
|
+
IsOptional55(),
|
|
10531
10537
|
Type15(() => JobLocationAdminDto)
|
|
10532
10538
|
], AdminJobBasicInformationV2Dto.prototype, "locations", 2);
|
|
10533
10539
|
__decorateClass([
|
|
10534
|
-
|
|
10540
|
+
IsOptional55(),
|
|
10535
10541
|
IsString56({ message: "Academic qualification must be a string" })
|
|
10536
10542
|
], AdminJobBasicInformationV2Dto.prototype, "academicQualification", 2);
|
|
10537
10543
|
__decorateClass([
|
|
@@ -10553,58 +10559,58 @@ __decorateClass([
|
|
|
10553
10559
|
IsString56({ message: "Years of experience must be a string" })
|
|
10554
10560
|
], AdminJobBasicInformationV2Dto.prototype, "yearsOfExperienceTo", 2);
|
|
10555
10561
|
__decorateClass([
|
|
10556
|
-
|
|
10562
|
+
IsOptional55(),
|
|
10557
10563
|
IsString56({ message: "Business industry must be a string" })
|
|
10558
10564
|
], AdminJobBasicInformationV2Dto.prototype, "businessIndustry", 2);
|
|
10559
10565
|
__decorateClass([
|
|
10560
|
-
|
|
10566
|
+
IsOptional55(),
|
|
10561
10567
|
IsString56({ message: "Project name must be a string" })
|
|
10562
10568
|
], AdminJobBasicInformationV2Dto.prototype, "projectName", 2);
|
|
10563
10569
|
__decorateClass([
|
|
10564
|
-
|
|
10570
|
+
IsOptional55()
|
|
10565
10571
|
], AdminJobBasicInformationV2Dto.prototype, "hideExpectedSalaryFrom", 2);
|
|
10566
10572
|
__decorateClass([
|
|
10567
|
-
|
|
10573
|
+
IsOptional55()
|
|
10568
10574
|
], AdminJobBasicInformationV2Dto.prototype, "hideExpectedSalaryTo", 2);
|
|
10569
10575
|
__decorateClass([
|
|
10570
|
-
|
|
10576
|
+
IsOptional55(),
|
|
10571
10577
|
IsNumber16({}, { message: "Expected annual budget (from) must be a number" }),
|
|
10572
10578
|
Min9(0, { message: "Expected annual budget (from) cannot be negative" }),
|
|
10573
10579
|
Type15(() => Number)
|
|
10574
10580
|
], AdminJobBasicInformationV2Dto.prototype, "expectedAnnualBudgetFrom", 2);
|
|
10575
10581
|
__decorateClass([
|
|
10576
|
-
|
|
10582
|
+
IsOptional55()
|
|
10577
10583
|
], AdminJobBasicInformationV2Dto.prototype, "hideExpectedAnnualBudgetFrom", 2);
|
|
10578
10584
|
__decorateClass([
|
|
10579
|
-
|
|
10585
|
+
IsOptional55(),
|
|
10580
10586
|
IsNumber16({}, { message: "Expected annual budget (to) must be a number" }),
|
|
10581
10587
|
Min9(0, { message: "Expected annual budget (to) cannot be negative" }),
|
|
10582
10588
|
Type15(() => Number)
|
|
10583
10589
|
], AdminJobBasicInformationV2Dto.prototype, "expectedAnnualBudgetTo", 2);
|
|
10584
10590
|
__decorateClass([
|
|
10585
|
-
|
|
10591
|
+
IsOptional55()
|
|
10586
10592
|
], AdminJobBasicInformationV2Dto.prototype, "hideExpectedAnnualBudgetTo", 2);
|
|
10587
10593
|
__decorateClass([
|
|
10588
|
-
|
|
10594
|
+
IsOptional55(),
|
|
10589
10595
|
IsNumber16({}, { message: "Number of hours must be a number" }),
|
|
10590
10596
|
Min9(0, { message: "Number of hours cannot be negative" }),
|
|
10591
10597
|
Max5(40, { message: "Number of hours cannot exceed 40" }),
|
|
10592
10598
|
Type15(() => Number)
|
|
10593
10599
|
], AdminJobBasicInformationV2Dto.prototype, "numberOfHours", 2);
|
|
10594
10600
|
__decorateClass([
|
|
10595
|
-
|
|
10601
|
+
IsOptional55()
|
|
10596
10602
|
], AdminJobBasicInformationV2Dto.prototype, "years", 2);
|
|
10597
10603
|
__decorateClass([
|
|
10598
|
-
|
|
10604
|
+
IsOptional55()
|
|
10599
10605
|
], AdminJobBasicInformationV2Dto.prototype, "months", 2);
|
|
10600
10606
|
__decorateClass([
|
|
10601
|
-
|
|
10607
|
+
IsOptional55()
|
|
10602
10608
|
], AdminJobBasicInformationV2Dto.prototype, "weeks", 2);
|
|
10603
10609
|
__decorateClass([
|
|
10604
|
-
|
|
10610
|
+
IsOptional55()
|
|
10605
10611
|
], AdminJobBasicInformationV2Dto.prototype, "days", 2);
|
|
10606
10612
|
__decorateClass([
|
|
10607
|
-
|
|
10613
|
+
IsOptional55(),
|
|
10608
10614
|
IsString56({ message: "Additional comment must be a string" }),
|
|
10609
10615
|
MaxLength22(500, { message: "Additional comment must not exceed 500 characters" })
|
|
10610
10616
|
], AdminJobBasicInformationV2Dto.prototype, "additionalComment", 2);
|
|
@@ -10612,14 +10618,14 @@ __decorateClass([
|
|
|
10612
10618
|
ValidateIf11((o) => !o.isDraft),
|
|
10613
10619
|
IsArray20({ message: "Good to have skills must be an array" }),
|
|
10614
10620
|
IsString56({ each: true, message: "Each skill must be a string" }),
|
|
10615
|
-
|
|
10621
|
+
IsOptional55(),
|
|
10616
10622
|
Type15(() => String)
|
|
10617
10623
|
], AdminJobBasicInformationV2Dto.prototype, "goodToHaveSkills", 2);
|
|
10618
10624
|
__decorateClass([
|
|
10619
|
-
|
|
10625
|
+
IsOptional55()
|
|
10620
10626
|
], AdminJobBasicInformationV2Dto.prototype, "jobRoleCanonicalName", 2);
|
|
10621
10627
|
__decorateClass([
|
|
10622
|
-
|
|
10628
|
+
IsOptional55(),
|
|
10623
10629
|
IsEnum36(AdminStepCompletedEnumV2, {
|
|
10624
10630
|
message: `Type of stepCompleted must be one of: ${Object.values(
|
|
10625
10631
|
AdminStepCompletedEnumV2
|
|
@@ -10634,7 +10640,7 @@ var LEAD_PATTERN = {
|
|
|
10634
10640
|
};
|
|
10635
10641
|
|
|
10636
10642
|
// src/modules/lead/dto/create-lead.dto.ts
|
|
10637
|
-
import { IsString as IsString57, IsEmail as IsEmail20, IsOptional as
|
|
10643
|
+
import { IsString as IsString57, IsEmail as IsEmail20, IsOptional as IsOptional56, IsEnum as IsEnum37 } from "class-validator";
|
|
10638
10644
|
var CategoryEmumDto = /* @__PURE__ */ ((CategoryEmumDto2) => {
|
|
10639
10645
|
CategoryEmumDto2["BUSINESS"] = "BUSINESS";
|
|
10640
10646
|
CategoryEmumDto2["FREELANCER"] = "FREELANCER";
|
|
@@ -10655,7 +10661,7 @@ __decorateClass([
|
|
|
10655
10661
|
IsString57({ message: "Mobile must be a string (e.g., 1243253534)" })
|
|
10656
10662
|
], CreateLeadDto.prototype, "mobile", 2);
|
|
10657
10663
|
__decorateClass([
|
|
10658
|
-
|
|
10664
|
+
IsOptional56(),
|
|
10659
10665
|
IsString57({ message: "Description must be a string" })
|
|
10660
10666
|
], CreateLeadDto.prototype, "description", 2);
|
|
10661
10667
|
__decorateClass([
|
|
@@ -10681,7 +10687,7 @@ var ADMIN_ROLE_PATTERN = {
|
|
|
10681
10687
|
};
|
|
10682
10688
|
|
|
10683
10689
|
// src/modules/admin-role/dto/create-admin-role.dto.ts
|
|
10684
|
-
import { IsBoolean as IsBoolean18, IsNotEmpty as IsNotEmpty86, IsOptional as
|
|
10690
|
+
import { IsBoolean as IsBoolean18, IsNotEmpty as IsNotEmpty86, IsOptional as IsOptional57, IsString as IsString58 } from "class-validator";
|
|
10685
10691
|
var CreateAdminRoleDto = class {
|
|
10686
10692
|
};
|
|
10687
10693
|
__decorateClass([
|
|
@@ -10689,16 +10695,16 @@ __decorateClass([
|
|
|
10689
10695
|
IsString58({ message: "Role name must be a string." })
|
|
10690
10696
|
], CreateAdminRoleDto.prototype, "roleName", 2);
|
|
10691
10697
|
__decorateClass([
|
|
10692
|
-
|
|
10698
|
+
IsOptional57(),
|
|
10693
10699
|
IsString58({ message: "Role description must be a string." })
|
|
10694
10700
|
], CreateAdminRoleDto.prototype, "roleDescription", 2);
|
|
10695
10701
|
__decorateClass([
|
|
10696
|
-
|
|
10702
|
+
IsOptional57(),
|
|
10697
10703
|
IsBoolean18({ message: "Is active must be a boolean value" })
|
|
10698
10704
|
], CreateAdminRoleDto.prototype, "isActive", 2);
|
|
10699
10705
|
|
|
10700
10706
|
// src/modules/admin-role/dto/update-admin-role.dto.ts
|
|
10701
|
-
import { IsBoolean as IsBoolean19, IsNotEmpty as IsNotEmpty87, IsOptional as
|
|
10707
|
+
import { IsBoolean as IsBoolean19, IsNotEmpty as IsNotEmpty87, IsOptional as IsOptional58, IsString as IsString59 } from "class-validator";
|
|
10702
10708
|
var UpdateAdminRoleDto = class {
|
|
10703
10709
|
};
|
|
10704
10710
|
__decorateClass([
|
|
@@ -10706,11 +10712,11 @@ __decorateClass([
|
|
|
10706
10712
|
IsString59({ message: "Role name must be a string." })
|
|
10707
10713
|
], UpdateAdminRoleDto.prototype, "roleName", 2);
|
|
10708
10714
|
__decorateClass([
|
|
10709
|
-
|
|
10715
|
+
IsOptional58(),
|
|
10710
10716
|
IsString59({ message: "Role description must be a string." })
|
|
10711
10717
|
], UpdateAdminRoleDto.prototype, "roleDescription", 2);
|
|
10712
10718
|
__decorateClass([
|
|
10713
|
-
|
|
10719
|
+
IsOptional58(),
|
|
10714
10720
|
IsBoolean19({ message: "Is active must be a boolean value." })
|
|
10715
10721
|
], UpdateAdminRoleDto.prototype, "isActive", 2);
|
|
10716
10722
|
|
|
@@ -10892,7 +10898,7 @@ import {
|
|
|
10892
10898
|
IsEnum as IsEnum39,
|
|
10893
10899
|
IsEmail as IsEmail22,
|
|
10894
10900
|
ValidateNested as ValidateNested9,
|
|
10895
|
-
IsOptional as
|
|
10901
|
+
IsOptional as IsOptional60
|
|
10896
10902
|
} from "class-validator";
|
|
10897
10903
|
import { Type as Type17 } from "class-transformer";
|
|
10898
10904
|
var InterviewInviteCandidateType = /* @__PURE__ */ ((InterviewInviteCandidateType2) => {
|
|
@@ -10940,13 +10946,13 @@ __decorateClass([
|
|
|
10940
10946
|
IsArray22({ message: "Existing candidates must be an array." }),
|
|
10941
10947
|
ValidateNested9({ each: true }),
|
|
10942
10948
|
Type17(() => ExistingCandidateDto2),
|
|
10943
|
-
|
|
10949
|
+
IsOptional60()
|
|
10944
10950
|
], SendInterviewInviteDto.prototype, "existingCandidates", 2);
|
|
10945
10951
|
__decorateClass([
|
|
10946
10952
|
IsArray22({ message: "New candidates must be an array." }),
|
|
10947
10953
|
ValidateNested9({ each: true }),
|
|
10948
10954
|
Type17(() => NewCandidateDto2),
|
|
10949
|
-
|
|
10955
|
+
IsOptional60()
|
|
10950
10956
|
], SendInterviewInviteDto.prototype, "newCandidates", 2);
|
|
10951
10957
|
|
|
10952
10958
|
// src/modules/interview/dto/create-f2f-interview.dto.ts
|
|
@@ -11001,7 +11007,7 @@ __decorateClass([
|
|
|
11001
11007
|
import {
|
|
11002
11008
|
IsString as IsString65,
|
|
11003
11009
|
IsNotEmpty as IsNotEmpty94,
|
|
11004
|
-
IsOptional as
|
|
11010
|
+
IsOptional as IsOptional61,
|
|
11005
11011
|
IsUUID as IsUUID22
|
|
11006
11012
|
} from "class-validator";
|
|
11007
11013
|
var CreateF2FInterviewRescheduleRequestDto = class {
|
|
@@ -11018,7 +11024,7 @@ __decorateClass([
|
|
|
11018
11024
|
IsNotEmpty94({ message: "Rescheduled slot is required." })
|
|
11019
11025
|
], CreateF2FInterviewRescheduleRequestDto.prototype, "rescheduledSlot", 2);
|
|
11020
11026
|
__decorateClass([
|
|
11021
|
-
|
|
11027
|
+
IsOptional61(),
|
|
11022
11028
|
IsString65({ message: "Freelancer request reason must be a string." })
|
|
11023
11029
|
], CreateF2FInterviewRescheduleRequestDto.prototype, "freelancerRequestReason", 2);
|
|
11024
11030
|
|
|
@@ -11047,16 +11053,16 @@ __decorateClass([
|
|
|
11047
11053
|
], RejectAIInterviewRescheduleRequestDto.prototype, "clientRejectReason", 2);
|
|
11048
11054
|
|
|
11049
11055
|
// src/modules/interview/dto/reject-f2f-interview-reschedule-request.dto.ts
|
|
11050
|
-
import { IsOptional as
|
|
11056
|
+
import { IsOptional as IsOptional63, IsString as IsString68 } from "class-validator";
|
|
11051
11057
|
var RejectF2FInterviewRescheduleRequestDto = class {
|
|
11052
11058
|
};
|
|
11053
11059
|
__decorateClass([
|
|
11054
|
-
|
|
11060
|
+
IsOptional63(),
|
|
11055
11061
|
IsString68()
|
|
11056
11062
|
], RejectF2FInterviewRescheduleRequestDto.prototype, "clientRejectReason", 2);
|
|
11057
11063
|
|
|
11058
11064
|
// src/modules/interview/dto/capture-ai-interview-result-public.dto.ts
|
|
11059
|
-
import { IsNotEmpty as IsNotEmpty96, IsString as IsString69, IsOptional as
|
|
11065
|
+
import { IsNotEmpty as IsNotEmpty96, IsString as IsString69, IsOptional as IsOptional64, IsObject as IsObject6 } from "class-validator";
|
|
11060
11066
|
var CaptureAiInterviewResultPublicDto = class {
|
|
11061
11067
|
};
|
|
11062
11068
|
__decorateClass([
|
|
@@ -11064,11 +11070,11 @@ __decorateClass([
|
|
|
11064
11070
|
IsString69({ message: "AI Interview UUID must be a string" })
|
|
11065
11071
|
], CaptureAiInterviewResultPublicDto.prototype, "aiInterviewUuid", 2);
|
|
11066
11072
|
__decorateClass([
|
|
11067
|
-
|
|
11073
|
+
IsOptional64(),
|
|
11068
11074
|
IsObject6()
|
|
11069
11075
|
], CaptureAiInterviewResultPublicDto.prototype, "result", 2);
|
|
11070
11076
|
__decorateClass([
|
|
11071
|
-
|
|
11077
|
+
IsOptional64(),
|
|
11072
11078
|
IsString69()
|
|
11073
11079
|
], CaptureAiInterviewResultPublicDto.prototype, "status", 2);
|
|
11074
11080
|
|
|
@@ -11086,32 +11092,32 @@ __decorateClass([
|
|
|
11086
11092
|
], CreateInterviewBasicInformationDto.prototype, "interviewName", 2);
|
|
11087
11093
|
|
|
11088
11094
|
// src/modules/interview/dto/update-interview-basic-information.dto.ts
|
|
11089
|
-
import { IsOptional as
|
|
11095
|
+
import { IsOptional as IsOptional66, IsString as IsString71, IsNumber as IsNumber20, IsArray as IsArray24, IsDateString as IsDateString8 } from "class-validator";
|
|
11090
11096
|
var UpdateInterviewBasicInformationDto = class {
|
|
11091
11097
|
};
|
|
11092
11098
|
__decorateClass([
|
|
11093
|
-
|
|
11099
|
+
IsOptional66(),
|
|
11094
11100
|
IsString71()
|
|
11095
11101
|
], UpdateInterviewBasicInformationDto.prototype, "title", 2);
|
|
11096
11102
|
__decorateClass([
|
|
11097
|
-
|
|
11103
|
+
IsOptional66(),
|
|
11098
11104
|
IsString71()
|
|
11099
11105
|
], UpdateInterviewBasicInformationDto.prototype, "description", 2);
|
|
11100
11106
|
__decorateClass([
|
|
11101
|
-
|
|
11107
|
+
IsOptional66(),
|
|
11102
11108
|
IsDateString8()
|
|
11103
11109
|
], UpdateInterviewBasicInformationDto.prototype, "scheduledAt", 2);
|
|
11104
11110
|
__decorateClass([
|
|
11105
|
-
|
|
11111
|
+
IsOptional66(),
|
|
11106
11112
|
IsNumber20({}, { message: "Duration must be a number" })
|
|
11107
11113
|
], UpdateInterviewBasicInformationDto.prototype, "duration", 2);
|
|
11108
11114
|
__decorateClass([
|
|
11109
|
-
|
|
11115
|
+
IsOptional66(),
|
|
11110
11116
|
IsArray24(),
|
|
11111
11117
|
IsNumber20({}, { each: true, message: "Each skill ID must be a number" })
|
|
11112
11118
|
], UpdateInterviewBasicInformationDto.prototype, "skillIds", 2);
|
|
11113
11119
|
__decorateClass([
|
|
11114
|
-
|
|
11120
|
+
IsOptional66(),
|
|
11115
11121
|
IsString71()
|
|
11116
11122
|
], UpdateInterviewBasicInformationDto.prototype, "location", 2);
|
|
11117
11123
|
|
|
@@ -11119,7 +11125,7 @@ __decorateClass([
|
|
|
11119
11125
|
import {
|
|
11120
11126
|
IsArray as IsArray25,
|
|
11121
11127
|
IsNotEmpty as IsNotEmpty98,
|
|
11122
|
-
IsOptional as
|
|
11128
|
+
IsOptional as IsOptional67,
|
|
11123
11129
|
IsString as IsString72,
|
|
11124
11130
|
ValidateNested as ValidateNested10
|
|
11125
11131
|
} from "class-validator";
|
|
@@ -11127,14 +11133,14 @@ import { Type as Type18 } from "class-transformer";
|
|
|
11127
11133
|
var InterviewSkillItemDto = class {
|
|
11128
11134
|
};
|
|
11129
11135
|
__decorateClass([
|
|
11130
|
-
|
|
11136
|
+
IsOptional67()
|
|
11131
11137
|
], InterviewSkillItemDto.prototype, "uuid", 2);
|
|
11132
11138
|
__decorateClass([
|
|
11133
11139
|
IsString72({ message: "Skill name must be a string." }),
|
|
11134
11140
|
IsNotEmpty98({ message: "Skill name is required." })
|
|
11135
11141
|
], InterviewSkillItemDto.prototype, "skill", 2);
|
|
11136
11142
|
__decorateClass([
|
|
11137
|
-
|
|
11143
|
+
IsOptional67(),
|
|
11138
11144
|
IsString72({ message: "Skill description must be a string." })
|
|
11139
11145
|
], InterviewSkillItemDto.prototype, "description", 2);
|
|
11140
11146
|
var CreateInterviewSkillsDto = class {
|
|
@@ -11150,7 +11156,7 @@ __decorateClass([
|
|
|
11150
11156
|
import {
|
|
11151
11157
|
IsArray as IsArray26,
|
|
11152
11158
|
IsNotEmpty as IsNotEmpty99,
|
|
11153
|
-
IsOptional as
|
|
11159
|
+
IsOptional as IsOptional68,
|
|
11154
11160
|
IsString as IsString73,
|
|
11155
11161
|
IsUUID as IsUUID24,
|
|
11156
11162
|
ValidateNested as ValidateNested11
|
|
@@ -11159,7 +11165,7 @@ import { Type as Type19 } from "class-transformer";
|
|
|
11159
11165
|
var CustomQuestionItemDto = class {
|
|
11160
11166
|
};
|
|
11161
11167
|
__decorateClass([
|
|
11162
|
-
|
|
11168
|
+
IsOptional68(),
|
|
11163
11169
|
IsUUID24("4", { message: "Question UUID must be a valid UUID." })
|
|
11164
11170
|
], CustomQuestionItemDto.prototype, "uuid", 2);
|
|
11165
11171
|
__decorateClass([
|
|
@@ -11169,7 +11175,7 @@ __decorateClass([
|
|
|
11169
11175
|
var AiQuestionItemDto = class {
|
|
11170
11176
|
};
|
|
11171
11177
|
__decorateClass([
|
|
11172
|
-
|
|
11178
|
+
IsOptional68(),
|
|
11173
11179
|
IsUUID24("4", { message: "Question UUID must be a valid UUID." })
|
|
11174
11180
|
], AiQuestionItemDto.prototype, "uuid", 2);
|
|
11175
11181
|
__decorateClass([
|
|
@@ -11177,20 +11183,20 @@ __decorateClass([
|
|
|
11177
11183
|
IsNotEmpty99({ message: "Question is required." })
|
|
11178
11184
|
], AiQuestionItemDto.prototype, "question", 2);
|
|
11179
11185
|
__decorateClass([
|
|
11180
|
-
|
|
11186
|
+
IsOptional68(),
|
|
11181
11187
|
IsArray26({ message: "Concepts must be an array." }),
|
|
11182
11188
|
IsString73({ each: true, message: "Each concept must be a string." })
|
|
11183
11189
|
], AiQuestionItemDto.prototype, "concepts", 2);
|
|
11184
11190
|
var CreateInterviewQuestionsDto = class {
|
|
11185
11191
|
};
|
|
11186
11192
|
__decorateClass([
|
|
11187
|
-
|
|
11193
|
+
IsOptional68(),
|
|
11188
11194
|
IsArray26({ message: "Questions must be an array." }),
|
|
11189
11195
|
ValidateNested11({ each: true }),
|
|
11190
11196
|
Type19(() => CustomQuestionItemDto)
|
|
11191
11197
|
], CreateInterviewQuestionsDto.prototype, "questions", 2);
|
|
11192
11198
|
__decorateClass([
|
|
11193
|
-
|
|
11199
|
+
IsOptional68(),
|
|
11194
11200
|
IsArray26({ message: "AI questions must be an array." }),
|
|
11195
11201
|
ValidateNested11({ each: true }),
|
|
11196
11202
|
Type19(() => AiQuestionItemDto)
|
|
@@ -11199,48 +11205,48 @@ __decorateClass([
|
|
|
11199
11205
|
// src/modules/interview/dto/update-interview-setting.dto.ts
|
|
11200
11206
|
import {
|
|
11201
11207
|
IsBoolean as IsBoolean21,
|
|
11202
|
-
IsOptional as
|
|
11208
|
+
IsOptional as IsOptional69,
|
|
11203
11209
|
IsString as IsString74
|
|
11204
11210
|
} from "class-validator";
|
|
11205
11211
|
import { Type as Type20 } from "class-transformer";
|
|
11206
11212
|
var UpdateInterviewSettingDto = class {
|
|
11207
11213
|
};
|
|
11208
11214
|
__decorateClass([
|
|
11209
|
-
|
|
11215
|
+
IsOptional69(),
|
|
11210
11216
|
IsString74({ message: "Interview language must be a string." })
|
|
11211
11217
|
], UpdateInterviewSettingDto.prototype, "interviewLanguage", 2);
|
|
11212
11218
|
__decorateClass([
|
|
11213
|
-
|
|
11219
|
+
IsOptional69(),
|
|
11214
11220
|
IsBoolean21({ message: "Allow proctoring must be a boolean." }),
|
|
11215
11221
|
Type20(() => Boolean)
|
|
11216
11222
|
], UpdateInterviewSettingDto.prototype, "allowProctoring", 2);
|
|
11217
11223
|
__decorateClass([
|
|
11218
|
-
|
|
11224
|
+
IsOptional69(),
|
|
11219
11225
|
IsString74({ message: "Interview duration must be a string." })
|
|
11220
11226
|
], UpdateInterviewSettingDto.prototype, "interviewDuration", 2);
|
|
11221
11227
|
__decorateClass([
|
|
11222
|
-
|
|
11228
|
+
IsOptional69(),
|
|
11223
11229
|
IsString74({ message: "Interview validity period must be a string." })
|
|
11224
11230
|
], UpdateInterviewSettingDto.prototype, "interviewValidityPeriod", 2);
|
|
11225
11231
|
__decorateClass([
|
|
11226
|
-
|
|
11232
|
+
IsOptional69(),
|
|
11227
11233
|
IsString74({ message: "Maximum attempts allowed must be a string." })
|
|
11228
11234
|
], UpdateInterviewSettingDto.prototype, "maximumAttemptsAllowed", 2);
|
|
11229
11235
|
__decorateClass([
|
|
11230
|
-
|
|
11236
|
+
IsOptional69(),
|
|
11231
11237
|
IsString74({ message: "Start interview message must be a string." })
|
|
11232
11238
|
], UpdateInterviewSettingDto.prototype, "startInterviewMessage", 2);
|
|
11233
11239
|
__decorateClass([
|
|
11234
|
-
|
|
11240
|
+
IsOptional69(),
|
|
11235
11241
|
IsString74({ message: "End interview message must be a string." })
|
|
11236
11242
|
], UpdateInterviewSettingDto.prototype, "endInterviewMessage", 2);
|
|
11237
11243
|
|
|
11238
11244
|
// src/modules/interview/dto/update-interview-type-information.dto.ts
|
|
11239
|
-
import { IsOptional as
|
|
11245
|
+
import { IsOptional as IsOptional70, IsString as IsString75 } from "class-validator";
|
|
11240
11246
|
var UpdateInterviewTypeInformationDto = class {
|
|
11241
11247
|
};
|
|
11242
11248
|
__decorateClass([
|
|
11243
|
-
|
|
11249
|
+
IsOptional70(),
|
|
11244
11250
|
IsString75({ message: "Interview type must be a string." })
|
|
11245
11251
|
], UpdateInterviewTypeInformationDto.prototype, "interviewType", 2);
|
|
11246
11252
|
|
|
@@ -11324,7 +11330,7 @@ __decorateClass([
|
|
|
11324
11330
|
import {
|
|
11325
11331
|
IsNotEmpty as IsNotEmpty102,
|
|
11326
11332
|
IsNumber as IsNumber23,
|
|
11327
|
-
IsOptional as
|
|
11333
|
+
IsOptional as IsOptional71,
|
|
11328
11334
|
IsString as IsString76,
|
|
11329
11335
|
IsUUID as IsUUID25,
|
|
11330
11336
|
IsEnum as IsEnum42
|
|
@@ -11357,7 +11363,7 @@ __decorateClass([
|
|
|
11357
11363
|
IsNotEmpty102({ message: "Freelancer ID is required." })
|
|
11358
11364
|
], GenerateContractDto.prototype, "freelancerId", 2);
|
|
11359
11365
|
__decorateClass([
|
|
11360
|
-
|
|
11366
|
+
IsOptional71(),
|
|
11361
11367
|
IsEnum42(ContractTypeEnumDto, {
|
|
11362
11368
|
message: "Contract type must be one of NDA, MSA, SOW, or WORK."
|
|
11363
11369
|
})
|
|
@@ -11371,7 +11377,7 @@ __decorateClass([
|
|
|
11371
11377
|
IsString76({ message: "Contract end date must be a string." })
|
|
11372
11378
|
], GenerateContractDto.prototype, "contractEndDate", 2);
|
|
11373
11379
|
__decorateClass([
|
|
11374
|
-
|
|
11380
|
+
IsOptional71(),
|
|
11375
11381
|
IsString76({ message: "Contract invoicing cycle must be a string." })
|
|
11376
11382
|
], GenerateContractDto.prototype, "contractInvoicingCycle", 2);
|
|
11377
11383
|
__decorateClass([
|
|
@@ -11381,13 +11387,13 @@ __decorateClass([
|
|
|
11381
11387
|
})
|
|
11382
11388
|
], GenerateContractDto.prototype, "preferredEngagementType", 2);
|
|
11383
11389
|
__decorateClass([
|
|
11384
|
-
|
|
11390
|
+
IsOptional71(),
|
|
11385
11391
|
IsEnum42(ContractSourceEnum, {
|
|
11386
11392
|
message: "Source must be one of AI_INTERVIEW, F2F_INTERVIEW, or JOB."
|
|
11387
11393
|
})
|
|
11388
11394
|
], GenerateContractDto.prototype, "source", 2);
|
|
11389
11395
|
__decorateClass([
|
|
11390
|
-
|
|
11396
|
+
IsOptional71(),
|
|
11391
11397
|
IsUUID25("4", { message: "Source UUID must be a valid UUID." })
|
|
11392
11398
|
], GenerateContractDto.prototype, "sourceUuid", 2);
|
|
11393
11399
|
|
|
@@ -11419,7 +11425,7 @@ __decorateClass([
|
|
|
11419
11425
|
], EscrowFundContractDto.prototype, "contractId", 2);
|
|
11420
11426
|
|
|
11421
11427
|
// src/modules/contract/dto/send-nda-contract-to-freelancer.dto.ts
|
|
11422
|
-
import { IsNotEmpty as IsNotEmpty106, IsOptional as
|
|
11428
|
+
import { IsNotEmpty as IsNotEmpty106, IsOptional as IsOptional72, IsUUID as IsUUID29, IsEnum as IsEnum43 } from "class-validator";
|
|
11423
11429
|
var ContractSourceEnum2 = /* @__PURE__ */ ((ContractSourceEnum3) => {
|
|
11424
11430
|
ContractSourceEnum3["AI_INTERVIEW"] = "AI_INTERVIEW";
|
|
11425
11431
|
ContractSourceEnum3["F2F_INTERVIEW"] = "F2F_INTERVIEW";
|
|
@@ -11433,22 +11439,22 @@ __decorateClass([
|
|
|
11433
11439
|
IsNotEmpty106({ message: "Contract UUID is required." })
|
|
11434
11440
|
], SendNdaContractToFreelancerDto.prototype, "contractUuid", 2);
|
|
11435
11441
|
__decorateClass([
|
|
11436
|
-
|
|
11442
|
+
IsOptional72(),
|
|
11437
11443
|
IsEnum43(ContractSourceEnum2, {
|
|
11438
11444
|
message: "Source must be one of AI_INTERVIEW, F2F_INTERVIEW, or JOB."
|
|
11439
11445
|
})
|
|
11440
11446
|
], SendNdaContractToFreelancerDto.prototype, "source", 2);
|
|
11441
11447
|
__decorateClass([
|
|
11442
|
-
|
|
11448
|
+
IsOptional72(),
|
|
11443
11449
|
IsUUID29("4", { message: "Source UUID must be a valid UUID." })
|
|
11444
11450
|
], SendNdaContractToFreelancerDto.prototype, "sourceUuid", 2);
|
|
11445
11451
|
|
|
11446
11452
|
// src/modules/contract/dto/reject-contract.dto.ts
|
|
11447
|
-
import { IsOptional as
|
|
11453
|
+
import { IsOptional as IsOptional73, IsString as IsString78 } from "class-validator";
|
|
11448
11454
|
var RejectContractDto = class {
|
|
11449
11455
|
};
|
|
11450
11456
|
__decorateClass([
|
|
11451
|
-
|
|
11457
|
+
IsOptional73(),
|
|
11452
11458
|
IsString78({ message: "Reject reason must be a string." })
|
|
11453
11459
|
], RejectContractDto.prototype, "rejectReason", 2);
|
|
11454
11460
|
|
|
@@ -11483,7 +11489,7 @@ __decorateClass([
|
|
|
11483
11489
|
], CreateCheckoutSessionDto.prototype, "amount", 2);
|
|
11484
11490
|
|
|
11485
11491
|
// src/modules/stripe/dto/pre-checkout-calculation.dto.ts
|
|
11486
|
-
import { IsNotEmpty as IsNotEmpty108, IsNumber as IsNumber24, IsOptional as
|
|
11492
|
+
import { IsNotEmpty as IsNotEmpty108, IsNumber as IsNumber24, IsOptional as IsOptional74, IsString as IsString79 } from "class-validator";
|
|
11487
11493
|
var PreCheckoutCalculationDto = class {
|
|
11488
11494
|
};
|
|
11489
11495
|
__decorateClass([
|
|
@@ -11491,16 +11497,16 @@ __decorateClass([
|
|
|
11491
11497
|
IsNumber24({}, { message: "Amount must be a number" })
|
|
11492
11498
|
], PreCheckoutCalculationDto.prototype, "amount", 2);
|
|
11493
11499
|
__decorateClass([
|
|
11494
|
-
|
|
11500
|
+
IsOptional74(),
|
|
11495
11501
|
IsString79()
|
|
11496
11502
|
], PreCheckoutCalculationDto.prototype, "currency", 2);
|
|
11497
11503
|
__decorateClass([
|
|
11498
|
-
|
|
11504
|
+
IsOptional74(),
|
|
11499
11505
|
IsString79()
|
|
11500
11506
|
], PreCheckoutCalculationDto.prototype, "description", 2);
|
|
11501
11507
|
|
|
11502
11508
|
// src/modules/stripe/dto/client-add-fund.dto.ts
|
|
11503
|
-
import { IsNotEmpty as IsNotEmpty109, IsNumber as IsNumber25, IsOptional as
|
|
11509
|
+
import { IsNotEmpty as IsNotEmpty109, IsNumber as IsNumber25, IsOptional as IsOptional75, IsString as IsString80 } from "class-validator";
|
|
11504
11510
|
var ClientAddFundDto = class {
|
|
11505
11511
|
};
|
|
11506
11512
|
__decorateClass([
|
|
@@ -11508,11 +11514,11 @@ __decorateClass([
|
|
|
11508
11514
|
IsNumber25({}, { message: "Amount must be a number" })
|
|
11509
11515
|
], ClientAddFundDto.prototype, "amount", 2);
|
|
11510
11516
|
__decorateClass([
|
|
11511
|
-
|
|
11517
|
+
IsOptional75(),
|
|
11512
11518
|
IsString80()
|
|
11513
11519
|
], ClientAddFundDto.prototype, "currency", 2);
|
|
11514
11520
|
__decorateClass([
|
|
11515
|
-
|
|
11521
|
+
IsOptional75(),
|
|
11516
11522
|
IsString80()
|
|
11517
11523
|
], ClientAddFundDto.prototype, "description", 2);
|
|
11518
11524
|
|
|
@@ -11571,7 +11577,7 @@ import {
|
|
|
11571
11577
|
IsDateString as IsDateString10,
|
|
11572
11578
|
IsInt as IsInt13,
|
|
11573
11579
|
IsNotEmpty as IsNotEmpty111,
|
|
11574
|
-
IsOptional as
|
|
11580
|
+
IsOptional as IsOptional76,
|
|
11575
11581
|
IsString as IsString81,
|
|
11576
11582
|
Matches as Matches18,
|
|
11577
11583
|
IsNumber as IsNumber26
|
|
@@ -11603,26 +11609,26 @@ __decorateClass([
|
|
|
11603
11609
|
})
|
|
11604
11610
|
], CreateFreelancerTimesheetDto.prototype, "endTime", 2);
|
|
11605
11611
|
__decorateClass([
|
|
11606
|
-
|
|
11612
|
+
IsOptional76(),
|
|
11607
11613
|
IsInt13()
|
|
11608
11614
|
], CreateFreelancerTimesheetDto.prototype, "taskId", 2);
|
|
11609
11615
|
__decorateClass([
|
|
11610
|
-
|
|
11616
|
+
IsOptional76(),
|
|
11611
11617
|
IsString81()
|
|
11612
11618
|
], CreateFreelancerTimesheetDto.prototype, "projectName", 2);
|
|
11613
11619
|
__decorateClass([
|
|
11614
|
-
|
|
11620
|
+
IsOptional76(),
|
|
11615
11621
|
IsString81()
|
|
11616
11622
|
], CreateFreelancerTimesheetDto.prototype, "deliverable", 2);
|
|
11617
11623
|
__decorateClass([
|
|
11618
|
-
|
|
11624
|
+
IsOptional76(),
|
|
11619
11625
|
IsString81()
|
|
11620
11626
|
], CreateFreelancerTimesheetDto.prototype, "taskName", 2);
|
|
11621
11627
|
__decorateClass([
|
|
11622
11628
|
IsNotEmpty111({ message: "Description is required" })
|
|
11623
11629
|
], CreateFreelancerTimesheetDto.prototype, "description", 2);
|
|
11624
11630
|
__decorateClass([
|
|
11625
|
-
|
|
11631
|
+
IsOptional76(),
|
|
11626
11632
|
IsBoolean22()
|
|
11627
11633
|
], CreateFreelancerTimesheetDto.prototype, "skipTaskLogSync", 2);
|
|
11628
11634
|
|
|
@@ -11631,7 +11637,7 @@ import {
|
|
|
11631
11637
|
IsDateString as IsDateString11,
|
|
11632
11638
|
IsInt as IsInt14,
|
|
11633
11639
|
IsNotEmpty as IsNotEmpty112,
|
|
11634
|
-
IsOptional as
|
|
11640
|
+
IsOptional as IsOptional77,
|
|
11635
11641
|
IsString as IsString82,
|
|
11636
11642
|
Matches as Matches19,
|
|
11637
11643
|
IsNumber as IsNumber27
|
|
@@ -11663,19 +11669,19 @@ __decorateClass([
|
|
|
11663
11669
|
})
|
|
11664
11670
|
], UpdateFreelancerTimesheetDto.prototype, "endTime", 2);
|
|
11665
11671
|
__decorateClass([
|
|
11666
|
-
|
|
11672
|
+
IsOptional77(),
|
|
11667
11673
|
IsInt14()
|
|
11668
11674
|
], UpdateFreelancerTimesheetDto.prototype, "taskId", 2);
|
|
11669
11675
|
__decorateClass([
|
|
11670
|
-
|
|
11676
|
+
IsOptional77(),
|
|
11671
11677
|
IsString82()
|
|
11672
11678
|
], UpdateFreelancerTimesheetDto.prototype, "projectName", 2);
|
|
11673
11679
|
__decorateClass([
|
|
11674
|
-
|
|
11680
|
+
IsOptional77(),
|
|
11675
11681
|
IsString82()
|
|
11676
11682
|
], UpdateFreelancerTimesheetDto.prototype, "deliverable", 2);
|
|
11677
11683
|
__decorateClass([
|
|
11678
|
-
|
|
11684
|
+
IsOptional77(),
|
|
11679
11685
|
IsString82()
|
|
11680
11686
|
], UpdateFreelancerTimesheetDto.prototype, "taskName", 2);
|
|
11681
11687
|
__decorateClass([
|
|
@@ -11712,7 +11718,7 @@ __decorateClass([
|
|
|
11712
11718
|
], ApproveTimesheetsDto.prototype, "timesheetLineId", 2);
|
|
11713
11719
|
|
|
11714
11720
|
// src/modules/timesheet/dto/send-back-timesheets.dto.ts
|
|
11715
|
-
import { IsNotEmpty as IsNotEmpty116, IsNumber as IsNumber31, IsOptional as
|
|
11721
|
+
import { IsNotEmpty as IsNotEmpty116, IsNumber as IsNumber31, IsOptional as IsOptional78, IsString as IsString83 } from "class-validator";
|
|
11716
11722
|
import { Type as Type24 } from "class-transformer";
|
|
11717
11723
|
var SendBackTimesheetsDto = class {
|
|
11718
11724
|
};
|
|
@@ -11722,7 +11728,7 @@ __decorateClass([
|
|
|
11722
11728
|
Type24(() => Number)
|
|
11723
11729
|
], SendBackTimesheetsDto.prototype, "timesheetLineId", 2);
|
|
11724
11730
|
__decorateClass([
|
|
11725
|
-
|
|
11731
|
+
IsOptional78(),
|
|
11726
11732
|
IsString83({ message: "Client send back reason must be a string." })
|
|
11727
11733
|
], SendBackTimesheetsDto.prototype, "clientSendBackReason", 2);
|
|
11728
11734
|
|
|
@@ -11793,7 +11799,7 @@ import {
|
|
|
11793
11799
|
IsString as IsString84,
|
|
11794
11800
|
IsNotEmpty as IsNotEmpty120,
|
|
11795
11801
|
IsIn as IsIn4,
|
|
11796
|
-
IsOptional as
|
|
11802
|
+
IsOptional as IsOptional79,
|
|
11797
11803
|
MaxLength as MaxLength23,
|
|
11798
11804
|
IsObject as IsObject7,
|
|
11799
11805
|
IsNumber as IsNumber34,
|
|
@@ -11827,12 +11833,12 @@ __decorateClass([
|
|
|
11827
11833
|
MaxLength23(500, { message: "Description must not exceed 500 characters" })
|
|
11828
11834
|
], CreateDisputeDto.prototype, "description", 2);
|
|
11829
11835
|
__decorateClass([
|
|
11830
|
-
|
|
11836
|
+
IsOptional79(),
|
|
11831
11837
|
IsString84({ message: "Comment must be a string" }),
|
|
11832
11838
|
MaxLength23(500, { message: "Comment must not exceed 500 characters" })
|
|
11833
11839
|
], CreateDisputeDto.prototype, "comment", 2);
|
|
11834
11840
|
__decorateClass([
|
|
11835
|
-
|
|
11841
|
+
IsOptional79(),
|
|
11836
11842
|
IsObject7({ message: "Dynamic fields must be a valid object" }),
|
|
11837
11843
|
Transform7(({ value }) => {
|
|
11838
11844
|
if (typeof value === "string") {
|
|
@@ -11867,7 +11873,7 @@ __decorateClass([
|
|
|
11867
11873
|
], AiInterviewQuestionGenerateDto.prototype, "numQuestions", 2);
|
|
11868
11874
|
|
|
11869
11875
|
// src/modules/senseloaf/dto/resume-parsing-by-url.dto.ts
|
|
11870
|
-
import { IsNotEmpty as IsNotEmpty122, IsString as IsString85, IsOptional as
|
|
11876
|
+
import { IsNotEmpty as IsNotEmpty122, IsString as IsString85, IsOptional as IsOptional80 } from "class-validator";
|
|
11871
11877
|
var ResumeParsingByUrlDto = class {
|
|
11872
11878
|
};
|
|
11873
11879
|
__decorateClass([
|
|
@@ -11875,12 +11881,12 @@ __decorateClass([
|
|
|
11875
11881
|
IsString85({ message: "Resume URL must be a string" })
|
|
11876
11882
|
], ResumeParsingByUrlDto.prototype, "resumeUrl", 2);
|
|
11877
11883
|
__decorateClass([
|
|
11878
|
-
|
|
11884
|
+
IsOptional80(),
|
|
11879
11885
|
IsString85()
|
|
11880
11886
|
], ResumeParsingByUrlDto.prototype, "fileName", 2);
|
|
11881
11887
|
|
|
11882
11888
|
// src/modules/senseloaf/dto/resume-data-processing.dto.ts
|
|
11883
|
-
import { IsNotEmpty as IsNotEmpty123, IsString as IsString86, IsOptional as
|
|
11889
|
+
import { IsNotEmpty as IsNotEmpty123, IsString as IsString86, IsOptional as IsOptional81, IsObject as IsObject8 } from "class-validator";
|
|
11884
11890
|
var ResumeDataProcessingDto = class {
|
|
11885
11891
|
};
|
|
11886
11892
|
__decorateClass([
|
|
@@ -11888,16 +11894,16 @@ __decorateClass([
|
|
|
11888
11894
|
IsObject8()
|
|
11889
11895
|
], ResumeDataProcessingDto.prototype, "resumeData", 2);
|
|
11890
11896
|
__decorateClass([
|
|
11891
|
-
|
|
11897
|
+
IsOptional81(),
|
|
11892
11898
|
IsString86()
|
|
11893
11899
|
], ResumeDataProcessingDto.prototype, "userId", 2);
|
|
11894
11900
|
__decorateClass([
|
|
11895
|
-
|
|
11901
|
+
IsOptional81(),
|
|
11896
11902
|
IsString86()
|
|
11897
11903
|
], ResumeDataProcessingDto.prototype, "processingType", 2);
|
|
11898
11904
|
|
|
11899
11905
|
// src/modules/senseloaf/dto/check-resume-eligibility.dto.ts
|
|
11900
|
-
import { IsNotEmpty as IsNotEmpty124, IsString as IsString87, IsOptional as
|
|
11906
|
+
import { IsNotEmpty as IsNotEmpty124, IsString as IsString87, IsOptional as IsOptional82, IsObject as IsObject9 } from "class-validator";
|
|
11901
11907
|
var CheckResumeEligibilityDto = class {
|
|
11902
11908
|
};
|
|
11903
11909
|
__decorateClass([
|
|
@@ -11905,16 +11911,16 @@ __decorateClass([
|
|
|
11905
11911
|
IsObject9()
|
|
11906
11912
|
], CheckResumeEligibilityDto.prototype, "resumeData", 2);
|
|
11907
11913
|
__decorateClass([
|
|
11908
|
-
|
|
11914
|
+
IsOptional82(),
|
|
11909
11915
|
IsString87()
|
|
11910
11916
|
], CheckResumeEligibilityDto.prototype, "jobId", 2);
|
|
11911
11917
|
__decorateClass([
|
|
11912
|
-
|
|
11918
|
+
IsOptional82(),
|
|
11913
11919
|
IsString87()
|
|
11914
11920
|
], CheckResumeEligibilityDto.prototype, "userId", 2);
|
|
11915
11921
|
|
|
11916
11922
|
// src/modules/senseloaf/dto/ai-interview-template-generation.dto.ts
|
|
11917
|
-
import { IsNotEmpty as IsNotEmpty125, IsString as IsString88, IsOptional as
|
|
11923
|
+
import { IsNotEmpty as IsNotEmpty125, IsString as IsString88, IsOptional as IsOptional83, IsArray as IsArray27, IsNumber as IsNumber35 } from "class-validator";
|
|
11918
11924
|
var AiInterviewTemplateGenerationDto = class {
|
|
11919
11925
|
};
|
|
11920
11926
|
__decorateClass([
|
|
@@ -11922,21 +11928,21 @@ __decorateClass([
|
|
|
11922
11928
|
IsString88({ message: "Job ID must be a string" })
|
|
11923
11929
|
], AiInterviewTemplateGenerationDto.prototype, "jobId", 2);
|
|
11924
11930
|
__decorateClass([
|
|
11925
|
-
|
|
11931
|
+
IsOptional83(),
|
|
11926
11932
|
IsArray27(),
|
|
11927
11933
|
IsString88({ each: true, message: "Each skill must be a string" })
|
|
11928
11934
|
], AiInterviewTemplateGenerationDto.prototype, "skills", 2);
|
|
11929
11935
|
__decorateClass([
|
|
11930
|
-
|
|
11936
|
+
IsOptional83(),
|
|
11931
11937
|
IsNumber35({}, { message: "Number of questions must be a number" })
|
|
11932
11938
|
], AiInterviewTemplateGenerationDto.prototype, "numberOfQuestions", 2);
|
|
11933
11939
|
__decorateClass([
|
|
11934
|
-
|
|
11940
|
+
IsOptional83(),
|
|
11935
11941
|
IsString88()
|
|
11936
11942
|
], AiInterviewTemplateGenerationDto.prototype, "difficulty", 2);
|
|
11937
11943
|
|
|
11938
11944
|
// src/modules/senseloaf/dto/ai-interview-link-generation.dto.ts
|
|
11939
|
-
import { IsNotEmpty as IsNotEmpty126, IsString as IsString89, IsOptional as
|
|
11945
|
+
import { IsNotEmpty as IsNotEmpty126, IsString as IsString89, IsOptional as IsOptional84, IsNumber as IsNumber36 } from "class-validator";
|
|
11940
11946
|
var AiInterviewLinkGenerationDto = class {
|
|
11941
11947
|
};
|
|
11942
11948
|
__decorateClass([
|
|
@@ -11948,16 +11954,16 @@ __decorateClass([
|
|
|
11948
11954
|
IsString89({ message: "Freelancer ID must be a string" })
|
|
11949
11955
|
], AiInterviewLinkGenerationDto.prototype, "freelancerId", 2);
|
|
11950
11956
|
__decorateClass([
|
|
11951
|
-
|
|
11957
|
+
IsOptional84(),
|
|
11952
11958
|
IsString89()
|
|
11953
11959
|
], AiInterviewLinkGenerationDto.prototype, "jobId", 2);
|
|
11954
11960
|
__decorateClass([
|
|
11955
|
-
|
|
11961
|
+
IsOptional84(),
|
|
11956
11962
|
IsNumber36({}, { message: "Expiry hours must be a number" })
|
|
11957
11963
|
], AiInterviewLinkGenerationDto.prototype, "expiryHours", 2);
|
|
11958
11964
|
|
|
11959
11965
|
// src/modules/senseloaf/dto/ai-assessment-creation.dto.ts
|
|
11960
|
-
import { IsNotEmpty as IsNotEmpty127, IsString as IsString90, IsOptional as
|
|
11966
|
+
import { IsNotEmpty as IsNotEmpty127, IsString as IsString90, IsOptional as IsOptional85, IsNumber as IsNumber37 } from "class-validator";
|
|
11961
11967
|
var AiAssessmentCreationDto = class {
|
|
11962
11968
|
};
|
|
11963
11969
|
__decorateClass([
|
|
@@ -11965,15 +11971,15 @@ __decorateClass([
|
|
|
11965
11971
|
IsString90({ message: "User ID must be a string" })
|
|
11966
11972
|
], AiAssessmentCreationDto.prototype, "userId", 2);
|
|
11967
11973
|
__decorateClass([
|
|
11968
|
-
|
|
11974
|
+
IsOptional85(),
|
|
11969
11975
|
IsString90()
|
|
11970
11976
|
], AiAssessmentCreationDto.prototype, "assessmentType", 2);
|
|
11971
11977
|
__decorateClass([
|
|
11972
|
-
|
|
11978
|
+
IsOptional85(),
|
|
11973
11979
|
IsNumber37({}, { message: "Number of questions must be a number" })
|
|
11974
11980
|
], AiAssessmentCreationDto.prototype, "numberOfQuestions", 2);
|
|
11975
11981
|
__decorateClass([
|
|
11976
|
-
|
|
11982
|
+
IsOptional85(),
|
|
11977
11983
|
IsString90()
|
|
11978
11984
|
], AiAssessmentCreationDto.prototype, "difficulty", 2);
|
|
11979
11985
|
|
|
@@ -12031,15 +12037,15 @@ var SIGNATURE_PATTERN = {
|
|
|
12031
12037
|
};
|
|
12032
12038
|
|
|
12033
12039
|
// src/modules/user/signature/dto/save-signature.dto.ts
|
|
12034
|
-
import { IsOptional as
|
|
12040
|
+
import { IsOptional as IsOptional86, IsString as IsString91 } from "class-validator";
|
|
12035
12041
|
var SaveSignatureDto = class {
|
|
12036
12042
|
};
|
|
12037
12043
|
__decorateClass([
|
|
12038
|
-
|
|
12044
|
+
IsOptional86(),
|
|
12039
12045
|
IsString91()
|
|
12040
12046
|
], SaveSignatureDto.prototype, "signatureType", 2);
|
|
12041
12047
|
__decorateClass([
|
|
12042
|
-
|
|
12048
|
+
IsOptional86(),
|
|
12043
12049
|
IsString91()
|
|
12044
12050
|
], SaveSignatureDto.prototype, "description", 2);
|
|
12045
12051
|
|
|
@@ -13185,7 +13191,7 @@ function createDiscordTransport(options) {
|
|
|
13185
13191
|
}
|
|
13186
13192
|
|
|
13187
13193
|
// src/modules/in-app-notification/dto/create-in-app-notification.dto.ts
|
|
13188
|
-
import { IsNotEmpty as IsNotEmpty131, IsNumber as IsNumber40, IsOptional as
|
|
13194
|
+
import { IsNotEmpty as IsNotEmpty131, IsNumber as IsNumber40, IsOptional as IsOptional87, IsString as IsString92, IsObject as IsObject10 } from "class-validator";
|
|
13189
13195
|
var CreateInAppNotificationDto = class {
|
|
13190
13196
|
};
|
|
13191
13197
|
__decorateClass([
|
|
@@ -13193,11 +13199,11 @@ __decorateClass([
|
|
|
13193
13199
|
IsNumber40()
|
|
13194
13200
|
], CreateInAppNotificationDto.prototype, "userId", 2);
|
|
13195
13201
|
__decorateClass([
|
|
13196
|
-
|
|
13202
|
+
IsOptional87(),
|
|
13197
13203
|
IsString92()
|
|
13198
13204
|
], CreateInAppNotificationDto.prototype, "event", 2);
|
|
13199
13205
|
__decorateClass([
|
|
13200
|
-
|
|
13206
|
+
IsOptional87(),
|
|
13201
13207
|
IsString92()
|
|
13202
13208
|
], CreateInAppNotificationDto.prototype, "title", 2);
|
|
13203
13209
|
__decorateClass([
|
|
@@ -13205,26 +13211,26 @@ __decorateClass([
|
|
|
13205
13211
|
IsString92()
|
|
13206
13212
|
], CreateInAppNotificationDto.prototype, "message", 2);
|
|
13207
13213
|
__decorateClass([
|
|
13208
|
-
|
|
13214
|
+
IsOptional87(),
|
|
13209
13215
|
IsString92()
|
|
13210
13216
|
], CreateInAppNotificationDto.prototype, "redirectUrl", 2);
|
|
13211
13217
|
__decorateClass([
|
|
13212
|
-
|
|
13218
|
+
IsOptional87(),
|
|
13213
13219
|
IsObject10()
|
|
13214
13220
|
], CreateInAppNotificationDto.prototype, "metaData", 2);
|
|
13215
13221
|
|
|
13216
13222
|
// src/modules/in-app-notification/dto/update-is-read.dto.ts
|
|
13217
|
-
import { IsNotEmpty as IsNotEmpty132, IsNumber as IsNumber41, IsBoolean as IsBoolean23, IsOptional as
|
|
13223
|
+
import { IsNotEmpty as IsNotEmpty132, IsNumber as IsNumber41, IsBoolean as IsBoolean23, IsOptional as IsOptional88, IsArray as IsArray29 } from "class-validator";
|
|
13218
13224
|
import { Type as Type26 } from "class-transformer";
|
|
13219
13225
|
var UpdateIsReadDto = class {
|
|
13220
13226
|
};
|
|
13221
13227
|
__decorateClass([
|
|
13222
|
-
|
|
13228
|
+
IsOptional88(),
|
|
13223
13229
|
IsNumber41(),
|
|
13224
13230
|
Type26(() => Number)
|
|
13225
13231
|
], UpdateIsReadDto.prototype, "id", 2);
|
|
13226
13232
|
__decorateClass([
|
|
13227
|
-
|
|
13233
|
+
IsOptional88(),
|
|
13228
13234
|
IsArray29(),
|
|
13229
13235
|
IsNumber41({}, { each: true }),
|
|
13230
13236
|
Type26(() => Number)
|
|
@@ -13261,7 +13267,7 @@ import {
|
|
|
13261
13267
|
IsEnum as IsEnum47,
|
|
13262
13268
|
IsNotEmpty as IsNotEmpty133,
|
|
13263
13269
|
IsNumber as IsNumber42,
|
|
13264
|
-
IsOptional as
|
|
13270
|
+
IsOptional as IsOptional89,
|
|
13265
13271
|
IsString as IsString93,
|
|
13266
13272
|
ValidateNested as ValidateNested12
|
|
13267
13273
|
} from "class-validator";
|
|
@@ -13278,25 +13284,25 @@ __decorateClass([
|
|
|
13278
13284
|
IsNotEmpty133({ message: "Submitter email is required." })
|
|
13279
13285
|
], DocuSealSubmitterDto.prototype, "email", 2);
|
|
13280
13286
|
__decorateClass([
|
|
13281
|
-
|
|
13287
|
+
IsOptional89(),
|
|
13282
13288
|
IsString93()
|
|
13283
13289
|
], DocuSealSubmitterDto.prototype, "name", 2);
|
|
13284
13290
|
__decorateClass([
|
|
13285
|
-
|
|
13291
|
+
IsOptional89(),
|
|
13286
13292
|
IsString93()
|
|
13287
13293
|
], DocuSealSubmitterDto.prototype, "phone", 2);
|
|
13288
13294
|
__decorateClass([
|
|
13289
|
-
|
|
13295
|
+
IsOptional89(),
|
|
13290
13296
|
IsArray30()
|
|
13291
13297
|
], DocuSealSubmitterDto.prototype, "fields", 2);
|
|
13292
13298
|
var DocuSealMessageDto = class {
|
|
13293
13299
|
};
|
|
13294
13300
|
__decorateClass([
|
|
13295
|
-
|
|
13301
|
+
IsOptional89(),
|
|
13296
13302
|
IsString93()
|
|
13297
13303
|
], DocuSealMessageDto.prototype, "subject", 2);
|
|
13298
13304
|
__decorateClass([
|
|
13299
|
-
|
|
13305
|
+
IsOptional89(),
|
|
13300
13306
|
IsString93()
|
|
13301
13307
|
], DocuSealMessageDto.prototype, "body", 2);
|
|
13302
13308
|
var CreateUserSigningDto = class {
|
|
@@ -13306,11 +13312,11 @@ __decorateClass([
|
|
|
13306
13312
|
IsNotEmpty133({ message: "Template ID is required." })
|
|
13307
13313
|
], CreateUserSigningDto.prototype, "templateId", 2);
|
|
13308
13314
|
__decorateClass([
|
|
13309
|
-
|
|
13315
|
+
IsOptional89(),
|
|
13310
13316
|
IsBoolean24()
|
|
13311
13317
|
], CreateUserSigningDto.prototype, "sendEmail", 2);
|
|
13312
13318
|
__decorateClass([
|
|
13313
|
-
|
|
13319
|
+
IsOptional89(),
|
|
13314
13320
|
IsEnum47(DocuSealOrderEnum, {
|
|
13315
13321
|
message: "Order must be one of preserved or random."
|
|
13316
13322
|
})
|
|
@@ -13321,16 +13327,16 @@ __decorateClass([
|
|
|
13321
13327
|
Type27(() => DocuSealSubmitterDto)
|
|
13322
13328
|
], CreateUserSigningDto.prototype, "submitters", 2);
|
|
13323
13329
|
__decorateClass([
|
|
13324
|
-
|
|
13330
|
+
IsOptional89(),
|
|
13325
13331
|
ValidateNested12(),
|
|
13326
13332
|
Type27(() => DocuSealMessageDto)
|
|
13327
13333
|
], CreateUserSigningDto.prototype, "message", 2);
|
|
13328
13334
|
__decorateClass([
|
|
13329
|
-
|
|
13335
|
+
IsOptional89(),
|
|
13330
13336
|
IsString93()
|
|
13331
13337
|
], CreateUserSigningDto.prototype, "completedRedirectUrl", 2);
|
|
13332
13338
|
__decorateClass([
|
|
13333
|
-
|
|
13339
|
+
IsOptional89(),
|
|
13334
13340
|
IsString93()
|
|
13335
13341
|
], CreateUserSigningDto.prototype, "expireAt", 2);
|
|
13336
13342
|
|
|
@@ -13403,7 +13409,7 @@ import {
|
|
|
13403
13409
|
IsArray as IsArray31,
|
|
13404
13410
|
IsDateString as IsDateString12,
|
|
13405
13411
|
IsNotEmpty as IsNotEmpty138,
|
|
13406
|
-
IsOptional as
|
|
13412
|
+
IsOptional as IsOptional90,
|
|
13407
13413
|
IsString as IsString94,
|
|
13408
13414
|
ValidateIf as ValidateIf14,
|
|
13409
13415
|
ValidateNested as ValidateNested13
|
|
@@ -13415,11 +13421,11 @@ __decorateClass([
|
|
|
13415
13421
|
IsString94()
|
|
13416
13422
|
], TaskDeliverableDto.prototype, "name", 2);
|
|
13417
13423
|
__decorateClass([
|
|
13418
|
-
|
|
13424
|
+
IsOptional90(),
|
|
13419
13425
|
IsString94()
|
|
13420
13426
|
], TaskDeliverableDto.prototype, "description", 2);
|
|
13421
13427
|
__decorateClass([
|
|
13422
|
-
|
|
13428
|
+
IsOptional90(),
|
|
13423
13429
|
IsString94()
|
|
13424
13430
|
], TaskDeliverableDto.prototype, "type", 2);
|
|
13425
13431
|
var TaskResourceDto = class {
|
|
@@ -13428,15 +13434,15 @@ __decorateClass([
|
|
|
13428
13434
|
IsString94()
|
|
13429
13435
|
], TaskResourceDto.prototype, "name", 2);
|
|
13430
13436
|
__decorateClass([
|
|
13431
|
-
|
|
13437
|
+
IsOptional90(),
|
|
13432
13438
|
IsString94()
|
|
13433
13439
|
], TaskResourceDto.prototype, "description", 2);
|
|
13434
13440
|
__decorateClass([
|
|
13435
|
-
|
|
13441
|
+
IsOptional90(),
|
|
13436
13442
|
IsString94()
|
|
13437
13443
|
], TaskResourceDto.prototype, "type", 2);
|
|
13438
13444
|
__decorateClass([
|
|
13439
|
-
|
|
13445
|
+
IsOptional90(),
|
|
13440
13446
|
IsString94()
|
|
13441
13447
|
], TaskResourceDto.prototype, "url", 2);
|
|
13442
13448
|
var TaskChecklistItemDto = class {
|
|
@@ -13445,7 +13451,7 @@ __decorateClass([
|
|
|
13445
13451
|
IsString94()
|
|
13446
13452
|
], TaskChecklistItemDto.prototype, "item", 2);
|
|
13447
13453
|
__decorateClass([
|
|
13448
|
-
|
|
13454
|
+
IsOptional90(),
|
|
13449
13455
|
IsString94()
|
|
13450
13456
|
], TaskChecklistItemDto.prototype, "notes", 2);
|
|
13451
13457
|
var TaskSubtaskDto = class {
|
|
@@ -13454,11 +13460,11 @@ __decorateClass([
|
|
|
13454
13460
|
IsString94()
|
|
13455
13461
|
], TaskSubtaskDto.prototype, "name", 2);
|
|
13456
13462
|
__decorateClass([
|
|
13457
|
-
|
|
13463
|
+
IsOptional90(),
|
|
13458
13464
|
IsString94()
|
|
13459
13465
|
], TaskSubtaskDto.prototype, "status", 2);
|
|
13460
13466
|
__decorateClass([
|
|
13461
|
-
|
|
13467
|
+
IsOptional90(),
|
|
13462
13468
|
IsString94()
|
|
13463
13469
|
], TaskSubtaskDto.prototype, "description", 2);
|
|
13464
13470
|
var CreateTaskDto = class {
|
|
@@ -13471,53 +13477,53 @@ __decorateClass([
|
|
|
13471
13477
|
IsString94()
|
|
13472
13478
|
], CreateTaskDto.prototype, "title", 2);
|
|
13473
13479
|
__decorateClass([
|
|
13474
|
-
|
|
13480
|
+
IsOptional90(),
|
|
13475
13481
|
IsDateString12()
|
|
13476
13482
|
], CreateTaskDto.prototype, "dueDate", 2);
|
|
13477
13483
|
__decorateClass([
|
|
13478
|
-
|
|
13484
|
+
IsOptional90(),
|
|
13479
13485
|
IsString94()
|
|
13480
13486
|
], CreateTaskDto.prototype, "jobId", 2);
|
|
13481
13487
|
__decorateClass([
|
|
13482
|
-
|
|
13488
|
+
IsOptional90(),
|
|
13483
13489
|
IsString94()
|
|
13484
13490
|
], CreateTaskDto.prototype, "freelancerId", 2);
|
|
13485
13491
|
__decorateClass([
|
|
13486
|
-
|
|
13492
|
+
IsOptional90(),
|
|
13487
13493
|
IsString94()
|
|
13488
13494
|
], CreateTaskDto.prototype, "status", 2);
|
|
13489
13495
|
__decorateClass([
|
|
13490
|
-
|
|
13496
|
+
IsOptional90(),
|
|
13491
13497
|
IsString94()
|
|
13492
13498
|
], CreateTaskDto.prototype, "description", 2);
|
|
13493
13499
|
__decorateClass([
|
|
13494
|
-
|
|
13500
|
+
IsOptional90(),
|
|
13495
13501
|
IsString94()
|
|
13496
13502
|
], CreateTaskDto.prototype, "priority", 2);
|
|
13497
13503
|
__decorateClass([
|
|
13498
|
-
|
|
13504
|
+
IsOptional90(),
|
|
13499
13505
|
IsDateString12()
|
|
13500
13506
|
], CreateTaskDto.prototype, "createdOn", 2);
|
|
13501
13507
|
__decorateClass([
|
|
13502
|
-
|
|
13508
|
+
IsOptional90(),
|
|
13503
13509
|
IsArray31(),
|
|
13504
13510
|
ValidateNested13({ each: true }),
|
|
13505
13511
|
Type32(() => TaskDeliverableDto)
|
|
13506
13512
|
], CreateTaskDto.prototype, "deliverables", 2);
|
|
13507
13513
|
__decorateClass([
|
|
13508
|
-
|
|
13514
|
+
IsOptional90(),
|
|
13509
13515
|
IsArray31(),
|
|
13510
13516
|
ValidateNested13({ each: true }),
|
|
13511
13517
|
Type32(() => TaskResourceDto)
|
|
13512
13518
|
], CreateTaskDto.prototype, "resources", 2);
|
|
13513
13519
|
__decorateClass([
|
|
13514
|
-
|
|
13520
|
+
IsOptional90(),
|
|
13515
13521
|
IsArray31(),
|
|
13516
13522
|
ValidateNested13({ each: true }),
|
|
13517
13523
|
Type32(() => TaskChecklistItemDto)
|
|
13518
13524
|
], CreateTaskDto.prototype, "checklist", 2);
|
|
13519
13525
|
__decorateClass([
|
|
13520
|
-
|
|
13526
|
+
IsOptional90(),
|
|
13521
13527
|
IsArray31(),
|
|
13522
13528
|
ValidateNested13({ each: true }),
|
|
13523
13529
|
Type32(() => TaskSubtaskDto)
|
|
@@ -13527,7 +13533,7 @@ __decorateClass([
|
|
|
13527
13533
|
import {
|
|
13528
13534
|
IsArray as IsArray32,
|
|
13529
13535
|
IsDateString as IsDateString13,
|
|
13530
|
-
IsOptional as
|
|
13536
|
+
IsOptional as IsOptional91,
|
|
13531
13537
|
IsString as IsString95,
|
|
13532
13538
|
ValidateNested as ValidateNested14
|
|
13533
13539
|
} from "class-validator";
|
|
@@ -13538,11 +13544,11 @@ __decorateClass([
|
|
|
13538
13544
|
IsString95()
|
|
13539
13545
|
], TaskDeliverableDto2.prototype, "name", 2);
|
|
13540
13546
|
__decorateClass([
|
|
13541
|
-
|
|
13547
|
+
IsOptional91(),
|
|
13542
13548
|
IsString95()
|
|
13543
13549
|
], TaskDeliverableDto2.prototype, "description", 2);
|
|
13544
13550
|
__decorateClass([
|
|
13545
|
-
|
|
13551
|
+
IsOptional91(),
|
|
13546
13552
|
IsString95()
|
|
13547
13553
|
], TaskDeliverableDto2.prototype, "type", 2);
|
|
13548
13554
|
var TaskResourceDto2 = class {
|
|
@@ -13551,15 +13557,15 @@ __decorateClass([
|
|
|
13551
13557
|
IsString95()
|
|
13552
13558
|
], TaskResourceDto2.prototype, "name", 2);
|
|
13553
13559
|
__decorateClass([
|
|
13554
|
-
|
|
13560
|
+
IsOptional91(),
|
|
13555
13561
|
IsString95()
|
|
13556
13562
|
], TaskResourceDto2.prototype, "description", 2);
|
|
13557
13563
|
__decorateClass([
|
|
13558
|
-
|
|
13564
|
+
IsOptional91(),
|
|
13559
13565
|
IsString95()
|
|
13560
13566
|
], TaskResourceDto2.prototype, "type", 2);
|
|
13561
13567
|
__decorateClass([
|
|
13562
|
-
|
|
13568
|
+
IsOptional91(),
|
|
13563
13569
|
IsString95()
|
|
13564
13570
|
], TaskResourceDto2.prototype, "url", 2);
|
|
13565
13571
|
var TaskChecklistItemDto2 = class {
|
|
@@ -13568,7 +13574,7 @@ __decorateClass([
|
|
|
13568
13574
|
IsString95()
|
|
13569
13575
|
], TaskChecklistItemDto2.prototype, "item", 2);
|
|
13570
13576
|
__decorateClass([
|
|
13571
|
-
|
|
13577
|
+
IsOptional91(),
|
|
13572
13578
|
IsString95()
|
|
13573
13579
|
], TaskChecklistItemDto2.prototype, "notes", 2);
|
|
13574
13580
|
var TaskSubtaskDto2 = class {
|
|
@@ -13577,67 +13583,67 @@ __decorateClass([
|
|
|
13577
13583
|
IsString95()
|
|
13578
13584
|
], TaskSubtaskDto2.prototype, "name", 2);
|
|
13579
13585
|
__decorateClass([
|
|
13580
|
-
|
|
13586
|
+
IsOptional91(),
|
|
13581
13587
|
IsString95()
|
|
13582
13588
|
], TaskSubtaskDto2.prototype, "status", 2);
|
|
13583
13589
|
__decorateClass([
|
|
13584
|
-
|
|
13590
|
+
IsOptional91(),
|
|
13585
13591
|
IsString95()
|
|
13586
13592
|
], TaskSubtaskDto2.prototype, "description", 2);
|
|
13587
13593
|
var UpdateTaskDto = class {
|
|
13588
13594
|
};
|
|
13589
13595
|
__decorateClass([
|
|
13590
|
-
|
|
13596
|
+
IsOptional91(),
|
|
13591
13597
|
IsString95()
|
|
13592
13598
|
], UpdateTaskDto.prototype, "title", 2);
|
|
13593
13599
|
__decorateClass([
|
|
13594
|
-
|
|
13600
|
+
IsOptional91(),
|
|
13595
13601
|
IsDateString13()
|
|
13596
13602
|
], UpdateTaskDto.prototype, "dueDate", 2);
|
|
13597
13603
|
__decorateClass([
|
|
13598
|
-
|
|
13604
|
+
IsOptional91(),
|
|
13599
13605
|
IsString95()
|
|
13600
13606
|
], UpdateTaskDto.prototype, "jobId", 2);
|
|
13601
13607
|
__decorateClass([
|
|
13602
|
-
|
|
13608
|
+
IsOptional91(),
|
|
13603
13609
|
IsString95()
|
|
13604
13610
|
], UpdateTaskDto.prototype, "freelancerId", 2);
|
|
13605
13611
|
__decorateClass([
|
|
13606
|
-
|
|
13612
|
+
IsOptional91(),
|
|
13607
13613
|
IsString95()
|
|
13608
13614
|
], UpdateTaskDto.prototype, "status", 2);
|
|
13609
13615
|
__decorateClass([
|
|
13610
|
-
|
|
13616
|
+
IsOptional91(),
|
|
13611
13617
|
IsString95()
|
|
13612
13618
|
], UpdateTaskDto.prototype, "description", 2);
|
|
13613
13619
|
__decorateClass([
|
|
13614
|
-
|
|
13620
|
+
IsOptional91(),
|
|
13615
13621
|
IsString95()
|
|
13616
13622
|
], UpdateTaskDto.prototype, "priority", 2);
|
|
13617
13623
|
__decorateClass([
|
|
13618
|
-
|
|
13624
|
+
IsOptional91(),
|
|
13619
13625
|
IsDateString13()
|
|
13620
13626
|
], UpdateTaskDto.prototype, "createdOn", 2);
|
|
13621
13627
|
__decorateClass([
|
|
13622
|
-
|
|
13628
|
+
IsOptional91(),
|
|
13623
13629
|
IsArray32(),
|
|
13624
13630
|
ValidateNested14({ each: true }),
|
|
13625
13631
|
Type33(() => TaskDeliverableDto2)
|
|
13626
13632
|
], UpdateTaskDto.prototype, "deliverables", 2);
|
|
13627
13633
|
__decorateClass([
|
|
13628
|
-
|
|
13634
|
+
IsOptional91(),
|
|
13629
13635
|
IsArray32(),
|
|
13630
13636
|
ValidateNested14({ each: true }),
|
|
13631
13637
|
Type33(() => TaskResourceDto2)
|
|
13632
13638
|
], UpdateTaskDto.prototype, "resources", 2);
|
|
13633
13639
|
__decorateClass([
|
|
13634
|
-
|
|
13640
|
+
IsOptional91(),
|
|
13635
13641
|
IsArray32(),
|
|
13636
13642
|
ValidateNested14({ each: true }),
|
|
13637
13643
|
Type33(() => TaskChecklistItemDto2)
|
|
13638
13644
|
], UpdateTaskDto.prototype, "checklist", 2);
|
|
13639
13645
|
__decorateClass([
|
|
13640
|
-
|
|
13646
|
+
IsOptional91(),
|
|
13641
13647
|
IsArray32(),
|
|
13642
13648
|
ValidateNested14({ each: true }),
|
|
13643
13649
|
Type33(() => TaskSubtaskDto2)
|
|
@@ -13681,50 +13687,50 @@ __decorateClass([
|
|
|
13681
13687
|
], UpdateEstimateTimeDto.prototype, "additionalWorkNote", 2);
|
|
13682
13688
|
|
|
13683
13689
|
// src/modules/task/dto/create-task-query.dto.ts
|
|
13684
|
-
import { IsEnum as IsEnum48, IsOptional as
|
|
13690
|
+
import { IsEnum as IsEnum48, IsOptional as IsOptional92, IsString as IsString100 } from "class-validator";
|
|
13685
13691
|
var CreateTaskQueryDto = class {
|
|
13686
13692
|
};
|
|
13687
13693
|
__decorateClass([
|
|
13688
13694
|
IsEnum48(TaskQueryCategoryEnum)
|
|
13689
13695
|
], CreateTaskQueryDto.prototype, "queryCategory", 2);
|
|
13690
13696
|
__decorateClass([
|
|
13691
|
-
|
|
13697
|
+
IsOptional92(),
|
|
13692
13698
|
IsString100()
|
|
13693
13699
|
], CreateTaskQueryDto.prototype, "subject", 2);
|
|
13694
13700
|
__decorateClass([
|
|
13695
|
-
|
|
13701
|
+
IsOptional92(),
|
|
13696
13702
|
IsString100()
|
|
13697
13703
|
], CreateTaskQueryDto.prototype, "description", 2);
|
|
13698
13704
|
__decorateClass([
|
|
13699
|
-
|
|
13705
|
+
IsOptional92(),
|
|
13700
13706
|
IsString100()
|
|
13701
13707
|
], CreateTaskQueryDto.prototype, "message", 2);
|
|
13702
13708
|
__decorateClass([
|
|
13703
|
-
|
|
13709
|
+
IsOptional92()
|
|
13704
13710
|
], CreateTaskQueryDto.prototype, "file", 2);
|
|
13705
13711
|
|
|
13706
13712
|
// src/modules/task/dto/add-task-query-reply.dto.ts
|
|
13707
|
-
import { IsOptional as
|
|
13713
|
+
import { IsOptional as IsOptional93, IsString as IsString101 } from "class-validator";
|
|
13708
13714
|
var AddTaskQueryReplyDto = class {
|
|
13709
13715
|
};
|
|
13710
13716
|
__decorateClass([
|
|
13711
|
-
|
|
13717
|
+
IsOptional93(),
|
|
13712
13718
|
IsString101()
|
|
13713
13719
|
], AddTaskQueryReplyDto.prototype, "message", 2);
|
|
13714
13720
|
__decorateClass([
|
|
13715
|
-
|
|
13721
|
+
IsOptional93()
|
|
13716
13722
|
], AddTaskQueryReplyDto.prototype, "file", 2);
|
|
13717
13723
|
|
|
13718
13724
|
// src/modules/task/dto/mark-task-query-messages-read.dto.ts
|
|
13719
|
-
import { IsArray as IsArray33, IsOptional as
|
|
13725
|
+
import { IsArray as IsArray33, IsOptional as IsOptional94, IsString as IsString102 } from "class-validator";
|
|
13720
13726
|
var MarkTaskQueryMessagesReadDto = class {
|
|
13721
13727
|
};
|
|
13722
13728
|
__decorateClass([
|
|
13723
|
-
|
|
13729
|
+
IsOptional94(),
|
|
13724
13730
|
IsString102()
|
|
13725
13731
|
], MarkTaskQueryMessagesReadDto.prototype, "messageUuid", 2);
|
|
13726
13732
|
__decorateClass([
|
|
13727
|
-
|
|
13733
|
+
IsOptional94(),
|
|
13728
13734
|
IsArray33(),
|
|
13729
13735
|
IsString102({ each: true })
|
|
13730
13736
|
], MarkTaskQueryMessagesReadDto.prototype, "messageUuids", 2);
|