@experts_hub/shared 1.0.685 → 1.0.687
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 +20 -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 +57 -1
- package/dist/index.d.ts +57 -1
- package/dist/index.js +520 -335
- package/dist/index.mjs +450 -271
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -403,6 +403,12 @@ __export(index_exports, {
|
|
|
403
403
|
TaskDeliverable: () => TaskDeliverable,
|
|
404
404
|
TaskDeliverableTypeEnum: () => TaskDeliverableTypeEnum,
|
|
405
405
|
TaskPriorityEnum: () => TaskPriorityEnum,
|
|
406
|
+
TaskQuery: () => TaskQuery,
|
|
407
|
+
TaskQueryCategoryEnum: () => TaskQueryCategoryEnum,
|
|
408
|
+
TaskQueryMessage: () => TaskQueryMessage,
|
|
409
|
+
TaskQueryMessageUserTypeEnum: () => TaskQueryMessageUserTypeEnum,
|
|
410
|
+
TaskQueryStatusEnum: () => TaskQueryStatusEnum,
|
|
411
|
+
TaskQueryUserTypeEnum: () => TaskQueryUserTypeEnum,
|
|
406
412
|
TaskResource: () => TaskResource,
|
|
407
413
|
TaskResourceTypeEnum: () => TaskResourceTypeEnum,
|
|
408
414
|
TaskStatusEnum: () => TaskStatusEnum,
|
|
@@ -1391,7 +1397,7 @@ __decorateClass([
|
|
|
1391
1397
|
var import_class_validator37 = require("class-validator");
|
|
1392
1398
|
|
|
1393
1399
|
// src/entities/user.entity.ts
|
|
1394
|
-
var
|
|
1400
|
+
var import_typeorm74 = require("typeorm");
|
|
1395
1401
|
|
|
1396
1402
|
// src/entities/base.entity.ts
|
|
1397
1403
|
var import_typeorm = require("typeorm");
|
|
@@ -4219,6 +4225,7 @@ var TaskStatusEnum = /* @__PURE__ */ ((TaskStatusEnum2) => {
|
|
|
4219
4225
|
TaskStatusEnum2["DRAFTED"] = "DRAFTED";
|
|
4220
4226
|
TaskStatusEnum2["SCHEDULED"] = "SCHEDULED";
|
|
4221
4227
|
TaskStatusEnum2["IN_PROGRESS"] = "IN_PROGRESS";
|
|
4228
|
+
TaskStatusEnum2["SUBMITTED"] = "SUBMITTED";
|
|
4222
4229
|
TaskStatusEnum2["COMPLETED"] = "COMPLETED";
|
|
4223
4230
|
TaskStatusEnum2["CANCELLED"] = "CANCELLED";
|
|
4224
4231
|
return TaskStatusEnum2;
|
|
@@ -6213,6 +6220,169 @@ InAppNotification = __decorateClass([
|
|
|
6213
6220
|
(0, import_typeorm71.Entity)("in_app_notifications")
|
|
6214
6221
|
], InAppNotification);
|
|
6215
6222
|
|
|
6223
|
+
// src/entities/task-query.entity.ts
|
|
6224
|
+
var import_typeorm73 = require("typeorm");
|
|
6225
|
+
|
|
6226
|
+
// src/entities/task-query-message.entity.ts
|
|
6227
|
+
var import_typeorm72 = require("typeorm");
|
|
6228
|
+
var TaskQueryMessageUserTypeEnum = /* @__PURE__ */ ((TaskQueryMessageUserTypeEnum2) => {
|
|
6229
|
+
TaskQueryMessageUserTypeEnum2["CLIENT"] = "CLIENT";
|
|
6230
|
+
TaskQueryMessageUserTypeEnum2["FREELANCER"] = "FREELANCER";
|
|
6231
|
+
return TaskQueryMessageUserTypeEnum2;
|
|
6232
|
+
})(TaskQueryMessageUserTypeEnum || {});
|
|
6233
|
+
var TaskQueryMessage = class extends BaseEntity {
|
|
6234
|
+
};
|
|
6235
|
+
__decorateClass([
|
|
6236
|
+
(0, import_typeorm72.Column)({ name: "task_query_id", type: "integer" }),
|
|
6237
|
+
(0, import_typeorm72.Index)()
|
|
6238
|
+
], TaskQueryMessage.prototype, "taskQueryId", 2);
|
|
6239
|
+
__decorateClass([
|
|
6240
|
+
(0, import_typeorm72.ManyToOne)(() => TaskQuery, (taskQuery) => taskQuery.messages),
|
|
6241
|
+
(0, import_typeorm72.JoinColumn)({ name: "task_query_id" })
|
|
6242
|
+
], TaskQueryMessage.prototype, "taskQuery", 2);
|
|
6243
|
+
__decorateClass([
|
|
6244
|
+
(0, import_typeorm72.Column)({ name: "sender_user_id", type: "integer" }),
|
|
6245
|
+
(0, import_typeorm72.Index)()
|
|
6246
|
+
], TaskQueryMessage.prototype, "senderUserId", 2);
|
|
6247
|
+
__decorateClass([
|
|
6248
|
+
(0, import_typeorm72.ManyToOne)(() => User, (user) => user.taskQueryMessages),
|
|
6249
|
+
(0, import_typeorm72.JoinColumn)({ name: "sender_user_id" })
|
|
6250
|
+
], TaskQueryMessage.prototype, "senderUser", 2);
|
|
6251
|
+
__decorateClass([
|
|
6252
|
+
(0, import_typeorm72.Column)({
|
|
6253
|
+
name: "sender_type",
|
|
6254
|
+
type: "enum",
|
|
6255
|
+
enum: TaskQueryMessageUserTypeEnum
|
|
6256
|
+
})
|
|
6257
|
+
], TaskQueryMessage.prototype, "senderType", 2);
|
|
6258
|
+
__decorateClass([
|
|
6259
|
+
(0, import_typeorm72.Column)({ name: "message", type: "varchar", nullable: true })
|
|
6260
|
+
], TaskQueryMessage.prototype, "message", 2);
|
|
6261
|
+
__decorateClass([
|
|
6262
|
+
(0, import_typeorm72.Column)({ name: "attachment_url", type: "varchar", nullable: true })
|
|
6263
|
+
], TaskQueryMessage.prototype, "attachmentUrl", 2);
|
|
6264
|
+
__decorateClass([
|
|
6265
|
+
(0, import_typeorm72.Column)({ name: "attachment_type", type: "varchar", nullable: true })
|
|
6266
|
+
], TaskQueryMessage.prototype, "attachmentType", 2);
|
|
6267
|
+
__decorateClass([
|
|
6268
|
+
(0, import_typeorm72.Column)({ name: "meta", type: "jsonb", nullable: true })
|
|
6269
|
+
], TaskQueryMessage.prototype, "meta", 2);
|
|
6270
|
+
__decorateClass([
|
|
6271
|
+
(0, import_typeorm72.Column)({ name: "is_read", type: "boolean", default: false })
|
|
6272
|
+
], TaskQueryMessage.prototype, "isRead", 2);
|
|
6273
|
+
__decorateClass([
|
|
6274
|
+
(0, import_typeorm72.Column)({
|
|
6275
|
+
name: "read_at",
|
|
6276
|
+
type: "timestamp with time zone",
|
|
6277
|
+
nullable: true
|
|
6278
|
+
})
|
|
6279
|
+
], TaskQueryMessage.prototype, "readAt", 2);
|
|
6280
|
+
TaskQueryMessage = __decorateClass([
|
|
6281
|
+
(0, import_typeorm72.Entity)("task_query_messages")
|
|
6282
|
+
], TaskQueryMessage);
|
|
6283
|
+
|
|
6284
|
+
// src/entities/task-query.entity.ts
|
|
6285
|
+
var TaskQueryUserTypeEnum = /* @__PURE__ */ ((TaskQueryUserTypeEnum2) => {
|
|
6286
|
+
TaskQueryUserTypeEnum2["CLIENT"] = "CLIENT";
|
|
6287
|
+
TaskQueryUserTypeEnum2["FREELANCER"] = "FREELANCER";
|
|
6288
|
+
return TaskQueryUserTypeEnum2;
|
|
6289
|
+
})(TaskQueryUserTypeEnum || {});
|
|
6290
|
+
var TaskQueryCategoryEnum = /* @__PURE__ */ ((TaskQueryCategoryEnum2) => {
|
|
6291
|
+
TaskQueryCategoryEnum2["DEVELOPMENT_ISSUE"] = "DEVELOPMENT_ISSUE";
|
|
6292
|
+
TaskQueryCategoryEnum2["TESTING_ISSUE"] = "TESTING_ISSUE";
|
|
6293
|
+
TaskQueryCategoryEnum2["OTHER"] = "OTHER";
|
|
6294
|
+
return TaskQueryCategoryEnum2;
|
|
6295
|
+
})(TaskQueryCategoryEnum || {});
|
|
6296
|
+
var TaskQueryStatusEnum = /* @__PURE__ */ ((TaskQueryStatusEnum2) => {
|
|
6297
|
+
TaskQueryStatusEnum2["OPEN"] = "OPEN";
|
|
6298
|
+
TaskQueryStatusEnum2["ANSWERED"] = "ANSWERED";
|
|
6299
|
+
TaskQueryStatusEnum2["CLOSED"] = "CLOSED";
|
|
6300
|
+
return TaskQueryStatusEnum2;
|
|
6301
|
+
})(TaskQueryStatusEnum || {});
|
|
6302
|
+
var TaskQuery = class extends BaseEntity {
|
|
6303
|
+
};
|
|
6304
|
+
__decorateClass([
|
|
6305
|
+
(0, import_typeorm73.Column)({ name: "task_id", type: "integer" }),
|
|
6306
|
+
(0, import_typeorm73.Index)()
|
|
6307
|
+
], TaskQuery.prototype, "taskId", 2);
|
|
6308
|
+
__decorateClass([
|
|
6309
|
+
(0, import_typeorm73.ManyToOne)(() => Task),
|
|
6310
|
+
(0, import_typeorm73.JoinColumn)({ name: "task_id" })
|
|
6311
|
+
], TaskQuery.prototype, "task", 2);
|
|
6312
|
+
__decorateClass([
|
|
6313
|
+
(0, import_typeorm73.Column)({ name: "raised_by_user_id", type: "integer" }),
|
|
6314
|
+
(0, import_typeorm73.Index)()
|
|
6315
|
+
], TaskQuery.prototype, "raisedByUserId", 2);
|
|
6316
|
+
__decorateClass([
|
|
6317
|
+
(0, import_typeorm73.ManyToOne)(() => User, (user) => user.raisedTaskQueries),
|
|
6318
|
+
(0, import_typeorm73.JoinColumn)({ name: "raised_by_user_id" })
|
|
6319
|
+
], TaskQuery.prototype, "raisedByUser", 2);
|
|
6320
|
+
__decorateClass([
|
|
6321
|
+
(0, import_typeorm73.Column)({
|
|
6322
|
+
name: "raised_by_type",
|
|
6323
|
+
type: "enum",
|
|
6324
|
+
enum: TaskQueryUserTypeEnum
|
|
6325
|
+
})
|
|
6326
|
+
], TaskQuery.prototype, "raisedByType", 2);
|
|
6327
|
+
__decorateClass([
|
|
6328
|
+
(0, import_typeorm73.Column)({ name: "assigned_to_user_id", type: "integer" }),
|
|
6329
|
+
(0, import_typeorm73.Index)()
|
|
6330
|
+
], TaskQuery.prototype, "assignedToUserId", 2);
|
|
6331
|
+
__decorateClass([
|
|
6332
|
+
(0, import_typeorm73.ManyToOne)(() => User, (user) => user.assignedTaskQueries),
|
|
6333
|
+
(0, import_typeorm73.JoinColumn)({ name: "assigned_to_user_id" })
|
|
6334
|
+
], TaskQuery.prototype, "assignedToUser", 2);
|
|
6335
|
+
__decorateClass([
|
|
6336
|
+
(0, import_typeorm73.Column)({
|
|
6337
|
+
name: "assigned_to_type",
|
|
6338
|
+
type: "enum",
|
|
6339
|
+
enum: TaskQueryUserTypeEnum
|
|
6340
|
+
})
|
|
6341
|
+
], TaskQuery.prototype, "assignedToType", 2);
|
|
6342
|
+
__decorateClass([
|
|
6343
|
+
(0, import_typeorm73.Column)({
|
|
6344
|
+
name: "query_category",
|
|
6345
|
+
type: "enum",
|
|
6346
|
+
enum: TaskQueryCategoryEnum
|
|
6347
|
+
})
|
|
6348
|
+
], TaskQuery.prototype, "queryCategory", 2);
|
|
6349
|
+
__decorateClass([
|
|
6350
|
+
(0, import_typeorm73.Column)({ name: "subject", type: "varchar", nullable: true })
|
|
6351
|
+
], TaskQuery.prototype, "subject", 2);
|
|
6352
|
+
__decorateClass([
|
|
6353
|
+
(0, import_typeorm73.Column)({ name: "description", type: "varchar", nullable: true })
|
|
6354
|
+
], TaskQuery.prototype, "description", 2);
|
|
6355
|
+
__decorateClass([
|
|
6356
|
+
(0, import_typeorm73.Column)({
|
|
6357
|
+
name: "status",
|
|
6358
|
+
type: "enum",
|
|
6359
|
+
enum: TaskQueryStatusEnum,
|
|
6360
|
+
default: "OPEN" /* OPEN */
|
|
6361
|
+
})
|
|
6362
|
+
], TaskQuery.prototype, "status", 2);
|
|
6363
|
+
__decorateClass([
|
|
6364
|
+
(0, import_typeorm73.Column)({
|
|
6365
|
+
name: "last_message_at",
|
|
6366
|
+
type: "timestamp with time zone",
|
|
6367
|
+
nullable: true
|
|
6368
|
+
})
|
|
6369
|
+
], TaskQuery.prototype, "lastMessageAt", 2);
|
|
6370
|
+
__decorateClass([
|
|
6371
|
+
(0, import_typeorm73.Column)({ name: "last_message_preview", type: "varchar", nullable: true })
|
|
6372
|
+
], TaskQuery.prototype, "lastMessagePreview", 2);
|
|
6373
|
+
__decorateClass([
|
|
6374
|
+
(0, import_typeorm73.Column)({ name: "unread_count_client", type: "integer", default: 0 })
|
|
6375
|
+
], TaskQuery.prototype, "unreadCountClient", 2);
|
|
6376
|
+
__decorateClass([
|
|
6377
|
+
(0, import_typeorm73.Column)({ name: "unread_count_freelancer", type: "integer", default: 0 })
|
|
6378
|
+
], TaskQuery.prototype, "unreadCountFreelancer", 2);
|
|
6379
|
+
__decorateClass([
|
|
6380
|
+
(0, import_typeorm73.OneToMany)(() => TaskQueryMessage, (message) => message.taskQuery, { cascade: true })
|
|
6381
|
+
], TaskQuery.prototype, "messages", 2);
|
|
6382
|
+
TaskQuery = __decorateClass([
|
|
6383
|
+
(0, import_typeorm73.Entity)("task_queries")
|
|
6384
|
+
], TaskQuery);
|
|
6385
|
+
|
|
6216
6386
|
// src/entities/user.entity.ts
|
|
6217
6387
|
var AccountType2 = /* @__PURE__ */ ((AccountType4) => {
|
|
6218
6388
|
AccountType4["SUPER_ADMIN"] = "SUPER_ADMIN";
|
|
@@ -6239,51 +6409,51 @@ var Provider = /* @__PURE__ */ ((Provider2) => {
|
|
|
6239
6409
|
var User = class extends BaseEntity {
|
|
6240
6410
|
};
|
|
6241
6411
|
__decorateClass([
|
|
6242
|
-
(0,
|
|
6412
|
+
(0, import_typeorm74.Column)({ name: "unique_id", type: "varchar", unique: true })
|
|
6243
6413
|
], User.prototype, "uniqueId", 2);
|
|
6244
6414
|
__decorateClass([
|
|
6245
|
-
(0,
|
|
6246
|
-
(0,
|
|
6415
|
+
(0, import_typeorm74.Column)({ name: "parent_id", type: "integer", nullable: true }),
|
|
6416
|
+
(0, import_typeorm74.Index)()
|
|
6247
6417
|
], User.prototype, "parentId", 2);
|
|
6248
6418
|
__decorateClass([
|
|
6249
|
-
(0,
|
|
6250
|
-
(0,
|
|
6419
|
+
(0, import_typeorm74.ManyToOne)(() => User, (user) => user.children, { nullable: true }),
|
|
6420
|
+
(0, import_typeorm74.JoinColumn)({ name: "parent_id" })
|
|
6251
6421
|
], User.prototype, "parent", 2);
|
|
6252
6422
|
__decorateClass([
|
|
6253
|
-
(0,
|
|
6423
|
+
(0, import_typeorm74.OneToMany)(() => User, (user) => user.parent)
|
|
6254
6424
|
], User.prototype, "children", 2);
|
|
6255
6425
|
__decorateClass([
|
|
6256
|
-
(0,
|
|
6426
|
+
(0, import_typeorm74.Column)({ name: "username", type: "varchar", unique: true, nullable: true })
|
|
6257
6427
|
], User.prototype, "username", 2);
|
|
6258
6428
|
__decorateClass([
|
|
6259
|
-
(0,
|
|
6429
|
+
(0, import_typeorm74.Column)({ name: "first_name", type: "varchar", length: 100, nullable: true })
|
|
6260
6430
|
], User.prototype, "firstName", 2);
|
|
6261
6431
|
__decorateClass([
|
|
6262
|
-
(0,
|
|
6432
|
+
(0, import_typeorm74.Column)({ name: "last_name", type: "varchar", length: 100, nullable: true })
|
|
6263
6433
|
], User.prototype, "lastName", 2);
|
|
6264
6434
|
__decorateClass([
|
|
6265
|
-
(0,
|
|
6435
|
+
(0, import_typeorm74.Column)({ name: "date_of_birth", type: "date", nullable: true })
|
|
6266
6436
|
], User.prototype, "dateOfBirth", 2);
|
|
6267
6437
|
__decorateClass([
|
|
6268
|
-
(0,
|
|
6438
|
+
(0, import_typeorm74.Column)({ name: "gender", type: "varchar", length: 10, nullable: true })
|
|
6269
6439
|
], User.prototype, "gender", 2);
|
|
6270
6440
|
__decorateClass([
|
|
6271
|
-
(0,
|
|
6441
|
+
(0, import_typeorm74.Column)({ name: "profile_picture_url", type: "text", nullable: true })
|
|
6272
6442
|
], User.prototype, "profilePictureUrl", 2);
|
|
6273
6443
|
__decorateClass([
|
|
6274
|
-
(0,
|
|
6444
|
+
(0, import_typeorm74.Column)({ name: "email", type: "varchar", unique: true })
|
|
6275
6445
|
], User.prototype, "email", 2);
|
|
6276
6446
|
__decorateClass([
|
|
6277
|
-
(0,
|
|
6447
|
+
(0, import_typeorm74.Column)({ name: "mobile_code", type: "varchar", nullable: true })
|
|
6278
6448
|
], User.prototype, "mobileCode", 2);
|
|
6279
6449
|
__decorateClass([
|
|
6280
|
-
(0,
|
|
6450
|
+
(0, import_typeorm74.Column)({ name: "mobile", type: "varchar", nullable: true })
|
|
6281
6451
|
], User.prototype, "mobile", 2);
|
|
6282
6452
|
__decorateClass([
|
|
6283
|
-
(0,
|
|
6453
|
+
(0, import_typeorm74.Column)({ name: "password", type: "varchar", nullable: true })
|
|
6284
6454
|
], User.prototype, "password", 2);
|
|
6285
6455
|
__decorateClass([
|
|
6286
|
-
(0,
|
|
6456
|
+
(0, import_typeorm74.Column)({
|
|
6287
6457
|
name: "account_type",
|
|
6288
6458
|
type: "enum",
|
|
6289
6459
|
enum: AccountType2,
|
|
@@ -6291,7 +6461,7 @@ __decorateClass([
|
|
|
6291
6461
|
})
|
|
6292
6462
|
], User.prototype, "accountType", 2);
|
|
6293
6463
|
__decorateClass([
|
|
6294
|
-
(0,
|
|
6464
|
+
(0, import_typeorm74.Column)({
|
|
6295
6465
|
name: "account_status",
|
|
6296
6466
|
type: "enum",
|
|
6297
6467
|
enum: AccountStatus,
|
|
@@ -6299,45 +6469,45 @@ __decorateClass([
|
|
|
6299
6469
|
})
|
|
6300
6470
|
], User.prototype, "accountStatus", 2);
|
|
6301
6471
|
__decorateClass([
|
|
6302
|
-
(0,
|
|
6472
|
+
(0, import_typeorm74.Column)({ name: "is_email_verified", type: "boolean", default: false })
|
|
6303
6473
|
], User.prototype, "isEmailVerified", 2);
|
|
6304
6474
|
__decorateClass([
|
|
6305
|
-
(0,
|
|
6475
|
+
(0, import_typeorm74.Column)({ name: "is_mobile_verified", type: "boolean", default: false })
|
|
6306
6476
|
], User.prototype, "isMobileVerified", 2);
|
|
6307
6477
|
__decorateClass([
|
|
6308
|
-
(0,
|
|
6478
|
+
(0, import_typeorm74.Column)({ name: "is_social", type: "boolean", default: false })
|
|
6309
6479
|
], User.prototype, "isSocial", 2);
|
|
6310
6480
|
__decorateClass([
|
|
6311
|
-
(0,
|
|
6481
|
+
(0, import_typeorm74.Column)({ name: "is_referral_user", type: "boolean", default: false })
|
|
6312
6482
|
], User.prototype, "isReferralUser", 2);
|
|
6313
6483
|
__decorateClass([
|
|
6314
|
-
(0,
|
|
6484
|
+
(0, import_typeorm74.Column)({
|
|
6315
6485
|
name: "last_login_at",
|
|
6316
6486
|
type: "timestamp with time zone",
|
|
6317
6487
|
nullable: true
|
|
6318
6488
|
})
|
|
6319
6489
|
], User.prototype, "lastLoginAt", 2);
|
|
6320
6490
|
__decorateClass([
|
|
6321
|
-
(0,
|
|
6491
|
+
(0, import_typeorm74.Column)({ name: "last_login_ip", type: "varchar", nullable: true })
|
|
6322
6492
|
], User.prototype, "lastLoginIp", 2);
|
|
6323
6493
|
__decorateClass([
|
|
6324
|
-
(0,
|
|
6494
|
+
(0, import_typeorm74.Column)({ name: "reset_token", type: "varchar", nullable: true })
|
|
6325
6495
|
], User.prototype, "resetToken", 2);
|
|
6326
6496
|
__decorateClass([
|
|
6327
|
-
(0,
|
|
6497
|
+
(0, import_typeorm74.Column)({
|
|
6328
6498
|
name: "reset_token_expire_at",
|
|
6329
6499
|
type: "timestamp with time zone",
|
|
6330
6500
|
nullable: true
|
|
6331
6501
|
})
|
|
6332
6502
|
], User.prototype, "resetTokenExpireAt", 2);
|
|
6333
6503
|
__decorateClass([
|
|
6334
|
-
(0,
|
|
6504
|
+
(0, import_typeorm74.Column)({ name: "set_password_token", type: "varchar", nullable: true })
|
|
6335
6505
|
], User.prototype, "setPasswordToken", 2);
|
|
6336
6506
|
__decorateClass([
|
|
6337
|
-
(0,
|
|
6507
|
+
(0, import_typeorm74.OneToMany)(() => RefreshToken, (token) => token.user)
|
|
6338
6508
|
], User.prototype, "refreshTokens", 2);
|
|
6339
6509
|
__decorateClass([
|
|
6340
|
-
(0,
|
|
6510
|
+
(0, import_typeorm74.Column)({
|
|
6341
6511
|
name: "provider",
|
|
6342
6512
|
type: "enum",
|
|
6343
6513
|
enum: Provider,
|
|
@@ -6346,257 +6516,266 @@ __decorateClass([
|
|
|
6346
6516
|
})
|
|
6347
6517
|
], User.prototype, "provider", 2);
|
|
6348
6518
|
__decorateClass([
|
|
6349
|
-
(0,
|
|
6519
|
+
(0, import_typeorm74.Column)({ name: "provider_token", type: "varchar", nullable: true })
|
|
6350
6520
|
], User.prototype, "providerToken", 2);
|
|
6351
6521
|
__decorateClass([
|
|
6352
|
-
(0,
|
|
6522
|
+
(0, import_typeorm74.Column)({ name: "linkedin_id", type: "varchar", nullable: true })
|
|
6353
6523
|
], User.prototype, "linkedInId", 2);
|
|
6354
6524
|
__decorateClass([
|
|
6355
|
-
(0,
|
|
6525
|
+
(0, import_typeorm74.Column)({ name: "google_id", type: "varchar", nullable: true })
|
|
6356
6526
|
], User.prototype, "googleId", 2);
|
|
6357
6527
|
__decorateClass([
|
|
6358
|
-
(0,
|
|
6528
|
+
(0, import_typeorm74.Column)({ name: "gitlabs_id", type: "varchar", nullable: true })
|
|
6359
6529
|
], User.prototype, "gitLabsId", 2);
|
|
6360
6530
|
__decorateClass([
|
|
6361
|
-
(0,
|
|
6531
|
+
(0, import_typeorm74.Column)({ name: "onboarded_by", type: "varchar", nullable: true })
|
|
6362
6532
|
], User.prototype, "onBoardedBy", 2);
|
|
6363
6533
|
__decorateClass([
|
|
6364
|
-
(0,
|
|
6534
|
+
(0, import_typeorm74.OneToMany)(() => Otp, (otp) => otp.user)
|
|
6365
6535
|
], User.prototype, "otps", 2);
|
|
6366
6536
|
__decorateClass([
|
|
6367
|
-
(0,
|
|
6537
|
+
(0, import_typeorm74.OneToMany)(() => SenseloafLog, (senseloafLog) => senseloafLog.user)
|
|
6368
6538
|
], User.prototype, "senseloafLogs", 2);
|
|
6369
6539
|
__decorateClass([
|
|
6370
|
-
(0,
|
|
6540
|
+
(0, import_typeorm74.OneToOne)(() => CompanyProfile, (companyProfile) => companyProfile.user)
|
|
6371
6541
|
], User.prototype, "companyProfile", 2);
|
|
6372
6542
|
__decorateClass([
|
|
6373
|
-
(0,
|
|
6543
|
+
(0, import_typeorm74.OneToMany)(() => CompanySkill, (companySkill) => companySkill.user)
|
|
6374
6544
|
], User.prototype, "companySkills", 2);
|
|
6375
6545
|
__decorateClass([
|
|
6376
|
-
(0,
|
|
6546
|
+
(0, import_typeorm74.OneToMany)(
|
|
6377
6547
|
() => CompanyMemberRole,
|
|
6378
6548
|
(companyMemberRole) => companyMemberRole.user
|
|
6379
6549
|
)
|
|
6380
6550
|
], User.prototype, "companyMemberRoles", 2);
|
|
6381
6551
|
__decorateClass([
|
|
6382
|
-
(0,
|
|
6552
|
+
(0, import_typeorm74.OneToMany)(() => AiInterview, (aiInterview) => aiInterview.interviwer)
|
|
6383
6553
|
], User.prototype, "companyAiInterview", 2);
|
|
6384
6554
|
__decorateClass([
|
|
6385
|
-
(0,
|
|
6555
|
+
(0, import_typeorm74.OneToMany)(() => F2FInterview, (F2FInterview2) => F2FInterview2.interviwer)
|
|
6386
6556
|
], User.prototype, "clientF2FInterviews", 2);
|
|
6387
6557
|
__decorateClass([
|
|
6388
|
-
(0,
|
|
6558
|
+
(0, import_typeorm74.OneToOne)(
|
|
6389
6559
|
() => FreelancerProfile,
|
|
6390
6560
|
(freelancerProfile) => freelancerProfile.user
|
|
6391
6561
|
)
|
|
6392
6562
|
], User.prototype, "freelancerProfile", 2);
|
|
6393
6563
|
__decorateClass([
|
|
6394
|
-
(0,
|
|
6564
|
+
(0, import_typeorm74.OneToOne)(() => FreelancerResume, (freelancerResume) => freelancerResume.user)
|
|
6395
6565
|
], User.prototype, "freelancerResume", 2);
|
|
6396
6566
|
__decorateClass([
|
|
6397
|
-
(0,
|
|
6567
|
+
(0, import_typeorm74.OneToMany)(
|
|
6398
6568
|
() => FreelancerAssessmentRequest,
|
|
6399
6569
|
(freelancerAssessmentRequest) => freelancerAssessmentRequest.freelancer
|
|
6400
6570
|
)
|
|
6401
6571
|
], User.prototype, "freelancerAssessmentRequests", 2);
|
|
6402
6572
|
__decorateClass([
|
|
6403
|
-
(0,
|
|
6573
|
+
(0, import_typeorm74.OneToMany)(
|
|
6404
6574
|
() => FreelancerAssessmentRequest,
|
|
6405
6575
|
(freelancerAssessment) => freelancerAssessment.approvedBy
|
|
6406
6576
|
)
|
|
6407
6577
|
], User.prototype, "assessmentRequests", 2);
|
|
6408
6578
|
__decorateClass([
|
|
6409
|
-
(0,
|
|
6579
|
+
(0, import_typeorm74.OneToMany)(
|
|
6410
6580
|
() => FreelancerAssessment,
|
|
6411
6581
|
(freelancerAssessment) => freelancerAssessment.user
|
|
6412
6582
|
)
|
|
6413
6583
|
], User.prototype, "assessments", 2);
|
|
6414
6584
|
__decorateClass([
|
|
6415
|
-
(0,
|
|
6585
|
+
(0, import_typeorm74.OneToMany)(
|
|
6416
6586
|
() => AssessmentAnswer,
|
|
6417
6587
|
(assessmentAnswer) => assessmentAnswer.user
|
|
6418
6588
|
)
|
|
6419
6589
|
], User.prototype, "assessmentAnswers", 2);
|
|
6420
6590
|
__decorateClass([
|
|
6421
|
-
(0,
|
|
6591
|
+
(0, import_typeorm74.OneToMany)(() => FreelancerSkill, (freelancerSkill) => freelancerSkill.user)
|
|
6422
6592
|
], User.prototype, "freelancerSkills", 2);
|
|
6423
6593
|
__decorateClass([
|
|
6424
|
-
(0,
|
|
6594
|
+
(0, import_typeorm74.OneToMany)(
|
|
6425
6595
|
() => FreelancerExperience,
|
|
6426
6596
|
(freelancerExperience) => freelancerExperience.user
|
|
6427
6597
|
)
|
|
6428
6598
|
], User.prototype, "freelancerExperience", 2);
|
|
6429
6599
|
__decorateClass([
|
|
6430
|
-
(0,
|
|
6600
|
+
(0, import_typeorm74.OneToMany)(
|
|
6431
6601
|
() => FreelancerEducation,
|
|
6432
6602
|
(freelancerEducation) => freelancerEducation.user
|
|
6433
6603
|
)
|
|
6434
6604
|
], User.prototype, "freelancerEducation", 2);
|
|
6435
6605
|
__decorateClass([
|
|
6436
|
-
(0,
|
|
6606
|
+
(0, import_typeorm74.OneToMany)(
|
|
6437
6607
|
() => FreelancerProject,
|
|
6438
6608
|
(freelancerProject) => freelancerProject.user
|
|
6439
6609
|
)
|
|
6440
6610
|
], User.prototype, "freelancerProject", 2);
|
|
6441
6611
|
__decorateClass([
|
|
6442
|
-
(0,
|
|
6612
|
+
(0, import_typeorm74.OneToMany)(
|
|
6443
6613
|
() => FreelancerCaseStudy,
|
|
6444
6614
|
(freelancerCaseStudy) => freelancerCaseStudy.user
|
|
6445
6615
|
)
|
|
6446
6616
|
], User.prototype, "freelancerCaseStudy", 2);
|
|
6447
6617
|
__decorateClass([
|
|
6448
|
-
(0,
|
|
6618
|
+
(0, import_typeorm74.OneToMany)(() => FreelancerTool, (freelancerTool) => freelancerTool.user)
|
|
6449
6619
|
], User.prototype, "freelancerTool", 2);
|
|
6450
6620
|
__decorateClass([
|
|
6451
|
-
(0,
|
|
6621
|
+
(0, import_typeorm74.OneToMany)(
|
|
6452
6622
|
() => FreelancerFramework,
|
|
6453
6623
|
(freelancerFramework) => freelancerFramework.user
|
|
6454
6624
|
)
|
|
6455
6625
|
], User.prototype, "freelancerFramework", 2);
|
|
6456
6626
|
__decorateClass([
|
|
6457
|
-
(0,
|
|
6627
|
+
(0, import_typeorm74.OneToOne)(
|
|
6458
6628
|
() => FreelancerDeclaration,
|
|
6459
6629
|
(freelancerDeclaration) => freelancerDeclaration.user
|
|
6460
6630
|
)
|
|
6461
6631
|
], User.prototype, "freelancerDeclaration", 2);
|
|
6462
6632
|
__decorateClass([
|
|
6463
|
-
(0,
|
|
6633
|
+
(0, import_typeorm74.OneToMany)(() => AssessmetQuestion, (assessmetQuestion) => assessmetQuestion.candidate)
|
|
6464
6634
|
], User.prototype, "freelancerMcq", 2);
|
|
6465
6635
|
__decorateClass([
|
|
6466
|
-
(0,
|
|
6636
|
+
(0, import_typeorm74.OneToMany)(() => AiInterview, (aiInterview) => aiInterview.candidate)
|
|
6467
6637
|
], User.prototype, "freelancerAiInterview", 2);
|
|
6468
6638
|
__decorateClass([
|
|
6469
|
-
(0,
|
|
6639
|
+
(0, import_typeorm74.OneToMany)(() => F2FInterview, (F2FInterview2) => F2FInterview2.candidate)
|
|
6470
6640
|
], User.prototype, "freelancerF2FInterviews", 2);
|
|
6471
6641
|
__decorateClass([
|
|
6472
|
-
(0,
|
|
6642
|
+
(0, import_typeorm74.OneToMany)(
|
|
6473
6643
|
() => F2fInterviewRescheduleRequest,
|
|
6474
6644
|
(f2fInterviewRescheduleRequest) => f2fInterviewRescheduleRequest.candidate
|
|
6475
6645
|
)
|
|
6476
6646
|
], User.prototype, "freelancerF2FInterviewRescheduleRequests", 2);
|
|
6477
6647
|
__decorateClass([
|
|
6478
|
-
(0,
|
|
6648
|
+
(0, import_typeorm74.OneToMany)(
|
|
6479
6649
|
() => AiInterviewRescheduleRequest,
|
|
6480
6650
|
(aiInterviewRescheduleRequest) => aiInterviewRescheduleRequest.candidate
|
|
6481
6651
|
)
|
|
6482
6652
|
], User.prototype, "freelancerAiInterviewRescheduleRequests", 2);
|
|
6483
6653
|
__decorateClass([
|
|
6484
|
-
(0,
|
|
6654
|
+
(0, import_typeorm74.OneToMany)(
|
|
6485
6655
|
() => AiInterviewRescheduleRequest,
|
|
6486
6656
|
(aiInterviewRescheduleRequest) => aiInterviewRescheduleRequest.client
|
|
6487
6657
|
)
|
|
6488
6658
|
], User.prototype, "clientAiInterviewRescheduleRequests", 2);
|
|
6489
6659
|
__decorateClass([
|
|
6490
|
-
(0,
|
|
6660
|
+
(0, import_typeorm74.OneToMany)(() => Job, (job) => job.user)
|
|
6491
6661
|
], User.prototype, "jobs", 2);
|
|
6492
6662
|
__decorateClass([
|
|
6493
|
-
(0,
|
|
6663
|
+
(0, import_typeorm74.OneToMany)(() => Task, (task) => task.client)
|
|
6494
6664
|
], User.prototype, "clientTasks", 2);
|
|
6495
6665
|
__decorateClass([
|
|
6496
|
-
(0,
|
|
6666
|
+
(0, import_typeorm74.OneToMany)(() => Task, (task) => task.freelancer)
|
|
6497
6667
|
], User.prototype, "freelancerTasks", 2);
|
|
6498
6668
|
__decorateClass([
|
|
6499
|
-
(0,
|
|
6669
|
+
(0, import_typeorm74.OneToMany)(() => TaskQuery, (taskQuery) => taskQuery.raisedByUser)
|
|
6670
|
+
], User.prototype, "raisedTaskQueries", 2);
|
|
6671
|
+
__decorateClass([
|
|
6672
|
+
(0, import_typeorm74.OneToMany)(() => TaskQuery, (taskQuery) => taskQuery.assignedToUser)
|
|
6673
|
+
], User.prototype, "assignedTaskQueries", 2);
|
|
6674
|
+
__decorateClass([
|
|
6675
|
+
(0, import_typeorm74.OneToMany)(() => TaskQueryMessage, (message) => message.senderUser)
|
|
6676
|
+
], User.prototype, "taskQueryMessages", 2);
|
|
6677
|
+
__decorateClass([
|
|
6678
|
+
(0, import_typeorm74.OneToMany)(() => JobApplication, (jobApplication) => jobApplication.user)
|
|
6500
6679
|
], User.prototype, "jobApplications", 2);
|
|
6501
6680
|
__decorateClass([
|
|
6502
|
-
(0,
|
|
6681
|
+
(0, import_typeorm74.OneToMany)(() => Interview, (interview) => interview.user)
|
|
6503
6682
|
], User.prototype, "interviews", 2);
|
|
6504
6683
|
__decorateClass([
|
|
6505
|
-
(0,
|
|
6684
|
+
(0, import_typeorm74.OneToMany)(() => BankDetail, (bankDetail) => bankDetail.user)
|
|
6506
6685
|
], User.prototype, "bankDetail", 2);
|
|
6507
6686
|
__decorateClass([
|
|
6508
|
-
(0,
|
|
6687
|
+
(0, import_typeorm74.OneToMany)(
|
|
6509
6688
|
() => SystemPreference,
|
|
6510
6689
|
(systemPreference) => systemPreference.user
|
|
6511
6690
|
)
|
|
6512
6691
|
], User.prototype, "systemPreference", 2);
|
|
6513
6692
|
__decorateClass([
|
|
6514
|
-
(0,
|
|
6693
|
+
(0, import_typeorm74.OneToMany)(() => Rating, (rating) => rating.reviewer)
|
|
6515
6694
|
], User.prototype, "givenRatings", 2);
|
|
6516
6695
|
__decorateClass([
|
|
6517
|
-
(0,
|
|
6696
|
+
(0, import_typeorm74.OneToMany)(() => Rating, (rating) => rating.reviewee)
|
|
6518
6697
|
], User.prototype, "receivedRatings", 2);
|
|
6519
6698
|
__decorateClass([
|
|
6520
|
-
(0,
|
|
6699
|
+
(0, import_typeorm74.OneToMany)(() => AdminUserRole, (adminUserRole) => adminUserRole.user)
|
|
6521
6700
|
], User.prototype, "adminUserRoles", 2);
|
|
6522
6701
|
__decorateClass([
|
|
6523
|
-
(0,
|
|
6702
|
+
(0, import_typeorm74.OneToMany)(() => ContractSummary, (contractSummary) => contractSummary.clientId, {
|
|
6524
6703
|
cascade: true
|
|
6525
6704
|
})
|
|
6526
6705
|
], User.prototype, "clientContractSummaries", 2);
|
|
6527
6706
|
__decorateClass([
|
|
6528
|
-
(0,
|
|
6707
|
+
(0, import_typeorm74.OneToMany)(() => Contract, (contract) => contract.client)
|
|
6529
6708
|
], User.prototype, "clientContracts", 2);
|
|
6530
6709
|
__decorateClass([
|
|
6531
|
-
(0,
|
|
6710
|
+
(0, import_typeorm74.OneToMany)(() => Hiring, (hiring) => hiring.client)
|
|
6532
6711
|
], User.prototype, "clientHirings", 2);
|
|
6533
6712
|
__decorateClass([
|
|
6534
|
-
(0,
|
|
6713
|
+
(0, import_typeorm74.OneToMany)(() => EscrowWallet, (escrowWallet) => escrowWallet.client)
|
|
6535
6714
|
], User.prototype, "clientEscrowWallets", 2);
|
|
6536
6715
|
__decorateClass([
|
|
6537
|
-
(0,
|
|
6716
|
+
(0, import_typeorm74.OneToMany)(() => ContractSummary, (contractSummary) => contractSummary.freelancerId, {
|
|
6538
6717
|
cascade: true
|
|
6539
6718
|
})
|
|
6540
6719
|
], User.prototype, "freelancerContractSummaries", 2);
|
|
6541
6720
|
__decorateClass([
|
|
6542
|
-
(0,
|
|
6721
|
+
(0, import_typeorm74.OneToMany)(() => Contract, (contract) => contract.freelancer)
|
|
6543
6722
|
], User.prototype, "freelancerContracts", 2);
|
|
6544
6723
|
__decorateClass([
|
|
6545
|
-
(0,
|
|
6724
|
+
(0, import_typeorm74.OneToMany)(() => Hiring, (hiring) => hiring.freelancer)
|
|
6546
6725
|
], User.prototype, "freelancerHirings", 2);
|
|
6547
6726
|
__decorateClass([
|
|
6548
|
-
(0,
|
|
6727
|
+
(0, import_typeorm74.OneToMany)(() => EscrowWallet, (escrowWallet) => escrowWallet.freelancer)
|
|
6549
6728
|
], User.prototype, "freelancerEscrowWallets", 2);
|
|
6550
6729
|
__decorateClass([
|
|
6551
|
-
(0,
|
|
6730
|
+
(0, import_typeorm74.OneToOne)(() => Signature, (signature) => signature.user)
|
|
6552
6731
|
], User.prototype, "signatures", 2);
|
|
6553
6732
|
__decorateClass([
|
|
6554
|
-
(0,
|
|
6733
|
+
(0, import_typeorm74.OneToMany)(() => Timesheet, (timesheet) => timesheet.client)
|
|
6555
6734
|
], User.prototype, "clientTimesheets", 2);
|
|
6556
6735
|
__decorateClass([
|
|
6557
|
-
(0,
|
|
6736
|
+
(0, import_typeorm74.OneToMany)(() => Timesheet, (timesheet) => timesheet.freelancer)
|
|
6558
6737
|
], User.prototype, "freelancerTimesheets", 2);
|
|
6559
6738
|
__decorateClass([
|
|
6560
|
-
(0,
|
|
6739
|
+
(0, import_typeorm74.OneToMany)(() => TimesheetLine, (timesheetLine) => timesheetLine.client)
|
|
6561
6740
|
], User.prototype, "clientTimesheetLine", 2);
|
|
6562
6741
|
__decorateClass([
|
|
6563
|
-
(0,
|
|
6742
|
+
(0, import_typeorm74.OneToMany)(() => Invoice, (invoice) => invoice.client)
|
|
6564
6743
|
], User.prototype, "clientInvoice", 2);
|
|
6565
6744
|
__decorateClass([
|
|
6566
|
-
(0,
|
|
6745
|
+
(0, import_typeorm74.OneToMany)(() => TimesheetLine, (timesheetLine) => timesheetLine.freelancer)
|
|
6567
6746
|
], User.prototype, "freelancerTimesheetLine", 2);
|
|
6568
6747
|
__decorateClass([
|
|
6569
|
-
(0,
|
|
6748
|
+
(0, import_typeorm74.OneToMany)(() => Invoice, (invoice) => invoice.freelancer)
|
|
6570
6749
|
], User.prototype, "freelancerInvoice", 2);
|
|
6571
6750
|
__decorateClass([
|
|
6572
|
-
(0,
|
|
6751
|
+
(0, import_typeorm74.OneToMany)(() => ClientCandidatePreference, (clientCandidatePreference) => clientCandidatePreference.client, { cascade: true })
|
|
6573
6752
|
], User.prototype, "clientPreferencesGiven", 2);
|
|
6574
6753
|
__decorateClass([
|
|
6575
|
-
(0,
|
|
6754
|
+
(0, import_typeorm74.OneToMany)(() => ClientCandidatePreference, (clientCandidatePreference) => clientCandidatePreference.candidate)
|
|
6576
6755
|
], User.prototype, "clientPreferencesReceived", 2);
|
|
6577
6756
|
__decorateClass([
|
|
6578
|
-
(0,
|
|
6757
|
+
(0, import_typeorm74.OneToMany)(() => Dispute, (dispute) => dispute.initiator, { cascade: true })
|
|
6579
6758
|
], User.prototype, "initiatedDisputes", 2);
|
|
6580
6759
|
__decorateClass([
|
|
6581
|
-
(0,
|
|
6760
|
+
(0, import_typeorm74.OneToMany)(() => Dispute, (dispute) => dispute.respondent, { cascade: true })
|
|
6582
6761
|
], User.prototype, "respondentDisputes", 2);
|
|
6583
6762
|
__decorateClass([
|
|
6584
|
-
(0,
|
|
6763
|
+
(0, import_typeorm74.OneToOne)(() => Wallet, (wallet) => wallet.user)
|
|
6585
6764
|
], User.prototype, "wallet", 2);
|
|
6586
6765
|
__decorateClass([
|
|
6587
|
-
(0,
|
|
6766
|
+
(0, import_typeorm74.OneToMany)(() => StripeTransaction, (stripeTransaction) => stripeTransaction.user, { cascade: true })
|
|
6588
6767
|
], User.prototype, "stripeTransactions", 2);
|
|
6589
6768
|
__decorateClass([
|
|
6590
|
-
(0,
|
|
6769
|
+
(0, import_typeorm74.OneToMany)(() => Dispute, (dispute) => dispute.client)
|
|
6591
6770
|
], User.prototype, "clientDisputes", 2);
|
|
6592
6771
|
__decorateClass([
|
|
6593
|
-
(0,
|
|
6772
|
+
(0, import_typeorm74.OneToMany)(() => Dispute, (dispute) => dispute.freelancer)
|
|
6594
6773
|
], User.prototype, "freelancerDisputes", 2);
|
|
6595
6774
|
__decorateClass([
|
|
6596
|
-
(0,
|
|
6775
|
+
(0, import_typeorm74.OneToMany)(() => InAppNotification, (inAppNotification) => inAppNotification.user)
|
|
6597
6776
|
], User.prototype, "inAppNotifications", 2);
|
|
6598
6777
|
User = __decorateClass([
|
|
6599
|
-
(0,
|
|
6778
|
+
(0, import_typeorm74.Entity)("users")
|
|
6600
6779
|
], User);
|
|
6601
6780
|
|
|
6602
6781
|
// src/modules/user/subadmin/dto/update-subadmin-account-status.dto.ts
|
|
@@ -13396,11 +13575,11 @@ var ChatRMQAdapter = (mode = "microservice") => {
|
|
|
13396
13575
|
};
|
|
13397
13576
|
|
|
13398
13577
|
// src/entities/sequence-generator.entity.ts
|
|
13399
|
-
var
|
|
13578
|
+
var import_typeorm75 = require("typeorm");
|
|
13400
13579
|
var SequenceGenerator = class extends BaseEntity {
|
|
13401
13580
|
};
|
|
13402
13581
|
__decorateClass([
|
|
13403
|
-
(0,
|
|
13582
|
+
(0, import_typeorm75.Column)({
|
|
13404
13583
|
name: "module",
|
|
13405
13584
|
type: "varchar",
|
|
13406
13585
|
length: 50,
|
|
@@ -13409,7 +13588,7 @@ __decorateClass([
|
|
|
13409
13588
|
})
|
|
13410
13589
|
], SequenceGenerator.prototype, "module", 2);
|
|
13411
13590
|
__decorateClass([
|
|
13412
|
-
(0,
|
|
13591
|
+
(0, import_typeorm75.Column)({
|
|
13413
13592
|
name: "prefix",
|
|
13414
13593
|
type: "varchar",
|
|
13415
13594
|
length: 10,
|
|
@@ -13418,7 +13597,7 @@ __decorateClass([
|
|
|
13418
13597
|
})
|
|
13419
13598
|
], SequenceGenerator.prototype, "prefix", 2);
|
|
13420
13599
|
__decorateClass([
|
|
13421
|
-
(0,
|
|
13600
|
+
(0, import_typeorm75.Column)({
|
|
13422
13601
|
name: "last_sequence",
|
|
13423
13602
|
type: "int",
|
|
13424
13603
|
nullable: false,
|
|
@@ -13426,7 +13605,7 @@ __decorateClass([
|
|
|
13426
13605
|
})
|
|
13427
13606
|
], SequenceGenerator.prototype, "lastSequence", 2);
|
|
13428
13607
|
__decorateClass([
|
|
13429
|
-
(0,
|
|
13608
|
+
(0, import_typeorm75.Column)({
|
|
13430
13609
|
name: "year",
|
|
13431
13610
|
type: "int",
|
|
13432
13611
|
nullable: true,
|
|
@@ -13434,11 +13613,11 @@ __decorateClass([
|
|
|
13434
13613
|
})
|
|
13435
13614
|
], SequenceGenerator.prototype, "year", 2);
|
|
13436
13615
|
SequenceGenerator = __decorateClass([
|
|
13437
|
-
(0,
|
|
13616
|
+
(0, import_typeorm75.Entity)("sequence_generators")
|
|
13438
13617
|
], SequenceGenerator);
|
|
13439
13618
|
|
|
13440
13619
|
// src/entities/question.entity.ts
|
|
13441
|
-
var
|
|
13620
|
+
var import_typeorm76 = require("typeorm");
|
|
13442
13621
|
var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
13443
13622
|
QuestionFor2["CLIENT"] = "CLIENT";
|
|
13444
13623
|
QuestionFor2["FREELANCER"] = "FREELANCER";
|
|
@@ -13447,16 +13626,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
|
13447
13626
|
var Question = class extends BaseEntity {
|
|
13448
13627
|
};
|
|
13449
13628
|
__decorateClass([
|
|
13450
|
-
(0,
|
|
13629
|
+
(0, import_typeorm76.Column)({ name: "question", type: "varchar" })
|
|
13451
13630
|
], Question.prototype, "question", 2);
|
|
13452
13631
|
__decorateClass([
|
|
13453
|
-
(0,
|
|
13632
|
+
(0, import_typeorm76.Column)({ name: "hint", type: "varchar", nullable: true })
|
|
13454
13633
|
], Question.prototype, "hint", 2);
|
|
13455
13634
|
__decorateClass([
|
|
13456
|
-
(0,
|
|
13635
|
+
(0, import_typeorm76.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
13457
13636
|
], Question.prototype, "slug", 2);
|
|
13458
13637
|
__decorateClass([
|
|
13459
|
-
(0,
|
|
13638
|
+
(0, import_typeorm76.Column)({
|
|
13460
13639
|
name: "question_for",
|
|
13461
13640
|
type: "enum",
|
|
13462
13641
|
enum: QuestionFor,
|
|
@@ -13464,45 +13643,45 @@ __decorateClass([
|
|
|
13464
13643
|
})
|
|
13465
13644
|
], Question.prototype, "questionFor", 2);
|
|
13466
13645
|
__decorateClass([
|
|
13467
|
-
(0,
|
|
13646
|
+
(0, import_typeorm76.Column)({ name: "type", type: "varchar", nullable: true })
|
|
13468
13647
|
], Question.prototype, "type", 2);
|
|
13469
13648
|
__decorateClass([
|
|
13470
|
-
(0,
|
|
13649
|
+
(0, import_typeorm76.Column)({ name: "options", type: "jsonb", nullable: true })
|
|
13471
13650
|
], Question.prototype, "options", 2);
|
|
13472
13651
|
__decorateClass([
|
|
13473
|
-
(0,
|
|
13652
|
+
(0, import_typeorm76.Column)({ name: "is_active", type: "boolean", default: false })
|
|
13474
13653
|
], Question.prototype, "isActive", 2);
|
|
13475
13654
|
Question = __decorateClass([
|
|
13476
|
-
(0,
|
|
13655
|
+
(0, import_typeorm76.Entity)("questions")
|
|
13477
13656
|
], Question);
|
|
13478
13657
|
|
|
13479
13658
|
// src/entities/skill.entity.ts
|
|
13480
|
-
var
|
|
13659
|
+
var import_typeorm77 = require("typeorm");
|
|
13481
13660
|
var Skill = class extends BaseEntity {
|
|
13482
13661
|
};
|
|
13483
13662
|
__decorateClass([
|
|
13484
|
-
(0,
|
|
13663
|
+
(0, import_typeorm77.Column)({ name: "name", type: "varchar", nullable: true })
|
|
13485
13664
|
], Skill.prototype, "name", 2);
|
|
13486
13665
|
__decorateClass([
|
|
13487
|
-
(0,
|
|
13666
|
+
(0, import_typeorm77.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
13488
13667
|
], Skill.prototype, "slug", 2);
|
|
13489
13668
|
__decorateClass([
|
|
13490
|
-
(0,
|
|
13669
|
+
(0, import_typeorm77.Column)({ name: "is_active", type: "boolean", default: false })
|
|
13491
13670
|
], Skill.prototype, "isActive", 2);
|
|
13492
13671
|
Skill = __decorateClass([
|
|
13493
|
-
(0,
|
|
13672
|
+
(0, import_typeorm77.Entity)("skills")
|
|
13494
13673
|
], Skill);
|
|
13495
13674
|
|
|
13496
13675
|
// src/entities/skill-catalog.entity.ts
|
|
13497
|
-
var
|
|
13676
|
+
var import_typeorm78 = require("typeorm");
|
|
13498
13677
|
var SkillCatalog = class extends BaseEntity {
|
|
13499
13678
|
};
|
|
13500
13679
|
__decorateClass([
|
|
13501
|
-
(0,
|
|
13502
|
-
(0,
|
|
13680
|
+
(0, import_typeorm78.Column)({ name: "canonical_name", type: "varchar", length: 100, unique: true }),
|
|
13681
|
+
(0, import_typeorm78.Index)()
|
|
13503
13682
|
], SkillCatalog.prototype, "canonicalName", 2);
|
|
13504
13683
|
__decorateClass([
|
|
13505
|
-
(0,
|
|
13684
|
+
(0, import_typeorm78.Column)({
|
|
13506
13685
|
name: "aliases",
|
|
13507
13686
|
type: "text",
|
|
13508
13687
|
array: true,
|
|
@@ -13510,20 +13689,20 @@ __decorateClass([
|
|
|
13510
13689
|
})
|
|
13511
13690
|
], SkillCatalog.prototype, "aliases", 2);
|
|
13512
13691
|
__decorateClass([
|
|
13513
|
-
(0,
|
|
13692
|
+
(0, import_typeorm78.Column)({
|
|
13514
13693
|
name: "variations",
|
|
13515
13694
|
type: "jsonb",
|
|
13516
13695
|
default: "{}"
|
|
13517
13696
|
})
|
|
13518
13697
|
], SkillCatalog.prototype, "variations", 2);
|
|
13519
13698
|
__decorateClass([
|
|
13520
|
-
(0,
|
|
13699
|
+
(0, import_typeorm78.Column)({ name: "category", type: "varchar", length: 50, nullable: true })
|
|
13521
13700
|
], SkillCatalog.prototype, "category", 2);
|
|
13522
13701
|
__decorateClass([
|
|
13523
|
-
(0,
|
|
13702
|
+
(0, import_typeorm78.Column)({ name: "parent_skill", type: "varchar", length: 100, nullable: true })
|
|
13524
13703
|
], SkillCatalog.prototype, "parentSkill", 2);
|
|
13525
13704
|
__decorateClass([
|
|
13526
|
-
(0,
|
|
13705
|
+
(0, import_typeorm78.Column)({
|
|
13527
13706
|
name: "related_skills",
|
|
13528
13707
|
type: "text",
|
|
13529
13708
|
array: true,
|
|
@@ -13531,68 +13710,68 @@ __decorateClass([
|
|
|
13531
13710
|
})
|
|
13532
13711
|
], SkillCatalog.prototype, "relatedSkills", 2);
|
|
13533
13712
|
__decorateClass([
|
|
13534
|
-
(0,
|
|
13535
|
-
(0,
|
|
13713
|
+
(0, import_typeorm78.Column)({ name: "usage_count", type: "integer", default: 0 }),
|
|
13714
|
+
(0, import_typeorm78.Index)()
|
|
13536
13715
|
], SkillCatalog.prototype, "usageCount", 2);
|
|
13537
13716
|
__decorateClass([
|
|
13538
|
-
(0,
|
|
13717
|
+
(0, import_typeorm78.Column)({ name: "is_verified", type: "boolean", default: false })
|
|
13539
13718
|
], SkillCatalog.prototype, "isVerified", 2);
|
|
13540
13719
|
__decorateClass([
|
|
13541
|
-
(0,
|
|
13720
|
+
(0, import_typeorm78.Column)({ name: "first_seen_date", type: "date" })
|
|
13542
13721
|
], SkillCatalog.prototype, "firstSeenDate", 2);
|
|
13543
13722
|
__decorateClass([
|
|
13544
|
-
(0,
|
|
13723
|
+
(0, import_typeorm78.Column)({ name: "last_updated_date", type: "date" })
|
|
13545
13724
|
], SkillCatalog.prototype, "lastUpdatedDate", 2);
|
|
13546
13725
|
__decorateClass([
|
|
13547
|
-
(0,
|
|
13726
|
+
(0, import_typeorm78.Column)({
|
|
13548
13727
|
name: "search_vector",
|
|
13549
13728
|
type: "tsvector",
|
|
13550
13729
|
nullable: true
|
|
13551
13730
|
})
|
|
13552
13731
|
], SkillCatalog.prototype, "searchVector", 2);
|
|
13553
13732
|
SkillCatalog = __decorateClass([
|
|
13554
|
-
(0,
|
|
13733
|
+
(0, import_typeorm78.Entity)("skill_catalogs")
|
|
13555
13734
|
], SkillCatalog);
|
|
13556
13735
|
|
|
13557
13736
|
// src/entities/job-role.entity.ts
|
|
13558
|
-
var
|
|
13737
|
+
var import_typeorm79 = require("typeorm");
|
|
13559
13738
|
var JobRoles = class extends BaseEntity {
|
|
13560
13739
|
};
|
|
13561
13740
|
__decorateClass([
|
|
13562
|
-
(0,
|
|
13741
|
+
(0, import_typeorm79.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
13563
13742
|
], JobRoles.prototype, "slug", 2);
|
|
13564
13743
|
__decorateClass([
|
|
13565
|
-
(0,
|
|
13744
|
+
(0, import_typeorm79.Column)({ name: "name", type: "varchar", nullable: true })
|
|
13566
13745
|
], JobRoles.prototype, "name", 2);
|
|
13567
13746
|
__decorateClass([
|
|
13568
|
-
(0,
|
|
13747
|
+
(0, import_typeorm79.Column)({ name: "is_active", type: "boolean", default: true })
|
|
13569
13748
|
], JobRoles.prototype, "isActive", 2);
|
|
13570
13749
|
JobRoles = __decorateClass([
|
|
13571
|
-
(0,
|
|
13750
|
+
(0, import_typeorm79.Entity)("job_roles")
|
|
13572
13751
|
], JobRoles);
|
|
13573
13752
|
|
|
13574
13753
|
// src/entities/cms.entity.ts
|
|
13575
|
-
var
|
|
13754
|
+
var import_typeorm80 = require("typeorm");
|
|
13576
13755
|
var Cms = class extends BaseEntity {
|
|
13577
13756
|
};
|
|
13578
13757
|
__decorateClass([
|
|
13579
|
-
(0,
|
|
13758
|
+
(0, import_typeorm80.Column)({ name: "title", type: "varchar", nullable: true })
|
|
13580
13759
|
], Cms.prototype, "title", 2);
|
|
13581
13760
|
__decorateClass([
|
|
13582
|
-
(0,
|
|
13761
|
+
(0, import_typeorm80.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
13583
13762
|
], Cms.prototype, "slug", 2);
|
|
13584
13763
|
__decorateClass([
|
|
13585
|
-
(0,
|
|
13764
|
+
(0, import_typeorm80.Column)({ name: "content", type: "varchar", nullable: true })
|
|
13586
13765
|
], Cms.prototype, "content", 2);
|
|
13587
13766
|
__decorateClass([
|
|
13588
|
-
(0,
|
|
13767
|
+
(0, import_typeorm80.Column)({ name: "is_active", type: "boolean", default: true })
|
|
13589
13768
|
], Cms.prototype, "isActive", 2);
|
|
13590
13769
|
Cms = __decorateClass([
|
|
13591
|
-
(0,
|
|
13770
|
+
(0, import_typeorm80.Entity)("cms")
|
|
13592
13771
|
], Cms);
|
|
13593
13772
|
|
|
13594
13773
|
// src/entities/lead.entity.ts
|
|
13595
|
-
var
|
|
13774
|
+
var import_typeorm81 = require("typeorm");
|
|
13596
13775
|
var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
|
|
13597
13776
|
CategoryEmum2["BUSINESS"] = "BUSINESS";
|
|
13598
13777
|
CategoryEmum2["FREELANCER"] = "FREELANCER";
|
|
@@ -13601,22 +13780,22 @@ var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
|
|
|
13601
13780
|
var Lead = class extends BaseEntity {
|
|
13602
13781
|
};
|
|
13603
13782
|
__decorateClass([
|
|
13604
|
-
(0,
|
|
13783
|
+
(0, import_typeorm81.Column)({ name: "name", type: "varchar", nullable: true })
|
|
13605
13784
|
], Lead.prototype, "name", 2);
|
|
13606
13785
|
__decorateClass([
|
|
13607
|
-
(0,
|
|
13786
|
+
(0, import_typeorm81.Column)({ name: "mobile_code", type: "varchar", nullable: true })
|
|
13608
13787
|
], Lead.prototype, "mobileCode", 2);
|
|
13609
13788
|
__decorateClass([
|
|
13610
|
-
(0,
|
|
13789
|
+
(0, import_typeorm81.Column)({ name: "mobile", type: "varchar", nullable: true })
|
|
13611
13790
|
], Lead.prototype, "mobile", 2);
|
|
13612
13791
|
__decorateClass([
|
|
13613
|
-
(0,
|
|
13792
|
+
(0, import_typeorm81.Column)({ name: "email", type: "varchar", nullable: true })
|
|
13614
13793
|
], Lead.prototype, "email", 2);
|
|
13615
13794
|
__decorateClass([
|
|
13616
|
-
(0,
|
|
13795
|
+
(0, import_typeorm81.Column)({ name: "description", type: "varchar", nullable: true })
|
|
13617
13796
|
], Lead.prototype, "description", 2);
|
|
13618
13797
|
__decorateClass([
|
|
13619
|
-
(0,
|
|
13798
|
+
(0, import_typeorm81.Column)({
|
|
13620
13799
|
name: "category",
|
|
13621
13800
|
type: "enum",
|
|
13622
13801
|
enum: CategoryEmum,
|
|
@@ -13624,129 +13803,129 @@ __decorateClass([
|
|
|
13624
13803
|
})
|
|
13625
13804
|
], Lead.prototype, "category", 2);
|
|
13626
13805
|
Lead = __decorateClass([
|
|
13627
|
-
(0,
|
|
13806
|
+
(0, import_typeorm81.Entity)("leads")
|
|
13628
13807
|
], Lead);
|
|
13629
13808
|
|
|
13630
13809
|
// src/entities/job-freelancer-recommendation.entity.ts
|
|
13631
|
-
var
|
|
13810
|
+
var import_typeorm82 = require("typeorm");
|
|
13632
13811
|
var JobFreelancerRecommendation = class {
|
|
13633
13812
|
};
|
|
13634
13813
|
__decorateClass([
|
|
13635
|
-
(0,
|
|
13814
|
+
(0, import_typeorm82.ViewColumn)({ name: "job_id" })
|
|
13636
13815
|
], JobFreelancerRecommendation.prototype, "jobId", 2);
|
|
13637
13816
|
__decorateClass([
|
|
13638
|
-
(0,
|
|
13817
|
+
(0, import_typeorm82.ViewColumn)({ name: "job_uuid" })
|
|
13639
13818
|
], JobFreelancerRecommendation.prototype, "jobUuid", 2);
|
|
13640
13819
|
__decorateClass([
|
|
13641
|
-
(0,
|
|
13820
|
+
(0, import_typeorm82.ViewColumn)({ name: "job_unique_id" })
|
|
13642
13821
|
], JobFreelancerRecommendation.prototype, "jobUniqueId", 2);
|
|
13643
13822
|
__decorateClass([
|
|
13644
|
-
(0,
|
|
13823
|
+
(0, import_typeorm82.ViewColumn)({ name: "job_role" })
|
|
13645
13824
|
], JobFreelancerRecommendation.prototype, "jobRole", 2);
|
|
13646
13825
|
__decorateClass([
|
|
13647
|
-
(0,
|
|
13826
|
+
(0, import_typeorm82.ViewColumn)({ name: "job_openings" })
|
|
13648
13827
|
], JobFreelancerRecommendation.prototype, "jobOpenings", 2);
|
|
13649
13828
|
__decorateClass([
|
|
13650
|
-
(0,
|
|
13829
|
+
(0, import_typeorm82.ViewColumn)({ name: "job_location" })
|
|
13651
13830
|
], JobFreelancerRecommendation.prototype, "jobLocation", 2);
|
|
13652
13831
|
__decorateClass([
|
|
13653
|
-
(0,
|
|
13832
|
+
(0, import_typeorm82.ViewColumn)({ name: "job_currency" })
|
|
13654
13833
|
], JobFreelancerRecommendation.prototype, "jobCurrency", 2);
|
|
13655
13834
|
__decorateClass([
|
|
13656
|
-
(0,
|
|
13835
|
+
(0, import_typeorm82.ViewColumn)({ name: "job_salary_from" })
|
|
13657
13836
|
], JobFreelancerRecommendation.prototype, "jobSalaryFrom", 2);
|
|
13658
13837
|
__decorateClass([
|
|
13659
|
-
(0,
|
|
13838
|
+
(0, import_typeorm82.ViewColumn)({ name: "job_salary_to" })
|
|
13660
13839
|
], JobFreelancerRecommendation.prototype, "jobSalaryTo", 2);
|
|
13661
13840
|
__decorateClass([
|
|
13662
|
-
(0,
|
|
13841
|
+
(0, import_typeorm82.ViewColumn)({ name: "job_employment_type" })
|
|
13663
13842
|
], JobFreelancerRecommendation.prototype, "jobEmploymentType", 2);
|
|
13664
13843
|
__decorateClass([
|
|
13665
|
-
(0,
|
|
13844
|
+
(0, import_typeorm82.ViewColumn)({ name: "application_received" })
|
|
13666
13845
|
], JobFreelancerRecommendation.prototype, "applicationReceived", 2);
|
|
13667
13846
|
__decorateClass([
|
|
13668
|
-
(0,
|
|
13847
|
+
(0, import_typeorm82.ViewColumn)({ name: "job_posted_at" })
|
|
13669
13848
|
], JobFreelancerRecommendation.prototype, "jobPostedAt", 2);
|
|
13670
13849
|
__decorateClass([
|
|
13671
|
-
(0,
|
|
13850
|
+
(0, import_typeorm82.ViewColumn)({ name: "freelancer_id" })
|
|
13672
13851
|
], JobFreelancerRecommendation.prototype, "freelancerId", 2);
|
|
13673
13852
|
__decorateClass([
|
|
13674
|
-
(0,
|
|
13853
|
+
(0, import_typeorm82.ViewColumn)({ name: "freelancer_uuid" })
|
|
13675
13854
|
], JobFreelancerRecommendation.prototype, "freelancerUuid", 2);
|
|
13676
13855
|
__decorateClass([
|
|
13677
|
-
(0,
|
|
13856
|
+
(0, import_typeorm82.ViewColumn)({ name: "freelancer_unique_id" })
|
|
13678
13857
|
], JobFreelancerRecommendation.prototype, "freelancerUniqueId", 2);
|
|
13679
13858
|
__decorateClass([
|
|
13680
|
-
(0,
|
|
13859
|
+
(0, import_typeorm82.ViewColumn)({ name: "freelancer_first_name" })
|
|
13681
13860
|
], JobFreelancerRecommendation.prototype, "freelancerFirstName", 2);
|
|
13682
13861
|
__decorateClass([
|
|
13683
|
-
(0,
|
|
13862
|
+
(0, import_typeorm82.ViewColumn)({ name: "freelancer_last_name" })
|
|
13684
13863
|
], JobFreelancerRecommendation.prototype, "freelancerLastName", 2);
|
|
13685
13864
|
__decorateClass([
|
|
13686
|
-
(0,
|
|
13865
|
+
(0, import_typeorm82.ViewColumn)({ name: "freelancer_email" })
|
|
13687
13866
|
], JobFreelancerRecommendation.prototype, "freelancerEmail", 2);
|
|
13688
13867
|
__decorateClass([
|
|
13689
|
-
(0,
|
|
13868
|
+
(0, import_typeorm82.ViewColumn)({ name: "freelancer_profile_picture" })
|
|
13690
13869
|
], JobFreelancerRecommendation.prototype, "freelancerProfilePicture", 2);
|
|
13691
13870
|
__decorateClass([
|
|
13692
|
-
(0,
|
|
13871
|
+
(0, import_typeorm82.ViewColumn)({ name: "freelancer_is_social" })
|
|
13693
13872
|
], JobFreelancerRecommendation.prototype, "freelancerIsSocial", 2);
|
|
13694
13873
|
__decorateClass([
|
|
13695
|
-
(0,
|
|
13874
|
+
(0, import_typeorm82.ViewColumn)({ name: "freelancer_created_at" })
|
|
13696
13875
|
], JobFreelancerRecommendation.prototype, "freelancerCreatedAt", 2);
|
|
13697
13876
|
__decorateClass([
|
|
13698
|
-
(0,
|
|
13877
|
+
(0, import_typeorm82.ViewColumn)({ name: "freelancer_designation" })
|
|
13699
13878
|
], JobFreelancerRecommendation.prototype, "freelancerDesignation", 2);
|
|
13700
13879
|
__decorateClass([
|
|
13701
|
-
(0,
|
|
13880
|
+
(0, import_typeorm82.ViewColumn)({ name: "freelancer_experience" })
|
|
13702
13881
|
], JobFreelancerRecommendation.prototype, "freelancerExperience", 2);
|
|
13703
13882
|
__decorateClass([
|
|
13704
|
-
(0,
|
|
13883
|
+
(0, import_typeorm82.ViewColumn)({ name: "freelancer_expertshub_verified" })
|
|
13705
13884
|
], JobFreelancerRecommendation.prototype, "freelancerExpertshubVerified", 2);
|
|
13706
13885
|
__decorateClass([
|
|
13707
|
-
(0,
|
|
13886
|
+
(0, import_typeorm82.ViewColumn)({ name: "freelancer_hourly_compensation" })
|
|
13708
13887
|
], JobFreelancerRecommendation.prototype, "freelancerHourlyCompensation", 2);
|
|
13709
13888
|
__decorateClass([
|
|
13710
|
-
(0,
|
|
13889
|
+
(0, import_typeorm82.ViewColumn)({ name: "freelancer_country_name" })
|
|
13711
13890
|
], JobFreelancerRecommendation.prototype, "freelancerCountryName", 2);
|
|
13712
13891
|
__decorateClass([
|
|
13713
|
-
(0,
|
|
13892
|
+
(0, import_typeorm82.ViewColumn)({ name: "freelancer_country_iso_code" })
|
|
13714
13893
|
], JobFreelancerRecommendation.prototype, "freelancerCountryIsoCode", 2);
|
|
13715
13894
|
__decorateClass([
|
|
13716
|
-
(0,
|
|
13895
|
+
(0, import_typeorm82.ViewColumn)({ name: "client_id" })
|
|
13717
13896
|
], JobFreelancerRecommendation.prototype, "clientId", 2);
|
|
13718
13897
|
__decorateClass([
|
|
13719
|
-
(0,
|
|
13898
|
+
(0, import_typeorm82.ViewColumn)({ name: "client_uuid" })
|
|
13720
13899
|
], JobFreelancerRecommendation.prototype, "clientUuid", 2);
|
|
13721
13900
|
__decorateClass([
|
|
13722
|
-
(0,
|
|
13901
|
+
(0, import_typeorm82.ViewColumn)({ name: "client_first_name" })
|
|
13723
13902
|
], JobFreelancerRecommendation.prototype, "clientFirstName", 2);
|
|
13724
13903
|
__decorateClass([
|
|
13725
|
-
(0,
|
|
13904
|
+
(0, import_typeorm82.ViewColumn)({ name: "client_last_name" })
|
|
13726
13905
|
], JobFreelancerRecommendation.prototype, "clientLastName", 2);
|
|
13727
13906
|
__decorateClass([
|
|
13728
|
-
(0,
|
|
13907
|
+
(0, import_typeorm82.ViewColumn)({ name: "client_email" })
|
|
13729
13908
|
], JobFreelancerRecommendation.prototype, "clientEmail", 2);
|
|
13730
13909
|
__decorateClass([
|
|
13731
|
-
(0,
|
|
13910
|
+
(0, import_typeorm82.ViewColumn)({ name: "client_company_logo" })
|
|
13732
13911
|
], JobFreelancerRecommendation.prototype, "clientCompanyLogo", 2);
|
|
13733
13912
|
__decorateClass([
|
|
13734
|
-
(0,
|
|
13913
|
+
(0, import_typeorm82.ViewColumn)({ name: "client_company_name" })
|
|
13735
13914
|
], JobFreelancerRecommendation.prototype, "clientCompanyName", 2);
|
|
13736
13915
|
__decorateClass([
|
|
13737
|
-
(0,
|
|
13916
|
+
(0, import_typeorm82.ViewColumn)({ name: "matching_skills" })
|
|
13738
13917
|
], JobFreelancerRecommendation.prototype, "matchingSkills", 2);
|
|
13739
13918
|
__decorateClass([
|
|
13740
|
-
(0,
|
|
13919
|
+
(0, import_typeorm82.ViewColumn)({ name: "matching_skills_count" })
|
|
13741
13920
|
], JobFreelancerRecommendation.prototype, "matchingSkillsCount", 2);
|
|
13742
13921
|
__decorateClass([
|
|
13743
|
-
(0,
|
|
13922
|
+
(0, import_typeorm82.ViewColumn)({ name: "required_skills" })
|
|
13744
13923
|
], JobFreelancerRecommendation.prototype, "requiredSkills", 2);
|
|
13745
13924
|
__decorateClass([
|
|
13746
|
-
(0,
|
|
13925
|
+
(0, import_typeorm82.ViewColumn)({ name: "required_skills_count" })
|
|
13747
13926
|
], JobFreelancerRecommendation.prototype, "requiredSkillsCount", 2);
|
|
13748
13927
|
JobFreelancerRecommendation = __decorateClass([
|
|
13749
|
-
(0,
|
|
13928
|
+
(0, import_typeorm82.ViewEntity)({
|
|
13750
13929
|
name: "job_freelancer_recommendations",
|
|
13751
13930
|
materialized: true,
|
|
13752
13931
|
synchronize: false
|
|
@@ -13755,32 +13934,32 @@ JobFreelancerRecommendation = __decorateClass([
|
|
|
13755
13934
|
], JobFreelancerRecommendation);
|
|
13756
13935
|
|
|
13757
13936
|
// src/entities/job-freelancer-recommendation-v2.entity.ts
|
|
13758
|
-
var
|
|
13937
|
+
var import_typeorm83 = require("typeorm");
|
|
13759
13938
|
var JobFreelancerRecommendationV2 = class {
|
|
13760
13939
|
};
|
|
13761
13940
|
__decorateClass([
|
|
13762
|
-
(0,
|
|
13941
|
+
(0, import_typeorm83.ViewColumn)({ name: "job_id" })
|
|
13763
13942
|
], JobFreelancerRecommendationV2.prototype, "jobId", 2);
|
|
13764
13943
|
__decorateClass([
|
|
13765
|
-
(0,
|
|
13944
|
+
(0, import_typeorm83.ViewColumn)({ name: "job_owner_id" })
|
|
13766
13945
|
], JobFreelancerRecommendationV2.prototype, "jobOwnerId", 2);
|
|
13767
13946
|
__decorateClass([
|
|
13768
|
-
(0,
|
|
13947
|
+
(0, import_typeorm83.ViewColumn)({ name: "freelancer_id" })
|
|
13769
13948
|
], JobFreelancerRecommendationV2.prototype, "freelancerId", 2);
|
|
13770
13949
|
__decorateClass([
|
|
13771
|
-
(0,
|
|
13950
|
+
(0, import_typeorm83.ViewColumn)({ name: "matching_skills" })
|
|
13772
13951
|
], JobFreelancerRecommendationV2.prototype, "matchingSkills", 2);
|
|
13773
13952
|
__decorateClass([
|
|
13774
|
-
(0,
|
|
13953
|
+
(0, import_typeorm83.ViewColumn)({ name: "matching_skills_count" })
|
|
13775
13954
|
], JobFreelancerRecommendationV2.prototype, "matchingSkillsCount", 2);
|
|
13776
13955
|
__decorateClass([
|
|
13777
|
-
(0,
|
|
13956
|
+
(0, import_typeorm83.ViewColumn)({ name: "required_skills" })
|
|
13778
13957
|
], JobFreelancerRecommendationV2.prototype, "requiredSkills", 2);
|
|
13779
13958
|
__decorateClass([
|
|
13780
|
-
(0,
|
|
13959
|
+
(0, import_typeorm83.ViewColumn)({ name: "required_skills_count" })
|
|
13781
13960
|
], JobFreelancerRecommendationV2.prototype, "requiredSkillsCount", 2);
|
|
13782
13961
|
JobFreelancerRecommendationV2 = __decorateClass([
|
|
13783
|
-
(0,
|
|
13962
|
+
(0, import_typeorm83.ViewEntity)({
|
|
13784
13963
|
name: "job_freelancer_recommendations_v2",
|
|
13785
13964
|
materialized: true,
|
|
13786
13965
|
synchronize: false
|
|
@@ -13789,74 +13968,74 @@ JobFreelancerRecommendationV2 = __decorateClass([
|
|
|
13789
13968
|
], JobFreelancerRecommendationV2);
|
|
13790
13969
|
|
|
13791
13970
|
// src/entities/client-freelancer-recommendation.entity.ts
|
|
13792
|
-
var
|
|
13971
|
+
var import_typeorm84 = require("typeorm");
|
|
13793
13972
|
var ClientFreelancerRecommendation = class {
|
|
13794
13973
|
};
|
|
13795
13974
|
__decorateClass([
|
|
13796
|
-
(0,
|
|
13975
|
+
(0, import_typeorm84.ViewColumn)({ name: "client_id" })
|
|
13797
13976
|
], ClientFreelancerRecommendation.prototype, "clientId", 2);
|
|
13798
13977
|
__decorateClass([
|
|
13799
|
-
(0,
|
|
13978
|
+
(0, import_typeorm84.ViewColumn)({ name: "client_uuid" })
|
|
13800
13979
|
], ClientFreelancerRecommendation.prototype, "clientUuid", 2);
|
|
13801
13980
|
__decorateClass([
|
|
13802
|
-
(0,
|
|
13981
|
+
(0, import_typeorm84.ViewColumn)({ name: "freelancer_id" })
|
|
13803
13982
|
], ClientFreelancerRecommendation.prototype, "freelancerId", 2);
|
|
13804
13983
|
__decorateClass([
|
|
13805
|
-
(0,
|
|
13984
|
+
(0, import_typeorm84.ViewColumn)({ name: "freelancer_uuid" })
|
|
13806
13985
|
], ClientFreelancerRecommendation.prototype, "freelancerUuid", 2);
|
|
13807
13986
|
__decorateClass([
|
|
13808
|
-
(0,
|
|
13987
|
+
(0, import_typeorm84.ViewColumn)({ name: "freelancer_unique_id" })
|
|
13809
13988
|
], ClientFreelancerRecommendation.prototype, "freelancerUniqueId", 2);
|
|
13810
13989
|
__decorateClass([
|
|
13811
|
-
(0,
|
|
13990
|
+
(0, import_typeorm84.ViewColumn)({ name: "freelancer_first_name" })
|
|
13812
13991
|
], ClientFreelancerRecommendation.prototype, "freelancerFirstName", 2);
|
|
13813
13992
|
__decorateClass([
|
|
13814
|
-
(0,
|
|
13993
|
+
(0, import_typeorm84.ViewColumn)({ name: "freelancer_last_name" })
|
|
13815
13994
|
], ClientFreelancerRecommendation.prototype, "freelancerLastName", 2);
|
|
13816
13995
|
__decorateClass([
|
|
13817
|
-
(0,
|
|
13996
|
+
(0, import_typeorm84.ViewColumn)({ name: "freelancer_email" })
|
|
13818
13997
|
], ClientFreelancerRecommendation.prototype, "freelancerEmail", 2);
|
|
13819
13998
|
__decorateClass([
|
|
13820
|
-
(0,
|
|
13999
|
+
(0, import_typeorm84.ViewColumn)({ name: "freelancer_profile_picture" })
|
|
13821
14000
|
], ClientFreelancerRecommendation.prototype, "freelancerProfilePicture", 2);
|
|
13822
14001
|
__decorateClass([
|
|
13823
|
-
(0,
|
|
14002
|
+
(0, import_typeorm84.ViewColumn)({ name: "freelancer_is_social" })
|
|
13824
14003
|
], ClientFreelancerRecommendation.prototype, "freelancerIsSocial", 2);
|
|
13825
14004
|
__decorateClass([
|
|
13826
|
-
(0,
|
|
14005
|
+
(0, import_typeorm84.ViewColumn)({ name: "freelancer_created_at" })
|
|
13827
14006
|
], ClientFreelancerRecommendation.prototype, "freelancerCreatedAt", 2);
|
|
13828
14007
|
__decorateClass([
|
|
13829
|
-
(0,
|
|
14008
|
+
(0, import_typeorm84.ViewColumn)({ name: "freelancer_designation" })
|
|
13830
14009
|
], ClientFreelancerRecommendation.prototype, "freelancerDesignation", 2);
|
|
13831
14010
|
__decorateClass([
|
|
13832
|
-
(0,
|
|
14011
|
+
(0, import_typeorm84.ViewColumn)({ name: "freelancer_experience" })
|
|
13833
14012
|
], ClientFreelancerRecommendation.prototype, "freelancerExperience", 2);
|
|
13834
14013
|
__decorateClass([
|
|
13835
|
-
(0,
|
|
14014
|
+
(0, import_typeorm84.ViewColumn)({ name: "freelancer_expertshub_verified" })
|
|
13836
14015
|
], ClientFreelancerRecommendation.prototype, "freelancerExpertshubVerified", 2);
|
|
13837
14016
|
__decorateClass([
|
|
13838
|
-
(0,
|
|
14017
|
+
(0, import_typeorm84.ViewColumn)({ name: "freelancer_hourly_compensation" })
|
|
13839
14018
|
], ClientFreelancerRecommendation.prototype, "freelancerHourlyCompensation", 2);
|
|
13840
14019
|
__decorateClass([
|
|
13841
|
-
(0,
|
|
14020
|
+
(0, import_typeorm84.ViewColumn)({ name: "freelancer_country_name" })
|
|
13842
14021
|
], ClientFreelancerRecommendation.prototype, "freelancerCountryName", 2);
|
|
13843
14022
|
__decorateClass([
|
|
13844
|
-
(0,
|
|
14023
|
+
(0, import_typeorm84.ViewColumn)({ name: "freelancer_country_iso_code" })
|
|
13845
14024
|
], ClientFreelancerRecommendation.prototype, "freelancerCountryIsoCode", 2);
|
|
13846
14025
|
__decorateClass([
|
|
13847
|
-
(0,
|
|
14026
|
+
(0, import_typeorm84.ViewColumn)({ name: "matching_skills" })
|
|
13848
14027
|
], ClientFreelancerRecommendation.prototype, "matchingSkills", 2);
|
|
13849
14028
|
__decorateClass([
|
|
13850
|
-
(0,
|
|
14029
|
+
(0, import_typeorm84.ViewColumn)({ name: "matching_skills_count" })
|
|
13851
14030
|
], ClientFreelancerRecommendation.prototype, "matchingSkillsCount", 2);
|
|
13852
14031
|
__decorateClass([
|
|
13853
|
-
(0,
|
|
14032
|
+
(0, import_typeorm84.ViewColumn)({ name: "required_skills" })
|
|
13854
14033
|
], ClientFreelancerRecommendation.prototype, "requiredSkills", 2);
|
|
13855
14034
|
__decorateClass([
|
|
13856
|
-
(0,
|
|
14035
|
+
(0, import_typeorm84.ViewColumn)({ name: "required_skills_count" })
|
|
13857
14036
|
], ClientFreelancerRecommendation.prototype, "requiredSkillsCount", 2);
|
|
13858
14037
|
ClientFreelancerRecommendation = __decorateClass([
|
|
13859
|
-
(0,
|
|
14038
|
+
(0, import_typeorm84.ViewEntity)({
|
|
13860
14039
|
name: "client_freelancer_recommendations",
|
|
13861
14040
|
materialized: true,
|
|
13862
14041
|
synchronize: false
|
|
@@ -13865,7 +14044,7 @@ ClientFreelancerRecommendation = __decorateClass([
|
|
|
13865
14044
|
], ClientFreelancerRecommendation);
|
|
13866
14045
|
|
|
13867
14046
|
// src/entities/commission.entity.ts
|
|
13868
|
-
var
|
|
14047
|
+
var import_typeorm85 = require("typeorm");
|
|
13869
14048
|
var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
|
|
13870
14049
|
CommissionTypeEnum2["PERCENTAGE"] = "PERCENTAGE";
|
|
13871
14050
|
CommissionTypeEnum2["FLAT"] = "FLAT";
|
|
@@ -13874,7 +14053,7 @@ var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
|
|
|
13874
14053
|
var Commission = class extends BaseEntity {
|
|
13875
14054
|
};
|
|
13876
14055
|
__decorateClass([
|
|
13877
|
-
(0,
|
|
14056
|
+
(0, import_typeorm85.Column)({
|
|
13878
14057
|
name: "freelancer_commission_type",
|
|
13879
14058
|
type: "enum",
|
|
13880
14059
|
enum: CommissionTypeEnum,
|
|
@@ -13882,10 +14061,10 @@ __decorateClass([
|
|
|
13882
14061
|
})
|
|
13883
14062
|
], Commission.prototype, "freelancerCommissionType", 2);
|
|
13884
14063
|
__decorateClass([
|
|
13885
|
-
(0,
|
|
14064
|
+
(0, import_typeorm85.Column)({ name: "freelancer_commission", type: "integer", default: 0 })
|
|
13886
14065
|
], Commission.prototype, "freelancerCommission", 2);
|
|
13887
14066
|
__decorateClass([
|
|
13888
|
-
(0,
|
|
14067
|
+
(0, import_typeorm85.Column)({
|
|
13889
14068
|
name: "client_commission_type",
|
|
13890
14069
|
type: "enum",
|
|
13891
14070
|
enum: CommissionTypeEnum,
|
|
@@ -13893,50 +14072,50 @@ __decorateClass([
|
|
|
13893
14072
|
})
|
|
13894
14073
|
], Commission.prototype, "clientCommissionType", 2);
|
|
13895
14074
|
__decorateClass([
|
|
13896
|
-
(0,
|
|
14075
|
+
(0, import_typeorm85.Column)({ name: "client_commission", type: "integer", default: 0 })
|
|
13897
14076
|
], Commission.prototype, "clientCommission", 2);
|
|
13898
14077
|
Commission = __decorateClass([
|
|
13899
|
-
(0,
|
|
14078
|
+
(0, import_typeorm85.Entity)("commissions")
|
|
13900
14079
|
], Commission);
|
|
13901
14080
|
|
|
13902
14081
|
// src/entities/calendly-meeting-log.entity.ts
|
|
13903
|
-
var
|
|
14082
|
+
var import_typeorm86 = require("typeorm");
|
|
13904
14083
|
var CalendlyMeetingLog = class extends BaseEntity {
|
|
13905
14084
|
};
|
|
13906
14085
|
__decorateClass([
|
|
13907
|
-
(0,
|
|
13908
|
-
(0,
|
|
14086
|
+
(0, import_typeorm86.Column)({ name: "calendly_event_id", type: "varchar", nullable: true }),
|
|
14087
|
+
(0, import_typeorm86.Index)()
|
|
13909
14088
|
], CalendlyMeetingLog.prototype, "calendlyEventId", 2);
|
|
13910
14089
|
__decorateClass([
|
|
13911
|
-
(0,
|
|
14090
|
+
(0, import_typeorm86.Column)({ name: "calendly_event_type", type: "varchar", nullable: true })
|
|
13912
14091
|
], CalendlyMeetingLog.prototype, "calendlyEventType", 2);
|
|
13913
14092
|
__decorateClass([
|
|
13914
|
-
(0,
|
|
14093
|
+
(0, import_typeorm86.Column)({ name: "raw_webhook_data", type: "jsonb", nullable: true })
|
|
13915
14094
|
], CalendlyMeetingLog.prototype, "rawWebhookData", 2);
|
|
13916
14095
|
CalendlyMeetingLog = __decorateClass([
|
|
13917
|
-
(0,
|
|
14096
|
+
(0, import_typeorm86.Entity)("calendly_meeting_logs")
|
|
13918
14097
|
], CalendlyMeetingLog);
|
|
13919
14098
|
|
|
13920
14099
|
// src/entities/zoom-meeting-log.entity.ts
|
|
13921
|
-
var
|
|
14100
|
+
var import_typeorm87 = require("typeorm");
|
|
13922
14101
|
var ZoomMeetingLog = class extends BaseEntity {
|
|
13923
14102
|
};
|
|
13924
14103
|
__decorateClass([
|
|
13925
|
-
(0,
|
|
13926
|
-
(0,
|
|
14104
|
+
(0, import_typeorm87.Column)({ name: "zoom_meeting_id", type: "varchar", nullable: true }),
|
|
14105
|
+
(0, import_typeorm87.Index)()
|
|
13927
14106
|
], ZoomMeetingLog.prototype, "zoomMeetingId", 2);
|
|
13928
14107
|
__decorateClass([
|
|
13929
|
-
(0,
|
|
14108
|
+
(0, import_typeorm87.Column)({ name: "zoom_event_type", type: "varchar", nullable: true })
|
|
13930
14109
|
], ZoomMeetingLog.prototype, "zoomEventType", 2);
|
|
13931
14110
|
__decorateClass([
|
|
13932
|
-
(0,
|
|
14111
|
+
(0, import_typeorm87.Column)({ name: "raw_webhook_data", type: "jsonb", nullable: true })
|
|
13933
14112
|
], ZoomMeetingLog.prototype, "rawWebhookData", 2);
|
|
13934
14113
|
ZoomMeetingLog = __decorateClass([
|
|
13935
|
-
(0,
|
|
14114
|
+
(0, import_typeorm87.Entity)("zoom_meeting_logs")
|
|
13936
14115
|
], ZoomMeetingLog);
|
|
13937
14116
|
|
|
13938
14117
|
// src/entities/docuseal.entity.ts
|
|
13939
|
-
var
|
|
14118
|
+
var import_typeorm88 = require("typeorm");
|
|
13940
14119
|
var DocuSealTypeEnum = /* @__PURE__ */ ((DocuSealTypeEnum2) => {
|
|
13941
14120
|
DocuSealTypeEnum2["FREELANCER_SERVICE_AGGREMENT"] = "FREELANCER_SERVICE_AGGREMENT";
|
|
13942
14121
|
DocuSealTypeEnum2["CLIENT_SERVICE_AGGREMENT"] = "CLIENT_SERVICE_AGGREMENT";
|
|
@@ -13946,132 +14125,132 @@ var DocuSealTypeEnum = /* @__PURE__ */ ((DocuSealTypeEnum2) => {
|
|
|
13946
14125
|
var DocuSeal = class extends BaseEntity {
|
|
13947
14126
|
};
|
|
13948
14127
|
__decorateClass([
|
|
13949
|
-
(0,
|
|
13950
|
-
(0,
|
|
14128
|
+
(0, import_typeorm88.Column)({ name: "reference_id", type: "integer", nullable: false }),
|
|
14129
|
+
(0, import_typeorm88.Index)()
|
|
13951
14130
|
], DocuSeal.prototype, "referenceId", 2);
|
|
13952
14131
|
__decorateClass([
|
|
13953
|
-
(0,
|
|
13954
|
-
(0,
|
|
14132
|
+
(0, import_typeorm88.Column)({ name: "submitter_id", type: "integer", nullable: true }),
|
|
14133
|
+
(0, import_typeorm88.Index)()
|
|
13955
14134
|
], DocuSeal.prototype, "submitterId", 2);
|
|
13956
14135
|
__decorateClass([
|
|
13957
|
-
(0,
|
|
14136
|
+
(0, import_typeorm88.Column)({ name: "submitter_response", type: "jsonb", nullable: true })
|
|
13958
14137
|
], DocuSeal.prototype, "submitterResponse", 2);
|
|
13959
14138
|
__decorateClass([
|
|
13960
|
-
(0,
|
|
14139
|
+
(0, import_typeorm88.Column)({ name: "webhook_response", type: "jsonb", nullable: true })
|
|
13961
14140
|
], DocuSeal.prototype, "webhookResponse", 2);
|
|
13962
14141
|
__decorateClass([
|
|
13963
|
-
(0,
|
|
14142
|
+
(0, import_typeorm88.Column)({ name: "type", type: "enum", enum: DocuSealTypeEnum, nullable: true })
|
|
13964
14143
|
], DocuSeal.prototype, "type", 2);
|
|
13965
14144
|
DocuSeal = __decorateClass([
|
|
13966
|
-
(0,
|
|
14145
|
+
(0, import_typeorm88.Entity)("docuseal")
|
|
13967
14146
|
], DocuSeal);
|
|
13968
14147
|
|
|
13969
14148
|
// src/entities/stripe-logs.entity.ts
|
|
13970
|
-
var
|
|
14149
|
+
var import_typeorm89 = require("typeorm");
|
|
13971
14150
|
var StripeLog = class extends BaseEntity {
|
|
13972
14151
|
};
|
|
13973
14152
|
__decorateClass([
|
|
13974
|
-
(0,
|
|
14153
|
+
(0, import_typeorm89.Column)({ name: "stripe_event_id", type: "varchar", nullable: true })
|
|
13975
14154
|
], StripeLog.prototype, "stripeEventId", 2);
|
|
13976
14155
|
__decorateClass([
|
|
13977
|
-
(0,
|
|
14156
|
+
(0, import_typeorm89.Column)({ name: "event_type", type: "varchar", nullable: true })
|
|
13978
14157
|
], StripeLog.prototype, "eventType", 2);
|
|
13979
14158
|
__decorateClass([
|
|
13980
|
-
(0,
|
|
14159
|
+
(0, import_typeorm89.Column)({ name: "stripe_account_id", type: "varchar", nullable: true })
|
|
13981
14160
|
], StripeLog.prototype, "stripeAccountId", 2);
|
|
13982
14161
|
__decorateClass([
|
|
13983
|
-
(0,
|
|
14162
|
+
(0, import_typeorm89.Column)({ name: "raw_webhook_data", type: "jsonb", nullable: true })
|
|
13984
14163
|
], StripeLog.prototype, "rawWebhookData", 2);
|
|
13985
14164
|
StripeLog = __decorateClass([
|
|
13986
|
-
(0,
|
|
14165
|
+
(0, import_typeorm89.Entity)("stripe_logs")
|
|
13987
14166
|
], StripeLog);
|
|
13988
14167
|
|
|
13989
14168
|
// src/entities/recommendation-weightage-config.entity.ts
|
|
13990
|
-
var
|
|
14169
|
+
var import_typeorm90 = require("typeorm");
|
|
13991
14170
|
var RecommendationWeightageConfig = class extends BaseEntity {
|
|
13992
14171
|
};
|
|
13993
14172
|
__decorateClass([
|
|
13994
|
-
(0,
|
|
14173
|
+
(0, import_typeorm90.Column)({
|
|
13995
14174
|
type: "varchar",
|
|
13996
14175
|
length: 100,
|
|
13997
14176
|
unique: true,
|
|
13998
14177
|
comment: "Unique key identifier (e.g., full_time_weights, hourly_weights)"
|
|
13999
14178
|
}),
|
|
14000
|
-
(0,
|
|
14179
|
+
(0, import_typeorm90.Index)()
|
|
14001
14180
|
], RecommendationWeightageConfig.prototype, "key", 2);
|
|
14002
14181
|
__decorateClass([
|
|
14003
|
-
(0,
|
|
14182
|
+
(0, import_typeorm90.Column)({
|
|
14004
14183
|
type: "jsonb",
|
|
14005
14184
|
comment: "JSON object containing weight values",
|
|
14006
14185
|
nullable: true
|
|
14007
14186
|
})
|
|
14008
14187
|
], RecommendationWeightageConfig.prototype, "value", 2);
|
|
14009
14188
|
__decorateClass([
|
|
14010
|
-
(0,
|
|
14189
|
+
(0, import_typeorm90.Column)({ name: "is_active", type: "boolean", default: true })
|
|
14011
14190
|
], RecommendationWeightageConfig.prototype, "isActive", 2);
|
|
14012
14191
|
RecommendationWeightageConfig = __decorateClass([
|
|
14013
|
-
(0,
|
|
14192
|
+
(0, import_typeorm90.Entity)("recommendation_weightage_configs")
|
|
14014
14193
|
], RecommendationWeightageConfig);
|
|
14015
14194
|
|
|
14016
14195
|
// src/entities/global-setting.entity.ts
|
|
14017
|
-
var
|
|
14196
|
+
var import_typeorm91 = require("typeorm");
|
|
14018
14197
|
var GlobalSetting = class extends BaseEntity {
|
|
14019
14198
|
};
|
|
14020
14199
|
__decorateClass([
|
|
14021
|
-
(0,
|
|
14200
|
+
(0, import_typeorm91.Column)({ name: "key", type: "varchar", length: 255, nullable: false, unique: true })
|
|
14022
14201
|
], GlobalSetting.prototype, "key", 2);
|
|
14023
14202
|
__decorateClass([
|
|
14024
|
-
(0,
|
|
14203
|
+
(0, import_typeorm91.Column)({ name: "value", type: "text", nullable: false })
|
|
14025
14204
|
], GlobalSetting.prototype, "value", 2);
|
|
14026
14205
|
GlobalSetting = __decorateClass([
|
|
14027
|
-
(0,
|
|
14028
|
-
(0,
|
|
14206
|
+
(0, import_typeorm91.Entity)("global_settings"),
|
|
14207
|
+
(0, import_typeorm91.Index)(["key"], { unique: true })
|
|
14029
14208
|
], GlobalSetting);
|
|
14030
14209
|
|
|
14031
14210
|
// src/entities/plan.entity.ts
|
|
14032
|
-
var
|
|
14211
|
+
var import_typeorm94 = require("typeorm");
|
|
14033
14212
|
|
|
14034
14213
|
// src/entities/plan-feature.entity.ts
|
|
14035
|
-
var
|
|
14214
|
+
var import_typeorm92 = require("typeorm");
|
|
14036
14215
|
var PlanFeature = class extends BaseEntity {
|
|
14037
14216
|
};
|
|
14038
14217
|
// individual index to find features by plan
|
|
14039
14218
|
__decorateClass([
|
|
14040
|
-
(0,
|
|
14041
|
-
(0,
|
|
14219
|
+
(0, import_typeorm92.Column)({ name: "plan_id", type: "integer", nullable: false }),
|
|
14220
|
+
(0, import_typeorm92.Index)()
|
|
14042
14221
|
], PlanFeature.prototype, "planId", 2);
|
|
14043
14222
|
__decorateClass([
|
|
14044
|
-
(0,
|
|
14223
|
+
(0, import_typeorm92.ManyToOne)(() => Plan, (plan) => plan.features, {
|
|
14045
14224
|
onDelete: "CASCADE",
|
|
14046
14225
|
nullable: false
|
|
14047
14226
|
}),
|
|
14048
|
-
(0,
|
|
14227
|
+
(0, import_typeorm92.JoinColumn)({ name: "plan_id" })
|
|
14049
14228
|
], PlanFeature.prototype, "plan", 2);
|
|
14050
14229
|
__decorateClass([
|
|
14051
|
-
(0,
|
|
14230
|
+
(0, import_typeorm92.Column)({ name: "name", type: "varchar", length: 200 })
|
|
14052
14231
|
], PlanFeature.prototype, "name", 2);
|
|
14053
14232
|
__decorateClass([
|
|
14054
|
-
(0,
|
|
14055
|
-
(0,
|
|
14233
|
+
(0, import_typeorm92.Column)({ name: "slug", type: "varchar", length: 100 }),
|
|
14234
|
+
(0, import_typeorm92.Index)()
|
|
14056
14235
|
], PlanFeature.prototype, "slug", 2);
|
|
14057
14236
|
__decorateClass([
|
|
14058
|
-
(0,
|
|
14237
|
+
(0, import_typeorm92.Column)({ name: "tooltip", type: "varchar", length: 300, nullable: true })
|
|
14059
14238
|
], PlanFeature.prototype, "tooltip", 2);
|
|
14060
14239
|
__decorateClass([
|
|
14061
|
-
(0,
|
|
14240
|
+
(0, import_typeorm92.Column)({ name: "sort_order", type: "smallint", default: 0 })
|
|
14062
14241
|
], PlanFeature.prototype, "sortOrder", 2);
|
|
14063
14242
|
__decorateClass([
|
|
14064
|
-
(0,
|
|
14243
|
+
(0, import_typeorm92.Column)({ name: "is_active", type: "boolean", default: true })
|
|
14065
14244
|
], PlanFeature.prototype, "isActive", 2);
|
|
14066
14245
|
PlanFeature = __decorateClass([
|
|
14067
|
-
(0,
|
|
14068
|
-
(0,
|
|
14069
|
-
(0,
|
|
14070
|
-
(0,
|
|
14246
|
+
(0, import_typeorm92.Entity)("plan_features"),
|
|
14247
|
+
(0, import_typeorm92.Index)("idx_plan_features_plan_id", ["planId"]),
|
|
14248
|
+
(0, import_typeorm92.Index)("idx_plan_features_plan_sort", ["planId", "sortOrder"]),
|
|
14249
|
+
(0, import_typeorm92.Check)("chk_plan_features_sort_order_positive", '"sort_order" >= 0')
|
|
14071
14250
|
], PlanFeature);
|
|
14072
14251
|
|
|
14073
14252
|
// src/entities/plan-pricing.entity.ts
|
|
14074
|
-
var
|
|
14253
|
+
var import_typeorm93 = require("typeorm");
|
|
14075
14254
|
var PlanPricingBillingCycleEnum = /* @__PURE__ */ ((PlanPricingBillingCycleEnum2) => {
|
|
14076
14255
|
PlanPricingBillingCycleEnum2["MONTHLY"] = "monthly";
|
|
14077
14256
|
PlanPricingBillingCycleEnum2["YEARLY"] = "yearly";
|
|
@@ -14126,61 +14305,61 @@ var PlanPricing = class extends BaseEntity {
|
|
|
14126
14305
|
};
|
|
14127
14306
|
// individual index to find pricing by plan
|
|
14128
14307
|
__decorateClass([
|
|
14129
|
-
(0,
|
|
14130
|
-
(0,
|
|
14308
|
+
(0, import_typeorm93.Column)({ name: "plan_id", type: "integer", nullable: false }),
|
|
14309
|
+
(0, import_typeorm93.Index)()
|
|
14131
14310
|
], PlanPricing.prototype, "planId", 2);
|
|
14132
14311
|
__decorateClass([
|
|
14133
|
-
(0,
|
|
14312
|
+
(0, import_typeorm93.ManyToOne)(() => Plan, (plan) => plan.pricing, {
|
|
14134
14313
|
onDelete: "CASCADE",
|
|
14135
14314
|
nullable: false
|
|
14136
14315
|
}),
|
|
14137
|
-
(0,
|
|
14316
|
+
(0, import_typeorm93.JoinColumn)({ name: "plan_id" })
|
|
14138
14317
|
], PlanPricing.prototype, "plan", 2);
|
|
14139
14318
|
__decorateClass([
|
|
14140
|
-
(0,
|
|
14319
|
+
(0, import_typeorm93.Column)({
|
|
14141
14320
|
name: "billing_cycle",
|
|
14142
14321
|
type: "enum",
|
|
14143
14322
|
enum: PlanPricingBillingCycleEnum
|
|
14144
14323
|
})
|
|
14145
14324
|
], PlanPricing.prototype, "billingCycle", 2);
|
|
14146
14325
|
__decorateClass([
|
|
14147
|
-
(0,
|
|
14326
|
+
(0, import_typeorm93.Column)({ name: "price", type: "decimal", precision: 10, scale: 2, default: 0 })
|
|
14148
14327
|
], PlanPricing.prototype, "price", 2);
|
|
14149
14328
|
__decorateClass([
|
|
14150
|
-
(0,
|
|
14329
|
+
(0, import_typeorm93.Column)({ name: "original_price", type: "decimal", precision: 10, scale: 2, nullable: true })
|
|
14151
14330
|
], PlanPricing.prototype, "originalPrice", 2);
|
|
14152
14331
|
__decorateClass([
|
|
14153
|
-
(0,
|
|
14332
|
+
(0, import_typeorm93.Column)({ name: "discount_pct", type: "smallint", nullable: true })
|
|
14154
14333
|
], PlanPricing.prototype, "discountPct", 2);
|
|
14155
14334
|
__decorateClass([
|
|
14156
|
-
(0,
|
|
14335
|
+
(0, import_typeorm93.Column)({ name: "currency", type: "varchar", length: 3, default: "USD" })
|
|
14157
14336
|
], PlanPricing.prototype, "currency", 2);
|
|
14158
14337
|
__decorateClass([
|
|
14159
|
-
(0,
|
|
14338
|
+
(0, import_typeorm93.Column)({ name: "is_free", type: "boolean", default: false })
|
|
14160
14339
|
], PlanPricing.prototype, "isFree", 2);
|
|
14161
14340
|
__decorateClass([
|
|
14162
|
-
(0,
|
|
14341
|
+
(0, import_typeorm93.Column)({ name: "stripe_price_id", type: "varchar", length: 100, nullable: true, unique: true })
|
|
14163
14342
|
], PlanPricing.prototype, "stripePriceId", 2);
|
|
14164
14343
|
__decorateClass([
|
|
14165
|
-
(0,
|
|
14344
|
+
(0, import_typeorm93.Column)({ name: "trial_days", type: "smallint", default: 0 })
|
|
14166
14345
|
], PlanPricing.prototype, "trialDays", 2);
|
|
14167
14346
|
__decorateClass([
|
|
14168
|
-
(0,
|
|
14347
|
+
(0, import_typeorm93.Column)({ name: "is_active", type: "boolean", default: true })
|
|
14169
14348
|
], PlanPricing.prototype, "isActive", 2);
|
|
14170
14349
|
__decorateClass([
|
|
14171
|
-
(0,
|
|
14172
|
-
(0,
|
|
14350
|
+
(0, import_typeorm93.BeforeInsert)(),
|
|
14351
|
+
(0, import_typeorm93.BeforeUpdate)()
|
|
14173
14352
|
], PlanPricing.prototype, "sanitize", 1);
|
|
14174
14353
|
PlanPricing = __decorateClass([
|
|
14175
|
-
(0,
|
|
14176
|
-
(0,
|
|
14177
|
-
(0,
|
|
14178
|
-
(0,
|
|
14179
|
-
(0,
|
|
14180
|
-
(0,
|
|
14181
|
-
(0,
|
|
14182
|
-
(0,
|
|
14183
|
-
(0,
|
|
14354
|
+
(0, import_typeorm93.Entity)("plan_pricings"),
|
|
14355
|
+
(0, import_typeorm93.Unique)("uq_plan_pricings_plan_cycle", ["planId", "billingCycle"]),
|
|
14356
|
+
(0, import_typeorm93.Index)("idx_plan_pricings_plan_id", ["planId"]),
|
|
14357
|
+
(0, import_typeorm93.Index)("idx_plan_pricings_active", ["isActive", "billingCycle"]),
|
|
14358
|
+
(0, import_typeorm93.Check)("chk_plan_pricings_free_price_zero", '("is_free" = false) OR ("is_free" = true AND "price" = 0)'),
|
|
14359
|
+
(0, import_typeorm93.Check)("chk_plan_pricings_trial_days_non_negative", '"trial_days" >= 0'),
|
|
14360
|
+
(0, import_typeorm93.Check)("chk_plan_pricings_discount_range", '"discount_pct" IS NULL OR ("discount_pct" >= 1 AND "discount_pct" <= 99)'),
|
|
14361
|
+
(0, import_typeorm93.Check)("chk_plan_pricings_original_gte_price", '"original_price" IS NULL OR "original_price" >= "price"'),
|
|
14362
|
+
(0, import_typeorm93.Check)("chk_plan_pricings_original_price_non_negative", '"original_price" IS NULL OR "original_price" >= 0')
|
|
14184
14363
|
], PlanPricing);
|
|
14185
14364
|
|
|
14186
14365
|
// src/entities/plan.entity.ts
|
|
@@ -14197,22 +14376,22 @@ var Plan = class extends BaseEntity {
|
|
|
14197
14376
|
}
|
|
14198
14377
|
};
|
|
14199
14378
|
__decorateClass([
|
|
14200
|
-
(0,
|
|
14379
|
+
(0, import_typeorm94.Column)({ name: "name", type: "varchar", length: 100 })
|
|
14201
14380
|
], Plan.prototype, "name", 2);
|
|
14202
14381
|
__decorateClass([
|
|
14203
|
-
(0,
|
|
14382
|
+
(0, import_typeorm94.Column)({ name: "slug", type: "varchar", length: 100 })
|
|
14204
14383
|
], Plan.prototype, "slug", 2);
|
|
14205
14384
|
__decorateClass([
|
|
14206
|
-
(0,
|
|
14385
|
+
(0, import_typeorm94.Column)({ name: "badge_label", type: "varchar", length: 60, nullable: true })
|
|
14207
14386
|
], Plan.prototype, "badgeLabel", 2);
|
|
14208
14387
|
__decorateClass([
|
|
14209
|
-
(0,
|
|
14388
|
+
(0, import_typeorm94.Column)({ name: "sort_order", type: "smallint", default: 0 })
|
|
14210
14389
|
], Plan.prototype, "sortOrder", 2);
|
|
14211
14390
|
__decorateClass([
|
|
14212
|
-
(0,
|
|
14391
|
+
(0, import_typeorm94.Column)({ name: "is_active", type: "boolean", default: true })
|
|
14213
14392
|
], Plan.prototype, "isActive", 2);
|
|
14214
14393
|
__decorateClass([
|
|
14215
|
-
(0,
|
|
14394
|
+
(0, import_typeorm94.Column)({
|
|
14216
14395
|
name: "plan_type",
|
|
14217
14396
|
type: "enum",
|
|
14218
14397
|
enum: PlanTypeEnum,
|
|
@@ -14220,31 +14399,31 @@ __decorateClass([
|
|
|
14220
14399
|
})
|
|
14221
14400
|
], Plan.prototype, "planType", 2);
|
|
14222
14401
|
__decorateClass([
|
|
14223
|
-
(0,
|
|
14402
|
+
(0, import_typeorm94.Column)({ name: "metadata", type: "jsonb", default: {} })
|
|
14224
14403
|
], Plan.prototype, "metadata", 2);
|
|
14225
14404
|
__decorateClass([
|
|
14226
|
-
(0,
|
|
14227
|
-
(0,
|
|
14405
|
+
(0, import_typeorm94.BeforeInsert)(),
|
|
14406
|
+
(0, import_typeorm94.BeforeUpdate)()
|
|
14228
14407
|
], Plan.prototype, "createSlug", 1);
|
|
14229
14408
|
__decorateClass([
|
|
14230
|
-
(0,
|
|
14409
|
+
(0, import_typeorm94.OneToMany)(() => PlanFeature, (feature) => feature.plan, {
|
|
14231
14410
|
cascade: ["insert", "update"]
|
|
14232
14411
|
})
|
|
14233
14412
|
], Plan.prototype, "features", 2);
|
|
14234
14413
|
__decorateClass([
|
|
14235
|
-
(0,
|
|
14414
|
+
(0, import_typeorm94.OneToMany)(() => PlanPricing, (pricing) => pricing.plan, {
|
|
14236
14415
|
cascade: ["insert", "update"]
|
|
14237
14416
|
})
|
|
14238
14417
|
], Plan.prototype, "pricing", 2);
|
|
14239
14418
|
Plan = __decorateClass([
|
|
14240
|
-
(0,
|
|
14241
|
-
(0,
|
|
14242
|
-
(0,
|
|
14243
|
-
(0,
|
|
14419
|
+
(0, import_typeorm94.Entity)("plans"),
|
|
14420
|
+
(0, import_typeorm94.Index)("idx_plans_slug", ["slug"], { unique: true, where: '"is_deleted" IS FALSE' }),
|
|
14421
|
+
(0, import_typeorm94.Index)("idx_plans_active_sort", ["isActive", "sortOrder"]),
|
|
14422
|
+
(0, import_typeorm94.Check)("chk_plans_sort_order_positive", '"sort_order" >= 0')
|
|
14244
14423
|
], Plan);
|
|
14245
14424
|
|
|
14246
14425
|
// src/entities/subscription-feature.entity.ts
|
|
14247
|
-
var
|
|
14426
|
+
var import_typeorm95 = require("typeorm");
|
|
14248
14427
|
var SubscriptionFeature = class extends BaseEntity {
|
|
14249
14428
|
toSlug(value) {
|
|
14250
14429
|
return value.toLowerCase().trim().replace(/\s+/g, "-").replace(/[^a-z0-9-]/g, "").replace(/-+/g, "-").replace(/^-|-$/g, "");
|
|
@@ -14259,29 +14438,29 @@ var SubscriptionFeature = class extends BaseEntity {
|
|
|
14259
14438
|
}
|
|
14260
14439
|
};
|
|
14261
14440
|
__decorateClass([
|
|
14262
|
-
(0,
|
|
14441
|
+
(0, import_typeorm95.Column)({ name: "name", type: "varchar", length: 200 })
|
|
14263
14442
|
], SubscriptionFeature.prototype, "name", 2);
|
|
14264
14443
|
__decorateClass([
|
|
14265
|
-
(0,
|
|
14444
|
+
(0, import_typeorm95.Column)({ name: "slug", type: "varchar", length: 100 })
|
|
14266
14445
|
], SubscriptionFeature.prototype, "slug", 2);
|
|
14267
14446
|
__decorateClass([
|
|
14268
|
-
(0,
|
|
14447
|
+
(0, import_typeorm95.Column)({ name: "tooltip", type: "varchar", length: 300, nullable: true })
|
|
14269
14448
|
], SubscriptionFeature.prototype, "tooltip", 2);
|
|
14270
14449
|
__decorateClass([
|
|
14271
|
-
(0,
|
|
14450
|
+
(0, import_typeorm95.Column)({ name: "sort_order", type: "smallint", default: 0 })
|
|
14272
14451
|
], SubscriptionFeature.prototype, "sortOrder", 2);
|
|
14273
14452
|
__decorateClass([
|
|
14274
|
-
(0,
|
|
14453
|
+
(0, import_typeorm95.Column)({ name: "is_active", type: "boolean", default: true })
|
|
14275
14454
|
], SubscriptionFeature.prototype, "isActive", 2);
|
|
14276
14455
|
__decorateClass([
|
|
14277
|
-
(0,
|
|
14278
|
-
(0,
|
|
14456
|
+
(0, import_typeorm95.BeforeInsert)(),
|
|
14457
|
+
(0, import_typeorm95.BeforeUpdate)()
|
|
14279
14458
|
], SubscriptionFeature.prototype, "createSlug", 1);
|
|
14280
14459
|
SubscriptionFeature = __decorateClass([
|
|
14281
|
-
(0,
|
|
14282
|
-
(0,
|
|
14283
|
-
(0,
|
|
14284
|
-
(0,
|
|
14460
|
+
(0, import_typeorm95.Entity)("subscription_features"),
|
|
14461
|
+
(0, import_typeorm95.Index)("idx_subscription_features_slug", ["slug"], { unique: true, where: '"is_deleted" IS FALSE' }),
|
|
14462
|
+
(0, import_typeorm95.Index)("idx_subscription_features_active_sort", ["isActive", "sortOrder"]),
|
|
14463
|
+
(0, import_typeorm95.Check)("chk_subscription_features_sort_order_positive", '"sort_order" >= 0')
|
|
14285
14464
|
], SubscriptionFeature);
|
|
14286
14465
|
// Annotate the CommonJS export names for ESM import in node:
|
|
14287
14466
|
0 && (module.exports = {
|
|
@@ -14651,6 +14830,12 @@ SubscriptionFeature = __decorateClass([
|
|
|
14651
14830
|
TaskDeliverable,
|
|
14652
14831
|
TaskDeliverableTypeEnum,
|
|
14653
14832
|
TaskPriorityEnum,
|
|
14833
|
+
TaskQuery,
|
|
14834
|
+
TaskQueryCategoryEnum,
|
|
14835
|
+
TaskQueryMessage,
|
|
14836
|
+
TaskQueryMessageUserTypeEnum,
|
|
14837
|
+
TaskQueryStatusEnum,
|
|
14838
|
+
TaskQueryUserTypeEnum,
|
|
14654
14839
|
TaskResource,
|
|
14655
14840
|
TaskResourceTypeEnum,
|
|
14656
14841
|
TaskStatusEnum,
|