@experts_hub/shared 1.0.517 → 1.0.519
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +57 -1
- package/dist/index.d.ts +57 -1
- package/dist/index.js +350 -156
- package/dist/index.mjs +368 -162
- package/dist/modules/job-admin/dto/admin-job-basic-information-v2.dto.d.ts +54 -0
- package/dist/modules/job-admin/dto/index.d.ts +1 -0
- package/dist/modules/job-admin/pattern/pattern.d.ts +2 -0
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -7033,6 +7033,8 @@ var ADMIN_JOB_PATTERN = {
|
|
|
7033
7033
|
adminFetchJobById: "admin.fetch.job.by.id",
|
|
7034
7034
|
adminCreateJob: "admin.create.job",
|
|
7035
7035
|
adminUpdateJob: "admin.update.job",
|
|
7036
|
+
adminCreateJobV2: "admin.create.job.v2",
|
|
7037
|
+
adminUpdateJobV2: "admin.update.job.v2",
|
|
7036
7038
|
adminDeleteJob: "admin.delete.job",
|
|
7037
7039
|
adminCountJob: "admin.count.job",
|
|
7038
7040
|
adminFetchGraphCount: "admin.fetch.graph.count"
|
|
@@ -7254,6 +7256,208 @@ __decorateClass([
|
|
|
7254
7256
|
IsInt8({ message: "Client ID must be a valid integer." })
|
|
7255
7257
|
], AdminUpdateJobInformationDto.prototype, "clientId", 2);
|
|
7256
7258
|
|
|
7259
|
+
// src/modules/job-admin/dto/admin-job-basic-information-v2.dto.ts
|
|
7260
|
+
import {
|
|
7261
|
+
IsString as IsString36,
|
|
7262
|
+
IsNotEmpty as IsNotEmpty55,
|
|
7263
|
+
IsArray as IsArray14,
|
|
7264
|
+
ArrayNotEmpty as ArrayNotEmpty9,
|
|
7265
|
+
IsNumber as IsNumber9,
|
|
7266
|
+
IsOptional as IsOptional36,
|
|
7267
|
+
IsEnum as IsEnum24,
|
|
7268
|
+
Min as Min8,
|
|
7269
|
+
ValidateIf as ValidateIf9,
|
|
7270
|
+
MaxLength as MaxLength20,
|
|
7271
|
+
Max as Max4,
|
|
7272
|
+
ValidateNested as ValidateNested6,
|
|
7273
|
+
IsInt as IsInt9
|
|
7274
|
+
} from "class-validator";
|
|
7275
|
+
import { Type as Type12 } from "class-transformer";
|
|
7276
|
+
var JobLocationAdminEnumDto = /* @__PURE__ */ ((JobLocationAdminEnumDto2) => {
|
|
7277
|
+
JobLocationAdminEnumDto2["ONSITE"] = "ONSITE";
|
|
7278
|
+
JobLocationAdminEnumDto2["REMOTE"] = "REMOTE";
|
|
7279
|
+
JobLocationAdminEnumDto2["HYBRID"] = "HYBRID";
|
|
7280
|
+
return JobLocationAdminEnumDto2;
|
|
7281
|
+
})(JobLocationAdminEnumDto || {});
|
|
7282
|
+
var EmploymentTypeAdminEnumDto = /* @__PURE__ */ ((EmploymentTypeAdminEnumDto2) => {
|
|
7283
|
+
EmploymentTypeAdminEnumDto2["FULLTIME"] = "FULLTIME";
|
|
7284
|
+
EmploymentTypeAdminEnumDto2["PARTTIME"] = "PARTTIME";
|
|
7285
|
+
EmploymentTypeAdminEnumDto2["BOTH"] = "BOTH";
|
|
7286
|
+
EmploymentTypeAdminEnumDto2["HOURLY"] = "HOURLY";
|
|
7287
|
+
EmploymentTypeAdminEnumDto2["FREELANCE"] = "FREELANCE";
|
|
7288
|
+
EmploymentTypeAdminEnumDto2["FTE"] = "FTE";
|
|
7289
|
+
return EmploymentTypeAdminEnumDto2;
|
|
7290
|
+
})(EmploymentTypeAdminEnumDto || {});
|
|
7291
|
+
var typeOfExperienceAdminEnumDto = /* @__PURE__ */ ((typeOfExperienceAdminEnumDto2) => {
|
|
7292
|
+
typeOfExperienceAdminEnumDto2["SINGLE"] = "SINGLE";
|
|
7293
|
+
typeOfExperienceAdminEnumDto2["RANGE"] = "RANGE";
|
|
7294
|
+
return typeOfExperienceAdminEnumDto2;
|
|
7295
|
+
})(typeOfExperienceAdminEnumDto || {});
|
|
7296
|
+
var JobLocationAdminDto = class {
|
|
7297
|
+
};
|
|
7298
|
+
__decorateClass([
|
|
7299
|
+
IsOptional36(),
|
|
7300
|
+
IsNumber9()
|
|
7301
|
+
], JobLocationAdminDto.prototype, "countryId", 2);
|
|
7302
|
+
__decorateClass([
|
|
7303
|
+
IsOptional36(),
|
|
7304
|
+
IsNumber9()
|
|
7305
|
+
], JobLocationAdminDto.prototype, "stateId", 2);
|
|
7306
|
+
__decorateClass([
|
|
7307
|
+
IsOptional36(),
|
|
7308
|
+
IsNumber9()
|
|
7309
|
+
], JobLocationAdminDto.prototype, "cityId", 2);
|
|
7310
|
+
var AdminJobBasicInformationV2Dto = class {
|
|
7311
|
+
constructor() {
|
|
7312
|
+
this.isDraft = false;
|
|
7313
|
+
}
|
|
7314
|
+
};
|
|
7315
|
+
__decorateClass([
|
|
7316
|
+
IsInt9({ message: "Client ID must be a valid integer." })
|
|
7317
|
+
], AdminJobBasicInformationV2Dto.prototype, "clientId", 2);
|
|
7318
|
+
__decorateClass([
|
|
7319
|
+
IsOptional36(),
|
|
7320
|
+
Type12(() => Boolean)
|
|
7321
|
+
], AdminJobBasicInformationV2Dto.prototype, "isDraft", 2);
|
|
7322
|
+
__decorateClass([
|
|
7323
|
+
IsNotEmpty55({ message: "Please enter job role" }),
|
|
7324
|
+
IsString36({ message: "Job role must be a string" })
|
|
7325
|
+
], AdminJobBasicInformationV2Dto.prototype, "jobRole", 2);
|
|
7326
|
+
__decorateClass([
|
|
7327
|
+
IsOptional36()
|
|
7328
|
+
], AdminJobBasicInformationV2Dto.prototype, "jobRoleCanonicalName", 2);
|
|
7329
|
+
__decorateClass([
|
|
7330
|
+
IsOptional36(),
|
|
7331
|
+
IsString36({ message: "Project name must be a string" })
|
|
7332
|
+
], AdminJobBasicInformationV2Dto.prototype, "projectName", 2);
|
|
7333
|
+
__decorateClass([
|
|
7334
|
+
IsOptional36(),
|
|
7335
|
+
IsString36({ message: "Note must be a string" })
|
|
7336
|
+
], AdminJobBasicInformationV2Dto.prototype, "note", 2);
|
|
7337
|
+
__decorateClass([
|
|
7338
|
+
ValidateIf9((o) => !o.isDraft),
|
|
7339
|
+
IsOptional36(),
|
|
7340
|
+
IsArray14({ message: "Skills must be an array" }),
|
|
7341
|
+
ArrayNotEmpty9({ message: "Please select at least one skill" }),
|
|
7342
|
+
IsString36({ each: true, message: "Each skill must be a string" }),
|
|
7343
|
+
Type12(() => String)
|
|
7344
|
+
], AdminJobBasicInformationV2Dto.prototype, "skills", 2);
|
|
7345
|
+
__decorateClass([
|
|
7346
|
+
ValidateIf9((o) => !o.isDraft),
|
|
7347
|
+
IsArray14({ message: "Good to have skills must be an array" }),
|
|
7348
|
+
IsString36({ each: true, message: "Each skill must be a string" }),
|
|
7349
|
+
IsOptional36(),
|
|
7350
|
+
Type12(() => String)
|
|
7351
|
+
], AdminJobBasicInformationV2Dto.prototype, "goodToHaveSkills", 2);
|
|
7352
|
+
__decorateClass([
|
|
7353
|
+
ValidateIf9((o) => !o.isDraft),
|
|
7354
|
+
IsArray14({ message: "locations must be an array" }),
|
|
7355
|
+
ArrayNotEmpty9({ message: "Please select at least one location" }),
|
|
7356
|
+
ValidateNested6({ each: true }),
|
|
7357
|
+
Type12(() => JobLocationAdminDto),
|
|
7358
|
+
IsOptional36()
|
|
7359
|
+
], AdminJobBasicInformationV2Dto.prototype, "locations", 2);
|
|
7360
|
+
__decorateClass([
|
|
7361
|
+
ValidateIf9((o) => !o.isDraft),
|
|
7362
|
+
IsNumber9({}, { message: "Openings must be a number" }),
|
|
7363
|
+
Min8(1, { message: "There must be at least 1 opening" }),
|
|
7364
|
+
Type12(() => Number)
|
|
7365
|
+
], AdminJobBasicInformationV2Dto.prototype, "openings", 2);
|
|
7366
|
+
__decorateClass([
|
|
7367
|
+
ValidateIf9((o) => !o.isDraft),
|
|
7368
|
+
IsEnum24(JobLocationAdminEnumDto, {
|
|
7369
|
+
message: `Location must be one of: ${Object.values(JobLocationAdminEnumDto).join(
|
|
7370
|
+
", "
|
|
7371
|
+
)}`
|
|
7372
|
+
})
|
|
7373
|
+
], AdminJobBasicInformationV2Dto.prototype, "location", 2);
|
|
7374
|
+
__decorateClass([
|
|
7375
|
+
ValidateIf9((o) => !o.isDraft),
|
|
7376
|
+
IsEnum24(EmploymentTypeAdminEnumDto, {
|
|
7377
|
+
message: `Type of employment must be one of: ${Object.values(
|
|
7378
|
+
EmploymentTypeAdminEnumDto
|
|
7379
|
+
).join(", ")}`
|
|
7380
|
+
})
|
|
7381
|
+
], AdminJobBasicInformationV2Dto.prototype, "typeOfEmployment", 2);
|
|
7382
|
+
__decorateClass([
|
|
7383
|
+
ValidateIf9((o) => !o.isDraft),
|
|
7384
|
+
IsString36({ message: "Currency must be a string" })
|
|
7385
|
+
], AdminJobBasicInformationV2Dto.prototype, "currency", 2);
|
|
7386
|
+
__decorateClass([
|
|
7387
|
+
ValidateIf9((o) => !o.isDraft),
|
|
7388
|
+
IsNumber9({}, { message: "Expected salary (from) must be a number" }),
|
|
7389
|
+
Min8(0, { message: "Expected salary (from) cannot be negative" }),
|
|
7390
|
+
Type12(() => Number)
|
|
7391
|
+
], AdminJobBasicInformationV2Dto.prototype, "expectedSalaryFrom", 2);
|
|
7392
|
+
__decorateClass([
|
|
7393
|
+
IsOptional36()
|
|
7394
|
+
], AdminJobBasicInformationV2Dto.prototype, "hideExpectedSalaryFrom", 2);
|
|
7395
|
+
__decorateClass([
|
|
7396
|
+
ValidateIf9((o) => !o.isDraft),
|
|
7397
|
+
IsNumber9({}, { message: "Expected salary (to) must be a number" }),
|
|
7398
|
+
Min8(0, { message: "Expected salary (to) cannot be negative" }),
|
|
7399
|
+
Type12(() => Number)
|
|
7400
|
+
], AdminJobBasicInformationV2Dto.prototype, "expectedSalaryTo", 2);
|
|
7401
|
+
__decorateClass([
|
|
7402
|
+
IsOptional36()
|
|
7403
|
+
], AdminJobBasicInformationV2Dto.prototype, "hideExpectedSalaryTo", 2);
|
|
7404
|
+
__decorateClass([
|
|
7405
|
+
IsOptional36()
|
|
7406
|
+
], AdminJobBasicInformationV2Dto.prototype, "years", 2);
|
|
7407
|
+
__decorateClass([
|
|
7408
|
+
IsOptional36()
|
|
7409
|
+
], AdminJobBasicInformationV2Dto.prototype, "months", 2);
|
|
7410
|
+
__decorateClass([
|
|
7411
|
+
IsOptional36()
|
|
7412
|
+
], AdminJobBasicInformationV2Dto.prototype, "weeks", 2);
|
|
7413
|
+
__decorateClass([
|
|
7414
|
+
IsOptional36()
|
|
7415
|
+
], AdminJobBasicInformationV2Dto.prototype, "days", 2);
|
|
7416
|
+
__decorateClass([
|
|
7417
|
+
IsOptional36(),
|
|
7418
|
+
IsNumber9({}, { message: "Number of hours must be a number" }),
|
|
7419
|
+
Min8(0, { message: "Number of hours cannot be negative" }),
|
|
7420
|
+
Max4(40, { message: "Number of hours cannot exceed 40" }),
|
|
7421
|
+
Type12(() => Number)
|
|
7422
|
+
], AdminJobBasicInformationV2Dto.prototype, "numberOfHours", 2);
|
|
7423
|
+
__decorateClass([
|
|
7424
|
+
ValidateIf9((o) => !o.isDraft),
|
|
7425
|
+
IsString36({ message: "Candidate communication skills must be a string" }),
|
|
7426
|
+
IsOptional36()
|
|
7427
|
+
], AdminJobBasicInformationV2Dto.prototype, "candidateCommunicationSkills", 2);
|
|
7428
|
+
__decorateClass([
|
|
7429
|
+
ValidateIf9((o) => !o.isDraft),
|
|
7430
|
+
IsNotEmpty55({ message: "Please enter the academic qualification" }),
|
|
7431
|
+
IsString36({ message: "Academic qualification must be a string" })
|
|
7432
|
+
], AdminJobBasicInformationV2Dto.prototype, "academicQualification", 2);
|
|
7433
|
+
__decorateClass([
|
|
7434
|
+
ValidateIf9((o) => !o.isDraft),
|
|
7435
|
+
IsEnum24(typeOfExperienceAdminEnumDto, {
|
|
7436
|
+
message: `Type of experience must be one of: ${Object.values(
|
|
7437
|
+
typeOfExperienceAdminEnumDto
|
|
7438
|
+
).join(", ")}`
|
|
7439
|
+
})
|
|
7440
|
+
], AdminJobBasicInformationV2Dto.prototype, "yearsOfExperienceType", 2);
|
|
7441
|
+
__decorateClass([
|
|
7442
|
+
ValidateIf9((o) => !o.isDraft),
|
|
7443
|
+
IsNotEmpty55({ message: "Please enter the years of experience" }),
|
|
7444
|
+
IsString36({ message: "Years of experience must be a string" })
|
|
7445
|
+
], AdminJobBasicInformationV2Dto.prototype, "yearsOfExperienceFrom", 2);
|
|
7446
|
+
__decorateClass([
|
|
7447
|
+
ValidateIf9((o) => !o.isDraft),
|
|
7448
|
+
IsNotEmpty55({ message: "Please enter the years of experience upto" }),
|
|
7449
|
+
IsString36({ message: "Years of experience must be a string" })
|
|
7450
|
+
], AdminJobBasicInformationV2Dto.prototype, "yearsOfExperienceTo", 2);
|
|
7451
|
+
__decorateClass([
|
|
7452
|
+
IsOptional36(),
|
|
7453
|
+
IsString36({ message: "Business industry must be a string" })
|
|
7454
|
+
], AdminJobBasicInformationV2Dto.prototype, "businessIndustry", 2);
|
|
7455
|
+
__decorateClass([
|
|
7456
|
+
IsOptional36(),
|
|
7457
|
+
IsString36({ message: "Additional comment must be a string" }),
|
|
7458
|
+
MaxLength20(500, { message: "Additional comment must not exceed 500 characters" })
|
|
7459
|
+
], AdminJobBasicInformationV2Dto.prototype, "additionalComment", 2);
|
|
7460
|
+
|
|
7257
7461
|
// src/modules/lead/pattern/pattern.ts
|
|
7258
7462
|
var LEAD_PATTERN = {
|
|
7259
7463
|
fetchLead: "fetch.lead",
|
|
@@ -7261,7 +7465,7 @@ var LEAD_PATTERN = {
|
|
|
7261
7465
|
};
|
|
7262
7466
|
|
|
7263
7467
|
// src/modules/lead/dto/create-lead.dto.ts
|
|
7264
|
-
import { IsString as
|
|
7468
|
+
import { IsString as IsString37, IsEmail as IsEmail14, IsOptional as IsOptional37, IsEnum as IsEnum25 } from "class-validator";
|
|
7265
7469
|
var CategoryEmumDto = /* @__PURE__ */ ((CategoryEmumDto2) => {
|
|
7266
7470
|
CategoryEmumDto2["BUSINESS"] = "BUSINESS";
|
|
7267
7471
|
CategoryEmumDto2["FREELANCER"] = "FREELANCER";
|
|
@@ -7270,23 +7474,23 @@ var CategoryEmumDto = /* @__PURE__ */ ((CategoryEmumDto2) => {
|
|
|
7270
7474
|
var CreateLeadDto = class {
|
|
7271
7475
|
};
|
|
7272
7476
|
__decorateClass([
|
|
7273
|
-
|
|
7477
|
+
IsString37({ message: "Name must be a string" })
|
|
7274
7478
|
], CreateLeadDto.prototype, "name", 2);
|
|
7275
7479
|
__decorateClass([
|
|
7276
7480
|
IsEmail14({}, { message: "Invalid email address" })
|
|
7277
7481
|
], CreateLeadDto.prototype, "email", 2);
|
|
7278
7482
|
__decorateClass([
|
|
7279
|
-
|
|
7483
|
+
IsString37({ message: "Mobile code must be a string (e.g., +1)" })
|
|
7280
7484
|
], CreateLeadDto.prototype, "mobileCode", 2);
|
|
7281
7485
|
__decorateClass([
|
|
7282
|
-
|
|
7486
|
+
IsString37({ message: "Mobile must be a string (e.g., 1243253534)" })
|
|
7283
7487
|
], CreateLeadDto.prototype, "mobile", 2);
|
|
7284
7488
|
__decorateClass([
|
|
7285
|
-
|
|
7286
|
-
|
|
7489
|
+
IsOptional37(),
|
|
7490
|
+
IsString37({ message: "Description must be a string" })
|
|
7287
7491
|
], CreateLeadDto.prototype, "description", 2);
|
|
7288
7492
|
__decorateClass([
|
|
7289
|
-
|
|
7493
|
+
IsEnum25(CategoryEmumDto, {
|
|
7290
7494
|
message: `Type of category must be one of: ${Object.values(
|
|
7291
7495
|
CategoryEmumDto
|
|
7292
7496
|
).join(", ")}`
|
|
@@ -7306,46 +7510,46 @@ var ADMIN_ROLE_PATTERN = {
|
|
|
7306
7510
|
};
|
|
7307
7511
|
|
|
7308
7512
|
// src/modules/admin-role/dto/create-admin-role.dto.ts
|
|
7309
|
-
import { IsNotEmpty as
|
|
7513
|
+
import { IsNotEmpty as IsNotEmpty56, IsOptional as IsOptional38, IsString as IsString38 } from "class-validator";
|
|
7310
7514
|
var CreateAdminRoleDto = class {
|
|
7311
7515
|
};
|
|
7312
7516
|
__decorateClass([
|
|
7313
|
-
|
|
7314
|
-
|
|
7517
|
+
IsNotEmpty56({ message: "Please enter admin role name." }),
|
|
7518
|
+
IsString38({ message: "Role name must be a string." })
|
|
7315
7519
|
], CreateAdminRoleDto.prototype, "roleName", 2);
|
|
7316
7520
|
__decorateClass([
|
|
7317
|
-
|
|
7318
|
-
|
|
7521
|
+
IsOptional38(),
|
|
7522
|
+
IsString38({ message: "Role description must be a string." })
|
|
7319
7523
|
], CreateAdminRoleDto.prototype, "roleDescription", 2);
|
|
7320
7524
|
|
|
7321
7525
|
// src/modules/admin-role/dto/update-admin-role.dto.ts
|
|
7322
|
-
import { IsBoolean as IsBoolean15, IsNotEmpty as
|
|
7526
|
+
import { IsBoolean as IsBoolean15, IsNotEmpty as IsNotEmpty57, IsOptional as IsOptional39, IsString as IsString39 } from "class-validator";
|
|
7323
7527
|
var UpdateAdminRoleDto = class {
|
|
7324
7528
|
};
|
|
7325
7529
|
__decorateClass([
|
|
7326
|
-
|
|
7327
|
-
|
|
7530
|
+
IsNotEmpty57({ message: "Please enter admin role name." }),
|
|
7531
|
+
IsString39({ message: "Role name must be a string." })
|
|
7328
7532
|
], UpdateAdminRoleDto.prototype, "roleName", 2);
|
|
7329
7533
|
__decorateClass([
|
|
7330
|
-
|
|
7331
|
-
|
|
7534
|
+
IsOptional39(),
|
|
7535
|
+
IsString39({ message: "Role description must be a string." })
|
|
7332
7536
|
], UpdateAdminRoleDto.prototype, "roleDescription", 2);
|
|
7333
7537
|
__decorateClass([
|
|
7334
|
-
|
|
7538
|
+
IsOptional39(),
|
|
7335
7539
|
IsBoolean15({ message: "Is active must be a boolean value." })
|
|
7336
7540
|
], UpdateAdminRoleDto.prototype, "isActive", 2);
|
|
7337
7541
|
|
|
7338
7542
|
// src/modules/admin-role/dto/attach-permissions-to-role.dto.ts
|
|
7339
|
-
import { IsNotEmpty as
|
|
7543
|
+
import { IsNotEmpty as IsNotEmpty58, IsString as IsString40 } from "class-validator";
|
|
7340
7544
|
var AttachPermissionsToRoleDto = class {
|
|
7341
7545
|
};
|
|
7342
7546
|
__decorateClass([
|
|
7343
|
-
|
|
7344
|
-
|
|
7547
|
+
IsNotEmpty58({ message: "Please enter admin role ID." }),
|
|
7548
|
+
IsString40({ message: "Role ID must be a string." })
|
|
7345
7549
|
], AttachPermissionsToRoleDto.prototype, "roleId", 2);
|
|
7346
7550
|
__decorateClass([
|
|
7347
|
-
|
|
7348
|
-
|
|
7551
|
+
IsNotEmpty58({ message: "Please enter permission IDs." }),
|
|
7552
|
+
IsString40({ message: "Permission IDs must be a comma-separated string." })
|
|
7349
7553
|
], AttachPermissionsToRoleDto.prototype, "permissionIds", 2);
|
|
7350
7554
|
|
|
7351
7555
|
// src/modules/admin-permission/pattern/pattern.ts
|
|
@@ -7372,17 +7576,17 @@ var CALENDLY_PATTERN = {
|
|
|
7372
7576
|
|
|
7373
7577
|
// src/modules/interview/dto/interview-invite.dto.ts
|
|
7374
7578
|
import {
|
|
7375
|
-
IsString as
|
|
7376
|
-
IsNotEmpty as
|
|
7377
|
-
IsArray as
|
|
7378
|
-
ArrayNotEmpty as
|
|
7579
|
+
IsString as IsString41,
|
|
7580
|
+
IsNotEmpty as IsNotEmpty59,
|
|
7581
|
+
IsArray as IsArray15,
|
|
7582
|
+
ArrayNotEmpty as ArrayNotEmpty10,
|
|
7379
7583
|
IsEmail as IsEmail15,
|
|
7380
7584
|
IsUUID as IsUUID12,
|
|
7381
|
-
IsEnum as
|
|
7382
|
-
ValidateIf as
|
|
7383
|
-
ValidateNested as
|
|
7585
|
+
IsEnum as IsEnum26,
|
|
7586
|
+
ValidateIf as ValidateIf10,
|
|
7587
|
+
ValidateNested as ValidateNested7
|
|
7384
7588
|
} from "class-validator";
|
|
7385
|
-
import { Type as
|
|
7589
|
+
import { Type as Type13 } from "class-transformer";
|
|
7386
7590
|
var CandidateType = /* @__PURE__ */ ((CandidateType2) => {
|
|
7387
7591
|
CandidateType2["SHORTLISTED"] = "SHORTLISTED";
|
|
7388
7592
|
CandidateType2["APPLICATNTS"] = "APPLICATNTS";
|
|
@@ -7396,39 +7600,39 @@ __decorateClass([
|
|
|
7396
7600
|
IsUUID12()
|
|
7397
7601
|
], ExistingCandidateDto.prototype, "id", 2);
|
|
7398
7602
|
__decorateClass([
|
|
7399
|
-
|
|
7603
|
+
IsEnum26(CandidateType, {
|
|
7400
7604
|
message: "type must be one of SHORTLISTED, APPLICATNTS, or RECOMMENDED"
|
|
7401
7605
|
})
|
|
7402
7606
|
], ExistingCandidateDto.prototype, "type", 2);
|
|
7403
7607
|
var NewCandidateDto = class {
|
|
7404
7608
|
};
|
|
7405
7609
|
__decorateClass([
|
|
7406
|
-
|
|
7407
|
-
|
|
7610
|
+
IsNotEmpty59({ message: "Please enter the candidate name" }),
|
|
7611
|
+
IsString41({ message: "Name must be a string" })
|
|
7408
7612
|
], NewCandidateDto.prototype, "name", 2);
|
|
7409
7613
|
__decorateClass([
|
|
7410
7614
|
IsEmail15({}, { message: "Please enter a valid email." })
|
|
7411
7615
|
], NewCandidateDto.prototype, "email", 2);
|
|
7412
7616
|
__decorateClass([
|
|
7413
|
-
|
|
7617
|
+
IsEnum26(CandidateType, {
|
|
7414
7618
|
message: "type must be NEW"
|
|
7415
7619
|
})
|
|
7416
7620
|
], NewCandidateDto.prototype, "type", 2);
|
|
7417
7621
|
var CandidatesDto = class {
|
|
7418
7622
|
};
|
|
7419
7623
|
__decorateClass([
|
|
7420
|
-
|
|
7421
|
-
|
|
7422
|
-
|
|
7423
|
-
|
|
7424
|
-
|
|
7624
|
+
ValidateIf10((o) => o.exixtingCandidates?.length > 0),
|
|
7625
|
+
IsArray15({ message: "Existing candidates should be an array." }),
|
|
7626
|
+
ArrayNotEmpty10({ message: "Please select at least one candidate." }),
|
|
7627
|
+
ValidateNested7({ each: true }),
|
|
7628
|
+
Type13(() => ExistingCandidateDto)
|
|
7425
7629
|
], CandidatesDto.prototype, "exixtingCandidates", 2);
|
|
7426
7630
|
__decorateClass([
|
|
7427
|
-
|
|
7428
|
-
|
|
7429
|
-
|
|
7430
|
-
|
|
7431
|
-
|
|
7631
|
+
ValidateIf10((o) => o.newCandidates?.length > 0),
|
|
7632
|
+
IsArray15({ message: "New candidates should be an array." }),
|
|
7633
|
+
ArrayNotEmpty10({ message: "Please add at least one candidate." }),
|
|
7634
|
+
ValidateNested7({ each: true }),
|
|
7635
|
+
Type13(() => NewCandidateDto)
|
|
7432
7636
|
], CandidatesDto.prototype, "newCandidates", 2);
|
|
7433
7637
|
var InterviewInviteDto = class {
|
|
7434
7638
|
};
|
|
@@ -7436,77 +7640,77 @@ __decorateClass([
|
|
|
7436
7640
|
IsUUID12()
|
|
7437
7641
|
], InterviewInviteDto.prototype, "jobId", 2);
|
|
7438
7642
|
__decorateClass([
|
|
7439
|
-
|
|
7440
|
-
|
|
7643
|
+
ValidateNested7({ each: true }),
|
|
7644
|
+
Type13(() => CandidatesDto)
|
|
7441
7645
|
], InterviewInviteDto.prototype, "candidates", 2);
|
|
7442
7646
|
|
|
7443
7647
|
// src/modules/interview/dto/create-f2f-interview.dto.ts
|
|
7444
7648
|
import {
|
|
7445
|
-
IsString as
|
|
7446
|
-
IsNotEmpty as
|
|
7649
|
+
IsString as IsString42,
|
|
7650
|
+
IsNotEmpty as IsNotEmpty60,
|
|
7447
7651
|
IsEmail as IsEmail16,
|
|
7448
|
-
IsNumber as
|
|
7652
|
+
IsNumber as IsNumber10
|
|
7449
7653
|
} from "class-validator";
|
|
7450
7654
|
var CreateF2FInterviewDto = class {
|
|
7451
7655
|
};
|
|
7452
7656
|
__decorateClass([
|
|
7453
7657
|
IsEmail16({}, { message: "Please enter a valid email address." }),
|
|
7454
|
-
|
|
7658
|
+
IsNotEmpty60({ message: "Invitee email is required." })
|
|
7455
7659
|
], CreateF2FInterviewDto.prototype, "inviteeEmail", 2);
|
|
7456
7660
|
__decorateClass([
|
|
7457
|
-
|
|
7458
|
-
|
|
7661
|
+
IsString42({ message: "Invitee name must be a string." }),
|
|
7662
|
+
IsNotEmpty60({ message: "Invitee name is required." })
|
|
7459
7663
|
], CreateF2FInterviewDto.prototype, "inviteeName", 2);
|
|
7460
7664
|
__decorateClass([
|
|
7461
|
-
|
|
7665
|
+
IsNumber10({}, { message: "Interview ID must be a number." })
|
|
7462
7666
|
], CreateF2FInterviewDto.prototype, "interviewId", 2);
|
|
7463
7667
|
__decorateClass([
|
|
7464
|
-
|
|
7668
|
+
IsNumber10({}, { message: "Candidate ID must be a number." })
|
|
7465
7669
|
], CreateF2FInterviewDto.prototype, "candidateId", 2);
|
|
7466
7670
|
|
|
7467
7671
|
// src/modules/interview/dto/create-f2f-interview-direct.dto.ts
|
|
7468
7672
|
import {
|
|
7469
|
-
IsString as
|
|
7470
|
-
IsNotEmpty as
|
|
7673
|
+
IsString as IsString43,
|
|
7674
|
+
IsNotEmpty as IsNotEmpty61,
|
|
7471
7675
|
IsEmail as IsEmail17,
|
|
7472
|
-
IsNumber as
|
|
7676
|
+
IsNumber as IsNumber11
|
|
7473
7677
|
} from "class-validator";
|
|
7474
7678
|
var CreateF2FInterviewDirectDto = class {
|
|
7475
7679
|
};
|
|
7476
7680
|
__decorateClass([
|
|
7477
7681
|
IsEmail17({}, { message: "Please enter a valid email address." }),
|
|
7478
|
-
|
|
7682
|
+
IsNotEmpty61({ message: "Invitee email is required." })
|
|
7479
7683
|
], CreateF2FInterviewDirectDto.prototype, "inviteeEmail", 2);
|
|
7480
7684
|
__decorateClass([
|
|
7481
|
-
|
|
7482
|
-
|
|
7685
|
+
IsString43({ message: "Invitee name must be a string." }),
|
|
7686
|
+
IsNotEmpty61({ message: "Invitee name is required." })
|
|
7483
7687
|
], CreateF2FInterviewDirectDto.prototype, "inviteeName", 2);
|
|
7484
7688
|
__decorateClass([
|
|
7485
|
-
|
|
7689
|
+
IsNumber11({}, { message: "Job ID must be a number." })
|
|
7486
7690
|
], CreateF2FInterviewDirectDto.prototype, "jobId", 2);
|
|
7487
7691
|
__decorateClass([
|
|
7488
|
-
|
|
7692
|
+
IsNumber11({}, { message: "Candidate ID must be a number." })
|
|
7489
7693
|
], CreateF2FInterviewDirectDto.prototype, "candidateId", 2);
|
|
7490
7694
|
|
|
7491
7695
|
// src/modules/interview/dto/create-f2f-interview-reschedule-request.dto.ts
|
|
7492
7696
|
import {
|
|
7493
|
-
IsString as
|
|
7494
|
-
IsNotEmpty as
|
|
7697
|
+
IsString as IsString44,
|
|
7698
|
+
IsNotEmpty as IsNotEmpty62
|
|
7495
7699
|
} from "class-validator";
|
|
7496
7700
|
var CreateF2FInterviewRescheduleRequestDto = class {
|
|
7497
7701
|
};
|
|
7498
7702
|
__decorateClass([
|
|
7499
|
-
|
|
7703
|
+
IsNotEmpty62({ message: "F2F Interview ID is required." })
|
|
7500
7704
|
], CreateF2FInterviewRescheduleRequestDto.prototype, "f2FInterviewId", 2);
|
|
7501
7705
|
__decorateClass([
|
|
7502
|
-
|
|
7706
|
+
IsNotEmpty62({ message: "Rescheduled date is required." })
|
|
7503
7707
|
], CreateF2FInterviewRescheduleRequestDto.prototype, "rescheduledDate", 2);
|
|
7504
7708
|
__decorateClass([
|
|
7505
|
-
|
|
7506
|
-
|
|
7709
|
+
IsString44({ message: "Rescheduled slot must be a string." }),
|
|
7710
|
+
IsNotEmpty62({ message: "Rescheduled slot is required." })
|
|
7507
7711
|
], CreateF2FInterviewRescheduleRequestDto.prototype, "rescheduledSlot", 2);
|
|
7508
7712
|
__decorateClass([
|
|
7509
|
-
|
|
7713
|
+
IsString44({ message: "Freelancer reason must be a string." })
|
|
7510
7714
|
], CreateF2FInterviewRescheduleRequestDto.prototype, "freelancerRequestReason", 2);
|
|
7511
7715
|
|
|
7512
7716
|
// src/modules/contract/pattern/pattern.ts
|
|
@@ -7530,43 +7734,43 @@ var CONTRACT_PATTERN = {
|
|
|
7530
7734
|
};
|
|
7531
7735
|
|
|
7532
7736
|
// src/modules/contract/dto/sign-contract-for-client.dto.ts
|
|
7533
|
-
import { IsEnum as
|
|
7534
|
-
import { Type as
|
|
7737
|
+
import { IsEnum as IsEnum27, IsNotEmpty as IsNotEmpty63, IsNumber as IsNumber12 } from "class-validator";
|
|
7738
|
+
import { Type as Type14 } from "class-transformer";
|
|
7535
7739
|
var SignContractForClientDto = class {
|
|
7536
7740
|
};
|
|
7537
7741
|
__decorateClass([
|
|
7538
|
-
|
|
7539
|
-
|
|
7540
|
-
|
|
7742
|
+
IsNotEmpty63({ message: "Job Id is required." }),
|
|
7743
|
+
Type14(() => Number),
|
|
7744
|
+
IsNumber12({}, { message: "Job ID must be a number." })
|
|
7541
7745
|
], SignContractForClientDto.prototype, "jobId", 2);
|
|
7542
7746
|
__decorateClass([
|
|
7543
|
-
|
|
7544
|
-
|
|
7545
|
-
|
|
7747
|
+
IsNotEmpty63({ message: "Freelancer ID is required." }),
|
|
7748
|
+
Type14(() => Number),
|
|
7749
|
+
IsNumber12({}, { message: "Freelancer ID must be a number." })
|
|
7546
7750
|
], SignContractForClientDto.prototype, "freelancerId", 2);
|
|
7547
7751
|
__decorateClass([
|
|
7548
|
-
|
|
7549
|
-
|
|
7752
|
+
IsNotEmpty63({ message: "Contract type is required." }),
|
|
7753
|
+
IsEnum27(ContractTypeEnum)
|
|
7550
7754
|
], SignContractForClientDto.prototype, "contractType", 2);
|
|
7551
7755
|
|
|
7552
7756
|
// src/modules/contract/dto/sign-contract-for-freelancer.dto.ts
|
|
7553
|
-
import { IsEnum as
|
|
7554
|
-
import { Type as
|
|
7757
|
+
import { IsEnum as IsEnum28, IsNotEmpty as IsNotEmpty64, IsNumber as IsNumber13 } from "class-validator";
|
|
7758
|
+
import { Type as Type15 } from "class-transformer";
|
|
7555
7759
|
var SignContractForFreelancerDto = class {
|
|
7556
7760
|
};
|
|
7557
7761
|
__decorateClass([
|
|
7558
|
-
|
|
7559
|
-
|
|
7560
|
-
|
|
7762
|
+
IsNotEmpty64({ message: "Job Id is required." }),
|
|
7763
|
+
Type15(() => Number),
|
|
7764
|
+
IsNumber13({}, { message: "Job ID must be a number." })
|
|
7561
7765
|
], SignContractForFreelancerDto.prototype, "jobId", 2);
|
|
7562
7766
|
__decorateClass([
|
|
7563
|
-
|
|
7564
|
-
|
|
7565
|
-
|
|
7767
|
+
IsNotEmpty64({ message: "Client ID is required." }),
|
|
7768
|
+
Type15(() => Number),
|
|
7769
|
+
IsNumber13({}, { message: "Client ID must be a number." })
|
|
7566
7770
|
], SignContractForFreelancerDto.prototype, "clientId", 2);
|
|
7567
7771
|
__decorateClass([
|
|
7568
|
-
|
|
7569
|
-
|
|
7772
|
+
IsNotEmpty64({ message: "Contract type is required." }),
|
|
7773
|
+
IsEnum28(ContractTypeEnum)
|
|
7570
7774
|
], SignContractForFreelancerDto.prototype, "contractType", 2);
|
|
7571
7775
|
|
|
7572
7776
|
// src/modules/stripe/pattern/pattern.ts
|
|
@@ -7585,12 +7789,12 @@ var STRIPE_PATTERN = {
|
|
|
7585
7789
|
|
|
7586
7790
|
// src/modules/stripe/dto/create-checkout-session.dto.ts
|
|
7587
7791
|
import {
|
|
7588
|
-
IsNotEmpty as
|
|
7792
|
+
IsNotEmpty as IsNotEmpty65
|
|
7589
7793
|
} from "class-validator";
|
|
7590
7794
|
var CreateCheckoutSessionDto = class {
|
|
7591
7795
|
};
|
|
7592
7796
|
__decorateClass([
|
|
7593
|
-
|
|
7797
|
+
IsNotEmpty65({ message: "Amount is required" })
|
|
7594
7798
|
], CreateCheckoutSessionDto.prototype, "amount", 2);
|
|
7595
7799
|
|
|
7596
7800
|
// src/modules/timesheet/pattern/pattern.ts
|
|
@@ -7613,113 +7817,113 @@ var TIMESHEET_CLIENT_PATTERN = {
|
|
|
7613
7817
|
// src/modules/timesheet/dto/create-freelancer-timesheet.dto.ts
|
|
7614
7818
|
import {
|
|
7615
7819
|
IsDateString as IsDateString6,
|
|
7616
|
-
IsInt as
|
|
7617
|
-
IsNotEmpty as
|
|
7618
|
-
IsOptional as
|
|
7619
|
-
IsString as
|
|
7820
|
+
IsInt as IsInt10,
|
|
7821
|
+
IsNotEmpty as IsNotEmpty66,
|
|
7822
|
+
IsOptional as IsOptional42,
|
|
7823
|
+
IsString as IsString45,
|
|
7620
7824
|
Matches as Matches13,
|
|
7621
|
-
IsNumber as
|
|
7825
|
+
IsNumber as IsNumber14
|
|
7622
7826
|
} from "class-validator";
|
|
7623
7827
|
var CreateFreelancerTimesheetDto = class {
|
|
7624
7828
|
};
|
|
7625
7829
|
__decorateClass([
|
|
7626
|
-
|
|
7627
|
-
|
|
7830
|
+
IsNotEmpty66({ message: "Job id is required" }),
|
|
7831
|
+
IsNumber14({}, { message: "Job id must be a number" })
|
|
7628
7832
|
], CreateFreelancerTimesheetDto.prototype, "jobId", 2);
|
|
7629
7833
|
__decorateClass([
|
|
7630
|
-
|
|
7834
|
+
IsNotEmpty66({ message: "start date is required" }),
|
|
7631
7835
|
IsDateString6()
|
|
7632
7836
|
], CreateFreelancerTimesheetDto.prototype, "startDate", 2);
|
|
7633
7837
|
__decorateClass([
|
|
7634
|
-
|
|
7838
|
+
IsNotEmpty66({ message: "end date is required" }),
|
|
7635
7839
|
IsDateString6()
|
|
7636
7840
|
], CreateFreelancerTimesheetDto.prototype, "endDate", 2);
|
|
7637
7841
|
__decorateClass([
|
|
7638
|
-
|
|
7842
|
+
IsNotEmpty66({ message: "start time is required" }),
|
|
7639
7843
|
Matches13(/^([01]\d|2[0-3]):([0-5]\d):([0-5]\d)$/, {
|
|
7640
7844
|
message: "startTime must be in HH:mm:ss format"
|
|
7641
7845
|
})
|
|
7642
7846
|
], CreateFreelancerTimesheetDto.prototype, "startTime", 2);
|
|
7643
7847
|
__decorateClass([
|
|
7644
|
-
|
|
7848
|
+
IsNotEmpty66({ message: "end time is required" }),
|
|
7645
7849
|
Matches13(/^([01]\d|2[0-3]):([0-5]\d):([0-5]\d)$/, {
|
|
7646
7850
|
message: "endTime must be in HH:mm:ss format"
|
|
7647
7851
|
})
|
|
7648
7852
|
], CreateFreelancerTimesheetDto.prototype, "endTime", 2);
|
|
7649
7853
|
__decorateClass([
|
|
7650
|
-
|
|
7651
|
-
|
|
7854
|
+
IsOptional42(),
|
|
7855
|
+
IsInt10()
|
|
7652
7856
|
], CreateFreelancerTimesheetDto.prototype, "taskId", 2);
|
|
7653
7857
|
__decorateClass([
|
|
7654
|
-
|
|
7655
|
-
|
|
7858
|
+
IsOptional42(),
|
|
7859
|
+
IsString45()
|
|
7656
7860
|
], CreateFreelancerTimesheetDto.prototype, "projectName", 2);
|
|
7657
7861
|
__decorateClass([
|
|
7658
|
-
|
|
7659
|
-
|
|
7862
|
+
IsOptional42(),
|
|
7863
|
+
IsString45()
|
|
7660
7864
|
], CreateFreelancerTimesheetDto.prototype, "deliverable", 2);
|
|
7661
7865
|
__decorateClass([
|
|
7662
|
-
|
|
7663
|
-
|
|
7866
|
+
IsOptional42(),
|
|
7867
|
+
IsString45()
|
|
7664
7868
|
], CreateFreelancerTimesheetDto.prototype, "taskName", 2);
|
|
7665
7869
|
__decorateClass([
|
|
7666
|
-
|
|
7870
|
+
IsNotEmpty66({ message: "Description is required" })
|
|
7667
7871
|
], CreateFreelancerTimesheetDto.prototype, "description", 2);
|
|
7668
7872
|
|
|
7669
7873
|
// src/modules/timesheet/dto/update-freelancer-timesheet.dto.ts
|
|
7670
7874
|
import {
|
|
7671
7875
|
IsDateString as IsDateString7,
|
|
7672
|
-
IsInt as
|
|
7673
|
-
IsNotEmpty as
|
|
7674
|
-
IsOptional as
|
|
7675
|
-
IsString as
|
|
7876
|
+
IsInt as IsInt11,
|
|
7877
|
+
IsNotEmpty as IsNotEmpty67,
|
|
7878
|
+
IsOptional as IsOptional43,
|
|
7879
|
+
IsString as IsString46,
|
|
7676
7880
|
Matches as Matches14,
|
|
7677
|
-
IsNumber as
|
|
7881
|
+
IsNumber as IsNumber15
|
|
7678
7882
|
} from "class-validator";
|
|
7679
7883
|
var UpdateFreelancerTimesheetDto = class {
|
|
7680
7884
|
};
|
|
7681
7885
|
__decorateClass([
|
|
7682
|
-
|
|
7683
|
-
|
|
7886
|
+
IsNotEmpty67({ message: "Job id is required" }),
|
|
7887
|
+
IsNumber15({}, { message: "Job id must be a number" })
|
|
7684
7888
|
], UpdateFreelancerTimesheetDto.prototype, "jobId", 2);
|
|
7685
7889
|
__decorateClass([
|
|
7686
|
-
|
|
7890
|
+
IsNotEmpty67({ message: "start date is required" }),
|
|
7687
7891
|
IsDateString7()
|
|
7688
7892
|
], UpdateFreelancerTimesheetDto.prototype, "startDate", 2);
|
|
7689
7893
|
__decorateClass([
|
|
7690
|
-
|
|
7894
|
+
IsNotEmpty67({ message: "end date is required" }),
|
|
7691
7895
|
IsDateString7()
|
|
7692
7896
|
], UpdateFreelancerTimesheetDto.prototype, "endDate", 2);
|
|
7693
7897
|
__decorateClass([
|
|
7694
|
-
|
|
7898
|
+
IsNotEmpty67({ message: "start time is required" }),
|
|
7695
7899
|
Matches14(/^([01]\d|2[0-3]):([0-5]\d):([0-5]\d)$/, {
|
|
7696
7900
|
message: "startTime must be in HH:mm:ss format"
|
|
7697
7901
|
})
|
|
7698
7902
|
], UpdateFreelancerTimesheetDto.prototype, "startTime", 2);
|
|
7699
7903
|
__decorateClass([
|
|
7700
|
-
|
|
7904
|
+
IsNotEmpty67({ message: "end time is required" }),
|
|
7701
7905
|
Matches14(/^([01]\d|2[0-3]):([0-5]\d):([0-5]\d)$/, {
|
|
7702
7906
|
message: "endTime must be in HH:mm:ss format"
|
|
7703
7907
|
})
|
|
7704
7908
|
], UpdateFreelancerTimesheetDto.prototype, "endTime", 2);
|
|
7705
7909
|
__decorateClass([
|
|
7706
|
-
|
|
7707
|
-
|
|
7910
|
+
IsOptional43(),
|
|
7911
|
+
IsInt11()
|
|
7708
7912
|
], UpdateFreelancerTimesheetDto.prototype, "taskId", 2);
|
|
7709
7913
|
__decorateClass([
|
|
7710
|
-
|
|
7711
|
-
|
|
7914
|
+
IsOptional43(),
|
|
7915
|
+
IsString46()
|
|
7712
7916
|
], UpdateFreelancerTimesheetDto.prototype, "projectName", 2);
|
|
7713
7917
|
__decorateClass([
|
|
7714
|
-
|
|
7715
|
-
|
|
7918
|
+
IsOptional43(),
|
|
7919
|
+
IsString46()
|
|
7716
7920
|
], UpdateFreelancerTimesheetDto.prototype, "deliverable", 2);
|
|
7717
7921
|
__decorateClass([
|
|
7718
|
-
|
|
7719
|
-
|
|
7922
|
+
IsOptional43(),
|
|
7923
|
+
IsString46()
|
|
7720
7924
|
], UpdateFreelancerTimesheetDto.prototype, "taskName", 2);
|
|
7721
7925
|
__decorateClass([
|
|
7722
|
-
|
|
7926
|
+
IsNotEmpty67({ message: "Description is required" })
|
|
7723
7927
|
], UpdateFreelancerTimesheetDto.prototype, "description", 2);
|
|
7724
7928
|
|
|
7725
7929
|
// src/modules/invoice/pattern/pattern.ts
|
|
@@ -7734,61 +7938,61 @@ var INVOICE_PATTERN = {
|
|
|
7734
7938
|
};
|
|
7735
7939
|
|
|
7736
7940
|
// src/modules/invoice/dto/update-invoice-status.dto.ts
|
|
7737
|
-
import { IsEnum as
|
|
7941
|
+
import { IsEnum as IsEnum31, IsNotEmpty as IsNotEmpty68 } from "class-validator";
|
|
7738
7942
|
var UpdateInvoiceStatusDto = class {
|
|
7739
7943
|
};
|
|
7740
7944
|
__decorateClass([
|
|
7741
|
-
|
|
7742
|
-
|
|
7945
|
+
IsNotEmpty68({ message: "Please provide invoice status." }),
|
|
7946
|
+
IsEnum31(InvoiceStatusEnum, {
|
|
7743
7947
|
message: "Status must be one of: APPROVED, REJECTED"
|
|
7744
7948
|
})
|
|
7745
7949
|
], UpdateInvoiceStatusDto.prototype, "status", 2);
|
|
7746
7950
|
|
|
7747
7951
|
// src/modules/dispute/dto/create-dispute.dto.ts
|
|
7748
7952
|
import {
|
|
7749
|
-
IsString as
|
|
7750
|
-
IsNotEmpty as
|
|
7953
|
+
IsString as IsString47,
|
|
7954
|
+
IsNotEmpty as IsNotEmpty69,
|
|
7751
7955
|
IsIn as IsIn4,
|
|
7752
|
-
IsOptional as
|
|
7753
|
-
MaxLength as
|
|
7956
|
+
IsOptional as IsOptional44,
|
|
7957
|
+
MaxLength as MaxLength21,
|
|
7754
7958
|
IsObject,
|
|
7755
|
-
IsNumber as
|
|
7756
|
-
ValidateIf as
|
|
7959
|
+
IsNumber as IsNumber16,
|
|
7960
|
+
ValidateIf as ValidateIf11
|
|
7757
7961
|
} from "class-validator";
|
|
7758
|
-
import { Transform as Transform4, Type as
|
|
7962
|
+
import { Transform as Transform4, Type as Type16 } from "class-transformer";
|
|
7759
7963
|
var CreateDisputeDto = class {
|
|
7760
7964
|
};
|
|
7761
7965
|
__decorateClass([
|
|
7762
|
-
|
|
7763
|
-
|
|
7764
|
-
|
|
7966
|
+
ValidateIf11((o) => o.initiatorType === "FREELANCER" /* FREELANCER */),
|
|
7967
|
+
IsNumber16({}, { message: "Client id must be a number" }),
|
|
7968
|
+
Type16(() => Number)
|
|
7765
7969
|
], CreateDisputeDto.prototype, "clientId", 2);
|
|
7766
7970
|
__decorateClass([
|
|
7767
|
-
|
|
7768
|
-
|
|
7769
|
-
|
|
7971
|
+
ValidateIf11((o) => o.initiatorType === "CLIENT" /* CLIENT */),
|
|
7972
|
+
IsNumber16({}, { message: "Freelancer id must be a number" }),
|
|
7973
|
+
Type16(() => Number)
|
|
7770
7974
|
], CreateDisputeDto.prototype, "freelancerId", 2);
|
|
7771
7975
|
__decorateClass([
|
|
7772
|
-
|
|
7773
|
-
|
|
7976
|
+
IsNotEmpty69({ message: "Please select dispute type." }),
|
|
7977
|
+
IsString47(),
|
|
7774
7978
|
IsIn4(["JOB", "INVOICE"])
|
|
7775
7979
|
], CreateDisputeDto.prototype, "disputeType", 2);
|
|
7776
7980
|
__decorateClass([
|
|
7777
|
-
|
|
7778
|
-
|
|
7981
|
+
IsNotEmpty69({ message: "Please provide initiator type." }),
|
|
7982
|
+
IsString47()
|
|
7779
7983
|
], CreateDisputeDto.prototype, "initiatorType", 2);
|
|
7780
7984
|
__decorateClass([
|
|
7781
|
-
|
|
7782
|
-
|
|
7783
|
-
|
|
7985
|
+
IsNotEmpty69({ message: "Please enter description." }),
|
|
7986
|
+
IsString47({ message: "Description must be a string" }),
|
|
7987
|
+
MaxLength21(500, { message: "Description must not exceed 500 characters" })
|
|
7784
7988
|
], CreateDisputeDto.prototype, "description", 2);
|
|
7785
7989
|
__decorateClass([
|
|
7786
|
-
|
|
7787
|
-
|
|
7788
|
-
|
|
7990
|
+
IsOptional44(),
|
|
7991
|
+
IsString47({ message: "Comment must be a string" }),
|
|
7992
|
+
MaxLength21(500, { message: "Comment must not exceed 500 characters" })
|
|
7789
7993
|
], CreateDisputeDto.prototype, "comment", 2);
|
|
7790
7994
|
__decorateClass([
|
|
7791
|
-
|
|
7995
|
+
IsOptional44(),
|
|
7792
7996
|
IsObject({ message: "Dynamic fields must be a valid object" }),
|
|
7793
7997
|
Transform4(({ value }) => {
|
|
7794
7998
|
if (typeof value === "string") {
|
|
@@ -7804,15 +8008,15 @@ __decorateClass([
|
|
|
7804
8008
|
|
|
7805
8009
|
// src/modules/senseloaf/dto/ai-interview-question-generate.dto.ts
|
|
7806
8010
|
import {
|
|
7807
|
-
IsNotEmpty as
|
|
8011
|
+
IsNotEmpty as IsNotEmpty70
|
|
7808
8012
|
} from "class-validator";
|
|
7809
8013
|
var AiInterviewQuestionGenerateDto = class {
|
|
7810
8014
|
};
|
|
7811
8015
|
__decorateClass([
|
|
7812
|
-
|
|
8016
|
+
IsNotEmpty70({ message: "Please enter job description." })
|
|
7813
8017
|
], AiInterviewQuestionGenerateDto.prototype, "jobDescription", 2);
|
|
7814
8018
|
__decorateClass([
|
|
7815
|
-
|
|
8019
|
+
IsNotEmpty70({ message: "Please enter number of questions." })
|
|
7816
8020
|
], AiInterviewQuestionGenerateDto.prototype, "numQuestions", 2);
|
|
7817
8021
|
|
|
7818
8022
|
// src/adapters/tcp/user.tcp.adapter.ts
|
|
@@ -8833,6 +9037,7 @@ export {
|
|
|
8833
9037
|
AccountStatus,
|
|
8834
9038
|
AccountType,
|
|
8835
9039
|
AdminCreateJobInformationDto,
|
|
9040
|
+
AdminJobBasicInformationV2Dto,
|
|
8836
9041
|
AdminPermission,
|
|
8837
9042
|
AdminRole,
|
|
8838
9043
|
AdminRolePermission,
|
|
@@ -8995,6 +9200,7 @@ export {
|
|
|
8995
9200
|
JobFreelancerRecommendationV2,
|
|
8996
9201
|
JobIdParamDto,
|
|
8997
9202
|
JobLocation,
|
|
9203
|
+
JobLocationAdminDto,
|
|
8998
9204
|
JobLocationDto,
|
|
8999
9205
|
JobLocationEnum2 as JobLocationEnum,
|
|
9000
9206
|
JobLocationEnumDto,
|