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