@experts_hub/shared 1.0.357 → 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/entities/user.entity.d.ts +1 -0
- package/dist/index.d.mts +15 -1
- package/dist/index.d.ts +15 -1
- package/dist/index.js +702 -671
- package/dist/index.mjs +294 -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");
|
|
@@ -3997,6 +4023,9 @@ __decorateClass([
|
|
|
3997
4023
|
nullable: true
|
|
3998
4024
|
})
|
|
3999
4025
|
], User.prototype, "resetTokenExpireAt", 2);
|
|
4026
|
+
__decorateClass([
|
|
4027
|
+
(0, import_typeorm46.Column)({ name: "set_password_token", type: "varchar", nullable: true })
|
|
4028
|
+
], User.prototype, "setPasswordToken", 2);
|
|
4000
4029
|
__decorateClass([
|
|
4001
4030
|
(0, import_typeorm46.OneToMany)(() => RefreshToken, (token) => token.user)
|
|
4002
4031
|
], User.prototype, "refreshTokens", 2);
|
|
@@ -4163,22 +4192,22 @@ Rating = __decorateClass([
|
|
|
4163
4192
|
var CreateRatingDto = class {
|
|
4164
4193
|
};
|
|
4165
4194
|
__decorateClass([
|
|
4166
|
-
(0,
|
|
4167
|
-
(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" })
|
|
4168
4197
|
], CreateRatingDto.prototype, "revieweeId", 2);
|
|
4169
4198
|
__decorateClass([
|
|
4170
|
-
(0,
|
|
4199
|
+
(0, import_class_validator41.IsEnum)(RatingTypeEnum, {
|
|
4171
4200
|
message: `Rating type must be one of: ${Object.values(RatingTypeEnum).join(", ")}`
|
|
4172
4201
|
})
|
|
4173
4202
|
], CreateRatingDto.prototype, "ratingType", 2);
|
|
4174
4203
|
__decorateClass([
|
|
4175
|
-
(0,
|
|
4176
|
-
(0,
|
|
4177
|
-
(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" })
|
|
4178
4207
|
], CreateRatingDto.prototype, "rating", 2);
|
|
4179
4208
|
__decorateClass([
|
|
4180
|
-
(0,
|
|
4181
|
-
(0,
|
|
4209
|
+
(0, import_class_validator41.IsOptional)(),
|
|
4210
|
+
(0, import_class_validator41.IsString)({ message: "Review must be a string" })
|
|
4182
4211
|
], CreateRatingDto.prototype, "review", 2);
|
|
4183
4212
|
|
|
4184
4213
|
// src/modules/company-role/pattern/pattern.ts
|
|
@@ -4194,57 +4223,57 @@ var COMPANY_ROLES_PATTERNS = {
|
|
|
4194
4223
|
};
|
|
4195
4224
|
|
|
4196
4225
|
// src/modules/company-role/dto/create-company-role.dto.ts
|
|
4197
|
-
var
|
|
4226
|
+
var import_class_validator42 = require("class-validator");
|
|
4198
4227
|
var CreateCompanyRoleDto = class {
|
|
4199
4228
|
};
|
|
4200
4229
|
__decorateClass([
|
|
4201
|
-
(0,
|
|
4230
|
+
(0, import_class_validator42.IsNotEmpty)({ message: "Please enter company role name." })
|
|
4202
4231
|
], CreateCompanyRoleDto.prototype, "name", 2);
|
|
4203
4232
|
__decorateClass([
|
|
4204
|
-
(0,
|
|
4233
|
+
(0, import_class_validator42.IsNotEmpty)({ message: "Please enter company role slug" })
|
|
4205
4234
|
], CreateCompanyRoleDto.prototype, "slug", 2);
|
|
4206
4235
|
__decorateClass([
|
|
4207
|
-
(0,
|
|
4236
|
+
(0, import_class_validator42.IsNotEmpty)({ message: "Please enter description" })
|
|
4208
4237
|
], CreateCompanyRoleDto.prototype, "description", 2);
|
|
4209
4238
|
__decorateClass([
|
|
4210
|
-
(0,
|
|
4211
|
-
(0,
|
|
4212
|
-
(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." })
|
|
4213
4242
|
], CreateCompanyRoleDto.prototype, "permissionIds", 2);
|
|
4214
4243
|
__decorateClass([
|
|
4215
|
-
(0,
|
|
4216
|
-
(0,
|
|
4244
|
+
(0, import_class_validator42.IsOptional)(),
|
|
4245
|
+
(0, import_class_validator42.IsBoolean)({ message: "Is active must be a boolean value" })
|
|
4217
4246
|
], CreateCompanyRoleDto.prototype, "isActive", 2);
|
|
4218
4247
|
|
|
4219
4248
|
// src/modules/company-role/dto/update-company-role.dto.ts
|
|
4220
|
-
var
|
|
4249
|
+
var import_class_validator43 = require("class-validator");
|
|
4221
4250
|
var UpdateCompanyRoleDto = class {
|
|
4222
4251
|
};
|
|
4223
4252
|
__decorateClass([
|
|
4224
|
-
(0,
|
|
4253
|
+
(0, import_class_validator43.IsNotEmpty)({ message: "Please enter company name." })
|
|
4225
4254
|
], UpdateCompanyRoleDto.prototype, "name", 2);
|
|
4226
4255
|
__decorateClass([
|
|
4227
|
-
(0,
|
|
4256
|
+
(0, import_class_validator43.IsNotEmpty)({ message: "Please enter slug" })
|
|
4228
4257
|
], UpdateCompanyRoleDto.prototype, "slug", 2);
|
|
4229
4258
|
__decorateClass([
|
|
4230
|
-
(0,
|
|
4259
|
+
(0, import_class_validator43.IsNotEmpty)({ message: "Please enter description" })
|
|
4231
4260
|
], UpdateCompanyRoleDto.prototype, "description", 2);
|
|
4232
4261
|
__decorateClass([
|
|
4233
|
-
(0,
|
|
4234
|
-
(0,
|
|
4235
|
-
(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." })
|
|
4236
4265
|
], UpdateCompanyRoleDto.prototype, "permissionIds", 2);
|
|
4237
4266
|
__decorateClass([
|
|
4238
|
-
(0,
|
|
4239
|
-
(0,
|
|
4267
|
+
(0, import_class_validator43.IsOptional)(),
|
|
4268
|
+
(0, import_class_validator43.IsBoolean)({ message: "Is active must be a boolean value" })
|
|
4240
4269
|
], UpdateCompanyRoleDto.prototype, "isActive", 2);
|
|
4241
4270
|
|
|
4242
4271
|
// src/modules/company-role/dto/toggle-company-role-visibility.dto.ts
|
|
4243
|
-
var
|
|
4272
|
+
var import_class_validator44 = require("class-validator");
|
|
4244
4273
|
var ToggleCompanyRoleVisibilityDto = class {
|
|
4245
4274
|
};
|
|
4246
4275
|
__decorateClass([
|
|
4247
|
-
(0,
|
|
4276
|
+
(0, import_class_validator44.IsBoolean)()
|
|
4248
4277
|
], ToggleCompanyRoleVisibilityDto.prototype, "isActive", 2);
|
|
4249
4278
|
|
|
4250
4279
|
// src/modules/user/freelancer-experience/pattern/pattern.ts
|
|
@@ -4254,35 +4283,35 @@ var FREELANCER_EXPERIENCE_PATTERN = {
|
|
|
4254
4283
|
};
|
|
4255
4284
|
|
|
4256
4285
|
// src/modules/user/freelancer-experience/dto/freelancer-experience.dto.ts
|
|
4257
|
-
var
|
|
4286
|
+
var import_class_validator45 = require("class-validator");
|
|
4258
4287
|
var import_class_transformer3 = require("class-transformer");
|
|
4259
4288
|
var ExperienceDto = class {
|
|
4260
4289
|
};
|
|
4261
4290
|
__decorateClass([
|
|
4262
|
-
(0,
|
|
4291
|
+
(0, import_class_validator45.IsOptional)()
|
|
4263
4292
|
], ExperienceDto.prototype, "uuid", 2);
|
|
4264
4293
|
__decorateClass([
|
|
4265
|
-
(0,
|
|
4266
|
-
(0,
|
|
4294
|
+
(0, import_class_validator45.IsNotEmpty)(),
|
|
4295
|
+
(0, import_class_validator45.IsString)()
|
|
4267
4296
|
], ExperienceDto.prototype, "companyName", 2);
|
|
4268
4297
|
__decorateClass([
|
|
4269
|
-
(0,
|
|
4270
|
-
(0,
|
|
4298
|
+
(0, import_class_validator45.IsNotEmpty)(),
|
|
4299
|
+
(0, import_class_validator45.IsString)()
|
|
4271
4300
|
], ExperienceDto.prototype, "designation", 2);
|
|
4272
4301
|
__decorateClass([
|
|
4273
|
-
(0,
|
|
4274
|
-
(0,
|
|
4302
|
+
(0, import_class_validator45.IsNotEmpty)(),
|
|
4303
|
+
(0, import_class_validator45.IsString)()
|
|
4275
4304
|
], ExperienceDto.prototype, "jobDuration", 2);
|
|
4276
4305
|
__decorateClass([
|
|
4277
|
-
(0,
|
|
4278
|
-
(0,
|
|
4279
|
-
(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" })
|
|
4280
4309
|
], ExperienceDto.prototype, "description", 2);
|
|
4281
4310
|
var FreelancerExperienceDto = class {
|
|
4282
4311
|
};
|
|
4283
4312
|
__decorateClass([
|
|
4284
|
-
(0,
|
|
4285
|
-
(0,
|
|
4313
|
+
(0, import_class_validator45.ValidateNested)({ each: true }),
|
|
4314
|
+
(0, import_class_validator45.ArrayMinSize)(1, { message: "At least one experience is required." }),
|
|
4286
4315
|
(0, import_class_transformer3.Type)(() => ExperienceDto)
|
|
4287
4316
|
], FreelancerExperienceDto.prototype, "experiences", 2);
|
|
4288
4317
|
|
|
@@ -4299,43 +4328,43 @@ var COMPANY_MEMBERS_PATTERNS = {
|
|
|
4299
4328
|
};
|
|
4300
4329
|
|
|
4301
4330
|
// src/modules/company-member/dto/create-company-member.dto.ts
|
|
4302
|
-
var
|
|
4331
|
+
var import_class_validator46 = require("class-validator");
|
|
4303
4332
|
var CreateCompanyMemberDto = class {
|
|
4304
4333
|
};
|
|
4305
4334
|
__decorateClass([
|
|
4306
|
-
(0,
|
|
4335
|
+
(0, import_class_validator46.IsNotEmpty)({ message: "Please enter name." })
|
|
4307
4336
|
], CreateCompanyMemberDto.prototype, "name", 2);
|
|
4308
4337
|
__decorateClass([
|
|
4309
|
-
(0,
|
|
4338
|
+
(0, import_class_validator46.IsNotEmpty)({ message: "Please enter email" })
|
|
4310
4339
|
], CreateCompanyMemberDto.prototype, "email", 2);
|
|
4311
4340
|
__decorateClass([
|
|
4312
|
-
(0,
|
|
4313
|
-
(0,
|
|
4314
|
-
(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." })
|
|
4315
4344
|
], CreateCompanyMemberDto.prototype, "roleIds", 2);
|
|
4316
4345
|
|
|
4317
4346
|
// src/modules/company-member/dto/update-company-member.dto.ts
|
|
4318
|
-
var
|
|
4347
|
+
var import_class_validator47 = require("class-validator");
|
|
4319
4348
|
var UpdateCompanyMemberDto = class {
|
|
4320
4349
|
};
|
|
4321
4350
|
__decorateClass([
|
|
4322
|
-
(0,
|
|
4351
|
+
(0, import_class_validator47.IsNotEmpty)({ message: "Please enter name." })
|
|
4323
4352
|
], UpdateCompanyMemberDto.prototype, "name", 2);
|
|
4324
4353
|
__decorateClass([
|
|
4325
|
-
(0,
|
|
4354
|
+
(0, import_class_validator47.IsNotEmpty)({ message: "Please enter email" })
|
|
4326
4355
|
], UpdateCompanyMemberDto.prototype, "email", 2);
|
|
4327
4356
|
__decorateClass([
|
|
4328
|
-
(0,
|
|
4329
|
-
(0,
|
|
4330
|
-
(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." })
|
|
4331
4360
|
], UpdateCompanyMemberDto.prototype, "roleIds", 2);
|
|
4332
4361
|
|
|
4333
4362
|
// src/modules/company-member/dto/toggle-company-member-visibility.dto.ts
|
|
4334
|
-
var
|
|
4363
|
+
var import_class_validator48 = require("class-validator");
|
|
4335
4364
|
var ToggleCompanyMemberVisibilityDto = class {
|
|
4336
4365
|
};
|
|
4337
4366
|
__decorateClass([
|
|
4338
|
-
(0,
|
|
4367
|
+
(0, import_class_validator48.IsBoolean)()
|
|
4339
4368
|
], ToggleCompanyMemberVisibilityDto.prototype, "isActive", 2);
|
|
4340
4369
|
|
|
4341
4370
|
// src/modules/user/freelancer-education/pattern/pattern.ts
|
|
@@ -4345,31 +4374,31 @@ var FREELANCER_EDUCATION_PATTERN = {
|
|
|
4345
4374
|
};
|
|
4346
4375
|
|
|
4347
4376
|
// src/modules/user/freelancer-education/dto/freelancer-education.dto.ts
|
|
4348
|
-
var
|
|
4377
|
+
var import_class_validator49 = require("class-validator");
|
|
4349
4378
|
var import_class_transformer4 = require("class-transformer");
|
|
4350
4379
|
var EducationDto = class {
|
|
4351
4380
|
};
|
|
4352
4381
|
__decorateClass([
|
|
4353
|
-
(0,
|
|
4382
|
+
(0, import_class_validator49.IsOptional)()
|
|
4354
4383
|
], EducationDto.prototype, "uuid", 2);
|
|
4355
4384
|
__decorateClass([
|
|
4356
|
-
(0,
|
|
4357
|
-
(0,
|
|
4385
|
+
(0, import_class_validator49.IsString)(),
|
|
4386
|
+
(0, import_class_validator49.IsNotEmpty)({ message: "Please Enter Degree " })
|
|
4358
4387
|
], EducationDto.prototype, "degree", 2);
|
|
4359
4388
|
__decorateClass([
|
|
4360
|
-
(0,
|
|
4361
|
-
(0,
|
|
4389
|
+
(0, import_class_validator49.IsString)(),
|
|
4390
|
+
(0, import_class_validator49.IsNotEmpty)({ message: "Please Enter University " })
|
|
4362
4391
|
], EducationDto.prototype, "university", 2);
|
|
4363
4392
|
__decorateClass([
|
|
4364
|
-
(0,
|
|
4365
|
-
(0,
|
|
4393
|
+
(0, import_class_validator49.IsString)(),
|
|
4394
|
+
(0, import_class_validator49.IsNotEmpty)({ message: "Please Enter Year of Graduation " })
|
|
4366
4395
|
], EducationDto.prototype, "yearOfGraduation", 2);
|
|
4367
4396
|
var FreelancerEducationDto = class {
|
|
4368
4397
|
};
|
|
4369
4398
|
__decorateClass([
|
|
4370
|
-
(0,
|
|
4371
|
-
(0,
|
|
4372
|
-
(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 }),
|
|
4373
4402
|
(0, import_class_transformer4.Type)(() => EducationDto)
|
|
4374
4403
|
], FreelancerEducationDto.prototype, "educations", 2);
|
|
4375
4404
|
|
|
@@ -4380,67 +4409,67 @@ var FREELANCER_PROJECT_PATTERN = {
|
|
|
4380
4409
|
};
|
|
4381
4410
|
|
|
4382
4411
|
// src/modules/user/freelancer-project/dto/freelancer-project.dto.ts
|
|
4383
|
-
var
|
|
4412
|
+
var import_class_validator50 = require("class-validator");
|
|
4384
4413
|
var import_class_transformer5 = require("class-transformer");
|
|
4385
4414
|
var ProjectDto = class {
|
|
4386
4415
|
};
|
|
4387
4416
|
__decorateClass([
|
|
4388
|
-
(0,
|
|
4417
|
+
(0, import_class_validator50.IsOptional)()
|
|
4389
4418
|
], ProjectDto.prototype, "uuid", 2);
|
|
4390
4419
|
__decorateClass([
|
|
4391
|
-
(0,
|
|
4392
|
-
(0,
|
|
4420
|
+
(0, import_class_validator50.IsString)(),
|
|
4421
|
+
(0, import_class_validator50.IsNotEmpty)({ message: "Please Enter Project Name " })
|
|
4393
4422
|
], ProjectDto.prototype, "projectName", 2);
|
|
4394
4423
|
__decorateClass([
|
|
4395
|
-
(0,
|
|
4396
|
-
(0,
|
|
4424
|
+
(0, import_class_validator50.IsDateString)(),
|
|
4425
|
+
(0, import_class_validator50.IsNotEmpty)({ message: "Please Enter Start Date " })
|
|
4397
4426
|
], ProjectDto.prototype, "startDate", 2);
|
|
4398
4427
|
__decorateClass([
|
|
4399
|
-
(0,
|
|
4400
|
-
(0,
|
|
4428
|
+
(0, import_class_validator50.IsDateString)(),
|
|
4429
|
+
(0, import_class_validator50.IsNotEmpty)({ message: "Please Enter End Date " })
|
|
4401
4430
|
], ProjectDto.prototype, "endDate", 2);
|
|
4402
4431
|
__decorateClass([
|
|
4403
|
-
(0,
|
|
4404
|
-
(0,
|
|
4432
|
+
(0, import_class_validator50.IsOptional)(),
|
|
4433
|
+
(0, import_class_validator50.IsString)()
|
|
4405
4434
|
], ProjectDto.prototype, "clientName", 2);
|
|
4406
4435
|
__decorateClass([
|
|
4407
|
-
(0,
|
|
4408
|
-
(0,
|
|
4436
|
+
(0, import_class_validator50.IsOptional)(),
|
|
4437
|
+
(0, import_class_validator50.IsString)()
|
|
4409
4438
|
], ProjectDto.prototype, "gitLink", 2);
|
|
4410
4439
|
__decorateClass([
|
|
4411
|
-
(0,
|
|
4412
|
-
(0,
|
|
4413
|
-
(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" })
|
|
4414
4443
|
], ProjectDto.prototype, "description", 2);
|
|
4415
4444
|
var CaseStudyDto = class {
|
|
4416
4445
|
};
|
|
4417
4446
|
__decorateClass([
|
|
4418
|
-
(0,
|
|
4447
|
+
(0, import_class_validator50.IsOptional)()
|
|
4419
4448
|
], CaseStudyDto.prototype, "uuid", 2);
|
|
4420
4449
|
__decorateClass([
|
|
4421
|
-
(0,
|
|
4422
|
-
(0,
|
|
4450
|
+
(0, import_class_validator50.IsString)(),
|
|
4451
|
+
(0, import_class_validator50.IsNotEmpty)({ message: "Please Enter Project Name " })
|
|
4423
4452
|
], CaseStudyDto.prototype, "projectName", 2);
|
|
4424
4453
|
__decorateClass([
|
|
4425
|
-
(0,
|
|
4426
|
-
(0,
|
|
4454
|
+
(0, import_class_validator50.IsOptional)(),
|
|
4455
|
+
(0, import_class_validator50.IsString)()
|
|
4427
4456
|
], CaseStudyDto.prototype, "caseStudyLink", 2);
|
|
4428
4457
|
__decorateClass([
|
|
4429
|
-
(0,
|
|
4430
|
-
(0,
|
|
4431
|
-
(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" })
|
|
4432
4461
|
], CaseStudyDto.prototype, "description", 2);
|
|
4433
4462
|
var FreelancerProjectDto = class {
|
|
4434
4463
|
};
|
|
4435
4464
|
__decorateClass([
|
|
4436
|
-
(0,
|
|
4437
|
-
(0,
|
|
4438
|
-
(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 }),
|
|
4439
4468
|
(0, import_class_transformer5.Type)(() => ProjectDto)
|
|
4440
4469
|
], FreelancerProjectDto.prototype, "projects", 2);
|
|
4441
4470
|
__decorateClass([
|
|
4442
|
-
(0,
|
|
4443
|
-
(0,
|
|
4471
|
+
(0, import_class_validator50.IsArray)(),
|
|
4472
|
+
(0, import_class_validator50.ValidateNested)({ each: true }),
|
|
4444
4473
|
(0, import_class_transformer5.Type)(() => CaseStudyDto)
|
|
4445
4474
|
], FreelancerProjectDto.prototype, "casestudies", 2);
|
|
4446
4475
|
|
|
@@ -4456,7 +4485,7 @@ var FREELANCER_SKILL_PATTERN = {
|
|
|
4456
4485
|
};
|
|
4457
4486
|
|
|
4458
4487
|
// src/modules/user/freelancer-skill/dto/freelancer-skill.dto.ts
|
|
4459
|
-
var
|
|
4488
|
+
var import_class_validator51 = require("class-validator");
|
|
4460
4489
|
var import_class_transformer6 = require("class-transformer");
|
|
4461
4490
|
var FreelancerSkillDto = class {
|
|
4462
4491
|
constructor() {
|
|
@@ -4466,22 +4495,22 @@ var FreelancerSkillDto = class {
|
|
|
4466
4495
|
}
|
|
4467
4496
|
};
|
|
4468
4497
|
__decorateClass([
|
|
4469
|
-
(0,
|
|
4470
|
-
(0,
|
|
4498
|
+
(0, import_class_validator51.IsOptional)(),
|
|
4499
|
+
(0, import_class_validator51.IsArray)(),
|
|
4471
4500
|
(0, import_class_transformer6.Type)(() => String),
|
|
4472
|
-
(0,
|
|
4501
|
+
(0, import_class_validator51.IsString)({ each: true })
|
|
4473
4502
|
], FreelancerSkillDto.prototype, "coreSkills", 2);
|
|
4474
4503
|
__decorateClass([
|
|
4475
|
-
(0,
|
|
4476
|
-
(0,
|
|
4504
|
+
(0, import_class_validator51.IsOptional)(),
|
|
4505
|
+
(0, import_class_validator51.IsArray)(),
|
|
4477
4506
|
(0, import_class_transformer6.Type)(() => String),
|
|
4478
|
-
(0,
|
|
4507
|
+
(0, import_class_validator51.IsString)({ each: true })
|
|
4479
4508
|
], FreelancerSkillDto.prototype, "tools", 2);
|
|
4480
4509
|
__decorateClass([
|
|
4481
|
-
(0,
|
|
4482
|
-
(0,
|
|
4510
|
+
(0, import_class_validator51.IsOptional)(),
|
|
4511
|
+
(0, import_class_validator51.IsArray)(),
|
|
4483
4512
|
(0, import_class_transformer6.Type)(() => String),
|
|
4484
|
-
(0,
|
|
4513
|
+
(0, import_class_validator51.IsString)({ each: true })
|
|
4485
4514
|
], FreelancerSkillDto.prototype, "frameworks", 2);
|
|
4486
4515
|
|
|
4487
4516
|
// src/modules/freelancer-admin/pattern/pattern.ts
|
|
@@ -4497,7 +4526,7 @@ var ADMIN_FREELANCER_PATTERN = {
|
|
|
4497
4526
|
};
|
|
4498
4527
|
|
|
4499
4528
|
// src/modules/freelancer-admin/dto/create-freelancer.dto.ts
|
|
4500
|
-
var
|
|
4529
|
+
var import_class_validator52 = require("class-validator");
|
|
4501
4530
|
var import_class_transformer7 = require("class-transformer");
|
|
4502
4531
|
var NatureOfWorkEnum = /* @__PURE__ */ ((NatureOfWorkEnum3) => {
|
|
4503
4532
|
NatureOfWorkEnum3["FULLTIME"] = "FULLTIME";
|
|
@@ -4514,84 +4543,84 @@ var ModeOfWorkEnum = /* @__PURE__ */ ((ModeOfWorkEnum3) => {
|
|
|
4514
4543
|
var CreateFreelancerDto = class {
|
|
4515
4544
|
};
|
|
4516
4545
|
__decorateClass([
|
|
4517
|
-
(0,
|
|
4518
|
-
(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" })
|
|
4519
4548
|
], CreateFreelancerDto.prototype, "fullName", 2);
|
|
4520
4549
|
__decorateClass([
|
|
4521
|
-
(0,
|
|
4550
|
+
(0, import_class_validator52.IsEmail)({}, { message: "Invalid email address" })
|
|
4522
4551
|
], CreateFreelancerDto.prototype, "email", 2);
|
|
4523
4552
|
__decorateClass([
|
|
4524
|
-
(0,
|
|
4553
|
+
(0, import_class_validator52.IsString)({ message: "Mobile code must be a string (e.g., +1)" })
|
|
4525
4554
|
], CreateFreelancerDto.prototype, "mobileCode", 2);
|
|
4526
4555
|
__decorateClass([
|
|
4527
|
-
(0,
|
|
4556
|
+
(0, import_class_validator52.IsString)({ message: "Mobile must be a string (e.g., 1243253534)" })
|
|
4528
4557
|
], CreateFreelancerDto.prototype, "mobile", 2);
|
|
4529
4558
|
__decorateClass([
|
|
4530
|
-
(0,
|
|
4531
|
-
(0,
|
|
4532
|
-
(0,
|
|
4533
|
-
(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)(?=.*[@$!%*?&])/, {
|
|
4534
4563
|
message: "Password must include letters, numbers and symbols."
|
|
4535
4564
|
})
|
|
4536
4565
|
], CreateFreelancerDto.prototype, "password", 2);
|
|
4537
4566
|
__decorateClass([
|
|
4538
|
-
(0,
|
|
4567
|
+
(0, import_class_validator52.IsNotEmpty)({ message: "Please enter confirm password." }),
|
|
4539
4568
|
Match("confirmPassword", { message: "Passwords do not match" })
|
|
4540
4569
|
], CreateFreelancerDto.prototype, "confirmPassword", 2);
|
|
4541
4570
|
__decorateClass([
|
|
4542
|
-
(0,
|
|
4571
|
+
(0, import_class_validator52.IsBoolean)({ message: "Developer flag must be true or false" }),
|
|
4543
4572
|
(0, import_class_transformer7.Type)(() => Boolean)
|
|
4544
4573
|
], CreateFreelancerDto.prototype, "developer", 2);
|
|
4545
4574
|
__decorateClass([
|
|
4546
|
-
(0,
|
|
4575
|
+
(0, import_class_validator52.IsEnum)(NatureOfWorkEnum, {
|
|
4547
4576
|
message: `Nature of work must be one of: ${Object.values(
|
|
4548
4577
|
NatureOfWorkEnum
|
|
4549
4578
|
).join(", ")}`
|
|
4550
4579
|
})
|
|
4551
4580
|
], CreateFreelancerDto.prototype, "natureOfWork", 2);
|
|
4552
4581
|
__decorateClass([
|
|
4553
|
-
(0,
|
|
4554
|
-
(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" }),
|
|
4555
4584
|
(0, import_class_transformer7.Type)(() => Number)
|
|
4556
4585
|
], CreateFreelancerDto.prototype, "expectedHourlyCompensation", 2);
|
|
4557
4586
|
__decorateClass([
|
|
4558
|
-
(0,
|
|
4587
|
+
(0, import_class_validator52.IsEnum)(ModeOfWorkEnum, {
|
|
4559
4588
|
message: `Mode of work must be one of: ${Object.values(ModeOfWorkEnum).join(
|
|
4560
4589
|
", "
|
|
4561
4590
|
)}`
|
|
4562
4591
|
})
|
|
4563
4592
|
], CreateFreelancerDto.prototype, "modeOfWork", 2);
|
|
4564
4593
|
__decorateClass([
|
|
4565
|
-
(0,
|
|
4594
|
+
(0, import_class_validator52.IsBoolean)({ message: "isImmediateJoiner must be true or false" }),
|
|
4566
4595
|
(0, import_class_transformer7.Type)(() => Boolean)
|
|
4567
4596
|
], CreateFreelancerDto.prototype, "isImmediateJoiner", 2);
|
|
4568
4597
|
__decorateClass([
|
|
4569
|
-
(0,
|
|
4570
|
-
(0,
|
|
4598
|
+
(0, import_class_validator52.ValidateIf)((o) => o.isImmediateJoiner === false),
|
|
4599
|
+
(0, import_class_validator52.IsNotEmpty)({ message: "Please enter availability to join." })
|
|
4571
4600
|
], CreateFreelancerDto.prototype, "availabilityToJoin", 2);
|
|
4572
4601
|
__decorateClass([
|
|
4573
|
-
(0,
|
|
4574
|
-
(0,
|
|
4602
|
+
(0, import_class_validator52.IsOptional)(),
|
|
4603
|
+
(0, import_class_validator52.IsUrl)({}, { message: "LinkedIn profile link must be a valid URL" })
|
|
4575
4604
|
], CreateFreelancerDto.prototype, "linkedinProfileLink", 2);
|
|
4576
4605
|
__decorateClass([
|
|
4577
|
-
(0,
|
|
4578
|
-
(0,
|
|
4606
|
+
(0, import_class_validator52.IsOptional)(),
|
|
4607
|
+
(0, import_class_validator52.IsString)({ message: "Kaggle profile link must be a string" })
|
|
4579
4608
|
], CreateFreelancerDto.prototype, "kaggleProfileLink", 2);
|
|
4580
4609
|
__decorateClass([
|
|
4581
|
-
(0,
|
|
4582
|
-
(0,
|
|
4610
|
+
(0, import_class_validator52.IsOptional)(),
|
|
4611
|
+
(0, import_class_validator52.IsUrl)({}, { message: "GitHub profile link must be a valid URL" })
|
|
4583
4612
|
], CreateFreelancerDto.prototype, "githubProfileLink", 2);
|
|
4584
4613
|
__decorateClass([
|
|
4585
|
-
(0,
|
|
4586
|
-
(0,
|
|
4614
|
+
(0, import_class_validator52.IsOptional)(),
|
|
4615
|
+
(0, import_class_validator52.IsUrl)({}, { message: "StackOverflow profile link must be a valid URL" })
|
|
4587
4616
|
], CreateFreelancerDto.prototype, "stackOverflowProfileLink", 2);
|
|
4588
4617
|
__decorateClass([
|
|
4589
|
-
(0,
|
|
4590
|
-
(0,
|
|
4618
|
+
(0, import_class_validator52.IsOptional)(),
|
|
4619
|
+
(0, import_class_validator52.IsUrl)({}, { message: "Portfolio link must be a valid URL" })
|
|
4591
4620
|
], CreateFreelancerDto.prototype, "portfolioLink", 2);
|
|
4592
4621
|
|
|
4593
4622
|
// src/modules/freelancer-admin/dto/update-freelancer.dto.ts
|
|
4594
|
-
var
|
|
4623
|
+
var import_class_validator53 = require("class-validator");
|
|
4595
4624
|
var import_class_transformer8 = require("class-transformer");
|
|
4596
4625
|
var NatureOfWorkEnum2 = /* @__PURE__ */ ((NatureOfWorkEnum3) => {
|
|
4597
4626
|
NatureOfWorkEnum3["FULLTIME"] = "FULLTIME";
|
|
@@ -4608,86 +4637,86 @@ var ModeOfWorkEnum2 = /* @__PURE__ */ ((ModeOfWorkEnum3) => {
|
|
|
4608
4637
|
var UpdateFreelancerDto = class {
|
|
4609
4638
|
};
|
|
4610
4639
|
__decorateClass([
|
|
4611
|
-
(0,
|
|
4612
|
-
(0,
|
|
4613
|
-
(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" })
|
|
4614
4643
|
], UpdateFreelancerDto.prototype, "fullName", 2);
|
|
4615
4644
|
__decorateClass([
|
|
4616
|
-
(0,
|
|
4617
|
-
(0,
|
|
4645
|
+
(0, import_class_validator53.IsOptional)(),
|
|
4646
|
+
(0, import_class_validator53.IsEmail)({}, { message: "Invalid email address" })
|
|
4618
4647
|
], UpdateFreelancerDto.prototype, "email", 2);
|
|
4619
4648
|
__decorateClass([
|
|
4620
|
-
(0,
|
|
4621
|
-
(0,
|
|
4649
|
+
(0, import_class_validator53.IsOptional)(),
|
|
4650
|
+
(0, import_class_validator53.IsString)({ message: "Mobile code must be a string (e.g., +1)" })
|
|
4622
4651
|
], UpdateFreelancerDto.prototype, "mobileCode", 2);
|
|
4623
4652
|
__decorateClass([
|
|
4624
|
-
(0,
|
|
4625
|
-
(0,
|
|
4653
|
+
(0, import_class_validator53.IsOptional)(),
|
|
4654
|
+
(0, import_class_validator53.IsString)({ message: "Mobile must be a string (e.g., 1243253534)" })
|
|
4626
4655
|
], UpdateFreelancerDto.prototype, "mobile", 2);
|
|
4627
4656
|
__decorateClass([
|
|
4628
|
-
(0,
|
|
4657
|
+
(0, import_class_validator53.IsOptional)(),
|
|
4629
4658
|
(0, import_class_transformer8.Transform)(({ value }) => value === null || value === "" ? void 0 : value),
|
|
4630
|
-
(0,
|
|
4631
|
-
(0,
|
|
4632
|
-
(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)(?=.*[@$!%*?&])/, {
|
|
4633
4662
|
message: "Password must include letters, numbers and symbols."
|
|
4634
4663
|
})
|
|
4635
4664
|
], UpdateFreelancerDto.prototype, "password", 2);
|
|
4636
4665
|
__decorateClass([
|
|
4637
|
-
(0,
|
|
4638
|
-
(0,
|
|
4666
|
+
(0, import_class_validator53.IsOptional)(),
|
|
4667
|
+
(0, import_class_validator53.IsBoolean)({ message: "Developer flag must be true or false" }),
|
|
4639
4668
|
(0, import_class_transformer8.Type)(() => Boolean)
|
|
4640
4669
|
], UpdateFreelancerDto.prototype, "developer", 2);
|
|
4641
4670
|
__decorateClass([
|
|
4642
|
-
(0,
|
|
4643
|
-
(0,
|
|
4671
|
+
(0, import_class_validator53.IsOptional)(),
|
|
4672
|
+
(0, import_class_validator53.IsEnum)(NatureOfWorkEnum2, {
|
|
4644
4673
|
message: `Nature of work must be one of: ${Object.values(
|
|
4645
4674
|
NatureOfWorkEnum2
|
|
4646
4675
|
).join(", ")}`
|
|
4647
4676
|
})
|
|
4648
4677
|
], UpdateFreelancerDto.prototype, "natureOfWork", 2);
|
|
4649
4678
|
__decorateClass([
|
|
4650
|
-
(0,
|
|
4651
|
-
(0,
|
|
4652
|
-
(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" }),
|
|
4653
4682
|
(0, import_class_transformer8.Type)(() => Number)
|
|
4654
4683
|
], UpdateFreelancerDto.prototype, "expectedHourlyCompensation", 2);
|
|
4655
4684
|
__decorateClass([
|
|
4656
|
-
(0,
|
|
4657
|
-
(0,
|
|
4685
|
+
(0, import_class_validator53.IsOptional)(),
|
|
4686
|
+
(0, import_class_validator53.IsEnum)(ModeOfWorkEnum2, {
|
|
4658
4687
|
message: `Mode of work must be one of: ${Object.values(ModeOfWorkEnum2).join(
|
|
4659
4688
|
", "
|
|
4660
4689
|
)}`
|
|
4661
4690
|
})
|
|
4662
4691
|
], UpdateFreelancerDto.prototype, "modeOfWork", 2);
|
|
4663
4692
|
__decorateClass([
|
|
4664
|
-
(0,
|
|
4665
|
-
(0,
|
|
4693
|
+
(0, import_class_validator53.IsOptional)(),
|
|
4694
|
+
(0, import_class_validator53.IsBoolean)({ message: "isImmediateJoiner must be true or false" }),
|
|
4666
4695
|
(0, import_class_transformer8.Type)(() => Boolean)
|
|
4667
4696
|
], UpdateFreelancerDto.prototype, "isImmediateJoiner", 2);
|
|
4668
4697
|
__decorateClass([
|
|
4669
|
-
(0,
|
|
4670
|
-
(0,
|
|
4698
|
+
(0, import_class_validator53.ValidateIf)((o) => o.isImmediateJoiner === false),
|
|
4699
|
+
(0, import_class_validator53.IsNotEmpty)({ message: "Please enter availability to join." })
|
|
4671
4700
|
], UpdateFreelancerDto.prototype, "availabilityToJoin", 2);
|
|
4672
4701
|
__decorateClass([
|
|
4673
|
-
(0,
|
|
4674
|
-
(0,
|
|
4702
|
+
(0, import_class_validator53.IsOptional)(),
|
|
4703
|
+
(0, import_class_validator53.IsUrl)({}, { message: "LinkedIn profile link must be a valid URL" })
|
|
4675
4704
|
], UpdateFreelancerDto.prototype, "linkedinProfileLink", 2);
|
|
4676
4705
|
__decorateClass([
|
|
4677
|
-
(0,
|
|
4678
|
-
(0,
|
|
4706
|
+
(0, import_class_validator53.IsOptional)(),
|
|
4707
|
+
(0, import_class_validator53.IsString)({ message: "Kaggle profile link must be a string" })
|
|
4679
4708
|
], UpdateFreelancerDto.prototype, "kaggleProfileLink", 2);
|
|
4680
4709
|
__decorateClass([
|
|
4681
|
-
(0,
|
|
4682
|
-
(0,
|
|
4710
|
+
(0, import_class_validator53.IsOptional)(),
|
|
4711
|
+
(0, import_class_validator53.IsUrl)({}, { message: "GitHub profile link must be a valid URL" })
|
|
4683
4712
|
], UpdateFreelancerDto.prototype, "githubProfileLink", 2);
|
|
4684
4713
|
__decorateClass([
|
|
4685
|
-
(0,
|
|
4686
|
-
(0,
|
|
4714
|
+
(0, import_class_validator53.IsOptional)(),
|
|
4715
|
+
(0, import_class_validator53.IsUrl)({}, { message: "StackOverflow profile link must be a valid URL" })
|
|
4687
4716
|
], UpdateFreelancerDto.prototype, "stackOverflowProfileLink", 2);
|
|
4688
4717
|
__decorateClass([
|
|
4689
|
-
(0,
|
|
4690
|
-
(0,
|
|
4718
|
+
(0, import_class_validator53.IsOptional)(),
|
|
4719
|
+
(0, import_class_validator53.IsUrl)({}, { message: "Portfolio link must be a valid URL" })
|
|
4691
4720
|
], UpdateFreelancerDto.prototype, "portfolioLink", 2);
|
|
4692
4721
|
|
|
4693
4722
|
// src/modules/client-admin/pattern/pattern.ts
|
|
@@ -4704,7 +4733,7 @@ var CLIENT_ADMIN_PATTERNS = {
|
|
|
4704
4733
|
};
|
|
4705
4734
|
|
|
4706
4735
|
// src/modules/client-admin/dto/create-client.dto.ts
|
|
4707
|
-
var
|
|
4736
|
+
var import_class_validator54 = require("class-validator");
|
|
4708
4737
|
var CreateClientHiringModeEnum = /* @__PURE__ */ ((CreateClientHiringModeEnum2) => {
|
|
4709
4738
|
CreateClientHiringModeEnum2["REMOTE"] = "REMOTE";
|
|
4710
4739
|
CreateClientHiringModeEnum2["ONSITE"] = "ONSITE";
|
|
@@ -4720,70 +4749,70 @@ var CreateClientHiringTypeEnum = /* @__PURE__ */ ((CreateClientHiringTypeEnum2)
|
|
|
4720
4749
|
var CreateClientDto = class {
|
|
4721
4750
|
};
|
|
4722
4751
|
__decorateClass([
|
|
4723
|
-
(0,
|
|
4724
|
-
(0,
|
|
4752
|
+
(0, import_class_validator54.IsNotEmpty)({ message: "Please enter first name." }),
|
|
4753
|
+
(0, import_class_validator54.IsString)()
|
|
4725
4754
|
], CreateClientDto.prototype, "firstName", 2);
|
|
4726
4755
|
__decorateClass([
|
|
4727
|
-
(0,
|
|
4728
|
-
(0,
|
|
4756
|
+
(0, import_class_validator54.IsNotEmpty)({ message: "Please enter last name." }),
|
|
4757
|
+
(0, import_class_validator54.IsString)()
|
|
4729
4758
|
], CreateClientDto.prototype, "lastName", 2);
|
|
4730
4759
|
__decorateClass([
|
|
4731
|
-
(0,
|
|
4732
|
-
(0,
|
|
4760
|
+
(0, import_class_validator54.IsNotEmpty)({ message: "Please enter email." }),
|
|
4761
|
+
(0, import_class_validator54.IsEmail)()
|
|
4733
4762
|
], CreateClientDto.prototype, "email", 2);
|
|
4734
4763
|
__decorateClass([
|
|
4735
|
-
(0,
|
|
4736
|
-
(0,
|
|
4737
|
-
(0,
|
|
4738
|
-
(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)(?=.*[@$!%*?&])/, {
|
|
4739
4768
|
message: "Password must include letters, numbers and symbols."
|
|
4740
4769
|
})
|
|
4741
4770
|
], CreateClientDto.prototype, "password", 2);
|
|
4742
4771
|
__decorateClass([
|
|
4743
|
-
(0,
|
|
4772
|
+
(0, import_class_validator54.IsNotEmpty)({ message: "Please enter confirm password." }),
|
|
4744
4773
|
Match("confirmPassword", { message: "Passwords do not match" })
|
|
4745
4774
|
], CreateClientDto.prototype, "confirmPassword", 2);
|
|
4746
4775
|
__decorateClass([
|
|
4747
|
-
(0,
|
|
4748
|
-
(0,
|
|
4776
|
+
(0, import_class_validator54.IsNotEmpty)({ message: "Please enter company name." }),
|
|
4777
|
+
(0, import_class_validator54.IsString)()
|
|
4749
4778
|
], CreateClientDto.prototype, "companyName", 2);
|
|
4750
4779
|
__decorateClass([
|
|
4751
|
-
(0,
|
|
4752
|
-
(0,
|
|
4780
|
+
(0, import_class_validator54.IsArray)({ message: "Skills should be an array." }),
|
|
4781
|
+
(0, import_class_validator54.IsNotEmpty)({ message: "Please enter skills." })
|
|
4753
4782
|
], CreateClientDto.prototype, "skills", 2);
|
|
4754
4783
|
__decorateClass([
|
|
4755
|
-
(0,
|
|
4756
|
-
(0,
|
|
4784
|
+
(0, import_class_validator54.IsNotEmpty)({ message: "Please specify required freelancer count." }),
|
|
4785
|
+
(0, import_class_validator54.IsString)()
|
|
4757
4786
|
], CreateClientDto.prototype, "requiredFreelancer", 2);
|
|
4758
4787
|
__decorateClass([
|
|
4759
|
-
(0,
|
|
4760
|
-
(0,
|
|
4788
|
+
(0, import_class_validator54.IsNotEmpty)({ message: "Please specify the kind of hiring." }),
|
|
4789
|
+
(0, import_class_validator54.IsEnum)(CreateClientHiringTypeEnum)
|
|
4761
4790
|
], CreateClientDto.prototype, "kindOfHiring", 2);
|
|
4762
4791
|
__decorateClass([
|
|
4763
|
-
(0,
|
|
4764
|
-
(0,
|
|
4792
|
+
(0, import_class_validator54.IsNotEmpty)({ message: "Please specify the mode of hire." }),
|
|
4793
|
+
(0, import_class_validator54.IsEnum)(CreateClientHiringModeEnum)
|
|
4765
4794
|
], CreateClientDto.prototype, "modeOfHire", 2);
|
|
4766
4795
|
__decorateClass([
|
|
4767
|
-
(0,
|
|
4768
|
-
(0,
|
|
4796
|
+
(0, import_class_validator54.IsNotEmpty)({ message: "Please let us know how you found us." }),
|
|
4797
|
+
(0, import_class_validator54.IsString)()
|
|
4769
4798
|
], CreateClientDto.prototype, "foundUsOn", 2);
|
|
4770
4799
|
__decorateClass([
|
|
4771
|
-
(0,
|
|
4772
|
-
(0,
|
|
4800
|
+
(0, import_class_validator54.IsOptional)(),
|
|
4801
|
+
(0, import_class_validator54.IsString)()
|
|
4773
4802
|
], CreateClientDto.prototype, "foundUsOnDetail", 2);
|
|
4774
4803
|
|
|
4775
4804
|
// src/modules/client-admin/dto/update-client-status.dto.ts
|
|
4776
|
-
var
|
|
4805
|
+
var import_class_validator55 = require("class-validator");
|
|
4777
4806
|
var UpdateClientAccountStatusDto = class {
|
|
4778
4807
|
};
|
|
4779
4808
|
__decorateClass([
|
|
4780
|
-
(0,
|
|
4781
|
-
(0,
|
|
4809
|
+
(0, import_class_validator55.IsNotEmpty)({ message: "Please enter account status." }),
|
|
4810
|
+
(0, import_class_validator55.IsString)()
|
|
4782
4811
|
], UpdateClientAccountStatusDto.prototype, "accountStatus", 2);
|
|
4783
4812
|
|
|
4784
4813
|
// src/modules/client-admin/dto/update-client.dto.ts
|
|
4785
4814
|
var import_class_transformer9 = require("class-transformer");
|
|
4786
|
-
var
|
|
4815
|
+
var import_class_validator56 = require("class-validator");
|
|
4787
4816
|
var UpdateClientHiringModeEnum = /* @__PURE__ */ ((UpdateClientHiringModeEnum2) => {
|
|
4788
4817
|
UpdateClientHiringModeEnum2["REMOTE"] = "REMOTE";
|
|
4789
4818
|
UpdateClientHiringModeEnum2["ONSITE"] = "ONSITE";
|
|
@@ -4799,53 +4828,53 @@ var UpdateClientHiringTypeEnum = /* @__PURE__ */ ((UpdateClientHiringTypeEnum2)
|
|
|
4799
4828
|
var UpdateClientDto = class {
|
|
4800
4829
|
};
|
|
4801
4830
|
__decorateClass([
|
|
4802
|
-
(0,
|
|
4803
|
-
(0,
|
|
4831
|
+
(0, import_class_validator56.IsNotEmpty)({ message: "Please enter first name." }),
|
|
4832
|
+
(0, import_class_validator56.IsString)()
|
|
4804
4833
|
], UpdateClientDto.prototype, "firstName", 2);
|
|
4805
4834
|
__decorateClass([
|
|
4806
|
-
(0,
|
|
4807
|
-
(0,
|
|
4835
|
+
(0, import_class_validator56.IsNotEmpty)({ message: "Please enter last name." }),
|
|
4836
|
+
(0, import_class_validator56.IsString)()
|
|
4808
4837
|
], UpdateClientDto.prototype, "lastName", 2);
|
|
4809
4838
|
__decorateClass([
|
|
4810
|
-
(0,
|
|
4811
|
-
(0,
|
|
4839
|
+
(0, import_class_validator56.IsNotEmpty)({ message: "Please enter email." }),
|
|
4840
|
+
(0, import_class_validator56.IsEmail)()
|
|
4812
4841
|
], UpdateClientDto.prototype, "email", 2);
|
|
4813
4842
|
__decorateClass([
|
|
4814
|
-
(0,
|
|
4843
|
+
(0, import_class_validator56.IsOptional)(),
|
|
4815
4844
|
(0, import_class_transformer9.Transform)(({ value }) => value === null || value === "" ? void 0 : value),
|
|
4816
|
-
(0,
|
|
4817
|
-
(0,
|
|
4818
|
-
(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)(?=.*[@$!%*?&])/, {
|
|
4819
4848
|
message: "Password must include letters, numbers and symbols."
|
|
4820
4849
|
})
|
|
4821
4850
|
], UpdateClientDto.prototype, "password", 2);
|
|
4822
4851
|
__decorateClass([
|
|
4823
|
-
(0,
|
|
4824
|
-
(0,
|
|
4852
|
+
(0, import_class_validator56.IsNotEmpty)({ message: "Please enter company name." }),
|
|
4853
|
+
(0, import_class_validator56.IsString)()
|
|
4825
4854
|
], UpdateClientDto.prototype, "companyName", 2);
|
|
4826
4855
|
__decorateClass([
|
|
4827
|
-
(0,
|
|
4828
|
-
(0,
|
|
4856
|
+
(0, import_class_validator56.IsArray)({ message: "Skills should be an array." }),
|
|
4857
|
+
(0, import_class_validator56.IsNotEmpty)({ message: "Please enter skills." })
|
|
4829
4858
|
], UpdateClientDto.prototype, "skills", 2);
|
|
4830
4859
|
__decorateClass([
|
|
4831
|
-
(0,
|
|
4832
|
-
(0,
|
|
4860
|
+
(0, import_class_validator56.IsNotEmpty)({ message: "Please specify required freelancer count." }),
|
|
4861
|
+
(0, import_class_validator56.IsString)()
|
|
4833
4862
|
], UpdateClientDto.prototype, "requiredFreelancer", 2);
|
|
4834
4863
|
__decorateClass([
|
|
4835
|
-
(0,
|
|
4836
|
-
(0,
|
|
4864
|
+
(0, import_class_validator56.IsNotEmpty)({ message: "Please specify the kind of hiring." }),
|
|
4865
|
+
(0, import_class_validator56.IsEnum)(UpdateClientHiringTypeEnum)
|
|
4837
4866
|
], UpdateClientDto.prototype, "kindOfHiring", 2);
|
|
4838
4867
|
__decorateClass([
|
|
4839
|
-
(0,
|
|
4840
|
-
(0,
|
|
4868
|
+
(0, import_class_validator56.IsNotEmpty)({ message: "Please specify the mode of hire." }),
|
|
4869
|
+
(0, import_class_validator56.IsEnum)(UpdateClientHiringModeEnum)
|
|
4841
4870
|
], UpdateClientDto.prototype, "modeOfHire", 2);
|
|
4842
4871
|
__decorateClass([
|
|
4843
|
-
(0,
|
|
4844
|
-
(0,
|
|
4872
|
+
(0, import_class_validator56.IsNotEmpty)({ message: "Please let us know how you found us." }),
|
|
4873
|
+
(0, import_class_validator56.IsString)()
|
|
4845
4874
|
], UpdateClientDto.prototype, "foundUsOn", 2);
|
|
4846
4875
|
__decorateClass([
|
|
4847
|
-
(0,
|
|
4848
|
-
(0,
|
|
4876
|
+
(0, import_class_validator56.IsOptional)(),
|
|
4877
|
+
(0, import_class_validator56.IsString)()
|
|
4849
4878
|
], UpdateClientDto.prototype, "foundUsOnDetail", 2);
|
|
4850
4879
|
|
|
4851
4880
|
// src/modules/user/freelancer-declaration/pattern/pattern.ts
|
|
@@ -4855,7 +4884,7 @@ var FREELANCER_DECLARATION_PATTERN = {
|
|
|
4855
4884
|
};
|
|
4856
4885
|
|
|
4857
4886
|
// src/modules/user/freelancer-declaration/dto/freelancer-declaration.dto.ts
|
|
4858
|
-
var
|
|
4887
|
+
var import_class_validator57 = require("class-validator");
|
|
4859
4888
|
var DocumentTypeEnum = /* @__PURE__ */ ((DocumentTypeEnum2) => {
|
|
4860
4889
|
DocumentTypeEnum2["AADHAAR"] = "AADHAAR_CARD";
|
|
4861
4890
|
DocumentTypeEnum2["PASSPORT"] = "PASSPORT";
|
|
@@ -4866,16 +4895,16 @@ var DocumentTypeEnum = /* @__PURE__ */ ((DocumentTypeEnum2) => {
|
|
|
4866
4895
|
var FreelancerDeclarationDto = class {
|
|
4867
4896
|
};
|
|
4868
4897
|
__decorateClass([
|
|
4869
|
-
(0,
|
|
4870
|
-
(0,
|
|
4898
|
+
(0, import_class_validator57.IsOptional)(),
|
|
4899
|
+
(0, import_class_validator57.IsString)({ message: "UUID must be a string" })
|
|
4871
4900
|
], FreelancerDeclarationDto.prototype, "uuid", 2);
|
|
4872
4901
|
__decorateClass([
|
|
4873
|
-
(0,
|
|
4902
|
+
(0, import_class_validator57.IsEnum)(DocumentTypeEnum, { message: "Document type must be one of AADHAAR_CARD, PASSPORT, DRIVING_LICENSE, PAN_CARD" })
|
|
4874
4903
|
], FreelancerDeclarationDto.prototype, "documentType", 2);
|
|
4875
4904
|
__decorateClass([
|
|
4876
|
-
(0,
|
|
4877
|
-
(0,
|
|
4878
|
-
(0,
|
|
4905
|
+
(0, import_class_validator57.IsNotEmpty)({ message: "Please accept the declaration " }),
|
|
4906
|
+
(0, import_class_validator57.IsString)(),
|
|
4907
|
+
(0, import_class_validator57.IsIn)([
|
|
4879
4908
|
"true"
|
|
4880
4909
|
])
|
|
4881
4910
|
], FreelancerDeclarationDto.prototype, "declarationAccepted", 2);
|
|
@@ -4890,36 +4919,36 @@ var CMS_PATTERNS = {
|
|
|
4890
4919
|
};
|
|
4891
4920
|
|
|
4892
4921
|
// src/modules/cms/dto/create-cms.dto.ts
|
|
4893
|
-
var
|
|
4922
|
+
var import_class_validator58 = require("class-validator");
|
|
4894
4923
|
var CreateCmsDto = class {
|
|
4895
4924
|
};
|
|
4896
4925
|
__decorateClass([
|
|
4897
|
-
(0,
|
|
4926
|
+
(0, import_class_validator58.IsNotEmpty)({ message: "Please enter name." })
|
|
4898
4927
|
], CreateCmsDto.prototype, "title", 2);
|
|
4899
4928
|
__decorateClass([
|
|
4900
|
-
(0,
|
|
4929
|
+
(0, import_class_validator58.IsOptional)()
|
|
4901
4930
|
], CreateCmsDto.prototype, "content", 2);
|
|
4902
4931
|
__decorateClass([
|
|
4903
|
-
(0,
|
|
4904
|
-
(0,
|
|
4932
|
+
(0, import_class_validator58.IsOptional)(),
|
|
4933
|
+
(0, import_class_validator58.IsBoolean)({ message: "Is active must be a boolean value" })
|
|
4905
4934
|
], CreateCmsDto.prototype, "isActive", 2);
|
|
4906
4935
|
|
|
4907
4936
|
// src/modules/cms/dto/update-cms.dto.ts
|
|
4908
|
-
var
|
|
4937
|
+
var import_class_validator59 = require("class-validator");
|
|
4909
4938
|
var UpdateCmsDto = class {
|
|
4910
4939
|
};
|
|
4911
4940
|
__decorateClass([
|
|
4912
|
-
(0,
|
|
4941
|
+
(0, import_class_validator59.IsOptional)()
|
|
4913
4942
|
], UpdateCmsDto.prototype, "uuid", 2);
|
|
4914
4943
|
__decorateClass([
|
|
4915
|
-
(0,
|
|
4944
|
+
(0, import_class_validator59.IsNotEmpty)({ message: "Please enter name." })
|
|
4916
4945
|
], UpdateCmsDto.prototype, "title", 2);
|
|
4917
4946
|
__decorateClass([
|
|
4918
|
-
(0,
|
|
4947
|
+
(0, import_class_validator59.IsOptional)()
|
|
4919
4948
|
], UpdateCmsDto.prototype, "content", 2);
|
|
4920
4949
|
__decorateClass([
|
|
4921
|
-
(0,
|
|
4922
|
-
(0,
|
|
4950
|
+
(0, import_class_validator59.IsOptional)(),
|
|
4951
|
+
(0, import_class_validator59.IsBoolean)({ message: "Is active must be a boolean value" })
|
|
4923
4952
|
], UpdateCmsDto.prototype, "isActive", 2);
|
|
4924
4953
|
|
|
4925
4954
|
// src/modules/geographic/pattern/pattern.ts
|
|
@@ -4947,7 +4976,7 @@ var ADMIN_JOB_PATTERN = {
|
|
|
4947
4976
|
|
|
4948
4977
|
// src/modules/job-admin/dto/admin-create-job-information.dto.ts
|
|
4949
4978
|
var import_class_transformer10 = require("class-transformer");
|
|
4950
|
-
var
|
|
4979
|
+
var import_class_validator60 = require("class-validator");
|
|
4951
4980
|
var JobLocationEnumDto = /* @__PURE__ */ ((JobLocationEnumDto2) => {
|
|
4952
4981
|
JobLocationEnumDto2["ONSITE"] = "ONSITE";
|
|
4953
4982
|
JobLocationEnumDto2["REMOTE"] = "REMOTE";
|
|
@@ -4963,88 +4992,88 @@ var TypeOfEmploymentEnumDto = /* @__PURE__ */ ((TypeOfEmploymentEnumDto2) => {
|
|
|
4963
4992
|
var AdminCreateJobInformationDto = class {
|
|
4964
4993
|
};
|
|
4965
4994
|
__decorateClass([
|
|
4966
|
-
(0,
|
|
4967
|
-
(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." })
|
|
4968
4997
|
], AdminCreateJobInformationDto.prototype, "jobRole", 2);
|
|
4969
4998
|
__decorateClass([
|
|
4970
|
-
(0,
|
|
4971
|
-
(0,
|
|
4999
|
+
(0, import_class_validator60.IsOptional)(),
|
|
5000
|
+
(0, import_class_validator60.IsString)({ message: "Note must be a string." })
|
|
4972
5001
|
], AdminCreateJobInformationDto.prototype, "note", 2);
|
|
4973
5002
|
__decorateClass([
|
|
4974
|
-
(0,
|
|
4975
|
-
(0,
|
|
4976
|
-
(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." })
|
|
4977
5006
|
], AdminCreateJobInformationDto.prototype, "skills", 2);
|
|
4978
5007
|
__decorateClass([
|
|
4979
|
-
(0,
|
|
4980
|
-
(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." })
|
|
4981
5010
|
], AdminCreateJobInformationDto.prototype, "openings", 2);
|
|
4982
5011
|
__decorateClass([
|
|
4983
|
-
(0,
|
|
5012
|
+
(0, import_class_validator60.IsEnum)(JobLocationEnumDto, {
|
|
4984
5013
|
message: `Location must be one of: ${Object.values(JobLocationEnumDto).join(
|
|
4985
5014
|
", "
|
|
4986
5015
|
)}.`
|
|
4987
5016
|
})
|
|
4988
5017
|
], AdminCreateJobInformationDto.prototype, "location", 2);
|
|
4989
5018
|
__decorateClass([
|
|
4990
|
-
(0,
|
|
5019
|
+
(0, import_class_validator60.IsEnum)(TypeOfEmploymentEnumDto, {
|
|
4991
5020
|
message: `Type of employment must be one of: ${Object.values(
|
|
4992
5021
|
TypeOfEmploymentEnumDto
|
|
4993
5022
|
).join(", ")}.`
|
|
4994
5023
|
})
|
|
4995
5024
|
], AdminCreateJobInformationDto.prototype, "typeOfEmployment", 2);
|
|
4996
5025
|
__decorateClass([
|
|
4997
|
-
(0,
|
|
4998
|
-
(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." })
|
|
4999
5028
|
], AdminCreateJobInformationDto.prototype, "onboardingTat", 2);
|
|
5000
5029
|
__decorateClass([
|
|
5001
|
-
(0,
|
|
5002
|
-
(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." })
|
|
5003
5032
|
], AdminCreateJobInformationDto.prototype, "candidateCommunicationSkills", 2);
|
|
5004
5033
|
__decorateClass([
|
|
5005
|
-
(0,
|
|
5006
|
-
(0,
|
|
5034
|
+
(0, import_class_validator60.IsString)({ message: "Currency must be a string." }),
|
|
5035
|
+
(0, import_class_validator60.IsNotEmpty)({ message: "Currency is required." })
|
|
5007
5036
|
], AdminCreateJobInformationDto.prototype, "currency", 2);
|
|
5008
5037
|
__decorateClass([
|
|
5009
5038
|
(0, import_class_transformer10.Type)(() => Number),
|
|
5010
|
-
(0,
|
|
5039
|
+
(0, import_class_validator60.IsNumber)({}, { message: "Expected salary from must be a number." })
|
|
5011
5040
|
], AdminCreateJobInformationDto.prototype, "expectedSalaryFrom", 2);
|
|
5012
5041
|
__decorateClass([
|
|
5013
5042
|
(0, import_class_transformer10.Type)(() => Number),
|
|
5014
|
-
(0,
|
|
5043
|
+
(0, import_class_validator60.IsNumber)({}, { message: "Expected salary to must be a number." })
|
|
5015
5044
|
], AdminCreateJobInformationDto.prototype, "expectedSalaryTo", 2);
|
|
5016
5045
|
__decorateClass([
|
|
5017
|
-
(0,
|
|
5046
|
+
(0, import_class_validator60.IsDateString)(
|
|
5018
5047
|
{ strict: true },
|
|
5019
5048
|
{ message: "Start date must be in YYYY-MM-DD format." }
|
|
5020
5049
|
)
|
|
5021
5050
|
], AdminCreateJobInformationDto.prototype, "tentativeStartDate", 2);
|
|
5022
5051
|
__decorateClass([
|
|
5023
|
-
(0,
|
|
5052
|
+
(0, import_class_validator60.IsDateString)(
|
|
5024
5053
|
{ strict: true },
|
|
5025
5054
|
{ message: "End date must be in YYYY-MM-DD format." }
|
|
5026
5055
|
)
|
|
5027
5056
|
], AdminCreateJobInformationDto.prototype, "tentativeEndDate", 2);
|
|
5028
5057
|
__decorateClass([
|
|
5029
|
-
(0,
|
|
5030
|
-
(0,
|
|
5058
|
+
(0, import_class_validator60.IsOptional)(),
|
|
5059
|
+
(0, import_class_validator60.IsString)({ message: "Additional comment must be a string." })
|
|
5031
5060
|
], AdminCreateJobInformationDto.prototype, "additionalComment", 2);
|
|
5032
5061
|
__decorateClass([
|
|
5033
|
-
(0,
|
|
5062
|
+
(0, import_class_validator60.IsInt)({ message: "Country ID must be a valid integer." })
|
|
5034
5063
|
], AdminCreateJobInformationDto.prototype, "countryId", 2);
|
|
5035
5064
|
__decorateClass([
|
|
5036
|
-
(0,
|
|
5065
|
+
(0, import_class_validator60.IsInt)({ message: "State ID must be a valid integer." })
|
|
5037
5066
|
], AdminCreateJobInformationDto.prototype, "stateId", 2);
|
|
5038
5067
|
__decorateClass([
|
|
5039
|
-
(0,
|
|
5068
|
+
(0, import_class_validator60.IsInt)({ message: "City ID must be a valid integer." })
|
|
5040
5069
|
], AdminCreateJobInformationDto.prototype, "cityId", 2);
|
|
5041
5070
|
__decorateClass([
|
|
5042
|
-
(0,
|
|
5071
|
+
(0, import_class_validator60.IsInt)({ message: "Client ID must be a valid integer." })
|
|
5043
5072
|
], AdminCreateJobInformationDto.prototype, "clientId", 2);
|
|
5044
5073
|
|
|
5045
5074
|
// src/modules/job-admin/dto/admin-update-job-information.dto.ts
|
|
5046
5075
|
var import_class_transformer11 = require("class-transformer");
|
|
5047
|
-
var
|
|
5076
|
+
var import_class_validator61 = require("class-validator");
|
|
5048
5077
|
var JobLocationEnums = /* @__PURE__ */ ((JobLocationEnums2) => {
|
|
5049
5078
|
JobLocationEnums2["ONSITE"] = "ONSITE";
|
|
5050
5079
|
JobLocationEnums2["REMOTE"] = "REMOTE";
|
|
@@ -5060,83 +5089,83 @@ var TypeOfEmploymentEnums = /* @__PURE__ */ ((TypeOfEmploymentEnums2) => {
|
|
|
5060
5089
|
var AdminUpdateJobInformationDto = class {
|
|
5061
5090
|
};
|
|
5062
5091
|
__decorateClass([
|
|
5063
|
-
(0,
|
|
5064
|
-
(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." })
|
|
5065
5094
|
], AdminUpdateJobInformationDto.prototype, "jobRole", 2);
|
|
5066
5095
|
__decorateClass([
|
|
5067
|
-
(0,
|
|
5068
|
-
(0,
|
|
5096
|
+
(0, import_class_validator61.IsOptional)(),
|
|
5097
|
+
(0, import_class_validator61.IsString)({ message: "Note must be a string." })
|
|
5069
5098
|
], AdminUpdateJobInformationDto.prototype, "note", 2);
|
|
5070
5099
|
__decorateClass([
|
|
5071
|
-
(0,
|
|
5072
|
-
(0,
|
|
5073
|
-
(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." })
|
|
5074
5103
|
], AdminUpdateJobInformationDto.prototype, "skills", 2);
|
|
5075
5104
|
__decorateClass([
|
|
5076
|
-
(0,
|
|
5077
|
-
(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." })
|
|
5078
5107
|
], AdminUpdateJobInformationDto.prototype, "openings", 2);
|
|
5079
5108
|
__decorateClass([
|
|
5080
|
-
(0,
|
|
5109
|
+
(0, import_class_validator61.IsEnum)(JobLocationEnums, {
|
|
5081
5110
|
message: `Location must be one of: ${Object.values(JobLocationEnums).join(
|
|
5082
5111
|
", "
|
|
5083
5112
|
)}.`
|
|
5084
5113
|
})
|
|
5085
5114
|
], AdminUpdateJobInformationDto.prototype, "location", 2);
|
|
5086
5115
|
__decorateClass([
|
|
5087
|
-
(0,
|
|
5116
|
+
(0, import_class_validator61.IsEnum)(TypeOfEmploymentEnums, {
|
|
5088
5117
|
message: `Type of employment must be one of: ${Object.values(
|
|
5089
5118
|
TypeOfEmploymentEnums
|
|
5090
5119
|
).join(", ")}.`
|
|
5091
5120
|
})
|
|
5092
5121
|
], AdminUpdateJobInformationDto.prototype, "typeOfEmployment", 2);
|
|
5093
5122
|
__decorateClass([
|
|
5094
|
-
(0,
|
|
5095
|
-
(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." })
|
|
5096
5125
|
], AdminUpdateJobInformationDto.prototype, "onboardingTat", 2);
|
|
5097
5126
|
__decorateClass([
|
|
5098
|
-
(0,
|
|
5099
|
-
(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." })
|
|
5100
5129
|
], AdminUpdateJobInformationDto.prototype, "candidateCommunicationSkills", 2);
|
|
5101
5130
|
__decorateClass([
|
|
5102
|
-
(0,
|
|
5103
|
-
(0,
|
|
5131
|
+
(0, import_class_validator61.IsString)({ message: "Currency must be a string." }),
|
|
5132
|
+
(0, import_class_validator61.IsNotEmpty)({ message: "Currency is required." })
|
|
5104
5133
|
], AdminUpdateJobInformationDto.prototype, "currency", 2);
|
|
5105
5134
|
__decorateClass([
|
|
5106
5135
|
(0, import_class_transformer11.Type)(() => Number),
|
|
5107
|
-
(0,
|
|
5136
|
+
(0, import_class_validator61.IsNumber)({}, { message: "Expected salary from must be a number." })
|
|
5108
5137
|
], AdminUpdateJobInformationDto.prototype, "expectedSalaryFrom", 2);
|
|
5109
5138
|
__decorateClass([
|
|
5110
5139
|
(0, import_class_transformer11.Type)(() => Number),
|
|
5111
|
-
(0,
|
|
5140
|
+
(0, import_class_validator61.IsNumber)({}, { message: "Expected salary to must be a number." })
|
|
5112
5141
|
], AdminUpdateJobInformationDto.prototype, "expectedSalaryTo", 2);
|
|
5113
5142
|
__decorateClass([
|
|
5114
|
-
(0,
|
|
5143
|
+
(0, import_class_validator61.IsDateString)(
|
|
5115
5144
|
{ strict: true },
|
|
5116
5145
|
{ message: "Start date must be in YYYY-MM-DD format." }
|
|
5117
5146
|
)
|
|
5118
5147
|
], AdminUpdateJobInformationDto.prototype, "tentativeStartDate", 2);
|
|
5119
5148
|
__decorateClass([
|
|
5120
|
-
(0,
|
|
5149
|
+
(0, import_class_validator61.IsDateString)(
|
|
5121
5150
|
{ strict: true },
|
|
5122
5151
|
{ message: "End date must be in YYYY-MM-DD format." }
|
|
5123
5152
|
)
|
|
5124
5153
|
], AdminUpdateJobInformationDto.prototype, "tentativeEndDate", 2);
|
|
5125
5154
|
__decorateClass([
|
|
5126
|
-
(0,
|
|
5127
|
-
(0,
|
|
5155
|
+
(0, import_class_validator61.IsOptional)(),
|
|
5156
|
+
(0, import_class_validator61.IsString)({ message: "Additional comment must be a string." })
|
|
5128
5157
|
], AdminUpdateJobInformationDto.prototype, "additionalComment", 2);
|
|
5129
5158
|
__decorateClass([
|
|
5130
|
-
(0,
|
|
5159
|
+
(0, import_class_validator61.IsInt)({ message: "Country ID must be a valid integer." })
|
|
5131
5160
|
], AdminUpdateJobInformationDto.prototype, "countryId", 2);
|
|
5132
5161
|
__decorateClass([
|
|
5133
|
-
(0,
|
|
5162
|
+
(0, import_class_validator61.IsInt)({ message: "State ID must be a valid integer." })
|
|
5134
5163
|
], AdminUpdateJobInformationDto.prototype, "stateId", 2);
|
|
5135
5164
|
__decorateClass([
|
|
5136
|
-
(0,
|
|
5165
|
+
(0, import_class_validator61.IsInt)({ message: "City ID must be a valid integer." })
|
|
5137
5166
|
], AdminUpdateJobInformationDto.prototype, "cityId", 2);
|
|
5138
5167
|
__decorateClass([
|
|
5139
|
-
(0,
|
|
5168
|
+
(0, import_class_validator61.IsInt)({ message: "Client ID must be a valid integer." })
|
|
5140
5169
|
], AdminUpdateJobInformationDto.prototype, "clientId", 2);
|
|
5141
5170
|
|
|
5142
5171
|
// src/modules/lead/pattern/pattern.ts
|
|
@@ -5146,7 +5175,7 @@ var LEAD_PATTERN = {
|
|
|
5146
5175
|
};
|
|
5147
5176
|
|
|
5148
5177
|
// src/modules/lead/dto/create-lead.dto.ts
|
|
5149
|
-
var
|
|
5178
|
+
var import_class_validator62 = require("class-validator");
|
|
5150
5179
|
var CategoryEmumDto = /* @__PURE__ */ ((CategoryEmumDto2) => {
|
|
5151
5180
|
CategoryEmumDto2["BUSINESS"] = "BUSINESS";
|
|
5152
5181
|
CategoryEmumDto2["FREELANCER"] = "FREELANCER";
|
|
@@ -5155,23 +5184,23 @@ var CategoryEmumDto = /* @__PURE__ */ ((CategoryEmumDto2) => {
|
|
|
5155
5184
|
var CreateLeadDto = class {
|
|
5156
5185
|
};
|
|
5157
5186
|
__decorateClass([
|
|
5158
|
-
(0,
|
|
5187
|
+
(0, import_class_validator62.IsString)({ message: "Name must be a string" })
|
|
5159
5188
|
], CreateLeadDto.prototype, "name", 2);
|
|
5160
5189
|
__decorateClass([
|
|
5161
|
-
(0,
|
|
5190
|
+
(0, import_class_validator62.IsEmail)({}, { message: "Invalid email address" })
|
|
5162
5191
|
], CreateLeadDto.prototype, "email", 2);
|
|
5163
5192
|
__decorateClass([
|
|
5164
|
-
(0,
|
|
5193
|
+
(0, import_class_validator62.IsString)({ message: "Mobile code must be a string (e.g., +1)" })
|
|
5165
5194
|
], CreateLeadDto.prototype, "mobileCode", 2);
|
|
5166
5195
|
__decorateClass([
|
|
5167
|
-
(0,
|
|
5196
|
+
(0, import_class_validator62.IsString)({ message: "Mobile must be a string (e.g., 1243253534)" })
|
|
5168
5197
|
], CreateLeadDto.prototype, "mobile", 2);
|
|
5169
5198
|
__decorateClass([
|
|
5170
|
-
(0,
|
|
5171
|
-
(0,
|
|
5199
|
+
(0, import_class_validator62.IsOptional)(),
|
|
5200
|
+
(0, import_class_validator62.IsString)({ message: "Description must be a string" })
|
|
5172
5201
|
], CreateLeadDto.prototype, "description", 2);
|
|
5173
5202
|
__decorateClass([
|
|
5174
|
-
(0,
|
|
5203
|
+
(0, import_class_validator62.IsEnum)(CategoryEmumDto, {
|
|
5175
5204
|
message: `Type of category must be one of: ${Object.values(
|
|
5176
5205
|
CategoryEmumDto
|
|
5177
5206
|
).join(", ")}`
|
|
@@ -5191,46 +5220,46 @@ var ADMIN_ROLE_PATTERN = {
|
|
|
5191
5220
|
};
|
|
5192
5221
|
|
|
5193
5222
|
// src/modules/admin-role/dto/create-admin-role.dto.ts
|
|
5194
|
-
var
|
|
5223
|
+
var import_class_validator63 = require("class-validator");
|
|
5195
5224
|
var CreateAdminRoleDto = class {
|
|
5196
5225
|
};
|
|
5197
5226
|
__decorateClass([
|
|
5198
|
-
(0,
|
|
5199
|
-
(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." })
|
|
5200
5229
|
], CreateAdminRoleDto.prototype, "roleName", 2);
|
|
5201
5230
|
__decorateClass([
|
|
5202
|
-
(0,
|
|
5203
|
-
(0,
|
|
5231
|
+
(0, import_class_validator63.IsOptional)(),
|
|
5232
|
+
(0, import_class_validator63.IsString)({ message: "Role description must be a string." })
|
|
5204
5233
|
], CreateAdminRoleDto.prototype, "roleDescription", 2);
|
|
5205
5234
|
|
|
5206
5235
|
// src/modules/admin-role/dto/update-admin-role.dto.ts
|
|
5207
|
-
var
|
|
5236
|
+
var import_class_validator64 = require("class-validator");
|
|
5208
5237
|
var UpdateAdminRoleDto = class {
|
|
5209
5238
|
};
|
|
5210
5239
|
__decorateClass([
|
|
5211
|
-
(0,
|
|
5212
|
-
(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." })
|
|
5213
5242
|
], UpdateAdminRoleDto.prototype, "roleName", 2);
|
|
5214
5243
|
__decorateClass([
|
|
5215
|
-
(0,
|
|
5216
|
-
(0,
|
|
5244
|
+
(0, import_class_validator64.IsOptional)(),
|
|
5245
|
+
(0, import_class_validator64.IsString)({ message: "Role description must be a string." })
|
|
5217
5246
|
], UpdateAdminRoleDto.prototype, "roleDescription", 2);
|
|
5218
5247
|
__decorateClass([
|
|
5219
|
-
(0,
|
|
5220
|
-
(0,
|
|
5248
|
+
(0, import_class_validator64.IsOptional)(),
|
|
5249
|
+
(0, import_class_validator64.IsBoolean)({ message: "Is active must be a boolean value." })
|
|
5221
5250
|
], UpdateAdminRoleDto.prototype, "isActive", 2);
|
|
5222
5251
|
|
|
5223
5252
|
// src/modules/admin-role/dto/attach-permissions-to-role.dto.ts
|
|
5224
|
-
var
|
|
5253
|
+
var import_class_validator65 = require("class-validator");
|
|
5225
5254
|
var AttachPermissionsToRoleDto = class {
|
|
5226
5255
|
};
|
|
5227
5256
|
__decorateClass([
|
|
5228
|
-
(0,
|
|
5229
|
-
(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." })
|
|
5230
5259
|
], AttachPermissionsToRoleDto.prototype, "roleId", 2);
|
|
5231
5260
|
__decorateClass([
|
|
5232
|
-
(0,
|
|
5233
|
-
(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." })
|
|
5234
5263
|
], AttachPermissionsToRoleDto.prototype, "permissionIds", 2);
|
|
5235
5264
|
|
|
5236
5265
|
// src/modules/admin-permission/pattern/pattern.ts
|
|
@@ -5256,7 +5285,7 @@ var CALENDLY_PATTERN = {
|
|
|
5256
5285
|
};
|
|
5257
5286
|
|
|
5258
5287
|
// src/modules/interview/dto/interview-invite.dto.ts
|
|
5259
|
-
var
|
|
5288
|
+
var import_class_validator66 = require("class-validator");
|
|
5260
5289
|
var import_class_transformer12 = require("class-transformer");
|
|
5261
5290
|
var CandidateType = /* @__PURE__ */ ((CandidateType2) => {
|
|
5262
5291
|
CandidateType2["SHORTLISTED"] = "SHORTLISTED";
|
|
@@ -5268,88 +5297,88 @@ var CandidateType = /* @__PURE__ */ ((CandidateType2) => {
|
|
|
5268
5297
|
var ExistingCandidateDto = class {
|
|
5269
5298
|
};
|
|
5270
5299
|
__decorateClass([
|
|
5271
|
-
(0,
|
|
5300
|
+
(0, import_class_validator66.IsUUID)()
|
|
5272
5301
|
], ExistingCandidateDto.prototype, "id", 2);
|
|
5273
5302
|
__decorateClass([
|
|
5274
|
-
(0,
|
|
5303
|
+
(0, import_class_validator66.IsEnum)(CandidateType, {
|
|
5275
5304
|
message: "type must be one of SHORTLISTED, APPLICATNTS, or RECOMMENDED"
|
|
5276
5305
|
})
|
|
5277
5306
|
], ExistingCandidateDto.prototype, "type", 2);
|
|
5278
5307
|
var NewCandidateDto = class {
|
|
5279
5308
|
};
|
|
5280
5309
|
__decorateClass([
|
|
5281
|
-
(0,
|
|
5282
|
-
(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" })
|
|
5283
5312
|
], NewCandidateDto.prototype, "name", 2);
|
|
5284
5313
|
__decorateClass([
|
|
5285
|
-
(0,
|
|
5314
|
+
(0, import_class_validator66.IsEmail)({}, { message: "Please enter a valid email." })
|
|
5286
5315
|
], NewCandidateDto.prototype, "email", 2);
|
|
5287
5316
|
__decorateClass([
|
|
5288
|
-
(0,
|
|
5317
|
+
(0, import_class_validator66.IsEnum)(CandidateType, {
|
|
5289
5318
|
message: "type must be NEW"
|
|
5290
5319
|
})
|
|
5291
5320
|
], NewCandidateDto.prototype, "type", 2);
|
|
5292
5321
|
var CandidatesDto = class {
|
|
5293
5322
|
};
|
|
5294
5323
|
__decorateClass([
|
|
5295
|
-
(0,
|
|
5296
|
-
(0,
|
|
5297
|
-
(0,
|
|
5298
|
-
(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 }),
|
|
5299
5328
|
(0, import_class_transformer12.Type)(() => ExistingCandidateDto)
|
|
5300
5329
|
], CandidatesDto.prototype, "exixtingCandidates", 2);
|
|
5301
5330
|
__decorateClass([
|
|
5302
|
-
(0,
|
|
5303
|
-
(0,
|
|
5304
|
-
(0,
|
|
5305
|
-
(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 }),
|
|
5306
5335
|
(0, import_class_transformer12.Type)(() => NewCandidateDto)
|
|
5307
5336
|
], CandidatesDto.prototype, "newCandidates", 2);
|
|
5308
5337
|
var InterviewInviteDto = class {
|
|
5309
5338
|
};
|
|
5310
5339
|
__decorateClass([
|
|
5311
|
-
(0,
|
|
5340
|
+
(0, import_class_validator66.IsUUID)()
|
|
5312
5341
|
], InterviewInviteDto.prototype, "jobId", 2);
|
|
5313
5342
|
__decorateClass([
|
|
5314
|
-
(0,
|
|
5343
|
+
(0, import_class_validator66.ValidateNested)({ each: true }),
|
|
5315
5344
|
(0, import_class_transformer12.Type)(() => CandidatesDto)
|
|
5316
5345
|
], InterviewInviteDto.prototype, "candidates", 2);
|
|
5317
5346
|
|
|
5318
5347
|
// src/modules/interview/dto/create-f2f-interview.dto.ts
|
|
5319
|
-
var
|
|
5348
|
+
var import_class_validator67 = require("class-validator");
|
|
5320
5349
|
var CreateF2FInterviewDto = class {
|
|
5321
5350
|
};
|
|
5322
5351
|
__decorateClass([
|
|
5323
|
-
(0,
|
|
5324
|
-
(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." })
|
|
5325
5354
|
], CreateF2FInterviewDto.prototype, "inviteeEmail", 2);
|
|
5326
5355
|
__decorateClass([
|
|
5327
|
-
(0,
|
|
5328
|
-
(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." })
|
|
5329
5358
|
], CreateF2FInterviewDto.prototype, "inviteeName", 2);
|
|
5330
5359
|
__decorateClass([
|
|
5331
|
-
(0,
|
|
5360
|
+
(0, import_class_validator67.IsNumber)({}, { message: "Interview ID must be a number." })
|
|
5332
5361
|
], CreateF2FInterviewDto.prototype, "interviewId", 2);
|
|
5333
5362
|
__decorateClass([
|
|
5334
|
-
(0,
|
|
5363
|
+
(0, import_class_validator67.IsNumber)({}, { message: "Candidate ID must be a number." })
|
|
5335
5364
|
], CreateF2FInterviewDto.prototype, "candidateId", 2);
|
|
5336
5365
|
|
|
5337
5366
|
// src/modules/interview/dto/create-f2f-interview-reschedule-request.dto.ts
|
|
5338
|
-
var
|
|
5367
|
+
var import_class_validator68 = require("class-validator");
|
|
5339
5368
|
var CreateF2FInterviewRescheduleRequestDto = class {
|
|
5340
5369
|
};
|
|
5341
5370
|
__decorateClass([
|
|
5342
|
-
(0,
|
|
5371
|
+
(0, import_class_validator68.IsNotEmpty)({ message: "F2F Interview ID is required." })
|
|
5343
5372
|
], CreateF2FInterviewRescheduleRequestDto.prototype, "f2FInterviewId", 2);
|
|
5344
5373
|
__decorateClass([
|
|
5345
|
-
(0,
|
|
5374
|
+
(0, import_class_validator68.IsNotEmpty)({ message: "Rescheduled date is required." })
|
|
5346
5375
|
], CreateF2FInterviewRescheduleRequestDto.prototype, "rescheduledDate", 2);
|
|
5347
5376
|
__decorateClass([
|
|
5348
|
-
(0,
|
|
5349
|
-
(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." })
|
|
5350
5379
|
], CreateF2FInterviewRescheduleRequestDto.prototype, "rescheduledSlot", 2);
|
|
5351
5380
|
__decorateClass([
|
|
5352
|
-
(0,
|
|
5381
|
+
(0, import_class_validator68.IsString)({ message: "Freelancer reason must be a string." })
|
|
5353
5382
|
], CreateF2FInterviewRescheduleRequestDto.prototype, "freelancerRequestReason", 2);
|
|
5354
5383
|
|
|
5355
5384
|
// src/adapters/tcp/user.tcp.adapter.ts
|
|
@@ -6246,6 +6275,8 @@ ZoomMeetingLog = __decorateClass([
|
|
|
6246
6275
|
LEAD_PATTERN,
|
|
6247
6276
|
Lead,
|
|
6248
6277
|
LoginDto,
|
|
6278
|
+
LoginViaOtpDto,
|
|
6279
|
+
LoginViaOtpScopeEnum,
|
|
6249
6280
|
LogoutDto,
|
|
6250
6281
|
McqStatusEnum,
|
|
6251
6282
|
ModeOfHire,
|