@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.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";
|
|
@@ -1302,46 +1483,90 @@ var OnboardingStepEnum = /* @__PURE__ */ ((OnboardingStepEnum2) => {
|
|
|
1302
1483
|
OnboardingStepEnum2["SIGN_UP"] = "SIGN_UP";
|
|
1303
1484
|
OnboardingStepEnum2["UPLOAD_RESUME"] = "UPLOAD_RESUME";
|
|
1304
1485
|
OnboardingStepEnum2["PARSE_RESUME"] = "PARSE_RESUME";
|
|
1486
|
+
OnboardingStepEnum2["MCQ_ASSESSMENT_INITIATED"] = "MCQ_ASSESSMENT_INITIATED";
|
|
1487
|
+
OnboardingStepEnum2["MCQ_ASSESSMENT_COMPLETED"] = "MCQ_ASSESSMENT_COMPLETED";
|
|
1305
1488
|
OnboardingStepEnum2["AI_ASSESSMENT_INITIATED"] = "AI_ASSESSMENT_INITIATED";
|
|
1306
1489
|
OnboardingStepEnum2["AI_ASSESSMENT_COMPLETED"] = "AI_ASSESSMENT_COMPLETED";
|
|
1307
1490
|
OnboardingStepEnum2["CODING_CHALLENGE"] = "CODING_CHALLENGE";
|
|
1308
1491
|
OnboardingStepEnum2["PROFILE_COMPLETION"] = "PROFILE_COMPLETION";
|
|
1309
1492
|
return OnboardingStepEnum2;
|
|
1310
1493
|
})(OnboardingStepEnum || {});
|
|
1494
|
+
var McqStatusEnum = /* @__PURE__ */ ((McqStatusEnum2) => {
|
|
1495
|
+
McqStatusEnum2["NOT_ATTEMPTED"] = "NOT_ATTEMPTED";
|
|
1496
|
+
McqStatusEnum2["PASSED"] = "PASSED";
|
|
1497
|
+
McqStatusEnum2["FAILED"] = "FAILED";
|
|
1498
|
+
return McqStatusEnum2;
|
|
1499
|
+
})(McqStatusEnum || {});
|
|
1500
|
+
var AiAssessmentStatusEnum = /* @__PURE__ */ ((AiAssessmentStatusEnum2) => {
|
|
1501
|
+
AiAssessmentStatusEnum2["NOT_ATTEMPTED"] = "NOT_ATTEMPTED";
|
|
1502
|
+
AiAssessmentStatusEnum2["PASSED"] = "PASSED";
|
|
1503
|
+
AiAssessmentStatusEnum2["FAILED"] = "FAILED";
|
|
1504
|
+
AiAssessmentStatusEnum2["SKIPPED"] = "SKIPPED";
|
|
1505
|
+
return AiAssessmentStatusEnum2;
|
|
1506
|
+
})(AiAssessmentStatusEnum || {});
|
|
1311
1507
|
var FreelancerProfile = class extends BaseEntity {
|
|
1312
1508
|
};
|
|
1313
1509
|
// individual index to find profile by user
|
|
1314
1510
|
__decorateClass([
|
|
1315
|
-
|
|
1511
|
+
Column8({ name: "user_id", type: "integer", nullable: true }),
|
|
1316
1512
|
Index2()
|
|
1317
1513
|
], FreelancerProfile.prototype, "userId", 2);
|
|
1318
1514
|
__decorateClass([
|
|
1319
|
-
|
|
1320
|
-
|
|
1515
|
+
ManyToOne6(() => User, (user) => user.freelancerProfile),
|
|
1516
|
+
JoinColumn6({ name: "user_id" })
|
|
1321
1517
|
], FreelancerProfile.prototype, "user", 2);
|
|
1322
1518
|
__decorateClass([
|
|
1323
|
-
|
|
1519
|
+
Column8({ name: "country_id", type: "integer", nullable: true })
|
|
1520
|
+
], FreelancerProfile.prototype, "countryId", 2);
|
|
1521
|
+
__decorateClass([
|
|
1522
|
+
ManyToOne6(() => Country, (country) => country.freelancerProfile),
|
|
1523
|
+
JoinColumn6({ name: "country_id" })
|
|
1524
|
+
], FreelancerProfile.prototype, "country", 2);
|
|
1525
|
+
__decorateClass([
|
|
1526
|
+
Column8({ name: "talent_id", type: "varchar", nullable: true })
|
|
1324
1527
|
], FreelancerProfile.prototype, "talentId", 2);
|
|
1325
1528
|
__decorateClass([
|
|
1326
|
-
|
|
1529
|
+
Column8({ name: "resume_url", type: "text", nullable: true })
|
|
1327
1530
|
], FreelancerProfile.prototype, "resumeUrl", 2);
|
|
1328
1531
|
__decorateClass([
|
|
1329
|
-
|
|
1532
|
+
Column8({ name: "resume_data", type: "jsonb", nullable: true })
|
|
1330
1533
|
], FreelancerProfile.prototype, "resumeData", 2);
|
|
1331
1534
|
__decorateClass([
|
|
1332
|
-
|
|
1535
|
+
Column8({ name: "processed_resume_data", type: "jsonb", nullable: true })
|
|
1333
1536
|
], FreelancerProfile.prototype, "processedResumeData", 2);
|
|
1334
1537
|
__decorateClass([
|
|
1335
|
-
|
|
1538
|
+
Column8({ name: "resume_eligibility", type: "varchar", nullable: true })
|
|
1336
1539
|
], FreelancerProfile.prototype, "resumeEligibility", 2);
|
|
1337
1540
|
__decorateClass([
|
|
1338
|
-
|
|
1541
|
+
Column8({ name: "resume_score", type: "jsonb", nullable: true })
|
|
1339
1542
|
], FreelancerProfile.prototype, "resumeScore", 2);
|
|
1340
1543
|
__decorateClass([
|
|
1341
|
-
|
|
1544
|
+
Column8({
|
|
1545
|
+
name: "mcq_status",
|
|
1546
|
+
type: "enum",
|
|
1547
|
+
enum: McqStatusEnum,
|
|
1548
|
+
nullable: true
|
|
1549
|
+
})
|
|
1550
|
+
], FreelancerProfile.prototype, "mcqStatus", 2);
|
|
1551
|
+
__decorateClass([
|
|
1552
|
+
Column8({ name: "mcq_score", type: "integer", nullable: true })
|
|
1553
|
+
], FreelancerProfile.prototype, "mcqScore", 2);
|
|
1554
|
+
__decorateClass([
|
|
1555
|
+
Column8({ name: "is_eligible_for_ai_assessment", type: "boolean", nullable: true })
|
|
1556
|
+
], FreelancerProfile.prototype, "isEligibleForAiAssessment", 2);
|
|
1557
|
+
__decorateClass([
|
|
1558
|
+
Column8({
|
|
1559
|
+
name: "ai_assessment_status",
|
|
1560
|
+
type: "enum",
|
|
1561
|
+
enum: AiAssessmentStatusEnum,
|
|
1562
|
+
nullable: true
|
|
1563
|
+
})
|
|
1564
|
+
], FreelancerProfile.prototype, "aiAssessmentStatus", 2);
|
|
1565
|
+
__decorateClass([
|
|
1566
|
+
Column8({ name: "is_developer", type: "boolean", default: false })
|
|
1342
1567
|
], FreelancerProfile.prototype, "isDeveloper", 2);
|
|
1343
1568
|
__decorateClass([
|
|
1344
|
-
|
|
1569
|
+
Column8({
|
|
1345
1570
|
name: "nature_of_work",
|
|
1346
1571
|
type: "enum",
|
|
1347
1572
|
enum: NatureOfWork,
|
|
@@ -1349,10 +1574,10 @@ __decorateClass([
|
|
|
1349
1574
|
})
|
|
1350
1575
|
], FreelancerProfile.prototype, "natureOfWork", 2);
|
|
1351
1576
|
__decorateClass([
|
|
1352
|
-
|
|
1577
|
+
Column8({ name: "currency", type: "varchar", default: "USD" })
|
|
1353
1578
|
], FreelancerProfile.prototype, "currency", 2);
|
|
1354
1579
|
__decorateClass([
|
|
1355
|
-
|
|
1580
|
+
Column8({
|
|
1356
1581
|
name: "expected_hourly_compensation",
|
|
1357
1582
|
type: "numeric",
|
|
1358
1583
|
precision: 10,
|
|
@@ -1361,7 +1586,7 @@ __decorateClass([
|
|
|
1361
1586
|
})
|
|
1362
1587
|
], FreelancerProfile.prototype, "expectedHourlyCompensation", 2);
|
|
1363
1588
|
__decorateClass([
|
|
1364
|
-
|
|
1589
|
+
Column8({
|
|
1365
1590
|
name: "mode_of_work",
|
|
1366
1591
|
type: "enum",
|
|
1367
1592
|
enum: ModeOfWork,
|
|
@@ -1369,32 +1594,32 @@ __decorateClass([
|
|
|
1369
1594
|
})
|
|
1370
1595
|
], FreelancerProfile.prototype, "modeOfWork", 2);
|
|
1371
1596
|
__decorateClass([
|
|
1372
|
-
|
|
1597
|
+
Column8({ name: "availability_to_join", type: "varchar", nullable: true })
|
|
1373
1598
|
], FreelancerProfile.prototype, "availabilityToJoin", 2);
|
|
1374
1599
|
__decorateClass([
|
|
1375
|
-
|
|
1600
|
+
Column8({ name: "is_immediate_joiner", type: "boolean", nullable: true })
|
|
1376
1601
|
], FreelancerProfile.prototype, "isImmediateJoiner", 2);
|
|
1377
1602
|
__decorateClass([
|
|
1378
|
-
|
|
1603
|
+
Column8({ name: "linkedin_profile_link", type: "varchar", nullable: true })
|
|
1379
1604
|
], FreelancerProfile.prototype, "linkedinProfileLink", 2);
|
|
1380
1605
|
__decorateClass([
|
|
1381
|
-
|
|
1606
|
+
Column8({ name: "kaggle_profile_link", type: "varchar", nullable: true })
|
|
1382
1607
|
], FreelancerProfile.prototype, "kaggleProfileLink", 2);
|
|
1383
1608
|
__decorateClass([
|
|
1384
|
-
|
|
1609
|
+
Column8({ name: "github_profile_link", type: "varchar", nullable: true })
|
|
1385
1610
|
], FreelancerProfile.prototype, "githubProfileLink", 2);
|
|
1386
1611
|
__decorateClass([
|
|
1387
|
-
|
|
1612
|
+
Column8({
|
|
1388
1613
|
name: "stack_overflow_profile_link",
|
|
1389
1614
|
type: "varchar",
|
|
1390
1615
|
nullable: true
|
|
1391
1616
|
})
|
|
1392
1617
|
], FreelancerProfile.prototype, "stackOverflowProfileLink", 2);
|
|
1393
1618
|
__decorateClass([
|
|
1394
|
-
|
|
1619
|
+
Column8({ name: "portfolio_link", type: "varchar", nullable: true })
|
|
1395
1620
|
], FreelancerProfile.prototype, "portfolioLink", 2);
|
|
1396
1621
|
__decorateClass([
|
|
1397
|
-
|
|
1622
|
+
Column8({
|
|
1398
1623
|
name: "onboarding_step_completed",
|
|
1399
1624
|
type: "enum",
|
|
1400
1625
|
enum: OnboardingStepEnum,
|
|
@@ -1402,16 +1627,13 @@ __decorateClass([
|
|
|
1402
1627
|
})
|
|
1403
1628
|
], FreelancerProfile.prototype, "onboardingStepCompleted", 2);
|
|
1404
1629
|
__decorateClass([
|
|
1405
|
-
|
|
1406
|
-
], FreelancerProfile.prototype, "countryId", 2);
|
|
1407
|
-
__decorateClass([
|
|
1408
|
-
Column5({ name: "address", type: "varchar", nullable: true })
|
|
1630
|
+
Column8({ name: "address", type: "varchar", nullable: true })
|
|
1409
1631
|
], FreelancerProfile.prototype, "address", 2);
|
|
1410
1632
|
__decorateClass([
|
|
1411
|
-
|
|
1633
|
+
Column8({ name: "about", type: "varchar", nullable: true })
|
|
1412
1634
|
], FreelancerProfile.prototype, "about", 2);
|
|
1413
1635
|
__decorateClass([
|
|
1414
|
-
|
|
1636
|
+
Column8({
|
|
1415
1637
|
name: "profile_completed_percentage",
|
|
1416
1638
|
type: "json",
|
|
1417
1639
|
default: {
|
|
@@ -1425,17 +1647,17 @@ __decorateClass([
|
|
|
1425
1647
|
})
|
|
1426
1648
|
], FreelancerProfile.prototype, "profileCompletedPercentage", 2);
|
|
1427
1649
|
__decorateClass([
|
|
1428
|
-
|
|
1650
|
+
Column8({ name: "service_agreement_url", type: "varchar", nullable: true })
|
|
1429
1651
|
], FreelancerProfile.prototype, "serviceAgreementUrl", 2);
|
|
1430
1652
|
__decorateClass([
|
|
1431
|
-
|
|
1653
|
+
Column8({ name: "service_agreement_signed_on", type: "timestamp with time zone", nullable: true })
|
|
1432
1654
|
], FreelancerProfile.prototype, "serviceAggrementSignedOn", 2);
|
|
1433
1655
|
FreelancerProfile = __decorateClass([
|
|
1434
|
-
|
|
1656
|
+
Entity7("freelancer_profiles")
|
|
1435
1657
|
], FreelancerProfile);
|
|
1436
1658
|
|
|
1437
1659
|
// src/entities/company-profile.entity.ts
|
|
1438
|
-
import { Entity as
|
|
1660
|
+
import { Entity as Entity8, Column as Column9, ManyToOne as ManyToOne7, JoinColumn as JoinColumn7, Index as Index3 } from "typeorm";
|
|
1439
1661
|
var KindOfHire = /* @__PURE__ */ ((KindOfHire2) => {
|
|
1440
1662
|
KindOfHire2["FULLTIME"] = "FULLTIME";
|
|
1441
1663
|
KindOfHire2["PARTTIME"] = "PARTTIME";
|
|
@@ -1464,52 +1686,52 @@ var CompanyProfile = class extends BaseEntity {
|
|
|
1464
1686
|
};
|
|
1465
1687
|
// individual index to find company profile by user
|
|
1466
1688
|
__decorateClass([
|
|
1467
|
-
|
|
1689
|
+
Column9({ name: "user_id", type: "integer", nullable: true }),
|
|
1468
1690
|
Index3()
|
|
1469
1691
|
], CompanyProfile.prototype, "userId", 2);
|
|
1470
1692
|
__decorateClass([
|
|
1471
|
-
|
|
1472
|
-
|
|
1693
|
+
ManyToOne7(() => User, (user) => user.companyProfile),
|
|
1694
|
+
JoinColumn7({ name: "user_id" })
|
|
1473
1695
|
], CompanyProfile.prototype, "user", 2);
|
|
1474
1696
|
__decorateClass([
|
|
1475
|
-
|
|
1697
|
+
Column9({ name: "company_name", type: "varchar", nullable: true })
|
|
1476
1698
|
], CompanyProfile.prototype, "companyName", 2);
|
|
1477
1699
|
__decorateClass([
|
|
1478
|
-
|
|
1700
|
+
Column9({ name: "bio", type: "varchar", nullable: true })
|
|
1479
1701
|
], CompanyProfile.prototype, "bio", 2);
|
|
1480
1702
|
__decorateClass([
|
|
1481
|
-
|
|
1703
|
+
Column9({ name: "website", type: "varchar", nullable: true })
|
|
1482
1704
|
], CompanyProfile.prototype, "webSite", 2);
|
|
1483
1705
|
__decorateClass([
|
|
1484
|
-
|
|
1706
|
+
Column9({ name: "about_company", type: "varchar", nullable: true })
|
|
1485
1707
|
], CompanyProfile.prototype, "aboutCompany", 2);
|
|
1486
1708
|
__decorateClass([
|
|
1487
|
-
|
|
1709
|
+
Column9({
|
|
1488
1710
|
name: "is_service_aggrement_signed",
|
|
1489
1711
|
type: "boolean",
|
|
1490
1712
|
default: false
|
|
1491
1713
|
})
|
|
1492
1714
|
], CompanyProfile.prototype, "isServiceAgreementSigned", 2);
|
|
1493
1715
|
__decorateClass([
|
|
1494
|
-
|
|
1716
|
+
Column9({ name: "service_agreement_url", type: "varchar", nullable: true })
|
|
1495
1717
|
], CompanyProfile.prototype, "serviceAgreementUrl", 2);
|
|
1496
1718
|
__decorateClass([
|
|
1497
|
-
|
|
1719
|
+
Column9({ name: "service_agreement_signed_on", type: "timestamp with time zone", nullable: true })
|
|
1498
1720
|
], CompanyProfile.prototype, "serviceAggrementSignedOn", 2);
|
|
1499
1721
|
__decorateClass([
|
|
1500
|
-
|
|
1722
|
+
Column9({ name: "company_address", type: "varchar", nullable: true })
|
|
1501
1723
|
], CompanyProfile.prototype, "companyAddress", 2);
|
|
1502
1724
|
__decorateClass([
|
|
1503
|
-
|
|
1725
|
+
Column9({ name: "phone_number", type: "varchar", nullable: true })
|
|
1504
1726
|
], CompanyProfile.prototype, "phoneNumber", 2);
|
|
1505
1727
|
__decorateClass([
|
|
1506
|
-
|
|
1728
|
+
Column9({ name: "skills", type: "text", nullable: true })
|
|
1507
1729
|
], CompanyProfile.prototype, "skills", 2);
|
|
1508
1730
|
__decorateClass([
|
|
1509
|
-
|
|
1731
|
+
Column9({ name: "required_freelancer", type: "varchar", nullable: true })
|
|
1510
1732
|
], CompanyProfile.prototype, "requiredFreelancer", 2);
|
|
1511
1733
|
__decorateClass([
|
|
1512
|
-
|
|
1734
|
+
Column9({
|
|
1513
1735
|
name: "kind_of_hiring",
|
|
1514
1736
|
type: "enum",
|
|
1515
1737
|
enum: KindOfHire,
|
|
@@ -1517,7 +1739,7 @@ __decorateClass([
|
|
|
1517
1739
|
})
|
|
1518
1740
|
], CompanyProfile.prototype, "kindOfHiring", 2);
|
|
1519
1741
|
__decorateClass([
|
|
1520
|
-
|
|
1742
|
+
Column9({
|
|
1521
1743
|
name: "mode_of_hire",
|
|
1522
1744
|
type: "enum",
|
|
1523
1745
|
enum: ModeOfHire,
|
|
@@ -1525,7 +1747,7 @@ __decorateClass([
|
|
|
1525
1747
|
})
|
|
1526
1748
|
], CompanyProfile.prototype, "modeOfHire", 2);
|
|
1527
1749
|
__decorateClass([
|
|
1528
|
-
|
|
1750
|
+
Column9({
|
|
1529
1751
|
name: "found_us_on",
|
|
1530
1752
|
type: "enum",
|
|
1531
1753
|
enum: FromUsOn,
|
|
@@ -1533,10 +1755,10 @@ __decorateClass([
|
|
|
1533
1755
|
})
|
|
1534
1756
|
], CompanyProfile.prototype, "foundUsOn", 2);
|
|
1535
1757
|
__decorateClass([
|
|
1536
|
-
|
|
1758
|
+
Column9({ name: "found_us_on_detail", type: "varchar", nullable: true })
|
|
1537
1759
|
], CompanyProfile.prototype, "foundUsOnDetail", 2);
|
|
1538
1760
|
__decorateClass([
|
|
1539
|
-
|
|
1761
|
+
Column9({
|
|
1540
1762
|
name: "onboarding_step_completed",
|
|
1541
1763
|
type: "enum",
|
|
1542
1764
|
enum: CompanyOnboardingStepEnum,
|
|
@@ -1544,7 +1766,7 @@ __decorateClass([
|
|
|
1544
1766
|
})
|
|
1545
1767
|
], CompanyProfile.prototype, "onboardingStepCompleted", 2);
|
|
1546
1768
|
CompanyProfile = __decorateClass([
|
|
1547
|
-
|
|
1769
|
+
Entity8("company_profiles")
|
|
1548
1770
|
], CompanyProfile);
|
|
1549
1771
|
|
|
1550
1772
|
// src/entities/job.entity.ts
|
|
@@ -1558,58 +1780,58 @@ import {
|
|
|
1558
1780
|
} from "typeorm";
|
|
1559
1781
|
|
|
1560
1782
|
// src/entities/job-skill.entity.ts
|
|
1561
|
-
import { Entity as
|
|
1783
|
+
import { Entity as Entity10, Column as Column11, Index as Index4, ManyToOne as ManyToOne8, JoinColumn as JoinColumn8 } from "typeorm";
|
|
1562
1784
|
|
|
1563
1785
|
// src/entities/skill.entity.ts
|
|
1564
|
-
import { Entity as
|
|
1786
|
+
import { Entity as Entity9, Column as Column10, OneToMany as OneToMany4 } from "typeorm";
|
|
1565
1787
|
var Skill = class extends BaseEntity {
|
|
1566
1788
|
};
|
|
1567
1789
|
__decorateClass([
|
|
1568
|
-
|
|
1790
|
+
Column10({ name: "name", type: "varchar", nullable: true })
|
|
1569
1791
|
], Skill.prototype, "name", 2);
|
|
1570
1792
|
__decorateClass([
|
|
1571
|
-
|
|
1793
|
+
Column10({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
1572
1794
|
], Skill.prototype, "slug", 2);
|
|
1573
1795
|
__decorateClass([
|
|
1574
|
-
|
|
1796
|
+
Column10({ name: "is_active", type: "boolean", default: false })
|
|
1575
1797
|
], Skill.prototype, "isActive", 2);
|
|
1576
1798
|
__decorateClass([
|
|
1577
|
-
|
|
1799
|
+
OneToMany4(() => JobSkill, (jobSkill) => jobSkill.skill)
|
|
1578
1800
|
], Skill.prototype, "jobSkills", 2);
|
|
1579
1801
|
Skill = __decorateClass([
|
|
1580
|
-
|
|
1802
|
+
Entity9("skills")
|
|
1581
1803
|
], Skill);
|
|
1582
1804
|
|
|
1583
1805
|
// src/entities/job-skill.entity.ts
|
|
1584
1806
|
var JobSkill = class extends BaseEntity {
|
|
1585
1807
|
};
|
|
1586
1808
|
__decorateClass([
|
|
1587
|
-
|
|
1809
|
+
Column11({ name: "job_id", type: "integer" }),
|
|
1588
1810
|
Index4()
|
|
1589
1811
|
], JobSkill.prototype, "jobId", 2);
|
|
1590
1812
|
__decorateClass([
|
|
1591
|
-
|
|
1592
|
-
|
|
1813
|
+
ManyToOne8(() => Job, (job) => job.jobSkills, { onDelete: "CASCADE" }),
|
|
1814
|
+
JoinColumn8({ name: "job_id" })
|
|
1593
1815
|
], JobSkill.prototype, "job", 2);
|
|
1594
1816
|
__decorateClass([
|
|
1595
|
-
|
|
1817
|
+
Column11({ name: "skill_id", type: "integer" }),
|
|
1596
1818
|
Index4()
|
|
1597
1819
|
], JobSkill.prototype, "skillId", 2);
|
|
1598
1820
|
__decorateClass([
|
|
1599
|
-
|
|
1600
|
-
|
|
1821
|
+
ManyToOne8(() => Skill, (skill) => skill.jobSkills, { onDelete: "CASCADE" }),
|
|
1822
|
+
JoinColumn8({ name: "skill_id" })
|
|
1601
1823
|
], JobSkill.prototype, "skill", 2);
|
|
1602
1824
|
JobSkill = __decorateClass([
|
|
1603
|
-
|
|
1825
|
+
Entity10("job_skills")
|
|
1604
1826
|
], JobSkill);
|
|
1605
1827
|
|
|
1606
1828
|
// src/entities/job-application.entity.ts
|
|
1607
1829
|
import {
|
|
1608
|
-
Entity as
|
|
1609
|
-
Column as
|
|
1830
|
+
Entity as Entity11,
|
|
1831
|
+
Column as Column12,
|
|
1610
1832
|
Index as Index5,
|
|
1611
|
-
ManyToOne as
|
|
1612
|
-
JoinColumn as
|
|
1833
|
+
ManyToOne as ManyToOne9,
|
|
1834
|
+
JoinColumn as JoinColumn9
|
|
1613
1835
|
} from "typeorm";
|
|
1614
1836
|
var ApplicationStatusEnum = /* @__PURE__ */ ((ApplicationStatusEnum2) => {
|
|
1615
1837
|
ApplicationStatusEnum2["PENDING"] = "PENDING";
|
|
@@ -1628,7 +1850,7 @@ var ApplicationStatusEnum = /* @__PURE__ */ ((ApplicationStatusEnum2) => {
|
|
|
1628
1850
|
var JobApplication = class extends BaseEntity {
|
|
1629
1851
|
};
|
|
1630
1852
|
__decorateClass([
|
|
1631
|
-
|
|
1853
|
+
Column12({
|
|
1632
1854
|
name: "job_application_id",
|
|
1633
1855
|
type: "varchar",
|
|
1634
1856
|
unique: true,
|
|
@@ -1636,23 +1858,23 @@ __decorateClass([
|
|
|
1636
1858
|
})
|
|
1637
1859
|
], JobApplication.prototype, "jobApplicationId", 2);
|
|
1638
1860
|
__decorateClass([
|
|
1639
|
-
|
|
1861
|
+
Column12({ name: "job_id", type: "integer" }),
|
|
1640
1862
|
Index5()
|
|
1641
1863
|
], JobApplication.prototype, "jobId", 2);
|
|
1642
1864
|
__decorateClass([
|
|
1643
|
-
|
|
1644
|
-
|
|
1865
|
+
ManyToOne9(() => Job, (job) => job.jobApplications, { onDelete: "CASCADE" }),
|
|
1866
|
+
JoinColumn9({ name: "job_id" })
|
|
1645
1867
|
], JobApplication.prototype, "job", 2);
|
|
1646
1868
|
__decorateClass([
|
|
1647
|
-
|
|
1869
|
+
Column12({ name: "user_id", type: "integer" }),
|
|
1648
1870
|
Index5()
|
|
1649
1871
|
], JobApplication.prototype, "userId", 2);
|
|
1650
1872
|
__decorateClass([
|
|
1651
|
-
|
|
1652
|
-
|
|
1873
|
+
ManyToOne9(() => User, (user) => user.jobApplications),
|
|
1874
|
+
JoinColumn9({ name: "user_id" })
|
|
1653
1875
|
], JobApplication.prototype, "user", 2);
|
|
1654
1876
|
__decorateClass([
|
|
1655
|
-
|
|
1877
|
+
Column12({
|
|
1656
1878
|
name: "status",
|
|
1657
1879
|
type: "enum",
|
|
1658
1880
|
enum: ApplicationStatusEnum,
|
|
@@ -1660,106 +1882,106 @@ __decorateClass([
|
|
|
1660
1882
|
})
|
|
1661
1883
|
], JobApplication.prototype, "status", 2);
|
|
1662
1884
|
__decorateClass([
|
|
1663
|
-
|
|
1885
|
+
Column12({
|
|
1664
1886
|
name: "applied_at",
|
|
1665
1887
|
type: "timestamp with time zone",
|
|
1666
1888
|
default: () => "CURRENT_TIMESTAMP"
|
|
1667
1889
|
})
|
|
1668
1890
|
], JobApplication.prototype, "appliedAt", 2);
|
|
1669
1891
|
__decorateClass([
|
|
1670
|
-
|
|
1892
|
+
Column12({
|
|
1671
1893
|
name: "shortlisted_at",
|
|
1672
1894
|
type: "timestamp with time zone",
|
|
1673
1895
|
nullable: true
|
|
1674
1896
|
})
|
|
1675
1897
|
], JobApplication.prototype, "shortlistedAt", 2);
|
|
1676
1898
|
__decorateClass([
|
|
1677
|
-
|
|
1899
|
+
Column12({
|
|
1678
1900
|
name: "interview_started_at",
|
|
1679
1901
|
type: "timestamp with time zone",
|
|
1680
1902
|
nullable: true
|
|
1681
1903
|
})
|
|
1682
1904
|
], JobApplication.prototype, "interviewStartedAt", 2);
|
|
1683
1905
|
__decorateClass([
|
|
1684
|
-
|
|
1906
|
+
Column12({
|
|
1685
1907
|
name: "interview_completed_at",
|
|
1686
1908
|
type: "timestamp with time zone",
|
|
1687
1909
|
nullable: true
|
|
1688
1910
|
})
|
|
1689
1911
|
], JobApplication.prototype, "interviewCompletedAt", 2);
|
|
1690
1912
|
__decorateClass([
|
|
1691
|
-
|
|
1913
|
+
Column12({
|
|
1692
1914
|
name: "offered_at",
|
|
1693
1915
|
type: "timestamp with time zone",
|
|
1694
1916
|
nullable: true
|
|
1695
1917
|
})
|
|
1696
1918
|
], JobApplication.prototype, "offeredAt", 2);
|
|
1697
1919
|
__decorateClass([
|
|
1698
|
-
|
|
1920
|
+
Column12({
|
|
1699
1921
|
name: "hired_at",
|
|
1700
1922
|
type: "timestamp with time zone",
|
|
1701
1923
|
nullable: true
|
|
1702
1924
|
})
|
|
1703
1925
|
], JobApplication.prototype, "hiredAt", 2);
|
|
1704
1926
|
__decorateClass([
|
|
1705
|
-
|
|
1927
|
+
Column12({
|
|
1706
1928
|
name: "rejected_at",
|
|
1707
1929
|
type: "timestamp with time zone",
|
|
1708
1930
|
nullable: true
|
|
1709
1931
|
})
|
|
1710
1932
|
], JobApplication.prototype, "rejectedAt", 2);
|
|
1711
1933
|
__decorateClass([
|
|
1712
|
-
|
|
1934
|
+
Column12({ name: "rejection_reason", type: "varchar", nullable: true })
|
|
1713
1935
|
], JobApplication.prototype, "rejectionReason", 2);
|
|
1714
1936
|
__decorateClass([
|
|
1715
|
-
|
|
1937
|
+
Column12({
|
|
1716
1938
|
name: "withdrawn_at",
|
|
1717
1939
|
type: "timestamp with time zone",
|
|
1718
1940
|
nullable: true
|
|
1719
1941
|
})
|
|
1720
1942
|
], JobApplication.prototype, "withdrawnAt", 2);
|
|
1721
1943
|
__decorateClass([
|
|
1722
|
-
|
|
1944
|
+
Column12({ name: "withdrawn_reason", type: "varchar", nullable: true })
|
|
1723
1945
|
], JobApplication.prototype, "withdrawnReason", 2);
|
|
1724
1946
|
JobApplication = __decorateClass([
|
|
1725
|
-
|
|
1947
|
+
Entity11("job_applications")
|
|
1726
1948
|
], JobApplication);
|
|
1727
1949
|
|
|
1728
1950
|
// src/entities/interview.entity.ts
|
|
1729
1951
|
import {
|
|
1730
|
-
Entity as
|
|
1731
|
-
Column as
|
|
1952
|
+
Entity as Entity13,
|
|
1953
|
+
Column as Column14,
|
|
1732
1954
|
Index as Index7,
|
|
1733
|
-
ManyToOne as
|
|
1734
|
-
JoinColumn as
|
|
1735
|
-
OneToMany as
|
|
1955
|
+
ManyToOne as ManyToOne11,
|
|
1956
|
+
JoinColumn as JoinColumn11,
|
|
1957
|
+
OneToMany as OneToMany6
|
|
1736
1958
|
} from "typeorm";
|
|
1737
1959
|
|
|
1738
1960
|
// src/entities/interview-skill.entity.ts
|
|
1739
|
-
import { Entity as
|
|
1961
|
+
import { Entity as Entity12, Column as Column13, Index as Index6, ManyToOne as ManyToOne10, JoinColumn as JoinColumn10 } from "typeorm";
|
|
1740
1962
|
var InterviewSkill = class extends BaseEntity {
|
|
1741
1963
|
};
|
|
1742
1964
|
__decorateClass([
|
|
1743
|
-
|
|
1965
|
+
Column13({ name: "interview_id", type: "integer" }),
|
|
1744
1966
|
Index6()
|
|
1745
1967
|
], InterviewSkill.prototype, "interviewId", 2);
|
|
1746
1968
|
__decorateClass([
|
|
1747
|
-
|
|
1969
|
+
ManyToOne10(() => Interview, (interview) => interview.interviewSkills, {
|
|
1748
1970
|
onDelete: "CASCADE"
|
|
1749
1971
|
}),
|
|
1750
|
-
|
|
1972
|
+
JoinColumn10({ name: "interview_id" })
|
|
1751
1973
|
], InterviewSkill.prototype, "interview", 2);
|
|
1752
1974
|
__decorateClass([
|
|
1753
|
-
|
|
1975
|
+
Column13({ name: "skill", type: "varchar", nullable: true })
|
|
1754
1976
|
], InterviewSkill.prototype, "skill", 2);
|
|
1755
1977
|
__decorateClass([
|
|
1756
|
-
|
|
1978
|
+
Column13({ name: "description", type: "varchar", nullable: true })
|
|
1757
1979
|
], InterviewSkill.prototype, "description", 2);
|
|
1758
1980
|
__decorateClass([
|
|
1759
|
-
|
|
1981
|
+
Column13({ name: "is_active", type: "boolean", default: true })
|
|
1760
1982
|
], InterviewSkill.prototype, "isActive", 2);
|
|
1761
1983
|
InterviewSkill = __decorateClass([
|
|
1762
|
-
|
|
1984
|
+
Entity12("interview_skills")
|
|
1763
1985
|
], InterviewSkill);
|
|
1764
1986
|
|
|
1765
1987
|
// src/entities/interview.entity.ts
|
|
@@ -1774,7 +1996,7 @@ var InterviewStatusEnum = /* @__PURE__ */ ((InterviewStatusEnum2) => {
|
|
|
1774
1996
|
var Interview = class extends BaseEntity {
|
|
1775
1997
|
};
|
|
1776
1998
|
__decorateClass([
|
|
1777
|
-
|
|
1999
|
+
Column14({
|
|
1778
2000
|
name: "interview_id",
|
|
1779
2001
|
type: "varchar",
|
|
1780
2002
|
unique: true,
|
|
@@ -1783,29 +2005,29 @@ __decorateClass([
|
|
|
1783
2005
|
Index7()
|
|
1784
2006
|
], Interview.prototype, "interviewId", 2);
|
|
1785
2007
|
__decorateClass([
|
|
1786
|
-
|
|
2008
|
+
Column14({ name: "user_id", type: "integer", nullable: true }),
|
|
1787
2009
|
Index7()
|
|
1788
2010
|
], Interview.prototype, "userId", 2);
|
|
1789
2011
|
__decorateClass([
|
|
1790
|
-
|
|
1791
|
-
|
|
2012
|
+
ManyToOne11(() => User, (user) => user.interviews),
|
|
2013
|
+
JoinColumn11({ name: "user_id" })
|
|
1792
2014
|
], Interview.prototype, "user", 2);
|
|
1793
2015
|
__decorateClass([
|
|
1794
|
-
|
|
2016
|
+
Column14({ name: "interview_name", type: "varchar", nullable: true })
|
|
1795
2017
|
], Interview.prototype, "interviewName", 2);
|
|
1796
2018
|
__decorateClass([
|
|
1797
|
-
|
|
2019
|
+
Column14({ name: "job_id", type: "integer" }),
|
|
1798
2020
|
Index7()
|
|
1799
2021
|
], Interview.prototype, "jobId", 2);
|
|
1800
2022
|
__decorateClass([
|
|
1801
|
-
|
|
1802
|
-
|
|
2023
|
+
ManyToOne11(() => Job, (job) => job.interviews, { onDelete: "CASCADE" }),
|
|
2024
|
+
JoinColumn11({ name: "job_id" })
|
|
1803
2025
|
], Interview.prototype, "job", 2);
|
|
1804
2026
|
__decorateClass([
|
|
1805
|
-
|
|
2027
|
+
Column14({ name: "interview_type", type: "varchar", nullable: true })
|
|
1806
2028
|
], Interview.prototype, "interviewType", 2);
|
|
1807
2029
|
__decorateClass([
|
|
1808
|
-
|
|
2030
|
+
Column14({
|
|
1809
2031
|
name: "status",
|
|
1810
2032
|
type: "enum",
|
|
1811
2033
|
enum: InterviewStatusEnum,
|
|
@@ -1813,192 +2035,16 @@ __decorateClass([
|
|
|
1813
2035
|
})
|
|
1814
2036
|
], Interview.prototype, "status", 2);
|
|
1815
2037
|
__decorateClass([
|
|
1816
|
-
|
|
2038
|
+
OneToMany6(
|
|
1817
2039
|
() => InterviewSkill,
|
|
1818
2040
|
(interviewSkill) => interviewSkill.interview,
|
|
1819
2041
|
{ cascade: true }
|
|
1820
2042
|
)
|
|
1821
2043
|
], Interview.prototype, "interviewSkills", 2);
|
|
1822
2044
|
Interview = __decorateClass([
|
|
1823
|
-
|
|
2045
|
+
Entity13("interviews")
|
|
1824
2046
|
], Interview);
|
|
1825
2047
|
|
|
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
2048
|
// src/entities/job.entity.ts
|
|
2003
2049
|
var JobLocationEnum = /* @__PURE__ */ ((JobLocationEnum2) => {
|
|
2004
2050
|
JobLocationEnum2["ONSITE"] = "ONSITE";
|
|
@@ -4634,6 +4680,7 @@ export {
|
|
|
4634
4680
|
AccountType,
|
|
4635
4681
|
AdminCreateJobInformationDto,
|
|
4636
4682
|
AdminUpdateJobInformationDto,
|
|
4683
|
+
AiAssessmentStatusEnum,
|
|
4637
4684
|
AnswerTypeEnum,
|
|
4638
4685
|
ApplicationStatusEnum,
|
|
4639
4686
|
AssessmentAnswer,
|
|
@@ -4745,6 +4792,7 @@ export {
|
|
|
4745
4792
|
Lead,
|
|
4746
4793
|
LoginDto,
|
|
4747
4794
|
LogoutDto,
|
|
4795
|
+
McqStatusEnum,
|
|
4748
4796
|
ModeOfHire,
|
|
4749
4797
|
ModeOfWork,
|
|
4750
4798
|
NOTIFICATION_PATTERN,
|