@experts_hub/shared 1.0.227 → 1.0.229
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/country.entity.d.ts +3 -1
- package/dist/entities/freelancer-profile.entity.d.ts +20 -1
- package/dist/index.d.mts +48 -29
- package/dist/index.d.ts +48 -29
- package/dist/index.js +328 -278
- package/dist/index.mjs +339 -291
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -35,6 +35,7 @@ __export(index_exports, {
|
|
|
35
35
|
AccountType: () => AccountType,
|
|
36
36
|
AdminCreateJobInformationDto: () => AdminCreateJobInformationDto,
|
|
37
37
|
AdminUpdateJobInformationDto: () => AdminUpdateJobInformationDto,
|
|
38
|
+
AiAssessmentStatusEnum: () => AiAssessmentStatusEnum,
|
|
38
39
|
AnswerTypeEnum: () => AnswerTypeEnum,
|
|
39
40
|
ApplicationStatusEnum: () => ApplicationStatusEnum,
|
|
40
41
|
AssessmentAnswer: () => AssessmentAnswer,
|
|
@@ -146,6 +147,7 @@ __export(index_exports, {
|
|
|
146
147
|
Lead: () => Lead,
|
|
147
148
|
LoginDto: () => LoginDto,
|
|
148
149
|
LogoutDto: () => LogoutDto,
|
|
150
|
+
McqStatusEnum: () => McqStatusEnum,
|
|
149
151
|
ModeOfHire: () => ModeOfHire,
|
|
150
152
|
ModeOfWork: () => ModeOfWork,
|
|
151
153
|
NOTIFICATION_PATTERN: () => NOTIFICATION_PATTERN,
|
|
@@ -1349,7 +1351,173 @@ Otp = __decorateClass([
|
|
|
1349
1351
|
], Otp);
|
|
1350
1352
|
|
|
1351
1353
|
// src/entities/freelancer-profile.entity.ts
|
|
1354
|
+
var import_typeorm8 = require("typeorm");
|
|
1355
|
+
|
|
1356
|
+
// src/entities/country.entity.ts
|
|
1357
|
+
var import_typeorm7 = require("typeorm");
|
|
1358
|
+
|
|
1359
|
+
// src/entities/state.entity.ts
|
|
1360
|
+
var import_typeorm6 = require("typeorm");
|
|
1361
|
+
|
|
1362
|
+
// src/entities/city.entity.ts
|
|
1352
1363
|
var import_typeorm5 = require("typeorm");
|
|
1364
|
+
var City = class extends BaseEntity {
|
|
1365
|
+
};
|
|
1366
|
+
__decorateClass([
|
|
1367
|
+
(0, import_typeorm5.Column)({
|
|
1368
|
+
name: "country_id",
|
|
1369
|
+
type: "int",
|
|
1370
|
+
nullable: true,
|
|
1371
|
+
comment: "Id of the country"
|
|
1372
|
+
})
|
|
1373
|
+
], City.prototype, "countryId", 2);
|
|
1374
|
+
__decorateClass([
|
|
1375
|
+
(0, import_typeorm5.ManyToOne)(() => Country),
|
|
1376
|
+
(0, import_typeorm5.JoinColumn)({ name: "country_id" })
|
|
1377
|
+
], City.prototype, "country", 2);
|
|
1378
|
+
__decorateClass([
|
|
1379
|
+
(0, import_typeorm5.Column)({
|
|
1380
|
+
name: "state_id",
|
|
1381
|
+
type: "int",
|
|
1382
|
+
nullable: false,
|
|
1383
|
+
comment: "Id of the state"
|
|
1384
|
+
})
|
|
1385
|
+
], City.prototype, "stateId", 2);
|
|
1386
|
+
__decorateClass([
|
|
1387
|
+
(0, import_typeorm5.ManyToOne)(() => State, (state) => state.cities),
|
|
1388
|
+
(0, import_typeorm5.JoinColumn)({ name: "state_id" })
|
|
1389
|
+
], City.prototype, "state", 2);
|
|
1390
|
+
__decorateClass([
|
|
1391
|
+
(0, import_typeorm5.Column)({
|
|
1392
|
+
name: "city_code",
|
|
1393
|
+
type: "varchar",
|
|
1394
|
+
length: 100,
|
|
1395
|
+
nullable: false,
|
|
1396
|
+
unique: true,
|
|
1397
|
+
comment: "Code of the city"
|
|
1398
|
+
})
|
|
1399
|
+
], City.prototype, "cityCode", 2);
|
|
1400
|
+
__decorateClass([
|
|
1401
|
+
(0, import_typeorm5.Column)({
|
|
1402
|
+
name: "city_name",
|
|
1403
|
+
type: "varchar",
|
|
1404
|
+
length: 100,
|
|
1405
|
+
nullable: false,
|
|
1406
|
+
comment: "Name of the city"
|
|
1407
|
+
})
|
|
1408
|
+
], City.prototype, "cityName", 2);
|
|
1409
|
+
__decorateClass([
|
|
1410
|
+
(0, import_typeorm5.Column)({
|
|
1411
|
+
name: "is_active",
|
|
1412
|
+
type: "boolean",
|
|
1413
|
+
default: true,
|
|
1414
|
+
comment: "Flag indicating if the city is active"
|
|
1415
|
+
})
|
|
1416
|
+
], City.prototype, "isActive", 2);
|
|
1417
|
+
City = __decorateClass([
|
|
1418
|
+
(0, import_typeorm5.Entity)("cities")
|
|
1419
|
+
], City);
|
|
1420
|
+
|
|
1421
|
+
// src/entities/state.entity.ts
|
|
1422
|
+
var State = class extends BaseEntity {
|
|
1423
|
+
};
|
|
1424
|
+
__decorateClass([
|
|
1425
|
+
(0, import_typeorm6.Column)({
|
|
1426
|
+
name: "country_id",
|
|
1427
|
+
type: "int",
|
|
1428
|
+
nullable: false,
|
|
1429
|
+
comment: "Id of the country"
|
|
1430
|
+
})
|
|
1431
|
+
], State.prototype, "countryId", 2);
|
|
1432
|
+
__decorateClass([
|
|
1433
|
+
(0, import_typeorm6.ManyToOne)(() => Country, (country) => country.states),
|
|
1434
|
+
(0, import_typeorm6.JoinColumn)({ name: "country_id" })
|
|
1435
|
+
], State.prototype, "country", 2);
|
|
1436
|
+
__decorateClass([
|
|
1437
|
+
(0, import_typeorm6.OneToMany)(() => City, (city) => city.state)
|
|
1438
|
+
], State.prototype, "cities", 2);
|
|
1439
|
+
__decorateClass([
|
|
1440
|
+
(0, import_typeorm6.Column)({
|
|
1441
|
+
name: "state_name",
|
|
1442
|
+
type: "varchar",
|
|
1443
|
+
length: 100,
|
|
1444
|
+
nullable: false,
|
|
1445
|
+
comment: "Name of the state"
|
|
1446
|
+
})
|
|
1447
|
+
], State.prototype, "stateName", 2);
|
|
1448
|
+
__decorateClass([
|
|
1449
|
+
(0, import_typeorm6.Column)({
|
|
1450
|
+
name: "is_active",
|
|
1451
|
+
type: "boolean",
|
|
1452
|
+
default: true,
|
|
1453
|
+
comment: "Flag indicating if the state is active"
|
|
1454
|
+
})
|
|
1455
|
+
], State.prototype, "isActive", 2);
|
|
1456
|
+
State = __decorateClass([
|
|
1457
|
+
(0, import_typeorm6.Entity)("states")
|
|
1458
|
+
], State);
|
|
1459
|
+
|
|
1460
|
+
// src/entities/country.entity.ts
|
|
1461
|
+
var Country = class extends BaseEntity {
|
|
1462
|
+
};
|
|
1463
|
+
__decorateClass([
|
|
1464
|
+
(0, import_typeorm7.Column)({
|
|
1465
|
+
name: "country_name",
|
|
1466
|
+
type: "varchar",
|
|
1467
|
+
length: 100,
|
|
1468
|
+
nullable: false,
|
|
1469
|
+
// Set to false for required
|
|
1470
|
+
comment: "Name of the country"
|
|
1471
|
+
})
|
|
1472
|
+
], Country.prototype, "countryName", 2);
|
|
1473
|
+
__decorateClass([
|
|
1474
|
+
(0, import_typeorm7.Column)({
|
|
1475
|
+
name: "country_iso_code",
|
|
1476
|
+
type: "varchar",
|
|
1477
|
+
length: 2,
|
|
1478
|
+
nullable: false,
|
|
1479
|
+
// Must be required if it's unique
|
|
1480
|
+
unique: true,
|
|
1481
|
+
comment: "ISO 3166-1 alpha-2 country code"
|
|
1482
|
+
})
|
|
1483
|
+
], Country.prototype, "countryIsoCode", 2);
|
|
1484
|
+
__decorateClass([
|
|
1485
|
+
(0, import_typeorm7.Column)({
|
|
1486
|
+
name: "country_phone_code",
|
|
1487
|
+
type: "varchar",
|
|
1488
|
+
length: 10,
|
|
1489
|
+
nullable: true,
|
|
1490
|
+
comment: "International dialing code for the country"
|
|
1491
|
+
})
|
|
1492
|
+
], Country.prototype, "countryPhoneCode", 2);
|
|
1493
|
+
__decorateClass([
|
|
1494
|
+
(0, import_typeorm7.Column)({
|
|
1495
|
+
name: "currency",
|
|
1496
|
+
type: "varchar",
|
|
1497
|
+
length: 3,
|
|
1498
|
+
nullable: true,
|
|
1499
|
+
comment: "ISO 4217 currency code"
|
|
1500
|
+
})
|
|
1501
|
+
], Country.prototype, "currency", 2);
|
|
1502
|
+
__decorateClass([
|
|
1503
|
+
(0, import_typeorm7.Column)({
|
|
1504
|
+
name: "is_active",
|
|
1505
|
+
type: "boolean",
|
|
1506
|
+
default: true,
|
|
1507
|
+
comment: "Flag indicating if the country is active"
|
|
1508
|
+
})
|
|
1509
|
+
], Country.prototype, "isActive", 2);
|
|
1510
|
+
__decorateClass([
|
|
1511
|
+
(0, import_typeorm7.OneToMany)(() => State, (state) => state.country)
|
|
1512
|
+
], Country.prototype, "states", 2);
|
|
1513
|
+
__decorateClass([
|
|
1514
|
+
(0, import_typeorm7.OneToMany)(() => FreelancerProfile, (freelancerProfile) => freelancerProfile.country)
|
|
1515
|
+
], Country.prototype, "freelancerProfile", 2);
|
|
1516
|
+
Country = __decorateClass([
|
|
1517
|
+
(0, import_typeorm7.Entity)("countries")
|
|
1518
|
+
], Country);
|
|
1519
|
+
|
|
1520
|
+
// src/entities/freelancer-profile.entity.ts
|
|
1353
1521
|
var NatureOfWork = /* @__PURE__ */ ((NatureOfWork2) => {
|
|
1354
1522
|
NatureOfWork2["FULLTIME"] = "FULLTIME";
|
|
1355
1523
|
NatureOfWork2["PARTTIME"] = "PARTTIME";
|
|
@@ -1366,46 +1534,90 @@ var OnboardingStepEnum = /* @__PURE__ */ ((OnboardingStepEnum2) => {
|
|
|
1366
1534
|
OnboardingStepEnum2["SIGN_UP"] = "SIGN_UP";
|
|
1367
1535
|
OnboardingStepEnum2["UPLOAD_RESUME"] = "UPLOAD_RESUME";
|
|
1368
1536
|
OnboardingStepEnum2["PARSE_RESUME"] = "PARSE_RESUME";
|
|
1537
|
+
OnboardingStepEnum2["MCQ_ASSESSMENT_INITIATED"] = "MCQ_ASSESSMENT_INITIATED";
|
|
1538
|
+
OnboardingStepEnum2["MCQ_ASSESSMENT_COMPLETED"] = "MCQ_ASSESSMENT_COMPLETED";
|
|
1369
1539
|
OnboardingStepEnum2["AI_ASSESSMENT_INITIATED"] = "AI_ASSESSMENT_INITIATED";
|
|
1370
1540
|
OnboardingStepEnum2["AI_ASSESSMENT_COMPLETED"] = "AI_ASSESSMENT_COMPLETED";
|
|
1371
1541
|
OnboardingStepEnum2["CODING_CHALLENGE"] = "CODING_CHALLENGE";
|
|
1372
1542
|
OnboardingStepEnum2["PROFILE_COMPLETION"] = "PROFILE_COMPLETION";
|
|
1373
1543
|
return OnboardingStepEnum2;
|
|
1374
1544
|
})(OnboardingStepEnum || {});
|
|
1545
|
+
var McqStatusEnum = /* @__PURE__ */ ((McqStatusEnum2) => {
|
|
1546
|
+
McqStatusEnum2["NOT_ATTEMPTED"] = "NOT_ATTEMPTED";
|
|
1547
|
+
McqStatusEnum2["PASSED"] = "PASSED";
|
|
1548
|
+
McqStatusEnum2["FAILED"] = "FAILED";
|
|
1549
|
+
return McqStatusEnum2;
|
|
1550
|
+
})(McqStatusEnum || {});
|
|
1551
|
+
var AiAssessmentStatusEnum = /* @__PURE__ */ ((AiAssessmentStatusEnum2) => {
|
|
1552
|
+
AiAssessmentStatusEnum2["NOT_ATTEMPTED"] = "NOT_ATTEMPTED";
|
|
1553
|
+
AiAssessmentStatusEnum2["PASSED"] = "PASSED";
|
|
1554
|
+
AiAssessmentStatusEnum2["FAILED"] = "FAILED";
|
|
1555
|
+
AiAssessmentStatusEnum2["SKIPPED"] = "SKIPPED";
|
|
1556
|
+
return AiAssessmentStatusEnum2;
|
|
1557
|
+
})(AiAssessmentStatusEnum || {});
|
|
1375
1558
|
var FreelancerProfile = class extends BaseEntity {
|
|
1376
1559
|
};
|
|
1377
1560
|
// individual index to find profile by user
|
|
1378
1561
|
__decorateClass([
|
|
1379
|
-
(0,
|
|
1380
|
-
(0,
|
|
1562
|
+
(0, import_typeorm8.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
1563
|
+
(0, import_typeorm8.Index)()
|
|
1381
1564
|
], FreelancerProfile.prototype, "userId", 2);
|
|
1382
1565
|
__decorateClass([
|
|
1383
|
-
(0,
|
|
1384
|
-
(0,
|
|
1566
|
+
(0, import_typeorm8.ManyToOne)(() => User, (user) => user.freelancerProfile),
|
|
1567
|
+
(0, import_typeorm8.JoinColumn)({ name: "user_id" })
|
|
1385
1568
|
], FreelancerProfile.prototype, "user", 2);
|
|
1386
1569
|
__decorateClass([
|
|
1387
|
-
(0,
|
|
1570
|
+
(0, import_typeorm8.Column)({ name: "country_id", type: "integer", nullable: true })
|
|
1571
|
+
], FreelancerProfile.prototype, "countryId", 2);
|
|
1572
|
+
__decorateClass([
|
|
1573
|
+
(0, import_typeorm8.ManyToOne)(() => Country, (country) => country.freelancerProfile),
|
|
1574
|
+
(0, import_typeorm8.JoinColumn)({ name: "country_id" })
|
|
1575
|
+
], FreelancerProfile.prototype, "country", 2);
|
|
1576
|
+
__decorateClass([
|
|
1577
|
+
(0, import_typeorm8.Column)({ name: "talent_id", type: "varchar", nullable: true })
|
|
1388
1578
|
], FreelancerProfile.prototype, "talentId", 2);
|
|
1389
1579
|
__decorateClass([
|
|
1390
|
-
(0,
|
|
1580
|
+
(0, import_typeorm8.Column)({ name: "resume_url", type: "text", nullable: true })
|
|
1391
1581
|
], FreelancerProfile.prototype, "resumeUrl", 2);
|
|
1392
1582
|
__decorateClass([
|
|
1393
|
-
(0,
|
|
1583
|
+
(0, import_typeorm8.Column)({ name: "resume_data", type: "jsonb", nullable: true })
|
|
1394
1584
|
], FreelancerProfile.prototype, "resumeData", 2);
|
|
1395
1585
|
__decorateClass([
|
|
1396
|
-
(0,
|
|
1586
|
+
(0, import_typeorm8.Column)({ name: "processed_resume_data", type: "jsonb", nullable: true })
|
|
1397
1587
|
], FreelancerProfile.prototype, "processedResumeData", 2);
|
|
1398
1588
|
__decorateClass([
|
|
1399
|
-
(0,
|
|
1589
|
+
(0, import_typeorm8.Column)({ name: "resume_eligibility", type: "varchar", nullable: true })
|
|
1400
1590
|
], FreelancerProfile.prototype, "resumeEligibility", 2);
|
|
1401
1591
|
__decorateClass([
|
|
1402
|
-
(0,
|
|
1592
|
+
(0, import_typeorm8.Column)({ name: "resume_score", type: "jsonb", nullable: true })
|
|
1403
1593
|
], FreelancerProfile.prototype, "resumeScore", 2);
|
|
1404
1594
|
__decorateClass([
|
|
1405
|
-
(0,
|
|
1595
|
+
(0, import_typeorm8.Column)({
|
|
1596
|
+
name: "mcq_status",
|
|
1597
|
+
type: "enum",
|
|
1598
|
+
enum: McqStatusEnum,
|
|
1599
|
+
nullable: true
|
|
1600
|
+
})
|
|
1601
|
+
], FreelancerProfile.prototype, "mcqStatus", 2);
|
|
1602
|
+
__decorateClass([
|
|
1603
|
+
(0, import_typeorm8.Column)({ name: "mcq_score", type: "integer", nullable: true })
|
|
1604
|
+
], FreelancerProfile.prototype, "mcqScore", 2);
|
|
1605
|
+
__decorateClass([
|
|
1606
|
+
(0, import_typeorm8.Column)({ name: "is_eligible_for_ai_assessment", type: "boolean", nullable: true })
|
|
1607
|
+
], FreelancerProfile.prototype, "isEligibleForAiAssessment", 2);
|
|
1608
|
+
__decorateClass([
|
|
1609
|
+
(0, import_typeorm8.Column)({
|
|
1610
|
+
name: "ai_assessment_status",
|
|
1611
|
+
type: "enum",
|
|
1612
|
+
enum: AiAssessmentStatusEnum,
|
|
1613
|
+
nullable: true
|
|
1614
|
+
})
|
|
1615
|
+
], FreelancerProfile.prototype, "aiAssessmentStatus", 2);
|
|
1616
|
+
__decorateClass([
|
|
1617
|
+
(0, import_typeorm8.Column)({ name: "is_developer", type: "boolean", default: false })
|
|
1406
1618
|
], FreelancerProfile.prototype, "isDeveloper", 2);
|
|
1407
1619
|
__decorateClass([
|
|
1408
|
-
(0,
|
|
1620
|
+
(0, import_typeorm8.Column)({
|
|
1409
1621
|
name: "nature_of_work",
|
|
1410
1622
|
type: "enum",
|
|
1411
1623
|
enum: NatureOfWork,
|
|
@@ -1413,10 +1625,10 @@ __decorateClass([
|
|
|
1413
1625
|
})
|
|
1414
1626
|
], FreelancerProfile.prototype, "natureOfWork", 2);
|
|
1415
1627
|
__decorateClass([
|
|
1416
|
-
(0,
|
|
1628
|
+
(0, import_typeorm8.Column)({ name: "currency", type: "varchar", default: "USD" })
|
|
1417
1629
|
], FreelancerProfile.prototype, "currency", 2);
|
|
1418
1630
|
__decorateClass([
|
|
1419
|
-
(0,
|
|
1631
|
+
(0, import_typeorm8.Column)({
|
|
1420
1632
|
name: "expected_hourly_compensation",
|
|
1421
1633
|
type: "numeric",
|
|
1422
1634
|
precision: 10,
|
|
@@ -1425,7 +1637,7 @@ __decorateClass([
|
|
|
1425
1637
|
})
|
|
1426
1638
|
], FreelancerProfile.prototype, "expectedHourlyCompensation", 2);
|
|
1427
1639
|
__decorateClass([
|
|
1428
|
-
(0,
|
|
1640
|
+
(0, import_typeorm8.Column)({
|
|
1429
1641
|
name: "mode_of_work",
|
|
1430
1642
|
type: "enum",
|
|
1431
1643
|
enum: ModeOfWork,
|
|
@@ -1433,32 +1645,32 @@ __decorateClass([
|
|
|
1433
1645
|
})
|
|
1434
1646
|
], FreelancerProfile.prototype, "modeOfWork", 2);
|
|
1435
1647
|
__decorateClass([
|
|
1436
|
-
(0,
|
|
1648
|
+
(0, import_typeorm8.Column)({ name: "availability_to_join", type: "varchar", nullable: true })
|
|
1437
1649
|
], FreelancerProfile.prototype, "availabilityToJoin", 2);
|
|
1438
1650
|
__decorateClass([
|
|
1439
|
-
(0,
|
|
1651
|
+
(0, import_typeorm8.Column)({ name: "is_immediate_joiner", type: "boolean", nullable: true })
|
|
1440
1652
|
], FreelancerProfile.prototype, "isImmediateJoiner", 2);
|
|
1441
1653
|
__decorateClass([
|
|
1442
|
-
(0,
|
|
1654
|
+
(0, import_typeorm8.Column)({ name: "linkedin_profile_link", type: "varchar", nullable: true })
|
|
1443
1655
|
], FreelancerProfile.prototype, "linkedinProfileLink", 2);
|
|
1444
1656
|
__decorateClass([
|
|
1445
|
-
(0,
|
|
1657
|
+
(0, import_typeorm8.Column)({ name: "kaggle_profile_link", type: "varchar", nullable: true })
|
|
1446
1658
|
], FreelancerProfile.prototype, "kaggleProfileLink", 2);
|
|
1447
1659
|
__decorateClass([
|
|
1448
|
-
(0,
|
|
1660
|
+
(0, import_typeorm8.Column)({ name: "github_profile_link", type: "varchar", nullable: true })
|
|
1449
1661
|
], FreelancerProfile.prototype, "githubProfileLink", 2);
|
|
1450
1662
|
__decorateClass([
|
|
1451
|
-
(0,
|
|
1663
|
+
(0, import_typeorm8.Column)({
|
|
1452
1664
|
name: "stack_overflow_profile_link",
|
|
1453
1665
|
type: "varchar",
|
|
1454
1666
|
nullable: true
|
|
1455
1667
|
})
|
|
1456
1668
|
], FreelancerProfile.prototype, "stackOverflowProfileLink", 2);
|
|
1457
1669
|
__decorateClass([
|
|
1458
|
-
(0,
|
|
1670
|
+
(0, import_typeorm8.Column)({ name: "portfolio_link", type: "varchar", nullable: true })
|
|
1459
1671
|
], FreelancerProfile.prototype, "portfolioLink", 2);
|
|
1460
1672
|
__decorateClass([
|
|
1461
|
-
(0,
|
|
1673
|
+
(0, import_typeorm8.Column)({
|
|
1462
1674
|
name: "onboarding_step_completed",
|
|
1463
1675
|
type: "enum",
|
|
1464
1676
|
enum: OnboardingStepEnum,
|
|
@@ -1466,16 +1678,13 @@ __decorateClass([
|
|
|
1466
1678
|
})
|
|
1467
1679
|
], FreelancerProfile.prototype, "onboardingStepCompleted", 2);
|
|
1468
1680
|
__decorateClass([
|
|
1469
|
-
(0,
|
|
1470
|
-
], FreelancerProfile.prototype, "countryId", 2);
|
|
1471
|
-
__decorateClass([
|
|
1472
|
-
(0, import_typeorm5.Column)({ name: "address", type: "varchar", nullable: true })
|
|
1681
|
+
(0, import_typeorm8.Column)({ name: "address", type: "varchar", nullable: true })
|
|
1473
1682
|
], FreelancerProfile.prototype, "address", 2);
|
|
1474
1683
|
__decorateClass([
|
|
1475
|
-
(0,
|
|
1684
|
+
(0, import_typeorm8.Column)({ name: "about", type: "varchar", nullable: true })
|
|
1476
1685
|
], FreelancerProfile.prototype, "about", 2);
|
|
1477
1686
|
__decorateClass([
|
|
1478
|
-
(0,
|
|
1687
|
+
(0, import_typeorm8.Column)({
|
|
1479
1688
|
name: "profile_completed_percentage",
|
|
1480
1689
|
type: "json",
|
|
1481
1690
|
default: {
|
|
@@ -1489,17 +1698,17 @@ __decorateClass([
|
|
|
1489
1698
|
})
|
|
1490
1699
|
], FreelancerProfile.prototype, "profileCompletedPercentage", 2);
|
|
1491
1700
|
__decorateClass([
|
|
1492
|
-
(0,
|
|
1701
|
+
(0, import_typeorm8.Column)({ name: "service_agreement_url", type: "varchar", nullable: true })
|
|
1493
1702
|
], FreelancerProfile.prototype, "serviceAgreementUrl", 2);
|
|
1494
1703
|
__decorateClass([
|
|
1495
|
-
(0,
|
|
1704
|
+
(0, import_typeorm8.Column)({ name: "service_agreement_signed_on", type: "timestamp with time zone", nullable: true })
|
|
1496
1705
|
], FreelancerProfile.prototype, "serviceAggrementSignedOn", 2);
|
|
1497
1706
|
FreelancerProfile = __decorateClass([
|
|
1498
|
-
(0,
|
|
1707
|
+
(0, import_typeorm8.Entity)("freelancer_profiles")
|
|
1499
1708
|
], FreelancerProfile);
|
|
1500
1709
|
|
|
1501
1710
|
// src/entities/company-profile.entity.ts
|
|
1502
|
-
var
|
|
1711
|
+
var import_typeorm9 = require("typeorm");
|
|
1503
1712
|
var KindOfHire = /* @__PURE__ */ ((KindOfHire2) => {
|
|
1504
1713
|
KindOfHire2["FULLTIME"] = "FULLTIME";
|
|
1505
1714
|
KindOfHire2["PARTTIME"] = "PARTTIME";
|
|
@@ -1528,52 +1737,52 @@ var CompanyProfile = class extends BaseEntity {
|
|
|
1528
1737
|
};
|
|
1529
1738
|
// individual index to find company profile by user
|
|
1530
1739
|
__decorateClass([
|
|
1531
|
-
(0,
|
|
1532
|
-
(0,
|
|
1740
|
+
(0, import_typeorm9.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
1741
|
+
(0, import_typeorm9.Index)()
|
|
1533
1742
|
], CompanyProfile.prototype, "userId", 2);
|
|
1534
1743
|
__decorateClass([
|
|
1535
|
-
(0,
|
|
1536
|
-
(0,
|
|
1744
|
+
(0, import_typeorm9.ManyToOne)(() => User, (user) => user.companyProfile),
|
|
1745
|
+
(0, import_typeorm9.JoinColumn)({ name: "user_id" })
|
|
1537
1746
|
], CompanyProfile.prototype, "user", 2);
|
|
1538
1747
|
__decorateClass([
|
|
1539
|
-
(0,
|
|
1748
|
+
(0, import_typeorm9.Column)({ name: "company_name", type: "varchar", nullable: true })
|
|
1540
1749
|
], CompanyProfile.prototype, "companyName", 2);
|
|
1541
1750
|
__decorateClass([
|
|
1542
|
-
(0,
|
|
1751
|
+
(0, import_typeorm9.Column)({ name: "bio", type: "varchar", nullable: true })
|
|
1543
1752
|
], CompanyProfile.prototype, "bio", 2);
|
|
1544
1753
|
__decorateClass([
|
|
1545
|
-
(0,
|
|
1754
|
+
(0, import_typeorm9.Column)({ name: "website", type: "varchar", nullable: true })
|
|
1546
1755
|
], CompanyProfile.prototype, "webSite", 2);
|
|
1547
1756
|
__decorateClass([
|
|
1548
|
-
(0,
|
|
1757
|
+
(0, import_typeorm9.Column)({ name: "about_company", type: "varchar", nullable: true })
|
|
1549
1758
|
], CompanyProfile.prototype, "aboutCompany", 2);
|
|
1550
1759
|
__decorateClass([
|
|
1551
|
-
(0,
|
|
1760
|
+
(0, import_typeorm9.Column)({
|
|
1552
1761
|
name: "is_service_aggrement_signed",
|
|
1553
1762
|
type: "boolean",
|
|
1554
1763
|
default: false
|
|
1555
1764
|
})
|
|
1556
1765
|
], CompanyProfile.prototype, "isServiceAgreementSigned", 2);
|
|
1557
1766
|
__decorateClass([
|
|
1558
|
-
(0,
|
|
1767
|
+
(0, import_typeorm9.Column)({ name: "service_agreement_url", type: "varchar", nullable: true })
|
|
1559
1768
|
], CompanyProfile.prototype, "serviceAgreementUrl", 2);
|
|
1560
1769
|
__decorateClass([
|
|
1561
|
-
(0,
|
|
1770
|
+
(0, import_typeorm9.Column)({ name: "service_agreement_signed_on", type: "timestamp with time zone", nullable: true })
|
|
1562
1771
|
], CompanyProfile.prototype, "serviceAggrementSignedOn", 2);
|
|
1563
1772
|
__decorateClass([
|
|
1564
|
-
(0,
|
|
1773
|
+
(0, import_typeorm9.Column)({ name: "company_address", type: "varchar", nullable: true })
|
|
1565
1774
|
], CompanyProfile.prototype, "companyAddress", 2);
|
|
1566
1775
|
__decorateClass([
|
|
1567
|
-
(0,
|
|
1776
|
+
(0, import_typeorm9.Column)({ name: "phone_number", type: "varchar", nullable: true })
|
|
1568
1777
|
], CompanyProfile.prototype, "phoneNumber", 2);
|
|
1569
1778
|
__decorateClass([
|
|
1570
|
-
(0,
|
|
1779
|
+
(0, import_typeorm9.Column)({ name: "skills", type: "text", nullable: true })
|
|
1571
1780
|
], CompanyProfile.prototype, "skills", 2);
|
|
1572
1781
|
__decorateClass([
|
|
1573
|
-
(0,
|
|
1782
|
+
(0, import_typeorm9.Column)({ name: "required_freelancer", type: "varchar", nullable: true })
|
|
1574
1783
|
], CompanyProfile.prototype, "requiredFreelancer", 2);
|
|
1575
1784
|
__decorateClass([
|
|
1576
|
-
(0,
|
|
1785
|
+
(0, import_typeorm9.Column)({
|
|
1577
1786
|
name: "kind_of_hiring",
|
|
1578
1787
|
type: "enum",
|
|
1579
1788
|
enum: KindOfHire,
|
|
@@ -1581,7 +1790,7 @@ __decorateClass([
|
|
|
1581
1790
|
})
|
|
1582
1791
|
], CompanyProfile.prototype, "kindOfHiring", 2);
|
|
1583
1792
|
__decorateClass([
|
|
1584
|
-
(0,
|
|
1793
|
+
(0, import_typeorm9.Column)({
|
|
1585
1794
|
name: "mode_of_hire",
|
|
1586
1795
|
type: "enum",
|
|
1587
1796
|
enum: ModeOfHire,
|
|
@@ -1589,7 +1798,7 @@ __decorateClass([
|
|
|
1589
1798
|
})
|
|
1590
1799
|
], CompanyProfile.prototype, "modeOfHire", 2);
|
|
1591
1800
|
__decorateClass([
|
|
1592
|
-
(0,
|
|
1801
|
+
(0, import_typeorm9.Column)({
|
|
1593
1802
|
name: "found_us_on",
|
|
1594
1803
|
type: "enum",
|
|
1595
1804
|
enum: FromUsOn,
|
|
@@ -1597,10 +1806,10 @@ __decorateClass([
|
|
|
1597
1806
|
})
|
|
1598
1807
|
], CompanyProfile.prototype, "foundUsOn", 2);
|
|
1599
1808
|
__decorateClass([
|
|
1600
|
-
(0,
|
|
1809
|
+
(0, import_typeorm9.Column)({ name: "found_us_on_detail", type: "varchar", nullable: true })
|
|
1601
1810
|
], CompanyProfile.prototype, "foundUsOnDetail", 2);
|
|
1602
1811
|
__decorateClass([
|
|
1603
|
-
(0,
|
|
1812
|
+
(0, import_typeorm9.Column)({
|
|
1604
1813
|
name: "onboarding_step_completed",
|
|
1605
1814
|
type: "enum",
|
|
1606
1815
|
enum: CompanyOnboardingStepEnum,
|
|
@@ -1608,60 +1817,60 @@ __decorateClass([
|
|
|
1608
1817
|
})
|
|
1609
1818
|
], CompanyProfile.prototype, "onboardingStepCompleted", 2);
|
|
1610
1819
|
CompanyProfile = __decorateClass([
|
|
1611
|
-
(0,
|
|
1820
|
+
(0, import_typeorm9.Entity)("company_profiles")
|
|
1612
1821
|
], CompanyProfile);
|
|
1613
1822
|
|
|
1614
1823
|
// src/entities/job.entity.ts
|
|
1615
1824
|
var import_typeorm15 = require("typeorm");
|
|
1616
1825
|
|
|
1617
1826
|
// src/entities/job-skill.entity.ts
|
|
1618
|
-
var
|
|
1827
|
+
var import_typeorm11 = require("typeorm");
|
|
1619
1828
|
|
|
1620
1829
|
// src/entities/skill.entity.ts
|
|
1621
|
-
var
|
|
1830
|
+
var import_typeorm10 = require("typeorm");
|
|
1622
1831
|
var Skill = class extends BaseEntity {
|
|
1623
1832
|
};
|
|
1624
1833
|
__decorateClass([
|
|
1625
|
-
(0,
|
|
1834
|
+
(0, import_typeorm10.Column)({ name: "name", type: "varchar", nullable: true })
|
|
1626
1835
|
], Skill.prototype, "name", 2);
|
|
1627
1836
|
__decorateClass([
|
|
1628
|
-
(0,
|
|
1837
|
+
(0, import_typeorm10.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
1629
1838
|
], Skill.prototype, "slug", 2);
|
|
1630
1839
|
__decorateClass([
|
|
1631
|
-
(0,
|
|
1840
|
+
(0, import_typeorm10.Column)({ name: "is_active", type: "boolean", default: false })
|
|
1632
1841
|
], Skill.prototype, "isActive", 2);
|
|
1633
1842
|
__decorateClass([
|
|
1634
|
-
(0,
|
|
1843
|
+
(0, import_typeorm10.OneToMany)(() => JobSkill, (jobSkill) => jobSkill.skill)
|
|
1635
1844
|
], Skill.prototype, "jobSkills", 2);
|
|
1636
1845
|
Skill = __decorateClass([
|
|
1637
|
-
(0,
|
|
1846
|
+
(0, import_typeorm10.Entity)("skills")
|
|
1638
1847
|
], Skill);
|
|
1639
1848
|
|
|
1640
1849
|
// src/entities/job-skill.entity.ts
|
|
1641
1850
|
var JobSkill = class extends BaseEntity {
|
|
1642
1851
|
};
|
|
1643
1852
|
__decorateClass([
|
|
1644
|
-
(0,
|
|
1645
|
-
(0,
|
|
1853
|
+
(0, import_typeorm11.Column)({ name: "job_id", type: "integer" }),
|
|
1854
|
+
(0, import_typeorm11.Index)()
|
|
1646
1855
|
], JobSkill.prototype, "jobId", 2);
|
|
1647
1856
|
__decorateClass([
|
|
1648
|
-
(0,
|
|
1649
|
-
(0,
|
|
1857
|
+
(0, import_typeorm11.ManyToOne)(() => Job, (job) => job.jobSkills, { onDelete: "CASCADE" }),
|
|
1858
|
+
(0, import_typeorm11.JoinColumn)({ name: "job_id" })
|
|
1650
1859
|
], JobSkill.prototype, "job", 2);
|
|
1651
1860
|
__decorateClass([
|
|
1652
|
-
(0,
|
|
1653
|
-
(0,
|
|
1861
|
+
(0, import_typeorm11.Column)({ name: "skill_id", type: "integer" }),
|
|
1862
|
+
(0, import_typeorm11.Index)()
|
|
1654
1863
|
], JobSkill.prototype, "skillId", 2);
|
|
1655
1864
|
__decorateClass([
|
|
1656
|
-
(0,
|
|
1657
|
-
(0,
|
|
1865
|
+
(0, import_typeorm11.ManyToOne)(() => Skill, (skill) => skill.jobSkills, { onDelete: "CASCADE" }),
|
|
1866
|
+
(0, import_typeorm11.JoinColumn)({ name: "skill_id" })
|
|
1658
1867
|
], JobSkill.prototype, "skill", 2);
|
|
1659
1868
|
JobSkill = __decorateClass([
|
|
1660
|
-
(0,
|
|
1869
|
+
(0, import_typeorm11.Entity)("job_skills")
|
|
1661
1870
|
], JobSkill);
|
|
1662
1871
|
|
|
1663
1872
|
// src/entities/job-application.entity.ts
|
|
1664
|
-
var
|
|
1873
|
+
var import_typeorm12 = require("typeorm");
|
|
1665
1874
|
var ApplicationStatusEnum = /* @__PURE__ */ ((ApplicationStatusEnum2) => {
|
|
1666
1875
|
ApplicationStatusEnum2["PENDING"] = "PENDING";
|
|
1667
1876
|
ApplicationStatusEnum2["SHORTLISTED"] = "SHORTLISTED";
|
|
@@ -1679,7 +1888,7 @@ var ApplicationStatusEnum = /* @__PURE__ */ ((ApplicationStatusEnum2) => {
|
|
|
1679
1888
|
var JobApplication = class extends BaseEntity {
|
|
1680
1889
|
};
|
|
1681
1890
|
__decorateClass([
|
|
1682
|
-
(0,
|
|
1891
|
+
(0, import_typeorm12.Column)({
|
|
1683
1892
|
name: "job_application_id",
|
|
1684
1893
|
type: "varchar",
|
|
1685
1894
|
unique: true,
|
|
@@ -1687,23 +1896,23 @@ __decorateClass([
|
|
|
1687
1896
|
})
|
|
1688
1897
|
], JobApplication.prototype, "jobApplicationId", 2);
|
|
1689
1898
|
__decorateClass([
|
|
1690
|
-
(0,
|
|
1691
|
-
(0,
|
|
1899
|
+
(0, import_typeorm12.Column)({ name: "job_id", type: "integer" }),
|
|
1900
|
+
(0, import_typeorm12.Index)()
|
|
1692
1901
|
], JobApplication.prototype, "jobId", 2);
|
|
1693
1902
|
__decorateClass([
|
|
1694
|
-
(0,
|
|
1695
|
-
(0,
|
|
1903
|
+
(0, import_typeorm12.ManyToOne)(() => Job, (job) => job.jobApplications, { onDelete: "CASCADE" }),
|
|
1904
|
+
(0, import_typeorm12.JoinColumn)({ name: "job_id" })
|
|
1696
1905
|
], JobApplication.prototype, "job", 2);
|
|
1697
1906
|
__decorateClass([
|
|
1698
|
-
(0,
|
|
1699
|
-
(0,
|
|
1907
|
+
(0, import_typeorm12.Column)({ name: "user_id", type: "integer" }),
|
|
1908
|
+
(0, import_typeorm12.Index)()
|
|
1700
1909
|
], JobApplication.prototype, "userId", 2);
|
|
1701
1910
|
__decorateClass([
|
|
1702
|
-
(0,
|
|
1703
|
-
(0,
|
|
1911
|
+
(0, import_typeorm12.ManyToOne)(() => User, (user) => user.jobApplications),
|
|
1912
|
+
(0, import_typeorm12.JoinColumn)({ name: "user_id" })
|
|
1704
1913
|
], JobApplication.prototype, "user", 2);
|
|
1705
1914
|
__decorateClass([
|
|
1706
|
-
(0,
|
|
1915
|
+
(0, import_typeorm12.Column)({
|
|
1707
1916
|
name: "status",
|
|
1708
1917
|
type: "enum",
|
|
1709
1918
|
enum: ApplicationStatusEnum,
|
|
@@ -1711,99 +1920,99 @@ __decorateClass([
|
|
|
1711
1920
|
})
|
|
1712
1921
|
], JobApplication.prototype, "status", 2);
|
|
1713
1922
|
__decorateClass([
|
|
1714
|
-
(0,
|
|
1923
|
+
(0, import_typeorm12.Column)({
|
|
1715
1924
|
name: "applied_at",
|
|
1716
1925
|
type: "timestamp with time zone",
|
|
1717
1926
|
default: () => "CURRENT_TIMESTAMP"
|
|
1718
1927
|
})
|
|
1719
1928
|
], JobApplication.prototype, "appliedAt", 2);
|
|
1720
1929
|
__decorateClass([
|
|
1721
|
-
(0,
|
|
1930
|
+
(0, import_typeorm12.Column)({
|
|
1722
1931
|
name: "shortlisted_at",
|
|
1723
1932
|
type: "timestamp with time zone",
|
|
1724
1933
|
nullable: true
|
|
1725
1934
|
})
|
|
1726
1935
|
], JobApplication.prototype, "shortlistedAt", 2);
|
|
1727
1936
|
__decorateClass([
|
|
1728
|
-
(0,
|
|
1937
|
+
(0, import_typeorm12.Column)({
|
|
1729
1938
|
name: "interview_started_at",
|
|
1730
1939
|
type: "timestamp with time zone",
|
|
1731
1940
|
nullable: true
|
|
1732
1941
|
})
|
|
1733
1942
|
], JobApplication.prototype, "interviewStartedAt", 2);
|
|
1734
1943
|
__decorateClass([
|
|
1735
|
-
(0,
|
|
1944
|
+
(0, import_typeorm12.Column)({
|
|
1736
1945
|
name: "interview_completed_at",
|
|
1737
1946
|
type: "timestamp with time zone",
|
|
1738
1947
|
nullable: true
|
|
1739
1948
|
})
|
|
1740
1949
|
], JobApplication.prototype, "interviewCompletedAt", 2);
|
|
1741
1950
|
__decorateClass([
|
|
1742
|
-
(0,
|
|
1951
|
+
(0, import_typeorm12.Column)({
|
|
1743
1952
|
name: "offered_at",
|
|
1744
1953
|
type: "timestamp with time zone",
|
|
1745
1954
|
nullable: true
|
|
1746
1955
|
})
|
|
1747
1956
|
], JobApplication.prototype, "offeredAt", 2);
|
|
1748
1957
|
__decorateClass([
|
|
1749
|
-
(0,
|
|
1958
|
+
(0, import_typeorm12.Column)({
|
|
1750
1959
|
name: "hired_at",
|
|
1751
1960
|
type: "timestamp with time zone",
|
|
1752
1961
|
nullable: true
|
|
1753
1962
|
})
|
|
1754
1963
|
], JobApplication.prototype, "hiredAt", 2);
|
|
1755
1964
|
__decorateClass([
|
|
1756
|
-
(0,
|
|
1965
|
+
(0, import_typeorm12.Column)({
|
|
1757
1966
|
name: "rejected_at",
|
|
1758
1967
|
type: "timestamp with time zone",
|
|
1759
1968
|
nullable: true
|
|
1760
1969
|
})
|
|
1761
1970
|
], JobApplication.prototype, "rejectedAt", 2);
|
|
1762
1971
|
__decorateClass([
|
|
1763
|
-
(0,
|
|
1972
|
+
(0, import_typeorm12.Column)({ name: "rejection_reason", type: "varchar", nullable: true })
|
|
1764
1973
|
], JobApplication.prototype, "rejectionReason", 2);
|
|
1765
1974
|
__decorateClass([
|
|
1766
|
-
(0,
|
|
1975
|
+
(0, import_typeorm12.Column)({
|
|
1767
1976
|
name: "withdrawn_at",
|
|
1768
1977
|
type: "timestamp with time zone",
|
|
1769
1978
|
nullable: true
|
|
1770
1979
|
})
|
|
1771
1980
|
], JobApplication.prototype, "withdrawnAt", 2);
|
|
1772
1981
|
__decorateClass([
|
|
1773
|
-
(0,
|
|
1982
|
+
(0, import_typeorm12.Column)({ name: "withdrawn_reason", type: "varchar", nullable: true })
|
|
1774
1983
|
], JobApplication.prototype, "withdrawnReason", 2);
|
|
1775
1984
|
JobApplication = __decorateClass([
|
|
1776
|
-
(0,
|
|
1985
|
+
(0, import_typeorm12.Entity)("job_applications")
|
|
1777
1986
|
], JobApplication);
|
|
1778
1987
|
|
|
1779
1988
|
// src/entities/interview.entity.ts
|
|
1780
|
-
var
|
|
1989
|
+
var import_typeorm14 = require("typeorm");
|
|
1781
1990
|
|
|
1782
1991
|
// src/entities/interview-skill.entity.ts
|
|
1783
|
-
var
|
|
1992
|
+
var import_typeorm13 = require("typeorm");
|
|
1784
1993
|
var InterviewSkill = class extends BaseEntity {
|
|
1785
1994
|
};
|
|
1786
1995
|
__decorateClass([
|
|
1787
|
-
(0,
|
|
1788
|
-
(0,
|
|
1996
|
+
(0, import_typeorm13.Column)({ name: "interview_id", type: "integer" }),
|
|
1997
|
+
(0, import_typeorm13.Index)()
|
|
1789
1998
|
], InterviewSkill.prototype, "interviewId", 2);
|
|
1790
1999
|
__decorateClass([
|
|
1791
|
-
(0,
|
|
2000
|
+
(0, import_typeorm13.ManyToOne)(() => Interview, (interview) => interview.interviewSkills, {
|
|
1792
2001
|
onDelete: "CASCADE"
|
|
1793
2002
|
}),
|
|
1794
|
-
(0,
|
|
2003
|
+
(0, import_typeorm13.JoinColumn)({ name: "interview_id" })
|
|
1795
2004
|
], InterviewSkill.prototype, "interview", 2);
|
|
1796
2005
|
__decorateClass([
|
|
1797
|
-
(0,
|
|
2006
|
+
(0, import_typeorm13.Column)({ name: "skill", type: "varchar", nullable: true })
|
|
1798
2007
|
], InterviewSkill.prototype, "skill", 2);
|
|
1799
2008
|
__decorateClass([
|
|
1800
|
-
(0,
|
|
2009
|
+
(0, import_typeorm13.Column)({ name: "description", type: "varchar", nullable: true })
|
|
1801
2010
|
], InterviewSkill.prototype, "description", 2);
|
|
1802
2011
|
__decorateClass([
|
|
1803
|
-
(0,
|
|
2012
|
+
(0, import_typeorm13.Column)({ name: "is_active", type: "boolean", default: true })
|
|
1804
2013
|
], InterviewSkill.prototype, "isActive", 2);
|
|
1805
2014
|
InterviewSkill = __decorateClass([
|
|
1806
|
-
(0,
|
|
2015
|
+
(0, import_typeorm13.Entity)("interview_skills")
|
|
1807
2016
|
], InterviewSkill);
|
|
1808
2017
|
|
|
1809
2018
|
// src/entities/interview.entity.ts
|
|
@@ -1818,38 +2027,38 @@ var InterviewStatusEnum = /* @__PURE__ */ ((InterviewStatusEnum2) => {
|
|
|
1818
2027
|
var Interview = class extends BaseEntity {
|
|
1819
2028
|
};
|
|
1820
2029
|
__decorateClass([
|
|
1821
|
-
(0,
|
|
2030
|
+
(0, import_typeorm14.Column)({
|
|
1822
2031
|
name: "interview_id",
|
|
1823
2032
|
type: "varchar",
|
|
1824
2033
|
unique: true,
|
|
1825
2034
|
nullable: true
|
|
1826
2035
|
}),
|
|
1827
|
-
(0,
|
|
2036
|
+
(0, import_typeorm14.Index)()
|
|
1828
2037
|
], Interview.prototype, "interviewId", 2);
|
|
1829
2038
|
__decorateClass([
|
|
1830
|
-
(0,
|
|
1831
|
-
(0,
|
|
2039
|
+
(0, import_typeorm14.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
2040
|
+
(0, import_typeorm14.Index)()
|
|
1832
2041
|
], Interview.prototype, "userId", 2);
|
|
1833
2042
|
__decorateClass([
|
|
1834
|
-
(0,
|
|
1835
|
-
(0,
|
|
2043
|
+
(0, import_typeorm14.ManyToOne)(() => User, (user) => user.interviews),
|
|
2044
|
+
(0, import_typeorm14.JoinColumn)({ name: "user_id" })
|
|
1836
2045
|
], Interview.prototype, "user", 2);
|
|
1837
2046
|
__decorateClass([
|
|
1838
|
-
(0,
|
|
2047
|
+
(0, import_typeorm14.Column)({ name: "interview_name", type: "varchar", nullable: true })
|
|
1839
2048
|
], Interview.prototype, "interviewName", 2);
|
|
1840
2049
|
__decorateClass([
|
|
1841
|
-
(0,
|
|
1842
|
-
(0,
|
|
2050
|
+
(0, import_typeorm14.Column)({ name: "job_id", type: "integer" }),
|
|
2051
|
+
(0, import_typeorm14.Index)()
|
|
1843
2052
|
], Interview.prototype, "jobId", 2);
|
|
1844
2053
|
__decorateClass([
|
|
1845
|
-
(0,
|
|
1846
|
-
(0,
|
|
2054
|
+
(0, import_typeorm14.ManyToOne)(() => Job, (job) => job.interviews, { onDelete: "CASCADE" }),
|
|
2055
|
+
(0, import_typeorm14.JoinColumn)({ name: "job_id" })
|
|
1847
2056
|
], Interview.prototype, "job", 2);
|
|
1848
2057
|
__decorateClass([
|
|
1849
|
-
(0,
|
|
2058
|
+
(0, import_typeorm14.Column)({ name: "interview_type", type: "varchar", nullable: true })
|
|
1850
2059
|
], Interview.prototype, "interviewType", 2);
|
|
1851
2060
|
__decorateClass([
|
|
1852
|
-
(0,
|
|
2061
|
+
(0, import_typeorm14.Column)({
|
|
1853
2062
|
name: "status",
|
|
1854
2063
|
type: "enum",
|
|
1855
2064
|
enum: InterviewStatusEnum,
|
|
@@ -1857,177 +2066,16 @@ __decorateClass([
|
|
|
1857
2066
|
})
|
|
1858
2067
|
], Interview.prototype, "status", 2);
|
|
1859
2068
|
__decorateClass([
|
|
1860
|
-
(0,
|
|
2069
|
+
(0, import_typeorm14.OneToMany)(
|
|
1861
2070
|
() => InterviewSkill,
|
|
1862
2071
|
(interviewSkill) => interviewSkill.interview,
|
|
1863
2072
|
{ cascade: true }
|
|
1864
2073
|
)
|
|
1865
2074
|
], Interview.prototype, "interviewSkills", 2);
|
|
1866
2075
|
Interview = __decorateClass([
|
|
1867
|
-
(0,
|
|
2076
|
+
(0, import_typeorm14.Entity)("interviews")
|
|
1868
2077
|
], Interview);
|
|
1869
2078
|
|
|
1870
|
-
// src/entities/country.entity.ts
|
|
1871
|
-
var import_typeorm14 = require("typeorm");
|
|
1872
|
-
|
|
1873
|
-
// src/entities/state.entity.ts
|
|
1874
|
-
var import_typeorm13 = require("typeorm");
|
|
1875
|
-
|
|
1876
|
-
// src/entities/city.entity.ts
|
|
1877
|
-
var import_typeorm12 = require("typeorm");
|
|
1878
|
-
var City = class extends BaseEntity {
|
|
1879
|
-
};
|
|
1880
|
-
__decorateClass([
|
|
1881
|
-
(0, import_typeorm12.Column)({
|
|
1882
|
-
name: "country_id",
|
|
1883
|
-
type: "int",
|
|
1884
|
-
nullable: true,
|
|
1885
|
-
comment: "Id of the country"
|
|
1886
|
-
})
|
|
1887
|
-
], City.prototype, "countryId", 2);
|
|
1888
|
-
__decorateClass([
|
|
1889
|
-
(0, import_typeorm12.ManyToOne)(() => Country),
|
|
1890
|
-
(0, import_typeorm12.JoinColumn)({ name: "country_id" })
|
|
1891
|
-
], City.prototype, "country", 2);
|
|
1892
|
-
__decorateClass([
|
|
1893
|
-
(0, import_typeorm12.Column)({
|
|
1894
|
-
name: "state_id",
|
|
1895
|
-
type: "int",
|
|
1896
|
-
nullable: false,
|
|
1897
|
-
comment: "Id of the state"
|
|
1898
|
-
})
|
|
1899
|
-
], City.prototype, "stateId", 2);
|
|
1900
|
-
__decorateClass([
|
|
1901
|
-
(0, import_typeorm12.ManyToOne)(() => State, (state) => state.cities),
|
|
1902
|
-
(0, import_typeorm12.JoinColumn)({ name: "state_id" })
|
|
1903
|
-
], City.prototype, "state", 2);
|
|
1904
|
-
__decorateClass([
|
|
1905
|
-
(0, import_typeorm12.Column)({
|
|
1906
|
-
name: "city_code",
|
|
1907
|
-
type: "varchar",
|
|
1908
|
-
length: 100,
|
|
1909
|
-
nullable: false,
|
|
1910
|
-
unique: true,
|
|
1911
|
-
comment: "Code of the city"
|
|
1912
|
-
})
|
|
1913
|
-
], City.prototype, "cityCode", 2);
|
|
1914
|
-
__decorateClass([
|
|
1915
|
-
(0, import_typeorm12.Column)({
|
|
1916
|
-
name: "city_name",
|
|
1917
|
-
type: "varchar",
|
|
1918
|
-
length: 100,
|
|
1919
|
-
nullable: false,
|
|
1920
|
-
comment: "Name of the city"
|
|
1921
|
-
})
|
|
1922
|
-
], City.prototype, "cityName", 2);
|
|
1923
|
-
__decorateClass([
|
|
1924
|
-
(0, import_typeorm12.Column)({
|
|
1925
|
-
name: "is_active",
|
|
1926
|
-
type: "boolean",
|
|
1927
|
-
default: true,
|
|
1928
|
-
comment: "Flag indicating if the city is active"
|
|
1929
|
-
})
|
|
1930
|
-
], City.prototype, "isActive", 2);
|
|
1931
|
-
City = __decorateClass([
|
|
1932
|
-
(0, import_typeorm12.Entity)("cities")
|
|
1933
|
-
], City);
|
|
1934
|
-
|
|
1935
|
-
// src/entities/state.entity.ts
|
|
1936
|
-
var State = class extends BaseEntity {
|
|
1937
|
-
};
|
|
1938
|
-
__decorateClass([
|
|
1939
|
-
(0, import_typeorm13.Column)({
|
|
1940
|
-
name: "country_id",
|
|
1941
|
-
type: "int",
|
|
1942
|
-
nullable: false,
|
|
1943
|
-
comment: "Id of the country"
|
|
1944
|
-
})
|
|
1945
|
-
], State.prototype, "countryId", 2);
|
|
1946
|
-
__decorateClass([
|
|
1947
|
-
(0, import_typeorm13.ManyToOne)(() => Country, (country) => country.states),
|
|
1948
|
-
(0, import_typeorm13.JoinColumn)({ name: "country_id" })
|
|
1949
|
-
], State.prototype, "country", 2);
|
|
1950
|
-
__decorateClass([
|
|
1951
|
-
(0, import_typeorm13.OneToMany)(() => City, (city) => city.state)
|
|
1952
|
-
], State.prototype, "cities", 2);
|
|
1953
|
-
__decorateClass([
|
|
1954
|
-
(0, import_typeorm13.Column)({
|
|
1955
|
-
name: "state_name",
|
|
1956
|
-
type: "varchar",
|
|
1957
|
-
length: 100,
|
|
1958
|
-
nullable: false,
|
|
1959
|
-
comment: "Name of the state"
|
|
1960
|
-
})
|
|
1961
|
-
], State.prototype, "stateName", 2);
|
|
1962
|
-
__decorateClass([
|
|
1963
|
-
(0, import_typeorm13.Column)({
|
|
1964
|
-
name: "is_active",
|
|
1965
|
-
type: "boolean",
|
|
1966
|
-
default: true,
|
|
1967
|
-
comment: "Flag indicating if the state is active"
|
|
1968
|
-
})
|
|
1969
|
-
], State.prototype, "isActive", 2);
|
|
1970
|
-
State = __decorateClass([
|
|
1971
|
-
(0, import_typeorm13.Entity)("states")
|
|
1972
|
-
], State);
|
|
1973
|
-
|
|
1974
|
-
// src/entities/country.entity.ts
|
|
1975
|
-
var Country = class extends BaseEntity {
|
|
1976
|
-
};
|
|
1977
|
-
__decorateClass([
|
|
1978
|
-
(0, import_typeorm14.OneToMany)(() => State, (state) => state.country)
|
|
1979
|
-
], Country.prototype, "states", 2);
|
|
1980
|
-
__decorateClass([
|
|
1981
|
-
(0, import_typeorm14.Column)({
|
|
1982
|
-
name: "country_name",
|
|
1983
|
-
type: "varchar",
|
|
1984
|
-
length: 100,
|
|
1985
|
-
nullable: false,
|
|
1986
|
-
// Set to false for required
|
|
1987
|
-
comment: "Name of the country"
|
|
1988
|
-
})
|
|
1989
|
-
], Country.prototype, "countryName", 2);
|
|
1990
|
-
__decorateClass([
|
|
1991
|
-
(0, import_typeorm14.Column)({
|
|
1992
|
-
name: "country_iso_code",
|
|
1993
|
-
type: "varchar",
|
|
1994
|
-
length: 2,
|
|
1995
|
-
nullable: false,
|
|
1996
|
-
// Must be required if it's unique
|
|
1997
|
-
unique: true,
|
|
1998
|
-
comment: "ISO 3166-1 alpha-2 country code"
|
|
1999
|
-
})
|
|
2000
|
-
], Country.prototype, "countryIsoCode", 2);
|
|
2001
|
-
__decorateClass([
|
|
2002
|
-
(0, import_typeorm14.Column)({
|
|
2003
|
-
name: "country_phone_code",
|
|
2004
|
-
type: "varchar",
|
|
2005
|
-
length: 10,
|
|
2006
|
-
nullable: true,
|
|
2007
|
-
comment: "International dialing code for the country"
|
|
2008
|
-
})
|
|
2009
|
-
], Country.prototype, "countryPhoneCode", 2);
|
|
2010
|
-
__decorateClass([
|
|
2011
|
-
(0, import_typeorm14.Column)({
|
|
2012
|
-
name: "currency",
|
|
2013
|
-
type: "varchar",
|
|
2014
|
-
length: 3,
|
|
2015
|
-
nullable: true,
|
|
2016
|
-
comment: "ISO 4217 currency code"
|
|
2017
|
-
})
|
|
2018
|
-
], Country.prototype, "currency", 2);
|
|
2019
|
-
__decorateClass([
|
|
2020
|
-
(0, import_typeorm14.Column)({
|
|
2021
|
-
name: "is_active",
|
|
2022
|
-
type: "boolean",
|
|
2023
|
-
default: true,
|
|
2024
|
-
comment: "Flag indicating if the country is active"
|
|
2025
|
-
})
|
|
2026
|
-
], Country.prototype, "isActive", 2);
|
|
2027
|
-
Country = __decorateClass([
|
|
2028
|
-
(0, import_typeorm14.Entity)("countries")
|
|
2029
|
-
], Country);
|
|
2030
|
-
|
|
2031
2079
|
// src/entities/job.entity.ts
|
|
2032
2080
|
var JobLocationEnum = /* @__PURE__ */ ((JobLocationEnum2) => {
|
|
2033
2081
|
JobLocationEnum2["ONSITE"] = "ONSITE";
|
|
@@ -4486,6 +4534,7 @@ Lead = __decorateClass([
|
|
|
4486
4534
|
AccountType,
|
|
4487
4535
|
AdminCreateJobInformationDto,
|
|
4488
4536
|
AdminUpdateJobInformationDto,
|
|
4537
|
+
AiAssessmentStatusEnum,
|
|
4489
4538
|
AnswerTypeEnum,
|
|
4490
4539
|
ApplicationStatusEnum,
|
|
4491
4540
|
AssessmentAnswer,
|
|
@@ -4597,6 +4646,7 @@ Lead = __decorateClass([
|
|
|
4597
4646
|
Lead,
|
|
4598
4647
|
LoginDto,
|
|
4599
4648
|
LogoutDto,
|
|
4649
|
+
McqStatusEnum,
|
|
4600
4650
|
ModeOfHire,
|
|
4601
4651
|
ModeOfWork,
|
|
4602
4652
|
NOTIFICATION_PATTERN,
|