@open-tender/types 0.2.97 → 0.2.99

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.
@@ -60,12 +60,16 @@ export interface MenuItemGroup {
60
60
  small_image_url: string | null;
61
61
  }
62
62
  export declare type MenuItemGroups = MenuItemGroup[];
63
+ export interface MenuItemFavorite {
64
+ item: SimpleCartItem;
65
+ }
63
66
  export interface MenuItem {
64
67
  allergens: string | null;
65
68
  app_image_url: string | null;
66
69
  calories: number | null;
67
70
  description: string | null;
68
71
  dimensions: number[] | null;
72
+ favorite?: MenuItemFavorite;
69
73
  featured_position: number | null;
70
74
  id: number;
71
75
  increment: number;
@@ -96,13 +100,6 @@ export interface MenuItem {
96
100
  temperature: Temperature;
97
101
  upsell_items: number[];
98
102
  }
99
- export interface MenuItemFavorite {
100
- item: SimpleCartItem;
101
- }
102
- export interface MenuItemWithFavorite extends MenuItem {
103
- favorite: MenuItemFavorite;
104
- }
105
- export declare type MenuItemsWithFavorites = MenuItemWithFavorite[];
106
103
  export interface OptionItem extends MenuItem {
107
104
  opt_is_default: boolean;
108
105
  }
@@ -100,6 +100,7 @@ export interface OrderDiscount {
100
100
  is_loyalty: boolean;
101
101
  is_optional?: boolean;
102
102
  is_promo_code: boolean;
103
+ is_redeemable?: boolean;
103
104
  is_reward: boolean;
104
105
  name: string;
105
106
  per_order: number | null;
@@ -60,12 +60,16 @@ export interface MenuItemGroup {
60
60
  small_image_url: string | null;
61
61
  }
62
62
  export declare type MenuItemGroups = MenuItemGroup[];
63
+ export interface MenuItemFavorite {
64
+ item: SimpleCartItem;
65
+ }
63
66
  export interface MenuItem {
64
67
  allergens: string | null;
65
68
  app_image_url: string | null;
66
69
  calories: number | null;
67
70
  description: string | null;
68
71
  dimensions: number[] | null;
72
+ favorite?: MenuItemFavorite;
69
73
  featured_position: number | null;
70
74
  id: number;
71
75
  increment: number;
@@ -96,13 +100,6 @@ export interface MenuItem {
96
100
  temperature: Temperature;
97
101
  upsell_items: number[];
98
102
  }
99
- export interface MenuItemFavorite {
100
- item: SimpleCartItem;
101
- }
102
- export interface MenuItemWithFavorite extends MenuItem {
103
- favorite: MenuItemFavorite;
104
- }
105
- export declare type MenuItemsWithFavorites = MenuItemWithFavorite[];
106
103
  export interface OptionItem extends MenuItem {
107
104
  opt_is_default: boolean;
108
105
  }
@@ -100,6 +100,7 @@ export interface OrderDiscount {
100
100
  is_loyalty: boolean;
101
101
  is_optional?: boolean;
102
102
  is_promo_code: boolean;
103
+ is_redeemable?: boolean;
103
104
  is_reward: boolean;
104
105
  name: string;
105
106
  per_order: number | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-tender/types",
3
- "version": "0.2.97",
3
+ "version": "0.2.99",
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",