@experts_hub/shared 1.0.710 → 1.0.712

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
@@ -265,13 +265,29 @@ declare class FreelancerDevelopmentPreferenceDto {
265
265
  developer: boolean;
266
266
  }
267
267
 
268
+ declare enum ModeOfWorkEnum$2 {
269
+ ONSITE = "ONSITE",
270
+ REMOTE = "REMOTE",
271
+ HYBRID = "HYBRID",
272
+ BOTH = "BOTH"
273
+ }
274
+ declare enum NatureOfWorkEnum$2 {
275
+ FREELANCE = "FREELANCE"
276
+ }
268
277
  declare class FreelancerProfileQuestionDto {
269
278
  uuid: string;
270
- question_slug: string;
271
- answer: any;
272
- numberOfHours?: number;
273
- currency?: string;
274
- ctc?: number;
279
+ modeOfWork: ModeOfWorkEnum$2;
280
+ natureOfWork: NatureOfWorkEnum$2;
281
+ numberOfHours: number;
282
+ isImmediateJoiner: boolean;
283
+ availabilityToJoin?: string;
284
+ currency: string;
285
+ expectedHourlyCompensation: number;
286
+ linkedinProfileLink: string;
287
+ kaggleProfileLink?: string | null;
288
+ githubProfileLink?: string | null;
289
+ stackOverflowProfileLink?: string | null;
290
+ portfolioLink?: string | null;
275
291
  }
276
292
 
277
293
  declare class FreelancerWorkShowcaseDto {
package/dist/index.d.ts CHANGED
@@ -265,13 +265,29 @@ declare class FreelancerDevelopmentPreferenceDto {
265
265
  developer: boolean;
266
266
  }
267
267
 
268
+ declare enum ModeOfWorkEnum$2 {
269
+ ONSITE = "ONSITE",
270
+ REMOTE = "REMOTE",
271
+ HYBRID = "HYBRID",
272
+ BOTH = "BOTH"
273
+ }
274
+ declare enum NatureOfWorkEnum$2 {
275
+ FREELANCE = "FREELANCE"
276
+ }
268
277
  declare class FreelancerProfileQuestionDto {
269
278
  uuid: string;
270
- question_slug: string;
271
- answer: any;
272
- numberOfHours?: number;
273
- currency?: string;
274
- ctc?: number;
279
+ modeOfWork: ModeOfWorkEnum$2;
280
+ natureOfWork: NatureOfWorkEnum$2;
281
+ numberOfHours: number;
282
+ isImmediateJoiner: boolean;
283
+ availabilityToJoin?: string;
284
+ currency: string;
285
+ expectedHourlyCompensation: number;
286
+ linkedinProfileLink: string;
287
+ kaggleProfileLink?: string | null;
288
+ githubProfileLink?: string | null;
289
+ stackOverflowProfileLink?: string | null;
290
+ portfolioLink?: string | null;
275
291
  }
276
292
 
277
293
  declare class FreelancerWorkShowcaseDto {
package/dist/index.js CHANGED
@@ -1200,6 +1200,17 @@ __decorateClass([
1200
1200
 
1201
1201
  // src/modules/onboarding/dto/freelancer-profile-question.dto.ts
1202
1202
  var import_class_validator31 = require("class-validator");
1203
+ var ModeOfWorkEnum = /* @__PURE__ */ ((ModeOfWorkEnum4) => {
1204
+ ModeOfWorkEnum4["ONSITE"] = "ONSITE";
1205
+ ModeOfWorkEnum4["REMOTE"] = "REMOTE";
1206
+ ModeOfWorkEnum4["HYBRID"] = "HYBRID";
1207
+ ModeOfWorkEnum4["BOTH"] = "BOTH";
1208
+ return ModeOfWorkEnum4;
1209
+ })(ModeOfWorkEnum || {});
1210
+ var NatureOfWorkEnum = /* @__PURE__ */ ((NatureOfWorkEnum4) => {
1211
+ NatureOfWorkEnum4["FREELANCE"] = "FREELANCE";
1212
+ return NatureOfWorkEnum4;
1213
+ })(NatureOfWorkEnum || {});
1203
1214
  var FreelancerProfileQuestionDto = class {
1204
1215
  };
1205
1216
  __decorateClass([
@@ -1207,28 +1218,82 @@ __decorateClass([
1207
1218
  (0, import_class_validator31.IsUUID)()
1208
1219
  ], FreelancerProfileQuestionDto.prototype, "uuid", 2);
1209
1220
  __decorateClass([
1210
- (0, import_class_validator31.IsNotEmpty)({ message: "Please enter question slug." }),
1211
- (0, import_class_validator31.IsString)(),
1212
- (0, import_class_validator31.IsIn)([
1213
- "natureOfWork",
1214
- "expectedHourlyCompensation",
1215
- "modeOfWork",
1216
- "availabilityToJoin",
1217
- "isImmediateJoiner"
1218
- ])
1219
- ], FreelancerProfileQuestionDto.prototype, "question_slug", 2);
1221
+ (0, import_class_validator31.IsNotEmpty)({ message: "Please enter mode of work." }),
1222
+ (0, import_class_validator31.IsEnum)(ModeOfWorkEnum, {
1223
+ message: `Mode of work must be one of: ${Object.values(ModeOfWorkEnum).join(
1224
+ ", "
1225
+ )}`
1226
+ })
1227
+ ], FreelancerProfileQuestionDto.prototype, "modeOfWork", 2);
1220
1228
  __decorateClass([
1221
- (0, import_class_validator31.IsNotEmpty)({ message: "Please enter answer." })
1222
- ], FreelancerProfileQuestionDto.prototype, "answer", 2);
1229
+ (0, import_class_validator31.IsNotEmpty)({ message: "Please enter nature of work." }),
1230
+ (0, import_class_validator31.IsEnum)(NatureOfWorkEnum, {
1231
+ message: `Nature of work must be one of: ${Object.values(NatureOfWorkEnum).join(
1232
+ ", "
1233
+ )}`
1234
+ })
1235
+ ], FreelancerProfileQuestionDto.prototype, "natureOfWork", 2);
1223
1236
  __decorateClass([
1224
- (0, import_class_validator31.IsOptional)()
1237
+ (0, import_class_validator31.IsNotEmpty)({ message: "Please enter number of hours." })
1225
1238
  ], FreelancerProfileQuestionDto.prototype, "numberOfHours", 2);
1239
+ __decorateClass([
1240
+ (0, import_class_validator31.IsNotEmpty)({ message: "Please enter is immediate joiner." })
1241
+ ], FreelancerProfileQuestionDto.prototype, "isImmediateJoiner", 2);
1226
1242
  __decorateClass([
1227
1243
  (0, import_class_validator31.IsOptional)()
1244
+ ], FreelancerProfileQuestionDto.prototype, "availabilityToJoin", 2);
1245
+ __decorateClass([
1246
+ (0, import_class_validator31.IsNotEmpty)({ message: "Please enter currency." })
1228
1247
  ], FreelancerProfileQuestionDto.prototype, "currency", 2);
1229
1248
  __decorateClass([
1230
- (0, import_class_validator31.IsOptional)()
1231
- ], FreelancerProfileQuestionDto.prototype, "ctc", 2);
1249
+ (0, import_class_validator31.IsNotEmpty)({ message: "Please enter expected hourly compensation." })
1250
+ ], FreelancerProfileQuestionDto.prototype, "expectedHourlyCompensation", 2);
1251
+ __decorateClass([
1252
+ (0, import_class_validator31.IsNotEmpty)({ message: "Please enter likedin profile url." }),
1253
+ (0, import_class_validator31.IsString)(),
1254
+ (0, import_class_validator31.IsUrl)(
1255
+ { require_protocol: false },
1256
+ {
1257
+ message: "linkedinProfileLink must be a valid URL with protocol (e.g. https://)"
1258
+ }
1259
+ )
1260
+ ], FreelancerProfileQuestionDto.prototype, "linkedinProfileLink", 2);
1261
+ __decorateClass([
1262
+ (0, import_class_validator31.IsOptional)(),
1263
+ (0, import_class_validator31.IsUrl)(
1264
+ { require_protocol: false },
1265
+ {
1266
+ message: "kaggleProfileLink must be a valid URL with protocol (e.g. https://)"
1267
+ }
1268
+ )
1269
+ ], FreelancerProfileQuestionDto.prototype, "kaggleProfileLink", 2);
1270
+ __decorateClass([
1271
+ (0, import_class_validator31.IsOptional)(),
1272
+ (0, import_class_validator31.IsUrl)(
1273
+ { require_protocol: false },
1274
+ {
1275
+ message: "githubProfileLink must be a valid URL with protocol (e.g. https://)"
1276
+ }
1277
+ )
1278
+ ], FreelancerProfileQuestionDto.prototype, "githubProfileLink", 2);
1279
+ __decorateClass([
1280
+ (0, import_class_validator31.IsOptional)(),
1281
+ (0, import_class_validator31.IsUrl)(
1282
+ { require_protocol: false },
1283
+ {
1284
+ message: "stackOverflowProfileLink must be a valid URL with protocol (e.g. https://)"
1285
+ }
1286
+ )
1287
+ ], FreelancerProfileQuestionDto.prototype, "stackOverflowProfileLink", 2);
1288
+ __decorateClass([
1289
+ (0, import_class_validator31.IsOptional)(),
1290
+ (0, import_class_validator31.IsUrl)(
1291
+ { require_protocol: false },
1292
+ {
1293
+ message: "portfolioLink must be a valid URL with protocol (e.g. https://)"
1294
+ }
1295
+ )
1296
+ ], FreelancerProfileQuestionDto.prototype, "portfolioLink", 2);
1232
1297
 
1233
1298
  // src/modules/onboarding/dto/freelancer-work-showcase.dto.ts
1234
1299
  var import_class_validator32 = require("class-validator");
@@ -7693,8 +7758,7 @@ __decorateClass([
7693
7758
  ], JobDescriptionDto.prototype, "isDraft", 2);
7694
7759
  __decorateClass([
7695
7760
  (0, import_class_validator51.IsNotEmpty)({ message: "Please enter job description" }),
7696
- (0, import_class_validator51.IsString)({ message: "Description must be a string" }),
7697
- (0, import_class_validator51.MaxLength)(5e3, { message: "Description must not exceed 5000 characters" })
7761
+ (0, import_class_validator51.IsString)({ message: "Description must be a string" })
7698
7762
  ], JobDescriptionDto.prototype, "description", 2);
7699
7763
 
7700
7764
  // src/modules/job/dto/create-job-via-ai.dto..ts
@@ -9155,18 +9219,18 @@ var ADMIN_FREELANCER_PATTERN = {
9155
9219
  // src/modules/freelancer-admin/dto/create-freelancer.dto.ts
9156
9220
  var import_class_validator83 = require("class-validator");
9157
9221
  var import_class_transformer10 = require("class-transformer");
9158
- var NatureOfWorkEnum = /* @__PURE__ */ ((NatureOfWorkEnum3) => {
9159
- NatureOfWorkEnum3["FTE"] = "FTE";
9160
- NatureOfWorkEnum3["FREELANCE"] = "FREELANCE";
9161
- NatureOfWorkEnum3["BOTH"] = "BOTH";
9162
- return NatureOfWorkEnum3;
9163
- })(NatureOfWorkEnum || {});
9164
- var ModeOfWorkEnum = /* @__PURE__ */ ((ModeOfWorkEnum3) => {
9165
- ModeOfWorkEnum3["REMOTE"] = "REMOTE";
9166
- ModeOfWorkEnum3["ONSITE"] = "ONSITE";
9167
- ModeOfWorkEnum3["HYBRID"] = "HYBRID";
9168
- return ModeOfWorkEnum3;
9169
- })(ModeOfWorkEnum || {});
9222
+ var NatureOfWorkEnum2 = /* @__PURE__ */ ((NatureOfWorkEnum4) => {
9223
+ NatureOfWorkEnum4["FTE"] = "FTE";
9224
+ NatureOfWorkEnum4["FREELANCE"] = "FREELANCE";
9225
+ NatureOfWorkEnum4["BOTH"] = "BOTH";
9226
+ return NatureOfWorkEnum4;
9227
+ })(NatureOfWorkEnum2 || {});
9228
+ var ModeOfWorkEnum2 = /* @__PURE__ */ ((ModeOfWorkEnum4) => {
9229
+ ModeOfWorkEnum4["REMOTE"] = "REMOTE";
9230
+ ModeOfWorkEnum4["ONSITE"] = "ONSITE";
9231
+ ModeOfWorkEnum4["HYBRID"] = "HYBRID";
9232
+ return ModeOfWorkEnum4;
9233
+ })(ModeOfWorkEnum2 || {});
9170
9234
  var CreateFreelancerDto = class {
9171
9235
  };
9172
9236
  __decorateClass([
@@ -9336,9 +9400,9 @@ __decorateClass([
9336
9400
  ], CreateFreelancerDto.prototype, "developer", 2);
9337
9401
  __decorateClass([
9338
9402
  (0, import_class_validator83.IsOptional)(),
9339
- (0, import_class_validator83.IsEnum)(NatureOfWorkEnum, {
9403
+ (0, import_class_validator83.IsEnum)(NatureOfWorkEnum2, {
9340
9404
  message: `Nature of work must be one of: ${Object.values(
9341
- NatureOfWorkEnum
9405
+ NatureOfWorkEnum2
9342
9406
  ).join(", ")}`
9343
9407
  })
9344
9408
  ], CreateFreelancerDto.prototype, "natureOfWork", 2);
@@ -9380,8 +9444,8 @@ __decorateClass([
9380
9444
  ], CreateFreelancerDto.prototype, "numberOfHours", 2);
9381
9445
  __decorateClass([
9382
9446
  (0, import_class_validator83.IsOptional)(),
9383
- (0, import_class_validator83.IsEnum)(ModeOfWorkEnum, {
9384
- message: `Mode of work must be one of: ${Object.values(ModeOfWorkEnum).join(
9447
+ (0, import_class_validator83.IsEnum)(ModeOfWorkEnum2, {
9448
+ message: `Mode of work must be one of: ${Object.values(ModeOfWorkEnum2).join(
9385
9449
  ", "
9386
9450
  )}`
9387
9451
  })
@@ -9482,18 +9546,18 @@ __decorateClass([
9482
9546
  // src/modules/freelancer-admin/dto/update-freelancer.dto.ts
9483
9547
  var import_class_validator84 = require("class-validator");
9484
9548
  var import_class_transformer11 = require("class-transformer");
9485
- var NatureOfWorkEnum2 = /* @__PURE__ */ ((NatureOfWorkEnum3) => {
9486
- NatureOfWorkEnum3["FTE"] = "FTE";
9487
- NatureOfWorkEnum3["FREELANCE"] = "FREELANCE";
9488
- NatureOfWorkEnum3["BOTH"] = "BOTH";
9489
- return NatureOfWorkEnum3;
9490
- })(NatureOfWorkEnum2 || {});
9491
- var ModeOfWorkEnum2 = /* @__PURE__ */ ((ModeOfWorkEnum3) => {
9492
- ModeOfWorkEnum3["REMOTE"] = "REMOTE";
9493
- ModeOfWorkEnum3["ONSITE"] = "ONSITE";
9494
- ModeOfWorkEnum3["HYBRID"] = "HYBRID";
9495
- return ModeOfWorkEnum3;
9496
- })(ModeOfWorkEnum2 || {});
9549
+ var NatureOfWorkEnum3 = /* @__PURE__ */ ((NatureOfWorkEnum4) => {
9550
+ NatureOfWorkEnum4["FTE"] = "FTE";
9551
+ NatureOfWorkEnum4["FREELANCE"] = "FREELANCE";
9552
+ NatureOfWorkEnum4["BOTH"] = "BOTH";
9553
+ return NatureOfWorkEnum4;
9554
+ })(NatureOfWorkEnum3 || {});
9555
+ var ModeOfWorkEnum3 = /* @__PURE__ */ ((ModeOfWorkEnum4) => {
9556
+ ModeOfWorkEnum4["REMOTE"] = "REMOTE";
9557
+ ModeOfWorkEnum4["ONSITE"] = "ONSITE";
9558
+ ModeOfWorkEnum4["HYBRID"] = "HYBRID";
9559
+ return ModeOfWorkEnum4;
9560
+ })(ModeOfWorkEnum3 || {});
9497
9561
  var UpdateFreelancerDto = class {
9498
9562
  };
9499
9563
  __decorateClass([
@@ -9652,9 +9716,9 @@ __decorateClass([
9652
9716
  ], UpdateFreelancerDto.prototype, "developer", 2);
9653
9717
  __decorateClass([
9654
9718
  (0, import_class_validator84.IsOptional)(),
9655
- (0, import_class_validator84.IsEnum)(NatureOfWorkEnum2, {
9719
+ (0, import_class_validator84.IsEnum)(NatureOfWorkEnum3, {
9656
9720
  message: `Nature of work must be one of: ${Object.values(
9657
- NatureOfWorkEnum2
9721
+ NatureOfWorkEnum3
9658
9722
  ).join(", ")}`
9659
9723
  })
9660
9724
  ], UpdateFreelancerDto.prototype, "natureOfWork", 2);
@@ -9696,8 +9760,8 @@ __decorateClass([
9696
9760
  ], UpdateFreelancerDto.prototype, "numberOfHours", 2);
9697
9761
  __decorateClass([
9698
9762
  (0, import_class_validator84.IsOptional)(),
9699
- (0, import_class_validator84.IsEnum)(ModeOfWorkEnum2, {
9700
- message: `Mode of work must be one of: ${Object.values(ModeOfWorkEnum2).join(
9763
+ (0, import_class_validator84.IsEnum)(ModeOfWorkEnum3, {
9764
+ message: `Mode of work must be one of: ${Object.values(ModeOfWorkEnum3).join(
9701
9765
  ", "
9702
9766
  )}`
9703
9767
  })