@experts_hub/shared 1.0.157 → 1.0.158
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 +19 -1
- package/dist/index.d.ts +19 -1
- package/dist/index.js +344 -291
- package/dist/index.mjs +240 -191
- package/dist/modules/otp/dto/index.d.ts +2 -0
- package/dist/modules/otp/dto/send-guest-otp.dto.d.ts +8 -0
- package/dist/modules/otp/dto/verify-guest-otp.dto.d.ts +8 -0
- package/dist/modules/otp/index.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -130,6 +130,8 @@ __export(index_exports, {
|
|
|
130
130
|
SUBADMIN_PATTERN: () => SUBADMIN_PATTERN,
|
|
131
131
|
SYSTEM_PREFERENCES_PATTERN: () => SYSTEM_PREFERENCES_PATTERN,
|
|
132
132
|
ScopeEnum: () => ScopeEnum,
|
|
133
|
+
SendGuestOtpDto: () => SendGuestOtpDto,
|
|
134
|
+
SendGuestOtpPurposeEnum: () => SendGuestOtpPurposeEnum,
|
|
133
135
|
SenseloafLog: () => SenseloafLog,
|
|
134
136
|
SetPasswordDto: () => SetPasswordDto,
|
|
135
137
|
Skill: () => Skill,
|
|
@@ -148,7 +150,9 @@ __export(index_exports, {
|
|
|
148
150
|
UpdateSubAdminDto: () => UpdateSubAdminDto,
|
|
149
151
|
User: () => User,
|
|
150
152
|
UserRMQAdapter: () => UserRMQAdapter,
|
|
151
|
-
UserTCPAdapter: () => UserTCPAdapter
|
|
153
|
+
UserTCPAdapter: () => UserTCPAdapter,
|
|
154
|
+
VerifyGuestOtpDto: () => VerifyGuestOtpDto,
|
|
155
|
+
VerifyGuestOtpPurposeEnum: () => VerifyGuestOtpPurposeEnum
|
|
152
156
|
});
|
|
153
157
|
module.exports = __toCommonJS(index_exports);
|
|
154
158
|
|
|
@@ -275,6 +279,51 @@ var OTP_PATTERN = {
|
|
|
275
279
|
handleVerifyOtp: "handle.verify.otp"
|
|
276
280
|
};
|
|
277
281
|
|
|
282
|
+
// src/modules/otp/dto/send-guest-otp.dto.ts
|
|
283
|
+
var import_class_validator7 = require("class-validator");
|
|
284
|
+
var SendGuestOtpPurposeEnum = /* @__PURE__ */ ((SendGuestOtpPurposeEnum2) => {
|
|
285
|
+
SendGuestOtpPurposeEnum2["ACCOUNT_VERIFICATION"] = "ACCOUNT_VERIFICATION";
|
|
286
|
+
return SendGuestOtpPurposeEnum2;
|
|
287
|
+
})(SendGuestOtpPurposeEnum || {});
|
|
288
|
+
var SendGuestOtpDto = class {
|
|
289
|
+
};
|
|
290
|
+
__decorateClass([
|
|
291
|
+
(0, import_class_validator7.IsNotEmpty)({ message: "Please enter full name." }),
|
|
292
|
+
(0, import_class_validator7.IsString)({ message: "Please enter valid full name." })
|
|
293
|
+
], SendGuestOtpDto.prototype, "fullName", 2);
|
|
294
|
+
__decorateClass([
|
|
295
|
+
(0, import_class_validator7.IsNotEmpty)({ message: "Please enter target." }),
|
|
296
|
+
(0, import_class_validator7.IsString)({ message: "Please enter valid target." })
|
|
297
|
+
], SendGuestOtpDto.prototype, "target", 2);
|
|
298
|
+
__decorateClass([
|
|
299
|
+
(0, import_class_validator7.IsNotEmpty)({ message: "Please enter OTP purpose." }),
|
|
300
|
+
(0, import_class_validator7.IsEnum)(SendGuestOtpPurposeEnum, { message: "Purpose must be a valid OTP purpose" })
|
|
301
|
+
], SendGuestOtpDto.prototype, "purpose", 2);
|
|
302
|
+
|
|
303
|
+
// src/modules/otp/dto/verify-guest-otp.dto.ts
|
|
304
|
+
var import_class_validator8 = require("class-validator");
|
|
305
|
+
var VerifyGuestOtpPurposeEnum = /* @__PURE__ */ ((VerifyGuestOtpPurposeEnum2) => {
|
|
306
|
+
VerifyGuestOtpPurposeEnum2["ACCOUNT_VERIFICATION"] = "ACCOUNT_VERIFICATION";
|
|
307
|
+
return VerifyGuestOtpPurposeEnum2;
|
|
308
|
+
})(VerifyGuestOtpPurposeEnum || {});
|
|
309
|
+
var VerifyGuestOtpDto = class {
|
|
310
|
+
};
|
|
311
|
+
__decorateClass([
|
|
312
|
+
(0, import_class_validator8.IsNotEmpty)({ message: "Please enter target." }),
|
|
313
|
+
(0, import_class_validator8.IsString)({ message: "Please enter valid target." })
|
|
314
|
+
], VerifyGuestOtpDto.prototype, "target", 2);
|
|
315
|
+
__decorateClass([
|
|
316
|
+
(0, import_class_validator8.IsNotEmpty)({ message: "Please enter otp." }),
|
|
317
|
+
(0, import_class_validator8.IsString)({ message: "Please enter valid otp." }),
|
|
318
|
+
(0, import_class_validator8.Length)(4, 6, { message: "OTP must be between 4 and 6 characters" })
|
|
319
|
+
], VerifyGuestOtpDto.prototype, "otp", 2);
|
|
320
|
+
__decorateClass([
|
|
321
|
+
(0, import_class_validator8.IsNotEmpty)({ message: "Please enter OTP purpose." }),
|
|
322
|
+
(0, import_class_validator8.IsEnum)(VerifyGuestOtpPurposeEnum, {
|
|
323
|
+
message: "Purpose must be a valid OTP purpose"
|
|
324
|
+
})
|
|
325
|
+
], VerifyGuestOtpDto.prototype, "purpose", 2);
|
|
326
|
+
|
|
278
327
|
// src/modules/onboarding/pattern/pattern.ts
|
|
279
328
|
var ONBOARDING_PATTERN = {
|
|
280
329
|
handleFreelancerAccountCreation: "handle.freelancer.account.creation",
|
|
@@ -288,13 +337,13 @@ var ONBOARDING_PATTERN = {
|
|
|
288
337
|
};
|
|
289
338
|
|
|
290
339
|
// src/modules/onboarding/dto/freelancer-create-account.dto.ts
|
|
291
|
-
var
|
|
340
|
+
var import_class_validator10 = require("class-validator");
|
|
292
341
|
|
|
293
342
|
// src/decorators/match.decorator.ts
|
|
294
|
-
var
|
|
343
|
+
var import_class_validator9 = require("class-validator");
|
|
295
344
|
function Match(property, validationOptions) {
|
|
296
345
|
return function(object, propertyName) {
|
|
297
|
-
(0,
|
|
346
|
+
(0, import_class_validator9.registerDecorator)({
|
|
298
347
|
name: "Match",
|
|
299
348
|
target: object.constructor,
|
|
300
349
|
propertyName,
|
|
@@ -330,77 +379,77 @@ var IfscOrOtherFieldsConstraint = class {
|
|
|
330
379
|
}
|
|
331
380
|
};
|
|
332
381
|
IfscOrOtherFieldsConstraint = __decorateClass([
|
|
333
|
-
(0,
|
|
382
|
+
(0, import_class_validator9.ValidatorConstraint)({ async: false })
|
|
334
383
|
], IfscOrOtherFieldsConstraint);
|
|
335
384
|
|
|
336
385
|
// src/modules/onboarding/dto/freelancer-create-account.dto.ts
|
|
337
386
|
var FreelancerCreateAccountDto = class {
|
|
338
387
|
};
|
|
339
388
|
__decorateClass([
|
|
340
|
-
(0,
|
|
341
|
-
(0,
|
|
389
|
+
(0, import_class_validator10.IsNotEmpty)({ message: "Please enter full name." }),
|
|
390
|
+
(0, import_class_validator10.IsString)({ message: "Please enter valid full name." })
|
|
342
391
|
], FreelancerCreateAccountDto.prototype, "fullName", 2);
|
|
343
392
|
__decorateClass([
|
|
344
|
-
(0,
|
|
345
|
-
(0,
|
|
393
|
+
(0, import_class_validator10.IsNotEmpty)({ message: "Please enter email." }),
|
|
394
|
+
(0, import_class_validator10.IsEmail)()
|
|
346
395
|
], FreelancerCreateAccountDto.prototype, "email", 2);
|
|
347
396
|
__decorateClass([
|
|
348
|
-
(0,
|
|
349
|
-
(0,
|
|
397
|
+
(0, import_class_validator10.IsNotEmpty)({ message: "Please enter mobile code." }),
|
|
398
|
+
(0, import_class_validator10.Matches)(/^\d+$/, { message: "Mobile code must be numeric" })
|
|
350
399
|
], FreelancerCreateAccountDto.prototype, "mobileCode", 2);
|
|
351
400
|
__decorateClass([
|
|
352
|
-
(0,
|
|
353
|
-
(0,
|
|
401
|
+
(0, import_class_validator10.IsNotEmpty)({ message: "Please enter mobile number." }),
|
|
402
|
+
(0, import_class_validator10.Matches)(/^(\+1\s?)?(\(?\d{3}\)?[\s.-]?)?\d{3}[\s.-]?\d{4}$/, {
|
|
354
403
|
message: "Please enter a valid US mobile number"
|
|
355
404
|
})
|
|
356
405
|
], FreelancerCreateAccountDto.prototype, "mobile", 2);
|
|
357
406
|
__decorateClass([
|
|
358
|
-
(0,
|
|
359
|
-
(0,
|
|
360
|
-
(0,
|
|
361
|
-
(0,
|
|
407
|
+
(0, import_class_validator10.IsNotEmpty)({ message: "Please enter password." }),
|
|
408
|
+
(0, import_class_validator10.MinLength)(6),
|
|
409
|
+
(0, import_class_validator10.MaxLength)(32),
|
|
410
|
+
(0, import_class_validator10.Matches)(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
362
411
|
message: "Password must include letters, numbers and symbols."
|
|
363
412
|
})
|
|
364
413
|
], FreelancerCreateAccountDto.prototype, "password", 2);
|
|
365
414
|
__decorateClass([
|
|
366
|
-
(0,
|
|
415
|
+
(0, import_class_validator10.IsNotEmpty)({ message: "Please enter confirm password." }),
|
|
367
416
|
Match("password", { message: "Passwords do not match" })
|
|
368
417
|
], FreelancerCreateAccountDto.prototype, "confirmPassword", 2);
|
|
369
418
|
|
|
370
419
|
// src/modules/onboarding/dto/freelancer-upload-resume.dto.ts
|
|
371
|
-
var
|
|
420
|
+
var import_class_validator11 = require("class-validator");
|
|
372
421
|
var FreelancerUploadResumeDto = class {
|
|
373
422
|
};
|
|
374
423
|
__decorateClass([
|
|
375
|
-
(0,
|
|
376
|
-
(0,
|
|
424
|
+
(0, import_class_validator11.IsNotEmpty)({ message: "Please enter uuid." }),
|
|
425
|
+
(0, import_class_validator11.IsUUID)()
|
|
377
426
|
], FreelancerUploadResumeDto.prototype, "uuid", 2);
|
|
378
427
|
|
|
379
428
|
// src/modules/onboarding/dto/freelancer-development-preference.dto.ts
|
|
380
|
-
var
|
|
429
|
+
var import_class_validator12 = require("class-validator");
|
|
381
430
|
var FreelancerDevelopmentPreferenceDto = class {
|
|
382
431
|
};
|
|
383
432
|
__decorateClass([
|
|
384
|
-
(0,
|
|
385
|
-
(0,
|
|
433
|
+
(0, import_class_validator12.IsNotEmpty)({ message: "Please enter uuid." }),
|
|
434
|
+
(0, import_class_validator12.IsUUID)()
|
|
386
435
|
], FreelancerDevelopmentPreferenceDto.prototype, "uuid", 2);
|
|
387
436
|
__decorateClass([
|
|
388
|
-
(0,
|
|
389
|
-
(0,
|
|
437
|
+
(0, import_class_validator12.IsNotEmpty)({ message: "Please select development flag." }),
|
|
438
|
+
(0, import_class_validator12.IsBoolean)()
|
|
390
439
|
], FreelancerDevelopmentPreferenceDto.prototype, "developer", 2);
|
|
391
440
|
|
|
392
441
|
// src/modules/onboarding/dto/freelancer-profile-question.dto.ts
|
|
393
|
-
var
|
|
442
|
+
var import_class_validator13 = require("class-validator");
|
|
394
443
|
var FreelancerProfileQuestionDto = class {
|
|
395
444
|
};
|
|
396
445
|
__decorateClass([
|
|
397
|
-
(0,
|
|
398
|
-
(0,
|
|
446
|
+
(0, import_class_validator13.IsNotEmpty)({ message: "Please enter uuid." }),
|
|
447
|
+
(0, import_class_validator13.IsUUID)()
|
|
399
448
|
], FreelancerProfileQuestionDto.prototype, "uuid", 2);
|
|
400
449
|
__decorateClass([
|
|
401
|
-
(0,
|
|
402
|
-
(0,
|
|
403
|
-
(0,
|
|
450
|
+
(0, import_class_validator13.IsNotEmpty)({ message: "Please enter question slug." }),
|
|
451
|
+
(0, import_class_validator13.IsString)(),
|
|
452
|
+
(0, import_class_validator13.IsIn)([
|
|
404
453
|
"natureOfWork",
|
|
405
454
|
"expectedHourlyCompensation",
|
|
406
455
|
"modeOfWork",
|
|
@@ -409,51 +458,51 @@ __decorateClass([
|
|
|
409
458
|
])
|
|
410
459
|
], FreelancerProfileQuestionDto.prototype, "question_slug", 2);
|
|
411
460
|
__decorateClass([
|
|
412
|
-
(0,
|
|
461
|
+
(0, import_class_validator13.IsNotEmpty)({ message: "Please enter answer." })
|
|
413
462
|
], FreelancerProfileQuestionDto.prototype, "answer", 2);
|
|
414
463
|
|
|
415
464
|
// src/modules/onboarding/dto/freelancer-work-showcase.dto.ts
|
|
416
|
-
var
|
|
465
|
+
var import_class_validator14 = require("class-validator");
|
|
417
466
|
var FreelancerWorkShowcaseDto = class {
|
|
418
467
|
};
|
|
419
468
|
__decorateClass([
|
|
420
|
-
(0,
|
|
421
|
-
(0,
|
|
469
|
+
(0, import_class_validator14.IsNotEmpty)({ message: "Please enter uuid." }),
|
|
470
|
+
(0, import_class_validator14.IsUUID)()
|
|
422
471
|
], FreelancerWorkShowcaseDto.prototype, "uuid", 2);
|
|
423
472
|
__decorateClass([
|
|
424
|
-
(0,
|
|
425
|
-
(0,
|
|
426
|
-
(0,
|
|
473
|
+
(0, import_class_validator14.IsNotEmpty)({ message: "Please enter likedin profile url." }),
|
|
474
|
+
(0, import_class_validator14.IsString)(),
|
|
475
|
+
(0, import_class_validator14.IsUrl)({ require_protocol: true }, { message: "linkedinProfileLink must be a valid URL with protocol (e.g. https://)" })
|
|
427
476
|
], FreelancerWorkShowcaseDto.prototype, "linkedinProfileLink", 2);
|
|
428
477
|
__decorateClass([
|
|
429
|
-
(0,
|
|
430
|
-
(0,
|
|
478
|
+
(0, import_class_validator14.IsOptional)(),
|
|
479
|
+
(0, import_class_validator14.IsUrl)({ require_protocol: true }, { message: "kaggleProfileLink must be a valid URL with protocol (e.g. https://)" })
|
|
431
480
|
], FreelancerWorkShowcaseDto.prototype, "kaggleProfileLink", 2);
|
|
432
481
|
__decorateClass([
|
|
433
|
-
(0,
|
|
434
|
-
(0,
|
|
482
|
+
(0, import_class_validator14.IsOptional)(),
|
|
483
|
+
(0, import_class_validator14.IsUrl)({ require_protocol: true }, { message: "githubProfileLink must be a valid URL with protocol (e.g. https://)" })
|
|
435
484
|
], FreelancerWorkShowcaseDto.prototype, "githubProfileLink", 2);
|
|
436
485
|
__decorateClass([
|
|
437
|
-
(0,
|
|
438
|
-
(0,
|
|
486
|
+
(0, import_class_validator14.IsOptional)(),
|
|
487
|
+
(0, import_class_validator14.IsUrl)({ require_protocol: true }, { message: "stackOverflowProfileLink must be a valid URL with protocol (e.g. https://)" })
|
|
439
488
|
], FreelancerWorkShowcaseDto.prototype, "stackOverflowProfileLink", 2);
|
|
440
489
|
__decorateClass([
|
|
441
|
-
(0,
|
|
442
|
-
(0,
|
|
490
|
+
(0, import_class_validator14.IsOptional)(),
|
|
491
|
+
(0, import_class_validator14.IsUrl)({ require_protocol: true }, { message: "portfolioLink must be a valid URL with protocol (e.g. https://)" })
|
|
443
492
|
], FreelancerWorkShowcaseDto.prototype, "portfolioLink", 2);
|
|
444
493
|
|
|
445
494
|
// src/modules/onboarding/dto/client-profile-question.dto.ts
|
|
446
|
-
var
|
|
495
|
+
var import_class_validator15 = require("class-validator");
|
|
447
496
|
var ClientProfileQuestionDto = class {
|
|
448
497
|
};
|
|
449
498
|
__decorateClass([
|
|
450
|
-
(0,
|
|
451
|
-
(0,
|
|
499
|
+
(0, import_class_validator15.IsNotEmpty)({ message: "Please enter uuid." }),
|
|
500
|
+
(0, import_class_validator15.IsUUID)()
|
|
452
501
|
], ClientProfileQuestionDto.prototype, "uuid", 2);
|
|
453
502
|
__decorateClass([
|
|
454
|
-
(0,
|
|
455
|
-
(0,
|
|
456
|
-
(0,
|
|
503
|
+
(0, import_class_validator15.IsNotEmpty)({ message: "Please enter question slug." }),
|
|
504
|
+
(0, import_class_validator15.IsString)(),
|
|
505
|
+
(0, import_class_validator15.IsIn)([
|
|
457
506
|
"skills",
|
|
458
507
|
"requiredFreelancer",
|
|
459
508
|
"kindOfHiring",
|
|
@@ -462,39 +511,39 @@ __decorateClass([
|
|
|
462
511
|
])
|
|
463
512
|
], ClientProfileQuestionDto.prototype, "question_slug", 2);
|
|
464
513
|
__decorateClass([
|
|
465
|
-
(0,
|
|
514
|
+
(0, import_class_validator15.IsNotEmpty)({ message: "Please enter answer." })
|
|
466
515
|
], ClientProfileQuestionDto.prototype, "answer", 2);
|
|
467
516
|
|
|
468
517
|
// src/modules/onboarding/dto/client-create-account.dto.ts
|
|
469
|
-
var
|
|
518
|
+
var import_class_validator16 = require("class-validator");
|
|
470
519
|
var ClientCreateAccountDto = class {
|
|
471
520
|
};
|
|
472
521
|
__decorateClass([
|
|
473
|
-
(0,
|
|
474
|
-
(0,
|
|
522
|
+
(0, import_class_validator16.IsNotEmpty)({ message: "Please enter first name." }),
|
|
523
|
+
(0, import_class_validator16.IsString)({ message: "Please enter valid first name." })
|
|
475
524
|
], ClientCreateAccountDto.prototype, "firstName", 2);
|
|
476
525
|
__decorateClass([
|
|
477
|
-
(0,
|
|
478
|
-
(0,
|
|
526
|
+
(0, import_class_validator16.IsNotEmpty)({ message: "Please enter last name." }),
|
|
527
|
+
(0, import_class_validator16.IsString)({ message: "Please enter valid last name." })
|
|
479
528
|
], ClientCreateAccountDto.prototype, "lastName", 2);
|
|
480
529
|
__decorateClass([
|
|
481
|
-
(0,
|
|
482
|
-
(0,
|
|
530
|
+
(0, import_class_validator16.IsNotEmpty)({ message: "Please enter email." }),
|
|
531
|
+
(0, import_class_validator16.IsEmail)()
|
|
483
532
|
], ClientCreateAccountDto.prototype, "email", 2);
|
|
484
533
|
__decorateClass([
|
|
485
|
-
(0,
|
|
486
|
-
(0,
|
|
534
|
+
(0, import_class_validator16.IsNotEmpty)({ message: "Please enter company name." }),
|
|
535
|
+
(0, import_class_validator16.IsString)({ message: "Please enter valid company name." })
|
|
487
536
|
], ClientCreateAccountDto.prototype, "companyName", 2);
|
|
488
537
|
__decorateClass([
|
|
489
|
-
(0,
|
|
490
|
-
(0,
|
|
491
|
-
(0,
|
|
492
|
-
(0,
|
|
538
|
+
(0, import_class_validator16.IsNotEmpty)({ message: "Please enter password." }),
|
|
539
|
+
(0, import_class_validator16.MinLength)(6),
|
|
540
|
+
(0, import_class_validator16.MaxLength)(32),
|
|
541
|
+
(0, import_class_validator16.Matches)(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
493
542
|
message: "Password must include letters, numbers and symbols."
|
|
494
543
|
})
|
|
495
544
|
], ClientCreateAccountDto.prototype, "password", 2);
|
|
496
545
|
__decorateClass([
|
|
497
|
-
(0,
|
|
546
|
+
(0, import_class_validator16.IsNotEmpty)({ message: "Please enter confirm password." }),
|
|
498
547
|
Match("password", { message: "Passwords do not match" })
|
|
499
548
|
], ClientCreateAccountDto.prototype, "confirmPassword", 2);
|
|
500
549
|
|
|
@@ -516,75 +565,75 @@ var SUBADMIN_PATTERN = {
|
|
|
516
565
|
};
|
|
517
566
|
|
|
518
567
|
// src/modules/user/subadmin/dto/create-subadmin.dto.ts
|
|
519
|
-
var
|
|
568
|
+
var import_class_validator17 = require("class-validator");
|
|
520
569
|
var CreateSubAdminDto = class {
|
|
521
570
|
};
|
|
522
571
|
__decorateClass([
|
|
523
|
-
(0,
|
|
572
|
+
(0, import_class_validator17.IsNotEmpty)({ message: "Please enter unique id." })
|
|
524
573
|
], CreateSubAdminDto.prototype, "uniqueId", 2);
|
|
525
574
|
__decorateClass([
|
|
526
|
-
(0,
|
|
575
|
+
(0, import_class_validator17.IsNotEmpty)({ message: "Please enter username." })
|
|
527
576
|
], CreateSubAdminDto.prototype, "userName", 2);
|
|
528
577
|
__decorateClass([
|
|
529
|
-
(0,
|
|
578
|
+
(0, import_class_validator17.IsNotEmpty)({ message: "Please enter first name." })
|
|
530
579
|
], CreateSubAdminDto.prototype, "firstName", 2);
|
|
531
580
|
__decorateClass([
|
|
532
|
-
(0,
|
|
581
|
+
(0, import_class_validator17.IsNotEmpty)({ message: "Please enter last name." })
|
|
533
582
|
], CreateSubAdminDto.prototype, "lastName", 2);
|
|
534
583
|
__decorateClass([
|
|
535
|
-
(0,
|
|
584
|
+
(0, import_class_validator17.IsNotEmpty)({ message: "Please enter email." })
|
|
536
585
|
], CreateSubAdminDto.prototype, "email", 2);
|
|
537
586
|
__decorateClass([
|
|
538
|
-
(0,
|
|
587
|
+
(0, import_class_validator17.IsNotEmpty)({ message: "Please enter mobile number." })
|
|
539
588
|
], CreateSubAdminDto.prototype, "mobile", 2);
|
|
540
589
|
__decorateClass([
|
|
541
|
-
(0,
|
|
590
|
+
(0, import_class_validator17.IsNotEmpty)({ message: "Please enter the password." })
|
|
542
591
|
], CreateSubAdminDto.prototype, "password", 2);
|
|
543
592
|
__decorateClass([
|
|
544
|
-
(0,
|
|
593
|
+
(0, import_class_validator17.IsNotEmpty)({ message: "Please enter account type." })
|
|
545
594
|
], CreateSubAdminDto.prototype, "accountType", 2);
|
|
546
595
|
__decorateClass([
|
|
547
|
-
(0,
|
|
596
|
+
(0, import_class_validator17.IsNotEmpty)({ message: "Please enter account status." })
|
|
548
597
|
], CreateSubAdminDto.prototype, "accountStatus", 2);
|
|
549
598
|
|
|
550
599
|
// src/modules/user/subadmin/dto/update-subadmin-status.dto.ts
|
|
551
|
-
var
|
|
600
|
+
var import_class_validator18 = require("class-validator");
|
|
552
601
|
var UpdateSubAdminAccountStatusDto = class {
|
|
553
602
|
};
|
|
554
603
|
__decorateClass([
|
|
555
|
-
(0,
|
|
604
|
+
(0, import_class_validator18.IsString)()
|
|
556
605
|
], UpdateSubAdminAccountStatusDto.prototype, "accountStatus", 2);
|
|
557
606
|
|
|
558
607
|
// src/modules/user/subadmin/dto/update-subadmin.dto.ts
|
|
559
|
-
var
|
|
608
|
+
var import_class_validator19 = require("class-validator");
|
|
560
609
|
var UpdateSubAdminDto = class {
|
|
561
610
|
};
|
|
562
611
|
__decorateClass([
|
|
563
|
-
(0,
|
|
612
|
+
(0, import_class_validator19.IsNotEmpty)({ message: "Please enter unique id." })
|
|
564
613
|
], UpdateSubAdminDto.prototype, "uniqueId", 2);
|
|
565
614
|
__decorateClass([
|
|
566
|
-
(0,
|
|
615
|
+
(0, import_class_validator19.IsNotEmpty)({ message: "Please enter username." })
|
|
567
616
|
], UpdateSubAdminDto.prototype, "userName", 2);
|
|
568
617
|
__decorateClass([
|
|
569
|
-
(0,
|
|
618
|
+
(0, import_class_validator19.IsNotEmpty)({ message: "Please enter first name." })
|
|
570
619
|
], UpdateSubAdminDto.prototype, "firstName", 2);
|
|
571
620
|
__decorateClass([
|
|
572
|
-
(0,
|
|
621
|
+
(0, import_class_validator19.IsNotEmpty)({ message: "Please enter last name." })
|
|
573
622
|
], UpdateSubAdminDto.prototype, "lastName", 2);
|
|
574
623
|
__decorateClass([
|
|
575
|
-
(0,
|
|
624
|
+
(0, import_class_validator19.IsNotEmpty)({ message: "Please enter email." })
|
|
576
625
|
], UpdateSubAdminDto.prototype, "email", 2);
|
|
577
626
|
__decorateClass([
|
|
578
|
-
(0,
|
|
627
|
+
(0, import_class_validator19.IsNotEmpty)({ message: "Please enter mobile number." })
|
|
579
628
|
], UpdateSubAdminDto.prototype, "mobile", 2);
|
|
580
629
|
__decorateClass([
|
|
581
|
-
(0,
|
|
630
|
+
(0, import_class_validator19.IsNotEmpty)({ message: "Please enter the password." })
|
|
582
631
|
], UpdateSubAdminDto.prototype, "password", 2);
|
|
583
632
|
__decorateClass([
|
|
584
|
-
(0,
|
|
633
|
+
(0, import_class_validator19.IsNotEmpty)({ message: "Please enter account type." })
|
|
585
634
|
], UpdateSubAdminDto.prototype, "accountType", 2);
|
|
586
635
|
__decorateClass([
|
|
587
|
-
(0,
|
|
636
|
+
(0, import_class_validator19.IsNotEmpty)({ message: "Please enter account status." })
|
|
588
637
|
], UpdateSubAdminDto.prototype, "accountStatus", 2);
|
|
589
638
|
|
|
590
639
|
// src/modules/user/client-profile/pattern/pattern.ts
|
|
@@ -596,53 +645,53 @@ var CLIENT_PROFILE_PATTERN = {
|
|
|
596
645
|
};
|
|
597
646
|
|
|
598
647
|
// src/modules/user/client-profile/dto/update-client-profile.dto.ts
|
|
599
|
-
var
|
|
648
|
+
var import_class_validator20 = require("class-validator");
|
|
600
649
|
var UpdateCompanyProfileDto = class {
|
|
601
650
|
};
|
|
602
651
|
__decorateClass([
|
|
603
|
-
(0,
|
|
604
|
-
(0,
|
|
605
|
-
(0,
|
|
652
|
+
(0, import_class_validator20.IsNotEmpty)({ message: "Please enter company name." }),
|
|
653
|
+
(0, import_class_validator20.IsString)({ message: "Company name must be a string." }),
|
|
654
|
+
(0, import_class_validator20.Length)(2, 255, {
|
|
606
655
|
message: "Company name must be between 2 and 255 characters"
|
|
607
656
|
})
|
|
608
657
|
], UpdateCompanyProfileDto.prototype, "companyName", 2);
|
|
609
658
|
__decorateClass([
|
|
610
|
-
(0,
|
|
611
|
-
(0,
|
|
659
|
+
(0, import_class_validator20.IsNotEmpty)({ message: "Please enter company website url." }),
|
|
660
|
+
(0, import_class_validator20.IsUrl)({}, { message: "Invalid website URL format" })
|
|
612
661
|
], UpdateCompanyProfileDto.prototype, "webSite", 2);
|
|
613
662
|
__decorateClass([
|
|
614
|
-
(0,
|
|
615
|
-
(0,
|
|
616
|
-
(0,
|
|
663
|
+
(0, import_class_validator20.IsNotEmpty)({ message: "Please enter company address." }),
|
|
664
|
+
(0, import_class_validator20.IsString)({ message: "Company address must be a string" }),
|
|
665
|
+
(0, import_class_validator20.Length)(5, 1e3, { message: "Address must be between 5 and 1000 characters" })
|
|
617
666
|
], UpdateCompanyProfileDto.prototype, "companyAddress", 2);
|
|
618
667
|
__decorateClass([
|
|
619
|
-
(0,
|
|
620
|
-
(0,
|
|
668
|
+
(0, import_class_validator20.IsNotEmpty)({ message: "Please enter phone number." }),
|
|
669
|
+
(0, import_class_validator20.Matches)(/^(\+1\s?)?(\(?\d{3}\)?[\s.-]?)?\d{3}[\s.-]?\d{4}$/, {
|
|
621
670
|
message: "Please enter a valid US phone number"
|
|
622
671
|
})
|
|
623
672
|
], UpdateCompanyProfileDto.prototype, "phoneNumber", 2);
|
|
624
673
|
__decorateClass([
|
|
625
|
-
(0,
|
|
626
|
-
(0,
|
|
674
|
+
(0, import_class_validator20.IsNotEmpty)({ message: "Please enter email." }),
|
|
675
|
+
(0, import_class_validator20.IsEmail)()
|
|
627
676
|
], UpdateCompanyProfileDto.prototype, "email", 2);
|
|
628
677
|
__decorateClass([
|
|
629
|
-
(0,
|
|
630
|
-
(0,
|
|
678
|
+
(0, import_class_validator20.IsNotEmpty)({ message: "Please enter something about company." }),
|
|
679
|
+
(0, import_class_validator20.IsString)({ message: "About company must be a string." })
|
|
631
680
|
], UpdateCompanyProfileDto.prototype, "aboutCompany", 2);
|
|
632
681
|
|
|
633
682
|
// src/modules/user/client-profile/dto/client-change-password.dto.ts
|
|
634
|
-
var
|
|
683
|
+
var import_class_validator21 = require("class-validator");
|
|
635
684
|
var ClientChangePasswordDto = class {
|
|
636
685
|
};
|
|
637
686
|
__decorateClass([
|
|
638
|
-
(0,
|
|
639
|
-
(0,
|
|
640
|
-
(0,
|
|
687
|
+
(0, import_class_validator21.IsString)(),
|
|
688
|
+
(0, import_class_validator21.MinLength)(8, { message: "Password must be at least 8 characters long." }),
|
|
689
|
+
(0, import_class_validator21.Matches)(/^(?=.*[A-Z])(?=.*\d).+$/, {
|
|
641
690
|
message: "Password must contain at least one uppercase letter and one number."
|
|
642
691
|
})
|
|
643
692
|
], ClientChangePasswordDto.prototype, "newPassword", 2);
|
|
644
693
|
__decorateClass([
|
|
645
|
-
(0,
|
|
694
|
+
(0, import_class_validator21.IsNotEmpty)({ message: "Please enter confirm password." }),
|
|
646
695
|
Match("newPassword", { message: "Passwords do not match" })
|
|
647
696
|
], ClientChangePasswordDto.prototype, "confirmPassword", 2);
|
|
648
697
|
|
|
@@ -652,24 +701,24 @@ var QUESTION_PATTERN = {
|
|
|
652
701
|
};
|
|
653
702
|
|
|
654
703
|
// src/modules/question/dto/create-question.dto.ts
|
|
655
|
-
var
|
|
704
|
+
var import_class_validator22 = require("class-validator");
|
|
656
705
|
var CreateQuestionDto = class {
|
|
657
706
|
};
|
|
658
707
|
__decorateClass([
|
|
659
|
-
(0,
|
|
708
|
+
(0, import_class_validator22.IsNotEmpty)({ message: "Please enter unique id." })
|
|
660
709
|
], CreateQuestionDto.prototype, "questionId", 2);
|
|
661
710
|
__decorateClass([
|
|
662
|
-
(0,
|
|
711
|
+
(0, import_class_validator22.IsNotEmpty)({ message: "Please enter question." })
|
|
663
712
|
], CreateQuestionDto.prototype, "question", 2);
|
|
664
713
|
__decorateClass([
|
|
665
|
-
(0,
|
|
714
|
+
(0, import_class_validator22.IsNotEmpty)({ message: "Please enter for whom the question is." })
|
|
666
715
|
], CreateQuestionDto.prototype, "questionFor", 2);
|
|
667
716
|
__decorateClass([
|
|
668
|
-
(0,
|
|
717
|
+
(0, import_class_validator22.IsNotEmpty)({ message: "Please enter options." })
|
|
669
718
|
], CreateQuestionDto.prototype, "options", 2);
|
|
670
719
|
__decorateClass([
|
|
671
|
-
(0,
|
|
672
|
-
(0,
|
|
720
|
+
(0, import_class_validator22.IsOptional)(),
|
|
721
|
+
(0, import_class_validator22.IsBoolean)({ message: "Whether the question status active" })
|
|
673
722
|
], CreateQuestionDto.prototype, "isActive", 2);
|
|
674
723
|
|
|
675
724
|
// src/modules/job/pattern/pattern.ts
|
|
@@ -694,7 +743,7 @@ var JOB_PATTERN = {
|
|
|
694
743
|
};
|
|
695
744
|
|
|
696
745
|
// src/modules/job/dto/job-basic-information.dto.ts
|
|
697
|
-
var
|
|
746
|
+
var import_class_validator23 = require("class-validator");
|
|
698
747
|
var import_class_transformer = require("class-transformer");
|
|
699
748
|
var JobLocation = /* @__PURE__ */ ((JobLocation2) => {
|
|
700
749
|
JobLocation2["ONSITE"] = "ONSITE";
|
|
@@ -711,79 +760,79 @@ var EmploymentType = /* @__PURE__ */ ((EmploymentType2) => {
|
|
|
711
760
|
var JobBasicInformationDto = class {
|
|
712
761
|
};
|
|
713
762
|
__decorateClass([
|
|
714
|
-
(0,
|
|
715
|
-
(0,
|
|
763
|
+
(0, import_class_validator23.IsNotEmpty)({ message: "Please enter job role" }),
|
|
764
|
+
(0, import_class_validator23.IsString)({ message: "Job role must be a string" })
|
|
716
765
|
], JobBasicInformationDto.prototype, "jobRole", 2);
|
|
717
766
|
__decorateClass([
|
|
718
|
-
(0,
|
|
719
|
-
(0,
|
|
767
|
+
(0, import_class_validator23.IsOptional)(),
|
|
768
|
+
(0, import_class_validator23.IsString)({ message: "Note must be a string" })
|
|
720
769
|
], JobBasicInformationDto.prototype, "note", 2);
|
|
721
770
|
__decorateClass([
|
|
722
|
-
(0,
|
|
723
|
-
(0,
|
|
724
|
-
(0,
|
|
771
|
+
(0, import_class_validator23.IsArray)({ message: "Skills must be an array" }),
|
|
772
|
+
(0, import_class_validator23.ArrayNotEmpty)({ message: "Please select at least one skill" }),
|
|
773
|
+
(0, import_class_validator23.IsNumber)({}, { each: true, message: "Each skill must be a number" }),
|
|
725
774
|
(0, import_class_transformer.Type)(() => Number)
|
|
726
775
|
], JobBasicInformationDto.prototype, "skills", 2);
|
|
727
776
|
__decorateClass([
|
|
728
|
-
(0,
|
|
729
|
-
(0,
|
|
777
|
+
(0, import_class_validator23.IsNumber)({}, { message: "Openings must be a number" }),
|
|
778
|
+
(0, import_class_validator23.Min)(1, { message: "There must be at least 1 opening" }),
|
|
730
779
|
(0, import_class_transformer.Type)(() => Number)
|
|
731
780
|
], JobBasicInformationDto.prototype, "openings", 2);
|
|
732
781
|
__decorateClass([
|
|
733
|
-
(0,
|
|
782
|
+
(0, import_class_validator23.IsEnum)(JobLocation, {
|
|
734
783
|
message: `Location must be one of: ${Object.values(JobLocation).join(
|
|
735
784
|
", "
|
|
736
785
|
)}`
|
|
737
786
|
})
|
|
738
787
|
], JobBasicInformationDto.prototype, "location", 2);
|
|
739
788
|
__decorateClass([
|
|
740
|
-
(0,
|
|
789
|
+
(0, import_class_validator23.IsEnum)(EmploymentType, {
|
|
741
790
|
message: `Type of employment must be one of: ${Object.values(
|
|
742
791
|
EmploymentType
|
|
743
792
|
).join(", ")}`
|
|
744
793
|
})
|
|
745
794
|
], JobBasicInformationDto.prototype, "typeOfEmployment", 2);
|
|
746
795
|
__decorateClass([
|
|
747
|
-
(0,
|
|
748
|
-
(0,
|
|
796
|
+
(0, import_class_validator23.IsNumber)({}, { message: "Expected salary (from) must be a number" }),
|
|
797
|
+
(0, import_class_validator23.Min)(0, { message: "Expected salary (from) cannot be negative" }),
|
|
749
798
|
(0, import_class_transformer.Type)(() => Number)
|
|
750
799
|
], JobBasicInformationDto.prototype, "expectedSalaryFrom", 2);
|
|
751
800
|
__decorateClass([
|
|
752
|
-
(0,
|
|
753
|
-
(0,
|
|
801
|
+
(0, import_class_validator23.IsNumber)({}, { message: "Expected salary (to) must be a number" }),
|
|
802
|
+
(0, import_class_validator23.Min)(0, { message: "Expected salary (to) cannot be negative" }),
|
|
754
803
|
(0, import_class_transformer.Type)(() => Number)
|
|
755
804
|
], JobBasicInformationDto.prototype, "expectedSalaryTo", 2);
|
|
756
805
|
__decorateClass([
|
|
757
|
-
(0,
|
|
758
|
-
(0,
|
|
806
|
+
(0, import_class_validator23.IsString)({ message: "Onboarding TAT must be a string" }),
|
|
807
|
+
(0, import_class_validator23.IsOptional)()
|
|
759
808
|
], JobBasicInformationDto.prototype, "onboardingTat", 2);
|
|
760
809
|
__decorateClass([
|
|
761
|
-
(0,
|
|
762
|
-
(0,
|
|
810
|
+
(0, import_class_validator23.IsString)({ message: "Candidate communication skills must be a string" }),
|
|
811
|
+
(0, import_class_validator23.IsOptional)()
|
|
763
812
|
], JobBasicInformationDto.prototype, "candidateCommunicationSkills", 2);
|
|
764
813
|
|
|
765
814
|
// src/modules/job/dto/job-additional-comment.dto.ts
|
|
766
|
-
var
|
|
815
|
+
var import_class_validator24 = require("class-validator");
|
|
767
816
|
var JobAdditionalCommentDto = class {
|
|
768
817
|
};
|
|
769
818
|
__decorateClass([
|
|
770
|
-
(0,
|
|
771
|
-
(0,
|
|
772
|
-
(0,
|
|
819
|
+
(0, import_class_validator24.IsOptional)(),
|
|
820
|
+
(0, import_class_validator24.IsString)({ message: "Additional comment must be a string" }),
|
|
821
|
+
(0, import_class_validator24.MaxLength)(500, { message: "Additional comment must not exceed 500 characters" })
|
|
773
822
|
], JobAdditionalCommentDto.prototype, "additionalComment", 2);
|
|
774
823
|
|
|
775
824
|
// src/modules/job/dto/job-description.dto.ts
|
|
776
|
-
var
|
|
825
|
+
var import_class_validator25 = require("class-validator");
|
|
777
826
|
var JobDescriptionDto = class {
|
|
778
827
|
};
|
|
779
828
|
__decorateClass([
|
|
780
|
-
(0,
|
|
781
|
-
(0,
|
|
782
|
-
(0,
|
|
829
|
+
(0, import_class_validator25.IsNotEmpty)({ message: "Please enter job description" }),
|
|
830
|
+
(0, import_class_validator25.IsString)({ message: "Description must be a string" }),
|
|
831
|
+
(0, import_class_validator25.MaxLength)(5e3, { message: "Description must not exceed 5000 characters" })
|
|
783
832
|
], JobDescriptionDto.prototype, "description", 2);
|
|
784
833
|
|
|
785
834
|
// src/modules/job/dto/job-status.dto.ts
|
|
786
|
-
var
|
|
835
|
+
var import_class_validator26 = require("class-validator");
|
|
787
836
|
var JobStatus = /* @__PURE__ */ ((JobStatus2) => {
|
|
788
837
|
JobStatus2["ACTIVE"] = "ACTIVE";
|
|
789
838
|
JobStatus2["OPEN"] = "OPEN";
|
|
@@ -795,18 +844,18 @@ var JobStatus = /* @__PURE__ */ ((JobStatus2) => {
|
|
|
795
844
|
var JobStatusDto = class {
|
|
796
845
|
};
|
|
797
846
|
__decorateClass([
|
|
798
|
-
(0,
|
|
799
|
-
(0,
|
|
847
|
+
(0, import_class_validator26.IsNotEmpty)({ message: "Please provide a job status" }),
|
|
848
|
+
(0, import_class_validator26.IsEnum)(JobStatus, {
|
|
800
849
|
message: `Status must be one of: ${Object.values(JobStatus).join(", ")}`
|
|
801
850
|
})
|
|
802
851
|
], JobStatusDto.prototype, "status", 2);
|
|
803
852
|
|
|
804
853
|
// src/modules/job/dto/job-id-param.dto.ts
|
|
805
|
-
var
|
|
854
|
+
var import_class_validator27 = require("class-validator");
|
|
806
855
|
var JobIdParamDto = class {
|
|
807
856
|
};
|
|
808
857
|
__decorateClass([
|
|
809
|
-
(0,
|
|
858
|
+
(0, import_class_validator27.IsUUID)("4", {
|
|
810
859
|
message: "Invalid job ID. It must be a valid UUID version 4."
|
|
811
860
|
})
|
|
812
861
|
], JobIdParamDto.prototype, "id", 2);
|
|
@@ -820,25 +869,25 @@ var PROFILE_PATTERN = {
|
|
|
820
869
|
};
|
|
821
870
|
|
|
822
871
|
// src/modules/user/freelancer-profile/dto/freelancer-change-password.dto.ts
|
|
823
|
-
var
|
|
872
|
+
var import_class_validator28 = require("class-validator");
|
|
824
873
|
var FreelancerChangePasswordDto = class {
|
|
825
874
|
};
|
|
826
875
|
__decorateClass([
|
|
827
|
-
(0,
|
|
828
|
-
(0,
|
|
876
|
+
(0, import_class_validator28.IsNotEmpty)({ message: "Please enter Old Password." }),
|
|
877
|
+
(0, import_class_validator28.IsString)()
|
|
829
878
|
], FreelancerChangePasswordDto.prototype, "oldPassword", 2);
|
|
830
879
|
__decorateClass([
|
|
831
|
-
(0,
|
|
832
|
-
(0,
|
|
833
|
-
(0,
|
|
834
|
-
(0,
|
|
835
|
-
(0,
|
|
880
|
+
(0, import_class_validator28.IsNotEmpty)({ message: "Please enter New Password." }),
|
|
881
|
+
(0, import_class_validator28.IsString)(),
|
|
882
|
+
(0, import_class_validator28.MinLength)(6),
|
|
883
|
+
(0, import_class_validator28.MaxLength)(32),
|
|
884
|
+
(0, import_class_validator28.Matches)(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
836
885
|
message: "New Password must include letters, numbers and symbols."
|
|
837
886
|
})
|
|
838
887
|
], FreelancerChangePasswordDto.prototype, "newPassword", 2);
|
|
839
888
|
|
|
840
889
|
// src/modules/user/freelancer-profile/dto/update-freelancer-profile.dto.ts
|
|
841
|
-
var
|
|
890
|
+
var import_class_validator29 = require("class-validator");
|
|
842
891
|
var NatureOfWorkDto = /* @__PURE__ */ ((NatureOfWorkDto2) => {
|
|
843
892
|
NatureOfWorkDto2["FULLTIME"] = "FULLTIME";
|
|
844
893
|
NatureOfWorkDto2["PARTTIME"] = "PARTTIME";
|
|
@@ -848,66 +897,66 @@ var NatureOfWorkDto = /* @__PURE__ */ ((NatureOfWorkDto2) => {
|
|
|
848
897
|
var UpdateFreelancerProfileDto = class {
|
|
849
898
|
};
|
|
850
899
|
__decorateClass([
|
|
851
|
-
(0,
|
|
852
|
-
(0,
|
|
900
|
+
(0, import_class_validator29.IsOptional)(),
|
|
901
|
+
(0, import_class_validator29.IsString)()
|
|
853
902
|
], UpdateFreelancerProfileDto.prototype, "firstName", 2);
|
|
854
903
|
__decorateClass([
|
|
855
|
-
(0,
|
|
856
|
-
(0,
|
|
904
|
+
(0, import_class_validator29.IsOptional)(),
|
|
905
|
+
(0, import_class_validator29.IsString)()
|
|
857
906
|
], UpdateFreelancerProfileDto.prototype, "lastName", 2);
|
|
858
907
|
__decorateClass([
|
|
859
|
-
(0,
|
|
860
|
-
(0,
|
|
908
|
+
(0, import_class_validator29.IsOptional)(),
|
|
909
|
+
(0, import_class_validator29.IsEmail)()
|
|
861
910
|
], UpdateFreelancerProfileDto.prototype, "email", 2);
|
|
862
911
|
__decorateClass([
|
|
863
|
-
(0,
|
|
864
|
-
(0,
|
|
912
|
+
(0, import_class_validator29.IsOptional)(),
|
|
913
|
+
(0, import_class_validator29.IsString)()
|
|
865
914
|
], UpdateFreelancerProfileDto.prototype, "mobile", 2);
|
|
866
915
|
__decorateClass([
|
|
867
|
-
(0,
|
|
868
|
-
(0,
|
|
916
|
+
(0, import_class_validator29.IsOptional)(),
|
|
917
|
+
(0, import_class_validator29.IsNumber)()
|
|
869
918
|
], UpdateFreelancerProfileDto.prototype, "countryId", 2);
|
|
870
919
|
__decorateClass([
|
|
871
|
-
(0,
|
|
872
|
-
(0,
|
|
920
|
+
(0, import_class_validator29.IsOptional)(),
|
|
921
|
+
(0, import_class_validator29.IsString)()
|
|
873
922
|
], UpdateFreelancerProfileDto.prototype, "currency", 2);
|
|
874
923
|
__decorateClass([
|
|
875
|
-
(0,
|
|
876
|
-
(0,
|
|
924
|
+
(0, import_class_validator29.IsOptional)(),
|
|
925
|
+
(0, import_class_validator29.IsString)()
|
|
877
926
|
], UpdateFreelancerProfileDto.prototype, "expectedHourlyCompensation", 2);
|
|
878
927
|
__decorateClass([
|
|
879
|
-
(0,
|
|
880
|
-
(0,
|
|
928
|
+
(0, import_class_validator29.IsOptional)(),
|
|
929
|
+
(0, import_class_validator29.IsEnum)(NatureOfWorkDto, {
|
|
881
930
|
message: `Engagement Type must be one of: ${Object.values(NatureOfWorkDto).join(", ")}`
|
|
882
931
|
})
|
|
883
932
|
], UpdateFreelancerProfileDto.prototype, "natureOfWork", 2);
|
|
884
933
|
__decorateClass([
|
|
885
|
-
(0,
|
|
886
|
-
(0,
|
|
934
|
+
(0, import_class_validator29.IsOptional)(),
|
|
935
|
+
(0, import_class_validator29.IsString)()
|
|
887
936
|
], UpdateFreelancerProfileDto.prototype, "portfolioLink", 2);
|
|
888
937
|
__decorateClass([
|
|
889
|
-
(0,
|
|
890
|
-
(0,
|
|
938
|
+
(0, import_class_validator29.IsOptional)(),
|
|
939
|
+
(0, import_class_validator29.IsString)()
|
|
891
940
|
], UpdateFreelancerProfileDto.prototype, "address", 2);
|
|
892
941
|
__decorateClass([
|
|
893
|
-
(0,
|
|
894
|
-
(0,
|
|
942
|
+
(0, import_class_validator29.IsOptional)(),
|
|
943
|
+
(0, import_class_validator29.IsString)()
|
|
895
944
|
], UpdateFreelancerProfileDto.prototype, "about", 2);
|
|
896
945
|
__decorateClass([
|
|
897
|
-
(0,
|
|
898
|
-
(0,
|
|
946
|
+
(0, import_class_validator29.IsOptional)(),
|
|
947
|
+
(0, import_class_validator29.IsString)()
|
|
899
948
|
], UpdateFreelancerProfileDto.prototype, "linkedinProfileLink", 2);
|
|
900
949
|
__decorateClass([
|
|
901
|
-
(0,
|
|
902
|
-
(0,
|
|
950
|
+
(0, import_class_validator29.IsOptional)(),
|
|
951
|
+
(0, import_class_validator29.IsString)()
|
|
903
952
|
], UpdateFreelancerProfileDto.prototype, "kaggleProfileLink", 2);
|
|
904
953
|
__decorateClass([
|
|
905
|
-
(0,
|
|
906
|
-
(0,
|
|
954
|
+
(0, import_class_validator29.IsOptional)(),
|
|
955
|
+
(0, import_class_validator29.IsString)()
|
|
907
956
|
], UpdateFreelancerProfileDto.prototype, "githubProfileLink", 2);
|
|
908
957
|
__decorateClass([
|
|
909
|
-
(0,
|
|
910
|
-
(0,
|
|
958
|
+
(0, import_class_validator29.IsOptional)(),
|
|
959
|
+
(0, import_class_validator29.IsString)()
|
|
911
960
|
], UpdateFreelancerProfileDto.prototype, "stackOverflowProfileLink", 2);
|
|
912
961
|
|
|
913
962
|
// src/modules/bank/pattern/pattern.ts
|
|
@@ -918,7 +967,7 @@ var BANK_PATTERN = {
|
|
|
918
967
|
};
|
|
919
968
|
|
|
920
969
|
// src/modules/bank/dto/freelancer-bank-details.dto.ts
|
|
921
|
-
var
|
|
970
|
+
var import_class_validator30 = require("class-validator");
|
|
922
971
|
var BankAccountScope = /* @__PURE__ */ ((BankAccountScope2) => {
|
|
923
972
|
BankAccountScope2["DOMESTIC"] = "DOMESTIC";
|
|
924
973
|
BankAccountScope2["INTERNATIONAL"] = "INTERNATIONAL";
|
|
@@ -927,47 +976,47 @@ var BankAccountScope = /* @__PURE__ */ ((BankAccountScope2) => {
|
|
|
927
976
|
var FreelancerBankDetailsDto = class {
|
|
928
977
|
};
|
|
929
978
|
__decorateClass([
|
|
930
|
-
(0,
|
|
979
|
+
(0, import_class_validator30.IsNotEmpty)({ message: "Please enter Account Holder Name." })
|
|
931
980
|
], FreelancerBankDetailsDto.prototype, "name", 2);
|
|
932
981
|
__decorateClass([
|
|
933
|
-
(0,
|
|
982
|
+
(0, import_class_validator30.IsNotEmpty)({ message: "Please enter Mobile Number." })
|
|
934
983
|
], FreelancerBankDetailsDto.prototype, "mobile", 2);
|
|
935
984
|
__decorateClass([
|
|
936
|
-
(0,
|
|
985
|
+
(0, import_class_validator30.IsNotEmpty)({ message: "Please enter Email." })
|
|
937
986
|
], FreelancerBankDetailsDto.prototype, "email", 2);
|
|
938
987
|
__decorateClass([
|
|
939
|
-
(0,
|
|
988
|
+
(0, import_class_validator30.IsOptional)()
|
|
940
989
|
], FreelancerBankDetailsDto.prototype, "address", 2);
|
|
941
990
|
__decorateClass([
|
|
942
|
-
(0,
|
|
991
|
+
(0, import_class_validator30.IsNotEmpty)({ message: "Please enter Account Number." })
|
|
943
992
|
], FreelancerBankDetailsDto.prototype, "accountNumber", 2);
|
|
944
993
|
__decorateClass([
|
|
945
|
-
(0,
|
|
994
|
+
(0, import_class_validator30.IsNotEmpty)({ message: "Please enter Bank Name." })
|
|
946
995
|
], FreelancerBankDetailsDto.prototype, "bankName", 2);
|
|
947
996
|
__decorateClass([
|
|
948
|
-
(0,
|
|
997
|
+
(0, import_class_validator30.IsNotEmpty)({ message: "Please enter Branch Name." })
|
|
949
998
|
], FreelancerBankDetailsDto.prototype, "branchName", 2);
|
|
950
999
|
__decorateClass([
|
|
951
|
-
(0,
|
|
952
|
-
(0,
|
|
1000
|
+
(0, import_class_validator30.ValidateIf)((dto) => dto.accountScope === "DOMESTIC"),
|
|
1001
|
+
(0, import_class_validator30.IsNotEmpty)({ message: "IFSC Code is required for DOMESTIC accounts." })
|
|
953
1002
|
], FreelancerBankDetailsDto.prototype, "ifscCode", 2);
|
|
954
1003
|
__decorateClass([
|
|
955
|
-
(0,
|
|
956
|
-
(0,
|
|
1004
|
+
(0, import_class_validator30.ValidateIf)((dto) => dto.accountScope === "INTERNATIONAL"),
|
|
1005
|
+
(0, import_class_validator30.IsNotEmpty)({ message: "Routing Number/Sort Code is required for INTERNATIONAL accounts." })
|
|
957
1006
|
], FreelancerBankDetailsDto.prototype, "routingNo", 2);
|
|
958
1007
|
__decorateClass([
|
|
959
|
-
(0,
|
|
960
|
-
(0,
|
|
1008
|
+
(0, import_class_validator30.ValidateIf)((dto) => dto.accountScope === "INTERNATIONAL"),
|
|
1009
|
+
(0, import_class_validator30.IsNotEmpty)({ message: "ABA Number is required for INTERNATIONAL accounts." })
|
|
961
1010
|
], FreelancerBankDetailsDto.prototype, "abaNumber", 2);
|
|
962
1011
|
__decorateClass([
|
|
963
|
-
(0,
|
|
964
|
-
(0,
|
|
1012
|
+
(0, import_class_validator30.ValidateIf)((dto) => dto.accountScope === "INTERNATIONAL"),
|
|
1013
|
+
(0, import_class_validator30.IsNotEmpty)({ message: "IBAN is required for INTERNATIONAL accounts." })
|
|
965
1014
|
], FreelancerBankDetailsDto.prototype, "iban", 2);
|
|
966
1015
|
__decorateClass([
|
|
967
|
-
(0,
|
|
1016
|
+
(0, import_class_validator30.IsOptional)()
|
|
968
1017
|
], FreelancerBankDetailsDto.prototype, "accountType", 2);
|
|
969
1018
|
__decorateClass([
|
|
970
|
-
(0,
|
|
1019
|
+
(0, import_class_validator30.IsEnum)(BankAccountScope, {
|
|
971
1020
|
message: `Type of Account Scope must be one of: ${Object.values(
|
|
972
1021
|
BankAccountScope
|
|
973
1022
|
).join(", ")}`
|
|
@@ -987,7 +1036,7 @@ var SYSTEM_PREFERENCES_PATTERN = {
|
|
|
987
1036
|
};
|
|
988
1037
|
|
|
989
1038
|
// src/modules/system-preference/dto/system-preference.dto.ts
|
|
990
|
-
var
|
|
1039
|
+
var import_class_validator31 = require("class-validator");
|
|
991
1040
|
var SystemPreferenceKey = /* @__PURE__ */ ((SystemPreferenceKey2) => {
|
|
992
1041
|
SystemPreferenceKey2["EMAIL_NOTIFICATION"] = "EMAIL_NOTIFICATION";
|
|
993
1042
|
SystemPreferenceKey2["DARK_MODE"] = "DARK_MODE";
|
|
@@ -996,10 +1045,10 @@ var SystemPreferenceKey = /* @__PURE__ */ ((SystemPreferenceKey2) => {
|
|
|
996
1045
|
var SystemPreferenceDto = class {
|
|
997
1046
|
};
|
|
998
1047
|
__decorateClass([
|
|
999
|
-
(0,
|
|
1048
|
+
(0, import_class_validator31.IsBoolean)()
|
|
1000
1049
|
], SystemPreferenceDto.prototype, "value", 2);
|
|
1001
1050
|
__decorateClass([
|
|
1002
|
-
(0,
|
|
1051
|
+
(0, import_class_validator31.IsEnum)(SystemPreferenceKey, {
|
|
1003
1052
|
message: `key must be one of: ${Object.values(
|
|
1004
1053
|
SystemPreferenceKey
|
|
1005
1054
|
).join(", ")}`
|
|
@@ -1019,7 +1068,7 @@ var RATING_PATTERN = {
|
|
|
1019
1068
|
};
|
|
1020
1069
|
|
|
1021
1070
|
// src/modules/rating/dto/add.rating.dto.ts
|
|
1022
|
-
var
|
|
1071
|
+
var import_class_validator32 = require("class-validator");
|
|
1023
1072
|
|
|
1024
1073
|
// src/entities/rating.entity.ts
|
|
1025
1074
|
var import_typeorm21 = require("typeorm");
|
|
@@ -2306,22 +2355,22 @@ Rating = __decorateClass([
|
|
|
2306
2355
|
var CreateRatingDto = class {
|
|
2307
2356
|
};
|
|
2308
2357
|
__decorateClass([
|
|
2309
|
-
(0,
|
|
2310
|
-
(0,
|
|
2358
|
+
(0, import_class_validator32.IsInt)({ message: "Reviewee ID must be a valid integer" }),
|
|
2359
|
+
(0, import_class_validator32.IsNotEmpty)({ message: "Reviewee ID is required" })
|
|
2311
2360
|
], CreateRatingDto.prototype, "revieweeId", 2);
|
|
2312
2361
|
__decorateClass([
|
|
2313
|
-
(0,
|
|
2362
|
+
(0, import_class_validator32.IsEnum)(RatingTypeEnum, {
|
|
2314
2363
|
message: `Rating type must be one of: ${Object.values(RatingTypeEnum).join(", ")}`
|
|
2315
2364
|
})
|
|
2316
2365
|
], CreateRatingDto.prototype, "ratingType", 2);
|
|
2317
2366
|
__decorateClass([
|
|
2318
|
-
(0,
|
|
2319
|
-
(0,
|
|
2320
|
-
(0,
|
|
2367
|
+
(0, import_class_validator32.IsInt)({ message: "Rating must be an integer value" }),
|
|
2368
|
+
(0, import_class_validator32.Min)(1, { message: "Rating must be at least 1" }),
|
|
2369
|
+
(0, import_class_validator32.Max)(5, { message: "Rating must be at most 5" })
|
|
2321
2370
|
], CreateRatingDto.prototype, "rating", 2);
|
|
2322
2371
|
__decorateClass([
|
|
2323
|
-
(0,
|
|
2324
|
-
(0,
|
|
2372
|
+
(0, import_class_validator32.IsOptional)(),
|
|
2373
|
+
(0, import_class_validator32.IsString)({ message: "Review must be a string" })
|
|
2325
2374
|
], CreateRatingDto.prototype, "review", 2);
|
|
2326
2375
|
|
|
2327
2376
|
// src/modules/company-role/pattern/pattern.ts
|
|
@@ -2337,47 +2386,47 @@ var COMPANY_ROLES_PATTERNS = {
|
|
|
2337
2386
|
};
|
|
2338
2387
|
|
|
2339
2388
|
// src/modules/company-role/dto/create-company-role.dto.ts
|
|
2340
|
-
var
|
|
2389
|
+
var import_class_validator33 = require("class-validator");
|
|
2341
2390
|
var CreateCompanyRoleDto = class {
|
|
2342
2391
|
};
|
|
2343
2392
|
__decorateClass([
|
|
2344
|
-
(0,
|
|
2393
|
+
(0, import_class_validator33.IsNotEmpty)({ message: "Please enter company role name." })
|
|
2345
2394
|
], CreateCompanyRoleDto.prototype, "name", 2);
|
|
2346
2395
|
__decorateClass([
|
|
2347
|
-
(0,
|
|
2396
|
+
(0, import_class_validator33.IsNotEmpty)({ message: "Please enter company role slug" })
|
|
2348
2397
|
], CreateCompanyRoleDto.prototype, "slug", 2);
|
|
2349
2398
|
__decorateClass([
|
|
2350
|
-
(0,
|
|
2399
|
+
(0, import_class_validator33.IsNotEmpty)({ message: "Please enter description" })
|
|
2351
2400
|
], CreateCompanyRoleDto.prototype, "description", 2);
|
|
2352
2401
|
__decorateClass([
|
|
2353
|
-
(0,
|
|
2354
|
-
(0,
|
|
2402
|
+
(0, import_class_validator33.IsOptional)(),
|
|
2403
|
+
(0, import_class_validator33.IsBoolean)({ message: "Is active must be a boolean value" })
|
|
2355
2404
|
], CreateCompanyRoleDto.prototype, "isActive", 2);
|
|
2356
2405
|
|
|
2357
2406
|
// src/modules/company-role/dto/update-company-role.dto.ts
|
|
2358
|
-
var
|
|
2407
|
+
var import_class_validator34 = require("class-validator");
|
|
2359
2408
|
var UpdateCompanyRoleDto = class {
|
|
2360
2409
|
};
|
|
2361
2410
|
__decorateClass([
|
|
2362
|
-
(0,
|
|
2411
|
+
(0, import_class_validator34.IsNotEmpty)({ message: "Please enter company name." })
|
|
2363
2412
|
], UpdateCompanyRoleDto.prototype, "name", 2);
|
|
2364
2413
|
__decorateClass([
|
|
2365
|
-
(0,
|
|
2414
|
+
(0, import_class_validator34.IsNotEmpty)({ message: "Please enter slug" })
|
|
2366
2415
|
], UpdateCompanyRoleDto.prototype, "slug", 2);
|
|
2367
2416
|
__decorateClass([
|
|
2368
|
-
(0,
|
|
2417
|
+
(0, import_class_validator34.IsNotEmpty)({ message: "Please enter description" })
|
|
2369
2418
|
], UpdateCompanyRoleDto.prototype, "description", 2);
|
|
2370
2419
|
__decorateClass([
|
|
2371
|
-
(0,
|
|
2372
|
-
(0,
|
|
2420
|
+
(0, import_class_validator34.IsOptional)(),
|
|
2421
|
+
(0, import_class_validator34.IsBoolean)({ message: "Is active must be a boolean value" })
|
|
2373
2422
|
], UpdateCompanyRoleDto.prototype, "isActive", 2);
|
|
2374
2423
|
|
|
2375
2424
|
// src/modules/company-role/dto/toggle-company-role-visibility.dto.ts
|
|
2376
|
-
var
|
|
2425
|
+
var import_class_validator35 = require("class-validator");
|
|
2377
2426
|
var ToggleCompanyRoleVisibilityDto = class {
|
|
2378
2427
|
};
|
|
2379
2428
|
__decorateClass([
|
|
2380
|
-
(0,
|
|
2429
|
+
(0, import_class_validator35.IsBoolean)()
|
|
2381
2430
|
], ToggleCompanyRoleVisibilityDto.prototype, "isActive", 2);
|
|
2382
2431
|
|
|
2383
2432
|
// src/modules/user/freelancer-experience/pattern/pattern.ts
|
|
@@ -2387,34 +2436,34 @@ var FREELANCER_EXPERIENCE_PATTERN = {
|
|
|
2387
2436
|
};
|
|
2388
2437
|
|
|
2389
2438
|
// src/modules/user/freelancer-experience/dto/freelancer-experience.dto.ts
|
|
2390
|
-
var
|
|
2439
|
+
var import_class_validator36 = require("class-validator");
|
|
2391
2440
|
var import_class_transformer2 = require("class-transformer");
|
|
2392
2441
|
var ExperienceDto = class {
|
|
2393
2442
|
};
|
|
2394
2443
|
__decorateClass([
|
|
2395
|
-
(0,
|
|
2444
|
+
(0, import_class_validator36.IsOptional)()
|
|
2396
2445
|
], ExperienceDto.prototype, "uuid", 2);
|
|
2397
2446
|
__decorateClass([
|
|
2398
|
-
(0,
|
|
2399
|
-
(0,
|
|
2447
|
+
(0, import_class_validator36.IsNotEmpty)(),
|
|
2448
|
+
(0, import_class_validator36.IsString)()
|
|
2400
2449
|
], ExperienceDto.prototype, "companyName", 2);
|
|
2401
2450
|
__decorateClass([
|
|
2402
|
-
(0,
|
|
2403
|
-
(0,
|
|
2451
|
+
(0, import_class_validator36.IsNotEmpty)(),
|
|
2452
|
+
(0, import_class_validator36.IsString)()
|
|
2404
2453
|
], ExperienceDto.prototype, "designation", 2);
|
|
2405
2454
|
__decorateClass([
|
|
2406
|
-
(0,
|
|
2407
|
-
(0,
|
|
2455
|
+
(0, import_class_validator36.IsNotEmpty)(),
|
|
2456
|
+
(0, import_class_validator36.IsString)()
|
|
2408
2457
|
], ExperienceDto.prototype, "jobDuration", 2);
|
|
2409
2458
|
__decorateClass([
|
|
2410
|
-
(0,
|
|
2411
|
-
(0,
|
|
2412
|
-
(0,
|
|
2459
|
+
(0, import_class_validator36.IsNotEmpty)(),
|
|
2460
|
+
(0, import_class_validator36.IsString)(),
|
|
2461
|
+
(0, import_class_validator36.MaxLength)(500, { message: "Description must not exceed 500 characters" })
|
|
2413
2462
|
], ExperienceDto.prototype, "description", 2);
|
|
2414
2463
|
var FreelancerExperienceDto = class {
|
|
2415
2464
|
};
|
|
2416
2465
|
__decorateClass([
|
|
2417
|
-
(0,
|
|
2466
|
+
(0, import_class_validator36.ValidateNested)({ each: true }),
|
|
2418
2467
|
(0, import_class_transformer2.Type)(() => ExperienceDto)
|
|
2419
2468
|
], FreelancerExperienceDto.prototype, "experiences", 2);
|
|
2420
2469
|
|
|
@@ -2431,35 +2480,35 @@ var COMPANY_MEMBERS_PATTERNS = {
|
|
|
2431
2480
|
};
|
|
2432
2481
|
|
|
2433
2482
|
// src/modules/company-member/dto/create-company-member.dto.ts
|
|
2434
|
-
var
|
|
2483
|
+
var import_class_validator37 = require("class-validator");
|
|
2435
2484
|
var CreateCompanyMemberDto = class {
|
|
2436
2485
|
// @IsNotEmpty({ message: 'Please enter company role id' })
|
|
2437
2486
|
// companyRoleId: number;
|
|
2438
2487
|
};
|
|
2439
2488
|
__decorateClass([
|
|
2440
|
-
(0,
|
|
2489
|
+
(0, import_class_validator37.IsNotEmpty)({ message: "Please enter name." })
|
|
2441
2490
|
], CreateCompanyMemberDto.prototype, "name", 2);
|
|
2442
2491
|
__decorateClass([
|
|
2443
|
-
(0,
|
|
2492
|
+
(0, import_class_validator37.IsNotEmpty)({ message: "Please enter email" })
|
|
2444
2493
|
], CreateCompanyMemberDto.prototype, "email", 2);
|
|
2445
2494
|
|
|
2446
2495
|
// src/modules/company-member/dto/update-company-member.dto.ts
|
|
2447
|
-
var
|
|
2496
|
+
var import_class_validator38 = require("class-validator");
|
|
2448
2497
|
var UpdateCompanyMemberDto = class {
|
|
2449
2498
|
};
|
|
2450
2499
|
__decorateClass([
|
|
2451
|
-
(0,
|
|
2500
|
+
(0, import_class_validator38.IsNotEmpty)({ message: "Please enter name." })
|
|
2452
2501
|
], UpdateCompanyMemberDto.prototype, "name", 2);
|
|
2453
2502
|
__decorateClass([
|
|
2454
|
-
(0,
|
|
2503
|
+
(0, import_class_validator38.IsNotEmpty)({ message: "Please enter email" })
|
|
2455
2504
|
], UpdateCompanyMemberDto.prototype, "email", 2);
|
|
2456
2505
|
|
|
2457
2506
|
// src/modules/company-member/dto/toggle-company-member-visibility.dto.ts
|
|
2458
|
-
var
|
|
2507
|
+
var import_class_validator39 = require("class-validator");
|
|
2459
2508
|
var ToggleCompanyMemberVisibilityDto = class {
|
|
2460
2509
|
};
|
|
2461
2510
|
__decorateClass([
|
|
2462
|
-
(0,
|
|
2511
|
+
(0, import_class_validator39.IsBoolean)()
|
|
2463
2512
|
], ToggleCompanyMemberVisibilityDto.prototype, "isActive", 2);
|
|
2464
2513
|
|
|
2465
2514
|
// src/modules/user/freelancer-education/pattern/pattern.ts
|
|
@@ -2469,30 +2518,30 @@ var FREELANCER_EDUCATION_PATTERN = {
|
|
|
2469
2518
|
};
|
|
2470
2519
|
|
|
2471
2520
|
// src/modules/user/freelancer-education/dto/freelancer-education.dto.ts
|
|
2472
|
-
var
|
|
2521
|
+
var import_class_validator40 = require("class-validator");
|
|
2473
2522
|
var import_class_transformer3 = require("class-transformer");
|
|
2474
2523
|
var EducationDto = class {
|
|
2475
2524
|
};
|
|
2476
2525
|
__decorateClass([
|
|
2477
|
-
(0,
|
|
2526
|
+
(0, import_class_validator40.IsOptional)()
|
|
2478
2527
|
], EducationDto.prototype, "uuid", 2);
|
|
2479
2528
|
__decorateClass([
|
|
2480
|
-
(0,
|
|
2481
|
-
(0,
|
|
2529
|
+
(0, import_class_validator40.IsString)(),
|
|
2530
|
+
(0, import_class_validator40.IsNotEmpty)({ message: "Please Enter Degree " })
|
|
2482
2531
|
], EducationDto.prototype, "degree", 2);
|
|
2483
2532
|
__decorateClass([
|
|
2484
|
-
(0,
|
|
2485
|
-
(0,
|
|
2533
|
+
(0, import_class_validator40.IsString)(),
|
|
2534
|
+
(0, import_class_validator40.IsNotEmpty)({ message: "Please Enter University " })
|
|
2486
2535
|
], EducationDto.prototype, "university", 2);
|
|
2487
2536
|
__decorateClass([
|
|
2488
|
-
(0,
|
|
2489
|
-
(0,
|
|
2537
|
+
(0, import_class_validator40.IsString)(),
|
|
2538
|
+
(0, import_class_validator40.IsNotEmpty)({ message: "Please Enter Year of Graduation " })
|
|
2490
2539
|
], EducationDto.prototype, "yearOfGraduation", 2);
|
|
2491
2540
|
var FreelancerEducationDto = class {
|
|
2492
2541
|
};
|
|
2493
2542
|
__decorateClass([
|
|
2494
|
-
(0,
|
|
2495
|
-
(0,
|
|
2543
|
+
(0, import_class_validator40.IsArray)(),
|
|
2544
|
+
(0, import_class_validator40.ValidateNested)({ each: true }),
|
|
2496
2545
|
(0, import_class_transformer3.Type)(() => EducationDto)
|
|
2497
2546
|
], FreelancerEducationDto.prototype, "educations", 2);
|
|
2498
2547
|
|
|
@@ -2503,66 +2552,66 @@ var FREELANCER_PROJECT_PATTERN = {
|
|
|
2503
2552
|
};
|
|
2504
2553
|
|
|
2505
2554
|
// src/modules/user/freelancer-project/dto/freelancer-project.dto.ts
|
|
2506
|
-
var
|
|
2555
|
+
var import_class_validator41 = require("class-validator");
|
|
2507
2556
|
var import_class_transformer4 = require("class-transformer");
|
|
2508
2557
|
var ProjectDto = class {
|
|
2509
2558
|
};
|
|
2510
2559
|
__decorateClass([
|
|
2511
|
-
(0,
|
|
2560
|
+
(0, import_class_validator41.IsOptional)()
|
|
2512
2561
|
], ProjectDto.prototype, "uuid", 2);
|
|
2513
2562
|
__decorateClass([
|
|
2514
|
-
(0,
|
|
2515
|
-
(0,
|
|
2563
|
+
(0, import_class_validator41.IsString)(),
|
|
2564
|
+
(0, import_class_validator41.IsNotEmpty)({ message: "Please Enter Project Name " })
|
|
2516
2565
|
], ProjectDto.prototype, "projectName", 2);
|
|
2517
2566
|
__decorateClass([
|
|
2518
|
-
(0,
|
|
2519
|
-
(0,
|
|
2567
|
+
(0, import_class_validator41.IsDateString)(),
|
|
2568
|
+
(0, import_class_validator41.IsNotEmpty)({ message: "Please Enter Start Date " })
|
|
2520
2569
|
], ProjectDto.prototype, "startDate", 2);
|
|
2521
2570
|
__decorateClass([
|
|
2522
|
-
(0,
|
|
2523
|
-
(0,
|
|
2571
|
+
(0, import_class_validator41.IsDateString)(),
|
|
2572
|
+
(0, import_class_validator41.IsNotEmpty)({ message: "Please Enter End Date " })
|
|
2524
2573
|
], ProjectDto.prototype, "endDate", 2);
|
|
2525
2574
|
__decorateClass([
|
|
2526
|
-
(0,
|
|
2527
|
-
(0,
|
|
2575
|
+
(0, import_class_validator41.IsOptional)(),
|
|
2576
|
+
(0, import_class_validator41.IsString)()
|
|
2528
2577
|
], ProjectDto.prototype, "clientName", 2);
|
|
2529
2578
|
__decorateClass([
|
|
2530
|
-
(0,
|
|
2531
|
-
(0,
|
|
2579
|
+
(0, import_class_validator41.IsOptional)(),
|
|
2580
|
+
(0, import_class_validator41.IsString)()
|
|
2532
2581
|
], ProjectDto.prototype, "gitLink", 2);
|
|
2533
2582
|
__decorateClass([
|
|
2534
|
-
(0,
|
|
2535
|
-
(0,
|
|
2536
|
-
(0,
|
|
2583
|
+
(0, import_class_validator41.IsOptional)(),
|
|
2584
|
+
(0, import_class_validator41.IsString)(),
|
|
2585
|
+
(0, import_class_validator41.MaxLength)(500, { message: "Description must not exceed 500 characters" })
|
|
2537
2586
|
], ProjectDto.prototype, "description", 2);
|
|
2538
2587
|
var CaseStudyDto = class {
|
|
2539
2588
|
};
|
|
2540
2589
|
__decorateClass([
|
|
2541
|
-
(0,
|
|
2590
|
+
(0, import_class_validator41.IsOptional)()
|
|
2542
2591
|
], CaseStudyDto.prototype, "uuid", 2);
|
|
2543
2592
|
__decorateClass([
|
|
2544
|
-
(0,
|
|
2545
|
-
(0,
|
|
2593
|
+
(0, import_class_validator41.IsString)(),
|
|
2594
|
+
(0, import_class_validator41.IsNotEmpty)({ message: "Please Enter Project Name " })
|
|
2546
2595
|
], CaseStudyDto.prototype, "projectName", 2);
|
|
2547
2596
|
__decorateClass([
|
|
2548
|
-
(0,
|
|
2549
|
-
(0,
|
|
2597
|
+
(0, import_class_validator41.IsString)(),
|
|
2598
|
+
(0, import_class_validator41.IsNotEmpty)({ message: "Please Enter Case Study Link " })
|
|
2550
2599
|
], CaseStudyDto.prototype, "caseStudyLink", 2);
|
|
2551
2600
|
__decorateClass([
|
|
2552
|
-
(0,
|
|
2553
|
-
(0,
|
|
2554
|
-
(0,
|
|
2601
|
+
(0, import_class_validator41.IsOptional)(),
|
|
2602
|
+
(0, import_class_validator41.IsString)(),
|
|
2603
|
+
(0, import_class_validator41.MaxLength)(500, { message: "Description must not exceed 500 characters" })
|
|
2555
2604
|
], CaseStudyDto.prototype, "description", 2);
|
|
2556
2605
|
var FreelancerProjectDto = class {
|
|
2557
2606
|
};
|
|
2558
2607
|
__decorateClass([
|
|
2559
|
-
(0,
|
|
2560
|
-
(0,
|
|
2608
|
+
(0, import_class_validator41.IsArray)(),
|
|
2609
|
+
(0, import_class_validator41.ValidateNested)({ each: true }),
|
|
2561
2610
|
(0, import_class_transformer4.Type)(() => ProjectDto)
|
|
2562
2611
|
], FreelancerProjectDto.prototype, "projects", 2);
|
|
2563
2612
|
__decorateClass([
|
|
2564
|
-
(0,
|
|
2565
|
-
(0,
|
|
2613
|
+
(0, import_class_validator41.IsArray)(),
|
|
2614
|
+
(0, import_class_validator41.ValidateNested)({ each: true }),
|
|
2566
2615
|
(0, import_class_transformer4.Type)(() => CaseStudyDto)
|
|
2567
2616
|
], FreelancerProjectDto.prototype, "casestudies", 2);
|
|
2568
2617
|
|
|
@@ -3011,6 +3060,8 @@ Permission = __decorateClass([
|
|
|
3011
3060
|
SUBADMIN_PATTERN,
|
|
3012
3061
|
SYSTEM_PREFERENCES_PATTERN,
|
|
3013
3062
|
ScopeEnum,
|
|
3063
|
+
SendGuestOtpDto,
|
|
3064
|
+
SendGuestOtpPurposeEnum,
|
|
3014
3065
|
SenseloafLog,
|
|
3015
3066
|
SetPasswordDto,
|
|
3016
3067
|
Skill,
|
|
@@ -3029,5 +3080,7 @@ Permission = __decorateClass([
|
|
|
3029
3080
|
UpdateSubAdminDto,
|
|
3030
3081
|
User,
|
|
3031
3082
|
UserRMQAdapter,
|
|
3032
|
-
UserTCPAdapter
|
|
3083
|
+
UserTCPAdapter,
|
|
3084
|
+
VerifyGuestOtpDto,
|
|
3085
|
+
VerifyGuestOtpPurposeEnum
|
|
3033
3086
|
});
|