@open-tender/types 0.2.9 → 0.2.11
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/dist/cjs/types/api/cart.d.ts +4 -0
- package/dist/cjs/types/api/config.d.ts +42 -37
- package/dist/cjs/types/api/creditCards.d.ts +1 -1
- package/dist/cjs/types/api/customer/account.d.ts +0 -3
- package/dist/cjs/types/api/customer/account.js +0 -3
- package/dist/cjs/types/api/customer/customer.js +0 -5
- package/dist/cjs/types/api/customer/giftCards.d.ts +2 -1
- package/dist/cjs/types/api/guest.d.ts +0 -4
- package/dist/cjs/types/api/order.d.ts +1 -0
- package/dist/esm/types/api/cart.d.ts +4 -0
- package/dist/esm/types/api/config.d.ts +42 -37
- package/dist/esm/types/api/creditCards.d.ts +1 -1
- package/dist/esm/types/api/customer/account.d.ts +0 -3
- package/dist/esm/types/api/customer/account.js +0 -3
- package/dist/esm/types/api/customer/customer.js +0 -5
- package/dist/esm/types/api/customer/giftCards.d.ts +2 -1
- package/dist/esm/types/api/guest.d.ts +0 -4
- package/dist/esm/types/api/order.d.ts +1 -0
- package/package.json +1 -1
|
@@ -41,6 +41,10 @@ export interface CartItemOption {
|
|
|
41
41
|
totalPrice: number | null;
|
|
42
42
|
}
|
|
43
43
|
export declare type CartItemOptions = CartItemOption[];
|
|
44
|
+
export interface CartItemOptionWithGroup extends CartItemOption {
|
|
45
|
+
group: CartItemGroup;
|
|
46
|
+
}
|
|
47
|
+
export declare type CartItemOptionsWithGroup = CartItemOptionWithGroup[];
|
|
44
48
|
export interface CartItemOptionWithIndex extends CartItemOption {
|
|
45
49
|
index: number;
|
|
46
50
|
}
|
|
@@ -22,7 +22,7 @@ export interface ConfigFulfillment {
|
|
|
22
22
|
button: string;
|
|
23
23
|
description: string;
|
|
24
24
|
title: string;
|
|
25
|
-
fields:
|
|
25
|
+
fields: ConfigFulfillmentField[];
|
|
26
26
|
}
|
|
27
27
|
export interface ConfigLoyaltyTermsThreshold {
|
|
28
28
|
description: string;
|
|
@@ -92,7 +92,7 @@ export interface ConfigContentField {
|
|
|
92
92
|
subtitle: string;
|
|
93
93
|
empty?: string;
|
|
94
94
|
}
|
|
95
|
-
export declare type
|
|
95
|
+
export declare type ConfigOrderTypes = 'CATERING' | 'DELIVERY' | 'DONATIONS' | 'GIFT_CARDS' | 'GROUP' | 'MERCH' | 'OUTPOST' | 'PICKUP' | 'WALKIN';
|
|
96
96
|
export interface ConfigContent {
|
|
97
97
|
about: {
|
|
98
98
|
background: string;
|
|
@@ -243,7 +243,7 @@ export interface ConfigContent {
|
|
|
243
243
|
content: string;
|
|
244
244
|
mobile: string;
|
|
245
245
|
orderTypes: {
|
|
246
|
-
[keys in
|
|
246
|
+
[keys in ConfigOrderTypes]: ConfigContentField;
|
|
247
247
|
};
|
|
248
248
|
showHero: boolean;
|
|
249
249
|
};
|
|
@@ -271,7 +271,7 @@ export interface ConfigContent {
|
|
|
271
271
|
content: string;
|
|
272
272
|
mobile: string;
|
|
273
273
|
orderTypes: {
|
|
274
|
-
[keys in
|
|
274
|
+
[keys in ConfigOrderTypes]: ConfigContentField;
|
|
275
275
|
};
|
|
276
276
|
showDescriptions: boolean;
|
|
277
277
|
showDescriptionsMobile: boolean;
|
|
@@ -366,19 +366,48 @@ export interface ConfigDisplaySetting {
|
|
|
366
366
|
storePhone: boolean;
|
|
367
367
|
tags: boolean;
|
|
368
368
|
}
|
|
369
|
-
export interface
|
|
369
|
+
export interface GoogleMapsCenter {
|
|
370
|
+
lat: number;
|
|
371
|
+
lng: number;
|
|
372
|
+
}
|
|
373
|
+
export interface GoogleMapsAnchor {
|
|
370
374
|
x: number;
|
|
371
375
|
y: number;
|
|
372
376
|
}
|
|
373
|
-
export interface
|
|
377
|
+
export interface GoogleMapsIconSize {
|
|
374
378
|
height: number;
|
|
375
379
|
width: number;
|
|
376
380
|
}
|
|
377
|
-
export interface
|
|
378
|
-
anchor:
|
|
379
|
-
size:
|
|
381
|
+
export interface GoogleMapsIcon {
|
|
382
|
+
anchor: GoogleMapsAnchor | null;
|
|
383
|
+
size: GoogleMapsIconSize;
|
|
380
384
|
url: string;
|
|
381
385
|
}
|
|
386
|
+
export interface GoogleMapsIcons {
|
|
387
|
+
location: GoogleMapsIcon;
|
|
388
|
+
locationSelected: GoogleMapsIcon;
|
|
389
|
+
user: GoogleMapsIcon;
|
|
390
|
+
}
|
|
391
|
+
export interface GoogleMapsStyles {
|
|
392
|
+
backgroundColor: string;
|
|
393
|
+
featureColor: string;
|
|
394
|
+
labelColor: string;
|
|
395
|
+
roadColor: string;
|
|
396
|
+
waterColor: string;
|
|
397
|
+
}
|
|
398
|
+
export interface GoogleMaps {
|
|
399
|
+
apiKey: string;
|
|
400
|
+
apiKeyApp: string;
|
|
401
|
+
defaultCenter: GoogleMapsCenter;
|
|
402
|
+
icons: GoogleMapsIcons;
|
|
403
|
+
styles: GoogleMapsStyles;
|
|
404
|
+
zoom: number;
|
|
405
|
+
}
|
|
406
|
+
export interface ConfigRecaptcha {
|
|
407
|
+
addCard: boolean;
|
|
408
|
+
donations: boolean;
|
|
409
|
+
giftCards: boolean;
|
|
410
|
+
}
|
|
382
411
|
export interface ConfigSettings {
|
|
383
412
|
accountSections: Array<string>;
|
|
384
413
|
autoSelect: {
|
|
@@ -394,35 +423,11 @@ export interface ConfigSettings {
|
|
|
394
423
|
displaySettings: {
|
|
395
424
|
[keys in OrderType]: ConfigDisplaySetting;
|
|
396
425
|
};
|
|
397
|
-
googleMaps:
|
|
398
|
-
apiKey: string;
|
|
399
|
-
apiKeyApp: string;
|
|
400
|
-
defaultCenter: {
|
|
401
|
-
lat: number;
|
|
402
|
-
lng: number;
|
|
403
|
-
};
|
|
404
|
-
icons: {
|
|
405
|
-
location: ConfigIcon;
|
|
406
|
-
locationSelected: ConfigIcon;
|
|
407
|
-
user: ConfigIcon;
|
|
408
|
-
};
|
|
409
|
-
styles: {
|
|
410
|
-
backgroundColor: string;
|
|
411
|
-
featureColor: string;
|
|
412
|
-
labelColor: string;
|
|
413
|
-
roadColor: string;
|
|
414
|
-
waterColor: string;
|
|
415
|
-
};
|
|
416
|
-
zoom: number;
|
|
417
|
-
};
|
|
426
|
+
googleMaps: GoogleMaps;
|
|
418
427
|
locationName: {
|
|
419
|
-
[keys in ServiceType | 'OUTPOST']:
|
|
428
|
+
[keys in ServiceType | 'OUTPOST']: string[];
|
|
420
429
|
};
|
|
421
430
|
maxDistance: number;
|
|
422
|
-
orderTypes:
|
|
423
|
-
recaptcha:
|
|
424
|
-
addCard: boolean;
|
|
425
|
-
donations: boolean;
|
|
426
|
-
giftCards: boolean;
|
|
427
|
-
};
|
|
431
|
+
orderTypes: ConfigOrderTypes[];
|
|
432
|
+
recaptcha: ConfigRecaptcha;
|
|
428
433
|
}
|
|
@@ -16,10 +16,11 @@ export interface GiftCardPurchased {
|
|
|
16
16
|
balance: string;
|
|
17
17
|
card_number: string;
|
|
18
18
|
}
|
|
19
|
+
export declare type GiftCardsPurchased = GiftCardPurchased[];
|
|
19
20
|
export interface GiftCardPurchaseData {
|
|
20
21
|
amount: string;
|
|
21
22
|
quantity: number;
|
|
22
|
-
email
|
|
23
|
+
email?: string;
|
|
23
24
|
}
|
|
24
25
|
export interface GiftCardsPurchase {
|
|
25
26
|
credit_card: CreditCardData | CreditCardSaved;
|
|
@@ -41,6 +41,10 @@ export interface CartItemOption {
|
|
|
41
41
|
totalPrice: number | null;
|
|
42
42
|
}
|
|
43
43
|
export declare type CartItemOptions = CartItemOption[];
|
|
44
|
+
export interface CartItemOptionWithGroup extends CartItemOption {
|
|
45
|
+
group: CartItemGroup;
|
|
46
|
+
}
|
|
47
|
+
export declare type CartItemOptionsWithGroup = CartItemOptionWithGroup[];
|
|
44
48
|
export interface CartItemOptionWithIndex extends CartItemOption {
|
|
45
49
|
index: number;
|
|
46
50
|
}
|
|
@@ -22,7 +22,7 @@ export interface ConfigFulfillment {
|
|
|
22
22
|
button: string;
|
|
23
23
|
description: string;
|
|
24
24
|
title: string;
|
|
25
|
-
fields:
|
|
25
|
+
fields: ConfigFulfillmentField[];
|
|
26
26
|
}
|
|
27
27
|
export interface ConfigLoyaltyTermsThreshold {
|
|
28
28
|
description: string;
|
|
@@ -92,7 +92,7 @@ export interface ConfigContentField {
|
|
|
92
92
|
subtitle: string;
|
|
93
93
|
empty?: string;
|
|
94
94
|
}
|
|
95
|
-
export declare type
|
|
95
|
+
export declare type ConfigOrderTypes = 'CATERING' | 'DELIVERY' | 'DONATIONS' | 'GIFT_CARDS' | 'GROUP' | 'MERCH' | 'OUTPOST' | 'PICKUP' | 'WALKIN';
|
|
96
96
|
export interface ConfigContent {
|
|
97
97
|
about: {
|
|
98
98
|
background: string;
|
|
@@ -243,7 +243,7 @@ export interface ConfigContent {
|
|
|
243
243
|
content: string;
|
|
244
244
|
mobile: string;
|
|
245
245
|
orderTypes: {
|
|
246
|
-
[keys in
|
|
246
|
+
[keys in ConfigOrderTypes]: ConfigContentField;
|
|
247
247
|
};
|
|
248
248
|
showHero: boolean;
|
|
249
249
|
};
|
|
@@ -271,7 +271,7 @@ export interface ConfigContent {
|
|
|
271
271
|
content: string;
|
|
272
272
|
mobile: string;
|
|
273
273
|
orderTypes: {
|
|
274
|
-
[keys in
|
|
274
|
+
[keys in ConfigOrderTypes]: ConfigContentField;
|
|
275
275
|
};
|
|
276
276
|
showDescriptions: boolean;
|
|
277
277
|
showDescriptionsMobile: boolean;
|
|
@@ -366,19 +366,48 @@ export interface ConfigDisplaySetting {
|
|
|
366
366
|
storePhone: boolean;
|
|
367
367
|
tags: boolean;
|
|
368
368
|
}
|
|
369
|
-
export interface
|
|
369
|
+
export interface GoogleMapsCenter {
|
|
370
|
+
lat: number;
|
|
371
|
+
lng: number;
|
|
372
|
+
}
|
|
373
|
+
export interface GoogleMapsAnchor {
|
|
370
374
|
x: number;
|
|
371
375
|
y: number;
|
|
372
376
|
}
|
|
373
|
-
export interface
|
|
377
|
+
export interface GoogleMapsIconSize {
|
|
374
378
|
height: number;
|
|
375
379
|
width: number;
|
|
376
380
|
}
|
|
377
|
-
export interface
|
|
378
|
-
anchor:
|
|
379
|
-
size:
|
|
381
|
+
export interface GoogleMapsIcon {
|
|
382
|
+
anchor: GoogleMapsAnchor | null;
|
|
383
|
+
size: GoogleMapsIconSize;
|
|
380
384
|
url: string;
|
|
381
385
|
}
|
|
386
|
+
export interface GoogleMapsIcons {
|
|
387
|
+
location: GoogleMapsIcon;
|
|
388
|
+
locationSelected: GoogleMapsIcon;
|
|
389
|
+
user: GoogleMapsIcon;
|
|
390
|
+
}
|
|
391
|
+
export interface GoogleMapsStyles {
|
|
392
|
+
backgroundColor: string;
|
|
393
|
+
featureColor: string;
|
|
394
|
+
labelColor: string;
|
|
395
|
+
roadColor: string;
|
|
396
|
+
waterColor: string;
|
|
397
|
+
}
|
|
398
|
+
export interface GoogleMaps {
|
|
399
|
+
apiKey: string;
|
|
400
|
+
apiKeyApp: string;
|
|
401
|
+
defaultCenter: GoogleMapsCenter;
|
|
402
|
+
icons: GoogleMapsIcons;
|
|
403
|
+
styles: GoogleMapsStyles;
|
|
404
|
+
zoom: number;
|
|
405
|
+
}
|
|
406
|
+
export interface ConfigRecaptcha {
|
|
407
|
+
addCard: boolean;
|
|
408
|
+
donations: boolean;
|
|
409
|
+
giftCards: boolean;
|
|
410
|
+
}
|
|
382
411
|
export interface ConfigSettings {
|
|
383
412
|
accountSections: Array<string>;
|
|
384
413
|
autoSelect: {
|
|
@@ -394,35 +423,11 @@ export interface ConfigSettings {
|
|
|
394
423
|
displaySettings: {
|
|
395
424
|
[keys in OrderType]: ConfigDisplaySetting;
|
|
396
425
|
};
|
|
397
|
-
googleMaps:
|
|
398
|
-
apiKey: string;
|
|
399
|
-
apiKeyApp: string;
|
|
400
|
-
defaultCenter: {
|
|
401
|
-
lat: number;
|
|
402
|
-
lng: number;
|
|
403
|
-
};
|
|
404
|
-
icons: {
|
|
405
|
-
location: ConfigIcon;
|
|
406
|
-
locationSelected: ConfigIcon;
|
|
407
|
-
user: ConfigIcon;
|
|
408
|
-
};
|
|
409
|
-
styles: {
|
|
410
|
-
backgroundColor: string;
|
|
411
|
-
featureColor: string;
|
|
412
|
-
labelColor: string;
|
|
413
|
-
roadColor: string;
|
|
414
|
-
waterColor: string;
|
|
415
|
-
};
|
|
416
|
-
zoom: number;
|
|
417
|
-
};
|
|
426
|
+
googleMaps: GoogleMaps;
|
|
418
427
|
locationName: {
|
|
419
|
-
[keys in ServiceType | 'OUTPOST']:
|
|
428
|
+
[keys in ServiceType | 'OUTPOST']: string[];
|
|
420
429
|
};
|
|
421
430
|
maxDistance: number;
|
|
422
|
-
orderTypes:
|
|
423
|
-
recaptcha:
|
|
424
|
-
addCard: boolean;
|
|
425
|
-
donations: boolean;
|
|
426
|
-
giftCards: boolean;
|
|
427
|
-
};
|
|
431
|
+
orderTypes: ConfigOrderTypes[];
|
|
432
|
+
recaptcha: ConfigRecaptcha;
|
|
428
433
|
}
|
|
@@ -16,10 +16,11 @@ export interface GiftCardPurchased {
|
|
|
16
16
|
balance: string;
|
|
17
17
|
card_number: string;
|
|
18
18
|
}
|
|
19
|
+
export declare type GiftCardsPurchased = GiftCardPurchased[];
|
|
19
20
|
export interface GiftCardPurchaseData {
|
|
20
21
|
amount: string;
|
|
21
22
|
quantity: number;
|
|
22
|
-
email
|
|
23
|
+
email?: string;
|
|
23
24
|
}
|
|
24
25
|
export interface GiftCardsPurchase {
|
|
25
26
|
credit_card: CreditCardData | CreditCardSaved;
|
package/package.json
CHANGED