@bisondesk/core-sdk 1.0.296 → 1.0.298
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/cjs/apis/crm.js.map +1 -1
- package/lib/cjs/apis/documents.js.map +1 -1
- package/lib/cjs/apis/leasing-administration.js.map +1 -1
- package/lib/cjs/apis/leasing.js.map +1 -1
- package/lib/cjs/apis/picklists.js.map +1 -1
- package/lib/cjs/apis/tenants.js.map +1 -1
- package/lib/cjs/apis/users.js.map +1 -1
- package/lib/cjs/apis/vehicles.js.map +1 -1
- package/lib/cjs/types/leasing-administration.js.map +1 -1
- package/lib/esm/apis/crm.js.map +1 -1
- package/lib/esm/apis/documents.js.map +1 -1
- package/lib/esm/apis/leasing-administration.js.map +1 -1
- package/lib/esm/apis/leasing.js.map +1 -1
- package/lib/esm/apis/picklists.js.map +1 -1
- package/lib/esm/apis/tenants.js.map +1 -1
- package/lib/esm/apis/users.js.map +1 -1
- package/lib/esm/apis/vehicles.js.map +1 -1
- package/lib/esm/types/leasing-administration.js.map +1 -1
- package/lib/tsconfig.cjs.tsbuildinfo +1 -1
- package/lib/tsconfig.esm.tsbuildinfo +1 -1
- package/lib/types/types/leasing-administration.d.ts +2 -2
- package/lib/types/types/leasing-administration.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/apis/crm.ts +8 -8
- package/src/apis/documents.ts +1 -1
- package/src/apis/leasing-administration.ts +2 -2
- package/src/apis/leasing.ts +11 -11
- package/src/apis/picklists.ts +2 -2
- package/src/apis/tenants.ts +5 -5
- package/src/apis/users.ts +1 -1
- package/src/apis/vehicles.ts +9 -9
- package/src/types/leasing-administration.ts +2 -2
package/src/apis/documents.ts
CHANGED
|
@@ -29,7 +29,7 @@ export const createLeasingAdminUpload = async (
|
|
|
29
29
|
);
|
|
30
30
|
|
|
31
31
|
if (response.ok) {
|
|
32
|
-
return response.json()
|
|
32
|
+
return response.json();
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
const body = await response.text();
|
|
@@ -59,7 +59,7 @@ export const updateLeasingAdminUploadStatus = async (
|
|
|
59
59
|
);
|
|
60
60
|
|
|
61
61
|
if (response.ok) {
|
|
62
|
-
return response.json()
|
|
62
|
+
return response.json();
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
const body = await response.text();
|
package/src/apis/leasing.ts
CHANGED
|
@@ -30,7 +30,7 @@ export const listLeasingClients = async (
|
|
|
30
30
|
);
|
|
31
31
|
|
|
32
32
|
if (response.ok) {
|
|
33
|
-
return response.status === 200 ?
|
|
33
|
+
return response.status === 200 ? response.json() : undefined;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
const body = await response.text();
|
|
@@ -56,7 +56,7 @@ export const listLeasingContracts = async (
|
|
|
56
56
|
);
|
|
57
57
|
|
|
58
58
|
if (response.ok) {
|
|
59
|
-
return response.status === 200 ?
|
|
59
|
+
return response.status === 200 ? response.json() : undefined;
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
const body = await response.text();
|
|
@@ -79,7 +79,7 @@ export const getLeasingConditions = async (
|
|
|
79
79
|
);
|
|
80
80
|
|
|
81
81
|
if (response.ok) {
|
|
82
|
-
return response.status === 200 ?
|
|
82
|
+
return response.status === 200 ? response.json() : undefined;
|
|
83
83
|
}
|
|
84
84
|
|
|
85
85
|
const body = await response.text();
|
|
@@ -102,7 +102,7 @@ export const createLeasingConditions = async (
|
|
|
102
102
|
});
|
|
103
103
|
|
|
104
104
|
if (response.status === 200) {
|
|
105
|
-
return response.json()
|
|
105
|
+
return response.json();
|
|
106
106
|
}
|
|
107
107
|
|
|
108
108
|
const body = await response.text();
|
|
@@ -125,7 +125,7 @@ export const getLeasingContractByNumber = async (
|
|
|
125
125
|
);
|
|
126
126
|
|
|
127
127
|
if (response.ok) {
|
|
128
|
-
return response.status === 200 ?
|
|
128
|
+
return response.status === 200 ? response.json() : undefined;
|
|
129
129
|
}
|
|
130
130
|
|
|
131
131
|
const body = await response.text();
|
|
@@ -148,7 +148,7 @@ export const getLeasingContract = async (
|
|
|
148
148
|
);
|
|
149
149
|
|
|
150
150
|
if (response.ok) {
|
|
151
|
-
return response.status === 200 ?
|
|
151
|
+
return response.status === 200 ? response.json() : undefined;
|
|
152
152
|
}
|
|
153
153
|
|
|
154
154
|
const body = await response.text();
|
|
@@ -172,7 +172,7 @@ export const findLeasingContracts = async (
|
|
|
172
172
|
);
|
|
173
173
|
|
|
174
174
|
if (response.status === 200) {
|
|
175
|
-
return response.json()
|
|
175
|
+
return response.json();
|
|
176
176
|
}
|
|
177
177
|
|
|
178
178
|
const body = await response.text();
|
|
@@ -195,7 +195,7 @@ export const upsertLeasingContract = async (
|
|
|
195
195
|
});
|
|
196
196
|
|
|
197
197
|
if (response.status === 200) {
|
|
198
|
-
return response.json()
|
|
198
|
+
return response.json();
|
|
199
199
|
}
|
|
200
200
|
|
|
201
201
|
const body = await response.text();
|
|
@@ -227,7 +227,7 @@ export const computeFinanceDocLeasingAmounts = async (
|
|
|
227
227
|
);
|
|
228
228
|
|
|
229
229
|
if (response.status === 200) {
|
|
230
|
-
return response.json()
|
|
230
|
+
return response.json();
|
|
231
231
|
}
|
|
232
232
|
|
|
233
233
|
const body = await response.text();
|
|
@@ -250,7 +250,7 @@ export const getLeasingAmortizations = async (
|
|
|
250
250
|
);
|
|
251
251
|
|
|
252
252
|
if (response.status === 200) {
|
|
253
|
-
return response.json()
|
|
253
|
+
return response.json();
|
|
254
254
|
}
|
|
255
255
|
|
|
256
256
|
const body = await response.text();
|
|
@@ -273,7 +273,7 @@ export const listAmortizationDocsByContract = async (
|
|
|
273
273
|
);
|
|
274
274
|
|
|
275
275
|
if (response.status === 200) {
|
|
276
|
-
return response.json()
|
|
276
|
+
return response.json();
|
|
277
277
|
}
|
|
278
278
|
|
|
279
279
|
const body = await response.text();
|
package/src/apis/picklists.ts
CHANGED
|
@@ -22,7 +22,7 @@ export const getMultiplePicklistValues = async (
|
|
|
22
22
|
});
|
|
23
23
|
|
|
24
24
|
if (response.ok) {
|
|
25
|
-
return response.json()
|
|
25
|
+
return response.json();
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
const body = await response.text();
|
|
@@ -42,7 +42,7 @@ export const getPicklistOptions = async (req: PicklistOptionsRequest): Promise<O
|
|
|
42
42
|
});
|
|
43
43
|
|
|
44
44
|
if (response.ok) {
|
|
45
|
-
return response.json()
|
|
45
|
+
return response.json();
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
const body = await response.text();
|
package/src/apis/tenants.ts
CHANGED
|
@@ -12,7 +12,7 @@ export const listTenants = async (): Promise<Tenant[]> => {
|
|
|
12
12
|
});
|
|
13
13
|
|
|
14
14
|
if (response.ok) {
|
|
15
|
-
return response.json()
|
|
15
|
+
return response.json();
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
const body = await response.text();
|
|
@@ -31,7 +31,7 @@ export const listTenantsSyncSettings = async (): Promise<TenantSyncSettings[]> =
|
|
|
31
31
|
);
|
|
32
32
|
|
|
33
33
|
if (response.ok) {
|
|
34
|
-
return response.json()
|
|
34
|
+
return response.json();
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
const body = await response.text();
|
|
@@ -50,7 +50,7 @@ export const getTenant = async (tenantId: string): Promise<Tenant | undefined> =
|
|
|
50
50
|
);
|
|
51
51
|
|
|
52
52
|
if (response.ok) {
|
|
53
|
-
return response.status === 200 ?
|
|
53
|
+
return response.status === 200 ? response.json() : undefined;
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
const body = await response.text();
|
|
@@ -71,7 +71,7 @@ export const getTenantByHyperdmsId = async (
|
|
|
71
71
|
);
|
|
72
72
|
|
|
73
73
|
if (response.ok) {
|
|
74
|
-
return response.status === 200 ?
|
|
74
|
+
return response.status === 200 ? response.json() : undefined;
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
const body = await response.text();
|
|
@@ -92,7 +92,7 @@ export const getTenantByHyperportalId = async (
|
|
|
92
92
|
);
|
|
93
93
|
|
|
94
94
|
if (response.ok) {
|
|
95
|
-
return response.status === 200 ?
|
|
95
|
+
return response.status === 200 ? response.json() : undefined;
|
|
96
96
|
}
|
|
97
97
|
|
|
98
98
|
const body = await response.text();
|
package/src/apis/users.ts
CHANGED
|
@@ -14,7 +14,7 @@ export const getUser = async (tenantId: string, userId: string): Promise<User |
|
|
|
14
14
|
});
|
|
15
15
|
|
|
16
16
|
if (response.ok) {
|
|
17
|
-
return response.status === 200 ?
|
|
17
|
+
return response.status === 200 ? response.json() : undefined;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
const body = await response.text();
|
package/src/apis/vehicles.ts
CHANGED
|
@@ -21,7 +21,7 @@ export const getVehicle = async (
|
|
|
21
21
|
);
|
|
22
22
|
|
|
23
23
|
if (response.ok) {
|
|
24
|
-
return response.status === 200 ?
|
|
24
|
+
return response.status === 200 ? response.json() : undefined;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
const body = await response.text();
|
|
@@ -57,7 +57,7 @@ export const getVehiclePurchase = async (
|
|
|
57
57
|
);
|
|
58
58
|
|
|
59
59
|
if (response.ok) {
|
|
60
|
-
return response.status === 200 ?
|
|
60
|
+
return response.status === 200 ? response.json() : undefined;
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
const body = await response.text();
|
|
@@ -80,7 +80,7 @@ export const getVehicleByStockNumber = async (
|
|
|
80
80
|
);
|
|
81
81
|
|
|
82
82
|
if (response.ok) {
|
|
83
|
-
return response.status === 200 ?
|
|
83
|
+
return response.status === 200 ? response.json() : undefined;
|
|
84
84
|
}
|
|
85
85
|
|
|
86
86
|
const body = await response.text();
|
|
@@ -103,7 +103,7 @@ export const getVehicleByPurchaseStockNumber = async (
|
|
|
103
103
|
);
|
|
104
104
|
|
|
105
105
|
if (response.ok) {
|
|
106
|
-
return response.status === 200 ?
|
|
106
|
+
return response.status === 200 ? response.json() : undefined;
|
|
107
107
|
}
|
|
108
108
|
|
|
109
109
|
const body = await response.text();
|
|
@@ -129,7 +129,7 @@ export const listVehiclesMarketing = async (
|
|
|
129
129
|
);
|
|
130
130
|
|
|
131
131
|
if (response.ok) {
|
|
132
|
-
return response.status === 200 ?
|
|
132
|
+
return response.status === 200 ? response.json() : undefined;
|
|
133
133
|
}
|
|
134
134
|
|
|
135
135
|
const body = await response.text();
|
|
@@ -152,7 +152,7 @@ export const getVehicleMarketing = async (
|
|
|
152
152
|
);
|
|
153
153
|
|
|
154
154
|
if (response.ok) {
|
|
155
|
-
return response.status === 200 ?
|
|
155
|
+
return response.status === 200 ? response.json() : undefined;
|
|
156
156
|
}
|
|
157
157
|
|
|
158
158
|
const body = await response.text();
|
|
@@ -180,7 +180,7 @@ export const saveMarketing = async (
|
|
|
180
180
|
);
|
|
181
181
|
|
|
182
182
|
if (response.ok) {
|
|
183
|
-
return response.json()
|
|
183
|
+
return response.json();
|
|
184
184
|
}
|
|
185
185
|
const body = await response.text();
|
|
186
186
|
throw new XError(response.statusText, { body, tenantId, vehicleId, marketing });
|
|
@@ -208,7 +208,7 @@ export const saveVehiclePurchase = async (
|
|
|
208
208
|
);
|
|
209
209
|
|
|
210
210
|
if (response.ok) {
|
|
211
|
-
return response.json()
|
|
211
|
+
return response.json();
|
|
212
212
|
}
|
|
213
213
|
const body = await response.text();
|
|
214
214
|
throw new XError(response.statusText, { body, tenantId, vehicleId, purchase, opts });
|
|
@@ -232,7 +232,7 @@ export const saveVehicle = async (
|
|
|
232
232
|
});
|
|
233
233
|
|
|
234
234
|
if (response.ok) {
|
|
235
|
-
return response.json()
|
|
235
|
+
return response.json();
|
|
236
236
|
}
|
|
237
237
|
const body = await response.text();
|
|
238
238
|
throw new XError(response.statusText, { body, tenantId, vehicle, opts });
|
|
@@ -66,7 +66,7 @@ export type DhondtInvoiceLine = {
|
|
|
66
66
|
|
|
67
67
|
export type INGMetadata = {
|
|
68
68
|
capital: string;
|
|
69
|
-
emailId
|
|
69
|
+
emailId?: string;
|
|
70
70
|
interest: string;
|
|
71
71
|
invoiceDate: string;
|
|
72
72
|
invoiceNumber: string;
|
|
@@ -76,7 +76,7 @@ export type INGMetadata = {
|
|
|
76
76
|
};
|
|
77
77
|
|
|
78
78
|
export type INGAttachments = {
|
|
79
|
-
email
|
|
79
|
+
email?: AttachmentValue; // like the emailId, can be missing if the invoices are uploaded manually
|
|
80
80
|
};
|
|
81
81
|
|
|
82
82
|
export type DiffableDhondtInvoiceLine = DhondtInvoiceLine;
|