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