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