@experts_hub/shared 1.0.684 → 1.0.686
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/index.d.ts +2 -0
- package/dist/entities/task-query-message.entity.d.ts +16 -0
- package/dist/entities/task-query.entity.d.ts +37 -0
- package/dist/entities/task.entity.d.ts +1 -0
- package/dist/entities/user.entity.d.ts +5 -0
- package/dist/index.d.mts +152 -1
- package/dist/index.d.ts +152 -1
- package/dist/index.js +798 -335
- package/dist/index.mjs +734 -271
- package/dist/modules/index.d.ts +1 -0
- package/dist/modules/task/dto/add-client-remark.dto.d.ts +3 -0
- package/dist/modules/task/dto/create-task.dto.d.ts +35 -0
- package/dist/modules/task/dto/index.d.ts +6 -0
- package/dist/modules/task/dto/mark-task-as-completed.dto.d.ts +3 -0
- package/dist/modules/task/dto/task-uuid-param.dto.d.ts +3 -0
- package/dist/modules/task/dto/update-estimate-time.dto.d.ts +4 -0
- package/dist/modules/task/dto/update-task.dto.d.ts +35 -0
- package/dist/modules/task/index.d.ts +2 -0
- package/dist/modules/task/pattern/pattern.d.ts +11 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -46,6 +46,7 @@ __export(index_exports, {
|
|
|
46
46
|
AUTHENTICATION_PATTERN: () => AUTHENTICATION_PATTERN,
|
|
47
47
|
AccountStatus: () => AccountStatus,
|
|
48
48
|
AccountType: () => AccountType2,
|
|
49
|
+
AddClientRemarkDto: () => AddClientRemarkDto,
|
|
49
50
|
AddGlobalSettingDto: () => AddGlobalSettingDto,
|
|
50
51
|
AddTopupEscrowAmountDto: () => AddTopupEscrowAmountDto,
|
|
51
52
|
AdminCreateJobInformationDto: () => AdminCreateJobInformationDto,
|
|
@@ -163,6 +164,7 @@ __export(index_exports, {
|
|
|
163
164
|
CreateQuestionDto: () => CreateQuestionDto,
|
|
164
165
|
CreateRatingDto: () => CreateRatingDto,
|
|
165
166
|
CreateSubAdminDto: () => CreateSubAdminDto,
|
|
167
|
+
CreateTaskDto: () => CreateTaskDto,
|
|
166
168
|
CreateUserSigningDto: () => CreateUserSigningDto,
|
|
167
169
|
CustomQuestionItemDto: () => CustomQuestionItemDto,
|
|
168
170
|
DISPUTE_PATTERN: () => DISPUTE_PATTERN,
|
|
@@ -303,6 +305,7 @@ __export(index_exports, {
|
|
|
303
305
|
MAINTENANCE_PATTERN: () => MAINTENANCE_PATTERN,
|
|
304
306
|
MarkCandidateStatusBulkDto: () => MarkCandidateStatusBulkDto,
|
|
305
307
|
MarkCandidateStatusDto: () => MarkCandidateStatusDto,
|
|
308
|
+
MarkTaskAsCompletedDto: () => MarkTaskAsCompletedDto,
|
|
306
309
|
McqStatusEnum: () => McqStatusEnum,
|
|
307
310
|
ModeOfHire: () => ModeOfHire,
|
|
308
311
|
ModeOfWork: () => ModeOfWork,
|
|
@@ -392,6 +395,7 @@ __export(index_exports, {
|
|
|
392
395
|
SubscriptionFeature: () => SubscriptionFeature,
|
|
393
396
|
SystemPreference: () => SystemPreference,
|
|
394
397
|
SystemPreferenceDto: () => SystemPreferenceDto,
|
|
398
|
+
TASK_PATTERN: () => TASK_PATTERN,
|
|
395
399
|
TIMESHEET_CLIENT_PATTERN: () => TIMESHEET_CLIENT_PATTERN,
|
|
396
400
|
TIMESHEET_FREELANCER_PATTERN: () => TIMESHEET_FREELANCER_PATTERN,
|
|
397
401
|
Task: () => Task,
|
|
@@ -399,11 +403,17 @@ __export(index_exports, {
|
|
|
399
403
|
TaskDeliverable: () => TaskDeliverable,
|
|
400
404
|
TaskDeliverableTypeEnum: () => TaskDeliverableTypeEnum,
|
|
401
405
|
TaskPriorityEnum: () => TaskPriorityEnum,
|
|
406
|
+
TaskQuery: () => TaskQuery,
|
|
407
|
+
TaskQueryCategoryEnum: () => TaskQueryCategoryEnum,
|
|
408
|
+
TaskQueryMessage: () => TaskQueryMessage,
|
|
409
|
+
TaskQueryStatusEnum: () => TaskQueryStatusEnum,
|
|
410
|
+
TaskQueryUserTypeEnum: () => TaskQueryUserTypeEnum,
|
|
402
411
|
TaskResource: () => TaskResource,
|
|
403
412
|
TaskResourceTypeEnum: () => TaskResourceTypeEnum,
|
|
404
413
|
TaskStatusEnum: () => TaskStatusEnum,
|
|
405
414
|
TaskSubtask: () => TaskSubtask,
|
|
406
415
|
TaskSubtaskStatusEnum: () => TaskSubtaskStatusEnum,
|
|
416
|
+
TaskUuidParamDto: () => TaskUuidParamDto,
|
|
407
417
|
TestNotificationDto: () => TestNotificationDto,
|
|
408
418
|
Timesheet: () => Timesheet,
|
|
409
419
|
TimesheetLine: () => TimesheetLine,
|
|
@@ -430,6 +440,7 @@ __export(index_exports, {
|
|
|
430
440
|
UpdateCompanyMemberDto: () => UpdateCompanyMemberDto,
|
|
431
441
|
UpdateCompanyProfileDto: () => UpdateCompanyProfileDto,
|
|
432
442
|
UpdateCompanyRoleDto: () => UpdateCompanyRoleDto,
|
|
443
|
+
UpdateEstimateTimeDto: () => UpdateEstimateTimeDto,
|
|
433
444
|
UpdateFreelancerDto: () => UpdateFreelancerDto,
|
|
434
445
|
UpdateFreelancerProfileDto: () => UpdateFreelancerProfileDto,
|
|
435
446
|
UpdateFreelancerTimesheetDto: () => UpdateFreelancerTimesheetDto,
|
|
@@ -440,6 +451,7 @@ __export(index_exports, {
|
|
|
440
451
|
UpdateIsReadDto: () => UpdateIsReadDto,
|
|
441
452
|
UpdateSubAdminAccountStatusDto: () => UpdateSubAdminAccountStatusDto,
|
|
442
453
|
UpdateSubAdminDto: () => UpdateSubAdminDto,
|
|
454
|
+
UpdateTaskDto: () => UpdateTaskDto,
|
|
443
455
|
User: () => User,
|
|
444
456
|
UserRMQAdapter: () => UserRMQAdapter,
|
|
445
457
|
UserTCPAdapter: () => UserTCPAdapter,
|
|
@@ -1384,7 +1396,7 @@ __decorateClass([
|
|
|
1384
1396
|
var import_class_validator37 = require("class-validator");
|
|
1385
1397
|
|
|
1386
1398
|
// src/entities/user.entity.ts
|
|
1387
|
-
var
|
|
1399
|
+
var import_typeorm74 = require("typeorm");
|
|
1388
1400
|
|
|
1389
1401
|
// src/entities/base.entity.ts
|
|
1390
1402
|
var import_typeorm = require("typeorm");
|
|
@@ -4212,6 +4224,7 @@ var TaskStatusEnum = /* @__PURE__ */ ((TaskStatusEnum2) => {
|
|
|
4212
4224
|
TaskStatusEnum2["DRAFTED"] = "DRAFTED";
|
|
4213
4225
|
TaskStatusEnum2["SCHEDULED"] = "SCHEDULED";
|
|
4214
4226
|
TaskStatusEnum2["IN_PROGRESS"] = "IN_PROGRESS";
|
|
4227
|
+
TaskStatusEnum2["SUBMITTED"] = "SUBMITTED";
|
|
4215
4228
|
TaskStatusEnum2["COMPLETED"] = "COMPLETED";
|
|
4216
4229
|
TaskStatusEnum2["CANCELLED"] = "CANCELLED";
|
|
4217
4230
|
return TaskStatusEnum2;
|
|
@@ -6206,6 +6219,164 @@ InAppNotification = __decorateClass([
|
|
|
6206
6219
|
(0, import_typeorm71.Entity)("in_app_notifications")
|
|
6207
6220
|
], InAppNotification);
|
|
6208
6221
|
|
|
6222
|
+
// src/entities/task-query.entity.ts
|
|
6223
|
+
var import_typeorm73 = require("typeorm");
|
|
6224
|
+
|
|
6225
|
+
// src/entities/task-query-message.entity.ts
|
|
6226
|
+
var import_typeorm72 = require("typeorm");
|
|
6227
|
+
var TaskQueryMessage = class extends BaseEntity {
|
|
6228
|
+
};
|
|
6229
|
+
__decorateClass([
|
|
6230
|
+
(0, import_typeorm72.Column)({ name: "task_query_id", type: "integer" }),
|
|
6231
|
+
(0, import_typeorm72.Index)()
|
|
6232
|
+
], TaskQueryMessage.prototype, "taskQueryId", 2);
|
|
6233
|
+
__decorateClass([
|
|
6234
|
+
(0, import_typeorm72.ManyToOne)(() => TaskQuery, (taskQuery) => taskQuery.messages),
|
|
6235
|
+
(0, import_typeorm72.JoinColumn)({ name: "task_query_id" })
|
|
6236
|
+
], TaskQueryMessage.prototype, "taskQuery", 2);
|
|
6237
|
+
__decorateClass([
|
|
6238
|
+
(0, import_typeorm72.Column)({ name: "sender_user_id", type: "integer" }),
|
|
6239
|
+
(0, import_typeorm72.Index)()
|
|
6240
|
+
], TaskQueryMessage.prototype, "senderUserId", 2);
|
|
6241
|
+
__decorateClass([
|
|
6242
|
+
(0, import_typeorm72.ManyToOne)(() => User, (user) => user.taskQueryMessages),
|
|
6243
|
+
(0, import_typeorm72.JoinColumn)({ name: "sender_user_id" })
|
|
6244
|
+
], TaskQueryMessage.prototype, "senderUser", 2);
|
|
6245
|
+
__decorateClass([
|
|
6246
|
+
(0, import_typeorm72.Column)({
|
|
6247
|
+
name: "sender_type",
|
|
6248
|
+
type: "enum",
|
|
6249
|
+
enum: TaskQueryUserTypeEnum
|
|
6250
|
+
})
|
|
6251
|
+
], TaskQueryMessage.prototype, "senderType", 2);
|
|
6252
|
+
__decorateClass([
|
|
6253
|
+
(0, import_typeorm72.Column)({ name: "message", type: "varchar", nullable: true })
|
|
6254
|
+
], TaskQueryMessage.prototype, "message", 2);
|
|
6255
|
+
__decorateClass([
|
|
6256
|
+
(0, import_typeorm72.Column)({ name: "attachment_url", type: "varchar", nullable: true })
|
|
6257
|
+
], TaskQueryMessage.prototype, "attachmentUrl", 2);
|
|
6258
|
+
__decorateClass([
|
|
6259
|
+
(0, import_typeorm72.Column)({ name: "attachment_type", type: "varchar", nullable: true })
|
|
6260
|
+
], TaskQueryMessage.prototype, "attachmentType", 2);
|
|
6261
|
+
__decorateClass([
|
|
6262
|
+
(0, import_typeorm72.Column)({ name: "meta", type: "jsonb", nullable: true })
|
|
6263
|
+
], TaskQueryMessage.prototype, "meta", 2);
|
|
6264
|
+
__decorateClass([
|
|
6265
|
+
(0, import_typeorm72.Column)({ name: "is_read", type: "boolean", default: false })
|
|
6266
|
+
], TaskQueryMessage.prototype, "isRead", 2);
|
|
6267
|
+
__decorateClass([
|
|
6268
|
+
(0, import_typeorm72.Column)({
|
|
6269
|
+
name: "read_at",
|
|
6270
|
+
type: "timestamp with time zone",
|
|
6271
|
+
nullable: true
|
|
6272
|
+
})
|
|
6273
|
+
], TaskQueryMessage.prototype, "readAt", 2);
|
|
6274
|
+
TaskQueryMessage = __decorateClass([
|
|
6275
|
+
(0, import_typeorm72.Entity)("task_query_messages")
|
|
6276
|
+
], TaskQueryMessage);
|
|
6277
|
+
|
|
6278
|
+
// src/entities/task-query.entity.ts
|
|
6279
|
+
var TaskQueryUserTypeEnum = /* @__PURE__ */ ((TaskQueryUserTypeEnum2) => {
|
|
6280
|
+
TaskQueryUserTypeEnum2["CLIENT"] = "CLIENT";
|
|
6281
|
+
TaskQueryUserTypeEnum2["FREELANCER"] = "FREELANCER";
|
|
6282
|
+
return TaskQueryUserTypeEnum2;
|
|
6283
|
+
})(TaskQueryUserTypeEnum || {});
|
|
6284
|
+
var TaskQueryCategoryEnum = /* @__PURE__ */ ((TaskQueryCategoryEnum2) => {
|
|
6285
|
+
TaskQueryCategoryEnum2["DEVELOPMENT_ISSUE"] = "DEVELOPMENT_ISSUE";
|
|
6286
|
+
TaskQueryCategoryEnum2["TESTING_ISSUE"] = "TESTING_ISSUE";
|
|
6287
|
+
TaskQueryCategoryEnum2["OTHER"] = "OTHER";
|
|
6288
|
+
return TaskQueryCategoryEnum2;
|
|
6289
|
+
})(TaskQueryCategoryEnum || {});
|
|
6290
|
+
var TaskQueryStatusEnum = /* @__PURE__ */ ((TaskQueryStatusEnum2) => {
|
|
6291
|
+
TaskQueryStatusEnum2["OPEN"] = "OPEN";
|
|
6292
|
+
TaskQueryStatusEnum2["ANSWERED"] = "ANSWERED";
|
|
6293
|
+
TaskQueryStatusEnum2["CLOSED"] = "CLOSED";
|
|
6294
|
+
return TaskQueryStatusEnum2;
|
|
6295
|
+
})(TaskQueryStatusEnum || {});
|
|
6296
|
+
var TaskQuery = class extends BaseEntity {
|
|
6297
|
+
};
|
|
6298
|
+
__decorateClass([
|
|
6299
|
+
(0, import_typeorm73.Column)({ name: "task_id", type: "integer" }),
|
|
6300
|
+
(0, import_typeorm73.Index)()
|
|
6301
|
+
], TaskQuery.prototype, "taskId", 2);
|
|
6302
|
+
__decorateClass([
|
|
6303
|
+
(0, import_typeorm73.ManyToOne)(() => Task),
|
|
6304
|
+
(0, import_typeorm73.JoinColumn)({ name: "task_id" })
|
|
6305
|
+
], TaskQuery.prototype, "task", 2);
|
|
6306
|
+
__decorateClass([
|
|
6307
|
+
(0, import_typeorm73.Column)({ name: "raised_by_user_id", type: "integer" }),
|
|
6308
|
+
(0, import_typeorm73.Index)()
|
|
6309
|
+
], TaskQuery.prototype, "raisedByUserId", 2);
|
|
6310
|
+
__decorateClass([
|
|
6311
|
+
(0, import_typeorm73.ManyToOne)(() => User, (user) => user.raisedTaskQueries),
|
|
6312
|
+
(0, import_typeorm73.JoinColumn)({ name: "raised_by_user_id" })
|
|
6313
|
+
], TaskQuery.prototype, "raisedByUser", 2);
|
|
6314
|
+
__decorateClass([
|
|
6315
|
+
(0, import_typeorm73.Column)({
|
|
6316
|
+
name: "raised_by_type",
|
|
6317
|
+
type: "enum",
|
|
6318
|
+
enum: TaskQueryUserTypeEnum
|
|
6319
|
+
})
|
|
6320
|
+
], TaskQuery.prototype, "raisedByType", 2);
|
|
6321
|
+
__decorateClass([
|
|
6322
|
+
(0, import_typeorm73.Column)({ name: "assigned_to_user_id", type: "integer" }),
|
|
6323
|
+
(0, import_typeorm73.Index)()
|
|
6324
|
+
], TaskQuery.prototype, "assignedToUserId", 2);
|
|
6325
|
+
__decorateClass([
|
|
6326
|
+
(0, import_typeorm73.ManyToOne)(() => User, (user) => user.assignedTaskQueries),
|
|
6327
|
+
(0, import_typeorm73.JoinColumn)({ name: "assigned_to_user_id" })
|
|
6328
|
+
], TaskQuery.prototype, "assignedToUser", 2);
|
|
6329
|
+
__decorateClass([
|
|
6330
|
+
(0, import_typeorm73.Column)({
|
|
6331
|
+
name: "assigned_to_type",
|
|
6332
|
+
type: "enum",
|
|
6333
|
+
enum: TaskQueryUserTypeEnum
|
|
6334
|
+
})
|
|
6335
|
+
], TaskQuery.prototype, "assignedToType", 2);
|
|
6336
|
+
__decorateClass([
|
|
6337
|
+
(0, import_typeorm73.Column)({
|
|
6338
|
+
name: "query_category",
|
|
6339
|
+
type: "enum",
|
|
6340
|
+
enum: TaskQueryCategoryEnum
|
|
6341
|
+
})
|
|
6342
|
+
], TaskQuery.prototype, "queryCategory", 2);
|
|
6343
|
+
__decorateClass([
|
|
6344
|
+
(0, import_typeorm73.Column)({ name: "subject", type: "varchar", nullable: true })
|
|
6345
|
+
], TaskQuery.prototype, "subject", 2);
|
|
6346
|
+
__decorateClass([
|
|
6347
|
+
(0, import_typeorm73.Column)({ name: "description", type: "varchar", nullable: true })
|
|
6348
|
+
], TaskQuery.prototype, "description", 2);
|
|
6349
|
+
__decorateClass([
|
|
6350
|
+
(0, import_typeorm73.Column)({
|
|
6351
|
+
name: "status",
|
|
6352
|
+
type: "enum",
|
|
6353
|
+
enum: TaskQueryStatusEnum,
|
|
6354
|
+
default: "OPEN" /* OPEN */
|
|
6355
|
+
})
|
|
6356
|
+
], TaskQuery.prototype, "status", 2);
|
|
6357
|
+
__decorateClass([
|
|
6358
|
+
(0, import_typeorm73.Column)({
|
|
6359
|
+
name: "last_message_at",
|
|
6360
|
+
type: "timestamp with time zone",
|
|
6361
|
+
nullable: true
|
|
6362
|
+
})
|
|
6363
|
+
], TaskQuery.prototype, "lastMessageAt", 2);
|
|
6364
|
+
__decorateClass([
|
|
6365
|
+
(0, import_typeorm73.Column)({ name: "last_message_preview", type: "varchar", nullable: true })
|
|
6366
|
+
], TaskQuery.prototype, "lastMessagePreview", 2);
|
|
6367
|
+
__decorateClass([
|
|
6368
|
+
(0, import_typeorm73.Column)({ name: "unread_count_client", type: "integer", default: 0 })
|
|
6369
|
+
], TaskQuery.prototype, "unreadCountClient", 2);
|
|
6370
|
+
__decorateClass([
|
|
6371
|
+
(0, import_typeorm73.Column)({ name: "unread_count_freelancer", type: "integer", default: 0 })
|
|
6372
|
+
], TaskQuery.prototype, "unreadCountFreelancer", 2);
|
|
6373
|
+
__decorateClass([
|
|
6374
|
+
(0, import_typeorm73.OneToMany)(() => TaskQueryMessage, (message) => message.taskQuery, { cascade: true })
|
|
6375
|
+
], TaskQuery.prototype, "messages", 2);
|
|
6376
|
+
TaskQuery = __decorateClass([
|
|
6377
|
+
(0, import_typeorm73.Entity)("task_queries")
|
|
6378
|
+
], TaskQuery);
|
|
6379
|
+
|
|
6209
6380
|
// src/entities/user.entity.ts
|
|
6210
6381
|
var AccountType2 = /* @__PURE__ */ ((AccountType4) => {
|
|
6211
6382
|
AccountType4["SUPER_ADMIN"] = "SUPER_ADMIN";
|
|
@@ -6232,51 +6403,51 @@ var Provider = /* @__PURE__ */ ((Provider2) => {
|
|
|
6232
6403
|
var User = class extends BaseEntity {
|
|
6233
6404
|
};
|
|
6234
6405
|
__decorateClass([
|
|
6235
|
-
(0,
|
|
6406
|
+
(0, import_typeorm74.Column)({ name: "unique_id", type: "varchar", unique: true })
|
|
6236
6407
|
], User.prototype, "uniqueId", 2);
|
|
6237
6408
|
__decorateClass([
|
|
6238
|
-
(0,
|
|
6239
|
-
(0,
|
|
6409
|
+
(0, import_typeorm74.Column)({ name: "parent_id", type: "integer", nullable: true }),
|
|
6410
|
+
(0, import_typeorm74.Index)()
|
|
6240
6411
|
], User.prototype, "parentId", 2);
|
|
6241
6412
|
__decorateClass([
|
|
6242
|
-
(0,
|
|
6243
|
-
(0,
|
|
6413
|
+
(0, import_typeorm74.ManyToOne)(() => User, (user) => user.children, { nullable: true }),
|
|
6414
|
+
(0, import_typeorm74.JoinColumn)({ name: "parent_id" })
|
|
6244
6415
|
], User.prototype, "parent", 2);
|
|
6245
6416
|
__decorateClass([
|
|
6246
|
-
(0,
|
|
6417
|
+
(0, import_typeorm74.OneToMany)(() => User, (user) => user.parent)
|
|
6247
6418
|
], User.prototype, "children", 2);
|
|
6248
6419
|
__decorateClass([
|
|
6249
|
-
(0,
|
|
6420
|
+
(0, import_typeorm74.Column)({ name: "username", type: "varchar", unique: true, nullable: true })
|
|
6250
6421
|
], User.prototype, "username", 2);
|
|
6251
6422
|
__decorateClass([
|
|
6252
|
-
(0,
|
|
6423
|
+
(0, import_typeorm74.Column)({ name: "first_name", type: "varchar", length: 100, nullable: true })
|
|
6253
6424
|
], User.prototype, "firstName", 2);
|
|
6254
6425
|
__decorateClass([
|
|
6255
|
-
(0,
|
|
6426
|
+
(0, import_typeorm74.Column)({ name: "last_name", type: "varchar", length: 100, nullable: true })
|
|
6256
6427
|
], User.prototype, "lastName", 2);
|
|
6257
6428
|
__decorateClass([
|
|
6258
|
-
(0,
|
|
6429
|
+
(0, import_typeorm74.Column)({ name: "date_of_birth", type: "date", nullable: true })
|
|
6259
6430
|
], User.prototype, "dateOfBirth", 2);
|
|
6260
6431
|
__decorateClass([
|
|
6261
|
-
(0,
|
|
6432
|
+
(0, import_typeorm74.Column)({ name: "gender", type: "varchar", length: 10, nullable: true })
|
|
6262
6433
|
], User.prototype, "gender", 2);
|
|
6263
6434
|
__decorateClass([
|
|
6264
|
-
(0,
|
|
6435
|
+
(0, import_typeorm74.Column)({ name: "profile_picture_url", type: "text", nullable: true })
|
|
6265
6436
|
], User.prototype, "profilePictureUrl", 2);
|
|
6266
6437
|
__decorateClass([
|
|
6267
|
-
(0,
|
|
6438
|
+
(0, import_typeorm74.Column)({ name: "email", type: "varchar", unique: true })
|
|
6268
6439
|
], User.prototype, "email", 2);
|
|
6269
6440
|
__decorateClass([
|
|
6270
|
-
(0,
|
|
6441
|
+
(0, import_typeorm74.Column)({ name: "mobile_code", type: "varchar", nullable: true })
|
|
6271
6442
|
], User.prototype, "mobileCode", 2);
|
|
6272
6443
|
__decorateClass([
|
|
6273
|
-
(0,
|
|
6444
|
+
(0, import_typeorm74.Column)({ name: "mobile", type: "varchar", nullable: true })
|
|
6274
6445
|
], User.prototype, "mobile", 2);
|
|
6275
6446
|
__decorateClass([
|
|
6276
|
-
(0,
|
|
6447
|
+
(0, import_typeorm74.Column)({ name: "password", type: "varchar", nullable: true })
|
|
6277
6448
|
], User.prototype, "password", 2);
|
|
6278
6449
|
__decorateClass([
|
|
6279
|
-
(0,
|
|
6450
|
+
(0, import_typeorm74.Column)({
|
|
6280
6451
|
name: "account_type",
|
|
6281
6452
|
type: "enum",
|
|
6282
6453
|
enum: AccountType2,
|
|
@@ -6284,7 +6455,7 @@ __decorateClass([
|
|
|
6284
6455
|
})
|
|
6285
6456
|
], User.prototype, "accountType", 2);
|
|
6286
6457
|
__decorateClass([
|
|
6287
|
-
(0,
|
|
6458
|
+
(0, import_typeorm74.Column)({
|
|
6288
6459
|
name: "account_status",
|
|
6289
6460
|
type: "enum",
|
|
6290
6461
|
enum: AccountStatus,
|
|
@@ -6292,45 +6463,45 @@ __decorateClass([
|
|
|
6292
6463
|
})
|
|
6293
6464
|
], User.prototype, "accountStatus", 2);
|
|
6294
6465
|
__decorateClass([
|
|
6295
|
-
(0,
|
|
6466
|
+
(0, import_typeorm74.Column)({ name: "is_email_verified", type: "boolean", default: false })
|
|
6296
6467
|
], User.prototype, "isEmailVerified", 2);
|
|
6297
6468
|
__decorateClass([
|
|
6298
|
-
(0,
|
|
6469
|
+
(0, import_typeorm74.Column)({ name: "is_mobile_verified", type: "boolean", default: false })
|
|
6299
6470
|
], User.prototype, "isMobileVerified", 2);
|
|
6300
6471
|
__decorateClass([
|
|
6301
|
-
(0,
|
|
6472
|
+
(0, import_typeorm74.Column)({ name: "is_social", type: "boolean", default: false })
|
|
6302
6473
|
], User.prototype, "isSocial", 2);
|
|
6303
6474
|
__decorateClass([
|
|
6304
|
-
(0,
|
|
6475
|
+
(0, import_typeorm74.Column)({ name: "is_referral_user", type: "boolean", default: false })
|
|
6305
6476
|
], User.prototype, "isReferralUser", 2);
|
|
6306
6477
|
__decorateClass([
|
|
6307
|
-
(0,
|
|
6478
|
+
(0, import_typeorm74.Column)({
|
|
6308
6479
|
name: "last_login_at",
|
|
6309
6480
|
type: "timestamp with time zone",
|
|
6310
6481
|
nullable: true
|
|
6311
6482
|
})
|
|
6312
6483
|
], User.prototype, "lastLoginAt", 2);
|
|
6313
6484
|
__decorateClass([
|
|
6314
|
-
(0,
|
|
6485
|
+
(0, import_typeorm74.Column)({ name: "last_login_ip", type: "varchar", nullable: true })
|
|
6315
6486
|
], User.prototype, "lastLoginIp", 2);
|
|
6316
6487
|
__decorateClass([
|
|
6317
|
-
(0,
|
|
6488
|
+
(0, import_typeorm74.Column)({ name: "reset_token", type: "varchar", nullable: true })
|
|
6318
6489
|
], User.prototype, "resetToken", 2);
|
|
6319
6490
|
__decorateClass([
|
|
6320
|
-
(0,
|
|
6491
|
+
(0, import_typeorm74.Column)({
|
|
6321
6492
|
name: "reset_token_expire_at",
|
|
6322
6493
|
type: "timestamp with time zone",
|
|
6323
6494
|
nullable: true
|
|
6324
6495
|
})
|
|
6325
6496
|
], User.prototype, "resetTokenExpireAt", 2);
|
|
6326
6497
|
__decorateClass([
|
|
6327
|
-
(0,
|
|
6498
|
+
(0, import_typeorm74.Column)({ name: "set_password_token", type: "varchar", nullable: true })
|
|
6328
6499
|
], User.prototype, "setPasswordToken", 2);
|
|
6329
6500
|
__decorateClass([
|
|
6330
|
-
(0,
|
|
6501
|
+
(0, import_typeorm74.OneToMany)(() => RefreshToken, (token) => token.user)
|
|
6331
6502
|
], User.prototype, "refreshTokens", 2);
|
|
6332
6503
|
__decorateClass([
|
|
6333
|
-
(0,
|
|
6504
|
+
(0, import_typeorm74.Column)({
|
|
6334
6505
|
name: "provider",
|
|
6335
6506
|
type: "enum",
|
|
6336
6507
|
enum: Provider,
|
|
@@ -6339,257 +6510,266 @@ __decorateClass([
|
|
|
6339
6510
|
})
|
|
6340
6511
|
], User.prototype, "provider", 2);
|
|
6341
6512
|
__decorateClass([
|
|
6342
|
-
(0,
|
|
6513
|
+
(0, import_typeorm74.Column)({ name: "provider_token", type: "varchar", nullable: true })
|
|
6343
6514
|
], User.prototype, "providerToken", 2);
|
|
6344
6515
|
__decorateClass([
|
|
6345
|
-
(0,
|
|
6516
|
+
(0, import_typeorm74.Column)({ name: "linkedin_id", type: "varchar", nullable: true })
|
|
6346
6517
|
], User.prototype, "linkedInId", 2);
|
|
6347
6518
|
__decorateClass([
|
|
6348
|
-
(0,
|
|
6519
|
+
(0, import_typeorm74.Column)({ name: "google_id", type: "varchar", nullable: true })
|
|
6349
6520
|
], User.prototype, "googleId", 2);
|
|
6350
6521
|
__decorateClass([
|
|
6351
|
-
(0,
|
|
6522
|
+
(0, import_typeorm74.Column)({ name: "gitlabs_id", type: "varchar", nullable: true })
|
|
6352
6523
|
], User.prototype, "gitLabsId", 2);
|
|
6353
6524
|
__decorateClass([
|
|
6354
|
-
(0,
|
|
6525
|
+
(0, import_typeorm74.Column)({ name: "onboarded_by", type: "varchar", nullable: true })
|
|
6355
6526
|
], User.prototype, "onBoardedBy", 2);
|
|
6356
6527
|
__decorateClass([
|
|
6357
|
-
(0,
|
|
6528
|
+
(0, import_typeorm74.OneToMany)(() => Otp, (otp) => otp.user)
|
|
6358
6529
|
], User.prototype, "otps", 2);
|
|
6359
6530
|
__decorateClass([
|
|
6360
|
-
(0,
|
|
6531
|
+
(0, import_typeorm74.OneToMany)(() => SenseloafLog, (senseloafLog) => senseloafLog.user)
|
|
6361
6532
|
], User.prototype, "senseloafLogs", 2);
|
|
6362
6533
|
__decorateClass([
|
|
6363
|
-
(0,
|
|
6534
|
+
(0, import_typeorm74.OneToOne)(() => CompanyProfile, (companyProfile) => companyProfile.user)
|
|
6364
6535
|
], User.prototype, "companyProfile", 2);
|
|
6365
6536
|
__decorateClass([
|
|
6366
|
-
(0,
|
|
6537
|
+
(0, import_typeorm74.OneToMany)(() => CompanySkill, (companySkill) => companySkill.user)
|
|
6367
6538
|
], User.prototype, "companySkills", 2);
|
|
6368
6539
|
__decorateClass([
|
|
6369
|
-
(0,
|
|
6540
|
+
(0, import_typeorm74.OneToMany)(
|
|
6370
6541
|
() => CompanyMemberRole,
|
|
6371
6542
|
(companyMemberRole) => companyMemberRole.user
|
|
6372
6543
|
)
|
|
6373
6544
|
], User.prototype, "companyMemberRoles", 2);
|
|
6374
6545
|
__decorateClass([
|
|
6375
|
-
(0,
|
|
6546
|
+
(0, import_typeorm74.OneToMany)(() => AiInterview, (aiInterview) => aiInterview.interviwer)
|
|
6376
6547
|
], User.prototype, "companyAiInterview", 2);
|
|
6377
6548
|
__decorateClass([
|
|
6378
|
-
(0,
|
|
6549
|
+
(0, import_typeorm74.OneToMany)(() => F2FInterview, (F2FInterview2) => F2FInterview2.interviwer)
|
|
6379
6550
|
], User.prototype, "clientF2FInterviews", 2);
|
|
6380
6551
|
__decorateClass([
|
|
6381
|
-
(0,
|
|
6552
|
+
(0, import_typeorm74.OneToOne)(
|
|
6382
6553
|
() => FreelancerProfile,
|
|
6383
6554
|
(freelancerProfile) => freelancerProfile.user
|
|
6384
6555
|
)
|
|
6385
6556
|
], User.prototype, "freelancerProfile", 2);
|
|
6386
6557
|
__decorateClass([
|
|
6387
|
-
(0,
|
|
6558
|
+
(0, import_typeorm74.OneToOne)(() => FreelancerResume, (freelancerResume) => freelancerResume.user)
|
|
6388
6559
|
], User.prototype, "freelancerResume", 2);
|
|
6389
6560
|
__decorateClass([
|
|
6390
|
-
(0,
|
|
6561
|
+
(0, import_typeorm74.OneToMany)(
|
|
6391
6562
|
() => FreelancerAssessmentRequest,
|
|
6392
6563
|
(freelancerAssessmentRequest) => freelancerAssessmentRequest.freelancer
|
|
6393
6564
|
)
|
|
6394
6565
|
], User.prototype, "freelancerAssessmentRequests", 2);
|
|
6395
6566
|
__decorateClass([
|
|
6396
|
-
(0,
|
|
6567
|
+
(0, import_typeorm74.OneToMany)(
|
|
6397
6568
|
() => FreelancerAssessmentRequest,
|
|
6398
6569
|
(freelancerAssessment) => freelancerAssessment.approvedBy
|
|
6399
6570
|
)
|
|
6400
6571
|
], User.prototype, "assessmentRequests", 2);
|
|
6401
6572
|
__decorateClass([
|
|
6402
|
-
(0,
|
|
6573
|
+
(0, import_typeorm74.OneToMany)(
|
|
6403
6574
|
() => FreelancerAssessment,
|
|
6404
6575
|
(freelancerAssessment) => freelancerAssessment.user
|
|
6405
6576
|
)
|
|
6406
6577
|
], User.prototype, "assessments", 2);
|
|
6407
6578
|
__decorateClass([
|
|
6408
|
-
(0,
|
|
6579
|
+
(0, import_typeorm74.OneToMany)(
|
|
6409
6580
|
() => AssessmentAnswer,
|
|
6410
6581
|
(assessmentAnswer) => assessmentAnswer.user
|
|
6411
6582
|
)
|
|
6412
6583
|
], User.prototype, "assessmentAnswers", 2);
|
|
6413
6584
|
__decorateClass([
|
|
6414
|
-
(0,
|
|
6585
|
+
(0, import_typeorm74.OneToMany)(() => FreelancerSkill, (freelancerSkill) => freelancerSkill.user)
|
|
6415
6586
|
], User.prototype, "freelancerSkills", 2);
|
|
6416
6587
|
__decorateClass([
|
|
6417
|
-
(0,
|
|
6588
|
+
(0, import_typeorm74.OneToMany)(
|
|
6418
6589
|
() => FreelancerExperience,
|
|
6419
6590
|
(freelancerExperience) => freelancerExperience.user
|
|
6420
6591
|
)
|
|
6421
6592
|
], User.prototype, "freelancerExperience", 2);
|
|
6422
6593
|
__decorateClass([
|
|
6423
|
-
(0,
|
|
6594
|
+
(0, import_typeorm74.OneToMany)(
|
|
6424
6595
|
() => FreelancerEducation,
|
|
6425
6596
|
(freelancerEducation) => freelancerEducation.user
|
|
6426
6597
|
)
|
|
6427
6598
|
], User.prototype, "freelancerEducation", 2);
|
|
6428
6599
|
__decorateClass([
|
|
6429
|
-
(0,
|
|
6600
|
+
(0, import_typeorm74.OneToMany)(
|
|
6430
6601
|
() => FreelancerProject,
|
|
6431
6602
|
(freelancerProject) => freelancerProject.user
|
|
6432
6603
|
)
|
|
6433
6604
|
], User.prototype, "freelancerProject", 2);
|
|
6434
6605
|
__decorateClass([
|
|
6435
|
-
(0,
|
|
6606
|
+
(0, import_typeorm74.OneToMany)(
|
|
6436
6607
|
() => FreelancerCaseStudy,
|
|
6437
6608
|
(freelancerCaseStudy) => freelancerCaseStudy.user
|
|
6438
6609
|
)
|
|
6439
6610
|
], User.prototype, "freelancerCaseStudy", 2);
|
|
6440
6611
|
__decorateClass([
|
|
6441
|
-
(0,
|
|
6612
|
+
(0, import_typeorm74.OneToMany)(() => FreelancerTool, (freelancerTool) => freelancerTool.user)
|
|
6442
6613
|
], User.prototype, "freelancerTool", 2);
|
|
6443
6614
|
__decorateClass([
|
|
6444
|
-
(0,
|
|
6615
|
+
(0, import_typeorm74.OneToMany)(
|
|
6445
6616
|
() => FreelancerFramework,
|
|
6446
6617
|
(freelancerFramework) => freelancerFramework.user
|
|
6447
6618
|
)
|
|
6448
6619
|
], User.prototype, "freelancerFramework", 2);
|
|
6449
6620
|
__decorateClass([
|
|
6450
|
-
(0,
|
|
6621
|
+
(0, import_typeorm74.OneToOne)(
|
|
6451
6622
|
() => FreelancerDeclaration,
|
|
6452
6623
|
(freelancerDeclaration) => freelancerDeclaration.user
|
|
6453
6624
|
)
|
|
6454
6625
|
], User.prototype, "freelancerDeclaration", 2);
|
|
6455
6626
|
__decorateClass([
|
|
6456
|
-
(0,
|
|
6627
|
+
(0, import_typeorm74.OneToMany)(() => AssessmetQuestion, (assessmetQuestion) => assessmetQuestion.candidate)
|
|
6457
6628
|
], User.prototype, "freelancerMcq", 2);
|
|
6458
6629
|
__decorateClass([
|
|
6459
|
-
(0,
|
|
6630
|
+
(0, import_typeorm74.OneToMany)(() => AiInterview, (aiInterview) => aiInterview.candidate)
|
|
6460
6631
|
], User.prototype, "freelancerAiInterview", 2);
|
|
6461
6632
|
__decorateClass([
|
|
6462
|
-
(0,
|
|
6633
|
+
(0, import_typeorm74.OneToMany)(() => F2FInterview, (F2FInterview2) => F2FInterview2.candidate)
|
|
6463
6634
|
], User.prototype, "freelancerF2FInterviews", 2);
|
|
6464
6635
|
__decorateClass([
|
|
6465
|
-
(0,
|
|
6636
|
+
(0, import_typeorm74.OneToMany)(
|
|
6466
6637
|
() => F2fInterviewRescheduleRequest,
|
|
6467
6638
|
(f2fInterviewRescheduleRequest) => f2fInterviewRescheduleRequest.candidate
|
|
6468
6639
|
)
|
|
6469
6640
|
], User.prototype, "freelancerF2FInterviewRescheduleRequests", 2);
|
|
6470
6641
|
__decorateClass([
|
|
6471
|
-
(0,
|
|
6642
|
+
(0, import_typeorm74.OneToMany)(
|
|
6472
6643
|
() => AiInterviewRescheduleRequest,
|
|
6473
6644
|
(aiInterviewRescheduleRequest) => aiInterviewRescheduleRequest.candidate
|
|
6474
6645
|
)
|
|
6475
6646
|
], User.prototype, "freelancerAiInterviewRescheduleRequests", 2);
|
|
6476
6647
|
__decorateClass([
|
|
6477
|
-
(0,
|
|
6648
|
+
(0, import_typeorm74.OneToMany)(
|
|
6478
6649
|
() => AiInterviewRescheduleRequest,
|
|
6479
6650
|
(aiInterviewRescheduleRequest) => aiInterviewRescheduleRequest.client
|
|
6480
6651
|
)
|
|
6481
6652
|
], User.prototype, "clientAiInterviewRescheduleRequests", 2);
|
|
6482
6653
|
__decorateClass([
|
|
6483
|
-
(0,
|
|
6654
|
+
(0, import_typeorm74.OneToMany)(() => Job, (job) => job.user)
|
|
6484
6655
|
], User.prototype, "jobs", 2);
|
|
6485
6656
|
__decorateClass([
|
|
6486
|
-
(0,
|
|
6657
|
+
(0, import_typeorm74.OneToMany)(() => Task, (task) => task.client)
|
|
6487
6658
|
], User.prototype, "clientTasks", 2);
|
|
6488
6659
|
__decorateClass([
|
|
6489
|
-
(0,
|
|
6660
|
+
(0, import_typeorm74.OneToMany)(() => Task, (task) => task.freelancer)
|
|
6490
6661
|
], User.prototype, "freelancerTasks", 2);
|
|
6491
6662
|
__decorateClass([
|
|
6492
|
-
(0,
|
|
6663
|
+
(0, import_typeorm74.OneToMany)(() => TaskQuery, (taskQuery) => taskQuery.raisedByUser)
|
|
6664
|
+
], User.prototype, "raisedTaskQueries", 2);
|
|
6665
|
+
__decorateClass([
|
|
6666
|
+
(0, import_typeorm74.OneToMany)(() => TaskQuery, (taskQuery) => taskQuery.assignedToUser)
|
|
6667
|
+
], User.prototype, "assignedTaskQueries", 2);
|
|
6668
|
+
__decorateClass([
|
|
6669
|
+
(0, import_typeorm74.OneToMany)(() => TaskQueryMessage, (message) => message.senderUser)
|
|
6670
|
+
], User.prototype, "taskQueryMessages", 2);
|
|
6671
|
+
__decorateClass([
|
|
6672
|
+
(0, import_typeorm74.OneToMany)(() => JobApplication, (jobApplication) => jobApplication.user)
|
|
6493
6673
|
], User.prototype, "jobApplications", 2);
|
|
6494
6674
|
__decorateClass([
|
|
6495
|
-
(0,
|
|
6675
|
+
(0, import_typeorm74.OneToMany)(() => Interview, (interview) => interview.user)
|
|
6496
6676
|
], User.prototype, "interviews", 2);
|
|
6497
6677
|
__decorateClass([
|
|
6498
|
-
(0,
|
|
6678
|
+
(0, import_typeorm74.OneToMany)(() => BankDetail, (bankDetail) => bankDetail.user)
|
|
6499
6679
|
], User.prototype, "bankDetail", 2);
|
|
6500
6680
|
__decorateClass([
|
|
6501
|
-
(0,
|
|
6681
|
+
(0, import_typeorm74.OneToMany)(
|
|
6502
6682
|
() => SystemPreference,
|
|
6503
6683
|
(systemPreference) => systemPreference.user
|
|
6504
6684
|
)
|
|
6505
6685
|
], User.prototype, "systemPreference", 2);
|
|
6506
6686
|
__decorateClass([
|
|
6507
|
-
(0,
|
|
6687
|
+
(0, import_typeorm74.OneToMany)(() => Rating, (rating) => rating.reviewer)
|
|
6508
6688
|
], User.prototype, "givenRatings", 2);
|
|
6509
6689
|
__decorateClass([
|
|
6510
|
-
(0,
|
|
6690
|
+
(0, import_typeorm74.OneToMany)(() => Rating, (rating) => rating.reviewee)
|
|
6511
6691
|
], User.prototype, "receivedRatings", 2);
|
|
6512
6692
|
__decorateClass([
|
|
6513
|
-
(0,
|
|
6693
|
+
(0, import_typeorm74.OneToMany)(() => AdminUserRole, (adminUserRole) => adminUserRole.user)
|
|
6514
6694
|
], User.prototype, "adminUserRoles", 2);
|
|
6515
6695
|
__decorateClass([
|
|
6516
|
-
(0,
|
|
6696
|
+
(0, import_typeorm74.OneToMany)(() => ContractSummary, (contractSummary) => contractSummary.clientId, {
|
|
6517
6697
|
cascade: true
|
|
6518
6698
|
})
|
|
6519
6699
|
], User.prototype, "clientContractSummaries", 2);
|
|
6520
6700
|
__decorateClass([
|
|
6521
|
-
(0,
|
|
6701
|
+
(0, import_typeorm74.OneToMany)(() => Contract, (contract) => contract.client)
|
|
6522
6702
|
], User.prototype, "clientContracts", 2);
|
|
6523
6703
|
__decorateClass([
|
|
6524
|
-
(0,
|
|
6704
|
+
(0, import_typeorm74.OneToMany)(() => Hiring, (hiring) => hiring.client)
|
|
6525
6705
|
], User.prototype, "clientHirings", 2);
|
|
6526
6706
|
__decorateClass([
|
|
6527
|
-
(0,
|
|
6707
|
+
(0, import_typeorm74.OneToMany)(() => EscrowWallet, (escrowWallet) => escrowWallet.client)
|
|
6528
6708
|
], User.prototype, "clientEscrowWallets", 2);
|
|
6529
6709
|
__decorateClass([
|
|
6530
|
-
(0,
|
|
6710
|
+
(0, import_typeorm74.OneToMany)(() => ContractSummary, (contractSummary) => contractSummary.freelancerId, {
|
|
6531
6711
|
cascade: true
|
|
6532
6712
|
})
|
|
6533
6713
|
], User.prototype, "freelancerContractSummaries", 2);
|
|
6534
6714
|
__decorateClass([
|
|
6535
|
-
(0,
|
|
6715
|
+
(0, import_typeorm74.OneToMany)(() => Contract, (contract) => contract.freelancer)
|
|
6536
6716
|
], User.prototype, "freelancerContracts", 2);
|
|
6537
6717
|
__decorateClass([
|
|
6538
|
-
(0,
|
|
6718
|
+
(0, import_typeorm74.OneToMany)(() => Hiring, (hiring) => hiring.freelancer)
|
|
6539
6719
|
], User.prototype, "freelancerHirings", 2);
|
|
6540
6720
|
__decorateClass([
|
|
6541
|
-
(0,
|
|
6721
|
+
(0, import_typeorm74.OneToMany)(() => EscrowWallet, (escrowWallet) => escrowWallet.freelancer)
|
|
6542
6722
|
], User.prototype, "freelancerEscrowWallets", 2);
|
|
6543
6723
|
__decorateClass([
|
|
6544
|
-
(0,
|
|
6724
|
+
(0, import_typeorm74.OneToOne)(() => Signature, (signature) => signature.user)
|
|
6545
6725
|
], User.prototype, "signatures", 2);
|
|
6546
6726
|
__decorateClass([
|
|
6547
|
-
(0,
|
|
6727
|
+
(0, import_typeorm74.OneToMany)(() => Timesheet, (timesheet) => timesheet.client)
|
|
6548
6728
|
], User.prototype, "clientTimesheets", 2);
|
|
6549
6729
|
__decorateClass([
|
|
6550
|
-
(0,
|
|
6730
|
+
(0, import_typeorm74.OneToMany)(() => Timesheet, (timesheet) => timesheet.freelancer)
|
|
6551
6731
|
], User.prototype, "freelancerTimesheets", 2);
|
|
6552
6732
|
__decorateClass([
|
|
6553
|
-
(0,
|
|
6733
|
+
(0, import_typeorm74.OneToMany)(() => TimesheetLine, (timesheetLine) => timesheetLine.client)
|
|
6554
6734
|
], User.prototype, "clientTimesheetLine", 2);
|
|
6555
6735
|
__decorateClass([
|
|
6556
|
-
(0,
|
|
6736
|
+
(0, import_typeorm74.OneToMany)(() => Invoice, (invoice) => invoice.client)
|
|
6557
6737
|
], User.prototype, "clientInvoice", 2);
|
|
6558
6738
|
__decorateClass([
|
|
6559
|
-
(0,
|
|
6739
|
+
(0, import_typeorm74.OneToMany)(() => TimesheetLine, (timesheetLine) => timesheetLine.freelancer)
|
|
6560
6740
|
], User.prototype, "freelancerTimesheetLine", 2);
|
|
6561
6741
|
__decorateClass([
|
|
6562
|
-
(0,
|
|
6742
|
+
(0, import_typeorm74.OneToMany)(() => Invoice, (invoice) => invoice.freelancer)
|
|
6563
6743
|
], User.prototype, "freelancerInvoice", 2);
|
|
6564
6744
|
__decorateClass([
|
|
6565
|
-
(0,
|
|
6745
|
+
(0, import_typeorm74.OneToMany)(() => ClientCandidatePreference, (clientCandidatePreference) => clientCandidatePreference.client, { cascade: true })
|
|
6566
6746
|
], User.prototype, "clientPreferencesGiven", 2);
|
|
6567
6747
|
__decorateClass([
|
|
6568
|
-
(0,
|
|
6748
|
+
(0, import_typeorm74.OneToMany)(() => ClientCandidatePreference, (clientCandidatePreference) => clientCandidatePreference.candidate)
|
|
6569
6749
|
], User.prototype, "clientPreferencesReceived", 2);
|
|
6570
6750
|
__decorateClass([
|
|
6571
|
-
(0,
|
|
6751
|
+
(0, import_typeorm74.OneToMany)(() => Dispute, (dispute) => dispute.initiator, { cascade: true })
|
|
6572
6752
|
], User.prototype, "initiatedDisputes", 2);
|
|
6573
6753
|
__decorateClass([
|
|
6574
|
-
(0,
|
|
6754
|
+
(0, import_typeorm74.OneToMany)(() => Dispute, (dispute) => dispute.respondent, { cascade: true })
|
|
6575
6755
|
], User.prototype, "respondentDisputes", 2);
|
|
6576
6756
|
__decorateClass([
|
|
6577
|
-
(0,
|
|
6757
|
+
(0, import_typeorm74.OneToOne)(() => Wallet, (wallet) => wallet.user)
|
|
6578
6758
|
], User.prototype, "wallet", 2);
|
|
6579
6759
|
__decorateClass([
|
|
6580
|
-
(0,
|
|
6760
|
+
(0, import_typeorm74.OneToMany)(() => StripeTransaction, (stripeTransaction) => stripeTransaction.user, { cascade: true })
|
|
6581
6761
|
], User.prototype, "stripeTransactions", 2);
|
|
6582
6762
|
__decorateClass([
|
|
6583
|
-
(0,
|
|
6763
|
+
(0, import_typeorm74.OneToMany)(() => Dispute, (dispute) => dispute.client)
|
|
6584
6764
|
], User.prototype, "clientDisputes", 2);
|
|
6585
6765
|
__decorateClass([
|
|
6586
|
-
(0,
|
|
6766
|
+
(0, import_typeorm74.OneToMany)(() => Dispute, (dispute) => dispute.freelancer)
|
|
6587
6767
|
], User.prototype, "freelancerDisputes", 2);
|
|
6588
6768
|
__decorateClass([
|
|
6589
|
-
(0,
|
|
6769
|
+
(0, import_typeorm74.OneToMany)(() => InAppNotification, (inAppNotification) => inAppNotification.user)
|
|
6590
6770
|
], User.prototype, "inAppNotifications", 2);
|
|
6591
6771
|
User = __decorateClass([
|
|
6592
|
-
(0,
|
|
6772
|
+
(0, import_typeorm74.Entity)("users")
|
|
6593
6773
|
], User);
|
|
6594
6774
|
|
|
6595
6775
|
// src/modules/user/subadmin/dto/update-subadmin-account-status.dto.ts
|
|
@@ -12757,6 +12937,277 @@ __decorateClass([
|
|
|
12757
12937
|
(0, import_class_transformer36.Type)(() => Number)
|
|
12758
12938
|
], ArchiveSubmissionDto.prototype, "submissionId", 2);
|
|
12759
12939
|
|
|
12940
|
+
// src/modules/task/pattern/pattern.ts
|
|
12941
|
+
var TASK_PATTERN = {
|
|
12942
|
+
createTask: "create.task",
|
|
12943
|
+
fetchTaskForBusiness: "fetch.task.for.business",
|
|
12944
|
+
fetchTaskForFreelancer: "fetch.task.for.freelancer",
|
|
12945
|
+
fetchTaskDetail: "fetch.task.detail",
|
|
12946
|
+
updateTask: "update.task",
|
|
12947
|
+
deleteTask: "delete.task",
|
|
12948
|
+
addClientRemark: "task.client.remark",
|
|
12949
|
+
markTaskAsCompleted: "task.client.mark.as.completed",
|
|
12950
|
+
updateEstimateTime: "task.freelancer.update.estimate.time"
|
|
12951
|
+
};
|
|
12952
|
+
|
|
12953
|
+
// src/modules/task/dto/create-task.dto.ts
|
|
12954
|
+
var import_class_validator166 = require("class-validator");
|
|
12955
|
+
var import_class_transformer37 = require("class-transformer");
|
|
12956
|
+
var TaskDeliverableDto = class {
|
|
12957
|
+
};
|
|
12958
|
+
__decorateClass([
|
|
12959
|
+
(0, import_class_validator166.IsString)()
|
|
12960
|
+
], TaskDeliverableDto.prototype, "name", 2);
|
|
12961
|
+
__decorateClass([
|
|
12962
|
+
(0, import_class_validator166.IsOptional)(),
|
|
12963
|
+
(0, import_class_validator166.IsString)()
|
|
12964
|
+
], TaskDeliverableDto.prototype, "description", 2);
|
|
12965
|
+
__decorateClass([
|
|
12966
|
+
(0, import_class_validator166.IsOptional)(),
|
|
12967
|
+
(0, import_class_validator166.IsString)()
|
|
12968
|
+
], TaskDeliverableDto.prototype, "type", 2);
|
|
12969
|
+
var TaskResourceDto = class {
|
|
12970
|
+
};
|
|
12971
|
+
__decorateClass([
|
|
12972
|
+
(0, import_class_validator166.IsString)()
|
|
12973
|
+
], TaskResourceDto.prototype, "name", 2);
|
|
12974
|
+
__decorateClass([
|
|
12975
|
+
(0, import_class_validator166.IsOptional)(),
|
|
12976
|
+
(0, import_class_validator166.IsString)()
|
|
12977
|
+
], TaskResourceDto.prototype, "description", 2);
|
|
12978
|
+
__decorateClass([
|
|
12979
|
+
(0, import_class_validator166.IsOptional)(),
|
|
12980
|
+
(0, import_class_validator166.IsString)()
|
|
12981
|
+
], TaskResourceDto.prototype, "type", 2);
|
|
12982
|
+
__decorateClass([
|
|
12983
|
+
(0, import_class_validator166.IsOptional)(),
|
|
12984
|
+
(0, import_class_validator166.IsString)()
|
|
12985
|
+
], TaskResourceDto.prototype, "url", 2);
|
|
12986
|
+
var TaskChecklistItemDto = class {
|
|
12987
|
+
};
|
|
12988
|
+
__decorateClass([
|
|
12989
|
+
(0, import_class_validator166.IsString)()
|
|
12990
|
+
], TaskChecklistItemDto.prototype, "item", 2);
|
|
12991
|
+
__decorateClass([
|
|
12992
|
+
(0, import_class_validator166.IsOptional)(),
|
|
12993
|
+
(0, import_class_validator166.IsString)()
|
|
12994
|
+
], TaskChecklistItemDto.prototype, "notes", 2);
|
|
12995
|
+
var TaskSubtaskDto = class {
|
|
12996
|
+
};
|
|
12997
|
+
__decorateClass([
|
|
12998
|
+
(0, import_class_validator166.IsString)()
|
|
12999
|
+
], TaskSubtaskDto.prototype, "name", 2);
|
|
13000
|
+
__decorateClass([
|
|
13001
|
+
(0, import_class_validator166.IsOptional)(),
|
|
13002
|
+
(0, import_class_validator166.IsString)()
|
|
13003
|
+
], TaskSubtaskDto.prototype, "status", 2);
|
|
13004
|
+
__decorateClass([
|
|
13005
|
+
(0, import_class_validator166.IsOptional)(),
|
|
13006
|
+
(0, import_class_validator166.IsString)()
|
|
13007
|
+
], TaskSubtaskDto.prototype, "description", 2);
|
|
13008
|
+
var CreateTaskDto = class {
|
|
13009
|
+
};
|
|
13010
|
+
__decorateClass([
|
|
13011
|
+
(0, import_class_validator166.IsString)()
|
|
13012
|
+
], CreateTaskDto.prototype, "title", 2);
|
|
13013
|
+
__decorateClass([
|
|
13014
|
+
(0, import_class_validator166.IsDateString)()
|
|
13015
|
+
], CreateTaskDto.prototype, "dueDate", 2);
|
|
13016
|
+
__decorateClass([
|
|
13017
|
+
(0, import_class_validator166.IsString)()
|
|
13018
|
+
], CreateTaskDto.prototype, "jobId", 2);
|
|
13019
|
+
__decorateClass([
|
|
13020
|
+
(0, import_class_validator166.IsString)()
|
|
13021
|
+
], CreateTaskDto.prototype, "freelancerId", 2);
|
|
13022
|
+
__decorateClass([
|
|
13023
|
+
(0, import_class_validator166.IsString)()
|
|
13024
|
+
], CreateTaskDto.prototype, "status", 2);
|
|
13025
|
+
__decorateClass([
|
|
13026
|
+
(0, import_class_validator166.IsOptional)(),
|
|
13027
|
+
(0, import_class_validator166.IsString)()
|
|
13028
|
+
], CreateTaskDto.prototype, "description", 2);
|
|
13029
|
+
__decorateClass([
|
|
13030
|
+
(0, import_class_validator166.IsString)()
|
|
13031
|
+
], CreateTaskDto.prototype, "priority", 2);
|
|
13032
|
+
__decorateClass([
|
|
13033
|
+
(0, import_class_validator166.IsDateString)()
|
|
13034
|
+
], CreateTaskDto.prototype, "createdOn", 2);
|
|
13035
|
+
__decorateClass([
|
|
13036
|
+
(0, import_class_validator166.IsOptional)(),
|
|
13037
|
+
(0, import_class_validator166.IsArray)(),
|
|
13038
|
+
(0, import_class_validator166.ValidateNested)({ each: true }),
|
|
13039
|
+
(0, import_class_transformer37.Type)(() => TaskDeliverableDto)
|
|
13040
|
+
], CreateTaskDto.prototype, "deliverables", 2);
|
|
13041
|
+
__decorateClass([
|
|
13042
|
+
(0, import_class_validator166.IsOptional)(),
|
|
13043
|
+
(0, import_class_validator166.IsArray)(),
|
|
13044
|
+
(0, import_class_validator166.ValidateNested)({ each: true }),
|
|
13045
|
+
(0, import_class_transformer37.Type)(() => TaskResourceDto)
|
|
13046
|
+
], CreateTaskDto.prototype, "resources", 2);
|
|
13047
|
+
__decorateClass([
|
|
13048
|
+
(0, import_class_validator166.IsOptional)(),
|
|
13049
|
+
(0, import_class_validator166.IsArray)(),
|
|
13050
|
+
(0, import_class_validator166.ValidateNested)({ each: true }),
|
|
13051
|
+
(0, import_class_transformer37.Type)(() => TaskChecklistItemDto)
|
|
13052
|
+
], CreateTaskDto.prototype, "checklist", 2);
|
|
13053
|
+
__decorateClass([
|
|
13054
|
+
(0, import_class_validator166.IsOptional)(),
|
|
13055
|
+
(0, import_class_validator166.IsArray)(),
|
|
13056
|
+
(0, import_class_validator166.ValidateNested)({ each: true }),
|
|
13057
|
+
(0, import_class_transformer37.Type)(() => TaskSubtaskDto)
|
|
13058
|
+
], CreateTaskDto.prototype, "subtasks", 2);
|
|
13059
|
+
|
|
13060
|
+
// src/modules/task/dto/update-task.dto.ts
|
|
13061
|
+
var import_class_validator167 = require("class-validator");
|
|
13062
|
+
var import_class_transformer38 = require("class-transformer");
|
|
13063
|
+
var TaskDeliverableDto2 = class {
|
|
13064
|
+
};
|
|
13065
|
+
__decorateClass([
|
|
13066
|
+
(0, import_class_validator167.IsString)()
|
|
13067
|
+
], TaskDeliverableDto2.prototype, "name", 2);
|
|
13068
|
+
__decorateClass([
|
|
13069
|
+
(0, import_class_validator167.IsOptional)(),
|
|
13070
|
+
(0, import_class_validator167.IsString)()
|
|
13071
|
+
], TaskDeliverableDto2.prototype, "description", 2);
|
|
13072
|
+
__decorateClass([
|
|
13073
|
+
(0, import_class_validator167.IsOptional)(),
|
|
13074
|
+
(0, import_class_validator167.IsString)()
|
|
13075
|
+
], TaskDeliverableDto2.prototype, "type", 2);
|
|
13076
|
+
var TaskResourceDto2 = class {
|
|
13077
|
+
};
|
|
13078
|
+
__decorateClass([
|
|
13079
|
+
(0, import_class_validator167.IsString)()
|
|
13080
|
+
], TaskResourceDto2.prototype, "name", 2);
|
|
13081
|
+
__decorateClass([
|
|
13082
|
+
(0, import_class_validator167.IsOptional)(),
|
|
13083
|
+
(0, import_class_validator167.IsString)()
|
|
13084
|
+
], TaskResourceDto2.prototype, "description", 2);
|
|
13085
|
+
__decorateClass([
|
|
13086
|
+
(0, import_class_validator167.IsOptional)(),
|
|
13087
|
+
(0, import_class_validator167.IsString)()
|
|
13088
|
+
], TaskResourceDto2.prototype, "type", 2);
|
|
13089
|
+
__decorateClass([
|
|
13090
|
+
(0, import_class_validator167.IsOptional)(),
|
|
13091
|
+
(0, import_class_validator167.IsString)()
|
|
13092
|
+
], TaskResourceDto2.prototype, "url", 2);
|
|
13093
|
+
var TaskChecklistItemDto2 = class {
|
|
13094
|
+
};
|
|
13095
|
+
__decorateClass([
|
|
13096
|
+
(0, import_class_validator167.IsString)()
|
|
13097
|
+
], TaskChecklistItemDto2.prototype, "item", 2);
|
|
13098
|
+
__decorateClass([
|
|
13099
|
+
(0, import_class_validator167.IsOptional)(),
|
|
13100
|
+
(0, import_class_validator167.IsString)()
|
|
13101
|
+
], TaskChecklistItemDto2.prototype, "notes", 2);
|
|
13102
|
+
var TaskSubtaskDto2 = class {
|
|
13103
|
+
};
|
|
13104
|
+
__decorateClass([
|
|
13105
|
+
(0, import_class_validator167.IsString)()
|
|
13106
|
+
], TaskSubtaskDto2.prototype, "name", 2);
|
|
13107
|
+
__decorateClass([
|
|
13108
|
+
(0, import_class_validator167.IsOptional)(),
|
|
13109
|
+
(0, import_class_validator167.IsString)()
|
|
13110
|
+
], TaskSubtaskDto2.prototype, "status", 2);
|
|
13111
|
+
__decorateClass([
|
|
13112
|
+
(0, import_class_validator167.IsOptional)(),
|
|
13113
|
+
(0, import_class_validator167.IsString)()
|
|
13114
|
+
], TaskSubtaskDto2.prototype, "description", 2);
|
|
13115
|
+
var UpdateTaskDto = class {
|
|
13116
|
+
};
|
|
13117
|
+
__decorateClass([
|
|
13118
|
+
(0, import_class_validator167.IsOptional)(),
|
|
13119
|
+
(0, import_class_validator167.IsString)()
|
|
13120
|
+
], UpdateTaskDto.prototype, "title", 2);
|
|
13121
|
+
__decorateClass([
|
|
13122
|
+
(0, import_class_validator167.IsOptional)(),
|
|
13123
|
+
(0, import_class_validator167.IsDateString)()
|
|
13124
|
+
], UpdateTaskDto.prototype, "dueDate", 2);
|
|
13125
|
+
__decorateClass([
|
|
13126
|
+
(0, import_class_validator167.IsOptional)(),
|
|
13127
|
+
(0, import_class_validator167.IsString)()
|
|
13128
|
+
], UpdateTaskDto.prototype, "jobId", 2);
|
|
13129
|
+
__decorateClass([
|
|
13130
|
+
(0, import_class_validator167.IsOptional)(),
|
|
13131
|
+
(0, import_class_validator167.IsString)()
|
|
13132
|
+
], UpdateTaskDto.prototype, "freelancerId", 2);
|
|
13133
|
+
__decorateClass([
|
|
13134
|
+
(0, import_class_validator167.IsOptional)(),
|
|
13135
|
+
(0, import_class_validator167.IsString)()
|
|
13136
|
+
], UpdateTaskDto.prototype, "status", 2);
|
|
13137
|
+
__decorateClass([
|
|
13138
|
+
(0, import_class_validator167.IsOptional)(),
|
|
13139
|
+
(0, import_class_validator167.IsString)()
|
|
13140
|
+
], UpdateTaskDto.prototype, "description", 2);
|
|
13141
|
+
__decorateClass([
|
|
13142
|
+
(0, import_class_validator167.IsOptional)(),
|
|
13143
|
+
(0, import_class_validator167.IsString)()
|
|
13144
|
+
], UpdateTaskDto.prototype, "priority", 2);
|
|
13145
|
+
__decorateClass([
|
|
13146
|
+
(0, import_class_validator167.IsOptional)(),
|
|
13147
|
+
(0, import_class_validator167.IsDateString)()
|
|
13148
|
+
], UpdateTaskDto.prototype, "createdOn", 2);
|
|
13149
|
+
__decorateClass([
|
|
13150
|
+
(0, import_class_validator167.IsOptional)(),
|
|
13151
|
+
(0, import_class_validator167.IsArray)(),
|
|
13152
|
+
(0, import_class_validator167.ValidateNested)({ each: true }),
|
|
13153
|
+
(0, import_class_transformer38.Type)(() => TaskDeliverableDto2)
|
|
13154
|
+
], UpdateTaskDto.prototype, "deliverables", 2);
|
|
13155
|
+
__decorateClass([
|
|
13156
|
+
(0, import_class_validator167.IsOptional)(),
|
|
13157
|
+
(0, import_class_validator167.IsArray)(),
|
|
13158
|
+
(0, import_class_validator167.ValidateNested)({ each: true }),
|
|
13159
|
+
(0, import_class_transformer38.Type)(() => TaskResourceDto2)
|
|
13160
|
+
], UpdateTaskDto.prototype, "resources", 2);
|
|
13161
|
+
__decorateClass([
|
|
13162
|
+
(0, import_class_validator167.IsOptional)(),
|
|
13163
|
+
(0, import_class_validator167.IsArray)(),
|
|
13164
|
+
(0, import_class_validator167.ValidateNested)({ each: true }),
|
|
13165
|
+
(0, import_class_transformer38.Type)(() => TaskChecklistItemDto2)
|
|
13166
|
+
], UpdateTaskDto.prototype, "checklist", 2);
|
|
13167
|
+
__decorateClass([
|
|
13168
|
+
(0, import_class_validator167.IsOptional)(),
|
|
13169
|
+
(0, import_class_validator167.IsArray)(),
|
|
13170
|
+
(0, import_class_validator167.ValidateNested)({ each: true }),
|
|
13171
|
+
(0, import_class_transformer38.Type)(() => TaskSubtaskDto2)
|
|
13172
|
+
], UpdateTaskDto.prototype, "subtasks", 2);
|
|
13173
|
+
|
|
13174
|
+
// src/modules/task/dto/task-uuid-param.dto.ts
|
|
13175
|
+
var import_class_validator168 = require("class-validator");
|
|
13176
|
+
var TaskUuidParamDto = class {
|
|
13177
|
+
};
|
|
13178
|
+
__decorateClass([
|
|
13179
|
+
(0, import_class_validator168.IsString)()
|
|
13180
|
+
], TaskUuidParamDto.prototype, "uuid", 2);
|
|
13181
|
+
|
|
13182
|
+
// src/modules/task/dto/add-client-remark.dto.ts
|
|
13183
|
+
var import_class_validator169 = require("class-validator");
|
|
13184
|
+
var AddClientRemarkDto = class {
|
|
13185
|
+
};
|
|
13186
|
+
__decorateClass([
|
|
13187
|
+
(0, import_class_validator169.IsString)()
|
|
13188
|
+
], AddClientRemarkDto.prototype, "remark", 2);
|
|
13189
|
+
|
|
13190
|
+
// src/modules/task/dto/mark-task-as-completed.dto.ts
|
|
13191
|
+
var import_class_validator170 = require("class-validator");
|
|
13192
|
+
var MarkTaskAsCompletedDto = class {
|
|
13193
|
+
};
|
|
13194
|
+
__decorateClass([
|
|
13195
|
+
(0, import_class_validator170.IsString)()
|
|
13196
|
+
], MarkTaskAsCompletedDto.prototype, "status", 2);
|
|
13197
|
+
|
|
13198
|
+
// src/modules/task/dto/update-estimate-time.dto.ts
|
|
13199
|
+
var import_class_transformer39 = require("class-transformer");
|
|
13200
|
+
var import_class_validator171 = require("class-validator");
|
|
13201
|
+
var UpdateEstimateTimeDto = class {
|
|
13202
|
+
};
|
|
13203
|
+
__decorateClass([
|
|
13204
|
+
(0, import_class_transformer39.Type)(() => Number),
|
|
13205
|
+
(0, import_class_validator171.IsNumber)()
|
|
13206
|
+
], UpdateEstimateTimeDto.prototype, "estimateHours", 2);
|
|
13207
|
+
__decorateClass([
|
|
13208
|
+
(0, import_class_validator171.IsString)()
|
|
13209
|
+
], UpdateEstimateTimeDto.prototype, "additionalWorkNote", 2);
|
|
13210
|
+
|
|
12760
13211
|
// src/adapters/tcp/user.tcp.adapter.ts
|
|
12761
13212
|
var import_dotenv = require("dotenv");
|
|
12762
13213
|
var import_microservices = require("@nestjs/microservices");
|
|
@@ -13118,11 +13569,11 @@ var ChatRMQAdapter = (mode = "microservice") => {
|
|
|
13118
13569
|
};
|
|
13119
13570
|
|
|
13120
13571
|
// src/entities/sequence-generator.entity.ts
|
|
13121
|
-
var
|
|
13572
|
+
var import_typeorm75 = require("typeorm");
|
|
13122
13573
|
var SequenceGenerator = class extends BaseEntity {
|
|
13123
13574
|
};
|
|
13124
13575
|
__decorateClass([
|
|
13125
|
-
(0,
|
|
13576
|
+
(0, import_typeorm75.Column)({
|
|
13126
13577
|
name: "module",
|
|
13127
13578
|
type: "varchar",
|
|
13128
13579
|
length: 50,
|
|
@@ -13131,7 +13582,7 @@ __decorateClass([
|
|
|
13131
13582
|
})
|
|
13132
13583
|
], SequenceGenerator.prototype, "module", 2);
|
|
13133
13584
|
__decorateClass([
|
|
13134
|
-
(0,
|
|
13585
|
+
(0, import_typeorm75.Column)({
|
|
13135
13586
|
name: "prefix",
|
|
13136
13587
|
type: "varchar",
|
|
13137
13588
|
length: 10,
|
|
@@ -13140,7 +13591,7 @@ __decorateClass([
|
|
|
13140
13591
|
})
|
|
13141
13592
|
], SequenceGenerator.prototype, "prefix", 2);
|
|
13142
13593
|
__decorateClass([
|
|
13143
|
-
(0,
|
|
13594
|
+
(0, import_typeorm75.Column)({
|
|
13144
13595
|
name: "last_sequence",
|
|
13145
13596
|
type: "int",
|
|
13146
13597
|
nullable: false,
|
|
@@ -13148,7 +13599,7 @@ __decorateClass([
|
|
|
13148
13599
|
})
|
|
13149
13600
|
], SequenceGenerator.prototype, "lastSequence", 2);
|
|
13150
13601
|
__decorateClass([
|
|
13151
|
-
(0,
|
|
13602
|
+
(0, import_typeorm75.Column)({
|
|
13152
13603
|
name: "year",
|
|
13153
13604
|
type: "int",
|
|
13154
13605
|
nullable: true,
|
|
@@ -13156,11 +13607,11 @@ __decorateClass([
|
|
|
13156
13607
|
})
|
|
13157
13608
|
], SequenceGenerator.prototype, "year", 2);
|
|
13158
13609
|
SequenceGenerator = __decorateClass([
|
|
13159
|
-
(0,
|
|
13610
|
+
(0, import_typeorm75.Entity)("sequence_generators")
|
|
13160
13611
|
], SequenceGenerator);
|
|
13161
13612
|
|
|
13162
13613
|
// src/entities/question.entity.ts
|
|
13163
|
-
var
|
|
13614
|
+
var import_typeorm76 = require("typeorm");
|
|
13164
13615
|
var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
13165
13616
|
QuestionFor2["CLIENT"] = "CLIENT";
|
|
13166
13617
|
QuestionFor2["FREELANCER"] = "FREELANCER";
|
|
@@ -13169,16 +13620,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
|
13169
13620
|
var Question = class extends BaseEntity {
|
|
13170
13621
|
};
|
|
13171
13622
|
__decorateClass([
|
|
13172
|
-
(0,
|
|
13623
|
+
(0, import_typeorm76.Column)({ name: "question", type: "varchar" })
|
|
13173
13624
|
], Question.prototype, "question", 2);
|
|
13174
13625
|
__decorateClass([
|
|
13175
|
-
(0,
|
|
13626
|
+
(0, import_typeorm76.Column)({ name: "hint", type: "varchar", nullable: true })
|
|
13176
13627
|
], Question.prototype, "hint", 2);
|
|
13177
13628
|
__decorateClass([
|
|
13178
|
-
(0,
|
|
13629
|
+
(0, import_typeorm76.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
13179
13630
|
], Question.prototype, "slug", 2);
|
|
13180
13631
|
__decorateClass([
|
|
13181
|
-
(0,
|
|
13632
|
+
(0, import_typeorm76.Column)({
|
|
13182
13633
|
name: "question_for",
|
|
13183
13634
|
type: "enum",
|
|
13184
13635
|
enum: QuestionFor,
|
|
@@ -13186,45 +13637,45 @@ __decorateClass([
|
|
|
13186
13637
|
})
|
|
13187
13638
|
], Question.prototype, "questionFor", 2);
|
|
13188
13639
|
__decorateClass([
|
|
13189
|
-
(0,
|
|
13640
|
+
(0, import_typeorm76.Column)({ name: "type", type: "varchar", nullable: true })
|
|
13190
13641
|
], Question.prototype, "type", 2);
|
|
13191
13642
|
__decorateClass([
|
|
13192
|
-
(0,
|
|
13643
|
+
(0, import_typeorm76.Column)({ name: "options", type: "jsonb", nullable: true })
|
|
13193
13644
|
], Question.prototype, "options", 2);
|
|
13194
13645
|
__decorateClass([
|
|
13195
|
-
(0,
|
|
13646
|
+
(0, import_typeorm76.Column)({ name: "is_active", type: "boolean", default: false })
|
|
13196
13647
|
], Question.prototype, "isActive", 2);
|
|
13197
13648
|
Question = __decorateClass([
|
|
13198
|
-
(0,
|
|
13649
|
+
(0, import_typeorm76.Entity)("questions")
|
|
13199
13650
|
], Question);
|
|
13200
13651
|
|
|
13201
13652
|
// src/entities/skill.entity.ts
|
|
13202
|
-
var
|
|
13653
|
+
var import_typeorm77 = require("typeorm");
|
|
13203
13654
|
var Skill = class extends BaseEntity {
|
|
13204
13655
|
};
|
|
13205
13656
|
__decorateClass([
|
|
13206
|
-
(0,
|
|
13657
|
+
(0, import_typeorm77.Column)({ name: "name", type: "varchar", nullable: true })
|
|
13207
13658
|
], Skill.prototype, "name", 2);
|
|
13208
13659
|
__decorateClass([
|
|
13209
|
-
(0,
|
|
13660
|
+
(0, import_typeorm77.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
13210
13661
|
], Skill.prototype, "slug", 2);
|
|
13211
13662
|
__decorateClass([
|
|
13212
|
-
(0,
|
|
13663
|
+
(0, import_typeorm77.Column)({ name: "is_active", type: "boolean", default: false })
|
|
13213
13664
|
], Skill.prototype, "isActive", 2);
|
|
13214
13665
|
Skill = __decorateClass([
|
|
13215
|
-
(0,
|
|
13666
|
+
(0, import_typeorm77.Entity)("skills")
|
|
13216
13667
|
], Skill);
|
|
13217
13668
|
|
|
13218
13669
|
// src/entities/skill-catalog.entity.ts
|
|
13219
|
-
var
|
|
13670
|
+
var import_typeorm78 = require("typeorm");
|
|
13220
13671
|
var SkillCatalog = class extends BaseEntity {
|
|
13221
13672
|
};
|
|
13222
13673
|
__decorateClass([
|
|
13223
|
-
(0,
|
|
13224
|
-
(0,
|
|
13674
|
+
(0, import_typeorm78.Column)({ name: "canonical_name", type: "varchar", length: 100, unique: true }),
|
|
13675
|
+
(0, import_typeorm78.Index)()
|
|
13225
13676
|
], SkillCatalog.prototype, "canonicalName", 2);
|
|
13226
13677
|
__decorateClass([
|
|
13227
|
-
(0,
|
|
13678
|
+
(0, import_typeorm78.Column)({
|
|
13228
13679
|
name: "aliases",
|
|
13229
13680
|
type: "text",
|
|
13230
13681
|
array: true,
|
|
@@ -13232,20 +13683,20 @@ __decorateClass([
|
|
|
13232
13683
|
})
|
|
13233
13684
|
], SkillCatalog.prototype, "aliases", 2);
|
|
13234
13685
|
__decorateClass([
|
|
13235
|
-
(0,
|
|
13686
|
+
(0, import_typeorm78.Column)({
|
|
13236
13687
|
name: "variations",
|
|
13237
13688
|
type: "jsonb",
|
|
13238
13689
|
default: "{}"
|
|
13239
13690
|
})
|
|
13240
13691
|
], SkillCatalog.prototype, "variations", 2);
|
|
13241
13692
|
__decorateClass([
|
|
13242
|
-
(0,
|
|
13693
|
+
(0, import_typeorm78.Column)({ name: "category", type: "varchar", length: 50, nullable: true })
|
|
13243
13694
|
], SkillCatalog.prototype, "category", 2);
|
|
13244
13695
|
__decorateClass([
|
|
13245
|
-
(0,
|
|
13696
|
+
(0, import_typeorm78.Column)({ name: "parent_skill", type: "varchar", length: 100, nullable: true })
|
|
13246
13697
|
], SkillCatalog.prototype, "parentSkill", 2);
|
|
13247
13698
|
__decorateClass([
|
|
13248
|
-
(0,
|
|
13699
|
+
(0, import_typeorm78.Column)({
|
|
13249
13700
|
name: "related_skills",
|
|
13250
13701
|
type: "text",
|
|
13251
13702
|
array: true,
|
|
@@ -13253,68 +13704,68 @@ __decorateClass([
|
|
|
13253
13704
|
})
|
|
13254
13705
|
], SkillCatalog.prototype, "relatedSkills", 2);
|
|
13255
13706
|
__decorateClass([
|
|
13256
|
-
(0,
|
|
13257
|
-
(0,
|
|
13707
|
+
(0, import_typeorm78.Column)({ name: "usage_count", type: "integer", default: 0 }),
|
|
13708
|
+
(0, import_typeorm78.Index)()
|
|
13258
13709
|
], SkillCatalog.prototype, "usageCount", 2);
|
|
13259
13710
|
__decorateClass([
|
|
13260
|
-
(0,
|
|
13711
|
+
(0, import_typeorm78.Column)({ name: "is_verified", type: "boolean", default: false })
|
|
13261
13712
|
], SkillCatalog.prototype, "isVerified", 2);
|
|
13262
13713
|
__decorateClass([
|
|
13263
|
-
(0,
|
|
13714
|
+
(0, import_typeorm78.Column)({ name: "first_seen_date", type: "date" })
|
|
13264
13715
|
], SkillCatalog.prototype, "firstSeenDate", 2);
|
|
13265
13716
|
__decorateClass([
|
|
13266
|
-
(0,
|
|
13717
|
+
(0, import_typeorm78.Column)({ name: "last_updated_date", type: "date" })
|
|
13267
13718
|
], SkillCatalog.prototype, "lastUpdatedDate", 2);
|
|
13268
13719
|
__decorateClass([
|
|
13269
|
-
(0,
|
|
13720
|
+
(0, import_typeorm78.Column)({
|
|
13270
13721
|
name: "search_vector",
|
|
13271
13722
|
type: "tsvector",
|
|
13272
13723
|
nullable: true
|
|
13273
13724
|
})
|
|
13274
13725
|
], SkillCatalog.prototype, "searchVector", 2);
|
|
13275
13726
|
SkillCatalog = __decorateClass([
|
|
13276
|
-
(0,
|
|
13727
|
+
(0, import_typeorm78.Entity)("skill_catalogs")
|
|
13277
13728
|
], SkillCatalog);
|
|
13278
13729
|
|
|
13279
13730
|
// src/entities/job-role.entity.ts
|
|
13280
|
-
var
|
|
13731
|
+
var import_typeorm79 = require("typeorm");
|
|
13281
13732
|
var JobRoles = class extends BaseEntity {
|
|
13282
13733
|
};
|
|
13283
13734
|
__decorateClass([
|
|
13284
|
-
(0,
|
|
13735
|
+
(0, import_typeorm79.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
13285
13736
|
], JobRoles.prototype, "slug", 2);
|
|
13286
13737
|
__decorateClass([
|
|
13287
|
-
(0,
|
|
13738
|
+
(0, import_typeorm79.Column)({ name: "name", type: "varchar", nullable: true })
|
|
13288
13739
|
], JobRoles.prototype, "name", 2);
|
|
13289
13740
|
__decorateClass([
|
|
13290
|
-
(0,
|
|
13741
|
+
(0, import_typeorm79.Column)({ name: "is_active", type: "boolean", default: true })
|
|
13291
13742
|
], JobRoles.prototype, "isActive", 2);
|
|
13292
13743
|
JobRoles = __decorateClass([
|
|
13293
|
-
(0,
|
|
13744
|
+
(0, import_typeorm79.Entity)("job_roles")
|
|
13294
13745
|
], JobRoles);
|
|
13295
13746
|
|
|
13296
13747
|
// src/entities/cms.entity.ts
|
|
13297
|
-
var
|
|
13748
|
+
var import_typeorm80 = require("typeorm");
|
|
13298
13749
|
var Cms = class extends BaseEntity {
|
|
13299
13750
|
};
|
|
13300
13751
|
__decorateClass([
|
|
13301
|
-
(0,
|
|
13752
|
+
(0, import_typeorm80.Column)({ name: "title", type: "varchar", nullable: true })
|
|
13302
13753
|
], Cms.prototype, "title", 2);
|
|
13303
13754
|
__decorateClass([
|
|
13304
|
-
(0,
|
|
13755
|
+
(0, import_typeorm80.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
13305
13756
|
], Cms.prototype, "slug", 2);
|
|
13306
13757
|
__decorateClass([
|
|
13307
|
-
(0,
|
|
13758
|
+
(0, import_typeorm80.Column)({ name: "content", type: "varchar", nullable: true })
|
|
13308
13759
|
], Cms.prototype, "content", 2);
|
|
13309
13760
|
__decorateClass([
|
|
13310
|
-
(0,
|
|
13761
|
+
(0, import_typeorm80.Column)({ name: "is_active", type: "boolean", default: true })
|
|
13311
13762
|
], Cms.prototype, "isActive", 2);
|
|
13312
13763
|
Cms = __decorateClass([
|
|
13313
|
-
(0,
|
|
13764
|
+
(0, import_typeorm80.Entity)("cms")
|
|
13314
13765
|
], Cms);
|
|
13315
13766
|
|
|
13316
13767
|
// src/entities/lead.entity.ts
|
|
13317
|
-
var
|
|
13768
|
+
var import_typeorm81 = require("typeorm");
|
|
13318
13769
|
var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
|
|
13319
13770
|
CategoryEmum2["BUSINESS"] = "BUSINESS";
|
|
13320
13771
|
CategoryEmum2["FREELANCER"] = "FREELANCER";
|
|
@@ -13323,22 +13774,22 @@ var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
|
|
|
13323
13774
|
var Lead = class extends BaseEntity {
|
|
13324
13775
|
};
|
|
13325
13776
|
__decorateClass([
|
|
13326
|
-
(0,
|
|
13777
|
+
(0, import_typeorm81.Column)({ name: "name", type: "varchar", nullable: true })
|
|
13327
13778
|
], Lead.prototype, "name", 2);
|
|
13328
13779
|
__decorateClass([
|
|
13329
|
-
(0,
|
|
13780
|
+
(0, import_typeorm81.Column)({ name: "mobile_code", type: "varchar", nullable: true })
|
|
13330
13781
|
], Lead.prototype, "mobileCode", 2);
|
|
13331
13782
|
__decorateClass([
|
|
13332
|
-
(0,
|
|
13783
|
+
(0, import_typeorm81.Column)({ name: "mobile", type: "varchar", nullable: true })
|
|
13333
13784
|
], Lead.prototype, "mobile", 2);
|
|
13334
13785
|
__decorateClass([
|
|
13335
|
-
(0,
|
|
13786
|
+
(0, import_typeorm81.Column)({ name: "email", type: "varchar", nullable: true })
|
|
13336
13787
|
], Lead.prototype, "email", 2);
|
|
13337
13788
|
__decorateClass([
|
|
13338
|
-
(0,
|
|
13789
|
+
(0, import_typeorm81.Column)({ name: "description", type: "varchar", nullable: true })
|
|
13339
13790
|
], Lead.prototype, "description", 2);
|
|
13340
13791
|
__decorateClass([
|
|
13341
|
-
(0,
|
|
13792
|
+
(0, import_typeorm81.Column)({
|
|
13342
13793
|
name: "category",
|
|
13343
13794
|
type: "enum",
|
|
13344
13795
|
enum: CategoryEmum,
|
|
@@ -13346,129 +13797,129 @@ __decorateClass([
|
|
|
13346
13797
|
})
|
|
13347
13798
|
], Lead.prototype, "category", 2);
|
|
13348
13799
|
Lead = __decorateClass([
|
|
13349
|
-
(0,
|
|
13800
|
+
(0, import_typeorm81.Entity)("leads")
|
|
13350
13801
|
], Lead);
|
|
13351
13802
|
|
|
13352
13803
|
// src/entities/job-freelancer-recommendation.entity.ts
|
|
13353
|
-
var
|
|
13804
|
+
var import_typeorm82 = require("typeorm");
|
|
13354
13805
|
var JobFreelancerRecommendation = class {
|
|
13355
13806
|
};
|
|
13356
13807
|
__decorateClass([
|
|
13357
|
-
(0,
|
|
13808
|
+
(0, import_typeorm82.ViewColumn)({ name: "job_id" })
|
|
13358
13809
|
], JobFreelancerRecommendation.prototype, "jobId", 2);
|
|
13359
13810
|
__decorateClass([
|
|
13360
|
-
(0,
|
|
13811
|
+
(0, import_typeorm82.ViewColumn)({ name: "job_uuid" })
|
|
13361
13812
|
], JobFreelancerRecommendation.prototype, "jobUuid", 2);
|
|
13362
13813
|
__decorateClass([
|
|
13363
|
-
(0,
|
|
13814
|
+
(0, import_typeorm82.ViewColumn)({ name: "job_unique_id" })
|
|
13364
13815
|
], JobFreelancerRecommendation.prototype, "jobUniqueId", 2);
|
|
13365
13816
|
__decorateClass([
|
|
13366
|
-
(0,
|
|
13817
|
+
(0, import_typeorm82.ViewColumn)({ name: "job_role" })
|
|
13367
13818
|
], JobFreelancerRecommendation.prototype, "jobRole", 2);
|
|
13368
13819
|
__decorateClass([
|
|
13369
|
-
(0,
|
|
13820
|
+
(0, import_typeorm82.ViewColumn)({ name: "job_openings" })
|
|
13370
13821
|
], JobFreelancerRecommendation.prototype, "jobOpenings", 2);
|
|
13371
13822
|
__decorateClass([
|
|
13372
|
-
(0,
|
|
13823
|
+
(0, import_typeorm82.ViewColumn)({ name: "job_location" })
|
|
13373
13824
|
], JobFreelancerRecommendation.prototype, "jobLocation", 2);
|
|
13374
13825
|
__decorateClass([
|
|
13375
|
-
(0,
|
|
13826
|
+
(0, import_typeorm82.ViewColumn)({ name: "job_currency" })
|
|
13376
13827
|
], JobFreelancerRecommendation.prototype, "jobCurrency", 2);
|
|
13377
13828
|
__decorateClass([
|
|
13378
|
-
(0,
|
|
13829
|
+
(0, import_typeorm82.ViewColumn)({ name: "job_salary_from" })
|
|
13379
13830
|
], JobFreelancerRecommendation.prototype, "jobSalaryFrom", 2);
|
|
13380
13831
|
__decorateClass([
|
|
13381
|
-
(0,
|
|
13832
|
+
(0, import_typeorm82.ViewColumn)({ name: "job_salary_to" })
|
|
13382
13833
|
], JobFreelancerRecommendation.prototype, "jobSalaryTo", 2);
|
|
13383
13834
|
__decorateClass([
|
|
13384
|
-
(0,
|
|
13835
|
+
(0, import_typeorm82.ViewColumn)({ name: "job_employment_type" })
|
|
13385
13836
|
], JobFreelancerRecommendation.prototype, "jobEmploymentType", 2);
|
|
13386
13837
|
__decorateClass([
|
|
13387
|
-
(0,
|
|
13838
|
+
(0, import_typeorm82.ViewColumn)({ name: "application_received" })
|
|
13388
13839
|
], JobFreelancerRecommendation.prototype, "applicationReceived", 2);
|
|
13389
13840
|
__decorateClass([
|
|
13390
|
-
(0,
|
|
13841
|
+
(0, import_typeorm82.ViewColumn)({ name: "job_posted_at" })
|
|
13391
13842
|
], JobFreelancerRecommendation.prototype, "jobPostedAt", 2);
|
|
13392
13843
|
__decorateClass([
|
|
13393
|
-
(0,
|
|
13844
|
+
(0, import_typeorm82.ViewColumn)({ name: "freelancer_id" })
|
|
13394
13845
|
], JobFreelancerRecommendation.prototype, "freelancerId", 2);
|
|
13395
13846
|
__decorateClass([
|
|
13396
|
-
(0,
|
|
13847
|
+
(0, import_typeorm82.ViewColumn)({ name: "freelancer_uuid" })
|
|
13397
13848
|
], JobFreelancerRecommendation.prototype, "freelancerUuid", 2);
|
|
13398
13849
|
__decorateClass([
|
|
13399
|
-
(0,
|
|
13850
|
+
(0, import_typeorm82.ViewColumn)({ name: "freelancer_unique_id" })
|
|
13400
13851
|
], JobFreelancerRecommendation.prototype, "freelancerUniqueId", 2);
|
|
13401
13852
|
__decorateClass([
|
|
13402
|
-
(0,
|
|
13853
|
+
(0, import_typeorm82.ViewColumn)({ name: "freelancer_first_name" })
|
|
13403
13854
|
], JobFreelancerRecommendation.prototype, "freelancerFirstName", 2);
|
|
13404
13855
|
__decorateClass([
|
|
13405
|
-
(0,
|
|
13856
|
+
(0, import_typeorm82.ViewColumn)({ name: "freelancer_last_name" })
|
|
13406
13857
|
], JobFreelancerRecommendation.prototype, "freelancerLastName", 2);
|
|
13407
13858
|
__decorateClass([
|
|
13408
|
-
(0,
|
|
13859
|
+
(0, import_typeorm82.ViewColumn)({ name: "freelancer_email" })
|
|
13409
13860
|
], JobFreelancerRecommendation.prototype, "freelancerEmail", 2);
|
|
13410
13861
|
__decorateClass([
|
|
13411
|
-
(0,
|
|
13862
|
+
(0, import_typeorm82.ViewColumn)({ name: "freelancer_profile_picture" })
|
|
13412
13863
|
], JobFreelancerRecommendation.prototype, "freelancerProfilePicture", 2);
|
|
13413
13864
|
__decorateClass([
|
|
13414
|
-
(0,
|
|
13865
|
+
(0, import_typeorm82.ViewColumn)({ name: "freelancer_is_social" })
|
|
13415
13866
|
], JobFreelancerRecommendation.prototype, "freelancerIsSocial", 2);
|
|
13416
13867
|
__decorateClass([
|
|
13417
|
-
(0,
|
|
13868
|
+
(0, import_typeorm82.ViewColumn)({ name: "freelancer_created_at" })
|
|
13418
13869
|
], JobFreelancerRecommendation.prototype, "freelancerCreatedAt", 2);
|
|
13419
13870
|
__decorateClass([
|
|
13420
|
-
(0,
|
|
13871
|
+
(0, import_typeorm82.ViewColumn)({ name: "freelancer_designation" })
|
|
13421
13872
|
], JobFreelancerRecommendation.prototype, "freelancerDesignation", 2);
|
|
13422
13873
|
__decorateClass([
|
|
13423
|
-
(0,
|
|
13874
|
+
(0, import_typeorm82.ViewColumn)({ name: "freelancer_experience" })
|
|
13424
13875
|
], JobFreelancerRecommendation.prototype, "freelancerExperience", 2);
|
|
13425
13876
|
__decorateClass([
|
|
13426
|
-
(0,
|
|
13877
|
+
(0, import_typeorm82.ViewColumn)({ name: "freelancer_expertshub_verified" })
|
|
13427
13878
|
], JobFreelancerRecommendation.prototype, "freelancerExpertshubVerified", 2);
|
|
13428
13879
|
__decorateClass([
|
|
13429
|
-
(0,
|
|
13880
|
+
(0, import_typeorm82.ViewColumn)({ name: "freelancer_hourly_compensation" })
|
|
13430
13881
|
], JobFreelancerRecommendation.prototype, "freelancerHourlyCompensation", 2);
|
|
13431
13882
|
__decorateClass([
|
|
13432
|
-
(0,
|
|
13883
|
+
(0, import_typeorm82.ViewColumn)({ name: "freelancer_country_name" })
|
|
13433
13884
|
], JobFreelancerRecommendation.prototype, "freelancerCountryName", 2);
|
|
13434
13885
|
__decorateClass([
|
|
13435
|
-
(0,
|
|
13886
|
+
(0, import_typeorm82.ViewColumn)({ name: "freelancer_country_iso_code" })
|
|
13436
13887
|
], JobFreelancerRecommendation.prototype, "freelancerCountryIsoCode", 2);
|
|
13437
13888
|
__decorateClass([
|
|
13438
|
-
(0,
|
|
13889
|
+
(0, import_typeorm82.ViewColumn)({ name: "client_id" })
|
|
13439
13890
|
], JobFreelancerRecommendation.prototype, "clientId", 2);
|
|
13440
13891
|
__decorateClass([
|
|
13441
|
-
(0,
|
|
13892
|
+
(0, import_typeorm82.ViewColumn)({ name: "client_uuid" })
|
|
13442
13893
|
], JobFreelancerRecommendation.prototype, "clientUuid", 2);
|
|
13443
13894
|
__decorateClass([
|
|
13444
|
-
(0,
|
|
13895
|
+
(0, import_typeorm82.ViewColumn)({ name: "client_first_name" })
|
|
13445
13896
|
], JobFreelancerRecommendation.prototype, "clientFirstName", 2);
|
|
13446
13897
|
__decorateClass([
|
|
13447
|
-
(0,
|
|
13898
|
+
(0, import_typeorm82.ViewColumn)({ name: "client_last_name" })
|
|
13448
13899
|
], JobFreelancerRecommendation.prototype, "clientLastName", 2);
|
|
13449
13900
|
__decorateClass([
|
|
13450
|
-
(0,
|
|
13901
|
+
(0, import_typeorm82.ViewColumn)({ name: "client_email" })
|
|
13451
13902
|
], JobFreelancerRecommendation.prototype, "clientEmail", 2);
|
|
13452
13903
|
__decorateClass([
|
|
13453
|
-
(0,
|
|
13904
|
+
(0, import_typeorm82.ViewColumn)({ name: "client_company_logo" })
|
|
13454
13905
|
], JobFreelancerRecommendation.prototype, "clientCompanyLogo", 2);
|
|
13455
13906
|
__decorateClass([
|
|
13456
|
-
(0,
|
|
13907
|
+
(0, import_typeorm82.ViewColumn)({ name: "client_company_name" })
|
|
13457
13908
|
], JobFreelancerRecommendation.prototype, "clientCompanyName", 2);
|
|
13458
13909
|
__decorateClass([
|
|
13459
|
-
(0,
|
|
13910
|
+
(0, import_typeorm82.ViewColumn)({ name: "matching_skills" })
|
|
13460
13911
|
], JobFreelancerRecommendation.prototype, "matchingSkills", 2);
|
|
13461
13912
|
__decorateClass([
|
|
13462
|
-
(0,
|
|
13913
|
+
(0, import_typeorm82.ViewColumn)({ name: "matching_skills_count" })
|
|
13463
13914
|
], JobFreelancerRecommendation.prototype, "matchingSkillsCount", 2);
|
|
13464
13915
|
__decorateClass([
|
|
13465
|
-
(0,
|
|
13916
|
+
(0, import_typeorm82.ViewColumn)({ name: "required_skills" })
|
|
13466
13917
|
], JobFreelancerRecommendation.prototype, "requiredSkills", 2);
|
|
13467
13918
|
__decorateClass([
|
|
13468
|
-
(0,
|
|
13919
|
+
(0, import_typeorm82.ViewColumn)({ name: "required_skills_count" })
|
|
13469
13920
|
], JobFreelancerRecommendation.prototype, "requiredSkillsCount", 2);
|
|
13470
13921
|
JobFreelancerRecommendation = __decorateClass([
|
|
13471
|
-
(0,
|
|
13922
|
+
(0, import_typeorm82.ViewEntity)({
|
|
13472
13923
|
name: "job_freelancer_recommendations",
|
|
13473
13924
|
materialized: true,
|
|
13474
13925
|
synchronize: false
|
|
@@ -13477,32 +13928,32 @@ JobFreelancerRecommendation = __decorateClass([
|
|
|
13477
13928
|
], JobFreelancerRecommendation);
|
|
13478
13929
|
|
|
13479
13930
|
// src/entities/job-freelancer-recommendation-v2.entity.ts
|
|
13480
|
-
var
|
|
13931
|
+
var import_typeorm83 = require("typeorm");
|
|
13481
13932
|
var JobFreelancerRecommendationV2 = class {
|
|
13482
13933
|
};
|
|
13483
13934
|
__decorateClass([
|
|
13484
|
-
(0,
|
|
13935
|
+
(0, import_typeorm83.ViewColumn)({ name: "job_id" })
|
|
13485
13936
|
], JobFreelancerRecommendationV2.prototype, "jobId", 2);
|
|
13486
13937
|
__decorateClass([
|
|
13487
|
-
(0,
|
|
13938
|
+
(0, import_typeorm83.ViewColumn)({ name: "job_owner_id" })
|
|
13488
13939
|
], JobFreelancerRecommendationV2.prototype, "jobOwnerId", 2);
|
|
13489
13940
|
__decorateClass([
|
|
13490
|
-
(0,
|
|
13941
|
+
(0, import_typeorm83.ViewColumn)({ name: "freelancer_id" })
|
|
13491
13942
|
], JobFreelancerRecommendationV2.prototype, "freelancerId", 2);
|
|
13492
13943
|
__decorateClass([
|
|
13493
|
-
(0,
|
|
13944
|
+
(0, import_typeorm83.ViewColumn)({ name: "matching_skills" })
|
|
13494
13945
|
], JobFreelancerRecommendationV2.prototype, "matchingSkills", 2);
|
|
13495
13946
|
__decorateClass([
|
|
13496
|
-
(0,
|
|
13947
|
+
(0, import_typeorm83.ViewColumn)({ name: "matching_skills_count" })
|
|
13497
13948
|
], JobFreelancerRecommendationV2.prototype, "matchingSkillsCount", 2);
|
|
13498
13949
|
__decorateClass([
|
|
13499
|
-
(0,
|
|
13950
|
+
(0, import_typeorm83.ViewColumn)({ name: "required_skills" })
|
|
13500
13951
|
], JobFreelancerRecommendationV2.prototype, "requiredSkills", 2);
|
|
13501
13952
|
__decorateClass([
|
|
13502
|
-
(0,
|
|
13953
|
+
(0, import_typeorm83.ViewColumn)({ name: "required_skills_count" })
|
|
13503
13954
|
], JobFreelancerRecommendationV2.prototype, "requiredSkillsCount", 2);
|
|
13504
13955
|
JobFreelancerRecommendationV2 = __decorateClass([
|
|
13505
|
-
(0,
|
|
13956
|
+
(0, import_typeorm83.ViewEntity)({
|
|
13506
13957
|
name: "job_freelancer_recommendations_v2",
|
|
13507
13958
|
materialized: true,
|
|
13508
13959
|
synchronize: false
|
|
@@ -13511,74 +13962,74 @@ JobFreelancerRecommendationV2 = __decorateClass([
|
|
|
13511
13962
|
], JobFreelancerRecommendationV2);
|
|
13512
13963
|
|
|
13513
13964
|
// src/entities/client-freelancer-recommendation.entity.ts
|
|
13514
|
-
var
|
|
13965
|
+
var import_typeorm84 = require("typeorm");
|
|
13515
13966
|
var ClientFreelancerRecommendation = class {
|
|
13516
13967
|
};
|
|
13517
13968
|
__decorateClass([
|
|
13518
|
-
(0,
|
|
13969
|
+
(0, import_typeorm84.ViewColumn)({ name: "client_id" })
|
|
13519
13970
|
], ClientFreelancerRecommendation.prototype, "clientId", 2);
|
|
13520
13971
|
__decorateClass([
|
|
13521
|
-
(0,
|
|
13972
|
+
(0, import_typeorm84.ViewColumn)({ name: "client_uuid" })
|
|
13522
13973
|
], ClientFreelancerRecommendation.prototype, "clientUuid", 2);
|
|
13523
13974
|
__decorateClass([
|
|
13524
|
-
(0,
|
|
13975
|
+
(0, import_typeorm84.ViewColumn)({ name: "freelancer_id" })
|
|
13525
13976
|
], ClientFreelancerRecommendation.prototype, "freelancerId", 2);
|
|
13526
13977
|
__decorateClass([
|
|
13527
|
-
(0,
|
|
13978
|
+
(0, import_typeorm84.ViewColumn)({ name: "freelancer_uuid" })
|
|
13528
13979
|
], ClientFreelancerRecommendation.prototype, "freelancerUuid", 2);
|
|
13529
13980
|
__decorateClass([
|
|
13530
|
-
(0,
|
|
13981
|
+
(0, import_typeorm84.ViewColumn)({ name: "freelancer_unique_id" })
|
|
13531
13982
|
], ClientFreelancerRecommendation.prototype, "freelancerUniqueId", 2);
|
|
13532
13983
|
__decorateClass([
|
|
13533
|
-
(0,
|
|
13984
|
+
(0, import_typeorm84.ViewColumn)({ name: "freelancer_first_name" })
|
|
13534
13985
|
], ClientFreelancerRecommendation.prototype, "freelancerFirstName", 2);
|
|
13535
13986
|
__decorateClass([
|
|
13536
|
-
(0,
|
|
13987
|
+
(0, import_typeorm84.ViewColumn)({ name: "freelancer_last_name" })
|
|
13537
13988
|
], ClientFreelancerRecommendation.prototype, "freelancerLastName", 2);
|
|
13538
13989
|
__decorateClass([
|
|
13539
|
-
(0,
|
|
13990
|
+
(0, import_typeorm84.ViewColumn)({ name: "freelancer_email" })
|
|
13540
13991
|
], ClientFreelancerRecommendation.prototype, "freelancerEmail", 2);
|
|
13541
13992
|
__decorateClass([
|
|
13542
|
-
(0,
|
|
13993
|
+
(0, import_typeorm84.ViewColumn)({ name: "freelancer_profile_picture" })
|
|
13543
13994
|
], ClientFreelancerRecommendation.prototype, "freelancerProfilePicture", 2);
|
|
13544
13995
|
__decorateClass([
|
|
13545
|
-
(0,
|
|
13996
|
+
(0, import_typeorm84.ViewColumn)({ name: "freelancer_is_social" })
|
|
13546
13997
|
], ClientFreelancerRecommendation.prototype, "freelancerIsSocial", 2);
|
|
13547
13998
|
__decorateClass([
|
|
13548
|
-
(0,
|
|
13999
|
+
(0, import_typeorm84.ViewColumn)({ name: "freelancer_created_at" })
|
|
13549
14000
|
], ClientFreelancerRecommendation.prototype, "freelancerCreatedAt", 2);
|
|
13550
14001
|
__decorateClass([
|
|
13551
|
-
(0,
|
|
14002
|
+
(0, import_typeorm84.ViewColumn)({ name: "freelancer_designation" })
|
|
13552
14003
|
], ClientFreelancerRecommendation.prototype, "freelancerDesignation", 2);
|
|
13553
14004
|
__decorateClass([
|
|
13554
|
-
(0,
|
|
14005
|
+
(0, import_typeorm84.ViewColumn)({ name: "freelancer_experience" })
|
|
13555
14006
|
], ClientFreelancerRecommendation.prototype, "freelancerExperience", 2);
|
|
13556
14007
|
__decorateClass([
|
|
13557
|
-
(0,
|
|
14008
|
+
(0, import_typeorm84.ViewColumn)({ name: "freelancer_expertshub_verified" })
|
|
13558
14009
|
], ClientFreelancerRecommendation.prototype, "freelancerExpertshubVerified", 2);
|
|
13559
14010
|
__decorateClass([
|
|
13560
|
-
(0,
|
|
14011
|
+
(0, import_typeorm84.ViewColumn)({ name: "freelancer_hourly_compensation" })
|
|
13561
14012
|
], ClientFreelancerRecommendation.prototype, "freelancerHourlyCompensation", 2);
|
|
13562
14013
|
__decorateClass([
|
|
13563
|
-
(0,
|
|
14014
|
+
(0, import_typeorm84.ViewColumn)({ name: "freelancer_country_name" })
|
|
13564
14015
|
], ClientFreelancerRecommendation.prototype, "freelancerCountryName", 2);
|
|
13565
14016
|
__decorateClass([
|
|
13566
|
-
(0,
|
|
14017
|
+
(0, import_typeorm84.ViewColumn)({ name: "freelancer_country_iso_code" })
|
|
13567
14018
|
], ClientFreelancerRecommendation.prototype, "freelancerCountryIsoCode", 2);
|
|
13568
14019
|
__decorateClass([
|
|
13569
|
-
(0,
|
|
14020
|
+
(0, import_typeorm84.ViewColumn)({ name: "matching_skills" })
|
|
13570
14021
|
], ClientFreelancerRecommendation.prototype, "matchingSkills", 2);
|
|
13571
14022
|
__decorateClass([
|
|
13572
|
-
(0,
|
|
14023
|
+
(0, import_typeorm84.ViewColumn)({ name: "matching_skills_count" })
|
|
13573
14024
|
], ClientFreelancerRecommendation.prototype, "matchingSkillsCount", 2);
|
|
13574
14025
|
__decorateClass([
|
|
13575
|
-
(0,
|
|
14026
|
+
(0, import_typeorm84.ViewColumn)({ name: "required_skills" })
|
|
13576
14027
|
], ClientFreelancerRecommendation.prototype, "requiredSkills", 2);
|
|
13577
14028
|
__decorateClass([
|
|
13578
|
-
(0,
|
|
14029
|
+
(0, import_typeorm84.ViewColumn)({ name: "required_skills_count" })
|
|
13579
14030
|
], ClientFreelancerRecommendation.prototype, "requiredSkillsCount", 2);
|
|
13580
14031
|
ClientFreelancerRecommendation = __decorateClass([
|
|
13581
|
-
(0,
|
|
14032
|
+
(0, import_typeorm84.ViewEntity)({
|
|
13582
14033
|
name: "client_freelancer_recommendations",
|
|
13583
14034
|
materialized: true,
|
|
13584
14035
|
synchronize: false
|
|
@@ -13587,7 +14038,7 @@ ClientFreelancerRecommendation = __decorateClass([
|
|
|
13587
14038
|
], ClientFreelancerRecommendation);
|
|
13588
14039
|
|
|
13589
14040
|
// src/entities/commission.entity.ts
|
|
13590
|
-
var
|
|
14041
|
+
var import_typeorm85 = require("typeorm");
|
|
13591
14042
|
var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
|
|
13592
14043
|
CommissionTypeEnum2["PERCENTAGE"] = "PERCENTAGE";
|
|
13593
14044
|
CommissionTypeEnum2["FLAT"] = "FLAT";
|
|
@@ -13596,7 +14047,7 @@ var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
|
|
|
13596
14047
|
var Commission = class extends BaseEntity {
|
|
13597
14048
|
};
|
|
13598
14049
|
__decorateClass([
|
|
13599
|
-
(0,
|
|
14050
|
+
(0, import_typeorm85.Column)({
|
|
13600
14051
|
name: "freelancer_commission_type",
|
|
13601
14052
|
type: "enum",
|
|
13602
14053
|
enum: CommissionTypeEnum,
|
|
@@ -13604,10 +14055,10 @@ __decorateClass([
|
|
|
13604
14055
|
})
|
|
13605
14056
|
], Commission.prototype, "freelancerCommissionType", 2);
|
|
13606
14057
|
__decorateClass([
|
|
13607
|
-
(0,
|
|
14058
|
+
(0, import_typeorm85.Column)({ name: "freelancer_commission", type: "integer", default: 0 })
|
|
13608
14059
|
], Commission.prototype, "freelancerCommission", 2);
|
|
13609
14060
|
__decorateClass([
|
|
13610
|
-
(0,
|
|
14061
|
+
(0, import_typeorm85.Column)({
|
|
13611
14062
|
name: "client_commission_type",
|
|
13612
14063
|
type: "enum",
|
|
13613
14064
|
enum: CommissionTypeEnum,
|
|
@@ -13615,50 +14066,50 @@ __decorateClass([
|
|
|
13615
14066
|
})
|
|
13616
14067
|
], Commission.prototype, "clientCommissionType", 2);
|
|
13617
14068
|
__decorateClass([
|
|
13618
|
-
(0,
|
|
14069
|
+
(0, import_typeorm85.Column)({ name: "client_commission", type: "integer", default: 0 })
|
|
13619
14070
|
], Commission.prototype, "clientCommission", 2);
|
|
13620
14071
|
Commission = __decorateClass([
|
|
13621
|
-
(0,
|
|
14072
|
+
(0, import_typeorm85.Entity)("commissions")
|
|
13622
14073
|
], Commission);
|
|
13623
14074
|
|
|
13624
14075
|
// src/entities/calendly-meeting-log.entity.ts
|
|
13625
|
-
var
|
|
14076
|
+
var import_typeorm86 = require("typeorm");
|
|
13626
14077
|
var CalendlyMeetingLog = class extends BaseEntity {
|
|
13627
14078
|
};
|
|
13628
14079
|
__decorateClass([
|
|
13629
|
-
(0,
|
|
13630
|
-
(0,
|
|
14080
|
+
(0, import_typeorm86.Column)({ name: "calendly_event_id", type: "varchar", nullable: true }),
|
|
14081
|
+
(0, import_typeorm86.Index)()
|
|
13631
14082
|
], CalendlyMeetingLog.prototype, "calendlyEventId", 2);
|
|
13632
14083
|
__decorateClass([
|
|
13633
|
-
(0,
|
|
14084
|
+
(0, import_typeorm86.Column)({ name: "calendly_event_type", type: "varchar", nullable: true })
|
|
13634
14085
|
], CalendlyMeetingLog.prototype, "calendlyEventType", 2);
|
|
13635
14086
|
__decorateClass([
|
|
13636
|
-
(0,
|
|
14087
|
+
(0, import_typeorm86.Column)({ name: "raw_webhook_data", type: "jsonb", nullable: true })
|
|
13637
14088
|
], CalendlyMeetingLog.prototype, "rawWebhookData", 2);
|
|
13638
14089
|
CalendlyMeetingLog = __decorateClass([
|
|
13639
|
-
(0,
|
|
14090
|
+
(0, import_typeorm86.Entity)("calendly_meeting_logs")
|
|
13640
14091
|
], CalendlyMeetingLog);
|
|
13641
14092
|
|
|
13642
14093
|
// src/entities/zoom-meeting-log.entity.ts
|
|
13643
|
-
var
|
|
14094
|
+
var import_typeorm87 = require("typeorm");
|
|
13644
14095
|
var ZoomMeetingLog = class extends BaseEntity {
|
|
13645
14096
|
};
|
|
13646
14097
|
__decorateClass([
|
|
13647
|
-
(0,
|
|
13648
|
-
(0,
|
|
14098
|
+
(0, import_typeorm87.Column)({ name: "zoom_meeting_id", type: "varchar", nullable: true }),
|
|
14099
|
+
(0, import_typeorm87.Index)()
|
|
13649
14100
|
], ZoomMeetingLog.prototype, "zoomMeetingId", 2);
|
|
13650
14101
|
__decorateClass([
|
|
13651
|
-
(0,
|
|
14102
|
+
(0, import_typeorm87.Column)({ name: "zoom_event_type", type: "varchar", nullable: true })
|
|
13652
14103
|
], ZoomMeetingLog.prototype, "zoomEventType", 2);
|
|
13653
14104
|
__decorateClass([
|
|
13654
|
-
(0,
|
|
14105
|
+
(0, import_typeorm87.Column)({ name: "raw_webhook_data", type: "jsonb", nullable: true })
|
|
13655
14106
|
], ZoomMeetingLog.prototype, "rawWebhookData", 2);
|
|
13656
14107
|
ZoomMeetingLog = __decorateClass([
|
|
13657
|
-
(0,
|
|
14108
|
+
(0, import_typeorm87.Entity)("zoom_meeting_logs")
|
|
13658
14109
|
], ZoomMeetingLog);
|
|
13659
14110
|
|
|
13660
14111
|
// src/entities/docuseal.entity.ts
|
|
13661
|
-
var
|
|
14112
|
+
var import_typeorm88 = require("typeorm");
|
|
13662
14113
|
var DocuSealTypeEnum = /* @__PURE__ */ ((DocuSealTypeEnum2) => {
|
|
13663
14114
|
DocuSealTypeEnum2["FREELANCER_SERVICE_AGGREMENT"] = "FREELANCER_SERVICE_AGGREMENT";
|
|
13664
14115
|
DocuSealTypeEnum2["CLIENT_SERVICE_AGGREMENT"] = "CLIENT_SERVICE_AGGREMENT";
|
|
@@ -13668,132 +14119,132 @@ var DocuSealTypeEnum = /* @__PURE__ */ ((DocuSealTypeEnum2) => {
|
|
|
13668
14119
|
var DocuSeal = class extends BaseEntity {
|
|
13669
14120
|
};
|
|
13670
14121
|
__decorateClass([
|
|
13671
|
-
(0,
|
|
13672
|
-
(0,
|
|
14122
|
+
(0, import_typeorm88.Column)({ name: "reference_id", type: "integer", nullable: false }),
|
|
14123
|
+
(0, import_typeorm88.Index)()
|
|
13673
14124
|
], DocuSeal.prototype, "referenceId", 2);
|
|
13674
14125
|
__decorateClass([
|
|
13675
|
-
(0,
|
|
13676
|
-
(0,
|
|
14126
|
+
(0, import_typeorm88.Column)({ name: "submitter_id", type: "integer", nullable: true }),
|
|
14127
|
+
(0, import_typeorm88.Index)()
|
|
13677
14128
|
], DocuSeal.prototype, "submitterId", 2);
|
|
13678
14129
|
__decorateClass([
|
|
13679
|
-
(0,
|
|
14130
|
+
(0, import_typeorm88.Column)({ name: "submitter_response", type: "jsonb", nullable: true })
|
|
13680
14131
|
], DocuSeal.prototype, "submitterResponse", 2);
|
|
13681
14132
|
__decorateClass([
|
|
13682
|
-
(0,
|
|
14133
|
+
(0, import_typeorm88.Column)({ name: "webhook_response", type: "jsonb", nullable: true })
|
|
13683
14134
|
], DocuSeal.prototype, "webhookResponse", 2);
|
|
13684
14135
|
__decorateClass([
|
|
13685
|
-
(0,
|
|
14136
|
+
(0, import_typeorm88.Column)({ name: "type", type: "enum", enum: DocuSealTypeEnum, nullable: true })
|
|
13686
14137
|
], DocuSeal.prototype, "type", 2);
|
|
13687
14138
|
DocuSeal = __decorateClass([
|
|
13688
|
-
(0,
|
|
14139
|
+
(0, import_typeorm88.Entity)("docuseal")
|
|
13689
14140
|
], DocuSeal);
|
|
13690
14141
|
|
|
13691
14142
|
// src/entities/stripe-logs.entity.ts
|
|
13692
|
-
var
|
|
14143
|
+
var import_typeorm89 = require("typeorm");
|
|
13693
14144
|
var StripeLog = class extends BaseEntity {
|
|
13694
14145
|
};
|
|
13695
14146
|
__decorateClass([
|
|
13696
|
-
(0,
|
|
14147
|
+
(0, import_typeorm89.Column)({ name: "stripe_event_id", type: "varchar", nullable: true })
|
|
13697
14148
|
], StripeLog.prototype, "stripeEventId", 2);
|
|
13698
14149
|
__decorateClass([
|
|
13699
|
-
(0,
|
|
14150
|
+
(0, import_typeorm89.Column)({ name: "event_type", type: "varchar", nullable: true })
|
|
13700
14151
|
], StripeLog.prototype, "eventType", 2);
|
|
13701
14152
|
__decorateClass([
|
|
13702
|
-
(0,
|
|
14153
|
+
(0, import_typeorm89.Column)({ name: "stripe_account_id", type: "varchar", nullable: true })
|
|
13703
14154
|
], StripeLog.prototype, "stripeAccountId", 2);
|
|
13704
14155
|
__decorateClass([
|
|
13705
|
-
(0,
|
|
14156
|
+
(0, import_typeorm89.Column)({ name: "raw_webhook_data", type: "jsonb", nullable: true })
|
|
13706
14157
|
], StripeLog.prototype, "rawWebhookData", 2);
|
|
13707
14158
|
StripeLog = __decorateClass([
|
|
13708
|
-
(0,
|
|
14159
|
+
(0, import_typeorm89.Entity)("stripe_logs")
|
|
13709
14160
|
], StripeLog);
|
|
13710
14161
|
|
|
13711
14162
|
// src/entities/recommendation-weightage-config.entity.ts
|
|
13712
|
-
var
|
|
14163
|
+
var import_typeorm90 = require("typeorm");
|
|
13713
14164
|
var RecommendationWeightageConfig = class extends BaseEntity {
|
|
13714
14165
|
};
|
|
13715
14166
|
__decorateClass([
|
|
13716
|
-
(0,
|
|
14167
|
+
(0, import_typeorm90.Column)({
|
|
13717
14168
|
type: "varchar",
|
|
13718
14169
|
length: 100,
|
|
13719
14170
|
unique: true,
|
|
13720
14171
|
comment: "Unique key identifier (e.g., full_time_weights, hourly_weights)"
|
|
13721
14172
|
}),
|
|
13722
|
-
(0,
|
|
14173
|
+
(0, import_typeorm90.Index)()
|
|
13723
14174
|
], RecommendationWeightageConfig.prototype, "key", 2);
|
|
13724
14175
|
__decorateClass([
|
|
13725
|
-
(0,
|
|
14176
|
+
(0, import_typeorm90.Column)({
|
|
13726
14177
|
type: "jsonb",
|
|
13727
14178
|
comment: "JSON object containing weight values",
|
|
13728
14179
|
nullable: true
|
|
13729
14180
|
})
|
|
13730
14181
|
], RecommendationWeightageConfig.prototype, "value", 2);
|
|
13731
14182
|
__decorateClass([
|
|
13732
|
-
(0,
|
|
14183
|
+
(0, import_typeorm90.Column)({ name: "is_active", type: "boolean", default: true })
|
|
13733
14184
|
], RecommendationWeightageConfig.prototype, "isActive", 2);
|
|
13734
14185
|
RecommendationWeightageConfig = __decorateClass([
|
|
13735
|
-
(0,
|
|
14186
|
+
(0, import_typeorm90.Entity)("recommendation_weightage_configs")
|
|
13736
14187
|
], RecommendationWeightageConfig);
|
|
13737
14188
|
|
|
13738
14189
|
// src/entities/global-setting.entity.ts
|
|
13739
|
-
var
|
|
14190
|
+
var import_typeorm91 = require("typeorm");
|
|
13740
14191
|
var GlobalSetting = class extends BaseEntity {
|
|
13741
14192
|
};
|
|
13742
14193
|
__decorateClass([
|
|
13743
|
-
(0,
|
|
14194
|
+
(0, import_typeorm91.Column)({ name: "key", type: "varchar", length: 255, nullable: false, unique: true })
|
|
13744
14195
|
], GlobalSetting.prototype, "key", 2);
|
|
13745
14196
|
__decorateClass([
|
|
13746
|
-
(0,
|
|
14197
|
+
(0, import_typeorm91.Column)({ name: "value", type: "text", nullable: false })
|
|
13747
14198
|
], GlobalSetting.prototype, "value", 2);
|
|
13748
14199
|
GlobalSetting = __decorateClass([
|
|
13749
|
-
(0,
|
|
13750
|
-
(0,
|
|
14200
|
+
(0, import_typeorm91.Entity)("global_settings"),
|
|
14201
|
+
(0, import_typeorm91.Index)(["key"], { unique: true })
|
|
13751
14202
|
], GlobalSetting);
|
|
13752
14203
|
|
|
13753
14204
|
// src/entities/plan.entity.ts
|
|
13754
|
-
var
|
|
14205
|
+
var import_typeorm94 = require("typeorm");
|
|
13755
14206
|
|
|
13756
14207
|
// src/entities/plan-feature.entity.ts
|
|
13757
|
-
var
|
|
14208
|
+
var import_typeorm92 = require("typeorm");
|
|
13758
14209
|
var PlanFeature = class extends BaseEntity {
|
|
13759
14210
|
};
|
|
13760
14211
|
// individual index to find features by plan
|
|
13761
14212
|
__decorateClass([
|
|
13762
|
-
(0,
|
|
13763
|
-
(0,
|
|
14213
|
+
(0, import_typeorm92.Column)({ name: "plan_id", type: "integer", nullable: false }),
|
|
14214
|
+
(0, import_typeorm92.Index)()
|
|
13764
14215
|
], PlanFeature.prototype, "planId", 2);
|
|
13765
14216
|
__decorateClass([
|
|
13766
|
-
(0,
|
|
14217
|
+
(0, import_typeorm92.ManyToOne)(() => Plan, (plan) => plan.features, {
|
|
13767
14218
|
onDelete: "CASCADE",
|
|
13768
14219
|
nullable: false
|
|
13769
14220
|
}),
|
|
13770
|
-
(0,
|
|
14221
|
+
(0, import_typeorm92.JoinColumn)({ name: "plan_id" })
|
|
13771
14222
|
], PlanFeature.prototype, "plan", 2);
|
|
13772
14223
|
__decorateClass([
|
|
13773
|
-
(0,
|
|
14224
|
+
(0, import_typeorm92.Column)({ name: "name", type: "varchar", length: 200 })
|
|
13774
14225
|
], PlanFeature.prototype, "name", 2);
|
|
13775
14226
|
__decorateClass([
|
|
13776
|
-
(0,
|
|
13777
|
-
(0,
|
|
14227
|
+
(0, import_typeorm92.Column)({ name: "slug", type: "varchar", length: 100 }),
|
|
14228
|
+
(0, import_typeorm92.Index)()
|
|
13778
14229
|
], PlanFeature.prototype, "slug", 2);
|
|
13779
14230
|
__decorateClass([
|
|
13780
|
-
(0,
|
|
14231
|
+
(0, import_typeorm92.Column)({ name: "tooltip", type: "varchar", length: 300, nullable: true })
|
|
13781
14232
|
], PlanFeature.prototype, "tooltip", 2);
|
|
13782
14233
|
__decorateClass([
|
|
13783
|
-
(0,
|
|
14234
|
+
(0, import_typeorm92.Column)({ name: "sort_order", type: "smallint", default: 0 })
|
|
13784
14235
|
], PlanFeature.prototype, "sortOrder", 2);
|
|
13785
14236
|
__decorateClass([
|
|
13786
|
-
(0,
|
|
14237
|
+
(0, import_typeorm92.Column)({ name: "is_active", type: "boolean", default: true })
|
|
13787
14238
|
], PlanFeature.prototype, "isActive", 2);
|
|
13788
14239
|
PlanFeature = __decorateClass([
|
|
13789
|
-
(0,
|
|
13790
|
-
(0,
|
|
13791
|
-
(0,
|
|
13792
|
-
(0,
|
|
14240
|
+
(0, import_typeorm92.Entity)("plan_features"),
|
|
14241
|
+
(0, import_typeorm92.Index)("idx_plan_features_plan_id", ["planId"]),
|
|
14242
|
+
(0, import_typeorm92.Index)("idx_plan_features_plan_sort", ["planId", "sortOrder"]),
|
|
14243
|
+
(0, import_typeorm92.Check)("chk_plan_features_sort_order_positive", '"sort_order" >= 0')
|
|
13793
14244
|
], PlanFeature);
|
|
13794
14245
|
|
|
13795
14246
|
// src/entities/plan-pricing.entity.ts
|
|
13796
|
-
var
|
|
14247
|
+
var import_typeorm93 = require("typeorm");
|
|
13797
14248
|
var PlanPricingBillingCycleEnum = /* @__PURE__ */ ((PlanPricingBillingCycleEnum2) => {
|
|
13798
14249
|
PlanPricingBillingCycleEnum2["MONTHLY"] = "monthly";
|
|
13799
14250
|
PlanPricingBillingCycleEnum2["YEARLY"] = "yearly";
|
|
@@ -13848,61 +14299,61 @@ var PlanPricing = class extends BaseEntity {
|
|
|
13848
14299
|
};
|
|
13849
14300
|
// individual index to find pricing by plan
|
|
13850
14301
|
__decorateClass([
|
|
13851
|
-
(0,
|
|
13852
|
-
(0,
|
|
14302
|
+
(0, import_typeorm93.Column)({ name: "plan_id", type: "integer", nullable: false }),
|
|
14303
|
+
(0, import_typeorm93.Index)()
|
|
13853
14304
|
], PlanPricing.prototype, "planId", 2);
|
|
13854
14305
|
__decorateClass([
|
|
13855
|
-
(0,
|
|
14306
|
+
(0, import_typeorm93.ManyToOne)(() => Plan, (plan) => plan.pricing, {
|
|
13856
14307
|
onDelete: "CASCADE",
|
|
13857
14308
|
nullable: false
|
|
13858
14309
|
}),
|
|
13859
|
-
(0,
|
|
14310
|
+
(0, import_typeorm93.JoinColumn)({ name: "plan_id" })
|
|
13860
14311
|
], PlanPricing.prototype, "plan", 2);
|
|
13861
14312
|
__decorateClass([
|
|
13862
|
-
(0,
|
|
14313
|
+
(0, import_typeorm93.Column)({
|
|
13863
14314
|
name: "billing_cycle",
|
|
13864
14315
|
type: "enum",
|
|
13865
14316
|
enum: PlanPricingBillingCycleEnum
|
|
13866
14317
|
})
|
|
13867
14318
|
], PlanPricing.prototype, "billingCycle", 2);
|
|
13868
14319
|
__decorateClass([
|
|
13869
|
-
(0,
|
|
14320
|
+
(0, import_typeorm93.Column)({ name: "price", type: "decimal", precision: 10, scale: 2, default: 0 })
|
|
13870
14321
|
], PlanPricing.prototype, "price", 2);
|
|
13871
14322
|
__decorateClass([
|
|
13872
|
-
(0,
|
|
14323
|
+
(0, import_typeorm93.Column)({ name: "original_price", type: "decimal", precision: 10, scale: 2, nullable: true })
|
|
13873
14324
|
], PlanPricing.prototype, "originalPrice", 2);
|
|
13874
14325
|
__decorateClass([
|
|
13875
|
-
(0,
|
|
14326
|
+
(0, import_typeorm93.Column)({ name: "discount_pct", type: "smallint", nullable: true })
|
|
13876
14327
|
], PlanPricing.prototype, "discountPct", 2);
|
|
13877
14328
|
__decorateClass([
|
|
13878
|
-
(0,
|
|
14329
|
+
(0, import_typeorm93.Column)({ name: "currency", type: "varchar", length: 3, default: "USD" })
|
|
13879
14330
|
], PlanPricing.prototype, "currency", 2);
|
|
13880
14331
|
__decorateClass([
|
|
13881
|
-
(0,
|
|
14332
|
+
(0, import_typeorm93.Column)({ name: "is_free", type: "boolean", default: false })
|
|
13882
14333
|
], PlanPricing.prototype, "isFree", 2);
|
|
13883
14334
|
__decorateClass([
|
|
13884
|
-
(0,
|
|
14335
|
+
(0, import_typeorm93.Column)({ name: "stripe_price_id", type: "varchar", length: 100, nullable: true, unique: true })
|
|
13885
14336
|
], PlanPricing.prototype, "stripePriceId", 2);
|
|
13886
14337
|
__decorateClass([
|
|
13887
|
-
(0,
|
|
14338
|
+
(0, import_typeorm93.Column)({ name: "trial_days", type: "smallint", default: 0 })
|
|
13888
14339
|
], PlanPricing.prototype, "trialDays", 2);
|
|
13889
14340
|
__decorateClass([
|
|
13890
|
-
(0,
|
|
14341
|
+
(0, import_typeorm93.Column)({ name: "is_active", type: "boolean", default: true })
|
|
13891
14342
|
], PlanPricing.prototype, "isActive", 2);
|
|
13892
14343
|
__decorateClass([
|
|
13893
|
-
(0,
|
|
13894
|
-
(0,
|
|
14344
|
+
(0, import_typeorm93.BeforeInsert)(),
|
|
14345
|
+
(0, import_typeorm93.BeforeUpdate)()
|
|
13895
14346
|
], PlanPricing.prototype, "sanitize", 1);
|
|
13896
14347
|
PlanPricing = __decorateClass([
|
|
13897
|
-
(0,
|
|
13898
|
-
(0,
|
|
13899
|
-
(0,
|
|
13900
|
-
(0,
|
|
13901
|
-
(0,
|
|
13902
|
-
(0,
|
|
13903
|
-
(0,
|
|
13904
|
-
(0,
|
|
13905
|
-
(0,
|
|
14348
|
+
(0, import_typeorm93.Entity)("plan_pricings"),
|
|
14349
|
+
(0, import_typeorm93.Unique)("uq_plan_pricings_plan_cycle", ["planId", "billingCycle"]),
|
|
14350
|
+
(0, import_typeorm93.Index)("idx_plan_pricings_plan_id", ["planId"]),
|
|
14351
|
+
(0, import_typeorm93.Index)("idx_plan_pricings_active", ["isActive", "billingCycle"]),
|
|
14352
|
+
(0, import_typeorm93.Check)("chk_plan_pricings_free_price_zero", '("is_free" = false) OR ("is_free" = true AND "price" = 0)'),
|
|
14353
|
+
(0, import_typeorm93.Check)("chk_plan_pricings_trial_days_non_negative", '"trial_days" >= 0'),
|
|
14354
|
+
(0, import_typeorm93.Check)("chk_plan_pricings_discount_range", '"discount_pct" IS NULL OR ("discount_pct" >= 1 AND "discount_pct" <= 99)'),
|
|
14355
|
+
(0, import_typeorm93.Check)("chk_plan_pricings_original_gte_price", '"original_price" IS NULL OR "original_price" >= "price"'),
|
|
14356
|
+
(0, import_typeorm93.Check)("chk_plan_pricings_original_price_non_negative", '"original_price" IS NULL OR "original_price" >= 0')
|
|
13906
14357
|
], PlanPricing);
|
|
13907
14358
|
|
|
13908
14359
|
// src/entities/plan.entity.ts
|
|
@@ -13919,22 +14370,22 @@ var Plan = class extends BaseEntity {
|
|
|
13919
14370
|
}
|
|
13920
14371
|
};
|
|
13921
14372
|
__decorateClass([
|
|
13922
|
-
(0,
|
|
14373
|
+
(0, import_typeorm94.Column)({ name: "name", type: "varchar", length: 100 })
|
|
13923
14374
|
], Plan.prototype, "name", 2);
|
|
13924
14375
|
__decorateClass([
|
|
13925
|
-
(0,
|
|
14376
|
+
(0, import_typeorm94.Column)({ name: "slug", type: "varchar", length: 100 })
|
|
13926
14377
|
], Plan.prototype, "slug", 2);
|
|
13927
14378
|
__decorateClass([
|
|
13928
|
-
(0,
|
|
14379
|
+
(0, import_typeorm94.Column)({ name: "badge_label", type: "varchar", length: 60, nullable: true })
|
|
13929
14380
|
], Plan.prototype, "badgeLabel", 2);
|
|
13930
14381
|
__decorateClass([
|
|
13931
|
-
(0,
|
|
14382
|
+
(0, import_typeorm94.Column)({ name: "sort_order", type: "smallint", default: 0 })
|
|
13932
14383
|
], Plan.prototype, "sortOrder", 2);
|
|
13933
14384
|
__decorateClass([
|
|
13934
|
-
(0,
|
|
14385
|
+
(0, import_typeorm94.Column)({ name: "is_active", type: "boolean", default: true })
|
|
13935
14386
|
], Plan.prototype, "isActive", 2);
|
|
13936
14387
|
__decorateClass([
|
|
13937
|
-
(0,
|
|
14388
|
+
(0, import_typeorm94.Column)({
|
|
13938
14389
|
name: "plan_type",
|
|
13939
14390
|
type: "enum",
|
|
13940
14391
|
enum: PlanTypeEnum,
|
|
@@ -13942,31 +14393,31 @@ __decorateClass([
|
|
|
13942
14393
|
})
|
|
13943
14394
|
], Plan.prototype, "planType", 2);
|
|
13944
14395
|
__decorateClass([
|
|
13945
|
-
(0,
|
|
14396
|
+
(0, import_typeorm94.Column)({ name: "metadata", type: "jsonb", default: {} })
|
|
13946
14397
|
], Plan.prototype, "metadata", 2);
|
|
13947
14398
|
__decorateClass([
|
|
13948
|
-
(0,
|
|
13949
|
-
(0,
|
|
14399
|
+
(0, import_typeorm94.BeforeInsert)(),
|
|
14400
|
+
(0, import_typeorm94.BeforeUpdate)()
|
|
13950
14401
|
], Plan.prototype, "createSlug", 1);
|
|
13951
14402
|
__decorateClass([
|
|
13952
|
-
(0,
|
|
14403
|
+
(0, import_typeorm94.OneToMany)(() => PlanFeature, (feature) => feature.plan, {
|
|
13953
14404
|
cascade: ["insert", "update"]
|
|
13954
14405
|
})
|
|
13955
14406
|
], Plan.prototype, "features", 2);
|
|
13956
14407
|
__decorateClass([
|
|
13957
|
-
(0,
|
|
14408
|
+
(0, import_typeorm94.OneToMany)(() => PlanPricing, (pricing) => pricing.plan, {
|
|
13958
14409
|
cascade: ["insert", "update"]
|
|
13959
14410
|
})
|
|
13960
14411
|
], Plan.prototype, "pricing", 2);
|
|
13961
14412
|
Plan = __decorateClass([
|
|
13962
|
-
(0,
|
|
13963
|
-
(0,
|
|
13964
|
-
(0,
|
|
13965
|
-
(0,
|
|
14413
|
+
(0, import_typeorm94.Entity)("plans"),
|
|
14414
|
+
(0, import_typeorm94.Index)("idx_plans_slug", ["slug"], { unique: true, where: '"is_deleted" IS FALSE' }),
|
|
14415
|
+
(0, import_typeorm94.Index)("idx_plans_active_sort", ["isActive", "sortOrder"]),
|
|
14416
|
+
(0, import_typeorm94.Check)("chk_plans_sort_order_positive", '"sort_order" >= 0')
|
|
13966
14417
|
], Plan);
|
|
13967
14418
|
|
|
13968
14419
|
// src/entities/subscription-feature.entity.ts
|
|
13969
|
-
var
|
|
14420
|
+
var import_typeorm95 = require("typeorm");
|
|
13970
14421
|
var SubscriptionFeature = class extends BaseEntity {
|
|
13971
14422
|
toSlug(value) {
|
|
13972
14423
|
return value.toLowerCase().trim().replace(/\s+/g, "-").replace(/[^a-z0-9-]/g, "").replace(/-+/g, "-").replace(/^-|-$/g, "");
|
|
@@ -13981,29 +14432,29 @@ var SubscriptionFeature = class extends BaseEntity {
|
|
|
13981
14432
|
}
|
|
13982
14433
|
};
|
|
13983
14434
|
__decorateClass([
|
|
13984
|
-
(0,
|
|
14435
|
+
(0, import_typeorm95.Column)({ name: "name", type: "varchar", length: 200 })
|
|
13985
14436
|
], SubscriptionFeature.prototype, "name", 2);
|
|
13986
14437
|
__decorateClass([
|
|
13987
|
-
(0,
|
|
14438
|
+
(0, import_typeorm95.Column)({ name: "slug", type: "varchar", length: 100 })
|
|
13988
14439
|
], SubscriptionFeature.prototype, "slug", 2);
|
|
13989
14440
|
__decorateClass([
|
|
13990
|
-
(0,
|
|
14441
|
+
(0, import_typeorm95.Column)({ name: "tooltip", type: "varchar", length: 300, nullable: true })
|
|
13991
14442
|
], SubscriptionFeature.prototype, "tooltip", 2);
|
|
13992
14443
|
__decorateClass([
|
|
13993
|
-
(0,
|
|
14444
|
+
(0, import_typeorm95.Column)({ name: "sort_order", type: "smallint", default: 0 })
|
|
13994
14445
|
], SubscriptionFeature.prototype, "sortOrder", 2);
|
|
13995
14446
|
__decorateClass([
|
|
13996
|
-
(0,
|
|
14447
|
+
(0, import_typeorm95.Column)({ name: "is_active", type: "boolean", default: true })
|
|
13997
14448
|
], SubscriptionFeature.prototype, "isActive", 2);
|
|
13998
14449
|
__decorateClass([
|
|
13999
|
-
(0,
|
|
14000
|
-
(0,
|
|
14450
|
+
(0, import_typeorm95.BeforeInsert)(),
|
|
14451
|
+
(0, import_typeorm95.BeforeUpdate)()
|
|
14001
14452
|
], SubscriptionFeature.prototype, "createSlug", 1);
|
|
14002
14453
|
SubscriptionFeature = __decorateClass([
|
|
14003
|
-
(0,
|
|
14004
|
-
(0,
|
|
14005
|
-
(0,
|
|
14006
|
-
(0,
|
|
14454
|
+
(0, import_typeorm95.Entity)("subscription_features"),
|
|
14455
|
+
(0, import_typeorm95.Index)("idx_subscription_features_slug", ["slug"], { unique: true, where: '"is_deleted" IS FALSE' }),
|
|
14456
|
+
(0, import_typeorm95.Index)("idx_subscription_features_active_sort", ["isActive", "sortOrder"]),
|
|
14457
|
+
(0, import_typeorm95.Check)("chk_subscription_features_sort_order_positive", '"sort_order" >= 0')
|
|
14007
14458
|
], SubscriptionFeature);
|
|
14008
14459
|
// Annotate the CommonJS export names for ESM import in node:
|
|
14009
14460
|
0 && (module.exports = {
|
|
@@ -14016,6 +14467,7 @@ SubscriptionFeature = __decorateClass([
|
|
|
14016
14467
|
AUTHENTICATION_PATTERN,
|
|
14017
14468
|
AccountStatus,
|
|
14018
14469
|
AccountType,
|
|
14470
|
+
AddClientRemarkDto,
|
|
14019
14471
|
AddGlobalSettingDto,
|
|
14020
14472
|
AddTopupEscrowAmountDto,
|
|
14021
14473
|
AdminCreateJobInformationDto,
|
|
@@ -14133,6 +14585,7 @@ SubscriptionFeature = __decorateClass([
|
|
|
14133
14585
|
CreateQuestionDto,
|
|
14134
14586
|
CreateRatingDto,
|
|
14135
14587
|
CreateSubAdminDto,
|
|
14588
|
+
CreateTaskDto,
|
|
14136
14589
|
CreateUserSigningDto,
|
|
14137
14590
|
CustomQuestionItemDto,
|
|
14138
14591
|
DISPUTE_PATTERN,
|
|
@@ -14273,6 +14726,7 @@ SubscriptionFeature = __decorateClass([
|
|
|
14273
14726
|
MAINTENANCE_PATTERN,
|
|
14274
14727
|
MarkCandidateStatusBulkDto,
|
|
14275
14728
|
MarkCandidateStatusDto,
|
|
14729
|
+
MarkTaskAsCompletedDto,
|
|
14276
14730
|
McqStatusEnum,
|
|
14277
14731
|
ModeOfHire,
|
|
14278
14732
|
ModeOfWork,
|
|
@@ -14362,6 +14816,7 @@ SubscriptionFeature = __decorateClass([
|
|
|
14362
14816
|
SubscriptionFeature,
|
|
14363
14817
|
SystemPreference,
|
|
14364
14818
|
SystemPreferenceDto,
|
|
14819
|
+
TASK_PATTERN,
|
|
14365
14820
|
TIMESHEET_CLIENT_PATTERN,
|
|
14366
14821
|
TIMESHEET_FREELANCER_PATTERN,
|
|
14367
14822
|
Task,
|
|
@@ -14369,11 +14824,17 @@ SubscriptionFeature = __decorateClass([
|
|
|
14369
14824
|
TaskDeliverable,
|
|
14370
14825
|
TaskDeliverableTypeEnum,
|
|
14371
14826
|
TaskPriorityEnum,
|
|
14827
|
+
TaskQuery,
|
|
14828
|
+
TaskQueryCategoryEnum,
|
|
14829
|
+
TaskQueryMessage,
|
|
14830
|
+
TaskQueryStatusEnum,
|
|
14831
|
+
TaskQueryUserTypeEnum,
|
|
14372
14832
|
TaskResource,
|
|
14373
14833
|
TaskResourceTypeEnum,
|
|
14374
14834
|
TaskStatusEnum,
|
|
14375
14835
|
TaskSubtask,
|
|
14376
14836
|
TaskSubtaskStatusEnum,
|
|
14837
|
+
TaskUuidParamDto,
|
|
14377
14838
|
TestNotificationDto,
|
|
14378
14839
|
Timesheet,
|
|
14379
14840
|
TimesheetLine,
|
|
@@ -14400,6 +14861,7 @@ SubscriptionFeature = __decorateClass([
|
|
|
14400
14861
|
UpdateCompanyMemberDto,
|
|
14401
14862
|
UpdateCompanyProfileDto,
|
|
14402
14863
|
UpdateCompanyRoleDto,
|
|
14864
|
+
UpdateEstimateTimeDto,
|
|
14403
14865
|
UpdateFreelancerDto,
|
|
14404
14866
|
UpdateFreelancerProfileDto,
|
|
14405
14867
|
UpdateFreelancerTimesheetDto,
|
|
@@ -14410,6 +14872,7 @@ SubscriptionFeature = __decorateClass([
|
|
|
14410
14872
|
UpdateIsReadDto,
|
|
14411
14873
|
UpdateSubAdminAccountStatusDto,
|
|
14412
14874
|
UpdateSubAdminDto,
|
|
14875
|
+
UpdateTaskDto,
|
|
14413
14876
|
User,
|
|
14414
14877
|
UserRMQAdapter,
|
|
14415
14878
|
UserTCPAdapter,
|