@experts_hub/shared 1.0.227 → 1.0.228

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