@experts_hub/shared 1.0.604 → 1.0.606

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.
@@ -1,6 +1,7 @@
1
1
  import { BaseEntity } from "./base.entity";
2
2
  import { Job } from "./job.entity";
3
3
  import { User } from "./user.entity";
4
+ import { Contract } from "./contract.entity";
4
5
  export declare enum ContractSummaryStatusEnum {
5
6
  PENDING = "PENDING",
6
7
  ACTIVE = "ACTIVE",
@@ -23,4 +24,5 @@ export declare class ContractSummary extends BaseEntity {
23
24
  isEscrowDeposited: boolean;
24
25
  escrowDepositeAmount: number;
25
26
  status: ContractSummaryStatusEnum;
27
+ contracts: Contract[];
26
28
  }
@@ -2,6 +2,7 @@ import { BaseEntity } from "./base.entity";
2
2
  import { Job } from "./job.entity";
3
3
  import { User } from "./user.entity";
4
4
  import { EscrowWallet } from "./escrow-wallet.entity";
5
+ import { ContractSummary } from "./contract-summary.entity";
5
6
  export declare enum ContractStatusEnum {
6
7
  GENERATED = "GENERATED",
7
8
  DRAFTED = "DRAFTED",
@@ -22,6 +23,8 @@ export declare enum ContractTypeEnum {
22
23
  }
23
24
  export declare class Contract extends BaseEntity {
24
25
  contractUniqueId: string;
26
+ contractSummaryId: number;
27
+ contractSummary: ContractSummary;
25
28
  jobId: number;
26
29
  job: Job;
27
30
  clientId: number;
@@ -18,6 +18,7 @@ import { EscrowWallet } from "./escrow-wallet.entity";
18
18
  import { JobLocation } from "./job-location.entity";
19
19
  import { Hiring } from "./hiring.entity";
20
20
  import { Rating } from "./rating.entity";
21
+ import { ContractSummary } from "./contract-summary.entity";
21
22
  export declare enum JobLocationEnum {
22
23
  ONSITE = "ONSITE",
23
24
  REMOTE = "REMOTE",
@@ -113,6 +114,7 @@ export declare class Job extends BaseEntity {
113
114
  interviews: Interview[];
114
115
  f2fInterviews: F2FInterview[];
115
116
  recommendations: JobRecommendation[];
117
+ contractSummaries: ContractSummary[];
116
118
  contracts: Contract[];
117
119
  hirings: Hiring[];
118
120
  escrowWallets: EscrowWallet[];
@@ -41,6 +41,7 @@ import { AssessmetQuestion } from "./assessment-question.entity";
41
41
  import { Hiring } from "./hiring.entity";
42
42
  import { FreelancerAssessmentRequest } from "./freelancer-assessment-request.entity";
43
43
  import { AiInterviewRescheduleRequest } from "./ai-interview-reschedule-request.entity";
44
+ import { ContractSummary } from "./contract-summary.entity";
44
45
  export declare enum AccountType {
45
46
  SUPER_ADMIN = "SUPER_ADMIN",
46
47
  ADMIN = "ADMIN",
@@ -127,9 +128,11 @@ export declare class User extends BaseEntity {
127
128
  givenRatings: Rating[];
128
129
  receivedRatings: Rating[];
129
130
  adminUserRoles: AdminUserRole[];
131
+ clientContractSummaries: ContractSummary[];
130
132
  clientContracts: Contract[];
131
133
  clientHirings: Hiring[];
132
134
  clientEscrowWallets: EscrowWallet[];
135
+ freelancerContractSummaries: ContractSummary[];
133
136
  freelancerContracts: Contract[];
134
137
  freelancerHirings: Hiring[];
135
138
  freelancerEscrowWallets: EscrowWallet[];
package/dist/index.d.mts CHANGED
@@ -1707,6 +1707,31 @@ declare class EscrowWallet extends BaseEntity {
1707
1707
  escrowWalletTransactions: EscrowWalletTransaction[];
1708
1708
  }
1709
1709
 
1710
+ declare enum ContractSummaryStatusEnum {
1711
+ PENDING = "PENDING",
1712
+ ACTIVE = "ACTIVE",
1713
+ COMPLETED = "COMPLETED"
1714
+ }
1715
+ declare class ContractSummary extends BaseEntity {
1716
+ jobId: number;
1717
+ job: Job;
1718
+ clientId: number;
1719
+ client: User;
1720
+ freelancerId: number;
1721
+ freelancer: User;
1722
+ startDate: Date;
1723
+ endDate: Date;
1724
+ duration: number;
1725
+ contractValue: number;
1726
+ invoicingCycle: string;
1727
+ isMsaSigned: boolean;
1728
+ isSowSigned: boolean;
1729
+ isEscrowDeposited: boolean;
1730
+ escrowDepositeAmount: number;
1731
+ status: ContractSummaryStatusEnum;
1732
+ contracts: Contract[];
1733
+ }
1734
+
1710
1735
  declare enum ContractStatusEnum {
1711
1736
  GENERATED = "GENERATED",
1712
1737
  DRAFTED = "DRAFTED",
@@ -1727,6 +1752,8 @@ declare enum ContractTypeEnum {
1727
1752
  }
1728
1753
  declare class Contract extends BaseEntity {
1729
1754
  contractUniqueId: string;
1755
+ contractSummaryId: number;
1756
+ contractSummary: ContractSummary;
1730
1757
  jobId: number;
1731
1758
  job: Job;
1732
1759
  clientId: number;
@@ -1899,6 +1926,7 @@ declare class Job extends BaseEntity {
1899
1926
  interviews: Interview[];
1900
1927
  f2fInterviews: F2FInterview[];
1901
1928
  recommendations: JobRecommendation[];
1929
+ contractSummaries: ContractSummary[];
1902
1930
  contracts: Contract[];
1903
1931
  hirings: Hiring[];
1904
1932
  escrowWallets: EscrowWallet[];
@@ -2397,9 +2425,11 @@ declare class User extends BaseEntity {
2397
2425
  givenRatings: Rating[];
2398
2426
  receivedRatings: Rating[];
2399
2427
  adminUserRoles: AdminUserRole[];
2428
+ clientContractSummaries: ContractSummary[];
2400
2429
  clientContracts: Contract[];
2401
2430
  clientHirings: Hiring[];
2402
2431
  clientEscrowWallets: EscrowWallet[];
2432
+ freelancerContractSummaries: ContractSummary[];
2403
2433
  freelancerContracts: Contract[];
2404
2434
  freelancerHirings: Hiring[];
2405
2435
  freelancerEscrowWallets: EscrowWallet[];
@@ -4126,30 +4156,6 @@ declare class ZoomMeetingLog extends BaseEntity {
4126
4156
  rawWebhookData: any;
4127
4157
  }
4128
4158
 
4129
- declare enum ContractSummaryStatusEnum {
4130
- PENDING = "PENDING",
4131
- ACTIVE = "ACTIVE",
4132
- COMPLETED = "COMPLETED"
4133
- }
4134
- declare class ContractSummary extends BaseEntity {
4135
- jobId: number;
4136
- job: Job;
4137
- clientId: number;
4138
- client: User;
4139
- freelancerId: number;
4140
- freelancer: User;
4141
- startDate: Date;
4142
- endDate: Date;
4143
- duration: number;
4144
- contractValue: number;
4145
- invoicingCycle: string;
4146
- isMsaSigned: boolean;
4147
- isSowSigned: boolean;
4148
- isEscrowDeposited: boolean;
4149
- escrowDepositeAmount: number;
4150
- status: ContractSummaryStatusEnum;
4151
- }
4152
-
4153
4159
  declare class StripeLog extends BaseEntity {
4154
4160
  stripeEventId: string;
4155
4161
  eventType: string;
package/dist/index.d.ts CHANGED
@@ -1707,6 +1707,31 @@ declare class EscrowWallet extends BaseEntity {
1707
1707
  escrowWalletTransactions: EscrowWalletTransaction[];
1708
1708
  }
1709
1709
 
1710
+ declare enum ContractSummaryStatusEnum {
1711
+ PENDING = "PENDING",
1712
+ ACTIVE = "ACTIVE",
1713
+ COMPLETED = "COMPLETED"
1714
+ }
1715
+ declare class ContractSummary extends BaseEntity {
1716
+ jobId: number;
1717
+ job: Job;
1718
+ clientId: number;
1719
+ client: User;
1720
+ freelancerId: number;
1721
+ freelancer: User;
1722
+ startDate: Date;
1723
+ endDate: Date;
1724
+ duration: number;
1725
+ contractValue: number;
1726
+ invoicingCycle: string;
1727
+ isMsaSigned: boolean;
1728
+ isSowSigned: boolean;
1729
+ isEscrowDeposited: boolean;
1730
+ escrowDepositeAmount: number;
1731
+ status: ContractSummaryStatusEnum;
1732
+ contracts: Contract[];
1733
+ }
1734
+
1710
1735
  declare enum ContractStatusEnum {
1711
1736
  GENERATED = "GENERATED",
1712
1737
  DRAFTED = "DRAFTED",
@@ -1727,6 +1752,8 @@ declare enum ContractTypeEnum {
1727
1752
  }
1728
1753
  declare class Contract extends BaseEntity {
1729
1754
  contractUniqueId: string;
1755
+ contractSummaryId: number;
1756
+ contractSummary: ContractSummary;
1730
1757
  jobId: number;
1731
1758
  job: Job;
1732
1759
  clientId: number;
@@ -1899,6 +1926,7 @@ declare class Job extends BaseEntity {
1899
1926
  interviews: Interview[];
1900
1927
  f2fInterviews: F2FInterview[];
1901
1928
  recommendations: JobRecommendation[];
1929
+ contractSummaries: ContractSummary[];
1902
1930
  contracts: Contract[];
1903
1931
  hirings: Hiring[];
1904
1932
  escrowWallets: EscrowWallet[];
@@ -2397,9 +2425,11 @@ declare class User extends BaseEntity {
2397
2425
  givenRatings: Rating[];
2398
2426
  receivedRatings: Rating[];
2399
2427
  adminUserRoles: AdminUserRole[];
2428
+ clientContractSummaries: ContractSummary[];
2400
2429
  clientContracts: Contract[];
2401
2430
  clientHirings: Hiring[];
2402
2431
  clientEscrowWallets: EscrowWallet[];
2432
+ freelancerContractSummaries: ContractSummary[];
2403
2433
  freelancerContracts: Contract[];
2404
2434
  freelancerHirings: Hiring[];
2405
2435
  freelancerEscrowWallets: EscrowWallet[];
@@ -4126,30 +4156,6 @@ declare class ZoomMeetingLog extends BaseEntity {
4126
4156
  rawWebhookData: any;
4127
4157
  }
4128
4158
 
4129
- declare enum ContractSummaryStatusEnum {
4130
- PENDING = "PENDING",
4131
- ACTIVE = "ACTIVE",
4132
- COMPLETED = "COMPLETED"
4133
- }
4134
- declare class ContractSummary extends BaseEntity {
4135
- jobId: number;
4136
- job: Job;
4137
- clientId: number;
4138
- client: User;
4139
- freelancerId: number;
4140
- freelancer: User;
4141
- startDate: Date;
4142
- endDate: Date;
4143
- duration: number;
4144
- contractValue: number;
4145
- invoicingCycle: string;
4146
- isMsaSigned: boolean;
4147
- isSowSigned: boolean;
4148
- isEscrowDeposited: boolean;
4149
- escrowDepositeAmount: number;
4150
- status: ContractSummaryStatusEnum;
4151
- }
4152
-
4153
4159
  declare class StripeLog extends BaseEntity {
4154
4160
  stripeEventId: string;
4155
4161
  eventType: string;