@experts_hub/shared 1.0.126 → 1.0.128
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/freelancer-experience.entity.d.ts +10 -0
- package/dist/entities/index.d.ts +1 -0
- package/dist/entities/user.entity.d.ts +5 -0
- package/dist/index.d.mts +41 -1
- package/dist/index.d.ts +41 -1
- package/dist/index.js +204 -83
- package/dist/index.mjs +193 -72
- package/dist/modules/index.d.ts +1 -0
- package/dist/modules/user/freelancer-experience/dto/create-freelancer-experience.dto.d.ts +9 -0
- package/dist/modules/user/freelancer-experience/dto/index.d.ts +2 -0
- package/dist/modules/user/freelancer-experience/dto/update-freelancer-experience.dto.d.ts +10 -0
- package/dist/modules/user/freelancer-experience/index.d.ts +2 -0
- package/dist/modules/user/freelancer-experience/pattern/pattern.d.ts +5 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -45,17 +45,21 @@ __export(index_exports, {
|
|
|
45
45
|
CompanyProfile: () => CompanyProfile,
|
|
46
46
|
CompanyRole: () => CompanyRole,
|
|
47
47
|
CreateCompanyRoleDto: () => CreateCompanyRoleDto,
|
|
48
|
+
CreateExperienceDto: () => CreateExperienceDto,
|
|
49
|
+
CreateFreelancerExperienceDto: () => CreateFreelancerExperienceDto,
|
|
48
50
|
CreateQuestionDto: () => CreateQuestionDto,
|
|
49
51
|
CreateRatingDto: () => CreateRatingDto,
|
|
50
52
|
CreateSubAdminDto: () => CreateSubAdminDto,
|
|
51
53
|
DurationTypeEnum: () => DurationTypeEnum,
|
|
52
54
|
EmploymentType: () => EmploymentType,
|
|
55
|
+
FREELANCER_EXPERIENCE_PATTERN: () => FREELANCER_EXPERIENCE_PATTERN,
|
|
53
56
|
Feature: () => Feature,
|
|
54
57
|
ForgotPasswordDto: () => ForgotPasswordDto,
|
|
55
58
|
FreelancerBankDetailsDto: () => FreelancerBankDetailsDto,
|
|
56
59
|
FreelancerChangePasswordDto: () => FreelancerChangePasswordDto,
|
|
57
60
|
FreelancerCreateAccountDto: () => FreelancerCreateAccountDto,
|
|
58
61
|
FreelancerDevelopmentPreferenceDto: () => FreelancerDevelopmentPreferenceDto,
|
|
62
|
+
FreelancerExperience: () => FreelancerExperience,
|
|
59
63
|
FreelancerProfile: () => FreelancerProfile,
|
|
60
64
|
FreelancerProfileQuestionDto: () => FreelancerProfileQuestionDto,
|
|
61
65
|
FreelancerUploadResumeDto: () => FreelancerUploadResumeDto,
|
|
@@ -119,6 +123,8 @@ __export(index_exports, {
|
|
|
119
123
|
TypeOfEmploymentEnum: () => TypeOfEmploymentEnum,
|
|
120
124
|
UpdateCompanyProfileDto: () => UpdateCompanyProfileDto,
|
|
121
125
|
UpdateCompanyRoleDto: () => UpdateCompanyRoleDto,
|
|
126
|
+
UpdateExperienceDto: () => UpdateExperienceDto,
|
|
127
|
+
UpdateFreelancerExperienceDto: () => UpdateFreelancerExperienceDto,
|
|
122
128
|
UpdateFreelancerProfileDto: () => UpdateFreelancerProfileDto,
|
|
123
129
|
UpdateSubAdminAccountStatusDto: () => UpdateSubAdminAccountStatusDto,
|
|
124
130
|
UpdateSubAdminDto: () => UpdateSubAdminDto,
|
|
@@ -556,7 +562,7 @@ var CLIENT_PROFILE_PATTERN = {
|
|
|
556
562
|
var import_class_validator17 = require("class-validator");
|
|
557
563
|
|
|
558
564
|
// src/entities/company-profile.entity.ts
|
|
559
|
-
var
|
|
565
|
+
var import_typeorm16 = require("typeorm");
|
|
560
566
|
|
|
561
567
|
// src/entities/base.entity.ts
|
|
562
568
|
var import_typeorm = require("typeorm");
|
|
@@ -596,7 +602,7 @@ __decorateClass([
|
|
|
596
602
|
], BaseEntity.prototype, "deletedAt", 2);
|
|
597
603
|
|
|
598
604
|
// src/entities/user.entity.ts
|
|
599
|
-
var
|
|
605
|
+
var import_typeorm15 = require("typeorm");
|
|
600
606
|
|
|
601
607
|
// src/entities/refresh-token.entity.ts
|
|
602
608
|
var import_typeorm2 = require("typeorm");
|
|
@@ -1327,6 +1333,35 @@ CompanyRole = __decorateClass([
|
|
|
1327
1333
|
(0, import_typeorm13.Entity)("company_roles")
|
|
1328
1334
|
], CompanyRole);
|
|
1329
1335
|
|
|
1336
|
+
// src/entities/freelancer-experience.entity.ts
|
|
1337
|
+
var import_typeorm14 = require("typeorm");
|
|
1338
|
+
var FreelancerExperience = class extends BaseEntity {
|
|
1339
|
+
};
|
|
1340
|
+
// individual index to find experence by user
|
|
1341
|
+
__decorateClass([
|
|
1342
|
+
(0, import_typeorm14.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
1343
|
+
(0, import_typeorm14.Index)()
|
|
1344
|
+
], FreelancerExperience.prototype, "userId", 2);
|
|
1345
|
+
__decorateClass([
|
|
1346
|
+
(0, import_typeorm14.ManyToOne)(() => User, (user) => user.freelancerExperience),
|
|
1347
|
+
(0, import_typeorm14.JoinColumn)({ name: "user_id" })
|
|
1348
|
+
], FreelancerExperience.prototype, "user", 2);
|
|
1349
|
+
__decorateClass([
|
|
1350
|
+
(0, import_typeorm14.Column)({ name: "company_name", type: "varchar", nullable: true })
|
|
1351
|
+
], FreelancerExperience.prototype, "companyName", 2);
|
|
1352
|
+
__decorateClass([
|
|
1353
|
+
(0, import_typeorm14.Column)({ name: "designation", type: "varchar", nullable: true })
|
|
1354
|
+
], FreelancerExperience.prototype, "designation", 2);
|
|
1355
|
+
__decorateClass([
|
|
1356
|
+
(0, import_typeorm14.Column)({ name: "job_duration", type: "varchar", nullable: true })
|
|
1357
|
+
], FreelancerExperience.prototype, "jobDuration", 2);
|
|
1358
|
+
__decorateClass([
|
|
1359
|
+
(0, import_typeorm14.Column)({ name: "description", type: "varchar", nullable: true })
|
|
1360
|
+
], FreelancerExperience.prototype, "description", 2);
|
|
1361
|
+
FreelancerExperience = __decorateClass([
|
|
1362
|
+
(0, import_typeorm14.Entity)("freelancer_experiences")
|
|
1363
|
+
], FreelancerExperience);
|
|
1364
|
+
|
|
1330
1365
|
// src/entities/user.entity.ts
|
|
1331
1366
|
var AccountType = /* @__PURE__ */ ((AccountType2) => {
|
|
1332
1367
|
AccountType2["ADMIN"] = "ADMIN";
|
|
@@ -1351,40 +1386,51 @@ var Provider = /* @__PURE__ */ ((Provider2) => {
|
|
|
1351
1386
|
var User = class extends BaseEntity {
|
|
1352
1387
|
};
|
|
1353
1388
|
__decorateClass([
|
|
1354
|
-
(0,
|
|
1389
|
+
(0, import_typeorm15.Column)({ name: "unique_id", type: "varchar", unique: true })
|
|
1355
1390
|
], User.prototype, "uniqueId", 2);
|
|
1356
1391
|
__decorateClass([
|
|
1357
|
-
(0,
|
|
1392
|
+
(0, import_typeorm15.Column)({ name: "parent_id", type: "integer", nullable: true }),
|
|
1393
|
+
(0, import_typeorm15.Index)()
|
|
1394
|
+
], User.prototype, "parentId", 2);
|
|
1395
|
+
__decorateClass([
|
|
1396
|
+
(0, import_typeorm15.ManyToOne)(() => User, (user) => user.children, { nullable: true }),
|
|
1397
|
+
(0, import_typeorm15.JoinColumn)({ name: "parent_id" })
|
|
1398
|
+
], User.prototype, "parent", 2);
|
|
1399
|
+
__decorateClass([
|
|
1400
|
+
(0, import_typeorm15.OneToMany)(() => User, (user) => user.parent)
|
|
1401
|
+
], User.prototype, "children", 2);
|
|
1402
|
+
__decorateClass([
|
|
1403
|
+
(0, import_typeorm15.Column)({ name: "username", type: "varchar", unique: true, nullable: true })
|
|
1358
1404
|
], User.prototype, "username", 2);
|
|
1359
1405
|
__decorateClass([
|
|
1360
|
-
(0,
|
|
1406
|
+
(0, import_typeorm15.Column)({ name: "first_name", type: "varchar", length: 100, nullable: true })
|
|
1361
1407
|
], User.prototype, "firstName", 2);
|
|
1362
1408
|
__decorateClass([
|
|
1363
|
-
(0,
|
|
1409
|
+
(0, import_typeorm15.Column)({ name: "last_name", type: "varchar", length: 100, nullable: true })
|
|
1364
1410
|
], User.prototype, "lastName", 2);
|
|
1365
1411
|
__decorateClass([
|
|
1366
|
-
(0,
|
|
1412
|
+
(0, import_typeorm15.Column)({ name: "date_of_birth", type: "date", nullable: true })
|
|
1367
1413
|
], User.prototype, "dateOfBirth", 2);
|
|
1368
1414
|
__decorateClass([
|
|
1369
|
-
(0,
|
|
1415
|
+
(0, import_typeorm15.Column)({ name: "gender", type: "varchar", length: 10, nullable: true })
|
|
1370
1416
|
], User.prototype, "gender", 2);
|
|
1371
1417
|
__decorateClass([
|
|
1372
|
-
(0,
|
|
1418
|
+
(0, import_typeorm15.Column)({ name: "profile_picture_url", type: "text", nullable: true })
|
|
1373
1419
|
], User.prototype, "profilePictureUrl", 2);
|
|
1374
1420
|
__decorateClass([
|
|
1375
|
-
(0,
|
|
1421
|
+
(0, import_typeorm15.Column)({ name: "email", type: "varchar", unique: true })
|
|
1376
1422
|
], User.prototype, "email", 2);
|
|
1377
1423
|
__decorateClass([
|
|
1378
|
-
(0,
|
|
1424
|
+
(0, import_typeorm15.Column)({ name: "mobile_code", type: "varchar", nullable: true })
|
|
1379
1425
|
], User.prototype, "mobileCode", 2);
|
|
1380
1426
|
__decorateClass([
|
|
1381
|
-
(0,
|
|
1427
|
+
(0, import_typeorm15.Column)({ name: "mobile", type: "varchar", unique: true, nullable: true })
|
|
1382
1428
|
], User.prototype, "mobile", 2);
|
|
1383
1429
|
__decorateClass([
|
|
1384
|
-
(0,
|
|
1430
|
+
(0, import_typeorm15.Column)({ name: "password", type: "varchar" })
|
|
1385
1431
|
], User.prototype, "password", 2);
|
|
1386
1432
|
__decorateClass([
|
|
1387
|
-
(0,
|
|
1433
|
+
(0, import_typeorm15.Column)({
|
|
1388
1434
|
name: "account_type",
|
|
1389
1435
|
type: "enum",
|
|
1390
1436
|
enum: AccountType,
|
|
@@ -1392,7 +1438,7 @@ __decorateClass([
|
|
|
1392
1438
|
})
|
|
1393
1439
|
], User.prototype, "accountType", 2);
|
|
1394
1440
|
__decorateClass([
|
|
1395
|
-
(0,
|
|
1441
|
+
(0, import_typeorm15.Column)({
|
|
1396
1442
|
name: "account_status",
|
|
1397
1443
|
type: "enum",
|
|
1398
1444
|
enum: AccountStatus,
|
|
@@ -1400,36 +1446,36 @@ __decorateClass([
|
|
|
1400
1446
|
})
|
|
1401
1447
|
], User.prototype, "accountStatus", 2);
|
|
1402
1448
|
__decorateClass([
|
|
1403
|
-
(0,
|
|
1449
|
+
(0, import_typeorm15.Column)({ name: "is_email_verified", type: "boolean", default: false })
|
|
1404
1450
|
], User.prototype, "isEmailVerified", 2);
|
|
1405
1451
|
__decorateClass([
|
|
1406
|
-
(0,
|
|
1452
|
+
(0, import_typeorm15.Column)({ name: "is_mobile_verified", type: "boolean", default: false })
|
|
1407
1453
|
], User.prototype, "isMobileVerified", 2);
|
|
1408
1454
|
__decorateClass([
|
|
1409
|
-
(0,
|
|
1455
|
+
(0, import_typeorm15.Column)({
|
|
1410
1456
|
name: "last_login_at",
|
|
1411
1457
|
type: "timestamp with time zone",
|
|
1412
1458
|
nullable: true
|
|
1413
1459
|
})
|
|
1414
1460
|
], User.prototype, "lastLoginAt", 2);
|
|
1415
1461
|
__decorateClass([
|
|
1416
|
-
(0,
|
|
1462
|
+
(0, import_typeorm15.Column)({ name: "last_login_ip", type: "varchar", nullable: true })
|
|
1417
1463
|
], User.prototype, "lastLoginIp", 2);
|
|
1418
1464
|
__decorateClass([
|
|
1419
|
-
(0,
|
|
1465
|
+
(0, import_typeorm15.Column)({ name: "reset_token", type: "varchar", nullable: true })
|
|
1420
1466
|
], User.prototype, "resetToken", 2);
|
|
1421
1467
|
__decorateClass([
|
|
1422
|
-
(0,
|
|
1468
|
+
(0, import_typeorm15.Column)({
|
|
1423
1469
|
name: "reset_token_expire_at",
|
|
1424
1470
|
type: "timestamp with time zone",
|
|
1425
1471
|
nullable: true
|
|
1426
1472
|
})
|
|
1427
1473
|
], User.prototype, "resetTokenExpireAt", 2);
|
|
1428
1474
|
__decorateClass([
|
|
1429
|
-
(0,
|
|
1475
|
+
(0, import_typeorm15.OneToMany)(() => RefreshToken, (token) => token.user)
|
|
1430
1476
|
], User.prototype, "refreshTokens", 2);
|
|
1431
1477
|
__decorateClass([
|
|
1432
|
-
(0,
|
|
1478
|
+
(0, import_typeorm15.Column)({
|
|
1433
1479
|
name: "provider",
|
|
1434
1480
|
type: "enum",
|
|
1435
1481
|
enum: Provider,
|
|
@@ -1438,58 +1484,61 @@ __decorateClass([
|
|
|
1438
1484
|
})
|
|
1439
1485
|
], User.prototype, "provider", 2);
|
|
1440
1486
|
__decorateClass([
|
|
1441
|
-
(0,
|
|
1487
|
+
(0, import_typeorm15.Column)({ name: "provider_token", type: "varchar", nullable: true })
|
|
1442
1488
|
], User.prototype, "providerToken", 2);
|
|
1443
1489
|
__decorateClass([
|
|
1444
|
-
(0,
|
|
1490
|
+
(0, import_typeorm15.Column)({ name: "linkedin_id", type: "varchar", nullable: true })
|
|
1445
1491
|
], User.prototype, "linkedInId", 2);
|
|
1446
1492
|
__decorateClass([
|
|
1447
|
-
(0,
|
|
1493
|
+
(0, import_typeorm15.Column)({ name: "google_id", type: "varchar", nullable: true })
|
|
1448
1494
|
], User.prototype, "googleId", 2);
|
|
1449
1495
|
__decorateClass([
|
|
1450
|
-
(0,
|
|
1496
|
+
(0, import_typeorm15.Column)({ name: "gitlabs_id", type: "varchar", nullable: true })
|
|
1451
1497
|
], User.prototype, "gitLabsId", 2);
|
|
1452
1498
|
__decorateClass([
|
|
1453
|
-
(0,
|
|
1499
|
+
(0, import_typeorm15.OneToMany)(() => Otp, (otp) => otp.user)
|
|
1454
1500
|
], User.prototype, "otps", 2);
|
|
1455
1501
|
__decorateClass([
|
|
1456
|
-
(0,
|
|
1502
|
+
(0, import_typeorm15.OneToMany)(() => ResumeParserLog, (resumeParser) => resumeParser.user)
|
|
1457
1503
|
], User.prototype, "resumeParserLogs", 2);
|
|
1458
1504
|
__decorateClass([
|
|
1459
|
-
(0,
|
|
1505
|
+
(0, import_typeorm15.OneToOne)(
|
|
1460
1506
|
() => FreelancerProfile,
|
|
1461
1507
|
(freelancerProfile) => freelancerProfile.user
|
|
1462
1508
|
)
|
|
1463
1509
|
], User.prototype, "freelancerProfile", 2);
|
|
1464
1510
|
__decorateClass([
|
|
1465
|
-
(0,
|
|
1511
|
+
(0, import_typeorm15.OneToOne)(() => CompanyProfile, (companyProfile) => companyProfile.user)
|
|
1466
1512
|
], User.prototype, "companyProfile", 2);
|
|
1467
1513
|
__decorateClass([
|
|
1468
|
-
(0,
|
|
1514
|
+
(0, import_typeorm15.OneToMany)(() => Job, (job) => job.user)
|
|
1469
1515
|
], User.prototype, "jobs", 2);
|
|
1470
1516
|
__decorateClass([
|
|
1471
|
-
(0,
|
|
1517
|
+
(0, import_typeorm15.OneToMany)(() => BankDetail, (bankDetail) => bankDetail.user)
|
|
1472
1518
|
], User.prototype, "bankDetail", 2);
|
|
1473
1519
|
__decorateClass([
|
|
1474
|
-
(0,
|
|
1520
|
+
(0, import_typeorm15.OneToMany)(
|
|
1475
1521
|
() => SystemPreference,
|
|
1476
1522
|
(systemPreference) => systemPreference.user
|
|
1477
1523
|
)
|
|
1478
1524
|
], User.prototype, "systemPreference", 2);
|
|
1479
1525
|
__decorateClass([
|
|
1480
|
-
(0,
|
|
1526
|
+
(0, import_typeorm15.OneToMany)(() => Rating, (rating) => rating.reviewer)
|
|
1481
1527
|
], User.prototype, "givenRatings", 2);
|
|
1482
1528
|
__decorateClass([
|
|
1483
|
-
(0,
|
|
1529
|
+
(0, import_typeorm15.OneToMany)(() => Rating, (rating) => rating.reviewee)
|
|
1484
1530
|
], User.prototype, "receivedRatings", 2);
|
|
1485
1531
|
__decorateClass([
|
|
1486
|
-
(0,
|
|
1532
|
+
(0, import_typeorm15.OneToMany)(() => JobApplication, (jobApplication) => jobApplication.user)
|
|
1487
1533
|
], User.prototype, "jobApplications", 2);
|
|
1488
1534
|
__decorateClass([
|
|
1489
|
-
(0,
|
|
1535
|
+
(0, import_typeorm15.OneToMany)(() => CompanyRole, (companyRole) => companyRole.user)
|
|
1490
1536
|
], User.prototype, "companyRole", 2);
|
|
1537
|
+
__decorateClass([
|
|
1538
|
+
(0, import_typeorm15.OneToOne)(() => FreelancerExperience, (freelancerExperience) => freelancerExperience.user)
|
|
1539
|
+
], User.prototype, "freelancerExperience", 2);
|
|
1491
1540
|
User = __decorateClass([
|
|
1492
|
-
(0,
|
|
1541
|
+
(0, import_typeorm15.Entity)("users")
|
|
1493
1542
|
], User);
|
|
1494
1543
|
|
|
1495
1544
|
// src/entities/company-profile.entity.ts
|
|
@@ -1516,42 +1565,42 @@ var CompanyProfile = class extends BaseEntity {
|
|
|
1516
1565
|
};
|
|
1517
1566
|
// individual index to find company profile by user
|
|
1518
1567
|
__decorateClass([
|
|
1519
|
-
(0,
|
|
1520
|
-
(0,
|
|
1568
|
+
(0, import_typeorm16.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
1569
|
+
(0, import_typeorm16.Index)()
|
|
1521
1570
|
], CompanyProfile.prototype, "userId", 2);
|
|
1522
1571
|
__decorateClass([
|
|
1523
|
-
(0,
|
|
1524
|
-
(0,
|
|
1572
|
+
(0, import_typeorm16.ManyToOne)(() => User, (user) => user.otps),
|
|
1573
|
+
(0, import_typeorm16.JoinColumn)({ name: "user_id" })
|
|
1525
1574
|
], CompanyProfile.prototype, "user", 2);
|
|
1526
1575
|
__decorateClass([
|
|
1527
|
-
(0,
|
|
1576
|
+
(0, import_typeorm16.Column)({ name: "company_name", type: "varchar", nullable: true })
|
|
1528
1577
|
], CompanyProfile.prototype, "companyName", 2);
|
|
1529
1578
|
__decorateClass([
|
|
1530
|
-
(0,
|
|
1579
|
+
(0, import_typeorm16.Column)({ name: "bio", type: "varchar", nullable: true })
|
|
1531
1580
|
], CompanyProfile.prototype, "bio", 2);
|
|
1532
1581
|
__decorateClass([
|
|
1533
|
-
(0,
|
|
1582
|
+
(0, import_typeorm16.Column)({ name: "website", type: "varchar", nullable: true })
|
|
1534
1583
|
], CompanyProfile.prototype, "webSite", 2);
|
|
1535
1584
|
__decorateClass([
|
|
1536
|
-
(0,
|
|
1585
|
+
(0, import_typeorm16.Column)({ name: "about_company", type: "varchar", nullable: true })
|
|
1537
1586
|
], CompanyProfile.prototype, "aboutCompany", 2);
|
|
1538
1587
|
__decorateClass([
|
|
1539
|
-
(0,
|
|
1588
|
+
(0, import_typeorm16.Column)({ name: "is_service_aggrement_signed", type: "boolean", default: false })
|
|
1540
1589
|
], CompanyProfile.prototype, "isServiceAgreementSigned", 2);
|
|
1541
1590
|
__decorateClass([
|
|
1542
|
-
(0,
|
|
1591
|
+
(0, import_typeorm16.Column)({ name: "company_address", type: "varchar", nullable: true })
|
|
1543
1592
|
], CompanyProfile.prototype, "companyAddress", 2);
|
|
1544
1593
|
__decorateClass([
|
|
1545
|
-
(0,
|
|
1594
|
+
(0, import_typeorm16.Column)({ name: "phone_number", type: "varchar", nullable: true })
|
|
1546
1595
|
], CompanyProfile.prototype, "phoneNumber", 2);
|
|
1547
1596
|
__decorateClass([
|
|
1548
|
-
(0,
|
|
1597
|
+
(0, import_typeorm16.Column)({ name: "skills", type: "text", nullable: true })
|
|
1549
1598
|
], CompanyProfile.prototype, "skills", 2);
|
|
1550
1599
|
__decorateClass([
|
|
1551
|
-
(0,
|
|
1600
|
+
(0, import_typeorm16.Column)({ name: "required_freelancer", type: "varchar", nullable: true })
|
|
1552
1601
|
], CompanyProfile.prototype, "requiredFreelancer", 2);
|
|
1553
1602
|
__decorateClass([
|
|
1554
|
-
(0,
|
|
1603
|
+
(0, import_typeorm16.Column)({
|
|
1555
1604
|
name: "kind_of_hiring",
|
|
1556
1605
|
type: "enum",
|
|
1557
1606
|
enum: KindOfHire,
|
|
@@ -1559,7 +1608,7 @@ __decorateClass([
|
|
|
1559
1608
|
})
|
|
1560
1609
|
], CompanyProfile.prototype, "kindOfHiring", 2);
|
|
1561
1610
|
__decorateClass([
|
|
1562
|
-
(0,
|
|
1611
|
+
(0, import_typeorm16.Column)({
|
|
1563
1612
|
name: "mode_of_hire",
|
|
1564
1613
|
type: "enum",
|
|
1565
1614
|
enum: ModeOfHire,
|
|
@@ -1567,7 +1616,7 @@ __decorateClass([
|
|
|
1567
1616
|
})
|
|
1568
1617
|
], CompanyProfile.prototype, "modeOfHire", 2);
|
|
1569
1618
|
__decorateClass([
|
|
1570
|
-
(0,
|
|
1619
|
+
(0, import_typeorm16.Column)({
|
|
1571
1620
|
name: "found_us_on",
|
|
1572
1621
|
type: "enum",
|
|
1573
1622
|
enum: FromUsOn,
|
|
@@ -1575,7 +1624,7 @@ __decorateClass([
|
|
|
1575
1624
|
})
|
|
1576
1625
|
], CompanyProfile.prototype, "foundUsOn", 2);
|
|
1577
1626
|
CompanyProfile = __decorateClass([
|
|
1578
|
-
(0,
|
|
1627
|
+
(0, import_typeorm16.Entity)("company_profiles")
|
|
1579
1628
|
], CompanyProfile);
|
|
1580
1629
|
|
|
1581
1630
|
// src/modules/user/client-profile/dto/update-client-profile.dto.ts
|
|
@@ -2103,6 +2152,72 @@ __decorateClass([
|
|
|
2103
2152
|
(0, import_class_validator32.IsBoolean)()
|
|
2104
2153
|
], ToggleCompanyRoleVisibilityDto.prototype, "isActive", 2);
|
|
2105
2154
|
|
|
2155
|
+
// src/modules/user/freelancer-experience/pattern/pattern.ts
|
|
2156
|
+
var FREELANCER_EXPERIENCE_PATTERN = {
|
|
2157
|
+
fetchFreelancerExperience: "fetch.freelancer.experience",
|
|
2158
|
+
createFreelancerExperience: "create.freelancer.experience",
|
|
2159
|
+
updateFreelancerExperience: "update.freelancer.experience"
|
|
2160
|
+
};
|
|
2161
|
+
|
|
2162
|
+
// src/modules/user/freelancer-experience/dto/create-freelancer-experience.dto.ts
|
|
2163
|
+
var import_class_validator33 = require("class-validator");
|
|
2164
|
+
var import_class_transformer2 = require("class-transformer");
|
|
2165
|
+
var CreateExperienceDto = class {
|
|
2166
|
+
};
|
|
2167
|
+
__decorateClass([
|
|
2168
|
+
(0, import_class_validator33.IsString)(),
|
|
2169
|
+
(0, import_class_validator33.IsNotEmpty)()
|
|
2170
|
+
], CreateExperienceDto.prototype, "company", 2);
|
|
2171
|
+
__decorateClass([
|
|
2172
|
+
(0, import_class_validator33.IsString)(),
|
|
2173
|
+
(0, import_class_validator33.IsNotEmpty)()
|
|
2174
|
+
], CreateExperienceDto.prototype, "designation", 2);
|
|
2175
|
+
__decorateClass([
|
|
2176
|
+
(0, import_class_validator33.IsString)(),
|
|
2177
|
+
(0, import_class_validator33.IsNotEmpty)()
|
|
2178
|
+
], CreateExperienceDto.prototype, "duration", 2);
|
|
2179
|
+
__decorateClass([
|
|
2180
|
+
(0, import_class_validator33.IsString)()
|
|
2181
|
+
], CreateExperienceDto.prototype, "description", 2);
|
|
2182
|
+
var CreateFreelancerExperienceDto = class {
|
|
2183
|
+
};
|
|
2184
|
+
__decorateClass([
|
|
2185
|
+
(0, import_class_validator33.IsArray)(),
|
|
2186
|
+
(0, import_class_validator33.ValidateNested)({ each: true }),
|
|
2187
|
+
(0, import_class_transformer2.Type)(() => CreateExperienceDto)
|
|
2188
|
+
], CreateFreelancerExperienceDto.prototype, "experience", 2);
|
|
2189
|
+
|
|
2190
|
+
// src/modules/user/freelancer-experience/dto/update-freelancer-experience.dto.ts
|
|
2191
|
+
var import_class_validator34 = require("class-validator");
|
|
2192
|
+
var import_class_transformer3 = require("class-transformer");
|
|
2193
|
+
var UpdateExperienceDto = class {
|
|
2194
|
+
};
|
|
2195
|
+
__decorateClass([
|
|
2196
|
+
(0, import_class_validator34.IsOptional)()
|
|
2197
|
+
], UpdateExperienceDto.prototype, "id", 2);
|
|
2198
|
+
__decorateClass([
|
|
2199
|
+
(0, import_class_validator34.IsNotEmpty)(),
|
|
2200
|
+
(0, import_class_validator34.IsString)()
|
|
2201
|
+
], UpdateExperienceDto.prototype, "company", 2);
|
|
2202
|
+
__decorateClass([
|
|
2203
|
+
(0, import_class_validator34.IsNotEmpty)(),
|
|
2204
|
+
(0, import_class_validator34.IsString)()
|
|
2205
|
+
], UpdateExperienceDto.prototype, "designation", 2);
|
|
2206
|
+
__decorateClass([
|
|
2207
|
+
(0, import_class_validator34.IsNotEmpty)(),
|
|
2208
|
+
(0, import_class_validator34.IsString)()
|
|
2209
|
+
], UpdateExperienceDto.prototype, "duration", 2);
|
|
2210
|
+
__decorateClass([
|
|
2211
|
+
(0, import_class_validator34.IsString)()
|
|
2212
|
+
], UpdateExperienceDto.prototype, "description", 2);
|
|
2213
|
+
var UpdateFreelancerExperienceDto = class {
|
|
2214
|
+
};
|
|
2215
|
+
__decorateClass([
|
|
2216
|
+
(0, import_class_validator34.IsArray)(),
|
|
2217
|
+
(0, import_class_validator34.ValidateNested)({ each: true }),
|
|
2218
|
+
(0, import_class_transformer3.Type)(() => UpdateExperienceDto)
|
|
2219
|
+
], UpdateFreelancerExperienceDto.prototype, "experience", 2);
|
|
2220
|
+
|
|
2106
2221
|
// src/adapters/tcp/user.tcp.adapter.ts
|
|
2107
2222
|
var import_dotenv = require("dotenv");
|
|
2108
2223
|
var import_microservices = require("@nestjs/microservices");
|
|
@@ -2320,7 +2435,7 @@ var NotificationRMQAdapter = (mode = "microservice") => {
|
|
|
2320
2435
|
};
|
|
2321
2436
|
|
|
2322
2437
|
// src/entities/question.entity.ts
|
|
2323
|
-
var
|
|
2438
|
+
var import_typeorm17 = require("typeorm");
|
|
2324
2439
|
var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
2325
2440
|
QuestionFor2["CLIENT"] = "CLIENT";
|
|
2326
2441
|
QuestionFor2["FREELANCER"] = "FREELANCER";
|
|
@@ -2329,16 +2444,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
|
2329
2444
|
var Question = class extends BaseEntity {
|
|
2330
2445
|
};
|
|
2331
2446
|
__decorateClass([
|
|
2332
|
-
(0,
|
|
2447
|
+
(0, import_typeorm17.Column)({ name: "question", type: "varchar" })
|
|
2333
2448
|
], Question.prototype, "question", 2);
|
|
2334
2449
|
__decorateClass([
|
|
2335
|
-
(0,
|
|
2450
|
+
(0, import_typeorm17.Column)({ name: "hint", type: "varchar", nullable: true })
|
|
2336
2451
|
], Question.prototype, "hint", 2);
|
|
2337
2452
|
__decorateClass([
|
|
2338
|
-
(0,
|
|
2453
|
+
(0, import_typeorm17.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
2339
2454
|
], Question.prototype, "slug", 2);
|
|
2340
2455
|
__decorateClass([
|
|
2341
|
-
(0,
|
|
2456
|
+
(0, import_typeorm17.Column)({
|
|
2342
2457
|
name: "question_for",
|
|
2343
2458
|
type: "enum",
|
|
2344
2459
|
enum: QuestionFor,
|
|
@@ -2346,76 +2461,76 @@ __decorateClass([
|
|
|
2346
2461
|
})
|
|
2347
2462
|
], Question.prototype, "questionFor", 2);
|
|
2348
2463
|
__decorateClass([
|
|
2349
|
-
(0,
|
|
2464
|
+
(0, import_typeorm17.Column)({ name: "type", type: "varchar", nullable: true })
|
|
2350
2465
|
], Question.prototype, "type", 2);
|
|
2351
2466
|
__decorateClass([
|
|
2352
|
-
(0,
|
|
2467
|
+
(0, import_typeorm17.Column)({ name: "options", type: "jsonb", nullable: true })
|
|
2353
2468
|
], Question.prototype, "options", 2);
|
|
2354
2469
|
__decorateClass([
|
|
2355
|
-
(0,
|
|
2470
|
+
(0, import_typeorm17.Column)({ name: "is_active", type: "boolean", default: false })
|
|
2356
2471
|
], Question.prototype, "isActive", 2);
|
|
2357
2472
|
Question = __decorateClass([
|
|
2358
|
-
(0,
|
|
2473
|
+
(0, import_typeorm17.Entity)("questions")
|
|
2359
2474
|
], Question);
|
|
2360
2475
|
|
|
2361
2476
|
// src/entities/job-role.entity.ts
|
|
2362
|
-
var
|
|
2477
|
+
var import_typeorm18 = require("typeorm");
|
|
2363
2478
|
var JobRoles = class extends BaseEntity {
|
|
2364
2479
|
};
|
|
2365
2480
|
__decorateClass([
|
|
2366
|
-
(0,
|
|
2481
|
+
(0, import_typeorm18.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
2367
2482
|
], JobRoles.prototype, "slug", 2);
|
|
2368
2483
|
__decorateClass([
|
|
2369
|
-
(0,
|
|
2484
|
+
(0, import_typeorm18.Column)({ name: "name", type: "varchar", nullable: true })
|
|
2370
2485
|
], JobRoles.prototype, "name", 2);
|
|
2371
2486
|
__decorateClass([
|
|
2372
|
-
(0,
|
|
2487
|
+
(0, import_typeorm18.Column)({ name: "is_active", type: "boolean", default: true })
|
|
2373
2488
|
], JobRoles.prototype, "isActive", 2);
|
|
2374
2489
|
JobRoles = __decorateClass([
|
|
2375
|
-
(0,
|
|
2490
|
+
(0, import_typeorm18.Entity)("job_roles")
|
|
2376
2491
|
], JobRoles);
|
|
2377
2492
|
|
|
2378
2493
|
// src/entities/plan.entity.ts
|
|
2379
|
-
var
|
|
2494
|
+
var import_typeorm20 = require("typeorm");
|
|
2380
2495
|
|
|
2381
2496
|
// src/entities/feature.entity.ts
|
|
2382
|
-
var
|
|
2497
|
+
var import_typeorm19 = require("typeorm");
|
|
2383
2498
|
var Feature = class extends BaseEntity {
|
|
2384
2499
|
};
|
|
2385
2500
|
__decorateClass([
|
|
2386
|
-
(0,
|
|
2501
|
+
(0, import_typeorm19.Column)({ name: "name", type: "varchar", unique: true })
|
|
2387
2502
|
], Feature.prototype, "name", 2);
|
|
2388
2503
|
__decorateClass([
|
|
2389
|
-
(0,
|
|
2504
|
+
(0, import_typeorm19.ManyToMany)(() => Plan, (plan) => plan.features)
|
|
2390
2505
|
], Feature.prototype, "plans", 2);
|
|
2391
2506
|
Feature = __decorateClass([
|
|
2392
|
-
(0,
|
|
2507
|
+
(0, import_typeorm19.Entity)("features")
|
|
2393
2508
|
], Feature);
|
|
2394
2509
|
|
|
2395
2510
|
// src/entities/plan.entity.ts
|
|
2396
2511
|
var Plan = class extends BaseEntity {
|
|
2397
2512
|
};
|
|
2398
2513
|
__decorateClass([
|
|
2399
|
-
(0,
|
|
2514
|
+
(0, import_typeorm20.Column)({ name: "name", type: "varchar", unique: true })
|
|
2400
2515
|
], Plan.prototype, "name", 2);
|
|
2401
2516
|
__decorateClass([
|
|
2402
|
-
(0,
|
|
2517
|
+
(0, import_typeorm20.Column)({ name: "description", type: "varchar", nullable: true })
|
|
2403
2518
|
], Plan.prototype, "description", 2);
|
|
2404
2519
|
__decorateClass([
|
|
2405
|
-
(0,
|
|
2520
|
+
(0, import_typeorm20.Column)({ name: "price", type: "decimal", precision: 10, scale: 2 })
|
|
2406
2521
|
], Plan.prototype, "price", 2);
|
|
2407
2522
|
__decorateClass([
|
|
2408
|
-
(0,
|
|
2523
|
+
(0, import_typeorm20.Column)({ name: "billing_period", type: "varchar" })
|
|
2409
2524
|
], Plan.prototype, "billingPeriod", 2);
|
|
2410
2525
|
__decorateClass([
|
|
2411
|
-
(0,
|
|
2526
|
+
(0, import_typeorm20.Column)({ name: "is_current", type: "boolean", default: false })
|
|
2412
2527
|
], Plan.prototype, "isCurrent", 2);
|
|
2413
2528
|
__decorateClass([
|
|
2414
|
-
(0,
|
|
2415
|
-
(0,
|
|
2529
|
+
(0, import_typeorm20.ManyToMany)(() => Feature, (feature) => feature.plans, { cascade: true }),
|
|
2530
|
+
(0, import_typeorm20.JoinTable)()
|
|
2416
2531
|
], Plan.prototype, "features", 2);
|
|
2417
2532
|
Plan = __decorateClass([
|
|
2418
|
-
(0,
|
|
2533
|
+
(0, import_typeorm20.Entity)("plans")
|
|
2419
2534
|
], Plan);
|
|
2420
2535
|
// Annotate the CommonJS export names for ESM import in node:
|
|
2421
2536
|
0 && (module.exports = {
|
|
@@ -2437,17 +2552,21 @@ Plan = __decorateClass([
|
|
|
2437
2552
|
CompanyProfile,
|
|
2438
2553
|
CompanyRole,
|
|
2439
2554
|
CreateCompanyRoleDto,
|
|
2555
|
+
CreateExperienceDto,
|
|
2556
|
+
CreateFreelancerExperienceDto,
|
|
2440
2557
|
CreateQuestionDto,
|
|
2441
2558
|
CreateRatingDto,
|
|
2442
2559
|
CreateSubAdminDto,
|
|
2443
2560
|
DurationTypeEnum,
|
|
2444
2561
|
EmploymentType,
|
|
2562
|
+
FREELANCER_EXPERIENCE_PATTERN,
|
|
2445
2563
|
Feature,
|
|
2446
2564
|
ForgotPasswordDto,
|
|
2447
2565
|
FreelancerBankDetailsDto,
|
|
2448
2566
|
FreelancerChangePasswordDto,
|
|
2449
2567
|
FreelancerCreateAccountDto,
|
|
2450
2568
|
FreelancerDevelopmentPreferenceDto,
|
|
2569
|
+
FreelancerExperience,
|
|
2451
2570
|
FreelancerProfile,
|
|
2452
2571
|
FreelancerProfileQuestionDto,
|
|
2453
2572
|
FreelancerUploadResumeDto,
|
|
@@ -2511,6 +2630,8 @@ Plan = __decorateClass([
|
|
|
2511
2630
|
TypeOfEmploymentEnum,
|
|
2512
2631
|
UpdateCompanyProfileDto,
|
|
2513
2632
|
UpdateCompanyRoleDto,
|
|
2633
|
+
UpdateExperienceDto,
|
|
2634
|
+
UpdateFreelancerExperienceDto,
|
|
2514
2635
|
UpdateFreelancerProfileDto,
|
|
2515
2636
|
UpdateSubAdminAccountStatusDto,
|
|
2516
2637
|
UpdateSubAdminDto,
|