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