@experts_hub/shared 1.0.682 → 1.0.684
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 +5 -0
- package/dist/entities/job.entity.d.ts +2 -0
- package/dist/entities/task-checklist-item.entity.d.ts +9 -0
- package/dist/entities/task-deliverable.entity.d.ts +14 -0
- package/dist/entities/task-resource.entity.d.ts +16 -0
- package/dist/entities/task-subtask.entity.d.ts +16 -0
- package/dist/entities/task.entity.d.ts +43 -0
- package/dist/entities/timesheets.entity.d.ts +2 -0
- package/dist/entities/user.entity.d.ts +3 -0
- package/dist/index.d.mts +92 -1
- package/dist/index.d.ts +92 -1
- package/dist/index.js +1132 -849
- package/dist/index.mjs +1063 -790
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -394,6 +394,16 @@ __export(index_exports, {
|
|
|
394
394
|
SystemPreferenceDto: () => SystemPreferenceDto,
|
|
395
395
|
TIMESHEET_CLIENT_PATTERN: () => TIMESHEET_CLIENT_PATTERN,
|
|
396
396
|
TIMESHEET_FREELANCER_PATTERN: () => TIMESHEET_FREELANCER_PATTERN,
|
|
397
|
+
Task: () => Task,
|
|
398
|
+
TaskChecklistItem: () => TaskChecklistItem,
|
|
399
|
+
TaskDeliverable: () => TaskDeliverable,
|
|
400
|
+
TaskDeliverableTypeEnum: () => TaskDeliverableTypeEnum,
|
|
401
|
+
TaskPriorityEnum: () => TaskPriorityEnum,
|
|
402
|
+
TaskResource: () => TaskResource,
|
|
403
|
+
TaskResourceTypeEnum: () => TaskResourceTypeEnum,
|
|
404
|
+
TaskStatusEnum: () => TaskStatusEnum,
|
|
405
|
+
TaskSubtask: () => TaskSubtask,
|
|
406
|
+
TaskSubtaskStatusEnum: () => TaskSubtaskStatusEnum,
|
|
397
407
|
TestNotificationDto: () => TestNotificationDto,
|
|
398
408
|
Timesheet: () => Timesheet,
|
|
399
409
|
TimesheetLine: () => TimesheetLine,
|
|
@@ -1374,7 +1384,7 @@ __decorateClass([
|
|
|
1374
1384
|
var import_class_validator37 = require("class-validator");
|
|
1375
1385
|
|
|
1376
1386
|
// src/entities/user.entity.ts
|
|
1377
|
-
var
|
|
1387
|
+
var import_typeorm72 = require("typeorm");
|
|
1378
1388
|
|
|
1379
1389
|
// src/entities/base.entity.ts
|
|
1380
1390
|
var import_typeorm = require("typeorm");
|
|
@@ -2203,7 +2213,7 @@ FreelancerProfile = __decorateClass([
|
|
|
2203
2213
|
], FreelancerProfile);
|
|
2204
2214
|
|
|
2205
2215
|
// src/entities/job.entity.ts
|
|
2206
|
-
var
|
|
2216
|
+
var import_typeorm40 = require("typeorm");
|
|
2207
2217
|
|
|
2208
2218
|
// src/entities/job-skill.entity.ts
|
|
2209
2219
|
var import_typeorm10 = require("typeorm");
|
|
@@ -4055,7 +4065,255 @@ Contract = __decorateClass([
|
|
|
4055
4065
|
], Contract);
|
|
4056
4066
|
|
|
4057
4067
|
// src/entities/timesheets.entity.ts
|
|
4068
|
+
var import_typeorm37 = require("typeorm");
|
|
4069
|
+
|
|
4070
|
+
// src/entities/task.entity.ts
|
|
4071
|
+
var import_typeorm36 = require("typeorm");
|
|
4072
|
+
|
|
4073
|
+
// src/entities/task-deliverable.entity.ts
|
|
4058
4074
|
var import_typeorm32 = require("typeorm");
|
|
4075
|
+
var TaskDeliverableTypeEnum = /* @__PURE__ */ ((TaskDeliverableTypeEnum2) => {
|
|
4076
|
+
TaskDeliverableTypeEnum2["REQUIRED"] = "REQUIRED";
|
|
4077
|
+
TaskDeliverableTypeEnum2["NEED_TO_ADD"] = "NEED_TO_ADD";
|
|
4078
|
+
TaskDeliverableTypeEnum2["OTHER"] = "OTHER";
|
|
4079
|
+
return TaskDeliverableTypeEnum2;
|
|
4080
|
+
})(TaskDeliverableTypeEnum || {});
|
|
4081
|
+
var TaskDeliverable = class extends BaseEntity {
|
|
4082
|
+
};
|
|
4083
|
+
__decorateClass([
|
|
4084
|
+
(0, import_typeorm32.Column)({ name: "task_id", type: "integer" }),
|
|
4085
|
+
(0, import_typeorm32.Index)()
|
|
4086
|
+
], TaskDeliverable.prototype, "taskId", 2);
|
|
4087
|
+
__decorateClass([
|
|
4088
|
+
(0, import_typeorm32.ManyToOne)(() => Task, (task) => task.deliverables, { onDelete: "CASCADE" }),
|
|
4089
|
+
(0, import_typeorm32.JoinColumn)({ name: "task_id" })
|
|
4090
|
+
], TaskDeliverable.prototype, "task", 2);
|
|
4091
|
+
__decorateClass([
|
|
4092
|
+
(0, import_typeorm32.Column)({ name: "name", type: "varchar", length: 500 })
|
|
4093
|
+
], TaskDeliverable.prototype, "name", 2);
|
|
4094
|
+
__decorateClass([
|
|
4095
|
+
(0, import_typeorm32.Column)({ name: "description", type: "varchar", length: 1e3, nullable: true })
|
|
4096
|
+
], TaskDeliverable.prototype, "description", 2);
|
|
4097
|
+
__decorateClass([
|
|
4098
|
+
(0, import_typeorm32.Column)({ name: "type", type: "enum", enum: TaskDeliverableTypeEnum })
|
|
4099
|
+
], TaskDeliverable.prototype, "type", 2);
|
|
4100
|
+
TaskDeliverable = __decorateClass([
|
|
4101
|
+
(0, import_typeorm32.Entity)("task_deliverables")
|
|
4102
|
+
], TaskDeliverable);
|
|
4103
|
+
|
|
4104
|
+
// src/entities/task-resource.entity.ts
|
|
4105
|
+
var import_typeorm33 = require("typeorm");
|
|
4106
|
+
var TaskResourceTypeEnum = /* @__PURE__ */ ((TaskResourceTypeEnum2) => {
|
|
4107
|
+
TaskResourceTypeEnum2["GITHUB"] = "GITHUB";
|
|
4108
|
+
TaskResourceTypeEnum2["JIRA_TASK"] = "JIRA_TASK";
|
|
4109
|
+
TaskResourceTypeEnum2["API_DOCUMENTATION"] = "API_DOCUMENTATION";
|
|
4110
|
+
return TaskResourceTypeEnum2;
|
|
4111
|
+
})(TaskResourceTypeEnum || {});
|
|
4112
|
+
var TaskResource = class extends BaseEntity {
|
|
4113
|
+
};
|
|
4114
|
+
__decorateClass([
|
|
4115
|
+
(0, import_typeorm33.Column)({ name: "task_id", type: "integer" }),
|
|
4116
|
+
(0, import_typeorm33.Index)()
|
|
4117
|
+
], TaskResource.prototype, "taskId", 2);
|
|
4118
|
+
__decorateClass([
|
|
4119
|
+
(0, import_typeorm33.ManyToOne)(() => Task, (task) => task.resources, { onDelete: "CASCADE" }),
|
|
4120
|
+
(0, import_typeorm33.JoinColumn)({ name: "task_id" })
|
|
4121
|
+
], TaskResource.prototype, "task", 2);
|
|
4122
|
+
__decorateClass([
|
|
4123
|
+
(0, import_typeorm33.Column)({
|
|
4124
|
+
name: "resource_type",
|
|
4125
|
+
type: "enum",
|
|
4126
|
+
enum: TaskResourceTypeEnum,
|
|
4127
|
+
nullable: true
|
|
4128
|
+
})
|
|
4129
|
+
], TaskResource.prototype, "resourceType", 2);
|
|
4130
|
+
__decorateClass([
|
|
4131
|
+
(0, import_typeorm33.Column)({ name: "name", type: "varchar", length: 500 })
|
|
4132
|
+
], TaskResource.prototype, "name", 2);
|
|
4133
|
+
__decorateClass([
|
|
4134
|
+
(0, import_typeorm33.Column)({ name: "description", type: "varchar", length: 1e3, nullable: true })
|
|
4135
|
+
], TaskResource.prototype, "description", 2);
|
|
4136
|
+
__decorateClass([
|
|
4137
|
+
(0, import_typeorm33.Column)({ name: "type", type: "enum", enum: TaskResourceTypeEnum })
|
|
4138
|
+
], TaskResource.prototype, "type", 2);
|
|
4139
|
+
__decorateClass([
|
|
4140
|
+
(0, import_typeorm33.Column)({ name: "url", type: "varchar", length: 2048, nullable: true })
|
|
4141
|
+
], TaskResource.prototype, "url", 2);
|
|
4142
|
+
TaskResource = __decorateClass([
|
|
4143
|
+
(0, import_typeorm33.Entity)("task_resources")
|
|
4144
|
+
], TaskResource);
|
|
4145
|
+
|
|
4146
|
+
// src/entities/task-checklist-item.entity.ts
|
|
4147
|
+
var import_typeorm34 = require("typeorm");
|
|
4148
|
+
var TaskChecklistItem = class extends BaseEntity {
|
|
4149
|
+
};
|
|
4150
|
+
__decorateClass([
|
|
4151
|
+
(0, import_typeorm34.Column)({ name: "task_id", type: "integer" }),
|
|
4152
|
+
(0, import_typeorm34.Index)()
|
|
4153
|
+
], TaskChecklistItem.prototype, "taskId", 2);
|
|
4154
|
+
__decorateClass([
|
|
4155
|
+
(0, import_typeorm34.ManyToOne)(() => Task, (task) => task.checklistItems, { onDelete: "CASCADE" }),
|
|
4156
|
+
(0, import_typeorm34.JoinColumn)({ name: "task_id" })
|
|
4157
|
+
], TaskChecklistItem.prototype, "task", 2);
|
|
4158
|
+
__decorateClass([
|
|
4159
|
+
(0, import_typeorm34.Column)({ name: "name", type: "varchar", length: 1e3 })
|
|
4160
|
+
], TaskChecklistItem.prototype, "name", 2);
|
|
4161
|
+
__decorateClass([
|
|
4162
|
+
(0, import_typeorm34.Column)({ name: "is_checked", type: "boolean", default: false })
|
|
4163
|
+
], TaskChecklistItem.prototype, "isChecked", 2);
|
|
4164
|
+
__decorateClass([
|
|
4165
|
+
(0, import_typeorm34.Column)({ name: "note", type: "varchar", length: 1e3, nullable: true })
|
|
4166
|
+
], TaskChecklistItem.prototype, "note", 2);
|
|
4167
|
+
TaskChecklistItem = __decorateClass([
|
|
4168
|
+
(0, import_typeorm34.Entity)("task_checklist_items")
|
|
4169
|
+
], TaskChecklistItem);
|
|
4170
|
+
|
|
4171
|
+
// src/entities/task-subtask.entity.ts
|
|
4172
|
+
var import_typeorm35 = require("typeorm");
|
|
4173
|
+
var TaskSubtaskStatusEnum = /* @__PURE__ */ ((TaskSubtaskStatusEnum2) => {
|
|
4174
|
+
TaskSubtaskStatusEnum2["PENDING"] = "PENDING";
|
|
4175
|
+
TaskSubtaskStatusEnum2["IN_PROGRESS"] = "IN_PROGRESS";
|
|
4176
|
+
TaskSubtaskStatusEnum2["NOT_YET_STARTED"] = "NOT_YET_STARTED";
|
|
4177
|
+
TaskSubtaskStatusEnum2["COMPLETED"] = "COMPLETED";
|
|
4178
|
+
TaskSubtaskStatusEnum2["CANCELLED"] = "CANCELLED";
|
|
4179
|
+
return TaskSubtaskStatusEnum2;
|
|
4180
|
+
})(TaskSubtaskStatusEnum || {});
|
|
4181
|
+
var TaskSubtask = class extends BaseEntity {
|
|
4182
|
+
};
|
|
4183
|
+
__decorateClass([
|
|
4184
|
+
(0, import_typeorm35.Column)({ name: "task_id", type: "integer" }),
|
|
4185
|
+
(0, import_typeorm35.Index)()
|
|
4186
|
+
], TaskSubtask.prototype, "taskId", 2);
|
|
4187
|
+
__decorateClass([
|
|
4188
|
+
(0, import_typeorm35.ManyToOne)(() => Task, (task) => task.subtasks, { onDelete: "CASCADE" }),
|
|
4189
|
+
(0, import_typeorm35.JoinColumn)({ name: "task_id" })
|
|
4190
|
+
], TaskSubtask.prototype, "task", 2);
|
|
4191
|
+
__decorateClass([
|
|
4192
|
+
(0, import_typeorm35.Column)({ name: "subtask_name", type: "varchar", length: 500 })
|
|
4193
|
+
], TaskSubtask.prototype, "subtaskName", 2);
|
|
4194
|
+
__decorateClass([
|
|
4195
|
+
(0, import_typeorm35.Column)({ name: "due_date", type: "date", nullable: true })
|
|
4196
|
+
], TaskSubtask.prototype, "dueDate", 2);
|
|
4197
|
+
__decorateClass([
|
|
4198
|
+
(0, import_typeorm35.Column)({ name: "status", type: "enum", enum: TaskSubtaskStatusEnum, default: "PENDING" /* PENDING */ })
|
|
4199
|
+
], TaskSubtask.prototype, "status", 2);
|
|
4200
|
+
TaskSubtask = __decorateClass([
|
|
4201
|
+
(0, import_typeorm35.Entity)("task_subtasks")
|
|
4202
|
+
], TaskSubtask);
|
|
4203
|
+
|
|
4204
|
+
// src/entities/task.entity.ts
|
|
4205
|
+
var TaskPriorityEnum = /* @__PURE__ */ ((TaskPriorityEnum2) => {
|
|
4206
|
+
TaskPriorityEnum2["LOW"] = "LOW";
|
|
4207
|
+
TaskPriorityEnum2["MEDIUM"] = "MEDIUM";
|
|
4208
|
+
TaskPriorityEnum2["HIGH"] = "HIGH";
|
|
4209
|
+
return TaskPriorityEnum2;
|
|
4210
|
+
})(TaskPriorityEnum || {});
|
|
4211
|
+
var TaskStatusEnum = /* @__PURE__ */ ((TaskStatusEnum2) => {
|
|
4212
|
+
TaskStatusEnum2["DRAFTED"] = "DRAFTED";
|
|
4213
|
+
TaskStatusEnum2["SCHEDULED"] = "SCHEDULED";
|
|
4214
|
+
TaskStatusEnum2["IN_PROGRESS"] = "IN_PROGRESS";
|
|
4215
|
+
TaskStatusEnum2["COMPLETED"] = "COMPLETED";
|
|
4216
|
+
TaskStatusEnum2["CANCELLED"] = "CANCELLED";
|
|
4217
|
+
return TaskStatusEnum2;
|
|
4218
|
+
})(TaskStatusEnum || {});
|
|
4219
|
+
var Task = class extends BaseEntity {
|
|
4220
|
+
};
|
|
4221
|
+
__decorateClass([
|
|
4222
|
+
(0, import_typeorm36.Column)({ name: "task_unique_id", type: "varchar", nullable: true, unique: true })
|
|
4223
|
+
], Task.prototype, "taskUniqueId", 2);
|
|
4224
|
+
__decorateClass([
|
|
4225
|
+
(0, import_typeorm36.Column)({ name: "job_id", type: "integer", nullable: true }),
|
|
4226
|
+
(0, import_typeorm36.Index)()
|
|
4227
|
+
], Task.prototype, "jobId", 2);
|
|
4228
|
+
__decorateClass([
|
|
4229
|
+
(0, import_typeorm36.ManyToOne)(() => Job, (job) => job.tasks),
|
|
4230
|
+
(0, import_typeorm36.JoinColumn)({ name: "job_id" })
|
|
4231
|
+
], Task.prototype, "job", 2);
|
|
4232
|
+
__decorateClass([
|
|
4233
|
+
(0, import_typeorm36.Column)({ name: "client_id", type: "integer", nullable: true }),
|
|
4234
|
+
(0, import_typeorm36.Index)()
|
|
4235
|
+
], Task.prototype, "clientId", 2);
|
|
4236
|
+
__decorateClass([
|
|
4237
|
+
(0, import_typeorm36.ManyToOne)(() => User, (user) => user.clientTasks),
|
|
4238
|
+
(0, import_typeorm36.JoinColumn)({ name: "client_id" })
|
|
4239
|
+
], Task.prototype, "client", 2);
|
|
4240
|
+
__decorateClass([
|
|
4241
|
+
(0, import_typeorm36.Column)({ name: "freelancer_id", type: "integer", nullable: true }),
|
|
4242
|
+
(0, import_typeorm36.Index)()
|
|
4243
|
+
], Task.prototype, "freelancerId", 2);
|
|
4244
|
+
__decorateClass([
|
|
4245
|
+
(0, import_typeorm36.ManyToOne)(() => User, (user) => user.freelancerTasks),
|
|
4246
|
+
(0, import_typeorm36.JoinColumn)({ name: "freelancer_id" })
|
|
4247
|
+
], Task.prototype, "freelancer", 2);
|
|
4248
|
+
__decorateClass([
|
|
4249
|
+
(0, import_typeorm36.Column)({ name: "task_name", type: "varchar", nullable: true })
|
|
4250
|
+
], Task.prototype, "taskName", 2);
|
|
4251
|
+
__decorateClass([
|
|
4252
|
+
(0, import_typeorm36.Column)({
|
|
4253
|
+
name: "status",
|
|
4254
|
+
type: "enum",
|
|
4255
|
+
enum: TaskStatusEnum,
|
|
4256
|
+
nullable: true
|
|
4257
|
+
})
|
|
4258
|
+
], Task.prototype, "status", 2);
|
|
4259
|
+
__decorateClass([
|
|
4260
|
+
(0, import_typeorm36.Column)({
|
|
4261
|
+
name: "priority",
|
|
4262
|
+
type: "enum",
|
|
4263
|
+
enum: TaskPriorityEnum,
|
|
4264
|
+
nullable: true
|
|
4265
|
+
})
|
|
4266
|
+
], Task.prototype, "priority", 2);
|
|
4267
|
+
__decorateClass([
|
|
4268
|
+
(0, import_typeorm36.Column)({ name: "description", type: "varchar", nullable: true })
|
|
4269
|
+
], Task.prototype, "description", 2);
|
|
4270
|
+
__decorateClass([
|
|
4271
|
+
(0, import_typeorm36.Column)({
|
|
4272
|
+
name: "due_date",
|
|
4273
|
+
type: "timestamp with time zone",
|
|
4274
|
+
nullable: true
|
|
4275
|
+
})
|
|
4276
|
+
], Task.prototype, "dueDate", 2);
|
|
4277
|
+
__decorateClass([
|
|
4278
|
+
(0, import_typeorm36.Column)({
|
|
4279
|
+
name: "created_on",
|
|
4280
|
+
type: "timestamp with time zone",
|
|
4281
|
+
nullable: true
|
|
4282
|
+
})
|
|
4283
|
+
], Task.prototype, "createdOn", 2);
|
|
4284
|
+
__decorateClass([
|
|
4285
|
+
(0, import_typeorm36.Column)({
|
|
4286
|
+
name: "estimate_hours",
|
|
4287
|
+
type: "integer",
|
|
4288
|
+
nullable: true
|
|
4289
|
+
})
|
|
4290
|
+
], Task.prototype, "estimateHours", 2);
|
|
4291
|
+
__decorateClass([
|
|
4292
|
+
(0, import_typeorm36.Column)({ name: "client_remarks", type: "varchar", nullable: true })
|
|
4293
|
+
], Task.prototype, "clientRemarks", 2);
|
|
4294
|
+
__decorateClass([
|
|
4295
|
+
(0, import_typeorm36.Column)({ name: "freelancer_work_note", type: "varchar", nullable: true })
|
|
4296
|
+
], Task.prototype, "freelancerWorkNote", 2);
|
|
4297
|
+
__decorateClass([
|
|
4298
|
+
(0, import_typeorm36.OneToMany)(() => TaskDeliverable, (taskDeliverable) => taskDeliverable.task, { cascade: true })
|
|
4299
|
+
], Task.prototype, "deliverables", 2);
|
|
4300
|
+
__decorateClass([
|
|
4301
|
+
(0, import_typeorm36.OneToMany)(() => TaskResource, (taskResource) => taskResource.task, { cascade: true })
|
|
4302
|
+
], Task.prototype, "resources", 2);
|
|
4303
|
+
__decorateClass([
|
|
4304
|
+
(0, import_typeorm36.OneToMany)(() => TaskChecklistItem, (taskChecklistItem) => taskChecklistItem.task, { cascade: true })
|
|
4305
|
+
], Task.prototype, "checklistItems", 2);
|
|
4306
|
+
__decorateClass([
|
|
4307
|
+
(0, import_typeorm36.OneToMany)(() => TaskSubtask, (taskSubtask) => taskSubtask.task, { cascade: true })
|
|
4308
|
+
], Task.prototype, "subtasks", 2);
|
|
4309
|
+
__decorateClass([
|
|
4310
|
+
(0, import_typeorm36.OneToMany)(() => Timesheet, (timesheet) => timesheet.task, { cascade: true })
|
|
4311
|
+
], Task.prototype, "timesheets", 2);
|
|
4312
|
+
Task = __decorateClass([
|
|
4313
|
+
(0, import_typeorm36.Entity)("tasks")
|
|
4314
|
+
], Task);
|
|
4315
|
+
|
|
4316
|
+
// src/entities/timesheets.entity.ts
|
|
4059
4317
|
var TimesheetStatusEnum = /* @__PURE__ */ ((TimesheetStatusEnum2) => {
|
|
4060
4318
|
TimesheetStatusEnum2["DRAFT"] = "DRAFT";
|
|
4061
4319
|
TimesheetStatusEnum2["SEND"] = "SEND";
|
|
@@ -4068,140 +4326,144 @@ var TimesheetStatusEnum = /* @__PURE__ */ ((TimesheetStatusEnum2) => {
|
|
|
4068
4326
|
var Timesheet = class extends BaseEntity {
|
|
4069
4327
|
};
|
|
4070
4328
|
__decorateClass([
|
|
4071
|
-
(0,
|
|
4072
|
-
(0,
|
|
4329
|
+
(0, import_typeorm37.Column)({ name: "job_id", type: "integer", nullable: true }),
|
|
4330
|
+
(0, import_typeorm37.Index)()
|
|
4073
4331
|
], Timesheet.prototype, "jobId", 2);
|
|
4074
4332
|
__decorateClass([
|
|
4075
|
-
(0,
|
|
4076
|
-
(0,
|
|
4333
|
+
(0, import_typeorm37.ManyToOne)(() => Job, (job) => job.timesheets),
|
|
4334
|
+
(0, import_typeorm37.JoinColumn)({ name: "job_id" })
|
|
4077
4335
|
], Timesheet.prototype, "job", 2);
|
|
4078
4336
|
__decorateClass([
|
|
4079
|
-
(0,
|
|
4080
|
-
(0,
|
|
4337
|
+
(0, import_typeorm37.Column)({ name: "client_id", type: "integer", nullable: true }),
|
|
4338
|
+
(0, import_typeorm37.Index)()
|
|
4081
4339
|
], Timesheet.prototype, "clientId", 2);
|
|
4082
4340
|
__decorateClass([
|
|
4083
|
-
(0,
|
|
4084
|
-
(0,
|
|
4341
|
+
(0, import_typeorm37.ManyToOne)(() => User, (user) => user.clientTimesheets),
|
|
4342
|
+
(0, import_typeorm37.JoinColumn)({ name: "client_id" })
|
|
4085
4343
|
], Timesheet.prototype, "client", 2);
|
|
4086
4344
|
__decorateClass([
|
|
4087
|
-
(0,
|
|
4088
|
-
(0,
|
|
4345
|
+
(0, import_typeorm37.Column)({ name: "freelancer_id", type: "integer", nullable: true }),
|
|
4346
|
+
(0, import_typeorm37.Index)()
|
|
4089
4347
|
], Timesheet.prototype, "freelancerId", 2);
|
|
4090
4348
|
__decorateClass([
|
|
4091
|
-
(0,
|
|
4092
|
-
(0,
|
|
4349
|
+
(0, import_typeorm37.ManyToOne)(() => User, (user) => user.freelancerTimesheets),
|
|
4350
|
+
(0, import_typeorm37.JoinColumn)({ name: "freelancer_id" })
|
|
4093
4351
|
], Timesheet.prototype, "freelancer", 2);
|
|
4094
4352
|
__decorateClass([
|
|
4095
|
-
(0,
|
|
4353
|
+
(0, import_typeorm37.Column)({
|
|
4096
4354
|
name: "start_date",
|
|
4097
4355
|
type: "date",
|
|
4098
4356
|
nullable: true
|
|
4099
4357
|
})
|
|
4100
4358
|
], Timesheet.prototype, "startDate", 2);
|
|
4101
4359
|
__decorateClass([
|
|
4102
|
-
(0,
|
|
4360
|
+
(0, import_typeorm37.Column)({
|
|
4103
4361
|
name: "end_date",
|
|
4104
4362
|
type: "date",
|
|
4105
4363
|
nullable: true
|
|
4106
4364
|
})
|
|
4107
4365
|
], Timesheet.prototype, "endDate", 2);
|
|
4108
4366
|
__decorateClass([
|
|
4109
|
-
(0,
|
|
4367
|
+
(0, import_typeorm37.Column)({ name: "start_time", type: "varchar", nullable: true })
|
|
4110
4368
|
], Timesheet.prototype, "startTime", 2);
|
|
4111
4369
|
__decorateClass([
|
|
4112
|
-
(0,
|
|
4370
|
+
(0, import_typeorm37.Column)({ name: "end_time", type: "varchar", nullable: true })
|
|
4113
4371
|
], Timesheet.prototype, "endTime", 2);
|
|
4114
4372
|
__decorateClass([
|
|
4115
|
-
(0,
|
|
4373
|
+
(0, import_typeorm37.Column)({ name: "worked_hours", type: "varchar", nullable: true })
|
|
4116
4374
|
], Timesheet.prototype, "workedHours", 2);
|
|
4117
4375
|
__decorateClass([
|
|
4118
|
-
(0,
|
|
4376
|
+
(0, import_typeorm37.Column)({ name: "task_id", type: "integer", nullable: true })
|
|
4119
4377
|
], Timesheet.prototype, "taskId", 2);
|
|
4120
4378
|
__decorateClass([
|
|
4121
|
-
(0,
|
|
4379
|
+
(0, import_typeorm37.ManyToOne)(() => Task, (task) => task.timesheets),
|
|
4380
|
+
(0, import_typeorm37.JoinColumn)({ name: "task_id" })
|
|
4381
|
+
], Timesheet.prototype, "task", 2);
|
|
4382
|
+
__decorateClass([
|
|
4383
|
+
(0, import_typeorm37.Column)({ name: "task_name", type: "varchar", nullable: true })
|
|
4122
4384
|
], Timesheet.prototype, "taskName", 2);
|
|
4123
4385
|
__decorateClass([
|
|
4124
|
-
(0,
|
|
4386
|
+
(0, import_typeorm37.Column)({ name: "description", type: "varchar", nullable: true })
|
|
4125
4387
|
], Timesheet.prototype, "description", 2);
|
|
4126
4388
|
__decorateClass([
|
|
4127
|
-
(0,
|
|
4389
|
+
(0, import_typeorm37.Column)({ name: "week_start_date", type: "date", nullable: true })
|
|
4128
4390
|
], Timesheet.prototype, "weekStartDate", 2);
|
|
4129
4391
|
__decorateClass([
|
|
4130
|
-
(0,
|
|
4392
|
+
(0, import_typeorm37.Column)({ name: "week_end_date", type: "date", nullable: true })
|
|
4131
4393
|
], Timesheet.prototype, "weekEndDate", 2);
|
|
4132
4394
|
__decorateClass([
|
|
4133
|
-
(0,
|
|
4395
|
+
(0, import_typeorm37.Column)({ name: "rejected_at", type: "timestamp with time zone", nullable: true })
|
|
4134
4396
|
], Timesheet.prototype, "rejectedAt", 2);
|
|
4135
4397
|
__decorateClass([
|
|
4136
|
-
(0,
|
|
4398
|
+
(0, import_typeorm37.Column)({ name: "submitted_at", type: "timestamp with time zone", nullable: true })
|
|
4137
4399
|
], Timesheet.prototype, "submittedAt", 2);
|
|
4138
4400
|
__decorateClass([
|
|
4139
|
-
(0,
|
|
4401
|
+
(0, import_typeorm37.Column)({ name: "resubmiited_at", type: "timestamp with time zone", nullable: true })
|
|
4140
4402
|
], Timesheet.prototype, "resubmittedAt", 2);
|
|
4141
4403
|
__decorateClass([
|
|
4142
|
-
(0,
|
|
4404
|
+
(0, import_typeorm37.Column)({ name: "approved_at", type: "timestamp with time zone", nullable: true })
|
|
4143
4405
|
], Timesheet.prototype, "approvedAt", 2);
|
|
4144
4406
|
__decorateClass([
|
|
4145
|
-
(0,
|
|
4407
|
+
(0, import_typeorm37.Column)({ name: "status", type: "enum", enum: TimesheetStatusEnum, nullable: true })
|
|
4146
4408
|
], Timesheet.prototype, "status", 2);
|
|
4147
4409
|
__decorateClass([
|
|
4148
|
-
(0,
|
|
4410
|
+
(0, import_typeorm37.Column)({ name: "client_send_back_reason", type: "varchar", nullable: true })
|
|
4149
4411
|
], Timesheet.prototype, "clientSendBackReason", 2);
|
|
4150
4412
|
Timesheet = __decorateClass([
|
|
4151
|
-
(0,
|
|
4413
|
+
(0, import_typeorm37.Entity)("timesheets")
|
|
4152
4414
|
], Timesheet);
|
|
4153
4415
|
|
|
4154
4416
|
// src/entities/job-location.entity.ts
|
|
4155
|
-
var
|
|
4417
|
+
var import_typeorm38 = require("typeorm");
|
|
4156
4418
|
var JobLocation = class extends BaseEntity {
|
|
4157
4419
|
};
|
|
4158
4420
|
__decorateClass([
|
|
4159
|
-
(0,
|
|
4160
|
-
(0,
|
|
4421
|
+
(0, import_typeorm38.Column)({ name: "job_id", type: "integer", nullable: false }),
|
|
4422
|
+
(0, import_typeorm38.Index)()
|
|
4161
4423
|
], JobLocation.prototype, "jobId", 2);
|
|
4162
4424
|
__decorateClass([
|
|
4163
|
-
(0,
|
|
4164
|
-
(0,
|
|
4425
|
+
(0, import_typeorm38.ManyToOne)(() => Job, (job) => job.jobLocations),
|
|
4426
|
+
(0, import_typeorm38.JoinColumn)({ name: "job_id" })
|
|
4165
4427
|
], JobLocation.prototype, "job", 2);
|
|
4166
4428
|
__decorateClass([
|
|
4167
|
-
(0,
|
|
4429
|
+
(0, import_typeorm38.Column)({ name: "country_id", type: "int", nullable: false })
|
|
4168
4430
|
], JobLocation.prototype, "countryId", 2);
|
|
4169
4431
|
__decorateClass([
|
|
4170
|
-
(0,
|
|
4432
|
+
(0, import_typeorm38.Column)({ name: "country_name", type: "varchar", nullable: true })
|
|
4171
4433
|
], JobLocation.prototype, "countryName", 2);
|
|
4172
4434
|
__decorateClass([
|
|
4173
|
-
(0,
|
|
4174
|
-
(0,
|
|
4435
|
+
(0, import_typeorm38.ManyToOne)(() => Country),
|
|
4436
|
+
(0, import_typeorm38.JoinColumn)({ name: "country_id" })
|
|
4175
4437
|
], JobLocation.prototype, "country", 2);
|
|
4176
4438
|
__decorateClass([
|
|
4177
|
-
(0,
|
|
4439
|
+
(0, import_typeorm38.Column)({ name: "state_id", type: "int", nullable: false })
|
|
4178
4440
|
], JobLocation.prototype, "stateId", 2);
|
|
4179
4441
|
__decorateClass([
|
|
4180
|
-
(0,
|
|
4442
|
+
(0, import_typeorm38.Column)({ name: "state_name", type: "varchar", nullable: true })
|
|
4181
4443
|
], JobLocation.prototype, "stateName", 2);
|
|
4182
4444
|
__decorateClass([
|
|
4183
|
-
(0,
|
|
4184
|
-
(0,
|
|
4445
|
+
(0, import_typeorm38.ManyToOne)(() => State),
|
|
4446
|
+
(0, import_typeorm38.JoinColumn)({ name: "state_id" })
|
|
4185
4447
|
], JobLocation.prototype, "state", 2);
|
|
4186
4448
|
__decorateClass([
|
|
4187
|
-
(0,
|
|
4449
|
+
(0, import_typeorm38.Column)({ name: "city_id", type: "int", nullable: false })
|
|
4188
4450
|
], JobLocation.prototype, "cityId", 2);
|
|
4189
4451
|
__decorateClass([
|
|
4190
|
-
(0,
|
|
4452
|
+
(0, import_typeorm38.Column)({ name: "city_name", type: "varchar", nullable: true })
|
|
4191
4453
|
], JobLocation.prototype, "cityName", 2);
|
|
4192
4454
|
__decorateClass([
|
|
4193
|
-
(0,
|
|
4194
|
-
(0,
|
|
4455
|
+
(0, import_typeorm38.ManyToOne)(() => City),
|
|
4456
|
+
(0, import_typeorm38.JoinColumn)({ name: "city_id" })
|
|
4195
4457
|
], JobLocation.prototype, "city", 2);
|
|
4196
4458
|
__decorateClass([
|
|
4197
|
-
(0,
|
|
4459
|
+
(0, import_typeorm38.Column)({ name: "location_wise_openings", type: "int", default: 0 })
|
|
4198
4460
|
], JobLocation.prototype, "locationWiseOpenings", 2);
|
|
4199
4461
|
JobLocation = __decorateClass([
|
|
4200
|
-
(0,
|
|
4462
|
+
(0, import_typeorm38.Entity)("job_locations")
|
|
4201
4463
|
], JobLocation);
|
|
4202
4464
|
|
|
4203
4465
|
// src/entities/rating.entity.ts
|
|
4204
|
-
var
|
|
4466
|
+
var import_typeorm39 = require("typeorm");
|
|
4205
4467
|
var RatingTypeEnum = /* @__PURE__ */ ((RatingTypeEnum2) => {
|
|
4206
4468
|
RatingTypeEnum2["FREELANCER_TO_CLIENT"] = "FREELANCER_TO_CLIENT";
|
|
4207
4469
|
RatingTypeEnum2["CLIENT_TO_FREELANCER"] = "CLIENT_TO_FREELANCER";
|
|
@@ -4210,31 +4472,31 @@ var RatingTypeEnum = /* @__PURE__ */ ((RatingTypeEnum2) => {
|
|
|
4210
4472
|
var Rating = class extends BaseEntity {
|
|
4211
4473
|
};
|
|
4212
4474
|
__decorateClass([
|
|
4213
|
-
(0,
|
|
4214
|
-
(0,
|
|
4475
|
+
(0, import_typeorm39.Column)({ name: "reviewer_id", type: "integer" }),
|
|
4476
|
+
(0, import_typeorm39.Index)()
|
|
4215
4477
|
], Rating.prototype, "reviewerId", 2);
|
|
4216
4478
|
__decorateClass([
|
|
4217
|
-
(0,
|
|
4218
|
-
(0,
|
|
4479
|
+
(0, import_typeorm39.ManyToOne)(() => User, { onDelete: "CASCADE" }),
|
|
4480
|
+
(0, import_typeorm39.JoinColumn)({ name: "reviewer_id" })
|
|
4219
4481
|
], Rating.prototype, "reviewer", 2);
|
|
4220
4482
|
__decorateClass([
|
|
4221
|
-
(0,
|
|
4222
|
-
(0,
|
|
4483
|
+
(0, import_typeorm39.Column)({ name: "reviewee_id", type: "integer" }),
|
|
4484
|
+
(0, import_typeorm39.Index)()
|
|
4223
4485
|
], Rating.prototype, "revieweeId", 2);
|
|
4224
4486
|
__decorateClass([
|
|
4225
|
-
(0,
|
|
4226
|
-
(0,
|
|
4487
|
+
(0, import_typeorm39.ManyToOne)(() => User, { onDelete: "CASCADE" }),
|
|
4488
|
+
(0, import_typeorm39.JoinColumn)({ name: "reviewee_id" })
|
|
4227
4489
|
], Rating.prototype, "reviewee", 2);
|
|
4228
4490
|
__decorateClass([
|
|
4229
|
-
(0,
|
|
4230
|
-
(0,
|
|
4491
|
+
(0, import_typeorm39.Column)({ name: "job_id", type: "integer" }),
|
|
4492
|
+
(0, import_typeorm39.Index)()
|
|
4231
4493
|
], Rating.prototype, "jobId", 2);
|
|
4232
4494
|
__decorateClass([
|
|
4233
|
-
(0,
|
|
4234
|
-
(0,
|
|
4495
|
+
(0, import_typeorm39.ManyToOne)(() => Job, (job) => job.ratings, { onDelete: "CASCADE" }),
|
|
4496
|
+
(0, import_typeorm39.JoinColumn)({ name: "job_id" })
|
|
4235
4497
|
], Rating.prototype, "job", 2);
|
|
4236
4498
|
__decorateClass([
|
|
4237
|
-
(0,
|
|
4499
|
+
(0, import_typeorm39.Column)({
|
|
4238
4500
|
name: "rating_type",
|
|
4239
4501
|
type: "enum",
|
|
4240
4502
|
enum: RatingTypeEnum,
|
|
@@ -4242,67 +4504,67 @@ __decorateClass([
|
|
|
4242
4504
|
})
|
|
4243
4505
|
], Rating.prototype, "ratingType", 2);
|
|
4244
4506
|
__decorateClass([
|
|
4245
|
-
(0,
|
|
4507
|
+
(0, import_typeorm39.Column)({ name: "reviewer_comment", type: "text", nullable: true })
|
|
4246
4508
|
], Rating.prototype, "reviewerComment", 2);
|
|
4247
4509
|
__decorateClass([
|
|
4248
|
-
(0,
|
|
4510
|
+
(0, import_typeorm39.Column)({
|
|
4249
4511
|
name: "overall_experience",
|
|
4250
4512
|
type: "float",
|
|
4251
4513
|
default: 0
|
|
4252
4514
|
})
|
|
4253
4515
|
], Rating.prototype, "overAllExperience", 2);
|
|
4254
4516
|
__decorateClass([
|
|
4255
|
-
(0,
|
|
4517
|
+
(0, import_typeorm39.Column)({
|
|
4256
4518
|
name: "work_quality",
|
|
4257
4519
|
type: "float",
|
|
4258
4520
|
default: 0
|
|
4259
4521
|
})
|
|
4260
4522
|
], Rating.prototype, "workQuality", 2);
|
|
4261
4523
|
__decorateClass([
|
|
4262
|
-
(0,
|
|
4524
|
+
(0, import_typeorm39.Column)({
|
|
4263
4525
|
name: "one_time_delivery",
|
|
4264
4526
|
type: "float",
|
|
4265
4527
|
default: 0
|
|
4266
4528
|
})
|
|
4267
4529
|
], Rating.prototype, "oneTimeDelivery", 2);
|
|
4268
4530
|
__decorateClass([
|
|
4269
|
-
(0,
|
|
4531
|
+
(0, import_typeorm39.Column)({
|
|
4270
4532
|
name: "understaning",
|
|
4271
4533
|
type: "float",
|
|
4272
4534
|
default: 0
|
|
4273
4535
|
})
|
|
4274
4536
|
], Rating.prototype, "understaning", 2);
|
|
4275
4537
|
__decorateClass([
|
|
4276
|
-
(0,
|
|
4538
|
+
(0, import_typeorm39.Column)({
|
|
4277
4539
|
name: "communication",
|
|
4278
4540
|
type: "float",
|
|
4279
4541
|
default: 0
|
|
4280
4542
|
})
|
|
4281
4543
|
], Rating.prototype, "communication", 2);
|
|
4282
4544
|
__decorateClass([
|
|
4283
|
-
(0,
|
|
4545
|
+
(0, import_typeorm39.Column)({
|
|
4284
4546
|
name: "skill_utilized",
|
|
4285
4547
|
type: "float",
|
|
4286
4548
|
default: 0
|
|
4287
4549
|
})
|
|
4288
4550
|
], Rating.prototype, "skillUtilized", 2);
|
|
4289
4551
|
__decorateClass([
|
|
4290
|
-
(0,
|
|
4552
|
+
(0, import_typeorm39.Column)({ name: "communication_clarity", type: "float", default: 0 })
|
|
4291
4553
|
], Rating.prototype, "communicationClarity", 2);
|
|
4292
4554
|
__decorateClass([
|
|
4293
|
-
(0,
|
|
4555
|
+
(0, import_typeorm39.Column)({ name: "requirements_clarity", type: "float", default: 0 })
|
|
4294
4556
|
], Rating.prototype, "requirementsClarity", 2);
|
|
4295
4557
|
__decorateClass([
|
|
4296
|
-
(0,
|
|
4558
|
+
(0, import_typeorm39.Column)({ name: "responsiveness", type: "float", default: 0 })
|
|
4297
4559
|
], Rating.prototype, "responsiveness", 2);
|
|
4298
4560
|
__decorateClass([
|
|
4299
|
-
(0,
|
|
4561
|
+
(0, import_typeorm39.Column)({ name: "payment_promptness", type: "float", default: 0 })
|
|
4300
4562
|
], Rating.prototype, "paymentPromptness", 2);
|
|
4301
4563
|
__decorateClass([
|
|
4302
|
-
(0,
|
|
4564
|
+
(0, import_typeorm39.Column)({ name: "responsibilities_and_expectations", type: "float", default: 0 })
|
|
4303
4565
|
], Rating.prototype, "responsibilitiesAndExpectations", 2);
|
|
4304
4566
|
Rating = __decorateClass([
|
|
4305
|
-
(0,
|
|
4567
|
+
(0, import_typeorm39.Entity)("ratings")
|
|
4306
4568
|
], Rating);
|
|
4307
4569
|
|
|
4308
4570
|
// src/entities/job.entity.ts
|
|
@@ -4357,58 +4619,58 @@ var DurationTypeEnum = /* @__PURE__ */ ((DurationTypeEnum2) => {
|
|
|
4357
4619
|
var Job = class extends BaseEntity {
|
|
4358
4620
|
};
|
|
4359
4621
|
__decorateClass([
|
|
4360
|
-
(0,
|
|
4622
|
+
(0, import_typeorm40.Column)({ name: "job_id", type: "varchar", unique: true, nullable: true })
|
|
4361
4623
|
], Job.prototype, "jobId", 2);
|
|
4362
4624
|
// individual index to find jobs by user
|
|
4363
4625
|
__decorateClass([
|
|
4364
|
-
(0,
|
|
4365
|
-
(0,
|
|
4626
|
+
(0, import_typeorm40.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
4627
|
+
(0, import_typeorm40.Index)()
|
|
4366
4628
|
], Job.prototype, "userId", 2);
|
|
4367
4629
|
__decorateClass([
|
|
4368
|
-
(0,
|
|
4369
|
-
(0,
|
|
4630
|
+
(0, import_typeorm40.ManyToOne)(() => User, (user) => user.jobs),
|
|
4631
|
+
(0, import_typeorm40.JoinColumn)({ name: "user_id" })
|
|
4370
4632
|
], Job.prototype, "user", 2);
|
|
4371
4633
|
__decorateClass([
|
|
4372
|
-
(0,
|
|
4634
|
+
(0, import_typeorm40.Column)({ name: "country_id", type: "int", nullable: true })
|
|
4373
4635
|
], Job.prototype, "countryId", 2);
|
|
4374
4636
|
__decorateClass([
|
|
4375
|
-
(0,
|
|
4376
|
-
(0,
|
|
4637
|
+
(0, import_typeorm40.ManyToOne)(() => Country),
|
|
4638
|
+
(0, import_typeorm40.JoinColumn)({ name: "country_id" })
|
|
4377
4639
|
], Job.prototype, "country", 2);
|
|
4378
4640
|
__decorateClass([
|
|
4379
|
-
(0,
|
|
4641
|
+
(0, import_typeorm40.Column)({ name: "state_id", type: "int", nullable: true })
|
|
4380
4642
|
], Job.prototype, "stateId", 2);
|
|
4381
4643
|
__decorateClass([
|
|
4382
|
-
(0,
|
|
4383
|
-
(0,
|
|
4644
|
+
(0, import_typeorm40.ManyToOne)(() => State),
|
|
4645
|
+
(0, import_typeorm40.JoinColumn)({ name: "state_id" })
|
|
4384
4646
|
], Job.prototype, "state", 2);
|
|
4385
4647
|
__decorateClass([
|
|
4386
|
-
(0,
|
|
4648
|
+
(0, import_typeorm40.Column)({ name: "city_id", type: "int", nullable: true })
|
|
4387
4649
|
], Job.prototype, "cityId", 2);
|
|
4388
4650
|
__decorateClass([
|
|
4389
|
-
(0,
|
|
4390
|
-
(0,
|
|
4651
|
+
(0, import_typeorm40.ManyToOne)(() => City),
|
|
4652
|
+
(0, import_typeorm40.JoinColumn)({ name: "city_id" })
|
|
4391
4653
|
], Job.prototype, "city", 2);
|
|
4392
4654
|
__decorateClass([
|
|
4393
|
-
(0,
|
|
4655
|
+
(0, import_typeorm40.Column)({ name: "job_role", type: "varchar", nullable: true })
|
|
4394
4656
|
], Job.prototype, "jobRole", 2);
|
|
4395
4657
|
__decorateClass([
|
|
4396
|
-
(0,
|
|
4658
|
+
(0, import_typeorm40.Column)({ name: "job_role_canonical_name", type: "varchar", nullable: true })
|
|
4397
4659
|
], Job.prototype, "jobRoleCanonicalName", 2);
|
|
4398
4660
|
__decorateClass([
|
|
4399
|
-
(0,
|
|
4661
|
+
(0, import_typeorm40.Column)({ name: "project_name", type: "varchar", nullable: true })
|
|
4400
4662
|
], Job.prototype, "projectName", 2);
|
|
4401
4663
|
__decorateClass([
|
|
4402
|
-
(0,
|
|
4664
|
+
(0, import_typeorm40.Column)({ name: "note", type: "varchar", nullable: true })
|
|
4403
4665
|
], Job.prototype, "note", 2);
|
|
4404
4666
|
__decorateClass([
|
|
4405
|
-
(0,
|
|
4667
|
+
(0, import_typeorm40.Column)({ name: "openings", type: "integer", default: 0 })
|
|
4406
4668
|
], Job.prototype, "openings", 2);
|
|
4407
4669
|
__decorateClass([
|
|
4408
|
-
(0,
|
|
4670
|
+
(0, import_typeorm40.Column)({ name: "utilised_openings", type: "integer", default: 0 })
|
|
4409
4671
|
], Job.prototype, "utilisedOpenings", 2);
|
|
4410
4672
|
__decorateClass([
|
|
4411
|
-
(0,
|
|
4673
|
+
(0, import_typeorm40.Column)({
|
|
4412
4674
|
name: "location",
|
|
4413
4675
|
type: "enum",
|
|
4414
4676
|
enum: JobLocationEnum,
|
|
@@ -4416,7 +4678,7 @@ __decorateClass([
|
|
|
4416
4678
|
})
|
|
4417
4679
|
], Job.prototype, "location", 2);
|
|
4418
4680
|
__decorateClass([
|
|
4419
|
-
(0,
|
|
4681
|
+
(0, import_typeorm40.Column)({
|
|
4420
4682
|
name: "type_of_employment",
|
|
4421
4683
|
type: "enum",
|
|
4422
4684
|
enum: TypeOfEmploymentEnum,
|
|
@@ -4424,7 +4686,7 @@ __decorateClass([
|
|
|
4424
4686
|
})
|
|
4425
4687
|
], Job.prototype, "typeOfEmployment", 2);
|
|
4426
4688
|
__decorateClass([
|
|
4427
|
-
(0,
|
|
4689
|
+
(0, import_typeorm40.Column)({
|
|
4428
4690
|
name: "billing_cycle",
|
|
4429
4691
|
type: "enum",
|
|
4430
4692
|
enum: BillingCycleEnum,
|
|
@@ -4432,10 +4694,10 @@ __decorateClass([
|
|
|
4432
4694
|
})
|
|
4433
4695
|
], Job.prototype, "billingCycle", 2);
|
|
4434
4696
|
__decorateClass([
|
|
4435
|
-
(0,
|
|
4697
|
+
(0, import_typeorm40.Column)({ name: "academic_qualifictaion", type: "varchar", nullable: true })
|
|
4436
4698
|
], Job.prototype, "academicQualification", 2);
|
|
4437
4699
|
__decorateClass([
|
|
4438
|
-
(0,
|
|
4700
|
+
(0, import_typeorm40.Column)({
|
|
4439
4701
|
name: "type_of_experience",
|
|
4440
4702
|
type: "enum",
|
|
4441
4703
|
enum: typeOfExperienceEnum,
|
|
@@ -4443,22 +4705,22 @@ __decorateClass([
|
|
|
4443
4705
|
})
|
|
4444
4706
|
], Job.prototype, "typeOfExperience", 2);
|
|
4445
4707
|
__decorateClass([
|
|
4446
|
-
(0,
|
|
4708
|
+
(0, import_typeorm40.Column)({ name: "years_of_experience", type: "varchar", nullable: true })
|
|
4447
4709
|
], Job.prototype, "yearsOfExperience", 2);
|
|
4448
4710
|
__decorateClass([
|
|
4449
|
-
(0,
|
|
4711
|
+
(0, import_typeorm40.Column)({ name: "years_of_experience_from", type: "varchar", nullable: true })
|
|
4450
4712
|
], Job.prototype, "yearsOfExperienceFrom", 2);
|
|
4451
4713
|
__decorateClass([
|
|
4452
|
-
(0,
|
|
4714
|
+
(0, import_typeorm40.Column)({ name: "years_of_experience_to", type: "varchar", nullable: true })
|
|
4453
4715
|
], Job.prototype, "yearsOfExperienceTo", 2);
|
|
4454
4716
|
__decorateClass([
|
|
4455
|
-
(0,
|
|
4717
|
+
(0, import_typeorm40.Column)({ name: "business_industry", type: "varchar", nullable: true })
|
|
4456
4718
|
], Job.prototype, "businessIndustry", 2);
|
|
4457
4719
|
__decorateClass([
|
|
4458
|
-
(0,
|
|
4720
|
+
(0, import_typeorm40.Column)({ name: "currency", type: "varchar", default: "USD" })
|
|
4459
4721
|
], Job.prototype, "currency", 2);
|
|
4460
4722
|
__decorateClass([
|
|
4461
|
-
(0,
|
|
4723
|
+
(0, import_typeorm40.Column)({
|
|
4462
4724
|
name: "expected_salary_from",
|
|
4463
4725
|
type: "decimal",
|
|
4464
4726
|
precision: 10,
|
|
@@ -4467,14 +4729,14 @@ __decorateClass([
|
|
|
4467
4729
|
})
|
|
4468
4730
|
], Job.prototype, "expectedSalaryFrom", 2);
|
|
4469
4731
|
__decorateClass([
|
|
4470
|
-
(0,
|
|
4732
|
+
(0, import_typeorm40.Column)({
|
|
4471
4733
|
name: "hide_expected_salary_from",
|
|
4472
4734
|
type: "boolean",
|
|
4473
4735
|
default: false
|
|
4474
4736
|
})
|
|
4475
4737
|
], Job.prototype, "hideExpectedSalaryFrom", 2);
|
|
4476
4738
|
__decorateClass([
|
|
4477
|
-
(0,
|
|
4739
|
+
(0, import_typeorm40.Column)({
|
|
4478
4740
|
name: "expected_salary_to",
|
|
4479
4741
|
type: "decimal",
|
|
4480
4742
|
precision: 10,
|
|
@@ -4483,14 +4745,14 @@ __decorateClass([
|
|
|
4483
4745
|
})
|
|
4484
4746
|
], Job.prototype, "expectedSalaryTo", 2);
|
|
4485
4747
|
__decorateClass([
|
|
4486
|
-
(0,
|
|
4748
|
+
(0, import_typeorm40.Column)({
|
|
4487
4749
|
name: "hide_expected_salary_to",
|
|
4488
4750
|
type: "boolean",
|
|
4489
4751
|
default: false
|
|
4490
4752
|
})
|
|
4491
4753
|
], Job.prototype, "hideExpectedSalaryTo", 2);
|
|
4492
4754
|
__decorateClass([
|
|
4493
|
-
(0,
|
|
4755
|
+
(0, import_typeorm40.Column)({
|
|
4494
4756
|
name: "expected_annual_budget_from",
|
|
4495
4757
|
type: "decimal",
|
|
4496
4758
|
precision: 10,
|
|
@@ -4499,14 +4761,14 @@ __decorateClass([
|
|
|
4499
4761
|
})
|
|
4500
4762
|
], Job.prototype, "expectedAnnualBudgetFrom", 2);
|
|
4501
4763
|
__decorateClass([
|
|
4502
|
-
(0,
|
|
4764
|
+
(0, import_typeorm40.Column)({
|
|
4503
4765
|
name: "hide_expected_annual_budget_from",
|
|
4504
4766
|
type: "boolean",
|
|
4505
4767
|
default: false
|
|
4506
4768
|
})
|
|
4507
4769
|
], Job.prototype, "hideExpectedAnnualBudgetFrom", 2);
|
|
4508
4770
|
__decorateClass([
|
|
4509
|
-
(0,
|
|
4771
|
+
(0, import_typeorm40.Column)({
|
|
4510
4772
|
name: "expected_annual_budget_to",
|
|
4511
4773
|
type: "decimal",
|
|
4512
4774
|
precision: 10,
|
|
@@ -4515,32 +4777,32 @@ __decorateClass([
|
|
|
4515
4777
|
})
|
|
4516
4778
|
], Job.prototype, "expectedAnnualBudgetTo", 2);
|
|
4517
4779
|
__decorateClass([
|
|
4518
|
-
(0,
|
|
4780
|
+
(0, import_typeorm40.Column)({
|
|
4519
4781
|
name: "hide_expected_annual_budget_to",
|
|
4520
4782
|
type: "boolean",
|
|
4521
4783
|
default: false
|
|
4522
4784
|
})
|
|
4523
4785
|
], Job.prototype, "hideExpectedAnnualBudgetTo", 2);
|
|
4524
4786
|
__decorateClass([
|
|
4525
|
-
(0,
|
|
4787
|
+
(0, import_typeorm40.Column)({ name: "years", type: "varchar", nullable: true })
|
|
4526
4788
|
], Job.prototype, "years", 2);
|
|
4527
4789
|
__decorateClass([
|
|
4528
|
-
(0,
|
|
4790
|
+
(0, import_typeorm40.Column)({ name: "months", type: "varchar", nullable: true })
|
|
4529
4791
|
], Job.prototype, "months", 2);
|
|
4530
4792
|
__decorateClass([
|
|
4531
|
-
(0,
|
|
4793
|
+
(0, import_typeorm40.Column)({ name: "weeks", type: "varchar", nullable: true })
|
|
4532
4794
|
], Job.prototype, "weeks", 2);
|
|
4533
4795
|
__decorateClass([
|
|
4534
|
-
(0,
|
|
4796
|
+
(0, import_typeorm40.Column)({ name: "days", type: "varchar", nullable: true })
|
|
4535
4797
|
], Job.prototype, "days", 2);
|
|
4536
4798
|
__decorateClass([
|
|
4537
|
-
(0,
|
|
4799
|
+
(0, import_typeorm40.Column)({ name: "tentative_start_date", type: "date", nullable: true })
|
|
4538
4800
|
], Job.prototype, "tentativeStartDate", 2);
|
|
4539
4801
|
__decorateClass([
|
|
4540
|
-
(0,
|
|
4802
|
+
(0, import_typeorm40.Column)({ name: "tentative_end_date", type: "date", nullable: true })
|
|
4541
4803
|
], Job.prototype, "tentativeEndDate", 2);
|
|
4542
4804
|
__decorateClass([
|
|
4543
|
-
(0,
|
|
4805
|
+
(0, import_typeorm40.Column)({
|
|
4544
4806
|
name: "duration_type",
|
|
4545
4807
|
type: "enum",
|
|
4546
4808
|
enum: DurationTypeEnum,
|
|
@@ -4548,10 +4810,10 @@ __decorateClass([
|
|
|
4548
4810
|
})
|
|
4549
4811
|
], Job.prototype, "durationType", 2);
|
|
4550
4812
|
__decorateClass([
|
|
4551
|
-
(0,
|
|
4813
|
+
(0, import_typeorm40.Column)({ name: "duration", type: "varchar", nullable: true })
|
|
4552
4814
|
], Job.prototype, "duration", 2);
|
|
4553
4815
|
__decorateClass([
|
|
4554
|
-
(0,
|
|
4816
|
+
(0, import_typeorm40.Column)({
|
|
4555
4817
|
name: "number_of_hours",
|
|
4556
4818
|
type: "decimal",
|
|
4557
4819
|
precision: 4,
|
|
@@ -4560,13 +4822,13 @@ __decorateClass([
|
|
|
4560
4822
|
})
|
|
4561
4823
|
], Job.prototype, "numberOfHours", 2);
|
|
4562
4824
|
__decorateClass([
|
|
4563
|
-
(0,
|
|
4825
|
+
(0, import_typeorm40.Column)({ name: "description", type: "varchar", nullable: true })
|
|
4564
4826
|
], Job.prototype, "description", 2);
|
|
4565
4827
|
__decorateClass([
|
|
4566
|
-
(0,
|
|
4828
|
+
(0, import_typeorm40.Column)({ name: "additional_comment", type: "varchar", nullable: true })
|
|
4567
4829
|
], Job.prototype, "additionalComment", 2);
|
|
4568
4830
|
__decorateClass([
|
|
4569
|
-
(0,
|
|
4831
|
+
(0, import_typeorm40.Column)({
|
|
4570
4832
|
name: "onboarding_tat",
|
|
4571
4833
|
type: "varchar",
|
|
4572
4834
|
length: 50,
|
|
@@ -4574,17 +4836,17 @@ __decorateClass([
|
|
|
4574
4836
|
})
|
|
4575
4837
|
], Job.prototype, "onboardingTat", 2);
|
|
4576
4838
|
__decorateClass([
|
|
4577
|
-
(0,
|
|
4839
|
+
(0, import_typeorm40.Column)({
|
|
4578
4840
|
name: "candidate_communication_skills",
|
|
4579
4841
|
type: "varchar",
|
|
4580
4842
|
nullable: true
|
|
4581
4843
|
})
|
|
4582
4844
|
], Job.prototype, "candidateCommunicationSkills", 2);
|
|
4583
4845
|
__decorateClass([
|
|
4584
|
-
(0,
|
|
4846
|
+
(0, import_typeorm40.Column)({ name: "deal_breakers", type: "jsonb", nullable: true })
|
|
4585
4847
|
], Job.prototype, "dealBreakers", 2);
|
|
4586
4848
|
__decorateClass([
|
|
4587
|
-
(0,
|
|
4849
|
+
(0, import_typeorm40.Column)({
|
|
4588
4850
|
name: "step_completed",
|
|
4589
4851
|
type: "enum",
|
|
4590
4852
|
enum: Step,
|
|
@@ -4592,7 +4854,7 @@ __decorateClass([
|
|
|
4592
4854
|
})
|
|
4593
4855
|
], Job.prototype, "stepCompleted", 2);
|
|
4594
4856
|
__decorateClass([
|
|
4595
|
-
(0,
|
|
4857
|
+
(0, import_typeorm40.Column)({
|
|
4596
4858
|
name: "status",
|
|
4597
4859
|
type: "enum",
|
|
4598
4860
|
enum: JobStatusEnum,
|
|
@@ -4600,43 +4862,43 @@ __decorateClass([
|
|
|
4600
4862
|
})
|
|
4601
4863
|
], Job.prototype, "status", 2);
|
|
4602
4864
|
__decorateClass([
|
|
4603
|
-
(0,
|
|
4865
|
+
(0, import_typeorm40.Column)({ name: "viewed_count", type: "integer", default: 0 })
|
|
4604
4866
|
], Job.prototype, "viewedCount", 2);
|
|
4605
4867
|
__decorateClass([
|
|
4606
|
-
(0,
|
|
4868
|
+
(0, import_typeorm40.Column)({ name: "application_count", type: "integer", default: 0 })
|
|
4607
4869
|
], Job.prototype, "applicationCount", 2);
|
|
4608
4870
|
__decorateClass([
|
|
4609
|
-
(0,
|
|
4871
|
+
(0, import_typeorm40.Column)({ name: "is_contract_signed", type: "boolean", default: false })
|
|
4610
4872
|
], Job.prototype, "isContractSigned", 2);
|
|
4611
4873
|
__decorateClass([
|
|
4612
|
-
(0,
|
|
4874
|
+
(0, import_typeorm40.Column)({ name: "is_interview_created", type: "boolean", default: false })
|
|
4613
4875
|
], Job.prototype, "isInterviewCreated", 2);
|
|
4614
4876
|
__decorateClass([
|
|
4615
|
-
(0,
|
|
4877
|
+
(0, import_typeorm40.Column)({ name: "is_job_created_via_ai", type: "boolean", default: false })
|
|
4616
4878
|
], Job.prototype, "isJobCreatedViaAI", 2);
|
|
4617
4879
|
__decorateClass([
|
|
4618
|
-
(0,
|
|
4880
|
+
(0, import_typeorm40.OneToMany)(() => InterviewInvite, (interviewInvite) => interviewInvite.job, { cascade: true })
|
|
4619
4881
|
], Job.prototype, "interviewInvites", 2);
|
|
4620
4882
|
__decorateClass([
|
|
4621
|
-
(0,
|
|
4883
|
+
(0, import_typeorm40.OneToMany)(() => JobSkill, (jobSkill) => jobSkill.job, { cascade: true })
|
|
4622
4884
|
], Job.prototype, "jobSkills", 2);
|
|
4623
4885
|
__decorateClass([
|
|
4624
|
-
(0,
|
|
4886
|
+
(0, import_typeorm40.OneToMany)(() => JobApplication, (jobApplication) => jobApplication.job, {
|
|
4625
4887
|
cascade: true
|
|
4626
4888
|
})
|
|
4627
4889
|
], Job.prototype, "jobApplications", 2);
|
|
4628
4890
|
__decorateClass([
|
|
4629
|
-
(0,
|
|
4891
|
+
(0, import_typeorm40.OneToMany)(() => Interview, (interview) => interview.job, {
|
|
4630
4892
|
cascade: true
|
|
4631
4893
|
})
|
|
4632
4894
|
], Job.prototype, "interviews", 2);
|
|
4633
4895
|
__decorateClass([
|
|
4634
|
-
(0,
|
|
4896
|
+
(0, import_typeorm40.OneToMany)(() => F2FInterview, (f2fInterview) => f2fInterview.job, {
|
|
4635
4897
|
cascade: true
|
|
4636
4898
|
})
|
|
4637
4899
|
], Job.prototype, "f2fInterviews", 2);
|
|
4638
4900
|
__decorateClass([
|
|
4639
|
-
(0,
|
|
4901
|
+
(0, import_typeorm40.OneToMany)(
|
|
4640
4902
|
() => JobRecommendation,
|
|
4641
4903
|
(jobRecommendation) => jobRecommendation.job,
|
|
4642
4904
|
{
|
|
@@ -4645,59 +4907,64 @@ __decorateClass([
|
|
|
4645
4907
|
)
|
|
4646
4908
|
], Job.prototype, "recommendations", 2);
|
|
4647
4909
|
__decorateClass([
|
|
4648
|
-
(0,
|
|
4910
|
+
(0, import_typeorm40.OneToMany)(() => ContractSummary, (contractSummary) => contractSummary.job, {
|
|
4649
4911
|
cascade: true
|
|
4650
4912
|
})
|
|
4651
4913
|
], Job.prototype, "contractSummaries", 2);
|
|
4652
4914
|
__decorateClass([
|
|
4653
|
-
(0,
|
|
4915
|
+
(0, import_typeorm40.OneToMany)(() => Contract, (contract) => contract.job, {
|
|
4654
4916
|
cascade: true
|
|
4655
4917
|
})
|
|
4656
4918
|
], Job.prototype, "contracts", 2);
|
|
4657
4919
|
__decorateClass([
|
|
4658
|
-
(0,
|
|
4920
|
+
(0, import_typeorm40.OneToMany)(() => Hiring, (hiring) => hiring.job, {
|
|
4659
4921
|
cascade: true
|
|
4660
4922
|
})
|
|
4661
4923
|
], Job.prototype, "hirings", 2);
|
|
4662
4924
|
__decorateClass([
|
|
4663
|
-
(0,
|
|
4925
|
+
(0, import_typeorm40.OneToMany)(() => EscrowWallet, (escrowWallet) => escrowWallet.job, {
|
|
4664
4926
|
cascade: true
|
|
4665
4927
|
})
|
|
4666
4928
|
], Job.prototype, "escrowWallets", 2);
|
|
4667
4929
|
__decorateClass([
|
|
4668
|
-
(0,
|
|
4930
|
+
(0, import_typeorm40.OneToMany)(() => Timesheet, (timesheet) => timesheet.job, {
|
|
4669
4931
|
cascade: true
|
|
4670
4932
|
})
|
|
4671
4933
|
], Job.prototype, "timesheets", 2);
|
|
4672
4934
|
__decorateClass([
|
|
4673
|
-
(0,
|
|
4935
|
+
(0, import_typeorm40.OneToMany)(() => TimesheetLine, (timesheetLine) => timesheetLine.job, {
|
|
4674
4936
|
cascade: true
|
|
4675
4937
|
})
|
|
4676
4938
|
], Job.prototype, "timesheetLine", 2);
|
|
4677
4939
|
__decorateClass([
|
|
4678
|
-
(0,
|
|
4940
|
+
(0, import_typeorm40.OneToMany)(() => Invoice, (invoice) => invoice.job, {
|
|
4679
4941
|
cascade: true
|
|
4680
4942
|
})
|
|
4681
4943
|
], Job.prototype, "invoice", 2);
|
|
4682
4944
|
__decorateClass([
|
|
4683
|
-
(0,
|
|
4945
|
+
(0, import_typeorm40.OneToMany)(() => ClientCandidatePreference, (clientCandidatePreference) => clientCandidatePreference.job)
|
|
4684
4946
|
], Job.prototype, "clientCandidatePreferences", 2);
|
|
4685
4947
|
__decorateClass([
|
|
4686
|
-
(0,
|
|
4948
|
+
(0, import_typeorm40.OneToMany)(() => JobLocation, (jobLocation) => jobLocation.job, {
|
|
4687
4949
|
cascade: true
|
|
4688
4950
|
})
|
|
4689
4951
|
], Job.prototype, "jobLocations", 2);
|
|
4690
4952
|
__decorateClass([
|
|
4691
|
-
(0,
|
|
4953
|
+
(0, import_typeorm40.OneToMany)(() => Rating, (rating) => rating.job, {
|
|
4692
4954
|
cascade: true
|
|
4693
4955
|
})
|
|
4694
4956
|
], Job.prototype, "ratings", 2);
|
|
4957
|
+
__decorateClass([
|
|
4958
|
+
(0, import_typeorm40.OneToMany)(() => Task, (task) => task.job, {
|
|
4959
|
+
cascade: true
|
|
4960
|
+
})
|
|
4961
|
+
], Job.prototype, "tasks", 2);
|
|
4695
4962
|
Job = __decorateClass([
|
|
4696
|
-
(0,
|
|
4963
|
+
(0, import_typeorm40.Entity)("jobs")
|
|
4697
4964
|
], Job);
|
|
4698
4965
|
|
|
4699
4966
|
// src/entities/bank-details.entity.ts
|
|
4700
|
-
var
|
|
4967
|
+
var import_typeorm41 = require("typeorm");
|
|
4701
4968
|
var BankAccountTypeEnum = /* @__PURE__ */ ((BankAccountTypeEnum2) => {
|
|
4702
4969
|
BankAccountTypeEnum2["PRIMARY"] = "PRIMARY";
|
|
4703
4970
|
BankAccountTypeEnum2["SECONDARY"] = "SECONDARY";
|
|
@@ -4712,51 +4979,51 @@ var BankDetail = class extends BaseEntity {
|
|
|
4712
4979
|
};
|
|
4713
4980
|
// individual index to find bank details by user
|
|
4714
4981
|
__decorateClass([
|
|
4715
|
-
(0,
|
|
4716
|
-
(0,
|
|
4982
|
+
(0, import_typeorm41.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
4983
|
+
(0, import_typeorm41.Index)()
|
|
4717
4984
|
], BankDetail.prototype, "userId", 2);
|
|
4718
4985
|
__decorateClass([
|
|
4719
|
-
(0,
|
|
4720
|
-
(0,
|
|
4986
|
+
(0, import_typeorm41.ManyToOne)(() => User, (user) => user.bankDetail),
|
|
4987
|
+
(0, import_typeorm41.JoinColumn)({ name: "user_id" })
|
|
4721
4988
|
], BankDetail.prototype, "user", 2);
|
|
4722
4989
|
__decorateClass([
|
|
4723
|
-
(0,
|
|
4990
|
+
(0, import_typeorm41.Column)({ name: "name", type: "varchar", nullable: true })
|
|
4724
4991
|
], BankDetail.prototype, "name", 2);
|
|
4725
4992
|
__decorateClass([
|
|
4726
|
-
(0,
|
|
4993
|
+
(0, import_typeorm41.Column)({ name: "mobile_code", type: "varchar", nullable: true })
|
|
4727
4994
|
], BankDetail.prototype, "mobileCode", 2);
|
|
4728
4995
|
__decorateClass([
|
|
4729
|
-
(0,
|
|
4996
|
+
(0, import_typeorm41.Column)({ name: "mobile", type: "varchar", nullable: true })
|
|
4730
4997
|
], BankDetail.prototype, "mobile", 2);
|
|
4731
4998
|
__decorateClass([
|
|
4732
|
-
(0,
|
|
4999
|
+
(0, import_typeorm41.Column)({ name: "email", type: "varchar" })
|
|
4733
5000
|
], BankDetail.prototype, "email", 2);
|
|
4734
5001
|
__decorateClass([
|
|
4735
|
-
(0,
|
|
5002
|
+
(0, import_typeorm41.Column)({ name: "address", type: "varchar", nullable: true })
|
|
4736
5003
|
], BankDetail.prototype, "address", 2);
|
|
4737
5004
|
__decorateClass([
|
|
4738
|
-
(0,
|
|
5005
|
+
(0, import_typeorm41.Column)({ name: "account_number", type: "varchar", unique: true, nullable: true })
|
|
4739
5006
|
], BankDetail.prototype, "accountNumber", 2);
|
|
4740
5007
|
__decorateClass([
|
|
4741
|
-
(0,
|
|
5008
|
+
(0, import_typeorm41.Column)({ name: "bank_name", type: "varchar", nullable: true })
|
|
4742
5009
|
], BankDetail.prototype, "bankName", 2);
|
|
4743
5010
|
__decorateClass([
|
|
4744
|
-
(0,
|
|
5011
|
+
(0, import_typeorm41.Column)({ name: "ifsc_code", type: "varchar", nullable: true })
|
|
4745
5012
|
], BankDetail.prototype, "ifscCode", 2);
|
|
4746
5013
|
__decorateClass([
|
|
4747
|
-
(0,
|
|
5014
|
+
(0, import_typeorm41.Column)({ name: "branch_name", type: "varchar", nullable: true })
|
|
4748
5015
|
], BankDetail.prototype, "branchName", 2);
|
|
4749
5016
|
__decorateClass([
|
|
4750
|
-
(0,
|
|
5017
|
+
(0, import_typeorm41.Column)({ name: "routing_no", type: "varchar", nullable: true })
|
|
4751
5018
|
], BankDetail.prototype, "routingNo", 2);
|
|
4752
5019
|
__decorateClass([
|
|
4753
|
-
(0,
|
|
5020
|
+
(0, import_typeorm41.Column)({ name: "aba_no", type: "varchar", nullable: true })
|
|
4754
5021
|
], BankDetail.prototype, "abaNumber", 2);
|
|
4755
5022
|
__decorateClass([
|
|
4756
|
-
(0,
|
|
5023
|
+
(0, import_typeorm41.Column)({ name: "iban", type: "varchar", nullable: true })
|
|
4757
5024
|
], BankDetail.prototype, "iban", 2);
|
|
4758
5025
|
__decorateClass([
|
|
4759
|
-
(0,
|
|
5026
|
+
(0, import_typeorm41.Column)({
|
|
4760
5027
|
name: "account_type",
|
|
4761
5028
|
type: "enum",
|
|
4762
5029
|
enum: BankAccountTypeEnum,
|
|
@@ -4764,7 +5031,7 @@ __decorateClass([
|
|
|
4764
5031
|
})
|
|
4765
5032
|
], BankDetail.prototype, "accountType", 2);
|
|
4766
5033
|
__decorateClass([
|
|
4767
|
-
(0,
|
|
5034
|
+
(0, import_typeorm41.Column)({
|
|
4768
5035
|
name: "account_scope",
|
|
4769
5036
|
type: "enum",
|
|
4770
5037
|
enum: BankAccountScopeEnum,
|
|
@@ -4772,150 +5039,150 @@ __decorateClass([
|
|
|
4772
5039
|
})
|
|
4773
5040
|
], BankDetail.prototype, "accountScope", 2);
|
|
4774
5041
|
BankDetail = __decorateClass([
|
|
4775
|
-
(0,
|
|
5042
|
+
(0, import_typeorm41.Entity)("bank_details")
|
|
4776
5043
|
], BankDetail);
|
|
4777
5044
|
|
|
4778
5045
|
// src/entities/system-preference.entity.ts
|
|
4779
|
-
var
|
|
5046
|
+
var import_typeorm42 = require("typeorm");
|
|
4780
5047
|
var SystemPreference = class extends BaseEntity {
|
|
4781
5048
|
};
|
|
4782
5049
|
// individual index to find system preference by user
|
|
4783
5050
|
__decorateClass([
|
|
4784
|
-
(0,
|
|
4785
|
-
(0,
|
|
5051
|
+
(0, import_typeorm42.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
5052
|
+
(0, import_typeorm42.Index)()
|
|
4786
5053
|
], SystemPreference.prototype, "userId", 2);
|
|
4787
5054
|
__decorateClass([
|
|
4788
|
-
(0,
|
|
4789
|
-
(0,
|
|
5055
|
+
(0, import_typeorm42.ManyToOne)(() => User, (user) => user.systemPreference),
|
|
5056
|
+
(0, import_typeorm42.JoinColumn)({ name: "user_id" })
|
|
4790
5057
|
], SystemPreference.prototype, "user", 2);
|
|
4791
5058
|
__decorateClass([
|
|
4792
|
-
(0,
|
|
5059
|
+
(0, import_typeorm42.Column)({ name: "key", type: "varchar", nullable: false })
|
|
4793
5060
|
], SystemPreference.prototype, "key", 2);
|
|
4794
5061
|
__decorateClass([
|
|
4795
|
-
(0,
|
|
5062
|
+
(0, import_typeorm42.Column)({ name: "value", type: "boolean", default: false })
|
|
4796
5063
|
], SystemPreference.prototype, "value", 2);
|
|
4797
5064
|
SystemPreference = __decorateClass([
|
|
4798
|
-
(0,
|
|
5065
|
+
(0, import_typeorm42.Entity)("system_preferences")
|
|
4799
5066
|
], SystemPreference);
|
|
4800
5067
|
|
|
4801
5068
|
// src/entities/freelancer-experience.entity.ts
|
|
4802
|
-
var
|
|
5069
|
+
var import_typeorm43 = require("typeorm");
|
|
4803
5070
|
var FreelancerExperience = class extends BaseEntity {
|
|
4804
5071
|
};
|
|
4805
5072
|
// individual index to find experence by user
|
|
4806
5073
|
__decorateClass([
|
|
4807
|
-
(0,
|
|
4808
|
-
(0,
|
|
5074
|
+
(0, import_typeorm43.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
5075
|
+
(0, import_typeorm43.Index)()
|
|
4809
5076
|
], FreelancerExperience.prototype, "userId", 2);
|
|
4810
5077
|
__decorateClass([
|
|
4811
|
-
(0,
|
|
4812
|
-
(0,
|
|
5078
|
+
(0, import_typeorm43.ManyToOne)(() => User, (user) => user.freelancerExperience),
|
|
5079
|
+
(0, import_typeorm43.JoinColumn)({ name: "user_id" })
|
|
4813
5080
|
], FreelancerExperience.prototype, "user", 2);
|
|
4814
5081
|
__decorateClass([
|
|
4815
|
-
(0,
|
|
5082
|
+
(0, import_typeorm43.Column)({ name: "company_name", type: "varchar", nullable: true })
|
|
4816
5083
|
], FreelancerExperience.prototype, "companyName", 2);
|
|
4817
5084
|
__decorateClass([
|
|
4818
|
-
(0,
|
|
5085
|
+
(0, import_typeorm43.Column)({ name: "designation", type: "varchar", nullable: true })
|
|
4819
5086
|
], FreelancerExperience.prototype, "designation", 2);
|
|
4820
5087
|
__decorateClass([
|
|
4821
|
-
(0,
|
|
5088
|
+
(0, import_typeorm43.Column)({ name: "job_duration", type: "varchar", nullable: true })
|
|
4822
5089
|
], FreelancerExperience.prototype, "jobDuration", 2);
|
|
4823
5090
|
__decorateClass([
|
|
4824
|
-
(0,
|
|
5091
|
+
(0, import_typeorm43.Column)({ name: "description", type: "varchar", nullable: true })
|
|
4825
5092
|
], FreelancerExperience.prototype, "description", 2);
|
|
4826
5093
|
FreelancerExperience = __decorateClass([
|
|
4827
|
-
(0,
|
|
5094
|
+
(0, import_typeorm43.Entity)("freelancer_experiences")
|
|
4828
5095
|
], FreelancerExperience);
|
|
4829
5096
|
|
|
4830
5097
|
// src/entities/freelancer-education.entity.ts
|
|
4831
|
-
var
|
|
5098
|
+
var import_typeorm44 = require("typeorm");
|
|
4832
5099
|
var FreelancerEducation = class extends BaseEntity {
|
|
4833
5100
|
};
|
|
4834
5101
|
// individual index to find education by user
|
|
4835
5102
|
__decorateClass([
|
|
4836
|
-
(0,
|
|
4837
|
-
(0,
|
|
5103
|
+
(0, import_typeorm44.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
5104
|
+
(0, import_typeorm44.Index)()
|
|
4838
5105
|
], FreelancerEducation.prototype, "userId", 2);
|
|
4839
5106
|
__decorateClass([
|
|
4840
|
-
(0,
|
|
4841
|
-
(0,
|
|
5107
|
+
(0, import_typeorm44.ManyToOne)(() => User, (user) => user.freelancerEducation),
|
|
5108
|
+
(0, import_typeorm44.JoinColumn)({ name: "user_id" })
|
|
4842
5109
|
], FreelancerEducation.prototype, "user", 2);
|
|
4843
5110
|
__decorateClass([
|
|
4844
|
-
(0,
|
|
5111
|
+
(0, import_typeorm44.Column)({ name: "degree", type: "varchar", nullable: true })
|
|
4845
5112
|
], FreelancerEducation.prototype, "degree", 2);
|
|
4846
5113
|
__decorateClass([
|
|
4847
|
-
(0,
|
|
5114
|
+
(0, import_typeorm44.Column)({ name: "university", type: "varchar", nullable: true })
|
|
4848
5115
|
], FreelancerEducation.prototype, "university", 2);
|
|
4849
5116
|
__decorateClass([
|
|
4850
|
-
(0,
|
|
5117
|
+
(0, import_typeorm44.Column)({ name: "year_of_graduation", type: "varchar", nullable: true })
|
|
4851
5118
|
], FreelancerEducation.prototype, "yearOfGraduation", 2);
|
|
4852
5119
|
FreelancerEducation = __decorateClass([
|
|
4853
|
-
(0,
|
|
5120
|
+
(0, import_typeorm44.Entity)("freelancer_educations")
|
|
4854
5121
|
], FreelancerEducation);
|
|
4855
5122
|
|
|
4856
5123
|
// src/entities/freelancer-project.entity.ts
|
|
4857
|
-
var
|
|
5124
|
+
var import_typeorm45 = require("typeorm");
|
|
4858
5125
|
var FreelancerProject = class extends BaseEntity {
|
|
4859
5126
|
};
|
|
4860
5127
|
// individual index to find project by user
|
|
4861
5128
|
__decorateClass([
|
|
4862
|
-
(0,
|
|
4863
|
-
(0,
|
|
5129
|
+
(0, import_typeorm45.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
5130
|
+
(0, import_typeorm45.Index)()
|
|
4864
5131
|
], FreelancerProject.prototype, "userId", 2);
|
|
4865
5132
|
__decorateClass([
|
|
4866
|
-
(0,
|
|
4867
|
-
(0,
|
|
5133
|
+
(0, import_typeorm45.ManyToOne)(() => User, (user) => user.freelancerProject),
|
|
5134
|
+
(0, import_typeorm45.JoinColumn)({ name: "user_id" })
|
|
4868
5135
|
], FreelancerProject.prototype, "user", 2);
|
|
4869
5136
|
__decorateClass([
|
|
4870
|
-
(0,
|
|
5137
|
+
(0, import_typeorm45.Column)({ name: "project_name", type: "varchar", nullable: true })
|
|
4871
5138
|
], FreelancerProject.prototype, "projectName", 2);
|
|
4872
5139
|
__decorateClass([
|
|
4873
|
-
(0,
|
|
5140
|
+
(0, import_typeorm45.Column)({ name: "start_date", type: "date", nullable: true })
|
|
4874
5141
|
], FreelancerProject.prototype, "startDate", 2);
|
|
4875
5142
|
__decorateClass([
|
|
4876
|
-
(0,
|
|
5143
|
+
(0, import_typeorm45.Column)({ name: "end_date", type: "date", nullable: true })
|
|
4877
5144
|
], FreelancerProject.prototype, "endDate", 2);
|
|
4878
5145
|
__decorateClass([
|
|
4879
|
-
(0,
|
|
5146
|
+
(0, import_typeorm45.Column)({ name: "client_name", type: "varchar", nullable: true })
|
|
4880
5147
|
], FreelancerProject.prototype, "clientName", 2);
|
|
4881
5148
|
__decorateClass([
|
|
4882
|
-
(0,
|
|
5149
|
+
(0, import_typeorm45.Column)({ name: "git_link", type: "varchar", nullable: true })
|
|
4883
5150
|
], FreelancerProject.prototype, "gitLink", 2);
|
|
4884
5151
|
__decorateClass([
|
|
4885
|
-
(0,
|
|
5152
|
+
(0, import_typeorm45.Column)({ name: "description", type: "varchar", nullable: true })
|
|
4886
5153
|
], FreelancerProject.prototype, "description", 2);
|
|
4887
5154
|
FreelancerProject = __decorateClass([
|
|
4888
|
-
(0,
|
|
5155
|
+
(0, import_typeorm45.Entity)("freelancer_projects")
|
|
4889
5156
|
], FreelancerProject);
|
|
4890
5157
|
|
|
4891
5158
|
// src/entities/freelancer-casestudy.entity.ts
|
|
4892
|
-
var
|
|
5159
|
+
var import_typeorm46 = require("typeorm");
|
|
4893
5160
|
var FreelancerCaseStudy = class extends BaseEntity {
|
|
4894
5161
|
};
|
|
4895
5162
|
// individual index to find case study by user
|
|
4896
5163
|
__decorateClass([
|
|
4897
|
-
(0,
|
|
4898
|
-
(0,
|
|
5164
|
+
(0, import_typeorm46.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
5165
|
+
(0, import_typeorm46.Index)()
|
|
4899
5166
|
], FreelancerCaseStudy.prototype, "userId", 2);
|
|
4900
5167
|
__decorateClass([
|
|
4901
|
-
(0,
|
|
4902
|
-
(0,
|
|
5168
|
+
(0, import_typeorm46.ManyToOne)(() => User, (user) => user.freelancerCaseStudy),
|
|
5169
|
+
(0, import_typeorm46.JoinColumn)({ name: "user_id" })
|
|
4903
5170
|
], FreelancerCaseStudy.prototype, "user", 2);
|
|
4904
5171
|
__decorateClass([
|
|
4905
|
-
(0,
|
|
5172
|
+
(0, import_typeorm46.Column)({ name: "project_name", type: "varchar", nullable: true })
|
|
4906
5173
|
], FreelancerCaseStudy.prototype, "projectName", 2);
|
|
4907
5174
|
__decorateClass([
|
|
4908
|
-
(0,
|
|
5175
|
+
(0, import_typeorm46.Column)({ name: "case_study_link", type: "varchar", nullable: true })
|
|
4909
5176
|
], FreelancerCaseStudy.prototype, "caseStudyLink", 2);
|
|
4910
5177
|
__decorateClass([
|
|
4911
|
-
(0,
|
|
5178
|
+
(0, import_typeorm46.Column)({ name: "description", type: "varchar", nullable: true })
|
|
4912
5179
|
], FreelancerCaseStudy.prototype, "description", 2);
|
|
4913
5180
|
FreelancerCaseStudy = __decorateClass([
|
|
4914
|
-
(0,
|
|
5181
|
+
(0, import_typeorm46.Entity)("freelancer_case_studies")
|
|
4915
5182
|
], FreelancerCaseStudy);
|
|
4916
5183
|
|
|
4917
5184
|
// src/entities/freelancer-skill.entity.ts
|
|
4918
|
-
var
|
|
5185
|
+
var import_typeorm47 = require("typeorm");
|
|
4919
5186
|
var FreelancerSkillCategoryEnum = /* @__PURE__ */ ((FreelancerSkillCategoryEnum2) => {
|
|
4920
5187
|
FreelancerSkillCategoryEnum2[FreelancerSkillCategoryEnum2["GOOD_TO_HAVE"] = 0] = "GOOD_TO_HAVE";
|
|
4921
5188
|
FreelancerSkillCategoryEnum2[FreelancerSkillCategoryEnum2["MUST_HAVE"] = 1] = "MUST_HAVE";
|
|
@@ -4925,18 +5192,18 @@ var FreelancerSkill = class extends BaseEntity {
|
|
|
4925
5192
|
};
|
|
4926
5193
|
// individual index to find core skills by user
|
|
4927
5194
|
__decorateClass([
|
|
4928
|
-
(0,
|
|
4929
|
-
(0,
|
|
5195
|
+
(0, import_typeorm47.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
5196
|
+
(0, import_typeorm47.Index)()
|
|
4930
5197
|
], FreelancerSkill.prototype, "userId", 2);
|
|
4931
5198
|
__decorateClass([
|
|
4932
|
-
(0,
|
|
4933
|
-
(0,
|
|
5199
|
+
(0, import_typeorm47.ManyToOne)(() => User, (user) => user.freelancerSkills),
|
|
5200
|
+
(0, import_typeorm47.JoinColumn)({ name: "user_id" })
|
|
4934
5201
|
], FreelancerSkill.prototype, "user", 2);
|
|
4935
5202
|
__decorateClass([
|
|
4936
|
-
(0,
|
|
5203
|
+
(0, import_typeorm47.Column)({ name: "skill_name", type: "varchar", nullable: true })
|
|
4937
5204
|
], FreelancerSkill.prototype, "skillName", 2);
|
|
4938
5205
|
__decorateClass([
|
|
4939
|
-
(0,
|
|
5206
|
+
(0, import_typeorm47.Column)({
|
|
4940
5207
|
name: "skill_category",
|
|
4941
5208
|
type: "smallint",
|
|
4942
5209
|
default: 1,
|
|
@@ -4944,51 +5211,51 @@ __decorateClass([
|
|
|
4944
5211
|
})
|
|
4945
5212
|
], FreelancerSkill.prototype, "skillCategory", 2);
|
|
4946
5213
|
FreelancerSkill = __decorateClass([
|
|
4947
|
-
(0,
|
|
5214
|
+
(0, import_typeorm47.Entity)("freelancer_skills")
|
|
4948
5215
|
], FreelancerSkill);
|
|
4949
5216
|
|
|
4950
5217
|
// src/entities/freelancer-tool.entity.ts
|
|
4951
|
-
var
|
|
5218
|
+
var import_typeorm48 = require("typeorm");
|
|
4952
5219
|
var FreelancerTool = class extends BaseEntity {
|
|
4953
5220
|
};
|
|
4954
5221
|
// individual index to find tool by user
|
|
4955
5222
|
__decorateClass([
|
|
4956
|
-
(0,
|
|
4957
|
-
(0,
|
|
5223
|
+
(0, import_typeorm48.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
5224
|
+
(0, import_typeorm48.Index)()
|
|
4958
5225
|
], FreelancerTool.prototype, "userId", 2);
|
|
4959
5226
|
__decorateClass([
|
|
4960
|
-
(0,
|
|
4961
|
-
(0,
|
|
5227
|
+
(0, import_typeorm48.ManyToOne)(() => User, (user) => user.freelancerTool),
|
|
5228
|
+
(0, import_typeorm48.JoinColumn)({ name: "user_id" })
|
|
4962
5229
|
], FreelancerTool.prototype, "user", 2);
|
|
4963
5230
|
__decorateClass([
|
|
4964
|
-
(0,
|
|
5231
|
+
(0, import_typeorm48.Column)({ name: "tool_name", type: "varchar", nullable: true })
|
|
4965
5232
|
], FreelancerTool.prototype, "toolName", 2);
|
|
4966
5233
|
FreelancerTool = __decorateClass([
|
|
4967
|
-
(0,
|
|
5234
|
+
(0, import_typeorm48.Entity)("freelancer_tools")
|
|
4968
5235
|
], FreelancerTool);
|
|
4969
5236
|
|
|
4970
5237
|
// src/entities/freelancer-framework.entity.ts
|
|
4971
|
-
var
|
|
5238
|
+
var import_typeorm49 = require("typeorm");
|
|
4972
5239
|
var FreelancerFramework = class extends BaseEntity {
|
|
4973
5240
|
};
|
|
4974
5241
|
// individual index to find framework by user
|
|
4975
5242
|
__decorateClass([
|
|
4976
|
-
(0,
|
|
4977
|
-
(0,
|
|
5243
|
+
(0, import_typeorm49.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
5244
|
+
(0, import_typeorm49.Index)()
|
|
4978
5245
|
], FreelancerFramework.prototype, "userId", 2);
|
|
4979
5246
|
__decorateClass([
|
|
4980
|
-
(0,
|
|
4981
|
-
(0,
|
|
5247
|
+
(0, import_typeorm49.ManyToOne)(() => User, (user) => user.freelancerFramework),
|
|
5248
|
+
(0, import_typeorm49.JoinColumn)({ name: "user_id" })
|
|
4982
5249
|
], FreelancerFramework.prototype, "user", 2);
|
|
4983
5250
|
__decorateClass([
|
|
4984
|
-
(0,
|
|
5251
|
+
(0, import_typeorm49.Column)({ name: "framework_name", type: "varchar", nullable: true })
|
|
4985
5252
|
], FreelancerFramework.prototype, "frameworkName", 2);
|
|
4986
5253
|
FreelancerFramework = __decorateClass([
|
|
4987
|
-
(0,
|
|
5254
|
+
(0, import_typeorm49.Entity)("freelancer_frameworks")
|
|
4988
5255
|
], FreelancerFramework);
|
|
4989
5256
|
|
|
4990
5257
|
// src/entities/freelancer-assessment.entity.ts
|
|
4991
|
-
var
|
|
5258
|
+
var import_typeorm50 = require("typeorm");
|
|
4992
5259
|
var AssessmentStatusEnum = /* @__PURE__ */ ((AssessmentStatusEnum2) => {
|
|
4993
5260
|
AssessmentStatusEnum2["NOT_ATTEMPTED"] = "NOT_ATTEMPTED";
|
|
4994
5261
|
AssessmentStatusEnum2["ACTIVE"] = "ACTIVE";
|
|
@@ -5005,33 +5272,33 @@ var AssessmentStatusEnum = /* @__PURE__ */ ((AssessmentStatusEnum2) => {
|
|
|
5005
5272
|
var FreelancerAssessment = class extends BaseEntity {
|
|
5006
5273
|
};
|
|
5007
5274
|
__decorateClass([
|
|
5008
|
-
(0,
|
|
5009
|
-
(0,
|
|
5275
|
+
(0, import_typeorm50.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
5276
|
+
(0, import_typeorm50.Index)()
|
|
5010
5277
|
], FreelancerAssessment.prototype, "userId", 2);
|
|
5011
5278
|
__decorateClass([
|
|
5012
|
-
(0,
|
|
5013
|
-
(0,
|
|
5279
|
+
(0, import_typeorm50.ManyToOne)(() => User, (user) => user.assessments),
|
|
5280
|
+
(0, import_typeorm50.JoinColumn)({ name: "user_id" })
|
|
5014
5281
|
], FreelancerAssessment.prototype, "user", 2);
|
|
5015
5282
|
__decorateClass([
|
|
5016
|
-
(0,
|
|
5283
|
+
(0, import_typeorm50.Column)({ name: "interview_id", type: "varchar", nullable: true })
|
|
5017
5284
|
], FreelancerAssessment.prototype, "interviewId", 2);
|
|
5018
5285
|
__decorateClass([
|
|
5019
|
-
(0,
|
|
5286
|
+
(0, import_typeorm50.Column)({ name: "interview_link", type: "text", nullable: true })
|
|
5020
5287
|
], FreelancerAssessment.prototype, "interviewLink", 2);
|
|
5021
5288
|
__decorateClass([
|
|
5022
|
-
(0,
|
|
5289
|
+
(0, import_typeorm50.Column)({ name: "recording_link", type: "text", nullable: true })
|
|
5023
5290
|
], FreelancerAssessment.prototype, "recordingLink", 2);
|
|
5024
5291
|
__decorateClass([
|
|
5025
|
-
(0,
|
|
5292
|
+
(0, import_typeorm50.Column)({ name: "iframe_response", type: "jsonb", nullable: true })
|
|
5026
5293
|
], FreelancerAssessment.prototype, "iframeResponse", 2);
|
|
5027
5294
|
__decorateClass([
|
|
5028
|
-
(0,
|
|
5295
|
+
(0, import_typeorm50.Column)({ name: "interview_summary", type: "jsonb", nullable: true })
|
|
5029
5296
|
], FreelancerAssessment.prototype, "interviewSummary", 2);
|
|
5030
5297
|
__decorateClass([
|
|
5031
|
-
(0,
|
|
5298
|
+
(0, import_typeorm50.Column)({ name: "score", type: "float", nullable: true })
|
|
5032
5299
|
], FreelancerAssessment.prototype, "score", 2);
|
|
5033
5300
|
__decorateClass([
|
|
5034
|
-
(0,
|
|
5301
|
+
(0, import_typeorm50.Column)({
|
|
5035
5302
|
name: "status",
|
|
5036
5303
|
type: "enum",
|
|
5037
5304
|
enum: AssessmentStatusEnum,
|
|
@@ -5039,17 +5306,17 @@ __decorateClass([
|
|
|
5039
5306
|
})
|
|
5040
5307
|
], FreelancerAssessment.prototype, "status", 2);
|
|
5041
5308
|
__decorateClass([
|
|
5042
|
-
(0,
|
|
5309
|
+
(0, import_typeorm50.Column)({ name: "task_id", type: "varchar", nullable: true })
|
|
5043
5310
|
], FreelancerAssessment.prototype, "taskId", 2);
|
|
5044
5311
|
__decorateClass([
|
|
5045
|
-
(0,
|
|
5312
|
+
(0, import_typeorm50.Column)({ name: "meta_data", type: "jsonb", nullable: true })
|
|
5046
5313
|
], FreelancerAssessment.prototype, "metaData", 2);
|
|
5047
5314
|
FreelancerAssessment = __decorateClass([
|
|
5048
|
-
(0,
|
|
5315
|
+
(0, import_typeorm50.Entity)("freelancer_assessments")
|
|
5049
5316
|
], FreelancerAssessment);
|
|
5050
5317
|
|
|
5051
5318
|
// src/entities/freelancer-declaration.entity.ts
|
|
5052
|
-
var
|
|
5319
|
+
var import_typeorm51 = require("typeorm");
|
|
5053
5320
|
var DocumentType = /* @__PURE__ */ ((DocumentType2) => {
|
|
5054
5321
|
DocumentType2["AADHAAR"] = "AADHAAR_CARD";
|
|
5055
5322
|
DocumentType2["PASSPORT"] = "PASSPORT";
|
|
@@ -5061,15 +5328,15 @@ var FreelancerDeclaration = class extends BaseEntity {
|
|
|
5061
5328
|
};
|
|
5062
5329
|
// individual index to find declaration by user
|
|
5063
5330
|
__decorateClass([
|
|
5064
|
-
(0,
|
|
5065
|
-
(0,
|
|
5331
|
+
(0, import_typeorm51.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
5332
|
+
(0, import_typeorm51.Index)()
|
|
5066
5333
|
], FreelancerDeclaration.prototype, "userId", 2);
|
|
5067
5334
|
__decorateClass([
|
|
5068
|
-
(0,
|
|
5069
|
-
(0,
|
|
5335
|
+
(0, import_typeorm51.ManyToOne)(() => User, (user) => user.freelancerDeclaration),
|
|
5336
|
+
(0, import_typeorm51.JoinColumn)({ name: "user_id" })
|
|
5070
5337
|
], FreelancerDeclaration.prototype, "user", 2);
|
|
5071
5338
|
__decorateClass([
|
|
5072
|
-
(0,
|
|
5339
|
+
(0, import_typeorm51.Column)({
|
|
5073
5340
|
name: "document_type",
|
|
5074
5341
|
type: "enum",
|
|
5075
5342
|
enum: DocumentType,
|
|
@@ -5077,147 +5344,147 @@ __decorateClass([
|
|
|
5077
5344
|
})
|
|
5078
5345
|
], FreelancerDeclaration.prototype, "documentType", 2);
|
|
5079
5346
|
__decorateClass([
|
|
5080
|
-
(0,
|
|
5347
|
+
(0, import_typeorm51.Column)({ name: "front_document_url", type: "varchar", nullable: true })
|
|
5081
5348
|
], FreelancerDeclaration.prototype, "frontDocumentUrl", 2);
|
|
5082
5349
|
__decorateClass([
|
|
5083
|
-
(0,
|
|
5350
|
+
(0, import_typeorm51.Column)({ name: "back_document_url", type: "varchar", nullable: true })
|
|
5084
5351
|
], FreelancerDeclaration.prototype, "backDocumentUrl", 2);
|
|
5085
5352
|
__decorateClass([
|
|
5086
|
-
(0,
|
|
5353
|
+
(0, import_typeorm51.Column)({ name: "declaration_accepted", type: "boolean", default: false })
|
|
5087
5354
|
], FreelancerDeclaration.prototype, "declarationAccepted", 2);
|
|
5088
5355
|
__decorateClass([
|
|
5089
|
-
(0,
|
|
5356
|
+
(0, import_typeorm51.Column)({ name: "digital_signature_url", type: "varchar", nullable: true })
|
|
5090
5357
|
], FreelancerDeclaration.prototype, "digitalSignatureUrl", 2);
|
|
5091
5358
|
FreelancerDeclaration = __decorateClass([
|
|
5092
|
-
(0,
|
|
5359
|
+
(0, import_typeorm51.Entity)("freelancer_declaration")
|
|
5093
5360
|
], FreelancerDeclaration);
|
|
5094
5361
|
|
|
5095
5362
|
// src/entities/company-members-roles.entity.ts
|
|
5096
|
-
var
|
|
5363
|
+
var import_typeorm55 = require("typeorm");
|
|
5097
5364
|
|
|
5098
5365
|
// src/entities/company-role.entity.ts
|
|
5099
|
-
var
|
|
5366
|
+
var import_typeorm54 = require("typeorm");
|
|
5100
5367
|
|
|
5101
5368
|
// src/entities/company-role-permission.entity.ts
|
|
5102
|
-
var
|
|
5369
|
+
var import_typeorm53 = require("typeorm");
|
|
5103
5370
|
|
|
5104
5371
|
// src/entities/permission.entity.ts
|
|
5105
|
-
var
|
|
5372
|
+
var import_typeorm52 = require("typeorm");
|
|
5106
5373
|
var Permission = class extends BaseEntity {
|
|
5107
5374
|
};
|
|
5108
5375
|
__decorateClass([
|
|
5109
|
-
(0,
|
|
5376
|
+
(0, import_typeorm52.Column)({ name: "name", type: "varchar", nullable: true })
|
|
5110
5377
|
], Permission.prototype, "name", 2);
|
|
5111
5378
|
__decorateClass([
|
|
5112
|
-
(0,
|
|
5113
|
-
(0,
|
|
5379
|
+
(0, import_typeorm52.Column)({ name: "slug", type: "varchar", nullable: true, unique: true }),
|
|
5380
|
+
(0, import_typeorm52.Index)()
|
|
5114
5381
|
], Permission.prototype, "slug", 2);
|
|
5115
5382
|
__decorateClass([
|
|
5116
|
-
(0,
|
|
5383
|
+
(0, import_typeorm52.Column)({ name: "description", type: "text", nullable: true })
|
|
5117
5384
|
], Permission.prototype, "description", 2);
|
|
5118
5385
|
__decorateClass([
|
|
5119
|
-
(0,
|
|
5386
|
+
(0, import_typeorm52.Column)({ name: "module", type: "varchar", nullable: true })
|
|
5120
5387
|
], Permission.prototype, "module", 2);
|
|
5121
5388
|
__decorateClass([
|
|
5122
|
-
(0,
|
|
5389
|
+
(0, import_typeorm52.Column)({ name: "is_active", type: "boolean", default: true })
|
|
5123
5390
|
], Permission.prototype, "isActive", 2);
|
|
5124
5391
|
Permission = __decorateClass([
|
|
5125
|
-
(0,
|
|
5392
|
+
(0, import_typeorm52.Entity)("permissions")
|
|
5126
5393
|
], Permission);
|
|
5127
5394
|
|
|
5128
5395
|
// src/entities/company-role-permission.entity.ts
|
|
5129
5396
|
var CompanyRolePermission = class extends BaseEntity {
|
|
5130
5397
|
};
|
|
5131
5398
|
__decorateClass([
|
|
5132
|
-
(0,
|
|
5133
|
-
(0,
|
|
5399
|
+
(0, import_typeorm53.Column)({ name: "company_role_id", type: "integer", nullable: true }),
|
|
5400
|
+
(0, import_typeorm53.Index)()
|
|
5134
5401
|
], CompanyRolePermission.prototype, "companyRoleId", 2);
|
|
5135
5402
|
__decorateClass([
|
|
5136
|
-
(0,
|
|
5403
|
+
(0, import_typeorm53.ManyToOne)(() => CompanyRole, (role) => role.rolePermissions, {
|
|
5137
5404
|
onDelete: "CASCADE"
|
|
5138
5405
|
}),
|
|
5139
|
-
(0,
|
|
5406
|
+
(0, import_typeorm53.JoinColumn)({ name: "company_role_id" })
|
|
5140
5407
|
], CompanyRolePermission.prototype, "companyRole", 2);
|
|
5141
5408
|
__decorateClass([
|
|
5142
|
-
(0,
|
|
5143
|
-
(0,
|
|
5409
|
+
(0, import_typeorm53.Column)({ name: "permission_id", type: "integer" }),
|
|
5410
|
+
(0, import_typeorm53.Index)()
|
|
5144
5411
|
], CompanyRolePermission.prototype, "permissionId", 2);
|
|
5145
5412
|
__decorateClass([
|
|
5146
|
-
(0,
|
|
5147
|
-
(0,
|
|
5413
|
+
(0, import_typeorm53.ManyToOne)(() => Permission, { onDelete: "CASCADE" }),
|
|
5414
|
+
(0, import_typeorm53.JoinColumn)({ name: "permission_id" })
|
|
5148
5415
|
], CompanyRolePermission.prototype, "permission", 2);
|
|
5149
5416
|
__decorateClass([
|
|
5150
|
-
(0,
|
|
5417
|
+
(0, import_typeorm53.Column)({ name: "assigned_by", type: "integer", nullable: true })
|
|
5151
5418
|
], CompanyRolePermission.prototype, "assignedBy", 2);
|
|
5152
5419
|
CompanyRolePermission = __decorateClass([
|
|
5153
|
-
(0,
|
|
5420
|
+
(0, import_typeorm53.Entity)("company_role_permissions")
|
|
5154
5421
|
], CompanyRolePermission);
|
|
5155
5422
|
|
|
5156
5423
|
// src/entities/company-role.entity.ts
|
|
5157
5424
|
var CompanyRole = class extends BaseEntity {
|
|
5158
5425
|
};
|
|
5159
5426
|
__decorateClass([
|
|
5160
|
-
(0,
|
|
5161
|
-
(0,
|
|
5427
|
+
(0, import_typeorm54.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
5428
|
+
(0, import_typeorm54.Index)()
|
|
5162
5429
|
], CompanyRole.prototype, "userId", 2);
|
|
5163
5430
|
__decorateClass([
|
|
5164
|
-
(0,
|
|
5165
|
-
(0,
|
|
5431
|
+
(0, import_typeorm54.ManyToOne)(() => User, (user) => user.otps),
|
|
5432
|
+
(0, import_typeorm54.JoinColumn)({ name: "user_id" })
|
|
5166
5433
|
], CompanyRole.prototype, "user", 2);
|
|
5167
5434
|
__decorateClass([
|
|
5168
|
-
(0,
|
|
5435
|
+
(0, import_typeorm54.Column)({ name: "name", type: "varchar" })
|
|
5169
5436
|
], CompanyRole.prototype, "name", 2);
|
|
5170
5437
|
__decorateClass([
|
|
5171
|
-
(0,
|
|
5172
|
-
(0,
|
|
5438
|
+
(0, import_typeorm54.Column)({ name: "slug", type: "varchar", nullable: true, unique: true }),
|
|
5439
|
+
(0, import_typeorm54.Index)()
|
|
5173
5440
|
], CompanyRole.prototype, "slug", 2);
|
|
5174
5441
|
__decorateClass([
|
|
5175
|
-
(0,
|
|
5442
|
+
(0, import_typeorm54.Column)({ name: "description", type: "text", nullable: true })
|
|
5176
5443
|
], CompanyRole.prototype, "description", 2);
|
|
5177
5444
|
__decorateClass([
|
|
5178
|
-
(0,
|
|
5445
|
+
(0, import_typeorm54.Column)({ name: "is_active", type: "boolean", default: true })
|
|
5179
5446
|
], CompanyRole.prototype, "isActive", 2);
|
|
5180
5447
|
__decorateClass([
|
|
5181
|
-
(0,
|
|
5448
|
+
(0, import_typeorm54.OneToMany)(() => CompanyRolePermission, (rp) => rp.companyRole)
|
|
5182
5449
|
], CompanyRole.prototype, "rolePermissions", 2);
|
|
5183
5450
|
CompanyRole = __decorateClass([
|
|
5184
|
-
(0,
|
|
5451
|
+
(0, import_typeorm54.Entity)("company_roles")
|
|
5185
5452
|
], CompanyRole);
|
|
5186
5453
|
|
|
5187
5454
|
// src/entities/company-members-roles.entity.ts
|
|
5188
5455
|
var CompanyMemberRole = class extends BaseEntity {
|
|
5189
5456
|
};
|
|
5190
5457
|
__decorateClass([
|
|
5191
|
-
(0,
|
|
5192
|
-
(0,
|
|
5458
|
+
(0, import_typeorm55.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
5459
|
+
(0, import_typeorm55.Index)()
|
|
5193
5460
|
], CompanyMemberRole.prototype, "userId", 2);
|
|
5194
5461
|
__decorateClass([
|
|
5195
|
-
(0,
|
|
5196
|
-
(0,
|
|
5462
|
+
(0, import_typeorm55.ManyToOne)(() => User),
|
|
5463
|
+
(0, import_typeorm55.JoinColumn)({ name: "user_id" })
|
|
5197
5464
|
], CompanyMemberRole.prototype, "user", 2);
|
|
5198
5465
|
__decorateClass([
|
|
5199
|
-
(0,
|
|
5200
|
-
(0,
|
|
5466
|
+
(0, import_typeorm55.ManyToOne)(() => CompanyRole),
|
|
5467
|
+
(0, import_typeorm55.JoinColumn)({ name: "company_role_id" })
|
|
5201
5468
|
], CompanyMemberRole.prototype, "role", 2);
|
|
5202
5469
|
__decorateClass([
|
|
5203
|
-
(0,
|
|
5204
|
-
(0,
|
|
5470
|
+
(0, import_typeorm55.Column)({ name: "company_role_id", type: "integer", nullable: true }),
|
|
5471
|
+
(0, import_typeorm55.Index)()
|
|
5205
5472
|
], CompanyMemberRole.prototype, "companyRoleId", 2);
|
|
5206
5473
|
__decorateClass([
|
|
5207
|
-
(0,
|
|
5474
|
+
(0, import_typeorm55.Column)({ name: "assigned_by", type: "integer", nullable: true })
|
|
5208
5475
|
], CompanyMemberRole.prototype, "assignedBy", 2);
|
|
5209
5476
|
CompanyMemberRole = __decorateClass([
|
|
5210
|
-
(0,
|
|
5477
|
+
(0, import_typeorm55.Entity)("company_member_roles")
|
|
5211
5478
|
], CompanyMemberRole);
|
|
5212
5479
|
|
|
5213
5480
|
// src/entities/assessment-answer.entity.ts
|
|
5214
|
-
var
|
|
5481
|
+
var import_typeorm58 = require("typeorm");
|
|
5215
5482
|
|
|
5216
5483
|
// src/entities/assessment-question.entity.ts
|
|
5217
|
-
var
|
|
5484
|
+
var import_typeorm57 = require("typeorm");
|
|
5218
5485
|
|
|
5219
5486
|
// src/entities/assessment-question-option.entity.ts
|
|
5220
|
-
var
|
|
5487
|
+
var import_typeorm56 = require("typeorm");
|
|
5221
5488
|
var AnswerTypeEnum = /* @__PURE__ */ ((AnswerTypeEnum2) => {
|
|
5222
5489
|
AnswerTypeEnum2["CORRECT"] = "CORRECT";
|
|
5223
5490
|
AnswerTypeEnum2["ACCEPTABLE"] = "ACCEPTABLE";
|
|
@@ -5227,21 +5494,21 @@ var AnswerTypeEnum = /* @__PURE__ */ ((AnswerTypeEnum2) => {
|
|
|
5227
5494
|
var AssessmetQuestionOption = class extends BaseEntity {
|
|
5228
5495
|
};
|
|
5229
5496
|
__decorateClass([
|
|
5230
|
-
(0,
|
|
5231
|
-
(0,
|
|
5497
|
+
(0, import_typeorm56.Column)({ name: "question_id", type: "integer", nullable: true }),
|
|
5498
|
+
(0, import_typeorm56.Index)()
|
|
5232
5499
|
], AssessmetQuestionOption.prototype, "questionId", 2);
|
|
5233
5500
|
__decorateClass([
|
|
5234
|
-
(0,
|
|
5501
|
+
(0, import_typeorm56.ManyToOne)(
|
|
5235
5502
|
() => AssessmetQuestion,
|
|
5236
5503
|
(assessmentQuestion) => assessmentQuestion.options
|
|
5237
5504
|
),
|
|
5238
|
-
(0,
|
|
5505
|
+
(0, import_typeorm56.JoinColumn)({ name: "question_id" })
|
|
5239
5506
|
], AssessmetQuestionOption.prototype, "question", 2);
|
|
5240
5507
|
__decorateClass([
|
|
5241
|
-
(0,
|
|
5508
|
+
(0, import_typeorm56.Column)({ name: "text", type: "varchar", nullable: true })
|
|
5242
5509
|
], AssessmetQuestionOption.prototype, "text", 2);
|
|
5243
5510
|
__decorateClass([
|
|
5244
|
-
(0,
|
|
5511
|
+
(0, import_typeorm56.Column)({
|
|
5245
5512
|
name: "answer_type",
|
|
5246
5513
|
type: "enum",
|
|
5247
5514
|
enum: AnswerTypeEnum,
|
|
@@ -5249,13 +5516,13 @@ __decorateClass([
|
|
|
5249
5516
|
})
|
|
5250
5517
|
], AssessmetQuestionOption.prototype, "answerType", 2);
|
|
5251
5518
|
__decorateClass([
|
|
5252
|
-
(0,
|
|
5519
|
+
(0, import_typeorm56.Column)({ name: "is_active", type: "boolean", default: true })
|
|
5253
5520
|
], AssessmetQuestionOption.prototype, "isActive", 2);
|
|
5254
5521
|
__decorateClass([
|
|
5255
|
-
(0,
|
|
5522
|
+
(0, import_typeorm56.OneToMany)(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.option)
|
|
5256
5523
|
], AssessmetQuestionOption.prototype, "selectedOptions", 2);
|
|
5257
5524
|
AssessmetQuestionOption = __decorateClass([
|
|
5258
|
-
(0,
|
|
5525
|
+
(0, import_typeorm56.Entity)("assessment_question_options")
|
|
5259
5526
|
], AssessmetQuestionOption);
|
|
5260
5527
|
|
|
5261
5528
|
// src/entities/assessment-question.entity.ts
|
|
@@ -5267,10 +5534,10 @@ var QuestionForEnum = /* @__PURE__ */ ((QuestionForEnum2) => {
|
|
|
5267
5534
|
var AssessmetQuestion = class extends BaseEntity {
|
|
5268
5535
|
};
|
|
5269
5536
|
__decorateClass([
|
|
5270
|
-
(0,
|
|
5537
|
+
(0, import_typeorm57.Column)({ name: "text", type: "varchar", nullable: true })
|
|
5271
5538
|
], AssessmetQuestion.prototype, "text", 2);
|
|
5272
5539
|
__decorateClass([
|
|
5273
|
-
(0,
|
|
5540
|
+
(0, import_typeorm57.Column)({
|
|
5274
5541
|
name: "question_for",
|
|
5275
5542
|
type: "enum",
|
|
5276
5543
|
enum: QuestionForEnum,
|
|
@@ -5278,24 +5545,24 @@ __decorateClass([
|
|
|
5278
5545
|
})
|
|
5279
5546
|
], AssessmetQuestion.prototype, "questionFor", 2);
|
|
5280
5547
|
__decorateClass([
|
|
5281
|
-
(0,
|
|
5548
|
+
(0, import_typeorm57.Column)({ name: "is_active", type: "boolean", default: true })
|
|
5282
5549
|
], AssessmetQuestion.prototype, "isActive", 2);
|
|
5283
5550
|
__decorateClass([
|
|
5284
|
-
(0,
|
|
5285
|
-
(0,
|
|
5551
|
+
(0, import_typeorm57.Column)({ name: "candidate_id", type: "integer", nullable: true }),
|
|
5552
|
+
(0, import_typeorm57.Index)()
|
|
5286
5553
|
], AssessmetQuestion.prototype, "candidateId", 2);
|
|
5287
5554
|
__decorateClass([
|
|
5288
|
-
(0,
|
|
5289
|
-
(0,
|
|
5555
|
+
(0, import_typeorm57.ManyToOne)(() => User, (user) => user.freelancerMcq, { nullable: true }),
|
|
5556
|
+
(0, import_typeorm57.JoinColumn)({ name: "candidate_id" })
|
|
5290
5557
|
], AssessmetQuestion.prototype, "candidate", 2);
|
|
5291
5558
|
__decorateClass([
|
|
5292
|
-
(0,
|
|
5559
|
+
(0, import_typeorm57.OneToMany)(() => AssessmetQuestionOption, (assessmentQuestionOption) => assessmentQuestionOption.question)
|
|
5293
5560
|
], AssessmetQuestion.prototype, "options", 2);
|
|
5294
5561
|
__decorateClass([
|
|
5295
|
-
(0,
|
|
5562
|
+
(0, import_typeorm57.OneToMany)(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.question)
|
|
5296
5563
|
], AssessmetQuestion.prototype, "answers", 2);
|
|
5297
5564
|
AssessmetQuestion = __decorateClass([
|
|
5298
|
-
(0,
|
|
5565
|
+
(0, import_typeorm57.Entity)("assessment_questions")
|
|
5299
5566
|
], AssessmetQuestion);
|
|
5300
5567
|
|
|
5301
5568
|
// src/entities/assessment-answer.entity.ts
|
|
@@ -5308,118 +5575,118 @@ var SelectedAnswerTypeEnum = /* @__PURE__ */ ((SelectedAnswerTypeEnum2) => {
|
|
|
5308
5575
|
var AssessmentAnswer = class extends BaseEntity {
|
|
5309
5576
|
};
|
|
5310
5577
|
__decorateClass([
|
|
5311
|
-
(0,
|
|
5312
|
-
(0,
|
|
5578
|
+
(0, import_typeorm58.Column)({ name: "user_id", type: "integer" }),
|
|
5579
|
+
(0, import_typeorm58.Index)()
|
|
5313
5580
|
], AssessmentAnswer.prototype, "userId", 2);
|
|
5314
5581
|
__decorateClass([
|
|
5315
|
-
(0,
|
|
5316
|
-
(0,
|
|
5582
|
+
(0, import_typeorm58.ManyToOne)(() => User, (user) => user.assessmentAnswers),
|
|
5583
|
+
(0, import_typeorm58.JoinColumn)({ name: "user_id" })
|
|
5317
5584
|
], AssessmentAnswer.prototype, "user", 2);
|
|
5318
5585
|
__decorateClass([
|
|
5319
|
-
(0,
|
|
5320
|
-
(0,
|
|
5586
|
+
(0, import_typeorm58.Column)({ name: "question_id", type: "integer" }),
|
|
5587
|
+
(0, import_typeorm58.Index)()
|
|
5321
5588
|
], AssessmentAnswer.prototype, "questionId", 2);
|
|
5322
5589
|
__decorateClass([
|
|
5323
|
-
(0,
|
|
5590
|
+
(0, import_typeorm58.ManyToOne)(
|
|
5324
5591
|
() => AssessmetQuestion,
|
|
5325
5592
|
(assessmentQuestion) => assessmentQuestion.answers
|
|
5326
5593
|
),
|
|
5327
|
-
(0,
|
|
5594
|
+
(0, import_typeorm58.JoinColumn)({ name: "question_id" })
|
|
5328
5595
|
], AssessmentAnswer.prototype, "question", 2);
|
|
5329
5596
|
__decorateClass([
|
|
5330
|
-
(0,
|
|
5331
|
-
(0,
|
|
5597
|
+
(0, import_typeorm58.Column)({ name: "selected_option_id", type: "integer" }),
|
|
5598
|
+
(0, import_typeorm58.Index)()
|
|
5332
5599
|
], AssessmentAnswer.prototype, "selectedOptionId", 2);
|
|
5333
5600
|
__decorateClass([
|
|
5334
|
-
(0,
|
|
5601
|
+
(0, import_typeorm58.ManyToOne)(
|
|
5335
5602
|
() => AssessmetQuestionOption,
|
|
5336
5603
|
(assessmentQuestionOption) => assessmentQuestionOption.selectedOptions
|
|
5337
5604
|
),
|
|
5338
|
-
(0,
|
|
5605
|
+
(0, import_typeorm58.JoinColumn)({ name: "selected_option_id" })
|
|
5339
5606
|
], AssessmentAnswer.prototype, "option", 2);
|
|
5340
5607
|
__decorateClass([
|
|
5341
|
-
(0,
|
|
5608
|
+
(0, import_typeorm58.Column)({
|
|
5342
5609
|
name: "selected_answer_type",
|
|
5343
5610
|
type: "enum",
|
|
5344
5611
|
enum: SelectedAnswerTypeEnum
|
|
5345
5612
|
})
|
|
5346
5613
|
], AssessmentAnswer.prototype, "selectedAnswerType", 2);
|
|
5347
5614
|
__decorateClass([
|
|
5348
|
-
(0,
|
|
5615
|
+
(0, import_typeorm58.Column)({ name: "score", type: "float" })
|
|
5349
5616
|
], AssessmentAnswer.prototype, "score", 2);
|
|
5350
5617
|
AssessmentAnswer = __decorateClass([
|
|
5351
|
-
(0,
|
|
5618
|
+
(0, import_typeorm58.Entity)("assessment_answers")
|
|
5352
5619
|
], AssessmentAnswer);
|
|
5353
5620
|
|
|
5354
5621
|
// src/entities/company-skill.entity.ts
|
|
5355
|
-
var
|
|
5622
|
+
var import_typeorm59 = require("typeorm");
|
|
5356
5623
|
var CompanySkill = class extends BaseEntity {
|
|
5357
5624
|
};
|
|
5358
5625
|
// individual index to find core skills by user
|
|
5359
5626
|
__decorateClass([
|
|
5360
|
-
(0,
|
|
5361
|
-
(0,
|
|
5627
|
+
(0, import_typeorm59.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
5628
|
+
(0, import_typeorm59.Index)()
|
|
5362
5629
|
], CompanySkill.prototype, "userId", 2);
|
|
5363
5630
|
__decorateClass([
|
|
5364
|
-
(0,
|
|
5365
|
-
(0,
|
|
5631
|
+
(0, import_typeorm59.ManyToOne)(() => User, (user) => user.companySkills),
|
|
5632
|
+
(0, import_typeorm59.JoinColumn)({ name: "user_id" })
|
|
5366
5633
|
], CompanySkill.prototype, "user", 2);
|
|
5367
5634
|
__decorateClass([
|
|
5368
|
-
(0,
|
|
5635
|
+
(0, import_typeorm59.Column)({ name: "skill_name", type: "varchar", nullable: true })
|
|
5369
5636
|
], CompanySkill.prototype, "skillName", 2);
|
|
5370
5637
|
CompanySkill = __decorateClass([
|
|
5371
|
-
(0,
|
|
5638
|
+
(0, import_typeorm59.Entity)("company_skills")
|
|
5372
5639
|
], CompanySkill);
|
|
5373
5640
|
|
|
5374
5641
|
// src/entities/admin-user-role.entity.ts
|
|
5375
|
-
var
|
|
5642
|
+
var import_typeorm63 = require("typeorm");
|
|
5376
5643
|
|
|
5377
5644
|
// src/entities/admin-role.entity.ts
|
|
5378
|
-
var
|
|
5645
|
+
var import_typeorm62 = require("typeorm");
|
|
5379
5646
|
|
|
5380
5647
|
// src/entities/admin-role-permission.entity.ts
|
|
5381
|
-
var
|
|
5648
|
+
var import_typeorm61 = require("typeorm");
|
|
5382
5649
|
|
|
5383
5650
|
// src/entities/admin-permission.entity.ts
|
|
5384
|
-
var
|
|
5651
|
+
var import_typeorm60 = require("typeorm");
|
|
5385
5652
|
var AdminPermission = class extends BaseEntity {
|
|
5386
5653
|
};
|
|
5387
5654
|
__decorateClass([
|
|
5388
|
-
(0,
|
|
5655
|
+
(0, import_typeorm60.Column)({ name: "permission_name", type: "varchar", nullable: true })
|
|
5389
5656
|
], AdminPermission.prototype, "permissionName", 2);
|
|
5390
5657
|
__decorateClass([
|
|
5391
|
-
(0,
|
|
5658
|
+
(0, import_typeorm60.Column)({
|
|
5392
5659
|
name: "permission_slug",
|
|
5393
5660
|
type: "varchar",
|
|
5394
5661
|
unique: true,
|
|
5395
5662
|
nullable: true
|
|
5396
5663
|
}),
|
|
5397
|
-
(0,
|
|
5664
|
+
(0, import_typeorm60.Index)()
|
|
5398
5665
|
], AdminPermission.prototype, "permissionSlug", 2);
|
|
5399
5666
|
__decorateClass([
|
|
5400
|
-
(0,
|
|
5667
|
+
(0, import_typeorm60.Column)({ name: "permission_description", type: "varchar", nullable: true })
|
|
5401
5668
|
], AdminPermission.prototype, "permissionDescription", 2);
|
|
5402
5669
|
__decorateClass([
|
|
5403
|
-
(0,
|
|
5670
|
+
(0, import_typeorm60.Column)({ name: "module", type: "varchar", nullable: true })
|
|
5404
5671
|
], AdminPermission.prototype, "module", 2);
|
|
5405
5672
|
__decorateClass([
|
|
5406
|
-
(0,
|
|
5673
|
+
(0, import_typeorm60.Column)({ name: "is_active", type: "boolean", default: true })
|
|
5407
5674
|
], AdminPermission.prototype, "isActive", 2);
|
|
5408
5675
|
__decorateClass([
|
|
5409
|
-
(0,
|
|
5676
|
+
(0, import_typeorm60.OneToMany)(
|
|
5410
5677
|
() => AdminRolePermission,
|
|
5411
5678
|
(adminRolePermission) => adminRolePermission.adminPermissions
|
|
5412
5679
|
)
|
|
5413
5680
|
], AdminPermission.prototype, "adminRole", 2);
|
|
5414
5681
|
AdminPermission = __decorateClass([
|
|
5415
|
-
(0,
|
|
5682
|
+
(0, import_typeorm60.Entity)("admin_permissions")
|
|
5416
5683
|
], AdminPermission);
|
|
5417
5684
|
|
|
5418
5685
|
// src/entities/admin-role-permission.entity.ts
|
|
5419
5686
|
var AdminRolePermission = class extends BaseEntity {
|
|
5420
5687
|
};
|
|
5421
5688
|
__decorateClass([
|
|
5422
|
-
(0,
|
|
5689
|
+
(0, import_typeorm61.Column)({
|
|
5423
5690
|
name: "role_id",
|
|
5424
5691
|
type: "int",
|
|
5425
5692
|
nullable: true,
|
|
@@ -5427,11 +5694,11 @@ __decorateClass([
|
|
|
5427
5694
|
})
|
|
5428
5695
|
], AdminRolePermission.prototype, "roleId", 2);
|
|
5429
5696
|
__decorateClass([
|
|
5430
|
-
(0,
|
|
5431
|
-
(0,
|
|
5697
|
+
(0, import_typeorm61.ManyToOne)(() => AdminRole),
|
|
5698
|
+
(0, import_typeorm61.JoinColumn)({ name: "role_id" })
|
|
5432
5699
|
], AdminRolePermission.prototype, "adminRole", 2);
|
|
5433
5700
|
__decorateClass([
|
|
5434
|
-
(0,
|
|
5701
|
+
(0, import_typeorm61.Column)({
|
|
5435
5702
|
name: "permission_id",
|
|
5436
5703
|
type: "int",
|
|
5437
5704
|
nullable: true,
|
|
@@ -5439,47 +5706,47 @@ __decorateClass([
|
|
|
5439
5706
|
})
|
|
5440
5707
|
], AdminRolePermission.prototype, "permissionId", 2);
|
|
5441
5708
|
__decorateClass([
|
|
5442
|
-
(0,
|
|
5443
|
-
(0,
|
|
5709
|
+
(0, import_typeorm61.ManyToOne)(() => AdminPermission),
|
|
5710
|
+
(0, import_typeorm61.JoinColumn)({ name: "permission_id" })
|
|
5444
5711
|
], AdminRolePermission.prototype, "adminPermissions", 2);
|
|
5445
5712
|
AdminRolePermission = __decorateClass([
|
|
5446
|
-
(0,
|
|
5713
|
+
(0, import_typeorm61.Entity)("admin_role_permissions")
|
|
5447
5714
|
], AdminRolePermission);
|
|
5448
5715
|
|
|
5449
5716
|
// src/entities/admin-role.entity.ts
|
|
5450
5717
|
var AdminRole = class extends BaseEntity {
|
|
5451
5718
|
};
|
|
5452
5719
|
__decorateClass([
|
|
5453
|
-
(0,
|
|
5720
|
+
(0, import_typeorm62.Column)({ name: "role_name", type: "varchar", nullable: true })
|
|
5454
5721
|
], AdminRole.prototype, "roleName", 2);
|
|
5455
5722
|
__decorateClass([
|
|
5456
|
-
(0,
|
|
5457
|
-
(0,
|
|
5723
|
+
(0, import_typeorm62.Column)({ name: "role_slug", type: "varchar", unique: true, nullable: true }),
|
|
5724
|
+
(0, import_typeorm62.Index)()
|
|
5458
5725
|
], AdminRole.prototype, "roleSlug", 2);
|
|
5459
5726
|
__decorateClass([
|
|
5460
|
-
(0,
|
|
5727
|
+
(0, import_typeorm62.Column)({ name: "role_description", type: "varchar", nullable: true })
|
|
5461
5728
|
], AdminRole.prototype, "roleDescription", 2);
|
|
5462
5729
|
__decorateClass([
|
|
5463
|
-
(0,
|
|
5730
|
+
(0, import_typeorm62.Column)({ name: "is_active", type: "boolean", default: true })
|
|
5464
5731
|
], AdminRole.prototype, "isActive", 2);
|
|
5465
5732
|
__decorateClass([
|
|
5466
|
-
(0,
|
|
5733
|
+
(0, import_typeorm62.OneToMany)(
|
|
5467
5734
|
() => AdminRolePermission,
|
|
5468
5735
|
(addminRolePermission) => addminRolePermission.adminRole
|
|
5469
5736
|
)
|
|
5470
5737
|
], AdminRole.prototype, "adminRolePermission", 2);
|
|
5471
5738
|
__decorateClass([
|
|
5472
|
-
(0,
|
|
5739
|
+
(0, import_typeorm62.OneToMany)(() => AdminUserRole, (adminUserRole) => adminUserRole.adminRole)
|
|
5473
5740
|
], AdminRole.prototype, "userRoles", 2);
|
|
5474
5741
|
AdminRole = __decorateClass([
|
|
5475
|
-
(0,
|
|
5742
|
+
(0, import_typeorm62.Entity)("admin_roles")
|
|
5476
5743
|
], AdminRole);
|
|
5477
5744
|
|
|
5478
5745
|
// src/entities/admin-user-role.entity.ts
|
|
5479
5746
|
var AdminUserRole = class extends BaseEntity {
|
|
5480
5747
|
};
|
|
5481
5748
|
__decorateClass([
|
|
5482
|
-
(0,
|
|
5749
|
+
(0, import_typeorm63.Column)({
|
|
5483
5750
|
name: "user_id",
|
|
5484
5751
|
type: "int",
|
|
5485
5752
|
nullable: true,
|
|
@@ -5487,11 +5754,11 @@ __decorateClass([
|
|
|
5487
5754
|
})
|
|
5488
5755
|
], AdminUserRole.prototype, "userId", 2);
|
|
5489
5756
|
__decorateClass([
|
|
5490
|
-
(0,
|
|
5491
|
-
(0,
|
|
5757
|
+
(0, import_typeorm63.ManyToOne)(() => User),
|
|
5758
|
+
(0, import_typeorm63.JoinColumn)({ name: "user_id" })
|
|
5492
5759
|
], AdminUserRole.prototype, "user", 2);
|
|
5493
5760
|
__decorateClass([
|
|
5494
|
-
(0,
|
|
5761
|
+
(0, import_typeorm63.Column)({
|
|
5495
5762
|
name: "role_id",
|
|
5496
5763
|
type: "int",
|
|
5497
5764
|
nullable: true,
|
|
@@ -5499,58 +5766,58 @@ __decorateClass([
|
|
|
5499
5766
|
})
|
|
5500
5767
|
], AdminUserRole.prototype, "roleId", 2);
|
|
5501
5768
|
__decorateClass([
|
|
5502
|
-
(0,
|
|
5503
|
-
(0,
|
|
5769
|
+
(0, import_typeorm63.ManyToOne)(() => AdminRole),
|
|
5770
|
+
(0, import_typeorm63.JoinColumn)({ name: "role_id" })
|
|
5504
5771
|
], AdminUserRole.prototype, "adminRole", 2);
|
|
5505
5772
|
AdminUserRole = __decorateClass([
|
|
5506
|
-
(0,
|
|
5773
|
+
(0, import_typeorm63.Entity)("admin_user_roles")
|
|
5507
5774
|
], AdminUserRole);
|
|
5508
5775
|
|
|
5509
5776
|
// src/entities/freelancer-resume.entity.ts
|
|
5510
|
-
var
|
|
5777
|
+
var import_typeorm64 = require("typeorm");
|
|
5511
5778
|
var FreelancerResume = class extends BaseEntity {
|
|
5512
5779
|
};
|
|
5513
5780
|
// individual index to find profile by user
|
|
5514
5781
|
__decorateClass([
|
|
5515
|
-
(0,
|
|
5516
|
-
(0,
|
|
5782
|
+
(0, import_typeorm64.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
5783
|
+
(0, import_typeorm64.Index)()
|
|
5517
5784
|
], FreelancerResume.prototype, "userId", 2);
|
|
5518
5785
|
__decorateClass([
|
|
5519
|
-
(0,
|
|
5520
|
-
(0,
|
|
5786
|
+
(0, import_typeorm64.ManyToOne)(() => User, (user) => user.freelancerProfile),
|
|
5787
|
+
(0, import_typeorm64.JoinColumn)({ name: "user_id" })
|
|
5521
5788
|
], FreelancerResume.prototype, "user", 2);
|
|
5522
5789
|
__decorateClass([
|
|
5523
|
-
(0,
|
|
5790
|
+
(0, import_typeorm64.Column)({ name: "resume_data", type: "jsonb", nullable: true })
|
|
5524
5791
|
], FreelancerResume.prototype, "resumeData", 2);
|
|
5525
5792
|
__decorateClass([
|
|
5526
|
-
(0,
|
|
5793
|
+
(0, import_typeorm64.Column)({ name: "processed_resume_data", type: "jsonb", nullable: true })
|
|
5527
5794
|
], FreelancerResume.prototype, "processedResumeData", 2);
|
|
5528
5795
|
FreelancerResume = __decorateClass([
|
|
5529
|
-
(0,
|
|
5796
|
+
(0, import_typeorm64.Entity)("freelancer_resumes")
|
|
5530
5797
|
], FreelancerResume);
|
|
5531
5798
|
|
|
5532
5799
|
// src/entities/signature.entity.ts
|
|
5533
|
-
var
|
|
5800
|
+
var import_typeorm65 = require("typeorm");
|
|
5534
5801
|
var Signature = class extends BaseEntity {
|
|
5535
5802
|
};
|
|
5536
5803
|
// individual index to find profile by user
|
|
5537
5804
|
__decorateClass([
|
|
5538
|
-
(0,
|
|
5539
|
-
(0,
|
|
5805
|
+
(0, import_typeorm65.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
5806
|
+
(0, import_typeorm65.Index)()
|
|
5540
5807
|
], Signature.prototype, "userId", 2);
|
|
5541
5808
|
__decorateClass([
|
|
5542
|
-
(0,
|
|
5543
|
-
(0,
|
|
5809
|
+
(0, import_typeorm65.ManyToOne)(() => User, (user) => user.signatures),
|
|
5810
|
+
(0, import_typeorm65.JoinColumn)({ name: "user_id" })
|
|
5544
5811
|
], Signature.prototype, "user", 2);
|
|
5545
5812
|
__decorateClass([
|
|
5546
|
-
(0,
|
|
5813
|
+
(0, import_typeorm65.Column)({ name: "signature_url", type: "text", nullable: true })
|
|
5547
5814
|
], Signature.prototype, "signatureUrl", 2);
|
|
5548
5815
|
Signature = __decorateClass([
|
|
5549
|
-
(0,
|
|
5816
|
+
(0, import_typeorm65.Entity)("signatures")
|
|
5550
5817
|
], Signature);
|
|
5551
5818
|
|
|
5552
5819
|
// src/entities/dispute.entity.ts
|
|
5553
|
-
var
|
|
5820
|
+
var import_typeorm66 = require("typeorm");
|
|
5554
5821
|
var DisputeStatusEnum = /* @__PURE__ */ ((DisputeStatusEnum2) => {
|
|
5555
5822
|
DisputeStatusEnum2["OPEN"] = "OPEN";
|
|
5556
5823
|
DisputeStatusEnum2["IN_REVIEW"] = "IN_REVIEW";
|
|
@@ -5571,36 +5838,36 @@ var InitiatorTypeEnum = /* @__PURE__ */ ((InitiatorTypeEnum2) => {
|
|
|
5571
5838
|
var Dispute = class extends BaseEntity {
|
|
5572
5839
|
};
|
|
5573
5840
|
__decorateClass([
|
|
5574
|
-
(0,
|
|
5575
|
-
(0,
|
|
5841
|
+
(0, import_typeorm66.Column)({ name: "client_id", type: "integer", nullable: true }),
|
|
5842
|
+
(0, import_typeorm66.Index)()
|
|
5576
5843
|
], Dispute.prototype, "clientId", 2);
|
|
5577
5844
|
__decorateClass([
|
|
5578
|
-
(0,
|
|
5579
|
-
(0,
|
|
5845
|
+
(0, import_typeorm66.ManyToOne)(() => User, (user) => user.clientDisputes),
|
|
5846
|
+
(0, import_typeorm66.JoinColumn)({ name: "client_id" })
|
|
5580
5847
|
], Dispute.prototype, "client", 2);
|
|
5581
5848
|
__decorateClass([
|
|
5582
|
-
(0,
|
|
5583
|
-
(0,
|
|
5849
|
+
(0, import_typeorm66.Column)({ name: "freelancer_id", type: "integer", nullable: true }),
|
|
5850
|
+
(0, import_typeorm66.Index)()
|
|
5584
5851
|
], Dispute.prototype, "freelancerId", 2);
|
|
5585
5852
|
__decorateClass([
|
|
5586
|
-
(0,
|
|
5587
|
-
(0,
|
|
5853
|
+
(0, import_typeorm66.ManyToOne)(() => User, (user) => user.freelancerDisputes),
|
|
5854
|
+
(0, import_typeorm66.JoinColumn)({ name: "freelancer_id" })
|
|
5588
5855
|
], Dispute.prototype, "freelancer", 2);
|
|
5589
5856
|
__decorateClass([
|
|
5590
|
-
(0,
|
|
5857
|
+
(0, import_typeorm66.Column)({ name: "dispute_unique_id", type: "varchar", unique: true })
|
|
5591
5858
|
], Dispute.prototype, "disputeUniqueId", 2);
|
|
5592
5859
|
__decorateClass([
|
|
5593
|
-
(0,
|
|
5594
|
-
(0,
|
|
5860
|
+
(0, import_typeorm66.Column)({ name: "dispute_type", type: "varchar", nullable: true }),
|
|
5861
|
+
(0, import_typeorm66.Index)()
|
|
5595
5862
|
], Dispute.prototype, "disputeType", 2);
|
|
5596
5863
|
__decorateClass([
|
|
5597
|
-
(0,
|
|
5864
|
+
(0, import_typeorm66.Column)({ name: "description", type: "varchar", nullable: true })
|
|
5598
5865
|
], Dispute.prototype, "description", 2);
|
|
5599
5866
|
__decorateClass([
|
|
5600
|
-
(0,
|
|
5867
|
+
(0, import_typeorm66.Column)({ name: "comment", type: "varchar", nullable: true })
|
|
5601
5868
|
], Dispute.prototype, "comment", 2);
|
|
5602
5869
|
__decorateClass([
|
|
5603
|
-
(0,
|
|
5870
|
+
(0, import_typeorm66.Column)({
|
|
5604
5871
|
name: "status",
|
|
5605
5872
|
type: "enum",
|
|
5606
5873
|
enum: DisputeStatusEnum,
|
|
@@ -5608,7 +5875,7 @@ __decorateClass([
|
|
|
5608
5875
|
})
|
|
5609
5876
|
], Dispute.prototype, "status", 2);
|
|
5610
5877
|
__decorateClass([
|
|
5611
|
-
(0,
|
|
5878
|
+
(0, import_typeorm66.Column)({
|
|
5612
5879
|
name: "initiator_type",
|
|
5613
5880
|
type: "enum",
|
|
5614
5881
|
enum: InitiatorTypeEnum,
|
|
@@ -5617,33 +5884,33 @@ __decorateClass([
|
|
|
5617
5884
|
})
|
|
5618
5885
|
], Dispute.prototype, "initiatorType", 2);
|
|
5619
5886
|
__decorateClass([
|
|
5620
|
-
(0,
|
|
5621
|
-
(0,
|
|
5887
|
+
(0, import_typeorm66.Column)({ name: "initiator_id", type: "integer" }),
|
|
5888
|
+
(0, import_typeorm66.Index)()
|
|
5622
5889
|
], Dispute.prototype, "initiatorId", 2);
|
|
5623
5890
|
__decorateClass([
|
|
5624
|
-
(0,
|
|
5625
|
-
(0,
|
|
5891
|
+
(0, import_typeorm66.ManyToOne)(() => User, (user) => user.initiatedDisputes),
|
|
5892
|
+
(0, import_typeorm66.JoinColumn)({ name: "initiator_id" })
|
|
5626
5893
|
], Dispute.prototype, "initiator", 2);
|
|
5627
5894
|
__decorateClass([
|
|
5628
|
-
(0,
|
|
5629
|
-
(0,
|
|
5895
|
+
(0, import_typeorm66.Column)({ name: "respondent_id", type: "integer", nullable: true }),
|
|
5896
|
+
(0, import_typeorm66.Index)()
|
|
5630
5897
|
], Dispute.prototype, "respondentId", 2);
|
|
5631
5898
|
__decorateClass([
|
|
5632
|
-
(0,
|
|
5633
|
-
(0,
|
|
5899
|
+
(0, import_typeorm66.ManyToOne)(() => User, (user) => user.respondentDisputes, { nullable: true }),
|
|
5900
|
+
(0, import_typeorm66.JoinColumn)({ name: "respondent_id" })
|
|
5634
5901
|
], Dispute.prototype, "respondent", 2);
|
|
5635
5902
|
__decorateClass([
|
|
5636
|
-
(0,
|
|
5903
|
+
(0, import_typeorm66.Column)({ name: "attachments", type: "jsonb", nullable: true })
|
|
5637
5904
|
], Dispute.prototype, "attachments", 2);
|
|
5638
5905
|
__decorateClass([
|
|
5639
|
-
(0,
|
|
5906
|
+
(0, import_typeorm66.Column)({ name: "dynamic_fields", type: "jsonb", nullable: true })
|
|
5640
5907
|
], Dispute.prototype, "dynamicFields", 2);
|
|
5641
5908
|
Dispute = __decorateClass([
|
|
5642
|
-
(0,
|
|
5909
|
+
(0, import_typeorm66.Entity)("disputes")
|
|
5643
5910
|
], Dispute);
|
|
5644
5911
|
|
|
5645
5912
|
// src/entities/stripe-transaction.entity.ts
|
|
5646
|
-
var
|
|
5913
|
+
var import_typeorm67 = require("typeorm");
|
|
5647
5914
|
var StripeTransactionTypeEnum = /* @__PURE__ */ ((StripeTransactionTypeEnum2) => {
|
|
5648
5915
|
StripeTransactionTypeEnum2["ADD_FUNDS"] = "ADD_FUNDS";
|
|
5649
5916
|
StripeTransactionTypeEnum2["TRANSFER"] = "TRANSFER";
|
|
@@ -5665,97 +5932,97 @@ var StripeTransaction = class extends BaseEntity {
|
|
|
5665
5932
|
// Full Stripe session response
|
|
5666
5933
|
};
|
|
5667
5934
|
__decorateClass([
|
|
5668
|
-
(0,
|
|
5669
|
-
(0,
|
|
5935
|
+
(0, import_typeorm67.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
5936
|
+
(0, import_typeorm67.Index)()
|
|
5670
5937
|
], StripeTransaction.prototype, "userId", 2);
|
|
5671
5938
|
__decorateClass([
|
|
5672
|
-
(0,
|
|
5673
|
-
(0,
|
|
5939
|
+
(0, import_typeorm67.ManyToOne)(() => User, (user) => user.stripeTransactions),
|
|
5940
|
+
(0, import_typeorm67.JoinColumn)({ name: "user_id" })
|
|
5674
5941
|
], StripeTransaction.prototype, "user", 2);
|
|
5675
5942
|
__decorateClass([
|
|
5676
|
-
(0,
|
|
5943
|
+
(0, import_typeorm67.Column)({ name: "stripe_session_id", type: "varchar", nullable: true })
|
|
5677
5944
|
], StripeTransaction.prototype, "stripeSessionId", 2);
|
|
5678
5945
|
__decorateClass([
|
|
5679
|
-
(0,
|
|
5946
|
+
(0, import_typeorm67.Column)({ name: "stripe_payment_intent_id", type: "varchar", nullable: true })
|
|
5680
5947
|
], StripeTransaction.prototype, "stripePaymentIntentId", 2);
|
|
5681
5948
|
__decorateClass([
|
|
5682
|
-
(0,
|
|
5949
|
+
(0, import_typeorm67.Column)({ name: "stripe_charge_id", type: "varchar", nullable: true })
|
|
5683
5950
|
], StripeTransaction.prototype, "stripeChargeId", 2);
|
|
5684
5951
|
__decorateClass([
|
|
5685
|
-
(0,
|
|
5952
|
+
(0, import_typeorm67.Column)({ name: "stripe_receipt_url", type: "varchar", nullable: true })
|
|
5686
5953
|
], StripeTransaction.prototype, "stripeReceiptUrl", 2);
|
|
5687
5954
|
__decorateClass([
|
|
5688
|
-
(0,
|
|
5955
|
+
(0, import_typeorm67.Column)({ name: "stripe_balance_transaction_id", type: "varchar", nullable: true })
|
|
5689
5956
|
], StripeTransaction.prototype, "stripeBalanceTransactionId", 2);
|
|
5690
5957
|
__decorateClass([
|
|
5691
|
-
(0,
|
|
5958
|
+
(0, import_typeorm67.Column)({ name: "stripe_payment_method", type: "varchar", nullable: true })
|
|
5692
5959
|
], StripeTransaction.prototype, "stripePaymentMethod", 2);
|
|
5693
5960
|
__decorateClass([
|
|
5694
|
-
(0,
|
|
5961
|
+
(0, import_typeorm67.Column)({ name: "stripe_payment_status", type: "varchar", nullable: true })
|
|
5695
5962
|
], StripeTransaction.prototype, "stripePaymentStatus", 2);
|
|
5696
5963
|
__decorateClass([
|
|
5697
|
-
(0,
|
|
5964
|
+
(0, import_typeorm67.Column)({ name: "type", type: "enum", enum: StripeTransactionTypeEnum })
|
|
5698
5965
|
], StripeTransaction.prototype, "type", 2);
|
|
5699
5966
|
__decorateClass([
|
|
5700
|
-
(0,
|
|
5967
|
+
(0, import_typeorm67.Column)({ name: "currency", type: "varchar", nullable: true })
|
|
5701
5968
|
], StripeTransaction.prototype, "currency", 2);
|
|
5702
5969
|
__decorateClass([
|
|
5703
|
-
(0,
|
|
5970
|
+
(0, import_typeorm67.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" })
|
|
5704
5971
|
], StripeTransaction.prototype, "desiredDepositCents", 2);
|
|
5705
5972
|
__decorateClass([
|
|
5706
|
-
(0,
|
|
5973
|
+
(0, import_typeorm67.Column)({ name: "platform_fee_cents", type: "bigint", default: 0, comment: "Your platform commission Example: 500 cents = $5.00 (5% of $100)" })
|
|
5707
5974
|
], StripeTransaction.prototype, "platformFeeCents", 2);
|
|
5708
5975
|
__decorateClass([
|
|
5709
|
-
(0,
|
|
5976
|
+
(0, import_typeorm67.Column)({ name: "tax_cents", type: "bigint", nullable: true, comment: "Sales tax collected by Stripe" })
|
|
5710
5977
|
], StripeTransaction.prototype, "taxCents", 2);
|
|
5711
5978
|
__decorateClass([
|
|
5712
|
-
(0,
|
|
5979
|
+
(0, import_typeorm67.Column)({ name: "estimated_stripe_fee_cents", type: "bigint", nullable: true, comment: "Your calculated estimate of Stripe fee, Example: 371 cents = $3.71" })
|
|
5713
5980
|
], StripeTransaction.prototype, "estimatedStripeFee", 2);
|
|
5714
5981
|
__decorateClass([
|
|
5715
|
-
(0,
|
|
5982
|
+
(0, import_typeorm67.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" })
|
|
5716
5983
|
], StripeTransaction.prototype, "estimatedTotalCents", 2);
|
|
5717
5984
|
__decorateClass([
|
|
5718
|
-
(0,
|
|
5985
|
+
(0, import_typeorm67.Column)({ name: "actual_stripe_fee_cents", type: "bigint", nullable: true, comment: "ACTUAL Stripe fee charged, Example: 371 cents = $3.71" })
|
|
5719
5986
|
], StripeTransaction.prototype, "actualStripeFee", 2);
|
|
5720
5987
|
__decorateClass([
|
|
5721
|
-
(0,
|
|
5988
|
+
(0, import_typeorm67.Column)({ name: "actual_total_paid_cents", type: "bigint", nullable: true, comment: "What customer ACTUALLY paid, Example: 11757 cents = $117.57, May differ from estimate" })
|
|
5722
5989
|
], StripeTransaction.prototype, "actualTotalPaidCents", 2);
|
|
5723
5990
|
__decorateClass([
|
|
5724
|
-
(0,
|
|
5991
|
+
(0, import_typeorm67.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" })
|
|
5725
5992
|
], StripeTransaction.prototype, "netReceivedCents", 2);
|
|
5726
5993
|
__decorateClass([
|
|
5727
|
-
(0,
|
|
5994
|
+
(0, import_typeorm67.Column)({ name: "description", type: "text", nullable: true })
|
|
5728
5995
|
], StripeTransaction.prototype, "description", 2);
|
|
5729
5996
|
__decorateClass([
|
|
5730
|
-
(0,
|
|
5997
|
+
(0, import_typeorm67.Column)({ name: "status", type: "enum", enum: StripeTransactionStatusEnum, default: "PENDING" /* PENDING */ })
|
|
5731
5998
|
], StripeTransaction.prototype, "status", 2);
|
|
5732
5999
|
__decorateClass([
|
|
5733
|
-
(0,
|
|
6000
|
+
(0, import_typeorm67.Column)({ name: "checkout_session_completed_at", type: "timestamptz", nullable: true })
|
|
5734
6001
|
], StripeTransaction.prototype, "checkoutSessionCompletedAt", 2);
|
|
5735
6002
|
__decorateClass([
|
|
5736
|
-
(0,
|
|
6003
|
+
(0, import_typeorm67.Column)({ name: "completed_at", type: "timestamptz", nullable: true })
|
|
5737
6004
|
], StripeTransaction.prototype, "completedAt", 2);
|
|
5738
6005
|
__decorateClass([
|
|
5739
|
-
(0,
|
|
6006
|
+
(0, import_typeorm67.Column)({ name: "billing_details", type: "jsonb", nullable: true })
|
|
5740
6007
|
], StripeTransaction.prototype, "billingDetails", 2);
|
|
5741
6008
|
__decorateClass([
|
|
5742
|
-
(0,
|
|
6009
|
+
(0, import_typeorm67.Column)({ name: "payment_method_details", type: "jsonb", nullable: true })
|
|
5743
6010
|
], StripeTransaction.prototype, "paymentMethodDetails", 2);
|
|
5744
6011
|
__decorateClass([
|
|
5745
|
-
(0,
|
|
6012
|
+
(0, import_typeorm67.Column)({ name: "raw_session_payload", type: "jsonb", nullable: true })
|
|
5746
6013
|
], StripeTransaction.prototype, "rawSessionPayload", 2);
|
|
5747
6014
|
__decorateClass([
|
|
5748
|
-
(0,
|
|
6015
|
+
(0, import_typeorm67.Column)({ name: "raw_session_response", type: "jsonb", nullable: true })
|
|
5749
6016
|
], StripeTransaction.prototype, "rawSessionResponse", 2);
|
|
5750
6017
|
StripeTransaction = __decorateClass([
|
|
5751
|
-
(0,
|
|
6018
|
+
(0, import_typeorm67.Entity)("stripe_transactions")
|
|
5752
6019
|
], StripeTransaction);
|
|
5753
6020
|
|
|
5754
6021
|
// src/entities/wallet.entity.ts
|
|
5755
|
-
var
|
|
6022
|
+
var import_typeorm69 = require("typeorm");
|
|
5756
6023
|
|
|
5757
6024
|
// src/entities/wallet-transaction.entity.ts
|
|
5758
|
-
var
|
|
6025
|
+
var import_typeorm68 = require("typeorm");
|
|
5759
6026
|
var WalletTransactionTypeEnum = /* @__PURE__ */ ((WalletTransactionTypeEnum2) => {
|
|
5760
6027
|
WalletTransactionTypeEnum2["CR"] = "CR";
|
|
5761
6028
|
WalletTransactionTypeEnum2["DR"] = "DR";
|
|
@@ -5772,46 +6039,46 @@ var WalletTransactionStatusEnum = /* @__PURE__ */ ((WalletTransactionStatusEnum2
|
|
|
5772
6039
|
var WalletTransaction = class extends BaseEntity {
|
|
5773
6040
|
};
|
|
5774
6041
|
__decorateClass([
|
|
5775
|
-
(0,
|
|
5776
|
-
(0,
|
|
6042
|
+
(0, import_typeorm68.Column)({ name: "wallet_id", type: "integer", nullable: true }),
|
|
6043
|
+
(0, import_typeorm68.Index)()
|
|
5777
6044
|
], WalletTransaction.prototype, "walletId", 2);
|
|
5778
6045
|
__decorateClass([
|
|
5779
|
-
(0,
|
|
5780
|
-
(0,
|
|
6046
|
+
(0, import_typeorm68.ManyToOne)(() => Wallet, (wallet) => wallet.walletTransactions),
|
|
6047
|
+
(0, import_typeorm68.JoinColumn)({ name: "wallet_id" })
|
|
5781
6048
|
], WalletTransaction.prototype, "wallet", 2);
|
|
5782
6049
|
__decorateClass([
|
|
5783
|
-
(0,
|
|
6050
|
+
(0, import_typeorm68.Column)({ name: "amount", type: "bigint", nullable: true })
|
|
5784
6051
|
], WalletTransaction.prototype, "amount", 2);
|
|
5785
6052
|
__decorateClass([
|
|
5786
|
-
(0,
|
|
6053
|
+
(0, import_typeorm68.Column)({ name: "balance_before", type: "bigint", nullable: true })
|
|
5787
6054
|
], WalletTransaction.prototype, "balanceBefore", 2);
|
|
5788
6055
|
__decorateClass([
|
|
5789
|
-
(0,
|
|
6056
|
+
(0, import_typeorm68.Column)({ name: "balance_after", type: "bigint", nullable: true })
|
|
5790
6057
|
], WalletTransaction.prototype, "balanceAfter", 2);
|
|
5791
6058
|
__decorateClass([
|
|
5792
|
-
(0,
|
|
6059
|
+
(0, import_typeorm68.Column)({ name: "type", type: "enum", enum: WalletTransactionTypeEnum })
|
|
5793
6060
|
], WalletTransaction.prototype, "type", 2);
|
|
5794
6061
|
__decorateClass([
|
|
5795
|
-
(0,
|
|
6062
|
+
(0, import_typeorm68.Column)({ name: "status", type: "enum", enum: WalletTransactionStatusEnum, default: "PENDING" /* PENDING */ })
|
|
5796
6063
|
], WalletTransaction.prototype, "status", 2);
|
|
5797
6064
|
__decorateClass([
|
|
5798
|
-
(0,
|
|
6065
|
+
(0, import_typeorm68.Column)({ name: "description", type: "text", nullable: true })
|
|
5799
6066
|
], WalletTransaction.prototype, "description", 2);
|
|
5800
6067
|
__decorateClass([
|
|
5801
|
-
(0,
|
|
6068
|
+
(0, import_typeorm68.Column)({ name: "completed_at", type: "timestamptz", nullable: true })
|
|
5802
6069
|
], WalletTransaction.prototype, "completedAt", 2);
|
|
5803
6070
|
__decorateClass([
|
|
5804
|
-
(0,
|
|
6071
|
+
(0, import_typeorm68.Column)({ name: "transaction_for", type: "varchar", nullable: true })
|
|
5805
6072
|
], WalletTransaction.prototype, "transactionFor", 2);
|
|
5806
6073
|
__decorateClass([
|
|
5807
|
-
(0,
|
|
6074
|
+
(0, import_typeorm68.Column)({ name: "meta_data", type: "varchar", nullable: true })
|
|
5808
6075
|
], WalletTransaction.prototype, "metaData", 2);
|
|
5809
6076
|
__decorateClass([
|
|
5810
|
-
(0,
|
|
5811
|
-
(0,
|
|
6077
|
+
(0, import_typeorm68.Column)({ name: "stripe_transaction_id", type: "integer", nullable: true }),
|
|
6078
|
+
(0, import_typeorm68.Index)()
|
|
5812
6079
|
], WalletTransaction.prototype, "stripeTransactionId", 2);
|
|
5813
6080
|
WalletTransaction = __decorateClass([
|
|
5814
|
-
(0,
|
|
6081
|
+
(0, import_typeorm68.Entity)("wallet_transactions")
|
|
5815
6082
|
], WalletTransaction);
|
|
5816
6083
|
|
|
5817
6084
|
// src/entities/wallet.entity.ts
|
|
@@ -5829,43 +6096,43 @@ var WalletOnboardingStatusEnum = /* @__PURE__ */ ((WalletOnboardingStatusEnum2)
|
|
|
5829
6096
|
var Wallet = class extends BaseEntity {
|
|
5830
6097
|
};
|
|
5831
6098
|
__decorateClass([
|
|
5832
|
-
(0,
|
|
5833
|
-
(0,
|
|
6099
|
+
(0, import_typeorm69.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
6100
|
+
(0, import_typeorm69.Index)()
|
|
5834
6101
|
], Wallet.prototype, "userId", 2);
|
|
5835
6102
|
__decorateClass([
|
|
5836
|
-
(0,
|
|
5837
|
-
(0,
|
|
6103
|
+
(0, import_typeorm69.OneToOne)(() => User, (user) => user.wallet),
|
|
6104
|
+
(0, import_typeorm69.JoinColumn)({ name: "user_id" })
|
|
5838
6105
|
], Wallet.prototype, "user", 2);
|
|
5839
6106
|
__decorateClass([
|
|
5840
|
-
(0,
|
|
6107
|
+
(0, import_typeorm69.Column)({ name: "account_type", type: "enum", enum: WalletAccountTypeEnum, nullable: true })
|
|
5841
6108
|
], Wallet.prototype, "accountType", 2);
|
|
5842
6109
|
__decorateClass([
|
|
5843
|
-
(0,
|
|
6110
|
+
(0, import_typeorm69.Column)({ name: "stripe_account_id", type: "varchar", nullable: true })
|
|
5844
6111
|
], Wallet.prototype, "stripeAccountId", 2);
|
|
5845
6112
|
__decorateClass([
|
|
5846
|
-
(0,
|
|
6113
|
+
(0, import_typeorm69.Column)({ name: "stripe_customer_id", type: "varchar", nullable: true })
|
|
5847
6114
|
], Wallet.prototype, "stripeCustomerId", 2);
|
|
5848
6115
|
__decorateClass([
|
|
5849
|
-
(0,
|
|
6116
|
+
(0, import_typeorm69.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" })
|
|
5850
6117
|
], Wallet.prototype, "walletBalance", 2);
|
|
5851
6118
|
__decorateClass([
|
|
5852
|
-
(0,
|
|
6119
|
+
(0, import_typeorm69.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" })
|
|
5853
6120
|
], Wallet.prototype, "walletBalanceCents", 2);
|
|
5854
6121
|
__decorateClass([
|
|
5855
|
-
(0,
|
|
6122
|
+
(0, import_typeorm69.Column)({ name: "onboarding_status", type: "enum", enum: WalletOnboardingStatusEnum, nullable: true })
|
|
5856
6123
|
], Wallet.prototype, "onboardingStatus", 2);
|
|
5857
6124
|
__decorateClass([
|
|
5858
|
-
(0,
|
|
6125
|
+
(0, import_typeorm69.Column)({ name: "stripe_metadata", type: "jsonb", nullable: true })
|
|
5859
6126
|
], Wallet.prototype, "stripeMetadata", 2);
|
|
5860
6127
|
__decorateClass([
|
|
5861
|
-
(0,
|
|
6128
|
+
(0, import_typeorm69.OneToMany)(() => WalletTransaction, (walletTransaction) => walletTransaction.wallet)
|
|
5862
6129
|
], Wallet.prototype, "walletTransactions", 2);
|
|
5863
6130
|
Wallet = __decorateClass([
|
|
5864
|
-
(0,
|
|
6131
|
+
(0, import_typeorm69.Entity)("wallets")
|
|
5865
6132
|
], Wallet);
|
|
5866
6133
|
|
|
5867
6134
|
// src/entities/freelancer-assessment-request.entity.ts
|
|
5868
|
-
var
|
|
6135
|
+
var import_typeorm70 = require("typeorm");
|
|
5869
6136
|
var AssessmentRequestStatusEnum = /* @__PURE__ */ ((AssessmentRequestStatusEnum2) => {
|
|
5870
6137
|
AssessmentRequestStatusEnum2["PENDING"] = "PENDING";
|
|
5871
6138
|
AssessmentRequestStatusEnum2["APPROVED"] = "APPROVED";
|
|
@@ -5875,23 +6142,23 @@ var AssessmentRequestStatusEnum = /* @__PURE__ */ ((AssessmentRequestStatusEnum2
|
|
|
5875
6142
|
var FreelancerAssessmentRequest = class extends BaseEntity {
|
|
5876
6143
|
};
|
|
5877
6144
|
__decorateClass([
|
|
5878
|
-
(0,
|
|
5879
|
-
(0,
|
|
6145
|
+
(0, import_typeorm70.Column)({ name: "freelancer_id", type: "integer", nullable: true }),
|
|
6146
|
+
(0, import_typeorm70.Index)()
|
|
5880
6147
|
], FreelancerAssessmentRequest.prototype, "freelancerId", 2);
|
|
5881
6148
|
__decorateClass([
|
|
5882
|
-
(0,
|
|
5883
|
-
(0,
|
|
6149
|
+
(0, import_typeorm70.ManyToOne)(() => User, (user) => user.freelancerAssessmentRequests),
|
|
6150
|
+
(0, import_typeorm70.JoinColumn)({ name: "freelancer_id" })
|
|
5884
6151
|
], FreelancerAssessmentRequest.prototype, "freelancer", 2);
|
|
5885
6152
|
__decorateClass([
|
|
5886
|
-
(0,
|
|
5887
|
-
(0,
|
|
6153
|
+
(0, import_typeorm70.Column)({ name: "approved_by_id", type: "integer", nullable: true }),
|
|
6154
|
+
(0, import_typeorm70.Index)()
|
|
5888
6155
|
], FreelancerAssessmentRequest.prototype, "approvedById", 2);
|
|
5889
6156
|
__decorateClass([
|
|
5890
|
-
(0,
|
|
5891
|
-
(0,
|
|
6157
|
+
(0, import_typeorm70.ManyToOne)(() => User, (user) => user.assessmentRequests),
|
|
6158
|
+
(0, import_typeorm70.JoinColumn)({ name: "approved_by_id" })
|
|
5892
6159
|
], FreelancerAssessmentRequest.prototype, "approvedBy", 2);
|
|
5893
6160
|
__decorateClass([
|
|
5894
|
-
(0,
|
|
6161
|
+
(0, import_typeorm70.Column)({
|
|
5895
6162
|
name: "status",
|
|
5896
6163
|
type: "enum",
|
|
5897
6164
|
enum: AssessmentRequestStatusEnum,
|
|
@@ -5899,44 +6166,44 @@ __decorateClass([
|
|
|
5899
6166
|
})
|
|
5900
6167
|
], FreelancerAssessmentRequest.prototype, "status", 2);
|
|
5901
6168
|
__decorateClass([
|
|
5902
|
-
(0,
|
|
6169
|
+
(0, import_typeorm70.Column)({ name: "assessment_link", type: "text", nullable: true })
|
|
5903
6170
|
], FreelancerAssessmentRequest.prototype, "assessmentLink", 2);
|
|
5904
6171
|
FreelancerAssessmentRequest = __decorateClass([
|
|
5905
|
-
(0,
|
|
6172
|
+
(0, import_typeorm70.Entity)({ name: "freelancer_assessment_requests" })
|
|
5906
6173
|
], FreelancerAssessmentRequest);
|
|
5907
6174
|
|
|
5908
6175
|
// src/entities/in-app-notification.entity.ts
|
|
5909
|
-
var
|
|
6176
|
+
var import_typeorm71 = require("typeorm");
|
|
5910
6177
|
var InAppNotification = class extends BaseEntity {
|
|
5911
6178
|
};
|
|
5912
6179
|
__decorateClass([
|
|
5913
|
-
(0,
|
|
5914
|
-
(0,
|
|
6180
|
+
(0, import_typeorm71.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
6181
|
+
(0, import_typeorm71.Index)()
|
|
5915
6182
|
], InAppNotification.prototype, "userId", 2);
|
|
5916
6183
|
__decorateClass([
|
|
5917
|
-
(0,
|
|
5918
|
-
(0,
|
|
6184
|
+
(0, import_typeorm71.ManyToOne)(() => User, (user) => user.inAppNotifications),
|
|
6185
|
+
(0, import_typeorm71.JoinColumn)({ name: "user_id" })
|
|
5919
6186
|
], InAppNotification.prototype, "user", 2);
|
|
5920
6187
|
__decorateClass([
|
|
5921
|
-
(0,
|
|
6188
|
+
(0, import_typeorm71.Column)({ name: "event", type: "varchar", nullable: true })
|
|
5922
6189
|
], InAppNotification.prototype, "event", 2);
|
|
5923
6190
|
__decorateClass([
|
|
5924
|
-
(0,
|
|
6191
|
+
(0, import_typeorm71.Column)({ name: "title", type: "varchar", nullable: true })
|
|
5925
6192
|
], InAppNotification.prototype, "title", 2);
|
|
5926
6193
|
__decorateClass([
|
|
5927
|
-
(0,
|
|
6194
|
+
(0, import_typeorm71.Column)({ name: "message", type: "varchar", nullable: true })
|
|
5928
6195
|
], InAppNotification.prototype, "message", 2);
|
|
5929
6196
|
__decorateClass([
|
|
5930
|
-
(0,
|
|
6197
|
+
(0, import_typeorm71.Column)({ name: "redirect_url", type: "varchar", nullable: true })
|
|
5931
6198
|
], InAppNotification.prototype, "redirectUrl", 2);
|
|
5932
6199
|
__decorateClass([
|
|
5933
|
-
(0,
|
|
6200
|
+
(0, import_typeorm71.Column)({ name: "is_read", type: "boolean", default: false })
|
|
5934
6201
|
], InAppNotification.prototype, "isRead", 2);
|
|
5935
6202
|
__decorateClass([
|
|
5936
|
-
(0,
|
|
6203
|
+
(0, import_typeorm71.Column)({ name: "meta_data", type: "jsonb", nullable: true })
|
|
5937
6204
|
], InAppNotification.prototype, "metaData", 2);
|
|
5938
6205
|
InAppNotification = __decorateClass([
|
|
5939
|
-
(0,
|
|
6206
|
+
(0, import_typeorm71.Entity)("in_app_notifications")
|
|
5940
6207
|
], InAppNotification);
|
|
5941
6208
|
|
|
5942
6209
|
// src/entities/user.entity.ts
|
|
@@ -5965,51 +6232,51 @@ var Provider = /* @__PURE__ */ ((Provider2) => {
|
|
|
5965
6232
|
var User = class extends BaseEntity {
|
|
5966
6233
|
};
|
|
5967
6234
|
__decorateClass([
|
|
5968
|
-
(0,
|
|
6235
|
+
(0, import_typeorm72.Column)({ name: "unique_id", type: "varchar", unique: true })
|
|
5969
6236
|
], User.prototype, "uniqueId", 2);
|
|
5970
6237
|
__decorateClass([
|
|
5971
|
-
(0,
|
|
5972
|
-
(0,
|
|
6238
|
+
(0, import_typeorm72.Column)({ name: "parent_id", type: "integer", nullable: true }),
|
|
6239
|
+
(0, import_typeorm72.Index)()
|
|
5973
6240
|
], User.prototype, "parentId", 2);
|
|
5974
6241
|
__decorateClass([
|
|
5975
|
-
(0,
|
|
5976
|
-
(0,
|
|
6242
|
+
(0, import_typeorm72.ManyToOne)(() => User, (user) => user.children, { nullable: true }),
|
|
6243
|
+
(0, import_typeorm72.JoinColumn)({ name: "parent_id" })
|
|
5977
6244
|
], User.prototype, "parent", 2);
|
|
5978
6245
|
__decorateClass([
|
|
5979
|
-
(0,
|
|
6246
|
+
(0, import_typeorm72.OneToMany)(() => User, (user) => user.parent)
|
|
5980
6247
|
], User.prototype, "children", 2);
|
|
5981
6248
|
__decorateClass([
|
|
5982
|
-
(0,
|
|
6249
|
+
(0, import_typeorm72.Column)({ name: "username", type: "varchar", unique: true, nullable: true })
|
|
5983
6250
|
], User.prototype, "username", 2);
|
|
5984
6251
|
__decorateClass([
|
|
5985
|
-
(0,
|
|
6252
|
+
(0, import_typeorm72.Column)({ name: "first_name", type: "varchar", length: 100, nullable: true })
|
|
5986
6253
|
], User.prototype, "firstName", 2);
|
|
5987
6254
|
__decorateClass([
|
|
5988
|
-
(0,
|
|
6255
|
+
(0, import_typeorm72.Column)({ name: "last_name", type: "varchar", length: 100, nullable: true })
|
|
5989
6256
|
], User.prototype, "lastName", 2);
|
|
5990
6257
|
__decorateClass([
|
|
5991
|
-
(0,
|
|
6258
|
+
(0, import_typeorm72.Column)({ name: "date_of_birth", type: "date", nullable: true })
|
|
5992
6259
|
], User.prototype, "dateOfBirth", 2);
|
|
5993
6260
|
__decorateClass([
|
|
5994
|
-
(0,
|
|
6261
|
+
(0, import_typeorm72.Column)({ name: "gender", type: "varchar", length: 10, nullable: true })
|
|
5995
6262
|
], User.prototype, "gender", 2);
|
|
5996
6263
|
__decorateClass([
|
|
5997
|
-
(0,
|
|
6264
|
+
(0, import_typeorm72.Column)({ name: "profile_picture_url", type: "text", nullable: true })
|
|
5998
6265
|
], User.prototype, "profilePictureUrl", 2);
|
|
5999
6266
|
__decorateClass([
|
|
6000
|
-
(0,
|
|
6267
|
+
(0, import_typeorm72.Column)({ name: "email", type: "varchar", unique: true })
|
|
6001
6268
|
], User.prototype, "email", 2);
|
|
6002
6269
|
__decorateClass([
|
|
6003
|
-
(0,
|
|
6270
|
+
(0, import_typeorm72.Column)({ name: "mobile_code", type: "varchar", nullable: true })
|
|
6004
6271
|
], User.prototype, "mobileCode", 2);
|
|
6005
6272
|
__decorateClass([
|
|
6006
|
-
(0,
|
|
6273
|
+
(0, import_typeorm72.Column)({ name: "mobile", type: "varchar", nullable: true })
|
|
6007
6274
|
], User.prototype, "mobile", 2);
|
|
6008
6275
|
__decorateClass([
|
|
6009
|
-
(0,
|
|
6276
|
+
(0, import_typeorm72.Column)({ name: "password", type: "varchar", nullable: true })
|
|
6010
6277
|
], User.prototype, "password", 2);
|
|
6011
6278
|
__decorateClass([
|
|
6012
|
-
(0,
|
|
6279
|
+
(0, import_typeorm72.Column)({
|
|
6013
6280
|
name: "account_type",
|
|
6014
6281
|
type: "enum",
|
|
6015
6282
|
enum: AccountType2,
|
|
@@ -6017,7 +6284,7 @@ __decorateClass([
|
|
|
6017
6284
|
})
|
|
6018
6285
|
], User.prototype, "accountType", 2);
|
|
6019
6286
|
__decorateClass([
|
|
6020
|
-
(0,
|
|
6287
|
+
(0, import_typeorm72.Column)({
|
|
6021
6288
|
name: "account_status",
|
|
6022
6289
|
type: "enum",
|
|
6023
6290
|
enum: AccountStatus,
|
|
@@ -6025,45 +6292,45 @@ __decorateClass([
|
|
|
6025
6292
|
})
|
|
6026
6293
|
], User.prototype, "accountStatus", 2);
|
|
6027
6294
|
__decorateClass([
|
|
6028
|
-
(0,
|
|
6295
|
+
(0, import_typeorm72.Column)({ name: "is_email_verified", type: "boolean", default: false })
|
|
6029
6296
|
], User.prototype, "isEmailVerified", 2);
|
|
6030
6297
|
__decorateClass([
|
|
6031
|
-
(0,
|
|
6298
|
+
(0, import_typeorm72.Column)({ name: "is_mobile_verified", type: "boolean", default: false })
|
|
6032
6299
|
], User.prototype, "isMobileVerified", 2);
|
|
6033
6300
|
__decorateClass([
|
|
6034
|
-
(0,
|
|
6301
|
+
(0, import_typeorm72.Column)({ name: "is_social", type: "boolean", default: false })
|
|
6035
6302
|
], User.prototype, "isSocial", 2);
|
|
6036
6303
|
__decorateClass([
|
|
6037
|
-
(0,
|
|
6304
|
+
(0, import_typeorm72.Column)({ name: "is_referral_user", type: "boolean", default: false })
|
|
6038
6305
|
], User.prototype, "isReferralUser", 2);
|
|
6039
6306
|
__decorateClass([
|
|
6040
|
-
(0,
|
|
6307
|
+
(0, import_typeorm72.Column)({
|
|
6041
6308
|
name: "last_login_at",
|
|
6042
6309
|
type: "timestamp with time zone",
|
|
6043
6310
|
nullable: true
|
|
6044
6311
|
})
|
|
6045
6312
|
], User.prototype, "lastLoginAt", 2);
|
|
6046
6313
|
__decorateClass([
|
|
6047
|
-
(0,
|
|
6314
|
+
(0, import_typeorm72.Column)({ name: "last_login_ip", type: "varchar", nullable: true })
|
|
6048
6315
|
], User.prototype, "lastLoginIp", 2);
|
|
6049
6316
|
__decorateClass([
|
|
6050
|
-
(0,
|
|
6317
|
+
(0, import_typeorm72.Column)({ name: "reset_token", type: "varchar", nullable: true })
|
|
6051
6318
|
], User.prototype, "resetToken", 2);
|
|
6052
6319
|
__decorateClass([
|
|
6053
|
-
(0,
|
|
6320
|
+
(0, import_typeorm72.Column)({
|
|
6054
6321
|
name: "reset_token_expire_at",
|
|
6055
6322
|
type: "timestamp with time zone",
|
|
6056
6323
|
nullable: true
|
|
6057
6324
|
})
|
|
6058
6325
|
], User.prototype, "resetTokenExpireAt", 2);
|
|
6059
6326
|
__decorateClass([
|
|
6060
|
-
(0,
|
|
6327
|
+
(0, import_typeorm72.Column)({ name: "set_password_token", type: "varchar", nullable: true })
|
|
6061
6328
|
], User.prototype, "setPasswordToken", 2);
|
|
6062
6329
|
__decorateClass([
|
|
6063
|
-
(0,
|
|
6330
|
+
(0, import_typeorm72.OneToMany)(() => RefreshToken, (token) => token.user)
|
|
6064
6331
|
], User.prototype, "refreshTokens", 2);
|
|
6065
6332
|
__decorateClass([
|
|
6066
|
-
(0,
|
|
6333
|
+
(0, import_typeorm72.Column)({
|
|
6067
6334
|
name: "provider",
|
|
6068
6335
|
type: "enum",
|
|
6069
6336
|
enum: Provider,
|
|
@@ -6072,251 +6339,257 @@ __decorateClass([
|
|
|
6072
6339
|
})
|
|
6073
6340
|
], User.prototype, "provider", 2);
|
|
6074
6341
|
__decorateClass([
|
|
6075
|
-
(0,
|
|
6342
|
+
(0, import_typeorm72.Column)({ name: "provider_token", type: "varchar", nullable: true })
|
|
6076
6343
|
], User.prototype, "providerToken", 2);
|
|
6077
6344
|
__decorateClass([
|
|
6078
|
-
(0,
|
|
6345
|
+
(0, import_typeorm72.Column)({ name: "linkedin_id", type: "varchar", nullable: true })
|
|
6079
6346
|
], User.prototype, "linkedInId", 2);
|
|
6080
6347
|
__decorateClass([
|
|
6081
|
-
(0,
|
|
6348
|
+
(0, import_typeorm72.Column)({ name: "google_id", type: "varchar", nullable: true })
|
|
6082
6349
|
], User.prototype, "googleId", 2);
|
|
6083
6350
|
__decorateClass([
|
|
6084
|
-
(0,
|
|
6351
|
+
(0, import_typeorm72.Column)({ name: "gitlabs_id", type: "varchar", nullable: true })
|
|
6085
6352
|
], User.prototype, "gitLabsId", 2);
|
|
6086
6353
|
__decorateClass([
|
|
6087
|
-
(0,
|
|
6354
|
+
(0, import_typeorm72.Column)({ name: "onboarded_by", type: "varchar", nullable: true })
|
|
6088
6355
|
], User.prototype, "onBoardedBy", 2);
|
|
6089
6356
|
__decorateClass([
|
|
6090
|
-
(0,
|
|
6357
|
+
(0, import_typeorm72.OneToMany)(() => Otp, (otp) => otp.user)
|
|
6091
6358
|
], User.prototype, "otps", 2);
|
|
6092
6359
|
__decorateClass([
|
|
6093
|
-
(0,
|
|
6360
|
+
(0, import_typeorm72.OneToMany)(() => SenseloafLog, (senseloafLog) => senseloafLog.user)
|
|
6094
6361
|
], User.prototype, "senseloafLogs", 2);
|
|
6095
6362
|
__decorateClass([
|
|
6096
|
-
(0,
|
|
6363
|
+
(0, import_typeorm72.OneToOne)(() => CompanyProfile, (companyProfile) => companyProfile.user)
|
|
6097
6364
|
], User.prototype, "companyProfile", 2);
|
|
6098
6365
|
__decorateClass([
|
|
6099
|
-
(0,
|
|
6366
|
+
(0, import_typeorm72.OneToMany)(() => CompanySkill, (companySkill) => companySkill.user)
|
|
6100
6367
|
], User.prototype, "companySkills", 2);
|
|
6101
6368
|
__decorateClass([
|
|
6102
|
-
(0,
|
|
6369
|
+
(0, import_typeorm72.OneToMany)(
|
|
6103
6370
|
() => CompanyMemberRole,
|
|
6104
6371
|
(companyMemberRole) => companyMemberRole.user
|
|
6105
6372
|
)
|
|
6106
6373
|
], User.prototype, "companyMemberRoles", 2);
|
|
6107
6374
|
__decorateClass([
|
|
6108
|
-
(0,
|
|
6375
|
+
(0, import_typeorm72.OneToMany)(() => AiInterview, (aiInterview) => aiInterview.interviwer)
|
|
6109
6376
|
], User.prototype, "companyAiInterview", 2);
|
|
6110
6377
|
__decorateClass([
|
|
6111
|
-
(0,
|
|
6378
|
+
(0, import_typeorm72.OneToMany)(() => F2FInterview, (F2FInterview2) => F2FInterview2.interviwer)
|
|
6112
6379
|
], User.prototype, "clientF2FInterviews", 2);
|
|
6113
6380
|
__decorateClass([
|
|
6114
|
-
(0,
|
|
6381
|
+
(0, import_typeorm72.OneToOne)(
|
|
6115
6382
|
() => FreelancerProfile,
|
|
6116
6383
|
(freelancerProfile) => freelancerProfile.user
|
|
6117
6384
|
)
|
|
6118
6385
|
], User.prototype, "freelancerProfile", 2);
|
|
6119
6386
|
__decorateClass([
|
|
6120
|
-
(0,
|
|
6387
|
+
(0, import_typeorm72.OneToOne)(() => FreelancerResume, (freelancerResume) => freelancerResume.user)
|
|
6121
6388
|
], User.prototype, "freelancerResume", 2);
|
|
6122
6389
|
__decorateClass([
|
|
6123
|
-
(0,
|
|
6390
|
+
(0, import_typeorm72.OneToMany)(
|
|
6124
6391
|
() => FreelancerAssessmentRequest,
|
|
6125
6392
|
(freelancerAssessmentRequest) => freelancerAssessmentRequest.freelancer
|
|
6126
6393
|
)
|
|
6127
6394
|
], User.prototype, "freelancerAssessmentRequests", 2);
|
|
6128
6395
|
__decorateClass([
|
|
6129
|
-
(0,
|
|
6396
|
+
(0, import_typeorm72.OneToMany)(
|
|
6130
6397
|
() => FreelancerAssessmentRequest,
|
|
6131
6398
|
(freelancerAssessment) => freelancerAssessment.approvedBy
|
|
6132
6399
|
)
|
|
6133
6400
|
], User.prototype, "assessmentRequests", 2);
|
|
6134
6401
|
__decorateClass([
|
|
6135
|
-
(0,
|
|
6402
|
+
(0, import_typeorm72.OneToMany)(
|
|
6136
6403
|
() => FreelancerAssessment,
|
|
6137
6404
|
(freelancerAssessment) => freelancerAssessment.user
|
|
6138
6405
|
)
|
|
6139
6406
|
], User.prototype, "assessments", 2);
|
|
6140
6407
|
__decorateClass([
|
|
6141
|
-
(0,
|
|
6408
|
+
(0, import_typeorm72.OneToMany)(
|
|
6142
6409
|
() => AssessmentAnswer,
|
|
6143
6410
|
(assessmentAnswer) => assessmentAnswer.user
|
|
6144
6411
|
)
|
|
6145
6412
|
], User.prototype, "assessmentAnswers", 2);
|
|
6146
6413
|
__decorateClass([
|
|
6147
|
-
(0,
|
|
6414
|
+
(0, import_typeorm72.OneToMany)(() => FreelancerSkill, (freelancerSkill) => freelancerSkill.user)
|
|
6148
6415
|
], User.prototype, "freelancerSkills", 2);
|
|
6149
6416
|
__decorateClass([
|
|
6150
|
-
(0,
|
|
6417
|
+
(0, import_typeorm72.OneToMany)(
|
|
6151
6418
|
() => FreelancerExperience,
|
|
6152
6419
|
(freelancerExperience) => freelancerExperience.user
|
|
6153
6420
|
)
|
|
6154
6421
|
], User.prototype, "freelancerExperience", 2);
|
|
6155
6422
|
__decorateClass([
|
|
6156
|
-
(0,
|
|
6423
|
+
(0, import_typeorm72.OneToMany)(
|
|
6157
6424
|
() => FreelancerEducation,
|
|
6158
6425
|
(freelancerEducation) => freelancerEducation.user
|
|
6159
6426
|
)
|
|
6160
6427
|
], User.prototype, "freelancerEducation", 2);
|
|
6161
6428
|
__decorateClass([
|
|
6162
|
-
(0,
|
|
6429
|
+
(0, import_typeorm72.OneToMany)(
|
|
6163
6430
|
() => FreelancerProject,
|
|
6164
6431
|
(freelancerProject) => freelancerProject.user
|
|
6165
6432
|
)
|
|
6166
6433
|
], User.prototype, "freelancerProject", 2);
|
|
6167
6434
|
__decorateClass([
|
|
6168
|
-
(0,
|
|
6435
|
+
(0, import_typeorm72.OneToMany)(
|
|
6169
6436
|
() => FreelancerCaseStudy,
|
|
6170
6437
|
(freelancerCaseStudy) => freelancerCaseStudy.user
|
|
6171
6438
|
)
|
|
6172
6439
|
], User.prototype, "freelancerCaseStudy", 2);
|
|
6173
6440
|
__decorateClass([
|
|
6174
|
-
(0,
|
|
6441
|
+
(0, import_typeorm72.OneToMany)(() => FreelancerTool, (freelancerTool) => freelancerTool.user)
|
|
6175
6442
|
], User.prototype, "freelancerTool", 2);
|
|
6176
6443
|
__decorateClass([
|
|
6177
|
-
(0,
|
|
6444
|
+
(0, import_typeorm72.OneToMany)(
|
|
6178
6445
|
() => FreelancerFramework,
|
|
6179
6446
|
(freelancerFramework) => freelancerFramework.user
|
|
6180
6447
|
)
|
|
6181
6448
|
], User.prototype, "freelancerFramework", 2);
|
|
6182
6449
|
__decorateClass([
|
|
6183
|
-
(0,
|
|
6450
|
+
(0, import_typeorm72.OneToOne)(
|
|
6184
6451
|
() => FreelancerDeclaration,
|
|
6185
6452
|
(freelancerDeclaration) => freelancerDeclaration.user
|
|
6186
6453
|
)
|
|
6187
6454
|
], User.prototype, "freelancerDeclaration", 2);
|
|
6188
6455
|
__decorateClass([
|
|
6189
|
-
(0,
|
|
6456
|
+
(0, import_typeorm72.OneToMany)(() => AssessmetQuestion, (assessmetQuestion) => assessmetQuestion.candidate)
|
|
6190
6457
|
], User.prototype, "freelancerMcq", 2);
|
|
6191
6458
|
__decorateClass([
|
|
6192
|
-
(0,
|
|
6459
|
+
(0, import_typeorm72.OneToMany)(() => AiInterview, (aiInterview) => aiInterview.candidate)
|
|
6193
6460
|
], User.prototype, "freelancerAiInterview", 2);
|
|
6194
6461
|
__decorateClass([
|
|
6195
|
-
(0,
|
|
6462
|
+
(0, import_typeorm72.OneToMany)(() => F2FInterview, (F2FInterview2) => F2FInterview2.candidate)
|
|
6196
6463
|
], User.prototype, "freelancerF2FInterviews", 2);
|
|
6197
6464
|
__decorateClass([
|
|
6198
|
-
(0,
|
|
6465
|
+
(0, import_typeorm72.OneToMany)(
|
|
6199
6466
|
() => F2fInterviewRescheduleRequest,
|
|
6200
6467
|
(f2fInterviewRescheduleRequest) => f2fInterviewRescheduleRequest.candidate
|
|
6201
6468
|
)
|
|
6202
6469
|
], User.prototype, "freelancerF2FInterviewRescheduleRequests", 2);
|
|
6203
6470
|
__decorateClass([
|
|
6204
|
-
(0,
|
|
6471
|
+
(0, import_typeorm72.OneToMany)(
|
|
6205
6472
|
() => AiInterviewRescheduleRequest,
|
|
6206
6473
|
(aiInterviewRescheduleRequest) => aiInterviewRescheduleRequest.candidate
|
|
6207
6474
|
)
|
|
6208
6475
|
], User.prototype, "freelancerAiInterviewRescheduleRequests", 2);
|
|
6209
6476
|
__decorateClass([
|
|
6210
|
-
(0,
|
|
6477
|
+
(0, import_typeorm72.OneToMany)(
|
|
6211
6478
|
() => AiInterviewRescheduleRequest,
|
|
6212
6479
|
(aiInterviewRescheduleRequest) => aiInterviewRescheduleRequest.client
|
|
6213
6480
|
)
|
|
6214
6481
|
], User.prototype, "clientAiInterviewRescheduleRequests", 2);
|
|
6215
6482
|
__decorateClass([
|
|
6216
|
-
(0,
|
|
6483
|
+
(0, import_typeorm72.OneToMany)(() => Job, (job) => job.user)
|
|
6217
6484
|
], User.prototype, "jobs", 2);
|
|
6218
6485
|
__decorateClass([
|
|
6219
|
-
(0,
|
|
6486
|
+
(0, import_typeorm72.OneToMany)(() => Task, (task) => task.client)
|
|
6487
|
+
], User.prototype, "clientTasks", 2);
|
|
6488
|
+
__decorateClass([
|
|
6489
|
+
(0, import_typeorm72.OneToMany)(() => Task, (task) => task.freelancer)
|
|
6490
|
+
], User.prototype, "freelancerTasks", 2);
|
|
6491
|
+
__decorateClass([
|
|
6492
|
+
(0, import_typeorm72.OneToMany)(() => JobApplication, (jobApplication) => jobApplication.user)
|
|
6220
6493
|
], User.prototype, "jobApplications", 2);
|
|
6221
6494
|
__decorateClass([
|
|
6222
|
-
(0,
|
|
6495
|
+
(0, import_typeorm72.OneToMany)(() => Interview, (interview) => interview.user)
|
|
6223
6496
|
], User.prototype, "interviews", 2);
|
|
6224
6497
|
__decorateClass([
|
|
6225
|
-
(0,
|
|
6498
|
+
(0, import_typeorm72.OneToMany)(() => BankDetail, (bankDetail) => bankDetail.user)
|
|
6226
6499
|
], User.prototype, "bankDetail", 2);
|
|
6227
6500
|
__decorateClass([
|
|
6228
|
-
(0,
|
|
6501
|
+
(0, import_typeorm72.OneToMany)(
|
|
6229
6502
|
() => SystemPreference,
|
|
6230
6503
|
(systemPreference) => systemPreference.user
|
|
6231
6504
|
)
|
|
6232
6505
|
], User.prototype, "systemPreference", 2);
|
|
6233
6506
|
__decorateClass([
|
|
6234
|
-
(0,
|
|
6507
|
+
(0, import_typeorm72.OneToMany)(() => Rating, (rating) => rating.reviewer)
|
|
6235
6508
|
], User.prototype, "givenRatings", 2);
|
|
6236
6509
|
__decorateClass([
|
|
6237
|
-
(0,
|
|
6510
|
+
(0, import_typeorm72.OneToMany)(() => Rating, (rating) => rating.reviewee)
|
|
6238
6511
|
], User.prototype, "receivedRatings", 2);
|
|
6239
6512
|
__decorateClass([
|
|
6240
|
-
(0,
|
|
6513
|
+
(0, import_typeorm72.OneToMany)(() => AdminUserRole, (adminUserRole) => adminUserRole.user)
|
|
6241
6514
|
], User.prototype, "adminUserRoles", 2);
|
|
6242
6515
|
__decorateClass([
|
|
6243
|
-
(0,
|
|
6516
|
+
(0, import_typeorm72.OneToMany)(() => ContractSummary, (contractSummary) => contractSummary.clientId, {
|
|
6244
6517
|
cascade: true
|
|
6245
6518
|
})
|
|
6246
6519
|
], User.prototype, "clientContractSummaries", 2);
|
|
6247
6520
|
__decorateClass([
|
|
6248
|
-
(0,
|
|
6521
|
+
(0, import_typeorm72.OneToMany)(() => Contract, (contract) => contract.client)
|
|
6249
6522
|
], User.prototype, "clientContracts", 2);
|
|
6250
6523
|
__decorateClass([
|
|
6251
|
-
(0,
|
|
6524
|
+
(0, import_typeorm72.OneToMany)(() => Hiring, (hiring) => hiring.client)
|
|
6252
6525
|
], User.prototype, "clientHirings", 2);
|
|
6253
6526
|
__decorateClass([
|
|
6254
|
-
(0,
|
|
6527
|
+
(0, import_typeorm72.OneToMany)(() => EscrowWallet, (escrowWallet) => escrowWallet.client)
|
|
6255
6528
|
], User.prototype, "clientEscrowWallets", 2);
|
|
6256
6529
|
__decorateClass([
|
|
6257
|
-
(0,
|
|
6530
|
+
(0, import_typeorm72.OneToMany)(() => ContractSummary, (contractSummary) => contractSummary.freelancerId, {
|
|
6258
6531
|
cascade: true
|
|
6259
6532
|
})
|
|
6260
6533
|
], User.prototype, "freelancerContractSummaries", 2);
|
|
6261
6534
|
__decorateClass([
|
|
6262
|
-
(0,
|
|
6535
|
+
(0, import_typeorm72.OneToMany)(() => Contract, (contract) => contract.freelancer)
|
|
6263
6536
|
], User.prototype, "freelancerContracts", 2);
|
|
6264
6537
|
__decorateClass([
|
|
6265
|
-
(0,
|
|
6538
|
+
(0, import_typeorm72.OneToMany)(() => Hiring, (hiring) => hiring.freelancer)
|
|
6266
6539
|
], User.prototype, "freelancerHirings", 2);
|
|
6267
6540
|
__decorateClass([
|
|
6268
|
-
(0,
|
|
6541
|
+
(0, import_typeorm72.OneToMany)(() => EscrowWallet, (escrowWallet) => escrowWallet.freelancer)
|
|
6269
6542
|
], User.prototype, "freelancerEscrowWallets", 2);
|
|
6270
6543
|
__decorateClass([
|
|
6271
|
-
(0,
|
|
6544
|
+
(0, import_typeorm72.OneToOne)(() => Signature, (signature) => signature.user)
|
|
6272
6545
|
], User.prototype, "signatures", 2);
|
|
6273
6546
|
__decorateClass([
|
|
6274
|
-
(0,
|
|
6547
|
+
(0, import_typeorm72.OneToMany)(() => Timesheet, (timesheet) => timesheet.client)
|
|
6275
6548
|
], User.prototype, "clientTimesheets", 2);
|
|
6276
6549
|
__decorateClass([
|
|
6277
|
-
(0,
|
|
6550
|
+
(0, import_typeorm72.OneToMany)(() => Timesheet, (timesheet) => timesheet.freelancer)
|
|
6278
6551
|
], User.prototype, "freelancerTimesheets", 2);
|
|
6279
6552
|
__decorateClass([
|
|
6280
|
-
(0,
|
|
6553
|
+
(0, import_typeorm72.OneToMany)(() => TimesheetLine, (timesheetLine) => timesheetLine.client)
|
|
6281
6554
|
], User.prototype, "clientTimesheetLine", 2);
|
|
6282
6555
|
__decorateClass([
|
|
6283
|
-
(0,
|
|
6556
|
+
(0, import_typeorm72.OneToMany)(() => Invoice, (invoice) => invoice.client)
|
|
6284
6557
|
], User.prototype, "clientInvoice", 2);
|
|
6285
6558
|
__decorateClass([
|
|
6286
|
-
(0,
|
|
6559
|
+
(0, import_typeorm72.OneToMany)(() => TimesheetLine, (timesheetLine) => timesheetLine.freelancer)
|
|
6287
6560
|
], User.prototype, "freelancerTimesheetLine", 2);
|
|
6288
6561
|
__decorateClass([
|
|
6289
|
-
(0,
|
|
6562
|
+
(0, import_typeorm72.OneToMany)(() => Invoice, (invoice) => invoice.freelancer)
|
|
6290
6563
|
], User.prototype, "freelancerInvoice", 2);
|
|
6291
6564
|
__decorateClass([
|
|
6292
|
-
(0,
|
|
6565
|
+
(0, import_typeorm72.OneToMany)(() => ClientCandidatePreference, (clientCandidatePreference) => clientCandidatePreference.client, { cascade: true })
|
|
6293
6566
|
], User.prototype, "clientPreferencesGiven", 2);
|
|
6294
6567
|
__decorateClass([
|
|
6295
|
-
(0,
|
|
6568
|
+
(0, import_typeorm72.OneToMany)(() => ClientCandidatePreference, (clientCandidatePreference) => clientCandidatePreference.candidate)
|
|
6296
6569
|
], User.prototype, "clientPreferencesReceived", 2);
|
|
6297
6570
|
__decorateClass([
|
|
6298
|
-
(0,
|
|
6571
|
+
(0, import_typeorm72.OneToMany)(() => Dispute, (dispute) => dispute.initiator, { cascade: true })
|
|
6299
6572
|
], User.prototype, "initiatedDisputes", 2);
|
|
6300
6573
|
__decorateClass([
|
|
6301
|
-
(0,
|
|
6574
|
+
(0, import_typeorm72.OneToMany)(() => Dispute, (dispute) => dispute.respondent, { cascade: true })
|
|
6302
6575
|
], User.prototype, "respondentDisputes", 2);
|
|
6303
6576
|
__decorateClass([
|
|
6304
|
-
(0,
|
|
6577
|
+
(0, import_typeorm72.OneToOne)(() => Wallet, (wallet) => wallet.user)
|
|
6305
6578
|
], User.prototype, "wallet", 2);
|
|
6306
6579
|
__decorateClass([
|
|
6307
|
-
(0,
|
|
6580
|
+
(0, import_typeorm72.OneToMany)(() => StripeTransaction, (stripeTransaction) => stripeTransaction.user, { cascade: true })
|
|
6308
6581
|
], User.prototype, "stripeTransactions", 2);
|
|
6309
6582
|
__decorateClass([
|
|
6310
|
-
(0,
|
|
6583
|
+
(0, import_typeorm72.OneToMany)(() => Dispute, (dispute) => dispute.client)
|
|
6311
6584
|
], User.prototype, "clientDisputes", 2);
|
|
6312
6585
|
__decorateClass([
|
|
6313
|
-
(0,
|
|
6586
|
+
(0, import_typeorm72.OneToMany)(() => Dispute, (dispute) => dispute.freelancer)
|
|
6314
6587
|
], User.prototype, "freelancerDisputes", 2);
|
|
6315
6588
|
__decorateClass([
|
|
6316
|
-
(0,
|
|
6589
|
+
(0, import_typeorm72.OneToMany)(() => InAppNotification, (inAppNotification) => inAppNotification.user)
|
|
6317
6590
|
], User.prototype, "inAppNotifications", 2);
|
|
6318
6591
|
User = __decorateClass([
|
|
6319
|
-
(0,
|
|
6592
|
+
(0, import_typeorm72.Entity)("users")
|
|
6320
6593
|
], User);
|
|
6321
6594
|
|
|
6322
6595
|
// src/modules/user/subadmin/dto/update-subadmin-account-status.dto.ts
|
|
@@ -12845,11 +13118,11 @@ var ChatRMQAdapter = (mode = "microservice") => {
|
|
|
12845
13118
|
};
|
|
12846
13119
|
|
|
12847
13120
|
// src/entities/sequence-generator.entity.ts
|
|
12848
|
-
var
|
|
13121
|
+
var import_typeorm73 = require("typeorm");
|
|
12849
13122
|
var SequenceGenerator = class extends BaseEntity {
|
|
12850
13123
|
};
|
|
12851
13124
|
__decorateClass([
|
|
12852
|
-
(0,
|
|
13125
|
+
(0, import_typeorm73.Column)({
|
|
12853
13126
|
name: "module",
|
|
12854
13127
|
type: "varchar",
|
|
12855
13128
|
length: 50,
|
|
@@ -12858,7 +13131,7 @@ __decorateClass([
|
|
|
12858
13131
|
})
|
|
12859
13132
|
], SequenceGenerator.prototype, "module", 2);
|
|
12860
13133
|
__decorateClass([
|
|
12861
|
-
(0,
|
|
13134
|
+
(0, import_typeorm73.Column)({
|
|
12862
13135
|
name: "prefix",
|
|
12863
13136
|
type: "varchar",
|
|
12864
13137
|
length: 10,
|
|
@@ -12867,7 +13140,7 @@ __decorateClass([
|
|
|
12867
13140
|
})
|
|
12868
13141
|
], SequenceGenerator.prototype, "prefix", 2);
|
|
12869
13142
|
__decorateClass([
|
|
12870
|
-
(0,
|
|
13143
|
+
(0, import_typeorm73.Column)({
|
|
12871
13144
|
name: "last_sequence",
|
|
12872
13145
|
type: "int",
|
|
12873
13146
|
nullable: false,
|
|
@@ -12875,7 +13148,7 @@ __decorateClass([
|
|
|
12875
13148
|
})
|
|
12876
13149
|
], SequenceGenerator.prototype, "lastSequence", 2);
|
|
12877
13150
|
__decorateClass([
|
|
12878
|
-
(0,
|
|
13151
|
+
(0, import_typeorm73.Column)({
|
|
12879
13152
|
name: "year",
|
|
12880
13153
|
type: "int",
|
|
12881
13154
|
nullable: true,
|
|
@@ -12883,11 +13156,11 @@ __decorateClass([
|
|
|
12883
13156
|
})
|
|
12884
13157
|
], SequenceGenerator.prototype, "year", 2);
|
|
12885
13158
|
SequenceGenerator = __decorateClass([
|
|
12886
|
-
(0,
|
|
13159
|
+
(0, import_typeorm73.Entity)("sequence_generators")
|
|
12887
13160
|
], SequenceGenerator);
|
|
12888
13161
|
|
|
12889
13162
|
// src/entities/question.entity.ts
|
|
12890
|
-
var
|
|
13163
|
+
var import_typeorm74 = require("typeorm");
|
|
12891
13164
|
var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
12892
13165
|
QuestionFor2["CLIENT"] = "CLIENT";
|
|
12893
13166
|
QuestionFor2["FREELANCER"] = "FREELANCER";
|
|
@@ -12896,16 +13169,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
|
12896
13169
|
var Question = class extends BaseEntity {
|
|
12897
13170
|
};
|
|
12898
13171
|
__decorateClass([
|
|
12899
|
-
(0,
|
|
13172
|
+
(0, import_typeorm74.Column)({ name: "question", type: "varchar" })
|
|
12900
13173
|
], Question.prototype, "question", 2);
|
|
12901
13174
|
__decorateClass([
|
|
12902
|
-
(0,
|
|
13175
|
+
(0, import_typeorm74.Column)({ name: "hint", type: "varchar", nullable: true })
|
|
12903
13176
|
], Question.prototype, "hint", 2);
|
|
12904
13177
|
__decorateClass([
|
|
12905
|
-
(0,
|
|
13178
|
+
(0, import_typeorm74.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
12906
13179
|
], Question.prototype, "slug", 2);
|
|
12907
13180
|
__decorateClass([
|
|
12908
|
-
(0,
|
|
13181
|
+
(0, import_typeorm74.Column)({
|
|
12909
13182
|
name: "question_for",
|
|
12910
13183
|
type: "enum",
|
|
12911
13184
|
enum: QuestionFor,
|
|
@@ -12913,45 +13186,45 @@ __decorateClass([
|
|
|
12913
13186
|
})
|
|
12914
13187
|
], Question.prototype, "questionFor", 2);
|
|
12915
13188
|
__decorateClass([
|
|
12916
|
-
(0,
|
|
13189
|
+
(0, import_typeorm74.Column)({ name: "type", type: "varchar", nullable: true })
|
|
12917
13190
|
], Question.prototype, "type", 2);
|
|
12918
13191
|
__decorateClass([
|
|
12919
|
-
(0,
|
|
13192
|
+
(0, import_typeorm74.Column)({ name: "options", type: "jsonb", nullable: true })
|
|
12920
13193
|
], Question.prototype, "options", 2);
|
|
12921
13194
|
__decorateClass([
|
|
12922
|
-
(0,
|
|
13195
|
+
(0, import_typeorm74.Column)({ name: "is_active", type: "boolean", default: false })
|
|
12923
13196
|
], Question.prototype, "isActive", 2);
|
|
12924
13197
|
Question = __decorateClass([
|
|
12925
|
-
(0,
|
|
13198
|
+
(0, import_typeorm74.Entity)("questions")
|
|
12926
13199
|
], Question);
|
|
12927
13200
|
|
|
12928
13201
|
// src/entities/skill.entity.ts
|
|
12929
|
-
var
|
|
13202
|
+
var import_typeorm75 = require("typeorm");
|
|
12930
13203
|
var Skill = class extends BaseEntity {
|
|
12931
13204
|
};
|
|
12932
13205
|
__decorateClass([
|
|
12933
|
-
(0,
|
|
13206
|
+
(0, import_typeorm75.Column)({ name: "name", type: "varchar", nullable: true })
|
|
12934
13207
|
], Skill.prototype, "name", 2);
|
|
12935
13208
|
__decorateClass([
|
|
12936
|
-
(0,
|
|
13209
|
+
(0, import_typeorm75.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
12937
13210
|
], Skill.prototype, "slug", 2);
|
|
12938
13211
|
__decorateClass([
|
|
12939
|
-
(0,
|
|
13212
|
+
(0, import_typeorm75.Column)({ name: "is_active", type: "boolean", default: false })
|
|
12940
13213
|
], Skill.prototype, "isActive", 2);
|
|
12941
13214
|
Skill = __decorateClass([
|
|
12942
|
-
(0,
|
|
13215
|
+
(0, import_typeorm75.Entity)("skills")
|
|
12943
13216
|
], Skill);
|
|
12944
13217
|
|
|
12945
13218
|
// src/entities/skill-catalog.entity.ts
|
|
12946
|
-
var
|
|
13219
|
+
var import_typeorm76 = require("typeorm");
|
|
12947
13220
|
var SkillCatalog = class extends BaseEntity {
|
|
12948
13221
|
};
|
|
12949
13222
|
__decorateClass([
|
|
12950
|
-
(0,
|
|
12951
|
-
(0,
|
|
13223
|
+
(0, import_typeorm76.Column)({ name: "canonical_name", type: "varchar", length: 100, unique: true }),
|
|
13224
|
+
(0, import_typeorm76.Index)()
|
|
12952
13225
|
], SkillCatalog.prototype, "canonicalName", 2);
|
|
12953
13226
|
__decorateClass([
|
|
12954
|
-
(0,
|
|
13227
|
+
(0, import_typeorm76.Column)({
|
|
12955
13228
|
name: "aliases",
|
|
12956
13229
|
type: "text",
|
|
12957
13230
|
array: true,
|
|
@@ -12959,20 +13232,20 @@ __decorateClass([
|
|
|
12959
13232
|
})
|
|
12960
13233
|
], SkillCatalog.prototype, "aliases", 2);
|
|
12961
13234
|
__decorateClass([
|
|
12962
|
-
(0,
|
|
13235
|
+
(0, import_typeorm76.Column)({
|
|
12963
13236
|
name: "variations",
|
|
12964
13237
|
type: "jsonb",
|
|
12965
13238
|
default: "{}"
|
|
12966
13239
|
})
|
|
12967
13240
|
], SkillCatalog.prototype, "variations", 2);
|
|
12968
13241
|
__decorateClass([
|
|
12969
|
-
(0,
|
|
13242
|
+
(0, import_typeorm76.Column)({ name: "category", type: "varchar", length: 50, nullable: true })
|
|
12970
13243
|
], SkillCatalog.prototype, "category", 2);
|
|
12971
13244
|
__decorateClass([
|
|
12972
|
-
(0,
|
|
13245
|
+
(0, import_typeorm76.Column)({ name: "parent_skill", type: "varchar", length: 100, nullable: true })
|
|
12973
13246
|
], SkillCatalog.prototype, "parentSkill", 2);
|
|
12974
13247
|
__decorateClass([
|
|
12975
|
-
(0,
|
|
13248
|
+
(0, import_typeorm76.Column)({
|
|
12976
13249
|
name: "related_skills",
|
|
12977
13250
|
type: "text",
|
|
12978
13251
|
array: true,
|
|
@@ -12980,68 +13253,68 @@ __decorateClass([
|
|
|
12980
13253
|
})
|
|
12981
13254
|
], SkillCatalog.prototype, "relatedSkills", 2);
|
|
12982
13255
|
__decorateClass([
|
|
12983
|
-
(0,
|
|
12984
|
-
(0,
|
|
13256
|
+
(0, import_typeorm76.Column)({ name: "usage_count", type: "integer", default: 0 }),
|
|
13257
|
+
(0, import_typeorm76.Index)()
|
|
12985
13258
|
], SkillCatalog.prototype, "usageCount", 2);
|
|
12986
13259
|
__decorateClass([
|
|
12987
|
-
(0,
|
|
13260
|
+
(0, import_typeorm76.Column)({ name: "is_verified", type: "boolean", default: false })
|
|
12988
13261
|
], SkillCatalog.prototype, "isVerified", 2);
|
|
12989
13262
|
__decorateClass([
|
|
12990
|
-
(0,
|
|
13263
|
+
(0, import_typeorm76.Column)({ name: "first_seen_date", type: "date" })
|
|
12991
13264
|
], SkillCatalog.prototype, "firstSeenDate", 2);
|
|
12992
13265
|
__decorateClass([
|
|
12993
|
-
(0,
|
|
13266
|
+
(0, import_typeorm76.Column)({ name: "last_updated_date", type: "date" })
|
|
12994
13267
|
], SkillCatalog.prototype, "lastUpdatedDate", 2);
|
|
12995
13268
|
__decorateClass([
|
|
12996
|
-
(0,
|
|
13269
|
+
(0, import_typeorm76.Column)({
|
|
12997
13270
|
name: "search_vector",
|
|
12998
13271
|
type: "tsvector",
|
|
12999
13272
|
nullable: true
|
|
13000
13273
|
})
|
|
13001
13274
|
], SkillCatalog.prototype, "searchVector", 2);
|
|
13002
13275
|
SkillCatalog = __decorateClass([
|
|
13003
|
-
(0,
|
|
13276
|
+
(0, import_typeorm76.Entity)("skill_catalogs")
|
|
13004
13277
|
], SkillCatalog);
|
|
13005
13278
|
|
|
13006
13279
|
// src/entities/job-role.entity.ts
|
|
13007
|
-
var
|
|
13280
|
+
var import_typeorm77 = require("typeorm");
|
|
13008
13281
|
var JobRoles = class extends BaseEntity {
|
|
13009
13282
|
};
|
|
13010
13283
|
__decorateClass([
|
|
13011
|
-
(0,
|
|
13284
|
+
(0, import_typeorm77.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
13012
13285
|
], JobRoles.prototype, "slug", 2);
|
|
13013
13286
|
__decorateClass([
|
|
13014
|
-
(0,
|
|
13287
|
+
(0, import_typeorm77.Column)({ name: "name", type: "varchar", nullable: true })
|
|
13015
13288
|
], JobRoles.prototype, "name", 2);
|
|
13016
13289
|
__decorateClass([
|
|
13017
|
-
(0,
|
|
13290
|
+
(0, import_typeorm77.Column)({ name: "is_active", type: "boolean", default: true })
|
|
13018
13291
|
], JobRoles.prototype, "isActive", 2);
|
|
13019
13292
|
JobRoles = __decorateClass([
|
|
13020
|
-
(0,
|
|
13293
|
+
(0, import_typeorm77.Entity)("job_roles")
|
|
13021
13294
|
], JobRoles);
|
|
13022
13295
|
|
|
13023
13296
|
// src/entities/cms.entity.ts
|
|
13024
|
-
var
|
|
13297
|
+
var import_typeorm78 = require("typeorm");
|
|
13025
13298
|
var Cms = class extends BaseEntity {
|
|
13026
13299
|
};
|
|
13027
13300
|
__decorateClass([
|
|
13028
|
-
(0,
|
|
13301
|
+
(0, import_typeorm78.Column)({ name: "title", type: "varchar", nullable: true })
|
|
13029
13302
|
], Cms.prototype, "title", 2);
|
|
13030
13303
|
__decorateClass([
|
|
13031
|
-
(0,
|
|
13304
|
+
(0, import_typeorm78.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
13032
13305
|
], Cms.prototype, "slug", 2);
|
|
13033
13306
|
__decorateClass([
|
|
13034
|
-
(0,
|
|
13307
|
+
(0, import_typeorm78.Column)({ name: "content", type: "varchar", nullable: true })
|
|
13035
13308
|
], Cms.prototype, "content", 2);
|
|
13036
13309
|
__decorateClass([
|
|
13037
|
-
(0,
|
|
13310
|
+
(0, import_typeorm78.Column)({ name: "is_active", type: "boolean", default: true })
|
|
13038
13311
|
], Cms.prototype, "isActive", 2);
|
|
13039
13312
|
Cms = __decorateClass([
|
|
13040
|
-
(0,
|
|
13313
|
+
(0, import_typeorm78.Entity)("cms")
|
|
13041
13314
|
], Cms);
|
|
13042
13315
|
|
|
13043
13316
|
// src/entities/lead.entity.ts
|
|
13044
|
-
var
|
|
13317
|
+
var import_typeorm79 = require("typeorm");
|
|
13045
13318
|
var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
|
|
13046
13319
|
CategoryEmum2["BUSINESS"] = "BUSINESS";
|
|
13047
13320
|
CategoryEmum2["FREELANCER"] = "FREELANCER";
|
|
@@ -13050,22 +13323,22 @@ var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
|
|
|
13050
13323
|
var Lead = class extends BaseEntity {
|
|
13051
13324
|
};
|
|
13052
13325
|
__decorateClass([
|
|
13053
|
-
(0,
|
|
13326
|
+
(0, import_typeorm79.Column)({ name: "name", type: "varchar", nullable: true })
|
|
13054
13327
|
], Lead.prototype, "name", 2);
|
|
13055
13328
|
__decorateClass([
|
|
13056
|
-
(0,
|
|
13329
|
+
(0, import_typeorm79.Column)({ name: "mobile_code", type: "varchar", nullable: true })
|
|
13057
13330
|
], Lead.prototype, "mobileCode", 2);
|
|
13058
13331
|
__decorateClass([
|
|
13059
|
-
(0,
|
|
13332
|
+
(0, import_typeorm79.Column)({ name: "mobile", type: "varchar", nullable: true })
|
|
13060
13333
|
], Lead.prototype, "mobile", 2);
|
|
13061
13334
|
__decorateClass([
|
|
13062
|
-
(0,
|
|
13335
|
+
(0, import_typeorm79.Column)({ name: "email", type: "varchar", nullable: true })
|
|
13063
13336
|
], Lead.prototype, "email", 2);
|
|
13064
13337
|
__decorateClass([
|
|
13065
|
-
(0,
|
|
13338
|
+
(0, import_typeorm79.Column)({ name: "description", type: "varchar", nullable: true })
|
|
13066
13339
|
], Lead.prototype, "description", 2);
|
|
13067
13340
|
__decorateClass([
|
|
13068
|
-
(0,
|
|
13341
|
+
(0, import_typeorm79.Column)({
|
|
13069
13342
|
name: "category",
|
|
13070
13343
|
type: "enum",
|
|
13071
13344
|
enum: CategoryEmum,
|
|
@@ -13073,129 +13346,129 @@ __decorateClass([
|
|
|
13073
13346
|
})
|
|
13074
13347
|
], Lead.prototype, "category", 2);
|
|
13075
13348
|
Lead = __decorateClass([
|
|
13076
|
-
(0,
|
|
13349
|
+
(0, import_typeorm79.Entity)("leads")
|
|
13077
13350
|
], Lead);
|
|
13078
13351
|
|
|
13079
13352
|
// src/entities/job-freelancer-recommendation.entity.ts
|
|
13080
|
-
var
|
|
13353
|
+
var import_typeorm80 = require("typeorm");
|
|
13081
13354
|
var JobFreelancerRecommendation = class {
|
|
13082
13355
|
};
|
|
13083
13356
|
__decorateClass([
|
|
13084
|
-
(0,
|
|
13357
|
+
(0, import_typeorm80.ViewColumn)({ name: "job_id" })
|
|
13085
13358
|
], JobFreelancerRecommendation.prototype, "jobId", 2);
|
|
13086
13359
|
__decorateClass([
|
|
13087
|
-
(0,
|
|
13360
|
+
(0, import_typeorm80.ViewColumn)({ name: "job_uuid" })
|
|
13088
13361
|
], JobFreelancerRecommendation.prototype, "jobUuid", 2);
|
|
13089
13362
|
__decorateClass([
|
|
13090
|
-
(0,
|
|
13363
|
+
(0, import_typeorm80.ViewColumn)({ name: "job_unique_id" })
|
|
13091
13364
|
], JobFreelancerRecommendation.prototype, "jobUniqueId", 2);
|
|
13092
13365
|
__decorateClass([
|
|
13093
|
-
(0,
|
|
13366
|
+
(0, import_typeorm80.ViewColumn)({ name: "job_role" })
|
|
13094
13367
|
], JobFreelancerRecommendation.prototype, "jobRole", 2);
|
|
13095
13368
|
__decorateClass([
|
|
13096
|
-
(0,
|
|
13369
|
+
(0, import_typeorm80.ViewColumn)({ name: "job_openings" })
|
|
13097
13370
|
], JobFreelancerRecommendation.prototype, "jobOpenings", 2);
|
|
13098
13371
|
__decorateClass([
|
|
13099
|
-
(0,
|
|
13372
|
+
(0, import_typeorm80.ViewColumn)({ name: "job_location" })
|
|
13100
13373
|
], JobFreelancerRecommendation.prototype, "jobLocation", 2);
|
|
13101
13374
|
__decorateClass([
|
|
13102
|
-
(0,
|
|
13375
|
+
(0, import_typeorm80.ViewColumn)({ name: "job_currency" })
|
|
13103
13376
|
], JobFreelancerRecommendation.prototype, "jobCurrency", 2);
|
|
13104
13377
|
__decorateClass([
|
|
13105
|
-
(0,
|
|
13378
|
+
(0, import_typeorm80.ViewColumn)({ name: "job_salary_from" })
|
|
13106
13379
|
], JobFreelancerRecommendation.prototype, "jobSalaryFrom", 2);
|
|
13107
13380
|
__decorateClass([
|
|
13108
|
-
(0,
|
|
13381
|
+
(0, import_typeorm80.ViewColumn)({ name: "job_salary_to" })
|
|
13109
13382
|
], JobFreelancerRecommendation.prototype, "jobSalaryTo", 2);
|
|
13110
13383
|
__decorateClass([
|
|
13111
|
-
(0,
|
|
13384
|
+
(0, import_typeorm80.ViewColumn)({ name: "job_employment_type" })
|
|
13112
13385
|
], JobFreelancerRecommendation.prototype, "jobEmploymentType", 2);
|
|
13113
13386
|
__decorateClass([
|
|
13114
|
-
(0,
|
|
13387
|
+
(0, import_typeorm80.ViewColumn)({ name: "application_received" })
|
|
13115
13388
|
], JobFreelancerRecommendation.prototype, "applicationReceived", 2);
|
|
13116
13389
|
__decorateClass([
|
|
13117
|
-
(0,
|
|
13390
|
+
(0, import_typeorm80.ViewColumn)({ name: "job_posted_at" })
|
|
13118
13391
|
], JobFreelancerRecommendation.prototype, "jobPostedAt", 2);
|
|
13119
13392
|
__decorateClass([
|
|
13120
|
-
(0,
|
|
13393
|
+
(0, import_typeorm80.ViewColumn)({ name: "freelancer_id" })
|
|
13121
13394
|
], JobFreelancerRecommendation.prototype, "freelancerId", 2);
|
|
13122
13395
|
__decorateClass([
|
|
13123
|
-
(0,
|
|
13396
|
+
(0, import_typeorm80.ViewColumn)({ name: "freelancer_uuid" })
|
|
13124
13397
|
], JobFreelancerRecommendation.prototype, "freelancerUuid", 2);
|
|
13125
13398
|
__decorateClass([
|
|
13126
|
-
(0,
|
|
13399
|
+
(0, import_typeorm80.ViewColumn)({ name: "freelancer_unique_id" })
|
|
13127
13400
|
], JobFreelancerRecommendation.prototype, "freelancerUniqueId", 2);
|
|
13128
13401
|
__decorateClass([
|
|
13129
|
-
(0,
|
|
13402
|
+
(0, import_typeorm80.ViewColumn)({ name: "freelancer_first_name" })
|
|
13130
13403
|
], JobFreelancerRecommendation.prototype, "freelancerFirstName", 2);
|
|
13131
13404
|
__decorateClass([
|
|
13132
|
-
(0,
|
|
13405
|
+
(0, import_typeorm80.ViewColumn)({ name: "freelancer_last_name" })
|
|
13133
13406
|
], JobFreelancerRecommendation.prototype, "freelancerLastName", 2);
|
|
13134
13407
|
__decorateClass([
|
|
13135
|
-
(0,
|
|
13408
|
+
(0, import_typeorm80.ViewColumn)({ name: "freelancer_email" })
|
|
13136
13409
|
], JobFreelancerRecommendation.prototype, "freelancerEmail", 2);
|
|
13137
13410
|
__decorateClass([
|
|
13138
|
-
(0,
|
|
13411
|
+
(0, import_typeorm80.ViewColumn)({ name: "freelancer_profile_picture" })
|
|
13139
13412
|
], JobFreelancerRecommendation.prototype, "freelancerProfilePicture", 2);
|
|
13140
13413
|
__decorateClass([
|
|
13141
|
-
(0,
|
|
13414
|
+
(0, import_typeorm80.ViewColumn)({ name: "freelancer_is_social" })
|
|
13142
13415
|
], JobFreelancerRecommendation.prototype, "freelancerIsSocial", 2);
|
|
13143
13416
|
__decorateClass([
|
|
13144
|
-
(0,
|
|
13417
|
+
(0, import_typeorm80.ViewColumn)({ name: "freelancer_created_at" })
|
|
13145
13418
|
], JobFreelancerRecommendation.prototype, "freelancerCreatedAt", 2);
|
|
13146
13419
|
__decorateClass([
|
|
13147
|
-
(0,
|
|
13420
|
+
(0, import_typeorm80.ViewColumn)({ name: "freelancer_designation" })
|
|
13148
13421
|
], JobFreelancerRecommendation.prototype, "freelancerDesignation", 2);
|
|
13149
13422
|
__decorateClass([
|
|
13150
|
-
(0,
|
|
13423
|
+
(0, import_typeorm80.ViewColumn)({ name: "freelancer_experience" })
|
|
13151
13424
|
], JobFreelancerRecommendation.prototype, "freelancerExperience", 2);
|
|
13152
13425
|
__decorateClass([
|
|
13153
|
-
(0,
|
|
13426
|
+
(0, import_typeorm80.ViewColumn)({ name: "freelancer_expertshub_verified" })
|
|
13154
13427
|
], JobFreelancerRecommendation.prototype, "freelancerExpertshubVerified", 2);
|
|
13155
13428
|
__decorateClass([
|
|
13156
|
-
(0,
|
|
13429
|
+
(0, import_typeorm80.ViewColumn)({ name: "freelancer_hourly_compensation" })
|
|
13157
13430
|
], JobFreelancerRecommendation.prototype, "freelancerHourlyCompensation", 2);
|
|
13158
13431
|
__decorateClass([
|
|
13159
|
-
(0,
|
|
13432
|
+
(0, import_typeorm80.ViewColumn)({ name: "freelancer_country_name" })
|
|
13160
13433
|
], JobFreelancerRecommendation.prototype, "freelancerCountryName", 2);
|
|
13161
13434
|
__decorateClass([
|
|
13162
|
-
(0,
|
|
13435
|
+
(0, import_typeorm80.ViewColumn)({ name: "freelancer_country_iso_code" })
|
|
13163
13436
|
], JobFreelancerRecommendation.prototype, "freelancerCountryIsoCode", 2);
|
|
13164
13437
|
__decorateClass([
|
|
13165
|
-
(0,
|
|
13438
|
+
(0, import_typeorm80.ViewColumn)({ name: "client_id" })
|
|
13166
13439
|
], JobFreelancerRecommendation.prototype, "clientId", 2);
|
|
13167
13440
|
__decorateClass([
|
|
13168
|
-
(0,
|
|
13441
|
+
(0, import_typeorm80.ViewColumn)({ name: "client_uuid" })
|
|
13169
13442
|
], JobFreelancerRecommendation.prototype, "clientUuid", 2);
|
|
13170
13443
|
__decorateClass([
|
|
13171
|
-
(0,
|
|
13444
|
+
(0, import_typeorm80.ViewColumn)({ name: "client_first_name" })
|
|
13172
13445
|
], JobFreelancerRecommendation.prototype, "clientFirstName", 2);
|
|
13173
13446
|
__decorateClass([
|
|
13174
|
-
(0,
|
|
13447
|
+
(0, import_typeorm80.ViewColumn)({ name: "client_last_name" })
|
|
13175
13448
|
], JobFreelancerRecommendation.prototype, "clientLastName", 2);
|
|
13176
13449
|
__decorateClass([
|
|
13177
|
-
(0,
|
|
13450
|
+
(0, import_typeorm80.ViewColumn)({ name: "client_email" })
|
|
13178
13451
|
], JobFreelancerRecommendation.prototype, "clientEmail", 2);
|
|
13179
13452
|
__decorateClass([
|
|
13180
|
-
(0,
|
|
13453
|
+
(0, import_typeorm80.ViewColumn)({ name: "client_company_logo" })
|
|
13181
13454
|
], JobFreelancerRecommendation.prototype, "clientCompanyLogo", 2);
|
|
13182
13455
|
__decorateClass([
|
|
13183
|
-
(0,
|
|
13456
|
+
(0, import_typeorm80.ViewColumn)({ name: "client_company_name" })
|
|
13184
13457
|
], JobFreelancerRecommendation.prototype, "clientCompanyName", 2);
|
|
13185
13458
|
__decorateClass([
|
|
13186
|
-
(0,
|
|
13459
|
+
(0, import_typeorm80.ViewColumn)({ name: "matching_skills" })
|
|
13187
13460
|
], JobFreelancerRecommendation.prototype, "matchingSkills", 2);
|
|
13188
13461
|
__decorateClass([
|
|
13189
|
-
(0,
|
|
13462
|
+
(0, import_typeorm80.ViewColumn)({ name: "matching_skills_count" })
|
|
13190
13463
|
], JobFreelancerRecommendation.prototype, "matchingSkillsCount", 2);
|
|
13191
13464
|
__decorateClass([
|
|
13192
|
-
(0,
|
|
13465
|
+
(0, import_typeorm80.ViewColumn)({ name: "required_skills" })
|
|
13193
13466
|
], JobFreelancerRecommendation.prototype, "requiredSkills", 2);
|
|
13194
13467
|
__decorateClass([
|
|
13195
|
-
(0,
|
|
13468
|
+
(0, import_typeorm80.ViewColumn)({ name: "required_skills_count" })
|
|
13196
13469
|
], JobFreelancerRecommendation.prototype, "requiredSkillsCount", 2);
|
|
13197
13470
|
JobFreelancerRecommendation = __decorateClass([
|
|
13198
|
-
(0,
|
|
13471
|
+
(0, import_typeorm80.ViewEntity)({
|
|
13199
13472
|
name: "job_freelancer_recommendations",
|
|
13200
13473
|
materialized: true,
|
|
13201
13474
|
synchronize: false
|
|
@@ -13204,32 +13477,32 @@ JobFreelancerRecommendation = __decorateClass([
|
|
|
13204
13477
|
], JobFreelancerRecommendation);
|
|
13205
13478
|
|
|
13206
13479
|
// src/entities/job-freelancer-recommendation-v2.entity.ts
|
|
13207
|
-
var
|
|
13480
|
+
var import_typeorm81 = require("typeorm");
|
|
13208
13481
|
var JobFreelancerRecommendationV2 = class {
|
|
13209
13482
|
};
|
|
13210
13483
|
__decorateClass([
|
|
13211
|
-
(0,
|
|
13484
|
+
(0, import_typeorm81.ViewColumn)({ name: "job_id" })
|
|
13212
13485
|
], JobFreelancerRecommendationV2.prototype, "jobId", 2);
|
|
13213
13486
|
__decorateClass([
|
|
13214
|
-
(0,
|
|
13487
|
+
(0, import_typeorm81.ViewColumn)({ name: "job_owner_id" })
|
|
13215
13488
|
], JobFreelancerRecommendationV2.prototype, "jobOwnerId", 2);
|
|
13216
13489
|
__decorateClass([
|
|
13217
|
-
(0,
|
|
13490
|
+
(0, import_typeorm81.ViewColumn)({ name: "freelancer_id" })
|
|
13218
13491
|
], JobFreelancerRecommendationV2.prototype, "freelancerId", 2);
|
|
13219
13492
|
__decorateClass([
|
|
13220
|
-
(0,
|
|
13493
|
+
(0, import_typeorm81.ViewColumn)({ name: "matching_skills" })
|
|
13221
13494
|
], JobFreelancerRecommendationV2.prototype, "matchingSkills", 2);
|
|
13222
13495
|
__decorateClass([
|
|
13223
|
-
(0,
|
|
13496
|
+
(0, import_typeorm81.ViewColumn)({ name: "matching_skills_count" })
|
|
13224
13497
|
], JobFreelancerRecommendationV2.prototype, "matchingSkillsCount", 2);
|
|
13225
13498
|
__decorateClass([
|
|
13226
|
-
(0,
|
|
13499
|
+
(0, import_typeorm81.ViewColumn)({ name: "required_skills" })
|
|
13227
13500
|
], JobFreelancerRecommendationV2.prototype, "requiredSkills", 2);
|
|
13228
13501
|
__decorateClass([
|
|
13229
|
-
(0,
|
|
13502
|
+
(0, import_typeorm81.ViewColumn)({ name: "required_skills_count" })
|
|
13230
13503
|
], JobFreelancerRecommendationV2.prototype, "requiredSkillsCount", 2);
|
|
13231
13504
|
JobFreelancerRecommendationV2 = __decorateClass([
|
|
13232
|
-
(0,
|
|
13505
|
+
(0, import_typeorm81.ViewEntity)({
|
|
13233
13506
|
name: "job_freelancer_recommendations_v2",
|
|
13234
13507
|
materialized: true,
|
|
13235
13508
|
synchronize: false
|
|
@@ -13238,74 +13511,74 @@ JobFreelancerRecommendationV2 = __decorateClass([
|
|
|
13238
13511
|
], JobFreelancerRecommendationV2);
|
|
13239
13512
|
|
|
13240
13513
|
// src/entities/client-freelancer-recommendation.entity.ts
|
|
13241
|
-
var
|
|
13514
|
+
var import_typeorm82 = require("typeorm");
|
|
13242
13515
|
var ClientFreelancerRecommendation = class {
|
|
13243
13516
|
};
|
|
13244
13517
|
__decorateClass([
|
|
13245
|
-
(0,
|
|
13518
|
+
(0, import_typeorm82.ViewColumn)({ name: "client_id" })
|
|
13246
13519
|
], ClientFreelancerRecommendation.prototype, "clientId", 2);
|
|
13247
13520
|
__decorateClass([
|
|
13248
|
-
(0,
|
|
13521
|
+
(0, import_typeorm82.ViewColumn)({ name: "client_uuid" })
|
|
13249
13522
|
], ClientFreelancerRecommendation.prototype, "clientUuid", 2);
|
|
13250
13523
|
__decorateClass([
|
|
13251
|
-
(0,
|
|
13524
|
+
(0, import_typeorm82.ViewColumn)({ name: "freelancer_id" })
|
|
13252
13525
|
], ClientFreelancerRecommendation.prototype, "freelancerId", 2);
|
|
13253
13526
|
__decorateClass([
|
|
13254
|
-
(0,
|
|
13527
|
+
(0, import_typeorm82.ViewColumn)({ name: "freelancer_uuid" })
|
|
13255
13528
|
], ClientFreelancerRecommendation.prototype, "freelancerUuid", 2);
|
|
13256
13529
|
__decorateClass([
|
|
13257
|
-
(0,
|
|
13530
|
+
(0, import_typeorm82.ViewColumn)({ name: "freelancer_unique_id" })
|
|
13258
13531
|
], ClientFreelancerRecommendation.prototype, "freelancerUniqueId", 2);
|
|
13259
13532
|
__decorateClass([
|
|
13260
|
-
(0,
|
|
13533
|
+
(0, import_typeorm82.ViewColumn)({ name: "freelancer_first_name" })
|
|
13261
13534
|
], ClientFreelancerRecommendation.prototype, "freelancerFirstName", 2);
|
|
13262
13535
|
__decorateClass([
|
|
13263
|
-
(0,
|
|
13536
|
+
(0, import_typeorm82.ViewColumn)({ name: "freelancer_last_name" })
|
|
13264
13537
|
], ClientFreelancerRecommendation.prototype, "freelancerLastName", 2);
|
|
13265
13538
|
__decorateClass([
|
|
13266
|
-
(0,
|
|
13539
|
+
(0, import_typeorm82.ViewColumn)({ name: "freelancer_email" })
|
|
13267
13540
|
], ClientFreelancerRecommendation.prototype, "freelancerEmail", 2);
|
|
13268
13541
|
__decorateClass([
|
|
13269
|
-
(0,
|
|
13542
|
+
(0, import_typeorm82.ViewColumn)({ name: "freelancer_profile_picture" })
|
|
13270
13543
|
], ClientFreelancerRecommendation.prototype, "freelancerProfilePicture", 2);
|
|
13271
13544
|
__decorateClass([
|
|
13272
|
-
(0,
|
|
13545
|
+
(0, import_typeorm82.ViewColumn)({ name: "freelancer_is_social" })
|
|
13273
13546
|
], ClientFreelancerRecommendation.prototype, "freelancerIsSocial", 2);
|
|
13274
13547
|
__decorateClass([
|
|
13275
|
-
(0,
|
|
13548
|
+
(0, import_typeorm82.ViewColumn)({ name: "freelancer_created_at" })
|
|
13276
13549
|
], ClientFreelancerRecommendation.prototype, "freelancerCreatedAt", 2);
|
|
13277
13550
|
__decorateClass([
|
|
13278
|
-
(0,
|
|
13551
|
+
(0, import_typeorm82.ViewColumn)({ name: "freelancer_designation" })
|
|
13279
13552
|
], ClientFreelancerRecommendation.prototype, "freelancerDesignation", 2);
|
|
13280
13553
|
__decorateClass([
|
|
13281
|
-
(0,
|
|
13554
|
+
(0, import_typeorm82.ViewColumn)({ name: "freelancer_experience" })
|
|
13282
13555
|
], ClientFreelancerRecommendation.prototype, "freelancerExperience", 2);
|
|
13283
13556
|
__decorateClass([
|
|
13284
|
-
(0,
|
|
13557
|
+
(0, import_typeorm82.ViewColumn)({ name: "freelancer_expertshub_verified" })
|
|
13285
13558
|
], ClientFreelancerRecommendation.prototype, "freelancerExpertshubVerified", 2);
|
|
13286
13559
|
__decorateClass([
|
|
13287
|
-
(0,
|
|
13560
|
+
(0, import_typeorm82.ViewColumn)({ name: "freelancer_hourly_compensation" })
|
|
13288
13561
|
], ClientFreelancerRecommendation.prototype, "freelancerHourlyCompensation", 2);
|
|
13289
13562
|
__decorateClass([
|
|
13290
|
-
(0,
|
|
13563
|
+
(0, import_typeorm82.ViewColumn)({ name: "freelancer_country_name" })
|
|
13291
13564
|
], ClientFreelancerRecommendation.prototype, "freelancerCountryName", 2);
|
|
13292
13565
|
__decorateClass([
|
|
13293
|
-
(0,
|
|
13566
|
+
(0, import_typeorm82.ViewColumn)({ name: "freelancer_country_iso_code" })
|
|
13294
13567
|
], ClientFreelancerRecommendation.prototype, "freelancerCountryIsoCode", 2);
|
|
13295
13568
|
__decorateClass([
|
|
13296
|
-
(0,
|
|
13569
|
+
(0, import_typeorm82.ViewColumn)({ name: "matching_skills" })
|
|
13297
13570
|
], ClientFreelancerRecommendation.prototype, "matchingSkills", 2);
|
|
13298
13571
|
__decorateClass([
|
|
13299
|
-
(0,
|
|
13572
|
+
(0, import_typeorm82.ViewColumn)({ name: "matching_skills_count" })
|
|
13300
13573
|
], ClientFreelancerRecommendation.prototype, "matchingSkillsCount", 2);
|
|
13301
13574
|
__decorateClass([
|
|
13302
|
-
(0,
|
|
13575
|
+
(0, import_typeorm82.ViewColumn)({ name: "required_skills" })
|
|
13303
13576
|
], ClientFreelancerRecommendation.prototype, "requiredSkills", 2);
|
|
13304
13577
|
__decorateClass([
|
|
13305
|
-
(0,
|
|
13578
|
+
(0, import_typeorm82.ViewColumn)({ name: "required_skills_count" })
|
|
13306
13579
|
], ClientFreelancerRecommendation.prototype, "requiredSkillsCount", 2);
|
|
13307
13580
|
ClientFreelancerRecommendation = __decorateClass([
|
|
13308
|
-
(0,
|
|
13581
|
+
(0, import_typeorm82.ViewEntity)({
|
|
13309
13582
|
name: "client_freelancer_recommendations",
|
|
13310
13583
|
materialized: true,
|
|
13311
13584
|
synchronize: false
|
|
@@ -13314,7 +13587,7 @@ ClientFreelancerRecommendation = __decorateClass([
|
|
|
13314
13587
|
], ClientFreelancerRecommendation);
|
|
13315
13588
|
|
|
13316
13589
|
// src/entities/commission.entity.ts
|
|
13317
|
-
var
|
|
13590
|
+
var import_typeorm83 = require("typeorm");
|
|
13318
13591
|
var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
|
|
13319
13592
|
CommissionTypeEnum2["PERCENTAGE"] = "PERCENTAGE";
|
|
13320
13593
|
CommissionTypeEnum2["FLAT"] = "FLAT";
|
|
@@ -13323,7 +13596,7 @@ var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
|
|
|
13323
13596
|
var Commission = class extends BaseEntity {
|
|
13324
13597
|
};
|
|
13325
13598
|
__decorateClass([
|
|
13326
|
-
(0,
|
|
13599
|
+
(0, import_typeorm83.Column)({
|
|
13327
13600
|
name: "freelancer_commission_type",
|
|
13328
13601
|
type: "enum",
|
|
13329
13602
|
enum: CommissionTypeEnum,
|
|
@@ -13331,10 +13604,10 @@ __decorateClass([
|
|
|
13331
13604
|
})
|
|
13332
13605
|
], Commission.prototype, "freelancerCommissionType", 2);
|
|
13333
13606
|
__decorateClass([
|
|
13334
|
-
(0,
|
|
13607
|
+
(0, import_typeorm83.Column)({ name: "freelancer_commission", type: "integer", default: 0 })
|
|
13335
13608
|
], Commission.prototype, "freelancerCommission", 2);
|
|
13336
13609
|
__decorateClass([
|
|
13337
|
-
(0,
|
|
13610
|
+
(0, import_typeorm83.Column)({
|
|
13338
13611
|
name: "client_commission_type",
|
|
13339
13612
|
type: "enum",
|
|
13340
13613
|
enum: CommissionTypeEnum,
|
|
@@ -13342,50 +13615,50 @@ __decorateClass([
|
|
|
13342
13615
|
})
|
|
13343
13616
|
], Commission.prototype, "clientCommissionType", 2);
|
|
13344
13617
|
__decorateClass([
|
|
13345
|
-
(0,
|
|
13618
|
+
(0, import_typeorm83.Column)({ name: "client_commission", type: "integer", default: 0 })
|
|
13346
13619
|
], Commission.prototype, "clientCommission", 2);
|
|
13347
13620
|
Commission = __decorateClass([
|
|
13348
|
-
(0,
|
|
13621
|
+
(0, import_typeorm83.Entity)("commissions")
|
|
13349
13622
|
], Commission);
|
|
13350
13623
|
|
|
13351
13624
|
// src/entities/calendly-meeting-log.entity.ts
|
|
13352
|
-
var
|
|
13625
|
+
var import_typeorm84 = require("typeorm");
|
|
13353
13626
|
var CalendlyMeetingLog = class extends BaseEntity {
|
|
13354
13627
|
};
|
|
13355
13628
|
__decorateClass([
|
|
13356
|
-
(0,
|
|
13357
|
-
(0,
|
|
13629
|
+
(0, import_typeorm84.Column)({ name: "calendly_event_id", type: "varchar", nullable: true }),
|
|
13630
|
+
(0, import_typeorm84.Index)()
|
|
13358
13631
|
], CalendlyMeetingLog.prototype, "calendlyEventId", 2);
|
|
13359
13632
|
__decorateClass([
|
|
13360
|
-
(0,
|
|
13633
|
+
(0, import_typeorm84.Column)({ name: "calendly_event_type", type: "varchar", nullable: true })
|
|
13361
13634
|
], CalendlyMeetingLog.prototype, "calendlyEventType", 2);
|
|
13362
13635
|
__decorateClass([
|
|
13363
|
-
(0,
|
|
13636
|
+
(0, import_typeorm84.Column)({ name: "raw_webhook_data", type: "jsonb", nullable: true })
|
|
13364
13637
|
], CalendlyMeetingLog.prototype, "rawWebhookData", 2);
|
|
13365
13638
|
CalendlyMeetingLog = __decorateClass([
|
|
13366
|
-
(0,
|
|
13639
|
+
(0, import_typeorm84.Entity)("calendly_meeting_logs")
|
|
13367
13640
|
], CalendlyMeetingLog);
|
|
13368
13641
|
|
|
13369
13642
|
// src/entities/zoom-meeting-log.entity.ts
|
|
13370
|
-
var
|
|
13643
|
+
var import_typeorm85 = require("typeorm");
|
|
13371
13644
|
var ZoomMeetingLog = class extends BaseEntity {
|
|
13372
13645
|
};
|
|
13373
13646
|
__decorateClass([
|
|
13374
|
-
(0,
|
|
13375
|
-
(0,
|
|
13647
|
+
(0, import_typeorm85.Column)({ name: "zoom_meeting_id", type: "varchar", nullable: true }),
|
|
13648
|
+
(0, import_typeorm85.Index)()
|
|
13376
13649
|
], ZoomMeetingLog.prototype, "zoomMeetingId", 2);
|
|
13377
13650
|
__decorateClass([
|
|
13378
|
-
(0,
|
|
13651
|
+
(0, import_typeorm85.Column)({ name: "zoom_event_type", type: "varchar", nullable: true })
|
|
13379
13652
|
], ZoomMeetingLog.prototype, "zoomEventType", 2);
|
|
13380
13653
|
__decorateClass([
|
|
13381
|
-
(0,
|
|
13654
|
+
(0, import_typeorm85.Column)({ name: "raw_webhook_data", type: "jsonb", nullable: true })
|
|
13382
13655
|
], ZoomMeetingLog.prototype, "rawWebhookData", 2);
|
|
13383
13656
|
ZoomMeetingLog = __decorateClass([
|
|
13384
|
-
(0,
|
|
13657
|
+
(0, import_typeorm85.Entity)("zoom_meeting_logs")
|
|
13385
13658
|
], ZoomMeetingLog);
|
|
13386
13659
|
|
|
13387
13660
|
// src/entities/docuseal.entity.ts
|
|
13388
|
-
var
|
|
13661
|
+
var import_typeorm86 = require("typeorm");
|
|
13389
13662
|
var DocuSealTypeEnum = /* @__PURE__ */ ((DocuSealTypeEnum2) => {
|
|
13390
13663
|
DocuSealTypeEnum2["FREELANCER_SERVICE_AGGREMENT"] = "FREELANCER_SERVICE_AGGREMENT";
|
|
13391
13664
|
DocuSealTypeEnum2["CLIENT_SERVICE_AGGREMENT"] = "CLIENT_SERVICE_AGGREMENT";
|
|
@@ -13395,132 +13668,132 @@ var DocuSealTypeEnum = /* @__PURE__ */ ((DocuSealTypeEnum2) => {
|
|
|
13395
13668
|
var DocuSeal = class extends BaseEntity {
|
|
13396
13669
|
};
|
|
13397
13670
|
__decorateClass([
|
|
13398
|
-
(0,
|
|
13399
|
-
(0,
|
|
13671
|
+
(0, import_typeorm86.Column)({ name: "reference_id", type: "integer", nullable: false }),
|
|
13672
|
+
(0, import_typeorm86.Index)()
|
|
13400
13673
|
], DocuSeal.prototype, "referenceId", 2);
|
|
13401
13674
|
__decorateClass([
|
|
13402
|
-
(0,
|
|
13403
|
-
(0,
|
|
13675
|
+
(0, import_typeorm86.Column)({ name: "submitter_id", type: "integer", nullable: true }),
|
|
13676
|
+
(0, import_typeorm86.Index)()
|
|
13404
13677
|
], DocuSeal.prototype, "submitterId", 2);
|
|
13405
13678
|
__decorateClass([
|
|
13406
|
-
(0,
|
|
13679
|
+
(0, import_typeorm86.Column)({ name: "submitter_response", type: "jsonb", nullable: true })
|
|
13407
13680
|
], DocuSeal.prototype, "submitterResponse", 2);
|
|
13408
13681
|
__decorateClass([
|
|
13409
|
-
(0,
|
|
13682
|
+
(0, import_typeorm86.Column)({ name: "webhook_response", type: "jsonb", nullable: true })
|
|
13410
13683
|
], DocuSeal.prototype, "webhookResponse", 2);
|
|
13411
13684
|
__decorateClass([
|
|
13412
|
-
(0,
|
|
13685
|
+
(0, import_typeorm86.Column)({ name: "type", type: "enum", enum: DocuSealTypeEnum, nullable: true })
|
|
13413
13686
|
], DocuSeal.prototype, "type", 2);
|
|
13414
13687
|
DocuSeal = __decorateClass([
|
|
13415
|
-
(0,
|
|
13688
|
+
(0, import_typeorm86.Entity)("docuseal")
|
|
13416
13689
|
], DocuSeal);
|
|
13417
13690
|
|
|
13418
13691
|
// src/entities/stripe-logs.entity.ts
|
|
13419
|
-
var
|
|
13692
|
+
var import_typeorm87 = require("typeorm");
|
|
13420
13693
|
var StripeLog = class extends BaseEntity {
|
|
13421
13694
|
};
|
|
13422
13695
|
__decorateClass([
|
|
13423
|
-
(0,
|
|
13696
|
+
(0, import_typeorm87.Column)({ name: "stripe_event_id", type: "varchar", nullable: true })
|
|
13424
13697
|
], StripeLog.prototype, "stripeEventId", 2);
|
|
13425
13698
|
__decorateClass([
|
|
13426
|
-
(0,
|
|
13699
|
+
(0, import_typeorm87.Column)({ name: "event_type", type: "varchar", nullable: true })
|
|
13427
13700
|
], StripeLog.prototype, "eventType", 2);
|
|
13428
13701
|
__decorateClass([
|
|
13429
|
-
(0,
|
|
13702
|
+
(0, import_typeorm87.Column)({ name: "stripe_account_id", type: "varchar", nullable: true })
|
|
13430
13703
|
], StripeLog.prototype, "stripeAccountId", 2);
|
|
13431
13704
|
__decorateClass([
|
|
13432
|
-
(0,
|
|
13705
|
+
(0, import_typeorm87.Column)({ name: "raw_webhook_data", type: "jsonb", nullable: true })
|
|
13433
13706
|
], StripeLog.prototype, "rawWebhookData", 2);
|
|
13434
13707
|
StripeLog = __decorateClass([
|
|
13435
|
-
(0,
|
|
13708
|
+
(0, import_typeorm87.Entity)("stripe_logs")
|
|
13436
13709
|
], StripeLog);
|
|
13437
13710
|
|
|
13438
13711
|
// src/entities/recommendation-weightage-config.entity.ts
|
|
13439
|
-
var
|
|
13712
|
+
var import_typeorm88 = require("typeorm");
|
|
13440
13713
|
var RecommendationWeightageConfig = class extends BaseEntity {
|
|
13441
13714
|
};
|
|
13442
13715
|
__decorateClass([
|
|
13443
|
-
(0,
|
|
13716
|
+
(0, import_typeorm88.Column)({
|
|
13444
13717
|
type: "varchar",
|
|
13445
13718
|
length: 100,
|
|
13446
13719
|
unique: true,
|
|
13447
13720
|
comment: "Unique key identifier (e.g., full_time_weights, hourly_weights)"
|
|
13448
13721
|
}),
|
|
13449
|
-
(0,
|
|
13722
|
+
(0, import_typeorm88.Index)()
|
|
13450
13723
|
], RecommendationWeightageConfig.prototype, "key", 2);
|
|
13451
13724
|
__decorateClass([
|
|
13452
|
-
(0,
|
|
13725
|
+
(0, import_typeorm88.Column)({
|
|
13453
13726
|
type: "jsonb",
|
|
13454
13727
|
comment: "JSON object containing weight values",
|
|
13455
13728
|
nullable: true
|
|
13456
13729
|
})
|
|
13457
13730
|
], RecommendationWeightageConfig.prototype, "value", 2);
|
|
13458
13731
|
__decorateClass([
|
|
13459
|
-
(0,
|
|
13732
|
+
(0, import_typeorm88.Column)({ name: "is_active", type: "boolean", default: true })
|
|
13460
13733
|
], RecommendationWeightageConfig.prototype, "isActive", 2);
|
|
13461
13734
|
RecommendationWeightageConfig = __decorateClass([
|
|
13462
|
-
(0,
|
|
13735
|
+
(0, import_typeorm88.Entity)("recommendation_weightage_configs")
|
|
13463
13736
|
], RecommendationWeightageConfig);
|
|
13464
13737
|
|
|
13465
13738
|
// src/entities/global-setting.entity.ts
|
|
13466
|
-
var
|
|
13739
|
+
var import_typeorm89 = require("typeorm");
|
|
13467
13740
|
var GlobalSetting = class extends BaseEntity {
|
|
13468
13741
|
};
|
|
13469
13742
|
__decorateClass([
|
|
13470
|
-
(0,
|
|
13743
|
+
(0, import_typeorm89.Column)({ name: "key", type: "varchar", length: 255, nullable: false, unique: true })
|
|
13471
13744
|
], GlobalSetting.prototype, "key", 2);
|
|
13472
13745
|
__decorateClass([
|
|
13473
|
-
(0,
|
|
13746
|
+
(0, import_typeorm89.Column)({ name: "value", type: "text", nullable: false })
|
|
13474
13747
|
], GlobalSetting.prototype, "value", 2);
|
|
13475
13748
|
GlobalSetting = __decorateClass([
|
|
13476
|
-
(0,
|
|
13477
|
-
(0,
|
|
13749
|
+
(0, import_typeorm89.Entity)("global_settings"),
|
|
13750
|
+
(0, import_typeorm89.Index)(["key"], { unique: true })
|
|
13478
13751
|
], GlobalSetting);
|
|
13479
13752
|
|
|
13480
13753
|
// src/entities/plan.entity.ts
|
|
13481
|
-
var
|
|
13754
|
+
var import_typeorm92 = require("typeorm");
|
|
13482
13755
|
|
|
13483
13756
|
// src/entities/plan-feature.entity.ts
|
|
13484
|
-
var
|
|
13757
|
+
var import_typeorm90 = require("typeorm");
|
|
13485
13758
|
var PlanFeature = class extends BaseEntity {
|
|
13486
13759
|
};
|
|
13487
13760
|
// individual index to find features by plan
|
|
13488
13761
|
__decorateClass([
|
|
13489
|
-
(0,
|
|
13490
|
-
(0,
|
|
13762
|
+
(0, import_typeorm90.Column)({ name: "plan_id", type: "integer", nullable: false }),
|
|
13763
|
+
(0, import_typeorm90.Index)()
|
|
13491
13764
|
], PlanFeature.prototype, "planId", 2);
|
|
13492
13765
|
__decorateClass([
|
|
13493
|
-
(0,
|
|
13766
|
+
(0, import_typeorm90.ManyToOne)(() => Plan, (plan) => plan.features, {
|
|
13494
13767
|
onDelete: "CASCADE",
|
|
13495
13768
|
nullable: false
|
|
13496
13769
|
}),
|
|
13497
|
-
(0,
|
|
13770
|
+
(0, import_typeorm90.JoinColumn)({ name: "plan_id" })
|
|
13498
13771
|
], PlanFeature.prototype, "plan", 2);
|
|
13499
13772
|
__decorateClass([
|
|
13500
|
-
(0,
|
|
13773
|
+
(0, import_typeorm90.Column)({ name: "name", type: "varchar", length: 200 })
|
|
13501
13774
|
], PlanFeature.prototype, "name", 2);
|
|
13502
13775
|
__decorateClass([
|
|
13503
|
-
(0,
|
|
13504
|
-
(0,
|
|
13776
|
+
(0, import_typeorm90.Column)({ name: "slug", type: "varchar", length: 100 }),
|
|
13777
|
+
(0, import_typeorm90.Index)()
|
|
13505
13778
|
], PlanFeature.prototype, "slug", 2);
|
|
13506
13779
|
__decorateClass([
|
|
13507
|
-
(0,
|
|
13780
|
+
(0, import_typeorm90.Column)({ name: "tooltip", type: "varchar", length: 300, nullable: true })
|
|
13508
13781
|
], PlanFeature.prototype, "tooltip", 2);
|
|
13509
13782
|
__decorateClass([
|
|
13510
|
-
(0,
|
|
13783
|
+
(0, import_typeorm90.Column)({ name: "sort_order", type: "smallint", default: 0 })
|
|
13511
13784
|
], PlanFeature.prototype, "sortOrder", 2);
|
|
13512
13785
|
__decorateClass([
|
|
13513
|
-
(0,
|
|
13786
|
+
(0, import_typeorm90.Column)({ name: "is_active", type: "boolean", default: true })
|
|
13514
13787
|
], PlanFeature.prototype, "isActive", 2);
|
|
13515
13788
|
PlanFeature = __decorateClass([
|
|
13516
|
-
(0,
|
|
13517
|
-
(0,
|
|
13518
|
-
(0,
|
|
13519
|
-
(0,
|
|
13789
|
+
(0, import_typeorm90.Entity)("plan_features"),
|
|
13790
|
+
(0, import_typeorm90.Index)("idx_plan_features_plan_id", ["planId"]),
|
|
13791
|
+
(0, import_typeorm90.Index)("idx_plan_features_plan_sort", ["planId", "sortOrder"]),
|
|
13792
|
+
(0, import_typeorm90.Check)("chk_plan_features_sort_order_positive", '"sort_order" >= 0')
|
|
13520
13793
|
], PlanFeature);
|
|
13521
13794
|
|
|
13522
13795
|
// src/entities/plan-pricing.entity.ts
|
|
13523
|
-
var
|
|
13796
|
+
var import_typeorm91 = require("typeorm");
|
|
13524
13797
|
var PlanPricingBillingCycleEnum = /* @__PURE__ */ ((PlanPricingBillingCycleEnum2) => {
|
|
13525
13798
|
PlanPricingBillingCycleEnum2["MONTHLY"] = "monthly";
|
|
13526
13799
|
PlanPricingBillingCycleEnum2["YEARLY"] = "yearly";
|
|
@@ -13575,61 +13848,61 @@ var PlanPricing = class extends BaseEntity {
|
|
|
13575
13848
|
};
|
|
13576
13849
|
// individual index to find pricing by plan
|
|
13577
13850
|
__decorateClass([
|
|
13578
|
-
(0,
|
|
13579
|
-
(0,
|
|
13851
|
+
(0, import_typeorm91.Column)({ name: "plan_id", type: "integer", nullable: false }),
|
|
13852
|
+
(0, import_typeorm91.Index)()
|
|
13580
13853
|
], PlanPricing.prototype, "planId", 2);
|
|
13581
13854
|
__decorateClass([
|
|
13582
|
-
(0,
|
|
13855
|
+
(0, import_typeorm91.ManyToOne)(() => Plan, (plan) => plan.pricing, {
|
|
13583
13856
|
onDelete: "CASCADE",
|
|
13584
13857
|
nullable: false
|
|
13585
13858
|
}),
|
|
13586
|
-
(0,
|
|
13859
|
+
(0, import_typeorm91.JoinColumn)({ name: "plan_id" })
|
|
13587
13860
|
], PlanPricing.prototype, "plan", 2);
|
|
13588
13861
|
__decorateClass([
|
|
13589
|
-
(0,
|
|
13862
|
+
(0, import_typeorm91.Column)({
|
|
13590
13863
|
name: "billing_cycle",
|
|
13591
13864
|
type: "enum",
|
|
13592
13865
|
enum: PlanPricingBillingCycleEnum
|
|
13593
13866
|
})
|
|
13594
13867
|
], PlanPricing.prototype, "billingCycle", 2);
|
|
13595
13868
|
__decorateClass([
|
|
13596
|
-
(0,
|
|
13869
|
+
(0, import_typeorm91.Column)({ name: "price", type: "decimal", precision: 10, scale: 2, default: 0 })
|
|
13597
13870
|
], PlanPricing.prototype, "price", 2);
|
|
13598
13871
|
__decorateClass([
|
|
13599
|
-
(0,
|
|
13872
|
+
(0, import_typeorm91.Column)({ name: "original_price", type: "decimal", precision: 10, scale: 2, nullable: true })
|
|
13600
13873
|
], PlanPricing.prototype, "originalPrice", 2);
|
|
13601
13874
|
__decorateClass([
|
|
13602
|
-
(0,
|
|
13875
|
+
(0, import_typeorm91.Column)({ name: "discount_pct", type: "smallint", nullable: true })
|
|
13603
13876
|
], PlanPricing.prototype, "discountPct", 2);
|
|
13604
13877
|
__decorateClass([
|
|
13605
|
-
(0,
|
|
13878
|
+
(0, import_typeorm91.Column)({ name: "currency", type: "varchar", length: 3, default: "USD" })
|
|
13606
13879
|
], PlanPricing.prototype, "currency", 2);
|
|
13607
13880
|
__decorateClass([
|
|
13608
|
-
(0,
|
|
13881
|
+
(0, import_typeorm91.Column)({ name: "is_free", type: "boolean", default: false })
|
|
13609
13882
|
], PlanPricing.prototype, "isFree", 2);
|
|
13610
13883
|
__decorateClass([
|
|
13611
|
-
(0,
|
|
13884
|
+
(0, import_typeorm91.Column)({ name: "stripe_price_id", type: "varchar", length: 100, nullable: true, unique: true })
|
|
13612
13885
|
], PlanPricing.prototype, "stripePriceId", 2);
|
|
13613
13886
|
__decorateClass([
|
|
13614
|
-
(0,
|
|
13887
|
+
(0, import_typeorm91.Column)({ name: "trial_days", type: "smallint", default: 0 })
|
|
13615
13888
|
], PlanPricing.prototype, "trialDays", 2);
|
|
13616
13889
|
__decorateClass([
|
|
13617
|
-
(0,
|
|
13890
|
+
(0, import_typeorm91.Column)({ name: "is_active", type: "boolean", default: true })
|
|
13618
13891
|
], PlanPricing.prototype, "isActive", 2);
|
|
13619
13892
|
__decorateClass([
|
|
13620
|
-
(0,
|
|
13621
|
-
(0,
|
|
13893
|
+
(0, import_typeorm91.BeforeInsert)(),
|
|
13894
|
+
(0, import_typeorm91.BeforeUpdate)()
|
|
13622
13895
|
], PlanPricing.prototype, "sanitize", 1);
|
|
13623
13896
|
PlanPricing = __decorateClass([
|
|
13624
|
-
(0,
|
|
13625
|
-
(0,
|
|
13626
|
-
(0,
|
|
13627
|
-
(0,
|
|
13628
|
-
(0,
|
|
13629
|
-
(0,
|
|
13630
|
-
(0,
|
|
13631
|
-
(0,
|
|
13632
|
-
(0,
|
|
13897
|
+
(0, import_typeorm91.Entity)("plan_pricings"),
|
|
13898
|
+
(0, import_typeorm91.Unique)("uq_plan_pricings_plan_cycle", ["planId", "billingCycle"]),
|
|
13899
|
+
(0, import_typeorm91.Index)("idx_plan_pricings_plan_id", ["planId"]),
|
|
13900
|
+
(0, import_typeorm91.Index)("idx_plan_pricings_active", ["isActive", "billingCycle"]),
|
|
13901
|
+
(0, import_typeorm91.Check)("chk_plan_pricings_free_price_zero", '("is_free" = false) OR ("is_free" = true AND "price" = 0)'),
|
|
13902
|
+
(0, import_typeorm91.Check)("chk_plan_pricings_trial_days_non_negative", '"trial_days" >= 0'),
|
|
13903
|
+
(0, import_typeorm91.Check)("chk_plan_pricings_discount_range", '"discount_pct" IS NULL OR ("discount_pct" >= 1 AND "discount_pct" <= 99)'),
|
|
13904
|
+
(0, import_typeorm91.Check)("chk_plan_pricings_original_gte_price", '"original_price" IS NULL OR "original_price" >= "price"'),
|
|
13905
|
+
(0, import_typeorm91.Check)("chk_plan_pricings_original_price_non_negative", '"original_price" IS NULL OR "original_price" >= 0')
|
|
13633
13906
|
], PlanPricing);
|
|
13634
13907
|
|
|
13635
13908
|
// src/entities/plan.entity.ts
|
|
@@ -13646,22 +13919,22 @@ var Plan = class extends BaseEntity {
|
|
|
13646
13919
|
}
|
|
13647
13920
|
};
|
|
13648
13921
|
__decorateClass([
|
|
13649
|
-
(0,
|
|
13922
|
+
(0, import_typeorm92.Column)({ name: "name", type: "varchar", length: 100 })
|
|
13650
13923
|
], Plan.prototype, "name", 2);
|
|
13651
13924
|
__decorateClass([
|
|
13652
|
-
(0,
|
|
13925
|
+
(0, import_typeorm92.Column)({ name: "slug", type: "varchar", length: 100 })
|
|
13653
13926
|
], Plan.prototype, "slug", 2);
|
|
13654
13927
|
__decorateClass([
|
|
13655
|
-
(0,
|
|
13928
|
+
(0, import_typeorm92.Column)({ name: "badge_label", type: "varchar", length: 60, nullable: true })
|
|
13656
13929
|
], Plan.prototype, "badgeLabel", 2);
|
|
13657
13930
|
__decorateClass([
|
|
13658
|
-
(0,
|
|
13931
|
+
(0, import_typeorm92.Column)({ name: "sort_order", type: "smallint", default: 0 })
|
|
13659
13932
|
], Plan.prototype, "sortOrder", 2);
|
|
13660
13933
|
__decorateClass([
|
|
13661
|
-
(0,
|
|
13934
|
+
(0, import_typeorm92.Column)({ name: "is_active", type: "boolean", default: true })
|
|
13662
13935
|
], Plan.prototype, "isActive", 2);
|
|
13663
13936
|
__decorateClass([
|
|
13664
|
-
(0,
|
|
13937
|
+
(0, import_typeorm92.Column)({
|
|
13665
13938
|
name: "plan_type",
|
|
13666
13939
|
type: "enum",
|
|
13667
13940
|
enum: PlanTypeEnum,
|
|
@@ -13669,31 +13942,31 @@ __decorateClass([
|
|
|
13669
13942
|
})
|
|
13670
13943
|
], Plan.prototype, "planType", 2);
|
|
13671
13944
|
__decorateClass([
|
|
13672
|
-
(0,
|
|
13945
|
+
(0, import_typeorm92.Column)({ name: "metadata", type: "jsonb", default: {} })
|
|
13673
13946
|
], Plan.prototype, "metadata", 2);
|
|
13674
13947
|
__decorateClass([
|
|
13675
|
-
(0,
|
|
13676
|
-
(0,
|
|
13948
|
+
(0, import_typeorm92.BeforeInsert)(),
|
|
13949
|
+
(0, import_typeorm92.BeforeUpdate)()
|
|
13677
13950
|
], Plan.prototype, "createSlug", 1);
|
|
13678
13951
|
__decorateClass([
|
|
13679
|
-
(0,
|
|
13952
|
+
(0, import_typeorm92.OneToMany)(() => PlanFeature, (feature) => feature.plan, {
|
|
13680
13953
|
cascade: ["insert", "update"]
|
|
13681
13954
|
})
|
|
13682
13955
|
], Plan.prototype, "features", 2);
|
|
13683
13956
|
__decorateClass([
|
|
13684
|
-
(0,
|
|
13957
|
+
(0, import_typeorm92.OneToMany)(() => PlanPricing, (pricing) => pricing.plan, {
|
|
13685
13958
|
cascade: ["insert", "update"]
|
|
13686
13959
|
})
|
|
13687
13960
|
], Plan.prototype, "pricing", 2);
|
|
13688
13961
|
Plan = __decorateClass([
|
|
13689
|
-
(0,
|
|
13690
|
-
(0,
|
|
13691
|
-
(0,
|
|
13692
|
-
(0,
|
|
13962
|
+
(0, import_typeorm92.Entity)("plans"),
|
|
13963
|
+
(0, import_typeorm92.Index)("idx_plans_slug", ["slug"], { unique: true, where: '"is_deleted" IS FALSE' }),
|
|
13964
|
+
(0, import_typeorm92.Index)("idx_plans_active_sort", ["isActive", "sortOrder"]),
|
|
13965
|
+
(0, import_typeorm92.Check)("chk_plans_sort_order_positive", '"sort_order" >= 0')
|
|
13693
13966
|
], Plan);
|
|
13694
13967
|
|
|
13695
13968
|
// src/entities/subscription-feature.entity.ts
|
|
13696
|
-
var
|
|
13969
|
+
var import_typeorm93 = require("typeorm");
|
|
13697
13970
|
var SubscriptionFeature = class extends BaseEntity {
|
|
13698
13971
|
toSlug(value) {
|
|
13699
13972
|
return value.toLowerCase().trim().replace(/\s+/g, "-").replace(/[^a-z0-9-]/g, "").replace(/-+/g, "-").replace(/^-|-$/g, "");
|
|
@@ -13708,29 +13981,29 @@ var SubscriptionFeature = class extends BaseEntity {
|
|
|
13708
13981
|
}
|
|
13709
13982
|
};
|
|
13710
13983
|
__decorateClass([
|
|
13711
|
-
(0,
|
|
13984
|
+
(0, import_typeorm93.Column)({ name: "name", type: "varchar", length: 200 })
|
|
13712
13985
|
], SubscriptionFeature.prototype, "name", 2);
|
|
13713
13986
|
__decorateClass([
|
|
13714
|
-
(0,
|
|
13987
|
+
(0, import_typeorm93.Column)({ name: "slug", type: "varchar", length: 100 })
|
|
13715
13988
|
], SubscriptionFeature.prototype, "slug", 2);
|
|
13716
13989
|
__decorateClass([
|
|
13717
|
-
(0,
|
|
13990
|
+
(0, import_typeorm93.Column)({ name: "tooltip", type: "varchar", length: 300, nullable: true })
|
|
13718
13991
|
], SubscriptionFeature.prototype, "tooltip", 2);
|
|
13719
13992
|
__decorateClass([
|
|
13720
|
-
(0,
|
|
13993
|
+
(0, import_typeorm93.Column)({ name: "sort_order", type: "smallint", default: 0 })
|
|
13721
13994
|
], SubscriptionFeature.prototype, "sortOrder", 2);
|
|
13722
13995
|
__decorateClass([
|
|
13723
|
-
(0,
|
|
13996
|
+
(0, import_typeorm93.Column)({ name: "is_active", type: "boolean", default: true })
|
|
13724
13997
|
], SubscriptionFeature.prototype, "isActive", 2);
|
|
13725
13998
|
__decorateClass([
|
|
13726
|
-
(0,
|
|
13727
|
-
(0,
|
|
13999
|
+
(0, import_typeorm93.BeforeInsert)(),
|
|
14000
|
+
(0, import_typeorm93.BeforeUpdate)()
|
|
13728
14001
|
], SubscriptionFeature.prototype, "createSlug", 1);
|
|
13729
14002
|
SubscriptionFeature = __decorateClass([
|
|
13730
|
-
(0,
|
|
13731
|
-
(0,
|
|
13732
|
-
(0,
|
|
13733
|
-
(0,
|
|
14003
|
+
(0, import_typeorm93.Entity)("subscription_features"),
|
|
14004
|
+
(0, import_typeorm93.Index)("idx_subscription_features_slug", ["slug"], { unique: true, where: '"is_deleted" IS FALSE' }),
|
|
14005
|
+
(0, import_typeorm93.Index)("idx_subscription_features_active_sort", ["isActive", "sortOrder"]),
|
|
14006
|
+
(0, import_typeorm93.Check)("chk_subscription_features_sort_order_positive", '"sort_order" >= 0')
|
|
13734
14007
|
], SubscriptionFeature);
|
|
13735
14008
|
// Annotate the CommonJS export names for ESM import in node:
|
|
13736
14009
|
0 && (module.exports = {
|
|
@@ -14091,6 +14364,16 @@ SubscriptionFeature = __decorateClass([
|
|
|
14091
14364
|
SystemPreferenceDto,
|
|
14092
14365
|
TIMESHEET_CLIENT_PATTERN,
|
|
14093
14366
|
TIMESHEET_FREELANCER_PATTERN,
|
|
14367
|
+
Task,
|
|
14368
|
+
TaskChecklistItem,
|
|
14369
|
+
TaskDeliverable,
|
|
14370
|
+
TaskDeliverableTypeEnum,
|
|
14371
|
+
TaskPriorityEnum,
|
|
14372
|
+
TaskResource,
|
|
14373
|
+
TaskResourceTypeEnum,
|
|
14374
|
+
TaskStatusEnum,
|
|
14375
|
+
TaskSubtask,
|
|
14376
|
+
TaskSubtaskStatusEnum,
|
|
14094
14377
|
TestNotificationDto,
|
|
14095
14378
|
Timesheet,
|
|
14096
14379
|
TimesheetLine,
|