@open-tender/types 0.2.6 → 0.2.8
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/config.d.ts +5 -3
- package/dist/cjs/types/api/customer/thanx.d.ts +15 -2
- package/dist/cjs/types/api/deals.d.ts +2 -2
- package/dist/cjs/types/api/theme.d.ts +2 -2
- package/dist/esm/types/api/config.d.ts +5 -3
- package/dist/esm/types/api/customer/thanx.d.ts +15 -2
- package/dist/esm/types/api/deals.d.ts +2 -2
- package/dist/esm/types/api/theme.d.ts +2 -2
- package/package.json +1 -1
|
@@ -331,6 +331,8 @@ export interface ConfigSettingsCheckout {
|
|
|
331
331
|
details_servingUtensils: string | null;
|
|
332
332
|
promo_code_limit: number;
|
|
333
333
|
}
|
|
334
|
+
export declare type MenuType = 'DEFAULT' | 'SCROLLABLE';
|
|
335
|
+
export declare type MenuTypeApp = MenuType | 'TABS';
|
|
334
336
|
export interface ConfigDisplaySetting {
|
|
335
337
|
allergens: boolean;
|
|
336
338
|
builderImages: boolean;
|
|
@@ -349,9 +351,9 @@ export interface ConfigDisplaySetting {
|
|
|
349
351
|
menuImages: boolean;
|
|
350
352
|
menuItemDescription: 'SHOW' | 'SHORT' | 'HIDE';
|
|
351
353
|
menuItemDescriptionMobile: 'SHOW' | 'SHORT' | 'HIDE';
|
|
352
|
-
menuType:
|
|
353
|
-
menuTypeApp:
|
|
354
|
-
menuTypeMobile:
|
|
354
|
+
menuType: MenuType;
|
|
355
|
+
menuTypeApp: MenuTypeApp;
|
|
356
|
+
menuTypeMobile: MenuType;
|
|
355
357
|
modifierDescription: boolean;
|
|
356
358
|
modifierGroupDescription: boolean;
|
|
357
359
|
modifierImage: boolean;
|
|
@@ -1,13 +1,26 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DateString } from '../../datetimes';
|
|
2
|
+
import { DiscountType, Money } from '../../global';
|
|
2
3
|
export interface ThanxProgress {
|
|
3
4
|
percentage: string;
|
|
4
5
|
towards: string;
|
|
5
6
|
}
|
|
7
|
+
export interface ThanxReward {
|
|
8
|
+
amount: Money;
|
|
9
|
+
description: string;
|
|
10
|
+
discount_type: DiscountType;
|
|
11
|
+
ext_id: string;
|
|
12
|
+
items: number[];
|
|
13
|
+
max_amount: Money;
|
|
14
|
+
min_order_size: Money;
|
|
15
|
+
name: string;
|
|
16
|
+
retire_at: DateString | null;
|
|
17
|
+
}
|
|
18
|
+
export declare type ThanxRewards = ThanxReward[];
|
|
6
19
|
export interface Thanx {
|
|
7
20
|
email: string;
|
|
8
21
|
ext_id: string;
|
|
9
22
|
first_name: string;
|
|
10
23
|
last_name: string;
|
|
11
24
|
progress: ThanxProgress;
|
|
12
|
-
rewards:
|
|
25
|
+
rewards: ThanxRewards;
|
|
13
26
|
}
|
|
@@ -26,7 +26,7 @@ export interface Deal {
|
|
|
26
26
|
short_description: string;
|
|
27
27
|
start_date: string;
|
|
28
28
|
title: string;
|
|
29
|
-
revenue_centers?:
|
|
29
|
+
revenue_centers?: RevenueCenter[];
|
|
30
30
|
channel_type?: string;
|
|
31
31
|
}
|
|
32
|
-
export declare type Deals =
|
|
32
|
+
export declare type Deals = Deal[];
|
|
@@ -321,7 +321,7 @@ export interface ThemeItem extends Record<string, ThemeItemStyles> {
|
|
|
321
321
|
desktop: ThemeItemStyles;
|
|
322
322
|
mobile: ThemeItemStyles;
|
|
323
323
|
}
|
|
324
|
-
export interface ThemeItemsStyles extends Record<string, string> {
|
|
324
|
+
export interface ThemeItemsStyles extends Record<string, string | number> {
|
|
325
325
|
containerMaxWidth: string;
|
|
326
326
|
gap: string;
|
|
327
327
|
gapDouble: string;
|
|
@@ -329,7 +329,7 @@ export interface ThemeItemsStyles extends Record<string, string> {
|
|
|
329
329
|
justifyContent: string;
|
|
330
330
|
marginBottom: string;
|
|
331
331
|
minWidth: string;
|
|
332
|
-
perRow:
|
|
332
|
+
perRow: number;
|
|
333
333
|
width: string;
|
|
334
334
|
}
|
|
335
335
|
export interface ThemeItems extends Record<string, ThemeItemsStyles> {
|
|
@@ -331,6 +331,8 @@ export interface ConfigSettingsCheckout {
|
|
|
331
331
|
details_servingUtensils: string | null;
|
|
332
332
|
promo_code_limit: number;
|
|
333
333
|
}
|
|
334
|
+
export declare type MenuType = 'DEFAULT' | 'SCROLLABLE';
|
|
335
|
+
export declare type MenuTypeApp = MenuType | 'TABS';
|
|
334
336
|
export interface ConfigDisplaySetting {
|
|
335
337
|
allergens: boolean;
|
|
336
338
|
builderImages: boolean;
|
|
@@ -349,9 +351,9 @@ export interface ConfigDisplaySetting {
|
|
|
349
351
|
menuImages: boolean;
|
|
350
352
|
menuItemDescription: 'SHOW' | 'SHORT' | 'HIDE';
|
|
351
353
|
menuItemDescriptionMobile: 'SHOW' | 'SHORT' | 'HIDE';
|
|
352
|
-
menuType:
|
|
353
|
-
menuTypeApp:
|
|
354
|
-
menuTypeMobile:
|
|
354
|
+
menuType: MenuType;
|
|
355
|
+
menuTypeApp: MenuTypeApp;
|
|
356
|
+
menuTypeMobile: MenuType;
|
|
355
357
|
modifierDescription: boolean;
|
|
356
358
|
modifierGroupDescription: boolean;
|
|
357
359
|
modifierImage: boolean;
|
|
@@ -1,13 +1,26 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DateString } from '../../datetimes';
|
|
2
|
+
import { DiscountType, Money } from '../../global';
|
|
2
3
|
export interface ThanxProgress {
|
|
3
4
|
percentage: string;
|
|
4
5
|
towards: string;
|
|
5
6
|
}
|
|
7
|
+
export interface ThanxReward {
|
|
8
|
+
amount: Money;
|
|
9
|
+
description: string;
|
|
10
|
+
discount_type: DiscountType;
|
|
11
|
+
ext_id: string;
|
|
12
|
+
items: number[];
|
|
13
|
+
max_amount: Money;
|
|
14
|
+
min_order_size: Money;
|
|
15
|
+
name: string;
|
|
16
|
+
retire_at: DateString | null;
|
|
17
|
+
}
|
|
18
|
+
export declare type ThanxRewards = ThanxReward[];
|
|
6
19
|
export interface Thanx {
|
|
7
20
|
email: string;
|
|
8
21
|
ext_id: string;
|
|
9
22
|
first_name: string;
|
|
10
23
|
last_name: string;
|
|
11
24
|
progress: ThanxProgress;
|
|
12
|
-
rewards:
|
|
25
|
+
rewards: ThanxRewards;
|
|
13
26
|
}
|
|
@@ -26,7 +26,7 @@ export interface Deal {
|
|
|
26
26
|
short_description: string;
|
|
27
27
|
start_date: string;
|
|
28
28
|
title: string;
|
|
29
|
-
revenue_centers?:
|
|
29
|
+
revenue_centers?: RevenueCenter[];
|
|
30
30
|
channel_type?: string;
|
|
31
31
|
}
|
|
32
|
-
export declare type Deals =
|
|
32
|
+
export declare type Deals = Deal[];
|
|
@@ -321,7 +321,7 @@ export interface ThemeItem extends Record<string, ThemeItemStyles> {
|
|
|
321
321
|
desktop: ThemeItemStyles;
|
|
322
322
|
mobile: ThemeItemStyles;
|
|
323
323
|
}
|
|
324
|
-
export interface ThemeItemsStyles extends Record<string, string> {
|
|
324
|
+
export interface ThemeItemsStyles extends Record<string, string | number> {
|
|
325
325
|
containerMaxWidth: string;
|
|
326
326
|
gap: string;
|
|
327
327
|
gapDouble: string;
|
|
@@ -329,7 +329,7 @@ export interface ThemeItemsStyles extends Record<string, string> {
|
|
|
329
329
|
justifyContent: string;
|
|
330
330
|
marginBottom: string;
|
|
331
331
|
minWidth: string;
|
|
332
|
-
perRow:
|
|
332
|
+
perRow: number;
|
|
333
333
|
width: string;
|
|
334
334
|
}
|
|
335
335
|
export interface ThemeItems extends Record<string, ThemeItemsStyles> {
|
package/package.json
CHANGED