@experts_hub/shared 1.0.187 → 1.0.189

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.
@@ -41,5 +41,5 @@ export declare class FreelancerProfile extends BaseEntity {
41
41
  countryId: number;
42
42
  address: string;
43
43
  about: string;
44
- profileCompletedPercentage: number;
44
+ profileCompletedPercentage: Record<string, number>;
45
45
  }
package/dist/index.d.mts CHANGED
@@ -634,7 +634,7 @@ declare class FreelancerProfile extends BaseEntity {
634
634
  countryId: number;
635
635
  address: string;
636
636
  about: string;
637
- profileCompletedPercentage: number;
637
+ profileCompletedPercentage: Record<string, number>;
638
638
  }
639
639
 
640
640
  declare enum KindOfHire {
package/dist/index.d.ts CHANGED
@@ -634,7 +634,7 @@ declare class FreelancerProfile extends BaseEntity {
634
634
  countryId: number;
635
635
  address: string;
636
636
  about: string;
637
- profileCompletedPercentage: number;
637
+ profileCompletedPercentage: Record<string, number>;
638
638
  }
639
639
 
640
640
  declare enum KindOfHire {
package/dist/index.js CHANGED
@@ -1422,7 +1422,7 @@ __decorateClass([
1422
1422
  (0, import_typeorm5.Column)({ name: "about", type: "varchar", nullable: true })
1423
1423
  ], FreelancerProfile.prototype, "about", 2);
1424
1424
  __decorateClass([
1425
- (0, import_typeorm5.Column)({ name: "profile_completed_percentage", type: "integer", default: 0 })
1425
+ (0, import_typeorm5.Column)({ name: "profile_completed_percentage", type: "json", default: { about: 0, skills: 0, project: 0, experience: 0, education: 0, declaration: 0 } })
1426
1426
  ], FreelancerProfile.prototype, "profileCompletedPercentage", 2);
1427
1427
  FreelancerProfile = __decorateClass([
1428
1428
  (0, import_typeorm5.Entity)("freelancer_profiles")
@@ -2574,10 +2574,7 @@ __decorateClass([
2574
2574
  (0, import_typeorm28.OneToMany)(() => SenseloafLog, (senseloafLog) => senseloafLog.user)
2575
2575
  ], User.prototype, "senseloafLogs", 2);
2576
2576
  __decorateClass([
2577
- (0, import_typeorm28.OneToOne)(
2578
- () => FreelancerProfile,
2579
- (freelancerProfile) => freelancerProfile.user
2580
- )
2577
+ (0, import_typeorm28.OneToOne)(() => FreelancerProfile, (freelancerProfile) => freelancerProfile.user, { cascade: true })
2581
2578
  ], User.prototype, "freelancerProfile", 2);
2582
2579
  __decorateClass([
2583
2580
  (0, import_typeorm28.OneToOne)(() => CompanyProfile, (companyProfile) => companyProfile.user, {
package/dist/index.mjs CHANGED
@@ -1393,7 +1393,7 @@ __decorateClass([
1393
1393
  Column5({ name: "about", type: "varchar", nullable: true })
1394
1394
  ], FreelancerProfile.prototype, "about", 2);
1395
1395
  __decorateClass([
1396
- Column5({ name: "profile_completed_percentage", type: "integer", default: 0 })
1396
+ Column5({ name: "profile_completed_percentage", type: "json", default: { about: 0, skills: 0, project: 0, experience: 0, education: 0, declaration: 0 } })
1397
1397
  ], FreelancerProfile.prototype, "profileCompletedPercentage", 2);
1398
1398
  FreelancerProfile = __decorateClass([
1399
1399
  Entity4("freelancer_profiles")
@@ -2650,10 +2650,7 @@ __decorateClass([
2650
2650
  OneToMany8(() => SenseloafLog, (senseloafLog) => senseloafLog.user)
2651
2651
  ], User.prototype, "senseloafLogs", 2);
2652
2652
  __decorateClass([
2653
- OneToOne(
2654
- () => FreelancerProfile,
2655
- (freelancerProfile) => freelancerProfile.user
2656
- )
2653
+ OneToOne(() => FreelancerProfile, (freelancerProfile) => freelancerProfile.user, { cascade: true })
2657
2654
  ], User.prototype, "freelancerProfile", 2);
2658
2655
  __decorateClass([
2659
2656
  OneToOne(() => CompanyProfile, (companyProfile) => companyProfile.user, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@experts_hub/shared",
3
- "version": "1.0.187",
3
+ "version": "1.0.189",
4
4
  "description": "Shared DTOs, interfaces, and utilities for experts hub applications",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",