@bisondesk/core-sdk 1.0.486 → 1.0.487

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.
@@ -1,3 +1,4 @@
1
+ import { Task } from '@bisondesk/commons-sdk/tasks';
1
2
  import { Document, NextList } from '@bisondesk/commons-sdk/types';
2
3
  import { BusinessEntityIds, OpportunityType, WarningHints } from '../constants.js';
3
4
  import { Contact, Organization } from './crm.js';
@@ -105,7 +106,7 @@ export enum OpportunityLostReasonValues {
105
106
  HighDeposit = 'deposit_too_high',
106
107
  NoAnswer = 'client_not_answered',
107
108
  Automatic = 'automatic',
108
- LeasingDeal = 'sold-via-leasing'
109
+ LeasingDeal = 'sold-via-leasing',
109
110
  }
110
111
 
111
112
  type BaseBid = {
@@ -261,6 +262,7 @@ export type OpportunityBFF = {
261
262
  activeQuote?: DataRecord<Quote>;
262
263
  payments: PaymentSummary | undefined;
263
264
  reservation?: DataRecord<OpportunityReservation>;
265
+ tasks: DataRecord<Task>[];
264
266
  customer?: {
265
267
  contact: DataRecord<Contact, ContactMetdata>;
266
268
  org?: DataRecord<Organization>;
@@ -75,6 +75,7 @@ export type LeasingCalculatorDefaultInput = BaseQuoteCalculatorInput & {
75
75
  export type LeasingCalculatorInput = BaseQuoteCalculatorInput & {
76
76
  localLicensePlate: boolean;
77
77
  vanCourier: boolean;
78
+ externalDelivery: boolean;
78
79
  isRefinancingDebt?: boolean; // if true, the insurance amounts might not be the same as the leasing amount + and other costs like track and trace
79
80
  vehicle: BaseQuoteCalculatorInput['vehicle'] & {
80
81
  purchasePriceExclVat: string;