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