@experts_hub/shared 1.0.522 → 1.0.523

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
@@ -605,7 +605,6 @@ declare class FreelancerChangePasswordDto {
605
605
  }
606
606
 
607
607
  declare enum NatureOfWorkDto {
608
- FULLTIME = "FULLTIME",
609
608
  FREELANCE = "FREELANCE",
610
609
  FTE = "FTE"
611
610
  }
@@ -2772,35 +2771,38 @@ declare class JobLocationAdminDto {
2772
2771
  cityId: number;
2773
2772
  }
2774
2773
  declare class AdminJobBasicInformationV2Dto {
2775
- clientId: number;
2776
2774
  isDraft?: boolean;
2775
+ clientId: number;
2777
2776
  jobRole: string;
2778
- jobRoleCanonicalName?: string;
2779
- projectName?: string;
2780
2777
  note?: string;
2781
2778
  skills: string[];
2782
- goodToHaveSkills: string[];
2783
- locations: JobLocationAdminDto[];
2784
2779
  openings: number;
2785
2780
  location: JobLocationAdminEnumDto;
2786
2781
  typeOfEmployment: EmploymentTypeAdminEnumDto;
2787
- currency?: string;
2788
2782
  expectedSalaryFrom: number;
2789
- hideExpectedSalaryFrom: boolean;
2790
2783
  expectedSalaryTo: number;
2791
- hideExpectedSalaryTo: boolean;
2792
- years: string;
2793
- months: string;
2794
- weeks: string;
2795
- days: string;
2796
- numberOfHours: number;
2784
+ currency?: string;
2785
+ locations: JobLocationAdminDto[];
2786
+ onboardingTat: string;
2797
2787
  candidateCommunicationSkills?: string;
2788
+ tentativeStartDate: string;
2789
+ tentativeEndDate: string;
2798
2790
  academicQualification?: string;
2799
2791
  yearsOfExperienceType: typeOfExperienceAdminEnumDto;
2800
2792
  yearsOfExperienceFrom?: string;
2801
2793
  yearsOfExperienceTo?: string;
2802
2794
  businessIndustry?: string;
2795
+ projectName?: string;
2796
+ hideExpectedSalaryFrom: boolean;
2797
+ hideExpectedSalaryTo: boolean;
2798
+ numberOfHours: number;
2799
+ years: string;
2800
+ months: string;
2801
+ weeks: string;
2802
+ days: string;
2803
2803
  additionalComment?: string;
2804
+ goodToHaveSkills: string[];
2805
+ jobRoleCanonicalName?: string;
2804
2806
  }
2805
2807
 
2806
2808
  declare const LEAD_PATTERN: {
package/dist/index.d.ts CHANGED
@@ -605,7 +605,6 @@ declare class FreelancerChangePasswordDto {
605
605
  }
606
606
 
607
607
  declare enum NatureOfWorkDto {
608
- FULLTIME = "FULLTIME",
609
608
  FREELANCE = "FREELANCE",
610
609
  FTE = "FTE"
611
610
  }
@@ -2772,35 +2771,38 @@ declare class JobLocationAdminDto {
2772
2771
  cityId: number;
2773
2772
  }
2774
2773
  declare class AdminJobBasicInformationV2Dto {
2775
- clientId: number;
2776
2774
  isDraft?: boolean;
2775
+ clientId: number;
2777
2776
  jobRole: string;
2778
- jobRoleCanonicalName?: string;
2779
- projectName?: string;
2780
2777
  note?: string;
2781
2778
  skills: string[];
2782
- goodToHaveSkills: string[];
2783
- locations: JobLocationAdminDto[];
2784
2779
  openings: number;
2785
2780
  location: JobLocationAdminEnumDto;
2786
2781
  typeOfEmployment: EmploymentTypeAdminEnumDto;
2787
- currency?: string;
2788
2782
  expectedSalaryFrom: number;
2789
- hideExpectedSalaryFrom: boolean;
2790
2783
  expectedSalaryTo: number;
2791
- hideExpectedSalaryTo: boolean;
2792
- years: string;
2793
- months: string;
2794
- weeks: string;
2795
- days: string;
2796
- numberOfHours: number;
2784
+ currency?: string;
2785
+ locations: JobLocationAdminDto[];
2786
+ onboardingTat: string;
2797
2787
  candidateCommunicationSkills?: string;
2788
+ tentativeStartDate: string;
2789
+ tentativeEndDate: string;
2798
2790
  academicQualification?: string;
2799
2791
  yearsOfExperienceType: typeOfExperienceAdminEnumDto;
2800
2792
  yearsOfExperienceFrom?: string;
2801
2793
  yearsOfExperienceTo?: string;
2802
2794
  businessIndustry?: string;
2795
+ projectName?: string;
2796
+ hideExpectedSalaryFrom: boolean;
2797
+ hideExpectedSalaryTo: boolean;
2798
+ numberOfHours: number;
2799
+ years: string;
2800
+ months: string;
2801
+ weeks: string;
2802
+ days: string;
2803
2803
  additionalComment?: string;
2804
+ goodToHaveSkills: string[];
2805
+ jobRoleCanonicalName?: string;
2804
2806
  }
2805
2807
 
2806
2808
  declare const LEAD_PATTERN: {
package/dist/index.js CHANGED
@@ -1668,7 +1668,6 @@ __decorateClass([
1668
1668
  // src/modules/user/freelancer-profile/dto/update-freelancer-profile.dto.ts
1669
1669
  var import_class_validator40 = require("class-validator");
1670
1670
  var NatureOfWorkDto = /* @__PURE__ */ ((NatureOfWorkDto2) => {
1671
- NatureOfWorkDto2["FULLTIME"] = "FULLTIME";
1672
1671
  NatureOfWorkDto2["FREELANCE"] = "FREELANCE";
1673
1672
  NatureOfWorkDto2["FTE"] = "FTE";
1674
1673
  return NatureOfWorkDto2;
@@ -7281,24 +7280,17 @@ var AdminJobBasicInformationV2Dto = class {
7281
7280
  this.isDraft = false;
7282
7281
  }
7283
7282
  };
7284
- __decorateClass([
7285
- (0, import_class_validator64.IsInt)({ message: "Client ID must be a valid integer." })
7286
- ], AdminJobBasicInformationV2Dto.prototype, "clientId", 2);
7287
7283
  __decorateClass([
7288
7284
  (0, import_class_validator64.IsOptional)(),
7289
7285
  (0, import_class_transformer14.Type)(() => Boolean)
7290
7286
  ], AdminJobBasicInformationV2Dto.prototype, "isDraft", 2);
7287
+ __decorateClass([
7288
+ (0, import_class_validator64.IsInt)({ message: "Client ID must be a valid integer." })
7289
+ ], AdminJobBasicInformationV2Dto.prototype, "clientId", 2);
7291
7290
  __decorateClass([
7292
7291
  (0, import_class_validator64.IsNotEmpty)({ message: "Please enter job role" }),
7293
7292
  (0, import_class_validator64.IsString)({ message: "Job role must be a string" })
7294
7293
  ], AdminJobBasicInformationV2Dto.prototype, "jobRole", 2);
7295
- __decorateClass([
7296
- (0, import_class_validator64.IsOptional)()
7297
- ], AdminJobBasicInformationV2Dto.prototype, "jobRoleCanonicalName", 2);
7298
- __decorateClass([
7299
- (0, import_class_validator64.IsOptional)(),
7300
- (0, import_class_validator64.IsString)({ message: "Project name must be a string" })
7301
- ], AdminJobBasicInformationV2Dto.prototype, "projectName", 2);
7302
7294
  __decorateClass([
7303
7295
  (0, import_class_validator64.IsOptional)(),
7304
7296
  (0, import_class_validator64.IsString)({ message: "Note must be a string" })
@@ -7311,21 +7303,6 @@ __decorateClass([
7311
7303
  (0, import_class_validator64.IsString)({ each: true, message: "Each skill must be a string" }),
7312
7304
  (0, import_class_transformer14.Type)(() => String)
7313
7305
  ], AdminJobBasicInformationV2Dto.prototype, "skills", 2);
7314
- __decorateClass([
7315
- (0, import_class_validator64.ValidateIf)((o) => !o.isDraft),
7316
- (0, import_class_validator64.IsArray)({ message: "Good to have skills must be an array" }),
7317
- (0, import_class_validator64.IsString)({ each: true, message: "Each skill must be a string" }),
7318
- (0, import_class_validator64.IsOptional)(),
7319
- (0, import_class_transformer14.Type)(() => String)
7320
- ], AdminJobBasicInformationV2Dto.prototype, "goodToHaveSkills", 2);
7321
- __decorateClass([
7322
- (0, import_class_validator64.ValidateIf)((o) => !o.isDraft && (o.location === "ONSITE" /* ONSITE */ || o.location === "HYBRID" /* HYBRID */)),
7323
- (0, import_class_validator64.IsArray)({ message: "locations must be an array" }),
7324
- (0, import_class_validator64.ArrayNotEmpty)({ message: "Please select at least one location" }),
7325
- (0, import_class_validator64.ValidateNested)({ each: true }),
7326
- (0, import_class_transformer14.Type)(() => JobLocationAdminDto),
7327
- (0, import_class_validator64.IsOptional)()
7328
- ], AdminJobBasicInformationV2Dto.prototype, "locations", 2);
7329
7306
  __decorateClass([
7330
7307
  (0, import_class_validator64.ValidateIf)((o) => !o.isDraft),
7331
7308
  (0, import_class_validator64.IsNumber)({}, { message: "Openings must be a number" }),
@@ -7348,19 +7325,12 @@ __decorateClass([
7348
7325
  ).join(", ")}`
7349
7326
  })
7350
7327
  ], AdminJobBasicInformationV2Dto.prototype, "typeOfEmployment", 2);
7351
- __decorateClass([
7352
- (0, import_class_validator64.ValidateIf)((o) => !o.isDraft),
7353
- (0, import_class_validator64.IsString)({ message: "Currency must be a string" })
7354
- ], AdminJobBasicInformationV2Dto.prototype, "currency", 2);
7355
7328
  __decorateClass([
7356
7329
  (0, import_class_validator64.ValidateIf)((o) => !o.isDraft),
7357
7330
  (0, import_class_validator64.IsNumber)({}, { message: "Expected salary (from) must be a number" }),
7358
7331
  (0, import_class_validator64.Min)(0, { message: "Expected salary (from) cannot be negative" }),
7359
7332
  (0, import_class_transformer14.Type)(() => Number)
7360
7333
  ], AdminJobBasicInformationV2Dto.prototype, "expectedSalaryFrom", 2);
7361
- __decorateClass([
7362
- (0, import_class_validator64.IsOptional)()
7363
- ], AdminJobBasicInformationV2Dto.prototype, "hideExpectedSalaryFrom", 2);
7364
7334
  __decorateClass([
7365
7335
  (0, import_class_validator64.ValidateIf)((o) => !o.isDraft),
7366
7336
  (0, import_class_validator64.IsNumber)({}, { message: "Expected salary (to) must be a number" }),
@@ -7368,32 +7338,38 @@ __decorateClass([
7368
7338
  (0, import_class_transformer14.Type)(() => Number)
7369
7339
  ], AdminJobBasicInformationV2Dto.prototype, "expectedSalaryTo", 2);
7370
7340
  __decorateClass([
7371
- (0, import_class_validator64.IsOptional)()
7372
- ], AdminJobBasicInformationV2Dto.prototype, "hideExpectedSalaryTo", 2);
7373
- __decorateClass([
7374
- (0, import_class_validator64.IsOptional)()
7375
- ], AdminJobBasicInformationV2Dto.prototype, "years", 2);
7376
- __decorateClass([
7377
- (0, import_class_validator64.IsOptional)()
7378
- ], AdminJobBasicInformationV2Dto.prototype, "months", 2);
7379
- __decorateClass([
7380
- (0, import_class_validator64.IsOptional)()
7381
- ], AdminJobBasicInformationV2Dto.prototype, "weeks", 2);
7341
+ (0, import_class_validator64.ValidateIf)((o) => !o.isDraft),
7342
+ (0, import_class_validator64.IsString)({ message: "Currency must be a string" })
7343
+ ], AdminJobBasicInformationV2Dto.prototype, "currency", 2);
7382
7344
  __decorateClass([
7345
+ (0, import_class_validator64.ValidateIf)((o) => !o.isDraft && (o.location === "ONSITE" /* ONSITE */ || o.location === "HYBRID" /* HYBRID */)),
7346
+ (0, import_class_validator64.IsArray)({ message: "locations must be an array" }),
7347
+ (0, import_class_validator64.ArrayNotEmpty)({ message: "Please select at least one location" }),
7348
+ (0, import_class_validator64.ValidateNested)({ each: true }),
7349
+ (0, import_class_transformer14.Type)(() => JobLocationAdminDto),
7383
7350
  (0, import_class_validator64.IsOptional)()
7384
- ], AdminJobBasicInformationV2Dto.prototype, "days", 2);
7351
+ ], AdminJobBasicInformationV2Dto.prototype, "locations", 2);
7385
7352
  __decorateClass([
7386
- (0, import_class_validator64.IsOptional)(),
7387
- (0, import_class_validator64.IsNumber)({}, { message: "Number of hours must be a number" }),
7388
- (0, import_class_validator64.Min)(0, { message: "Number of hours cannot be negative" }),
7389
- (0, import_class_validator64.Max)(40, { message: "Number of hours cannot exceed 40" }),
7390
- (0, import_class_transformer14.Type)(() => Number)
7391
- ], AdminJobBasicInformationV2Dto.prototype, "numberOfHours", 2);
7353
+ (0, import_class_validator64.IsString)({ message: "Onboarding Days must be a string." }),
7354
+ (0, import_class_validator64.IsNotEmpty)({ message: "Onboarding Days is required." })
7355
+ ], AdminJobBasicInformationV2Dto.prototype, "onboardingTat", 2);
7392
7356
  __decorateClass([
7393
7357
  (0, import_class_validator64.ValidateIf)((o) => !o.isDraft),
7394
7358
  (0, import_class_validator64.IsString)({ message: "Candidate communication skills must be a string" }),
7395
7359
  (0, import_class_validator64.IsOptional)()
7396
7360
  ], AdminJobBasicInformationV2Dto.prototype, "candidateCommunicationSkills", 2);
7361
+ __decorateClass([
7362
+ (0, import_class_validator64.IsDateString)(
7363
+ { strict: true },
7364
+ { message: "Start date must be in YYYY-MM-DD format." }
7365
+ )
7366
+ ], AdminJobBasicInformationV2Dto.prototype, "tentativeStartDate", 2);
7367
+ __decorateClass([
7368
+ (0, import_class_validator64.IsDateString)(
7369
+ { strict: true },
7370
+ { message: "End date must be in YYYY-MM-DD format." }
7371
+ )
7372
+ ], AdminJobBasicInformationV2Dto.prototype, "tentativeEndDate", 2);
7397
7373
  __decorateClass([
7398
7374
  (0, import_class_validator64.ValidateIf)((o) => !o.isDraft),
7399
7375
  (0, import_class_validator64.IsNotEmpty)({ message: "Please enter the academic qualification" }),
@@ -7421,11 +7397,50 @@ __decorateClass([
7421
7397
  (0, import_class_validator64.IsOptional)(),
7422
7398
  (0, import_class_validator64.IsString)({ message: "Business industry must be a string" })
7423
7399
  ], AdminJobBasicInformationV2Dto.prototype, "businessIndustry", 2);
7400
+ __decorateClass([
7401
+ (0, import_class_validator64.IsOptional)(),
7402
+ (0, import_class_validator64.IsString)({ message: "Project name must be a string" })
7403
+ ], AdminJobBasicInformationV2Dto.prototype, "projectName", 2);
7404
+ __decorateClass([
7405
+ (0, import_class_validator64.IsOptional)()
7406
+ ], AdminJobBasicInformationV2Dto.prototype, "hideExpectedSalaryFrom", 2);
7407
+ __decorateClass([
7408
+ (0, import_class_validator64.IsOptional)()
7409
+ ], AdminJobBasicInformationV2Dto.prototype, "hideExpectedSalaryTo", 2);
7410
+ __decorateClass([
7411
+ (0, import_class_validator64.IsOptional)(),
7412
+ (0, import_class_validator64.IsNumber)({}, { message: "Number of hours must be a number" }),
7413
+ (0, import_class_validator64.Min)(0, { message: "Number of hours cannot be negative" }),
7414
+ (0, import_class_validator64.Max)(40, { message: "Number of hours cannot exceed 40" }),
7415
+ (0, import_class_transformer14.Type)(() => Number)
7416
+ ], AdminJobBasicInformationV2Dto.prototype, "numberOfHours", 2);
7417
+ __decorateClass([
7418
+ (0, import_class_validator64.IsOptional)()
7419
+ ], AdminJobBasicInformationV2Dto.prototype, "years", 2);
7420
+ __decorateClass([
7421
+ (0, import_class_validator64.IsOptional)()
7422
+ ], AdminJobBasicInformationV2Dto.prototype, "months", 2);
7423
+ __decorateClass([
7424
+ (0, import_class_validator64.IsOptional)()
7425
+ ], AdminJobBasicInformationV2Dto.prototype, "weeks", 2);
7426
+ __decorateClass([
7427
+ (0, import_class_validator64.IsOptional)()
7428
+ ], AdminJobBasicInformationV2Dto.prototype, "days", 2);
7424
7429
  __decorateClass([
7425
7430
  (0, import_class_validator64.IsOptional)(),
7426
7431
  (0, import_class_validator64.IsString)({ message: "Additional comment must be a string" }),
7427
7432
  (0, import_class_validator64.MaxLength)(500, { message: "Additional comment must not exceed 500 characters" })
7428
7433
  ], AdminJobBasicInformationV2Dto.prototype, "additionalComment", 2);
7434
+ __decorateClass([
7435
+ (0, import_class_validator64.ValidateIf)((o) => !o.isDraft),
7436
+ (0, import_class_validator64.IsArray)({ message: "Good to have skills must be an array" }),
7437
+ (0, import_class_validator64.IsString)({ each: true, message: "Each skill must be a string" }),
7438
+ (0, import_class_validator64.IsOptional)(),
7439
+ (0, import_class_transformer14.Type)(() => String)
7440
+ ], AdminJobBasicInformationV2Dto.prototype, "goodToHaveSkills", 2);
7441
+ __decorateClass([
7442
+ (0, import_class_validator64.IsOptional)()
7443
+ ], AdminJobBasicInformationV2Dto.prototype, "jobRoleCanonicalName", 2);
7429
7444
 
7430
7445
  // src/modules/lead/pattern/pattern.ts
7431
7446
  var LEAD_PATTERN = {
package/dist/index.mjs CHANGED
@@ -1461,7 +1461,6 @@ import {
1461
1461
  IsInt
1462
1462
  } from "class-validator";
1463
1463
  var NatureOfWorkDto = /* @__PURE__ */ ((NatureOfWorkDto2) => {
1464
- NatureOfWorkDto2["FULLTIME"] = "FULLTIME";
1465
1464
  NatureOfWorkDto2["FREELANCE"] = "FREELANCE";
1466
1465
  NatureOfWorkDto2["FTE"] = "FTE";
1467
1466
  return NatureOfWorkDto2;
@@ -7356,7 +7355,8 @@ import {
7356
7355
  MaxLength as MaxLength20,
7357
7356
  Max as Max4,
7358
7357
  ValidateNested as ValidateNested6,
7359
- IsInt as IsInt9
7358
+ IsInt as IsInt9,
7359
+ IsDateString as IsDateString6
7360
7360
  } from "class-validator";
7361
7361
  import { Type as Type12 } from "class-transformer";
7362
7362
  var JobLocationAdminEnumDto = /* @__PURE__ */ ((JobLocationAdminEnumDto2) => {
@@ -7398,24 +7398,17 @@ var AdminJobBasicInformationV2Dto = class {
7398
7398
  this.isDraft = false;
7399
7399
  }
7400
7400
  };
7401
- __decorateClass([
7402
- IsInt9({ message: "Client ID must be a valid integer." })
7403
- ], AdminJobBasicInformationV2Dto.prototype, "clientId", 2);
7404
7401
  __decorateClass([
7405
7402
  IsOptional36(),
7406
7403
  Type12(() => Boolean)
7407
7404
  ], AdminJobBasicInformationV2Dto.prototype, "isDraft", 2);
7405
+ __decorateClass([
7406
+ IsInt9({ message: "Client ID must be a valid integer." })
7407
+ ], AdminJobBasicInformationV2Dto.prototype, "clientId", 2);
7408
7408
  __decorateClass([
7409
7409
  IsNotEmpty55({ message: "Please enter job role" }),
7410
7410
  IsString36({ message: "Job role must be a string" })
7411
7411
  ], AdminJobBasicInformationV2Dto.prototype, "jobRole", 2);
7412
- __decorateClass([
7413
- IsOptional36()
7414
- ], AdminJobBasicInformationV2Dto.prototype, "jobRoleCanonicalName", 2);
7415
- __decorateClass([
7416
- IsOptional36(),
7417
- IsString36({ message: "Project name must be a string" })
7418
- ], AdminJobBasicInformationV2Dto.prototype, "projectName", 2);
7419
7412
  __decorateClass([
7420
7413
  IsOptional36(),
7421
7414
  IsString36({ message: "Note must be a string" })
@@ -7428,21 +7421,6 @@ __decorateClass([
7428
7421
  IsString36({ each: true, message: "Each skill must be a string" }),
7429
7422
  Type12(() => String)
7430
7423
  ], AdminJobBasicInformationV2Dto.prototype, "skills", 2);
7431
- __decorateClass([
7432
- ValidateIf9((o) => !o.isDraft),
7433
- IsArray14({ message: "Good to have skills must be an array" }),
7434
- IsString36({ each: true, message: "Each skill must be a string" }),
7435
- IsOptional36(),
7436
- Type12(() => String)
7437
- ], AdminJobBasicInformationV2Dto.prototype, "goodToHaveSkills", 2);
7438
- __decorateClass([
7439
- ValidateIf9((o) => !o.isDraft && (o.location === "ONSITE" /* ONSITE */ || o.location === "HYBRID" /* HYBRID */)),
7440
- IsArray14({ message: "locations must be an array" }),
7441
- ArrayNotEmpty9({ message: "Please select at least one location" }),
7442
- ValidateNested6({ each: true }),
7443
- Type12(() => JobLocationAdminDto),
7444
- IsOptional36()
7445
- ], AdminJobBasicInformationV2Dto.prototype, "locations", 2);
7446
7424
  __decorateClass([
7447
7425
  ValidateIf9((o) => !o.isDraft),
7448
7426
  IsNumber9({}, { message: "Openings must be a number" }),
@@ -7465,19 +7443,12 @@ __decorateClass([
7465
7443
  ).join(", ")}`
7466
7444
  })
7467
7445
  ], AdminJobBasicInformationV2Dto.prototype, "typeOfEmployment", 2);
7468
- __decorateClass([
7469
- ValidateIf9((o) => !o.isDraft),
7470
- IsString36({ message: "Currency must be a string" })
7471
- ], AdminJobBasicInformationV2Dto.prototype, "currency", 2);
7472
7446
  __decorateClass([
7473
7447
  ValidateIf9((o) => !o.isDraft),
7474
7448
  IsNumber9({}, { message: "Expected salary (from) must be a number" }),
7475
7449
  Min8(0, { message: "Expected salary (from) cannot be negative" }),
7476
7450
  Type12(() => Number)
7477
7451
  ], AdminJobBasicInformationV2Dto.prototype, "expectedSalaryFrom", 2);
7478
- __decorateClass([
7479
- IsOptional36()
7480
- ], AdminJobBasicInformationV2Dto.prototype, "hideExpectedSalaryFrom", 2);
7481
7452
  __decorateClass([
7482
7453
  ValidateIf9((o) => !o.isDraft),
7483
7454
  IsNumber9({}, { message: "Expected salary (to) must be a number" }),
@@ -7485,32 +7456,38 @@ __decorateClass([
7485
7456
  Type12(() => Number)
7486
7457
  ], AdminJobBasicInformationV2Dto.prototype, "expectedSalaryTo", 2);
7487
7458
  __decorateClass([
7488
- IsOptional36()
7489
- ], AdminJobBasicInformationV2Dto.prototype, "hideExpectedSalaryTo", 2);
7490
- __decorateClass([
7491
- IsOptional36()
7492
- ], AdminJobBasicInformationV2Dto.prototype, "years", 2);
7493
- __decorateClass([
7494
- IsOptional36()
7495
- ], AdminJobBasicInformationV2Dto.prototype, "months", 2);
7459
+ ValidateIf9((o) => !o.isDraft),
7460
+ IsString36({ message: "Currency must be a string" })
7461
+ ], AdminJobBasicInformationV2Dto.prototype, "currency", 2);
7496
7462
  __decorateClass([
7463
+ ValidateIf9((o) => !o.isDraft && (o.location === "ONSITE" /* ONSITE */ || o.location === "HYBRID" /* HYBRID */)),
7464
+ IsArray14({ message: "locations must be an array" }),
7465
+ ArrayNotEmpty9({ message: "Please select at least one location" }),
7466
+ ValidateNested6({ each: true }),
7467
+ Type12(() => JobLocationAdminDto),
7497
7468
  IsOptional36()
7498
- ], AdminJobBasicInformationV2Dto.prototype, "weeks", 2);
7469
+ ], AdminJobBasicInformationV2Dto.prototype, "locations", 2);
7499
7470
  __decorateClass([
7500
- IsOptional36()
7501
- ], AdminJobBasicInformationV2Dto.prototype, "days", 2);
7502
- __decorateClass([
7503
- IsOptional36(),
7504
- IsNumber9({}, { message: "Number of hours must be a number" }),
7505
- Min8(0, { message: "Number of hours cannot be negative" }),
7506
- Max4(40, { message: "Number of hours cannot exceed 40" }),
7507
- Type12(() => Number)
7508
- ], AdminJobBasicInformationV2Dto.prototype, "numberOfHours", 2);
7471
+ IsString36({ message: "Onboarding Days must be a string." }),
7472
+ IsNotEmpty55({ message: "Onboarding Days is required." })
7473
+ ], AdminJobBasicInformationV2Dto.prototype, "onboardingTat", 2);
7509
7474
  __decorateClass([
7510
7475
  ValidateIf9((o) => !o.isDraft),
7511
7476
  IsString36({ message: "Candidate communication skills must be a string" }),
7512
7477
  IsOptional36()
7513
7478
  ], AdminJobBasicInformationV2Dto.prototype, "candidateCommunicationSkills", 2);
7479
+ __decorateClass([
7480
+ IsDateString6(
7481
+ { strict: true },
7482
+ { message: "Start date must be in YYYY-MM-DD format." }
7483
+ )
7484
+ ], AdminJobBasicInformationV2Dto.prototype, "tentativeStartDate", 2);
7485
+ __decorateClass([
7486
+ IsDateString6(
7487
+ { strict: true },
7488
+ { message: "End date must be in YYYY-MM-DD format." }
7489
+ )
7490
+ ], AdminJobBasicInformationV2Dto.prototype, "tentativeEndDate", 2);
7514
7491
  __decorateClass([
7515
7492
  ValidateIf9((o) => !o.isDraft),
7516
7493
  IsNotEmpty55({ message: "Please enter the academic qualification" }),
@@ -7538,11 +7515,50 @@ __decorateClass([
7538
7515
  IsOptional36(),
7539
7516
  IsString36({ message: "Business industry must be a string" })
7540
7517
  ], AdminJobBasicInformationV2Dto.prototype, "businessIndustry", 2);
7518
+ __decorateClass([
7519
+ IsOptional36(),
7520
+ IsString36({ message: "Project name must be a string" })
7521
+ ], AdminJobBasicInformationV2Dto.prototype, "projectName", 2);
7522
+ __decorateClass([
7523
+ IsOptional36()
7524
+ ], AdminJobBasicInformationV2Dto.prototype, "hideExpectedSalaryFrom", 2);
7525
+ __decorateClass([
7526
+ IsOptional36()
7527
+ ], AdminJobBasicInformationV2Dto.prototype, "hideExpectedSalaryTo", 2);
7528
+ __decorateClass([
7529
+ IsOptional36(),
7530
+ IsNumber9({}, { message: "Number of hours must be a number" }),
7531
+ Min8(0, { message: "Number of hours cannot be negative" }),
7532
+ Max4(40, { message: "Number of hours cannot exceed 40" }),
7533
+ Type12(() => Number)
7534
+ ], AdminJobBasicInformationV2Dto.prototype, "numberOfHours", 2);
7535
+ __decorateClass([
7536
+ IsOptional36()
7537
+ ], AdminJobBasicInformationV2Dto.prototype, "years", 2);
7538
+ __decorateClass([
7539
+ IsOptional36()
7540
+ ], AdminJobBasicInformationV2Dto.prototype, "months", 2);
7541
+ __decorateClass([
7542
+ IsOptional36()
7543
+ ], AdminJobBasicInformationV2Dto.prototype, "weeks", 2);
7544
+ __decorateClass([
7545
+ IsOptional36()
7546
+ ], AdminJobBasicInformationV2Dto.prototype, "days", 2);
7541
7547
  __decorateClass([
7542
7548
  IsOptional36(),
7543
7549
  IsString36({ message: "Additional comment must be a string" }),
7544
7550
  MaxLength20(500, { message: "Additional comment must not exceed 500 characters" })
7545
7551
  ], AdminJobBasicInformationV2Dto.prototype, "additionalComment", 2);
7552
+ __decorateClass([
7553
+ ValidateIf9((o) => !o.isDraft),
7554
+ IsArray14({ message: "Good to have skills must be an array" }),
7555
+ IsString36({ each: true, message: "Each skill must be a string" }),
7556
+ IsOptional36(),
7557
+ Type12(() => String)
7558
+ ], AdminJobBasicInformationV2Dto.prototype, "goodToHaveSkills", 2);
7559
+ __decorateClass([
7560
+ IsOptional36()
7561
+ ], AdminJobBasicInformationV2Dto.prototype, "jobRoleCanonicalName", 2);
7546
7562
 
7547
7563
  // src/modules/lead/pattern/pattern.ts
7548
7564
  var LEAD_PATTERN = {
@@ -7902,7 +7918,7 @@ var TIMESHEET_CLIENT_PATTERN = {
7902
7918
 
7903
7919
  // src/modules/timesheet/dto/create-freelancer-timesheet.dto.ts
7904
7920
  import {
7905
- IsDateString as IsDateString6,
7921
+ IsDateString as IsDateString7,
7906
7922
  IsInt as IsInt10,
7907
7923
  IsNotEmpty as IsNotEmpty66,
7908
7924
  IsOptional as IsOptional42,
@@ -7918,11 +7934,11 @@ __decorateClass([
7918
7934
  ], CreateFreelancerTimesheetDto.prototype, "jobId", 2);
7919
7935
  __decorateClass([
7920
7936
  IsNotEmpty66({ message: "start date is required" }),
7921
- IsDateString6()
7937
+ IsDateString7()
7922
7938
  ], CreateFreelancerTimesheetDto.prototype, "startDate", 2);
7923
7939
  __decorateClass([
7924
7940
  IsNotEmpty66({ message: "end date is required" }),
7925
- IsDateString6()
7941
+ IsDateString7()
7926
7942
  ], CreateFreelancerTimesheetDto.prototype, "endDate", 2);
7927
7943
  __decorateClass([
7928
7944
  IsNotEmpty66({ message: "start time is required" }),
@@ -7958,7 +7974,7 @@ __decorateClass([
7958
7974
 
7959
7975
  // src/modules/timesheet/dto/update-freelancer-timesheet.dto.ts
7960
7976
  import {
7961
- IsDateString as IsDateString7,
7977
+ IsDateString as IsDateString8,
7962
7978
  IsInt as IsInt11,
7963
7979
  IsNotEmpty as IsNotEmpty67,
7964
7980
  IsOptional as IsOptional43,
@@ -7974,11 +7990,11 @@ __decorateClass([
7974
7990
  ], UpdateFreelancerTimesheetDto.prototype, "jobId", 2);
7975
7991
  __decorateClass([
7976
7992
  IsNotEmpty67({ message: "start date is required" }),
7977
- IsDateString7()
7993
+ IsDateString8()
7978
7994
  ], UpdateFreelancerTimesheetDto.prototype, "startDate", 2);
7979
7995
  __decorateClass([
7980
7996
  IsNotEmpty67({ message: "end date is required" }),
7981
- IsDateString7()
7997
+ IsDateString8()
7982
7998
  ], UpdateFreelancerTimesheetDto.prototype, "endDate", 2);
7983
7999
  __decorateClass([
7984
8000
  IsNotEmpty67({ message: "start time is required" }),
@@ -21,34 +21,37 @@ export declare class JobLocationAdminDto {
21
21
  cityId: number;
22
22
  }
23
23
  export declare class AdminJobBasicInformationV2Dto {
24
- clientId: number;
25
24
  isDraft?: boolean;
25
+ clientId: number;
26
26
  jobRole: string;
27
- jobRoleCanonicalName?: string;
28
- projectName?: string;
29
27
  note?: string;
30
28
  skills: string[];
31
- goodToHaveSkills: string[];
32
- locations: JobLocationAdminDto[];
33
29
  openings: number;
34
30
  location: JobLocationAdminEnumDto;
35
31
  typeOfEmployment: EmploymentTypeAdminEnumDto;
36
- currency?: string;
37
32
  expectedSalaryFrom: number;
38
- hideExpectedSalaryFrom: boolean;
39
33
  expectedSalaryTo: number;
40
- hideExpectedSalaryTo: boolean;
41
- years: string;
42
- months: string;
43
- weeks: string;
44
- days: string;
45
- numberOfHours: number;
34
+ currency?: string;
35
+ locations: JobLocationAdminDto[];
36
+ onboardingTat: string;
46
37
  candidateCommunicationSkills?: string;
38
+ tentativeStartDate: string;
39
+ tentativeEndDate: string;
47
40
  academicQualification?: string;
48
41
  yearsOfExperienceType: typeOfExperienceAdminEnumDto;
49
42
  yearsOfExperienceFrom?: string;
50
43
  yearsOfExperienceTo?: string;
51
44
  businessIndustry?: string;
45
+ projectName?: string;
46
+ hideExpectedSalaryFrom: boolean;
47
+ hideExpectedSalaryTo: boolean;
48
+ numberOfHours: number;
49
+ years: string;
50
+ months: string;
51
+ weeks: string;
52
+ days: string;
52
53
  additionalComment?: string;
54
+ goodToHaveSkills: string[];
55
+ jobRoleCanonicalName?: string;
53
56
  }
54
57
  export {};
@@ -1,5 +1,4 @@
1
1
  export declare enum NatureOfWorkDto {
2
- FULLTIME = "FULLTIME",
3
2
  FREELANCE = "FREELANCE",
4
3
  FTE = "FTE"
5
4
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@experts_hub/shared",
3
- "version": "1.0.522",
3
+ "version": "1.0.523",
4
4
  "description": "Shared DTOs, interfaces, and utilities for experts hub applications",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",