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