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