@open-tender/types 0.4.144 → 0.4.146

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.
@@ -58,6 +58,7 @@ export interface StoreGratuity {
58
58
  }
59
59
  export declare type MenuType = 'SCROLLABLE' | 'PAGE';
60
60
  export declare type NavigationPageType = 'TOP' | 'LEFT' | 'RIGHT';
61
+ export declare type PrepTypeAll = 'TAKE_OUT' | 'EAT_HERE' | 'ALL' | 'NEVER';
61
62
  export interface StoreHoursWeekday {
62
63
  day: number;
63
64
  end_min: number;
@@ -84,7 +85,7 @@ export interface Store {
84
85
  display_favorites: boolean;
85
86
  display_featured: boolean;
86
87
  display_gratuity: boolean;
87
- display_guest_name: boolean;
88
+ display_guest_name: PrepTypeAll;
88
89
  display_guest_phone: boolean;
89
90
  display_ingredients: boolean;
90
91
  display_made_for: boolean;
@@ -137,7 +138,7 @@ export interface Store {
137
138
  warning_minutes: number;
138
139
  week_start_day: Weekday;
139
140
  display_category_nav_page: boolean;
140
- guest_name_required: boolean;
141
+ guest_name_required: PrepTypeAll;
141
142
  menu_type: MenuType;
142
143
  navigation_page: NavigationPageType;
143
144
  collect_table_number: boolean;
@@ -692,6 +692,19 @@ export interface ThemeWelcome extends Record<string, ThemeWelcomeStyles> {
692
692
  desktop: ThemeWelcomeStyles;
693
693
  mobile: ThemeWelcomeStyles;
694
694
  }
695
+ export declare type ThemeAccountWidgetType = 'ACCOUNT_SUMMERY' | 'WELCOME_BACK';
696
+ export interface ThemeAccountWidget {
697
+ type: ThemeAccountWidgetType;
698
+ bgColor: string;
699
+ borderRadius: number;
700
+ boxShadow: string;
701
+ padding: number;
702
+ }
703
+ export interface ThemeLoyalty {
704
+ sections: {
705
+ accountWidget: ThemeAccountWidget;
706
+ };
707
+ }
695
708
  export interface Theme {
696
709
  alert: ThemeAlert;
697
710
  bgColors: ThemeBackgroundColors;
@@ -725,6 +738,7 @@ export interface Theme {
725
738
  success: ThemeAlert;
726
739
  toast: ThemeAlert;
727
740
  welcome: ThemeWelcome;
741
+ loyalty: ThemeLoyalty;
728
742
  }
729
743
  export interface ThemeWelcomeStylesApp extends Omit<ThemeWelcomeStyles, 'titleLineHeight' | 'subtitleLineHeight'> {
730
744
  titleLineHeight: string;
@@ -58,6 +58,7 @@ export interface StoreGratuity {
58
58
  }
59
59
  export declare type MenuType = 'SCROLLABLE' | 'PAGE';
60
60
  export declare type NavigationPageType = 'TOP' | 'LEFT' | 'RIGHT';
61
+ export declare type PrepTypeAll = 'TAKE_OUT' | 'EAT_HERE' | 'ALL' | 'NEVER';
61
62
  export interface StoreHoursWeekday {
62
63
  day: number;
63
64
  end_min: number;
@@ -84,7 +85,7 @@ export interface Store {
84
85
  display_favorites: boolean;
85
86
  display_featured: boolean;
86
87
  display_gratuity: boolean;
87
- display_guest_name: boolean;
88
+ display_guest_name: PrepTypeAll;
88
89
  display_guest_phone: boolean;
89
90
  display_ingredients: boolean;
90
91
  display_made_for: boolean;
@@ -137,7 +138,7 @@ export interface Store {
137
138
  warning_minutes: number;
138
139
  week_start_day: Weekday;
139
140
  display_category_nav_page: boolean;
140
- guest_name_required: boolean;
141
+ guest_name_required: PrepTypeAll;
141
142
  menu_type: MenuType;
142
143
  navigation_page: NavigationPageType;
143
144
  collect_table_number: boolean;
@@ -692,6 +692,19 @@ export interface ThemeWelcome extends Record<string, ThemeWelcomeStyles> {
692
692
  desktop: ThemeWelcomeStyles;
693
693
  mobile: ThemeWelcomeStyles;
694
694
  }
695
+ export declare type ThemeAccountWidgetType = 'ACCOUNT_SUMMERY' | 'WELCOME_BACK';
696
+ export interface ThemeAccountWidget {
697
+ type: ThemeAccountWidgetType;
698
+ bgColor: string;
699
+ borderRadius: number;
700
+ boxShadow: string;
701
+ padding: number;
702
+ }
703
+ export interface ThemeLoyalty {
704
+ sections: {
705
+ accountWidget: ThemeAccountWidget;
706
+ };
707
+ }
695
708
  export interface Theme {
696
709
  alert: ThemeAlert;
697
710
  bgColors: ThemeBackgroundColors;
@@ -725,6 +738,7 @@ export interface Theme {
725
738
  success: ThemeAlert;
726
739
  toast: ThemeAlert;
727
740
  welcome: ThemeWelcome;
741
+ loyalty: ThemeLoyalty;
728
742
  }
729
743
  export interface ThemeWelcomeStylesApp extends Omit<ThemeWelcomeStyles, 'titleLineHeight' | 'subtitleLineHeight'> {
730
744
  titleLineHeight: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-tender/types",
3
- "version": "0.4.144",
3
+ "version": "0.4.146",
4
4
  "description": "A library of types for use with Open Tender applications that utilize our cloud-based Order API.",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/esm/index.js",