@experts_hub/shared 1.0.127 → 1.0.129

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -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 import_typeorm15 = require("typeorm");
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 import_typeorm14 = require("typeorm");
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,51 +1386,51 @@ var Provider = /* @__PURE__ */ ((Provider2) => {
1351
1386
  var User = class extends BaseEntity {
1352
1387
  };
1353
1388
  __decorateClass([
1354
- (0, import_typeorm14.Column)({ name: "unique_id", type: "varchar", unique: true })
1389
+ (0, import_typeorm15.Column)({ name: "unique_id", type: "varchar", unique: true })
1355
1390
  ], User.prototype, "uniqueId", 2);
1356
1391
  __decorateClass([
1357
- (0, import_typeorm14.Column)({ name: "parent_id", type: "integer", nullable: true }),
1358
- (0, import_typeorm14.Index)()
1392
+ (0, import_typeorm15.Column)({ name: "parent_id", type: "integer", nullable: true }),
1393
+ (0, import_typeorm15.Index)()
1359
1394
  ], User.prototype, "parentId", 2);
1360
1395
  __decorateClass([
1361
- (0, import_typeorm14.ManyToOne)(() => User, (user) => user.children, { nullable: true }),
1362
- (0, import_typeorm14.JoinColumn)({ name: "parent_id" })
1396
+ (0, import_typeorm15.ManyToOne)(() => User, (user) => user.children, { nullable: true }),
1397
+ (0, import_typeorm15.JoinColumn)({ name: "parent_id" })
1363
1398
  ], User.prototype, "parent", 2);
1364
1399
  __decorateClass([
1365
- (0, import_typeorm14.OneToMany)(() => User, (user) => user.parent)
1400
+ (0, import_typeorm15.OneToMany)(() => User, (user) => user.parent)
1366
1401
  ], User.prototype, "children", 2);
1367
1402
  __decorateClass([
1368
- (0, import_typeorm14.Column)({ name: "username", type: "varchar", unique: true, nullable: true })
1403
+ (0, import_typeorm15.Column)({ name: "username", type: "varchar", unique: true, nullable: true })
1369
1404
  ], User.prototype, "username", 2);
1370
1405
  __decorateClass([
1371
- (0, import_typeorm14.Column)({ name: "first_name", type: "varchar", length: 100, nullable: true })
1406
+ (0, import_typeorm15.Column)({ name: "first_name", type: "varchar", length: 100, nullable: true })
1372
1407
  ], User.prototype, "firstName", 2);
1373
1408
  __decorateClass([
1374
- (0, import_typeorm14.Column)({ name: "last_name", type: "varchar", length: 100, nullable: true })
1409
+ (0, import_typeorm15.Column)({ name: "last_name", type: "varchar", length: 100, nullable: true })
1375
1410
  ], User.prototype, "lastName", 2);
1376
1411
  __decorateClass([
1377
- (0, import_typeorm14.Column)({ name: "date_of_birth", type: "date", nullable: true })
1412
+ (0, import_typeorm15.Column)({ name: "date_of_birth", type: "date", nullable: true })
1378
1413
  ], User.prototype, "dateOfBirth", 2);
1379
1414
  __decorateClass([
1380
- (0, import_typeorm14.Column)({ name: "gender", type: "varchar", length: 10, nullable: true })
1415
+ (0, import_typeorm15.Column)({ name: "gender", type: "varchar", length: 10, nullable: true })
1381
1416
  ], User.prototype, "gender", 2);
1382
1417
  __decorateClass([
1383
- (0, import_typeorm14.Column)({ name: "profile_picture_url", type: "text", nullable: true })
1418
+ (0, import_typeorm15.Column)({ name: "profile_picture_url", type: "text", nullable: true })
1384
1419
  ], User.prototype, "profilePictureUrl", 2);
1385
1420
  __decorateClass([
1386
- (0, import_typeorm14.Column)({ name: "email", type: "varchar", unique: true })
1421
+ (0, import_typeorm15.Column)({ name: "email", type: "varchar", unique: true })
1387
1422
  ], User.prototype, "email", 2);
1388
1423
  __decorateClass([
1389
- (0, import_typeorm14.Column)({ name: "mobile_code", type: "varchar", nullable: true })
1424
+ (0, import_typeorm15.Column)({ name: "mobile_code", type: "varchar", nullable: true })
1390
1425
  ], User.prototype, "mobileCode", 2);
1391
1426
  __decorateClass([
1392
- (0, import_typeorm14.Column)({ name: "mobile", type: "varchar", unique: true, nullable: true })
1427
+ (0, import_typeorm15.Column)({ name: "mobile", type: "varchar", unique: true, nullable: true })
1393
1428
  ], User.prototype, "mobile", 2);
1394
1429
  __decorateClass([
1395
- (0, import_typeorm14.Column)({ name: "password", type: "varchar" })
1430
+ (0, import_typeorm15.Column)({ name: "password", type: "varchar" })
1396
1431
  ], User.prototype, "password", 2);
1397
1432
  __decorateClass([
1398
- (0, import_typeorm14.Column)({
1433
+ (0, import_typeorm15.Column)({
1399
1434
  name: "account_type",
1400
1435
  type: "enum",
1401
1436
  enum: AccountType,
@@ -1403,7 +1438,7 @@ __decorateClass([
1403
1438
  })
1404
1439
  ], User.prototype, "accountType", 2);
1405
1440
  __decorateClass([
1406
- (0, import_typeorm14.Column)({
1441
+ (0, import_typeorm15.Column)({
1407
1442
  name: "account_status",
1408
1443
  type: "enum",
1409
1444
  enum: AccountStatus,
@@ -1411,36 +1446,36 @@ __decorateClass([
1411
1446
  })
1412
1447
  ], User.prototype, "accountStatus", 2);
1413
1448
  __decorateClass([
1414
- (0, import_typeorm14.Column)({ name: "is_email_verified", type: "boolean", default: false })
1449
+ (0, import_typeorm15.Column)({ name: "is_email_verified", type: "boolean", default: false })
1415
1450
  ], User.prototype, "isEmailVerified", 2);
1416
1451
  __decorateClass([
1417
- (0, import_typeorm14.Column)({ name: "is_mobile_verified", type: "boolean", default: false })
1452
+ (0, import_typeorm15.Column)({ name: "is_mobile_verified", type: "boolean", default: false })
1418
1453
  ], User.prototype, "isMobileVerified", 2);
1419
1454
  __decorateClass([
1420
- (0, import_typeorm14.Column)({
1455
+ (0, import_typeorm15.Column)({
1421
1456
  name: "last_login_at",
1422
1457
  type: "timestamp with time zone",
1423
1458
  nullable: true
1424
1459
  })
1425
1460
  ], User.prototype, "lastLoginAt", 2);
1426
1461
  __decorateClass([
1427
- (0, import_typeorm14.Column)({ name: "last_login_ip", type: "varchar", nullable: true })
1462
+ (0, import_typeorm15.Column)({ name: "last_login_ip", type: "varchar", nullable: true })
1428
1463
  ], User.prototype, "lastLoginIp", 2);
1429
1464
  __decorateClass([
1430
- (0, import_typeorm14.Column)({ name: "reset_token", type: "varchar", nullable: true })
1465
+ (0, import_typeorm15.Column)({ name: "reset_token", type: "varchar", nullable: true })
1431
1466
  ], User.prototype, "resetToken", 2);
1432
1467
  __decorateClass([
1433
- (0, import_typeorm14.Column)({
1468
+ (0, import_typeorm15.Column)({
1434
1469
  name: "reset_token_expire_at",
1435
1470
  type: "timestamp with time zone",
1436
1471
  nullable: true
1437
1472
  })
1438
1473
  ], User.prototype, "resetTokenExpireAt", 2);
1439
1474
  __decorateClass([
1440
- (0, import_typeorm14.OneToMany)(() => RefreshToken, (token) => token.user)
1475
+ (0, import_typeorm15.OneToMany)(() => RefreshToken, (token) => token.user)
1441
1476
  ], User.prototype, "refreshTokens", 2);
1442
1477
  __decorateClass([
1443
- (0, import_typeorm14.Column)({
1478
+ (0, import_typeorm15.Column)({
1444
1479
  name: "provider",
1445
1480
  type: "enum",
1446
1481
  enum: Provider,
@@ -1449,58 +1484,61 @@ __decorateClass([
1449
1484
  })
1450
1485
  ], User.prototype, "provider", 2);
1451
1486
  __decorateClass([
1452
- (0, import_typeorm14.Column)({ name: "provider_token", type: "varchar", nullable: true })
1487
+ (0, import_typeorm15.Column)({ name: "provider_token", type: "varchar", nullable: true })
1453
1488
  ], User.prototype, "providerToken", 2);
1454
1489
  __decorateClass([
1455
- (0, import_typeorm14.Column)({ name: "linkedin_id", type: "varchar", nullable: true })
1490
+ (0, import_typeorm15.Column)({ name: "linkedin_id", type: "varchar", nullable: true })
1456
1491
  ], User.prototype, "linkedInId", 2);
1457
1492
  __decorateClass([
1458
- (0, import_typeorm14.Column)({ name: "google_id", type: "varchar", nullable: true })
1493
+ (0, import_typeorm15.Column)({ name: "google_id", type: "varchar", nullable: true })
1459
1494
  ], User.prototype, "googleId", 2);
1460
1495
  __decorateClass([
1461
- (0, import_typeorm14.Column)({ name: "gitlabs_id", type: "varchar", nullable: true })
1496
+ (0, import_typeorm15.Column)({ name: "gitlabs_id", type: "varchar", nullable: true })
1462
1497
  ], User.prototype, "gitLabsId", 2);
1463
1498
  __decorateClass([
1464
- (0, import_typeorm14.OneToMany)(() => Otp, (otp) => otp.user)
1499
+ (0, import_typeorm15.OneToMany)(() => Otp, (otp) => otp.user)
1465
1500
  ], User.prototype, "otps", 2);
1466
1501
  __decorateClass([
1467
- (0, import_typeorm14.OneToMany)(() => ResumeParserLog, (resumeParser) => resumeParser.user)
1502
+ (0, import_typeorm15.OneToMany)(() => ResumeParserLog, (resumeParser) => resumeParser.user)
1468
1503
  ], User.prototype, "resumeParserLogs", 2);
1469
1504
  __decorateClass([
1470
- (0, import_typeorm14.OneToOne)(
1505
+ (0, import_typeorm15.OneToOne)(
1471
1506
  () => FreelancerProfile,
1472
1507
  (freelancerProfile) => freelancerProfile.user
1473
1508
  )
1474
1509
  ], User.prototype, "freelancerProfile", 2);
1475
1510
  __decorateClass([
1476
- (0, import_typeorm14.OneToOne)(() => CompanyProfile, (companyProfile) => companyProfile.user)
1511
+ (0, import_typeorm15.OneToOne)(() => CompanyProfile, (companyProfile) => companyProfile.user)
1477
1512
  ], User.prototype, "companyProfile", 2);
1478
1513
  __decorateClass([
1479
- (0, import_typeorm14.OneToMany)(() => Job, (job) => job.user)
1514
+ (0, import_typeorm15.OneToMany)(() => Job, (job) => job.user)
1480
1515
  ], User.prototype, "jobs", 2);
1481
1516
  __decorateClass([
1482
- (0, import_typeorm14.OneToMany)(() => BankDetail, (bankDetail) => bankDetail.user)
1517
+ (0, import_typeorm15.OneToMany)(() => BankDetail, (bankDetail) => bankDetail.user)
1483
1518
  ], User.prototype, "bankDetail", 2);
1484
1519
  __decorateClass([
1485
- (0, import_typeorm14.OneToMany)(
1520
+ (0, import_typeorm15.OneToMany)(
1486
1521
  () => SystemPreference,
1487
1522
  (systemPreference) => systemPreference.user
1488
1523
  )
1489
1524
  ], User.prototype, "systemPreference", 2);
1490
1525
  __decorateClass([
1491
- (0, import_typeorm14.OneToMany)(() => Rating, (rating) => rating.reviewer)
1526
+ (0, import_typeorm15.OneToMany)(() => Rating, (rating) => rating.reviewer)
1492
1527
  ], User.prototype, "givenRatings", 2);
1493
1528
  __decorateClass([
1494
- (0, import_typeorm14.OneToMany)(() => Rating, (rating) => rating.reviewee)
1529
+ (0, import_typeorm15.OneToMany)(() => Rating, (rating) => rating.reviewee)
1495
1530
  ], User.prototype, "receivedRatings", 2);
1496
1531
  __decorateClass([
1497
- (0, import_typeorm14.OneToMany)(() => JobApplication, (jobApplication) => jobApplication.user)
1532
+ (0, import_typeorm15.OneToMany)(() => JobApplication, (jobApplication) => jobApplication.user)
1498
1533
  ], User.prototype, "jobApplications", 2);
1499
1534
  __decorateClass([
1500
- (0, import_typeorm14.OneToMany)(() => CompanyRole, (companyRole) => companyRole.user)
1535
+ (0, import_typeorm15.OneToMany)(() => CompanyRole, (companyRole) => companyRole.user)
1501
1536
  ], User.prototype, "companyRole", 2);
1537
+ __decorateClass([
1538
+ (0, import_typeorm15.OneToOne)(() => FreelancerExperience, (freelancerExperience) => freelancerExperience.user)
1539
+ ], User.prototype, "freelancerExperience", 2);
1502
1540
  User = __decorateClass([
1503
- (0, import_typeorm14.Entity)("users")
1541
+ (0, import_typeorm15.Entity)("users")
1504
1542
  ], User);
1505
1543
 
1506
1544
  // src/entities/company-profile.entity.ts
@@ -1527,42 +1565,42 @@ var CompanyProfile = class extends BaseEntity {
1527
1565
  };
1528
1566
  // individual index to find company profile by user
1529
1567
  __decorateClass([
1530
- (0, import_typeorm15.Column)({ name: "user_id", type: "integer", nullable: true }),
1531
- (0, import_typeorm15.Index)()
1568
+ (0, import_typeorm16.Column)({ name: "user_id", type: "integer", nullable: true }),
1569
+ (0, import_typeorm16.Index)()
1532
1570
  ], CompanyProfile.prototype, "userId", 2);
1533
1571
  __decorateClass([
1534
- (0, import_typeorm15.ManyToOne)(() => User, (user) => user.otps),
1535
- (0, import_typeorm15.JoinColumn)({ name: "user_id" })
1572
+ (0, import_typeorm16.ManyToOne)(() => User, (user) => user.otps),
1573
+ (0, import_typeorm16.JoinColumn)({ name: "user_id" })
1536
1574
  ], CompanyProfile.prototype, "user", 2);
1537
1575
  __decorateClass([
1538
- (0, import_typeorm15.Column)({ name: "company_name", type: "varchar", nullable: true })
1576
+ (0, import_typeorm16.Column)({ name: "company_name", type: "varchar", nullable: true })
1539
1577
  ], CompanyProfile.prototype, "companyName", 2);
1540
1578
  __decorateClass([
1541
- (0, import_typeorm15.Column)({ name: "bio", type: "varchar", nullable: true })
1579
+ (0, import_typeorm16.Column)({ name: "bio", type: "varchar", nullable: true })
1542
1580
  ], CompanyProfile.prototype, "bio", 2);
1543
1581
  __decorateClass([
1544
- (0, import_typeorm15.Column)({ name: "website", type: "varchar", nullable: true })
1582
+ (0, import_typeorm16.Column)({ name: "website", type: "varchar", nullable: true })
1545
1583
  ], CompanyProfile.prototype, "webSite", 2);
1546
1584
  __decorateClass([
1547
- (0, import_typeorm15.Column)({ name: "about_company", type: "varchar", nullable: true })
1585
+ (0, import_typeorm16.Column)({ name: "about_company", type: "varchar", nullable: true })
1548
1586
  ], CompanyProfile.prototype, "aboutCompany", 2);
1549
1587
  __decorateClass([
1550
- (0, import_typeorm15.Column)({ name: "is_service_aggrement_signed", type: "boolean", default: false })
1588
+ (0, import_typeorm16.Column)({ name: "is_service_aggrement_signed", type: "boolean", default: false })
1551
1589
  ], CompanyProfile.prototype, "isServiceAgreementSigned", 2);
1552
1590
  __decorateClass([
1553
- (0, import_typeorm15.Column)({ name: "company_address", type: "varchar", nullable: true })
1591
+ (0, import_typeorm16.Column)({ name: "company_address", type: "varchar", nullable: true })
1554
1592
  ], CompanyProfile.prototype, "companyAddress", 2);
1555
1593
  __decorateClass([
1556
- (0, import_typeorm15.Column)({ name: "phone_number", type: "varchar", nullable: true })
1594
+ (0, import_typeorm16.Column)({ name: "phone_number", type: "varchar", nullable: true })
1557
1595
  ], CompanyProfile.prototype, "phoneNumber", 2);
1558
1596
  __decorateClass([
1559
- (0, import_typeorm15.Column)({ name: "skills", type: "text", nullable: true })
1597
+ (0, import_typeorm16.Column)({ name: "skills", type: "text", nullable: true })
1560
1598
  ], CompanyProfile.prototype, "skills", 2);
1561
1599
  __decorateClass([
1562
- (0, import_typeorm15.Column)({ name: "required_freelancer", type: "varchar", nullable: true })
1600
+ (0, import_typeorm16.Column)({ name: "required_freelancer", type: "varchar", nullable: true })
1563
1601
  ], CompanyProfile.prototype, "requiredFreelancer", 2);
1564
1602
  __decorateClass([
1565
- (0, import_typeorm15.Column)({
1603
+ (0, import_typeorm16.Column)({
1566
1604
  name: "kind_of_hiring",
1567
1605
  type: "enum",
1568
1606
  enum: KindOfHire,
@@ -1570,7 +1608,7 @@ __decorateClass([
1570
1608
  })
1571
1609
  ], CompanyProfile.prototype, "kindOfHiring", 2);
1572
1610
  __decorateClass([
1573
- (0, import_typeorm15.Column)({
1611
+ (0, import_typeorm16.Column)({
1574
1612
  name: "mode_of_hire",
1575
1613
  type: "enum",
1576
1614
  enum: ModeOfHire,
@@ -1578,7 +1616,7 @@ __decorateClass([
1578
1616
  })
1579
1617
  ], CompanyProfile.prototype, "modeOfHire", 2);
1580
1618
  __decorateClass([
1581
- (0, import_typeorm15.Column)({
1619
+ (0, import_typeorm16.Column)({
1582
1620
  name: "found_us_on",
1583
1621
  type: "enum",
1584
1622
  enum: FromUsOn,
@@ -1586,7 +1624,7 @@ __decorateClass([
1586
1624
  })
1587
1625
  ], CompanyProfile.prototype, "foundUsOn", 2);
1588
1626
  CompanyProfile = __decorateClass([
1589
- (0, import_typeorm15.Entity)("company_profiles")
1627
+ (0, import_typeorm16.Entity)("company_profiles")
1590
1628
  ], CompanyProfile);
1591
1629
 
1592
1630
  // src/modules/user/client-profile/dto/update-client-profile.dto.ts
@@ -2114,6 +2152,72 @@ __decorateClass([
2114
2152
  (0, import_class_validator32.IsBoolean)()
2115
2153
  ], ToggleCompanyRoleVisibilityDto.prototype, "isActive", 2);
2116
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, "companyName", 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, "jobDuration", 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, "companyName", 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, "jobDuration", 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
+
2117
2221
  // src/adapters/tcp/user.tcp.adapter.ts
2118
2222
  var import_dotenv = require("dotenv");
2119
2223
  var import_microservices = require("@nestjs/microservices");
@@ -2331,7 +2435,7 @@ var NotificationRMQAdapter = (mode = "microservice") => {
2331
2435
  };
2332
2436
 
2333
2437
  // src/entities/question.entity.ts
2334
- var import_typeorm16 = require("typeorm");
2438
+ var import_typeorm17 = require("typeorm");
2335
2439
  var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
2336
2440
  QuestionFor2["CLIENT"] = "CLIENT";
2337
2441
  QuestionFor2["FREELANCER"] = "FREELANCER";
@@ -2340,16 +2444,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
2340
2444
  var Question = class extends BaseEntity {
2341
2445
  };
2342
2446
  __decorateClass([
2343
- (0, import_typeorm16.Column)({ name: "question", type: "varchar" })
2447
+ (0, import_typeorm17.Column)({ name: "question", type: "varchar" })
2344
2448
  ], Question.prototype, "question", 2);
2345
2449
  __decorateClass([
2346
- (0, import_typeorm16.Column)({ name: "hint", type: "varchar", nullable: true })
2450
+ (0, import_typeorm17.Column)({ name: "hint", type: "varchar", nullable: true })
2347
2451
  ], Question.prototype, "hint", 2);
2348
2452
  __decorateClass([
2349
- (0, import_typeorm16.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
2453
+ (0, import_typeorm17.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
2350
2454
  ], Question.prototype, "slug", 2);
2351
2455
  __decorateClass([
2352
- (0, import_typeorm16.Column)({
2456
+ (0, import_typeorm17.Column)({
2353
2457
  name: "question_for",
2354
2458
  type: "enum",
2355
2459
  enum: QuestionFor,
@@ -2357,76 +2461,76 @@ __decorateClass([
2357
2461
  })
2358
2462
  ], Question.prototype, "questionFor", 2);
2359
2463
  __decorateClass([
2360
- (0, import_typeorm16.Column)({ name: "type", type: "varchar", nullable: true })
2464
+ (0, import_typeorm17.Column)({ name: "type", type: "varchar", nullable: true })
2361
2465
  ], Question.prototype, "type", 2);
2362
2466
  __decorateClass([
2363
- (0, import_typeorm16.Column)({ name: "options", type: "jsonb", nullable: true })
2467
+ (0, import_typeorm17.Column)({ name: "options", type: "jsonb", nullable: true })
2364
2468
  ], Question.prototype, "options", 2);
2365
2469
  __decorateClass([
2366
- (0, import_typeorm16.Column)({ name: "is_active", type: "boolean", default: false })
2470
+ (0, import_typeorm17.Column)({ name: "is_active", type: "boolean", default: false })
2367
2471
  ], Question.prototype, "isActive", 2);
2368
2472
  Question = __decorateClass([
2369
- (0, import_typeorm16.Entity)("questions")
2473
+ (0, import_typeorm17.Entity)("questions")
2370
2474
  ], Question);
2371
2475
 
2372
2476
  // src/entities/job-role.entity.ts
2373
- var import_typeorm17 = require("typeorm");
2477
+ var import_typeorm18 = require("typeorm");
2374
2478
  var JobRoles = class extends BaseEntity {
2375
2479
  };
2376
2480
  __decorateClass([
2377
- (0, import_typeorm17.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
2481
+ (0, import_typeorm18.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
2378
2482
  ], JobRoles.prototype, "slug", 2);
2379
2483
  __decorateClass([
2380
- (0, import_typeorm17.Column)({ name: "name", type: "varchar", nullable: true })
2484
+ (0, import_typeorm18.Column)({ name: "name", type: "varchar", nullable: true })
2381
2485
  ], JobRoles.prototype, "name", 2);
2382
2486
  __decorateClass([
2383
- (0, import_typeorm17.Column)({ name: "is_active", type: "boolean", default: true })
2487
+ (0, import_typeorm18.Column)({ name: "is_active", type: "boolean", default: true })
2384
2488
  ], JobRoles.prototype, "isActive", 2);
2385
2489
  JobRoles = __decorateClass([
2386
- (0, import_typeorm17.Entity)("job_roles")
2490
+ (0, import_typeorm18.Entity)("job_roles")
2387
2491
  ], JobRoles);
2388
2492
 
2389
2493
  // src/entities/plan.entity.ts
2390
- var import_typeorm19 = require("typeorm");
2494
+ var import_typeorm20 = require("typeorm");
2391
2495
 
2392
2496
  // src/entities/feature.entity.ts
2393
- var import_typeorm18 = require("typeorm");
2497
+ var import_typeorm19 = require("typeorm");
2394
2498
  var Feature = class extends BaseEntity {
2395
2499
  };
2396
2500
  __decorateClass([
2397
- (0, import_typeorm18.Column)({ name: "name", type: "varchar", unique: true })
2501
+ (0, import_typeorm19.Column)({ name: "name", type: "varchar", unique: true })
2398
2502
  ], Feature.prototype, "name", 2);
2399
2503
  __decorateClass([
2400
- (0, import_typeorm18.ManyToMany)(() => Plan, (plan) => plan.features)
2504
+ (0, import_typeorm19.ManyToMany)(() => Plan, (plan) => plan.features)
2401
2505
  ], Feature.prototype, "plans", 2);
2402
2506
  Feature = __decorateClass([
2403
- (0, import_typeorm18.Entity)("features")
2507
+ (0, import_typeorm19.Entity)("features")
2404
2508
  ], Feature);
2405
2509
 
2406
2510
  // src/entities/plan.entity.ts
2407
2511
  var Plan = class extends BaseEntity {
2408
2512
  };
2409
2513
  __decorateClass([
2410
- (0, import_typeorm19.Column)({ name: "name", type: "varchar", unique: true })
2514
+ (0, import_typeorm20.Column)({ name: "name", type: "varchar", unique: true })
2411
2515
  ], Plan.prototype, "name", 2);
2412
2516
  __decorateClass([
2413
- (0, import_typeorm19.Column)({ name: "description", type: "varchar", nullable: true })
2517
+ (0, import_typeorm20.Column)({ name: "description", type: "varchar", nullable: true })
2414
2518
  ], Plan.prototype, "description", 2);
2415
2519
  __decorateClass([
2416
- (0, import_typeorm19.Column)({ name: "price", type: "decimal", precision: 10, scale: 2 })
2520
+ (0, import_typeorm20.Column)({ name: "price", type: "decimal", precision: 10, scale: 2 })
2417
2521
  ], Plan.prototype, "price", 2);
2418
2522
  __decorateClass([
2419
- (0, import_typeorm19.Column)({ name: "billing_period", type: "varchar" })
2523
+ (0, import_typeorm20.Column)({ name: "billing_period", type: "varchar" })
2420
2524
  ], Plan.prototype, "billingPeriod", 2);
2421
2525
  __decorateClass([
2422
- (0, import_typeorm19.Column)({ name: "is_current", type: "boolean", default: false })
2526
+ (0, import_typeorm20.Column)({ name: "is_current", type: "boolean", default: false })
2423
2527
  ], Plan.prototype, "isCurrent", 2);
2424
2528
  __decorateClass([
2425
- (0, import_typeorm19.ManyToMany)(() => Feature, (feature) => feature.plans, { cascade: true }),
2426
- (0, import_typeorm19.JoinTable)()
2529
+ (0, import_typeorm20.ManyToMany)(() => Feature, (feature) => feature.plans, { cascade: true }),
2530
+ (0, import_typeorm20.JoinTable)()
2427
2531
  ], Plan.prototype, "features", 2);
2428
2532
  Plan = __decorateClass([
2429
- (0, import_typeorm19.Entity)("plans")
2533
+ (0, import_typeorm20.Entity)("plans")
2430
2534
  ], Plan);
2431
2535
  // Annotate the CommonJS export names for ESM import in node:
2432
2536
  0 && (module.exports = {
@@ -2448,17 +2552,21 @@ Plan = __decorateClass([
2448
2552
  CompanyProfile,
2449
2553
  CompanyRole,
2450
2554
  CreateCompanyRoleDto,
2555
+ CreateExperienceDto,
2556
+ CreateFreelancerExperienceDto,
2451
2557
  CreateQuestionDto,
2452
2558
  CreateRatingDto,
2453
2559
  CreateSubAdminDto,
2454
2560
  DurationTypeEnum,
2455
2561
  EmploymentType,
2562
+ FREELANCER_EXPERIENCE_PATTERN,
2456
2563
  Feature,
2457
2564
  ForgotPasswordDto,
2458
2565
  FreelancerBankDetailsDto,
2459
2566
  FreelancerChangePasswordDto,
2460
2567
  FreelancerCreateAccountDto,
2461
2568
  FreelancerDevelopmentPreferenceDto,
2569
+ FreelancerExperience,
2462
2570
  FreelancerProfile,
2463
2571
  FreelancerProfileQuestionDto,
2464
2572
  FreelancerUploadResumeDto,
@@ -2522,6 +2630,8 @@ Plan = __decorateClass([
2522
2630
  TypeOfEmploymentEnum,
2523
2631
  UpdateCompanyProfileDto,
2524
2632
  UpdateCompanyRoleDto,
2633
+ UpdateExperienceDto,
2634
+ UpdateFreelancerExperienceDto,
2525
2635
  UpdateFreelancerProfileDto,
2526
2636
  UpdateSubAdminAccountStatusDto,
2527
2637
  UpdateSubAdminDto,