@experts_hub/shared 1.0.395 → 1.0.396
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/entities/index.d.ts +1 -0
- package/dist/entities/timesheet-line-history.entity.d.ts +19 -0
- package/dist/entities/timesheet-line.entity.d.ts +2 -0
- package/dist/index.d.mts +20 -1
- package/dist/index.d.ts +20 -1
- package/dist/index.js +632 -569
- package/dist/index.mjs +580 -519
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1421,17 +1421,17 @@ import {
|
|
|
1421
1421
|
} from "class-validator";
|
|
1422
1422
|
|
|
1423
1423
|
// src/entities/rating.entity.ts
|
|
1424
|
-
import { Entity as
|
|
1424
|
+
import { Entity as Entity54, Column as Column55, ManyToOne as ManyToOne48, JoinColumn as JoinColumn49, Index as Index47 } from "typeorm";
|
|
1425
1425
|
|
|
1426
1426
|
// src/entities/user.entity.ts
|
|
1427
1427
|
import {
|
|
1428
|
-
Entity as
|
|
1429
|
-
Column as
|
|
1428
|
+
Entity as Entity53,
|
|
1429
|
+
Column as Column54,
|
|
1430
1430
|
OneToMany as OneToMany19,
|
|
1431
1431
|
OneToOne as OneToOne5,
|
|
1432
|
-
Index as
|
|
1433
|
-
ManyToOne as
|
|
1434
|
-
JoinColumn as
|
|
1432
|
+
Index as Index46,
|
|
1433
|
+
ManyToOne as ManyToOne47,
|
|
1434
|
+
JoinColumn as JoinColumn48
|
|
1435
1435
|
} from "typeorm";
|
|
1436
1436
|
|
|
1437
1437
|
// src/entities/base.entity.ts
|
|
@@ -2149,11 +2149,11 @@ CompanyProfile = __decorateClass([
|
|
|
2149
2149
|
|
|
2150
2150
|
// src/entities/job.entity.ts
|
|
2151
2151
|
import {
|
|
2152
|
-
Entity as
|
|
2153
|
-
Column as
|
|
2154
|
-
Index as
|
|
2155
|
-
ManyToOne as
|
|
2156
|
-
JoinColumn as
|
|
2152
|
+
Entity as Entity25,
|
|
2153
|
+
Column as Column26,
|
|
2154
|
+
Index as Index19,
|
|
2155
|
+
ManyToOne as ManyToOne24,
|
|
2156
|
+
JoinColumn as JoinColumn24,
|
|
2157
2157
|
OneToMany as OneToMany10
|
|
2158
2158
|
} from "typeorm";
|
|
2159
2159
|
|
|
@@ -3132,7 +3132,7 @@ Timesheet = __decorateClass([
|
|
|
3132
3132
|
], Timesheet);
|
|
3133
3133
|
|
|
3134
3134
|
// src/entities/timesheet-line.entity.ts
|
|
3135
|
-
import { Entity as
|
|
3135
|
+
import { Entity as Entity24, Column as Column25, Index as Index18, JoinColumn as JoinColumn23, OneToMany as OneToMany9, ManyToOne as ManyToOne23 } from "typeorm";
|
|
3136
3136
|
|
|
3137
3137
|
// src/entities/timesheet-logs.entity.ts
|
|
3138
3138
|
import { Entity as Entity22, Column as Column23, Index as Index16, ManyToOne as ManyToOne21, JoinColumn as JoinColumn21 } from "typeorm";
|
|
@@ -3182,6 +3182,62 @@ TimesheetLogs = __decorateClass([
|
|
|
3182
3182
|
Entity22("timesheet-logs")
|
|
3183
3183
|
], TimesheetLogs);
|
|
3184
3184
|
|
|
3185
|
+
// src/entities/timesheet-line-history.entity.ts
|
|
3186
|
+
import { Entity as Entity23, Column as Column24, Index as Index17, ManyToOne as ManyToOne22, JoinColumn as JoinColumn22 } from "typeorm";
|
|
3187
|
+
var TimesheetSubmissionActionEnum = /* @__PURE__ */ ((TimesheetSubmissionActionEnum2) => {
|
|
3188
|
+
TimesheetSubmissionActionEnum2["SUBMITTED"] = "SUBMITTED";
|
|
3189
|
+
TimesheetSubmissionActionEnum2["RESUBMITTED"] = "RESUBMITTED";
|
|
3190
|
+
TimesheetSubmissionActionEnum2["SEND_BACK"] = "SEND_BACK";
|
|
3191
|
+
TimesheetSubmissionActionEnum2["APPROVED"] = "APPROVED";
|
|
3192
|
+
TimesheetSubmissionActionEnum2["REJECTED"] = "REJECTED";
|
|
3193
|
+
TimesheetSubmissionActionEnum2["PAID"] = "PAID";
|
|
3194
|
+
return TimesheetSubmissionActionEnum2;
|
|
3195
|
+
})(TimesheetSubmissionActionEnum || {});
|
|
3196
|
+
var TimesheetLineHistory = class extends BaseEntity {
|
|
3197
|
+
};
|
|
3198
|
+
__decorateClass([
|
|
3199
|
+
Column24({ name: "timesheet_line_id", type: "integer", nullable: false }),
|
|
3200
|
+
Index17()
|
|
3201
|
+
], TimesheetLineHistory.prototype, "timesheetLineId", 2);
|
|
3202
|
+
__decorateClass([
|
|
3203
|
+
ManyToOne22(() => TimesheetLine, (timesheetLine) => timesheetLine.timesheetLineHistory),
|
|
3204
|
+
JoinColumn22({ name: "timesheet_line_id" })
|
|
3205
|
+
], TimesheetLineHistory.prototype, "timesheetLine", 2);
|
|
3206
|
+
__decorateClass([
|
|
3207
|
+
Column24({ name: "changed_by", type: "integer", nullable: true }),
|
|
3208
|
+
Index17()
|
|
3209
|
+
], TimesheetLineHistory.prototype, "changedBy", 2);
|
|
3210
|
+
__decorateClass([
|
|
3211
|
+
Column24({
|
|
3212
|
+
name: "previous_status",
|
|
3213
|
+
type: "enum",
|
|
3214
|
+
enum: TimesheetLineStatusEnum,
|
|
3215
|
+
nullable: true
|
|
3216
|
+
})
|
|
3217
|
+
], TimesheetLineHistory.prototype, "previousStatus", 2);
|
|
3218
|
+
__decorateClass([
|
|
3219
|
+
Column24({
|
|
3220
|
+
name: "new_status",
|
|
3221
|
+
type: "enum",
|
|
3222
|
+
enum: TimesheetLineStatusEnum,
|
|
3223
|
+
nullable: false
|
|
3224
|
+
})
|
|
3225
|
+
], TimesheetLineHistory.prototype, "newStatus", 2);
|
|
3226
|
+
__decorateClass([
|
|
3227
|
+
Column24({
|
|
3228
|
+
name: "action_type",
|
|
3229
|
+
type: "enum",
|
|
3230
|
+
enum: TimesheetSubmissionActionEnum,
|
|
3231
|
+
nullable: false
|
|
3232
|
+
})
|
|
3233
|
+
], TimesheetLineHistory.prototype, "actionType", 2);
|
|
3234
|
+
__decorateClass([
|
|
3235
|
+
Column24({ name: "remarks", type: "varchar", nullable: true })
|
|
3236
|
+
], TimesheetLineHistory.prototype, "remarks", 2);
|
|
3237
|
+
TimesheetLineHistory = __decorateClass([
|
|
3238
|
+
Entity23("timesheet-line-history")
|
|
3239
|
+
], TimesheetLineHistory);
|
|
3240
|
+
|
|
3185
3241
|
// src/entities/timesheet-line.entity.ts
|
|
3186
3242
|
var TimesheetLineStatusEnum = /* @__PURE__ */ ((TimesheetLineStatusEnum2) => {
|
|
3187
3243
|
TimesheetLineStatusEnum2["DRAFT"] = "DRAFT";
|
|
@@ -3197,54 +3253,57 @@ var TimesheetLineStatusEnum = /* @__PURE__ */ ((TimesheetLineStatusEnum2) => {
|
|
|
3197
3253
|
var TimesheetLine = class extends BaseEntity {
|
|
3198
3254
|
};
|
|
3199
3255
|
__decorateClass([
|
|
3200
|
-
|
|
3201
|
-
|
|
3256
|
+
Column25({ name: "job_id", type: "integer", nullable: true }),
|
|
3257
|
+
Index18()
|
|
3202
3258
|
], TimesheetLine.prototype, "jobId", 2);
|
|
3203
3259
|
__decorateClass([
|
|
3204
|
-
|
|
3205
|
-
|
|
3260
|
+
ManyToOne23(() => Job, (job) => job.timesheetLine),
|
|
3261
|
+
JoinColumn23({ name: "job_id" })
|
|
3206
3262
|
], TimesheetLine.prototype, "job", 2);
|
|
3207
3263
|
__decorateClass([
|
|
3208
|
-
|
|
3209
|
-
|
|
3264
|
+
Column25({ name: "client_id", type: "integer", nullable: true }),
|
|
3265
|
+
Index18()
|
|
3210
3266
|
], TimesheetLine.prototype, "clientId", 2);
|
|
3211
3267
|
__decorateClass([
|
|
3212
|
-
|
|
3213
|
-
|
|
3268
|
+
ManyToOne23(() => User, (user) => user.clientTimesheetLine),
|
|
3269
|
+
JoinColumn23({ name: "client_id" })
|
|
3214
3270
|
], TimesheetLine.prototype, "client", 2);
|
|
3215
3271
|
__decorateClass([
|
|
3216
|
-
|
|
3217
|
-
|
|
3272
|
+
Column25({ name: "freelancer_id", type: "integer", nullable: true }),
|
|
3273
|
+
Index18()
|
|
3218
3274
|
], TimesheetLine.prototype, "freelancerId", 2);
|
|
3219
3275
|
__decorateClass([
|
|
3220
|
-
|
|
3221
|
-
|
|
3276
|
+
ManyToOne23(() => User, (user) => user.freelancerTimesheetLine),
|
|
3277
|
+
JoinColumn23({ name: "freelancer_id" })
|
|
3222
3278
|
], TimesheetLine.prototype, "freelancer", 2);
|
|
3223
3279
|
__decorateClass([
|
|
3224
|
-
OneToMany9(() => TimesheetLogs, (timesheetLogs) => timesheetLogs.
|
|
3280
|
+
OneToMany9(() => TimesheetLogs, (timesheetLogs) => timesheetLogs.timesheetLine)
|
|
3225
3281
|
], TimesheetLine.prototype, "timesheetLogs", 2);
|
|
3226
3282
|
__decorateClass([
|
|
3227
|
-
|
|
3283
|
+
OneToMany9(() => TimesheetLineHistory, (timesheetLineHistory) => timesheetLineHistory.timesheetLine)
|
|
3284
|
+
], TimesheetLine.prototype, "timesheetLineHistory", 2);
|
|
3285
|
+
__decorateClass([
|
|
3286
|
+
Column25({ name: "unique_id", type: "varchar", nullable: true })
|
|
3228
3287
|
], TimesheetLine.prototype, "uniqueId", 2);
|
|
3229
3288
|
__decorateClass([
|
|
3230
|
-
|
|
3289
|
+
Column25({
|
|
3231
3290
|
name: "week_start_date",
|
|
3232
3291
|
type: "date",
|
|
3233
3292
|
nullable: true
|
|
3234
3293
|
})
|
|
3235
3294
|
], TimesheetLine.prototype, "weekStartDate", 2);
|
|
3236
3295
|
__decorateClass([
|
|
3237
|
-
|
|
3296
|
+
Column25({
|
|
3238
3297
|
name: "week_end_date",
|
|
3239
3298
|
type: "date",
|
|
3240
3299
|
nullable: true
|
|
3241
3300
|
})
|
|
3242
3301
|
], TimesheetLine.prototype, "weekEndDate", 2);
|
|
3243
3302
|
__decorateClass([
|
|
3244
|
-
|
|
3303
|
+
Column25({ name: "status", type: "enum", enum: TimesheetLineStatusEnum, nullable: true })
|
|
3245
3304
|
], TimesheetLine.prototype, "status", 2);
|
|
3246
3305
|
TimesheetLine = __decorateClass([
|
|
3247
|
-
|
|
3306
|
+
Entity24("timesheet-line")
|
|
3248
3307
|
], TimesheetLine);
|
|
3249
3308
|
|
|
3250
3309
|
// src/entities/job.entity.ts
|
|
@@ -3284,52 +3343,52 @@ var DurationTypeEnum = /* @__PURE__ */ ((DurationTypeEnum2) => {
|
|
|
3284
3343
|
var Job = class extends BaseEntity {
|
|
3285
3344
|
};
|
|
3286
3345
|
__decorateClass([
|
|
3287
|
-
|
|
3346
|
+
Column26({ name: "job_id", type: "varchar", unique: true, nullable: true })
|
|
3288
3347
|
], Job.prototype, "jobId", 2);
|
|
3289
3348
|
// individual index to find jobs by user
|
|
3290
3349
|
__decorateClass([
|
|
3291
|
-
|
|
3292
|
-
|
|
3350
|
+
Column26({ name: "user_id", type: "integer", nullable: true }),
|
|
3351
|
+
Index19()
|
|
3293
3352
|
], Job.prototype, "userId", 2);
|
|
3294
3353
|
__decorateClass([
|
|
3295
|
-
|
|
3296
|
-
|
|
3354
|
+
ManyToOne24(() => User, (user) => user.jobs),
|
|
3355
|
+
JoinColumn24({ name: "user_id" })
|
|
3297
3356
|
], Job.prototype, "user", 2);
|
|
3298
3357
|
__decorateClass([
|
|
3299
|
-
|
|
3358
|
+
Column26({ name: "country_id", type: "int", nullable: true })
|
|
3300
3359
|
], Job.prototype, "countryId", 2);
|
|
3301
3360
|
__decorateClass([
|
|
3302
|
-
|
|
3303
|
-
|
|
3361
|
+
ManyToOne24(() => Country),
|
|
3362
|
+
JoinColumn24({ name: "country_id" })
|
|
3304
3363
|
], Job.prototype, "country", 2);
|
|
3305
3364
|
__decorateClass([
|
|
3306
|
-
|
|
3365
|
+
Column26({ name: "state_id", type: "int", nullable: true })
|
|
3307
3366
|
], Job.prototype, "stateId", 2);
|
|
3308
3367
|
__decorateClass([
|
|
3309
|
-
|
|
3310
|
-
|
|
3368
|
+
ManyToOne24(() => State),
|
|
3369
|
+
JoinColumn24({ name: "state_id" })
|
|
3311
3370
|
], Job.prototype, "state", 2);
|
|
3312
3371
|
__decorateClass([
|
|
3313
|
-
|
|
3372
|
+
Column26({ name: "city_id", type: "int", nullable: true })
|
|
3314
3373
|
], Job.prototype, "cityId", 2);
|
|
3315
3374
|
__decorateClass([
|
|
3316
|
-
|
|
3317
|
-
|
|
3375
|
+
ManyToOne24(() => City),
|
|
3376
|
+
JoinColumn24({ name: "city_id" })
|
|
3318
3377
|
], Job.prototype, "city", 2);
|
|
3319
3378
|
__decorateClass([
|
|
3320
|
-
|
|
3379
|
+
Column26({ name: "job_role", type: "varchar", nullable: true })
|
|
3321
3380
|
], Job.prototype, "jobRole", 2);
|
|
3322
3381
|
__decorateClass([
|
|
3323
|
-
|
|
3382
|
+
Column26({ name: "project_name", type: "varchar", nullable: true })
|
|
3324
3383
|
], Job.prototype, "projectName", 2);
|
|
3325
3384
|
__decorateClass([
|
|
3326
|
-
|
|
3385
|
+
Column26({ name: "note", type: "varchar", nullable: true })
|
|
3327
3386
|
], Job.prototype, "note", 2);
|
|
3328
3387
|
__decorateClass([
|
|
3329
|
-
|
|
3388
|
+
Column26({ name: "openings", type: "integer", default: 0 })
|
|
3330
3389
|
], Job.prototype, "openings", 2);
|
|
3331
3390
|
__decorateClass([
|
|
3332
|
-
|
|
3391
|
+
Column26({
|
|
3333
3392
|
name: "location",
|
|
3334
3393
|
type: "enum",
|
|
3335
3394
|
enum: JobLocationEnum,
|
|
@@ -3337,7 +3396,7 @@ __decorateClass([
|
|
|
3337
3396
|
})
|
|
3338
3397
|
], Job.prototype, "location", 2);
|
|
3339
3398
|
__decorateClass([
|
|
3340
|
-
|
|
3399
|
+
Column26({
|
|
3341
3400
|
name: "type_of_employment",
|
|
3342
3401
|
type: "enum",
|
|
3343
3402
|
enum: TypeOfEmploymentEnum,
|
|
@@ -3345,19 +3404,19 @@ __decorateClass([
|
|
|
3345
3404
|
})
|
|
3346
3405
|
], Job.prototype, "typeOfEmployment", 2);
|
|
3347
3406
|
__decorateClass([
|
|
3348
|
-
|
|
3407
|
+
Column26({ name: "academic_qualifictaion", type: "varchar", nullable: true })
|
|
3349
3408
|
], Job.prototype, "academicQualification", 2);
|
|
3350
3409
|
__decorateClass([
|
|
3351
|
-
|
|
3410
|
+
Column26({ name: "years_of_experience", type: "varchar", nullable: true })
|
|
3352
3411
|
], Job.prototype, "yearsOfExperience", 2);
|
|
3353
3412
|
__decorateClass([
|
|
3354
|
-
|
|
3413
|
+
Column26({ name: "business_industry", type: "varchar", nullable: true })
|
|
3355
3414
|
], Job.prototype, "businessIndustry", 2);
|
|
3356
3415
|
__decorateClass([
|
|
3357
|
-
|
|
3416
|
+
Column26({ name: "currency", type: "varchar", default: "USD" })
|
|
3358
3417
|
], Job.prototype, "currency", 2);
|
|
3359
3418
|
__decorateClass([
|
|
3360
|
-
|
|
3419
|
+
Column26({
|
|
3361
3420
|
name: "expected_salary_from",
|
|
3362
3421
|
type: "decimal",
|
|
3363
3422
|
precision: 10,
|
|
@@ -3366,7 +3425,7 @@ __decorateClass([
|
|
|
3366
3425
|
})
|
|
3367
3426
|
], Job.prototype, "expectedSalaryFrom", 2);
|
|
3368
3427
|
__decorateClass([
|
|
3369
|
-
|
|
3428
|
+
Column26({
|
|
3370
3429
|
name: "expected_salary_to",
|
|
3371
3430
|
type: "decimal",
|
|
3372
3431
|
precision: 10,
|
|
@@ -3375,16 +3434,16 @@ __decorateClass([
|
|
|
3375
3434
|
})
|
|
3376
3435
|
], Job.prototype, "expectedSalaryTo", 2);
|
|
3377
3436
|
__decorateClass([
|
|
3378
|
-
|
|
3437
|
+
Column26({ name: "tentative_start_date", type: "date", nullable: true })
|
|
3379
3438
|
], Job.prototype, "tentativeStartDate", 2);
|
|
3380
3439
|
__decorateClass([
|
|
3381
|
-
|
|
3440
|
+
Column26({ name: "tentative_end_date", type: "date", nullable: true })
|
|
3382
3441
|
], Job.prototype, "tentativeEndDate", 2);
|
|
3383
3442
|
__decorateClass([
|
|
3384
|
-
|
|
3443
|
+
Column26({ name: "duration", type: "varchar", nullable: true })
|
|
3385
3444
|
], Job.prototype, "duration", 2);
|
|
3386
3445
|
__decorateClass([
|
|
3387
|
-
|
|
3446
|
+
Column26({
|
|
3388
3447
|
name: "duration_type",
|
|
3389
3448
|
type: "enum",
|
|
3390
3449
|
enum: DurationTypeEnum,
|
|
@@ -3392,13 +3451,13 @@ __decorateClass([
|
|
|
3392
3451
|
})
|
|
3393
3452
|
], Job.prototype, "durationType", 2);
|
|
3394
3453
|
__decorateClass([
|
|
3395
|
-
|
|
3454
|
+
Column26({ name: "description", type: "varchar", nullable: true })
|
|
3396
3455
|
], Job.prototype, "description", 2);
|
|
3397
3456
|
__decorateClass([
|
|
3398
|
-
|
|
3457
|
+
Column26({ name: "additional_comment", type: "varchar", nullable: true })
|
|
3399
3458
|
], Job.prototype, "additionalComment", 2);
|
|
3400
3459
|
__decorateClass([
|
|
3401
|
-
|
|
3460
|
+
Column26({
|
|
3402
3461
|
name: "onboarding_tat",
|
|
3403
3462
|
type: "varchar",
|
|
3404
3463
|
length: 50,
|
|
@@ -3406,14 +3465,14 @@ __decorateClass([
|
|
|
3406
3465
|
})
|
|
3407
3466
|
], Job.prototype, "onboardingTat", 2);
|
|
3408
3467
|
__decorateClass([
|
|
3409
|
-
|
|
3468
|
+
Column26({
|
|
3410
3469
|
name: "candidate_communication_skills",
|
|
3411
3470
|
type: "varchar",
|
|
3412
3471
|
nullable: true
|
|
3413
3472
|
})
|
|
3414
3473
|
], Job.prototype, "candidateCommunicationSkills", 2);
|
|
3415
3474
|
__decorateClass([
|
|
3416
|
-
|
|
3475
|
+
Column26({
|
|
3417
3476
|
name: "step_completed",
|
|
3418
3477
|
type: "enum",
|
|
3419
3478
|
enum: Step,
|
|
@@ -3421,7 +3480,7 @@ __decorateClass([
|
|
|
3421
3480
|
})
|
|
3422
3481
|
], Job.prototype, "stepCompleted", 2);
|
|
3423
3482
|
__decorateClass([
|
|
3424
|
-
|
|
3483
|
+
Column26({
|
|
3425
3484
|
name: "status",
|
|
3426
3485
|
type: "enum",
|
|
3427
3486
|
enum: JobStatusEnum,
|
|
@@ -3429,16 +3488,16 @@ __decorateClass([
|
|
|
3429
3488
|
})
|
|
3430
3489
|
], Job.prototype, "status", 2);
|
|
3431
3490
|
__decorateClass([
|
|
3432
|
-
|
|
3491
|
+
Column26({ name: "viewed_count", type: "integer", default: 0 })
|
|
3433
3492
|
], Job.prototype, "viewedCount", 2);
|
|
3434
3493
|
__decorateClass([
|
|
3435
|
-
|
|
3494
|
+
Column26({ name: "application_count", type: "integer", default: 0 })
|
|
3436
3495
|
], Job.prototype, "applicationCount", 2);
|
|
3437
3496
|
__decorateClass([
|
|
3438
|
-
|
|
3497
|
+
Column26({ name: "is_contract_signed", type: "boolean", default: false })
|
|
3439
3498
|
], Job.prototype, "isContractSigned", 2);
|
|
3440
3499
|
__decorateClass([
|
|
3441
|
-
|
|
3500
|
+
Column26({ name: "is_interview_created", type: "boolean", default: false })
|
|
3442
3501
|
], Job.prototype, "isInterviewCreated", 2);
|
|
3443
3502
|
__decorateClass([
|
|
3444
3503
|
OneToMany10(() => JobSkill, (jobSkill) => jobSkill.job, { cascade: true })
|
|
@@ -3490,16 +3549,16 @@ __decorateClass([
|
|
|
3490
3549
|
)
|
|
3491
3550
|
], Job.prototype, "timesheetLine", 2);
|
|
3492
3551
|
Job = __decorateClass([
|
|
3493
|
-
|
|
3552
|
+
Entity25("jobs")
|
|
3494
3553
|
], Job);
|
|
3495
3554
|
|
|
3496
3555
|
// src/entities/bank-details.entity.ts
|
|
3497
3556
|
import {
|
|
3498
|
-
Entity as
|
|
3499
|
-
Column as
|
|
3500
|
-
Index as
|
|
3501
|
-
ManyToOne as
|
|
3502
|
-
JoinColumn as
|
|
3557
|
+
Entity as Entity26,
|
|
3558
|
+
Column as Column27,
|
|
3559
|
+
Index as Index20,
|
|
3560
|
+
ManyToOne as ManyToOne25,
|
|
3561
|
+
JoinColumn as JoinColumn25
|
|
3503
3562
|
} from "typeorm";
|
|
3504
3563
|
var BankAccountTypeEnum = /* @__PURE__ */ ((BankAccountTypeEnum2) => {
|
|
3505
3564
|
BankAccountTypeEnum2["PRIMARY"] = "PRIMARY";
|
|
@@ -3515,48 +3574,48 @@ var BankDetail = class extends BaseEntity {
|
|
|
3515
3574
|
};
|
|
3516
3575
|
// individual index to find bank details by user
|
|
3517
3576
|
__decorateClass([
|
|
3518
|
-
|
|
3519
|
-
|
|
3577
|
+
Column27({ name: "user_id", type: "integer", nullable: true }),
|
|
3578
|
+
Index20()
|
|
3520
3579
|
], BankDetail.prototype, "userId", 2);
|
|
3521
3580
|
__decorateClass([
|
|
3522
|
-
|
|
3523
|
-
|
|
3581
|
+
ManyToOne25(() => User, (user) => user.bankDetail),
|
|
3582
|
+
JoinColumn25({ name: "user_id" })
|
|
3524
3583
|
], BankDetail.prototype, "user", 2);
|
|
3525
3584
|
__decorateClass([
|
|
3526
|
-
|
|
3585
|
+
Column27({ name: "name", type: "varchar", nullable: true })
|
|
3527
3586
|
], BankDetail.prototype, "name", 2);
|
|
3528
3587
|
__decorateClass([
|
|
3529
|
-
|
|
3588
|
+
Column27({ name: "mobile", type: "varchar", unique: true, nullable: true })
|
|
3530
3589
|
], BankDetail.prototype, "mobile", 2);
|
|
3531
3590
|
__decorateClass([
|
|
3532
|
-
|
|
3591
|
+
Column27({ name: "email", type: "varchar", unique: true })
|
|
3533
3592
|
], BankDetail.prototype, "email", 2);
|
|
3534
3593
|
__decorateClass([
|
|
3535
|
-
|
|
3594
|
+
Column27({ name: "address", type: "varchar", nullable: true })
|
|
3536
3595
|
], BankDetail.prototype, "address", 2);
|
|
3537
3596
|
__decorateClass([
|
|
3538
|
-
|
|
3597
|
+
Column27({ name: "account_number", type: "varchar", unique: true, nullable: true })
|
|
3539
3598
|
], BankDetail.prototype, "accountNumber", 2);
|
|
3540
3599
|
__decorateClass([
|
|
3541
|
-
|
|
3600
|
+
Column27({ name: "bank_name", type: "varchar", nullable: true })
|
|
3542
3601
|
], BankDetail.prototype, "bankName", 2);
|
|
3543
3602
|
__decorateClass([
|
|
3544
|
-
|
|
3603
|
+
Column27({ name: "ifsc_code", type: "varchar", nullable: true })
|
|
3545
3604
|
], BankDetail.prototype, "ifscCode", 2);
|
|
3546
3605
|
__decorateClass([
|
|
3547
|
-
|
|
3606
|
+
Column27({ name: "branch_name", type: "varchar", nullable: true })
|
|
3548
3607
|
], BankDetail.prototype, "branchName", 2);
|
|
3549
3608
|
__decorateClass([
|
|
3550
|
-
|
|
3609
|
+
Column27({ name: "routing_no", type: "varchar", nullable: true })
|
|
3551
3610
|
], BankDetail.prototype, "routingNo", 2);
|
|
3552
3611
|
__decorateClass([
|
|
3553
|
-
|
|
3612
|
+
Column27({ name: "aba_no", type: "varchar", nullable: true })
|
|
3554
3613
|
], BankDetail.prototype, "abaNumber", 2);
|
|
3555
3614
|
__decorateClass([
|
|
3556
|
-
|
|
3615
|
+
Column27({ name: "iban", type: "varchar", nullable: true })
|
|
3557
3616
|
], BankDetail.prototype, "iban", 2);
|
|
3558
3617
|
__decorateClass([
|
|
3559
|
-
|
|
3618
|
+
Column27({
|
|
3560
3619
|
name: "account_type",
|
|
3561
3620
|
type: "enum",
|
|
3562
3621
|
enum: BankAccountTypeEnum,
|
|
@@ -3564,7 +3623,7 @@ __decorateClass([
|
|
|
3564
3623
|
})
|
|
3565
3624
|
], BankDetail.prototype, "accountType", 2);
|
|
3566
3625
|
__decorateClass([
|
|
3567
|
-
|
|
3626
|
+
Column27({
|
|
3568
3627
|
name: "account_scope",
|
|
3569
3628
|
type: "enum",
|
|
3570
3629
|
enum: BankAccountScopeEnum,
|
|
@@ -3572,263 +3631,263 @@ __decorateClass([
|
|
|
3572
3631
|
})
|
|
3573
3632
|
], BankDetail.prototype, "accountScope", 2);
|
|
3574
3633
|
BankDetail = __decorateClass([
|
|
3575
|
-
|
|
3634
|
+
Entity26("bank_details")
|
|
3576
3635
|
], BankDetail);
|
|
3577
3636
|
|
|
3578
3637
|
// src/entities/system-preference.entity.ts
|
|
3579
3638
|
import {
|
|
3580
|
-
Entity as
|
|
3581
|
-
Column as
|
|
3582
|
-
Index as
|
|
3583
|
-
ManyToOne as
|
|
3584
|
-
JoinColumn as
|
|
3639
|
+
Entity as Entity27,
|
|
3640
|
+
Column as Column28,
|
|
3641
|
+
Index as Index21,
|
|
3642
|
+
ManyToOne as ManyToOne26,
|
|
3643
|
+
JoinColumn as JoinColumn26
|
|
3585
3644
|
} from "typeorm";
|
|
3586
3645
|
var SystemPreference = class extends BaseEntity {
|
|
3587
3646
|
};
|
|
3588
3647
|
// individual index to find system preference by user
|
|
3589
3648
|
__decorateClass([
|
|
3590
|
-
|
|
3591
|
-
|
|
3649
|
+
Column28({ name: "user_id", type: "integer", nullable: true }),
|
|
3650
|
+
Index21()
|
|
3592
3651
|
], SystemPreference.prototype, "userId", 2);
|
|
3593
3652
|
__decorateClass([
|
|
3594
|
-
|
|
3595
|
-
|
|
3653
|
+
ManyToOne26(() => User, (user) => user.systemPreference),
|
|
3654
|
+
JoinColumn26({ name: "user_id" })
|
|
3596
3655
|
], SystemPreference.prototype, "user", 2);
|
|
3597
3656
|
__decorateClass([
|
|
3598
|
-
|
|
3657
|
+
Column28({ name: "key", type: "varchar", nullable: false })
|
|
3599
3658
|
], SystemPreference.prototype, "key", 2);
|
|
3600
3659
|
__decorateClass([
|
|
3601
|
-
|
|
3660
|
+
Column28({ name: "value", type: "boolean", default: false })
|
|
3602
3661
|
], SystemPreference.prototype, "value", 2);
|
|
3603
3662
|
SystemPreference = __decorateClass([
|
|
3604
|
-
|
|
3663
|
+
Entity27("system_preferences")
|
|
3605
3664
|
], SystemPreference);
|
|
3606
3665
|
|
|
3607
3666
|
// src/entities/freelancer-experience.entity.ts
|
|
3608
3667
|
import {
|
|
3609
|
-
Entity as
|
|
3610
|
-
Column as
|
|
3611
|
-
Index as
|
|
3612
|
-
ManyToOne as
|
|
3613
|
-
JoinColumn as
|
|
3668
|
+
Entity as Entity28,
|
|
3669
|
+
Column as Column29,
|
|
3670
|
+
Index as Index22,
|
|
3671
|
+
ManyToOne as ManyToOne27,
|
|
3672
|
+
JoinColumn as JoinColumn27
|
|
3614
3673
|
} from "typeorm";
|
|
3615
3674
|
var FreelancerExperience = class extends BaseEntity {
|
|
3616
3675
|
};
|
|
3617
3676
|
// individual index to find experence by user
|
|
3618
3677
|
__decorateClass([
|
|
3619
|
-
|
|
3620
|
-
|
|
3678
|
+
Column29({ name: "user_id", type: "integer", nullable: true }),
|
|
3679
|
+
Index22()
|
|
3621
3680
|
], FreelancerExperience.prototype, "userId", 2);
|
|
3622
3681
|
__decorateClass([
|
|
3623
|
-
|
|
3624
|
-
|
|
3682
|
+
ManyToOne27(() => User, (user) => user.freelancerExperience),
|
|
3683
|
+
JoinColumn27({ name: "user_id" })
|
|
3625
3684
|
], FreelancerExperience.prototype, "user", 2);
|
|
3626
3685
|
__decorateClass([
|
|
3627
|
-
|
|
3686
|
+
Column29({ name: "company_name", type: "varchar", nullable: true })
|
|
3628
3687
|
], FreelancerExperience.prototype, "companyName", 2);
|
|
3629
3688
|
__decorateClass([
|
|
3630
|
-
|
|
3689
|
+
Column29({ name: "designation", type: "varchar", nullable: true })
|
|
3631
3690
|
], FreelancerExperience.prototype, "designation", 2);
|
|
3632
3691
|
__decorateClass([
|
|
3633
|
-
|
|
3692
|
+
Column29({ name: "job_duration", type: "varchar", nullable: true })
|
|
3634
3693
|
], FreelancerExperience.prototype, "jobDuration", 2);
|
|
3635
3694
|
__decorateClass([
|
|
3636
|
-
|
|
3695
|
+
Column29({ name: "description", type: "varchar", nullable: true })
|
|
3637
3696
|
], FreelancerExperience.prototype, "description", 2);
|
|
3638
3697
|
FreelancerExperience = __decorateClass([
|
|
3639
|
-
|
|
3698
|
+
Entity28("freelancer_experiences")
|
|
3640
3699
|
], FreelancerExperience);
|
|
3641
3700
|
|
|
3642
3701
|
// src/entities/freelancer-education.entity.ts
|
|
3643
3702
|
import {
|
|
3644
|
-
Entity as
|
|
3645
|
-
Column as
|
|
3646
|
-
Index as
|
|
3647
|
-
ManyToOne as
|
|
3648
|
-
JoinColumn as
|
|
3703
|
+
Entity as Entity29,
|
|
3704
|
+
Column as Column30,
|
|
3705
|
+
Index as Index23,
|
|
3706
|
+
ManyToOne as ManyToOne28,
|
|
3707
|
+
JoinColumn as JoinColumn28
|
|
3649
3708
|
} from "typeorm";
|
|
3650
3709
|
var FreelancerEducation = class extends BaseEntity {
|
|
3651
3710
|
};
|
|
3652
3711
|
// individual index to find education by user
|
|
3653
3712
|
__decorateClass([
|
|
3654
|
-
|
|
3655
|
-
|
|
3713
|
+
Column30({ name: "user_id", type: "integer", nullable: true }),
|
|
3714
|
+
Index23()
|
|
3656
3715
|
], FreelancerEducation.prototype, "userId", 2);
|
|
3657
3716
|
__decorateClass([
|
|
3658
|
-
|
|
3659
|
-
|
|
3717
|
+
ManyToOne28(() => User, (user) => user.freelancerEducation),
|
|
3718
|
+
JoinColumn28({ name: "user_id" })
|
|
3660
3719
|
], FreelancerEducation.prototype, "user", 2);
|
|
3661
3720
|
__decorateClass([
|
|
3662
|
-
|
|
3721
|
+
Column30({ name: "degree", type: "varchar", nullable: true })
|
|
3663
3722
|
], FreelancerEducation.prototype, "degree", 2);
|
|
3664
3723
|
__decorateClass([
|
|
3665
|
-
|
|
3724
|
+
Column30({ name: "university", type: "varchar", nullable: true })
|
|
3666
3725
|
], FreelancerEducation.prototype, "university", 2);
|
|
3667
3726
|
__decorateClass([
|
|
3668
|
-
|
|
3727
|
+
Column30({ name: "year_of_graduation", type: "varchar", nullable: true })
|
|
3669
3728
|
], FreelancerEducation.prototype, "yearOfGraduation", 2);
|
|
3670
3729
|
FreelancerEducation = __decorateClass([
|
|
3671
|
-
|
|
3730
|
+
Entity29("freelancer_educations")
|
|
3672
3731
|
], FreelancerEducation);
|
|
3673
3732
|
|
|
3674
3733
|
// src/entities/freelancer-project.entity.ts
|
|
3675
3734
|
import {
|
|
3676
|
-
Entity as
|
|
3677
|
-
Column as
|
|
3678
|
-
Index as
|
|
3679
|
-
ManyToOne as
|
|
3680
|
-
JoinColumn as
|
|
3735
|
+
Entity as Entity30,
|
|
3736
|
+
Column as Column31,
|
|
3737
|
+
Index as Index24,
|
|
3738
|
+
ManyToOne as ManyToOne29,
|
|
3739
|
+
JoinColumn as JoinColumn29
|
|
3681
3740
|
} from "typeorm";
|
|
3682
3741
|
var FreelancerProject = class extends BaseEntity {
|
|
3683
3742
|
};
|
|
3684
3743
|
// individual index to find project by user
|
|
3685
3744
|
__decorateClass([
|
|
3686
|
-
|
|
3687
|
-
|
|
3745
|
+
Column31({ name: "user_id", type: "integer", nullable: true }),
|
|
3746
|
+
Index24()
|
|
3688
3747
|
], FreelancerProject.prototype, "userId", 2);
|
|
3689
3748
|
__decorateClass([
|
|
3690
|
-
|
|
3691
|
-
|
|
3749
|
+
ManyToOne29(() => User, (user) => user.freelancerProject),
|
|
3750
|
+
JoinColumn29({ name: "user_id" })
|
|
3692
3751
|
], FreelancerProject.prototype, "user", 2);
|
|
3693
3752
|
__decorateClass([
|
|
3694
|
-
|
|
3753
|
+
Column31({ name: "project_name", type: "varchar", nullable: true })
|
|
3695
3754
|
], FreelancerProject.prototype, "projectName", 2);
|
|
3696
3755
|
__decorateClass([
|
|
3697
|
-
|
|
3756
|
+
Column31({ name: "start_date", type: "date", nullable: true })
|
|
3698
3757
|
], FreelancerProject.prototype, "startDate", 2);
|
|
3699
3758
|
__decorateClass([
|
|
3700
|
-
|
|
3759
|
+
Column31({ name: "end_date", type: "date", nullable: true })
|
|
3701
3760
|
], FreelancerProject.prototype, "endDate", 2);
|
|
3702
3761
|
__decorateClass([
|
|
3703
|
-
|
|
3762
|
+
Column31({ name: "client_name", type: "varchar", nullable: true })
|
|
3704
3763
|
], FreelancerProject.prototype, "clientName", 2);
|
|
3705
3764
|
__decorateClass([
|
|
3706
|
-
|
|
3765
|
+
Column31({ name: "git_link", type: "varchar", nullable: true })
|
|
3707
3766
|
], FreelancerProject.prototype, "gitLink", 2);
|
|
3708
3767
|
__decorateClass([
|
|
3709
|
-
|
|
3768
|
+
Column31({ name: "description", type: "varchar", nullable: true })
|
|
3710
3769
|
], FreelancerProject.prototype, "description", 2);
|
|
3711
3770
|
FreelancerProject = __decorateClass([
|
|
3712
|
-
|
|
3771
|
+
Entity30("freelancer_projects")
|
|
3713
3772
|
], FreelancerProject);
|
|
3714
3773
|
|
|
3715
3774
|
// src/entities/freelancer-casestudy.entity.ts
|
|
3716
3775
|
import {
|
|
3717
|
-
Entity as
|
|
3718
|
-
Column as
|
|
3719
|
-
Index as
|
|
3720
|
-
ManyToOne as
|
|
3721
|
-
JoinColumn as
|
|
3776
|
+
Entity as Entity31,
|
|
3777
|
+
Column as Column32,
|
|
3778
|
+
Index as Index25,
|
|
3779
|
+
ManyToOne as ManyToOne30,
|
|
3780
|
+
JoinColumn as JoinColumn30
|
|
3722
3781
|
} from "typeorm";
|
|
3723
3782
|
var FreelancerCaseStudy = class extends BaseEntity {
|
|
3724
3783
|
};
|
|
3725
3784
|
// individual index to find case study by user
|
|
3726
3785
|
__decorateClass([
|
|
3727
|
-
|
|
3728
|
-
|
|
3786
|
+
Column32({ name: "user_id", type: "integer", nullable: true }),
|
|
3787
|
+
Index25()
|
|
3729
3788
|
], FreelancerCaseStudy.prototype, "userId", 2);
|
|
3730
3789
|
__decorateClass([
|
|
3731
|
-
|
|
3732
|
-
|
|
3790
|
+
ManyToOne30(() => User, (user) => user.freelancerCaseStudy),
|
|
3791
|
+
JoinColumn30({ name: "user_id" })
|
|
3733
3792
|
], FreelancerCaseStudy.prototype, "user", 2);
|
|
3734
3793
|
__decorateClass([
|
|
3735
|
-
|
|
3794
|
+
Column32({ name: "project_name", type: "varchar", nullable: true })
|
|
3736
3795
|
], FreelancerCaseStudy.prototype, "projectName", 2);
|
|
3737
3796
|
__decorateClass([
|
|
3738
|
-
|
|
3797
|
+
Column32({ name: "case_study_link", type: "varchar", nullable: true })
|
|
3739
3798
|
], FreelancerCaseStudy.prototype, "caseStudyLink", 2);
|
|
3740
3799
|
__decorateClass([
|
|
3741
|
-
|
|
3800
|
+
Column32({ name: "description", type: "varchar", nullable: true })
|
|
3742
3801
|
], FreelancerCaseStudy.prototype, "description", 2);
|
|
3743
3802
|
FreelancerCaseStudy = __decorateClass([
|
|
3744
|
-
|
|
3803
|
+
Entity31("freelancer_case_studies")
|
|
3745
3804
|
], FreelancerCaseStudy);
|
|
3746
3805
|
|
|
3747
3806
|
// src/entities/freelancer-skill.entity.ts
|
|
3748
3807
|
import {
|
|
3749
|
-
Entity as
|
|
3750
|
-
Column as
|
|
3751
|
-
Index as
|
|
3752
|
-
ManyToOne as
|
|
3753
|
-
JoinColumn as
|
|
3808
|
+
Entity as Entity32,
|
|
3809
|
+
Column as Column33,
|
|
3810
|
+
Index as Index26,
|
|
3811
|
+
ManyToOne as ManyToOne31,
|
|
3812
|
+
JoinColumn as JoinColumn31
|
|
3754
3813
|
} from "typeorm";
|
|
3755
3814
|
var FreelancerSkill = class extends BaseEntity {
|
|
3756
3815
|
};
|
|
3757
3816
|
// individual index to find core skills by user
|
|
3758
3817
|
__decorateClass([
|
|
3759
|
-
|
|
3760
|
-
|
|
3818
|
+
Column33({ name: "user_id", type: "integer", nullable: true }),
|
|
3819
|
+
Index26()
|
|
3761
3820
|
], FreelancerSkill.prototype, "userId", 2);
|
|
3762
3821
|
__decorateClass([
|
|
3763
|
-
|
|
3764
|
-
|
|
3822
|
+
ManyToOne31(() => User, (user) => user.freelancerSkills),
|
|
3823
|
+
JoinColumn31({ name: "user_id" })
|
|
3765
3824
|
], FreelancerSkill.prototype, "user", 2);
|
|
3766
3825
|
__decorateClass([
|
|
3767
|
-
|
|
3826
|
+
Column33({ name: "skill_name", type: "varchar", nullable: true })
|
|
3768
3827
|
], FreelancerSkill.prototype, "skillName", 2);
|
|
3769
3828
|
FreelancerSkill = __decorateClass([
|
|
3770
|
-
|
|
3829
|
+
Entity32("freelancer_skills")
|
|
3771
3830
|
], FreelancerSkill);
|
|
3772
3831
|
|
|
3773
3832
|
// src/entities/freelancer-tool.entity.ts
|
|
3774
3833
|
import {
|
|
3775
|
-
Entity as
|
|
3776
|
-
Column as
|
|
3777
|
-
Index as
|
|
3778
|
-
ManyToOne as
|
|
3779
|
-
JoinColumn as
|
|
3834
|
+
Entity as Entity33,
|
|
3835
|
+
Column as Column34,
|
|
3836
|
+
Index as Index27,
|
|
3837
|
+
ManyToOne as ManyToOne32,
|
|
3838
|
+
JoinColumn as JoinColumn32
|
|
3780
3839
|
} from "typeorm";
|
|
3781
3840
|
var FreelancerTool = class extends BaseEntity {
|
|
3782
3841
|
};
|
|
3783
3842
|
// individual index to find tool by user
|
|
3784
3843
|
__decorateClass([
|
|
3785
|
-
|
|
3786
|
-
|
|
3844
|
+
Column34({ name: "user_id", type: "integer", nullable: true }),
|
|
3845
|
+
Index27()
|
|
3787
3846
|
], FreelancerTool.prototype, "userId", 2);
|
|
3788
3847
|
__decorateClass([
|
|
3789
|
-
|
|
3790
|
-
|
|
3848
|
+
ManyToOne32(() => User, (user) => user.freelancerTool),
|
|
3849
|
+
JoinColumn32({ name: "user_id" })
|
|
3791
3850
|
], FreelancerTool.prototype, "user", 2);
|
|
3792
3851
|
__decorateClass([
|
|
3793
|
-
|
|
3852
|
+
Column34({ name: "tool_name", type: "varchar", nullable: true })
|
|
3794
3853
|
], FreelancerTool.prototype, "toolName", 2);
|
|
3795
3854
|
FreelancerTool = __decorateClass([
|
|
3796
|
-
|
|
3855
|
+
Entity33("freelancer_tools")
|
|
3797
3856
|
], FreelancerTool);
|
|
3798
3857
|
|
|
3799
3858
|
// src/entities/freelancer-framework.entity.ts
|
|
3800
3859
|
import {
|
|
3801
|
-
Entity as
|
|
3802
|
-
Column as
|
|
3803
|
-
Index as
|
|
3804
|
-
ManyToOne as
|
|
3805
|
-
JoinColumn as
|
|
3860
|
+
Entity as Entity34,
|
|
3861
|
+
Column as Column35,
|
|
3862
|
+
Index as Index28,
|
|
3863
|
+
ManyToOne as ManyToOne33,
|
|
3864
|
+
JoinColumn as JoinColumn33
|
|
3806
3865
|
} from "typeorm";
|
|
3807
3866
|
var FreelancerFramework = class extends BaseEntity {
|
|
3808
3867
|
};
|
|
3809
3868
|
// individual index to find framework by user
|
|
3810
3869
|
__decorateClass([
|
|
3811
|
-
|
|
3812
|
-
|
|
3870
|
+
Column35({ name: "user_id", type: "integer", nullable: true }),
|
|
3871
|
+
Index28()
|
|
3813
3872
|
], FreelancerFramework.prototype, "userId", 2);
|
|
3814
3873
|
__decorateClass([
|
|
3815
|
-
|
|
3816
|
-
|
|
3874
|
+
ManyToOne33(() => User, (user) => user.freelancerFramework),
|
|
3875
|
+
JoinColumn33({ name: "user_id" })
|
|
3817
3876
|
], FreelancerFramework.prototype, "user", 2);
|
|
3818
3877
|
__decorateClass([
|
|
3819
|
-
|
|
3878
|
+
Column35({ name: "framework_name", type: "varchar", nullable: true })
|
|
3820
3879
|
], FreelancerFramework.prototype, "frameworkName", 2);
|
|
3821
3880
|
FreelancerFramework = __decorateClass([
|
|
3822
|
-
|
|
3881
|
+
Entity34("freelancer_frameworks")
|
|
3823
3882
|
], FreelancerFramework);
|
|
3824
3883
|
|
|
3825
3884
|
// src/entities/freelancer-assessment.entity.ts
|
|
3826
3885
|
import {
|
|
3827
|
-
Entity as
|
|
3828
|
-
Column as
|
|
3829
|
-
Index as
|
|
3830
|
-
ManyToOne as
|
|
3831
|
-
JoinColumn as
|
|
3886
|
+
Entity as Entity35,
|
|
3887
|
+
Column as Column36,
|
|
3888
|
+
Index as Index29,
|
|
3889
|
+
ManyToOne as ManyToOne34,
|
|
3890
|
+
JoinColumn as JoinColumn34
|
|
3832
3891
|
} from "typeorm";
|
|
3833
3892
|
var AssessmentStatusEnum = /* @__PURE__ */ ((AssessmentStatusEnum2) => {
|
|
3834
3893
|
AssessmentStatusEnum2["NOT_ATTEMPTED"] = "NOT_ATTEMPTED";
|
|
@@ -3845,30 +3904,30 @@ var AssessmentStatusEnum = /* @__PURE__ */ ((AssessmentStatusEnum2) => {
|
|
|
3845
3904
|
var FreelancerAssessment = class extends BaseEntity {
|
|
3846
3905
|
};
|
|
3847
3906
|
__decorateClass([
|
|
3848
|
-
|
|
3849
|
-
|
|
3907
|
+
Column36({ name: "user_id", type: "integer", nullable: true }),
|
|
3908
|
+
Index29()
|
|
3850
3909
|
], FreelancerAssessment.prototype, "userId", 2);
|
|
3851
3910
|
__decorateClass([
|
|
3852
|
-
|
|
3853
|
-
|
|
3911
|
+
ManyToOne34(() => User, (user) => user.assessments),
|
|
3912
|
+
JoinColumn34({ name: "user_id" })
|
|
3854
3913
|
], FreelancerAssessment.prototype, "user", 2);
|
|
3855
3914
|
__decorateClass([
|
|
3856
|
-
|
|
3915
|
+
Column36({ name: "interview_id", type: "varchar", nullable: true })
|
|
3857
3916
|
], FreelancerAssessment.prototype, "interviewId", 2);
|
|
3858
3917
|
__decorateClass([
|
|
3859
|
-
|
|
3918
|
+
Column36({ name: "interview_link", type: "text", nullable: true })
|
|
3860
3919
|
], FreelancerAssessment.prototype, "interviewLink", 2);
|
|
3861
3920
|
__decorateClass([
|
|
3862
|
-
|
|
3921
|
+
Column36({ name: "recording_link", type: "text", nullable: true })
|
|
3863
3922
|
], FreelancerAssessment.prototype, "recordingLink", 2);
|
|
3864
3923
|
__decorateClass([
|
|
3865
|
-
|
|
3924
|
+
Column36({ name: "iframe_response", type: "jsonb", nullable: true })
|
|
3866
3925
|
], FreelancerAssessment.prototype, "iframeResponse", 2);
|
|
3867
3926
|
__decorateClass([
|
|
3868
|
-
|
|
3927
|
+
Column36({ name: "interview_summary", type: "jsonb", nullable: true })
|
|
3869
3928
|
], FreelancerAssessment.prototype, "interviewSummary", 2);
|
|
3870
3929
|
__decorateClass([
|
|
3871
|
-
|
|
3930
|
+
Column36({
|
|
3872
3931
|
name: "status",
|
|
3873
3932
|
type: "enum",
|
|
3874
3933
|
enum: AssessmentStatusEnum,
|
|
@@ -3876,11 +3935,11 @@ __decorateClass([
|
|
|
3876
3935
|
})
|
|
3877
3936
|
], FreelancerAssessment.prototype, "status", 2);
|
|
3878
3937
|
FreelancerAssessment = __decorateClass([
|
|
3879
|
-
|
|
3938
|
+
Entity35("freelancer_assessments")
|
|
3880
3939
|
], FreelancerAssessment);
|
|
3881
3940
|
|
|
3882
3941
|
// src/entities/freelancer-declaration.entity.ts
|
|
3883
|
-
import { Entity as
|
|
3942
|
+
import { Entity as Entity36, Column as Column37, Index as Index30, ManyToOne as ManyToOne35, JoinColumn as JoinColumn35 } from "typeorm";
|
|
3884
3943
|
var DocumentType = /* @__PURE__ */ ((DocumentType2) => {
|
|
3885
3944
|
DocumentType2["AADHAAR"] = "AADHAAR_CARD";
|
|
3886
3945
|
DocumentType2["PASSPORT"] = "PASSPORT";
|
|
@@ -3892,15 +3951,15 @@ var FreelancerDeclaration = class extends BaseEntity {
|
|
|
3892
3951
|
};
|
|
3893
3952
|
// individual index to find declaration by user
|
|
3894
3953
|
__decorateClass([
|
|
3895
|
-
|
|
3896
|
-
|
|
3954
|
+
Column37({ name: "user_id", type: "integer", nullable: true }),
|
|
3955
|
+
Index30()
|
|
3897
3956
|
], FreelancerDeclaration.prototype, "userId", 2);
|
|
3898
3957
|
__decorateClass([
|
|
3899
|
-
|
|
3900
|
-
|
|
3958
|
+
ManyToOne35(() => User, (user) => user.freelancerDeclaration),
|
|
3959
|
+
JoinColumn35({ name: "user_id" })
|
|
3901
3960
|
], FreelancerDeclaration.prototype, "user", 2);
|
|
3902
3961
|
__decorateClass([
|
|
3903
|
-
|
|
3962
|
+
Column37({
|
|
3904
3963
|
name: "document_type",
|
|
3905
3964
|
type: "enum",
|
|
3906
3965
|
enum: DocumentType,
|
|
@@ -3908,175 +3967,175 @@ __decorateClass([
|
|
|
3908
3967
|
})
|
|
3909
3968
|
], FreelancerDeclaration.prototype, "documentType", 2);
|
|
3910
3969
|
__decorateClass([
|
|
3911
|
-
|
|
3970
|
+
Column37({ name: "front_document_url", type: "varchar", nullable: true })
|
|
3912
3971
|
], FreelancerDeclaration.prototype, "frontDocumentUrl", 2);
|
|
3913
3972
|
__decorateClass([
|
|
3914
|
-
|
|
3973
|
+
Column37({ name: "back_document_url", type: "varchar", nullable: true })
|
|
3915
3974
|
], FreelancerDeclaration.prototype, "backDocumentUrl", 2);
|
|
3916
3975
|
__decorateClass([
|
|
3917
|
-
|
|
3976
|
+
Column37({ name: "declaration_accepted", type: "boolean", default: false })
|
|
3918
3977
|
], FreelancerDeclaration.prototype, "declarationAccepted", 2);
|
|
3919
3978
|
__decorateClass([
|
|
3920
|
-
|
|
3979
|
+
Column37({ name: "digital_signature_url", type: "varchar", nullable: true })
|
|
3921
3980
|
], FreelancerDeclaration.prototype, "digitalSignatureUrl", 2);
|
|
3922
3981
|
FreelancerDeclaration = __decorateClass([
|
|
3923
|
-
|
|
3982
|
+
Entity36("freelancer_declaration")
|
|
3924
3983
|
], FreelancerDeclaration);
|
|
3925
3984
|
|
|
3926
3985
|
// src/entities/company-members-roles.entity.ts
|
|
3927
3986
|
import {
|
|
3928
|
-
Column as
|
|
3929
|
-
Entity as
|
|
3930
|
-
ManyToOne as
|
|
3931
|
-
JoinColumn as
|
|
3932
|
-
Index as
|
|
3987
|
+
Column as Column41,
|
|
3988
|
+
Entity as Entity40,
|
|
3989
|
+
ManyToOne as ManyToOne38,
|
|
3990
|
+
JoinColumn as JoinColumn38,
|
|
3991
|
+
Index as Index34
|
|
3933
3992
|
} from "typeorm";
|
|
3934
3993
|
|
|
3935
3994
|
// src/entities/company-role.entity.ts
|
|
3936
3995
|
import {
|
|
3937
|
-
Column as
|
|
3938
|
-
Entity as
|
|
3939
|
-
Index as
|
|
3940
|
-
JoinColumn as
|
|
3941
|
-
ManyToOne as
|
|
3996
|
+
Column as Column40,
|
|
3997
|
+
Entity as Entity39,
|
|
3998
|
+
Index as Index33,
|
|
3999
|
+
JoinColumn as JoinColumn37,
|
|
4000
|
+
ManyToOne as ManyToOne37,
|
|
3942
4001
|
OneToMany as OneToMany12
|
|
3943
4002
|
} from "typeorm";
|
|
3944
4003
|
|
|
3945
4004
|
// src/entities/company-role-permission.entity.ts
|
|
3946
4005
|
import {
|
|
3947
|
-
Column as
|
|
3948
|
-
Entity as
|
|
3949
|
-
ManyToOne as
|
|
3950
|
-
JoinColumn as
|
|
3951
|
-
Index as
|
|
4006
|
+
Column as Column39,
|
|
4007
|
+
Entity as Entity38,
|
|
4008
|
+
ManyToOne as ManyToOne36,
|
|
4009
|
+
JoinColumn as JoinColumn36,
|
|
4010
|
+
Index as Index32
|
|
3952
4011
|
} from "typeorm";
|
|
3953
4012
|
|
|
3954
4013
|
// src/entities/permission.entity.ts
|
|
3955
|
-
import { Column as
|
|
4014
|
+
import { Column as Column38, Entity as Entity37, Index as Index31 } from "typeorm";
|
|
3956
4015
|
var Permission = class extends BaseEntity {
|
|
3957
4016
|
};
|
|
3958
4017
|
__decorateClass([
|
|
3959
|
-
|
|
4018
|
+
Column38({ name: "name", type: "varchar", nullable: true })
|
|
3960
4019
|
], Permission.prototype, "name", 2);
|
|
3961
4020
|
__decorateClass([
|
|
3962
|
-
|
|
3963
|
-
|
|
4021
|
+
Column38({ name: "slug", type: "varchar", nullable: true, unique: true }),
|
|
4022
|
+
Index31()
|
|
3964
4023
|
], Permission.prototype, "slug", 2);
|
|
3965
4024
|
__decorateClass([
|
|
3966
|
-
|
|
4025
|
+
Column38({ name: "description", type: "text", nullable: true })
|
|
3967
4026
|
], Permission.prototype, "description", 2);
|
|
3968
4027
|
__decorateClass([
|
|
3969
|
-
|
|
4028
|
+
Column38({ name: "is_active", type: "boolean", default: true })
|
|
3970
4029
|
], Permission.prototype, "isActive", 2);
|
|
3971
4030
|
Permission = __decorateClass([
|
|
3972
|
-
|
|
4031
|
+
Entity37("permissions")
|
|
3973
4032
|
], Permission);
|
|
3974
4033
|
|
|
3975
4034
|
// src/entities/company-role-permission.entity.ts
|
|
3976
4035
|
var CompanyRolePermission = class extends BaseEntity {
|
|
3977
4036
|
};
|
|
3978
4037
|
__decorateClass([
|
|
3979
|
-
|
|
3980
|
-
|
|
4038
|
+
Column39({ name: "company_role_id", type: "integer", nullable: true }),
|
|
4039
|
+
Index32()
|
|
3981
4040
|
], CompanyRolePermission.prototype, "companyRoleId", 2);
|
|
3982
4041
|
__decorateClass([
|
|
3983
|
-
|
|
4042
|
+
ManyToOne36(() => CompanyRole, (role) => role.rolePermissions, {
|
|
3984
4043
|
onDelete: "CASCADE"
|
|
3985
4044
|
}),
|
|
3986
|
-
|
|
4045
|
+
JoinColumn36({ name: "company_role_id" })
|
|
3987
4046
|
], CompanyRolePermission.prototype, "companyRole", 2);
|
|
3988
4047
|
__decorateClass([
|
|
3989
|
-
|
|
3990
|
-
|
|
4048
|
+
Column39({ name: "permission_id", type: "integer" }),
|
|
4049
|
+
Index32()
|
|
3991
4050
|
], CompanyRolePermission.prototype, "permissionId", 2);
|
|
3992
4051
|
__decorateClass([
|
|
3993
|
-
|
|
3994
|
-
|
|
4052
|
+
ManyToOne36(() => Permission, { onDelete: "CASCADE" }),
|
|
4053
|
+
JoinColumn36({ name: "permission_id" })
|
|
3995
4054
|
], CompanyRolePermission.prototype, "permission", 2);
|
|
3996
4055
|
__decorateClass([
|
|
3997
|
-
|
|
4056
|
+
Column39({ name: "assigned_by", type: "integer", nullable: true })
|
|
3998
4057
|
], CompanyRolePermission.prototype, "assignedBy", 2);
|
|
3999
4058
|
CompanyRolePermission = __decorateClass([
|
|
4000
|
-
|
|
4059
|
+
Entity38("company_role_permissions")
|
|
4001
4060
|
], CompanyRolePermission);
|
|
4002
4061
|
|
|
4003
4062
|
// src/entities/company-role.entity.ts
|
|
4004
4063
|
var CompanyRole = class extends BaseEntity {
|
|
4005
4064
|
};
|
|
4006
4065
|
__decorateClass([
|
|
4007
|
-
|
|
4008
|
-
|
|
4066
|
+
Column40({ name: "user_id", type: "integer", nullable: true }),
|
|
4067
|
+
Index33()
|
|
4009
4068
|
], CompanyRole.prototype, "userId", 2);
|
|
4010
4069
|
__decorateClass([
|
|
4011
|
-
|
|
4012
|
-
|
|
4070
|
+
ManyToOne37(() => User, (user) => user.otps),
|
|
4071
|
+
JoinColumn37({ name: "user_id" })
|
|
4013
4072
|
], CompanyRole.prototype, "user", 2);
|
|
4014
4073
|
__decorateClass([
|
|
4015
|
-
|
|
4074
|
+
Column40({ name: "name", type: "varchar" })
|
|
4016
4075
|
], CompanyRole.prototype, "name", 2);
|
|
4017
4076
|
__decorateClass([
|
|
4018
|
-
|
|
4019
|
-
|
|
4077
|
+
Column40({ name: "slug", type: "varchar", nullable: true, unique: true }),
|
|
4078
|
+
Index33()
|
|
4020
4079
|
], CompanyRole.prototype, "slug", 2);
|
|
4021
4080
|
__decorateClass([
|
|
4022
|
-
|
|
4081
|
+
Column40({ name: "description", type: "text", nullable: true })
|
|
4023
4082
|
], CompanyRole.prototype, "description", 2);
|
|
4024
4083
|
__decorateClass([
|
|
4025
|
-
|
|
4084
|
+
Column40({ name: "is_active", type: "boolean", default: true })
|
|
4026
4085
|
], CompanyRole.prototype, "isActive", 2);
|
|
4027
4086
|
__decorateClass([
|
|
4028
4087
|
OneToMany12(() => CompanyRolePermission, (rp) => rp.companyRole)
|
|
4029
4088
|
], CompanyRole.prototype, "rolePermissions", 2);
|
|
4030
4089
|
CompanyRole = __decorateClass([
|
|
4031
|
-
|
|
4090
|
+
Entity39("company_roles")
|
|
4032
4091
|
], CompanyRole);
|
|
4033
4092
|
|
|
4034
4093
|
// src/entities/company-members-roles.entity.ts
|
|
4035
4094
|
var CompanyMemberRole = class extends BaseEntity {
|
|
4036
4095
|
};
|
|
4037
4096
|
__decorateClass([
|
|
4038
|
-
|
|
4039
|
-
|
|
4097
|
+
Column41({ name: "user_id", type: "integer", nullable: true }),
|
|
4098
|
+
Index34()
|
|
4040
4099
|
], CompanyMemberRole.prototype, "userId", 2);
|
|
4041
4100
|
__decorateClass([
|
|
4042
|
-
|
|
4043
|
-
|
|
4101
|
+
ManyToOne38(() => User),
|
|
4102
|
+
JoinColumn38({ name: "user_id" })
|
|
4044
4103
|
], CompanyMemberRole.prototype, "user", 2);
|
|
4045
4104
|
__decorateClass([
|
|
4046
|
-
|
|
4047
|
-
|
|
4105
|
+
ManyToOne38(() => CompanyRole),
|
|
4106
|
+
JoinColumn38({ name: "company_role_id" })
|
|
4048
4107
|
], CompanyMemberRole.prototype, "role", 2);
|
|
4049
4108
|
__decorateClass([
|
|
4050
|
-
|
|
4051
|
-
|
|
4109
|
+
Column41({ name: "company_role_id", type: "integer", nullable: true }),
|
|
4110
|
+
Index34()
|
|
4052
4111
|
], CompanyMemberRole.prototype, "companyRoleId", 2);
|
|
4053
4112
|
__decorateClass([
|
|
4054
|
-
|
|
4113
|
+
Column41({ name: "assigned_by", type: "integer", nullable: true })
|
|
4055
4114
|
], CompanyMemberRole.prototype, "assignedBy", 2);
|
|
4056
4115
|
CompanyMemberRole = __decorateClass([
|
|
4057
|
-
|
|
4116
|
+
Entity40("company_member_roles")
|
|
4058
4117
|
], CompanyMemberRole);
|
|
4059
4118
|
|
|
4060
4119
|
// src/entities/assessment-answer.entity.ts
|
|
4061
4120
|
import {
|
|
4062
|
-
Entity as
|
|
4063
|
-
Column as
|
|
4064
|
-
ManyToOne as
|
|
4065
|
-
Index as
|
|
4066
|
-
JoinColumn as
|
|
4121
|
+
Entity as Entity43,
|
|
4122
|
+
Column as Column44,
|
|
4123
|
+
ManyToOne as ManyToOne40,
|
|
4124
|
+
Index as Index36,
|
|
4125
|
+
JoinColumn as JoinColumn40
|
|
4067
4126
|
} from "typeorm";
|
|
4068
4127
|
|
|
4069
4128
|
// src/entities/assessment-question.entity.ts
|
|
4070
|
-
import { Entity as
|
|
4129
|
+
import { Entity as Entity42, Column as Column43, OneToMany as OneToMany14 } from "typeorm";
|
|
4071
4130
|
|
|
4072
4131
|
// src/entities/assessment-question-option.entity.ts
|
|
4073
4132
|
import {
|
|
4074
|
-
Entity as
|
|
4075
|
-
Column as
|
|
4133
|
+
Entity as Entity41,
|
|
4134
|
+
Column as Column42,
|
|
4076
4135
|
OneToMany as OneToMany13,
|
|
4077
|
-
ManyToOne as
|
|
4078
|
-
Index as
|
|
4079
|
-
JoinColumn as
|
|
4136
|
+
ManyToOne as ManyToOne39,
|
|
4137
|
+
Index as Index35,
|
|
4138
|
+
JoinColumn as JoinColumn39
|
|
4080
4139
|
} from "typeorm";
|
|
4081
4140
|
var AnswerTypeEnum = /* @__PURE__ */ ((AnswerTypeEnum2) => {
|
|
4082
4141
|
AnswerTypeEnum2["CORRECT"] = "CORRECT";
|
|
@@ -4087,21 +4146,21 @@ var AnswerTypeEnum = /* @__PURE__ */ ((AnswerTypeEnum2) => {
|
|
|
4087
4146
|
var AssessmetQuestionOption = class extends BaseEntity {
|
|
4088
4147
|
};
|
|
4089
4148
|
__decorateClass([
|
|
4090
|
-
|
|
4091
|
-
|
|
4149
|
+
Column42({ name: "question_id", type: "integer", nullable: true }),
|
|
4150
|
+
Index35()
|
|
4092
4151
|
], AssessmetQuestionOption.prototype, "questionId", 2);
|
|
4093
4152
|
__decorateClass([
|
|
4094
|
-
|
|
4153
|
+
ManyToOne39(
|
|
4095
4154
|
() => AssessmetQuestion,
|
|
4096
4155
|
(assessmentQuestion) => assessmentQuestion.options
|
|
4097
4156
|
),
|
|
4098
|
-
|
|
4157
|
+
JoinColumn39({ name: "question_id" })
|
|
4099
4158
|
], AssessmetQuestionOption.prototype, "question", 2);
|
|
4100
4159
|
__decorateClass([
|
|
4101
|
-
|
|
4160
|
+
Column42({ name: "text", type: "varchar", nullable: true })
|
|
4102
4161
|
], AssessmetQuestionOption.prototype, "text", 2);
|
|
4103
4162
|
__decorateClass([
|
|
4104
|
-
|
|
4163
|
+
Column42({
|
|
4105
4164
|
name: "answer_type",
|
|
4106
4165
|
type: "enum",
|
|
4107
4166
|
enum: AnswerTypeEnum,
|
|
@@ -4109,13 +4168,13 @@ __decorateClass([
|
|
|
4109
4168
|
})
|
|
4110
4169
|
], AssessmetQuestionOption.prototype, "answerType", 2);
|
|
4111
4170
|
__decorateClass([
|
|
4112
|
-
|
|
4171
|
+
Column42({ name: "is_active", type: "boolean", default: true })
|
|
4113
4172
|
], AssessmetQuestionOption.prototype, "isActive", 2);
|
|
4114
4173
|
__decorateClass([
|
|
4115
4174
|
OneToMany13(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.option)
|
|
4116
4175
|
], AssessmetQuestionOption.prototype, "selectedOptions", 2);
|
|
4117
4176
|
AssessmetQuestionOption = __decorateClass([
|
|
4118
|
-
|
|
4177
|
+
Entity41("assessment_question_options")
|
|
4119
4178
|
], AssessmetQuestionOption);
|
|
4120
4179
|
|
|
4121
4180
|
// src/entities/assessment-question.entity.ts
|
|
@@ -4127,10 +4186,10 @@ var QuestionForEnum = /* @__PURE__ */ ((QuestionForEnum2) => {
|
|
|
4127
4186
|
var AssessmetQuestion = class extends BaseEntity {
|
|
4128
4187
|
};
|
|
4129
4188
|
__decorateClass([
|
|
4130
|
-
|
|
4189
|
+
Column43({ name: "text", type: "varchar", nullable: true })
|
|
4131
4190
|
], AssessmetQuestion.prototype, "text", 2);
|
|
4132
4191
|
__decorateClass([
|
|
4133
|
-
|
|
4192
|
+
Column43({
|
|
4134
4193
|
name: "question_for",
|
|
4135
4194
|
type: "enum",
|
|
4136
4195
|
enum: QuestionForEnum,
|
|
@@ -4138,7 +4197,7 @@ __decorateClass([
|
|
|
4138
4197
|
})
|
|
4139
4198
|
], AssessmetQuestion.prototype, "questionFor", 2);
|
|
4140
4199
|
__decorateClass([
|
|
4141
|
-
|
|
4200
|
+
Column43({ name: "is_active", type: "boolean", default: true })
|
|
4142
4201
|
], AssessmetQuestion.prototype, "isActive", 2);
|
|
4143
4202
|
__decorateClass([
|
|
4144
4203
|
OneToMany14(() => AssessmetQuestionOption, (assessmentQuestionOption) => assessmentQuestionOption.question)
|
|
@@ -4147,7 +4206,7 @@ __decorateClass([
|
|
|
4147
4206
|
OneToMany14(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.question)
|
|
4148
4207
|
], AssessmetQuestion.prototype, "answers", 2);
|
|
4149
4208
|
AssessmetQuestion = __decorateClass([
|
|
4150
|
-
|
|
4209
|
+
Entity42("assessment_questions")
|
|
4151
4210
|
], AssessmetQuestion);
|
|
4152
4211
|
|
|
4153
4212
|
// src/entities/assessment-answer.entity.ts
|
|
@@ -4160,102 +4219,102 @@ var SelectedAnswerTypeEnum = /* @__PURE__ */ ((SelectedAnswerTypeEnum2) => {
|
|
|
4160
4219
|
var AssessmentAnswer = class extends BaseEntity {
|
|
4161
4220
|
};
|
|
4162
4221
|
__decorateClass([
|
|
4163
|
-
|
|
4164
|
-
|
|
4222
|
+
Column44({ name: "user_id", type: "integer" }),
|
|
4223
|
+
Index36()
|
|
4165
4224
|
], AssessmentAnswer.prototype, "userId", 2);
|
|
4166
4225
|
__decorateClass([
|
|
4167
|
-
|
|
4168
|
-
|
|
4226
|
+
ManyToOne40(() => User, (user) => user.assessmentAnswers),
|
|
4227
|
+
JoinColumn40({ name: "user_id" })
|
|
4169
4228
|
], AssessmentAnswer.prototype, "user", 2);
|
|
4170
4229
|
__decorateClass([
|
|
4171
|
-
|
|
4172
|
-
|
|
4230
|
+
Column44({ name: "question_id", type: "integer" }),
|
|
4231
|
+
Index36()
|
|
4173
4232
|
], AssessmentAnswer.prototype, "questionId", 2);
|
|
4174
4233
|
__decorateClass([
|
|
4175
|
-
|
|
4234
|
+
ManyToOne40(
|
|
4176
4235
|
() => AssessmetQuestion,
|
|
4177
4236
|
(assessmentQuestion) => assessmentQuestion.answers
|
|
4178
4237
|
),
|
|
4179
|
-
|
|
4238
|
+
JoinColumn40({ name: "question_id" })
|
|
4180
4239
|
], AssessmentAnswer.prototype, "question", 2);
|
|
4181
4240
|
__decorateClass([
|
|
4182
|
-
|
|
4183
|
-
|
|
4241
|
+
Column44({ name: "selected_option_id", type: "integer" }),
|
|
4242
|
+
Index36()
|
|
4184
4243
|
], AssessmentAnswer.prototype, "selectedOptionId", 2);
|
|
4185
4244
|
__decorateClass([
|
|
4186
|
-
|
|
4245
|
+
ManyToOne40(
|
|
4187
4246
|
() => AssessmetQuestionOption,
|
|
4188
4247
|
(assessmentQuestionOption) => assessmentQuestionOption.selectedOptions
|
|
4189
4248
|
),
|
|
4190
|
-
|
|
4249
|
+
JoinColumn40({ name: "selected_option_id" })
|
|
4191
4250
|
], AssessmentAnswer.prototype, "option", 2);
|
|
4192
4251
|
__decorateClass([
|
|
4193
|
-
|
|
4252
|
+
Column44({
|
|
4194
4253
|
name: "selected_answer_type",
|
|
4195
4254
|
type: "enum",
|
|
4196
4255
|
enum: SelectedAnswerTypeEnum
|
|
4197
4256
|
})
|
|
4198
4257
|
], AssessmentAnswer.prototype, "selectedAnswerType", 2);
|
|
4199
4258
|
__decorateClass([
|
|
4200
|
-
|
|
4259
|
+
Column44({ name: "score", type: "float" })
|
|
4201
4260
|
], AssessmentAnswer.prototype, "score", 2);
|
|
4202
4261
|
AssessmentAnswer = __decorateClass([
|
|
4203
|
-
|
|
4262
|
+
Entity43("assessment_answers")
|
|
4204
4263
|
], AssessmentAnswer);
|
|
4205
4264
|
|
|
4206
4265
|
// src/entities/company-skill.entity.ts
|
|
4207
|
-
import { Entity as
|
|
4266
|
+
import { Entity as Entity44, Column as Column45, Index as Index37, ManyToOne as ManyToOne41, JoinColumn as JoinColumn41 } from "typeorm";
|
|
4208
4267
|
var CompanySkill = class extends BaseEntity {
|
|
4209
4268
|
};
|
|
4210
4269
|
// individual index to find core skills by user
|
|
4211
4270
|
__decorateClass([
|
|
4212
|
-
|
|
4213
|
-
|
|
4271
|
+
Column45({ name: "user_id", type: "integer", nullable: true }),
|
|
4272
|
+
Index37()
|
|
4214
4273
|
], CompanySkill.prototype, "userId", 2);
|
|
4215
4274
|
__decorateClass([
|
|
4216
|
-
|
|
4217
|
-
|
|
4275
|
+
ManyToOne41(() => User, (user) => user.freelancerSkills),
|
|
4276
|
+
JoinColumn41({ name: "user_id" })
|
|
4218
4277
|
], CompanySkill.prototype, "user", 2);
|
|
4219
4278
|
__decorateClass([
|
|
4220
|
-
|
|
4279
|
+
Column45({ name: "skill_name", type: "varchar", nullable: true })
|
|
4221
4280
|
], CompanySkill.prototype, "skillName", 2);
|
|
4222
4281
|
CompanySkill = __decorateClass([
|
|
4223
|
-
|
|
4282
|
+
Entity44("company_skills")
|
|
4224
4283
|
], CompanySkill);
|
|
4225
4284
|
|
|
4226
4285
|
// src/entities/admin-user-role.entity.ts
|
|
4227
|
-
import { Entity as
|
|
4286
|
+
import { Entity as Entity48, Column as Column49, ManyToOne as ManyToOne43, JoinColumn as JoinColumn43 } from "typeorm";
|
|
4228
4287
|
|
|
4229
4288
|
// src/entities/admin-role.entity.ts
|
|
4230
|
-
import { Entity as
|
|
4289
|
+
import { Entity as Entity47, Column as Column48, Index as Index40, OneToMany as OneToMany17 } from "typeorm";
|
|
4231
4290
|
|
|
4232
4291
|
// src/entities/admin-role-permission.entity.ts
|
|
4233
|
-
import { Entity as
|
|
4292
|
+
import { Entity as Entity46, Column as Column47, ManyToOne as ManyToOne42, JoinColumn as JoinColumn42 } from "typeorm";
|
|
4234
4293
|
|
|
4235
4294
|
// src/entities/admin-permission.entity.ts
|
|
4236
|
-
import { Entity as
|
|
4295
|
+
import { Entity as Entity45, Column as Column46, Index as Index38, OneToMany as OneToMany16 } from "typeorm";
|
|
4237
4296
|
var AdminPermission = class extends BaseEntity {
|
|
4238
4297
|
};
|
|
4239
4298
|
__decorateClass([
|
|
4240
|
-
|
|
4299
|
+
Column46({ name: "permission_name", type: "varchar", nullable: true })
|
|
4241
4300
|
], AdminPermission.prototype, "permissionName", 2);
|
|
4242
4301
|
__decorateClass([
|
|
4243
|
-
|
|
4302
|
+
Column46({
|
|
4244
4303
|
name: "permission_slug",
|
|
4245
4304
|
type: "varchar",
|
|
4246
4305
|
unique: true,
|
|
4247
4306
|
nullable: true
|
|
4248
4307
|
}),
|
|
4249
|
-
|
|
4308
|
+
Index38()
|
|
4250
4309
|
], AdminPermission.prototype, "permissionSlug", 2);
|
|
4251
4310
|
__decorateClass([
|
|
4252
|
-
|
|
4311
|
+
Column46({ name: "permission_description", type: "varchar", nullable: true })
|
|
4253
4312
|
], AdminPermission.prototype, "permissionDescription", 2);
|
|
4254
4313
|
__decorateClass([
|
|
4255
|
-
|
|
4314
|
+
Column46({ name: "module", type: "varchar", nullable: true })
|
|
4256
4315
|
], AdminPermission.prototype, "module", 2);
|
|
4257
4316
|
__decorateClass([
|
|
4258
|
-
|
|
4317
|
+
Column46({ name: "is_active", type: "boolean", default: true })
|
|
4259
4318
|
], AdminPermission.prototype, "isActive", 2);
|
|
4260
4319
|
__decorateClass([
|
|
4261
4320
|
OneToMany16(
|
|
@@ -4264,14 +4323,14 @@ __decorateClass([
|
|
|
4264
4323
|
)
|
|
4265
4324
|
], AdminPermission.prototype, "adminRole", 2);
|
|
4266
4325
|
AdminPermission = __decorateClass([
|
|
4267
|
-
|
|
4326
|
+
Entity45("admin_permissions")
|
|
4268
4327
|
], AdminPermission);
|
|
4269
4328
|
|
|
4270
4329
|
// src/entities/admin-role-permission.entity.ts
|
|
4271
4330
|
var AdminRolePermission = class extends BaseEntity {
|
|
4272
4331
|
};
|
|
4273
4332
|
__decorateClass([
|
|
4274
|
-
|
|
4333
|
+
Column47({
|
|
4275
4334
|
name: "role_id",
|
|
4276
4335
|
type: "int",
|
|
4277
4336
|
nullable: true,
|
|
@@ -4279,11 +4338,11 @@ __decorateClass([
|
|
|
4279
4338
|
})
|
|
4280
4339
|
], AdminRolePermission.prototype, "roleId", 2);
|
|
4281
4340
|
__decorateClass([
|
|
4282
|
-
|
|
4283
|
-
|
|
4341
|
+
ManyToOne42(() => AdminRole),
|
|
4342
|
+
JoinColumn42({ name: "role_id" })
|
|
4284
4343
|
], AdminRolePermission.prototype, "adminRole", 2);
|
|
4285
4344
|
__decorateClass([
|
|
4286
|
-
|
|
4345
|
+
Column47({
|
|
4287
4346
|
name: "permission_id",
|
|
4288
4347
|
type: "int",
|
|
4289
4348
|
nullable: true,
|
|
@@ -4291,28 +4350,28 @@ __decorateClass([
|
|
|
4291
4350
|
})
|
|
4292
4351
|
], AdminRolePermission.prototype, "permissionId", 2);
|
|
4293
4352
|
__decorateClass([
|
|
4294
|
-
|
|
4295
|
-
|
|
4353
|
+
ManyToOne42(() => AdminPermission),
|
|
4354
|
+
JoinColumn42({ name: "permission_id" })
|
|
4296
4355
|
], AdminRolePermission.prototype, "adminPermissions", 2);
|
|
4297
4356
|
AdminRolePermission = __decorateClass([
|
|
4298
|
-
|
|
4357
|
+
Entity46("admin_role_permissions")
|
|
4299
4358
|
], AdminRolePermission);
|
|
4300
4359
|
|
|
4301
4360
|
// src/entities/admin-role.entity.ts
|
|
4302
4361
|
var AdminRole = class extends BaseEntity {
|
|
4303
4362
|
};
|
|
4304
4363
|
__decorateClass([
|
|
4305
|
-
|
|
4364
|
+
Column48({ name: "role_name", type: "varchar", nullable: true })
|
|
4306
4365
|
], AdminRole.prototype, "roleName", 2);
|
|
4307
4366
|
__decorateClass([
|
|
4308
|
-
|
|
4309
|
-
|
|
4367
|
+
Column48({ name: "role_slug", type: "varchar", unique: true, nullable: true }),
|
|
4368
|
+
Index40()
|
|
4310
4369
|
], AdminRole.prototype, "roleSlug", 2);
|
|
4311
4370
|
__decorateClass([
|
|
4312
|
-
|
|
4371
|
+
Column48({ name: "role_description", type: "varchar", nullable: true })
|
|
4313
4372
|
], AdminRole.prototype, "roleDescription", 2);
|
|
4314
4373
|
__decorateClass([
|
|
4315
|
-
|
|
4374
|
+
Column48({ name: "is_active", type: "boolean", default: true })
|
|
4316
4375
|
], AdminRole.prototype, "isActive", 2);
|
|
4317
4376
|
__decorateClass([
|
|
4318
4377
|
OneToMany17(
|
|
@@ -4324,14 +4383,14 @@ __decorateClass([
|
|
|
4324
4383
|
OneToMany17(() => AdminUserRole, (adminUserRole) => adminUserRole.adminRole)
|
|
4325
4384
|
], AdminRole.prototype, "userRoles", 2);
|
|
4326
4385
|
AdminRole = __decorateClass([
|
|
4327
|
-
|
|
4386
|
+
Entity47("admin_roles")
|
|
4328
4387
|
], AdminRole);
|
|
4329
4388
|
|
|
4330
4389
|
// src/entities/admin-user-role.entity.ts
|
|
4331
4390
|
var AdminUserRole = class extends BaseEntity {
|
|
4332
4391
|
};
|
|
4333
4392
|
__decorateClass([
|
|
4334
|
-
|
|
4393
|
+
Column49({
|
|
4335
4394
|
name: "user_id",
|
|
4336
4395
|
type: "int",
|
|
4337
4396
|
nullable: true,
|
|
@@ -4339,11 +4398,11 @@ __decorateClass([
|
|
|
4339
4398
|
})
|
|
4340
4399
|
], AdminUserRole.prototype, "userId", 2);
|
|
4341
4400
|
__decorateClass([
|
|
4342
|
-
|
|
4343
|
-
|
|
4401
|
+
ManyToOne43(() => User),
|
|
4402
|
+
JoinColumn43({ name: "user_id" })
|
|
4344
4403
|
], AdminUserRole.prototype, "user", 2);
|
|
4345
4404
|
__decorateClass([
|
|
4346
|
-
|
|
4405
|
+
Column49({
|
|
4347
4406
|
name: "role_id",
|
|
4348
4407
|
type: "int",
|
|
4349
4408
|
nullable: true,
|
|
@@ -4351,47 +4410,47 @@ __decorateClass([
|
|
|
4351
4410
|
})
|
|
4352
4411
|
], AdminUserRole.prototype, "roleId", 2);
|
|
4353
4412
|
__decorateClass([
|
|
4354
|
-
|
|
4355
|
-
|
|
4413
|
+
ManyToOne43(() => AdminRole),
|
|
4414
|
+
JoinColumn43({ name: "role_id" })
|
|
4356
4415
|
], AdminUserRole.prototype, "adminRole", 2);
|
|
4357
4416
|
AdminUserRole = __decorateClass([
|
|
4358
|
-
|
|
4417
|
+
Entity48("admin_user_roles")
|
|
4359
4418
|
], AdminUserRole);
|
|
4360
4419
|
|
|
4361
4420
|
// src/entities/freelancer-resume.entity.ts
|
|
4362
4421
|
import {
|
|
4363
|
-
Entity as
|
|
4364
|
-
Column as
|
|
4365
|
-
Index as
|
|
4366
|
-
ManyToOne as
|
|
4367
|
-
JoinColumn as
|
|
4422
|
+
Entity as Entity49,
|
|
4423
|
+
Column as Column50,
|
|
4424
|
+
Index as Index42,
|
|
4425
|
+
ManyToOne as ManyToOne44,
|
|
4426
|
+
JoinColumn as JoinColumn44
|
|
4368
4427
|
} from "typeorm";
|
|
4369
4428
|
var FreelancerResume = class extends BaseEntity {
|
|
4370
4429
|
};
|
|
4371
4430
|
// individual index to find profile by user
|
|
4372
4431
|
__decorateClass([
|
|
4373
|
-
|
|
4374
|
-
|
|
4432
|
+
Column50({ name: "user_id", type: "integer", nullable: true }),
|
|
4433
|
+
Index42()
|
|
4375
4434
|
], FreelancerResume.prototype, "userId", 2);
|
|
4376
4435
|
__decorateClass([
|
|
4377
|
-
|
|
4378
|
-
|
|
4436
|
+
ManyToOne44(() => User, (user) => user.freelancerProfile),
|
|
4437
|
+
JoinColumn44({ name: "user_id" })
|
|
4379
4438
|
], FreelancerResume.prototype, "user", 2);
|
|
4380
4439
|
__decorateClass([
|
|
4381
|
-
|
|
4440
|
+
Column50({ name: "resume_data", type: "jsonb", nullable: true })
|
|
4382
4441
|
], FreelancerResume.prototype, "resumeData", 2);
|
|
4383
4442
|
__decorateClass([
|
|
4384
|
-
|
|
4443
|
+
Column50({ name: "processed_resume_data", type: "jsonb", nullable: true })
|
|
4385
4444
|
], FreelancerResume.prototype, "processedResumeData", 2);
|
|
4386
4445
|
FreelancerResume = __decorateClass([
|
|
4387
|
-
|
|
4446
|
+
Entity49("freelancer_resumes")
|
|
4388
4447
|
], FreelancerResume);
|
|
4389
4448
|
|
|
4390
4449
|
// src/entities/stripe-wallet.entity.ts
|
|
4391
|
-
import { Entity as
|
|
4450
|
+
import { Entity as Entity51, Column as Column52, Index as Index44, JoinColumn as JoinColumn46, OneToOne as OneToOne4, OneToMany as OneToMany18 } from "typeorm";
|
|
4392
4451
|
|
|
4393
4452
|
// src/entities/stripe-wallet-transaction.entity.ts
|
|
4394
|
-
import { Entity as
|
|
4453
|
+
import { Entity as Entity50, Column as Column51, Index as Index43, ManyToOne as ManyToOne45, JoinColumn as JoinColumn45 } from "typeorm";
|
|
4395
4454
|
var StripeWalletTransactionTypeEnum = /* @__PURE__ */ ((StripeWalletTransactionTypeEnum2) => {
|
|
4396
4455
|
StripeWalletTransactionTypeEnum2["ADD_FUNDS"] = "ADD_FUNDS";
|
|
4397
4456
|
StripeWalletTransactionTypeEnum2["TRANSFER"] = "TRANSFER";
|
|
@@ -4411,36 +4470,36 @@ var StripeWalletTransactionStatusEnum = /* @__PURE__ */ ((StripeWalletTransactio
|
|
|
4411
4470
|
var StripeWalletTransaction = class extends BaseEntity {
|
|
4412
4471
|
};
|
|
4413
4472
|
__decorateClass([
|
|
4414
|
-
|
|
4415
|
-
|
|
4473
|
+
Column51({ name: "wallet_id", type: "integer", nullable: true }),
|
|
4474
|
+
Index43()
|
|
4416
4475
|
], StripeWalletTransaction.prototype, "walletId", 2);
|
|
4417
4476
|
__decorateClass([
|
|
4418
|
-
|
|
4419
|
-
|
|
4477
|
+
ManyToOne45(() => StripeWallet, (stripeWallet) => stripeWallet.transactions),
|
|
4478
|
+
JoinColumn45({ name: "wallet_id" })
|
|
4420
4479
|
], StripeWalletTransaction.prototype, "stripeWallet", 2);
|
|
4421
4480
|
__decorateClass([
|
|
4422
|
-
|
|
4481
|
+
Column51({ name: "amount", type: "bigint", nullable: true })
|
|
4423
4482
|
], StripeWalletTransaction.prototype, "amount", 2);
|
|
4424
4483
|
__decorateClass([
|
|
4425
|
-
|
|
4484
|
+
Column51({ name: "currency", type: "varchar", nullable: true })
|
|
4426
4485
|
], StripeWalletTransaction.prototype, "currency", 2);
|
|
4427
4486
|
__decorateClass([
|
|
4428
|
-
|
|
4487
|
+
Column51({ name: "type", type: "enum", enum: StripeWalletTransactionTypeEnum })
|
|
4429
4488
|
], StripeWalletTransaction.prototype, "type", 2);
|
|
4430
4489
|
__decorateClass([
|
|
4431
|
-
|
|
4490
|
+
Column51({ name: "status", type: "enum", enum: StripeWalletTransactionStatusEnum, default: "PENDING" /* PENDING */ })
|
|
4432
4491
|
], StripeWalletTransaction.prototype, "status", 2);
|
|
4433
4492
|
__decorateClass([
|
|
4434
|
-
|
|
4493
|
+
Column51({ name: "stripe_session_id", type: "varchar", nullable: true })
|
|
4435
4494
|
], StripeWalletTransaction.prototype, "stripeSessionId", 2);
|
|
4436
4495
|
__decorateClass([
|
|
4437
|
-
|
|
4496
|
+
Column51({ name: "stripe_payment_intent_id", type: "varchar", nullable: true })
|
|
4438
4497
|
], StripeWalletTransaction.prototype, "stripePaymentIntentId", 2);
|
|
4439
4498
|
__decorateClass([
|
|
4440
|
-
|
|
4499
|
+
Column51({ name: "description", type: "text", nullable: true })
|
|
4441
4500
|
], StripeWalletTransaction.prototype, "description", 2);
|
|
4442
4501
|
StripeWalletTransaction = __decorateClass([
|
|
4443
|
-
|
|
4502
|
+
Entity50("stripe_wallet_transactions")
|
|
4444
4503
|
], StripeWalletTransaction);
|
|
4445
4504
|
|
|
4446
4505
|
// src/entities/stripe-wallet.entity.ts
|
|
@@ -4457,62 +4516,62 @@ var StripeWalletOnboardingStatusEnum = /* @__PURE__ */ ((StripeWalletOnboardingS
|
|
|
4457
4516
|
var StripeWallet = class extends BaseEntity {
|
|
4458
4517
|
};
|
|
4459
4518
|
__decorateClass([
|
|
4460
|
-
|
|
4461
|
-
|
|
4519
|
+
Column52({ name: "user_id", type: "integer", nullable: true }),
|
|
4520
|
+
Index44()
|
|
4462
4521
|
], StripeWallet.prototype, "userId", 2);
|
|
4463
4522
|
__decorateClass([
|
|
4464
4523
|
OneToOne4(() => User, (user) => user.stripeWallet),
|
|
4465
|
-
|
|
4524
|
+
JoinColumn46({ name: "user_id" })
|
|
4466
4525
|
], StripeWallet.prototype, "user", 2);
|
|
4467
4526
|
__decorateClass([
|
|
4468
|
-
|
|
4527
|
+
Column52({ name: "account_type", type: "enum", enum: StripeWalletAccountTypeEnum, nullable: true })
|
|
4469
4528
|
], StripeWallet.prototype, "accountType", 2);
|
|
4470
4529
|
__decorateClass([
|
|
4471
|
-
|
|
4530
|
+
Column52({ name: "stripe_account_id", type: "varchar", nullable: true })
|
|
4472
4531
|
], StripeWallet.prototype, "stripeAccountId", 2);
|
|
4473
4532
|
__decorateClass([
|
|
4474
|
-
|
|
4533
|
+
Column52({ name: "stripe_customer_id", type: "varchar", nullable: true })
|
|
4475
4534
|
], StripeWallet.prototype, "stripeCustomerId", 2);
|
|
4476
4535
|
__decorateClass([
|
|
4477
|
-
|
|
4536
|
+
Column52({ name: "wallet_balance", type: "bigint", default: 0 })
|
|
4478
4537
|
], StripeWallet.prototype, "walletBalance", 2);
|
|
4479
4538
|
__decorateClass([
|
|
4480
|
-
|
|
4539
|
+
Column52({ name: "onboarding_status", type: "enum", enum: StripeWalletOnboardingStatusEnum, nullable: true })
|
|
4481
4540
|
], StripeWallet.prototype, "onboardingStatus", 2);
|
|
4482
4541
|
__decorateClass([
|
|
4483
|
-
|
|
4542
|
+
Column52({ name: "stripe_metadata", type: "jsonb", nullable: true })
|
|
4484
4543
|
], StripeWallet.prototype, "stripeMetadata", 2);
|
|
4485
4544
|
__decorateClass([
|
|
4486
4545
|
OneToMany18(() => StripeWalletTransaction, (stripeWalletTransaction) => stripeWalletTransaction.stripeWallet)
|
|
4487
4546
|
], StripeWallet.prototype, "transactions", 2);
|
|
4488
4547
|
StripeWallet = __decorateClass([
|
|
4489
|
-
|
|
4548
|
+
Entity51("stripe_wallets")
|
|
4490
4549
|
], StripeWallet);
|
|
4491
4550
|
|
|
4492
4551
|
// src/entities/signature.entity.ts
|
|
4493
4552
|
import {
|
|
4494
|
-
Entity as
|
|
4495
|
-
Column as
|
|
4496
|
-
Index as
|
|
4497
|
-
ManyToOne as
|
|
4498
|
-
JoinColumn as
|
|
4553
|
+
Entity as Entity52,
|
|
4554
|
+
Column as Column53,
|
|
4555
|
+
Index as Index45,
|
|
4556
|
+
ManyToOne as ManyToOne46,
|
|
4557
|
+
JoinColumn as JoinColumn47
|
|
4499
4558
|
} from "typeorm";
|
|
4500
4559
|
var Signature = class extends BaseEntity {
|
|
4501
4560
|
};
|
|
4502
4561
|
// individual index to find profile by user
|
|
4503
4562
|
__decorateClass([
|
|
4504
|
-
|
|
4505
|
-
|
|
4563
|
+
Column53({ name: "user_id", type: "integer", nullable: true }),
|
|
4564
|
+
Index45()
|
|
4506
4565
|
], Signature.prototype, "userId", 2);
|
|
4507
4566
|
__decorateClass([
|
|
4508
|
-
|
|
4509
|
-
|
|
4567
|
+
ManyToOne46(() => User, (user) => user.signatures),
|
|
4568
|
+
JoinColumn47({ name: "user_id" })
|
|
4510
4569
|
], Signature.prototype, "user", 2);
|
|
4511
4570
|
__decorateClass([
|
|
4512
|
-
|
|
4571
|
+
Column53({ name: "signature_url", type: "text", nullable: true })
|
|
4513
4572
|
], Signature.prototype, "signatureUrl", 2);
|
|
4514
4573
|
Signature = __decorateClass([
|
|
4515
|
-
|
|
4574
|
+
Entity52("signatures")
|
|
4516
4575
|
], Signature);
|
|
4517
4576
|
|
|
4518
4577
|
// src/entities/user.entity.ts
|
|
@@ -4540,51 +4599,51 @@ var Provider = /* @__PURE__ */ ((Provider2) => {
|
|
|
4540
4599
|
var User = class extends BaseEntity {
|
|
4541
4600
|
};
|
|
4542
4601
|
__decorateClass([
|
|
4543
|
-
|
|
4602
|
+
Column54({ name: "unique_id", type: "varchar", unique: true })
|
|
4544
4603
|
], User.prototype, "uniqueId", 2);
|
|
4545
4604
|
__decorateClass([
|
|
4546
|
-
|
|
4547
|
-
|
|
4605
|
+
Column54({ name: "parent_id", type: "integer", nullable: true }),
|
|
4606
|
+
Index46()
|
|
4548
4607
|
], User.prototype, "parentId", 2);
|
|
4549
4608
|
__decorateClass([
|
|
4550
|
-
|
|
4551
|
-
|
|
4609
|
+
ManyToOne47(() => User, (user) => user.children, { nullable: true }),
|
|
4610
|
+
JoinColumn48({ name: "parent_id" })
|
|
4552
4611
|
], User.prototype, "parent", 2);
|
|
4553
4612
|
__decorateClass([
|
|
4554
4613
|
OneToMany19(() => User, (user) => user.parent)
|
|
4555
4614
|
], User.prototype, "children", 2);
|
|
4556
4615
|
__decorateClass([
|
|
4557
|
-
|
|
4616
|
+
Column54({ name: "username", type: "varchar", unique: true, nullable: true })
|
|
4558
4617
|
], User.prototype, "username", 2);
|
|
4559
4618
|
__decorateClass([
|
|
4560
|
-
|
|
4619
|
+
Column54({ name: "first_name", type: "varchar", length: 100, nullable: true })
|
|
4561
4620
|
], User.prototype, "firstName", 2);
|
|
4562
4621
|
__decorateClass([
|
|
4563
|
-
|
|
4622
|
+
Column54({ name: "last_name", type: "varchar", length: 100, nullable: true })
|
|
4564
4623
|
], User.prototype, "lastName", 2);
|
|
4565
4624
|
__decorateClass([
|
|
4566
|
-
|
|
4625
|
+
Column54({ name: "date_of_birth", type: "date", nullable: true })
|
|
4567
4626
|
], User.prototype, "dateOfBirth", 2);
|
|
4568
4627
|
__decorateClass([
|
|
4569
|
-
|
|
4628
|
+
Column54({ name: "gender", type: "varchar", length: 10, nullable: true })
|
|
4570
4629
|
], User.prototype, "gender", 2);
|
|
4571
4630
|
__decorateClass([
|
|
4572
|
-
|
|
4631
|
+
Column54({ name: "profile_picture_url", type: "text", nullable: true })
|
|
4573
4632
|
], User.prototype, "profilePictureUrl", 2);
|
|
4574
4633
|
__decorateClass([
|
|
4575
|
-
|
|
4634
|
+
Column54({ name: "email", type: "varchar", unique: true })
|
|
4576
4635
|
], User.prototype, "email", 2);
|
|
4577
4636
|
__decorateClass([
|
|
4578
|
-
|
|
4637
|
+
Column54({ name: "mobile_code", type: "varchar", nullable: true })
|
|
4579
4638
|
], User.prototype, "mobileCode", 2);
|
|
4580
4639
|
__decorateClass([
|
|
4581
|
-
|
|
4640
|
+
Column54({ name: "mobile", type: "varchar", nullable: true })
|
|
4582
4641
|
], User.prototype, "mobile", 2);
|
|
4583
4642
|
__decorateClass([
|
|
4584
|
-
|
|
4643
|
+
Column54({ name: "password", type: "varchar", nullable: true })
|
|
4585
4644
|
], User.prototype, "password", 2);
|
|
4586
4645
|
__decorateClass([
|
|
4587
|
-
|
|
4646
|
+
Column54({
|
|
4588
4647
|
name: "account_type",
|
|
4589
4648
|
type: "enum",
|
|
4590
4649
|
enum: AccountType,
|
|
@@ -4592,7 +4651,7 @@ __decorateClass([
|
|
|
4592
4651
|
})
|
|
4593
4652
|
], User.prototype, "accountType", 2);
|
|
4594
4653
|
__decorateClass([
|
|
4595
|
-
|
|
4654
|
+
Column54({
|
|
4596
4655
|
name: "account_status",
|
|
4597
4656
|
type: "enum",
|
|
4598
4657
|
enum: AccountStatus,
|
|
@@ -4600,42 +4659,42 @@ __decorateClass([
|
|
|
4600
4659
|
})
|
|
4601
4660
|
], User.prototype, "accountStatus", 2);
|
|
4602
4661
|
__decorateClass([
|
|
4603
|
-
|
|
4662
|
+
Column54({ name: "is_email_verified", type: "boolean", default: false })
|
|
4604
4663
|
], User.prototype, "isEmailVerified", 2);
|
|
4605
4664
|
__decorateClass([
|
|
4606
|
-
|
|
4665
|
+
Column54({ name: "is_mobile_verified", type: "boolean", default: false })
|
|
4607
4666
|
], User.prototype, "isMobileVerified", 2);
|
|
4608
4667
|
__decorateClass([
|
|
4609
|
-
|
|
4668
|
+
Column54({ name: "is_social", type: "boolean", default: false })
|
|
4610
4669
|
], User.prototype, "isSocial", 2);
|
|
4611
4670
|
__decorateClass([
|
|
4612
|
-
|
|
4671
|
+
Column54({
|
|
4613
4672
|
name: "last_login_at",
|
|
4614
4673
|
type: "timestamp with time zone",
|
|
4615
4674
|
nullable: true
|
|
4616
4675
|
})
|
|
4617
4676
|
], User.prototype, "lastLoginAt", 2);
|
|
4618
4677
|
__decorateClass([
|
|
4619
|
-
|
|
4678
|
+
Column54({ name: "last_login_ip", type: "varchar", nullable: true })
|
|
4620
4679
|
], User.prototype, "lastLoginIp", 2);
|
|
4621
4680
|
__decorateClass([
|
|
4622
|
-
|
|
4681
|
+
Column54({ name: "reset_token", type: "varchar", nullable: true })
|
|
4623
4682
|
], User.prototype, "resetToken", 2);
|
|
4624
4683
|
__decorateClass([
|
|
4625
|
-
|
|
4684
|
+
Column54({
|
|
4626
4685
|
name: "reset_token_expire_at",
|
|
4627
4686
|
type: "timestamp with time zone",
|
|
4628
4687
|
nullable: true
|
|
4629
4688
|
})
|
|
4630
4689
|
], User.prototype, "resetTokenExpireAt", 2);
|
|
4631
4690
|
__decorateClass([
|
|
4632
|
-
|
|
4691
|
+
Column54({ name: "set_password_token", type: "varchar", nullable: true })
|
|
4633
4692
|
], User.prototype, "setPasswordToken", 2);
|
|
4634
4693
|
__decorateClass([
|
|
4635
4694
|
OneToMany19(() => RefreshToken, (token) => token.user)
|
|
4636
4695
|
], User.prototype, "refreshTokens", 2);
|
|
4637
4696
|
__decorateClass([
|
|
4638
|
-
|
|
4697
|
+
Column54({
|
|
4639
4698
|
name: "provider",
|
|
4640
4699
|
type: "enum",
|
|
4641
4700
|
enum: Provider,
|
|
@@ -4644,19 +4703,19 @@ __decorateClass([
|
|
|
4644
4703
|
})
|
|
4645
4704
|
], User.prototype, "provider", 2);
|
|
4646
4705
|
__decorateClass([
|
|
4647
|
-
|
|
4706
|
+
Column54({ name: "provider_token", type: "varchar", nullable: true })
|
|
4648
4707
|
], User.prototype, "providerToken", 2);
|
|
4649
4708
|
__decorateClass([
|
|
4650
|
-
|
|
4709
|
+
Column54({ name: "linkedin_id", type: "varchar", nullable: true })
|
|
4651
4710
|
], User.prototype, "linkedInId", 2);
|
|
4652
4711
|
__decorateClass([
|
|
4653
|
-
|
|
4712
|
+
Column54({ name: "google_id", type: "varchar", nullable: true })
|
|
4654
4713
|
], User.prototype, "googleId", 2);
|
|
4655
4714
|
__decorateClass([
|
|
4656
|
-
|
|
4715
|
+
Column54({ name: "gitlabs_id", type: "varchar", nullable: true })
|
|
4657
4716
|
], User.prototype, "gitLabsId", 2);
|
|
4658
4717
|
__decorateClass([
|
|
4659
|
-
|
|
4718
|
+
Column54({ name: "onboarded_by", type: "varchar", nullable: true })
|
|
4660
4719
|
], User.prototype, "onBoardedBy", 2);
|
|
4661
4720
|
__decorateClass([
|
|
4662
4721
|
OneToMany19(() => Otp, (otp) => otp.user)
|
|
@@ -4809,7 +4868,7 @@ __decorateClass([
|
|
|
4809
4868
|
OneToMany19(() => TimesheetLine, (timesheetLine) => timesheetLine.freelancer)
|
|
4810
4869
|
], User.prototype, "freelancerTimesheetLine", 2);
|
|
4811
4870
|
User = __decorateClass([
|
|
4812
|
-
|
|
4871
|
+
Entity53("users")
|
|
4813
4872
|
], User);
|
|
4814
4873
|
|
|
4815
4874
|
// src/entities/rating.entity.ts
|
|
@@ -4821,36 +4880,36 @@ var RatingTypeEnum = /* @__PURE__ */ ((RatingTypeEnum2) => {
|
|
|
4821
4880
|
var Rating = class extends BaseEntity {
|
|
4822
4881
|
};
|
|
4823
4882
|
__decorateClass([
|
|
4824
|
-
|
|
4825
|
-
|
|
4883
|
+
Column55({ name: "reviewer_id", type: "integer" }),
|
|
4884
|
+
Index47()
|
|
4826
4885
|
], Rating.prototype, "reviewer_id", 2);
|
|
4827
4886
|
__decorateClass([
|
|
4828
|
-
|
|
4829
|
-
|
|
4887
|
+
ManyToOne48(() => User, { onDelete: "CASCADE" }),
|
|
4888
|
+
JoinColumn49({ name: "reviewer_id" })
|
|
4830
4889
|
], Rating.prototype, "reviewer", 2);
|
|
4831
4890
|
__decorateClass([
|
|
4832
|
-
|
|
4833
|
-
|
|
4891
|
+
Column55({ name: "reviewee_id", type: "integer" }),
|
|
4892
|
+
Index47()
|
|
4834
4893
|
], Rating.prototype, "reviewee_id", 2);
|
|
4835
4894
|
__decorateClass([
|
|
4836
|
-
|
|
4837
|
-
|
|
4895
|
+
ManyToOne48(() => User, { onDelete: "CASCADE" }),
|
|
4896
|
+
JoinColumn49({ name: "reviewee_id" })
|
|
4838
4897
|
], Rating.prototype, "reviewee", 2);
|
|
4839
4898
|
__decorateClass([
|
|
4840
|
-
|
|
4899
|
+
Column55({
|
|
4841
4900
|
type: "enum",
|
|
4842
4901
|
enum: RatingTypeEnum,
|
|
4843
4902
|
nullable: true
|
|
4844
4903
|
})
|
|
4845
4904
|
], Rating.prototype, "ratingType", 2);
|
|
4846
4905
|
__decorateClass([
|
|
4847
|
-
|
|
4906
|
+
Column55({ type: "integer", nullable: true })
|
|
4848
4907
|
], Rating.prototype, "rating", 2);
|
|
4849
4908
|
__decorateClass([
|
|
4850
|
-
|
|
4909
|
+
Column55({ type: "text", nullable: true })
|
|
4851
4910
|
], Rating.prototype, "review", 2);
|
|
4852
4911
|
Rating = __decorateClass([
|
|
4853
|
-
|
|
4912
|
+
Entity54("ratings")
|
|
4854
4913
|
], Rating);
|
|
4855
4914
|
|
|
4856
4915
|
// src/modules/rating/dto/add.rating.dto.ts
|
|
@@ -6626,11 +6685,11 @@ var NotificationRMQAdapter = (mode = "microservice") => {
|
|
|
6626
6685
|
};
|
|
6627
6686
|
|
|
6628
6687
|
// src/entities/sequence-generator.entity.ts
|
|
6629
|
-
import { Entity as
|
|
6688
|
+
import { Entity as Entity55, Column as Column56 } from "typeorm";
|
|
6630
6689
|
var SequenceGenerator = class extends BaseEntity {
|
|
6631
6690
|
};
|
|
6632
6691
|
__decorateClass([
|
|
6633
|
-
|
|
6692
|
+
Column56({
|
|
6634
6693
|
name: "module",
|
|
6635
6694
|
type: "varchar",
|
|
6636
6695
|
length: 50,
|
|
@@ -6639,7 +6698,7 @@ __decorateClass([
|
|
|
6639
6698
|
})
|
|
6640
6699
|
], SequenceGenerator.prototype, "module", 2);
|
|
6641
6700
|
__decorateClass([
|
|
6642
|
-
|
|
6701
|
+
Column56({
|
|
6643
6702
|
name: "prefix",
|
|
6644
6703
|
type: "varchar",
|
|
6645
6704
|
length: 10,
|
|
@@ -6648,7 +6707,7 @@ __decorateClass([
|
|
|
6648
6707
|
})
|
|
6649
6708
|
], SequenceGenerator.prototype, "prefix", 2);
|
|
6650
6709
|
__decorateClass([
|
|
6651
|
-
|
|
6710
|
+
Column56({
|
|
6652
6711
|
name: "last_sequence",
|
|
6653
6712
|
type: "int",
|
|
6654
6713
|
nullable: false,
|
|
@@ -6656,7 +6715,7 @@ __decorateClass([
|
|
|
6656
6715
|
})
|
|
6657
6716
|
], SequenceGenerator.prototype, "lastSequence", 2);
|
|
6658
6717
|
__decorateClass([
|
|
6659
|
-
|
|
6718
|
+
Column56({
|
|
6660
6719
|
name: "year",
|
|
6661
6720
|
type: "int",
|
|
6662
6721
|
nullable: true,
|
|
@@ -6664,11 +6723,11 @@ __decorateClass([
|
|
|
6664
6723
|
})
|
|
6665
6724
|
], SequenceGenerator.prototype, "year", 2);
|
|
6666
6725
|
SequenceGenerator = __decorateClass([
|
|
6667
|
-
|
|
6726
|
+
Entity55("sequence_generators")
|
|
6668
6727
|
], SequenceGenerator);
|
|
6669
6728
|
|
|
6670
6729
|
// src/entities/question.entity.ts
|
|
6671
|
-
import { Entity as
|
|
6730
|
+
import { Entity as Entity56, Column as Column57 } from "typeorm";
|
|
6672
6731
|
var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
6673
6732
|
QuestionFor2["CLIENT"] = "CLIENT";
|
|
6674
6733
|
QuestionFor2["FREELANCER"] = "FREELANCER";
|
|
@@ -6677,16 +6736,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
|
6677
6736
|
var Question = class extends BaseEntity {
|
|
6678
6737
|
};
|
|
6679
6738
|
__decorateClass([
|
|
6680
|
-
|
|
6739
|
+
Column57({ name: "question", type: "varchar" })
|
|
6681
6740
|
], Question.prototype, "question", 2);
|
|
6682
6741
|
__decorateClass([
|
|
6683
|
-
|
|
6742
|
+
Column57({ name: "hint", type: "varchar", nullable: true })
|
|
6684
6743
|
], Question.prototype, "hint", 2);
|
|
6685
6744
|
__decorateClass([
|
|
6686
|
-
|
|
6745
|
+
Column57({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
6687
6746
|
], Question.prototype, "slug", 2);
|
|
6688
6747
|
__decorateClass([
|
|
6689
|
-
|
|
6748
|
+
Column57({
|
|
6690
6749
|
name: "question_for",
|
|
6691
6750
|
type: "enum",
|
|
6692
6751
|
enum: QuestionFor,
|
|
@@ -6694,119 +6753,119 @@ __decorateClass([
|
|
|
6694
6753
|
})
|
|
6695
6754
|
], Question.prototype, "questionFor", 2);
|
|
6696
6755
|
__decorateClass([
|
|
6697
|
-
|
|
6756
|
+
Column57({ name: "type", type: "varchar", nullable: true })
|
|
6698
6757
|
], Question.prototype, "type", 2);
|
|
6699
6758
|
__decorateClass([
|
|
6700
|
-
|
|
6759
|
+
Column57({ name: "options", type: "jsonb", nullable: true })
|
|
6701
6760
|
], Question.prototype, "options", 2);
|
|
6702
6761
|
__decorateClass([
|
|
6703
|
-
|
|
6762
|
+
Column57({ name: "is_active", type: "boolean", default: false })
|
|
6704
6763
|
], Question.prototype, "isActive", 2);
|
|
6705
6764
|
Question = __decorateClass([
|
|
6706
|
-
|
|
6765
|
+
Entity56("questions")
|
|
6707
6766
|
], Question);
|
|
6708
6767
|
|
|
6709
6768
|
// src/entities/skill.entity.ts
|
|
6710
|
-
import { Entity as
|
|
6769
|
+
import { Entity as Entity57, Column as Column58 } from "typeorm";
|
|
6711
6770
|
var Skill = class extends BaseEntity {
|
|
6712
6771
|
};
|
|
6713
6772
|
__decorateClass([
|
|
6714
|
-
|
|
6773
|
+
Column58({ name: "name", type: "varchar", nullable: true })
|
|
6715
6774
|
], Skill.prototype, "name", 2);
|
|
6716
6775
|
__decorateClass([
|
|
6717
|
-
|
|
6776
|
+
Column58({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
6718
6777
|
], Skill.prototype, "slug", 2);
|
|
6719
6778
|
__decorateClass([
|
|
6720
|
-
|
|
6779
|
+
Column58({ name: "is_active", type: "boolean", default: false })
|
|
6721
6780
|
], Skill.prototype, "isActive", 2);
|
|
6722
6781
|
Skill = __decorateClass([
|
|
6723
|
-
|
|
6782
|
+
Entity57("skills")
|
|
6724
6783
|
], Skill);
|
|
6725
6784
|
|
|
6726
6785
|
// src/entities/job-role.entity.ts
|
|
6727
|
-
import { Entity as
|
|
6786
|
+
import { Entity as Entity58, Column as Column59 } from "typeorm";
|
|
6728
6787
|
var JobRoles = class extends BaseEntity {
|
|
6729
6788
|
};
|
|
6730
6789
|
__decorateClass([
|
|
6731
|
-
|
|
6790
|
+
Column59({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
6732
6791
|
], JobRoles.prototype, "slug", 2);
|
|
6733
6792
|
__decorateClass([
|
|
6734
|
-
|
|
6793
|
+
Column59({ name: "name", type: "varchar", nullable: true })
|
|
6735
6794
|
], JobRoles.prototype, "name", 2);
|
|
6736
6795
|
__decorateClass([
|
|
6737
|
-
|
|
6796
|
+
Column59({ name: "is_active", type: "boolean", default: true })
|
|
6738
6797
|
], JobRoles.prototype, "isActive", 2);
|
|
6739
6798
|
JobRoles = __decorateClass([
|
|
6740
|
-
|
|
6799
|
+
Entity58("job_roles")
|
|
6741
6800
|
], JobRoles);
|
|
6742
6801
|
|
|
6743
6802
|
// src/entities/plan.entity.ts
|
|
6744
|
-
import { Entity as
|
|
6803
|
+
import { Entity as Entity60, Column as Column61, ManyToMany as ManyToMany3, JoinTable } from "typeorm";
|
|
6745
6804
|
|
|
6746
6805
|
// src/entities/feature.entity.ts
|
|
6747
|
-
import { Entity as
|
|
6806
|
+
import { Entity as Entity59, Column as Column60, ManyToMany as ManyToMany2 } from "typeorm";
|
|
6748
6807
|
var Feature = class extends BaseEntity {
|
|
6749
6808
|
};
|
|
6750
6809
|
__decorateClass([
|
|
6751
|
-
|
|
6810
|
+
Column60({ name: "name", type: "varchar", unique: true })
|
|
6752
6811
|
], Feature.prototype, "name", 2);
|
|
6753
6812
|
__decorateClass([
|
|
6754
6813
|
ManyToMany2(() => Plan, (plan) => plan.features)
|
|
6755
6814
|
], Feature.prototype, "plans", 2);
|
|
6756
6815
|
Feature = __decorateClass([
|
|
6757
|
-
|
|
6816
|
+
Entity59("features")
|
|
6758
6817
|
], Feature);
|
|
6759
6818
|
|
|
6760
6819
|
// src/entities/plan.entity.ts
|
|
6761
6820
|
var Plan = class extends BaseEntity {
|
|
6762
6821
|
};
|
|
6763
6822
|
__decorateClass([
|
|
6764
|
-
|
|
6823
|
+
Column61({ name: "name", type: "varchar", unique: true })
|
|
6765
6824
|
], Plan.prototype, "name", 2);
|
|
6766
6825
|
__decorateClass([
|
|
6767
|
-
|
|
6826
|
+
Column61({ name: "description", type: "varchar", nullable: true })
|
|
6768
6827
|
], Plan.prototype, "description", 2);
|
|
6769
6828
|
__decorateClass([
|
|
6770
|
-
|
|
6829
|
+
Column61({ name: "price", type: "decimal", precision: 10, scale: 2 })
|
|
6771
6830
|
], Plan.prototype, "price", 2);
|
|
6772
6831
|
__decorateClass([
|
|
6773
|
-
|
|
6832
|
+
Column61({ name: "billing_period", type: "varchar" })
|
|
6774
6833
|
], Plan.prototype, "billingPeriod", 2);
|
|
6775
6834
|
__decorateClass([
|
|
6776
|
-
|
|
6835
|
+
Column61({ name: "is_current", type: "boolean", default: false })
|
|
6777
6836
|
], Plan.prototype, "isCurrent", 2);
|
|
6778
6837
|
__decorateClass([
|
|
6779
6838
|
ManyToMany3(() => Feature, (feature) => feature.plans, { cascade: true }),
|
|
6780
6839
|
JoinTable()
|
|
6781
6840
|
], Plan.prototype, "features", 2);
|
|
6782
6841
|
Plan = __decorateClass([
|
|
6783
|
-
|
|
6842
|
+
Entity60("plans")
|
|
6784
6843
|
], Plan);
|
|
6785
6844
|
|
|
6786
6845
|
// src/entities/cms.entity.ts
|
|
6787
|
-
import { Entity as
|
|
6846
|
+
import { Entity as Entity61, Column as Column62 } from "typeorm";
|
|
6788
6847
|
var Cms = class extends BaseEntity {
|
|
6789
6848
|
};
|
|
6790
6849
|
__decorateClass([
|
|
6791
|
-
|
|
6850
|
+
Column62({ name: "title", type: "varchar", nullable: true })
|
|
6792
6851
|
], Cms.prototype, "title", 2);
|
|
6793
6852
|
__decorateClass([
|
|
6794
|
-
|
|
6853
|
+
Column62({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
6795
6854
|
], Cms.prototype, "slug", 2);
|
|
6796
6855
|
__decorateClass([
|
|
6797
|
-
|
|
6856
|
+
Column62({ name: "content", type: "varchar", nullable: true })
|
|
6798
6857
|
], Cms.prototype, "content", 2);
|
|
6799
6858
|
__decorateClass([
|
|
6800
|
-
|
|
6859
|
+
Column62({ name: "is_active", type: "boolean", default: true })
|
|
6801
6860
|
], Cms.prototype, "isActive", 2);
|
|
6802
6861
|
Cms = __decorateClass([
|
|
6803
|
-
|
|
6862
|
+
Entity61("cms")
|
|
6804
6863
|
], Cms);
|
|
6805
6864
|
|
|
6806
6865
|
// src/entities/lead.entity.ts
|
|
6807
6866
|
import {
|
|
6808
|
-
Entity as
|
|
6809
|
-
Column as
|
|
6867
|
+
Entity as Entity62,
|
|
6868
|
+
Column as Column63
|
|
6810
6869
|
} from "typeorm";
|
|
6811
6870
|
var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
|
|
6812
6871
|
CategoryEmum2["BUSINESS"] = "BUSINESS";
|
|
@@ -6816,22 +6875,22 @@ var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
|
|
|
6816
6875
|
var Lead = class extends BaseEntity {
|
|
6817
6876
|
};
|
|
6818
6877
|
__decorateClass([
|
|
6819
|
-
|
|
6878
|
+
Column63({ name: "name", type: "varchar", nullable: true })
|
|
6820
6879
|
], Lead.prototype, "name", 2);
|
|
6821
6880
|
__decorateClass([
|
|
6822
|
-
|
|
6881
|
+
Column63({ name: "mobile_code", type: "varchar", nullable: true })
|
|
6823
6882
|
], Lead.prototype, "mobileCode", 2);
|
|
6824
6883
|
__decorateClass([
|
|
6825
|
-
|
|
6884
|
+
Column63({ name: "mobile", type: "varchar", nullable: true })
|
|
6826
6885
|
], Lead.prototype, "mobile", 2);
|
|
6827
6886
|
__decorateClass([
|
|
6828
|
-
|
|
6887
|
+
Column63({ name: "email", type: "varchar", nullable: true })
|
|
6829
6888
|
], Lead.prototype, "email", 2);
|
|
6830
6889
|
__decorateClass([
|
|
6831
|
-
|
|
6890
|
+
Column63({ name: "description", type: "varchar", nullable: true })
|
|
6832
6891
|
], Lead.prototype, "description", 2);
|
|
6833
6892
|
__decorateClass([
|
|
6834
|
-
|
|
6893
|
+
Column63({
|
|
6835
6894
|
name: "category",
|
|
6836
6895
|
type: "enum",
|
|
6837
6896
|
enum: CategoryEmum,
|
|
@@ -6839,7 +6898,7 @@ __decorateClass([
|
|
|
6839
6898
|
})
|
|
6840
6899
|
], Lead.prototype, "category", 2);
|
|
6841
6900
|
Lead = __decorateClass([
|
|
6842
|
-
|
|
6901
|
+
Entity62("leads")
|
|
6843
6902
|
], Lead);
|
|
6844
6903
|
|
|
6845
6904
|
// src/entities/job-freelancer-recommendation.entity.ts
|
|
@@ -7080,7 +7139,7 @@ ClientFreelancerRecommendation = __decorateClass([
|
|
|
7080
7139
|
], ClientFreelancerRecommendation);
|
|
7081
7140
|
|
|
7082
7141
|
// src/entities/commission.entity.ts
|
|
7083
|
-
import { Entity as
|
|
7142
|
+
import { Entity as Entity63, Column as Column64 } from "typeorm";
|
|
7084
7143
|
var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
|
|
7085
7144
|
CommissionTypeEnum2["PERCENTAGE"] = "PERCENTAGE";
|
|
7086
7145
|
CommissionTypeEnum2["FLAT"] = "FLAT";
|
|
@@ -7089,7 +7148,7 @@ var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
|
|
|
7089
7148
|
var Commission = class extends BaseEntity {
|
|
7090
7149
|
};
|
|
7091
7150
|
__decorateClass([
|
|
7092
|
-
|
|
7151
|
+
Column64({
|
|
7093
7152
|
name: "freelancer_commission_type",
|
|
7094
7153
|
type: "enum",
|
|
7095
7154
|
enum: CommissionTypeEnum,
|
|
@@ -7097,10 +7156,10 @@ __decorateClass([
|
|
|
7097
7156
|
})
|
|
7098
7157
|
], Commission.prototype, "freelancerCommissionType", 2);
|
|
7099
7158
|
__decorateClass([
|
|
7100
|
-
|
|
7159
|
+
Column64({ name: "freelancer_commission", type: "integer", default: 0 })
|
|
7101
7160
|
], Commission.prototype, "freelancerCommission", 2);
|
|
7102
7161
|
__decorateClass([
|
|
7103
|
-
|
|
7162
|
+
Column64({
|
|
7104
7163
|
name: "client_commission_type",
|
|
7105
7164
|
type: "enum",
|
|
7106
7165
|
enum: CommissionTypeEnum,
|
|
@@ -7108,74 +7167,74 @@ __decorateClass([
|
|
|
7108
7167
|
})
|
|
7109
7168
|
], Commission.prototype, "clientCommissionType", 2);
|
|
7110
7169
|
__decorateClass([
|
|
7111
|
-
|
|
7170
|
+
Column64({ name: "client_commission", type: "integer", default: 0 })
|
|
7112
7171
|
], Commission.prototype, "clientCommission", 2);
|
|
7113
7172
|
Commission = __decorateClass([
|
|
7114
|
-
|
|
7173
|
+
Entity63("commissions")
|
|
7115
7174
|
], Commission);
|
|
7116
7175
|
|
|
7117
7176
|
// src/entities/calendly-meeting-log.entity.ts
|
|
7118
7177
|
import {
|
|
7119
|
-
Entity as
|
|
7120
|
-
Column as
|
|
7121
|
-
Index as
|
|
7178
|
+
Entity as Entity64,
|
|
7179
|
+
Column as Column65,
|
|
7180
|
+
Index as Index48
|
|
7122
7181
|
} from "typeorm";
|
|
7123
7182
|
var CalendlyMeetingLog = class extends BaseEntity {
|
|
7124
7183
|
};
|
|
7125
7184
|
__decorateClass([
|
|
7126
|
-
|
|
7127
|
-
|
|
7185
|
+
Column65({ name: "calendly_event_id", type: "varchar", nullable: true }),
|
|
7186
|
+
Index48()
|
|
7128
7187
|
], CalendlyMeetingLog.prototype, "calendlyEventId", 2);
|
|
7129
7188
|
__decorateClass([
|
|
7130
|
-
|
|
7189
|
+
Column65({ name: "calendly_event_type", type: "varchar", nullable: true })
|
|
7131
7190
|
], CalendlyMeetingLog.prototype, "calendlyEventType", 2);
|
|
7132
7191
|
__decorateClass([
|
|
7133
|
-
|
|
7192
|
+
Column65({ name: "raw_webhook_data", type: "jsonb", nullable: true })
|
|
7134
7193
|
], CalendlyMeetingLog.prototype, "rawWebhookData", 2);
|
|
7135
7194
|
CalendlyMeetingLog = __decorateClass([
|
|
7136
|
-
|
|
7195
|
+
Entity64("calendly_meeting_logs")
|
|
7137
7196
|
], CalendlyMeetingLog);
|
|
7138
7197
|
|
|
7139
7198
|
// src/entities/zoom-meeting-log.entity.ts
|
|
7140
7199
|
import {
|
|
7141
|
-
Entity as
|
|
7142
|
-
Column as
|
|
7143
|
-
Index as
|
|
7200
|
+
Entity as Entity65,
|
|
7201
|
+
Column as Column66,
|
|
7202
|
+
Index as Index49
|
|
7144
7203
|
} from "typeorm";
|
|
7145
7204
|
var ZoomMeetingLog = class extends BaseEntity {
|
|
7146
7205
|
};
|
|
7147
7206
|
__decorateClass([
|
|
7148
|
-
|
|
7149
|
-
|
|
7207
|
+
Column66({ name: "zoom_meeting_id", type: "varchar", nullable: true }),
|
|
7208
|
+
Index49()
|
|
7150
7209
|
], ZoomMeetingLog.prototype, "zoomMeetingId", 2);
|
|
7151
7210
|
__decorateClass([
|
|
7152
|
-
|
|
7211
|
+
Column66({ name: "zoom_event_type", type: "varchar", nullable: true })
|
|
7153
7212
|
], ZoomMeetingLog.prototype, "zoomEventType", 2);
|
|
7154
7213
|
__decorateClass([
|
|
7155
|
-
|
|
7214
|
+
Column66({ name: "raw_webhook_data", type: "jsonb", nullable: true })
|
|
7156
7215
|
], ZoomMeetingLog.prototype, "rawWebhookData", 2);
|
|
7157
7216
|
ZoomMeetingLog = __decorateClass([
|
|
7158
|
-
|
|
7217
|
+
Entity65("zoom_meeting_logs")
|
|
7159
7218
|
], ZoomMeetingLog);
|
|
7160
7219
|
|
|
7161
7220
|
// src/entities/stripe-logs.entity.ts
|
|
7162
|
-
import { Entity as
|
|
7221
|
+
import { Entity as Entity66, Column as Column67 } from "typeorm";
|
|
7163
7222
|
var StripeLog = class extends BaseEntity {
|
|
7164
7223
|
};
|
|
7165
7224
|
__decorateClass([
|
|
7166
|
-
|
|
7225
|
+
Column67({ name: "stripe_event_id", type: "varchar", nullable: true })
|
|
7167
7226
|
], StripeLog.prototype, "stripeEventId", 2);
|
|
7168
7227
|
__decorateClass([
|
|
7169
|
-
|
|
7228
|
+
Column67({ name: "event_type", type: "varchar", nullable: true })
|
|
7170
7229
|
], StripeLog.prototype, "eventType", 2);
|
|
7171
7230
|
__decorateClass([
|
|
7172
|
-
|
|
7231
|
+
Column67({ name: "stripe_account_id", type: "varchar", nullable: true })
|
|
7173
7232
|
], StripeLog.prototype, "stripeAccountId", 2);
|
|
7174
7233
|
__decorateClass([
|
|
7175
|
-
|
|
7234
|
+
Column67({ name: "raw_webhook_data", type: "jsonb", nullable: true })
|
|
7176
7235
|
], StripeLog.prototype, "rawWebhookData", 2);
|
|
7177
7236
|
StripeLog = __decorateClass([
|
|
7178
|
-
|
|
7237
|
+
Entity66("stripe_logs")
|
|
7179
7238
|
], StripeLog);
|
|
7180
7239
|
export {
|
|
7181
7240
|
ADMIN_FREELANCER_PATTERN,
|
|
@@ -7411,9 +7470,11 @@ export {
|
|
|
7411
7470
|
TIMESHEET_FREELANCER_PATTERN,
|
|
7412
7471
|
Timesheet,
|
|
7413
7472
|
TimesheetLine,
|
|
7473
|
+
TimesheetLineHistory,
|
|
7414
7474
|
TimesheetLineStatusEnum,
|
|
7415
7475
|
TimesheetLogs,
|
|
7416
7476
|
TimesheetStatusEnum,
|
|
7477
|
+
TimesheetSubmissionActionEnum,
|
|
7417
7478
|
ToggleCompanyMemberVisibilityDto,
|
|
7418
7479
|
ToggleCompanyRoleVisibilityDto,
|
|
7419
7480
|
TypeOfEmploymentEnum,
|