@experts_hub/shared 1.0.231 → 1.0.236
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.mjs
CHANGED
|
@@ -312,70 +312,79 @@ __decorateClass([
|
|
|
312
312
|
IsUUID2()
|
|
313
313
|
], FreelancerParseResumeDto.prototype, "uuid", 2);
|
|
314
314
|
|
|
315
|
-
// src/modules/onboarding/dto/freelancer-
|
|
315
|
+
// src/modules/onboarding/dto/freelancer-initiate-mcq-assessment.dto.ts
|
|
316
316
|
import { IsUUID as IsUUID3, IsNotEmpty as IsNotEmpty12 } from "class-validator";
|
|
317
|
-
var
|
|
317
|
+
var FreelancerInitiateMcqAssessmentDto = class {
|
|
318
318
|
};
|
|
319
319
|
__decorateClass([
|
|
320
320
|
IsNotEmpty12({ message: "Please enter uuid." }),
|
|
321
321
|
IsUUID3()
|
|
322
|
-
],
|
|
322
|
+
], FreelancerInitiateMcqAssessmentDto.prototype, "uuid", 2);
|
|
323
323
|
|
|
324
|
-
// src/modules/onboarding/dto/freelancer-
|
|
324
|
+
// src/modules/onboarding/dto/freelancer-skip-ai-assessment.dto.ts
|
|
325
325
|
import { IsUUID as IsUUID4, IsNotEmpty as IsNotEmpty13 } from "class-validator";
|
|
326
|
-
var
|
|
326
|
+
var FreelancerSkipAiAssessmentDto = class {
|
|
327
327
|
};
|
|
328
328
|
__decorateClass([
|
|
329
329
|
IsNotEmpty13({ message: "Please enter uuid." }),
|
|
330
330
|
IsUUID4()
|
|
331
|
+
], FreelancerSkipAiAssessmentDto.prototype, "uuid", 2);
|
|
332
|
+
|
|
333
|
+
// src/modules/onboarding/dto/freelancer-initiate-ai-assessment.dto.ts
|
|
334
|
+
import { IsUUID as IsUUID5, IsNotEmpty as IsNotEmpty14 } from "class-validator";
|
|
335
|
+
var FreelancerInitiateAiAssessmentDto = class {
|
|
336
|
+
};
|
|
337
|
+
__decorateClass([
|
|
338
|
+
IsNotEmpty14({ message: "Please enter uuid." }),
|
|
339
|
+
IsUUID5()
|
|
331
340
|
], FreelancerInitiateAiAssessmentDto.prototype, "uuid", 2);
|
|
332
341
|
|
|
333
342
|
// src/modules/onboarding/dto/freelancer-capture-ai-assessment-status.dto.ts
|
|
334
|
-
import { IsUUID as
|
|
343
|
+
import { IsUUID as IsUUID6, IsNotEmpty as IsNotEmpty15, IsOptional } from "class-validator";
|
|
335
344
|
var FreelancerCaptureAiAssessmentStatusDto = class {
|
|
336
345
|
};
|
|
337
346
|
__decorateClass([
|
|
338
|
-
|
|
339
|
-
|
|
347
|
+
IsNotEmpty15({ message: "Please enter uuid." }),
|
|
348
|
+
IsUUID6()
|
|
340
349
|
], FreelancerCaptureAiAssessmentStatusDto.prototype, "uuid", 2);
|
|
341
350
|
__decorateClass([
|
|
342
|
-
|
|
351
|
+
IsNotEmpty15({ message: "Please enter assessment id." })
|
|
343
352
|
], FreelancerCaptureAiAssessmentStatusDto.prototype, "assessmentId", 2);
|
|
344
353
|
__decorateClass([
|
|
345
|
-
|
|
354
|
+
IsNotEmpty15({ message: "Please enter assessment status." })
|
|
346
355
|
], FreelancerCaptureAiAssessmentStatusDto.prototype, "assessmentStatus", 2);
|
|
347
356
|
__decorateClass([
|
|
348
357
|
IsOptional()
|
|
349
358
|
], FreelancerCaptureAiAssessmentStatusDto.prototype, "iframeEventData", 2);
|
|
350
359
|
|
|
351
360
|
// src/modules/onboarding/dto/freelancer-development-preference.dto.ts
|
|
352
|
-
import { IsUUID as
|
|
361
|
+
import { IsUUID as IsUUID7, IsNotEmpty as IsNotEmpty16, IsBoolean } from "class-validator";
|
|
353
362
|
var FreelancerDevelopmentPreferenceDto = class {
|
|
354
363
|
};
|
|
355
364
|
__decorateClass([
|
|
356
|
-
|
|
357
|
-
|
|
365
|
+
IsNotEmpty16({ message: "Please enter uuid." }),
|
|
366
|
+
IsUUID7()
|
|
358
367
|
], FreelancerDevelopmentPreferenceDto.prototype, "uuid", 2);
|
|
359
368
|
__decorateClass([
|
|
360
|
-
|
|
369
|
+
IsNotEmpty16({ message: "Please select development flag." }),
|
|
361
370
|
IsBoolean()
|
|
362
371
|
], FreelancerDevelopmentPreferenceDto.prototype, "developer", 2);
|
|
363
372
|
|
|
364
373
|
// src/modules/onboarding/dto/freelancer-profile-question.dto.ts
|
|
365
374
|
import {
|
|
366
|
-
IsUUID as
|
|
375
|
+
IsUUID as IsUUID8,
|
|
367
376
|
IsString as IsString4,
|
|
368
|
-
IsNotEmpty as
|
|
377
|
+
IsNotEmpty as IsNotEmpty17,
|
|
369
378
|
IsIn
|
|
370
379
|
} from "class-validator";
|
|
371
380
|
var FreelancerProfileQuestionDto = class {
|
|
372
381
|
};
|
|
373
382
|
__decorateClass([
|
|
374
|
-
|
|
375
|
-
|
|
383
|
+
IsNotEmpty17({ message: "Please enter uuid." }),
|
|
384
|
+
IsUUID8()
|
|
376
385
|
], FreelancerProfileQuestionDto.prototype, "uuid", 2);
|
|
377
386
|
__decorateClass([
|
|
378
|
-
|
|
387
|
+
IsNotEmpty17({ message: "Please enter question slug." }),
|
|
379
388
|
IsString4(),
|
|
380
389
|
IsIn([
|
|
381
390
|
"natureOfWork",
|
|
@@ -386,25 +395,25 @@ __decorateClass([
|
|
|
386
395
|
])
|
|
387
396
|
], FreelancerProfileQuestionDto.prototype, "question_slug", 2);
|
|
388
397
|
__decorateClass([
|
|
389
|
-
|
|
398
|
+
IsNotEmpty17({ message: "Please enter answer." })
|
|
390
399
|
], FreelancerProfileQuestionDto.prototype, "answer", 2);
|
|
391
400
|
|
|
392
401
|
// src/modules/onboarding/dto/freelancer-work-showcase.dto.ts
|
|
393
402
|
import {
|
|
394
|
-
IsNotEmpty as
|
|
403
|
+
IsNotEmpty as IsNotEmpty18,
|
|
395
404
|
IsOptional as IsOptional2,
|
|
396
405
|
IsUrl,
|
|
397
406
|
IsString as IsString5,
|
|
398
|
-
IsUUID as
|
|
407
|
+
IsUUID as IsUUID9
|
|
399
408
|
} from "class-validator";
|
|
400
409
|
var FreelancerWorkShowcaseDto = class {
|
|
401
410
|
};
|
|
402
411
|
__decorateClass([
|
|
403
|
-
|
|
404
|
-
|
|
412
|
+
IsNotEmpty18({ message: "Please enter uuid." }),
|
|
413
|
+
IsUUID9()
|
|
405
414
|
], FreelancerWorkShowcaseDto.prototype, "uuid", 2);
|
|
406
415
|
__decorateClass([
|
|
407
|
-
|
|
416
|
+
IsNotEmpty18({ message: "Please enter likedin profile url." }),
|
|
408
417
|
IsString5(),
|
|
409
418
|
IsUrl({ require_protocol: true }, { message: "linkedinProfileLink must be a valid URL with protocol (e.g. https://)" })
|
|
410
419
|
], FreelancerWorkShowcaseDto.prototype, "linkedinProfileLink", 2);
|
|
@@ -427,20 +436,20 @@ __decorateClass([
|
|
|
427
436
|
|
|
428
437
|
// src/modules/onboarding/dto/client-profile-question.dto.ts
|
|
429
438
|
import {
|
|
430
|
-
IsUUID as
|
|
439
|
+
IsUUID as IsUUID10,
|
|
431
440
|
IsString as IsString6,
|
|
432
|
-
IsNotEmpty as
|
|
441
|
+
IsNotEmpty as IsNotEmpty19,
|
|
433
442
|
IsIn as IsIn2,
|
|
434
443
|
ValidateIf
|
|
435
444
|
} from "class-validator";
|
|
436
445
|
var ClientProfileQuestionDto = class {
|
|
437
446
|
};
|
|
438
447
|
__decorateClass([
|
|
439
|
-
|
|
440
|
-
|
|
448
|
+
IsNotEmpty19({ message: "Please enter uuid." }),
|
|
449
|
+
IsUUID10()
|
|
441
450
|
], ClientProfileQuestionDto.prototype, "uuid", 2);
|
|
442
451
|
__decorateClass([
|
|
443
|
-
|
|
452
|
+
IsNotEmpty19({ message: "Please enter question slug." }),
|
|
444
453
|
IsString6(),
|
|
445
454
|
IsIn2([
|
|
446
455
|
"skills",
|
|
@@ -451,17 +460,17 @@ __decorateClass([
|
|
|
451
460
|
])
|
|
452
461
|
], ClientProfileQuestionDto.prototype, "question_slug", 2);
|
|
453
462
|
__decorateClass([
|
|
454
|
-
|
|
463
|
+
IsNotEmpty19({ message: "Please enter answer." })
|
|
455
464
|
], ClientProfileQuestionDto.prototype, "answer", 2);
|
|
456
465
|
__decorateClass([
|
|
457
466
|
ValidateIf((o) => o.questionSlug === "foundUsOn" && o.answer === "OTHER"),
|
|
458
|
-
|
|
467
|
+
IsNotEmpty19({ message: "Please enter foundUsOnDetail if answer is OTHER." }),
|
|
459
468
|
IsString6()
|
|
460
469
|
], ClientProfileQuestionDto.prototype, "foundUsOnDetail", 2);
|
|
461
470
|
|
|
462
471
|
// src/modules/onboarding/dto/client-create-account.dto.ts
|
|
463
472
|
import {
|
|
464
|
-
IsNotEmpty as
|
|
473
|
+
IsNotEmpty as IsNotEmpty20,
|
|
465
474
|
IsEmail as IsEmail3,
|
|
466
475
|
Matches as Matches4,
|
|
467
476
|
MinLength as MinLength4,
|
|
@@ -471,23 +480,23 @@ import {
|
|
|
471
480
|
var ClientCreateAccountDto = class {
|
|
472
481
|
};
|
|
473
482
|
__decorateClass([
|
|
474
|
-
|
|
483
|
+
IsNotEmpty20({ message: "Please enter first name." }),
|
|
475
484
|
IsString7({ message: "Please enter valid first name." })
|
|
476
485
|
], ClientCreateAccountDto.prototype, "firstName", 2);
|
|
477
486
|
__decorateClass([
|
|
478
|
-
|
|
487
|
+
IsNotEmpty20({ message: "Please enter last name." }),
|
|
479
488
|
IsString7({ message: "Please enter valid last name." })
|
|
480
489
|
], ClientCreateAccountDto.prototype, "lastName", 2);
|
|
481
490
|
__decorateClass([
|
|
482
|
-
|
|
491
|
+
IsNotEmpty20({ message: "Please enter email." }),
|
|
483
492
|
IsEmail3()
|
|
484
493
|
], ClientCreateAccountDto.prototype, "email", 2);
|
|
485
494
|
__decorateClass([
|
|
486
|
-
|
|
495
|
+
IsNotEmpty20({ message: "Please enter company name." }),
|
|
487
496
|
IsString7({ message: "Please enter valid company name." })
|
|
488
497
|
], ClientCreateAccountDto.prototype, "companyName", 2);
|
|
489
498
|
__decorateClass([
|
|
490
|
-
|
|
499
|
+
IsNotEmpty20({ message: "Please enter password." }),
|
|
491
500
|
MinLength4(6),
|
|
492
501
|
MaxLength4(32),
|
|
493
502
|
Matches4(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
@@ -495,7 +504,7 @@ __decorateClass([
|
|
|
495
504
|
})
|
|
496
505
|
], ClientCreateAccountDto.prototype, "password", 2);
|
|
497
506
|
__decorateClass([
|
|
498
|
-
|
|
507
|
+
IsNotEmpty20({ message: "Please enter confirm password." }),
|
|
499
508
|
Match("password", { message: "Passwords do not match" })
|
|
500
509
|
], ClientCreateAccountDto.prototype, "confirmPassword", 2);
|
|
501
510
|
|
|
@@ -518,36 +527,36 @@ var SUBADMIN_PATTERN = {
|
|
|
518
527
|
|
|
519
528
|
// src/modules/user/subadmin/dto/create-subadmin.dto.ts
|
|
520
529
|
import {
|
|
521
|
-
IsNotEmpty as
|
|
530
|
+
IsNotEmpty as IsNotEmpty21
|
|
522
531
|
} from "class-validator";
|
|
523
532
|
var CreateSubAdminDto = class {
|
|
524
533
|
};
|
|
525
534
|
__decorateClass([
|
|
526
|
-
|
|
535
|
+
IsNotEmpty21({ message: "Please enter unique id." })
|
|
527
536
|
], CreateSubAdminDto.prototype, "uniqueId", 2);
|
|
528
537
|
__decorateClass([
|
|
529
|
-
|
|
538
|
+
IsNotEmpty21({ message: "Please enter username." })
|
|
530
539
|
], CreateSubAdminDto.prototype, "userName", 2);
|
|
531
540
|
__decorateClass([
|
|
532
|
-
|
|
541
|
+
IsNotEmpty21({ message: "Please enter first name." })
|
|
533
542
|
], CreateSubAdminDto.prototype, "firstName", 2);
|
|
534
543
|
__decorateClass([
|
|
535
|
-
|
|
544
|
+
IsNotEmpty21({ message: "Please enter last name." })
|
|
536
545
|
], CreateSubAdminDto.prototype, "lastName", 2);
|
|
537
546
|
__decorateClass([
|
|
538
|
-
|
|
547
|
+
IsNotEmpty21({ message: "Please enter email." })
|
|
539
548
|
], CreateSubAdminDto.prototype, "email", 2);
|
|
540
549
|
__decorateClass([
|
|
541
|
-
|
|
550
|
+
IsNotEmpty21({ message: "Please enter mobile number." })
|
|
542
551
|
], CreateSubAdminDto.prototype, "mobile", 2);
|
|
543
552
|
__decorateClass([
|
|
544
|
-
|
|
553
|
+
IsNotEmpty21({ message: "Please enter the password." })
|
|
545
554
|
], CreateSubAdminDto.prototype, "password", 2);
|
|
546
555
|
__decorateClass([
|
|
547
|
-
|
|
556
|
+
IsNotEmpty21({ message: "Please enter account type." })
|
|
548
557
|
], CreateSubAdminDto.prototype, "accountType", 2);
|
|
549
558
|
__decorateClass([
|
|
550
|
-
|
|
559
|
+
IsNotEmpty21({ message: "Please enter account status." })
|
|
551
560
|
], CreateSubAdminDto.prototype, "accountStatus", 2);
|
|
552
561
|
|
|
553
562
|
// src/modules/user/subadmin/dto/update-subadmin-status.dto.ts
|
|
@@ -559,35 +568,35 @@ __decorateClass([
|
|
|
559
568
|
], UpdateSubAdminAccountStatusDto.prototype, "accountStatus", 2);
|
|
560
569
|
|
|
561
570
|
// src/modules/user/subadmin/dto/update-subadmin.dto.ts
|
|
562
|
-
import { IsNotEmpty as
|
|
571
|
+
import { IsNotEmpty as IsNotEmpty22 } from "class-validator";
|
|
563
572
|
var UpdateSubAdminDto = class {
|
|
564
573
|
};
|
|
565
574
|
__decorateClass([
|
|
566
|
-
|
|
575
|
+
IsNotEmpty22({ message: "Please enter unique id." })
|
|
567
576
|
], UpdateSubAdminDto.prototype, "uniqueId", 2);
|
|
568
577
|
__decorateClass([
|
|
569
|
-
|
|
578
|
+
IsNotEmpty22({ message: "Please enter username." })
|
|
570
579
|
], UpdateSubAdminDto.prototype, "userName", 2);
|
|
571
580
|
__decorateClass([
|
|
572
|
-
|
|
581
|
+
IsNotEmpty22({ message: "Please enter first name." })
|
|
573
582
|
], UpdateSubAdminDto.prototype, "firstName", 2);
|
|
574
583
|
__decorateClass([
|
|
575
|
-
|
|
584
|
+
IsNotEmpty22({ message: "Please enter last name." })
|
|
576
585
|
], UpdateSubAdminDto.prototype, "lastName", 2);
|
|
577
586
|
__decorateClass([
|
|
578
|
-
|
|
587
|
+
IsNotEmpty22({ message: "Please enter email." })
|
|
579
588
|
], UpdateSubAdminDto.prototype, "email", 2);
|
|
580
589
|
__decorateClass([
|
|
581
|
-
|
|
590
|
+
IsNotEmpty22({ message: "Please enter mobile number." })
|
|
582
591
|
], UpdateSubAdminDto.prototype, "mobile", 2);
|
|
583
592
|
__decorateClass([
|
|
584
|
-
|
|
593
|
+
IsNotEmpty22({ message: "Please enter the password." })
|
|
585
594
|
], UpdateSubAdminDto.prototype, "password", 2);
|
|
586
595
|
__decorateClass([
|
|
587
|
-
|
|
596
|
+
IsNotEmpty22({ message: "Please enter account type." })
|
|
588
597
|
], UpdateSubAdminDto.prototype, "accountType", 2);
|
|
589
598
|
__decorateClass([
|
|
590
|
-
|
|
599
|
+
IsNotEmpty22({ message: "Please enter account status." })
|
|
591
600
|
], UpdateSubAdminDto.prototype, "accountStatus", 2);
|
|
592
601
|
|
|
593
602
|
// src/modules/user/client-profile/pattern/pattern.ts
|
|
@@ -602,7 +611,7 @@ var CLIENT_PROFILE_PATTERN = {
|
|
|
602
611
|
// src/modules/user/client-profile/dto/update-client-profile.dto.ts
|
|
603
612
|
import {
|
|
604
613
|
IsString as IsString10,
|
|
605
|
-
IsNotEmpty as
|
|
614
|
+
IsNotEmpty as IsNotEmpty23,
|
|
606
615
|
IsEmail as IsEmail5,
|
|
607
616
|
Length as Length2,
|
|
608
617
|
IsUrl as IsUrl2,
|
|
@@ -611,33 +620,33 @@ import {
|
|
|
611
620
|
var UpdateCompanyProfileDto = class {
|
|
612
621
|
};
|
|
613
622
|
__decorateClass([
|
|
614
|
-
|
|
623
|
+
IsNotEmpty23({ message: "Please enter company name." }),
|
|
615
624
|
IsString10({ message: "Company name must be a string." }),
|
|
616
625
|
Length2(2, 255, {
|
|
617
626
|
message: "Company name must be between 2 and 255 characters"
|
|
618
627
|
})
|
|
619
628
|
], UpdateCompanyProfileDto.prototype, "companyName", 2);
|
|
620
629
|
__decorateClass([
|
|
621
|
-
|
|
630
|
+
IsNotEmpty23({ message: "Please enter company website url." }),
|
|
622
631
|
IsUrl2({}, { message: "Invalid website URL format" })
|
|
623
632
|
], UpdateCompanyProfileDto.prototype, "webSite", 2);
|
|
624
633
|
__decorateClass([
|
|
625
|
-
|
|
634
|
+
IsNotEmpty23({ message: "Please enter company address." }),
|
|
626
635
|
IsString10({ message: "Company address must be a string" }),
|
|
627
636
|
Length2(5, 1e3, { message: "Address must be between 5 and 1000 characters" })
|
|
628
637
|
], UpdateCompanyProfileDto.prototype, "companyAddress", 2);
|
|
629
638
|
__decorateClass([
|
|
630
|
-
|
|
639
|
+
IsNotEmpty23({ message: "Please enter phone number." }),
|
|
631
640
|
Matches5(/^(\+1\s?)?(\(?\d{3}\)?[\s.-]?)?\d{3}[\s.-]?\d{4}$/, {
|
|
632
641
|
message: "Please enter a valid US phone number"
|
|
633
642
|
})
|
|
634
643
|
], UpdateCompanyProfileDto.prototype, "phoneNumber", 2);
|
|
635
644
|
__decorateClass([
|
|
636
|
-
|
|
645
|
+
IsNotEmpty23({ message: "Please enter email." }),
|
|
637
646
|
IsEmail5()
|
|
638
647
|
], UpdateCompanyProfileDto.prototype, "email", 2);
|
|
639
648
|
__decorateClass([
|
|
640
|
-
|
|
649
|
+
IsNotEmpty23({ message: "Please enter something about company." }),
|
|
641
650
|
IsString10({ message: "About company must be a string." })
|
|
642
651
|
], UpdateCompanyProfileDto.prototype, "aboutCompany", 2);
|
|
643
652
|
|
|
@@ -646,7 +655,7 @@ import {
|
|
|
646
655
|
IsString as IsString11,
|
|
647
656
|
MinLength as MinLength6,
|
|
648
657
|
Matches as Matches6,
|
|
649
|
-
IsNotEmpty as
|
|
658
|
+
IsNotEmpty as IsNotEmpty24
|
|
650
659
|
} from "class-validator";
|
|
651
660
|
var ClientChangePasswordDto = class {
|
|
652
661
|
};
|
|
@@ -658,7 +667,7 @@ __decorateClass([
|
|
|
658
667
|
})
|
|
659
668
|
], ClientChangePasswordDto.prototype, "newPassword", 2);
|
|
660
669
|
__decorateClass([
|
|
661
|
-
|
|
670
|
+
IsNotEmpty24({ message: "Please enter confirm password." }),
|
|
662
671
|
Match("newPassword", { message: "Passwords do not match" })
|
|
663
672
|
], ClientChangePasswordDto.prototype, "confirmPassword", 2);
|
|
664
673
|
|
|
@@ -672,23 +681,23 @@ var ASSESSMENT_QUESTION_PATTERN = {
|
|
|
672
681
|
|
|
673
682
|
// src/modules/question/dto/create-question.dto.ts
|
|
674
683
|
import {
|
|
675
|
-
IsNotEmpty as
|
|
684
|
+
IsNotEmpty as IsNotEmpty25,
|
|
676
685
|
IsOptional as IsOptional5,
|
|
677
686
|
IsBoolean as IsBoolean4
|
|
678
687
|
} from "class-validator";
|
|
679
688
|
var CreateQuestionDto = class {
|
|
680
689
|
};
|
|
681
690
|
__decorateClass([
|
|
682
|
-
|
|
691
|
+
IsNotEmpty25({ message: "Please enter unique id." })
|
|
683
692
|
], CreateQuestionDto.prototype, "questionId", 2);
|
|
684
693
|
__decorateClass([
|
|
685
|
-
|
|
694
|
+
IsNotEmpty25({ message: "Please enter question." })
|
|
686
695
|
], CreateQuestionDto.prototype, "question", 2);
|
|
687
696
|
__decorateClass([
|
|
688
|
-
|
|
697
|
+
IsNotEmpty25({ message: "Please enter for whom the question is." })
|
|
689
698
|
], CreateQuestionDto.prototype, "questionFor", 2);
|
|
690
699
|
__decorateClass([
|
|
691
|
-
|
|
700
|
+
IsNotEmpty25({ message: "Please enter options." })
|
|
692
701
|
], CreateQuestionDto.prototype, "options", 2);
|
|
693
702
|
__decorateClass([
|
|
694
703
|
IsOptional5(),
|
|
@@ -719,7 +728,7 @@ var JOB_PATTERN = {
|
|
|
719
728
|
// src/modules/job/dto/job-basic-information.dto.ts
|
|
720
729
|
import {
|
|
721
730
|
IsString as IsString12,
|
|
722
|
-
IsNotEmpty as
|
|
731
|
+
IsNotEmpty as IsNotEmpty26,
|
|
723
732
|
IsArray,
|
|
724
733
|
ArrayNotEmpty,
|
|
725
734
|
IsNumber,
|
|
@@ -743,7 +752,7 @@ var EmploymentType = /* @__PURE__ */ ((EmploymentType2) => {
|
|
|
743
752
|
var JobBasicInformationDto = class {
|
|
744
753
|
};
|
|
745
754
|
__decorateClass([
|
|
746
|
-
|
|
755
|
+
IsNotEmpty26({ message: "Please enter job role" }),
|
|
747
756
|
IsString12({ message: "Job role must be a string" })
|
|
748
757
|
], JobBasicInformationDto.prototype, "jobRole", 2);
|
|
749
758
|
__decorateClass([
|
|
@@ -805,17 +814,17 @@ __decorateClass([
|
|
|
805
814
|
], JobAdditionalCommentDto.prototype, "additionalComment", 2);
|
|
806
815
|
|
|
807
816
|
// src/modules/job/dto/job-description.dto.ts
|
|
808
|
-
import { IsString as IsString14, IsNotEmpty as
|
|
817
|
+
import { IsString as IsString14, IsNotEmpty as IsNotEmpty27, MaxLength as MaxLength7 } from "class-validator";
|
|
809
818
|
var JobDescriptionDto = class {
|
|
810
819
|
};
|
|
811
820
|
__decorateClass([
|
|
812
|
-
|
|
821
|
+
IsNotEmpty27({ message: "Please enter job description" }),
|
|
813
822
|
IsString14({ message: "Description must be a string" }),
|
|
814
823
|
MaxLength7(5e3, { message: "Description must not exceed 5000 characters" })
|
|
815
824
|
], JobDescriptionDto.prototype, "description", 2);
|
|
816
825
|
|
|
817
826
|
// src/modules/job/dto/job-status.dto.ts
|
|
818
|
-
import { IsEnum as IsEnum8, IsNotEmpty as
|
|
827
|
+
import { IsEnum as IsEnum8, IsNotEmpty as IsNotEmpty28 } from "class-validator";
|
|
819
828
|
var JobStatus = /* @__PURE__ */ ((JobStatus2) => {
|
|
820
829
|
JobStatus2["ACTIVE"] = "ACTIVE";
|
|
821
830
|
JobStatus2["OPEN"] = "OPEN";
|
|
@@ -827,18 +836,18 @@ var JobStatus = /* @__PURE__ */ ((JobStatus2) => {
|
|
|
827
836
|
var JobStatusDto = class {
|
|
828
837
|
};
|
|
829
838
|
__decorateClass([
|
|
830
|
-
|
|
839
|
+
IsNotEmpty28({ message: "Please provide a job status" }),
|
|
831
840
|
IsEnum8(JobStatus, {
|
|
832
841
|
message: `Status must be one of: ${Object.values(JobStatus).join(", ")}`
|
|
833
842
|
})
|
|
834
843
|
], JobStatusDto.prototype, "status", 2);
|
|
835
844
|
|
|
836
845
|
// src/modules/job/dto/job-id-param.dto.ts
|
|
837
|
-
import { IsUUID as
|
|
846
|
+
import { IsUUID as IsUUID11 } from "class-validator";
|
|
838
847
|
var JobIdParamDto = class {
|
|
839
848
|
};
|
|
840
849
|
__decorateClass([
|
|
841
|
-
|
|
850
|
+
IsUUID11("4", {
|
|
842
851
|
message: "Invalid job ID. It must be a valid UUID version 4."
|
|
843
852
|
})
|
|
844
853
|
], JobIdParamDto.prototype, "id", 2);
|
|
@@ -856,7 +865,7 @@ var PROFILE_PATTERN = {
|
|
|
856
865
|
// src/modules/user/freelancer-profile/dto/freelancer-change-password.dto.ts
|
|
857
866
|
import {
|
|
858
867
|
IsString as IsString15,
|
|
859
|
-
IsNotEmpty as
|
|
868
|
+
IsNotEmpty as IsNotEmpty29,
|
|
860
869
|
MaxLength as MaxLength8,
|
|
861
870
|
MinLength as MinLength7,
|
|
862
871
|
Matches as Matches7
|
|
@@ -864,11 +873,11 @@ import {
|
|
|
864
873
|
var FreelancerChangePasswordDto = class {
|
|
865
874
|
};
|
|
866
875
|
__decorateClass([
|
|
867
|
-
|
|
876
|
+
IsNotEmpty29({ message: "Please enter Old Password." }),
|
|
868
877
|
IsString15()
|
|
869
878
|
], FreelancerChangePasswordDto.prototype, "oldPassword", 2);
|
|
870
879
|
__decorateClass([
|
|
871
|
-
|
|
880
|
+
IsNotEmpty29({ message: "Please enter New Password." }),
|
|
872
881
|
IsString15(),
|
|
873
882
|
MinLength7(6),
|
|
874
883
|
MaxLength8(32),
|
|
@@ -960,7 +969,7 @@ var BANK_PATTERN = {
|
|
|
960
969
|
// src/modules/bank/dto/freelancer-bank-details.dto.ts
|
|
961
970
|
import {
|
|
962
971
|
IsEnum as IsEnum10,
|
|
963
|
-
IsNotEmpty as
|
|
972
|
+
IsNotEmpty as IsNotEmpty30,
|
|
964
973
|
IsOptional as IsOptional9,
|
|
965
974
|
ValidateIf as ValidateIf2
|
|
966
975
|
} from "class-validator";
|
|
@@ -972,41 +981,41 @@ var BankAccountScope = /* @__PURE__ */ ((BankAccountScope2) => {
|
|
|
972
981
|
var FreelancerBankDetailsDto = class {
|
|
973
982
|
};
|
|
974
983
|
__decorateClass([
|
|
975
|
-
|
|
984
|
+
IsNotEmpty30({ message: "Please enter Account Holder Name." })
|
|
976
985
|
], FreelancerBankDetailsDto.prototype, "name", 2);
|
|
977
986
|
__decorateClass([
|
|
978
|
-
|
|
987
|
+
IsNotEmpty30({ message: "Please enter Mobile Number." })
|
|
979
988
|
], FreelancerBankDetailsDto.prototype, "mobile", 2);
|
|
980
989
|
__decorateClass([
|
|
981
|
-
|
|
990
|
+
IsNotEmpty30({ message: "Please enter Email." })
|
|
982
991
|
], FreelancerBankDetailsDto.prototype, "email", 2);
|
|
983
992
|
__decorateClass([
|
|
984
993
|
IsOptional9()
|
|
985
994
|
], FreelancerBankDetailsDto.prototype, "address", 2);
|
|
986
995
|
__decorateClass([
|
|
987
|
-
|
|
996
|
+
IsNotEmpty30({ message: "Please enter Account Number." })
|
|
988
997
|
], FreelancerBankDetailsDto.prototype, "accountNumber", 2);
|
|
989
998
|
__decorateClass([
|
|
990
|
-
|
|
999
|
+
IsNotEmpty30({ message: "Please enter Bank Name." })
|
|
991
1000
|
], FreelancerBankDetailsDto.prototype, "bankName", 2);
|
|
992
1001
|
__decorateClass([
|
|
993
|
-
|
|
1002
|
+
IsNotEmpty30({ message: "Please enter Branch Name." })
|
|
994
1003
|
], FreelancerBankDetailsDto.prototype, "branchName", 2);
|
|
995
1004
|
__decorateClass([
|
|
996
1005
|
ValidateIf2((dto) => dto.accountScope === "DOMESTIC"),
|
|
997
|
-
|
|
1006
|
+
IsNotEmpty30({ message: "IFSC Code is required for DOMESTIC accounts." })
|
|
998
1007
|
], FreelancerBankDetailsDto.prototype, "ifscCode", 2);
|
|
999
1008
|
__decorateClass([
|
|
1000
1009
|
ValidateIf2((dto) => dto.accountScope === "INTERNATIONAL"),
|
|
1001
|
-
|
|
1010
|
+
IsNotEmpty30({ message: "Routing Number/Sort Code is required for INTERNATIONAL accounts." })
|
|
1002
1011
|
], FreelancerBankDetailsDto.prototype, "routingNo", 2);
|
|
1003
1012
|
__decorateClass([
|
|
1004
1013
|
ValidateIf2((dto) => dto.accountScope === "INTERNATIONAL"),
|
|
1005
|
-
|
|
1014
|
+
IsNotEmpty30({ message: "ABA Number is required for INTERNATIONAL accounts." })
|
|
1006
1015
|
], FreelancerBankDetailsDto.prototype, "abaNumber", 2);
|
|
1007
1016
|
__decorateClass([
|
|
1008
1017
|
ValidateIf2((dto) => dto.accountScope === "INTERNATIONAL"),
|
|
1009
|
-
|
|
1018
|
+
IsNotEmpty30({ message: "IBAN is required for INTERNATIONAL accounts." })
|
|
1010
1019
|
], FreelancerBankDetailsDto.prototype, "iban", 2);
|
|
1011
1020
|
__decorateClass([
|
|
1012
1021
|
IsOptional9()
|
|
@@ -1070,7 +1079,7 @@ var RATING_PATTERN = {
|
|
|
1070
1079
|
import {
|
|
1071
1080
|
IsEnum as IsEnum12,
|
|
1072
1081
|
IsInt,
|
|
1073
|
-
IsNotEmpty as
|
|
1082
|
+
IsNotEmpty as IsNotEmpty31,
|
|
1074
1083
|
IsOptional as IsOptional10,
|
|
1075
1084
|
IsString as IsString17,
|
|
1076
1085
|
Max,
|
|
@@ -3230,7 +3239,7 @@ var CreateRatingDto = class {
|
|
|
3230
3239
|
};
|
|
3231
3240
|
__decorateClass([
|
|
3232
3241
|
IsInt({ message: "Reviewee ID must be a valid integer" }),
|
|
3233
|
-
|
|
3242
|
+
IsNotEmpty31({ message: "Reviewee ID is required" })
|
|
3234
3243
|
], CreateRatingDto.prototype, "revieweeId", 2);
|
|
3235
3244
|
__decorateClass([
|
|
3236
3245
|
IsEnum12(RatingTypeEnum, {
|
|
@@ -3260,17 +3269,17 @@ var COMPANY_ROLES_PATTERNS = {
|
|
|
3260
3269
|
};
|
|
3261
3270
|
|
|
3262
3271
|
// src/modules/company-role/dto/create-company-role.dto.ts
|
|
3263
|
-
import { ArrayNotEmpty as ArrayNotEmpty2, IsArray as IsArray2, IsBoolean as IsBoolean6, IsInt as IsInt2, IsNotEmpty as
|
|
3272
|
+
import { ArrayNotEmpty as ArrayNotEmpty2, IsArray as IsArray2, IsBoolean as IsBoolean6, IsInt as IsInt2, IsNotEmpty as IsNotEmpty32, IsOptional as IsOptional11 } from "class-validator";
|
|
3264
3273
|
var CreateCompanyRoleDto = class {
|
|
3265
3274
|
};
|
|
3266
3275
|
__decorateClass([
|
|
3267
|
-
|
|
3276
|
+
IsNotEmpty32({ message: "Please enter company role name." })
|
|
3268
3277
|
], CreateCompanyRoleDto.prototype, "name", 2);
|
|
3269
3278
|
__decorateClass([
|
|
3270
|
-
|
|
3279
|
+
IsNotEmpty32({ message: "Please enter company role slug" })
|
|
3271
3280
|
], CreateCompanyRoleDto.prototype, "slug", 2);
|
|
3272
3281
|
__decorateClass([
|
|
3273
|
-
|
|
3282
|
+
IsNotEmpty32({ message: "Please enter description" })
|
|
3274
3283
|
], CreateCompanyRoleDto.prototype, "description", 2);
|
|
3275
3284
|
__decorateClass([
|
|
3276
3285
|
IsArray2({ message: "Permission IDs must be an array." }),
|
|
@@ -3283,17 +3292,17 @@ __decorateClass([
|
|
|
3283
3292
|
], CreateCompanyRoleDto.prototype, "isActive", 2);
|
|
3284
3293
|
|
|
3285
3294
|
// src/modules/company-role/dto/update-company-role.dto.ts
|
|
3286
|
-
import { ArrayNotEmpty as ArrayNotEmpty3, IsArray as IsArray3, IsBoolean as IsBoolean7, IsInt as IsInt3, IsNotEmpty as
|
|
3295
|
+
import { ArrayNotEmpty as ArrayNotEmpty3, IsArray as IsArray3, IsBoolean as IsBoolean7, IsInt as IsInt3, IsNotEmpty as IsNotEmpty33, IsOptional as IsOptional12 } from "class-validator";
|
|
3287
3296
|
var UpdateCompanyRoleDto = class {
|
|
3288
3297
|
};
|
|
3289
3298
|
__decorateClass([
|
|
3290
|
-
|
|
3299
|
+
IsNotEmpty33({ message: "Please enter company name." })
|
|
3291
3300
|
], UpdateCompanyRoleDto.prototype, "name", 2);
|
|
3292
3301
|
__decorateClass([
|
|
3293
|
-
|
|
3302
|
+
IsNotEmpty33({ message: "Please enter slug" })
|
|
3294
3303
|
], UpdateCompanyRoleDto.prototype, "slug", 2);
|
|
3295
3304
|
__decorateClass([
|
|
3296
|
-
|
|
3305
|
+
IsNotEmpty33({ message: "Please enter description" })
|
|
3297
3306
|
], UpdateCompanyRoleDto.prototype, "description", 2);
|
|
3298
3307
|
__decorateClass([
|
|
3299
3308
|
IsArray3({ message: "Permission IDs must be an array." }),
|
|
@@ -3322,7 +3331,7 @@ var FREELANCER_EXPERIENCE_PATTERN = {
|
|
|
3322
3331
|
// src/modules/user/freelancer-experience/dto/freelancer-experience.dto.ts
|
|
3323
3332
|
import {
|
|
3324
3333
|
ArrayMinSize,
|
|
3325
|
-
IsNotEmpty as
|
|
3334
|
+
IsNotEmpty as IsNotEmpty34,
|
|
3326
3335
|
IsOptional as IsOptional13,
|
|
3327
3336
|
IsString as IsString20,
|
|
3328
3337
|
MaxLength as MaxLength10,
|
|
@@ -3335,19 +3344,19 @@ __decorateClass([
|
|
|
3335
3344
|
IsOptional13()
|
|
3336
3345
|
], ExperienceDto.prototype, "uuid", 2);
|
|
3337
3346
|
__decorateClass([
|
|
3338
|
-
|
|
3347
|
+
IsNotEmpty34(),
|
|
3339
3348
|
IsString20()
|
|
3340
3349
|
], ExperienceDto.prototype, "companyName", 2);
|
|
3341
3350
|
__decorateClass([
|
|
3342
|
-
|
|
3351
|
+
IsNotEmpty34(),
|
|
3343
3352
|
IsString20()
|
|
3344
3353
|
], ExperienceDto.prototype, "designation", 2);
|
|
3345
3354
|
__decorateClass([
|
|
3346
|
-
|
|
3355
|
+
IsNotEmpty34(),
|
|
3347
3356
|
IsString20()
|
|
3348
3357
|
], ExperienceDto.prototype, "jobDuration", 2);
|
|
3349
3358
|
__decorateClass([
|
|
3350
|
-
|
|
3359
|
+
IsNotEmpty34(),
|
|
3351
3360
|
IsString20(),
|
|
3352
3361
|
MaxLength10(500, { message: "Description must not exceed 500 characters" })
|
|
3353
3362
|
], ExperienceDto.prototype, "description", 2);
|
|
@@ -3372,14 +3381,14 @@ var COMPANY_MEMBERS_PATTERNS = {
|
|
|
3372
3381
|
};
|
|
3373
3382
|
|
|
3374
3383
|
// src/modules/company-member/dto/create-company-member.dto.ts
|
|
3375
|
-
import { ArrayNotEmpty as ArrayNotEmpty4, IsArray as IsArray4, IsInt as IsInt4, IsNotEmpty as
|
|
3384
|
+
import { ArrayNotEmpty as ArrayNotEmpty4, IsArray as IsArray4, IsInt as IsInt4, IsNotEmpty as IsNotEmpty35 } from "class-validator";
|
|
3376
3385
|
var CreateCompanyMemberDto = class {
|
|
3377
3386
|
};
|
|
3378
3387
|
__decorateClass([
|
|
3379
|
-
|
|
3388
|
+
IsNotEmpty35({ message: "Please enter name." })
|
|
3380
3389
|
], CreateCompanyMemberDto.prototype, "name", 2);
|
|
3381
3390
|
__decorateClass([
|
|
3382
|
-
|
|
3391
|
+
IsNotEmpty35({ message: "Please enter email" })
|
|
3383
3392
|
], CreateCompanyMemberDto.prototype, "email", 2);
|
|
3384
3393
|
__decorateClass([
|
|
3385
3394
|
IsArray4({ message: "Role IDs must be an array." }),
|
|
@@ -3388,14 +3397,14 @@ __decorateClass([
|
|
|
3388
3397
|
], CreateCompanyMemberDto.prototype, "roleIds", 2);
|
|
3389
3398
|
|
|
3390
3399
|
// src/modules/company-member/dto/update-company-member.dto.ts
|
|
3391
|
-
import { ArrayNotEmpty as ArrayNotEmpty5, IsArray as IsArray5, IsInt as IsInt5, IsNotEmpty as
|
|
3400
|
+
import { ArrayNotEmpty as ArrayNotEmpty5, IsArray as IsArray5, IsInt as IsInt5, IsNotEmpty as IsNotEmpty36 } from "class-validator";
|
|
3392
3401
|
var UpdateCompanyMemberDto = class {
|
|
3393
3402
|
};
|
|
3394
3403
|
__decorateClass([
|
|
3395
|
-
|
|
3404
|
+
IsNotEmpty36({ message: "Please enter name." })
|
|
3396
3405
|
], UpdateCompanyMemberDto.prototype, "name", 2);
|
|
3397
3406
|
__decorateClass([
|
|
3398
|
-
|
|
3407
|
+
IsNotEmpty36({ message: "Please enter email" })
|
|
3399
3408
|
], UpdateCompanyMemberDto.prototype, "email", 2);
|
|
3400
3409
|
__decorateClass([
|
|
3401
3410
|
IsArray5({ message: "Role IDs must be an array." }),
|
|
@@ -3418,7 +3427,7 @@ var FREELANCER_EDUCATION_PATTERN = {
|
|
|
3418
3427
|
};
|
|
3419
3428
|
|
|
3420
3429
|
// src/modules/user/freelancer-education/dto/freelancer-education.dto.ts
|
|
3421
|
-
import { IsArray as IsArray6, ValidateNested as ValidateNested2, IsString as IsString23, IsNotEmpty as
|
|
3430
|
+
import { IsArray as IsArray6, ValidateNested as ValidateNested2, IsString as IsString23, IsNotEmpty as IsNotEmpty37, IsOptional as IsOptional16, ArrayMinSize as ArrayMinSize2 } from "class-validator";
|
|
3422
3431
|
import { Type as Type3 } from "class-transformer";
|
|
3423
3432
|
var EducationDto = class {
|
|
3424
3433
|
};
|
|
@@ -3427,15 +3436,15 @@ __decorateClass([
|
|
|
3427
3436
|
], EducationDto.prototype, "uuid", 2);
|
|
3428
3437
|
__decorateClass([
|
|
3429
3438
|
IsString23(),
|
|
3430
|
-
|
|
3439
|
+
IsNotEmpty37({ message: "Please Enter Degree " })
|
|
3431
3440
|
], EducationDto.prototype, "degree", 2);
|
|
3432
3441
|
__decorateClass([
|
|
3433
3442
|
IsString23(),
|
|
3434
|
-
|
|
3443
|
+
IsNotEmpty37({ message: "Please Enter University " })
|
|
3435
3444
|
], EducationDto.prototype, "university", 2);
|
|
3436
3445
|
__decorateClass([
|
|
3437
3446
|
IsString23(),
|
|
3438
|
-
|
|
3447
|
+
IsNotEmpty37({ message: "Please Enter Year of Graduation " })
|
|
3439
3448
|
], EducationDto.prototype, "yearOfGraduation", 2);
|
|
3440
3449
|
var FreelancerEducationDto = class {
|
|
3441
3450
|
};
|
|
@@ -3453,7 +3462,7 @@ var FREELANCER_PROJECT_PATTERN = {
|
|
|
3453
3462
|
};
|
|
3454
3463
|
|
|
3455
3464
|
// src/modules/user/freelancer-project/dto/freelancer-project.dto.ts
|
|
3456
|
-
import { IsArray as IsArray7, ValidateNested as ValidateNested3, IsString as IsString24, IsNotEmpty as
|
|
3465
|
+
import { IsArray as IsArray7, ValidateNested as ValidateNested3, IsString as IsString24, IsNotEmpty as IsNotEmpty38, IsOptional as IsOptional17, IsDateString, MaxLength as MaxLength12, ArrayMinSize as ArrayMinSize3 } from "class-validator";
|
|
3457
3466
|
import { Type as Type4 } from "class-transformer";
|
|
3458
3467
|
var ProjectDto = class {
|
|
3459
3468
|
};
|
|
@@ -3462,15 +3471,15 @@ __decorateClass([
|
|
|
3462
3471
|
], ProjectDto.prototype, "uuid", 2);
|
|
3463
3472
|
__decorateClass([
|
|
3464
3473
|
IsString24(),
|
|
3465
|
-
|
|
3474
|
+
IsNotEmpty38({ message: "Please Enter Project Name " })
|
|
3466
3475
|
], ProjectDto.prototype, "projectName", 2);
|
|
3467
3476
|
__decorateClass([
|
|
3468
3477
|
IsDateString(),
|
|
3469
|
-
|
|
3478
|
+
IsNotEmpty38({ message: "Please Enter Start Date " })
|
|
3470
3479
|
], ProjectDto.prototype, "startDate", 2);
|
|
3471
3480
|
__decorateClass([
|
|
3472
3481
|
IsDateString(),
|
|
3473
|
-
|
|
3482
|
+
IsNotEmpty38({ message: "Please Enter End Date " })
|
|
3474
3483
|
], ProjectDto.prototype, "endDate", 2);
|
|
3475
3484
|
__decorateClass([
|
|
3476
3485
|
IsOptional17(),
|
|
@@ -3492,11 +3501,11 @@ __decorateClass([
|
|
|
3492
3501
|
], CaseStudyDto.prototype, "uuid", 2);
|
|
3493
3502
|
__decorateClass([
|
|
3494
3503
|
IsString24(),
|
|
3495
|
-
|
|
3504
|
+
IsNotEmpty38({ message: "Please Enter Project Name " })
|
|
3496
3505
|
], CaseStudyDto.prototype, "projectName", 2);
|
|
3497
3506
|
__decorateClass([
|
|
3498
3507
|
IsString24(),
|
|
3499
|
-
|
|
3508
|
+
IsNotEmpty38({ message: "Please Enter Case Study Link " })
|
|
3500
3509
|
], CaseStudyDto.prototype, "caseStudyLink", 2);
|
|
3501
3510
|
__decorateClass([
|
|
3502
3511
|
IsOptional17(),
|
|
@@ -3580,7 +3589,7 @@ import {
|
|
|
3580
3589
|
IsUrl as IsUrl3,
|
|
3581
3590
|
Min as Min3,
|
|
3582
3591
|
MaxLength as MaxLength14,
|
|
3583
|
-
IsNotEmpty as
|
|
3592
|
+
IsNotEmpty as IsNotEmpty40,
|
|
3584
3593
|
MinLength as MinLength12,
|
|
3585
3594
|
Matches as Matches8,
|
|
3586
3595
|
ValidateIf as ValidateIf3
|
|
@@ -3614,7 +3623,7 @@ __decorateClass([
|
|
|
3614
3623
|
IsString26({ message: "Mobile must be a string (e.g., 1243253534)" })
|
|
3615
3624
|
], CreateFreelancerDto.prototype, "mobile", 2);
|
|
3616
3625
|
__decorateClass([
|
|
3617
|
-
|
|
3626
|
+
IsNotEmpty40({ message: "Please enter password." }),
|
|
3618
3627
|
MinLength12(6),
|
|
3619
3628
|
MaxLength14(32),
|
|
3620
3629
|
Matches8(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
@@ -3622,7 +3631,7 @@ __decorateClass([
|
|
|
3622
3631
|
})
|
|
3623
3632
|
], CreateFreelancerDto.prototype, "password", 2);
|
|
3624
3633
|
__decorateClass([
|
|
3625
|
-
|
|
3634
|
+
IsNotEmpty40({ message: "Please enter confirm password." }),
|
|
3626
3635
|
Match("confirmPassword", { message: "Passwords do not match" })
|
|
3627
3636
|
], CreateFreelancerDto.prototype, "confirmPassword", 2);
|
|
3628
3637
|
__decorateClass([
|
|
@@ -3654,7 +3663,7 @@ __decorateClass([
|
|
|
3654
3663
|
], CreateFreelancerDto.prototype, "isImmediateJoiner", 2);
|
|
3655
3664
|
__decorateClass([
|
|
3656
3665
|
ValidateIf3((o) => o.isImmediateJoiner === false),
|
|
3657
|
-
|
|
3666
|
+
IsNotEmpty40({ message: "Please enter availability to join." })
|
|
3658
3667
|
], CreateFreelancerDto.prototype, "availabilityToJoin", 2);
|
|
3659
3668
|
__decorateClass([
|
|
3660
3669
|
IsOptional19(),
|
|
@@ -3690,7 +3699,7 @@ import {
|
|
|
3690
3699
|
MaxLength as MaxLength15,
|
|
3691
3700
|
MinLength as MinLength13,
|
|
3692
3701
|
Matches as Matches9,
|
|
3693
|
-
IsNotEmpty as
|
|
3702
|
+
IsNotEmpty as IsNotEmpty41,
|
|
3694
3703
|
ValidateIf as ValidateIf4
|
|
3695
3704
|
} from "class-validator";
|
|
3696
3705
|
import { Type as Type7 } from "class-transformer";
|
|
@@ -3767,7 +3776,7 @@ __decorateClass([
|
|
|
3767
3776
|
], UpdateFreelancerDto.prototype, "isImmediateJoiner", 2);
|
|
3768
3777
|
__decorateClass([
|
|
3769
3778
|
ValidateIf4((o) => o.isImmediateJoiner === false),
|
|
3770
|
-
|
|
3779
|
+
IsNotEmpty41({ message: "Please enter availability to join." })
|
|
3771
3780
|
], UpdateFreelancerDto.prototype, "availabilityToJoin", 2);
|
|
3772
3781
|
__decorateClass([
|
|
3773
3782
|
IsOptional20(),
|
|
@@ -3805,7 +3814,7 @@ var CLIENT_ADMIN_PATTERNS = {
|
|
|
3805
3814
|
|
|
3806
3815
|
// src/modules/client-admin/dto/create-client.dto.ts
|
|
3807
3816
|
import {
|
|
3808
|
-
IsNotEmpty as
|
|
3817
|
+
IsNotEmpty as IsNotEmpty42,
|
|
3809
3818
|
IsEmail as IsEmail13,
|
|
3810
3819
|
IsOptional as IsOptional21,
|
|
3811
3820
|
IsString as IsString28,
|
|
@@ -3830,19 +3839,19 @@ var CreateClientHiringTypeEnum = /* @__PURE__ */ ((CreateClientHiringTypeEnum2)
|
|
|
3830
3839
|
var CreateClientDto = class {
|
|
3831
3840
|
};
|
|
3832
3841
|
__decorateClass([
|
|
3833
|
-
|
|
3842
|
+
IsNotEmpty42({ message: "Please enter first name." }),
|
|
3834
3843
|
IsString28()
|
|
3835
3844
|
], CreateClientDto.prototype, "firstName", 2);
|
|
3836
3845
|
__decorateClass([
|
|
3837
|
-
|
|
3846
|
+
IsNotEmpty42({ message: "Please enter last name." }),
|
|
3838
3847
|
IsString28()
|
|
3839
3848
|
], CreateClientDto.prototype, "lastName", 2);
|
|
3840
3849
|
__decorateClass([
|
|
3841
|
-
|
|
3850
|
+
IsNotEmpty42({ message: "Please enter email." }),
|
|
3842
3851
|
IsEmail13()
|
|
3843
3852
|
], CreateClientDto.prototype, "email", 2);
|
|
3844
3853
|
__decorateClass([
|
|
3845
|
-
|
|
3854
|
+
IsNotEmpty42({ message: "Please enter password." }),
|
|
3846
3855
|
MinLength14(6),
|
|
3847
3856
|
MaxLength16(32),
|
|
3848
3857
|
Matches10(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
@@ -3850,31 +3859,31 @@ __decorateClass([
|
|
|
3850
3859
|
})
|
|
3851
3860
|
], CreateClientDto.prototype, "password", 2);
|
|
3852
3861
|
__decorateClass([
|
|
3853
|
-
|
|
3862
|
+
IsNotEmpty42({ message: "Please enter confirm password." }),
|
|
3854
3863
|
Match("confirmPassword", { message: "Passwords do not match" })
|
|
3855
3864
|
], CreateClientDto.prototype, "confirmPassword", 2);
|
|
3856
3865
|
__decorateClass([
|
|
3857
|
-
|
|
3866
|
+
IsNotEmpty42({ message: "Please enter company name." }),
|
|
3858
3867
|
IsString28()
|
|
3859
3868
|
], CreateClientDto.prototype, "companyName", 2);
|
|
3860
3869
|
__decorateClass([
|
|
3861
3870
|
IsArray9({ message: "Skills should be an array." }),
|
|
3862
|
-
|
|
3871
|
+
IsNotEmpty42({ message: "Please enter skills." })
|
|
3863
3872
|
], CreateClientDto.prototype, "skills", 2);
|
|
3864
3873
|
__decorateClass([
|
|
3865
|
-
|
|
3874
|
+
IsNotEmpty42({ message: "Please specify required freelancer count." }),
|
|
3866
3875
|
IsString28()
|
|
3867
3876
|
], CreateClientDto.prototype, "requiredFreelancer", 2);
|
|
3868
3877
|
__decorateClass([
|
|
3869
|
-
|
|
3878
|
+
IsNotEmpty42({ message: "Please specify the kind of hiring." }),
|
|
3870
3879
|
IsEnum15(CreateClientHiringTypeEnum)
|
|
3871
3880
|
], CreateClientDto.prototype, "kindOfHiring", 2);
|
|
3872
3881
|
__decorateClass([
|
|
3873
|
-
|
|
3882
|
+
IsNotEmpty42({ message: "Please specify the mode of hire." }),
|
|
3874
3883
|
IsEnum15(CreateClientHiringModeEnum)
|
|
3875
3884
|
], CreateClientDto.prototype, "modeOfHire", 2);
|
|
3876
3885
|
__decorateClass([
|
|
3877
|
-
|
|
3886
|
+
IsNotEmpty42({ message: "Please let us know how you found us." }),
|
|
3878
3887
|
IsString28()
|
|
3879
3888
|
], CreateClientDto.prototype, "foundUsOn", 2);
|
|
3880
3889
|
__decorateClass([
|
|
@@ -3887,17 +3896,17 @@ __decorateClass([
|
|
|
3887
3896
|
], CreateClientDto.prototype, "foundUsOnDetail", 2);
|
|
3888
3897
|
|
|
3889
3898
|
// src/modules/client-admin/dto/update-client-status.dto.ts
|
|
3890
|
-
import { IsString as IsString29, IsNotEmpty as
|
|
3899
|
+
import { IsString as IsString29, IsNotEmpty as IsNotEmpty43 } from "class-validator";
|
|
3891
3900
|
var UpdateClientAccountStatusDto = class {
|
|
3892
3901
|
};
|
|
3893
3902
|
__decorateClass([
|
|
3894
|
-
|
|
3903
|
+
IsNotEmpty43({ message: "Please enter account status." }),
|
|
3895
3904
|
IsString29()
|
|
3896
3905
|
], UpdateClientAccountStatusDto.prototype, "accountStatus", 2);
|
|
3897
3906
|
|
|
3898
3907
|
// src/modules/client-admin/dto/update-client.dto.ts
|
|
3899
3908
|
import {
|
|
3900
|
-
IsNotEmpty as
|
|
3909
|
+
IsNotEmpty as IsNotEmpty44,
|
|
3901
3910
|
IsEmail as IsEmail14,
|
|
3902
3911
|
IsOptional as IsOptional22,
|
|
3903
3912
|
IsString as IsString30,
|
|
@@ -3922,15 +3931,15 @@ var UpdateClientHiringTypeEnum = /* @__PURE__ */ ((UpdateClientHiringTypeEnum2)
|
|
|
3922
3931
|
var UpdateClientDto = class {
|
|
3923
3932
|
};
|
|
3924
3933
|
__decorateClass([
|
|
3925
|
-
|
|
3934
|
+
IsNotEmpty44({ message: "Please enter first name." }),
|
|
3926
3935
|
IsString30()
|
|
3927
3936
|
], UpdateClientDto.prototype, "firstName", 2);
|
|
3928
3937
|
__decorateClass([
|
|
3929
|
-
|
|
3938
|
+
IsNotEmpty44({ message: "Please enter last name." }),
|
|
3930
3939
|
IsString30()
|
|
3931
3940
|
], UpdateClientDto.prototype, "lastName", 2);
|
|
3932
3941
|
__decorateClass([
|
|
3933
|
-
|
|
3942
|
+
IsNotEmpty44({ message: "Please enter email." }),
|
|
3934
3943
|
IsEmail14()
|
|
3935
3944
|
], UpdateClientDto.prototype, "email", 2);
|
|
3936
3945
|
__decorateClass([
|
|
@@ -3942,27 +3951,27 @@ __decorateClass([
|
|
|
3942
3951
|
})
|
|
3943
3952
|
], UpdateClientDto.prototype, "password", 2);
|
|
3944
3953
|
__decorateClass([
|
|
3945
|
-
|
|
3954
|
+
IsNotEmpty44({ message: "Please enter company name." }),
|
|
3946
3955
|
IsString30()
|
|
3947
3956
|
], UpdateClientDto.prototype, "companyName", 2);
|
|
3948
3957
|
__decorateClass([
|
|
3949
3958
|
IsArray10({ message: "Skills should be an array." }),
|
|
3950
|
-
|
|
3959
|
+
IsNotEmpty44({ message: "Please enter skills." })
|
|
3951
3960
|
], UpdateClientDto.prototype, "skills", 2);
|
|
3952
3961
|
__decorateClass([
|
|
3953
|
-
|
|
3962
|
+
IsNotEmpty44({ message: "Please specify required freelancer count." }),
|
|
3954
3963
|
IsString30()
|
|
3955
3964
|
], UpdateClientDto.prototype, "requiredFreelancer", 2);
|
|
3956
3965
|
__decorateClass([
|
|
3957
|
-
|
|
3966
|
+
IsNotEmpty44({ message: "Please specify the kind of hiring." }),
|
|
3958
3967
|
IsEnum16(UpdateClientHiringTypeEnum)
|
|
3959
3968
|
], UpdateClientDto.prototype, "kindOfHiring", 2);
|
|
3960
3969
|
__decorateClass([
|
|
3961
|
-
|
|
3970
|
+
IsNotEmpty44({ message: "Please specify the mode of hire." }),
|
|
3962
3971
|
IsEnum16(UpdateClientHiringModeEnum)
|
|
3963
3972
|
], UpdateClientDto.prototype, "modeOfHire", 2);
|
|
3964
3973
|
__decorateClass([
|
|
3965
|
-
|
|
3974
|
+
IsNotEmpty44({ message: "Please let us know how you found us." }),
|
|
3966
3975
|
IsString30()
|
|
3967
3976
|
], UpdateClientDto.prototype, "foundUsOn", 2);
|
|
3968
3977
|
__decorateClass([
|
|
@@ -3981,7 +3990,7 @@ var FREELANCER_DECLARATION_PATTERN = {
|
|
|
3981
3990
|
};
|
|
3982
3991
|
|
|
3983
3992
|
// src/modules/user/freelancer-declaration/dto/freelancer-declaration.dto.ts
|
|
3984
|
-
import { IsOptional as IsOptional23, IsEnum as IsEnum17, IsString as IsString31, IsNotEmpty as
|
|
3993
|
+
import { IsOptional as IsOptional23, IsEnum as IsEnum17, IsString as IsString31, IsNotEmpty as IsNotEmpty45, IsIn as IsIn3 } from "class-validator";
|
|
3985
3994
|
var DocumentTypeEnum = /* @__PURE__ */ ((DocumentTypeEnum2) => {
|
|
3986
3995
|
DocumentTypeEnum2["AADHAAR"] = "AADHAAR_CARD";
|
|
3987
3996
|
DocumentTypeEnum2["PASSPORT"] = "PASSPORT";
|
|
@@ -3999,7 +4008,7 @@ __decorateClass([
|
|
|
3999
4008
|
IsEnum17(DocumentTypeEnum, { message: "Document type must be one of AADHAAR_CARD, PASSPORT, DRIVING_LICENSE, PAN_CARD" })
|
|
4000
4009
|
], FreelancerDeclarationDto.prototype, "documentType", 2);
|
|
4001
4010
|
__decorateClass([
|
|
4002
|
-
|
|
4011
|
+
IsNotEmpty45({ message: "Please accept the declaration " }),
|
|
4003
4012
|
IsString31(),
|
|
4004
4013
|
IsIn3([
|
|
4005
4014
|
"true"
|
|
@@ -4016,11 +4025,11 @@ var CMS_PATTERNS = {
|
|
|
4016
4025
|
};
|
|
4017
4026
|
|
|
4018
4027
|
// src/modules/cms/dto/create-cms.dto.ts
|
|
4019
|
-
import { IsBoolean as IsBoolean14, IsNotEmpty as
|
|
4028
|
+
import { IsBoolean as IsBoolean14, IsNotEmpty as IsNotEmpty46, IsOptional as IsOptional24 } from "class-validator";
|
|
4020
4029
|
var CreateCmsDto = class {
|
|
4021
4030
|
};
|
|
4022
4031
|
__decorateClass([
|
|
4023
|
-
|
|
4032
|
+
IsNotEmpty46({ message: "Please enter name." })
|
|
4024
4033
|
], CreateCmsDto.prototype, "title", 2);
|
|
4025
4034
|
__decorateClass([
|
|
4026
4035
|
IsOptional24()
|
|
@@ -4031,14 +4040,14 @@ __decorateClass([
|
|
|
4031
4040
|
], CreateCmsDto.prototype, "isActive", 2);
|
|
4032
4041
|
|
|
4033
4042
|
// src/modules/cms/dto/update-cms.dto.ts
|
|
4034
|
-
import { IsBoolean as IsBoolean15, IsNotEmpty as
|
|
4043
|
+
import { IsBoolean as IsBoolean15, IsNotEmpty as IsNotEmpty47, IsOptional as IsOptional25 } from "class-validator";
|
|
4035
4044
|
var UpdateCmsDto = class {
|
|
4036
4045
|
};
|
|
4037
4046
|
__decorateClass([
|
|
4038
4047
|
IsOptional25()
|
|
4039
4048
|
], UpdateCmsDto.prototype, "uuid", 2);
|
|
4040
4049
|
__decorateClass([
|
|
4041
|
-
|
|
4050
|
+
IsNotEmpty47({ message: "Please enter name." })
|
|
4042
4051
|
], UpdateCmsDto.prototype, "title", 2);
|
|
4043
4052
|
__decorateClass([
|
|
4044
4053
|
IsOptional25()
|
|
@@ -4079,7 +4088,7 @@ import {
|
|
|
4079
4088
|
IsOptional as IsOptional26,
|
|
4080
4089
|
IsArray as IsArray11,
|
|
4081
4090
|
IsDateString as IsDateString4,
|
|
4082
|
-
IsNotEmpty as
|
|
4091
|
+
IsNotEmpty as IsNotEmpty48,
|
|
4083
4092
|
ArrayNotEmpty as ArrayNotEmpty6,
|
|
4084
4093
|
Min as Min5,
|
|
4085
4094
|
IsNumber as IsNumber5
|
|
@@ -4100,7 +4109,7 @@ var AdminCreateJobInformationDto = class {
|
|
|
4100
4109
|
};
|
|
4101
4110
|
__decorateClass([
|
|
4102
4111
|
IsString32({ message: "Job role must be a string." }),
|
|
4103
|
-
|
|
4112
|
+
IsNotEmpty48({ message: "Job role is required." })
|
|
4104
4113
|
], AdminCreateJobInformationDto.prototype, "jobRole", 2);
|
|
4105
4114
|
__decorateClass([
|
|
4106
4115
|
IsOptional26(),
|
|
@@ -4128,15 +4137,15 @@ __decorateClass([
|
|
|
4128
4137
|
], AdminCreateJobInformationDto.prototype, "typeOfEmployment", 2);
|
|
4129
4138
|
__decorateClass([
|
|
4130
4139
|
IsString32({ message: "Onboarding Days must be a string." }),
|
|
4131
|
-
|
|
4140
|
+
IsNotEmpty48({ message: "Onboarding Days is required." })
|
|
4132
4141
|
], AdminCreateJobInformationDto.prototype, "onboardingTat", 2);
|
|
4133
4142
|
__decorateClass([
|
|
4134
4143
|
IsString32({ message: "Communication skills must be a string." }),
|
|
4135
|
-
|
|
4144
|
+
IsNotEmpty48({ message: "Communication skills are required." })
|
|
4136
4145
|
], AdminCreateJobInformationDto.prototype, "candidateCommunicationSkills", 2);
|
|
4137
4146
|
__decorateClass([
|
|
4138
4147
|
IsString32({ message: "Currency must be a string." }),
|
|
4139
|
-
|
|
4148
|
+
IsNotEmpty48({ message: "Currency is required." })
|
|
4140
4149
|
], AdminCreateJobInformationDto.prototype, "currency", 2);
|
|
4141
4150
|
__decorateClass([
|
|
4142
4151
|
Type8(() => Number),
|
|
@@ -4178,7 +4187,7 @@ import {
|
|
|
4178
4187
|
IsOptional as IsOptional27,
|
|
4179
4188
|
IsArray as IsArray12,
|
|
4180
4189
|
IsDateString as IsDateString5,
|
|
4181
|
-
IsNotEmpty as
|
|
4190
|
+
IsNotEmpty as IsNotEmpty49,
|
|
4182
4191
|
ArrayNotEmpty as ArrayNotEmpty7,
|
|
4183
4192
|
Min as Min6,
|
|
4184
4193
|
IsNumber as IsNumber6
|
|
@@ -4199,7 +4208,7 @@ var AdminUpdateJobInformationDto = class {
|
|
|
4199
4208
|
};
|
|
4200
4209
|
__decorateClass([
|
|
4201
4210
|
IsString33({ message: "Job role must be a string." }),
|
|
4202
|
-
|
|
4211
|
+
IsNotEmpty49({ message: "Job role is required." })
|
|
4203
4212
|
], AdminUpdateJobInformationDto.prototype, "jobRole", 2);
|
|
4204
4213
|
__decorateClass([
|
|
4205
4214
|
IsOptional27(),
|
|
@@ -4227,15 +4236,15 @@ __decorateClass([
|
|
|
4227
4236
|
], AdminUpdateJobInformationDto.prototype, "typeOfEmployment", 2);
|
|
4228
4237
|
__decorateClass([
|
|
4229
4238
|
IsString33({ message: "Onboarding Days must be a string." }),
|
|
4230
|
-
|
|
4239
|
+
IsNotEmpty49({ message: "Onboarding Days is required." })
|
|
4231
4240
|
], AdminUpdateJobInformationDto.prototype, "onboardingTat", 2);
|
|
4232
4241
|
__decorateClass([
|
|
4233
4242
|
IsString33({ message: "Communication skills must be a string." }),
|
|
4234
|
-
|
|
4243
|
+
IsNotEmpty49({ message: "Communication skills are required." })
|
|
4235
4244
|
], AdminUpdateJobInformationDto.prototype, "candidateCommunicationSkills", 2);
|
|
4236
4245
|
__decorateClass([
|
|
4237
4246
|
IsString33({ message: "Currency must be a string." }),
|
|
4238
|
-
|
|
4247
|
+
IsNotEmpty49({ message: "Currency is required." })
|
|
4239
4248
|
], AdminUpdateJobInformationDto.prototype, "currency", 2);
|
|
4240
4249
|
__decorateClass([
|
|
4241
4250
|
Type9(() => Number),
|
|
@@ -4763,6 +4772,7 @@ export {
|
|
|
4763
4772
|
FreelancerExperienceDto,
|
|
4764
4773
|
FreelancerFramework,
|
|
4765
4774
|
FreelancerInitiateAiAssessmentDto,
|
|
4775
|
+
FreelancerInitiateMcqAssessmentDto,
|
|
4766
4776
|
FreelancerParseResumeDto,
|
|
4767
4777
|
FreelancerProfile,
|
|
4768
4778
|
FreelancerProfileQuestionDto,
|