@experts_hub/shared 1.0.296 → 1.0.298
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/entities/job-freelancer-recommendation.entity.d.ts +1 -0
- package/dist/index.d.mts +19 -7
- package/dist/index.d.ts +19 -7
- package/dist/index.js +642 -617
- package/dist/index.mjs +283 -256
- package/dist/modules/authentication/dto/index.d.ts +1 -0
- package/dist/modules/authentication/dto/reset-password-token-validation.dto.d.ts +10 -0
- package/dist/modules/authentication/pattern/pattern.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -191,6 +191,7 @@ __export(index_exports, {
|
|
|
191
191
|
RefreshDto: () => RefreshDto,
|
|
192
192
|
RefreshToken: () => RefreshToken,
|
|
193
193
|
ResetPasswordDto: () => ResetPasswordDto,
|
|
194
|
+
ResetPasswordTokenValidationDto: () => ResetPasswordTokenValidationDto,
|
|
194
195
|
STATE_PATTERN: () => STATE_PATTERN,
|
|
195
196
|
SUBADMIN_PATTERN: () => SUBADMIN_PATTERN,
|
|
196
197
|
SYSTEM_PREFERENCES_PATTERN: () => SYSTEM_PREFERENCES_PATTERN,
|
|
@@ -245,16 +246,17 @@ var AUTHENTICATION_PATTERN = {
|
|
|
245
246
|
revokeSession: "revoke.session",
|
|
246
247
|
handleForgotPassword: "handle.forgot.password",
|
|
247
248
|
handleResetPassword: "handle.reset.password",
|
|
249
|
+
handleValidateResetPasswordToken: "handle.validate.reset.password.token",
|
|
248
250
|
handleSetPassword: "handle.set.password"
|
|
249
251
|
};
|
|
250
252
|
|
|
251
253
|
// src/modules/authentication/dto/login.dto.ts
|
|
252
254
|
var import_class_validator = require("class-validator");
|
|
253
|
-
var ScopeEnum = /* @__PURE__ */ ((
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
return
|
|
255
|
+
var ScopeEnum = /* @__PURE__ */ ((ScopeEnum5) => {
|
|
256
|
+
ScopeEnum5["ADMIN"] = "ADMIN";
|
|
257
|
+
ScopeEnum5["CLIENT"] = "CLIENT";
|
|
258
|
+
ScopeEnum5["FREELANCER"] = "FREELANCER";
|
|
259
|
+
return ScopeEnum5;
|
|
258
260
|
})(ScopeEnum || {});
|
|
259
261
|
var LoginDto = class {
|
|
260
262
|
};
|
|
@@ -288,11 +290,11 @@ __decorateClass([
|
|
|
288
290
|
|
|
289
291
|
// src/modules/authentication/dto/forgot-password.dto.ts
|
|
290
292
|
var import_class_validator4 = require("class-validator");
|
|
291
|
-
var ScopeEnum2 = /* @__PURE__ */ ((
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
return
|
|
293
|
+
var ScopeEnum2 = /* @__PURE__ */ ((ScopeEnum5) => {
|
|
294
|
+
ScopeEnum5["ADMIN"] = "ADMIN";
|
|
295
|
+
ScopeEnum5["CLIENT"] = "CLIENT";
|
|
296
|
+
ScopeEnum5["FREELANCER"] = "FREELANCER";
|
|
297
|
+
return ScopeEnum5;
|
|
296
298
|
})(ScopeEnum2 || {});
|
|
297
299
|
var ForgotPasswordDto = class {
|
|
298
300
|
};
|
|
@@ -308,11 +310,11 @@ __decorateClass([
|
|
|
308
310
|
|
|
309
311
|
// src/modules/authentication/dto/reset-password.dto.ts
|
|
310
312
|
var import_class_validator5 = require("class-validator");
|
|
311
|
-
var ScopeEnum3 = /* @__PURE__ */ ((
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
return
|
|
313
|
+
var ScopeEnum3 = /* @__PURE__ */ ((ScopeEnum5) => {
|
|
314
|
+
ScopeEnum5["ADMIN"] = "ADMIN";
|
|
315
|
+
ScopeEnum5["CLIENT"] = "CLIENT";
|
|
316
|
+
ScopeEnum5["FREELANCER"] = "FREELANCER";
|
|
317
|
+
return ScopeEnum5;
|
|
316
318
|
})(ScopeEnum3 || {});
|
|
317
319
|
var ResetPasswordDto = class {
|
|
318
320
|
};
|
|
@@ -349,6 +351,25 @@ __decorateClass([
|
|
|
349
351
|
})
|
|
350
352
|
], SetPasswordDto.prototype, "password", 2);
|
|
351
353
|
|
|
354
|
+
// src/modules/authentication/dto/reset-password-token-validation.dto.ts
|
|
355
|
+
var import_class_validator7 = require("class-validator");
|
|
356
|
+
var ScopeEnum4 = /* @__PURE__ */ ((ScopeEnum5) => {
|
|
357
|
+
ScopeEnum5["ADMIN"] = "ADMIN";
|
|
358
|
+
ScopeEnum5["CLIENT"] = "CLIENT";
|
|
359
|
+
ScopeEnum5["FREELANCER"] = "FREELANCER";
|
|
360
|
+
return ScopeEnum5;
|
|
361
|
+
})(ScopeEnum4 || {});
|
|
362
|
+
var ResetPasswordTokenValidationDto = class {
|
|
363
|
+
};
|
|
364
|
+
__decorateClass([
|
|
365
|
+
(0, import_class_validator7.IsNotEmpty)({ message: "Please enter token." })
|
|
366
|
+
], ResetPasswordTokenValidationDto.prototype, "token", 2);
|
|
367
|
+
__decorateClass([
|
|
368
|
+
(0, import_class_validator7.IsEnum)(ScopeEnum4, {
|
|
369
|
+
message: `Scope must be one of: ${Object.values(ScopeEnum4).join(", ")}`
|
|
370
|
+
})
|
|
371
|
+
], ResetPasswordTokenValidationDto.prototype, "scope", 2);
|
|
372
|
+
|
|
352
373
|
// src/modules/otp/pattern/pattern.ts
|
|
353
374
|
var OTP_PATTERN = {
|
|
354
375
|
handleSendGuestOtp: "handle.send.guest.otp",
|
|
@@ -358,7 +379,7 @@ var OTP_PATTERN = {
|
|
|
358
379
|
};
|
|
359
380
|
|
|
360
381
|
// src/modules/otp/dto/send-guest-otp.dto.ts
|
|
361
|
-
var
|
|
382
|
+
var import_class_validator8 = require("class-validator");
|
|
362
383
|
var SendGuestOtpPurposeEnum = /* @__PURE__ */ ((SendGuestOtpPurposeEnum2) => {
|
|
363
384
|
SendGuestOtpPurposeEnum2["ACCOUNT_VERIFICATION"] = "ACCOUNT_VERIFICATION";
|
|
364
385
|
return SendGuestOtpPurposeEnum2;
|
|
@@ -371,28 +392,28 @@ var SendGuestOtpScopeEnum = /* @__PURE__ */ ((SendGuestOtpScopeEnum2) => {
|
|
|
371
392
|
var SendGuestOtpDto = class {
|
|
372
393
|
};
|
|
373
394
|
__decorateClass([
|
|
374
|
-
(0,
|
|
375
|
-
(0,
|
|
395
|
+
(0, import_class_validator8.IsNotEmpty)({ message: "Please enter full name." }),
|
|
396
|
+
(0, import_class_validator8.IsString)({ message: "Please enter valid full name." })
|
|
376
397
|
], SendGuestOtpDto.prototype, "fullName", 2);
|
|
377
398
|
__decorateClass([
|
|
378
|
-
(0,
|
|
379
|
-
(0,
|
|
399
|
+
(0, import_class_validator8.IsNotEmpty)({ message: "Please enter target." }),
|
|
400
|
+
(0, import_class_validator8.IsString)({ message: "Please enter valid target." })
|
|
380
401
|
], SendGuestOtpDto.prototype, "target", 2);
|
|
381
402
|
__decorateClass([
|
|
382
|
-
(0,
|
|
383
|
-
(0,
|
|
403
|
+
(0, import_class_validator8.IsOptional)(),
|
|
404
|
+
(0, import_class_validator8.IsString)({ message: "Please enter valid fallback target." })
|
|
384
405
|
], SendGuestOtpDto.prototype, "fallbackTarget", 2);
|
|
385
406
|
__decorateClass([
|
|
386
|
-
(0,
|
|
387
|
-
(0,
|
|
407
|
+
(0, import_class_validator8.IsNotEmpty)({ message: "Please enter OTP purpose." }),
|
|
408
|
+
(0, import_class_validator8.IsEnum)(SendGuestOtpPurposeEnum, { message: "Purpose must be a valid OTP purpose" })
|
|
388
409
|
], SendGuestOtpDto.prototype, "purpose", 2);
|
|
389
410
|
__decorateClass([
|
|
390
|
-
(0,
|
|
391
|
-
(0,
|
|
411
|
+
(0, import_class_validator8.IsNotEmpty)({ message: "Please enter scope." }),
|
|
412
|
+
(0, import_class_validator8.IsEnum)(SendGuestOtpScopeEnum, { message: "scope must be a valid" })
|
|
392
413
|
], SendGuestOtpDto.prototype, "scope", 2);
|
|
393
414
|
|
|
394
415
|
// src/modules/otp/dto/verify-guest-otp.dto.ts
|
|
395
|
-
var
|
|
416
|
+
var import_class_validator9 = require("class-validator");
|
|
396
417
|
var VerifyGuestOtpPurposeEnum = /* @__PURE__ */ ((VerifyGuestOtpPurposeEnum2) => {
|
|
397
418
|
VerifyGuestOtpPurposeEnum2["ACCOUNT_VERIFICATION"] = "ACCOUNT_VERIFICATION";
|
|
398
419
|
return VerifyGuestOtpPurposeEnum2;
|
|
@@ -400,17 +421,17 @@ var VerifyGuestOtpPurposeEnum = /* @__PURE__ */ ((VerifyGuestOtpPurposeEnum2) =>
|
|
|
400
421
|
var VerifyGuestOtpDto = class {
|
|
401
422
|
};
|
|
402
423
|
__decorateClass([
|
|
403
|
-
(0,
|
|
404
|
-
(0,
|
|
424
|
+
(0, import_class_validator9.IsNotEmpty)({ message: "Please enter target." }),
|
|
425
|
+
(0, import_class_validator9.IsString)({ message: "Please enter valid target." })
|
|
405
426
|
], VerifyGuestOtpDto.prototype, "target", 2);
|
|
406
427
|
__decorateClass([
|
|
407
|
-
(0,
|
|
408
|
-
(0,
|
|
409
|
-
(0,
|
|
428
|
+
(0, import_class_validator9.IsNotEmpty)({ message: "Please enter otp." }),
|
|
429
|
+
(0, import_class_validator9.IsString)({ message: "Please enter valid otp." }),
|
|
430
|
+
(0, import_class_validator9.Length)(4, 6, { message: "OTP must be between 4 and 6 characters" })
|
|
410
431
|
], VerifyGuestOtpDto.prototype, "otp", 2);
|
|
411
432
|
__decorateClass([
|
|
412
|
-
(0,
|
|
413
|
-
(0,
|
|
433
|
+
(0, import_class_validator9.IsNotEmpty)({ message: "Please enter OTP purpose." }),
|
|
434
|
+
(0, import_class_validator9.IsEnum)(VerifyGuestOtpPurposeEnum, {
|
|
414
435
|
message: "Purpose must be a valid OTP purpose"
|
|
415
436
|
})
|
|
416
437
|
], VerifyGuestOtpDto.prototype, "purpose", 2);
|
|
@@ -428,13 +449,13 @@ var ONBOARDING_PATTERN = {
|
|
|
428
449
|
};
|
|
429
450
|
|
|
430
451
|
// src/modules/onboarding/dto/freelancer-create-account.dto.ts
|
|
431
|
-
var
|
|
452
|
+
var import_class_validator13 = require("class-validator");
|
|
432
453
|
|
|
433
454
|
// src/decorators/match.decorator.ts
|
|
434
|
-
var
|
|
455
|
+
var import_class_validator10 = require("class-validator");
|
|
435
456
|
function Match(property, validationOptions) {
|
|
436
457
|
return function(object, propertyName) {
|
|
437
|
-
(0,
|
|
458
|
+
(0, import_class_validator10.registerDecorator)({
|
|
438
459
|
name: "Match",
|
|
439
460
|
target: object.constructor,
|
|
440
461
|
propertyName,
|
|
@@ -470,11 +491,11 @@ var IfscOrOtherFieldsConstraint = class {
|
|
|
470
491
|
}
|
|
471
492
|
};
|
|
472
493
|
IfscOrOtherFieldsConstraint = __decorateClass([
|
|
473
|
-
(0,
|
|
494
|
+
(0, import_class_validator10.ValidatorConstraint)({ async: false })
|
|
474
495
|
], IfscOrOtherFieldsConstraint);
|
|
475
496
|
|
|
476
497
|
// src/decorators/is-valid-mobile-number.decorator.ts
|
|
477
|
-
var
|
|
498
|
+
var import_class_validator11 = require("class-validator");
|
|
478
499
|
var import_libphonenumber_js = require("libphonenumber-js");
|
|
479
500
|
var IsValidMobileNumberConstraint = class {
|
|
480
501
|
validate(mobile, args) {
|
|
@@ -493,11 +514,11 @@ var IsValidMobileNumberConstraint = class {
|
|
|
493
514
|
}
|
|
494
515
|
};
|
|
495
516
|
IsValidMobileNumberConstraint = __decorateClass([
|
|
496
|
-
(0,
|
|
517
|
+
(0, import_class_validator11.ValidatorConstraint)({ name: "isValidMobileNumber", async: false })
|
|
497
518
|
], IsValidMobileNumberConstraint);
|
|
498
519
|
function IsValidMobileNumber(validationOptions) {
|
|
499
520
|
return function(object, propertyName) {
|
|
500
|
-
(0,
|
|
521
|
+
(0, import_class_validator11.registerDecorator)({
|
|
501
522
|
name: "isValidMobileNumber",
|
|
502
523
|
target: object.constructor,
|
|
503
524
|
propertyName,
|
|
@@ -508,7 +529,7 @@ function IsValidMobileNumber(validationOptions) {
|
|
|
508
529
|
}
|
|
509
530
|
|
|
510
531
|
// src/decorators/is-business-email.decorator.ts
|
|
511
|
-
var
|
|
532
|
+
var import_class_validator12 = require("class-validator");
|
|
512
533
|
var IsBusinessEmailConstraint = class {
|
|
513
534
|
constructor() {
|
|
514
535
|
this.blockedDomains = [
|
|
@@ -576,11 +597,11 @@ var IsBusinessEmailConstraint = class {
|
|
|
576
597
|
}
|
|
577
598
|
};
|
|
578
599
|
IsBusinessEmailConstraint = __decorateClass([
|
|
579
|
-
(0,
|
|
600
|
+
(0, import_class_validator12.ValidatorConstraint)({ async: false })
|
|
580
601
|
], IsBusinessEmailConstraint);
|
|
581
602
|
function IsBusinessEmail(validationOptions) {
|
|
582
603
|
return function(object, propertyName) {
|
|
583
|
-
(0,
|
|
604
|
+
(0, import_class_validator12.registerDecorator)({
|
|
584
605
|
target: object.constructor,
|
|
585
606
|
propertyName,
|
|
586
607
|
options: validationOptions,
|
|
@@ -594,124 +615,124 @@ function IsBusinessEmail(validationOptions) {
|
|
|
594
615
|
var FreelancerCreateAccountDto = class {
|
|
595
616
|
};
|
|
596
617
|
__decorateClass([
|
|
597
|
-
(0,
|
|
598
|
-
(0,
|
|
618
|
+
(0, import_class_validator13.IsNotEmpty)({ message: "Please enter full name." }),
|
|
619
|
+
(0, import_class_validator13.IsString)({ message: "Please enter valid full name." })
|
|
599
620
|
], FreelancerCreateAccountDto.prototype, "fullName", 2);
|
|
600
621
|
__decorateClass([
|
|
601
|
-
(0,
|
|
602
|
-
(0,
|
|
622
|
+
(0, import_class_validator13.IsNotEmpty)({ message: "Please enter email." }),
|
|
623
|
+
(0, import_class_validator13.IsEmail)()
|
|
603
624
|
], FreelancerCreateAccountDto.prototype, "email", 2);
|
|
604
625
|
__decorateClass([
|
|
605
|
-
(0,
|
|
606
|
-
(0,
|
|
626
|
+
(0, import_class_validator13.IsNotEmpty)({ message: "Please enter mobile code." }),
|
|
627
|
+
(0, import_class_validator13.Matches)(/^\+\d{1,4}$/, {
|
|
607
628
|
message: "Please enter a valid country mobile code (e.g., +91, +1, +44)."
|
|
608
629
|
})
|
|
609
630
|
], FreelancerCreateAccountDto.prototype, "mobileCode", 2);
|
|
610
631
|
__decorateClass([
|
|
611
|
-
(0,
|
|
632
|
+
(0, import_class_validator13.IsNotEmpty)({ message: "Please enter mobile number." }),
|
|
612
633
|
IsValidMobileNumber({ message: "Mobile number is not valid for the selected country code." })
|
|
613
634
|
], FreelancerCreateAccountDto.prototype, "mobile", 2);
|
|
614
635
|
__decorateClass([
|
|
615
|
-
(0,
|
|
616
|
-
(0,
|
|
617
|
-
(0,
|
|
618
|
-
(0,
|
|
636
|
+
(0, import_class_validator13.IsNotEmpty)({ message: "Please enter password." }),
|
|
637
|
+
(0, import_class_validator13.MinLength)(6),
|
|
638
|
+
(0, import_class_validator13.MaxLength)(32),
|
|
639
|
+
(0, import_class_validator13.Matches)(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
619
640
|
message: "Password must include letters, numbers and symbols."
|
|
620
641
|
})
|
|
621
642
|
], FreelancerCreateAccountDto.prototype, "password", 2);
|
|
622
643
|
__decorateClass([
|
|
623
|
-
(0,
|
|
644
|
+
(0, import_class_validator13.IsNotEmpty)({ message: "Please enter confirm password." }),
|
|
624
645
|
Match("password", { message: "Passwords do not match" })
|
|
625
646
|
], FreelancerCreateAccountDto.prototype, "confirmPassword", 2);
|
|
626
647
|
|
|
627
648
|
// src/modules/onboarding/dto/freelancer-upload-resume.dto.ts
|
|
628
|
-
var
|
|
649
|
+
var import_class_validator14 = require("class-validator");
|
|
629
650
|
var FreelancerUploadResumeDto = class {
|
|
630
651
|
};
|
|
631
652
|
__decorateClass([
|
|
632
|
-
(0,
|
|
633
|
-
(0,
|
|
653
|
+
(0, import_class_validator14.IsNotEmpty)({ message: "Please enter uuid." }),
|
|
654
|
+
(0, import_class_validator14.IsUUID)()
|
|
634
655
|
], FreelancerUploadResumeDto.prototype, "uuid", 2);
|
|
635
656
|
|
|
636
657
|
// src/modules/onboarding/dto/freelancer-parse-resume.dto.ts
|
|
637
|
-
var
|
|
658
|
+
var import_class_validator15 = require("class-validator");
|
|
638
659
|
var FreelancerParseResumeDto = class {
|
|
639
660
|
};
|
|
640
661
|
__decorateClass([
|
|
641
|
-
(0,
|
|
642
|
-
(0,
|
|
662
|
+
(0, import_class_validator15.IsNotEmpty)({ message: "Please enter uuid." }),
|
|
663
|
+
(0, import_class_validator15.IsUUID)()
|
|
643
664
|
], FreelancerParseResumeDto.prototype, "uuid", 2);
|
|
644
665
|
|
|
645
666
|
// src/modules/onboarding/dto/freelancer-initiate-mcq-assessment.dto.ts
|
|
646
|
-
var
|
|
667
|
+
var import_class_validator16 = require("class-validator");
|
|
647
668
|
var FreelancerInitiateMcqAssessmentDto = class {
|
|
648
669
|
};
|
|
649
670
|
__decorateClass([
|
|
650
|
-
(0,
|
|
651
|
-
(0,
|
|
671
|
+
(0, import_class_validator16.IsNotEmpty)({ message: "Please enter uuid." }),
|
|
672
|
+
(0, import_class_validator16.IsUUID)()
|
|
652
673
|
], FreelancerInitiateMcqAssessmentDto.prototype, "uuid", 2);
|
|
653
674
|
|
|
654
675
|
// src/modules/onboarding/dto/freelancer-skip-ai-assessment.dto.ts
|
|
655
|
-
var
|
|
676
|
+
var import_class_validator17 = require("class-validator");
|
|
656
677
|
var FreelancerSkipAiAssessmentDto = class {
|
|
657
678
|
};
|
|
658
679
|
__decorateClass([
|
|
659
|
-
(0,
|
|
660
|
-
(0,
|
|
680
|
+
(0, import_class_validator17.IsNotEmpty)({ message: "Please enter uuid." }),
|
|
681
|
+
(0, import_class_validator17.IsUUID)()
|
|
661
682
|
], FreelancerSkipAiAssessmentDto.prototype, "uuid", 2);
|
|
662
683
|
|
|
663
684
|
// src/modules/onboarding/dto/freelancer-initiate-ai-assessment.dto.ts
|
|
664
|
-
var
|
|
685
|
+
var import_class_validator18 = require("class-validator");
|
|
665
686
|
var FreelancerInitiateAiAssessmentDto = class {
|
|
666
687
|
};
|
|
667
688
|
__decorateClass([
|
|
668
|
-
(0,
|
|
669
|
-
(0,
|
|
689
|
+
(0, import_class_validator18.IsNotEmpty)({ message: "Please enter uuid." }),
|
|
690
|
+
(0, import_class_validator18.IsUUID)()
|
|
670
691
|
], FreelancerInitiateAiAssessmentDto.prototype, "uuid", 2);
|
|
671
692
|
|
|
672
693
|
// src/modules/onboarding/dto/freelancer-capture-ai-assessment-status.dto.ts
|
|
673
|
-
var
|
|
694
|
+
var import_class_validator19 = require("class-validator");
|
|
674
695
|
var FreelancerCaptureAiAssessmentStatusDto = class {
|
|
675
696
|
};
|
|
676
697
|
__decorateClass([
|
|
677
|
-
(0,
|
|
678
|
-
(0,
|
|
698
|
+
(0, import_class_validator19.IsNotEmpty)({ message: "Please enter uuid." }),
|
|
699
|
+
(0, import_class_validator19.IsUUID)()
|
|
679
700
|
], FreelancerCaptureAiAssessmentStatusDto.prototype, "uuid", 2);
|
|
680
701
|
__decorateClass([
|
|
681
|
-
(0,
|
|
702
|
+
(0, import_class_validator19.IsNotEmpty)({ message: "Please enter assessment id." })
|
|
682
703
|
], FreelancerCaptureAiAssessmentStatusDto.prototype, "assessmentId", 2);
|
|
683
704
|
__decorateClass([
|
|
684
|
-
(0,
|
|
705
|
+
(0, import_class_validator19.IsNotEmpty)({ message: "Please enter assessment status." })
|
|
685
706
|
], FreelancerCaptureAiAssessmentStatusDto.prototype, "assessmentStatus", 2);
|
|
686
707
|
__decorateClass([
|
|
687
|
-
(0,
|
|
708
|
+
(0, import_class_validator19.IsOptional)()
|
|
688
709
|
], FreelancerCaptureAiAssessmentStatusDto.prototype, "iframeEventData", 2);
|
|
689
710
|
|
|
690
711
|
// src/modules/onboarding/dto/freelancer-development-preference.dto.ts
|
|
691
|
-
var
|
|
712
|
+
var import_class_validator20 = require("class-validator");
|
|
692
713
|
var FreelancerDevelopmentPreferenceDto = class {
|
|
693
714
|
};
|
|
694
715
|
__decorateClass([
|
|
695
|
-
(0,
|
|
696
|
-
(0,
|
|
716
|
+
(0, import_class_validator20.IsNotEmpty)({ message: "Please enter uuid." }),
|
|
717
|
+
(0, import_class_validator20.IsUUID)()
|
|
697
718
|
], FreelancerDevelopmentPreferenceDto.prototype, "uuid", 2);
|
|
698
719
|
__decorateClass([
|
|
699
|
-
(0,
|
|
700
|
-
(0,
|
|
720
|
+
(0, import_class_validator20.IsNotEmpty)({ message: "Please select development flag." }),
|
|
721
|
+
(0, import_class_validator20.IsBoolean)()
|
|
701
722
|
], FreelancerDevelopmentPreferenceDto.prototype, "developer", 2);
|
|
702
723
|
|
|
703
724
|
// src/modules/onboarding/dto/freelancer-profile-question.dto.ts
|
|
704
|
-
var
|
|
725
|
+
var import_class_validator21 = require("class-validator");
|
|
705
726
|
var FreelancerProfileQuestionDto = class {
|
|
706
727
|
};
|
|
707
728
|
__decorateClass([
|
|
708
|
-
(0,
|
|
709
|
-
(0,
|
|
729
|
+
(0, import_class_validator21.IsNotEmpty)({ message: "Please enter uuid." }),
|
|
730
|
+
(0, import_class_validator21.IsUUID)()
|
|
710
731
|
], FreelancerProfileQuestionDto.prototype, "uuid", 2);
|
|
711
732
|
__decorateClass([
|
|
712
|
-
(0,
|
|
713
|
-
(0,
|
|
714
|
-
(0,
|
|
733
|
+
(0, import_class_validator21.IsNotEmpty)({ message: "Please enter question slug." }),
|
|
734
|
+
(0, import_class_validator21.IsString)(),
|
|
735
|
+
(0, import_class_validator21.IsIn)([
|
|
715
736
|
"natureOfWork",
|
|
716
737
|
"expectedHourlyCompensation",
|
|
717
738
|
"modeOfWork",
|
|
@@ -720,21 +741,21 @@ __decorateClass([
|
|
|
720
741
|
])
|
|
721
742
|
], FreelancerProfileQuestionDto.prototype, "question_slug", 2);
|
|
722
743
|
__decorateClass([
|
|
723
|
-
(0,
|
|
744
|
+
(0, import_class_validator21.IsNotEmpty)({ message: "Please enter answer." })
|
|
724
745
|
], FreelancerProfileQuestionDto.prototype, "answer", 2);
|
|
725
746
|
|
|
726
747
|
// src/modules/onboarding/dto/freelancer-work-showcase.dto.ts
|
|
727
|
-
var
|
|
748
|
+
var import_class_validator22 = require("class-validator");
|
|
728
749
|
var FreelancerWorkShowcaseDto = class {
|
|
729
750
|
};
|
|
730
751
|
__decorateClass([
|
|
731
|
-
(0,
|
|
732
|
-
(0,
|
|
752
|
+
(0, import_class_validator22.IsNotEmpty)({ message: "Please enter uuid." }),
|
|
753
|
+
(0, import_class_validator22.IsUUID)()
|
|
733
754
|
], FreelancerWorkShowcaseDto.prototype, "uuid", 2);
|
|
734
755
|
__decorateClass([
|
|
735
|
-
(0,
|
|
736
|
-
(0,
|
|
737
|
-
(0,
|
|
756
|
+
(0, import_class_validator22.IsNotEmpty)({ message: "Please enter likedin profile url." }),
|
|
757
|
+
(0, import_class_validator22.IsString)(),
|
|
758
|
+
(0, import_class_validator22.IsUrl)(
|
|
738
759
|
{ require_protocol: false },
|
|
739
760
|
{
|
|
740
761
|
message: "linkedinProfileLink must be a valid URL with protocol (e.g. https://)"
|
|
@@ -742,8 +763,8 @@ __decorateClass([
|
|
|
742
763
|
)
|
|
743
764
|
], FreelancerWorkShowcaseDto.prototype, "linkedinProfileLink", 2);
|
|
744
765
|
__decorateClass([
|
|
745
|
-
(0,
|
|
746
|
-
(0,
|
|
766
|
+
(0, import_class_validator22.IsOptional)(),
|
|
767
|
+
(0, import_class_validator22.IsUrl)(
|
|
747
768
|
{ require_protocol: false },
|
|
748
769
|
{
|
|
749
770
|
message: "kaggleProfileLink must be a valid URL with protocol (e.g. https://)"
|
|
@@ -751,8 +772,8 @@ __decorateClass([
|
|
|
751
772
|
)
|
|
752
773
|
], FreelancerWorkShowcaseDto.prototype, "kaggleProfileLink", 2);
|
|
753
774
|
__decorateClass([
|
|
754
|
-
(0,
|
|
755
|
-
(0,
|
|
775
|
+
(0, import_class_validator22.IsOptional)(),
|
|
776
|
+
(0, import_class_validator22.IsUrl)(
|
|
756
777
|
{ require_protocol: false },
|
|
757
778
|
{
|
|
758
779
|
message: "githubProfileLink must be a valid URL with protocol (e.g. https://)"
|
|
@@ -760,8 +781,8 @@ __decorateClass([
|
|
|
760
781
|
)
|
|
761
782
|
], FreelancerWorkShowcaseDto.prototype, "githubProfileLink", 2);
|
|
762
783
|
__decorateClass([
|
|
763
|
-
(0,
|
|
764
|
-
(0,
|
|
784
|
+
(0, import_class_validator22.IsOptional)(),
|
|
785
|
+
(0, import_class_validator22.IsUrl)(
|
|
765
786
|
{ require_protocol: false },
|
|
766
787
|
{
|
|
767
788
|
message: "stackOverflowProfileLink must be a valid URL with protocol (e.g. https://)"
|
|
@@ -769,8 +790,8 @@ __decorateClass([
|
|
|
769
790
|
)
|
|
770
791
|
], FreelancerWorkShowcaseDto.prototype, "stackOverflowProfileLink", 2);
|
|
771
792
|
__decorateClass([
|
|
772
|
-
(0,
|
|
773
|
-
(0,
|
|
793
|
+
(0, import_class_validator22.IsOptional)(),
|
|
794
|
+
(0, import_class_validator22.IsUrl)(
|
|
774
795
|
{ require_protocol: false },
|
|
775
796
|
{
|
|
776
797
|
message: "portfolioLink must be a valid URL with protocol (e.g. https://)"
|
|
@@ -779,17 +800,17 @@ __decorateClass([
|
|
|
779
800
|
], FreelancerWorkShowcaseDto.prototype, "portfolioLink", 2);
|
|
780
801
|
|
|
781
802
|
// src/modules/onboarding/dto/client-profile-question.dto.ts
|
|
782
|
-
var
|
|
803
|
+
var import_class_validator23 = require("class-validator");
|
|
783
804
|
var ClientProfileQuestionDto = class {
|
|
784
805
|
};
|
|
785
806
|
__decorateClass([
|
|
786
|
-
(0,
|
|
787
|
-
(0,
|
|
807
|
+
(0, import_class_validator23.IsNotEmpty)({ message: "Please enter uuid." }),
|
|
808
|
+
(0, import_class_validator23.IsUUID)()
|
|
788
809
|
], ClientProfileQuestionDto.prototype, "uuid", 2);
|
|
789
810
|
__decorateClass([
|
|
790
|
-
(0,
|
|
791
|
-
(0,
|
|
792
|
-
(0,
|
|
811
|
+
(0, import_class_validator23.IsNotEmpty)({ message: "Please enter question slug." }),
|
|
812
|
+
(0, import_class_validator23.IsString)(),
|
|
813
|
+
(0, import_class_validator23.IsIn)([
|
|
793
814
|
"skills",
|
|
794
815
|
"requiredFreelancer",
|
|
795
816
|
"kindOfHiring",
|
|
@@ -798,45 +819,45 @@ __decorateClass([
|
|
|
798
819
|
])
|
|
799
820
|
], ClientProfileQuestionDto.prototype, "question_slug", 2);
|
|
800
821
|
__decorateClass([
|
|
801
|
-
(0,
|
|
822
|
+
(0, import_class_validator23.IsNotEmpty)({ message: "Please enter answer." })
|
|
802
823
|
], ClientProfileQuestionDto.prototype, "answer", 2);
|
|
803
824
|
__decorateClass([
|
|
804
|
-
(0,
|
|
805
|
-
(0,
|
|
806
|
-
(0,
|
|
825
|
+
(0, import_class_validator23.ValidateIf)((o) => o.questionSlug === "foundUsOn" && o.answer === "OTHER"),
|
|
826
|
+
(0, import_class_validator23.IsNotEmpty)({ message: "Please enter foundUsOnDetail if answer is OTHER." }),
|
|
827
|
+
(0, import_class_validator23.IsString)()
|
|
807
828
|
], ClientProfileQuestionDto.prototype, "foundUsOnDetail", 2);
|
|
808
829
|
|
|
809
830
|
// src/modules/onboarding/dto/client-create-account.dto.ts
|
|
810
|
-
var
|
|
831
|
+
var import_class_validator24 = require("class-validator");
|
|
811
832
|
var ClientCreateAccountDto = class {
|
|
812
833
|
};
|
|
813
834
|
__decorateClass([
|
|
814
|
-
(0,
|
|
815
|
-
(0,
|
|
835
|
+
(0, import_class_validator24.IsNotEmpty)({ message: "Please enter first name." }),
|
|
836
|
+
(0, import_class_validator24.IsString)({ message: "Please enter valid first name." })
|
|
816
837
|
], ClientCreateAccountDto.prototype, "firstName", 2);
|
|
817
838
|
__decorateClass([
|
|
818
|
-
(0,
|
|
819
|
-
(0,
|
|
839
|
+
(0, import_class_validator24.IsNotEmpty)({ message: "Please enter last name." }),
|
|
840
|
+
(0, import_class_validator24.IsString)({ message: "Please enter valid last name." })
|
|
820
841
|
], ClientCreateAccountDto.prototype, "lastName", 2);
|
|
821
842
|
__decorateClass([
|
|
822
|
-
(0,
|
|
823
|
-
(0,
|
|
843
|
+
(0, import_class_validator24.IsNotEmpty)({ message: "Please enter email." }),
|
|
844
|
+
(0, import_class_validator24.IsEmail)(),
|
|
824
845
|
IsBusinessEmail()
|
|
825
846
|
], ClientCreateAccountDto.prototype, "email", 2);
|
|
826
847
|
__decorateClass([
|
|
827
|
-
(0,
|
|
828
|
-
(0,
|
|
848
|
+
(0, import_class_validator24.IsNotEmpty)({ message: "Please enter company name." }),
|
|
849
|
+
(0, import_class_validator24.IsString)({ message: "Please enter valid company name." })
|
|
829
850
|
], ClientCreateAccountDto.prototype, "companyName", 2);
|
|
830
851
|
__decorateClass([
|
|
831
|
-
(0,
|
|
832
|
-
(0,
|
|
833
|
-
(0,
|
|
834
|
-
(0,
|
|
852
|
+
(0, import_class_validator24.IsNotEmpty)({ message: "Please enter password." }),
|
|
853
|
+
(0, import_class_validator24.MinLength)(6),
|
|
854
|
+
(0, import_class_validator24.MaxLength)(32),
|
|
855
|
+
(0, import_class_validator24.Matches)(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
835
856
|
message: "Password must include letters, numbers and symbols."
|
|
836
857
|
})
|
|
837
858
|
], ClientCreateAccountDto.prototype, "password", 2);
|
|
838
859
|
__decorateClass([
|
|
839
|
-
(0,
|
|
860
|
+
(0, import_class_validator24.IsNotEmpty)({ message: "Please enter confirm password." }),
|
|
840
861
|
Match("password", { message: "Passwords do not match" })
|
|
841
862
|
], ClientCreateAccountDto.prototype, "confirmPassword", 2);
|
|
842
863
|
|
|
@@ -858,69 +879,69 @@ var SUBADMIN_PATTERN = {
|
|
|
858
879
|
};
|
|
859
880
|
|
|
860
881
|
// src/modules/user/subadmin/dto/create-subadmin.dto.ts
|
|
861
|
-
var
|
|
882
|
+
var import_class_validator25 = require("class-validator");
|
|
862
883
|
var CreateSubAdminDto = class {
|
|
863
884
|
};
|
|
864
885
|
__decorateClass([
|
|
865
|
-
(0,
|
|
886
|
+
(0, import_class_validator25.IsNotEmpty)({ message: "Please enter username." })
|
|
866
887
|
], CreateSubAdminDto.prototype, "userName", 2);
|
|
867
888
|
__decorateClass([
|
|
868
|
-
(0,
|
|
889
|
+
(0, import_class_validator25.IsNotEmpty)({ message: "Please enter first name." })
|
|
869
890
|
], CreateSubAdminDto.prototype, "firstName", 2);
|
|
870
891
|
__decorateClass([
|
|
871
|
-
(0,
|
|
892
|
+
(0, import_class_validator25.IsNotEmpty)({ message: "Please enter last name." })
|
|
872
893
|
], CreateSubAdminDto.prototype, "lastName", 2);
|
|
873
894
|
__decorateClass([
|
|
874
|
-
(0,
|
|
895
|
+
(0, import_class_validator25.IsNotEmpty)({ message: "Please enter email." })
|
|
875
896
|
], CreateSubAdminDto.prototype, "email", 2);
|
|
876
897
|
__decorateClass([
|
|
877
|
-
(0,
|
|
898
|
+
(0, import_class_validator25.IsNotEmpty)({ message: "Please enter mobile Code." })
|
|
878
899
|
], CreateSubAdminDto.prototype, "mobileCode", 2);
|
|
879
900
|
__decorateClass([
|
|
880
|
-
(0,
|
|
901
|
+
(0, import_class_validator25.IsNotEmpty)({ message: "Please enter mobile number." })
|
|
881
902
|
], CreateSubAdminDto.prototype, "mobile", 2);
|
|
882
903
|
__decorateClass([
|
|
883
|
-
(0,
|
|
904
|
+
(0, import_class_validator25.IsNotEmpty)({ message: "Please enter the password." })
|
|
884
905
|
], CreateSubAdminDto.prototype, "password", 2);
|
|
885
906
|
__decorateClass([
|
|
886
|
-
(0,
|
|
907
|
+
(0, import_class_validator25.IsNotEmpty)({ message: "Please Select Roles." })
|
|
887
908
|
], CreateSubAdminDto.prototype, "roleIds", 2);
|
|
888
909
|
|
|
889
910
|
// src/modules/user/subadmin/dto/update-subadmin-status.dto.ts
|
|
890
|
-
var
|
|
911
|
+
var import_class_validator26 = require("class-validator");
|
|
891
912
|
var UpdateSubAdminAccountStatusDto = class {
|
|
892
913
|
};
|
|
893
914
|
__decorateClass([
|
|
894
|
-
(0,
|
|
915
|
+
(0, import_class_validator26.IsString)()
|
|
895
916
|
], UpdateSubAdminAccountStatusDto.prototype, "accountStatus", 2);
|
|
896
917
|
|
|
897
918
|
// src/modules/user/subadmin/dto/update-subadmin.dto.ts
|
|
898
|
-
var
|
|
919
|
+
var import_class_validator27 = require("class-validator");
|
|
899
920
|
var UpdateSubAdminDto = class {
|
|
900
921
|
};
|
|
901
922
|
__decorateClass([
|
|
902
|
-
(0,
|
|
923
|
+
(0, import_class_validator27.IsNotEmpty)({ message: "Please enter username." })
|
|
903
924
|
], UpdateSubAdminDto.prototype, "userName", 2);
|
|
904
925
|
__decorateClass([
|
|
905
|
-
(0,
|
|
926
|
+
(0, import_class_validator27.IsNotEmpty)({ message: "Please enter first name." })
|
|
906
927
|
], UpdateSubAdminDto.prototype, "firstName", 2);
|
|
907
928
|
__decorateClass([
|
|
908
|
-
(0,
|
|
929
|
+
(0, import_class_validator27.IsNotEmpty)({ message: "Please enter last name." })
|
|
909
930
|
], UpdateSubAdminDto.prototype, "lastName", 2);
|
|
910
931
|
__decorateClass([
|
|
911
|
-
(0,
|
|
932
|
+
(0, import_class_validator27.IsNotEmpty)({ message: "Please enter email." })
|
|
912
933
|
], UpdateSubAdminDto.prototype, "email", 2);
|
|
913
934
|
__decorateClass([
|
|
914
|
-
(0,
|
|
935
|
+
(0, import_class_validator27.IsNotEmpty)({ message: "Please enter mobile Code." })
|
|
915
936
|
], UpdateSubAdminDto.prototype, "mobileCode", 2);
|
|
916
937
|
__decorateClass([
|
|
917
|
-
(0,
|
|
938
|
+
(0, import_class_validator27.IsNotEmpty)({ message: "Please enter mobile number." })
|
|
918
939
|
], UpdateSubAdminDto.prototype, "mobile", 2);
|
|
919
940
|
__decorateClass([
|
|
920
|
-
(0,
|
|
941
|
+
(0, import_class_validator27.IsNotEmpty)({ message: "Please enter the password." })
|
|
921
942
|
], UpdateSubAdminDto.prototype, "password", 2);
|
|
922
943
|
__decorateClass([
|
|
923
|
-
(0,
|
|
944
|
+
(0, import_class_validator27.IsNotEmpty)({ message: "Please Select Roles." })
|
|
924
945
|
], UpdateSubAdminDto.prototype, "roleIds", 2);
|
|
925
946
|
|
|
926
947
|
// src/modules/user/client-profile/pattern/pattern.ts
|
|
@@ -934,58 +955,58 @@ var CLIENT_PROFILE_PATTERN = {
|
|
|
934
955
|
};
|
|
935
956
|
|
|
936
957
|
// src/modules/user/client-profile/dto/update-client-profile.dto.ts
|
|
937
|
-
var
|
|
958
|
+
var import_class_validator28 = require("class-validator");
|
|
938
959
|
var UpdateCompanyProfileDto = class {
|
|
939
960
|
};
|
|
940
961
|
__decorateClass([
|
|
941
|
-
(0,
|
|
942
|
-
(0,
|
|
943
|
-
(0,
|
|
962
|
+
(0, import_class_validator28.IsNotEmpty)({ message: "Please enter company name." }),
|
|
963
|
+
(0, import_class_validator28.IsString)({ message: "Company name must be a string." }),
|
|
964
|
+
(0, import_class_validator28.Length)(2, 255, {
|
|
944
965
|
message: "Company name must be between 2 and 255 characters"
|
|
945
966
|
})
|
|
946
967
|
], UpdateCompanyProfileDto.prototype, "companyName", 2);
|
|
947
968
|
__decorateClass([
|
|
948
|
-
(0,
|
|
949
|
-
(0,
|
|
969
|
+
(0, import_class_validator28.IsNotEmpty)({ message: "Please enter company website url." }),
|
|
970
|
+
(0, import_class_validator28.IsUrl)({}, { message: "Invalid website URL format" })
|
|
950
971
|
], UpdateCompanyProfileDto.prototype, "webSite", 2);
|
|
951
972
|
__decorateClass([
|
|
952
|
-
(0,
|
|
953
|
-
(0,
|
|
954
|
-
(0,
|
|
973
|
+
(0, import_class_validator28.IsNotEmpty)({ message: "Please enter company address." }),
|
|
974
|
+
(0, import_class_validator28.IsString)({ message: "Company address must be a string" }),
|
|
975
|
+
(0, import_class_validator28.Length)(5, 1e3, { message: "Address must be between 5 and 1000 characters" })
|
|
955
976
|
], UpdateCompanyProfileDto.prototype, "companyAddress", 2);
|
|
956
977
|
__decorateClass([
|
|
957
|
-
(0,
|
|
958
|
-
(0,
|
|
978
|
+
(0, import_class_validator28.IsNotEmpty)({ message: "Please enter mobile code." }),
|
|
979
|
+
(0, import_class_validator28.IsString)({ message: "Mobile Code must be a string" })
|
|
959
980
|
], UpdateCompanyProfileDto.prototype, "mobileCode", 2);
|
|
960
981
|
// @Matches(/^(\+1\s?)?(\(?\d{3}\)?[\s.-]?)?\d{3}[\s.-]?\d{4}$/, {
|
|
961
982
|
// message: "Please enter a valid US phone number",
|
|
962
983
|
// })
|
|
963
984
|
__decorateClass([
|
|
964
|
-
(0,
|
|
965
|
-
(0,
|
|
985
|
+
(0, import_class_validator28.IsNotEmpty)({ message: "Please enter phone number." }),
|
|
986
|
+
(0, import_class_validator28.IsString)({ message: "Please enter valid phone number." })
|
|
966
987
|
], UpdateCompanyProfileDto.prototype, "phoneNumber", 2);
|
|
967
988
|
__decorateClass([
|
|
968
|
-
(0,
|
|
969
|
-
(0,
|
|
989
|
+
(0, import_class_validator28.IsNotEmpty)({ message: "Please enter email." }),
|
|
990
|
+
(0, import_class_validator28.IsEmail)()
|
|
970
991
|
], UpdateCompanyProfileDto.prototype, "email", 2);
|
|
971
992
|
__decorateClass([
|
|
972
|
-
(0,
|
|
973
|
-
(0,
|
|
993
|
+
(0, import_class_validator28.IsNotEmpty)({ message: "Please enter something about company." }),
|
|
994
|
+
(0, import_class_validator28.IsString)({ message: "About company must be a string." })
|
|
974
995
|
], UpdateCompanyProfileDto.prototype, "aboutCompany", 2);
|
|
975
996
|
|
|
976
997
|
// src/modules/user/client-profile/dto/client-change-password.dto.ts
|
|
977
|
-
var
|
|
998
|
+
var import_class_validator29 = require("class-validator");
|
|
978
999
|
var ClientChangePasswordDto = class {
|
|
979
1000
|
};
|
|
980
1001
|
__decorateClass([
|
|
981
|
-
(0,
|
|
982
|
-
(0,
|
|
983
|
-
(0,
|
|
1002
|
+
(0, import_class_validator29.IsString)(),
|
|
1003
|
+
(0, import_class_validator29.MinLength)(8, { message: "Password must be at least 8 characters long." }),
|
|
1004
|
+
(0, import_class_validator29.Matches)(/^(?=.*[A-Z])(?=.*\d).+$/, {
|
|
984
1005
|
message: "Password must contain at least one uppercase letter and one number."
|
|
985
1006
|
})
|
|
986
1007
|
], ClientChangePasswordDto.prototype, "newPassword", 2);
|
|
987
1008
|
__decorateClass([
|
|
988
|
-
(0,
|
|
1009
|
+
(0, import_class_validator29.IsNotEmpty)({ message: "Please enter confirm password." }),
|
|
989
1010
|
Match("newPassword", { message: "Passwords do not match" })
|
|
990
1011
|
], ClientChangePasswordDto.prototype, "confirmPassword", 2);
|
|
991
1012
|
|
|
@@ -998,24 +1019,24 @@ var ASSESSMENT_QUESTION_PATTERN = {
|
|
|
998
1019
|
};
|
|
999
1020
|
|
|
1000
1021
|
// src/modules/question/dto/create-question.dto.ts
|
|
1001
|
-
var
|
|
1022
|
+
var import_class_validator30 = require("class-validator");
|
|
1002
1023
|
var CreateQuestionDto = class {
|
|
1003
1024
|
};
|
|
1004
1025
|
__decorateClass([
|
|
1005
|
-
(0,
|
|
1026
|
+
(0, import_class_validator30.IsNotEmpty)({ message: "Please enter unique id." })
|
|
1006
1027
|
], CreateQuestionDto.prototype, "questionId", 2);
|
|
1007
1028
|
__decorateClass([
|
|
1008
|
-
(0,
|
|
1029
|
+
(0, import_class_validator30.IsNotEmpty)({ message: "Please enter question." })
|
|
1009
1030
|
], CreateQuestionDto.prototype, "question", 2);
|
|
1010
1031
|
__decorateClass([
|
|
1011
|
-
(0,
|
|
1032
|
+
(0, import_class_validator30.IsNotEmpty)({ message: "Please enter for whom the question is." })
|
|
1012
1033
|
], CreateQuestionDto.prototype, "questionFor", 2);
|
|
1013
1034
|
__decorateClass([
|
|
1014
|
-
(0,
|
|
1035
|
+
(0, import_class_validator30.IsNotEmpty)({ message: "Please enter options." })
|
|
1015
1036
|
], CreateQuestionDto.prototype, "options", 2);
|
|
1016
1037
|
__decorateClass([
|
|
1017
|
-
(0,
|
|
1018
|
-
(0,
|
|
1038
|
+
(0, import_class_validator30.IsOptional)(),
|
|
1039
|
+
(0, import_class_validator30.IsBoolean)({ message: "Whether the question status active" })
|
|
1019
1040
|
], CreateQuestionDto.prototype, "isActive", 2);
|
|
1020
1041
|
|
|
1021
1042
|
// src/modules/job/pattern/pattern.ts
|
|
@@ -1044,7 +1065,7 @@ var JOB_PATTERN = {
|
|
|
1044
1065
|
};
|
|
1045
1066
|
|
|
1046
1067
|
// src/modules/job/dto/job-basic-information.dto.ts
|
|
1047
|
-
var
|
|
1068
|
+
var import_class_validator31 = require("class-validator");
|
|
1048
1069
|
var import_class_transformer = require("class-transformer");
|
|
1049
1070
|
var JobLocation = /* @__PURE__ */ ((JobLocation2) => {
|
|
1050
1071
|
JobLocation2["ONSITE"] = "ONSITE";
|
|
@@ -1061,114 +1082,114 @@ var EmploymentType = /* @__PURE__ */ ((EmploymentType2) => {
|
|
|
1061
1082
|
var JobBasicInformationDto = class {
|
|
1062
1083
|
};
|
|
1063
1084
|
__decorateClass([
|
|
1064
|
-
(0,
|
|
1065
|
-
(0,
|
|
1085
|
+
(0, import_class_validator31.IsNotEmpty)({ message: "Please enter job role" }),
|
|
1086
|
+
(0, import_class_validator31.IsString)({ message: "Job role must be a string" })
|
|
1066
1087
|
], JobBasicInformationDto.prototype, "jobRole", 2);
|
|
1067
1088
|
__decorateClass([
|
|
1068
|
-
(0,
|
|
1069
|
-
(0,
|
|
1089
|
+
(0, import_class_validator31.IsOptional)(),
|
|
1090
|
+
(0, import_class_validator31.IsString)({ message: "Note must be a string" })
|
|
1070
1091
|
], JobBasicInformationDto.prototype, "note", 2);
|
|
1071
1092
|
__decorateClass([
|
|
1072
|
-
(0,
|
|
1073
|
-
(0,
|
|
1074
|
-
(0,
|
|
1093
|
+
(0, import_class_validator31.IsArray)({ message: "Skills must be an array" }),
|
|
1094
|
+
(0, import_class_validator31.ArrayNotEmpty)({ message: "Please select at least one skill" }),
|
|
1095
|
+
(0, import_class_validator31.IsNumber)({}, { each: true, message: "Each skill must be a number" }),
|
|
1075
1096
|
(0, import_class_transformer.Type)(() => Number)
|
|
1076
1097
|
], JobBasicInformationDto.prototype, "skills", 2);
|
|
1077
1098
|
__decorateClass([
|
|
1078
|
-
(0,
|
|
1079
|
-
(0,
|
|
1099
|
+
(0, import_class_validator31.IsNumber)({}, { message: "Openings must be a number" }),
|
|
1100
|
+
(0, import_class_validator31.Min)(1, { message: "There must be at least 1 opening" }),
|
|
1080
1101
|
(0, import_class_transformer.Type)(() => Number)
|
|
1081
1102
|
], JobBasicInformationDto.prototype, "openings", 2);
|
|
1082
1103
|
__decorateClass([
|
|
1083
|
-
(0,
|
|
1104
|
+
(0, import_class_validator31.IsEnum)(JobLocation, {
|
|
1084
1105
|
message: `Location must be one of: ${Object.values(JobLocation).join(
|
|
1085
1106
|
", "
|
|
1086
1107
|
)}`
|
|
1087
1108
|
})
|
|
1088
1109
|
], JobBasicInformationDto.prototype, "location", 2);
|
|
1089
1110
|
__decorateClass([
|
|
1090
|
-
(0,
|
|
1111
|
+
(0, import_class_validator31.IsNumber)({}, { message: "Country id must be a number" }),
|
|
1091
1112
|
(0, import_class_transformer.Type)(() => Number)
|
|
1092
1113
|
], JobBasicInformationDto.prototype, "countryId", 2);
|
|
1093
1114
|
__decorateClass([
|
|
1094
|
-
(0,
|
|
1115
|
+
(0, import_class_validator31.IsNumber)({}, { message: "State id must be a number" }),
|
|
1095
1116
|
(0, import_class_transformer.Type)(() => Number)
|
|
1096
1117
|
], JobBasicInformationDto.prototype, "stateId", 2);
|
|
1097
1118
|
__decorateClass([
|
|
1098
|
-
(0,
|
|
1119
|
+
(0, import_class_validator31.IsNumber)({}, { message: "City id must be a number" }),
|
|
1099
1120
|
(0, import_class_transformer.Type)(() => Number)
|
|
1100
1121
|
], JobBasicInformationDto.prototype, "cityId", 2);
|
|
1101
1122
|
__decorateClass([
|
|
1102
|
-
(0,
|
|
1123
|
+
(0, import_class_validator31.IsEnum)(EmploymentType, {
|
|
1103
1124
|
message: `Type of employment must be one of: ${Object.values(
|
|
1104
1125
|
EmploymentType
|
|
1105
1126
|
).join(", ")}`
|
|
1106
1127
|
})
|
|
1107
1128
|
], JobBasicInformationDto.prototype, "typeOfEmployment", 2);
|
|
1108
1129
|
__decorateClass([
|
|
1109
|
-
(0,
|
|
1130
|
+
(0, import_class_validator31.IsString)({ message: "Currency must be a string" })
|
|
1110
1131
|
], JobBasicInformationDto.prototype, "currency", 2);
|
|
1111
1132
|
__decorateClass([
|
|
1112
|
-
(0,
|
|
1113
|
-
(0,
|
|
1133
|
+
(0, import_class_validator31.IsNumber)({}, { message: "Expected salary (from) must be a number" }),
|
|
1134
|
+
(0, import_class_validator31.Min)(0, { message: "Expected salary (from) cannot be negative" }),
|
|
1114
1135
|
(0, import_class_transformer.Type)(() => Number)
|
|
1115
1136
|
], JobBasicInformationDto.prototype, "expectedSalaryFrom", 2);
|
|
1116
1137
|
__decorateClass([
|
|
1117
|
-
(0,
|
|
1118
|
-
(0,
|
|
1138
|
+
(0, import_class_validator31.IsNumber)({}, { message: "Expected salary (to) must be a number" }),
|
|
1139
|
+
(0, import_class_validator31.Min)(0, { message: "Expected salary (to) cannot be negative" }),
|
|
1119
1140
|
(0, import_class_transformer.Type)(() => Number)
|
|
1120
1141
|
], JobBasicInformationDto.prototype, "expectedSalaryTo", 2);
|
|
1121
1142
|
__decorateClass([
|
|
1122
|
-
(0,
|
|
1123
|
-
(0,
|
|
1143
|
+
(0, import_class_validator31.IsNotEmpty)({ message: "Please enter start date" }),
|
|
1144
|
+
(0, import_class_validator31.IsString)({ message: "Start date must be valid" })
|
|
1124
1145
|
], JobBasicInformationDto.prototype, "tentativeStartDate", 2);
|
|
1125
1146
|
__decorateClass([
|
|
1126
|
-
(0,
|
|
1127
|
-
(0,
|
|
1147
|
+
(0, import_class_validator31.IsNotEmpty)({ message: "Please enter end date" }),
|
|
1148
|
+
(0, import_class_validator31.IsString)({ message: "End date must be valid" })
|
|
1128
1149
|
], JobBasicInformationDto.prototype, "tentativeEndDate", 2);
|
|
1129
1150
|
__decorateClass([
|
|
1130
|
-
(0,
|
|
1131
|
-
(0,
|
|
1151
|
+
(0, import_class_validator31.IsString)({ message: "Onboarding TAT must be a string" }),
|
|
1152
|
+
(0, import_class_validator31.IsOptional)()
|
|
1132
1153
|
], JobBasicInformationDto.prototype, "onboardingTat", 2);
|
|
1133
1154
|
__decorateClass([
|
|
1134
|
-
(0,
|
|
1135
|
-
(0,
|
|
1155
|
+
(0, import_class_validator31.IsString)({ message: "Candidate communication skills must be a string" }),
|
|
1156
|
+
(0, import_class_validator31.IsOptional)()
|
|
1136
1157
|
], JobBasicInformationDto.prototype, "candidateCommunicationSkills", 2);
|
|
1137
1158
|
__decorateClass([
|
|
1138
|
-
(0,
|
|
1139
|
-
(0,
|
|
1159
|
+
(0, import_class_validator31.IsNotEmpty)({ message: "Please enter the academic qualification" }),
|
|
1160
|
+
(0, import_class_validator31.IsString)({ message: "Academic qualification must be a string" })
|
|
1140
1161
|
], JobBasicInformationDto.prototype, "academicQualification", 2);
|
|
1141
1162
|
__decorateClass([
|
|
1142
|
-
(0,
|
|
1143
|
-
(0,
|
|
1163
|
+
(0, import_class_validator31.IsNotEmpty)({ message: "Please enter the years of experience" }),
|
|
1164
|
+
(0, import_class_validator31.IsString)({ message: "Years of experience must be a string" })
|
|
1144
1165
|
], JobBasicInformationDto.prototype, "yearsOfExperience", 2);
|
|
1145
1166
|
__decorateClass([
|
|
1146
|
-
(0,
|
|
1147
|
-
(0,
|
|
1167
|
+
(0, import_class_validator31.IsNotEmpty)({ message: "Please enter the business industry" }),
|
|
1168
|
+
(0, import_class_validator31.IsString)({ message: "Business industry must be a string" })
|
|
1148
1169
|
], JobBasicInformationDto.prototype, "businessIndustry", 2);
|
|
1149
1170
|
|
|
1150
1171
|
// src/modules/job/dto/job-additional-comment.dto.ts
|
|
1151
|
-
var
|
|
1172
|
+
var import_class_validator32 = require("class-validator");
|
|
1152
1173
|
var JobAdditionalCommentDto = class {
|
|
1153
1174
|
};
|
|
1154
1175
|
__decorateClass([
|
|
1155
|
-
(0,
|
|
1156
|
-
(0,
|
|
1157
|
-
(0,
|
|
1176
|
+
(0, import_class_validator32.IsOptional)(),
|
|
1177
|
+
(0, import_class_validator32.IsString)({ message: "Additional comment must be a string" }),
|
|
1178
|
+
(0, import_class_validator32.MaxLength)(500, { message: "Additional comment must not exceed 500 characters" })
|
|
1158
1179
|
], JobAdditionalCommentDto.prototype, "additionalComment", 2);
|
|
1159
1180
|
|
|
1160
1181
|
// src/modules/job/dto/job-description.dto.ts
|
|
1161
|
-
var
|
|
1182
|
+
var import_class_validator33 = require("class-validator");
|
|
1162
1183
|
var JobDescriptionDto = class {
|
|
1163
1184
|
};
|
|
1164
1185
|
__decorateClass([
|
|
1165
|
-
(0,
|
|
1166
|
-
(0,
|
|
1167
|
-
(0,
|
|
1186
|
+
(0, import_class_validator33.IsNotEmpty)({ message: "Please enter job description" }),
|
|
1187
|
+
(0, import_class_validator33.IsString)({ message: "Description must be a string" }),
|
|
1188
|
+
(0, import_class_validator33.MaxLength)(5e3, { message: "Description must not exceed 5000 characters" })
|
|
1168
1189
|
], JobDescriptionDto.prototype, "description", 2);
|
|
1169
1190
|
|
|
1170
1191
|
// src/modules/job/dto/job-status.dto.ts
|
|
1171
|
-
var
|
|
1192
|
+
var import_class_validator34 = require("class-validator");
|
|
1172
1193
|
var JobStatus = /* @__PURE__ */ ((JobStatus2) => {
|
|
1173
1194
|
JobStatus2["ACTIVE"] = "ACTIVE";
|
|
1174
1195
|
JobStatus2["OPEN"] = "OPEN";
|
|
@@ -1180,18 +1201,18 @@ var JobStatus = /* @__PURE__ */ ((JobStatus2) => {
|
|
|
1180
1201
|
var JobStatusDto = class {
|
|
1181
1202
|
};
|
|
1182
1203
|
__decorateClass([
|
|
1183
|
-
(0,
|
|
1184
|
-
(0,
|
|
1204
|
+
(0, import_class_validator34.IsNotEmpty)({ message: "Please provide a job status" }),
|
|
1205
|
+
(0, import_class_validator34.IsEnum)(JobStatus, {
|
|
1185
1206
|
message: `Status must be one of: ${Object.values(JobStatus).join(", ")}`
|
|
1186
1207
|
})
|
|
1187
1208
|
], JobStatusDto.prototype, "status", 2);
|
|
1188
1209
|
|
|
1189
1210
|
// src/modules/job/dto/job-id-param.dto.ts
|
|
1190
|
-
var
|
|
1211
|
+
var import_class_validator35 = require("class-validator");
|
|
1191
1212
|
var JobIdParamDto = class {
|
|
1192
1213
|
};
|
|
1193
1214
|
__decorateClass([
|
|
1194
|
-
(0,
|
|
1215
|
+
(0, import_class_validator35.IsUUID)("4", {
|
|
1195
1216
|
message: "Invalid job ID. It must be a valid UUID version 4."
|
|
1196
1217
|
})
|
|
1197
1218
|
], JobIdParamDto.prototype, "id", 2);
|
|
@@ -1209,25 +1230,25 @@ var PROFILE_PATTERN = {
|
|
|
1209
1230
|
};
|
|
1210
1231
|
|
|
1211
1232
|
// src/modules/user/freelancer-profile/dto/freelancer-change-password.dto.ts
|
|
1212
|
-
var
|
|
1233
|
+
var import_class_validator36 = require("class-validator");
|
|
1213
1234
|
var FreelancerChangePasswordDto = class {
|
|
1214
1235
|
};
|
|
1215
1236
|
__decorateClass([
|
|
1216
|
-
(0,
|
|
1217
|
-
(0,
|
|
1237
|
+
(0, import_class_validator36.IsNotEmpty)({ message: "Please enter Old Password." }),
|
|
1238
|
+
(0, import_class_validator36.IsString)()
|
|
1218
1239
|
], FreelancerChangePasswordDto.prototype, "oldPassword", 2);
|
|
1219
1240
|
__decorateClass([
|
|
1220
|
-
(0,
|
|
1221
|
-
(0,
|
|
1222
|
-
(0,
|
|
1223
|
-
(0,
|
|
1224
|
-
(0,
|
|
1241
|
+
(0, import_class_validator36.IsNotEmpty)({ message: "Please enter New Password." }),
|
|
1242
|
+
(0, import_class_validator36.IsString)(),
|
|
1243
|
+
(0, import_class_validator36.MinLength)(6),
|
|
1244
|
+
(0, import_class_validator36.MaxLength)(32),
|
|
1245
|
+
(0, import_class_validator36.Matches)(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
1225
1246
|
message: "New Password must include letters, numbers and symbols."
|
|
1226
1247
|
})
|
|
1227
1248
|
], FreelancerChangePasswordDto.prototype, "newPassword", 2);
|
|
1228
1249
|
|
|
1229
1250
|
// src/modules/user/freelancer-profile/dto/update-freelancer-profile.dto.ts
|
|
1230
|
-
var
|
|
1251
|
+
var import_class_validator37 = require("class-validator");
|
|
1231
1252
|
var NatureOfWorkDto = /* @__PURE__ */ ((NatureOfWorkDto2) => {
|
|
1232
1253
|
NatureOfWorkDto2["FULLTIME"] = "FULLTIME";
|
|
1233
1254
|
NatureOfWorkDto2["PARTTIME"] = "PARTTIME";
|
|
@@ -1243,92 +1264,92 @@ var ModeOfWorkDto = /* @__PURE__ */ ((ModeOfWorkDto2) => {
|
|
|
1243
1264
|
var UpdateFreelancerProfileDto = class {
|
|
1244
1265
|
};
|
|
1245
1266
|
__decorateClass([
|
|
1246
|
-
(0,
|
|
1247
|
-
(0,
|
|
1267
|
+
(0, import_class_validator37.IsNotEmpty)({ message: "Please enter first name." }),
|
|
1268
|
+
(0, import_class_validator37.IsString)({ message: "Please enter valid first name." })
|
|
1248
1269
|
], UpdateFreelancerProfileDto.prototype, "firstName", 2);
|
|
1249
1270
|
__decorateClass([
|
|
1250
|
-
(0,
|
|
1251
|
-
(0,
|
|
1271
|
+
(0, import_class_validator37.IsNotEmpty)({ message: "Please enter last name." }),
|
|
1272
|
+
(0, import_class_validator37.IsString)({ message: "Please enter valid last name." })
|
|
1252
1273
|
], UpdateFreelancerProfileDto.prototype, "lastName", 2);
|
|
1253
1274
|
__decorateClass([
|
|
1254
|
-
(0,
|
|
1255
|
-
(0,
|
|
1275
|
+
(0, import_class_validator37.IsNotEmpty)({ message: "Please enter designation." }),
|
|
1276
|
+
(0, import_class_validator37.IsString)({ message: "Please enter valid designation." })
|
|
1256
1277
|
], UpdateFreelancerProfileDto.prototype, "designation", 2);
|
|
1257
1278
|
__decorateClass([
|
|
1258
|
-
(0,
|
|
1259
|
-
(0,
|
|
1279
|
+
(0, import_class_validator37.IsNotEmpty)({ message: "Please enter experience." }),
|
|
1280
|
+
(0, import_class_validator37.IsString)({ message: "Please enter valid experience." })
|
|
1260
1281
|
], UpdateFreelancerProfileDto.prototype, "experience", 2);
|
|
1261
1282
|
__decorateClass([
|
|
1262
|
-
(0,
|
|
1263
|
-
(0,
|
|
1283
|
+
(0, import_class_validator37.IsNotEmpty)({ message: "Please enter email id." }),
|
|
1284
|
+
(0, import_class_validator37.IsEmail)()
|
|
1264
1285
|
], UpdateFreelancerProfileDto.prototype, "email", 2);
|
|
1265
1286
|
__decorateClass([
|
|
1266
|
-
(0,
|
|
1267
|
-
(0,
|
|
1287
|
+
(0, import_class_validator37.IsNotEmpty)({ message: "Please enter mobile code." }),
|
|
1288
|
+
(0, import_class_validator37.IsString)({ message: "Please enter valid mobile code." })
|
|
1268
1289
|
], UpdateFreelancerProfileDto.prototype, "mobileCode", 2);
|
|
1269
1290
|
__decorateClass([
|
|
1270
|
-
(0,
|
|
1271
|
-
(0,
|
|
1291
|
+
(0, import_class_validator37.IsNotEmpty)({ message: "Please enter mobile number." }),
|
|
1292
|
+
(0, import_class_validator37.IsString)({ message: "Please enter valid mobile number." })
|
|
1272
1293
|
], UpdateFreelancerProfileDto.prototype, "mobile", 2);
|
|
1273
1294
|
__decorateClass([
|
|
1274
|
-
(0,
|
|
1275
|
-
(0,
|
|
1295
|
+
(0, import_class_validator37.IsOptional)(),
|
|
1296
|
+
(0, import_class_validator37.IsNumber)()
|
|
1276
1297
|
], UpdateFreelancerProfileDto.prototype, "countryId", 2);
|
|
1277
1298
|
__decorateClass([
|
|
1278
|
-
(0,
|
|
1279
|
-
(0,
|
|
1299
|
+
(0, import_class_validator37.IsNotEmpty)({ message: "Please select currency." }),
|
|
1300
|
+
(0, import_class_validator37.IsString)({ message: "Please enter valid currency." })
|
|
1280
1301
|
], UpdateFreelancerProfileDto.prototype, "currency", 2);
|
|
1281
1302
|
__decorateClass([
|
|
1282
|
-
(0,
|
|
1283
|
-
(0,
|
|
1303
|
+
(0, import_class_validator37.IsNotEmpty)({ message: "Please enter expected hourly compensation." }),
|
|
1304
|
+
(0, import_class_validator37.IsString)({ message: "Please enter valid expected hourly compensation." })
|
|
1284
1305
|
], UpdateFreelancerProfileDto.prototype, "expectedHourlyCompensation", 2);
|
|
1285
1306
|
__decorateClass([
|
|
1286
|
-
(0,
|
|
1287
|
-
(0,
|
|
1307
|
+
(0, import_class_validator37.IsNotEmpty)({ message: "Please select engagement type." }),
|
|
1308
|
+
(0, import_class_validator37.IsEnum)(NatureOfWorkDto, {
|
|
1288
1309
|
message: `Engagement Type must be one of: ${Object.values(
|
|
1289
1310
|
NatureOfWorkDto
|
|
1290
1311
|
).join(", ")}`
|
|
1291
1312
|
})
|
|
1292
1313
|
], UpdateFreelancerProfileDto.prototype, "natureOfWork", 2);
|
|
1293
1314
|
__decorateClass([
|
|
1294
|
-
(0,
|
|
1295
|
-
(0,
|
|
1315
|
+
(0, import_class_validator37.IsNotEmpty)({ message: "Please select mode of work." }),
|
|
1316
|
+
(0, import_class_validator37.IsEnum)(ModeOfWorkDto, {
|
|
1296
1317
|
message: `Mode of work must be one of: ${Object.values(ModeOfWorkDto).join(
|
|
1297
1318
|
", "
|
|
1298
1319
|
)}`
|
|
1299
1320
|
})
|
|
1300
1321
|
], UpdateFreelancerProfileDto.prototype, "modeOfWork", 2);
|
|
1301
1322
|
__decorateClass([
|
|
1302
|
-
(0,
|
|
1303
|
-
(0,
|
|
1323
|
+
(0, import_class_validator37.IsOptional)(),
|
|
1324
|
+
(0, import_class_validator37.IsString)()
|
|
1304
1325
|
], UpdateFreelancerProfileDto.prototype, "portfolioLink", 2);
|
|
1305
1326
|
__decorateClass([
|
|
1306
|
-
(0,
|
|
1307
|
-
(0,
|
|
1327
|
+
(0, import_class_validator37.IsOptional)(),
|
|
1328
|
+
(0, import_class_validator37.IsString)()
|
|
1308
1329
|
], UpdateFreelancerProfileDto.prototype, "address", 2);
|
|
1309
1330
|
__decorateClass([
|
|
1310
|
-
(0,
|
|
1311
|
-
(0,
|
|
1331
|
+
(0, import_class_validator37.IsOptional)(),
|
|
1332
|
+
(0, import_class_validator37.IsString)()
|
|
1312
1333
|
], UpdateFreelancerProfileDto.prototype, "about", 2);
|
|
1313
1334
|
__decorateClass([
|
|
1314
|
-
(0,
|
|
1315
|
-
(0,
|
|
1335
|
+
(0, import_class_validator37.IsOptional)(),
|
|
1336
|
+
(0, import_class_validator37.IsString)()
|
|
1316
1337
|
], UpdateFreelancerProfileDto.prototype, "linkedinProfileLink", 2);
|
|
1317
1338
|
__decorateClass([
|
|
1318
|
-
(0,
|
|
1319
|
-
(0,
|
|
1339
|
+
(0, import_class_validator37.IsOptional)(),
|
|
1340
|
+
(0, import_class_validator37.IsString)()
|
|
1320
1341
|
], UpdateFreelancerProfileDto.prototype, "kaggleProfileLink", 2);
|
|
1321
1342
|
__decorateClass([
|
|
1322
|
-
(0,
|
|
1323
|
-
(0,
|
|
1343
|
+
(0, import_class_validator37.IsOptional)(),
|
|
1344
|
+
(0, import_class_validator37.IsString)()
|
|
1324
1345
|
], UpdateFreelancerProfileDto.prototype, "githubProfileLink", 2);
|
|
1325
1346
|
__decorateClass([
|
|
1326
|
-
(0,
|
|
1327
|
-
(0,
|
|
1347
|
+
(0, import_class_validator37.IsOptional)(),
|
|
1348
|
+
(0, import_class_validator37.IsString)()
|
|
1328
1349
|
], UpdateFreelancerProfileDto.prototype, "stackOverflowProfileLink", 2);
|
|
1329
1350
|
__decorateClass([
|
|
1330
|
-
(0,
|
|
1331
|
-
(0,
|
|
1351
|
+
(0, import_class_validator37.IsOptional)(),
|
|
1352
|
+
(0, import_class_validator37.IsString)()
|
|
1332
1353
|
], UpdateFreelancerProfileDto.prototype, "resumeUrl", 2);
|
|
1333
1354
|
|
|
1334
1355
|
// src/modules/bank/pattern/pattern.ts
|
|
@@ -1339,7 +1360,7 @@ var BANK_PATTERN = {
|
|
|
1339
1360
|
};
|
|
1340
1361
|
|
|
1341
1362
|
// src/modules/bank/dto/freelancer-bank-details.dto.ts
|
|
1342
|
-
var
|
|
1363
|
+
var import_class_validator38 = require("class-validator");
|
|
1343
1364
|
var BankAccountScope = /* @__PURE__ */ ((BankAccountScope2) => {
|
|
1344
1365
|
BankAccountScope2["DOMESTIC"] = "DOMESTIC";
|
|
1345
1366
|
BankAccountScope2["INTERNATIONAL"] = "INTERNATIONAL";
|
|
@@ -1348,47 +1369,47 @@ var BankAccountScope = /* @__PURE__ */ ((BankAccountScope2) => {
|
|
|
1348
1369
|
var FreelancerBankDetailsDto = class {
|
|
1349
1370
|
};
|
|
1350
1371
|
__decorateClass([
|
|
1351
|
-
(0,
|
|
1372
|
+
(0, import_class_validator38.IsNotEmpty)({ message: "Please enter Account Holder Name." })
|
|
1352
1373
|
], FreelancerBankDetailsDto.prototype, "name", 2);
|
|
1353
1374
|
__decorateClass([
|
|
1354
|
-
(0,
|
|
1375
|
+
(0, import_class_validator38.IsNotEmpty)({ message: "Please enter Mobile Number." })
|
|
1355
1376
|
], FreelancerBankDetailsDto.prototype, "mobile", 2);
|
|
1356
1377
|
__decorateClass([
|
|
1357
|
-
(0,
|
|
1378
|
+
(0, import_class_validator38.IsNotEmpty)({ message: "Please enter Email." })
|
|
1358
1379
|
], FreelancerBankDetailsDto.prototype, "email", 2);
|
|
1359
1380
|
__decorateClass([
|
|
1360
|
-
(0,
|
|
1381
|
+
(0, import_class_validator38.IsOptional)()
|
|
1361
1382
|
], FreelancerBankDetailsDto.prototype, "address", 2);
|
|
1362
1383
|
__decorateClass([
|
|
1363
|
-
(0,
|
|
1384
|
+
(0, import_class_validator38.IsNotEmpty)({ message: "Please enter Account Number." })
|
|
1364
1385
|
], FreelancerBankDetailsDto.prototype, "accountNumber", 2);
|
|
1365
1386
|
__decorateClass([
|
|
1366
|
-
(0,
|
|
1387
|
+
(0, import_class_validator38.IsNotEmpty)({ message: "Please enter Bank Name." })
|
|
1367
1388
|
], FreelancerBankDetailsDto.prototype, "bankName", 2);
|
|
1368
1389
|
__decorateClass([
|
|
1369
|
-
(0,
|
|
1390
|
+
(0, import_class_validator38.IsNotEmpty)({ message: "Please enter Branch Name." })
|
|
1370
1391
|
], FreelancerBankDetailsDto.prototype, "branchName", 2);
|
|
1371
1392
|
__decorateClass([
|
|
1372
|
-
(0,
|
|
1373
|
-
(0,
|
|
1393
|
+
(0, import_class_validator38.ValidateIf)((dto) => dto.accountScope === "DOMESTIC"),
|
|
1394
|
+
(0, import_class_validator38.IsNotEmpty)({ message: "IFSC Code is required for DOMESTIC accounts." })
|
|
1374
1395
|
], FreelancerBankDetailsDto.prototype, "ifscCode", 2);
|
|
1375
1396
|
__decorateClass([
|
|
1376
|
-
(0,
|
|
1377
|
-
(0,
|
|
1397
|
+
(0, import_class_validator38.ValidateIf)((dto) => dto.accountScope === "INTERNATIONAL"),
|
|
1398
|
+
(0, import_class_validator38.IsNotEmpty)({ message: "Routing Number/Sort Code is required for INTERNATIONAL accounts." })
|
|
1378
1399
|
], FreelancerBankDetailsDto.prototype, "routingNo", 2);
|
|
1379
1400
|
__decorateClass([
|
|
1380
|
-
(0,
|
|
1381
|
-
(0,
|
|
1401
|
+
(0, import_class_validator38.ValidateIf)((dto) => dto.accountScope === "INTERNATIONAL"),
|
|
1402
|
+
(0, import_class_validator38.IsNotEmpty)({ message: "ABA Number is required for INTERNATIONAL accounts." })
|
|
1382
1403
|
], FreelancerBankDetailsDto.prototype, "abaNumber", 2);
|
|
1383
1404
|
__decorateClass([
|
|
1384
|
-
(0,
|
|
1385
|
-
(0,
|
|
1405
|
+
(0, import_class_validator38.ValidateIf)((dto) => dto.accountScope === "INTERNATIONAL"),
|
|
1406
|
+
(0, import_class_validator38.IsNotEmpty)({ message: "IBAN is required for INTERNATIONAL accounts." })
|
|
1386
1407
|
], FreelancerBankDetailsDto.prototype, "iban", 2);
|
|
1387
1408
|
__decorateClass([
|
|
1388
|
-
(0,
|
|
1409
|
+
(0, import_class_validator38.IsOptional)()
|
|
1389
1410
|
], FreelancerBankDetailsDto.prototype, "accountType", 2);
|
|
1390
1411
|
__decorateClass([
|
|
1391
|
-
(0,
|
|
1412
|
+
(0, import_class_validator38.IsEnum)(BankAccountScope, {
|
|
1392
1413
|
message: `Type of Account Scope must be one of: ${Object.values(
|
|
1393
1414
|
BankAccountScope
|
|
1394
1415
|
).join(", ")}`
|
|
@@ -1408,7 +1429,7 @@ var SYSTEM_PREFERENCES_PATTERN = {
|
|
|
1408
1429
|
};
|
|
1409
1430
|
|
|
1410
1431
|
// src/modules/system-preference/dto/system-preference.dto.ts
|
|
1411
|
-
var
|
|
1432
|
+
var import_class_validator39 = require("class-validator");
|
|
1412
1433
|
var SystemPreferenceKey = /* @__PURE__ */ ((SystemPreferenceKey2) => {
|
|
1413
1434
|
SystemPreferenceKey2["EMAIL_NOTIFICATION"] = "EMAIL_NOTIFICATION";
|
|
1414
1435
|
SystemPreferenceKey2["DARK_MODE"] = "DARK_MODE";
|
|
@@ -1417,10 +1438,10 @@ var SystemPreferenceKey = /* @__PURE__ */ ((SystemPreferenceKey2) => {
|
|
|
1417
1438
|
var SystemPreferenceDto = class {
|
|
1418
1439
|
};
|
|
1419
1440
|
__decorateClass([
|
|
1420
|
-
(0,
|
|
1441
|
+
(0, import_class_validator39.IsBoolean)()
|
|
1421
1442
|
], SystemPreferenceDto.prototype, "value", 2);
|
|
1422
1443
|
__decorateClass([
|
|
1423
|
-
(0,
|
|
1444
|
+
(0, import_class_validator39.IsEnum)(SystemPreferenceKey, {
|
|
1424
1445
|
message: `key must be one of: ${Object.values(
|
|
1425
1446
|
SystemPreferenceKey
|
|
1426
1447
|
).join(", ")}`
|
|
@@ -1440,7 +1461,7 @@ var RATING_PATTERN = {
|
|
|
1440
1461
|
};
|
|
1441
1462
|
|
|
1442
1463
|
// src/modules/rating/dto/add.rating.dto.ts
|
|
1443
|
-
var
|
|
1464
|
+
var import_class_validator40 = require("class-validator");
|
|
1444
1465
|
|
|
1445
1466
|
// src/entities/rating.entity.ts
|
|
1446
1467
|
var import_typeorm42 = require("typeorm");
|
|
@@ -3654,22 +3675,22 @@ Rating = __decorateClass([
|
|
|
3654
3675
|
var CreateRatingDto = class {
|
|
3655
3676
|
};
|
|
3656
3677
|
__decorateClass([
|
|
3657
|
-
(0,
|
|
3658
|
-
(0,
|
|
3678
|
+
(0, import_class_validator40.IsInt)({ message: "Reviewee ID must be a valid integer" }),
|
|
3679
|
+
(0, import_class_validator40.IsNotEmpty)({ message: "Reviewee ID is required" })
|
|
3659
3680
|
], CreateRatingDto.prototype, "revieweeId", 2);
|
|
3660
3681
|
__decorateClass([
|
|
3661
|
-
(0,
|
|
3682
|
+
(0, import_class_validator40.IsEnum)(RatingTypeEnum, {
|
|
3662
3683
|
message: `Rating type must be one of: ${Object.values(RatingTypeEnum).join(", ")}`
|
|
3663
3684
|
})
|
|
3664
3685
|
], CreateRatingDto.prototype, "ratingType", 2);
|
|
3665
3686
|
__decorateClass([
|
|
3666
|
-
(0,
|
|
3667
|
-
(0,
|
|
3668
|
-
(0,
|
|
3687
|
+
(0, import_class_validator40.IsInt)({ message: "Rating must be an integer value" }),
|
|
3688
|
+
(0, import_class_validator40.Min)(1, { message: "Rating must be at least 1" }),
|
|
3689
|
+
(0, import_class_validator40.Max)(5, { message: "Rating must be at most 5" })
|
|
3669
3690
|
], CreateRatingDto.prototype, "rating", 2);
|
|
3670
3691
|
__decorateClass([
|
|
3671
|
-
(0,
|
|
3672
|
-
(0,
|
|
3692
|
+
(0, import_class_validator40.IsOptional)(),
|
|
3693
|
+
(0, import_class_validator40.IsString)({ message: "Review must be a string" })
|
|
3673
3694
|
], CreateRatingDto.prototype, "review", 2);
|
|
3674
3695
|
|
|
3675
3696
|
// src/modules/company-role/pattern/pattern.ts
|
|
@@ -3685,57 +3706,57 @@ var COMPANY_ROLES_PATTERNS = {
|
|
|
3685
3706
|
};
|
|
3686
3707
|
|
|
3687
3708
|
// src/modules/company-role/dto/create-company-role.dto.ts
|
|
3688
|
-
var
|
|
3709
|
+
var import_class_validator41 = require("class-validator");
|
|
3689
3710
|
var CreateCompanyRoleDto = class {
|
|
3690
3711
|
};
|
|
3691
3712
|
__decorateClass([
|
|
3692
|
-
(0,
|
|
3713
|
+
(0, import_class_validator41.IsNotEmpty)({ message: "Please enter company role name." })
|
|
3693
3714
|
], CreateCompanyRoleDto.prototype, "name", 2);
|
|
3694
3715
|
__decorateClass([
|
|
3695
|
-
(0,
|
|
3716
|
+
(0, import_class_validator41.IsNotEmpty)({ message: "Please enter company role slug" })
|
|
3696
3717
|
], CreateCompanyRoleDto.prototype, "slug", 2);
|
|
3697
3718
|
__decorateClass([
|
|
3698
|
-
(0,
|
|
3719
|
+
(0, import_class_validator41.IsNotEmpty)({ message: "Please enter description" })
|
|
3699
3720
|
], CreateCompanyRoleDto.prototype, "description", 2);
|
|
3700
3721
|
__decorateClass([
|
|
3701
|
-
(0,
|
|
3702
|
-
(0,
|
|
3703
|
-
(0,
|
|
3722
|
+
(0, import_class_validator41.IsArray)({ message: "Permission IDs must be an array." }),
|
|
3723
|
+
(0, import_class_validator41.ArrayNotEmpty)({ message: "Please select at least one permission." }),
|
|
3724
|
+
(0, import_class_validator41.IsInt)({ each: true, message: "Each permission ID must be an integer." })
|
|
3704
3725
|
], CreateCompanyRoleDto.prototype, "permissionIds", 2);
|
|
3705
3726
|
__decorateClass([
|
|
3706
|
-
(0,
|
|
3707
|
-
(0,
|
|
3727
|
+
(0, import_class_validator41.IsOptional)(),
|
|
3728
|
+
(0, import_class_validator41.IsBoolean)({ message: "Is active must be a boolean value" })
|
|
3708
3729
|
], CreateCompanyRoleDto.prototype, "isActive", 2);
|
|
3709
3730
|
|
|
3710
3731
|
// src/modules/company-role/dto/update-company-role.dto.ts
|
|
3711
|
-
var
|
|
3732
|
+
var import_class_validator42 = require("class-validator");
|
|
3712
3733
|
var UpdateCompanyRoleDto = class {
|
|
3713
3734
|
};
|
|
3714
3735
|
__decorateClass([
|
|
3715
|
-
(0,
|
|
3736
|
+
(0, import_class_validator42.IsNotEmpty)({ message: "Please enter company name." })
|
|
3716
3737
|
], UpdateCompanyRoleDto.prototype, "name", 2);
|
|
3717
3738
|
__decorateClass([
|
|
3718
|
-
(0,
|
|
3739
|
+
(0, import_class_validator42.IsNotEmpty)({ message: "Please enter slug" })
|
|
3719
3740
|
], UpdateCompanyRoleDto.prototype, "slug", 2);
|
|
3720
3741
|
__decorateClass([
|
|
3721
|
-
(0,
|
|
3742
|
+
(0, import_class_validator42.IsNotEmpty)({ message: "Please enter description" })
|
|
3722
3743
|
], UpdateCompanyRoleDto.prototype, "description", 2);
|
|
3723
3744
|
__decorateClass([
|
|
3724
|
-
(0,
|
|
3725
|
-
(0,
|
|
3726
|
-
(0,
|
|
3745
|
+
(0, import_class_validator42.IsArray)({ message: "Permission IDs must be an array." }),
|
|
3746
|
+
(0, import_class_validator42.ArrayNotEmpty)({ message: "Please select at least one permission." }),
|
|
3747
|
+
(0, import_class_validator42.IsInt)({ each: true, message: "Each permission ID must be an integer." })
|
|
3727
3748
|
], UpdateCompanyRoleDto.prototype, "permissionIds", 2);
|
|
3728
3749
|
__decorateClass([
|
|
3729
|
-
(0,
|
|
3730
|
-
(0,
|
|
3750
|
+
(0, import_class_validator42.IsOptional)(),
|
|
3751
|
+
(0, import_class_validator42.IsBoolean)({ message: "Is active must be a boolean value" })
|
|
3731
3752
|
], UpdateCompanyRoleDto.prototype, "isActive", 2);
|
|
3732
3753
|
|
|
3733
3754
|
// src/modules/company-role/dto/toggle-company-role-visibility.dto.ts
|
|
3734
|
-
var
|
|
3755
|
+
var import_class_validator43 = require("class-validator");
|
|
3735
3756
|
var ToggleCompanyRoleVisibilityDto = class {
|
|
3736
3757
|
};
|
|
3737
3758
|
__decorateClass([
|
|
3738
|
-
(0,
|
|
3759
|
+
(0, import_class_validator43.IsBoolean)()
|
|
3739
3760
|
], ToggleCompanyRoleVisibilityDto.prototype, "isActive", 2);
|
|
3740
3761
|
|
|
3741
3762
|
// src/modules/user/freelancer-experience/pattern/pattern.ts
|
|
@@ -3745,35 +3766,35 @@ var FREELANCER_EXPERIENCE_PATTERN = {
|
|
|
3745
3766
|
};
|
|
3746
3767
|
|
|
3747
3768
|
// src/modules/user/freelancer-experience/dto/freelancer-experience.dto.ts
|
|
3748
|
-
var
|
|
3769
|
+
var import_class_validator44 = require("class-validator");
|
|
3749
3770
|
var import_class_transformer2 = require("class-transformer");
|
|
3750
3771
|
var ExperienceDto = class {
|
|
3751
3772
|
};
|
|
3752
3773
|
__decorateClass([
|
|
3753
|
-
(0,
|
|
3774
|
+
(0, import_class_validator44.IsOptional)()
|
|
3754
3775
|
], ExperienceDto.prototype, "uuid", 2);
|
|
3755
3776
|
__decorateClass([
|
|
3756
|
-
(0,
|
|
3757
|
-
(0,
|
|
3777
|
+
(0, import_class_validator44.IsNotEmpty)(),
|
|
3778
|
+
(0, import_class_validator44.IsString)()
|
|
3758
3779
|
], ExperienceDto.prototype, "companyName", 2);
|
|
3759
3780
|
__decorateClass([
|
|
3760
|
-
(0,
|
|
3761
|
-
(0,
|
|
3781
|
+
(0, import_class_validator44.IsNotEmpty)(),
|
|
3782
|
+
(0, import_class_validator44.IsString)()
|
|
3762
3783
|
], ExperienceDto.prototype, "designation", 2);
|
|
3763
3784
|
__decorateClass([
|
|
3764
|
-
(0,
|
|
3765
|
-
(0,
|
|
3785
|
+
(0, import_class_validator44.IsNotEmpty)(),
|
|
3786
|
+
(0, import_class_validator44.IsString)()
|
|
3766
3787
|
], ExperienceDto.prototype, "jobDuration", 2);
|
|
3767
3788
|
__decorateClass([
|
|
3768
|
-
(0,
|
|
3769
|
-
(0,
|
|
3770
|
-
(0,
|
|
3789
|
+
(0, import_class_validator44.IsOptional)(),
|
|
3790
|
+
(0, import_class_validator44.IsString)(),
|
|
3791
|
+
(0, import_class_validator44.MaxLength)(5e3, { message: "Description must not exceed 5000 characters" })
|
|
3771
3792
|
], ExperienceDto.prototype, "description", 2);
|
|
3772
3793
|
var FreelancerExperienceDto = class {
|
|
3773
3794
|
};
|
|
3774
3795
|
__decorateClass([
|
|
3775
|
-
(0,
|
|
3776
|
-
(0,
|
|
3796
|
+
(0, import_class_validator44.ValidateNested)({ each: true }),
|
|
3797
|
+
(0, import_class_validator44.ArrayMinSize)(1, { message: "At least one experience is required." }),
|
|
3777
3798
|
(0, import_class_transformer2.Type)(() => ExperienceDto)
|
|
3778
3799
|
], FreelancerExperienceDto.prototype, "experiences", 2);
|
|
3779
3800
|
|
|
@@ -3790,43 +3811,43 @@ var COMPANY_MEMBERS_PATTERNS = {
|
|
|
3790
3811
|
};
|
|
3791
3812
|
|
|
3792
3813
|
// src/modules/company-member/dto/create-company-member.dto.ts
|
|
3793
|
-
var
|
|
3814
|
+
var import_class_validator45 = require("class-validator");
|
|
3794
3815
|
var CreateCompanyMemberDto = class {
|
|
3795
3816
|
};
|
|
3796
3817
|
__decorateClass([
|
|
3797
|
-
(0,
|
|
3818
|
+
(0, import_class_validator45.IsNotEmpty)({ message: "Please enter name." })
|
|
3798
3819
|
], CreateCompanyMemberDto.prototype, "name", 2);
|
|
3799
3820
|
__decorateClass([
|
|
3800
|
-
(0,
|
|
3821
|
+
(0, import_class_validator45.IsNotEmpty)({ message: "Please enter email" })
|
|
3801
3822
|
], CreateCompanyMemberDto.prototype, "email", 2);
|
|
3802
3823
|
__decorateClass([
|
|
3803
|
-
(0,
|
|
3804
|
-
(0,
|
|
3805
|
-
(0,
|
|
3824
|
+
(0, import_class_validator45.IsArray)({ message: "Role IDs must be an array." }),
|
|
3825
|
+
(0, import_class_validator45.ArrayNotEmpty)({ message: "Please select at least one role." }),
|
|
3826
|
+
(0, import_class_validator45.IsInt)({ each: true, message: "Each role ID must be an integer." })
|
|
3806
3827
|
], CreateCompanyMemberDto.prototype, "roleIds", 2);
|
|
3807
3828
|
|
|
3808
3829
|
// src/modules/company-member/dto/update-company-member.dto.ts
|
|
3809
|
-
var
|
|
3830
|
+
var import_class_validator46 = require("class-validator");
|
|
3810
3831
|
var UpdateCompanyMemberDto = class {
|
|
3811
3832
|
};
|
|
3812
3833
|
__decorateClass([
|
|
3813
|
-
(0,
|
|
3834
|
+
(0, import_class_validator46.IsNotEmpty)({ message: "Please enter name." })
|
|
3814
3835
|
], UpdateCompanyMemberDto.prototype, "name", 2);
|
|
3815
3836
|
__decorateClass([
|
|
3816
|
-
(0,
|
|
3837
|
+
(0, import_class_validator46.IsNotEmpty)({ message: "Please enter email" })
|
|
3817
3838
|
], UpdateCompanyMemberDto.prototype, "email", 2);
|
|
3818
3839
|
__decorateClass([
|
|
3819
|
-
(0,
|
|
3820
|
-
(0,
|
|
3821
|
-
(0,
|
|
3840
|
+
(0, import_class_validator46.IsArray)({ message: "Role IDs must be an array." }),
|
|
3841
|
+
(0, import_class_validator46.ArrayNotEmpty)({ message: "Please select at least one role." }),
|
|
3842
|
+
(0, import_class_validator46.IsInt)({ each: true, message: "Each role ID must be an integer." })
|
|
3822
3843
|
], UpdateCompanyMemberDto.prototype, "roleIds", 2);
|
|
3823
3844
|
|
|
3824
3845
|
// src/modules/company-member/dto/toggle-company-member-visibility.dto.ts
|
|
3825
|
-
var
|
|
3846
|
+
var import_class_validator47 = require("class-validator");
|
|
3826
3847
|
var ToggleCompanyMemberVisibilityDto = class {
|
|
3827
3848
|
};
|
|
3828
3849
|
__decorateClass([
|
|
3829
|
-
(0,
|
|
3850
|
+
(0, import_class_validator47.IsBoolean)()
|
|
3830
3851
|
], ToggleCompanyMemberVisibilityDto.prototype, "isActive", 2);
|
|
3831
3852
|
|
|
3832
3853
|
// src/modules/user/freelancer-education/pattern/pattern.ts
|
|
@@ -3836,31 +3857,31 @@ var FREELANCER_EDUCATION_PATTERN = {
|
|
|
3836
3857
|
};
|
|
3837
3858
|
|
|
3838
3859
|
// src/modules/user/freelancer-education/dto/freelancer-education.dto.ts
|
|
3839
|
-
var
|
|
3860
|
+
var import_class_validator48 = require("class-validator");
|
|
3840
3861
|
var import_class_transformer3 = require("class-transformer");
|
|
3841
3862
|
var EducationDto = class {
|
|
3842
3863
|
};
|
|
3843
3864
|
__decorateClass([
|
|
3844
|
-
(0,
|
|
3865
|
+
(0, import_class_validator48.IsOptional)()
|
|
3845
3866
|
], EducationDto.prototype, "uuid", 2);
|
|
3846
3867
|
__decorateClass([
|
|
3847
|
-
(0,
|
|
3848
|
-
(0,
|
|
3868
|
+
(0, import_class_validator48.IsString)(),
|
|
3869
|
+
(0, import_class_validator48.IsNotEmpty)({ message: "Please Enter Degree " })
|
|
3849
3870
|
], EducationDto.prototype, "degree", 2);
|
|
3850
3871
|
__decorateClass([
|
|
3851
|
-
(0,
|
|
3852
|
-
(0,
|
|
3872
|
+
(0, import_class_validator48.IsString)(),
|
|
3873
|
+
(0, import_class_validator48.IsNotEmpty)({ message: "Please Enter University " })
|
|
3853
3874
|
], EducationDto.prototype, "university", 2);
|
|
3854
3875
|
__decorateClass([
|
|
3855
|
-
(0,
|
|
3856
|
-
(0,
|
|
3876
|
+
(0, import_class_validator48.IsString)(),
|
|
3877
|
+
(0, import_class_validator48.IsNotEmpty)({ message: "Please Enter Year of Graduation " })
|
|
3857
3878
|
], EducationDto.prototype, "yearOfGraduation", 2);
|
|
3858
3879
|
var FreelancerEducationDto = class {
|
|
3859
3880
|
};
|
|
3860
3881
|
__decorateClass([
|
|
3861
|
-
(0,
|
|
3862
|
-
(0,
|
|
3863
|
-
(0,
|
|
3882
|
+
(0, import_class_validator48.IsArray)(),
|
|
3883
|
+
(0, import_class_validator48.ArrayMinSize)(1, { message: "At least one education is required." }),
|
|
3884
|
+
(0, import_class_validator48.ValidateNested)({ each: true }),
|
|
3864
3885
|
(0, import_class_transformer3.Type)(() => EducationDto)
|
|
3865
3886
|
], FreelancerEducationDto.prototype, "educations", 2);
|
|
3866
3887
|
|
|
@@ -3871,67 +3892,67 @@ var FREELANCER_PROJECT_PATTERN = {
|
|
|
3871
3892
|
};
|
|
3872
3893
|
|
|
3873
3894
|
// src/modules/user/freelancer-project/dto/freelancer-project.dto.ts
|
|
3874
|
-
var
|
|
3895
|
+
var import_class_validator49 = require("class-validator");
|
|
3875
3896
|
var import_class_transformer4 = require("class-transformer");
|
|
3876
3897
|
var ProjectDto = class {
|
|
3877
3898
|
};
|
|
3878
3899
|
__decorateClass([
|
|
3879
|
-
(0,
|
|
3900
|
+
(0, import_class_validator49.IsOptional)()
|
|
3880
3901
|
], ProjectDto.prototype, "uuid", 2);
|
|
3881
3902
|
__decorateClass([
|
|
3882
|
-
(0,
|
|
3883
|
-
(0,
|
|
3903
|
+
(0, import_class_validator49.IsString)(),
|
|
3904
|
+
(0, import_class_validator49.IsNotEmpty)({ message: "Please Enter Project Name " })
|
|
3884
3905
|
], ProjectDto.prototype, "projectName", 2);
|
|
3885
3906
|
__decorateClass([
|
|
3886
|
-
(0,
|
|
3887
|
-
(0,
|
|
3907
|
+
(0, import_class_validator49.IsDateString)(),
|
|
3908
|
+
(0, import_class_validator49.IsNotEmpty)({ message: "Please Enter Start Date " })
|
|
3888
3909
|
], ProjectDto.prototype, "startDate", 2);
|
|
3889
3910
|
__decorateClass([
|
|
3890
|
-
(0,
|
|
3891
|
-
(0,
|
|
3911
|
+
(0, import_class_validator49.IsDateString)(),
|
|
3912
|
+
(0, import_class_validator49.IsNotEmpty)({ message: "Please Enter End Date " })
|
|
3892
3913
|
], ProjectDto.prototype, "endDate", 2);
|
|
3893
3914
|
__decorateClass([
|
|
3894
|
-
(0,
|
|
3895
|
-
(0,
|
|
3915
|
+
(0, import_class_validator49.IsOptional)(),
|
|
3916
|
+
(0, import_class_validator49.IsString)()
|
|
3896
3917
|
], ProjectDto.prototype, "clientName", 2);
|
|
3897
3918
|
__decorateClass([
|
|
3898
|
-
(0,
|
|
3899
|
-
(0,
|
|
3919
|
+
(0, import_class_validator49.IsOptional)(),
|
|
3920
|
+
(0, import_class_validator49.IsString)()
|
|
3900
3921
|
], ProjectDto.prototype, "gitLink", 2);
|
|
3901
3922
|
__decorateClass([
|
|
3902
|
-
(0,
|
|
3903
|
-
(0,
|
|
3904
|
-
(0,
|
|
3923
|
+
(0, import_class_validator49.IsOptional)(),
|
|
3924
|
+
(0, import_class_validator49.IsString)(),
|
|
3925
|
+
(0, import_class_validator49.MaxLength)(5e3, { message: "Description must not exceed 5000 characters" })
|
|
3905
3926
|
], ProjectDto.prototype, "description", 2);
|
|
3906
3927
|
var CaseStudyDto = class {
|
|
3907
3928
|
};
|
|
3908
3929
|
__decorateClass([
|
|
3909
|
-
(0,
|
|
3930
|
+
(0, import_class_validator49.IsOptional)()
|
|
3910
3931
|
], CaseStudyDto.prototype, "uuid", 2);
|
|
3911
3932
|
__decorateClass([
|
|
3912
|
-
(0,
|
|
3913
|
-
(0,
|
|
3933
|
+
(0, import_class_validator49.IsString)(),
|
|
3934
|
+
(0, import_class_validator49.IsNotEmpty)({ message: "Please Enter Project Name " })
|
|
3914
3935
|
], CaseStudyDto.prototype, "projectName", 2);
|
|
3915
3936
|
__decorateClass([
|
|
3916
|
-
(0,
|
|
3917
|
-
(0,
|
|
3937
|
+
(0, import_class_validator49.IsOptional)(),
|
|
3938
|
+
(0, import_class_validator49.IsString)()
|
|
3918
3939
|
], CaseStudyDto.prototype, "caseStudyLink", 2);
|
|
3919
3940
|
__decorateClass([
|
|
3920
|
-
(0,
|
|
3921
|
-
(0,
|
|
3922
|
-
(0,
|
|
3941
|
+
(0, import_class_validator49.IsOptional)(),
|
|
3942
|
+
(0, import_class_validator49.IsString)(),
|
|
3943
|
+
(0, import_class_validator49.MaxLength)(5e3, { message: "Description must not exceed 5000 characters" })
|
|
3923
3944
|
], CaseStudyDto.prototype, "description", 2);
|
|
3924
3945
|
var FreelancerProjectDto = class {
|
|
3925
3946
|
};
|
|
3926
3947
|
__decorateClass([
|
|
3927
|
-
(0,
|
|
3928
|
-
(0,
|
|
3929
|
-
(0,
|
|
3948
|
+
(0, import_class_validator49.IsArray)(),
|
|
3949
|
+
(0, import_class_validator49.ArrayMinSize)(1, { message: "At least one project is required." }),
|
|
3950
|
+
(0, import_class_validator49.ValidateNested)({ each: true }),
|
|
3930
3951
|
(0, import_class_transformer4.Type)(() => ProjectDto)
|
|
3931
3952
|
], FreelancerProjectDto.prototype, "projects", 2);
|
|
3932
3953
|
__decorateClass([
|
|
3933
|
-
(0,
|
|
3934
|
-
(0,
|
|
3954
|
+
(0, import_class_validator49.IsArray)(),
|
|
3955
|
+
(0, import_class_validator49.ValidateNested)({ each: true }),
|
|
3935
3956
|
(0, import_class_transformer4.Type)(() => CaseStudyDto)
|
|
3936
3957
|
], FreelancerProjectDto.prototype, "casestudies", 2);
|
|
3937
3958
|
|
|
@@ -3947,7 +3968,7 @@ var FREELANCER_SKILL_PATTERN = {
|
|
|
3947
3968
|
};
|
|
3948
3969
|
|
|
3949
3970
|
// src/modules/user/freelancer-skill/dto/freelancer-skill.dto.ts
|
|
3950
|
-
var
|
|
3971
|
+
var import_class_validator50 = require("class-validator");
|
|
3951
3972
|
var import_class_transformer5 = require("class-transformer");
|
|
3952
3973
|
var FreelancerSkillDto = class {
|
|
3953
3974
|
constructor() {
|
|
@@ -3957,22 +3978,22 @@ var FreelancerSkillDto = class {
|
|
|
3957
3978
|
}
|
|
3958
3979
|
};
|
|
3959
3980
|
__decorateClass([
|
|
3960
|
-
(0,
|
|
3961
|
-
(0,
|
|
3981
|
+
(0, import_class_validator50.IsOptional)(),
|
|
3982
|
+
(0, import_class_validator50.IsArray)(),
|
|
3962
3983
|
(0, import_class_transformer5.Type)(() => String),
|
|
3963
|
-
(0,
|
|
3984
|
+
(0, import_class_validator50.IsString)({ each: true })
|
|
3964
3985
|
], FreelancerSkillDto.prototype, "coreSkills", 2);
|
|
3965
3986
|
__decorateClass([
|
|
3966
|
-
(0,
|
|
3967
|
-
(0,
|
|
3987
|
+
(0, import_class_validator50.IsOptional)(),
|
|
3988
|
+
(0, import_class_validator50.IsArray)(),
|
|
3968
3989
|
(0, import_class_transformer5.Type)(() => String),
|
|
3969
|
-
(0,
|
|
3990
|
+
(0, import_class_validator50.IsString)({ each: true })
|
|
3970
3991
|
], FreelancerSkillDto.prototype, "tools", 2);
|
|
3971
3992
|
__decorateClass([
|
|
3972
|
-
(0,
|
|
3973
|
-
(0,
|
|
3993
|
+
(0, import_class_validator50.IsOptional)(),
|
|
3994
|
+
(0, import_class_validator50.IsArray)(),
|
|
3974
3995
|
(0, import_class_transformer5.Type)(() => String),
|
|
3975
|
-
(0,
|
|
3996
|
+
(0, import_class_validator50.IsString)({ each: true })
|
|
3976
3997
|
], FreelancerSkillDto.prototype, "frameworks", 2);
|
|
3977
3998
|
|
|
3978
3999
|
// src/modules/freelancer-admin/pattern/pattern.ts
|
|
@@ -3988,7 +4009,7 @@ var ADMIN_FREELANCER_PATTERN = {
|
|
|
3988
4009
|
};
|
|
3989
4010
|
|
|
3990
4011
|
// src/modules/freelancer-admin/dto/create-freelancer.dto.ts
|
|
3991
|
-
var
|
|
4012
|
+
var import_class_validator51 = require("class-validator");
|
|
3992
4013
|
var import_class_transformer6 = require("class-transformer");
|
|
3993
4014
|
var NatureOfWorkEnum = /* @__PURE__ */ ((NatureOfWorkEnum3) => {
|
|
3994
4015
|
NatureOfWorkEnum3["FULLTIME"] = "FULLTIME";
|
|
@@ -4005,84 +4026,84 @@ var ModeOfWorkEnum = /* @__PURE__ */ ((ModeOfWorkEnum3) => {
|
|
|
4005
4026
|
var CreateFreelancerDto = class {
|
|
4006
4027
|
};
|
|
4007
4028
|
__decorateClass([
|
|
4008
|
-
(0,
|
|
4009
|
-
(0,
|
|
4029
|
+
(0, import_class_validator51.IsString)({ message: "Full name must be a string" }),
|
|
4030
|
+
(0, import_class_validator51.MaxLength)(100, { message: "Full name must not exceed 100 characters" })
|
|
4010
4031
|
], CreateFreelancerDto.prototype, "fullName", 2);
|
|
4011
4032
|
__decorateClass([
|
|
4012
|
-
(0,
|
|
4033
|
+
(0, import_class_validator51.IsEmail)({}, { message: "Invalid email address" })
|
|
4013
4034
|
], CreateFreelancerDto.prototype, "email", 2);
|
|
4014
4035
|
__decorateClass([
|
|
4015
|
-
(0,
|
|
4036
|
+
(0, import_class_validator51.IsString)({ message: "Mobile code must be a string (e.g., +1)" })
|
|
4016
4037
|
], CreateFreelancerDto.prototype, "mobileCode", 2);
|
|
4017
4038
|
__decorateClass([
|
|
4018
|
-
(0,
|
|
4039
|
+
(0, import_class_validator51.IsString)({ message: "Mobile must be a string (e.g., 1243253534)" })
|
|
4019
4040
|
], CreateFreelancerDto.prototype, "mobile", 2);
|
|
4020
4041
|
__decorateClass([
|
|
4021
|
-
(0,
|
|
4022
|
-
(0,
|
|
4023
|
-
(0,
|
|
4024
|
-
(0,
|
|
4042
|
+
(0, import_class_validator51.IsNotEmpty)({ message: "Please enter password." }),
|
|
4043
|
+
(0, import_class_validator51.MinLength)(6),
|
|
4044
|
+
(0, import_class_validator51.MaxLength)(32),
|
|
4045
|
+
(0, import_class_validator51.Matches)(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
4025
4046
|
message: "Password must include letters, numbers and symbols."
|
|
4026
4047
|
})
|
|
4027
4048
|
], CreateFreelancerDto.prototype, "password", 2);
|
|
4028
4049
|
__decorateClass([
|
|
4029
|
-
(0,
|
|
4050
|
+
(0, import_class_validator51.IsNotEmpty)({ message: "Please enter confirm password." }),
|
|
4030
4051
|
Match("confirmPassword", { message: "Passwords do not match" })
|
|
4031
4052
|
], CreateFreelancerDto.prototype, "confirmPassword", 2);
|
|
4032
4053
|
__decorateClass([
|
|
4033
|
-
(0,
|
|
4054
|
+
(0, import_class_validator51.IsBoolean)({ message: "Developer flag must be true or false" }),
|
|
4034
4055
|
(0, import_class_transformer6.Type)(() => Boolean)
|
|
4035
4056
|
], CreateFreelancerDto.prototype, "developer", 2);
|
|
4036
4057
|
__decorateClass([
|
|
4037
|
-
(0,
|
|
4058
|
+
(0, import_class_validator51.IsEnum)(NatureOfWorkEnum, {
|
|
4038
4059
|
message: `Nature of work must be one of: ${Object.values(
|
|
4039
4060
|
NatureOfWorkEnum
|
|
4040
4061
|
).join(", ")}`
|
|
4041
4062
|
})
|
|
4042
4063
|
], CreateFreelancerDto.prototype, "natureOfWork", 2);
|
|
4043
4064
|
__decorateClass([
|
|
4044
|
-
(0,
|
|
4045
|
-
(0,
|
|
4065
|
+
(0, import_class_validator51.IsNumber)({}, { message: "Expected hourly compensation must be a number" }),
|
|
4066
|
+
(0, import_class_validator51.Min)(0, { message: "Expected hourly compensation must be 0 or more" }),
|
|
4046
4067
|
(0, import_class_transformer6.Type)(() => Number)
|
|
4047
4068
|
], CreateFreelancerDto.prototype, "expectedHourlyCompensation", 2);
|
|
4048
4069
|
__decorateClass([
|
|
4049
|
-
(0,
|
|
4070
|
+
(0, import_class_validator51.IsEnum)(ModeOfWorkEnum, {
|
|
4050
4071
|
message: `Mode of work must be one of: ${Object.values(ModeOfWorkEnum).join(
|
|
4051
4072
|
", "
|
|
4052
4073
|
)}`
|
|
4053
4074
|
})
|
|
4054
4075
|
], CreateFreelancerDto.prototype, "modeOfWork", 2);
|
|
4055
4076
|
__decorateClass([
|
|
4056
|
-
(0,
|
|
4077
|
+
(0, import_class_validator51.IsBoolean)({ message: "isImmediateJoiner must be true or false" }),
|
|
4057
4078
|
(0, import_class_transformer6.Type)(() => Boolean)
|
|
4058
4079
|
], CreateFreelancerDto.prototype, "isImmediateJoiner", 2);
|
|
4059
4080
|
__decorateClass([
|
|
4060
|
-
(0,
|
|
4061
|
-
(0,
|
|
4081
|
+
(0, import_class_validator51.ValidateIf)((o) => o.isImmediateJoiner === false),
|
|
4082
|
+
(0, import_class_validator51.IsNotEmpty)({ message: "Please enter availability to join." })
|
|
4062
4083
|
], CreateFreelancerDto.prototype, "availabilityToJoin", 2);
|
|
4063
4084
|
__decorateClass([
|
|
4064
|
-
(0,
|
|
4065
|
-
(0,
|
|
4085
|
+
(0, import_class_validator51.IsOptional)(),
|
|
4086
|
+
(0, import_class_validator51.IsUrl)({}, { message: "LinkedIn profile link must be a valid URL" })
|
|
4066
4087
|
], CreateFreelancerDto.prototype, "linkedinProfileLink", 2);
|
|
4067
4088
|
__decorateClass([
|
|
4068
|
-
(0,
|
|
4069
|
-
(0,
|
|
4089
|
+
(0, import_class_validator51.IsOptional)(),
|
|
4090
|
+
(0, import_class_validator51.IsString)({ message: "Kaggle profile link must be a string" })
|
|
4070
4091
|
], CreateFreelancerDto.prototype, "kaggleProfileLink", 2);
|
|
4071
4092
|
__decorateClass([
|
|
4072
|
-
(0,
|
|
4073
|
-
(0,
|
|
4093
|
+
(0, import_class_validator51.IsOptional)(),
|
|
4094
|
+
(0, import_class_validator51.IsUrl)({}, { message: "GitHub profile link must be a valid URL" })
|
|
4074
4095
|
], CreateFreelancerDto.prototype, "githubProfileLink", 2);
|
|
4075
4096
|
__decorateClass([
|
|
4076
|
-
(0,
|
|
4077
|
-
(0,
|
|
4097
|
+
(0, import_class_validator51.IsOptional)(),
|
|
4098
|
+
(0, import_class_validator51.IsUrl)({}, { message: "StackOverflow profile link must be a valid URL" })
|
|
4078
4099
|
], CreateFreelancerDto.prototype, "stackOverflowProfileLink", 2);
|
|
4079
4100
|
__decorateClass([
|
|
4080
|
-
(0,
|
|
4081
|
-
(0,
|
|
4101
|
+
(0, import_class_validator51.IsOptional)(),
|
|
4102
|
+
(0, import_class_validator51.IsUrl)({}, { message: "Portfolio link must be a valid URL" })
|
|
4082
4103
|
], CreateFreelancerDto.prototype, "portfolioLink", 2);
|
|
4083
4104
|
|
|
4084
4105
|
// src/modules/freelancer-admin/dto/update-freelancer.dto.ts
|
|
4085
|
-
var
|
|
4106
|
+
var import_class_validator52 = require("class-validator");
|
|
4086
4107
|
var import_class_transformer7 = require("class-transformer");
|
|
4087
4108
|
var NatureOfWorkEnum2 = /* @__PURE__ */ ((NatureOfWorkEnum3) => {
|
|
4088
4109
|
NatureOfWorkEnum3["FULLTIME"] = "FULLTIME";
|
|
@@ -4099,85 +4120,85 @@ var ModeOfWorkEnum2 = /* @__PURE__ */ ((ModeOfWorkEnum3) => {
|
|
|
4099
4120
|
var UpdateFreelancerDto = class {
|
|
4100
4121
|
};
|
|
4101
4122
|
__decorateClass([
|
|
4102
|
-
(0,
|
|
4103
|
-
(0,
|
|
4104
|
-
(0,
|
|
4123
|
+
(0, import_class_validator52.IsOptional)(),
|
|
4124
|
+
(0, import_class_validator52.IsString)({ message: "Full name must be a string" }),
|
|
4125
|
+
(0, import_class_validator52.MaxLength)(100, { message: "Full name must not exceed 100 characters" })
|
|
4105
4126
|
], UpdateFreelancerDto.prototype, "fullName", 2);
|
|
4106
4127
|
__decorateClass([
|
|
4107
|
-
(0,
|
|
4108
|
-
(0,
|
|
4128
|
+
(0, import_class_validator52.IsOptional)(),
|
|
4129
|
+
(0, import_class_validator52.IsEmail)({}, { message: "Invalid email address" })
|
|
4109
4130
|
], UpdateFreelancerDto.prototype, "email", 2);
|
|
4110
4131
|
__decorateClass([
|
|
4111
|
-
(0,
|
|
4112
|
-
(0,
|
|
4132
|
+
(0, import_class_validator52.IsOptional)(),
|
|
4133
|
+
(0, import_class_validator52.IsString)({ message: "Mobile code must be a string (e.g., +1)" })
|
|
4113
4134
|
], UpdateFreelancerDto.prototype, "mobileCode", 2);
|
|
4114
4135
|
__decorateClass([
|
|
4115
|
-
(0,
|
|
4116
|
-
(0,
|
|
4136
|
+
(0, import_class_validator52.IsOptional)(),
|
|
4137
|
+
(0, import_class_validator52.IsString)({ message: "Mobile must be a string (e.g., 1243253534)" })
|
|
4117
4138
|
], UpdateFreelancerDto.prototype, "mobile", 2);
|
|
4118
4139
|
__decorateClass([
|
|
4119
|
-
(0,
|
|
4120
|
-
(0,
|
|
4121
|
-
(0,
|
|
4122
|
-
(0,
|
|
4140
|
+
(0, import_class_validator52.IsOptional)(),
|
|
4141
|
+
(0, import_class_validator52.MinLength)(6, { message: "Password must be at least 6 characters." }),
|
|
4142
|
+
(0, import_class_validator52.MaxLength)(32, { message: "Password must not exceed 32 characters." }),
|
|
4143
|
+
(0, import_class_validator52.Matches)(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
4123
4144
|
message: "Password must include letters, numbers and symbols."
|
|
4124
4145
|
})
|
|
4125
4146
|
], UpdateFreelancerDto.prototype, "password", 2);
|
|
4126
4147
|
__decorateClass([
|
|
4127
|
-
(0,
|
|
4128
|
-
(0,
|
|
4148
|
+
(0, import_class_validator52.IsOptional)(),
|
|
4149
|
+
(0, import_class_validator52.IsBoolean)({ message: "Developer flag must be true or false" }),
|
|
4129
4150
|
(0, import_class_transformer7.Type)(() => Boolean)
|
|
4130
4151
|
], UpdateFreelancerDto.prototype, "developer", 2);
|
|
4131
4152
|
__decorateClass([
|
|
4132
|
-
(0,
|
|
4133
|
-
(0,
|
|
4153
|
+
(0, import_class_validator52.IsOptional)(),
|
|
4154
|
+
(0, import_class_validator52.IsEnum)(NatureOfWorkEnum2, {
|
|
4134
4155
|
message: `Nature of work must be one of: ${Object.values(
|
|
4135
4156
|
NatureOfWorkEnum2
|
|
4136
4157
|
).join(", ")}`
|
|
4137
4158
|
})
|
|
4138
4159
|
], UpdateFreelancerDto.prototype, "natureOfWork", 2);
|
|
4139
4160
|
__decorateClass([
|
|
4140
|
-
(0,
|
|
4141
|
-
(0,
|
|
4142
|
-
(0,
|
|
4161
|
+
(0, import_class_validator52.IsOptional)(),
|
|
4162
|
+
(0, import_class_validator52.IsNumber)({}, { message: "Expected hourly compensation must be a number" }),
|
|
4163
|
+
(0, import_class_validator52.Min)(0, { message: "Expected hourly compensation must be 0 or more" }),
|
|
4143
4164
|
(0, import_class_transformer7.Type)(() => Number)
|
|
4144
4165
|
], UpdateFreelancerDto.prototype, "expectedHourlyCompensation", 2);
|
|
4145
4166
|
__decorateClass([
|
|
4146
|
-
(0,
|
|
4147
|
-
(0,
|
|
4167
|
+
(0, import_class_validator52.IsOptional)(),
|
|
4168
|
+
(0, import_class_validator52.IsEnum)(ModeOfWorkEnum2, {
|
|
4148
4169
|
message: `Mode of work must be one of: ${Object.values(ModeOfWorkEnum2).join(
|
|
4149
4170
|
", "
|
|
4150
4171
|
)}`
|
|
4151
4172
|
})
|
|
4152
4173
|
], UpdateFreelancerDto.prototype, "modeOfWork", 2);
|
|
4153
4174
|
__decorateClass([
|
|
4154
|
-
(0,
|
|
4155
|
-
(0,
|
|
4175
|
+
(0, import_class_validator52.IsOptional)(),
|
|
4176
|
+
(0, import_class_validator52.IsBoolean)({ message: "isImmediateJoiner must be true or false" }),
|
|
4156
4177
|
(0, import_class_transformer7.Type)(() => Boolean)
|
|
4157
4178
|
], UpdateFreelancerDto.prototype, "isImmediateJoiner", 2);
|
|
4158
4179
|
__decorateClass([
|
|
4159
|
-
(0,
|
|
4160
|
-
(0,
|
|
4180
|
+
(0, import_class_validator52.ValidateIf)((o) => o.isImmediateJoiner === false),
|
|
4181
|
+
(0, import_class_validator52.IsNotEmpty)({ message: "Please enter availability to join." })
|
|
4161
4182
|
], UpdateFreelancerDto.prototype, "availabilityToJoin", 2);
|
|
4162
4183
|
__decorateClass([
|
|
4163
|
-
(0,
|
|
4164
|
-
(0,
|
|
4184
|
+
(0, import_class_validator52.IsOptional)(),
|
|
4185
|
+
(0, import_class_validator52.IsUrl)({}, { message: "LinkedIn profile link must be a valid URL" })
|
|
4165
4186
|
], UpdateFreelancerDto.prototype, "linkedinProfileLink", 2);
|
|
4166
4187
|
__decorateClass([
|
|
4167
|
-
(0,
|
|
4168
|
-
(0,
|
|
4188
|
+
(0, import_class_validator52.IsOptional)(),
|
|
4189
|
+
(0, import_class_validator52.IsString)({ message: "Kaggle profile link must be a string" })
|
|
4169
4190
|
], UpdateFreelancerDto.prototype, "kaggleProfileLink", 2);
|
|
4170
4191
|
__decorateClass([
|
|
4171
|
-
(0,
|
|
4172
|
-
(0,
|
|
4192
|
+
(0, import_class_validator52.IsOptional)(),
|
|
4193
|
+
(0, import_class_validator52.IsUrl)({}, { message: "GitHub profile link must be a valid URL" })
|
|
4173
4194
|
], UpdateFreelancerDto.prototype, "githubProfileLink", 2);
|
|
4174
4195
|
__decorateClass([
|
|
4175
|
-
(0,
|
|
4176
|
-
(0,
|
|
4196
|
+
(0, import_class_validator52.IsOptional)(),
|
|
4197
|
+
(0, import_class_validator52.IsUrl)({}, { message: "StackOverflow profile link must be a valid URL" })
|
|
4177
4198
|
], UpdateFreelancerDto.prototype, "stackOverflowProfileLink", 2);
|
|
4178
4199
|
__decorateClass([
|
|
4179
|
-
(0,
|
|
4180
|
-
(0,
|
|
4200
|
+
(0, import_class_validator52.IsOptional)(),
|
|
4201
|
+
(0, import_class_validator52.IsUrl)({}, { message: "Portfolio link must be a valid URL" })
|
|
4181
4202
|
], UpdateFreelancerDto.prototype, "portfolioLink", 2);
|
|
4182
4203
|
|
|
4183
4204
|
// src/modules/client-admin/pattern/pattern.ts
|
|
@@ -4194,7 +4215,7 @@ var CLIENT_ADMIN_PATTERNS = {
|
|
|
4194
4215
|
};
|
|
4195
4216
|
|
|
4196
4217
|
// src/modules/client-admin/dto/create-client.dto.ts
|
|
4197
|
-
var
|
|
4218
|
+
var import_class_validator53 = require("class-validator");
|
|
4198
4219
|
var CreateClientHiringModeEnum = /* @__PURE__ */ ((CreateClientHiringModeEnum2) => {
|
|
4199
4220
|
CreateClientHiringModeEnum2["REMOTE"] = "REMOTE";
|
|
4200
4221
|
CreateClientHiringModeEnum2["ONSITE"] = "ONSITE";
|
|
@@ -4210,69 +4231,69 @@ var CreateClientHiringTypeEnum = /* @__PURE__ */ ((CreateClientHiringTypeEnum2)
|
|
|
4210
4231
|
var CreateClientDto = class {
|
|
4211
4232
|
};
|
|
4212
4233
|
__decorateClass([
|
|
4213
|
-
(0,
|
|
4214
|
-
(0,
|
|
4234
|
+
(0, import_class_validator53.IsNotEmpty)({ message: "Please enter first name." }),
|
|
4235
|
+
(0, import_class_validator53.IsString)()
|
|
4215
4236
|
], CreateClientDto.prototype, "firstName", 2);
|
|
4216
4237
|
__decorateClass([
|
|
4217
|
-
(0,
|
|
4218
|
-
(0,
|
|
4238
|
+
(0, import_class_validator53.IsNotEmpty)({ message: "Please enter last name." }),
|
|
4239
|
+
(0, import_class_validator53.IsString)()
|
|
4219
4240
|
], CreateClientDto.prototype, "lastName", 2);
|
|
4220
4241
|
__decorateClass([
|
|
4221
|
-
(0,
|
|
4222
|
-
(0,
|
|
4242
|
+
(0, import_class_validator53.IsNotEmpty)({ message: "Please enter email." }),
|
|
4243
|
+
(0, import_class_validator53.IsEmail)()
|
|
4223
4244
|
], CreateClientDto.prototype, "email", 2);
|
|
4224
4245
|
__decorateClass([
|
|
4225
|
-
(0,
|
|
4226
|
-
(0,
|
|
4227
|
-
(0,
|
|
4228
|
-
(0,
|
|
4246
|
+
(0, import_class_validator53.IsNotEmpty)({ message: "Please enter password." }),
|
|
4247
|
+
(0, import_class_validator53.MinLength)(6),
|
|
4248
|
+
(0, import_class_validator53.MaxLength)(32),
|
|
4249
|
+
(0, import_class_validator53.Matches)(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
4229
4250
|
message: "Password must include letters, numbers and symbols."
|
|
4230
4251
|
})
|
|
4231
4252
|
], CreateClientDto.prototype, "password", 2);
|
|
4232
4253
|
__decorateClass([
|
|
4233
|
-
(0,
|
|
4254
|
+
(0, import_class_validator53.IsNotEmpty)({ message: "Please enter confirm password." }),
|
|
4234
4255
|
Match("confirmPassword", { message: "Passwords do not match" })
|
|
4235
4256
|
], CreateClientDto.prototype, "confirmPassword", 2);
|
|
4236
4257
|
__decorateClass([
|
|
4237
|
-
(0,
|
|
4238
|
-
(0,
|
|
4258
|
+
(0, import_class_validator53.IsNotEmpty)({ message: "Please enter company name." }),
|
|
4259
|
+
(0, import_class_validator53.IsString)()
|
|
4239
4260
|
], CreateClientDto.prototype, "companyName", 2);
|
|
4240
4261
|
__decorateClass([
|
|
4241
|
-
(0,
|
|
4242
|
-
(0,
|
|
4262
|
+
(0, import_class_validator53.IsArray)({ message: "Skills should be an array." }),
|
|
4263
|
+
(0, import_class_validator53.IsNotEmpty)({ message: "Please enter skills." })
|
|
4243
4264
|
], CreateClientDto.prototype, "skills", 2);
|
|
4244
4265
|
__decorateClass([
|
|
4245
|
-
(0,
|
|
4246
|
-
(0,
|
|
4266
|
+
(0, import_class_validator53.IsNotEmpty)({ message: "Please specify required freelancer count." }),
|
|
4267
|
+
(0, import_class_validator53.IsString)()
|
|
4247
4268
|
], CreateClientDto.prototype, "requiredFreelancer", 2);
|
|
4248
4269
|
__decorateClass([
|
|
4249
|
-
(0,
|
|
4250
|
-
(0,
|
|
4270
|
+
(0, import_class_validator53.IsNotEmpty)({ message: "Please specify the kind of hiring." }),
|
|
4271
|
+
(0, import_class_validator53.IsEnum)(CreateClientHiringTypeEnum)
|
|
4251
4272
|
], CreateClientDto.prototype, "kindOfHiring", 2);
|
|
4252
4273
|
__decorateClass([
|
|
4253
|
-
(0,
|
|
4254
|
-
(0,
|
|
4274
|
+
(0, import_class_validator53.IsNotEmpty)({ message: "Please specify the mode of hire." }),
|
|
4275
|
+
(0, import_class_validator53.IsEnum)(CreateClientHiringModeEnum)
|
|
4255
4276
|
], CreateClientDto.prototype, "modeOfHire", 2);
|
|
4256
4277
|
__decorateClass([
|
|
4257
|
-
(0,
|
|
4258
|
-
(0,
|
|
4278
|
+
(0, import_class_validator53.IsNotEmpty)({ message: "Please let us know how you found us." }),
|
|
4279
|
+
(0, import_class_validator53.IsString)()
|
|
4259
4280
|
], CreateClientDto.prototype, "foundUsOn", 2);
|
|
4260
4281
|
__decorateClass([
|
|
4261
|
-
(0,
|
|
4262
|
-
(0,
|
|
4282
|
+
(0, import_class_validator53.IsOptional)(),
|
|
4283
|
+
(0, import_class_validator53.IsString)()
|
|
4263
4284
|
], CreateClientDto.prototype, "foundUsOnDetail", 2);
|
|
4264
4285
|
|
|
4265
4286
|
// src/modules/client-admin/dto/update-client-status.dto.ts
|
|
4266
|
-
var
|
|
4287
|
+
var import_class_validator54 = require("class-validator");
|
|
4267
4288
|
var UpdateClientAccountStatusDto = class {
|
|
4268
4289
|
};
|
|
4269
4290
|
__decorateClass([
|
|
4270
|
-
(0,
|
|
4271
|
-
(0,
|
|
4291
|
+
(0, import_class_validator54.IsNotEmpty)({ message: "Please enter account status." }),
|
|
4292
|
+
(0, import_class_validator54.IsString)()
|
|
4272
4293
|
], UpdateClientAccountStatusDto.prototype, "accountStatus", 2);
|
|
4273
4294
|
|
|
4274
4295
|
// src/modules/client-admin/dto/update-client.dto.ts
|
|
4275
|
-
var
|
|
4296
|
+
var import_class_validator55 = require("class-validator");
|
|
4276
4297
|
var UpdateClientHiringModeEnum = /* @__PURE__ */ ((UpdateClientHiringModeEnum2) => {
|
|
4277
4298
|
UpdateClientHiringModeEnum2["REMOTE"] = "REMOTE";
|
|
4278
4299
|
UpdateClientHiringModeEnum2["ONSITE"] = "ONSITE";
|
|
@@ -4288,52 +4309,52 @@ var UpdateClientHiringTypeEnum = /* @__PURE__ */ ((UpdateClientHiringTypeEnum2)
|
|
|
4288
4309
|
var UpdateClientDto = class {
|
|
4289
4310
|
};
|
|
4290
4311
|
__decorateClass([
|
|
4291
|
-
(0,
|
|
4292
|
-
(0,
|
|
4312
|
+
(0, import_class_validator55.IsNotEmpty)({ message: "Please enter first name." }),
|
|
4313
|
+
(0, import_class_validator55.IsString)()
|
|
4293
4314
|
], UpdateClientDto.prototype, "firstName", 2);
|
|
4294
4315
|
__decorateClass([
|
|
4295
|
-
(0,
|
|
4296
|
-
(0,
|
|
4316
|
+
(0, import_class_validator55.IsNotEmpty)({ message: "Please enter last name." }),
|
|
4317
|
+
(0, import_class_validator55.IsString)()
|
|
4297
4318
|
], UpdateClientDto.prototype, "lastName", 2);
|
|
4298
4319
|
__decorateClass([
|
|
4299
|
-
(0,
|
|
4300
|
-
(0,
|
|
4320
|
+
(0, import_class_validator55.IsNotEmpty)({ message: "Please enter email." }),
|
|
4321
|
+
(0, import_class_validator55.IsEmail)()
|
|
4301
4322
|
], UpdateClientDto.prototype, "email", 2);
|
|
4302
4323
|
__decorateClass([
|
|
4303
|
-
(0,
|
|
4304
|
-
(0,
|
|
4305
|
-
(0,
|
|
4306
|
-
(0,
|
|
4324
|
+
(0, import_class_validator55.IsOptional)(),
|
|
4325
|
+
(0, import_class_validator55.MinLength)(6, { message: "Password must be at least 6 characters." }),
|
|
4326
|
+
(0, import_class_validator55.MaxLength)(32, { message: "Password must not exceed 32 characters." }),
|
|
4327
|
+
(0, import_class_validator55.Matches)(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
4307
4328
|
message: "Password must include letters, numbers and symbols."
|
|
4308
4329
|
})
|
|
4309
4330
|
], UpdateClientDto.prototype, "password", 2);
|
|
4310
4331
|
__decorateClass([
|
|
4311
|
-
(0,
|
|
4312
|
-
(0,
|
|
4332
|
+
(0, import_class_validator55.IsNotEmpty)({ message: "Please enter company name." }),
|
|
4333
|
+
(0, import_class_validator55.IsString)()
|
|
4313
4334
|
], UpdateClientDto.prototype, "companyName", 2);
|
|
4314
4335
|
__decorateClass([
|
|
4315
|
-
(0,
|
|
4316
|
-
(0,
|
|
4336
|
+
(0, import_class_validator55.IsArray)({ message: "Skills should be an array." }),
|
|
4337
|
+
(0, import_class_validator55.IsNotEmpty)({ message: "Please enter skills." })
|
|
4317
4338
|
], UpdateClientDto.prototype, "skills", 2);
|
|
4318
4339
|
__decorateClass([
|
|
4319
|
-
(0,
|
|
4320
|
-
(0,
|
|
4340
|
+
(0, import_class_validator55.IsNotEmpty)({ message: "Please specify required freelancer count." }),
|
|
4341
|
+
(0, import_class_validator55.IsString)()
|
|
4321
4342
|
], UpdateClientDto.prototype, "requiredFreelancer", 2);
|
|
4322
4343
|
__decorateClass([
|
|
4323
|
-
(0,
|
|
4324
|
-
(0,
|
|
4344
|
+
(0, import_class_validator55.IsNotEmpty)({ message: "Please specify the kind of hiring." }),
|
|
4345
|
+
(0, import_class_validator55.IsEnum)(UpdateClientHiringTypeEnum)
|
|
4325
4346
|
], UpdateClientDto.prototype, "kindOfHiring", 2);
|
|
4326
4347
|
__decorateClass([
|
|
4327
|
-
(0,
|
|
4328
|
-
(0,
|
|
4348
|
+
(0, import_class_validator55.IsNotEmpty)({ message: "Please specify the mode of hire." }),
|
|
4349
|
+
(0, import_class_validator55.IsEnum)(UpdateClientHiringModeEnum)
|
|
4329
4350
|
], UpdateClientDto.prototype, "modeOfHire", 2);
|
|
4330
4351
|
__decorateClass([
|
|
4331
|
-
(0,
|
|
4332
|
-
(0,
|
|
4352
|
+
(0, import_class_validator55.IsNotEmpty)({ message: "Please let us know how you found us." }),
|
|
4353
|
+
(0, import_class_validator55.IsString)()
|
|
4333
4354
|
], UpdateClientDto.prototype, "foundUsOn", 2);
|
|
4334
4355
|
__decorateClass([
|
|
4335
|
-
(0,
|
|
4336
|
-
(0,
|
|
4356
|
+
(0, import_class_validator55.IsOptional)(),
|
|
4357
|
+
(0, import_class_validator55.IsString)()
|
|
4337
4358
|
], UpdateClientDto.prototype, "foundUsOnDetail", 2);
|
|
4338
4359
|
|
|
4339
4360
|
// src/modules/user/freelancer-declaration/pattern/pattern.ts
|
|
@@ -4343,7 +4364,7 @@ var FREELANCER_DECLARATION_PATTERN = {
|
|
|
4343
4364
|
};
|
|
4344
4365
|
|
|
4345
4366
|
// src/modules/user/freelancer-declaration/dto/freelancer-declaration.dto.ts
|
|
4346
|
-
var
|
|
4367
|
+
var import_class_validator56 = require("class-validator");
|
|
4347
4368
|
var DocumentTypeEnum = /* @__PURE__ */ ((DocumentTypeEnum2) => {
|
|
4348
4369
|
DocumentTypeEnum2["AADHAAR"] = "AADHAAR_CARD";
|
|
4349
4370
|
DocumentTypeEnum2["PASSPORT"] = "PASSPORT";
|
|
@@ -4354,16 +4375,16 @@ var DocumentTypeEnum = /* @__PURE__ */ ((DocumentTypeEnum2) => {
|
|
|
4354
4375
|
var FreelancerDeclarationDto = class {
|
|
4355
4376
|
};
|
|
4356
4377
|
__decorateClass([
|
|
4357
|
-
(0,
|
|
4358
|
-
(0,
|
|
4378
|
+
(0, import_class_validator56.IsOptional)(),
|
|
4379
|
+
(0, import_class_validator56.IsString)({ message: "UUID must be a string" })
|
|
4359
4380
|
], FreelancerDeclarationDto.prototype, "uuid", 2);
|
|
4360
4381
|
__decorateClass([
|
|
4361
|
-
(0,
|
|
4382
|
+
(0, import_class_validator56.IsEnum)(DocumentTypeEnum, { message: "Document type must be one of AADHAAR_CARD, PASSPORT, DRIVING_LICENSE, PAN_CARD" })
|
|
4362
4383
|
], FreelancerDeclarationDto.prototype, "documentType", 2);
|
|
4363
4384
|
__decorateClass([
|
|
4364
|
-
(0,
|
|
4365
|
-
(0,
|
|
4366
|
-
(0,
|
|
4385
|
+
(0, import_class_validator56.IsNotEmpty)({ message: "Please accept the declaration " }),
|
|
4386
|
+
(0, import_class_validator56.IsString)(),
|
|
4387
|
+
(0, import_class_validator56.IsIn)([
|
|
4367
4388
|
"true"
|
|
4368
4389
|
])
|
|
4369
4390
|
], FreelancerDeclarationDto.prototype, "declarationAccepted", 2);
|
|
@@ -4378,36 +4399,36 @@ var CMS_PATTERNS = {
|
|
|
4378
4399
|
};
|
|
4379
4400
|
|
|
4380
4401
|
// src/modules/cms/dto/create-cms.dto.ts
|
|
4381
|
-
var
|
|
4402
|
+
var import_class_validator57 = require("class-validator");
|
|
4382
4403
|
var CreateCmsDto = class {
|
|
4383
4404
|
};
|
|
4384
4405
|
__decorateClass([
|
|
4385
|
-
(0,
|
|
4406
|
+
(0, import_class_validator57.IsNotEmpty)({ message: "Please enter name." })
|
|
4386
4407
|
], CreateCmsDto.prototype, "title", 2);
|
|
4387
4408
|
__decorateClass([
|
|
4388
|
-
(0,
|
|
4409
|
+
(0, import_class_validator57.IsOptional)()
|
|
4389
4410
|
], CreateCmsDto.prototype, "content", 2);
|
|
4390
4411
|
__decorateClass([
|
|
4391
|
-
(0,
|
|
4392
|
-
(0,
|
|
4412
|
+
(0, import_class_validator57.IsOptional)(),
|
|
4413
|
+
(0, import_class_validator57.IsBoolean)({ message: "Is active must be a boolean value" })
|
|
4393
4414
|
], CreateCmsDto.prototype, "isActive", 2);
|
|
4394
4415
|
|
|
4395
4416
|
// src/modules/cms/dto/update-cms.dto.ts
|
|
4396
|
-
var
|
|
4417
|
+
var import_class_validator58 = require("class-validator");
|
|
4397
4418
|
var UpdateCmsDto = class {
|
|
4398
4419
|
};
|
|
4399
4420
|
__decorateClass([
|
|
4400
|
-
(0,
|
|
4421
|
+
(0, import_class_validator58.IsOptional)()
|
|
4401
4422
|
], UpdateCmsDto.prototype, "uuid", 2);
|
|
4402
4423
|
__decorateClass([
|
|
4403
|
-
(0,
|
|
4424
|
+
(0, import_class_validator58.IsNotEmpty)({ message: "Please enter name." })
|
|
4404
4425
|
], UpdateCmsDto.prototype, "title", 2);
|
|
4405
4426
|
__decorateClass([
|
|
4406
|
-
(0,
|
|
4427
|
+
(0, import_class_validator58.IsOptional)()
|
|
4407
4428
|
], UpdateCmsDto.prototype, "content", 2);
|
|
4408
4429
|
__decorateClass([
|
|
4409
|
-
(0,
|
|
4410
|
-
(0,
|
|
4430
|
+
(0, import_class_validator58.IsOptional)(),
|
|
4431
|
+
(0, import_class_validator58.IsBoolean)({ message: "Is active must be a boolean value" })
|
|
4411
4432
|
], UpdateCmsDto.prototype, "isActive", 2);
|
|
4412
4433
|
|
|
4413
4434
|
// src/modules/geographic/pattern/pattern.ts
|
|
@@ -4435,7 +4456,7 @@ var ADMIN_JOB_PATTERN = {
|
|
|
4435
4456
|
|
|
4436
4457
|
// src/modules/job-admin/dto/admin-create-job-information.dto.ts
|
|
4437
4458
|
var import_class_transformer8 = require("class-transformer");
|
|
4438
|
-
var
|
|
4459
|
+
var import_class_validator59 = require("class-validator");
|
|
4439
4460
|
var JobLocationEnumDto = /* @__PURE__ */ ((JobLocationEnumDto2) => {
|
|
4440
4461
|
JobLocationEnumDto2["ONSITE"] = "ONSITE";
|
|
4441
4462
|
JobLocationEnumDto2["REMOTE"] = "REMOTE";
|
|
@@ -4451,79 +4472,79 @@ var TypeOfEmploymentEnumDto = /* @__PURE__ */ ((TypeOfEmploymentEnumDto2) => {
|
|
|
4451
4472
|
var AdminCreateJobInformationDto = class {
|
|
4452
4473
|
};
|
|
4453
4474
|
__decorateClass([
|
|
4454
|
-
(0,
|
|
4455
|
-
(0,
|
|
4475
|
+
(0, import_class_validator59.IsString)({ message: "Job role must be a string." }),
|
|
4476
|
+
(0, import_class_validator59.IsNotEmpty)({ message: "Job role is required." })
|
|
4456
4477
|
], AdminCreateJobInformationDto.prototype, "jobRole", 2);
|
|
4457
4478
|
__decorateClass([
|
|
4458
|
-
(0,
|
|
4459
|
-
(0,
|
|
4479
|
+
(0, import_class_validator59.IsOptional)(),
|
|
4480
|
+
(0, import_class_validator59.IsString)({ message: "Note must be a string." })
|
|
4460
4481
|
], AdminCreateJobInformationDto.prototype, "note", 2);
|
|
4461
4482
|
__decorateClass([
|
|
4462
|
-
(0,
|
|
4463
|
-
(0,
|
|
4483
|
+
(0, import_class_validator59.IsArray)({ message: "Skills must be an array of numeric IDs." }),
|
|
4484
|
+
(0, import_class_validator59.ArrayNotEmpty)({ message: "At least one skill must be selected." }),
|
|
4464
4485
|
(0, import_class_transformer8.Type)(() => Number),
|
|
4465
|
-
(0,
|
|
4486
|
+
(0, import_class_validator59.IsInt)({ each: true, message: "Each skill ID must be a valid integer." })
|
|
4466
4487
|
], AdminCreateJobInformationDto.prototype, "skills", 2);
|
|
4467
4488
|
__decorateClass([
|
|
4468
|
-
(0,
|
|
4469
|
-
(0,
|
|
4489
|
+
(0, import_class_validator59.IsInt)({ message: "Openings must be a valid integer." }),
|
|
4490
|
+
(0, import_class_validator59.Min)(1, { message: "There must be at least one opening." })
|
|
4470
4491
|
], AdminCreateJobInformationDto.prototype, "openings", 2);
|
|
4471
4492
|
__decorateClass([
|
|
4472
|
-
(0,
|
|
4493
|
+
(0, import_class_validator59.IsEnum)(JobLocationEnumDto, {
|
|
4473
4494
|
message: `Location must be one of: ${Object.values(JobLocationEnumDto).join(", ")}.`
|
|
4474
4495
|
})
|
|
4475
4496
|
], AdminCreateJobInformationDto.prototype, "location", 2);
|
|
4476
4497
|
__decorateClass([
|
|
4477
|
-
(0,
|
|
4498
|
+
(0, import_class_validator59.IsEnum)(TypeOfEmploymentEnumDto, {
|
|
4478
4499
|
message: `Type of employment must be one of: ${Object.values(TypeOfEmploymentEnumDto).join(", ")}.`
|
|
4479
4500
|
})
|
|
4480
4501
|
], AdminCreateJobInformationDto.prototype, "typeOfEmployment", 2);
|
|
4481
4502
|
__decorateClass([
|
|
4482
|
-
(0,
|
|
4483
|
-
(0,
|
|
4503
|
+
(0, import_class_validator59.IsString)({ message: "Onboarding Days must be a string." }),
|
|
4504
|
+
(0, import_class_validator59.IsNotEmpty)({ message: "Onboarding Days is required." })
|
|
4484
4505
|
], AdminCreateJobInformationDto.prototype, "onboardingTat", 2);
|
|
4485
4506
|
__decorateClass([
|
|
4486
|
-
(0,
|
|
4487
|
-
(0,
|
|
4507
|
+
(0, import_class_validator59.IsString)({ message: "Communication skills must be a string." }),
|
|
4508
|
+
(0, import_class_validator59.IsNotEmpty)({ message: "Communication skills are required." })
|
|
4488
4509
|
], AdminCreateJobInformationDto.prototype, "candidateCommunicationSkills", 2);
|
|
4489
4510
|
__decorateClass([
|
|
4490
|
-
(0,
|
|
4491
|
-
(0,
|
|
4511
|
+
(0, import_class_validator59.IsString)({ message: "Currency must be a string." }),
|
|
4512
|
+
(0, import_class_validator59.IsNotEmpty)({ message: "Currency is required." })
|
|
4492
4513
|
], AdminCreateJobInformationDto.prototype, "currency", 2);
|
|
4493
4514
|
__decorateClass([
|
|
4494
4515
|
(0, import_class_transformer8.Type)(() => Number),
|
|
4495
|
-
(0,
|
|
4516
|
+
(0, import_class_validator59.IsNumber)({}, { message: "Expected salary from must be a number." })
|
|
4496
4517
|
], AdminCreateJobInformationDto.prototype, "expectedSalaryFrom", 2);
|
|
4497
4518
|
__decorateClass([
|
|
4498
4519
|
(0, import_class_transformer8.Type)(() => Number),
|
|
4499
|
-
(0,
|
|
4520
|
+
(0, import_class_validator59.IsNumber)({}, { message: "Expected salary to must be a number." })
|
|
4500
4521
|
], AdminCreateJobInformationDto.prototype, "expectedSalaryTo", 2);
|
|
4501
4522
|
__decorateClass([
|
|
4502
|
-
(0,
|
|
4523
|
+
(0, import_class_validator59.IsDateString)({ strict: true }, { message: "Start date must be in YYYY-MM-DD format." })
|
|
4503
4524
|
], AdminCreateJobInformationDto.prototype, "tentativeStartDate", 2);
|
|
4504
4525
|
__decorateClass([
|
|
4505
|
-
(0,
|
|
4526
|
+
(0, import_class_validator59.IsDateString)({ strict: true }, { message: "End date must be in YYYY-MM-DD format." })
|
|
4506
4527
|
], AdminCreateJobInformationDto.prototype, "tentativeEndDate", 2);
|
|
4507
4528
|
__decorateClass([
|
|
4508
|
-
(0,
|
|
4509
|
-
(0,
|
|
4529
|
+
(0, import_class_validator59.IsOptional)(),
|
|
4530
|
+
(0, import_class_validator59.IsString)({ message: "Additional comment must be a string." })
|
|
4510
4531
|
], AdminCreateJobInformationDto.prototype, "additionalComment", 2);
|
|
4511
4532
|
__decorateClass([
|
|
4512
|
-
(0,
|
|
4533
|
+
(0, import_class_validator59.IsInt)({ message: "Country ID must be a valid integer." })
|
|
4513
4534
|
], AdminCreateJobInformationDto.prototype, "countryId", 2);
|
|
4514
4535
|
__decorateClass([
|
|
4515
|
-
(0,
|
|
4536
|
+
(0, import_class_validator59.IsInt)({ message: "State ID must be a valid integer." })
|
|
4516
4537
|
], AdminCreateJobInformationDto.prototype, "stateId", 2);
|
|
4517
4538
|
__decorateClass([
|
|
4518
|
-
(0,
|
|
4539
|
+
(0, import_class_validator59.IsInt)({ message: "City ID must be a valid integer." })
|
|
4519
4540
|
], AdminCreateJobInformationDto.prototype, "cityId", 2);
|
|
4520
4541
|
__decorateClass([
|
|
4521
|
-
(0,
|
|
4542
|
+
(0, import_class_validator59.IsInt)({ message: "Client ID must be a valid integer." })
|
|
4522
4543
|
], AdminCreateJobInformationDto.prototype, "clientId", 2);
|
|
4523
4544
|
|
|
4524
4545
|
// src/modules/job-admin/dto/admin-update-job-information.dto.ts
|
|
4525
4546
|
var import_class_transformer9 = require("class-transformer");
|
|
4526
|
-
var
|
|
4547
|
+
var import_class_validator60 = require("class-validator");
|
|
4527
4548
|
var JobLocationEnums = /* @__PURE__ */ ((JobLocationEnums2) => {
|
|
4528
4549
|
JobLocationEnums2["ONSITE"] = "ONSITE";
|
|
4529
4550
|
JobLocationEnums2["REMOTE"] = "REMOTE";
|
|
@@ -4539,74 +4560,74 @@ var TypeOfEmploymentEnums = /* @__PURE__ */ ((TypeOfEmploymentEnums2) => {
|
|
|
4539
4560
|
var AdminUpdateJobInformationDto = class {
|
|
4540
4561
|
};
|
|
4541
4562
|
__decorateClass([
|
|
4542
|
-
(0,
|
|
4543
|
-
(0,
|
|
4563
|
+
(0, import_class_validator60.IsString)({ message: "Job role must be a string." }),
|
|
4564
|
+
(0, import_class_validator60.IsNotEmpty)({ message: "Job role is required." })
|
|
4544
4565
|
], AdminUpdateJobInformationDto.prototype, "jobRole", 2);
|
|
4545
4566
|
__decorateClass([
|
|
4546
|
-
(0,
|
|
4547
|
-
(0,
|
|
4567
|
+
(0, import_class_validator60.IsOptional)(),
|
|
4568
|
+
(0, import_class_validator60.IsString)({ message: "Note must be a string." })
|
|
4548
4569
|
], AdminUpdateJobInformationDto.prototype, "note", 2);
|
|
4549
4570
|
__decorateClass([
|
|
4550
|
-
(0,
|
|
4551
|
-
(0,
|
|
4571
|
+
(0, import_class_validator60.IsArray)({ message: "Skills must be an array of numeric IDs." }),
|
|
4572
|
+
(0, import_class_validator60.ArrayNotEmpty)({ message: "At least one skill must be selected." }),
|
|
4552
4573
|
(0, import_class_transformer9.Type)(() => Number),
|
|
4553
|
-
(0,
|
|
4574
|
+
(0, import_class_validator60.IsInt)({ each: true, message: "Each skill ID must be a valid integer." })
|
|
4554
4575
|
], AdminUpdateJobInformationDto.prototype, "skills", 2);
|
|
4555
4576
|
__decorateClass([
|
|
4556
|
-
(0,
|
|
4557
|
-
(0,
|
|
4577
|
+
(0, import_class_validator60.IsInt)({ message: "Openings must be a valid integer." }),
|
|
4578
|
+
(0, import_class_validator60.Min)(1, { message: "There must be at least one opening." })
|
|
4558
4579
|
], AdminUpdateJobInformationDto.prototype, "openings", 2);
|
|
4559
4580
|
__decorateClass([
|
|
4560
|
-
(0,
|
|
4581
|
+
(0, import_class_validator60.IsEnum)(JobLocationEnums, {
|
|
4561
4582
|
message: `Location must be one of: ${Object.values(JobLocationEnums).join(", ")}.`
|
|
4562
4583
|
})
|
|
4563
4584
|
], AdminUpdateJobInformationDto.prototype, "location", 2);
|
|
4564
4585
|
__decorateClass([
|
|
4565
|
-
(0,
|
|
4586
|
+
(0, import_class_validator60.IsEnum)(TypeOfEmploymentEnums, {
|
|
4566
4587
|
message: `Type of employment must be one of: ${Object.values(TypeOfEmploymentEnums).join(", ")}.`
|
|
4567
4588
|
})
|
|
4568
4589
|
], AdminUpdateJobInformationDto.prototype, "typeOfEmployment", 2);
|
|
4569
4590
|
__decorateClass([
|
|
4570
|
-
(0,
|
|
4571
|
-
(0,
|
|
4591
|
+
(0, import_class_validator60.IsString)({ message: "Onboarding Days must be a string." }),
|
|
4592
|
+
(0, import_class_validator60.IsNotEmpty)({ message: "Onboarding Days is required." })
|
|
4572
4593
|
], AdminUpdateJobInformationDto.prototype, "onboardingTat", 2);
|
|
4573
4594
|
__decorateClass([
|
|
4574
|
-
(0,
|
|
4575
|
-
(0,
|
|
4595
|
+
(0, import_class_validator60.IsString)({ message: "Communication skills must be a string." }),
|
|
4596
|
+
(0, import_class_validator60.IsNotEmpty)({ message: "Communication skills are required." })
|
|
4576
4597
|
], AdminUpdateJobInformationDto.prototype, "candidateCommunicationSkills", 2);
|
|
4577
4598
|
__decorateClass([
|
|
4578
|
-
(0,
|
|
4579
|
-
(0,
|
|
4599
|
+
(0, import_class_validator60.IsString)({ message: "Currency must be a string." }),
|
|
4600
|
+
(0, import_class_validator60.IsNotEmpty)({ message: "Currency is required." })
|
|
4580
4601
|
], AdminUpdateJobInformationDto.prototype, "currency", 2);
|
|
4581
4602
|
__decorateClass([
|
|
4582
4603
|
(0, import_class_transformer9.Type)(() => Number),
|
|
4583
|
-
(0,
|
|
4604
|
+
(0, import_class_validator60.IsNumber)({}, { message: "Expected salary from must be a number." })
|
|
4584
4605
|
], AdminUpdateJobInformationDto.prototype, "expectedSalaryFrom", 2);
|
|
4585
4606
|
__decorateClass([
|
|
4586
4607
|
(0, import_class_transformer9.Type)(() => Number),
|
|
4587
|
-
(0,
|
|
4608
|
+
(0, import_class_validator60.IsNumber)({}, { message: "Expected salary to must be a number." })
|
|
4588
4609
|
], AdminUpdateJobInformationDto.prototype, "expectedSalaryTo", 2);
|
|
4589
4610
|
__decorateClass([
|
|
4590
|
-
(0,
|
|
4611
|
+
(0, import_class_validator60.IsDateString)({ strict: true }, { message: "Start date must be in YYYY-MM-DD format." })
|
|
4591
4612
|
], AdminUpdateJobInformationDto.prototype, "tentativeStartDate", 2);
|
|
4592
4613
|
__decorateClass([
|
|
4593
|
-
(0,
|
|
4614
|
+
(0, import_class_validator60.IsDateString)({ strict: true }, { message: "End date must be in YYYY-MM-DD format." })
|
|
4594
4615
|
], AdminUpdateJobInformationDto.prototype, "tentativeEndDate", 2);
|
|
4595
4616
|
__decorateClass([
|
|
4596
|
-
(0,
|
|
4597
|
-
(0,
|
|
4617
|
+
(0, import_class_validator60.IsOptional)(),
|
|
4618
|
+
(0, import_class_validator60.IsString)({ message: "Additional comment must be a string." })
|
|
4598
4619
|
], AdminUpdateJobInformationDto.prototype, "additionalComment", 2);
|
|
4599
4620
|
__decorateClass([
|
|
4600
|
-
(0,
|
|
4621
|
+
(0, import_class_validator60.IsInt)({ message: "Country ID must be a valid integer." })
|
|
4601
4622
|
], AdminUpdateJobInformationDto.prototype, "countryId", 2);
|
|
4602
4623
|
__decorateClass([
|
|
4603
|
-
(0,
|
|
4624
|
+
(0, import_class_validator60.IsInt)({ message: "State ID must be a valid integer." })
|
|
4604
4625
|
], AdminUpdateJobInformationDto.prototype, "stateId", 2);
|
|
4605
4626
|
__decorateClass([
|
|
4606
|
-
(0,
|
|
4627
|
+
(0, import_class_validator60.IsInt)({ message: "City ID must be a valid integer." })
|
|
4607
4628
|
], AdminUpdateJobInformationDto.prototype, "cityId", 2);
|
|
4608
4629
|
__decorateClass([
|
|
4609
|
-
(0,
|
|
4630
|
+
(0, import_class_validator60.IsInt)({ message: "Client ID must be a valid integer." })
|
|
4610
4631
|
], AdminUpdateJobInformationDto.prototype, "clientId", 2);
|
|
4611
4632
|
|
|
4612
4633
|
// src/modules/lead/pattern/pattern.ts
|
|
@@ -4616,7 +4637,7 @@ var LEAD_PATTERN = {
|
|
|
4616
4637
|
};
|
|
4617
4638
|
|
|
4618
4639
|
// src/modules/lead/dto/create-lead.dto.ts
|
|
4619
|
-
var
|
|
4640
|
+
var import_class_validator61 = require("class-validator");
|
|
4620
4641
|
var CategoryEmumDto = /* @__PURE__ */ ((CategoryEmumDto2) => {
|
|
4621
4642
|
CategoryEmumDto2["BUSINESS"] = "BUSINESS";
|
|
4622
4643
|
CategoryEmumDto2["FREELANCER"] = "FREELANCER";
|
|
@@ -4625,23 +4646,23 @@ var CategoryEmumDto = /* @__PURE__ */ ((CategoryEmumDto2) => {
|
|
|
4625
4646
|
var CreateLeadDto = class {
|
|
4626
4647
|
};
|
|
4627
4648
|
__decorateClass([
|
|
4628
|
-
(0,
|
|
4649
|
+
(0, import_class_validator61.IsString)({ message: "Name must be a string" })
|
|
4629
4650
|
], CreateLeadDto.prototype, "name", 2);
|
|
4630
4651
|
__decorateClass([
|
|
4631
|
-
(0,
|
|
4652
|
+
(0, import_class_validator61.IsEmail)({}, { message: "Invalid email address" })
|
|
4632
4653
|
], CreateLeadDto.prototype, "email", 2);
|
|
4633
4654
|
__decorateClass([
|
|
4634
|
-
(0,
|
|
4655
|
+
(0, import_class_validator61.IsString)({ message: "Mobile code must be a string (e.g., +1)" })
|
|
4635
4656
|
], CreateLeadDto.prototype, "mobileCode", 2);
|
|
4636
4657
|
__decorateClass([
|
|
4637
|
-
(0,
|
|
4658
|
+
(0, import_class_validator61.IsString)({ message: "Mobile must be a string (e.g., 1243253534)" })
|
|
4638
4659
|
], CreateLeadDto.prototype, "mobile", 2);
|
|
4639
4660
|
__decorateClass([
|
|
4640
|
-
(0,
|
|
4641
|
-
(0,
|
|
4661
|
+
(0, import_class_validator61.IsOptional)(),
|
|
4662
|
+
(0, import_class_validator61.IsString)({ message: "Description must be a string" })
|
|
4642
4663
|
], CreateLeadDto.prototype, "description", 2);
|
|
4643
4664
|
__decorateClass([
|
|
4644
|
-
(0,
|
|
4665
|
+
(0, import_class_validator61.IsEnum)(CategoryEmumDto, {
|
|
4645
4666
|
message: `Type of category must be one of: ${Object.values(
|
|
4646
4667
|
CategoryEmumDto
|
|
4647
4668
|
).join(", ")}`
|
|
@@ -4661,46 +4682,46 @@ var ADMIN_ROLE_PATTERN = {
|
|
|
4661
4682
|
};
|
|
4662
4683
|
|
|
4663
4684
|
// src/modules/admin-role/dto/create-admin-role.dto.ts
|
|
4664
|
-
var
|
|
4685
|
+
var import_class_validator62 = require("class-validator");
|
|
4665
4686
|
var CreateAdminRoleDto = class {
|
|
4666
4687
|
};
|
|
4667
4688
|
__decorateClass([
|
|
4668
|
-
(0,
|
|
4669
|
-
(0,
|
|
4689
|
+
(0, import_class_validator62.IsNotEmpty)({ message: "Please enter admin role name." }),
|
|
4690
|
+
(0, import_class_validator62.IsString)({ message: "Role name must be a string." })
|
|
4670
4691
|
], CreateAdminRoleDto.prototype, "roleName", 2);
|
|
4671
4692
|
__decorateClass([
|
|
4672
|
-
(0,
|
|
4673
|
-
(0,
|
|
4693
|
+
(0, import_class_validator62.IsOptional)(),
|
|
4694
|
+
(0, import_class_validator62.IsString)({ message: "Role description must be a string." })
|
|
4674
4695
|
], CreateAdminRoleDto.prototype, "roleDescription", 2);
|
|
4675
4696
|
|
|
4676
4697
|
// src/modules/admin-role/dto/update-admin-role.dto.ts
|
|
4677
|
-
var
|
|
4698
|
+
var import_class_validator63 = require("class-validator");
|
|
4678
4699
|
var UpdateAdminRoleDto = class {
|
|
4679
4700
|
};
|
|
4680
4701
|
__decorateClass([
|
|
4681
|
-
(0,
|
|
4682
|
-
(0,
|
|
4702
|
+
(0, import_class_validator63.IsNotEmpty)({ message: "Please enter admin role name." }),
|
|
4703
|
+
(0, import_class_validator63.IsString)({ message: "Role name must be a string." })
|
|
4683
4704
|
], UpdateAdminRoleDto.prototype, "roleName", 2);
|
|
4684
4705
|
__decorateClass([
|
|
4685
|
-
(0,
|
|
4686
|
-
(0,
|
|
4706
|
+
(0, import_class_validator63.IsOptional)(),
|
|
4707
|
+
(0, import_class_validator63.IsString)({ message: "Role description must be a string." })
|
|
4687
4708
|
], UpdateAdminRoleDto.prototype, "roleDescription", 2);
|
|
4688
4709
|
__decorateClass([
|
|
4689
|
-
(0,
|
|
4690
|
-
(0,
|
|
4710
|
+
(0, import_class_validator63.IsOptional)(),
|
|
4711
|
+
(0, import_class_validator63.IsBoolean)({ message: "Is active must be a boolean value." })
|
|
4691
4712
|
], UpdateAdminRoleDto.prototype, "isActive", 2);
|
|
4692
4713
|
|
|
4693
4714
|
// src/modules/admin-role/dto/attach-permissions-to-role.dto.ts
|
|
4694
|
-
var
|
|
4715
|
+
var import_class_validator64 = require("class-validator");
|
|
4695
4716
|
var AttachPermissionsToRoleDto = class {
|
|
4696
4717
|
};
|
|
4697
4718
|
__decorateClass([
|
|
4698
|
-
(0,
|
|
4699
|
-
(0,
|
|
4719
|
+
(0, import_class_validator64.IsNotEmpty)({ message: "Please enter admin role ID." }),
|
|
4720
|
+
(0, import_class_validator64.IsString)({ message: "Role ID must be a string." })
|
|
4700
4721
|
], AttachPermissionsToRoleDto.prototype, "roleId", 2);
|
|
4701
4722
|
__decorateClass([
|
|
4702
|
-
(0,
|
|
4703
|
-
(0,
|
|
4723
|
+
(0, import_class_validator64.IsNotEmpty)({ message: "Please enter permission IDs." }),
|
|
4724
|
+
(0, import_class_validator64.IsString)({ message: "Permission IDs must be a comma-separated string." })
|
|
4704
4725
|
], AttachPermissionsToRoleDto.prototype, "permissionIds", 2);
|
|
4705
4726
|
|
|
4706
4727
|
// src/modules/admin-permission/pattern/pattern.ts
|
|
@@ -5173,6 +5194,9 @@ __decorateClass([
|
|
|
5173
5194
|
__decorateClass([
|
|
5174
5195
|
(0, import_typeorm50.ViewColumn)({ name: "freelancer_profile_picture" })
|
|
5175
5196
|
], JobFreelancerRecommendation.prototype, "freelancerProfilePicture", 2);
|
|
5197
|
+
__decorateClass([
|
|
5198
|
+
(0, import_typeorm50.ViewColumn)({ name: "freelancer_is_social" })
|
|
5199
|
+
], JobFreelancerRecommendation.prototype, "freelancerIsSocial", 2);
|
|
5176
5200
|
__decorateClass([
|
|
5177
5201
|
(0, import_typeorm50.ViewColumn)({ name: "freelancer_created_at" })
|
|
5178
5202
|
], JobFreelancerRecommendation.prototype, "freelancerCreatedAt", 2);
|
|
@@ -5401,6 +5425,7 @@ JobFreelancerRecommendation = __decorateClass([
|
|
|
5401
5425
|
RefreshDto,
|
|
5402
5426
|
RefreshToken,
|
|
5403
5427
|
ResetPasswordDto,
|
|
5428
|
+
ResetPasswordTokenValidationDto,
|
|
5404
5429
|
STATE_PATTERN,
|
|
5405
5430
|
SUBADMIN_PATTERN,
|
|
5406
5431
|
SYSTEM_PREFERENCES_PATTERN,
|