@bisondesk/core-sdk 1.0.341 → 1.0.343
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/lib/apis/opportunities.d.ts +1 -0
- package/lib/apis/opportunities.d.ts.map +1 -1
- package/lib/apis/opportunities.js +9 -0
- package/lib/apis/opportunities.js.map +1 -1
- package/lib/types/crm.d.ts +2 -10
- package/lib/types/crm.d.ts.map +1 -1
- package/lib/types/crm.js.map +1 -1
- package/lib/types/leasing-search.d.ts +8 -0
- package/lib/types/leasing-search.d.ts.map +1 -1
- package/lib/types/leasing-search.js.map +1 -1
- package/lib/types/leasing.d.ts +1 -10
- package/lib/types/leasing.d.ts.map +1 -1
- package/lib/types/leasing.js.map +1 -1
- package/lib/types/vehicles.d.ts +5 -0
- package/lib/types/vehicles.d.ts.map +1 -1
- package/lib/types/vehicles.js +4 -0
- package/lib/types/vehicles.js.map +1 -1
- package/package.json +1 -1
- package/src/apis/opportunities.ts +16 -0
- package/src/types/crm.ts +2 -11
- package/src/types/leasing-search.ts +9 -0
- package/src/types/leasing.ts +1 -11
- package/src/types/vehicles.ts +6 -0
- package/tsconfig.deploy.tsbuildinfo +1 -1
- package/tsconfig.tsbuildinfo +1 -1
package/src/types/leasing.ts
CHANGED
|
@@ -7,14 +7,6 @@ export enum LeasingContractActions {
|
|
|
7
7
|
CREATE_FINANCE_DOCUMENT = 'create_finance_document',
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
-
export type LeasingContractDebtInfo = {
|
|
11
|
-
overdueSince?: string;
|
|
12
|
-
overdueInvoices: number;
|
|
13
|
-
overdueAmount: string;
|
|
14
|
-
unpaidInvoices: number;
|
|
15
|
-
unpaidAmount: string;
|
|
16
|
-
};
|
|
17
|
-
|
|
18
10
|
export type LeasingContractEvent = {
|
|
19
11
|
id: string;
|
|
20
12
|
action: 'create' | 'update' | 'delete';
|
|
@@ -121,13 +113,11 @@ type BaseLeasingContract<T = LeasingContractHyperportal | LeasingContractBisonde
|
|
|
121
113
|
export type LeasingContract<T = LeasingContractHyperportal | LeasingContractBisondesk> =
|
|
122
114
|
BaseLeasingContract<T> & {
|
|
123
115
|
readonly expectedEndDate: string;
|
|
124
|
-
readonly debt: LeasingContractDebtInfo;
|
|
125
116
|
};
|
|
126
117
|
|
|
127
118
|
export type NewLeasingContract<T = LeasingContractHyperportal | LeasingContractBisondesk> =
|
|
128
119
|
BaseLeasingContract<T> & {
|
|
129
|
-
readonly expectedEndDate?:
|
|
130
|
-
readonly debt?: LeasingContractDebtInfo | undefined;
|
|
120
|
+
readonly expectedEndDate?: undefined;
|
|
131
121
|
};
|
|
132
122
|
|
|
133
123
|
export type NextLeasingRentRowRequest = {
|
package/src/types/vehicles.ts
CHANGED
|
@@ -471,12 +471,18 @@ export type VehicleAxle = {
|
|
|
471
471
|
tyreSize?: string;
|
|
472
472
|
};
|
|
473
473
|
|
|
474
|
+
export enum MarketingChannel {
|
|
475
|
+
TELEGRAM = 'telegram',
|
|
476
|
+
}
|
|
477
|
+
|
|
474
478
|
export type VehicleMarketing = {
|
|
475
479
|
titles: MultiLangValue;
|
|
476
480
|
remarks?: MultiLangValue;
|
|
477
481
|
marketingPlatforms: string[];
|
|
482
|
+
channels?: MarketingChannel[];
|
|
478
483
|
videos: AttachmentValue[];
|
|
479
484
|
overrides?: {
|
|
485
|
+
channels?: boolean;
|
|
480
486
|
marketingPlatforms?: boolean;
|
|
481
487
|
remarks?: boolean;
|
|
482
488
|
titles?: boolean;
|