@experts_hub/shared 1.0.711 → 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 +21 -5
- package/dist/index.d.ts +21 -5
- package/dist/index.js +112 -47
- package/dist/index.mjs +224 -158
- package/dist/modules/onboarding/dto/freelancer-profile-question.dto.d.ts +22 -5
- package/package.json +1 -1
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
|
-
|
|
271
|
-
|
|
272
|
-
numberOfHours
|
|
273
|
-
|
|
274
|
-
|
|
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
|
-
|
|
271
|
-
|
|
272
|
-
numberOfHours
|
|
273
|
-
|
|
274
|
-
|
|
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
|
|
1211
|
-
(0, import_class_validator31.
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
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
|
|
1222
|
-
|
|
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.
|
|
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.
|
|
1231
|
-
], FreelancerProfileQuestionDto.prototype, "
|
|
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");
|
|
@@ -9154,18 +9219,18 @@ var ADMIN_FREELANCER_PATTERN = {
|
|
|
9154
9219
|
// src/modules/freelancer-admin/dto/create-freelancer.dto.ts
|
|
9155
9220
|
var import_class_validator83 = require("class-validator");
|
|
9156
9221
|
var import_class_transformer10 = require("class-transformer");
|
|
9157
|
-
var
|
|
9158
|
-
|
|
9159
|
-
|
|
9160
|
-
|
|
9161
|
-
return
|
|
9162
|
-
})(
|
|
9163
|
-
var
|
|
9164
|
-
|
|
9165
|
-
|
|
9166
|
-
|
|
9167
|
-
return
|
|
9168
|
-
})(
|
|
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 || {});
|
|
9169
9234
|
var CreateFreelancerDto = class {
|
|
9170
9235
|
};
|
|
9171
9236
|
__decorateClass([
|
|
@@ -9335,9 +9400,9 @@ __decorateClass([
|
|
|
9335
9400
|
], CreateFreelancerDto.prototype, "developer", 2);
|
|
9336
9401
|
__decorateClass([
|
|
9337
9402
|
(0, import_class_validator83.IsOptional)(),
|
|
9338
|
-
(0, import_class_validator83.IsEnum)(
|
|
9403
|
+
(0, import_class_validator83.IsEnum)(NatureOfWorkEnum2, {
|
|
9339
9404
|
message: `Nature of work must be one of: ${Object.values(
|
|
9340
|
-
|
|
9405
|
+
NatureOfWorkEnum2
|
|
9341
9406
|
).join(", ")}`
|
|
9342
9407
|
})
|
|
9343
9408
|
], CreateFreelancerDto.prototype, "natureOfWork", 2);
|
|
@@ -9379,8 +9444,8 @@ __decorateClass([
|
|
|
9379
9444
|
], CreateFreelancerDto.prototype, "numberOfHours", 2);
|
|
9380
9445
|
__decorateClass([
|
|
9381
9446
|
(0, import_class_validator83.IsOptional)(),
|
|
9382
|
-
(0, import_class_validator83.IsEnum)(
|
|
9383
|
-
message: `Mode of work must be one of: ${Object.values(
|
|
9447
|
+
(0, import_class_validator83.IsEnum)(ModeOfWorkEnum2, {
|
|
9448
|
+
message: `Mode of work must be one of: ${Object.values(ModeOfWorkEnum2).join(
|
|
9384
9449
|
", "
|
|
9385
9450
|
)}`
|
|
9386
9451
|
})
|
|
@@ -9481,18 +9546,18 @@ __decorateClass([
|
|
|
9481
9546
|
// src/modules/freelancer-admin/dto/update-freelancer.dto.ts
|
|
9482
9547
|
var import_class_validator84 = require("class-validator");
|
|
9483
9548
|
var import_class_transformer11 = require("class-transformer");
|
|
9484
|
-
var
|
|
9485
|
-
|
|
9486
|
-
|
|
9487
|
-
|
|
9488
|
-
return
|
|
9489
|
-
})(
|
|
9490
|
-
var
|
|
9491
|
-
|
|
9492
|
-
|
|
9493
|
-
|
|
9494
|
-
return
|
|
9495
|
-
})(
|
|
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 || {});
|
|
9496
9561
|
var UpdateFreelancerDto = class {
|
|
9497
9562
|
};
|
|
9498
9563
|
__decorateClass([
|
|
@@ -9651,9 +9716,9 @@ __decorateClass([
|
|
|
9651
9716
|
], UpdateFreelancerDto.prototype, "developer", 2);
|
|
9652
9717
|
__decorateClass([
|
|
9653
9718
|
(0, import_class_validator84.IsOptional)(),
|
|
9654
|
-
(0, import_class_validator84.IsEnum)(
|
|
9719
|
+
(0, import_class_validator84.IsEnum)(NatureOfWorkEnum3, {
|
|
9655
9720
|
message: `Nature of work must be one of: ${Object.values(
|
|
9656
|
-
|
|
9721
|
+
NatureOfWorkEnum3
|
|
9657
9722
|
).join(", ")}`
|
|
9658
9723
|
})
|
|
9659
9724
|
], UpdateFreelancerDto.prototype, "natureOfWork", 2);
|
|
@@ -9695,8 +9760,8 @@ __decorateClass([
|
|
|
9695
9760
|
], UpdateFreelancerDto.prototype, "numberOfHours", 2);
|
|
9696
9761
|
__decorateClass([
|
|
9697
9762
|
(0, import_class_validator84.IsOptional)(),
|
|
9698
|
-
(0, import_class_validator84.IsEnum)(
|
|
9699
|
-
message: `Mode of work must be one of: ${Object.values(
|
|
9763
|
+
(0, import_class_validator84.IsEnum)(ModeOfWorkEnum3, {
|
|
9764
|
+
message: `Mode of work must be one of: ${Object.values(ModeOfWorkEnum3).join(
|
|
9700
9765
|
", "
|
|
9701
9766
|
)}`
|
|
9702
9767
|
})
|