@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.
- package/lib/types/deliveries.d.ts +2 -1
- package/lib/types/deliveries.d.ts.map +1 -1
- package/lib/types/deliveries.js +1 -0
- package/lib/types/deliveries.js.map +1 -1
- package/lib/types/opportunities.d.ts +55 -0
- package/lib/types/opportunities.d.ts.map +1 -1
- package/lib/types/opportunities.js.map +1 -1
- package/lib/types/tenants.d.ts +0 -3
- package/lib/types/tenants.d.ts.map +1 -1
- package/lib/types/tenants.js.map +1 -1
- package/lib/types/transports.d.ts +4 -0
- package/lib/types/transports.d.ts.map +1 -1
- package/lib/types/transports.js.map +1 -1
- package/package.json +1 -1
- package/src/types/deliveries.ts +2 -0
- package/src/types/opportunities.ts +56 -0
- package/src/types/tenants.ts +0 -9
- package/src/types/transports.ts +8 -0
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -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[];
|
package/src/types/tenants.ts
CHANGED
|
@@ -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 =
|
package/src/types/transports.ts
CHANGED
|
@@ -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
|
|