@experts_hub/shared 1.0.508 → 1.0.511
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/job-location.entity.d.ts +0 -15
- package/dist/entities/job.entity.d.ts +0 -2
- package/dist/index.d.mts +3 -15
- package/dist/index.d.ts +3 -15
- package/dist/index.js +677 -715
- package/dist/index.mjs +614 -658
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1226,11 +1226,11 @@ var JOB_PATTERN = {
|
|
|
1226
1226
|
// src/modules/job/dto/job-basic-information.dto.ts
|
|
1227
1227
|
var import_class_validator33 = require("class-validator");
|
|
1228
1228
|
var import_class_transformer2 = require("class-transformer");
|
|
1229
|
-
var JobLocation = /* @__PURE__ */ ((
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
return
|
|
1229
|
+
var JobLocation = /* @__PURE__ */ ((JobLocation2) => {
|
|
1230
|
+
JobLocation2["ONSITE"] = "ONSITE";
|
|
1231
|
+
JobLocation2["REMOTE"] = "REMOTE";
|
|
1232
|
+
JobLocation2["HYBRID"] = "HYBRID";
|
|
1233
|
+
return JobLocation2;
|
|
1234
1234
|
})(JobLocation || {});
|
|
1235
1235
|
var EmploymentType = /* @__PURE__ */ ((EmploymentType2) => {
|
|
1236
1236
|
EmploymentType2["FULLTIME"] = "FULLTIME";
|
|
@@ -1708,10 +1708,10 @@ var RATING_PATTERN = {
|
|
|
1708
1708
|
var import_class_validator42 = require("class-validator");
|
|
1709
1709
|
|
|
1710
1710
|
// src/entities/rating.entity.ts
|
|
1711
|
-
var
|
|
1711
|
+
var import_typeorm61 = require("typeorm");
|
|
1712
1712
|
|
|
1713
1713
|
// src/entities/user.entity.ts
|
|
1714
|
-
var
|
|
1714
|
+
var import_typeorm60 = require("typeorm");
|
|
1715
1715
|
|
|
1716
1716
|
// src/entities/base.entity.ts
|
|
1717
1717
|
var import_typeorm = require("typeorm");
|
|
@@ -2485,7 +2485,7 @@ FreelancerProfile = __decorateClass([
|
|
|
2485
2485
|
], FreelancerProfile);
|
|
2486
2486
|
|
|
2487
2487
|
// src/entities/job.entity.ts
|
|
2488
|
-
var
|
|
2488
|
+
var import_typeorm30 = require("typeorm");
|
|
2489
2489
|
|
|
2490
2490
|
// src/entities/job-skill.entity.ts
|
|
2491
2491
|
var import_typeorm10 = require("typeorm");
|
|
@@ -4066,43 +4066,6 @@ Timesheet = __decorateClass([
|
|
|
4066
4066
|
(0, import_typeorm29.Entity)("timesheets")
|
|
4067
4067
|
], Timesheet);
|
|
4068
4068
|
|
|
4069
|
-
// src/entities/job-location.entity.ts
|
|
4070
|
-
var import_typeorm30 = require("typeorm");
|
|
4071
|
-
var JobLocation2 = class extends BaseEntity {
|
|
4072
|
-
};
|
|
4073
|
-
__decorateClass([
|
|
4074
|
-
(0, import_typeorm30.Column)({ name: "job_id", type: "integer", nullable: false }),
|
|
4075
|
-
(0, import_typeorm30.Index)()
|
|
4076
|
-
], JobLocation2.prototype, "jobId", 2);
|
|
4077
|
-
__decorateClass([
|
|
4078
|
-
(0, import_typeorm30.ManyToOne)(() => Job, (job) => job.jobLocations),
|
|
4079
|
-
(0, import_typeorm30.JoinColumn)({ name: "job_id" })
|
|
4080
|
-
], JobLocation2.prototype, "job", 2);
|
|
4081
|
-
__decorateClass([
|
|
4082
|
-
(0, import_typeorm30.Column)({ name: "country_id", type: "int", nullable: false })
|
|
4083
|
-
], JobLocation2.prototype, "countryId", 2);
|
|
4084
|
-
__decorateClass([
|
|
4085
|
-
(0, import_typeorm30.ManyToOne)(() => Country),
|
|
4086
|
-
(0, import_typeorm30.JoinColumn)({ name: "country_id" })
|
|
4087
|
-
], JobLocation2.prototype, "country", 2);
|
|
4088
|
-
__decorateClass([
|
|
4089
|
-
(0, import_typeorm30.Column)({ name: "state_id", type: "int", nullable: false })
|
|
4090
|
-
], JobLocation2.prototype, "stateId", 2);
|
|
4091
|
-
__decorateClass([
|
|
4092
|
-
(0, import_typeorm30.ManyToOne)(() => State),
|
|
4093
|
-
(0, import_typeorm30.JoinColumn)({ name: "state_id" })
|
|
4094
|
-
], JobLocation2.prototype, "state", 2);
|
|
4095
|
-
__decorateClass([
|
|
4096
|
-
(0, import_typeorm30.Column)({ name: "city_id", type: "int", nullable: false })
|
|
4097
|
-
], JobLocation2.prototype, "cityId", 2);
|
|
4098
|
-
__decorateClass([
|
|
4099
|
-
(0, import_typeorm30.ManyToOne)(() => City),
|
|
4100
|
-
(0, import_typeorm30.JoinColumn)({ name: "city_id" })
|
|
4101
|
-
], JobLocation2.prototype, "city", 2);
|
|
4102
|
-
JobLocation2 = __decorateClass([
|
|
4103
|
-
(0, import_typeorm30.Entity)("job_locations")
|
|
4104
|
-
], JobLocation2);
|
|
4105
|
-
|
|
4106
4069
|
// src/entities/job.entity.ts
|
|
4107
4070
|
var JobLocationEnum = /* @__PURE__ */ ((JobLocationEnum2) => {
|
|
4108
4071
|
JobLocationEnum2["ONSITE"] = "ONSITE";
|
|
@@ -4147,57 +4110,61 @@ var DurationTypeEnum = /* @__PURE__ */ ((DurationTypeEnum2) => {
|
|
|
4147
4110
|
return DurationTypeEnum2;
|
|
4148
4111
|
})(DurationTypeEnum || {});
|
|
4149
4112
|
var Job = class extends BaseEntity {
|
|
4113
|
+
// @OneToMany(() => JobLocation, (jobLocation) => jobLocation.job, {
|
|
4114
|
+
// cascade: true,
|
|
4115
|
+
// })
|
|
4116
|
+
// jobLocations: JobLocation[];
|
|
4150
4117
|
};
|
|
4151
4118
|
__decorateClass([
|
|
4152
|
-
(0,
|
|
4119
|
+
(0, import_typeorm30.Column)({ name: "job_id", type: "varchar", unique: true, nullable: true })
|
|
4153
4120
|
], Job.prototype, "jobId", 2);
|
|
4154
4121
|
// individual index to find jobs by user
|
|
4155
4122
|
__decorateClass([
|
|
4156
|
-
(0,
|
|
4157
|
-
(0,
|
|
4123
|
+
(0, import_typeorm30.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
4124
|
+
(0, import_typeorm30.Index)()
|
|
4158
4125
|
], Job.prototype, "userId", 2);
|
|
4159
4126
|
__decorateClass([
|
|
4160
|
-
(0,
|
|
4161
|
-
(0,
|
|
4127
|
+
(0, import_typeorm30.ManyToOne)(() => User, (user) => user.jobs),
|
|
4128
|
+
(0, import_typeorm30.JoinColumn)({ name: "user_id" })
|
|
4162
4129
|
], Job.prototype, "user", 2);
|
|
4163
4130
|
__decorateClass([
|
|
4164
|
-
(0,
|
|
4131
|
+
(0, import_typeorm30.Column)({ name: "country_id", type: "int", nullable: true })
|
|
4165
4132
|
], Job.prototype, "countryId", 2);
|
|
4166
4133
|
__decorateClass([
|
|
4167
|
-
(0,
|
|
4168
|
-
(0,
|
|
4134
|
+
(0, import_typeorm30.ManyToOne)(() => Country),
|
|
4135
|
+
(0, import_typeorm30.JoinColumn)({ name: "country_id" })
|
|
4169
4136
|
], Job.prototype, "country", 2);
|
|
4170
4137
|
__decorateClass([
|
|
4171
|
-
(0,
|
|
4138
|
+
(0, import_typeorm30.Column)({ name: "state_id", type: "int", nullable: true })
|
|
4172
4139
|
], Job.prototype, "stateId", 2);
|
|
4173
4140
|
__decorateClass([
|
|
4174
|
-
(0,
|
|
4175
|
-
(0,
|
|
4141
|
+
(0, import_typeorm30.ManyToOne)(() => State),
|
|
4142
|
+
(0, import_typeorm30.JoinColumn)({ name: "state_id" })
|
|
4176
4143
|
], Job.prototype, "state", 2);
|
|
4177
4144
|
__decorateClass([
|
|
4178
|
-
(0,
|
|
4145
|
+
(0, import_typeorm30.Column)({ name: "city_id", type: "int", nullable: true })
|
|
4179
4146
|
], Job.prototype, "cityId", 2);
|
|
4180
4147
|
__decorateClass([
|
|
4181
|
-
(0,
|
|
4182
|
-
(0,
|
|
4148
|
+
(0, import_typeorm30.ManyToOne)(() => City),
|
|
4149
|
+
(0, import_typeorm30.JoinColumn)({ name: "city_id" })
|
|
4183
4150
|
], Job.prototype, "city", 2);
|
|
4184
4151
|
__decorateClass([
|
|
4185
|
-
(0,
|
|
4152
|
+
(0, import_typeorm30.Column)({ name: "job_role", type: "varchar", nullable: true })
|
|
4186
4153
|
], Job.prototype, "jobRole", 2);
|
|
4187
4154
|
__decorateClass([
|
|
4188
|
-
(0,
|
|
4155
|
+
(0, import_typeorm30.Column)({ name: "job_role_canonical_name", type: "varchar", nullable: true })
|
|
4189
4156
|
], Job.prototype, "jobRoleCanonicalName", 2);
|
|
4190
4157
|
__decorateClass([
|
|
4191
|
-
(0,
|
|
4158
|
+
(0, import_typeorm30.Column)({ name: "project_name", type: "varchar", nullable: true })
|
|
4192
4159
|
], Job.prototype, "projectName", 2);
|
|
4193
4160
|
__decorateClass([
|
|
4194
|
-
(0,
|
|
4161
|
+
(0, import_typeorm30.Column)({ name: "note", type: "varchar", nullable: true })
|
|
4195
4162
|
], Job.prototype, "note", 2);
|
|
4196
4163
|
__decorateClass([
|
|
4197
|
-
(0,
|
|
4164
|
+
(0, import_typeorm30.Column)({ name: "openings", type: "integer", default: 0 })
|
|
4198
4165
|
], Job.prototype, "openings", 2);
|
|
4199
4166
|
__decorateClass([
|
|
4200
|
-
(0,
|
|
4167
|
+
(0, import_typeorm30.Column)({
|
|
4201
4168
|
name: "location",
|
|
4202
4169
|
type: "enum",
|
|
4203
4170
|
enum: JobLocationEnum,
|
|
@@ -4205,7 +4172,7 @@ __decorateClass([
|
|
|
4205
4172
|
})
|
|
4206
4173
|
], Job.prototype, "location", 2);
|
|
4207
4174
|
__decorateClass([
|
|
4208
|
-
(0,
|
|
4175
|
+
(0, import_typeorm30.Column)({
|
|
4209
4176
|
name: "type_of_employment",
|
|
4210
4177
|
type: "enum",
|
|
4211
4178
|
enum: TypeOfEmploymentEnum,
|
|
@@ -4213,10 +4180,10 @@ __decorateClass([
|
|
|
4213
4180
|
})
|
|
4214
4181
|
], Job.prototype, "typeOfEmployment", 2);
|
|
4215
4182
|
__decorateClass([
|
|
4216
|
-
(0,
|
|
4183
|
+
(0, import_typeorm30.Column)({ name: "academic_qualifictaion", type: "varchar", nullable: true })
|
|
4217
4184
|
], Job.prototype, "academicQualification", 2);
|
|
4218
4185
|
__decorateClass([
|
|
4219
|
-
(0,
|
|
4186
|
+
(0, import_typeorm30.Column)({
|
|
4220
4187
|
name: "type_of_experience",
|
|
4221
4188
|
type: "enum",
|
|
4222
4189
|
enum: typeOfExperienceEnum,
|
|
@@ -4224,22 +4191,22 @@ __decorateClass([
|
|
|
4224
4191
|
})
|
|
4225
4192
|
], Job.prototype, "typeOfExperience", 2);
|
|
4226
4193
|
__decorateClass([
|
|
4227
|
-
(0,
|
|
4194
|
+
(0, import_typeorm30.Column)({ name: "years_of_experience", type: "varchar", nullable: true })
|
|
4228
4195
|
], Job.prototype, "yearsOfExperience", 2);
|
|
4229
4196
|
__decorateClass([
|
|
4230
|
-
(0,
|
|
4197
|
+
(0, import_typeorm30.Column)({ name: "years_of_experience_from", type: "varchar", nullable: true })
|
|
4231
4198
|
], Job.prototype, "yearsOfExperienceFrom", 2);
|
|
4232
4199
|
__decorateClass([
|
|
4233
|
-
(0,
|
|
4200
|
+
(0, import_typeorm30.Column)({ name: "years_of_experience_to", type: "varchar", nullable: true })
|
|
4234
4201
|
], Job.prototype, "yearsOfExperienceTo", 2);
|
|
4235
4202
|
__decorateClass([
|
|
4236
|
-
(0,
|
|
4203
|
+
(0, import_typeorm30.Column)({ name: "business_industry", type: "varchar", nullable: true })
|
|
4237
4204
|
], Job.prototype, "businessIndustry", 2);
|
|
4238
4205
|
__decorateClass([
|
|
4239
|
-
(0,
|
|
4206
|
+
(0, import_typeorm30.Column)({ name: "currency", type: "varchar", default: "USD" })
|
|
4240
4207
|
], Job.prototype, "currency", 2);
|
|
4241
4208
|
__decorateClass([
|
|
4242
|
-
(0,
|
|
4209
|
+
(0, import_typeorm30.Column)({
|
|
4243
4210
|
name: "expected_salary_from",
|
|
4244
4211
|
type: "decimal",
|
|
4245
4212
|
precision: 10,
|
|
@@ -4248,14 +4215,14 @@ __decorateClass([
|
|
|
4248
4215
|
})
|
|
4249
4216
|
], Job.prototype, "expectedSalaryFrom", 2);
|
|
4250
4217
|
__decorateClass([
|
|
4251
|
-
(0,
|
|
4218
|
+
(0, import_typeorm30.Column)({
|
|
4252
4219
|
name: "hide_expected_salary_from",
|
|
4253
4220
|
type: "boolean",
|
|
4254
4221
|
default: false
|
|
4255
4222
|
})
|
|
4256
4223
|
], Job.prototype, "hideExpectedSalaryFrom", 2);
|
|
4257
4224
|
__decorateClass([
|
|
4258
|
-
(0,
|
|
4225
|
+
(0, import_typeorm30.Column)({
|
|
4259
4226
|
name: "expected_salary_to",
|
|
4260
4227
|
type: "decimal",
|
|
4261
4228
|
precision: 10,
|
|
@@ -4264,32 +4231,32 @@ __decorateClass([
|
|
|
4264
4231
|
})
|
|
4265
4232
|
], Job.prototype, "expectedSalaryTo", 2);
|
|
4266
4233
|
__decorateClass([
|
|
4267
|
-
(0,
|
|
4234
|
+
(0, import_typeorm30.Column)({
|
|
4268
4235
|
name: "hide_expected_salary_to",
|
|
4269
4236
|
type: "boolean",
|
|
4270
4237
|
default: false
|
|
4271
4238
|
})
|
|
4272
4239
|
], Job.prototype, "hideExpectedSalaryTo", 2);
|
|
4273
4240
|
__decorateClass([
|
|
4274
|
-
(0,
|
|
4241
|
+
(0, import_typeorm30.Column)({ name: "years", type: "varchar", nullable: true })
|
|
4275
4242
|
], Job.prototype, "years", 2);
|
|
4276
4243
|
__decorateClass([
|
|
4277
|
-
(0,
|
|
4244
|
+
(0, import_typeorm30.Column)({ name: "months", type: "varchar", nullable: true })
|
|
4278
4245
|
], Job.prototype, "months", 2);
|
|
4279
4246
|
__decorateClass([
|
|
4280
|
-
(0,
|
|
4247
|
+
(0, import_typeorm30.Column)({ name: "weeks", type: "varchar", nullable: true })
|
|
4281
4248
|
], Job.prototype, "weeks", 2);
|
|
4282
4249
|
__decorateClass([
|
|
4283
|
-
(0,
|
|
4250
|
+
(0, import_typeorm30.Column)({ name: "days", type: "varchar", nullable: true })
|
|
4284
4251
|
], Job.prototype, "days", 2);
|
|
4285
4252
|
__decorateClass([
|
|
4286
|
-
(0,
|
|
4253
|
+
(0, import_typeorm30.Column)({ name: "tentative_start_date", type: "date", nullable: true })
|
|
4287
4254
|
], Job.prototype, "tentativeStartDate", 2);
|
|
4288
4255
|
__decorateClass([
|
|
4289
|
-
(0,
|
|
4256
|
+
(0, import_typeorm30.Column)({ name: "tentative_end_date", type: "date", nullable: true })
|
|
4290
4257
|
], Job.prototype, "tentativeEndDate", 2);
|
|
4291
4258
|
__decorateClass([
|
|
4292
|
-
(0,
|
|
4259
|
+
(0, import_typeorm30.Column)({
|
|
4293
4260
|
name: "duration_type",
|
|
4294
4261
|
type: "enum",
|
|
4295
4262
|
enum: DurationTypeEnum,
|
|
@@ -4297,10 +4264,10 @@ __decorateClass([
|
|
|
4297
4264
|
})
|
|
4298
4265
|
], Job.prototype, "durationType", 2);
|
|
4299
4266
|
__decorateClass([
|
|
4300
|
-
(0,
|
|
4267
|
+
(0, import_typeorm30.Column)({ name: "duration", type: "varchar", nullable: true })
|
|
4301
4268
|
], Job.prototype, "duration", 2);
|
|
4302
4269
|
__decorateClass([
|
|
4303
|
-
(0,
|
|
4270
|
+
(0, import_typeorm30.Column)({
|
|
4304
4271
|
name: "number_of_hours",
|
|
4305
4272
|
type: "decimal",
|
|
4306
4273
|
precision: 4,
|
|
@@ -4309,13 +4276,13 @@ __decorateClass([
|
|
|
4309
4276
|
})
|
|
4310
4277
|
], Job.prototype, "numberOfHours", 2);
|
|
4311
4278
|
__decorateClass([
|
|
4312
|
-
(0,
|
|
4279
|
+
(0, import_typeorm30.Column)({ name: "description", type: "varchar", nullable: true })
|
|
4313
4280
|
], Job.prototype, "description", 2);
|
|
4314
4281
|
__decorateClass([
|
|
4315
|
-
(0,
|
|
4282
|
+
(0, import_typeorm30.Column)({ name: "additional_comment", type: "varchar", nullable: true })
|
|
4316
4283
|
], Job.prototype, "additionalComment", 2);
|
|
4317
4284
|
__decorateClass([
|
|
4318
|
-
(0,
|
|
4285
|
+
(0, import_typeorm30.Column)({
|
|
4319
4286
|
name: "onboarding_tat",
|
|
4320
4287
|
type: "varchar",
|
|
4321
4288
|
length: 50,
|
|
@@ -4323,14 +4290,14 @@ __decorateClass([
|
|
|
4323
4290
|
})
|
|
4324
4291
|
], Job.prototype, "onboardingTat", 2);
|
|
4325
4292
|
__decorateClass([
|
|
4326
|
-
(0,
|
|
4293
|
+
(0, import_typeorm30.Column)({
|
|
4327
4294
|
name: "candidate_communication_skills",
|
|
4328
4295
|
type: "varchar",
|
|
4329
4296
|
nullable: true
|
|
4330
4297
|
})
|
|
4331
4298
|
], Job.prototype, "candidateCommunicationSkills", 2);
|
|
4332
4299
|
__decorateClass([
|
|
4333
|
-
(0,
|
|
4300
|
+
(0, import_typeorm30.Column)({
|
|
4334
4301
|
name: "step_completed",
|
|
4335
4302
|
type: "enum",
|
|
4336
4303
|
enum: Step,
|
|
@@ -4338,7 +4305,7 @@ __decorateClass([
|
|
|
4338
4305
|
})
|
|
4339
4306
|
], Job.prototype, "stepCompleted", 2);
|
|
4340
4307
|
__decorateClass([
|
|
4341
|
-
(0,
|
|
4308
|
+
(0, import_typeorm30.Column)({
|
|
4342
4309
|
name: "status",
|
|
4343
4310
|
type: "enum",
|
|
4344
4311
|
enum: JobStatusEnum,
|
|
@@ -4346,40 +4313,40 @@ __decorateClass([
|
|
|
4346
4313
|
})
|
|
4347
4314
|
], Job.prototype, "status", 2);
|
|
4348
4315
|
__decorateClass([
|
|
4349
|
-
(0,
|
|
4316
|
+
(0, import_typeorm30.Column)({ name: "viewed_count", type: "integer", default: 0 })
|
|
4350
4317
|
], Job.prototype, "viewedCount", 2);
|
|
4351
4318
|
__decorateClass([
|
|
4352
|
-
(0,
|
|
4319
|
+
(0, import_typeorm30.Column)({ name: "application_count", type: "integer", default: 0 })
|
|
4353
4320
|
], Job.prototype, "applicationCount", 2);
|
|
4354
4321
|
__decorateClass([
|
|
4355
|
-
(0,
|
|
4322
|
+
(0, import_typeorm30.Column)({ name: "is_contract_signed", type: "boolean", default: false })
|
|
4356
4323
|
], Job.prototype, "isContractSigned", 2);
|
|
4357
4324
|
__decorateClass([
|
|
4358
|
-
(0,
|
|
4325
|
+
(0, import_typeorm30.Column)({ name: "is_interview_created", type: "boolean", default: false })
|
|
4359
4326
|
], Job.prototype, "isInterviewCreated", 2);
|
|
4360
4327
|
__decorateClass([
|
|
4361
|
-
(0,
|
|
4328
|
+
(0, import_typeorm30.OneToMany)(() => InterviewInvite, (interviewInvite) => interviewInvite.job, { cascade: true })
|
|
4362
4329
|
], Job.prototype, "interviewInvites", 2);
|
|
4363
4330
|
__decorateClass([
|
|
4364
|
-
(0,
|
|
4331
|
+
(0, import_typeorm30.OneToMany)(() => JobSkill, (jobSkill) => jobSkill.job, { cascade: true })
|
|
4365
4332
|
], Job.prototype, "jobSkills", 2);
|
|
4366
4333
|
__decorateClass([
|
|
4367
|
-
(0,
|
|
4334
|
+
(0, import_typeorm30.OneToMany)(() => JobApplication, (jobApplication) => jobApplication.job, {
|
|
4368
4335
|
cascade: true
|
|
4369
4336
|
})
|
|
4370
4337
|
], Job.prototype, "jobApplications", 2);
|
|
4371
4338
|
__decorateClass([
|
|
4372
|
-
(0,
|
|
4339
|
+
(0, import_typeorm30.OneToMany)(() => Interview, (interview) => interview.job, {
|
|
4373
4340
|
cascade: true
|
|
4374
4341
|
})
|
|
4375
4342
|
], Job.prototype, "interviews", 2);
|
|
4376
4343
|
__decorateClass([
|
|
4377
|
-
(0,
|
|
4344
|
+
(0, import_typeorm30.OneToMany)(() => F2FInterview, (f2fInterview) => f2fInterview.job, {
|
|
4378
4345
|
cascade: true
|
|
4379
4346
|
})
|
|
4380
4347
|
], Job.prototype, "f2fInterviews", 2);
|
|
4381
4348
|
__decorateClass([
|
|
4382
|
-
(0,
|
|
4349
|
+
(0, import_typeorm30.OneToMany)(
|
|
4383
4350
|
() => JobRecommendation,
|
|
4384
4351
|
(jobRecommendation) => jobRecommendation.job,
|
|
4385
4352
|
{
|
|
@@ -4388,44 +4355,39 @@ __decorateClass([
|
|
|
4388
4355
|
)
|
|
4389
4356
|
], Job.prototype, "recommendations", 2);
|
|
4390
4357
|
__decorateClass([
|
|
4391
|
-
(0,
|
|
4358
|
+
(0, import_typeorm30.OneToMany)(() => Contract, (contract) => contract.job, {
|
|
4392
4359
|
cascade: true
|
|
4393
4360
|
})
|
|
4394
4361
|
], Job.prototype, "contracts", 2);
|
|
4395
4362
|
__decorateClass([
|
|
4396
|
-
(0,
|
|
4363
|
+
(0, import_typeorm30.OneToMany)(() => EscrowWallet, (escrowWallet) => escrowWallet.job, {
|
|
4397
4364
|
cascade: true
|
|
4398
4365
|
})
|
|
4399
4366
|
], Job.prototype, "escrowWallets", 2);
|
|
4400
4367
|
__decorateClass([
|
|
4401
|
-
(0,
|
|
4368
|
+
(0, import_typeorm30.OneToMany)(() => Timesheet, (timesheet) => timesheet.job, {
|
|
4402
4369
|
cascade: true
|
|
4403
4370
|
})
|
|
4404
4371
|
], Job.prototype, "timesheets", 2);
|
|
4405
4372
|
__decorateClass([
|
|
4406
|
-
(0,
|
|
4373
|
+
(0, import_typeorm30.OneToMany)(() => TimesheetLine, (timesheetLine) => timesheetLine.job, {
|
|
4407
4374
|
cascade: true
|
|
4408
4375
|
})
|
|
4409
4376
|
], Job.prototype, "timesheetLine", 2);
|
|
4410
4377
|
__decorateClass([
|
|
4411
|
-
(0,
|
|
4378
|
+
(0, import_typeorm30.OneToMany)(() => Invoice, (invoice) => invoice.job, {
|
|
4412
4379
|
cascade: true
|
|
4413
4380
|
})
|
|
4414
4381
|
], Job.prototype, "invoice", 2);
|
|
4415
4382
|
__decorateClass([
|
|
4416
|
-
(0,
|
|
4383
|
+
(0, import_typeorm30.OneToMany)(() => ClientCandidatePreference, (clientCandidatePreference) => clientCandidatePreference.job)
|
|
4417
4384
|
], Job.prototype, "clientCandidatePreferences", 2);
|
|
4418
|
-
__decorateClass([
|
|
4419
|
-
(0, import_typeorm31.OneToMany)(() => JobLocation2, (jobLocation) => jobLocation.job, {
|
|
4420
|
-
cascade: true
|
|
4421
|
-
})
|
|
4422
|
-
], Job.prototype, "jobLocations", 2);
|
|
4423
4385
|
Job = __decorateClass([
|
|
4424
|
-
(0,
|
|
4386
|
+
(0, import_typeorm30.Entity)("jobs")
|
|
4425
4387
|
], Job);
|
|
4426
4388
|
|
|
4427
4389
|
// src/entities/bank-details.entity.ts
|
|
4428
|
-
var
|
|
4390
|
+
var import_typeorm31 = require("typeorm");
|
|
4429
4391
|
var BankAccountTypeEnum = /* @__PURE__ */ ((BankAccountTypeEnum2) => {
|
|
4430
4392
|
BankAccountTypeEnum2["PRIMARY"] = "PRIMARY";
|
|
4431
4393
|
BankAccountTypeEnum2["SECONDARY"] = "SECONDARY";
|
|
@@ -4440,51 +4402,51 @@ var BankDetail = class extends BaseEntity {
|
|
|
4440
4402
|
};
|
|
4441
4403
|
// individual index to find bank details by user
|
|
4442
4404
|
__decorateClass([
|
|
4443
|
-
(0,
|
|
4444
|
-
(0,
|
|
4405
|
+
(0, import_typeorm31.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
4406
|
+
(0, import_typeorm31.Index)()
|
|
4445
4407
|
], BankDetail.prototype, "userId", 2);
|
|
4446
4408
|
__decorateClass([
|
|
4447
|
-
(0,
|
|
4448
|
-
(0,
|
|
4409
|
+
(0, import_typeorm31.ManyToOne)(() => User, (user) => user.bankDetail),
|
|
4410
|
+
(0, import_typeorm31.JoinColumn)({ name: "user_id" })
|
|
4449
4411
|
], BankDetail.prototype, "user", 2);
|
|
4450
4412
|
__decorateClass([
|
|
4451
|
-
(0,
|
|
4413
|
+
(0, import_typeorm31.Column)({ name: "name", type: "varchar", nullable: true })
|
|
4452
4414
|
], BankDetail.prototype, "name", 2);
|
|
4453
4415
|
__decorateClass([
|
|
4454
|
-
(0,
|
|
4416
|
+
(0, import_typeorm31.Column)({ name: "mobile_code", type: "varchar", nullable: true })
|
|
4455
4417
|
], BankDetail.prototype, "mobileCode", 2);
|
|
4456
4418
|
__decorateClass([
|
|
4457
|
-
(0,
|
|
4419
|
+
(0, import_typeorm31.Column)({ name: "mobile", type: "varchar", nullable: true })
|
|
4458
4420
|
], BankDetail.prototype, "mobile", 2);
|
|
4459
4421
|
__decorateClass([
|
|
4460
|
-
(0,
|
|
4422
|
+
(0, import_typeorm31.Column)({ name: "email", type: "varchar" })
|
|
4461
4423
|
], BankDetail.prototype, "email", 2);
|
|
4462
4424
|
__decorateClass([
|
|
4463
|
-
(0,
|
|
4425
|
+
(0, import_typeorm31.Column)({ name: "address", type: "varchar", nullable: true })
|
|
4464
4426
|
], BankDetail.prototype, "address", 2);
|
|
4465
4427
|
__decorateClass([
|
|
4466
|
-
(0,
|
|
4428
|
+
(0, import_typeorm31.Column)({ name: "account_number", type: "varchar", unique: true, nullable: true })
|
|
4467
4429
|
], BankDetail.prototype, "accountNumber", 2);
|
|
4468
4430
|
__decorateClass([
|
|
4469
|
-
(0,
|
|
4431
|
+
(0, import_typeorm31.Column)({ name: "bank_name", type: "varchar", nullable: true })
|
|
4470
4432
|
], BankDetail.prototype, "bankName", 2);
|
|
4471
4433
|
__decorateClass([
|
|
4472
|
-
(0,
|
|
4434
|
+
(0, import_typeorm31.Column)({ name: "ifsc_code", type: "varchar", nullable: true })
|
|
4473
4435
|
], BankDetail.prototype, "ifscCode", 2);
|
|
4474
4436
|
__decorateClass([
|
|
4475
|
-
(0,
|
|
4437
|
+
(0, import_typeorm31.Column)({ name: "branch_name", type: "varchar", nullable: true })
|
|
4476
4438
|
], BankDetail.prototype, "branchName", 2);
|
|
4477
4439
|
__decorateClass([
|
|
4478
|
-
(0,
|
|
4440
|
+
(0, import_typeorm31.Column)({ name: "routing_no", type: "varchar", nullable: true })
|
|
4479
4441
|
], BankDetail.prototype, "routingNo", 2);
|
|
4480
4442
|
__decorateClass([
|
|
4481
|
-
(0,
|
|
4443
|
+
(0, import_typeorm31.Column)({ name: "aba_no", type: "varchar", nullable: true })
|
|
4482
4444
|
], BankDetail.prototype, "abaNumber", 2);
|
|
4483
4445
|
__decorateClass([
|
|
4484
|
-
(0,
|
|
4446
|
+
(0, import_typeorm31.Column)({ name: "iban", type: "varchar", nullable: true })
|
|
4485
4447
|
], BankDetail.prototype, "iban", 2);
|
|
4486
4448
|
__decorateClass([
|
|
4487
|
-
(0,
|
|
4449
|
+
(0, import_typeorm31.Column)({
|
|
4488
4450
|
name: "account_type",
|
|
4489
4451
|
type: "enum",
|
|
4490
4452
|
enum: BankAccountTypeEnum,
|
|
@@ -4492,7 +4454,7 @@ __decorateClass([
|
|
|
4492
4454
|
})
|
|
4493
4455
|
], BankDetail.prototype, "accountType", 2);
|
|
4494
4456
|
__decorateClass([
|
|
4495
|
-
(0,
|
|
4457
|
+
(0, import_typeorm31.Column)({
|
|
4496
4458
|
name: "account_scope",
|
|
4497
4459
|
type: "enum",
|
|
4498
4460
|
enum: BankAccountScopeEnum,
|
|
@@ -4500,150 +4462,150 @@ __decorateClass([
|
|
|
4500
4462
|
})
|
|
4501
4463
|
], BankDetail.prototype, "accountScope", 2);
|
|
4502
4464
|
BankDetail = __decorateClass([
|
|
4503
|
-
(0,
|
|
4465
|
+
(0, import_typeorm31.Entity)("bank_details")
|
|
4504
4466
|
], BankDetail);
|
|
4505
4467
|
|
|
4506
4468
|
// src/entities/system-preference.entity.ts
|
|
4507
|
-
var
|
|
4469
|
+
var import_typeorm32 = require("typeorm");
|
|
4508
4470
|
var SystemPreference = class extends BaseEntity {
|
|
4509
4471
|
};
|
|
4510
4472
|
// individual index to find system preference by user
|
|
4511
4473
|
__decorateClass([
|
|
4512
|
-
(0,
|
|
4513
|
-
(0,
|
|
4474
|
+
(0, import_typeorm32.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
4475
|
+
(0, import_typeorm32.Index)()
|
|
4514
4476
|
], SystemPreference.prototype, "userId", 2);
|
|
4515
4477
|
__decorateClass([
|
|
4516
|
-
(0,
|
|
4517
|
-
(0,
|
|
4478
|
+
(0, import_typeorm32.ManyToOne)(() => User, (user) => user.systemPreference),
|
|
4479
|
+
(0, import_typeorm32.JoinColumn)({ name: "user_id" })
|
|
4518
4480
|
], SystemPreference.prototype, "user", 2);
|
|
4519
4481
|
__decorateClass([
|
|
4520
|
-
(0,
|
|
4482
|
+
(0, import_typeorm32.Column)({ name: "key", type: "varchar", nullable: false })
|
|
4521
4483
|
], SystemPreference.prototype, "key", 2);
|
|
4522
4484
|
__decorateClass([
|
|
4523
|
-
(0,
|
|
4485
|
+
(0, import_typeorm32.Column)({ name: "value", type: "boolean", default: false })
|
|
4524
4486
|
], SystemPreference.prototype, "value", 2);
|
|
4525
4487
|
SystemPreference = __decorateClass([
|
|
4526
|
-
(0,
|
|
4488
|
+
(0, import_typeorm32.Entity)("system_preferences")
|
|
4527
4489
|
], SystemPreference);
|
|
4528
4490
|
|
|
4529
4491
|
// src/entities/freelancer-experience.entity.ts
|
|
4530
|
-
var
|
|
4492
|
+
var import_typeorm33 = require("typeorm");
|
|
4531
4493
|
var FreelancerExperience = class extends BaseEntity {
|
|
4532
4494
|
};
|
|
4533
4495
|
// individual index to find experence by user
|
|
4534
4496
|
__decorateClass([
|
|
4535
|
-
(0,
|
|
4536
|
-
(0,
|
|
4497
|
+
(0, import_typeorm33.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
4498
|
+
(0, import_typeorm33.Index)()
|
|
4537
4499
|
], FreelancerExperience.prototype, "userId", 2);
|
|
4538
4500
|
__decorateClass([
|
|
4539
|
-
(0,
|
|
4540
|
-
(0,
|
|
4501
|
+
(0, import_typeorm33.ManyToOne)(() => User, (user) => user.freelancerExperience),
|
|
4502
|
+
(0, import_typeorm33.JoinColumn)({ name: "user_id" })
|
|
4541
4503
|
], FreelancerExperience.prototype, "user", 2);
|
|
4542
4504
|
__decorateClass([
|
|
4543
|
-
(0,
|
|
4505
|
+
(0, import_typeorm33.Column)({ name: "company_name", type: "varchar", nullable: true })
|
|
4544
4506
|
], FreelancerExperience.prototype, "companyName", 2);
|
|
4545
4507
|
__decorateClass([
|
|
4546
|
-
(0,
|
|
4508
|
+
(0, import_typeorm33.Column)({ name: "designation", type: "varchar", nullable: true })
|
|
4547
4509
|
], FreelancerExperience.prototype, "designation", 2);
|
|
4548
4510
|
__decorateClass([
|
|
4549
|
-
(0,
|
|
4511
|
+
(0, import_typeorm33.Column)({ name: "job_duration", type: "varchar", nullable: true })
|
|
4550
4512
|
], FreelancerExperience.prototype, "jobDuration", 2);
|
|
4551
4513
|
__decorateClass([
|
|
4552
|
-
(0,
|
|
4514
|
+
(0, import_typeorm33.Column)({ name: "description", type: "varchar", nullable: true })
|
|
4553
4515
|
], FreelancerExperience.prototype, "description", 2);
|
|
4554
4516
|
FreelancerExperience = __decorateClass([
|
|
4555
|
-
(0,
|
|
4517
|
+
(0, import_typeorm33.Entity)("freelancer_experiences")
|
|
4556
4518
|
], FreelancerExperience);
|
|
4557
4519
|
|
|
4558
4520
|
// src/entities/freelancer-education.entity.ts
|
|
4559
|
-
var
|
|
4521
|
+
var import_typeorm34 = require("typeorm");
|
|
4560
4522
|
var FreelancerEducation = class extends BaseEntity {
|
|
4561
4523
|
};
|
|
4562
4524
|
// individual index to find education by user
|
|
4563
4525
|
__decorateClass([
|
|
4564
|
-
(0,
|
|
4565
|
-
(0,
|
|
4526
|
+
(0, import_typeorm34.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
4527
|
+
(0, import_typeorm34.Index)()
|
|
4566
4528
|
], FreelancerEducation.prototype, "userId", 2);
|
|
4567
4529
|
__decorateClass([
|
|
4568
|
-
(0,
|
|
4569
|
-
(0,
|
|
4530
|
+
(0, import_typeorm34.ManyToOne)(() => User, (user) => user.freelancerEducation),
|
|
4531
|
+
(0, import_typeorm34.JoinColumn)({ name: "user_id" })
|
|
4570
4532
|
], FreelancerEducation.prototype, "user", 2);
|
|
4571
4533
|
__decorateClass([
|
|
4572
|
-
(0,
|
|
4534
|
+
(0, import_typeorm34.Column)({ name: "degree", type: "varchar", nullable: true })
|
|
4573
4535
|
], FreelancerEducation.prototype, "degree", 2);
|
|
4574
4536
|
__decorateClass([
|
|
4575
|
-
(0,
|
|
4537
|
+
(0, import_typeorm34.Column)({ name: "university", type: "varchar", nullable: true })
|
|
4576
4538
|
], FreelancerEducation.prototype, "university", 2);
|
|
4577
4539
|
__decorateClass([
|
|
4578
|
-
(0,
|
|
4540
|
+
(0, import_typeorm34.Column)({ name: "year_of_graduation", type: "varchar", nullable: true })
|
|
4579
4541
|
], FreelancerEducation.prototype, "yearOfGraduation", 2);
|
|
4580
4542
|
FreelancerEducation = __decorateClass([
|
|
4581
|
-
(0,
|
|
4543
|
+
(0, import_typeorm34.Entity)("freelancer_educations")
|
|
4582
4544
|
], FreelancerEducation);
|
|
4583
4545
|
|
|
4584
4546
|
// src/entities/freelancer-project.entity.ts
|
|
4585
|
-
var
|
|
4547
|
+
var import_typeorm35 = require("typeorm");
|
|
4586
4548
|
var FreelancerProject = class extends BaseEntity {
|
|
4587
4549
|
};
|
|
4588
4550
|
// individual index to find project by user
|
|
4589
4551
|
__decorateClass([
|
|
4590
|
-
(0,
|
|
4591
|
-
(0,
|
|
4552
|
+
(0, import_typeorm35.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
4553
|
+
(0, import_typeorm35.Index)()
|
|
4592
4554
|
], FreelancerProject.prototype, "userId", 2);
|
|
4593
4555
|
__decorateClass([
|
|
4594
|
-
(0,
|
|
4595
|
-
(0,
|
|
4556
|
+
(0, import_typeorm35.ManyToOne)(() => User, (user) => user.freelancerProject),
|
|
4557
|
+
(0, import_typeorm35.JoinColumn)({ name: "user_id" })
|
|
4596
4558
|
], FreelancerProject.prototype, "user", 2);
|
|
4597
4559
|
__decorateClass([
|
|
4598
|
-
(0,
|
|
4560
|
+
(0, import_typeorm35.Column)({ name: "project_name", type: "varchar", nullable: true })
|
|
4599
4561
|
], FreelancerProject.prototype, "projectName", 2);
|
|
4600
4562
|
__decorateClass([
|
|
4601
|
-
(0,
|
|
4563
|
+
(0, import_typeorm35.Column)({ name: "start_date", type: "date", nullable: true })
|
|
4602
4564
|
], FreelancerProject.prototype, "startDate", 2);
|
|
4603
4565
|
__decorateClass([
|
|
4604
|
-
(0,
|
|
4566
|
+
(0, import_typeorm35.Column)({ name: "end_date", type: "date", nullable: true })
|
|
4605
4567
|
], FreelancerProject.prototype, "endDate", 2);
|
|
4606
4568
|
__decorateClass([
|
|
4607
|
-
(0,
|
|
4569
|
+
(0, import_typeorm35.Column)({ name: "client_name", type: "varchar", nullable: true })
|
|
4608
4570
|
], FreelancerProject.prototype, "clientName", 2);
|
|
4609
4571
|
__decorateClass([
|
|
4610
|
-
(0,
|
|
4572
|
+
(0, import_typeorm35.Column)({ name: "git_link", type: "varchar", nullable: true })
|
|
4611
4573
|
], FreelancerProject.prototype, "gitLink", 2);
|
|
4612
4574
|
__decorateClass([
|
|
4613
|
-
(0,
|
|
4575
|
+
(0, import_typeorm35.Column)({ name: "description", type: "varchar", nullable: true })
|
|
4614
4576
|
], FreelancerProject.prototype, "description", 2);
|
|
4615
4577
|
FreelancerProject = __decorateClass([
|
|
4616
|
-
(0,
|
|
4578
|
+
(0, import_typeorm35.Entity)("freelancer_projects")
|
|
4617
4579
|
], FreelancerProject);
|
|
4618
4580
|
|
|
4619
4581
|
// src/entities/freelancer-casestudy.entity.ts
|
|
4620
|
-
var
|
|
4582
|
+
var import_typeorm36 = require("typeorm");
|
|
4621
4583
|
var FreelancerCaseStudy = class extends BaseEntity {
|
|
4622
4584
|
};
|
|
4623
4585
|
// individual index to find case study by user
|
|
4624
4586
|
__decorateClass([
|
|
4625
|
-
(0,
|
|
4626
|
-
(0,
|
|
4587
|
+
(0, import_typeorm36.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
4588
|
+
(0, import_typeorm36.Index)()
|
|
4627
4589
|
], FreelancerCaseStudy.prototype, "userId", 2);
|
|
4628
4590
|
__decorateClass([
|
|
4629
|
-
(0,
|
|
4630
|
-
(0,
|
|
4591
|
+
(0, import_typeorm36.ManyToOne)(() => User, (user) => user.freelancerCaseStudy),
|
|
4592
|
+
(0, import_typeorm36.JoinColumn)({ name: "user_id" })
|
|
4631
4593
|
], FreelancerCaseStudy.prototype, "user", 2);
|
|
4632
4594
|
__decorateClass([
|
|
4633
|
-
(0,
|
|
4595
|
+
(0, import_typeorm36.Column)({ name: "project_name", type: "varchar", nullable: true })
|
|
4634
4596
|
], FreelancerCaseStudy.prototype, "projectName", 2);
|
|
4635
4597
|
__decorateClass([
|
|
4636
|
-
(0,
|
|
4598
|
+
(0, import_typeorm36.Column)({ name: "case_study_link", type: "varchar", nullable: true })
|
|
4637
4599
|
], FreelancerCaseStudy.prototype, "caseStudyLink", 2);
|
|
4638
4600
|
__decorateClass([
|
|
4639
|
-
(0,
|
|
4601
|
+
(0, import_typeorm36.Column)({ name: "description", type: "varchar", nullable: true })
|
|
4640
4602
|
], FreelancerCaseStudy.prototype, "description", 2);
|
|
4641
4603
|
FreelancerCaseStudy = __decorateClass([
|
|
4642
|
-
(0,
|
|
4604
|
+
(0, import_typeorm36.Entity)("freelancer_case_studies")
|
|
4643
4605
|
], FreelancerCaseStudy);
|
|
4644
4606
|
|
|
4645
4607
|
// src/entities/freelancer-skill.entity.ts
|
|
4646
|
-
var
|
|
4608
|
+
var import_typeorm37 = require("typeorm");
|
|
4647
4609
|
var FreelancerSkillCategoryEnum = /* @__PURE__ */ ((FreelancerSkillCategoryEnum2) => {
|
|
4648
4610
|
FreelancerSkillCategoryEnum2[FreelancerSkillCategoryEnum2["GOOD_TO_HAVE"] = 0] = "GOOD_TO_HAVE";
|
|
4649
4611
|
FreelancerSkillCategoryEnum2[FreelancerSkillCategoryEnum2["MUST_HAVE"] = 1] = "MUST_HAVE";
|
|
@@ -4653,18 +4615,18 @@ var FreelancerSkill = class extends BaseEntity {
|
|
|
4653
4615
|
};
|
|
4654
4616
|
// individual index to find core skills by user
|
|
4655
4617
|
__decorateClass([
|
|
4656
|
-
(0,
|
|
4657
|
-
(0,
|
|
4618
|
+
(0, import_typeorm37.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
4619
|
+
(0, import_typeorm37.Index)()
|
|
4658
4620
|
], FreelancerSkill.prototype, "userId", 2);
|
|
4659
4621
|
__decorateClass([
|
|
4660
|
-
(0,
|
|
4661
|
-
(0,
|
|
4622
|
+
(0, import_typeorm37.ManyToOne)(() => User, (user) => user.freelancerSkills),
|
|
4623
|
+
(0, import_typeorm37.JoinColumn)({ name: "user_id" })
|
|
4662
4624
|
], FreelancerSkill.prototype, "user", 2);
|
|
4663
4625
|
__decorateClass([
|
|
4664
|
-
(0,
|
|
4626
|
+
(0, import_typeorm37.Column)({ name: "skill_name", type: "varchar", nullable: true })
|
|
4665
4627
|
], FreelancerSkill.prototype, "skillName", 2);
|
|
4666
4628
|
__decorateClass([
|
|
4667
|
-
(0,
|
|
4629
|
+
(0, import_typeorm37.Column)({
|
|
4668
4630
|
name: "skill_category",
|
|
4669
4631
|
type: "smallint",
|
|
4670
4632
|
default: 1,
|
|
@@ -4672,51 +4634,51 @@ __decorateClass([
|
|
|
4672
4634
|
})
|
|
4673
4635
|
], FreelancerSkill.prototype, "skillCategory", 2);
|
|
4674
4636
|
FreelancerSkill = __decorateClass([
|
|
4675
|
-
(0,
|
|
4637
|
+
(0, import_typeorm37.Entity)("freelancer_skills")
|
|
4676
4638
|
], FreelancerSkill);
|
|
4677
4639
|
|
|
4678
4640
|
// src/entities/freelancer-tool.entity.ts
|
|
4679
|
-
var
|
|
4641
|
+
var import_typeorm38 = require("typeorm");
|
|
4680
4642
|
var FreelancerTool = class extends BaseEntity {
|
|
4681
4643
|
};
|
|
4682
4644
|
// individual index to find tool by user
|
|
4683
4645
|
__decorateClass([
|
|
4684
|
-
(0,
|
|
4685
|
-
(0,
|
|
4646
|
+
(0, import_typeorm38.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
4647
|
+
(0, import_typeorm38.Index)()
|
|
4686
4648
|
], FreelancerTool.prototype, "userId", 2);
|
|
4687
4649
|
__decorateClass([
|
|
4688
|
-
(0,
|
|
4689
|
-
(0,
|
|
4650
|
+
(0, import_typeorm38.ManyToOne)(() => User, (user) => user.freelancerTool),
|
|
4651
|
+
(0, import_typeorm38.JoinColumn)({ name: "user_id" })
|
|
4690
4652
|
], FreelancerTool.prototype, "user", 2);
|
|
4691
4653
|
__decorateClass([
|
|
4692
|
-
(0,
|
|
4654
|
+
(0, import_typeorm38.Column)({ name: "tool_name", type: "varchar", nullable: true })
|
|
4693
4655
|
], FreelancerTool.prototype, "toolName", 2);
|
|
4694
4656
|
FreelancerTool = __decorateClass([
|
|
4695
|
-
(0,
|
|
4657
|
+
(0, import_typeorm38.Entity)("freelancer_tools")
|
|
4696
4658
|
], FreelancerTool);
|
|
4697
4659
|
|
|
4698
4660
|
// src/entities/freelancer-framework.entity.ts
|
|
4699
|
-
var
|
|
4661
|
+
var import_typeorm39 = require("typeorm");
|
|
4700
4662
|
var FreelancerFramework = class extends BaseEntity {
|
|
4701
4663
|
};
|
|
4702
4664
|
// individual index to find framework by user
|
|
4703
4665
|
__decorateClass([
|
|
4704
|
-
(0,
|
|
4705
|
-
(0,
|
|
4666
|
+
(0, import_typeorm39.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
4667
|
+
(0, import_typeorm39.Index)()
|
|
4706
4668
|
], FreelancerFramework.prototype, "userId", 2);
|
|
4707
4669
|
__decorateClass([
|
|
4708
|
-
(0,
|
|
4709
|
-
(0,
|
|
4670
|
+
(0, import_typeorm39.ManyToOne)(() => User, (user) => user.freelancerFramework),
|
|
4671
|
+
(0, import_typeorm39.JoinColumn)({ name: "user_id" })
|
|
4710
4672
|
], FreelancerFramework.prototype, "user", 2);
|
|
4711
4673
|
__decorateClass([
|
|
4712
|
-
(0,
|
|
4674
|
+
(0, import_typeorm39.Column)({ name: "framework_name", type: "varchar", nullable: true })
|
|
4713
4675
|
], FreelancerFramework.prototype, "frameworkName", 2);
|
|
4714
4676
|
FreelancerFramework = __decorateClass([
|
|
4715
|
-
(0,
|
|
4677
|
+
(0, import_typeorm39.Entity)("freelancer_frameworks")
|
|
4716
4678
|
], FreelancerFramework);
|
|
4717
4679
|
|
|
4718
4680
|
// src/entities/freelancer-assessment.entity.ts
|
|
4719
|
-
var
|
|
4681
|
+
var import_typeorm40 = require("typeorm");
|
|
4720
4682
|
var AssessmentStatusEnum = /* @__PURE__ */ ((AssessmentStatusEnum2) => {
|
|
4721
4683
|
AssessmentStatusEnum2["NOT_ATTEMPTED"] = "NOT_ATTEMPTED";
|
|
4722
4684
|
AssessmentStatusEnum2["ACTIVE"] = "ACTIVE";
|
|
@@ -4732,30 +4694,30 @@ var AssessmentStatusEnum = /* @__PURE__ */ ((AssessmentStatusEnum2) => {
|
|
|
4732
4694
|
var FreelancerAssessment = class extends BaseEntity {
|
|
4733
4695
|
};
|
|
4734
4696
|
__decorateClass([
|
|
4735
|
-
(0,
|
|
4736
|
-
(0,
|
|
4697
|
+
(0, import_typeorm40.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
4698
|
+
(0, import_typeorm40.Index)()
|
|
4737
4699
|
], FreelancerAssessment.prototype, "userId", 2);
|
|
4738
4700
|
__decorateClass([
|
|
4739
|
-
(0,
|
|
4740
|
-
(0,
|
|
4701
|
+
(0, import_typeorm40.ManyToOne)(() => User, (user) => user.assessments),
|
|
4702
|
+
(0, import_typeorm40.JoinColumn)({ name: "user_id" })
|
|
4741
4703
|
], FreelancerAssessment.prototype, "user", 2);
|
|
4742
4704
|
__decorateClass([
|
|
4743
|
-
(0,
|
|
4705
|
+
(0, import_typeorm40.Column)({ name: "interview_id", type: "varchar", nullable: true })
|
|
4744
4706
|
], FreelancerAssessment.prototype, "interviewId", 2);
|
|
4745
4707
|
__decorateClass([
|
|
4746
|
-
(0,
|
|
4708
|
+
(0, import_typeorm40.Column)({ name: "interview_link", type: "text", nullable: true })
|
|
4747
4709
|
], FreelancerAssessment.prototype, "interviewLink", 2);
|
|
4748
4710
|
__decorateClass([
|
|
4749
|
-
(0,
|
|
4711
|
+
(0, import_typeorm40.Column)({ name: "recording_link", type: "text", nullable: true })
|
|
4750
4712
|
], FreelancerAssessment.prototype, "recordingLink", 2);
|
|
4751
4713
|
__decorateClass([
|
|
4752
|
-
(0,
|
|
4714
|
+
(0, import_typeorm40.Column)({ name: "iframe_response", type: "jsonb", nullable: true })
|
|
4753
4715
|
], FreelancerAssessment.prototype, "iframeResponse", 2);
|
|
4754
4716
|
__decorateClass([
|
|
4755
|
-
(0,
|
|
4717
|
+
(0, import_typeorm40.Column)({ name: "interview_summary", type: "jsonb", nullable: true })
|
|
4756
4718
|
], FreelancerAssessment.prototype, "interviewSummary", 2);
|
|
4757
4719
|
__decorateClass([
|
|
4758
|
-
(0,
|
|
4720
|
+
(0, import_typeorm40.Column)({
|
|
4759
4721
|
name: "status",
|
|
4760
4722
|
type: "enum",
|
|
4761
4723
|
enum: AssessmentStatusEnum,
|
|
@@ -4763,11 +4725,11 @@ __decorateClass([
|
|
|
4763
4725
|
})
|
|
4764
4726
|
], FreelancerAssessment.prototype, "status", 2);
|
|
4765
4727
|
FreelancerAssessment = __decorateClass([
|
|
4766
|
-
(0,
|
|
4728
|
+
(0, import_typeorm40.Entity)("freelancer_assessments")
|
|
4767
4729
|
], FreelancerAssessment);
|
|
4768
4730
|
|
|
4769
4731
|
// src/entities/freelancer-declaration.entity.ts
|
|
4770
|
-
var
|
|
4732
|
+
var import_typeorm41 = require("typeorm");
|
|
4771
4733
|
var DocumentType = /* @__PURE__ */ ((DocumentType2) => {
|
|
4772
4734
|
DocumentType2["AADHAAR"] = "AADHAAR_CARD";
|
|
4773
4735
|
DocumentType2["PASSPORT"] = "PASSPORT";
|
|
@@ -4779,15 +4741,15 @@ var FreelancerDeclaration = class extends BaseEntity {
|
|
|
4779
4741
|
};
|
|
4780
4742
|
// individual index to find declaration by user
|
|
4781
4743
|
__decorateClass([
|
|
4782
|
-
(0,
|
|
4783
|
-
(0,
|
|
4744
|
+
(0, import_typeorm41.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
4745
|
+
(0, import_typeorm41.Index)()
|
|
4784
4746
|
], FreelancerDeclaration.prototype, "userId", 2);
|
|
4785
4747
|
__decorateClass([
|
|
4786
|
-
(0,
|
|
4787
|
-
(0,
|
|
4748
|
+
(0, import_typeorm41.ManyToOne)(() => User, (user) => user.freelancerDeclaration),
|
|
4749
|
+
(0, import_typeorm41.JoinColumn)({ name: "user_id" })
|
|
4788
4750
|
], FreelancerDeclaration.prototype, "user", 2);
|
|
4789
4751
|
__decorateClass([
|
|
4790
|
-
(0,
|
|
4752
|
+
(0, import_typeorm41.Column)({
|
|
4791
4753
|
name: "document_type",
|
|
4792
4754
|
type: "enum",
|
|
4793
4755
|
enum: DocumentType,
|
|
@@ -4795,144 +4757,144 @@ __decorateClass([
|
|
|
4795
4757
|
})
|
|
4796
4758
|
], FreelancerDeclaration.prototype, "documentType", 2);
|
|
4797
4759
|
__decorateClass([
|
|
4798
|
-
(0,
|
|
4760
|
+
(0, import_typeorm41.Column)({ name: "front_document_url", type: "varchar", nullable: true })
|
|
4799
4761
|
], FreelancerDeclaration.prototype, "frontDocumentUrl", 2);
|
|
4800
4762
|
__decorateClass([
|
|
4801
|
-
(0,
|
|
4763
|
+
(0, import_typeorm41.Column)({ name: "back_document_url", type: "varchar", nullable: true })
|
|
4802
4764
|
], FreelancerDeclaration.prototype, "backDocumentUrl", 2);
|
|
4803
4765
|
__decorateClass([
|
|
4804
|
-
(0,
|
|
4766
|
+
(0, import_typeorm41.Column)({ name: "declaration_accepted", type: "boolean", default: false })
|
|
4805
4767
|
], FreelancerDeclaration.prototype, "declarationAccepted", 2);
|
|
4806
4768
|
__decorateClass([
|
|
4807
|
-
(0,
|
|
4769
|
+
(0, import_typeorm41.Column)({ name: "digital_signature_url", type: "varchar", nullable: true })
|
|
4808
4770
|
], FreelancerDeclaration.prototype, "digitalSignatureUrl", 2);
|
|
4809
4771
|
FreelancerDeclaration = __decorateClass([
|
|
4810
|
-
(0,
|
|
4772
|
+
(0, import_typeorm41.Entity)("freelancer_declaration")
|
|
4811
4773
|
], FreelancerDeclaration);
|
|
4812
4774
|
|
|
4813
4775
|
// src/entities/company-members-roles.entity.ts
|
|
4814
|
-
var
|
|
4776
|
+
var import_typeorm45 = require("typeorm");
|
|
4815
4777
|
|
|
4816
4778
|
// src/entities/company-role.entity.ts
|
|
4817
|
-
var
|
|
4779
|
+
var import_typeorm44 = require("typeorm");
|
|
4818
4780
|
|
|
4819
4781
|
// src/entities/company-role-permission.entity.ts
|
|
4820
|
-
var
|
|
4782
|
+
var import_typeorm43 = require("typeorm");
|
|
4821
4783
|
|
|
4822
4784
|
// src/entities/permission.entity.ts
|
|
4823
|
-
var
|
|
4785
|
+
var import_typeorm42 = require("typeorm");
|
|
4824
4786
|
var Permission = class extends BaseEntity {
|
|
4825
4787
|
};
|
|
4826
4788
|
__decorateClass([
|
|
4827
|
-
(0,
|
|
4789
|
+
(0, import_typeorm42.Column)({ name: "name", type: "varchar", nullable: true })
|
|
4828
4790
|
], Permission.prototype, "name", 2);
|
|
4829
4791
|
__decorateClass([
|
|
4830
|
-
(0,
|
|
4831
|
-
(0,
|
|
4792
|
+
(0, import_typeorm42.Column)({ name: "slug", type: "varchar", nullable: true, unique: true }),
|
|
4793
|
+
(0, import_typeorm42.Index)()
|
|
4832
4794
|
], Permission.prototype, "slug", 2);
|
|
4833
4795
|
__decorateClass([
|
|
4834
|
-
(0,
|
|
4796
|
+
(0, import_typeorm42.Column)({ name: "description", type: "text", nullable: true })
|
|
4835
4797
|
], Permission.prototype, "description", 2);
|
|
4836
4798
|
__decorateClass([
|
|
4837
|
-
(0,
|
|
4799
|
+
(0, import_typeorm42.Column)({ name: "is_active", type: "boolean", default: true })
|
|
4838
4800
|
], Permission.prototype, "isActive", 2);
|
|
4839
4801
|
Permission = __decorateClass([
|
|
4840
|
-
(0,
|
|
4802
|
+
(0, import_typeorm42.Entity)("permissions")
|
|
4841
4803
|
], Permission);
|
|
4842
4804
|
|
|
4843
4805
|
// src/entities/company-role-permission.entity.ts
|
|
4844
4806
|
var CompanyRolePermission = class extends BaseEntity {
|
|
4845
4807
|
};
|
|
4846
4808
|
__decorateClass([
|
|
4847
|
-
(0,
|
|
4848
|
-
(0,
|
|
4809
|
+
(0, import_typeorm43.Column)({ name: "company_role_id", type: "integer", nullable: true }),
|
|
4810
|
+
(0, import_typeorm43.Index)()
|
|
4849
4811
|
], CompanyRolePermission.prototype, "companyRoleId", 2);
|
|
4850
4812
|
__decorateClass([
|
|
4851
|
-
(0,
|
|
4813
|
+
(0, import_typeorm43.ManyToOne)(() => CompanyRole, (role) => role.rolePermissions, {
|
|
4852
4814
|
onDelete: "CASCADE"
|
|
4853
4815
|
}),
|
|
4854
|
-
(0,
|
|
4816
|
+
(0, import_typeorm43.JoinColumn)({ name: "company_role_id" })
|
|
4855
4817
|
], CompanyRolePermission.prototype, "companyRole", 2);
|
|
4856
4818
|
__decorateClass([
|
|
4857
|
-
(0,
|
|
4858
|
-
(0,
|
|
4819
|
+
(0, import_typeorm43.Column)({ name: "permission_id", type: "integer" }),
|
|
4820
|
+
(0, import_typeorm43.Index)()
|
|
4859
4821
|
], CompanyRolePermission.prototype, "permissionId", 2);
|
|
4860
4822
|
__decorateClass([
|
|
4861
|
-
(0,
|
|
4862
|
-
(0,
|
|
4823
|
+
(0, import_typeorm43.ManyToOne)(() => Permission, { onDelete: "CASCADE" }),
|
|
4824
|
+
(0, import_typeorm43.JoinColumn)({ name: "permission_id" })
|
|
4863
4825
|
], CompanyRolePermission.prototype, "permission", 2);
|
|
4864
4826
|
__decorateClass([
|
|
4865
|
-
(0,
|
|
4827
|
+
(0, import_typeorm43.Column)({ name: "assigned_by", type: "integer", nullable: true })
|
|
4866
4828
|
], CompanyRolePermission.prototype, "assignedBy", 2);
|
|
4867
4829
|
CompanyRolePermission = __decorateClass([
|
|
4868
|
-
(0,
|
|
4830
|
+
(0, import_typeorm43.Entity)("company_role_permissions")
|
|
4869
4831
|
], CompanyRolePermission);
|
|
4870
4832
|
|
|
4871
4833
|
// src/entities/company-role.entity.ts
|
|
4872
4834
|
var CompanyRole = class extends BaseEntity {
|
|
4873
4835
|
};
|
|
4874
4836
|
__decorateClass([
|
|
4875
|
-
(0,
|
|
4876
|
-
(0,
|
|
4837
|
+
(0, import_typeorm44.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
4838
|
+
(0, import_typeorm44.Index)()
|
|
4877
4839
|
], CompanyRole.prototype, "userId", 2);
|
|
4878
4840
|
__decorateClass([
|
|
4879
|
-
(0,
|
|
4880
|
-
(0,
|
|
4841
|
+
(0, import_typeorm44.ManyToOne)(() => User, (user) => user.otps),
|
|
4842
|
+
(0, import_typeorm44.JoinColumn)({ name: "user_id" })
|
|
4881
4843
|
], CompanyRole.prototype, "user", 2);
|
|
4882
4844
|
__decorateClass([
|
|
4883
|
-
(0,
|
|
4845
|
+
(0, import_typeorm44.Column)({ name: "name", type: "varchar" })
|
|
4884
4846
|
], CompanyRole.prototype, "name", 2);
|
|
4885
4847
|
__decorateClass([
|
|
4886
|
-
(0,
|
|
4887
|
-
(0,
|
|
4848
|
+
(0, import_typeorm44.Column)({ name: "slug", type: "varchar", nullable: true, unique: true }),
|
|
4849
|
+
(0, import_typeorm44.Index)()
|
|
4888
4850
|
], CompanyRole.prototype, "slug", 2);
|
|
4889
4851
|
__decorateClass([
|
|
4890
|
-
(0,
|
|
4852
|
+
(0, import_typeorm44.Column)({ name: "description", type: "text", nullable: true })
|
|
4891
4853
|
], CompanyRole.prototype, "description", 2);
|
|
4892
4854
|
__decorateClass([
|
|
4893
|
-
(0,
|
|
4855
|
+
(0, import_typeorm44.Column)({ name: "is_active", type: "boolean", default: true })
|
|
4894
4856
|
], CompanyRole.prototype, "isActive", 2);
|
|
4895
4857
|
__decorateClass([
|
|
4896
|
-
(0,
|
|
4858
|
+
(0, import_typeorm44.OneToMany)(() => CompanyRolePermission, (rp) => rp.companyRole)
|
|
4897
4859
|
], CompanyRole.prototype, "rolePermissions", 2);
|
|
4898
4860
|
CompanyRole = __decorateClass([
|
|
4899
|
-
(0,
|
|
4861
|
+
(0, import_typeorm44.Entity)("company_roles")
|
|
4900
4862
|
], CompanyRole);
|
|
4901
4863
|
|
|
4902
4864
|
// src/entities/company-members-roles.entity.ts
|
|
4903
4865
|
var CompanyMemberRole = class extends BaseEntity {
|
|
4904
4866
|
};
|
|
4905
4867
|
__decorateClass([
|
|
4906
|
-
(0,
|
|
4907
|
-
(0,
|
|
4868
|
+
(0, import_typeorm45.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
4869
|
+
(0, import_typeorm45.Index)()
|
|
4908
4870
|
], CompanyMemberRole.prototype, "userId", 2);
|
|
4909
4871
|
__decorateClass([
|
|
4910
|
-
(0,
|
|
4911
|
-
(0,
|
|
4872
|
+
(0, import_typeorm45.ManyToOne)(() => User),
|
|
4873
|
+
(0, import_typeorm45.JoinColumn)({ name: "user_id" })
|
|
4912
4874
|
], CompanyMemberRole.prototype, "user", 2);
|
|
4913
4875
|
__decorateClass([
|
|
4914
|
-
(0,
|
|
4915
|
-
(0,
|
|
4876
|
+
(0, import_typeorm45.ManyToOne)(() => CompanyRole),
|
|
4877
|
+
(0, import_typeorm45.JoinColumn)({ name: "company_role_id" })
|
|
4916
4878
|
], CompanyMemberRole.prototype, "role", 2);
|
|
4917
4879
|
__decorateClass([
|
|
4918
|
-
(0,
|
|
4919
|
-
(0,
|
|
4880
|
+
(0, import_typeorm45.Column)({ name: "company_role_id", type: "integer", nullable: true }),
|
|
4881
|
+
(0, import_typeorm45.Index)()
|
|
4920
4882
|
], CompanyMemberRole.prototype, "companyRoleId", 2);
|
|
4921
4883
|
__decorateClass([
|
|
4922
|
-
(0,
|
|
4884
|
+
(0, import_typeorm45.Column)({ name: "assigned_by", type: "integer", nullable: true })
|
|
4923
4885
|
], CompanyMemberRole.prototype, "assignedBy", 2);
|
|
4924
4886
|
CompanyMemberRole = __decorateClass([
|
|
4925
|
-
(0,
|
|
4887
|
+
(0, import_typeorm45.Entity)("company_member_roles")
|
|
4926
4888
|
], CompanyMemberRole);
|
|
4927
4889
|
|
|
4928
4890
|
// src/entities/assessment-answer.entity.ts
|
|
4929
|
-
var
|
|
4891
|
+
var import_typeorm48 = require("typeorm");
|
|
4930
4892
|
|
|
4931
4893
|
// src/entities/assessment-question.entity.ts
|
|
4932
|
-
var
|
|
4894
|
+
var import_typeorm47 = require("typeorm");
|
|
4933
4895
|
|
|
4934
4896
|
// src/entities/assessment-question-option.entity.ts
|
|
4935
|
-
var
|
|
4897
|
+
var import_typeorm46 = require("typeorm");
|
|
4936
4898
|
var AnswerTypeEnum = /* @__PURE__ */ ((AnswerTypeEnum2) => {
|
|
4937
4899
|
AnswerTypeEnum2["CORRECT"] = "CORRECT";
|
|
4938
4900
|
AnswerTypeEnum2["ACCEPTABLE"] = "ACCEPTABLE";
|
|
@@ -4942,21 +4904,21 @@ var AnswerTypeEnum = /* @__PURE__ */ ((AnswerTypeEnum2) => {
|
|
|
4942
4904
|
var AssessmetQuestionOption = class extends BaseEntity {
|
|
4943
4905
|
};
|
|
4944
4906
|
__decorateClass([
|
|
4945
|
-
(0,
|
|
4946
|
-
(0,
|
|
4907
|
+
(0, import_typeorm46.Column)({ name: "question_id", type: "integer", nullable: true }),
|
|
4908
|
+
(0, import_typeorm46.Index)()
|
|
4947
4909
|
], AssessmetQuestionOption.prototype, "questionId", 2);
|
|
4948
4910
|
__decorateClass([
|
|
4949
|
-
(0,
|
|
4911
|
+
(0, import_typeorm46.ManyToOne)(
|
|
4950
4912
|
() => AssessmetQuestion,
|
|
4951
4913
|
(assessmentQuestion) => assessmentQuestion.options
|
|
4952
4914
|
),
|
|
4953
|
-
(0,
|
|
4915
|
+
(0, import_typeorm46.JoinColumn)({ name: "question_id" })
|
|
4954
4916
|
], AssessmetQuestionOption.prototype, "question", 2);
|
|
4955
4917
|
__decorateClass([
|
|
4956
|
-
(0,
|
|
4918
|
+
(0, import_typeorm46.Column)({ name: "text", type: "varchar", nullable: true })
|
|
4957
4919
|
], AssessmetQuestionOption.prototype, "text", 2);
|
|
4958
4920
|
__decorateClass([
|
|
4959
|
-
(0,
|
|
4921
|
+
(0, import_typeorm46.Column)({
|
|
4960
4922
|
name: "answer_type",
|
|
4961
4923
|
type: "enum",
|
|
4962
4924
|
enum: AnswerTypeEnum,
|
|
@@ -4964,13 +4926,13 @@ __decorateClass([
|
|
|
4964
4926
|
})
|
|
4965
4927
|
], AssessmetQuestionOption.prototype, "answerType", 2);
|
|
4966
4928
|
__decorateClass([
|
|
4967
|
-
(0,
|
|
4929
|
+
(0, import_typeorm46.Column)({ name: "is_active", type: "boolean", default: true })
|
|
4968
4930
|
], AssessmetQuestionOption.prototype, "isActive", 2);
|
|
4969
4931
|
__decorateClass([
|
|
4970
|
-
(0,
|
|
4932
|
+
(0, import_typeorm46.OneToMany)(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.option)
|
|
4971
4933
|
], AssessmetQuestionOption.prototype, "selectedOptions", 2);
|
|
4972
4934
|
AssessmetQuestionOption = __decorateClass([
|
|
4973
|
-
(0,
|
|
4935
|
+
(0, import_typeorm46.Entity)("assessment_question_options")
|
|
4974
4936
|
], AssessmetQuestionOption);
|
|
4975
4937
|
|
|
4976
4938
|
// src/entities/assessment-question.entity.ts
|
|
@@ -4982,10 +4944,10 @@ var QuestionForEnum = /* @__PURE__ */ ((QuestionForEnum2) => {
|
|
|
4982
4944
|
var AssessmetQuestion = class extends BaseEntity {
|
|
4983
4945
|
};
|
|
4984
4946
|
__decorateClass([
|
|
4985
|
-
(0,
|
|
4947
|
+
(0, import_typeorm47.Column)({ name: "text", type: "varchar", nullable: true })
|
|
4986
4948
|
], AssessmetQuestion.prototype, "text", 2);
|
|
4987
4949
|
__decorateClass([
|
|
4988
|
-
(0,
|
|
4950
|
+
(0, import_typeorm47.Column)({
|
|
4989
4951
|
name: "question_for",
|
|
4990
4952
|
type: "enum",
|
|
4991
4953
|
enum: QuestionForEnum,
|
|
@@ -4993,24 +4955,24 @@ __decorateClass([
|
|
|
4993
4955
|
})
|
|
4994
4956
|
], AssessmetQuestion.prototype, "questionFor", 2);
|
|
4995
4957
|
__decorateClass([
|
|
4996
|
-
(0,
|
|
4958
|
+
(0, import_typeorm47.Column)({ name: "is_active", type: "boolean", default: true })
|
|
4997
4959
|
], AssessmetQuestion.prototype, "isActive", 2);
|
|
4998
4960
|
__decorateClass([
|
|
4999
|
-
(0,
|
|
5000
|
-
(0,
|
|
4961
|
+
(0, import_typeorm47.Column)({ name: "candidate_id", type: "integer", nullable: true }),
|
|
4962
|
+
(0, import_typeorm47.Index)()
|
|
5001
4963
|
], AssessmetQuestion.prototype, "candidateId", 2);
|
|
5002
4964
|
__decorateClass([
|
|
5003
|
-
(0,
|
|
5004
|
-
(0,
|
|
4965
|
+
(0, import_typeorm47.ManyToOne)(() => User, (user) => user.freelancerMcq, { nullable: true }),
|
|
4966
|
+
(0, import_typeorm47.JoinColumn)({ name: "candidate_id" })
|
|
5005
4967
|
], AssessmetQuestion.prototype, "candidate", 2);
|
|
5006
4968
|
__decorateClass([
|
|
5007
|
-
(0,
|
|
4969
|
+
(0, import_typeorm47.OneToMany)(() => AssessmetQuestionOption, (assessmentQuestionOption) => assessmentQuestionOption.question)
|
|
5008
4970
|
], AssessmetQuestion.prototype, "options", 2);
|
|
5009
4971
|
__decorateClass([
|
|
5010
|
-
(0,
|
|
4972
|
+
(0, import_typeorm47.OneToMany)(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.question)
|
|
5011
4973
|
], AssessmetQuestion.prototype, "answers", 2);
|
|
5012
4974
|
AssessmetQuestion = __decorateClass([
|
|
5013
|
-
(0,
|
|
4975
|
+
(0, import_typeorm47.Entity)("assessment_questions")
|
|
5014
4976
|
], AssessmetQuestion);
|
|
5015
4977
|
|
|
5016
4978
|
// src/entities/assessment-answer.entity.ts
|
|
@@ -5023,118 +4985,118 @@ var SelectedAnswerTypeEnum = /* @__PURE__ */ ((SelectedAnswerTypeEnum2) => {
|
|
|
5023
4985
|
var AssessmentAnswer = class extends BaseEntity {
|
|
5024
4986
|
};
|
|
5025
4987
|
__decorateClass([
|
|
5026
|
-
(0,
|
|
5027
|
-
(0,
|
|
4988
|
+
(0, import_typeorm48.Column)({ name: "user_id", type: "integer" }),
|
|
4989
|
+
(0, import_typeorm48.Index)()
|
|
5028
4990
|
], AssessmentAnswer.prototype, "userId", 2);
|
|
5029
4991
|
__decorateClass([
|
|
5030
|
-
(0,
|
|
5031
|
-
(0,
|
|
4992
|
+
(0, import_typeorm48.ManyToOne)(() => User, (user) => user.assessmentAnswers),
|
|
4993
|
+
(0, import_typeorm48.JoinColumn)({ name: "user_id" })
|
|
5032
4994
|
], AssessmentAnswer.prototype, "user", 2);
|
|
5033
4995
|
__decorateClass([
|
|
5034
|
-
(0,
|
|
5035
|
-
(0,
|
|
4996
|
+
(0, import_typeorm48.Column)({ name: "question_id", type: "integer" }),
|
|
4997
|
+
(0, import_typeorm48.Index)()
|
|
5036
4998
|
], AssessmentAnswer.prototype, "questionId", 2);
|
|
5037
4999
|
__decorateClass([
|
|
5038
|
-
(0,
|
|
5000
|
+
(0, import_typeorm48.ManyToOne)(
|
|
5039
5001
|
() => AssessmetQuestion,
|
|
5040
5002
|
(assessmentQuestion) => assessmentQuestion.answers
|
|
5041
5003
|
),
|
|
5042
|
-
(0,
|
|
5004
|
+
(0, import_typeorm48.JoinColumn)({ name: "question_id" })
|
|
5043
5005
|
], AssessmentAnswer.prototype, "question", 2);
|
|
5044
5006
|
__decorateClass([
|
|
5045
|
-
(0,
|
|
5046
|
-
(0,
|
|
5007
|
+
(0, import_typeorm48.Column)({ name: "selected_option_id", type: "integer" }),
|
|
5008
|
+
(0, import_typeorm48.Index)()
|
|
5047
5009
|
], AssessmentAnswer.prototype, "selectedOptionId", 2);
|
|
5048
5010
|
__decorateClass([
|
|
5049
|
-
(0,
|
|
5011
|
+
(0, import_typeorm48.ManyToOne)(
|
|
5050
5012
|
() => AssessmetQuestionOption,
|
|
5051
5013
|
(assessmentQuestionOption) => assessmentQuestionOption.selectedOptions
|
|
5052
5014
|
),
|
|
5053
|
-
(0,
|
|
5015
|
+
(0, import_typeorm48.JoinColumn)({ name: "selected_option_id" })
|
|
5054
5016
|
], AssessmentAnswer.prototype, "option", 2);
|
|
5055
5017
|
__decorateClass([
|
|
5056
|
-
(0,
|
|
5018
|
+
(0, import_typeorm48.Column)({
|
|
5057
5019
|
name: "selected_answer_type",
|
|
5058
5020
|
type: "enum",
|
|
5059
5021
|
enum: SelectedAnswerTypeEnum
|
|
5060
5022
|
})
|
|
5061
5023
|
], AssessmentAnswer.prototype, "selectedAnswerType", 2);
|
|
5062
5024
|
__decorateClass([
|
|
5063
|
-
(0,
|
|
5025
|
+
(0, import_typeorm48.Column)({ name: "score", type: "float" })
|
|
5064
5026
|
], AssessmentAnswer.prototype, "score", 2);
|
|
5065
5027
|
AssessmentAnswer = __decorateClass([
|
|
5066
|
-
(0,
|
|
5028
|
+
(0, import_typeorm48.Entity)("assessment_answers")
|
|
5067
5029
|
], AssessmentAnswer);
|
|
5068
5030
|
|
|
5069
5031
|
// src/entities/company-skill.entity.ts
|
|
5070
|
-
var
|
|
5032
|
+
var import_typeorm49 = require("typeorm");
|
|
5071
5033
|
var CompanySkill = class extends BaseEntity {
|
|
5072
5034
|
};
|
|
5073
5035
|
// individual index to find core skills by user
|
|
5074
5036
|
__decorateClass([
|
|
5075
|
-
(0,
|
|
5076
|
-
(0,
|
|
5037
|
+
(0, import_typeorm49.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
5038
|
+
(0, import_typeorm49.Index)()
|
|
5077
5039
|
], CompanySkill.prototype, "userId", 2);
|
|
5078
5040
|
__decorateClass([
|
|
5079
|
-
(0,
|
|
5080
|
-
(0,
|
|
5041
|
+
(0, import_typeorm49.ManyToOne)(() => User, (user) => user.freelancerSkills),
|
|
5042
|
+
(0, import_typeorm49.JoinColumn)({ name: "user_id" })
|
|
5081
5043
|
], CompanySkill.prototype, "user", 2);
|
|
5082
5044
|
__decorateClass([
|
|
5083
|
-
(0,
|
|
5045
|
+
(0, import_typeorm49.Column)({ name: "skill_name", type: "varchar", nullable: true })
|
|
5084
5046
|
], CompanySkill.prototype, "skillName", 2);
|
|
5085
5047
|
CompanySkill = __decorateClass([
|
|
5086
|
-
(0,
|
|
5048
|
+
(0, import_typeorm49.Entity)("company_skills")
|
|
5087
5049
|
], CompanySkill);
|
|
5088
5050
|
|
|
5089
5051
|
// src/entities/admin-user-role.entity.ts
|
|
5090
|
-
var
|
|
5052
|
+
var import_typeorm53 = require("typeorm");
|
|
5091
5053
|
|
|
5092
5054
|
// src/entities/admin-role.entity.ts
|
|
5093
|
-
var
|
|
5055
|
+
var import_typeorm52 = require("typeorm");
|
|
5094
5056
|
|
|
5095
5057
|
// src/entities/admin-role-permission.entity.ts
|
|
5096
|
-
var
|
|
5058
|
+
var import_typeorm51 = require("typeorm");
|
|
5097
5059
|
|
|
5098
5060
|
// src/entities/admin-permission.entity.ts
|
|
5099
|
-
var
|
|
5061
|
+
var import_typeorm50 = require("typeorm");
|
|
5100
5062
|
var AdminPermission = class extends BaseEntity {
|
|
5101
5063
|
};
|
|
5102
5064
|
__decorateClass([
|
|
5103
|
-
(0,
|
|
5065
|
+
(0, import_typeorm50.Column)({ name: "permission_name", type: "varchar", nullable: true })
|
|
5104
5066
|
], AdminPermission.prototype, "permissionName", 2);
|
|
5105
5067
|
__decorateClass([
|
|
5106
|
-
(0,
|
|
5068
|
+
(0, import_typeorm50.Column)({
|
|
5107
5069
|
name: "permission_slug",
|
|
5108
5070
|
type: "varchar",
|
|
5109
5071
|
unique: true,
|
|
5110
5072
|
nullable: true
|
|
5111
5073
|
}),
|
|
5112
|
-
(0,
|
|
5074
|
+
(0, import_typeorm50.Index)()
|
|
5113
5075
|
], AdminPermission.prototype, "permissionSlug", 2);
|
|
5114
5076
|
__decorateClass([
|
|
5115
|
-
(0,
|
|
5077
|
+
(0, import_typeorm50.Column)({ name: "permission_description", type: "varchar", nullable: true })
|
|
5116
5078
|
], AdminPermission.prototype, "permissionDescription", 2);
|
|
5117
5079
|
__decorateClass([
|
|
5118
|
-
(0,
|
|
5080
|
+
(0, import_typeorm50.Column)({ name: "module", type: "varchar", nullable: true })
|
|
5119
5081
|
], AdminPermission.prototype, "module", 2);
|
|
5120
5082
|
__decorateClass([
|
|
5121
|
-
(0,
|
|
5083
|
+
(0, import_typeorm50.Column)({ name: "is_active", type: "boolean", default: true })
|
|
5122
5084
|
], AdminPermission.prototype, "isActive", 2);
|
|
5123
5085
|
__decorateClass([
|
|
5124
|
-
(0,
|
|
5086
|
+
(0, import_typeorm50.OneToMany)(
|
|
5125
5087
|
() => AdminRolePermission,
|
|
5126
5088
|
(adminRolePermission) => adminRolePermission.adminPermissions
|
|
5127
5089
|
)
|
|
5128
5090
|
], AdminPermission.prototype, "adminRole", 2);
|
|
5129
5091
|
AdminPermission = __decorateClass([
|
|
5130
|
-
(0,
|
|
5092
|
+
(0, import_typeorm50.Entity)("admin_permissions")
|
|
5131
5093
|
], AdminPermission);
|
|
5132
5094
|
|
|
5133
5095
|
// src/entities/admin-role-permission.entity.ts
|
|
5134
5096
|
var AdminRolePermission = class extends BaseEntity {
|
|
5135
5097
|
};
|
|
5136
5098
|
__decorateClass([
|
|
5137
|
-
(0,
|
|
5099
|
+
(0, import_typeorm51.Column)({
|
|
5138
5100
|
name: "role_id",
|
|
5139
5101
|
type: "int",
|
|
5140
5102
|
nullable: true,
|
|
@@ -5142,11 +5104,11 @@ __decorateClass([
|
|
|
5142
5104
|
})
|
|
5143
5105
|
], AdminRolePermission.prototype, "roleId", 2);
|
|
5144
5106
|
__decorateClass([
|
|
5145
|
-
(0,
|
|
5146
|
-
(0,
|
|
5107
|
+
(0, import_typeorm51.ManyToOne)(() => AdminRole),
|
|
5108
|
+
(0, import_typeorm51.JoinColumn)({ name: "role_id" })
|
|
5147
5109
|
], AdminRolePermission.prototype, "adminRole", 2);
|
|
5148
5110
|
__decorateClass([
|
|
5149
|
-
(0,
|
|
5111
|
+
(0, import_typeorm51.Column)({
|
|
5150
5112
|
name: "permission_id",
|
|
5151
5113
|
type: "int",
|
|
5152
5114
|
nullable: true,
|
|
@@ -5154,47 +5116,47 @@ __decorateClass([
|
|
|
5154
5116
|
})
|
|
5155
5117
|
], AdminRolePermission.prototype, "permissionId", 2);
|
|
5156
5118
|
__decorateClass([
|
|
5157
|
-
(0,
|
|
5158
|
-
(0,
|
|
5119
|
+
(0, import_typeorm51.ManyToOne)(() => AdminPermission),
|
|
5120
|
+
(0, import_typeorm51.JoinColumn)({ name: "permission_id" })
|
|
5159
5121
|
], AdminRolePermission.prototype, "adminPermissions", 2);
|
|
5160
5122
|
AdminRolePermission = __decorateClass([
|
|
5161
|
-
(0,
|
|
5123
|
+
(0, import_typeorm51.Entity)("admin_role_permissions")
|
|
5162
5124
|
], AdminRolePermission);
|
|
5163
5125
|
|
|
5164
5126
|
// src/entities/admin-role.entity.ts
|
|
5165
5127
|
var AdminRole = class extends BaseEntity {
|
|
5166
5128
|
};
|
|
5167
5129
|
__decorateClass([
|
|
5168
|
-
(0,
|
|
5130
|
+
(0, import_typeorm52.Column)({ name: "role_name", type: "varchar", nullable: true })
|
|
5169
5131
|
], AdminRole.prototype, "roleName", 2);
|
|
5170
5132
|
__decorateClass([
|
|
5171
|
-
(0,
|
|
5172
|
-
(0,
|
|
5133
|
+
(0, import_typeorm52.Column)({ name: "role_slug", type: "varchar", unique: true, nullable: true }),
|
|
5134
|
+
(0, import_typeorm52.Index)()
|
|
5173
5135
|
], AdminRole.prototype, "roleSlug", 2);
|
|
5174
5136
|
__decorateClass([
|
|
5175
|
-
(0,
|
|
5137
|
+
(0, import_typeorm52.Column)({ name: "role_description", type: "varchar", nullable: true })
|
|
5176
5138
|
], AdminRole.prototype, "roleDescription", 2);
|
|
5177
5139
|
__decorateClass([
|
|
5178
|
-
(0,
|
|
5140
|
+
(0, import_typeorm52.Column)({ name: "is_active", type: "boolean", default: true })
|
|
5179
5141
|
], AdminRole.prototype, "isActive", 2);
|
|
5180
5142
|
__decorateClass([
|
|
5181
|
-
(0,
|
|
5143
|
+
(0, import_typeorm52.OneToMany)(
|
|
5182
5144
|
() => AdminRolePermission,
|
|
5183
5145
|
(addminRolePermission) => addminRolePermission.adminRole
|
|
5184
5146
|
)
|
|
5185
5147
|
], AdminRole.prototype, "adminRolePermission", 2);
|
|
5186
5148
|
__decorateClass([
|
|
5187
|
-
(0,
|
|
5149
|
+
(0, import_typeorm52.OneToMany)(() => AdminUserRole, (adminUserRole) => adminUserRole.adminRole)
|
|
5188
5150
|
], AdminRole.prototype, "userRoles", 2);
|
|
5189
5151
|
AdminRole = __decorateClass([
|
|
5190
|
-
(0,
|
|
5152
|
+
(0, import_typeorm52.Entity)("admin_roles")
|
|
5191
5153
|
], AdminRole);
|
|
5192
5154
|
|
|
5193
5155
|
// src/entities/admin-user-role.entity.ts
|
|
5194
5156
|
var AdminUserRole = class extends BaseEntity {
|
|
5195
5157
|
};
|
|
5196
5158
|
__decorateClass([
|
|
5197
|
-
(0,
|
|
5159
|
+
(0, import_typeorm53.Column)({
|
|
5198
5160
|
name: "user_id",
|
|
5199
5161
|
type: "int",
|
|
5200
5162
|
nullable: true,
|
|
@@ -5202,11 +5164,11 @@ __decorateClass([
|
|
|
5202
5164
|
})
|
|
5203
5165
|
], AdminUserRole.prototype, "userId", 2);
|
|
5204
5166
|
__decorateClass([
|
|
5205
|
-
(0,
|
|
5206
|
-
(0,
|
|
5167
|
+
(0, import_typeorm53.ManyToOne)(() => User),
|
|
5168
|
+
(0, import_typeorm53.JoinColumn)({ name: "user_id" })
|
|
5207
5169
|
], AdminUserRole.prototype, "user", 2);
|
|
5208
5170
|
__decorateClass([
|
|
5209
|
-
(0,
|
|
5171
|
+
(0, import_typeorm53.Column)({
|
|
5210
5172
|
name: "role_id",
|
|
5211
5173
|
type: "int",
|
|
5212
5174
|
nullable: true,
|
|
@@ -5214,58 +5176,58 @@ __decorateClass([
|
|
|
5214
5176
|
})
|
|
5215
5177
|
], AdminUserRole.prototype, "roleId", 2);
|
|
5216
5178
|
__decorateClass([
|
|
5217
|
-
(0,
|
|
5218
|
-
(0,
|
|
5179
|
+
(0, import_typeorm53.ManyToOne)(() => AdminRole),
|
|
5180
|
+
(0, import_typeorm53.JoinColumn)({ name: "role_id" })
|
|
5219
5181
|
], AdminUserRole.prototype, "adminRole", 2);
|
|
5220
5182
|
AdminUserRole = __decorateClass([
|
|
5221
|
-
(0,
|
|
5183
|
+
(0, import_typeorm53.Entity)("admin_user_roles")
|
|
5222
5184
|
], AdminUserRole);
|
|
5223
5185
|
|
|
5224
5186
|
// src/entities/freelancer-resume.entity.ts
|
|
5225
|
-
var
|
|
5187
|
+
var import_typeorm54 = require("typeorm");
|
|
5226
5188
|
var FreelancerResume = class extends BaseEntity {
|
|
5227
5189
|
};
|
|
5228
5190
|
// individual index to find profile by user
|
|
5229
5191
|
__decorateClass([
|
|
5230
|
-
(0,
|
|
5231
|
-
(0,
|
|
5192
|
+
(0, import_typeorm54.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
5193
|
+
(0, import_typeorm54.Index)()
|
|
5232
5194
|
], FreelancerResume.prototype, "userId", 2);
|
|
5233
5195
|
__decorateClass([
|
|
5234
|
-
(0,
|
|
5235
|
-
(0,
|
|
5196
|
+
(0, import_typeorm54.ManyToOne)(() => User, (user) => user.freelancerProfile),
|
|
5197
|
+
(0, import_typeorm54.JoinColumn)({ name: "user_id" })
|
|
5236
5198
|
], FreelancerResume.prototype, "user", 2);
|
|
5237
5199
|
__decorateClass([
|
|
5238
|
-
(0,
|
|
5200
|
+
(0, import_typeorm54.Column)({ name: "resume_data", type: "jsonb", nullable: true })
|
|
5239
5201
|
], FreelancerResume.prototype, "resumeData", 2);
|
|
5240
5202
|
__decorateClass([
|
|
5241
|
-
(0,
|
|
5203
|
+
(0, import_typeorm54.Column)({ name: "processed_resume_data", type: "jsonb", nullable: true })
|
|
5242
5204
|
], FreelancerResume.prototype, "processedResumeData", 2);
|
|
5243
5205
|
FreelancerResume = __decorateClass([
|
|
5244
|
-
(0,
|
|
5206
|
+
(0, import_typeorm54.Entity)("freelancer_resumes")
|
|
5245
5207
|
], FreelancerResume);
|
|
5246
5208
|
|
|
5247
5209
|
// src/entities/signature.entity.ts
|
|
5248
|
-
var
|
|
5210
|
+
var import_typeorm55 = require("typeorm");
|
|
5249
5211
|
var Signature = class extends BaseEntity {
|
|
5250
5212
|
};
|
|
5251
5213
|
// individual index to find profile by user
|
|
5252
5214
|
__decorateClass([
|
|
5253
|
-
(0,
|
|
5254
|
-
(0,
|
|
5215
|
+
(0, import_typeorm55.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
5216
|
+
(0, import_typeorm55.Index)()
|
|
5255
5217
|
], Signature.prototype, "userId", 2);
|
|
5256
5218
|
__decorateClass([
|
|
5257
|
-
(0,
|
|
5258
|
-
(0,
|
|
5219
|
+
(0, import_typeorm55.ManyToOne)(() => User, (user) => user.signatures),
|
|
5220
|
+
(0, import_typeorm55.JoinColumn)({ name: "user_id" })
|
|
5259
5221
|
], Signature.prototype, "user", 2);
|
|
5260
5222
|
__decorateClass([
|
|
5261
|
-
(0,
|
|
5223
|
+
(0, import_typeorm55.Column)({ name: "signature_url", type: "text", nullable: true })
|
|
5262
5224
|
], Signature.prototype, "signatureUrl", 2);
|
|
5263
5225
|
Signature = __decorateClass([
|
|
5264
|
-
(0,
|
|
5226
|
+
(0, import_typeorm55.Entity)("signatures")
|
|
5265
5227
|
], Signature);
|
|
5266
5228
|
|
|
5267
5229
|
// src/entities/dispute.entity.ts
|
|
5268
|
-
var
|
|
5230
|
+
var import_typeorm56 = require("typeorm");
|
|
5269
5231
|
var DisputeStatusEnum = /* @__PURE__ */ ((DisputeStatusEnum2) => {
|
|
5270
5232
|
DisputeStatusEnum2["OPEN"] = "OPEN";
|
|
5271
5233
|
DisputeStatusEnum2["IN_REVIEW"] = "IN_REVIEW";
|
|
@@ -5286,36 +5248,36 @@ var InitiatorTypeEnum = /* @__PURE__ */ ((InitiatorTypeEnum2) => {
|
|
|
5286
5248
|
var Dispute = class extends BaseEntity {
|
|
5287
5249
|
};
|
|
5288
5250
|
__decorateClass([
|
|
5289
|
-
(0,
|
|
5290
|
-
(0,
|
|
5251
|
+
(0, import_typeorm56.Column)({ name: "client_id", type: "integer", nullable: true }),
|
|
5252
|
+
(0, import_typeorm56.Index)()
|
|
5291
5253
|
], Dispute.prototype, "clientId", 2);
|
|
5292
5254
|
__decorateClass([
|
|
5293
|
-
(0,
|
|
5294
|
-
(0,
|
|
5255
|
+
(0, import_typeorm56.ManyToOne)(() => User, (user) => user.clientDisputes),
|
|
5256
|
+
(0, import_typeorm56.JoinColumn)({ name: "client_id" })
|
|
5295
5257
|
], Dispute.prototype, "client", 2);
|
|
5296
5258
|
__decorateClass([
|
|
5297
|
-
(0,
|
|
5298
|
-
(0,
|
|
5259
|
+
(0, import_typeorm56.Column)({ name: "freelancer_id", type: "integer", nullable: true }),
|
|
5260
|
+
(0, import_typeorm56.Index)()
|
|
5299
5261
|
], Dispute.prototype, "freelancerId", 2);
|
|
5300
5262
|
__decorateClass([
|
|
5301
|
-
(0,
|
|
5302
|
-
(0,
|
|
5263
|
+
(0, import_typeorm56.ManyToOne)(() => User, (user) => user.freelancerDisputes),
|
|
5264
|
+
(0, import_typeorm56.JoinColumn)({ name: "freelancer_id" })
|
|
5303
5265
|
], Dispute.prototype, "freelancer", 2);
|
|
5304
5266
|
__decorateClass([
|
|
5305
|
-
(0,
|
|
5267
|
+
(0, import_typeorm56.Column)({ name: "dispute_unique_id", type: "varchar", unique: true })
|
|
5306
5268
|
], Dispute.prototype, "disputeUniqueId", 2);
|
|
5307
5269
|
__decorateClass([
|
|
5308
|
-
(0,
|
|
5309
|
-
(0,
|
|
5270
|
+
(0, import_typeorm56.Column)({ name: "dispute_type", type: "varchar", nullable: true }),
|
|
5271
|
+
(0, import_typeorm56.Index)()
|
|
5310
5272
|
], Dispute.prototype, "disputeType", 2);
|
|
5311
5273
|
__decorateClass([
|
|
5312
|
-
(0,
|
|
5274
|
+
(0, import_typeorm56.Column)({ name: "description", type: "varchar", nullable: true })
|
|
5313
5275
|
], Dispute.prototype, "description", 2);
|
|
5314
5276
|
__decorateClass([
|
|
5315
|
-
(0,
|
|
5277
|
+
(0, import_typeorm56.Column)({ name: "comment", type: "varchar", nullable: true })
|
|
5316
5278
|
], Dispute.prototype, "comment", 2);
|
|
5317
5279
|
__decorateClass([
|
|
5318
|
-
(0,
|
|
5280
|
+
(0, import_typeorm56.Column)({
|
|
5319
5281
|
name: "status",
|
|
5320
5282
|
type: "enum",
|
|
5321
5283
|
enum: DisputeStatusEnum,
|
|
@@ -5323,7 +5285,7 @@ __decorateClass([
|
|
|
5323
5285
|
})
|
|
5324
5286
|
], Dispute.prototype, "status", 2);
|
|
5325
5287
|
__decorateClass([
|
|
5326
|
-
(0,
|
|
5288
|
+
(0, import_typeorm56.Column)({
|
|
5327
5289
|
name: "initiator_type",
|
|
5328
5290
|
type: "enum",
|
|
5329
5291
|
enum: InitiatorTypeEnum,
|
|
@@ -5332,33 +5294,33 @@ __decorateClass([
|
|
|
5332
5294
|
})
|
|
5333
5295
|
], Dispute.prototype, "initiatorType", 2);
|
|
5334
5296
|
__decorateClass([
|
|
5335
|
-
(0,
|
|
5336
|
-
(0,
|
|
5297
|
+
(0, import_typeorm56.Column)({ name: "initiator_id", type: "integer" }),
|
|
5298
|
+
(0, import_typeorm56.Index)()
|
|
5337
5299
|
], Dispute.prototype, "initiatorId", 2);
|
|
5338
5300
|
__decorateClass([
|
|
5339
|
-
(0,
|
|
5340
|
-
(0,
|
|
5301
|
+
(0, import_typeorm56.ManyToOne)(() => User, (user) => user.initiatedDisputes),
|
|
5302
|
+
(0, import_typeorm56.JoinColumn)({ name: "initiator_id" })
|
|
5341
5303
|
], Dispute.prototype, "initiator", 2);
|
|
5342
5304
|
__decorateClass([
|
|
5343
|
-
(0,
|
|
5344
|
-
(0,
|
|
5305
|
+
(0, import_typeorm56.Column)({ name: "respondent_id", type: "integer", nullable: true }),
|
|
5306
|
+
(0, import_typeorm56.Index)()
|
|
5345
5307
|
], Dispute.prototype, "respondentId", 2);
|
|
5346
5308
|
__decorateClass([
|
|
5347
|
-
(0,
|
|
5348
|
-
(0,
|
|
5309
|
+
(0, import_typeorm56.ManyToOne)(() => User, (user) => user.respondentDisputes, { nullable: true }),
|
|
5310
|
+
(0, import_typeorm56.JoinColumn)({ name: "respondent_id" })
|
|
5349
5311
|
], Dispute.prototype, "respondent", 2);
|
|
5350
5312
|
__decorateClass([
|
|
5351
|
-
(0,
|
|
5313
|
+
(0, import_typeorm56.Column)({ name: "attachments", type: "jsonb", nullable: true })
|
|
5352
5314
|
], Dispute.prototype, "attachments", 2);
|
|
5353
5315
|
__decorateClass([
|
|
5354
|
-
(0,
|
|
5316
|
+
(0, import_typeorm56.Column)({ name: "dynamic_fields", type: "jsonb", nullable: true })
|
|
5355
5317
|
], Dispute.prototype, "dynamicFields", 2);
|
|
5356
5318
|
Dispute = __decorateClass([
|
|
5357
|
-
(0,
|
|
5319
|
+
(0, import_typeorm56.Entity)("disputes")
|
|
5358
5320
|
], Dispute);
|
|
5359
5321
|
|
|
5360
5322
|
// src/entities/stripe-transaction.entity.ts
|
|
5361
|
-
var
|
|
5323
|
+
var import_typeorm57 = require("typeorm");
|
|
5362
5324
|
var StripeTransactionTypeEnum = /* @__PURE__ */ ((StripeTransactionTypeEnum2) => {
|
|
5363
5325
|
StripeTransactionTypeEnum2["ADD_FUNDS"] = "ADD_FUNDS";
|
|
5364
5326
|
StripeTransactionTypeEnum2["TRANSFER"] = "TRANSFER";
|
|
@@ -5380,97 +5342,97 @@ var StripeTransaction = class extends BaseEntity {
|
|
|
5380
5342
|
// Full Stripe session response
|
|
5381
5343
|
};
|
|
5382
5344
|
__decorateClass([
|
|
5383
|
-
(0,
|
|
5384
|
-
(0,
|
|
5345
|
+
(0, import_typeorm57.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
5346
|
+
(0, import_typeorm57.Index)()
|
|
5385
5347
|
], StripeTransaction.prototype, "userId", 2);
|
|
5386
5348
|
__decorateClass([
|
|
5387
|
-
(0,
|
|
5388
|
-
(0,
|
|
5349
|
+
(0, import_typeorm57.ManyToOne)(() => User, (user) => user.stripeTransactions),
|
|
5350
|
+
(0, import_typeorm57.JoinColumn)({ name: "user_id" })
|
|
5389
5351
|
], StripeTransaction.prototype, "user", 2);
|
|
5390
5352
|
__decorateClass([
|
|
5391
|
-
(0,
|
|
5353
|
+
(0, import_typeorm57.Column)({ name: "stripe_session_id", type: "varchar", nullable: true })
|
|
5392
5354
|
], StripeTransaction.prototype, "stripeSessionId", 2);
|
|
5393
5355
|
__decorateClass([
|
|
5394
|
-
(0,
|
|
5356
|
+
(0, import_typeorm57.Column)({ name: "stripe_payment_intent_id", type: "varchar", nullable: true })
|
|
5395
5357
|
], StripeTransaction.prototype, "stripePaymentIntentId", 2);
|
|
5396
5358
|
__decorateClass([
|
|
5397
|
-
(0,
|
|
5359
|
+
(0, import_typeorm57.Column)({ name: "stripe_charge_id", type: "varchar", nullable: true })
|
|
5398
5360
|
], StripeTransaction.prototype, "stripeChargeId", 2);
|
|
5399
5361
|
__decorateClass([
|
|
5400
|
-
(0,
|
|
5362
|
+
(0, import_typeorm57.Column)({ name: "stripe_receipt_url", type: "varchar", nullable: true })
|
|
5401
5363
|
], StripeTransaction.prototype, "stripeReceiptUrl", 2);
|
|
5402
5364
|
__decorateClass([
|
|
5403
|
-
(0,
|
|
5365
|
+
(0, import_typeorm57.Column)({ name: "stripe_balance_transaction_id", type: "varchar", nullable: true })
|
|
5404
5366
|
], StripeTransaction.prototype, "stripeBalanceTransactionId", 2);
|
|
5405
5367
|
__decorateClass([
|
|
5406
|
-
(0,
|
|
5368
|
+
(0, import_typeorm57.Column)({ name: "stripe_payment_method", type: "varchar", nullable: true })
|
|
5407
5369
|
], StripeTransaction.prototype, "stripePaymentMethod", 2);
|
|
5408
5370
|
__decorateClass([
|
|
5409
|
-
(0,
|
|
5371
|
+
(0, import_typeorm57.Column)({ name: "stripe_payment_status", type: "varchar", nullable: true })
|
|
5410
5372
|
], StripeTransaction.prototype, "stripePaymentStatus", 2);
|
|
5411
5373
|
__decorateClass([
|
|
5412
|
-
(0,
|
|
5374
|
+
(0, import_typeorm57.Column)({ name: "type", type: "enum", enum: StripeTransactionTypeEnum })
|
|
5413
5375
|
], StripeTransaction.prototype, "type", 2);
|
|
5414
5376
|
__decorateClass([
|
|
5415
|
-
(0,
|
|
5377
|
+
(0, import_typeorm57.Column)({ name: "currency", type: "varchar", nullable: true })
|
|
5416
5378
|
], StripeTransaction.prototype, "currency", 2);
|
|
5417
5379
|
__decorateClass([
|
|
5418
|
-
(0,
|
|
5380
|
+
(0, import_typeorm57.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" })
|
|
5419
5381
|
], StripeTransaction.prototype, "desiredDepositCents", 2);
|
|
5420
5382
|
__decorateClass([
|
|
5421
|
-
(0,
|
|
5383
|
+
(0, import_typeorm57.Column)({ name: "platform_fee_cents", type: "bigint", default: 0, comment: "Your platform commission Example: 500 cents = $5.00 (5% of $100)" })
|
|
5422
5384
|
], StripeTransaction.prototype, "platformFeeCents", 2);
|
|
5423
5385
|
__decorateClass([
|
|
5424
|
-
(0,
|
|
5386
|
+
(0, import_typeorm57.Column)({ name: "tax_cents", type: "bigint", nullable: true, comment: "Sales tax collected by Stripe" })
|
|
5425
5387
|
], StripeTransaction.prototype, "taxCents", 2);
|
|
5426
5388
|
__decorateClass([
|
|
5427
|
-
(0,
|
|
5389
|
+
(0, import_typeorm57.Column)({ name: "estimated_stripe_fee_cents", type: "bigint", nullable: true, comment: "Your calculated estimate of Stripe fee, Example: 371 cents = $3.71" })
|
|
5428
5390
|
], StripeTransaction.prototype, "estimatedStripeFee", 2);
|
|
5429
5391
|
__decorateClass([
|
|
5430
|
-
(0,
|
|
5392
|
+
(0, import_typeorm57.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" })
|
|
5431
5393
|
], StripeTransaction.prototype, "estimatedTotalCents", 2);
|
|
5432
5394
|
__decorateClass([
|
|
5433
|
-
(0,
|
|
5395
|
+
(0, import_typeorm57.Column)({ name: "actual_stripe_fee_cents", type: "bigint", nullable: true, comment: "ACTUAL Stripe fee charged, Example: 371 cents = $3.71" })
|
|
5434
5396
|
], StripeTransaction.prototype, "actualStripeFee", 2);
|
|
5435
5397
|
__decorateClass([
|
|
5436
|
-
(0,
|
|
5398
|
+
(0, import_typeorm57.Column)({ name: "actual_total_paid_cents", type: "bigint", nullable: true, comment: "What customer ACTUALLY paid, Example: 11757 cents = $117.57, May differ from estimate" })
|
|
5437
5399
|
], StripeTransaction.prototype, "actualTotalPaidCents", 2);
|
|
5438
5400
|
__decorateClass([
|
|
5439
|
-
(0,
|
|
5401
|
+
(0, import_typeorm57.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" })
|
|
5440
5402
|
], StripeTransaction.prototype, "netReceivedCents", 2);
|
|
5441
5403
|
__decorateClass([
|
|
5442
|
-
(0,
|
|
5404
|
+
(0, import_typeorm57.Column)({ name: "description", type: "text", nullable: true })
|
|
5443
5405
|
], StripeTransaction.prototype, "description", 2);
|
|
5444
5406
|
__decorateClass([
|
|
5445
|
-
(0,
|
|
5407
|
+
(0, import_typeorm57.Column)({ name: "status", type: "enum", enum: StripeTransactionStatusEnum, default: "PENDING" /* PENDING */ })
|
|
5446
5408
|
], StripeTransaction.prototype, "status", 2);
|
|
5447
5409
|
__decorateClass([
|
|
5448
|
-
(0,
|
|
5410
|
+
(0, import_typeorm57.Column)({ name: "checkout_session_completed_at", type: "timestamptz", nullable: true })
|
|
5449
5411
|
], StripeTransaction.prototype, "checkoutSessionCompletedAt", 2);
|
|
5450
5412
|
__decorateClass([
|
|
5451
|
-
(0,
|
|
5413
|
+
(0, import_typeorm57.Column)({ name: "completed_at", type: "timestamptz", nullable: true })
|
|
5452
5414
|
], StripeTransaction.prototype, "completedAt", 2);
|
|
5453
5415
|
__decorateClass([
|
|
5454
|
-
(0,
|
|
5416
|
+
(0, import_typeorm57.Column)({ name: "billing_details", type: "jsonb", nullable: true })
|
|
5455
5417
|
], StripeTransaction.prototype, "billingDetails", 2);
|
|
5456
5418
|
__decorateClass([
|
|
5457
|
-
(0,
|
|
5419
|
+
(0, import_typeorm57.Column)({ name: "payment_method_details", type: "jsonb", nullable: true })
|
|
5458
5420
|
], StripeTransaction.prototype, "paymentMethodDetails", 2);
|
|
5459
5421
|
__decorateClass([
|
|
5460
|
-
(0,
|
|
5422
|
+
(0, import_typeorm57.Column)({ name: "raw_session_payload", type: "jsonb", nullable: true })
|
|
5461
5423
|
], StripeTransaction.prototype, "rawSessionPayload", 2);
|
|
5462
5424
|
__decorateClass([
|
|
5463
|
-
(0,
|
|
5425
|
+
(0, import_typeorm57.Column)({ name: "raw_session_response", type: "jsonb", nullable: true })
|
|
5464
5426
|
], StripeTransaction.prototype, "rawSessionResponse", 2);
|
|
5465
5427
|
StripeTransaction = __decorateClass([
|
|
5466
|
-
(0,
|
|
5428
|
+
(0, import_typeorm57.Entity)("stripe_transactions")
|
|
5467
5429
|
], StripeTransaction);
|
|
5468
5430
|
|
|
5469
5431
|
// src/entities/wallet.entity.ts
|
|
5470
|
-
var
|
|
5432
|
+
var import_typeorm59 = require("typeorm");
|
|
5471
5433
|
|
|
5472
5434
|
// src/entities/wallet-transaction.entity.ts
|
|
5473
|
-
var
|
|
5435
|
+
var import_typeorm58 = require("typeorm");
|
|
5474
5436
|
var WalletTransactionTypeEnum = /* @__PURE__ */ ((WalletTransactionTypeEnum2) => {
|
|
5475
5437
|
WalletTransactionTypeEnum2["CR"] = "CR";
|
|
5476
5438
|
WalletTransactionTypeEnum2["DR"] = "DR";
|
|
@@ -5487,46 +5449,46 @@ var WalletTransactionStatusEnum = /* @__PURE__ */ ((WalletTransactionStatusEnum2
|
|
|
5487
5449
|
var WalletTransaction = class extends BaseEntity {
|
|
5488
5450
|
};
|
|
5489
5451
|
__decorateClass([
|
|
5490
|
-
(0,
|
|
5491
|
-
(0,
|
|
5452
|
+
(0, import_typeorm58.Column)({ name: "wallet_id", type: "integer", nullable: true }),
|
|
5453
|
+
(0, import_typeorm58.Index)()
|
|
5492
5454
|
], WalletTransaction.prototype, "walletId", 2);
|
|
5493
5455
|
__decorateClass([
|
|
5494
|
-
(0,
|
|
5495
|
-
(0,
|
|
5456
|
+
(0, import_typeorm58.ManyToOne)(() => Wallet, (wallet) => wallet.walletTransactions),
|
|
5457
|
+
(0, import_typeorm58.JoinColumn)({ name: "wallet_id" })
|
|
5496
5458
|
], WalletTransaction.prototype, "wallet", 2);
|
|
5497
5459
|
__decorateClass([
|
|
5498
|
-
(0,
|
|
5460
|
+
(0, import_typeorm58.Column)({ name: "amount", type: "bigint", nullable: true })
|
|
5499
5461
|
], WalletTransaction.prototype, "amount", 2);
|
|
5500
5462
|
__decorateClass([
|
|
5501
|
-
(0,
|
|
5463
|
+
(0, import_typeorm58.Column)({ name: "balance_before", type: "bigint", nullable: true })
|
|
5502
5464
|
], WalletTransaction.prototype, "balanceBefore", 2);
|
|
5503
5465
|
__decorateClass([
|
|
5504
|
-
(0,
|
|
5466
|
+
(0, import_typeorm58.Column)({ name: "balance_after", type: "bigint", nullable: true })
|
|
5505
5467
|
], WalletTransaction.prototype, "balanceAfter", 2);
|
|
5506
5468
|
__decorateClass([
|
|
5507
|
-
(0,
|
|
5469
|
+
(0, import_typeorm58.Column)({ name: "type", type: "enum", enum: WalletTransactionTypeEnum })
|
|
5508
5470
|
], WalletTransaction.prototype, "type", 2);
|
|
5509
5471
|
__decorateClass([
|
|
5510
|
-
(0,
|
|
5472
|
+
(0, import_typeorm58.Column)({ name: "status", type: "enum", enum: WalletTransactionStatusEnum, default: "PENDING" /* PENDING */ })
|
|
5511
5473
|
], WalletTransaction.prototype, "status", 2);
|
|
5512
5474
|
__decorateClass([
|
|
5513
|
-
(0,
|
|
5475
|
+
(0, import_typeorm58.Column)({ name: "description", type: "text", nullable: true })
|
|
5514
5476
|
], WalletTransaction.prototype, "description", 2);
|
|
5515
5477
|
__decorateClass([
|
|
5516
|
-
(0,
|
|
5478
|
+
(0, import_typeorm58.Column)({ name: "completed_at", type: "timestamptz", nullable: true })
|
|
5517
5479
|
], WalletTransaction.prototype, "completedAt", 2);
|
|
5518
5480
|
__decorateClass([
|
|
5519
|
-
(0,
|
|
5481
|
+
(0, import_typeorm58.Column)({ name: "transaction_for", type: "varchar", nullable: true })
|
|
5520
5482
|
], WalletTransaction.prototype, "transactionFor", 2);
|
|
5521
5483
|
__decorateClass([
|
|
5522
|
-
(0,
|
|
5484
|
+
(0, import_typeorm58.Column)({ name: "meta_data", type: "varchar", nullable: true })
|
|
5523
5485
|
], WalletTransaction.prototype, "metaData", 2);
|
|
5524
5486
|
__decorateClass([
|
|
5525
|
-
(0,
|
|
5526
|
-
(0,
|
|
5487
|
+
(0, import_typeorm58.Column)({ name: "stripe_transaction_id", type: "integer", nullable: true }),
|
|
5488
|
+
(0, import_typeorm58.Index)()
|
|
5527
5489
|
], WalletTransaction.prototype, "stripeTransactionId", 2);
|
|
5528
5490
|
WalletTransaction = __decorateClass([
|
|
5529
|
-
(0,
|
|
5491
|
+
(0, import_typeorm58.Entity)("wallet_transactions")
|
|
5530
5492
|
], WalletTransaction);
|
|
5531
5493
|
|
|
5532
5494
|
// src/entities/wallet.entity.ts
|
|
@@ -5544,39 +5506,39 @@ var WalletOnboardingStatusEnum = /* @__PURE__ */ ((WalletOnboardingStatusEnum2)
|
|
|
5544
5506
|
var Wallet = class extends BaseEntity {
|
|
5545
5507
|
};
|
|
5546
5508
|
__decorateClass([
|
|
5547
|
-
(0,
|
|
5548
|
-
(0,
|
|
5509
|
+
(0, import_typeorm59.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
5510
|
+
(0, import_typeorm59.Index)()
|
|
5549
5511
|
], Wallet.prototype, "userId", 2);
|
|
5550
5512
|
__decorateClass([
|
|
5551
|
-
(0,
|
|
5552
|
-
(0,
|
|
5513
|
+
(0, import_typeorm59.OneToOne)(() => User, (user) => user.wallet),
|
|
5514
|
+
(0, import_typeorm59.JoinColumn)({ name: "user_id" })
|
|
5553
5515
|
], Wallet.prototype, "user", 2);
|
|
5554
5516
|
__decorateClass([
|
|
5555
|
-
(0,
|
|
5517
|
+
(0, import_typeorm59.Column)({ name: "account_type", type: "enum", enum: WalletAccountTypeEnum, nullable: true })
|
|
5556
5518
|
], Wallet.prototype, "accountType", 2);
|
|
5557
5519
|
__decorateClass([
|
|
5558
|
-
(0,
|
|
5520
|
+
(0, import_typeorm59.Column)({ name: "stripe_account_id", type: "varchar", nullable: true })
|
|
5559
5521
|
], Wallet.prototype, "stripeAccountId", 2);
|
|
5560
5522
|
__decorateClass([
|
|
5561
|
-
(0,
|
|
5523
|
+
(0, import_typeorm59.Column)({ name: "stripe_customer_id", type: "varchar", nullable: true })
|
|
5562
5524
|
], Wallet.prototype, "stripeCustomerId", 2);
|
|
5563
5525
|
__decorateClass([
|
|
5564
|
-
(0,
|
|
5526
|
+
(0, import_typeorm59.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" })
|
|
5565
5527
|
], Wallet.prototype, "walletBalance", 2);
|
|
5566
5528
|
__decorateClass([
|
|
5567
|
-
(0,
|
|
5529
|
+
(0, import_typeorm59.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" })
|
|
5568
5530
|
], Wallet.prototype, "walletBalanceCents", 2);
|
|
5569
5531
|
__decorateClass([
|
|
5570
|
-
(0,
|
|
5532
|
+
(0, import_typeorm59.Column)({ name: "onboarding_status", type: "enum", enum: WalletOnboardingStatusEnum, nullable: true })
|
|
5571
5533
|
], Wallet.prototype, "onboardingStatus", 2);
|
|
5572
5534
|
__decorateClass([
|
|
5573
|
-
(0,
|
|
5535
|
+
(0, import_typeorm59.Column)({ name: "stripe_metadata", type: "jsonb", nullable: true })
|
|
5574
5536
|
], Wallet.prototype, "stripeMetadata", 2);
|
|
5575
5537
|
__decorateClass([
|
|
5576
|
-
(0,
|
|
5538
|
+
(0, import_typeorm59.OneToMany)(() => WalletTransaction, (walletTransaction) => walletTransaction.wallet)
|
|
5577
5539
|
], Wallet.prototype, "walletTransactions", 2);
|
|
5578
5540
|
Wallet = __decorateClass([
|
|
5579
|
-
(0,
|
|
5541
|
+
(0, import_typeorm59.Entity)("wallets")
|
|
5580
5542
|
], Wallet);
|
|
5581
5543
|
|
|
5582
5544
|
// src/entities/user.entity.ts
|
|
@@ -5604,51 +5566,51 @@ var Provider = /* @__PURE__ */ ((Provider2) => {
|
|
|
5604
5566
|
var User = class extends BaseEntity {
|
|
5605
5567
|
};
|
|
5606
5568
|
__decorateClass([
|
|
5607
|
-
(0,
|
|
5569
|
+
(0, import_typeorm60.Column)({ name: "unique_id", type: "varchar", unique: true })
|
|
5608
5570
|
], User.prototype, "uniqueId", 2);
|
|
5609
5571
|
__decorateClass([
|
|
5610
|
-
(0,
|
|
5611
|
-
(0,
|
|
5572
|
+
(0, import_typeorm60.Column)({ name: "parent_id", type: "integer", nullable: true }),
|
|
5573
|
+
(0, import_typeorm60.Index)()
|
|
5612
5574
|
], User.prototype, "parentId", 2);
|
|
5613
5575
|
__decorateClass([
|
|
5614
|
-
(0,
|
|
5615
|
-
(0,
|
|
5576
|
+
(0, import_typeorm60.ManyToOne)(() => User, (user) => user.children, { nullable: true }),
|
|
5577
|
+
(0, import_typeorm60.JoinColumn)({ name: "parent_id" })
|
|
5616
5578
|
], User.prototype, "parent", 2);
|
|
5617
5579
|
__decorateClass([
|
|
5618
|
-
(0,
|
|
5580
|
+
(0, import_typeorm60.OneToMany)(() => User, (user) => user.parent)
|
|
5619
5581
|
], User.prototype, "children", 2);
|
|
5620
5582
|
__decorateClass([
|
|
5621
|
-
(0,
|
|
5583
|
+
(0, import_typeorm60.Column)({ name: "username", type: "varchar", unique: true, nullable: true })
|
|
5622
5584
|
], User.prototype, "username", 2);
|
|
5623
5585
|
__decorateClass([
|
|
5624
|
-
(0,
|
|
5586
|
+
(0, import_typeorm60.Column)({ name: "first_name", type: "varchar", length: 100, nullable: true })
|
|
5625
5587
|
], User.prototype, "firstName", 2);
|
|
5626
5588
|
__decorateClass([
|
|
5627
|
-
(0,
|
|
5589
|
+
(0, import_typeorm60.Column)({ name: "last_name", type: "varchar", length: 100, nullable: true })
|
|
5628
5590
|
], User.prototype, "lastName", 2);
|
|
5629
5591
|
__decorateClass([
|
|
5630
|
-
(0,
|
|
5592
|
+
(0, import_typeorm60.Column)({ name: "date_of_birth", type: "date", nullable: true })
|
|
5631
5593
|
], User.prototype, "dateOfBirth", 2);
|
|
5632
5594
|
__decorateClass([
|
|
5633
|
-
(0,
|
|
5595
|
+
(0, import_typeorm60.Column)({ name: "gender", type: "varchar", length: 10, nullable: true })
|
|
5634
5596
|
], User.prototype, "gender", 2);
|
|
5635
5597
|
__decorateClass([
|
|
5636
|
-
(0,
|
|
5598
|
+
(0, import_typeorm60.Column)({ name: "profile_picture_url", type: "text", nullable: true })
|
|
5637
5599
|
], User.prototype, "profilePictureUrl", 2);
|
|
5638
5600
|
__decorateClass([
|
|
5639
|
-
(0,
|
|
5601
|
+
(0, import_typeorm60.Column)({ name: "email", type: "varchar", unique: true })
|
|
5640
5602
|
], User.prototype, "email", 2);
|
|
5641
5603
|
__decorateClass([
|
|
5642
|
-
(0,
|
|
5604
|
+
(0, import_typeorm60.Column)({ name: "mobile_code", type: "varchar", nullable: true })
|
|
5643
5605
|
], User.prototype, "mobileCode", 2);
|
|
5644
5606
|
__decorateClass([
|
|
5645
|
-
(0,
|
|
5607
|
+
(0, import_typeorm60.Column)({ name: "mobile", type: "varchar", nullable: true })
|
|
5646
5608
|
], User.prototype, "mobile", 2);
|
|
5647
5609
|
__decorateClass([
|
|
5648
|
-
(0,
|
|
5610
|
+
(0, import_typeorm60.Column)({ name: "password", type: "varchar", nullable: true })
|
|
5649
5611
|
], User.prototype, "password", 2);
|
|
5650
5612
|
__decorateClass([
|
|
5651
|
-
(0,
|
|
5613
|
+
(0, import_typeorm60.Column)({
|
|
5652
5614
|
name: "account_type",
|
|
5653
5615
|
type: "enum",
|
|
5654
5616
|
enum: AccountType,
|
|
@@ -5656,7 +5618,7 @@ __decorateClass([
|
|
|
5656
5618
|
})
|
|
5657
5619
|
], User.prototype, "accountType", 2);
|
|
5658
5620
|
__decorateClass([
|
|
5659
|
-
(0,
|
|
5621
|
+
(0, import_typeorm60.Column)({
|
|
5660
5622
|
name: "account_status",
|
|
5661
5623
|
type: "enum",
|
|
5662
5624
|
enum: AccountStatus,
|
|
@@ -5664,42 +5626,42 @@ __decorateClass([
|
|
|
5664
5626
|
})
|
|
5665
5627
|
], User.prototype, "accountStatus", 2);
|
|
5666
5628
|
__decorateClass([
|
|
5667
|
-
(0,
|
|
5629
|
+
(0, import_typeorm60.Column)({ name: "is_email_verified", type: "boolean", default: false })
|
|
5668
5630
|
], User.prototype, "isEmailVerified", 2);
|
|
5669
5631
|
__decorateClass([
|
|
5670
|
-
(0,
|
|
5632
|
+
(0, import_typeorm60.Column)({ name: "is_mobile_verified", type: "boolean", default: false })
|
|
5671
5633
|
], User.prototype, "isMobileVerified", 2);
|
|
5672
5634
|
__decorateClass([
|
|
5673
|
-
(0,
|
|
5635
|
+
(0, import_typeorm60.Column)({ name: "is_social", type: "boolean", default: false })
|
|
5674
5636
|
], User.prototype, "isSocial", 2);
|
|
5675
5637
|
__decorateClass([
|
|
5676
|
-
(0,
|
|
5638
|
+
(0, import_typeorm60.Column)({
|
|
5677
5639
|
name: "last_login_at",
|
|
5678
5640
|
type: "timestamp with time zone",
|
|
5679
5641
|
nullable: true
|
|
5680
5642
|
})
|
|
5681
5643
|
], User.prototype, "lastLoginAt", 2);
|
|
5682
5644
|
__decorateClass([
|
|
5683
|
-
(0,
|
|
5645
|
+
(0, import_typeorm60.Column)({ name: "last_login_ip", type: "varchar", nullable: true })
|
|
5684
5646
|
], User.prototype, "lastLoginIp", 2);
|
|
5685
5647
|
__decorateClass([
|
|
5686
|
-
(0,
|
|
5648
|
+
(0, import_typeorm60.Column)({ name: "reset_token", type: "varchar", nullable: true })
|
|
5687
5649
|
], User.prototype, "resetToken", 2);
|
|
5688
5650
|
__decorateClass([
|
|
5689
|
-
(0,
|
|
5651
|
+
(0, import_typeorm60.Column)({
|
|
5690
5652
|
name: "reset_token_expire_at",
|
|
5691
5653
|
type: "timestamp with time zone",
|
|
5692
5654
|
nullable: true
|
|
5693
5655
|
})
|
|
5694
5656
|
], User.prototype, "resetTokenExpireAt", 2);
|
|
5695
5657
|
__decorateClass([
|
|
5696
|
-
(0,
|
|
5658
|
+
(0, import_typeorm60.Column)({ name: "set_password_token", type: "varchar", nullable: true })
|
|
5697
5659
|
], User.prototype, "setPasswordToken", 2);
|
|
5698
5660
|
__decorateClass([
|
|
5699
|
-
(0,
|
|
5661
|
+
(0, import_typeorm60.OneToMany)(() => RefreshToken, (token) => token.user)
|
|
5700
5662
|
], User.prototype, "refreshTokens", 2);
|
|
5701
5663
|
__decorateClass([
|
|
5702
|
-
(0,
|
|
5664
|
+
(0, import_typeorm60.Column)({
|
|
5703
5665
|
name: "provider",
|
|
5704
5666
|
type: "enum",
|
|
5705
5667
|
enum: Provider,
|
|
@@ -5708,208 +5670,208 @@ __decorateClass([
|
|
|
5708
5670
|
})
|
|
5709
5671
|
], User.prototype, "provider", 2);
|
|
5710
5672
|
__decorateClass([
|
|
5711
|
-
(0,
|
|
5673
|
+
(0, import_typeorm60.Column)({ name: "provider_token", type: "varchar", nullable: true })
|
|
5712
5674
|
], User.prototype, "providerToken", 2);
|
|
5713
5675
|
__decorateClass([
|
|
5714
|
-
(0,
|
|
5676
|
+
(0, import_typeorm60.Column)({ name: "linkedin_id", type: "varchar", nullable: true })
|
|
5715
5677
|
], User.prototype, "linkedInId", 2);
|
|
5716
5678
|
__decorateClass([
|
|
5717
|
-
(0,
|
|
5679
|
+
(0, import_typeorm60.Column)({ name: "google_id", type: "varchar", nullable: true })
|
|
5718
5680
|
], User.prototype, "googleId", 2);
|
|
5719
5681
|
__decorateClass([
|
|
5720
|
-
(0,
|
|
5682
|
+
(0, import_typeorm60.Column)({ name: "gitlabs_id", type: "varchar", nullable: true })
|
|
5721
5683
|
], User.prototype, "gitLabsId", 2);
|
|
5722
5684
|
__decorateClass([
|
|
5723
|
-
(0,
|
|
5685
|
+
(0, import_typeorm60.Column)({ name: "onboarded_by", type: "varchar", nullable: true })
|
|
5724
5686
|
], User.prototype, "onBoardedBy", 2);
|
|
5725
5687
|
__decorateClass([
|
|
5726
|
-
(0,
|
|
5688
|
+
(0, import_typeorm60.OneToMany)(() => Otp, (otp) => otp.user)
|
|
5727
5689
|
], User.prototype, "otps", 2);
|
|
5728
5690
|
__decorateClass([
|
|
5729
|
-
(0,
|
|
5691
|
+
(0, import_typeorm60.OneToMany)(() => SenseloafLog, (senseloafLog) => senseloafLog.user)
|
|
5730
5692
|
], User.prototype, "senseloafLogs", 2);
|
|
5731
5693
|
__decorateClass([
|
|
5732
|
-
(0,
|
|
5694
|
+
(0, import_typeorm60.OneToOne)(() => CompanyProfile, (companyProfile) => companyProfile.user)
|
|
5733
5695
|
], User.prototype, "companyProfile", 2);
|
|
5734
5696
|
__decorateClass([
|
|
5735
|
-
(0,
|
|
5697
|
+
(0, import_typeorm60.OneToMany)(() => CompanySkill, (companySkill) => companySkill.user)
|
|
5736
5698
|
], User.prototype, "companySkills", 2);
|
|
5737
5699
|
__decorateClass([
|
|
5738
|
-
(0,
|
|
5700
|
+
(0, import_typeorm60.OneToMany)(
|
|
5739
5701
|
() => CompanyMemberRole,
|
|
5740
5702
|
(companyMemberRole) => companyMemberRole.user
|
|
5741
5703
|
)
|
|
5742
5704
|
], User.prototype, "companyMemberRoles", 2);
|
|
5743
5705
|
__decorateClass([
|
|
5744
|
-
(0,
|
|
5706
|
+
(0, import_typeorm60.OneToMany)(() => AiInterview, (aiInterview) => aiInterview.interviwer)
|
|
5745
5707
|
], User.prototype, "companyAiInterview", 2);
|
|
5746
5708
|
__decorateClass([
|
|
5747
|
-
(0,
|
|
5709
|
+
(0, import_typeorm60.OneToMany)(() => F2FInterview, (F2FInterview2) => F2FInterview2.interviwer)
|
|
5748
5710
|
], User.prototype, "clientF2FInterviews", 2);
|
|
5749
5711
|
__decorateClass([
|
|
5750
|
-
(0,
|
|
5712
|
+
(0, import_typeorm60.OneToOne)(
|
|
5751
5713
|
() => FreelancerProfile,
|
|
5752
5714
|
(freelancerProfile) => freelancerProfile.user
|
|
5753
5715
|
)
|
|
5754
5716
|
], User.prototype, "freelancerProfile", 2);
|
|
5755
5717
|
__decorateClass([
|
|
5756
|
-
(0,
|
|
5718
|
+
(0, import_typeorm60.OneToOne)(() => FreelancerResume, (freelancerResume) => freelancerResume.user)
|
|
5757
5719
|
], User.prototype, "freelancerResume", 2);
|
|
5758
5720
|
__decorateClass([
|
|
5759
|
-
(0,
|
|
5721
|
+
(0, import_typeorm60.OneToMany)(
|
|
5760
5722
|
() => FreelancerAssessment,
|
|
5761
5723
|
(freelancerAssessment) => freelancerAssessment.user
|
|
5762
5724
|
)
|
|
5763
5725
|
], User.prototype, "assessments", 2);
|
|
5764
5726
|
__decorateClass([
|
|
5765
|
-
(0,
|
|
5727
|
+
(0, import_typeorm60.OneToMany)(
|
|
5766
5728
|
() => AssessmentAnswer,
|
|
5767
5729
|
(assessmentAnswer) => assessmentAnswer.user
|
|
5768
5730
|
)
|
|
5769
5731
|
], User.prototype, "assessmentAnswers", 2);
|
|
5770
5732
|
__decorateClass([
|
|
5771
|
-
(0,
|
|
5733
|
+
(0, import_typeorm60.OneToMany)(() => FreelancerSkill, (freelancerSkill) => freelancerSkill.user)
|
|
5772
5734
|
], User.prototype, "freelancerSkills", 2);
|
|
5773
5735
|
__decorateClass([
|
|
5774
|
-
(0,
|
|
5736
|
+
(0, import_typeorm60.OneToMany)(
|
|
5775
5737
|
() => FreelancerExperience,
|
|
5776
5738
|
(freelancerExperience) => freelancerExperience.user
|
|
5777
5739
|
)
|
|
5778
5740
|
], User.prototype, "freelancerExperience", 2);
|
|
5779
5741
|
__decorateClass([
|
|
5780
|
-
(0,
|
|
5742
|
+
(0, import_typeorm60.OneToMany)(
|
|
5781
5743
|
() => FreelancerEducation,
|
|
5782
5744
|
(freelancerEducation) => freelancerEducation.user
|
|
5783
5745
|
)
|
|
5784
5746
|
], User.prototype, "freelancerEducation", 2);
|
|
5785
5747
|
__decorateClass([
|
|
5786
|
-
(0,
|
|
5748
|
+
(0, import_typeorm60.OneToMany)(
|
|
5787
5749
|
() => FreelancerProject,
|
|
5788
5750
|
(freelancerProject) => freelancerProject.user
|
|
5789
5751
|
)
|
|
5790
5752
|
], User.prototype, "freelancerProject", 2);
|
|
5791
5753
|
__decorateClass([
|
|
5792
|
-
(0,
|
|
5754
|
+
(0, import_typeorm60.OneToMany)(
|
|
5793
5755
|
() => FreelancerCaseStudy,
|
|
5794
5756
|
(freelancerCaseStudy) => freelancerCaseStudy.user
|
|
5795
5757
|
)
|
|
5796
5758
|
], User.prototype, "freelancerCaseStudy", 2);
|
|
5797
5759
|
__decorateClass([
|
|
5798
|
-
(0,
|
|
5760
|
+
(0, import_typeorm60.OneToMany)(() => FreelancerTool, (freelancerTool) => freelancerTool.user)
|
|
5799
5761
|
], User.prototype, "freelancerTool", 2);
|
|
5800
5762
|
__decorateClass([
|
|
5801
|
-
(0,
|
|
5763
|
+
(0, import_typeorm60.OneToMany)(
|
|
5802
5764
|
() => FreelancerFramework,
|
|
5803
5765
|
(freelancerFramework) => freelancerFramework.user
|
|
5804
5766
|
)
|
|
5805
5767
|
], User.prototype, "freelancerFramework", 2);
|
|
5806
5768
|
__decorateClass([
|
|
5807
|
-
(0,
|
|
5769
|
+
(0, import_typeorm60.OneToOne)(
|
|
5808
5770
|
() => FreelancerDeclaration,
|
|
5809
5771
|
(freelancerDeclaration) => freelancerDeclaration.user
|
|
5810
5772
|
)
|
|
5811
5773
|
], User.prototype, "freelancerDeclaration", 2);
|
|
5812
5774
|
__decorateClass([
|
|
5813
|
-
(0,
|
|
5775
|
+
(0, import_typeorm60.OneToMany)(() => AssessmetQuestion, (assessmetQuestion) => assessmetQuestion.candidate)
|
|
5814
5776
|
], User.prototype, "freelancerMcq", 2);
|
|
5815
5777
|
__decorateClass([
|
|
5816
|
-
(0,
|
|
5778
|
+
(0, import_typeorm60.OneToMany)(() => AiInterview, (aiInterview) => aiInterview.candidate)
|
|
5817
5779
|
], User.prototype, "freelancerAiInterview", 2);
|
|
5818
5780
|
__decorateClass([
|
|
5819
|
-
(0,
|
|
5781
|
+
(0, import_typeorm60.OneToMany)(() => F2FInterview, (F2FInterview2) => F2FInterview2.candidate)
|
|
5820
5782
|
], User.prototype, "freelancerF2FInterviews", 2);
|
|
5821
5783
|
__decorateClass([
|
|
5822
|
-
(0,
|
|
5784
|
+
(0, import_typeorm60.OneToMany)(
|
|
5823
5785
|
() => F2fInterviewRescheduleRequest,
|
|
5824
5786
|
(f2fInterviewRescheduleRequest) => f2fInterviewRescheduleRequest.candidate
|
|
5825
5787
|
)
|
|
5826
5788
|
], User.prototype, "freelancerF2FInterviewRescheduleRequests", 2);
|
|
5827
5789
|
__decorateClass([
|
|
5828
|
-
(0,
|
|
5790
|
+
(0, import_typeorm60.OneToMany)(() => Job, (job) => job.user)
|
|
5829
5791
|
], User.prototype, "jobs", 2);
|
|
5830
5792
|
__decorateClass([
|
|
5831
|
-
(0,
|
|
5793
|
+
(0, import_typeorm60.OneToMany)(() => JobApplication, (jobApplication) => jobApplication.user)
|
|
5832
5794
|
], User.prototype, "jobApplications", 2);
|
|
5833
5795
|
__decorateClass([
|
|
5834
|
-
(0,
|
|
5796
|
+
(0, import_typeorm60.OneToMany)(() => Interview, (interview) => interview.user)
|
|
5835
5797
|
], User.prototype, "interviews", 2);
|
|
5836
5798
|
__decorateClass([
|
|
5837
|
-
(0,
|
|
5799
|
+
(0, import_typeorm60.OneToMany)(() => BankDetail, (bankDetail) => bankDetail.user)
|
|
5838
5800
|
], User.prototype, "bankDetail", 2);
|
|
5839
5801
|
__decorateClass([
|
|
5840
|
-
(0,
|
|
5802
|
+
(0, import_typeorm60.OneToMany)(
|
|
5841
5803
|
() => SystemPreference,
|
|
5842
5804
|
(systemPreference) => systemPreference.user
|
|
5843
5805
|
)
|
|
5844
5806
|
], User.prototype, "systemPreference", 2);
|
|
5845
5807
|
__decorateClass([
|
|
5846
|
-
(0,
|
|
5808
|
+
(0, import_typeorm60.OneToMany)(() => Rating, (rating) => rating.reviewer)
|
|
5847
5809
|
], User.prototype, "givenRatings", 2);
|
|
5848
5810
|
__decorateClass([
|
|
5849
|
-
(0,
|
|
5811
|
+
(0, import_typeorm60.OneToMany)(() => Rating, (rating) => rating.reviewee)
|
|
5850
5812
|
], User.prototype, "receivedRatings", 2);
|
|
5851
5813
|
__decorateClass([
|
|
5852
|
-
(0,
|
|
5814
|
+
(0, import_typeorm60.OneToMany)(() => AdminUserRole, (adminUserRole) => adminUserRole.user)
|
|
5853
5815
|
], User.prototype, "adminUserRoles", 2);
|
|
5854
5816
|
__decorateClass([
|
|
5855
|
-
(0,
|
|
5817
|
+
(0, import_typeorm60.OneToMany)(() => Contract, (contract) => contract.client)
|
|
5856
5818
|
], User.prototype, "clientContracts", 2);
|
|
5857
5819
|
__decorateClass([
|
|
5858
|
-
(0,
|
|
5820
|
+
(0, import_typeorm60.OneToMany)(() => EscrowWallet, (escrowWallet) => escrowWallet.client)
|
|
5859
5821
|
], User.prototype, "clientEscrowWallets", 2);
|
|
5860
5822
|
__decorateClass([
|
|
5861
|
-
(0,
|
|
5823
|
+
(0, import_typeorm60.OneToMany)(() => Contract, (contract) => contract.freelancer)
|
|
5862
5824
|
], User.prototype, "freelancerContracts", 2);
|
|
5863
5825
|
__decorateClass([
|
|
5864
|
-
(0,
|
|
5826
|
+
(0, import_typeorm60.OneToMany)(() => EscrowWallet, (escrowWallet) => escrowWallet.freelancer)
|
|
5865
5827
|
], User.prototype, "freelancerEscrowWallets", 2);
|
|
5866
5828
|
__decorateClass([
|
|
5867
|
-
(0,
|
|
5829
|
+
(0, import_typeorm60.OneToOne)(() => Signature, (signature) => signature.user)
|
|
5868
5830
|
], User.prototype, "signatures", 2);
|
|
5869
5831
|
__decorateClass([
|
|
5870
|
-
(0,
|
|
5832
|
+
(0, import_typeorm60.OneToMany)(() => Timesheet, (timesheet) => timesheet.client)
|
|
5871
5833
|
], User.prototype, "clientTimesheets", 2);
|
|
5872
5834
|
__decorateClass([
|
|
5873
|
-
(0,
|
|
5835
|
+
(0, import_typeorm60.OneToMany)(() => Timesheet, (timesheet) => timesheet.freelancer)
|
|
5874
5836
|
], User.prototype, "freelancerTimesheets", 2);
|
|
5875
5837
|
__decorateClass([
|
|
5876
|
-
(0,
|
|
5838
|
+
(0, import_typeorm60.OneToMany)(() => TimesheetLine, (timesheetLine) => timesheetLine.client)
|
|
5877
5839
|
], User.prototype, "clientTimesheetLine", 2);
|
|
5878
5840
|
__decorateClass([
|
|
5879
|
-
(0,
|
|
5841
|
+
(0, import_typeorm60.OneToMany)(() => Invoice, (invoice) => invoice.client)
|
|
5880
5842
|
], User.prototype, "clientInvoice", 2);
|
|
5881
5843
|
__decorateClass([
|
|
5882
|
-
(0,
|
|
5844
|
+
(0, import_typeorm60.OneToMany)(() => TimesheetLine, (timesheetLine) => timesheetLine.freelancer)
|
|
5883
5845
|
], User.prototype, "freelancerTimesheetLine", 2);
|
|
5884
5846
|
__decorateClass([
|
|
5885
|
-
(0,
|
|
5847
|
+
(0, import_typeorm60.OneToMany)(() => Invoice, (invoice) => invoice.freelancer)
|
|
5886
5848
|
], User.prototype, "freelancerInvoice", 2);
|
|
5887
5849
|
__decorateClass([
|
|
5888
|
-
(0,
|
|
5850
|
+
(0, import_typeorm60.OneToMany)(() => ClientCandidatePreference, (clientCandidatePreference) => clientCandidatePreference.client, { cascade: true })
|
|
5889
5851
|
], User.prototype, "clientPreferencesGiven", 2);
|
|
5890
5852
|
__decorateClass([
|
|
5891
|
-
(0,
|
|
5853
|
+
(0, import_typeorm60.OneToMany)(() => ClientCandidatePreference, (clientCandidatePreference) => clientCandidatePreference.candidate)
|
|
5892
5854
|
], User.prototype, "clientPreferencesReceived", 2);
|
|
5893
5855
|
__decorateClass([
|
|
5894
|
-
(0,
|
|
5856
|
+
(0, import_typeorm60.OneToMany)(() => Dispute, (dispute) => dispute.initiator, { cascade: true })
|
|
5895
5857
|
], User.prototype, "initiatedDisputes", 2);
|
|
5896
5858
|
__decorateClass([
|
|
5897
|
-
(0,
|
|
5859
|
+
(0, import_typeorm60.OneToMany)(() => Dispute, (dispute) => dispute.respondent, { cascade: true })
|
|
5898
5860
|
], User.prototype, "respondentDisputes", 2);
|
|
5899
5861
|
__decorateClass([
|
|
5900
|
-
(0,
|
|
5862
|
+
(0, import_typeorm60.OneToOne)(() => Wallet, (wallet) => wallet.user)
|
|
5901
5863
|
], User.prototype, "wallet", 2);
|
|
5902
5864
|
__decorateClass([
|
|
5903
|
-
(0,
|
|
5865
|
+
(0, import_typeorm60.OneToMany)(() => StripeTransaction, (stripeTransaction) => stripeTransaction.user, { cascade: true })
|
|
5904
5866
|
], User.prototype, "stripeTransactions", 2);
|
|
5905
5867
|
__decorateClass([
|
|
5906
|
-
(0,
|
|
5868
|
+
(0, import_typeorm60.OneToMany)(() => Dispute, (dispute) => dispute.client)
|
|
5907
5869
|
], User.prototype, "clientDisputes", 2);
|
|
5908
5870
|
__decorateClass([
|
|
5909
|
-
(0,
|
|
5871
|
+
(0, import_typeorm60.OneToMany)(() => Dispute, (dispute) => dispute.freelancer)
|
|
5910
5872
|
], User.prototype, "freelancerDisputes", 2);
|
|
5911
5873
|
User = __decorateClass([
|
|
5912
|
-
(0,
|
|
5874
|
+
(0, import_typeorm60.Entity)("users")
|
|
5913
5875
|
], User);
|
|
5914
5876
|
|
|
5915
5877
|
// src/entities/rating.entity.ts
|
|
@@ -5921,36 +5883,36 @@ var RatingTypeEnum = /* @__PURE__ */ ((RatingTypeEnum2) => {
|
|
|
5921
5883
|
var Rating = class extends BaseEntity {
|
|
5922
5884
|
};
|
|
5923
5885
|
__decorateClass([
|
|
5924
|
-
(0,
|
|
5925
|
-
(0,
|
|
5886
|
+
(0, import_typeorm61.Column)({ name: "reviewer_id", type: "integer" }),
|
|
5887
|
+
(0, import_typeorm61.Index)()
|
|
5926
5888
|
], Rating.prototype, "reviewer_id", 2);
|
|
5927
5889
|
__decorateClass([
|
|
5928
|
-
(0,
|
|
5929
|
-
(0,
|
|
5890
|
+
(0, import_typeorm61.ManyToOne)(() => User, { onDelete: "CASCADE" }),
|
|
5891
|
+
(0, import_typeorm61.JoinColumn)({ name: "reviewer_id" })
|
|
5930
5892
|
], Rating.prototype, "reviewer", 2);
|
|
5931
5893
|
__decorateClass([
|
|
5932
|
-
(0,
|
|
5933
|
-
(0,
|
|
5894
|
+
(0, import_typeorm61.Column)({ name: "reviewee_id", type: "integer" }),
|
|
5895
|
+
(0, import_typeorm61.Index)()
|
|
5934
5896
|
], Rating.prototype, "reviewee_id", 2);
|
|
5935
5897
|
__decorateClass([
|
|
5936
|
-
(0,
|
|
5937
|
-
(0,
|
|
5898
|
+
(0, import_typeorm61.ManyToOne)(() => User, { onDelete: "CASCADE" }),
|
|
5899
|
+
(0, import_typeorm61.JoinColumn)({ name: "reviewee_id" })
|
|
5938
5900
|
], Rating.prototype, "reviewee", 2);
|
|
5939
5901
|
__decorateClass([
|
|
5940
|
-
(0,
|
|
5902
|
+
(0, import_typeorm61.Column)({
|
|
5941
5903
|
type: "enum",
|
|
5942
5904
|
enum: RatingTypeEnum,
|
|
5943
5905
|
nullable: true
|
|
5944
5906
|
})
|
|
5945
5907
|
], Rating.prototype, "ratingType", 2);
|
|
5946
5908
|
__decorateClass([
|
|
5947
|
-
(0,
|
|
5909
|
+
(0, import_typeorm61.Column)({ type: "integer", nullable: true })
|
|
5948
5910
|
], Rating.prototype, "rating", 2);
|
|
5949
5911
|
__decorateClass([
|
|
5950
|
-
(0,
|
|
5912
|
+
(0, import_typeorm61.Column)({ type: "text", nullable: true })
|
|
5951
5913
|
], Rating.prototype, "review", 2);
|
|
5952
5914
|
Rating = __decorateClass([
|
|
5953
|
-
(0,
|
|
5915
|
+
(0, import_typeorm61.Entity)("ratings")
|
|
5954
5916
|
], Rating);
|
|
5955
5917
|
|
|
5956
5918
|
// src/modules/rating/dto/add.rating.dto.ts
|
|
@@ -7810,11 +7772,11 @@ var ChatRMQAdapter = (mode = "microservice") => {
|
|
|
7810
7772
|
};
|
|
7811
7773
|
|
|
7812
7774
|
// src/entities/sequence-generator.entity.ts
|
|
7813
|
-
var
|
|
7775
|
+
var import_typeorm62 = require("typeorm");
|
|
7814
7776
|
var SequenceGenerator = class extends BaseEntity {
|
|
7815
7777
|
};
|
|
7816
7778
|
__decorateClass([
|
|
7817
|
-
(0,
|
|
7779
|
+
(0, import_typeorm62.Column)({
|
|
7818
7780
|
name: "module",
|
|
7819
7781
|
type: "varchar",
|
|
7820
7782
|
length: 50,
|
|
@@ -7823,7 +7785,7 @@ __decorateClass([
|
|
|
7823
7785
|
})
|
|
7824
7786
|
], SequenceGenerator.prototype, "module", 2);
|
|
7825
7787
|
__decorateClass([
|
|
7826
|
-
(0,
|
|
7788
|
+
(0, import_typeorm62.Column)({
|
|
7827
7789
|
name: "prefix",
|
|
7828
7790
|
type: "varchar",
|
|
7829
7791
|
length: 10,
|
|
@@ -7832,7 +7794,7 @@ __decorateClass([
|
|
|
7832
7794
|
})
|
|
7833
7795
|
], SequenceGenerator.prototype, "prefix", 2);
|
|
7834
7796
|
__decorateClass([
|
|
7835
|
-
(0,
|
|
7797
|
+
(0, import_typeorm62.Column)({
|
|
7836
7798
|
name: "last_sequence",
|
|
7837
7799
|
type: "int",
|
|
7838
7800
|
nullable: false,
|
|
@@ -7840,7 +7802,7 @@ __decorateClass([
|
|
|
7840
7802
|
})
|
|
7841
7803
|
], SequenceGenerator.prototype, "lastSequence", 2);
|
|
7842
7804
|
__decorateClass([
|
|
7843
|
-
(0,
|
|
7805
|
+
(0, import_typeorm62.Column)({
|
|
7844
7806
|
name: "year",
|
|
7845
7807
|
type: "int",
|
|
7846
7808
|
nullable: true,
|
|
@@ -7848,11 +7810,11 @@ __decorateClass([
|
|
|
7848
7810
|
})
|
|
7849
7811
|
], SequenceGenerator.prototype, "year", 2);
|
|
7850
7812
|
SequenceGenerator = __decorateClass([
|
|
7851
|
-
(0,
|
|
7813
|
+
(0, import_typeorm62.Entity)("sequence_generators")
|
|
7852
7814
|
], SequenceGenerator);
|
|
7853
7815
|
|
|
7854
7816
|
// src/entities/question.entity.ts
|
|
7855
|
-
var
|
|
7817
|
+
var import_typeorm63 = require("typeorm");
|
|
7856
7818
|
var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
7857
7819
|
QuestionFor2["CLIENT"] = "CLIENT";
|
|
7858
7820
|
QuestionFor2["FREELANCER"] = "FREELANCER";
|
|
@@ -7861,16 +7823,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
|
7861
7823
|
var Question = class extends BaseEntity {
|
|
7862
7824
|
};
|
|
7863
7825
|
__decorateClass([
|
|
7864
|
-
(0,
|
|
7826
|
+
(0, import_typeorm63.Column)({ name: "question", type: "varchar" })
|
|
7865
7827
|
], Question.prototype, "question", 2);
|
|
7866
7828
|
__decorateClass([
|
|
7867
|
-
(0,
|
|
7829
|
+
(0, import_typeorm63.Column)({ name: "hint", type: "varchar", nullable: true })
|
|
7868
7830
|
], Question.prototype, "hint", 2);
|
|
7869
7831
|
__decorateClass([
|
|
7870
|
-
(0,
|
|
7832
|
+
(0, import_typeorm63.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
7871
7833
|
], Question.prototype, "slug", 2);
|
|
7872
7834
|
__decorateClass([
|
|
7873
|
-
(0,
|
|
7835
|
+
(0, import_typeorm63.Column)({
|
|
7874
7836
|
name: "question_for",
|
|
7875
7837
|
type: "enum",
|
|
7876
7838
|
enum: QuestionFor,
|
|
@@ -7878,45 +7840,45 @@ __decorateClass([
|
|
|
7878
7840
|
})
|
|
7879
7841
|
], Question.prototype, "questionFor", 2);
|
|
7880
7842
|
__decorateClass([
|
|
7881
|
-
(0,
|
|
7843
|
+
(0, import_typeorm63.Column)({ name: "type", type: "varchar", nullable: true })
|
|
7882
7844
|
], Question.prototype, "type", 2);
|
|
7883
7845
|
__decorateClass([
|
|
7884
|
-
(0,
|
|
7846
|
+
(0, import_typeorm63.Column)({ name: "options", type: "jsonb", nullable: true })
|
|
7885
7847
|
], Question.prototype, "options", 2);
|
|
7886
7848
|
__decorateClass([
|
|
7887
|
-
(0,
|
|
7849
|
+
(0, import_typeorm63.Column)({ name: "is_active", type: "boolean", default: false })
|
|
7888
7850
|
], Question.prototype, "isActive", 2);
|
|
7889
7851
|
Question = __decorateClass([
|
|
7890
|
-
(0,
|
|
7852
|
+
(0, import_typeorm63.Entity)("questions")
|
|
7891
7853
|
], Question);
|
|
7892
7854
|
|
|
7893
7855
|
// src/entities/skill.entity.ts
|
|
7894
|
-
var
|
|
7856
|
+
var import_typeorm64 = require("typeorm");
|
|
7895
7857
|
var Skill = class extends BaseEntity {
|
|
7896
7858
|
};
|
|
7897
7859
|
__decorateClass([
|
|
7898
|
-
(0,
|
|
7860
|
+
(0, import_typeorm64.Column)({ name: "name", type: "varchar", nullable: true })
|
|
7899
7861
|
], Skill.prototype, "name", 2);
|
|
7900
7862
|
__decorateClass([
|
|
7901
|
-
(0,
|
|
7863
|
+
(0, import_typeorm64.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
7902
7864
|
], Skill.prototype, "slug", 2);
|
|
7903
7865
|
__decorateClass([
|
|
7904
|
-
(0,
|
|
7866
|
+
(0, import_typeorm64.Column)({ name: "is_active", type: "boolean", default: false })
|
|
7905
7867
|
], Skill.prototype, "isActive", 2);
|
|
7906
7868
|
Skill = __decorateClass([
|
|
7907
|
-
(0,
|
|
7869
|
+
(0, import_typeorm64.Entity)("skills")
|
|
7908
7870
|
], Skill);
|
|
7909
7871
|
|
|
7910
7872
|
// src/entities/skill-catalog.entity.ts
|
|
7911
|
-
var
|
|
7873
|
+
var import_typeorm65 = require("typeorm");
|
|
7912
7874
|
var SkillCatalog = class extends BaseEntity {
|
|
7913
7875
|
};
|
|
7914
7876
|
__decorateClass([
|
|
7915
|
-
(0,
|
|
7916
|
-
(0,
|
|
7877
|
+
(0, import_typeorm65.Column)({ name: "canonical_name", type: "varchar", length: 100, unique: true }),
|
|
7878
|
+
(0, import_typeorm65.Index)()
|
|
7917
7879
|
], SkillCatalog.prototype, "canonicalName", 2);
|
|
7918
7880
|
__decorateClass([
|
|
7919
|
-
(0,
|
|
7881
|
+
(0, import_typeorm65.Column)({
|
|
7920
7882
|
name: "aliases",
|
|
7921
7883
|
type: "text",
|
|
7922
7884
|
array: true,
|
|
@@ -7924,20 +7886,20 @@ __decorateClass([
|
|
|
7924
7886
|
})
|
|
7925
7887
|
], SkillCatalog.prototype, "aliases", 2);
|
|
7926
7888
|
__decorateClass([
|
|
7927
|
-
(0,
|
|
7889
|
+
(0, import_typeorm65.Column)({
|
|
7928
7890
|
name: "variations",
|
|
7929
7891
|
type: "jsonb",
|
|
7930
7892
|
default: "{}"
|
|
7931
7893
|
})
|
|
7932
7894
|
], SkillCatalog.prototype, "variations", 2);
|
|
7933
7895
|
__decorateClass([
|
|
7934
|
-
(0,
|
|
7896
|
+
(0, import_typeorm65.Column)({ name: "category", type: "varchar", length: 50, nullable: true })
|
|
7935
7897
|
], SkillCatalog.prototype, "category", 2);
|
|
7936
7898
|
__decorateClass([
|
|
7937
|
-
(0,
|
|
7899
|
+
(0, import_typeorm65.Column)({ name: "parent_skill", type: "varchar", length: 100, nullable: true })
|
|
7938
7900
|
], SkillCatalog.prototype, "parentSkill", 2);
|
|
7939
7901
|
__decorateClass([
|
|
7940
|
-
(0,
|
|
7902
|
+
(0, import_typeorm65.Column)({
|
|
7941
7903
|
name: "related_skills",
|
|
7942
7904
|
type: "text",
|
|
7943
7905
|
array: true,
|
|
@@ -7945,111 +7907,111 @@ __decorateClass([
|
|
|
7945
7907
|
})
|
|
7946
7908
|
], SkillCatalog.prototype, "relatedSkills", 2);
|
|
7947
7909
|
__decorateClass([
|
|
7948
|
-
(0,
|
|
7949
|
-
(0,
|
|
7910
|
+
(0, import_typeorm65.Column)({ name: "usage_count", type: "integer", default: 0 }),
|
|
7911
|
+
(0, import_typeorm65.Index)()
|
|
7950
7912
|
], SkillCatalog.prototype, "usageCount", 2);
|
|
7951
7913
|
__decorateClass([
|
|
7952
|
-
(0,
|
|
7914
|
+
(0, import_typeorm65.Column)({ name: "is_verified", type: "boolean", default: false })
|
|
7953
7915
|
], SkillCatalog.prototype, "isVerified", 2);
|
|
7954
7916
|
__decorateClass([
|
|
7955
|
-
(0,
|
|
7917
|
+
(0, import_typeorm65.Column)({ name: "first_seen_date", type: "date" })
|
|
7956
7918
|
], SkillCatalog.prototype, "firstSeenDate", 2);
|
|
7957
7919
|
__decorateClass([
|
|
7958
|
-
(0,
|
|
7920
|
+
(0, import_typeorm65.Column)({ name: "last_updated_date", type: "date" })
|
|
7959
7921
|
], SkillCatalog.prototype, "lastUpdatedDate", 2);
|
|
7960
7922
|
__decorateClass([
|
|
7961
|
-
(0,
|
|
7923
|
+
(0, import_typeorm65.Column)({
|
|
7962
7924
|
name: "search_vector",
|
|
7963
7925
|
type: "tsvector",
|
|
7964
7926
|
nullable: true
|
|
7965
7927
|
})
|
|
7966
7928
|
], SkillCatalog.prototype, "searchVector", 2);
|
|
7967
7929
|
SkillCatalog = __decorateClass([
|
|
7968
|
-
(0,
|
|
7930
|
+
(0, import_typeorm65.Entity)("skill_catalogs")
|
|
7969
7931
|
], SkillCatalog);
|
|
7970
7932
|
|
|
7971
7933
|
// src/entities/job-role.entity.ts
|
|
7972
|
-
var
|
|
7934
|
+
var import_typeorm66 = require("typeorm");
|
|
7973
7935
|
var JobRoles = class extends BaseEntity {
|
|
7974
7936
|
};
|
|
7975
7937
|
__decorateClass([
|
|
7976
|
-
(0,
|
|
7938
|
+
(0, import_typeorm66.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
7977
7939
|
], JobRoles.prototype, "slug", 2);
|
|
7978
7940
|
__decorateClass([
|
|
7979
|
-
(0,
|
|
7941
|
+
(0, import_typeorm66.Column)({ name: "name", type: "varchar", nullable: true })
|
|
7980
7942
|
], JobRoles.prototype, "name", 2);
|
|
7981
7943
|
__decorateClass([
|
|
7982
|
-
(0,
|
|
7944
|
+
(0, import_typeorm66.Column)({ name: "is_active", type: "boolean", default: true })
|
|
7983
7945
|
], JobRoles.prototype, "isActive", 2);
|
|
7984
7946
|
JobRoles = __decorateClass([
|
|
7985
|
-
(0,
|
|
7947
|
+
(0, import_typeorm66.Entity)("job_roles")
|
|
7986
7948
|
], JobRoles);
|
|
7987
7949
|
|
|
7988
7950
|
// src/entities/plan.entity.ts
|
|
7989
|
-
var
|
|
7951
|
+
var import_typeorm68 = require("typeorm");
|
|
7990
7952
|
|
|
7991
7953
|
// src/entities/feature.entity.ts
|
|
7992
|
-
var
|
|
7954
|
+
var import_typeorm67 = require("typeorm");
|
|
7993
7955
|
var Feature = class extends BaseEntity {
|
|
7994
7956
|
};
|
|
7995
7957
|
__decorateClass([
|
|
7996
|
-
(0,
|
|
7958
|
+
(0, import_typeorm67.Column)({ name: "name", type: "varchar", unique: true })
|
|
7997
7959
|
], Feature.prototype, "name", 2);
|
|
7998
7960
|
__decorateClass([
|
|
7999
|
-
(0,
|
|
7961
|
+
(0, import_typeorm67.ManyToMany)(() => Plan, (plan) => plan.features)
|
|
8000
7962
|
], Feature.prototype, "plans", 2);
|
|
8001
7963
|
Feature = __decorateClass([
|
|
8002
|
-
(0,
|
|
7964
|
+
(0, import_typeorm67.Entity)("features")
|
|
8003
7965
|
], Feature);
|
|
8004
7966
|
|
|
8005
7967
|
// src/entities/plan.entity.ts
|
|
8006
7968
|
var Plan = class extends BaseEntity {
|
|
8007
7969
|
};
|
|
8008
7970
|
__decorateClass([
|
|
8009
|
-
(0,
|
|
7971
|
+
(0, import_typeorm68.Column)({ name: "name", type: "varchar", unique: true })
|
|
8010
7972
|
], Plan.prototype, "name", 2);
|
|
8011
7973
|
__decorateClass([
|
|
8012
|
-
(0,
|
|
7974
|
+
(0, import_typeorm68.Column)({ name: "description", type: "varchar", nullable: true })
|
|
8013
7975
|
], Plan.prototype, "description", 2);
|
|
8014
7976
|
__decorateClass([
|
|
8015
|
-
(0,
|
|
7977
|
+
(0, import_typeorm68.Column)({ name: "price", type: "decimal", precision: 10, scale: 2 })
|
|
8016
7978
|
], Plan.prototype, "price", 2);
|
|
8017
7979
|
__decorateClass([
|
|
8018
|
-
(0,
|
|
7980
|
+
(0, import_typeorm68.Column)({ name: "billing_period", type: "varchar" })
|
|
8019
7981
|
], Plan.prototype, "billingPeriod", 2);
|
|
8020
7982
|
__decorateClass([
|
|
8021
|
-
(0,
|
|
7983
|
+
(0, import_typeorm68.Column)({ name: "is_current", type: "boolean", default: false })
|
|
8022
7984
|
], Plan.prototype, "isCurrent", 2);
|
|
8023
7985
|
__decorateClass([
|
|
8024
|
-
(0,
|
|
8025
|
-
(0,
|
|
7986
|
+
(0, import_typeorm68.ManyToMany)(() => Feature, (feature) => feature.plans, { cascade: true }),
|
|
7987
|
+
(0, import_typeorm68.JoinTable)()
|
|
8026
7988
|
], Plan.prototype, "features", 2);
|
|
8027
7989
|
Plan = __decorateClass([
|
|
8028
|
-
(0,
|
|
7990
|
+
(0, import_typeorm68.Entity)("plans")
|
|
8029
7991
|
], Plan);
|
|
8030
7992
|
|
|
8031
7993
|
// src/entities/cms.entity.ts
|
|
8032
|
-
var
|
|
7994
|
+
var import_typeorm69 = require("typeorm");
|
|
8033
7995
|
var Cms = class extends BaseEntity {
|
|
8034
7996
|
};
|
|
8035
7997
|
__decorateClass([
|
|
8036
|
-
(0,
|
|
7998
|
+
(0, import_typeorm69.Column)({ name: "title", type: "varchar", nullable: true })
|
|
8037
7999
|
], Cms.prototype, "title", 2);
|
|
8038
8000
|
__decorateClass([
|
|
8039
|
-
(0,
|
|
8001
|
+
(0, import_typeorm69.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
8040
8002
|
], Cms.prototype, "slug", 2);
|
|
8041
8003
|
__decorateClass([
|
|
8042
|
-
(0,
|
|
8004
|
+
(0, import_typeorm69.Column)({ name: "content", type: "varchar", nullable: true })
|
|
8043
8005
|
], Cms.prototype, "content", 2);
|
|
8044
8006
|
__decorateClass([
|
|
8045
|
-
(0,
|
|
8007
|
+
(0, import_typeorm69.Column)({ name: "is_active", type: "boolean", default: true })
|
|
8046
8008
|
], Cms.prototype, "isActive", 2);
|
|
8047
8009
|
Cms = __decorateClass([
|
|
8048
|
-
(0,
|
|
8010
|
+
(0, import_typeorm69.Entity)("cms")
|
|
8049
8011
|
], Cms);
|
|
8050
8012
|
|
|
8051
8013
|
// src/entities/lead.entity.ts
|
|
8052
|
-
var
|
|
8014
|
+
var import_typeorm70 = require("typeorm");
|
|
8053
8015
|
var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
|
|
8054
8016
|
CategoryEmum2["BUSINESS"] = "BUSINESS";
|
|
8055
8017
|
CategoryEmum2["FREELANCER"] = "FREELANCER";
|
|
@@ -8058,22 +8020,22 @@ var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
|
|
|
8058
8020
|
var Lead = class extends BaseEntity {
|
|
8059
8021
|
};
|
|
8060
8022
|
__decorateClass([
|
|
8061
|
-
(0,
|
|
8023
|
+
(0, import_typeorm70.Column)({ name: "name", type: "varchar", nullable: true })
|
|
8062
8024
|
], Lead.prototype, "name", 2);
|
|
8063
8025
|
__decorateClass([
|
|
8064
|
-
(0,
|
|
8026
|
+
(0, import_typeorm70.Column)({ name: "mobile_code", type: "varchar", nullable: true })
|
|
8065
8027
|
], Lead.prototype, "mobileCode", 2);
|
|
8066
8028
|
__decorateClass([
|
|
8067
|
-
(0,
|
|
8029
|
+
(0, import_typeorm70.Column)({ name: "mobile", type: "varchar", nullable: true })
|
|
8068
8030
|
], Lead.prototype, "mobile", 2);
|
|
8069
8031
|
__decorateClass([
|
|
8070
|
-
(0,
|
|
8032
|
+
(0, import_typeorm70.Column)({ name: "email", type: "varchar", nullable: true })
|
|
8071
8033
|
], Lead.prototype, "email", 2);
|
|
8072
8034
|
__decorateClass([
|
|
8073
|
-
(0,
|
|
8035
|
+
(0, import_typeorm70.Column)({ name: "description", type: "varchar", nullable: true })
|
|
8074
8036
|
], Lead.prototype, "description", 2);
|
|
8075
8037
|
__decorateClass([
|
|
8076
|
-
(0,
|
|
8038
|
+
(0, import_typeorm70.Column)({
|
|
8077
8039
|
name: "category",
|
|
8078
8040
|
type: "enum",
|
|
8079
8041
|
enum: CategoryEmum,
|
|
@@ -8081,129 +8043,129 @@ __decorateClass([
|
|
|
8081
8043
|
})
|
|
8082
8044
|
], Lead.prototype, "category", 2);
|
|
8083
8045
|
Lead = __decorateClass([
|
|
8084
|
-
(0,
|
|
8046
|
+
(0, import_typeorm70.Entity)("leads")
|
|
8085
8047
|
], Lead);
|
|
8086
8048
|
|
|
8087
8049
|
// src/entities/job-freelancer-recommendation.entity.ts
|
|
8088
|
-
var
|
|
8050
|
+
var import_typeorm71 = require("typeorm");
|
|
8089
8051
|
var JobFreelancerRecommendation = class {
|
|
8090
8052
|
};
|
|
8091
8053
|
__decorateClass([
|
|
8092
|
-
(0,
|
|
8054
|
+
(0, import_typeorm71.ViewColumn)({ name: "job_id" })
|
|
8093
8055
|
], JobFreelancerRecommendation.prototype, "jobId", 2);
|
|
8094
8056
|
__decorateClass([
|
|
8095
|
-
(0,
|
|
8057
|
+
(0, import_typeorm71.ViewColumn)({ name: "job_uuid" })
|
|
8096
8058
|
], JobFreelancerRecommendation.prototype, "jobUuid", 2);
|
|
8097
8059
|
__decorateClass([
|
|
8098
|
-
(0,
|
|
8060
|
+
(0, import_typeorm71.ViewColumn)({ name: "job_unique_id" })
|
|
8099
8061
|
], JobFreelancerRecommendation.prototype, "jobUniqueId", 2);
|
|
8100
8062
|
__decorateClass([
|
|
8101
|
-
(0,
|
|
8063
|
+
(0, import_typeorm71.ViewColumn)({ name: "job_role" })
|
|
8102
8064
|
], JobFreelancerRecommendation.prototype, "jobRole", 2);
|
|
8103
8065
|
__decorateClass([
|
|
8104
|
-
(0,
|
|
8066
|
+
(0, import_typeorm71.ViewColumn)({ name: "job_openings" })
|
|
8105
8067
|
], JobFreelancerRecommendation.prototype, "jobOpenings", 2);
|
|
8106
8068
|
__decorateClass([
|
|
8107
|
-
(0,
|
|
8069
|
+
(0, import_typeorm71.ViewColumn)({ name: "job_location" })
|
|
8108
8070
|
], JobFreelancerRecommendation.prototype, "jobLocation", 2);
|
|
8109
8071
|
__decorateClass([
|
|
8110
|
-
(0,
|
|
8072
|
+
(0, import_typeorm71.ViewColumn)({ name: "job_currency" })
|
|
8111
8073
|
], JobFreelancerRecommendation.prototype, "jobCurrency", 2);
|
|
8112
8074
|
__decorateClass([
|
|
8113
|
-
(0,
|
|
8075
|
+
(0, import_typeorm71.ViewColumn)({ name: "job_salary_from" })
|
|
8114
8076
|
], JobFreelancerRecommendation.prototype, "jobSalaryFrom", 2);
|
|
8115
8077
|
__decorateClass([
|
|
8116
|
-
(0,
|
|
8078
|
+
(0, import_typeorm71.ViewColumn)({ name: "job_salary_to" })
|
|
8117
8079
|
], JobFreelancerRecommendation.prototype, "jobSalaryTo", 2);
|
|
8118
8080
|
__decorateClass([
|
|
8119
|
-
(0,
|
|
8081
|
+
(0, import_typeorm71.ViewColumn)({ name: "job_employment_type" })
|
|
8120
8082
|
], JobFreelancerRecommendation.prototype, "jobEmploymentType", 2);
|
|
8121
8083
|
__decorateClass([
|
|
8122
|
-
(0,
|
|
8084
|
+
(0, import_typeorm71.ViewColumn)({ name: "application_received" })
|
|
8123
8085
|
], JobFreelancerRecommendation.prototype, "applicationReceived", 2);
|
|
8124
8086
|
__decorateClass([
|
|
8125
|
-
(0,
|
|
8087
|
+
(0, import_typeorm71.ViewColumn)({ name: "job_posted_at" })
|
|
8126
8088
|
], JobFreelancerRecommendation.prototype, "jobPostedAt", 2);
|
|
8127
8089
|
__decorateClass([
|
|
8128
|
-
(0,
|
|
8090
|
+
(0, import_typeorm71.ViewColumn)({ name: "freelancer_id" })
|
|
8129
8091
|
], JobFreelancerRecommendation.prototype, "freelancerId", 2);
|
|
8130
8092
|
__decorateClass([
|
|
8131
|
-
(0,
|
|
8093
|
+
(0, import_typeorm71.ViewColumn)({ name: "freelancer_uuid" })
|
|
8132
8094
|
], JobFreelancerRecommendation.prototype, "freelancerUuid", 2);
|
|
8133
8095
|
__decorateClass([
|
|
8134
|
-
(0,
|
|
8096
|
+
(0, import_typeorm71.ViewColumn)({ name: "freelancer_unique_id" })
|
|
8135
8097
|
], JobFreelancerRecommendation.prototype, "freelancerUniqueId", 2);
|
|
8136
8098
|
__decorateClass([
|
|
8137
|
-
(0,
|
|
8099
|
+
(0, import_typeorm71.ViewColumn)({ name: "freelancer_first_name" })
|
|
8138
8100
|
], JobFreelancerRecommendation.prototype, "freelancerFirstName", 2);
|
|
8139
8101
|
__decorateClass([
|
|
8140
|
-
(0,
|
|
8102
|
+
(0, import_typeorm71.ViewColumn)({ name: "freelancer_last_name" })
|
|
8141
8103
|
], JobFreelancerRecommendation.prototype, "freelancerLastName", 2);
|
|
8142
8104
|
__decorateClass([
|
|
8143
|
-
(0,
|
|
8105
|
+
(0, import_typeorm71.ViewColumn)({ name: "freelancer_email" })
|
|
8144
8106
|
], JobFreelancerRecommendation.prototype, "freelancerEmail", 2);
|
|
8145
8107
|
__decorateClass([
|
|
8146
|
-
(0,
|
|
8108
|
+
(0, import_typeorm71.ViewColumn)({ name: "freelancer_profile_picture" })
|
|
8147
8109
|
], JobFreelancerRecommendation.prototype, "freelancerProfilePicture", 2);
|
|
8148
8110
|
__decorateClass([
|
|
8149
|
-
(0,
|
|
8111
|
+
(0, import_typeorm71.ViewColumn)({ name: "freelancer_is_social" })
|
|
8150
8112
|
], JobFreelancerRecommendation.prototype, "freelancerIsSocial", 2);
|
|
8151
8113
|
__decorateClass([
|
|
8152
|
-
(0,
|
|
8114
|
+
(0, import_typeorm71.ViewColumn)({ name: "freelancer_created_at" })
|
|
8153
8115
|
], JobFreelancerRecommendation.prototype, "freelancerCreatedAt", 2);
|
|
8154
8116
|
__decorateClass([
|
|
8155
|
-
(0,
|
|
8117
|
+
(0, import_typeorm71.ViewColumn)({ name: "freelancer_designation" })
|
|
8156
8118
|
], JobFreelancerRecommendation.prototype, "freelancerDesignation", 2);
|
|
8157
8119
|
__decorateClass([
|
|
8158
|
-
(0,
|
|
8120
|
+
(0, import_typeorm71.ViewColumn)({ name: "freelancer_experience" })
|
|
8159
8121
|
], JobFreelancerRecommendation.prototype, "freelancerExperience", 2);
|
|
8160
8122
|
__decorateClass([
|
|
8161
|
-
(0,
|
|
8123
|
+
(0, import_typeorm71.ViewColumn)({ name: "freelancer_expertshub_verified" })
|
|
8162
8124
|
], JobFreelancerRecommendation.prototype, "freelancerExpertshubVerified", 2);
|
|
8163
8125
|
__decorateClass([
|
|
8164
|
-
(0,
|
|
8126
|
+
(0, import_typeorm71.ViewColumn)({ name: "freelancer_hourly_compensation" })
|
|
8165
8127
|
], JobFreelancerRecommendation.prototype, "freelancerHourlyCompensation", 2);
|
|
8166
8128
|
__decorateClass([
|
|
8167
|
-
(0,
|
|
8129
|
+
(0, import_typeorm71.ViewColumn)({ name: "freelancer_country_name" })
|
|
8168
8130
|
], JobFreelancerRecommendation.prototype, "freelancerCountryName", 2);
|
|
8169
8131
|
__decorateClass([
|
|
8170
|
-
(0,
|
|
8132
|
+
(0, import_typeorm71.ViewColumn)({ name: "freelancer_country_iso_code" })
|
|
8171
8133
|
], JobFreelancerRecommendation.prototype, "freelancerCountryIsoCode", 2);
|
|
8172
8134
|
__decorateClass([
|
|
8173
|
-
(0,
|
|
8135
|
+
(0, import_typeorm71.ViewColumn)({ name: "client_id" })
|
|
8174
8136
|
], JobFreelancerRecommendation.prototype, "clientId", 2);
|
|
8175
8137
|
__decorateClass([
|
|
8176
|
-
(0,
|
|
8138
|
+
(0, import_typeorm71.ViewColumn)({ name: "client_uuid" })
|
|
8177
8139
|
], JobFreelancerRecommendation.prototype, "clientUuid", 2);
|
|
8178
8140
|
__decorateClass([
|
|
8179
|
-
(0,
|
|
8141
|
+
(0, import_typeorm71.ViewColumn)({ name: "client_first_name" })
|
|
8180
8142
|
], JobFreelancerRecommendation.prototype, "clientFirstName", 2);
|
|
8181
8143
|
__decorateClass([
|
|
8182
|
-
(0,
|
|
8144
|
+
(0, import_typeorm71.ViewColumn)({ name: "client_last_name" })
|
|
8183
8145
|
], JobFreelancerRecommendation.prototype, "clientLastName", 2);
|
|
8184
8146
|
__decorateClass([
|
|
8185
|
-
(0,
|
|
8147
|
+
(0, import_typeorm71.ViewColumn)({ name: "client_email" })
|
|
8186
8148
|
], JobFreelancerRecommendation.prototype, "clientEmail", 2);
|
|
8187
8149
|
__decorateClass([
|
|
8188
|
-
(0,
|
|
8150
|
+
(0, import_typeorm71.ViewColumn)({ name: "client_company_logo" })
|
|
8189
8151
|
], JobFreelancerRecommendation.prototype, "clientCompanyLogo", 2);
|
|
8190
8152
|
__decorateClass([
|
|
8191
|
-
(0,
|
|
8153
|
+
(0, import_typeorm71.ViewColumn)({ name: "client_company_name" })
|
|
8192
8154
|
], JobFreelancerRecommendation.prototype, "clientCompanyName", 2);
|
|
8193
8155
|
__decorateClass([
|
|
8194
|
-
(0,
|
|
8156
|
+
(0, import_typeorm71.ViewColumn)({ name: "matching_skills" })
|
|
8195
8157
|
], JobFreelancerRecommendation.prototype, "matchingSkills", 2);
|
|
8196
8158
|
__decorateClass([
|
|
8197
|
-
(0,
|
|
8159
|
+
(0, import_typeorm71.ViewColumn)({ name: "matching_skills_count" })
|
|
8198
8160
|
], JobFreelancerRecommendation.prototype, "matchingSkillsCount", 2);
|
|
8199
8161
|
__decorateClass([
|
|
8200
|
-
(0,
|
|
8162
|
+
(0, import_typeorm71.ViewColumn)({ name: "required_skills" })
|
|
8201
8163
|
], JobFreelancerRecommendation.prototype, "requiredSkills", 2);
|
|
8202
8164
|
__decorateClass([
|
|
8203
|
-
(0,
|
|
8165
|
+
(0, import_typeorm71.ViewColumn)({ name: "required_skills_count" })
|
|
8204
8166
|
], JobFreelancerRecommendation.prototype, "requiredSkillsCount", 2);
|
|
8205
8167
|
JobFreelancerRecommendation = __decorateClass([
|
|
8206
|
-
(0,
|
|
8168
|
+
(0, import_typeorm71.ViewEntity)({
|
|
8207
8169
|
name: "job_freelancer_recommendations",
|
|
8208
8170
|
materialized: true,
|
|
8209
8171
|
synchronize: false
|
|
@@ -8212,32 +8174,32 @@ JobFreelancerRecommendation = __decorateClass([
|
|
|
8212
8174
|
], JobFreelancerRecommendation);
|
|
8213
8175
|
|
|
8214
8176
|
// src/entities/job-freelancer-recommendation-v2.entity.ts
|
|
8215
|
-
var
|
|
8177
|
+
var import_typeorm72 = require("typeorm");
|
|
8216
8178
|
var JobFreelancerRecommendationV2 = class {
|
|
8217
8179
|
};
|
|
8218
8180
|
__decorateClass([
|
|
8219
|
-
(0,
|
|
8181
|
+
(0, import_typeorm72.ViewColumn)({ name: "job_id" })
|
|
8220
8182
|
], JobFreelancerRecommendationV2.prototype, "jobId", 2);
|
|
8221
8183
|
__decorateClass([
|
|
8222
|
-
(0,
|
|
8184
|
+
(0, import_typeorm72.ViewColumn)({ name: "job_owner_id" })
|
|
8223
8185
|
], JobFreelancerRecommendationV2.prototype, "jobOwnerId", 2);
|
|
8224
8186
|
__decorateClass([
|
|
8225
|
-
(0,
|
|
8187
|
+
(0, import_typeorm72.ViewColumn)({ name: "freelancer_id" })
|
|
8226
8188
|
], JobFreelancerRecommendationV2.prototype, "freelancerId", 2);
|
|
8227
8189
|
__decorateClass([
|
|
8228
|
-
(0,
|
|
8190
|
+
(0, import_typeorm72.ViewColumn)({ name: "matching_skills" })
|
|
8229
8191
|
], JobFreelancerRecommendationV2.prototype, "matchingSkills", 2);
|
|
8230
8192
|
__decorateClass([
|
|
8231
|
-
(0,
|
|
8193
|
+
(0, import_typeorm72.ViewColumn)({ name: "matching_skills_count" })
|
|
8232
8194
|
], JobFreelancerRecommendationV2.prototype, "matchingSkillsCount", 2);
|
|
8233
8195
|
__decorateClass([
|
|
8234
|
-
(0,
|
|
8196
|
+
(0, import_typeorm72.ViewColumn)({ name: "required_skills" })
|
|
8235
8197
|
], JobFreelancerRecommendationV2.prototype, "requiredSkills", 2);
|
|
8236
8198
|
__decorateClass([
|
|
8237
|
-
(0,
|
|
8199
|
+
(0, import_typeorm72.ViewColumn)({ name: "required_skills_count" })
|
|
8238
8200
|
], JobFreelancerRecommendationV2.prototype, "requiredSkillsCount", 2);
|
|
8239
8201
|
JobFreelancerRecommendationV2 = __decorateClass([
|
|
8240
|
-
(0,
|
|
8202
|
+
(0, import_typeorm72.ViewEntity)({
|
|
8241
8203
|
name: "job_freelancer_recommendations_v2",
|
|
8242
8204
|
materialized: true,
|
|
8243
8205
|
synchronize: false
|
|
@@ -8246,74 +8208,74 @@ JobFreelancerRecommendationV2 = __decorateClass([
|
|
|
8246
8208
|
], JobFreelancerRecommendationV2);
|
|
8247
8209
|
|
|
8248
8210
|
// src/entities/client-freelancer-recommendation.entity.ts
|
|
8249
|
-
var
|
|
8211
|
+
var import_typeorm73 = require("typeorm");
|
|
8250
8212
|
var ClientFreelancerRecommendation = class {
|
|
8251
8213
|
};
|
|
8252
8214
|
__decorateClass([
|
|
8253
|
-
(0,
|
|
8215
|
+
(0, import_typeorm73.ViewColumn)({ name: "client_id" })
|
|
8254
8216
|
], ClientFreelancerRecommendation.prototype, "clientId", 2);
|
|
8255
8217
|
__decorateClass([
|
|
8256
|
-
(0,
|
|
8218
|
+
(0, import_typeorm73.ViewColumn)({ name: "client_uuid" })
|
|
8257
8219
|
], ClientFreelancerRecommendation.prototype, "clientUuid", 2);
|
|
8258
8220
|
__decorateClass([
|
|
8259
|
-
(0,
|
|
8221
|
+
(0, import_typeorm73.ViewColumn)({ name: "freelancer_id" })
|
|
8260
8222
|
], ClientFreelancerRecommendation.prototype, "freelancerId", 2);
|
|
8261
8223
|
__decorateClass([
|
|
8262
|
-
(0,
|
|
8224
|
+
(0, import_typeorm73.ViewColumn)({ name: "freelancer_uuid" })
|
|
8263
8225
|
], ClientFreelancerRecommendation.prototype, "freelancerUuid", 2);
|
|
8264
8226
|
__decorateClass([
|
|
8265
|
-
(0,
|
|
8227
|
+
(0, import_typeorm73.ViewColumn)({ name: "freelancer_unique_id" })
|
|
8266
8228
|
], ClientFreelancerRecommendation.prototype, "freelancerUniqueId", 2);
|
|
8267
8229
|
__decorateClass([
|
|
8268
|
-
(0,
|
|
8230
|
+
(0, import_typeorm73.ViewColumn)({ name: "freelancer_first_name" })
|
|
8269
8231
|
], ClientFreelancerRecommendation.prototype, "freelancerFirstName", 2);
|
|
8270
8232
|
__decorateClass([
|
|
8271
|
-
(0,
|
|
8233
|
+
(0, import_typeorm73.ViewColumn)({ name: "freelancer_last_name" })
|
|
8272
8234
|
], ClientFreelancerRecommendation.prototype, "freelancerLastName", 2);
|
|
8273
8235
|
__decorateClass([
|
|
8274
|
-
(0,
|
|
8236
|
+
(0, import_typeorm73.ViewColumn)({ name: "freelancer_email" })
|
|
8275
8237
|
], ClientFreelancerRecommendation.prototype, "freelancerEmail", 2);
|
|
8276
8238
|
__decorateClass([
|
|
8277
|
-
(0,
|
|
8239
|
+
(0, import_typeorm73.ViewColumn)({ name: "freelancer_profile_picture" })
|
|
8278
8240
|
], ClientFreelancerRecommendation.prototype, "freelancerProfilePicture", 2);
|
|
8279
8241
|
__decorateClass([
|
|
8280
|
-
(0,
|
|
8242
|
+
(0, import_typeorm73.ViewColumn)({ name: "freelancer_is_social" })
|
|
8281
8243
|
], ClientFreelancerRecommendation.prototype, "freelancerIsSocial", 2);
|
|
8282
8244
|
__decorateClass([
|
|
8283
|
-
(0,
|
|
8245
|
+
(0, import_typeorm73.ViewColumn)({ name: "freelancer_created_at" })
|
|
8284
8246
|
], ClientFreelancerRecommendation.prototype, "freelancerCreatedAt", 2);
|
|
8285
8247
|
__decorateClass([
|
|
8286
|
-
(0,
|
|
8248
|
+
(0, import_typeorm73.ViewColumn)({ name: "freelancer_designation" })
|
|
8287
8249
|
], ClientFreelancerRecommendation.prototype, "freelancerDesignation", 2);
|
|
8288
8250
|
__decorateClass([
|
|
8289
|
-
(0,
|
|
8251
|
+
(0, import_typeorm73.ViewColumn)({ name: "freelancer_experience" })
|
|
8290
8252
|
], ClientFreelancerRecommendation.prototype, "freelancerExperience", 2);
|
|
8291
8253
|
__decorateClass([
|
|
8292
|
-
(0,
|
|
8254
|
+
(0, import_typeorm73.ViewColumn)({ name: "freelancer_expertshub_verified" })
|
|
8293
8255
|
], ClientFreelancerRecommendation.prototype, "freelancerExpertshubVerified", 2);
|
|
8294
8256
|
__decorateClass([
|
|
8295
|
-
(0,
|
|
8257
|
+
(0, import_typeorm73.ViewColumn)({ name: "freelancer_hourly_compensation" })
|
|
8296
8258
|
], ClientFreelancerRecommendation.prototype, "freelancerHourlyCompensation", 2);
|
|
8297
8259
|
__decorateClass([
|
|
8298
|
-
(0,
|
|
8260
|
+
(0, import_typeorm73.ViewColumn)({ name: "freelancer_country_name" })
|
|
8299
8261
|
], ClientFreelancerRecommendation.prototype, "freelancerCountryName", 2);
|
|
8300
8262
|
__decorateClass([
|
|
8301
|
-
(0,
|
|
8263
|
+
(0, import_typeorm73.ViewColumn)({ name: "freelancer_country_iso_code" })
|
|
8302
8264
|
], ClientFreelancerRecommendation.prototype, "freelancerCountryIsoCode", 2);
|
|
8303
8265
|
__decorateClass([
|
|
8304
|
-
(0,
|
|
8266
|
+
(0, import_typeorm73.ViewColumn)({ name: "matching_skills" })
|
|
8305
8267
|
], ClientFreelancerRecommendation.prototype, "matchingSkills", 2);
|
|
8306
8268
|
__decorateClass([
|
|
8307
|
-
(0,
|
|
8269
|
+
(0, import_typeorm73.ViewColumn)({ name: "matching_skills_count" })
|
|
8308
8270
|
], ClientFreelancerRecommendation.prototype, "matchingSkillsCount", 2);
|
|
8309
8271
|
__decorateClass([
|
|
8310
|
-
(0,
|
|
8272
|
+
(0, import_typeorm73.ViewColumn)({ name: "required_skills" })
|
|
8311
8273
|
], ClientFreelancerRecommendation.prototype, "requiredSkills", 2);
|
|
8312
8274
|
__decorateClass([
|
|
8313
|
-
(0,
|
|
8275
|
+
(0, import_typeorm73.ViewColumn)({ name: "required_skills_count" })
|
|
8314
8276
|
], ClientFreelancerRecommendation.prototype, "requiredSkillsCount", 2);
|
|
8315
8277
|
ClientFreelancerRecommendation = __decorateClass([
|
|
8316
|
-
(0,
|
|
8278
|
+
(0, import_typeorm73.ViewEntity)({
|
|
8317
8279
|
name: "client_freelancer_recommendations",
|
|
8318
8280
|
materialized: true,
|
|
8319
8281
|
synchronize: false
|
|
@@ -8322,7 +8284,7 @@ ClientFreelancerRecommendation = __decorateClass([
|
|
|
8322
8284
|
], ClientFreelancerRecommendation);
|
|
8323
8285
|
|
|
8324
8286
|
// src/entities/commission.entity.ts
|
|
8325
|
-
var
|
|
8287
|
+
var import_typeorm74 = require("typeorm");
|
|
8326
8288
|
var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
|
|
8327
8289
|
CommissionTypeEnum2["PERCENTAGE"] = "PERCENTAGE";
|
|
8328
8290
|
CommissionTypeEnum2["FLAT"] = "FLAT";
|
|
@@ -8331,7 +8293,7 @@ var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
|
|
|
8331
8293
|
var Commission = class extends BaseEntity {
|
|
8332
8294
|
};
|
|
8333
8295
|
__decorateClass([
|
|
8334
|
-
(0,
|
|
8296
|
+
(0, import_typeorm74.Column)({
|
|
8335
8297
|
name: "freelancer_commission_type",
|
|
8336
8298
|
type: "enum",
|
|
8337
8299
|
enum: CommissionTypeEnum,
|
|
@@ -8339,10 +8301,10 @@ __decorateClass([
|
|
|
8339
8301
|
})
|
|
8340
8302
|
], Commission.prototype, "freelancerCommissionType", 2);
|
|
8341
8303
|
__decorateClass([
|
|
8342
|
-
(0,
|
|
8304
|
+
(0, import_typeorm74.Column)({ name: "freelancer_commission", type: "integer", default: 0 })
|
|
8343
8305
|
], Commission.prototype, "freelancerCommission", 2);
|
|
8344
8306
|
__decorateClass([
|
|
8345
|
-
(0,
|
|
8307
|
+
(0, import_typeorm74.Column)({
|
|
8346
8308
|
name: "client_commission_type",
|
|
8347
8309
|
type: "enum",
|
|
8348
8310
|
enum: CommissionTypeEnum,
|
|
@@ -8350,93 +8312,93 @@ __decorateClass([
|
|
|
8350
8312
|
})
|
|
8351
8313
|
], Commission.prototype, "clientCommissionType", 2);
|
|
8352
8314
|
__decorateClass([
|
|
8353
|
-
(0,
|
|
8315
|
+
(0, import_typeorm74.Column)({ name: "client_commission", type: "integer", default: 0 })
|
|
8354
8316
|
], Commission.prototype, "clientCommission", 2);
|
|
8355
8317
|
Commission = __decorateClass([
|
|
8356
|
-
(0,
|
|
8318
|
+
(0, import_typeorm74.Entity)("commissions")
|
|
8357
8319
|
], Commission);
|
|
8358
8320
|
|
|
8359
8321
|
// src/entities/calendly-meeting-log.entity.ts
|
|
8360
|
-
var
|
|
8322
|
+
var import_typeorm75 = require("typeorm");
|
|
8361
8323
|
var CalendlyMeetingLog = class extends BaseEntity {
|
|
8362
8324
|
};
|
|
8363
8325
|
__decorateClass([
|
|
8364
|
-
(0,
|
|
8365
|
-
(0,
|
|
8326
|
+
(0, import_typeorm75.Column)({ name: "calendly_event_id", type: "varchar", nullable: true }),
|
|
8327
|
+
(0, import_typeorm75.Index)()
|
|
8366
8328
|
], CalendlyMeetingLog.prototype, "calendlyEventId", 2);
|
|
8367
8329
|
__decorateClass([
|
|
8368
|
-
(0,
|
|
8330
|
+
(0, import_typeorm75.Column)({ name: "calendly_event_type", type: "varchar", nullable: true })
|
|
8369
8331
|
], CalendlyMeetingLog.prototype, "calendlyEventType", 2);
|
|
8370
8332
|
__decorateClass([
|
|
8371
|
-
(0,
|
|
8333
|
+
(0, import_typeorm75.Column)({ name: "raw_webhook_data", type: "jsonb", nullable: true })
|
|
8372
8334
|
], CalendlyMeetingLog.prototype, "rawWebhookData", 2);
|
|
8373
8335
|
CalendlyMeetingLog = __decorateClass([
|
|
8374
|
-
(0,
|
|
8336
|
+
(0, import_typeorm75.Entity)("calendly_meeting_logs")
|
|
8375
8337
|
], CalendlyMeetingLog);
|
|
8376
8338
|
|
|
8377
8339
|
// src/entities/zoom-meeting-log.entity.ts
|
|
8378
|
-
var
|
|
8340
|
+
var import_typeorm76 = require("typeorm");
|
|
8379
8341
|
var ZoomMeetingLog = class extends BaseEntity {
|
|
8380
8342
|
};
|
|
8381
8343
|
__decorateClass([
|
|
8382
|
-
(0,
|
|
8383
|
-
(0,
|
|
8344
|
+
(0, import_typeorm76.Column)({ name: "zoom_meeting_id", type: "varchar", nullable: true }),
|
|
8345
|
+
(0, import_typeorm76.Index)()
|
|
8384
8346
|
], ZoomMeetingLog.prototype, "zoomMeetingId", 2);
|
|
8385
8347
|
__decorateClass([
|
|
8386
|
-
(0,
|
|
8348
|
+
(0, import_typeorm76.Column)({ name: "zoom_event_type", type: "varchar", nullable: true })
|
|
8387
8349
|
], ZoomMeetingLog.prototype, "zoomEventType", 2);
|
|
8388
8350
|
__decorateClass([
|
|
8389
|
-
(0,
|
|
8351
|
+
(0, import_typeorm76.Column)({ name: "raw_webhook_data", type: "jsonb", nullable: true })
|
|
8390
8352
|
], ZoomMeetingLog.prototype, "rawWebhookData", 2);
|
|
8391
8353
|
ZoomMeetingLog = __decorateClass([
|
|
8392
|
-
(0,
|
|
8354
|
+
(0, import_typeorm76.Entity)("zoom_meeting_logs")
|
|
8393
8355
|
], ZoomMeetingLog);
|
|
8394
8356
|
|
|
8395
8357
|
// src/entities/stripe-logs.entity.ts
|
|
8396
|
-
var
|
|
8358
|
+
var import_typeorm77 = require("typeorm");
|
|
8397
8359
|
var StripeLog = class extends BaseEntity {
|
|
8398
8360
|
};
|
|
8399
8361
|
__decorateClass([
|
|
8400
|
-
(0,
|
|
8362
|
+
(0, import_typeorm77.Column)({ name: "stripe_event_id", type: "varchar", nullable: true })
|
|
8401
8363
|
], StripeLog.prototype, "stripeEventId", 2);
|
|
8402
8364
|
__decorateClass([
|
|
8403
|
-
(0,
|
|
8365
|
+
(0, import_typeorm77.Column)({ name: "event_type", type: "varchar", nullable: true })
|
|
8404
8366
|
], StripeLog.prototype, "eventType", 2);
|
|
8405
8367
|
__decorateClass([
|
|
8406
|
-
(0,
|
|
8368
|
+
(0, import_typeorm77.Column)({ name: "stripe_account_id", type: "varchar", nullable: true })
|
|
8407
8369
|
], StripeLog.prototype, "stripeAccountId", 2);
|
|
8408
8370
|
__decorateClass([
|
|
8409
|
-
(0,
|
|
8371
|
+
(0, import_typeorm77.Column)({ name: "raw_webhook_data", type: "jsonb", nullable: true })
|
|
8410
8372
|
], StripeLog.prototype, "rawWebhookData", 2);
|
|
8411
8373
|
StripeLog = __decorateClass([
|
|
8412
|
-
(0,
|
|
8374
|
+
(0, import_typeorm77.Entity)("stripe_logs")
|
|
8413
8375
|
], StripeLog);
|
|
8414
8376
|
|
|
8415
8377
|
// src/entities/recommendation-weightage-config.entity.ts
|
|
8416
|
-
var
|
|
8378
|
+
var import_typeorm78 = require("typeorm");
|
|
8417
8379
|
var RecommendationWeightageConfig = class extends BaseEntity {
|
|
8418
8380
|
};
|
|
8419
8381
|
__decorateClass([
|
|
8420
|
-
(0,
|
|
8382
|
+
(0, import_typeorm78.Column)({
|
|
8421
8383
|
type: "varchar",
|
|
8422
8384
|
length: 100,
|
|
8423
8385
|
unique: true,
|
|
8424
8386
|
comment: "Unique key identifier (e.g., full_time_weights, hourly_weights)"
|
|
8425
8387
|
}),
|
|
8426
|
-
(0,
|
|
8388
|
+
(0, import_typeorm78.Index)()
|
|
8427
8389
|
], RecommendationWeightageConfig.prototype, "key", 2);
|
|
8428
8390
|
__decorateClass([
|
|
8429
|
-
(0,
|
|
8391
|
+
(0, import_typeorm78.Column)({
|
|
8430
8392
|
type: "jsonb",
|
|
8431
8393
|
comment: "JSON object containing weight values",
|
|
8432
8394
|
nullable: true
|
|
8433
8395
|
})
|
|
8434
8396
|
], RecommendationWeightageConfig.prototype, "value", 2);
|
|
8435
8397
|
__decorateClass([
|
|
8436
|
-
(0,
|
|
8398
|
+
(0, import_typeorm78.Column)({ name: "is_active", type: "boolean", default: true })
|
|
8437
8399
|
], RecommendationWeightageConfig.prototype, "isActive", 2);
|
|
8438
8400
|
RecommendationWeightageConfig = __decorateClass([
|
|
8439
|
-
(0,
|
|
8401
|
+
(0, import_typeorm78.Entity)("recommendation_weightage_configs")
|
|
8440
8402
|
], RecommendationWeightageConfig);
|
|
8441
8403
|
// Annotate the CommonJS export names for ESM import in node:
|
|
8442
8404
|
0 && (module.exports = {
|