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