@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.js
CHANGED
|
@@ -36,6 +36,7 @@ __export(index_exports, {
|
|
|
36
36
|
AccountStatus: () => AccountStatus,
|
|
37
37
|
AccountType: () => AccountType,
|
|
38
38
|
AdminCreateJobInformationDto: () => AdminCreateJobInformationDto,
|
|
39
|
+
AdminJobBasicInformationV2Dto: () => AdminJobBasicInformationV2Dto,
|
|
39
40
|
AdminPermission: () => AdminPermission,
|
|
40
41
|
AdminRole: () => AdminRole,
|
|
41
42
|
AdminRolePermission: () => AdminRolePermission,
|
|
@@ -198,6 +199,7 @@ __export(index_exports, {
|
|
|
198
199
|
JobFreelancerRecommendationV2: () => JobFreelancerRecommendationV2,
|
|
199
200
|
JobIdParamDto: () => JobIdParamDto,
|
|
200
201
|
JobLocation: () => JobLocation,
|
|
202
|
+
JobLocationAdminDto: () => JobLocationAdminDto,
|
|
201
203
|
JobLocationDto: () => JobLocationDto,
|
|
202
204
|
JobLocationEnum: () => JobLocationEnum2,
|
|
203
205
|
JobLocationEnumDto: () => JobLocationEnumDto,
|
|
@@ -3031,6 +3033,7 @@ InterviewInvite = __decorateClass([
|
|
|
3031
3033
|
var import_typeorm15 = require("typeorm");
|
|
3032
3034
|
var AiInterviewStatusEnum = /* @__PURE__ */ ((AiInterviewStatusEnum2) => {
|
|
3033
3035
|
AiInterviewStatusEnum2["NOT_ATTEMPTED"] = "NOT_ATTEMPTED";
|
|
3036
|
+
AiInterviewStatusEnum2["ATTEMPTED"] = "ATTEMPTED";
|
|
3034
3037
|
AiInterviewStatusEnum2["ACTIVE"] = "ACTIVE";
|
|
3035
3038
|
AiInterviewStatusEnum2["COMPELETED"] = "COMPELETED";
|
|
3036
3039
|
AiInterviewStatusEnum2["PASSED"] = "PASSED";
|
|
@@ -6946,6 +6949,8 @@ var ADMIN_JOB_PATTERN = {
|
|
|
6946
6949
|
adminFetchJobById: "admin.fetch.job.by.id",
|
|
6947
6950
|
adminCreateJob: "admin.create.job",
|
|
6948
6951
|
adminUpdateJob: "admin.update.job",
|
|
6952
|
+
adminCreateJobV2: "admin.create.job.v2",
|
|
6953
|
+
adminUpdateJobV2: "admin.update.job.v2",
|
|
6949
6954
|
adminDeleteJob: "admin.delete.job",
|
|
6950
6955
|
adminCountJob: "admin.count.job",
|
|
6951
6956
|
adminFetchGraphCount: "admin.fetch.graph.count"
|
|
@@ -7145,6 +7150,194 @@ __decorateClass([
|
|
|
7145
7150
|
(0, import_class_validator63.IsInt)({ message: "Client ID must be a valid integer." })
|
|
7146
7151
|
], AdminUpdateJobInformationDto.prototype, "clientId", 2);
|
|
7147
7152
|
|
|
7153
|
+
// src/modules/job-admin/dto/admin-job-basic-information-v2.dto.ts
|
|
7154
|
+
var import_class_validator64 = require("class-validator");
|
|
7155
|
+
var import_class_transformer14 = require("class-transformer");
|
|
7156
|
+
var JobLocationAdminEnumDto = /* @__PURE__ */ ((JobLocationAdminEnumDto2) => {
|
|
7157
|
+
JobLocationAdminEnumDto2["ONSITE"] = "ONSITE";
|
|
7158
|
+
JobLocationAdminEnumDto2["REMOTE"] = "REMOTE";
|
|
7159
|
+
JobLocationAdminEnumDto2["HYBRID"] = "HYBRID";
|
|
7160
|
+
return JobLocationAdminEnumDto2;
|
|
7161
|
+
})(JobLocationAdminEnumDto || {});
|
|
7162
|
+
var EmploymentTypeAdminEnumDto = /* @__PURE__ */ ((EmploymentTypeAdminEnumDto2) => {
|
|
7163
|
+
EmploymentTypeAdminEnumDto2["FULLTIME"] = "FULLTIME";
|
|
7164
|
+
EmploymentTypeAdminEnumDto2["PARTTIME"] = "PARTTIME";
|
|
7165
|
+
EmploymentTypeAdminEnumDto2["BOTH"] = "BOTH";
|
|
7166
|
+
EmploymentTypeAdminEnumDto2["HOURLY"] = "HOURLY";
|
|
7167
|
+
EmploymentTypeAdminEnumDto2["FREELANCE"] = "FREELANCE";
|
|
7168
|
+
EmploymentTypeAdminEnumDto2["FTE"] = "FTE";
|
|
7169
|
+
return EmploymentTypeAdminEnumDto2;
|
|
7170
|
+
})(EmploymentTypeAdminEnumDto || {});
|
|
7171
|
+
var typeOfExperienceAdminEnumDto = /* @__PURE__ */ ((typeOfExperienceAdminEnumDto2) => {
|
|
7172
|
+
typeOfExperienceAdminEnumDto2["SINGLE"] = "SINGLE";
|
|
7173
|
+
typeOfExperienceAdminEnumDto2["RANGE"] = "RANGE";
|
|
7174
|
+
return typeOfExperienceAdminEnumDto2;
|
|
7175
|
+
})(typeOfExperienceAdminEnumDto || {});
|
|
7176
|
+
var JobLocationAdminDto = class {
|
|
7177
|
+
};
|
|
7178
|
+
__decorateClass([
|
|
7179
|
+
(0, import_class_validator64.IsOptional)(),
|
|
7180
|
+
(0, import_class_validator64.IsNumber)()
|
|
7181
|
+
], JobLocationAdminDto.prototype, "countryId", 2);
|
|
7182
|
+
__decorateClass([
|
|
7183
|
+
(0, import_class_validator64.IsOptional)(),
|
|
7184
|
+
(0, import_class_validator64.IsNumber)()
|
|
7185
|
+
], JobLocationAdminDto.prototype, "stateId", 2);
|
|
7186
|
+
__decorateClass([
|
|
7187
|
+
(0, import_class_validator64.IsOptional)(),
|
|
7188
|
+
(0, import_class_validator64.IsNumber)()
|
|
7189
|
+
], JobLocationAdminDto.prototype, "cityId", 2);
|
|
7190
|
+
var AdminJobBasicInformationV2Dto = class {
|
|
7191
|
+
constructor() {
|
|
7192
|
+
this.isDraft = false;
|
|
7193
|
+
}
|
|
7194
|
+
};
|
|
7195
|
+
__decorateClass([
|
|
7196
|
+
(0, import_class_validator64.IsInt)({ message: "Client ID must be a valid integer." })
|
|
7197
|
+
], AdminJobBasicInformationV2Dto.prototype, "clientId", 2);
|
|
7198
|
+
__decorateClass([
|
|
7199
|
+
(0, import_class_validator64.IsOptional)(),
|
|
7200
|
+
(0, import_class_transformer14.Type)(() => Boolean)
|
|
7201
|
+
], AdminJobBasicInformationV2Dto.prototype, "isDraft", 2);
|
|
7202
|
+
__decorateClass([
|
|
7203
|
+
(0, import_class_validator64.IsNotEmpty)({ message: "Please enter job role" }),
|
|
7204
|
+
(0, import_class_validator64.IsString)({ message: "Job role must be a string" })
|
|
7205
|
+
], AdminJobBasicInformationV2Dto.prototype, "jobRole", 2);
|
|
7206
|
+
__decorateClass([
|
|
7207
|
+
(0, import_class_validator64.IsOptional)()
|
|
7208
|
+
], AdminJobBasicInformationV2Dto.prototype, "jobRoleCanonicalName", 2);
|
|
7209
|
+
__decorateClass([
|
|
7210
|
+
(0, import_class_validator64.IsOptional)(),
|
|
7211
|
+
(0, import_class_validator64.IsString)({ message: "Project name must be a string" })
|
|
7212
|
+
], AdminJobBasicInformationV2Dto.prototype, "projectName", 2);
|
|
7213
|
+
__decorateClass([
|
|
7214
|
+
(0, import_class_validator64.IsOptional)(),
|
|
7215
|
+
(0, import_class_validator64.IsString)({ message: "Note must be a string" })
|
|
7216
|
+
], AdminJobBasicInformationV2Dto.prototype, "note", 2);
|
|
7217
|
+
__decorateClass([
|
|
7218
|
+
(0, import_class_validator64.ValidateIf)((o) => !o.isDraft),
|
|
7219
|
+
(0, import_class_validator64.IsOptional)(),
|
|
7220
|
+
(0, import_class_validator64.IsArray)({ message: "Skills must be an array" }),
|
|
7221
|
+
(0, import_class_validator64.ArrayNotEmpty)({ message: "Please select at least one skill" }),
|
|
7222
|
+
(0, import_class_validator64.IsString)({ each: true, message: "Each skill must be a string" }),
|
|
7223
|
+
(0, import_class_transformer14.Type)(() => String)
|
|
7224
|
+
], AdminJobBasicInformationV2Dto.prototype, "skills", 2);
|
|
7225
|
+
__decorateClass([
|
|
7226
|
+
(0, import_class_validator64.ValidateIf)((o) => !o.isDraft),
|
|
7227
|
+
(0, import_class_validator64.IsArray)({ message: "Good to have skills must be an array" }),
|
|
7228
|
+
(0, import_class_validator64.IsString)({ each: true, message: "Each skill must be a string" }),
|
|
7229
|
+
(0, import_class_validator64.IsOptional)(),
|
|
7230
|
+
(0, import_class_transformer14.Type)(() => String)
|
|
7231
|
+
], AdminJobBasicInformationV2Dto.prototype, "goodToHaveSkills", 2);
|
|
7232
|
+
__decorateClass([
|
|
7233
|
+
(0, import_class_validator64.ValidateIf)((o) => !o.isDraft),
|
|
7234
|
+
(0, import_class_validator64.IsArray)({ message: "locations must be an array" }),
|
|
7235
|
+
(0, import_class_validator64.ArrayNotEmpty)({ message: "Please select at least one location" }),
|
|
7236
|
+
(0, import_class_validator64.ValidateNested)({ each: true }),
|
|
7237
|
+
(0, import_class_transformer14.Type)(() => JobLocationAdminDto),
|
|
7238
|
+
(0, import_class_validator64.IsOptional)()
|
|
7239
|
+
], AdminJobBasicInformationV2Dto.prototype, "locations", 2);
|
|
7240
|
+
__decorateClass([
|
|
7241
|
+
(0, import_class_validator64.ValidateIf)((o) => !o.isDraft),
|
|
7242
|
+
(0, import_class_validator64.IsNumber)({}, { message: "Openings must be a number" }),
|
|
7243
|
+
(0, import_class_validator64.Min)(1, { message: "There must be at least 1 opening" }),
|
|
7244
|
+
(0, import_class_transformer14.Type)(() => Number)
|
|
7245
|
+
], AdminJobBasicInformationV2Dto.prototype, "openings", 2);
|
|
7246
|
+
__decorateClass([
|
|
7247
|
+
(0, import_class_validator64.ValidateIf)((o) => !o.isDraft),
|
|
7248
|
+
(0, import_class_validator64.IsEnum)(JobLocationAdminEnumDto, {
|
|
7249
|
+
message: `Location must be one of: ${Object.values(JobLocationAdminEnumDto).join(
|
|
7250
|
+
", "
|
|
7251
|
+
)}`
|
|
7252
|
+
})
|
|
7253
|
+
], AdminJobBasicInformationV2Dto.prototype, "location", 2);
|
|
7254
|
+
__decorateClass([
|
|
7255
|
+
(0, import_class_validator64.ValidateIf)((o) => !o.isDraft),
|
|
7256
|
+
(0, import_class_validator64.IsEnum)(EmploymentTypeAdminEnumDto, {
|
|
7257
|
+
message: `Type of employment must be one of: ${Object.values(
|
|
7258
|
+
EmploymentTypeAdminEnumDto
|
|
7259
|
+
).join(", ")}`
|
|
7260
|
+
})
|
|
7261
|
+
], AdminJobBasicInformationV2Dto.prototype, "typeOfEmployment", 2);
|
|
7262
|
+
__decorateClass([
|
|
7263
|
+
(0, import_class_validator64.ValidateIf)((o) => !o.isDraft),
|
|
7264
|
+
(0, import_class_validator64.IsString)({ message: "Currency must be a string" })
|
|
7265
|
+
], AdminJobBasicInformationV2Dto.prototype, "currency", 2);
|
|
7266
|
+
__decorateClass([
|
|
7267
|
+
(0, import_class_validator64.ValidateIf)((o) => !o.isDraft),
|
|
7268
|
+
(0, import_class_validator64.IsNumber)({}, { message: "Expected salary (from) must be a number" }),
|
|
7269
|
+
(0, import_class_validator64.Min)(0, { message: "Expected salary (from) cannot be negative" }),
|
|
7270
|
+
(0, import_class_transformer14.Type)(() => Number)
|
|
7271
|
+
], AdminJobBasicInformationV2Dto.prototype, "expectedSalaryFrom", 2);
|
|
7272
|
+
__decorateClass([
|
|
7273
|
+
(0, import_class_validator64.IsOptional)()
|
|
7274
|
+
], AdminJobBasicInformationV2Dto.prototype, "hideExpectedSalaryFrom", 2);
|
|
7275
|
+
__decorateClass([
|
|
7276
|
+
(0, import_class_validator64.ValidateIf)((o) => !o.isDraft),
|
|
7277
|
+
(0, import_class_validator64.IsNumber)({}, { message: "Expected salary (to) must be a number" }),
|
|
7278
|
+
(0, import_class_validator64.Min)(0, { message: "Expected salary (to) cannot be negative" }),
|
|
7279
|
+
(0, import_class_transformer14.Type)(() => Number)
|
|
7280
|
+
], AdminJobBasicInformationV2Dto.prototype, "expectedSalaryTo", 2);
|
|
7281
|
+
__decorateClass([
|
|
7282
|
+
(0, import_class_validator64.IsOptional)()
|
|
7283
|
+
], AdminJobBasicInformationV2Dto.prototype, "hideExpectedSalaryTo", 2);
|
|
7284
|
+
__decorateClass([
|
|
7285
|
+
(0, import_class_validator64.IsOptional)()
|
|
7286
|
+
], AdminJobBasicInformationV2Dto.prototype, "years", 2);
|
|
7287
|
+
__decorateClass([
|
|
7288
|
+
(0, import_class_validator64.IsOptional)()
|
|
7289
|
+
], AdminJobBasicInformationV2Dto.prototype, "months", 2);
|
|
7290
|
+
__decorateClass([
|
|
7291
|
+
(0, import_class_validator64.IsOptional)()
|
|
7292
|
+
], AdminJobBasicInformationV2Dto.prototype, "weeks", 2);
|
|
7293
|
+
__decorateClass([
|
|
7294
|
+
(0, import_class_validator64.IsOptional)()
|
|
7295
|
+
], AdminJobBasicInformationV2Dto.prototype, "days", 2);
|
|
7296
|
+
__decorateClass([
|
|
7297
|
+
(0, import_class_validator64.IsOptional)(),
|
|
7298
|
+
(0, import_class_validator64.IsNumber)({}, { message: "Number of hours must be a number" }),
|
|
7299
|
+
(0, import_class_validator64.Min)(0, { message: "Number of hours cannot be negative" }),
|
|
7300
|
+
(0, import_class_validator64.Max)(40, { message: "Number of hours cannot exceed 40" }),
|
|
7301
|
+
(0, import_class_transformer14.Type)(() => Number)
|
|
7302
|
+
], AdminJobBasicInformationV2Dto.prototype, "numberOfHours", 2);
|
|
7303
|
+
__decorateClass([
|
|
7304
|
+
(0, import_class_validator64.ValidateIf)((o) => !o.isDraft),
|
|
7305
|
+
(0, import_class_validator64.IsString)({ message: "Candidate communication skills must be a string" }),
|
|
7306
|
+
(0, import_class_validator64.IsOptional)()
|
|
7307
|
+
], AdminJobBasicInformationV2Dto.prototype, "candidateCommunicationSkills", 2);
|
|
7308
|
+
__decorateClass([
|
|
7309
|
+
(0, import_class_validator64.ValidateIf)((o) => !o.isDraft),
|
|
7310
|
+
(0, import_class_validator64.IsNotEmpty)({ message: "Please enter the academic qualification" }),
|
|
7311
|
+
(0, import_class_validator64.IsString)({ message: "Academic qualification must be a string" })
|
|
7312
|
+
], AdminJobBasicInformationV2Dto.prototype, "academicQualification", 2);
|
|
7313
|
+
__decorateClass([
|
|
7314
|
+
(0, import_class_validator64.ValidateIf)((o) => !o.isDraft),
|
|
7315
|
+
(0, import_class_validator64.IsEnum)(typeOfExperienceAdminEnumDto, {
|
|
7316
|
+
message: `Type of experience must be one of: ${Object.values(
|
|
7317
|
+
typeOfExperienceAdminEnumDto
|
|
7318
|
+
).join(", ")}`
|
|
7319
|
+
})
|
|
7320
|
+
], AdminJobBasicInformationV2Dto.prototype, "yearsOfExperienceType", 2);
|
|
7321
|
+
__decorateClass([
|
|
7322
|
+
(0, import_class_validator64.ValidateIf)((o) => !o.isDraft),
|
|
7323
|
+
(0, import_class_validator64.IsNotEmpty)({ message: "Please enter the years of experience" }),
|
|
7324
|
+
(0, import_class_validator64.IsString)({ message: "Years of experience must be a string" })
|
|
7325
|
+
], AdminJobBasicInformationV2Dto.prototype, "yearsOfExperienceFrom", 2);
|
|
7326
|
+
__decorateClass([
|
|
7327
|
+
(0, import_class_validator64.ValidateIf)((o) => !o.isDraft),
|
|
7328
|
+
(0, import_class_validator64.IsNotEmpty)({ message: "Please enter the years of experience upto" }),
|
|
7329
|
+
(0, import_class_validator64.IsString)({ message: "Years of experience must be a string" })
|
|
7330
|
+
], AdminJobBasicInformationV2Dto.prototype, "yearsOfExperienceTo", 2);
|
|
7331
|
+
__decorateClass([
|
|
7332
|
+
(0, import_class_validator64.IsOptional)(),
|
|
7333
|
+
(0, import_class_validator64.IsString)({ message: "Business industry must be a string" })
|
|
7334
|
+
], AdminJobBasicInformationV2Dto.prototype, "businessIndustry", 2);
|
|
7335
|
+
__decorateClass([
|
|
7336
|
+
(0, import_class_validator64.IsOptional)(),
|
|
7337
|
+
(0, import_class_validator64.IsString)({ message: "Additional comment must be a string" }),
|
|
7338
|
+
(0, import_class_validator64.MaxLength)(500, { message: "Additional comment must not exceed 500 characters" })
|
|
7339
|
+
], AdminJobBasicInformationV2Dto.prototype, "additionalComment", 2);
|
|
7340
|
+
|
|
7148
7341
|
// src/modules/lead/pattern/pattern.ts
|
|
7149
7342
|
var LEAD_PATTERN = {
|
|
7150
7343
|
fetchLead: "fetch.lead",
|
|
@@ -7152,7 +7345,7 @@ var LEAD_PATTERN = {
|
|
|
7152
7345
|
};
|
|
7153
7346
|
|
|
7154
7347
|
// src/modules/lead/dto/create-lead.dto.ts
|
|
7155
|
-
var
|
|
7348
|
+
var import_class_validator65 = require("class-validator");
|
|
7156
7349
|
var CategoryEmumDto = /* @__PURE__ */ ((CategoryEmumDto2) => {
|
|
7157
7350
|
CategoryEmumDto2["BUSINESS"] = "BUSINESS";
|
|
7158
7351
|
CategoryEmumDto2["FREELANCER"] = "FREELANCER";
|
|
@@ -7161,23 +7354,23 @@ var CategoryEmumDto = /* @__PURE__ */ ((CategoryEmumDto2) => {
|
|
|
7161
7354
|
var CreateLeadDto = class {
|
|
7162
7355
|
};
|
|
7163
7356
|
__decorateClass([
|
|
7164
|
-
(0,
|
|
7357
|
+
(0, import_class_validator65.IsString)({ message: "Name must be a string" })
|
|
7165
7358
|
], CreateLeadDto.prototype, "name", 2);
|
|
7166
7359
|
__decorateClass([
|
|
7167
|
-
(0,
|
|
7360
|
+
(0, import_class_validator65.IsEmail)({}, { message: "Invalid email address" })
|
|
7168
7361
|
], CreateLeadDto.prototype, "email", 2);
|
|
7169
7362
|
__decorateClass([
|
|
7170
|
-
(0,
|
|
7363
|
+
(0, import_class_validator65.IsString)({ message: "Mobile code must be a string (e.g., +1)" })
|
|
7171
7364
|
], CreateLeadDto.prototype, "mobileCode", 2);
|
|
7172
7365
|
__decorateClass([
|
|
7173
|
-
(0,
|
|
7366
|
+
(0, import_class_validator65.IsString)({ message: "Mobile must be a string (e.g., 1243253534)" })
|
|
7174
7367
|
], CreateLeadDto.prototype, "mobile", 2);
|
|
7175
7368
|
__decorateClass([
|
|
7176
|
-
(0,
|
|
7177
|
-
(0,
|
|
7369
|
+
(0, import_class_validator65.IsOptional)(),
|
|
7370
|
+
(0, import_class_validator65.IsString)({ message: "Description must be a string" })
|
|
7178
7371
|
], CreateLeadDto.prototype, "description", 2);
|
|
7179
7372
|
__decorateClass([
|
|
7180
|
-
(0,
|
|
7373
|
+
(0, import_class_validator65.IsEnum)(CategoryEmumDto, {
|
|
7181
7374
|
message: `Type of category must be one of: ${Object.values(
|
|
7182
7375
|
CategoryEmumDto
|
|
7183
7376
|
).join(", ")}`
|
|
@@ -7197,46 +7390,46 @@ var ADMIN_ROLE_PATTERN = {
|
|
|
7197
7390
|
};
|
|
7198
7391
|
|
|
7199
7392
|
// src/modules/admin-role/dto/create-admin-role.dto.ts
|
|
7200
|
-
var
|
|
7393
|
+
var import_class_validator66 = require("class-validator");
|
|
7201
7394
|
var CreateAdminRoleDto = class {
|
|
7202
7395
|
};
|
|
7203
7396
|
__decorateClass([
|
|
7204
|
-
(0,
|
|
7205
|
-
(0,
|
|
7397
|
+
(0, import_class_validator66.IsNotEmpty)({ message: "Please enter admin role name." }),
|
|
7398
|
+
(0, import_class_validator66.IsString)({ message: "Role name must be a string." })
|
|
7206
7399
|
], CreateAdminRoleDto.prototype, "roleName", 2);
|
|
7207
7400
|
__decorateClass([
|
|
7208
|
-
(0,
|
|
7209
|
-
(0,
|
|
7401
|
+
(0, import_class_validator66.IsOptional)(),
|
|
7402
|
+
(0, import_class_validator66.IsString)({ message: "Role description must be a string." })
|
|
7210
7403
|
], CreateAdminRoleDto.prototype, "roleDescription", 2);
|
|
7211
7404
|
|
|
7212
7405
|
// src/modules/admin-role/dto/update-admin-role.dto.ts
|
|
7213
|
-
var
|
|
7406
|
+
var import_class_validator67 = require("class-validator");
|
|
7214
7407
|
var UpdateAdminRoleDto = class {
|
|
7215
7408
|
};
|
|
7216
7409
|
__decorateClass([
|
|
7217
|
-
(0,
|
|
7218
|
-
(0,
|
|
7410
|
+
(0, import_class_validator67.IsNotEmpty)({ message: "Please enter admin role name." }),
|
|
7411
|
+
(0, import_class_validator67.IsString)({ message: "Role name must be a string." })
|
|
7219
7412
|
], UpdateAdminRoleDto.prototype, "roleName", 2);
|
|
7220
7413
|
__decorateClass([
|
|
7221
|
-
(0,
|
|
7222
|
-
(0,
|
|
7414
|
+
(0, import_class_validator67.IsOptional)(),
|
|
7415
|
+
(0, import_class_validator67.IsString)({ message: "Role description must be a string." })
|
|
7223
7416
|
], UpdateAdminRoleDto.prototype, "roleDescription", 2);
|
|
7224
7417
|
__decorateClass([
|
|
7225
|
-
(0,
|
|
7226
|
-
(0,
|
|
7418
|
+
(0, import_class_validator67.IsOptional)(),
|
|
7419
|
+
(0, import_class_validator67.IsBoolean)({ message: "Is active must be a boolean value." })
|
|
7227
7420
|
], UpdateAdminRoleDto.prototype, "isActive", 2);
|
|
7228
7421
|
|
|
7229
7422
|
// src/modules/admin-role/dto/attach-permissions-to-role.dto.ts
|
|
7230
|
-
var
|
|
7423
|
+
var import_class_validator68 = require("class-validator");
|
|
7231
7424
|
var AttachPermissionsToRoleDto = class {
|
|
7232
7425
|
};
|
|
7233
7426
|
__decorateClass([
|
|
7234
|
-
(0,
|
|
7235
|
-
(0,
|
|
7427
|
+
(0, import_class_validator68.IsNotEmpty)({ message: "Please enter admin role ID." }),
|
|
7428
|
+
(0, import_class_validator68.IsString)({ message: "Role ID must be a string." })
|
|
7236
7429
|
], AttachPermissionsToRoleDto.prototype, "roleId", 2);
|
|
7237
7430
|
__decorateClass([
|
|
7238
|
-
(0,
|
|
7239
|
-
(0,
|
|
7431
|
+
(0, import_class_validator68.IsNotEmpty)({ message: "Please enter permission IDs." }),
|
|
7432
|
+
(0, import_class_validator68.IsString)({ message: "Permission IDs must be a comma-separated string." })
|
|
7240
7433
|
], AttachPermissionsToRoleDto.prototype, "permissionIds", 2);
|
|
7241
7434
|
|
|
7242
7435
|
// src/modules/admin-permission/pattern/pattern.ts
|
|
@@ -7262,8 +7455,8 @@ var CALENDLY_PATTERN = {
|
|
|
7262
7455
|
};
|
|
7263
7456
|
|
|
7264
7457
|
// src/modules/interview/dto/interview-invite.dto.ts
|
|
7265
|
-
var
|
|
7266
|
-
var
|
|
7458
|
+
var import_class_validator69 = require("class-validator");
|
|
7459
|
+
var import_class_transformer15 = require("class-transformer");
|
|
7267
7460
|
var CandidateType = /* @__PURE__ */ ((CandidateType2) => {
|
|
7268
7461
|
CandidateType2["SHORTLISTED"] = "SHORTLISTED";
|
|
7269
7462
|
CandidateType2["APPLICATNTS"] = "APPLICATNTS";
|
|
@@ -7274,107 +7467,107 @@ var CandidateType = /* @__PURE__ */ ((CandidateType2) => {
|
|
|
7274
7467
|
var ExistingCandidateDto = class {
|
|
7275
7468
|
};
|
|
7276
7469
|
__decorateClass([
|
|
7277
|
-
(0,
|
|
7470
|
+
(0, import_class_validator69.IsUUID)()
|
|
7278
7471
|
], ExistingCandidateDto.prototype, "id", 2);
|
|
7279
7472
|
__decorateClass([
|
|
7280
|
-
(0,
|
|
7473
|
+
(0, import_class_validator69.IsEnum)(CandidateType, {
|
|
7281
7474
|
message: "type must be one of SHORTLISTED, APPLICATNTS, or RECOMMENDED"
|
|
7282
7475
|
})
|
|
7283
7476
|
], ExistingCandidateDto.prototype, "type", 2);
|
|
7284
7477
|
var NewCandidateDto = class {
|
|
7285
7478
|
};
|
|
7286
7479
|
__decorateClass([
|
|
7287
|
-
(0,
|
|
7288
|
-
(0,
|
|
7480
|
+
(0, import_class_validator69.IsNotEmpty)({ message: "Please enter the candidate name" }),
|
|
7481
|
+
(0, import_class_validator69.IsString)({ message: "Name must be a string" })
|
|
7289
7482
|
], NewCandidateDto.prototype, "name", 2);
|
|
7290
7483
|
__decorateClass([
|
|
7291
|
-
(0,
|
|
7484
|
+
(0, import_class_validator69.IsEmail)({}, { message: "Please enter a valid email." })
|
|
7292
7485
|
], NewCandidateDto.prototype, "email", 2);
|
|
7293
7486
|
__decorateClass([
|
|
7294
|
-
(0,
|
|
7487
|
+
(0, import_class_validator69.IsEnum)(CandidateType, {
|
|
7295
7488
|
message: "type must be NEW"
|
|
7296
7489
|
})
|
|
7297
7490
|
], NewCandidateDto.prototype, "type", 2);
|
|
7298
7491
|
var CandidatesDto = class {
|
|
7299
7492
|
};
|
|
7300
7493
|
__decorateClass([
|
|
7301
|
-
(0,
|
|
7302
|
-
(0,
|
|
7303
|
-
(0,
|
|
7304
|
-
(0,
|
|
7305
|
-
(0,
|
|
7494
|
+
(0, import_class_validator69.ValidateIf)((o) => o.exixtingCandidates?.length > 0),
|
|
7495
|
+
(0, import_class_validator69.IsArray)({ message: "Existing candidates should be an array." }),
|
|
7496
|
+
(0, import_class_validator69.ArrayNotEmpty)({ message: "Please select at least one candidate." }),
|
|
7497
|
+
(0, import_class_validator69.ValidateNested)({ each: true }),
|
|
7498
|
+
(0, import_class_transformer15.Type)(() => ExistingCandidateDto)
|
|
7306
7499
|
], CandidatesDto.prototype, "exixtingCandidates", 2);
|
|
7307
7500
|
__decorateClass([
|
|
7308
|
-
(0,
|
|
7309
|
-
(0,
|
|
7310
|
-
(0,
|
|
7311
|
-
(0,
|
|
7312
|
-
(0,
|
|
7501
|
+
(0, import_class_validator69.ValidateIf)((o) => o.newCandidates?.length > 0),
|
|
7502
|
+
(0, import_class_validator69.IsArray)({ message: "New candidates should be an array." }),
|
|
7503
|
+
(0, import_class_validator69.ArrayNotEmpty)({ message: "Please add at least one candidate." }),
|
|
7504
|
+
(0, import_class_validator69.ValidateNested)({ each: true }),
|
|
7505
|
+
(0, import_class_transformer15.Type)(() => NewCandidateDto)
|
|
7313
7506
|
], CandidatesDto.prototype, "newCandidates", 2);
|
|
7314
7507
|
var InterviewInviteDto = class {
|
|
7315
7508
|
};
|
|
7316
7509
|
__decorateClass([
|
|
7317
|
-
(0,
|
|
7510
|
+
(0, import_class_validator69.IsUUID)()
|
|
7318
7511
|
], InterviewInviteDto.prototype, "jobId", 2);
|
|
7319
7512
|
__decorateClass([
|
|
7320
|
-
(0,
|
|
7321
|
-
(0,
|
|
7513
|
+
(0, import_class_validator69.ValidateNested)({ each: true }),
|
|
7514
|
+
(0, import_class_transformer15.Type)(() => CandidatesDto)
|
|
7322
7515
|
], InterviewInviteDto.prototype, "candidates", 2);
|
|
7323
7516
|
|
|
7324
7517
|
// src/modules/interview/dto/create-f2f-interview.dto.ts
|
|
7325
|
-
var
|
|
7518
|
+
var import_class_validator70 = require("class-validator");
|
|
7326
7519
|
var CreateF2FInterviewDto = class {
|
|
7327
7520
|
};
|
|
7328
7521
|
__decorateClass([
|
|
7329
|
-
(0,
|
|
7330
|
-
(0,
|
|
7522
|
+
(0, import_class_validator70.IsEmail)({}, { message: "Please enter a valid email address." }),
|
|
7523
|
+
(0, import_class_validator70.IsNotEmpty)({ message: "Invitee email is required." })
|
|
7331
7524
|
], CreateF2FInterviewDto.prototype, "inviteeEmail", 2);
|
|
7332
7525
|
__decorateClass([
|
|
7333
|
-
(0,
|
|
7334
|
-
(0,
|
|
7526
|
+
(0, import_class_validator70.IsString)({ message: "Invitee name must be a string." }),
|
|
7527
|
+
(0, import_class_validator70.IsNotEmpty)({ message: "Invitee name is required." })
|
|
7335
7528
|
], CreateF2FInterviewDto.prototype, "inviteeName", 2);
|
|
7336
7529
|
__decorateClass([
|
|
7337
|
-
(0,
|
|
7530
|
+
(0, import_class_validator70.IsNumber)({}, { message: "Interview ID must be a number." })
|
|
7338
7531
|
], CreateF2FInterviewDto.prototype, "interviewId", 2);
|
|
7339
7532
|
__decorateClass([
|
|
7340
|
-
(0,
|
|
7533
|
+
(0, import_class_validator70.IsNumber)({}, { message: "Candidate ID must be a number." })
|
|
7341
7534
|
], CreateF2FInterviewDto.prototype, "candidateId", 2);
|
|
7342
7535
|
|
|
7343
7536
|
// src/modules/interview/dto/create-f2f-interview-direct.dto.ts
|
|
7344
|
-
var
|
|
7537
|
+
var import_class_validator71 = require("class-validator");
|
|
7345
7538
|
var CreateF2FInterviewDirectDto = class {
|
|
7346
7539
|
};
|
|
7347
7540
|
__decorateClass([
|
|
7348
|
-
(0,
|
|
7349
|
-
(0,
|
|
7541
|
+
(0, import_class_validator71.IsEmail)({}, { message: "Please enter a valid email address." }),
|
|
7542
|
+
(0, import_class_validator71.IsNotEmpty)({ message: "Invitee email is required." })
|
|
7350
7543
|
], CreateF2FInterviewDirectDto.prototype, "inviteeEmail", 2);
|
|
7351
7544
|
__decorateClass([
|
|
7352
|
-
(0,
|
|
7353
|
-
(0,
|
|
7545
|
+
(0, import_class_validator71.IsString)({ message: "Invitee name must be a string." }),
|
|
7546
|
+
(0, import_class_validator71.IsNotEmpty)({ message: "Invitee name is required." })
|
|
7354
7547
|
], CreateF2FInterviewDirectDto.prototype, "inviteeName", 2);
|
|
7355
7548
|
__decorateClass([
|
|
7356
|
-
(0,
|
|
7549
|
+
(0, import_class_validator71.IsNumber)({}, { message: "Job ID must be a number." })
|
|
7357
7550
|
], CreateF2FInterviewDirectDto.prototype, "jobId", 2);
|
|
7358
7551
|
__decorateClass([
|
|
7359
|
-
(0,
|
|
7552
|
+
(0, import_class_validator71.IsNumber)({}, { message: "Candidate ID must be a number." })
|
|
7360
7553
|
], CreateF2FInterviewDirectDto.prototype, "candidateId", 2);
|
|
7361
7554
|
|
|
7362
7555
|
// src/modules/interview/dto/create-f2f-interview-reschedule-request.dto.ts
|
|
7363
|
-
var
|
|
7556
|
+
var import_class_validator72 = require("class-validator");
|
|
7364
7557
|
var CreateF2FInterviewRescheduleRequestDto = class {
|
|
7365
7558
|
};
|
|
7366
7559
|
__decorateClass([
|
|
7367
|
-
(0,
|
|
7560
|
+
(0, import_class_validator72.IsNotEmpty)({ message: "F2F Interview ID is required." })
|
|
7368
7561
|
], CreateF2FInterviewRescheduleRequestDto.prototype, "f2FInterviewId", 2);
|
|
7369
7562
|
__decorateClass([
|
|
7370
|
-
(0,
|
|
7563
|
+
(0, import_class_validator72.IsNotEmpty)({ message: "Rescheduled date is required." })
|
|
7371
7564
|
], CreateF2FInterviewRescheduleRequestDto.prototype, "rescheduledDate", 2);
|
|
7372
7565
|
__decorateClass([
|
|
7373
|
-
(0,
|
|
7374
|
-
(0,
|
|
7566
|
+
(0, import_class_validator72.IsString)({ message: "Rescheduled slot must be a string." }),
|
|
7567
|
+
(0, import_class_validator72.IsNotEmpty)({ message: "Rescheduled slot is required." })
|
|
7375
7568
|
], CreateF2FInterviewRescheduleRequestDto.prototype, "rescheduledSlot", 2);
|
|
7376
7569
|
__decorateClass([
|
|
7377
|
-
(0,
|
|
7570
|
+
(0, import_class_validator72.IsString)({ message: "Freelancer reason must be a string." })
|
|
7378
7571
|
], CreateF2FInterviewRescheduleRequestDto.prototype, "freelancerRequestReason", 2);
|
|
7379
7572
|
|
|
7380
7573
|
// src/modules/contract/pattern/pattern.ts
|
|
@@ -7398,43 +7591,43 @@ var CONTRACT_PATTERN = {
|
|
|
7398
7591
|
};
|
|
7399
7592
|
|
|
7400
7593
|
// src/modules/contract/dto/sign-contract-for-client.dto.ts
|
|
7401
|
-
var
|
|
7402
|
-
var
|
|
7594
|
+
var import_class_validator73 = require("class-validator");
|
|
7595
|
+
var import_class_transformer16 = require("class-transformer");
|
|
7403
7596
|
var SignContractForClientDto = class {
|
|
7404
7597
|
};
|
|
7405
7598
|
__decorateClass([
|
|
7406
|
-
(0,
|
|
7407
|
-
(0,
|
|
7408
|
-
(0,
|
|
7599
|
+
(0, import_class_validator73.IsNotEmpty)({ message: "Job Id is required." }),
|
|
7600
|
+
(0, import_class_transformer16.Type)(() => Number),
|
|
7601
|
+
(0, import_class_validator73.IsNumber)({}, { message: "Job ID must be a number." })
|
|
7409
7602
|
], SignContractForClientDto.prototype, "jobId", 2);
|
|
7410
7603
|
__decorateClass([
|
|
7411
|
-
(0,
|
|
7412
|
-
(0,
|
|
7413
|
-
(0,
|
|
7604
|
+
(0, import_class_validator73.IsNotEmpty)({ message: "Freelancer ID is required." }),
|
|
7605
|
+
(0, import_class_transformer16.Type)(() => Number),
|
|
7606
|
+
(0, import_class_validator73.IsNumber)({}, { message: "Freelancer ID must be a number." })
|
|
7414
7607
|
], SignContractForClientDto.prototype, "freelancerId", 2);
|
|
7415
7608
|
__decorateClass([
|
|
7416
|
-
(0,
|
|
7417
|
-
(0,
|
|
7609
|
+
(0, import_class_validator73.IsNotEmpty)({ message: "Contract type is required." }),
|
|
7610
|
+
(0, import_class_validator73.IsEnum)(ContractTypeEnum)
|
|
7418
7611
|
], SignContractForClientDto.prototype, "contractType", 2);
|
|
7419
7612
|
|
|
7420
7613
|
// src/modules/contract/dto/sign-contract-for-freelancer.dto.ts
|
|
7421
|
-
var
|
|
7422
|
-
var
|
|
7614
|
+
var import_class_validator74 = require("class-validator");
|
|
7615
|
+
var import_class_transformer17 = require("class-transformer");
|
|
7423
7616
|
var SignContractForFreelancerDto = class {
|
|
7424
7617
|
};
|
|
7425
7618
|
__decorateClass([
|
|
7426
|
-
(0,
|
|
7427
|
-
(0,
|
|
7428
|
-
(0,
|
|
7619
|
+
(0, import_class_validator74.IsNotEmpty)({ message: "Job Id is required." }),
|
|
7620
|
+
(0, import_class_transformer17.Type)(() => Number),
|
|
7621
|
+
(0, import_class_validator74.IsNumber)({}, { message: "Job ID must be a number." })
|
|
7429
7622
|
], SignContractForFreelancerDto.prototype, "jobId", 2);
|
|
7430
7623
|
__decorateClass([
|
|
7431
|
-
(0,
|
|
7432
|
-
(0,
|
|
7433
|
-
(0,
|
|
7624
|
+
(0, import_class_validator74.IsNotEmpty)({ message: "Client ID is required." }),
|
|
7625
|
+
(0, import_class_transformer17.Type)(() => Number),
|
|
7626
|
+
(0, import_class_validator74.IsNumber)({}, { message: "Client ID must be a number." })
|
|
7434
7627
|
], SignContractForFreelancerDto.prototype, "clientId", 2);
|
|
7435
7628
|
__decorateClass([
|
|
7436
|
-
(0,
|
|
7437
|
-
(0,
|
|
7629
|
+
(0, import_class_validator74.IsNotEmpty)({ message: "Contract type is required." }),
|
|
7630
|
+
(0, import_class_validator74.IsEnum)(ContractTypeEnum)
|
|
7438
7631
|
], SignContractForFreelancerDto.prototype, "contractType", 2);
|
|
7439
7632
|
|
|
7440
7633
|
// src/modules/stripe/pattern/pattern.ts
|
|
@@ -7452,11 +7645,11 @@ var STRIPE_PATTERN = {
|
|
|
7452
7645
|
};
|
|
7453
7646
|
|
|
7454
7647
|
// src/modules/stripe/dto/create-checkout-session.dto.ts
|
|
7455
|
-
var
|
|
7648
|
+
var import_class_validator75 = require("class-validator");
|
|
7456
7649
|
var CreateCheckoutSessionDto = class {
|
|
7457
7650
|
};
|
|
7458
7651
|
__decorateClass([
|
|
7459
|
-
(0,
|
|
7652
|
+
(0, import_class_validator75.IsNotEmpty)({ message: "Amount is required" })
|
|
7460
7653
|
], CreateCheckoutSessionDto.prototype, "amount", 2);
|
|
7461
7654
|
|
|
7462
7655
|
// src/modules/timesheet/pattern/pattern.ts
|
|
@@ -7477,99 +7670,99 @@ var TIMESHEET_CLIENT_PATTERN = {
|
|
|
7477
7670
|
};
|
|
7478
7671
|
|
|
7479
7672
|
// src/modules/timesheet/dto/create-freelancer-timesheet.dto.ts
|
|
7480
|
-
var
|
|
7673
|
+
var import_class_validator76 = require("class-validator");
|
|
7481
7674
|
var CreateFreelancerTimesheetDto = class {
|
|
7482
7675
|
};
|
|
7483
7676
|
__decorateClass([
|
|
7484
|
-
(0,
|
|
7485
|
-
(0,
|
|
7677
|
+
(0, import_class_validator76.IsNotEmpty)({ message: "Job id is required" }),
|
|
7678
|
+
(0, import_class_validator76.IsNumber)({}, { message: "Job id must be a number" })
|
|
7486
7679
|
], CreateFreelancerTimesheetDto.prototype, "jobId", 2);
|
|
7487
7680
|
__decorateClass([
|
|
7488
|
-
(0,
|
|
7489
|
-
(0,
|
|
7681
|
+
(0, import_class_validator76.IsNotEmpty)({ message: "start date is required" }),
|
|
7682
|
+
(0, import_class_validator76.IsDateString)()
|
|
7490
7683
|
], CreateFreelancerTimesheetDto.prototype, "startDate", 2);
|
|
7491
7684
|
__decorateClass([
|
|
7492
|
-
(0,
|
|
7493
|
-
(0,
|
|
7685
|
+
(0, import_class_validator76.IsNotEmpty)({ message: "end date is required" }),
|
|
7686
|
+
(0, import_class_validator76.IsDateString)()
|
|
7494
7687
|
], CreateFreelancerTimesheetDto.prototype, "endDate", 2);
|
|
7495
7688
|
__decorateClass([
|
|
7496
|
-
(0,
|
|
7497
|
-
(0,
|
|
7689
|
+
(0, import_class_validator76.IsNotEmpty)({ message: "start time is required" }),
|
|
7690
|
+
(0, import_class_validator76.Matches)(/^([01]\d|2[0-3]):([0-5]\d):([0-5]\d)$/, {
|
|
7498
7691
|
message: "startTime must be in HH:mm:ss format"
|
|
7499
7692
|
})
|
|
7500
7693
|
], CreateFreelancerTimesheetDto.prototype, "startTime", 2);
|
|
7501
7694
|
__decorateClass([
|
|
7502
|
-
(0,
|
|
7503
|
-
(0,
|
|
7695
|
+
(0, import_class_validator76.IsNotEmpty)({ message: "end time is required" }),
|
|
7696
|
+
(0, import_class_validator76.Matches)(/^([01]\d|2[0-3]):([0-5]\d):([0-5]\d)$/, {
|
|
7504
7697
|
message: "endTime must be in HH:mm:ss format"
|
|
7505
7698
|
})
|
|
7506
7699
|
], CreateFreelancerTimesheetDto.prototype, "endTime", 2);
|
|
7507
7700
|
__decorateClass([
|
|
7508
|
-
(0,
|
|
7509
|
-
(0,
|
|
7701
|
+
(0, import_class_validator76.IsOptional)(),
|
|
7702
|
+
(0, import_class_validator76.IsInt)()
|
|
7510
7703
|
], CreateFreelancerTimesheetDto.prototype, "taskId", 2);
|
|
7511
7704
|
__decorateClass([
|
|
7512
|
-
(0,
|
|
7513
|
-
(0,
|
|
7705
|
+
(0, import_class_validator76.IsOptional)(),
|
|
7706
|
+
(0, import_class_validator76.IsString)()
|
|
7514
7707
|
], CreateFreelancerTimesheetDto.prototype, "projectName", 2);
|
|
7515
7708
|
__decorateClass([
|
|
7516
|
-
(0,
|
|
7517
|
-
(0,
|
|
7709
|
+
(0, import_class_validator76.IsOptional)(),
|
|
7710
|
+
(0, import_class_validator76.IsString)()
|
|
7518
7711
|
], CreateFreelancerTimesheetDto.prototype, "deliverable", 2);
|
|
7519
7712
|
__decorateClass([
|
|
7520
|
-
(0,
|
|
7521
|
-
(0,
|
|
7713
|
+
(0, import_class_validator76.IsOptional)(),
|
|
7714
|
+
(0, import_class_validator76.IsString)()
|
|
7522
7715
|
], CreateFreelancerTimesheetDto.prototype, "taskName", 2);
|
|
7523
7716
|
__decorateClass([
|
|
7524
|
-
(0,
|
|
7717
|
+
(0, import_class_validator76.IsNotEmpty)({ message: "Description is required" })
|
|
7525
7718
|
], CreateFreelancerTimesheetDto.prototype, "description", 2);
|
|
7526
7719
|
|
|
7527
7720
|
// src/modules/timesheet/dto/update-freelancer-timesheet.dto.ts
|
|
7528
|
-
var
|
|
7721
|
+
var import_class_validator77 = require("class-validator");
|
|
7529
7722
|
var UpdateFreelancerTimesheetDto = class {
|
|
7530
7723
|
};
|
|
7531
7724
|
__decorateClass([
|
|
7532
|
-
(0,
|
|
7533
|
-
(0,
|
|
7725
|
+
(0, import_class_validator77.IsNotEmpty)({ message: "Job id is required" }),
|
|
7726
|
+
(0, import_class_validator77.IsNumber)({}, { message: "Job id must be a number" })
|
|
7534
7727
|
], UpdateFreelancerTimesheetDto.prototype, "jobId", 2);
|
|
7535
7728
|
__decorateClass([
|
|
7536
|
-
(0,
|
|
7537
|
-
(0,
|
|
7729
|
+
(0, import_class_validator77.IsNotEmpty)({ message: "start date is required" }),
|
|
7730
|
+
(0, import_class_validator77.IsDateString)()
|
|
7538
7731
|
], UpdateFreelancerTimesheetDto.prototype, "startDate", 2);
|
|
7539
7732
|
__decorateClass([
|
|
7540
|
-
(0,
|
|
7541
|
-
(0,
|
|
7733
|
+
(0, import_class_validator77.IsNotEmpty)({ message: "end date is required" }),
|
|
7734
|
+
(0, import_class_validator77.IsDateString)()
|
|
7542
7735
|
], UpdateFreelancerTimesheetDto.prototype, "endDate", 2);
|
|
7543
7736
|
__decorateClass([
|
|
7544
|
-
(0,
|
|
7545
|
-
(0,
|
|
7737
|
+
(0, import_class_validator77.IsNotEmpty)({ message: "start time is required" }),
|
|
7738
|
+
(0, import_class_validator77.Matches)(/^([01]\d|2[0-3]):([0-5]\d):([0-5]\d)$/, {
|
|
7546
7739
|
message: "startTime must be in HH:mm:ss format"
|
|
7547
7740
|
})
|
|
7548
7741
|
], UpdateFreelancerTimesheetDto.prototype, "startTime", 2);
|
|
7549
7742
|
__decorateClass([
|
|
7550
|
-
(0,
|
|
7551
|
-
(0,
|
|
7743
|
+
(0, import_class_validator77.IsNotEmpty)({ message: "end time is required" }),
|
|
7744
|
+
(0, import_class_validator77.Matches)(/^([01]\d|2[0-3]):([0-5]\d):([0-5]\d)$/, {
|
|
7552
7745
|
message: "endTime must be in HH:mm:ss format"
|
|
7553
7746
|
})
|
|
7554
7747
|
], UpdateFreelancerTimesheetDto.prototype, "endTime", 2);
|
|
7555
7748
|
__decorateClass([
|
|
7556
|
-
(0,
|
|
7557
|
-
(0,
|
|
7749
|
+
(0, import_class_validator77.IsOptional)(),
|
|
7750
|
+
(0, import_class_validator77.IsInt)()
|
|
7558
7751
|
], UpdateFreelancerTimesheetDto.prototype, "taskId", 2);
|
|
7559
7752
|
__decorateClass([
|
|
7560
|
-
(0,
|
|
7561
|
-
(0,
|
|
7753
|
+
(0, import_class_validator77.IsOptional)(),
|
|
7754
|
+
(0, import_class_validator77.IsString)()
|
|
7562
7755
|
], UpdateFreelancerTimesheetDto.prototype, "projectName", 2);
|
|
7563
7756
|
__decorateClass([
|
|
7564
|
-
(0,
|
|
7565
|
-
(0,
|
|
7757
|
+
(0, import_class_validator77.IsOptional)(),
|
|
7758
|
+
(0, import_class_validator77.IsString)()
|
|
7566
7759
|
], UpdateFreelancerTimesheetDto.prototype, "deliverable", 2);
|
|
7567
7760
|
__decorateClass([
|
|
7568
|
-
(0,
|
|
7569
|
-
(0,
|
|
7761
|
+
(0, import_class_validator77.IsOptional)(),
|
|
7762
|
+
(0, import_class_validator77.IsString)()
|
|
7570
7763
|
], UpdateFreelancerTimesheetDto.prototype, "taskName", 2);
|
|
7571
7764
|
__decorateClass([
|
|
7572
|
-
(0,
|
|
7765
|
+
(0, import_class_validator77.IsNotEmpty)({ message: "Description is required" })
|
|
7573
7766
|
], UpdateFreelancerTimesheetDto.prototype, "description", 2);
|
|
7574
7767
|
|
|
7575
7768
|
// src/modules/invoice/pattern/pattern.ts
|
|
@@ -7584,54 +7777,54 @@ var INVOICE_PATTERN = {
|
|
|
7584
7777
|
};
|
|
7585
7778
|
|
|
7586
7779
|
// src/modules/invoice/dto/update-invoice-status.dto.ts
|
|
7587
|
-
var
|
|
7780
|
+
var import_class_validator78 = require("class-validator");
|
|
7588
7781
|
var UpdateInvoiceStatusDto = class {
|
|
7589
7782
|
};
|
|
7590
7783
|
__decorateClass([
|
|
7591
|
-
(0,
|
|
7592
|
-
(0,
|
|
7784
|
+
(0, import_class_validator78.IsNotEmpty)({ message: "Please provide invoice status." }),
|
|
7785
|
+
(0, import_class_validator78.IsEnum)(InvoiceStatusEnum, {
|
|
7593
7786
|
message: "Status must be one of: APPROVED, REJECTED"
|
|
7594
7787
|
})
|
|
7595
7788
|
], UpdateInvoiceStatusDto.prototype, "status", 2);
|
|
7596
7789
|
|
|
7597
7790
|
// src/modules/dispute/dto/create-dispute.dto.ts
|
|
7598
|
-
var
|
|
7599
|
-
var
|
|
7791
|
+
var import_class_validator79 = require("class-validator");
|
|
7792
|
+
var import_class_transformer18 = require("class-transformer");
|
|
7600
7793
|
var CreateDisputeDto = class {
|
|
7601
7794
|
};
|
|
7602
7795
|
__decorateClass([
|
|
7603
|
-
(0,
|
|
7604
|
-
(0,
|
|
7605
|
-
(0,
|
|
7796
|
+
(0, import_class_validator79.ValidateIf)((o) => o.initiatorType === "FREELANCER" /* FREELANCER */),
|
|
7797
|
+
(0, import_class_validator79.IsNumber)({}, { message: "Client id must be a number" }),
|
|
7798
|
+
(0, import_class_transformer18.Type)(() => Number)
|
|
7606
7799
|
], CreateDisputeDto.prototype, "clientId", 2);
|
|
7607
7800
|
__decorateClass([
|
|
7608
|
-
(0,
|
|
7609
|
-
(0,
|
|
7610
|
-
(0,
|
|
7801
|
+
(0, import_class_validator79.ValidateIf)((o) => o.initiatorType === "CLIENT" /* CLIENT */),
|
|
7802
|
+
(0, import_class_validator79.IsNumber)({}, { message: "Freelancer id must be a number" }),
|
|
7803
|
+
(0, import_class_transformer18.Type)(() => Number)
|
|
7611
7804
|
], CreateDisputeDto.prototype, "freelancerId", 2);
|
|
7612
7805
|
__decorateClass([
|
|
7613
|
-
(0,
|
|
7614
|
-
(0,
|
|
7615
|
-
(0,
|
|
7806
|
+
(0, import_class_validator79.IsNotEmpty)({ message: "Please select dispute type." }),
|
|
7807
|
+
(0, import_class_validator79.IsString)(),
|
|
7808
|
+
(0, import_class_validator79.IsIn)(["JOB", "INVOICE"])
|
|
7616
7809
|
], CreateDisputeDto.prototype, "disputeType", 2);
|
|
7617
7810
|
__decorateClass([
|
|
7618
|
-
(0,
|
|
7619
|
-
(0,
|
|
7811
|
+
(0, import_class_validator79.IsNotEmpty)({ message: "Please provide initiator type." }),
|
|
7812
|
+
(0, import_class_validator79.IsString)()
|
|
7620
7813
|
], CreateDisputeDto.prototype, "initiatorType", 2);
|
|
7621
7814
|
__decorateClass([
|
|
7622
|
-
(0,
|
|
7623
|
-
(0,
|
|
7624
|
-
(0,
|
|
7815
|
+
(0, import_class_validator79.IsNotEmpty)({ message: "Please enter description." }),
|
|
7816
|
+
(0, import_class_validator79.IsString)({ message: "Description must be a string" }),
|
|
7817
|
+
(0, import_class_validator79.MaxLength)(500, { message: "Description must not exceed 500 characters" })
|
|
7625
7818
|
], CreateDisputeDto.prototype, "description", 2);
|
|
7626
7819
|
__decorateClass([
|
|
7627
|
-
(0,
|
|
7628
|
-
(0,
|
|
7629
|
-
(0,
|
|
7820
|
+
(0, import_class_validator79.IsOptional)(),
|
|
7821
|
+
(0, import_class_validator79.IsString)({ message: "Comment must be a string" }),
|
|
7822
|
+
(0, import_class_validator79.MaxLength)(500, { message: "Comment must not exceed 500 characters" })
|
|
7630
7823
|
], CreateDisputeDto.prototype, "comment", 2);
|
|
7631
7824
|
__decorateClass([
|
|
7632
|
-
(0,
|
|
7633
|
-
(0,
|
|
7634
|
-
(0,
|
|
7825
|
+
(0, import_class_validator79.IsOptional)(),
|
|
7826
|
+
(0, import_class_validator79.IsObject)({ message: "Dynamic fields must be a valid object" }),
|
|
7827
|
+
(0, import_class_transformer18.Transform)(({ value }) => {
|
|
7635
7828
|
if (typeof value === "string") {
|
|
7636
7829
|
try {
|
|
7637
7830
|
return JSON.parse(value);
|
|
@@ -7644,14 +7837,14 @@ __decorateClass([
|
|
|
7644
7837
|
], CreateDisputeDto.prototype, "dynamicFields", 2);
|
|
7645
7838
|
|
|
7646
7839
|
// src/modules/senseloaf/dto/ai-interview-question-generate.dto.ts
|
|
7647
|
-
var
|
|
7840
|
+
var import_class_validator80 = require("class-validator");
|
|
7648
7841
|
var AiInterviewQuestionGenerateDto = class {
|
|
7649
7842
|
};
|
|
7650
7843
|
__decorateClass([
|
|
7651
|
-
(0,
|
|
7844
|
+
(0, import_class_validator80.IsNotEmpty)({ message: "Please enter job description." })
|
|
7652
7845
|
], AiInterviewQuestionGenerateDto.prototype, "jobDescription", 2);
|
|
7653
7846
|
__decorateClass([
|
|
7654
|
-
(0,
|
|
7847
|
+
(0, import_class_validator80.IsNotEmpty)({ message: "Please enter number of questions." })
|
|
7655
7848
|
], AiInterviewQuestionGenerateDto.prototype, "numQuestions", 2);
|
|
7656
7849
|
|
|
7657
7850
|
// src/adapters/tcp/user.tcp.adapter.ts
|
|
@@ -8654,6 +8847,7 @@ RecommendationWeightageConfig = __decorateClass([
|
|
|
8654
8847
|
AccountStatus,
|
|
8655
8848
|
AccountType,
|
|
8656
8849
|
AdminCreateJobInformationDto,
|
|
8850
|
+
AdminJobBasicInformationV2Dto,
|
|
8657
8851
|
AdminPermission,
|
|
8658
8852
|
AdminRole,
|
|
8659
8853
|
AdminRolePermission,
|
|
@@ -8816,6 +9010,7 @@ RecommendationWeightageConfig = __decorateClass([
|
|
|
8816
9010
|
JobFreelancerRecommendationV2,
|
|
8817
9011
|
JobIdParamDto,
|
|
8818
9012
|
JobLocation,
|
|
9013
|
+
JobLocationAdminDto,
|
|
8819
9014
|
JobLocationDto,
|
|
8820
9015
|
JobLocationEnum,
|
|
8821
9016
|
JobLocationEnumDto,
|