@experts_hub/shared 1.0.526 → 1.0.528

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 CHANGED
@@ -581,7 +581,6 @@ declare class JobBasicInformationV2Dto {
581
581
  numberOfHours: number;
582
582
  candidateCommunicationSkills?: string;
583
583
  academicQualification?: string;
584
- yearsOfExperienceType: typeOfExperienceDtoEnumV2;
585
584
  yearsOfExperienceFrom?: string;
586
585
  yearsOfExperienceTo?: string;
587
586
  businessIndustry?: string;
@@ -2801,12 +2800,7 @@ declare class AdminJobBasicInformationV2Dto {
2801
2800
  typeOfEmployment: EmploymentTypeAdminEnumDto;
2802
2801
  expectedSalaryFrom: number;
2803
2802
  expectedSalaryTo: number;
2804
- currency?: string;
2805
2803
  locations: JobLocationAdminDto[];
2806
- onboardingTat: string;
2807
- candidateCommunicationSkills?: string;
2808
- tentativeStartDate: string;
2809
- tentativeEndDate: string;
2810
2804
  academicQualification?: string;
2811
2805
  yearsOfExperienceType: typeOfExperienceAdminEnumDto;
2812
2806
  yearsOfExperienceFrom?: string;
package/dist/index.d.ts CHANGED
@@ -581,7 +581,6 @@ declare class JobBasicInformationV2Dto {
581
581
  numberOfHours: number;
582
582
  candidateCommunicationSkills?: string;
583
583
  academicQualification?: string;
584
- yearsOfExperienceType: typeOfExperienceDtoEnumV2;
585
584
  yearsOfExperienceFrom?: string;
586
585
  yearsOfExperienceTo?: string;
587
586
  businessIndustry?: string;
@@ -2801,12 +2800,7 @@ declare class AdminJobBasicInformationV2Dto {
2801
2800
  typeOfEmployment: EmploymentTypeAdminEnumDto;
2802
2801
  expectedSalaryFrom: number;
2803
2802
  expectedSalaryTo: number;
2804
- currency?: string;
2805
2803
  locations: JobLocationAdminDto[];
2806
- onboardingTat: string;
2807
- candidateCommunicationSkills?: string;
2808
- tentativeStartDate: string;
2809
- tentativeEndDate: string;
2810
2804
  academicQualification?: string;
2811
2805
  yearsOfExperienceType: typeOfExperienceAdminEnumDto;
2812
2806
  yearsOfExperienceFrom?: string;
package/dist/index.js CHANGED
@@ -1609,14 +1609,6 @@ __decorateClass([
1609
1609
  (0, import_class_validator38.IsNotEmpty)({ message: "Please enter the academic qualification" }),
1610
1610
  (0, import_class_validator38.IsString)({ message: "Academic qualification must be a string" })
1611
1611
  ], JobBasicInformationV2Dto.prototype, "academicQualification", 2);
1612
- __decorateClass([
1613
- (0, import_class_validator38.ValidateIf)((o) => !o.isDraft),
1614
- (0, import_class_validator38.IsEnum)(typeOfExperienceDtoEnumV2, {
1615
- message: `Type of experience must be one of: ${Object.values(
1616
- typeOfExperienceDtoEnumV2
1617
- ).join(", ")}`
1618
- })
1619
- ], JobBasicInformationV2Dto.prototype, "yearsOfExperienceType", 2);
1620
1612
  __decorateClass([
1621
1613
  (0, import_class_validator38.ValidateIf)((o) => !o.isDraft),
1622
1614
  (0, import_class_validator38.IsNotEmpty)({ message: "Please enter the years of experience" }),
@@ -7408,10 +7400,6 @@ __decorateClass([
7408
7400
  (0, import_class_validator64.Min)(0, { message: "Expected salary (to) cannot be negative" }),
7409
7401
  (0, import_class_transformer14.Type)(() => Number)
7410
7402
  ], AdminJobBasicInformationV2Dto.prototype, "expectedSalaryTo", 2);
7411
- __decorateClass([
7412
- (0, import_class_validator64.ValidateIf)((o) => !o.isDraft),
7413
- (0, import_class_validator64.IsString)({ message: "Currency must be a string" })
7414
- ], AdminJobBasicInformationV2Dto.prototype, "currency", 2);
7415
7403
  __decorateClass([
7416
7404
  (0, import_class_validator64.ValidateIf)((o) => !o.isDraft && (o.location === "ONSITE" /* ONSITE */ || o.location === "HYBRID" /* HYBRID */)),
7417
7405
  (0, import_class_validator64.IsArray)({ message: "locations must be an array" }),
@@ -7420,27 +7408,6 @@ __decorateClass([
7420
7408
  (0, import_class_transformer14.Type)(() => JobLocationAdminDto),
7421
7409
  (0, import_class_validator64.IsOptional)()
7422
7410
  ], AdminJobBasicInformationV2Dto.prototype, "locations", 2);
7423
- __decorateClass([
7424
- (0, import_class_validator64.IsString)({ message: "Onboarding Days must be a string." }),
7425
- (0, import_class_validator64.IsNotEmpty)({ message: "Onboarding Days is required." })
7426
- ], AdminJobBasicInformationV2Dto.prototype, "onboardingTat", 2);
7427
- __decorateClass([
7428
- (0, import_class_validator64.ValidateIf)((o) => !o.isDraft),
7429
- (0, import_class_validator64.IsString)({ message: "Candidate communication skills must be a string" }),
7430
- (0, import_class_validator64.IsOptional)()
7431
- ], AdminJobBasicInformationV2Dto.prototype, "candidateCommunicationSkills", 2);
7432
- __decorateClass([
7433
- (0, import_class_validator64.IsDateString)(
7434
- { strict: true },
7435
- { message: "Start date must be in YYYY-MM-DD format." }
7436
- )
7437
- ], AdminJobBasicInformationV2Dto.prototype, "tentativeStartDate", 2);
7438
- __decorateClass([
7439
- (0, import_class_validator64.IsDateString)(
7440
- { strict: true },
7441
- { message: "End date must be in YYYY-MM-DD format." }
7442
- )
7443
- ], AdminJobBasicInformationV2Dto.prototype, "tentativeEndDate", 2);
7444
7411
  __decorateClass([
7445
7412
  (0, import_class_validator64.ValidateIf)((o) => !o.isDraft),
7446
7413
  (0, import_class_validator64.IsNotEmpty)({ message: "Please enter the academic qualification" }),
package/dist/index.mjs CHANGED
@@ -1385,14 +1385,6 @@ __decorateClass([
1385
1385
  IsNotEmpty32({ message: "Please enter the academic qualification" }),
1386
1386
  IsString15({ message: "Academic qualification must be a string" })
1387
1387
  ], JobBasicInformationV2Dto.prototype, "academicQualification", 2);
1388
- __decorateClass([
1389
- ValidateIf4((o) => !o.isDraft),
1390
- IsEnum12(typeOfExperienceDtoEnumV2, {
1391
- message: `Type of experience must be one of: ${Object.values(
1392
- typeOfExperienceDtoEnumV2
1393
- ).join(", ")}`
1394
- })
1395
- ], JobBasicInformationV2Dto.prototype, "yearsOfExperienceType", 2);
1396
1388
  __decorateClass([
1397
1389
  ValidateIf4((o) => !o.isDraft),
1398
1390
  IsNotEmpty32({ message: "Please enter the years of experience" }),
@@ -7430,8 +7422,7 @@ import {
7430
7422
  MaxLength as MaxLength20,
7431
7423
  Max as Max4,
7432
7424
  ValidateNested as ValidateNested6,
7433
- IsInt as IsInt9,
7434
- IsDateString as IsDateString6
7425
+ IsInt as IsInt9
7435
7426
  } from "class-validator";
7436
7427
  import { Type as Type12 } from "class-transformer";
7437
7428
  var JobLocationAdminEnumDto = /* @__PURE__ */ ((JobLocationAdminEnumDto2) => {
@@ -7530,10 +7521,6 @@ __decorateClass([
7530
7521
  Min8(0, { message: "Expected salary (to) cannot be negative" }),
7531
7522
  Type12(() => Number)
7532
7523
  ], AdminJobBasicInformationV2Dto.prototype, "expectedSalaryTo", 2);
7533
- __decorateClass([
7534
- ValidateIf9((o) => !o.isDraft),
7535
- IsString36({ message: "Currency must be a string" })
7536
- ], AdminJobBasicInformationV2Dto.prototype, "currency", 2);
7537
7524
  __decorateClass([
7538
7525
  ValidateIf9((o) => !o.isDraft && (o.location === "ONSITE" /* ONSITE */ || o.location === "HYBRID" /* HYBRID */)),
7539
7526
  IsArray14({ message: "locations must be an array" }),
@@ -7542,27 +7529,6 @@ __decorateClass([
7542
7529
  Type12(() => JobLocationAdminDto),
7543
7530
  IsOptional36()
7544
7531
  ], AdminJobBasicInformationV2Dto.prototype, "locations", 2);
7545
- __decorateClass([
7546
- IsString36({ message: "Onboarding Days must be a string." }),
7547
- IsNotEmpty55({ message: "Onboarding Days is required." })
7548
- ], AdminJobBasicInformationV2Dto.prototype, "onboardingTat", 2);
7549
- __decorateClass([
7550
- ValidateIf9((o) => !o.isDraft),
7551
- IsString36({ message: "Candidate communication skills must be a string" }),
7552
- IsOptional36()
7553
- ], AdminJobBasicInformationV2Dto.prototype, "candidateCommunicationSkills", 2);
7554
- __decorateClass([
7555
- IsDateString6(
7556
- { strict: true },
7557
- { message: "Start date must be in YYYY-MM-DD format." }
7558
- )
7559
- ], AdminJobBasicInformationV2Dto.prototype, "tentativeStartDate", 2);
7560
- __decorateClass([
7561
- IsDateString6(
7562
- { strict: true },
7563
- { message: "End date must be in YYYY-MM-DD format." }
7564
- )
7565
- ], AdminJobBasicInformationV2Dto.prototype, "tentativeEndDate", 2);
7566
7532
  __decorateClass([
7567
7533
  ValidateIf9((o) => !o.isDraft),
7568
7534
  IsNotEmpty55({ message: "Please enter the academic qualification" }),
@@ -44,7 +44,6 @@ export declare class JobBasicInformationV2Dto {
44
44
  numberOfHours: number;
45
45
  candidateCommunicationSkills?: string;
46
46
  academicQualification?: string;
47
- yearsOfExperienceType: typeOfExperienceDtoEnumV2;
48
47
  yearsOfExperienceFrom?: string;
49
48
  yearsOfExperienceTo?: string;
50
49
  businessIndustry?: string;
@@ -31,12 +31,7 @@ export declare class AdminJobBasicInformationV2Dto {
31
31
  typeOfEmployment: EmploymentTypeAdminEnumDto;
32
32
  expectedSalaryFrom: number;
33
33
  expectedSalaryTo: number;
34
- currency?: string;
35
34
  locations: JobLocationAdminDto[];
36
- onboardingTat: string;
37
- candidateCommunicationSkills?: string;
38
- tentativeStartDate: string;
39
- tentativeEndDate: string;
40
35
  academicQualification?: string;
41
36
  yearsOfExperienceType: typeOfExperienceAdminEnumDto;
42
37
  yearsOfExperienceFrom?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@experts_hub/shared",
3
- "version": "1.0.526",
3
+ "version": "1.0.528",
4
4
  "description": "Shared DTOs, interfaces, and utilities for experts hub applications",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",