@bisondesk/core-sdk 1.0.507 → 1.0.509
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/types/leasing-debtors.d.ts +2 -0
- package/lib/types/leasing-debtors.d.ts.map +1 -1
- package/lib/types/leasing-debtors.js.map +1 -1
- package/lib/types/opportunities.d.ts +3 -0
- package/lib/types/opportunities.d.ts.map +1 -1
- package/lib/types/opportunities.js.map +1 -1
- package/lib/types/quotes.d.ts +6 -0
- package/lib/types/quotes.d.ts.map +1 -1
- package/lib/types/quotes.js.map +1 -1
- package/lib/utils/search.d.ts.map +1 -1
- package/lib/utils/search.js +5 -0
- package/lib/utils/search.js.map +1 -1
- package/package.json +1 -1
- package/src/types/leasing-debtors.ts +2 -0
- package/src/types/opportunities.ts +3 -0
- package/src/types/quotes.ts +6 -0
- package/src/utils/search.ts +5 -0
- package/tsconfig.tsbuildinfo +1 -1
package/src/types/quotes.ts
CHANGED
|
@@ -56,6 +56,8 @@ type BaseQuoteCalculatorInput = {
|
|
|
56
56
|
customerCountry: string;
|
|
57
57
|
customerVatNumber?: string;
|
|
58
58
|
currency: string;
|
|
59
|
+
alternativeCurrency?: string;
|
|
60
|
+
exchangeRate?: string;
|
|
59
61
|
vehicle: {
|
|
60
62
|
id: string;
|
|
61
63
|
category: string;
|
|
@@ -206,6 +208,8 @@ export type LeasingCalculatorOutput = {
|
|
|
206
208
|
settingId: string;
|
|
207
209
|
totalRetailAmountExclVat: string;
|
|
208
210
|
totalRetailAmount: string;
|
|
211
|
+
totalRetailAmountAlternativeCurrency?: string;
|
|
212
|
+
totalRetailAmountExclVatAlternativeCurrency?: string;
|
|
209
213
|
finalSalesPrice: string;
|
|
210
214
|
roi: {
|
|
211
215
|
value: string;
|
|
@@ -259,6 +263,8 @@ export type LeasingCalculatorOutput = {
|
|
|
259
263
|
export type SalesCalculatorOutput = {
|
|
260
264
|
totalRetailAmount: string;
|
|
261
265
|
totalRetailAmountExclVat: string;
|
|
266
|
+
totalRetailAmountAlternativeCurrency?: string;
|
|
267
|
+
totalRetailAmountExclVatAlternativeCurrency?: string;
|
|
262
268
|
retailAmounts: {
|
|
263
269
|
vehicle: string;
|
|
264
270
|
delivery: string;
|
package/src/utils/search.ts
CHANGED
|
@@ -118,6 +118,11 @@ export const mappings: {
|
|
|
118
118
|
getTitle: (entity: any) => entity.id,
|
|
119
119
|
getTags: (entity: any) => [entity.id],
|
|
120
120
|
},
|
|
121
|
+
[BusinessEntityIds.DebtorsDossier]: {
|
|
122
|
+
getMainEntity: (entity: SearchDebtorsDossier) => entity.debtorsDossier,
|
|
123
|
+
getTitle: (dossier: DebtorsDossier) => dossier.id,
|
|
124
|
+
getTags: (dossier: DebtorsDossier) => [dossier.id].filter(Boolean) as string[],
|
|
125
|
+
},
|
|
121
126
|
};
|
|
122
127
|
|
|
123
128
|
const getMapping = (businessEntityId: BusinessEntityIds) => {
|