@experts_hub/shared 1.0.205 → 1.0.207
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 +128 -1
- package/dist/index.d.ts +128 -1
- package/dist/index.js +263 -77
- package/dist/index.mjs +298 -88
- package/dist/modules/freelancer-admin/dto/create-freelancer.dto.d.ts +1 -0
- package/dist/modules/freelancer-admin/index.d.ts +2 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -68,6 +68,7 @@ __export(index_exports, {
|
|
|
68
68
|
CreateCmsDto: () => CreateCmsDto,
|
|
69
69
|
CreateCompanyMemberDto: () => CreateCompanyMemberDto,
|
|
70
70
|
CreateCompanyRoleDto: () => CreateCompanyRoleDto,
|
|
71
|
+
CreateFreelancerDto: () => CreateFreelancerDto,
|
|
71
72
|
CreateQuestionDto: () => CreateQuestionDto,
|
|
72
73
|
CreateRatingDto: () => CreateRatingDto,
|
|
73
74
|
CreateSubAdminDto: () => CreateSubAdminDto,
|
|
@@ -189,6 +190,7 @@ __export(index_exports, {
|
|
|
189
190
|
UpdateCompanyMemberDto: () => UpdateCompanyMemberDto,
|
|
190
191
|
UpdateCompanyProfileDto: () => UpdateCompanyProfileDto,
|
|
191
192
|
UpdateCompanyRoleDto: () => UpdateCompanyRoleDto,
|
|
193
|
+
UpdateFreelancerDto: () => UpdateFreelancerDto,
|
|
192
194
|
UpdateFreelancerProfileDto: () => UpdateFreelancerProfileDto,
|
|
193
195
|
UpdateSubAdminAccountStatusDto: () => UpdateSubAdminAccountStatusDto,
|
|
194
196
|
UpdateSubAdminDto: () => UpdateSubAdminDto,
|
|
@@ -1372,7 +1374,7 @@ __decorateClass([
|
|
|
1372
1374
|
(0, import_typeorm5.Column)({ name: "resume_data", type: "jsonb", nullable: true })
|
|
1373
1375
|
], FreelancerProfile.prototype, "resumeData", 2);
|
|
1374
1376
|
__decorateClass([
|
|
1375
|
-
(0, import_typeorm5.Column)({ name: "
|
|
1377
|
+
(0, import_typeorm5.Column)({ name: "processed_resume_data", type: "jsonb", nullable: true })
|
|
1376
1378
|
], FreelancerProfile.prototype, "processedResumeData", 2);
|
|
1377
1379
|
__decorateClass([
|
|
1378
1380
|
(0, import_typeorm5.Column)({ name: "resume_eligibility", type: "varchar", nullable: true })
|
|
@@ -3211,6 +3213,188 @@ var FREELANCER_ADMIN_PATTERNS = {
|
|
|
3211
3213
|
deleteAdminFreelancer: "delete.admin.freelancer"
|
|
3212
3214
|
};
|
|
3213
3215
|
|
|
3216
|
+
// src/modules/freelancer-admin/dto/create-freelancer.dto.ts
|
|
3217
|
+
var import_class_validator46 = require("class-validator");
|
|
3218
|
+
var import_class_transformer6 = require("class-transformer");
|
|
3219
|
+
var NatureOfWorkEnum = /* @__PURE__ */ ((NatureOfWorkEnum3) => {
|
|
3220
|
+
NatureOfWorkEnum3["FULLTIME"] = "FULLTIME";
|
|
3221
|
+
NatureOfWorkEnum3["PARTTIME"] = "PARTTIME";
|
|
3222
|
+
NatureOfWorkEnum3["BOTH"] = "BOTH";
|
|
3223
|
+
return NatureOfWorkEnum3;
|
|
3224
|
+
})(NatureOfWorkEnum || {});
|
|
3225
|
+
var ModeOfWorkEnum = /* @__PURE__ */ ((ModeOfWorkEnum3) => {
|
|
3226
|
+
ModeOfWorkEnum3["REMOTE"] = "REMOTE";
|
|
3227
|
+
ModeOfWorkEnum3["ONSITE"] = "ONSITE";
|
|
3228
|
+
ModeOfWorkEnum3["BOTH"] = "BOTH";
|
|
3229
|
+
return ModeOfWorkEnum3;
|
|
3230
|
+
})(ModeOfWorkEnum || {});
|
|
3231
|
+
var CreateFreelancerDto = class {
|
|
3232
|
+
};
|
|
3233
|
+
__decorateClass([
|
|
3234
|
+
(0, import_class_validator46.IsString)({ message: "Full name must be a string" }),
|
|
3235
|
+
(0, import_class_validator46.MaxLength)(100, { message: "Full name must not exceed 100 characters" })
|
|
3236
|
+
], CreateFreelancerDto.prototype, "fullName", 2);
|
|
3237
|
+
__decorateClass([
|
|
3238
|
+
(0, import_class_validator46.IsEmail)({}, { message: "Invalid email address" })
|
|
3239
|
+
], CreateFreelancerDto.prototype, "email", 2);
|
|
3240
|
+
__decorateClass([
|
|
3241
|
+
(0, import_class_validator46.IsString)({ message: "Mobile code must be a string (e.g., +1)" })
|
|
3242
|
+
], CreateFreelancerDto.prototype, "mobileCode", 2);
|
|
3243
|
+
__decorateClass([
|
|
3244
|
+
(0, import_class_validator46.IsString)({ message: "Mobile must be a string (e.g., 1243253534)" })
|
|
3245
|
+
], CreateFreelancerDto.prototype, "mobile", 2);
|
|
3246
|
+
__decorateClass([
|
|
3247
|
+
(0, import_class_validator46.IsNotEmpty)({ message: "Please enter password." }),
|
|
3248
|
+
(0, import_class_validator46.MinLength)(6),
|
|
3249
|
+
(0, import_class_validator46.MaxLength)(32),
|
|
3250
|
+
(0, import_class_validator46.Matches)(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
3251
|
+
message: "Password must include letters, numbers and symbols."
|
|
3252
|
+
})
|
|
3253
|
+
], CreateFreelancerDto.prototype, "password", 2);
|
|
3254
|
+
__decorateClass([
|
|
3255
|
+
(0, import_class_validator46.IsNotEmpty)({ message: "Please enter confirm password." }),
|
|
3256
|
+
Match("confirmPassword", { message: "Passwords do not match" })
|
|
3257
|
+
], CreateFreelancerDto.prototype, "confirmPassword", 2);
|
|
3258
|
+
__decorateClass([
|
|
3259
|
+
(0, import_class_validator46.IsBoolean)({ message: "Developer flag must be true or false" }),
|
|
3260
|
+
(0, import_class_transformer6.Type)(() => Boolean)
|
|
3261
|
+
], CreateFreelancerDto.prototype, "developer", 2);
|
|
3262
|
+
__decorateClass([
|
|
3263
|
+
(0, import_class_validator46.IsEnum)(NatureOfWorkEnum, {
|
|
3264
|
+
message: `Nature of work must be one of: ${Object.values(
|
|
3265
|
+
NatureOfWorkEnum
|
|
3266
|
+
).join(", ")}`
|
|
3267
|
+
})
|
|
3268
|
+
], CreateFreelancerDto.prototype, "natureOfWork", 2);
|
|
3269
|
+
__decorateClass([
|
|
3270
|
+
(0, import_class_validator46.IsNumber)({}, { message: "Expected hourly compensation must be a number" }),
|
|
3271
|
+
(0, import_class_validator46.Min)(0, { message: "Expected hourly compensation must be 0 or more" }),
|
|
3272
|
+
(0, import_class_transformer6.Type)(() => Number)
|
|
3273
|
+
], CreateFreelancerDto.prototype, "expectedHourlyCompensation", 2);
|
|
3274
|
+
__decorateClass([
|
|
3275
|
+
(0, import_class_validator46.IsEnum)(ModeOfWorkEnum, {
|
|
3276
|
+
message: `Mode of work must be one of: ${Object.values(ModeOfWorkEnum).join(
|
|
3277
|
+
", "
|
|
3278
|
+
)}`
|
|
3279
|
+
})
|
|
3280
|
+
], CreateFreelancerDto.prototype, "modeOfWork", 2);
|
|
3281
|
+
__decorateClass([
|
|
3282
|
+
(0, import_class_validator46.IsNotEmpty)({ message: "Please enter availability to join." })
|
|
3283
|
+
], CreateFreelancerDto.prototype, "availabilityToJoin", 2);
|
|
3284
|
+
__decorateClass([
|
|
3285
|
+
(0, import_class_validator46.IsBoolean)({ message: "isImmediateJoiner must be true or false" }),
|
|
3286
|
+
(0, import_class_transformer6.Type)(() => Boolean)
|
|
3287
|
+
], CreateFreelancerDto.prototype, "isImmediateJoiner", 2);
|
|
3288
|
+
__decorateClass([
|
|
3289
|
+
(0, import_class_validator46.IsOptional)(),
|
|
3290
|
+
(0, import_class_validator46.IsUrl)({}, { message: "LinkedIn profile link must be a valid URL" })
|
|
3291
|
+
], CreateFreelancerDto.prototype, "linkedinProfileLink", 2);
|
|
3292
|
+
__decorateClass([
|
|
3293
|
+
(0, import_class_validator46.IsOptional)(),
|
|
3294
|
+
(0, import_class_validator46.IsString)({ message: "Kaggle profile link must be a string" })
|
|
3295
|
+
], CreateFreelancerDto.prototype, "kaggleProfileLink", 2);
|
|
3296
|
+
__decorateClass([
|
|
3297
|
+
(0, import_class_validator46.IsOptional)(),
|
|
3298
|
+
(0, import_class_validator46.IsUrl)({}, { message: "GitHub profile link must be a valid URL" })
|
|
3299
|
+
], CreateFreelancerDto.prototype, "githubProfileLink", 2);
|
|
3300
|
+
__decorateClass([
|
|
3301
|
+
(0, import_class_validator46.IsOptional)(),
|
|
3302
|
+
(0, import_class_validator46.IsUrl)({}, { message: "StackOverflow profile link must be a valid URL" })
|
|
3303
|
+
], CreateFreelancerDto.prototype, "stackOverflowProfileLink", 2);
|
|
3304
|
+
__decorateClass([
|
|
3305
|
+
(0, import_class_validator46.IsOptional)(),
|
|
3306
|
+
(0, import_class_validator46.IsUrl)({}, { message: "Portfolio link must be a valid URL" })
|
|
3307
|
+
], CreateFreelancerDto.prototype, "portfolioLink", 2);
|
|
3308
|
+
|
|
3309
|
+
// src/modules/freelancer-admin/dto/update-freelancer.dto.ts
|
|
3310
|
+
var import_class_validator47 = require("class-validator");
|
|
3311
|
+
var import_class_transformer7 = require("class-transformer");
|
|
3312
|
+
var NatureOfWorkEnum2 = /* @__PURE__ */ ((NatureOfWorkEnum3) => {
|
|
3313
|
+
NatureOfWorkEnum3["FULLTIME"] = "FULLTIME";
|
|
3314
|
+
NatureOfWorkEnum3["PARTTIME"] = "PARTTIME";
|
|
3315
|
+
NatureOfWorkEnum3["BOTH"] = "BOTH";
|
|
3316
|
+
return NatureOfWorkEnum3;
|
|
3317
|
+
})(NatureOfWorkEnum2 || {});
|
|
3318
|
+
var ModeOfWorkEnum2 = /* @__PURE__ */ ((ModeOfWorkEnum3) => {
|
|
3319
|
+
ModeOfWorkEnum3["REMOTE"] = "REMOTE";
|
|
3320
|
+
ModeOfWorkEnum3["ONSITE"] = "ONSITE";
|
|
3321
|
+
ModeOfWorkEnum3["BOTH"] = "BOTH";
|
|
3322
|
+
return ModeOfWorkEnum3;
|
|
3323
|
+
})(ModeOfWorkEnum2 || {});
|
|
3324
|
+
var UpdateFreelancerDto = class {
|
|
3325
|
+
};
|
|
3326
|
+
__decorateClass([
|
|
3327
|
+
(0, import_class_validator47.IsString)({ message: "Full name must be a string" }),
|
|
3328
|
+
(0, import_class_validator47.MaxLength)(100, { message: "Full name must not exceed 100 characters" })
|
|
3329
|
+
], UpdateFreelancerDto.prototype, "fullName", 2);
|
|
3330
|
+
__decorateClass([
|
|
3331
|
+
(0, import_class_validator47.IsEmail)({}, { message: "Invalid email address" })
|
|
3332
|
+
], UpdateFreelancerDto.prototype, "email", 2);
|
|
3333
|
+
__decorateClass([
|
|
3334
|
+
(0, import_class_validator47.IsString)({ message: "Mobile code must be a string (e.g., +1)" })
|
|
3335
|
+
], UpdateFreelancerDto.prototype, "mobileCode", 2);
|
|
3336
|
+
__decorateClass([
|
|
3337
|
+
(0, import_class_validator47.IsString)({ message: "Mobile must be a string (e.g., 1243253534)" })
|
|
3338
|
+
], UpdateFreelancerDto.prototype, "mobile", 2);
|
|
3339
|
+
__decorateClass([
|
|
3340
|
+
(0, import_class_validator47.IsOptional)(),
|
|
3341
|
+
(0, import_class_validator47.MinLength)(6, { message: "Password must be at least 6 characters." }),
|
|
3342
|
+
(0, import_class_validator47.MaxLength)(32, { message: "Password must not exceed 32 characters." }),
|
|
3343
|
+
(0, import_class_validator47.Matches)(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
3344
|
+
message: "Password must include letters, numbers and symbols."
|
|
3345
|
+
})
|
|
3346
|
+
], UpdateFreelancerDto.prototype, "password", 2);
|
|
3347
|
+
__decorateClass([
|
|
3348
|
+
(0, import_class_validator47.IsBoolean)({ message: "Developer flag must be true or false" }),
|
|
3349
|
+
(0, import_class_transformer7.Type)(() => Boolean)
|
|
3350
|
+
], UpdateFreelancerDto.prototype, "developer", 2);
|
|
3351
|
+
__decorateClass([
|
|
3352
|
+
(0, import_class_validator47.IsEnum)(NatureOfWorkEnum2, {
|
|
3353
|
+
message: `Nature of work must be one of: ${Object.values(
|
|
3354
|
+
NatureOfWorkEnum2
|
|
3355
|
+
).join(", ")}`
|
|
3356
|
+
})
|
|
3357
|
+
], UpdateFreelancerDto.prototype, "natureOfWork", 2);
|
|
3358
|
+
__decorateClass([
|
|
3359
|
+
(0, import_class_validator47.IsNumber)({}, { message: "Expected hourly compensation must be a number" }),
|
|
3360
|
+
(0, import_class_validator47.Min)(0, { message: "Expected hourly compensation must be 0 or more" }),
|
|
3361
|
+
(0, import_class_transformer7.Type)(() => Number)
|
|
3362
|
+
], UpdateFreelancerDto.prototype, "expectedHourlyCompensation", 2);
|
|
3363
|
+
__decorateClass([
|
|
3364
|
+
(0, import_class_validator47.IsEnum)(ModeOfWorkEnum2, {
|
|
3365
|
+
message: `Mode of work must be one of: ${Object.values(ModeOfWorkEnum2).join(
|
|
3366
|
+
", "
|
|
3367
|
+
)}`
|
|
3368
|
+
})
|
|
3369
|
+
], UpdateFreelancerDto.prototype, "modeOfWork", 2);
|
|
3370
|
+
__decorateClass([
|
|
3371
|
+
(0, import_class_validator47.IsNotEmpty)({ message: "Please enter availability to join." })
|
|
3372
|
+
], UpdateFreelancerDto.prototype, "availabilityToJoin", 2);
|
|
3373
|
+
__decorateClass([
|
|
3374
|
+
(0, import_class_validator47.IsBoolean)({ message: "isImmediateJoiner must be true or false" }),
|
|
3375
|
+
(0, import_class_transformer7.Type)(() => Boolean)
|
|
3376
|
+
], UpdateFreelancerDto.prototype, "isImmediateJoiner", 2);
|
|
3377
|
+
__decorateClass([
|
|
3378
|
+
(0, import_class_validator47.IsOptional)(),
|
|
3379
|
+
(0, import_class_validator47.IsUrl)({}, { message: "LinkedIn profile link must be a valid URL" })
|
|
3380
|
+
], UpdateFreelancerDto.prototype, "linkedinProfileLink", 2);
|
|
3381
|
+
__decorateClass([
|
|
3382
|
+
(0, import_class_validator47.IsOptional)(),
|
|
3383
|
+
(0, import_class_validator47.IsString)({ message: "Kaggle profile link must be a string" })
|
|
3384
|
+
], UpdateFreelancerDto.prototype, "kaggleProfileLink", 2);
|
|
3385
|
+
__decorateClass([
|
|
3386
|
+
(0, import_class_validator47.IsOptional)(),
|
|
3387
|
+
(0, import_class_validator47.IsUrl)({}, { message: "GitHub profile link must be a valid URL" })
|
|
3388
|
+
], UpdateFreelancerDto.prototype, "githubProfileLink", 2);
|
|
3389
|
+
__decorateClass([
|
|
3390
|
+
(0, import_class_validator47.IsOptional)(),
|
|
3391
|
+
(0, import_class_validator47.IsUrl)({}, { message: "StackOverflow profile link must be a valid URL" })
|
|
3392
|
+
], UpdateFreelancerDto.prototype, "stackOverflowProfileLink", 2);
|
|
3393
|
+
__decorateClass([
|
|
3394
|
+
(0, import_class_validator47.IsOptional)(),
|
|
3395
|
+
(0, import_class_validator47.IsUrl)({}, { message: "Portfolio link must be a valid URL" })
|
|
3396
|
+
], UpdateFreelancerDto.prototype, "portfolioLink", 2);
|
|
3397
|
+
|
|
3214
3398
|
// src/modules/client-admin/pattern/pattern.ts
|
|
3215
3399
|
var CLIENT_ADMIN_PATTERNS = {
|
|
3216
3400
|
fetchAdminClients: "fetch.admin.clients",
|
|
@@ -3223,7 +3407,7 @@ var CLIENT_ADMIN_PATTERNS = {
|
|
|
3223
3407
|
};
|
|
3224
3408
|
|
|
3225
3409
|
// src/modules/client-admin/dto/create-client.dto.ts
|
|
3226
|
-
var
|
|
3410
|
+
var import_class_validator48 = require("class-validator");
|
|
3227
3411
|
var CreateClientHiringModeEnum = /* @__PURE__ */ ((CreateClientHiringModeEnum2) => {
|
|
3228
3412
|
CreateClientHiringModeEnum2["REMOTE"] = "REMOTE";
|
|
3229
3413
|
CreateClientHiringModeEnum2["ONSITE"] = "ONSITE";
|
|
@@ -3239,73 +3423,73 @@ var CreateClientHiringTypeEnum = /* @__PURE__ */ ((CreateClientHiringTypeEnum2)
|
|
|
3239
3423
|
var CreateClientDto = class {
|
|
3240
3424
|
};
|
|
3241
3425
|
__decorateClass([
|
|
3242
|
-
(0,
|
|
3243
|
-
(0,
|
|
3426
|
+
(0, import_class_validator48.IsNotEmpty)({ message: "Please enter first name." }),
|
|
3427
|
+
(0, import_class_validator48.IsString)()
|
|
3244
3428
|
], CreateClientDto.prototype, "firstName", 2);
|
|
3245
3429
|
__decorateClass([
|
|
3246
|
-
(0,
|
|
3247
|
-
(0,
|
|
3430
|
+
(0, import_class_validator48.IsNotEmpty)({ message: "Please enter last name." }),
|
|
3431
|
+
(0, import_class_validator48.IsString)()
|
|
3248
3432
|
], CreateClientDto.prototype, "lastName", 2);
|
|
3249
3433
|
__decorateClass([
|
|
3250
|
-
(0,
|
|
3251
|
-
(0,
|
|
3434
|
+
(0, import_class_validator48.IsNotEmpty)({ message: "Please enter email." }),
|
|
3435
|
+
(0, import_class_validator48.IsEmail)()
|
|
3252
3436
|
], CreateClientDto.prototype, "email", 2);
|
|
3253
3437
|
__decorateClass([
|
|
3254
|
-
(0,
|
|
3255
|
-
(0,
|
|
3256
|
-
(0,
|
|
3257
|
-
(0,
|
|
3438
|
+
(0, import_class_validator48.IsNotEmpty)({ message: "Please enter password." }),
|
|
3439
|
+
(0, import_class_validator48.MinLength)(6),
|
|
3440
|
+
(0, import_class_validator48.MaxLength)(32),
|
|
3441
|
+
(0, import_class_validator48.Matches)(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
3258
3442
|
message: "Password must include letters, numbers and symbols."
|
|
3259
3443
|
})
|
|
3260
3444
|
], CreateClientDto.prototype, "password", 2);
|
|
3261
3445
|
__decorateClass([
|
|
3262
|
-
(0,
|
|
3446
|
+
(0, import_class_validator48.IsNotEmpty)({ message: "Please enter confirm password." }),
|
|
3263
3447
|
Match("confirmPassword", { message: "Passwords do not match" })
|
|
3264
3448
|
], CreateClientDto.prototype, "confirmPassword", 2);
|
|
3265
3449
|
__decorateClass([
|
|
3266
|
-
(0,
|
|
3267
|
-
(0,
|
|
3450
|
+
(0, import_class_validator48.IsNotEmpty)({ message: "Please enter company name." }),
|
|
3451
|
+
(0, import_class_validator48.IsString)()
|
|
3268
3452
|
], CreateClientDto.prototype, "companyName", 2);
|
|
3269
3453
|
__decorateClass([
|
|
3270
|
-
(0,
|
|
3271
|
-
(0,
|
|
3454
|
+
(0, import_class_validator48.IsArray)({ message: "Skills should be an array." }),
|
|
3455
|
+
(0, import_class_validator48.IsNotEmpty)({ message: "Please enter skills." })
|
|
3272
3456
|
], CreateClientDto.prototype, "skills", 2);
|
|
3273
3457
|
__decorateClass([
|
|
3274
|
-
(0,
|
|
3275
|
-
(0,
|
|
3458
|
+
(0, import_class_validator48.IsNotEmpty)({ message: "Please specify required freelancer count." }),
|
|
3459
|
+
(0, import_class_validator48.IsString)()
|
|
3276
3460
|
], CreateClientDto.prototype, "requiredFreelancer", 2);
|
|
3277
3461
|
__decorateClass([
|
|
3278
|
-
(0,
|
|
3279
|
-
(0,
|
|
3462
|
+
(0, import_class_validator48.IsNotEmpty)({ message: "Please specify the kind of hiring." }),
|
|
3463
|
+
(0, import_class_validator48.IsEnum)(CreateClientHiringTypeEnum)
|
|
3280
3464
|
], CreateClientDto.prototype, "kindOfHiring", 2);
|
|
3281
3465
|
__decorateClass([
|
|
3282
|
-
(0,
|
|
3283
|
-
(0,
|
|
3466
|
+
(0, import_class_validator48.IsNotEmpty)({ message: "Please specify the mode of hire." }),
|
|
3467
|
+
(0, import_class_validator48.IsEnum)(CreateClientHiringModeEnum)
|
|
3284
3468
|
], CreateClientDto.prototype, "modeOfHire", 2);
|
|
3285
3469
|
__decorateClass([
|
|
3286
|
-
(0,
|
|
3287
|
-
(0,
|
|
3470
|
+
(0, import_class_validator48.IsNotEmpty)({ message: "Please let us know how you found us." }),
|
|
3471
|
+
(0, import_class_validator48.IsString)()
|
|
3288
3472
|
], CreateClientDto.prototype, "foundUsOn", 2);
|
|
3289
3473
|
__decorateClass([
|
|
3290
|
-
(0,
|
|
3291
|
-
(0,
|
|
3474
|
+
(0, import_class_validator48.IsOptional)(),
|
|
3475
|
+
(0, import_class_validator48.IsString)()
|
|
3292
3476
|
], CreateClientDto.prototype, "OTHER", 2);
|
|
3293
3477
|
__decorateClass([
|
|
3294
|
-
(0,
|
|
3295
|
-
(0,
|
|
3478
|
+
(0, import_class_validator48.IsOptional)(),
|
|
3479
|
+
(0, import_class_validator48.IsString)()
|
|
3296
3480
|
], CreateClientDto.prototype, "foundUsOnDetail", 2);
|
|
3297
3481
|
|
|
3298
3482
|
// src/modules/client-admin/dto/update-client-status.dto.ts
|
|
3299
|
-
var
|
|
3483
|
+
var import_class_validator49 = require("class-validator");
|
|
3300
3484
|
var UpdateClientAccountStatusDto = class {
|
|
3301
3485
|
};
|
|
3302
3486
|
__decorateClass([
|
|
3303
|
-
(0,
|
|
3304
|
-
(0,
|
|
3487
|
+
(0, import_class_validator49.IsNotEmpty)({ message: "Please enter account status." }),
|
|
3488
|
+
(0, import_class_validator49.IsString)()
|
|
3305
3489
|
], UpdateClientAccountStatusDto.prototype, "accountStatus", 2);
|
|
3306
3490
|
|
|
3307
3491
|
// src/modules/client-admin/dto/update-client.dto.ts
|
|
3308
|
-
var
|
|
3492
|
+
var import_class_validator50 = require("class-validator");
|
|
3309
3493
|
var UpdateClientHiringModeEnum = /* @__PURE__ */ ((UpdateClientHiringModeEnum2) => {
|
|
3310
3494
|
UpdateClientHiringModeEnum2["REMOTE"] = "REMOTE";
|
|
3311
3495
|
UpdateClientHiringModeEnum2["ONSITE"] = "ONSITE";
|
|
@@ -3321,56 +3505,56 @@ var UpdateClientHiringTypeEnum = /* @__PURE__ */ ((UpdateClientHiringTypeEnum2)
|
|
|
3321
3505
|
var UpdateClientDto = class {
|
|
3322
3506
|
};
|
|
3323
3507
|
__decorateClass([
|
|
3324
|
-
(0,
|
|
3325
|
-
(0,
|
|
3508
|
+
(0, import_class_validator50.IsNotEmpty)({ message: "Please enter first name." }),
|
|
3509
|
+
(0, import_class_validator50.IsString)()
|
|
3326
3510
|
], UpdateClientDto.prototype, "firstName", 2);
|
|
3327
3511
|
__decorateClass([
|
|
3328
|
-
(0,
|
|
3329
|
-
(0,
|
|
3512
|
+
(0, import_class_validator50.IsNotEmpty)({ message: "Please enter last name." }),
|
|
3513
|
+
(0, import_class_validator50.IsString)()
|
|
3330
3514
|
], UpdateClientDto.prototype, "lastName", 2);
|
|
3331
3515
|
__decorateClass([
|
|
3332
|
-
(0,
|
|
3333
|
-
(0,
|
|
3516
|
+
(0, import_class_validator50.IsNotEmpty)({ message: "Please enter email." }),
|
|
3517
|
+
(0, import_class_validator50.IsEmail)()
|
|
3334
3518
|
], UpdateClientDto.prototype, "email", 2);
|
|
3335
3519
|
__decorateClass([
|
|
3336
|
-
(0,
|
|
3337
|
-
(0,
|
|
3338
|
-
(0,
|
|
3339
|
-
(0,
|
|
3520
|
+
(0, import_class_validator50.IsOptional)(),
|
|
3521
|
+
(0, import_class_validator50.MinLength)(6, { message: "Password must be at least 6 characters." }),
|
|
3522
|
+
(0, import_class_validator50.MaxLength)(32, { message: "Password must not exceed 32 characters." }),
|
|
3523
|
+
(0, import_class_validator50.Matches)(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
3340
3524
|
message: "Password must include letters, numbers and symbols."
|
|
3341
3525
|
})
|
|
3342
3526
|
], UpdateClientDto.prototype, "password", 2);
|
|
3343
3527
|
__decorateClass([
|
|
3344
|
-
(0,
|
|
3345
|
-
(0,
|
|
3528
|
+
(0, import_class_validator50.IsNotEmpty)({ message: "Please enter company name." }),
|
|
3529
|
+
(0, import_class_validator50.IsString)()
|
|
3346
3530
|
], UpdateClientDto.prototype, "companyName", 2);
|
|
3347
3531
|
__decorateClass([
|
|
3348
|
-
(0,
|
|
3349
|
-
(0,
|
|
3532
|
+
(0, import_class_validator50.IsArray)({ message: "Skills should be an array." }),
|
|
3533
|
+
(0, import_class_validator50.IsNotEmpty)({ message: "Please enter skills." })
|
|
3350
3534
|
], UpdateClientDto.prototype, "skills", 2);
|
|
3351
3535
|
__decorateClass([
|
|
3352
|
-
(0,
|
|
3353
|
-
(0,
|
|
3536
|
+
(0, import_class_validator50.IsNotEmpty)({ message: "Please specify required freelancer count." }),
|
|
3537
|
+
(0, import_class_validator50.IsString)()
|
|
3354
3538
|
], UpdateClientDto.prototype, "requiredFreelancer", 2);
|
|
3355
3539
|
__decorateClass([
|
|
3356
|
-
(0,
|
|
3357
|
-
(0,
|
|
3540
|
+
(0, import_class_validator50.IsNotEmpty)({ message: "Please specify the kind of hiring." }),
|
|
3541
|
+
(0, import_class_validator50.IsEnum)(UpdateClientHiringTypeEnum)
|
|
3358
3542
|
], UpdateClientDto.prototype, "kindOfHiring", 2);
|
|
3359
3543
|
__decorateClass([
|
|
3360
|
-
(0,
|
|
3361
|
-
(0,
|
|
3544
|
+
(0, import_class_validator50.IsNotEmpty)({ message: "Please specify the mode of hire." }),
|
|
3545
|
+
(0, import_class_validator50.IsEnum)(UpdateClientHiringModeEnum)
|
|
3362
3546
|
], UpdateClientDto.prototype, "modeOfHire", 2);
|
|
3363
3547
|
__decorateClass([
|
|
3364
|
-
(0,
|
|
3365
|
-
(0,
|
|
3548
|
+
(0, import_class_validator50.IsNotEmpty)({ message: "Please let us know how you found us." }),
|
|
3549
|
+
(0, import_class_validator50.IsString)()
|
|
3366
3550
|
], UpdateClientDto.prototype, "foundUsOn", 2);
|
|
3367
3551
|
__decorateClass([
|
|
3368
|
-
(0,
|
|
3369
|
-
(0,
|
|
3552
|
+
(0, import_class_validator50.IsOptional)(),
|
|
3553
|
+
(0, import_class_validator50.IsString)()
|
|
3370
3554
|
], UpdateClientDto.prototype, "OTHER", 2);
|
|
3371
3555
|
__decorateClass([
|
|
3372
|
-
(0,
|
|
3373
|
-
(0,
|
|
3556
|
+
(0, import_class_validator50.IsOptional)(),
|
|
3557
|
+
(0, import_class_validator50.IsString)()
|
|
3374
3558
|
], UpdateClientDto.prototype, "foundUsOnDetail", 2);
|
|
3375
3559
|
|
|
3376
3560
|
// src/modules/user/freelancer-declaration/pattern/pattern.ts
|
|
@@ -3380,7 +3564,7 @@ var FREELANCER_DECLARATION_PATTERN = {
|
|
|
3380
3564
|
};
|
|
3381
3565
|
|
|
3382
3566
|
// src/modules/user/freelancer-declaration/dto/freelancer-declaration.dto.ts
|
|
3383
|
-
var
|
|
3567
|
+
var import_class_validator51 = require("class-validator");
|
|
3384
3568
|
var DocumentTypeEnum = /* @__PURE__ */ ((DocumentTypeEnum2) => {
|
|
3385
3569
|
DocumentTypeEnum2["AADHAAR"] = "AADHAAR_CARD";
|
|
3386
3570
|
DocumentTypeEnum2["PASSPORT"] = "PASSPORT";
|
|
@@ -3391,16 +3575,16 @@ var DocumentTypeEnum = /* @__PURE__ */ ((DocumentTypeEnum2) => {
|
|
|
3391
3575
|
var FreelancerDeclarationDto = class {
|
|
3392
3576
|
};
|
|
3393
3577
|
__decorateClass([
|
|
3394
|
-
(0,
|
|
3395
|
-
(0,
|
|
3578
|
+
(0, import_class_validator51.IsOptional)(),
|
|
3579
|
+
(0, import_class_validator51.IsString)({ message: "UUID must be a string" })
|
|
3396
3580
|
], FreelancerDeclarationDto.prototype, "uuid", 2);
|
|
3397
3581
|
__decorateClass([
|
|
3398
|
-
(0,
|
|
3582
|
+
(0, import_class_validator51.IsEnum)(DocumentTypeEnum, { message: "Document type must be one of AADHAAR_CARD, PASSPORT, DRIVING_LICENSE, PAN_CARD" })
|
|
3399
3583
|
], FreelancerDeclarationDto.prototype, "documentType", 2);
|
|
3400
3584
|
__decorateClass([
|
|
3401
|
-
(0,
|
|
3402
|
-
(0,
|
|
3403
|
-
(0,
|
|
3585
|
+
(0, import_class_validator51.IsNotEmpty)({ message: "Please accept the declaration " }),
|
|
3586
|
+
(0, import_class_validator51.IsString)(),
|
|
3587
|
+
(0, import_class_validator51.IsIn)([
|
|
3404
3588
|
"true"
|
|
3405
3589
|
])
|
|
3406
3590
|
], FreelancerDeclarationDto.prototype, "declarationAccepted", 2);
|
|
@@ -3415,36 +3599,36 @@ var CMS_PATTERNS = {
|
|
|
3415
3599
|
};
|
|
3416
3600
|
|
|
3417
3601
|
// src/modules/cms/dto/create-cms.dto.ts
|
|
3418
|
-
var
|
|
3602
|
+
var import_class_validator52 = require("class-validator");
|
|
3419
3603
|
var CreateCmsDto = class {
|
|
3420
3604
|
};
|
|
3421
3605
|
__decorateClass([
|
|
3422
|
-
(0,
|
|
3606
|
+
(0, import_class_validator52.IsNotEmpty)({ message: "Please enter name." })
|
|
3423
3607
|
], CreateCmsDto.prototype, "title", 2);
|
|
3424
3608
|
__decorateClass([
|
|
3425
|
-
(0,
|
|
3609
|
+
(0, import_class_validator52.IsOptional)()
|
|
3426
3610
|
], CreateCmsDto.prototype, "content", 2);
|
|
3427
3611
|
__decorateClass([
|
|
3428
|
-
(0,
|
|
3429
|
-
(0,
|
|
3612
|
+
(0, import_class_validator52.IsOptional)(),
|
|
3613
|
+
(0, import_class_validator52.IsBoolean)({ message: "Is active must be a boolean value" })
|
|
3430
3614
|
], CreateCmsDto.prototype, "isActive", 2);
|
|
3431
3615
|
|
|
3432
3616
|
// src/modules/cms/dto/update-cms.dto.ts
|
|
3433
|
-
var
|
|
3617
|
+
var import_class_validator53 = require("class-validator");
|
|
3434
3618
|
var UpdateCmsDto = class {
|
|
3435
3619
|
};
|
|
3436
3620
|
__decorateClass([
|
|
3437
|
-
(0,
|
|
3621
|
+
(0, import_class_validator53.IsOptional)()
|
|
3438
3622
|
], UpdateCmsDto.prototype, "uuid", 2);
|
|
3439
3623
|
__decorateClass([
|
|
3440
|
-
(0,
|
|
3624
|
+
(0, import_class_validator53.IsNotEmpty)({ message: "Please enter name." })
|
|
3441
3625
|
], UpdateCmsDto.prototype, "title", 2);
|
|
3442
3626
|
__decorateClass([
|
|
3443
|
-
(0,
|
|
3627
|
+
(0, import_class_validator53.IsOptional)()
|
|
3444
3628
|
], UpdateCmsDto.prototype, "content", 2);
|
|
3445
3629
|
__decorateClass([
|
|
3446
|
-
(0,
|
|
3447
|
-
(0,
|
|
3630
|
+
(0, import_class_validator53.IsOptional)(),
|
|
3631
|
+
(0, import_class_validator53.IsBoolean)({ message: "Is active must be a boolean value" })
|
|
3448
3632
|
], UpdateCmsDto.prototype, "isActive", 2);
|
|
3449
3633
|
|
|
3450
3634
|
// src/modules/geographic/pattern/pattern.ts
|
|
@@ -3996,6 +4180,7 @@ Country = __decorateClass([
|
|
|
3996
4180
|
CreateCmsDto,
|
|
3997
4181
|
CreateCompanyMemberDto,
|
|
3998
4182
|
CreateCompanyRoleDto,
|
|
4183
|
+
CreateFreelancerDto,
|
|
3999
4184
|
CreateQuestionDto,
|
|
4000
4185
|
CreateRatingDto,
|
|
4001
4186
|
CreateSubAdminDto,
|
|
@@ -4117,6 +4302,7 @@ Country = __decorateClass([
|
|
|
4117
4302
|
UpdateCompanyMemberDto,
|
|
4118
4303
|
UpdateCompanyProfileDto,
|
|
4119
4304
|
UpdateCompanyRoleDto,
|
|
4305
|
+
UpdateFreelancerDto,
|
|
4120
4306
|
UpdateFreelancerProfileDto,
|
|
4121
4307
|
UpdateSubAdminAccountStatusDto,
|
|
4122
4308
|
UpdateSubAdminDto,
|