@experts_hub/shared 1.0.634 → 1.0.636
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/entities/freelancer-assessment.entity.d.ts +1 -0
- package/dist/entities/global-setting.entity.d.ts +5 -0
- package/dist/entities/index.d.ts +1 -0
- package/dist/index.d.mts +22 -1
- package/dist/index.d.ts +22 -1
- package/dist/index.js +1001 -940
- package/dist/index.mjs +536 -466
- package/dist/modules/global-setting/dto/add-global-setting.dto.d.ts +4 -0
- package/dist/modules/global-setting/dto/index.d.ts +2 -0
- package/dist/modules/global-setting/dto/remove-global-setting.dto.d.ts +4 -0
- package/dist/modules/global-setting/index.d.ts +2 -0
- package/dist/modules/global-setting/pattern/pattern.d.ts +4 -0
- package/dist/modules/index.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -46,6 +46,7 @@ __export(index_exports, {
|
|
|
46
46
|
AUTHENTICATION_PATTERN: () => AUTHENTICATION_PATTERN,
|
|
47
47
|
AccountStatus: () => AccountStatus,
|
|
48
48
|
AccountType: () => AccountType3,
|
|
49
|
+
AddGlobalSettingDto: () => AddGlobalSettingDto,
|
|
49
50
|
AddTopupEscrowAmountDto: () => AddTopupEscrowAmountDto,
|
|
50
51
|
AdminCreateJobInformationDto: () => AdminCreateJobInformationDto,
|
|
51
52
|
AdminExportClientV2OptimisedDto: () => AdminExportClientV2OptimisedDto,
|
|
@@ -226,7 +227,9 @@ __export(index_exports, {
|
|
|
226
227
|
FreelancerUploadResumeDto: () => FreelancerUploadResumeDto,
|
|
227
228
|
FreelancerWorkShowcaseDto: () => FreelancerWorkShowcaseDto,
|
|
228
229
|
FromUsOn: () => FromUsOn,
|
|
230
|
+
GLOBAL_SETTING_PATTERN: () => GLOBAL_SETTING_PATTERN,
|
|
229
231
|
GenerateContractDto: () => GenerateContractDto,
|
|
232
|
+
GlobalSetting: () => GlobalSetting,
|
|
230
233
|
HIRING_PATTERN: () => HIRING_PATTERN,
|
|
231
234
|
HiredFreelancerNatureOfWorkEnum: () => HiredFreelancerNatureOfWorkEnum,
|
|
232
235
|
Hiring: () => Hiring,
|
|
@@ -323,6 +326,7 @@ __export(index_exports, {
|
|
|
323
326
|
RejectAIInterviewRescheduleRequestDto: () => RejectAIInterviewRescheduleRequestDto,
|
|
324
327
|
RejectContractDto: () => RejectContractDto,
|
|
325
328
|
RejectF2FInterviewRescheduleRequestDto: () => RejectF2FInterviewRescheduleRequestDto,
|
|
329
|
+
RemoveGlobalSettingDto: () => RemoveGlobalSettingDto,
|
|
326
330
|
ResetPasswordDto: () => ResetPasswordDto,
|
|
327
331
|
ResetPasswordTokenValidationDto: () => ResetPasswordTokenValidationDto,
|
|
328
332
|
ResubmitTimesheetDto: () => ResubmitTimesheetDto,
|
|
@@ -2436,6 +2440,41 @@ __decorateClass([
|
|
|
2436
2440
|
})
|
|
2437
2441
|
], SystemPreferenceDto.prototype, "key", 2);
|
|
2438
2442
|
|
|
2443
|
+
// src/modules/global-setting/pattern/pattern.ts
|
|
2444
|
+
var GLOBAL_SETTING_PATTERN = {
|
|
2445
|
+
addGlobalSetting: "global.setting.add",
|
|
2446
|
+
removeGlobalSetting: "global.setting.remove"
|
|
2447
|
+
};
|
|
2448
|
+
|
|
2449
|
+
// src/modules/global-setting/dto/add-global-setting.dto.ts
|
|
2450
|
+
var import_class_validator63 = require("class-validator");
|
|
2451
|
+
var AddGlobalSettingDto = class {
|
|
2452
|
+
};
|
|
2453
|
+
__decorateClass([
|
|
2454
|
+
(0, import_class_validator63.IsNotEmpty)({ message: "Key is required" }),
|
|
2455
|
+
(0, import_class_validator63.IsString)({ message: "Key must be a string" }),
|
|
2456
|
+
(0, import_class_validator63.MaxLength)(255, { message: "Key must not exceed 255 characters" })
|
|
2457
|
+
], AddGlobalSettingDto.prototype, "key", 2);
|
|
2458
|
+
__decorateClass([
|
|
2459
|
+
(0, import_class_validator63.IsNotEmpty)({ message: "Value is required" }),
|
|
2460
|
+
(0, import_class_validator63.IsString)({ message: "Value must be a string" })
|
|
2461
|
+
], AddGlobalSettingDto.prototype, "value", 2);
|
|
2462
|
+
|
|
2463
|
+
// src/modules/global-setting/dto/remove-global-setting.dto.ts
|
|
2464
|
+
var import_class_validator64 = require("class-validator");
|
|
2465
|
+
var RemoveGlobalSettingDto = class {
|
|
2466
|
+
};
|
|
2467
|
+
__decorateClass([
|
|
2468
|
+
(0, import_class_validator64.ValidateIf)((o) => !o.key),
|
|
2469
|
+
(0, import_class_validator64.IsNotEmpty)({ message: "Either uuid or key is required" }),
|
|
2470
|
+
(0, import_class_validator64.IsUUID)("4", { message: "UUID must be a valid UUID" })
|
|
2471
|
+
], RemoveGlobalSettingDto.prototype, "uuid", 2);
|
|
2472
|
+
__decorateClass([
|
|
2473
|
+
(0, import_class_validator64.ValidateIf)((o) => !o.uuid),
|
|
2474
|
+
(0, import_class_validator64.IsNotEmpty)({ message: "Either uuid or key is required" }),
|
|
2475
|
+
(0, import_class_validator64.IsString)({ message: "Key must be a string" })
|
|
2476
|
+
], RemoveGlobalSettingDto.prototype, "key", 2);
|
|
2477
|
+
|
|
2439
2478
|
// src/modules/notification/pattern/pattern.ts
|
|
2440
2479
|
var NOTIFICATION_PATTERN = {
|
|
2441
2480
|
handleAccountVerificationNotification: "handle.account.verification.notification",
|
|
@@ -2477,28 +2516,28 @@ var EMAIL_PATTERN = {
|
|
|
2477
2516
|
};
|
|
2478
2517
|
|
|
2479
2518
|
// src/modules/notification/dto/test-notification.dto.ts
|
|
2480
|
-
var
|
|
2519
|
+
var import_class_validator65 = require("class-validator");
|
|
2481
2520
|
var TestNotificationDto = class {
|
|
2482
2521
|
};
|
|
2483
2522
|
__decorateClass([
|
|
2484
|
-
(0,
|
|
2485
|
-
(0,
|
|
2523
|
+
(0, import_class_validator65.IsOptional)(),
|
|
2524
|
+
(0, import_class_validator65.IsEmail)({}, { message: "Email must be valid" })
|
|
2486
2525
|
], TestNotificationDto.prototype, "email", 2);
|
|
2487
2526
|
__decorateClass([
|
|
2488
|
-
(0,
|
|
2489
|
-
(0,
|
|
2527
|
+
(0, import_class_validator65.IsOptional)(),
|
|
2528
|
+
(0, import_class_validator65.IsPhoneNumber)()
|
|
2490
2529
|
], TestNotificationDto.prototype, "phone", 2);
|
|
2491
2530
|
__decorateClass([
|
|
2492
|
-
(0,
|
|
2493
|
-
(0,
|
|
2531
|
+
(0, import_class_validator65.IsOptional)(),
|
|
2532
|
+
(0, import_class_validator65.IsString)()
|
|
2494
2533
|
], TestNotificationDto.prototype, "message", 2);
|
|
2495
2534
|
__decorateClass([
|
|
2496
|
-
(0,
|
|
2497
|
-
(0,
|
|
2535
|
+
(0, import_class_validator65.IsOptional)(),
|
|
2536
|
+
(0, import_class_validator65.IsObject)()
|
|
2498
2537
|
], TestNotificationDto.prototype, "data", 2);
|
|
2499
2538
|
__decorateClass([
|
|
2500
|
-
(0,
|
|
2501
|
-
(0,
|
|
2539
|
+
(0, import_class_validator65.IsOptional)(),
|
|
2540
|
+
(0, import_class_validator65.IsString)()
|
|
2502
2541
|
], TestNotificationDto.prototype, "type", 2);
|
|
2503
2542
|
|
|
2504
2543
|
// src/modules/rating/pattern/pattern.ts
|
|
@@ -2509,7 +2548,7 @@ var RATING_PATTERN = {
|
|
|
2509
2548
|
};
|
|
2510
2549
|
|
|
2511
2550
|
// src/modules/rating/dto/add.rating.dto.ts
|
|
2512
|
-
var
|
|
2551
|
+
var import_class_validator66 = require("class-validator");
|
|
2513
2552
|
|
|
2514
2553
|
// src/entities/rating.entity.ts
|
|
2515
2554
|
var import_typeorm66 = require("typeorm");
|
|
@@ -5999,6 +6038,9 @@ __decorateClass([
|
|
|
5999
6038
|
__decorateClass([
|
|
6000
6039
|
(0, import_typeorm44.Column)({ name: "interview_summary", type: "jsonb", nullable: true })
|
|
6001
6040
|
], FreelancerAssessment.prototype, "interviewSummary", 2);
|
|
6041
|
+
__decorateClass([
|
|
6042
|
+
(0, import_typeorm44.Column)({ name: "score", type: "float", nullable: true })
|
|
6043
|
+
], FreelancerAssessment.prototype, "score", 2);
|
|
6002
6044
|
__decorateClass([
|
|
6003
6045
|
(0, import_typeorm44.Column)({
|
|
6004
6046
|
name: "status",
|
|
@@ -7353,91 +7395,91 @@ Rating = __decorateClass([
|
|
|
7353
7395
|
var CreateRatingDto = class {
|
|
7354
7396
|
};
|
|
7355
7397
|
__decorateClass([
|
|
7356
|
-
(0,
|
|
7357
|
-
(0,
|
|
7398
|
+
(0, import_class_validator66.IsOptional)(),
|
|
7399
|
+
(0, import_class_validator66.IsInt)({ message: "Reviewee ID must be a valid integer" })
|
|
7358
7400
|
], CreateRatingDto.prototype, "revieweeId", 2);
|
|
7359
7401
|
__decorateClass([
|
|
7360
|
-
(0,
|
|
7361
|
-
(0,
|
|
7402
|
+
(0, import_class_validator66.IsOptional)(),
|
|
7403
|
+
(0, import_class_validator66.IsInt)({ message: "Reviewer ID must be a valid integer" })
|
|
7362
7404
|
], CreateRatingDto.prototype, "reviewerId", 2);
|
|
7363
7405
|
__decorateClass([
|
|
7364
|
-
(0,
|
|
7365
|
-
(0,
|
|
7406
|
+
(0, import_class_validator66.IsInt)({ message: "Job ID must be a valid integer" }),
|
|
7407
|
+
(0, import_class_validator66.IsNotEmpty)({ message: "Job ID is required" })
|
|
7366
7408
|
], CreateRatingDto.prototype, "jobId", 2);
|
|
7367
7409
|
__decorateClass([
|
|
7368
|
-
(0,
|
|
7410
|
+
(0, import_class_validator66.IsEnum)(RatingTypeEnum, {
|
|
7369
7411
|
message: `Rating type must be one of: ${Object.values(RatingTypeEnum).join(", ")}`
|
|
7370
7412
|
})
|
|
7371
7413
|
], CreateRatingDto.prototype, "ratingType", 2);
|
|
7372
7414
|
__decorateClass([
|
|
7373
|
-
(0,
|
|
7374
|
-
(0,
|
|
7415
|
+
(0, import_class_validator66.IsOptional)(),
|
|
7416
|
+
(0, import_class_validator66.IsString)({ message: "Reviewer comment must be a string" })
|
|
7375
7417
|
], CreateRatingDto.prototype, "reviewerComment", 2);
|
|
7376
7418
|
__decorateClass([
|
|
7377
|
-
(0,
|
|
7378
|
-
(0,
|
|
7379
|
-
(0,
|
|
7380
|
-
(0,
|
|
7419
|
+
(0, import_class_validator66.IsOptional)(),
|
|
7420
|
+
(0, import_class_validator66.IsNumber)(),
|
|
7421
|
+
(0, import_class_validator66.Min)(0),
|
|
7422
|
+
(0, import_class_validator66.Max)(5)
|
|
7381
7423
|
], CreateRatingDto.prototype, "overallExperience", 2);
|
|
7382
7424
|
__decorateClass([
|
|
7383
|
-
(0,
|
|
7384
|
-
(0,
|
|
7385
|
-
(0,
|
|
7386
|
-
(0,
|
|
7425
|
+
(0, import_class_validator66.IsOptional)(),
|
|
7426
|
+
(0, import_class_validator66.IsNumber)(),
|
|
7427
|
+
(0, import_class_validator66.Min)(0),
|
|
7428
|
+
(0, import_class_validator66.Max)(5)
|
|
7387
7429
|
], CreateRatingDto.prototype, "workQuality", 2);
|
|
7388
7430
|
__decorateClass([
|
|
7389
|
-
(0,
|
|
7390
|
-
(0,
|
|
7391
|
-
(0,
|
|
7392
|
-
(0,
|
|
7431
|
+
(0, import_class_validator66.IsOptional)(),
|
|
7432
|
+
(0, import_class_validator66.IsNumber)(),
|
|
7433
|
+
(0, import_class_validator66.Min)(0),
|
|
7434
|
+
(0, import_class_validator66.Max)(5)
|
|
7393
7435
|
], CreateRatingDto.prototype, "oneTimeDelivery", 2);
|
|
7394
7436
|
__decorateClass([
|
|
7395
|
-
(0,
|
|
7396
|
-
(0,
|
|
7397
|
-
(0,
|
|
7398
|
-
(0,
|
|
7437
|
+
(0, import_class_validator66.IsOptional)(),
|
|
7438
|
+
(0, import_class_validator66.IsNumber)(),
|
|
7439
|
+
(0, import_class_validator66.Min)(0),
|
|
7440
|
+
(0, import_class_validator66.Max)(5)
|
|
7399
7441
|
], CreateRatingDto.prototype, "understaning", 2);
|
|
7400
7442
|
__decorateClass([
|
|
7401
|
-
(0,
|
|
7402
|
-
(0,
|
|
7403
|
-
(0,
|
|
7404
|
-
(0,
|
|
7443
|
+
(0, import_class_validator66.IsOptional)(),
|
|
7444
|
+
(0, import_class_validator66.IsNumber)(),
|
|
7445
|
+
(0, import_class_validator66.Min)(0),
|
|
7446
|
+
(0, import_class_validator66.Max)(5)
|
|
7405
7447
|
], CreateRatingDto.prototype, "communication", 2);
|
|
7406
7448
|
__decorateClass([
|
|
7407
|
-
(0,
|
|
7408
|
-
(0,
|
|
7409
|
-
(0,
|
|
7410
|
-
(0,
|
|
7449
|
+
(0, import_class_validator66.IsOptional)(),
|
|
7450
|
+
(0, import_class_validator66.IsNumber)(),
|
|
7451
|
+
(0, import_class_validator66.Min)(0),
|
|
7452
|
+
(0, import_class_validator66.Max)(5)
|
|
7411
7453
|
], CreateRatingDto.prototype, "skillUtilized", 2);
|
|
7412
7454
|
__decorateClass([
|
|
7413
|
-
(0,
|
|
7414
|
-
(0,
|
|
7415
|
-
(0,
|
|
7416
|
-
(0,
|
|
7455
|
+
(0, import_class_validator66.IsOptional)(),
|
|
7456
|
+
(0, import_class_validator66.IsNumber)(),
|
|
7457
|
+
(0, import_class_validator66.Min)(0),
|
|
7458
|
+
(0, import_class_validator66.Max)(5)
|
|
7417
7459
|
], CreateRatingDto.prototype, "communicationClarity", 2);
|
|
7418
7460
|
__decorateClass([
|
|
7419
|
-
(0,
|
|
7420
|
-
(0,
|
|
7421
|
-
(0,
|
|
7422
|
-
(0,
|
|
7461
|
+
(0, import_class_validator66.IsOptional)(),
|
|
7462
|
+
(0, import_class_validator66.IsNumber)(),
|
|
7463
|
+
(0, import_class_validator66.Min)(0),
|
|
7464
|
+
(0, import_class_validator66.Max)(5)
|
|
7423
7465
|
], CreateRatingDto.prototype, "requirementsClarity", 2);
|
|
7424
7466
|
__decorateClass([
|
|
7425
|
-
(0,
|
|
7426
|
-
(0,
|
|
7427
|
-
(0,
|
|
7428
|
-
(0,
|
|
7467
|
+
(0, import_class_validator66.IsOptional)(),
|
|
7468
|
+
(0, import_class_validator66.IsNumber)(),
|
|
7469
|
+
(0, import_class_validator66.Min)(0),
|
|
7470
|
+
(0, import_class_validator66.Max)(5)
|
|
7429
7471
|
], CreateRatingDto.prototype, "responsiveness", 2);
|
|
7430
7472
|
__decorateClass([
|
|
7431
|
-
(0,
|
|
7432
|
-
(0,
|
|
7433
|
-
(0,
|
|
7434
|
-
(0,
|
|
7473
|
+
(0, import_class_validator66.IsOptional)(),
|
|
7474
|
+
(0, import_class_validator66.IsNumber)(),
|
|
7475
|
+
(0, import_class_validator66.Min)(0),
|
|
7476
|
+
(0, import_class_validator66.Max)(5)
|
|
7435
7477
|
], CreateRatingDto.prototype, "paymentPromptness", 2);
|
|
7436
7478
|
__decorateClass([
|
|
7437
|
-
(0,
|
|
7438
|
-
(0,
|
|
7439
|
-
(0,
|
|
7440
|
-
(0,
|
|
7479
|
+
(0, import_class_validator66.IsOptional)(),
|
|
7480
|
+
(0, import_class_validator66.IsNumber)(),
|
|
7481
|
+
(0, import_class_validator66.Min)(0),
|
|
7482
|
+
(0, import_class_validator66.Max)(5)
|
|
7441
7483
|
], CreateRatingDto.prototype, "responsibilitiesAndExpectations", 2);
|
|
7442
7484
|
|
|
7443
7485
|
// src/modules/company-role/pattern/pattern.ts
|
|
@@ -7453,57 +7495,57 @@ var COMPANY_ROLES_PATTERNS = {
|
|
|
7453
7495
|
};
|
|
7454
7496
|
|
|
7455
7497
|
// src/modules/company-role/dto/create-company-role.dto.ts
|
|
7456
|
-
var
|
|
7498
|
+
var import_class_validator67 = require("class-validator");
|
|
7457
7499
|
var CreateCompanyRoleDto = class {
|
|
7458
7500
|
};
|
|
7459
7501
|
__decorateClass([
|
|
7460
|
-
(0,
|
|
7502
|
+
(0, import_class_validator67.IsNotEmpty)({ message: "Please enter company role name." })
|
|
7461
7503
|
], CreateCompanyRoleDto.prototype, "name", 2);
|
|
7462
7504
|
__decorateClass([
|
|
7463
|
-
(0,
|
|
7505
|
+
(0, import_class_validator67.IsNotEmpty)({ message: "Please enter company role slug" })
|
|
7464
7506
|
], CreateCompanyRoleDto.prototype, "slug", 2);
|
|
7465
7507
|
__decorateClass([
|
|
7466
|
-
(0,
|
|
7508
|
+
(0, import_class_validator67.IsNotEmpty)({ message: "Please enter description" })
|
|
7467
7509
|
], CreateCompanyRoleDto.prototype, "description", 2);
|
|
7468
7510
|
__decorateClass([
|
|
7469
|
-
(0,
|
|
7470
|
-
(0,
|
|
7471
|
-
(0,
|
|
7511
|
+
(0, import_class_validator67.IsArray)({ message: "Permission IDs must be an array." }),
|
|
7512
|
+
(0, import_class_validator67.ArrayNotEmpty)({ message: "Please select at least one permission." }),
|
|
7513
|
+
(0, import_class_validator67.IsInt)({ each: true, message: "Each permission ID must be an integer." })
|
|
7472
7514
|
], CreateCompanyRoleDto.prototype, "permissionIds", 2);
|
|
7473
7515
|
__decorateClass([
|
|
7474
|
-
(0,
|
|
7475
|
-
(0,
|
|
7516
|
+
(0, import_class_validator67.IsOptional)(),
|
|
7517
|
+
(0, import_class_validator67.IsBoolean)({ message: "Is active must be a boolean value" })
|
|
7476
7518
|
], CreateCompanyRoleDto.prototype, "isActive", 2);
|
|
7477
7519
|
|
|
7478
7520
|
// src/modules/company-role/dto/update-company-role.dto.ts
|
|
7479
|
-
var
|
|
7521
|
+
var import_class_validator68 = require("class-validator");
|
|
7480
7522
|
var UpdateCompanyRoleDto = class {
|
|
7481
7523
|
};
|
|
7482
7524
|
__decorateClass([
|
|
7483
|
-
(0,
|
|
7525
|
+
(0, import_class_validator68.IsNotEmpty)({ message: "Please enter company name." })
|
|
7484
7526
|
], UpdateCompanyRoleDto.prototype, "name", 2);
|
|
7485
7527
|
__decorateClass([
|
|
7486
|
-
(0,
|
|
7528
|
+
(0, import_class_validator68.IsNotEmpty)({ message: "Please enter slug" })
|
|
7487
7529
|
], UpdateCompanyRoleDto.prototype, "slug", 2);
|
|
7488
7530
|
__decorateClass([
|
|
7489
|
-
(0,
|
|
7531
|
+
(0, import_class_validator68.IsNotEmpty)({ message: "Please enter description" })
|
|
7490
7532
|
], UpdateCompanyRoleDto.prototype, "description", 2);
|
|
7491
7533
|
__decorateClass([
|
|
7492
|
-
(0,
|
|
7493
|
-
(0,
|
|
7494
|
-
(0,
|
|
7534
|
+
(0, import_class_validator68.IsArray)({ message: "Permission IDs must be an array." }),
|
|
7535
|
+
(0, import_class_validator68.ArrayNotEmpty)({ message: "Please select at least one permission." }),
|
|
7536
|
+
(0, import_class_validator68.IsInt)({ each: true, message: "Each permission ID must be an integer." })
|
|
7495
7537
|
], UpdateCompanyRoleDto.prototype, "permissionIds", 2);
|
|
7496
7538
|
__decorateClass([
|
|
7497
|
-
(0,
|
|
7498
|
-
(0,
|
|
7539
|
+
(0, import_class_validator68.IsOptional)(),
|
|
7540
|
+
(0, import_class_validator68.IsBoolean)({ message: "Is active must be a boolean value" })
|
|
7499
7541
|
], UpdateCompanyRoleDto.prototype, "isActive", 2);
|
|
7500
7542
|
|
|
7501
7543
|
// src/modules/company-role/dto/toggle-company-role-visibility.dto.ts
|
|
7502
|
-
var
|
|
7544
|
+
var import_class_validator69 = require("class-validator");
|
|
7503
7545
|
var ToggleCompanyRoleVisibilityDto = class {
|
|
7504
7546
|
};
|
|
7505
7547
|
__decorateClass([
|
|
7506
|
-
(0,
|
|
7548
|
+
(0, import_class_validator69.IsBoolean)()
|
|
7507
7549
|
], ToggleCompanyRoleVisibilityDto.prototype, "isActive", 2);
|
|
7508
7550
|
|
|
7509
7551
|
// src/modules/user/freelancer-experience/pattern/pattern.ts
|
|
@@ -7513,35 +7555,35 @@ var FREELANCER_EXPERIENCE_PATTERN = {
|
|
|
7513
7555
|
};
|
|
7514
7556
|
|
|
7515
7557
|
// src/modules/user/freelancer-experience/dto/freelancer-experience.dto.ts
|
|
7516
|
-
var
|
|
7558
|
+
var import_class_validator70 = require("class-validator");
|
|
7517
7559
|
var import_class_transformer5 = require("class-transformer");
|
|
7518
7560
|
var ExperienceDto = class {
|
|
7519
7561
|
};
|
|
7520
7562
|
__decorateClass([
|
|
7521
|
-
(0,
|
|
7563
|
+
(0, import_class_validator70.IsOptional)()
|
|
7522
7564
|
], ExperienceDto.prototype, "uuid", 2);
|
|
7523
7565
|
__decorateClass([
|
|
7524
|
-
(0,
|
|
7525
|
-
(0,
|
|
7566
|
+
(0, import_class_validator70.IsNotEmpty)(),
|
|
7567
|
+
(0, import_class_validator70.IsString)()
|
|
7526
7568
|
], ExperienceDto.prototype, "companyName", 2);
|
|
7527
7569
|
__decorateClass([
|
|
7528
|
-
(0,
|
|
7529
|
-
(0,
|
|
7570
|
+
(0, import_class_validator70.IsNotEmpty)(),
|
|
7571
|
+
(0, import_class_validator70.IsString)()
|
|
7530
7572
|
], ExperienceDto.prototype, "designation", 2);
|
|
7531
7573
|
__decorateClass([
|
|
7532
|
-
(0,
|
|
7533
|
-
(0,
|
|
7574
|
+
(0, import_class_validator70.IsNotEmpty)(),
|
|
7575
|
+
(0, import_class_validator70.IsString)()
|
|
7534
7576
|
], ExperienceDto.prototype, "jobDuration", 2);
|
|
7535
7577
|
__decorateClass([
|
|
7536
|
-
(0,
|
|
7537
|
-
(0,
|
|
7538
|
-
(0,
|
|
7578
|
+
(0, import_class_validator70.IsOptional)(),
|
|
7579
|
+
(0, import_class_validator70.IsString)(),
|
|
7580
|
+
(0, import_class_validator70.MaxLength)(5e3, { message: "Description must not exceed 5000 characters" })
|
|
7539
7581
|
], ExperienceDto.prototype, "description", 2);
|
|
7540
7582
|
var FreelancerExperienceDto = class {
|
|
7541
7583
|
};
|
|
7542
7584
|
__decorateClass([
|
|
7543
|
-
(0,
|
|
7544
|
-
(0,
|
|
7585
|
+
(0, import_class_validator70.ValidateNested)({ each: true }),
|
|
7586
|
+
(0, import_class_validator70.ArrayMinSize)(1, { message: "At least one experience is required." }),
|
|
7545
7587
|
(0, import_class_transformer5.Type)(() => ExperienceDto)
|
|
7546
7588
|
], FreelancerExperienceDto.prototype, "experiences", 2);
|
|
7547
7589
|
|
|
@@ -7558,43 +7600,43 @@ var COMPANY_MEMBERS_PATTERNS = {
|
|
|
7558
7600
|
};
|
|
7559
7601
|
|
|
7560
7602
|
// src/modules/company-member/dto/create-company-member.dto.ts
|
|
7561
|
-
var
|
|
7603
|
+
var import_class_validator71 = require("class-validator");
|
|
7562
7604
|
var CreateCompanyMemberDto = class {
|
|
7563
7605
|
};
|
|
7564
7606
|
__decorateClass([
|
|
7565
|
-
(0,
|
|
7607
|
+
(0, import_class_validator71.IsNotEmpty)({ message: "Please enter name." })
|
|
7566
7608
|
], CreateCompanyMemberDto.prototype, "name", 2);
|
|
7567
7609
|
__decorateClass([
|
|
7568
|
-
(0,
|
|
7610
|
+
(0, import_class_validator71.IsNotEmpty)({ message: "Please enter email" })
|
|
7569
7611
|
], CreateCompanyMemberDto.prototype, "email", 2);
|
|
7570
7612
|
__decorateClass([
|
|
7571
|
-
(0,
|
|
7572
|
-
(0,
|
|
7573
|
-
(0,
|
|
7613
|
+
(0, import_class_validator71.IsArray)({ message: "Role IDs must be an array." }),
|
|
7614
|
+
(0, import_class_validator71.ArrayNotEmpty)({ message: "Please select at least one role." }),
|
|
7615
|
+
(0, import_class_validator71.IsInt)({ each: true, message: "Each role ID must be an integer." })
|
|
7574
7616
|
], CreateCompanyMemberDto.prototype, "roleIds", 2);
|
|
7575
7617
|
|
|
7576
7618
|
// src/modules/company-member/dto/update-company-member.dto.ts
|
|
7577
|
-
var
|
|
7619
|
+
var import_class_validator72 = require("class-validator");
|
|
7578
7620
|
var UpdateCompanyMemberDto = class {
|
|
7579
7621
|
};
|
|
7580
7622
|
__decorateClass([
|
|
7581
|
-
(0,
|
|
7623
|
+
(0, import_class_validator72.IsNotEmpty)({ message: "Please enter name." })
|
|
7582
7624
|
], UpdateCompanyMemberDto.prototype, "name", 2);
|
|
7583
7625
|
__decorateClass([
|
|
7584
|
-
(0,
|
|
7626
|
+
(0, import_class_validator72.IsNotEmpty)({ message: "Please enter email" })
|
|
7585
7627
|
], UpdateCompanyMemberDto.prototype, "email", 2);
|
|
7586
7628
|
__decorateClass([
|
|
7587
|
-
(0,
|
|
7588
|
-
(0,
|
|
7589
|
-
(0,
|
|
7629
|
+
(0, import_class_validator72.IsArray)({ message: "Role IDs must be an array." }),
|
|
7630
|
+
(0, import_class_validator72.ArrayNotEmpty)({ message: "Please select at least one role." }),
|
|
7631
|
+
(0, import_class_validator72.IsInt)({ each: true, message: "Each role ID must be an integer." })
|
|
7590
7632
|
], UpdateCompanyMemberDto.prototype, "roleIds", 2);
|
|
7591
7633
|
|
|
7592
7634
|
// src/modules/company-member/dto/toggle-company-member-visibility.dto.ts
|
|
7593
|
-
var
|
|
7635
|
+
var import_class_validator73 = require("class-validator");
|
|
7594
7636
|
var ToggleCompanyMemberVisibilityDto = class {
|
|
7595
7637
|
};
|
|
7596
7638
|
__decorateClass([
|
|
7597
|
-
(0,
|
|
7639
|
+
(0, import_class_validator73.IsBoolean)()
|
|
7598
7640
|
], ToggleCompanyMemberVisibilityDto.prototype, "isActive", 2);
|
|
7599
7641
|
|
|
7600
7642
|
// src/modules/user/freelancer-education/pattern/pattern.ts
|
|
@@ -7604,31 +7646,31 @@ var FREELANCER_EDUCATION_PATTERN = {
|
|
|
7604
7646
|
};
|
|
7605
7647
|
|
|
7606
7648
|
// src/modules/user/freelancer-education/dto/freelancer-education.dto.ts
|
|
7607
|
-
var
|
|
7649
|
+
var import_class_validator74 = require("class-validator");
|
|
7608
7650
|
var import_class_transformer6 = require("class-transformer");
|
|
7609
7651
|
var EducationDto = class {
|
|
7610
7652
|
};
|
|
7611
7653
|
__decorateClass([
|
|
7612
|
-
(0,
|
|
7654
|
+
(0, import_class_validator74.IsOptional)()
|
|
7613
7655
|
], EducationDto.prototype, "uuid", 2);
|
|
7614
7656
|
__decorateClass([
|
|
7615
|
-
(0,
|
|
7616
|
-
(0,
|
|
7657
|
+
(0, import_class_validator74.IsString)(),
|
|
7658
|
+
(0, import_class_validator74.IsNotEmpty)({ message: "Please Enter Degree " })
|
|
7617
7659
|
], EducationDto.prototype, "degree", 2);
|
|
7618
7660
|
__decorateClass([
|
|
7619
|
-
(0,
|
|
7620
|
-
(0,
|
|
7661
|
+
(0, import_class_validator74.IsString)(),
|
|
7662
|
+
(0, import_class_validator74.IsNotEmpty)({ message: "Please Enter University " })
|
|
7621
7663
|
], EducationDto.prototype, "university", 2);
|
|
7622
7664
|
__decorateClass([
|
|
7623
|
-
(0,
|
|
7624
|
-
(0,
|
|
7665
|
+
(0, import_class_validator74.IsString)(),
|
|
7666
|
+
(0, import_class_validator74.IsNotEmpty)({ message: "Please Enter Year of Graduation " })
|
|
7625
7667
|
], EducationDto.prototype, "yearOfGraduation", 2);
|
|
7626
7668
|
var FreelancerEducationDto = class {
|
|
7627
7669
|
};
|
|
7628
7670
|
__decorateClass([
|
|
7629
|
-
(0,
|
|
7630
|
-
(0,
|
|
7631
|
-
(0,
|
|
7671
|
+
(0, import_class_validator74.IsArray)(),
|
|
7672
|
+
(0, import_class_validator74.ArrayMinSize)(1, { message: "At least one education is required." }),
|
|
7673
|
+
(0, import_class_validator74.ValidateNested)({ each: true }),
|
|
7632
7674
|
(0, import_class_transformer6.Type)(() => EducationDto)
|
|
7633
7675
|
], FreelancerEducationDto.prototype, "educations", 2);
|
|
7634
7676
|
|
|
@@ -7639,67 +7681,67 @@ var FREELANCER_PROJECT_PATTERN = {
|
|
|
7639
7681
|
};
|
|
7640
7682
|
|
|
7641
7683
|
// src/modules/user/freelancer-project/dto/freelancer-project.dto.ts
|
|
7642
|
-
var
|
|
7684
|
+
var import_class_validator75 = require("class-validator");
|
|
7643
7685
|
var import_class_transformer7 = require("class-transformer");
|
|
7644
7686
|
var ProjectDto = class {
|
|
7645
7687
|
};
|
|
7646
7688
|
__decorateClass([
|
|
7647
|
-
(0,
|
|
7689
|
+
(0, import_class_validator75.IsOptional)()
|
|
7648
7690
|
], ProjectDto.prototype, "uuid", 2);
|
|
7649
7691
|
__decorateClass([
|
|
7650
|
-
(0,
|
|
7651
|
-
(0,
|
|
7692
|
+
(0, import_class_validator75.IsString)(),
|
|
7693
|
+
(0, import_class_validator75.IsNotEmpty)({ message: "Please Enter Project Name " })
|
|
7652
7694
|
], ProjectDto.prototype, "projectName", 2);
|
|
7653
7695
|
__decorateClass([
|
|
7654
|
-
(0,
|
|
7655
|
-
(0,
|
|
7696
|
+
(0, import_class_validator75.IsDateString)(),
|
|
7697
|
+
(0, import_class_validator75.IsNotEmpty)({ message: "Please Enter Start Date " })
|
|
7656
7698
|
], ProjectDto.prototype, "startDate", 2);
|
|
7657
7699
|
__decorateClass([
|
|
7658
|
-
(0,
|
|
7659
|
-
(0,
|
|
7700
|
+
(0, import_class_validator75.IsDateString)(),
|
|
7701
|
+
(0, import_class_validator75.IsNotEmpty)({ message: "Please Enter End Date " })
|
|
7660
7702
|
], ProjectDto.prototype, "endDate", 2);
|
|
7661
7703
|
__decorateClass([
|
|
7662
|
-
(0,
|
|
7663
|
-
(0,
|
|
7704
|
+
(0, import_class_validator75.IsOptional)(),
|
|
7705
|
+
(0, import_class_validator75.IsString)()
|
|
7664
7706
|
], ProjectDto.prototype, "clientName", 2);
|
|
7665
7707
|
__decorateClass([
|
|
7666
|
-
(0,
|
|
7667
|
-
(0,
|
|
7708
|
+
(0, import_class_validator75.IsOptional)(),
|
|
7709
|
+
(0, import_class_validator75.IsString)()
|
|
7668
7710
|
], ProjectDto.prototype, "gitLink", 2);
|
|
7669
7711
|
__decorateClass([
|
|
7670
|
-
(0,
|
|
7671
|
-
(0,
|
|
7672
|
-
(0,
|
|
7712
|
+
(0, import_class_validator75.IsOptional)(),
|
|
7713
|
+
(0, import_class_validator75.IsString)(),
|
|
7714
|
+
(0, import_class_validator75.MaxLength)(5e3, { message: "Description must not exceed 5000 characters" })
|
|
7673
7715
|
], ProjectDto.prototype, "description", 2);
|
|
7674
7716
|
var CaseStudyDto = class {
|
|
7675
7717
|
};
|
|
7676
7718
|
__decorateClass([
|
|
7677
|
-
(0,
|
|
7719
|
+
(0, import_class_validator75.IsOptional)()
|
|
7678
7720
|
], CaseStudyDto.prototype, "uuid", 2);
|
|
7679
7721
|
__decorateClass([
|
|
7680
|
-
(0,
|
|
7681
|
-
(0,
|
|
7722
|
+
(0, import_class_validator75.IsString)(),
|
|
7723
|
+
(0, import_class_validator75.IsNotEmpty)({ message: "Please Enter Project Name " })
|
|
7682
7724
|
], CaseStudyDto.prototype, "projectName", 2);
|
|
7683
7725
|
__decorateClass([
|
|
7684
|
-
(0,
|
|
7685
|
-
(0,
|
|
7726
|
+
(0, import_class_validator75.IsOptional)(),
|
|
7727
|
+
(0, import_class_validator75.IsString)()
|
|
7686
7728
|
], CaseStudyDto.prototype, "caseStudyLink", 2);
|
|
7687
7729
|
__decorateClass([
|
|
7688
|
-
(0,
|
|
7689
|
-
(0,
|
|
7690
|
-
(0,
|
|
7730
|
+
(0, import_class_validator75.IsOptional)(),
|
|
7731
|
+
(0, import_class_validator75.IsString)(),
|
|
7732
|
+
(0, import_class_validator75.MaxLength)(5e3, { message: "Description must not exceed 5000 characters" })
|
|
7691
7733
|
], CaseStudyDto.prototype, "description", 2);
|
|
7692
7734
|
var FreelancerProjectDto = class {
|
|
7693
7735
|
};
|
|
7694
7736
|
__decorateClass([
|
|
7695
|
-
(0,
|
|
7696
|
-
(0,
|
|
7697
|
-
(0,
|
|
7737
|
+
(0, import_class_validator75.IsArray)(),
|
|
7738
|
+
(0, import_class_validator75.ArrayMinSize)(1, { message: "At least one project is required." }),
|
|
7739
|
+
(0, import_class_validator75.ValidateNested)({ each: true }),
|
|
7698
7740
|
(0, import_class_transformer7.Type)(() => ProjectDto)
|
|
7699
7741
|
], FreelancerProjectDto.prototype, "projects", 2);
|
|
7700
7742
|
__decorateClass([
|
|
7701
|
-
(0,
|
|
7702
|
-
(0,
|
|
7743
|
+
(0, import_class_validator75.IsArray)(),
|
|
7744
|
+
(0, import_class_validator75.ValidateNested)({ each: true }),
|
|
7703
7745
|
(0, import_class_transformer7.Type)(() => CaseStudyDto)
|
|
7704
7746
|
], FreelancerProjectDto.prototype, "casestudies", 2);
|
|
7705
7747
|
|
|
@@ -7716,7 +7758,7 @@ var FREELANCER_SKILL_PATTERN = {
|
|
|
7716
7758
|
};
|
|
7717
7759
|
|
|
7718
7760
|
// src/modules/user/freelancer-skill/dto/freelancer-skill.dto.ts
|
|
7719
|
-
var
|
|
7761
|
+
var import_class_validator76 = require("class-validator");
|
|
7720
7762
|
var import_class_transformer8 = require("class-transformer");
|
|
7721
7763
|
var FreelancerSkillDto = class {
|
|
7722
7764
|
constructor() {
|
|
@@ -7727,28 +7769,28 @@ var FreelancerSkillDto = class {
|
|
|
7727
7769
|
}
|
|
7728
7770
|
};
|
|
7729
7771
|
__decorateClass([
|
|
7730
|
-
(0,
|
|
7731
|
-
(0,
|
|
7772
|
+
(0, import_class_validator76.IsOptional)(),
|
|
7773
|
+
(0, import_class_validator76.IsArray)(),
|
|
7732
7774
|
(0, import_class_transformer8.Type)(() => String),
|
|
7733
|
-
(0,
|
|
7775
|
+
(0, import_class_validator76.IsString)({ each: true })
|
|
7734
7776
|
], FreelancerSkillDto.prototype, "coreSkills", 2);
|
|
7735
7777
|
__decorateClass([
|
|
7736
|
-
(0,
|
|
7737
|
-
(0,
|
|
7778
|
+
(0, import_class_validator76.IsOptional)(),
|
|
7779
|
+
(0, import_class_validator76.IsArray)(),
|
|
7738
7780
|
(0, import_class_transformer8.Type)(() => String),
|
|
7739
|
-
(0,
|
|
7781
|
+
(0, import_class_validator76.IsString)({ each: true })
|
|
7740
7782
|
], FreelancerSkillDto.prototype, "secondarySkills", 2);
|
|
7741
7783
|
__decorateClass([
|
|
7742
|
-
(0,
|
|
7743
|
-
(0,
|
|
7784
|
+
(0, import_class_validator76.IsOptional)(),
|
|
7785
|
+
(0, import_class_validator76.IsArray)(),
|
|
7744
7786
|
(0, import_class_transformer8.Type)(() => String),
|
|
7745
|
-
(0,
|
|
7787
|
+
(0, import_class_validator76.IsString)({ each: true })
|
|
7746
7788
|
], FreelancerSkillDto.prototype, "tools", 2);
|
|
7747
7789
|
__decorateClass([
|
|
7748
|
-
(0,
|
|
7749
|
-
(0,
|
|
7790
|
+
(0, import_class_validator76.IsOptional)(),
|
|
7791
|
+
(0, import_class_validator76.IsArray)(),
|
|
7750
7792
|
(0, import_class_transformer8.Type)(() => String),
|
|
7751
|
-
(0,
|
|
7793
|
+
(0, import_class_validator76.IsString)({ each: true })
|
|
7752
7794
|
], FreelancerSkillDto.prototype, "frameworks", 2);
|
|
7753
7795
|
|
|
7754
7796
|
// src/modules/freelancer-admin/pattern/pattern.ts
|
|
@@ -7775,7 +7817,7 @@ var ADMIN_FREELANCER_PATTERN = {
|
|
|
7775
7817
|
};
|
|
7776
7818
|
|
|
7777
7819
|
// src/modules/freelancer-admin/dto/create-freelancer.dto.ts
|
|
7778
|
-
var
|
|
7820
|
+
var import_class_validator77 = require("class-validator");
|
|
7779
7821
|
var import_class_transformer9 = require("class-transformer");
|
|
7780
7822
|
var NatureOfWorkEnum = /* @__PURE__ */ ((NatureOfWorkEnum3) => {
|
|
7781
7823
|
NatureOfWorkEnum3["FTE"] = "FTE";
|
|
@@ -7792,41 +7834,41 @@ var ModeOfWorkEnum = /* @__PURE__ */ ((ModeOfWorkEnum3) => {
|
|
|
7792
7834
|
var CreateFreelancerDto = class {
|
|
7793
7835
|
};
|
|
7794
7836
|
__decorateClass([
|
|
7795
|
-
(0,
|
|
7796
|
-
(0,
|
|
7797
|
-
(0,
|
|
7837
|
+
(0, import_class_validator77.IsOptional)(),
|
|
7838
|
+
(0, import_class_validator77.IsString)({ message: "Full name must be a string" }),
|
|
7839
|
+
(0, import_class_validator77.MaxLength)(100, { message: "Full name must not exceed 100 characters" }),
|
|
7798
7840
|
(0, import_class_transformer9.Transform)(({ value }) => {
|
|
7799
7841
|
if (Array.isArray(value)) return value[0]?.trim();
|
|
7800
7842
|
return typeof value === "string" ? value.trim() : value;
|
|
7801
7843
|
})
|
|
7802
7844
|
], CreateFreelancerDto.prototype, "fullName", 2);
|
|
7803
7845
|
__decorateClass([
|
|
7804
|
-
(0,
|
|
7805
|
-
(0,
|
|
7846
|
+
(0, import_class_validator77.IsOptional)(),
|
|
7847
|
+
(0, import_class_validator77.IsEmail)({}, { message: "Invalid email address" }),
|
|
7806
7848
|
(0, import_class_transformer9.Transform)(({ value }) => {
|
|
7807
7849
|
if (Array.isArray(value)) return value[0]?.trim();
|
|
7808
7850
|
return typeof value === "string" ? value.trim() : value;
|
|
7809
7851
|
})
|
|
7810
7852
|
], CreateFreelancerDto.prototype, "email", 2);
|
|
7811
7853
|
__decorateClass([
|
|
7812
|
-
(0,
|
|
7813
|
-
(0,
|
|
7854
|
+
(0, import_class_validator77.IsOptional)(),
|
|
7855
|
+
(0, import_class_validator77.IsString)({ message: "Mobile code must be a string (e.g., +1)" }),
|
|
7814
7856
|
(0, import_class_transformer9.Transform)(({ value }) => {
|
|
7815
7857
|
if (Array.isArray(value)) return value[0]?.trim();
|
|
7816
7858
|
return typeof value === "string" ? value.trim() : value;
|
|
7817
7859
|
})
|
|
7818
7860
|
], CreateFreelancerDto.prototype, "mobileCode", 2);
|
|
7819
7861
|
__decorateClass([
|
|
7820
|
-
(0,
|
|
7821
|
-
(0,
|
|
7862
|
+
(0, import_class_validator77.IsOptional)(),
|
|
7863
|
+
(0, import_class_validator77.IsString)({ message: "Mobile must be a string (e.g., 1243253534)" }),
|
|
7822
7864
|
(0, import_class_transformer9.Transform)(({ value }) => {
|
|
7823
7865
|
if (Array.isArray(value)) return value[0]?.trim();
|
|
7824
7866
|
return typeof value === "string" ? value.trim() : value;
|
|
7825
7867
|
})
|
|
7826
7868
|
], CreateFreelancerDto.prototype, "mobile", 2);
|
|
7827
7869
|
__decorateClass([
|
|
7828
|
-
(0,
|
|
7829
|
-
(0,
|
|
7870
|
+
(0, import_class_validator77.IsNotEmpty)({ message: "Please enter address." }),
|
|
7871
|
+
(0, import_class_validator77.IsString)({ message: "address must be a string" }),
|
|
7830
7872
|
(0, import_class_transformer9.Transform)(({ value }) => {
|
|
7831
7873
|
if (Array.isArray(value)) {
|
|
7832
7874
|
const val = value[0];
|
|
@@ -7836,8 +7878,8 @@ __decorateClass([
|
|
|
7836
7878
|
})
|
|
7837
7879
|
], CreateFreelancerDto.prototype, "address", 2);
|
|
7838
7880
|
__decorateClass([
|
|
7839
|
-
(0,
|
|
7840
|
-
(0,
|
|
7881
|
+
(0, import_class_validator77.IsOptional)(),
|
|
7882
|
+
(0, import_class_validator77.IsString)({ message: "addressLine must be a string" }),
|
|
7841
7883
|
(0, import_class_transformer9.Transform)(({ value }) => {
|
|
7842
7884
|
if (Array.isArray(value)) {
|
|
7843
7885
|
const val = value[0];
|
|
@@ -7849,8 +7891,8 @@ __decorateClass([
|
|
|
7849
7891
|
})
|
|
7850
7892
|
], CreateFreelancerDto.prototype, "addressLine", 2);
|
|
7851
7893
|
__decorateClass([
|
|
7852
|
-
(0,
|
|
7853
|
-
(0,
|
|
7894
|
+
(0, import_class_validator77.IsOptional)(),
|
|
7895
|
+
(0, import_class_validator77.IsInt)({ message: "countryId must be an integer" }),
|
|
7854
7896
|
(0, import_class_transformer9.Transform)(({ value }) => {
|
|
7855
7897
|
if (Array.isArray(value)) value = value[0];
|
|
7856
7898
|
const num = Number(value);
|
|
@@ -7858,8 +7900,8 @@ __decorateClass([
|
|
|
7858
7900
|
})
|
|
7859
7901
|
], CreateFreelancerDto.prototype, "countryId", 2);
|
|
7860
7902
|
__decorateClass([
|
|
7861
|
-
(0,
|
|
7862
|
-
(0,
|
|
7903
|
+
(0, import_class_validator77.IsOptional)(),
|
|
7904
|
+
(0, import_class_validator77.IsInt)({ message: "stateId must be an integer" }),
|
|
7863
7905
|
(0, import_class_transformer9.Transform)(({ value }) => {
|
|
7864
7906
|
if (Array.isArray(value)) value = value[0];
|
|
7865
7907
|
const num = Number(value);
|
|
@@ -7867,8 +7909,8 @@ __decorateClass([
|
|
|
7867
7909
|
})
|
|
7868
7910
|
], CreateFreelancerDto.prototype, "stateId", 2);
|
|
7869
7911
|
__decorateClass([
|
|
7870
|
-
(0,
|
|
7871
|
-
(0,
|
|
7912
|
+
(0, import_class_validator77.IsOptional)(),
|
|
7913
|
+
(0, import_class_validator77.IsInt)({ message: "cityId must be an integer" }),
|
|
7872
7914
|
(0, import_class_transformer9.Transform)(({ value }) => {
|
|
7873
7915
|
if (Array.isArray(value)) value = value[0];
|
|
7874
7916
|
const num = Number(value);
|
|
@@ -7876,8 +7918,8 @@ __decorateClass([
|
|
|
7876
7918
|
})
|
|
7877
7919
|
], CreateFreelancerDto.prototype, "cityId", 2);
|
|
7878
7920
|
__decorateClass([
|
|
7879
|
-
(0,
|
|
7880
|
-
(0,
|
|
7921
|
+
(0, import_class_validator77.IsOptional)(),
|
|
7922
|
+
(0, import_class_validator77.IsString)({ message: "postalCode must be a string" }),
|
|
7881
7923
|
(0, import_class_transformer9.Transform)(({ value }) => {
|
|
7882
7924
|
if (Array.isArray(value)) {
|
|
7883
7925
|
const val = value[0];
|
|
@@ -7889,8 +7931,8 @@ __decorateClass([
|
|
|
7889
7931
|
})
|
|
7890
7932
|
], CreateFreelancerDto.prototype, "postalCode", 2);
|
|
7891
7933
|
__decorateClass([
|
|
7892
|
-
(0,
|
|
7893
|
-
(0,
|
|
7934
|
+
(0, import_class_validator77.IsOptional)(),
|
|
7935
|
+
(0, import_class_validator77.IsString)({ message: "about must be a string" }),
|
|
7894
7936
|
(0, import_class_transformer9.Transform)(({ value }) => {
|
|
7895
7937
|
if (Array.isArray(value)) {
|
|
7896
7938
|
const val = value[0];
|
|
@@ -7902,8 +7944,8 @@ __decorateClass([
|
|
|
7902
7944
|
})
|
|
7903
7945
|
], CreateFreelancerDto.prototype, "about", 2);
|
|
7904
7946
|
__decorateClass([
|
|
7905
|
-
(0,
|
|
7906
|
-
(0,
|
|
7947
|
+
(0, import_class_validator77.IsOptional)(),
|
|
7948
|
+
(0, import_class_validator77.IsString)({ message: "designation must be a string" }),
|
|
7907
7949
|
(0, import_class_transformer9.Transform)(({ value }) => {
|
|
7908
7950
|
if (Array.isArray(value)) {
|
|
7909
7951
|
const val = value[0];
|
|
@@ -7915,8 +7957,8 @@ __decorateClass([
|
|
|
7915
7957
|
})
|
|
7916
7958
|
], CreateFreelancerDto.prototype, "designation", 2);
|
|
7917
7959
|
__decorateClass([
|
|
7918
|
-
(0,
|
|
7919
|
-
(0,
|
|
7960
|
+
(0, import_class_validator77.IsOptional)(),
|
|
7961
|
+
(0, import_class_validator77.IsNumber)({}, { message: "experience must be a number" }),
|
|
7920
7962
|
(0, import_class_transformer9.Transform)(({ value }) => {
|
|
7921
7963
|
if (Array.isArray(value)) value = value[0];
|
|
7922
7964
|
const num = Number(value);
|
|
@@ -7924,19 +7966,19 @@ __decorateClass([
|
|
|
7924
7966
|
})
|
|
7925
7967
|
], CreateFreelancerDto.prototype, "experience", 2);
|
|
7926
7968
|
__decorateClass([
|
|
7927
|
-
(0,
|
|
7969
|
+
(0, import_class_validator77.IsOptional)(),
|
|
7928
7970
|
(0, import_class_transformer9.Transform)(({ value }) => {
|
|
7929
7971
|
if (Array.isArray(value)) value = value[0];
|
|
7930
7972
|
return value === null || value === "" ? void 0 : value;
|
|
7931
7973
|
}),
|
|
7932
|
-
(0,
|
|
7933
|
-
(0,
|
|
7934
|
-
(0,
|
|
7974
|
+
(0, import_class_validator77.MinLength)(6, { message: "Password must be at least 6 characters." }),
|
|
7975
|
+
(0, import_class_validator77.MaxLength)(32, { message: "Password must not exceed 32 characters." }),
|
|
7976
|
+
(0, import_class_validator77.Matches)(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
7935
7977
|
message: "Password must include letters, numbers and symbols."
|
|
7936
7978
|
})
|
|
7937
7979
|
], CreateFreelancerDto.prototype, "password", 2);
|
|
7938
7980
|
__decorateClass([
|
|
7939
|
-
(0,
|
|
7981
|
+
(0, import_class_validator77.IsNotEmpty)({ message: "Please enter confirm password." }),
|
|
7940
7982
|
Match("confirmPassword", { message: "Passwords do not match" }),
|
|
7941
7983
|
(0, import_class_transformer9.Transform)(({ value }) => {
|
|
7942
7984
|
if (Array.isArray(value)) {
|
|
@@ -7947,29 +7989,29 @@ __decorateClass([
|
|
|
7947
7989
|
})
|
|
7948
7990
|
], CreateFreelancerDto.prototype, "confirmPassword", 2);
|
|
7949
7991
|
__decorateClass([
|
|
7950
|
-
(0,
|
|
7992
|
+
(0, import_class_validator77.IsOptional)(),
|
|
7951
7993
|
(0, import_class_transformer9.Transform)(({ value }) => {
|
|
7952
7994
|
if (Array.isArray(value)) value = value[0];
|
|
7953
7995
|
if (value === "true" || value === true) return true;
|
|
7954
7996
|
if (value === "false" || value === false) return false;
|
|
7955
7997
|
return void 0;
|
|
7956
7998
|
}),
|
|
7957
|
-
(0,
|
|
7999
|
+
(0, import_class_validator77.IsBoolean)({ message: "Developer flag must be true or false" })
|
|
7958
8000
|
], CreateFreelancerDto.prototype, "developer", 2);
|
|
7959
8001
|
__decorateClass([
|
|
7960
|
-
(0,
|
|
7961
|
-
(0,
|
|
8002
|
+
(0, import_class_validator77.IsOptional)(),
|
|
8003
|
+
(0, import_class_validator77.IsEnum)(NatureOfWorkEnum, {
|
|
7962
8004
|
message: `Nature of work must be one of: ${Object.values(
|
|
7963
8005
|
NatureOfWorkEnum
|
|
7964
8006
|
).join(", ")}`
|
|
7965
8007
|
})
|
|
7966
8008
|
], CreateFreelancerDto.prototype, "natureOfWork", 2);
|
|
7967
8009
|
__decorateClass([
|
|
7968
|
-
(0,
|
|
8010
|
+
(0, import_class_validator77.ValidateIf)(
|
|
7969
8011
|
(dto) => dto.natureOfWork === "FREELANCE" /* FREELANCE */ || dto.natureOfWork === "BOTH" /* BOTH */
|
|
7970
8012
|
),
|
|
7971
|
-
(0,
|
|
7972
|
-
(0,
|
|
8013
|
+
(0, import_class_validator77.IsOptional)(),
|
|
8014
|
+
(0, import_class_validator77.IsNumber)({}, { message: "Expected hourly compensation must be a number" }),
|
|
7973
8015
|
(0, import_class_transformer9.Transform)(({ value }) => {
|
|
7974
8016
|
if (Array.isArray(value)) value = value[0];
|
|
7975
8017
|
const num = Number(value);
|
|
@@ -7977,11 +8019,11 @@ __decorateClass([
|
|
|
7977
8019
|
})
|
|
7978
8020
|
], CreateFreelancerDto.prototype, "expectedHourlyCompensation", 2);
|
|
7979
8021
|
__decorateClass([
|
|
7980
|
-
(0,
|
|
8022
|
+
(0, import_class_validator77.ValidateIf)(
|
|
7981
8023
|
(dto) => dto.natureOfWork === "FTE" /* FTE */ || dto.natureOfWork === "BOTH" /* BOTH */
|
|
7982
8024
|
),
|
|
7983
|
-
(0,
|
|
7984
|
-
(0,
|
|
8025
|
+
(0, import_class_validator77.IsOptional)(),
|
|
8026
|
+
(0, import_class_validator77.IsNumber)({}, { message: "Expected annual compensation must be a number" }),
|
|
7985
8027
|
(0, import_class_transformer9.Transform)(({ value }) => {
|
|
7986
8028
|
if (Array.isArray(value)) value = value[0];
|
|
7987
8029
|
const num = Number(value);
|
|
@@ -7989,11 +8031,11 @@ __decorateClass([
|
|
|
7989
8031
|
})
|
|
7990
8032
|
], CreateFreelancerDto.prototype, "expectedAnnualCompensation", 2);
|
|
7991
8033
|
__decorateClass([
|
|
7992
|
-
(0,
|
|
8034
|
+
(0, import_class_validator77.ValidateIf)(
|
|
7993
8035
|
(dto) => dto.natureOfWork === "FREELANCE" /* FREELANCE */ || dto.natureOfWork === "BOTH" /* BOTH */
|
|
7994
8036
|
),
|
|
7995
|
-
(0,
|
|
7996
|
-
(0,
|
|
8037
|
+
(0, import_class_validator77.IsOptional)(),
|
|
8038
|
+
(0, import_class_validator77.IsInt)({ message: "Please enter valid weekly availability hours (integer)." }),
|
|
7997
8039
|
(0, import_class_transformer9.Transform)(({ value }) => {
|
|
7998
8040
|
if (Array.isArray(value)) value = value[0];
|
|
7999
8041
|
const num = Number(value);
|
|
@@ -8001,27 +8043,27 @@ __decorateClass([
|
|
|
8001
8043
|
})
|
|
8002
8044
|
], CreateFreelancerDto.prototype, "numberOfHours", 2);
|
|
8003
8045
|
__decorateClass([
|
|
8004
|
-
(0,
|
|
8005
|
-
(0,
|
|
8046
|
+
(0, import_class_validator77.IsOptional)(),
|
|
8047
|
+
(0, import_class_validator77.IsEnum)(ModeOfWorkEnum, {
|
|
8006
8048
|
message: `Mode of work must be one of: ${Object.values(ModeOfWorkEnum).join(
|
|
8007
8049
|
", "
|
|
8008
8050
|
)}`
|
|
8009
8051
|
})
|
|
8010
8052
|
], CreateFreelancerDto.prototype, "modeOfWork", 2);
|
|
8011
8053
|
__decorateClass([
|
|
8012
|
-
(0,
|
|
8054
|
+
(0, import_class_validator77.IsOptional)(),
|
|
8013
8055
|
(0, import_class_transformer9.Transform)(({ value }) => {
|
|
8014
8056
|
if (Array.isArray(value)) value = value[0];
|
|
8015
8057
|
if (value === "true" || value === true) return true;
|
|
8016
8058
|
if (value === "false" || value === false) return false;
|
|
8017
8059
|
return void 0;
|
|
8018
8060
|
}),
|
|
8019
|
-
(0,
|
|
8061
|
+
(0, import_class_validator77.IsBoolean)({ message: "isImmediateJoiner must be true or false" })
|
|
8020
8062
|
], CreateFreelancerDto.prototype, "isImmediateJoiner", 2);
|
|
8021
8063
|
__decorateClass([
|
|
8022
|
-
(0,
|
|
8023
|
-
(0,
|
|
8024
|
-
(0,
|
|
8064
|
+
(0, import_class_validator77.ValidateIf)((o) => o.isImmediateJoiner === false),
|
|
8065
|
+
(0, import_class_validator77.IsOptional)(),
|
|
8066
|
+
(0, import_class_validator77.IsString)({ message: "availabilityToJoin must be a string" }),
|
|
8025
8067
|
(0, import_class_transformer9.Transform)(({ value }) => {
|
|
8026
8068
|
if (Array.isArray(value)) {
|
|
8027
8069
|
const val = value[0];
|
|
@@ -8033,8 +8075,8 @@ __decorateClass([
|
|
|
8033
8075
|
})
|
|
8034
8076
|
], CreateFreelancerDto.prototype, "availabilityToJoin", 2);
|
|
8035
8077
|
__decorateClass([
|
|
8036
|
-
(0,
|
|
8037
|
-
(0,
|
|
8078
|
+
(0, import_class_validator77.IsOptional)(),
|
|
8079
|
+
(0, import_class_validator77.IsUrl)({}, { message: "LinkedIn profile link must be a valid URL" }),
|
|
8038
8080
|
(0, import_class_transformer9.Transform)(({ value }) => {
|
|
8039
8081
|
if (Array.isArray(value)) {
|
|
8040
8082
|
const val = value[0];
|
|
@@ -8046,8 +8088,8 @@ __decorateClass([
|
|
|
8046
8088
|
})
|
|
8047
8089
|
], CreateFreelancerDto.prototype, "linkedinProfileLink", 2);
|
|
8048
8090
|
__decorateClass([
|
|
8049
|
-
(0,
|
|
8050
|
-
(0,
|
|
8091
|
+
(0, import_class_validator77.IsOptional)(),
|
|
8092
|
+
(0, import_class_validator77.IsString)({ message: "Kaggle profile link must be a string" }),
|
|
8051
8093
|
(0, import_class_transformer9.Transform)(({ value }) => {
|
|
8052
8094
|
if (Array.isArray(value)) {
|
|
8053
8095
|
const val = value[0];
|
|
@@ -8059,8 +8101,8 @@ __decorateClass([
|
|
|
8059
8101
|
})
|
|
8060
8102
|
], CreateFreelancerDto.prototype, "kaggleProfileLink", 2);
|
|
8061
8103
|
__decorateClass([
|
|
8062
|
-
(0,
|
|
8063
|
-
(0,
|
|
8104
|
+
(0, import_class_validator77.IsOptional)(),
|
|
8105
|
+
(0, import_class_validator77.IsUrl)({}, { message: "GitHub profile link must be a valid URL" }),
|
|
8064
8106
|
(0, import_class_transformer9.Transform)(({ value }) => {
|
|
8065
8107
|
if (Array.isArray(value)) {
|
|
8066
8108
|
const val = value[0];
|
|
@@ -8072,8 +8114,8 @@ __decorateClass([
|
|
|
8072
8114
|
})
|
|
8073
8115
|
], CreateFreelancerDto.prototype, "githubProfileLink", 2);
|
|
8074
8116
|
__decorateClass([
|
|
8075
|
-
(0,
|
|
8076
|
-
(0,
|
|
8117
|
+
(0, import_class_validator77.IsOptional)(),
|
|
8118
|
+
(0, import_class_validator77.IsUrl)({}, { message: "StackOverflow profile link must be a valid URL" }),
|
|
8077
8119
|
(0, import_class_transformer9.Transform)(({ value }) => {
|
|
8078
8120
|
if (Array.isArray(value)) {
|
|
8079
8121
|
const val = value[0];
|
|
@@ -8085,8 +8127,8 @@ __decorateClass([
|
|
|
8085
8127
|
})
|
|
8086
8128
|
], CreateFreelancerDto.prototype, "stackOverflowProfileLink", 2);
|
|
8087
8129
|
__decorateClass([
|
|
8088
|
-
(0,
|
|
8089
|
-
(0,
|
|
8130
|
+
(0, import_class_validator77.IsOptional)(),
|
|
8131
|
+
(0, import_class_validator77.IsUrl)({}, { message: "Portfolio link must be a valid URL" }),
|
|
8090
8132
|
(0, import_class_transformer9.Transform)(({ value }) => {
|
|
8091
8133
|
if (Array.isArray(value)) {
|
|
8092
8134
|
const val = value[0];
|
|
@@ -8098,11 +8140,11 @@ __decorateClass([
|
|
|
8098
8140
|
})
|
|
8099
8141
|
], CreateFreelancerDto.prototype, "portfolioLink", 2);
|
|
8100
8142
|
__decorateClass([
|
|
8101
|
-
(0,
|
|
8143
|
+
(0, import_class_validator77.IsOptional)()
|
|
8102
8144
|
], CreateFreelancerDto.prototype, "file", 2);
|
|
8103
8145
|
|
|
8104
8146
|
// src/modules/freelancer-admin/dto/update-freelancer.dto.ts
|
|
8105
|
-
var
|
|
8147
|
+
var import_class_validator78 = require("class-validator");
|
|
8106
8148
|
var import_class_transformer10 = require("class-transformer");
|
|
8107
8149
|
var NatureOfWorkEnum2 = /* @__PURE__ */ ((NatureOfWorkEnum3) => {
|
|
8108
8150
|
NatureOfWorkEnum3["FTE"] = "FTE";
|
|
@@ -8119,41 +8161,41 @@ var ModeOfWorkEnum2 = /* @__PURE__ */ ((ModeOfWorkEnum3) => {
|
|
|
8119
8161
|
var UpdateFreelancerDto = class {
|
|
8120
8162
|
};
|
|
8121
8163
|
__decorateClass([
|
|
8122
|
-
(0,
|
|
8123
|
-
(0,
|
|
8124
|
-
(0,
|
|
8164
|
+
(0, import_class_validator78.IsOptional)(),
|
|
8165
|
+
(0, import_class_validator78.IsString)({ message: "Full name must be a string" }),
|
|
8166
|
+
(0, import_class_validator78.MaxLength)(100, { message: "Full name must not exceed 100 characters" }),
|
|
8125
8167
|
(0, import_class_transformer10.Transform)(({ value }) => {
|
|
8126
8168
|
if (Array.isArray(value)) return value[0]?.trim();
|
|
8127
8169
|
return typeof value === "string" ? value.trim() : value;
|
|
8128
8170
|
})
|
|
8129
8171
|
], UpdateFreelancerDto.prototype, "fullName", 2);
|
|
8130
8172
|
__decorateClass([
|
|
8131
|
-
(0,
|
|
8132
|
-
(0,
|
|
8173
|
+
(0, import_class_validator78.IsOptional)(),
|
|
8174
|
+
(0, import_class_validator78.IsEmail)({}, { message: "Invalid email address" }),
|
|
8133
8175
|
(0, import_class_transformer10.Transform)(({ value }) => {
|
|
8134
8176
|
if (Array.isArray(value)) return value[0]?.trim();
|
|
8135
8177
|
return typeof value === "string" ? value.trim() : value;
|
|
8136
8178
|
})
|
|
8137
8179
|
], UpdateFreelancerDto.prototype, "email", 2);
|
|
8138
8180
|
__decorateClass([
|
|
8139
|
-
(0,
|
|
8140
|
-
(0,
|
|
8181
|
+
(0, import_class_validator78.IsOptional)(),
|
|
8182
|
+
(0, import_class_validator78.IsString)({ message: "Mobile code must be a string (e.g., +1)" }),
|
|
8141
8183
|
(0, import_class_transformer10.Transform)(({ value }) => {
|
|
8142
8184
|
if (Array.isArray(value)) return value[0]?.trim();
|
|
8143
8185
|
return typeof value === "string" ? value.trim() : value;
|
|
8144
8186
|
})
|
|
8145
8187
|
], UpdateFreelancerDto.prototype, "mobileCode", 2);
|
|
8146
8188
|
__decorateClass([
|
|
8147
|
-
(0,
|
|
8148
|
-
(0,
|
|
8189
|
+
(0, import_class_validator78.IsOptional)(),
|
|
8190
|
+
(0, import_class_validator78.IsString)({ message: "Mobile must be a string (e.g., 1243253534)" }),
|
|
8149
8191
|
(0, import_class_transformer10.Transform)(({ value }) => {
|
|
8150
8192
|
if (Array.isArray(value)) return value[0]?.trim();
|
|
8151
8193
|
return typeof value === "string" ? value.trim() : value;
|
|
8152
8194
|
})
|
|
8153
8195
|
], UpdateFreelancerDto.prototype, "mobile", 2);
|
|
8154
8196
|
__decorateClass([
|
|
8155
|
-
(0,
|
|
8156
|
-
(0,
|
|
8197
|
+
(0, import_class_validator78.IsNotEmpty)({ message: "Please enter address." }),
|
|
8198
|
+
(0, import_class_validator78.IsString)({ message: "address must be a string" }),
|
|
8157
8199
|
(0, import_class_transformer10.Transform)(({ value }) => {
|
|
8158
8200
|
if (Array.isArray(value)) {
|
|
8159
8201
|
const val = value[0];
|
|
@@ -8163,8 +8205,8 @@ __decorateClass([
|
|
|
8163
8205
|
})
|
|
8164
8206
|
], UpdateFreelancerDto.prototype, "address", 2);
|
|
8165
8207
|
__decorateClass([
|
|
8166
|
-
(0,
|
|
8167
|
-
(0,
|
|
8208
|
+
(0, import_class_validator78.IsOptional)(),
|
|
8209
|
+
(0, import_class_validator78.IsString)({ message: "addressLine must be a string" }),
|
|
8168
8210
|
(0, import_class_transformer10.Transform)(({ value }) => {
|
|
8169
8211
|
if (Array.isArray(value)) {
|
|
8170
8212
|
const val = value[0];
|
|
@@ -8176,8 +8218,8 @@ __decorateClass([
|
|
|
8176
8218
|
})
|
|
8177
8219
|
], UpdateFreelancerDto.prototype, "addressLine", 2);
|
|
8178
8220
|
__decorateClass([
|
|
8179
|
-
(0,
|
|
8180
|
-
(0,
|
|
8221
|
+
(0, import_class_validator78.IsOptional)(),
|
|
8222
|
+
(0, import_class_validator78.IsInt)({ message: "countryId must be an integer" }),
|
|
8181
8223
|
(0, import_class_transformer10.Transform)(({ value }) => {
|
|
8182
8224
|
if (Array.isArray(value)) value = value[0];
|
|
8183
8225
|
const num = Number(value);
|
|
@@ -8185,8 +8227,8 @@ __decorateClass([
|
|
|
8185
8227
|
})
|
|
8186
8228
|
], UpdateFreelancerDto.prototype, "countryId", 2);
|
|
8187
8229
|
__decorateClass([
|
|
8188
|
-
(0,
|
|
8189
|
-
(0,
|
|
8230
|
+
(0, import_class_validator78.IsOptional)(),
|
|
8231
|
+
(0, import_class_validator78.IsInt)({ message: "stateId must be an integer" }),
|
|
8190
8232
|
(0, import_class_transformer10.Transform)(({ value }) => {
|
|
8191
8233
|
if (Array.isArray(value)) value = value[0];
|
|
8192
8234
|
const num = Number(value);
|
|
@@ -8194,8 +8236,8 @@ __decorateClass([
|
|
|
8194
8236
|
})
|
|
8195
8237
|
], UpdateFreelancerDto.prototype, "stateId", 2);
|
|
8196
8238
|
__decorateClass([
|
|
8197
|
-
(0,
|
|
8198
|
-
(0,
|
|
8239
|
+
(0, import_class_validator78.IsOptional)(),
|
|
8240
|
+
(0, import_class_validator78.IsInt)({ message: "cityId must be an integer" }),
|
|
8199
8241
|
(0, import_class_transformer10.Transform)(({ value }) => {
|
|
8200
8242
|
if (Array.isArray(value)) value = value[0];
|
|
8201
8243
|
const num = Number(value);
|
|
@@ -8203,8 +8245,8 @@ __decorateClass([
|
|
|
8203
8245
|
})
|
|
8204
8246
|
], UpdateFreelancerDto.prototype, "cityId", 2);
|
|
8205
8247
|
__decorateClass([
|
|
8206
|
-
(0,
|
|
8207
|
-
(0,
|
|
8248
|
+
(0, import_class_validator78.IsOptional)(),
|
|
8249
|
+
(0, import_class_validator78.IsString)({ message: "postalCode must be a string" }),
|
|
8208
8250
|
(0, import_class_transformer10.Transform)(({ value }) => {
|
|
8209
8251
|
if (Array.isArray(value)) {
|
|
8210
8252
|
const val = value[0];
|
|
@@ -8216,8 +8258,8 @@ __decorateClass([
|
|
|
8216
8258
|
})
|
|
8217
8259
|
], UpdateFreelancerDto.prototype, "postalCode", 2);
|
|
8218
8260
|
__decorateClass([
|
|
8219
|
-
(0,
|
|
8220
|
-
(0,
|
|
8261
|
+
(0, import_class_validator78.IsOptional)(),
|
|
8262
|
+
(0, import_class_validator78.IsString)({ message: "about must be a string" }),
|
|
8221
8263
|
(0, import_class_transformer10.Transform)(({ value }) => {
|
|
8222
8264
|
if (Array.isArray(value)) {
|
|
8223
8265
|
const val = value[0];
|
|
@@ -8229,8 +8271,8 @@ __decorateClass([
|
|
|
8229
8271
|
})
|
|
8230
8272
|
], UpdateFreelancerDto.prototype, "about", 2);
|
|
8231
8273
|
__decorateClass([
|
|
8232
|
-
(0,
|
|
8233
|
-
(0,
|
|
8274
|
+
(0, import_class_validator78.IsOptional)(),
|
|
8275
|
+
(0, import_class_validator78.IsString)({ message: "designation must be a string" }),
|
|
8234
8276
|
(0, import_class_transformer10.Transform)(({ value }) => {
|
|
8235
8277
|
if (Array.isArray(value)) {
|
|
8236
8278
|
const val = value[0];
|
|
@@ -8242,8 +8284,8 @@ __decorateClass([
|
|
|
8242
8284
|
})
|
|
8243
8285
|
], UpdateFreelancerDto.prototype, "designation", 2);
|
|
8244
8286
|
__decorateClass([
|
|
8245
|
-
(0,
|
|
8246
|
-
(0,
|
|
8287
|
+
(0, import_class_validator78.IsOptional)(),
|
|
8288
|
+
(0, import_class_validator78.IsNumber)({}, { message: "experience must be a number" }),
|
|
8247
8289
|
(0, import_class_transformer10.Transform)(({ value }) => {
|
|
8248
8290
|
if (Array.isArray(value)) value = value[0];
|
|
8249
8291
|
const num = Number(value);
|
|
@@ -8251,41 +8293,41 @@ __decorateClass([
|
|
|
8251
8293
|
})
|
|
8252
8294
|
], UpdateFreelancerDto.prototype, "experience", 2);
|
|
8253
8295
|
__decorateClass([
|
|
8254
|
-
(0,
|
|
8296
|
+
(0, import_class_validator78.IsOptional)(),
|
|
8255
8297
|
(0, import_class_transformer10.Transform)(({ value }) => {
|
|
8256
8298
|
if (Array.isArray(value)) value = value[0];
|
|
8257
8299
|
return value === null || value === "" ? void 0 : value;
|
|
8258
8300
|
}),
|
|
8259
|
-
(0,
|
|
8260
|
-
(0,
|
|
8261
|
-
(0,
|
|
8301
|
+
(0, import_class_validator78.MinLength)(6, { message: "Password must be at least 6 characters." }),
|
|
8302
|
+
(0, import_class_validator78.MaxLength)(32, { message: "Password must not exceed 32 characters." }),
|
|
8303
|
+
(0, import_class_validator78.Matches)(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
8262
8304
|
message: "Password must include letters, numbers and symbols."
|
|
8263
8305
|
})
|
|
8264
8306
|
], UpdateFreelancerDto.prototype, "password", 2);
|
|
8265
8307
|
__decorateClass([
|
|
8266
|
-
(0,
|
|
8308
|
+
(0, import_class_validator78.IsOptional)(),
|
|
8267
8309
|
(0, import_class_transformer10.Transform)(({ value }) => {
|
|
8268
8310
|
if (Array.isArray(value)) value = value[0];
|
|
8269
8311
|
if (value === "true" || value === true) return true;
|
|
8270
8312
|
if (value === "false" || value === false) return false;
|
|
8271
8313
|
return void 0;
|
|
8272
8314
|
}),
|
|
8273
|
-
(0,
|
|
8315
|
+
(0, import_class_validator78.IsBoolean)({ message: "Developer flag must be true or false" })
|
|
8274
8316
|
], UpdateFreelancerDto.prototype, "developer", 2);
|
|
8275
8317
|
__decorateClass([
|
|
8276
|
-
(0,
|
|
8277
|
-
(0,
|
|
8318
|
+
(0, import_class_validator78.IsOptional)(),
|
|
8319
|
+
(0, import_class_validator78.IsEnum)(NatureOfWorkEnum2, {
|
|
8278
8320
|
message: `Nature of work must be one of: ${Object.values(
|
|
8279
8321
|
NatureOfWorkEnum2
|
|
8280
8322
|
).join(", ")}`
|
|
8281
8323
|
})
|
|
8282
8324
|
], UpdateFreelancerDto.prototype, "natureOfWork", 2);
|
|
8283
8325
|
__decorateClass([
|
|
8284
|
-
(0,
|
|
8326
|
+
(0, import_class_validator78.ValidateIf)(
|
|
8285
8327
|
(dto) => dto.natureOfWork === "FREELANCE" /* FREELANCE */ || dto.natureOfWork === "BOTH" /* BOTH */
|
|
8286
8328
|
),
|
|
8287
|
-
(0,
|
|
8288
|
-
(0,
|
|
8329
|
+
(0, import_class_validator78.IsOptional)(),
|
|
8330
|
+
(0, import_class_validator78.IsNumber)({}, { message: "Expected hourly compensation must be a number" }),
|
|
8289
8331
|
(0, import_class_transformer10.Transform)(({ value }) => {
|
|
8290
8332
|
if (Array.isArray(value)) value = value[0];
|
|
8291
8333
|
const num = Number(value);
|
|
@@ -8293,11 +8335,11 @@ __decorateClass([
|
|
|
8293
8335
|
})
|
|
8294
8336
|
], UpdateFreelancerDto.prototype, "expectedHourlyCompensation", 2);
|
|
8295
8337
|
__decorateClass([
|
|
8296
|
-
(0,
|
|
8338
|
+
(0, import_class_validator78.ValidateIf)(
|
|
8297
8339
|
(dto) => dto.natureOfWork === "FTE" /* FTE */ || dto.natureOfWork === "BOTH" /* BOTH */
|
|
8298
8340
|
),
|
|
8299
|
-
(0,
|
|
8300
|
-
(0,
|
|
8341
|
+
(0, import_class_validator78.IsOptional)(),
|
|
8342
|
+
(0, import_class_validator78.IsNumber)({}, { message: "Expected annual compensation must be a number" }),
|
|
8301
8343
|
(0, import_class_transformer10.Transform)(({ value }) => {
|
|
8302
8344
|
if (Array.isArray(value)) value = value[0];
|
|
8303
8345
|
const num = Number(value);
|
|
@@ -8305,11 +8347,11 @@ __decorateClass([
|
|
|
8305
8347
|
})
|
|
8306
8348
|
], UpdateFreelancerDto.prototype, "expectedAnnualCompensation", 2);
|
|
8307
8349
|
__decorateClass([
|
|
8308
|
-
(0,
|
|
8350
|
+
(0, import_class_validator78.ValidateIf)(
|
|
8309
8351
|
(dto) => dto.natureOfWork === "FREELANCE" /* FREELANCE */ || dto.natureOfWork === "BOTH" /* BOTH */
|
|
8310
8352
|
),
|
|
8311
|
-
(0,
|
|
8312
|
-
(0,
|
|
8353
|
+
(0, import_class_validator78.IsOptional)(),
|
|
8354
|
+
(0, import_class_validator78.IsInt)({ message: "Please enter valid weekly availability hours (integer)." }),
|
|
8313
8355
|
(0, import_class_transformer10.Transform)(({ value }) => {
|
|
8314
8356
|
if (Array.isArray(value)) value = value[0];
|
|
8315
8357
|
const num = Number(value);
|
|
@@ -8317,27 +8359,27 @@ __decorateClass([
|
|
|
8317
8359
|
})
|
|
8318
8360
|
], UpdateFreelancerDto.prototype, "numberOfHours", 2);
|
|
8319
8361
|
__decorateClass([
|
|
8320
|
-
(0,
|
|
8321
|
-
(0,
|
|
8362
|
+
(0, import_class_validator78.IsOptional)(),
|
|
8363
|
+
(0, import_class_validator78.IsEnum)(ModeOfWorkEnum2, {
|
|
8322
8364
|
message: `Mode of work must be one of: ${Object.values(ModeOfWorkEnum2).join(
|
|
8323
8365
|
", "
|
|
8324
8366
|
)}`
|
|
8325
8367
|
})
|
|
8326
8368
|
], UpdateFreelancerDto.prototype, "modeOfWork", 2);
|
|
8327
8369
|
__decorateClass([
|
|
8328
|
-
(0,
|
|
8370
|
+
(0, import_class_validator78.IsOptional)(),
|
|
8329
8371
|
(0, import_class_transformer10.Transform)(({ value }) => {
|
|
8330
8372
|
if (Array.isArray(value)) value = value[0];
|
|
8331
8373
|
if (value === "true" || value === true) return true;
|
|
8332
8374
|
if (value === "false" || value === false) return false;
|
|
8333
8375
|
return void 0;
|
|
8334
8376
|
}),
|
|
8335
|
-
(0,
|
|
8377
|
+
(0, import_class_validator78.IsBoolean)({ message: "isImmediateJoiner must be true or false" })
|
|
8336
8378
|
], UpdateFreelancerDto.prototype, "isImmediateJoiner", 2);
|
|
8337
8379
|
__decorateClass([
|
|
8338
|
-
(0,
|
|
8339
|
-
(0,
|
|
8340
|
-
(0,
|
|
8380
|
+
(0, import_class_validator78.ValidateIf)((o) => o.isImmediateJoiner === false),
|
|
8381
|
+
(0, import_class_validator78.IsOptional)(),
|
|
8382
|
+
(0, import_class_validator78.IsString)({ message: "availabilityToJoin must be a string" }),
|
|
8341
8383
|
(0, import_class_transformer10.Transform)(({ value }) => {
|
|
8342
8384
|
if (Array.isArray(value)) {
|
|
8343
8385
|
const val = value[0];
|
|
@@ -8349,8 +8391,8 @@ __decorateClass([
|
|
|
8349
8391
|
})
|
|
8350
8392
|
], UpdateFreelancerDto.prototype, "availabilityToJoin", 2);
|
|
8351
8393
|
__decorateClass([
|
|
8352
|
-
(0,
|
|
8353
|
-
(0,
|
|
8394
|
+
(0, import_class_validator78.IsOptional)(),
|
|
8395
|
+
(0, import_class_validator78.IsUrl)({}, { message: "LinkedIn profile link must be a valid URL" }),
|
|
8354
8396
|
(0, import_class_transformer10.Transform)(({ value }) => {
|
|
8355
8397
|
if (Array.isArray(value)) {
|
|
8356
8398
|
const val = value[0];
|
|
@@ -8362,8 +8404,8 @@ __decorateClass([
|
|
|
8362
8404
|
})
|
|
8363
8405
|
], UpdateFreelancerDto.prototype, "linkedinProfileLink", 2);
|
|
8364
8406
|
__decorateClass([
|
|
8365
|
-
(0,
|
|
8366
|
-
(0,
|
|
8407
|
+
(0, import_class_validator78.IsOptional)(),
|
|
8408
|
+
(0, import_class_validator78.IsString)({ message: "Kaggle profile link must be a string" }),
|
|
8367
8409
|
(0, import_class_transformer10.Transform)(({ value }) => {
|
|
8368
8410
|
if (Array.isArray(value)) {
|
|
8369
8411
|
const val = value[0];
|
|
@@ -8375,8 +8417,8 @@ __decorateClass([
|
|
|
8375
8417
|
})
|
|
8376
8418
|
], UpdateFreelancerDto.prototype, "kaggleProfileLink", 2);
|
|
8377
8419
|
__decorateClass([
|
|
8378
|
-
(0,
|
|
8379
|
-
(0,
|
|
8420
|
+
(0, import_class_validator78.IsOptional)(),
|
|
8421
|
+
(0, import_class_validator78.IsUrl)({}, { message: "GitHub profile link must be a valid URL" }),
|
|
8380
8422
|
(0, import_class_transformer10.Transform)(({ value }) => {
|
|
8381
8423
|
if (Array.isArray(value)) {
|
|
8382
8424
|
const val = value[0];
|
|
@@ -8388,8 +8430,8 @@ __decorateClass([
|
|
|
8388
8430
|
})
|
|
8389
8431
|
], UpdateFreelancerDto.prototype, "githubProfileLink", 2);
|
|
8390
8432
|
__decorateClass([
|
|
8391
|
-
(0,
|
|
8392
|
-
(0,
|
|
8433
|
+
(0, import_class_validator78.IsOptional)(),
|
|
8434
|
+
(0, import_class_validator78.IsUrl)({}, { message: "StackOverflow profile link must be a valid URL" }),
|
|
8393
8435
|
(0, import_class_transformer10.Transform)(({ value }) => {
|
|
8394
8436
|
if (Array.isArray(value)) {
|
|
8395
8437
|
const val = value[0];
|
|
@@ -8401,8 +8443,8 @@ __decorateClass([
|
|
|
8401
8443
|
})
|
|
8402
8444
|
], UpdateFreelancerDto.prototype, "stackOverflowProfileLink", 2);
|
|
8403
8445
|
__decorateClass([
|
|
8404
|
-
(0,
|
|
8405
|
-
(0,
|
|
8446
|
+
(0, import_class_validator78.IsOptional)(),
|
|
8447
|
+
(0, import_class_validator78.IsUrl)({}, { message: "Portfolio link must be a valid URL" }),
|
|
8406
8448
|
(0, import_class_transformer10.Transform)(({ value }) => {
|
|
8407
8449
|
if (Array.isArray(value)) {
|
|
8408
8450
|
const val = value[0];
|
|
@@ -8414,20 +8456,20 @@ __decorateClass([
|
|
|
8414
8456
|
})
|
|
8415
8457
|
], UpdateFreelancerDto.prototype, "portfolioLink", 2);
|
|
8416
8458
|
__decorateClass([
|
|
8417
|
-
(0,
|
|
8459
|
+
(0, import_class_validator78.IsOptional)()
|
|
8418
8460
|
], UpdateFreelancerDto.prototype, "file", 2);
|
|
8419
8461
|
|
|
8420
8462
|
// src/modules/freelancer-admin/dto/send-ai-assessment-link.dto.ts
|
|
8421
|
-
var
|
|
8463
|
+
var import_class_validator79 = require("class-validator");
|
|
8422
8464
|
var SendAiAssessmentLinkDto = class {
|
|
8423
8465
|
};
|
|
8424
8466
|
__decorateClass([
|
|
8425
|
-
(0,
|
|
8426
|
-
(0,
|
|
8467
|
+
(0, import_class_validator79.IsUUID)("4", { message: "Freelancer UUID must be a valid UUID." }),
|
|
8468
|
+
(0, import_class_validator79.IsNotEmpty)({ message: "Freelancer UUID is required." })
|
|
8427
8469
|
], SendAiAssessmentLinkDto.prototype, "uuid", 2);
|
|
8428
8470
|
|
|
8429
8471
|
// src/modules/freelancer-admin/dto/update-assessment-request-status.dto.ts
|
|
8430
|
-
var
|
|
8472
|
+
var import_class_validator80 = require("class-validator");
|
|
8431
8473
|
var AssessmentRequestStatus = /* @__PURE__ */ ((AssessmentRequestStatus2) => {
|
|
8432
8474
|
AssessmentRequestStatus2["PENDING"] = "PENDING";
|
|
8433
8475
|
AssessmentRequestStatus2["APPROVED"] = "APPROVED";
|
|
@@ -8438,27 +8480,27 @@ var AssessmentRequestStatus = /* @__PURE__ */ ((AssessmentRequestStatus2) => {
|
|
|
8438
8480
|
var UpdateAssessmentRequestStatusDto = class {
|
|
8439
8481
|
};
|
|
8440
8482
|
__decorateClass([
|
|
8441
|
-
(0,
|
|
8483
|
+
(0, import_class_validator80.IsEnum)(AssessmentRequestStatus, {
|
|
8442
8484
|
message: `Status must be one of: ${Object.values(AssessmentRequestStatus).join(", ")}`
|
|
8443
8485
|
})
|
|
8444
8486
|
], UpdateAssessmentRequestStatusDto.prototype, "status", 2);
|
|
8445
8487
|
__decorateClass([
|
|
8446
|
-
(0,
|
|
8447
|
-
(0,
|
|
8488
|
+
(0, import_class_validator80.IsOptional)(),
|
|
8489
|
+
(0, import_class_validator80.IsString)()
|
|
8448
8490
|
], UpdateAssessmentRequestStatusDto.prototype, "remarks", 2);
|
|
8449
8491
|
|
|
8450
8492
|
// src/modules/freelancer-admin/dto/admin-export-freelancerV2-optimised.dto.ts
|
|
8451
|
-
var
|
|
8493
|
+
var import_class_validator81 = require("class-validator");
|
|
8452
8494
|
var import_class_transformer11 = require("class-transformer");
|
|
8453
8495
|
var AdminExportFreelancerV2OptimisedDto = class {
|
|
8454
8496
|
};
|
|
8455
8497
|
__decorateClass([
|
|
8456
|
-
(0,
|
|
8498
|
+
(0, import_class_validator81.IsOptional)(),
|
|
8457
8499
|
(0, import_class_transformer11.Transform)(
|
|
8458
8500
|
({ value }) => typeof value === "string" ? value.split(",").map((email) => email.trim().toLowerCase()).filter(Boolean) : []
|
|
8459
8501
|
),
|
|
8460
|
-
(0,
|
|
8461
|
-
(0,
|
|
8502
|
+
(0, import_class_validator81.IsArray)({ message: "customEmails must be an array" }),
|
|
8503
|
+
(0, import_class_validator81.IsEmail)({}, { each: true, message: "Each email must be a valid email address" })
|
|
8462
8504
|
], AdminExportFreelancerV2OptimisedDto.prototype, "customEmails", 2);
|
|
8463
8505
|
|
|
8464
8506
|
// src/modules/client-admin/pattern/pattern.ts
|
|
@@ -8476,190 +8518,190 @@ var CLIENT_ADMIN_PATTERNS = {
|
|
|
8476
8518
|
};
|
|
8477
8519
|
|
|
8478
8520
|
// src/modules/client-admin/dto/create-client.dto.ts
|
|
8479
|
-
var
|
|
8521
|
+
var import_class_validator82 = require("class-validator");
|
|
8480
8522
|
var import_class_transformer12 = require("class-transformer");
|
|
8481
8523
|
var CreateClientDto = class {
|
|
8482
8524
|
};
|
|
8483
8525
|
__decorateClass([
|
|
8484
|
-
(0,
|
|
8485
|
-
(0,
|
|
8526
|
+
(0, import_class_validator82.IsNotEmpty)({ message: "Please enter first name." }),
|
|
8527
|
+
(0, import_class_validator82.IsString)()
|
|
8486
8528
|
], CreateClientDto.prototype, "firstName", 2);
|
|
8487
8529
|
__decorateClass([
|
|
8488
|
-
(0,
|
|
8489
|
-
(0,
|
|
8530
|
+
(0, import_class_validator82.IsNotEmpty)({ message: "Please enter last name." }),
|
|
8531
|
+
(0, import_class_validator82.IsString)()
|
|
8490
8532
|
], CreateClientDto.prototype, "lastName", 2);
|
|
8491
8533
|
__decorateClass([
|
|
8492
|
-
(0,
|
|
8493
|
-
(0,
|
|
8534
|
+
(0, import_class_validator82.IsNotEmpty)({ message: "Please enter email." }),
|
|
8535
|
+
(0, import_class_validator82.IsEmail)()
|
|
8494
8536
|
], CreateClientDto.prototype, "email", 2);
|
|
8495
8537
|
__decorateClass([
|
|
8496
|
-
(0,
|
|
8497
|
-
(0,
|
|
8538
|
+
(0, import_class_validator82.IsNotEmpty)({ message: "Please enter mobile code." }),
|
|
8539
|
+
(0, import_class_validator82.IsString)({ message: "Mobile code must be a string." })
|
|
8498
8540
|
], CreateClientDto.prototype, "mobileCode", 2);
|
|
8499
8541
|
__decorateClass([
|
|
8500
|
-
(0,
|
|
8501
|
-
(0,
|
|
8542
|
+
(0, import_class_validator82.IsNotEmpty)({ message: "Please enter phone number." }),
|
|
8543
|
+
(0, import_class_validator82.IsString)({ message: "Phone number must be a string." })
|
|
8502
8544
|
], CreateClientDto.prototype, "phoneNumber", 2);
|
|
8503
8545
|
__decorateClass([
|
|
8504
|
-
(0,
|
|
8505
|
-
(0,
|
|
8506
|
-
(0,
|
|
8507
|
-
(0,
|
|
8546
|
+
(0, import_class_validator82.IsNotEmpty)({ message: "Please enter password." }),
|
|
8547
|
+
(0, import_class_validator82.MinLength)(6),
|
|
8548
|
+
(0, import_class_validator82.MaxLength)(32),
|
|
8549
|
+
(0, import_class_validator82.Matches)(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
8508
8550
|
message: "Password must include letters, numbers and symbols."
|
|
8509
8551
|
})
|
|
8510
8552
|
], CreateClientDto.prototype, "password", 2);
|
|
8511
8553
|
__decorateClass([
|
|
8512
|
-
(0,
|
|
8554
|
+
(0, import_class_validator82.IsNotEmpty)({ message: "Please enter confirm password." }),
|
|
8513
8555
|
Match("confirmPassword", { message: "Passwords do not match" })
|
|
8514
8556
|
], CreateClientDto.prototype, "confirmPassword", 2);
|
|
8515
8557
|
__decorateClass([
|
|
8516
|
-
(0,
|
|
8517
|
-
(0,
|
|
8558
|
+
(0, import_class_validator82.IsNotEmpty)({ message: "Please enter company name." }),
|
|
8559
|
+
(0, import_class_validator82.IsString)()
|
|
8518
8560
|
], CreateClientDto.prototype, "companyName", 2);
|
|
8519
8561
|
__decorateClass([
|
|
8520
|
-
(0,
|
|
8521
|
-
(0,
|
|
8562
|
+
(0, import_class_validator82.IsOptional)(),
|
|
8563
|
+
(0, import_class_validator82.IsString)()
|
|
8522
8564
|
], CreateClientDto.prototype, "foundUsOn", 2);
|
|
8523
8565
|
__decorateClass([
|
|
8524
|
-
(0,
|
|
8525
|
-
(0,
|
|
8566
|
+
(0, import_class_validator82.IsOptional)(),
|
|
8567
|
+
(0, import_class_validator82.IsString)()
|
|
8526
8568
|
], CreateClientDto.prototype, "foundUsOnDetail", 2);
|
|
8527
8569
|
__decorateClass([
|
|
8528
|
-
(0,
|
|
8529
|
-
(0,
|
|
8570
|
+
(0, import_class_validator82.IsOptional)(),
|
|
8571
|
+
(0, import_class_validator82.IsString)({ message: "About company must be a string." })
|
|
8530
8572
|
], CreateClientDto.prototype, "about", 2);
|
|
8531
8573
|
__decorateClass([
|
|
8532
|
-
(0,
|
|
8533
|
-
(0,
|
|
8574
|
+
(0, import_class_validator82.IsOptional)(),
|
|
8575
|
+
(0, import_class_validator82.IsUrl)({}, { message: "Website must be a valid URL." })
|
|
8534
8576
|
], CreateClientDto.prototype, "webSite", 2);
|
|
8535
8577
|
__decorateClass([
|
|
8536
|
-
(0,
|
|
8537
|
-
(0,
|
|
8578
|
+
(0, import_class_validator82.IsOptional)(),
|
|
8579
|
+
(0, import_class_validator82.IsString)({ message: "Company address must be a string." })
|
|
8538
8580
|
], CreateClientDto.prototype, "companyAddress", 2);
|
|
8539
8581
|
__decorateClass([
|
|
8540
|
-
(0,
|
|
8541
|
-
(0,
|
|
8582
|
+
(0, import_class_validator82.IsOptional)(),
|
|
8583
|
+
(0, import_class_validator82.IsString)({ message: "Address line must be a string." })
|
|
8542
8584
|
], CreateClientDto.prototype, "addressLine", 2);
|
|
8543
8585
|
__decorateClass([
|
|
8544
|
-
(0,
|
|
8545
|
-
(0,
|
|
8586
|
+
(0, import_class_validator82.IsOptional)(),
|
|
8587
|
+
(0, import_class_validator82.IsString)({ message: "Postal code must be a string." })
|
|
8546
8588
|
], CreateClientDto.prototype, "postalCode", 2);
|
|
8547
8589
|
__decorateClass([
|
|
8548
|
-
(0,
|
|
8549
|
-
(0,
|
|
8590
|
+
(0, import_class_validator82.IsOptional)(),
|
|
8591
|
+
(0, import_class_validator82.IsInt)({ message: "Country ID must be an integer." }),
|
|
8550
8592
|
(0, import_class_transformer12.Type)(() => Number)
|
|
8551
8593
|
], CreateClientDto.prototype, "countryId", 2);
|
|
8552
8594
|
__decorateClass([
|
|
8553
|
-
(0,
|
|
8554
|
-
(0,
|
|
8595
|
+
(0, import_class_validator82.IsOptional)(),
|
|
8596
|
+
(0, import_class_validator82.IsInt)({ message: "State ID must be an integer." }),
|
|
8555
8597
|
(0, import_class_transformer12.Type)(() => Number)
|
|
8556
8598
|
], CreateClientDto.prototype, "stateId", 2);
|
|
8557
8599
|
__decorateClass([
|
|
8558
|
-
(0,
|
|
8559
|
-
(0,
|
|
8600
|
+
(0, import_class_validator82.IsOptional)(),
|
|
8601
|
+
(0, import_class_validator82.IsInt)({ message: "City ID must be an integer." }),
|
|
8560
8602
|
(0, import_class_transformer12.Type)(() => Number)
|
|
8561
8603
|
], CreateClientDto.prototype, "cityId", 2);
|
|
8562
8604
|
|
|
8563
8605
|
// src/modules/client-admin/dto/update-client-status.dto.ts
|
|
8564
|
-
var
|
|
8606
|
+
var import_class_validator83 = require("class-validator");
|
|
8565
8607
|
var UpdateClientAccountStatusDto = class {
|
|
8566
8608
|
};
|
|
8567
8609
|
__decorateClass([
|
|
8568
|
-
(0,
|
|
8569
|
-
(0,
|
|
8610
|
+
(0, import_class_validator83.IsNotEmpty)({ message: "Please enter account status." }),
|
|
8611
|
+
(0, import_class_validator83.IsString)()
|
|
8570
8612
|
], UpdateClientAccountStatusDto.prototype, "accountStatus", 2);
|
|
8571
8613
|
|
|
8572
8614
|
// src/modules/client-admin/dto/update-client.dto.ts
|
|
8573
8615
|
var import_class_transformer13 = require("class-transformer");
|
|
8574
|
-
var
|
|
8616
|
+
var import_class_validator84 = require("class-validator");
|
|
8575
8617
|
var UpdateClientDto = class {
|
|
8576
8618
|
};
|
|
8577
8619
|
__decorateClass([
|
|
8578
|
-
(0,
|
|
8579
|
-
(0,
|
|
8620
|
+
(0, import_class_validator84.IsNotEmpty)({ message: "Please enter first name." }),
|
|
8621
|
+
(0, import_class_validator84.IsString)()
|
|
8580
8622
|
], UpdateClientDto.prototype, "firstName", 2);
|
|
8581
8623
|
__decorateClass([
|
|
8582
|
-
(0,
|
|
8583
|
-
(0,
|
|
8624
|
+
(0, import_class_validator84.IsNotEmpty)({ message: "Please enter last name." }),
|
|
8625
|
+
(0, import_class_validator84.IsString)()
|
|
8584
8626
|
], UpdateClientDto.prototype, "lastName", 2);
|
|
8585
8627
|
__decorateClass([
|
|
8586
|
-
(0,
|
|
8587
|
-
(0,
|
|
8628
|
+
(0, import_class_validator84.IsNotEmpty)({ message: "Please enter email." }),
|
|
8629
|
+
(0, import_class_validator84.IsEmail)()
|
|
8588
8630
|
], UpdateClientDto.prototype, "email", 2);
|
|
8589
8631
|
__decorateClass([
|
|
8590
|
-
(0,
|
|
8591
|
-
(0,
|
|
8632
|
+
(0, import_class_validator84.IsOptional)(),
|
|
8633
|
+
(0, import_class_validator84.IsString)({ message: "Mobile code must be a string." })
|
|
8592
8634
|
], UpdateClientDto.prototype, "mobileCode", 2);
|
|
8593
8635
|
__decorateClass([
|
|
8594
|
-
(0,
|
|
8595
|
-
(0,
|
|
8636
|
+
(0, import_class_validator84.IsOptional)(),
|
|
8637
|
+
(0, import_class_validator84.IsString)({ message: "Phone number must be a string." })
|
|
8596
8638
|
], UpdateClientDto.prototype, "phoneNumber", 2);
|
|
8597
8639
|
__decorateClass([
|
|
8598
|
-
(0,
|
|
8640
|
+
(0, import_class_validator84.IsOptional)(),
|
|
8599
8641
|
(0, import_class_transformer13.Transform)(({ value }) => value === null || value === "" ? void 0 : value),
|
|
8600
|
-
(0,
|
|
8601
|
-
(0,
|
|
8602
|
-
(0,
|
|
8642
|
+
(0, import_class_validator84.MinLength)(6, { message: "Password must be at least 6 characters." }),
|
|
8643
|
+
(0, import_class_validator84.MaxLength)(32, { message: "Password must not exceed 32 characters." }),
|
|
8644
|
+
(0, import_class_validator84.Matches)(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
8603
8645
|
message: "Password must include letters, numbers and symbols."
|
|
8604
8646
|
})
|
|
8605
8647
|
], UpdateClientDto.prototype, "password", 2);
|
|
8606
8648
|
__decorateClass([
|
|
8607
|
-
(0,
|
|
8608
|
-
(0,
|
|
8649
|
+
(0, import_class_validator84.IsNotEmpty)({ message: "Please enter company name." }),
|
|
8650
|
+
(0, import_class_validator84.IsString)()
|
|
8609
8651
|
], UpdateClientDto.prototype, "companyName", 2);
|
|
8610
8652
|
__decorateClass([
|
|
8611
|
-
(0,
|
|
8612
|
-
(0,
|
|
8653
|
+
(0, import_class_validator84.IsOptional)(),
|
|
8654
|
+
(0, import_class_validator84.IsString)()
|
|
8613
8655
|
], UpdateClientDto.prototype, "foundUsOn", 2);
|
|
8614
8656
|
__decorateClass([
|
|
8615
|
-
(0,
|
|
8616
|
-
(0,
|
|
8657
|
+
(0, import_class_validator84.IsOptional)(),
|
|
8658
|
+
(0, import_class_validator84.IsString)()
|
|
8617
8659
|
], UpdateClientDto.prototype, "foundUsOnDetail", 2);
|
|
8618
8660
|
__decorateClass([
|
|
8619
|
-
(0,
|
|
8620
|
-
(0,
|
|
8661
|
+
(0, import_class_validator84.IsOptional)(),
|
|
8662
|
+
(0, import_class_validator84.IsString)({ message: "About company must be a string." })
|
|
8621
8663
|
], UpdateClientDto.prototype, "about", 2);
|
|
8622
8664
|
__decorateClass([
|
|
8623
|
-
(0,
|
|
8624
|
-
(0,
|
|
8665
|
+
(0, import_class_validator84.IsOptional)(),
|
|
8666
|
+
(0, import_class_validator84.IsString)({ message: "Website must be a string." })
|
|
8625
8667
|
], UpdateClientDto.prototype, "webSite", 2);
|
|
8626
8668
|
__decorateClass([
|
|
8627
|
-
(0,
|
|
8628
|
-
(0,
|
|
8669
|
+
(0, import_class_validator84.IsOptional)(),
|
|
8670
|
+
(0, import_class_validator84.IsString)({ message: "Company address must be a string." })
|
|
8629
8671
|
], UpdateClientDto.prototype, "companyAddress", 2);
|
|
8630
8672
|
__decorateClass([
|
|
8631
|
-
(0,
|
|
8632
|
-
(0,
|
|
8673
|
+
(0, import_class_validator84.IsOptional)(),
|
|
8674
|
+
(0, import_class_validator84.IsString)({ message: "Address line must be a string." })
|
|
8633
8675
|
], UpdateClientDto.prototype, "addressLine", 2);
|
|
8634
8676
|
__decorateClass([
|
|
8635
|
-
(0,
|
|
8636
|
-
(0,
|
|
8677
|
+
(0, import_class_validator84.IsOptional)(),
|
|
8678
|
+
(0, import_class_validator84.IsString)({ message: "Postal code must be a string." })
|
|
8637
8679
|
], UpdateClientDto.prototype, "postalCode", 2);
|
|
8638
8680
|
__decorateClass([
|
|
8639
|
-
(0,
|
|
8681
|
+
(0, import_class_validator84.IsOptional)(),
|
|
8640
8682
|
(0, import_class_transformer13.Type)(() => Number)
|
|
8641
8683
|
], UpdateClientDto.prototype, "countryId", 2);
|
|
8642
8684
|
__decorateClass([
|
|
8643
|
-
(0,
|
|
8685
|
+
(0, import_class_validator84.IsOptional)(),
|
|
8644
8686
|
(0, import_class_transformer13.Type)(() => Number)
|
|
8645
8687
|
], UpdateClientDto.prototype, "stateId", 2);
|
|
8646
8688
|
__decorateClass([
|
|
8647
|
-
(0,
|
|
8689
|
+
(0, import_class_validator84.IsOptional)(),
|
|
8648
8690
|
(0, import_class_transformer13.Type)(() => Number)
|
|
8649
8691
|
], UpdateClientDto.prototype, "cityId", 2);
|
|
8650
8692
|
|
|
8651
8693
|
// src/modules/client-admin/dto/admin-export-clientV2-optimised.dto.ts
|
|
8652
|
-
var
|
|
8694
|
+
var import_class_validator85 = require("class-validator");
|
|
8653
8695
|
var import_class_transformer14 = require("class-transformer");
|
|
8654
8696
|
var AdminExportClientV2OptimisedDto = class {
|
|
8655
8697
|
};
|
|
8656
8698
|
__decorateClass([
|
|
8657
|
-
(0,
|
|
8699
|
+
(0, import_class_validator85.IsOptional)(),
|
|
8658
8700
|
(0, import_class_transformer14.Transform)(
|
|
8659
8701
|
({ value }) => typeof value === "string" ? value.split(",").map((email) => email.trim().toLowerCase()).filter(Boolean) : []
|
|
8660
8702
|
),
|
|
8661
|
-
(0,
|
|
8662
|
-
(0,
|
|
8703
|
+
(0, import_class_validator85.IsArray)({ message: "customEmails must be an array" }),
|
|
8704
|
+
(0, import_class_validator85.IsEmail)({}, { each: true, message: "Each email must be a valid email address" })
|
|
8663
8705
|
], AdminExportClientV2OptimisedDto.prototype, "customEmails", 2);
|
|
8664
8706
|
|
|
8665
8707
|
// src/modules/user/freelancer-declaration/pattern/pattern.ts
|
|
@@ -8669,7 +8711,7 @@ var FREELANCER_DECLARATION_PATTERN = {
|
|
|
8669
8711
|
};
|
|
8670
8712
|
|
|
8671
8713
|
// src/modules/user/freelancer-declaration/dto/freelancer-declaration.dto.ts
|
|
8672
|
-
var
|
|
8714
|
+
var import_class_validator86 = require("class-validator");
|
|
8673
8715
|
var DocumentTypeEnum = /* @__PURE__ */ ((DocumentTypeEnum2) => {
|
|
8674
8716
|
DocumentTypeEnum2["AADHAAR"] = "AADHAAR_CARD";
|
|
8675
8717
|
DocumentTypeEnum2["PASSPORT"] = "PASSPORT";
|
|
@@ -8680,16 +8722,16 @@ var DocumentTypeEnum = /* @__PURE__ */ ((DocumentTypeEnum2) => {
|
|
|
8680
8722
|
var FreelancerDeclarationDto = class {
|
|
8681
8723
|
};
|
|
8682
8724
|
__decorateClass([
|
|
8683
|
-
(0,
|
|
8684
|
-
(0,
|
|
8725
|
+
(0, import_class_validator86.IsOptional)(),
|
|
8726
|
+
(0, import_class_validator86.IsString)({ message: "UUID must be a string" })
|
|
8685
8727
|
], FreelancerDeclarationDto.prototype, "uuid", 2);
|
|
8686
8728
|
__decorateClass([
|
|
8687
|
-
(0,
|
|
8729
|
+
(0, import_class_validator86.IsEnum)(DocumentTypeEnum, { message: "Document type must be one of AADHAAR_CARD, PASSPORT, DRIVING_LICENSE, PAN_CARD" })
|
|
8688
8730
|
], FreelancerDeclarationDto.prototype, "documentType", 2);
|
|
8689
8731
|
__decorateClass([
|
|
8690
|
-
(0,
|
|
8691
|
-
(0,
|
|
8692
|
-
(0,
|
|
8732
|
+
(0, import_class_validator86.IsNotEmpty)({ message: "Please accept the declaration " }),
|
|
8733
|
+
(0, import_class_validator86.IsString)(),
|
|
8734
|
+
(0, import_class_validator86.IsIn)([
|
|
8693
8735
|
"true"
|
|
8694
8736
|
])
|
|
8695
8737
|
], FreelancerDeclarationDto.prototype, "declarationAccepted", 2);
|
|
@@ -8704,35 +8746,35 @@ var CLIENT_CANDIDATE_PREFERENCE_PATTERN = {
|
|
|
8704
8746
|
};
|
|
8705
8747
|
|
|
8706
8748
|
// src/modules/user/client-candidate-preference/dto/mark-candidate-status.dto.ts
|
|
8707
|
-
var
|
|
8749
|
+
var import_class_validator87 = require("class-validator");
|
|
8708
8750
|
var import_class_transformer15 = require("class-transformer");
|
|
8709
8751
|
var MarkCandidateStatusDto = class {
|
|
8710
8752
|
};
|
|
8711
8753
|
__decorateClass([
|
|
8712
|
-
(0,
|
|
8713
|
-
(0,
|
|
8754
|
+
(0, import_class_validator87.IsNotEmpty)({ message: "Candidate ID is required." }),
|
|
8755
|
+
(0, import_class_validator87.IsNumber)({}, { message: "Candidate ID must be a number." }),
|
|
8714
8756
|
(0, import_class_transformer15.Type)(() => Number)
|
|
8715
8757
|
], MarkCandidateStatusDto.prototype, "candidateId", 2);
|
|
8716
8758
|
__decorateClass([
|
|
8717
|
-
(0,
|
|
8718
|
-
(0,
|
|
8759
|
+
(0, import_class_validator87.IsOptional)(),
|
|
8760
|
+
(0, import_class_validator87.IsNumber)({}, { message: "Job ID must be a number." }),
|
|
8719
8761
|
(0, import_class_transformer15.Type)(() => Number)
|
|
8720
8762
|
], MarkCandidateStatusDto.prototype, "jobId", 2);
|
|
8721
8763
|
|
|
8722
8764
|
// src/modules/user/client-candidate-preference/dto/mark-candidate-status-bulk.dto.ts
|
|
8723
|
-
var
|
|
8765
|
+
var import_class_validator88 = require("class-validator");
|
|
8724
8766
|
var import_class_transformer16 = require("class-transformer");
|
|
8725
8767
|
var MarkCandidateStatusBulkDto = class {
|
|
8726
8768
|
};
|
|
8727
8769
|
__decorateClass([
|
|
8728
|
-
(0,
|
|
8729
|
-
(0,
|
|
8730
|
-
(0,
|
|
8770
|
+
(0, import_class_validator88.IsArray)({ message: "Candidate IDs must be an array." }),
|
|
8771
|
+
(0, import_class_validator88.ArrayNotEmpty)({ message: "At least one candidate ID is required." }),
|
|
8772
|
+
(0, import_class_validator88.IsNumber)({}, { each: true, message: "Each candidate ID must be a number." }),
|
|
8731
8773
|
(0, import_class_transformer16.Type)(() => Number)
|
|
8732
8774
|
], MarkCandidateStatusBulkDto.prototype, "candidateIds", 2);
|
|
8733
8775
|
__decorateClass([
|
|
8734
|
-
(0,
|
|
8735
|
-
(0,
|
|
8776
|
+
(0, import_class_validator88.IsOptional)(),
|
|
8777
|
+
(0, import_class_validator88.IsNumber)({}, { message: "Job ID must be a number." }),
|
|
8736
8778
|
(0, import_class_transformer16.Type)(() => Number)
|
|
8737
8779
|
], MarkCandidateStatusBulkDto.prototype, "jobId", 2);
|
|
8738
8780
|
|
|
@@ -8747,45 +8789,45 @@ var CMS_PATTERNS = {
|
|
|
8747
8789
|
};
|
|
8748
8790
|
|
|
8749
8791
|
// src/modules/cms/dto/create-cms.dto.ts
|
|
8750
|
-
var
|
|
8792
|
+
var import_class_validator89 = require("class-validator");
|
|
8751
8793
|
var CreateCmsDto = class {
|
|
8752
8794
|
};
|
|
8753
8795
|
__decorateClass([
|
|
8754
|
-
(0,
|
|
8796
|
+
(0, import_class_validator89.IsNotEmpty)({ message: "Please enter name." })
|
|
8755
8797
|
], CreateCmsDto.prototype, "title", 2);
|
|
8756
8798
|
__decorateClass([
|
|
8757
|
-
(0,
|
|
8799
|
+
(0, import_class_validator89.IsOptional)()
|
|
8758
8800
|
], CreateCmsDto.prototype, "content", 2);
|
|
8759
8801
|
__decorateClass([
|
|
8760
|
-
(0,
|
|
8761
|
-
(0,
|
|
8802
|
+
(0, import_class_validator89.IsOptional)(),
|
|
8803
|
+
(0, import_class_validator89.IsBoolean)({ message: "Is active must be a boolean value" })
|
|
8762
8804
|
], CreateCmsDto.prototype, "isActive", 2);
|
|
8763
8805
|
|
|
8764
8806
|
// src/modules/cms/dto/update-cms-status.dto.ts
|
|
8765
|
-
var
|
|
8807
|
+
var import_class_validator90 = require("class-validator");
|
|
8766
8808
|
var UpdateCmsStatusDto = class {
|
|
8767
8809
|
};
|
|
8768
8810
|
__decorateClass([
|
|
8769
|
-
(0,
|
|
8770
|
-
(0,
|
|
8811
|
+
(0, import_class_validator90.IsNotEmpty)({ message: "Please specify cms status." }),
|
|
8812
|
+
(0, import_class_validator90.IsBoolean)({ message: "Is active must be a boolean value" })
|
|
8771
8813
|
], UpdateCmsStatusDto.prototype, "isActive", 2);
|
|
8772
8814
|
|
|
8773
8815
|
// src/modules/cms/dto/update-cms.dto.ts
|
|
8774
|
-
var
|
|
8816
|
+
var import_class_validator91 = require("class-validator");
|
|
8775
8817
|
var UpdateCmsDto = class {
|
|
8776
8818
|
};
|
|
8777
8819
|
__decorateClass([
|
|
8778
|
-
(0,
|
|
8820
|
+
(0, import_class_validator91.IsOptional)()
|
|
8779
8821
|
], UpdateCmsDto.prototype, "uuid", 2);
|
|
8780
8822
|
__decorateClass([
|
|
8781
|
-
(0,
|
|
8823
|
+
(0, import_class_validator91.IsNotEmpty)({ message: "Please enter name." })
|
|
8782
8824
|
], UpdateCmsDto.prototype, "title", 2);
|
|
8783
8825
|
__decorateClass([
|
|
8784
|
-
(0,
|
|
8826
|
+
(0, import_class_validator91.IsOptional)()
|
|
8785
8827
|
], UpdateCmsDto.prototype, "content", 2);
|
|
8786
8828
|
__decorateClass([
|
|
8787
|
-
(0,
|
|
8788
|
-
(0,
|
|
8829
|
+
(0, import_class_validator91.IsOptional)(),
|
|
8830
|
+
(0, import_class_validator91.IsBoolean)({ message: "Is active must be a boolean value" })
|
|
8789
8831
|
], UpdateCmsDto.prototype, "isActive", 2);
|
|
8790
8832
|
|
|
8791
8833
|
// src/modules/geographic/pattern/pattern.ts
|
|
@@ -8819,7 +8861,7 @@ var ADMIN_JOB_PATTERN = {
|
|
|
8819
8861
|
|
|
8820
8862
|
// src/modules/job-admin/dto/admin-create-job-information.dto.ts
|
|
8821
8863
|
var import_class_transformer17 = require("class-transformer");
|
|
8822
|
-
var
|
|
8864
|
+
var import_class_validator92 = require("class-validator");
|
|
8823
8865
|
var JobLocationEnumDto = /* @__PURE__ */ ((JobLocationEnumDto2) => {
|
|
8824
8866
|
JobLocationEnumDto2["ONSITE"] = "ONSITE";
|
|
8825
8867
|
JobLocationEnumDto2["REMOTE"] = "REMOTE";
|
|
@@ -8835,91 +8877,91 @@ var TypeOfEmploymentEnumDto = /* @__PURE__ */ ((TypeOfEmploymentEnumDto2) => {
|
|
|
8835
8877
|
var AdminCreateJobInformationDto = class {
|
|
8836
8878
|
};
|
|
8837
8879
|
__decorateClass([
|
|
8838
|
-
(0,
|
|
8839
|
-
(0,
|
|
8880
|
+
(0, import_class_validator92.IsString)({ message: "Job role must be a string." }),
|
|
8881
|
+
(0, import_class_validator92.IsNotEmpty)({ message: "Job role is required." })
|
|
8840
8882
|
], AdminCreateJobInformationDto.prototype, "jobRole", 2);
|
|
8841
8883
|
__decorateClass([
|
|
8842
|
-
(0,
|
|
8843
|
-
(0,
|
|
8884
|
+
(0, import_class_validator92.IsOptional)(),
|
|
8885
|
+
(0, import_class_validator92.IsString)({ message: "Note must be a string." })
|
|
8844
8886
|
], AdminCreateJobInformationDto.prototype, "note", 2);
|
|
8845
8887
|
__decorateClass([
|
|
8846
|
-
(0,
|
|
8847
|
-
(0,
|
|
8848
|
-
(0,
|
|
8888
|
+
(0, import_class_validator92.IsArray)({ message: "Skills must be an array of skill names." }),
|
|
8889
|
+
(0, import_class_validator92.ArrayNotEmpty)({ message: "At least one skill must be provided." }),
|
|
8890
|
+
(0, import_class_validator92.IsString)({ each: true, message: "Each skill must be a valid string." })
|
|
8849
8891
|
], AdminCreateJobInformationDto.prototype, "skills", 2);
|
|
8850
8892
|
__decorateClass([
|
|
8851
|
-
(0,
|
|
8852
|
-
(0,
|
|
8893
|
+
(0, import_class_validator92.IsInt)({ message: "Openings must be a valid integer." }),
|
|
8894
|
+
(0, import_class_validator92.Min)(1, { message: "There must be at least one opening." })
|
|
8853
8895
|
], AdminCreateJobInformationDto.prototype, "openings", 2);
|
|
8854
8896
|
__decorateClass([
|
|
8855
|
-
(0,
|
|
8897
|
+
(0, import_class_validator92.IsEnum)(JobLocationEnumDto, {
|
|
8856
8898
|
message: `Location must be one of: ${Object.values(JobLocationEnumDto).join(
|
|
8857
8899
|
", "
|
|
8858
8900
|
)}.`
|
|
8859
8901
|
})
|
|
8860
8902
|
], AdminCreateJobInformationDto.prototype, "location", 2);
|
|
8861
8903
|
__decorateClass([
|
|
8862
|
-
(0,
|
|
8904
|
+
(0, import_class_validator92.IsEnum)(TypeOfEmploymentEnumDto, {
|
|
8863
8905
|
message: `Type of employment must be one of: ${Object.values(
|
|
8864
8906
|
TypeOfEmploymentEnumDto
|
|
8865
8907
|
).join(", ")}.`
|
|
8866
8908
|
})
|
|
8867
8909
|
], AdminCreateJobInformationDto.prototype, "typeOfEmployment", 2);
|
|
8868
8910
|
__decorateClass([
|
|
8869
|
-
(0,
|
|
8870
|
-
(0,
|
|
8911
|
+
(0, import_class_validator92.IsString)({ message: "Onboarding Days must be a string." }),
|
|
8912
|
+
(0, import_class_validator92.IsNotEmpty)({ message: "Onboarding Days is required." })
|
|
8871
8913
|
], AdminCreateJobInformationDto.prototype, "onboardingTat", 2);
|
|
8872
8914
|
__decorateClass([
|
|
8873
|
-
(0,
|
|
8874
|
-
(0,
|
|
8915
|
+
(0, import_class_validator92.IsString)({ message: "Communication skills must be a string." }),
|
|
8916
|
+
(0, import_class_validator92.IsNotEmpty)({ message: "Communication skills are required." })
|
|
8875
8917
|
], AdminCreateJobInformationDto.prototype, "candidateCommunicationSkills", 2);
|
|
8876
8918
|
__decorateClass([
|
|
8877
|
-
(0,
|
|
8878
|
-
(0,
|
|
8919
|
+
(0, import_class_validator92.IsString)({ message: "Currency must be a string." }),
|
|
8920
|
+
(0, import_class_validator92.IsNotEmpty)({ message: "Currency is required." })
|
|
8879
8921
|
], AdminCreateJobInformationDto.prototype, "currency", 2);
|
|
8880
8922
|
__decorateClass([
|
|
8881
8923
|
(0, import_class_transformer17.Type)(() => Number),
|
|
8882
|
-
(0,
|
|
8924
|
+
(0, import_class_validator92.IsNumber)({}, { message: "Expected salary from must be a number." })
|
|
8883
8925
|
], AdminCreateJobInformationDto.prototype, "expectedSalaryFrom", 2);
|
|
8884
8926
|
__decorateClass([
|
|
8885
8927
|
(0, import_class_transformer17.Type)(() => Number),
|
|
8886
|
-
(0,
|
|
8928
|
+
(0, import_class_validator92.IsNumber)({}, { message: "Expected salary to must be a number." })
|
|
8887
8929
|
], AdminCreateJobInformationDto.prototype, "expectedSalaryTo", 2);
|
|
8888
8930
|
__decorateClass([
|
|
8889
|
-
(0,
|
|
8931
|
+
(0, import_class_validator92.IsDateString)(
|
|
8890
8932
|
{ strict: true },
|
|
8891
8933
|
{ message: "Start date must be in YYYY-MM-DD format." }
|
|
8892
8934
|
)
|
|
8893
8935
|
], AdminCreateJobInformationDto.prototype, "tentativeStartDate", 2);
|
|
8894
8936
|
__decorateClass([
|
|
8895
|
-
(0,
|
|
8937
|
+
(0, import_class_validator92.IsDateString)(
|
|
8896
8938
|
{ strict: true },
|
|
8897
8939
|
{ message: "End date must be in YYYY-MM-DD format." }
|
|
8898
8940
|
)
|
|
8899
8941
|
], AdminCreateJobInformationDto.prototype, "tentativeEndDate", 2);
|
|
8900
8942
|
__decorateClass([
|
|
8901
|
-
(0,
|
|
8902
|
-
(0,
|
|
8943
|
+
(0, import_class_validator92.IsOptional)(),
|
|
8944
|
+
(0, import_class_validator92.IsString)({ message: "Additional comment must be a string." })
|
|
8903
8945
|
], AdminCreateJobInformationDto.prototype, "additionalComment", 2);
|
|
8904
8946
|
__decorateClass([
|
|
8905
|
-
(0,
|
|
8906
|
-
(0,
|
|
8947
|
+
(0, import_class_validator92.IsOptional)(),
|
|
8948
|
+
(0, import_class_validator92.IsInt)({ message: "Country ID must be a valid integer." })
|
|
8907
8949
|
], AdminCreateJobInformationDto.prototype, "countryId", 2);
|
|
8908
8950
|
__decorateClass([
|
|
8909
|
-
(0,
|
|
8910
|
-
(0,
|
|
8951
|
+
(0, import_class_validator92.IsOptional)(),
|
|
8952
|
+
(0, import_class_validator92.IsInt)({ message: "State ID must be a valid integer." })
|
|
8911
8953
|
], AdminCreateJobInformationDto.prototype, "stateId", 2);
|
|
8912
8954
|
__decorateClass([
|
|
8913
|
-
(0,
|
|
8914
|
-
(0,
|
|
8955
|
+
(0, import_class_validator92.IsOptional)(),
|
|
8956
|
+
(0, import_class_validator92.IsInt)({ message: "City ID must be a valid integer." })
|
|
8915
8957
|
], AdminCreateJobInformationDto.prototype, "cityId", 2);
|
|
8916
8958
|
__decorateClass([
|
|
8917
|
-
(0,
|
|
8959
|
+
(0, import_class_validator92.IsInt)({ message: "Client ID must be a valid integer." })
|
|
8918
8960
|
], AdminCreateJobInformationDto.prototype, "clientId", 2);
|
|
8919
8961
|
|
|
8920
8962
|
// src/modules/job-admin/dto/admin-update-job-information.dto.ts
|
|
8921
8963
|
var import_class_transformer18 = require("class-transformer");
|
|
8922
|
-
var
|
|
8964
|
+
var import_class_validator93 = require("class-validator");
|
|
8923
8965
|
var JobLocationEnums = /* @__PURE__ */ ((JobLocationEnums2) => {
|
|
8924
8966
|
JobLocationEnums2["ONSITE"] = "ONSITE";
|
|
8925
8967
|
JobLocationEnums2["REMOTE"] = "REMOTE";
|
|
@@ -8935,90 +8977,90 @@ var TypeOfEmploymentEnums = /* @__PURE__ */ ((TypeOfEmploymentEnums2) => {
|
|
|
8935
8977
|
var AdminUpdateJobInformationDto = class {
|
|
8936
8978
|
};
|
|
8937
8979
|
__decorateClass([
|
|
8938
|
-
(0,
|
|
8939
|
-
(0,
|
|
8980
|
+
(0, import_class_validator93.IsString)({ message: "Job role must be a string." }),
|
|
8981
|
+
(0, import_class_validator93.IsNotEmpty)({ message: "Job role is required." })
|
|
8940
8982
|
], AdminUpdateJobInformationDto.prototype, "jobRole", 2);
|
|
8941
8983
|
__decorateClass([
|
|
8942
|
-
(0,
|
|
8943
|
-
(0,
|
|
8984
|
+
(0, import_class_validator93.IsOptional)(),
|
|
8985
|
+
(0, import_class_validator93.IsString)({ message: "Note must be a string." })
|
|
8944
8986
|
], AdminUpdateJobInformationDto.prototype, "note", 2);
|
|
8945
8987
|
__decorateClass([
|
|
8946
|
-
(0,
|
|
8947
|
-
(0,
|
|
8948
|
-
(0,
|
|
8988
|
+
(0, import_class_validator93.IsArray)({ message: "Skills must be an array of skill names." }),
|
|
8989
|
+
(0, import_class_validator93.ArrayNotEmpty)({ message: "At least one skill must be provided." }),
|
|
8990
|
+
(0, import_class_validator93.IsString)({ each: true, message: "Each skill must be a valid string." })
|
|
8949
8991
|
], AdminUpdateJobInformationDto.prototype, "skills", 2);
|
|
8950
8992
|
__decorateClass([
|
|
8951
|
-
(0,
|
|
8952
|
-
(0,
|
|
8993
|
+
(0, import_class_validator93.IsInt)({ message: "Openings must be a valid integer." }),
|
|
8994
|
+
(0, import_class_validator93.Min)(1, { message: "There must be at least one opening." })
|
|
8953
8995
|
], AdminUpdateJobInformationDto.prototype, "openings", 2);
|
|
8954
8996
|
__decorateClass([
|
|
8955
|
-
(0,
|
|
8997
|
+
(0, import_class_validator93.IsEnum)(JobLocationEnums, {
|
|
8956
8998
|
message: `Location must be one of: ${Object.values(JobLocationEnums).join(
|
|
8957
8999
|
", "
|
|
8958
9000
|
)}.`
|
|
8959
9001
|
})
|
|
8960
9002
|
], AdminUpdateJobInformationDto.prototype, "location", 2);
|
|
8961
9003
|
__decorateClass([
|
|
8962
|
-
(0,
|
|
9004
|
+
(0, import_class_validator93.IsEnum)(TypeOfEmploymentEnums, {
|
|
8963
9005
|
message: `Type of employment must be one of: ${Object.values(
|
|
8964
9006
|
TypeOfEmploymentEnums
|
|
8965
9007
|
).join(", ")}.`
|
|
8966
9008
|
})
|
|
8967
9009
|
], AdminUpdateJobInformationDto.prototype, "typeOfEmployment", 2);
|
|
8968
9010
|
__decorateClass([
|
|
8969
|
-
(0,
|
|
8970
|
-
(0,
|
|
9011
|
+
(0, import_class_validator93.IsString)({ message: "Onboarding Days must be a string." }),
|
|
9012
|
+
(0, import_class_validator93.IsNotEmpty)({ message: "Onboarding Days is required." })
|
|
8971
9013
|
], AdminUpdateJobInformationDto.prototype, "onboardingTat", 2);
|
|
8972
9014
|
__decorateClass([
|
|
8973
|
-
(0,
|
|
8974
|
-
(0,
|
|
9015
|
+
(0, import_class_validator93.IsString)({ message: "Communication skills must be a string." }),
|
|
9016
|
+
(0, import_class_validator93.IsNotEmpty)({ message: "Communication skills are required." })
|
|
8975
9017
|
], AdminUpdateJobInformationDto.prototype, "candidateCommunicationSkills", 2);
|
|
8976
9018
|
__decorateClass([
|
|
8977
|
-
(0,
|
|
8978
|
-
(0,
|
|
9019
|
+
(0, import_class_validator93.IsString)({ message: "Currency must be a string." }),
|
|
9020
|
+
(0, import_class_validator93.IsNotEmpty)({ message: "Currency is required." })
|
|
8979
9021
|
], AdminUpdateJobInformationDto.prototype, "currency", 2);
|
|
8980
9022
|
__decorateClass([
|
|
8981
9023
|
(0, import_class_transformer18.Type)(() => Number),
|
|
8982
|
-
(0,
|
|
9024
|
+
(0, import_class_validator93.IsNumber)({}, { message: "Expected salary from must be a number." })
|
|
8983
9025
|
], AdminUpdateJobInformationDto.prototype, "expectedSalaryFrom", 2);
|
|
8984
9026
|
__decorateClass([
|
|
8985
9027
|
(0, import_class_transformer18.Type)(() => Number),
|
|
8986
|
-
(0,
|
|
9028
|
+
(0, import_class_validator93.IsNumber)({}, { message: "Expected salary to must be a number." })
|
|
8987
9029
|
], AdminUpdateJobInformationDto.prototype, "expectedSalaryTo", 2);
|
|
8988
9030
|
__decorateClass([
|
|
8989
|
-
(0,
|
|
9031
|
+
(0, import_class_validator93.IsDateString)(
|
|
8990
9032
|
{ strict: true },
|
|
8991
9033
|
{ message: "Start date must be in YYYY-MM-DD format." }
|
|
8992
9034
|
)
|
|
8993
9035
|
], AdminUpdateJobInformationDto.prototype, "tentativeStartDate", 2);
|
|
8994
9036
|
__decorateClass([
|
|
8995
|
-
(0,
|
|
9037
|
+
(0, import_class_validator93.IsDateString)(
|
|
8996
9038
|
{ strict: true },
|
|
8997
9039
|
{ message: "End date must be in YYYY-MM-DD format." }
|
|
8998
9040
|
)
|
|
8999
9041
|
], AdminUpdateJobInformationDto.prototype, "tentativeEndDate", 2);
|
|
9000
9042
|
__decorateClass([
|
|
9001
|
-
(0,
|
|
9002
|
-
(0,
|
|
9043
|
+
(0, import_class_validator93.IsOptional)(),
|
|
9044
|
+
(0, import_class_validator93.IsString)({ message: "Additional comment must be a string." })
|
|
9003
9045
|
], AdminUpdateJobInformationDto.prototype, "additionalComment", 2);
|
|
9004
9046
|
__decorateClass([
|
|
9005
|
-
(0,
|
|
9006
|
-
(0,
|
|
9047
|
+
(0, import_class_validator93.IsOptional)(),
|
|
9048
|
+
(0, import_class_validator93.IsInt)({ message: "Country ID must be a valid integer." })
|
|
9007
9049
|
], AdminUpdateJobInformationDto.prototype, "countryId", 2);
|
|
9008
9050
|
__decorateClass([
|
|
9009
|
-
(0,
|
|
9010
|
-
(0,
|
|
9051
|
+
(0, import_class_validator93.IsOptional)(),
|
|
9052
|
+
(0, import_class_validator93.IsInt)({ message: "State ID must be a valid integer." })
|
|
9011
9053
|
], AdminUpdateJobInformationDto.prototype, "stateId", 2);
|
|
9012
9054
|
__decorateClass([
|
|
9013
|
-
(0,
|
|
9014
|
-
(0,
|
|
9055
|
+
(0, import_class_validator93.IsOptional)(),
|
|
9056
|
+
(0, import_class_validator93.IsInt)({ message: "City ID must be a valid integer." })
|
|
9015
9057
|
], AdminUpdateJobInformationDto.prototype, "cityId", 2);
|
|
9016
9058
|
__decorateClass([
|
|
9017
|
-
(0,
|
|
9059
|
+
(0, import_class_validator93.IsInt)({ message: "Client ID must be a valid integer." })
|
|
9018
9060
|
], AdminUpdateJobInformationDto.prototype, "clientId", 2);
|
|
9019
9061
|
|
|
9020
9062
|
// src/modules/job-admin/dto/admin-job-basic-information-v2.dto.ts
|
|
9021
|
-
var
|
|
9063
|
+
var import_class_validator94 = require("class-validator");
|
|
9022
9064
|
var import_class_transformer19 = require("class-transformer");
|
|
9023
9065
|
var JobLocationAdminEnumDto = /* @__PURE__ */ ((JobLocationAdminEnumDto2) => {
|
|
9024
9066
|
JobLocationAdminEnumDto2["ONSITE"] = "ONSITE";
|
|
@@ -9048,16 +9090,16 @@ var AdminStepCompletedEnumV2 = /* @__PURE__ */ ((AdminStepCompletedEnumV22) => {
|
|
|
9048
9090
|
var JobLocationAdminDto = class {
|
|
9049
9091
|
};
|
|
9050
9092
|
__decorateClass([
|
|
9051
|
-
(0,
|
|
9052
|
-
(0,
|
|
9093
|
+
(0, import_class_validator94.IsOptional)(),
|
|
9094
|
+
(0, import_class_validator94.IsNumber)()
|
|
9053
9095
|
], JobLocationAdminDto.prototype, "countryId", 2);
|
|
9054
9096
|
__decorateClass([
|
|
9055
|
-
(0,
|
|
9056
|
-
(0,
|
|
9097
|
+
(0, import_class_validator94.IsOptional)(),
|
|
9098
|
+
(0, import_class_validator94.IsNumber)()
|
|
9057
9099
|
], JobLocationAdminDto.prototype, "stateId", 2);
|
|
9058
9100
|
__decorateClass([
|
|
9059
|
-
(0,
|
|
9060
|
-
(0,
|
|
9101
|
+
(0, import_class_validator94.IsOptional)(),
|
|
9102
|
+
(0, import_class_validator94.IsNumber)()
|
|
9061
9103
|
], JobLocationAdminDto.prototype, "cityId", 2);
|
|
9062
9104
|
var AdminJobBasicInformationV2Dto = class {
|
|
9063
9105
|
constructor() {
|
|
@@ -9065,157 +9107,157 @@ var AdminJobBasicInformationV2Dto = class {
|
|
|
9065
9107
|
}
|
|
9066
9108
|
};
|
|
9067
9109
|
__decorateClass([
|
|
9068
|
-
(0,
|
|
9110
|
+
(0, import_class_validator94.IsOptional)(),
|
|
9069
9111
|
(0, import_class_transformer19.Type)(() => Boolean)
|
|
9070
9112
|
], AdminJobBasicInformationV2Dto.prototype, "isDraft", 2);
|
|
9071
9113
|
__decorateClass([
|
|
9072
|
-
(0,
|
|
9114
|
+
(0, import_class_validator94.IsInt)({ message: "Client ID must be a valid integer." })
|
|
9073
9115
|
], AdminJobBasicInformationV2Dto.prototype, "clientId", 2);
|
|
9074
9116
|
__decorateClass([
|
|
9075
|
-
(0,
|
|
9076
|
-
(0,
|
|
9117
|
+
(0, import_class_validator94.IsNotEmpty)({ message: "Please enter job role" }),
|
|
9118
|
+
(0, import_class_validator94.IsString)({ message: "Job role must be a string" })
|
|
9077
9119
|
], AdminJobBasicInformationV2Dto.prototype, "jobRole", 2);
|
|
9078
9120
|
__decorateClass([
|
|
9079
|
-
(0,
|
|
9080
|
-
(0,
|
|
9121
|
+
(0, import_class_validator94.IsOptional)(),
|
|
9122
|
+
(0, import_class_validator94.IsString)({ message: "Note must be a string" })
|
|
9081
9123
|
], AdminJobBasicInformationV2Dto.prototype, "note", 2);
|
|
9082
9124
|
__decorateClass([
|
|
9083
|
-
(0,
|
|
9084
|
-
(0,
|
|
9085
|
-
(0,
|
|
9086
|
-
(0,
|
|
9087
|
-
(0,
|
|
9125
|
+
(0, import_class_validator94.ValidateIf)((o) => !o.isDraft),
|
|
9126
|
+
(0, import_class_validator94.IsOptional)(),
|
|
9127
|
+
(0, import_class_validator94.IsArray)({ message: "Skills must be an array" }),
|
|
9128
|
+
(0, import_class_validator94.ArrayNotEmpty)({ message: "Please select at least one skill" }),
|
|
9129
|
+
(0, import_class_validator94.IsString)({ each: true, message: "Each skill must be a string" }),
|
|
9088
9130
|
(0, import_class_transformer19.Type)(() => String)
|
|
9089
9131
|
], AdminJobBasicInformationV2Dto.prototype, "skills", 2);
|
|
9090
9132
|
__decorateClass([
|
|
9091
|
-
(0,
|
|
9092
|
-
(0,
|
|
9093
|
-
(0,
|
|
9133
|
+
(0, import_class_validator94.ValidateIf)((o) => !o.isDraft),
|
|
9134
|
+
(0, import_class_validator94.IsNumber)({}, { message: "Openings must be a number" }),
|
|
9135
|
+
(0, import_class_validator94.Min)(1, { message: "There must be at least 1 opening" }),
|
|
9094
9136
|
(0, import_class_transformer19.Type)(() => Number)
|
|
9095
9137
|
], AdminJobBasicInformationV2Dto.prototype, "openings", 2);
|
|
9096
9138
|
__decorateClass([
|
|
9097
|
-
(0,
|
|
9098
|
-
(0,
|
|
9139
|
+
(0, import_class_validator94.ValidateIf)((o) => !o.isDraft),
|
|
9140
|
+
(0, import_class_validator94.IsEnum)(JobLocationAdminEnumDto, {
|
|
9099
9141
|
message: `Location must be one of: ${Object.values(JobLocationAdminEnumDto).join(
|
|
9100
9142
|
", "
|
|
9101
9143
|
)}`
|
|
9102
9144
|
})
|
|
9103
9145
|
], AdminJobBasicInformationV2Dto.prototype, "location", 2);
|
|
9104
9146
|
__decorateClass([
|
|
9105
|
-
(0,
|
|
9106
|
-
(0,
|
|
9147
|
+
(0, import_class_validator94.ValidateIf)((o) => !o.isDraft),
|
|
9148
|
+
(0, import_class_validator94.IsEnum)(EmploymentTypeAdminEnumDto, {
|
|
9107
9149
|
message: `Type of employment must be one of: ${Object.values(
|
|
9108
9150
|
EmploymentTypeAdminEnumDto
|
|
9109
9151
|
).join(", ")}`
|
|
9110
9152
|
})
|
|
9111
9153
|
], AdminJobBasicInformationV2Dto.prototype, "typeOfEmployment", 2);
|
|
9112
9154
|
__decorateClass([
|
|
9113
|
-
(0,
|
|
9114
|
-
(0,
|
|
9115
|
-
(0,
|
|
9155
|
+
(0, import_class_validator94.IsOptional)(),
|
|
9156
|
+
(0, import_class_validator94.IsNumber)({}, { message: "Expected salary (from) must be a number" }),
|
|
9157
|
+
(0, import_class_validator94.Min)(0, { message: "Expected salary (from) cannot be negative" }),
|
|
9116
9158
|
(0, import_class_transformer19.Type)(() => Number)
|
|
9117
9159
|
], AdminJobBasicInformationV2Dto.prototype, "expectedSalaryFrom", 2);
|
|
9118
9160
|
__decorateClass([
|
|
9119
|
-
(0,
|
|
9120
|
-
(0,
|
|
9121
|
-
(0,
|
|
9161
|
+
(0, import_class_validator94.IsOptional)(),
|
|
9162
|
+
(0, import_class_validator94.IsNumber)({}, { message: "Expected salary (to) must be a number" }),
|
|
9163
|
+
(0, import_class_validator94.Min)(0, { message: "Expected salary (to) cannot be negative" }),
|
|
9122
9164
|
(0, import_class_transformer19.Type)(() => Number)
|
|
9123
9165
|
], AdminJobBasicInformationV2Dto.prototype, "expectedSalaryTo", 2);
|
|
9124
9166
|
__decorateClass([
|
|
9125
|
-
(0,
|
|
9167
|
+
(0, import_class_validator94.IsOptional)(),
|
|
9126
9168
|
(0, import_class_transformer19.Type)(() => JobLocationAdminDto)
|
|
9127
9169
|
], AdminJobBasicInformationV2Dto.prototype, "locations", 2);
|
|
9128
9170
|
__decorateClass([
|
|
9129
|
-
(0,
|
|
9130
|
-
(0,
|
|
9171
|
+
(0, import_class_validator94.IsOptional)(),
|
|
9172
|
+
(0, import_class_validator94.IsString)({ message: "Academic qualification must be a string" })
|
|
9131
9173
|
], AdminJobBasicInformationV2Dto.prototype, "academicQualification", 2);
|
|
9132
9174
|
__decorateClass([
|
|
9133
|
-
(0,
|
|
9134
|
-
(0,
|
|
9175
|
+
(0, import_class_validator94.ValidateIf)((o) => !o.isDraft),
|
|
9176
|
+
(0, import_class_validator94.IsEnum)(typeOfExperienceAdminEnumDto, {
|
|
9135
9177
|
message: `Type of experience must be one of: ${Object.values(
|
|
9136
9178
|
typeOfExperienceAdminEnumDto
|
|
9137
9179
|
).join(", ")}`
|
|
9138
9180
|
})
|
|
9139
9181
|
], AdminJobBasicInformationV2Dto.prototype, "yearsOfExperienceType", 2);
|
|
9140
9182
|
__decorateClass([
|
|
9141
|
-
(0,
|
|
9142
|
-
(0,
|
|
9143
|
-
(0,
|
|
9183
|
+
(0, import_class_validator94.ValidateIf)((o) => !o.isDraft),
|
|
9184
|
+
(0, import_class_validator94.IsNotEmpty)({ message: "Please enter the years of experience" }),
|
|
9185
|
+
(0, import_class_validator94.IsString)({ message: "Years of experience must be a string" })
|
|
9144
9186
|
], AdminJobBasicInformationV2Dto.prototype, "yearsOfExperienceFrom", 2);
|
|
9145
9187
|
__decorateClass([
|
|
9146
|
-
(0,
|
|
9147
|
-
(0,
|
|
9148
|
-
(0,
|
|
9188
|
+
(0, import_class_validator94.ValidateIf)((o) => !o.isDraft),
|
|
9189
|
+
(0, import_class_validator94.IsNotEmpty)({ message: "Please enter the years of experience upto" }),
|
|
9190
|
+
(0, import_class_validator94.IsString)({ message: "Years of experience must be a string" })
|
|
9149
9191
|
], AdminJobBasicInformationV2Dto.prototype, "yearsOfExperienceTo", 2);
|
|
9150
9192
|
__decorateClass([
|
|
9151
|
-
(0,
|
|
9152
|
-
(0,
|
|
9193
|
+
(0, import_class_validator94.IsOptional)(),
|
|
9194
|
+
(0, import_class_validator94.IsString)({ message: "Business industry must be a string" })
|
|
9153
9195
|
], AdminJobBasicInformationV2Dto.prototype, "businessIndustry", 2);
|
|
9154
9196
|
__decorateClass([
|
|
9155
|
-
(0,
|
|
9156
|
-
(0,
|
|
9197
|
+
(0, import_class_validator94.IsOptional)(),
|
|
9198
|
+
(0, import_class_validator94.IsString)({ message: "Project name must be a string" })
|
|
9157
9199
|
], AdminJobBasicInformationV2Dto.prototype, "projectName", 2);
|
|
9158
9200
|
__decorateClass([
|
|
9159
|
-
(0,
|
|
9201
|
+
(0, import_class_validator94.IsOptional)()
|
|
9160
9202
|
], AdminJobBasicInformationV2Dto.prototype, "hideExpectedSalaryFrom", 2);
|
|
9161
9203
|
__decorateClass([
|
|
9162
|
-
(0,
|
|
9204
|
+
(0, import_class_validator94.IsOptional)()
|
|
9163
9205
|
], AdminJobBasicInformationV2Dto.prototype, "hideExpectedSalaryTo", 2);
|
|
9164
9206
|
__decorateClass([
|
|
9165
|
-
(0,
|
|
9166
|
-
(0,
|
|
9167
|
-
(0,
|
|
9207
|
+
(0, import_class_validator94.IsOptional)(),
|
|
9208
|
+
(0, import_class_validator94.IsNumber)({}, { message: "Expected annual budget (from) must be a number" }),
|
|
9209
|
+
(0, import_class_validator94.Min)(0, { message: "Expected annual budget (from) cannot be negative" }),
|
|
9168
9210
|
(0, import_class_transformer19.Type)(() => Number)
|
|
9169
9211
|
], AdminJobBasicInformationV2Dto.prototype, "expectedAnnualBudgetFrom", 2);
|
|
9170
9212
|
__decorateClass([
|
|
9171
|
-
(0,
|
|
9213
|
+
(0, import_class_validator94.IsOptional)()
|
|
9172
9214
|
], AdminJobBasicInformationV2Dto.prototype, "hideExpectedAnnualBudgetFrom", 2);
|
|
9173
9215
|
__decorateClass([
|
|
9174
|
-
(0,
|
|
9175
|
-
(0,
|
|
9176
|
-
(0,
|
|
9216
|
+
(0, import_class_validator94.IsOptional)(),
|
|
9217
|
+
(0, import_class_validator94.IsNumber)({}, { message: "Expected annual budget (to) must be a number" }),
|
|
9218
|
+
(0, import_class_validator94.Min)(0, { message: "Expected annual budget (to) cannot be negative" }),
|
|
9177
9219
|
(0, import_class_transformer19.Type)(() => Number)
|
|
9178
9220
|
], AdminJobBasicInformationV2Dto.prototype, "expectedAnnualBudgetTo", 2);
|
|
9179
9221
|
__decorateClass([
|
|
9180
|
-
(0,
|
|
9222
|
+
(0, import_class_validator94.IsOptional)()
|
|
9181
9223
|
], AdminJobBasicInformationV2Dto.prototype, "hideExpectedAnnualBudgetTo", 2);
|
|
9182
9224
|
__decorateClass([
|
|
9183
|
-
(0,
|
|
9184
|
-
(0,
|
|
9185
|
-
(0,
|
|
9186
|
-
(0,
|
|
9225
|
+
(0, import_class_validator94.IsOptional)(),
|
|
9226
|
+
(0, import_class_validator94.IsNumber)({}, { message: "Number of hours must be a number" }),
|
|
9227
|
+
(0, import_class_validator94.Min)(0, { message: "Number of hours cannot be negative" }),
|
|
9228
|
+
(0, import_class_validator94.Max)(40, { message: "Number of hours cannot exceed 40" }),
|
|
9187
9229
|
(0, import_class_transformer19.Type)(() => Number)
|
|
9188
9230
|
], AdminJobBasicInformationV2Dto.prototype, "numberOfHours", 2);
|
|
9189
9231
|
__decorateClass([
|
|
9190
|
-
(0,
|
|
9232
|
+
(0, import_class_validator94.IsOptional)()
|
|
9191
9233
|
], AdminJobBasicInformationV2Dto.prototype, "years", 2);
|
|
9192
9234
|
__decorateClass([
|
|
9193
|
-
(0,
|
|
9235
|
+
(0, import_class_validator94.IsOptional)()
|
|
9194
9236
|
], AdminJobBasicInformationV2Dto.prototype, "months", 2);
|
|
9195
9237
|
__decorateClass([
|
|
9196
|
-
(0,
|
|
9238
|
+
(0, import_class_validator94.IsOptional)()
|
|
9197
9239
|
], AdminJobBasicInformationV2Dto.prototype, "weeks", 2);
|
|
9198
9240
|
__decorateClass([
|
|
9199
|
-
(0,
|
|
9241
|
+
(0, import_class_validator94.IsOptional)()
|
|
9200
9242
|
], AdminJobBasicInformationV2Dto.prototype, "days", 2);
|
|
9201
9243
|
__decorateClass([
|
|
9202
|
-
(0,
|
|
9203
|
-
(0,
|
|
9204
|
-
(0,
|
|
9244
|
+
(0, import_class_validator94.IsOptional)(),
|
|
9245
|
+
(0, import_class_validator94.IsString)({ message: "Additional comment must be a string" }),
|
|
9246
|
+
(0, import_class_validator94.MaxLength)(500, { message: "Additional comment must not exceed 500 characters" })
|
|
9205
9247
|
], AdminJobBasicInformationV2Dto.prototype, "additionalComment", 2);
|
|
9206
9248
|
__decorateClass([
|
|
9207
|
-
(0,
|
|
9208
|
-
(0,
|
|
9209
|
-
(0,
|
|
9210
|
-
(0,
|
|
9249
|
+
(0, import_class_validator94.ValidateIf)((o) => !o.isDraft),
|
|
9250
|
+
(0, import_class_validator94.IsArray)({ message: "Good to have skills must be an array" }),
|
|
9251
|
+
(0, import_class_validator94.IsString)({ each: true, message: "Each skill must be a string" }),
|
|
9252
|
+
(0, import_class_validator94.IsOptional)(),
|
|
9211
9253
|
(0, import_class_transformer19.Type)(() => String)
|
|
9212
9254
|
], AdminJobBasicInformationV2Dto.prototype, "goodToHaveSkills", 2);
|
|
9213
9255
|
__decorateClass([
|
|
9214
|
-
(0,
|
|
9256
|
+
(0, import_class_validator94.IsOptional)()
|
|
9215
9257
|
], AdminJobBasicInformationV2Dto.prototype, "jobRoleCanonicalName", 2);
|
|
9216
9258
|
__decorateClass([
|
|
9217
|
-
(0,
|
|
9218
|
-
(0,
|
|
9259
|
+
(0, import_class_validator94.IsOptional)(),
|
|
9260
|
+
(0, import_class_validator94.IsEnum)(AdminStepCompletedEnumV2, {
|
|
9219
9261
|
message: `Type of stepCompleted must be one of: ${Object.values(
|
|
9220
9262
|
AdminStepCompletedEnumV2
|
|
9221
9263
|
).join(", ")}`
|
|
@@ -9229,7 +9271,7 @@ var LEAD_PATTERN = {
|
|
|
9229
9271
|
};
|
|
9230
9272
|
|
|
9231
9273
|
// src/modules/lead/dto/create-lead.dto.ts
|
|
9232
|
-
var
|
|
9274
|
+
var import_class_validator95 = require("class-validator");
|
|
9233
9275
|
var CategoryEmumDto = /* @__PURE__ */ ((CategoryEmumDto2) => {
|
|
9234
9276
|
CategoryEmumDto2["BUSINESS"] = "BUSINESS";
|
|
9235
9277
|
CategoryEmumDto2["FREELANCER"] = "FREELANCER";
|
|
@@ -9238,23 +9280,23 @@ var CategoryEmumDto = /* @__PURE__ */ ((CategoryEmumDto2) => {
|
|
|
9238
9280
|
var CreateLeadDto = class {
|
|
9239
9281
|
};
|
|
9240
9282
|
__decorateClass([
|
|
9241
|
-
(0,
|
|
9283
|
+
(0, import_class_validator95.IsString)({ message: "Name must be a string" })
|
|
9242
9284
|
], CreateLeadDto.prototype, "name", 2);
|
|
9243
9285
|
__decorateClass([
|
|
9244
|
-
(0,
|
|
9286
|
+
(0, import_class_validator95.IsEmail)({}, { message: "Invalid email address" })
|
|
9245
9287
|
], CreateLeadDto.prototype, "email", 2);
|
|
9246
9288
|
__decorateClass([
|
|
9247
|
-
(0,
|
|
9289
|
+
(0, import_class_validator95.IsString)({ message: "Mobile code must be a string (e.g., +1)" })
|
|
9248
9290
|
], CreateLeadDto.prototype, "mobileCode", 2);
|
|
9249
9291
|
__decorateClass([
|
|
9250
|
-
(0,
|
|
9292
|
+
(0, import_class_validator95.IsString)({ message: "Mobile must be a string (e.g., 1243253534)" })
|
|
9251
9293
|
], CreateLeadDto.prototype, "mobile", 2);
|
|
9252
9294
|
__decorateClass([
|
|
9253
|
-
(0,
|
|
9254
|
-
(0,
|
|
9295
|
+
(0, import_class_validator95.IsOptional)(),
|
|
9296
|
+
(0, import_class_validator95.IsString)({ message: "Description must be a string" })
|
|
9255
9297
|
], CreateLeadDto.prototype, "description", 2);
|
|
9256
9298
|
__decorateClass([
|
|
9257
|
-
(0,
|
|
9299
|
+
(0, import_class_validator95.IsEnum)(CategoryEmumDto, {
|
|
9258
9300
|
message: `Type of category must be one of: ${Object.values(
|
|
9259
9301
|
CategoryEmumDto
|
|
9260
9302
|
).join(", ")}`
|
|
@@ -9276,59 +9318,59 @@ var ADMIN_ROLE_PATTERN = {
|
|
|
9276
9318
|
};
|
|
9277
9319
|
|
|
9278
9320
|
// src/modules/admin-role/dto/create-admin-role.dto.ts
|
|
9279
|
-
var
|
|
9321
|
+
var import_class_validator96 = require("class-validator");
|
|
9280
9322
|
var CreateAdminRoleDto = class {
|
|
9281
9323
|
};
|
|
9282
9324
|
__decorateClass([
|
|
9283
|
-
(0,
|
|
9284
|
-
(0,
|
|
9325
|
+
(0, import_class_validator96.IsNotEmpty)({ message: "Please enter admin role name." }),
|
|
9326
|
+
(0, import_class_validator96.IsString)({ message: "Role name must be a string." })
|
|
9285
9327
|
], CreateAdminRoleDto.prototype, "roleName", 2);
|
|
9286
9328
|
__decorateClass([
|
|
9287
|
-
(0,
|
|
9288
|
-
(0,
|
|
9329
|
+
(0, import_class_validator96.IsOptional)(),
|
|
9330
|
+
(0, import_class_validator96.IsString)({ message: "Role description must be a string." })
|
|
9289
9331
|
], CreateAdminRoleDto.prototype, "roleDescription", 2);
|
|
9290
9332
|
__decorateClass([
|
|
9291
|
-
(0,
|
|
9292
|
-
(0,
|
|
9333
|
+
(0, import_class_validator96.IsOptional)(),
|
|
9334
|
+
(0, import_class_validator96.IsBoolean)({ message: "Is active must be a boolean value" })
|
|
9293
9335
|
], CreateAdminRoleDto.prototype, "isActive", 2);
|
|
9294
9336
|
|
|
9295
9337
|
// src/modules/admin-role/dto/update-admin-role.dto.ts
|
|
9296
|
-
var
|
|
9338
|
+
var import_class_validator97 = require("class-validator");
|
|
9297
9339
|
var UpdateAdminRoleDto = class {
|
|
9298
9340
|
};
|
|
9299
9341
|
__decorateClass([
|
|
9300
|
-
(0,
|
|
9301
|
-
(0,
|
|
9342
|
+
(0, import_class_validator97.IsNotEmpty)({ message: "Please enter admin role name." }),
|
|
9343
|
+
(0, import_class_validator97.IsString)({ message: "Role name must be a string." })
|
|
9302
9344
|
], UpdateAdminRoleDto.prototype, "roleName", 2);
|
|
9303
9345
|
__decorateClass([
|
|
9304
|
-
(0,
|
|
9305
|
-
(0,
|
|
9346
|
+
(0, import_class_validator97.IsOptional)(),
|
|
9347
|
+
(0, import_class_validator97.IsString)({ message: "Role description must be a string." })
|
|
9306
9348
|
], UpdateAdminRoleDto.prototype, "roleDescription", 2);
|
|
9307
9349
|
__decorateClass([
|
|
9308
|
-
(0,
|
|
9309
|
-
(0,
|
|
9350
|
+
(0, import_class_validator97.IsOptional)(),
|
|
9351
|
+
(0, import_class_validator97.IsBoolean)({ message: "Is active must be a boolean value." })
|
|
9310
9352
|
], UpdateAdminRoleDto.prototype, "isActive", 2);
|
|
9311
9353
|
|
|
9312
9354
|
// src/modules/admin-role/dto/attach-permissions-to-role.dto.ts
|
|
9313
|
-
var
|
|
9355
|
+
var import_class_validator98 = require("class-validator");
|
|
9314
9356
|
var AttachPermissionsToRoleDto = class {
|
|
9315
9357
|
};
|
|
9316
9358
|
__decorateClass([
|
|
9317
|
-
(0,
|
|
9318
|
-
(0,
|
|
9359
|
+
(0, import_class_validator98.IsNotEmpty)({ message: "Please enter admin role ID." }),
|
|
9360
|
+
(0, import_class_validator98.IsString)({ message: "Role ID must be a string." })
|
|
9319
9361
|
], AttachPermissionsToRoleDto.prototype, "roleId", 2);
|
|
9320
9362
|
__decorateClass([
|
|
9321
|
-
(0,
|
|
9322
|
-
(0,
|
|
9363
|
+
(0, import_class_validator98.IsNotEmpty)({ message: "Please enter permission IDs." }),
|
|
9364
|
+
(0, import_class_validator98.IsString)({ message: "Permission IDs must be a comma-separated string." })
|
|
9323
9365
|
], AttachPermissionsToRoleDto.prototype, "permissionIds", 2);
|
|
9324
9366
|
|
|
9325
9367
|
// src/modules/admin-role/dto/update-admin-role-status.dto.ts
|
|
9326
|
-
var
|
|
9368
|
+
var import_class_validator99 = require("class-validator");
|
|
9327
9369
|
var UpdateAdminRoleStatusDto = class {
|
|
9328
9370
|
};
|
|
9329
9371
|
__decorateClass([
|
|
9330
|
-
(0,
|
|
9331
|
-
(0,
|
|
9372
|
+
(0, import_class_validator99.IsNotEmpty)({ message: "Please specify admin role status." }),
|
|
9373
|
+
(0, import_class_validator99.IsBoolean)({ message: "Is active must be a boolean value" })
|
|
9332
9374
|
], UpdateAdminRoleStatusDto.prototype, "isActive", 2);
|
|
9333
9375
|
|
|
9334
9376
|
// src/modules/admin-permission/pattern/pattern.ts
|
|
@@ -9408,7 +9450,7 @@ var INTERVIEW_PATTERN = {
|
|
|
9408
9450
|
};
|
|
9409
9451
|
|
|
9410
9452
|
// src/modules/interview/dto/interview-invite.dto.ts
|
|
9411
|
-
var
|
|
9453
|
+
var import_class_validator100 = require("class-validator");
|
|
9412
9454
|
var import_class_transformer20 = require("class-transformer");
|
|
9413
9455
|
var CandidateType = /* @__PURE__ */ ((CandidateType2) => {
|
|
9414
9456
|
CandidateType2["SHORTLISTED"] = "SHORTLISTED";
|
|
@@ -9420,55 +9462,55 @@ var CandidateType = /* @__PURE__ */ ((CandidateType2) => {
|
|
|
9420
9462
|
var ExistingCandidateDto = class {
|
|
9421
9463
|
};
|
|
9422
9464
|
__decorateClass([
|
|
9423
|
-
(0,
|
|
9465
|
+
(0, import_class_validator100.IsUUID)()
|
|
9424
9466
|
], ExistingCandidateDto.prototype, "id", 2);
|
|
9425
9467
|
__decorateClass([
|
|
9426
|
-
(0,
|
|
9468
|
+
(0, import_class_validator100.IsEnum)(CandidateType, {
|
|
9427
9469
|
message: "type must be one of SHORTLISTED, APPLICATNTS, or RECOMMENDED"
|
|
9428
9470
|
})
|
|
9429
9471
|
], ExistingCandidateDto.prototype, "type", 2);
|
|
9430
9472
|
var NewCandidateDto = class {
|
|
9431
9473
|
};
|
|
9432
9474
|
__decorateClass([
|
|
9433
|
-
(0,
|
|
9434
|
-
(0,
|
|
9475
|
+
(0, import_class_validator100.IsNotEmpty)({ message: "Please enter the candidate name" }),
|
|
9476
|
+
(0, import_class_validator100.IsString)({ message: "Name must be a string" })
|
|
9435
9477
|
], NewCandidateDto.prototype, "name", 2);
|
|
9436
9478
|
__decorateClass([
|
|
9437
|
-
(0,
|
|
9479
|
+
(0, import_class_validator100.IsEmail)({}, { message: "Please enter a valid email." })
|
|
9438
9480
|
], NewCandidateDto.prototype, "email", 2);
|
|
9439
9481
|
__decorateClass([
|
|
9440
|
-
(0,
|
|
9482
|
+
(0, import_class_validator100.IsEnum)(CandidateType, {
|
|
9441
9483
|
message: "type must be NEW"
|
|
9442
9484
|
})
|
|
9443
9485
|
], NewCandidateDto.prototype, "type", 2);
|
|
9444
9486
|
var CandidatesDto = class {
|
|
9445
9487
|
};
|
|
9446
9488
|
__decorateClass([
|
|
9447
|
-
(0,
|
|
9448
|
-
(0,
|
|
9449
|
-
(0,
|
|
9450
|
-
(0,
|
|
9489
|
+
(0, import_class_validator100.ValidateIf)((o) => o.exixtingCandidates?.length > 0),
|
|
9490
|
+
(0, import_class_validator100.IsArray)({ message: "Existing candidates should be an array." }),
|
|
9491
|
+
(0, import_class_validator100.ArrayNotEmpty)({ message: "Please select at least one candidate." }),
|
|
9492
|
+
(0, import_class_validator100.ValidateNested)({ each: true }),
|
|
9451
9493
|
(0, import_class_transformer20.Type)(() => ExistingCandidateDto)
|
|
9452
9494
|
], CandidatesDto.prototype, "exixtingCandidates", 2);
|
|
9453
9495
|
__decorateClass([
|
|
9454
|
-
(0,
|
|
9455
|
-
(0,
|
|
9456
|
-
(0,
|
|
9457
|
-
(0,
|
|
9496
|
+
(0, import_class_validator100.ValidateIf)((o) => o.newCandidates?.length > 0),
|
|
9497
|
+
(0, import_class_validator100.IsArray)({ message: "New candidates should be an array." }),
|
|
9498
|
+
(0, import_class_validator100.ArrayNotEmpty)({ message: "Please add at least one candidate." }),
|
|
9499
|
+
(0, import_class_validator100.ValidateNested)({ each: true }),
|
|
9458
9500
|
(0, import_class_transformer20.Type)(() => NewCandidateDto)
|
|
9459
9501
|
], CandidatesDto.prototype, "newCandidates", 2);
|
|
9460
9502
|
var InterviewInviteDto = class {
|
|
9461
9503
|
};
|
|
9462
9504
|
__decorateClass([
|
|
9463
|
-
(0,
|
|
9505
|
+
(0, import_class_validator100.IsUUID)()
|
|
9464
9506
|
], InterviewInviteDto.prototype, "jobId", 2);
|
|
9465
9507
|
__decorateClass([
|
|
9466
|
-
(0,
|
|
9508
|
+
(0, import_class_validator100.ValidateNested)({ each: true }),
|
|
9467
9509
|
(0, import_class_transformer20.Type)(() => CandidatesDto)
|
|
9468
9510
|
], InterviewInviteDto.prototype, "candidates", 2);
|
|
9469
9511
|
|
|
9470
9512
|
// src/modules/interview/dto/send-interview-invite.dto.ts
|
|
9471
|
-
var
|
|
9513
|
+
var import_class_validator101 = require("class-validator");
|
|
9472
9514
|
var import_class_transformer21 = require("class-transformer");
|
|
9473
9515
|
var InterviewInviteCandidateType = /* @__PURE__ */ ((InterviewInviteCandidateType2) => {
|
|
9474
9516
|
InterviewInviteCandidateType2["SHORTLISTED"] = "SHORTLISTED";
|
|
@@ -9480,306 +9522,306 @@ var InterviewInviteCandidateType = /* @__PURE__ */ ((InterviewInviteCandidateTyp
|
|
|
9480
9522
|
var ExistingCandidateDto2 = class {
|
|
9481
9523
|
};
|
|
9482
9524
|
__decorateClass([
|
|
9483
|
-
(0,
|
|
9484
|
-
(0,
|
|
9525
|
+
(0, import_class_validator101.IsUUID)("4", { message: "Candidate ID must be a valid UUID." }),
|
|
9526
|
+
(0, import_class_validator101.IsNotEmpty)({ message: "Candidate ID is required." })
|
|
9485
9527
|
], ExistingCandidateDto2.prototype, "id", 2);
|
|
9486
9528
|
__decorateClass([
|
|
9487
|
-
(0,
|
|
9529
|
+
(0, import_class_validator101.IsEnum)(InterviewInviteCandidateType, {
|
|
9488
9530
|
message: "Type must be one of SHORTLISTED, APPLICANTS, or RECOMMENDED."
|
|
9489
9531
|
}),
|
|
9490
|
-
(0,
|
|
9532
|
+
(0, import_class_validator101.IsNotEmpty)({ message: "Candidate type is required." })
|
|
9491
9533
|
], ExistingCandidateDto2.prototype, "type", 2);
|
|
9492
9534
|
var NewCandidateDto2 = class {
|
|
9493
9535
|
};
|
|
9494
9536
|
__decorateClass([
|
|
9495
|
-
(0,
|
|
9496
|
-
(0,
|
|
9537
|
+
(0, import_class_validator101.IsString)({ message: "Name must be a string." }),
|
|
9538
|
+
(0, import_class_validator101.IsNotEmpty)({ message: "Candidate name is required." })
|
|
9497
9539
|
], NewCandidateDto2.prototype, "name", 2);
|
|
9498
9540
|
__decorateClass([
|
|
9499
|
-
(0,
|
|
9500
|
-
(0,
|
|
9541
|
+
(0, import_class_validator101.IsEmail)({}, { message: "Please enter a valid email address." }),
|
|
9542
|
+
(0, import_class_validator101.IsNotEmpty)({ message: "Email is required." })
|
|
9501
9543
|
], NewCandidateDto2.prototype, "email", 2);
|
|
9502
9544
|
__decorateClass([
|
|
9503
|
-
(0,
|
|
9545
|
+
(0, import_class_validator101.IsEnum)(InterviewInviteCandidateType, {
|
|
9504
9546
|
message: "Type must be NEW for new candidates."
|
|
9505
9547
|
}),
|
|
9506
|
-
(0,
|
|
9548
|
+
(0, import_class_validator101.IsNotEmpty)({ message: "Candidate type is required." })
|
|
9507
9549
|
], NewCandidateDto2.prototype, "type", 2);
|
|
9508
9550
|
var SendInterviewInviteDto = class {
|
|
9509
9551
|
};
|
|
9510
9552
|
__decorateClass([
|
|
9511
|
-
(0,
|
|
9512
|
-
(0,
|
|
9553
|
+
(0, import_class_validator101.IsUUID)("4", { message: "Job ID must be a valid UUID." }),
|
|
9554
|
+
(0, import_class_validator101.IsNotEmpty)({ message: "Job ID is required." })
|
|
9513
9555
|
], SendInterviewInviteDto.prototype, "jobId", 2);
|
|
9514
9556
|
__decorateClass([
|
|
9515
|
-
(0,
|
|
9516
|
-
(0,
|
|
9557
|
+
(0, import_class_validator101.IsArray)({ message: "Existing candidates must be an array." }),
|
|
9558
|
+
(0, import_class_validator101.ValidateNested)({ each: true }),
|
|
9517
9559
|
(0, import_class_transformer21.Type)(() => ExistingCandidateDto2),
|
|
9518
|
-
(0,
|
|
9560
|
+
(0, import_class_validator101.IsOptional)()
|
|
9519
9561
|
], SendInterviewInviteDto.prototype, "existingCandidates", 2);
|
|
9520
9562
|
__decorateClass([
|
|
9521
|
-
(0,
|
|
9522
|
-
(0,
|
|
9563
|
+
(0, import_class_validator101.IsArray)({ message: "New candidates must be an array." }),
|
|
9564
|
+
(0, import_class_validator101.ValidateNested)({ each: true }),
|
|
9523
9565
|
(0, import_class_transformer21.Type)(() => NewCandidateDto2),
|
|
9524
|
-
(0,
|
|
9566
|
+
(0, import_class_validator101.IsOptional)()
|
|
9525
9567
|
], SendInterviewInviteDto.prototype, "newCandidates", 2);
|
|
9526
9568
|
|
|
9527
9569
|
// src/modules/interview/dto/create-f2f-interview.dto.ts
|
|
9528
|
-
var
|
|
9570
|
+
var import_class_validator102 = require("class-validator");
|
|
9529
9571
|
var CreateF2FInterviewDto = class {
|
|
9530
9572
|
};
|
|
9531
9573
|
__decorateClass([
|
|
9532
|
-
(0,
|
|
9533
|
-
(0,
|
|
9574
|
+
(0, import_class_validator102.IsEmail)({}, { message: "Please enter a valid email address." }),
|
|
9575
|
+
(0, import_class_validator102.IsNotEmpty)({ message: "Invitee email is required." })
|
|
9534
9576
|
], CreateF2FInterviewDto.prototype, "inviteeEmail", 2);
|
|
9535
9577
|
__decorateClass([
|
|
9536
|
-
(0,
|
|
9537
|
-
(0,
|
|
9578
|
+
(0, import_class_validator102.IsString)({ message: "Invitee name must be a string." }),
|
|
9579
|
+
(0, import_class_validator102.IsNotEmpty)({ message: "Invitee name is required." })
|
|
9538
9580
|
], CreateF2FInterviewDto.prototype, "inviteeName", 2);
|
|
9539
9581
|
__decorateClass([
|
|
9540
|
-
(0,
|
|
9582
|
+
(0, import_class_validator102.IsNumber)({}, { message: "Interview ID must be a number." })
|
|
9541
9583
|
], CreateF2FInterviewDto.prototype, "interviewId", 2);
|
|
9542
9584
|
__decorateClass([
|
|
9543
|
-
(0,
|
|
9585
|
+
(0, import_class_validator102.IsNumber)({}, { message: "Candidate ID must be a number." })
|
|
9544
9586
|
], CreateF2FInterviewDto.prototype, "candidateId", 2);
|
|
9545
9587
|
|
|
9546
9588
|
// src/modules/interview/dto/create-f2f-interview-direct.dto.ts
|
|
9547
|
-
var
|
|
9589
|
+
var import_class_validator103 = require("class-validator");
|
|
9548
9590
|
var CreateF2FInterviewDirectDto = class {
|
|
9549
9591
|
};
|
|
9550
9592
|
__decorateClass([
|
|
9551
|
-
(0,
|
|
9552
|
-
(0,
|
|
9593
|
+
(0, import_class_validator103.IsEmail)({}, { message: "Please enter a valid email address." }),
|
|
9594
|
+
(0, import_class_validator103.IsNotEmpty)({ message: "Invitee email is required." })
|
|
9553
9595
|
], CreateF2FInterviewDirectDto.prototype, "inviteeEmail", 2);
|
|
9554
9596
|
__decorateClass([
|
|
9555
|
-
(0,
|
|
9556
|
-
(0,
|
|
9597
|
+
(0, import_class_validator103.IsString)({ message: "Invitee name must be a string." }),
|
|
9598
|
+
(0, import_class_validator103.IsNotEmpty)({ message: "Invitee name is required." })
|
|
9557
9599
|
], CreateF2FInterviewDirectDto.prototype, "inviteeName", 2);
|
|
9558
9600
|
__decorateClass([
|
|
9559
|
-
(0,
|
|
9601
|
+
(0, import_class_validator103.IsNumber)({}, { message: "Job ID must be a number." })
|
|
9560
9602
|
], CreateF2FInterviewDirectDto.prototype, "jobId", 2);
|
|
9561
9603
|
__decorateClass([
|
|
9562
|
-
(0,
|
|
9604
|
+
(0, import_class_validator103.IsNumber)({}, { message: "Candidate ID must be a number." })
|
|
9563
9605
|
], CreateF2FInterviewDirectDto.prototype, "candidateId", 2);
|
|
9564
9606
|
|
|
9565
9607
|
// src/modules/interview/dto/create-f2f-interview-reschedule-request.dto.ts
|
|
9566
|
-
var
|
|
9608
|
+
var import_class_validator104 = require("class-validator");
|
|
9567
9609
|
var CreateF2FInterviewRescheduleRequestDto = class {
|
|
9568
9610
|
};
|
|
9569
9611
|
__decorateClass([
|
|
9570
|
-
(0,
|
|
9571
|
-
(0,
|
|
9612
|
+
(0, import_class_validator104.IsUUID)("4", { message: "F2F Interview ID must be a valid UUID." }),
|
|
9613
|
+
(0, import_class_validator104.IsNotEmpty)({ message: "F2F Interview ID is required." })
|
|
9572
9614
|
], CreateF2FInterviewRescheduleRequestDto.prototype, "f2FInterviewId", 2);
|
|
9573
9615
|
__decorateClass([
|
|
9574
|
-
(0,
|
|
9616
|
+
(0, import_class_validator104.IsNotEmpty)({ message: "Rescheduled date is required." })
|
|
9575
9617
|
], CreateF2FInterviewRescheduleRequestDto.prototype, "rescheduledDate", 2);
|
|
9576
9618
|
__decorateClass([
|
|
9577
|
-
(0,
|
|
9578
|
-
(0,
|
|
9619
|
+
(0, import_class_validator104.IsString)({ message: "Rescheduled slot must be a string." }),
|
|
9620
|
+
(0, import_class_validator104.IsNotEmpty)({ message: "Rescheduled slot is required." })
|
|
9579
9621
|
], CreateF2FInterviewRescheduleRequestDto.prototype, "rescheduledSlot", 2);
|
|
9580
9622
|
__decorateClass([
|
|
9581
|
-
(0,
|
|
9582
|
-
(0,
|
|
9623
|
+
(0, import_class_validator104.IsOptional)(),
|
|
9624
|
+
(0, import_class_validator104.IsString)({ message: "Freelancer request reason must be a string." })
|
|
9583
9625
|
], CreateF2FInterviewRescheduleRequestDto.prototype, "freelancerRequestReason", 2);
|
|
9584
9626
|
|
|
9585
9627
|
// src/modules/interview/dto/create-ai-interview-reschedule-request.dto.ts
|
|
9586
|
-
var
|
|
9628
|
+
var import_class_validator105 = require("class-validator");
|
|
9587
9629
|
var CreateAIInterviewRescheduleRequestDto = class {
|
|
9588
9630
|
};
|
|
9589
9631
|
__decorateClass([
|
|
9590
|
-
(0,
|
|
9632
|
+
(0, import_class_validator105.IsNotEmpty)({ message: "AI Interview ID is required." })
|
|
9591
9633
|
], CreateAIInterviewRescheduleRequestDto.prototype, "aiInterviewId", 2);
|
|
9592
9634
|
__decorateClass([
|
|
9593
|
-
(0,
|
|
9635
|
+
(0, import_class_validator105.IsString)({ message: "Freelancer reason must be a string." })
|
|
9594
9636
|
], CreateAIInterviewRescheduleRequestDto.prototype, "freelancerRequestReason", 2);
|
|
9595
9637
|
|
|
9596
9638
|
// src/modules/interview/dto/reject-ai-interview-reschedule-request.dto.ts
|
|
9597
|
-
var
|
|
9639
|
+
var import_class_validator106 = require("class-validator");
|
|
9598
9640
|
var RejectAIInterviewRescheduleRequestDto = class {
|
|
9599
9641
|
};
|
|
9600
9642
|
__decorateClass([
|
|
9601
|
-
(0,
|
|
9643
|
+
(0, import_class_validator106.IsString)({ message: "Client reject reason must be a string." })
|
|
9602
9644
|
], RejectAIInterviewRescheduleRequestDto.prototype, "clientRejectReason", 2);
|
|
9603
9645
|
|
|
9604
9646
|
// src/modules/interview/dto/reject-f2f-interview-reschedule-request.dto.ts
|
|
9605
|
-
var
|
|
9647
|
+
var import_class_validator107 = require("class-validator");
|
|
9606
9648
|
var RejectF2FInterviewRescheduleRequestDto = class {
|
|
9607
9649
|
};
|
|
9608
9650
|
__decorateClass([
|
|
9609
|
-
(0,
|
|
9610
|
-
(0,
|
|
9651
|
+
(0, import_class_validator107.IsOptional)(),
|
|
9652
|
+
(0, import_class_validator107.IsString)()
|
|
9611
9653
|
], RejectF2FInterviewRescheduleRequestDto.prototype, "clientRejectReason", 2);
|
|
9612
9654
|
|
|
9613
9655
|
// src/modules/interview/dto/capture-ai-interview-result-public.dto.ts
|
|
9614
|
-
var
|
|
9656
|
+
var import_class_validator108 = require("class-validator");
|
|
9615
9657
|
var CaptureAiInterviewResultPublicDto = class {
|
|
9616
9658
|
};
|
|
9617
9659
|
__decorateClass([
|
|
9618
|
-
(0,
|
|
9619
|
-
(0,
|
|
9660
|
+
(0, import_class_validator108.IsNotEmpty)({ message: "AI Interview UUID is required" }),
|
|
9661
|
+
(0, import_class_validator108.IsString)({ message: "AI Interview UUID must be a string" })
|
|
9620
9662
|
], CaptureAiInterviewResultPublicDto.prototype, "aiInterviewUuid", 2);
|
|
9621
9663
|
__decorateClass([
|
|
9622
|
-
(0,
|
|
9623
|
-
(0,
|
|
9664
|
+
(0, import_class_validator108.IsOptional)(),
|
|
9665
|
+
(0, import_class_validator108.IsObject)()
|
|
9624
9666
|
], CaptureAiInterviewResultPublicDto.prototype, "result", 2);
|
|
9625
9667
|
__decorateClass([
|
|
9626
|
-
(0,
|
|
9627
|
-
(0,
|
|
9668
|
+
(0, import_class_validator108.IsOptional)(),
|
|
9669
|
+
(0, import_class_validator108.IsString)()
|
|
9628
9670
|
], CaptureAiInterviewResultPublicDto.prototype, "status", 2);
|
|
9629
9671
|
|
|
9630
9672
|
// src/modules/interview/dto/create-interview-basic-information.dto.ts
|
|
9631
|
-
var
|
|
9673
|
+
var import_class_validator109 = require("class-validator");
|
|
9632
9674
|
var CreateInterviewBasicInformationDto = class {
|
|
9633
9675
|
};
|
|
9634
9676
|
__decorateClass([
|
|
9635
|
-
(0,
|
|
9636
|
-
(0,
|
|
9677
|
+
(0, import_class_validator109.IsNotEmpty)({ message: "Job ID is required" }),
|
|
9678
|
+
(0, import_class_validator109.IsNumber)({}, { message: "Job ID must be a number" })
|
|
9637
9679
|
], CreateInterviewBasicInformationDto.prototype, "jobId", 2);
|
|
9638
9680
|
__decorateClass([
|
|
9639
|
-
(0,
|
|
9640
|
-
(0,
|
|
9681
|
+
(0, import_class_validator109.IsNotEmpty)({ message: "Interview name is required" }),
|
|
9682
|
+
(0, import_class_validator109.IsString)({ message: "Interview name must be a string" })
|
|
9641
9683
|
], CreateInterviewBasicInformationDto.prototype, "interviewName", 2);
|
|
9642
9684
|
|
|
9643
9685
|
// src/modules/interview/dto/update-interview-basic-information.dto.ts
|
|
9644
|
-
var
|
|
9686
|
+
var import_class_validator110 = require("class-validator");
|
|
9645
9687
|
var UpdateInterviewBasicInformationDto = class {
|
|
9646
9688
|
};
|
|
9647
9689
|
__decorateClass([
|
|
9648
|
-
(0,
|
|
9649
|
-
(0,
|
|
9690
|
+
(0, import_class_validator110.IsOptional)(),
|
|
9691
|
+
(0, import_class_validator110.IsString)()
|
|
9650
9692
|
], UpdateInterviewBasicInformationDto.prototype, "title", 2);
|
|
9651
9693
|
__decorateClass([
|
|
9652
|
-
(0,
|
|
9653
|
-
(0,
|
|
9694
|
+
(0, import_class_validator110.IsOptional)(),
|
|
9695
|
+
(0, import_class_validator110.IsString)()
|
|
9654
9696
|
], UpdateInterviewBasicInformationDto.prototype, "description", 2);
|
|
9655
9697
|
__decorateClass([
|
|
9656
|
-
(0,
|
|
9657
|
-
(0,
|
|
9698
|
+
(0, import_class_validator110.IsOptional)(),
|
|
9699
|
+
(0, import_class_validator110.IsDateString)()
|
|
9658
9700
|
], UpdateInterviewBasicInformationDto.prototype, "scheduledAt", 2);
|
|
9659
9701
|
__decorateClass([
|
|
9660
|
-
(0,
|
|
9661
|
-
(0,
|
|
9702
|
+
(0, import_class_validator110.IsOptional)(),
|
|
9703
|
+
(0, import_class_validator110.IsNumber)({}, { message: "Duration must be a number" })
|
|
9662
9704
|
], UpdateInterviewBasicInformationDto.prototype, "duration", 2);
|
|
9663
9705
|
__decorateClass([
|
|
9664
|
-
(0,
|
|
9665
|
-
(0,
|
|
9666
|
-
(0,
|
|
9706
|
+
(0, import_class_validator110.IsOptional)(),
|
|
9707
|
+
(0, import_class_validator110.IsArray)(),
|
|
9708
|
+
(0, import_class_validator110.IsNumber)({}, { each: true, message: "Each skill ID must be a number" })
|
|
9667
9709
|
], UpdateInterviewBasicInformationDto.prototype, "skillIds", 2);
|
|
9668
9710
|
__decorateClass([
|
|
9669
|
-
(0,
|
|
9670
|
-
(0,
|
|
9711
|
+
(0, import_class_validator110.IsOptional)(),
|
|
9712
|
+
(0, import_class_validator110.IsString)()
|
|
9671
9713
|
], UpdateInterviewBasicInformationDto.prototype, "location", 2);
|
|
9672
9714
|
|
|
9673
9715
|
// src/modules/interview/dto/create-interview-skills.dto.ts
|
|
9674
|
-
var
|
|
9716
|
+
var import_class_validator111 = require("class-validator");
|
|
9675
9717
|
var import_class_transformer22 = require("class-transformer");
|
|
9676
9718
|
var InterviewSkillItemDto = class {
|
|
9677
9719
|
};
|
|
9678
9720
|
__decorateClass([
|
|
9679
|
-
(0,
|
|
9721
|
+
(0, import_class_validator111.IsOptional)()
|
|
9680
9722
|
], InterviewSkillItemDto.prototype, "uuid", 2);
|
|
9681
9723
|
__decorateClass([
|
|
9682
|
-
(0,
|
|
9683
|
-
(0,
|
|
9724
|
+
(0, import_class_validator111.IsString)({ message: "Skill name must be a string." }),
|
|
9725
|
+
(0, import_class_validator111.IsNotEmpty)({ message: "Skill name is required." })
|
|
9684
9726
|
], InterviewSkillItemDto.prototype, "skill", 2);
|
|
9685
9727
|
__decorateClass([
|
|
9686
|
-
(0,
|
|
9687
|
-
(0,
|
|
9728
|
+
(0, import_class_validator111.IsOptional)(),
|
|
9729
|
+
(0, import_class_validator111.IsString)({ message: "Skill description must be a string." })
|
|
9688
9730
|
], InterviewSkillItemDto.prototype, "description", 2);
|
|
9689
9731
|
var CreateInterviewSkillsDto = class {
|
|
9690
9732
|
};
|
|
9691
9733
|
__decorateClass([
|
|
9692
|
-
(0,
|
|
9693
|
-
(0,
|
|
9694
|
-
(0,
|
|
9734
|
+
(0, import_class_validator111.IsArray)({ message: "Skills must be an array." }),
|
|
9735
|
+
(0, import_class_validator111.IsNotEmpty)({ message: "At least one skill is required." }),
|
|
9736
|
+
(0, import_class_validator111.ValidateNested)({ each: true }),
|
|
9695
9737
|
(0, import_class_transformer22.Type)(() => InterviewSkillItemDto)
|
|
9696
9738
|
], CreateInterviewSkillsDto.prototype, "skills", 2);
|
|
9697
9739
|
|
|
9698
9740
|
// src/modules/interview/dto/create-interview-questions.dto.ts
|
|
9699
|
-
var
|
|
9741
|
+
var import_class_validator112 = require("class-validator");
|
|
9700
9742
|
var import_class_transformer23 = require("class-transformer");
|
|
9701
9743
|
var CustomQuestionItemDto = class {
|
|
9702
9744
|
};
|
|
9703
9745
|
__decorateClass([
|
|
9704
|
-
(0,
|
|
9705
|
-
(0,
|
|
9746
|
+
(0, import_class_validator112.IsOptional)(),
|
|
9747
|
+
(0, import_class_validator112.IsUUID)("4", { message: "Question UUID must be a valid UUID." })
|
|
9706
9748
|
], CustomQuestionItemDto.prototype, "uuid", 2);
|
|
9707
9749
|
__decorateClass([
|
|
9708
|
-
(0,
|
|
9709
|
-
(0,
|
|
9750
|
+
(0, import_class_validator112.IsString)({ message: "Question must be a string." }),
|
|
9751
|
+
(0, import_class_validator112.IsNotEmpty)({ message: "Question is required." })
|
|
9710
9752
|
], CustomQuestionItemDto.prototype, "question", 2);
|
|
9711
9753
|
var AiQuestionItemDto = class {
|
|
9712
9754
|
};
|
|
9713
9755
|
__decorateClass([
|
|
9714
|
-
(0,
|
|
9715
|
-
(0,
|
|
9756
|
+
(0, import_class_validator112.IsOptional)(),
|
|
9757
|
+
(0, import_class_validator112.IsUUID)("4", { message: "Question UUID must be a valid UUID." })
|
|
9716
9758
|
], AiQuestionItemDto.prototype, "uuid", 2);
|
|
9717
9759
|
__decorateClass([
|
|
9718
|
-
(0,
|
|
9719
|
-
(0,
|
|
9760
|
+
(0, import_class_validator112.IsString)({ message: "Question must be a string." }),
|
|
9761
|
+
(0, import_class_validator112.IsNotEmpty)({ message: "Question is required." })
|
|
9720
9762
|
], AiQuestionItemDto.prototype, "question", 2);
|
|
9721
9763
|
__decorateClass([
|
|
9722
|
-
(0,
|
|
9723
|
-
(0,
|
|
9724
|
-
(0,
|
|
9764
|
+
(0, import_class_validator112.IsOptional)(),
|
|
9765
|
+
(0, import_class_validator112.IsArray)({ message: "Concepts must be an array." }),
|
|
9766
|
+
(0, import_class_validator112.IsString)({ each: true, message: "Each concept must be a string." })
|
|
9725
9767
|
], AiQuestionItemDto.prototype, "concepts", 2);
|
|
9726
9768
|
var CreateInterviewQuestionsDto = class {
|
|
9727
9769
|
};
|
|
9728
9770
|
__decorateClass([
|
|
9729
|
-
(0,
|
|
9730
|
-
(0,
|
|
9731
|
-
(0,
|
|
9771
|
+
(0, import_class_validator112.IsOptional)(),
|
|
9772
|
+
(0, import_class_validator112.IsArray)({ message: "Questions must be an array." }),
|
|
9773
|
+
(0, import_class_validator112.ValidateNested)({ each: true }),
|
|
9732
9774
|
(0, import_class_transformer23.Type)(() => CustomQuestionItemDto)
|
|
9733
9775
|
], CreateInterviewQuestionsDto.prototype, "questions", 2);
|
|
9734
9776
|
__decorateClass([
|
|
9735
|
-
(0,
|
|
9736
|
-
(0,
|
|
9737
|
-
(0,
|
|
9777
|
+
(0, import_class_validator112.IsOptional)(),
|
|
9778
|
+
(0, import_class_validator112.IsArray)({ message: "AI questions must be an array." }),
|
|
9779
|
+
(0, import_class_validator112.ValidateNested)({ each: true }),
|
|
9738
9780
|
(0, import_class_transformer23.Type)(() => AiQuestionItemDto)
|
|
9739
9781
|
], CreateInterviewQuestionsDto.prototype, "aiQuestions", 2);
|
|
9740
9782
|
|
|
9741
9783
|
// src/modules/interview/dto/update-interview-setting.dto.ts
|
|
9742
|
-
var
|
|
9784
|
+
var import_class_validator113 = require("class-validator");
|
|
9743
9785
|
var import_class_transformer24 = require("class-transformer");
|
|
9744
9786
|
var UpdateInterviewSettingDto = class {
|
|
9745
9787
|
};
|
|
9746
9788
|
__decorateClass([
|
|
9747
|
-
(0,
|
|
9748
|
-
(0,
|
|
9789
|
+
(0, import_class_validator113.IsOptional)(),
|
|
9790
|
+
(0, import_class_validator113.IsString)({ message: "Interview language must be a string." })
|
|
9749
9791
|
], UpdateInterviewSettingDto.prototype, "interviewLanguage", 2);
|
|
9750
9792
|
__decorateClass([
|
|
9751
|
-
(0,
|
|
9752
|
-
(0,
|
|
9793
|
+
(0, import_class_validator113.IsOptional)(),
|
|
9794
|
+
(0, import_class_validator113.IsBoolean)({ message: "Allow proctoring must be a boolean." }),
|
|
9753
9795
|
(0, import_class_transformer24.Type)(() => Boolean)
|
|
9754
9796
|
], UpdateInterviewSettingDto.prototype, "allowProctoring", 2);
|
|
9755
9797
|
__decorateClass([
|
|
9756
|
-
(0,
|
|
9757
|
-
(0,
|
|
9798
|
+
(0, import_class_validator113.IsOptional)(),
|
|
9799
|
+
(0, import_class_validator113.IsString)({ message: "Interview duration must be a string." })
|
|
9758
9800
|
], UpdateInterviewSettingDto.prototype, "interviewDuration", 2);
|
|
9759
9801
|
__decorateClass([
|
|
9760
|
-
(0,
|
|
9761
|
-
(0,
|
|
9802
|
+
(0, import_class_validator113.IsOptional)(),
|
|
9803
|
+
(0, import_class_validator113.IsString)({ message: "Interview validity period must be a string." })
|
|
9762
9804
|
], UpdateInterviewSettingDto.prototype, "interviewValidityPeriod", 2);
|
|
9763
9805
|
__decorateClass([
|
|
9764
|
-
(0,
|
|
9765
|
-
(0,
|
|
9806
|
+
(0, import_class_validator113.IsOptional)(),
|
|
9807
|
+
(0, import_class_validator113.IsString)({ message: "Maximum attempts allowed must be a string." })
|
|
9766
9808
|
], UpdateInterviewSettingDto.prototype, "maximumAttemptsAllowed", 2);
|
|
9767
9809
|
__decorateClass([
|
|
9768
|
-
(0,
|
|
9769
|
-
(0,
|
|
9810
|
+
(0, import_class_validator113.IsOptional)(),
|
|
9811
|
+
(0, import_class_validator113.IsString)({ message: "Start interview message must be a string." })
|
|
9770
9812
|
], UpdateInterviewSettingDto.prototype, "startInterviewMessage", 2);
|
|
9771
9813
|
__decorateClass([
|
|
9772
|
-
(0,
|
|
9773
|
-
(0,
|
|
9814
|
+
(0, import_class_validator113.IsOptional)(),
|
|
9815
|
+
(0, import_class_validator113.IsString)({ message: "End interview message must be a string." })
|
|
9774
9816
|
], UpdateInterviewSettingDto.prototype, "endInterviewMessage", 2);
|
|
9775
9817
|
|
|
9776
9818
|
// src/modules/interview/dto/update-interview-type-information.dto.ts
|
|
9777
|
-
var
|
|
9819
|
+
var import_class_validator114 = require("class-validator");
|
|
9778
9820
|
var UpdateInterviewTypeInformationDto = class {
|
|
9779
9821
|
};
|
|
9780
9822
|
__decorateClass([
|
|
9781
|
-
(0,
|
|
9782
|
-
(0,
|
|
9823
|
+
(0, import_class_validator114.IsOptional)(),
|
|
9824
|
+
(0, import_class_validator114.IsString)({ message: "Interview type must be a string." })
|
|
9783
9825
|
], UpdateInterviewTypeInformationDto.prototype, "interviewType", 2);
|
|
9784
9826
|
|
|
9785
9827
|
// src/modules/contract/pattern/pattern.ts
|
|
@@ -9817,47 +9859,47 @@ var CONTRACT_PATTERN = {
|
|
|
9817
9859
|
};
|
|
9818
9860
|
|
|
9819
9861
|
// src/modules/contract/dto/sign-contract-for-client.dto.ts
|
|
9820
|
-
var
|
|
9862
|
+
var import_class_validator115 = require("class-validator");
|
|
9821
9863
|
var import_class_transformer25 = require("class-transformer");
|
|
9822
9864
|
var SignContractForClientDto = class {
|
|
9823
9865
|
};
|
|
9824
9866
|
__decorateClass([
|
|
9825
|
-
(0,
|
|
9867
|
+
(0, import_class_validator115.IsNotEmpty)({ message: "Job Id is required." }),
|
|
9826
9868
|
(0, import_class_transformer25.Type)(() => Number),
|
|
9827
|
-
(0,
|
|
9869
|
+
(0, import_class_validator115.IsNumber)({}, { message: "Job ID must be a number." })
|
|
9828
9870
|
], SignContractForClientDto.prototype, "jobId", 2);
|
|
9829
9871
|
__decorateClass([
|
|
9830
|
-
(0,
|
|
9872
|
+
(0, import_class_validator115.IsNotEmpty)({ message: "Freelancer ID is required." }),
|
|
9831
9873
|
(0, import_class_transformer25.Type)(() => Number),
|
|
9832
|
-
(0,
|
|
9874
|
+
(0, import_class_validator115.IsNumber)({}, { message: "Freelancer ID must be a number." })
|
|
9833
9875
|
], SignContractForClientDto.prototype, "freelancerId", 2);
|
|
9834
9876
|
__decorateClass([
|
|
9835
|
-
(0,
|
|
9836
|
-
(0,
|
|
9877
|
+
(0, import_class_validator115.IsNotEmpty)({ message: "Contract type is required." }),
|
|
9878
|
+
(0, import_class_validator115.IsEnum)(ContractTypeEnum)
|
|
9837
9879
|
], SignContractForClientDto.prototype, "contractType", 2);
|
|
9838
9880
|
|
|
9839
9881
|
// src/modules/contract/dto/sign-contract-for-freelancer.dto.ts
|
|
9840
|
-
var
|
|
9882
|
+
var import_class_validator116 = require("class-validator");
|
|
9841
9883
|
var import_class_transformer26 = require("class-transformer");
|
|
9842
9884
|
var SignContractForFreelancerDto = class {
|
|
9843
9885
|
};
|
|
9844
9886
|
__decorateClass([
|
|
9845
|
-
(0,
|
|
9887
|
+
(0, import_class_validator116.IsNotEmpty)({ message: "Job Id is required." }),
|
|
9846
9888
|
(0, import_class_transformer26.Type)(() => Number),
|
|
9847
|
-
(0,
|
|
9889
|
+
(0, import_class_validator116.IsNumber)({}, { message: "Job ID must be a number." })
|
|
9848
9890
|
], SignContractForFreelancerDto.prototype, "jobId", 2);
|
|
9849
9891
|
__decorateClass([
|
|
9850
|
-
(0,
|
|
9892
|
+
(0, import_class_validator116.IsNotEmpty)({ message: "Client ID is required." }),
|
|
9851
9893
|
(0, import_class_transformer26.Type)(() => Number),
|
|
9852
|
-
(0,
|
|
9894
|
+
(0, import_class_validator116.IsNumber)({}, { message: "Client ID must be a number." })
|
|
9853
9895
|
], SignContractForFreelancerDto.prototype, "clientId", 2);
|
|
9854
9896
|
__decorateClass([
|
|
9855
|
-
(0,
|
|
9856
|
-
(0,
|
|
9897
|
+
(0, import_class_validator116.IsNotEmpty)({ message: "Contract type is required." }),
|
|
9898
|
+
(0, import_class_validator116.IsEnum)(ContractTypeEnum)
|
|
9857
9899
|
], SignContractForFreelancerDto.prototype, "contractType", 2);
|
|
9858
9900
|
|
|
9859
9901
|
// src/modules/contract/dto/generate-contract.dto.ts
|
|
9860
|
-
var
|
|
9902
|
+
var import_class_validator117 = require("class-validator");
|
|
9861
9903
|
var ContractSourceEnum = /* @__PURE__ */ ((ContractSourceEnum3) => {
|
|
9862
9904
|
ContractSourceEnum3["AI_INTERVIEW"] = "AI_INTERVIEW";
|
|
9863
9905
|
ContractSourceEnum3["F2F_INTERVIEW"] = "F2F_INTERVIEW";
|
|
@@ -9878,73 +9920,73 @@ var PreferredEngagementTypeEnum = /* @__PURE__ */ ((PreferredEngagementTypeEnum3
|
|
|
9878
9920
|
var GenerateContractDto = class {
|
|
9879
9921
|
};
|
|
9880
9922
|
__decorateClass([
|
|
9881
|
-
(0,
|
|
9882
|
-
(0,
|
|
9923
|
+
(0, import_class_validator117.IsNumber)({}, { message: "Job ID must be a number." }),
|
|
9924
|
+
(0, import_class_validator117.IsNotEmpty)({ message: "Job ID is required." })
|
|
9883
9925
|
], GenerateContractDto.prototype, "jobId", 2);
|
|
9884
9926
|
__decorateClass([
|
|
9885
|
-
(0,
|
|
9886
|
-
(0,
|
|
9927
|
+
(0, import_class_validator117.IsNumber)({}, { message: "Freelancer ID must be a number." }),
|
|
9928
|
+
(0, import_class_validator117.IsNotEmpty)({ message: "Freelancer ID is required." })
|
|
9887
9929
|
], GenerateContractDto.prototype, "freelancerId", 2);
|
|
9888
9930
|
__decorateClass([
|
|
9889
|
-
(0,
|
|
9890
|
-
(0,
|
|
9931
|
+
(0, import_class_validator117.IsOptional)(),
|
|
9932
|
+
(0, import_class_validator117.IsEnum)(ContractTypeEnumDto, {
|
|
9891
9933
|
message: "Contract type must be one of NDA, MSA, SOW, or WORK."
|
|
9892
9934
|
})
|
|
9893
9935
|
], GenerateContractDto.prototype, "contractType", 2);
|
|
9894
9936
|
__decorateClass([
|
|
9895
|
-
(0,
|
|
9896
|
-
(0,
|
|
9937
|
+
(0, import_class_validator117.IsOptional)(),
|
|
9938
|
+
(0, import_class_validator117.IsString)({ message: "Contract start date must be a string." })
|
|
9897
9939
|
], GenerateContractDto.prototype, "contractStartDate", 2);
|
|
9898
9940
|
__decorateClass([
|
|
9899
|
-
(0,
|
|
9900
|
-
(0,
|
|
9941
|
+
(0, import_class_validator117.IsOptional)(),
|
|
9942
|
+
(0, import_class_validator117.IsString)({ message: "Contract invoicing cycle must be a string." })
|
|
9901
9943
|
], GenerateContractDto.prototype, "contractInvoicingCycle", 2);
|
|
9902
9944
|
__decorateClass([
|
|
9903
|
-
(0,
|
|
9904
|
-
(0,
|
|
9945
|
+
(0, import_class_validator117.IsNotEmpty)({ message: "Preferred engagement type is required" }),
|
|
9946
|
+
(0, import_class_validator117.IsEnum)(PreferredEngagementTypeEnum, {
|
|
9905
9947
|
message: "Preferred engagement type must be FREELANCE."
|
|
9906
9948
|
})
|
|
9907
9949
|
], GenerateContractDto.prototype, "preferredEngagementType", 2);
|
|
9908
9950
|
__decorateClass([
|
|
9909
|
-
(0,
|
|
9910
|
-
(0,
|
|
9951
|
+
(0, import_class_validator117.IsOptional)(),
|
|
9952
|
+
(0, import_class_validator117.IsEnum)(ContractSourceEnum, {
|
|
9911
9953
|
message: "Source must be one of AI_INTERVIEW, F2F_INTERVIEW, or JOB."
|
|
9912
9954
|
})
|
|
9913
9955
|
], GenerateContractDto.prototype, "source", 2);
|
|
9914
9956
|
__decorateClass([
|
|
9915
|
-
(0,
|
|
9916
|
-
(0,
|
|
9957
|
+
(0, import_class_validator117.IsOptional)(),
|
|
9958
|
+
(0, import_class_validator117.IsUUID)("4", { message: "Source UUID must be a valid UUID." })
|
|
9917
9959
|
], GenerateContractDto.prototype, "sourceUuid", 2);
|
|
9918
9960
|
|
|
9919
9961
|
// src/modules/contract/dto/esign-contract-client.dto.ts
|
|
9920
|
-
var
|
|
9962
|
+
var import_class_validator118 = require("class-validator");
|
|
9921
9963
|
var EsignContractClientDto = class {
|
|
9922
9964
|
};
|
|
9923
9965
|
__decorateClass([
|
|
9924
|
-
(0,
|
|
9925
|
-
(0,
|
|
9966
|
+
(0, import_class_validator118.IsUUID)("4", { message: "Contract UUID must be a valid UUID." }),
|
|
9967
|
+
(0, import_class_validator118.IsNotEmpty)({ message: "Contract UUID is required." })
|
|
9926
9968
|
], EsignContractClientDto.prototype, "contractUuid", 2);
|
|
9927
9969
|
|
|
9928
9970
|
// src/modules/contract/dto/esign-contract-freelancer.dto.ts
|
|
9929
|
-
var
|
|
9971
|
+
var import_class_validator119 = require("class-validator");
|
|
9930
9972
|
var EsignContractFreelancerDto = class {
|
|
9931
9973
|
};
|
|
9932
9974
|
__decorateClass([
|
|
9933
|
-
(0,
|
|
9934
|
-
(0,
|
|
9975
|
+
(0, import_class_validator119.IsUUID)("4", { message: "Contract UUID must be a valid UUID." }),
|
|
9976
|
+
(0, import_class_validator119.IsNotEmpty)({ message: "Contract UUID is required." })
|
|
9935
9977
|
], EsignContractFreelancerDto.prototype, "contractUuid", 2);
|
|
9936
9978
|
|
|
9937
9979
|
// src/modules/contract/dto/escrow-fund-contract.dto.ts
|
|
9938
|
-
var
|
|
9980
|
+
var import_class_validator120 = require("class-validator");
|
|
9939
9981
|
var EscrowFundContractDto = class {
|
|
9940
9982
|
};
|
|
9941
9983
|
__decorateClass([
|
|
9942
|
-
(0,
|
|
9943
|
-
(0,
|
|
9984
|
+
(0, import_class_validator120.IsUUID)("4", { message: "Contract ID must be a valid UUID." }),
|
|
9985
|
+
(0, import_class_validator120.IsNotEmpty)({ message: "Contract ID is required." })
|
|
9944
9986
|
], EscrowFundContractDto.prototype, "contractId", 2);
|
|
9945
9987
|
|
|
9946
9988
|
// src/modules/contract/dto/send-nda-contract-to-freelancer.dto.ts
|
|
9947
|
-
var
|
|
9989
|
+
var import_class_validator121 = require("class-validator");
|
|
9948
9990
|
var ContractSourceEnum2 = /* @__PURE__ */ ((ContractSourceEnum3) => {
|
|
9949
9991
|
ContractSourceEnum3["AI_INTERVIEW"] = "AI_INTERVIEW";
|
|
9950
9992
|
ContractSourceEnum3["F2F_INTERVIEW"] = "F2F_INTERVIEW";
|
|
@@ -9954,27 +9996,27 @@ var ContractSourceEnum2 = /* @__PURE__ */ ((ContractSourceEnum3) => {
|
|
|
9954
9996
|
var SendNdaContractToFreelancerDto = class {
|
|
9955
9997
|
};
|
|
9956
9998
|
__decorateClass([
|
|
9957
|
-
(0,
|
|
9958
|
-
(0,
|
|
9999
|
+
(0, import_class_validator121.IsUUID)("4", { message: "Contract UUID must be a valid UUID." }),
|
|
10000
|
+
(0, import_class_validator121.IsNotEmpty)({ message: "Contract UUID is required." })
|
|
9959
10001
|
], SendNdaContractToFreelancerDto.prototype, "contractUuid", 2);
|
|
9960
10002
|
__decorateClass([
|
|
9961
|
-
(0,
|
|
9962
|
-
(0,
|
|
10003
|
+
(0, import_class_validator121.IsOptional)(),
|
|
10004
|
+
(0, import_class_validator121.IsEnum)(ContractSourceEnum2, {
|
|
9963
10005
|
message: "Source must be one of AI_INTERVIEW, F2F_INTERVIEW, or JOB."
|
|
9964
10006
|
})
|
|
9965
10007
|
], SendNdaContractToFreelancerDto.prototype, "source", 2);
|
|
9966
10008
|
__decorateClass([
|
|
9967
|
-
(0,
|
|
9968
|
-
(0,
|
|
10009
|
+
(0, import_class_validator121.IsOptional)(),
|
|
10010
|
+
(0, import_class_validator121.IsUUID)("4", { message: "Source UUID must be a valid UUID." })
|
|
9969
10011
|
], SendNdaContractToFreelancerDto.prototype, "sourceUuid", 2);
|
|
9970
10012
|
|
|
9971
10013
|
// src/modules/contract/dto/reject-contract.dto.ts
|
|
9972
|
-
var
|
|
10014
|
+
var import_class_validator122 = require("class-validator");
|
|
9973
10015
|
var RejectContractDto = class {
|
|
9974
10016
|
};
|
|
9975
10017
|
__decorateClass([
|
|
9976
|
-
(0,
|
|
9977
|
-
(0,
|
|
10018
|
+
(0, import_class_validator122.IsOptional)(),
|
|
10019
|
+
(0, import_class_validator122.IsString)({ message: "Reject reason must be a string." })
|
|
9978
10020
|
], RejectContractDto.prototype, "rejectReason", 2);
|
|
9979
10021
|
|
|
9980
10022
|
// src/modules/stripe/pattern/pattern.ts
|
|
@@ -9998,54 +10040,54 @@ var STRIPE_PATTERN = {
|
|
|
9998
10040
|
};
|
|
9999
10041
|
|
|
10000
10042
|
// src/modules/stripe/dto/create-checkout-session.dto.ts
|
|
10001
|
-
var
|
|
10043
|
+
var import_class_validator123 = require("class-validator");
|
|
10002
10044
|
var CreateCheckoutSessionDto = class {
|
|
10003
10045
|
};
|
|
10004
10046
|
__decorateClass([
|
|
10005
|
-
(0,
|
|
10047
|
+
(0, import_class_validator123.IsNotEmpty)({ message: "Amount is required" })
|
|
10006
10048
|
], CreateCheckoutSessionDto.prototype, "amount", 2);
|
|
10007
10049
|
|
|
10008
10050
|
// src/modules/stripe/dto/pre-checkout-calculation.dto.ts
|
|
10009
|
-
var
|
|
10051
|
+
var import_class_validator124 = require("class-validator");
|
|
10010
10052
|
var PreCheckoutCalculationDto = class {
|
|
10011
10053
|
};
|
|
10012
10054
|
__decorateClass([
|
|
10013
|
-
(0,
|
|
10014
|
-
(0,
|
|
10055
|
+
(0, import_class_validator124.IsNotEmpty)({ message: "Amount is required" }),
|
|
10056
|
+
(0, import_class_validator124.IsNumber)({}, { message: "Amount must be a number" })
|
|
10015
10057
|
], PreCheckoutCalculationDto.prototype, "amount", 2);
|
|
10016
10058
|
__decorateClass([
|
|
10017
|
-
(0,
|
|
10018
|
-
(0,
|
|
10059
|
+
(0, import_class_validator124.IsOptional)(),
|
|
10060
|
+
(0, import_class_validator124.IsString)()
|
|
10019
10061
|
], PreCheckoutCalculationDto.prototype, "currency", 2);
|
|
10020
10062
|
__decorateClass([
|
|
10021
|
-
(0,
|
|
10022
|
-
(0,
|
|
10063
|
+
(0, import_class_validator124.IsOptional)(),
|
|
10064
|
+
(0, import_class_validator124.IsString)()
|
|
10023
10065
|
], PreCheckoutCalculationDto.prototype, "description", 2);
|
|
10024
10066
|
|
|
10025
10067
|
// src/modules/stripe/dto/client-add-fund.dto.ts
|
|
10026
|
-
var
|
|
10068
|
+
var import_class_validator125 = require("class-validator");
|
|
10027
10069
|
var ClientAddFundDto = class {
|
|
10028
10070
|
};
|
|
10029
10071
|
__decorateClass([
|
|
10030
|
-
(0,
|
|
10031
|
-
(0,
|
|
10072
|
+
(0, import_class_validator125.IsNotEmpty)({ message: "Amount is required" }),
|
|
10073
|
+
(0, import_class_validator125.IsNumber)({}, { message: "Amount must be a number" })
|
|
10032
10074
|
], ClientAddFundDto.prototype, "amount", 2);
|
|
10033
10075
|
__decorateClass([
|
|
10034
|
-
(0,
|
|
10035
|
-
(0,
|
|
10076
|
+
(0, import_class_validator125.IsOptional)(),
|
|
10077
|
+
(0, import_class_validator125.IsString)()
|
|
10036
10078
|
], ClientAddFundDto.prototype, "currency", 2);
|
|
10037
10079
|
__decorateClass([
|
|
10038
|
-
(0,
|
|
10039
|
-
(0,
|
|
10080
|
+
(0, import_class_validator125.IsOptional)(),
|
|
10081
|
+
(0, import_class_validator125.IsString)()
|
|
10040
10082
|
], ClientAddFundDto.prototype, "description", 2);
|
|
10041
10083
|
|
|
10042
10084
|
// src/modules/stripe/dto/transfer-funds.dto.ts
|
|
10043
|
-
var
|
|
10085
|
+
var import_class_validator126 = require("class-validator");
|
|
10044
10086
|
var TransferFundsDto = class {
|
|
10045
10087
|
};
|
|
10046
10088
|
__decorateClass([
|
|
10047
|
-
(0,
|
|
10048
|
-
(0,
|
|
10089
|
+
(0, import_class_validator126.IsUUID)("4", { message: "Invoice UUID must be a valid UUID." }),
|
|
10090
|
+
(0, import_class_validator126.IsNotEmpty)({ message: "Invoice UUID is required." })
|
|
10049
10091
|
], TransferFundsDto.prototype, "invoiceUuid", 2);
|
|
10050
10092
|
|
|
10051
10093
|
// src/modules/timesheet/pattern/pattern.ts
|
|
@@ -10089,160 +10131,160 @@ var TIMESHEET_CLIENT_PATTERN = {
|
|
|
10089
10131
|
};
|
|
10090
10132
|
|
|
10091
10133
|
// src/modules/timesheet/dto/create-freelancer-timesheet.dto.ts
|
|
10092
|
-
var
|
|
10134
|
+
var import_class_validator127 = require("class-validator");
|
|
10093
10135
|
var CreateFreelancerTimesheetDto = class {
|
|
10094
10136
|
};
|
|
10095
10137
|
__decorateClass([
|
|
10096
|
-
(0,
|
|
10097
|
-
(0,
|
|
10138
|
+
(0, import_class_validator127.IsNotEmpty)({ message: "Job id is required" }),
|
|
10139
|
+
(0, import_class_validator127.IsNumber)({}, { message: "Job id must be a number" })
|
|
10098
10140
|
], CreateFreelancerTimesheetDto.prototype, "jobId", 2);
|
|
10099
10141
|
__decorateClass([
|
|
10100
|
-
(0,
|
|
10101
|
-
(0,
|
|
10142
|
+
(0, import_class_validator127.IsNotEmpty)({ message: "start date is required" }),
|
|
10143
|
+
(0, import_class_validator127.IsDateString)()
|
|
10102
10144
|
], CreateFreelancerTimesheetDto.prototype, "startDate", 2);
|
|
10103
10145
|
__decorateClass([
|
|
10104
|
-
(0,
|
|
10105
|
-
(0,
|
|
10146
|
+
(0, import_class_validator127.IsNotEmpty)({ message: "end date is required" }),
|
|
10147
|
+
(0, import_class_validator127.IsDateString)()
|
|
10106
10148
|
], CreateFreelancerTimesheetDto.prototype, "endDate", 2);
|
|
10107
10149
|
__decorateClass([
|
|
10108
|
-
(0,
|
|
10109
|
-
(0,
|
|
10150
|
+
(0, import_class_validator127.IsNotEmpty)({ message: "start time is required" }),
|
|
10151
|
+
(0, import_class_validator127.Matches)(/^([01]\d|2[0-3]):([0-5]\d):([0-5]\d)$/, {
|
|
10110
10152
|
message: "startTime must be in HH:mm:ss format"
|
|
10111
10153
|
})
|
|
10112
10154
|
], CreateFreelancerTimesheetDto.prototype, "startTime", 2);
|
|
10113
10155
|
__decorateClass([
|
|
10114
|
-
(0,
|
|
10115
|
-
(0,
|
|
10156
|
+
(0, import_class_validator127.IsNotEmpty)({ message: "end time is required" }),
|
|
10157
|
+
(0, import_class_validator127.Matches)(/^([01]\d|2[0-3]):([0-5]\d):([0-5]\d)$/, {
|
|
10116
10158
|
message: "endTime must be in HH:mm:ss format"
|
|
10117
10159
|
})
|
|
10118
10160
|
], CreateFreelancerTimesheetDto.prototype, "endTime", 2);
|
|
10119
10161
|
__decorateClass([
|
|
10120
|
-
(0,
|
|
10121
|
-
(0,
|
|
10162
|
+
(0, import_class_validator127.IsOptional)(),
|
|
10163
|
+
(0, import_class_validator127.IsInt)()
|
|
10122
10164
|
], CreateFreelancerTimesheetDto.prototype, "taskId", 2);
|
|
10123
10165
|
__decorateClass([
|
|
10124
|
-
(0,
|
|
10125
|
-
(0,
|
|
10166
|
+
(0, import_class_validator127.IsOptional)(),
|
|
10167
|
+
(0, import_class_validator127.IsString)()
|
|
10126
10168
|
], CreateFreelancerTimesheetDto.prototype, "projectName", 2);
|
|
10127
10169
|
__decorateClass([
|
|
10128
|
-
(0,
|
|
10129
|
-
(0,
|
|
10170
|
+
(0, import_class_validator127.IsOptional)(),
|
|
10171
|
+
(0, import_class_validator127.IsString)()
|
|
10130
10172
|
], CreateFreelancerTimesheetDto.prototype, "deliverable", 2);
|
|
10131
10173
|
__decorateClass([
|
|
10132
|
-
(0,
|
|
10133
|
-
(0,
|
|
10174
|
+
(0, import_class_validator127.IsOptional)(),
|
|
10175
|
+
(0, import_class_validator127.IsString)()
|
|
10134
10176
|
], CreateFreelancerTimesheetDto.prototype, "taskName", 2);
|
|
10135
10177
|
__decorateClass([
|
|
10136
|
-
(0,
|
|
10178
|
+
(0, import_class_validator127.IsNotEmpty)({ message: "Description is required" })
|
|
10137
10179
|
], CreateFreelancerTimesheetDto.prototype, "description", 2);
|
|
10138
10180
|
|
|
10139
10181
|
// src/modules/timesheet/dto/update-freelancer-timesheet.dto.ts
|
|
10140
|
-
var
|
|
10182
|
+
var import_class_validator128 = require("class-validator");
|
|
10141
10183
|
var UpdateFreelancerTimesheetDto = class {
|
|
10142
10184
|
};
|
|
10143
10185
|
__decorateClass([
|
|
10144
|
-
(0,
|
|
10145
|
-
(0,
|
|
10186
|
+
(0, import_class_validator128.IsNotEmpty)({ message: "Job id is required" }),
|
|
10187
|
+
(0, import_class_validator128.IsNumber)({}, { message: "Job id must be a number" })
|
|
10146
10188
|
], UpdateFreelancerTimesheetDto.prototype, "jobId", 2);
|
|
10147
10189
|
__decorateClass([
|
|
10148
|
-
(0,
|
|
10149
|
-
(0,
|
|
10190
|
+
(0, import_class_validator128.IsNotEmpty)({ message: "start date is required" }),
|
|
10191
|
+
(0, import_class_validator128.IsDateString)()
|
|
10150
10192
|
], UpdateFreelancerTimesheetDto.prototype, "startDate", 2);
|
|
10151
10193
|
__decorateClass([
|
|
10152
|
-
(0,
|
|
10153
|
-
(0,
|
|
10194
|
+
(0, import_class_validator128.IsNotEmpty)({ message: "end date is required" }),
|
|
10195
|
+
(0, import_class_validator128.IsDateString)()
|
|
10154
10196
|
], UpdateFreelancerTimesheetDto.prototype, "endDate", 2);
|
|
10155
10197
|
__decorateClass([
|
|
10156
|
-
(0,
|
|
10157
|
-
(0,
|
|
10198
|
+
(0, import_class_validator128.IsNotEmpty)({ message: "start time is required" }),
|
|
10199
|
+
(0, import_class_validator128.Matches)(/^([01]\d|2[0-3]):([0-5]\d):([0-5]\d)$/, {
|
|
10158
10200
|
message: "startTime must be in HH:mm:ss format"
|
|
10159
10201
|
})
|
|
10160
10202
|
], UpdateFreelancerTimesheetDto.prototype, "startTime", 2);
|
|
10161
10203
|
__decorateClass([
|
|
10162
|
-
(0,
|
|
10163
|
-
(0,
|
|
10204
|
+
(0, import_class_validator128.IsNotEmpty)({ message: "end time is required" }),
|
|
10205
|
+
(0, import_class_validator128.Matches)(/^([01]\d|2[0-3]):([0-5]\d):([0-5]\d)$/, {
|
|
10164
10206
|
message: "endTime must be in HH:mm:ss format"
|
|
10165
10207
|
})
|
|
10166
10208
|
], UpdateFreelancerTimesheetDto.prototype, "endTime", 2);
|
|
10167
10209
|
__decorateClass([
|
|
10168
|
-
(0,
|
|
10169
|
-
(0,
|
|
10210
|
+
(0, import_class_validator128.IsOptional)(),
|
|
10211
|
+
(0, import_class_validator128.IsInt)()
|
|
10170
10212
|
], UpdateFreelancerTimesheetDto.prototype, "taskId", 2);
|
|
10171
10213
|
__decorateClass([
|
|
10172
|
-
(0,
|
|
10173
|
-
(0,
|
|
10214
|
+
(0, import_class_validator128.IsOptional)(),
|
|
10215
|
+
(0, import_class_validator128.IsString)()
|
|
10174
10216
|
], UpdateFreelancerTimesheetDto.prototype, "projectName", 2);
|
|
10175
10217
|
__decorateClass([
|
|
10176
|
-
(0,
|
|
10177
|
-
(0,
|
|
10218
|
+
(0, import_class_validator128.IsOptional)(),
|
|
10219
|
+
(0, import_class_validator128.IsString)()
|
|
10178
10220
|
], UpdateFreelancerTimesheetDto.prototype, "deliverable", 2);
|
|
10179
10221
|
__decorateClass([
|
|
10180
|
-
(0,
|
|
10181
|
-
(0,
|
|
10222
|
+
(0, import_class_validator128.IsOptional)(),
|
|
10223
|
+
(0, import_class_validator128.IsString)()
|
|
10182
10224
|
], UpdateFreelancerTimesheetDto.prototype, "taskName", 2);
|
|
10183
10225
|
__decorateClass([
|
|
10184
|
-
(0,
|
|
10226
|
+
(0, import_class_validator128.IsNotEmpty)({ message: "Description is required" })
|
|
10185
10227
|
], UpdateFreelancerTimesheetDto.prototype, "description", 2);
|
|
10186
10228
|
|
|
10187
10229
|
// src/modules/timesheet/dto/submit-timesheet.dto.ts
|
|
10188
|
-
var
|
|
10230
|
+
var import_class_validator129 = require("class-validator");
|
|
10189
10231
|
var SubmitTimesheetDto = class {
|
|
10190
10232
|
};
|
|
10191
10233
|
__decorateClass([
|
|
10192
|
-
(0,
|
|
10193
|
-
(0,
|
|
10234
|
+
(0, import_class_validator129.IsNotEmpty)({ message: "Timesheet line ID is required" }),
|
|
10235
|
+
(0, import_class_validator129.IsNumber)({}, { message: "Timesheet line ID must be a number" })
|
|
10194
10236
|
], SubmitTimesheetDto.prototype, "timesheetLineId", 2);
|
|
10195
10237
|
|
|
10196
10238
|
// src/modules/timesheet/dto/resubmit-timesheet.dto.ts
|
|
10197
|
-
var
|
|
10239
|
+
var import_class_validator130 = require("class-validator");
|
|
10198
10240
|
var ResubmitTimesheetDto = class {
|
|
10199
10241
|
};
|
|
10200
10242
|
__decorateClass([
|
|
10201
|
-
(0,
|
|
10202
|
-
(0,
|
|
10243
|
+
(0, import_class_validator130.IsNotEmpty)({ message: "Timesheet line ID is required" }),
|
|
10244
|
+
(0, import_class_validator130.IsNumber)({}, { message: "Timesheet line ID must be a number" })
|
|
10203
10245
|
], ResubmitTimesheetDto.prototype, "timesheetLineId", 2);
|
|
10204
10246
|
|
|
10205
10247
|
// src/modules/timesheet/dto/approve-timesheets.dto.ts
|
|
10206
|
-
var
|
|
10248
|
+
var import_class_validator131 = require("class-validator");
|
|
10207
10249
|
var import_class_transformer27 = require("class-transformer");
|
|
10208
10250
|
var ApproveTimesheetsDto = class {
|
|
10209
10251
|
};
|
|
10210
10252
|
__decorateClass([
|
|
10211
|
-
(0,
|
|
10212
|
-
(0,
|
|
10253
|
+
(0, import_class_validator131.IsNumber)({}, { message: "Timesheet line ID must be a number." }),
|
|
10254
|
+
(0, import_class_validator131.IsNotEmpty)({ message: "Timesheet line ID is required." }),
|
|
10213
10255
|
(0, import_class_transformer27.Type)(() => Number)
|
|
10214
10256
|
], ApproveTimesheetsDto.prototype, "timesheetLineId", 2);
|
|
10215
10257
|
|
|
10216
10258
|
// src/modules/timesheet/dto/send-back-timesheets.dto.ts
|
|
10217
|
-
var
|
|
10259
|
+
var import_class_validator132 = require("class-validator");
|
|
10218
10260
|
var import_class_transformer28 = require("class-transformer");
|
|
10219
10261
|
var SendBackTimesheetsDto = class {
|
|
10220
10262
|
};
|
|
10221
10263
|
__decorateClass([
|
|
10222
|
-
(0,
|
|
10223
|
-
(0,
|
|
10264
|
+
(0, import_class_validator132.IsNumber)({}, { message: "Timesheet line ID must be a number." }),
|
|
10265
|
+
(0, import_class_validator132.IsNotEmpty)({ message: "Timesheet line ID is required." }),
|
|
10224
10266
|
(0, import_class_transformer28.Type)(() => Number)
|
|
10225
10267
|
], SendBackTimesheetsDto.prototype, "timesheetLineId", 2);
|
|
10226
10268
|
__decorateClass([
|
|
10227
|
-
(0,
|
|
10228
|
-
(0,
|
|
10269
|
+
(0, import_class_validator132.IsOptional)(),
|
|
10270
|
+
(0, import_class_validator132.IsString)({ message: "Client send back reason must be a string." })
|
|
10229
10271
|
], SendBackTimesheetsDto.prototype, "clientSendBackReason", 2);
|
|
10230
10272
|
|
|
10231
10273
|
// src/modules/timesheet/dto/create-default-timesheet-line.dto.ts
|
|
10232
|
-
var
|
|
10274
|
+
var import_class_validator133 = require("class-validator");
|
|
10233
10275
|
var CreateDefaultTimesheetLineDto = class {
|
|
10234
10276
|
};
|
|
10235
10277
|
__decorateClass([
|
|
10236
|
-
(0,
|
|
10237
|
-
(0,
|
|
10278
|
+
(0, import_class_validator133.IsNotEmpty)({ message: "Contract ID is required" }),
|
|
10279
|
+
(0, import_class_validator133.IsNumber)({}, { message: "Contract ID must be a number" })
|
|
10238
10280
|
], CreateDefaultTimesheetLineDto.prototype, "contractId", 2);
|
|
10239
10281
|
__decorateClass([
|
|
10240
|
-
(0,
|
|
10241
|
-
(0,
|
|
10282
|
+
(0, import_class_validator133.IsNotEmpty)({ message: "Freelancer ID is required" }),
|
|
10283
|
+
(0, import_class_validator133.IsNumber)({}, { message: "Freelancer ID must be a number" })
|
|
10242
10284
|
], CreateDefaultTimesheetLineDto.prototype, "freelancerId", 2);
|
|
10243
10285
|
__decorateClass([
|
|
10244
|
-
(0,
|
|
10245
|
-
(0,
|
|
10286
|
+
(0, import_class_validator133.IsNotEmpty)({ message: "Client ID is required" }),
|
|
10287
|
+
(0, import_class_validator133.IsNumber)({}, { message: "Client ID must be a number" })
|
|
10246
10288
|
], CreateDefaultTimesheetLineDto.prototype, "clientId", 2);
|
|
10247
10289
|
|
|
10248
10290
|
// src/modules/invoice/pattern/pattern.ts
|
|
@@ -10264,23 +10306,23 @@ var INVOICE_PATTERN = {
|
|
|
10264
10306
|
};
|
|
10265
10307
|
|
|
10266
10308
|
// src/modules/invoice/dto/update-invoice-status.dto.ts
|
|
10267
|
-
var
|
|
10309
|
+
var import_class_validator134 = require("class-validator");
|
|
10268
10310
|
var UpdateInvoiceStatusDto = class {
|
|
10269
10311
|
};
|
|
10270
10312
|
__decorateClass([
|
|
10271
|
-
(0,
|
|
10272
|
-
(0,
|
|
10313
|
+
(0, import_class_validator134.IsNotEmpty)({ message: "Please provide invoice status." }),
|
|
10314
|
+
(0, import_class_validator134.IsEnum)(InvoiceStatusEnum, {
|
|
10273
10315
|
message: "Status must be one of: APPROVED, REJECTED"
|
|
10274
10316
|
})
|
|
10275
10317
|
], UpdateInvoiceStatusDto.prototype, "status", 2);
|
|
10276
10318
|
|
|
10277
10319
|
// src/modules/invoice/dto/create-invoice.dto.ts
|
|
10278
|
-
var
|
|
10320
|
+
var import_class_validator135 = require("class-validator");
|
|
10279
10321
|
var CreateInvoiceDto = class {
|
|
10280
10322
|
};
|
|
10281
10323
|
__decorateClass([
|
|
10282
|
-
(0,
|
|
10283
|
-
(0,
|
|
10324
|
+
(0, import_class_validator135.IsNotEmpty)({ message: "Timesheet line ID is required" }),
|
|
10325
|
+
(0, import_class_validator135.IsNumber)({}, { message: "Timesheet line ID must be a number" })
|
|
10284
10326
|
], CreateInvoiceDto.prototype, "timeSheetLineId", 2);
|
|
10285
10327
|
|
|
10286
10328
|
// src/modules/dispute/pattern/pattern.ts
|
|
@@ -10291,42 +10333,42 @@ var DISPUTE_PATTERN = {
|
|
|
10291
10333
|
};
|
|
10292
10334
|
|
|
10293
10335
|
// src/modules/dispute/dto/create-dispute.dto.ts
|
|
10294
|
-
var
|
|
10336
|
+
var import_class_validator136 = require("class-validator");
|
|
10295
10337
|
var import_class_transformer29 = require("class-transformer");
|
|
10296
10338
|
var CreateDisputeDto = class {
|
|
10297
10339
|
};
|
|
10298
10340
|
__decorateClass([
|
|
10299
|
-
(0,
|
|
10300
|
-
(0,
|
|
10341
|
+
(0, import_class_validator136.ValidateIf)((o) => o.initiatorType === "FREELANCER" /* FREELANCER */),
|
|
10342
|
+
(0, import_class_validator136.IsNumber)({}, { message: "Client id must be a number" }),
|
|
10301
10343
|
(0, import_class_transformer29.Type)(() => Number)
|
|
10302
10344
|
], CreateDisputeDto.prototype, "clientId", 2);
|
|
10303
10345
|
__decorateClass([
|
|
10304
|
-
(0,
|
|
10305
|
-
(0,
|
|
10346
|
+
(0, import_class_validator136.ValidateIf)((o) => o.initiatorType === "CLIENT" /* CLIENT */),
|
|
10347
|
+
(0, import_class_validator136.IsNumber)({}, { message: "Freelancer id must be a number" }),
|
|
10306
10348
|
(0, import_class_transformer29.Type)(() => Number)
|
|
10307
10349
|
], CreateDisputeDto.prototype, "freelancerId", 2);
|
|
10308
10350
|
__decorateClass([
|
|
10309
|
-
(0,
|
|
10310
|
-
(0,
|
|
10311
|
-
(0,
|
|
10351
|
+
(0, import_class_validator136.IsNotEmpty)({ message: "Please select dispute type." }),
|
|
10352
|
+
(0, import_class_validator136.IsString)(),
|
|
10353
|
+
(0, import_class_validator136.IsIn)(["JOB", "INVOICE"])
|
|
10312
10354
|
], CreateDisputeDto.prototype, "disputeType", 2);
|
|
10313
10355
|
__decorateClass([
|
|
10314
|
-
(0,
|
|
10315
|
-
(0,
|
|
10356
|
+
(0, import_class_validator136.IsNotEmpty)({ message: "Please provide initiator type." }),
|
|
10357
|
+
(0, import_class_validator136.IsString)()
|
|
10316
10358
|
], CreateDisputeDto.prototype, "initiatorType", 2);
|
|
10317
10359
|
__decorateClass([
|
|
10318
|
-
(0,
|
|
10319
|
-
(0,
|
|
10320
|
-
(0,
|
|
10360
|
+
(0, import_class_validator136.IsNotEmpty)({ message: "Please enter description." }),
|
|
10361
|
+
(0, import_class_validator136.IsString)({ message: "Description must be a string" }),
|
|
10362
|
+
(0, import_class_validator136.MaxLength)(500, { message: "Description must not exceed 500 characters" })
|
|
10321
10363
|
], CreateDisputeDto.prototype, "description", 2);
|
|
10322
10364
|
__decorateClass([
|
|
10323
|
-
(0,
|
|
10324
|
-
(0,
|
|
10325
|
-
(0,
|
|
10365
|
+
(0, import_class_validator136.IsOptional)(),
|
|
10366
|
+
(0, import_class_validator136.IsString)({ message: "Comment must be a string" }),
|
|
10367
|
+
(0, import_class_validator136.MaxLength)(500, { message: "Comment must not exceed 500 characters" })
|
|
10326
10368
|
], CreateDisputeDto.prototype, "comment", 2);
|
|
10327
10369
|
__decorateClass([
|
|
10328
|
-
(0,
|
|
10329
|
-
(0,
|
|
10370
|
+
(0, import_class_validator136.IsOptional)(),
|
|
10371
|
+
(0, import_class_validator136.IsObject)({ message: "Dynamic fields must be a valid object" }),
|
|
10330
10372
|
(0, import_class_transformer29.Transform)(({ value }) => {
|
|
10331
10373
|
if (typeof value === "string") {
|
|
10332
10374
|
try {
|
|
@@ -10347,125 +10389,125 @@ var SENSELOAF_PATTERN = {
|
|
|
10347
10389
|
};
|
|
10348
10390
|
|
|
10349
10391
|
// src/modules/senseloaf/dto/ai-interview-question-generate.dto.ts
|
|
10350
|
-
var
|
|
10392
|
+
var import_class_validator137 = require("class-validator");
|
|
10351
10393
|
var AiInterviewQuestionGenerateDto = class {
|
|
10352
10394
|
};
|
|
10353
10395
|
__decorateClass([
|
|
10354
|
-
(0,
|
|
10396
|
+
(0, import_class_validator137.IsNotEmpty)({ message: "Please enter job description." })
|
|
10355
10397
|
], AiInterviewQuestionGenerateDto.prototype, "jobDescription", 2);
|
|
10356
10398
|
__decorateClass([
|
|
10357
|
-
(0,
|
|
10399
|
+
(0, import_class_validator137.IsNotEmpty)({ message: "Please enter number of questions." })
|
|
10358
10400
|
], AiInterviewQuestionGenerateDto.prototype, "numQuestions", 2);
|
|
10359
10401
|
|
|
10360
10402
|
// src/modules/senseloaf/dto/resume-parsing-by-url.dto.ts
|
|
10361
|
-
var
|
|
10403
|
+
var import_class_validator138 = require("class-validator");
|
|
10362
10404
|
var ResumeParsingByUrlDto = class {
|
|
10363
10405
|
};
|
|
10364
10406
|
__decorateClass([
|
|
10365
|
-
(0,
|
|
10366
|
-
(0,
|
|
10407
|
+
(0, import_class_validator138.IsNotEmpty)({ message: "Resume URL is required" }),
|
|
10408
|
+
(0, import_class_validator138.IsString)({ message: "Resume URL must be a string" })
|
|
10367
10409
|
], ResumeParsingByUrlDto.prototype, "resumeUrl", 2);
|
|
10368
10410
|
__decorateClass([
|
|
10369
|
-
(0,
|
|
10370
|
-
(0,
|
|
10411
|
+
(0, import_class_validator138.IsOptional)(),
|
|
10412
|
+
(0, import_class_validator138.IsString)()
|
|
10371
10413
|
], ResumeParsingByUrlDto.prototype, "fileName", 2);
|
|
10372
10414
|
|
|
10373
10415
|
// src/modules/senseloaf/dto/resume-data-processing.dto.ts
|
|
10374
|
-
var
|
|
10416
|
+
var import_class_validator139 = require("class-validator");
|
|
10375
10417
|
var ResumeDataProcessingDto = class {
|
|
10376
10418
|
};
|
|
10377
10419
|
__decorateClass([
|
|
10378
|
-
(0,
|
|
10379
|
-
(0,
|
|
10420
|
+
(0, import_class_validator139.IsNotEmpty)({ message: "Resume data is required" }),
|
|
10421
|
+
(0, import_class_validator139.IsObject)()
|
|
10380
10422
|
], ResumeDataProcessingDto.prototype, "resumeData", 2);
|
|
10381
10423
|
__decorateClass([
|
|
10382
|
-
(0,
|
|
10383
|
-
(0,
|
|
10424
|
+
(0, import_class_validator139.IsOptional)(),
|
|
10425
|
+
(0, import_class_validator139.IsString)()
|
|
10384
10426
|
], ResumeDataProcessingDto.prototype, "userId", 2);
|
|
10385
10427
|
__decorateClass([
|
|
10386
|
-
(0,
|
|
10387
|
-
(0,
|
|
10428
|
+
(0, import_class_validator139.IsOptional)(),
|
|
10429
|
+
(0, import_class_validator139.IsString)()
|
|
10388
10430
|
], ResumeDataProcessingDto.prototype, "processingType", 2);
|
|
10389
10431
|
|
|
10390
10432
|
// src/modules/senseloaf/dto/check-resume-eligibility.dto.ts
|
|
10391
|
-
var
|
|
10433
|
+
var import_class_validator140 = require("class-validator");
|
|
10392
10434
|
var CheckResumeEligibilityDto = class {
|
|
10393
10435
|
};
|
|
10394
10436
|
__decorateClass([
|
|
10395
|
-
(0,
|
|
10396
|
-
(0,
|
|
10437
|
+
(0, import_class_validator140.IsNotEmpty)({ message: "Resume data is required" }),
|
|
10438
|
+
(0, import_class_validator140.IsObject)()
|
|
10397
10439
|
], CheckResumeEligibilityDto.prototype, "resumeData", 2);
|
|
10398
10440
|
__decorateClass([
|
|
10399
|
-
(0,
|
|
10400
|
-
(0,
|
|
10441
|
+
(0, import_class_validator140.IsOptional)(),
|
|
10442
|
+
(0, import_class_validator140.IsString)()
|
|
10401
10443
|
], CheckResumeEligibilityDto.prototype, "jobId", 2);
|
|
10402
10444
|
__decorateClass([
|
|
10403
|
-
(0,
|
|
10404
|
-
(0,
|
|
10445
|
+
(0, import_class_validator140.IsOptional)(),
|
|
10446
|
+
(0, import_class_validator140.IsString)()
|
|
10405
10447
|
], CheckResumeEligibilityDto.prototype, "userId", 2);
|
|
10406
10448
|
|
|
10407
10449
|
// src/modules/senseloaf/dto/ai-interview-template-generation.dto.ts
|
|
10408
|
-
var
|
|
10450
|
+
var import_class_validator141 = require("class-validator");
|
|
10409
10451
|
var AiInterviewTemplateGenerationDto = class {
|
|
10410
10452
|
};
|
|
10411
10453
|
__decorateClass([
|
|
10412
|
-
(0,
|
|
10413
|
-
(0,
|
|
10454
|
+
(0, import_class_validator141.IsNotEmpty)({ message: "Job ID is required" }),
|
|
10455
|
+
(0, import_class_validator141.IsString)({ message: "Job ID must be a string" })
|
|
10414
10456
|
], AiInterviewTemplateGenerationDto.prototype, "jobId", 2);
|
|
10415
10457
|
__decorateClass([
|
|
10416
|
-
(0,
|
|
10417
|
-
(0,
|
|
10418
|
-
(0,
|
|
10458
|
+
(0, import_class_validator141.IsOptional)(),
|
|
10459
|
+
(0, import_class_validator141.IsArray)(),
|
|
10460
|
+
(0, import_class_validator141.IsString)({ each: true, message: "Each skill must be a string" })
|
|
10419
10461
|
], AiInterviewTemplateGenerationDto.prototype, "skills", 2);
|
|
10420
10462
|
__decorateClass([
|
|
10421
|
-
(0,
|
|
10422
|
-
(0,
|
|
10463
|
+
(0, import_class_validator141.IsOptional)(),
|
|
10464
|
+
(0, import_class_validator141.IsNumber)({}, { message: "Number of questions must be a number" })
|
|
10423
10465
|
], AiInterviewTemplateGenerationDto.prototype, "numberOfQuestions", 2);
|
|
10424
10466
|
__decorateClass([
|
|
10425
|
-
(0,
|
|
10426
|
-
(0,
|
|
10467
|
+
(0, import_class_validator141.IsOptional)(),
|
|
10468
|
+
(0, import_class_validator141.IsString)()
|
|
10427
10469
|
], AiInterviewTemplateGenerationDto.prototype, "difficulty", 2);
|
|
10428
10470
|
|
|
10429
10471
|
// src/modules/senseloaf/dto/ai-interview-link-generation.dto.ts
|
|
10430
|
-
var
|
|
10472
|
+
var import_class_validator142 = require("class-validator");
|
|
10431
10473
|
var AiInterviewLinkGenerationDto = class {
|
|
10432
10474
|
};
|
|
10433
10475
|
__decorateClass([
|
|
10434
|
-
(0,
|
|
10435
|
-
(0,
|
|
10476
|
+
(0, import_class_validator142.IsNotEmpty)({ message: "Template ID is required" }),
|
|
10477
|
+
(0, import_class_validator142.IsString)({ message: "Template ID must be a string" })
|
|
10436
10478
|
], AiInterviewLinkGenerationDto.prototype, "templateId", 2);
|
|
10437
10479
|
__decorateClass([
|
|
10438
|
-
(0,
|
|
10439
|
-
(0,
|
|
10480
|
+
(0, import_class_validator142.IsNotEmpty)({ message: "Freelancer ID is required" }),
|
|
10481
|
+
(0, import_class_validator142.IsString)({ message: "Freelancer ID must be a string" })
|
|
10440
10482
|
], AiInterviewLinkGenerationDto.prototype, "freelancerId", 2);
|
|
10441
10483
|
__decorateClass([
|
|
10442
|
-
(0,
|
|
10443
|
-
(0,
|
|
10484
|
+
(0, import_class_validator142.IsOptional)(),
|
|
10485
|
+
(0, import_class_validator142.IsString)()
|
|
10444
10486
|
], AiInterviewLinkGenerationDto.prototype, "jobId", 2);
|
|
10445
10487
|
__decorateClass([
|
|
10446
|
-
(0,
|
|
10447
|
-
(0,
|
|
10488
|
+
(0, import_class_validator142.IsOptional)(),
|
|
10489
|
+
(0, import_class_validator142.IsNumber)({}, { message: "Expiry hours must be a number" })
|
|
10448
10490
|
], AiInterviewLinkGenerationDto.prototype, "expiryHours", 2);
|
|
10449
10491
|
|
|
10450
10492
|
// src/modules/senseloaf/dto/ai-assessment-creation.dto.ts
|
|
10451
|
-
var
|
|
10493
|
+
var import_class_validator143 = require("class-validator");
|
|
10452
10494
|
var AiAssessmentCreationDto = class {
|
|
10453
10495
|
};
|
|
10454
10496
|
__decorateClass([
|
|
10455
|
-
(0,
|
|
10456
|
-
(0,
|
|
10497
|
+
(0, import_class_validator143.IsNotEmpty)({ message: "User ID is required" }),
|
|
10498
|
+
(0, import_class_validator143.IsString)({ message: "User ID must be a string" })
|
|
10457
10499
|
], AiAssessmentCreationDto.prototype, "userId", 2);
|
|
10458
10500
|
__decorateClass([
|
|
10459
|
-
(0,
|
|
10460
|
-
(0,
|
|
10501
|
+
(0, import_class_validator143.IsOptional)(),
|
|
10502
|
+
(0, import_class_validator143.IsString)()
|
|
10461
10503
|
], AiAssessmentCreationDto.prototype, "assessmentType", 2);
|
|
10462
10504
|
__decorateClass([
|
|
10463
|
-
(0,
|
|
10464
|
-
(0,
|
|
10505
|
+
(0, import_class_validator143.IsOptional)(),
|
|
10506
|
+
(0, import_class_validator143.IsNumber)({}, { message: "Number of questions must be a number" })
|
|
10465
10507
|
], AiAssessmentCreationDto.prototype, "numberOfQuestions", 2);
|
|
10466
10508
|
__decorateClass([
|
|
10467
|
-
(0,
|
|
10468
|
-
(0,
|
|
10509
|
+
(0, import_class_validator143.IsOptional)(),
|
|
10510
|
+
(0, import_class_validator143.IsString)()
|
|
10469
10511
|
], AiAssessmentCreationDto.prototype, "difficulty", 2);
|
|
10470
10512
|
|
|
10471
10513
|
// src/modules/commission/pattern/pattern.ts
|
|
@@ -10481,7 +10523,7 @@ var HIRING_PATTERN = {
|
|
|
10481
10523
|
};
|
|
10482
10524
|
|
|
10483
10525
|
// src/modules/hiring/dto/create-hiring.dto.ts
|
|
10484
|
-
var
|
|
10526
|
+
var import_class_validator144 = require("class-validator");
|
|
10485
10527
|
var PreferredEngagementTypeEnum2 = /* @__PURE__ */ ((PreferredEngagementTypeEnum3) => {
|
|
10486
10528
|
PreferredEngagementTypeEnum3["FTE"] = "FTE";
|
|
10487
10529
|
PreferredEngagementTypeEnum3["FREELANCE"] = "FREELANCE";
|
|
@@ -10490,16 +10532,16 @@ var PreferredEngagementTypeEnum2 = /* @__PURE__ */ ((PreferredEngagementTypeEnum
|
|
|
10490
10532
|
var CreateHiringDto = class {
|
|
10491
10533
|
};
|
|
10492
10534
|
__decorateClass([
|
|
10493
|
-
(0,
|
|
10494
|
-
(0,
|
|
10535
|
+
(0, import_class_validator144.IsNotEmpty)({ message: "Freelancer ID is required" }),
|
|
10536
|
+
(0, import_class_validator144.IsNumber)({}, { message: "Freelancer ID must be a number" })
|
|
10495
10537
|
], CreateHiringDto.prototype, "freelancerId", 2);
|
|
10496
10538
|
__decorateClass([
|
|
10497
|
-
(0,
|
|
10498
|
-
(0,
|
|
10539
|
+
(0, import_class_validator144.IsNotEmpty)({ message: "Job ID is required" }),
|
|
10540
|
+
(0, import_class_validator144.IsNumber)({}, { message: "Job ID must be a number" })
|
|
10499
10541
|
], CreateHiringDto.prototype, "jobId", 2);
|
|
10500
10542
|
__decorateClass([
|
|
10501
|
-
(0,
|
|
10502
|
-
(0,
|
|
10543
|
+
(0, import_class_validator144.IsNotEmpty)({ message: "Preferred engagement type is required" }),
|
|
10544
|
+
(0, import_class_validator144.IsEnum)(PreferredEngagementTypeEnum2, {
|
|
10503
10545
|
message: "Preferred engagement type must be one of FTE or FREELANCE."
|
|
10504
10546
|
})
|
|
10505
10547
|
], CreateHiringDto.prototype, "preferredEngagementType", 2);
|
|
@@ -10522,16 +10564,16 @@ var SIGNATURE_PATTERN = {
|
|
|
10522
10564
|
};
|
|
10523
10565
|
|
|
10524
10566
|
// src/modules/user/signature/dto/save-signature.dto.ts
|
|
10525
|
-
var
|
|
10567
|
+
var import_class_validator145 = require("class-validator");
|
|
10526
10568
|
var SaveSignatureDto = class {
|
|
10527
10569
|
};
|
|
10528
10570
|
__decorateClass([
|
|
10529
|
-
(0,
|
|
10530
|
-
(0,
|
|
10571
|
+
(0, import_class_validator145.IsOptional)(),
|
|
10572
|
+
(0, import_class_validator145.IsString)()
|
|
10531
10573
|
], SaveSignatureDto.prototype, "signatureType", 2);
|
|
10532
10574
|
__decorateClass([
|
|
10533
|
-
(0,
|
|
10534
|
-
(0,
|
|
10575
|
+
(0, import_class_validator145.IsOptional)(),
|
|
10576
|
+
(0, import_class_validator145.IsString)()
|
|
10535
10577
|
], SaveSignatureDto.prototype, "description", 2);
|
|
10536
10578
|
|
|
10537
10579
|
// src/modules/wallet/pattern/pattern.ts
|
|
@@ -10549,25 +10591,25 @@ var WALLET_ADMIN_PATTERN = {
|
|
|
10549
10591
|
};
|
|
10550
10592
|
|
|
10551
10593
|
// src/modules/wallet/dto/add-topup-escrow-amount.dto.ts
|
|
10552
|
-
var
|
|
10594
|
+
var import_class_validator146 = require("class-validator");
|
|
10553
10595
|
var AddTopupEscrowAmountDto = class {
|
|
10554
10596
|
};
|
|
10555
10597
|
__decorateClass([
|
|
10556
|
-
(0,
|
|
10557
|
-
(0,
|
|
10598
|
+
(0, import_class_validator146.IsNotEmpty)({ message: "Amount is required" }),
|
|
10599
|
+
(0, import_class_validator146.IsNumber)({}, { message: "Amount must be a number" })
|
|
10558
10600
|
], AddTopupEscrowAmountDto.prototype, "amount", 2);
|
|
10559
10601
|
__decorateClass([
|
|
10560
|
-
(0,
|
|
10561
|
-
(0,
|
|
10602
|
+
(0, import_class_validator146.IsNotEmpty)({ message: "Escrow wallet UUID is required" }),
|
|
10603
|
+
(0, import_class_validator146.IsUUID)("4", { message: "Escrow wallet UUID must be a valid UUID" })
|
|
10562
10604
|
], AddTopupEscrowAmountDto.prototype, "escrowWalletUuid", 2);
|
|
10563
10605
|
|
|
10564
10606
|
// src/modules/wallet/dto/debit-commission-fte-hiring.dto.ts
|
|
10565
|
-
var
|
|
10607
|
+
var import_class_validator147 = require("class-validator");
|
|
10566
10608
|
var DebitCommissionFteHiringDto = class {
|
|
10567
10609
|
};
|
|
10568
10610
|
__decorateClass([
|
|
10569
|
-
(0,
|
|
10570
|
-
(0,
|
|
10611
|
+
(0, import_class_validator147.IsUUID)("4", { message: "Invoice UUID must be a valid UUID." }),
|
|
10612
|
+
(0, import_class_validator147.IsNotEmpty)({ message: "Invoice UUID is required." })
|
|
10571
10613
|
], DebitCommissionFteHiringDto.prototype, "invoiceUuid", 2);
|
|
10572
10614
|
|
|
10573
10615
|
// src/modules/discord/discord-alert.interface.ts
|
|
@@ -12664,6 +12706,21 @@ __decorateClass([
|
|
|
12664
12706
|
RecommendationWeightageConfig = __decorateClass([
|
|
12665
12707
|
(0, import_typeorm83.Entity)("recommendation_weightage_configs")
|
|
12666
12708
|
], RecommendationWeightageConfig);
|
|
12709
|
+
|
|
12710
|
+
// src/entities/global-setting.entity.ts
|
|
12711
|
+
var import_typeorm84 = require("typeorm");
|
|
12712
|
+
var GlobalSetting = class extends BaseEntity {
|
|
12713
|
+
};
|
|
12714
|
+
__decorateClass([
|
|
12715
|
+
(0, import_typeorm84.Column)({ name: "key", type: "varchar", length: 255, nullable: false, unique: true })
|
|
12716
|
+
], GlobalSetting.prototype, "key", 2);
|
|
12717
|
+
__decorateClass([
|
|
12718
|
+
(0, import_typeorm84.Column)({ name: "value", type: "text", nullable: false })
|
|
12719
|
+
], GlobalSetting.prototype, "value", 2);
|
|
12720
|
+
GlobalSetting = __decorateClass([
|
|
12721
|
+
(0, import_typeorm84.Entity)("global_settings"),
|
|
12722
|
+
(0, import_typeorm84.Index)(["key"], { unique: true })
|
|
12723
|
+
], GlobalSetting);
|
|
12667
12724
|
// Annotate the CommonJS export names for ESM import in node:
|
|
12668
12725
|
0 && (module.exports = {
|
|
12669
12726
|
ADMIN_FREELANCER_PATTERN,
|
|
@@ -12675,6 +12732,7 @@ RecommendationWeightageConfig = __decorateClass([
|
|
|
12675
12732
|
AUTHENTICATION_PATTERN,
|
|
12676
12733
|
AccountStatus,
|
|
12677
12734
|
AccountType,
|
|
12735
|
+
AddGlobalSettingDto,
|
|
12678
12736
|
AddTopupEscrowAmountDto,
|
|
12679
12737
|
AdminCreateJobInformationDto,
|
|
12680
12738
|
AdminExportClientV2OptimisedDto,
|
|
@@ -12855,7 +12913,9 @@ RecommendationWeightageConfig = __decorateClass([
|
|
|
12855
12913
|
FreelancerUploadResumeDto,
|
|
12856
12914
|
FreelancerWorkShowcaseDto,
|
|
12857
12915
|
FromUsOn,
|
|
12916
|
+
GLOBAL_SETTING_PATTERN,
|
|
12858
12917
|
GenerateContractDto,
|
|
12918
|
+
GlobalSetting,
|
|
12859
12919
|
HIRING_PATTERN,
|
|
12860
12920
|
HiredFreelancerNatureOfWorkEnum,
|
|
12861
12921
|
Hiring,
|
|
@@ -12952,6 +13012,7 @@ RecommendationWeightageConfig = __decorateClass([
|
|
|
12952
13012
|
RejectAIInterviewRescheduleRequestDto,
|
|
12953
13013
|
RejectContractDto,
|
|
12954
13014
|
RejectF2FInterviewRescheduleRequestDto,
|
|
13015
|
+
RemoveGlobalSettingDto,
|
|
12955
13016
|
ResetPasswordDto,
|
|
12956
13017
|
ResetPasswordTokenValidationDto,
|
|
12957
13018
|
ResubmitTimesheetDto,
|