@hapl/api-queries 0.2.88 → 0.2.89
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/api-queries.cjs.development.js.map +1 -1
- package/dist/api-queries.cjs.production.min.js.map +1 -1
- package/dist/api-queries.esm.js.map +1 -1
- package/dist/clients/v1/api/deal/updateDeal/index.d.ts +3 -0
- package/dist/clients/v1/types/Deal.d.ts +6 -3
- package/package.json +1 -1
- package/src/clients/v1/api/deal/updateDeal/index.ts +3 -0
- package/src/clients/v1/types/Deal.ts +6 -3
|
@@ -39,6 +39,7 @@ export declare type UpdateDealBody = {
|
|
|
39
39
|
invest?: {
|
|
40
40
|
isInvestBuyout: boolean;
|
|
41
41
|
};
|
|
42
|
+
isDayOff?: boolean;
|
|
42
43
|
isLawyerRequired?: boolean;
|
|
43
44
|
lawyer?: {
|
|
44
45
|
id: number;
|
|
@@ -54,6 +55,8 @@ export declare type UpdateDealBody = {
|
|
|
54
55
|
registeredAt?: string;
|
|
55
56
|
registerPlannedAt?: string;
|
|
56
57
|
terminationRequestedAt?: string | null;
|
|
58
|
+
withLawyer?: boolean;
|
|
59
|
+
withLegalChecks?: boolean;
|
|
57
60
|
};
|
|
58
61
|
export declare type UpdateDealData = AxiosResponse<ResultData>;
|
|
59
62
|
export declare type UpdateDealError = AxiosError<ResultError>;
|
|
@@ -52,6 +52,7 @@ export declare enum DealStatus {
|
|
|
52
52
|
}
|
|
53
53
|
export declare type Deal = {
|
|
54
54
|
buyer: Partial<Buyer> & Required<Pick<Buyer, 'id'>>;
|
|
55
|
+
clientCommission: MoneyAmount;
|
|
55
56
|
createdAt: string;
|
|
56
57
|
debts: Debt[];
|
|
57
58
|
developerCommission: MoneyAmount;
|
|
@@ -59,12 +60,13 @@ export declare type Deal = {
|
|
|
59
60
|
hasPrepayment: boolean;
|
|
60
61
|
id: number;
|
|
61
62
|
incomes: Array<Partial<Income> & Required<Pick<Income, 'id'>>>;
|
|
63
|
+
isDayOff: boolean;
|
|
62
64
|
participants: Array<Partial<DealParticipant> & Required<Pick<DealParticipant, 'id'>>>;
|
|
63
65
|
partnerCommission: MoneyAmount;
|
|
64
|
-
clientCommission: MoneyAmount;
|
|
65
66
|
receivedCommission: MoneyAmount;
|
|
66
67
|
status: DealStatus;
|
|
67
|
-
|
|
68
|
+
withLawyer: boolean;
|
|
69
|
+
withLegalChecks: boolean;
|
|
68
70
|
actDeveloperSignedAt?: string;
|
|
69
71
|
actSignedAt?: string;
|
|
70
72
|
canBeDealDone?: boolean;
|
|
@@ -79,7 +81,6 @@ export declare type Deal = {
|
|
|
79
81
|
dealSignedAt?: string;
|
|
80
82
|
dealSignPlannedAt?: string;
|
|
81
83
|
dealSingedAt?: string;
|
|
82
|
-
partnerDealType?: DealPartnerDealType | null;
|
|
83
84
|
files?: Array<Partial<File> & Required<Pick<File, 'id'>>>;
|
|
84
85
|
filesInDeal?: {
|
|
85
86
|
id: number;
|
|
@@ -97,6 +98,8 @@ export declare type Deal = {
|
|
|
97
98
|
isLawyerRequired?: string;
|
|
98
99
|
lawyer?: Partial<User> & Required<Pick<User, 'id'>>;
|
|
99
100
|
lawyerNotRequiredReason?: DealNoLawyerReason;
|
|
101
|
+
partnerDealType?: DealPartnerDealType | null;
|
|
102
|
+
plannedCommission?: MoneyAmount;
|
|
100
103
|
prepaidAt?: string;
|
|
101
104
|
prepaymentPlannedAt?: string;
|
|
102
105
|
prepaymentPlannedPlace?: string;
|
package/package.json
CHANGED
|
@@ -34,6 +34,7 @@ export type UpdateDealBody = {
|
|
|
34
34
|
}>;
|
|
35
35
|
finalPrice?: Deal['finalPrice'];
|
|
36
36
|
invest?: { isInvestBuyout: boolean };
|
|
37
|
+
isDayOff?: boolean;
|
|
37
38
|
isLawyerRequired?: boolean;
|
|
38
39
|
lawyer?: { id: number } | null;
|
|
39
40
|
lawyerNotRequiredReason?: DealNoLawyerReason | null;
|
|
@@ -47,6 +48,8 @@ export type UpdateDealBody = {
|
|
|
47
48
|
registeredAt?: string;
|
|
48
49
|
registerPlannedAt?: string;
|
|
49
50
|
terminationRequestedAt?: string | null;
|
|
51
|
+
withLawyer?: boolean;
|
|
52
|
+
withLegalChecks?: boolean;
|
|
50
53
|
};
|
|
51
54
|
|
|
52
55
|
export type UpdateDealData = AxiosResponse<ResultData>;
|
|
@@ -58,6 +58,7 @@ export enum DealStatus {
|
|
|
58
58
|
|
|
59
59
|
export type Deal = {
|
|
60
60
|
buyer: Partial<Buyer> & Required<Pick<Buyer, 'id'>>;
|
|
61
|
+
clientCommission: MoneyAmount; // alias for `plannedCommission` with foreign currency
|
|
61
62
|
createdAt: string;
|
|
62
63
|
debts: Debt[];
|
|
63
64
|
developerCommission: MoneyAmount;
|
|
@@ -65,13 +66,14 @@ export type Deal = {
|
|
|
65
66
|
hasPrepayment: boolean;
|
|
66
67
|
id: number;
|
|
67
68
|
incomes: Array<Partial<Income> & Required<Pick<Income, 'id'>>>;
|
|
69
|
+
isDayOff: boolean;
|
|
68
70
|
participants: Array<Partial<DealParticipant> & Required<Pick<DealParticipant, 'id'>>>;
|
|
69
71
|
partnerCommission: MoneyAmount;
|
|
70
|
-
clientCommission: MoneyAmount; // alias for `plannedCommission` with foreign currency
|
|
71
72
|
receivedCommission: MoneyAmount;
|
|
72
73
|
status: DealStatus;
|
|
74
|
+
withLawyer: boolean;
|
|
75
|
+
withLegalChecks: boolean;
|
|
73
76
|
|
|
74
|
-
plannedCommission?: MoneyAmount;
|
|
75
77
|
actDeveloperSignedAt?: string;
|
|
76
78
|
actSignedAt?: string;
|
|
77
79
|
canBeDealDone?: boolean;
|
|
@@ -86,7 +88,6 @@ export type Deal = {
|
|
|
86
88
|
dealSignedAt?: string;
|
|
87
89
|
dealSignPlannedAt?: string;
|
|
88
90
|
dealSingedAt?: string;
|
|
89
|
-
partnerDealType?: DealPartnerDealType | null;
|
|
90
91
|
files?: Array<Partial<File> & Required<Pick<File, 'id'>>>;
|
|
91
92
|
filesInDeal?: { id: number };
|
|
92
93
|
financeConfirmAt?: string;
|
|
@@ -100,6 +101,8 @@ export type Deal = {
|
|
|
100
101
|
isLawyerRequired?: string;
|
|
101
102
|
lawyer?: Partial<User> & Required<Pick<User, 'id'>>;
|
|
102
103
|
lawyerNotRequiredReason?: DealNoLawyerReason;
|
|
104
|
+
partnerDealType?: DealPartnerDealType | null;
|
|
105
|
+
plannedCommission?: MoneyAmount;
|
|
103
106
|
prepaidAt?: string;
|
|
104
107
|
prepaymentPlannedAt?: string;
|
|
105
108
|
prepaymentPlannedPlace?: string;
|