@bisondesk/core-sdk 1.0.663 → 1.0.665

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.
@@ -550,6 +550,62 @@ export type LeasingProformaTemplateData = {
550
550
  };
551
551
  };
552
552
 
553
+ export type SalesTemplateData = {
554
+ opportunity: {
555
+ id: string;
556
+ offerNumber: string;
557
+ };
558
+ currentDate: string;
559
+ expirationDate: string;
560
+ notes?: string;
561
+ accountManager: {
562
+ fullName: string;
563
+ email: string;
564
+ phone: string;
565
+ };
566
+ vehicle: {
567
+ line1: string;
568
+ line2: string;
569
+ stockNumber: string;
570
+ mainImage: string;
571
+ make: string;
572
+ model: string;
573
+ type?: string;
574
+ km: string | number;
575
+ vin: string;
576
+ year: string;
577
+ parkingLocation: string;
578
+ };
579
+ c: {
580
+ organizationId?: string;
581
+ clientId: string;
582
+ company: string;
583
+ fullName: string;
584
+ vatNumber?: string;
585
+ email?: string;
586
+ phone?: string;
587
+ address?: string;
588
+ country: string;
589
+ };
590
+ iExtended: LineItemPdfTemplate[];
591
+ i: LineItemPdfTemplate[];
592
+ t: {
593
+ totalExclVat: string;
594
+ vatAmount: string;
595
+ total: string;
596
+ displayVatMessage: boolean;
597
+ totalAlternativeCurrency?: string;
598
+ totalAlternativeCurrencyCode?: string;
599
+ totalAlternativeCurrencyExclVat?: string;
600
+ };
601
+ l?: {
602
+ advance: string;
603
+ residual: string;
604
+ duration: number; // in months
605
+ monthlyAmount: string;
606
+ };
607
+ };
608
+
553
609
  export type KanbanOpportunityGroup = {
554
610
  representative: SearchOpportunity;
555
611
  items: SearchOpportunity[];
@@ -115,15 +115,6 @@ export type Tenant = PublicTenant & {
115
115
  // E.164 Twilio caller ID used as a fallback when a user has no own number configured
116
116
  defaultTwilioPhoneNumber?: string;
117
117
  deliveryEmail?: string;
118
- /**
119
- * The tenant's brand, for printed material generated in code: the vehicle sticker takes its
120
- * header colour from `primary` and its name from `name`, so one layout serves every tenant.
121
- * Absent = the layout's neutral grey. Mirrors the brand registry of the websites.
122
- */
123
- brand?: {
124
- /** `#rrggbb` */
125
- primary: string;
126
- };
127
118
  };
128
119
 
129
120
  export type ReservationExpiryPolicy =
@@ -255,6 +255,14 @@ export type SearchTransport = {
255
255
  */
256
256
  location?: Pick<GPSCoord, 'lat' | 'lon'>;
257
257
  locationSource?: TransportLocationSource;
258
+ /**
259
+ * Set when the organization is one of the group's own branches. Names rather than ids: the
260
+ * branch usually belongs to another tenant, which the client cannot look up.
261
+ */
262
+ intercompany?: {
263
+ tenantName: string;
264
+ branchName: string;
265
+ };
258
266
  };
259
267
  };
260
268