@open-tender/types 0.2.45 → 0.2.46

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.
@@ -93,6 +93,12 @@ export interface ConfigContentField {
93
93
  empty?: string;
94
94
  }
95
95
  export declare type ConfigOrderTypes = 'CATERING' | 'DELIVERY' | 'DONATIONS' | 'GIFT_CARDS' | 'GROUP' | 'MERCH' | 'OUTPOST' | 'PICKUP' | 'WALKIN';
96
+ declare type GuestSection = 'ANNOUNCEMENTS' | 'HERO' | 'CONTENT' | 'DEALS' | 'LOYALTY';
97
+ declare type GuestSections = GuestSection[];
98
+ declare type AccountSection = 'ANNOUNCEMENTS' | 'HERO' | 'CONTENT' | 'LOYALTY' | 'REWARDS' | 'DEALS' | 'ORDERS' | 'GROUP_ORDERS';
99
+ declare type AccountSections = AccountSection[];
100
+ declare type MenuSection = 'FEATURED' | 'FAVORITES' | 'RECENTS' | 'DEALS';
101
+ declare type MenuSections = MenuSection[];
96
102
  export interface ConfigContent {
97
103
  about: {
98
104
  background: string;
@@ -117,8 +123,8 @@ export interface ConfigContent {
117
123
  displayLogo: boolean;
118
124
  displayLogoApp: boolean;
119
125
  displayLogoMobile: boolean;
120
- displayed: Array<string>;
121
- displayedMobile: Array<string>;
126
+ displayed: AccountSections;
127
+ displayedMobile: AccountSections;
122
128
  favorites: ConfigContentField;
123
129
  giftCards: ConfigContentField;
124
130
  greeting: string;
@@ -229,8 +235,8 @@ export interface ConfigContent {
229
235
  displayLogo: boolean;
230
236
  displayLogoApp: boolean;
231
237
  displayLogoMobile: boolean;
232
- displayed: Array<string>;
233
- displayedMobile: Array<string>;
238
+ displayed: GuestSections;
239
+ displayedMobile: GuestSections;
234
240
  mobile: string;
235
241
  showGuest: boolean;
236
242
  subtitle: string;
@@ -251,8 +257,8 @@ export interface ConfigContent {
251
257
  menu: {
252
258
  background: string;
253
259
  cartErrors: ConfigContentField;
254
- displayed: Array<string>;
255
- displayedMobile: Array<string>;
260
+ displayed: MenuSections;
261
+ displayedMobile: MenuSections;
256
262
  loadingMessage: string;
257
263
  mobile: string;
258
264
  soldOutMessage: string;
@@ -442,3 +448,4 @@ export interface ConfigSettings {
442
448
  orderTypes: ConfigOrderTypes[];
443
449
  recaptcha: ConfigRecaptcha;
444
450
  }
451
+ export {};
@@ -93,6 +93,12 @@ export interface ConfigContentField {
93
93
  empty?: string;
94
94
  }
95
95
  export declare type ConfigOrderTypes = 'CATERING' | 'DELIVERY' | 'DONATIONS' | 'GIFT_CARDS' | 'GROUP' | 'MERCH' | 'OUTPOST' | 'PICKUP' | 'WALKIN';
96
+ declare type GuestSection = 'ANNOUNCEMENTS' | 'HERO' | 'CONTENT' | 'DEALS' | 'LOYALTY';
97
+ declare type GuestSections = GuestSection[];
98
+ declare type AccountSection = 'ANNOUNCEMENTS' | 'HERO' | 'CONTENT' | 'LOYALTY' | 'REWARDS' | 'DEALS' | 'ORDERS' | 'GROUP_ORDERS';
99
+ declare type AccountSections = AccountSection[];
100
+ declare type MenuSection = 'FEATURED' | 'FAVORITES' | 'RECENTS' | 'DEALS';
101
+ declare type MenuSections = MenuSection[];
96
102
  export interface ConfigContent {
97
103
  about: {
98
104
  background: string;
@@ -117,8 +123,8 @@ export interface ConfigContent {
117
123
  displayLogo: boolean;
118
124
  displayLogoApp: boolean;
119
125
  displayLogoMobile: boolean;
120
- displayed: Array<string>;
121
- displayedMobile: Array<string>;
126
+ displayed: AccountSections;
127
+ displayedMobile: AccountSections;
122
128
  favorites: ConfigContentField;
123
129
  giftCards: ConfigContentField;
124
130
  greeting: string;
@@ -229,8 +235,8 @@ export interface ConfigContent {
229
235
  displayLogo: boolean;
230
236
  displayLogoApp: boolean;
231
237
  displayLogoMobile: boolean;
232
- displayed: Array<string>;
233
- displayedMobile: Array<string>;
238
+ displayed: GuestSections;
239
+ displayedMobile: GuestSections;
234
240
  mobile: string;
235
241
  showGuest: boolean;
236
242
  subtitle: string;
@@ -251,8 +257,8 @@ export interface ConfigContent {
251
257
  menu: {
252
258
  background: string;
253
259
  cartErrors: ConfigContentField;
254
- displayed: Array<string>;
255
- displayedMobile: Array<string>;
260
+ displayed: MenuSections;
261
+ displayedMobile: MenuSections;
256
262
  loadingMessage: string;
257
263
  mobile: string;
258
264
  soldOutMessage: string;
@@ -442,3 +448,4 @@ export interface ConfigSettings {
442
448
  orderTypes: ConfigOrderTypes[];
443
449
  recaptcha: ConfigRecaptcha;
444
450
  }
451
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-tender/types",
3
- "version": "0.2.45",
3
+ "version": "0.2.46",
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",