@experts_hub/shared 1.0.691 → 1.0.692
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/task.entity.d.ts +2 -0
- package/dist/index.d.mts +53 -52
- package/dist/index.d.ts +53 -52
- package/dist/index.js +716 -713
- package/dist/index.mjs +798 -795
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2231,7 +2231,7 @@ FreelancerProfile = __decorateClass([
|
|
|
2231
2231
|
], FreelancerProfile);
|
|
2232
2232
|
|
|
2233
2233
|
// src/entities/job.entity.ts
|
|
2234
|
-
var
|
|
2234
|
+
var import_typeorm43 = require("typeorm");
|
|
2235
2235
|
|
|
2236
2236
|
// src/entities/job-skill.entity.ts
|
|
2237
2237
|
var import_typeorm10 = require("typeorm");
|
|
@@ -4083,10 +4083,10 @@ Contract = __decorateClass([
|
|
|
4083
4083
|
], Contract);
|
|
4084
4084
|
|
|
4085
4085
|
// src/entities/timesheets.entity.ts
|
|
4086
|
-
var
|
|
4086
|
+
var import_typeorm40 = require("typeorm");
|
|
4087
4087
|
|
|
4088
4088
|
// src/entities/task.entity.ts
|
|
4089
|
-
var
|
|
4089
|
+
var import_typeorm39 = require("typeorm");
|
|
4090
4090
|
|
|
4091
4091
|
// src/entities/task-deliverable.entity.ts
|
|
4092
4092
|
var import_typeorm32 = require("typeorm");
|
|
@@ -4258,6 +4258,169 @@ TaskLogTime = __decorateClass([
|
|
|
4258
4258
|
(0, import_typeorm36.Entity)("task_log_times")
|
|
4259
4259
|
], TaskLogTime);
|
|
4260
4260
|
|
|
4261
|
+
// src/entities/task-query.entity.ts
|
|
4262
|
+
var import_typeorm38 = require("typeorm");
|
|
4263
|
+
|
|
4264
|
+
// src/entities/task-query-message.entity.ts
|
|
4265
|
+
var import_typeorm37 = require("typeorm");
|
|
4266
|
+
var TaskQueryMessageUserTypeEnum = /* @__PURE__ */ ((TaskQueryMessageUserTypeEnum2) => {
|
|
4267
|
+
TaskQueryMessageUserTypeEnum2["CLIENT"] = "CLIENT";
|
|
4268
|
+
TaskQueryMessageUserTypeEnum2["FREELANCER"] = "FREELANCER";
|
|
4269
|
+
return TaskQueryMessageUserTypeEnum2;
|
|
4270
|
+
})(TaskQueryMessageUserTypeEnum || {});
|
|
4271
|
+
var TaskQueryMessage = class extends BaseEntity {
|
|
4272
|
+
};
|
|
4273
|
+
__decorateClass([
|
|
4274
|
+
(0, import_typeorm37.Column)({ name: "task_query_id", type: "integer" }),
|
|
4275
|
+
(0, import_typeorm37.Index)()
|
|
4276
|
+
], TaskQueryMessage.prototype, "taskQueryId", 2);
|
|
4277
|
+
__decorateClass([
|
|
4278
|
+
(0, import_typeorm37.ManyToOne)(() => TaskQuery, (taskQuery) => taskQuery.messages),
|
|
4279
|
+
(0, import_typeorm37.JoinColumn)({ name: "task_query_id" })
|
|
4280
|
+
], TaskQueryMessage.prototype, "taskQuery", 2);
|
|
4281
|
+
__decorateClass([
|
|
4282
|
+
(0, import_typeorm37.Column)({ name: "sender_user_id", type: "integer" }),
|
|
4283
|
+
(0, import_typeorm37.Index)()
|
|
4284
|
+
], TaskQueryMessage.prototype, "senderUserId", 2);
|
|
4285
|
+
__decorateClass([
|
|
4286
|
+
(0, import_typeorm37.ManyToOne)(() => User, (user) => user.taskQueryMessages),
|
|
4287
|
+
(0, import_typeorm37.JoinColumn)({ name: "sender_user_id" })
|
|
4288
|
+
], TaskQueryMessage.prototype, "senderUser", 2);
|
|
4289
|
+
__decorateClass([
|
|
4290
|
+
(0, import_typeorm37.Column)({
|
|
4291
|
+
name: "sender_type",
|
|
4292
|
+
type: "enum",
|
|
4293
|
+
enum: TaskQueryMessageUserTypeEnum
|
|
4294
|
+
})
|
|
4295
|
+
], TaskQueryMessage.prototype, "senderType", 2);
|
|
4296
|
+
__decorateClass([
|
|
4297
|
+
(0, import_typeorm37.Column)({ name: "message", type: "varchar", nullable: true })
|
|
4298
|
+
], TaskQueryMessage.prototype, "message", 2);
|
|
4299
|
+
__decorateClass([
|
|
4300
|
+
(0, import_typeorm37.Column)({ name: "attachment_url", type: "varchar", nullable: true })
|
|
4301
|
+
], TaskQueryMessage.prototype, "attachmentUrl", 2);
|
|
4302
|
+
__decorateClass([
|
|
4303
|
+
(0, import_typeorm37.Column)({ name: "attachment_type", type: "varchar", nullable: true })
|
|
4304
|
+
], TaskQueryMessage.prototype, "attachmentType", 2);
|
|
4305
|
+
__decorateClass([
|
|
4306
|
+
(0, import_typeorm37.Column)({ name: "meta", type: "jsonb", nullable: true })
|
|
4307
|
+
], TaskQueryMessage.prototype, "meta", 2);
|
|
4308
|
+
__decorateClass([
|
|
4309
|
+
(0, import_typeorm37.Column)({ name: "is_read", type: "boolean", default: false })
|
|
4310
|
+
], TaskQueryMessage.prototype, "isRead", 2);
|
|
4311
|
+
__decorateClass([
|
|
4312
|
+
(0, import_typeorm37.Column)({
|
|
4313
|
+
name: "read_at",
|
|
4314
|
+
type: "timestamp with time zone",
|
|
4315
|
+
nullable: true
|
|
4316
|
+
})
|
|
4317
|
+
], TaskQueryMessage.prototype, "readAt", 2);
|
|
4318
|
+
TaskQueryMessage = __decorateClass([
|
|
4319
|
+
(0, import_typeorm37.Entity)("task_query_messages")
|
|
4320
|
+
], TaskQueryMessage);
|
|
4321
|
+
|
|
4322
|
+
// src/entities/task-query.entity.ts
|
|
4323
|
+
var TaskQueryUserTypeEnum = /* @__PURE__ */ ((TaskQueryUserTypeEnum2) => {
|
|
4324
|
+
TaskQueryUserTypeEnum2["CLIENT"] = "CLIENT";
|
|
4325
|
+
TaskQueryUserTypeEnum2["FREELANCER"] = "FREELANCER";
|
|
4326
|
+
return TaskQueryUserTypeEnum2;
|
|
4327
|
+
})(TaskQueryUserTypeEnum || {});
|
|
4328
|
+
var TaskQueryCategoryEnum = /* @__PURE__ */ ((TaskQueryCategoryEnum2) => {
|
|
4329
|
+
TaskQueryCategoryEnum2["DEVELOPMENT_ISSUE"] = "DEVELOPMENT_ISSUE";
|
|
4330
|
+
TaskQueryCategoryEnum2["TESTING_ISSUE"] = "TESTING_ISSUE";
|
|
4331
|
+
TaskQueryCategoryEnum2["OTHER"] = "OTHER";
|
|
4332
|
+
return TaskQueryCategoryEnum2;
|
|
4333
|
+
})(TaskQueryCategoryEnum || {});
|
|
4334
|
+
var TaskQueryStatusEnum = /* @__PURE__ */ ((TaskQueryStatusEnum2) => {
|
|
4335
|
+
TaskQueryStatusEnum2["OPEN"] = "OPEN";
|
|
4336
|
+
TaskQueryStatusEnum2["ANSWERED"] = "ANSWERED";
|
|
4337
|
+
TaskQueryStatusEnum2["CLOSED"] = "CLOSED";
|
|
4338
|
+
return TaskQueryStatusEnum2;
|
|
4339
|
+
})(TaskQueryStatusEnum || {});
|
|
4340
|
+
var TaskQuery = class extends BaseEntity {
|
|
4341
|
+
};
|
|
4342
|
+
__decorateClass([
|
|
4343
|
+
(0, import_typeorm38.Column)({ name: "task_id", type: "integer" }),
|
|
4344
|
+
(0, import_typeorm38.Index)()
|
|
4345
|
+
], TaskQuery.prototype, "taskId", 2);
|
|
4346
|
+
__decorateClass([
|
|
4347
|
+
(0, import_typeorm38.ManyToOne)(() => Task, (task) => task.taskQueries),
|
|
4348
|
+
(0, import_typeorm38.JoinColumn)({ name: "task_id" })
|
|
4349
|
+
], TaskQuery.prototype, "task", 2);
|
|
4350
|
+
__decorateClass([
|
|
4351
|
+
(0, import_typeorm38.Column)({ name: "raised_by_user_id", type: "integer" }),
|
|
4352
|
+
(0, import_typeorm38.Index)()
|
|
4353
|
+
], TaskQuery.prototype, "raisedByUserId", 2);
|
|
4354
|
+
__decorateClass([
|
|
4355
|
+
(0, import_typeorm38.ManyToOne)(() => User, (user) => user.raisedTaskQueries),
|
|
4356
|
+
(0, import_typeorm38.JoinColumn)({ name: "raised_by_user_id" })
|
|
4357
|
+
], TaskQuery.prototype, "raisedByUser", 2);
|
|
4358
|
+
__decorateClass([
|
|
4359
|
+
(0, import_typeorm38.Column)({
|
|
4360
|
+
name: "raised_by_type",
|
|
4361
|
+
type: "enum",
|
|
4362
|
+
enum: TaskQueryUserTypeEnum
|
|
4363
|
+
})
|
|
4364
|
+
], TaskQuery.prototype, "raisedByType", 2);
|
|
4365
|
+
__decorateClass([
|
|
4366
|
+
(0, import_typeorm38.Column)({ name: "assigned_to_user_id", type: "integer" }),
|
|
4367
|
+
(0, import_typeorm38.Index)()
|
|
4368
|
+
], TaskQuery.prototype, "assignedToUserId", 2);
|
|
4369
|
+
__decorateClass([
|
|
4370
|
+
(0, import_typeorm38.ManyToOne)(() => User, (user) => user.assignedTaskQueries),
|
|
4371
|
+
(0, import_typeorm38.JoinColumn)({ name: "assigned_to_user_id" })
|
|
4372
|
+
], TaskQuery.prototype, "assignedToUser", 2);
|
|
4373
|
+
__decorateClass([
|
|
4374
|
+
(0, import_typeorm38.Column)({
|
|
4375
|
+
name: "assigned_to_type",
|
|
4376
|
+
type: "enum",
|
|
4377
|
+
enum: TaskQueryUserTypeEnum
|
|
4378
|
+
})
|
|
4379
|
+
], TaskQuery.prototype, "assignedToType", 2);
|
|
4380
|
+
__decorateClass([
|
|
4381
|
+
(0, import_typeorm38.Column)({
|
|
4382
|
+
name: "query_category",
|
|
4383
|
+
type: "enum",
|
|
4384
|
+
enum: TaskQueryCategoryEnum
|
|
4385
|
+
})
|
|
4386
|
+
], TaskQuery.prototype, "queryCategory", 2);
|
|
4387
|
+
__decorateClass([
|
|
4388
|
+
(0, import_typeorm38.Column)({ name: "subject", type: "varchar", nullable: true })
|
|
4389
|
+
], TaskQuery.prototype, "subject", 2);
|
|
4390
|
+
__decorateClass([
|
|
4391
|
+
(0, import_typeorm38.Column)({ name: "description", type: "varchar", nullable: true })
|
|
4392
|
+
], TaskQuery.prototype, "description", 2);
|
|
4393
|
+
__decorateClass([
|
|
4394
|
+
(0, import_typeorm38.Column)({
|
|
4395
|
+
name: "status",
|
|
4396
|
+
type: "enum",
|
|
4397
|
+
enum: TaskQueryStatusEnum,
|
|
4398
|
+
default: "OPEN" /* OPEN */
|
|
4399
|
+
})
|
|
4400
|
+
], TaskQuery.prototype, "status", 2);
|
|
4401
|
+
__decorateClass([
|
|
4402
|
+
(0, import_typeorm38.Column)({
|
|
4403
|
+
name: "last_message_at",
|
|
4404
|
+
type: "timestamp with time zone",
|
|
4405
|
+
nullable: true
|
|
4406
|
+
})
|
|
4407
|
+
], TaskQuery.prototype, "lastMessageAt", 2);
|
|
4408
|
+
__decorateClass([
|
|
4409
|
+
(0, import_typeorm38.Column)({ name: "last_message_preview", type: "varchar", nullable: true })
|
|
4410
|
+
], TaskQuery.prototype, "lastMessagePreview", 2);
|
|
4411
|
+
__decorateClass([
|
|
4412
|
+
(0, import_typeorm38.Column)({ name: "unread_count_client", type: "integer", default: 0 })
|
|
4413
|
+
], TaskQuery.prototype, "unreadCountClient", 2);
|
|
4414
|
+
__decorateClass([
|
|
4415
|
+
(0, import_typeorm38.Column)({ name: "unread_count_freelancer", type: "integer", default: 0 })
|
|
4416
|
+
], TaskQuery.prototype, "unreadCountFreelancer", 2);
|
|
4417
|
+
__decorateClass([
|
|
4418
|
+
(0, import_typeorm38.OneToMany)(() => TaskQueryMessage, (message) => message.taskQuery, { cascade: true })
|
|
4419
|
+
], TaskQuery.prototype, "messages", 2);
|
|
4420
|
+
TaskQuery = __decorateClass([
|
|
4421
|
+
(0, import_typeorm38.Entity)("task_queries")
|
|
4422
|
+
], TaskQuery);
|
|
4423
|
+
|
|
4261
4424
|
// src/entities/task.entity.ts
|
|
4262
4425
|
var TaskPriorityEnum = /* @__PURE__ */ ((TaskPriorityEnum2) => {
|
|
4263
4426
|
TaskPriorityEnum2["LOW"] = "LOW";
|
|
@@ -4277,37 +4440,37 @@ var TaskStatusEnum = /* @__PURE__ */ ((TaskStatusEnum2) => {
|
|
|
4277
4440
|
var Task = class extends BaseEntity {
|
|
4278
4441
|
};
|
|
4279
4442
|
__decorateClass([
|
|
4280
|
-
(0,
|
|
4443
|
+
(0, import_typeorm39.Column)({ name: "task_unique_id", type: "varchar", nullable: true, unique: true })
|
|
4281
4444
|
], Task.prototype, "taskUniqueId", 2);
|
|
4282
4445
|
__decorateClass([
|
|
4283
|
-
(0,
|
|
4284
|
-
(0,
|
|
4446
|
+
(0, import_typeorm39.Column)({ name: "job_id", type: "integer", nullable: true }),
|
|
4447
|
+
(0, import_typeorm39.Index)()
|
|
4285
4448
|
], Task.prototype, "jobId", 2);
|
|
4286
4449
|
__decorateClass([
|
|
4287
|
-
(0,
|
|
4288
|
-
(0,
|
|
4450
|
+
(0, import_typeorm39.ManyToOne)(() => Job, (job) => job.tasks),
|
|
4451
|
+
(0, import_typeorm39.JoinColumn)({ name: "job_id" })
|
|
4289
4452
|
], Task.prototype, "job", 2);
|
|
4290
4453
|
__decorateClass([
|
|
4291
|
-
(0,
|
|
4292
|
-
(0,
|
|
4454
|
+
(0, import_typeorm39.Column)({ name: "client_id", type: "integer", nullable: true }),
|
|
4455
|
+
(0, import_typeorm39.Index)()
|
|
4293
4456
|
], Task.prototype, "clientId", 2);
|
|
4294
4457
|
__decorateClass([
|
|
4295
|
-
(0,
|
|
4296
|
-
(0,
|
|
4458
|
+
(0, import_typeorm39.ManyToOne)(() => User, (user) => user.clientTasks),
|
|
4459
|
+
(0, import_typeorm39.JoinColumn)({ name: "client_id" })
|
|
4297
4460
|
], Task.prototype, "client", 2);
|
|
4298
4461
|
__decorateClass([
|
|
4299
|
-
(0,
|
|
4300
|
-
(0,
|
|
4462
|
+
(0, import_typeorm39.Column)({ name: "freelancer_id", type: "integer", nullable: true }),
|
|
4463
|
+
(0, import_typeorm39.Index)()
|
|
4301
4464
|
], Task.prototype, "freelancerId", 2);
|
|
4302
4465
|
__decorateClass([
|
|
4303
|
-
(0,
|
|
4304
|
-
(0,
|
|
4466
|
+
(0, import_typeorm39.ManyToOne)(() => User, (user) => user.freelancerTasks),
|
|
4467
|
+
(0, import_typeorm39.JoinColumn)({ name: "freelancer_id" })
|
|
4305
4468
|
], Task.prototype, "freelancer", 2);
|
|
4306
4469
|
__decorateClass([
|
|
4307
|
-
(0,
|
|
4470
|
+
(0, import_typeorm39.Column)({ name: "task_name", type: "varchar", nullable: true })
|
|
4308
4471
|
], Task.prototype, "taskName", 2);
|
|
4309
4472
|
__decorateClass([
|
|
4310
|
-
(0,
|
|
4473
|
+
(0, import_typeorm39.Column)({
|
|
4311
4474
|
name: "status",
|
|
4312
4475
|
type: "enum",
|
|
4313
4476
|
enum: TaskStatusEnum,
|
|
@@ -4315,7 +4478,7 @@ __decorateClass([
|
|
|
4315
4478
|
})
|
|
4316
4479
|
], Task.prototype, "status", 2);
|
|
4317
4480
|
__decorateClass([
|
|
4318
|
-
(0,
|
|
4481
|
+
(0, import_typeorm39.Column)({
|
|
4319
4482
|
name: "priority",
|
|
4320
4483
|
type: "enum",
|
|
4321
4484
|
enum: TaskPriorityEnum,
|
|
@@ -4323,55 +4486,58 @@ __decorateClass([
|
|
|
4323
4486
|
})
|
|
4324
4487
|
], Task.prototype, "priority", 2);
|
|
4325
4488
|
__decorateClass([
|
|
4326
|
-
(0,
|
|
4489
|
+
(0, import_typeorm39.Column)({ name: "description", type: "varchar", nullable: true })
|
|
4327
4490
|
], Task.prototype, "description", 2);
|
|
4328
4491
|
__decorateClass([
|
|
4329
|
-
(0,
|
|
4492
|
+
(0, import_typeorm39.Column)({
|
|
4330
4493
|
name: "due_date",
|
|
4331
4494
|
type: "timestamp with time zone",
|
|
4332
4495
|
nullable: true
|
|
4333
4496
|
})
|
|
4334
4497
|
], Task.prototype, "dueDate", 2);
|
|
4335
4498
|
__decorateClass([
|
|
4336
|
-
(0,
|
|
4499
|
+
(0, import_typeorm39.Column)({
|
|
4337
4500
|
name: "created_on",
|
|
4338
4501
|
type: "timestamp with time zone",
|
|
4339
4502
|
nullable: true
|
|
4340
4503
|
})
|
|
4341
4504
|
], Task.prototype, "createdOn", 2);
|
|
4342
4505
|
__decorateClass([
|
|
4343
|
-
(0,
|
|
4506
|
+
(0, import_typeorm39.Column)({
|
|
4344
4507
|
name: "estimate_hours",
|
|
4345
4508
|
type: "integer",
|
|
4346
4509
|
nullable: true
|
|
4347
4510
|
})
|
|
4348
4511
|
], Task.prototype, "estimateHours", 2);
|
|
4349
4512
|
__decorateClass([
|
|
4350
|
-
(0,
|
|
4513
|
+
(0, import_typeorm39.Column)({ name: "client_remarks", type: "varchar", nullable: true })
|
|
4351
4514
|
], Task.prototype, "clientRemarks", 2);
|
|
4352
4515
|
__decorateClass([
|
|
4353
|
-
(0,
|
|
4516
|
+
(0, import_typeorm39.Column)({ name: "freelancer_work_note", type: "varchar", nullable: true })
|
|
4354
4517
|
], Task.prototype, "freelancerWorkNote", 2);
|
|
4355
4518
|
__decorateClass([
|
|
4356
|
-
(0,
|
|
4519
|
+
(0, import_typeorm39.OneToMany)(() => TaskDeliverable, (taskDeliverable) => taskDeliverable.task, { cascade: true })
|
|
4357
4520
|
], Task.prototype, "deliverables", 2);
|
|
4358
4521
|
__decorateClass([
|
|
4359
|
-
(0,
|
|
4522
|
+
(0, import_typeorm39.OneToMany)(() => TaskResource, (taskResource) => taskResource.task, { cascade: true })
|
|
4360
4523
|
], Task.prototype, "resources", 2);
|
|
4361
4524
|
__decorateClass([
|
|
4362
|
-
(0,
|
|
4525
|
+
(0, import_typeorm39.OneToMany)(() => TaskChecklistItem, (taskChecklistItem) => taskChecklistItem.task, { cascade: true })
|
|
4363
4526
|
], Task.prototype, "checklistItems", 2);
|
|
4364
4527
|
__decorateClass([
|
|
4365
|
-
(0,
|
|
4528
|
+
(0, import_typeorm39.OneToMany)(() => TaskSubtask, (taskSubtask) => taskSubtask.task, { cascade: true })
|
|
4366
4529
|
], Task.prototype, "subtasks", 2);
|
|
4367
4530
|
__decorateClass([
|
|
4368
|
-
(0,
|
|
4531
|
+
(0, import_typeorm39.OneToMany)(() => Timesheet, (timesheet) => timesheet.task, { cascade: true })
|
|
4369
4532
|
], Task.prototype, "timesheets", 2);
|
|
4370
4533
|
__decorateClass([
|
|
4371
|
-
(0,
|
|
4534
|
+
(0, import_typeorm39.OneToMany)(() => TaskLogTime, (taskLogTime) => taskLogTime.task, { cascade: true })
|
|
4372
4535
|
], Task.prototype, "taskLogTimes", 2);
|
|
4536
|
+
__decorateClass([
|
|
4537
|
+
(0, import_typeorm39.OneToMany)(() => TaskQuery, (taskQuery) => taskQuery.task, { cascade: true })
|
|
4538
|
+
], Task.prototype, "taskQueries", 2);
|
|
4373
4539
|
Task = __decorateClass([
|
|
4374
|
-
(0,
|
|
4540
|
+
(0, import_typeorm39.Entity)("tasks")
|
|
4375
4541
|
], Task);
|
|
4376
4542
|
|
|
4377
4543
|
// src/entities/timesheets.entity.ts
|
|
@@ -4387,144 +4553,144 @@ var TimesheetStatusEnum = /* @__PURE__ */ ((TimesheetStatusEnum2) => {
|
|
|
4387
4553
|
var Timesheet = class extends BaseEntity {
|
|
4388
4554
|
};
|
|
4389
4555
|
__decorateClass([
|
|
4390
|
-
(0,
|
|
4391
|
-
(0,
|
|
4556
|
+
(0, import_typeorm40.Column)({ name: "job_id", type: "integer", nullable: true }),
|
|
4557
|
+
(0, import_typeorm40.Index)()
|
|
4392
4558
|
], Timesheet.prototype, "jobId", 2);
|
|
4393
4559
|
__decorateClass([
|
|
4394
|
-
(0,
|
|
4395
|
-
(0,
|
|
4560
|
+
(0, import_typeorm40.ManyToOne)(() => Job, (job) => job.timesheets),
|
|
4561
|
+
(0, import_typeorm40.JoinColumn)({ name: "job_id" })
|
|
4396
4562
|
], Timesheet.prototype, "job", 2);
|
|
4397
4563
|
__decorateClass([
|
|
4398
|
-
(0,
|
|
4399
|
-
(0,
|
|
4564
|
+
(0, import_typeorm40.Column)({ name: "client_id", type: "integer", nullable: true }),
|
|
4565
|
+
(0, import_typeorm40.Index)()
|
|
4400
4566
|
], Timesheet.prototype, "clientId", 2);
|
|
4401
4567
|
__decorateClass([
|
|
4402
|
-
(0,
|
|
4403
|
-
(0,
|
|
4568
|
+
(0, import_typeorm40.ManyToOne)(() => User, (user) => user.clientTimesheets),
|
|
4569
|
+
(0, import_typeorm40.JoinColumn)({ name: "client_id" })
|
|
4404
4570
|
], Timesheet.prototype, "client", 2);
|
|
4405
4571
|
__decorateClass([
|
|
4406
|
-
(0,
|
|
4407
|
-
(0,
|
|
4572
|
+
(0, import_typeorm40.Column)({ name: "freelancer_id", type: "integer", nullable: true }),
|
|
4573
|
+
(0, import_typeorm40.Index)()
|
|
4408
4574
|
], Timesheet.prototype, "freelancerId", 2);
|
|
4409
4575
|
__decorateClass([
|
|
4410
|
-
(0,
|
|
4411
|
-
(0,
|
|
4576
|
+
(0, import_typeorm40.ManyToOne)(() => User, (user) => user.freelancerTimesheets),
|
|
4577
|
+
(0, import_typeorm40.JoinColumn)({ name: "freelancer_id" })
|
|
4412
4578
|
], Timesheet.prototype, "freelancer", 2);
|
|
4413
4579
|
__decorateClass([
|
|
4414
|
-
(0,
|
|
4580
|
+
(0, import_typeorm40.Column)({
|
|
4415
4581
|
name: "start_date",
|
|
4416
4582
|
type: "date",
|
|
4417
4583
|
nullable: true
|
|
4418
4584
|
})
|
|
4419
4585
|
], Timesheet.prototype, "startDate", 2);
|
|
4420
4586
|
__decorateClass([
|
|
4421
|
-
(0,
|
|
4587
|
+
(0, import_typeorm40.Column)({
|
|
4422
4588
|
name: "end_date",
|
|
4423
4589
|
type: "date",
|
|
4424
4590
|
nullable: true
|
|
4425
4591
|
})
|
|
4426
4592
|
], Timesheet.prototype, "endDate", 2);
|
|
4427
4593
|
__decorateClass([
|
|
4428
|
-
(0,
|
|
4594
|
+
(0, import_typeorm40.Column)({ name: "start_time", type: "varchar", nullable: true })
|
|
4429
4595
|
], Timesheet.prototype, "startTime", 2);
|
|
4430
4596
|
__decorateClass([
|
|
4431
|
-
(0,
|
|
4597
|
+
(0, import_typeorm40.Column)({ name: "end_time", type: "varchar", nullable: true })
|
|
4432
4598
|
], Timesheet.prototype, "endTime", 2);
|
|
4433
4599
|
__decorateClass([
|
|
4434
|
-
(0,
|
|
4600
|
+
(0, import_typeorm40.Column)({ name: "worked_hours", type: "varchar", nullable: true })
|
|
4435
4601
|
], Timesheet.prototype, "workedHours", 2);
|
|
4436
4602
|
__decorateClass([
|
|
4437
|
-
(0,
|
|
4603
|
+
(0, import_typeorm40.Column)({ name: "task_id", type: "integer", nullable: true })
|
|
4438
4604
|
], Timesheet.prototype, "taskId", 2);
|
|
4439
4605
|
__decorateClass([
|
|
4440
|
-
(0,
|
|
4441
|
-
(0,
|
|
4606
|
+
(0, import_typeorm40.ManyToOne)(() => Task, (task) => task.timesheets),
|
|
4607
|
+
(0, import_typeorm40.JoinColumn)({ name: "task_id" })
|
|
4442
4608
|
], Timesheet.prototype, "task", 2);
|
|
4443
4609
|
__decorateClass([
|
|
4444
|
-
(0,
|
|
4610
|
+
(0, import_typeorm40.Column)({ name: "task_name", type: "varchar", nullable: true })
|
|
4445
4611
|
], Timesheet.prototype, "taskName", 2);
|
|
4446
4612
|
__decorateClass([
|
|
4447
|
-
(0,
|
|
4613
|
+
(0, import_typeorm40.Column)({ name: "description", type: "varchar", nullable: true })
|
|
4448
4614
|
], Timesheet.prototype, "description", 2);
|
|
4449
4615
|
__decorateClass([
|
|
4450
|
-
(0,
|
|
4616
|
+
(0, import_typeorm40.Column)({ name: "week_start_date", type: "date", nullable: true })
|
|
4451
4617
|
], Timesheet.prototype, "weekStartDate", 2);
|
|
4452
4618
|
__decorateClass([
|
|
4453
|
-
(0,
|
|
4619
|
+
(0, import_typeorm40.Column)({ name: "week_end_date", type: "date", nullable: true })
|
|
4454
4620
|
], Timesheet.prototype, "weekEndDate", 2);
|
|
4455
4621
|
__decorateClass([
|
|
4456
|
-
(0,
|
|
4622
|
+
(0, import_typeorm40.Column)({ name: "rejected_at", type: "timestamp with time zone", nullable: true })
|
|
4457
4623
|
], Timesheet.prototype, "rejectedAt", 2);
|
|
4458
4624
|
__decorateClass([
|
|
4459
|
-
(0,
|
|
4625
|
+
(0, import_typeorm40.Column)({ name: "submitted_at", type: "timestamp with time zone", nullable: true })
|
|
4460
4626
|
], Timesheet.prototype, "submittedAt", 2);
|
|
4461
4627
|
__decorateClass([
|
|
4462
|
-
(0,
|
|
4628
|
+
(0, import_typeorm40.Column)({ name: "resubmiited_at", type: "timestamp with time zone", nullable: true })
|
|
4463
4629
|
], Timesheet.prototype, "resubmittedAt", 2);
|
|
4464
4630
|
__decorateClass([
|
|
4465
|
-
(0,
|
|
4631
|
+
(0, import_typeorm40.Column)({ name: "approved_at", type: "timestamp with time zone", nullable: true })
|
|
4466
4632
|
], Timesheet.prototype, "approvedAt", 2);
|
|
4467
4633
|
__decorateClass([
|
|
4468
|
-
(0,
|
|
4634
|
+
(0, import_typeorm40.Column)({ name: "status", type: "enum", enum: TimesheetStatusEnum, nullable: true })
|
|
4469
4635
|
], Timesheet.prototype, "status", 2);
|
|
4470
4636
|
__decorateClass([
|
|
4471
|
-
(0,
|
|
4637
|
+
(0, import_typeorm40.Column)({ name: "client_send_back_reason", type: "varchar", nullable: true })
|
|
4472
4638
|
], Timesheet.prototype, "clientSendBackReason", 2);
|
|
4473
4639
|
Timesheet = __decorateClass([
|
|
4474
|
-
(0,
|
|
4640
|
+
(0, import_typeorm40.Entity)("timesheets")
|
|
4475
4641
|
], Timesheet);
|
|
4476
4642
|
|
|
4477
4643
|
// src/entities/job-location.entity.ts
|
|
4478
|
-
var
|
|
4644
|
+
var import_typeorm41 = require("typeorm");
|
|
4479
4645
|
var JobLocation = class extends BaseEntity {
|
|
4480
4646
|
};
|
|
4481
4647
|
__decorateClass([
|
|
4482
|
-
(0,
|
|
4483
|
-
(0,
|
|
4648
|
+
(0, import_typeorm41.Column)({ name: "job_id", type: "integer", nullable: false }),
|
|
4649
|
+
(0, import_typeorm41.Index)()
|
|
4484
4650
|
], JobLocation.prototype, "jobId", 2);
|
|
4485
4651
|
__decorateClass([
|
|
4486
|
-
(0,
|
|
4487
|
-
(0,
|
|
4652
|
+
(0, import_typeorm41.ManyToOne)(() => Job, (job) => job.jobLocations),
|
|
4653
|
+
(0, import_typeorm41.JoinColumn)({ name: "job_id" })
|
|
4488
4654
|
], JobLocation.prototype, "job", 2);
|
|
4489
4655
|
__decorateClass([
|
|
4490
|
-
(0,
|
|
4656
|
+
(0, import_typeorm41.Column)({ name: "country_id", type: "int", nullable: false })
|
|
4491
4657
|
], JobLocation.prototype, "countryId", 2);
|
|
4492
4658
|
__decorateClass([
|
|
4493
|
-
(0,
|
|
4659
|
+
(0, import_typeorm41.Column)({ name: "country_name", type: "varchar", nullable: true })
|
|
4494
4660
|
], JobLocation.prototype, "countryName", 2);
|
|
4495
4661
|
__decorateClass([
|
|
4496
|
-
(0,
|
|
4497
|
-
(0,
|
|
4662
|
+
(0, import_typeorm41.ManyToOne)(() => Country),
|
|
4663
|
+
(0, import_typeorm41.JoinColumn)({ name: "country_id" })
|
|
4498
4664
|
], JobLocation.prototype, "country", 2);
|
|
4499
4665
|
__decorateClass([
|
|
4500
|
-
(0,
|
|
4666
|
+
(0, import_typeorm41.Column)({ name: "state_id", type: "int", nullable: false })
|
|
4501
4667
|
], JobLocation.prototype, "stateId", 2);
|
|
4502
4668
|
__decorateClass([
|
|
4503
|
-
(0,
|
|
4669
|
+
(0, import_typeorm41.Column)({ name: "state_name", type: "varchar", nullable: true })
|
|
4504
4670
|
], JobLocation.prototype, "stateName", 2);
|
|
4505
4671
|
__decorateClass([
|
|
4506
|
-
(0,
|
|
4507
|
-
(0,
|
|
4672
|
+
(0, import_typeorm41.ManyToOne)(() => State),
|
|
4673
|
+
(0, import_typeorm41.JoinColumn)({ name: "state_id" })
|
|
4508
4674
|
], JobLocation.prototype, "state", 2);
|
|
4509
4675
|
__decorateClass([
|
|
4510
|
-
(0,
|
|
4676
|
+
(0, import_typeorm41.Column)({ name: "city_id", type: "int", nullable: false })
|
|
4511
4677
|
], JobLocation.prototype, "cityId", 2);
|
|
4512
4678
|
__decorateClass([
|
|
4513
|
-
(0,
|
|
4679
|
+
(0, import_typeorm41.Column)({ name: "city_name", type: "varchar", nullable: true })
|
|
4514
4680
|
], JobLocation.prototype, "cityName", 2);
|
|
4515
4681
|
__decorateClass([
|
|
4516
|
-
(0,
|
|
4517
|
-
(0,
|
|
4682
|
+
(0, import_typeorm41.ManyToOne)(() => City),
|
|
4683
|
+
(0, import_typeorm41.JoinColumn)({ name: "city_id" })
|
|
4518
4684
|
], JobLocation.prototype, "city", 2);
|
|
4519
4685
|
__decorateClass([
|
|
4520
|
-
(0,
|
|
4686
|
+
(0, import_typeorm41.Column)({ name: "location_wise_openings", type: "int", default: 0 })
|
|
4521
4687
|
], JobLocation.prototype, "locationWiseOpenings", 2);
|
|
4522
4688
|
JobLocation = __decorateClass([
|
|
4523
|
-
(0,
|
|
4689
|
+
(0, import_typeorm41.Entity)("job_locations")
|
|
4524
4690
|
], JobLocation);
|
|
4525
4691
|
|
|
4526
4692
|
// src/entities/rating.entity.ts
|
|
4527
|
-
var
|
|
4693
|
+
var import_typeorm42 = require("typeorm");
|
|
4528
4694
|
var RatingTypeEnum = /* @__PURE__ */ ((RatingTypeEnum2) => {
|
|
4529
4695
|
RatingTypeEnum2["FREELANCER_TO_CLIENT"] = "FREELANCER_TO_CLIENT";
|
|
4530
4696
|
RatingTypeEnum2["CLIENT_TO_FREELANCER"] = "CLIENT_TO_FREELANCER";
|
|
@@ -4533,31 +4699,31 @@ var RatingTypeEnum = /* @__PURE__ */ ((RatingTypeEnum2) => {
|
|
|
4533
4699
|
var Rating = class extends BaseEntity {
|
|
4534
4700
|
};
|
|
4535
4701
|
__decorateClass([
|
|
4536
|
-
(0,
|
|
4537
|
-
(0,
|
|
4702
|
+
(0, import_typeorm42.Column)({ name: "reviewer_id", type: "integer" }),
|
|
4703
|
+
(0, import_typeorm42.Index)()
|
|
4538
4704
|
], Rating.prototype, "reviewerId", 2);
|
|
4539
4705
|
__decorateClass([
|
|
4540
|
-
(0,
|
|
4541
|
-
(0,
|
|
4706
|
+
(0, import_typeorm42.ManyToOne)(() => User, { onDelete: "CASCADE" }),
|
|
4707
|
+
(0, import_typeorm42.JoinColumn)({ name: "reviewer_id" })
|
|
4542
4708
|
], Rating.prototype, "reviewer", 2);
|
|
4543
4709
|
__decorateClass([
|
|
4544
|
-
(0,
|
|
4545
|
-
(0,
|
|
4710
|
+
(0, import_typeorm42.Column)({ name: "reviewee_id", type: "integer" }),
|
|
4711
|
+
(0, import_typeorm42.Index)()
|
|
4546
4712
|
], Rating.prototype, "revieweeId", 2);
|
|
4547
4713
|
__decorateClass([
|
|
4548
|
-
(0,
|
|
4549
|
-
(0,
|
|
4714
|
+
(0, import_typeorm42.ManyToOne)(() => User, { onDelete: "CASCADE" }),
|
|
4715
|
+
(0, import_typeorm42.JoinColumn)({ name: "reviewee_id" })
|
|
4550
4716
|
], Rating.prototype, "reviewee", 2);
|
|
4551
4717
|
__decorateClass([
|
|
4552
|
-
(0,
|
|
4553
|
-
(0,
|
|
4718
|
+
(0, import_typeorm42.Column)({ name: "job_id", type: "integer" }),
|
|
4719
|
+
(0, import_typeorm42.Index)()
|
|
4554
4720
|
], Rating.prototype, "jobId", 2);
|
|
4555
4721
|
__decorateClass([
|
|
4556
|
-
(0,
|
|
4557
|
-
(0,
|
|
4722
|
+
(0, import_typeorm42.ManyToOne)(() => Job, (job) => job.ratings, { onDelete: "CASCADE" }),
|
|
4723
|
+
(0, import_typeorm42.JoinColumn)({ name: "job_id" })
|
|
4558
4724
|
], Rating.prototype, "job", 2);
|
|
4559
4725
|
__decorateClass([
|
|
4560
|
-
(0,
|
|
4726
|
+
(0, import_typeorm42.Column)({
|
|
4561
4727
|
name: "rating_type",
|
|
4562
4728
|
type: "enum",
|
|
4563
4729
|
enum: RatingTypeEnum,
|
|
@@ -4565,67 +4731,67 @@ __decorateClass([
|
|
|
4565
4731
|
})
|
|
4566
4732
|
], Rating.prototype, "ratingType", 2);
|
|
4567
4733
|
__decorateClass([
|
|
4568
|
-
(0,
|
|
4734
|
+
(0, import_typeorm42.Column)({ name: "reviewer_comment", type: "text", nullable: true })
|
|
4569
4735
|
], Rating.prototype, "reviewerComment", 2);
|
|
4570
4736
|
__decorateClass([
|
|
4571
|
-
(0,
|
|
4737
|
+
(0, import_typeorm42.Column)({
|
|
4572
4738
|
name: "overall_experience",
|
|
4573
4739
|
type: "float",
|
|
4574
4740
|
default: 0
|
|
4575
4741
|
})
|
|
4576
4742
|
], Rating.prototype, "overAllExperience", 2);
|
|
4577
4743
|
__decorateClass([
|
|
4578
|
-
(0,
|
|
4744
|
+
(0, import_typeorm42.Column)({
|
|
4579
4745
|
name: "work_quality",
|
|
4580
4746
|
type: "float",
|
|
4581
4747
|
default: 0
|
|
4582
4748
|
})
|
|
4583
4749
|
], Rating.prototype, "workQuality", 2);
|
|
4584
4750
|
__decorateClass([
|
|
4585
|
-
(0,
|
|
4751
|
+
(0, import_typeorm42.Column)({
|
|
4586
4752
|
name: "one_time_delivery",
|
|
4587
4753
|
type: "float",
|
|
4588
4754
|
default: 0
|
|
4589
4755
|
})
|
|
4590
4756
|
], Rating.prototype, "oneTimeDelivery", 2);
|
|
4591
4757
|
__decorateClass([
|
|
4592
|
-
(0,
|
|
4758
|
+
(0, import_typeorm42.Column)({
|
|
4593
4759
|
name: "understaning",
|
|
4594
4760
|
type: "float",
|
|
4595
4761
|
default: 0
|
|
4596
4762
|
})
|
|
4597
4763
|
], Rating.prototype, "understaning", 2);
|
|
4598
4764
|
__decorateClass([
|
|
4599
|
-
(0,
|
|
4765
|
+
(0, import_typeorm42.Column)({
|
|
4600
4766
|
name: "communication",
|
|
4601
4767
|
type: "float",
|
|
4602
4768
|
default: 0
|
|
4603
4769
|
})
|
|
4604
4770
|
], Rating.prototype, "communication", 2);
|
|
4605
4771
|
__decorateClass([
|
|
4606
|
-
(0,
|
|
4772
|
+
(0, import_typeorm42.Column)({
|
|
4607
4773
|
name: "skill_utilized",
|
|
4608
4774
|
type: "float",
|
|
4609
4775
|
default: 0
|
|
4610
4776
|
})
|
|
4611
4777
|
], Rating.prototype, "skillUtilized", 2);
|
|
4612
4778
|
__decorateClass([
|
|
4613
|
-
(0,
|
|
4779
|
+
(0, import_typeorm42.Column)({ name: "communication_clarity", type: "float", default: 0 })
|
|
4614
4780
|
], Rating.prototype, "communicationClarity", 2);
|
|
4615
4781
|
__decorateClass([
|
|
4616
|
-
(0,
|
|
4782
|
+
(0, import_typeorm42.Column)({ name: "requirements_clarity", type: "float", default: 0 })
|
|
4617
4783
|
], Rating.prototype, "requirementsClarity", 2);
|
|
4618
4784
|
__decorateClass([
|
|
4619
|
-
(0,
|
|
4785
|
+
(0, import_typeorm42.Column)({ name: "responsiveness", type: "float", default: 0 })
|
|
4620
4786
|
], Rating.prototype, "responsiveness", 2);
|
|
4621
4787
|
__decorateClass([
|
|
4622
|
-
(0,
|
|
4788
|
+
(0, import_typeorm42.Column)({ name: "payment_promptness", type: "float", default: 0 })
|
|
4623
4789
|
], Rating.prototype, "paymentPromptness", 2);
|
|
4624
4790
|
__decorateClass([
|
|
4625
|
-
(0,
|
|
4791
|
+
(0, import_typeorm42.Column)({ name: "responsibilities_and_expectations", type: "float", default: 0 })
|
|
4626
4792
|
], Rating.prototype, "responsibilitiesAndExpectations", 2);
|
|
4627
4793
|
Rating = __decorateClass([
|
|
4628
|
-
(0,
|
|
4794
|
+
(0, import_typeorm42.Entity)("ratings")
|
|
4629
4795
|
], Rating);
|
|
4630
4796
|
|
|
4631
4797
|
// src/entities/job.entity.ts
|
|
@@ -4680,58 +4846,58 @@ var DurationTypeEnum = /* @__PURE__ */ ((DurationTypeEnum2) => {
|
|
|
4680
4846
|
var Job = class extends BaseEntity {
|
|
4681
4847
|
};
|
|
4682
4848
|
__decorateClass([
|
|
4683
|
-
(0,
|
|
4849
|
+
(0, import_typeorm43.Column)({ name: "job_id", type: "varchar", unique: true, nullable: true })
|
|
4684
4850
|
], Job.prototype, "jobId", 2);
|
|
4685
4851
|
// individual index to find jobs by user
|
|
4686
4852
|
__decorateClass([
|
|
4687
|
-
(0,
|
|
4688
|
-
(0,
|
|
4853
|
+
(0, import_typeorm43.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
4854
|
+
(0, import_typeorm43.Index)()
|
|
4689
4855
|
], Job.prototype, "userId", 2);
|
|
4690
4856
|
__decorateClass([
|
|
4691
|
-
(0,
|
|
4692
|
-
(0,
|
|
4857
|
+
(0, import_typeorm43.ManyToOne)(() => User, (user) => user.jobs),
|
|
4858
|
+
(0, import_typeorm43.JoinColumn)({ name: "user_id" })
|
|
4693
4859
|
], Job.prototype, "user", 2);
|
|
4694
4860
|
__decorateClass([
|
|
4695
|
-
(0,
|
|
4861
|
+
(0, import_typeorm43.Column)({ name: "country_id", type: "int", nullable: true })
|
|
4696
4862
|
], Job.prototype, "countryId", 2);
|
|
4697
4863
|
__decorateClass([
|
|
4698
|
-
(0,
|
|
4699
|
-
(0,
|
|
4864
|
+
(0, import_typeorm43.ManyToOne)(() => Country),
|
|
4865
|
+
(0, import_typeorm43.JoinColumn)({ name: "country_id" })
|
|
4700
4866
|
], Job.prototype, "country", 2);
|
|
4701
4867
|
__decorateClass([
|
|
4702
|
-
(0,
|
|
4868
|
+
(0, import_typeorm43.Column)({ name: "state_id", type: "int", nullable: true })
|
|
4703
4869
|
], Job.prototype, "stateId", 2);
|
|
4704
4870
|
__decorateClass([
|
|
4705
|
-
(0,
|
|
4706
|
-
(0,
|
|
4871
|
+
(0, import_typeorm43.ManyToOne)(() => State),
|
|
4872
|
+
(0, import_typeorm43.JoinColumn)({ name: "state_id" })
|
|
4707
4873
|
], Job.prototype, "state", 2);
|
|
4708
4874
|
__decorateClass([
|
|
4709
|
-
(0,
|
|
4875
|
+
(0, import_typeorm43.Column)({ name: "city_id", type: "int", nullable: true })
|
|
4710
4876
|
], Job.prototype, "cityId", 2);
|
|
4711
4877
|
__decorateClass([
|
|
4712
|
-
(0,
|
|
4713
|
-
(0,
|
|
4878
|
+
(0, import_typeorm43.ManyToOne)(() => City),
|
|
4879
|
+
(0, import_typeorm43.JoinColumn)({ name: "city_id" })
|
|
4714
4880
|
], Job.prototype, "city", 2);
|
|
4715
4881
|
__decorateClass([
|
|
4716
|
-
(0,
|
|
4882
|
+
(0, import_typeorm43.Column)({ name: "job_role", type: "varchar", nullable: true })
|
|
4717
4883
|
], Job.prototype, "jobRole", 2);
|
|
4718
4884
|
__decorateClass([
|
|
4719
|
-
(0,
|
|
4885
|
+
(0, import_typeorm43.Column)({ name: "job_role_canonical_name", type: "varchar", nullable: true })
|
|
4720
4886
|
], Job.prototype, "jobRoleCanonicalName", 2);
|
|
4721
4887
|
__decorateClass([
|
|
4722
|
-
(0,
|
|
4888
|
+
(0, import_typeorm43.Column)({ name: "project_name", type: "varchar", nullable: true })
|
|
4723
4889
|
], Job.prototype, "projectName", 2);
|
|
4724
4890
|
__decorateClass([
|
|
4725
|
-
(0,
|
|
4891
|
+
(0, import_typeorm43.Column)({ name: "note", type: "varchar", nullable: true })
|
|
4726
4892
|
], Job.prototype, "note", 2);
|
|
4727
4893
|
__decorateClass([
|
|
4728
|
-
(0,
|
|
4894
|
+
(0, import_typeorm43.Column)({ name: "openings", type: "integer", default: 0 })
|
|
4729
4895
|
], Job.prototype, "openings", 2);
|
|
4730
4896
|
__decorateClass([
|
|
4731
|
-
(0,
|
|
4897
|
+
(0, import_typeorm43.Column)({ name: "utilised_openings", type: "integer", default: 0 })
|
|
4732
4898
|
], Job.prototype, "utilisedOpenings", 2);
|
|
4733
4899
|
__decorateClass([
|
|
4734
|
-
(0,
|
|
4900
|
+
(0, import_typeorm43.Column)({
|
|
4735
4901
|
name: "location",
|
|
4736
4902
|
type: "enum",
|
|
4737
4903
|
enum: JobLocationEnum,
|
|
@@ -4739,7 +4905,7 @@ __decorateClass([
|
|
|
4739
4905
|
})
|
|
4740
4906
|
], Job.prototype, "location", 2);
|
|
4741
4907
|
__decorateClass([
|
|
4742
|
-
(0,
|
|
4908
|
+
(0, import_typeorm43.Column)({
|
|
4743
4909
|
name: "type_of_employment",
|
|
4744
4910
|
type: "enum",
|
|
4745
4911
|
enum: TypeOfEmploymentEnum,
|
|
@@ -4747,7 +4913,7 @@ __decorateClass([
|
|
|
4747
4913
|
})
|
|
4748
4914
|
], Job.prototype, "typeOfEmployment", 2);
|
|
4749
4915
|
__decorateClass([
|
|
4750
|
-
(0,
|
|
4916
|
+
(0, import_typeorm43.Column)({
|
|
4751
4917
|
name: "billing_cycle",
|
|
4752
4918
|
type: "enum",
|
|
4753
4919
|
enum: BillingCycleEnum,
|
|
@@ -4755,10 +4921,10 @@ __decorateClass([
|
|
|
4755
4921
|
})
|
|
4756
4922
|
], Job.prototype, "billingCycle", 2);
|
|
4757
4923
|
__decorateClass([
|
|
4758
|
-
(0,
|
|
4924
|
+
(0, import_typeorm43.Column)({ name: "academic_qualifictaion", type: "varchar", nullable: true })
|
|
4759
4925
|
], Job.prototype, "academicQualification", 2);
|
|
4760
4926
|
__decorateClass([
|
|
4761
|
-
(0,
|
|
4927
|
+
(0, import_typeorm43.Column)({
|
|
4762
4928
|
name: "type_of_experience",
|
|
4763
4929
|
type: "enum",
|
|
4764
4930
|
enum: typeOfExperienceEnum,
|
|
@@ -4766,22 +4932,22 @@ __decorateClass([
|
|
|
4766
4932
|
})
|
|
4767
4933
|
], Job.prototype, "typeOfExperience", 2);
|
|
4768
4934
|
__decorateClass([
|
|
4769
|
-
(0,
|
|
4935
|
+
(0, import_typeorm43.Column)({ name: "years_of_experience", type: "varchar", nullable: true })
|
|
4770
4936
|
], Job.prototype, "yearsOfExperience", 2);
|
|
4771
4937
|
__decorateClass([
|
|
4772
|
-
(0,
|
|
4938
|
+
(0, import_typeorm43.Column)({ name: "years_of_experience_from", type: "varchar", nullable: true })
|
|
4773
4939
|
], Job.prototype, "yearsOfExperienceFrom", 2);
|
|
4774
4940
|
__decorateClass([
|
|
4775
|
-
(0,
|
|
4941
|
+
(0, import_typeorm43.Column)({ name: "years_of_experience_to", type: "varchar", nullable: true })
|
|
4776
4942
|
], Job.prototype, "yearsOfExperienceTo", 2);
|
|
4777
4943
|
__decorateClass([
|
|
4778
|
-
(0,
|
|
4944
|
+
(0, import_typeorm43.Column)({ name: "business_industry", type: "varchar", nullable: true })
|
|
4779
4945
|
], Job.prototype, "businessIndustry", 2);
|
|
4780
4946
|
__decorateClass([
|
|
4781
|
-
(0,
|
|
4947
|
+
(0, import_typeorm43.Column)({ name: "currency", type: "varchar", default: "USD" })
|
|
4782
4948
|
], Job.prototype, "currency", 2);
|
|
4783
4949
|
__decorateClass([
|
|
4784
|
-
(0,
|
|
4950
|
+
(0, import_typeorm43.Column)({
|
|
4785
4951
|
name: "expected_salary_from",
|
|
4786
4952
|
type: "decimal",
|
|
4787
4953
|
precision: 10,
|
|
@@ -4790,14 +4956,14 @@ __decorateClass([
|
|
|
4790
4956
|
})
|
|
4791
4957
|
], Job.prototype, "expectedSalaryFrom", 2);
|
|
4792
4958
|
__decorateClass([
|
|
4793
|
-
(0,
|
|
4959
|
+
(0, import_typeorm43.Column)({
|
|
4794
4960
|
name: "hide_expected_salary_from",
|
|
4795
4961
|
type: "boolean",
|
|
4796
4962
|
default: false
|
|
4797
4963
|
})
|
|
4798
4964
|
], Job.prototype, "hideExpectedSalaryFrom", 2);
|
|
4799
4965
|
__decorateClass([
|
|
4800
|
-
(0,
|
|
4966
|
+
(0, import_typeorm43.Column)({
|
|
4801
4967
|
name: "expected_salary_to",
|
|
4802
4968
|
type: "decimal",
|
|
4803
4969
|
precision: 10,
|
|
@@ -4806,14 +4972,14 @@ __decorateClass([
|
|
|
4806
4972
|
})
|
|
4807
4973
|
], Job.prototype, "expectedSalaryTo", 2);
|
|
4808
4974
|
__decorateClass([
|
|
4809
|
-
(0,
|
|
4975
|
+
(0, import_typeorm43.Column)({
|
|
4810
4976
|
name: "hide_expected_salary_to",
|
|
4811
4977
|
type: "boolean",
|
|
4812
4978
|
default: false
|
|
4813
4979
|
})
|
|
4814
4980
|
], Job.prototype, "hideExpectedSalaryTo", 2);
|
|
4815
4981
|
__decorateClass([
|
|
4816
|
-
(0,
|
|
4982
|
+
(0, import_typeorm43.Column)({
|
|
4817
4983
|
name: "expected_annual_budget_from",
|
|
4818
4984
|
type: "decimal",
|
|
4819
4985
|
precision: 10,
|
|
@@ -4822,14 +4988,14 @@ __decorateClass([
|
|
|
4822
4988
|
})
|
|
4823
4989
|
], Job.prototype, "expectedAnnualBudgetFrom", 2);
|
|
4824
4990
|
__decorateClass([
|
|
4825
|
-
(0,
|
|
4991
|
+
(0, import_typeorm43.Column)({
|
|
4826
4992
|
name: "hide_expected_annual_budget_from",
|
|
4827
4993
|
type: "boolean",
|
|
4828
4994
|
default: false
|
|
4829
4995
|
})
|
|
4830
4996
|
], Job.prototype, "hideExpectedAnnualBudgetFrom", 2);
|
|
4831
4997
|
__decorateClass([
|
|
4832
|
-
(0,
|
|
4998
|
+
(0, import_typeorm43.Column)({
|
|
4833
4999
|
name: "expected_annual_budget_to",
|
|
4834
5000
|
type: "decimal",
|
|
4835
5001
|
precision: 10,
|
|
@@ -4838,32 +5004,32 @@ __decorateClass([
|
|
|
4838
5004
|
})
|
|
4839
5005
|
], Job.prototype, "expectedAnnualBudgetTo", 2);
|
|
4840
5006
|
__decorateClass([
|
|
4841
|
-
(0,
|
|
5007
|
+
(0, import_typeorm43.Column)({
|
|
4842
5008
|
name: "hide_expected_annual_budget_to",
|
|
4843
5009
|
type: "boolean",
|
|
4844
5010
|
default: false
|
|
4845
5011
|
})
|
|
4846
5012
|
], Job.prototype, "hideExpectedAnnualBudgetTo", 2);
|
|
4847
5013
|
__decorateClass([
|
|
4848
|
-
(0,
|
|
5014
|
+
(0, import_typeorm43.Column)({ name: "years", type: "varchar", nullable: true })
|
|
4849
5015
|
], Job.prototype, "years", 2);
|
|
4850
5016
|
__decorateClass([
|
|
4851
|
-
(0,
|
|
5017
|
+
(0, import_typeorm43.Column)({ name: "months", type: "varchar", nullable: true })
|
|
4852
5018
|
], Job.prototype, "months", 2);
|
|
4853
5019
|
__decorateClass([
|
|
4854
|
-
(0,
|
|
5020
|
+
(0, import_typeorm43.Column)({ name: "weeks", type: "varchar", nullable: true })
|
|
4855
5021
|
], Job.prototype, "weeks", 2);
|
|
4856
5022
|
__decorateClass([
|
|
4857
|
-
(0,
|
|
5023
|
+
(0, import_typeorm43.Column)({ name: "days", type: "varchar", nullable: true })
|
|
4858
5024
|
], Job.prototype, "days", 2);
|
|
4859
5025
|
__decorateClass([
|
|
4860
|
-
(0,
|
|
5026
|
+
(0, import_typeorm43.Column)({ name: "tentative_start_date", type: "date", nullable: true })
|
|
4861
5027
|
], Job.prototype, "tentativeStartDate", 2);
|
|
4862
5028
|
__decorateClass([
|
|
4863
|
-
(0,
|
|
5029
|
+
(0, import_typeorm43.Column)({ name: "tentative_end_date", type: "date", nullable: true })
|
|
4864
5030
|
], Job.prototype, "tentativeEndDate", 2);
|
|
4865
5031
|
__decorateClass([
|
|
4866
|
-
(0,
|
|
5032
|
+
(0, import_typeorm43.Column)({
|
|
4867
5033
|
name: "duration_type",
|
|
4868
5034
|
type: "enum",
|
|
4869
5035
|
enum: DurationTypeEnum,
|
|
@@ -4871,10 +5037,10 @@ __decorateClass([
|
|
|
4871
5037
|
})
|
|
4872
5038
|
], Job.prototype, "durationType", 2);
|
|
4873
5039
|
__decorateClass([
|
|
4874
|
-
(0,
|
|
5040
|
+
(0, import_typeorm43.Column)({ name: "duration", type: "varchar", nullable: true })
|
|
4875
5041
|
], Job.prototype, "duration", 2);
|
|
4876
5042
|
__decorateClass([
|
|
4877
|
-
(0,
|
|
5043
|
+
(0, import_typeorm43.Column)({
|
|
4878
5044
|
name: "number_of_hours",
|
|
4879
5045
|
type: "decimal",
|
|
4880
5046
|
precision: 4,
|
|
@@ -4883,13 +5049,13 @@ __decorateClass([
|
|
|
4883
5049
|
})
|
|
4884
5050
|
], Job.prototype, "numberOfHours", 2);
|
|
4885
5051
|
__decorateClass([
|
|
4886
|
-
(0,
|
|
5052
|
+
(0, import_typeorm43.Column)({ name: "description", type: "varchar", nullable: true })
|
|
4887
5053
|
], Job.prototype, "description", 2);
|
|
4888
5054
|
__decorateClass([
|
|
4889
|
-
(0,
|
|
5055
|
+
(0, import_typeorm43.Column)({ name: "additional_comment", type: "varchar", nullable: true })
|
|
4890
5056
|
], Job.prototype, "additionalComment", 2);
|
|
4891
5057
|
__decorateClass([
|
|
4892
|
-
(0,
|
|
5058
|
+
(0, import_typeorm43.Column)({
|
|
4893
5059
|
name: "onboarding_tat",
|
|
4894
5060
|
type: "varchar",
|
|
4895
5061
|
length: 50,
|
|
@@ -4897,17 +5063,17 @@ __decorateClass([
|
|
|
4897
5063
|
})
|
|
4898
5064
|
], Job.prototype, "onboardingTat", 2);
|
|
4899
5065
|
__decorateClass([
|
|
4900
|
-
(0,
|
|
5066
|
+
(0, import_typeorm43.Column)({
|
|
4901
5067
|
name: "candidate_communication_skills",
|
|
4902
5068
|
type: "varchar",
|
|
4903
5069
|
nullable: true
|
|
4904
5070
|
})
|
|
4905
5071
|
], Job.prototype, "candidateCommunicationSkills", 2);
|
|
4906
5072
|
__decorateClass([
|
|
4907
|
-
(0,
|
|
5073
|
+
(0, import_typeorm43.Column)({ name: "deal_breakers", type: "jsonb", nullable: true })
|
|
4908
5074
|
], Job.prototype, "dealBreakers", 2);
|
|
4909
5075
|
__decorateClass([
|
|
4910
|
-
(0,
|
|
5076
|
+
(0, import_typeorm43.Column)({
|
|
4911
5077
|
name: "step_completed",
|
|
4912
5078
|
type: "enum",
|
|
4913
5079
|
enum: Step,
|
|
@@ -4915,7 +5081,7 @@ __decorateClass([
|
|
|
4915
5081
|
})
|
|
4916
5082
|
], Job.prototype, "stepCompleted", 2);
|
|
4917
5083
|
__decorateClass([
|
|
4918
|
-
(0,
|
|
5084
|
+
(0, import_typeorm43.Column)({
|
|
4919
5085
|
name: "status",
|
|
4920
5086
|
type: "enum",
|
|
4921
5087
|
enum: JobStatusEnum,
|
|
@@ -4923,43 +5089,43 @@ __decorateClass([
|
|
|
4923
5089
|
})
|
|
4924
5090
|
], Job.prototype, "status", 2);
|
|
4925
5091
|
__decorateClass([
|
|
4926
|
-
(0,
|
|
5092
|
+
(0, import_typeorm43.Column)({ name: "viewed_count", type: "integer", default: 0 })
|
|
4927
5093
|
], Job.prototype, "viewedCount", 2);
|
|
4928
5094
|
__decorateClass([
|
|
4929
|
-
(0,
|
|
5095
|
+
(0, import_typeorm43.Column)({ name: "application_count", type: "integer", default: 0 })
|
|
4930
5096
|
], Job.prototype, "applicationCount", 2);
|
|
4931
5097
|
__decorateClass([
|
|
4932
|
-
(0,
|
|
5098
|
+
(0, import_typeorm43.Column)({ name: "is_contract_signed", type: "boolean", default: false })
|
|
4933
5099
|
], Job.prototype, "isContractSigned", 2);
|
|
4934
5100
|
__decorateClass([
|
|
4935
|
-
(0,
|
|
5101
|
+
(0, import_typeorm43.Column)({ name: "is_interview_created", type: "boolean", default: false })
|
|
4936
5102
|
], Job.prototype, "isInterviewCreated", 2);
|
|
4937
5103
|
__decorateClass([
|
|
4938
|
-
(0,
|
|
5104
|
+
(0, import_typeorm43.Column)({ name: "is_job_created_via_ai", type: "boolean", default: false })
|
|
4939
5105
|
], Job.prototype, "isJobCreatedViaAI", 2);
|
|
4940
5106
|
__decorateClass([
|
|
4941
|
-
(0,
|
|
5107
|
+
(0, import_typeorm43.OneToMany)(() => InterviewInvite, (interviewInvite) => interviewInvite.job, { cascade: true })
|
|
4942
5108
|
], Job.prototype, "interviewInvites", 2);
|
|
4943
5109
|
__decorateClass([
|
|
4944
|
-
(0,
|
|
5110
|
+
(0, import_typeorm43.OneToMany)(() => JobSkill, (jobSkill) => jobSkill.job, { cascade: true })
|
|
4945
5111
|
], Job.prototype, "jobSkills", 2);
|
|
4946
5112
|
__decorateClass([
|
|
4947
|
-
(0,
|
|
5113
|
+
(0, import_typeorm43.OneToMany)(() => JobApplication, (jobApplication) => jobApplication.job, {
|
|
4948
5114
|
cascade: true
|
|
4949
5115
|
})
|
|
4950
5116
|
], Job.prototype, "jobApplications", 2);
|
|
4951
5117
|
__decorateClass([
|
|
4952
|
-
(0,
|
|
5118
|
+
(0, import_typeorm43.OneToMany)(() => Interview, (interview) => interview.job, {
|
|
4953
5119
|
cascade: true
|
|
4954
5120
|
})
|
|
4955
5121
|
], Job.prototype, "interviews", 2);
|
|
4956
5122
|
__decorateClass([
|
|
4957
|
-
(0,
|
|
5123
|
+
(0, import_typeorm43.OneToMany)(() => F2FInterview, (f2fInterview) => f2fInterview.job, {
|
|
4958
5124
|
cascade: true
|
|
4959
5125
|
})
|
|
4960
5126
|
], Job.prototype, "f2fInterviews", 2);
|
|
4961
5127
|
__decorateClass([
|
|
4962
|
-
(0,
|
|
5128
|
+
(0, import_typeorm43.OneToMany)(
|
|
4963
5129
|
() => JobRecommendation,
|
|
4964
5130
|
(jobRecommendation) => jobRecommendation.job,
|
|
4965
5131
|
{
|
|
@@ -4968,64 +5134,64 @@ __decorateClass([
|
|
|
4968
5134
|
)
|
|
4969
5135
|
], Job.prototype, "recommendations", 2);
|
|
4970
5136
|
__decorateClass([
|
|
4971
|
-
(0,
|
|
5137
|
+
(0, import_typeorm43.OneToMany)(() => ContractSummary, (contractSummary) => contractSummary.job, {
|
|
4972
5138
|
cascade: true
|
|
4973
5139
|
})
|
|
4974
5140
|
], Job.prototype, "contractSummaries", 2);
|
|
4975
5141
|
__decorateClass([
|
|
4976
|
-
(0,
|
|
5142
|
+
(0, import_typeorm43.OneToMany)(() => Contract, (contract) => contract.job, {
|
|
4977
5143
|
cascade: true
|
|
4978
5144
|
})
|
|
4979
5145
|
], Job.prototype, "contracts", 2);
|
|
4980
5146
|
__decorateClass([
|
|
4981
|
-
(0,
|
|
5147
|
+
(0, import_typeorm43.OneToMany)(() => Hiring, (hiring) => hiring.job, {
|
|
4982
5148
|
cascade: true
|
|
4983
5149
|
})
|
|
4984
5150
|
], Job.prototype, "hirings", 2);
|
|
4985
5151
|
__decorateClass([
|
|
4986
|
-
(0,
|
|
5152
|
+
(0, import_typeorm43.OneToMany)(() => EscrowWallet, (escrowWallet) => escrowWallet.job, {
|
|
4987
5153
|
cascade: true
|
|
4988
5154
|
})
|
|
4989
5155
|
], Job.prototype, "escrowWallets", 2);
|
|
4990
5156
|
__decorateClass([
|
|
4991
|
-
(0,
|
|
5157
|
+
(0, import_typeorm43.OneToMany)(() => Timesheet, (timesheet) => timesheet.job, {
|
|
4992
5158
|
cascade: true
|
|
4993
5159
|
})
|
|
4994
5160
|
], Job.prototype, "timesheets", 2);
|
|
4995
5161
|
__decorateClass([
|
|
4996
|
-
(0,
|
|
5162
|
+
(0, import_typeorm43.OneToMany)(() => TimesheetLine, (timesheetLine) => timesheetLine.job, {
|
|
4997
5163
|
cascade: true
|
|
4998
5164
|
})
|
|
4999
5165
|
], Job.prototype, "timesheetLine", 2);
|
|
5000
5166
|
__decorateClass([
|
|
5001
|
-
(0,
|
|
5167
|
+
(0, import_typeorm43.OneToMany)(() => Invoice, (invoice) => invoice.job, {
|
|
5002
5168
|
cascade: true
|
|
5003
5169
|
})
|
|
5004
5170
|
], Job.prototype, "invoice", 2);
|
|
5005
5171
|
__decorateClass([
|
|
5006
|
-
(0,
|
|
5172
|
+
(0, import_typeorm43.OneToMany)(() => ClientCandidatePreference, (clientCandidatePreference) => clientCandidatePreference.job)
|
|
5007
5173
|
], Job.prototype, "clientCandidatePreferences", 2);
|
|
5008
5174
|
__decorateClass([
|
|
5009
|
-
(0,
|
|
5175
|
+
(0, import_typeorm43.OneToMany)(() => JobLocation, (jobLocation) => jobLocation.job, {
|
|
5010
5176
|
cascade: true
|
|
5011
5177
|
})
|
|
5012
5178
|
], Job.prototype, "jobLocations", 2);
|
|
5013
5179
|
__decorateClass([
|
|
5014
|
-
(0,
|
|
5180
|
+
(0, import_typeorm43.OneToMany)(() => Rating, (rating) => rating.job, {
|
|
5015
5181
|
cascade: true
|
|
5016
5182
|
})
|
|
5017
5183
|
], Job.prototype, "ratings", 2);
|
|
5018
5184
|
__decorateClass([
|
|
5019
|
-
(0,
|
|
5185
|
+
(0, import_typeorm43.OneToMany)(() => Task, (task) => task.job, {
|
|
5020
5186
|
cascade: true
|
|
5021
5187
|
})
|
|
5022
5188
|
], Job.prototype, "tasks", 2);
|
|
5023
5189
|
Job = __decorateClass([
|
|
5024
|
-
(0,
|
|
5190
|
+
(0, import_typeorm43.Entity)("jobs")
|
|
5025
5191
|
], Job);
|
|
5026
5192
|
|
|
5027
5193
|
// src/entities/bank-details.entity.ts
|
|
5028
|
-
var
|
|
5194
|
+
var import_typeorm44 = require("typeorm");
|
|
5029
5195
|
var BankAccountTypeEnum = /* @__PURE__ */ ((BankAccountTypeEnum2) => {
|
|
5030
5196
|
BankAccountTypeEnum2["PRIMARY"] = "PRIMARY";
|
|
5031
5197
|
BankAccountTypeEnum2["SECONDARY"] = "SECONDARY";
|
|
@@ -5040,51 +5206,51 @@ var BankDetail = class extends BaseEntity {
|
|
|
5040
5206
|
};
|
|
5041
5207
|
// individual index to find bank details by user
|
|
5042
5208
|
__decorateClass([
|
|
5043
|
-
(0,
|
|
5044
|
-
(0,
|
|
5209
|
+
(0, import_typeorm44.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
5210
|
+
(0, import_typeorm44.Index)()
|
|
5045
5211
|
], BankDetail.prototype, "userId", 2);
|
|
5046
5212
|
__decorateClass([
|
|
5047
|
-
(0,
|
|
5048
|
-
(0,
|
|
5213
|
+
(0, import_typeorm44.ManyToOne)(() => User, (user) => user.bankDetail),
|
|
5214
|
+
(0, import_typeorm44.JoinColumn)({ name: "user_id" })
|
|
5049
5215
|
], BankDetail.prototype, "user", 2);
|
|
5050
5216
|
__decorateClass([
|
|
5051
|
-
(0,
|
|
5217
|
+
(0, import_typeorm44.Column)({ name: "name", type: "varchar", nullable: true })
|
|
5052
5218
|
], BankDetail.prototype, "name", 2);
|
|
5053
5219
|
__decorateClass([
|
|
5054
|
-
(0,
|
|
5220
|
+
(0, import_typeorm44.Column)({ name: "mobile_code", type: "varchar", nullable: true })
|
|
5055
5221
|
], BankDetail.prototype, "mobileCode", 2);
|
|
5056
5222
|
__decorateClass([
|
|
5057
|
-
(0,
|
|
5223
|
+
(0, import_typeorm44.Column)({ name: "mobile", type: "varchar", nullable: true })
|
|
5058
5224
|
], BankDetail.prototype, "mobile", 2);
|
|
5059
5225
|
__decorateClass([
|
|
5060
|
-
(0,
|
|
5226
|
+
(0, import_typeorm44.Column)({ name: "email", type: "varchar" })
|
|
5061
5227
|
], BankDetail.prototype, "email", 2);
|
|
5062
5228
|
__decorateClass([
|
|
5063
|
-
(0,
|
|
5229
|
+
(0, import_typeorm44.Column)({ name: "address", type: "varchar", nullable: true })
|
|
5064
5230
|
], BankDetail.prototype, "address", 2);
|
|
5065
5231
|
__decorateClass([
|
|
5066
|
-
(0,
|
|
5232
|
+
(0, import_typeorm44.Column)({ name: "account_number", type: "varchar", unique: true, nullable: true })
|
|
5067
5233
|
], BankDetail.prototype, "accountNumber", 2);
|
|
5068
5234
|
__decorateClass([
|
|
5069
|
-
(0,
|
|
5235
|
+
(0, import_typeorm44.Column)({ name: "bank_name", type: "varchar", nullable: true })
|
|
5070
5236
|
], BankDetail.prototype, "bankName", 2);
|
|
5071
5237
|
__decorateClass([
|
|
5072
|
-
(0,
|
|
5238
|
+
(0, import_typeorm44.Column)({ name: "ifsc_code", type: "varchar", nullable: true })
|
|
5073
5239
|
], BankDetail.prototype, "ifscCode", 2);
|
|
5074
5240
|
__decorateClass([
|
|
5075
|
-
(0,
|
|
5241
|
+
(0, import_typeorm44.Column)({ name: "branch_name", type: "varchar", nullable: true })
|
|
5076
5242
|
], BankDetail.prototype, "branchName", 2);
|
|
5077
5243
|
__decorateClass([
|
|
5078
|
-
(0,
|
|
5244
|
+
(0, import_typeorm44.Column)({ name: "routing_no", type: "varchar", nullable: true })
|
|
5079
5245
|
], BankDetail.prototype, "routingNo", 2);
|
|
5080
5246
|
__decorateClass([
|
|
5081
|
-
(0,
|
|
5247
|
+
(0, import_typeorm44.Column)({ name: "aba_no", type: "varchar", nullable: true })
|
|
5082
5248
|
], BankDetail.prototype, "abaNumber", 2);
|
|
5083
5249
|
__decorateClass([
|
|
5084
|
-
(0,
|
|
5250
|
+
(0, import_typeorm44.Column)({ name: "iban", type: "varchar", nullable: true })
|
|
5085
5251
|
], BankDetail.prototype, "iban", 2);
|
|
5086
5252
|
__decorateClass([
|
|
5087
|
-
(0,
|
|
5253
|
+
(0, import_typeorm44.Column)({
|
|
5088
5254
|
name: "account_type",
|
|
5089
5255
|
type: "enum",
|
|
5090
5256
|
enum: BankAccountTypeEnum,
|
|
@@ -5092,7 +5258,7 @@ __decorateClass([
|
|
|
5092
5258
|
})
|
|
5093
5259
|
], BankDetail.prototype, "accountType", 2);
|
|
5094
5260
|
__decorateClass([
|
|
5095
|
-
(0,
|
|
5261
|
+
(0, import_typeorm44.Column)({
|
|
5096
5262
|
name: "account_scope",
|
|
5097
5263
|
type: "enum",
|
|
5098
5264
|
enum: BankAccountScopeEnum,
|
|
@@ -5100,150 +5266,150 @@ __decorateClass([
|
|
|
5100
5266
|
})
|
|
5101
5267
|
], BankDetail.prototype, "accountScope", 2);
|
|
5102
5268
|
BankDetail = __decorateClass([
|
|
5103
|
-
(0,
|
|
5269
|
+
(0, import_typeorm44.Entity)("bank_details")
|
|
5104
5270
|
], BankDetail);
|
|
5105
5271
|
|
|
5106
5272
|
// src/entities/system-preference.entity.ts
|
|
5107
|
-
var
|
|
5273
|
+
var import_typeorm45 = require("typeorm");
|
|
5108
5274
|
var SystemPreference = class extends BaseEntity {
|
|
5109
5275
|
};
|
|
5110
5276
|
// individual index to find system preference by user
|
|
5111
5277
|
__decorateClass([
|
|
5112
|
-
(0,
|
|
5113
|
-
(0,
|
|
5278
|
+
(0, import_typeorm45.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
5279
|
+
(0, import_typeorm45.Index)()
|
|
5114
5280
|
], SystemPreference.prototype, "userId", 2);
|
|
5115
5281
|
__decorateClass([
|
|
5116
|
-
(0,
|
|
5117
|
-
(0,
|
|
5282
|
+
(0, import_typeorm45.ManyToOne)(() => User, (user) => user.systemPreference),
|
|
5283
|
+
(0, import_typeorm45.JoinColumn)({ name: "user_id" })
|
|
5118
5284
|
], SystemPreference.prototype, "user", 2);
|
|
5119
5285
|
__decorateClass([
|
|
5120
|
-
(0,
|
|
5286
|
+
(0, import_typeorm45.Column)({ name: "key", type: "varchar", nullable: false })
|
|
5121
5287
|
], SystemPreference.prototype, "key", 2);
|
|
5122
5288
|
__decorateClass([
|
|
5123
|
-
(0,
|
|
5289
|
+
(0, import_typeorm45.Column)({ name: "value", type: "boolean", default: false })
|
|
5124
5290
|
], SystemPreference.prototype, "value", 2);
|
|
5125
5291
|
SystemPreference = __decorateClass([
|
|
5126
|
-
(0,
|
|
5292
|
+
(0, import_typeorm45.Entity)("system_preferences")
|
|
5127
5293
|
], SystemPreference);
|
|
5128
5294
|
|
|
5129
5295
|
// src/entities/freelancer-experience.entity.ts
|
|
5130
|
-
var
|
|
5296
|
+
var import_typeorm46 = require("typeorm");
|
|
5131
5297
|
var FreelancerExperience = class extends BaseEntity {
|
|
5132
5298
|
};
|
|
5133
5299
|
// individual index to find experence by user
|
|
5134
5300
|
__decorateClass([
|
|
5135
|
-
(0,
|
|
5136
|
-
(0,
|
|
5301
|
+
(0, import_typeorm46.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
5302
|
+
(0, import_typeorm46.Index)()
|
|
5137
5303
|
], FreelancerExperience.prototype, "userId", 2);
|
|
5138
5304
|
__decorateClass([
|
|
5139
|
-
(0,
|
|
5140
|
-
(0,
|
|
5305
|
+
(0, import_typeorm46.ManyToOne)(() => User, (user) => user.freelancerExperience),
|
|
5306
|
+
(0, import_typeorm46.JoinColumn)({ name: "user_id" })
|
|
5141
5307
|
], FreelancerExperience.prototype, "user", 2);
|
|
5142
5308
|
__decorateClass([
|
|
5143
|
-
(0,
|
|
5309
|
+
(0, import_typeorm46.Column)({ name: "company_name", type: "varchar", nullable: true })
|
|
5144
5310
|
], FreelancerExperience.prototype, "companyName", 2);
|
|
5145
5311
|
__decorateClass([
|
|
5146
|
-
(0,
|
|
5312
|
+
(0, import_typeorm46.Column)({ name: "designation", type: "varchar", nullable: true })
|
|
5147
5313
|
], FreelancerExperience.prototype, "designation", 2);
|
|
5148
5314
|
__decorateClass([
|
|
5149
|
-
(0,
|
|
5315
|
+
(0, import_typeorm46.Column)({ name: "job_duration", type: "varchar", nullable: true })
|
|
5150
5316
|
], FreelancerExperience.prototype, "jobDuration", 2);
|
|
5151
5317
|
__decorateClass([
|
|
5152
|
-
(0,
|
|
5318
|
+
(0, import_typeorm46.Column)({ name: "description", type: "varchar", nullable: true })
|
|
5153
5319
|
], FreelancerExperience.prototype, "description", 2);
|
|
5154
5320
|
FreelancerExperience = __decorateClass([
|
|
5155
|
-
(0,
|
|
5321
|
+
(0, import_typeorm46.Entity)("freelancer_experiences")
|
|
5156
5322
|
], FreelancerExperience);
|
|
5157
5323
|
|
|
5158
5324
|
// src/entities/freelancer-education.entity.ts
|
|
5159
|
-
var
|
|
5325
|
+
var import_typeorm47 = require("typeorm");
|
|
5160
5326
|
var FreelancerEducation = class extends BaseEntity {
|
|
5161
5327
|
};
|
|
5162
5328
|
// individual index to find education by user
|
|
5163
5329
|
__decorateClass([
|
|
5164
|
-
(0,
|
|
5165
|
-
(0,
|
|
5330
|
+
(0, import_typeorm47.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
5331
|
+
(0, import_typeorm47.Index)()
|
|
5166
5332
|
], FreelancerEducation.prototype, "userId", 2);
|
|
5167
5333
|
__decorateClass([
|
|
5168
|
-
(0,
|
|
5169
|
-
(0,
|
|
5334
|
+
(0, import_typeorm47.ManyToOne)(() => User, (user) => user.freelancerEducation),
|
|
5335
|
+
(0, import_typeorm47.JoinColumn)({ name: "user_id" })
|
|
5170
5336
|
], FreelancerEducation.prototype, "user", 2);
|
|
5171
5337
|
__decorateClass([
|
|
5172
|
-
(0,
|
|
5338
|
+
(0, import_typeorm47.Column)({ name: "degree", type: "varchar", nullable: true })
|
|
5173
5339
|
], FreelancerEducation.prototype, "degree", 2);
|
|
5174
5340
|
__decorateClass([
|
|
5175
|
-
(0,
|
|
5341
|
+
(0, import_typeorm47.Column)({ name: "university", type: "varchar", nullable: true })
|
|
5176
5342
|
], FreelancerEducation.prototype, "university", 2);
|
|
5177
5343
|
__decorateClass([
|
|
5178
|
-
(0,
|
|
5344
|
+
(0, import_typeorm47.Column)({ name: "year_of_graduation", type: "varchar", nullable: true })
|
|
5179
5345
|
], FreelancerEducation.prototype, "yearOfGraduation", 2);
|
|
5180
5346
|
FreelancerEducation = __decorateClass([
|
|
5181
|
-
(0,
|
|
5347
|
+
(0, import_typeorm47.Entity)("freelancer_educations")
|
|
5182
5348
|
], FreelancerEducation);
|
|
5183
5349
|
|
|
5184
5350
|
// src/entities/freelancer-project.entity.ts
|
|
5185
|
-
var
|
|
5351
|
+
var import_typeorm48 = require("typeorm");
|
|
5186
5352
|
var FreelancerProject = class extends BaseEntity {
|
|
5187
5353
|
};
|
|
5188
5354
|
// individual index to find project by user
|
|
5189
5355
|
__decorateClass([
|
|
5190
|
-
(0,
|
|
5191
|
-
(0,
|
|
5356
|
+
(0, import_typeorm48.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
5357
|
+
(0, import_typeorm48.Index)()
|
|
5192
5358
|
], FreelancerProject.prototype, "userId", 2);
|
|
5193
5359
|
__decorateClass([
|
|
5194
|
-
(0,
|
|
5195
|
-
(0,
|
|
5360
|
+
(0, import_typeorm48.ManyToOne)(() => User, (user) => user.freelancerProject),
|
|
5361
|
+
(0, import_typeorm48.JoinColumn)({ name: "user_id" })
|
|
5196
5362
|
], FreelancerProject.prototype, "user", 2);
|
|
5197
5363
|
__decorateClass([
|
|
5198
|
-
(0,
|
|
5364
|
+
(0, import_typeorm48.Column)({ name: "project_name", type: "varchar", nullable: true })
|
|
5199
5365
|
], FreelancerProject.prototype, "projectName", 2);
|
|
5200
5366
|
__decorateClass([
|
|
5201
|
-
(0,
|
|
5367
|
+
(0, import_typeorm48.Column)({ name: "start_date", type: "date", nullable: true })
|
|
5202
5368
|
], FreelancerProject.prototype, "startDate", 2);
|
|
5203
5369
|
__decorateClass([
|
|
5204
|
-
(0,
|
|
5370
|
+
(0, import_typeorm48.Column)({ name: "end_date", type: "date", nullable: true })
|
|
5205
5371
|
], FreelancerProject.prototype, "endDate", 2);
|
|
5206
5372
|
__decorateClass([
|
|
5207
|
-
(0,
|
|
5373
|
+
(0, import_typeorm48.Column)({ name: "client_name", type: "varchar", nullable: true })
|
|
5208
5374
|
], FreelancerProject.prototype, "clientName", 2);
|
|
5209
5375
|
__decorateClass([
|
|
5210
|
-
(0,
|
|
5376
|
+
(0, import_typeorm48.Column)({ name: "git_link", type: "varchar", nullable: true })
|
|
5211
5377
|
], FreelancerProject.prototype, "gitLink", 2);
|
|
5212
5378
|
__decorateClass([
|
|
5213
|
-
(0,
|
|
5379
|
+
(0, import_typeorm48.Column)({ name: "description", type: "varchar", nullable: true })
|
|
5214
5380
|
], FreelancerProject.prototype, "description", 2);
|
|
5215
5381
|
FreelancerProject = __decorateClass([
|
|
5216
|
-
(0,
|
|
5382
|
+
(0, import_typeorm48.Entity)("freelancer_projects")
|
|
5217
5383
|
], FreelancerProject);
|
|
5218
5384
|
|
|
5219
5385
|
// src/entities/freelancer-casestudy.entity.ts
|
|
5220
|
-
var
|
|
5386
|
+
var import_typeorm49 = require("typeorm");
|
|
5221
5387
|
var FreelancerCaseStudy = class extends BaseEntity {
|
|
5222
5388
|
};
|
|
5223
5389
|
// individual index to find case study by user
|
|
5224
5390
|
__decorateClass([
|
|
5225
|
-
(0,
|
|
5226
|
-
(0,
|
|
5391
|
+
(0, import_typeorm49.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
5392
|
+
(0, import_typeorm49.Index)()
|
|
5227
5393
|
], FreelancerCaseStudy.prototype, "userId", 2);
|
|
5228
5394
|
__decorateClass([
|
|
5229
|
-
(0,
|
|
5230
|
-
(0,
|
|
5395
|
+
(0, import_typeorm49.ManyToOne)(() => User, (user) => user.freelancerCaseStudy),
|
|
5396
|
+
(0, import_typeorm49.JoinColumn)({ name: "user_id" })
|
|
5231
5397
|
], FreelancerCaseStudy.prototype, "user", 2);
|
|
5232
5398
|
__decorateClass([
|
|
5233
|
-
(0,
|
|
5399
|
+
(0, import_typeorm49.Column)({ name: "project_name", type: "varchar", nullable: true })
|
|
5234
5400
|
], FreelancerCaseStudy.prototype, "projectName", 2);
|
|
5235
5401
|
__decorateClass([
|
|
5236
|
-
(0,
|
|
5402
|
+
(0, import_typeorm49.Column)({ name: "case_study_link", type: "varchar", nullable: true })
|
|
5237
5403
|
], FreelancerCaseStudy.prototype, "caseStudyLink", 2);
|
|
5238
5404
|
__decorateClass([
|
|
5239
|
-
(0,
|
|
5405
|
+
(0, import_typeorm49.Column)({ name: "description", type: "varchar", nullable: true })
|
|
5240
5406
|
], FreelancerCaseStudy.prototype, "description", 2);
|
|
5241
5407
|
FreelancerCaseStudy = __decorateClass([
|
|
5242
|
-
(0,
|
|
5408
|
+
(0, import_typeorm49.Entity)("freelancer_case_studies")
|
|
5243
5409
|
], FreelancerCaseStudy);
|
|
5244
5410
|
|
|
5245
5411
|
// src/entities/freelancer-skill.entity.ts
|
|
5246
|
-
var
|
|
5412
|
+
var import_typeorm50 = require("typeorm");
|
|
5247
5413
|
var FreelancerSkillCategoryEnum = /* @__PURE__ */ ((FreelancerSkillCategoryEnum2) => {
|
|
5248
5414
|
FreelancerSkillCategoryEnum2[FreelancerSkillCategoryEnum2["GOOD_TO_HAVE"] = 0] = "GOOD_TO_HAVE";
|
|
5249
5415
|
FreelancerSkillCategoryEnum2[FreelancerSkillCategoryEnum2["MUST_HAVE"] = 1] = "MUST_HAVE";
|
|
@@ -5253,18 +5419,18 @@ var FreelancerSkill = class extends BaseEntity {
|
|
|
5253
5419
|
};
|
|
5254
5420
|
// individual index to find core skills by user
|
|
5255
5421
|
__decorateClass([
|
|
5256
|
-
(0,
|
|
5257
|
-
(0,
|
|
5422
|
+
(0, import_typeorm50.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
5423
|
+
(0, import_typeorm50.Index)()
|
|
5258
5424
|
], FreelancerSkill.prototype, "userId", 2);
|
|
5259
5425
|
__decorateClass([
|
|
5260
|
-
(0,
|
|
5261
|
-
(0,
|
|
5426
|
+
(0, import_typeorm50.ManyToOne)(() => User, (user) => user.freelancerSkills),
|
|
5427
|
+
(0, import_typeorm50.JoinColumn)({ name: "user_id" })
|
|
5262
5428
|
], FreelancerSkill.prototype, "user", 2);
|
|
5263
5429
|
__decorateClass([
|
|
5264
|
-
(0,
|
|
5430
|
+
(0, import_typeorm50.Column)({ name: "skill_name", type: "varchar", nullable: true })
|
|
5265
5431
|
], FreelancerSkill.prototype, "skillName", 2);
|
|
5266
5432
|
__decorateClass([
|
|
5267
|
-
(0,
|
|
5433
|
+
(0, import_typeorm50.Column)({
|
|
5268
5434
|
name: "skill_category",
|
|
5269
5435
|
type: "smallint",
|
|
5270
5436
|
default: 1,
|
|
@@ -5272,51 +5438,51 @@ __decorateClass([
|
|
|
5272
5438
|
})
|
|
5273
5439
|
], FreelancerSkill.prototype, "skillCategory", 2);
|
|
5274
5440
|
FreelancerSkill = __decorateClass([
|
|
5275
|
-
(0,
|
|
5441
|
+
(0, import_typeorm50.Entity)("freelancer_skills")
|
|
5276
5442
|
], FreelancerSkill);
|
|
5277
5443
|
|
|
5278
5444
|
// src/entities/freelancer-tool.entity.ts
|
|
5279
|
-
var
|
|
5445
|
+
var import_typeorm51 = require("typeorm");
|
|
5280
5446
|
var FreelancerTool = class extends BaseEntity {
|
|
5281
5447
|
};
|
|
5282
5448
|
// individual index to find tool by user
|
|
5283
5449
|
__decorateClass([
|
|
5284
|
-
(0,
|
|
5285
|
-
(0,
|
|
5450
|
+
(0, import_typeorm51.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
5451
|
+
(0, import_typeorm51.Index)()
|
|
5286
5452
|
], FreelancerTool.prototype, "userId", 2);
|
|
5287
5453
|
__decorateClass([
|
|
5288
|
-
(0,
|
|
5289
|
-
(0,
|
|
5454
|
+
(0, import_typeorm51.ManyToOne)(() => User, (user) => user.freelancerTool),
|
|
5455
|
+
(0, import_typeorm51.JoinColumn)({ name: "user_id" })
|
|
5290
5456
|
], FreelancerTool.prototype, "user", 2);
|
|
5291
5457
|
__decorateClass([
|
|
5292
|
-
(0,
|
|
5458
|
+
(0, import_typeorm51.Column)({ name: "tool_name", type: "varchar", nullable: true })
|
|
5293
5459
|
], FreelancerTool.prototype, "toolName", 2);
|
|
5294
5460
|
FreelancerTool = __decorateClass([
|
|
5295
|
-
(0,
|
|
5461
|
+
(0, import_typeorm51.Entity)("freelancer_tools")
|
|
5296
5462
|
], FreelancerTool);
|
|
5297
5463
|
|
|
5298
5464
|
// src/entities/freelancer-framework.entity.ts
|
|
5299
|
-
var
|
|
5465
|
+
var import_typeorm52 = require("typeorm");
|
|
5300
5466
|
var FreelancerFramework = class extends BaseEntity {
|
|
5301
5467
|
};
|
|
5302
5468
|
// individual index to find framework by user
|
|
5303
5469
|
__decorateClass([
|
|
5304
|
-
(0,
|
|
5305
|
-
(0,
|
|
5470
|
+
(0, import_typeorm52.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
5471
|
+
(0, import_typeorm52.Index)()
|
|
5306
5472
|
], FreelancerFramework.prototype, "userId", 2);
|
|
5307
5473
|
__decorateClass([
|
|
5308
|
-
(0,
|
|
5309
|
-
(0,
|
|
5474
|
+
(0, import_typeorm52.ManyToOne)(() => User, (user) => user.freelancerFramework),
|
|
5475
|
+
(0, import_typeorm52.JoinColumn)({ name: "user_id" })
|
|
5310
5476
|
], FreelancerFramework.prototype, "user", 2);
|
|
5311
5477
|
__decorateClass([
|
|
5312
|
-
(0,
|
|
5478
|
+
(0, import_typeorm52.Column)({ name: "framework_name", type: "varchar", nullable: true })
|
|
5313
5479
|
], FreelancerFramework.prototype, "frameworkName", 2);
|
|
5314
5480
|
FreelancerFramework = __decorateClass([
|
|
5315
|
-
(0,
|
|
5481
|
+
(0, import_typeorm52.Entity)("freelancer_frameworks")
|
|
5316
5482
|
], FreelancerFramework);
|
|
5317
5483
|
|
|
5318
5484
|
// src/entities/freelancer-assessment.entity.ts
|
|
5319
|
-
var
|
|
5485
|
+
var import_typeorm53 = require("typeorm");
|
|
5320
5486
|
var AssessmentStatusEnum = /* @__PURE__ */ ((AssessmentStatusEnum2) => {
|
|
5321
5487
|
AssessmentStatusEnum2["NOT_ATTEMPTED"] = "NOT_ATTEMPTED";
|
|
5322
5488
|
AssessmentStatusEnum2["ACTIVE"] = "ACTIVE";
|
|
@@ -5333,33 +5499,33 @@ var AssessmentStatusEnum = /* @__PURE__ */ ((AssessmentStatusEnum2) => {
|
|
|
5333
5499
|
var FreelancerAssessment = class extends BaseEntity {
|
|
5334
5500
|
};
|
|
5335
5501
|
__decorateClass([
|
|
5336
|
-
(0,
|
|
5337
|
-
(0,
|
|
5502
|
+
(0, import_typeorm53.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
5503
|
+
(0, import_typeorm53.Index)()
|
|
5338
5504
|
], FreelancerAssessment.prototype, "userId", 2);
|
|
5339
5505
|
__decorateClass([
|
|
5340
|
-
(0,
|
|
5341
|
-
(0,
|
|
5506
|
+
(0, import_typeorm53.ManyToOne)(() => User, (user) => user.assessments),
|
|
5507
|
+
(0, import_typeorm53.JoinColumn)({ name: "user_id" })
|
|
5342
5508
|
], FreelancerAssessment.prototype, "user", 2);
|
|
5343
5509
|
__decorateClass([
|
|
5344
|
-
(0,
|
|
5510
|
+
(0, import_typeorm53.Column)({ name: "interview_id", type: "varchar", nullable: true })
|
|
5345
5511
|
], FreelancerAssessment.prototype, "interviewId", 2);
|
|
5346
5512
|
__decorateClass([
|
|
5347
|
-
(0,
|
|
5513
|
+
(0, import_typeorm53.Column)({ name: "interview_link", type: "text", nullable: true })
|
|
5348
5514
|
], FreelancerAssessment.prototype, "interviewLink", 2);
|
|
5349
5515
|
__decorateClass([
|
|
5350
|
-
(0,
|
|
5516
|
+
(0, import_typeorm53.Column)({ name: "recording_link", type: "text", nullable: true })
|
|
5351
5517
|
], FreelancerAssessment.prototype, "recordingLink", 2);
|
|
5352
5518
|
__decorateClass([
|
|
5353
|
-
(0,
|
|
5519
|
+
(0, import_typeorm53.Column)({ name: "iframe_response", type: "jsonb", nullable: true })
|
|
5354
5520
|
], FreelancerAssessment.prototype, "iframeResponse", 2);
|
|
5355
5521
|
__decorateClass([
|
|
5356
|
-
(0,
|
|
5522
|
+
(0, import_typeorm53.Column)({ name: "interview_summary", type: "jsonb", nullable: true })
|
|
5357
5523
|
], FreelancerAssessment.prototype, "interviewSummary", 2);
|
|
5358
5524
|
__decorateClass([
|
|
5359
|
-
(0,
|
|
5525
|
+
(0, import_typeorm53.Column)({ name: "score", type: "float", nullable: true })
|
|
5360
5526
|
], FreelancerAssessment.prototype, "score", 2);
|
|
5361
5527
|
__decorateClass([
|
|
5362
|
-
(0,
|
|
5528
|
+
(0, import_typeorm53.Column)({
|
|
5363
5529
|
name: "status",
|
|
5364
5530
|
type: "enum",
|
|
5365
5531
|
enum: AssessmentStatusEnum,
|
|
@@ -5367,17 +5533,17 @@ __decorateClass([
|
|
|
5367
5533
|
})
|
|
5368
5534
|
], FreelancerAssessment.prototype, "status", 2);
|
|
5369
5535
|
__decorateClass([
|
|
5370
|
-
(0,
|
|
5536
|
+
(0, import_typeorm53.Column)({ name: "task_id", type: "varchar", nullable: true })
|
|
5371
5537
|
], FreelancerAssessment.prototype, "taskId", 2);
|
|
5372
5538
|
__decorateClass([
|
|
5373
|
-
(0,
|
|
5539
|
+
(0, import_typeorm53.Column)({ name: "meta_data", type: "jsonb", nullable: true })
|
|
5374
5540
|
], FreelancerAssessment.prototype, "metaData", 2);
|
|
5375
5541
|
FreelancerAssessment = __decorateClass([
|
|
5376
|
-
(0,
|
|
5542
|
+
(0, import_typeorm53.Entity)("freelancer_assessments")
|
|
5377
5543
|
], FreelancerAssessment);
|
|
5378
5544
|
|
|
5379
5545
|
// src/entities/freelancer-declaration.entity.ts
|
|
5380
|
-
var
|
|
5546
|
+
var import_typeorm54 = require("typeorm");
|
|
5381
5547
|
var DocumentType = /* @__PURE__ */ ((DocumentType2) => {
|
|
5382
5548
|
DocumentType2["AADHAAR"] = "AADHAAR_CARD";
|
|
5383
5549
|
DocumentType2["PASSPORT"] = "PASSPORT";
|
|
@@ -5389,15 +5555,15 @@ var FreelancerDeclaration = class extends BaseEntity {
|
|
|
5389
5555
|
};
|
|
5390
5556
|
// individual index to find declaration by user
|
|
5391
5557
|
__decorateClass([
|
|
5392
|
-
(0,
|
|
5393
|
-
(0,
|
|
5558
|
+
(0, import_typeorm54.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
5559
|
+
(0, import_typeorm54.Index)()
|
|
5394
5560
|
], FreelancerDeclaration.prototype, "userId", 2);
|
|
5395
5561
|
__decorateClass([
|
|
5396
|
-
(0,
|
|
5397
|
-
(0,
|
|
5562
|
+
(0, import_typeorm54.ManyToOne)(() => User, (user) => user.freelancerDeclaration),
|
|
5563
|
+
(0, import_typeorm54.JoinColumn)({ name: "user_id" })
|
|
5398
5564
|
], FreelancerDeclaration.prototype, "user", 2);
|
|
5399
5565
|
__decorateClass([
|
|
5400
|
-
(0,
|
|
5566
|
+
(0, import_typeorm54.Column)({
|
|
5401
5567
|
name: "document_type",
|
|
5402
5568
|
type: "enum",
|
|
5403
5569
|
enum: DocumentType,
|
|
@@ -5405,147 +5571,147 @@ __decorateClass([
|
|
|
5405
5571
|
})
|
|
5406
5572
|
], FreelancerDeclaration.prototype, "documentType", 2);
|
|
5407
5573
|
__decorateClass([
|
|
5408
|
-
(0,
|
|
5574
|
+
(0, import_typeorm54.Column)({ name: "front_document_url", type: "varchar", nullable: true })
|
|
5409
5575
|
], FreelancerDeclaration.prototype, "frontDocumentUrl", 2);
|
|
5410
5576
|
__decorateClass([
|
|
5411
|
-
(0,
|
|
5577
|
+
(0, import_typeorm54.Column)({ name: "back_document_url", type: "varchar", nullable: true })
|
|
5412
5578
|
], FreelancerDeclaration.prototype, "backDocumentUrl", 2);
|
|
5413
5579
|
__decorateClass([
|
|
5414
|
-
(0,
|
|
5580
|
+
(0, import_typeorm54.Column)({ name: "declaration_accepted", type: "boolean", default: false })
|
|
5415
5581
|
], FreelancerDeclaration.prototype, "declarationAccepted", 2);
|
|
5416
5582
|
__decorateClass([
|
|
5417
|
-
(0,
|
|
5583
|
+
(0, import_typeorm54.Column)({ name: "digital_signature_url", type: "varchar", nullable: true })
|
|
5418
5584
|
], FreelancerDeclaration.prototype, "digitalSignatureUrl", 2);
|
|
5419
5585
|
FreelancerDeclaration = __decorateClass([
|
|
5420
|
-
(0,
|
|
5586
|
+
(0, import_typeorm54.Entity)("freelancer_declaration")
|
|
5421
5587
|
], FreelancerDeclaration);
|
|
5422
5588
|
|
|
5423
5589
|
// src/entities/company-members-roles.entity.ts
|
|
5424
|
-
var
|
|
5590
|
+
var import_typeorm58 = require("typeorm");
|
|
5425
5591
|
|
|
5426
5592
|
// src/entities/company-role.entity.ts
|
|
5427
|
-
var
|
|
5593
|
+
var import_typeorm57 = require("typeorm");
|
|
5428
5594
|
|
|
5429
5595
|
// src/entities/company-role-permission.entity.ts
|
|
5430
|
-
var
|
|
5596
|
+
var import_typeorm56 = require("typeorm");
|
|
5431
5597
|
|
|
5432
5598
|
// src/entities/permission.entity.ts
|
|
5433
|
-
var
|
|
5599
|
+
var import_typeorm55 = require("typeorm");
|
|
5434
5600
|
var Permission = class extends BaseEntity {
|
|
5435
5601
|
};
|
|
5436
5602
|
__decorateClass([
|
|
5437
|
-
(0,
|
|
5603
|
+
(0, import_typeorm55.Column)({ name: "name", type: "varchar", nullable: true })
|
|
5438
5604
|
], Permission.prototype, "name", 2);
|
|
5439
5605
|
__decorateClass([
|
|
5440
|
-
(0,
|
|
5441
|
-
(0,
|
|
5606
|
+
(0, import_typeorm55.Column)({ name: "slug", type: "varchar", nullable: true, unique: true }),
|
|
5607
|
+
(0, import_typeorm55.Index)()
|
|
5442
5608
|
], Permission.prototype, "slug", 2);
|
|
5443
5609
|
__decorateClass([
|
|
5444
|
-
(0,
|
|
5610
|
+
(0, import_typeorm55.Column)({ name: "description", type: "text", nullable: true })
|
|
5445
5611
|
], Permission.prototype, "description", 2);
|
|
5446
5612
|
__decorateClass([
|
|
5447
|
-
(0,
|
|
5613
|
+
(0, import_typeorm55.Column)({ name: "module", type: "varchar", nullable: true })
|
|
5448
5614
|
], Permission.prototype, "module", 2);
|
|
5449
5615
|
__decorateClass([
|
|
5450
|
-
(0,
|
|
5616
|
+
(0, import_typeorm55.Column)({ name: "is_active", type: "boolean", default: true })
|
|
5451
5617
|
], Permission.prototype, "isActive", 2);
|
|
5452
5618
|
Permission = __decorateClass([
|
|
5453
|
-
(0,
|
|
5619
|
+
(0, import_typeorm55.Entity)("permissions")
|
|
5454
5620
|
], Permission);
|
|
5455
5621
|
|
|
5456
5622
|
// src/entities/company-role-permission.entity.ts
|
|
5457
5623
|
var CompanyRolePermission = class extends BaseEntity {
|
|
5458
5624
|
};
|
|
5459
5625
|
__decorateClass([
|
|
5460
|
-
(0,
|
|
5461
|
-
(0,
|
|
5626
|
+
(0, import_typeorm56.Column)({ name: "company_role_id", type: "integer", nullable: true }),
|
|
5627
|
+
(0, import_typeorm56.Index)()
|
|
5462
5628
|
], CompanyRolePermission.prototype, "companyRoleId", 2);
|
|
5463
5629
|
__decorateClass([
|
|
5464
|
-
(0,
|
|
5630
|
+
(0, import_typeorm56.ManyToOne)(() => CompanyRole, (role) => role.rolePermissions, {
|
|
5465
5631
|
onDelete: "CASCADE"
|
|
5466
5632
|
}),
|
|
5467
|
-
(0,
|
|
5633
|
+
(0, import_typeorm56.JoinColumn)({ name: "company_role_id" })
|
|
5468
5634
|
], CompanyRolePermission.prototype, "companyRole", 2);
|
|
5469
5635
|
__decorateClass([
|
|
5470
|
-
(0,
|
|
5471
|
-
(0,
|
|
5636
|
+
(0, import_typeorm56.Column)({ name: "permission_id", type: "integer" }),
|
|
5637
|
+
(0, import_typeorm56.Index)()
|
|
5472
5638
|
], CompanyRolePermission.prototype, "permissionId", 2);
|
|
5473
5639
|
__decorateClass([
|
|
5474
|
-
(0,
|
|
5475
|
-
(0,
|
|
5640
|
+
(0, import_typeorm56.ManyToOne)(() => Permission, { onDelete: "CASCADE" }),
|
|
5641
|
+
(0, import_typeorm56.JoinColumn)({ name: "permission_id" })
|
|
5476
5642
|
], CompanyRolePermission.prototype, "permission", 2);
|
|
5477
5643
|
__decorateClass([
|
|
5478
|
-
(0,
|
|
5644
|
+
(0, import_typeorm56.Column)({ name: "assigned_by", type: "integer", nullable: true })
|
|
5479
5645
|
], CompanyRolePermission.prototype, "assignedBy", 2);
|
|
5480
5646
|
CompanyRolePermission = __decorateClass([
|
|
5481
|
-
(0,
|
|
5647
|
+
(0, import_typeorm56.Entity)("company_role_permissions")
|
|
5482
5648
|
], CompanyRolePermission);
|
|
5483
5649
|
|
|
5484
5650
|
// src/entities/company-role.entity.ts
|
|
5485
5651
|
var CompanyRole = class extends BaseEntity {
|
|
5486
5652
|
};
|
|
5487
5653
|
__decorateClass([
|
|
5488
|
-
(0,
|
|
5489
|
-
(0,
|
|
5654
|
+
(0, import_typeorm57.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
5655
|
+
(0, import_typeorm57.Index)()
|
|
5490
5656
|
], CompanyRole.prototype, "userId", 2);
|
|
5491
5657
|
__decorateClass([
|
|
5492
|
-
(0,
|
|
5493
|
-
(0,
|
|
5658
|
+
(0, import_typeorm57.ManyToOne)(() => User, (user) => user.otps),
|
|
5659
|
+
(0, import_typeorm57.JoinColumn)({ name: "user_id" })
|
|
5494
5660
|
], CompanyRole.prototype, "user", 2);
|
|
5495
5661
|
__decorateClass([
|
|
5496
|
-
(0,
|
|
5662
|
+
(0, import_typeorm57.Column)({ name: "name", type: "varchar" })
|
|
5497
5663
|
], CompanyRole.prototype, "name", 2);
|
|
5498
5664
|
__decorateClass([
|
|
5499
|
-
(0,
|
|
5500
|
-
(0,
|
|
5665
|
+
(0, import_typeorm57.Column)({ name: "slug", type: "varchar", nullable: true, unique: true }),
|
|
5666
|
+
(0, import_typeorm57.Index)()
|
|
5501
5667
|
], CompanyRole.prototype, "slug", 2);
|
|
5502
5668
|
__decorateClass([
|
|
5503
|
-
(0,
|
|
5669
|
+
(0, import_typeorm57.Column)({ name: "description", type: "text", nullable: true })
|
|
5504
5670
|
], CompanyRole.prototype, "description", 2);
|
|
5505
5671
|
__decorateClass([
|
|
5506
|
-
(0,
|
|
5672
|
+
(0, import_typeorm57.Column)({ name: "is_active", type: "boolean", default: true })
|
|
5507
5673
|
], CompanyRole.prototype, "isActive", 2);
|
|
5508
5674
|
__decorateClass([
|
|
5509
|
-
(0,
|
|
5675
|
+
(0, import_typeorm57.OneToMany)(() => CompanyRolePermission, (rp) => rp.companyRole)
|
|
5510
5676
|
], CompanyRole.prototype, "rolePermissions", 2);
|
|
5511
5677
|
CompanyRole = __decorateClass([
|
|
5512
|
-
(0,
|
|
5678
|
+
(0, import_typeorm57.Entity)("company_roles")
|
|
5513
5679
|
], CompanyRole);
|
|
5514
5680
|
|
|
5515
5681
|
// src/entities/company-members-roles.entity.ts
|
|
5516
5682
|
var CompanyMemberRole = class extends BaseEntity {
|
|
5517
5683
|
};
|
|
5518
5684
|
__decorateClass([
|
|
5519
|
-
(0,
|
|
5520
|
-
(0,
|
|
5685
|
+
(0, import_typeorm58.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
5686
|
+
(0, import_typeorm58.Index)()
|
|
5521
5687
|
], CompanyMemberRole.prototype, "userId", 2);
|
|
5522
5688
|
__decorateClass([
|
|
5523
|
-
(0,
|
|
5524
|
-
(0,
|
|
5689
|
+
(0, import_typeorm58.ManyToOne)(() => User),
|
|
5690
|
+
(0, import_typeorm58.JoinColumn)({ name: "user_id" })
|
|
5525
5691
|
], CompanyMemberRole.prototype, "user", 2);
|
|
5526
5692
|
__decorateClass([
|
|
5527
|
-
(0,
|
|
5528
|
-
(0,
|
|
5693
|
+
(0, import_typeorm58.ManyToOne)(() => CompanyRole),
|
|
5694
|
+
(0, import_typeorm58.JoinColumn)({ name: "company_role_id" })
|
|
5529
5695
|
], CompanyMemberRole.prototype, "role", 2);
|
|
5530
5696
|
__decorateClass([
|
|
5531
|
-
(0,
|
|
5532
|
-
(0,
|
|
5697
|
+
(0, import_typeorm58.Column)({ name: "company_role_id", type: "integer", nullable: true }),
|
|
5698
|
+
(0, import_typeorm58.Index)()
|
|
5533
5699
|
], CompanyMemberRole.prototype, "companyRoleId", 2);
|
|
5534
5700
|
__decorateClass([
|
|
5535
|
-
(0,
|
|
5701
|
+
(0, import_typeorm58.Column)({ name: "assigned_by", type: "integer", nullable: true })
|
|
5536
5702
|
], CompanyMemberRole.prototype, "assignedBy", 2);
|
|
5537
5703
|
CompanyMemberRole = __decorateClass([
|
|
5538
|
-
(0,
|
|
5704
|
+
(0, import_typeorm58.Entity)("company_member_roles")
|
|
5539
5705
|
], CompanyMemberRole);
|
|
5540
5706
|
|
|
5541
5707
|
// src/entities/assessment-answer.entity.ts
|
|
5542
|
-
var
|
|
5708
|
+
var import_typeorm61 = require("typeorm");
|
|
5543
5709
|
|
|
5544
5710
|
// src/entities/assessment-question.entity.ts
|
|
5545
|
-
var
|
|
5711
|
+
var import_typeorm60 = require("typeorm");
|
|
5546
5712
|
|
|
5547
5713
|
// src/entities/assessment-question-option.entity.ts
|
|
5548
|
-
var
|
|
5714
|
+
var import_typeorm59 = require("typeorm");
|
|
5549
5715
|
var AnswerTypeEnum = /* @__PURE__ */ ((AnswerTypeEnum2) => {
|
|
5550
5716
|
AnswerTypeEnum2["CORRECT"] = "CORRECT";
|
|
5551
5717
|
AnswerTypeEnum2["ACCEPTABLE"] = "ACCEPTABLE";
|
|
@@ -5555,21 +5721,21 @@ var AnswerTypeEnum = /* @__PURE__ */ ((AnswerTypeEnum2) => {
|
|
|
5555
5721
|
var AssessmetQuestionOption = class extends BaseEntity {
|
|
5556
5722
|
};
|
|
5557
5723
|
__decorateClass([
|
|
5558
|
-
(0,
|
|
5559
|
-
(0,
|
|
5724
|
+
(0, import_typeorm59.Column)({ name: "question_id", type: "integer", nullable: true }),
|
|
5725
|
+
(0, import_typeorm59.Index)()
|
|
5560
5726
|
], AssessmetQuestionOption.prototype, "questionId", 2);
|
|
5561
5727
|
__decorateClass([
|
|
5562
|
-
(0,
|
|
5728
|
+
(0, import_typeorm59.ManyToOne)(
|
|
5563
5729
|
() => AssessmetQuestion,
|
|
5564
5730
|
(assessmentQuestion) => assessmentQuestion.options
|
|
5565
5731
|
),
|
|
5566
|
-
(0,
|
|
5732
|
+
(0, import_typeorm59.JoinColumn)({ name: "question_id" })
|
|
5567
5733
|
], AssessmetQuestionOption.prototype, "question", 2);
|
|
5568
5734
|
__decorateClass([
|
|
5569
|
-
(0,
|
|
5735
|
+
(0, import_typeorm59.Column)({ name: "text", type: "varchar", nullable: true })
|
|
5570
5736
|
], AssessmetQuestionOption.prototype, "text", 2);
|
|
5571
5737
|
__decorateClass([
|
|
5572
|
-
(0,
|
|
5738
|
+
(0, import_typeorm59.Column)({
|
|
5573
5739
|
name: "answer_type",
|
|
5574
5740
|
type: "enum",
|
|
5575
5741
|
enum: AnswerTypeEnum,
|
|
@@ -5577,13 +5743,13 @@ __decorateClass([
|
|
|
5577
5743
|
})
|
|
5578
5744
|
], AssessmetQuestionOption.prototype, "answerType", 2);
|
|
5579
5745
|
__decorateClass([
|
|
5580
|
-
(0,
|
|
5746
|
+
(0, import_typeorm59.Column)({ name: "is_active", type: "boolean", default: true })
|
|
5581
5747
|
], AssessmetQuestionOption.prototype, "isActive", 2);
|
|
5582
5748
|
__decorateClass([
|
|
5583
|
-
(0,
|
|
5749
|
+
(0, import_typeorm59.OneToMany)(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.option)
|
|
5584
5750
|
], AssessmetQuestionOption.prototype, "selectedOptions", 2);
|
|
5585
5751
|
AssessmetQuestionOption = __decorateClass([
|
|
5586
|
-
(0,
|
|
5752
|
+
(0, import_typeorm59.Entity)("assessment_question_options")
|
|
5587
5753
|
], AssessmetQuestionOption);
|
|
5588
5754
|
|
|
5589
5755
|
// src/entities/assessment-question.entity.ts
|
|
@@ -5595,10 +5761,10 @@ var QuestionForEnum = /* @__PURE__ */ ((QuestionForEnum2) => {
|
|
|
5595
5761
|
var AssessmetQuestion = class extends BaseEntity {
|
|
5596
5762
|
};
|
|
5597
5763
|
__decorateClass([
|
|
5598
|
-
(0,
|
|
5764
|
+
(0, import_typeorm60.Column)({ name: "text", type: "varchar", nullable: true })
|
|
5599
5765
|
], AssessmetQuestion.prototype, "text", 2);
|
|
5600
5766
|
__decorateClass([
|
|
5601
|
-
(0,
|
|
5767
|
+
(0, import_typeorm60.Column)({
|
|
5602
5768
|
name: "question_for",
|
|
5603
5769
|
type: "enum",
|
|
5604
5770
|
enum: QuestionForEnum,
|
|
@@ -5606,24 +5772,24 @@ __decorateClass([
|
|
|
5606
5772
|
})
|
|
5607
5773
|
], AssessmetQuestion.prototype, "questionFor", 2);
|
|
5608
5774
|
__decorateClass([
|
|
5609
|
-
(0,
|
|
5775
|
+
(0, import_typeorm60.Column)({ name: "is_active", type: "boolean", default: true })
|
|
5610
5776
|
], AssessmetQuestion.prototype, "isActive", 2);
|
|
5611
5777
|
__decorateClass([
|
|
5612
|
-
(0,
|
|
5613
|
-
(0,
|
|
5778
|
+
(0, import_typeorm60.Column)({ name: "candidate_id", type: "integer", nullable: true }),
|
|
5779
|
+
(0, import_typeorm60.Index)()
|
|
5614
5780
|
], AssessmetQuestion.prototype, "candidateId", 2);
|
|
5615
5781
|
__decorateClass([
|
|
5616
|
-
(0,
|
|
5617
|
-
(0,
|
|
5782
|
+
(0, import_typeorm60.ManyToOne)(() => User, (user) => user.freelancerMcq, { nullable: true }),
|
|
5783
|
+
(0, import_typeorm60.JoinColumn)({ name: "candidate_id" })
|
|
5618
5784
|
], AssessmetQuestion.prototype, "candidate", 2);
|
|
5619
5785
|
__decorateClass([
|
|
5620
|
-
(0,
|
|
5786
|
+
(0, import_typeorm60.OneToMany)(() => AssessmetQuestionOption, (assessmentQuestionOption) => assessmentQuestionOption.question)
|
|
5621
5787
|
], AssessmetQuestion.prototype, "options", 2);
|
|
5622
5788
|
__decorateClass([
|
|
5623
|
-
(0,
|
|
5789
|
+
(0, import_typeorm60.OneToMany)(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.question)
|
|
5624
5790
|
], AssessmetQuestion.prototype, "answers", 2);
|
|
5625
5791
|
AssessmetQuestion = __decorateClass([
|
|
5626
|
-
(0,
|
|
5792
|
+
(0, import_typeorm60.Entity)("assessment_questions")
|
|
5627
5793
|
], AssessmetQuestion);
|
|
5628
5794
|
|
|
5629
5795
|
// src/entities/assessment-answer.entity.ts
|
|
@@ -5636,118 +5802,118 @@ var SelectedAnswerTypeEnum = /* @__PURE__ */ ((SelectedAnswerTypeEnum2) => {
|
|
|
5636
5802
|
var AssessmentAnswer = class extends BaseEntity {
|
|
5637
5803
|
};
|
|
5638
5804
|
__decorateClass([
|
|
5639
|
-
(0,
|
|
5640
|
-
(0,
|
|
5805
|
+
(0, import_typeorm61.Column)({ name: "user_id", type: "integer" }),
|
|
5806
|
+
(0, import_typeorm61.Index)()
|
|
5641
5807
|
], AssessmentAnswer.prototype, "userId", 2);
|
|
5642
5808
|
__decorateClass([
|
|
5643
|
-
(0,
|
|
5644
|
-
(0,
|
|
5809
|
+
(0, import_typeorm61.ManyToOne)(() => User, (user) => user.assessmentAnswers),
|
|
5810
|
+
(0, import_typeorm61.JoinColumn)({ name: "user_id" })
|
|
5645
5811
|
], AssessmentAnswer.prototype, "user", 2);
|
|
5646
5812
|
__decorateClass([
|
|
5647
|
-
(0,
|
|
5648
|
-
(0,
|
|
5813
|
+
(0, import_typeorm61.Column)({ name: "question_id", type: "integer" }),
|
|
5814
|
+
(0, import_typeorm61.Index)()
|
|
5649
5815
|
], AssessmentAnswer.prototype, "questionId", 2);
|
|
5650
5816
|
__decorateClass([
|
|
5651
|
-
(0,
|
|
5817
|
+
(0, import_typeorm61.ManyToOne)(
|
|
5652
5818
|
() => AssessmetQuestion,
|
|
5653
5819
|
(assessmentQuestion) => assessmentQuestion.answers
|
|
5654
5820
|
),
|
|
5655
|
-
(0,
|
|
5821
|
+
(0, import_typeorm61.JoinColumn)({ name: "question_id" })
|
|
5656
5822
|
], AssessmentAnswer.prototype, "question", 2);
|
|
5657
5823
|
__decorateClass([
|
|
5658
|
-
(0,
|
|
5659
|
-
(0,
|
|
5824
|
+
(0, import_typeorm61.Column)({ name: "selected_option_id", type: "integer" }),
|
|
5825
|
+
(0, import_typeorm61.Index)()
|
|
5660
5826
|
], AssessmentAnswer.prototype, "selectedOptionId", 2);
|
|
5661
5827
|
__decorateClass([
|
|
5662
|
-
(0,
|
|
5828
|
+
(0, import_typeorm61.ManyToOne)(
|
|
5663
5829
|
() => AssessmetQuestionOption,
|
|
5664
5830
|
(assessmentQuestionOption) => assessmentQuestionOption.selectedOptions
|
|
5665
5831
|
),
|
|
5666
|
-
(0,
|
|
5832
|
+
(0, import_typeorm61.JoinColumn)({ name: "selected_option_id" })
|
|
5667
5833
|
], AssessmentAnswer.prototype, "option", 2);
|
|
5668
5834
|
__decorateClass([
|
|
5669
|
-
(0,
|
|
5835
|
+
(0, import_typeorm61.Column)({
|
|
5670
5836
|
name: "selected_answer_type",
|
|
5671
5837
|
type: "enum",
|
|
5672
5838
|
enum: SelectedAnswerTypeEnum
|
|
5673
5839
|
})
|
|
5674
5840
|
], AssessmentAnswer.prototype, "selectedAnswerType", 2);
|
|
5675
5841
|
__decorateClass([
|
|
5676
|
-
(0,
|
|
5842
|
+
(0, import_typeorm61.Column)({ name: "score", type: "float" })
|
|
5677
5843
|
], AssessmentAnswer.prototype, "score", 2);
|
|
5678
5844
|
AssessmentAnswer = __decorateClass([
|
|
5679
|
-
(0,
|
|
5845
|
+
(0, import_typeorm61.Entity)("assessment_answers")
|
|
5680
5846
|
], AssessmentAnswer);
|
|
5681
5847
|
|
|
5682
5848
|
// src/entities/company-skill.entity.ts
|
|
5683
|
-
var
|
|
5849
|
+
var import_typeorm62 = require("typeorm");
|
|
5684
5850
|
var CompanySkill = class extends BaseEntity {
|
|
5685
5851
|
};
|
|
5686
5852
|
// individual index to find core skills by user
|
|
5687
5853
|
__decorateClass([
|
|
5688
|
-
(0,
|
|
5689
|
-
(0,
|
|
5854
|
+
(0, import_typeorm62.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
5855
|
+
(0, import_typeorm62.Index)()
|
|
5690
5856
|
], CompanySkill.prototype, "userId", 2);
|
|
5691
5857
|
__decorateClass([
|
|
5692
|
-
(0,
|
|
5693
|
-
(0,
|
|
5858
|
+
(0, import_typeorm62.ManyToOne)(() => User, (user) => user.companySkills),
|
|
5859
|
+
(0, import_typeorm62.JoinColumn)({ name: "user_id" })
|
|
5694
5860
|
], CompanySkill.prototype, "user", 2);
|
|
5695
5861
|
__decorateClass([
|
|
5696
|
-
(0,
|
|
5862
|
+
(0, import_typeorm62.Column)({ name: "skill_name", type: "varchar", nullable: true })
|
|
5697
5863
|
], CompanySkill.prototype, "skillName", 2);
|
|
5698
5864
|
CompanySkill = __decorateClass([
|
|
5699
|
-
(0,
|
|
5865
|
+
(0, import_typeorm62.Entity)("company_skills")
|
|
5700
5866
|
], CompanySkill);
|
|
5701
5867
|
|
|
5702
5868
|
// src/entities/admin-user-role.entity.ts
|
|
5703
|
-
var
|
|
5869
|
+
var import_typeorm66 = require("typeorm");
|
|
5704
5870
|
|
|
5705
5871
|
// src/entities/admin-role.entity.ts
|
|
5706
|
-
var
|
|
5872
|
+
var import_typeorm65 = require("typeorm");
|
|
5707
5873
|
|
|
5708
5874
|
// src/entities/admin-role-permission.entity.ts
|
|
5709
|
-
var
|
|
5875
|
+
var import_typeorm64 = require("typeorm");
|
|
5710
5876
|
|
|
5711
5877
|
// src/entities/admin-permission.entity.ts
|
|
5712
|
-
var
|
|
5878
|
+
var import_typeorm63 = require("typeorm");
|
|
5713
5879
|
var AdminPermission = class extends BaseEntity {
|
|
5714
5880
|
};
|
|
5715
5881
|
__decorateClass([
|
|
5716
|
-
(0,
|
|
5882
|
+
(0, import_typeorm63.Column)({ name: "permission_name", type: "varchar", nullable: true })
|
|
5717
5883
|
], AdminPermission.prototype, "permissionName", 2);
|
|
5718
5884
|
__decorateClass([
|
|
5719
|
-
(0,
|
|
5885
|
+
(0, import_typeorm63.Column)({
|
|
5720
5886
|
name: "permission_slug",
|
|
5721
5887
|
type: "varchar",
|
|
5722
5888
|
unique: true,
|
|
5723
5889
|
nullable: true
|
|
5724
5890
|
}),
|
|
5725
|
-
(0,
|
|
5891
|
+
(0, import_typeorm63.Index)()
|
|
5726
5892
|
], AdminPermission.prototype, "permissionSlug", 2);
|
|
5727
5893
|
__decorateClass([
|
|
5728
|
-
(0,
|
|
5894
|
+
(0, import_typeorm63.Column)({ name: "permission_description", type: "varchar", nullable: true })
|
|
5729
5895
|
], AdminPermission.prototype, "permissionDescription", 2);
|
|
5730
5896
|
__decorateClass([
|
|
5731
|
-
(0,
|
|
5897
|
+
(0, import_typeorm63.Column)({ name: "module", type: "varchar", nullable: true })
|
|
5732
5898
|
], AdminPermission.prototype, "module", 2);
|
|
5733
5899
|
__decorateClass([
|
|
5734
|
-
(0,
|
|
5900
|
+
(0, import_typeorm63.Column)({ name: "is_active", type: "boolean", default: true })
|
|
5735
5901
|
], AdminPermission.prototype, "isActive", 2);
|
|
5736
5902
|
__decorateClass([
|
|
5737
|
-
(0,
|
|
5903
|
+
(0, import_typeorm63.OneToMany)(
|
|
5738
5904
|
() => AdminRolePermission,
|
|
5739
5905
|
(adminRolePermission) => adminRolePermission.adminPermissions
|
|
5740
5906
|
)
|
|
5741
5907
|
], AdminPermission.prototype, "adminRole", 2);
|
|
5742
5908
|
AdminPermission = __decorateClass([
|
|
5743
|
-
(0,
|
|
5909
|
+
(0, import_typeorm63.Entity)("admin_permissions")
|
|
5744
5910
|
], AdminPermission);
|
|
5745
5911
|
|
|
5746
5912
|
// src/entities/admin-role-permission.entity.ts
|
|
5747
5913
|
var AdminRolePermission = class extends BaseEntity {
|
|
5748
5914
|
};
|
|
5749
5915
|
__decorateClass([
|
|
5750
|
-
(0,
|
|
5916
|
+
(0, import_typeorm64.Column)({
|
|
5751
5917
|
name: "role_id",
|
|
5752
5918
|
type: "int",
|
|
5753
5919
|
nullable: true,
|
|
@@ -5755,11 +5921,11 @@ __decorateClass([
|
|
|
5755
5921
|
})
|
|
5756
5922
|
], AdminRolePermission.prototype, "roleId", 2);
|
|
5757
5923
|
__decorateClass([
|
|
5758
|
-
(0,
|
|
5759
|
-
(0,
|
|
5924
|
+
(0, import_typeorm64.ManyToOne)(() => AdminRole),
|
|
5925
|
+
(0, import_typeorm64.JoinColumn)({ name: "role_id" })
|
|
5760
5926
|
], AdminRolePermission.prototype, "adminRole", 2);
|
|
5761
5927
|
__decorateClass([
|
|
5762
|
-
(0,
|
|
5928
|
+
(0, import_typeorm64.Column)({
|
|
5763
5929
|
name: "permission_id",
|
|
5764
5930
|
type: "int",
|
|
5765
5931
|
nullable: true,
|
|
@@ -5767,47 +5933,47 @@ __decorateClass([
|
|
|
5767
5933
|
})
|
|
5768
5934
|
], AdminRolePermission.prototype, "permissionId", 2);
|
|
5769
5935
|
__decorateClass([
|
|
5770
|
-
(0,
|
|
5771
|
-
(0,
|
|
5936
|
+
(0, import_typeorm64.ManyToOne)(() => AdminPermission),
|
|
5937
|
+
(0, import_typeorm64.JoinColumn)({ name: "permission_id" })
|
|
5772
5938
|
], AdminRolePermission.prototype, "adminPermissions", 2);
|
|
5773
5939
|
AdminRolePermission = __decorateClass([
|
|
5774
|
-
(0,
|
|
5940
|
+
(0, import_typeorm64.Entity)("admin_role_permissions")
|
|
5775
5941
|
], AdminRolePermission);
|
|
5776
5942
|
|
|
5777
5943
|
// src/entities/admin-role.entity.ts
|
|
5778
5944
|
var AdminRole = class extends BaseEntity {
|
|
5779
5945
|
};
|
|
5780
5946
|
__decorateClass([
|
|
5781
|
-
(0,
|
|
5947
|
+
(0, import_typeorm65.Column)({ name: "role_name", type: "varchar", nullable: true })
|
|
5782
5948
|
], AdminRole.prototype, "roleName", 2);
|
|
5783
5949
|
__decorateClass([
|
|
5784
|
-
(0,
|
|
5785
|
-
(0,
|
|
5950
|
+
(0, import_typeorm65.Column)({ name: "role_slug", type: "varchar", unique: true, nullable: true }),
|
|
5951
|
+
(0, import_typeorm65.Index)()
|
|
5786
5952
|
], AdminRole.prototype, "roleSlug", 2);
|
|
5787
5953
|
__decorateClass([
|
|
5788
|
-
(0,
|
|
5954
|
+
(0, import_typeorm65.Column)({ name: "role_description", type: "varchar", nullable: true })
|
|
5789
5955
|
], AdminRole.prototype, "roleDescription", 2);
|
|
5790
5956
|
__decorateClass([
|
|
5791
|
-
(0,
|
|
5957
|
+
(0, import_typeorm65.Column)({ name: "is_active", type: "boolean", default: true })
|
|
5792
5958
|
], AdminRole.prototype, "isActive", 2);
|
|
5793
5959
|
__decorateClass([
|
|
5794
|
-
(0,
|
|
5960
|
+
(0, import_typeorm65.OneToMany)(
|
|
5795
5961
|
() => AdminRolePermission,
|
|
5796
5962
|
(addminRolePermission) => addminRolePermission.adminRole
|
|
5797
5963
|
)
|
|
5798
5964
|
], AdminRole.prototype, "adminRolePermission", 2);
|
|
5799
5965
|
__decorateClass([
|
|
5800
|
-
(0,
|
|
5966
|
+
(0, import_typeorm65.OneToMany)(() => AdminUserRole, (adminUserRole) => adminUserRole.adminRole)
|
|
5801
5967
|
], AdminRole.prototype, "userRoles", 2);
|
|
5802
5968
|
AdminRole = __decorateClass([
|
|
5803
|
-
(0,
|
|
5969
|
+
(0, import_typeorm65.Entity)("admin_roles")
|
|
5804
5970
|
], AdminRole);
|
|
5805
5971
|
|
|
5806
5972
|
// src/entities/admin-user-role.entity.ts
|
|
5807
5973
|
var AdminUserRole = class extends BaseEntity {
|
|
5808
5974
|
};
|
|
5809
5975
|
__decorateClass([
|
|
5810
|
-
(0,
|
|
5976
|
+
(0, import_typeorm66.Column)({
|
|
5811
5977
|
name: "user_id",
|
|
5812
5978
|
type: "int",
|
|
5813
5979
|
nullable: true,
|
|
@@ -5815,11 +5981,11 @@ __decorateClass([
|
|
|
5815
5981
|
})
|
|
5816
5982
|
], AdminUserRole.prototype, "userId", 2);
|
|
5817
5983
|
__decorateClass([
|
|
5818
|
-
(0,
|
|
5819
|
-
(0,
|
|
5984
|
+
(0, import_typeorm66.ManyToOne)(() => User),
|
|
5985
|
+
(0, import_typeorm66.JoinColumn)({ name: "user_id" })
|
|
5820
5986
|
], AdminUserRole.prototype, "user", 2);
|
|
5821
5987
|
__decorateClass([
|
|
5822
|
-
(0,
|
|
5988
|
+
(0, import_typeorm66.Column)({
|
|
5823
5989
|
name: "role_id",
|
|
5824
5990
|
type: "int",
|
|
5825
5991
|
nullable: true,
|
|
@@ -5827,58 +5993,58 @@ __decorateClass([
|
|
|
5827
5993
|
})
|
|
5828
5994
|
], AdminUserRole.prototype, "roleId", 2);
|
|
5829
5995
|
__decorateClass([
|
|
5830
|
-
(0,
|
|
5831
|
-
(0,
|
|
5996
|
+
(0, import_typeorm66.ManyToOne)(() => AdminRole),
|
|
5997
|
+
(0, import_typeorm66.JoinColumn)({ name: "role_id" })
|
|
5832
5998
|
], AdminUserRole.prototype, "adminRole", 2);
|
|
5833
5999
|
AdminUserRole = __decorateClass([
|
|
5834
|
-
(0,
|
|
6000
|
+
(0, import_typeorm66.Entity)("admin_user_roles")
|
|
5835
6001
|
], AdminUserRole);
|
|
5836
6002
|
|
|
5837
6003
|
// src/entities/freelancer-resume.entity.ts
|
|
5838
|
-
var
|
|
6004
|
+
var import_typeorm67 = require("typeorm");
|
|
5839
6005
|
var FreelancerResume = class extends BaseEntity {
|
|
5840
6006
|
};
|
|
5841
6007
|
// individual index to find profile by user
|
|
5842
6008
|
__decorateClass([
|
|
5843
|
-
(0,
|
|
5844
|
-
(0,
|
|
6009
|
+
(0, import_typeorm67.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
6010
|
+
(0, import_typeorm67.Index)()
|
|
5845
6011
|
], FreelancerResume.prototype, "userId", 2);
|
|
5846
6012
|
__decorateClass([
|
|
5847
|
-
(0,
|
|
5848
|
-
(0,
|
|
6013
|
+
(0, import_typeorm67.ManyToOne)(() => User, (user) => user.freelancerProfile),
|
|
6014
|
+
(0, import_typeorm67.JoinColumn)({ name: "user_id" })
|
|
5849
6015
|
], FreelancerResume.prototype, "user", 2);
|
|
5850
6016
|
__decorateClass([
|
|
5851
|
-
(0,
|
|
6017
|
+
(0, import_typeorm67.Column)({ name: "resume_data", type: "jsonb", nullable: true })
|
|
5852
6018
|
], FreelancerResume.prototype, "resumeData", 2);
|
|
5853
6019
|
__decorateClass([
|
|
5854
|
-
(0,
|
|
6020
|
+
(0, import_typeorm67.Column)({ name: "processed_resume_data", type: "jsonb", nullable: true })
|
|
5855
6021
|
], FreelancerResume.prototype, "processedResumeData", 2);
|
|
5856
6022
|
FreelancerResume = __decorateClass([
|
|
5857
|
-
(0,
|
|
6023
|
+
(0, import_typeorm67.Entity)("freelancer_resumes")
|
|
5858
6024
|
], FreelancerResume);
|
|
5859
6025
|
|
|
5860
6026
|
// src/entities/signature.entity.ts
|
|
5861
|
-
var
|
|
6027
|
+
var import_typeorm68 = require("typeorm");
|
|
5862
6028
|
var Signature = class extends BaseEntity {
|
|
5863
6029
|
};
|
|
5864
6030
|
// individual index to find profile by user
|
|
5865
6031
|
__decorateClass([
|
|
5866
|
-
(0,
|
|
5867
|
-
(0,
|
|
6032
|
+
(0, import_typeorm68.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
6033
|
+
(0, import_typeorm68.Index)()
|
|
5868
6034
|
], Signature.prototype, "userId", 2);
|
|
5869
6035
|
__decorateClass([
|
|
5870
|
-
(0,
|
|
5871
|
-
(0,
|
|
6036
|
+
(0, import_typeorm68.ManyToOne)(() => User, (user) => user.signatures),
|
|
6037
|
+
(0, import_typeorm68.JoinColumn)({ name: "user_id" })
|
|
5872
6038
|
], Signature.prototype, "user", 2);
|
|
5873
6039
|
__decorateClass([
|
|
5874
|
-
(0,
|
|
6040
|
+
(0, import_typeorm68.Column)({ name: "signature_url", type: "text", nullable: true })
|
|
5875
6041
|
], Signature.prototype, "signatureUrl", 2);
|
|
5876
6042
|
Signature = __decorateClass([
|
|
5877
|
-
(0,
|
|
6043
|
+
(0, import_typeorm68.Entity)("signatures")
|
|
5878
6044
|
], Signature);
|
|
5879
6045
|
|
|
5880
6046
|
// src/entities/dispute.entity.ts
|
|
5881
|
-
var
|
|
6047
|
+
var import_typeorm69 = require("typeorm");
|
|
5882
6048
|
var DisputeStatusEnum = /* @__PURE__ */ ((DisputeStatusEnum2) => {
|
|
5883
6049
|
DisputeStatusEnum2["OPEN"] = "OPEN";
|
|
5884
6050
|
DisputeStatusEnum2["IN_REVIEW"] = "IN_REVIEW";
|
|
@@ -5899,36 +6065,36 @@ var InitiatorTypeEnum = /* @__PURE__ */ ((InitiatorTypeEnum2) => {
|
|
|
5899
6065
|
var Dispute = class extends BaseEntity {
|
|
5900
6066
|
};
|
|
5901
6067
|
__decorateClass([
|
|
5902
|
-
(0,
|
|
5903
|
-
(0,
|
|
6068
|
+
(0, import_typeorm69.Column)({ name: "client_id", type: "integer", nullable: true }),
|
|
6069
|
+
(0, import_typeorm69.Index)()
|
|
5904
6070
|
], Dispute.prototype, "clientId", 2);
|
|
5905
6071
|
__decorateClass([
|
|
5906
|
-
(0,
|
|
5907
|
-
(0,
|
|
6072
|
+
(0, import_typeorm69.ManyToOne)(() => User, (user) => user.clientDisputes),
|
|
6073
|
+
(0, import_typeorm69.JoinColumn)({ name: "client_id" })
|
|
5908
6074
|
], Dispute.prototype, "client", 2);
|
|
5909
6075
|
__decorateClass([
|
|
5910
|
-
(0,
|
|
5911
|
-
(0,
|
|
6076
|
+
(0, import_typeorm69.Column)({ name: "freelancer_id", type: "integer", nullable: true }),
|
|
6077
|
+
(0, import_typeorm69.Index)()
|
|
5912
6078
|
], Dispute.prototype, "freelancerId", 2);
|
|
5913
6079
|
__decorateClass([
|
|
5914
|
-
(0,
|
|
5915
|
-
(0,
|
|
6080
|
+
(0, import_typeorm69.ManyToOne)(() => User, (user) => user.freelancerDisputes),
|
|
6081
|
+
(0, import_typeorm69.JoinColumn)({ name: "freelancer_id" })
|
|
5916
6082
|
], Dispute.prototype, "freelancer", 2);
|
|
5917
6083
|
__decorateClass([
|
|
5918
|
-
(0,
|
|
6084
|
+
(0, import_typeorm69.Column)({ name: "dispute_unique_id", type: "varchar", unique: true })
|
|
5919
6085
|
], Dispute.prototype, "disputeUniqueId", 2);
|
|
5920
6086
|
__decorateClass([
|
|
5921
|
-
(0,
|
|
5922
|
-
(0,
|
|
6087
|
+
(0, import_typeorm69.Column)({ name: "dispute_type", type: "varchar", nullable: true }),
|
|
6088
|
+
(0, import_typeorm69.Index)()
|
|
5923
6089
|
], Dispute.prototype, "disputeType", 2);
|
|
5924
6090
|
__decorateClass([
|
|
5925
|
-
(0,
|
|
6091
|
+
(0, import_typeorm69.Column)({ name: "description", type: "varchar", nullable: true })
|
|
5926
6092
|
], Dispute.prototype, "description", 2);
|
|
5927
6093
|
__decorateClass([
|
|
5928
|
-
(0,
|
|
6094
|
+
(0, import_typeorm69.Column)({ name: "comment", type: "varchar", nullable: true })
|
|
5929
6095
|
], Dispute.prototype, "comment", 2);
|
|
5930
6096
|
__decorateClass([
|
|
5931
|
-
(0,
|
|
6097
|
+
(0, import_typeorm69.Column)({
|
|
5932
6098
|
name: "status",
|
|
5933
6099
|
type: "enum",
|
|
5934
6100
|
enum: DisputeStatusEnum,
|
|
@@ -5936,7 +6102,7 @@ __decorateClass([
|
|
|
5936
6102
|
})
|
|
5937
6103
|
], Dispute.prototype, "status", 2);
|
|
5938
6104
|
__decorateClass([
|
|
5939
|
-
(0,
|
|
6105
|
+
(0, import_typeorm69.Column)({
|
|
5940
6106
|
name: "initiator_type",
|
|
5941
6107
|
type: "enum",
|
|
5942
6108
|
enum: InitiatorTypeEnum,
|
|
@@ -5945,33 +6111,33 @@ __decorateClass([
|
|
|
5945
6111
|
})
|
|
5946
6112
|
], Dispute.prototype, "initiatorType", 2);
|
|
5947
6113
|
__decorateClass([
|
|
5948
|
-
(0,
|
|
5949
|
-
(0,
|
|
6114
|
+
(0, import_typeorm69.Column)({ name: "initiator_id", type: "integer" }),
|
|
6115
|
+
(0, import_typeorm69.Index)()
|
|
5950
6116
|
], Dispute.prototype, "initiatorId", 2);
|
|
5951
6117
|
__decorateClass([
|
|
5952
|
-
(0,
|
|
5953
|
-
(0,
|
|
6118
|
+
(0, import_typeorm69.ManyToOne)(() => User, (user) => user.initiatedDisputes),
|
|
6119
|
+
(0, import_typeorm69.JoinColumn)({ name: "initiator_id" })
|
|
5954
6120
|
], Dispute.prototype, "initiator", 2);
|
|
5955
6121
|
__decorateClass([
|
|
5956
|
-
(0,
|
|
5957
|
-
(0,
|
|
6122
|
+
(0, import_typeorm69.Column)({ name: "respondent_id", type: "integer", nullable: true }),
|
|
6123
|
+
(0, import_typeorm69.Index)()
|
|
5958
6124
|
], Dispute.prototype, "respondentId", 2);
|
|
5959
6125
|
__decorateClass([
|
|
5960
|
-
(0,
|
|
5961
|
-
(0,
|
|
6126
|
+
(0, import_typeorm69.ManyToOne)(() => User, (user) => user.respondentDisputes, { nullable: true }),
|
|
6127
|
+
(0, import_typeorm69.JoinColumn)({ name: "respondent_id" })
|
|
5962
6128
|
], Dispute.prototype, "respondent", 2);
|
|
5963
6129
|
__decorateClass([
|
|
5964
|
-
(0,
|
|
6130
|
+
(0, import_typeorm69.Column)({ name: "attachments", type: "jsonb", nullable: true })
|
|
5965
6131
|
], Dispute.prototype, "attachments", 2);
|
|
5966
6132
|
__decorateClass([
|
|
5967
|
-
(0,
|
|
6133
|
+
(0, import_typeorm69.Column)({ name: "dynamic_fields", type: "jsonb", nullable: true })
|
|
5968
6134
|
], Dispute.prototype, "dynamicFields", 2);
|
|
5969
6135
|
Dispute = __decorateClass([
|
|
5970
|
-
(0,
|
|
6136
|
+
(0, import_typeorm69.Entity)("disputes")
|
|
5971
6137
|
], Dispute);
|
|
5972
6138
|
|
|
5973
6139
|
// src/entities/stripe-transaction.entity.ts
|
|
5974
|
-
var
|
|
6140
|
+
var import_typeorm70 = require("typeorm");
|
|
5975
6141
|
var StripeTransactionTypeEnum = /* @__PURE__ */ ((StripeTransactionTypeEnum2) => {
|
|
5976
6142
|
StripeTransactionTypeEnum2["ADD_FUNDS"] = "ADD_FUNDS";
|
|
5977
6143
|
StripeTransactionTypeEnum2["TRANSFER"] = "TRANSFER";
|
|
@@ -5993,97 +6159,97 @@ var StripeTransaction = class extends BaseEntity {
|
|
|
5993
6159
|
// Full Stripe session response
|
|
5994
6160
|
};
|
|
5995
6161
|
__decorateClass([
|
|
5996
|
-
(0,
|
|
5997
|
-
(0,
|
|
6162
|
+
(0, import_typeorm70.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
6163
|
+
(0, import_typeorm70.Index)()
|
|
5998
6164
|
], StripeTransaction.prototype, "userId", 2);
|
|
5999
6165
|
__decorateClass([
|
|
6000
|
-
(0,
|
|
6001
|
-
(0,
|
|
6166
|
+
(0, import_typeorm70.ManyToOne)(() => User, (user) => user.stripeTransactions),
|
|
6167
|
+
(0, import_typeorm70.JoinColumn)({ name: "user_id" })
|
|
6002
6168
|
], StripeTransaction.prototype, "user", 2);
|
|
6003
6169
|
__decorateClass([
|
|
6004
|
-
(0,
|
|
6170
|
+
(0, import_typeorm70.Column)({ name: "stripe_session_id", type: "varchar", nullable: true })
|
|
6005
6171
|
], StripeTransaction.prototype, "stripeSessionId", 2);
|
|
6006
6172
|
__decorateClass([
|
|
6007
|
-
(0,
|
|
6173
|
+
(0, import_typeorm70.Column)({ name: "stripe_payment_intent_id", type: "varchar", nullable: true })
|
|
6008
6174
|
], StripeTransaction.prototype, "stripePaymentIntentId", 2);
|
|
6009
6175
|
__decorateClass([
|
|
6010
|
-
(0,
|
|
6176
|
+
(0, import_typeorm70.Column)({ name: "stripe_charge_id", type: "varchar", nullable: true })
|
|
6011
6177
|
], StripeTransaction.prototype, "stripeChargeId", 2);
|
|
6012
6178
|
__decorateClass([
|
|
6013
|
-
(0,
|
|
6179
|
+
(0, import_typeorm70.Column)({ name: "stripe_receipt_url", type: "varchar", nullable: true })
|
|
6014
6180
|
], StripeTransaction.prototype, "stripeReceiptUrl", 2);
|
|
6015
6181
|
__decorateClass([
|
|
6016
|
-
(0,
|
|
6182
|
+
(0, import_typeorm70.Column)({ name: "stripe_balance_transaction_id", type: "varchar", nullable: true })
|
|
6017
6183
|
], StripeTransaction.prototype, "stripeBalanceTransactionId", 2);
|
|
6018
6184
|
__decorateClass([
|
|
6019
|
-
(0,
|
|
6185
|
+
(0, import_typeorm70.Column)({ name: "stripe_payment_method", type: "varchar", nullable: true })
|
|
6020
6186
|
], StripeTransaction.prototype, "stripePaymentMethod", 2);
|
|
6021
6187
|
__decorateClass([
|
|
6022
|
-
(0,
|
|
6188
|
+
(0, import_typeorm70.Column)({ name: "stripe_payment_status", type: "varchar", nullable: true })
|
|
6023
6189
|
], StripeTransaction.prototype, "stripePaymentStatus", 2);
|
|
6024
6190
|
__decorateClass([
|
|
6025
|
-
(0,
|
|
6191
|
+
(0, import_typeorm70.Column)({ name: "type", type: "enum", enum: StripeTransactionTypeEnum })
|
|
6026
6192
|
], StripeTransaction.prototype, "type", 2);
|
|
6027
6193
|
__decorateClass([
|
|
6028
|
-
(0,
|
|
6194
|
+
(0, import_typeorm70.Column)({ name: "currency", type: "varchar", nullable: true })
|
|
6029
6195
|
], StripeTransaction.prototype, "currency", 2);
|
|
6030
6196
|
__decorateClass([
|
|
6031
|
-
(0,
|
|
6197
|
+
(0, import_typeorm70.Column)({ name: "desired_deposit_cents", type: "bigint", nullable: true, comment: "Amount user wants in their wallet. Example: 10000 cents = $100.00. This is what gets credited to wallet" })
|
|
6032
6198
|
], StripeTransaction.prototype, "desiredDepositCents", 2);
|
|
6033
6199
|
__decorateClass([
|
|
6034
|
-
(0,
|
|
6200
|
+
(0, import_typeorm70.Column)({ name: "platform_fee_cents", type: "bigint", default: 0, comment: "Your platform commission Example: 500 cents = $5.00 (5% of $100)" })
|
|
6035
6201
|
], StripeTransaction.prototype, "platformFeeCents", 2);
|
|
6036
6202
|
__decorateClass([
|
|
6037
|
-
(0,
|
|
6203
|
+
(0, import_typeorm70.Column)({ name: "tax_cents", type: "bigint", nullable: true, comment: "Sales tax collected by Stripe" })
|
|
6038
6204
|
], StripeTransaction.prototype, "taxCents", 2);
|
|
6039
6205
|
__decorateClass([
|
|
6040
|
-
(0,
|
|
6206
|
+
(0, import_typeorm70.Column)({ name: "estimated_stripe_fee_cents", type: "bigint", nullable: true, comment: "Your calculated estimate of Stripe fee, Example: 371 cents = $3.71" })
|
|
6041
6207
|
], StripeTransaction.prototype, "estimatedStripeFee", 2);
|
|
6042
6208
|
__decorateClass([
|
|
6043
|
-
(0,
|
|
6209
|
+
(0, import_typeorm70.Column)({ name: "estimated_total_cents", type: "bigint", nullable: true, comment: "Your calculated total to charge, Example: 11386 cents = $113.86, desired_deposit_cents + platform_fee_cents + estimated_stripe_fee" })
|
|
6044
6210
|
], StripeTransaction.prototype, "estimatedTotalCents", 2);
|
|
6045
6211
|
__decorateClass([
|
|
6046
|
-
(0,
|
|
6212
|
+
(0, import_typeorm70.Column)({ name: "actual_stripe_fee_cents", type: "bigint", nullable: true, comment: "ACTUAL Stripe fee charged, Example: 371 cents = $3.71" })
|
|
6047
6213
|
], StripeTransaction.prototype, "actualStripeFee", 2);
|
|
6048
6214
|
__decorateClass([
|
|
6049
|
-
(0,
|
|
6215
|
+
(0, import_typeorm70.Column)({ name: "actual_total_paid_cents", type: "bigint", nullable: true, comment: "What customer ACTUALLY paid, Example: 11757 cents = $117.57, May differ from estimate" })
|
|
6050
6216
|
], StripeTransaction.prototype, "actualTotalPaidCents", 2);
|
|
6051
6217
|
__decorateClass([
|
|
6052
|
-
(0,
|
|
6218
|
+
(0, import_typeorm70.Column)({ name: "net_received_cents", type: "bigint", nullable: true, comment: "What YOU receive after Stripe fee Example: 11386 cents = $113.86. This is your actual revenue + user deposit" })
|
|
6053
6219
|
], StripeTransaction.prototype, "netReceivedCents", 2);
|
|
6054
6220
|
__decorateClass([
|
|
6055
|
-
(0,
|
|
6221
|
+
(0, import_typeorm70.Column)({ name: "description", type: "text", nullable: true })
|
|
6056
6222
|
], StripeTransaction.prototype, "description", 2);
|
|
6057
6223
|
__decorateClass([
|
|
6058
|
-
(0,
|
|
6224
|
+
(0, import_typeorm70.Column)({ name: "status", type: "enum", enum: StripeTransactionStatusEnum, default: "PENDING" /* PENDING */ })
|
|
6059
6225
|
], StripeTransaction.prototype, "status", 2);
|
|
6060
6226
|
__decorateClass([
|
|
6061
|
-
(0,
|
|
6227
|
+
(0, import_typeorm70.Column)({ name: "checkout_session_completed_at", type: "timestamptz", nullable: true })
|
|
6062
6228
|
], StripeTransaction.prototype, "checkoutSessionCompletedAt", 2);
|
|
6063
6229
|
__decorateClass([
|
|
6064
|
-
(0,
|
|
6230
|
+
(0, import_typeorm70.Column)({ name: "completed_at", type: "timestamptz", nullable: true })
|
|
6065
6231
|
], StripeTransaction.prototype, "completedAt", 2);
|
|
6066
6232
|
__decorateClass([
|
|
6067
|
-
(0,
|
|
6233
|
+
(0, import_typeorm70.Column)({ name: "billing_details", type: "jsonb", nullable: true })
|
|
6068
6234
|
], StripeTransaction.prototype, "billingDetails", 2);
|
|
6069
6235
|
__decorateClass([
|
|
6070
|
-
(0,
|
|
6236
|
+
(0, import_typeorm70.Column)({ name: "payment_method_details", type: "jsonb", nullable: true })
|
|
6071
6237
|
], StripeTransaction.prototype, "paymentMethodDetails", 2);
|
|
6072
6238
|
__decorateClass([
|
|
6073
|
-
(0,
|
|
6239
|
+
(0, import_typeorm70.Column)({ name: "raw_session_payload", type: "jsonb", nullable: true })
|
|
6074
6240
|
], StripeTransaction.prototype, "rawSessionPayload", 2);
|
|
6075
6241
|
__decorateClass([
|
|
6076
|
-
(0,
|
|
6242
|
+
(0, import_typeorm70.Column)({ name: "raw_session_response", type: "jsonb", nullable: true })
|
|
6077
6243
|
], StripeTransaction.prototype, "rawSessionResponse", 2);
|
|
6078
6244
|
StripeTransaction = __decorateClass([
|
|
6079
|
-
(0,
|
|
6245
|
+
(0, import_typeorm70.Entity)("stripe_transactions")
|
|
6080
6246
|
], StripeTransaction);
|
|
6081
6247
|
|
|
6082
6248
|
// src/entities/wallet.entity.ts
|
|
6083
|
-
var
|
|
6249
|
+
var import_typeorm72 = require("typeorm");
|
|
6084
6250
|
|
|
6085
6251
|
// src/entities/wallet-transaction.entity.ts
|
|
6086
|
-
var
|
|
6252
|
+
var import_typeorm71 = require("typeorm");
|
|
6087
6253
|
var WalletTransactionTypeEnum = /* @__PURE__ */ ((WalletTransactionTypeEnum2) => {
|
|
6088
6254
|
WalletTransactionTypeEnum2["CR"] = "CR";
|
|
6089
6255
|
WalletTransactionTypeEnum2["DR"] = "DR";
|
|
@@ -6100,46 +6266,46 @@ var WalletTransactionStatusEnum = /* @__PURE__ */ ((WalletTransactionStatusEnum2
|
|
|
6100
6266
|
var WalletTransaction = class extends BaseEntity {
|
|
6101
6267
|
};
|
|
6102
6268
|
__decorateClass([
|
|
6103
|
-
(0,
|
|
6104
|
-
(0,
|
|
6269
|
+
(0, import_typeorm71.Column)({ name: "wallet_id", type: "integer", nullable: true }),
|
|
6270
|
+
(0, import_typeorm71.Index)()
|
|
6105
6271
|
], WalletTransaction.prototype, "walletId", 2);
|
|
6106
6272
|
__decorateClass([
|
|
6107
|
-
(0,
|
|
6108
|
-
(0,
|
|
6273
|
+
(0, import_typeorm71.ManyToOne)(() => Wallet, (wallet) => wallet.walletTransactions),
|
|
6274
|
+
(0, import_typeorm71.JoinColumn)({ name: "wallet_id" })
|
|
6109
6275
|
], WalletTransaction.prototype, "wallet", 2);
|
|
6110
6276
|
__decorateClass([
|
|
6111
|
-
(0,
|
|
6277
|
+
(0, import_typeorm71.Column)({ name: "amount", type: "bigint", nullable: true })
|
|
6112
6278
|
], WalletTransaction.prototype, "amount", 2);
|
|
6113
6279
|
__decorateClass([
|
|
6114
|
-
(0,
|
|
6280
|
+
(0, import_typeorm71.Column)({ name: "balance_before", type: "bigint", nullable: true })
|
|
6115
6281
|
], WalletTransaction.prototype, "balanceBefore", 2);
|
|
6116
6282
|
__decorateClass([
|
|
6117
|
-
(0,
|
|
6283
|
+
(0, import_typeorm71.Column)({ name: "balance_after", type: "bigint", nullable: true })
|
|
6118
6284
|
], WalletTransaction.prototype, "balanceAfter", 2);
|
|
6119
6285
|
__decorateClass([
|
|
6120
|
-
(0,
|
|
6286
|
+
(0, import_typeorm71.Column)({ name: "type", type: "enum", enum: WalletTransactionTypeEnum })
|
|
6121
6287
|
], WalletTransaction.prototype, "type", 2);
|
|
6122
6288
|
__decorateClass([
|
|
6123
|
-
(0,
|
|
6289
|
+
(0, import_typeorm71.Column)({ name: "status", type: "enum", enum: WalletTransactionStatusEnum, default: "PENDING" /* PENDING */ })
|
|
6124
6290
|
], WalletTransaction.prototype, "status", 2);
|
|
6125
6291
|
__decorateClass([
|
|
6126
|
-
(0,
|
|
6292
|
+
(0, import_typeorm71.Column)({ name: "description", type: "text", nullable: true })
|
|
6127
6293
|
], WalletTransaction.prototype, "description", 2);
|
|
6128
6294
|
__decorateClass([
|
|
6129
|
-
(0,
|
|
6295
|
+
(0, import_typeorm71.Column)({ name: "completed_at", type: "timestamptz", nullable: true })
|
|
6130
6296
|
], WalletTransaction.prototype, "completedAt", 2);
|
|
6131
6297
|
__decorateClass([
|
|
6132
|
-
(0,
|
|
6298
|
+
(0, import_typeorm71.Column)({ name: "transaction_for", type: "varchar", nullable: true })
|
|
6133
6299
|
], WalletTransaction.prototype, "transactionFor", 2);
|
|
6134
6300
|
__decorateClass([
|
|
6135
|
-
(0,
|
|
6301
|
+
(0, import_typeorm71.Column)({ name: "meta_data", type: "varchar", nullable: true })
|
|
6136
6302
|
], WalletTransaction.prototype, "metaData", 2);
|
|
6137
6303
|
__decorateClass([
|
|
6138
|
-
(0,
|
|
6139
|
-
(0,
|
|
6304
|
+
(0, import_typeorm71.Column)({ name: "stripe_transaction_id", type: "integer", nullable: true }),
|
|
6305
|
+
(0, import_typeorm71.Index)()
|
|
6140
6306
|
], WalletTransaction.prototype, "stripeTransactionId", 2);
|
|
6141
6307
|
WalletTransaction = __decorateClass([
|
|
6142
|
-
(0,
|
|
6308
|
+
(0, import_typeorm71.Entity)("wallet_transactions")
|
|
6143
6309
|
], WalletTransaction);
|
|
6144
6310
|
|
|
6145
6311
|
// src/entities/wallet.entity.ts
|
|
@@ -6157,43 +6323,43 @@ var WalletOnboardingStatusEnum = /* @__PURE__ */ ((WalletOnboardingStatusEnum2)
|
|
|
6157
6323
|
var Wallet = class extends BaseEntity {
|
|
6158
6324
|
};
|
|
6159
6325
|
__decorateClass([
|
|
6160
|
-
(0,
|
|
6161
|
-
(0,
|
|
6326
|
+
(0, import_typeorm72.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
6327
|
+
(0, import_typeorm72.Index)()
|
|
6162
6328
|
], Wallet.prototype, "userId", 2);
|
|
6163
6329
|
__decorateClass([
|
|
6164
|
-
(0,
|
|
6165
|
-
(0,
|
|
6330
|
+
(0, import_typeorm72.OneToOne)(() => User, (user) => user.wallet),
|
|
6331
|
+
(0, import_typeorm72.JoinColumn)({ name: "user_id" })
|
|
6166
6332
|
], Wallet.prototype, "user", 2);
|
|
6167
6333
|
__decorateClass([
|
|
6168
|
-
(0,
|
|
6334
|
+
(0, import_typeorm72.Column)({ name: "account_type", type: "enum", enum: WalletAccountTypeEnum, nullable: true })
|
|
6169
6335
|
], Wallet.prototype, "accountType", 2);
|
|
6170
6336
|
__decorateClass([
|
|
6171
|
-
(0,
|
|
6337
|
+
(0, import_typeorm72.Column)({ name: "stripe_account_id", type: "varchar", nullable: true })
|
|
6172
6338
|
], Wallet.prototype, "stripeAccountId", 2);
|
|
6173
6339
|
__decorateClass([
|
|
6174
|
-
(0,
|
|
6340
|
+
(0, import_typeorm72.Column)({ name: "stripe_customer_id", type: "varchar", nullable: true })
|
|
6175
6341
|
], Wallet.prototype, "stripeCustomerId", 2);
|
|
6176
6342
|
__decorateClass([
|
|
6177
|
-
(0,
|
|
6343
|
+
(0, import_typeorm72.Column)({ name: "wallet_balance", type: "varchar", default: "0", comment: "This column is just used to show balance, It will not be used in any computation" })
|
|
6178
6344
|
], Wallet.prototype, "walletBalance", 2);
|
|
6179
6345
|
__decorateClass([
|
|
6180
|
-
(0,
|
|
6346
|
+
(0, import_typeorm72.Column)({ name: "wallet_balance_cents", type: "bigint", default: 0, comment: "This column is used to store wallet balance in cents Example: 371 cents = $3.71, All computation will be handled by this column" })
|
|
6181
6347
|
], Wallet.prototype, "walletBalanceCents", 2);
|
|
6182
6348
|
__decorateClass([
|
|
6183
|
-
(0,
|
|
6349
|
+
(0, import_typeorm72.Column)({ name: "onboarding_status", type: "enum", enum: WalletOnboardingStatusEnum, nullable: true })
|
|
6184
6350
|
], Wallet.prototype, "onboardingStatus", 2);
|
|
6185
6351
|
__decorateClass([
|
|
6186
|
-
(0,
|
|
6352
|
+
(0, import_typeorm72.Column)({ name: "stripe_metadata", type: "jsonb", nullable: true })
|
|
6187
6353
|
], Wallet.prototype, "stripeMetadata", 2);
|
|
6188
6354
|
__decorateClass([
|
|
6189
|
-
(0,
|
|
6355
|
+
(0, import_typeorm72.OneToMany)(() => WalletTransaction, (walletTransaction) => walletTransaction.wallet)
|
|
6190
6356
|
], Wallet.prototype, "walletTransactions", 2);
|
|
6191
6357
|
Wallet = __decorateClass([
|
|
6192
|
-
(0,
|
|
6358
|
+
(0, import_typeorm72.Entity)("wallets")
|
|
6193
6359
|
], Wallet);
|
|
6194
6360
|
|
|
6195
6361
|
// src/entities/freelancer-assessment-request.entity.ts
|
|
6196
|
-
var
|
|
6362
|
+
var import_typeorm73 = require("typeorm");
|
|
6197
6363
|
var AssessmentRequestStatusEnum = /* @__PURE__ */ ((AssessmentRequestStatusEnum2) => {
|
|
6198
6364
|
AssessmentRequestStatusEnum2["PENDING"] = "PENDING";
|
|
6199
6365
|
AssessmentRequestStatusEnum2["APPROVED"] = "APPROVED";
|
|
@@ -6203,23 +6369,23 @@ var AssessmentRequestStatusEnum = /* @__PURE__ */ ((AssessmentRequestStatusEnum2
|
|
|
6203
6369
|
var FreelancerAssessmentRequest = class extends BaseEntity {
|
|
6204
6370
|
};
|
|
6205
6371
|
__decorateClass([
|
|
6206
|
-
(0,
|
|
6207
|
-
(0,
|
|
6372
|
+
(0, import_typeorm73.Column)({ name: "freelancer_id", type: "integer", nullable: true }),
|
|
6373
|
+
(0, import_typeorm73.Index)()
|
|
6208
6374
|
], FreelancerAssessmentRequest.prototype, "freelancerId", 2);
|
|
6209
6375
|
__decorateClass([
|
|
6210
|
-
(0,
|
|
6211
|
-
(0,
|
|
6376
|
+
(0, import_typeorm73.ManyToOne)(() => User, (user) => user.freelancerAssessmentRequests),
|
|
6377
|
+
(0, import_typeorm73.JoinColumn)({ name: "freelancer_id" })
|
|
6212
6378
|
], FreelancerAssessmentRequest.prototype, "freelancer", 2);
|
|
6213
6379
|
__decorateClass([
|
|
6214
|
-
(0,
|
|
6215
|
-
(0,
|
|
6380
|
+
(0, import_typeorm73.Column)({ name: "approved_by_id", type: "integer", nullable: true }),
|
|
6381
|
+
(0, import_typeorm73.Index)()
|
|
6216
6382
|
], FreelancerAssessmentRequest.prototype, "approvedById", 2);
|
|
6217
6383
|
__decorateClass([
|
|
6218
|
-
(0,
|
|
6219
|
-
(0,
|
|
6384
|
+
(0, import_typeorm73.ManyToOne)(() => User, (user) => user.assessmentRequests),
|
|
6385
|
+
(0, import_typeorm73.JoinColumn)({ name: "approved_by_id" })
|
|
6220
6386
|
], FreelancerAssessmentRequest.prototype, "approvedBy", 2);
|
|
6221
6387
|
__decorateClass([
|
|
6222
|
-
(0,
|
|
6388
|
+
(0, import_typeorm73.Column)({
|
|
6223
6389
|
name: "status",
|
|
6224
6390
|
type: "enum",
|
|
6225
6391
|
enum: AssessmentRequestStatusEnum,
|
|
@@ -6227,209 +6393,46 @@ __decorateClass([
|
|
|
6227
6393
|
})
|
|
6228
6394
|
], FreelancerAssessmentRequest.prototype, "status", 2);
|
|
6229
6395
|
__decorateClass([
|
|
6230
|
-
(0,
|
|
6396
|
+
(0, import_typeorm73.Column)({ name: "assessment_link", type: "text", nullable: true })
|
|
6231
6397
|
], FreelancerAssessmentRequest.prototype, "assessmentLink", 2);
|
|
6232
6398
|
FreelancerAssessmentRequest = __decorateClass([
|
|
6233
|
-
(0,
|
|
6399
|
+
(0, import_typeorm73.Entity)({ name: "freelancer_assessment_requests" })
|
|
6234
6400
|
], FreelancerAssessmentRequest);
|
|
6235
6401
|
|
|
6236
6402
|
// src/entities/in-app-notification.entity.ts
|
|
6237
|
-
var
|
|
6403
|
+
var import_typeorm74 = require("typeorm");
|
|
6238
6404
|
var InAppNotification = class extends BaseEntity {
|
|
6239
6405
|
};
|
|
6240
6406
|
__decorateClass([
|
|
6241
|
-
(0,
|
|
6242
|
-
(0,
|
|
6407
|
+
(0, import_typeorm74.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
6408
|
+
(0, import_typeorm74.Index)()
|
|
6243
6409
|
], InAppNotification.prototype, "userId", 2);
|
|
6244
6410
|
__decorateClass([
|
|
6245
|
-
(0,
|
|
6246
|
-
(0,
|
|
6411
|
+
(0, import_typeorm74.ManyToOne)(() => User, (user) => user.inAppNotifications),
|
|
6412
|
+
(0, import_typeorm74.JoinColumn)({ name: "user_id" })
|
|
6247
6413
|
], InAppNotification.prototype, "user", 2);
|
|
6248
6414
|
__decorateClass([
|
|
6249
|
-
(0,
|
|
6415
|
+
(0, import_typeorm74.Column)({ name: "event", type: "varchar", nullable: true })
|
|
6250
6416
|
], InAppNotification.prototype, "event", 2);
|
|
6251
6417
|
__decorateClass([
|
|
6252
|
-
(0,
|
|
6418
|
+
(0, import_typeorm74.Column)({ name: "title", type: "varchar", nullable: true })
|
|
6253
6419
|
], InAppNotification.prototype, "title", 2);
|
|
6254
6420
|
__decorateClass([
|
|
6255
|
-
(0,
|
|
6421
|
+
(0, import_typeorm74.Column)({ name: "message", type: "varchar", nullable: true })
|
|
6256
6422
|
], InAppNotification.prototype, "message", 2);
|
|
6257
6423
|
__decorateClass([
|
|
6258
|
-
(0,
|
|
6424
|
+
(0, import_typeorm74.Column)({ name: "redirect_url", type: "varchar", nullable: true })
|
|
6259
6425
|
], InAppNotification.prototype, "redirectUrl", 2);
|
|
6260
6426
|
__decorateClass([
|
|
6261
|
-
(0,
|
|
6427
|
+
(0, import_typeorm74.Column)({ name: "is_read", type: "boolean", default: false })
|
|
6262
6428
|
], InAppNotification.prototype, "isRead", 2);
|
|
6263
6429
|
__decorateClass([
|
|
6264
|
-
(0,
|
|
6430
|
+
(0, import_typeorm74.Column)({ name: "meta_data", type: "jsonb", nullable: true })
|
|
6265
6431
|
], InAppNotification.prototype, "metaData", 2);
|
|
6266
6432
|
InAppNotification = __decorateClass([
|
|
6267
|
-
(0,
|
|
6433
|
+
(0, import_typeorm74.Entity)("in_app_notifications")
|
|
6268
6434
|
], InAppNotification);
|
|
6269
6435
|
|
|
6270
|
-
// src/entities/task-query.entity.ts
|
|
6271
|
-
var import_typeorm74 = require("typeorm");
|
|
6272
|
-
|
|
6273
|
-
// src/entities/task-query-message.entity.ts
|
|
6274
|
-
var import_typeorm73 = require("typeorm");
|
|
6275
|
-
var TaskQueryMessageUserTypeEnum = /* @__PURE__ */ ((TaskQueryMessageUserTypeEnum2) => {
|
|
6276
|
-
TaskQueryMessageUserTypeEnum2["CLIENT"] = "CLIENT";
|
|
6277
|
-
TaskQueryMessageUserTypeEnum2["FREELANCER"] = "FREELANCER";
|
|
6278
|
-
return TaskQueryMessageUserTypeEnum2;
|
|
6279
|
-
})(TaskQueryMessageUserTypeEnum || {});
|
|
6280
|
-
var TaskQueryMessage = class extends BaseEntity {
|
|
6281
|
-
};
|
|
6282
|
-
__decorateClass([
|
|
6283
|
-
(0, import_typeorm73.Column)({ name: "task_query_id", type: "integer" }),
|
|
6284
|
-
(0, import_typeorm73.Index)()
|
|
6285
|
-
], TaskQueryMessage.prototype, "taskQueryId", 2);
|
|
6286
|
-
__decorateClass([
|
|
6287
|
-
(0, import_typeorm73.ManyToOne)(() => TaskQuery, (taskQuery) => taskQuery.messages),
|
|
6288
|
-
(0, import_typeorm73.JoinColumn)({ name: "task_query_id" })
|
|
6289
|
-
], TaskQueryMessage.prototype, "taskQuery", 2);
|
|
6290
|
-
__decorateClass([
|
|
6291
|
-
(0, import_typeorm73.Column)({ name: "sender_user_id", type: "integer" }),
|
|
6292
|
-
(0, import_typeorm73.Index)()
|
|
6293
|
-
], TaskQueryMessage.prototype, "senderUserId", 2);
|
|
6294
|
-
__decorateClass([
|
|
6295
|
-
(0, import_typeorm73.ManyToOne)(() => User, (user) => user.taskQueryMessages),
|
|
6296
|
-
(0, import_typeorm73.JoinColumn)({ name: "sender_user_id" })
|
|
6297
|
-
], TaskQueryMessage.prototype, "senderUser", 2);
|
|
6298
|
-
__decorateClass([
|
|
6299
|
-
(0, import_typeorm73.Column)({
|
|
6300
|
-
name: "sender_type",
|
|
6301
|
-
type: "enum",
|
|
6302
|
-
enum: TaskQueryMessageUserTypeEnum
|
|
6303
|
-
})
|
|
6304
|
-
], TaskQueryMessage.prototype, "senderType", 2);
|
|
6305
|
-
__decorateClass([
|
|
6306
|
-
(0, import_typeorm73.Column)({ name: "message", type: "varchar", nullable: true })
|
|
6307
|
-
], TaskQueryMessage.prototype, "message", 2);
|
|
6308
|
-
__decorateClass([
|
|
6309
|
-
(0, import_typeorm73.Column)({ name: "attachment_url", type: "varchar", nullable: true })
|
|
6310
|
-
], TaskQueryMessage.prototype, "attachmentUrl", 2);
|
|
6311
|
-
__decorateClass([
|
|
6312
|
-
(0, import_typeorm73.Column)({ name: "attachment_type", type: "varchar", nullable: true })
|
|
6313
|
-
], TaskQueryMessage.prototype, "attachmentType", 2);
|
|
6314
|
-
__decorateClass([
|
|
6315
|
-
(0, import_typeorm73.Column)({ name: "meta", type: "jsonb", nullable: true })
|
|
6316
|
-
], TaskQueryMessage.prototype, "meta", 2);
|
|
6317
|
-
__decorateClass([
|
|
6318
|
-
(0, import_typeorm73.Column)({ name: "is_read", type: "boolean", default: false })
|
|
6319
|
-
], TaskQueryMessage.prototype, "isRead", 2);
|
|
6320
|
-
__decorateClass([
|
|
6321
|
-
(0, import_typeorm73.Column)({
|
|
6322
|
-
name: "read_at",
|
|
6323
|
-
type: "timestamp with time zone",
|
|
6324
|
-
nullable: true
|
|
6325
|
-
})
|
|
6326
|
-
], TaskQueryMessage.prototype, "readAt", 2);
|
|
6327
|
-
TaskQueryMessage = __decorateClass([
|
|
6328
|
-
(0, import_typeorm73.Entity)("task_query_messages")
|
|
6329
|
-
], TaskQueryMessage);
|
|
6330
|
-
|
|
6331
|
-
// src/entities/task-query.entity.ts
|
|
6332
|
-
var TaskQueryUserTypeEnum = /* @__PURE__ */ ((TaskQueryUserTypeEnum2) => {
|
|
6333
|
-
TaskQueryUserTypeEnum2["CLIENT"] = "CLIENT";
|
|
6334
|
-
TaskQueryUserTypeEnum2["FREELANCER"] = "FREELANCER";
|
|
6335
|
-
return TaskQueryUserTypeEnum2;
|
|
6336
|
-
})(TaskQueryUserTypeEnum || {});
|
|
6337
|
-
var TaskQueryCategoryEnum = /* @__PURE__ */ ((TaskQueryCategoryEnum2) => {
|
|
6338
|
-
TaskQueryCategoryEnum2["DEVELOPMENT_ISSUE"] = "DEVELOPMENT_ISSUE";
|
|
6339
|
-
TaskQueryCategoryEnum2["TESTING_ISSUE"] = "TESTING_ISSUE";
|
|
6340
|
-
TaskQueryCategoryEnum2["OTHER"] = "OTHER";
|
|
6341
|
-
return TaskQueryCategoryEnum2;
|
|
6342
|
-
})(TaskQueryCategoryEnum || {});
|
|
6343
|
-
var TaskQueryStatusEnum = /* @__PURE__ */ ((TaskQueryStatusEnum2) => {
|
|
6344
|
-
TaskQueryStatusEnum2["OPEN"] = "OPEN";
|
|
6345
|
-
TaskQueryStatusEnum2["ANSWERED"] = "ANSWERED";
|
|
6346
|
-
TaskQueryStatusEnum2["CLOSED"] = "CLOSED";
|
|
6347
|
-
return TaskQueryStatusEnum2;
|
|
6348
|
-
})(TaskQueryStatusEnum || {});
|
|
6349
|
-
var TaskQuery = class extends BaseEntity {
|
|
6350
|
-
};
|
|
6351
|
-
__decorateClass([
|
|
6352
|
-
(0, import_typeorm74.Column)({ name: "task_id", type: "integer" }),
|
|
6353
|
-
(0, import_typeorm74.Index)()
|
|
6354
|
-
], TaskQuery.prototype, "taskId", 2);
|
|
6355
|
-
__decorateClass([
|
|
6356
|
-
(0, import_typeorm74.ManyToOne)(() => Task),
|
|
6357
|
-
(0, import_typeorm74.JoinColumn)({ name: "task_id" })
|
|
6358
|
-
], TaskQuery.prototype, "task", 2);
|
|
6359
|
-
__decorateClass([
|
|
6360
|
-
(0, import_typeorm74.Column)({ name: "raised_by_user_id", type: "integer" }),
|
|
6361
|
-
(0, import_typeorm74.Index)()
|
|
6362
|
-
], TaskQuery.prototype, "raisedByUserId", 2);
|
|
6363
|
-
__decorateClass([
|
|
6364
|
-
(0, import_typeorm74.ManyToOne)(() => User, (user) => user.raisedTaskQueries),
|
|
6365
|
-
(0, import_typeorm74.JoinColumn)({ name: "raised_by_user_id" })
|
|
6366
|
-
], TaskQuery.prototype, "raisedByUser", 2);
|
|
6367
|
-
__decorateClass([
|
|
6368
|
-
(0, import_typeorm74.Column)({
|
|
6369
|
-
name: "raised_by_type",
|
|
6370
|
-
type: "enum",
|
|
6371
|
-
enum: TaskQueryUserTypeEnum
|
|
6372
|
-
})
|
|
6373
|
-
], TaskQuery.prototype, "raisedByType", 2);
|
|
6374
|
-
__decorateClass([
|
|
6375
|
-
(0, import_typeorm74.Column)({ name: "assigned_to_user_id", type: "integer" }),
|
|
6376
|
-
(0, import_typeorm74.Index)()
|
|
6377
|
-
], TaskQuery.prototype, "assignedToUserId", 2);
|
|
6378
|
-
__decorateClass([
|
|
6379
|
-
(0, import_typeorm74.ManyToOne)(() => User, (user) => user.assignedTaskQueries),
|
|
6380
|
-
(0, import_typeorm74.JoinColumn)({ name: "assigned_to_user_id" })
|
|
6381
|
-
], TaskQuery.prototype, "assignedToUser", 2);
|
|
6382
|
-
__decorateClass([
|
|
6383
|
-
(0, import_typeorm74.Column)({
|
|
6384
|
-
name: "assigned_to_type",
|
|
6385
|
-
type: "enum",
|
|
6386
|
-
enum: TaskQueryUserTypeEnum
|
|
6387
|
-
})
|
|
6388
|
-
], TaskQuery.prototype, "assignedToType", 2);
|
|
6389
|
-
__decorateClass([
|
|
6390
|
-
(0, import_typeorm74.Column)({
|
|
6391
|
-
name: "query_category",
|
|
6392
|
-
type: "enum",
|
|
6393
|
-
enum: TaskQueryCategoryEnum
|
|
6394
|
-
})
|
|
6395
|
-
], TaskQuery.prototype, "queryCategory", 2);
|
|
6396
|
-
__decorateClass([
|
|
6397
|
-
(0, import_typeorm74.Column)({ name: "subject", type: "varchar", nullable: true })
|
|
6398
|
-
], TaskQuery.prototype, "subject", 2);
|
|
6399
|
-
__decorateClass([
|
|
6400
|
-
(0, import_typeorm74.Column)({ name: "description", type: "varchar", nullable: true })
|
|
6401
|
-
], TaskQuery.prototype, "description", 2);
|
|
6402
|
-
__decorateClass([
|
|
6403
|
-
(0, import_typeorm74.Column)({
|
|
6404
|
-
name: "status",
|
|
6405
|
-
type: "enum",
|
|
6406
|
-
enum: TaskQueryStatusEnum,
|
|
6407
|
-
default: "OPEN" /* OPEN */
|
|
6408
|
-
})
|
|
6409
|
-
], TaskQuery.prototype, "status", 2);
|
|
6410
|
-
__decorateClass([
|
|
6411
|
-
(0, import_typeorm74.Column)({
|
|
6412
|
-
name: "last_message_at",
|
|
6413
|
-
type: "timestamp with time zone",
|
|
6414
|
-
nullable: true
|
|
6415
|
-
})
|
|
6416
|
-
], TaskQuery.prototype, "lastMessageAt", 2);
|
|
6417
|
-
__decorateClass([
|
|
6418
|
-
(0, import_typeorm74.Column)({ name: "last_message_preview", type: "varchar", nullable: true })
|
|
6419
|
-
], TaskQuery.prototype, "lastMessagePreview", 2);
|
|
6420
|
-
__decorateClass([
|
|
6421
|
-
(0, import_typeorm74.Column)({ name: "unread_count_client", type: "integer", default: 0 })
|
|
6422
|
-
], TaskQuery.prototype, "unreadCountClient", 2);
|
|
6423
|
-
__decorateClass([
|
|
6424
|
-
(0, import_typeorm74.Column)({ name: "unread_count_freelancer", type: "integer", default: 0 })
|
|
6425
|
-
], TaskQuery.prototype, "unreadCountFreelancer", 2);
|
|
6426
|
-
__decorateClass([
|
|
6427
|
-
(0, import_typeorm74.OneToMany)(() => TaskQueryMessage, (message) => message.taskQuery, { cascade: true })
|
|
6428
|
-
], TaskQuery.prototype, "messages", 2);
|
|
6429
|
-
TaskQuery = __decorateClass([
|
|
6430
|
-
(0, import_typeorm74.Entity)("task_queries")
|
|
6431
|
-
], TaskQuery);
|
|
6432
|
-
|
|
6433
6436
|
// src/entities/user.entity.ts
|
|
6434
6437
|
var AccountType2 = /* @__PURE__ */ ((AccountType4) => {
|
|
6435
6438
|
AccountType4["SUPER_ADMIN"] = "SUPER_ADMIN";
|