@experts_hub/shared 1.0.337 → 1.0.338

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
@@ -2037,7 +2037,7 @@ declare enum TypeOfEmploymentEnumDto {
2037
2037
  declare class AdminCreateJobInformationDto {
2038
2038
  jobRole: string;
2039
2039
  note?: string;
2040
- skills: number[];
2040
+ skills: string[];
2041
2041
  openings: number;
2042
2042
  location: JobLocationEnumDto;
2043
2043
  typeOfEmployment: TypeOfEmploymentEnumDto;
@@ -2068,7 +2068,7 @@ declare enum TypeOfEmploymentEnums {
2068
2068
  declare class AdminUpdateJobInformationDto {
2069
2069
  jobRole: string;
2070
2070
  note?: string;
2071
- skills: number[];
2071
+ skills: string[];
2072
2072
  openings: number;
2073
2073
  location: JobLocationEnums;
2074
2074
  typeOfEmployment: TypeOfEmploymentEnums;
package/dist/index.d.ts CHANGED
@@ -2037,7 +2037,7 @@ declare enum TypeOfEmploymentEnumDto {
2037
2037
  declare class AdminCreateJobInformationDto {
2038
2038
  jobRole: string;
2039
2039
  note?: string;
2040
- skills: number[];
2040
+ skills: string[];
2041
2041
  openings: number;
2042
2042
  location: JobLocationEnumDto;
2043
2043
  typeOfEmployment: TypeOfEmploymentEnumDto;
@@ -2068,7 +2068,7 @@ declare enum TypeOfEmploymentEnums {
2068
2068
  declare class AdminUpdateJobInformationDto {
2069
2069
  jobRole: string;
2070
2070
  note?: string;
2071
- skills: number[];
2071
+ skills: string[];
2072
2072
  openings: number;
2073
2073
  location: JobLocationEnums;
2074
2074
  typeOfEmployment: TypeOfEmploymentEnums;
package/dist/index.js CHANGED
@@ -4944,10 +4944,9 @@ __decorateClass([
4944
4944
  (0, import_class_validator59.IsString)({ message: "Note must be a string." })
4945
4945
  ], AdminCreateJobInformationDto.prototype, "note", 2);
4946
4946
  __decorateClass([
4947
- (0, import_class_validator59.IsArray)({ message: "Skills must be an array of numeric IDs." }),
4948
- (0, import_class_validator59.ArrayNotEmpty)({ message: "At least one skill must be selected." }),
4949
- (0, import_class_transformer10.Type)(() => Number),
4950
- (0, import_class_validator59.IsInt)({ each: true, message: "Each skill ID must be a valid integer." })
4947
+ (0, import_class_validator59.IsArray)({ message: "Skills must be an array of skill names." }),
4948
+ (0, import_class_validator59.ArrayNotEmpty)({ message: "At least one skill must be provided." }),
4949
+ (0, import_class_validator59.IsString)({ each: true, message: "Each skill must be a valid string." })
4951
4950
  ], AdminCreateJobInformationDto.prototype, "skills", 2);
4952
4951
  __decorateClass([
4953
4952
  (0, import_class_validator59.IsInt)({ message: "Openings must be a valid integer." }),
@@ -4955,12 +4954,16 @@ __decorateClass([
4955
4954
  ], AdminCreateJobInformationDto.prototype, "openings", 2);
4956
4955
  __decorateClass([
4957
4956
  (0, import_class_validator59.IsEnum)(JobLocationEnumDto, {
4958
- message: `Location must be one of: ${Object.values(JobLocationEnumDto).join(", ")}.`
4957
+ message: `Location must be one of: ${Object.values(JobLocationEnumDto).join(
4958
+ ", "
4959
+ )}.`
4959
4960
  })
4960
4961
  ], AdminCreateJobInformationDto.prototype, "location", 2);
4961
4962
  __decorateClass([
4962
4963
  (0, import_class_validator59.IsEnum)(TypeOfEmploymentEnumDto, {
4963
- message: `Type of employment must be one of: ${Object.values(TypeOfEmploymentEnumDto).join(", ")}.`
4964
+ message: `Type of employment must be one of: ${Object.values(
4965
+ TypeOfEmploymentEnumDto
4966
+ ).join(", ")}.`
4964
4967
  })
4965
4968
  ], AdminCreateJobInformationDto.prototype, "typeOfEmployment", 2);
4966
4969
  __decorateClass([
@@ -4984,10 +4987,16 @@ __decorateClass([
4984
4987
  (0, import_class_validator59.IsNumber)({}, { message: "Expected salary to must be a number." })
4985
4988
  ], AdminCreateJobInformationDto.prototype, "expectedSalaryTo", 2);
4986
4989
  __decorateClass([
4987
- (0, import_class_validator59.IsDateString)({ strict: true }, { message: "Start date must be in YYYY-MM-DD format." })
4990
+ (0, import_class_validator59.IsDateString)(
4991
+ { strict: true },
4992
+ { message: "Start date must be in YYYY-MM-DD format." }
4993
+ )
4988
4994
  ], AdminCreateJobInformationDto.prototype, "tentativeStartDate", 2);
4989
4995
  __decorateClass([
4990
- (0, import_class_validator59.IsDateString)({ strict: true }, { message: "End date must be in YYYY-MM-DD format." })
4996
+ (0, import_class_validator59.IsDateString)(
4997
+ { strict: true },
4998
+ { message: "End date must be in YYYY-MM-DD format." }
4999
+ )
4991
5000
  ], AdminCreateJobInformationDto.prototype, "tentativeEndDate", 2);
4992
5001
  __decorateClass([
4993
5002
  (0, import_class_validator59.IsOptional)(),
@@ -5032,10 +5041,9 @@ __decorateClass([
5032
5041
  (0, import_class_validator60.IsString)({ message: "Note must be a string." })
5033
5042
  ], AdminUpdateJobInformationDto.prototype, "note", 2);
5034
5043
  __decorateClass([
5035
- (0, import_class_validator60.IsArray)({ message: "Skills must be an array of numeric IDs." }),
5036
- (0, import_class_validator60.ArrayNotEmpty)({ message: "At least one skill must be selected." }),
5037
- (0, import_class_transformer11.Type)(() => Number),
5038
- (0, import_class_validator60.IsInt)({ each: true, message: "Each skill ID must be a valid integer." })
5044
+ (0, import_class_validator60.IsArray)({ message: "Skills must be an array of skill names." }),
5045
+ (0, import_class_validator60.ArrayNotEmpty)({ message: "At least one skill must be provided." }),
5046
+ (0, import_class_validator60.IsString)({ each: true, message: "Each skill must be a valid string." })
5039
5047
  ], AdminUpdateJobInformationDto.prototype, "skills", 2);
5040
5048
  __decorateClass([
5041
5049
  (0, import_class_validator60.IsInt)({ message: "Openings must be a valid integer." }),
@@ -5043,12 +5051,16 @@ __decorateClass([
5043
5051
  ], AdminUpdateJobInformationDto.prototype, "openings", 2);
5044
5052
  __decorateClass([
5045
5053
  (0, import_class_validator60.IsEnum)(JobLocationEnums, {
5046
- message: `Location must be one of: ${Object.values(JobLocationEnums).join(", ")}.`
5054
+ message: `Location must be one of: ${Object.values(JobLocationEnums).join(
5055
+ ", "
5056
+ )}.`
5047
5057
  })
5048
5058
  ], AdminUpdateJobInformationDto.prototype, "location", 2);
5049
5059
  __decorateClass([
5050
5060
  (0, import_class_validator60.IsEnum)(TypeOfEmploymentEnums, {
5051
- message: `Type of employment must be one of: ${Object.values(TypeOfEmploymentEnums).join(", ")}.`
5061
+ message: `Type of employment must be one of: ${Object.values(
5062
+ TypeOfEmploymentEnums
5063
+ ).join(", ")}.`
5052
5064
  })
5053
5065
  ], AdminUpdateJobInformationDto.prototype, "typeOfEmployment", 2);
5054
5066
  __decorateClass([
@@ -5072,10 +5084,16 @@ __decorateClass([
5072
5084
  (0, import_class_validator60.IsNumber)({}, { message: "Expected salary to must be a number." })
5073
5085
  ], AdminUpdateJobInformationDto.prototype, "expectedSalaryTo", 2);
5074
5086
  __decorateClass([
5075
- (0, import_class_validator60.IsDateString)({ strict: true }, { message: "Start date must be in YYYY-MM-DD format." })
5087
+ (0, import_class_validator60.IsDateString)(
5088
+ { strict: true },
5089
+ { message: "Start date must be in YYYY-MM-DD format." }
5090
+ )
5076
5091
  ], AdminUpdateJobInformationDto.prototype, "tentativeStartDate", 2);
5077
5092
  __decorateClass([
5078
- (0, import_class_validator60.IsDateString)({ strict: true }, { message: "End date must be in YYYY-MM-DD format." })
5093
+ (0, import_class_validator60.IsDateString)(
5094
+ { strict: true },
5095
+ { message: "End date must be in YYYY-MM-DD format." }
5096
+ )
5079
5097
  ], AdminUpdateJobInformationDto.prototype, "tentativeEndDate", 2);
5080
5098
  __decorateClass([
5081
5099
  (0, import_class_validator60.IsOptional)(),
package/dist/index.mjs CHANGED
@@ -5081,10 +5081,9 @@ __decorateClass([
5081
5081
  IsString31({ message: "Note must be a string." })
5082
5082
  ], AdminCreateJobInformationDto.prototype, "note", 2);
5083
5083
  __decorateClass([
5084
- IsArray11({ message: "Skills must be an array of numeric IDs." }),
5085
- ArrayNotEmpty6({ message: "At least one skill must be selected." }),
5086
- Type8(() => Number),
5087
- IsInt6({ each: true, message: "Each skill ID must be a valid integer." })
5084
+ IsArray11({ message: "Skills must be an array of skill names." }),
5085
+ ArrayNotEmpty6({ message: "At least one skill must be provided." }),
5086
+ IsString31({ each: true, message: "Each skill must be a valid string." })
5088
5087
  ], AdminCreateJobInformationDto.prototype, "skills", 2);
5089
5088
  __decorateClass([
5090
5089
  IsInt6({ message: "Openings must be a valid integer." }),
@@ -5092,12 +5091,16 @@ __decorateClass([
5092
5091
  ], AdminCreateJobInformationDto.prototype, "openings", 2);
5093
5092
  __decorateClass([
5094
5093
  IsEnum19(JobLocationEnumDto, {
5095
- message: `Location must be one of: ${Object.values(JobLocationEnumDto).join(", ")}.`
5094
+ message: `Location must be one of: ${Object.values(JobLocationEnumDto).join(
5095
+ ", "
5096
+ )}.`
5096
5097
  })
5097
5098
  ], AdminCreateJobInformationDto.prototype, "location", 2);
5098
5099
  __decorateClass([
5099
5100
  IsEnum19(TypeOfEmploymentEnumDto, {
5100
- message: `Type of employment must be one of: ${Object.values(TypeOfEmploymentEnumDto).join(", ")}.`
5101
+ message: `Type of employment must be one of: ${Object.values(
5102
+ TypeOfEmploymentEnumDto
5103
+ ).join(", ")}.`
5101
5104
  })
5102
5105
  ], AdminCreateJobInformationDto.prototype, "typeOfEmployment", 2);
5103
5106
  __decorateClass([
@@ -5121,10 +5124,16 @@ __decorateClass([
5121
5124
  IsNumber5({}, { message: "Expected salary to must be a number." })
5122
5125
  ], AdminCreateJobInformationDto.prototype, "expectedSalaryTo", 2);
5123
5126
  __decorateClass([
5124
- IsDateString4({ strict: true }, { message: "Start date must be in YYYY-MM-DD format." })
5127
+ IsDateString4(
5128
+ { strict: true },
5129
+ { message: "Start date must be in YYYY-MM-DD format." }
5130
+ )
5125
5131
  ], AdminCreateJobInformationDto.prototype, "tentativeStartDate", 2);
5126
5132
  __decorateClass([
5127
- IsDateString4({ strict: true }, { message: "End date must be in YYYY-MM-DD format." })
5133
+ IsDateString4(
5134
+ { strict: true },
5135
+ { message: "End date must be in YYYY-MM-DD format." }
5136
+ )
5128
5137
  ], AdminCreateJobInformationDto.prototype, "tentativeEndDate", 2);
5129
5138
  __decorateClass([
5130
5139
  IsOptional30(),
@@ -5180,10 +5189,9 @@ __decorateClass([
5180
5189
  IsString32({ message: "Note must be a string." })
5181
5190
  ], AdminUpdateJobInformationDto.prototype, "note", 2);
5182
5191
  __decorateClass([
5183
- IsArray12({ message: "Skills must be an array of numeric IDs." }),
5184
- ArrayNotEmpty7({ message: "At least one skill must be selected." }),
5185
- Type9(() => Number),
5186
- IsInt7({ each: true, message: "Each skill ID must be a valid integer." })
5192
+ IsArray12({ message: "Skills must be an array of skill names." }),
5193
+ ArrayNotEmpty7({ message: "At least one skill must be provided." }),
5194
+ IsString32({ each: true, message: "Each skill must be a valid string." })
5187
5195
  ], AdminUpdateJobInformationDto.prototype, "skills", 2);
5188
5196
  __decorateClass([
5189
5197
  IsInt7({ message: "Openings must be a valid integer." }),
@@ -5191,12 +5199,16 @@ __decorateClass([
5191
5199
  ], AdminUpdateJobInformationDto.prototype, "openings", 2);
5192
5200
  __decorateClass([
5193
5201
  IsEnum20(JobLocationEnums, {
5194
- message: `Location must be one of: ${Object.values(JobLocationEnums).join(", ")}.`
5202
+ message: `Location must be one of: ${Object.values(JobLocationEnums).join(
5203
+ ", "
5204
+ )}.`
5195
5205
  })
5196
5206
  ], AdminUpdateJobInformationDto.prototype, "location", 2);
5197
5207
  __decorateClass([
5198
5208
  IsEnum20(TypeOfEmploymentEnums, {
5199
- message: `Type of employment must be one of: ${Object.values(TypeOfEmploymentEnums).join(", ")}.`
5209
+ message: `Type of employment must be one of: ${Object.values(
5210
+ TypeOfEmploymentEnums
5211
+ ).join(", ")}.`
5200
5212
  })
5201
5213
  ], AdminUpdateJobInformationDto.prototype, "typeOfEmployment", 2);
5202
5214
  __decorateClass([
@@ -5220,10 +5232,16 @@ __decorateClass([
5220
5232
  IsNumber6({}, { message: "Expected salary to must be a number." })
5221
5233
  ], AdminUpdateJobInformationDto.prototype, "expectedSalaryTo", 2);
5222
5234
  __decorateClass([
5223
- IsDateString5({ strict: true }, { message: "Start date must be in YYYY-MM-DD format." })
5235
+ IsDateString5(
5236
+ { strict: true },
5237
+ { message: "Start date must be in YYYY-MM-DD format." }
5238
+ )
5224
5239
  ], AdminUpdateJobInformationDto.prototype, "tentativeStartDate", 2);
5225
5240
  __decorateClass([
5226
- IsDateString5({ strict: true }, { message: "End date must be in YYYY-MM-DD format." })
5241
+ IsDateString5(
5242
+ { strict: true },
5243
+ { message: "End date must be in YYYY-MM-DD format." }
5244
+ )
5227
5245
  ], AdminUpdateJobInformationDto.prototype, "tentativeEndDate", 2);
5228
5246
  __decorateClass([
5229
5247
  IsOptional31(),
@@ -11,7 +11,7 @@ export declare enum TypeOfEmploymentEnumDto {
11
11
  export declare class AdminCreateJobInformationDto {
12
12
  jobRole: string;
13
13
  note?: string;
14
- skills: number[];
14
+ skills: string[];
15
15
  openings: number;
16
16
  location: JobLocationEnumDto;
17
17
  typeOfEmployment: TypeOfEmploymentEnumDto;
@@ -11,7 +11,7 @@ export declare enum TypeOfEmploymentEnums {
11
11
  export declare class AdminUpdateJobInformationDto {
12
12
  jobRole: string;
13
13
  note?: string;
14
- skills: number[];
14
+ skills: string[];
15
15
  openings: number;
16
16
  location: JobLocationEnums;
17
17
  typeOfEmployment: TypeOfEmploymentEnums;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@experts_hub/shared",
3
- "version": "1.0.337",
3
+ "version": "1.0.338",
4
4
  "description": "Shared DTOs, interfaces, and utilities for experts hub applications",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",