@experts_hub/shared 1.0.358 → 1.0.359
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +14 -1
- package/dist/index.d.ts +14 -1
- package/dist/index.js +699 -671
- package/dist/index.mjs +291 -265
- package/dist/modules/authentication/dto/index.d.ts +1 -0
- package/dist/modules/authentication/dto/login-via-otp.dto.d.ts +11 -0
- package/dist/modules/authentication/pattern/pattern.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -182,6 +182,8 @@ __export(index_exports, {
|
|
|
182
182
|
LEAD_PATTERN: () => LEAD_PATTERN,
|
|
183
183
|
Lead: () => Lead,
|
|
184
184
|
LoginDto: () => LoginDto,
|
|
185
|
+
LoginViaOtpDto: () => LoginViaOtpDto,
|
|
186
|
+
LoginViaOtpScopeEnum: () => LoginViaOtpScopeEnum,
|
|
185
187
|
LogoutDto: () => LogoutDto,
|
|
186
188
|
McqStatusEnum: () => McqStatusEnum,
|
|
187
189
|
ModeOfHire: () => ModeOfHire,
|
|
@@ -263,6 +265,7 @@ module.exports = __toCommonJS(index_exports);
|
|
|
263
265
|
var AUTHENTICATION_PATTERN = {
|
|
264
266
|
handleValidateToken: "handle.validate.token",
|
|
265
267
|
handleLogin: "handle.login",
|
|
268
|
+
handleLoginViaOtp: "handle.login.via.otp",
|
|
266
269
|
handleRefreshToken: "handle.refresh.token",
|
|
267
270
|
handleLogout: "handle.logout",
|
|
268
271
|
handleLogoutAll: "handle.logout.all",
|
|
@@ -297,24 +300,47 @@ __decorateClass([
|
|
|
297
300
|
})
|
|
298
301
|
], LoginDto.prototype, "scope", 2);
|
|
299
302
|
|
|
300
|
-
// src/modules/authentication/dto/
|
|
303
|
+
// src/modules/authentication/dto/login-via-otp.dto.ts
|
|
301
304
|
var import_class_validator2 = require("class-validator");
|
|
305
|
+
var LoginViaOtpScopeEnum = /* @__PURE__ */ ((LoginViaOtpScopeEnum2) => {
|
|
306
|
+
LoginViaOtpScopeEnum2["ADMIN"] = "ADMIN";
|
|
307
|
+
LoginViaOtpScopeEnum2["SUB_ADMIN"] = "SUB_ADMIN";
|
|
308
|
+
LoginViaOtpScopeEnum2["CLIENT"] = "CLIENT";
|
|
309
|
+
LoginViaOtpScopeEnum2["FREELANCER"] = "FREELANCER";
|
|
310
|
+
return LoginViaOtpScopeEnum2;
|
|
311
|
+
})(LoginViaOtpScopeEnum || {});
|
|
312
|
+
var LoginViaOtpDto = class {
|
|
313
|
+
};
|
|
314
|
+
__decorateClass([
|
|
315
|
+
(0, import_class_validator2.IsNotEmpty)({ message: "Please enter email." })
|
|
316
|
+
], LoginViaOtpDto.prototype, "email", 2);
|
|
317
|
+
__decorateClass([
|
|
318
|
+
(0, import_class_validator2.IsNotEmpty)({ message: "Please enter otp." })
|
|
319
|
+
], LoginViaOtpDto.prototype, "otp", 2);
|
|
320
|
+
__decorateClass([
|
|
321
|
+
(0, import_class_validator2.IsEnum)(LoginViaOtpScopeEnum, {
|
|
322
|
+
message: `Scope must be one of: ${Object.values(LoginViaOtpScopeEnum).join(", ")}`
|
|
323
|
+
})
|
|
324
|
+
], LoginViaOtpDto.prototype, "scope", 2);
|
|
325
|
+
|
|
326
|
+
// src/modules/authentication/dto/refresh.dto.ts
|
|
327
|
+
var import_class_validator3 = require("class-validator");
|
|
302
328
|
var RefreshDto = class {
|
|
303
329
|
};
|
|
304
330
|
__decorateClass([
|
|
305
|
-
(0,
|
|
331
|
+
(0, import_class_validator3.IsNotEmpty)({ message: "Please provide refresh token." })
|
|
306
332
|
], RefreshDto.prototype, "refreshToken", 2);
|
|
307
333
|
|
|
308
334
|
// src/modules/authentication/dto/logout.dto.ts
|
|
309
|
-
var
|
|
335
|
+
var import_class_validator4 = require("class-validator");
|
|
310
336
|
var LogoutDto = class {
|
|
311
337
|
};
|
|
312
338
|
__decorateClass([
|
|
313
|
-
(0,
|
|
339
|
+
(0, import_class_validator4.IsNotEmpty)({ message: "Please provide refresh token." })
|
|
314
340
|
], LogoutDto.prototype, "refreshToken", 2);
|
|
315
341
|
|
|
316
342
|
// src/modules/authentication/dto/forgot-password.dto.ts
|
|
317
|
-
var
|
|
343
|
+
var import_class_validator5 = require("class-validator");
|
|
318
344
|
var ScopeEnum2 = /* @__PURE__ */ ((ScopeEnum5) => {
|
|
319
345
|
ScopeEnum5["ADMIN"] = "ADMIN";
|
|
320
346
|
ScopeEnum5["CLIENT"] = "CLIENT";
|
|
@@ -324,17 +350,17 @@ var ScopeEnum2 = /* @__PURE__ */ ((ScopeEnum5) => {
|
|
|
324
350
|
var ForgotPasswordDto = class {
|
|
325
351
|
};
|
|
326
352
|
__decorateClass([
|
|
327
|
-
(0,
|
|
328
|
-
(0,
|
|
353
|
+
(0, import_class_validator5.IsNotEmpty)({ message: "Please enter email." }),
|
|
354
|
+
(0, import_class_validator5.IsEmail)({}, { message: "Please enter a valid email." })
|
|
329
355
|
], ForgotPasswordDto.prototype, "email", 2);
|
|
330
356
|
__decorateClass([
|
|
331
|
-
(0,
|
|
357
|
+
(0, import_class_validator5.IsEnum)(ScopeEnum2, {
|
|
332
358
|
message: `Scope must be one of: ${Object.values(ScopeEnum2).join(", ")}`
|
|
333
359
|
})
|
|
334
360
|
], ForgotPasswordDto.prototype, "scope", 2);
|
|
335
361
|
|
|
336
362
|
// src/modules/authentication/dto/reset-password.dto.ts
|
|
337
|
-
var
|
|
363
|
+
var import_class_validator6 = require("class-validator");
|
|
338
364
|
var ScopeEnum3 = /* @__PURE__ */ ((ScopeEnum5) => {
|
|
339
365
|
ScopeEnum5["ADMIN"] = "ADMIN";
|
|
340
366
|
ScopeEnum5["CLIENT"] = "CLIENT";
|
|
@@ -344,40 +370,40 @@ var ScopeEnum3 = /* @__PURE__ */ ((ScopeEnum5) => {
|
|
|
344
370
|
var ResetPasswordDto = class {
|
|
345
371
|
};
|
|
346
372
|
__decorateClass([
|
|
347
|
-
(0,
|
|
373
|
+
(0, import_class_validator6.IsNotEmpty)({ message: "Please enter token." })
|
|
348
374
|
], ResetPasswordDto.prototype, "token", 2);
|
|
349
375
|
__decorateClass([
|
|
350
|
-
(0,
|
|
351
|
-
(0,
|
|
352
|
-
(0,
|
|
353
|
-
(0,
|
|
376
|
+
(0, import_class_validator6.IsNotEmpty)({ message: "Please enter password." }),
|
|
377
|
+
(0, import_class_validator6.MinLength)(6),
|
|
378
|
+
(0, import_class_validator6.MaxLength)(32),
|
|
379
|
+
(0, import_class_validator6.Matches)(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
354
380
|
message: "Password must include letters, numbers and symbols."
|
|
355
381
|
})
|
|
356
382
|
], ResetPasswordDto.prototype, "password", 2);
|
|
357
383
|
__decorateClass([
|
|
358
|
-
(0,
|
|
384
|
+
(0, import_class_validator6.IsEnum)(ScopeEnum3, {
|
|
359
385
|
message: `Scope must be one of: ${Object.values(ScopeEnum3).join(", ")}`
|
|
360
386
|
})
|
|
361
387
|
], ResetPasswordDto.prototype, "scope", 2);
|
|
362
388
|
|
|
363
389
|
// src/modules/authentication/dto/set-password.dto.ts
|
|
364
|
-
var
|
|
390
|
+
var import_class_validator7 = require("class-validator");
|
|
365
391
|
var SetPasswordDto = class {
|
|
366
392
|
};
|
|
367
393
|
__decorateClass([
|
|
368
|
-
(0,
|
|
394
|
+
(0, import_class_validator7.IsNotEmpty)({ message: "Please enter token." })
|
|
369
395
|
], SetPasswordDto.prototype, "token", 2);
|
|
370
396
|
__decorateClass([
|
|
371
|
-
(0,
|
|
372
|
-
(0,
|
|
373
|
-
(0,
|
|
374
|
-
(0,
|
|
397
|
+
(0, import_class_validator7.IsNotEmpty)({ message: "Please enter password." }),
|
|
398
|
+
(0, import_class_validator7.MinLength)(6),
|
|
399
|
+
(0, import_class_validator7.MaxLength)(32),
|
|
400
|
+
(0, import_class_validator7.Matches)(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
375
401
|
message: "Password must include letters, numbers and symbols."
|
|
376
402
|
})
|
|
377
403
|
], SetPasswordDto.prototype, "password", 2);
|
|
378
404
|
|
|
379
405
|
// src/modules/authentication/dto/reset-password-token-validation.dto.ts
|
|
380
|
-
var
|
|
406
|
+
var import_class_validator8 = require("class-validator");
|
|
381
407
|
var ScopeEnum4 = /* @__PURE__ */ ((ScopeEnum5) => {
|
|
382
408
|
ScopeEnum5["ADMIN"] = "ADMIN";
|
|
383
409
|
ScopeEnum5["CLIENT"] = "CLIENT";
|
|
@@ -387,10 +413,10 @@ var ScopeEnum4 = /* @__PURE__ */ ((ScopeEnum5) => {
|
|
|
387
413
|
var ResetPasswordTokenValidationDto = class {
|
|
388
414
|
};
|
|
389
415
|
__decorateClass([
|
|
390
|
-
(0,
|
|
416
|
+
(0, import_class_validator8.IsNotEmpty)({ message: "Please enter token." })
|
|
391
417
|
], ResetPasswordTokenValidationDto.prototype, "token", 2);
|
|
392
418
|
__decorateClass([
|
|
393
|
-
(0,
|
|
419
|
+
(0, import_class_validator8.IsEnum)(ScopeEnum4, {
|
|
394
420
|
message: `Scope must be one of: ${Object.values(ScopeEnum4).join(", ")}`
|
|
395
421
|
})
|
|
396
422
|
], ResetPasswordTokenValidationDto.prototype, "scope", 2);
|
|
@@ -404,7 +430,7 @@ var OTP_PATTERN = {
|
|
|
404
430
|
};
|
|
405
431
|
|
|
406
432
|
// src/modules/otp/dto/send-guest-otp.dto.ts
|
|
407
|
-
var
|
|
433
|
+
var import_class_validator9 = require("class-validator");
|
|
408
434
|
var SendGuestOtpPurposeEnum = /* @__PURE__ */ ((SendGuestOtpPurposeEnum2) => {
|
|
409
435
|
SendGuestOtpPurposeEnum2["ACCOUNT_VERIFICATION"] = "ACCOUNT_VERIFICATION";
|
|
410
436
|
return SendGuestOtpPurposeEnum2;
|
|
@@ -417,28 +443,28 @@ var SendGuestOtpScopeEnum = /* @__PURE__ */ ((SendGuestOtpScopeEnum2) => {
|
|
|
417
443
|
var SendGuestOtpDto = class {
|
|
418
444
|
};
|
|
419
445
|
__decorateClass([
|
|
420
|
-
(0,
|
|
421
|
-
(0,
|
|
446
|
+
(0, import_class_validator9.IsNotEmpty)({ message: "Please enter full name." }),
|
|
447
|
+
(0, import_class_validator9.IsString)({ message: "Please enter valid full name." })
|
|
422
448
|
], SendGuestOtpDto.prototype, "fullName", 2);
|
|
423
449
|
__decorateClass([
|
|
424
|
-
(0,
|
|
425
|
-
(0,
|
|
450
|
+
(0, import_class_validator9.IsNotEmpty)({ message: "Please enter target." }),
|
|
451
|
+
(0, import_class_validator9.IsString)({ message: "Please enter valid target." })
|
|
426
452
|
], SendGuestOtpDto.prototype, "target", 2);
|
|
427
453
|
__decorateClass([
|
|
428
|
-
(0,
|
|
429
|
-
(0,
|
|
454
|
+
(0, import_class_validator9.IsOptional)(),
|
|
455
|
+
(0, import_class_validator9.IsString)({ message: "Please enter valid fallback target." })
|
|
430
456
|
], SendGuestOtpDto.prototype, "fallbackTarget", 2);
|
|
431
457
|
__decorateClass([
|
|
432
|
-
(0,
|
|
433
|
-
(0,
|
|
458
|
+
(0, import_class_validator9.IsNotEmpty)({ message: "Please enter OTP purpose." }),
|
|
459
|
+
(0, import_class_validator9.IsEnum)(SendGuestOtpPurposeEnum, { message: "Purpose must be a valid OTP purpose" })
|
|
434
460
|
], SendGuestOtpDto.prototype, "purpose", 2);
|
|
435
461
|
__decorateClass([
|
|
436
|
-
(0,
|
|
437
|
-
(0,
|
|
462
|
+
(0, import_class_validator9.IsNotEmpty)({ message: "Please enter scope." }),
|
|
463
|
+
(0, import_class_validator9.IsEnum)(SendGuestOtpScopeEnum, { message: "scope must be a valid" })
|
|
438
464
|
], SendGuestOtpDto.prototype, "scope", 2);
|
|
439
465
|
|
|
440
466
|
// src/modules/otp/dto/verify-guest-otp.dto.ts
|
|
441
|
-
var
|
|
467
|
+
var import_class_validator10 = require("class-validator");
|
|
442
468
|
var VerifyGuestOtpPurposeEnum = /* @__PURE__ */ ((VerifyGuestOtpPurposeEnum2) => {
|
|
443
469
|
VerifyGuestOtpPurposeEnum2["ACCOUNT_VERIFICATION"] = "ACCOUNT_VERIFICATION";
|
|
444
470
|
return VerifyGuestOtpPurposeEnum2;
|
|
@@ -446,17 +472,17 @@ var VerifyGuestOtpPurposeEnum = /* @__PURE__ */ ((VerifyGuestOtpPurposeEnum2) =>
|
|
|
446
472
|
var VerifyGuestOtpDto = class {
|
|
447
473
|
};
|
|
448
474
|
__decorateClass([
|
|
449
|
-
(0,
|
|
450
|
-
(0,
|
|
475
|
+
(0, import_class_validator10.IsNotEmpty)({ message: "Please enter target." }),
|
|
476
|
+
(0, import_class_validator10.IsString)({ message: "Please enter valid target." })
|
|
451
477
|
], VerifyGuestOtpDto.prototype, "target", 2);
|
|
452
478
|
__decorateClass([
|
|
453
|
-
(0,
|
|
454
|
-
(0,
|
|
455
|
-
(0,
|
|
479
|
+
(0, import_class_validator10.IsNotEmpty)({ message: "Please enter otp." }),
|
|
480
|
+
(0, import_class_validator10.IsString)({ message: "Please enter valid otp." }),
|
|
481
|
+
(0, import_class_validator10.Length)(4, 6, { message: "OTP must be between 4 and 6 characters" })
|
|
456
482
|
], VerifyGuestOtpDto.prototype, "otp", 2);
|
|
457
483
|
__decorateClass([
|
|
458
|
-
(0,
|
|
459
|
-
(0,
|
|
484
|
+
(0, import_class_validator10.IsNotEmpty)({ message: "Please enter OTP purpose." }),
|
|
485
|
+
(0, import_class_validator10.IsEnum)(VerifyGuestOtpPurposeEnum, {
|
|
460
486
|
message: "Purpose must be a valid OTP purpose"
|
|
461
487
|
})
|
|
462
488
|
], VerifyGuestOtpDto.prototype, "purpose", 2);
|
|
@@ -474,13 +500,13 @@ var ONBOARDING_PATTERN = {
|
|
|
474
500
|
};
|
|
475
501
|
|
|
476
502
|
// src/modules/onboarding/dto/freelancer-create-account.dto.ts
|
|
477
|
-
var
|
|
503
|
+
var import_class_validator14 = require("class-validator");
|
|
478
504
|
|
|
479
505
|
// src/decorators/match.decorator.ts
|
|
480
|
-
var
|
|
506
|
+
var import_class_validator11 = require("class-validator");
|
|
481
507
|
function Match(property, validationOptions) {
|
|
482
508
|
return function(object, propertyName) {
|
|
483
|
-
(0,
|
|
509
|
+
(0, import_class_validator11.registerDecorator)({
|
|
484
510
|
name: "Match",
|
|
485
511
|
target: object.constructor,
|
|
486
512
|
propertyName,
|
|
@@ -516,11 +542,11 @@ var IfscOrOtherFieldsConstraint = class {
|
|
|
516
542
|
}
|
|
517
543
|
};
|
|
518
544
|
IfscOrOtherFieldsConstraint = __decorateClass([
|
|
519
|
-
(0,
|
|
545
|
+
(0, import_class_validator11.ValidatorConstraint)({ async: false })
|
|
520
546
|
], IfscOrOtherFieldsConstraint);
|
|
521
547
|
|
|
522
548
|
// src/decorators/is-valid-mobile-number.decorator.ts
|
|
523
|
-
var
|
|
549
|
+
var import_class_validator12 = require("class-validator");
|
|
524
550
|
var import_libphonenumber_js = require("libphonenumber-js");
|
|
525
551
|
var IsValidMobileNumberConstraint = class {
|
|
526
552
|
validate(mobile, args) {
|
|
@@ -539,11 +565,11 @@ var IsValidMobileNumberConstraint = class {
|
|
|
539
565
|
}
|
|
540
566
|
};
|
|
541
567
|
IsValidMobileNumberConstraint = __decorateClass([
|
|
542
|
-
(0,
|
|
568
|
+
(0, import_class_validator12.ValidatorConstraint)({ name: "isValidMobileNumber", async: false })
|
|
543
569
|
], IsValidMobileNumberConstraint);
|
|
544
570
|
function IsValidMobileNumber(validationOptions) {
|
|
545
571
|
return function(object, propertyName) {
|
|
546
|
-
(0,
|
|
572
|
+
(0, import_class_validator12.registerDecorator)({
|
|
547
573
|
name: "isValidMobileNumber",
|
|
548
574
|
target: object.constructor,
|
|
549
575
|
propertyName,
|
|
@@ -554,7 +580,7 @@ function IsValidMobileNumber(validationOptions) {
|
|
|
554
580
|
}
|
|
555
581
|
|
|
556
582
|
// src/decorators/is-business-email.decorator.ts
|
|
557
|
-
var
|
|
583
|
+
var import_class_validator13 = require("class-validator");
|
|
558
584
|
var IsBusinessEmailConstraint = class {
|
|
559
585
|
constructor() {
|
|
560
586
|
this.blockedDomains = [
|
|
@@ -622,11 +648,11 @@ var IsBusinessEmailConstraint = class {
|
|
|
622
648
|
}
|
|
623
649
|
};
|
|
624
650
|
IsBusinessEmailConstraint = __decorateClass([
|
|
625
|
-
(0,
|
|
651
|
+
(0, import_class_validator13.ValidatorConstraint)({ async: false })
|
|
626
652
|
], IsBusinessEmailConstraint);
|
|
627
653
|
function IsBusinessEmail(validationOptions) {
|
|
628
654
|
return function(object, propertyName) {
|
|
629
|
-
(0,
|
|
655
|
+
(0, import_class_validator13.registerDecorator)({
|
|
630
656
|
target: object.constructor,
|
|
631
657
|
propertyName,
|
|
632
658
|
options: validationOptions,
|
|
@@ -640,115 +666,115 @@ function IsBusinessEmail(validationOptions) {
|
|
|
640
666
|
var FreelancerCreateAccountDto = class {
|
|
641
667
|
};
|
|
642
668
|
__decorateClass([
|
|
643
|
-
(0,
|
|
644
|
-
(0,
|
|
669
|
+
(0, import_class_validator14.IsNotEmpty)({ message: "Please enter full name." }),
|
|
670
|
+
(0, import_class_validator14.IsString)({ message: "Please enter valid full name." })
|
|
645
671
|
], FreelancerCreateAccountDto.prototype, "fullName", 2);
|
|
646
672
|
__decorateClass([
|
|
647
|
-
(0,
|
|
648
|
-
(0,
|
|
673
|
+
(0, import_class_validator14.IsNotEmpty)({ message: "Please enter email." }),
|
|
674
|
+
(0, import_class_validator14.IsEmail)()
|
|
649
675
|
], FreelancerCreateAccountDto.prototype, "email", 2);
|
|
650
676
|
__decorateClass([
|
|
651
|
-
(0,
|
|
652
|
-
(0,
|
|
677
|
+
(0, import_class_validator14.IsNotEmpty)({ message: "Please enter mobile code." }),
|
|
678
|
+
(0, import_class_validator14.Matches)(/^\+\d{1,4}$/, {
|
|
653
679
|
message: "Please enter a valid country mobile code (e.g., +91, +1, +44)."
|
|
654
680
|
})
|
|
655
681
|
], FreelancerCreateAccountDto.prototype, "mobileCode", 2);
|
|
656
682
|
__decorateClass([
|
|
657
|
-
(0,
|
|
683
|
+
(0, import_class_validator14.IsNotEmpty)({ message: "Please enter mobile number." }),
|
|
658
684
|
IsValidMobileNumber({ message: "Mobile number is not valid for the selected country code." })
|
|
659
685
|
], FreelancerCreateAccountDto.prototype, "mobile", 2);
|
|
660
686
|
__decorateClass([
|
|
661
|
-
(0,
|
|
687
|
+
(0, import_class_validator14.IsOptional)()
|
|
662
688
|
], FreelancerCreateAccountDto.prototype, "onBoardedBy", 2);
|
|
663
689
|
|
|
664
690
|
// src/modules/onboarding/dto/freelancer-upload-resume.dto.ts
|
|
665
|
-
var
|
|
691
|
+
var import_class_validator15 = require("class-validator");
|
|
666
692
|
var FreelancerUploadResumeDto = class {
|
|
667
693
|
};
|
|
668
694
|
__decorateClass([
|
|
669
|
-
(0,
|
|
670
|
-
(0,
|
|
695
|
+
(0, import_class_validator15.IsNotEmpty)({ message: "Please enter uuid." }),
|
|
696
|
+
(0, import_class_validator15.IsUUID)()
|
|
671
697
|
], FreelancerUploadResumeDto.prototype, "uuid", 2);
|
|
672
698
|
|
|
673
699
|
// src/modules/onboarding/dto/freelancer-parse-resume.dto.ts
|
|
674
|
-
var
|
|
700
|
+
var import_class_validator16 = require("class-validator");
|
|
675
701
|
var FreelancerParseResumeDto = class {
|
|
676
702
|
};
|
|
677
703
|
__decorateClass([
|
|
678
|
-
(0,
|
|
679
|
-
(0,
|
|
704
|
+
(0, import_class_validator16.IsNotEmpty)({ message: "Please enter uuid." }),
|
|
705
|
+
(0, import_class_validator16.IsUUID)()
|
|
680
706
|
], FreelancerParseResumeDto.prototype, "uuid", 2);
|
|
681
707
|
|
|
682
708
|
// src/modules/onboarding/dto/freelancer-initiate-mcq-assessment.dto.ts
|
|
683
|
-
var
|
|
709
|
+
var import_class_validator17 = require("class-validator");
|
|
684
710
|
var FreelancerInitiateMcqAssessmentDto = class {
|
|
685
711
|
};
|
|
686
712
|
__decorateClass([
|
|
687
|
-
(0,
|
|
688
|
-
(0,
|
|
713
|
+
(0, import_class_validator17.IsNotEmpty)({ message: "Please enter uuid." }),
|
|
714
|
+
(0, import_class_validator17.IsUUID)()
|
|
689
715
|
], FreelancerInitiateMcqAssessmentDto.prototype, "uuid", 2);
|
|
690
716
|
|
|
691
717
|
// src/modules/onboarding/dto/freelancer-skip-ai-assessment.dto.ts
|
|
692
|
-
var
|
|
718
|
+
var import_class_validator18 = require("class-validator");
|
|
693
719
|
var FreelancerSkipAiAssessmentDto = class {
|
|
694
720
|
};
|
|
695
721
|
__decorateClass([
|
|
696
|
-
(0,
|
|
697
|
-
(0,
|
|
722
|
+
(0, import_class_validator18.IsNotEmpty)({ message: "Please enter uuid." }),
|
|
723
|
+
(0, import_class_validator18.IsUUID)()
|
|
698
724
|
], FreelancerSkipAiAssessmentDto.prototype, "uuid", 2);
|
|
699
725
|
|
|
700
726
|
// src/modules/onboarding/dto/freelancer-initiate-ai-assessment.dto.ts
|
|
701
|
-
var
|
|
727
|
+
var import_class_validator19 = require("class-validator");
|
|
702
728
|
var FreelancerInitiateAiAssessmentDto = class {
|
|
703
729
|
};
|
|
704
730
|
__decorateClass([
|
|
705
|
-
(0,
|
|
706
|
-
(0,
|
|
731
|
+
(0, import_class_validator19.IsNotEmpty)({ message: "Please enter uuid." }),
|
|
732
|
+
(0, import_class_validator19.IsUUID)()
|
|
707
733
|
], FreelancerInitiateAiAssessmentDto.prototype, "uuid", 2);
|
|
708
734
|
|
|
709
735
|
// src/modules/onboarding/dto/freelancer-capture-ai-assessment-status.dto.ts
|
|
710
|
-
var
|
|
736
|
+
var import_class_validator20 = require("class-validator");
|
|
711
737
|
var FreelancerCaptureAiAssessmentStatusDto = class {
|
|
712
738
|
};
|
|
713
739
|
__decorateClass([
|
|
714
|
-
(0,
|
|
715
|
-
(0,
|
|
740
|
+
(0, import_class_validator20.IsNotEmpty)({ message: "Please enter uuid." }),
|
|
741
|
+
(0, import_class_validator20.IsUUID)()
|
|
716
742
|
], FreelancerCaptureAiAssessmentStatusDto.prototype, "uuid", 2);
|
|
717
743
|
__decorateClass([
|
|
718
|
-
(0,
|
|
744
|
+
(0, import_class_validator20.IsNotEmpty)({ message: "Please enter assessment id." })
|
|
719
745
|
], FreelancerCaptureAiAssessmentStatusDto.prototype, "assessmentId", 2);
|
|
720
746
|
__decorateClass([
|
|
721
|
-
(0,
|
|
747
|
+
(0, import_class_validator20.IsNotEmpty)({ message: "Please enter assessment status." })
|
|
722
748
|
], FreelancerCaptureAiAssessmentStatusDto.prototype, "assessmentStatus", 2);
|
|
723
749
|
__decorateClass([
|
|
724
|
-
(0,
|
|
750
|
+
(0, import_class_validator20.IsOptional)()
|
|
725
751
|
], FreelancerCaptureAiAssessmentStatusDto.prototype, "iframeEventData", 2);
|
|
726
752
|
|
|
727
753
|
// src/modules/onboarding/dto/freelancer-development-preference.dto.ts
|
|
728
|
-
var
|
|
754
|
+
var import_class_validator21 = require("class-validator");
|
|
729
755
|
var FreelancerDevelopmentPreferenceDto = class {
|
|
730
756
|
};
|
|
731
757
|
__decorateClass([
|
|
732
|
-
(0,
|
|
733
|
-
(0,
|
|
758
|
+
(0, import_class_validator21.IsNotEmpty)({ message: "Please enter uuid." }),
|
|
759
|
+
(0, import_class_validator21.IsUUID)()
|
|
734
760
|
], FreelancerDevelopmentPreferenceDto.prototype, "uuid", 2);
|
|
735
761
|
__decorateClass([
|
|
736
|
-
(0,
|
|
737
|
-
(0,
|
|
762
|
+
(0, import_class_validator21.IsNotEmpty)({ message: "Please select development flag." }),
|
|
763
|
+
(0, import_class_validator21.IsBoolean)()
|
|
738
764
|
], FreelancerDevelopmentPreferenceDto.prototype, "developer", 2);
|
|
739
765
|
|
|
740
766
|
// src/modules/onboarding/dto/freelancer-profile-question.dto.ts
|
|
741
|
-
var
|
|
767
|
+
var import_class_validator22 = require("class-validator");
|
|
742
768
|
var FreelancerProfileQuestionDto = class {
|
|
743
769
|
};
|
|
744
770
|
__decorateClass([
|
|
745
|
-
(0,
|
|
746
|
-
(0,
|
|
771
|
+
(0, import_class_validator22.IsNotEmpty)({ message: "Please enter uuid." }),
|
|
772
|
+
(0, import_class_validator22.IsUUID)()
|
|
747
773
|
], FreelancerProfileQuestionDto.prototype, "uuid", 2);
|
|
748
774
|
__decorateClass([
|
|
749
|
-
(0,
|
|
750
|
-
(0,
|
|
751
|
-
(0,
|
|
775
|
+
(0, import_class_validator22.IsNotEmpty)({ message: "Please enter question slug." }),
|
|
776
|
+
(0, import_class_validator22.IsString)(),
|
|
777
|
+
(0, import_class_validator22.IsIn)([
|
|
752
778
|
"natureOfWork",
|
|
753
779
|
"expectedHourlyCompensation",
|
|
754
780
|
"modeOfWork",
|
|
@@ -757,24 +783,24 @@ __decorateClass([
|
|
|
757
783
|
])
|
|
758
784
|
], FreelancerProfileQuestionDto.prototype, "question_slug", 2);
|
|
759
785
|
__decorateClass([
|
|
760
|
-
(0,
|
|
786
|
+
(0, import_class_validator22.IsNotEmpty)({ message: "Please enter answer." })
|
|
761
787
|
], FreelancerProfileQuestionDto.prototype, "answer", 2);
|
|
762
788
|
__decorateClass([
|
|
763
|
-
(0,
|
|
789
|
+
(0, import_class_validator22.IsOptional)()
|
|
764
790
|
], FreelancerProfileQuestionDto.prototype, "currency", 2);
|
|
765
791
|
|
|
766
792
|
// src/modules/onboarding/dto/freelancer-work-showcase.dto.ts
|
|
767
|
-
var
|
|
793
|
+
var import_class_validator23 = require("class-validator");
|
|
768
794
|
var FreelancerWorkShowcaseDto = class {
|
|
769
795
|
};
|
|
770
796
|
__decorateClass([
|
|
771
|
-
(0,
|
|
772
|
-
(0,
|
|
797
|
+
(0, import_class_validator23.IsNotEmpty)({ message: "Please enter uuid." }),
|
|
798
|
+
(0, import_class_validator23.IsUUID)()
|
|
773
799
|
], FreelancerWorkShowcaseDto.prototype, "uuid", 2);
|
|
774
800
|
__decorateClass([
|
|
775
|
-
(0,
|
|
776
|
-
(0,
|
|
777
|
-
(0,
|
|
801
|
+
(0, import_class_validator23.IsNotEmpty)({ message: "Please enter likedin profile url." }),
|
|
802
|
+
(0, import_class_validator23.IsString)(),
|
|
803
|
+
(0, import_class_validator23.IsUrl)(
|
|
778
804
|
{ require_protocol: false },
|
|
779
805
|
{
|
|
780
806
|
message: "linkedinProfileLink must be a valid URL with protocol (e.g. https://)"
|
|
@@ -782,8 +808,8 @@ __decorateClass([
|
|
|
782
808
|
)
|
|
783
809
|
], FreelancerWorkShowcaseDto.prototype, "linkedinProfileLink", 2);
|
|
784
810
|
__decorateClass([
|
|
785
|
-
(0,
|
|
786
|
-
(0,
|
|
811
|
+
(0, import_class_validator23.IsOptional)(),
|
|
812
|
+
(0, import_class_validator23.IsUrl)(
|
|
787
813
|
{ require_protocol: false },
|
|
788
814
|
{
|
|
789
815
|
message: "kaggleProfileLink must be a valid URL with protocol (e.g. https://)"
|
|
@@ -791,8 +817,8 @@ __decorateClass([
|
|
|
791
817
|
)
|
|
792
818
|
], FreelancerWorkShowcaseDto.prototype, "kaggleProfileLink", 2);
|
|
793
819
|
__decorateClass([
|
|
794
|
-
(0,
|
|
795
|
-
(0,
|
|
820
|
+
(0, import_class_validator23.IsOptional)(),
|
|
821
|
+
(0, import_class_validator23.IsUrl)(
|
|
796
822
|
{ require_protocol: false },
|
|
797
823
|
{
|
|
798
824
|
message: "githubProfileLink must be a valid URL with protocol (e.g. https://)"
|
|
@@ -800,8 +826,8 @@ __decorateClass([
|
|
|
800
826
|
)
|
|
801
827
|
], FreelancerWorkShowcaseDto.prototype, "githubProfileLink", 2);
|
|
802
828
|
__decorateClass([
|
|
803
|
-
(0,
|
|
804
|
-
(0,
|
|
829
|
+
(0, import_class_validator23.IsOptional)(),
|
|
830
|
+
(0, import_class_validator23.IsUrl)(
|
|
805
831
|
{ require_protocol: false },
|
|
806
832
|
{
|
|
807
833
|
message: "stackOverflowProfileLink must be a valid URL with protocol (e.g. https://)"
|
|
@@ -809,8 +835,8 @@ __decorateClass([
|
|
|
809
835
|
)
|
|
810
836
|
], FreelancerWorkShowcaseDto.prototype, "stackOverflowProfileLink", 2);
|
|
811
837
|
__decorateClass([
|
|
812
|
-
(0,
|
|
813
|
-
(0,
|
|
838
|
+
(0, import_class_validator23.IsOptional)(),
|
|
839
|
+
(0, import_class_validator23.IsUrl)(
|
|
814
840
|
{ require_protocol: false },
|
|
815
841
|
{
|
|
816
842
|
message: "portfolioLink must be a valid URL with protocol (e.g. https://)"
|
|
@@ -819,17 +845,17 @@ __decorateClass([
|
|
|
819
845
|
], FreelancerWorkShowcaseDto.prototype, "portfolioLink", 2);
|
|
820
846
|
|
|
821
847
|
// src/modules/onboarding/dto/client-profile-question.dto.ts
|
|
822
|
-
var
|
|
848
|
+
var import_class_validator24 = require("class-validator");
|
|
823
849
|
var ClientProfileQuestionDto = class {
|
|
824
850
|
};
|
|
825
851
|
__decorateClass([
|
|
826
|
-
(0,
|
|
827
|
-
(0,
|
|
852
|
+
(0, import_class_validator24.IsNotEmpty)({ message: "Please enter uuid." }),
|
|
853
|
+
(0, import_class_validator24.IsUUID)()
|
|
828
854
|
], ClientProfileQuestionDto.prototype, "uuid", 2);
|
|
829
855
|
__decorateClass([
|
|
830
|
-
(0,
|
|
831
|
-
(0,
|
|
832
|
-
(0,
|
|
856
|
+
(0, import_class_validator24.IsNotEmpty)({ message: "Please enter question slug." }),
|
|
857
|
+
(0, import_class_validator24.IsString)(),
|
|
858
|
+
(0, import_class_validator24.IsIn)([
|
|
833
859
|
"skills",
|
|
834
860
|
"requiredFreelancer",
|
|
835
861
|
"kindOfHiring",
|
|
@@ -838,37 +864,37 @@ __decorateClass([
|
|
|
838
864
|
])
|
|
839
865
|
], ClientProfileQuestionDto.prototype, "question_slug", 2);
|
|
840
866
|
__decorateClass([
|
|
841
|
-
(0,
|
|
867
|
+
(0, import_class_validator24.IsNotEmpty)({ message: "Please enter answer." })
|
|
842
868
|
], ClientProfileQuestionDto.prototype, "answer", 2);
|
|
843
869
|
__decorateClass([
|
|
844
|
-
(0,
|
|
845
|
-
(0,
|
|
846
|
-
(0,
|
|
870
|
+
(0, import_class_validator24.ValidateIf)((o) => o.questionSlug === "foundUsOn" && o.answer === "OTHER"),
|
|
871
|
+
(0, import_class_validator24.IsNotEmpty)({ message: "Please enter foundUsOnDetail if answer is OTHER." }),
|
|
872
|
+
(0, import_class_validator24.IsString)()
|
|
847
873
|
], ClientProfileQuestionDto.prototype, "foundUsOnDetail", 2);
|
|
848
874
|
|
|
849
875
|
// src/modules/onboarding/dto/client-create-account.dto.ts
|
|
850
|
-
var
|
|
876
|
+
var import_class_validator25 = require("class-validator");
|
|
851
877
|
var ClientCreateAccountDto = class {
|
|
852
878
|
};
|
|
853
879
|
__decorateClass([
|
|
854
|
-
(0,
|
|
855
|
-
(0,
|
|
880
|
+
(0, import_class_validator25.IsNotEmpty)({ message: "Please enter first name." }),
|
|
881
|
+
(0, import_class_validator25.IsString)({ message: "Please enter valid first name." })
|
|
856
882
|
], ClientCreateAccountDto.prototype, "firstName", 2);
|
|
857
883
|
__decorateClass([
|
|
858
|
-
(0,
|
|
859
|
-
(0,
|
|
884
|
+
(0, import_class_validator25.IsNotEmpty)({ message: "Please enter last name." }),
|
|
885
|
+
(0, import_class_validator25.IsString)({ message: "Please enter valid last name." })
|
|
860
886
|
], ClientCreateAccountDto.prototype, "lastName", 2);
|
|
861
887
|
__decorateClass([
|
|
862
|
-
(0,
|
|
863
|
-
(0,
|
|
888
|
+
(0, import_class_validator25.IsNotEmpty)({ message: "Please enter email." }),
|
|
889
|
+
(0, import_class_validator25.IsEmail)(),
|
|
864
890
|
IsBusinessEmail()
|
|
865
891
|
], ClientCreateAccountDto.prototype, "email", 2);
|
|
866
892
|
__decorateClass([
|
|
867
|
-
(0,
|
|
868
|
-
(0,
|
|
893
|
+
(0, import_class_validator25.IsNotEmpty)({ message: "Please enter company name." }),
|
|
894
|
+
(0, import_class_validator25.IsString)({ message: "Please enter valid company name." })
|
|
869
895
|
], ClientCreateAccountDto.prototype, "companyName", 2);
|
|
870
896
|
__decorateClass([
|
|
871
|
-
(0,
|
|
897
|
+
(0, import_class_validator25.IsOptional)()
|
|
872
898
|
], ClientCreateAccountDto.prototype, "onBoardedBy", 2);
|
|
873
899
|
|
|
874
900
|
// src/modules/resume-parser/pattern/pattern.ts
|
|
@@ -889,76 +915,76 @@ var SUBADMIN_PATTERN = {
|
|
|
889
915
|
};
|
|
890
916
|
|
|
891
917
|
// src/modules/user/subadmin/dto/create-subadmin.dto.ts
|
|
892
|
-
var
|
|
918
|
+
var import_class_validator26 = require("class-validator");
|
|
893
919
|
var CreateSubAdminDto = class {
|
|
894
920
|
};
|
|
895
921
|
__decorateClass([
|
|
896
|
-
(0,
|
|
922
|
+
(0, import_class_validator26.IsNotEmpty)({ message: "Please enter username." })
|
|
897
923
|
], CreateSubAdminDto.prototype, "userName", 2);
|
|
898
924
|
__decorateClass([
|
|
899
|
-
(0,
|
|
925
|
+
(0, import_class_validator26.IsNotEmpty)({ message: "Please enter first name." })
|
|
900
926
|
], CreateSubAdminDto.prototype, "firstName", 2);
|
|
901
927
|
__decorateClass([
|
|
902
|
-
(0,
|
|
928
|
+
(0, import_class_validator26.IsNotEmpty)({ message: "Please enter last name." })
|
|
903
929
|
], CreateSubAdminDto.prototype, "lastName", 2);
|
|
904
930
|
__decorateClass([
|
|
905
|
-
(0,
|
|
931
|
+
(0, import_class_validator26.IsNotEmpty)({ message: "Please enter email." })
|
|
906
932
|
], CreateSubAdminDto.prototype, "email", 2);
|
|
907
933
|
__decorateClass([
|
|
908
|
-
(0,
|
|
934
|
+
(0, import_class_validator26.IsNotEmpty)({ message: "Please enter mobile Code." })
|
|
909
935
|
], CreateSubAdminDto.prototype, "mobileCode", 2);
|
|
910
936
|
__decorateClass([
|
|
911
|
-
(0,
|
|
937
|
+
(0, import_class_validator26.IsNotEmpty)({ message: "Please enter mobile number." })
|
|
912
938
|
], CreateSubAdminDto.prototype, "mobile", 2);
|
|
913
939
|
__decorateClass([
|
|
914
|
-
(0,
|
|
940
|
+
(0, import_class_validator26.IsNotEmpty)({ message: "Please enter the password." })
|
|
915
941
|
], CreateSubAdminDto.prototype, "password", 2);
|
|
916
942
|
__decorateClass([
|
|
917
|
-
(0,
|
|
943
|
+
(0, import_class_validator26.IsNotEmpty)({ message: "Please Select Roles." })
|
|
918
944
|
], CreateSubAdminDto.prototype, "roleIds", 2);
|
|
919
945
|
|
|
920
946
|
// src/modules/user/subadmin/dto/update-subadmin-status.dto.ts
|
|
921
|
-
var
|
|
947
|
+
var import_class_validator27 = require("class-validator");
|
|
922
948
|
var UpdateSubAdminAccountStatusDto = class {
|
|
923
949
|
};
|
|
924
950
|
__decorateClass([
|
|
925
|
-
(0,
|
|
951
|
+
(0, import_class_validator27.IsString)()
|
|
926
952
|
], UpdateSubAdminAccountStatusDto.prototype, "accountStatus", 2);
|
|
927
953
|
|
|
928
954
|
// src/modules/user/subadmin/dto/update-subadmin.dto.ts
|
|
929
955
|
var import_class_transformer = require("class-transformer");
|
|
930
|
-
var
|
|
956
|
+
var import_class_validator28 = require("class-validator");
|
|
931
957
|
var UpdateSubAdminDto = class {
|
|
932
958
|
};
|
|
933
959
|
__decorateClass([
|
|
934
|
-
(0,
|
|
960
|
+
(0, import_class_validator28.IsNotEmpty)({ message: "Please enter username." })
|
|
935
961
|
], UpdateSubAdminDto.prototype, "userName", 2);
|
|
936
962
|
__decorateClass([
|
|
937
|
-
(0,
|
|
963
|
+
(0, import_class_validator28.IsNotEmpty)({ message: "Please enter first name." })
|
|
938
964
|
], UpdateSubAdminDto.prototype, "firstName", 2);
|
|
939
965
|
__decorateClass([
|
|
940
|
-
(0,
|
|
966
|
+
(0, import_class_validator28.IsNotEmpty)({ message: "Please enter last name." })
|
|
941
967
|
], UpdateSubAdminDto.prototype, "lastName", 2);
|
|
942
968
|
__decorateClass([
|
|
943
|
-
(0,
|
|
969
|
+
(0, import_class_validator28.IsNotEmpty)({ message: "Please enter email." })
|
|
944
970
|
], UpdateSubAdminDto.prototype, "email", 2);
|
|
945
971
|
__decorateClass([
|
|
946
|
-
(0,
|
|
972
|
+
(0, import_class_validator28.IsNotEmpty)({ message: "Please enter mobile Code." })
|
|
947
973
|
], UpdateSubAdminDto.prototype, "mobileCode", 2);
|
|
948
974
|
__decorateClass([
|
|
949
|
-
(0,
|
|
975
|
+
(0, import_class_validator28.IsNotEmpty)({ message: "Please enter mobile number." })
|
|
950
976
|
], UpdateSubAdminDto.prototype, "mobile", 2);
|
|
951
977
|
__decorateClass([
|
|
952
|
-
(0,
|
|
978
|
+
(0, import_class_validator28.IsOptional)(),
|
|
953
979
|
(0, import_class_transformer.Transform)(({ value }) => value === null || value === "" ? void 0 : value),
|
|
954
|
-
(0,
|
|
955
|
-
(0,
|
|
956
|
-
(0,
|
|
980
|
+
(0, import_class_validator28.MinLength)(6, { message: "Password must be at least 6 characters." }),
|
|
981
|
+
(0, import_class_validator28.MaxLength)(32, { message: "Password must not exceed 32 characters." }),
|
|
982
|
+
(0, import_class_validator28.Matches)(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
957
983
|
message: "Password must include letters, numbers and symbols."
|
|
958
984
|
})
|
|
959
985
|
], UpdateSubAdminDto.prototype, "password", 2);
|
|
960
986
|
__decorateClass([
|
|
961
|
-
(0,
|
|
987
|
+
(0, import_class_validator28.IsNotEmpty)({ message: "Please Select Roles." })
|
|
962
988
|
], UpdateSubAdminDto.prototype, "roleIds", 2);
|
|
963
989
|
|
|
964
990
|
// src/modules/user/client-profile/pattern/pattern.ts
|
|
@@ -972,59 +998,59 @@ var CLIENT_PROFILE_PATTERN = {
|
|
|
972
998
|
};
|
|
973
999
|
|
|
974
1000
|
// src/modules/user/client-profile/dto/update-client-profile.dto.ts
|
|
975
|
-
var
|
|
1001
|
+
var import_class_validator29 = require("class-validator");
|
|
976
1002
|
var UpdateCompanyProfileDto = class {
|
|
977
1003
|
};
|
|
978
1004
|
__decorateClass([
|
|
979
|
-
(0,
|
|
980
|
-
(0,
|
|
981
|
-
(0,
|
|
1005
|
+
(0, import_class_validator29.IsNotEmpty)({ message: "Please enter company name." }),
|
|
1006
|
+
(0, import_class_validator29.IsString)({ message: "Company name must be a string." }),
|
|
1007
|
+
(0, import_class_validator29.Length)(2, 255, {
|
|
982
1008
|
message: "Company name must be between 2 and 255 characters"
|
|
983
1009
|
})
|
|
984
1010
|
], UpdateCompanyProfileDto.prototype, "companyName", 2);
|
|
985
1011
|
__decorateClass([
|
|
986
|
-
(0,
|
|
987
|
-
(0,
|
|
988
|
-
(0,
|
|
1012
|
+
(0, import_class_validator29.IsOptional)(),
|
|
1013
|
+
(0, import_class_validator29.ValidateIf)((o) => o.webSite !== ""),
|
|
1014
|
+
(0, import_class_validator29.IsUrl)({}, { message: "Invalid website URL format" })
|
|
989
1015
|
], UpdateCompanyProfileDto.prototype, "webSite", 2);
|
|
990
1016
|
__decorateClass([
|
|
991
|
-
(0,
|
|
992
|
-
(0,
|
|
993
|
-
(0,
|
|
1017
|
+
(0, import_class_validator29.IsNotEmpty)({ message: "Please enter company address." }),
|
|
1018
|
+
(0, import_class_validator29.IsString)({ message: "Company address must be a string" }),
|
|
1019
|
+
(0, import_class_validator29.Length)(5, 1e3, { message: "Address must be between 5 and 1000 characters" })
|
|
994
1020
|
], UpdateCompanyProfileDto.prototype, "companyAddress", 2);
|
|
995
1021
|
__decorateClass([
|
|
996
|
-
(0,
|
|
997
|
-
(0,
|
|
1022
|
+
(0, import_class_validator29.IsNotEmpty)({ message: "Please enter mobile code." }),
|
|
1023
|
+
(0, import_class_validator29.IsString)({ message: "Mobile Code must be a string" })
|
|
998
1024
|
], UpdateCompanyProfileDto.prototype, "mobileCode", 2);
|
|
999
1025
|
// @Matches(/^(\+1\s?)?(\(?\d{3}\)?[\s.-]?)?\d{3}[\s.-]?\d{4}$/, {
|
|
1000
1026
|
// message: "Please enter a valid US phone number",
|
|
1001
1027
|
// })
|
|
1002
1028
|
__decorateClass([
|
|
1003
|
-
(0,
|
|
1004
|
-
(0,
|
|
1029
|
+
(0, import_class_validator29.IsNotEmpty)({ message: "Please enter phone number." }),
|
|
1030
|
+
(0, import_class_validator29.IsString)({ message: "Please enter valid phone number." })
|
|
1005
1031
|
], UpdateCompanyProfileDto.prototype, "phoneNumber", 2);
|
|
1006
1032
|
__decorateClass([
|
|
1007
|
-
(0,
|
|
1008
|
-
(0,
|
|
1033
|
+
(0, import_class_validator29.IsNotEmpty)({ message: "Please enter email." }),
|
|
1034
|
+
(0, import_class_validator29.IsEmail)()
|
|
1009
1035
|
], UpdateCompanyProfileDto.prototype, "email", 2);
|
|
1010
1036
|
__decorateClass([
|
|
1011
|
-
(0,
|
|
1012
|
-
(0,
|
|
1037
|
+
(0, import_class_validator29.IsOptional)(),
|
|
1038
|
+
(0, import_class_validator29.IsString)({ message: "About company must be a string." })
|
|
1013
1039
|
], UpdateCompanyProfileDto.prototype, "aboutCompany", 2);
|
|
1014
1040
|
|
|
1015
1041
|
// src/modules/user/client-profile/dto/client-change-password.dto.ts
|
|
1016
|
-
var
|
|
1042
|
+
var import_class_validator30 = require("class-validator");
|
|
1017
1043
|
var ClientChangePasswordDto = class {
|
|
1018
1044
|
};
|
|
1019
1045
|
__decorateClass([
|
|
1020
|
-
(0,
|
|
1021
|
-
(0,
|
|
1022
|
-
(0,
|
|
1046
|
+
(0, import_class_validator30.IsString)(),
|
|
1047
|
+
(0, import_class_validator30.MinLength)(8, { message: "Password must be at least 8 characters long." }),
|
|
1048
|
+
(0, import_class_validator30.Matches)(/^(?=.*[A-Z])(?=.*\d).+$/, {
|
|
1023
1049
|
message: "Password must contain at least one uppercase letter and one number."
|
|
1024
1050
|
})
|
|
1025
1051
|
], ClientChangePasswordDto.prototype, "newPassword", 2);
|
|
1026
1052
|
__decorateClass([
|
|
1027
|
-
(0,
|
|
1053
|
+
(0, import_class_validator30.IsNotEmpty)({ message: "Please enter confirm password." }),
|
|
1028
1054
|
Match("newPassword", { message: "Passwords do not match" })
|
|
1029
1055
|
], ClientChangePasswordDto.prototype, "confirmPassword", 2);
|
|
1030
1056
|
|
|
@@ -1037,24 +1063,24 @@ var ASSESSMENT_QUESTION_PATTERN = {
|
|
|
1037
1063
|
};
|
|
1038
1064
|
|
|
1039
1065
|
// src/modules/question/dto/create-question.dto.ts
|
|
1040
|
-
var
|
|
1066
|
+
var import_class_validator31 = require("class-validator");
|
|
1041
1067
|
var CreateQuestionDto = class {
|
|
1042
1068
|
};
|
|
1043
1069
|
__decorateClass([
|
|
1044
|
-
(0,
|
|
1070
|
+
(0, import_class_validator31.IsNotEmpty)({ message: "Please enter unique id." })
|
|
1045
1071
|
], CreateQuestionDto.prototype, "questionId", 2);
|
|
1046
1072
|
__decorateClass([
|
|
1047
|
-
(0,
|
|
1073
|
+
(0, import_class_validator31.IsNotEmpty)({ message: "Please enter question." })
|
|
1048
1074
|
], CreateQuestionDto.prototype, "question", 2);
|
|
1049
1075
|
__decorateClass([
|
|
1050
|
-
(0,
|
|
1076
|
+
(0, import_class_validator31.IsNotEmpty)({ message: "Please enter for whom the question is." })
|
|
1051
1077
|
], CreateQuestionDto.prototype, "questionFor", 2);
|
|
1052
1078
|
__decorateClass([
|
|
1053
|
-
(0,
|
|
1079
|
+
(0, import_class_validator31.IsNotEmpty)({ message: "Please enter options." })
|
|
1054
1080
|
], CreateQuestionDto.prototype, "options", 2);
|
|
1055
1081
|
__decorateClass([
|
|
1056
|
-
(0,
|
|
1057
|
-
(0,
|
|
1082
|
+
(0, import_class_validator31.IsOptional)(),
|
|
1083
|
+
(0, import_class_validator31.IsBoolean)({ message: "Whether the question status active" })
|
|
1058
1084
|
], CreateQuestionDto.prototype, "isActive", 2);
|
|
1059
1085
|
|
|
1060
1086
|
// src/modules/job/pattern/pattern.ts
|
|
@@ -1083,7 +1109,7 @@ var JOB_PATTERN = {
|
|
|
1083
1109
|
};
|
|
1084
1110
|
|
|
1085
1111
|
// src/modules/job/dto/job-basic-information.dto.ts
|
|
1086
|
-
var
|
|
1112
|
+
var import_class_validator32 = require("class-validator");
|
|
1087
1113
|
var import_class_transformer2 = require("class-transformer");
|
|
1088
1114
|
var JobLocation = /* @__PURE__ */ ((JobLocation2) => {
|
|
1089
1115
|
JobLocation2["ONSITE"] = "ONSITE";
|
|
@@ -1103,135 +1129,135 @@ var JobBasicInformationDto = class {
|
|
|
1103
1129
|
}
|
|
1104
1130
|
};
|
|
1105
1131
|
__decorateClass([
|
|
1106
|
-
(0,
|
|
1132
|
+
(0, import_class_validator32.IsOptional)(),
|
|
1107
1133
|
(0, import_class_transformer2.Type)(() => Boolean)
|
|
1108
1134
|
], JobBasicInformationDto.prototype, "isDraft", 2);
|
|
1109
1135
|
__decorateClass([
|
|
1110
|
-
(0,
|
|
1111
|
-
(0,
|
|
1136
|
+
(0, import_class_validator32.IsNotEmpty)({ message: "Please enter job role" }),
|
|
1137
|
+
(0, import_class_validator32.IsString)({ message: "Job role must be a string" })
|
|
1112
1138
|
], JobBasicInformationDto.prototype, "jobRole", 2);
|
|
1113
1139
|
__decorateClass([
|
|
1114
|
-
(0,
|
|
1115
|
-
(0,
|
|
1140
|
+
(0, import_class_validator32.IsOptional)(),
|
|
1141
|
+
(0, import_class_validator32.IsString)({ message: "Note must be a string" })
|
|
1116
1142
|
], JobBasicInformationDto.prototype, "note", 2);
|
|
1117
1143
|
__decorateClass([
|
|
1118
|
-
(0,
|
|
1119
|
-
(0,
|
|
1120
|
-
(0,
|
|
1121
|
-
(0,
|
|
1144
|
+
(0, import_class_validator32.ValidateIf)((o) => !o.isDraft),
|
|
1145
|
+
(0, import_class_validator32.IsArray)({ message: "Skills must be an array" }),
|
|
1146
|
+
(0, import_class_validator32.ArrayNotEmpty)({ message: "Please select at least one skill" }),
|
|
1147
|
+
(0, import_class_validator32.IsString)({ each: true, message: "Each skill must be a string" }),
|
|
1122
1148
|
(0, import_class_transformer2.Type)(() => String)
|
|
1123
1149
|
], JobBasicInformationDto.prototype, "skills", 2);
|
|
1124
1150
|
__decorateClass([
|
|
1125
|
-
(0,
|
|
1126
|
-
(0,
|
|
1127
|
-
(0,
|
|
1151
|
+
(0, import_class_validator32.ValidateIf)((o) => !o.isDraft),
|
|
1152
|
+
(0, import_class_validator32.IsNumber)({}, { message: "Openings must be a number" }),
|
|
1153
|
+
(0, import_class_validator32.Min)(1, { message: "There must be at least 1 opening" }),
|
|
1128
1154
|
(0, import_class_transformer2.Type)(() => Number)
|
|
1129
1155
|
], JobBasicInformationDto.prototype, "openings", 2);
|
|
1130
1156
|
__decorateClass([
|
|
1131
|
-
(0,
|
|
1132
|
-
(0,
|
|
1157
|
+
(0, import_class_validator32.ValidateIf)((o) => !o.isDraft),
|
|
1158
|
+
(0, import_class_validator32.IsEnum)(JobLocation, {
|
|
1133
1159
|
message: `Location must be one of: ${Object.values(JobLocation).join(
|
|
1134
1160
|
", "
|
|
1135
1161
|
)}`
|
|
1136
1162
|
})
|
|
1137
1163
|
], JobBasicInformationDto.prototype, "location", 2);
|
|
1138
1164
|
__decorateClass([
|
|
1139
|
-
(0,
|
|
1140
|
-
(0,
|
|
1165
|
+
(0, import_class_validator32.ValidateIf)((o) => !o.isDraft),
|
|
1166
|
+
(0, import_class_validator32.IsNumber)({}, { message: "Country id must be a number" }),
|
|
1141
1167
|
(0, import_class_transformer2.Type)(() => Number)
|
|
1142
1168
|
], JobBasicInformationDto.prototype, "countryId", 2);
|
|
1143
1169
|
__decorateClass([
|
|
1144
|
-
(0,
|
|
1145
|
-
(0,
|
|
1170
|
+
(0, import_class_validator32.ValidateIf)((o) => !o.isDraft),
|
|
1171
|
+
(0, import_class_validator32.IsNumber)({}, { message: "State id must be a number" }),
|
|
1146
1172
|
(0, import_class_transformer2.Type)(() => Number)
|
|
1147
1173
|
], JobBasicInformationDto.prototype, "stateId", 2);
|
|
1148
1174
|
__decorateClass([
|
|
1149
|
-
(0,
|
|
1150
|
-
(0,
|
|
1175
|
+
(0, import_class_validator32.ValidateIf)((o) => !o.isDraft),
|
|
1176
|
+
(0, import_class_validator32.IsNumber)({}, { message: "City id must be a number" }),
|
|
1151
1177
|
(0, import_class_transformer2.Type)(() => Number)
|
|
1152
1178
|
], JobBasicInformationDto.prototype, "cityId", 2);
|
|
1153
1179
|
__decorateClass([
|
|
1154
|
-
(0,
|
|
1155
|
-
(0,
|
|
1180
|
+
(0, import_class_validator32.ValidateIf)((o) => !o.isDraft),
|
|
1181
|
+
(0, import_class_validator32.IsEnum)(EmploymentType, {
|
|
1156
1182
|
message: `Type of employment must be one of: ${Object.values(
|
|
1157
1183
|
EmploymentType
|
|
1158
1184
|
).join(", ")}`
|
|
1159
1185
|
})
|
|
1160
1186
|
], JobBasicInformationDto.prototype, "typeOfEmployment", 2);
|
|
1161
1187
|
__decorateClass([
|
|
1162
|
-
(0,
|
|
1163
|
-
(0,
|
|
1188
|
+
(0, import_class_validator32.ValidateIf)((o) => !o.isDraft),
|
|
1189
|
+
(0, import_class_validator32.IsString)({ message: "Currency must be a string" })
|
|
1164
1190
|
], JobBasicInformationDto.prototype, "currency", 2);
|
|
1165
1191
|
__decorateClass([
|
|
1166
|
-
(0,
|
|
1167
|
-
(0,
|
|
1168
|
-
(0,
|
|
1192
|
+
(0, import_class_validator32.ValidateIf)((o) => !o.isDraft),
|
|
1193
|
+
(0, import_class_validator32.IsNumber)({}, { message: "Expected salary (from) must be a number" }),
|
|
1194
|
+
(0, import_class_validator32.Min)(0, { message: "Expected salary (from) cannot be negative" }),
|
|
1169
1195
|
(0, import_class_transformer2.Type)(() => Number)
|
|
1170
1196
|
], JobBasicInformationDto.prototype, "expectedSalaryFrom", 2);
|
|
1171
1197
|
__decorateClass([
|
|
1172
|
-
(0,
|
|
1173
|
-
(0,
|
|
1174
|
-
(0,
|
|
1198
|
+
(0, import_class_validator32.ValidateIf)((o) => !o.isDraft),
|
|
1199
|
+
(0, import_class_validator32.IsNumber)({}, { message: "Expected salary (to) must be a number" }),
|
|
1200
|
+
(0, import_class_validator32.Min)(0, { message: "Expected salary (to) cannot be negative" }),
|
|
1175
1201
|
(0, import_class_transformer2.Type)(() => Number)
|
|
1176
1202
|
], JobBasicInformationDto.prototype, "expectedSalaryTo", 2);
|
|
1177
1203
|
__decorateClass([
|
|
1178
|
-
(0,
|
|
1179
|
-
(0,
|
|
1180
|
-
(0,
|
|
1204
|
+
(0, import_class_validator32.ValidateIf)((o) => !o.isDraft),
|
|
1205
|
+
(0, import_class_validator32.IsNotEmpty)({ message: "Please enter start date" }),
|
|
1206
|
+
(0, import_class_validator32.IsString)({ message: "Start date must be valid" })
|
|
1181
1207
|
], JobBasicInformationDto.prototype, "tentativeStartDate", 2);
|
|
1182
1208
|
__decorateClass([
|
|
1183
|
-
(0,
|
|
1184
|
-
(0,
|
|
1185
|
-
(0,
|
|
1209
|
+
(0, import_class_validator32.ValidateIf)((o) => !o.isDraft),
|
|
1210
|
+
(0, import_class_validator32.IsNotEmpty)({ message: "Please enter end date" }),
|
|
1211
|
+
(0, import_class_validator32.IsString)({ message: "End date must be valid" })
|
|
1186
1212
|
], JobBasicInformationDto.prototype, "tentativeEndDate", 2);
|
|
1187
1213
|
__decorateClass([
|
|
1188
|
-
(0,
|
|
1189
|
-
(0,
|
|
1190
|
-
(0,
|
|
1214
|
+
(0, import_class_validator32.ValidateIf)((o) => !o.isDraft),
|
|
1215
|
+
(0, import_class_validator32.IsString)({ message: "Onboarding TAT must be a string" }),
|
|
1216
|
+
(0, import_class_validator32.IsOptional)()
|
|
1191
1217
|
], JobBasicInformationDto.prototype, "onboardingTat", 2);
|
|
1192
1218
|
__decorateClass([
|
|
1193
|
-
(0,
|
|
1194
|
-
(0,
|
|
1195
|
-
(0,
|
|
1219
|
+
(0, import_class_validator32.ValidateIf)((o) => !o.isDraft),
|
|
1220
|
+
(0, import_class_validator32.IsString)({ message: "Candidate communication skills must be a string" }),
|
|
1221
|
+
(0, import_class_validator32.IsOptional)()
|
|
1196
1222
|
], JobBasicInformationDto.prototype, "candidateCommunicationSkills", 2);
|
|
1197
1223
|
__decorateClass([
|
|
1198
|
-
(0,
|
|
1199
|
-
(0,
|
|
1200
|
-
(0,
|
|
1224
|
+
(0, import_class_validator32.ValidateIf)((o) => !o.isDraft),
|
|
1225
|
+
(0, import_class_validator32.IsNotEmpty)({ message: "Please enter the academic qualification" }),
|
|
1226
|
+
(0, import_class_validator32.IsString)({ message: "Academic qualification must be a string" })
|
|
1201
1227
|
], JobBasicInformationDto.prototype, "academicQualification", 2);
|
|
1202
1228
|
__decorateClass([
|
|
1203
|
-
(0,
|
|
1204
|
-
(0,
|
|
1205
|
-
(0,
|
|
1229
|
+
(0, import_class_validator32.ValidateIf)((o) => !o.isDraft),
|
|
1230
|
+
(0, import_class_validator32.IsNotEmpty)({ message: "Please enter the years of experience" }),
|
|
1231
|
+
(0, import_class_validator32.IsString)({ message: "Years of experience must be a string" })
|
|
1206
1232
|
], JobBasicInformationDto.prototype, "yearsOfExperience", 2);
|
|
1207
1233
|
__decorateClass([
|
|
1208
|
-
(0,
|
|
1209
|
-
(0,
|
|
1210
|
-
(0,
|
|
1234
|
+
(0, import_class_validator32.ValidateIf)((o) => !o.isDraft),
|
|
1235
|
+
(0, import_class_validator32.IsNotEmpty)({ message: "Please enter the business industry" }),
|
|
1236
|
+
(0, import_class_validator32.IsString)({ message: "Business industry must be a string" })
|
|
1211
1237
|
], JobBasicInformationDto.prototype, "businessIndustry", 2);
|
|
1212
1238
|
|
|
1213
1239
|
// src/modules/job/dto/job-additional-comment.dto.ts
|
|
1214
|
-
var
|
|
1240
|
+
var import_class_validator33 = require("class-validator");
|
|
1215
1241
|
var JobAdditionalCommentDto = class {
|
|
1216
1242
|
};
|
|
1217
1243
|
__decorateClass([
|
|
1218
|
-
(0,
|
|
1219
|
-
(0,
|
|
1220
|
-
(0,
|
|
1244
|
+
(0, import_class_validator33.IsOptional)(),
|
|
1245
|
+
(0, import_class_validator33.IsString)({ message: "Additional comment must be a string" }),
|
|
1246
|
+
(0, import_class_validator33.MaxLength)(500, { message: "Additional comment must not exceed 500 characters" })
|
|
1221
1247
|
], JobAdditionalCommentDto.prototype, "additionalComment", 2);
|
|
1222
1248
|
|
|
1223
1249
|
// src/modules/job/dto/job-description.dto.ts
|
|
1224
|
-
var
|
|
1250
|
+
var import_class_validator34 = require("class-validator");
|
|
1225
1251
|
var JobDescriptionDto = class {
|
|
1226
1252
|
};
|
|
1227
1253
|
__decorateClass([
|
|
1228
|
-
(0,
|
|
1229
|
-
(0,
|
|
1230
|
-
(0,
|
|
1254
|
+
(0, import_class_validator34.IsNotEmpty)({ message: "Please enter job description" }),
|
|
1255
|
+
(0, import_class_validator34.IsString)({ message: "Description must be a string" }),
|
|
1256
|
+
(0, import_class_validator34.MaxLength)(5e3, { message: "Description must not exceed 5000 characters" })
|
|
1231
1257
|
], JobDescriptionDto.prototype, "description", 2);
|
|
1232
1258
|
|
|
1233
1259
|
// src/modules/job/dto/job-status.dto.ts
|
|
1234
|
-
var
|
|
1260
|
+
var import_class_validator35 = require("class-validator");
|
|
1235
1261
|
var JobStatus = /* @__PURE__ */ ((JobStatus2) => {
|
|
1236
1262
|
JobStatus2["ACTIVE"] = "ACTIVE";
|
|
1237
1263
|
JobStatus2["OPEN"] = "OPEN";
|
|
@@ -1243,18 +1269,18 @@ var JobStatus = /* @__PURE__ */ ((JobStatus2) => {
|
|
|
1243
1269
|
var JobStatusDto = class {
|
|
1244
1270
|
};
|
|
1245
1271
|
__decorateClass([
|
|
1246
|
-
(0,
|
|
1247
|
-
(0,
|
|
1272
|
+
(0, import_class_validator35.IsNotEmpty)({ message: "Please provide a job status" }),
|
|
1273
|
+
(0, import_class_validator35.IsEnum)(JobStatus, {
|
|
1248
1274
|
message: `Status must be one of: ${Object.values(JobStatus).join(", ")}`
|
|
1249
1275
|
})
|
|
1250
1276
|
], JobStatusDto.prototype, "status", 2);
|
|
1251
1277
|
|
|
1252
1278
|
// src/modules/job/dto/job-id-param.dto.ts
|
|
1253
|
-
var
|
|
1279
|
+
var import_class_validator36 = require("class-validator");
|
|
1254
1280
|
var JobIdParamDto = class {
|
|
1255
1281
|
};
|
|
1256
1282
|
__decorateClass([
|
|
1257
|
-
(0,
|
|
1283
|
+
(0, import_class_validator36.IsUUID)("4", {
|
|
1258
1284
|
message: "Invalid job ID. It must be a valid UUID version 4."
|
|
1259
1285
|
})
|
|
1260
1286
|
], JobIdParamDto.prototype, "id", 2);
|
|
@@ -1272,25 +1298,25 @@ var PROFILE_PATTERN = {
|
|
|
1272
1298
|
};
|
|
1273
1299
|
|
|
1274
1300
|
// src/modules/user/freelancer-profile/dto/freelancer-change-password.dto.ts
|
|
1275
|
-
var
|
|
1301
|
+
var import_class_validator37 = require("class-validator");
|
|
1276
1302
|
var FreelancerChangePasswordDto = class {
|
|
1277
1303
|
};
|
|
1278
1304
|
__decorateClass([
|
|
1279
|
-
(0,
|
|
1280
|
-
(0,
|
|
1305
|
+
(0, import_class_validator37.IsNotEmpty)({ message: "Please enter Old Password." }),
|
|
1306
|
+
(0, import_class_validator37.IsString)()
|
|
1281
1307
|
], FreelancerChangePasswordDto.prototype, "oldPassword", 2);
|
|
1282
1308
|
__decorateClass([
|
|
1283
|
-
(0,
|
|
1284
|
-
(0,
|
|
1285
|
-
(0,
|
|
1286
|
-
(0,
|
|
1287
|
-
(0,
|
|
1309
|
+
(0, import_class_validator37.IsNotEmpty)({ message: "Please enter New Password." }),
|
|
1310
|
+
(0, import_class_validator37.IsString)(),
|
|
1311
|
+
(0, import_class_validator37.MinLength)(6),
|
|
1312
|
+
(0, import_class_validator37.MaxLength)(32),
|
|
1313
|
+
(0, import_class_validator37.Matches)(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
1288
1314
|
message: "New Password must include letters, numbers and symbols."
|
|
1289
1315
|
})
|
|
1290
1316
|
], FreelancerChangePasswordDto.prototype, "newPassword", 2);
|
|
1291
1317
|
|
|
1292
1318
|
// src/modules/user/freelancer-profile/dto/update-freelancer-profile.dto.ts
|
|
1293
|
-
var
|
|
1319
|
+
var import_class_validator38 = require("class-validator");
|
|
1294
1320
|
var NatureOfWorkDto = /* @__PURE__ */ ((NatureOfWorkDto2) => {
|
|
1295
1321
|
NatureOfWorkDto2["FULLTIME"] = "FULLTIME";
|
|
1296
1322
|
NatureOfWorkDto2["PARTTIME"] = "PARTTIME";
|
|
@@ -1306,92 +1332,92 @@ var ModeOfWorkDto = /* @__PURE__ */ ((ModeOfWorkDto2) => {
|
|
|
1306
1332
|
var UpdateFreelancerProfileDto = class {
|
|
1307
1333
|
};
|
|
1308
1334
|
__decorateClass([
|
|
1309
|
-
(0,
|
|
1310
|
-
(0,
|
|
1335
|
+
(0, import_class_validator38.IsNotEmpty)({ message: "Please enter first name." }),
|
|
1336
|
+
(0, import_class_validator38.IsString)({ message: "Please enter valid first name." })
|
|
1311
1337
|
], UpdateFreelancerProfileDto.prototype, "firstName", 2);
|
|
1312
1338
|
__decorateClass([
|
|
1313
|
-
(0,
|
|
1314
|
-
(0,
|
|
1339
|
+
(0, import_class_validator38.IsNotEmpty)({ message: "Please enter last name." }),
|
|
1340
|
+
(0, import_class_validator38.IsString)({ message: "Please enter valid last name." })
|
|
1315
1341
|
], UpdateFreelancerProfileDto.prototype, "lastName", 2);
|
|
1316
1342
|
__decorateClass([
|
|
1317
|
-
(0,
|
|
1318
|
-
(0,
|
|
1343
|
+
(0, import_class_validator38.IsNotEmpty)({ message: "Please enter designation." }),
|
|
1344
|
+
(0, import_class_validator38.IsString)({ message: "Please enter valid designation." })
|
|
1319
1345
|
], UpdateFreelancerProfileDto.prototype, "designation", 2);
|
|
1320
1346
|
__decorateClass([
|
|
1321
|
-
(0,
|
|
1322
|
-
(0,
|
|
1347
|
+
(0, import_class_validator38.IsNotEmpty)({ message: "Please enter experience." }),
|
|
1348
|
+
(0, import_class_validator38.IsString)({ message: "Please enter valid experience." })
|
|
1323
1349
|
], UpdateFreelancerProfileDto.prototype, "experience", 2);
|
|
1324
1350
|
__decorateClass([
|
|
1325
|
-
(0,
|
|
1326
|
-
(0,
|
|
1351
|
+
(0, import_class_validator38.IsNotEmpty)({ message: "Please enter email id." }),
|
|
1352
|
+
(0, import_class_validator38.IsEmail)()
|
|
1327
1353
|
], UpdateFreelancerProfileDto.prototype, "email", 2);
|
|
1328
1354
|
__decorateClass([
|
|
1329
|
-
(0,
|
|
1330
|
-
(0,
|
|
1355
|
+
(0, import_class_validator38.IsNotEmpty)({ message: "Please enter mobile code." }),
|
|
1356
|
+
(0, import_class_validator38.IsString)({ message: "Please enter valid mobile code." })
|
|
1331
1357
|
], UpdateFreelancerProfileDto.prototype, "mobileCode", 2);
|
|
1332
1358
|
__decorateClass([
|
|
1333
|
-
(0,
|
|
1334
|
-
(0,
|
|
1359
|
+
(0, import_class_validator38.IsNotEmpty)({ message: "Please enter mobile number." }),
|
|
1360
|
+
(0, import_class_validator38.IsString)({ message: "Please enter valid mobile number." })
|
|
1335
1361
|
], UpdateFreelancerProfileDto.prototype, "mobile", 2);
|
|
1336
1362
|
__decorateClass([
|
|
1337
|
-
(0,
|
|
1338
|
-
(0,
|
|
1363
|
+
(0, import_class_validator38.IsOptional)(),
|
|
1364
|
+
(0, import_class_validator38.IsNumber)()
|
|
1339
1365
|
], UpdateFreelancerProfileDto.prototype, "countryId", 2);
|
|
1340
1366
|
__decorateClass([
|
|
1341
|
-
(0,
|
|
1342
|
-
(0,
|
|
1367
|
+
(0, import_class_validator38.IsNotEmpty)({ message: "Please select currency." }),
|
|
1368
|
+
(0, import_class_validator38.IsString)({ message: "Please enter valid currency." })
|
|
1343
1369
|
], UpdateFreelancerProfileDto.prototype, "currency", 2);
|
|
1344
1370
|
__decorateClass([
|
|
1345
|
-
(0,
|
|
1346
|
-
(0,
|
|
1371
|
+
(0, import_class_validator38.IsNotEmpty)({ message: "Please enter expected hourly compensation." }),
|
|
1372
|
+
(0, import_class_validator38.IsString)({ message: "Please enter valid expected hourly compensation." })
|
|
1347
1373
|
], UpdateFreelancerProfileDto.prototype, "expectedHourlyCompensation", 2);
|
|
1348
1374
|
__decorateClass([
|
|
1349
|
-
(0,
|
|
1350
|
-
(0,
|
|
1375
|
+
(0, import_class_validator38.IsNotEmpty)({ message: "Please select engagement type." }),
|
|
1376
|
+
(0, import_class_validator38.IsEnum)(NatureOfWorkDto, {
|
|
1351
1377
|
message: `Engagement Type must be one of: ${Object.values(
|
|
1352
1378
|
NatureOfWorkDto
|
|
1353
1379
|
).join(", ")}`
|
|
1354
1380
|
})
|
|
1355
1381
|
], UpdateFreelancerProfileDto.prototype, "natureOfWork", 2);
|
|
1356
1382
|
__decorateClass([
|
|
1357
|
-
(0,
|
|
1358
|
-
(0,
|
|
1383
|
+
(0, import_class_validator38.IsNotEmpty)({ message: "Please select mode of work." }),
|
|
1384
|
+
(0, import_class_validator38.IsEnum)(ModeOfWorkDto, {
|
|
1359
1385
|
message: `Mode of work must be one of: ${Object.values(ModeOfWorkDto).join(
|
|
1360
1386
|
", "
|
|
1361
1387
|
)}`
|
|
1362
1388
|
})
|
|
1363
1389
|
], UpdateFreelancerProfileDto.prototype, "modeOfWork", 2);
|
|
1364
1390
|
__decorateClass([
|
|
1365
|
-
(0,
|
|
1366
|
-
(0,
|
|
1391
|
+
(0, import_class_validator38.IsOptional)(),
|
|
1392
|
+
(0, import_class_validator38.IsString)()
|
|
1367
1393
|
], UpdateFreelancerProfileDto.prototype, "portfolioLink", 2);
|
|
1368
1394
|
__decorateClass([
|
|
1369
|
-
(0,
|
|
1370
|
-
(0,
|
|
1395
|
+
(0, import_class_validator38.IsOptional)(),
|
|
1396
|
+
(0, import_class_validator38.IsString)()
|
|
1371
1397
|
], UpdateFreelancerProfileDto.prototype, "address", 2);
|
|
1372
1398
|
__decorateClass([
|
|
1373
|
-
(0,
|
|
1374
|
-
(0,
|
|
1399
|
+
(0, import_class_validator38.IsOptional)(),
|
|
1400
|
+
(0, import_class_validator38.IsString)()
|
|
1375
1401
|
], UpdateFreelancerProfileDto.prototype, "about", 2);
|
|
1376
1402
|
__decorateClass([
|
|
1377
|
-
(0,
|
|
1378
|
-
(0,
|
|
1403
|
+
(0, import_class_validator38.IsOptional)(),
|
|
1404
|
+
(0, import_class_validator38.IsString)()
|
|
1379
1405
|
], UpdateFreelancerProfileDto.prototype, "linkedinProfileLink", 2);
|
|
1380
1406
|
__decorateClass([
|
|
1381
|
-
(0,
|
|
1382
|
-
(0,
|
|
1407
|
+
(0, import_class_validator38.IsOptional)(),
|
|
1408
|
+
(0, import_class_validator38.IsString)()
|
|
1383
1409
|
], UpdateFreelancerProfileDto.prototype, "kaggleProfileLink", 2);
|
|
1384
1410
|
__decorateClass([
|
|
1385
|
-
(0,
|
|
1386
|
-
(0,
|
|
1411
|
+
(0, import_class_validator38.IsOptional)(),
|
|
1412
|
+
(0, import_class_validator38.IsString)()
|
|
1387
1413
|
], UpdateFreelancerProfileDto.prototype, "githubProfileLink", 2);
|
|
1388
1414
|
__decorateClass([
|
|
1389
|
-
(0,
|
|
1390
|
-
(0,
|
|
1415
|
+
(0, import_class_validator38.IsOptional)(),
|
|
1416
|
+
(0, import_class_validator38.IsString)()
|
|
1391
1417
|
], UpdateFreelancerProfileDto.prototype, "stackOverflowProfileLink", 2);
|
|
1392
1418
|
__decorateClass([
|
|
1393
|
-
(0,
|
|
1394
|
-
(0,
|
|
1419
|
+
(0, import_class_validator38.IsOptional)(),
|
|
1420
|
+
(0, import_class_validator38.IsString)()
|
|
1395
1421
|
], UpdateFreelancerProfileDto.prototype, "resumeUrl", 2);
|
|
1396
1422
|
|
|
1397
1423
|
// src/modules/bank/pattern/pattern.ts
|
|
@@ -1402,7 +1428,7 @@ var BANK_PATTERN = {
|
|
|
1402
1428
|
};
|
|
1403
1429
|
|
|
1404
1430
|
// src/modules/bank/dto/freelancer-bank-details.dto.ts
|
|
1405
|
-
var
|
|
1431
|
+
var import_class_validator39 = require("class-validator");
|
|
1406
1432
|
var BankAccountScope = /* @__PURE__ */ ((BankAccountScope2) => {
|
|
1407
1433
|
BankAccountScope2["DOMESTIC"] = "DOMESTIC";
|
|
1408
1434
|
BankAccountScope2["INTERNATIONAL"] = "INTERNATIONAL";
|
|
@@ -1411,47 +1437,47 @@ var BankAccountScope = /* @__PURE__ */ ((BankAccountScope2) => {
|
|
|
1411
1437
|
var FreelancerBankDetailsDto = class {
|
|
1412
1438
|
};
|
|
1413
1439
|
__decorateClass([
|
|
1414
|
-
(0,
|
|
1440
|
+
(0, import_class_validator39.IsNotEmpty)({ message: "Please enter Account Holder Name." })
|
|
1415
1441
|
], FreelancerBankDetailsDto.prototype, "name", 2);
|
|
1416
1442
|
__decorateClass([
|
|
1417
|
-
(0,
|
|
1443
|
+
(0, import_class_validator39.IsNotEmpty)({ message: "Please enter Mobile Number." })
|
|
1418
1444
|
], FreelancerBankDetailsDto.prototype, "mobile", 2);
|
|
1419
1445
|
__decorateClass([
|
|
1420
|
-
(0,
|
|
1446
|
+
(0, import_class_validator39.IsNotEmpty)({ message: "Please enter Email." })
|
|
1421
1447
|
], FreelancerBankDetailsDto.prototype, "email", 2);
|
|
1422
1448
|
__decorateClass([
|
|
1423
|
-
(0,
|
|
1449
|
+
(0, import_class_validator39.IsOptional)()
|
|
1424
1450
|
], FreelancerBankDetailsDto.prototype, "address", 2);
|
|
1425
1451
|
__decorateClass([
|
|
1426
|
-
(0,
|
|
1452
|
+
(0, import_class_validator39.IsNotEmpty)({ message: "Please enter Account Number." })
|
|
1427
1453
|
], FreelancerBankDetailsDto.prototype, "accountNumber", 2);
|
|
1428
1454
|
__decorateClass([
|
|
1429
|
-
(0,
|
|
1455
|
+
(0, import_class_validator39.IsNotEmpty)({ message: "Please enter Bank Name." })
|
|
1430
1456
|
], FreelancerBankDetailsDto.prototype, "bankName", 2);
|
|
1431
1457
|
__decorateClass([
|
|
1432
|
-
(0,
|
|
1458
|
+
(0, import_class_validator39.IsNotEmpty)({ message: "Please enter Branch Name." })
|
|
1433
1459
|
], FreelancerBankDetailsDto.prototype, "branchName", 2);
|
|
1434
1460
|
__decorateClass([
|
|
1435
|
-
(0,
|
|
1436
|
-
(0,
|
|
1461
|
+
(0, import_class_validator39.ValidateIf)((dto) => dto.accountScope === "DOMESTIC"),
|
|
1462
|
+
(0, import_class_validator39.IsNotEmpty)({ message: "IFSC Code is required for DOMESTIC accounts." })
|
|
1437
1463
|
], FreelancerBankDetailsDto.prototype, "ifscCode", 2);
|
|
1438
1464
|
__decorateClass([
|
|
1439
|
-
(0,
|
|
1440
|
-
(0,
|
|
1465
|
+
(0, import_class_validator39.ValidateIf)((dto) => dto.accountScope === "INTERNATIONAL"),
|
|
1466
|
+
(0, import_class_validator39.IsNotEmpty)({ message: "Routing Number/Sort Code is required for INTERNATIONAL accounts." })
|
|
1441
1467
|
], FreelancerBankDetailsDto.prototype, "routingNo", 2);
|
|
1442
1468
|
__decorateClass([
|
|
1443
|
-
(0,
|
|
1444
|
-
(0,
|
|
1469
|
+
(0, import_class_validator39.ValidateIf)((dto) => dto.accountScope === "INTERNATIONAL"),
|
|
1470
|
+
(0, import_class_validator39.IsNotEmpty)({ message: "ABA Number is required for INTERNATIONAL accounts." })
|
|
1445
1471
|
], FreelancerBankDetailsDto.prototype, "abaNumber", 2);
|
|
1446
1472
|
__decorateClass([
|
|
1447
|
-
(0,
|
|
1448
|
-
(0,
|
|
1473
|
+
(0, import_class_validator39.ValidateIf)((dto) => dto.accountScope === "INTERNATIONAL"),
|
|
1474
|
+
(0, import_class_validator39.IsNotEmpty)({ message: "IBAN is required for INTERNATIONAL accounts." })
|
|
1449
1475
|
], FreelancerBankDetailsDto.prototype, "iban", 2);
|
|
1450
1476
|
__decorateClass([
|
|
1451
|
-
(0,
|
|
1477
|
+
(0, import_class_validator39.IsOptional)()
|
|
1452
1478
|
], FreelancerBankDetailsDto.prototype, "accountType", 2);
|
|
1453
1479
|
__decorateClass([
|
|
1454
|
-
(0,
|
|
1480
|
+
(0, import_class_validator39.IsEnum)(BankAccountScope, {
|
|
1455
1481
|
message: `Type of Account Scope must be one of: ${Object.values(
|
|
1456
1482
|
BankAccountScope
|
|
1457
1483
|
).join(", ")}`
|
|
@@ -1471,7 +1497,7 @@ var SYSTEM_PREFERENCES_PATTERN = {
|
|
|
1471
1497
|
};
|
|
1472
1498
|
|
|
1473
1499
|
// src/modules/system-preference/dto/system-preference.dto.ts
|
|
1474
|
-
var
|
|
1500
|
+
var import_class_validator40 = require("class-validator");
|
|
1475
1501
|
var SystemPreferenceKey = /* @__PURE__ */ ((SystemPreferenceKey2) => {
|
|
1476
1502
|
SystemPreferenceKey2["EMAIL_NOTIFICATION"] = "EMAIL_NOTIFICATION";
|
|
1477
1503
|
SystemPreferenceKey2["DARK_MODE"] = "DARK_MODE";
|
|
@@ -1480,10 +1506,10 @@ var SystemPreferenceKey = /* @__PURE__ */ ((SystemPreferenceKey2) => {
|
|
|
1480
1506
|
var SystemPreferenceDto = class {
|
|
1481
1507
|
};
|
|
1482
1508
|
__decorateClass([
|
|
1483
|
-
(0,
|
|
1509
|
+
(0, import_class_validator40.IsBoolean)()
|
|
1484
1510
|
], SystemPreferenceDto.prototype, "value", 2);
|
|
1485
1511
|
__decorateClass([
|
|
1486
|
-
(0,
|
|
1512
|
+
(0, import_class_validator40.IsEnum)(SystemPreferenceKey, {
|
|
1487
1513
|
message: `key must be one of: ${Object.values(
|
|
1488
1514
|
SystemPreferenceKey
|
|
1489
1515
|
).join(", ")}`
|
|
@@ -1503,7 +1529,7 @@ var RATING_PATTERN = {
|
|
|
1503
1529
|
};
|
|
1504
1530
|
|
|
1505
1531
|
// src/modules/rating/dto/add.rating.dto.ts
|
|
1506
|
-
var
|
|
1532
|
+
var import_class_validator41 = require("class-validator");
|
|
1507
1533
|
|
|
1508
1534
|
// src/entities/rating.entity.ts
|
|
1509
1535
|
var import_typeorm47 = require("typeorm");
|
|
@@ -4166,22 +4192,22 @@ Rating = __decorateClass([
|
|
|
4166
4192
|
var CreateRatingDto = class {
|
|
4167
4193
|
};
|
|
4168
4194
|
__decorateClass([
|
|
4169
|
-
(0,
|
|
4170
|
-
(0,
|
|
4195
|
+
(0, import_class_validator41.IsInt)({ message: "Reviewee ID must be a valid integer" }),
|
|
4196
|
+
(0, import_class_validator41.IsNotEmpty)({ message: "Reviewee ID is required" })
|
|
4171
4197
|
], CreateRatingDto.prototype, "revieweeId", 2);
|
|
4172
4198
|
__decorateClass([
|
|
4173
|
-
(0,
|
|
4199
|
+
(0, import_class_validator41.IsEnum)(RatingTypeEnum, {
|
|
4174
4200
|
message: `Rating type must be one of: ${Object.values(RatingTypeEnum).join(", ")}`
|
|
4175
4201
|
})
|
|
4176
4202
|
], CreateRatingDto.prototype, "ratingType", 2);
|
|
4177
4203
|
__decorateClass([
|
|
4178
|
-
(0,
|
|
4179
|
-
(0,
|
|
4180
|
-
(0,
|
|
4204
|
+
(0, import_class_validator41.IsInt)({ message: "Rating must be an integer value" }),
|
|
4205
|
+
(0, import_class_validator41.Min)(1, { message: "Rating must be at least 1" }),
|
|
4206
|
+
(0, import_class_validator41.Max)(5, { message: "Rating must be at most 5" })
|
|
4181
4207
|
], CreateRatingDto.prototype, "rating", 2);
|
|
4182
4208
|
__decorateClass([
|
|
4183
|
-
(0,
|
|
4184
|
-
(0,
|
|
4209
|
+
(0, import_class_validator41.IsOptional)(),
|
|
4210
|
+
(0, import_class_validator41.IsString)({ message: "Review must be a string" })
|
|
4185
4211
|
], CreateRatingDto.prototype, "review", 2);
|
|
4186
4212
|
|
|
4187
4213
|
// src/modules/company-role/pattern/pattern.ts
|
|
@@ -4197,57 +4223,57 @@ var COMPANY_ROLES_PATTERNS = {
|
|
|
4197
4223
|
};
|
|
4198
4224
|
|
|
4199
4225
|
// src/modules/company-role/dto/create-company-role.dto.ts
|
|
4200
|
-
var
|
|
4226
|
+
var import_class_validator42 = require("class-validator");
|
|
4201
4227
|
var CreateCompanyRoleDto = class {
|
|
4202
4228
|
};
|
|
4203
4229
|
__decorateClass([
|
|
4204
|
-
(0,
|
|
4230
|
+
(0, import_class_validator42.IsNotEmpty)({ message: "Please enter company role name." })
|
|
4205
4231
|
], CreateCompanyRoleDto.prototype, "name", 2);
|
|
4206
4232
|
__decorateClass([
|
|
4207
|
-
(0,
|
|
4233
|
+
(0, import_class_validator42.IsNotEmpty)({ message: "Please enter company role slug" })
|
|
4208
4234
|
], CreateCompanyRoleDto.prototype, "slug", 2);
|
|
4209
4235
|
__decorateClass([
|
|
4210
|
-
(0,
|
|
4236
|
+
(0, import_class_validator42.IsNotEmpty)({ message: "Please enter description" })
|
|
4211
4237
|
], CreateCompanyRoleDto.prototype, "description", 2);
|
|
4212
4238
|
__decorateClass([
|
|
4213
|
-
(0,
|
|
4214
|
-
(0,
|
|
4215
|
-
(0,
|
|
4239
|
+
(0, import_class_validator42.IsArray)({ message: "Permission IDs must be an array." }),
|
|
4240
|
+
(0, import_class_validator42.ArrayNotEmpty)({ message: "Please select at least one permission." }),
|
|
4241
|
+
(0, import_class_validator42.IsInt)({ each: true, message: "Each permission ID must be an integer." })
|
|
4216
4242
|
], CreateCompanyRoleDto.prototype, "permissionIds", 2);
|
|
4217
4243
|
__decorateClass([
|
|
4218
|
-
(0,
|
|
4219
|
-
(0,
|
|
4244
|
+
(0, import_class_validator42.IsOptional)(),
|
|
4245
|
+
(0, import_class_validator42.IsBoolean)({ message: "Is active must be a boolean value" })
|
|
4220
4246
|
], CreateCompanyRoleDto.prototype, "isActive", 2);
|
|
4221
4247
|
|
|
4222
4248
|
// src/modules/company-role/dto/update-company-role.dto.ts
|
|
4223
|
-
var
|
|
4249
|
+
var import_class_validator43 = require("class-validator");
|
|
4224
4250
|
var UpdateCompanyRoleDto = class {
|
|
4225
4251
|
};
|
|
4226
4252
|
__decorateClass([
|
|
4227
|
-
(0,
|
|
4253
|
+
(0, import_class_validator43.IsNotEmpty)({ message: "Please enter company name." })
|
|
4228
4254
|
], UpdateCompanyRoleDto.prototype, "name", 2);
|
|
4229
4255
|
__decorateClass([
|
|
4230
|
-
(0,
|
|
4256
|
+
(0, import_class_validator43.IsNotEmpty)({ message: "Please enter slug" })
|
|
4231
4257
|
], UpdateCompanyRoleDto.prototype, "slug", 2);
|
|
4232
4258
|
__decorateClass([
|
|
4233
|
-
(0,
|
|
4259
|
+
(0, import_class_validator43.IsNotEmpty)({ message: "Please enter description" })
|
|
4234
4260
|
], UpdateCompanyRoleDto.prototype, "description", 2);
|
|
4235
4261
|
__decorateClass([
|
|
4236
|
-
(0,
|
|
4237
|
-
(0,
|
|
4238
|
-
(0,
|
|
4262
|
+
(0, import_class_validator43.IsArray)({ message: "Permission IDs must be an array." }),
|
|
4263
|
+
(0, import_class_validator43.ArrayNotEmpty)({ message: "Please select at least one permission." }),
|
|
4264
|
+
(0, import_class_validator43.IsInt)({ each: true, message: "Each permission ID must be an integer." })
|
|
4239
4265
|
], UpdateCompanyRoleDto.prototype, "permissionIds", 2);
|
|
4240
4266
|
__decorateClass([
|
|
4241
|
-
(0,
|
|
4242
|
-
(0,
|
|
4267
|
+
(0, import_class_validator43.IsOptional)(),
|
|
4268
|
+
(0, import_class_validator43.IsBoolean)({ message: "Is active must be a boolean value" })
|
|
4243
4269
|
], UpdateCompanyRoleDto.prototype, "isActive", 2);
|
|
4244
4270
|
|
|
4245
4271
|
// src/modules/company-role/dto/toggle-company-role-visibility.dto.ts
|
|
4246
|
-
var
|
|
4272
|
+
var import_class_validator44 = require("class-validator");
|
|
4247
4273
|
var ToggleCompanyRoleVisibilityDto = class {
|
|
4248
4274
|
};
|
|
4249
4275
|
__decorateClass([
|
|
4250
|
-
(0,
|
|
4276
|
+
(0, import_class_validator44.IsBoolean)()
|
|
4251
4277
|
], ToggleCompanyRoleVisibilityDto.prototype, "isActive", 2);
|
|
4252
4278
|
|
|
4253
4279
|
// src/modules/user/freelancer-experience/pattern/pattern.ts
|
|
@@ -4257,35 +4283,35 @@ var FREELANCER_EXPERIENCE_PATTERN = {
|
|
|
4257
4283
|
};
|
|
4258
4284
|
|
|
4259
4285
|
// src/modules/user/freelancer-experience/dto/freelancer-experience.dto.ts
|
|
4260
|
-
var
|
|
4286
|
+
var import_class_validator45 = require("class-validator");
|
|
4261
4287
|
var import_class_transformer3 = require("class-transformer");
|
|
4262
4288
|
var ExperienceDto = class {
|
|
4263
4289
|
};
|
|
4264
4290
|
__decorateClass([
|
|
4265
|
-
(0,
|
|
4291
|
+
(0, import_class_validator45.IsOptional)()
|
|
4266
4292
|
], ExperienceDto.prototype, "uuid", 2);
|
|
4267
4293
|
__decorateClass([
|
|
4268
|
-
(0,
|
|
4269
|
-
(0,
|
|
4294
|
+
(0, import_class_validator45.IsNotEmpty)(),
|
|
4295
|
+
(0, import_class_validator45.IsString)()
|
|
4270
4296
|
], ExperienceDto.prototype, "companyName", 2);
|
|
4271
4297
|
__decorateClass([
|
|
4272
|
-
(0,
|
|
4273
|
-
(0,
|
|
4298
|
+
(0, import_class_validator45.IsNotEmpty)(),
|
|
4299
|
+
(0, import_class_validator45.IsString)()
|
|
4274
4300
|
], ExperienceDto.prototype, "designation", 2);
|
|
4275
4301
|
__decorateClass([
|
|
4276
|
-
(0,
|
|
4277
|
-
(0,
|
|
4302
|
+
(0, import_class_validator45.IsNotEmpty)(),
|
|
4303
|
+
(0, import_class_validator45.IsString)()
|
|
4278
4304
|
], ExperienceDto.prototype, "jobDuration", 2);
|
|
4279
4305
|
__decorateClass([
|
|
4280
|
-
(0,
|
|
4281
|
-
(0,
|
|
4282
|
-
(0,
|
|
4306
|
+
(0, import_class_validator45.IsOptional)(),
|
|
4307
|
+
(0, import_class_validator45.IsString)(),
|
|
4308
|
+
(0, import_class_validator45.MaxLength)(5e3, { message: "Description must not exceed 5000 characters" })
|
|
4283
4309
|
], ExperienceDto.prototype, "description", 2);
|
|
4284
4310
|
var FreelancerExperienceDto = class {
|
|
4285
4311
|
};
|
|
4286
4312
|
__decorateClass([
|
|
4287
|
-
(0,
|
|
4288
|
-
(0,
|
|
4313
|
+
(0, import_class_validator45.ValidateNested)({ each: true }),
|
|
4314
|
+
(0, import_class_validator45.ArrayMinSize)(1, { message: "At least one experience is required." }),
|
|
4289
4315
|
(0, import_class_transformer3.Type)(() => ExperienceDto)
|
|
4290
4316
|
], FreelancerExperienceDto.prototype, "experiences", 2);
|
|
4291
4317
|
|
|
@@ -4302,43 +4328,43 @@ var COMPANY_MEMBERS_PATTERNS = {
|
|
|
4302
4328
|
};
|
|
4303
4329
|
|
|
4304
4330
|
// src/modules/company-member/dto/create-company-member.dto.ts
|
|
4305
|
-
var
|
|
4331
|
+
var import_class_validator46 = require("class-validator");
|
|
4306
4332
|
var CreateCompanyMemberDto = class {
|
|
4307
4333
|
};
|
|
4308
4334
|
__decorateClass([
|
|
4309
|
-
(0,
|
|
4335
|
+
(0, import_class_validator46.IsNotEmpty)({ message: "Please enter name." })
|
|
4310
4336
|
], CreateCompanyMemberDto.prototype, "name", 2);
|
|
4311
4337
|
__decorateClass([
|
|
4312
|
-
(0,
|
|
4338
|
+
(0, import_class_validator46.IsNotEmpty)({ message: "Please enter email" })
|
|
4313
4339
|
], CreateCompanyMemberDto.prototype, "email", 2);
|
|
4314
4340
|
__decorateClass([
|
|
4315
|
-
(0,
|
|
4316
|
-
(0,
|
|
4317
|
-
(0,
|
|
4341
|
+
(0, import_class_validator46.IsArray)({ message: "Role IDs must be an array." }),
|
|
4342
|
+
(0, import_class_validator46.ArrayNotEmpty)({ message: "Please select at least one role." }),
|
|
4343
|
+
(0, import_class_validator46.IsInt)({ each: true, message: "Each role ID must be an integer." })
|
|
4318
4344
|
], CreateCompanyMemberDto.prototype, "roleIds", 2);
|
|
4319
4345
|
|
|
4320
4346
|
// src/modules/company-member/dto/update-company-member.dto.ts
|
|
4321
|
-
var
|
|
4347
|
+
var import_class_validator47 = require("class-validator");
|
|
4322
4348
|
var UpdateCompanyMemberDto = class {
|
|
4323
4349
|
};
|
|
4324
4350
|
__decorateClass([
|
|
4325
|
-
(0,
|
|
4351
|
+
(0, import_class_validator47.IsNotEmpty)({ message: "Please enter name." })
|
|
4326
4352
|
], UpdateCompanyMemberDto.prototype, "name", 2);
|
|
4327
4353
|
__decorateClass([
|
|
4328
|
-
(0,
|
|
4354
|
+
(0, import_class_validator47.IsNotEmpty)({ message: "Please enter email" })
|
|
4329
4355
|
], UpdateCompanyMemberDto.prototype, "email", 2);
|
|
4330
4356
|
__decorateClass([
|
|
4331
|
-
(0,
|
|
4332
|
-
(0,
|
|
4333
|
-
(0,
|
|
4357
|
+
(0, import_class_validator47.IsArray)({ message: "Role IDs must be an array." }),
|
|
4358
|
+
(0, import_class_validator47.ArrayNotEmpty)({ message: "Please select at least one role." }),
|
|
4359
|
+
(0, import_class_validator47.IsInt)({ each: true, message: "Each role ID must be an integer." })
|
|
4334
4360
|
], UpdateCompanyMemberDto.prototype, "roleIds", 2);
|
|
4335
4361
|
|
|
4336
4362
|
// src/modules/company-member/dto/toggle-company-member-visibility.dto.ts
|
|
4337
|
-
var
|
|
4363
|
+
var import_class_validator48 = require("class-validator");
|
|
4338
4364
|
var ToggleCompanyMemberVisibilityDto = class {
|
|
4339
4365
|
};
|
|
4340
4366
|
__decorateClass([
|
|
4341
|
-
(0,
|
|
4367
|
+
(0, import_class_validator48.IsBoolean)()
|
|
4342
4368
|
], ToggleCompanyMemberVisibilityDto.prototype, "isActive", 2);
|
|
4343
4369
|
|
|
4344
4370
|
// src/modules/user/freelancer-education/pattern/pattern.ts
|
|
@@ -4348,31 +4374,31 @@ var FREELANCER_EDUCATION_PATTERN = {
|
|
|
4348
4374
|
};
|
|
4349
4375
|
|
|
4350
4376
|
// src/modules/user/freelancer-education/dto/freelancer-education.dto.ts
|
|
4351
|
-
var
|
|
4377
|
+
var import_class_validator49 = require("class-validator");
|
|
4352
4378
|
var import_class_transformer4 = require("class-transformer");
|
|
4353
4379
|
var EducationDto = class {
|
|
4354
4380
|
};
|
|
4355
4381
|
__decorateClass([
|
|
4356
|
-
(0,
|
|
4382
|
+
(0, import_class_validator49.IsOptional)()
|
|
4357
4383
|
], EducationDto.prototype, "uuid", 2);
|
|
4358
4384
|
__decorateClass([
|
|
4359
|
-
(0,
|
|
4360
|
-
(0,
|
|
4385
|
+
(0, import_class_validator49.IsString)(),
|
|
4386
|
+
(0, import_class_validator49.IsNotEmpty)({ message: "Please Enter Degree " })
|
|
4361
4387
|
], EducationDto.prototype, "degree", 2);
|
|
4362
4388
|
__decorateClass([
|
|
4363
|
-
(0,
|
|
4364
|
-
(0,
|
|
4389
|
+
(0, import_class_validator49.IsString)(),
|
|
4390
|
+
(0, import_class_validator49.IsNotEmpty)({ message: "Please Enter University " })
|
|
4365
4391
|
], EducationDto.prototype, "university", 2);
|
|
4366
4392
|
__decorateClass([
|
|
4367
|
-
(0,
|
|
4368
|
-
(0,
|
|
4393
|
+
(0, import_class_validator49.IsString)(),
|
|
4394
|
+
(0, import_class_validator49.IsNotEmpty)({ message: "Please Enter Year of Graduation " })
|
|
4369
4395
|
], EducationDto.prototype, "yearOfGraduation", 2);
|
|
4370
4396
|
var FreelancerEducationDto = class {
|
|
4371
4397
|
};
|
|
4372
4398
|
__decorateClass([
|
|
4373
|
-
(0,
|
|
4374
|
-
(0,
|
|
4375
|
-
(0,
|
|
4399
|
+
(0, import_class_validator49.IsArray)(),
|
|
4400
|
+
(0, import_class_validator49.ArrayMinSize)(1, { message: "At least one education is required." }),
|
|
4401
|
+
(0, import_class_validator49.ValidateNested)({ each: true }),
|
|
4376
4402
|
(0, import_class_transformer4.Type)(() => EducationDto)
|
|
4377
4403
|
], FreelancerEducationDto.prototype, "educations", 2);
|
|
4378
4404
|
|
|
@@ -4383,67 +4409,67 @@ var FREELANCER_PROJECT_PATTERN = {
|
|
|
4383
4409
|
};
|
|
4384
4410
|
|
|
4385
4411
|
// src/modules/user/freelancer-project/dto/freelancer-project.dto.ts
|
|
4386
|
-
var
|
|
4412
|
+
var import_class_validator50 = require("class-validator");
|
|
4387
4413
|
var import_class_transformer5 = require("class-transformer");
|
|
4388
4414
|
var ProjectDto = class {
|
|
4389
4415
|
};
|
|
4390
4416
|
__decorateClass([
|
|
4391
|
-
(0,
|
|
4417
|
+
(0, import_class_validator50.IsOptional)()
|
|
4392
4418
|
], ProjectDto.prototype, "uuid", 2);
|
|
4393
4419
|
__decorateClass([
|
|
4394
|
-
(0,
|
|
4395
|
-
(0,
|
|
4420
|
+
(0, import_class_validator50.IsString)(),
|
|
4421
|
+
(0, import_class_validator50.IsNotEmpty)({ message: "Please Enter Project Name " })
|
|
4396
4422
|
], ProjectDto.prototype, "projectName", 2);
|
|
4397
4423
|
__decorateClass([
|
|
4398
|
-
(0,
|
|
4399
|
-
(0,
|
|
4424
|
+
(0, import_class_validator50.IsDateString)(),
|
|
4425
|
+
(0, import_class_validator50.IsNotEmpty)({ message: "Please Enter Start Date " })
|
|
4400
4426
|
], ProjectDto.prototype, "startDate", 2);
|
|
4401
4427
|
__decorateClass([
|
|
4402
|
-
(0,
|
|
4403
|
-
(0,
|
|
4428
|
+
(0, import_class_validator50.IsDateString)(),
|
|
4429
|
+
(0, import_class_validator50.IsNotEmpty)({ message: "Please Enter End Date " })
|
|
4404
4430
|
], ProjectDto.prototype, "endDate", 2);
|
|
4405
4431
|
__decorateClass([
|
|
4406
|
-
(0,
|
|
4407
|
-
(0,
|
|
4432
|
+
(0, import_class_validator50.IsOptional)(),
|
|
4433
|
+
(0, import_class_validator50.IsString)()
|
|
4408
4434
|
], ProjectDto.prototype, "clientName", 2);
|
|
4409
4435
|
__decorateClass([
|
|
4410
|
-
(0,
|
|
4411
|
-
(0,
|
|
4436
|
+
(0, import_class_validator50.IsOptional)(),
|
|
4437
|
+
(0, import_class_validator50.IsString)()
|
|
4412
4438
|
], ProjectDto.prototype, "gitLink", 2);
|
|
4413
4439
|
__decorateClass([
|
|
4414
|
-
(0,
|
|
4415
|
-
(0,
|
|
4416
|
-
(0,
|
|
4440
|
+
(0, import_class_validator50.IsOptional)(),
|
|
4441
|
+
(0, import_class_validator50.IsString)(),
|
|
4442
|
+
(0, import_class_validator50.MaxLength)(5e3, { message: "Description must not exceed 5000 characters" })
|
|
4417
4443
|
], ProjectDto.prototype, "description", 2);
|
|
4418
4444
|
var CaseStudyDto = class {
|
|
4419
4445
|
};
|
|
4420
4446
|
__decorateClass([
|
|
4421
|
-
(0,
|
|
4447
|
+
(0, import_class_validator50.IsOptional)()
|
|
4422
4448
|
], CaseStudyDto.prototype, "uuid", 2);
|
|
4423
4449
|
__decorateClass([
|
|
4424
|
-
(0,
|
|
4425
|
-
(0,
|
|
4450
|
+
(0, import_class_validator50.IsString)(),
|
|
4451
|
+
(0, import_class_validator50.IsNotEmpty)({ message: "Please Enter Project Name " })
|
|
4426
4452
|
], CaseStudyDto.prototype, "projectName", 2);
|
|
4427
4453
|
__decorateClass([
|
|
4428
|
-
(0,
|
|
4429
|
-
(0,
|
|
4454
|
+
(0, import_class_validator50.IsOptional)(),
|
|
4455
|
+
(0, import_class_validator50.IsString)()
|
|
4430
4456
|
], CaseStudyDto.prototype, "caseStudyLink", 2);
|
|
4431
4457
|
__decorateClass([
|
|
4432
|
-
(0,
|
|
4433
|
-
(0,
|
|
4434
|
-
(0,
|
|
4458
|
+
(0, import_class_validator50.IsOptional)(),
|
|
4459
|
+
(0, import_class_validator50.IsString)(),
|
|
4460
|
+
(0, import_class_validator50.MaxLength)(5e3, { message: "Description must not exceed 5000 characters" })
|
|
4435
4461
|
], CaseStudyDto.prototype, "description", 2);
|
|
4436
4462
|
var FreelancerProjectDto = class {
|
|
4437
4463
|
};
|
|
4438
4464
|
__decorateClass([
|
|
4439
|
-
(0,
|
|
4440
|
-
(0,
|
|
4441
|
-
(0,
|
|
4465
|
+
(0, import_class_validator50.IsArray)(),
|
|
4466
|
+
(0, import_class_validator50.ArrayMinSize)(1, { message: "At least one project is required." }),
|
|
4467
|
+
(0, import_class_validator50.ValidateNested)({ each: true }),
|
|
4442
4468
|
(0, import_class_transformer5.Type)(() => ProjectDto)
|
|
4443
4469
|
], FreelancerProjectDto.prototype, "projects", 2);
|
|
4444
4470
|
__decorateClass([
|
|
4445
|
-
(0,
|
|
4446
|
-
(0,
|
|
4471
|
+
(0, import_class_validator50.IsArray)(),
|
|
4472
|
+
(0, import_class_validator50.ValidateNested)({ each: true }),
|
|
4447
4473
|
(0, import_class_transformer5.Type)(() => CaseStudyDto)
|
|
4448
4474
|
], FreelancerProjectDto.prototype, "casestudies", 2);
|
|
4449
4475
|
|
|
@@ -4459,7 +4485,7 @@ var FREELANCER_SKILL_PATTERN = {
|
|
|
4459
4485
|
};
|
|
4460
4486
|
|
|
4461
4487
|
// src/modules/user/freelancer-skill/dto/freelancer-skill.dto.ts
|
|
4462
|
-
var
|
|
4488
|
+
var import_class_validator51 = require("class-validator");
|
|
4463
4489
|
var import_class_transformer6 = require("class-transformer");
|
|
4464
4490
|
var FreelancerSkillDto = class {
|
|
4465
4491
|
constructor() {
|
|
@@ -4469,22 +4495,22 @@ var FreelancerSkillDto = class {
|
|
|
4469
4495
|
}
|
|
4470
4496
|
};
|
|
4471
4497
|
__decorateClass([
|
|
4472
|
-
(0,
|
|
4473
|
-
(0,
|
|
4498
|
+
(0, import_class_validator51.IsOptional)(),
|
|
4499
|
+
(0, import_class_validator51.IsArray)(),
|
|
4474
4500
|
(0, import_class_transformer6.Type)(() => String),
|
|
4475
|
-
(0,
|
|
4501
|
+
(0, import_class_validator51.IsString)({ each: true })
|
|
4476
4502
|
], FreelancerSkillDto.prototype, "coreSkills", 2);
|
|
4477
4503
|
__decorateClass([
|
|
4478
|
-
(0,
|
|
4479
|
-
(0,
|
|
4504
|
+
(0, import_class_validator51.IsOptional)(),
|
|
4505
|
+
(0, import_class_validator51.IsArray)(),
|
|
4480
4506
|
(0, import_class_transformer6.Type)(() => String),
|
|
4481
|
-
(0,
|
|
4507
|
+
(0, import_class_validator51.IsString)({ each: true })
|
|
4482
4508
|
], FreelancerSkillDto.prototype, "tools", 2);
|
|
4483
4509
|
__decorateClass([
|
|
4484
|
-
(0,
|
|
4485
|
-
(0,
|
|
4510
|
+
(0, import_class_validator51.IsOptional)(),
|
|
4511
|
+
(0, import_class_validator51.IsArray)(),
|
|
4486
4512
|
(0, import_class_transformer6.Type)(() => String),
|
|
4487
|
-
(0,
|
|
4513
|
+
(0, import_class_validator51.IsString)({ each: true })
|
|
4488
4514
|
], FreelancerSkillDto.prototype, "frameworks", 2);
|
|
4489
4515
|
|
|
4490
4516
|
// src/modules/freelancer-admin/pattern/pattern.ts
|
|
@@ -4500,7 +4526,7 @@ var ADMIN_FREELANCER_PATTERN = {
|
|
|
4500
4526
|
};
|
|
4501
4527
|
|
|
4502
4528
|
// src/modules/freelancer-admin/dto/create-freelancer.dto.ts
|
|
4503
|
-
var
|
|
4529
|
+
var import_class_validator52 = require("class-validator");
|
|
4504
4530
|
var import_class_transformer7 = require("class-transformer");
|
|
4505
4531
|
var NatureOfWorkEnum = /* @__PURE__ */ ((NatureOfWorkEnum3) => {
|
|
4506
4532
|
NatureOfWorkEnum3["FULLTIME"] = "FULLTIME";
|
|
@@ -4517,84 +4543,84 @@ var ModeOfWorkEnum = /* @__PURE__ */ ((ModeOfWorkEnum3) => {
|
|
|
4517
4543
|
var CreateFreelancerDto = class {
|
|
4518
4544
|
};
|
|
4519
4545
|
__decorateClass([
|
|
4520
|
-
(0,
|
|
4521
|
-
(0,
|
|
4546
|
+
(0, import_class_validator52.IsString)({ message: "Full name must be a string" }),
|
|
4547
|
+
(0, import_class_validator52.MaxLength)(100, { message: "Full name must not exceed 100 characters" })
|
|
4522
4548
|
], CreateFreelancerDto.prototype, "fullName", 2);
|
|
4523
4549
|
__decorateClass([
|
|
4524
|
-
(0,
|
|
4550
|
+
(0, import_class_validator52.IsEmail)({}, { message: "Invalid email address" })
|
|
4525
4551
|
], CreateFreelancerDto.prototype, "email", 2);
|
|
4526
4552
|
__decorateClass([
|
|
4527
|
-
(0,
|
|
4553
|
+
(0, import_class_validator52.IsString)({ message: "Mobile code must be a string (e.g., +1)" })
|
|
4528
4554
|
], CreateFreelancerDto.prototype, "mobileCode", 2);
|
|
4529
4555
|
__decorateClass([
|
|
4530
|
-
(0,
|
|
4556
|
+
(0, import_class_validator52.IsString)({ message: "Mobile must be a string (e.g., 1243253534)" })
|
|
4531
4557
|
], CreateFreelancerDto.prototype, "mobile", 2);
|
|
4532
4558
|
__decorateClass([
|
|
4533
|
-
(0,
|
|
4534
|
-
(0,
|
|
4535
|
-
(0,
|
|
4536
|
-
(0,
|
|
4559
|
+
(0, import_class_validator52.IsNotEmpty)({ message: "Please enter password." }),
|
|
4560
|
+
(0, import_class_validator52.MinLength)(6),
|
|
4561
|
+
(0, import_class_validator52.MaxLength)(32),
|
|
4562
|
+
(0, import_class_validator52.Matches)(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
4537
4563
|
message: "Password must include letters, numbers and symbols."
|
|
4538
4564
|
})
|
|
4539
4565
|
], CreateFreelancerDto.prototype, "password", 2);
|
|
4540
4566
|
__decorateClass([
|
|
4541
|
-
(0,
|
|
4567
|
+
(0, import_class_validator52.IsNotEmpty)({ message: "Please enter confirm password." }),
|
|
4542
4568
|
Match("confirmPassword", { message: "Passwords do not match" })
|
|
4543
4569
|
], CreateFreelancerDto.prototype, "confirmPassword", 2);
|
|
4544
4570
|
__decorateClass([
|
|
4545
|
-
(0,
|
|
4571
|
+
(0, import_class_validator52.IsBoolean)({ message: "Developer flag must be true or false" }),
|
|
4546
4572
|
(0, import_class_transformer7.Type)(() => Boolean)
|
|
4547
4573
|
], CreateFreelancerDto.prototype, "developer", 2);
|
|
4548
4574
|
__decorateClass([
|
|
4549
|
-
(0,
|
|
4575
|
+
(0, import_class_validator52.IsEnum)(NatureOfWorkEnum, {
|
|
4550
4576
|
message: `Nature of work must be one of: ${Object.values(
|
|
4551
4577
|
NatureOfWorkEnum
|
|
4552
4578
|
).join(", ")}`
|
|
4553
4579
|
})
|
|
4554
4580
|
], CreateFreelancerDto.prototype, "natureOfWork", 2);
|
|
4555
4581
|
__decorateClass([
|
|
4556
|
-
(0,
|
|
4557
|
-
(0,
|
|
4582
|
+
(0, import_class_validator52.IsNumber)({}, { message: "Expected hourly compensation must be a number" }),
|
|
4583
|
+
(0, import_class_validator52.Min)(0, { message: "Expected hourly compensation must be 0 or more" }),
|
|
4558
4584
|
(0, import_class_transformer7.Type)(() => Number)
|
|
4559
4585
|
], CreateFreelancerDto.prototype, "expectedHourlyCompensation", 2);
|
|
4560
4586
|
__decorateClass([
|
|
4561
|
-
(0,
|
|
4587
|
+
(0, import_class_validator52.IsEnum)(ModeOfWorkEnum, {
|
|
4562
4588
|
message: `Mode of work must be one of: ${Object.values(ModeOfWorkEnum).join(
|
|
4563
4589
|
", "
|
|
4564
4590
|
)}`
|
|
4565
4591
|
})
|
|
4566
4592
|
], CreateFreelancerDto.prototype, "modeOfWork", 2);
|
|
4567
4593
|
__decorateClass([
|
|
4568
|
-
(0,
|
|
4594
|
+
(0, import_class_validator52.IsBoolean)({ message: "isImmediateJoiner must be true or false" }),
|
|
4569
4595
|
(0, import_class_transformer7.Type)(() => Boolean)
|
|
4570
4596
|
], CreateFreelancerDto.prototype, "isImmediateJoiner", 2);
|
|
4571
4597
|
__decorateClass([
|
|
4572
|
-
(0,
|
|
4573
|
-
(0,
|
|
4598
|
+
(0, import_class_validator52.ValidateIf)((o) => o.isImmediateJoiner === false),
|
|
4599
|
+
(0, import_class_validator52.IsNotEmpty)({ message: "Please enter availability to join." })
|
|
4574
4600
|
], CreateFreelancerDto.prototype, "availabilityToJoin", 2);
|
|
4575
4601
|
__decorateClass([
|
|
4576
|
-
(0,
|
|
4577
|
-
(0,
|
|
4602
|
+
(0, import_class_validator52.IsOptional)(),
|
|
4603
|
+
(0, import_class_validator52.IsUrl)({}, { message: "LinkedIn profile link must be a valid URL" })
|
|
4578
4604
|
], CreateFreelancerDto.prototype, "linkedinProfileLink", 2);
|
|
4579
4605
|
__decorateClass([
|
|
4580
|
-
(0,
|
|
4581
|
-
(0,
|
|
4606
|
+
(0, import_class_validator52.IsOptional)(),
|
|
4607
|
+
(0, import_class_validator52.IsString)({ message: "Kaggle profile link must be a string" })
|
|
4582
4608
|
], CreateFreelancerDto.prototype, "kaggleProfileLink", 2);
|
|
4583
4609
|
__decorateClass([
|
|
4584
|
-
(0,
|
|
4585
|
-
(0,
|
|
4610
|
+
(0, import_class_validator52.IsOptional)(),
|
|
4611
|
+
(0, import_class_validator52.IsUrl)({}, { message: "GitHub profile link must be a valid URL" })
|
|
4586
4612
|
], CreateFreelancerDto.prototype, "githubProfileLink", 2);
|
|
4587
4613
|
__decorateClass([
|
|
4588
|
-
(0,
|
|
4589
|
-
(0,
|
|
4614
|
+
(0, import_class_validator52.IsOptional)(),
|
|
4615
|
+
(0, import_class_validator52.IsUrl)({}, { message: "StackOverflow profile link must be a valid URL" })
|
|
4590
4616
|
], CreateFreelancerDto.prototype, "stackOverflowProfileLink", 2);
|
|
4591
4617
|
__decorateClass([
|
|
4592
|
-
(0,
|
|
4593
|
-
(0,
|
|
4618
|
+
(0, import_class_validator52.IsOptional)(),
|
|
4619
|
+
(0, import_class_validator52.IsUrl)({}, { message: "Portfolio link must be a valid URL" })
|
|
4594
4620
|
], CreateFreelancerDto.prototype, "portfolioLink", 2);
|
|
4595
4621
|
|
|
4596
4622
|
// src/modules/freelancer-admin/dto/update-freelancer.dto.ts
|
|
4597
|
-
var
|
|
4623
|
+
var import_class_validator53 = require("class-validator");
|
|
4598
4624
|
var import_class_transformer8 = require("class-transformer");
|
|
4599
4625
|
var NatureOfWorkEnum2 = /* @__PURE__ */ ((NatureOfWorkEnum3) => {
|
|
4600
4626
|
NatureOfWorkEnum3["FULLTIME"] = "FULLTIME";
|
|
@@ -4611,86 +4637,86 @@ var ModeOfWorkEnum2 = /* @__PURE__ */ ((ModeOfWorkEnum3) => {
|
|
|
4611
4637
|
var UpdateFreelancerDto = class {
|
|
4612
4638
|
};
|
|
4613
4639
|
__decorateClass([
|
|
4614
|
-
(0,
|
|
4615
|
-
(0,
|
|
4616
|
-
(0,
|
|
4640
|
+
(0, import_class_validator53.IsOptional)(),
|
|
4641
|
+
(0, import_class_validator53.IsString)({ message: "Full name must be a string" }),
|
|
4642
|
+
(0, import_class_validator53.MaxLength)(100, { message: "Full name must not exceed 100 characters" })
|
|
4617
4643
|
], UpdateFreelancerDto.prototype, "fullName", 2);
|
|
4618
4644
|
__decorateClass([
|
|
4619
|
-
(0,
|
|
4620
|
-
(0,
|
|
4645
|
+
(0, import_class_validator53.IsOptional)(),
|
|
4646
|
+
(0, import_class_validator53.IsEmail)({}, { message: "Invalid email address" })
|
|
4621
4647
|
], UpdateFreelancerDto.prototype, "email", 2);
|
|
4622
4648
|
__decorateClass([
|
|
4623
|
-
(0,
|
|
4624
|
-
(0,
|
|
4649
|
+
(0, import_class_validator53.IsOptional)(),
|
|
4650
|
+
(0, import_class_validator53.IsString)({ message: "Mobile code must be a string (e.g., +1)" })
|
|
4625
4651
|
], UpdateFreelancerDto.prototype, "mobileCode", 2);
|
|
4626
4652
|
__decorateClass([
|
|
4627
|
-
(0,
|
|
4628
|
-
(0,
|
|
4653
|
+
(0, import_class_validator53.IsOptional)(),
|
|
4654
|
+
(0, import_class_validator53.IsString)({ message: "Mobile must be a string (e.g., 1243253534)" })
|
|
4629
4655
|
], UpdateFreelancerDto.prototype, "mobile", 2);
|
|
4630
4656
|
__decorateClass([
|
|
4631
|
-
(0,
|
|
4657
|
+
(0, import_class_validator53.IsOptional)(),
|
|
4632
4658
|
(0, import_class_transformer8.Transform)(({ value }) => value === null || value === "" ? void 0 : value),
|
|
4633
|
-
(0,
|
|
4634
|
-
(0,
|
|
4635
|
-
(0,
|
|
4659
|
+
(0, import_class_validator53.MinLength)(6, { message: "Password must be at least 6 characters." }),
|
|
4660
|
+
(0, import_class_validator53.MaxLength)(32, { message: "Password must not exceed 32 characters." }),
|
|
4661
|
+
(0, import_class_validator53.Matches)(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
4636
4662
|
message: "Password must include letters, numbers and symbols."
|
|
4637
4663
|
})
|
|
4638
4664
|
], UpdateFreelancerDto.prototype, "password", 2);
|
|
4639
4665
|
__decorateClass([
|
|
4640
|
-
(0,
|
|
4641
|
-
(0,
|
|
4666
|
+
(0, import_class_validator53.IsOptional)(),
|
|
4667
|
+
(0, import_class_validator53.IsBoolean)({ message: "Developer flag must be true or false" }),
|
|
4642
4668
|
(0, import_class_transformer8.Type)(() => Boolean)
|
|
4643
4669
|
], UpdateFreelancerDto.prototype, "developer", 2);
|
|
4644
4670
|
__decorateClass([
|
|
4645
|
-
(0,
|
|
4646
|
-
(0,
|
|
4671
|
+
(0, import_class_validator53.IsOptional)(),
|
|
4672
|
+
(0, import_class_validator53.IsEnum)(NatureOfWorkEnum2, {
|
|
4647
4673
|
message: `Nature of work must be one of: ${Object.values(
|
|
4648
4674
|
NatureOfWorkEnum2
|
|
4649
4675
|
).join(", ")}`
|
|
4650
4676
|
})
|
|
4651
4677
|
], UpdateFreelancerDto.prototype, "natureOfWork", 2);
|
|
4652
4678
|
__decorateClass([
|
|
4653
|
-
(0,
|
|
4654
|
-
(0,
|
|
4655
|
-
(0,
|
|
4679
|
+
(0, import_class_validator53.IsOptional)(),
|
|
4680
|
+
(0, import_class_validator53.IsNumber)({}, { message: "Expected hourly compensation must be a number" }),
|
|
4681
|
+
(0, import_class_validator53.Min)(0, { message: "Expected hourly compensation must be 0 or more" }),
|
|
4656
4682
|
(0, import_class_transformer8.Type)(() => Number)
|
|
4657
4683
|
], UpdateFreelancerDto.prototype, "expectedHourlyCompensation", 2);
|
|
4658
4684
|
__decorateClass([
|
|
4659
|
-
(0,
|
|
4660
|
-
(0,
|
|
4685
|
+
(0, import_class_validator53.IsOptional)(),
|
|
4686
|
+
(0, import_class_validator53.IsEnum)(ModeOfWorkEnum2, {
|
|
4661
4687
|
message: `Mode of work must be one of: ${Object.values(ModeOfWorkEnum2).join(
|
|
4662
4688
|
", "
|
|
4663
4689
|
)}`
|
|
4664
4690
|
})
|
|
4665
4691
|
], UpdateFreelancerDto.prototype, "modeOfWork", 2);
|
|
4666
4692
|
__decorateClass([
|
|
4667
|
-
(0,
|
|
4668
|
-
(0,
|
|
4693
|
+
(0, import_class_validator53.IsOptional)(),
|
|
4694
|
+
(0, import_class_validator53.IsBoolean)({ message: "isImmediateJoiner must be true or false" }),
|
|
4669
4695
|
(0, import_class_transformer8.Type)(() => Boolean)
|
|
4670
4696
|
], UpdateFreelancerDto.prototype, "isImmediateJoiner", 2);
|
|
4671
4697
|
__decorateClass([
|
|
4672
|
-
(0,
|
|
4673
|
-
(0,
|
|
4698
|
+
(0, import_class_validator53.ValidateIf)((o) => o.isImmediateJoiner === false),
|
|
4699
|
+
(0, import_class_validator53.IsNotEmpty)({ message: "Please enter availability to join." })
|
|
4674
4700
|
], UpdateFreelancerDto.prototype, "availabilityToJoin", 2);
|
|
4675
4701
|
__decorateClass([
|
|
4676
|
-
(0,
|
|
4677
|
-
(0,
|
|
4702
|
+
(0, import_class_validator53.IsOptional)(),
|
|
4703
|
+
(0, import_class_validator53.IsUrl)({}, { message: "LinkedIn profile link must be a valid URL" })
|
|
4678
4704
|
], UpdateFreelancerDto.prototype, "linkedinProfileLink", 2);
|
|
4679
4705
|
__decorateClass([
|
|
4680
|
-
(0,
|
|
4681
|
-
(0,
|
|
4706
|
+
(0, import_class_validator53.IsOptional)(),
|
|
4707
|
+
(0, import_class_validator53.IsString)({ message: "Kaggle profile link must be a string" })
|
|
4682
4708
|
], UpdateFreelancerDto.prototype, "kaggleProfileLink", 2);
|
|
4683
4709
|
__decorateClass([
|
|
4684
|
-
(0,
|
|
4685
|
-
(0,
|
|
4710
|
+
(0, import_class_validator53.IsOptional)(),
|
|
4711
|
+
(0, import_class_validator53.IsUrl)({}, { message: "GitHub profile link must be a valid URL" })
|
|
4686
4712
|
], UpdateFreelancerDto.prototype, "githubProfileLink", 2);
|
|
4687
4713
|
__decorateClass([
|
|
4688
|
-
(0,
|
|
4689
|
-
(0,
|
|
4714
|
+
(0, import_class_validator53.IsOptional)(),
|
|
4715
|
+
(0, import_class_validator53.IsUrl)({}, { message: "StackOverflow profile link must be a valid URL" })
|
|
4690
4716
|
], UpdateFreelancerDto.prototype, "stackOverflowProfileLink", 2);
|
|
4691
4717
|
__decorateClass([
|
|
4692
|
-
(0,
|
|
4693
|
-
(0,
|
|
4718
|
+
(0, import_class_validator53.IsOptional)(),
|
|
4719
|
+
(0, import_class_validator53.IsUrl)({}, { message: "Portfolio link must be a valid URL" })
|
|
4694
4720
|
], UpdateFreelancerDto.prototype, "portfolioLink", 2);
|
|
4695
4721
|
|
|
4696
4722
|
// src/modules/client-admin/pattern/pattern.ts
|
|
@@ -4707,7 +4733,7 @@ var CLIENT_ADMIN_PATTERNS = {
|
|
|
4707
4733
|
};
|
|
4708
4734
|
|
|
4709
4735
|
// src/modules/client-admin/dto/create-client.dto.ts
|
|
4710
|
-
var
|
|
4736
|
+
var import_class_validator54 = require("class-validator");
|
|
4711
4737
|
var CreateClientHiringModeEnum = /* @__PURE__ */ ((CreateClientHiringModeEnum2) => {
|
|
4712
4738
|
CreateClientHiringModeEnum2["REMOTE"] = "REMOTE";
|
|
4713
4739
|
CreateClientHiringModeEnum2["ONSITE"] = "ONSITE";
|
|
@@ -4723,70 +4749,70 @@ var CreateClientHiringTypeEnum = /* @__PURE__ */ ((CreateClientHiringTypeEnum2)
|
|
|
4723
4749
|
var CreateClientDto = class {
|
|
4724
4750
|
};
|
|
4725
4751
|
__decorateClass([
|
|
4726
|
-
(0,
|
|
4727
|
-
(0,
|
|
4752
|
+
(0, import_class_validator54.IsNotEmpty)({ message: "Please enter first name." }),
|
|
4753
|
+
(0, import_class_validator54.IsString)()
|
|
4728
4754
|
], CreateClientDto.prototype, "firstName", 2);
|
|
4729
4755
|
__decorateClass([
|
|
4730
|
-
(0,
|
|
4731
|
-
(0,
|
|
4756
|
+
(0, import_class_validator54.IsNotEmpty)({ message: "Please enter last name." }),
|
|
4757
|
+
(0, import_class_validator54.IsString)()
|
|
4732
4758
|
], CreateClientDto.prototype, "lastName", 2);
|
|
4733
4759
|
__decorateClass([
|
|
4734
|
-
(0,
|
|
4735
|
-
(0,
|
|
4760
|
+
(0, import_class_validator54.IsNotEmpty)({ message: "Please enter email." }),
|
|
4761
|
+
(0, import_class_validator54.IsEmail)()
|
|
4736
4762
|
], CreateClientDto.prototype, "email", 2);
|
|
4737
4763
|
__decorateClass([
|
|
4738
|
-
(0,
|
|
4739
|
-
(0,
|
|
4740
|
-
(0,
|
|
4741
|
-
(0,
|
|
4764
|
+
(0, import_class_validator54.IsNotEmpty)({ message: "Please enter password." }),
|
|
4765
|
+
(0, import_class_validator54.MinLength)(6),
|
|
4766
|
+
(0, import_class_validator54.MaxLength)(32),
|
|
4767
|
+
(0, import_class_validator54.Matches)(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
4742
4768
|
message: "Password must include letters, numbers and symbols."
|
|
4743
4769
|
})
|
|
4744
4770
|
], CreateClientDto.prototype, "password", 2);
|
|
4745
4771
|
__decorateClass([
|
|
4746
|
-
(0,
|
|
4772
|
+
(0, import_class_validator54.IsNotEmpty)({ message: "Please enter confirm password." }),
|
|
4747
4773
|
Match("confirmPassword", { message: "Passwords do not match" })
|
|
4748
4774
|
], CreateClientDto.prototype, "confirmPassword", 2);
|
|
4749
4775
|
__decorateClass([
|
|
4750
|
-
(0,
|
|
4751
|
-
(0,
|
|
4776
|
+
(0, import_class_validator54.IsNotEmpty)({ message: "Please enter company name." }),
|
|
4777
|
+
(0, import_class_validator54.IsString)()
|
|
4752
4778
|
], CreateClientDto.prototype, "companyName", 2);
|
|
4753
4779
|
__decorateClass([
|
|
4754
|
-
(0,
|
|
4755
|
-
(0,
|
|
4780
|
+
(0, import_class_validator54.IsArray)({ message: "Skills should be an array." }),
|
|
4781
|
+
(0, import_class_validator54.IsNotEmpty)({ message: "Please enter skills." })
|
|
4756
4782
|
], CreateClientDto.prototype, "skills", 2);
|
|
4757
4783
|
__decorateClass([
|
|
4758
|
-
(0,
|
|
4759
|
-
(0,
|
|
4784
|
+
(0, import_class_validator54.IsNotEmpty)({ message: "Please specify required freelancer count." }),
|
|
4785
|
+
(0, import_class_validator54.IsString)()
|
|
4760
4786
|
], CreateClientDto.prototype, "requiredFreelancer", 2);
|
|
4761
4787
|
__decorateClass([
|
|
4762
|
-
(0,
|
|
4763
|
-
(0,
|
|
4788
|
+
(0, import_class_validator54.IsNotEmpty)({ message: "Please specify the kind of hiring." }),
|
|
4789
|
+
(0, import_class_validator54.IsEnum)(CreateClientHiringTypeEnum)
|
|
4764
4790
|
], CreateClientDto.prototype, "kindOfHiring", 2);
|
|
4765
4791
|
__decorateClass([
|
|
4766
|
-
(0,
|
|
4767
|
-
(0,
|
|
4792
|
+
(0, import_class_validator54.IsNotEmpty)({ message: "Please specify the mode of hire." }),
|
|
4793
|
+
(0, import_class_validator54.IsEnum)(CreateClientHiringModeEnum)
|
|
4768
4794
|
], CreateClientDto.prototype, "modeOfHire", 2);
|
|
4769
4795
|
__decorateClass([
|
|
4770
|
-
(0,
|
|
4771
|
-
(0,
|
|
4796
|
+
(0, import_class_validator54.IsNotEmpty)({ message: "Please let us know how you found us." }),
|
|
4797
|
+
(0, import_class_validator54.IsString)()
|
|
4772
4798
|
], CreateClientDto.prototype, "foundUsOn", 2);
|
|
4773
4799
|
__decorateClass([
|
|
4774
|
-
(0,
|
|
4775
|
-
(0,
|
|
4800
|
+
(0, import_class_validator54.IsOptional)(),
|
|
4801
|
+
(0, import_class_validator54.IsString)()
|
|
4776
4802
|
], CreateClientDto.prototype, "foundUsOnDetail", 2);
|
|
4777
4803
|
|
|
4778
4804
|
// src/modules/client-admin/dto/update-client-status.dto.ts
|
|
4779
|
-
var
|
|
4805
|
+
var import_class_validator55 = require("class-validator");
|
|
4780
4806
|
var UpdateClientAccountStatusDto = class {
|
|
4781
4807
|
};
|
|
4782
4808
|
__decorateClass([
|
|
4783
|
-
(0,
|
|
4784
|
-
(0,
|
|
4809
|
+
(0, import_class_validator55.IsNotEmpty)({ message: "Please enter account status." }),
|
|
4810
|
+
(0, import_class_validator55.IsString)()
|
|
4785
4811
|
], UpdateClientAccountStatusDto.prototype, "accountStatus", 2);
|
|
4786
4812
|
|
|
4787
4813
|
// src/modules/client-admin/dto/update-client.dto.ts
|
|
4788
4814
|
var import_class_transformer9 = require("class-transformer");
|
|
4789
|
-
var
|
|
4815
|
+
var import_class_validator56 = require("class-validator");
|
|
4790
4816
|
var UpdateClientHiringModeEnum = /* @__PURE__ */ ((UpdateClientHiringModeEnum2) => {
|
|
4791
4817
|
UpdateClientHiringModeEnum2["REMOTE"] = "REMOTE";
|
|
4792
4818
|
UpdateClientHiringModeEnum2["ONSITE"] = "ONSITE";
|
|
@@ -4802,53 +4828,53 @@ var UpdateClientHiringTypeEnum = /* @__PURE__ */ ((UpdateClientHiringTypeEnum2)
|
|
|
4802
4828
|
var UpdateClientDto = class {
|
|
4803
4829
|
};
|
|
4804
4830
|
__decorateClass([
|
|
4805
|
-
(0,
|
|
4806
|
-
(0,
|
|
4831
|
+
(0, import_class_validator56.IsNotEmpty)({ message: "Please enter first name." }),
|
|
4832
|
+
(0, import_class_validator56.IsString)()
|
|
4807
4833
|
], UpdateClientDto.prototype, "firstName", 2);
|
|
4808
4834
|
__decorateClass([
|
|
4809
|
-
(0,
|
|
4810
|
-
(0,
|
|
4835
|
+
(0, import_class_validator56.IsNotEmpty)({ message: "Please enter last name." }),
|
|
4836
|
+
(0, import_class_validator56.IsString)()
|
|
4811
4837
|
], UpdateClientDto.prototype, "lastName", 2);
|
|
4812
4838
|
__decorateClass([
|
|
4813
|
-
(0,
|
|
4814
|
-
(0,
|
|
4839
|
+
(0, import_class_validator56.IsNotEmpty)({ message: "Please enter email." }),
|
|
4840
|
+
(0, import_class_validator56.IsEmail)()
|
|
4815
4841
|
], UpdateClientDto.prototype, "email", 2);
|
|
4816
4842
|
__decorateClass([
|
|
4817
|
-
(0,
|
|
4843
|
+
(0, import_class_validator56.IsOptional)(),
|
|
4818
4844
|
(0, import_class_transformer9.Transform)(({ value }) => value === null || value === "" ? void 0 : value),
|
|
4819
|
-
(0,
|
|
4820
|
-
(0,
|
|
4821
|
-
(0,
|
|
4845
|
+
(0, import_class_validator56.MinLength)(6, { message: "Password must be at least 6 characters." }),
|
|
4846
|
+
(0, import_class_validator56.MaxLength)(32, { message: "Password must not exceed 32 characters." }),
|
|
4847
|
+
(0, import_class_validator56.Matches)(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
4822
4848
|
message: "Password must include letters, numbers and symbols."
|
|
4823
4849
|
})
|
|
4824
4850
|
], UpdateClientDto.prototype, "password", 2);
|
|
4825
4851
|
__decorateClass([
|
|
4826
|
-
(0,
|
|
4827
|
-
(0,
|
|
4852
|
+
(0, import_class_validator56.IsNotEmpty)({ message: "Please enter company name." }),
|
|
4853
|
+
(0, import_class_validator56.IsString)()
|
|
4828
4854
|
], UpdateClientDto.prototype, "companyName", 2);
|
|
4829
4855
|
__decorateClass([
|
|
4830
|
-
(0,
|
|
4831
|
-
(0,
|
|
4856
|
+
(0, import_class_validator56.IsArray)({ message: "Skills should be an array." }),
|
|
4857
|
+
(0, import_class_validator56.IsNotEmpty)({ message: "Please enter skills." })
|
|
4832
4858
|
], UpdateClientDto.prototype, "skills", 2);
|
|
4833
4859
|
__decorateClass([
|
|
4834
|
-
(0,
|
|
4835
|
-
(0,
|
|
4860
|
+
(0, import_class_validator56.IsNotEmpty)({ message: "Please specify required freelancer count." }),
|
|
4861
|
+
(0, import_class_validator56.IsString)()
|
|
4836
4862
|
], UpdateClientDto.prototype, "requiredFreelancer", 2);
|
|
4837
4863
|
__decorateClass([
|
|
4838
|
-
(0,
|
|
4839
|
-
(0,
|
|
4864
|
+
(0, import_class_validator56.IsNotEmpty)({ message: "Please specify the kind of hiring." }),
|
|
4865
|
+
(0, import_class_validator56.IsEnum)(UpdateClientHiringTypeEnum)
|
|
4840
4866
|
], UpdateClientDto.prototype, "kindOfHiring", 2);
|
|
4841
4867
|
__decorateClass([
|
|
4842
|
-
(0,
|
|
4843
|
-
(0,
|
|
4868
|
+
(0, import_class_validator56.IsNotEmpty)({ message: "Please specify the mode of hire." }),
|
|
4869
|
+
(0, import_class_validator56.IsEnum)(UpdateClientHiringModeEnum)
|
|
4844
4870
|
], UpdateClientDto.prototype, "modeOfHire", 2);
|
|
4845
4871
|
__decorateClass([
|
|
4846
|
-
(0,
|
|
4847
|
-
(0,
|
|
4872
|
+
(0, import_class_validator56.IsNotEmpty)({ message: "Please let us know how you found us." }),
|
|
4873
|
+
(0, import_class_validator56.IsString)()
|
|
4848
4874
|
], UpdateClientDto.prototype, "foundUsOn", 2);
|
|
4849
4875
|
__decorateClass([
|
|
4850
|
-
(0,
|
|
4851
|
-
(0,
|
|
4876
|
+
(0, import_class_validator56.IsOptional)(),
|
|
4877
|
+
(0, import_class_validator56.IsString)()
|
|
4852
4878
|
], UpdateClientDto.prototype, "foundUsOnDetail", 2);
|
|
4853
4879
|
|
|
4854
4880
|
// src/modules/user/freelancer-declaration/pattern/pattern.ts
|
|
@@ -4858,7 +4884,7 @@ var FREELANCER_DECLARATION_PATTERN = {
|
|
|
4858
4884
|
};
|
|
4859
4885
|
|
|
4860
4886
|
// src/modules/user/freelancer-declaration/dto/freelancer-declaration.dto.ts
|
|
4861
|
-
var
|
|
4887
|
+
var import_class_validator57 = require("class-validator");
|
|
4862
4888
|
var DocumentTypeEnum = /* @__PURE__ */ ((DocumentTypeEnum2) => {
|
|
4863
4889
|
DocumentTypeEnum2["AADHAAR"] = "AADHAAR_CARD";
|
|
4864
4890
|
DocumentTypeEnum2["PASSPORT"] = "PASSPORT";
|
|
@@ -4869,16 +4895,16 @@ var DocumentTypeEnum = /* @__PURE__ */ ((DocumentTypeEnum2) => {
|
|
|
4869
4895
|
var FreelancerDeclarationDto = class {
|
|
4870
4896
|
};
|
|
4871
4897
|
__decorateClass([
|
|
4872
|
-
(0,
|
|
4873
|
-
(0,
|
|
4898
|
+
(0, import_class_validator57.IsOptional)(),
|
|
4899
|
+
(0, import_class_validator57.IsString)({ message: "UUID must be a string" })
|
|
4874
4900
|
], FreelancerDeclarationDto.prototype, "uuid", 2);
|
|
4875
4901
|
__decorateClass([
|
|
4876
|
-
(0,
|
|
4902
|
+
(0, import_class_validator57.IsEnum)(DocumentTypeEnum, { message: "Document type must be one of AADHAAR_CARD, PASSPORT, DRIVING_LICENSE, PAN_CARD" })
|
|
4877
4903
|
], FreelancerDeclarationDto.prototype, "documentType", 2);
|
|
4878
4904
|
__decorateClass([
|
|
4879
|
-
(0,
|
|
4880
|
-
(0,
|
|
4881
|
-
(0,
|
|
4905
|
+
(0, import_class_validator57.IsNotEmpty)({ message: "Please accept the declaration " }),
|
|
4906
|
+
(0, import_class_validator57.IsString)(),
|
|
4907
|
+
(0, import_class_validator57.IsIn)([
|
|
4882
4908
|
"true"
|
|
4883
4909
|
])
|
|
4884
4910
|
], FreelancerDeclarationDto.prototype, "declarationAccepted", 2);
|
|
@@ -4893,36 +4919,36 @@ var CMS_PATTERNS = {
|
|
|
4893
4919
|
};
|
|
4894
4920
|
|
|
4895
4921
|
// src/modules/cms/dto/create-cms.dto.ts
|
|
4896
|
-
var
|
|
4922
|
+
var import_class_validator58 = require("class-validator");
|
|
4897
4923
|
var CreateCmsDto = class {
|
|
4898
4924
|
};
|
|
4899
4925
|
__decorateClass([
|
|
4900
|
-
(0,
|
|
4926
|
+
(0, import_class_validator58.IsNotEmpty)({ message: "Please enter name." })
|
|
4901
4927
|
], CreateCmsDto.prototype, "title", 2);
|
|
4902
4928
|
__decorateClass([
|
|
4903
|
-
(0,
|
|
4929
|
+
(0, import_class_validator58.IsOptional)()
|
|
4904
4930
|
], CreateCmsDto.prototype, "content", 2);
|
|
4905
4931
|
__decorateClass([
|
|
4906
|
-
(0,
|
|
4907
|
-
(0,
|
|
4932
|
+
(0, import_class_validator58.IsOptional)(),
|
|
4933
|
+
(0, import_class_validator58.IsBoolean)({ message: "Is active must be a boolean value" })
|
|
4908
4934
|
], CreateCmsDto.prototype, "isActive", 2);
|
|
4909
4935
|
|
|
4910
4936
|
// src/modules/cms/dto/update-cms.dto.ts
|
|
4911
|
-
var
|
|
4937
|
+
var import_class_validator59 = require("class-validator");
|
|
4912
4938
|
var UpdateCmsDto = class {
|
|
4913
4939
|
};
|
|
4914
4940
|
__decorateClass([
|
|
4915
|
-
(0,
|
|
4941
|
+
(0, import_class_validator59.IsOptional)()
|
|
4916
4942
|
], UpdateCmsDto.prototype, "uuid", 2);
|
|
4917
4943
|
__decorateClass([
|
|
4918
|
-
(0,
|
|
4944
|
+
(0, import_class_validator59.IsNotEmpty)({ message: "Please enter name." })
|
|
4919
4945
|
], UpdateCmsDto.prototype, "title", 2);
|
|
4920
4946
|
__decorateClass([
|
|
4921
|
-
(0,
|
|
4947
|
+
(0, import_class_validator59.IsOptional)()
|
|
4922
4948
|
], UpdateCmsDto.prototype, "content", 2);
|
|
4923
4949
|
__decorateClass([
|
|
4924
|
-
(0,
|
|
4925
|
-
(0,
|
|
4950
|
+
(0, import_class_validator59.IsOptional)(),
|
|
4951
|
+
(0, import_class_validator59.IsBoolean)({ message: "Is active must be a boolean value" })
|
|
4926
4952
|
], UpdateCmsDto.prototype, "isActive", 2);
|
|
4927
4953
|
|
|
4928
4954
|
// src/modules/geographic/pattern/pattern.ts
|
|
@@ -4950,7 +4976,7 @@ var ADMIN_JOB_PATTERN = {
|
|
|
4950
4976
|
|
|
4951
4977
|
// src/modules/job-admin/dto/admin-create-job-information.dto.ts
|
|
4952
4978
|
var import_class_transformer10 = require("class-transformer");
|
|
4953
|
-
var
|
|
4979
|
+
var import_class_validator60 = require("class-validator");
|
|
4954
4980
|
var JobLocationEnumDto = /* @__PURE__ */ ((JobLocationEnumDto2) => {
|
|
4955
4981
|
JobLocationEnumDto2["ONSITE"] = "ONSITE";
|
|
4956
4982
|
JobLocationEnumDto2["REMOTE"] = "REMOTE";
|
|
@@ -4966,88 +4992,88 @@ var TypeOfEmploymentEnumDto = /* @__PURE__ */ ((TypeOfEmploymentEnumDto2) => {
|
|
|
4966
4992
|
var AdminCreateJobInformationDto = class {
|
|
4967
4993
|
};
|
|
4968
4994
|
__decorateClass([
|
|
4969
|
-
(0,
|
|
4970
|
-
(0,
|
|
4995
|
+
(0, import_class_validator60.IsString)({ message: "Job role must be a string." }),
|
|
4996
|
+
(0, import_class_validator60.IsNotEmpty)({ message: "Job role is required." })
|
|
4971
4997
|
], AdminCreateJobInformationDto.prototype, "jobRole", 2);
|
|
4972
4998
|
__decorateClass([
|
|
4973
|
-
(0,
|
|
4974
|
-
(0,
|
|
4999
|
+
(0, import_class_validator60.IsOptional)(),
|
|
5000
|
+
(0, import_class_validator60.IsString)({ message: "Note must be a string." })
|
|
4975
5001
|
], AdminCreateJobInformationDto.prototype, "note", 2);
|
|
4976
5002
|
__decorateClass([
|
|
4977
|
-
(0,
|
|
4978
|
-
(0,
|
|
4979
|
-
(0,
|
|
5003
|
+
(0, import_class_validator60.IsArray)({ message: "Skills must be an array of skill names." }),
|
|
5004
|
+
(0, import_class_validator60.ArrayNotEmpty)({ message: "At least one skill must be provided." }),
|
|
5005
|
+
(0, import_class_validator60.IsString)({ each: true, message: "Each skill must be a valid string." })
|
|
4980
5006
|
], AdminCreateJobInformationDto.prototype, "skills", 2);
|
|
4981
5007
|
__decorateClass([
|
|
4982
|
-
(0,
|
|
4983
|
-
(0,
|
|
5008
|
+
(0, import_class_validator60.IsInt)({ message: "Openings must be a valid integer." }),
|
|
5009
|
+
(0, import_class_validator60.Min)(1, { message: "There must be at least one opening." })
|
|
4984
5010
|
], AdminCreateJobInformationDto.prototype, "openings", 2);
|
|
4985
5011
|
__decorateClass([
|
|
4986
|
-
(0,
|
|
5012
|
+
(0, import_class_validator60.IsEnum)(JobLocationEnumDto, {
|
|
4987
5013
|
message: `Location must be one of: ${Object.values(JobLocationEnumDto).join(
|
|
4988
5014
|
", "
|
|
4989
5015
|
)}.`
|
|
4990
5016
|
})
|
|
4991
5017
|
], AdminCreateJobInformationDto.prototype, "location", 2);
|
|
4992
5018
|
__decorateClass([
|
|
4993
|
-
(0,
|
|
5019
|
+
(0, import_class_validator60.IsEnum)(TypeOfEmploymentEnumDto, {
|
|
4994
5020
|
message: `Type of employment must be one of: ${Object.values(
|
|
4995
5021
|
TypeOfEmploymentEnumDto
|
|
4996
5022
|
).join(", ")}.`
|
|
4997
5023
|
})
|
|
4998
5024
|
], AdminCreateJobInformationDto.prototype, "typeOfEmployment", 2);
|
|
4999
5025
|
__decorateClass([
|
|
5000
|
-
(0,
|
|
5001
|
-
(0,
|
|
5026
|
+
(0, import_class_validator60.IsString)({ message: "Onboarding Days must be a string." }),
|
|
5027
|
+
(0, import_class_validator60.IsNotEmpty)({ message: "Onboarding Days is required." })
|
|
5002
5028
|
], AdminCreateJobInformationDto.prototype, "onboardingTat", 2);
|
|
5003
5029
|
__decorateClass([
|
|
5004
|
-
(0,
|
|
5005
|
-
(0,
|
|
5030
|
+
(0, import_class_validator60.IsString)({ message: "Communication skills must be a string." }),
|
|
5031
|
+
(0, import_class_validator60.IsNotEmpty)({ message: "Communication skills are required." })
|
|
5006
5032
|
], AdminCreateJobInformationDto.prototype, "candidateCommunicationSkills", 2);
|
|
5007
5033
|
__decorateClass([
|
|
5008
|
-
(0,
|
|
5009
|
-
(0,
|
|
5034
|
+
(0, import_class_validator60.IsString)({ message: "Currency must be a string." }),
|
|
5035
|
+
(0, import_class_validator60.IsNotEmpty)({ message: "Currency is required." })
|
|
5010
5036
|
], AdminCreateJobInformationDto.prototype, "currency", 2);
|
|
5011
5037
|
__decorateClass([
|
|
5012
5038
|
(0, import_class_transformer10.Type)(() => Number),
|
|
5013
|
-
(0,
|
|
5039
|
+
(0, import_class_validator60.IsNumber)({}, { message: "Expected salary from must be a number." })
|
|
5014
5040
|
], AdminCreateJobInformationDto.prototype, "expectedSalaryFrom", 2);
|
|
5015
5041
|
__decorateClass([
|
|
5016
5042
|
(0, import_class_transformer10.Type)(() => Number),
|
|
5017
|
-
(0,
|
|
5043
|
+
(0, import_class_validator60.IsNumber)({}, { message: "Expected salary to must be a number." })
|
|
5018
5044
|
], AdminCreateJobInformationDto.prototype, "expectedSalaryTo", 2);
|
|
5019
5045
|
__decorateClass([
|
|
5020
|
-
(0,
|
|
5046
|
+
(0, import_class_validator60.IsDateString)(
|
|
5021
5047
|
{ strict: true },
|
|
5022
5048
|
{ message: "Start date must be in YYYY-MM-DD format." }
|
|
5023
5049
|
)
|
|
5024
5050
|
], AdminCreateJobInformationDto.prototype, "tentativeStartDate", 2);
|
|
5025
5051
|
__decorateClass([
|
|
5026
|
-
(0,
|
|
5052
|
+
(0, import_class_validator60.IsDateString)(
|
|
5027
5053
|
{ strict: true },
|
|
5028
5054
|
{ message: "End date must be in YYYY-MM-DD format." }
|
|
5029
5055
|
)
|
|
5030
5056
|
], AdminCreateJobInformationDto.prototype, "tentativeEndDate", 2);
|
|
5031
5057
|
__decorateClass([
|
|
5032
|
-
(0,
|
|
5033
|
-
(0,
|
|
5058
|
+
(0, import_class_validator60.IsOptional)(),
|
|
5059
|
+
(0, import_class_validator60.IsString)({ message: "Additional comment must be a string." })
|
|
5034
5060
|
], AdminCreateJobInformationDto.prototype, "additionalComment", 2);
|
|
5035
5061
|
__decorateClass([
|
|
5036
|
-
(0,
|
|
5062
|
+
(0, import_class_validator60.IsInt)({ message: "Country ID must be a valid integer." })
|
|
5037
5063
|
], AdminCreateJobInformationDto.prototype, "countryId", 2);
|
|
5038
5064
|
__decorateClass([
|
|
5039
|
-
(0,
|
|
5065
|
+
(0, import_class_validator60.IsInt)({ message: "State ID must be a valid integer." })
|
|
5040
5066
|
], AdminCreateJobInformationDto.prototype, "stateId", 2);
|
|
5041
5067
|
__decorateClass([
|
|
5042
|
-
(0,
|
|
5068
|
+
(0, import_class_validator60.IsInt)({ message: "City ID must be a valid integer." })
|
|
5043
5069
|
], AdminCreateJobInformationDto.prototype, "cityId", 2);
|
|
5044
5070
|
__decorateClass([
|
|
5045
|
-
(0,
|
|
5071
|
+
(0, import_class_validator60.IsInt)({ message: "Client ID must be a valid integer." })
|
|
5046
5072
|
], AdminCreateJobInformationDto.prototype, "clientId", 2);
|
|
5047
5073
|
|
|
5048
5074
|
// src/modules/job-admin/dto/admin-update-job-information.dto.ts
|
|
5049
5075
|
var import_class_transformer11 = require("class-transformer");
|
|
5050
|
-
var
|
|
5076
|
+
var import_class_validator61 = require("class-validator");
|
|
5051
5077
|
var JobLocationEnums = /* @__PURE__ */ ((JobLocationEnums2) => {
|
|
5052
5078
|
JobLocationEnums2["ONSITE"] = "ONSITE";
|
|
5053
5079
|
JobLocationEnums2["REMOTE"] = "REMOTE";
|
|
@@ -5063,83 +5089,83 @@ var TypeOfEmploymentEnums = /* @__PURE__ */ ((TypeOfEmploymentEnums2) => {
|
|
|
5063
5089
|
var AdminUpdateJobInformationDto = class {
|
|
5064
5090
|
};
|
|
5065
5091
|
__decorateClass([
|
|
5066
|
-
(0,
|
|
5067
|
-
(0,
|
|
5092
|
+
(0, import_class_validator61.IsString)({ message: "Job role must be a string." }),
|
|
5093
|
+
(0, import_class_validator61.IsNotEmpty)({ message: "Job role is required." })
|
|
5068
5094
|
], AdminUpdateJobInformationDto.prototype, "jobRole", 2);
|
|
5069
5095
|
__decorateClass([
|
|
5070
|
-
(0,
|
|
5071
|
-
(0,
|
|
5096
|
+
(0, import_class_validator61.IsOptional)(),
|
|
5097
|
+
(0, import_class_validator61.IsString)({ message: "Note must be a string." })
|
|
5072
5098
|
], AdminUpdateJobInformationDto.prototype, "note", 2);
|
|
5073
5099
|
__decorateClass([
|
|
5074
|
-
(0,
|
|
5075
|
-
(0,
|
|
5076
|
-
(0,
|
|
5100
|
+
(0, import_class_validator61.IsArray)({ message: "Skills must be an array of skill names." }),
|
|
5101
|
+
(0, import_class_validator61.ArrayNotEmpty)({ message: "At least one skill must be provided." }),
|
|
5102
|
+
(0, import_class_validator61.IsString)({ each: true, message: "Each skill must be a valid string." })
|
|
5077
5103
|
], AdminUpdateJobInformationDto.prototype, "skills", 2);
|
|
5078
5104
|
__decorateClass([
|
|
5079
|
-
(0,
|
|
5080
|
-
(0,
|
|
5105
|
+
(0, import_class_validator61.IsInt)({ message: "Openings must be a valid integer." }),
|
|
5106
|
+
(0, import_class_validator61.Min)(1, { message: "There must be at least one opening." })
|
|
5081
5107
|
], AdminUpdateJobInformationDto.prototype, "openings", 2);
|
|
5082
5108
|
__decorateClass([
|
|
5083
|
-
(0,
|
|
5109
|
+
(0, import_class_validator61.IsEnum)(JobLocationEnums, {
|
|
5084
5110
|
message: `Location must be one of: ${Object.values(JobLocationEnums).join(
|
|
5085
5111
|
", "
|
|
5086
5112
|
)}.`
|
|
5087
5113
|
})
|
|
5088
5114
|
], AdminUpdateJobInformationDto.prototype, "location", 2);
|
|
5089
5115
|
__decorateClass([
|
|
5090
|
-
(0,
|
|
5116
|
+
(0, import_class_validator61.IsEnum)(TypeOfEmploymentEnums, {
|
|
5091
5117
|
message: `Type of employment must be one of: ${Object.values(
|
|
5092
5118
|
TypeOfEmploymentEnums
|
|
5093
5119
|
).join(", ")}.`
|
|
5094
5120
|
})
|
|
5095
5121
|
], AdminUpdateJobInformationDto.prototype, "typeOfEmployment", 2);
|
|
5096
5122
|
__decorateClass([
|
|
5097
|
-
(0,
|
|
5098
|
-
(0,
|
|
5123
|
+
(0, import_class_validator61.IsString)({ message: "Onboarding Days must be a string." }),
|
|
5124
|
+
(0, import_class_validator61.IsNotEmpty)({ message: "Onboarding Days is required." })
|
|
5099
5125
|
], AdminUpdateJobInformationDto.prototype, "onboardingTat", 2);
|
|
5100
5126
|
__decorateClass([
|
|
5101
|
-
(0,
|
|
5102
|
-
(0,
|
|
5127
|
+
(0, import_class_validator61.IsString)({ message: "Communication skills must be a string." }),
|
|
5128
|
+
(0, import_class_validator61.IsNotEmpty)({ message: "Communication skills are required." })
|
|
5103
5129
|
], AdminUpdateJobInformationDto.prototype, "candidateCommunicationSkills", 2);
|
|
5104
5130
|
__decorateClass([
|
|
5105
|
-
(0,
|
|
5106
|
-
(0,
|
|
5131
|
+
(0, import_class_validator61.IsString)({ message: "Currency must be a string." }),
|
|
5132
|
+
(0, import_class_validator61.IsNotEmpty)({ message: "Currency is required." })
|
|
5107
5133
|
], AdminUpdateJobInformationDto.prototype, "currency", 2);
|
|
5108
5134
|
__decorateClass([
|
|
5109
5135
|
(0, import_class_transformer11.Type)(() => Number),
|
|
5110
|
-
(0,
|
|
5136
|
+
(0, import_class_validator61.IsNumber)({}, { message: "Expected salary from must be a number." })
|
|
5111
5137
|
], AdminUpdateJobInformationDto.prototype, "expectedSalaryFrom", 2);
|
|
5112
5138
|
__decorateClass([
|
|
5113
5139
|
(0, import_class_transformer11.Type)(() => Number),
|
|
5114
|
-
(0,
|
|
5140
|
+
(0, import_class_validator61.IsNumber)({}, { message: "Expected salary to must be a number." })
|
|
5115
5141
|
], AdminUpdateJobInformationDto.prototype, "expectedSalaryTo", 2);
|
|
5116
5142
|
__decorateClass([
|
|
5117
|
-
(0,
|
|
5143
|
+
(0, import_class_validator61.IsDateString)(
|
|
5118
5144
|
{ strict: true },
|
|
5119
5145
|
{ message: "Start date must be in YYYY-MM-DD format." }
|
|
5120
5146
|
)
|
|
5121
5147
|
], AdminUpdateJobInformationDto.prototype, "tentativeStartDate", 2);
|
|
5122
5148
|
__decorateClass([
|
|
5123
|
-
(0,
|
|
5149
|
+
(0, import_class_validator61.IsDateString)(
|
|
5124
5150
|
{ strict: true },
|
|
5125
5151
|
{ message: "End date must be in YYYY-MM-DD format." }
|
|
5126
5152
|
)
|
|
5127
5153
|
], AdminUpdateJobInformationDto.prototype, "tentativeEndDate", 2);
|
|
5128
5154
|
__decorateClass([
|
|
5129
|
-
(0,
|
|
5130
|
-
(0,
|
|
5155
|
+
(0, import_class_validator61.IsOptional)(),
|
|
5156
|
+
(0, import_class_validator61.IsString)({ message: "Additional comment must be a string." })
|
|
5131
5157
|
], AdminUpdateJobInformationDto.prototype, "additionalComment", 2);
|
|
5132
5158
|
__decorateClass([
|
|
5133
|
-
(0,
|
|
5159
|
+
(0, import_class_validator61.IsInt)({ message: "Country ID must be a valid integer." })
|
|
5134
5160
|
], AdminUpdateJobInformationDto.prototype, "countryId", 2);
|
|
5135
5161
|
__decorateClass([
|
|
5136
|
-
(0,
|
|
5162
|
+
(0, import_class_validator61.IsInt)({ message: "State ID must be a valid integer." })
|
|
5137
5163
|
], AdminUpdateJobInformationDto.prototype, "stateId", 2);
|
|
5138
5164
|
__decorateClass([
|
|
5139
|
-
(0,
|
|
5165
|
+
(0, import_class_validator61.IsInt)({ message: "City ID must be a valid integer." })
|
|
5140
5166
|
], AdminUpdateJobInformationDto.prototype, "cityId", 2);
|
|
5141
5167
|
__decorateClass([
|
|
5142
|
-
(0,
|
|
5168
|
+
(0, import_class_validator61.IsInt)({ message: "Client ID must be a valid integer." })
|
|
5143
5169
|
], AdminUpdateJobInformationDto.prototype, "clientId", 2);
|
|
5144
5170
|
|
|
5145
5171
|
// src/modules/lead/pattern/pattern.ts
|
|
@@ -5149,7 +5175,7 @@ var LEAD_PATTERN = {
|
|
|
5149
5175
|
};
|
|
5150
5176
|
|
|
5151
5177
|
// src/modules/lead/dto/create-lead.dto.ts
|
|
5152
|
-
var
|
|
5178
|
+
var import_class_validator62 = require("class-validator");
|
|
5153
5179
|
var CategoryEmumDto = /* @__PURE__ */ ((CategoryEmumDto2) => {
|
|
5154
5180
|
CategoryEmumDto2["BUSINESS"] = "BUSINESS";
|
|
5155
5181
|
CategoryEmumDto2["FREELANCER"] = "FREELANCER";
|
|
@@ -5158,23 +5184,23 @@ var CategoryEmumDto = /* @__PURE__ */ ((CategoryEmumDto2) => {
|
|
|
5158
5184
|
var CreateLeadDto = class {
|
|
5159
5185
|
};
|
|
5160
5186
|
__decorateClass([
|
|
5161
|
-
(0,
|
|
5187
|
+
(0, import_class_validator62.IsString)({ message: "Name must be a string" })
|
|
5162
5188
|
], CreateLeadDto.prototype, "name", 2);
|
|
5163
5189
|
__decorateClass([
|
|
5164
|
-
(0,
|
|
5190
|
+
(0, import_class_validator62.IsEmail)({}, { message: "Invalid email address" })
|
|
5165
5191
|
], CreateLeadDto.prototype, "email", 2);
|
|
5166
5192
|
__decorateClass([
|
|
5167
|
-
(0,
|
|
5193
|
+
(0, import_class_validator62.IsString)({ message: "Mobile code must be a string (e.g., +1)" })
|
|
5168
5194
|
], CreateLeadDto.prototype, "mobileCode", 2);
|
|
5169
5195
|
__decorateClass([
|
|
5170
|
-
(0,
|
|
5196
|
+
(0, import_class_validator62.IsString)({ message: "Mobile must be a string (e.g., 1243253534)" })
|
|
5171
5197
|
], CreateLeadDto.prototype, "mobile", 2);
|
|
5172
5198
|
__decorateClass([
|
|
5173
|
-
(0,
|
|
5174
|
-
(0,
|
|
5199
|
+
(0, import_class_validator62.IsOptional)(),
|
|
5200
|
+
(0, import_class_validator62.IsString)({ message: "Description must be a string" })
|
|
5175
5201
|
], CreateLeadDto.prototype, "description", 2);
|
|
5176
5202
|
__decorateClass([
|
|
5177
|
-
(0,
|
|
5203
|
+
(0, import_class_validator62.IsEnum)(CategoryEmumDto, {
|
|
5178
5204
|
message: `Type of category must be one of: ${Object.values(
|
|
5179
5205
|
CategoryEmumDto
|
|
5180
5206
|
).join(", ")}`
|
|
@@ -5194,46 +5220,46 @@ var ADMIN_ROLE_PATTERN = {
|
|
|
5194
5220
|
};
|
|
5195
5221
|
|
|
5196
5222
|
// src/modules/admin-role/dto/create-admin-role.dto.ts
|
|
5197
|
-
var
|
|
5223
|
+
var import_class_validator63 = require("class-validator");
|
|
5198
5224
|
var CreateAdminRoleDto = class {
|
|
5199
5225
|
};
|
|
5200
5226
|
__decorateClass([
|
|
5201
|
-
(0,
|
|
5202
|
-
(0,
|
|
5227
|
+
(0, import_class_validator63.IsNotEmpty)({ message: "Please enter admin role name." }),
|
|
5228
|
+
(0, import_class_validator63.IsString)({ message: "Role name must be a string." })
|
|
5203
5229
|
], CreateAdminRoleDto.prototype, "roleName", 2);
|
|
5204
5230
|
__decorateClass([
|
|
5205
|
-
(0,
|
|
5206
|
-
(0,
|
|
5231
|
+
(0, import_class_validator63.IsOptional)(),
|
|
5232
|
+
(0, import_class_validator63.IsString)({ message: "Role description must be a string." })
|
|
5207
5233
|
], CreateAdminRoleDto.prototype, "roleDescription", 2);
|
|
5208
5234
|
|
|
5209
5235
|
// src/modules/admin-role/dto/update-admin-role.dto.ts
|
|
5210
|
-
var
|
|
5236
|
+
var import_class_validator64 = require("class-validator");
|
|
5211
5237
|
var UpdateAdminRoleDto = class {
|
|
5212
5238
|
};
|
|
5213
5239
|
__decorateClass([
|
|
5214
|
-
(0,
|
|
5215
|
-
(0,
|
|
5240
|
+
(0, import_class_validator64.IsNotEmpty)({ message: "Please enter admin role name." }),
|
|
5241
|
+
(0, import_class_validator64.IsString)({ message: "Role name must be a string." })
|
|
5216
5242
|
], UpdateAdminRoleDto.prototype, "roleName", 2);
|
|
5217
5243
|
__decorateClass([
|
|
5218
|
-
(0,
|
|
5219
|
-
(0,
|
|
5244
|
+
(0, import_class_validator64.IsOptional)(),
|
|
5245
|
+
(0, import_class_validator64.IsString)({ message: "Role description must be a string." })
|
|
5220
5246
|
], UpdateAdminRoleDto.prototype, "roleDescription", 2);
|
|
5221
5247
|
__decorateClass([
|
|
5222
|
-
(0,
|
|
5223
|
-
(0,
|
|
5248
|
+
(0, import_class_validator64.IsOptional)(),
|
|
5249
|
+
(0, import_class_validator64.IsBoolean)({ message: "Is active must be a boolean value." })
|
|
5224
5250
|
], UpdateAdminRoleDto.prototype, "isActive", 2);
|
|
5225
5251
|
|
|
5226
5252
|
// src/modules/admin-role/dto/attach-permissions-to-role.dto.ts
|
|
5227
|
-
var
|
|
5253
|
+
var import_class_validator65 = require("class-validator");
|
|
5228
5254
|
var AttachPermissionsToRoleDto = class {
|
|
5229
5255
|
};
|
|
5230
5256
|
__decorateClass([
|
|
5231
|
-
(0,
|
|
5232
|
-
(0,
|
|
5257
|
+
(0, import_class_validator65.IsNotEmpty)({ message: "Please enter admin role ID." }),
|
|
5258
|
+
(0, import_class_validator65.IsString)({ message: "Role ID must be a string." })
|
|
5233
5259
|
], AttachPermissionsToRoleDto.prototype, "roleId", 2);
|
|
5234
5260
|
__decorateClass([
|
|
5235
|
-
(0,
|
|
5236
|
-
(0,
|
|
5261
|
+
(0, import_class_validator65.IsNotEmpty)({ message: "Please enter permission IDs." }),
|
|
5262
|
+
(0, import_class_validator65.IsString)({ message: "Permission IDs must be a comma-separated string." })
|
|
5237
5263
|
], AttachPermissionsToRoleDto.prototype, "permissionIds", 2);
|
|
5238
5264
|
|
|
5239
5265
|
// src/modules/admin-permission/pattern/pattern.ts
|
|
@@ -5259,7 +5285,7 @@ var CALENDLY_PATTERN = {
|
|
|
5259
5285
|
};
|
|
5260
5286
|
|
|
5261
5287
|
// src/modules/interview/dto/interview-invite.dto.ts
|
|
5262
|
-
var
|
|
5288
|
+
var import_class_validator66 = require("class-validator");
|
|
5263
5289
|
var import_class_transformer12 = require("class-transformer");
|
|
5264
5290
|
var CandidateType = /* @__PURE__ */ ((CandidateType2) => {
|
|
5265
5291
|
CandidateType2["SHORTLISTED"] = "SHORTLISTED";
|
|
@@ -5271,88 +5297,88 @@ var CandidateType = /* @__PURE__ */ ((CandidateType2) => {
|
|
|
5271
5297
|
var ExistingCandidateDto = class {
|
|
5272
5298
|
};
|
|
5273
5299
|
__decorateClass([
|
|
5274
|
-
(0,
|
|
5300
|
+
(0, import_class_validator66.IsUUID)()
|
|
5275
5301
|
], ExistingCandidateDto.prototype, "id", 2);
|
|
5276
5302
|
__decorateClass([
|
|
5277
|
-
(0,
|
|
5303
|
+
(0, import_class_validator66.IsEnum)(CandidateType, {
|
|
5278
5304
|
message: "type must be one of SHORTLISTED, APPLICATNTS, or RECOMMENDED"
|
|
5279
5305
|
})
|
|
5280
5306
|
], ExistingCandidateDto.prototype, "type", 2);
|
|
5281
5307
|
var NewCandidateDto = class {
|
|
5282
5308
|
};
|
|
5283
5309
|
__decorateClass([
|
|
5284
|
-
(0,
|
|
5285
|
-
(0,
|
|
5310
|
+
(0, import_class_validator66.IsNotEmpty)({ message: "Please enter the candidate name" }),
|
|
5311
|
+
(0, import_class_validator66.IsString)({ message: "Name must be a string" })
|
|
5286
5312
|
], NewCandidateDto.prototype, "name", 2);
|
|
5287
5313
|
__decorateClass([
|
|
5288
|
-
(0,
|
|
5314
|
+
(0, import_class_validator66.IsEmail)({}, { message: "Please enter a valid email." })
|
|
5289
5315
|
], NewCandidateDto.prototype, "email", 2);
|
|
5290
5316
|
__decorateClass([
|
|
5291
|
-
(0,
|
|
5317
|
+
(0, import_class_validator66.IsEnum)(CandidateType, {
|
|
5292
5318
|
message: "type must be NEW"
|
|
5293
5319
|
})
|
|
5294
5320
|
], NewCandidateDto.prototype, "type", 2);
|
|
5295
5321
|
var CandidatesDto = class {
|
|
5296
5322
|
};
|
|
5297
5323
|
__decorateClass([
|
|
5298
|
-
(0,
|
|
5299
|
-
(0,
|
|
5300
|
-
(0,
|
|
5301
|
-
(0,
|
|
5324
|
+
(0, import_class_validator66.ValidateIf)((o) => o.exixtingCandidates?.length > 0),
|
|
5325
|
+
(0, import_class_validator66.IsArray)({ message: "Existing candidates should be an array." }),
|
|
5326
|
+
(0, import_class_validator66.ArrayNotEmpty)({ message: "Please select at least one candidate." }),
|
|
5327
|
+
(0, import_class_validator66.ValidateNested)({ each: true }),
|
|
5302
5328
|
(0, import_class_transformer12.Type)(() => ExistingCandidateDto)
|
|
5303
5329
|
], CandidatesDto.prototype, "exixtingCandidates", 2);
|
|
5304
5330
|
__decorateClass([
|
|
5305
|
-
(0,
|
|
5306
|
-
(0,
|
|
5307
|
-
(0,
|
|
5308
|
-
(0,
|
|
5331
|
+
(0, import_class_validator66.ValidateIf)((o) => o.newCandidates?.length > 0),
|
|
5332
|
+
(0, import_class_validator66.IsArray)({ message: "New candidates should be an array." }),
|
|
5333
|
+
(0, import_class_validator66.ArrayNotEmpty)({ message: "Please add at least one candidate." }),
|
|
5334
|
+
(0, import_class_validator66.ValidateNested)({ each: true }),
|
|
5309
5335
|
(0, import_class_transformer12.Type)(() => NewCandidateDto)
|
|
5310
5336
|
], CandidatesDto.prototype, "newCandidates", 2);
|
|
5311
5337
|
var InterviewInviteDto = class {
|
|
5312
5338
|
};
|
|
5313
5339
|
__decorateClass([
|
|
5314
|
-
(0,
|
|
5340
|
+
(0, import_class_validator66.IsUUID)()
|
|
5315
5341
|
], InterviewInviteDto.prototype, "jobId", 2);
|
|
5316
5342
|
__decorateClass([
|
|
5317
|
-
(0,
|
|
5343
|
+
(0, import_class_validator66.ValidateNested)({ each: true }),
|
|
5318
5344
|
(0, import_class_transformer12.Type)(() => CandidatesDto)
|
|
5319
5345
|
], InterviewInviteDto.prototype, "candidates", 2);
|
|
5320
5346
|
|
|
5321
5347
|
// src/modules/interview/dto/create-f2f-interview.dto.ts
|
|
5322
|
-
var
|
|
5348
|
+
var import_class_validator67 = require("class-validator");
|
|
5323
5349
|
var CreateF2FInterviewDto = class {
|
|
5324
5350
|
};
|
|
5325
5351
|
__decorateClass([
|
|
5326
|
-
(0,
|
|
5327
|
-
(0,
|
|
5352
|
+
(0, import_class_validator67.IsEmail)({}, { message: "Please enter a valid email address." }),
|
|
5353
|
+
(0, import_class_validator67.IsNotEmpty)({ message: "Invitee email is required." })
|
|
5328
5354
|
], CreateF2FInterviewDto.prototype, "inviteeEmail", 2);
|
|
5329
5355
|
__decorateClass([
|
|
5330
|
-
(0,
|
|
5331
|
-
(0,
|
|
5356
|
+
(0, import_class_validator67.IsString)({ message: "Invitee name must be a string." }),
|
|
5357
|
+
(0, import_class_validator67.IsNotEmpty)({ message: "Invitee name is required." })
|
|
5332
5358
|
], CreateF2FInterviewDto.prototype, "inviteeName", 2);
|
|
5333
5359
|
__decorateClass([
|
|
5334
|
-
(0,
|
|
5360
|
+
(0, import_class_validator67.IsNumber)({}, { message: "Interview ID must be a number." })
|
|
5335
5361
|
], CreateF2FInterviewDto.prototype, "interviewId", 2);
|
|
5336
5362
|
__decorateClass([
|
|
5337
|
-
(0,
|
|
5363
|
+
(0, import_class_validator67.IsNumber)({}, { message: "Candidate ID must be a number." })
|
|
5338
5364
|
], CreateF2FInterviewDto.prototype, "candidateId", 2);
|
|
5339
5365
|
|
|
5340
5366
|
// src/modules/interview/dto/create-f2f-interview-reschedule-request.dto.ts
|
|
5341
|
-
var
|
|
5367
|
+
var import_class_validator68 = require("class-validator");
|
|
5342
5368
|
var CreateF2FInterviewRescheduleRequestDto = class {
|
|
5343
5369
|
};
|
|
5344
5370
|
__decorateClass([
|
|
5345
|
-
(0,
|
|
5371
|
+
(0, import_class_validator68.IsNotEmpty)({ message: "F2F Interview ID is required." })
|
|
5346
5372
|
], CreateF2FInterviewRescheduleRequestDto.prototype, "f2FInterviewId", 2);
|
|
5347
5373
|
__decorateClass([
|
|
5348
|
-
(0,
|
|
5374
|
+
(0, import_class_validator68.IsNotEmpty)({ message: "Rescheduled date is required." })
|
|
5349
5375
|
], CreateF2FInterviewRescheduleRequestDto.prototype, "rescheduledDate", 2);
|
|
5350
5376
|
__decorateClass([
|
|
5351
|
-
(0,
|
|
5352
|
-
(0,
|
|
5377
|
+
(0, import_class_validator68.IsString)({ message: "Rescheduled slot must be a string." }),
|
|
5378
|
+
(0, import_class_validator68.IsNotEmpty)({ message: "Rescheduled slot is required." })
|
|
5353
5379
|
], CreateF2FInterviewRescheduleRequestDto.prototype, "rescheduledSlot", 2);
|
|
5354
5380
|
__decorateClass([
|
|
5355
|
-
(0,
|
|
5381
|
+
(0, import_class_validator68.IsString)({ message: "Freelancer reason must be a string." })
|
|
5356
5382
|
], CreateF2FInterviewRescheduleRequestDto.prototype, "freelancerRequestReason", 2);
|
|
5357
5383
|
|
|
5358
5384
|
// src/adapters/tcp/user.tcp.adapter.ts
|
|
@@ -6249,6 +6275,8 @@ ZoomMeetingLog = __decorateClass([
|
|
|
6249
6275
|
LEAD_PATTERN,
|
|
6250
6276
|
Lead,
|
|
6251
6277
|
LoginDto,
|
|
6278
|
+
LoginViaOtpDto,
|
|
6279
|
+
LoginViaOtpScopeEnum,
|
|
6252
6280
|
LogoutDto,
|
|
6253
6281
|
McqStatusEnum,
|
|
6254
6282
|
ModeOfHire,
|