@bisondesk/core-sdk 1.0.429 → 1.0.430

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.
@@ -5,6 +5,7 @@ import { ReferenceData } from './utils.js';
5
5
 
6
6
  export enum LeasingContractActions {
7
7
  CREATE_FINANCE_DOCUMENT = 'create_finance_document',
8
+ END_CONTRACT = 'end_contract',
8
9
  }
9
10
 
10
11
  export type LeasingContractDebtInfo = {
@@ -78,6 +79,7 @@ export enum LeasingContractStatus {
78
79
  PAUSED = 'paused',
79
80
  ACTIVE = 'active',
80
81
  LEASING_RETURN = 'leasing_return',
82
+ ENDING = 'ending',
81
83
  ENDED = 'ended',
82
84
  }
83
85
 
@@ -410,3 +412,8 @@ export enum LEASING_EXPORT_TYPES {
410
412
  RENTAL_SOLUTIONS = 'rental-solutions',
411
413
  DEFAULT = 'default',
412
414
  }
415
+
416
+ export type LeasingContractEndRequest = {
417
+ contractId: string;
418
+ endDate?: string;
419
+ };
@@ -163,6 +163,7 @@ export type Opportunity = BaseOpportunity & {
163
163
  lostReason?: OpportunityLostReasonValues;
164
164
  deliveredAt?: string;
165
165
  deliveredBy?: string;
166
+ deliveredMode?: 'CMR' | 'Action';
166
167
  status: OpportunityStatus;
167
168
  dealStatus?: VehicleSaleDealStatus;
168
169
  logisticStatus?: VehicleSaleLogisticsStatus;
@@ -661,6 +662,20 @@ export type HpLeasingContractResponse = {
661
662
  contractNumber: string;
662
663
  };
663
664
 
665
+ export type HpLeasingDealEndRequest = {
666
+ tenantId: string;
667
+ initiatedBy: 'bisondesk';
668
+ processMetaId: string;
669
+ processRunData: {
670
+ entityOwner: string;
671
+ leasingContractOwner: string;
672
+ vehicleOldReference: string;
673
+ leasingContractNumber: string;
674
+ company: string;
675
+ vehicleNewReference: string;
676
+ };
677
+ };
678
+
664
679
  export type CashInRow = {
665
680
  time: number;
666
681
  deposit: number;
@@ -6,6 +6,7 @@ import {
6
6
  ShareEmailRequest,
7
7
  ShareWhatsappRequest,
8
8
  } from '@bisondesk/commons-sdk/types';
9
+ import { VehicleSaleLogisticsStatus } from './opportunities.js';
9
10
  import { OpportunityReservation } from './reservations.js';
10
11
  import { DataRecord } from './utils.js';
11
12
  import { VehicleSaleInfo } from './vehicle-sales.js';
@@ -254,6 +255,7 @@ export type SearchVehicle = {
254
255
  soldAt?: string;
255
256
  soldBy?: string;
256
257
  dealStatus: SearchVehicleSaleDealStatus;
258
+ logisticStatus?: VehicleSaleLogisticsStatus;
257
259
  };
258
260
  };
259
261