@bisondesk/core-sdk 1.0.308 → 1.0.309

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.
Files changed (42) hide show
  1. package/lib/cjs/apis/opportunities.js.map +1 -1
  2. package/lib/cjs/types/leasing-settings.js.map +1 -1
  3. package/lib/cjs/types/opportunities.js.map +1 -1
  4. package/lib/cjs/types/payments.js +2 -1
  5. package/lib/cjs/types/payments.js.map +1 -1
  6. package/lib/cjs/types/quote-settings.js +3 -0
  7. package/lib/cjs/types/quote-settings.js.map +1 -0
  8. package/lib/cjs/types/quotes.js.map +1 -1
  9. package/lib/cjs/types/vehicles.js.map +1 -1
  10. package/lib/esm/apis/opportunities.js.map +1 -1
  11. package/lib/esm/types/leasing-settings.js.map +1 -1
  12. package/lib/esm/types/opportunities.js.map +1 -1
  13. package/lib/esm/types/payments.js +1 -0
  14. package/lib/esm/types/payments.js.map +1 -1
  15. package/lib/esm/types/quote-settings.js +2 -0
  16. package/lib/esm/types/quote-settings.js.map +1 -0
  17. package/lib/esm/types/quotes.js.map +1 -1
  18. package/lib/esm/types/vehicles.js.map +1 -1
  19. package/lib/tsconfig.cjs.tsbuildinfo +1 -1
  20. package/lib/tsconfig.esm.tsbuildinfo +1 -1
  21. package/lib/types/apis/opportunities.d.ts +1 -1
  22. package/lib/types/apis/opportunities.d.ts.map +1 -1
  23. package/lib/types/types/leasing-settings.d.ts +0 -71
  24. package/lib/types/types/leasing-settings.d.ts.map +1 -1
  25. package/lib/types/types/opportunities.d.ts +2 -0
  26. package/lib/types/types/opportunities.d.ts.map +1 -1
  27. package/lib/types/types/payments.d.ts +1 -0
  28. package/lib/types/types/payments.d.ts.map +1 -1
  29. package/lib/types/types/quote-settings.d.ts +89 -0
  30. package/lib/types/types/quote-settings.d.ts.map +1 -0
  31. package/lib/types/types/quotes.d.ts +8 -14
  32. package/lib/types/types/quotes.d.ts.map +1 -1
  33. package/lib/types/types/vehicles.d.ts +18 -0
  34. package/lib/types/types/vehicles.d.ts.map +1 -1
  35. package/package.json +1 -1
  36. package/src/apis/opportunities.ts +1 -1
  37. package/src/types/leasing-settings.ts +0 -76
  38. package/src/types/opportunities.ts +2 -0
  39. package/src/types/payments.ts +2 -0
  40. package/src/types/quote-settings.ts +93 -0
  41. package/src/types/quotes.ts +7 -16
  42. package/src/types/vehicles.ts +22 -0
@@ -1,12 +1,10 @@
1
1
  import { AttachmentValue, LocationValue } from '@bisondesk/commons-sdk/types';
2
2
  import { OpportunityType } from '../constants';
3
- import { DeliveryParams } from './delivery-settings';
4
3
  import {
5
4
  CustomLeasingQuoteExtraInput,
6
5
  CustomSalesQuoteExtraInput,
7
6
  LeasingDeliveryPackageInput,
8
7
  LeasingQuoteExtraInput,
9
- LeasingQuoteParams,
10
8
  SalesQuoteExtraInput,
11
9
  } from './leasing-settings';
12
10
  import { MatchingRuleValue } from './roi-ratings';
@@ -62,7 +60,7 @@ type BaseQuoteCalculatorInput = {
62
60
  id: string;
63
61
  category: string;
64
62
  bodywork?: string;
65
- agreedPrice: string;
63
+ agreedPriceExclVat: string;
66
64
  };
67
65
  };
68
66
 
@@ -75,6 +73,8 @@ export type LeasingCalculatorInput = BaseQuoteCalculatorInput & {
75
73
  localLicensePlate: boolean;
76
74
  vanCourier: boolean;
77
75
  vehicle: BaseQuoteCalculatorInput['vehicle'] & {
76
+ purchasePriceExclVat: string;
77
+ agreedPrice: string;
78
78
  purchasePrice: string;
79
79
  };
80
80
  leasing: {
@@ -113,6 +113,7 @@ export type LeasingCalculatorInput = BaseQuoteCalculatorInput & {
113
113
  allRisks: boolean;
114
114
  specialTechnicalInsurance: boolean;
115
115
  roadAssistance: boolean;
116
+ initialFractionPercentage: string;
116
117
  };
117
118
  deliveryPackage?: LeasingDeliveryPackageInput;
118
119
  extras: LeasingQuoteExtraInput[];
@@ -164,6 +165,8 @@ export type SalesCalculatorDefaultInput = BaseQuoteCalculatorInput & {
164
165
  export type SalesCalculatorInput = BaseQuoteCalculatorInput & {
165
166
  vehicle: BaseQuoteCalculatorInput['vehicle'] & {
166
167
  purchasePrice: string;
168
+ purchasePriceExclVat: string;
169
+ agreedPrice: string;
167
170
  premiumPrice?: string;
168
171
  vatRate: string;
169
172
  minimumPrice: string;
@@ -189,6 +192,7 @@ export type LeasingCalculatorOutput = {
189
192
  installmentPrintable: string;
190
193
  totalMonthlyAmount: string;
191
194
  monthlyTaxesInsurance: string;
195
+ beforeDeliveryExclVat: string;
192
196
  beforeDelivery: string;
193
197
  financingAmount: string;
194
198
  settingId: string;
@@ -346,19 +350,6 @@ export type CalculatorSalesIO = {
346
350
  };
347
351
  export type CalculatorQuoteIO = CalculatorLeasingIO | CalculatorSalesIO;
348
352
 
349
- export type UsedVehiclesSalesParams = {
350
- id: string;
351
- modifiedAt: string;
352
- modifiedBy: string;
353
- countryCode: 'be';
354
- name: string;
355
- profitabilityDealGap: string;
356
- exaDocumentCosts: string;
357
- delivery?: DeliveryParams;
358
- };
359
-
360
- export type QuoteSettings = LeasingQuoteParams | UsedVehiclesSalesParams;
361
-
362
353
  export type DeliveryLocationValue = Omit<LocationValue, 'addressLine1' | 'city'> & {
363
354
  addressLine1: string;
364
355
  city: string;
@@ -146,6 +146,28 @@ export type VehicleMarketingEvent = {
146
146
  vehicleId: string;
147
147
  };
148
148
 
149
+ type BaseVehiclePurchaseEvent = {
150
+ actionAt: string;
151
+ userId: string;
152
+ tenantId: string;
153
+ branchId: string;
154
+ vehicleId: string;
155
+ };
156
+
157
+ export type VehiclePurchaseCreateEvent = BaseVehiclePurchaseEvent & {
158
+ action: 'create';
159
+ data: VehiclePurchase;
160
+ previousData?: undefined;
161
+ };
162
+
163
+ export type VehiclePurchaseUpdateEvent = BaseVehiclePurchaseEvent & {
164
+ action: 'update';
165
+ data: VehiclePurchase;
166
+ previousData: VehiclePurchase;
167
+ };
168
+
169
+ export type VehiclePurchaseEvent = VehiclePurchaseCreateEvent | VehiclePurchaseUpdateEvent;
170
+
149
171
  export type UpdateVehiclesPricesEvent = {
150
172
  id: string;
151
173
  actionAt: string;