@open-tender/types 0.2.27 → 0.2.29

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.
@@ -319,7 +319,7 @@ export interface ConfigContent {
319
319
  };
320
320
  };
321
321
  }
322
- export interface ConfigSettingsCheckout {
322
+ export interface ConfigSettingsCheckoutOrderType {
323
323
  address_company: string | null;
324
324
  address_contact: string | null;
325
325
  address_phone: string | null;
@@ -331,16 +331,20 @@ 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
+ export declare type ConfigDisplaySettingMenuType = 'DEFAULT' | 'SCROLLABLE';
335
+ export declare type ConfigDisplaySettingMenuTypeApp = ConfigDisplaySettingMenuType | 'TABS';
336
+ export declare type ConfigDisplaySettingBuilderType = 'PAGE' | 'PAGE_FULL' | 'DEFAULT' | 'SIDEBAR';
337
+ export declare type ConfigDisplaySettingGroupsTypeApp = 'SCROLLABLE' | 'TABS';
338
+ export declare type ConfigDisplaySettingModifiersType = 'DEFAULT' | 'CARDS';
339
+ export declare type ConfigDisplaySettingDescriptionType = 'SHOW' | 'SHORT' | 'HIDE';
336
340
  export interface ConfigDisplaySetting {
337
341
  allergens: boolean;
338
342
  builderImages: boolean;
339
- builderType: string;
343
+ builderType: ConfigDisplaySettingBuilderType;
340
344
  calories: boolean;
341
345
  categoryType: string;
342
346
  categoryTypeMobile: string;
343
- groupsTypeApp: string;
347
+ groupsTypeApp: ConfigDisplaySettingGroupsTypeApp;
344
348
  hasCustomize: boolean;
345
349
  itemsTwoPerRowMobile: boolean;
346
350
  madeFor: boolean;
@@ -349,15 +353,15 @@ export interface ConfigDisplaySetting {
349
353
  menuHeroChildMobile: boolean;
350
354
  menuHeroMobile: boolean;
351
355
  menuImages: boolean;
352
- menuItemDescription: 'SHOW' | 'SHORT' | 'HIDE';
353
- menuItemDescriptionMobile: 'SHOW' | 'SHORT' | 'HIDE';
354
- menuType: MenuType;
355
- menuTypeApp: MenuTypeApp;
356
- menuTypeMobile: MenuType;
356
+ menuItemDescription: ConfigDisplaySettingDescriptionType;
357
+ menuItemDescriptionMobile: ConfigDisplaySettingDescriptionType;
358
+ menuType: ConfigDisplaySettingMenuType;
359
+ menuTypeApp: ConfigDisplaySettingMenuTypeApp;
360
+ menuTypeMobile: ConfigDisplaySettingMenuType;
357
361
  modifierDescription: boolean;
358
362
  modifierGroupDescription: boolean;
359
363
  modifierImage: boolean;
360
- modifiersType: string;
364
+ modifiersType: ConfigDisplaySettingModifiersType;
361
365
  notes: boolean;
362
366
  quickAdd: boolean;
363
367
  quickAddMobile: boolean;
@@ -408,25 +412,29 @@ export interface ConfigRecaptcha {
408
412
  donations: boolean;
409
413
  giftCards: boolean;
410
414
  }
411
- export interface ConfigSettings {
412
- accountSections: Array<string>;
413
- autoSelect: {
414
- [keys in OrderType]: {
415
- [keys in ServiceType]?: boolean;
416
- };
417
- };
418
- checkout: {
419
- orderTypes: {
420
- [keys in OrderType]: ConfigSettingsCheckout;
421
- };
415
+ export declare type ConfigSettingsAutoselect = {
416
+ [keys in OrderType]: {
417
+ [keys in ServiceType]?: boolean;
422
418
  };
423
- displaySettings: {
424
- [keys in OrderType]: ConfigDisplaySetting;
419
+ };
420
+ export declare type ConfigSettingsCheckout = {
421
+ orderTypes: {
422
+ [keys in OrderType]: ConfigSettingsCheckoutOrderType;
425
423
  };
424
+ };
425
+ export declare type ConfigSettingsDisplaySettings = {
426
+ [keys in OrderType]: ConfigDisplaySetting;
427
+ };
428
+ export declare type ConfigSettingsLocationName = {
429
+ [keys in ServiceType | 'OUTPOST']: string[];
430
+ };
431
+ export interface ConfigSettings {
432
+ accountSections: string[];
433
+ autoSelect: ConfigSettingsAutoselect;
434
+ checkout: ConfigSettingsCheckout;
435
+ displaySettings: ConfigSettingsDisplaySettings;
426
436
  googleMaps: GoogleMaps;
427
- locationName: {
428
- [keys in ServiceType | 'OUTPOST']: string[];
429
- };
437
+ locationName: ConfigSettingsLocationName;
430
438
  maxDistance: number;
431
439
  orderTypes: ConfigOrderTypes[];
432
440
  recaptcha: ConfigRecaptcha;
@@ -319,7 +319,7 @@ export interface ConfigContent {
319
319
  };
320
320
  };
321
321
  }
322
- export interface ConfigSettingsCheckout {
322
+ export interface ConfigSettingsCheckoutOrderType {
323
323
  address_company: string | null;
324
324
  address_contact: string | null;
325
325
  address_phone: string | null;
@@ -331,16 +331,20 @@ 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
+ export declare type ConfigDisplaySettingMenuType = 'DEFAULT' | 'SCROLLABLE';
335
+ export declare type ConfigDisplaySettingMenuTypeApp = ConfigDisplaySettingMenuType | 'TABS';
336
+ export declare type ConfigDisplaySettingBuilderType = 'PAGE' | 'PAGE_FULL' | 'DEFAULT' | 'SIDEBAR';
337
+ export declare type ConfigDisplaySettingGroupsTypeApp = 'SCROLLABLE' | 'TABS';
338
+ export declare type ConfigDisplaySettingModifiersType = 'DEFAULT' | 'CARDS';
339
+ export declare type ConfigDisplaySettingDescriptionType = 'SHOW' | 'SHORT' | 'HIDE';
336
340
  export interface ConfigDisplaySetting {
337
341
  allergens: boolean;
338
342
  builderImages: boolean;
339
- builderType: string;
343
+ builderType: ConfigDisplaySettingBuilderType;
340
344
  calories: boolean;
341
345
  categoryType: string;
342
346
  categoryTypeMobile: string;
343
- groupsTypeApp: string;
347
+ groupsTypeApp: ConfigDisplaySettingGroupsTypeApp;
344
348
  hasCustomize: boolean;
345
349
  itemsTwoPerRowMobile: boolean;
346
350
  madeFor: boolean;
@@ -349,15 +353,15 @@ export interface ConfigDisplaySetting {
349
353
  menuHeroChildMobile: boolean;
350
354
  menuHeroMobile: boolean;
351
355
  menuImages: boolean;
352
- menuItemDescription: 'SHOW' | 'SHORT' | 'HIDE';
353
- menuItemDescriptionMobile: 'SHOW' | 'SHORT' | 'HIDE';
354
- menuType: MenuType;
355
- menuTypeApp: MenuTypeApp;
356
- menuTypeMobile: MenuType;
356
+ menuItemDescription: ConfigDisplaySettingDescriptionType;
357
+ menuItemDescriptionMobile: ConfigDisplaySettingDescriptionType;
358
+ menuType: ConfigDisplaySettingMenuType;
359
+ menuTypeApp: ConfigDisplaySettingMenuTypeApp;
360
+ menuTypeMobile: ConfigDisplaySettingMenuType;
357
361
  modifierDescription: boolean;
358
362
  modifierGroupDescription: boolean;
359
363
  modifierImage: boolean;
360
- modifiersType: string;
364
+ modifiersType: ConfigDisplaySettingModifiersType;
361
365
  notes: boolean;
362
366
  quickAdd: boolean;
363
367
  quickAddMobile: boolean;
@@ -408,25 +412,29 @@ export interface ConfigRecaptcha {
408
412
  donations: boolean;
409
413
  giftCards: boolean;
410
414
  }
411
- export interface ConfigSettings {
412
- accountSections: Array<string>;
413
- autoSelect: {
414
- [keys in OrderType]: {
415
- [keys in ServiceType]?: boolean;
416
- };
417
- };
418
- checkout: {
419
- orderTypes: {
420
- [keys in OrderType]: ConfigSettingsCheckout;
421
- };
415
+ export declare type ConfigSettingsAutoselect = {
416
+ [keys in OrderType]: {
417
+ [keys in ServiceType]?: boolean;
422
418
  };
423
- displaySettings: {
424
- [keys in OrderType]: ConfigDisplaySetting;
419
+ };
420
+ export declare type ConfigSettingsCheckout = {
421
+ orderTypes: {
422
+ [keys in OrderType]: ConfigSettingsCheckoutOrderType;
425
423
  };
424
+ };
425
+ export declare type ConfigSettingsDisplaySettings = {
426
+ [keys in OrderType]: ConfigDisplaySetting;
427
+ };
428
+ export declare type ConfigSettingsLocationName = {
429
+ [keys in ServiceType | 'OUTPOST']: string[];
430
+ };
431
+ export interface ConfigSettings {
432
+ accountSections: string[];
433
+ autoSelect: ConfigSettingsAutoselect;
434
+ checkout: ConfigSettingsCheckout;
435
+ displaySettings: ConfigSettingsDisplaySettings;
426
436
  googleMaps: GoogleMaps;
427
- locationName: {
428
- [keys in ServiceType | 'OUTPOST']: string[];
429
- };
437
+ locationName: ConfigSettingsLocationName;
430
438
  maxDistance: number;
431
439
  orderTypes: ConfigOrderTypes[];
432
440
  recaptcha: ConfigRecaptcha;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-tender/types",
3
- "version": "0.2.27",
3
+ "version": "0.2.29",
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",