@experts_hub/shared 1.0.319 → 1.0.321
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/interview.entity.d.ts +2 -0
- package/dist/entities/job-recommendation.entity.d.ts +10 -0
- package/dist/entities/job.entity.d.ts +2 -0
- package/dist/index.d.mts +33 -21
- package/dist/index.d.ts +33 -21
- package/dist/index.js +665 -618
- package/dist/index.mjs +637 -585
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1384,17 +1384,17 @@ import {
|
|
|
1384
1384
|
} from "class-validator";
|
|
1385
1385
|
|
|
1386
1386
|
// src/entities/rating.entity.ts
|
|
1387
|
-
import { Entity as
|
|
1387
|
+
import { Entity as Entity42, Column as Column43, ManyToOne as ManyToOne37, JoinColumn as JoinColumn37, Index as Index37 } from "typeorm";
|
|
1388
1388
|
|
|
1389
1389
|
// src/entities/user.entity.ts
|
|
1390
1390
|
import {
|
|
1391
|
-
Entity as
|
|
1392
|
-
Column as
|
|
1391
|
+
Entity as Entity41,
|
|
1392
|
+
Column as Column42,
|
|
1393
1393
|
OneToMany as OneToMany14,
|
|
1394
1394
|
OneToOne,
|
|
1395
|
-
Index as
|
|
1396
|
-
ManyToOne as
|
|
1397
|
-
JoinColumn as
|
|
1395
|
+
Index as Index36,
|
|
1396
|
+
ManyToOne as ManyToOne36,
|
|
1397
|
+
JoinColumn as JoinColumn36
|
|
1398
1398
|
} from "typeorm";
|
|
1399
1399
|
|
|
1400
1400
|
// src/entities/base.entity.ts
|
|
@@ -2106,11 +2106,11 @@ CompanyProfile = __decorateClass([
|
|
|
2106
2106
|
|
|
2107
2107
|
// src/entities/job.entity.ts
|
|
2108
2108
|
import {
|
|
2109
|
-
Entity as
|
|
2110
|
-
Column as
|
|
2111
|
-
Index as
|
|
2112
|
-
ManyToOne as
|
|
2113
|
-
JoinColumn as
|
|
2109
|
+
Entity as Entity16,
|
|
2110
|
+
Column as Column17,
|
|
2111
|
+
Index as Index12,
|
|
2112
|
+
ManyToOne as ManyToOne15,
|
|
2113
|
+
JoinColumn as JoinColumn15,
|
|
2114
2114
|
OneToMany as OneToMany6
|
|
2115
2115
|
} from "typeorm";
|
|
2116
2116
|
|
|
@@ -2257,11 +2257,11 @@ JobApplication = __decorateClass([
|
|
|
2257
2257
|
|
|
2258
2258
|
// src/entities/interview.entity.ts
|
|
2259
2259
|
import {
|
|
2260
|
-
Entity as
|
|
2261
|
-
Column as
|
|
2262
|
-
Index as
|
|
2263
|
-
ManyToOne as
|
|
2264
|
-
JoinColumn as
|
|
2260
|
+
Entity as Entity14,
|
|
2261
|
+
Column as Column15,
|
|
2262
|
+
Index as Index10,
|
|
2263
|
+
ManyToOne as ManyToOne13,
|
|
2264
|
+
JoinColumn as JoinColumn13,
|
|
2265
2265
|
OneToMany as OneToMany5
|
|
2266
2266
|
} from "typeorm";
|
|
2267
2267
|
|
|
@@ -2316,6 +2316,105 @@ InterviewQuestion = __decorateClass([
|
|
|
2316
2316
|
Entity12("interview_questions")
|
|
2317
2317
|
], InterviewQuestion);
|
|
2318
2318
|
|
|
2319
|
+
// src/entities/interview-invite.entity.ts
|
|
2320
|
+
import { Entity as Entity13, Column as Column14, ManyToOne as ManyToOne12, JoinColumn as JoinColumn12, Index as Index9 } from "typeorm";
|
|
2321
|
+
var InterviewInviteStatusEnum = /* @__PURE__ */ ((InterviewInviteStatusEnum2) => {
|
|
2322
|
+
InterviewInviteStatusEnum2["PENDING"] = "PENDING";
|
|
2323
|
+
InterviewInviteStatusEnum2["ACCEPTED"] = "ACCEPTED";
|
|
2324
|
+
InterviewInviteStatusEnum2["REJECTED"] = "REJECTED";
|
|
2325
|
+
InterviewInviteStatusEnum2["EXPIRED"] = "EXPIRED";
|
|
2326
|
+
return InterviewInviteStatusEnum2;
|
|
2327
|
+
})(InterviewInviteStatusEnum || {});
|
|
2328
|
+
var InterviewInvite = class extends BaseEntity {
|
|
2329
|
+
};
|
|
2330
|
+
__decorateClass([
|
|
2331
|
+
Column14({
|
|
2332
|
+
name: "interview_id",
|
|
2333
|
+
type: "integer",
|
|
2334
|
+
comment: "Column to specify interview id"
|
|
2335
|
+
}),
|
|
2336
|
+
Index9()
|
|
2337
|
+
], InterviewInvite.prototype, "interviewId", 2);
|
|
2338
|
+
__decorateClass([
|
|
2339
|
+
ManyToOne12(() => Interview, (interview) => interview.invites, { onDelete: "CASCADE" }),
|
|
2340
|
+
JoinColumn12({ name: "interview_id" })
|
|
2341
|
+
], InterviewInvite.prototype, "interview", 2);
|
|
2342
|
+
__decorateClass([
|
|
2343
|
+
Column14({
|
|
2344
|
+
name: "user_id",
|
|
2345
|
+
type: "integer",
|
|
2346
|
+
nullable: true,
|
|
2347
|
+
comment: "FK to User entity if candidate is already registered"
|
|
2348
|
+
}),
|
|
2349
|
+
Index9()
|
|
2350
|
+
], InterviewInvite.prototype, "userId", 2);
|
|
2351
|
+
__decorateClass([
|
|
2352
|
+
ManyToOne12(() => User),
|
|
2353
|
+
JoinColumn12({ name: "user_id" })
|
|
2354
|
+
], InterviewInvite.prototype, "user", 2);
|
|
2355
|
+
__decorateClass([
|
|
2356
|
+
Column14({
|
|
2357
|
+
name: "full_name",
|
|
2358
|
+
type: "varchar",
|
|
2359
|
+
nullable: true,
|
|
2360
|
+
comment: "Candidate's full name (used in the email invitation)"
|
|
2361
|
+
})
|
|
2362
|
+
], InterviewInvite.prototype, "fullName", 2);
|
|
2363
|
+
__decorateClass([
|
|
2364
|
+
Column14({
|
|
2365
|
+
name: "email",
|
|
2366
|
+
type: "varchar",
|
|
2367
|
+
comment: "Candidate's email address (must be unique per invite)"
|
|
2368
|
+
}),
|
|
2369
|
+
Index9()
|
|
2370
|
+
], InterviewInvite.prototype, "email", 2);
|
|
2371
|
+
__decorateClass([
|
|
2372
|
+
Column14({
|
|
2373
|
+
name: "status",
|
|
2374
|
+
type: "enum",
|
|
2375
|
+
enum: InterviewInviteStatusEnum,
|
|
2376
|
+
default: "PENDING" /* PENDING */,
|
|
2377
|
+
comment: "To manage invite status"
|
|
2378
|
+
})
|
|
2379
|
+
], InterviewInvite.prototype, "status", 2);
|
|
2380
|
+
__decorateClass([
|
|
2381
|
+
Column14({
|
|
2382
|
+
name: "sent_at",
|
|
2383
|
+
type: "timestamp with time zone",
|
|
2384
|
+
default: () => "CURRENT_TIMESTAMP",
|
|
2385
|
+
comment: "Timestamp when the invite was created/sent"
|
|
2386
|
+
})
|
|
2387
|
+
], InterviewInvite.prototype, "sentAt", 2);
|
|
2388
|
+
__decorateClass([
|
|
2389
|
+
Column14({
|
|
2390
|
+
name: "expired_at",
|
|
2391
|
+
type: "timestamp with time zone",
|
|
2392
|
+
comment: "Automatically expires invite after 72 hours",
|
|
2393
|
+
nullable: true
|
|
2394
|
+
})
|
|
2395
|
+
], InterviewInvite.prototype, "expiresAt", 2);
|
|
2396
|
+
__decorateClass([
|
|
2397
|
+
Column14({
|
|
2398
|
+
name: "responded_at",
|
|
2399
|
+
type: "timestamp with time zone",
|
|
2400
|
+
nullable: true,
|
|
2401
|
+
comment: "Timestamp when candidate responded."
|
|
2402
|
+
})
|
|
2403
|
+
], InterviewInvite.prototype, "respondedAt", 2);
|
|
2404
|
+
__decorateClass([
|
|
2405
|
+
Column14({
|
|
2406
|
+
name: "token",
|
|
2407
|
+
type: "varchar",
|
|
2408
|
+
unique: true,
|
|
2409
|
+
comment: "Secure unique token sent in email link for invite tracking",
|
|
2410
|
+
nullable: true
|
|
2411
|
+
}),
|
|
2412
|
+
Index9()
|
|
2413
|
+
], InterviewInvite.prototype, "token", 2);
|
|
2414
|
+
InterviewInvite = __decorateClass([
|
|
2415
|
+
Entity13("interview_invites")
|
|
2416
|
+
], InterviewInvite);
|
|
2417
|
+
|
|
2319
2418
|
// src/entities/interview.entity.ts
|
|
2320
2419
|
var InterviewStatusEnum = /* @__PURE__ */ ((InterviewStatusEnum2) => {
|
|
2321
2420
|
InterviewStatusEnum2["DRAFTED"] = "DRAFTED";
|
|
@@ -2328,38 +2427,38 @@ var InterviewStatusEnum = /* @__PURE__ */ ((InterviewStatusEnum2) => {
|
|
|
2328
2427
|
var Interview = class extends BaseEntity {
|
|
2329
2428
|
};
|
|
2330
2429
|
__decorateClass([
|
|
2331
|
-
|
|
2430
|
+
Column15({
|
|
2332
2431
|
name: "interview_id",
|
|
2333
2432
|
type: "varchar",
|
|
2334
2433
|
unique: true,
|
|
2335
2434
|
nullable: true
|
|
2336
2435
|
}),
|
|
2337
|
-
|
|
2436
|
+
Index10()
|
|
2338
2437
|
], Interview.prototype, "interviewId", 2);
|
|
2339
2438
|
__decorateClass([
|
|
2340
|
-
|
|
2341
|
-
|
|
2439
|
+
Column15({ name: "user_id", type: "integer", nullable: true }),
|
|
2440
|
+
Index10()
|
|
2342
2441
|
], Interview.prototype, "userId", 2);
|
|
2343
2442
|
__decorateClass([
|
|
2344
|
-
|
|
2345
|
-
|
|
2443
|
+
ManyToOne13(() => User, (user) => user.interviews),
|
|
2444
|
+
JoinColumn13({ name: "user_id" })
|
|
2346
2445
|
], Interview.prototype, "user", 2);
|
|
2347
2446
|
__decorateClass([
|
|
2348
|
-
|
|
2447
|
+
Column15({ name: "interview_name", type: "varchar", nullable: true })
|
|
2349
2448
|
], Interview.prototype, "interviewName", 2);
|
|
2350
2449
|
__decorateClass([
|
|
2351
|
-
|
|
2352
|
-
|
|
2450
|
+
Column15({ name: "job_id", type: "integer" }),
|
|
2451
|
+
Index10()
|
|
2353
2452
|
], Interview.prototype, "jobId", 2);
|
|
2354
2453
|
__decorateClass([
|
|
2355
|
-
|
|
2356
|
-
|
|
2454
|
+
ManyToOne13(() => Job, (job) => job.interviews, { onDelete: "CASCADE" }),
|
|
2455
|
+
JoinColumn13({ name: "job_id" })
|
|
2357
2456
|
], Interview.prototype, "job", 2);
|
|
2358
2457
|
__decorateClass([
|
|
2359
|
-
|
|
2458
|
+
Column15({ name: "interview_type", type: "varchar", nullable: true })
|
|
2360
2459
|
], Interview.prototype, "interviewType", 2);
|
|
2361
2460
|
__decorateClass([
|
|
2362
|
-
|
|
2461
|
+
Column15({
|
|
2363
2462
|
name: "status",
|
|
2364
2463
|
type: "enum",
|
|
2365
2464
|
enum: InterviewStatusEnum,
|
|
@@ -2380,10 +2479,56 @@ __decorateClass([
|
|
|
2380
2479
|
{ cascade: true }
|
|
2381
2480
|
)
|
|
2382
2481
|
], Interview.prototype, "interviewQuestions", 2);
|
|
2482
|
+
__decorateClass([
|
|
2483
|
+
OneToMany5(() => InterviewInvite, (interviewInvite) => interviewInvite.interview)
|
|
2484
|
+
], Interview.prototype, "invites", 2);
|
|
2383
2485
|
Interview = __decorateClass([
|
|
2384
|
-
|
|
2486
|
+
Entity14("interviews")
|
|
2385
2487
|
], Interview);
|
|
2386
2488
|
|
|
2489
|
+
// src/entities/job-recommendation.entity.ts
|
|
2490
|
+
import {
|
|
2491
|
+
Entity as Entity15,
|
|
2492
|
+
Column as Column16,
|
|
2493
|
+
Index as Index11,
|
|
2494
|
+
ManyToOne as ManyToOne14,
|
|
2495
|
+
JoinColumn as JoinColumn14
|
|
2496
|
+
} from "typeorm";
|
|
2497
|
+
var JobRecommendation = class {
|
|
2498
|
+
};
|
|
2499
|
+
__decorateClass([
|
|
2500
|
+
Column16({ name: "job_id", type: "integer" }),
|
|
2501
|
+
Index11()
|
|
2502
|
+
], JobRecommendation.prototype, "jobId", 2);
|
|
2503
|
+
__decorateClass([
|
|
2504
|
+
ManyToOne14(() => Job, (job) => job.recommendations, { onDelete: "CASCADE" }),
|
|
2505
|
+
JoinColumn14({ name: "job_id" })
|
|
2506
|
+
], JobRecommendation.prototype, "job", 2);
|
|
2507
|
+
__decorateClass([
|
|
2508
|
+
Column16({ name: "freelancer_id", type: "integer" }),
|
|
2509
|
+
Index11()
|
|
2510
|
+
], JobRecommendation.prototype, "freelancerId", 2);
|
|
2511
|
+
__decorateClass([
|
|
2512
|
+
Column16({ name: "client_id", type: "integer" }),
|
|
2513
|
+
Index11()
|
|
2514
|
+
], JobRecommendation.prototype, "clientId", 2);
|
|
2515
|
+
__decorateClass([
|
|
2516
|
+
Column16({ name: "match_score", type: "numeric", precision: 5, scale: 4 })
|
|
2517
|
+
], JobRecommendation.prototype, "matchScore", 2);
|
|
2518
|
+
__decorateClass([
|
|
2519
|
+
Column16({ name: "match_score_summary", type: "jsonb", nullable: true })
|
|
2520
|
+
], JobRecommendation.prototype, "matchScoreSummary", 2);
|
|
2521
|
+
__decorateClass([
|
|
2522
|
+
Column16({
|
|
2523
|
+
name: "last_calculated_at",
|
|
2524
|
+
type: "timestamp with local time zone",
|
|
2525
|
+
nullable: true
|
|
2526
|
+
})
|
|
2527
|
+
], JobRecommendation.prototype, "lastCalculatedAt", 2);
|
|
2528
|
+
JobRecommendation = __decorateClass([
|
|
2529
|
+
Entity15("job_recommendations")
|
|
2530
|
+
], JobRecommendation);
|
|
2531
|
+
|
|
2387
2532
|
// src/entities/job.entity.ts
|
|
2388
2533
|
var JobLocationEnum = /* @__PURE__ */ ((JobLocationEnum2) => {
|
|
2389
2534
|
JobLocationEnum2["ONSITE"] = "ONSITE";
|
|
@@ -2421,49 +2566,49 @@ var DurationTypeEnum = /* @__PURE__ */ ((DurationTypeEnum2) => {
|
|
|
2421
2566
|
var Job = class extends BaseEntity {
|
|
2422
2567
|
};
|
|
2423
2568
|
__decorateClass([
|
|
2424
|
-
|
|
2569
|
+
Column17({ name: "job_id", type: "varchar", unique: true, nullable: true })
|
|
2425
2570
|
], Job.prototype, "jobId", 2);
|
|
2426
2571
|
// individual index to find jobs by user
|
|
2427
2572
|
__decorateClass([
|
|
2428
|
-
|
|
2429
|
-
|
|
2573
|
+
Column17({ name: "user_id", type: "integer", nullable: true }),
|
|
2574
|
+
Index12()
|
|
2430
2575
|
], Job.prototype, "userId", 2);
|
|
2431
2576
|
__decorateClass([
|
|
2432
|
-
|
|
2433
|
-
|
|
2577
|
+
ManyToOne15(() => User, (user) => user.jobs),
|
|
2578
|
+
JoinColumn15({ name: "user_id" })
|
|
2434
2579
|
], Job.prototype, "user", 2);
|
|
2435
2580
|
__decorateClass([
|
|
2436
|
-
|
|
2581
|
+
Column17({ name: "country_id", type: "int", nullable: true })
|
|
2437
2582
|
], Job.prototype, "countryId", 2);
|
|
2438
2583
|
__decorateClass([
|
|
2439
|
-
|
|
2440
|
-
|
|
2584
|
+
ManyToOne15(() => Country),
|
|
2585
|
+
JoinColumn15({ name: "country_id" })
|
|
2441
2586
|
], Job.prototype, "country", 2);
|
|
2442
2587
|
__decorateClass([
|
|
2443
|
-
|
|
2588
|
+
Column17({ name: "state_id", type: "int", nullable: true })
|
|
2444
2589
|
], Job.prototype, "stateId", 2);
|
|
2445
2590
|
__decorateClass([
|
|
2446
|
-
|
|
2447
|
-
|
|
2591
|
+
ManyToOne15(() => State),
|
|
2592
|
+
JoinColumn15({ name: "state_id" })
|
|
2448
2593
|
], Job.prototype, "state", 2);
|
|
2449
2594
|
__decorateClass([
|
|
2450
|
-
|
|
2595
|
+
Column17({ name: "city_id", type: "int", nullable: true })
|
|
2451
2596
|
], Job.prototype, "cityId", 2);
|
|
2452
2597
|
__decorateClass([
|
|
2453
|
-
|
|
2454
|
-
|
|
2598
|
+
ManyToOne15(() => City),
|
|
2599
|
+
JoinColumn15({ name: "city_id" })
|
|
2455
2600
|
], Job.prototype, "city", 2);
|
|
2456
2601
|
__decorateClass([
|
|
2457
|
-
|
|
2602
|
+
Column17({ name: "job_role", type: "varchar", nullable: true })
|
|
2458
2603
|
], Job.prototype, "jobRole", 2);
|
|
2459
2604
|
__decorateClass([
|
|
2460
|
-
|
|
2605
|
+
Column17({ name: "note", type: "varchar", nullable: true })
|
|
2461
2606
|
], Job.prototype, "note", 2);
|
|
2462
2607
|
__decorateClass([
|
|
2463
|
-
|
|
2608
|
+
Column17({ name: "openings", type: "integer", default: 0 })
|
|
2464
2609
|
], Job.prototype, "openings", 2);
|
|
2465
2610
|
__decorateClass([
|
|
2466
|
-
|
|
2611
|
+
Column17({
|
|
2467
2612
|
name: "location",
|
|
2468
2613
|
type: "enum",
|
|
2469
2614
|
enum: JobLocationEnum,
|
|
@@ -2471,7 +2616,7 @@ __decorateClass([
|
|
|
2471
2616
|
})
|
|
2472
2617
|
], Job.prototype, "location", 2);
|
|
2473
2618
|
__decorateClass([
|
|
2474
|
-
|
|
2619
|
+
Column17({
|
|
2475
2620
|
name: "type_of_employment",
|
|
2476
2621
|
type: "enum",
|
|
2477
2622
|
enum: TypeOfEmploymentEnum,
|
|
@@ -2479,19 +2624,19 @@ __decorateClass([
|
|
|
2479
2624
|
})
|
|
2480
2625
|
], Job.prototype, "typeOfEmployment", 2);
|
|
2481
2626
|
__decorateClass([
|
|
2482
|
-
|
|
2627
|
+
Column17({ name: "academic_qualifictaion", type: "varchar", nullable: true })
|
|
2483
2628
|
], Job.prototype, "academicQualification", 2);
|
|
2484
2629
|
__decorateClass([
|
|
2485
|
-
|
|
2630
|
+
Column17({ name: "years_of_experience", type: "varchar", nullable: true })
|
|
2486
2631
|
], Job.prototype, "yearsOfExperience", 2);
|
|
2487
2632
|
__decorateClass([
|
|
2488
|
-
|
|
2633
|
+
Column17({ name: "business_industry", type: "varchar", nullable: true })
|
|
2489
2634
|
], Job.prototype, "businessIndustry", 2);
|
|
2490
2635
|
__decorateClass([
|
|
2491
|
-
|
|
2636
|
+
Column17({ name: "currency", type: "varchar", default: "USD" })
|
|
2492
2637
|
], Job.prototype, "currency", 2);
|
|
2493
2638
|
__decorateClass([
|
|
2494
|
-
|
|
2639
|
+
Column17({
|
|
2495
2640
|
name: "expected_salary_from",
|
|
2496
2641
|
type: "decimal",
|
|
2497
2642
|
precision: 10,
|
|
@@ -2500,7 +2645,7 @@ __decorateClass([
|
|
|
2500
2645
|
})
|
|
2501
2646
|
], Job.prototype, "expectedSalaryFrom", 2);
|
|
2502
2647
|
__decorateClass([
|
|
2503
|
-
|
|
2648
|
+
Column17({
|
|
2504
2649
|
name: "expected_salary_to",
|
|
2505
2650
|
type: "decimal",
|
|
2506
2651
|
precision: 10,
|
|
@@ -2509,16 +2654,16 @@ __decorateClass([
|
|
|
2509
2654
|
})
|
|
2510
2655
|
], Job.prototype, "expectedSalaryTo", 2);
|
|
2511
2656
|
__decorateClass([
|
|
2512
|
-
|
|
2657
|
+
Column17({ name: "tentative_start_date", type: "date", nullable: true })
|
|
2513
2658
|
], Job.prototype, "tentativeStartDate", 2);
|
|
2514
2659
|
__decorateClass([
|
|
2515
|
-
|
|
2660
|
+
Column17({ name: "tentative_end_date", type: "date", nullable: true })
|
|
2516
2661
|
], Job.prototype, "tentativeEndDate", 2);
|
|
2517
2662
|
__decorateClass([
|
|
2518
|
-
|
|
2663
|
+
Column17({ name: "duration", type: "varchar", nullable: true })
|
|
2519
2664
|
], Job.prototype, "duration", 2);
|
|
2520
2665
|
__decorateClass([
|
|
2521
|
-
|
|
2666
|
+
Column17({
|
|
2522
2667
|
name: "duration_type",
|
|
2523
2668
|
type: "enum",
|
|
2524
2669
|
enum: DurationTypeEnum,
|
|
@@ -2526,13 +2671,13 @@ __decorateClass([
|
|
|
2526
2671
|
})
|
|
2527
2672
|
], Job.prototype, "durationType", 2);
|
|
2528
2673
|
__decorateClass([
|
|
2529
|
-
|
|
2674
|
+
Column17({ name: "description", type: "varchar", nullable: true })
|
|
2530
2675
|
], Job.prototype, "description", 2);
|
|
2531
2676
|
__decorateClass([
|
|
2532
|
-
|
|
2677
|
+
Column17({ name: "additional_comment", type: "varchar", nullable: true })
|
|
2533
2678
|
], Job.prototype, "additionalComment", 2);
|
|
2534
2679
|
__decorateClass([
|
|
2535
|
-
|
|
2680
|
+
Column17({
|
|
2536
2681
|
name: "onboarding_tat",
|
|
2537
2682
|
type: "varchar",
|
|
2538
2683
|
length: 50,
|
|
@@ -2540,14 +2685,14 @@ __decorateClass([
|
|
|
2540
2685
|
})
|
|
2541
2686
|
], Job.prototype, "onboardingTat", 2);
|
|
2542
2687
|
__decorateClass([
|
|
2543
|
-
|
|
2688
|
+
Column17({
|
|
2544
2689
|
name: "candidate_communication_skills",
|
|
2545
2690
|
type: "varchar",
|
|
2546
2691
|
nullable: true
|
|
2547
2692
|
})
|
|
2548
2693
|
], Job.prototype, "candidateCommunicationSkills", 2);
|
|
2549
2694
|
__decorateClass([
|
|
2550
|
-
|
|
2695
|
+
Column17({
|
|
2551
2696
|
name: "step_completed",
|
|
2552
2697
|
type: "enum",
|
|
2553
2698
|
enum: Step,
|
|
@@ -2555,7 +2700,7 @@ __decorateClass([
|
|
|
2555
2700
|
})
|
|
2556
2701
|
], Job.prototype, "stepCompleted", 2);
|
|
2557
2702
|
__decorateClass([
|
|
2558
|
-
|
|
2703
|
+
Column17({
|
|
2559
2704
|
name: "status",
|
|
2560
2705
|
type: "enum",
|
|
2561
2706
|
enum: JobStatusEnum,
|
|
@@ -2563,10 +2708,10 @@ __decorateClass([
|
|
|
2563
2708
|
})
|
|
2564
2709
|
], Job.prototype, "status", 2);
|
|
2565
2710
|
__decorateClass([
|
|
2566
|
-
|
|
2711
|
+
Column17({ name: "viewed_count", type: "integer", default: 0 })
|
|
2567
2712
|
], Job.prototype, "viewedCount", 2);
|
|
2568
2713
|
__decorateClass([
|
|
2569
|
-
|
|
2714
|
+
Column17({ name: "application_count", type: "integer", default: 0 })
|
|
2570
2715
|
], Job.prototype, "applicationCount", 2);
|
|
2571
2716
|
__decorateClass([
|
|
2572
2717
|
OneToMany6(() => JobSkill, (jobSkill) => jobSkill.job, { cascade: true })
|
|
@@ -2581,17 +2726,22 @@ __decorateClass([
|
|
|
2581
2726
|
cascade: true
|
|
2582
2727
|
})
|
|
2583
2728
|
], Job.prototype, "interviews", 2);
|
|
2729
|
+
__decorateClass([
|
|
2730
|
+
OneToMany6(() => JobRecommendation, (jobRecommendation) => jobRecommendation.job, {
|
|
2731
|
+
cascade: true
|
|
2732
|
+
})
|
|
2733
|
+
], Job.prototype, "recommendations", 2);
|
|
2584
2734
|
Job = __decorateClass([
|
|
2585
|
-
|
|
2735
|
+
Entity16("jobs")
|
|
2586
2736
|
], Job);
|
|
2587
2737
|
|
|
2588
2738
|
// src/entities/bank-details.entity.ts
|
|
2589
2739
|
import {
|
|
2590
|
-
Entity as
|
|
2591
|
-
Column as
|
|
2592
|
-
Index as
|
|
2593
|
-
ManyToOne as
|
|
2594
|
-
JoinColumn as
|
|
2740
|
+
Entity as Entity17,
|
|
2741
|
+
Column as Column18,
|
|
2742
|
+
Index as Index13,
|
|
2743
|
+
ManyToOne as ManyToOne16,
|
|
2744
|
+
JoinColumn as JoinColumn16
|
|
2595
2745
|
} from "typeorm";
|
|
2596
2746
|
var BankAccountTypeEnum = /* @__PURE__ */ ((BankAccountTypeEnum2) => {
|
|
2597
2747
|
BankAccountTypeEnum2["PRIMARY"] = "PRIMARY";
|
|
@@ -2607,48 +2757,48 @@ var BankDetail = class extends BaseEntity {
|
|
|
2607
2757
|
};
|
|
2608
2758
|
// individual index to find bank details by user
|
|
2609
2759
|
__decorateClass([
|
|
2610
|
-
|
|
2611
|
-
|
|
2760
|
+
Column18({ name: "user_id", type: "integer", nullable: true }),
|
|
2761
|
+
Index13()
|
|
2612
2762
|
], BankDetail.prototype, "userId", 2);
|
|
2613
2763
|
__decorateClass([
|
|
2614
|
-
|
|
2615
|
-
|
|
2764
|
+
ManyToOne16(() => User, (user) => user.bankDetail),
|
|
2765
|
+
JoinColumn16({ name: "user_id" })
|
|
2616
2766
|
], BankDetail.prototype, "user", 2);
|
|
2617
2767
|
__decorateClass([
|
|
2618
|
-
|
|
2768
|
+
Column18({ name: "name", type: "varchar", nullable: true })
|
|
2619
2769
|
], BankDetail.prototype, "name", 2);
|
|
2620
2770
|
__decorateClass([
|
|
2621
|
-
|
|
2771
|
+
Column18({ name: "mobile", type: "varchar", unique: true, nullable: true })
|
|
2622
2772
|
], BankDetail.prototype, "mobile", 2);
|
|
2623
2773
|
__decorateClass([
|
|
2624
|
-
|
|
2774
|
+
Column18({ name: "email", type: "varchar", unique: true })
|
|
2625
2775
|
], BankDetail.prototype, "email", 2);
|
|
2626
2776
|
__decorateClass([
|
|
2627
|
-
|
|
2777
|
+
Column18({ name: "address", type: "varchar", nullable: true })
|
|
2628
2778
|
], BankDetail.prototype, "address", 2);
|
|
2629
2779
|
__decorateClass([
|
|
2630
|
-
|
|
2780
|
+
Column18({ name: "account_number", type: "varchar", unique: true, nullable: true })
|
|
2631
2781
|
], BankDetail.prototype, "accountNumber", 2);
|
|
2632
2782
|
__decorateClass([
|
|
2633
|
-
|
|
2783
|
+
Column18({ name: "bank_name", type: "varchar", nullable: true })
|
|
2634
2784
|
], BankDetail.prototype, "bankName", 2);
|
|
2635
2785
|
__decorateClass([
|
|
2636
|
-
|
|
2786
|
+
Column18({ name: "ifsc_code", type: "varchar", nullable: true })
|
|
2637
2787
|
], BankDetail.prototype, "ifscCode", 2);
|
|
2638
2788
|
__decorateClass([
|
|
2639
|
-
|
|
2789
|
+
Column18({ name: "branch_name", type: "varchar", nullable: true })
|
|
2640
2790
|
], BankDetail.prototype, "branchName", 2);
|
|
2641
2791
|
__decorateClass([
|
|
2642
|
-
|
|
2792
|
+
Column18({ name: "routing_no", type: "varchar", nullable: true })
|
|
2643
2793
|
], BankDetail.prototype, "routingNo", 2);
|
|
2644
2794
|
__decorateClass([
|
|
2645
|
-
|
|
2795
|
+
Column18({ name: "aba_no", type: "varchar", nullable: true })
|
|
2646
2796
|
], BankDetail.prototype, "abaNumber", 2);
|
|
2647
2797
|
__decorateClass([
|
|
2648
|
-
|
|
2798
|
+
Column18({ name: "iban", type: "varchar", nullable: true })
|
|
2649
2799
|
], BankDetail.prototype, "iban", 2);
|
|
2650
2800
|
__decorateClass([
|
|
2651
|
-
|
|
2801
|
+
Column18({
|
|
2652
2802
|
name: "account_type",
|
|
2653
2803
|
type: "enum",
|
|
2654
2804
|
enum: BankAccountTypeEnum,
|
|
@@ -2656,7 +2806,7 @@ __decorateClass([
|
|
|
2656
2806
|
})
|
|
2657
2807
|
], BankDetail.prototype, "accountType", 2);
|
|
2658
2808
|
__decorateClass([
|
|
2659
|
-
|
|
2809
|
+
Column18({
|
|
2660
2810
|
name: "account_scope",
|
|
2661
2811
|
type: "enum",
|
|
2662
2812
|
enum: BankAccountScopeEnum,
|
|
@@ -2664,263 +2814,263 @@ __decorateClass([
|
|
|
2664
2814
|
})
|
|
2665
2815
|
], BankDetail.prototype, "accountScope", 2);
|
|
2666
2816
|
BankDetail = __decorateClass([
|
|
2667
|
-
|
|
2817
|
+
Entity17("bank_details")
|
|
2668
2818
|
], BankDetail);
|
|
2669
2819
|
|
|
2670
2820
|
// src/entities/system-preference.entity.ts
|
|
2671
2821
|
import {
|
|
2672
|
-
Entity as
|
|
2673
|
-
Column as
|
|
2674
|
-
Index as
|
|
2675
|
-
ManyToOne as
|
|
2676
|
-
JoinColumn as
|
|
2822
|
+
Entity as Entity18,
|
|
2823
|
+
Column as Column19,
|
|
2824
|
+
Index as Index14,
|
|
2825
|
+
ManyToOne as ManyToOne17,
|
|
2826
|
+
JoinColumn as JoinColumn17
|
|
2677
2827
|
} from "typeorm";
|
|
2678
2828
|
var SystemPreference = class extends BaseEntity {
|
|
2679
2829
|
};
|
|
2680
2830
|
// individual index to find system preference by user
|
|
2681
2831
|
__decorateClass([
|
|
2682
|
-
|
|
2683
|
-
|
|
2832
|
+
Column19({ name: "user_id", type: "integer", nullable: true }),
|
|
2833
|
+
Index14()
|
|
2684
2834
|
], SystemPreference.prototype, "userId", 2);
|
|
2685
2835
|
__decorateClass([
|
|
2686
|
-
|
|
2687
|
-
|
|
2836
|
+
ManyToOne17(() => User, (user) => user.systemPreference),
|
|
2837
|
+
JoinColumn17({ name: "user_id" })
|
|
2688
2838
|
], SystemPreference.prototype, "user", 2);
|
|
2689
2839
|
__decorateClass([
|
|
2690
|
-
|
|
2840
|
+
Column19({ name: "key", type: "varchar", nullable: false })
|
|
2691
2841
|
], SystemPreference.prototype, "key", 2);
|
|
2692
2842
|
__decorateClass([
|
|
2693
|
-
|
|
2843
|
+
Column19({ name: "value", type: "boolean", default: false })
|
|
2694
2844
|
], SystemPreference.prototype, "value", 2);
|
|
2695
2845
|
SystemPreference = __decorateClass([
|
|
2696
|
-
|
|
2846
|
+
Entity18("system_preferences")
|
|
2697
2847
|
], SystemPreference);
|
|
2698
2848
|
|
|
2699
2849
|
// src/entities/freelancer-experience.entity.ts
|
|
2700
2850
|
import {
|
|
2701
|
-
Entity as
|
|
2702
|
-
Column as
|
|
2703
|
-
Index as
|
|
2704
|
-
ManyToOne as
|
|
2705
|
-
JoinColumn as
|
|
2851
|
+
Entity as Entity19,
|
|
2852
|
+
Column as Column20,
|
|
2853
|
+
Index as Index15,
|
|
2854
|
+
ManyToOne as ManyToOne18,
|
|
2855
|
+
JoinColumn as JoinColumn18
|
|
2706
2856
|
} from "typeorm";
|
|
2707
2857
|
var FreelancerExperience = class extends BaseEntity {
|
|
2708
2858
|
};
|
|
2709
2859
|
// individual index to find experence by user
|
|
2710
2860
|
__decorateClass([
|
|
2711
|
-
|
|
2712
|
-
|
|
2861
|
+
Column20({ name: "user_id", type: "integer", nullable: true }),
|
|
2862
|
+
Index15()
|
|
2713
2863
|
], FreelancerExperience.prototype, "userId", 2);
|
|
2714
2864
|
__decorateClass([
|
|
2715
|
-
|
|
2716
|
-
|
|
2865
|
+
ManyToOne18(() => User, (user) => user.freelancerExperience),
|
|
2866
|
+
JoinColumn18({ name: "user_id" })
|
|
2717
2867
|
], FreelancerExperience.prototype, "user", 2);
|
|
2718
2868
|
__decorateClass([
|
|
2719
|
-
|
|
2869
|
+
Column20({ name: "company_name", type: "varchar", nullable: true })
|
|
2720
2870
|
], FreelancerExperience.prototype, "companyName", 2);
|
|
2721
2871
|
__decorateClass([
|
|
2722
|
-
|
|
2872
|
+
Column20({ name: "designation", type: "varchar", nullable: true })
|
|
2723
2873
|
], FreelancerExperience.prototype, "designation", 2);
|
|
2724
2874
|
__decorateClass([
|
|
2725
|
-
|
|
2875
|
+
Column20({ name: "job_duration", type: "varchar", nullable: true })
|
|
2726
2876
|
], FreelancerExperience.prototype, "jobDuration", 2);
|
|
2727
2877
|
__decorateClass([
|
|
2728
|
-
|
|
2878
|
+
Column20({ name: "description", type: "varchar", nullable: true })
|
|
2729
2879
|
], FreelancerExperience.prototype, "description", 2);
|
|
2730
2880
|
FreelancerExperience = __decorateClass([
|
|
2731
|
-
|
|
2881
|
+
Entity19("freelancer_experiences")
|
|
2732
2882
|
], FreelancerExperience);
|
|
2733
2883
|
|
|
2734
2884
|
// src/entities/freelancer-education.entity.ts
|
|
2735
2885
|
import {
|
|
2736
|
-
Entity as
|
|
2737
|
-
Column as
|
|
2738
|
-
Index as
|
|
2739
|
-
ManyToOne as
|
|
2740
|
-
JoinColumn as
|
|
2886
|
+
Entity as Entity20,
|
|
2887
|
+
Column as Column21,
|
|
2888
|
+
Index as Index16,
|
|
2889
|
+
ManyToOne as ManyToOne19,
|
|
2890
|
+
JoinColumn as JoinColumn19
|
|
2741
2891
|
} from "typeorm";
|
|
2742
2892
|
var FreelancerEducation = class extends BaseEntity {
|
|
2743
2893
|
};
|
|
2744
2894
|
// individual index to find education by user
|
|
2745
2895
|
__decorateClass([
|
|
2746
|
-
|
|
2747
|
-
|
|
2896
|
+
Column21({ name: "user_id", type: "integer", nullable: true }),
|
|
2897
|
+
Index16()
|
|
2748
2898
|
], FreelancerEducation.prototype, "userId", 2);
|
|
2749
2899
|
__decorateClass([
|
|
2750
|
-
|
|
2751
|
-
|
|
2900
|
+
ManyToOne19(() => User, (user) => user.freelancerEducation),
|
|
2901
|
+
JoinColumn19({ name: "user_id" })
|
|
2752
2902
|
], FreelancerEducation.prototype, "user", 2);
|
|
2753
2903
|
__decorateClass([
|
|
2754
|
-
|
|
2904
|
+
Column21({ name: "degree", type: "varchar", nullable: true })
|
|
2755
2905
|
], FreelancerEducation.prototype, "degree", 2);
|
|
2756
2906
|
__decorateClass([
|
|
2757
|
-
|
|
2907
|
+
Column21({ name: "university", type: "varchar", nullable: true })
|
|
2758
2908
|
], FreelancerEducation.prototype, "university", 2);
|
|
2759
2909
|
__decorateClass([
|
|
2760
|
-
|
|
2910
|
+
Column21({ name: "year_of_graduation", type: "varchar", nullable: true })
|
|
2761
2911
|
], FreelancerEducation.prototype, "yearOfGraduation", 2);
|
|
2762
2912
|
FreelancerEducation = __decorateClass([
|
|
2763
|
-
|
|
2913
|
+
Entity20("freelancer_educations")
|
|
2764
2914
|
], FreelancerEducation);
|
|
2765
2915
|
|
|
2766
2916
|
// src/entities/freelancer-project.entity.ts
|
|
2767
2917
|
import {
|
|
2768
|
-
Entity as
|
|
2769
|
-
Column as
|
|
2770
|
-
Index as
|
|
2771
|
-
ManyToOne as
|
|
2772
|
-
JoinColumn as
|
|
2918
|
+
Entity as Entity21,
|
|
2919
|
+
Column as Column22,
|
|
2920
|
+
Index as Index17,
|
|
2921
|
+
ManyToOne as ManyToOne20,
|
|
2922
|
+
JoinColumn as JoinColumn20
|
|
2773
2923
|
} from "typeorm";
|
|
2774
2924
|
var FreelancerProject = class extends BaseEntity {
|
|
2775
2925
|
};
|
|
2776
2926
|
// individual index to find project by user
|
|
2777
2927
|
__decorateClass([
|
|
2778
|
-
|
|
2779
|
-
|
|
2928
|
+
Column22({ name: "user_id", type: "integer", nullable: true }),
|
|
2929
|
+
Index17()
|
|
2780
2930
|
], FreelancerProject.prototype, "userId", 2);
|
|
2781
2931
|
__decorateClass([
|
|
2782
|
-
|
|
2783
|
-
|
|
2932
|
+
ManyToOne20(() => User, (user) => user.freelancerProject),
|
|
2933
|
+
JoinColumn20({ name: "user_id" })
|
|
2784
2934
|
], FreelancerProject.prototype, "user", 2);
|
|
2785
2935
|
__decorateClass([
|
|
2786
|
-
|
|
2936
|
+
Column22({ name: "project_name", type: "varchar", nullable: true })
|
|
2787
2937
|
], FreelancerProject.prototype, "projectName", 2);
|
|
2788
2938
|
__decorateClass([
|
|
2789
|
-
|
|
2939
|
+
Column22({ name: "start_date", type: "date", nullable: true })
|
|
2790
2940
|
], FreelancerProject.prototype, "startDate", 2);
|
|
2791
2941
|
__decorateClass([
|
|
2792
|
-
|
|
2942
|
+
Column22({ name: "end_date", type: "date", nullable: true })
|
|
2793
2943
|
], FreelancerProject.prototype, "endDate", 2);
|
|
2794
2944
|
__decorateClass([
|
|
2795
|
-
|
|
2945
|
+
Column22({ name: "client_name", type: "varchar", nullable: true })
|
|
2796
2946
|
], FreelancerProject.prototype, "clientName", 2);
|
|
2797
2947
|
__decorateClass([
|
|
2798
|
-
|
|
2948
|
+
Column22({ name: "git_link", type: "varchar", nullable: true })
|
|
2799
2949
|
], FreelancerProject.prototype, "gitLink", 2);
|
|
2800
2950
|
__decorateClass([
|
|
2801
|
-
|
|
2951
|
+
Column22({ name: "description", type: "varchar", nullable: true })
|
|
2802
2952
|
], FreelancerProject.prototype, "description", 2);
|
|
2803
2953
|
FreelancerProject = __decorateClass([
|
|
2804
|
-
|
|
2954
|
+
Entity21("freelancer_projects")
|
|
2805
2955
|
], FreelancerProject);
|
|
2806
2956
|
|
|
2807
2957
|
// src/entities/freelancer-casestudy.entity.ts
|
|
2808
2958
|
import {
|
|
2809
|
-
Entity as
|
|
2810
|
-
Column as
|
|
2811
|
-
Index as
|
|
2812
|
-
ManyToOne as
|
|
2813
|
-
JoinColumn as
|
|
2959
|
+
Entity as Entity22,
|
|
2960
|
+
Column as Column23,
|
|
2961
|
+
Index as Index18,
|
|
2962
|
+
ManyToOne as ManyToOne21,
|
|
2963
|
+
JoinColumn as JoinColumn21
|
|
2814
2964
|
} from "typeorm";
|
|
2815
2965
|
var FreelancerCaseStudy = class extends BaseEntity {
|
|
2816
2966
|
};
|
|
2817
2967
|
// individual index to find case study by user
|
|
2818
2968
|
__decorateClass([
|
|
2819
|
-
|
|
2820
|
-
|
|
2969
|
+
Column23({ name: "user_id", type: "integer", nullable: true }),
|
|
2970
|
+
Index18()
|
|
2821
2971
|
], FreelancerCaseStudy.prototype, "userId", 2);
|
|
2822
2972
|
__decorateClass([
|
|
2823
|
-
|
|
2824
|
-
|
|
2973
|
+
ManyToOne21(() => User, (user) => user.freelancerCaseStudy),
|
|
2974
|
+
JoinColumn21({ name: "user_id" })
|
|
2825
2975
|
], FreelancerCaseStudy.prototype, "user", 2);
|
|
2826
2976
|
__decorateClass([
|
|
2827
|
-
|
|
2977
|
+
Column23({ name: "project_name", type: "varchar", nullable: true })
|
|
2828
2978
|
], FreelancerCaseStudy.prototype, "projectName", 2);
|
|
2829
2979
|
__decorateClass([
|
|
2830
|
-
|
|
2980
|
+
Column23({ name: "case_study_link", type: "varchar", nullable: true })
|
|
2831
2981
|
], FreelancerCaseStudy.prototype, "caseStudyLink", 2);
|
|
2832
2982
|
__decorateClass([
|
|
2833
|
-
|
|
2983
|
+
Column23({ name: "description", type: "varchar", nullable: true })
|
|
2834
2984
|
], FreelancerCaseStudy.prototype, "description", 2);
|
|
2835
2985
|
FreelancerCaseStudy = __decorateClass([
|
|
2836
|
-
|
|
2986
|
+
Entity22("freelancer_case_studies")
|
|
2837
2987
|
], FreelancerCaseStudy);
|
|
2838
2988
|
|
|
2839
2989
|
// src/entities/freelancer-skill.entity.ts
|
|
2840
2990
|
import {
|
|
2841
|
-
Entity as
|
|
2842
|
-
Column as
|
|
2843
|
-
Index as
|
|
2844
|
-
ManyToOne as
|
|
2845
|
-
JoinColumn as
|
|
2991
|
+
Entity as Entity23,
|
|
2992
|
+
Column as Column24,
|
|
2993
|
+
Index as Index19,
|
|
2994
|
+
ManyToOne as ManyToOne22,
|
|
2995
|
+
JoinColumn as JoinColumn22
|
|
2846
2996
|
} from "typeorm";
|
|
2847
2997
|
var FreelancerSkill = class extends BaseEntity {
|
|
2848
2998
|
};
|
|
2849
2999
|
// individual index to find core skills by user
|
|
2850
3000
|
__decorateClass([
|
|
2851
|
-
|
|
2852
|
-
|
|
3001
|
+
Column24({ name: "user_id", type: "integer", nullable: true }),
|
|
3002
|
+
Index19()
|
|
2853
3003
|
], FreelancerSkill.prototype, "userId", 2);
|
|
2854
3004
|
__decorateClass([
|
|
2855
|
-
|
|
2856
|
-
|
|
3005
|
+
ManyToOne22(() => User, (user) => user.freelancerSkills),
|
|
3006
|
+
JoinColumn22({ name: "user_id" })
|
|
2857
3007
|
], FreelancerSkill.prototype, "user", 2);
|
|
2858
3008
|
__decorateClass([
|
|
2859
|
-
|
|
3009
|
+
Column24({ name: "skill_name", type: "varchar", nullable: true })
|
|
2860
3010
|
], FreelancerSkill.prototype, "skillName", 2);
|
|
2861
3011
|
FreelancerSkill = __decorateClass([
|
|
2862
|
-
|
|
3012
|
+
Entity23("freelancer_skills")
|
|
2863
3013
|
], FreelancerSkill);
|
|
2864
3014
|
|
|
2865
3015
|
// src/entities/freelancer-tool.entity.ts
|
|
2866
3016
|
import {
|
|
2867
|
-
Entity as
|
|
2868
|
-
Column as
|
|
2869
|
-
Index as
|
|
2870
|
-
ManyToOne as
|
|
2871
|
-
JoinColumn as
|
|
3017
|
+
Entity as Entity24,
|
|
3018
|
+
Column as Column25,
|
|
3019
|
+
Index as Index20,
|
|
3020
|
+
ManyToOne as ManyToOne23,
|
|
3021
|
+
JoinColumn as JoinColumn23
|
|
2872
3022
|
} from "typeorm";
|
|
2873
3023
|
var FreelancerTool = class extends BaseEntity {
|
|
2874
3024
|
};
|
|
2875
3025
|
// individual index to find tool by user
|
|
2876
3026
|
__decorateClass([
|
|
2877
|
-
|
|
2878
|
-
|
|
3027
|
+
Column25({ name: "user_id", type: "integer", nullable: true }),
|
|
3028
|
+
Index20()
|
|
2879
3029
|
], FreelancerTool.prototype, "userId", 2);
|
|
2880
3030
|
__decorateClass([
|
|
2881
|
-
|
|
2882
|
-
|
|
3031
|
+
ManyToOne23(() => User, (user) => user.freelancerTool),
|
|
3032
|
+
JoinColumn23({ name: "user_id" })
|
|
2883
3033
|
], FreelancerTool.prototype, "user", 2);
|
|
2884
3034
|
__decorateClass([
|
|
2885
|
-
|
|
3035
|
+
Column25({ name: "tool_name", type: "varchar", nullable: true })
|
|
2886
3036
|
], FreelancerTool.prototype, "toolName", 2);
|
|
2887
3037
|
FreelancerTool = __decorateClass([
|
|
2888
|
-
|
|
3038
|
+
Entity24("freelancer_tools")
|
|
2889
3039
|
], FreelancerTool);
|
|
2890
3040
|
|
|
2891
3041
|
// src/entities/freelancer-framework.entity.ts
|
|
2892
3042
|
import {
|
|
2893
|
-
Entity as
|
|
2894
|
-
Column as
|
|
2895
|
-
Index as
|
|
2896
|
-
ManyToOne as
|
|
2897
|
-
JoinColumn as
|
|
3043
|
+
Entity as Entity25,
|
|
3044
|
+
Column as Column26,
|
|
3045
|
+
Index as Index21,
|
|
3046
|
+
ManyToOne as ManyToOne24,
|
|
3047
|
+
JoinColumn as JoinColumn24
|
|
2898
3048
|
} from "typeorm";
|
|
2899
3049
|
var FreelancerFramework = class extends BaseEntity {
|
|
2900
3050
|
};
|
|
2901
3051
|
// individual index to find framework by user
|
|
2902
3052
|
__decorateClass([
|
|
2903
|
-
|
|
2904
|
-
|
|
3053
|
+
Column26({ name: "user_id", type: "integer", nullable: true }),
|
|
3054
|
+
Index21()
|
|
2905
3055
|
], FreelancerFramework.prototype, "userId", 2);
|
|
2906
3056
|
__decorateClass([
|
|
2907
|
-
|
|
2908
|
-
|
|
3057
|
+
ManyToOne24(() => User, (user) => user.freelancerFramework),
|
|
3058
|
+
JoinColumn24({ name: "user_id" })
|
|
2909
3059
|
], FreelancerFramework.prototype, "user", 2);
|
|
2910
3060
|
__decorateClass([
|
|
2911
|
-
|
|
3061
|
+
Column26({ name: "framework_name", type: "varchar", nullable: true })
|
|
2912
3062
|
], FreelancerFramework.prototype, "frameworkName", 2);
|
|
2913
3063
|
FreelancerFramework = __decorateClass([
|
|
2914
|
-
|
|
3064
|
+
Entity25("freelancer_frameworks")
|
|
2915
3065
|
], FreelancerFramework);
|
|
2916
3066
|
|
|
2917
3067
|
// src/entities/freelancer-assessment.entity.ts
|
|
2918
3068
|
import {
|
|
2919
|
-
Entity as
|
|
2920
|
-
Column as
|
|
2921
|
-
Index as
|
|
2922
|
-
ManyToOne as
|
|
2923
|
-
JoinColumn as
|
|
3069
|
+
Entity as Entity26,
|
|
3070
|
+
Column as Column27,
|
|
3071
|
+
Index as Index22,
|
|
3072
|
+
ManyToOne as ManyToOne25,
|
|
3073
|
+
JoinColumn as JoinColumn25
|
|
2924
3074
|
} from "typeorm";
|
|
2925
3075
|
var AssessmentStatusEnum = /* @__PURE__ */ ((AssessmentStatusEnum2) => {
|
|
2926
3076
|
AssessmentStatusEnum2["NOT_ATTEMPTED"] = "NOT_ATTEMPTED";
|
|
@@ -2937,30 +3087,30 @@ var AssessmentStatusEnum = /* @__PURE__ */ ((AssessmentStatusEnum2) => {
|
|
|
2937
3087
|
var FreelancerAssessment = class extends BaseEntity {
|
|
2938
3088
|
};
|
|
2939
3089
|
__decorateClass([
|
|
2940
|
-
|
|
2941
|
-
|
|
3090
|
+
Column27({ name: "user_id", type: "integer", nullable: true }),
|
|
3091
|
+
Index22()
|
|
2942
3092
|
], FreelancerAssessment.prototype, "userId", 2);
|
|
2943
3093
|
__decorateClass([
|
|
2944
|
-
|
|
2945
|
-
|
|
3094
|
+
ManyToOne25(() => User, (user) => user.assessments),
|
|
3095
|
+
JoinColumn25({ name: "user_id" })
|
|
2946
3096
|
], FreelancerAssessment.prototype, "user", 2);
|
|
2947
3097
|
__decorateClass([
|
|
2948
|
-
|
|
3098
|
+
Column27({ name: "interview_id", type: "varchar", nullable: true })
|
|
2949
3099
|
], FreelancerAssessment.prototype, "interviewId", 2);
|
|
2950
3100
|
__decorateClass([
|
|
2951
|
-
|
|
3101
|
+
Column27({ name: "interview_link", type: "text", nullable: true })
|
|
2952
3102
|
], FreelancerAssessment.prototype, "interviewLink", 2);
|
|
2953
3103
|
__decorateClass([
|
|
2954
|
-
|
|
3104
|
+
Column27({ name: "recording_link", type: "text", nullable: true })
|
|
2955
3105
|
], FreelancerAssessment.prototype, "recordingLink", 2);
|
|
2956
3106
|
__decorateClass([
|
|
2957
|
-
|
|
3107
|
+
Column27({ name: "iframe_response", type: "jsonb", nullable: true })
|
|
2958
3108
|
], FreelancerAssessment.prototype, "iframeResponse", 2);
|
|
2959
3109
|
__decorateClass([
|
|
2960
|
-
|
|
3110
|
+
Column27({ name: "interview_summary", type: "jsonb", nullable: true })
|
|
2961
3111
|
], FreelancerAssessment.prototype, "interviewSummary", 2);
|
|
2962
3112
|
__decorateClass([
|
|
2963
|
-
|
|
3113
|
+
Column27({
|
|
2964
3114
|
name: "status",
|
|
2965
3115
|
type: "enum",
|
|
2966
3116
|
enum: AssessmentStatusEnum,
|
|
@@ -2968,16 +3118,16 @@ __decorateClass([
|
|
|
2968
3118
|
})
|
|
2969
3119
|
], FreelancerAssessment.prototype, "status", 2);
|
|
2970
3120
|
FreelancerAssessment = __decorateClass([
|
|
2971
|
-
|
|
3121
|
+
Entity26("freelancer_assessments")
|
|
2972
3122
|
], FreelancerAssessment);
|
|
2973
3123
|
|
|
2974
3124
|
// src/entities/freelancer-declaration.entity.ts
|
|
2975
3125
|
import {
|
|
2976
|
-
Entity as
|
|
2977
|
-
Column as
|
|
2978
|
-
Index as
|
|
2979
|
-
ManyToOne as
|
|
2980
|
-
JoinColumn as
|
|
3126
|
+
Entity as Entity27,
|
|
3127
|
+
Column as Column28,
|
|
3128
|
+
Index as Index23,
|
|
3129
|
+
ManyToOne as ManyToOne26,
|
|
3130
|
+
JoinColumn as JoinColumn26
|
|
2981
3131
|
} from "typeorm";
|
|
2982
3132
|
var DocumentType = /* @__PURE__ */ ((DocumentType2) => {
|
|
2983
3133
|
DocumentType2["AADHAAR"] = "AADHAAR_CARD";
|
|
@@ -2990,15 +3140,15 @@ var FreelancerDeclaration = class extends BaseEntity {
|
|
|
2990
3140
|
};
|
|
2991
3141
|
// individual index to find declaration by user
|
|
2992
3142
|
__decorateClass([
|
|
2993
|
-
|
|
2994
|
-
|
|
3143
|
+
Column28({ name: "user_id", type: "integer", nullable: true }),
|
|
3144
|
+
Index23()
|
|
2995
3145
|
], FreelancerDeclaration.prototype, "userId", 2);
|
|
2996
3146
|
__decorateClass([
|
|
2997
|
-
|
|
2998
|
-
|
|
3147
|
+
ManyToOne26(() => User, (user) => user.freelancerDeclaration),
|
|
3148
|
+
JoinColumn26({ name: "user_id" })
|
|
2999
3149
|
], FreelancerDeclaration.prototype, "user", 2);
|
|
3000
3150
|
__decorateClass([
|
|
3001
|
-
|
|
3151
|
+
Column28({
|
|
3002
3152
|
name: "document_type",
|
|
3003
3153
|
type: "enum",
|
|
3004
3154
|
enum: DocumentType,
|
|
@@ -3006,175 +3156,175 @@ __decorateClass([
|
|
|
3006
3156
|
})
|
|
3007
3157
|
], FreelancerDeclaration.prototype, "documentType", 2);
|
|
3008
3158
|
__decorateClass([
|
|
3009
|
-
|
|
3159
|
+
Column28({ name: "front_document_url", type: "varchar", nullable: true })
|
|
3010
3160
|
], FreelancerDeclaration.prototype, "frontDocumentUrl", 2);
|
|
3011
3161
|
__decorateClass([
|
|
3012
|
-
|
|
3162
|
+
Column28({ name: "back_document_url", type: "varchar", nullable: true })
|
|
3013
3163
|
], FreelancerDeclaration.prototype, "backDocumentUrl", 2);
|
|
3014
3164
|
__decorateClass([
|
|
3015
|
-
|
|
3165
|
+
Column28({ name: "declaration_accepted", type: "boolean", default: false })
|
|
3016
3166
|
], FreelancerDeclaration.prototype, "declarationAccepted", 2);
|
|
3017
3167
|
__decorateClass([
|
|
3018
|
-
|
|
3168
|
+
Column28({ name: "digital_signature_url", type: "varchar", nullable: true })
|
|
3019
3169
|
], FreelancerDeclaration.prototype, "digitalSignatureUrl", 2);
|
|
3020
3170
|
FreelancerDeclaration = __decorateClass([
|
|
3021
|
-
|
|
3171
|
+
Entity27("freelancer_declaration")
|
|
3022
3172
|
], FreelancerDeclaration);
|
|
3023
3173
|
|
|
3024
3174
|
// src/entities/company-members-roles.entity.ts
|
|
3025
3175
|
import {
|
|
3026
|
-
Column as
|
|
3027
|
-
Entity as
|
|
3028
|
-
ManyToOne as
|
|
3029
|
-
JoinColumn as
|
|
3030
|
-
Index as
|
|
3176
|
+
Column as Column32,
|
|
3177
|
+
Entity as Entity31,
|
|
3178
|
+
ManyToOne as ManyToOne29,
|
|
3179
|
+
JoinColumn as JoinColumn29,
|
|
3180
|
+
Index as Index27
|
|
3031
3181
|
} from "typeorm";
|
|
3032
3182
|
|
|
3033
3183
|
// src/entities/company-role.entity.ts
|
|
3034
3184
|
import {
|
|
3035
|
-
Column as
|
|
3036
|
-
Entity as
|
|
3037
|
-
Index as
|
|
3038
|
-
JoinColumn as
|
|
3039
|
-
ManyToOne as
|
|
3185
|
+
Column as Column31,
|
|
3186
|
+
Entity as Entity30,
|
|
3187
|
+
Index as Index26,
|
|
3188
|
+
JoinColumn as JoinColumn28,
|
|
3189
|
+
ManyToOne as ManyToOne28,
|
|
3040
3190
|
OneToMany as OneToMany8
|
|
3041
3191
|
} from "typeorm";
|
|
3042
3192
|
|
|
3043
3193
|
// src/entities/company-role-permission.entity.ts
|
|
3044
3194
|
import {
|
|
3045
|
-
Column as
|
|
3046
|
-
Entity as
|
|
3047
|
-
ManyToOne as
|
|
3048
|
-
JoinColumn as
|
|
3049
|
-
Index as
|
|
3195
|
+
Column as Column30,
|
|
3196
|
+
Entity as Entity29,
|
|
3197
|
+
ManyToOne as ManyToOne27,
|
|
3198
|
+
JoinColumn as JoinColumn27,
|
|
3199
|
+
Index as Index25
|
|
3050
3200
|
} from "typeorm";
|
|
3051
3201
|
|
|
3052
3202
|
// src/entities/permission.entity.ts
|
|
3053
|
-
import { Column as
|
|
3203
|
+
import { Column as Column29, Entity as Entity28, Index as Index24 } from "typeorm";
|
|
3054
3204
|
var Permission = class extends BaseEntity {
|
|
3055
3205
|
};
|
|
3056
3206
|
__decorateClass([
|
|
3057
|
-
|
|
3207
|
+
Column29({ name: "name", type: "varchar", nullable: true })
|
|
3058
3208
|
], Permission.prototype, "name", 2);
|
|
3059
3209
|
__decorateClass([
|
|
3060
|
-
|
|
3061
|
-
|
|
3210
|
+
Column29({ name: "slug", type: "varchar", nullable: true, unique: true }),
|
|
3211
|
+
Index24()
|
|
3062
3212
|
], Permission.prototype, "slug", 2);
|
|
3063
3213
|
__decorateClass([
|
|
3064
|
-
|
|
3214
|
+
Column29({ name: "description", type: "text", nullable: true })
|
|
3065
3215
|
], Permission.prototype, "description", 2);
|
|
3066
3216
|
__decorateClass([
|
|
3067
|
-
|
|
3217
|
+
Column29({ name: "is_active", type: "boolean", default: true })
|
|
3068
3218
|
], Permission.prototype, "isActive", 2);
|
|
3069
3219
|
Permission = __decorateClass([
|
|
3070
|
-
|
|
3220
|
+
Entity28("permissions")
|
|
3071
3221
|
], Permission);
|
|
3072
3222
|
|
|
3073
3223
|
// src/entities/company-role-permission.entity.ts
|
|
3074
3224
|
var CompanyRolePermission = class extends BaseEntity {
|
|
3075
3225
|
};
|
|
3076
3226
|
__decorateClass([
|
|
3077
|
-
|
|
3078
|
-
|
|
3227
|
+
Column30({ name: "company_role_id", type: "integer", nullable: true }),
|
|
3228
|
+
Index25()
|
|
3079
3229
|
], CompanyRolePermission.prototype, "companyRoleId", 2);
|
|
3080
3230
|
__decorateClass([
|
|
3081
|
-
|
|
3231
|
+
ManyToOne27(() => CompanyRole, (role) => role.rolePermissions, {
|
|
3082
3232
|
onDelete: "CASCADE"
|
|
3083
3233
|
}),
|
|
3084
|
-
|
|
3234
|
+
JoinColumn27({ name: "company_role_id" })
|
|
3085
3235
|
], CompanyRolePermission.prototype, "companyRole", 2);
|
|
3086
3236
|
__decorateClass([
|
|
3087
|
-
|
|
3088
|
-
|
|
3237
|
+
Column30({ name: "permission_id", type: "integer" }),
|
|
3238
|
+
Index25()
|
|
3089
3239
|
], CompanyRolePermission.prototype, "permissionId", 2);
|
|
3090
3240
|
__decorateClass([
|
|
3091
|
-
|
|
3092
|
-
|
|
3241
|
+
ManyToOne27(() => Permission, { onDelete: "CASCADE" }),
|
|
3242
|
+
JoinColumn27({ name: "permission_id" })
|
|
3093
3243
|
], CompanyRolePermission.prototype, "permission", 2);
|
|
3094
3244
|
__decorateClass([
|
|
3095
|
-
|
|
3245
|
+
Column30({ name: "assigned_by", type: "integer", nullable: true })
|
|
3096
3246
|
], CompanyRolePermission.prototype, "assignedBy", 2);
|
|
3097
3247
|
CompanyRolePermission = __decorateClass([
|
|
3098
|
-
|
|
3248
|
+
Entity29("company_role_permissions")
|
|
3099
3249
|
], CompanyRolePermission);
|
|
3100
3250
|
|
|
3101
3251
|
// src/entities/company-role.entity.ts
|
|
3102
3252
|
var CompanyRole = class extends BaseEntity {
|
|
3103
3253
|
};
|
|
3104
3254
|
__decorateClass([
|
|
3105
|
-
|
|
3106
|
-
|
|
3255
|
+
Column31({ name: "user_id", type: "integer", nullable: true }),
|
|
3256
|
+
Index26()
|
|
3107
3257
|
], CompanyRole.prototype, "userId", 2);
|
|
3108
3258
|
__decorateClass([
|
|
3109
|
-
|
|
3110
|
-
|
|
3259
|
+
ManyToOne28(() => User, (user) => user.otps),
|
|
3260
|
+
JoinColumn28({ name: "user_id" })
|
|
3111
3261
|
], CompanyRole.prototype, "user", 2);
|
|
3112
3262
|
__decorateClass([
|
|
3113
|
-
|
|
3263
|
+
Column31({ name: "name", type: "varchar" })
|
|
3114
3264
|
], CompanyRole.prototype, "name", 2);
|
|
3115
3265
|
__decorateClass([
|
|
3116
|
-
|
|
3117
|
-
|
|
3266
|
+
Column31({ name: "slug", type: "varchar", nullable: true, unique: true }),
|
|
3267
|
+
Index26()
|
|
3118
3268
|
], CompanyRole.prototype, "slug", 2);
|
|
3119
3269
|
__decorateClass([
|
|
3120
|
-
|
|
3270
|
+
Column31({ name: "description", type: "text", nullable: true })
|
|
3121
3271
|
], CompanyRole.prototype, "description", 2);
|
|
3122
3272
|
__decorateClass([
|
|
3123
|
-
|
|
3273
|
+
Column31({ name: "is_active", type: "boolean", default: true })
|
|
3124
3274
|
], CompanyRole.prototype, "isActive", 2);
|
|
3125
3275
|
__decorateClass([
|
|
3126
3276
|
OneToMany8(() => CompanyRolePermission, (rp) => rp.companyRole)
|
|
3127
3277
|
], CompanyRole.prototype, "rolePermissions", 2);
|
|
3128
3278
|
CompanyRole = __decorateClass([
|
|
3129
|
-
|
|
3279
|
+
Entity30("company_roles")
|
|
3130
3280
|
], CompanyRole);
|
|
3131
3281
|
|
|
3132
3282
|
// src/entities/company-members-roles.entity.ts
|
|
3133
3283
|
var CompanyMemberRole = class extends BaseEntity {
|
|
3134
3284
|
};
|
|
3135
3285
|
__decorateClass([
|
|
3136
|
-
|
|
3137
|
-
|
|
3286
|
+
Column32({ name: "user_id", type: "integer", nullable: true }),
|
|
3287
|
+
Index27()
|
|
3138
3288
|
], CompanyMemberRole.prototype, "userId", 2);
|
|
3139
3289
|
__decorateClass([
|
|
3140
|
-
|
|
3141
|
-
|
|
3290
|
+
ManyToOne29(() => User),
|
|
3291
|
+
JoinColumn29({ name: "user_id" })
|
|
3142
3292
|
], CompanyMemberRole.prototype, "user", 2);
|
|
3143
3293
|
__decorateClass([
|
|
3144
|
-
|
|
3145
|
-
|
|
3294
|
+
ManyToOne29(() => CompanyRole),
|
|
3295
|
+
JoinColumn29({ name: "company_role_id" })
|
|
3146
3296
|
], CompanyMemberRole.prototype, "role", 2);
|
|
3147
3297
|
__decorateClass([
|
|
3148
|
-
|
|
3149
|
-
|
|
3298
|
+
Column32({ name: "company_role_id", type: "integer", nullable: true }),
|
|
3299
|
+
Index27()
|
|
3150
3300
|
], CompanyMemberRole.prototype, "companyRoleId", 2);
|
|
3151
3301
|
__decorateClass([
|
|
3152
|
-
|
|
3302
|
+
Column32({ name: "assigned_by", type: "integer", nullable: true })
|
|
3153
3303
|
], CompanyMemberRole.prototype, "assignedBy", 2);
|
|
3154
3304
|
CompanyMemberRole = __decorateClass([
|
|
3155
|
-
|
|
3305
|
+
Entity31("company_member_roles")
|
|
3156
3306
|
], CompanyMemberRole);
|
|
3157
3307
|
|
|
3158
3308
|
// src/entities/assessment-answer.entity.ts
|
|
3159
3309
|
import {
|
|
3160
|
-
Entity as
|
|
3161
|
-
Column as
|
|
3162
|
-
ManyToOne as
|
|
3163
|
-
Index as
|
|
3164
|
-
JoinColumn as
|
|
3310
|
+
Entity as Entity34,
|
|
3311
|
+
Column as Column35,
|
|
3312
|
+
ManyToOne as ManyToOne31,
|
|
3313
|
+
Index as Index29,
|
|
3314
|
+
JoinColumn as JoinColumn31
|
|
3165
3315
|
} from "typeorm";
|
|
3166
3316
|
|
|
3167
3317
|
// src/entities/assessment-question.entity.ts
|
|
3168
|
-
import { Entity as
|
|
3318
|
+
import { Entity as Entity33, Column as Column34, OneToMany as OneToMany10 } from "typeorm";
|
|
3169
3319
|
|
|
3170
3320
|
// src/entities/assessment-question-option.entity.ts
|
|
3171
3321
|
import {
|
|
3172
|
-
Entity as
|
|
3173
|
-
Column as
|
|
3322
|
+
Entity as Entity32,
|
|
3323
|
+
Column as Column33,
|
|
3174
3324
|
OneToMany as OneToMany9,
|
|
3175
|
-
ManyToOne as
|
|
3176
|
-
Index as
|
|
3177
|
-
JoinColumn as
|
|
3325
|
+
ManyToOne as ManyToOne30,
|
|
3326
|
+
Index as Index28,
|
|
3327
|
+
JoinColumn as JoinColumn30
|
|
3178
3328
|
} from "typeorm";
|
|
3179
3329
|
var AnswerTypeEnum = /* @__PURE__ */ ((AnswerTypeEnum2) => {
|
|
3180
3330
|
AnswerTypeEnum2["CORRECT"] = "CORRECT";
|
|
@@ -3185,21 +3335,21 @@ var AnswerTypeEnum = /* @__PURE__ */ ((AnswerTypeEnum2) => {
|
|
|
3185
3335
|
var AssessmetQuestionOption = class extends BaseEntity {
|
|
3186
3336
|
};
|
|
3187
3337
|
__decorateClass([
|
|
3188
|
-
|
|
3189
|
-
|
|
3338
|
+
Column33({ name: "question_id", type: "integer", nullable: true }),
|
|
3339
|
+
Index28()
|
|
3190
3340
|
], AssessmetQuestionOption.prototype, "questionId", 2);
|
|
3191
3341
|
__decorateClass([
|
|
3192
|
-
|
|
3342
|
+
ManyToOne30(
|
|
3193
3343
|
() => AssessmetQuestion,
|
|
3194
3344
|
(assessmentQuestion) => assessmentQuestion.options
|
|
3195
3345
|
),
|
|
3196
|
-
|
|
3346
|
+
JoinColumn30({ name: "question_id" })
|
|
3197
3347
|
], AssessmetQuestionOption.prototype, "question", 2);
|
|
3198
3348
|
__decorateClass([
|
|
3199
|
-
|
|
3349
|
+
Column33({ name: "text", type: "varchar", nullable: true })
|
|
3200
3350
|
], AssessmetQuestionOption.prototype, "text", 2);
|
|
3201
3351
|
__decorateClass([
|
|
3202
|
-
|
|
3352
|
+
Column33({
|
|
3203
3353
|
name: "answer_type",
|
|
3204
3354
|
type: "enum",
|
|
3205
3355
|
enum: AnswerTypeEnum,
|
|
@@ -3207,13 +3357,13 @@ __decorateClass([
|
|
|
3207
3357
|
})
|
|
3208
3358
|
], AssessmetQuestionOption.prototype, "answerType", 2);
|
|
3209
3359
|
__decorateClass([
|
|
3210
|
-
|
|
3360
|
+
Column33({ name: "is_active", type: "boolean", default: true })
|
|
3211
3361
|
], AssessmetQuestionOption.prototype, "isActive", 2);
|
|
3212
3362
|
__decorateClass([
|
|
3213
3363
|
OneToMany9(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.option)
|
|
3214
3364
|
], AssessmetQuestionOption.prototype, "selectedOptions", 2);
|
|
3215
3365
|
AssessmetQuestionOption = __decorateClass([
|
|
3216
|
-
|
|
3366
|
+
Entity32("assessment_question_options")
|
|
3217
3367
|
], AssessmetQuestionOption);
|
|
3218
3368
|
|
|
3219
3369
|
// src/entities/assessment-question.entity.ts
|
|
@@ -3225,10 +3375,10 @@ var QuestionForEnum = /* @__PURE__ */ ((QuestionForEnum2) => {
|
|
|
3225
3375
|
var AssessmetQuestion = class extends BaseEntity {
|
|
3226
3376
|
};
|
|
3227
3377
|
__decorateClass([
|
|
3228
|
-
|
|
3378
|
+
Column34({ name: "text", type: "varchar", nullable: true })
|
|
3229
3379
|
], AssessmetQuestion.prototype, "text", 2);
|
|
3230
3380
|
__decorateClass([
|
|
3231
|
-
|
|
3381
|
+
Column34({
|
|
3232
3382
|
name: "question_for",
|
|
3233
3383
|
type: "enum",
|
|
3234
3384
|
enum: QuestionForEnum,
|
|
@@ -3236,7 +3386,7 @@ __decorateClass([
|
|
|
3236
3386
|
})
|
|
3237
3387
|
], AssessmetQuestion.prototype, "questionFor", 2);
|
|
3238
3388
|
__decorateClass([
|
|
3239
|
-
|
|
3389
|
+
Column34({ name: "is_active", type: "boolean", default: true })
|
|
3240
3390
|
], AssessmetQuestion.prototype, "isActive", 2);
|
|
3241
3391
|
__decorateClass([
|
|
3242
3392
|
OneToMany10(() => AssessmetQuestionOption, (assessmentQuestionOption) => assessmentQuestionOption.question)
|
|
@@ -3245,7 +3395,7 @@ __decorateClass([
|
|
|
3245
3395
|
OneToMany10(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.question)
|
|
3246
3396
|
], AssessmetQuestion.prototype, "answers", 2);
|
|
3247
3397
|
AssessmetQuestion = __decorateClass([
|
|
3248
|
-
|
|
3398
|
+
Entity33("assessment_questions")
|
|
3249
3399
|
], AssessmetQuestion);
|
|
3250
3400
|
|
|
3251
3401
|
// src/entities/assessment-answer.entity.ts
|
|
@@ -3258,102 +3408,102 @@ var SelectedAnswerTypeEnum = /* @__PURE__ */ ((SelectedAnswerTypeEnum2) => {
|
|
|
3258
3408
|
var AssessmentAnswer = class extends BaseEntity {
|
|
3259
3409
|
};
|
|
3260
3410
|
__decorateClass([
|
|
3261
|
-
|
|
3262
|
-
|
|
3411
|
+
Column35({ name: "user_id", type: "integer" }),
|
|
3412
|
+
Index29()
|
|
3263
3413
|
], AssessmentAnswer.prototype, "userId", 2);
|
|
3264
3414
|
__decorateClass([
|
|
3265
|
-
|
|
3266
|
-
|
|
3415
|
+
ManyToOne31(() => User, (user) => user.assessmentAnswers),
|
|
3416
|
+
JoinColumn31({ name: "user_id" })
|
|
3267
3417
|
], AssessmentAnswer.prototype, "user", 2);
|
|
3268
3418
|
__decorateClass([
|
|
3269
|
-
|
|
3270
|
-
|
|
3419
|
+
Column35({ name: "question_id", type: "integer" }),
|
|
3420
|
+
Index29()
|
|
3271
3421
|
], AssessmentAnswer.prototype, "questionId", 2);
|
|
3272
3422
|
__decorateClass([
|
|
3273
|
-
|
|
3423
|
+
ManyToOne31(
|
|
3274
3424
|
() => AssessmetQuestion,
|
|
3275
3425
|
(assessmentQuestion) => assessmentQuestion.answers
|
|
3276
3426
|
),
|
|
3277
|
-
|
|
3427
|
+
JoinColumn31({ name: "question_id" })
|
|
3278
3428
|
], AssessmentAnswer.prototype, "question", 2);
|
|
3279
3429
|
__decorateClass([
|
|
3280
|
-
|
|
3281
|
-
|
|
3430
|
+
Column35({ name: "selected_option_id", type: "integer" }),
|
|
3431
|
+
Index29()
|
|
3282
3432
|
], AssessmentAnswer.prototype, "selectedOptionId", 2);
|
|
3283
3433
|
__decorateClass([
|
|
3284
|
-
|
|
3434
|
+
ManyToOne31(
|
|
3285
3435
|
() => AssessmetQuestionOption,
|
|
3286
3436
|
(assessmentQuestionOption) => assessmentQuestionOption.selectedOptions
|
|
3287
3437
|
),
|
|
3288
|
-
|
|
3438
|
+
JoinColumn31({ name: "selected_option_id" })
|
|
3289
3439
|
], AssessmentAnswer.prototype, "option", 2);
|
|
3290
3440
|
__decorateClass([
|
|
3291
|
-
|
|
3441
|
+
Column35({
|
|
3292
3442
|
name: "selected_answer_type",
|
|
3293
3443
|
type: "enum",
|
|
3294
3444
|
enum: SelectedAnswerTypeEnum
|
|
3295
3445
|
})
|
|
3296
3446
|
], AssessmentAnswer.prototype, "selectedAnswerType", 2);
|
|
3297
3447
|
__decorateClass([
|
|
3298
|
-
|
|
3448
|
+
Column35({ name: "score", type: "float" })
|
|
3299
3449
|
], AssessmentAnswer.prototype, "score", 2);
|
|
3300
3450
|
AssessmentAnswer = __decorateClass([
|
|
3301
|
-
|
|
3451
|
+
Entity34("assessment_answers")
|
|
3302
3452
|
], AssessmentAnswer);
|
|
3303
3453
|
|
|
3304
3454
|
// src/entities/company-skill.entity.ts
|
|
3305
|
-
import { Entity as
|
|
3455
|
+
import { Entity as Entity35, Column as Column36, Index as Index30, ManyToOne as ManyToOne32, JoinColumn as JoinColumn32 } from "typeorm";
|
|
3306
3456
|
var CompanySkill = class extends BaseEntity {
|
|
3307
3457
|
};
|
|
3308
3458
|
// individual index to find core skills by user
|
|
3309
3459
|
__decorateClass([
|
|
3310
|
-
|
|
3311
|
-
|
|
3460
|
+
Column36({ name: "user_id", type: "integer", nullable: true }),
|
|
3461
|
+
Index30()
|
|
3312
3462
|
], CompanySkill.prototype, "userId", 2);
|
|
3313
3463
|
__decorateClass([
|
|
3314
|
-
|
|
3315
|
-
|
|
3464
|
+
ManyToOne32(() => User, (user) => user.freelancerSkills),
|
|
3465
|
+
JoinColumn32({ name: "user_id" })
|
|
3316
3466
|
], CompanySkill.prototype, "user", 2);
|
|
3317
3467
|
__decorateClass([
|
|
3318
|
-
|
|
3468
|
+
Column36({ name: "skill_name", type: "varchar", nullable: true })
|
|
3319
3469
|
], CompanySkill.prototype, "skillName", 2);
|
|
3320
3470
|
CompanySkill = __decorateClass([
|
|
3321
|
-
|
|
3471
|
+
Entity35("company_skills")
|
|
3322
3472
|
], CompanySkill);
|
|
3323
3473
|
|
|
3324
3474
|
// src/entities/admin-user-role.entity.ts
|
|
3325
|
-
import { Entity as
|
|
3475
|
+
import { Entity as Entity39, Column as Column40, ManyToOne as ManyToOne34, JoinColumn as JoinColumn34 } from "typeorm";
|
|
3326
3476
|
|
|
3327
3477
|
// src/entities/admin-role.entity.ts
|
|
3328
|
-
import { Entity as
|
|
3478
|
+
import { Entity as Entity38, Column as Column39, Index as Index33, OneToMany as OneToMany13 } from "typeorm";
|
|
3329
3479
|
|
|
3330
3480
|
// src/entities/admin-role-permission.entity.ts
|
|
3331
|
-
import { Entity as
|
|
3481
|
+
import { Entity as Entity37, Column as Column38, ManyToOne as ManyToOne33, JoinColumn as JoinColumn33 } from "typeorm";
|
|
3332
3482
|
|
|
3333
3483
|
// src/entities/admin-permission.entity.ts
|
|
3334
|
-
import { Entity as
|
|
3484
|
+
import { Entity as Entity36, Column as Column37, Index as Index31, OneToMany as OneToMany12 } from "typeorm";
|
|
3335
3485
|
var AdminPermission = class extends BaseEntity {
|
|
3336
3486
|
};
|
|
3337
3487
|
__decorateClass([
|
|
3338
|
-
|
|
3488
|
+
Column37({ name: "permission_name", type: "varchar", nullable: true })
|
|
3339
3489
|
], AdminPermission.prototype, "permissionName", 2);
|
|
3340
3490
|
__decorateClass([
|
|
3341
|
-
|
|
3491
|
+
Column37({
|
|
3342
3492
|
name: "permission_slug",
|
|
3343
3493
|
type: "varchar",
|
|
3344
3494
|
unique: true,
|
|
3345
3495
|
nullable: true
|
|
3346
3496
|
}),
|
|
3347
|
-
|
|
3497
|
+
Index31()
|
|
3348
3498
|
], AdminPermission.prototype, "permissionSlug", 2);
|
|
3349
3499
|
__decorateClass([
|
|
3350
|
-
|
|
3500
|
+
Column37({ name: "permission_description", type: "varchar", nullable: true })
|
|
3351
3501
|
], AdminPermission.prototype, "permissionDescription", 2);
|
|
3352
3502
|
__decorateClass([
|
|
3353
|
-
|
|
3503
|
+
Column37({ name: "module", type: "varchar", nullable: true })
|
|
3354
3504
|
], AdminPermission.prototype, "module", 2);
|
|
3355
3505
|
__decorateClass([
|
|
3356
|
-
|
|
3506
|
+
Column37({ name: "is_active", type: "boolean", default: true })
|
|
3357
3507
|
], AdminPermission.prototype, "isActive", 2);
|
|
3358
3508
|
__decorateClass([
|
|
3359
3509
|
OneToMany12(
|
|
@@ -3362,14 +3512,14 @@ __decorateClass([
|
|
|
3362
3512
|
)
|
|
3363
3513
|
], AdminPermission.prototype, "adminRole", 2);
|
|
3364
3514
|
AdminPermission = __decorateClass([
|
|
3365
|
-
|
|
3515
|
+
Entity36("admin_permissions")
|
|
3366
3516
|
], AdminPermission);
|
|
3367
3517
|
|
|
3368
3518
|
// src/entities/admin-role-permission.entity.ts
|
|
3369
3519
|
var AdminRolePermission = class extends BaseEntity {
|
|
3370
3520
|
};
|
|
3371
3521
|
__decorateClass([
|
|
3372
|
-
|
|
3522
|
+
Column38({
|
|
3373
3523
|
name: "role_id",
|
|
3374
3524
|
type: "int",
|
|
3375
3525
|
nullable: true,
|
|
@@ -3377,11 +3527,11 @@ __decorateClass([
|
|
|
3377
3527
|
})
|
|
3378
3528
|
], AdminRolePermission.prototype, "roleId", 2);
|
|
3379
3529
|
__decorateClass([
|
|
3380
|
-
|
|
3381
|
-
|
|
3530
|
+
ManyToOne33(() => AdminRole),
|
|
3531
|
+
JoinColumn33({ name: "role_id" })
|
|
3382
3532
|
], AdminRolePermission.prototype, "adminRole", 2);
|
|
3383
3533
|
__decorateClass([
|
|
3384
|
-
|
|
3534
|
+
Column38({
|
|
3385
3535
|
name: "permission_id",
|
|
3386
3536
|
type: "int",
|
|
3387
3537
|
nullable: true,
|
|
@@ -3389,28 +3539,28 @@ __decorateClass([
|
|
|
3389
3539
|
})
|
|
3390
3540
|
], AdminRolePermission.prototype, "permissionId", 2);
|
|
3391
3541
|
__decorateClass([
|
|
3392
|
-
|
|
3393
|
-
|
|
3542
|
+
ManyToOne33(() => AdminPermission),
|
|
3543
|
+
JoinColumn33({ name: "permission_id" })
|
|
3394
3544
|
], AdminRolePermission.prototype, "adminPermissions", 2);
|
|
3395
3545
|
AdminRolePermission = __decorateClass([
|
|
3396
|
-
|
|
3546
|
+
Entity37("admin_role_permissions")
|
|
3397
3547
|
], AdminRolePermission);
|
|
3398
3548
|
|
|
3399
3549
|
// src/entities/admin-role.entity.ts
|
|
3400
3550
|
var AdminRole = class extends BaseEntity {
|
|
3401
3551
|
};
|
|
3402
3552
|
__decorateClass([
|
|
3403
|
-
|
|
3553
|
+
Column39({ name: "role_name", type: "varchar", nullable: true })
|
|
3404
3554
|
], AdminRole.prototype, "roleName", 2);
|
|
3405
3555
|
__decorateClass([
|
|
3406
|
-
|
|
3407
|
-
|
|
3556
|
+
Column39({ name: "role_slug", type: "varchar", unique: true, nullable: true }),
|
|
3557
|
+
Index33()
|
|
3408
3558
|
], AdminRole.prototype, "roleSlug", 2);
|
|
3409
3559
|
__decorateClass([
|
|
3410
|
-
|
|
3560
|
+
Column39({ name: "role_description", type: "varchar", nullable: true })
|
|
3411
3561
|
], AdminRole.prototype, "roleDescription", 2);
|
|
3412
3562
|
__decorateClass([
|
|
3413
|
-
|
|
3563
|
+
Column39({ name: "is_active", type: "boolean", default: true })
|
|
3414
3564
|
], AdminRole.prototype, "isActive", 2);
|
|
3415
3565
|
__decorateClass([
|
|
3416
3566
|
OneToMany13(
|
|
@@ -3422,14 +3572,14 @@ __decorateClass([
|
|
|
3422
3572
|
OneToMany13(() => AdminUserRole, (adminUserRole) => adminUserRole.adminRole)
|
|
3423
3573
|
], AdminRole.prototype, "userRoles", 2);
|
|
3424
3574
|
AdminRole = __decorateClass([
|
|
3425
|
-
|
|
3575
|
+
Entity38("admin_roles")
|
|
3426
3576
|
], AdminRole);
|
|
3427
3577
|
|
|
3428
3578
|
// src/entities/admin-user-role.entity.ts
|
|
3429
3579
|
var AdminUserRole = class extends BaseEntity {
|
|
3430
3580
|
};
|
|
3431
3581
|
__decorateClass([
|
|
3432
|
-
|
|
3582
|
+
Column40({
|
|
3433
3583
|
name: "user_id",
|
|
3434
3584
|
type: "int",
|
|
3435
3585
|
nullable: true,
|
|
@@ -3437,11 +3587,11 @@ __decorateClass([
|
|
|
3437
3587
|
})
|
|
3438
3588
|
], AdminUserRole.prototype, "userId", 2);
|
|
3439
3589
|
__decorateClass([
|
|
3440
|
-
|
|
3441
|
-
|
|
3590
|
+
ManyToOne34(() => User),
|
|
3591
|
+
JoinColumn34({ name: "user_id" })
|
|
3442
3592
|
], AdminUserRole.prototype, "user", 2);
|
|
3443
3593
|
__decorateClass([
|
|
3444
|
-
|
|
3594
|
+
Column40({
|
|
3445
3595
|
name: "role_id",
|
|
3446
3596
|
type: "int",
|
|
3447
3597
|
nullable: true,
|
|
@@ -3449,40 +3599,40 @@ __decorateClass([
|
|
|
3449
3599
|
})
|
|
3450
3600
|
], AdminUserRole.prototype, "roleId", 2);
|
|
3451
3601
|
__decorateClass([
|
|
3452
|
-
|
|
3453
|
-
|
|
3602
|
+
ManyToOne34(() => AdminRole),
|
|
3603
|
+
JoinColumn34({ name: "role_id" })
|
|
3454
3604
|
], AdminUserRole.prototype, "adminRole", 2);
|
|
3455
3605
|
AdminUserRole = __decorateClass([
|
|
3456
|
-
|
|
3606
|
+
Entity39("admin_user_roles")
|
|
3457
3607
|
], AdminUserRole);
|
|
3458
3608
|
|
|
3459
3609
|
// src/entities/freelancer-resume.entity.ts
|
|
3460
3610
|
import {
|
|
3461
|
-
Entity as
|
|
3462
|
-
Column as
|
|
3463
|
-
Index as
|
|
3464
|
-
ManyToOne as
|
|
3465
|
-
JoinColumn as
|
|
3611
|
+
Entity as Entity40,
|
|
3612
|
+
Column as Column41,
|
|
3613
|
+
Index as Index35,
|
|
3614
|
+
ManyToOne as ManyToOne35,
|
|
3615
|
+
JoinColumn as JoinColumn35
|
|
3466
3616
|
} from "typeorm";
|
|
3467
3617
|
var FreelancerResume = class extends BaseEntity {
|
|
3468
3618
|
};
|
|
3469
3619
|
// individual index to find profile by user
|
|
3470
3620
|
__decorateClass([
|
|
3471
|
-
|
|
3472
|
-
|
|
3621
|
+
Column41({ name: "user_id", type: "integer", nullable: true }),
|
|
3622
|
+
Index35()
|
|
3473
3623
|
], FreelancerResume.prototype, "userId", 2);
|
|
3474
3624
|
__decorateClass([
|
|
3475
|
-
|
|
3476
|
-
|
|
3625
|
+
ManyToOne35(() => User, (user) => user.freelancerProfile),
|
|
3626
|
+
JoinColumn35({ name: "user_id" })
|
|
3477
3627
|
], FreelancerResume.prototype, "user", 2);
|
|
3478
3628
|
__decorateClass([
|
|
3479
|
-
|
|
3629
|
+
Column41({ name: "resume_data", type: "jsonb", nullable: true })
|
|
3480
3630
|
], FreelancerResume.prototype, "resumeData", 2);
|
|
3481
3631
|
__decorateClass([
|
|
3482
|
-
|
|
3632
|
+
Column41({ name: "processed_resume_data", type: "jsonb", nullable: true })
|
|
3483
3633
|
], FreelancerResume.prototype, "processedResumeData", 2);
|
|
3484
3634
|
FreelancerResume = __decorateClass([
|
|
3485
|
-
|
|
3635
|
+
Entity40("freelancer_resumes")
|
|
3486
3636
|
], FreelancerResume);
|
|
3487
3637
|
|
|
3488
3638
|
// src/entities/user.entity.ts
|
|
@@ -3510,51 +3660,51 @@ var Provider = /* @__PURE__ */ ((Provider2) => {
|
|
|
3510
3660
|
var User = class extends BaseEntity {
|
|
3511
3661
|
};
|
|
3512
3662
|
__decorateClass([
|
|
3513
|
-
|
|
3663
|
+
Column42({ name: "unique_id", type: "varchar", unique: true })
|
|
3514
3664
|
], User.prototype, "uniqueId", 2);
|
|
3515
3665
|
__decorateClass([
|
|
3516
|
-
|
|
3517
|
-
|
|
3666
|
+
Column42({ name: "parent_id", type: "integer", nullable: true }),
|
|
3667
|
+
Index36()
|
|
3518
3668
|
], User.prototype, "parentId", 2);
|
|
3519
3669
|
__decorateClass([
|
|
3520
|
-
|
|
3521
|
-
|
|
3670
|
+
ManyToOne36(() => User, (user) => user.children, { nullable: true }),
|
|
3671
|
+
JoinColumn36({ name: "parent_id" })
|
|
3522
3672
|
], User.prototype, "parent", 2);
|
|
3523
3673
|
__decorateClass([
|
|
3524
3674
|
OneToMany14(() => User, (user) => user.parent)
|
|
3525
3675
|
], User.prototype, "children", 2);
|
|
3526
3676
|
__decorateClass([
|
|
3527
|
-
|
|
3677
|
+
Column42({ name: "username", type: "varchar", unique: true, nullable: true })
|
|
3528
3678
|
], User.prototype, "username", 2);
|
|
3529
3679
|
__decorateClass([
|
|
3530
|
-
|
|
3680
|
+
Column42({ name: "first_name", type: "varchar", length: 100, nullable: true })
|
|
3531
3681
|
], User.prototype, "firstName", 2);
|
|
3532
3682
|
__decorateClass([
|
|
3533
|
-
|
|
3683
|
+
Column42({ name: "last_name", type: "varchar", length: 100, nullable: true })
|
|
3534
3684
|
], User.prototype, "lastName", 2);
|
|
3535
3685
|
__decorateClass([
|
|
3536
|
-
|
|
3686
|
+
Column42({ name: "date_of_birth", type: "date", nullable: true })
|
|
3537
3687
|
], User.prototype, "dateOfBirth", 2);
|
|
3538
3688
|
__decorateClass([
|
|
3539
|
-
|
|
3689
|
+
Column42({ name: "gender", type: "varchar", length: 10, nullable: true })
|
|
3540
3690
|
], User.prototype, "gender", 2);
|
|
3541
3691
|
__decorateClass([
|
|
3542
|
-
|
|
3692
|
+
Column42({ name: "profile_picture_url", type: "text", nullable: true })
|
|
3543
3693
|
], User.prototype, "profilePictureUrl", 2);
|
|
3544
3694
|
__decorateClass([
|
|
3545
|
-
|
|
3695
|
+
Column42({ name: "email", type: "varchar", unique: true })
|
|
3546
3696
|
], User.prototype, "email", 2);
|
|
3547
3697
|
__decorateClass([
|
|
3548
|
-
|
|
3698
|
+
Column42({ name: "mobile_code", type: "varchar", nullable: true })
|
|
3549
3699
|
], User.prototype, "mobileCode", 2);
|
|
3550
3700
|
__decorateClass([
|
|
3551
|
-
|
|
3701
|
+
Column42({ name: "mobile", type: "varchar", nullable: true })
|
|
3552
3702
|
], User.prototype, "mobile", 2);
|
|
3553
3703
|
__decorateClass([
|
|
3554
|
-
|
|
3704
|
+
Column42({ name: "password", type: "varchar", nullable: true })
|
|
3555
3705
|
], User.prototype, "password", 2);
|
|
3556
3706
|
__decorateClass([
|
|
3557
|
-
|
|
3707
|
+
Column42({
|
|
3558
3708
|
name: "account_type",
|
|
3559
3709
|
type: "enum",
|
|
3560
3710
|
enum: AccountType,
|
|
@@ -3562,7 +3712,7 @@ __decorateClass([
|
|
|
3562
3712
|
})
|
|
3563
3713
|
], User.prototype, "accountType", 2);
|
|
3564
3714
|
__decorateClass([
|
|
3565
|
-
|
|
3715
|
+
Column42({
|
|
3566
3716
|
name: "account_status",
|
|
3567
3717
|
type: "enum",
|
|
3568
3718
|
enum: AccountStatus,
|
|
@@ -3570,29 +3720,29 @@ __decorateClass([
|
|
|
3570
3720
|
})
|
|
3571
3721
|
], User.prototype, "accountStatus", 2);
|
|
3572
3722
|
__decorateClass([
|
|
3573
|
-
|
|
3723
|
+
Column42({ name: "is_email_verified", type: "boolean", default: false })
|
|
3574
3724
|
], User.prototype, "isEmailVerified", 2);
|
|
3575
3725
|
__decorateClass([
|
|
3576
|
-
|
|
3726
|
+
Column42({ name: "is_mobile_verified", type: "boolean", default: false })
|
|
3577
3727
|
], User.prototype, "isMobileVerified", 2);
|
|
3578
3728
|
__decorateClass([
|
|
3579
|
-
|
|
3729
|
+
Column42({ name: "is_social", type: "boolean", default: false })
|
|
3580
3730
|
], User.prototype, "isSocial", 2);
|
|
3581
3731
|
__decorateClass([
|
|
3582
|
-
|
|
3732
|
+
Column42({
|
|
3583
3733
|
name: "last_login_at",
|
|
3584
3734
|
type: "timestamp with time zone",
|
|
3585
3735
|
nullable: true
|
|
3586
3736
|
})
|
|
3587
3737
|
], User.prototype, "lastLoginAt", 2);
|
|
3588
3738
|
__decorateClass([
|
|
3589
|
-
|
|
3739
|
+
Column42({ name: "last_login_ip", type: "varchar", nullable: true })
|
|
3590
3740
|
], User.prototype, "lastLoginIp", 2);
|
|
3591
3741
|
__decorateClass([
|
|
3592
|
-
|
|
3742
|
+
Column42({ name: "reset_token", type: "varchar", nullable: true })
|
|
3593
3743
|
], User.prototype, "resetToken", 2);
|
|
3594
3744
|
__decorateClass([
|
|
3595
|
-
|
|
3745
|
+
Column42({
|
|
3596
3746
|
name: "reset_token_expire_at",
|
|
3597
3747
|
type: "timestamp with time zone",
|
|
3598
3748
|
nullable: true
|
|
@@ -3602,7 +3752,7 @@ __decorateClass([
|
|
|
3602
3752
|
OneToMany14(() => RefreshToken, (token) => token.user)
|
|
3603
3753
|
], User.prototype, "refreshTokens", 2);
|
|
3604
3754
|
__decorateClass([
|
|
3605
|
-
|
|
3755
|
+
Column42({
|
|
3606
3756
|
name: "provider",
|
|
3607
3757
|
type: "enum",
|
|
3608
3758
|
enum: Provider,
|
|
@@ -3611,16 +3761,16 @@ __decorateClass([
|
|
|
3611
3761
|
})
|
|
3612
3762
|
], User.prototype, "provider", 2);
|
|
3613
3763
|
__decorateClass([
|
|
3614
|
-
|
|
3764
|
+
Column42({ name: "provider_token", type: "varchar", nullable: true })
|
|
3615
3765
|
], User.prototype, "providerToken", 2);
|
|
3616
3766
|
__decorateClass([
|
|
3617
|
-
|
|
3767
|
+
Column42({ name: "linkedin_id", type: "varchar", nullable: true })
|
|
3618
3768
|
], User.prototype, "linkedInId", 2);
|
|
3619
3769
|
__decorateClass([
|
|
3620
|
-
|
|
3770
|
+
Column42({ name: "google_id", type: "varchar", nullable: true })
|
|
3621
3771
|
], User.prototype, "googleId", 2);
|
|
3622
3772
|
__decorateClass([
|
|
3623
|
-
|
|
3773
|
+
Column42({ name: "gitlabs_id", type: "varchar", nullable: true })
|
|
3624
3774
|
], User.prototype, "gitLabsId", 2);
|
|
3625
3775
|
__decorateClass([
|
|
3626
3776
|
OneToMany14(() => Otp, (otp) => otp.user)
|
|
@@ -3698,7 +3848,7 @@ __decorateClass([
|
|
|
3698
3848
|
OneToMany14(() => AdminUserRole, (adminUserRole) => adminUserRole.user)
|
|
3699
3849
|
], User.prototype, "adminUserRoles", 2);
|
|
3700
3850
|
User = __decorateClass([
|
|
3701
|
-
|
|
3851
|
+
Entity41("users")
|
|
3702
3852
|
], User);
|
|
3703
3853
|
|
|
3704
3854
|
// src/entities/rating.entity.ts
|
|
@@ -3710,36 +3860,36 @@ var RatingTypeEnum = /* @__PURE__ */ ((RatingTypeEnum2) => {
|
|
|
3710
3860
|
var Rating = class extends BaseEntity {
|
|
3711
3861
|
};
|
|
3712
3862
|
__decorateClass([
|
|
3713
|
-
|
|
3714
|
-
|
|
3863
|
+
Column43({ name: "reviewer_id", type: "integer" }),
|
|
3864
|
+
Index37()
|
|
3715
3865
|
], Rating.prototype, "reviewer_id", 2);
|
|
3716
3866
|
__decorateClass([
|
|
3717
|
-
|
|
3718
|
-
|
|
3867
|
+
ManyToOne37(() => User, { onDelete: "CASCADE" }),
|
|
3868
|
+
JoinColumn37({ name: "reviewer_id" })
|
|
3719
3869
|
], Rating.prototype, "reviewer", 2);
|
|
3720
3870
|
__decorateClass([
|
|
3721
|
-
|
|
3722
|
-
|
|
3871
|
+
Column43({ name: "reviewee_id", type: "integer" }),
|
|
3872
|
+
Index37()
|
|
3723
3873
|
], Rating.prototype, "reviewee_id", 2);
|
|
3724
3874
|
__decorateClass([
|
|
3725
|
-
|
|
3726
|
-
|
|
3875
|
+
ManyToOne37(() => User, { onDelete: "CASCADE" }),
|
|
3876
|
+
JoinColumn37({ name: "reviewee_id" })
|
|
3727
3877
|
], Rating.prototype, "reviewee", 2);
|
|
3728
3878
|
__decorateClass([
|
|
3729
|
-
|
|
3879
|
+
Column43({
|
|
3730
3880
|
type: "enum",
|
|
3731
3881
|
enum: RatingTypeEnum,
|
|
3732
3882
|
nullable: true
|
|
3733
3883
|
})
|
|
3734
3884
|
], Rating.prototype, "ratingType", 2);
|
|
3735
3885
|
__decorateClass([
|
|
3736
|
-
|
|
3886
|
+
Column43({ type: "integer", nullable: true })
|
|
3737
3887
|
], Rating.prototype, "rating", 2);
|
|
3738
3888
|
__decorateClass([
|
|
3739
|
-
|
|
3889
|
+
Column43({ type: "text", nullable: true })
|
|
3740
3890
|
], Rating.prototype, "review", 2);
|
|
3741
3891
|
Rating = __decorateClass([
|
|
3742
|
-
|
|
3892
|
+
Entity42("ratings")
|
|
3743
3893
|
], Rating);
|
|
3744
3894
|
|
|
3745
3895
|
// src/modules/rating/dto/add.rating.dto.ts
|
|
@@ -5094,11 +5244,11 @@ var NotificationRMQAdapter = (mode = "microservice") => {
|
|
|
5094
5244
|
};
|
|
5095
5245
|
|
|
5096
5246
|
// src/entities/sequence-generator.entity.ts
|
|
5097
|
-
import { Entity as
|
|
5247
|
+
import { Entity as Entity43, Column as Column44 } from "typeorm";
|
|
5098
5248
|
var SequenceGenerator = class extends BaseEntity {
|
|
5099
5249
|
};
|
|
5100
5250
|
__decorateClass([
|
|
5101
|
-
|
|
5251
|
+
Column44({
|
|
5102
5252
|
name: "module",
|
|
5103
5253
|
type: "varchar",
|
|
5104
5254
|
length: 50,
|
|
@@ -5107,7 +5257,7 @@ __decorateClass([
|
|
|
5107
5257
|
})
|
|
5108
5258
|
], SequenceGenerator.prototype, "module", 2);
|
|
5109
5259
|
__decorateClass([
|
|
5110
|
-
|
|
5260
|
+
Column44({
|
|
5111
5261
|
name: "prefix",
|
|
5112
5262
|
type: "varchar",
|
|
5113
5263
|
length: 10,
|
|
@@ -5116,7 +5266,7 @@ __decorateClass([
|
|
|
5116
5266
|
})
|
|
5117
5267
|
], SequenceGenerator.prototype, "prefix", 2);
|
|
5118
5268
|
__decorateClass([
|
|
5119
|
-
|
|
5269
|
+
Column44({
|
|
5120
5270
|
name: "last_sequence",
|
|
5121
5271
|
type: "int",
|
|
5122
5272
|
nullable: false,
|
|
@@ -5124,7 +5274,7 @@ __decorateClass([
|
|
|
5124
5274
|
})
|
|
5125
5275
|
], SequenceGenerator.prototype, "lastSequence", 2);
|
|
5126
5276
|
__decorateClass([
|
|
5127
|
-
|
|
5277
|
+
Column44({
|
|
5128
5278
|
name: "year",
|
|
5129
5279
|
type: "int",
|
|
5130
5280
|
nullable: true,
|
|
@@ -5132,11 +5282,11 @@ __decorateClass([
|
|
|
5132
5282
|
})
|
|
5133
5283
|
], SequenceGenerator.prototype, "year", 2);
|
|
5134
5284
|
SequenceGenerator = __decorateClass([
|
|
5135
|
-
|
|
5285
|
+
Entity43("sequence_generators")
|
|
5136
5286
|
], SequenceGenerator);
|
|
5137
5287
|
|
|
5138
5288
|
// src/entities/question.entity.ts
|
|
5139
|
-
import { Entity as
|
|
5289
|
+
import { Entity as Entity44, Column as Column45 } from "typeorm";
|
|
5140
5290
|
var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
5141
5291
|
QuestionFor2["CLIENT"] = "CLIENT";
|
|
5142
5292
|
QuestionFor2["FREELANCER"] = "FREELANCER";
|
|
@@ -5145,16 +5295,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
|
5145
5295
|
var Question = class extends BaseEntity {
|
|
5146
5296
|
};
|
|
5147
5297
|
__decorateClass([
|
|
5148
|
-
|
|
5298
|
+
Column45({ name: "question", type: "varchar" })
|
|
5149
5299
|
], Question.prototype, "question", 2);
|
|
5150
5300
|
__decorateClass([
|
|
5151
|
-
|
|
5301
|
+
Column45({ name: "hint", type: "varchar", nullable: true })
|
|
5152
5302
|
], Question.prototype, "hint", 2);
|
|
5153
5303
|
__decorateClass([
|
|
5154
|
-
|
|
5304
|
+
Column45({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
5155
5305
|
], Question.prototype, "slug", 2);
|
|
5156
5306
|
__decorateClass([
|
|
5157
|
-
|
|
5307
|
+
Column45({
|
|
5158
5308
|
name: "question_for",
|
|
5159
5309
|
type: "enum",
|
|
5160
5310
|
enum: QuestionFor,
|
|
@@ -5162,153 +5312,54 @@ __decorateClass([
|
|
|
5162
5312
|
})
|
|
5163
5313
|
], Question.prototype, "questionFor", 2);
|
|
5164
5314
|
__decorateClass([
|
|
5165
|
-
|
|
5315
|
+
Column45({ name: "type", type: "varchar", nullable: true })
|
|
5166
5316
|
], Question.prototype, "type", 2);
|
|
5167
5317
|
__decorateClass([
|
|
5168
|
-
|
|
5318
|
+
Column45({ name: "options", type: "jsonb", nullable: true })
|
|
5169
5319
|
], Question.prototype, "options", 2);
|
|
5170
5320
|
__decorateClass([
|
|
5171
|
-
|
|
5321
|
+
Column45({ name: "is_active", type: "boolean", default: false })
|
|
5172
5322
|
], Question.prototype, "isActive", 2);
|
|
5173
5323
|
Question = __decorateClass([
|
|
5174
|
-
|
|
5324
|
+
Entity44("questions")
|
|
5175
5325
|
], Question);
|
|
5176
5326
|
|
|
5177
5327
|
// src/entities/skill.entity.ts
|
|
5178
|
-
import { Entity as
|
|
5328
|
+
import { Entity as Entity45, Column as Column46 } from "typeorm";
|
|
5179
5329
|
var Skill = class extends BaseEntity {
|
|
5180
5330
|
};
|
|
5181
5331
|
__decorateClass([
|
|
5182
|
-
|
|
5332
|
+
Column46({ name: "name", type: "varchar", nullable: true })
|
|
5183
5333
|
], Skill.prototype, "name", 2);
|
|
5184
5334
|
__decorateClass([
|
|
5185
|
-
|
|
5335
|
+
Column46({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
5186
5336
|
], Skill.prototype, "slug", 2);
|
|
5187
5337
|
__decorateClass([
|
|
5188
|
-
|
|
5338
|
+
Column46({ name: "is_active", type: "boolean", default: false })
|
|
5189
5339
|
], Skill.prototype, "isActive", 2);
|
|
5190
5340
|
Skill = __decorateClass([
|
|
5191
|
-
|
|
5341
|
+
Entity45("skills")
|
|
5192
5342
|
], Skill);
|
|
5193
5343
|
|
|
5194
5344
|
// src/entities/job-role.entity.ts
|
|
5195
|
-
import { Entity as
|
|
5345
|
+
import { Entity as Entity46, Column as Column47 } from "typeorm";
|
|
5196
5346
|
var JobRoles = class extends BaseEntity {
|
|
5197
5347
|
};
|
|
5198
5348
|
__decorateClass([
|
|
5199
|
-
|
|
5349
|
+
Column47({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
5200
5350
|
], JobRoles.prototype, "slug", 2);
|
|
5201
5351
|
__decorateClass([
|
|
5202
|
-
|
|
5352
|
+
Column47({ name: "name", type: "varchar", nullable: true })
|
|
5203
5353
|
], JobRoles.prototype, "name", 2);
|
|
5204
5354
|
__decorateClass([
|
|
5205
|
-
|
|
5355
|
+
Column47({ name: "is_active", type: "boolean", default: true })
|
|
5206
5356
|
], JobRoles.prototype, "isActive", 2);
|
|
5207
5357
|
JobRoles = __decorateClass([
|
|
5208
|
-
|
|
5358
|
+
Entity46("job_roles")
|
|
5209
5359
|
], JobRoles);
|
|
5210
5360
|
|
|
5211
|
-
// src/entities/interview-invite.entity.ts
|
|
5212
|
-
import { Entity as Entity45, Column as Column46, ManyToOne as ManyToOne36, JoinColumn as JoinColumn36, Index as Index36 } from "typeorm";
|
|
5213
|
-
var InterviewInviteStatusEnum = /* @__PURE__ */ ((InterviewInviteStatusEnum2) => {
|
|
5214
|
-
InterviewInviteStatusEnum2["PENDING"] = "PENDING";
|
|
5215
|
-
InterviewInviteStatusEnum2["ACCEPTED"] = "ACCEPTED";
|
|
5216
|
-
InterviewInviteStatusEnum2["REJECTED"] = "REJECTED";
|
|
5217
|
-
InterviewInviteStatusEnum2["EXPIRED"] = "EXPIRED";
|
|
5218
|
-
return InterviewInviteStatusEnum2;
|
|
5219
|
-
})(InterviewInviteStatusEnum || {});
|
|
5220
|
-
var InterviewInvite = class extends BaseEntity {
|
|
5221
|
-
};
|
|
5222
|
-
__decorateClass([
|
|
5223
|
-
Column46({
|
|
5224
|
-
name: "interview_id",
|
|
5225
|
-
type: "integer",
|
|
5226
|
-
comment: "Column to specify interview id"
|
|
5227
|
-
}),
|
|
5228
|
-
Index36()
|
|
5229
|
-
], InterviewInvite.prototype, "interviewId", 2);
|
|
5230
|
-
__decorateClass([
|
|
5231
|
-
ManyToOne36(() => Interview, { onDelete: "CASCADE" }),
|
|
5232
|
-
JoinColumn36({ name: "interview_id" })
|
|
5233
|
-
], InterviewInvite.prototype, "interview", 2);
|
|
5234
|
-
__decorateClass([
|
|
5235
|
-
Column46({
|
|
5236
|
-
name: "user_id",
|
|
5237
|
-
type: "integer",
|
|
5238
|
-
nullable: true,
|
|
5239
|
-
comment: "FK to User entity if candidate is already registered"
|
|
5240
|
-
}),
|
|
5241
|
-
Index36()
|
|
5242
|
-
], InterviewInvite.prototype, "userId", 2);
|
|
5243
|
-
__decorateClass([
|
|
5244
|
-
ManyToOne36(() => User),
|
|
5245
|
-
JoinColumn36({ name: "user_id" })
|
|
5246
|
-
], InterviewInvite.prototype, "user", 2);
|
|
5247
|
-
__decorateClass([
|
|
5248
|
-
Column46({
|
|
5249
|
-
name: "full_name",
|
|
5250
|
-
type: "varchar",
|
|
5251
|
-
nullable: true,
|
|
5252
|
-
comment: "Candidate's full name (used in the email invitation)"
|
|
5253
|
-
})
|
|
5254
|
-
], InterviewInvite.prototype, "fullName", 2);
|
|
5255
|
-
__decorateClass([
|
|
5256
|
-
Column46({
|
|
5257
|
-
name: "email",
|
|
5258
|
-
type: "varchar",
|
|
5259
|
-
comment: "Candidate's email address (must be unique per invite)"
|
|
5260
|
-
}),
|
|
5261
|
-
Index36()
|
|
5262
|
-
], InterviewInvite.prototype, "email", 2);
|
|
5263
|
-
__decorateClass([
|
|
5264
|
-
Column46({
|
|
5265
|
-
name: "status",
|
|
5266
|
-
type: "enum",
|
|
5267
|
-
enum: InterviewInviteStatusEnum,
|
|
5268
|
-
default: "PENDING" /* PENDING */,
|
|
5269
|
-
comment: "To manage invite status"
|
|
5270
|
-
})
|
|
5271
|
-
], InterviewInvite.prototype, "status", 2);
|
|
5272
|
-
__decorateClass([
|
|
5273
|
-
Column46({
|
|
5274
|
-
name: "sent_at",
|
|
5275
|
-
type: "timestamp with time zone",
|
|
5276
|
-
default: () => "CURRENT_TIMESTAMP",
|
|
5277
|
-
comment: "Timestamp when the invite was created/sent"
|
|
5278
|
-
})
|
|
5279
|
-
], InterviewInvite.prototype, "sentAt", 2);
|
|
5280
|
-
__decorateClass([
|
|
5281
|
-
Column46({
|
|
5282
|
-
name: "expired_at",
|
|
5283
|
-
type: "timestamp with time zone",
|
|
5284
|
-
comment: "Automatically expires invite after 72 hours",
|
|
5285
|
-
nullable: true
|
|
5286
|
-
})
|
|
5287
|
-
], InterviewInvite.prototype, "expiresAt", 2);
|
|
5288
|
-
__decorateClass([
|
|
5289
|
-
Column46({
|
|
5290
|
-
name: "responded_at",
|
|
5291
|
-
type: "timestamp with time zone",
|
|
5292
|
-
nullable: true,
|
|
5293
|
-
comment: "Timestamp when candidate responded."
|
|
5294
|
-
})
|
|
5295
|
-
], InterviewInvite.prototype, "respondedAt", 2);
|
|
5296
|
-
__decorateClass([
|
|
5297
|
-
Column46({
|
|
5298
|
-
name: "token",
|
|
5299
|
-
type: "varchar",
|
|
5300
|
-
unique: true,
|
|
5301
|
-
comment: "Secure unique token sent in email link for invite tracking",
|
|
5302
|
-
nullable: true
|
|
5303
|
-
}),
|
|
5304
|
-
Index36()
|
|
5305
|
-
], InterviewInvite.prototype, "token", 2);
|
|
5306
|
-
InterviewInvite = __decorateClass([
|
|
5307
|
-
Entity45("interview_invites")
|
|
5308
|
-
], InterviewInvite);
|
|
5309
|
-
|
|
5310
5361
|
// src/entities/ai-interview.entity.ts
|
|
5311
|
-
import { Entity as
|
|
5362
|
+
import { Entity as Entity47, Column as Column48, ManyToOne as ManyToOne38, JoinColumn as JoinColumn38, Index as Index38 } from "typeorm";
|
|
5312
5363
|
var AIInterviewStatusEnum = /* @__PURE__ */ ((AIInterviewStatusEnum2) => {
|
|
5313
5364
|
AIInterviewStatusEnum2["IN_PROGRESS"] = "IN_PROGRESS";
|
|
5314
5365
|
AIInterviewStatusEnum2["COMPLETED"] = "COMPLETED";
|
|
@@ -5334,37 +5385,37 @@ var AIInterviewResultEnum = /* @__PURE__ */ ((AIInterviewResultEnum2) => {
|
|
|
5334
5385
|
var AIInterview = class extends BaseEntity {
|
|
5335
5386
|
};
|
|
5336
5387
|
__decorateClass([
|
|
5337
|
-
|
|
5388
|
+
Column48({
|
|
5338
5389
|
name: "interview_id",
|
|
5339
5390
|
type: "integer",
|
|
5340
5391
|
comment: "Redundant explicit interview_id column (optional if using only relation"
|
|
5341
5392
|
}),
|
|
5342
|
-
|
|
5393
|
+
Index38()
|
|
5343
5394
|
], AIInterview.prototype, "interviewId", 2);
|
|
5344
5395
|
__decorateClass([
|
|
5345
|
-
|
|
5396
|
+
Column48({
|
|
5346
5397
|
name: "interview_invite_id",
|
|
5347
5398
|
type: "integer",
|
|
5348
5399
|
comment: "Redundant explicit interview_invite_id column (optional if using only relation"
|
|
5349
5400
|
})
|
|
5350
5401
|
], AIInterview.prototype, "interviewInviteId", 2);
|
|
5351
5402
|
__decorateClass([
|
|
5352
|
-
|
|
5403
|
+
Column48({
|
|
5353
5404
|
name: "candidate_id",
|
|
5354
5405
|
type: "integer",
|
|
5355
5406
|
comment: "Redundant explicit candidate_id column (optional if using only relation"
|
|
5356
5407
|
}),
|
|
5357
|
-
|
|
5408
|
+
Index38()
|
|
5358
5409
|
], AIInterview.prototype, "candidateId", 2);
|
|
5359
5410
|
__decorateClass([
|
|
5360
|
-
|
|
5411
|
+
Column48({
|
|
5361
5412
|
name: "job_id",
|
|
5362
5413
|
type: "integer",
|
|
5363
5414
|
comment: "Redundant explicit job_id column (optional if using only relation"
|
|
5364
5415
|
})
|
|
5365
5416
|
], AIInterview.prototype, "jobId", 2);
|
|
5366
5417
|
__decorateClass([
|
|
5367
|
-
|
|
5418
|
+
Column48({
|
|
5368
5419
|
name: "invite_token",
|
|
5369
5420
|
type: "varchar",
|
|
5370
5421
|
unique: true,
|
|
@@ -5373,38 +5424,38 @@ __decorateClass([
|
|
|
5373
5424
|
})
|
|
5374
5425
|
], AIInterview.prototype, "inviteToken", 2);
|
|
5375
5426
|
__decorateClass([
|
|
5376
|
-
|
|
5427
|
+
Column48({ name: "interview_type", type: "enum", enum: AIInterviewTypeEnum })
|
|
5377
5428
|
], AIInterview.prototype, "interviewType", 2);
|
|
5378
5429
|
__decorateClass([
|
|
5379
|
-
|
|
5430
|
+
Column48({
|
|
5380
5431
|
name: "interview_name",
|
|
5381
5432
|
type: "varchar",
|
|
5382
5433
|
comment: "Name of the interview"
|
|
5383
5434
|
})
|
|
5384
5435
|
], AIInterview.prototype, "interviewName", 2);
|
|
5385
5436
|
__decorateClass([
|
|
5386
|
-
|
|
5437
|
+
Column48({
|
|
5387
5438
|
name: "job_title",
|
|
5388
5439
|
type: "varchar",
|
|
5389
5440
|
comment: "Name of the job title for that the AI interview was conducted"
|
|
5390
5441
|
})
|
|
5391
5442
|
], AIInterview.prototype, "jobTitle", 2);
|
|
5392
5443
|
__decorateClass([
|
|
5393
|
-
|
|
5444
|
+
Column48({
|
|
5394
5445
|
type: "enum",
|
|
5395
5446
|
enum: AIInterviewStatusEnum,
|
|
5396
5447
|
default: "IN_PROGRESS" /* IN_PROGRESS */
|
|
5397
5448
|
})
|
|
5398
5449
|
], AIInterview.prototype, "status", 2);
|
|
5399
5450
|
__decorateClass([
|
|
5400
|
-
|
|
5451
|
+
Column48({
|
|
5401
5452
|
name: "started_at",
|
|
5402
5453
|
type: "timestamp with time zone",
|
|
5403
5454
|
comment: "Timestamp when the interview was started"
|
|
5404
5455
|
})
|
|
5405
5456
|
], AIInterview.prototype, "startedAt", 2);
|
|
5406
5457
|
__decorateClass([
|
|
5407
|
-
|
|
5458
|
+
Column48({
|
|
5408
5459
|
name: "completed_at",
|
|
5409
5460
|
type: "timestamp with time zone",
|
|
5410
5461
|
nullable: true,
|
|
@@ -5412,7 +5463,7 @@ __decorateClass([
|
|
|
5412
5463
|
})
|
|
5413
5464
|
], AIInterview.prototype, "completedAt", 2);
|
|
5414
5465
|
__decorateClass([
|
|
5415
|
-
|
|
5466
|
+
Column48({
|
|
5416
5467
|
name: "duration_minutes",
|
|
5417
5468
|
type: "integer",
|
|
5418
5469
|
nullable: true,
|
|
@@ -5420,7 +5471,7 @@ __decorateClass([
|
|
|
5420
5471
|
})
|
|
5421
5472
|
], AIInterview.prototype, "durationMinutes", 2);
|
|
5422
5473
|
__decorateClass([
|
|
5423
|
-
|
|
5474
|
+
Column48({
|
|
5424
5475
|
name: "overall_score",
|
|
5425
5476
|
type: "decimal",
|
|
5426
5477
|
precision: 5,
|
|
@@ -5430,92 +5481,92 @@ __decorateClass([
|
|
|
5430
5481
|
})
|
|
5431
5482
|
], AIInterview.prototype, "overallScore", 2);
|
|
5432
5483
|
__decorateClass([
|
|
5433
|
-
|
|
5434
|
-
|
|
5484
|
+
ManyToOne38(() => Interview, { onDelete: "CASCADE" }),
|
|
5485
|
+
JoinColumn38({ name: "interview_id" })
|
|
5435
5486
|
], AIInterview.prototype, "interview", 2);
|
|
5436
5487
|
__decorateClass([
|
|
5437
|
-
|
|
5438
|
-
|
|
5488
|
+
ManyToOne38(() => InterviewInvite, { onDelete: "CASCADE" }),
|
|
5489
|
+
JoinColumn38({ name: "interview_invite_id" })
|
|
5439
5490
|
], AIInterview.prototype, "interviewInvite", 2);
|
|
5440
5491
|
__decorateClass([
|
|
5441
|
-
|
|
5442
|
-
|
|
5492
|
+
ManyToOne38(() => User, { onDelete: "CASCADE" }),
|
|
5493
|
+
JoinColumn38({ name: "candidate_id" })
|
|
5443
5494
|
], AIInterview.prototype, "candidate", 2);
|
|
5444
5495
|
__decorateClass([
|
|
5445
|
-
|
|
5446
|
-
|
|
5496
|
+
ManyToOne38(() => Job, { onDelete: "CASCADE" }),
|
|
5497
|
+
JoinColumn38({ name: "job_id" })
|
|
5447
5498
|
], AIInterview.prototype, "job", 2);
|
|
5448
5499
|
AIInterview = __decorateClass([
|
|
5449
|
-
|
|
5500
|
+
Entity47("ai_interviews")
|
|
5450
5501
|
], AIInterview);
|
|
5451
5502
|
|
|
5452
5503
|
// src/entities/plan.entity.ts
|
|
5453
|
-
import { Entity as
|
|
5504
|
+
import { Entity as Entity49, Column as Column50, ManyToMany as ManyToMany3, JoinTable } from "typeorm";
|
|
5454
5505
|
|
|
5455
5506
|
// src/entities/feature.entity.ts
|
|
5456
|
-
import { Entity as
|
|
5507
|
+
import { Entity as Entity48, Column as Column49, ManyToMany as ManyToMany2 } from "typeorm";
|
|
5457
5508
|
var Feature = class extends BaseEntity {
|
|
5458
5509
|
};
|
|
5459
5510
|
__decorateClass([
|
|
5460
|
-
|
|
5511
|
+
Column49({ name: "name", type: "varchar", unique: true })
|
|
5461
5512
|
], Feature.prototype, "name", 2);
|
|
5462
5513
|
__decorateClass([
|
|
5463
5514
|
ManyToMany2(() => Plan, (plan) => plan.features)
|
|
5464
5515
|
], Feature.prototype, "plans", 2);
|
|
5465
5516
|
Feature = __decorateClass([
|
|
5466
|
-
|
|
5517
|
+
Entity48("features")
|
|
5467
5518
|
], Feature);
|
|
5468
5519
|
|
|
5469
5520
|
// src/entities/plan.entity.ts
|
|
5470
5521
|
var Plan = class extends BaseEntity {
|
|
5471
5522
|
};
|
|
5472
5523
|
__decorateClass([
|
|
5473
|
-
|
|
5524
|
+
Column50({ name: "name", type: "varchar", unique: true })
|
|
5474
5525
|
], Plan.prototype, "name", 2);
|
|
5475
5526
|
__decorateClass([
|
|
5476
|
-
|
|
5527
|
+
Column50({ name: "description", type: "varchar", nullable: true })
|
|
5477
5528
|
], Plan.prototype, "description", 2);
|
|
5478
5529
|
__decorateClass([
|
|
5479
|
-
|
|
5530
|
+
Column50({ name: "price", type: "decimal", precision: 10, scale: 2 })
|
|
5480
5531
|
], Plan.prototype, "price", 2);
|
|
5481
5532
|
__decorateClass([
|
|
5482
|
-
|
|
5533
|
+
Column50({ name: "billing_period", type: "varchar" })
|
|
5483
5534
|
], Plan.prototype, "billingPeriod", 2);
|
|
5484
5535
|
__decorateClass([
|
|
5485
|
-
|
|
5536
|
+
Column50({ name: "is_current", type: "boolean", default: false })
|
|
5486
5537
|
], Plan.prototype, "isCurrent", 2);
|
|
5487
5538
|
__decorateClass([
|
|
5488
5539
|
ManyToMany3(() => Feature, (feature) => feature.plans, { cascade: true }),
|
|
5489
5540
|
JoinTable()
|
|
5490
5541
|
], Plan.prototype, "features", 2);
|
|
5491
5542
|
Plan = __decorateClass([
|
|
5492
|
-
|
|
5543
|
+
Entity49("plans")
|
|
5493
5544
|
], Plan);
|
|
5494
5545
|
|
|
5495
5546
|
// src/entities/cms.entity.ts
|
|
5496
|
-
import { Entity as
|
|
5547
|
+
import { Entity as Entity50, Column as Column51 } from "typeorm";
|
|
5497
5548
|
var Cms = class extends BaseEntity {
|
|
5498
5549
|
};
|
|
5499
5550
|
__decorateClass([
|
|
5500
|
-
|
|
5551
|
+
Column51({ name: "title", type: "varchar", nullable: true })
|
|
5501
5552
|
], Cms.prototype, "title", 2);
|
|
5502
5553
|
__decorateClass([
|
|
5503
|
-
|
|
5554
|
+
Column51({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
5504
5555
|
], Cms.prototype, "slug", 2);
|
|
5505
5556
|
__decorateClass([
|
|
5506
|
-
|
|
5557
|
+
Column51({ name: "content", type: "varchar", nullable: true })
|
|
5507
5558
|
], Cms.prototype, "content", 2);
|
|
5508
5559
|
__decorateClass([
|
|
5509
|
-
|
|
5560
|
+
Column51({ name: "is_active", type: "boolean", default: true })
|
|
5510
5561
|
], Cms.prototype, "isActive", 2);
|
|
5511
5562
|
Cms = __decorateClass([
|
|
5512
|
-
|
|
5563
|
+
Entity50("cms")
|
|
5513
5564
|
], Cms);
|
|
5514
5565
|
|
|
5515
5566
|
// src/entities/lead.entity.ts
|
|
5516
5567
|
import {
|
|
5517
|
-
Entity as
|
|
5518
|
-
Column as
|
|
5568
|
+
Entity as Entity51,
|
|
5569
|
+
Column as Column52
|
|
5519
5570
|
} from "typeorm";
|
|
5520
5571
|
var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
|
|
5521
5572
|
CategoryEmum2["BUSINESS"] = "BUSINESS";
|
|
@@ -5525,22 +5576,22 @@ var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
|
|
|
5525
5576
|
var Lead = class extends BaseEntity {
|
|
5526
5577
|
};
|
|
5527
5578
|
__decorateClass([
|
|
5528
|
-
|
|
5579
|
+
Column52({ name: "name", type: "varchar", nullable: true })
|
|
5529
5580
|
], Lead.prototype, "name", 2);
|
|
5530
5581
|
__decorateClass([
|
|
5531
|
-
|
|
5582
|
+
Column52({ name: "mobile_code", type: "varchar", nullable: true })
|
|
5532
5583
|
], Lead.prototype, "mobileCode", 2);
|
|
5533
5584
|
__decorateClass([
|
|
5534
|
-
|
|
5585
|
+
Column52({ name: "mobile", type: "varchar", nullable: true })
|
|
5535
5586
|
], Lead.prototype, "mobile", 2);
|
|
5536
5587
|
__decorateClass([
|
|
5537
|
-
|
|
5588
|
+
Column52({ name: "email", type: "varchar", nullable: true })
|
|
5538
5589
|
], Lead.prototype, "email", 2);
|
|
5539
5590
|
__decorateClass([
|
|
5540
|
-
|
|
5591
|
+
Column52({ name: "description", type: "varchar", nullable: true })
|
|
5541
5592
|
], Lead.prototype, "description", 2);
|
|
5542
5593
|
__decorateClass([
|
|
5543
|
-
|
|
5594
|
+
Column52({
|
|
5544
5595
|
name: "category",
|
|
5545
5596
|
type: "enum",
|
|
5546
5597
|
enum: CategoryEmum,
|
|
@@ -5548,7 +5599,7 @@ __decorateClass([
|
|
|
5548
5599
|
})
|
|
5549
5600
|
], Lead.prototype, "category", 2);
|
|
5550
5601
|
Lead = __decorateClass([
|
|
5551
|
-
|
|
5602
|
+
Entity51("leads")
|
|
5552
5603
|
], Lead);
|
|
5553
5604
|
|
|
5554
5605
|
// src/entities/job-freelancer-recommendation.entity.ts
|
|
@@ -5789,7 +5840,7 @@ ClientFreelancerRecommendation = __decorateClass([
|
|
|
5789
5840
|
], ClientFreelancerRecommendation);
|
|
5790
5841
|
|
|
5791
5842
|
// src/entities/commission.entity.ts
|
|
5792
|
-
import { Entity as
|
|
5843
|
+
import { Entity as Entity52, Column as Column53 } from "typeorm";
|
|
5793
5844
|
var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
|
|
5794
5845
|
CommissionTypeEnum2["PERCENTAGE"] = "PERCENTAGE";
|
|
5795
5846
|
CommissionTypeEnum2["FLAT"] = "FLAT";
|
|
@@ -5798,7 +5849,7 @@ var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
|
|
|
5798
5849
|
var Commission = class extends BaseEntity {
|
|
5799
5850
|
};
|
|
5800
5851
|
__decorateClass([
|
|
5801
|
-
|
|
5852
|
+
Column53({
|
|
5802
5853
|
name: "freelancer_commission_type",
|
|
5803
5854
|
type: "enum",
|
|
5804
5855
|
enum: CommissionTypeEnum,
|
|
@@ -5806,10 +5857,10 @@ __decorateClass([
|
|
|
5806
5857
|
})
|
|
5807
5858
|
], Commission.prototype, "freelancerCommissionType", 2);
|
|
5808
5859
|
__decorateClass([
|
|
5809
|
-
|
|
5860
|
+
Column53({ name: "freelancer_commission", type: "integer", default: 0 })
|
|
5810
5861
|
], Commission.prototype, "freelancerCommission", 2);
|
|
5811
5862
|
__decorateClass([
|
|
5812
|
-
|
|
5863
|
+
Column53({
|
|
5813
5864
|
name: "client_commission_type",
|
|
5814
5865
|
type: "enum",
|
|
5815
5866
|
enum: CommissionTypeEnum,
|
|
@@ -5817,10 +5868,10 @@ __decorateClass([
|
|
|
5817
5868
|
})
|
|
5818
5869
|
], Commission.prototype, "clientCommissionType", 2);
|
|
5819
5870
|
__decorateClass([
|
|
5820
|
-
|
|
5871
|
+
Column53({ name: "client_commission", type: "integer", default: 0 })
|
|
5821
5872
|
], Commission.prototype, "clientCommission", 2);
|
|
5822
5873
|
Commission = __decorateClass([
|
|
5823
|
-
|
|
5874
|
+
Entity52("commissions")
|
|
5824
5875
|
], Commission);
|
|
5825
5876
|
export {
|
|
5826
5877
|
ADMIN_FREELANCER_PATTERN,
|
|
@@ -5955,6 +6006,7 @@ export {
|
|
|
5955
6006
|
JobLocationEnumDto,
|
|
5956
6007
|
JobLocationEnums,
|
|
5957
6008
|
JobRMQAdapter,
|
|
6009
|
+
JobRecommendation,
|
|
5958
6010
|
JobRoles,
|
|
5959
6011
|
JobSkill,
|
|
5960
6012
|
JobStatus,
|