@experts_hub/shared 1.0.688 → 1.0.690
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/entities/index.d.ts +1 -0
- package/dist/entities/task-logtime.entity.d.ts +13 -0
- package/dist/entities/task.entity.d.ts +2 -0
- package/dist/index.d.mts +49 -2
- package/dist/index.d.ts +49 -2
- package/dist/index.js +1072 -930
- package/dist/index.mjs +1004 -860
- package/dist/modules/contract/pattern/pattern.d.ts +1 -0
- package/dist/modules/task/dto/add-task-log-time.dto.d.ts +6 -0
- package/dist/modules/task/dto/add-task-query-reply.dto.d.ts +4 -0
- package/dist/modules/task/dto/create-task-query.dto.d.ts +8 -0
- package/dist/modules/task/dto/create-task.dto.d.ts +1 -1
- package/dist/modules/task/dto/index.d.ts +4 -0
- package/dist/modules/task/dto/mark-task-query-messages-read.dto.d.ts +4 -0
- package/dist/modules/task/pattern/pattern.d.ts +7 -0
- package/dist/modules/timesheet/dto/create-freelancer-timesheet.dto.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -48,6 +48,8 @@ __export(index_exports, {
|
|
|
48
48
|
AccountType: () => AccountType2,
|
|
49
49
|
AddClientRemarkDto: () => AddClientRemarkDto,
|
|
50
50
|
AddGlobalSettingDto: () => AddGlobalSettingDto,
|
|
51
|
+
AddTaskLogTimeDto: () => AddTaskLogTimeDto,
|
|
52
|
+
AddTaskQueryReplyDto: () => AddTaskQueryReplyDto,
|
|
51
53
|
AddTopupEscrowAmountDto: () => AddTopupEscrowAmountDto,
|
|
52
54
|
AdminCreateJobInformationDto: () => AdminCreateJobInformationDto,
|
|
53
55
|
AdminExportClientV2OptimisedDto: () => AdminExportClientV2OptimisedDto,
|
|
@@ -165,6 +167,7 @@ __export(index_exports, {
|
|
|
165
167
|
CreateRatingDto: () => CreateRatingDto,
|
|
166
168
|
CreateSubAdminDto: () => CreateSubAdminDto,
|
|
167
169
|
CreateTaskDto: () => CreateTaskDto,
|
|
170
|
+
CreateTaskQueryDto: () => CreateTaskQueryDto,
|
|
168
171
|
CreateUserSigningDto: () => CreateUserSigningDto,
|
|
169
172
|
CustomQuestionItemDto: () => CustomQuestionItemDto,
|
|
170
173
|
DISPUTE_PATTERN: () => DISPUTE_PATTERN,
|
|
@@ -306,6 +309,7 @@ __export(index_exports, {
|
|
|
306
309
|
MarkCandidateStatusBulkDto: () => MarkCandidateStatusBulkDto,
|
|
307
310
|
MarkCandidateStatusDto: () => MarkCandidateStatusDto,
|
|
308
311
|
MarkTaskAsCompletedDto: () => MarkTaskAsCompletedDto,
|
|
312
|
+
MarkTaskQueryMessagesReadDto: () => MarkTaskQueryMessagesReadDto,
|
|
309
313
|
McqStatusEnum: () => McqStatusEnum,
|
|
310
314
|
ModeOfHire: () => ModeOfHire,
|
|
311
315
|
ModeOfWork: () => ModeOfWork,
|
|
@@ -402,6 +406,7 @@ __export(index_exports, {
|
|
|
402
406
|
TaskChecklistItem: () => TaskChecklistItem,
|
|
403
407
|
TaskDeliverable: () => TaskDeliverable,
|
|
404
408
|
TaskDeliverableTypeEnum: () => TaskDeliverableTypeEnum,
|
|
409
|
+
TaskLogTime: () => TaskLogTime,
|
|
405
410
|
TaskPriorityEnum: () => TaskPriorityEnum,
|
|
406
411
|
TaskQuery: () => TaskQuery,
|
|
407
412
|
TaskQueryCategoryEnum: () => TaskQueryCategoryEnum,
|
|
@@ -1397,7 +1402,7 @@ __decorateClass([
|
|
|
1397
1402
|
var import_class_validator37 = require("class-validator");
|
|
1398
1403
|
|
|
1399
1404
|
// src/entities/user.entity.ts
|
|
1400
|
-
var
|
|
1405
|
+
var import_typeorm75 = require("typeorm");
|
|
1401
1406
|
|
|
1402
1407
|
// src/entities/base.entity.ts
|
|
1403
1408
|
var import_typeorm = require("typeorm");
|
|
@@ -2226,7 +2231,7 @@ FreelancerProfile = __decorateClass([
|
|
|
2226
2231
|
], FreelancerProfile);
|
|
2227
2232
|
|
|
2228
2233
|
// src/entities/job.entity.ts
|
|
2229
|
-
var
|
|
2234
|
+
var import_typeorm41 = require("typeorm");
|
|
2230
2235
|
|
|
2231
2236
|
// src/entities/job-skill.entity.ts
|
|
2232
2237
|
var import_typeorm10 = require("typeorm");
|
|
@@ -4078,10 +4083,10 @@ Contract = __decorateClass([
|
|
|
4078
4083
|
], Contract);
|
|
4079
4084
|
|
|
4080
4085
|
// src/entities/timesheets.entity.ts
|
|
4081
|
-
var
|
|
4086
|
+
var import_typeorm38 = require("typeorm");
|
|
4082
4087
|
|
|
4083
4088
|
// src/entities/task.entity.ts
|
|
4084
|
-
var
|
|
4089
|
+
var import_typeorm37 = require("typeorm");
|
|
4085
4090
|
|
|
4086
4091
|
// src/entities/task-deliverable.entity.ts
|
|
4087
4092
|
var import_typeorm32 = require("typeorm");
|
|
@@ -4214,6 +4219,45 @@ TaskSubtask = __decorateClass([
|
|
|
4214
4219
|
(0, import_typeorm35.Entity)("task_subtasks")
|
|
4215
4220
|
], TaskSubtask);
|
|
4216
4221
|
|
|
4222
|
+
// src/entities/task-logtime.entity.ts
|
|
4223
|
+
var import_typeorm36 = require("typeorm");
|
|
4224
|
+
var TaskLogTime = class extends BaseEntity {
|
|
4225
|
+
};
|
|
4226
|
+
__decorateClass([
|
|
4227
|
+
(0, import_typeorm36.Column)({ name: "task_id", type: "integer" }),
|
|
4228
|
+
(0, import_typeorm36.Index)()
|
|
4229
|
+
], TaskLogTime.prototype, "taskId", 2);
|
|
4230
|
+
__decorateClass([
|
|
4231
|
+
(0, import_typeorm36.ManyToOne)(() => Task, (task) => task.taskLogTimes),
|
|
4232
|
+
(0, import_typeorm36.JoinColumn)({ name: "task_id" })
|
|
4233
|
+
], TaskLogTime.prototype, "task", 2);
|
|
4234
|
+
__decorateClass([
|
|
4235
|
+
(0, import_typeorm36.Column)({ name: "start_date", type: "date", nullable: true })
|
|
4236
|
+
], TaskLogTime.prototype, "startDate", 2);
|
|
4237
|
+
__decorateClass([
|
|
4238
|
+
(0, import_typeorm36.Column)({ name: "start_time", type: "time", nullable: true })
|
|
4239
|
+
], TaskLogTime.prototype, "startTime", 2);
|
|
4240
|
+
__decorateClass([
|
|
4241
|
+
(0, import_typeorm36.Column)({ name: "end_date", type: "date", nullable: true })
|
|
4242
|
+
], TaskLogTime.prototype, "endDate", 2);
|
|
4243
|
+
__decorateClass([
|
|
4244
|
+
(0, import_typeorm36.Column)({ name: "end_time", type: "time", nullable: true })
|
|
4245
|
+
], TaskLogTime.prototype, "endTime", 2);
|
|
4246
|
+
__decorateClass([
|
|
4247
|
+
(0, import_typeorm36.Column)({ name: "log_hours", type: "varchar", nullable: true })
|
|
4248
|
+
], TaskLogTime.prototype, "logHours", 2);
|
|
4249
|
+
__decorateClass([
|
|
4250
|
+
(0, import_typeorm36.Column)({ name: "freelancer_id", type: "integer", nullable: true }),
|
|
4251
|
+
(0, import_typeorm36.Index)()
|
|
4252
|
+
], TaskLogTime.prototype, "freelancerId", 2);
|
|
4253
|
+
__decorateClass([
|
|
4254
|
+
(0, import_typeorm36.Column)({ name: "job_id", type: "integer", nullable: true }),
|
|
4255
|
+
(0, import_typeorm36.Index)()
|
|
4256
|
+
], TaskLogTime.prototype, "jobId", 2);
|
|
4257
|
+
TaskLogTime = __decorateClass([
|
|
4258
|
+
(0, import_typeorm36.Entity)("task_log_times")
|
|
4259
|
+
], TaskLogTime);
|
|
4260
|
+
|
|
4217
4261
|
// src/entities/task.entity.ts
|
|
4218
4262
|
var TaskPriorityEnum = /* @__PURE__ */ ((TaskPriorityEnum2) => {
|
|
4219
4263
|
TaskPriorityEnum2["LOW"] = "LOW";
|
|
@@ -4233,37 +4277,37 @@ var TaskStatusEnum = /* @__PURE__ */ ((TaskStatusEnum2) => {
|
|
|
4233
4277
|
var Task = class extends BaseEntity {
|
|
4234
4278
|
};
|
|
4235
4279
|
__decorateClass([
|
|
4236
|
-
(0,
|
|
4280
|
+
(0, import_typeorm37.Column)({ name: "task_unique_id", type: "varchar", nullable: true, unique: true })
|
|
4237
4281
|
], Task.prototype, "taskUniqueId", 2);
|
|
4238
4282
|
__decorateClass([
|
|
4239
|
-
(0,
|
|
4240
|
-
(0,
|
|
4283
|
+
(0, import_typeorm37.Column)({ name: "job_id", type: "integer", nullable: true }),
|
|
4284
|
+
(0, import_typeorm37.Index)()
|
|
4241
4285
|
], Task.prototype, "jobId", 2);
|
|
4242
4286
|
__decorateClass([
|
|
4243
|
-
(0,
|
|
4244
|
-
(0,
|
|
4287
|
+
(0, import_typeorm37.ManyToOne)(() => Job, (job) => job.tasks),
|
|
4288
|
+
(0, import_typeorm37.JoinColumn)({ name: "job_id" })
|
|
4245
4289
|
], Task.prototype, "job", 2);
|
|
4246
4290
|
__decorateClass([
|
|
4247
|
-
(0,
|
|
4248
|
-
(0,
|
|
4291
|
+
(0, import_typeorm37.Column)({ name: "client_id", type: "integer", nullable: true }),
|
|
4292
|
+
(0, import_typeorm37.Index)()
|
|
4249
4293
|
], Task.prototype, "clientId", 2);
|
|
4250
4294
|
__decorateClass([
|
|
4251
|
-
(0,
|
|
4252
|
-
(0,
|
|
4295
|
+
(0, import_typeorm37.ManyToOne)(() => User, (user) => user.clientTasks),
|
|
4296
|
+
(0, import_typeorm37.JoinColumn)({ name: "client_id" })
|
|
4253
4297
|
], Task.prototype, "client", 2);
|
|
4254
4298
|
__decorateClass([
|
|
4255
|
-
(0,
|
|
4256
|
-
(0,
|
|
4299
|
+
(0, import_typeorm37.Column)({ name: "freelancer_id", type: "integer", nullable: true }),
|
|
4300
|
+
(0, import_typeorm37.Index)()
|
|
4257
4301
|
], Task.prototype, "freelancerId", 2);
|
|
4258
4302
|
__decorateClass([
|
|
4259
|
-
(0,
|
|
4260
|
-
(0,
|
|
4303
|
+
(0, import_typeorm37.ManyToOne)(() => User, (user) => user.freelancerTasks),
|
|
4304
|
+
(0, import_typeorm37.JoinColumn)({ name: "freelancer_id" })
|
|
4261
4305
|
], Task.prototype, "freelancer", 2);
|
|
4262
4306
|
__decorateClass([
|
|
4263
|
-
(0,
|
|
4307
|
+
(0, import_typeorm37.Column)({ name: "task_name", type: "varchar", nullable: true })
|
|
4264
4308
|
], Task.prototype, "taskName", 2);
|
|
4265
4309
|
__decorateClass([
|
|
4266
|
-
(0,
|
|
4310
|
+
(0, import_typeorm37.Column)({
|
|
4267
4311
|
name: "status",
|
|
4268
4312
|
type: "enum",
|
|
4269
4313
|
enum: TaskStatusEnum,
|
|
@@ -4271,7 +4315,7 @@ __decorateClass([
|
|
|
4271
4315
|
})
|
|
4272
4316
|
], Task.prototype, "status", 2);
|
|
4273
4317
|
__decorateClass([
|
|
4274
|
-
(0,
|
|
4318
|
+
(0, import_typeorm37.Column)({
|
|
4275
4319
|
name: "priority",
|
|
4276
4320
|
type: "enum",
|
|
4277
4321
|
enum: TaskPriorityEnum,
|
|
@@ -4279,52 +4323,55 @@ __decorateClass([
|
|
|
4279
4323
|
})
|
|
4280
4324
|
], Task.prototype, "priority", 2);
|
|
4281
4325
|
__decorateClass([
|
|
4282
|
-
(0,
|
|
4326
|
+
(0, import_typeorm37.Column)({ name: "description", type: "varchar", nullable: true })
|
|
4283
4327
|
], Task.prototype, "description", 2);
|
|
4284
4328
|
__decorateClass([
|
|
4285
|
-
(0,
|
|
4329
|
+
(0, import_typeorm37.Column)({
|
|
4286
4330
|
name: "due_date",
|
|
4287
4331
|
type: "timestamp with time zone",
|
|
4288
4332
|
nullable: true
|
|
4289
4333
|
})
|
|
4290
4334
|
], Task.prototype, "dueDate", 2);
|
|
4291
4335
|
__decorateClass([
|
|
4292
|
-
(0,
|
|
4336
|
+
(0, import_typeorm37.Column)({
|
|
4293
4337
|
name: "created_on",
|
|
4294
4338
|
type: "timestamp with time zone",
|
|
4295
4339
|
nullable: true
|
|
4296
4340
|
})
|
|
4297
4341
|
], Task.prototype, "createdOn", 2);
|
|
4298
4342
|
__decorateClass([
|
|
4299
|
-
(0,
|
|
4343
|
+
(0, import_typeorm37.Column)({
|
|
4300
4344
|
name: "estimate_hours",
|
|
4301
4345
|
type: "integer",
|
|
4302
4346
|
nullable: true
|
|
4303
4347
|
})
|
|
4304
4348
|
], Task.prototype, "estimateHours", 2);
|
|
4305
4349
|
__decorateClass([
|
|
4306
|
-
(0,
|
|
4350
|
+
(0, import_typeorm37.Column)({ name: "client_remarks", type: "varchar", nullable: true })
|
|
4307
4351
|
], Task.prototype, "clientRemarks", 2);
|
|
4308
4352
|
__decorateClass([
|
|
4309
|
-
(0,
|
|
4353
|
+
(0, import_typeorm37.Column)({ name: "freelancer_work_note", type: "varchar", nullable: true })
|
|
4310
4354
|
], Task.prototype, "freelancerWorkNote", 2);
|
|
4311
4355
|
__decorateClass([
|
|
4312
|
-
(0,
|
|
4356
|
+
(0, import_typeorm37.OneToMany)(() => TaskDeliverable, (taskDeliverable) => taskDeliverable.task, { cascade: true })
|
|
4313
4357
|
], Task.prototype, "deliverables", 2);
|
|
4314
4358
|
__decorateClass([
|
|
4315
|
-
(0,
|
|
4359
|
+
(0, import_typeorm37.OneToMany)(() => TaskResource, (taskResource) => taskResource.task, { cascade: true })
|
|
4316
4360
|
], Task.prototype, "resources", 2);
|
|
4317
4361
|
__decorateClass([
|
|
4318
|
-
(0,
|
|
4362
|
+
(0, import_typeorm37.OneToMany)(() => TaskChecklistItem, (taskChecklistItem) => taskChecklistItem.task, { cascade: true })
|
|
4319
4363
|
], Task.prototype, "checklistItems", 2);
|
|
4320
4364
|
__decorateClass([
|
|
4321
|
-
(0,
|
|
4365
|
+
(0, import_typeorm37.OneToMany)(() => TaskSubtask, (taskSubtask) => taskSubtask.task, { cascade: true })
|
|
4322
4366
|
], Task.prototype, "subtasks", 2);
|
|
4323
4367
|
__decorateClass([
|
|
4324
|
-
(0,
|
|
4368
|
+
(0, import_typeorm37.OneToMany)(() => Timesheet, (timesheet) => timesheet.task, { cascade: true })
|
|
4325
4369
|
], Task.prototype, "timesheets", 2);
|
|
4370
|
+
__decorateClass([
|
|
4371
|
+
(0, import_typeorm37.OneToMany)(() => TaskLogTime, (taskLogTime) => taskLogTime.task, { cascade: true })
|
|
4372
|
+
], Task.prototype, "taskLogTimes", 2);
|
|
4326
4373
|
Task = __decorateClass([
|
|
4327
|
-
(0,
|
|
4374
|
+
(0, import_typeorm37.Entity)("tasks")
|
|
4328
4375
|
], Task);
|
|
4329
4376
|
|
|
4330
4377
|
// src/entities/timesheets.entity.ts
|
|
@@ -4340,144 +4387,144 @@ var TimesheetStatusEnum = /* @__PURE__ */ ((TimesheetStatusEnum2) => {
|
|
|
4340
4387
|
var Timesheet = class extends BaseEntity {
|
|
4341
4388
|
};
|
|
4342
4389
|
__decorateClass([
|
|
4343
|
-
(0,
|
|
4344
|
-
(0,
|
|
4390
|
+
(0, import_typeorm38.Column)({ name: "job_id", type: "integer", nullable: true }),
|
|
4391
|
+
(0, import_typeorm38.Index)()
|
|
4345
4392
|
], Timesheet.prototype, "jobId", 2);
|
|
4346
4393
|
__decorateClass([
|
|
4347
|
-
(0,
|
|
4348
|
-
(0,
|
|
4394
|
+
(0, import_typeorm38.ManyToOne)(() => Job, (job) => job.timesheets),
|
|
4395
|
+
(0, import_typeorm38.JoinColumn)({ name: "job_id" })
|
|
4349
4396
|
], Timesheet.prototype, "job", 2);
|
|
4350
4397
|
__decorateClass([
|
|
4351
|
-
(0,
|
|
4352
|
-
(0,
|
|
4398
|
+
(0, import_typeorm38.Column)({ name: "client_id", type: "integer", nullable: true }),
|
|
4399
|
+
(0, import_typeorm38.Index)()
|
|
4353
4400
|
], Timesheet.prototype, "clientId", 2);
|
|
4354
4401
|
__decorateClass([
|
|
4355
|
-
(0,
|
|
4356
|
-
(0,
|
|
4402
|
+
(0, import_typeorm38.ManyToOne)(() => User, (user) => user.clientTimesheets),
|
|
4403
|
+
(0, import_typeorm38.JoinColumn)({ name: "client_id" })
|
|
4357
4404
|
], Timesheet.prototype, "client", 2);
|
|
4358
4405
|
__decorateClass([
|
|
4359
|
-
(0,
|
|
4360
|
-
(0,
|
|
4406
|
+
(0, import_typeorm38.Column)({ name: "freelancer_id", type: "integer", nullable: true }),
|
|
4407
|
+
(0, import_typeorm38.Index)()
|
|
4361
4408
|
], Timesheet.prototype, "freelancerId", 2);
|
|
4362
4409
|
__decorateClass([
|
|
4363
|
-
(0,
|
|
4364
|
-
(0,
|
|
4410
|
+
(0, import_typeorm38.ManyToOne)(() => User, (user) => user.freelancerTimesheets),
|
|
4411
|
+
(0, import_typeorm38.JoinColumn)({ name: "freelancer_id" })
|
|
4365
4412
|
], Timesheet.prototype, "freelancer", 2);
|
|
4366
4413
|
__decorateClass([
|
|
4367
|
-
(0,
|
|
4414
|
+
(0, import_typeorm38.Column)({
|
|
4368
4415
|
name: "start_date",
|
|
4369
4416
|
type: "date",
|
|
4370
4417
|
nullable: true
|
|
4371
4418
|
})
|
|
4372
4419
|
], Timesheet.prototype, "startDate", 2);
|
|
4373
4420
|
__decorateClass([
|
|
4374
|
-
(0,
|
|
4421
|
+
(0, import_typeorm38.Column)({
|
|
4375
4422
|
name: "end_date",
|
|
4376
4423
|
type: "date",
|
|
4377
4424
|
nullable: true
|
|
4378
4425
|
})
|
|
4379
4426
|
], Timesheet.prototype, "endDate", 2);
|
|
4380
4427
|
__decorateClass([
|
|
4381
|
-
(0,
|
|
4428
|
+
(0, import_typeorm38.Column)({ name: "start_time", type: "varchar", nullable: true })
|
|
4382
4429
|
], Timesheet.prototype, "startTime", 2);
|
|
4383
4430
|
__decorateClass([
|
|
4384
|
-
(0,
|
|
4431
|
+
(0, import_typeorm38.Column)({ name: "end_time", type: "varchar", nullable: true })
|
|
4385
4432
|
], Timesheet.prototype, "endTime", 2);
|
|
4386
4433
|
__decorateClass([
|
|
4387
|
-
(0,
|
|
4434
|
+
(0, import_typeorm38.Column)({ name: "worked_hours", type: "varchar", nullable: true })
|
|
4388
4435
|
], Timesheet.prototype, "workedHours", 2);
|
|
4389
4436
|
__decorateClass([
|
|
4390
|
-
(0,
|
|
4437
|
+
(0, import_typeorm38.Column)({ name: "task_id", type: "integer", nullable: true })
|
|
4391
4438
|
], Timesheet.prototype, "taskId", 2);
|
|
4392
4439
|
__decorateClass([
|
|
4393
|
-
(0,
|
|
4394
|
-
(0,
|
|
4440
|
+
(0, import_typeorm38.ManyToOne)(() => Task, (task) => task.timesheets),
|
|
4441
|
+
(0, import_typeorm38.JoinColumn)({ name: "task_id" })
|
|
4395
4442
|
], Timesheet.prototype, "task", 2);
|
|
4396
4443
|
__decorateClass([
|
|
4397
|
-
(0,
|
|
4444
|
+
(0, import_typeorm38.Column)({ name: "task_name", type: "varchar", nullable: true })
|
|
4398
4445
|
], Timesheet.prototype, "taskName", 2);
|
|
4399
4446
|
__decorateClass([
|
|
4400
|
-
(0,
|
|
4447
|
+
(0, import_typeorm38.Column)({ name: "description", type: "varchar", nullable: true })
|
|
4401
4448
|
], Timesheet.prototype, "description", 2);
|
|
4402
4449
|
__decorateClass([
|
|
4403
|
-
(0,
|
|
4450
|
+
(0, import_typeorm38.Column)({ name: "week_start_date", type: "date", nullable: true })
|
|
4404
4451
|
], Timesheet.prototype, "weekStartDate", 2);
|
|
4405
4452
|
__decorateClass([
|
|
4406
|
-
(0,
|
|
4453
|
+
(0, import_typeorm38.Column)({ name: "week_end_date", type: "date", nullable: true })
|
|
4407
4454
|
], Timesheet.prototype, "weekEndDate", 2);
|
|
4408
4455
|
__decorateClass([
|
|
4409
|
-
(0,
|
|
4456
|
+
(0, import_typeorm38.Column)({ name: "rejected_at", type: "timestamp with time zone", nullable: true })
|
|
4410
4457
|
], Timesheet.prototype, "rejectedAt", 2);
|
|
4411
4458
|
__decorateClass([
|
|
4412
|
-
(0,
|
|
4459
|
+
(0, import_typeorm38.Column)({ name: "submitted_at", type: "timestamp with time zone", nullable: true })
|
|
4413
4460
|
], Timesheet.prototype, "submittedAt", 2);
|
|
4414
4461
|
__decorateClass([
|
|
4415
|
-
(0,
|
|
4462
|
+
(0, import_typeorm38.Column)({ name: "resubmiited_at", type: "timestamp with time zone", nullable: true })
|
|
4416
4463
|
], Timesheet.prototype, "resubmittedAt", 2);
|
|
4417
4464
|
__decorateClass([
|
|
4418
|
-
(0,
|
|
4465
|
+
(0, import_typeorm38.Column)({ name: "approved_at", type: "timestamp with time zone", nullable: true })
|
|
4419
4466
|
], Timesheet.prototype, "approvedAt", 2);
|
|
4420
4467
|
__decorateClass([
|
|
4421
|
-
(0,
|
|
4468
|
+
(0, import_typeorm38.Column)({ name: "status", type: "enum", enum: TimesheetStatusEnum, nullable: true })
|
|
4422
4469
|
], Timesheet.prototype, "status", 2);
|
|
4423
4470
|
__decorateClass([
|
|
4424
|
-
(0,
|
|
4471
|
+
(0, import_typeorm38.Column)({ name: "client_send_back_reason", type: "varchar", nullable: true })
|
|
4425
4472
|
], Timesheet.prototype, "clientSendBackReason", 2);
|
|
4426
4473
|
Timesheet = __decorateClass([
|
|
4427
|
-
(0,
|
|
4474
|
+
(0, import_typeorm38.Entity)("timesheets")
|
|
4428
4475
|
], Timesheet);
|
|
4429
4476
|
|
|
4430
4477
|
// src/entities/job-location.entity.ts
|
|
4431
|
-
var
|
|
4478
|
+
var import_typeorm39 = require("typeorm");
|
|
4432
4479
|
var JobLocation = class extends BaseEntity {
|
|
4433
4480
|
};
|
|
4434
4481
|
__decorateClass([
|
|
4435
|
-
(0,
|
|
4436
|
-
(0,
|
|
4482
|
+
(0, import_typeorm39.Column)({ name: "job_id", type: "integer", nullable: false }),
|
|
4483
|
+
(0, import_typeorm39.Index)()
|
|
4437
4484
|
], JobLocation.prototype, "jobId", 2);
|
|
4438
4485
|
__decorateClass([
|
|
4439
|
-
(0,
|
|
4440
|
-
(0,
|
|
4486
|
+
(0, import_typeorm39.ManyToOne)(() => Job, (job) => job.jobLocations),
|
|
4487
|
+
(0, import_typeorm39.JoinColumn)({ name: "job_id" })
|
|
4441
4488
|
], JobLocation.prototype, "job", 2);
|
|
4442
4489
|
__decorateClass([
|
|
4443
|
-
(0,
|
|
4490
|
+
(0, import_typeorm39.Column)({ name: "country_id", type: "int", nullable: false })
|
|
4444
4491
|
], JobLocation.prototype, "countryId", 2);
|
|
4445
4492
|
__decorateClass([
|
|
4446
|
-
(0,
|
|
4493
|
+
(0, import_typeorm39.Column)({ name: "country_name", type: "varchar", nullable: true })
|
|
4447
4494
|
], JobLocation.prototype, "countryName", 2);
|
|
4448
4495
|
__decorateClass([
|
|
4449
|
-
(0,
|
|
4450
|
-
(0,
|
|
4496
|
+
(0, import_typeorm39.ManyToOne)(() => Country),
|
|
4497
|
+
(0, import_typeorm39.JoinColumn)({ name: "country_id" })
|
|
4451
4498
|
], JobLocation.prototype, "country", 2);
|
|
4452
4499
|
__decorateClass([
|
|
4453
|
-
(0,
|
|
4500
|
+
(0, import_typeorm39.Column)({ name: "state_id", type: "int", nullable: false })
|
|
4454
4501
|
], JobLocation.prototype, "stateId", 2);
|
|
4455
4502
|
__decorateClass([
|
|
4456
|
-
(0,
|
|
4503
|
+
(0, import_typeorm39.Column)({ name: "state_name", type: "varchar", nullable: true })
|
|
4457
4504
|
], JobLocation.prototype, "stateName", 2);
|
|
4458
4505
|
__decorateClass([
|
|
4459
|
-
(0,
|
|
4460
|
-
(0,
|
|
4506
|
+
(0, import_typeorm39.ManyToOne)(() => State),
|
|
4507
|
+
(0, import_typeorm39.JoinColumn)({ name: "state_id" })
|
|
4461
4508
|
], JobLocation.prototype, "state", 2);
|
|
4462
4509
|
__decorateClass([
|
|
4463
|
-
(0,
|
|
4510
|
+
(0, import_typeorm39.Column)({ name: "city_id", type: "int", nullable: false })
|
|
4464
4511
|
], JobLocation.prototype, "cityId", 2);
|
|
4465
4512
|
__decorateClass([
|
|
4466
|
-
(0,
|
|
4513
|
+
(0, import_typeorm39.Column)({ name: "city_name", type: "varchar", nullable: true })
|
|
4467
4514
|
], JobLocation.prototype, "cityName", 2);
|
|
4468
4515
|
__decorateClass([
|
|
4469
|
-
(0,
|
|
4470
|
-
(0,
|
|
4516
|
+
(0, import_typeorm39.ManyToOne)(() => City),
|
|
4517
|
+
(0, import_typeorm39.JoinColumn)({ name: "city_id" })
|
|
4471
4518
|
], JobLocation.prototype, "city", 2);
|
|
4472
4519
|
__decorateClass([
|
|
4473
|
-
(0,
|
|
4520
|
+
(0, import_typeorm39.Column)({ name: "location_wise_openings", type: "int", default: 0 })
|
|
4474
4521
|
], JobLocation.prototype, "locationWiseOpenings", 2);
|
|
4475
4522
|
JobLocation = __decorateClass([
|
|
4476
|
-
(0,
|
|
4523
|
+
(0, import_typeorm39.Entity)("job_locations")
|
|
4477
4524
|
], JobLocation);
|
|
4478
4525
|
|
|
4479
4526
|
// src/entities/rating.entity.ts
|
|
4480
|
-
var
|
|
4527
|
+
var import_typeorm40 = require("typeorm");
|
|
4481
4528
|
var RatingTypeEnum = /* @__PURE__ */ ((RatingTypeEnum2) => {
|
|
4482
4529
|
RatingTypeEnum2["FREELANCER_TO_CLIENT"] = "FREELANCER_TO_CLIENT";
|
|
4483
4530
|
RatingTypeEnum2["CLIENT_TO_FREELANCER"] = "CLIENT_TO_FREELANCER";
|
|
@@ -4486,31 +4533,31 @@ var RatingTypeEnum = /* @__PURE__ */ ((RatingTypeEnum2) => {
|
|
|
4486
4533
|
var Rating = class extends BaseEntity {
|
|
4487
4534
|
};
|
|
4488
4535
|
__decorateClass([
|
|
4489
|
-
(0,
|
|
4490
|
-
(0,
|
|
4536
|
+
(0, import_typeorm40.Column)({ name: "reviewer_id", type: "integer" }),
|
|
4537
|
+
(0, import_typeorm40.Index)()
|
|
4491
4538
|
], Rating.prototype, "reviewerId", 2);
|
|
4492
4539
|
__decorateClass([
|
|
4493
|
-
(0,
|
|
4494
|
-
(0,
|
|
4540
|
+
(0, import_typeorm40.ManyToOne)(() => User, { onDelete: "CASCADE" }),
|
|
4541
|
+
(0, import_typeorm40.JoinColumn)({ name: "reviewer_id" })
|
|
4495
4542
|
], Rating.prototype, "reviewer", 2);
|
|
4496
4543
|
__decorateClass([
|
|
4497
|
-
(0,
|
|
4498
|
-
(0,
|
|
4544
|
+
(0, import_typeorm40.Column)({ name: "reviewee_id", type: "integer" }),
|
|
4545
|
+
(0, import_typeorm40.Index)()
|
|
4499
4546
|
], Rating.prototype, "revieweeId", 2);
|
|
4500
4547
|
__decorateClass([
|
|
4501
|
-
(0,
|
|
4502
|
-
(0,
|
|
4548
|
+
(0, import_typeorm40.ManyToOne)(() => User, { onDelete: "CASCADE" }),
|
|
4549
|
+
(0, import_typeorm40.JoinColumn)({ name: "reviewee_id" })
|
|
4503
4550
|
], Rating.prototype, "reviewee", 2);
|
|
4504
4551
|
__decorateClass([
|
|
4505
|
-
(0,
|
|
4506
|
-
(0,
|
|
4552
|
+
(0, import_typeorm40.Column)({ name: "job_id", type: "integer" }),
|
|
4553
|
+
(0, import_typeorm40.Index)()
|
|
4507
4554
|
], Rating.prototype, "jobId", 2);
|
|
4508
4555
|
__decorateClass([
|
|
4509
|
-
(0,
|
|
4510
|
-
(0,
|
|
4556
|
+
(0, import_typeorm40.ManyToOne)(() => Job, (job) => job.ratings, { onDelete: "CASCADE" }),
|
|
4557
|
+
(0, import_typeorm40.JoinColumn)({ name: "job_id" })
|
|
4511
4558
|
], Rating.prototype, "job", 2);
|
|
4512
4559
|
__decorateClass([
|
|
4513
|
-
(0,
|
|
4560
|
+
(0, import_typeorm40.Column)({
|
|
4514
4561
|
name: "rating_type",
|
|
4515
4562
|
type: "enum",
|
|
4516
4563
|
enum: RatingTypeEnum,
|
|
@@ -4518,67 +4565,67 @@ __decorateClass([
|
|
|
4518
4565
|
})
|
|
4519
4566
|
], Rating.prototype, "ratingType", 2);
|
|
4520
4567
|
__decorateClass([
|
|
4521
|
-
(0,
|
|
4568
|
+
(0, import_typeorm40.Column)({ name: "reviewer_comment", type: "text", nullable: true })
|
|
4522
4569
|
], Rating.prototype, "reviewerComment", 2);
|
|
4523
4570
|
__decorateClass([
|
|
4524
|
-
(0,
|
|
4571
|
+
(0, import_typeorm40.Column)({
|
|
4525
4572
|
name: "overall_experience",
|
|
4526
4573
|
type: "float",
|
|
4527
4574
|
default: 0
|
|
4528
4575
|
})
|
|
4529
4576
|
], Rating.prototype, "overAllExperience", 2);
|
|
4530
4577
|
__decorateClass([
|
|
4531
|
-
(0,
|
|
4578
|
+
(0, import_typeorm40.Column)({
|
|
4532
4579
|
name: "work_quality",
|
|
4533
4580
|
type: "float",
|
|
4534
4581
|
default: 0
|
|
4535
4582
|
})
|
|
4536
4583
|
], Rating.prototype, "workQuality", 2);
|
|
4537
4584
|
__decorateClass([
|
|
4538
|
-
(0,
|
|
4585
|
+
(0, import_typeorm40.Column)({
|
|
4539
4586
|
name: "one_time_delivery",
|
|
4540
4587
|
type: "float",
|
|
4541
4588
|
default: 0
|
|
4542
4589
|
})
|
|
4543
4590
|
], Rating.prototype, "oneTimeDelivery", 2);
|
|
4544
4591
|
__decorateClass([
|
|
4545
|
-
(0,
|
|
4592
|
+
(0, import_typeorm40.Column)({
|
|
4546
4593
|
name: "understaning",
|
|
4547
4594
|
type: "float",
|
|
4548
4595
|
default: 0
|
|
4549
4596
|
})
|
|
4550
4597
|
], Rating.prototype, "understaning", 2);
|
|
4551
4598
|
__decorateClass([
|
|
4552
|
-
(0,
|
|
4599
|
+
(0, import_typeorm40.Column)({
|
|
4553
4600
|
name: "communication",
|
|
4554
4601
|
type: "float",
|
|
4555
4602
|
default: 0
|
|
4556
4603
|
})
|
|
4557
4604
|
], Rating.prototype, "communication", 2);
|
|
4558
4605
|
__decorateClass([
|
|
4559
|
-
(0,
|
|
4606
|
+
(0, import_typeorm40.Column)({
|
|
4560
4607
|
name: "skill_utilized",
|
|
4561
4608
|
type: "float",
|
|
4562
4609
|
default: 0
|
|
4563
4610
|
})
|
|
4564
4611
|
], Rating.prototype, "skillUtilized", 2);
|
|
4565
4612
|
__decorateClass([
|
|
4566
|
-
(0,
|
|
4613
|
+
(0, import_typeorm40.Column)({ name: "communication_clarity", type: "float", default: 0 })
|
|
4567
4614
|
], Rating.prototype, "communicationClarity", 2);
|
|
4568
4615
|
__decorateClass([
|
|
4569
|
-
(0,
|
|
4616
|
+
(0, import_typeorm40.Column)({ name: "requirements_clarity", type: "float", default: 0 })
|
|
4570
4617
|
], Rating.prototype, "requirementsClarity", 2);
|
|
4571
4618
|
__decorateClass([
|
|
4572
|
-
(0,
|
|
4619
|
+
(0, import_typeorm40.Column)({ name: "responsiveness", type: "float", default: 0 })
|
|
4573
4620
|
], Rating.prototype, "responsiveness", 2);
|
|
4574
4621
|
__decorateClass([
|
|
4575
|
-
(0,
|
|
4622
|
+
(0, import_typeorm40.Column)({ name: "payment_promptness", type: "float", default: 0 })
|
|
4576
4623
|
], Rating.prototype, "paymentPromptness", 2);
|
|
4577
4624
|
__decorateClass([
|
|
4578
|
-
(0,
|
|
4625
|
+
(0, import_typeorm40.Column)({ name: "responsibilities_and_expectations", type: "float", default: 0 })
|
|
4579
4626
|
], Rating.prototype, "responsibilitiesAndExpectations", 2);
|
|
4580
4627
|
Rating = __decorateClass([
|
|
4581
|
-
(0,
|
|
4628
|
+
(0, import_typeorm40.Entity)("ratings")
|
|
4582
4629
|
], Rating);
|
|
4583
4630
|
|
|
4584
4631
|
// src/entities/job.entity.ts
|
|
@@ -4633,58 +4680,58 @@ var DurationTypeEnum = /* @__PURE__ */ ((DurationTypeEnum2) => {
|
|
|
4633
4680
|
var Job = class extends BaseEntity {
|
|
4634
4681
|
};
|
|
4635
4682
|
__decorateClass([
|
|
4636
|
-
(0,
|
|
4683
|
+
(0, import_typeorm41.Column)({ name: "job_id", type: "varchar", unique: true, nullable: true })
|
|
4637
4684
|
], Job.prototype, "jobId", 2);
|
|
4638
4685
|
// individual index to find jobs by user
|
|
4639
4686
|
__decorateClass([
|
|
4640
|
-
(0,
|
|
4641
|
-
(0,
|
|
4687
|
+
(0, import_typeorm41.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
4688
|
+
(0, import_typeorm41.Index)()
|
|
4642
4689
|
], Job.prototype, "userId", 2);
|
|
4643
4690
|
__decorateClass([
|
|
4644
|
-
(0,
|
|
4645
|
-
(0,
|
|
4691
|
+
(0, import_typeorm41.ManyToOne)(() => User, (user) => user.jobs),
|
|
4692
|
+
(0, import_typeorm41.JoinColumn)({ name: "user_id" })
|
|
4646
4693
|
], Job.prototype, "user", 2);
|
|
4647
4694
|
__decorateClass([
|
|
4648
|
-
(0,
|
|
4695
|
+
(0, import_typeorm41.Column)({ name: "country_id", type: "int", nullable: true })
|
|
4649
4696
|
], Job.prototype, "countryId", 2);
|
|
4650
4697
|
__decorateClass([
|
|
4651
|
-
(0,
|
|
4652
|
-
(0,
|
|
4698
|
+
(0, import_typeorm41.ManyToOne)(() => Country),
|
|
4699
|
+
(0, import_typeorm41.JoinColumn)({ name: "country_id" })
|
|
4653
4700
|
], Job.prototype, "country", 2);
|
|
4654
4701
|
__decorateClass([
|
|
4655
|
-
(0,
|
|
4702
|
+
(0, import_typeorm41.Column)({ name: "state_id", type: "int", nullable: true })
|
|
4656
4703
|
], Job.prototype, "stateId", 2);
|
|
4657
4704
|
__decorateClass([
|
|
4658
|
-
(0,
|
|
4659
|
-
(0,
|
|
4705
|
+
(0, import_typeorm41.ManyToOne)(() => State),
|
|
4706
|
+
(0, import_typeorm41.JoinColumn)({ name: "state_id" })
|
|
4660
4707
|
], Job.prototype, "state", 2);
|
|
4661
4708
|
__decorateClass([
|
|
4662
|
-
(0,
|
|
4709
|
+
(0, import_typeorm41.Column)({ name: "city_id", type: "int", nullable: true })
|
|
4663
4710
|
], Job.prototype, "cityId", 2);
|
|
4664
4711
|
__decorateClass([
|
|
4665
|
-
(0,
|
|
4666
|
-
(0,
|
|
4712
|
+
(0, import_typeorm41.ManyToOne)(() => City),
|
|
4713
|
+
(0, import_typeorm41.JoinColumn)({ name: "city_id" })
|
|
4667
4714
|
], Job.prototype, "city", 2);
|
|
4668
4715
|
__decorateClass([
|
|
4669
|
-
(0,
|
|
4716
|
+
(0, import_typeorm41.Column)({ name: "job_role", type: "varchar", nullable: true })
|
|
4670
4717
|
], Job.prototype, "jobRole", 2);
|
|
4671
4718
|
__decorateClass([
|
|
4672
|
-
(0,
|
|
4719
|
+
(0, import_typeorm41.Column)({ name: "job_role_canonical_name", type: "varchar", nullable: true })
|
|
4673
4720
|
], Job.prototype, "jobRoleCanonicalName", 2);
|
|
4674
4721
|
__decorateClass([
|
|
4675
|
-
(0,
|
|
4722
|
+
(0, import_typeorm41.Column)({ name: "project_name", type: "varchar", nullable: true })
|
|
4676
4723
|
], Job.prototype, "projectName", 2);
|
|
4677
4724
|
__decorateClass([
|
|
4678
|
-
(0,
|
|
4725
|
+
(0, import_typeorm41.Column)({ name: "note", type: "varchar", nullable: true })
|
|
4679
4726
|
], Job.prototype, "note", 2);
|
|
4680
4727
|
__decorateClass([
|
|
4681
|
-
(0,
|
|
4728
|
+
(0, import_typeorm41.Column)({ name: "openings", type: "integer", default: 0 })
|
|
4682
4729
|
], Job.prototype, "openings", 2);
|
|
4683
4730
|
__decorateClass([
|
|
4684
|
-
(0,
|
|
4731
|
+
(0, import_typeorm41.Column)({ name: "utilised_openings", type: "integer", default: 0 })
|
|
4685
4732
|
], Job.prototype, "utilisedOpenings", 2);
|
|
4686
4733
|
__decorateClass([
|
|
4687
|
-
(0,
|
|
4734
|
+
(0, import_typeorm41.Column)({
|
|
4688
4735
|
name: "location",
|
|
4689
4736
|
type: "enum",
|
|
4690
4737
|
enum: JobLocationEnum,
|
|
@@ -4692,7 +4739,7 @@ __decorateClass([
|
|
|
4692
4739
|
})
|
|
4693
4740
|
], Job.prototype, "location", 2);
|
|
4694
4741
|
__decorateClass([
|
|
4695
|
-
(0,
|
|
4742
|
+
(0, import_typeorm41.Column)({
|
|
4696
4743
|
name: "type_of_employment",
|
|
4697
4744
|
type: "enum",
|
|
4698
4745
|
enum: TypeOfEmploymentEnum,
|
|
@@ -4700,7 +4747,7 @@ __decorateClass([
|
|
|
4700
4747
|
})
|
|
4701
4748
|
], Job.prototype, "typeOfEmployment", 2);
|
|
4702
4749
|
__decorateClass([
|
|
4703
|
-
(0,
|
|
4750
|
+
(0, import_typeorm41.Column)({
|
|
4704
4751
|
name: "billing_cycle",
|
|
4705
4752
|
type: "enum",
|
|
4706
4753
|
enum: BillingCycleEnum,
|
|
@@ -4708,10 +4755,10 @@ __decorateClass([
|
|
|
4708
4755
|
})
|
|
4709
4756
|
], Job.prototype, "billingCycle", 2);
|
|
4710
4757
|
__decorateClass([
|
|
4711
|
-
(0,
|
|
4758
|
+
(0, import_typeorm41.Column)({ name: "academic_qualifictaion", type: "varchar", nullable: true })
|
|
4712
4759
|
], Job.prototype, "academicQualification", 2);
|
|
4713
4760
|
__decorateClass([
|
|
4714
|
-
(0,
|
|
4761
|
+
(0, import_typeorm41.Column)({
|
|
4715
4762
|
name: "type_of_experience",
|
|
4716
4763
|
type: "enum",
|
|
4717
4764
|
enum: typeOfExperienceEnum,
|
|
@@ -4719,22 +4766,22 @@ __decorateClass([
|
|
|
4719
4766
|
})
|
|
4720
4767
|
], Job.prototype, "typeOfExperience", 2);
|
|
4721
4768
|
__decorateClass([
|
|
4722
|
-
(0,
|
|
4769
|
+
(0, import_typeorm41.Column)({ name: "years_of_experience", type: "varchar", nullable: true })
|
|
4723
4770
|
], Job.prototype, "yearsOfExperience", 2);
|
|
4724
4771
|
__decorateClass([
|
|
4725
|
-
(0,
|
|
4772
|
+
(0, import_typeorm41.Column)({ name: "years_of_experience_from", type: "varchar", nullable: true })
|
|
4726
4773
|
], Job.prototype, "yearsOfExperienceFrom", 2);
|
|
4727
4774
|
__decorateClass([
|
|
4728
|
-
(0,
|
|
4775
|
+
(0, import_typeorm41.Column)({ name: "years_of_experience_to", type: "varchar", nullable: true })
|
|
4729
4776
|
], Job.prototype, "yearsOfExperienceTo", 2);
|
|
4730
4777
|
__decorateClass([
|
|
4731
|
-
(0,
|
|
4778
|
+
(0, import_typeorm41.Column)({ name: "business_industry", type: "varchar", nullable: true })
|
|
4732
4779
|
], Job.prototype, "businessIndustry", 2);
|
|
4733
4780
|
__decorateClass([
|
|
4734
|
-
(0,
|
|
4781
|
+
(0, import_typeorm41.Column)({ name: "currency", type: "varchar", default: "USD" })
|
|
4735
4782
|
], Job.prototype, "currency", 2);
|
|
4736
4783
|
__decorateClass([
|
|
4737
|
-
(0,
|
|
4784
|
+
(0, import_typeorm41.Column)({
|
|
4738
4785
|
name: "expected_salary_from",
|
|
4739
4786
|
type: "decimal",
|
|
4740
4787
|
precision: 10,
|
|
@@ -4743,14 +4790,14 @@ __decorateClass([
|
|
|
4743
4790
|
})
|
|
4744
4791
|
], Job.prototype, "expectedSalaryFrom", 2);
|
|
4745
4792
|
__decorateClass([
|
|
4746
|
-
(0,
|
|
4793
|
+
(0, import_typeorm41.Column)({
|
|
4747
4794
|
name: "hide_expected_salary_from",
|
|
4748
4795
|
type: "boolean",
|
|
4749
4796
|
default: false
|
|
4750
4797
|
})
|
|
4751
4798
|
], Job.prototype, "hideExpectedSalaryFrom", 2);
|
|
4752
4799
|
__decorateClass([
|
|
4753
|
-
(0,
|
|
4800
|
+
(0, import_typeorm41.Column)({
|
|
4754
4801
|
name: "expected_salary_to",
|
|
4755
4802
|
type: "decimal",
|
|
4756
4803
|
precision: 10,
|
|
@@ -4759,14 +4806,14 @@ __decorateClass([
|
|
|
4759
4806
|
})
|
|
4760
4807
|
], Job.prototype, "expectedSalaryTo", 2);
|
|
4761
4808
|
__decorateClass([
|
|
4762
|
-
(0,
|
|
4809
|
+
(0, import_typeorm41.Column)({
|
|
4763
4810
|
name: "hide_expected_salary_to",
|
|
4764
4811
|
type: "boolean",
|
|
4765
4812
|
default: false
|
|
4766
4813
|
})
|
|
4767
4814
|
], Job.prototype, "hideExpectedSalaryTo", 2);
|
|
4768
4815
|
__decorateClass([
|
|
4769
|
-
(0,
|
|
4816
|
+
(0, import_typeorm41.Column)({
|
|
4770
4817
|
name: "expected_annual_budget_from",
|
|
4771
4818
|
type: "decimal",
|
|
4772
4819
|
precision: 10,
|
|
@@ -4775,14 +4822,14 @@ __decorateClass([
|
|
|
4775
4822
|
})
|
|
4776
4823
|
], Job.prototype, "expectedAnnualBudgetFrom", 2);
|
|
4777
4824
|
__decorateClass([
|
|
4778
|
-
(0,
|
|
4825
|
+
(0, import_typeorm41.Column)({
|
|
4779
4826
|
name: "hide_expected_annual_budget_from",
|
|
4780
4827
|
type: "boolean",
|
|
4781
4828
|
default: false
|
|
4782
4829
|
})
|
|
4783
4830
|
], Job.prototype, "hideExpectedAnnualBudgetFrom", 2);
|
|
4784
4831
|
__decorateClass([
|
|
4785
|
-
(0,
|
|
4832
|
+
(0, import_typeorm41.Column)({
|
|
4786
4833
|
name: "expected_annual_budget_to",
|
|
4787
4834
|
type: "decimal",
|
|
4788
4835
|
precision: 10,
|
|
@@ -4791,32 +4838,32 @@ __decorateClass([
|
|
|
4791
4838
|
})
|
|
4792
4839
|
], Job.prototype, "expectedAnnualBudgetTo", 2);
|
|
4793
4840
|
__decorateClass([
|
|
4794
|
-
(0,
|
|
4841
|
+
(0, import_typeorm41.Column)({
|
|
4795
4842
|
name: "hide_expected_annual_budget_to",
|
|
4796
4843
|
type: "boolean",
|
|
4797
4844
|
default: false
|
|
4798
4845
|
})
|
|
4799
4846
|
], Job.prototype, "hideExpectedAnnualBudgetTo", 2);
|
|
4800
4847
|
__decorateClass([
|
|
4801
|
-
(0,
|
|
4848
|
+
(0, import_typeorm41.Column)({ name: "years", type: "varchar", nullable: true })
|
|
4802
4849
|
], Job.prototype, "years", 2);
|
|
4803
4850
|
__decorateClass([
|
|
4804
|
-
(0,
|
|
4851
|
+
(0, import_typeorm41.Column)({ name: "months", type: "varchar", nullable: true })
|
|
4805
4852
|
], Job.prototype, "months", 2);
|
|
4806
4853
|
__decorateClass([
|
|
4807
|
-
(0,
|
|
4854
|
+
(0, import_typeorm41.Column)({ name: "weeks", type: "varchar", nullable: true })
|
|
4808
4855
|
], Job.prototype, "weeks", 2);
|
|
4809
4856
|
__decorateClass([
|
|
4810
|
-
(0,
|
|
4857
|
+
(0, import_typeorm41.Column)({ name: "days", type: "varchar", nullable: true })
|
|
4811
4858
|
], Job.prototype, "days", 2);
|
|
4812
4859
|
__decorateClass([
|
|
4813
|
-
(0,
|
|
4860
|
+
(0, import_typeorm41.Column)({ name: "tentative_start_date", type: "date", nullable: true })
|
|
4814
4861
|
], Job.prototype, "tentativeStartDate", 2);
|
|
4815
4862
|
__decorateClass([
|
|
4816
|
-
(0,
|
|
4863
|
+
(0, import_typeorm41.Column)({ name: "tentative_end_date", type: "date", nullable: true })
|
|
4817
4864
|
], Job.prototype, "tentativeEndDate", 2);
|
|
4818
4865
|
__decorateClass([
|
|
4819
|
-
(0,
|
|
4866
|
+
(0, import_typeorm41.Column)({
|
|
4820
4867
|
name: "duration_type",
|
|
4821
4868
|
type: "enum",
|
|
4822
4869
|
enum: DurationTypeEnum,
|
|
@@ -4824,10 +4871,10 @@ __decorateClass([
|
|
|
4824
4871
|
})
|
|
4825
4872
|
], Job.prototype, "durationType", 2);
|
|
4826
4873
|
__decorateClass([
|
|
4827
|
-
(0,
|
|
4874
|
+
(0, import_typeorm41.Column)({ name: "duration", type: "varchar", nullable: true })
|
|
4828
4875
|
], Job.prototype, "duration", 2);
|
|
4829
4876
|
__decorateClass([
|
|
4830
|
-
(0,
|
|
4877
|
+
(0, import_typeorm41.Column)({
|
|
4831
4878
|
name: "number_of_hours",
|
|
4832
4879
|
type: "decimal",
|
|
4833
4880
|
precision: 4,
|
|
@@ -4836,13 +4883,13 @@ __decorateClass([
|
|
|
4836
4883
|
})
|
|
4837
4884
|
], Job.prototype, "numberOfHours", 2);
|
|
4838
4885
|
__decorateClass([
|
|
4839
|
-
(0,
|
|
4886
|
+
(0, import_typeorm41.Column)({ name: "description", type: "varchar", nullable: true })
|
|
4840
4887
|
], Job.prototype, "description", 2);
|
|
4841
4888
|
__decorateClass([
|
|
4842
|
-
(0,
|
|
4889
|
+
(0, import_typeorm41.Column)({ name: "additional_comment", type: "varchar", nullable: true })
|
|
4843
4890
|
], Job.prototype, "additionalComment", 2);
|
|
4844
4891
|
__decorateClass([
|
|
4845
|
-
(0,
|
|
4892
|
+
(0, import_typeorm41.Column)({
|
|
4846
4893
|
name: "onboarding_tat",
|
|
4847
4894
|
type: "varchar",
|
|
4848
4895
|
length: 50,
|
|
@@ -4850,17 +4897,17 @@ __decorateClass([
|
|
|
4850
4897
|
})
|
|
4851
4898
|
], Job.prototype, "onboardingTat", 2);
|
|
4852
4899
|
__decorateClass([
|
|
4853
|
-
(0,
|
|
4900
|
+
(0, import_typeorm41.Column)({
|
|
4854
4901
|
name: "candidate_communication_skills",
|
|
4855
4902
|
type: "varchar",
|
|
4856
4903
|
nullable: true
|
|
4857
4904
|
})
|
|
4858
4905
|
], Job.prototype, "candidateCommunicationSkills", 2);
|
|
4859
4906
|
__decorateClass([
|
|
4860
|
-
(0,
|
|
4907
|
+
(0, import_typeorm41.Column)({ name: "deal_breakers", type: "jsonb", nullable: true })
|
|
4861
4908
|
], Job.prototype, "dealBreakers", 2);
|
|
4862
4909
|
__decorateClass([
|
|
4863
|
-
(0,
|
|
4910
|
+
(0, import_typeorm41.Column)({
|
|
4864
4911
|
name: "step_completed",
|
|
4865
4912
|
type: "enum",
|
|
4866
4913
|
enum: Step,
|
|
@@ -4868,7 +4915,7 @@ __decorateClass([
|
|
|
4868
4915
|
})
|
|
4869
4916
|
], Job.prototype, "stepCompleted", 2);
|
|
4870
4917
|
__decorateClass([
|
|
4871
|
-
(0,
|
|
4918
|
+
(0, import_typeorm41.Column)({
|
|
4872
4919
|
name: "status",
|
|
4873
4920
|
type: "enum",
|
|
4874
4921
|
enum: JobStatusEnum,
|
|
@@ -4876,43 +4923,43 @@ __decorateClass([
|
|
|
4876
4923
|
})
|
|
4877
4924
|
], Job.prototype, "status", 2);
|
|
4878
4925
|
__decorateClass([
|
|
4879
|
-
(0,
|
|
4926
|
+
(0, import_typeorm41.Column)({ name: "viewed_count", type: "integer", default: 0 })
|
|
4880
4927
|
], Job.prototype, "viewedCount", 2);
|
|
4881
4928
|
__decorateClass([
|
|
4882
|
-
(0,
|
|
4929
|
+
(0, import_typeorm41.Column)({ name: "application_count", type: "integer", default: 0 })
|
|
4883
4930
|
], Job.prototype, "applicationCount", 2);
|
|
4884
4931
|
__decorateClass([
|
|
4885
|
-
(0,
|
|
4932
|
+
(0, import_typeorm41.Column)({ name: "is_contract_signed", type: "boolean", default: false })
|
|
4886
4933
|
], Job.prototype, "isContractSigned", 2);
|
|
4887
4934
|
__decorateClass([
|
|
4888
|
-
(0,
|
|
4935
|
+
(0, import_typeorm41.Column)({ name: "is_interview_created", type: "boolean", default: false })
|
|
4889
4936
|
], Job.prototype, "isInterviewCreated", 2);
|
|
4890
4937
|
__decorateClass([
|
|
4891
|
-
(0,
|
|
4938
|
+
(0, import_typeorm41.Column)({ name: "is_job_created_via_ai", type: "boolean", default: false })
|
|
4892
4939
|
], Job.prototype, "isJobCreatedViaAI", 2);
|
|
4893
4940
|
__decorateClass([
|
|
4894
|
-
(0,
|
|
4941
|
+
(0, import_typeorm41.OneToMany)(() => InterviewInvite, (interviewInvite) => interviewInvite.job, { cascade: true })
|
|
4895
4942
|
], Job.prototype, "interviewInvites", 2);
|
|
4896
4943
|
__decorateClass([
|
|
4897
|
-
(0,
|
|
4944
|
+
(0, import_typeorm41.OneToMany)(() => JobSkill, (jobSkill) => jobSkill.job, { cascade: true })
|
|
4898
4945
|
], Job.prototype, "jobSkills", 2);
|
|
4899
4946
|
__decorateClass([
|
|
4900
|
-
(0,
|
|
4947
|
+
(0, import_typeorm41.OneToMany)(() => JobApplication, (jobApplication) => jobApplication.job, {
|
|
4901
4948
|
cascade: true
|
|
4902
4949
|
})
|
|
4903
4950
|
], Job.prototype, "jobApplications", 2);
|
|
4904
4951
|
__decorateClass([
|
|
4905
|
-
(0,
|
|
4952
|
+
(0, import_typeorm41.OneToMany)(() => Interview, (interview) => interview.job, {
|
|
4906
4953
|
cascade: true
|
|
4907
4954
|
})
|
|
4908
4955
|
], Job.prototype, "interviews", 2);
|
|
4909
4956
|
__decorateClass([
|
|
4910
|
-
(0,
|
|
4957
|
+
(0, import_typeorm41.OneToMany)(() => F2FInterview, (f2fInterview) => f2fInterview.job, {
|
|
4911
4958
|
cascade: true
|
|
4912
4959
|
})
|
|
4913
4960
|
], Job.prototype, "f2fInterviews", 2);
|
|
4914
4961
|
__decorateClass([
|
|
4915
|
-
(0,
|
|
4962
|
+
(0, import_typeorm41.OneToMany)(
|
|
4916
4963
|
() => JobRecommendation,
|
|
4917
4964
|
(jobRecommendation) => jobRecommendation.job,
|
|
4918
4965
|
{
|
|
@@ -4921,64 +4968,64 @@ __decorateClass([
|
|
|
4921
4968
|
)
|
|
4922
4969
|
], Job.prototype, "recommendations", 2);
|
|
4923
4970
|
__decorateClass([
|
|
4924
|
-
(0,
|
|
4971
|
+
(0, import_typeorm41.OneToMany)(() => ContractSummary, (contractSummary) => contractSummary.job, {
|
|
4925
4972
|
cascade: true
|
|
4926
4973
|
})
|
|
4927
4974
|
], Job.prototype, "contractSummaries", 2);
|
|
4928
4975
|
__decorateClass([
|
|
4929
|
-
(0,
|
|
4976
|
+
(0, import_typeorm41.OneToMany)(() => Contract, (contract) => contract.job, {
|
|
4930
4977
|
cascade: true
|
|
4931
4978
|
})
|
|
4932
4979
|
], Job.prototype, "contracts", 2);
|
|
4933
4980
|
__decorateClass([
|
|
4934
|
-
(0,
|
|
4981
|
+
(0, import_typeorm41.OneToMany)(() => Hiring, (hiring) => hiring.job, {
|
|
4935
4982
|
cascade: true
|
|
4936
4983
|
})
|
|
4937
4984
|
], Job.prototype, "hirings", 2);
|
|
4938
4985
|
__decorateClass([
|
|
4939
|
-
(0,
|
|
4986
|
+
(0, import_typeorm41.OneToMany)(() => EscrowWallet, (escrowWallet) => escrowWallet.job, {
|
|
4940
4987
|
cascade: true
|
|
4941
4988
|
})
|
|
4942
4989
|
], Job.prototype, "escrowWallets", 2);
|
|
4943
4990
|
__decorateClass([
|
|
4944
|
-
(0,
|
|
4991
|
+
(0, import_typeorm41.OneToMany)(() => Timesheet, (timesheet) => timesheet.job, {
|
|
4945
4992
|
cascade: true
|
|
4946
4993
|
})
|
|
4947
4994
|
], Job.prototype, "timesheets", 2);
|
|
4948
4995
|
__decorateClass([
|
|
4949
|
-
(0,
|
|
4996
|
+
(0, import_typeorm41.OneToMany)(() => TimesheetLine, (timesheetLine) => timesheetLine.job, {
|
|
4950
4997
|
cascade: true
|
|
4951
4998
|
})
|
|
4952
4999
|
], Job.prototype, "timesheetLine", 2);
|
|
4953
5000
|
__decorateClass([
|
|
4954
|
-
(0,
|
|
5001
|
+
(0, import_typeorm41.OneToMany)(() => Invoice, (invoice) => invoice.job, {
|
|
4955
5002
|
cascade: true
|
|
4956
5003
|
})
|
|
4957
5004
|
], Job.prototype, "invoice", 2);
|
|
4958
5005
|
__decorateClass([
|
|
4959
|
-
(0,
|
|
5006
|
+
(0, import_typeorm41.OneToMany)(() => ClientCandidatePreference, (clientCandidatePreference) => clientCandidatePreference.job)
|
|
4960
5007
|
], Job.prototype, "clientCandidatePreferences", 2);
|
|
4961
5008
|
__decorateClass([
|
|
4962
|
-
(0,
|
|
5009
|
+
(0, import_typeorm41.OneToMany)(() => JobLocation, (jobLocation) => jobLocation.job, {
|
|
4963
5010
|
cascade: true
|
|
4964
5011
|
})
|
|
4965
5012
|
], Job.prototype, "jobLocations", 2);
|
|
4966
5013
|
__decorateClass([
|
|
4967
|
-
(0,
|
|
5014
|
+
(0, import_typeorm41.OneToMany)(() => Rating, (rating) => rating.job, {
|
|
4968
5015
|
cascade: true
|
|
4969
5016
|
})
|
|
4970
5017
|
], Job.prototype, "ratings", 2);
|
|
4971
5018
|
__decorateClass([
|
|
4972
|
-
(0,
|
|
5019
|
+
(0, import_typeorm41.OneToMany)(() => Task, (task) => task.job, {
|
|
4973
5020
|
cascade: true
|
|
4974
5021
|
})
|
|
4975
5022
|
], Job.prototype, "tasks", 2);
|
|
4976
5023
|
Job = __decorateClass([
|
|
4977
|
-
(0,
|
|
5024
|
+
(0, import_typeorm41.Entity)("jobs")
|
|
4978
5025
|
], Job);
|
|
4979
5026
|
|
|
4980
5027
|
// src/entities/bank-details.entity.ts
|
|
4981
|
-
var
|
|
5028
|
+
var import_typeorm42 = require("typeorm");
|
|
4982
5029
|
var BankAccountTypeEnum = /* @__PURE__ */ ((BankAccountTypeEnum2) => {
|
|
4983
5030
|
BankAccountTypeEnum2["PRIMARY"] = "PRIMARY";
|
|
4984
5031
|
BankAccountTypeEnum2["SECONDARY"] = "SECONDARY";
|
|
@@ -4993,51 +5040,51 @@ var BankDetail = class extends BaseEntity {
|
|
|
4993
5040
|
};
|
|
4994
5041
|
// individual index to find bank details by user
|
|
4995
5042
|
__decorateClass([
|
|
4996
|
-
(0,
|
|
4997
|
-
(0,
|
|
5043
|
+
(0, import_typeorm42.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
5044
|
+
(0, import_typeorm42.Index)()
|
|
4998
5045
|
], BankDetail.prototype, "userId", 2);
|
|
4999
5046
|
__decorateClass([
|
|
5000
|
-
(0,
|
|
5001
|
-
(0,
|
|
5047
|
+
(0, import_typeorm42.ManyToOne)(() => User, (user) => user.bankDetail),
|
|
5048
|
+
(0, import_typeorm42.JoinColumn)({ name: "user_id" })
|
|
5002
5049
|
], BankDetail.prototype, "user", 2);
|
|
5003
5050
|
__decorateClass([
|
|
5004
|
-
(0,
|
|
5051
|
+
(0, import_typeorm42.Column)({ name: "name", type: "varchar", nullable: true })
|
|
5005
5052
|
], BankDetail.prototype, "name", 2);
|
|
5006
5053
|
__decorateClass([
|
|
5007
|
-
(0,
|
|
5054
|
+
(0, import_typeorm42.Column)({ name: "mobile_code", type: "varchar", nullable: true })
|
|
5008
5055
|
], BankDetail.prototype, "mobileCode", 2);
|
|
5009
5056
|
__decorateClass([
|
|
5010
|
-
(0,
|
|
5057
|
+
(0, import_typeorm42.Column)({ name: "mobile", type: "varchar", nullable: true })
|
|
5011
5058
|
], BankDetail.prototype, "mobile", 2);
|
|
5012
5059
|
__decorateClass([
|
|
5013
|
-
(0,
|
|
5060
|
+
(0, import_typeorm42.Column)({ name: "email", type: "varchar" })
|
|
5014
5061
|
], BankDetail.prototype, "email", 2);
|
|
5015
5062
|
__decorateClass([
|
|
5016
|
-
(0,
|
|
5063
|
+
(0, import_typeorm42.Column)({ name: "address", type: "varchar", nullable: true })
|
|
5017
5064
|
], BankDetail.prototype, "address", 2);
|
|
5018
5065
|
__decorateClass([
|
|
5019
|
-
(0,
|
|
5066
|
+
(0, import_typeorm42.Column)({ name: "account_number", type: "varchar", unique: true, nullable: true })
|
|
5020
5067
|
], BankDetail.prototype, "accountNumber", 2);
|
|
5021
5068
|
__decorateClass([
|
|
5022
|
-
(0,
|
|
5069
|
+
(0, import_typeorm42.Column)({ name: "bank_name", type: "varchar", nullable: true })
|
|
5023
5070
|
], BankDetail.prototype, "bankName", 2);
|
|
5024
5071
|
__decorateClass([
|
|
5025
|
-
(0,
|
|
5072
|
+
(0, import_typeorm42.Column)({ name: "ifsc_code", type: "varchar", nullable: true })
|
|
5026
5073
|
], BankDetail.prototype, "ifscCode", 2);
|
|
5027
5074
|
__decorateClass([
|
|
5028
|
-
(0,
|
|
5075
|
+
(0, import_typeorm42.Column)({ name: "branch_name", type: "varchar", nullable: true })
|
|
5029
5076
|
], BankDetail.prototype, "branchName", 2);
|
|
5030
5077
|
__decorateClass([
|
|
5031
|
-
(0,
|
|
5078
|
+
(0, import_typeorm42.Column)({ name: "routing_no", type: "varchar", nullable: true })
|
|
5032
5079
|
], BankDetail.prototype, "routingNo", 2);
|
|
5033
5080
|
__decorateClass([
|
|
5034
|
-
(0,
|
|
5081
|
+
(0, import_typeorm42.Column)({ name: "aba_no", type: "varchar", nullable: true })
|
|
5035
5082
|
], BankDetail.prototype, "abaNumber", 2);
|
|
5036
5083
|
__decorateClass([
|
|
5037
|
-
(0,
|
|
5084
|
+
(0, import_typeorm42.Column)({ name: "iban", type: "varchar", nullable: true })
|
|
5038
5085
|
], BankDetail.prototype, "iban", 2);
|
|
5039
5086
|
__decorateClass([
|
|
5040
|
-
(0,
|
|
5087
|
+
(0, import_typeorm42.Column)({
|
|
5041
5088
|
name: "account_type",
|
|
5042
5089
|
type: "enum",
|
|
5043
5090
|
enum: BankAccountTypeEnum,
|
|
@@ -5045,7 +5092,7 @@ __decorateClass([
|
|
|
5045
5092
|
})
|
|
5046
5093
|
], BankDetail.prototype, "accountType", 2);
|
|
5047
5094
|
__decorateClass([
|
|
5048
|
-
(0,
|
|
5095
|
+
(0, import_typeorm42.Column)({
|
|
5049
5096
|
name: "account_scope",
|
|
5050
5097
|
type: "enum",
|
|
5051
5098
|
enum: BankAccountScopeEnum,
|
|
@@ -5053,150 +5100,150 @@ __decorateClass([
|
|
|
5053
5100
|
})
|
|
5054
5101
|
], BankDetail.prototype, "accountScope", 2);
|
|
5055
5102
|
BankDetail = __decorateClass([
|
|
5056
|
-
(0,
|
|
5103
|
+
(0, import_typeorm42.Entity)("bank_details")
|
|
5057
5104
|
], BankDetail);
|
|
5058
5105
|
|
|
5059
5106
|
// src/entities/system-preference.entity.ts
|
|
5060
|
-
var
|
|
5107
|
+
var import_typeorm43 = require("typeorm");
|
|
5061
5108
|
var SystemPreference = class extends BaseEntity {
|
|
5062
5109
|
};
|
|
5063
5110
|
// individual index to find system preference by user
|
|
5064
5111
|
__decorateClass([
|
|
5065
|
-
(0,
|
|
5066
|
-
(0,
|
|
5112
|
+
(0, import_typeorm43.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
5113
|
+
(0, import_typeorm43.Index)()
|
|
5067
5114
|
], SystemPreference.prototype, "userId", 2);
|
|
5068
5115
|
__decorateClass([
|
|
5069
|
-
(0,
|
|
5070
|
-
(0,
|
|
5116
|
+
(0, import_typeorm43.ManyToOne)(() => User, (user) => user.systemPreference),
|
|
5117
|
+
(0, import_typeorm43.JoinColumn)({ name: "user_id" })
|
|
5071
5118
|
], SystemPreference.prototype, "user", 2);
|
|
5072
5119
|
__decorateClass([
|
|
5073
|
-
(0,
|
|
5120
|
+
(0, import_typeorm43.Column)({ name: "key", type: "varchar", nullable: false })
|
|
5074
5121
|
], SystemPreference.prototype, "key", 2);
|
|
5075
5122
|
__decorateClass([
|
|
5076
|
-
(0,
|
|
5123
|
+
(0, import_typeorm43.Column)({ name: "value", type: "boolean", default: false })
|
|
5077
5124
|
], SystemPreference.prototype, "value", 2);
|
|
5078
5125
|
SystemPreference = __decorateClass([
|
|
5079
|
-
(0,
|
|
5126
|
+
(0, import_typeorm43.Entity)("system_preferences")
|
|
5080
5127
|
], SystemPreference);
|
|
5081
5128
|
|
|
5082
5129
|
// src/entities/freelancer-experience.entity.ts
|
|
5083
|
-
var
|
|
5130
|
+
var import_typeorm44 = require("typeorm");
|
|
5084
5131
|
var FreelancerExperience = class extends BaseEntity {
|
|
5085
5132
|
};
|
|
5086
5133
|
// individual index to find experence by user
|
|
5087
5134
|
__decorateClass([
|
|
5088
|
-
(0,
|
|
5089
|
-
(0,
|
|
5135
|
+
(0, import_typeorm44.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
5136
|
+
(0, import_typeorm44.Index)()
|
|
5090
5137
|
], FreelancerExperience.prototype, "userId", 2);
|
|
5091
5138
|
__decorateClass([
|
|
5092
|
-
(0,
|
|
5093
|
-
(0,
|
|
5139
|
+
(0, import_typeorm44.ManyToOne)(() => User, (user) => user.freelancerExperience),
|
|
5140
|
+
(0, import_typeorm44.JoinColumn)({ name: "user_id" })
|
|
5094
5141
|
], FreelancerExperience.prototype, "user", 2);
|
|
5095
5142
|
__decorateClass([
|
|
5096
|
-
(0,
|
|
5143
|
+
(0, import_typeorm44.Column)({ name: "company_name", type: "varchar", nullable: true })
|
|
5097
5144
|
], FreelancerExperience.prototype, "companyName", 2);
|
|
5098
5145
|
__decorateClass([
|
|
5099
|
-
(0,
|
|
5146
|
+
(0, import_typeorm44.Column)({ name: "designation", type: "varchar", nullable: true })
|
|
5100
5147
|
], FreelancerExperience.prototype, "designation", 2);
|
|
5101
5148
|
__decorateClass([
|
|
5102
|
-
(0,
|
|
5149
|
+
(0, import_typeorm44.Column)({ name: "job_duration", type: "varchar", nullable: true })
|
|
5103
5150
|
], FreelancerExperience.prototype, "jobDuration", 2);
|
|
5104
5151
|
__decorateClass([
|
|
5105
|
-
(0,
|
|
5152
|
+
(0, import_typeorm44.Column)({ name: "description", type: "varchar", nullable: true })
|
|
5106
5153
|
], FreelancerExperience.prototype, "description", 2);
|
|
5107
5154
|
FreelancerExperience = __decorateClass([
|
|
5108
|
-
(0,
|
|
5155
|
+
(0, import_typeorm44.Entity)("freelancer_experiences")
|
|
5109
5156
|
], FreelancerExperience);
|
|
5110
5157
|
|
|
5111
5158
|
// src/entities/freelancer-education.entity.ts
|
|
5112
|
-
var
|
|
5159
|
+
var import_typeorm45 = require("typeorm");
|
|
5113
5160
|
var FreelancerEducation = class extends BaseEntity {
|
|
5114
5161
|
};
|
|
5115
5162
|
// individual index to find education by user
|
|
5116
5163
|
__decorateClass([
|
|
5117
|
-
(0,
|
|
5118
|
-
(0,
|
|
5164
|
+
(0, import_typeorm45.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
5165
|
+
(0, import_typeorm45.Index)()
|
|
5119
5166
|
], FreelancerEducation.prototype, "userId", 2);
|
|
5120
5167
|
__decorateClass([
|
|
5121
|
-
(0,
|
|
5122
|
-
(0,
|
|
5168
|
+
(0, import_typeorm45.ManyToOne)(() => User, (user) => user.freelancerEducation),
|
|
5169
|
+
(0, import_typeorm45.JoinColumn)({ name: "user_id" })
|
|
5123
5170
|
], FreelancerEducation.prototype, "user", 2);
|
|
5124
5171
|
__decorateClass([
|
|
5125
|
-
(0,
|
|
5172
|
+
(0, import_typeorm45.Column)({ name: "degree", type: "varchar", nullable: true })
|
|
5126
5173
|
], FreelancerEducation.prototype, "degree", 2);
|
|
5127
5174
|
__decorateClass([
|
|
5128
|
-
(0,
|
|
5175
|
+
(0, import_typeorm45.Column)({ name: "university", type: "varchar", nullable: true })
|
|
5129
5176
|
], FreelancerEducation.prototype, "university", 2);
|
|
5130
5177
|
__decorateClass([
|
|
5131
|
-
(0,
|
|
5178
|
+
(0, import_typeorm45.Column)({ name: "year_of_graduation", type: "varchar", nullable: true })
|
|
5132
5179
|
], FreelancerEducation.prototype, "yearOfGraduation", 2);
|
|
5133
5180
|
FreelancerEducation = __decorateClass([
|
|
5134
|
-
(0,
|
|
5181
|
+
(0, import_typeorm45.Entity)("freelancer_educations")
|
|
5135
5182
|
], FreelancerEducation);
|
|
5136
5183
|
|
|
5137
5184
|
// src/entities/freelancer-project.entity.ts
|
|
5138
|
-
var
|
|
5185
|
+
var import_typeorm46 = require("typeorm");
|
|
5139
5186
|
var FreelancerProject = class extends BaseEntity {
|
|
5140
5187
|
};
|
|
5141
5188
|
// individual index to find project by user
|
|
5142
5189
|
__decorateClass([
|
|
5143
|
-
(0,
|
|
5144
|
-
(0,
|
|
5190
|
+
(0, import_typeorm46.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
5191
|
+
(0, import_typeorm46.Index)()
|
|
5145
5192
|
], FreelancerProject.prototype, "userId", 2);
|
|
5146
5193
|
__decorateClass([
|
|
5147
|
-
(0,
|
|
5148
|
-
(0,
|
|
5194
|
+
(0, import_typeorm46.ManyToOne)(() => User, (user) => user.freelancerProject),
|
|
5195
|
+
(0, import_typeorm46.JoinColumn)({ name: "user_id" })
|
|
5149
5196
|
], FreelancerProject.prototype, "user", 2);
|
|
5150
5197
|
__decorateClass([
|
|
5151
|
-
(0,
|
|
5198
|
+
(0, import_typeorm46.Column)({ name: "project_name", type: "varchar", nullable: true })
|
|
5152
5199
|
], FreelancerProject.prototype, "projectName", 2);
|
|
5153
5200
|
__decorateClass([
|
|
5154
|
-
(0,
|
|
5201
|
+
(0, import_typeorm46.Column)({ name: "start_date", type: "date", nullable: true })
|
|
5155
5202
|
], FreelancerProject.prototype, "startDate", 2);
|
|
5156
5203
|
__decorateClass([
|
|
5157
|
-
(0,
|
|
5204
|
+
(0, import_typeorm46.Column)({ name: "end_date", type: "date", nullable: true })
|
|
5158
5205
|
], FreelancerProject.prototype, "endDate", 2);
|
|
5159
5206
|
__decorateClass([
|
|
5160
|
-
(0,
|
|
5207
|
+
(0, import_typeorm46.Column)({ name: "client_name", type: "varchar", nullable: true })
|
|
5161
5208
|
], FreelancerProject.prototype, "clientName", 2);
|
|
5162
5209
|
__decorateClass([
|
|
5163
|
-
(0,
|
|
5210
|
+
(0, import_typeorm46.Column)({ name: "git_link", type: "varchar", nullable: true })
|
|
5164
5211
|
], FreelancerProject.prototype, "gitLink", 2);
|
|
5165
5212
|
__decorateClass([
|
|
5166
|
-
(0,
|
|
5213
|
+
(0, import_typeorm46.Column)({ name: "description", type: "varchar", nullable: true })
|
|
5167
5214
|
], FreelancerProject.prototype, "description", 2);
|
|
5168
5215
|
FreelancerProject = __decorateClass([
|
|
5169
|
-
(0,
|
|
5216
|
+
(0, import_typeorm46.Entity)("freelancer_projects")
|
|
5170
5217
|
], FreelancerProject);
|
|
5171
5218
|
|
|
5172
5219
|
// src/entities/freelancer-casestudy.entity.ts
|
|
5173
|
-
var
|
|
5220
|
+
var import_typeorm47 = require("typeorm");
|
|
5174
5221
|
var FreelancerCaseStudy = class extends BaseEntity {
|
|
5175
5222
|
};
|
|
5176
5223
|
// individual index to find case study by user
|
|
5177
5224
|
__decorateClass([
|
|
5178
|
-
(0,
|
|
5179
|
-
(0,
|
|
5225
|
+
(0, import_typeorm47.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
5226
|
+
(0, import_typeorm47.Index)()
|
|
5180
5227
|
], FreelancerCaseStudy.prototype, "userId", 2);
|
|
5181
5228
|
__decorateClass([
|
|
5182
|
-
(0,
|
|
5183
|
-
(0,
|
|
5229
|
+
(0, import_typeorm47.ManyToOne)(() => User, (user) => user.freelancerCaseStudy),
|
|
5230
|
+
(0, import_typeorm47.JoinColumn)({ name: "user_id" })
|
|
5184
5231
|
], FreelancerCaseStudy.prototype, "user", 2);
|
|
5185
5232
|
__decorateClass([
|
|
5186
|
-
(0,
|
|
5233
|
+
(0, import_typeorm47.Column)({ name: "project_name", type: "varchar", nullable: true })
|
|
5187
5234
|
], FreelancerCaseStudy.prototype, "projectName", 2);
|
|
5188
5235
|
__decorateClass([
|
|
5189
|
-
(0,
|
|
5236
|
+
(0, import_typeorm47.Column)({ name: "case_study_link", type: "varchar", nullable: true })
|
|
5190
5237
|
], FreelancerCaseStudy.prototype, "caseStudyLink", 2);
|
|
5191
5238
|
__decorateClass([
|
|
5192
|
-
(0,
|
|
5239
|
+
(0, import_typeorm47.Column)({ name: "description", type: "varchar", nullable: true })
|
|
5193
5240
|
], FreelancerCaseStudy.prototype, "description", 2);
|
|
5194
5241
|
FreelancerCaseStudy = __decorateClass([
|
|
5195
|
-
(0,
|
|
5242
|
+
(0, import_typeorm47.Entity)("freelancer_case_studies")
|
|
5196
5243
|
], FreelancerCaseStudy);
|
|
5197
5244
|
|
|
5198
5245
|
// src/entities/freelancer-skill.entity.ts
|
|
5199
|
-
var
|
|
5246
|
+
var import_typeorm48 = require("typeorm");
|
|
5200
5247
|
var FreelancerSkillCategoryEnum = /* @__PURE__ */ ((FreelancerSkillCategoryEnum2) => {
|
|
5201
5248
|
FreelancerSkillCategoryEnum2[FreelancerSkillCategoryEnum2["GOOD_TO_HAVE"] = 0] = "GOOD_TO_HAVE";
|
|
5202
5249
|
FreelancerSkillCategoryEnum2[FreelancerSkillCategoryEnum2["MUST_HAVE"] = 1] = "MUST_HAVE";
|
|
@@ -5206,18 +5253,18 @@ var FreelancerSkill = class extends BaseEntity {
|
|
|
5206
5253
|
};
|
|
5207
5254
|
// individual index to find core skills by user
|
|
5208
5255
|
__decorateClass([
|
|
5209
|
-
(0,
|
|
5210
|
-
(0,
|
|
5256
|
+
(0, import_typeorm48.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
5257
|
+
(0, import_typeorm48.Index)()
|
|
5211
5258
|
], FreelancerSkill.prototype, "userId", 2);
|
|
5212
5259
|
__decorateClass([
|
|
5213
|
-
(0,
|
|
5214
|
-
(0,
|
|
5260
|
+
(0, import_typeorm48.ManyToOne)(() => User, (user) => user.freelancerSkills),
|
|
5261
|
+
(0, import_typeorm48.JoinColumn)({ name: "user_id" })
|
|
5215
5262
|
], FreelancerSkill.prototype, "user", 2);
|
|
5216
5263
|
__decorateClass([
|
|
5217
|
-
(0,
|
|
5264
|
+
(0, import_typeorm48.Column)({ name: "skill_name", type: "varchar", nullable: true })
|
|
5218
5265
|
], FreelancerSkill.prototype, "skillName", 2);
|
|
5219
5266
|
__decorateClass([
|
|
5220
|
-
(0,
|
|
5267
|
+
(0, import_typeorm48.Column)({
|
|
5221
5268
|
name: "skill_category",
|
|
5222
5269
|
type: "smallint",
|
|
5223
5270
|
default: 1,
|
|
@@ -5225,51 +5272,51 @@ __decorateClass([
|
|
|
5225
5272
|
})
|
|
5226
5273
|
], FreelancerSkill.prototype, "skillCategory", 2);
|
|
5227
5274
|
FreelancerSkill = __decorateClass([
|
|
5228
|
-
(0,
|
|
5275
|
+
(0, import_typeorm48.Entity)("freelancer_skills")
|
|
5229
5276
|
], FreelancerSkill);
|
|
5230
5277
|
|
|
5231
5278
|
// src/entities/freelancer-tool.entity.ts
|
|
5232
|
-
var
|
|
5279
|
+
var import_typeorm49 = require("typeorm");
|
|
5233
5280
|
var FreelancerTool = class extends BaseEntity {
|
|
5234
5281
|
};
|
|
5235
5282
|
// individual index to find tool by user
|
|
5236
5283
|
__decorateClass([
|
|
5237
|
-
(0,
|
|
5238
|
-
(0,
|
|
5284
|
+
(0, import_typeorm49.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
5285
|
+
(0, import_typeorm49.Index)()
|
|
5239
5286
|
], FreelancerTool.prototype, "userId", 2);
|
|
5240
5287
|
__decorateClass([
|
|
5241
|
-
(0,
|
|
5242
|
-
(0,
|
|
5288
|
+
(0, import_typeorm49.ManyToOne)(() => User, (user) => user.freelancerTool),
|
|
5289
|
+
(0, import_typeorm49.JoinColumn)({ name: "user_id" })
|
|
5243
5290
|
], FreelancerTool.prototype, "user", 2);
|
|
5244
5291
|
__decorateClass([
|
|
5245
|
-
(0,
|
|
5292
|
+
(0, import_typeorm49.Column)({ name: "tool_name", type: "varchar", nullable: true })
|
|
5246
5293
|
], FreelancerTool.prototype, "toolName", 2);
|
|
5247
5294
|
FreelancerTool = __decorateClass([
|
|
5248
|
-
(0,
|
|
5295
|
+
(0, import_typeorm49.Entity)("freelancer_tools")
|
|
5249
5296
|
], FreelancerTool);
|
|
5250
5297
|
|
|
5251
5298
|
// src/entities/freelancer-framework.entity.ts
|
|
5252
|
-
var
|
|
5299
|
+
var import_typeorm50 = require("typeorm");
|
|
5253
5300
|
var FreelancerFramework = class extends BaseEntity {
|
|
5254
5301
|
};
|
|
5255
5302
|
// individual index to find framework by user
|
|
5256
5303
|
__decorateClass([
|
|
5257
|
-
(0,
|
|
5258
|
-
(0,
|
|
5304
|
+
(0, import_typeorm50.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
5305
|
+
(0, import_typeorm50.Index)()
|
|
5259
5306
|
], FreelancerFramework.prototype, "userId", 2);
|
|
5260
5307
|
__decorateClass([
|
|
5261
|
-
(0,
|
|
5262
|
-
(0,
|
|
5308
|
+
(0, import_typeorm50.ManyToOne)(() => User, (user) => user.freelancerFramework),
|
|
5309
|
+
(0, import_typeorm50.JoinColumn)({ name: "user_id" })
|
|
5263
5310
|
], FreelancerFramework.prototype, "user", 2);
|
|
5264
5311
|
__decorateClass([
|
|
5265
|
-
(0,
|
|
5312
|
+
(0, import_typeorm50.Column)({ name: "framework_name", type: "varchar", nullable: true })
|
|
5266
5313
|
], FreelancerFramework.prototype, "frameworkName", 2);
|
|
5267
5314
|
FreelancerFramework = __decorateClass([
|
|
5268
|
-
(0,
|
|
5315
|
+
(0, import_typeorm50.Entity)("freelancer_frameworks")
|
|
5269
5316
|
], FreelancerFramework);
|
|
5270
5317
|
|
|
5271
5318
|
// src/entities/freelancer-assessment.entity.ts
|
|
5272
|
-
var
|
|
5319
|
+
var import_typeorm51 = require("typeorm");
|
|
5273
5320
|
var AssessmentStatusEnum = /* @__PURE__ */ ((AssessmentStatusEnum2) => {
|
|
5274
5321
|
AssessmentStatusEnum2["NOT_ATTEMPTED"] = "NOT_ATTEMPTED";
|
|
5275
5322
|
AssessmentStatusEnum2["ACTIVE"] = "ACTIVE";
|
|
@@ -5286,33 +5333,33 @@ var AssessmentStatusEnum = /* @__PURE__ */ ((AssessmentStatusEnum2) => {
|
|
|
5286
5333
|
var FreelancerAssessment = class extends BaseEntity {
|
|
5287
5334
|
};
|
|
5288
5335
|
__decorateClass([
|
|
5289
|
-
(0,
|
|
5290
|
-
(0,
|
|
5336
|
+
(0, import_typeorm51.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
5337
|
+
(0, import_typeorm51.Index)()
|
|
5291
5338
|
], FreelancerAssessment.prototype, "userId", 2);
|
|
5292
5339
|
__decorateClass([
|
|
5293
|
-
(0,
|
|
5294
|
-
(0,
|
|
5340
|
+
(0, import_typeorm51.ManyToOne)(() => User, (user) => user.assessments),
|
|
5341
|
+
(0, import_typeorm51.JoinColumn)({ name: "user_id" })
|
|
5295
5342
|
], FreelancerAssessment.prototype, "user", 2);
|
|
5296
5343
|
__decorateClass([
|
|
5297
|
-
(0,
|
|
5344
|
+
(0, import_typeorm51.Column)({ name: "interview_id", type: "varchar", nullable: true })
|
|
5298
5345
|
], FreelancerAssessment.prototype, "interviewId", 2);
|
|
5299
5346
|
__decorateClass([
|
|
5300
|
-
(0,
|
|
5347
|
+
(0, import_typeorm51.Column)({ name: "interview_link", type: "text", nullable: true })
|
|
5301
5348
|
], FreelancerAssessment.prototype, "interviewLink", 2);
|
|
5302
5349
|
__decorateClass([
|
|
5303
|
-
(0,
|
|
5350
|
+
(0, import_typeorm51.Column)({ name: "recording_link", type: "text", nullable: true })
|
|
5304
5351
|
], FreelancerAssessment.prototype, "recordingLink", 2);
|
|
5305
5352
|
__decorateClass([
|
|
5306
|
-
(0,
|
|
5353
|
+
(0, import_typeorm51.Column)({ name: "iframe_response", type: "jsonb", nullable: true })
|
|
5307
5354
|
], FreelancerAssessment.prototype, "iframeResponse", 2);
|
|
5308
5355
|
__decorateClass([
|
|
5309
|
-
(0,
|
|
5356
|
+
(0, import_typeorm51.Column)({ name: "interview_summary", type: "jsonb", nullable: true })
|
|
5310
5357
|
], FreelancerAssessment.prototype, "interviewSummary", 2);
|
|
5311
5358
|
__decorateClass([
|
|
5312
|
-
(0,
|
|
5359
|
+
(0, import_typeorm51.Column)({ name: "score", type: "float", nullable: true })
|
|
5313
5360
|
], FreelancerAssessment.prototype, "score", 2);
|
|
5314
5361
|
__decorateClass([
|
|
5315
|
-
(0,
|
|
5362
|
+
(0, import_typeorm51.Column)({
|
|
5316
5363
|
name: "status",
|
|
5317
5364
|
type: "enum",
|
|
5318
5365
|
enum: AssessmentStatusEnum,
|
|
@@ -5320,17 +5367,17 @@ __decorateClass([
|
|
|
5320
5367
|
})
|
|
5321
5368
|
], FreelancerAssessment.prototype, "status", 2);
|
|
5322
5369
|
__decorateClass([
|
|
5323
|
-
(0,
|
|
5370
|
+
(0, import_typeorm51.Column)({ name: "task_id", type: "varchar", nullable: true })
|
|
5324
5371
|
], FreelancerAssessment.prototype, "taskId", 2);
|
|
5325
5372
|
__decorateClass([
|
|
5326
|
-
(0,
|
|
5373
|
+
(0, import_typeorm51.Column)({ name: "meta_data", type: "jsonb", nullable: true })
|
|
5327
5374
|
], FreelancerAssessment.prototype, "metaData", 2);
|
|
5328
5375
|
FreelancerAssessment = __decorateClass([
|
|
5329
|
-
(0,
|
|
5376
|
+
(0, import_typeorm51.Entity)("freelancer_assessments")
|
|
5330
5377
|
], FreelancerAssessment);
|
|
5331
5378
|
|
|
5332
5379
|
// src/entities/freelancer-declaration.entity.ts
|
|
5333
|
-
var
|
|
5380
|
+
var import_typeorm52 = require("typeorm");
|
|
5334
5381
|
var DocumentType = /* @__PURE__ */ ((DocumentType2) => {
|
|
5335
5382
|
DocumentType2["AADHAAR"] = "AADHAAR_CARD";
|
|
5336
5383
|
DocumentType2["PASSPORT"] = "PASSPORT";
|
|
@@ -5342,15 +5389,15 @@ var FreelancerDeclaration = class extends BaseEntity {
|
|
|
5342
5389
|
};
|
|
5343
5390
|
// individual index to find declaration by user
|
|
5344
5391
|
__decorateClass([
|
|
5345
|
-
(0,
|
|
5346
|
-
(0,
|
|
5392
|
+
(0, import_typeorm52.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
5393
|
+
(0, import_typeorm52.Index)()
|
|
5347
5394
|
], FreelancerDeclaration.prototype, "userId", 2);
|
|
5348
5395
|
__decorateClass([
|
|
5349
|
-
(0,
|
|
5350
|
-
(0,
|
|
5396
|
+
(0, import_typeorm52.ManyToOne)(() => User, (user) => user.freelancerDeclaration),
|
|
5397
|
+
(0, import_typeorm52.JoinColumn)({ name: "user_id" })
|
|
5351
5398
|
], FreelancerDeclaration.prototype, "user", 2);
|
|
5352
5399
|
__decorateClass([
|
|
5353
|
-
(0,
|
|
5400
|
+
(0, import_typeorm52.Column)({
|
|
5354
5401
|
name: "document_type",
|
|
5355
5402
|
type: "enum",
|
|
5356
5403
|
enum: DocumentType,
|
|
@@ -5358,147 +5405,147 @@ __decorateClass([
|
|
|
5358
5405
|
})
|
|
5359
5406
|
], FreelancerDeclaration.prototype, "documentType", 2);
|
|
5360
5407
|
__decorateClass([
|
|
5361
|
-
(0,
|
|
5408
|
+
(0, import_typeorm52.Column)({ name: "front_document_url", type: "varchar", nullable: true })
|
|
5362
5409
|
], FreelancerDeclaration.prototype, "frontDocumentUrl", 2);
|
|
5363
5410
|
__decorateClass([
|
|
5364
|
-
(0,
|
|
5411
|
+
(0, import_typeorm52.Column)({ name: "back_document_url", type: "varchar", nullable: true })
|
|
5365
5412
|
], FreelancerDeclaration.prototype, "backDocumentUrl", 2);
|
|
5366
5413
|
__decorateClass([
|
|
5367
|
-
(0,
|
|
5414
|
+
(0, import_typeorm52.Column)({ name: "declaration_accepted", type: "boolean", default: false })
|
|
5368
5415
|
], FreelancerDeclaration.prototype, "declarationAccepted", 2);
|
|
5369
5416
|
__decorateClass([
|
|
5370
|
-
(0,
|
|
5417
|
+
(0, import_typeorm52.Column)({ name: "digital_signature_url", type: "varchar", nullable: true })
|
|
5371
5418
|
], FreelancerDeclaration.prototype, "digitalSignatureUrl", 2);
|
|
5372
5419
|
FreelancerDeclaration = __decorateClass([
|
|
5373
|
-
(0,
|
|
5420
|
+
(0, import_typeorm52.Entity)("freelancer_declaration")
|
|
5374
5421
|
], FreelancerDeclaration);
|
|
5375
5422
|
|
|
5376
5423
|
// src/entities/company-members-roles.entity.ts
|
|
5377
|
-
var
|
|
5424
|
+
var import_typeorm56 = require("typeorm");
|
|
5378
5425
|
|
|
5379
5426
|
// src/entities/company-role.entity.ts
|
|
5380
|
-
var
|
|
5427
|
+
var import_typeorm55 = require("typeorm");
|
|
5381
5428
|
|
|
5382
5429
|
// src/entities/company-role-permission.entity.ts
|
|
5383
|
-
var
|
|
5430
|
+
var import_typeorm54 = require("typeorm");
|
|
5384
5431
|
|
|
5385
5432
|
// src/entities/permission.entity.ts
|
|
5386
|
-
var
|
|
5433
|
+
var import_typeorm53 = require("typeorm");
|
|
5387
5434
|
var Permission = class extends BaseEntity {
|
|
5388
5435
|
};
|
|
5389
5436
|
__decorateClass([
|
|
5390
|
-
(0,
|
|
5437
|
+
(0, import_typeorm53.Column)({ name: "name", type: "varchar", nullable: true })
|
|
5391
5438
|
], Permission.prototype, "name", 2);
|
|
5392
5439
|
__decorateClass([
|
|
5393
|
-
(0,
|
|
5394
|
-
(0,
|
|
5440
|
+
(0, import_typeorm53.Column)({ name: "slug", type: "varchar", nullable: true, unique: true }),
|
|
5441
|
+
(0, import_typeorm53.Index)()
|
|
5395
5442
|
], Permission.prototype, "slug", 2);
|
|
5396
5443
|
__decorateClass([
|
|
5397
|
-
(0,
|
|
5444
|
+
(0, import_typeorm53.Column)({ name: "description", type: "text", nullable: true })
|
|
5398
5445
|
], Permission.prototype, "description", 2);
|
|
5399
5446
|
__decorateClass([
|
|
5400
|
-
(0,
|
|
5447
|
+
(0, import_typeorm53.Column)({ name: "module", type: "varchar", nullable: true })
|
|
5401
5448
|
], Permission.prototype, "module", 2);
|
|
5402
5449
|
__decorateClass([
|
|
5403
|
-
(0,
|
|
5450
|
+
(0, import_typeorm53.Column)({ name: "is_active", type: "boolean", default: true })
|
|
5404
5451
|
], Permission.prototype, "isActive", 2);
|
|
5405
5452
|
Permission = __decorateClass([
|
|
5406
|
-
(0,
|
|
5453
|
+
(0, import_typeorm53.Entity)("permissions")
|
|
5407
5454
|
], Permission);
|
|
5408
5455
|
|
|
5409
5456
|
// src/entities/company-role-permission.entity.ts
|
|
5410
5457
|
var CompanyRolePermission = class extends BaseEntity {
|
|
5411
5458
|
};
|
|
5412
5459
|
__decorateClass([
|
|
5413
|
-
(0,
|
|
5414
|
-
(0,
|
|
5460
|
+
(0, import_typeorm54.Column)({ name: "company_role_id", type: "integer", nullable: true }),
|
|
5461
|
+
(0, import_typeorm54.Index)()
|
|
5415
5462
|
], CompanyRolePermission.prototype, "companyRoleId", 2);
|
|
5416
5463
|
__decorateClass([
|
|
5417
|
-
(0,
|
|
5464
|
+
(0, import_typeorm54.ManyToOne)(() => CompanyRole, (role) => role.rolePermissions, {
|
|
5418
5465
|
onDelete: "CASCADE"
|
|
5419
5466
|
}),
|
|
5420
|
-
(0,
|
|
5467
|
+
(0, import_typeorm54.JoinColumn)({ name: "company_role_id" })
|
|
5421
5468
|
], CompanyRolePermission.prototype, "companyRole", 2);
|
|
5422
5469
|
__decorateClass([
|
|
5423
|
-
(0,
|
|
5424
|
-
(0,
|
|
5470
|
+
(0, import_typeorm54.Column)({ name: "permission_id", type: "integer" }),
|
|
5471
|
+
(0, import_typeorm54.Index)()
|
|
5425
5472
|
], CompanyRolePermission.prototype, "permissionId", 2);
|
|
5426
5473
|
__decorateClass([
|
|
5427
|
-
(0,
|
|
5428
|
-
(0,
|
|
5474
|
+
(0, import_typeorm54.ManyToOne)(() => Permission, { onDelete: "CASCADE" }),
|
|
5475
|
+
(0, import_typeorm54.JoinColumn)({ name: "permission_id" })
|
|
5429
5476
|
], CompanyRolePermission.prototype, "permission", 2);
|
|
5430
5477
|
__decorateClass([
|
|
5431
|
-
(0,
|
|
5478
|
+
(0, import_typeorm54.Column)({ name: "assigned_by", type: "integer", nullable: true })
|
|
5432
5479
|
], CompanyRolePermission.prototype, "assignedBy", 2);
|
|
5433
5480
|
CompanyRolePermission = __decorateClass([
|
|
5434
|
-
(0,
|
|
5481
|
+
(0, import_typeorm54.Entity)("company_role_permissions")
|
|
5435
5482
|
], CompanyRolePermission);
|
|
5436
5483
|
|
|
5437
5484
|
// src/entities/company-role.entity.ts
|
|
5438
5485
|
var CompanyRole = class extends BaseEntity {
|
|
5439
5486
|
};
|
|
5440
5487
|
__decorateClass([
|
|
5441
|
-
(0,
|
|
5442
|
-
(0,
|
|
5488
|
+
(0, import_typeorm55.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
5489
|
+
(0, import_typeorm55.Index)()
|
|
5443
5490
|
], CompanyRole.prototype, "userId", 2);
|
|
5444
5491
|
__decorateClass([
|
|
5445
|
-
(0,
|
|
5446
|
-
(0,
|
|
5492
|
+
(0, import_typeorm55.ManyToOne)(() => User, (user) => user.otps),
|
|
5493
|
+
(0, import_typeorm55.JoinColumn)({ name: "user_id" })
|
|
5447
5494
|
], CompanyRole.prototype, "user", 2);
|
|
5448
5495
|
__decorateClass([
|
|
5449
|
-
(0,
|
|
5496
|
+
(0, import_typeorm55.Column)({ name: "name", type: "varchar" })
|
|
5450
5497
|
], CompanyRole.prototype, "name", 2);
|
|
5451
5498
|
__decorateClass([
|
|
5452
|
-
(0,
|
|
5453
|
-
(0,
|
|
5499
|
+
(0, import_typeorm55.Column)({ name: "slug", type: "varchar", nullable: true, unique: true }),
|
|
5500
|
+
(0, import_typeorm55.Index)()
|
|
5454
5501
|
], CompanyRole.prototype, "slug", 2);
|
|
5455
5502
|
__decorateClass([
|
|
5456
|
-
(0,
|
|
5503
|
+
(0, import_typeorm55.Column)({ name: "description", type: "text", nullable: true })
|
|
5457
5504
|
], CompanyRole.prototype, "description", 2);
|
|
5458
5505
|
__decorateClass([
|
|
5459
|
-
(0,
|
|
5506
|
+
(0, import_typeorm55.Column)({ name: "is_active", type: "boolean", default: true })
|
|
5460
5507
|
], CompanyRole.prototype, "isActive", 2);
|
|
5461
5508
|
__decorateClass([
|
|
5462
|
-
(0,
|
|
5509
|
+
(0, import_typeorm55.OneToMany)(() => CompanyRolePermission, (rp) => rp.companyRole)
|
|
5463
5510
|
], CompanyRole.prototype, "rolePermissions", 2);
|
|
5464
5511
|
CompanyRole = __decorateClass([
|
|
5465
|
-
(0,
|
|
5512
|
+
(0, import_typeorm55.Entity)("company_roles")
|
|
5466
5513
|
], CompanyRole);
|
|
5467
5514
|
|
|
5468
5515
|
// src/entities/company-members-roles.entity.ts
|
|
5469
5516
|
var CompanyMemberRole = class extends BaseEntity {
|
|
5470
5517
|
};
|
|
5471
5518
|
__decorateClass([
|
|
5472
|
-
(0,
|
|
5473
|
-
(0,
|
|
5519
|
+
(0, import_typeorm56.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
5520
|
+
(0, import_typeorm56.Index)()
|
|
5474
5521
|
], CompanyMemberRole.prototype, "userId", 2);
|
|
5475
5522
|
__decorateClass([
|
|
5476
|
-
(0,
|
|
5477
|
-
(0,
|
|
5523
|
+
(0, import_typeorm56.ManyToOne)(() => User),
|
|
5524
|
+
(0, import_typeorm56.JoinColumn)({ name: "user_id" })
|
|
5478
5525
|
], CompanyMemberRole.prototype, "user", 2);
|
|
5479
5526
|
__decorateClass([
|
|
5480
|
-
(0,
|
|
5481
|
-
(0,
|
|
5527
|
+
(0, import_typeorm56.ManyToOne)(() => CompanyRole),
|
|
5528
|
+
(0, import_typeorm56.JoinColumn)({ name: "company_role_id" })
|
|
5482
5529
|
], CompanyMemberRole.prototype, "role", 2);
|
|
5483
5530
|
__decorateClass([
|
|
5484
|
-
(0,
|
|
5485
|
-
(0,
|
|
5531
|
+
(0, import_typeorm56.Column)({ name: "company_role_id", type: "integer", nullable: true }),
|
|
5532
|
+
(0, import_typeorm56.Index)()
|
|
5486
5533
|
], CompanyMemberRole.prototype, "companyRoleId", 2);
|
|
5487
5534
|
__decorateClass([
|
|
5488
|
-
(0,
|
|
5535
|
+
(0, import_typeorm56.Column)({ name: "assigned_by", type: "integer", nullable: true })
|
|
5489
5536
|
], CompanyMemberRole.prototype, "assignedBy", 2);
|
|
5490
5537
|
CompanyMemberRole = __decorateClass([
|
|
5491
|
-
(0,
|
|
5538
|
+
(0, import_typeorm56.Entity)("company_member_roles")
|
|
5492
5539
|
], CompanyMemberRole);
|
|
5493
5540
|
|
|
5494
5541
|
// src/entities/assessment-answer.entity.ts
|
|
5495
|
-
var
|
|
5542
|
+
var import_typeorm59 = require("typeorm");
|
|
5496
5543
|
|
|
5497
5544
|
// src/entities/assessment-question.entity.ts
|
|
5498
|
-
var
|
|
5545
|
+
var import_typeorm58 = require("typeorm");
|
|
5499
5546
|
|
|
5500
5547
|
// src/entities/assessment-question-option.entity.ts
|
|
5501
|
-
var
|
|
5548
|
+
var import_typeorm57 = require("typeorm");
|
|
5502
5549
|
var AnswerTypeEnum = /* @__PURE__ */ ((AnswerTypeEnum2) => {
|
|
5503
5550
|
AnswerTypeEnum2["CORRECT"] = "CORRECT";
|
|
5504
5551
|
AnswerTypeEnum2["ACCEPTABLE"] = "ACCEPTABLE";
|
|
@@ -5508,21 +5555,21 @@ var AnswerTypeEnum = /* @__PURE__ */ ((AnswerTypeEnum2) => {
|
|
|
5508
5555
|
var AssessmetQuestionOption = class extends BaseEntity {
|
|
5509
5556
|
};
|
|
5510
5557
|
__decorateClass([
|
|
5511
|
-
(0,
|
|
5512
|
-
(0,
|
|
5558
|
+
(0, import_typeorm57.Column)({ name: "question_id", type: "integer", nullable: true }),
|
|
5559
|
+
(0, import_typeorm57.Index)()
|
|
5513
5560
|
], AssessmetQuestionOption.prototype, "questionId", 2);
|
|
5514
5561
|
__decorateClass([
|
|
5515
|
-
(0,
|
|
5562
|
+
(0, import_typeorm57.ManyToOne)(
|
|
5516
5563
|
() => AssessmetQuestion,
|
|
5517
5564
|
(assessmentQuestion) => assessmentQuestion.options
|
|
5518
5565
|
),
|
|
5519
|
-
(0,
|
|
5566
|
+
(0, import_typeorm57.JoinColumn)({ name: "question_id" })
|
|
5520
5567
|
], AssessmetQuestionOption.prototype, "question", 2);
|
|
5521
5568
|
__decorateClass([
|
|
5522
|
-
(0,
|
|
5569
|
+
(0, import_typeorm57.Column)({ name: "text", type: "varchar", nullable: true })
|
|
5523
5570
|
], AssessmetQuestionOption.prototype, "text", 2);
|
|
5524
5571
|
__decorateClass([
|
|
5525
|
-
(0,
|
|
5572
|
+
(0, import_typeorm57.Column)({
|
|
5526
5573
|
name: "answer_type",
|
|
5527
5574
|
type: "enum",
|
|
5528
5575
|
enum: AnswerTypeEnum,
|
|
@@ -5530,13 +5577,13 @@ __decorateClass([
|
|
|
5530
5577
|
})
|
|
5531
5578
|
], AssessmetQuestionOption.prototype, "answerType", 2);
|
|
5532
5579
|
__decorateClass([
|
|
5533
|
-
(0,
|
|
5580
|
+
(0, import_typeorm57.Column)({ name: "is_active", type: "boolean", default: true })
|
|
5534
5581
|
], AssessmetQuestionOption.prototype, "isActive", 2);
|
|
5535
5582
|
__decorateClass([
|
|
5536
|
-
(0,
|
|
5583
|
+
(0, import_typeorm57.OneToMany)(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.option)
|
|
5537
5584
|
], AssessmetQuestionOption.prototype, "selectedOptions", 2);
|
|
5538
5585
|
AssessmetQuestionOption = __decorateClass([
|
|
5539
|
-
(0,
|
|
5586
|
+
(0, import_typeorm57.Entity)("assessment_question_options")
|
|
5540
5587
|
], AssessmetQuestionOption);
|
|
5541
5588
|
|
|
5542
5589
|
// src/entities/assessment-question.entity.ts
|
|
@@ -5548,10 +5595,10 @@ var QuestionForEnum = /* @__PURE__ */ ((QuestionForEnum2) => {
|
|
|
5548
5595
|
var AssessmetQuestion = class extends BaseEntity {
|
|
5549
5596
|
};
|
|
5550
5597
|
__decorateClass([
|
|
5551
|
-
(0,
|
|
5598
|
+
(0, import_typeorm58.Column)({ name: "text", type: "varchar", nullable: true })
|
|
5552
5599
|
], AssessmetQuestion.prototype, "text", 2);
|
|
5553
5600
|
__decorateClass([
|
|
5554
|
-
(0,
|
|
5601
|
+
(0, import_typeorm58.Column)({
|
|
5555
5602
|
name: "question_for",
|
|
5556
5603
|
type: "enum",
|
|
5557
5604
|
enum: QuestionForEnum,
|
|
@@ -5559,24 +5606,24 @@ __decorateClass([
|
|
|
5559
5606
|
})
|
|
5560
5607
|
], AssessmetQuestion.prototype, "questionFor", 2);
|
|
5561
5608
|
__decorateClass([
|
|
5562
|
-
(0,
|
|
5609
|
+
(0, import_typeorm58.Column)({ name: "is_active", type: "boolean", default: true })
|
|
5563
5610
|
], AssessmetQuestion.prototype, "isActive", 2);
|
|
5564
5611
|
__decorateClass([
|
|
5565
|
-
(0,
|
|
5566
|
-
(0,
|
|
5612
|
+
(0, import_typeorm58.Column)({ name: "candidate_id", type: "integer", nullable: true }),
|
|
5613
|
+
(0, import_typeorm58.Index)()
|
|
5567
5614
|
], AssessmetQuestion.prototype, "candidateId", 2);
|
|
5568
5615
|
__decorateClass([
|
|
5569
|
-
(0,
|
|
5570
|
-
(0,
|
|
5616
|
+
(0, import_typeorm58.ManyToOne)(() => User, (user) => user.freelancerMcq, { nullable: true }),
|
|
5617
|
+
(0, import_typeorm58.JoinColumn)({ name: "candidate_id" })
|
|
5571
5618
|
], AssessmetQuestion.prototype, "candidate", 2);
|
|
5572
5619
|
__decorateClass([
|
|
5573
|
-
(0,
|
|
5620
|
+
(0, import_typeorm58.OneToMany)(() => AssessmetQuestionOption, (assessmentQuestionOption) => assessmentQuestionOption.question)
|
|
5574
5621
|
], AssessmetQuestion.prototype, "options", 2);
|
|
5575
5622
|
__decorateClass([
|
|
5576
|
-
(0,
|
|
5623
|
+
(0, import_typeorm58.OneToMany)(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.question)
|
|
5577
5624
|
], AssessmetQuestion.prototype, "answers", 2);
|
|
5578
5625
|
AssessmetQuestion = __decorateClass([
|
|
5579
|
-
(0,
|
|
5626
|
+
(0, import_typeorm58.Entity)("assessment_questions")
|
|
5580
5627
|
], AssessmetQuestion);
|
|
5581
5628
|
|
|
5582
5629
|
// src/entities/assessment-answer.entity.ts
|
|
@@ -5589,118 +5636,118 @@ var SelectedAnswerTypeEnum = /* @__PURE__ */ ((SelectedAnswerTypeEnum2) => {
|
|
|
5589
5636
|
var AssessmentAnswer = class extends BaseEntity {
|
|
5590
5637
|
};
|
|
5591
5638
|
__decorateClass([
|
|
5592
|
-
(0,
|
|
5593
|
-
(0,
|
|
5639
|
+
(0, import_typeorm59.Column)({ name: "user_id", type: "integer" }),
|
|
5640
|
+
(0, import_typeorm59.Index)()
|
|
5594
5641
|
], AssessmentAnswer.prototype, "userId", 2);
|
|
5595
5642
|
__decorateClass([
|
|
5596
|
-
(0,
|
|
5597
|
-
(0,
|
|
5643
|
+
(0, import_typeorm59.ManyToOne)(() => User, (user) => user.assessmentAnswers),
|
|
5644
|
+
(0, import_typeorm59.JoinColumn)({ name: "user_id" })
|
|
5598
5645
|
], AssessmentAnswer.prototype, "user", 2);
|
|
5599
5646
|
__decorateClass([
|
|
5600
|
-
(0,
|
|
5601
|
-
(0,
|
|
5647
|
+
(0, import_typeorm59.Column)({ name: "question_id", type: "integer" }),
|
|
5648
|
+
(0, import_typeorm59.Index)()
|
|
5602
5649
|
], AssessmentAnswer.prototype, "questionId", 2);
|
|
5603
5650
|
__decorateClass([
|
|
5604
|
-
(0,
|
|
5651
|
+
(0, import_typeorm59.ManyToOne)(
|
|
5605
5652
|
() => AssessmetQuestion,
|
|
5606
5653
|
(assessmentQuestion) => assessmentQuestion.answers
|
|
5607
5654
|
),
|
|
5608
|
-
(0,
|
|
5655
|
+
(0, import_typeorm59.JoinColumn)({ name: "question_id" })
|
|
5609
5656
|
], AssessmentAnswer.prototype, "question", 2);
|
|
5610
5657
|
__decorateClass([
|
|
5611
|
-
(0,
|
|
5612
|
-
(0,
|
|
5658
|
+
(0, import_typeorm59.Column)({ name: "selected_option_id", type: "integer" }),
|
|
5659
|
+
(0, import_typeorm59.Index)()
|
|
5613
5660
|
], AssessmentAnswer.prototype, "selectedOptionId", 2);
|
|
5614
5661
|
__decorateClass([
|
|
5615
|
-
(0,
|
|
5662
|
+
(0, import_typeorm59.ManyToOne)(
|
|
5616
5663
|
() => AssessmetQuestionOption,
|
|
5617
5664
|
(assessmentQuestionOption) => assessmentQuestionOption.selectedOptions
|
|
5618
5665
|
),
|
|
5619
|
-
(0,
|
|
5666
|
+
(0, import_typeorm59.JoinColumn)({ name: "selected_option_id" })
|
|
5620
5667
|
], AssessmentAnswer.prototype, "option", 2);
|
|
5621
5668
|
__decorateClass([
|
|
5622
|
-
(0,
|
|
5669
|
+
(0, import_typeorm59.Column)({
|
|
5623
5670
|
name: "selected_answer_type",
|
|
5624
5671
|
type: "enum",
|
|
5625
5672
|
enum: SelectedAnswerTypeEnum
|
|
5626
5673
|
})
|
|
5627
5674
|
], AssessmentAnswer.prototype, "selectedAnswerType", 2);
|
|
5628
5675
|
__decorateClass([
|
|
5629
|
-
(0,
|
|
5676
|
+
(0, import_typeorm59.Column)({ name: "score", type: "float" })
|
|
5630
5677
|
], AssessmentAnswer.prototype, "score", 2);
|
|
5631
5678
|
AssessmentAnswer = __decorateClass([
|
|
5632
|
-
(0,
|
|
5679
|
+
(0, import_typeorm59.Entity)("assessment_answers")
|
|
5633
5680
|
], AssessmentAnswer);
|
|
5634
5681
|
|
|
5635
5682
|
// src/entities/company-skill.entity.ts
|
|
5636
|
-
var
|
|
5683
|
+
var import_typeorm60 = require("typeorm");
|
|
5637
5684
|
var CompanySkill = class extends BaseEntity {
|
|
5638
5685
|
};
|
|
5639
5686
|
// individual index to find core skills by user
|
|
5640
5687
|
__decorateClass([
|
|
5641
|
-
(0,
|
|
5642
|
-
(0,
|
|
5688
|
+
(0, import_typeorm60.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
5689
|
+
(0, import_typeorm60.Index)()
|
|
5643
5690
|
], CompanySkill.prototype, "userId", 2);
|
|
5644
5691
|
__decorateClass([
|
|
5645
|
-
(0,
|
|
5646
|
-
(0,
|
|
5692
|
+
(0, import_typeorm60.ManyToOne)(() => User, (user) => user.companySkills),
|
|
5693
|
+
(0, import_typeorm60.JoinColumn)({ name: "user_id" })
|
|
5647
5694
|
], CompanySkill.prototype, "user", 2);
|
|
5648
5695
|
__decorateClass([
|
|
5649
|
-
(0,
|
|
5696
|
+
(0, import_typeorm60.Column)({ name: "skill_name", type: "varchar", nullable: true })
|
|
5650
5697
|
], CompanySkill.prototype, "skillName", 2);
|
|
5651
5698
|
CompanySkill = __decorateClass([
|
|
5652
|
-
(0,
|
|
5699
|
+
(0, import_typeorm60.Entity)("company_skills")
|
|
5653
5700
|
], CompanySkill);
|
|
5654
5701
|
|
|
5655
5702
|
// src/entities/admin-user-role.entity.ts
|
|
5656
|
-
var
|
|
5703
|
+
var import_typeorm64 = require("typeorm");
|
|
5657
5704
|
|
|
5658
5705
|
// src/entities/admin-role.entity.ts
|
|
5659
|
-
var
|
|
5706
|
+
var import_typeorm63 = require("typeorm");
|
|
5660
5707
|
|
|
5661
5708
|
// src/entities/admin-role-permission.entity.ts
|
|
5662
|
-
var
|
|
5709
|
+
var import_typeorm62 = require("typeorm");
|
|
5663
5710
|
|
|
5664
5711
|
// src/entities/admin-permission.entity.ts
|
|
5665
|
-
var
|
|
5712
|
+
var import_typeorm61 = require("typeorm");
|
|
5666
5713
|
var AdminPermission = class extends BaseEntity {
|
|
5667
5714
|
};
|
|
5668
5715
|
__decorateClass([
|
|
5669
|
-
(0,
|
|
5716
|
+
(0, import_typeorm61.Column)({ name: "permission_name", type: "varchar", nullable: true })
|
|
5670
5717
|
], AdminPermission.prototype, "permissionName", 2);
|
|
5671
5718
|
__decorateClass([
|
|
5672
|
-
(0,
|
|
5719
|
+
(0, import_typeorm61.Column)({
|
|
5673
5720
|
name: "permission_slug",
|
|
5674
5721
|
type: "varchar",
|
|
5675
5722
|
unique: true,
|
|
5676
5723
|
nullable: true
|
|
5677
5724
|
}),
|
|
5678
|
-
(0,
|
|
5725
|
+
(0, import_typeorm61.Index)()
|
|
5679
5726
|
], AdminPermission.prototype, "permissionSlug", 2);
|
|
5680
5727
|
__decorateClass([
|
|
5681
|
-
(0,
|
|
5728
|
+
(0, import_typeorm61.Column)({ name: "permission_description", type: "varchar", nullable: true })
|
|
5682
5729
|
], AdminPermission.prototype, "permissionDescription", 2);
|
|
5683
5730
|
__decorateClass([
|
|
5684
|
-
(0,
|
|
5731
|
+
(0, import_typeorm61.Column)({ name: "module", type: "varchar", nullable: true })
|
|
5685
5732
|
], AdminPermission.prototype, "module", 2);
|
|
5686
5733
|
__decorateClass([
|
|
5687
|
-
(0,
|
|
5734
|
+
(0, import_typeorm61.Column)({ name: "is_active", type: "boolean", default: true })
|
|
5688
5735
|
], AdminPermission.prototype, "isActive", 2);
|
|
5689
5736
|
__decorateClass([
|
|
5690
|
-
(0,
|
|
5737
|
+
(0, import_typeorm61.OneToMany)(
|
|
5691
5738
|
() => AdminRolePermission,
|
|
5692
5739
|
(adminRolePermission) => adminRolePermission.adminPermissions
|
|
5693
5740
|
)
|
|
5694
5741
|
], AdminPermission.prototype, "adminRole", 2);
|
|
5695
5742
|
AdminPermission = __decorateClass([
|
|
5696
|
-
(0,
|
|
5743
|
+
(0, import_typeorm61.Entity)("admin_permissions")
|
|
5697
5744
|
], AdminPermission);
|
|
5698
5745
|
|
|
5699
5746
|
// src/entities/admin-role-permission.entity.ts
|
|
5700
5747
|
var AdminRolePermission = class extends BaseEntity {
|
|
5701
5748
|
};
|
|
5702
5749
|
__decorateClass([
|
|
5703
|
-
(0,
|
|
5750
|
+
(0, import_typeorm62.Column)({
|
|
5704
5751
|
name: "role_id",
|
|
5705
5752
|
type: "int",
|
|
5706
5753
|
nullable: true,
|
|
@@ -5708,11 +5755,11 @@ __decorateClass([
|
|
|
5708
5755
|
})
|
|
5709
5756
|
], AdminRolePermission.prototype, "roleId", 2);
|
|
5710
5757
|
__decorateClass([
|
|
5711
|
-
(0,
|
|
5712
|
-
(0,
|
|
5758
|
+
(0, import_typeorm62.ManyToOne)(() => AdminRole),
|
|
5759
|
+
(0, import_typeorm62.JoinColumn)({ name: "role_id" })
|
|
5713
5760
|
], AdminRolePermission.prototype, "adminRole", 2);
|
|
5714
5761
|
__decorateClass([
|
|
5715
|
-
(0,
|
|
5762
|
+
(0, import_typeorm62.Column)({
|
|
5716
5763
|
name: "permission_id",
|
|
5717
5764
|
type: "int",
|
|
5718
5765
|
nullable: true,
|
|
@@ -5720,47 +5767,47 @@ __decorateClass([
|
|
|
5720
5767
|
})
|
|
5721
5768
|
], AdminRolePermission.prototype, "permissionId", 2);
|
|
5722
5769
|
__decorateClass([
|
|
5723
|
-
(0,
|
|
5724
|
-
(0,
|
|
5770
|
+
(0, import_typeorm62.ManyToOne)(() => AdminPermission),
|
|
5771
|
+
(0, import_typeorm62.JoinColumn)({ name: "permission_id" })
|
|
5725
5772
|
], AdminRolePermission.prototype, "adminPermissions", 2);
|
|
5726
5773
|
AdminRolePermission = __decorateClass([
|
|
5727
|
-
(0,
|
|
5774
|
+
(0, import_typeorm62.Entity)("admin_role_permissions")
|
|
5728
5775
|
], AdminRolePermission);
|
|
5729
5776
|
|
|
5730
5777
|
// src/entities/admin-role.entity.ts
|
|
5731
5778
|
var AdminRole = class extends BaseEntity {
|
|
5732
5779
|
};
|
|
5733
5780
|
__decorateClass([
|
|
5734
|
-
(0,
|
|
5781
|
+
(0, import_typeorm63.Column)({ name: "role_name", type: "varchar", nullable: true })
|
|
5735
5782
|
], AdminRole.prototype, "roleName", 2);
|
|
5736
5783
|
__decorateClass([
|
|
5737
|
-
(0,
|
|
5738
|
-
(0,
|
|
5784
|
+
(0, import_typeorm63.Column)({ name: "role_slug", type: "varchar", unique: true, nullable: true }),
|
|
5785
|
+
(0, import_typeorm63.Index)()
|
|
5739
5786
|
], AdminRole.prototype, "roleSlug", 2);
|
|
5740
5787
|
__decorateClass([
|
|
5741
|
-
(0,
|
|
5788
|
+
(0, import_typeorm63.Column)({ name: "role_description", type: "varchar", nullable: true })
|
|
5742
5789
|
], AdminRole.prototype, "roleDescription", 2);
|
|
5743
5790
|
__decorateClass([
|
|
5744
|
-
(0,
|
|
5791
|
+
(0, import_typeorm63.Column)({ name: "is_active", type: "boolean", default: true })
|
|
5745
5792
|
], AdminRole.prototype, "isActive", 2);
|
|
5746
5793
|
__decorateClass([
|
|
5747
|
-
(0,
|
|
5794
|
+
(0, import_typeorm63.OneToMany)(
|
|
5748
5795
|
() => AdminRolePermission,
|
|
5749
5796
|
(addminRolePermission) => addminRolePermission.adminRole
|
|
5750
5797
|
)
|
|
5751
5798
|
], AdminRole.prototype, "adminRolePermission", 2);
|
|
5752
5799
|
__decorateClass([
|
|
5753
|
-
(0,
|
|
5800
|
+
(0, import_typeorm63.OneToMany)(() => AdminUserRole, (adminUserRole) => adminUserRole.adminRole)
|
|
5754
5801
|
], AdminRole.prototype, "userRoles", 2);
|
|
5755
5802
|
AdminRole = __decorateClass([
|
|
5756
|
-
(0,
|
|
5803
|
+
(0, import_typeorm63.Entity)("admin_roles")
|
|
5757
5804
|
], AdminRole);
|
|
5758
5805
|
|
|
5759
5806
|
// src/entities/admin-user-role.entity.ts
|
|
5760
5807
|
var AdminUserRole = class extends BaseEntity {
|
|
5761
5808
|
};
|
|
5762
5809
|
__decorateClass([
|
|
5763
|
-
(0,
|
|
5810
|
+
(0, import_typeorm64.Column)({
|
|
5764
5811
|
name: "user_id",
|
|
5765
5812
|
type: "int",
|
|
5766
5813
|
nullable: true,
|
|
@@ -5768,11 +5815,11 @@ __decorateClass([
|
|
|
5768
5815
|
})
|
|
5769
5816
|
], AdminUserRole.prototype, "userId", 2);
|
|
5770
5817
|
__decorateClass([
|
|
5771
|
-
(0,
|
|
5772
|
-
(0,
|
|
5818
|
+
(0, import_typeorm64.ManyToOne)(() => User),
|
|
5819
|
+
(0, import_typeorm64.JoinColumn)({ name: "user_id" })
|
|
5773
5820
|
], AdminUserRole.prototype, "user", 2);
|
|
5774
5821
|
__decorateClass([
|
|
5775
|
-
(0,
|
|
5822
|
+
(0, import_typeorm64.Column)({
|
|
5776
5823
|
name: "role_id",
|
|
5777
5824
|
type: "int",
|
|
5778
5825
|
nullable: true,
|
|
@@ -5780,58 +5827,58 @@ __decorateClass([
|
|
|
5780
5827
|
})
|
|
5781
5828
|
], AdminUserRole.prototype, "roleId", 2);
|
|
5782
5829
|
__decorateClass([
|
|
5783
|
-
(0,
|
|
5784
|
-
(0,
|
|
5830
|
+
(0, import_typeorm64.ManyToOne)(() => AdminRole),
|
|
5831
|
+
(0, import_typeorm64.JoinColumn)({ name: "role_id" })
|
|
5785
5832
|
], AdminUserRole.prototype, "adminRole", 2);
|
|
5786
5833
|
AdminUserRole = __decorateClass([
|
|
5787
|
-
(0,
|
|
5834
|
+
(0, import_typeorm64.Entity)("admin_user_roles")
|
|
5788
5835
|
], AdminUserRole);
|
|
5789
5836
|
|
|
5790
5837
|
// src/entities/freelancer-resume.entity.ts
|
|
5791
|
-
var
|
|
5838
|
+
var import_typeorm65 = require("typeorm");
|
|
5792
5839
|
var FreelancerResume = class extends BaseEntity {
|
|
5793
5840
|
};
|
|
5794
5841
|
// individual index to find profile by user
|
|
5795
5842
|
__decorateClass([
|
|
5796
|
-
(0,
|
|
5797
|
-
(0,
|
|
5843
|
+
(0, import_typeorm65.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
5844
|
+
(0, import_typeorm65.Index)()
|
|
5798
5845
|
], FreelancerResume.prototype, "userId", 2);
|
|
5799
5846
|
__decorateClass([
|
|
5800
|
-
(0,
|
|
5801
|
-
(0,
|
|
5847
|
+
(0, import_typeorm65.ManyToOne)(() => User, (user) => user.freelancerProfile),
|
|
5848
|
+
(0, import_typeorm65.JoinColumn)({ name: "user_id" })
|
|
5802
5849
|
], FreelancerResume.prototype, "user", 2);
|
|
5803
5850
|
__decorateClass([
|
|
5804
|
-
(0,
|
|
5851
|
+
(0, import_typeorm65.Column)({ name: "resume_data", type: "jsonb", nullable: true })
|
|
5805
5852
|
], FreelancerResume.prototype, "resumeData", 2);
|
|
5806
5853
|
__decorateClass([
|
|
5807
|
-
(0,
|
|
5854
|
+
(0, import_typeorm65.Column)({ name: "processed_resume_data", type: "jsonb", nullable: true })
|
|
5808
5855
|
], FreelancerResume.prototype, "processedResumeData", 2);
|
|
5809
5856
|
FreelancerResume = __decorateClass([
|
|
5810
|
-
(0,
|
|
5857
|
+
(0, import_typeorm65.Entity)("freelancer_resumes")
|
|
5811
5858
|
], FreelancerResume);
|
|
5812
5859
|
|
|
5813
5860
|
// src/entities/signature.entity.ts
|
|
5814
|
-
var
|
|
5861
|
+
var import_typeorm66 = require("typeorm");
|
|
5815
5862
|
var Signature = class extends BaseEntity {
|
|
5816
5863
|
};
|
|
5817
5864
|
// individual index to find profile by user
|
|
5818
5865
|
__decorateClass([
|
|
5819
|
-
(0,
|
|
5820
|
-
(0,
|
|
5866
|
+
(0, import_typeorm66.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
5867
|
+
(0, import_typeorm66.Index)()
|
|
5821
5868
|
], Signature.prototype, "userId", 2);
|
|
5822
5869
|
__decorateClass([
|
|
5823
|
-
(0,
|
|
5824
|
-
(0,
|
|
5870
|
+
(0, import_typeorm66.ManyToOne)(() => User, (user) => user.signatures),
|
|
5871
|
+
(0, import_typeorm66.JoinColumn)({ name: "user_id" })
|
|
5825
5872
|
], Signature.prototype, "user", 2);
|
|
5826
5873
|
__decorateClass([
|
|
5827
|
-
(0,
|
|
5874
|
+
(0, import_typeorm66.Column)({ name: "signature_url", type: "text", nullable: true })
|
|
5828
5875
|
], Signature.prototype, "signatureUrl", 2);
|
|
5829
5876
|
Signature = __decorateClass([
|
|
5830
|
-
(0,
|
|
5877
|
+
(0, import_typeorm66.Entity)("signatures")
|
|
5831
5878
|
], Signature);
|
|
5832
5879
|
|
|
5833
5880
|
// src/entities/dispute.entity.ts
|
|
5834
|
-
var
|
|
5881
|
+
var import_typeorm67 = require("typeorm");
|
|
5835
5882
|
var DisputeStatusEnum = /* @__PURE__ */ ((DisputeStatusEnum2) => {
|
|
5836
5883
|
DisputeStatusEnum2["OPEN"] = "OPEN";
|
|
5837
5884
|
DisputeStatusEnum2["IN_REVIEW"] = "IN_REVIEW";
|
|
@@ -5852,36 +5899,36 @@ var InitiatorTypeEnum = /* @__PURE__ */ ((InitiatorTypeEnum2) => {
|
|
|
5852
5899
|
var Dispute = class extends BaseEntity {
|
|
5853
5900
|
};
|
|
5854
5901
|
__decorateClass([
|
|
5855
|
-
(0,
|
|
5856
|
-
(0,
|
|
5902
|
+
(0, import_typeorm67.Column)({ name: "client_id", type: "integer", nullable: true }),
|
|
5903
|
+
(0, import_typeorm67.Index)()
|
|
5857
5904
|
], Dispute.prototype, "clientId", 2);
|
|
5858
5905
|
__decorateClass([
|
|
5859
|
-
(0,
|
|
5860
|
-
(0,
|
|
5906
|
+
(0, import_typeorm67.ManyToOne)(() => User, (user) => user.clientDisputes),
|
|
5907
|
+
(0, import_typeorm67.JoinColumn)({ name: "client_id" })
|
|
5861
5908
|
], Dispute.prototype, "client", 2);
|
|
5862
5909
|
__decorateClass([
|
|
5863
|
-
(0,
|
|
5864
|
-
(0,
|
|
5910
|
+
(0, import_typeorm67.Column)({ name: "freelancer_id", type: "integer", nullable: true }),
|
|
5911
|
+
(0, import_typeorm67.Index)()
|
|
5865
5912
|
], Dispute.prototype, "freelancerId", 2);
|
|
5866
5913
|
__decorateClass([
|
|
5867
|
-
(0,
|
|
5868
|
-
(0,
|
|
5914
|
+
(0, import_typeorm67.ManyToOne)(() => User, (user) => user.freelancerDisputes),
|
|
5915
|
+
(0, import_typeorm67.JoinColumn)({ name: "freelancer_id" })
|
|
5869
5916
|
], Dispute.prototype, "freelancer", 2);
|
|
5870
5917
|
__decorateClass([
|
|
5871
|
-
(0,
|
|
5918
|
+
(0, import_typeorm67.Column)({ name: "dispute_unique_id", type: "varchar", unique: true })
|
|
5872
5919
|
], Dispute.prototype, "disputeUniqueId", 2);
|
|
5873
5920
|
__decorateClass([
|
|
5874
|
-
(0,
|
|
5875
|
-
(0,
|
|
5921
|
+
(0, import_typeorm67.Column)({ name: "dispute_type", type: "varchar", nullable: true }),
|
|
5922
|
+
(0, import_typeorm67.Index)()
|
|
5876
5923
|
], Dispute.prototype, "disputeType", 2);
|
|
5877
5924
|
__decorateClass([
|
|
5878
|
-
(0,
|
|
5925
|
+
(0, import_typeorm67.Column)({ name: "description", type: "varchar", nullable: true })
|
|
5879
5926
|
], Dispute.prototype, "description", 2);
|
|
5880
5927
|
__decorateClass([
|
|
5881
|
-
(0,
|
|
5928
|
+
(0, import_typeorm67.Column)({ name: "comment", type: "varchar", nullable: true })
|
|
5882
5929
|
], Dispute.prototype, "comment", 2);
|
|
5883
5930
|
__decorateClass([
|
|
5884
|
-
(0,
|
|
5931
|
+
(0, import_typeorm67.Column)({
|
|
5885
5932
|
name: "status",
|
|
5886
5933
|
type: "enum",
|
|
5887
5934
|
enum: DisputeStatusEnum,
|
|
@@ -5889,7 +5936,7 @@ __decorateClass([
|
|
|
5889
5936
|
})
|
|
5890
5937
|
], Dispute.prototype, "status", 2);
|
|
5891
5938
|
__decorateClass([
|
|
5892
|
-
(0,
|
|
5939
|
+
(0, import_typeorm67.Column)({
|
|
5893
5940
|
name: "initiator_type",
|
|
5894
5941
|
type: "enum",
|
|
5895
5942
|
enum: InitiatorTypeEnum,
|
|
@@ -5898,33 +5945,33 @@ __decorateClass([
|
|
|
5898
5945
|
})
|
|
5899
5946
|
], Dispute.prototype, "initiatorType", 2);
|
|
5900
5947
|
__decorateClass([
|
|
5901
|
-
(0,
|
|
5902
|
-
(0,
|
|
5948
|
+
(0, import_typeorm67.Column)({ name: "initiator_id", type: "integer" }),
|
|
5949
|
+
(0, import_typeorm67.Index)()
|
|
5903
5950
|
], Dispute.prototype, "initiatorId", 2);
|
|
5904
5951
|
__decorateClass([
|
|
5905
|
-
(0,
|
|
5906
|
-
(0,
|
|
5952
|
+
(0, import_typeorm67.ManyToOne)(() => User, (user) => user.initiatedDisputes),
|
|
5953
|
+
(0, import_typeorm67.JoinColumn)({ name: "initiator_id" })
|
|
5907
5954
|
], Dispute.prototype, "initiator", 2);
|
|
5908
5955
|
__decorateClass([
|
|
5909
|
-
(0,
|
|
5910
|
-
(0,
|
|
5956
|
+
(0, import_typeorm67.Column)({ name: "respondent_id", type: "integer", nullable: true }),
|
|
5957
|
+
(0, import_typeorm67.Index)()
|
|
5911
5958
|
], Dispute.prototype, "respondentId", 2);
|
|
5912
5959
|
__decorateClass([
|
|
5913
|
-
(0,
|
|
5914
|
-
(0,
|
|
5960
|
+
(0, import_typeorm67.ManyToOne)(() => User, (user) => user.respondentDisputes, { nullable: true }),
|
|
5961
|
+
(0, import_typeorm67.JoinColumn)({ name: "respondent_id" })
|
|
5915
5962
|
], Dispute.prototype, "respondent", 2);
|
|
5916
5963
|
__decorateClass([
|
|
5917
|
-
(0,
|
|
5964
|
+
(0, import_typeorm67.Column)({ name: "attachments", type: "jsonb", nullable: true })
|
|
5918
5965
|
], Dispute.prototype, "attachments", 2);
|
|
5919
5966
|
__decorateClass([
|
|
5920
|
-
(0,
|
|
5967
|
+
(0, import_typeorm67.Column)({ name: "dynamic_fields", type: "jsonb", nullable: true })
|
|
5921
5968
|
], Dispute.prototype, "dynamicFields", 2);
|
|
5922
5969
|
Dispute = __decorateClass([
|
|
5923
|
-
(0,
|
|
5970
|
+
(0, import_typeorm67.Entity)("disputes")
|
|
5924
5971
|
], Dispute);
|
|
5925
5972
|
|
|
5926
5973
|
// src/entities/stripe-transaction.entity.ts
|
|
5927
|
-
var
|
|
5974
|
+
var import_typeorm68 = require("typeorm");
|
|
5928
5975
|
var StripeTransactionTypeEnum = /* @__PURE__ */ ((StripeTransactionTypeEnum2) => {
|
|
5929
5976
|
StripeTransactionTypeEnum2["ADD_FUNDS"] = "ADD_FUNDS";
|
|
5930
5977
|
StripeTransactionTypeEnum2["TRANSFER"] = "TRANSFER";
|
|
@@ -5946,97 +5993,97 @@ var StripeTransaction = class extends BaseEntity {
|
|
|
5946
5993
|
// Full Stripe session response
|
|
5947
5994
|
};
|
|
5948
5995
|
__decorateClass([
|
|
5949
|
-
(0,
|
|
5950
|
-
(0,
|
|
5996
|
+
(0, import_typeorm68.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
5997
|
+
(0, import_typeorm68.Index)()
|
|
5951
5998
|
], StripeTransaction.prototype, "userId", 2);
|
|
5952
5999
|
__decorateClass([
|
|
5953
|
-
(0,
|
|
5954
|
-
(0,
|
|
6000
|
+
(0, import_typeorm68.ManyToOne)(() => User, (user) => user.stripeTransactions),
|
|
6001
|
+
(0, import_typeorm68.JoinColumn)({ name: "user_id" })
|
|
5955
6002
|
], StripeTransaction.prototype, "user", 2);
|
|
5956
6003
|
__decorateClass([
|
|
5957
|
-
(0,
|
|
6004
|
+
(0, import_typeorm68.Column)({ name: "stripe_session_id", type: "varchar", nullable: true })
|
|
5958
6005
|
], StripeTransaction.prototype, "stripeSessionId", 2);
|
|
5959
6006
|
__decorateClass([
|
|
5960
|
-
(0,
|
|
6007
|
+
(0, import_typeorm68.Column)({ name: "stripe_payment_intent_id", type: "varchar", nullable: true })
|
|
5961
6008
|
], StripeTransaction.prototype, "stripePaymentIntentId", 2);
|
|
5962
6009
|
__decorateClass([
|
|
5963
|
-
(0,
|
|
6010
|
+
(0, import_typeorm68.Column)({ name: "stripe_charge_id", type: "varchar", nullable: true })
|
|
5964
6011
|
], StripeTransaction.prototype, "stripeChargeId", 2);
|
|
5965
6012
|
__decorateClass([
|
|
5966
|
-
(0,
|
|
6013
|
+
(0, import_typeorm68.Column)({ name: "stripe_receipt_url", type: "varchar", nullable: true })
|
|
5967
6014
|
], StripeTransaction.prototype, "stripeReceiptUrl", 2);
|
|
5968
6015
|
__decorateClass([
|
|
5969
|
-
(0,
|
|
6016
|
+
(0, import_typeorm68.Column)({ name: "stripe_balance_transaction_id", type: "varchar", nullable: true })
|
|
5970
6017
|
], StripeTransaction.prototype, "stripeBalanceTransactionId", 2);
|
|
5971
6018
|
__decorateClass([
|
|
5972
|
-
(0,
|
|
6019
|
+
(0, import_typeorm68.Column)({ name: "stripe_payment_method", type: "varchar", nullable: true })
|
|
5973
6020
|
], StripeTransaction.prototype, "stripePaymentMethod", 2);
|
|
5974
6021
|
__decorateClass([
|
|
5975
|
-
(0,
|
|
6022
|
+
(0, import_typeorm68.Column)({ name: "stripe_payment_status", type: "varchar", nullable: true })
|
|
5976
6023
|
], StripeTransaction.prototype, "stripePaymentStatus", 2);
|
|
5977
6024
|
__decorateClass([
|
|
5978
|
-
(0,
|
|
6025
|
+
(0, import_typeorm68.Column)({ name: "type", type: "enum", enum: StripeTransactionTypeEnum })
|
|
5979
6026
|
], StripeTransaction.prototype, "type", 2);
|
|
5980
6027
|
__decorateClass([
|
|
5981
|
-
(0,
|
|
6028
|
+
(0, import_typeorm68.Column)({ name: "currency", type: "varchar", nullable: true })
|
|
5982
6029
|
], StripeTransaction.prototype, "currency", 2);
|
|
5983
6030
|
__decorateClass([
|
|
5984
|
-
(0,
|
|
6031
|
+
(0, import_typeorm68.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" })
|
|
5985
6032
|
], StripeTransaction.prototype, "desiredDepositCents", 2);
|
|
5986
6033
|
__decorateClass([
|
|
5987
|
-
(0,
|
|
6034
|
+
(0, import_typeorm68.Column)({ name: "platform_fee_cents", type: "bigint", default: 0, comment: "Your platform commission Example: 500 cents = $5.00 (5% of $100)" })
|
|
5988
6035
|
], StripeTransaction.prototype, "platformFeeCents", 2);
|
|
5989
6036
|
__decorateClass([
|
|
5990
|
-
(0,
|
|
6037
|
+
(0, import_typeorm68.Column)({ name: "tax_cents", type: "bigint", nullable: true, comment: "Sales tax collected by Stripe" })
|
|
5991
6038
|
], StripeTransaction.prototype, "taxCents", 2);
|
|
5992
6039
|
__decorateClass([
|
|
5993
|
-
(0,
|
|
6040
|
+
(0, import_typeorm68.Column)({ name: "estimated_stripe_fee_cents", type: "bigint", nullable: true, comment: "Your calculated estimate of Stripe fee, Example: 371 cents = $3.71" })
|
|
5994
6041
|
], StripeTransaction.prototype, "estimatedStripeFee", 2);
|
|
5995
6042
|
__decorateClass([
|
|
5996
|
-
(0,
|
|
6043
|
+
(0, import_typeorm68.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" })
|
|
5997
6044
|
], StripeTransaction.prototype, "estimatedTotalCents", 2);
|
|
5998
6045
|
__decorateClass([
|
|
5999
|
-
(0,
|
|
6046
|
+
(0, import_typeorm68.Column)({ name: "actual_stripe_fee_cents", type: "bigint", nullable: true, comment: "ACTUAL Stripe fee charged, Example: 371 cents = $3.71" })
|
|
6000
6047
|
], StripeTransaction.prototype, "actualStripeFee", 2);
|
|
6001
6048
|
__decorateClass([
|
|
6002
|
-
(0,
|
|
6049
|
+
(0, import_typeorm68.Column)({ name: "actual_total_paid_cents", type: "bigint", nullable: true, comment: "What customer ACTUALLY paid, Example: 11757 cents = $117.57, May differ from estimate" })
|
|
6003
6050
|
], StripeTransaction.prototype, "actualTotalPaidCents", 2);
|
|
6004
6051
|
__decorateClass([
|
|
6005
|
-
(0,
|
|
6052
|
+
(0, import_typeorm68.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" })
|
|
6006
6053
|
], StripeTransaction.prototype, "netReceivedCents", 2);
|
|
6007
6054
|
__decorateClass([
|
|
6008
|
-
(0,
|
|
6055
|
+
(0, import_typeorm68.Column)({ name: "description", type: "text", nullable: true })
|
|
6009
6056
|
], StripeTransaction.prototype, "description", 2);
|
|
6010
6057
|
__decorateClass([
|
|
6011
|
-
(0,
|
|
6058
|
+
(0, import_typeorm68.Column)({ name: "status", type: "enum", enum: StripeTransactionStatusEnum, default: "PENDING" /* PENDING */ })
|
|
6012
6059
|
], StripeTransaction.prototype, "status", 2);
|
|
6013
6060
|
__decorateClass([
|
|
6014
|
-
(0,
|
|
6061
|
+
(0, import_typeorm68.Column)({ name: "checkout_session_completed_at", type: "timestamptz", nullable: true })
|
|
6015
6062
|
], StripeTransaction.prototype, "checkoutSessionCompletedAt", 2);
|
|
6016
6063
|
__decorateClass([
|
|
6017
|
-
(0,
|
|
6064
|
+
(0, import_typeorm68.Column)({ name: "completed_at", type: "timestamptz", nullable: true })
|
|
6018
6065
|
], StripeTransaction.prototype, "completedAt", 2);
|
|
6019
6066
|
__decorateClass([
|
|
6020
|
-
(0,
|
|
6067
|
+
(0, import_typeorm68.Column)({ name: "billing_details", type: "jsonb", nullable: true })
|
|
6021
6068
|
], StripeTransaction.prototype, "billingDetails", 2);
|
|
6022
6069
|
__decorateClass([
|
|
6023
|
-
(0,
|
|
6070
|
+
(0, import_typeorm68.Column)({ name: "payment_method_details", type: "jsonb", nullable: true })
|
|
6024
6071
|
], StripeTransaction.prototype, "paymentMethodDetails", 2);
|
|
6025
6072
|
__decorateClass([
|
|
6026
|
-
(0,
|
|
6073
|
+
(0, import_typeorm68.Column)({ name: "raw_session_payload", type: "jsonb", nullable: true })
|
|
6027
6074
|
], StripeTransaction.prototype, "rawSessionPayload", 2);
|
|
6028
6075
|
__decorateClass([
|
|
6029
|
-
(0,
|
|
6076
|
+
(0, import_typeorm68.Column)({ name: "raw_session_response", type: "jsonb", nullable: true })
|
|
6030
6077
|
], StripeTransaction.prototype, "rawSessionResponse", 2);
|
|
6031
6078
|
StripeTransaction = __decorateClass([
|
|
6032
|
-
(0,
|
|
6079
|
+
(0, import_typeorm68.Entity)("stripe_transactions")
|
|
6033
6080
|
], StripeTransaction);
|
|
6034
6081
|
|
|
6035
6082
|
// src/entities/wallet.entity.ts
|
|
6036
|
-
var
|
|
6083
|
+
var import_typeorm70 = require("typeorm");
|
|
6037
6084
|
|
|
6038
6085
|
// src/entities/wallet-transaction.entity.ts
|
|
6039
|
-
var
|
|
6086
|
+
var import_typeorm69 = require("typeorm");
|
|
6040
6087
|
var WalletTransactionTypeEnum = /* @__PURE__ */ ((WalletTransactionTypeEnum2) => {
|
|
6041
6088
|
WalletTransactionTypeEnum2["CR"] = "CR";
|
|
6042
6089
|
WalletTransactionTypeEnum2["DR"] = "DR";
|
|
@@ -6053,46 +6100,46 @@ var WalletTransactionStatusEnum = /* @__PURE__ */ ((WalletTransactionStatusEnum2
|
|
|
6053
6100
|
var WalletTransaction = class extends BaseEntity {
|
|
6054
6101
|
};
|
|
6055
6102
|
__decorateClass([
|
|
6056
|
-
(0,
|
|
6057
|
-
(0,
|
|
6103
|
+
(0, import_typeorm69.Column)({ name: "wallet_id", type: "integer", nullable: true }),
|
|
6104
|
+
(0, import_typeorm69.Index)()
|
|
6058
6105
|
], WalletTransaction.prototype, "walletId", 2);
|
|
6059
6106
|
__decorateClass([
|
|
6060
|
-
(0,
|
|
6061
|
-
(0,
|
|
6107
|
+
(0, import_typeorm69.ManyToOne)(() => Wallet, (wallet) => wallet.walletTransactions),
|
|
6108
|
+
(0, import_typeorm69.JoinColumn)({ name: "wallet_id" })
|
|
6062
6109
|
], WalletTransaction.prototype, "wallet", 2);
|
|
6063
6110
|
__decorateClass([
|
|
6064
|
-
(0,
|
|
6111
|
+
(0, import_typeorm69.Column)({ name: "amount", type: "bigint", nullable: true })
|
|
6065
6112
|
], WalletTransaction.prototype, "amount", 2);
|
|
6066
6113
|
__decorateClass([
|
|
6067
|
-
(0,
|
|
6114
|
+
(0, import_typeorm69.Column)({ name: "balance_before", type: "bigint", nullable: true })
|
|
6068
6115
|
], WalletTransaction.prototype, "balanceBefore", 2);
|
|
6069
6116
|
__decorateClass([
|
|
6070
|
-
(0,
|
|
6117
|
+
(0, import_typeorm69.Column)({ name: "balance_after", type: "bigint", nullable: true })
|
|
6071
6118
|
], WalletTransaction.prototype, "balanceAfter", 2);
|
|
6072
6119
|
__decorateClass([
|
|
6073
|
-
(0,
|
|
6120
|
+
(0, import_typeorm69.Column)({ name: "type", type: "enum", enum: WalletTransactionTypeEnum })
|
|
6074
6121
|
], WalletTransaction.prototype, "type", 2);
|
|
6075
6122
|
__decorateClass([
|
|
6076
|
-
(0,
|
|
6123
|
+
(0, import_typeorm69.Column)({ name: "status", type: "enum", enum: WalletTransactionStatusEnum, default: "PENDING" /* PENDING */ })
|
|
6077
6124
|
], WalletTransaction.prototype, "status", 2);
|
|
6078
6125
|
__decorateClass([
|
|
6079
|
-
(0,
|
|
6126
|
+
(0, import_typeorm69.Column)({ name: "description", type: "text", nullable: true })
|
|
6080
6127
|
], WalletTransaction.prototype, "description", 2);
|
|
6081
6128
|
__decorateClass([
|
|
6082
|
-
(0,
|
|
6129
|
+
(0, import_typeorm69.Column)({ name: "completed_at", type: "timestamptz", nullable: true })
|
|
6083
6130
|
], WalletTransaction.prototype, "completedAt", 2);
|
|
6084
6131
|
__decorateClass([
|
|
6085
|
-
(0,
|
|
6132
|
+
(0, import_typeorm69.Column)({ name: "transaction_for", type: "varchar", nullable: true })
|
|
6086
6133
|
], WalletTransaction.prototype, "transactionFor", 2);
|
|
6087
6134
|
__decorateClass([
|
|
6088
|
-
(0,
|
|
6135
|
+
(0, import_typeorm69.Column)({ name: "meta_data", type: "varchar", nullable: true })
|
|
6089
6136
|
], WalletTransaction.prototype, "metaData", 2);
|
|
6090
6137
|
__decorateClass([
|
|
6091
|
-
(0,
|
|
6092
|
-
(0,
|
|
6138
|
+
(0, import_typeorm69.Column)({ name: "stripe_transaction_id", type: "integer", nullable: true }),
|
|
6139
|
+
(0, import_typeorm69.Index)()
|
|
6093
6140
|
], WalletTransaction.prototype, "stripeTransactionId", 2);
|
|
6094
6141
|
WalletTransaction = __decorateClass([
|
|
6095
|
-
(0,
|
|
6142
|
+
(0, import_typeorm69.Entity)("wallet_transactions")
|
|
6096
6143
|
], WalletTransaction);
|
|
6097
6144
|
|
|
6098
6145
|
// src/entities/wallet.entity.ts
|
|
@@ -6110,43 +6157,43 @@ var WalletOnboardingStatusEnum = /* @__PURE__ */ ((WalletOnboardingStatusEnum2)
|
|
|
6110
6157
|
var Wallet = class extends BaseEntity {
|
|
6111
6158
|
};
|
|
6112
6159
|
__decorateClass([
|
|
6113
|
-
(0,
|
|
6114
|
-
(0,
|
|
6160
|
+
(0, import_typeorm70.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
6161
|
+
(0, import_typeorm70.Index)()
|
|
6115
6162
|
], Wallet.prototype, "userId", 2);
|
|
6116
6163
|
__decorateClass([
|
|
6117
|
-
(0,
|
|
6118
|
-
(0,
|
|
6164
|
+
(0, import_typeorm70.OneToOne)(() => User, (user) => user.wallet),
|
|
6165
|
+
(0, import_typeorm70.JoinColumn)({ name: "user_id" })
|
|
6119
6166
|
], Wallet.prototype, "user", 2);
|
|
6120
6167
|
__decorateClass([
|
|
6121
|
-
(0,
|
|
6168
|
+
(0, import_typeorm70.Column)({ name: "account_type", type: "enum", enum: WalletAccountTypeEnum, nullable: true })
|
|
6122
6169
|
], Wallet.prototype, "accountType", 2);
|
|
6123
6170
|
__decorateClass([
|
|
6124
|
-
(0,
|
|
6171
|
+
(0, import_typeorm70.Column)({ name: "stripe_account_id", type: "varchar", nullable: true })
|
|
6125
6172
|
], Wallet.prototype, "stripeAccountId", 2);
|
|
6126
6173
|
__decorateClass([
|
|
6127
|
-
(0,
|
|
6174
|
+
(0, import_typeorm70.Column)({ name: "stripe_customer_id", type: "varchar", nullable: true })
|
|
6128
6175
|
], Wallet.prototype, "stripeCustomerId", 2);
|
|
6129
6176
|
__decorateClass([
|
|
6130
|
-
(0,
|
|
6177
|
+
(0, import_typeorm70.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" })
|
|
6131
6178
|
], Wallet.prototype, "walletBalance", 2);
|
|
6132
6179
|
__decorateClass([
|
|
6133
|
-
(0,
|
|
6180
|
+
(0, import_typeorm70.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" })
|
|
6134
6181
|
], Wallet.prototype, "walletBalanceCents", 2);
|
|
6135
6182
|
__decorateClass([
|
|
6136
|
-
(0,
|
|
6183
|
+
(0, import_typeorm70.Column)({ name: "onboarding_status", type: "enum", enum: WalletOnboardingStatusEnum, nullable: true })
|
|
6137
6184
|
], Wallet.prototype, "onboardingStatus", 2);
|
|
6138
6185
|
__decorateClass([
|
|
6139
|
-
(0,
|
|
6186
|
+
(0, import_typeorm70.Column)({ name: "stripe_metadata", type: "jsonb", nullable: true })
|
|
6140
6187
|
], Wallet.prototype, "stripeMetadata", 2);
|
|
6141
6188
|
__decorateClass([
|
|
6142
|
-
(0,
|
|
6189
|
+
(0, import_typeorm70.OneToMany)(() => WalletTransaction, (walletTransaction) => walletTransaction.wallet)
|
|
6143
6190
|
], Wallet.prototype, "walletTransactions", 2);
|
|
6144
6191
|
Wallet = __decorateClass([
|
|
6145
|
-
(0,
|
|
6192
|
+
(0, import_typeorm70.Entity)("wallets")
|
|
6146
6193
|
], Wallet);
|
|
6147
6194
|
|
|
6148
6195
|
// src/entities/freelancer-assessment-request.entity.ts
|
|
6149
|
-
var
|
|
6196
|
+
var import_typeorm71 = require("typeorm");
|
|
6150
6197
|
var AssessmentRequestStatusEnum = /* @__PURE__ */ ((AssessmentRequestStatusEnum2) => {
|
|
6151
6198
|
AssessmentRequestStatusEnum2["PENDING"] = "PENDING";
|
|
6152
6199
|
AssessmentRequestStatusEnum2["APPROVED"] = "APPROVED";
|
|
@@ -6156,23 +6203,23 @@ var AssessmentRequestStatusEnum = /* @__PURE__ */ ((AssessmentRequestStatusEnum2
|
|
|
6156
6203
|
var FreelancerAssessmentRequest = class extends BaseEntity {
|
|
6157
6204
|
};
|
|
6158
6205
|
__decorateClass([
|
|
6159
|
-
(0,
|
|
6160
|
-
(0,
|
|
6206
|
+
(0, import_typeorm71.Column)({ name: "freelancer_id", type: "integer", nullable: true }),
|
|
6207
|
+
(0, import_typeorm71.Index)()
|
|
6161
6208
|
], FreelancerAssessmentRequest.prototype, "freelancerId", 2);
|
|
6162
6209
|
__decorateClass([
|
|
6163
|
-
(0,
|
|
6164
|
-
(0,
|
|
6210
|
+
(0, import_typeorm71.ManyToOne)(() => User, (user) => user.freelancerAssessmentRequests),
|
|
6211
|
+
(0, import_typeorm71.JoinColumn)({ name: "freelancer_id" })
|
|
6165
6212
|
], FreelancerAssessmentRequest.prototype, "freelancer", 2);
|
|
6166
6213
|
__decorateClass([
|
|
6167
|
-
(0,
|
|
6168
|
-
(0,
|
|
6214
|
+
(0, import_typeorm71.Column)({ name: "approved_by_id", type: "integer", nullable: true }),
|
|
6215
|
+
(0, import_typeorm71.Index)()
|
|
6169
6216
|
], FreelancerAssessmentRequest.prototype, "approvedById", 2);
|
|
6170
6217
|
__decorateClass([
|
|
6171
|
-
(0,
|
|
6172
|
-
(0,
|
|
6218
|
+
(0, import_typeorm71.ManyToOne)(() => User, (user) => user.assessmentRequests),
|
|
6219
|
+
(0, import_typeorm71.JoinColumn)({ name: "approved_by_id" })
|
|
6173
6220
|
], FreelancerAssessmentRequest.prototype, "approvedBy", 2);
|
|
6174
6221
|
__decorateClass([
|
|
6175
|
-
(0,
|
|
6222
|
+
(0, import_typeorm71.Column)({
|
|
6176
6223
|
name: "status",
|
|
6177
6224
|
type: "enum",
|
|
6178
6225
|
enum: AssessmentRequestStatusEnum,
|
|
@@ -6180,51 +6227,51 @@ __decorateClass([
|
|
|
6180
6227
|
})
|
|
6181
6228
|
], FreelancerAssessmentRequest.prototype, "status", 2);
|
|
6182
6229
|
__decorateClass([
|
|
6183
|
-
(0,
|
|
6230
|
+
(0, import_typeorm71.Column)({ name: "assessment_link", type: "text", nullable: true })
|
|
6184
6231
|
], FreelancerAssessmentRequest.prototype, "assessmentLink", 2);
|
|
6185
6232
|
FreelancerAssessmentRequest = __decorateClass([
|
|
6186
|
-
(0,
|
|
6233
|
+
(0, import_typeorm71.Entity)({ name: "freelancer_assessment_requests" })
|
|
6187
6234
|
], FreelancerAssessmentRequest);
|
|
6188
6235
|
|
|
6189
6236
|
// src/entities/in-app-notification.entity.ts
|
|
6190
|
-
var
|
|
6237
|
+
var import_typeorm72 = require("typeorm");
|
|
6191
6238
|
var InAppNotification = class extends BaseEntity {
|
|
6192
6239
|
};
|
|
6193
6240
|
__decorateClass([
|
|
6194
|
-
(0,
|
|
6195
|
-
(0,
|
|
6241
|
+
(0, import_typeorm72.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
6242
|
+
(0, import_typeorm72.Index)()
|
|
6196
6243
|
], InAppNotification.prototype, "userId", 2);
|
|
6197
6244
|
__decorateClass([
|
|
6198
|
-
(0,
|
|
6199
|
-
(0,
|
|
6245
|
+
(0, import_typeorm72.ManyToOne)(() => User, (user) => user.inAppNotifications),
|
|
6246
|
+
(0, import_typeorm72.JoinColumn)({ name: "user_id" })
|
|
6200
6247
|
], InAppNotification.prototype, "user", 2);
|
|
6201
6248
|
__decorateClass([
|
|
6202
|
-
(0,
|
|
6249
|
+
(0, import_typeorm72.Column)({ name: "event", type: "varchar", nullable: true })
|
|
6203
6250
|
], InAppNotification.prototype, "event", 2);
|
|
6204
6251
|
__decorateClass([
|
|
6205
|
-
(0,
|
|
6252
|
+
(0, import_typeorm72.Column)({ name: "title", type: "varchar", nullable: true })
|
|
6206
6253
|
], InAppNotification.prototype, "title", 2);
|
|
6207
6254
|
__decorateClass([
|
|
6208
|
-
(0,
|
|
6255
|
+
(0, import_typeorm72.Column)({ name: "message", type: "varchar", nullable: true })
|
|
6209
6256
|
], InAppNotification.prototype, "message", 2);
|
|
6210
6257
|
__decorateClass([
|
|
6211
|
-
(0,
|
|
6258
|
+
(0, import_typeorm72.Column)({ name: "redirect_url", type: "varchar", nullable: true })
|
|
6212
6259
|
], InAppNotification.prototype, "redirectUrl", 2);
|
|
6213
6260
|
__decorateClass([
|
|
6214
|
-
(0,
|
|
6261
|
+
(0, import_typeorm72.Column)({ name: "is_read", type: "boolean", default: false })
|
|
6215
6262
|
], InAppNotification.prototype, "isRead", 2);
|
|
6216
6263
|
__decorateClass([
|
|
6217
|
-
(0,
|
|
6264
|
+
(0, import_typeorm72.Column)({ name: "meta_data", type: "jsonb", nullable: true })
|
|
6218
6265
|
], InAppNotification.prototype, "metaData", 2);
|
|
6219
6266
|
InAppNotification = __decorateClass([
|
|
6220
|
-
(0,
|
|
6267
|
+
(0, import_typeorm72.Entity)("in_app_notifications")
|
|
6221
6268
|
], InAppNotification);
|
|
6222
6269
|
|
|
6223
6270
|
// src/entities/task-query.entity.ts
|
|
6224
|
-
var
|
|
6271
|
+
var import_typeorm74 = require("typeorm");
|
|
6225
6272
|
|
|
6226
6273
|
// src/entities/task-query-message.entity.ts
|
|
6227
|
-
var
|
|
6274
|
+
var import_typeorm73 = require("typeorm");
|
|
6228
6275
|
var TaskQueryMessageUserTypeEnum = /* @__PURE__ */ ((TaskQueryMessageUserTypeEnum2) => {
|
|
6229
6276
|
TaskQueryMessageUserTypeEnum2["CLIENT"] = "CLIENT";
|
|
6230
6277
|
TaskQueryMessageUserTypeEnum2["FREELANCER"] = "FREELANCER";
|
|
@@ -6233,52 +6280,52 @@ var TaskQueryMessageUserTypeEnum = /* @__PURE__ */ ((TaskQueryMessageUserTypeEnu
|
|
|
6233
6280
|
var TaskQueryMessage = class extends BaseEntity {
|
|
6234
6281
|
};
|
|
6235
6282
|
__decorateClass([
|
|
6236
|
-
(0,
|
|
6237
|
-
(0,
|
|
6283
|
+
(0, import_typeorm73.Column)({ name: "task_query_id", type: "integer" }),
|
|
6284
|
+
(0, import_typeorm73.Index)()
|
|
6238
6285
|
], TaskQueryMessage.prototype, "taskQueryId", 2);
|
|
6239
6286
|
__decorateClass([
|
|
6240
|
-
(0,
|
|
6241
|
-
(0,
|
|
6287
|
+
(0, import_typeorm73.ManyToOne)(() => TaskQuery, (taskQuery) => taskQuery.messages),
|
|
6288
|
+
(0, import_typeorm73.JoinColumn)({ name: "task_query_id" })
|
|
6242
6289
|
], TaskQueryMessage.prototype, "taskQuery", 2);
|
|
6243
6290
|
__decorateClass([
|
|
6244
|
-
(0,
|
|
6245
|
-
(0,
|
|
6291
|
+
(0, import_typeorm73.Column)({ name: "sender_user_id", type: "integer" }),
|
|
6292
|
+
(0, import_typeorm73.Index)()
|
|
6246
6293
|
], TaskQueryMessage.prototype, "senderUserId", 2);
|
|
6247
6294
|
__decorateClass([
|
|
6248
|
-
(0,
|
|
6249
|
-
(0,
|
|
6295
|
+
(0, import_typeorm73.ManyToOne)(() => User, (user) => user.taskQueryMessages),
|
|
6296
|
+
(0, import_typeorm73.JoinColumn)({ name: "sender_user_id" })
|
|
6250
6297
|
], TaskQueryMessage.prototype, "senderUser", 2);
|
|
6251
6298
|
__decorateClass([
|
|
6252
|
-
(0,
|
|
6299
|
+
(0, import_typeorm73.Column)({
|
|
6253
6300
|
name: "sender_type",
|
|
6254
6301
|
type: "enum",
|
|
6255
6302
|
enum: TaskQueryMessageUserTypeEnum
|
|
6256
6303
|
})
|
|
6257
6304
|
], TaskQueryMessage.prototype, "senderType", 2);
|
|
6258
6305
|
__decorateClass([
|
|
6259
|
-
(0,
|
|
6306
|
+
(0, import_typeorm73.Column)({ name: "message", type: "varchar", nullable: true })
|
|
6260
6307
|
], TaskQueryMessage.prototype, "message", 2);
|
|
6261
6308
|
__decorateClass([
|
|
6262
|
-
(0,
|
|
6309
|
+
(0, import_typeorm73.Column)({ name: "attachment_url", type: "varchar", nullable: true })
|
|
6263
6310
|
], TaskQueryMessage.prototype, "attachmentUrl", 2);
|
|
6264
6311
|
__decorateClass([
|
|
6265
|
-
(0,
|
|
6312
|
+
(0, import_typeorm73.Column)({ name: "attachment_type", type: "varchar", nullable: true })
|
|
6266
6313
|
], TaskQueryMessage.prototype, "attachmentType", 2);
|
|
6267
6314
|
__decorateClass([
|
|
6268
|
-
(0,
|
|
6315
|
+
(0, import_typeorm73.Column)({ name: "meta", type: "jsonb", nullable: true })
|
|
6269
6316
|
], TaskQueryMessage.prototype, "meta", 2);
|
|
6270
6317
|
__decorateClass([
|
|
6271
|
-
(0,
|
|
6318
|
+
(0, import_typeorm73.Column)({ name: "is_read", type: "boolean", default: false })
|
|
6272
6319
|
], TaskQueryMessage.prototype, "isRead", 2);
|
|
6273
6320
|
__decorateClass([
|
|
6274
|
-
(0,
|
|
6321
|
+
(0, import_typeorm73.Column)({
|
|
6275
6322
|
name: "read_at",
|
|
6276
6323
|
type: "timestamp with time zone",
|
|
6277
6324
|
nullable: true
|
|
6278
6325
|
})
|
|
6279
6326
|
], TaskQueryMessage.prototype, "readAt", 2);
|
|
6280
6327
|
TaskQueryMessage = __decorateClass([
|
|
6281
|
-
(0,
|
|
6328
|
+
(0, import_typeorm73.Entity)("task_query_messages")
|
|
6282
6329
|
], TaskQueryMessage);
|
|
6283
6330
|
|
|
6284
6331
|
// src/entities/task-query.entity.ts
|
|
@@ -6302,58 +6349,58 @@ var TaskQueryStatusEnum = /* @__PURE__ */ ((TaskQueryStatusEnum2) => {
|
|
|
6302
6349
|
var TaskQuery = class extends BaseEntity {
|
|
6303
6350
|
};
|
|
6304
6351
|
__decorateClass([
|
|
6305
|
-
(0,
|
|
6306
|
-
(0,
|
|
6352
|
+
(0, import_typeorm74.Column)({ name: "task_id", type: "integer" }),
|
|
6353
|
+
(0, import_typeorm74.Index)()
|
|
6307
6354
|
], TaskQuery.prototype, "taskId", 2);
|
|
6308
6355
|
__decorateClass([
|
|
6309
|
-
(0,
|
|
6310
|
-
(0,
|
|
6356
|
+
(0, import_typeorm74.ManyToOne)(() => Task),
|
|
6357
|
+
(0, import_typeorm74.JoinColumn)({ name: "task_id" })
|
|
6311
6358
|
], TaskQuery.prototype, "task", 2);
|
|
6312
6359
|
__decorateClass([
|
|
6313
|
-
(0,
|
|
6314
|
-
(0,
|
|
6360
|
+
(0, import_typeorm74.Column)({ name: "raised_by_user_id", type: "integer" }),
|
|
6361
|
+
(0, import_typeorm74.Index)()
|
|
6315
6362
|
], TaskQuery.prototype, "raisedByUserId", 2);
|
|
6316
6363
|
__decorateClass([
|
|
6317
|
-
(0,
|
|
6318
|
-
(0,
|
|
6364
|
+
(0, import_typeorm74.ManyToOne)(() => User, (user) => user.raisedTaskQueries),
|
|
6365
|
+
(0, import_typeorm74.JoinColumn)({ name: "raised_by_user_id" })
|
|
6319
6366
|
], TaskQuery.prototype, "raisedByUser", 2);
|
|
6320
6367
|
__decorateClass([
|
|
6321
|
-
(0,
|
|
6368
|
+
(0, import_typeorm74.Column)({
|
|
6322
6369
|
name: "raised_by_type",
|
|
6323
6370
|
type: "enum",
|
|
6324
6371
|
enum: TaskQueryUserTypeEnum
|
|
6325
6372
|
})
|
|
6326
6373
|
], TaskQuery.prototype, "raisedByType", 2);
|
|
6327
6374
|
__decorateClass([
|
|
6328
|
-
(0,
|
|
6329
|
-
(0,
|
|
6375
|
+
(0, import_typeorm74.Column)({ name: "assigned_to_user_id", type: "integer" }),
|
|
6376
|
+
(0, import_typeorm74.Index)()
|
|
6330
6377
|
], TaskQuery.prototype, "assignedToUserId", 2);
|
|
6331
6378
|
__decorateClass([
|
|
6332
|
-
(0,
|
|
6333
|
-
(0,
|
|
6379
|
+
(0, import_typeorm74.ManyToOne)(() => User, (user) => user.assignedTaskQueries),
|
|
6380
|
+
(0, import_typeorm74.JoinColumn)({ name: "assigned_to_user_id" })
|
|
6334
6381
|
], TaskQuery.prototype, "assignedToUser", 2);
|
|
6335
6382
|
__decorateClass([
|
|
6336
|
-
(0,
|
|
6383
|
+
(0, import_typeorm74.Column)({
|
|
6337
6384
|
name: "assigned_to_type",
|
|
6338
6385
|
type: "enum",
|
|
6339
6386
|
enum: TaskQueryUserTypeEnum
|
|
6340
6387
|
})
|
|
6341
6388
|
], TaskQuery.prototype, "assignedToType", 2);
|
|
6342
6389
|
__decorateClass([
|
|
6343
|
-
(0,
|
|
6390
|
+
(0, import_typeorm74.Column)({
|
|
6344
6391
|
name: "query_category",
|
|
6345
6392
|
type: "enum",
|
|
6346
6393
|
enum: TaskQueryCategoryEnum
|
|
6347
6394
|
})
|
|
6348
6395
|
], TaskQuery.prototype, "queryCategory", 2);
|
|
6349
6396
|
__decorateClass([
|
|
6350
|
-
(0,
|
|
6397
|
+
(0, import_typeorm74.Column)({ name: "subject", type: "varchar", nullable: true })
|
|
6351
6398
|
], TaskQuery.prototype, "subject", 2);
|
|
6352
6399
|
__decorateClass([
|
|
6353
|
-
(0,
|
|
6400
|
+
(0, import_typeorm74.Column)({ name: "description", type: "varchar", nullable: true })
|
|
6354
6401
|
], TaskQuery.prototype, "description", 2);
|
|
6355
6402
|
__decorateClass([
|
|
6356
|
-
(0,
|
|
6403
|
+
(0, import_typeorm74.Column)({
|
|
6357
6404
|
name: "status",
|
|
6358
6405
|
type: "enum",
|
|
6359
6406
|
enum: TaskQueryStatusEnum,
|
|
@@ -6361,26 +6408,26 @@ __decorateClass([
|
|
|
6361
6408
|
})
|
|
6362
6409
|
], TaskQuery.prototype, "status", 2);
|
|
6363
6410
|
__decorateClass([
|
|
6364
|
-
(0,
|
|
6411
|
+
(0, import_typeorm74.Column)({
|
|
6365
6412
|
name: "last_message_at",
|
|
6366
6413
|
type: "timestamp with time zone",
|
|
6367
6414
|
nullable: true
|
|
6368
6415
|
})
|
|
6369
6416
|
], TaskQuery.prototype, "lastMessageAt", 2);
|
|
6370
6417
|
__decorateClass([
|
|
6371
|
-
(0,
|
|
6418
|
+
(0, import_typeorm74.Column)({ name: "last_message_preview", type: "varchar", nullable: true })
|
|
6372
6419
|
], TaskQuery.prototype, "lastMessagePreview", 2);
|
|
6373
6420
|
__decorateClass([
|
|
6374
|
-
(0,
|
|
6421
|
+
(0, import_typeorm74.Column)({ name: "unread_count_client", type: "integer", default: 0 })
|
|
6375
6422
|
], TaskQuery.prototype, "unreadCountClient", 2);
|
|
6376
6423
|
__decorateClass([
|
|
6377
|
-
(0,
|
|
6424
|
+
(0, import_typeorm74.Column)({ name: "unread_count_freelancer", type: "integer", default: 0 })
|
|
6378
6425
|
], TaskQuery.prototype, "unreadCountFreelancer", 2);
|
|
6379
6426
|
__decorateClass([
|
|
6380
|
-
(0,
|
|
6427
|
+
(0, import_typeorm74.OneToMany)(() => TaskQueryMessage, (message) => message.taskQuery, { cascade: true })
|
|
6381
6428
|
], TaskQuery.prototype, "messages", 2);
|
|
6382
6429
|
TaskQuery = __decorateClass([
|
|
6383
|
-
(0,
|
|
6430
|
+
(0, import_typeorm74.Entity)("task_queries")
|
|
6384
6431
|
], TaskQuery);
|
|
6385
6432
|
|
|
6386
6433
|
// src/entities/user.entity.ts
|
|
@@ -6409,51 +6456,51 @@ var Provider = /* @__PURE__ */ ((Provider2) => {
|
|
|
6409
6456
|
var User = class extends BaseEntity {
|
|
6410
6457
|
};
|
|
6411
6458
|
__decorateClass([
|
|
6412
|
-
(0,
|
|
6459
|
+
(0, import_typeorm75.Column)({ name: "unique_id", type: "varchar", unique: true })
|
|
6413
6460
|
], User.prototype, "uniqueId", 2);
|
|
6414
6461
|
__decorateClass([
|
|
6415
|
-
(0,
|
|
6416
|
-
(0,
|
|
6462
|
+
(0, import_typeorm75.Column)({ name: "parent_id", type: "integer", nullable: true }),
|
|
6463
|
+
(0, import_typeorm75.Index)()
|
|
6417
6464
|
], User.prototype, "parentId", 2);
|
|
6418
6465
|
__decorateClass([
|
|
6419
|
-
(0,
|
|
6420
|
-
(0,
|
|
6466
|
+
(0, import_typeorm75.ManyToOne)(() => User, (user) => user.children, { nullable: true }),
|
|
6467
|
+
(0, import_typeorm75.JoinColumn)({ name: "parent_id" })
|
|
6421
6468
|
], User.prototype, "parent", 2);
|
|
6422
6469
|
__decorateClass([
|
|
6423
|
-
(0,
|
|
6470
|
+
(0, import_typeorm75.OneToMany)(() => User, (user) => user.parent)
|
|
6424
6471
|
], User.prototype, "children", 2);
|
|
6425
6472
|
__decorateClass([
|
|
6426
|
-
(0,
|
|
6473
|
+
(0, import_typeorm75.Column)({ name: "username", type: "varchar", unique: true, nullable: true })
|
|
6427
6474
|
], User.prototype, "username", 2);
|
|
6428
6475
|
__decorateClass([
|
|
6429
|
-
(0,
|
|
6476
|
+
(0, import_typeorm75.Column)({ name: "first_name", type: "varchar", length: 100, nullable: true })
|
|
6430
6477
|
], User.prototype, "firstName", 2);
|
|
6431
6478
|
__decorateClass([
|
|
6432
|
-
(0,
|
|
6479
|
+
(0, import_typeorm75.Column)({ name: "last_name", type: "varchar", length: 100, nullable: true })
|
|
6433
6480
|
], User.prototype, "lastName", 2);
|
|
6434
6481
|
__decorateClass([
|
|
6435
|
-
(0,
|
|
6482
|
+
(0, import_typeorm75.Column)({ name: "date_of_birth", type: "date", nullable: true })
|
|
6436
6483
|
], User.prototype, "dateOfBirth", 2);
|
|
6437
6484
|
__decorateClass([
|
|
6438
|
-
(0,
|
|
6485
|
+
(0, import_typeorm75.Column)({ name: "gender", type: "varchar", length: 10, nullable: true })
|
|
6439
6486
|
], User.prototype, "gender", 2);
|
|
6440
6487
|
__decorateClass([
|
|
6441
|
-
(0,
|
|
6488
|
+
(0, import_typeorm75.Column)({ name: "profile_picture_url", type: "text", nullable: true })
|
|
6442
6489
|
], User.prototype, "profilePictureUrl", 2);
|
|
6443
6490
|
__decorateClass([
|
|
6444
|
-
(0,
|
|
6491
|
+
(0, import_typeorm75.Column)({ name: "email", type: "varchar", unique: true })
|
|
6445
6492
|
], User.prototype, "email", 2);
|
|
6446
6493
|
__decorateClass([
|
|
6447
|
-
(0,
|
|
6494
|
+
(0, import_typeorm75.Column)({ name: "mobile_code", type: "varchar", nullable: true })
|
|
6448
6495
|
], User.prototype, "mobileCode", 2);
|
|
6449
6496
|
__decorateClass([
|
|
6450
|
-
(0,
|
|
6497
|
+
(0, import_typeorm75.Column)({ name: "mobile", type: "varchar", nullable: true })
|
|
6451
6498
|
], User.prototype, "mobile", 2);
|
|
6452
6499
|
__decorateClass([
|
|
6453
|
-
(0,
|
|
6500
|
+
(0, import_typeorm75.Column)({ name: "password", type: "varchar", nullable: true })
|
|
6454
6501
|
], User.prototype, "password", 2);
|
|
6455
6502
|
__decorateClass([
|
|
6456
|
-
(0,
|
|
6503
|
+
(0, import_typeorm75.Column)({
|
|
6457
6504
|
name: "account_type",
|
|
6458
6505
|
type: "enum",
|
|
6459
6506
|
enum: AccountType2,
|
|
@@ -6461,7 +6508,7 @@ __decorateClass([
|
|
|
6461
6508
|
})
|
|
6462
6509
|
], User.prototype, "accountType", 2);
|
|
6463
6510
|
__decorateClass([
|
|
6464
|
-
(0,
|
|
6511
|
+
(0, import_typeorm75.Column)({
|
|
6465
6512
|
name: "account_status",
|
|
6466
6513
|
type: "enum",
|
|
6467
6514
|
enum: AccountStatus,
|
|
@@ -6469,45 +6516,45 @@ __decorateClass([
|
|
|
6469
6516
|
})
|
|
6470
6517
|
], User.prototype, "accountStatus", 2);
|
|
6471
6518
|
__decorateClass([
|
|
6472
|
-
(0,
|
|
6519
|
+
(0, import_typeorm75.Column)({ name: "is_email_verified", type: "boolean", default: false })
|
|
6473
6520
|
], User.prototype, "isEmailVerified", 2);
|
|
6474
6521
|
__decorateClass([
|
|
6475
|
-
(0,
|
|
6522
|
+
(0, import_typeorm75.Column)({ name: "is_mobile_verified", type: "boolean", default: false })
|
|
6476
6523
|
], User.prototype, "isMobileVerified", 2);
|
|
6477
6524
|
__decorateClass([
|
|
6478
|
-
(0,
|
|
6525
|
+
(0, import_typeorm75.Column)({ name: "is_social", type: "boolean", default: false })
|
|
6479
6526
|
], User.prototype, "isSocial", 2);
|
|
6480
6527
|
__decorateClass([
|
|
6481
|
-
(0,
|
|
6528
|
+
(0, import_typeorm75.Column)({ name: "is_referral_user", type: "boolean", default: false })
|
|
6482
6529
|
], User.prototype, "isReferralUser", 2);
|
|
6483
6530
|
__decorateClass([
|
|
6484
|
-
(0,
|
|
6531
|
+
(0, import_typeorm75.Column)({
|
|
6485
6532
|
name: "last_login_at",
|
|
6486
6533
|
type: "timestamp with time zone",
|
|
6487
6534
|
nullable: true
|
|
6488
6535
|
})
|
|
6489
6536
|
], User.prototype, "lastLoginAt", 2);
|
|
6490
6537
|
__decorateClass([
|
|
6491
|
-
(0,
|
|
6538
|
+
(0, import_typeorm75.Column)({ name: "last_login_ip", type: "varchar", nullable: true })
|
|
6492
6539
|
], User.prototype, "lastLoginIp", 2);
|
|
6493
6540
|
__decorateClass([
|
|
6494
|
-
(0,
|
|
6541
|
+
(0, import_typeorm75.Column)({ name: "reset_token", type: "varchar", nullable: true })
|
|
6495
6542
|
], User.prototype, "resetToken", 2);
|
|
6496
6543
|
__decorateClass([
|
|
6497
|
-
(0,
|
|
6544
|
+
(0, import_typeorm75.Column)({
|
|
6498
6545
|
name: "reset_token_expire_at",
|
|
6499
6546
|
type: "timestamp with time zone",
|
|
6500
6547
|
nullable: true
|
|
6501
6548
|
})
|
|
6502
6549
|
], User.prototype, "resetTokenExpireAt", 2);
|
|
6503
6550
|
__decorateClass([
|
|
6504
|
-
(0,
|
|
6551
|
+
(0, import_typeorm75.Column)({ name: "set_password_token", type: "varchar", nullable: true })
|
|
6505
6552
|
], User.prototype, "setPasswordToken", 2);
|
|
6506
6553
|
__decorateClass([
|
|
6507
|
-
(0,
|
|
6554
|
+
(0, import_typeorm75.OneToMany)(() => RefreshToken, (token) => token.user)
|
|
6508
6555
|
], User.prototype, "refreshTokens", 2);
|
|
6509
6556
|
__decorateClass([
|
|
6510
|
-
(0,
|
|
6557
|
+
(0, import_typeorm75.Column)({
|
|
6511
6558
|
name: "provider",
|
|
6512
6559
|
type: "enum",
|
|
6513
6560
|
enum: Provider,
|
|
@@ -6516,266 +6563,266 @@ __decorateClass([
|
|
|
6516
6563
|
})
|
|
6517
6564
|
], User.prototype, "provider", 2);
|
|
6518
6565
|
__decorateClass([
|
|
6519
|
-
(0,
|
|
6566
|
+
(0, import_typeorm75.Column)({ name: "provider_token", type: "varchar", nullable: true })
|
|
6520
6567
|
], User.prototype, "providerToken", 2);
|
|
6521
6568
|
__decorateClass([
|
|
6522
|
-
(0,
|
|
6569
|
+
(0, import_typeorm75.Column)({ name: "linkedin_id", type: "varchar", nullable: true })
|
|
6523
6570
|
], User.prototype, "linkedInId", 2);
|
|
6524
6571
|
__decorateClass([
|
|
6525
|
-
(0,
|
|
6572
|
+
(0, import_typeorm75.Column)({ name: "google_id", type: "varchar", nullable: true })
|
|
6526
6573
|
], User.prototype, "googleId", 2);
|
|
6527
6574
|
__decorateClass([
|
|
6528
|
-
(0,
|
|
6575
|
+
(0, import_typeorm75.Column)({ name: "gitlabs_id", type: "varchar", nullable: true })
|
|
6529
6576
|
], User.prototype, "gitLabsId", 2);
|
|
6530
6577
|
__decorateClass([
|
|
6531
|
-
(0,
|
|
6578
|
+
(0, import_typeorm75.Column)({ name: "onboarded_by", type: "varchar", nullable: true })
|
|
6532
6579
|
], User.prototype, "onBoardedBy", 2);
|
|
6533
6580
|
__decorateClass([
|
|
6534
|
-
(0,
|
|
6581
|
+
(0, import_typeorm75.OneToMany)(() => Otp, (otp) => otp.user)
|
|
6535
6582
|
], User.prototype, "otps", 2);
|
|
6536
6583
|
__decorateClass([
|
|
6537
|
-
(0,
|
|
6584
|
+
(0, import_typeorm75.OneToMany)(() => SenseloafLog, (senseloafLog) => senseloafLog.user)
|
|
6538
6585
|
], User.prototype, "senseloafLogs", 2);
|
|
6539
6586
|
__decorateClass([
|
|
6540
|
-
(0,
|
|
6587
|
+
(0, import_typeorm75.OneToOne)(() => CompanyProfile, (companyProfile) => companyProfile.user)
|
|
6541
6588
|
], User.prototype, "companyProfile", 2);
|
|
6542
6589
|
__decorateClass([
|
|
6543
|
-
(0,
|
|
6590
|
+
(0, import_typeorm75.OneToMany)(() => CompanySkill, (companySkill) => companySkill.user)
|
|
6544
6591
|
], User.prototype, "companySkills", 2);
|
|
6545
6592
|
__decorateClass([
|
|
6546
|
-
(0,
|
|
6593
|
+
(0, import_typeorm75.OneToMany)(
|
|
6547
6594
|
() => CompanyMemberRole,
|
|
6548
6595
|
(companyMemberRole) => companyMemberRole.user
|
|
6549
6596
|
)
|
|
6550
6597
|
], User.prototype, "companyMemberRoles", 2);
|
|
6551
6598
|
__decorateClass([
|
|
6552
|
-
(0,
|
|
6599
|
+
(0, import_typeorm75.OneToMany)(() => AiInterview, (aiInterview) => aiInterview.interviwer)
|
|
6553
6600
|
], User.prototype, "companyAiInterview", 2);
|
|
6554
6601
|
__decorateClass([
|
|
6555
|
-
(0,
|
|
6602
|
+
(0, import_typeorm75.OneToMany)(() => F2FInterview, (F2FInterview2) => F2FInterview2.interviwer)
|
|
6556
6603
|
], User.prototype, "clientF2FInterviews", 2);
|
|
6557
6604
|
__decorateClass([
|
|
6558
|
-
(0,
|
|
6605
|
+
(0, import_typeorm75.OneToOne)(
|
|
6559
6606
|
() => FreelancerProfile,
|
|
6560
6607
|
(freelancerProfile) => freelancerProfile.user
|
|
6561
6608
|
)
|
|
6562
6609
|
], User.prototype, "freelancerProfile", 2);
|
|
6563
6610
|
__decorateClass([
|
|
6564
|
-
(0,
|
|
6611
|
+
(0, import_typeorm75.OneToOne)(() => FreelancerResume, (freelancerResume) => freelancerResume.user)
|
|
6565
6612
|
], User.prototype, "freelancerResume", 2);
|
|
6566
6613
|
__decorateClass([
|
|
6567
|
-
(0,
|
|
6614
|
+
(0, import_typeorm75.OneToMany)(
|
|
6568
6615
|
() => FreelancerAssessmentRequest,
|
|
6569
6616
|
(freelancerAssessmentRequest) => freelancerAssessmentRequest.freelancer
|
|
6570
6617
|
)
|
|
6571
6618
|
], User.prototype, "freelancerAssessmentRequests", 2);
|
|
6572
6619
|
__decorateClass([
|
|
6573
|
-
(0,
|
|
6620
|
+
(0, import_typeorm75.OneToMany)(
|
|
6574
6621
|
() => FreelancerAssessmentRequest,
|
|
6575
6622
|
(freelancerAssessment) => freelancerAssessment.approvedBy
|
|
6576
6623
|
)
|
|
6577
6624
|
], User.prototype, "assessmentRequests", 2);
|
|
6578
6625
|
__decorateClass([
|
|
6579
|
-
(0,
|
|
6626
|
+
(0, import_typeorm75.OneToMany)(
|
|
6580
6627
|
() => FreelancerAssessment,
|
|
6581
6628
|
(freelancerAssessment) => freelancerAssessment.user
|
|
6582
6629
|
)
|
|
6583
6630
|
], User.prototype, "assessments", 2);
|
|
6584
6631
|
__decorateClass([
|
|
6585
|
-
(0,
|
|
6632
|
+
(0, import_typeorm75.OneToMany)(
|
|
6586
6633
|
() => AssessmentAnswer,
|
|
6587
6634
|
(assessmentAnswer) => assessmentAnswer.user
|
|
6588
6635
|
)
|
|
6589
6636
|
], User.prototype, "assessmentAnswers", 2);
|
|
6590
6637
|
__decorateClass([
|
|
6591
|
-
(0,
|
|
6638
|
+
(0, import_typeorm75.OneToMany)(() => FreelancerSkill, (freelancerSkill) => freelancerSkill.user)
|
|
6592
6639
|
], User.prototype, "freelancerSkills", 2);
|
|
6593
6640
|
__decorateClass([
|
|
6594
|
-
(0,
|
|
6641
|
+
(0, import_typeorm75.OneToMany)(
|
|
6595
6642
|
() => FreelancerExperience,
|
|
6596
6643
|
(freelancerExperience) => freelancerExperience.user
|
|
6597
6644
|
)
|
|
6598
6645
|
], User.prototype, "freelancerExperience", 2);
|
|
6599
6646
|
__decorateClass([
|
|
6600
|
-
(0,
|
|
6647
|
+
(0, import_typeorm75.OneToMany)(
|
|
6601
6648
|
() => FreelancerEducation,
|
|
6602
6649
|
(freelancerEducation) => freelancerEducation.user
|
|
6603
6650
|
)
|
|
6604
6651
|
], User.prototype, "freelancerEducation", 2);
|
|
6605
6652
|
__decorateClass([
|
|
6606
|
-
(0,
|
|
6653
|
+
(0, import_typeorm75.OneToMany)(
|
|
6607
6654
|
() => FreelancerProject,
|
|
6608
6655
|
(freelancerProject) => freelancerProject.user
|
|
6609
6656
|
)
|
|
6610
6657
|
], User.prototype, "freelancerProject", 2);
|
|
6611
6658
|
__decorateClass([
|
|
6612
|
-
(0,
|
|
6659
|
+
(0, import_typeorm75.OneToMany)(
|
|
6613
6660
|
() => FreelancerCaseStudy,
|
|
6614
6661
|
(freelancerCaseStudy) => freelancerCaseStudy.user
|
|
6615
6662
|
)
|
|
6616
6663
|
], User.prototype, "freelancerCaseStudy", 2);
|
|
6617
6664
|
__decorateClass([
|
|
6618
|
-
(0,
|
|
6665
|
+
(0, import_typeorm75.OneToMany)(() => FreelancerTool, (freelancerTool) => freelancerTool.user)
|
|
6619
6666
|
], User.prototype, "freelancerTool", 2);
|
|
6620
6667
|
__decorateClass([
|
|
6621
|
-
(0,
|
|
6668
|
+
(0, import_typeorm75.OneToMany)(
|
|
6622
6669
|
() => FreelancerFramework,
|
|
6623
6670
|
(freelancerFramework) => freelancerFramework.user
|
|
6624
6671
|
)
|
|
6625
6672
|
], User.prototype, "freelancerFramework", 2);
|
|
6626
6673
|
__decorateClass([
|
|
6627
|
-
(0,
|
|
6674
|
+
(0, import_typeorm75.OneToOne)(
|
|
6628
6675
|
() => FreelancerDeclaration,
|
|
6629
6676
|
(freelancerDeclaration) => freelancerDeclaration.user
|
|
6630
6677
|
)
|
|
6631
6678
|
], User.prototype, "freelancerDeclaration", 2);
|
|
6632
6679
|
__decorateClass([
|
|
6633
|
-
(0,
|
|
6680
|
+
(0, import_typeorm75.OneToMany)(() => AssessmetQuestion, (assessmetQuestion) => assessmetQuestion.candidate)
|
|
6634
6681
|
], User.prototype, "freelancerMcq", 2);
|
|
6635
6682
|
__decorateClass([
|
|
6636
|
-
(0,
|
|
6683
|
+
(0, import_typeorm75.OneToMany)(() => AiInterview, (aiInterview) => aiInterview.candidate)
|
|
6637
6684
|
], User.prototype, "freelancerAiInterview", 2);
|
|
6638
6685
|
__decorateClass([
|
|
6639
|
-
(0,
|
|
6686
|
+
(0, import_typeorm75.OneToMany)(() => F2FInterview, (F2FInterview2) => F2FInterview2.candidate)
|
|
6640
6687
|
], User.prototype, "freelancerF2FInterviews", 2);
|
|
6641
6688
|
__decorateClass([
|
|
6642
|
-
(0,
|
|
6689
|
+
(0, import_typeorm75.OneToMany)(
|
|
6643
6690
|
() => F2fInterviewRescheduleRequest,
|
|
6644
6691
|
(f2fInterviewRescheduleRequest) => f2fInterviewRescheduleRequest.candidate
|
|
6645
6692
|
)
|
|
6646
6693
|
], User.prototype, "freelancerF2FInterviewRescheduleRequests", 2);
|
|
6647
6694
|
__decorateClass([
|
|
6648
|
-
(0,
|
|
6695
|
+
(0, import_typeorm75.OneToMany)(
|
|
6649
6696
|
() => AiInterviewRescheduleRequest,
|
|
6650
6697
|
(aiInterviewRescheduleRequest) => aiInterviewRescheduleRequest.candidate
|
|
6651
6698
|
)
|
|
6652
6699
|
], User.prototype, "freelancerAiInterviewRescheduleRequests", 2);
|
|
6653
6700
|
__decorateClass([
|
|
6654
|
-
(0,
|
|
6701
|
+
(0, import_typeorm75.OneToMany)(
|
|
6655
6702
|
() => AiInterviewRescheduleRequest,
|
|
6656
6703
|
(aiInterviewRescheduleRequest) => aiInterviewRescheduleRequest.client
|
|
6657
6704
|
)
|
|
6658
6705
|
], User.prototype, "clientAiInterviewRescheduleRequests", 2);
|
|
6659
6706
|
__decorateClass([
|
|
6660
|
-
(0,
|
|
6707
|
+
(0, import_typeorm75.OneToMany)(() => Job, (job) => job.user)
|
|
6661
6708
|
], User.prototype, "jobs", 2);
|
|
6662
6709
|
__decorateClass([
|
|
6663
|
-
(0,
|
|
6710
|
+
(0, import_typeorm75.OneToMany)(() => Task, (task) => task.client)
|
|
6664
6711
|
], User.prototype, "clientTasks", 2);
|
|
6665
6712
|
__decorateClass([
|
|
6666
|
-
(0,
|
|
6713
|
+
(0, import_typeorm75.OneToMany)(() => Task, (task) => task.freelancer)
|
|
6667
6714
|
], User.prototype, "freelancerTasks", 2);
|
|
6668
6715
|
__decorateClass([
|
|
6669
|
-
(0,
|
|
6716
|
+
(0, import_typeorm75.OneToMany)(() => TaskQuery, (taskQuery) => taskQuery.raisedByUser)
|
|
6670
6717
|
], User.prototype, "raisedTaskQueries", 2);
|
|
6671
6718
|
__decorateClass([
|
|
6672
|
-
(0,
|
|
6719
|
+
(0, import_typeorm75.OneToMany)(() => TaskQuery, (taskQuery) => taskQuery.assignedToUser)
|
|
6673
6720
|
], User.prototype, "assignedTaskQueries", 2);
|
|
6674
6721
|
__decorateClass([
|
|
6675
|
-
(0,
|
|
6722
|
+
(0, import_typeorm75.OneToMany)(() => TaskQueryMessage, (message) => message.senderUser)
|
|
6676
6723
|
], User.prototype, "taskQueryMessages", 2);
|
|
6677
6724
|
__decorateClass([
|
|
6678
|
-
(0,
|
|
6725
|
+
(0, import_typeorm75.OneToMany)(() => JobApplication, (jobApplication) => jobApplication.user)
|
|
6679
6726
|
], User.prototype, "jobApplications", 2);
|
|
6680
6727
|
__decorateClass([
|
|
6681
|
-
(0,
|
|
6728
|
+
(0, import_typeorm75.OneToMany)(() => Interview, (interview) => interview.user)
|
|
6682
6729
|
], User.prototype, "interviews", 2);
|
|
6683
6730
|
__decorateClass([
|
|
6684
|
-
(0,
|
|
6731
|
+
(0, import_typeorm75.OneToMany)(() => BankDetail, (bankDetail) => bankDetail.user)
|
|
6685
6732
|
], User.prototype, "bankDetail", 2);
|
|
6686
6733
|
__decorateClass([
|
|
6687
|
-
(0,
|
|
6734
|
+
(0, import_typeorm75.OneToMany)(
|
|
6688
6735
|
() => SystemPreference,
|
|
6689
6736
|
(systemPreference) => systemPreference.user
|
|
6690
6737
|
)
|
|
6691
6738
|
], User.prototype, "systemPreference", 2);
|
|
6692
6739
|
__decorateClass([
|
|
6693
|
-
(0,
|
|
6740
|
+
(0, import_typeorm75.OneToMany)(() => Rating, (rating) => rating.reviewer)
|
|
6694
6741
|
], User.prototype, "givenRatings", 2);
|
|
6695
6742
|
__decorateClass([
|
|
6696
|
-
(0,
|
|
6743
|
+
(0, import_typeorm75.OneToMany)(() => Rating, (rating) => rating.reviewee)
|
|
6697
6744
|
], User.prototype, "receivedRatings", 2);
|
|
6698
6745
|
__decorateClass([
|
|
6699
|
-
(0,
|
|
6746
|
+
(0, import_typeorm75.OneToMany)(() => AdminUserRole, (adminUserRole) => adminUserRole.user)
|
|
6700
6747
|
], User.prototype, "adminUserRoles", 2);
|
|
6701
6748
|
__decorateClass([
|
|
6702
|
-
(0,
|
|
6749
|
+
(0, import_typeorm75.OneToMany)(() => ContractSummary, (contractSummary) => contractSummary.clientId, {
|
|
6703
6750
|
cascade: true
|
|
6704
6751
|
})
|
|
6705
6752
|
], User.prototype, "clientContractSummaries", 2);
|
|
6706
6753
|
__decorateClass([
|
|
6707
|
-
(0,
|
|
6754
|
+
(0, import_typeorm75.OneToMany)(() => Contract, (contract) => contract.client)
|
|
6708
6755
|
], User.prototype, "clientContracts", 2);
|
|
6709
6756
|
__decorateClass([
|
|
6710
|
-
(0,
|
|
6757
|
+
(0, import_typeorm75.OneToMany)(() => Hiring, (hiring) => hiring.client)
|
|
6711
6758
|
], User.prototype, "clientHirings", 2);
|
|
6712
6759
|
__decorateClass([
|
|
6713
|
-
(0,
|
|
6760
|
+
(0, import_typeorm75.OneToMany)(() => EscrowWallet, (escrowWallet) => escrowWallet.client)
|
|
6714
6761
|
], User.prototype, "clientEscrowWallets", 2);
|
|
6715
6762
|
__decorateClass([
|
|
6716
|
-
(0,
|
|
6763
|
+
(0, import_typeorm75.OneToMany)(() => ContractSummary, (contractSummary) => contractSummary.freelancerId, {
|
|
6717
6764
|
cascade: true
|
|
6718
6765
|
})
|
|
6719
6766
|
], User.prototype, "freelancerContractSummaries", 2);
|
|
6720
6767
|
__decorateClass([
|
|
6721
|
-
(0,
|
|
6768
|
+
(0, import_typeorm75.OneToMany)(() => Contract, (contract) => contract.freelancer)
|
|
6722
6769
|
], User.prototype, "freelancerContracts", 2);
|
|
6723
6770
|
__decorateClass([
|
|
6724
|
-
(0,
|
|
6771
|
+
(0, import_typeorm75.OneToMany)(() => Hiring, (hiring) => hiring.freelancer)
|
|
6725
6772
|
], User.prototype, "freelancerHirings", 2);
|
|
6726
6773
|
__decorateClass([
|
|
6727
|
-
(0,
|
|
6774
|
+
(0, import_typeorm75.OneToMany)(() => EscrowWallet, (escrowWallet) => escrowWallet.freelancer)
|
|
6728
6775
|
], User.prototype, "freelancerEscrowWallets", 2);
|
|
6729
6776
|
__decorateClass([
|
|
6730
|
-
(0,
|
|
6777
|
+
(0, import_typeorm75.OneToOne)(() => Signature, (signature) => signature.user)
|
|
6731
6778
|
], User.prototype, "signatures", 2);
|
|
6732
6779
|
__decorateClass([
|
|
6733
|
-
(0,
|
|
6780
|
+
(0, import_typeorm75.OneToMany)(() => Timesheet, (timesheet) => timesheet.client)
|
|
6734
6781
|
], User.prototype, "clientTimesheets", 2);
|
|
6735
6782
|
__decorateClass([
|
|
6736
|
-
(0,
|
|
6783
|
+
(0, import_typeorm75.OneToMany)(() => Timesheet, (timesheet) => timesheet.freelancer)
|
|
6737
6784
|
], User.prototype, "freelancerTimesheets", 2);
|
|
6738
6785
|
__decorateClass([
|
|
6739
|
-
(0,
|
|
6786
|
+
(0, import_typeorm75.OneToMany)(() => TimesheetLine, (timesheetLine) => timesheetLine.client)
|
|
6740
6787
|
], User.prototype, "clientTimesheetLine", 2);
|
|
6741
6788
|
__decorateClass([
|
|
6742
|
-
(0,
|
|
6789
|
+
(0, import_typeorm75.OneToMany)(() => Invoice, (invoice) => invoice.client)
|
|
6743
6790
|
], User.prototype, "clientInvoice", 2);
|
|
6744
6791
|
__decorateClass([
|
|
6745
|
-
(0,
|
|
6792
|
+
(0, import_typeorm75.OneToMany)(() => TimesheetLine, (timesheetLine) => timesheetLine.freelancer)
|
|
6746
6793
|
], User.prototype, "freelancerTimesheetLine", 2);
|
|
6747
6794
|
__decorateClass([
|
|
6748
|
-
(0,
|
|
6795
|
+
(0, import_typeorm75.OneToMany)(() => Invoice, (invoice) => invoice.freelancer)
|
|
6749
6796
|
], User.prototype, "freelancerInvoice", 2);
|
|
6750
6797
|
__decorateClass([
|
|
6751
|
-
(0,
|
|
6798
|
+
(0, import_typeorm75.OneToMany)(() => ClientCandidatePreference, (clientCandidatePreference) => clientCandidatePreference.client, { cascade: true })
|
|
6752
6799
|
], User.prototype, "clientPreferencesGiven", 2);
|
|
6753
6800
|
__decorateClass([
|
|
6754
|
-
(0,
|
|
6801
|
+
(0, import_typeorm75.OneToMany)(() => ClientCandidatePreference, (clientCandidatePreference) => clientCandidatePreference.candidate)
|
|
6755
6802
|
], User.prototype, "clientPreferencesReceived", 2);
|
|
6756
6803
|
__decorateClass([
|
|
6757
|
-
(0,
|
|
6804
|
+
(0, import_typeorm75.OneToMany)(() => Dispute, (dispute) => dispute.initiator, { cascade: true })
|
|
6758
6805
|
], User.prototype, "initiatedDisputes", 2);
|
|
6759
6806
|
__decorateClass([
|
|
6760
|
-
(0,
|
|
6807
|
+
(0, import_typeorm75.OneToMany)(() => Dispute, (dispute) => dispute.respondent, { cascade: true })
|
|
6761
6808
|
], User.prototype, "respondentDisputes", 2);
|
|
6762
6809
|
__decorateClass([
|
|
6763
|
-
(0,
|
|
6810
|
+
(0, import_typeorm75.OneToOne)(() => Wallet, (wallet) => wallet.user)
|
|
6764
6811
|
], User.prototype, "wallet", 2);
|
|
6765
6812
|
__decorateClass([
|
|
6766
|
-
(0,
|
|
6813
|
+
(0, import_typeorm75.OneToMany)(() => StripeTransaction, (stripeTransaction) => stripeTransaction.user, { cascade: true })
|
|
6767
6814
|
], User.prototype, "stripeTransactions", 2);
|
|
6768
6815
|
__decorateClass([
|
|
6769
|
-
(0,
|
|
6816
|
+
(0, import_typeorm75.OneToMany)(() => Dispute, (dispute) => dispute.client)
|
|
6770
6817
|
], User.prototype, "clientDisputes", 2);
|
|
6771
6818
|
__decorateClass([
|
|
6772
|
-
(0,
|
|
6819
|
+
(0, import_typeorm75.OneToMany)(() => Dispute, (dispute) => dispute.freelancer)
|
|
6773
6820
|
], User.prototype, "freelancerDisputes", 2);
|
|
6774
6821
|
__decorateClass([
|
|
6775
|
-
(0,
|
|
6822
|
+
(0, import_typeorm75.OneToMany)(() => InAppNotification, (inAppNotification) => inAppNotification.user)
|
|
6776
6823
|
], User.prototype, "inAppNotifications", 2);
|
|
6777
6824
|
User = __decorateClass([
|
|
6778
|
-
(0,
|
|
6825
|
+
(0, import_typeorm75.Entity)("users")
|
|
6779
6826
|
], User);
|
|
6780
6827
|
|
|
6781
6828
|
// src/modules/user/subadmin/dto/update-subadmin-account-status.dto.ts
|
|
@@ -10877,6 +10924,7 @@ var CONTRACT_PATTERN = {
|
|
|
10877
10924
|
fetchHiredFreelancerForGroupCreation: "fetch.hired.freelancer.for.group.creation",
|
|
10878
10925
|
fetchActiveContractFreelancerCount: "fetch.active.contract.freelancer.count",
|
|
10879
10926
|
fetchJobsDropDownForContractFilters: "fetch.jobs.dropdown.for.contract.filters",
|
|
10927
|
+
fetchJobsDropDownFortaskFilters: "fetch.jobs.dropdown.for.task.filters",
|
|
10880
10928
|
fetchOfferedJobsForFreelancer: "fetch.offered.jobs.for.freelancer",
|
|
10881
10929
|
fetchContractsForClient: "fetch.contract.for.client",
|
|
10882
10930
|
fetchContractCountForClientAsPerStatus: "fetch.contract.count.for.client.as.per.status",
|
|
@@ -11219,6 +11267,10 @@ __decorateClass([
|
|
|
11219
11267
|
__decorateClass([
|
|
11220
11268
|
(0, import_class_validator138.IsNotEmpty)({ message: "Description is required" })
|
|
11221
11269
|
], CreateFreelancerTimesheetDto.prototype, "description", 2);
|
|
11270
|
+
__decorateClass([
|
|
11271
|
+
(0, import_class_validator138.IsOptional)(),
|
|
11272
|
+
(0, import_class_validator138.IsBoolean)()
|
|
11273
|
+
], CreateFreelancerTimesheetDto.prototype, "skipTaskLogSync", 2);
|
|
11222
11274
|
|
|
11223
11275
|
// src/modules/timesheet/dto/update-freelancer-timesheet.dto.ts
|
|
11224
11276
|
var import_class_validator139 = require("class-validator");
|
|
@@ -12953,7 +13005,14 @@ var TASK_PATTERN = {
|
|
|
12953
13005
|
deleteTask: "delete.task",
|
|
12954
13006
|
addClientRemark: "task.client.remark",
|
|
12955
13007
|
markTaskAsCompleted: "task.client.mark.as.completed",
|
|
12956
|
-
|
|
13008
|
+
markTaskAsSubmitted: "task.freelancer.mark.as.submitted",
|
|
13009
|
+
updateEstimateTime: "task.freelancer.update.estimate.time",
|
|
13010
|
+
addTaskQuery: "task.query.add",
|
|
13011
|
+
fetchTaskQueriesWithDetails: "task.query.fetch.with.details",
|
|
13012
|
+
addTaskQueryReply: "task.query.reply.add",
|
|
13013
|
+
markTaskQueryMessagesRead: "task.query.messages.read",
|
|
13014
|
+
addTaskLogTime: "task.freelancer.add.log.time",
|
|
13015
|
+
syncTaskLogTimeFromTimesheet: "sync.task.log.time.from.timesheet"
|
|
12957
13016
|
};
|
|
12958
13017
|
|
|
12959
13018
|
// src/modules/task/dto/create-task.dto.ts
|
|
@@ -13014,6 +13073,10 @@ __decorateClass([
|
|
|
13014
13073
|
var CreateTaskDto = class {
|
|
13015
13074
|
};
|
|
13016
13075
|
__decorateClass([
|
|
13076
|
+
(0, import_class_validator166.ValidateIf)(
|
|
13077
|
+
(o) => String(o?.status ?? "").toUpperCase() === "DRAFTED" || o?.title !== void 0
|
|
13078
|
+
),
|
|
13079
|
+
(0, import_class_validator166.IsNotEmpty)(),
|
|
13017
13080
|
(0, import_class_validator166.IsString)()
|
|
13018
13081
|
], CreateTaskDto.prototype, "title", 2);
|
|
13019
13082
|
__decorateClass([
|
|
@@ -13214,6 +13277,80 @@ __decorateClass([
|
|
|
13214
13277
|
(0, import_class_validator171.IsString)()
|
|
13215
13278
|
], UpdateEstimateTimeDto.prototype, "additionalWorkNote", 2);
|
|
13216
13279
|
|
|
13280
|
+
// src/modules/task/dto/create-task-query.dto.ts
|
|
13281
|
+
var import_class_validator172 = require("class-validator");
|
|
13282
|
+
var CreateTaskQueryDto = class {
|
|
13283
|
+
};
|
|
13284
|
+
__decorateClass([
|
|
13285
|
+
(0, import_class_validator172.IsEnum)(TaskQueryCategoryEnum)
|
|
13286
|
+
], CreateTaskQueryDto.prototype, "queryCategory", 2);
|
|
13287
|
+
__decorateClass([
|
|
13288
|
+
(0, import_class_validator172.IsOptional)(),
|
|
13289
|
+
(0, import_class_validator172.IsString)()
|
|
13290
|
+
], CreateTaskQueryDto.prototype, "subject", 2);
|
|
13291
|
+
__decorateClass([
|
|
13292
|
+
(0, import_class_validator172.IsOptional)(),
|
|
13293
|
+
(0, import_class_validator172.IsString)()
|
|
13294
|
+
], CreateTaskQueryDto.prototype, "description", 2);
|
|
13295
|
+
__decorateClass([
|
|
13296
|
+
(0, import_class_validator172.IsOptional)(),
|
|
13297
|
+
(0, import_class_validator172.IsString)()
|
|
13298
|
+
], CreateTaskQueryDto.prototype, "message", 2);
|
|
13299
|
+
__decorateClass([
|
|
13300
|
+
(0, import_class_validator172.IsOptional)()
|
|
13301
|
+
], CreateTaskQueryDto.prototype, "file", 2);
|
|
13302
|
+
|
|
13303
|
+
// src/modules/task/dto/add-task-query-reply.dto.ts
|
|
13304
|
+
var import_class_validator173 = require("class-validator");
|
|
13305
|
+
var AddTaskQueryReplyDto = class {
|
|
13306
|
+
};
|
|
13307
|
+
__decorateClass([
|
|
13308
|
+
(0, import_class_validator173.IsOptional)(),
|
|
13309
|
+
(0, import_class_validator173.IsString)()
|
|
13310
|
+
], AddTaskQueryReplyDto.prototype, "message", 2);
|
|
13311
|
+
__decorateClass([
|
|
13312
|
+
(0, import_class_validator173.IsOptional)()
|
|
13313
|
+
], AddTaskQueryReplyDto.prototype, "file", 2);
|
|
13314
|
+
|
|
13315
|
+
// src/modules/task/dto/mark-task-query-messages-read.dto.ts
|
|
13316
|
+
var import_class_validator174 = require("class-validator");
|
|
13317
|
+
var MarkTaskQueryMessagesReadDto = class {
|
|
13318
|
+
};
|
|
13319
|
+
__decorateClass([
|
|
13320
|
+
(0, import_class_validator174.IsOptional)(),
|
|
13321
|
+
(0, import_class_validator174.IsString)()
|
|
13322
|
+
], MarkTaskQueryMessagesReadDto.prototype, "messageUuid", 2);
|
|
13323
|
+
__decorateClass([
|
|
13324
|
+
(0, import_class_validator174.IsOptional)(),
|
|
13325
|
+
(0, import_class_validator174.IsArray)(),
|
|
13326
|
+
(0, import_class_validator174.IsString)({ each: true })
|
|
13327
|
+
], MarkTaskQueryMessagesReadDto.prototype, "messageUuids", 2);
|
|
13328
|
+
|
|
13329
|
+
// src/modules/task/dto/add-task-log-time.dto.ts
|
|
13330
|
+
var import_class_validator175 = require("class-validator");
|
|
13331
|
+
var AddTaskLogTimeDto = class {
|
|
13332
|
+
};
|
|
13333
|
+
__decorateClass([
|
|
13334
|
+
(0, import_class_validator175.IsNotEmpty)({ message: "start date is required" }),
|
|
13335
|
+
(0, import_class_validator175.IsDateString)()
|
|
13336
|
+
], AddTaskLogTimeDto.prototype, "startDate", 2);
|
|
13337
|
+
__decorateClass([
|
|
13338
|
+
(0, import_class_validator175.IsNotEmpty)({ message: "end date is required" }),
|
|
13339
|
+
(0, import_class_validator175.IsDateString)()
|
|
13340
|
+
], AddTaskLogTimeDto.prototype, "endDate", 2);
|
|
13341
|
+
__decorateClass([
|
|
13342
|
+
(0, import_class_validator175.IsNotEmpty)({ message: "start time is required" }),
|
|
13343
|
+
(0, import_class_validator175.Matches)(/^([01]\d|2[0-3]):([0-5]\d):([0-5]\d)$/, {
|
|
13344
|
+
message: "startTime must be in HH:mm:ss format"
|
|
13345
|
+
})
|
|
13346
|
+
], AddTaskLogTimeDto.prototype, "startTime", 2);
|
|
13347
|
+
__decorateClass([
|
|
13348
|
+
(0, import_class_validator175.IsNotEmpty)({ message: "end time is required" }),
|
|
13349
|
+
(0, import_class_validator175.Matches)(/^([01]\d|2[0-3]):([0-5]\d):([0-5]\d)$/, {
|
|
13350
|
+
message: "endTime must be in HH:mm:ss format"
|
|
13351
|
+
})
|
|
13352
|
+
], AddTaskLogTimeDto.prototype, "endTime", 2);
|
|
13353
|
+
|
|
13217
13354
|
// src/adapters/tcp/user.tcp.adapter.ts
|
|
13218
13355
|
var import_dotenv = require("dotenv");
|
|
13219
13356
|
var import_microservices = require("@nestjs/microservices");
|
|
@@ -13575,11 +13712,11 @@ var ChatRMQAdapter = (mode = "microservice") => {
|
|
|
13575
13712
|
};
|
|
13576
13713
|
|
|
13577
13714
|
// src/entities/sequence-generator.entity.ts
|
|
13578
|
-
var
|
|
13715
|
+
var import_typeorm76 = require("typeorm");
|
|
13579
13716
|
var SequenceGenerator = class extends BaseEntity {
|
|
13580
13717
|
};
|
|
13581
13718
|
__decorateClass([
|
|
13582
|
-
(0,
|
|
13719
|
+
(0, import_typeorm76.Column)({
|
|
13583
13720
|
name: "module",
|
|
13584
13721
|
type: "varchar",
|
|
13585
13722
|
length: 50,
|
|
@@ -13588,7 +13725,7 @@ __decorateClass([
|
|
|
13588
13725
|
})
|
|
13589
13726
|
], SequenceGenerator.prototype, "module", 2);
|
|
13590
13727
|
__decorateClass([
|
|
13591
|
-
(0,
|
|
13728
|
+
(0, import_typeorm76.Column)({
|
|
13592
13729
|
name: "prefix",
|
|
13593
13730
|
type: "varchar",
|
|
13594
13731
|
length: 10,
|
|
@@ -13597,7 +13734,7 @@ __decorateClass([
|
|
|
13597
13734
|
})
|
|
13598
13735
|
], SequenceGenerator.prototype, "prefix", 2);
|
|
13599
13736
|
__decorateClass([
|
|
13600
|
-
(0,
|
|
13737
|
+
(0, import_typeorm76.Column)({
|
|
13601
13738
|
name: "last_sequence",
|
|
13602
13739
|
type: "int",
|
|
13603
13740
|
nullable: false,
|
|
@@ -13605,7 +13742,7 @@ __decorateClass([
|
|
|
13605
13742
|
})
|
|
13606
13743
|
], SequenceGenerator.prototype, "lastSequence", 2);
|
|
13607
13744
|
__decorateClass([
|
|
13608
|
-
(0,
|
|
13745
|
+
(0, import_typeorm76.Column)({
|
|
13609
13746
|
name: "year",
|
|
13610
13747
|
type: "int",
|
|
13611
13748
|
nullable: true,
|
|
@@ -13613,11 +13750,11 @@ __decorateClass([
|
|
|
13613
13750
|
})
|
|
13614
13751
|
], SequenceGenerator.prototype, "year", 2);
|
|
13615
13752
|
SequenceGenerator = __decorateClass([
|
|
13616
|
-
(0,
|
|
13753
|
+
(0, import_typeorm76.Entity)("sequence_generators")
|
|
13617
13754
|
], SequenceGenerator);
|
|
13618
13755
|
|
|
13619
13756
|
// src/entities/question.entity.ts
|
|
13620
|
-
var
|
|
13757
|
+
var import_typeorm77 = require("typeorm");
|
|
13621
13758
|
var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
13622
13759
|
QuestionFor2["CLIENT"] = "CLIENT";
|
|
13623
13760
|
QuestionFor2["FREELANCER"] = "FREELANCER";
|
|
@@ -13626,16 +13763,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
|
13626
13763
|
var Question = class extends BaseEntity {
|
|
13627
13764
|
};
|
|
13628
13765
|
__decorateClass([
|
|
13629
|
-
(0,
|
|
13766
|
+
(0, import_typeorm77.Column)({ name: "question", type: "varchar" })
|
|
13630
13767
|
], Question.prototype, "question", 2);
|
|
13631
13768
|
__decorateClass([
|
|
13632
|
-
(0,
|
|
13769
|
+
(0, import_typeorm77.Column)({ name: "hint", type: "varchar", nullable: true })
|
|
13633
13770
|
], Question.prototype, "hint", 2);
|
|
13634
13771
|
__decorateClass([
|
|
13635
|
-
(0,
|
|
13772
|
+
(0, import_typeorm77.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
13636
13773
|
], Question.prototype, "slug", 2);
|
|
13637
13774
|
__decorateClass([
|
|
13638
|
-
(0,
|
|
13775
|
+
(0, import_typeorm77.Column)({
|
|
13639
13776
|
name: "question_for",
|
|
13640
13777
|
type: "enum",
|
|
13641
13778
|
enum: QuestionFor,
|
|
@@ -13643,45 +13780,45 @@ __decorateClass([
|
|
|
13643
13780
|
})
|
|
13644
13781
|
], Question.prototype, "questionFor", 2);
|
|
13645
13782
|
__decorateClass([
|
|
13646
|
-
(0,
|
|
13783
|
+
(0, import_typeorm77.Column)({ name: "type", type: "varchar", nullable: true })
|
|
13647
13784
|
], Question.prototype, "type", 2);
|
|
13648
13785
|
__decorateClass([
|
|
13649
|
-
(0,
|
|
13786
|
+
(0, import_typeorm77.Column)({ name: "options", type: "jsonb", nullable: true })
|
|
13650
13787
|
], Question.prototype, "options", 2);
|
|
13651
13788
|
__decorateClass([
|
|
13652
|
-
(0,
|
|
13789
|
+
(0, import_typeorm77.Column)({ name: "is_active", type: "boolean", default: false })
|
|
13653
13790
|
], Question.prototype, "isActive", 2);
|
|
13654
13791
|
Question = __decorateClass([
|
|
13655
|
-
(0,
|
|
13792
|
+
(0, import_typeorm77.Entity)("questions")
|
|
13656
13793
|
], Question);
|
|
13657
13794
|
|
|
13658
13795
|
// src/entities/skill.entity.ts
|
|
13659
|
-
var
|
|
13796
|
+
var import_typeorm78 = require("typeorm");
|
|
13660
13797
|
var Skill = class extends BaseEntity {
|
|
13661
13798
|
};
|
|
13662
13799
|
__decorateClass([
|
|
13663
|
-
(0,
|
|
13800
|
+
(0, import_typeorm78.Column)({ name: "name", type: "varchar", nullable: true })
|
|
13664
13801
|
], Skill.prototype, "name", 2);
|
|
13665
13802
|
__decorateClass([
|
|
13666
|
-
(0,
|
|
13803
|
+
(0, import_typeorm78.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
13667
13804
|
], Skill.prototype, "slug", 2);
|
|
13668
13805
|
__decorateClass([
|
|
13669
|
-
(0,
|
|
13806
|
+
(0, import_typeorm78.Column)({ name: "is_active", type: "boolean", default: false })
|
|
13670
13807
|
], Skill.prototype, "isActive", 2);
|
|
13671
13808
|
Skill = __decorateClass([
|
|
13672
|
-
(0,
|
|
13809
|
+
(0, import_typeorm78.Entity)("skills")
|
|
13673
13810
|
], Skill);
|
|
13674
13811
|
|
|
13675
13812
|
// src/entities/skill-catalog.entity.ts
|
|
13676
|
-
var
|
|
13813
|
+
var import_typeorm79 = require("typeorm");
|
|
13677
13814
|
var SkillCatalog = class extends BaseEntity {
|
|
13678
13815
|
};
|
|
13679
13816
|
__decorateClass([
|
|
13680
|
-
(0,
|
|
13681
|
-
(0,
|
|
13817
|
+
(0, import_typeorm79.Column)({ name: "canonical_name", type: "varchar", length: 100, unique: true }),
|
|
13818
|
+
(0, import_typeorm79.Index)()
|
|
13682
13819
|
], SkillCatalog.prototype, "canonicalName", 2);
|
|
13683
13820
|
__decorateClass([
|
|
13684
|
-
(0,
|
|
13821
|
+
(0, import_typeorm79.Column)({
|
|
13685
13822
|
name: "aliases",
|
|
13686
13823
|
type: "text",
|
|
13687
13824
|
array: true,
|
|
@@ -13689,20 +13826,20 @@ __decorateClass([
|
|
|
13689
13826
|
})
|
|
13690
13827
|
], SkillCatalog.prototype, "aliases", 2);
|
|
13691
13828
|
__decorateClass([
|
|
13692
|
-
(0,
|
|
13829
|
+
(0, import_typeorm79.Column)({
|
|
13693
13830
|
name: "variations",
|
|
13694
13831
|
type: "jsonb",
|
|
13695
13832
|
default: "{}"
|
|
13696
13833
|
})
|
|
13697
13834
|
], SkillCatalog.prototype, "variations", 2);
|
|
13698
13835
|
__decorateClass([
|
|
13699
|
-
(0,
|
|
13836
|
+
(0, import_typeorm79.Column)({ name: "category", type: "varchar", length: 50, nullable: true })
|
|
13700
13837
|
], SkillCatalog.prototype, "category", 2);
|
|
13701
13838
|
__decorateClass([
|
|
13702
|
-
(0,
|
|
13839
|
+
(0, import_typeorm79.Column)({ name: "parent_skill", type: "varchar", length: 100, nullable: true })
|
|
13703
13840
|
], SkillCatalog.prototype, "parentSkill", 2);
|
|
13704
13841
|
__decorateClass([
|
|
13705
|
-
(0,
|
|
13842
|
+
(0, import_typeorm79.Column)({
|
|
13706
13843
|
name: "related_skills",
|
|
13707
13844
|
type: "text",
|
|
13708
13845
|
array: true,
|
|
@@ -13710,68 +13847,68 @@ __decorateClass([
|
|
|
13710
13847
|
})
|
|
13711
13848
|
], SkillCatalog.prototype, "relatedSkills", 2);
|
|
13712
13849
|
__decorateClass([
|
|
13713
|
-
(0,
|
|
13714
|
-
(0,
|
|
13850
|
+
(0, import_typeorm79.Column)({ name: "usage_count", type: "integer", default: 0 }),
|
|
13851
|
+
(0, import_typeorm79.Index)()
|
|
13715
13852
|
], SkillCatalog.prototype, "usageCount", 2);
|
|
13716
13853
|
__decorateClass([
|
|
13717
|
-
(0,
|
|
13854
|
+
(0, import_typeorm79.Column)({ name: "is_verified", type: "boolean", default: false })
|
|
13718
13855
|
], SkillCatalog.prototype, "isVerified", 2);
|
|
13719
13856
|
__decorateClass([
|
|
13720
|
-
(0,
|
|
13857
|
+
(0, import_typeorm79.Column)({ name: "first_seen_date", type: "date" })
|
|
13721
13858
|
], SkillCatalog.prototype, "firstSeenDate", 2);
|
|
13722
13859
|
__decorateClass([
|
|
13723
|
-
(0,
|
|
13860
|
+
(0, import_typeorm79.Column)({ name: "last_updated_date", type: "date" })
|
|
13724
13861
|
], SkillCatalog.prototype, "lastUpdatedDate", 2);
|
|
13725
13862
|
__decorateClass([
|
|
13726
|
-
(0,
|
|
13863
|
+
(0, import_typeorm79.Column)({
|
|
13727
13864
|
name: "search_vector",
|
|
13728
13865
|
type: "tsvector",
|
|
13729
13866
|
nullable: true
|
|
13730
13867
|
})
|
|
13731
13868
|
], SkillCatalog.prototype, "searchVector", 2);
|
|
13732
13869
|
SkillCatalog = __decorateClass([
|
|
13733
|
-
(0,
|
|
13870
|
+
(0, import_typeorm79.Entity)("skill_catalogs")
|
|
13734
13871
|
], SkillCatalog);
|
|
13735
13872
|
|
|
13736
13873
|
// src/entities/job-role.entity.ts
|
|
13737
|
-
var
|
|
13874
|
+
var import_typeorm80 = require("typeorm");
|
|
13738
13875
|
var JobRoles = class extends BaseEntity {
|
|
13739
13876
|
};
|
|
13740
13877
|
__decorateClass([
|
|
13741
|
-
(0,
|
|
13878
|
+
(0, import_typeorm80.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
13742
13879
|
], JobRoles.prototype, "slug", 2);
|
|
13743
13880
|
__decorateClass([
|
|
13744
|
-
(0,
|
|
13881
|
+
(0, import_typeorm80.Column)({ name: "name", type: "varchar", nullable: true })
|
|
13745
13882
|
], JobRoles.prototype, "name", 2);
|
|
13746
13883
|
__decorateClass([
|
|
13747
|
-
(0,
|
|
13884
|
+
(0, import_typeorm80.Column)({ name: "is_active", type: "boolean", default: true })
|
|
13748
13885
|
], JobRoles.prototype, "isActive", 2);
|
|
13749
13886
|
JobRoles = __decorateClass([
|
|
13750
|
-
(0,
|
|
13887
|
+
(0, import_typeorm80.Entity)("job_roles")
|
|
13751
13888
|
], JobRoles);
|
|
13752
13889
|
|
|
13753
13890
|
// src/entities/cms.entity.ts
|
|
13754
|
-
var
|
|
13891
|
+
var import_typeorm81 = require("typeorm");
|
|
13755
13892
|
var Cms = class extends BaseEntity {
|
|
13756
13893
|
};
|
|
13757
13894
|
__decorateClass([
|
|
13758
|
-
(0,
|
|
13895
|
+
(0, import_typeorm81.Column)({ name: "title", type: "varchar", nullable: true })
|
|
13759
13896
|
], Cms.prototype, "title", 2);
|
|
13760
13897
|
__decorateClass([
|
|
13761
|
-
(0,
|
|
13898
|
+
(0, import_typeorm81.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
13762
13899
|
], Cms.prototype, "slug", 2);
|
|
13763
13900
|
__decorateClass([
|
|
13764
|
-
(0,
|
|
13901
|
+
(0, import_typeorm81.Column)({ name: "content", type: "varchar", nullable: true })
|
|
13765
13902
|
], Cms.prototype, "content", 2);
|
|
13766
13903
|
__decorateClass([
|
|
13767
|
-
(0,
|
|
13904
|
+
(0, import_typeorm81.Column)({ name: "is_active", type: "boolean", default: true })
|
|
13768
13905
|
], Cms.prototype, "isActive", 2);
|
|
13769
13906
|
Cms = __decorateClass([
|
|
13770
|
-
(0,
|
|
13907
|
+
(0, import_typeorm81.Entity)("cms")
|
|
13771
13908
|
], Cms);
|
|
13772
13909
|
|
|
13773
13910
|
// src/entities/lead.entity.ts
|
|
13774
|
-
var
|
|
13911
|
+
var import_typeorm82 = require("typeorm");
|
|
13775
13912
|
var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
|
|
13776
13913
|
CategoryEmum2["BUSINESS"] = "BUSINESS";
|
|
13777
13914
|
CategoryEmum2["FREELANCER"] = "FREELANCER";
|
|
@@ -13780,22 +13917,22 @@ var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
|
|
|
13780
13917
|
var Lead = class extends BaseEntity {
|
|
13781
13918
|
};
|
|
13782
13919
|
__decorateClass([
|
|
13783
|
-
(0,
|
|
13920
|
+
(0, import_typeorm82.Column)({ name: "name", type: "varchar", nullable: true })
|
|
13784
13921
|
], Lead.prototype, "name", 2);
|
|
13785
13922
|
__decorateClass([
|
|
13786
|
-
(0,
|
|
13923
|
+
(0, import_typeorm82.Column)({ name: "mobile_code", type: "varchar", nullable: true })
|
|
13787
13924
|
], Lead.prototype, "mobileCode", 2);
|
|
13788
13925
|
__decorateClass([
|
|
13789
|
-
(0,
|
|
13926
|
+
(0, import_typeorm82.Column)({ name: "mobile", type: "varchar", nullable: true })
|
|
13790
13927
|
], Lead.prototype, "mobile", 2);
|
|
13791
13928
|
__decorateClass([
|
|
13792
|
-
(0,
|
|
13929
|
+
(0, import_typeorm82.Column)({ name: "email", type: "varchar", nullable: true })
|
|
13793
13930
|
], Lead.prototype, "email", 2);
|
|
13794
13931
|
__decorateClass([
|
|
13795
|
-
(0,
|
|
13932
|
+
(0, import_typeorm82.Column)({ name: "description", type: "varchar", nullable: true })
|
|
13796
13933
|
], Lead.prototype, "description", 2);
|
|
13797
13934
|
__decorateClass([
|
|
13798
|
-
(0,
|
|
13935
|
+
(0, import_typeorm82.Column)({
|
|
13799
13936
|
name: "category",
|
|
13800
13937
|
type: "enum",
|
|
13801
13938
|
enum: CategoryEmum,
|
|
@@ -13803,129 +13940,129 @@ __decorateClass([
|
|
|
13803
13940
|
})
|
|
13804
13941
|
], Lead.prototype, "category", 2);
|
|
13805
13942
|
Lead = __decorateClass([
|
|
13806
|
-
(0,
|
|
13943
|
+
(0, import_typeorm82.Entity)("leads")
|
|
13807
13944
|
], Lead);
|
|
13808
13945
|
|
|
13809
13946
|
// src/entities/job-freelancer-recommendation.entity.ts
|
|
13810
|
-
var
|
|
13947
|
+
var import_typeorm83 = require("typeorm");
|
|
13811
13948
|
var JobFreelancerRecommendation = class {
|
|
13812
13949
|
};
|
|
13813
13950
|
__decorateClass([
|
|
13814
|
-
(0,
|
|
13951
|
+
(0, import_typeorm83.ViewColumn)({ name: "job_id" })
|
|
13815
13952
|
], JobFreelancerRecommendation.prototype, "jobId", 2);
|
|
13816
13953
|
__decorateClass([
|
|
13817
|
-
(0,
|
|
13954
|
+
(0, import_typeorm83.ViewColumn)({ name: "job_uuid" })
|
|
13818
13955
|
], JobFreelancerRecommendation.prototype, "jobUuid", 2);
|
|
13819
13956
|
__decorateClass([
|
|
13820
|
-
(0,
|
|
13957
|
+
(0, import_typeorm83.ViewColumn)({ name: "job_unique_id" })
|
|
13821
13958
|
], JobFreelancerRecommendation.prototype, "jobUniqueId", 2);
|
|
13822
13959
|
__decorateClass([
|
|
13823
|
-
(0,
|
|
13960
|
+
(0, import_typeorm83.ViewColumn)({ name: "job_role" })
|
|
13824
13961
|
], JobFreelancerRecommendation.prototype, "jobRole", 2);
|
|
13825
13962
|
__decorateClass([
|
|
13826
|
-
(0,
|
|
13963
|
+
(0, import_typeorm83.ViewColumn)({ name: "job_openings" })
|
|
13827
13964
|
], JobFreelancerRecommendation.prototype, "jobOpenings", 2);
|
|
13828
13965
|
__decorateClass([
|
|
13829
|
-
(0,
|
|
13966
|
+
(0, import_typeorm83.ViewColumn)({ name: "job_location" })
|
|
13830
13967
|
], JobFreelancerRecommendation.prototype, "jobLocation", 2);
|
|
13831
13968
|
__decorateClass([
|
|
13832
|
-
(0,
|
|
13969
|
+
(0, import_typeorm83.ViewColumn)({ name: "job_currency" })
|
|
13833
13970
|
], JobFreelancerRecommendation.prototype, "jobCurrency", 2);
|
|
13834
13971
|
__decorateClass([
|
|
13835
|
-
(0,
|
|
13972
|
+
(0, import_typeorm83.ViewColumn)({ name: "job_salary_from" })
|
|
13836
13973
|
], JobFreelancerRecommendation.prototype, "jobSalaryFrom", 2);
|
|
13837
13974
|
__decorateClass([
|
|
13838
|
-
(0,
|
|
13975
|
+
(0, import_typeorm83.ViewColumn)({ name: "job_salary_to" })
|
|
13839
13976
|
], JobFreelancerRecommendation.prototype, "jobSalaryTo", 2);
|
|
13840
13977
|
__decorateClass([
|
|
13841
|
-
(0,
|
|
13978
|
+
(0, import_typeorm83.ViewColumn)({ name: "job_employment_type" })
|
|
13842
13979
|
], JobFreelancerRecommendation.prototype, "jobEmploymentType", 2);
|
|
13843
13980
|
__decorateClass([
|
|
13844
|
-
(0,
|
|
13981
|
+
(0, import_typeorm83.ViewColumn)({ name: "application_received" })
|
|
13845
13982
|
], JobFreelancerRecommendation.prototype, "applicationReceived", 2);
|
|
13846
13983
|
__decorateClass([
|
|
13847
|
-
(0,
|
|
13984
|
+
(0, import_typeorm83.ViewColumn)({ name: "job_posted_at" })
|
|
13848
13985
|
], JobFreelancerRecommendation.prototype, "jobPostedAt", 2);
|
|
13849
13986
|
__decorateClass([
|
|
13850
|
-
(0,
|
|
13987
|
+
(0, import_typeorm83.ViewColumn)({ name: "freelancer_id" })
|
|
13851
13988
|
], JobFreelancerRecommendation.prototype, "freelancerId", 2);
|
|
13852
13989
|
__decorateClass([
|
|
13853
|
-
(0,
|
|
13990
|
+
(0, import_typeorm83.ViewColumn)({ name: "freelancer_uuid" })
|
|
13854
13991
|
], JobFreelancerRecommendation.prototype, "freelancerUuid", 2);
|
|
13855
13992
|
__decorateClass([
|
|
13856
|
-
(0,
|
|
13993
|
+
(0, import_typeorm83.ViewColumn)({ name: "freelancer_unique_id" })
|
|
13857
13994
|
], JobFreelancerRecommendation.prototype, "freelancerUniqueId", 2);
|
|
13858
13995
|
__decorateClass([
|
|
13859
|
-
(0,
|
|
13996
|
+
(0, import_typeorm83.ViewColumn)({ name: "freelancer_first_name" })
|
|
13860
13997
|
], JobFreelancerRecommendation.prototype, "freelancerFirstName", 2);
|
|
13861
13998
|
__decorateClass([
|
|
13862
|
-
(0,
|
|
13999
|
+
(0, import_typeorm83.ViewColumn)({ name: "freelancer_last_name" })
|
|
13863
14000
|
], JobFreelancerRecommendation.prototype, "freelancerLastName", 2);
|
|
13864
14001
|
__decorateClass([
|
|
13865
|
-
(0,
|
|
14002
|
+
(0, import_typeorm83.ViewColumn)({ name: "freelancer_email" })
|
|
13866
14003
|
], JobFreelancerRecommendation.prototype, "freelancerEmail", 2);
|
|
13867
14004
|
__decorateClass([
|
|
13868
|
-
(0,
|
|
14005
|
+
(0, import_typeorm83.ViewColumn)({ name: "freelancer_profile_picture" })
|
|
13869
14006
|
], JobFreelancerRecommendation.prototype, "freelancerProfilePicture", 2);
|
|
13870
14007
|
__decorateClass([
|
|
13871
|
-
(0,
|
|
14008
|
+
(0, import_typeorm83.ViewColumn)({ name: "freelancer_is_social" })
|
|
13872
14009
|
], JobFreelancerRecommendation.prototype, "freelancerIsSocial", 2);
|
|
13873
14010
|
__decorateClass([
|
|
13874
|
-
(0,
|
|
14011
|
+
(0, import_typeorm83.ViewColumn)({ name: "freelancer_created_at" })
|
|
13875
14012
|
], JobFreelancerRecommendation.prototype, "freelancerCreatedAt", 2);
|
|
13876
14013
|
__decorateClass([
|
|
13877
|
-
(0,
|
|
14014
|
+
(0, import_typeorm83.ViewColumn)({ name: "freelancer_designation" })
|
|
13878
14015
|
], JobFreelancerRecommendation.prototype, "freelancerDesignation", 2);
|
|
13879
14016
|
__decorateClass([
|
|
13880
|
-
(0,
|
|
14017
|
+
(0, import_typeorm83.ViewColumn)({ name: "freelancer_experience" })
|
|
13881
14018
|
], JobFreelancerRecommendation.prototype, "freelancerExperience", 2);
|
|
13882
14019
|
__decorateClass([
|
|
13883
|
-
(0,
|
|
14020
|
+
(0, import_typeorm83.ViewColumn)({ name: "freelancer_expertshub_verified" })
|
|
13884
14021
|
], JobFreelancerRecommendation.prototype, "freelancerExpertshubVerified", 2);
|
|
13885
14022
|
__decorateClass([
|
|
13886
|
-
(0,
|
|
14023
|
+
(0, import_typeorm83.ViewColumn)({ name: "freelancer_hourly_compensation" })
|
|
13887
14024
|
], JobFreelancerRecommendation.prototype, "freelancerHourlyCompensation", 2);
|
|
13888
14025
|
__decorateClass([
|
|
13889
|
-
(0,
|
|
14026
|
+
(0, import_typeorm83.ViewColumn)({ name: "freelancer_country_name" })
|
|
13890
14027
|
], JobFreelancerRecommendation.prototype, "freelancerCountryName", 2);
|
|
13891
14028
|
__decorateClass([
|
|
13892
|
-
(0,
|
|
14029
|
+
(0, import_typeorm83.ViewColumn)({ name: "freelancer_country_iso_code" })
|
|
13893
14030
|
], JobFreelancerRecommendation.prototype, "freelancerCountryIsoCode", 2);
|
|
13894
14031
|
__decorateClass([
|
|
13895
|
-
(0,
|
|
14032
|
+
(0, import_typeorm83.ViewColumn)({ name: "client_id" })
|
|
13896
14033
|
], JobFreelancerRecommendation.prototype, "clientId", 2);
|
|
13897
14034
|
__decorateClass([
|
|
13898
|
-
(0,
|
|
14035
|
+
(0, import_typeorm83.ViewColumn)({ name: "client_uuid" })
|
|
13899
14036
|
], JobFreelancerRecommendation.prototype, "clientUuid", 2);
|
|
13900
14037
|
__decorateClass([
|
|
13901
|
-
(0,
|
|
14038
|
+
(0, import_typeorm83.ViewColumn)({ name: "client_first_name" })
|
|
13902
14039
|
], JobFreelancerRecommendation.prototype, "clientFirstName", 2);
|
|
13903
14040
|
__decorateClass([
|
|
13904
|
-
(0,
|
|
14041
|
+
(0, import_typeorm83.ViewColumn)({ name: "client_last_name" })
|
|
13905
14042
|
], JobFreelancerRecommendation.prototype, "clientLastName", 2);
|
|
13906
14043
|
__decorateClass([
|
|
13907
|
-
(0,
|
|
14044
|
+
(0, import_typeorm83.ViewColumn)({ name: "client_email" })
|
|
13908
14045
|
], JobFreelancerRecommendation.prototype, "clientEmail", 2);
|
|
13909
14046
|
__decorateClass([
|
|
13910
|
-
(0,
|
|
14047
|
+
(0, import_typeorm83.ViewColumn)({ name: "client_company_logo" })
|
|
13911
14048
|
], JobFreelancerRecommendation.prototype, "clientCompanyLogo", 2);
|
|
13912
14049
|
__decorateClass([
|
|
13913
|
-
(0,
|
|
14050
|
+
(0, import_typeorm83.ViewColumn)({ name: "client_company_name" })
|
|
13914
14051
|
], JobFreelancerRecommendation.prototype, "clientCompanyName", 2);
|
|
13915
14052
|
__decorateClass([
|
|
13916
|
-
(0,
|
|
14053
|
+
(0, import_typeorm83.ViewColumn)({ name: "matching_skills" })
|
|
13917
14054
|
], JobFreelancerRecommendation.prototype, "matchingSkills", 2);
|
|
13918
14055
|
__decorateClass([
|
|
13919
|
-
(0,
|
|
14056
|
+
(0, import_typeorm83.ViewColumn)({ name: "matching_skills_count" })
|
|
13920
14057
|
], JobFreelancerRecommendation.prototype, "matchingSkillsCount", 2);
|
|
13921
14058
|
__decorateClass([
|
|
13922
|
-
(0,
|
|
14059
|
+
(0, import_typeorm83.ViewColumn)({ name: "required_skills" })
|
|
13923
14060
|
], JobFreelancerRecommendation.prototype, "requiredSkills", 2);
|
|
13924
14061
|
__decorateClass([
|
|
13925
|
-
(0,
|
|
14062
|
+
(0, import_typeorm83.ViewColumn)({ name: "required_skills_count" })
|
|
13926
14063
|
], JobFreelancerRecommendation.prototype, "requiredSkillsCount", 2);
|
|
13927
14064
|
JobFreelancerRecommendation = __decorateClass([
|
|
13928
|
-
(0,
|
|
14065
|
+
(0, import_typeorm83.ViewEntity)({
|
|
13929
14066
|
name: "job_freelancer_recommendations",
|
|
13930
14067
|
materialized: true,
|
|
13931
14068
|
synchronize: false
|
|
@@ -13934,32 +14071,32 @@ JobFreelancerRecommendation = __decorateClass([
|
|
|
13934
14071
|
], JobFreelancerRecommendation);
|
|
13935
14072
|
|
|
13936
14073
|
// src/entities/job-freelancer-recommendation-v2.entity.ts
|
|
13937
|
-
var
|
|
14074
|
+
var import_typeorm84 = require("typeorm");
|
|
13938
14075
|
var JobFreelancerRecommendationV2 = class {
|
|
13939
14076
|
};
|
|
13940
14077
|
__decorateClass([
|
|
13941
|
-
(0,
|
|
14078
|
+
(0, import_typeorm84.ViewColumn)({ name: "job_id" })
|
|
13942
14079
|
], JobFreelancerRecommendationV2.prototype, "jobId", 2);
|
|
13943
14080
|
__decorateClass([
|
|
13944
|
-
(0,
|
|
14081
|
+
(0, import_typeorm84.ViewColumn)({ name: "job_owner_id" })
|
|
13945
14082
|
], JobFreelancerRecommendationV2.prototype, "jobOwnerId", 2);
|
|
13946
14083
|
__decorateClass([
|
|
13947
|
-
(0,
|
|
14084
|
+
(0, import_typeorm84.ViewColumn)({ name: "freelancer_id" })
|
|
13948
14085
|
], JobFreelancerRecommendationV2.prototype, "freelancerId", 2);
|
|
13949
14086
|
__decorateClass([
|
|
13950
|
-
(0,
|
|
14087
|
+
(0, import_typeorm84.ViewColumn)({ name: "matching_skills" })
|
|
13951
14088
|
], JobFreelancerRecommendationV2.prototype, "matchingSkills", 2);
|
|
13952
14089
|
__decorateClass([
|
|
13953
|
-
(0,
|
|
14090
|
+
(0, import_typeorm84.ViewColumn)({ name: "matching_skills_count" })
|
|
13954
14091
|
], JobFreelancerRecommendationV2.prototype, "matchingSkillsCount", 2);
|
|
13955
14092
|
__decorateClass([
|
|
13956
|
-
(0,
|
|
14093
|
+
(0, import_typeorm84.ViewColumn)({ name: "required_skills" })
|
|
13957
14094
|
], JobFreelancerRecommendationV2.prototype, "requiredSkills", 2);
|
|
13958
14095
|
__decorateClass([
|
|
13959
|
-
(0,
|
|
14096
|
+
(0, import_typeorm84.ViewColumn)({ name: "required_skills_count" })
|
|
13960
14097
|
], JobFreelancerRecommendationV2.prototype, "requiredSkillsCount", 2);
|
|
13961
14098
|
JobFreelancerRecommendationV2 = __decorateClass([
|
|
13962
|
-
(0,
|
|
14099
|
+
(0, import_typeorm84.ViewEntity)({
|
|
13963
14100
|
name: "job_freelancer_recommendations_v2",
|
|
13964
14101
|
materialized: true,
|
|
13965
14102
|
synchronize: false
|
|
@@ -13968,74 +14105,74 @@ JobFreelancerRecommendationV2 = __decorateClass([
|
|
|
13968
14105
|
], JobFreelancerRecommendationV2);
|
|
13969
14106
|
|
|
13970
14107
|
// src/entities/client-freelancer-recommendation.entity.ts
|
|
13971
|
-
var
|
|
14108
|
+
var import_typeorm85 = require("typeorm");
|
|
13972
14109
|
var ClientFreelancerRecommendation = class {
|
|
13973
14110
|
};
|
|
13974
14111
|
__decorateClass([
|
|
13975
|
-
(0,
|
|
14112
|
+
(0, import_typeorm85.ViewColumn)({ name: "client_id" })
|
|
13976
14113
|
], ClientFreelancerRecommendation.prototype, "clientId", 2);
|
|
13977
14114
|
__decorateClass([
|
|
13978
|
-
(0,
|
|
14115
|
+
(0, import_typeorm85.ViewColumn)({ name: "client_uuid" })
|
|
13979
14116
|
], ClientFreelancerRecommendation.prototype, "clientUuid", 2);
|
|
13980
14117
|
__decorateClass([
|
|
13981
|
-
(0,
|
|
14118
|
+
(0, import_typeorm85.ViewColumn)({ name: "freelancer_id" })
|
|
13982
14119
|
], ClientFreelancerRecommendation.prototype, "freelancerId", 2);
|
|
13983
14120
|
__decorateClass([
|
|
13984
|
-
(0,
|
|
14121
|
+
(0, import_typeorm85.ViewColumn)({ name: "freelancer_uuid" })
|
|
13985
14122
|
], ClientFreelancerRecommendation.prototype, "freelancerUuid", 2);
|
|
13986
14123
|
__decorateClass([
|
|
13987
|
-
(0,
|
|
14124
|
+
(0, import_typeorm85.ViewColumn)({ name: "freelancer_unique_id" })
|
|
13988
14125
|
], ClientFreelancerRecommendation.prototype, "freelancerUniqueId", 2);
|
|
13989
14126
|
__decorateClass([
|
|
13990
|
-
(0,
|
|
14127
|
+
(0, import_typeorm85.ViewColumn)({ name: "freelancer_first_name" })
|
|
13991
14128
|
], ClientFreelancerRecommendation.prototype, "freelancerFirstName", 2);
|
|
13992
14129
|
__decorateClass([
|
|
13993
|
-
(0,
|
|
14130
|
+
(0, import_typeorm85.ViewColumn)({ name: "freelancer_last_name" })
|
|
13994
14131
|
], ClientFreelancerRecommendation.prototype, "freelancerLastName", 2);
|
|
13995
14132
|
__decorateClass([
|
|
13996
|
-
(0,
|
|
14133
|
+
(0, import_typeorm85.ViewColumn)({ name: "freelancer_email" })
|
|
13997
14134
|
], ClientFreelancerRecommendation.prototype, "freelancerEmail", 2);
|
|
13998
14135
|
__decorateClass([
|
|
13999
|
-
(0,
|
|
14136
|
+
(0, import_typeorm85.ViewColumn)({ name: "freelancer_profile_picture" })
|
|
14000
14137
|
], ClientFreelancerRecommendation.prototype, "freelancerProfilePicture", 2);
|
|
14001
14138
|
__decorateClass([
|
|
14002
|
-
(0,
|
|
14139
|
+
(0, import_typeorm85.ViewColumn)({ name: "freelancer_is_social" })
|
|
14003
14140
|
], ClientFreelancerRecommendation.prototype, "freelancerIsSocial", 2);
|
|
14004
14141
|
__decorateClass([
|
|
14005
|
-
(0,
|
|
14142
|
+
(0, import_typeorm85.ViewColumn)({ name: "freelancer_created_at" })
|
|
14006
14143
|
], ClientFreelancerRecommendation.prototype, "freelancerCreatedAt", 2);
|
|
14007
14144
|
__decorateClass([
|
|
14008
|
-
(0,
|
|
14145
|
+
(0, import_typeorm85.ViewColumn)({ name: "freelancer_designation" })
|
|
14009
14146
|
], ClientFreelancerRecommendation.prototype, "freelancerDesignation", 2);
|
|
14010
14147
|
__decorateClass([
|
|
14011
|
-
(0,
|
|
14148
|
+
(0, import_typeorm85.ViewColumn)({ name: "freelancer_experience" })
|
|
14012
14149
|
], ClientFreelancerRecommendation.prototype, "freelancerExperience", 2);
|
|
14013
14150
|
__decorateClass([
|
|
14014
|
-
(0,
|
|
14151
|
+
(0, import_typeorm85.ViewColumn)({ name: "freelancer_expertshub_verified" })
|
|
14015
14152
|
], ClientFreelancerRecommendation.prototype, "freelancerExpertshubVerified", 2);
|
|
14016
14153
|
__decorateClass([
|
|
14017
|
-
(0,
|
|
14154
|
+
(0, import_typeorm85.ViewColumn)({ name: "freelancer_hourly_compensation" })
|
|
14018
14155
|
], ClientFreelancerRecommendation.prototype, "freelancerHourlyCompensation", 2);
|
|
14019
14156
|
__decorateClass([
|
|
14020
|
-
(0,
|
|
14157
|
+
(0, import_typeorm85.ViewColumn)({ name: "freelancer_country_name" })
|
|
14021
14158
|
], ClientFreelancerRecommendation.prototype, "freelancerCountryName", 2);
|
|
14022
14159
|
__decorateClass([
|
|
14023
|
-
(0,
|
|
14160
|
+
(0, import_typeorm85.ViewColumn)({ name: "freelancer_country_iso_code" })
|
|
14024
14161
|
], ClientFreelancerRecommendation.prototype, "freelancerCountryIsoCode", 2);
|
|
14025
14162
|
__decorateClass([
|
|
14026
|
-
(0,
|
|
14163
|
+
(0, import_typeorm85.ViewColumn)({ name: "matching_skills" })
|
|
14027
14164
|
], ClientFreelancerRecommendation.prototype, "matchingSkills", 2);
|
|
14028
14165
|
__decorateClass([
|
|
14029
|
-
(0,
|
|
14166
|
+
(0, import_typeorm85.ViewColumn)({ name: "matching_skills_count" })
|
|
14030
14167
|
], ClientFreelancerRecommendation.prototype, "matchingSkillsCount", 2);
|
|
14031
14168
|
__decorateClass([
|
|
14032
|
-
(0,
|
|
14169
|
+
(0, import_typeorm85.ViewColumn)({ name: "required_skills" })
|
|
14033
14170
|
], ClientFreelancerRecommendation.prototype, "requiredSkills", 2);
|
|
14034
14171
|
__decorateClass([
|
|
14035
|
-
(0,
|
|
14172
|
+
(0, import_typeorm85.ViewColumn)({ name: "required_skills_count" })
|
|
14036
14173
|
], ClientFreelancerRecommendation.prototype, "requiredSkillsCount", 2);
|
|
14037
14174
|
ClientFreelancerRecommendation = __decorateClass([
|
|
14038
|
-
(0,
|
|
14175
|
+
(0, import_typeorm85.ViewEntity)({
|
|
14039
14176
|
name: "client_freelancer_recommendations",
|
|
14040
14177
|
materialized: true,
|
|
14041
14178
|
synchronize: false
|
|
@@ -14044,7 +14181,7 @@ ClientFreelancerRecommendation = __decorateClass([
|
|
|
14044
14181
|
], ClientFreelancerRecommendation);
|
|
14045
14182
|
|
|
14046
14183
|
// src/entities/commission.entity.ts
|
|
14047
|
-
var
|
|
14184
|
+
var import_typeorm86 = require("typeorm");
|
|
14048
14185
|
var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
|
|
14049
14186
|
CommissionTypeEnum2["PERCENTAGE"] = "PERCENTAGE";
|
|
14050
14187
|
CommissionTypeEnum2["FLAT"] = "FLAT";
|
|
@@ -14053,7 +14190,7 @@ var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
|
|
|
14053
14190
|
var Commission = class extends BaseEntity {
|
|
14054
14191
|
};
|
|
14055
14192
|
__decorateClass([
|
|
14056
|
-
(0,
|
|
14193
|
+
(0, import_typeorm86.Column)({
|
|
14057
14194
|
name: "freelancer_commission_type",
|
|
14058
14195
|
type: "enum",
|
|
14059
14196
|
enum: CommissionTypeEnum,
|
|
@@ -14061,10 +14198,10 @@ __decorateClass([
|
|
|
14061
14198
|
})
|
|
14062
14199
|
], Commission.prototype, "freelancerCommissionType", 2);
|
|
14063
14200
|
__decorateClass([
|
|
14064
|
-
(0,
|
|
14201
|
+
(0, import_typeorm86.Column)({ name: "freelancer_commission", type: "integer", default: 0 })
|
|
14065
14202
|
], Commission.prototype, "freelancerCommission", 2);
|
|
14066
14203
|
__decorateClass([
|
|
14067
|
-
(0,
|
|
14204
|
+
(0, import_typeorm86.Column)({
|
|
14068
14205
|
name: "client_commission_type",
|
|
14069
14206
|
type: "enum",
|
|
14070
14207
|
enum: CommissionTypeEnum,
|
|
@@ -14072,50 +14209,50 @@ __decorateClass([
|
|
|
14072
14209
|
})
|
|
14073
14210
|
], Commission.prototype, "clientCommissionType", 2);
|
|
14074
14211
|
__decorateClass([
|
|
14075
|
-
(0,
|
|
14212
|
+
(0, import_typeorm86.Column)({ name: "client_commission", type: "integer", default: 0 })
|
|
14076
14213
|
], Commission.prototype, "clientCommission", 2);
|
|
14077
14214
|
Commission = __decorateClass([
|
|
14078
|
-
(0,
|
|
14215
|
+
(0, import_typeorm86.Entity)("commissions")
|
|
14079
14216
|
], Commission);
|
|
14080
14217
|
|
|
14081
14218
|
// src/entities/calendly-meeting-log.entity.ts
|
|
14082
|
-
var
|
|
14219
|
+
var import_typeorm87 = require("typeorm");
|
|
14083
14220
|
var CalendlyMeetingLog = class extends BaseEntity {
|
|
14084
14221
|
};
|
|
14085
14222
|
__decorateClass([
|
|
14086
|
-
(0,
|
|
14087
|
-
(0,
|
|
14223
|
+
(0, import_typeorm87.Column)({ name: "calendly_event_id", type: "varchar", nullable: true }),
|
|
14224
|
+
(0, import_typeorm87.Index)()
|
|
14088
14225
|
], CalendlyMeetingLog.prototype, "calendlyEventId", 2);
|
|
14089
14226
|
__decorateClass([
|
|
14090
|
-
(0,
|
|
14227
|
+
(0, import_typeorm87.Column)({ name: "calendly_event_type", type: "varchar", nullable: true })
|
|
14091
14228
|
], CalendlyMeetingLog.prototype, "calendlyEventType", 2);
|
|
14092
14229
|
__decorateClass([
|
|
14093
|
-
(0,
|
|
14230
|
+
(0, import_typeorm87.Column)({ name: "raw_webhook_data", type: "jsonb", nullable: true })
|
|
14094
14231
|
], CalendlyMeetingLog.prototype, "rawWebhookData", 2);
|
|
14095
14232
|
CalendlyMeetingLog = __decorateClass([
|
|
14096
|
-
(0,
|
|
14233
|
+
(0, import_typeorm87.Entity)("calendly_meeting_logs")
|
|
14097
14234
|
], CalendlyMeetingLog);
|
|
14098
14235
|
|
|
14099
14236
|
// src/entities/zoom-meeting-log.entity.ts
|
|
14100
|
-
var
|
|
14237
|
+
var import_typeorm88 = require("typeorm");
|
|
14101
14238
|
var ZoomMeetingLog = class extends BaseEntity {
|
|
14102
14239
|
};
|
|
14103
14240
|
__decorateClass([
|
|
14104
|
-
(0,
|
|
14105
|
-
(0,
|
|
14241
|
+
(0, import_typeorm88.Column)({ name: "zoom_meeting_id", type: "varchar", nullable: true }),
|
|
14242
|
+
(0, import_typeorm88.Index)()
|
|
14106
14243
|
], ZoomMeetingLog.prototype, "zoomMeetingId", 2);
|
|
14107
14244
|
__decorateClass([
|
|
14108
|
-
(0,
|
|
14245
|
+
(0, import_typeorm88.Column)({ name: "zoom_event_type", type: "varchar", nullable: true })
|
|
14109
14246
|
], ZoomMeetingLog.prototype, "zoomEventType", 2);
|
|
14110
14247
|
__decorateClass([
|
|
14111
|
-
(0,
|
|
14248
|
+
(0, import_typeorm88.Column)({ name: "raw_webhook_data", type: "jsonb", nullable: true })
|
|
14112
14249
|
], ZoomMeetingLog.prototype, "rawWebhookData", 2);
|
|
14113
14250
|
ZoomMeetingLog = __decorateClass([
|
|
14114
|
-
(0,
|
|
14251
|
+
(0, import_typeorm88.Entity)("zoom_meeting_logs")
|
|
14115
14252
|
], ZoomMeetingLog);
|
|
14116
14253
|
|
|
14117
14254
|
// src/entities/docuseal.entity.ts
|
|
14118
|
-
var
|
|
14255
|
+
var import_typeorm89 = require("typeorm");
|
|
14119
14256
|
var DocuSealTypeEnum = /* @__PURE__ */ ((DocuSealTypeEnum2) => {
|
|
14120
14257
|
DocuSealTypeEnum2["FREELANCER_SERVICE_AGGREMENT"] = "FREELANCER_SERVICE_AGGREMENT";
|
|
14121
14258
|
DocuSealTypeEnum2["CLIENT_SERVICE_AGGREMENT"] = "CLIENT_SERVICE_AGGREMENT";
|
|
@@ -14125,132 +14262,132 @@ var DocuSealTypeEnum = /* @__PURE__ */ ((DocuSealTypeEnum2) => {
|
|
|
14125
14262
|
var DocuSeal = class extends BaseEntity {
|
|
14126
14263
|
};
|
|
14127
14264
|
__decorateClass([
|
|
14128
|
-
(0,
|
|
14129
|
-
(0,
|
|
14265
|
+
(0, import_typeorm89.Column)({ name: "reference_id", type: "integer", nullable: false }),
|
|
14266
|
+
(0, import_typeorm89.Index)()
|
|
14130
14267
|
], DocuSeal.prototype, "referenceId", 2);
|
|
14131
14268
|
__decorateClass([
|
|
14132
|
-
(0,
|
|
14133
|
-
(0,
|
|
14269
|
+
(0, import_typeorm89.Column)({ name: "submitter_id", type: "integer", nullable: true }),
|
|
14270
|
+
(0, import_typeorm89.Index)()
|
|
14134
14271
|
], DocuSeal.prototype, "submitterId", 2);
|
|
14135
14272
|
__decorateClass([
|
|
14136
|
-
(0,
|
|
14273
|
+
(0, import_typeorm89.Column)({ name: "submitter_response", type: "jsonb", nullable: true })
|
|
14137
14274
|
], DocuSeal.prototype, "submitterResponse", 2);
|
|
14138
14275
|
__decorateClass([
|
|
14139
|
-
(0,
|
|
14276
|
+
(0, import_typeorm89.Column)({ name: "webhook_response", type: "jsonb", nullable: true })
|
|
14140
14277
|
], DocuSeal.prototype, "webhookResponse", 2);
|
|
14141
14278
|
__decorateClass([
|
|
14142
|
-
(0,
|
|
14279
|
+
(0, import_typeorm89.Column)({ name: "type", type: "enum", enum: DocuSealTypeEnum, nullable: true })
|
|
14143
14280
|
], DocuSeal.prototype, "type", 2);
|
|
14144
14281
|
DocuSeal = __decorateClass([
|
|
14145
|
-
(0,
|
|
14282
|
+
(0, import_typeorm89.Entity)("docuseal")
|
|
14146
14283
|
], DocuSeal);
|
|
14147
14284
|
|
|
14148
14285
|
// src/entities/stripe-logs.entity.ts
|
|
14149
|
-
var
|
|
14286
|
+
var import_typeorm90 = require("typeorm");
|
|
14150
14287
|
var StripeLog = class extends BaseEntity {
|
|
14151
14288
|
};
|
|
14152
14289
|
__decorateClass([
|
|
14153
|
-
(0,
|
|
14290
|
+
(0, import_typeorm90.Column)({ name: "stripe_event_id", type: "varchar", nullable: true })
|
|
14154
14291
|
], StripeLog.prototype, "stripeEventId", 2);
|
|
14155
14292
|
__decorateClass([
|
|
14156
|
-
(0,
|
|
14293
|
+
(0, import_typeorm90.Column)({ name: "event_type", type: "varchar", nullable: true })
|
|
14157
14294
|
], StripeLog.prototype, "eventType", 2);
|
|
14158
14295
|
__decorateClass([
|
|
14159
|
-
(0,
|
|
14296
|
+
(0, import_typeorm90.Column)({ name: "stripe_account_id", type: "varchar", nullable: true })
|
|
14160
14297
|
], StripeLog.prototype, "stripeAccountId", 2);
|
|
14161
14298
|
__decorateClass([
|
|
14162
|
-
(0,
|
|
14299
|
+
(0, import_typeorm90.Column)({ name: "raw_webhook_data", type: "jsonb", nullable: true })
|
|
14163
14300
|
], StripeLog.prototype, "rawWebhookData", 2);
|
|
14164
14301
|
StripeLog = __decorateClass([
|
|
14165
|
-
(0,
|
|
14302
|
+
(0, import_typeorm90.Entity)("stripe_logs")
|
|
14166
14303
|
], StripeLog);
|
|
14167
14304
|
|
|
14168
14305
|
// src/entities/recommendation-weightage-config.entity.ts
|
|
14169
|
-
var
|
|
14306
|
+
var import_typeorm91 = require("typeorm");
|
|
14170
14307
|
var RecommendationWeightageConfig = class extends BaseEntity {
|
|
14171
14308
|
};
|
|
14172
14309
|
__decorateClass([
|
|
14173
|
-
(0,
|
|
14310
|
+
(0, import_typeorm91.Column)({
|
|
14174
14311
|
type: "varchar",
|
|
14175
14312
|
length: 100,
|
|
14176
14313
|
unique: true,
|
|
14177
14314
|
comment: "Unique key identifier (e.g., full_time_weights, hourly_weights)"
|
|
14178
14315
|
}),
|
|
14179
|
-
(0,
|
|
14316
|
+
(0, import_typeorm91.Index)()
|
|
14180
14317
|
], RecommendationWeightageConfig.prototype, "key", 2);
|
|
14181
14318
|
__decorateClass([
|
|
14182
|
-
(0,
|
|
14319
|
+
(0, import_typeorm91.Column)({
|
|
14183
14320
|
type: "jsonb",
|
|
14184
14321
|
comment: "JSON object containing weight values",
|
|
14185
14322
|
nullable: true
|
|
14186
14323
|
})
|
|
14187
14324
|
], RecommendationWeightageConfig.prototype, "value", 2);
|
|
14188
14325
|
__decorateClass([
|
|
14189
|
-
(0,
|
|
14326
|
+
(0, import_typeorm91.Column)({ name: "is_active", type: "boolean", default: true })
|
|
14190
14327
|
], RecommendationWeightageConfig.prototype, "isActive", 2);
|
|
14191
14328
|
RecommendationWeightageConfig = __decorateClass([
|
|
14192
|
-
(0,
|
|
14329
|
+
(0, import_typeorm91.Entity)("recommendation_weightage_configs")
|
|
14193
14330
|
], RecommendationWeightageConfig);
|
|
14194
14331
|
|
|
14195
14332
|
// src/entities/global-setting.entity.ts
|
|
14196
|
-
var
|
|
14333
|
+
var import_typeorm92 = require("typeorm");
|
|
14197
14334
|
var GlobalSetting = class extends BaseEntity {
|
|
14198
14335
|
};
|
|
14199
14336
|
__decorateClass([
|
|
14200
|
-
(0,
|
|
14337
|
+
(0, import_typeorm92.Column)({ name: "key", type: "varchar", length: 255, nullable: false, unique: true })
|
|
14201
14338
|
], GlobalSetting.prototype, "key", 2);
|
|
14202
14339
|
__decorateClass([
|
|
14203
|
-
(0,
|
|
14340
|
+
(0, import_typeorm92.Column)({ name: "value", type: "text", nullable: false })
|
|
14204
14341
|
], GlobalSetting.prototype, "value", 2);
|
|
14205
14342
|
GlobalSetting = __decorateClass([
|
|
14206
|
-
(0,
|
|
14207
|
-
(0,
|
|
14343
|
+
(0, import_typeorm92.Entity)("global_settings"),
|
|
14344
|
+
(0, import_typeorm92.Index)(["key"], { unique: true })
|
|
14208
14345
|
], GlobalSetting);
|
|
14209
14346
|
|
|
14210
14347
|
// src/entities/plan.entity.ts
|
|
14211
|
-
var
|
|
14348
|
+
var import_typeorm95 = require("typeorm");
|
|
14212
14349
|
|
|
14213
14350
|
// src/entities/plan-feature.entity.ts
|
|
14214
|
-
var
|
|
14351
|
+
var import_typeorm93 = require("typeorm");
|
|
14215
14352
|
var PlanFeature = class extends BaseEntity {
|
|
14216
14353
|
};
|
|
14217
14354
|
// individual index to find features by plan
|
|
14218
14355
|
__decorateClass([
|
|
14219
|
-
(0,
|
|
14220
|
-
(0,
|
|
14356
|
+
(0, import_typeorm93.Column)({ name: "plan_id", type: "integer", nullable: false }),
|
|
14357
|
+
(0, import_typeorm93.Index)()
|
|
14221
14358
|
], PlanFeature.prototype, "planId", 2);
|
|
14222
14359
|
__decorateClass([
|
|
14223
|
-
(0,
|
|
14360
|
+
(0, import_typeorm93.ManyToOne)(() => Plan, (plan) => plan.features, {
|
|
14224
14361
|
onDelete: "CASCADE",
|
|
14225
14362
|
nullable: false
|
|
14226
14363
|
}),
|
|
14227
|
-
(0,
|
|
14364
|
+
(0, import_typeorm93.JoinColumn)({ name: "plan_id" })
|
|
14228
14365
|
], PlanFeature.prototype, "plan", 2);
|
|
14229
14366
|
__decorateClass([
|
|
14230
|
-
(0,
|
|
14367
|
+
(0, import_typeorm93.Column)({ name: "name", type: "varchar", length: 200 })
|
|
14231
14368
|
], PlanFeature.prototype, "name", 2);
|
|
14232
14369
|
__decorateClass([
|
|
14233
|
-
(0,
|
|
14234
|
-
(0,
|
|
14370
|
+
(0, import_typeorm93.Column)({ name: "slug", type: "varchar", length: 100 }),
|
|
14371
|
+
(0, import_typeorm93.Index)()
|
|
14235
14372
|
], PlanFeature.prototype, "slug", 2);
|
|
14236
14373
|
__decorateClass([
|
|
14237
|
-
(0,
|
|
14374
|
+
(0, import_typeorm93.Column)({ name: "tooltip", type: "varchar", length: 300, nullable: true })
|
|
14238
14375
|
], PlanFeature.prototype, "tooltip", 2);
|
|
14239
14376
|
__decorateClass([
|
|
14240
|
-
(0,
|
|
14377
|
+
(0, import_typeorm93.Column)({ name: "sort_order", type: "smallint", default: 0 })
|
|
14241
14378
|
], PlanFeature.prototype, "sortOrder", 2);
|
|
14242
14379
|
__decorateClass([
|
|
14243
|
-
(0,
|
|
14380
|
+
(0, import_typeorm93.Column)({ name: "is_active", type: "boolean", default: true })
|
|
14244
14381
|
], PlanFeature.prototype, "isActive", 2);
|
|
14245
14382
|
PlanFeature = __decorateClass([
|
|
14246
|
-
(0,
|
|
14247
|
-
(0,
|
|
14248
|
-
(0,
|
|
14249
|
-
(0,
|
|
14383
|
+
(0, import_typeorm93.Entity)("plan_features"),
|
|
14384
|
+
(0, import_typeorm93.Index)("idx_plan_features_plan_id", ["planId"]),
|
|
14385
|
+
(0, import_typeorm93.Index)("idx_plan_features_plan_sort", ["planId", "sortOrder"]),
|
|
14386
|
+
(0, import_typeorm93.Check)("chk_plan_features_sort_order_positive", '"sort_order" >= 0')
|
|
14250
14387
|
], PlanFeature);
|
|
14251
14388
|
|
|
14252
14389
|
// src/entities/plan-pricing.entity.ts
|
|
14253
|
-
var
|
|
14390
|
+
var import_typeorm94 = require("typeorm");
|
|
14254
14391
|
var PlanPricingBillingCycleEnum = /* @__PURE__ */ ((PlanPricingBillingCycleEnum2) => {
|
|
14255
14392
|
PlanPricingBillingCycleEnum2["MONTHLY"] = "monthly";
|
|
14256
14393
|
PlanPricingBillingCycleEnum2["YEARLY"] = "yearly";
|
|
@@ -14305,61 +14442,61 @@ var PlanPricing = class extends BaseEntity {
|
|
|
14305
14442
|
};
|
|
14306
14443
|
// individual index to find pricing by plan
|
|
14307
14444
|
__decorateClass([
|
|
14308
|
-
(0,
|
|
14309
|
-
(0,
|
|
14445
|
+
(0, import_typeorm94.Column)({ name: "plan_id", type: "integer", nullable: false }),
|
|
14446
|
+
(0, import_typeorm94.Index)()
|
|
14310
14447
|
], PlanPricing.prototype, "planId", 2);
|
|
14311
14448
|
__decorateClass([
|
|
14312
|
-
(0,
|
|
14449
|
+
(0, import_typeorm94.ManyToOne)(() => Plan, (plan) => plan.pricing, {
|
|
14313
14450
|
onDelete: "CASCADE",
|
|
14314
14451
|
nullable: false
|
|
14315
14452
|
}),
|
|
14316
|
-
(0,
|
|
14453
|
+
(0, import_typeorm94.JoinColumn)({ name: "plan_id" })
|
|
14317
14454
|
], PlanPricing.prototype, "plan", 2);
|
|
14318
14455
|
__decorateClass([
|
|
14319
|
-
(0,
|
|
14456
|
+
(0, import_typeorm94.Column)({
|
|
14320
14457
|
name: "billing_cycle",
|
|
14321
14458
|
type: "enum",
|
|
14322
14459
|
enum: PlanPricingBillingCycleEnum
|
|
14323
14460
|
})
|
|
14324
14461
|
], PlanPricing.prototype, "billingCycle", 2);
|
|
14325
14462
|
__decorateClass([
|
|
14326
|
-
(0,
|
|
14463
|
+
(0, import_typeorm94.Column)({ name: "price", type: "decimal", precision: 10, scale: 2, default: 0 })
|
|
14327
14464
|
], PlanPricing.prototype, "price", 2);
|
|
14328
14465
|
__decorateClass([
|
|
14329
|
-
(0,
|
|
14466
|
+
(0, import_typeorm94.Column)({ name: "original_price", type: "decimal", precision: 10, scale: 2, nullable: true })
|
|
14330
14467
|
], PlanPricing.prototype, "originalPrice", 2);
|
|
14331
14468
|
__decorateClass([
|
|
14332
|
-
(0,
|
|
14469
|
+
(0, import_typeorm94.Column)({ name: "discount_pct", type: "decimal", precision: 5, scale: 2, nullable: true })
|
|
14333
14470
|
], PlanPricing.prototype, "discountPct", 2);
|
|
14334
14471
|
__decorateClass([
|
|
14335
|
-
(0,
|
|
14472
|
+
(0, import_typeorm94.Column)({ name: "currency", type: "varchar", length: 3, default: "USD" })
|
|
14336
14473
|
], PlanPricing.prototype, "currency", 2);
|
|
14337
14474
|
__decorateClass([
|
|
14338
|
-
(0,
|
|
14475
|
+
(0, import_typeorm94.Column)({ name: "is_free", type: "boolean", default: false })
|
|
14339
14476
|
], PlanPricing.prototype, "isFree", 2);
|
|
14340
14477
|
__decorateClass([
|
|
14341
|
-
(0,
|
|
14478
|
+
(0, import_typeorm94.Column)({ name: "stripe_price_id", type: "varchar", length: 100, nullable: true, unique: true })
|
|
14342
14479
|
], PlanPricing.prototype, "stripePriceId", 2);
|
|
14343
14480
|
__decorateClass([
|
|
14344
|
-
(0,
|
|
14481
|
+
(0, import_typeorm94.Column)({ name: "trial_days", type: "smallint", default: 0 })
|
|
14345
14482
|
], PlanPricing.prototype, "trialDays", 2);
|
|
14346
14483
|
__decorateClass([
|
|
14347
|
-
(0,
|
|
14484
|
+
(0, import_typeorm94.Column)({ name: "is_active", type: "boolean", default: true })
|
|
14348
14485
|
], PlanPricing.prototype, "isActive", 2);
|
|
14349
14486
|
__decorateClass([
|
|
14350
|
-
(0,
|
|
14351
|
-
(0,
|
|
14487
|
+
(0, import_typeorm94.BeforeInsert)(),
|
|
14488
|
+
(0, import_typeorm94.BeforeUpdate)()
|
|
14352
14489
|
], PlanPricing.prototype, "sanitize", 1);
|
|
14353
14490
|
PlanPricing = __decorateClass([
|
|
14354
|
-
(0,
|
|
14355
|
-
(0,
|
|
14356
|
-
(0,
|
|
14357
|
-
(0,
|
|
14358
|
-
(0,
|
|
14359
|
-
(0,
|
|
14360
|
-
(0,
|
|
14361
|
-
(0,
|
|
14362
|
-
(0,
|
|
14491
|
+
(0, import_typeorm94.Entity)("plan_pricings"),
|
|
14492
|
+
(0, import_typeorm94.Unique)("uq_plan_pricings_plan_cycle", ["planId", "billingCycle"]),
|
|
14493
|
+
(0, import_typeorm94.Index)("idx_plan_pricings_plan_id", ["planId"]),
|
|
14494
|
+
(0, import_typeorm94.Index)("idx_plan_pricings_active", ["isActive", "billingCycle"]),
|
|
14495
|
+
(0, import_typeorm94.Check)("chk_plan_pricings_free_price_zero", '("is_free" = false) OR ("is_free" = true AND "price" = 0)'),
|
|
14496
|
+
(0, import_typeorm94.Check)("chk_plan_pricings_trial_days_non_negative", '"trial_days" >= 0'),
|
|
14497
|
+
(0, import_typeorm94.Check)("chk_plan_pricings_discount_range", '"discount_pct" IS NULL OR ("discount_pct" >= 1 AND "discount_pct" <= 99)'),
|
|
14498
|
+
(0, import_typeorm94.Check)("chk_plan_pricings_original_gte_price", '"original_price" IS NULL OR "original_price" >= "price"'),
|
|
14499
|
+
(0, import_typeorm94.Check)("chk_plan_pricings_original_price_non_negative", '"original_price" IS NULL OR "original_price" >= 0')
|
|
14363
14500
|
], PlanPricing);
|
|
14364
14501
|
|
|
14365
14502
|
// src/entities/plan.entity.ts
|
|
@@ -14376,22 +14513,22 @@ var Plan = class extends BaseEntity {
|
|
|
14376
14513
|
}
|
|
14377
14514
|
};
|
|
14378
14515
|
__decorateClass([
|
|
14379
|
-
(0,
|
|
14516
|
+
(0, import_typeorm95.Column)({ name: "name", type: "varchar", length: 100 })
|
|
14380
14517
|
], Plan.prototype, "name", 2);
|
|
14381
14518
|
__decorateClass([
|
|
14382
|
-
(0,
|
|
14519
|
+
(0, import_typeorm95.Column)({ name: "slug", type: "varchar", length: 100 })
|
|
14383
14520
|
], Plan.prototype, "slug", 2);
|
|
14384
14521
|
__decorateClass([
|
|
14385
|
-
(0,
|
|
14522
|
+
(0, import_typeorm95.Column)({ name: "badge_label", type: "varchar", length: 60, nullable: true })
|
|
14386
14523
|
], Plan.prototype, "badgeLabel", 2);
|
|
14387
14524
|
__decorateClass([
|
|
14388
|
-
(0,
|
|
14525
|
+
(0, import_typeorm95.Column)({ name: "sort_order", type: "smallint", default: 0 })
|
|
14389
14526
|
], Plan.prototype, "sortOrder", 2);
|
|
14390
14527
|
__decorateClass([
|
|
14391
|
-
(0,
|
|
14528
|
+
(0, import_typeorm95.Column)({ name: "is_active", type: "boolean", default: true })
|
|
14392
14529
|
], Plan.prototype, "isActive", 2);
|
|
14393
14530
|
__decorateClass([
|
|
14394
|
-
(0,
|
|
14531
|
+
(0, import_typeorm95.Column)({
|
|
14395
14532
|
name: "plan_type",
|
|
14396
14533
|
type: "enum",
|
|
14397
14534
|
enum: PlanTypeEnum,
|
|
@@ -14399,31 +14536,31 @@ __decorateClass([
|
|
|
14399
14536
|
})
|
|
14400
14537
|
], Plan.prototype, "planType", 2);
|
|
14401
14538
|
__decorateClass([
|
|
14402
|
-
(0,
|
|
14539
|
+
(0, import_typeorm95.Column)({ name: "metadata", type: "jsonb", default: {} })
|
|
14403
14540
|
], Plan.prototype, "metadata", 2);
|
|
14404
14541
|
__decorateClass([
|
|
14405
|
-
(0,
|
|
14406
|
-
(0,
|
|
14542
|
+
(0, import_typeorm95.BeforeInsert)(),
|
|
14543
|
+
(0, import_typeorm95.BeforeUpdate)()
|
|
14407
14544
|
], Plan.prototype, "createSlug", 1);
|
|
14408
14545
|
__decorateClass([
|
|
14409
|
-
(0,
|
|
14546
|
+
(0, import_typeorm95.OneToMany)(() => PlanFeature, (feature) => feature.plan, {
|
|
14410
14547
|
cascade: ["insert", "update"]
|
|
14411
14548
|
})
|
|
14412
14549
|
], Plan.prototype, "features", 2);
|
|
14413
14550
|
__decorateClass([
|
|
14414
|
-
(0,
|
|
14551
|
+
(0, import_typeorm95.OneToMany)(() => PlanPricing, (pricing) => pricing.plan, {
|
|
14415
14552
|
cascade: ["insert", "update"]
|
|
14416
14553
|
})
|
|
14417
14554
|
], Plan.prototype, "pricing", 2);
|
|
14418
14555
|
Plan = __decorateClass([
|
|
14419
|
-
(0,
|
|
14420
|
-
(0,
|
|
14421
|
-
(0,
|
|
14422
|
-
(0,
|
|
14556
|
+
(0, import_typeorm95.Entity)("plans"),
|
|
14557
|
+
(0, import_typeorm95.Index)("idx_plans_slug", ["slug"], { unique: true, where: '"is_deleted" IS FALSE' }),
|
|
14558
|
+
(0, import_typeorm95.Index)("idx_plans_active_sort", ["isActive", "sortOrder"]),
|
|
14559
|
+
(0, import_typeorm95.Check)("chk_plans_sort_order_positive", '"sort_order" >= 0')
|
|
14423
14560
|
], Plan);
|
|
14424
14561
|
|
|
14425
14562
|
// src/entities/subscription-feature.entity.ts
|
|
14426
|
-
var
|
|
14563
|
+
var import_typeorm96 = require("typeorm");
|
|
14427
14564
|
var SubscriptionFeature = class extends BaseEntity {
|
|
14428
14565
|
toSlug(value) {
|
|
14429
14566
|
return value.toLowerCase().trim().replace(/\s+/g, "-").replace(/[^a-z0-9-]/g, "").replace(/-+/g, "-").replace(/^-|-$/g, "");
|
|
@@ -14438,29 +14575,29 @@ var SubscriptionFeature = class extends BaseEntity {
|
|
|
14438
14575
|
}
|
|
14439
14576
|
};
|
|
14440
14577
|
__decorateClass([
|
|
14441
|
-
(0,
|
|
14578
|
+
(0, import_typeorm96.Column)({ name: "name", type: "varchar", length: 200 })
|
|
14442
14579
|
], SubscriptionFeature.prototype, "name", 2);
|
|
14443
14580
|
__decorateClass([
|
|
14444
|
-
(0,
|
|
14581
|
+
(0, import_typeorm96.Column)({ name: "slug", type: "varchar", length: 100 })
|
|
14445
14582
|
], SubscriptionFeature.prototype, "slug", 2);
|
|
14446
14583
|
__decorateClass([
|
|
14447
|
-
(0,
|
|
14584
|
+
(0, import_typeorm96.Column)({ name: "tooltip", type: "varchar", length: 300, nullable: true })
|
|
14448
14585
|
], SubscriptionFeature.prototype, "tooltip", 2);
|
|
14449
14586
|
__decorateClass([
|
|
14450
|
-
(0,
|
|
14587
|
+
(0, import_typeorm96.Column)({ name: "sort_order", type: "smallint", default: 0 })
|
|
14451
14588
|
], SubscriptionFeature.prototype, "sortOrder", 2);
|
|
14452
14589
|
__decorateClass([
|
|
14453
|
-
(0,
|
|
14590
|
+
(0, import_typeorm96.Column)({ name: "is_active", type: "boolean", default: true })
|
|
14454
14591
|
], SubscriptionFeature.prototype, "isActive", 2);
|
|
14455
14592
|
__decorateClass([
|
|
14456
|
-
(0,
|
|
14457
|
-
(0,
|
|
14593
|
+
(0, import_typeorm96.BeforeInsert)(),
|
|
14594
|
+
(0, import_typeorm96.BeforeUpdate)()
|
|
14458
14595
|
], SubscriptionFeature.prototype, "createSlug", 1);
|
|
14459
14596
|
SubscriptionFeature = __decorateClass([
|
|
14460
|
-
(0,
|
|
14461
|
-
(0,
|
|
14462
|
-
(0,
|
|
14463
|
-
(0,
|
|
14597
|
+
(0, import_typeorm96.Entity)("subscription_features"),
|
|
14598
|
+
(0, import_typeorm96.Index)("idx_subscription_features_slug", ["slug"], { unique: true, where: '"is_deleted" IS FALSE' }),
|
|
14599
|
+
(0, import_typeorm96.Index)("idx_subscription_features_active_sort", ["isActive", "sortOrder"]),
|
|
14600
|
+
(0, import_typeorm96.Check)("chk_subscription_features_sort_order_positive", '"sort_order" >= 0')
|
|
14464
14601
|
], SubscriptionFeature);
|
|
14465
14602
|
// Annotate the CommonJS export names for ESM import in node:
|
|
14466
14603
|
0 && (module.exports = {
|
|
@@ -14475,6 +14612,8 @@ SubscriptionFeature = __decorateClass([
|
|
|
14475
14612
|
AccountType,
|
|
14476
14613
|
AddClientRemarkDto,
|
|
14477
14614
|
AddGlobalSettingDto,
|
|
14615
|
+
AddTaskLogTimeDto,
|
|
14616
|
+
AddTaskQueryReplyDto,
|
|
14478
14617
|
AddTopupEscrowAmountDto,
|
|
14479
14618
|
AdminCreateJobInformationDto,
|
|
14480
14619
|
AdminExportClientV2OptimisedDto,
|
|
@@ -14592,6 +14731,7 @@ SubscriptionFeature = __decorateClass([
|
|
|
14592
14731
|
CreateRatingDto,
|
|
14593
14732
|
CreateSubAdminDto,
|
|
14594
14733
|
CreateTaskDto,
|
|
14734
|
+
CreateTaskQueryDto,
|
|
14595
14735
|
CreateUserSigningDto,
|
|
14596
14736
|
CustomQuestionItemDto,
|
|
14597
14737
|
DISPUTE_PATTERN,
|
|
@@ -14733,6 +14873,7 @@ SubscriptionFeature = __decorateClass([
|
|
|
14733
14873
|
MarkCandidateStatusBulkDto,
|
|
14734
14874
|
MarkCandidateStatusDto,
|
|
14735
14875
|
MarkTaskAsCompletedDto,
|
|
14876
|
+
MarkTaskQueryMessagesReadDto,
|
|
14736
14877
|
McqStatusEnum,
|
|
14737
14878
|
ModeOfHire,
|
|
14738
14879
|
ModeOfWork,
|
|
@@ -14829,6 +14970,7 @@ SubscriptionFeature = __decorateClass([
|
|
|
14829
14970
|
TaskChecklistItem,
|
|
14830
14971
|
TaskDeliverable,
|
|
14831
14972
|
TaskDeliverableTypeEnum,
|
|
14973
|
+
TaskLogTime,
|
|
14832
14974
|
TaskPriorityEnum,
|
|
14833
14975
|
TaskQuery,
|
|
14834
14976
|
TaskQueryCategoryEnum,
|