@experts_hub/shared 1.0.511 → 1.0.514
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 +19 -0
- package/dist/entities/job.entity.d.ts +2 -0
- package/dist/index.d.mts +18 -2
- package/dist/index.d.ts +18 -2
- package/dist/index.js +739 -689
- package/dist/index.mjs +682 -626
- package/dist/modules/job/dto/job-basic-information.dto.d.ts +3 -2
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1001,12 +1001,12 @@ import {
|
|
|
1001
1001
|
Max
|
|
1002
1002
|
} from "class-validator";
|
|
1003
1003
|
import { Type } from "class-transformer";
|
|
1004
|
-
var
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
return
|
|
1009
|
-
})(
|
|
1004
|
+
var JobLocationEnum = /* @__PURE__ */ ((JobLocationEnum3) => {
|
|
1005
|
+
JobLocationEnum3["ONSITE"] = "ONSITE";
|
|
1006
|
+
JobLocationEnum3["REMOTE"] = "REMOTE";
|
|
1007
|
+
JobLocationEnum3["HYBRID"] = "HYBRID";
|
|
1008
|
+
return JobLocationEnum3;
|
|
1009
|
+
})(JobLocationEnum || {});
|
|
1010
1010
|
var EmploymentType = /* @__PURE__ */ ((EmploymentType2) => {
|
|
1011
1011
|
EmploymentType2["FULLTIME"] = "FULLTIME";
|
|
1012
1012
|
EmploymentType2["PARTTIME"] = "PARTTIME";
|
|
@@ -1063,8 +1063,8 @@ __decorateClass([
|
|
|
1063
1063
|
], JobBasicInformationDto.prototype, "openings", 2);
|
|
1064
1064
|
__decorateClass([
|
|
1065
1065
|
ValidateIf3((o) => !o.isDraft),
|
|
1066
|
-
IsEnum10(
|
|
1067
|
-
message: `Location must be one of: ${Object.values(
|
|
1066
|
+
IsEnum10(JobLocationEnum, {
|
|
1067
|
+
message: `Location must be one of: ${Object.values(JobLocationEnum).join(
|
|
1068
1068
|
", "
|
|
1069
1069
|
)}`
|
|
1070
1070
|
})
|
|
@@ -1515,17 +1515,17 @@ import {
|
|
|
1515
1515
|
} from "class-validator";
|
|
1516
1516
|
|
|
1517
1517
|
// src/entities/rating.entity.ts
|
|
1518
|
-
import { Entity as
|
|
1518
|
+
import { Entity as Entity61, Column as Column62, ManyToOne as ManyToOne56, JoinColumn as JoinColumn57, Index as Index55 } from "typeorm";
|
|
1519
1519
|
|
|
1520
1520
|
// src/entities/user.entity.ts
|
|
1521
1521
|
import {
|
|
1522
|
-
Entity as
|
|
1523
|
-
Column as
|
|
1522
|
+
Entity as Entity60,
|
|
1523
|
+
Column as Column61,
|
|
1524
1524
|
OneToMany as OneToMany21,
|
|
1525
1525
|
OneToOne as OneToOne11,
|
|
1526
|
-
Index as
|
|
1527
|
-
ManyToOne as
|
|
1528
|
-
JoinColumn as
|
|
1526
|
+
Index as Index54,
|
|
1527
|
+
ManyToOne as ManyToOne55,
|
|
1528
|
+
JoinColumn as JoinColumn56
|
|
1529
1529
|
} from "typeorm";
|
|
1530
1530
|
|
|
1531
1531
|
// src/entities/base.entity.ts
|
|
@@ -2347,11 +2347,11 @@ FreelancerProfile = __decorateClass([
|
|
|
2347
2347
|
|
|
2348
2348
|
// src/entities/job.entity.ts
|
|
2349
2349
|
import {
|
|
2350
|
-
Entity as
|
|
2351
|
-
Column as
|
|
2352
|
-
Index as
|
|
2353
|
-
ManyToOne as
|
|
2354
|
-
JoinColumn as
|
|
2350
|
+
Entity as Entity30,
|
|
2351
|
+
Column as Column31,
|
|
2352
|
+
Index as Index24,
|
|
2353
|
+
ManyToOne as ManyToOne29,
|
|
2354
|
+
JoinColumn as JoinColumn29,
|
|
2355
2355
|
OneToMany as OneToMany12
|
|
2356
2356
|
} from "typeorm";
|
|
2357
2357
|
|
|
@@ -3979,14 +3979,69 @@ Timesheet = __decorateClass([
|
|
|
3979
3979
|
Entity28("timesheets")
|
|
3980
3980
|
], Timesheet);
|
|
3981
3981
|
|
|
3982
|
+
// src/entities/job-location.entity.ts
|
|
3983
|
+
import {
|
|
3984
|
+
Entity as Entity29,
|
|
3985
|
+
Column as Column30,
|
|
3986
|
+
ManyToOne as ManyToOne28,
|
|
3987
|
+
JoinColumn as JoinColumn28,
|
|
3988
|
+
Index as Index23
|
|
3989
|
+
} from "typeorm";
|
|
3990
|
+
var JobLocation = class extends BaseEntity {
|
|
3991
|
+
};
|
|
3992
|
+
__decorateClass([
|
|
3993
|
+
Column30({ name: "job_id", type: "integer", nullable: false }),
|
|
3994
|
+
Index23()
|
|
3995
|
+
], JobLocation.prototype, "jobId", 2);
|
|
3996
|
+
__decorateClass([
|
|
3997
|
+
ManyToOne28(() => Job, (job) => job.jobLocations),
|
|
3998
|
+
JoinColumn28({ name: "job_id" })
|
|
3999
|
+
], JobLocation.prototype, "job", 2);
|
|
4000
|
+
__decorateClass([
|
|
4001
|
+
Column30({ name: "country_id", type: "int", nullable: false })
|
|
4002
|
+
], JobLocation.prototype, "countryId", 2);
|
|
4003
|
+
__decorateClass([
|
|
4004
|
+
Column30({ name: "country_name", type: "varchar", nullable: true })
|
|
4005
|
+
], JobLocation.prototype, "countryName", 2);
|
|
4006
|
+
__decorateClass([
|
|
4007
|
+
ManyToOne28(() => Country),
|
|
4008
|
+
JoinColumn28({ name: "country_id" })
|
|
4009
|
+
], JobLocation.prototype, "country", 2);
|
|
4010
|
+
__decorateClass([
|
|
4011
|
+
Column30({ name: "state_id", type: "int", nullable: false })
|
|
4012
|
+
], JobLocation.prototype, "stateId", 2);
|
|
4013
|
+
__decorateClass([
|
|
4014
|
+
Column30({ name: "state_name", type: "varchar", nullable: true })
|
|
4015
|
+
], JobLocation.prototype, "stateName", 2);
|
|
4016
|
+
__decorateClass([
|
|
4017
|
+
ManyToOne28(() => State),
|
|
4018
|
+
JoinColumn28({ name: "state_id" })
|
|
4019
|
+
], JobLocation.prototype, "state", 2);
|
|
4020
|
+
__decorateClass([
|
|
4021
|
+
Column30({ name: "city_id", type: "int", nullable: false })
|
|
4022
|
+
], JobLocation.prototype, "cityId", 2);
|
|
4023
|
+
__decorateClass([
|
|
4024
|
+
Column30({ name: "city_name", type: "varchar", nullable: true })
|
|
4025
|
+
], JobLocation.prototype, "cityName", 2);
|
|
4026
|
+
__decorateClass([
|
|
4027
|
+
ManyToOne28(() => City),
|
|
4028
|
+
JoinColumn28({ name: "city_id" })
|
|
4029
|
+
], JobLocation.prototype, "city", 2);
|
|
4030
|
+
__decorateClass([
|
|
4031
|
+
Column30({ name: "location_wise_openings", type: "int", default: 0 })
|
|
4032
|
+
], JobLocation.prototype, "locationWiseOpenings", 2);
|
|
4033
|
+
JobLocation = __decorateClass([
|
|
4034
|
+
Entity29("job_locations")
|
|
4035
|
+
], JobLocation);
|
|
4036
|
+
|
|
3982
4037
|
// src/entities/job.entity.ts
|
|
3983
|
-
var
|
|
3984
|
-
|
|
3985
|
-
|
|
3986
|
-
|
|
3987
|
-
|
|
3988
|
-
return
|
|
3989
|
-
})(
|
|
4038
|
+
var JobLocationEnum2 = /* @__PURE__ */ ((JobLocationEnum3) => {
|
|
4039
|
+
JobLocationEnum3["ONSITE"] = "ONSITE";
|
|
4040
|
+
JobLocationEnum3["REMOTE"] = "REMOTE";
|
|
4041
|
+
JobLocationEnum3["HYBRID"] = "HYBRID";
|
|
4042
|
+
JobLocationEnum3["BOTH"] = "BOTH";
|
|
4043
|
+
return JobLocationEnum3;
|
|
4044
|
+
})(JobLocationEnum2 || {});
|
|
3990
4045
|
var typeOfExperienceEnum = /* @__PURE__ */ ((typeOfExperienceEnum2) => {
|
|
3991
4046
|
typeOfExperienceEnum2["SINGLE"] = "SINGLE";
|
|
3992
4047
|
typeOfExperienceEnum2["RANGE"] = "RANGE";
|
|
@@ -4023,69 +4078,65 @@ var DurationTypeEnum = /* @__PURE__ */ ((DurationTypeEnum2) => {
|
|
|
4023
4078
|
return DurationTypeEnum2;
|
|
4024
4079
|
})(DurationTypeEnum || {});
|
|
4025
4080
|
var Job = class extends BaseEntity {
|
|
4026
|
-
// @OneToMany(() => JobLocation, (jobLocation) => jobLocation.job, {
|
|
4027
|
-
// cascade: true,
|
|
4028
|
-
// })
|
|
4029
|
-
// jobLocations: JobLocation[];
|
|
4030
4081
|
};
|
|
4031
4082
|
__decorateClass([
|
|
4032
|
-
|
|
4083
|
+
Column31({ name: "job_id", type: "varchar", unique: true, nullable: true })
|
|
4033
4084
|
], Job.prototype, "jobId", 2);
|
|
4034
4085
|
// individual index to find jobs by user
|
|
4035
4086
|
__decorateClass([
|
|
4036
|
-
|
|
4037
|
-
|
|
4087
|
+
Column31({ name: "user_id", type: "integer", nullable: true }),
|
|
4088
|
+
Index24()
|
|
4038
4089
|
], Job.prototype, "userId", 2);
|
|
4039
4090
|
__decorateClass([
|
|
4040
|
-
|
|
4041
|
-
|
|
4091
|
+
ManyToOne29(() => User, (user) => user.jobs),
|
|
4092
|
+
JoinColumn29({ name: "user_id" })
|
|
4042
4093
|
], Job.prototype, "user", 2);
|
|
4043
4094
|
__decorateClass([
|
|
4044
|
-
|
|
4095
|
+
Column31({ name: "country_id", type: "int", nullable: true })
|
|
4045
4096
|
], Job.prototype, "countryId", 2);
|
|
4046
4097
|
__decorateClass([
|
|
4047
|
-
|
|
4048
|
-
|
|
4098
|
+
ManyToOne29(() => Country),
|
|
4099
|
+
JoinColumn29({ name: "country_id" })
|
|
4049
4100
|
], Job.prototype, "country", 2);
|
|
4050
4101
|
__decorateClass([
|
|
4051
|
-
|
|
4102
|
+
Column31({ name: "state_id", type: "int", nullable: true })
|
|
4052
4103
|
], Job.prototype, "stateId", 2);
|
|
4053
4104
|
__decorateClass([
|
|
4054
|
-
|
|
4055
|
-
|
|
4105
|
+
ManyToOne29(() => State),
|
|
4106
|
+
JoinColumn29({ name: "state_id" })
|
|
4056
4107
|
], Job.prototype, "state", 2);
|
|
4057
4108
|
__decorateClass([
|
|
4058
|
-
|
|
4109
|
+
Column31({ name: "city_id", type: "int", nullable: true })
|
|
4059
4110
|
], Job.prototype, "cityId", 2);
|
|
4060
4111
|
__decorateClass([
|
|
4061
|
-
|
|
4062
|
-
|
|
4112
|
+
ManyToOne29(() => City),
|
|
4113
|
+
JoinColumn29({ name: "city_id" })
|
|
4063
4114
|
], Job.prototype, "city", 2);
|
|
4064
4115
|
__decorateClass([
|
|
4065
|
-
|
|
4116
|
+
Column31({ name: "job_role", type: "varchar", nullable: true })
|
|
4066
4117
|
], Job.prototype, "jobRole", 2);
|
|
4067
4118
|
__decorateClass([
|
|
4068
|
-
|
|
4119
|
+
Column31({ name: "job_role_canonical_name", type: "varchar", nullable: true })
|
|
4069
4120
|
], Job.prototype, "jobRoleCanonicalName", 2);
|
|
4070
4121
|
__decorateClass([
|
|
4071
|
-
|
|
4122
|
+
Column31({ name: "project_name", type: "varchar", nullable: true })
|
|
4072
4123
|
], Job.prototype, "projectName", 2);
|
|
4073
4124
|
__decorateClass([
|
|
4074
|
-
|
|
4125
|
+
Column31({ name: "note", type: "varchar", nullable: true })
|
|
4075
4126
|
], Job.prototype, "note", 2);
|
|
4076
4127
|
__decorateClass([
|
|
4077
|
-
|
|
4128
|
+
Column31({ name: "openings", type: "integer", default: 0 })
|
|
4078
4129
|
], Job.prototype, "openings", 2);
|
|
4079
4130
|
__decorateClass([
|
|
4080
|
-
|
|
4131
|
+
Column31({
|
|
4081
4132
|
name: "location",
|
|
4082
4133
|
type: "enum",
|
|
4083
|
-
enum:
|
|
4134
|
+
enum: JobLocationEnum2,
|
|
4084
4135
|
nullable: true
|
|
4085
4136
|
})
|
|
4086
4137
|
], Job.prototype, "location", 2);
|
|
4087
4138
|
__decorateClass([
|
|
4088
|
-
|
|
4139
|
+
Column31({
|
|
4089
4140
|
name: "type_of_employment",
|
|
4090
4141
|
type: "enum",
|
|
4091
4142
|
enum: TypeOfEmploymentEnum,
|
|
@@ -4093,10 +4144,10 @@ __decorateClass([
|
|
|
4093
4144
|
})
|
|
4094
4145
|
], Job.prototype, "typeOfEmployment", 2);
|
|
4095
4146
|
__decorateClass([
|
|
4096
|
-
|
|
4147
|
+
Column31({ name: "academic_qualifictaion", type: "varchar", nullable: true })
|
|
4097
4148
|
], Job.prototype, "academicQualification", 2);
|
|
4098
4149
|
__decorateClass([
|
|
4099
|
-
|
|
4150
|
+
Column31({
|
|
4100
4151
|
name: "type_of_experience",
|
|
4101
4152
|
type: "enum",
|
|
4102
4153
|
enum: typeOfExperienceEnum,
|
|
@@ -4104,22 +4155,22 @@ __decorateClass([
|
|
|
4104
4155
|
})
|
|
4105
4156
|
], Job.prototype, "typeOfExperience", 2);
|
|
4106
4157
|
__decorateClass([
|
|
4107
|
-
|
|
4158
|
+
Column31({ name: "years_of_experience", type: "varchar", nullable: true })
|
|
4108
4159
|
], Job.prototype, "yearsOfExperience", 2);
|
|
4109
4160
|
__decorateClass([
|
|
4110
|
-
|
|
4161
|
+
Column31({ name: "years_of_experience_from", type: "varchar", nullable: true })
|
|
4111
4162
|
], Job.prototype, "yearsOfExperienceFrom", 2);
|
|
4112
4163
|
__decorateClass([
|
|
4113
|
-
|
|
4164
|
+
Column31({ name: "years_of_experience_to", type: "varchar", nullable: true })
|
|
4114
4165
|
], Job.prototype, "yearsOfExperienceTo", 2);
|
|
4115
4166
|
__decorateClass([
|
|
4116
|
-
|
|
4167
|
+
Column31({ name: "business_industry", type: "varchar", nullable: true })
|
|
4117
4168
|
], Job.prototype, "businessIndustry", 2);
|
|
4118
4169
|
__decorateClass([
|
|
4119
|
-
|
|
4170
|
+
Column31({ name: "currency", type: "varchar", default: "USD" })
|
|
4120
4171
|
], Job.prototype, "currency", 2);
|
|
4121
4172
|
__decorateClass([
|
|
4122
|
-
|
|
4173
|
+
Column31({
|
|
4123
4174
|
name: "expected_salary_from",
|
|
4124
4175
|
type: "decimal",
|
|
4125
4176
|
precision: 10,
|
|
@@ -4128,14 +4179,14 @@ __decorateClass([
|
|
|
4128
4179
|
})
|
|
4129
4180
|
], Job.prototype, "expectedSalaryFrom", 2);
|
|
4130
4181
|
__decorateClass([
|
|
4131
|
-
|
|
4182
|
+
Column31({
|
|
4132
4183
|
name: "hide_expected_salary_from",
|
|
4133
4184
|
type: "boolean",
|
|
4134
4185
|
default: false
|
|
4135
4186
|
})
|
|
4136
4187
|
], Job.prototype, "hideExpectedSalaryFrom", 2);
|
|
4137
4188
|
__decorateClass([
|
|
4138
|
-
|
|
4189
|
+
Column31({
|
|
4139
4190
|
name: "expected_salary_to",
|
|
4140
4191
|
type: "decimal",
|
|
4141
4192
|
precision: 10,
|
|
@@ -4144,32 +4195,32 @@ __decorateClass([
|
|
|
4144
4195
|
})
|
|
4145
4196
|
], Job.prototype, "expectedSalaryTo", 2);
|
|
4146
4197
|
__decorateClass([
|
|
4147
|
-
|
|
4198
|
+
Column31({
|
|
4148
4199
|
name: "hide_expected_salary_to",
|
|
4149
4200
|
type: "boolean",
|
|
4150
4201
|
default: false
|
|
4151
4202
|
})
|
|
4152
4203
|
], Job.prototype, "hideExpectedSalaryTo", 2);
|
|
4153
4204
|
__decorateClass([
|
|
4154
|
-
|
|
4205
|
+
Column31({ name: "years", type: "varchar", nullable: true })
|
|
4155
4206
|
], Job.prototype, "years", 2);
|
|
4156
4207
|
__decorateClass([
|
|
4157
|
-
|
|
4208
|
+
Column31({ name: "months", type: "varchar", nullable: true })
|
|
4158
4209
|
], Job.prototype, "months", 2);
|
|
4159
4210
|
__decorateClass([
|
|
4160
|
-
|
|
4211
|
+
Column31({ name: "weeks", type: "varchar", nullable: true })
|
|
4161
4212
|
], Job.prototype, "weeks", 2);
|
|
4162
4213
|
__decorateClass([
|
|
4163
|
-
|
|
4214
|
+
Column31({ name: "days", type: "varchar", nullable: true })
|
|
4164
4215
|
], Job.prototype, "days", 2);
|
|
4165
4216
|
__decorateClass([
|
|
4166
|
-
|
|
4217
|
+
Column31({ name: "tentative_start_date", type: "date", nullable: true })
|
|
4167
4218
|
], Job.prototype, "tentativeStartDate", 2);
|
|
4168
4219
|
__decorateClass([
|
|
4169
|
-
|
|
4220
|
+
Column31({ name: "tentative_end_date", type: "date", nullable: true })
|
|
4170
4221
|
], Job.prototype, "tentativeEndDate", 2);
|
|
4171
4222
|
__decorateClass([
|
|
4172
|
-
|
|
4223
|
+
Column31({
|
|
4173
4224
|
name: "duration_type",
|
|
4174
4225
|
type: "enum",
|
|
4175
4226
|
enum: DurationTypeEnum,
|
|
@@ -4177,10 +4228,10 @@ __decorateClass([
|
|
|
4177
4228
|
})
|
|
4178
4229
|
], Job.prototype, "durationType", 2);
|
|
4179
4230
|
__decorateClass([
|
|
4180
|
-
|
|
4231
|
+
Column31({ name: "duration", type: "varchar", nullable: true })
|
|
4181
4232
|
], Job.prototype, "duration", 2);
|
|
4182
4233
|
__decorateClass([
|
|
4183
|
-
|
|
4234
|
+
Column31({
|
|
4184
4235
|
name: "number_of_hours",
|
|
4185
4236
|
type: "decimal",
|
|
4186
4237
|
precision: 4,
|
|
@@ -4189,13 +4240,13 @@ __decorateClass([
|
|
|
4189
4240
|
})
|
|
4190
4241
|
], Job.prototype, "numberOfHours", 2);
|
|
4191
4242
|
__decorateClass([
|
|
4192
|
-
|
|
4243
|
+
Column31({ name: "description", type: "varchar", nullable: true })
|
|
4193
4244
|
], Job.prototype, "description", 2);
|
|
4194
4245
|
__decorateClass([
|
|
4195
|
-
|
|
4246
|
+
Column31({ name: "additional_comment", type: "varchar", nullable: true })
|
|
4196
4247
|
], Job.prototype, "additionalComment", 2);
|
|
4197
4248
|
__decorateClass([
|
|
4198
|
-
|
|
4249
|
+
Column31({
|
|
4199
4250
|
name: "onboarding_tat",
|
|
4200
4251
|
type: "varchar",
|
|
4201
4252
|
length: 50,
|
|
@@ -4203,14 +4254,14 @@ __decorateClass([
|
|
|
4203
4254
|
})
|
|
4204
4255
|
], Job.prototype, "onboardingTat", 2);
|
|
4205
4256
|
__decorateClass([
|
|
4206
|
-
|
|
4257
|
+
Column31({
|
|
4207
4258
|
name: "candidate_communication_skills",
|
|
4208
4259
|
type: "varchar",
|
|
4209
4260
|
nullable: true
|
|
4210
4261
|
})
|
|
4211
4262
|
], Job.prototype, "candidateCommunicationSkills", 2);
|
|
4212
4263
|
__decorateClass([
|
|
4213
|
-
|
|
4264
|
+
Column31({
|
|
4214
4265
|
name: "step_completed",
|
|
4215
4266
|
type: "enum",
|
|
4216
4267
|
enum: Step,
|
|
@@ -4218,7 +4269,7 @@ __decorateClass([
|
|
|
4218
4269
|
})
|
|
4219
4270
|
], Job.prototype, "stepCompleted", 2);
|
|
4220
4271
|
__decorateClass([
|
|
4221
|
-
|
|
4272
|
+
Column31({
|
|
4222
4273
|
name: "status",
|
|
4223
4274
|
type: "enum",
|
|
4224
4275
|
enum: JobStatusEnum,
|
|
@@ -4226,16 +4277,16 @@ __decorateClass([
|
|
|
4226
4277
|
})
|
|
4227
4278
|
], Job.prototype, "status", 2);
|
|
4228
4279
|
__decorateClass([
|
|
4229
|
-
|
|
4280
|
+
Column31({ name: "viewed_count", type: "integer", default: 0 })
|
|
4230
4281
|
], Job.prototype, "viewedCount", 2);
|
|
4231
4282
|
__decorateClass([
|
|
4232
|
-
|
|
4283
|
+
Column31({ name: "application_count", type: "integer", default: 0 })
|
|
4233
4284
|
], Job.prototype, "applicationCount", 2);
|
|
4234
4285
|
__decorateClass([
|
|
4235
|
-
|
|
4286
|
+
Column31({ name: "is_contract_signed", type: "boolean", default: false })
|
|
4236
4287
|
], Job.prototype, "isContractSigned", 2);
|
|
4237
4288
|
__decorateClass([
|
|
4238
|
-
|
|
4289
|
+
Column31({ name: "is_interview_created", type: "boolean", default: false })
|
|
4239
4290
|
], Job.prototype, "isInterviewCreated", 2);
|
|
4240
4291
|
__decorateClass([
|
|
4241
4292
|
OneToMany12(() => InterviewInvite, (interviewInvite) => interviewInvite.job, { cascade: true })
|
|
@@ -4295,17 +4346,22 @@ __decorateClass([
|
|
|
4295
4346
|
__decorateClass([
|
|
4296
4347
|
OneToMany12(() => ClientCandidatePreference, (clientCandidatePreference) => clientCandidatePreference.job)
|
|
4297
4348
|
], Job.prototype, "clientCandidatePreferences", 2);
|
|
4349
|
+
__decorateClass([
|
|
4350
|
+
OneToMany12(() => JobLocation, (jobLocation) => jobLocation.job, {
|
|
4351
|
+
cascade: true
|
|
4352
|
+
})
|
|
4353
|
+
], Job.prototype, "jobLocations", 2);
|
|
4298
4354
|
Job = __decorateClass([
|
|
4299
|
-
|
|
4355
|
+
Entity30("jobs")
|
|
4300
4356
|
], Job);
|
|
4301
4357
|
|
|
4302
4358
|
// src/entities/bank-details.entity.ts
|
|
4303
4359
|
import {
|
|
4304
|
-
Entity as
|
|
4305
|
-
Column as
|
|
4306
|
-
Index as
|
|
4307
|
-
ManyToOne as
|
|
4308
|
-
JoinColumn as
|
|
4360
|
+
Entity as Entity31,
|
|
4361
|
+
Column as Column32,
|
|
4362
|
+
Index as Index25,
|
|
4363
|
+
ManyToOne as ManyToOne30,
|
|
4364
|
+
JoinColumn as JoinColumn30
|
|
4309
4365
|
} from "typeorm";
|
|
4310
4366
|
var BankAccountTypeEnum = /* @__PURE__ */ ((BankAccountTypeEnum2) => {
|
|
4311
4367
|
BankAccountTypeEnum2["PRIMARY"] = "PRIMARY";
|
|
@@ -4321,51 +4377,51 @@ var BankDetail = class extends BaseEntity {
|
|
|
4321
4377
|
};
|
|
4322
4378
|
// individual index to find bank details by user
|
|
4323
4379
|
__decorateClass([
|
|
4324
|
-
|
|
4325
|
-
|
|
4380
|
+
Column32({ name: "user_id", type: "integer", nullable: true }),
|
|
4381
|
+
Index25()
|
|
4326
4382
|
], BankDetail.prototype, "userId", 2);
|
|
4327
4383
|
__decorateClass([
|
|
4328
|
-
|
|
4329
|
-
|
|
4384
|
+
ManyToOne30(() => User, (user) => user.bankDetail),
|
|
4385
|
+
JoinColumn30({ name: "user_id" })
|
|
4330
4386
|
], BankDetail.prototype, "user", 2);
|
|
4331
4387
|
__decorateClass([
|
|
4332
|
-
|
|
4388
|
+
Column32({ name: "name", type: "varchar", nullable: true })
|
|
4333
4389
|
], BankDetail.prototype, "name", 2);
|
|
4334
4390
|
__decorateClass([
|
|
4335
|
-
|
|
4391
|
+
Column32({ name: "mobile_code", type: "varchar", nullable: true })
|
|
4336
4392
|
], BankDetail.prototype, "mobileCode", 2);
|
|
4337
4393
|
__decorateClass([
|
|
4338
|
-
|
|
4394
|
+
Column32({ name: "mobile", type: "varchar", nullable: true })
|
|
4339
4395
|
], BankDetail.prototype, "mobile", 2);
|
|
4340
4396
|
__decorateClass([
|
|
4341
|
-
|
|
4397
|
+
Column32({ name: "email", type: "varchar" })
|
|
4342
4398
|
], BankDetail.prototype, "email", 2);
|
|
4343
4399
|
__decorateClass([
|
|
4344
|
-
|
|
4400
|
+
Column32({ name: "address", type: "varchar", nullable: true })
|
|
4345
4401
|
], BankDetail.prototype, "address", 2);
|
|
4346
4402
|
__decorateClass([
|
|
4347
|
-
|
|
4403
|
+
Column32({ name: "account_number", type: "varchar", unique: true, nullable: true })
|
|
4348
4404
|
], BankDetail.prototype, "accountNumber", 2);
|
|
4349
4405
|
__decorateClass([
|
|
4350
|
-
|
|
4406
|
+
Column32({ name: "bank_name", type: "varchar", nullable: true })
|
|
4351
4407
|
], BankDetail.prototype, "bankName", 2);
|
|
4352
4408
|
__decorateClass([
|
|
4353
|
-
|
|
4409
|
+
Column32({ name: "ifsc_code", type: "varchar", nullable: true })
|
|
4354
4410
|
], BankDetail.prototype, "ifscCode", 2);
|
|
4355
4411
|
__decorateClass([
|
|
4356
|
-
|
|
4412
|
+
Column32({ name: "branch_name", type: "varchar", nullable: true })
|
|
4357
4413
|
], BankDetail.prototype, "branchName", 2);
|
|
4358
4414
|
__decorateClass([
|
|
4359
|
-
|
|
4415
|
+
Column32({ name: "routing_no", type: "varchar", nullable: true })
|
|
4360
4416
|
], BankDetail.prototype, "routingNo", 2);
|
|
4361
4417
|
__decorateClass([
|
|
4362
|
-
|
|
4418
|
+
Column32({ name: "aba_no", type: "varchar", nullable: true })
|
|
4363
4419
|
], BankDetail.prototype, "abaNumber", 2);
|
|
4364
4420
|
__decorateClass([
|
|
4365
|
-
|
|
4421
|
+
Column32({ name: "iban", type: "varchar", nullable: true })
|
|
4366
4422
|
], BankDetail.prototype, "iban", 2);
|
|
4367
4423
|
__decorateClass([
|
|
4368
|
-
|
|
4424
|
+
Column32({
|
|
4369
4425
|
name: "account_type",
|
|
4370
4426
|
type: "enum",
|
|
4371
4427
|
enum: BankAccountTypeEnum,
|
|
@@ -4373,7 +4429,7 @@ __decorateClass([
|
|
|
4373
4429
|
})
|
|
4374
4430
|
], BankDetail.prototype, "accountType", 2);
|
|
4375
4431
|
__decorateClass([
|
|
4376
|
-
|
|
4432
|
+
Column32({
|
|
4377
4433
|
name: "account_scope",
|
|
4378
4434
|
type: "enum",
|
|
4379
4435
|
enum: BankAccountScopeEnum,
|
|
@@ -4381,185 +4437,185 @@ __decorateClass([
|
|
|
4381
4437
|
})
|
|
4382
4438
|
], BankDetail.prototype, "accountScope", 2);
|
|
4383
4439
|
BankDetail = __decorateClass([
|
|
4384
|
-
|
|
4440
|
+
Entity31("bank_details")
|
|
4385
4441
|
], BankDetail);
|
|
4386
4442
|
|
|
4387
4443
|
// src/entities/system-preference.entity.ts
|
|
4388
4444
|
import {
|
|
4389
|
-
Entity as
|
|
4390
|
-
Column as
|
|
4391
|
-
Index as
|
|
4392
|
-
ManyToOne as
|
|
4393
|
-
JoinColumn as
|
|
4445
|
+
Entity as Entity32,
|
|
4446
|
+
Column as Column33,
|
|
4447
|
+
Index as Index26,
|
|
4448
|
+
ManyToOne as ManyToOne31,
|
|
4449
|
+
JoinColumn as JoinColumn31
|
|
4394
4450
|
} from "typeorm";
|
|
4395
4451
|
var SystemPreference = class extends BaseEntity {
|
|
4396
4452
|
};
|
|
4397
4453
|
// individual index to find system preference by user
|
|
4398
4454
|
__decorateClass([
|
|
4399
|
-
|
|
4400
|
-
|
|
4455
|
+
Column33({ name: "user_id", type: "integer", nullable: true }),
|
|
4456
|
+
Index26()
|
|
4401
4457
|
], SystemPreference.prototype, "userId", 2);
|
|
4402
4458
|
__decorateClass([
|
|
4403
|
-
|
|
4404
|
-
|
|
4459
|
+
ManyToOne31(() => User, (user) => user.systemPreference),
|
|
4460
|
+
JoinColumn31({ name: "user_id" })
|
|
4405
4461
|
], SystemPreference.prototype, "user", 2);
|
|
4406
4462
|
__decorateClass([
|
|
4407
|
-
|
|
4463
|
+
Column33({ name: "key", type: "varchar", nullable: false })
|
|
4408
4464
|
], SystemPreference.prototype, "key", 2);
|
|
4409
4465
|
__decorateClass([
|
|
4410
|
-
|
|
4466
|
+
Column33({ name: "value", type: "boolean", default: false })
|
|
4411
4467
|
], SystemPreference.prototype, "value", 2);
|
|
4412
4468
|
SystemPreference = __decorateClass([
|
|
4413
|
-
|
|
4469
|
+
Entity32("system_preferences")
|
|
4414
4470
|
], SystemPreference);
|
|
4415
4471
|
|
|
4416
4472
|
// src/entities/freelancer-experience.entity.ts
|
|
4417
4473
|
import {
|
|
4418
|
-
Entity as
|
|
4419
|
-
Column as
|
|
4420
|
-
Index as
|
|
4421
|
-
ManyToOne as
|
|
4422
|
-
JoinColumn as
|
|
4474
|
+
Entity as Entity33,
|
|
4475
|
+
Column as Column34,
|
|
4476
|
+
Index as Index27,
|
|
4477
|
+
ManyToOne as ManyToOne32,
|
|
4478
|
+
JoinColumn as JoinColumn32
|
|
4423
4479
|
} from "typeorm";
|
|
4424
4480
|
var FreelancerExperience = class extends BaseEntity {
|
|
4425
4481
|
};
|
|
4426
4482
|
// individual index to find experence by user
|
|
4427
4483
|
__decorateClass([
|
|
4428
|
-
|
|
4429
|
-
|
|
4484
|
+
Column34({ name: "user_id", type: "integer", nullable: true }),
|
|
4485
|
+
Index27()
|
|
4430
4486
|
], FreelancerExperience.prototype, "userId", 2);
|
|
4431
4487
|
__decorateClass([
|
|
4432
|
-
|
|
4433
|
-
|
|
4488
|
+
ManyToOne32(() => User, (user) => user.freelancerExperience),
|
|
4489
|
+
JoinColumn32({ name: "user_id" })
|
|
4434
4490
|
], FreelancerExperience.prototype, "user", 2);
|
|
4435
4491
|
__decorateClass([
|
|
4436
|
-
|
|
4492
|
+
Column34({ name: "company_name", type: "varchar", nullable: true })
|
|
4437
4493
|
], FreelancerExperience.prototype, "companyName", 2);
|
|
4438
4494
|
__decorateClass([
|
|
4439
|
-
|
|
4495
|
+
Column34({ name: "designation", type: "varchar", nullable: true })
|
|
4440
4496
|
], FreelancerExperience.prototype, "designation", 2);
|
|
4441
4497
|
__decorateClass([
|
|
4442
|
-
|
|
4498
|
+
Column34({ name: "job_duration", type: "varchar", nullable: true })
|
|
4443
4499
|
], FreelancerExperience.prototype, "jobDuration", 2);
|
|
4444
4500
|
__decorateClass([
|
|
4445
|
-
|
|
4501
|
+
Column34({ name: "description", type: "varchar", nullable: true })
|
|
4446
4502
|
], FreelancerExperience.prototype, "description", 2);
|
|
4447
4503
|
FreelancerExperience = __decorateClass([
|
|
4448
|
-
|
|
4504
|
+
Entity33("freelancer_experiences")
|
|
4449
4505
|
], FreelancerExperience);
|
|
4450
4506
|
|
|
4451
4507
|
// src/entities/freelancer-education.entity.ts
|
|
4452
4508
|
import {
|
|
4453
|
-
Entity as
|
|
4454
|
-
Column as
|
|
4455
|
-
Index as
|
|
4456
|
-
ManyToOne as
|
|
4457
|
-
JoinColumn as
|
|
4509
|
+
Entity as Entity34,
|
|
4510
|
+
Column as Column35,
|
|
4511
|
+
Index as Index28,
|
|
4512
|
+
ManyToOne as ManyToOne33,
|
|
4513
|
+
JoinColumn as JoinColumn33
|
|
4458
4514
|
} from "typeorm";
|
|
4459
4515
|
var FreelancerEducation = class extends BaseEntity {
|
|
4460
4516
|
};
|
|
4461
4517
|
// individual index to find education by user
|
|
4462
4518
|
__decorateClass([
|
|
4463
|
-
|
|
4464
|
-
|
|
4519
|
+
Column35({ name: "user_id", type: "integer", nullable: true }),
|
|
4520
|
+
Index28()
|
|
4465
4521
|
], FreelancerEducation.prototype, "userId", 2);
|
|
4466
4522
|
__decorateClass([
|
|
4467
|
-
|
|
4468
|
-
|
|
4523
|
+
ManyToOne33(() => User, (user) => user.freelancerEducation),
|
|
4524
|
+
JoinColumn33({ name: "user_id" })
|
|
4469
4525
|
], FreelancerEducation.prototype, "user", 2);
|
|
4470
4526
|
__decorateClass([
|
|
4471
|
-
|
|
4527
|
+
Column35({ name: "degree", type: "varchar", nullable: true })
|
|
4472
4528
|
], FreelancerEducation.prototype, "degree", 2);
|
|
4473
4529
|
__decorateClass([
|
|
4474
|
-
|
|
4530
|
+
Column35({ name: "university", type: "varchar", nullable: true })
|
|
4475
4531
|
], FreelancerEducation.prototype, "university", 2);
|
|
4476
4532
|
__decorateClass([
|
|
4477
|
-
|
|
4533
|
+
Column35({ name: "year_of_graduation", type: "varchar", nullable: true })
|
|
4478
4534
|
], FreelancerEducation.prototype, "yearOfGraduation", 2);
|
|
4479
4535
|
FreelancerEducation = __decorateClass([
|
|
4480
|
-
|
|
4536
|
+
Entity34("freelancer_educations")
|
|
4481
4537
|
], FreelancerEducation);
|
|
4482
4538
|
|
|
4483
4539
|
// src/entities/freelancer-project.entity.ts
|
|
4484
4540
|
import {
|
|
4485
|
-
Entity as
|
|
4486
|
-
Column as
|
|
4487
|
-
Index as
|
|
4488
|
-
ManyToOne as
|
|
4489
|
-
JoinColumn as
|
|
4541
|
+
Entity as Entity35,
|
|
4542
|
+
Column as Column36,
|
|
4543
|
+
Index as Index29,
|
|
4544
|
+
ManyToOne as ManyToOne34,
|
|
4545
|
+
JoinColumn as JoinColumn34
|
|
4490
4546
|
} from "typeorm";
|
|
4491
4547
|
var FreelancerProject = class extends BaseEntity {
|
|
4492
4548
|
};
|
|
4493
4549
|
// individual index to find project by user
|
|
4494
4550
|
__decorateClass([
|
|
4495
|
-
|
|
4496
|
-
|
|
4551
|
+
Column36({ name: "user_id", type: "integer", nullable: true }),
|
|
4552
|
+
Index29()
|
|
4497
4553
|
], FreelancerProject.prototype, "userId", 2);
|
|
4498
4554
|
__decorateClass([
|
|
4499
|
-
|
|
4500
|
-
|
|
4555
|
+
ManyToOne34(() => User, (user) => user.freelancerProject),
|
|
4556
|
+
JoinColumn34({ name: "user_id" })
|
|
4501
4557
|
], FreelancerProject.prototype, "user", 2);
|
|
4502
4558
|
__decorateClass([
|
|
4503
|
-
|
|
4559
|
+
Column36({ name: "project_name", type: "varchar", nullable: true })
|
|
4504
4560
|
], FreelancerProject.prototype, "projectName", 2);
|
|
4505
4561
|
__decorateClass([
|
|
4506
|
-
|
|
4562
|
+
Column36({ name: "start_date", type: "date", nullable: true })
|
|
4507
4563
|
], FreelancerProject.prototype, "startDate", 2);
|
|
4508
4564
|
__decorateClass([
|
|
4509
|
-
|
|
4565
|
+
Column36({ name: "end_date", type: "date", nullable: true })
|
|
4510
4566
|
], FreelancerProject.prototype, "endDate", 2);
|
|
4511
4567
|
__decorateClass([
|
|
4512
|
-
|
|
4568
|
+
Column36({ name: "client_name", type: "varchar", nullable: true })
|
|
4513
4569
|
], FreelancerProject.prototype, "clientName", 2);
|
|
4514
4570
|
__decorateClass([
|
|
4515
|
-
|
|
4571
|
+
Column36({ name: "git_link", type: "varchar", nullable: true })
|
|
4516
4572
|
], FreelancerProject.prototype, "gitLink", 2);
|
|
4517
4573
|
__decorateClass([
|
|
4518
|
-
|
|
4574
|
+
Column36({ name: "description", type: "varchar", nullable: true })
|
|
4519
4575
|
], FreelancerProject.prototype, "description", 2);
|
|
4520
4576
|
FreelancerProject = __decorateClass([
|
|
4521
|
-
|
|
4577
|
+
Entity35("freelancer_projects")
|
|
4522
4578
|
], FreelancerProject);
|
|
4523
4579
|
|
|
4524
4580
|
// src/entities/freelancer-casestudy.entity.ts
|
|
4525
4581
|
import {
|
|
4526
|
-
Entity as
|
|
4527
|
-
Column as
|
|
4528
|
-
Index as
|
|
4529
|
-
ManyToOne as
|
|
4530
|
-
JoinColumn as
|
|
4582
|
+
Entity as Entity36,
|
|
4583
|
+
Column as Column37,
|
|
4584
|
+
Index as Index30,
|
|
4585
|
+
ManyToOne as ManyToOne35,
|
|
4586
|
+
JoinColumn as JoinColumn35
|
|
4531
4587
|
} from "typeorm";
|
|
4532
4588
|
var FreelancerCaseStudy = class extends BaseEntity {
|
|
4533
4589
|
};
|
|
4534
4590
|
// individual index to find case study by user
|
|
4535
4591
|
__decorateClass([
|
|
4536
|
-
|
|
4537
|
-
|
|
4592
|
+
Column37({ name: "user_id", type: "integer", nullable: true }),
|
|
4593
|
+
Index30()
|
|
4538
4594
|
], FreelancerCaseStudy.prototype, "userId", 2);
|
|
4539
4595
|
__decorateClass([
|
|
4540
|
-
|
|
4541
|
-
|
|
4596
|
+
ManyToOne35(() => User, (user) => user.freelancerCaseStudy),
|
|
4597
|
+
JoinColumn35({ name: "user_id" })
|
|
4542
4598
|
], FreelancerCaseStudy.prototype, "user", 2);
|
|
4543
4599
|
__decorateClass([
|
|
4544
|
-
|
|
4600
|
+
Column37({ name: "project_name", type: "varchar", nullable: true })
|
|
4545
4601
|
], FreelancerCaseStudy.prototype, "projectName", 2);
|
|
4546
4602
|
__decorateClass([
|
|
4547
|
-
|
|
4603
|
+
Column37({ name: "case_study_link", type: "varchar", nullable: true })
|
|
4548
4604
|
], FreelancerCaseStudy.prototype, "caseStudyLink", 2);
|
|
4549
4605
|
__decorateClass([
|
|
4550
|
-
|
|
4606
|
+
Column37({ name: "description", type: "varchar", nullable: true })
|
|
4551
4607
|
], FreelancerCaseStudy.prototype, "description", 2);
|
|
4552
4608
|
FreelancerCaseStudy = __decorateClass([
|
|
4553
|
-
|
|
4609
|
+
Entity36("freelancer_case_studies")
|
|
4554
4610
|
], FreelancerCaseStudy);
|
|
4555
4611
|
|
|
4556
4612
|
// src/entities/freelancer-skill.entity.ts
|
|
4557
4613
|
import {
|
|
4558
|
-
Entity as
|
|
4559
|
-
Column as
|
|
4560
|
-
Index as
|
|
4561
|
-
ManyToOne as
|
|
4562
|
-
JoinColumn as
|
|
4614
|
+
Entity as Entity37,
|
|
4615
|
+
Column as Column38,
|
|
4616
|
+
Index as Index31,
|
|
4617
|
+
ManyToOne as ManyToOne36,
|
|
4618
|
+
JoinColumn as JoinColumn36
|
|
4563
4619
|
} from "typeorm";
|
|
4564
4620
|
var FreelancerSkillCategoryEnum = /* @__PURE__ */ ((FreelancerSkillCategoryEnum2) => {
|
|
4565
4621
|
FreelancerSkillCategoryEnum2[FreelancerSkillCategoryEnum2["GOOD_TO_HAVE"] = 0] = "GOOD_TO_HAVE";
|
|
@@ -4570,18 +4626,18 @@ var FreelancerSkill = class extends BaseEntity {
|
|
|
4570
4626
|
};
|
|
4571
4627
|
// individual index to find core skills by user
|
|
4572
4628
|
__decorateClass([
|
|
4573
|
-
|
|
4574
|
-
|
|
4629
|
+
Column38({ name: "user_id", type: "integer", nullable: true }),
|
|
4630
|
+
Index31()
|
|
4575
4631
|
], FreelancerSkill.prototype, "userId", 2);
|
|
4576
4632
|
__decorateClass([
|
|
4577
|
-
|
|
4578
|
-
|
|
4633
|
+
ManyToOne36(() => User, (user) => user.freelancerSkills),
|
|
4634
|
+
JoinColumn36({ name: "user_id" })
|
|
4579
4635
|
], FreelancerSkill.prototype, "user", 2);
|
|
4580
4636
|
__decorateClass([
|
|
4581
|
-
|
|
4637
|
+
Column38({ name: "skill_name", type: "varchar", nullable: true })
|
|
4582
4638
|
], FreelancerSkill.prototype, "skillName", 2);
|
|
4583
4639
|
__decorateClass([
|
|
4584
|
-
|
|
4640
|
+
Column38({
|
|
4585
4641
|
name: "skill_category",
|
|
4586
4642
|
type: "smallint",
|
|
4587
4643
|
default: 1,
|
|
@@ -4589,68 +4645,68 @@ __decorateClass([
|
|
|
4589
4645
|
})
|
|
4590
4646
|
], FreelancerSkill.prototype, "skillCategory", 2);
|
|
4591
4647
|
FreelancerSkill = __decorateClass([
|
|
4592
|
-
|
|
4648
|
+
Entity37("freelancer_skills")
|
|
4593
4649
|
], FreelancerSkill);
|
|
4594
4650
|
|
|
4595
4651
|
// src/entities/freelancer-tool.entity.ts
|
|
4596
4652
|
import {
|
|
4597
|
-
Entity as
|
|
4598
|
-
Column as
|
|
4599
|
-
Index as
|
|
4600
|
-
ManyToOne as
|
|
4601
|
-
JoinColumn as
|
|
4653
|
+
Entity as Entity38,
|
|
4654
|
+
Column as Column39,
|
|
4655
|
+
Index as Index32,
|
|
4656
|
+
ManyToOne as ManyToOne37,
|
|
4657
|
+
JoinColumn as JoinColumn37
|
|
4602
4658
|
} from "typeorm";
|
|
4603
4659
|
var FreelancerTool = class extends BaseEntity {
|
|
4604
4660
|
};
|
|
4605
4661
|
// individual index to find tool by user
|
|
4606
4662
|
__decorateClass([
|
|
4607
|
-
|
|
4608
|
-
|
|
4663
|
+
Column39({ name: "user_id", type: "integer", nullable: true }),
|
|
4664
|
+
Index32()
|
|
4609
4665
|
], FreelancerTool.prototype, "userId", 2);
|
|
4610
4666
|
__decorateClass([
|
|
4611
|
-
|
|
4612
|
-
|
|
4667
|
+
ManyToOne37(() => User, (user) => user.freelancerTool),
|
|
4668
|
+
JoinColumn37({ name: "user_id" })
|
|
4613
4669
|
], FreelancerTool.prototype, "user", 2);
|
|
4614
4670
|
__decorateClass([
|
|
4615
|
-
|
|
4671
|
+
Column39({ name: "tool_name", type: "varchar", nullable: true })
|
|
4616
4672
|
], FreelancerTool.prototype, "toolName", 2);
|
|
4617
4673
|
FreelancerTool = __decorateClass([
|
|
4618
|
-
|
|
4674
|
+
Entity38("freelancer_tools")
|
|
4619
4675
|
], FreelancerTool);
|
|
4620
4676
|
|
|
4621
4677
|
// src/entities/freelancer-framework.entity.ts
|
|
4622
4678
|
import {
|
|
4623
|
-
Entity as
|
|
4624
|
-
Column as
|
|
4625
|
-
Index as
|
|
4626
|
-
ManyToOne as
|
|
4627
|
-
JoinColumn as
|
|
4679
|
+
Entity as Entity39,
|
|
4680
|
+
Column as Column40,
|
|
4681
|
+
Index as Index33,
|
|
4682
|
+
ManyToOne as ManyToOne38,
|
|
4683
|
+
JoinColumn as JoinColumn38
|
|
4628
4684
|
} from "typeorm";
|
|
4629
4685
|
var FreelancerFramework = class extends BaseEntity {
|
|
4630
4686
|
};
|
|
4631
4687
|
// individual index to find framework by user
|
|
4632
4688
|
__decorateClass([
|
|
4633
|
-
|
|
4634
|
-
|
|
4689
|
+
Column40({ name: "user_id", type: "integer", nullable: true }),
|
|
4690
|
+
Index33()
|
|
4635
4691
|
], FreelancerFramework.prototype, "userId", 2);
|
|
4636
4692
|
__decorateClass([
|
|
4637
|
-
|
|
4638
|
-
|
|
4693
|
+
ManyToOne38(() => User, (user) => user.freelancerFramework),
|
|
4694
|
+
JoinColumn38({ name: "user_id" })
|
|
4639
4695
|
], FreelancerFramework.prototype, "user", 2);
|
|
4640
4696
|
__decorateClass([
|
|
4641
|
-
|
|
4697
|
+
Column40({ name: "framework_name", type: "varchar", nullable: true })
|
|
4642
4698
|
], FreelancerFramework.prototype, "frameworkName", 2);
|
|
4643
4699
|
FreelancerFramework = __decorateClass([
|
|
4644
|
-
|
|
4700
|
+
Entity39("freelancer_frameworks")
|
|
4645
4701
|
], FreelancerFramework);
|
|
4646
4702
|
|
|
4647
4703
|
// src/entities/freelancer-assessment.entity.ts
|
|
4648
4704
|
import {
|
|
4649
|
-
Entity as
|
|
4650
|
-
Column as
|
|
4651
|
-
Index as
|
|
4652
|
-
ManyToOne as
|
|
4653
|
-
JoinColumn as
|
|
4705
|
+
Entity as Entity40,
|
|
4706
|
+
Column as Column41,
|
|
4707
|
+
Index as Index34,
|
|
4708
|
+
ManyToOne as ManyToOne39,
|
|
4709
|
+
JoinColumn as JoinColumn39
|
|
4654
4710
|
} from "typeorm";
|
|
4655
4711
|
var AssessmentStatusEnum = /* @__PURE__ */ ((AssessmentStatusEnum2) => {
|
|
4656
4712
|
AssessmentStatusEnum2["NOT_ATTEMPTED"] = "NOT_ATTEMPTED";
|
|
@@ -4667,30 +4723,30 @@ var AssessmentStatusEnum = /* @__PURE__ */ ((AssessmentStatusEnum2) => {
|
|
|
4667
4723
|
var FreelancerAssessment = class extends BaseEntity {
|
|
4668
4724
|
};
|
|
4669
4725
|
__decorateClass([
|
|
4670
|
-
|
|
4671
|
-
|
|
4726
|
+
Column41({ name: "user_id", type: "integer", nullable: true }),
|
|
4727
|
+
Index34()
|
|
4672
4728
|
], FreelancerAssessment.prototype, "userId", 2);
|
|
4673
4729
|
__decorateClass([
|
|
4674
|
-
|
|
4675
|
-
|
|
4730
|
+
ManyToOne39(() => User, (user) => user.assessments),
|
|
4731
|
+
JoinColumn39({ name: "user_id" })
|
|
4676
4732
|
], FreelancerAssessment.prototype, "user", 2);
|
|
4677
4733
|
__decorateClass([
|
|
4678
|
-
|
|
4734
|
+
Column41({ name: "interview_id", type: "varchar", nullable: true })
|
|
4679
4735
|
], FreelancerAssessment.prototype, "interviewId", 2);
|
|
4680
4736
|
__decorateClass([
|
|
4681
|
-
|
|
4737
|
+
Column41({ name: "interview_link", type: "text", nullable: true })
|
|
4682
4738
|
], FreelancerAssessment.prototype, "interviewLink", 2);
|
|
4683
4739
|
__decorateClass([
|
|
4684
|
-
|
|
4740
|
+
Column41({ name: "recording_link", type: "text", nullable: true })
|
|
4685
4741
|
], FreelancerAssessment.prototype, "recordingLink", 2);
|
|
4686
4742
|
__decorateClass([
|
|
4687
|
-
|
|
4743
|
+
Column41({ name: "iframe_response", type: "jsonb", nullable: true })
|
|
4688
4744
|
], FreelancerAssessment.prototype, "iframeResponse", 2);
|
|
4689
4745
|
__decorateClass([
|
|
4690
|
-
|
|
4746
|
+
Column41({ name: "interview_summary", type: "jsonb", nullable: true })
|
|
4691
4747
|
], FreelancerAssessment.prototype, "interviewSummary", 2);
|
|
4692
4748
|
__decorateClass([
|
|
4693
|
-
|
|
4749
|
+
Column41({
|
|
4694
4750
|
name: "status",
|
|
4695
4751
|
type: "enum",
|
|
4696
4752
|
enum: AssessmentStatusEnum,
|
|
@@ -4698,11 +4754,11 @@ __decorateClass([
|
|
|
4698
4754
|
})
|
|
4699
4755
|
], FreelancerAssessment.prototype, "status", 2);
|
|
4700
4756
|
FreelancerAssessment = __decorateClass([
|
|
4701
|
-
|
|
4757
|
+
Entity40("freelancer_assessments")
|
|
4702
4758
|
], FreelancerAssessment);
|
|
4703
4759
|
|
|
4704
4760
|
// src/entities/freelancer-declaration.entity.ts
|
|
4705
|
-
import { Entity as
|
|
4761
|
+
import { Entity as Entity41, Column as Column42, Index as Index35, ManyToOne as ManyToOne40, JoinColumn as JoinColumn40 } from "typeorm";
|
|
4706
4762
|
var DocumentType = /* @__PURE__ */ ((DocumentType2) => {
|
|
4707
4763
|
DocumentType2["AADHAAR"] = "AADHAAR_CARD";
|
|
4708
4764
|
DocumentType2["PASSPORT"] = "PASSPORT";
|
|
@@ -4714,15 +4770,15 @@ var FreelancerDeclaration = class extends BaseEntity {
|
|
|
4714
4770
|
};
|
|
4715
4771
|
// individual index to find declaration by user
|
|
4716
4772
|
__decorateClass([
|
|
4717
|
-
|
|
4718
|
-
|
|
4773
|
+
Column42({ name: "user_id", type: "integer", nullable: true }),
|
|
4774
|
+
Index35()
|
|
4719
4775
|
], FreelancerDeclaration.prototype, "userId", 2);
|
|
4720
4776
|
__decorateClass([
|
|
4721
|
-
|
|
4722
|
-
|
|
4777
|
+
ManyToOne40(() => User, (user) => user.freelancerDeclaration),
|
|
4778
|
+
JoinColumn40({ name: "user_id" })
|
|
4723
4779
|
], FreelancerDeclaration.prototype, "user", 2);
|
|
4724
4780
|
__decorateClass([
|
|
4725
|
-
|
|
4781
|
+
Column42({
|
|
4726
4782
|
name: "document_type",
|
|
4727
4783
|
type: "enum",
|
|
4728
4784
|
enum: DocumentType,
|
|
@@ -4730,175 +4786,175 @@ __decorateClass([
|
|
|
4730
4786
|
})
|
|
4731
4787
|
], FreelancerDeclaration.prototype, "documentType", 2);
|
|
4732
4788
|
__decorateClass([
|
|
4733
|
-
|
|
4789
|
+
Column42({ name: "front_document_url", type: "varchar", nullable: true })
|
|
4734
4790
|
], FreelancerDeclaration.prototype, "frontDocumentUrl", 2);
|
|
4735
4791
|
__decorateClass([
|
|
4736
|
-
|
|
4792
|
+
Column42({ name: "back_document_url", type: "varchar", nullable: true })
|
|
4737
4793
|
], FreelancerDeclaration.prototype, "backDocumentUrl", 2);
|
|
4738
4794
|
__decorateClass([
|
|
4739
|
-
|
|
4795
|
+
Column42({ name: "declaration_accepted", type: "boolean", default: false })
|
|
4740
4796
|
], FreelancerDeclaration.prototype, "declarationAccepted", 2);
|
|
4741
4797
|
__decorateClass([
|
|
4742
|
-
|
|
4798
|
+
Column42({ name: "digital_signature_url", type: "varchar", nullable: true })
|
|
4743
4799
|
], FreelancerDeclaration.prototype, "digitalSignatureUrl", 2);
|
|
4744
4800
|
FreelancerDeclaration = __decorateClass([
|
|
4745
|
-
|
|
4801
|
+
Entity41("freelancer_declaration")
|
|
4746
4802
|
], FreelancerDeclaration);
|
|
4747
4803
|
|
|
4748
4804
|
// src/entities/company-members-roles.entity.ts
|
|
4749
4805
|
import {
|
|
4750
|
-
Column as
|
|
4751
|
-
Entity as
|
|
4752
|
-
ManyToOne as
|
|
4753
|
-
JoinColumn as
|
|
4754
|
-
Index as
|
|
4806
|
+
Column as Column46,
|
|
4807
|
+
Entity as Entity45,
|
|
4808
|
+
ManyToOne as ManyToOne43,
|
|
4809
|
+
JoinColumn as JoinColumn43,
|
|
4810
|
+
Index as Index39
|
|
4755
4811
|
} from "typeorm";
|
|
4756
4812
|
|
|
4757
4813
|
// src/entities/company-role.entity.ts
|
|
4758
4814
|
import {
|
|
4759
|
-
Column as
|
|
4760
|
-
Entity as
|
|
4761
|
-
Index as
|
|
4762
|
-
JoinColumn as
|
|
4763
|
-
ManyToOne as
|
|
4815
|
+
Column as Column45,
|
|
4816
|
+
Entity as Entity44,
|
|
4817
|
+
Index as Index38,
|
|
4818
|
+
JoinColumn as JoinColumn42,
|
|
4819
|
+
ManyToOne as ManyToOne42,
|
|
4764
4820
|
OneToMany as OneToMany14
|
|
4765
4821
|
} from "typeorm";
|
|
4766
4822
|
|
|
4767
4823
|
// src/entities/company-role-permission.entity.ts
|
|
4768
4824
|
import {
|
|
4769
|
-
Column as
|
|
4770
|
-
Entity as
|
|
4771
|
-
ManyToOne as
|
|
4772
|
-
JoinColumn as
|
|
4773
|
-
Index as
|
|
4825
|
+
Column as Column44,
|
|
4826
|
+
Entity as Entity43,
|
|
4827
|
+
ManyToOne as ManyToOne41,
|
|
4828
|
+
JoinColumn as JoinColumn41,
|
|
4829
|
+
Index as Index37
|
|
4774
4830
|
} from "typeorm";
|
|
4775
4831
|
|
|
4776
4832
|
// src/entities/permission.entity.ts
|
|
4777
|
-
import { Column as
|
|
4833
|
+
import { Column as Column43, Entity as Entity42, Index as Index36 } from "typeorm";
|
|
4778
4834
|
var Permission = class extends BaseEntity {
|
|
4779
4835
|
};
|
|
4780
4836
|
__decorateClass([
|
|
4781
|
-
|
|
4837
|
+
Column43({ name: "name", type: "varchar", nullable: true })
|
|
4782
4838
|
], Permission.prototype, "name", 2);
|
|
4783
4839
|
__decorateClass([
|
|
4784
|
-
|
|
4785
|
-
|
|
4840
|
+
Column43({ name: "slug", type: "varchar", nullable: true, unique: true }),
|
|
4841
|
+
Index36()
|
|
4786
4842
|
], Permission.prototype, "slug", 2);
|
|
4787
4843
|
__decorateClass([
|
|
4788
|
-
|
|
4844
|
+
Column43({ name: "description", type: "text", nullable: true })
|
|
4789
4845
|
], Permission.prototype, "description", 2);
|
|
4790
4846
|
__decorateClass([
|
|
4791
|
-
|
|
4847
|
+
Column43({ name: "is_active", type: "boolean", default: true })
|
|
4792
4848
|
], Permission.prototype, "isActive", 2);
|
|
4793
4849
|
Permission = __decorateClass([
|
|
4794
|
-
|
|
4850
|
+
Entity42("permissions")
|
|
4795
4851
|
], Permission);
|
|
4796
4852
|
|
|
4797
4853
|
// src/entities/company-role-permission.entity.ts
|
|
4798
4854
|
var CompanyRolePermission = class extends BaseEntity {
|
|
4799
4855
|
};
|
|
4800
4856
|
__decorateClass([
|
|
4801
|
-
|
|
4802
|
-
|
|
4857
|
+
Column44({ name: "company_role_id", type: "integer", nullable: true }),
|
|
4858
|
+
Index37()
|
|
4803
4859
|
], CompanyRolePermission.prototype, "companyRoleId", 2);
|
|
4804
4860
|
__decorateClass([
|
|
4805
|
-
|
|
4861
|
+
ManyToOne41(() => CompanyRole, (role) => role.rolePermissions, {
|
|
4806
4862
|
onDelete: "CASCADE"
|
|
4807
4863
|
}),
|
|
4808
|
-
|
|
4864
|
+
JoinColumn41({ name: "company_role_id" })
|
|
4809
4865
|
], CompanyRolePermission.prototype, "companyRole", 2);
|
|
4810
4866
|
__decorateClass([
|
|
4811
|
-
|
|
4812
|
-
|
|
4867
|
+
Column44({ name: "permission_id", type: "integer" }),
|
|
4868
|
+
Index37()
|
|
4813
4869
|
], CompanyRolePermission.prototype, "permissionId", 2);
|
|
4814
4870
|
__decorateClass([
|
|
4815
|
-
|
|
4816
|
-
|
|
4871
|
+
ManyToOne41(() => Permission, { onDelete: "CASCADE" }),
|
|
4872
|
+
JoinColumn41({ name: "permission_id" })
|
|
4817
4873
|
], CompanyRolePermission.prototype, "permission", 2);
|
|
4818
4874
|
__decorateClass([
|
|
4819
|
-
|
|
4875
|
+
Column44({ name: "assigned_by", type: "integer", nullable: true })
|
|
4820
4876
|
], CompanyRolePermission.prototype, "assignedBy", 2);
|
|
4821
4877
|
CompanyRolePermission = __decorateClass([
|
|
4822
|
-
|
|
4878
|
+
Entity43("company_role_permissions")
|
|
4823
4879
|
], CompanyRolePermission);
|
|
4824
4880
|
|
|
4825
4881
|
// src/entities/company-role.entity.ts
|
|
4826
4882
|
var CompanyRole = class extends BaseEntity {
|
|
4827
4883
|
};
|
|
4828
4884
|
__decorateClass([
|
|
4829
|
-
|
|
4830
|
-
|
|
4885
|
+
Column45({ name: "user_id", type: "integer", nullable: true }),
|
|
4886
|
+
Index38()
|
|
4831
4887
|
], CompanyRole.prototype, "userId", 2);
|
|
4832
4888
|
__decorateClass([
|
|
4833
|
-
|
|
4834
|
-
|
|
4889
|
+
ManyToOne42(() => User, (user) => user.otps),
|
|
4890
|
+
JoinColumn42({ name: "user_id" })
|
|
4835
4891
|
], CompanyRole.prototype, "user", 2);
|
|
4836
4892
|
__decorateClass([
|
|
4837
|
-
|
|
4893
|
+
Column45({ name: "name", type: "varchar" })
|
|
4838
4894
|
], CompanyRole.prototype, "name", 2);
|
|
4839
4895
|
__decorateClass([
|
|
4840
|
-
|
|
4841
|
-
|
|
4896
|
+
Column45({ name: "slug", type: "varchar", nullable: true, unique: true }),
|
|
4897
|
+
Index38()
|
|
4842
4898
|
], CompanyRole.prototype, "slug", 2);
|
|
4843
4899
|
__decorateClass([
|
|
4844
|
-
|
|
4900
|
+
Column45({ name: "description", type: "text", nullable: true })
|
|
4845
4901
|
], CompanyRole.prototype, "description", 2);
|
|
4846
4902
|
__decorateClass([
|
|
4847
|
-
|
|
4903
|
+
Column45({ name: "is_active", type: "boolean", default: true })
|
|
4848
4904
|
], CompanyRole.prototype, "isActive", 2);
|
|
4849
4905
|
__decorateClass([
|
|
4850
4906
|
OneToMany14(() => CompanyRolePermission, (rp) => rp.companyRole)
|
|
4851
4907
|
], CompanyRole.prototype, "rolePermissions", 2);
|
|
4852
4908
|
CompanyRole = __decorateClass([
|
|
4853
|
-
|
|
4909
|
+
Entity44("company_roles")
|
|
4854
4910
|
], CompanyRole);
|
|
4855
4911
|
|
|
4856
4912
|
// src/entities/company-members-roles.entity.ts
|
|
4857
4913
|
var CompanyMemberRole = class extends BaseEntity {
|
|
4858
4914
|
};
|
|
4859
4915
|
__decorateClass([
|
|
4860
|
-
|
|
4861
|
-
|
|
4916
|
+
Column46({ name: "user_id", type: "integer", nullable: true }),
|
|
4917
|
+
Index39()
|
|
4862
4918
|
], CompanyMemberRole.prototype, "userId", 2);
|
|
4863
4919
|
__decorateClass([
|
|
4864
|
-
|
|
4865
|
-
|
|
4920
|
+
ManyToOne43(() => User),
|
|
4921
|
+
JoinColumn43({ name: "user_id" })
|
|
4866
4922
|
], CompanyMemberRole.prototype, "user", 2);
|
|
4867
4923
|
__decorateClass([
|
|
4868
|
-
|
|
4869
|
-
|
|
4924
|
+
ManyToOne43(() => CompanyRole),
|
|
4925
|
+
JoinColumn43({ name: "company_role_id" })
|
|
4870
4926
|
], CompanyMemberRole.prototype, "role", 2);
|
|
4871
4927
|
__decorateClass([
|
|
4872
|
-
|
|
4873
|
-
|
|
4928
|
+
Column46({ name: "company_role_id", type: "integer", nullable: true }),
|
|
4929
|
+
Index39()
|
|
4874
4930
|
], CompanyMemberRole.prototype, "companyRoleId", 2);
|
|
4875
4931
|
__decorateClass([
|
|
4876
|
-
|
|
4932
|
+
Column46({ name: "assigned_by", type: "integer", nullable: true })
|
|
4877
4933
|
], CompanyMemberRole.prototype, "assignedBy", 2);
|
|
4878
4934
|
CompanyMemberRole = __decorateClass([
|
|
4879
|
-
|
|
4935
|
+
Entity45("company_member_roles")
|
|
4880
4936
|
], CompanyMemberRole);
|
|
4881
4937
|
|
|
4882
4938
|
// src/entities/assessment-answer.entity.ts
|
|
4883
4939
|
import {
|
|
4884
|
-
Entity as
|
|
4885
|
-
Column as
|
|
4886
|
-
ManyToOne as
|
|
4887
|
-
Index as
|
|
4888
|
-
JoinColumn as
|
|
4940
|
+
Entity as Entity48,
|
|
4941
|
+
Column as Column49,
|
|
4942
|
+
ManyToOne as ManyToOne46,
|
|
4943
|
+
Index as Index42,
|
|
4944
|
+
JoinColumn as JoinColumn46
|
|
4889
4945
|
} from "typeorm";
|
|
4890
4946
|
|
|
4891
4947
|
// src/entities/assessment-question.entity.ts
|
|
4892
|
-
import { Entity as
|
|
4948
|
+
import { Entity as Entity47, Column as Column48, OneToMany as OneToMany16, Index as Index41, ManyToOne as ManyToOne45, JoinColumn as JoinColumn45 } from "typeorm";
|
|
4893
4949
|
|
|
4894
4950
|
// src/entities/assessment-question-option.entity.ts
|
|
4895
4951
|
import {
|
|
4896
|
-
Entity as
|
|
4897
|
-
Column as
|
|
4952
|
+
Entity as Entity46,
|
|
4953
|
+
Column as Column47,
|
|
4898
4954
|
OneToMany as OneToMany15,
|
|
4899
|
-
ManyToOne as
|
|
4900
|
-
Index as
|
|
4901
|
-
JoinColumn as
|
|
4955
|
+
ManyToOne as ManyToOne44,
|
|
4956
|
+
Index as Index40,
|
|
4957
|
+
JoinColumn as JoinColumn44
|
|
4902
4958
|
} from "typeorm";
|
|
4903
4959
|
var AnswerTypeEnum = /* @__PURE__ */ ((AnswerTypeEnum2) => {
|
|
4904
4960
|
AnswerTypeEnum2["CORRECT"] = "CORRECT";
|
|
@@ -4909,21 +4965,21 @@ var AnswerTypeEnum = /* @__PURE__ */ ((AnswerTypeEnum2) => {
|
|
|
4909
4965
|
var AssessmetQuestionOption = class extends BaseEntity {
|
|
4910
4966
|
};
|
|
4911
4967
|
__decorateClass([
|
|
4912
|
-
|
|
4913
|
-
|
|
4968
|
+
Column47({ name: "question_id", type: "integer", nullable: true }),
|
|
4969
|
+
Index40()
|
|
4914
4970
|
], AssessmetQuestionOption.prototype, "questionId", 2);
|
|
4915
4971
|
__decorateClass([
|
|
4916
|
-
|
|
4972
|
+
ManyToOne44(
|
|
4917
4973
|
() => AssessmetQuestion,
|
|
4918
4974
|
(assessmentQuestion) => assessmentQuestion.options
|
|
4919
4975
|
),
|
|
4920
|
-
|
|
4976
|
+
JoinColumn44({ name: "question_id" })
|
|
4921
4977
|
], AssessmetQuestionOption.prototype, "question", 2);
|
|
4922
4978
|
__decorateClass([
|
|
4923
|
-
|
|
4979
|
+
Column47({ name: "text", type: "varchar", nullable: true })
|
|
4924
4980
|
], AssessmetQuestionOption.prototype, "text", 2);
|
|
4925
4981
|
__decorateClass([
|
|
4926
|
-
|
|
4982
|
+
Column47({
|
|
4927
4983
|
name: "answer_type",
|
|
4928
4984
|
type: "enum",
|
|
4929
4985
|
enum: AnswerTypeEnum,
|
|
@@ -4931,13 +4987,13 @@ __decorateClass([
|
|
|
4931
4987
|
})
|
|
4932
4988
|
], AssessmetQuestionOption.prototype, "answerType", 2);
|
|
4933
4989
|
__decorateClass([
|
|
4934
|
-
|
|
4990
|
+
Column47({ name: "is_active", type: "boolean", default: true })
|
|
4935
4991
|
], AssessmetQuestionOption.prototype, "isActive", 2);
|
|
4936
4992
|
__decorateClass([
|
|
4937
4993
|
OneToMany15(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.option)
|
|
4938
4994
|
], AssessmetQuestionOption.prototype, "selectedOptions", 2);
|
|
4939
4995
|
AssessmetQuestionOption = __decorateClass([
|
|
4940
|
-
|
|
4996
|
+
Entity46("assessment_question_options")
|
|
4941
4997
|
], AssessmetQuestionOption);
|
|
4942
4998
|
|
|
4943
4999
|
// src/entities/assessment-question.entity.ts
|
|
@@ -4949,10 +5005,10 @@ var QuestionForEnum = /* @__PURE__ */ ((QuestionForEnum2) => {
|
|
|
4949
5005
|
var AssessmetQuestion = class extends BaseEntity {
|
|
4950
5006
|
};
|
|
4951
5007
|
__decorateClass([
|
|
4952
|
-
|
|
5008
|
+
Column48({ name: "text", type: "varchar", nullable: true })
|
|
4953
5009
|
], AssessmetQuestion.prototype, "text", 2);
|
|
4954
5010
|
__decorateClass([
|
|
4955
|
-
|
|
5011
|
+
Column48({
|
|
4956
5012
|
name: "question_for",
|
|
4957
5013
|
type: "enum",
|
|
4958
5014
|
enum: QuestionForEnum,
|
|
@@ -4960,15 +5016,15 @@ __decorateClass([
|
|
|
4960
5016
|
})
|
|
4961
5017
|
], AssessmetQuestion.prototype, "questionFor", 2);
|
|
4962
5018
|
__decorateClass([
|
|
4963
|
-
|
|
5019
|
+
Column48({ name: "is_active", type: "boolean", default: true })
|
|
4964
5020
|
], AssessmetQuestion.prototype, "isActive", 2);
|
|
4965
5021
|
__decorateClass([
|
|
4966
|
-
|
|
4967
|
-
|
|
5022
|
+
Column48({ name: "candidate_id", type: "integer", nullable: true }),
|
|
5023
|
+
Index41()
|
|
4968
5024
|
], AssessmetQuestion.prototype, "candidateId", 2);
|
|
4969
5025
|
__decorateClass([
|
|
4970
|
-
|
|
4971
|
-
|
|
5026
|
+
ManyToOne45(() => User, (user) => user.freelancerMcq, { nullable: true }),
|
|
5027
|
+
JoinColumn45({ name: "candidate_id" })
|
|
4972
5028
|
], AssessmetQuestion.prototype, "candidate", 2);
|
|
4973
5029
|
__decorateClass([
|
|
4974
5030
|
OneToMany16(() => AssessmetQuestionOption, (assessmentQuestionOption) => assessmentQuestionOption.question)
|
|
@@ -4977,7 +5033,7 @@ __decorateClass([
|
|
|
4977
5033
|
OneToMany16(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.question)
|
|
4978
5034
|
], AssessmetQuestion.prototype, "answers", 2);
|
|
4979
5035
|
AssessmetQuestion = __decorateClass([
|
|
4980
|
-
|
|
5036
|
+
Entity47("assessment_questions")
|
|
4981
5037
|
], AssessmetQuestion);
|
|
4982
5038
|
|
|
4983
5039
|
// src/entities/assessment-answer.entity.ts
|
|
@@ -4990,102 +5046,102 @@ var SelectedAnswerTypeEnum = /* @__PURE__ */ ((SelectedAnswerTypeEnum2) => {
|
|
|
4990
5046
|
var AssessmentAnswer = class extends BaseEntity {
|
|
4991
5047
|
};
|
|
4992
5048
|
__decorateClass([
|
|
4993
|
-
|
|
4994
|
-
|
|
5049
|
+
Column49({ name: "user_id", type: "integer" }),
|
|
5050
|
+
Index42()
|
|
4995
5051
|
], AssessmentAnswer.prototype, "userId", 2);
|
|
4996
5052
|
__decorateClass([
|
|
4997
|
-
|
|
4998
|
-
|
|
5053
|
+
ManyToOne46(() => User, (user) => user.assessmentAnswers),
|
|
5054
|
+
JoinColumn46({ name: "user_id" })
|
|
4999
5055
|
], AssessmentAnswer.prototype, "user", 2);
|
|
5000
5056
|
__decorateClass([
|
|
5001
|
-
|
|
5002
|
-
|
|
5057
|
+
Column49({ name: "question_id", type: "integer" }),
|
|
5058
|
+
Index42()
|
|
5003
5059
|
], AssessmentAnswer.prototype, "questionId", 2);
|
|
5004
5060
|
__decorateClass([
|
|
5005
|
-
|
|
5061
|
+
ManyToOne46(
|
|
5006
5062
|
() => AssessmetQuestion,
|
|
5007
5063
|
(assessmentQuestion) => assessmentQuestion.answers
|
|
5008
5064
|
),
|
|
5009
|
-
|
|
5065
|
+
JoinColumn46({ name: "question_id" })
|
|
5010
5066
|
], AssessmentAnswer.prototype, "question", 2);
|
|
5011
5067
|
__decorateClass([
|
|
5012
|
-
|
|
5013
|
-
|
|
5068
|
+
Column49({ name: "selected_option_id", type: "integer" }),
|
|
5069
|
+
Index42()
|
|
5014
5070
|
], AssessmentAnswer.prototype, "selectedOptionId", 2);
|
|
5015
5071
|
__decorateClass([
|
|
5016
|
-
|
|
5072
|
+
ManyToOne46(
|
|
5017
5073
|
() => AssessmetQuestionOption,
|
|
5018
5074
|
(assessmentQuestionOption) => assessmentQuestionOption.selectedOptions
|
|
5019
5075
|
),
|
|
5020
|
-
|
|
5076
|
+
JoinColumn46({ name: "selected_option_id" })
|
|
5021
5077
|
], AssessmentAnswer.prototype, "option", 2);
|
|
5022
5078
|
__decorateClass([
|
|
5023
|
-
|
|
5079
|
+
Column49({
|
|
5024
5080
|
name: "selected_answer_type",
|
|
5025
5081
|
type: "enum",
|
|
5026
5082
|
enum: SelectedAnswerTypeEnum
|
|
5027
5083
|
})
|
|
5028
5084
|
], AssessmentAnswer.prototype, "selectedAnswerType", 2);
|
|
5029
5085
|
__decorateClass([
|
|
5030
|
-
|
|
5086
|
+
Column49({ name: "score", type: "float" })
|
|
5031
5087
|
], AssessmentAnswer.prototype, "score", 2);
|
|
5032
5088
|
AssessmentAnswer = __decorateClass([
|
|
5033
|
-
|
|
5089
|
+
Entity48("assessment_answers")
|
|
5034
5090
|
], AssessmentAnswer);
|
|
5035
5091
|
|
|
5036
5092
|
// src/entities/company-skill.entity.ts
|
|
5037
|
-
import { Entity as
|
|
5093
|
+
import { Entity as Entity49, Column as Column50, Index as Index43, ManyToOne as ManyToOne47, JoinColumn as JoinColumn47 } from "typeorm";
|
|
5038
5094
|
var CompanySkill = class extends BaseEntity {
|
|
5039
5095
|
};
|
|
5040
5096
|
// individual index to find core skills by user
|
|
5041
5097
|
__decorateClass([
|
|
5042
|
-
|
|
5043
|
-
|
|
5098
|
+
Column50({ name: "user_id", type: "integer", nullable: true }),
|
|
5099
|
+
Index43()
|
|
5044
5100
|
], CompanySkill.prototype, "userId", 2);
|
|
5045
5101
|
__decorateClass([
|
|
5046
|
-
|
|
5047
|
-
|
|
5102
|
+
ManyToOne47(() => User, (user) => user.freelancerSkills),
|
|
5103
|
+
JoinColumn47({ name: "user_id" })
|
|
5048
5104
|
], CompanySkill.prototype, "user", 2);
|
|
5049
5105
|
__decorateClass([
|
|
5050
|
-
|
|
5106
|
+
Column50({ name: "skill_name", type: "varchar", nullable: true })
|
|
5051
5107
|
], CompanySkill.prototype, "skillName", 2);
|
|
5052
5108
|
CompanySkill = __decorateClass([
|
|
5053
|
-
|
|
5109
|
+
Entity49("company_skills")
|
|
5054
5110
|
], CompanySkill);
|
|
5055
5111
|
|
|
5056
5112
|
// src/entities/admin-user-role.entity.ts
|
|
5057
|
-
import { Entity as
|
|
5113
|
+
import { Entity as Entity53, Column as Column54, ManyToOne as ManyToOne49, JoinColumn as JoinColumn49 } from "typeorm";
|
|
5058
5114
|
|
|
5059
5115
|
// src/entities/admin-role.entity.ts
|
|
5060
|
-
import { Entity as
|
|
5116
|
+
import { Entity as Entity52, Column as Column53, Index as Index46, OneToMany as OneToMany19 } from "typeorm";
|
|
5061
5117
|
|
|
5062
5118
|
// src/entities/admin-role-permission.entity.ts
|
|
5063
|
-
import { Entity as
|
|
5119
|
+
import { Entity as Entity51, Column as Column52, ManyToOne as ManyToOne48, JoinColumn as JoinColumn48 } from "typeorm";
|
|
5064
5120
|
|
|
5065
5121
|
// src/entities/admin-permission.entity.ts
|
|
5066
|
-
import { Entity as
|
|
5122
|
+
import { Entity as Entity50, Column as Column51, Index as Index44, OneToMany as OneToMany18 } from "typeorm";
|
|
5067
5123
|
var AdminPermission = class extends BaseEntity {
|
|
5068
5124
|
};
|
|
5069
5125
|
__decorateClass([
|
|
5070
|
-
|
|
5126
|
+
Column51({ name: "permission_name", type: "varchar", nullable: true })
|
|
5071
5127
|
], AdminPermission.prototype, "permissionName", 2);
|
|
5072
5128
|
__decorateClass([
|
|
5073
|
-
|
|
5129
|
+
Column51({
|
|
5074
5130
|
name: "permission_slug",
|
|
5075
5131
|
type: "varchar",
|
|
5076
5132
|
unique: true,
|
|
5077
5133
|
nullable: true
|
|
5078
5134
|
}),
|
|
5079
|
-
|
|
5135
|
+
Index44()
|
|
5080
5136
|
], AdminPermission.prototype, "permissionSlug", 2);
|
|
5081
5137
|
__decorateClass([
|
|
5082
|
-
|
|
5138
|
+
Column51({ name: "permission_description", type: "varchar", nullable: true })
|
|
5083
5139
|
], AdminPermission.prototype, "permissionDescription", 2);
|
|
5084
5140
|
__decorateClass([
|
|
5085
|
-
|
|
5141
|
+
Column51({ name: "module", type: "varchar", nullable: true })
|
|
5086
5142
|
], AdminPermission.prototype, "module", 2);
|
|
5087
5143
|
__decorateClass([
|
|
5088
|
-
|
|
5144
|
+
Column51({ name: "is_active", type: "boolean", default: true })
|
|
5089
5145
|
], AdminPermission.prototype, "isActive", 2);
|
|
5090
5146
|
__decorateClass([
|
|
5091
5147
|
OneToMany18(
|
|
@@ -5094,14 +5150,14 @@ __decorateClass([
|
|
|
5094
5150
|
)
|
|
5095
5151
|
], AdminPermission.prototype, "adminRole", 2);
|
|
5096
5152
|
AdminPermission = __decorateClass([
|
|
5097
|
-
|
|
5153
|
+
Entity50("admin_permissions")
|
|
5098
5154
|
], AdminPermission);
|
|
5099
5155
|
|
|
5100
5156
|
// src/entities/admin-role-permission.entity.ts
|
|
5101
5157
|
var AdminRolePermission = class extends BaseEntity {
|
|
5102
5158
|
};
|
|
5103
5159
|
__decorateClass([
|
|
5104
|
-
|
|
5160
|
+
Column52({
|
|
5105
5161
|
name: "role_id",
|
|
5106
5162
|
type: "int",
|
|
5107
5163
|
nullable: true,
|
|
@@ -5109,11 +5165,11 @@ __decorateClass([
|
|
|
5109
5165
|
})
|
|
5110
5166
|
], AdminRolePermission.prototype, "roleId", 2);
|
|
5111
5167
|
__decorateClass([
|
|
5112
|
-
|
|
5113
|
-
|
|
5168
|
+
ManyToOne48(() => AdminRole),
|
|
5169
|
+
JoinColumn48({ name: "role_id" })
|
|
5114
5170
|
], AdminRolePermission.prototype, "adminRole", 2);
|
|
5115
5171
|
__decorateClass([
|
|
5116
|
-
|
|
5172
|
+
Column52({
|
|
5117
5173
|
name: "permission_id",
|
|
5118
5174
|
type: "int",
|
|
5119
5175
|
nullable: true,
|
|
@@ -5121,28 +5177,28 @@ __decorateClass([
|
|
|
5121
5177
|
})
|
|
5122
5178
|
], AdminRolePermission.prototype, "permissionId", 2);
|
|
5123
5179
|
__decorateClass([
|
|
5124
|
-
|
|
5125
|
-
|
|
5180
|
+
ManyToOne48(() => AdminPermission),
|
|
5181
|
+
JoinColumn48({ name: "permission_id" })
|
|
5126
5182
|
], AdminRolePermission.prototype, "adminPermissions", 2);
|
|
5127
5183
|
AdminRolePermission = __decorateClass([
|
|
5128
|
-
|
|
5184
|
+
Entity51("admin_role_permissions")
|
|
5129
5185
|
], AdminRolePermission);
|
|
5130
5186
|
|
|
5131
5187
|
// src/entities/admin-role.entity.ts
|
|
5132
5188
|
var AdminRole = class extends BaseEntity {
|
|
5133
5189
|
};
|
|
5134
5190
|
__decorateClass([
|
|
5135
|
-
|
|
5191
|
+
Column53({ name: "role_name", type: "varchar", nullable: true })
|
|
5136
5192
|
], AdminRole.prototype, "roleName", 2);
|
|
5137
5193
|
__decorateClass([
|
|
5138
|
-
|
|
5139
|
-
|
|
5194
|
+
Column53({ name: "role_slug", type: "varchar", unique: true, nullable: true }),
|
|
5195
|
+
Index46()
|
|
5140
5196
|
], AdminRole.prototype, "roleSlug", 2);
|
|
5141
5197
|
__decorateClass([
|
|
5142
|
-
|
|
5198
|
+
Column53({ name: "role_description", type: "varchar", nullable: true })
|
|
5143
5199
|
], AdminRole.prototype, "roleDescription", 2);
|
|
5144
5200
|
__decorateClass([
|
|
5145
|
-
|
|
5201
|
+
Column53({ name: "is_active", type: "boolean", default: true })
|
|
5146
5202
|
], AdminRole.prototype, "isActive", 2);
|
|
5147
5203
|
__decorateClass([
|
|
5148
5204
|
OneToMany19(
|
|
@@ -5154,14 +5210,14 @@ __decorateClass([
|
|
|
5154
5210
|
OneToMany19(() => AdminUserRole, (adminUserRole) => adminUserRole.adminRole)
|
|
5155
5211
|
], AdminRole.prototype, "userRoles", 2);
|
|
5156
5212
|
AdminRole = __decorateClass([
|
|
5157
|
-
|
|
5213
|
+
Entity52("admin_roles")
|
|
5158
5214
|
], AdminRole);
|
|
5159
5215
|
|
|
5160
5216
|
// src/entities/admin-user-role.entity.ts
|
|
5161
5217
|
var AdminUserRole = class extends BaseEntity {
|
|
5162
5218
|
};
|
|
5163
5219
|
__decorateClass([
|
|
5164
|
-
|
|
5220
|
+
Column54({
|
|
5165
5221
|
name: "user_id",
|
|
5166
5222
|
type: "int",
|
|
5167
5223
|
nullable: true,
|
|
@@ -5169,11 +5225,11 @@ __decorateClass([
|
|
|
5169
5225
|
})
|
|
5170
5226
|
], AdminUserRole.prototype, "userId", 2);
|
|
5171
5227
|
__decorateClass([
|
|
5172
|
-
|
|
5173
|
-
|
|
5228
|
+
ManyToOne49(() => User),
|
|
5229
|
+
JoinColumn49({ name: "user_id" })
|
|
5174
5230
|
], AdminUserRole.prototype, "user", 2);
|
|
5175
5231
|
__decorateClass([
|
|
5176
|
-
|
|
5232
|
+
Column54({
|
|
5177
5233
|
name: "role_id",
|
|
5178
5234
|
type: "int",
|
|
5179
5235
|
nullable: true,
|
|
@@ -5181,70 +5237,70 @@ __decorateClass([
|
|
|
5181
5237
|
})
|
|
5182
5238
|
], AdminUserRole.prototype, "roleId", 2);
|
|
5183
5239
|
__decorateClass([
|
|
5184
|
-
|
|
5185
|
-
|
|
5240
|
+
ManyToOne49(() => AdminRole),
|
|
5241
|
+
JoinColumn49({ name: "role_id" })
|
|
5186
5242
|
], AdminUserRole.prototype, "adminRole", 2);
|
|
5187
5243
|
AdminUserRole = __decorateClass([
|
|
5188
|
-
|
|
5244
|
+
Entity53("admin_user_roles")
|
|
5189
5245
|
], AdminUserRole);
|
|
5190
5246
|
|
|
5191
5247
|
// src/entities/freelancer-resume.entity.ts
|
|
5192
5248
|
import {
|
|
5193
|
-
Entity as
|
|
5194
|
-
Column as
|
|
5195
|
-
Index as
|
|
5196
|
-
ManyToOne as
|
|
5197
|
-
JoinColumn as
|
|
5249
|
+
Entity as Entity54,
|
|
5250
|
+
Column as Column55,
|
|
5251
|
+
Index as Index48,
|
|
5252
|
+
ManyToOne as ManyToOne50,
|
|
5253
|
+
JoinColumn as JoinColumn50
|
|
5198
5254
|
} from "typeorm";
|
|
5199
5255
|
var FreelancerResume = class extends BaseEntity {
|
|
5200
5256
|
};
|
|
5201
5257
|
// individual index to find profile by user
|
|
5202
5258
|
__decorateClass([
|
|
5203
|
-
|
|
5204
|
-
|
|
5259
|
+
Column55({ name: "user_id", type: "integer", nullable: true }),
|
|
5260
|
+
Index48()
|
|
5205
5261
|
], FreelancerResume.prototype, "userId", 2);
|
|
5206
5262
|
__decorateClass([
|
|
5207
|
-
|
|
5208
|
-
|
|
5263
|
+
ManyToOne50(() => User, (user) => user.freelancerProfile),
|
|
5264
|
+
JoinColumn50({ name: "user_id" })
|
|
5209
5265
|
], FreelancerResume.prototype, "user", 2);
|
|
5210
5266
|
__decorateClass([
|
|
5211
|
-
|
|
5267
|
+
Column55({ name: "resume_data", type: "jsonb", nullable: true })
|
|
5212
5268
|
], FreelancerResume.prototype, "resumeData", 2);
|
|
5213
5269
|
__decorateClass([
|
|
5214
|
-
|
|
5270
|
+
Column55({ name: "processed_resume_data", type: "jsonb", nullable: true })
|
|
5215
5271
|
], FreelancerResume.prototype, "processedResumeData", 2);
|
|
5216
5272
|
FreelancerResume = __decorateClass([
|
|
5217
|
-
|
|
5273
|
+
Entity54("freelancer_resumes")
|
|
5218
5274
|
], FreelancerResume);
|
|
5219
5275
|
|
|
5220
5276
|
// src/entities/signature.entity.ts
|
|
5221
5277
|
import {
|
|
5222
|
-
Entity as
|
|
5223
|
-
Column as
|
|
5224
|
-
Index as
|
|
5225
|
-
ManyToOne as
|
|
5226
|
-
JoinColumn as
|
|
5278
|
+
Entity as Entity55,
|
|
5279
|
+
Column as Column56,
|
|
5280
|
+
Index as Index49,
|
|
5281
|
+
ManyToOne as ManyToOne51,
|
|
5282
|
+
JoinColumn as JoinColumn51
|
|
5227
5283
|
} from "typeorm";
|
|
5228
5284
|
var Signature = class extends BaseEntity {
|
|
5229
5285
|
};
|
|
5230
5286
|
// individual index to find profile by user
|
|
5231
5287
|
__decorateClass([
|
|
5232
|
-
|
|
5233
|
-
|
|
5288
|
+
Column56({ name: "user_id", type: "integer", nullable: true }),
|
|
5289
|
+
Index49()
|
|
5234
5290
|
], Signature.prototype, "userId", 2);
|
|
5235
5291
|
__decorateClass([
|
|
5236
|
-
|
|
5237
|
-
|
|
5292
|
+
ManyToOne51(() => User, (user) => user.signatures),
|
|
5293
|
+
JoinColumn51({ name: "user_id" })
|
|
5238
5294
|
], Signature.prototype, "user", 2);
|
|
5239
5295
|
__decorateClass([
|
|
5240
|
-
|
|
5296
|
+
Column56({ name: "signature_url", type: "text", nullable: true })
|
|
5241
5297
|
], Signature.prototype, "signatureUrl", 2);
|
|
5242
5298
|
Signature = __decorateClass([
|
|
5243
|
-
|
|
5299
|
+
Entity55("signatures")
|
|
5244
5300
|
], Signature);
|
|
5245
5301
|
|
|
5246
5302
|
// src/entities/dispute.entity.ts
|
|
5247
|
-
import { Entity as
|
|
5303
|
+
import { Entity as Entity56, Column as Column57, Index as Index50, JoinColumn as JoinColumn52, ManyToOne as ManyToOne52 } from "typeorm";
|
|
5248
5304
|
var DisputeStatusEnum = /* @__PURE__ */ ((DisputeStatusEnum2) => {
|
|
5249
5305
|
DisputeStatusEnum2["OPEN"] = "OPEN";
|
|
5250
5306
|
DisputeStatusEnum2["IN_REVIEW"] = "IN_REVIEW";
|
|
@@ -5265,36 +5321,36 @@ var InitiatorTypeEnum = /* @__PURE__ */ ((InitiatorTypeEnum2) => {
|
|
|
5265
5321
|
var Dispute = class extends BaseEntity {
|
|
5266
5322
|
};
|
|
5267
5323
|
__decorateClass([
|
|
5268
|
-
|
|
5269
|
-
|
|
5324
|
+
Column57({ name: "client_id", type: "integer", nullable: true }),
|
|
5325
|
+
Index50()
|
|
5270
5326
|
], Dispute.prototype, "clientId", 2);
|
|
5271
5327
|
__decorateClass([
|
|
5272
|
-
|
|
5273
|
-
|
|
5328
|
+
ManyToOne52(() => User, (user) => user.clientDisputes),
|
|
5329
|
+
JoinColumn52({ name: "client_id" })
|
|
5274
5330
|
], Dispute.prototype, "client", 2);
|
|
5275
5331
|
__decorateClass([
|
|
5276
|
-
|
|
5277
|
-
|
|
5332
|
+
Column57({ name: "freelancer_id", type: "integer", nullable: true }),
|
|
5333
|
+
Index50()
|
|
5278
5334
|
], Dispute.prototype, "freelancerId", 2);
|
|
5279
5335
|
__decorateClass([
|
|
5280
|
-
|
|
5281
|
-
|
|
5336
|
+
ManyToOne52(() => User, (user) => user.freelancerDisputes),
|
|
5337
|
+
JoinColumn52({ name: "freelancer_id" })
|
|
5282
5338
|
], Dispute.prototype, "freelancer", 2);
|
|
5283
5339
|
__decorateClass([
|
|
5284
|
-
|
|
5340
|
+
Column57({ name: "dispute_unique_id", type: "varchar", unique: true })
|
|
5285
5341
|
], Dispute.prototype, "disputeUniqueId", 2);
|
|
5286
5342
|
__decorateClass([
|
|
5287
|
-
|
|
5288
|
-
|
|
5343
|
+
Column57({ name: "dispute_type", type: "varchar", nullable: true }),
|
|
5344
|
+
Index50()
|
|
5289
5345
|
], Dispute.prototype, "disputeType", 2);
|
|
5290
5346
|
__decorateClass([
|
|
5291
|
-
|
|
5347
|
+
Column57({ name: "description", type: "varchar", nullable: true })
|
|
5292
5348
|
], Dispute.prototype, "description", 2);
|
|
5293
5349
|
__decorateClass([
|
|
5294
|
-
|
|
5350
|
+
Column57({ name: "comment", type: "varchar", nullable: true })
|
|
5295
5351
|
], Dispute.prototype, "comment", 2);
|
|
5296
5352
|
__decorateClass([
|
|
5297
|
-
|
|
5353
|
+
Column57({
|
|
5298
5354
|
name: "status",
|
|
5299
5355
|
type: "enum",
|
|
5300
5356
|
enum: DisputeStatusEnum,
|
|
@@ -5302,7 +5358,7 @@ __decorateClass([
|
|
|
5302
5358
|
})
|
|
5303
5359
|
], Dispute.prototype, "status", 2);
|
|
5304
5360
|
__decorateClass([
|
|
5305
|
-
|
|
5361
|
+
Column57({
|
|
5306
5362
|
name: "initiator_type",
|
|
5307
5363
|
type: "enum",
|
|
5308
5364
|
enum: InitiatorTypeEnum,
|
|
@@ -5311,33 +5367,33 @@ __decorateClass([
|
|
|
5311
5367
|
})
|
|
5312
5368
|
], Dispute.prototype, "initiatorType", 2);
|
|
5313
5369
|
__decorateClass([
|
|
5314
|
-
|
|
5315
|
-
|
|
5370
|
+
Column57({ name: "initiator_id", type: "integer" }),
|
|
5371
|
+
Index50()
|
|
5316
5372
|
], Dispute.prototype, "initiatorId", 2);
|
|
5317
5373
|
__decorateClass([
|
|
5318
|
-
|
|
5319
|
-
|
|
5374
|
+
ManyToOne52(() => User, (user) => user.initiatedDisputes),
|
|
5375
|
+
JoinColumn52({ name: "initiator_id" })
|
|
5320
5376
|
], Dispute.prototype, "initiator", 2);
|
|
5321
5377
|
__decorateClass([
|
|
5322
|
-
|
|
5323
|
-
|
|
5378
|
+
Column57({ name: "respondent_id", type: "integer", nullable: true }),
|
|
5379
|
+
Index50()
|
|
5324
5380
|
], Dispute.prototype, "respondentId", 2);
|
|
5325
5381
|
__decorateClass([
|
|
5326
|
-
|
|
5327
|
-
|
|
5382
|
+
ManyToOne52(() => User, (user) => user.respondentDisputes, { nullable: true }),
|
|
5383
|
+
JoinColumn52({ name: "respondent_id" })
|
|
5328
5384
|
], Dispute.prototype, "respondent", 2);
|
|
5329
5385
|
__decorateClass([
|
|
5330
|
-
|
|
5386
|
+
Column57({ name: "attachments", type: "jsonb", nullable: true })
|
|
5331
5387
|
], Dispute.prototype, "attachments", 2);
|
|
5332
5388
|
__decorateClass([
|
|
5333
|
-
|
|
5389
|
+
Column57({ name: "dynamic_fields", type: "jsonb", nullable: true })
|
|
5334
5390
|
], Dispute.prototype, "dynamicFields", 2);
|
|
5335
5391
|
Dispute = __decorateClass([
|
|
5336
|
-
|
|
5392
|
+
Entity56("disputes")
|
|
5337
5393
|
], Dispute);
|
|
5338
5394
|
|
|
5339
5395
|
// src/entities/stripe-transaction.entity.ts
|
|
5340
|
-
import { Entity as
|
|
5396
|
+
import { Entity as Entity57, Column as Column58, Index as Index51, ManyToOne as ManyToOne53, JoinColumn as JoinColumn53 } from "typeorm";
|
|
5341
5397
|
var StripeTransactionTypeEnum = /* @__PURE__ */ ((StripeTransactionTypeEnum2) => {
|
|
5342
5398
|
StripeTransactionTypeEnum2["ADD_FUNDS"] = "ADD_FUNDS";
|
|
5343
5399
|
StripeTransactionTypeEnum2["TRANSFER"] = "TRANSFER";
|
|
@@ -5359,97 +5415,97 @@ var StripeTransaction = class extends BaseEntity {
|
|
|
5359
5415
|
// Full Stripe session response
|
|
5360
5416
|
};
|
|
5361
5417
|
__decorateClass([
|
|
5362
|
-
|
|
5363
|
-
|
|
5418
|
+
Column58({ name: "user_id", type: "integer", nullable: true }),
|
|
5419
|
+
Index51()
|
|
5364
5420
|
], StripeTransaction.prototype, "userId", 2);
|
|
5365
5421
|
__decorateClass([
|
|
5366
|
-
|
|
5367
|
-
|
|
5422
|
+
ManyToOne53(() => User, (user) => user.stripeTransactions),
|
|
5423
|
+
JoinColumn53({ name: "user_id" })
|
|
5368
5424
|
], StripeTransaction.prototype, "user", 2);
|
|
5369
5425
|
__decorateClass([
|
|
5370
|
-
|
|
5426
|
+
Column58({ name: "stripe_session_id", type: "varchar", nullable: true })
|
|
5371
5427
|
], StripeTransaction.prototype, "stripeSessionId", 2);
|
|
5372
5428
|
__decorateClass([
|
|
5373
|
-
|
|
5429
|
+
Column58({ name: "stripe_payment_intent_id", type: "varchar", nullable: true })
|
|
5374
5430
|
], StripeTransaction.prototype, "stripePaymentIntentId", 2);
|
|
5375
5431
|
__decorateClass([
|
|
5376
|
-
|
|
5432
|
+
Column58({ name: "stripe_charge_id", type: "varchar", nullable: true })
|
|
5377
5433
|
], StripeTransaction.prototype, "stripeChargeId", 2);
|
|
5378
5434
|
__decorateClass([
|
|
5379
|
-
|
|
5435
|
+
Column58({ name: "stripe_receipt_url", type: "varchar", nullable: true })
|
|
5380
5436
|
], StripeTransaction.prototype, "stripeReceiptUrl", 2);
|
|
5381
5437
|
__decorateClass([
|
|
5382
|
-
|
|
5438
|
+
Column58({ name: "stripe_balance_transaction_id", type: "varchar", nullable: true })
|
|
5383
5439
|
], StripeTransaction.prototype, "stripeBalanceTransactionId", 2);
|
|
5384
5440
|
__decorateClass([
|
|
5385
|
-
|
|
5441
|
+
Column58({ name: "stripe_payment_method", type: "varchar", nullable: true })
|
|
5386
5442
|
], StripeTransaction.prototype, "stripePaymentMethod", 2);
|
|
5387
5443
|
__decorateClass([
|
|
5388
|
-
|
|
5444
|
+
Column58({ name: "stripe_payment_status", type: "varchar", nullable: true })
|
|
5389
5445
|
], StripeTransaction.prototype, "stripePaymentStatus", 2);
|
|
5390
5446
|
__decorateClass([
|
|
5391
|
-
|
|
5447
|
+
Column58({ name: "type", type: "enum", enum: StripeTransactionTypeEnum })
|
|
5392
5448
|
], StripeTransaction.prototype, "type", 2);
|
|
5393
5449
|
__decorateClass([
|
|
5394
|
-
|
|
5450
|
+
Column58({ name: "currency", type: "varchar", nullable: true })
|
|
5395
5451
|
], StripeTransaction.prototype, "currency", 2);
|
|
5396
5452
|
__decorateClass([
|
|
5397
|
-
|
|
5453
|
+
Column58({ 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" })
|
|
5398
5454
|
], StripeTransaction.prototype, "desiredDepositCents", 2);
|
|
5399
5455
|
__decorateClass([
|
|
5400
|
-
|
|
5456
|
+
Column58({ name: "platform_fee_cents", type: "bigint", default: 0, comment: "Your platform commission Example: 500 cents = $5.00 (5% of $100)" })
|
|
5401
5457
|
], StripeTransaction.prototype, "platformFeeCents", 2);
|
|
5402
5458
|
__decorateClass([
|
|
5403
|
-
|
|
5459
|
+
Column58({ name: "tax_cents", type: "bigint", nullable: true, comment: "Sales tax collected by Stripe" })
|
|
5404
5460
|
], StripeTransaction.prototype, "taxCents", 2);
|
|
5405
5461
|
__decorateClass([
|
|
5406
|
-
|
|
5462
|
+
Column58({ name: "estimated_stripe_fee_cents", type: "bigint", nullable: true, comment: "Your calculated estimate of Stripe fee, Example: 371 cents = $3.71" })
|
|
5407
5463
|
], StripeTransaction.prototype, "estimatedStripeFee", 2);
|
|
5408
5464
|
__decorateClass([
|
|
5409
|
-
|
|
5465
|
+
Column58({ 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" })
|
|
5410
5466
|
], StripeTransaction.prototype, "estimatedTotalCents", 2);
|
|
5411
5467
|
__decorateClass([
|
|
5412
|
-
|
|
5468
|
+
Column58({ name: "actual_stripe_fee_cents", type: "bigint", nullable: true, comment: "ACTUAL Stripe fee charged, Example: 371 cents = $3.71" })
|
|
5413
5469
|
], StripeTransaction.prototype, "actualStripeFee", 2);
|
|
5414
5470
|
__decorateClass([
|
|
5415
|
-
|
|
5471
|
+
Column58({ name: "actual_total_paid_cents", type: "bigint", nullable: true, comment: "What customer ACTUALLY paid, Example: 11757 cents = $117.57, May differ from estimate" })
|
|
5416
5472
|
], StripeTransaction.prototype, "actualTotalPaidCents", 2);
|
|
5417
5473
|
__decorateClass([
|
|
5418
|
-
|
|
5474
|
+
Column58({ 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" })
|
|
5419
5475
|
], StripeTransaction.prototype, "netReceivedCents", 2);
|
|
5420
5476
|
__decorateClass([
|
|
5421
|
-
|
|
5477
|
+
Column58({ name: "description", type: "text", nullable: true })
|
|
5422
5478
|
], StripeTransaction.prototype, "description", 2);
|
|
5423
5479
|
__decorateClass([
|
|
5424
|
-
|
|
5480
|
+
Column58({ name: "status", type: "enum", enum: StripeTransactionStatusEnum, default: "PENDING" /* PENDING */ })
|
|
5425
5481
|
], StripeTransaction.prototype, "status", 2);
|
|
5426
5482
|
__decorateClass([
|
|
5427
|
-
|
|
5483
|
+
Column58({ name: "checkout_session_completed_at", type: "timestamptz", nullable: true })
|
|
5428
5484
|
], StripeTransaction.prototype, "checkoutSessionCompletedAt", 2);
|
|
5429
5485
|
__decorateClass([
|
|
5430
|
-
|
|
5486
|
+
Column58({ name: "completed_at", type: "timestamptz", nullable: true })
|
|
5431
5487
|
], StripeTransaction.prototype, "completedAt", 2);
|
|
5432
5488
|
__decorateClass([
|
|
5433
|
-
|
|
5489
|
+
Column58({ name: "billing_details", type: "jsonb", nullable: true })
|
|
5434
5490
|
], StripeTransaction.prototype, "billingDetails", 2);
|
|
5435
5491
|
__decorateClass([
|
|
5436
|
-
|
|
5492
|
+
Column58({ name: "payment_method_details", type: "jsonb", nullable: true })
|
|
5437
5493
|
], StripeTransaction.prototype, "paymentMethodDetails", 2);
|
|
5438
5494
|
__decorateClass([
|
|
5439
|
-
|
|
5495
|
+
Column58({ name: "raw_session_payload", type: "jsonb", nullable: true })
|
|
5440
5496
|
], StripeTransaction.prototype, "rawSessionPayload", 2);
|
|
5441
5497
|
__decorateClass([
|
|
5442
|
-
|
|
5498
|
+
Column58({ name: "raw_session_response", type: "jsonb", nullable: true })
|
|
5443
5499
|
], StripeTransaction.prototype, "rawSessionResponse", 2);
|
|
5444
5500
|
StripeTransaction = __decorateClass([
|
|
5445
|
-
|
|
5501
|
+
Entity57("stripe_transactions")
|
|
5446
5502
|
], StripeTransaction);
|
|
5447
5503
|
|
|
5448
5504
|
// src/entities/wallet.entity.ts
|
|
5449
|
-
import { Entity as
|
|
5505
|
+
import { Entity as Entity59, Column as Column60, Index as Index53, JoinColumn as JoinColumn55, OneToOne as OneToOne10, OneToMany as OneToMany20 } from "typeorm";
|
|
5450
5506
|
|
|
5451
5507
|
// src/entities/wallet-transaction.entity.ts
|
|
5452
|
-
import { Entity as
|
|
5508
|
+
import { Entity as Entity58, Column as Column59, Index as Index52, ManyToOne as ManyToOne54, JoinColumn as JoinColumn54 } from "typeorm";
|
|
5453
5509
|
var WalletTransactionTypeEnum = /* @__PURE__ */ ((WalletTransactionTypeEnum2) => {
|
|
5454
5510
|
WalletTransactionTypeEnum2["CR"] = "CR";
|
|
5455
5511
|
WalletTransactionTypeEnum2["DR"] = "DR";
|
|
@@ -5466,46 +5522,46 @@ var WalletTransactionStatusEnum = /* @__PURE__ */ ((WalletTransactionStatusEnum2
|
|
|
5466
5522
|
var WalletTransaction = class extends BaseEntity {
|
|
5467
5523
|
};
|
|
5468
5524
|
__decorateClass([
|
|
5469
|
-
|
|
5470
|
-
|
|
5525
|
+
Column59({ name: "wallet_id", type: "integer", nullable: true }),
|
|
5526
|
+
Index52()
|
|
5471
5527
|
], WalletTransaction.prototype, "walletId", 2);
|
|
5472
5528
|
__decorateClass([
|
|
5473
|
-
|
|
5474
|
-
|
|
5529
|
+
ManyToOne54(() => Wallet, (wallet) => wallet.walletTransactions),
|
|
5530
|
+
JoinColumn54({ name: "wallet_id" })
|
|
5475
5531
|
], WalletTransaction.prototype, "wallet", 2);
|
|
5476
5532
|
__decorateClass([
|
|
5477
|
-
|
|
5533
|
+
Column59({ name: "amount", type: "bigint", nullable: true })
|
|
5478
5534
|
], WalletTransaction.prototype, "amount", 2);
|
|
5479
5535
|
__decorateClass([
|
|
5480
|
-
|
|
5536
|
+
Column59({ name: "balance_before", type: "bigint", nullable: true })
|
|
5481
5537
|
], WalletTransaction.prototype, "balanceBefore", 2);
|
|
5482
5538
|
__decorateClass([
|
|
5483
|
-
|
|
5539
|
+
Column59({ name: "balance_after", type: "bigint", nullable: true })
|
|
5484
5540
|
], WalletTransaction.prototype, "balanceAfter", 2);
|
|
5485
5541
|
__decorateClass([
|
|
5486
|
-
|
|
5542
|
+
Column59({ name: "type", type: "enum", enum: WalletTransactionTypeEnum })
|
|
5487
5543
|
], WalletTransaction.prototype, "type", 2);
|
|
5488
5544
|
__decorateClass([
|
|
5489
|
-
|
|
5545
|
+
Column59({ name: "status", type: "enum", enum: WalletTransactionStatusEnum, default: "PENDING" /* PENDING */ })
|
|
5490
5546
|
], WalletTransaction.prototype, "status", 2);
|
|
5491
5547
|
__decorateClass([
|
|
5492
|
-
|
|
5548
|
+
Column59({ name: "description", type: "text", nullable: true })
|
|
5493
5549
|
], WalletTransaction.prototype, "description", 2);
|
|
5494
5550
|
__decorateClass([
|
|
5495
|
-
|
|
5551
|
+
Column59({ name: "completed_at", type: "timestamptz", nullable: true })
|
|
5496
5552
|
], WalletTransaction.prototype, "completedAt", 2);
|
|
5497
5553
|
__decorateClass([
|
|
5498
|
-
|
|
5554
|
+
Column59({ name: "transaction_for", type: "varchar", nullable: true })
|
|
5499
5555
|
], WalletTransaction.prototype, "transactionFor", 2);
|
|
5500
5556
|
__decorateClass([
|
|
5501
|
-
|
|
5557
|
+
Column59({ name: "meta_data", type: "varchar", nullable: true })
|
|
5502
5558
|
], WalletTransaction.prototype, "metaData", 2);
|
|
5503
5559
|
__decorateClass([
|
|
5504
|
-
|
|
5505
|
-
|
|
5560
|
+
Column59({ name: "stripe_transaction_id", type: "integer", nullable: true }),
|
|
5561
|
+
Index52()
|
|
5506
5562
|
], WalletTransaction.prototype, "stripeTransactionId", 2);
|
|
5507
5563
|
WalletTransaction = __decorateClass([
|
|
5508
|
-
|
|
5564
|
+
Entity58("wallet_transactions")
|
|
5509
5565
|
], WalletTransaction);
|
|
5510
5566
|
|
|
5511
5567
|
// src/entities/wallet.entity.ts
|
|
@@ -5523,39 +5579,39 @@ var WalletOnboardingStatusEnum = /* @__PURE__ */ ((WalletOnboardingStatusEnum2)
|
|
|
5523
5579
|
var Wallet = class extends BaseEntity {
|
|
5524
5580
|
};
|
|
5525
5581
|
__decorateClass([
|
|
5526
|
-
|
|
5527
|
-
|
|
5582
|
+
Column60({ name: "user_id", type: "integer", nullable: true }),
|
|
5583
|
+
Index53()
|
|
5528
5584
|
], Wallet.prototype, "userId", 2);
|
|
5529
5585
|
__decorateClass([
|
|
5530
5586
|
OneToOne10(() => User, (user) => user.wallet),
|
|
5531
|
-
|
|
5587
|
+
JoinColumn55({ name: "user_id" })
|
|
5532
5588
|
], Wallet.prototype, "user", 2);
|
|
5533
5589
|
__decorateClass([
|
|
5534
|
-
|
|
5590
|
+
Column60({ name: "account_type", type: "enum", enum: WalletAccountTypeEnum, nullable: true })
|
|
5535
5591
|
], Wallet.prototype, "accountType", 2);
|
|
5536
5592
|
__decorateClass([
|
|
5537
|
-
|
|
5593
|
+
Column60({ name: "stripe_account_id", type: "varchar", nullable: true })
|
|
5538
5594
|
], Wallet.prototype, "stripeAccountId", 2);
|
|
5539
5595
|
__decorateClass([
|
|
5540
|
-
|
|
5596
|
+
Column60({ name: "stripe_customer_id", type: "varchar", nullable: true })
|
|
5541
5597
|
], Wallet.prototype, "stripeCustomerId", 2);
|
|
5542
5598
|
__decorateClass([
|
|
5543
|
-
|
|
5599
|
+
Column60({ name: "wallet_balance", type: "varchar", default: "0", comment: "This column is just used to show balance, It will not be used in any computation" })
|
|
5544
5600
|
], Wallet.prototype, "walletBalance", 2);
|
|
5545
5601
|
__decorateClass([
|
|
5546
|
-
|
|
5602
|
+
Column60({ 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" })
|
|
5547
5603
|
], Wallet.prototype, "walletBalanceCents", 2);
|
|
5548
5604
|
__decorateClass([
|
|
5549
|
-
|
|
5605
|
+
Column60({ name: "onboarding_status", type: "enum", enum: WalletOnboardingStatusEnum, nullable: true })
|
|
5550
5606
|
], Wallet.prototype, "onboardingStatus", 2);
|
|
5551
5607
|
__decorateClass([
|
|
5552
|
-
|
|
5608
|
+
Column60({ name: "stripe_metadata", type: "jsonb", nullable: true })
|
|
5553
5609
|
], Wallet.prototype, "stripeMetadata", 2);
|
|
5554
5610
|
__decorateClass([
|
|
5555
5611
|
OneToMany20(() => WalletTransaction, (walletTransaction) => walletTransaction.wallet)
|
|
5556
5612
|
], Wallet.prototype, "walletTransactions", 2);
|
|
5557
5613
|
Wallet = __decorateClass([
|
|
5558
|
-
|
|
5614
|
+
Entity59("wallets")
|
|
5559
5615
|
], Wallet);
|
|
5560
5616
|
|
|
5561
5617
|
// src/entities/user.entity.ts
|
|
@@ -5583,51 +5639,51 @@ var Provider = /* @__PURE__ */ ((Provider2) => {
|
|
|
5583
5639
|
var User = class extends BaseEntity {
|
|
5584
5640
|
};
|
|
5585
5641
|
__decorateClass([
|
|
5586
|
-
|
|
5642
|
+
Column61({ name: "unique_id", type: "varchar", unique: true })
|
|
5587
5643
|
], User.prototype, "uniqueId", 2);
|
|
5588
5644
|
__decorateClass([
|
|
5589
|
-
|
|
5590
|
-
|
|
5645
|
+
Column61({ name: "parent_id", type: "integer", nullable: true }),
|
|
5646
|
+
Index54()
|
|
5591
5647
|
], User.prototype, "parentId", 2);
|
|
5592
5648
|
__decorateClass([
|
|
5593
|
-
|
|
5594
|
-
|
|
5649
|
+
ManyToOne55(() => User, (user) => user.children, { nullable: true }),
|
|
5650
|
+
JoinColumn56({ name: "parent_id" })
|
|
5595
5651
|
], User.prototype, "parent", 2);
|
|
5596
5652
|
__decorateClass([
|
|
5597
5653
|
OneToMany21(() => User, (user) => user.parent)
|
|
5598
5654
|
], User.prototype, "children", 2);
|
|
5599
5655
|
__decorateClass([
|
|
5600
|
-
|
|
5656
|
+
Column61({ name: "username", type: "varchar", unique: true, nullable: true })
|
|
5601
5657
|
], User.prototype, "username", 2);
|
|
5602
5658
|
__decorateClass([
|
|
5603
|
-
|
|
5659
|
+
Column61({ name: "first_name", type: "varchar", length: 100, nullable: true })
|
|
5604
5660
|
], User.prototype, "firstName", 2);
|
|
5605
5661
|
__decorateClass([
|
|
5606
|
-
|
|
5662
|
+
Column61({ name: "last_name", type: "varchar", length: 100, nullable: true })
|
|
5607
5663
|
], User.prototype, "lastName", 2);
|
|
5608
5664
|
__decorateClass([
|
|
5609
|
-
|
|
5665
|
+
Column61({ name: "date_of_birth", type: "date", nullable: true })
|
|
5610
5666
|
], User.prototype, "dateOfBirth", 2);
|
|
5611
5667
|
__decorateClass([
|
|
5612
|
-
|
|
5668
|
+
Column61({ name: "gender", type: "varchar", length: 10, nullable: true })
|
|
5613
5669
|
], User.prototype, "gender", 2);
|
|
5614
5670
|
__decorateClass([
|
|
5615
|
-
|
|
5671
|
+
Column61({ name: "profile_picture_url", type: "text", nullable: true })
|
|
5616
5672
|
], User.prototype, "profilePictureUrl", 2);
|
|
5617
5673
|
__decorateClass([
|
|
5618
|
-
|
|
5674
|
+
Column61({ name: "email", type: "varchar", unique: true })
|
|
5619
5675
|
], User.prototype, "email", 2);
|
|
5620
5676
|
__decorateClass([
|
|
5621
|
-
|
|
5677
|
+
Column61({ name: "mobile_code", type: "varchar", nullable: true })
|
|
5622
5678
|
], User.prototype, "mobileCode", 2);
|
|
5623
5679
|
__decorateClass([
|
|
5624
|
-
|
|
5680
|
+
Column61({ name: "mobile", type: "varchar", nullable: true })
|
|
5625
5681
|
], User.prototype, "mobile", 2);
|
|
5626
5682
|
__decorateClass([
|
|
5627
|
-
|
|
5683
|
+
Column61({ name: "password", type: "varchar", nullable: true })
|
|
5628
5684
|
], User.prototype, "password", 2);
|
|
5629
5685
|
__decorateClass([
|
|
5630
|
-
|
|
5686
|
+
Column61({
|
|
5631
5687
|
name: "account_type",
|
|
5632
5688
|
type: "enum",
|
|
5633
5689
|
enum: AccountType,
|
|
@@ -5635,7 +5691,7 @@ __decorateClass([
|
|
|
5635
5691
|
})
|
|
5636
5692
|
], User.prototype, "accountType", 2);
|
|
5637
5693
|
__decorateClass([
|
|
5638
|
-
|
|
5694
|
+
Column61({
|
|
5639
5695
|
name: "account_status",
|
|
5640
5696
|
type: "enum",
|
|
5641
5697
|
enum: AccountStatus,
|
|
@@ -5643,42 +5699,42 @@ __decorateClass([
|
|
|
5643
5699
|
})
|
|
5644
5700
|
], User.prototype, "accountStatus", 2);
|
|
5645
5701
|
__decorateClass([
|
|
5646
|
-
|
|
5702
|
+
Column61({ name: "is_email_verified", type: "boolean", default: false })
|
|
5647
5703
|
], User.prototype, "isEmailVerified", 2);
|
|
5648
5704
|
__decorateClass([
|
|
5649
|
-
|
|
5705
|
+
Column61({ name: "is_mobile_verified", type: "boolean", default: false })
|
|
5650
5706
|
], User.prototype, "isMobileVerified", 2);
|
|
5651
5707
|
__decorateClass([
|
|
5652
|
-
|
|
5708
|
+
Column61({ name: "is_social", type: "boolean", default: false })
|
|
5653
5709
|
], User.prototype, "isSocial", 2);
|
|
5654
5710
|
__decorateClass([
|
|
5655
|
-
|
|
5711
|
+
Column61({
|
|
5656
5712
|
name: "last_login_at",
|
|
5657
5713
|
type: "timestamp with time zone",
|
|
5658
5714
|
nullable: true
|
|
5659
5715
|
})
|
|
5660
5716
|
], User.prototype, "lastLoginAt", 2);
|
|
5661
5717
|
__decorateClass([
|
|
5662
|
-
|
|
5718
|
+
Column61({ name: "last_login_ip", type: "varchar", nullable: true })
|
|
5663
5719
|
], User.prototype, "lastLoginIp", 2);
|
|
5664
5720
|
__decorateClass([
|
|
5665
|
-
|
|
5721
|
+
Column61({ name: "reset_token", type: "varchar", nullable: true })
|
|
5666
5722
|
], User.prototype, "resetToken", 2);
|
|
5667
5723
|
__decorateClass([
|
|
5668
|
-
|
|
5724
|
+
Column61({
|
|
5669
5725
|
name: "reset_token_expire_at",
|
|
5670
5726
|
type: "timestamp with time zone",
|
|
5671
5727
|
nullable: true
|
|
5672
5728
|
})
|
|
5673
5729
|
], User.prototype, "resetTokenExpireAt", 2);
|
|
5674
5730
|
__decorateClass([
|
|
5675
|
-
|
|
5731
|
+
Column61({ name: "set_password_token", type: "varchar", nullable: true })
|
|
5676
5732
|
], User.prototype, "setPasswordToken", 2);
|
|
5677
5733
|
__decorateClass([
|
|
5678
5734
|
OneToMany21(() => RefreshToken, (token) => token.user)
|
|
5679
5735
|
], User.prototype, "refreshTokens", 2);
|
|
5680
5736
|
__decorateClass([
|
|
5681
|
-
|
|
5737
|
+
Column61({
|
|
5682
5738
|
name: "provider",
|
|
5683
5739
|
type: "enum",
|
|
5684
5740
|
enum: Provider,
|
|
@@ -5687,19 +5743,19 @@ __decorateClass([
|
|
|
5687
5743
|
})
|
|
5688
5744
|
], User.prototype, "provider", 2);
|
|
5689
5745
|
__decorateClass([
|
|
5690
|
-
|
|
5746
|
+
Column61({ name: "provider_token", type: "varchar", nullable: true })
|
|
5691
5747
|
], User.prototype, "providerToken", 2);
|
|
5692
5748
|
__decorateClass([
|
|
5693
|
-
|
|
5749
|
+
Column61({ name: "linkedin_id", type: "varchar", nullable: true })
|
|
5694
5750
|
], User.prototype, "linkedInId", 2);
|
|
5695
5751
|
__decorateClass([
|
|
5696
|
-
|
|
5752
|
+
Column61({ name: "google_id", type: "varchar", nullable: true })
|
|
5697
5753
|
], User.prototype, "googleId", 2);
|
|
5698
5754
|
__decorateClass([
|
|
5699
|
-
|
|
5755
|
+
Column61({ name: "gitlabs_id", type: "varchar", nullable: true })
|
|
5700
5756
|
], User.prototype, "gitLabsId", 2);
|
|
5701
5757
|
__decorateClass([
|
|
5702
|
-
|
|
5758
|
+
Column61({ name: "onboarded_by", type: "varchar", nullable: true })
|
|
5703
5759
|
], User.prototype, "onBoardedBy", 2);
|
|
5704
5760
|
__decorateClass([
|
|
5705
5761
|
OneToMany21(() => Otp, (otp) => otp.user)
|
|
@@ -5888,7 +5944,7 @@ __decorateClass([
|
|
|
5888
5944
|
OneToMany21(() => Dispute, (dispute) => dispute.freelancer)
|
|
5889
5945
|
], User.prototype, "freelancerDisputes", 2);
|
|
5890
5946
|
User = __decorateClass([
|
|
5891
|
-
|
|
5947
|
+
Entity60("users")
|
|
5892
5948
|
], User);
|
|
5893
5949
|
|
|
5894
5950
|
// src/entities/rating.entity.ts
|
|
@@ -5900,36 +5956,36 @@ var RatingTypeEnum = /* @__PURE__ */ ((RatingTypeEnum2) => {
|
|
|
5900
5956
|
var Rating = class extends BaseEntity {
|
|
5901
5957
|
};
|
|
5902
5958
|
__decorateClass([
|
|
5903
|
-
|
|
5904
|
-
|
|
5959
|
+
Column62({ name: "reviewer_id", type: "integer" }),
|
|
5960
|
+
Index55()
|
|
5905
5961
|
], Rating.prototype, "reviewer_id", 2);
|
|
5906
5962
|
__decorateClass([
|
|
5907
|
-
|
|
5908
|
-
|
|
5963
|
+
ManyToOne56(() => User, { onDelete: "CASCADE" }),
|
|
5964
|
+
JoinColumn57({ name: "reviewer_id" })
|
|
5909
5965
|
], Rating.prototype, "reviewer", 2);
|
|
5910
5966
|
__decorateClass([
|
|
5911
|
-
|
|
5912
|
-
|
|
5967
|
+
Column62({ name: "reviewee_id", type: "integer" }),
|
|
5968
|
+
Index55()
|
|
5913
5969
|
], Rating.prototype, "reviewee_id", 2);
|
|
5914
5970
|
__decorateClass([
|
|
5915
|
-
|
|
5916
|
-
|
|
5971
|
+
ManyToOne56(() => User, { onDelete: "CASCADE" }),
|
|
5972
|
+
JoinColumn57({ name: "reviewee_id" })
|
|
5917
5973
|
], Rating.prototype, "reviewee", 2);
|
|
5918
5974
|
__decorateClass([
|
|
5919
|
-
|
|
5975
|
+
Column62({
|
|
5920
5976
|
type: "enum",
|
|
5921
5977
|
enum: RatingTypeEnum,
|
|
5922
5978
|
nullable: true
|
|
5923
5979
|
})
|
|
5924
5980
|
], Rating.prototype, "ratingType", 2);
|
|
5925
5981
|
__decorateClass([
|
|
5926
|
-
|
|
5982
|
+
Column62({ type: "integer", nullable: true })
|
|
5927
5983
|
], Rating.prototype, "rating", 2);
|
|
5928
5984
|
__decorateClass([
|
|
5929
|
-
|
|
5985
|
+
Column62({ type: "text", nullable: true })
|
|
5930
5986
|
], Rating.prototype, "review", 2);
|
|
5931
5987
|
Rating = __decorateClass([
|
|
5932
|
-
|
|
5988
|
+
Entity61("ratings")
|
|
5933
5989
|
], Rating);
|
|
5934
5990
|
|
|
5935
5991
|
// src/modules/rating/dto/add.rating.dto.ts
|
|
@@ -7918,11 +7974,11 @@ var ChatRMQAdapter = (mode = "microservice") => {
|
|
|
7918
7974
|
};
|
|
7919
7975
|
|
|
7920
7976
|
// src/entities/sequence-generator.entity.ts
|
|
7921
|
-
import { Entity as
|
|
7977
|
+
import { Entity as Entity62, Column as Column63 } from "typeorm";
|
|
7922
7978
|
var SequenceGenerator = class extends BaseEntity {
|
|
7923
7979
|
};
|
|
7924
7980
|
__decorateClass([
|
|
7925
|
-
|
|
7981
|
+
Column63({
|
|
7926
7982
|
name: "module",
|
|
7927
7983
|
type: "varchar",
|
|
7928
7984
|
length: 50,
|
|
@@ -7931,7 +7987,7 @@ __decorateClass([
|
|
|
7931
7987
|
})
|
|
7932
7988
|
], SequenceGenerator.prototype, "module", 2);
|
|
7933
7989
|
__decorateClass([
|
|
7934
|
-
|
|
7990
|
+
Column63({
|
|
7935
7991
|
name: "prefix",
|
|
7936
7992
|
type: "varchar",
|
|
7937
7993
|
length: 10,
|
|
@@ -7940,7 +7996,7 @@ __decorateClass([
|
|
|
7940
7996
|
})
|
|
7941
7997
|
], SequenceGenerator.prototype, "prefix", 2);
|
|
7942
7998
|
__decorateClass([
|
|
7943
|
-
|
|
7999
|
+
Column63({
|
|
7944
8000
|
name: "last_sequence",
|
|
7945
8001
|
type: "int",
|
|
7946
8002
|
nullable: false,
|
|
@@ -7948,7 +8004,7 @@ __decorateClass([
|
|
|
7948
8004
|
})
|
|
7949
8005
|
], SequenceGenerator.prototype, "lastSequence", 2);
|
|
7950
8006
|
__decorateClass([
|
|
7951
|
-
|
|
8007
|
+
Column63({
|
|
7952
8008
|
name: "year",
|
|
7953
8009
|
type: "int",
|
|
7954
8010
|
nullable: true,
|
|
@@ -7956,11 +8012,11 @@ __decorateClass([
|
|
|
7956
8012
|
})
|
|
7957
8013
|
], SequenceGenerator.prototype, "year", 2);
|
|
7958
8014
|
SequenceGenerator = __decorateClass([
|
|
7959
|
-
|
|
8015
|
+
Entity62("sequence_generators")
|
|
7960
8016
|
], SequenceGenerator);
|
|
7961
8017
|
|
|
7962
8018
|
// src/entities/question.entity.ts
|
|
7963
|
-
import { Entity as
|
|
8019
|
+
import { Entity as Entity63, Column as Column64 } from "typeorm";
|
|
7964
8020
|
var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
7965
8021
|
QuestionFor2["CLIENT"] = "CLIENT";
|
|
7966
8022
|
QuestionFor2["FREELANCER"] = "FREELANCER";
|
|
@@ -7969,16 +8025,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
|
7969
8025
|
var Question = class extends BaseEntity {
|
|
7970
8026
|
};
|
|
7971
8027
|
__decorateClass([
|
|
7972
|
-
|
|
8028
|
+
Column64({ name: "question", type: "varchar" })
|
|
7973
8029
|
], Question.prototype, "question", 2);
|
|
7974
8030
|
__decorateClass([
|
|
7975
|
-
|
|
8031
|
+
Column64({ name: "hint", type: "varchar", nullable: true })
|
|
7976
8032
|
], Question.prototype, "hint", 2);
|
|
7977
8033
|
__decorateClass([
|
|
7978
|
-
|
|
8034
|
+
Column64({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
7979
8035
|
], Question.prototype, "slug", 2);
|
|
7980
8036
|
__decorateClass([
|
|
7981
|
-
|
|
8037
|
+
Column64({
|
|
7982
8038
|
name: "question_for",
|
|
7983
8039
|
type: "enum",
|
|
7984
8040
|
enum: QuestionFor,
|
|
@@ -7986,49 +8042,49 @@ __decorateClass([
|
|
|
7986
8042
|
})
|
|
7987
8043
|
], Question.prototype, "questionFor", 2);
|
|
7988
8044
|
__decorateClass([
|
|
7989
|
-
|
|
8045
|
+
Column64({ name: "type", type: "varchar", nullable: true })
|
|
7990
8046
|
], Question.prototype, "type", 2);
|
|
7991
8047
|
__decorateClass([
|
|
7992
|
-
|
|
8048
|
+
Column64({ name: "options", type: "jsonb", nullable: true })
|
|
7993
8049
|
], Question.prototype, "options", 2);
|
|
7994
8050
|
__decorateClass([
|
|
7995
|
-
|
|
8051
|
+
Column64({ name: "is_active", type: "boolean", default: false })
|
|
7996
8052
|
], Question.prototype, "isActive", 2);
|
|
7997
8053
|
Question = __decorateClass([
|
|
7998
|
-
|
|
8054
|
+
Entity63("questions")
|
|
7999
8055
|
], Question);
|
|
8000
8056
|
|
|
8001
8057
|
// src/entities/skill.entity.ts
|
|
8002
|
-
import { Entity as
|
|
8058
|
+
import { Entity as Entity64, Column as Column65 } from "typeorm";
|
|
8003
8059
|
var Skill = class extends BaseEntity {
|
|
8004
8060
|
};
|
|
8005
8061
|
__decorateClass([
|
|
8006
|
-
|
|
8062
|
+
Column65({ name: "name", type: "varchar", nullable: true })
|
|
8007
8063
|
], Skill.prototype, "name", 2);
|
|
8008
8064
|
__decorateClass([
|
|
8009
|
-
|
|
8065
|
+
Column65({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
8010
8066
|
], Skill.prototype, "slug", 2);
|
|
8011
8067
|
__decorateClass([
|
|
8012
|
-
|
|
8068
|
+
Column65({ name: "is_active", type: "boolean", default: false })
|
|
8013
8069
|
], Skill.prototype, "isActive", 2);
|
|
8014
8070
|
Skill = __decorateClass([
|
|
8015
|
-
|
|
8071
|
+
Entity64("skills")
|
|
8016
8072
|
], Skill);
|
|
8017
8073
|
|
|
8018
8074
|
// src/entities/skill-catalog.entity.ts
|
|
8019
8075
|
import {
|
|
8020
|
-
Entity as
|
|
8021
|
-
Column as
|
|
8022
|
-
Index as
|
|
8076
|
+
Entity as Entity65,
|
|
8077
|
+
Column as Column66,
|
|
8078
|
+
Index as Index56
|
|
8023
8079
|
} from "typeorm";
|
|
8024
8080
|
var SkillCatalog = class extends BaseEntity {
|
|
8025
8081
|
};
|
|
8026
8082
|
__decorateClass([
|
|
8027
|
-
|
|
8028
|
-
|
|
8083
|
+
Column66({ name: "canonical_name", type: "varchar", length: 100, unique: true }),
|
|
8084
|
+
Index56()
|
|
8029
8085
|
], SkillCatalog.prototype, "canonicalName", 2);
|
|
8030
8086
|
__decorateClass([
|
|
8031
|
-
|
|
8087
|
+
Column66({
|
|
8032
8088
|
name: "aliases",
|
|
8033
8089
|
type: "text",
|
|
8034
8090
|
array: true,
|
|
@@ -8036,20 +8092,20 @@ __decorateClass([
|
|
|
8036
8092
|
})
|
|
8037
8093
|
], SkillCatalog.prototype, "aliases", 2);
|
|
8038
8094
|
__decorateClass([
|
|
8039
|
-
|
|
8095
|
+
Column66({
|
|
8040
8096
|
name: "variations",
|
|
8041
8097
|
type: "jsonb",
|
|
8042
8098
|
default: "{}"
|
|
8043
8099
|
})
|
|
8044
8100
|
], SkillCatalog.prototype, "variations", 2);
|
|
8045
8101
|
__decorateClass([
|
|
8046
|
-
|
|
8102
|
+
Column66({ name: "category", type: "varchar", length: 50, nullable: true })
|
|
8047
8103
|
], SkillCatalog.prototype, "category", 2);
|
|
8048
8104
|
__decorateClass([
|
|
8049
|
-
|
|
8105
|
+
Column66({ name: "parent_skill", type: "varchar", length: 100, nullable: true })
|
|
8050
8106
|
], SkillCatalog.prototype, "parentSkill", 2);
|
|
8051
8107
|
__decorateClass([
|
|
8052
|
-
|
|
8108
|
+
Column66({
|
|
8053
8109
|
name: "related_skills",
|
|
8054
8110
|
type: "text",
|
|
8055
8111
|
array: true,
|
|
@@ -8057,113 +8113,113 @@ __decorateClass([
|
|
|
8057
8113
|
})
|
|
8058
8114
|
], SkillCatalog.prototype, "relatedSkills", 2);
|
|
8059
8115
|
__decorateClass([
|
|
8060
|
-
|
|
8061
|
-
|
|
8116
|
+
Column66({ name: "usage_count", type: "integer", default: 0 }),
|
|
8117
|
+
Index56()
|
|
8062
8118
|
], SkillCatalog.prototype, "usageCount", 2);
|
|
8063
8119
|
__decorateClass([
|
|
8064
|
-
|
|
8120
|
+
Column66({ name: "is_verified", type: "boolean", default: false })
|
|
8065
8121
|
], SkillCatalog.prototype, "isVerified", 2);
|
|
8066
8122
|
__decorateClass([
|
|
8067
|
-
|
|
8123
|
+
Column66({ name: "first_seen_date", type: "date" })
|
|
8068
8124
|
], SkillCatalog.prototype, "firstSeenDate", 2);
|
|
8069
8125
|
__decorateClass([
|
|
8070
|
-
|
|
8126
|
+
Column66({ name: "last_updated_date", type: "date" })
|
|
8071
8127
|
], SkillCatalog.prototype, "lastUpdatedDate", 2);
|
|
8072
8128
|
__decorateClass([
|
|
8073
|
-
|
|
8129
|
+
Column66({
|
|
8074
8130
|
name: "search_vector",
|
|
8075
8131
|
type: "tsvector",
|
|
8076
8132
|
nullable: true
|
|
8077
8133
|
})
|
|
8078
8134
|
], SkillCatalog.prototype, "searchVector", 2);
|
|
8079
8135
|
SkillCatalog = __decorateClass([
|
|
8080
|
-
|
|
8136
|
+
Entity65("skill_catalogs")
|
|
8081
8137
|
], SkillCatalog);
|
|
8082
8138
|
|
|
8083
8139
|
// src/entities/job-role.entity.ts
|
|
8084
|
-
import { Entity as
|
|
8140
|
+
import { Entity as Entity66, Column as Column67 } from "typeorm";
|
|
8085
8141
|
var JobRoles = class extends BaseEntity {
|
|
8086
8142
|
};
|
|
8087
8143
|
__decorateClass([
|
|
8088
|
-
|
|
8144
|
+
Column67({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
8089
8145
|
], JobRoles.prototype, "slug", 2);
|
|
8090
8146
|
__decorateClass([
|
|
8091
|
-
|
|
8147
|
+
Column67({ name: "name", type: "varchar", nullable: true })
|
|
8092
8148
|
], JobRoles.prototype, "name", 2);
|
|
8093
8149
|
__decorateClass([
|
|
8094
|
-
|
|
8150
|
+
Column67({ name: "is_active", type: "boolean", default: true })
|
|
8095
8151
|
], JobRoles.prototype, "isActive", 2);
|
|
8096
8152
|
JobRoles = __decorateClass([
|
|
8097
|
-
|
|
8153
|
+
Entity66("job_roles")
|
|
8098
8154
|
], JobRoles);
|
|
8099
8155
|
|
|
8100
8156
|
// src/entities/plan.entity.ts
|
|
8101
|
-
import { Entity as
|
|
8157
|
+
import { Entity as Entity68, Column as Column69, ManyToMany as ManyToMany3, JoinTable } from "typeorm";
|
|
8102
8158
|
|
|
8103
8159
|
// src/entities/feature.entity.ts
|
|
8104
|
-
import { Entity as
|
|
8160
|
+
import { Entity as Entity67, Column as Column68, ManyToMany as ManyToMany2 } from "typeorm";
|
|
8105
8161
|
var Feature = class extends BaseEntity {
|
|
8106
8162
|
};
|
|
8107
8163
|
__decorateClass([
|
|
8108
|
-
|
|
8164
|
+
Column68({ name: "name", type: "varchar", unique: true })
|
|
8109
8165
|
], Feature.prototype, "name", 2);
|
|
8110
8166
|
__decorateClass([
|
|
8111
8167
|
ManyToMany2(() => Plan, (plan) => plan.features)
|
|
8112
8168
|
], Feature.prototype, "plans", 2);
|
|
8113
8169
|
Feature = __decorateClass([
|
|
8114
|
-
|
|
8170
|
+
Entity67("features")
|
|
8115
8171
|
], Feature);
|
|
8116
8172
|
|
|
8117
8173
|
// src/entities/plan.entity.ts
|
|
8118
8174
|
var Plan = class extends BaseEntity {
|
|
8119
8175
|
};
|
|
8120
8176
|
__decorateClass([
|
|
8121
|
-
|
|
8177
|
+
Column69({ name: "name", type: "varchar", unique: true })
|
|
8122
8178
|
], Plan.prototype, "name", 2);
|
|
8123
8179
|
__decorateClass([
|
|
8124
|
-
|
|
8180
|
+
Column69({ name: "description", type: "varchar", nullable: true })
|
|
8125
8181
|
], Plan.prototype, "description", 2);
|
|
8126
8182
|
__decorateClass([
|
|
8127
|
-
|
|
8183
|
+
Column69({ name: "price", type: "decimal", precision: 10, scale: 2 })
|
|
8128
8184
|
], Plan.prototype, "price", 2);
|
|
8129
8185
|
__decorateClass([
|
|
8130
|
-
|
|
8186
|
+
Column69({ name: "billing_period", type: "varchar" })
|
|
8131
8187
|
], Plan.prototype, "billingPeriod", 2);
|
|
8132
8188
|
__decorateClass([
|
|
8133
|
-
|
|
8189
|
+
Column69({ name: "is_current", type: "boolean", default: false })
|
|
8134
8190
|
], Plan.prototype, "isCurrent", 2);
|
|
8135
8191
|
__decorateClass([
|
|
8136
8192
|
ManyToMany3(() => Feature, (feature) => feature.plans, { cascade: true }),
|
|
8137
8193
|
JoinTable()
|
|
8138
8194
|
], Plan.prototype, "features", 2);
|
|
8139
8195
|
Plan = __decorateClass([
|
|
8140
|
-
|
|
8196
|
+
Entity68("plans")
|
|
8141
8197
|
], Plan);
|
|
8142
8198
|
|
|
8143
8199
|
// src/entities/cms.entity.ts
|
|
8144
|
-
import { Entity as
|
|
8200
|
+
import { Entity as Entity69, Column as Column70 } from "typeorm";
|
|
8145
8201
|
var Cms = class extends BaseEntity {
|
|
8146
8202
|
};
|
|
8147
8203
|
__decorateClass([
|
|
8148
|
-
|
|
8204
|
+
Column70({ name: "title", type: "varchar", nullable: true })
|
|
8149
8205
|
], Cms.prototype, "title", 2);
|
|
8150
8206
|
__decorateClass([
|
|
8151
|
-
|
|
8207
|
+
Column70({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
8152
8208
|
], Cms.prototype, "slug", 2);
|
|
8153
8209
|
__decorateClass([
|
|
8154
|
-
|
|
8210
|
+
Column70({ name: "content", type: "varchar", nullable: true })
|
|
8155
8211
|
], Cms.prototype, "content", 2);
|
|
8156
8212
|
__decorateClass([
|
|
8157
|
-
|
|
8213
|
+
Column70({ name: "is_active", type: "boolean", default: true })
|
|
8158
8214
|
], Cms.prototype, "isActive", 2);
|
|
8159
8215
|
Cms = __decorateClass([
|
|
8160
|
-
|
|
8216
|
+
Entity69("cms")
|
|
8161
8217
|
], Cms);
|
|
8162
8218
|
|
|
8163
8219
|
// src/entities/lead.entity.ts
|
|
8164
8220
|
import {
|
|
8165
|
-
Entity as
|
|
8166
|
-
Column as
|
|
8221
|
+
Entity as Entity70,
|
|
8222
|
+
Column as Column71
|
|
8167
8223
|
} from "typeorm";
|
|
8168
8224
|
var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
|
|
8169
8225
|
CategoryEmum2["BUSINESS"] = "BUSINESS";
|
|
@@ -8173,22 +8229,22 @@ var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
|
|
|
8173
8229
|
var Lead = class extends BaseEntity {
|
|
8174
8230
|
};
|
|
8175
8231
|
__decorateClass([
|
|
8176
|
-
|
|
8232
|
+
Column71({ name: "name", type: "varchar", nullable: true })
|
|
8177
8233
|
], Lead.prototype, "name", 2);
|
|
8178
8234
|
__decorateClass([
|
|
8179
|
-
|
|
8235
|
+
Column71({ name: "mobile_code", type: "varchar", nullable: true })
|
|
8180
8236
|
], Lead.prototype, "mobileCode", 2);
|
|
8181
8237
|
__decorateClass([
|
|
8182
|
-
|
|
8238
|
+
Column71({ name: "mobile", type: "varchar", nullable: true })
|
|
8183
8239
|
], Lead.prototype, "mobile", 2);
|
|
8184
8240
|
__decorateClass([
|
|
8185
|
-
|
|
8241
|
+
Column71({ name: "email", type: "varchar", nullable: true })
|
|
8186
8242
|
], Lead.prototype, "email", 2);
|
|
8187
8243
|
__decorateClass([
|
|
8188
|
-
|
|
8244
|
+
Column71({ name: "description", type: "varchar", nullable: true })
|
|
8189
8245
|
], Lead.prototype, "description", 2);
|
|
8190
8246
|
__decorateClass([
|
|
8191
|
-
|
|
8247
|
+
Column71({
|
|
8192
8248
|
name: "category",
|
|
8193
8249
|
type: "enum",
|
|
8194
8250
|
enum: CategoryEmum,
|
|
@@ -8196,7 +8252,7 @@ __decorateClass([
|
|
|
8196
8252
|
})
|
|
8197
8253
|
], Lead.prototype, "category", 2);
|
|
8198
8254
|
Lead = __decorateClass([
|
|
8199
|
-
|
|
8255
|
+
Entity70("leads")
|
|
8200
8256
|
], Lead);
|
|
8201
8257
|
|
|
8202
8258
|
// src/entities/job-freelancer-recommendation.entity.ts
|
|
@@ -8437,7 +8493,7 @@ ClientFreelancerRecommendation = __decorateClass([
|
|
|
8437
8493
|
], ClientFreelancerRecommendation);
|
|
8438
8494
|
|
|
8439
8495
|
// src/entities/commission.entity.ts
|
|
8440
|
-
import { Entity as
|
|
8496
|
+
import { Entity as Entity71, Column as Column72 } from "typeorm";
|
|
8441
8497
|
var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
|
|
8442
8498
|
CommissionTypeEnum2["PERCENTAGE"] = "PERCENTAGE";
|
|
8443
8499
|
CommissionTypeEnum2["FLAT"] = "FLAT";
|
|
@@ -8446,7 +8502,7 @@ var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
|
|
|
8446
8502
|
var Commission = class extends BaseEntity {
|
|
8447
8503
|
};
|
|
8448
8504
|
__decorateClass([
|
|
8449
|
-
|
|
8505
|
+
Column72({
|
|
8450
8506
|
name: "freelancer_commission_type",
|
|
8451
8507
|
type: "enum",
|
|
8452
8508
|
enum: CommissionTypeEnum,
|
|
@@ -8454,10 +8510,10 @@ __decorateClass([
|
|
|
8454
8510
|
})
|
|
8455
8511
|
], Commission.prototype, "freelancerCommissionType", 2);
|
|
8456
8512
|
__decorateClass([
|
|
8457
|
-
|
|
8513
|
+
Column72({ name: "freelancer_commission", type: "integer", default: 0 })
|
|
8458
8514
|
], Commission.prototype, "freelancerCommission", 2);
|
|
8459
8515
|
__decorateClass([
|
|
8460
|
-
|
|
8516
|
+
Column72({
|
|
8461
8517
|
name: "client_commission_type",
|
|
8462
8518
|
type: "enum",
|
|
8463
8519
|
enum: CommissionTypeEnum,
|
|
@@ -8465,105 +8521,105 @@ __decorateClass([
|
|
|
8465
8521
|
})
|
|
8466
8522
|
], Commission.prototype, "clientCommissionType", 2);
|
|
8467
8523
|
__decorateClass([
|
|
8468
|
-
|
|
8524
|
+
Column72({ name: "client_commission", type: "integer", default: 0 })
|
|
8469
8525
|
], Commission.prototype, "clientCommission", 2);
|
|
8470
8526
|
Commission = __decorateClass([
|
|
8471
|
-
|
|
8527
|
+
Entity71("commissions")
|
|
8472
8528
|
], Commission);
|
|
8473
8529
|
|
|
8474
8530
|
// src/entities/calendly-meeting-log.entity.ts
|
|
8475
8531
|
import {
|
|
8476
|
-
Entity as
|
|
8477
|
-
Column as
|
|
8478
|
-
Index as
|
|
8532
|
+
Entity as Entity72,
|
|
8533
|
+
Column as Column73,
|
|
8534
|
+
Index as Index57
|
|
8479
8535
|
} from "typeorm";
|
|
8480
8536
|
var CalendlyMeetingLog = class extends BaseEntity {
|
|
8481
8537
|
};
|
|
8482
8538
|
__decorateClass([
|
|
8483
|
-
|
|
8484
|
-
|
|
8539
|
+
Column73({ name: "calendly_event_id", type: "varchar", nullable: true }),
|
|
8540
|
+
Index57()
|
|
8485
8541
|
], CalendlyMeetingLog.prototype, "calendlyEventId", 2);
|
|
8486
8542
|
__decorateClass([
|
|
8487
|
-
|
|
8543
|
+
Column73({ name: "calendly_event_type", type: "varchar", nullable: true })
|
|
8488
8544
|
], CalendlyMeetingLog.prototype, "calendlyEventType", 2);
|
|
8489
8545
|
__decorateClass([
|
|
8490
|
-
|
|
8546
|
+
Column73({ name: "raw_webhook_data", type: "jsonb", nullable: true })
|
|
8491
8547
|
], CalendlyMeetingLog.prototype, "rawWebhookData", 2);
|
|
8492
8548
|
CalendlyMeetingLog = __decorateClass([
|
|
8493
|
-
|
|
8549
|
+
Entity72("calendly_meeting_logs")
|
|
8494
8550
|
], CalendlyMeetingLog);
|
|
8495
8551
|
|
|
8496
8552
|
// src/entities/zoom-meeting-log.entity.ts
|
|
8497
8553
|
import {
|
|
8498
|
-
Entity as
|
|
8499
|
-
Column as
|
|
8500
|
-
Index as
|
|
8554
|
+
Entity as Entity73,
|
|
8555
|
+
Column as Column74,
|
|
8556
|
+
Index as Index58
|
|
8501
8557
|
} from "typeorm";
|
|
8502
8558
|
var ZoomMeetingLog = class extends BaseEntity {
|
|
8503
8559
|
};
|
|
8504
8560
|
__decorateClass([
|
|
8505
|
-
|
|
8506
|
-
|
|
8561
|
+
Column74({ name: "zoom_meeting_id", type: "varchar", nullable: true }),
|
|
8562
|
+
Index58()
|
|
8507
8563
|
], ZoomMeetingLog.prototype, "zoomMeetingId", 2);
|
|
8508
8564
|
__decorateClass([
|
|
8509
|
-
|
|
8565
|
+
Column74({ name: "zoom_event_type", type: "varchar", nullable: true })
|
|
8510
8566
|
], ZoomMeetingLog.prototype, "zoomEventType", 2);
|
|
8511
8567
|
__decorateClass([
|
|
8512
|
-
|
|
8568
|
+
Column74({ name: "raw_webhook_data", type: "jsonb", nullable: true })
|
|
8513
8569
|
], ZoomMeetingLog.prototype, "rawWebhookData", 2);
|
|
8514
8570
|
ZoomMeetingLog = __decorateClass([
|
|
8515
|
-
|
|
8571
|
+
Entity73("zoom_meeting_logs")
|
|
8516
8572
|
], ZoomMeetingLog);
|
|
8517
8573
|
|
|
8518
8574
|
// src/entities/stripe-logs.entity.ts
|
|
8519
|
-
import { Entity as
|
|
8575
|
+
import { Entity as Entity74, Column as Column75 } from "typeorm";
|
|
8520
8576
|
var StripeLog = class extends BaseEntity {
|
|
8521
8577
|
};
|
|
8522
8578
|
__decorateClass([
|
|
8523
|
-
|
|
8579
|
+
Column75({ name: "stripe_event_id", type: "varchar", nullable: true })
|
|
8524
8580
|
], StripeLog.prototype, "stripeEventId", 2);
|
|
8525
8581
|
__decorateClass([
|
|
8526
|
-
|
|
8582
|
+
Column75({ name: "event_type", type: "varchar", nullable: true })
|
|
8527
8583
|
], StripeLog.prototype, "eventType", 2);
|
|
8528
8584
|
__decorateClass([
|
|
8529
|
-
|
|
8585
|
+
Column75({ name: "stripe_account_id", type: "varchar", nullable: true })
|
|
8530
8586
|
], StripeLog.prototype, "stripeAccountId", 2);
|
|
8531
8587
|
__decorateClass([
|
|
8532
|
-
|
|
8588
|
+
Column75({ name: "raw_webhook_data", type: "jsonb", nullable: true })
|
|
8533
8589
|
], StripeLog.prototype, "rawWebhookData", 2);
|
|
8534
8590
|
StripeLog = __decorateClass([
|
|
8535
|
-
|
|
8591
|
+
Entity74("stripe_logs")
|
|
8536
8592
|
], StripeLog);
|
|
8537
8593
|
|
|
8538
8594
|
// src/entities/recommendation-weightage-config.entity.ts
|
|
8539
8595
|
import {
|
|
8540
|
-
Entity as
|
|
8541
|
-
Column as
|
|
8542
|
-
Index as
|
|
8596
|
+
Entity as Entity75,
|
|
8597
|
+
Column as Column76,
|
|
8598
|
+
Index as Index59
|
|
8543
8599
|
} from "typeorm";
|
|
8544
8600
|
var RecommendationWeightageConfig = class extends BaseEntity {
|
|
8545
8601
|
};
|
|
8546
8602
|
__decorateClass([
|
|
8547
|
-
|
|
8603
|
+
Column76({
|
|
8548
8604
|
type: "varchar",
|
|
8549
8605
|
length: 100,
|
|
8550
8606
|
unique: true,
|
|
8551
8607
|
comment: "Unique key identifier (e.g., full_time_weights, hourly_weights)"
|
|
8552
8608
|
}),
|
|
8553
|
-
|
|
8609
|
+
Index59()
|
|
8554
8610
|
], RecommendationWeightageConfig.prototype, "key", 2);
|
|
8555
8611
|
__decorateClass([
|
|
8556
|
-
|
|
8612
|
+
Column76({
|
|
8557
8613
|
type: "jsonb",
|
|
8558
8614
|
comment: "JSON object containing weight values",
|
|
8559
8615
|
nullable: true
|
|
8560
8616
|
})
|
|
8561
8617
|
], RecommendationWeightageConfig.prototype, "value", 2);
|
|
8562
8618
|
__decorateClass([
|
|
8563
|
-
|
|
8619
|
+
Column76({ name: "is_active", type: "boolean", default: true })
|
|
8564
8620
|
], RecommendationWeightageConfig.prototype, "isActive", 2);
|
|
8565
8621
|
RecommendationWeightageConfig = __decorateClass([
|
|
8566
|
-
|
|
8622
|
+
Entity75("recommendation_weightage_configs")
|
|
8567
8623
|
], RecommendationWeightageConfig);
|
|
8568
8624
|
export {
|
|
8569
8625
|
ADMIN_FREELANCER_PATTERN,
|
|
@@ -8735,7 +8791,7 @@ export {
|
|
|
8735
8791
|
JobFreelancerRecommendationV2,
|
|
8736
8792
|
JobIdParamDto,
|
|
8737
8793
|
JobLocation,
|
|
8738
|
-
JobLocationEnum,
|
|
8794
|
+
JobLocationEnum2 as JobLocationEnum,
|
|
8739
8795
|
JobLocationEnumDto,
|
|
8740
8796
|
JobLocationEnums,
|
|
8741
8797
|
JobRMQAdapter,
|