@bisondesk/core-sdk 1.0.423 → 1.0.425

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.
@@ -145,11 +145,8 @@ export type NewVehicleRequest = {
145
145
  contactId: string;
146
146
  orgId: string;
147
147
  purchasedBy: string;
148
- readyToDeliver: boolean;
149
- dealStatus:
150
- | VehiclePurchaseDealStatus.PurchaseEvaluation
151
- | VehiclePurchaseDealStatus.PurchaseAgreed
152
- | VehiclePurchaseDealStatus.Marketing;
148
+ readyToDeliver?: boolean;
149
+ dealStatus: VehiclePurchaseDealStatus;
153
150
  costs: {
154
151
  purchase: string;
155
152
  purchaseVatPercentage: string;
@@ -236,16 +233,18 @@ export type SearchVehicle = {
236
233
  sold: boolean;
237
234
  isReserved: boolean;
238
235
  hasPayments: boolean;
239
- isTrending: boolean;
240
236
  publishedOnWebsiteAt?: string;
241
237
  };
242
238
  customSortableFields: {
243
239
  priceChangedAt?: string;
244
240
  checkedInAt?: string;
241
+ saleAgreementAt?: string;
245
242
  };
246
243
  purchase?: {
247
244
  supplierStockNumber?: string;
248
245
  readyToDeliver: boolean;
246
+ dealStatus?: VehiclePurchaseDealStatus;
247
+ logisticsStatus?: VehiclePurchaseLogisticsStatus;
249
248
  };
250
249
  reservation?: Pick<OpportunityReservation, 'expiresAt' | 'opportunityId' | 'createdBy'>;
251
250
  vehicle: Vehicle;
@@ -571,13 +570,13 @@ export type VehicleAxle = {
571
570
  };
572
571
 
573
572
  export enum VehiclePurchaseDealStatus {
573
+ Marketing = 'MARKETING',
574
574
  PurchaseEvaluation = 'PURCHASE_EVALUATION', // used for vehicle consignation
575
575
  PurchaseAgreed = 'PURCHASE_AGREED',
576
576
  FirstPaymentAllowed = 'FIRST_PAYMENT_ALLOWED',
577
577
  FirstPaymentSent = 'FIRST_PAYMENT_SENT',
578
578
  FullPaymentAllowed = 'FULL_PAYMENT_ALLOWED',
579
579
  FullPaymentSent = 'FULL_PAYMENT_SENT',
580
- Marketing = 'MARKETING',
581
580
  }
582
581
 
583
582
  export enum VehiclePurchaseLogisticsStatus {
@@ -593,11 +592,6 @@ export enum VehiclePurchaseDeliveryType {
593
592
 
594
593
  export type VehicleStatus = {
595
594
  deleted?: boolean;
596
- purchase: {
597
- purchasedBy?: string;
598
- dealStatus: VehiclePurchaseDealStatus;
599
- logisticsStatus: VehiclePurchaseLogisticsStatus;
600
- };
601
595
  };
602
596
 
603
597
  export type VehiclePriceList = {
@@ -671,7 +665,7 @@ export type VehiclePurchase = {
671
665
 
672
666
  deal: {
673
667
  status: VehiclePurchaseDealStatus;
674
- readyToDeliver: boolean;
668
+ readyToDeliver?: boolean;
675
669
 
676
670
  askingPrice?: string;
677
671
  purchaseVatRate?: string;