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