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