@open-tender/types 0.2.95 → 0.2.97

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.
@@ -1,8 +1,8 @@
1
1
  import { RequestedAt } from '../datetimes';
2
2
  import { Decimal, Money, ServiceType, TaxTypeInt, Temperature } from '../global';
3
3
  import { Cart, CartErrors } from './cart';
4
+ import { SimpleCartItem } from './checkout';
4
5
  import { MenuSection } from './config';
5
- import { Favorite } from './favorite';
6
6
  export interface NutritionalInfo {
7
7
  calories: number;
8
8
  cholesterol: number;
@@ -96,9 +96,13 @@ export interface MenuItem {
96
96
  temperature: Temperature;
97
97
  upsell_items: number[];
98
98
  }
99
+ export interface MenuItemFavorite {
100
+ item: SimpleCartItem;
101
+ }
99
102
  export interface MenuItemWithFavorite extends MenuItem {
100
- favorite: Favorite;
103
+ favorite: MenuItemFavorite;
101
104
  }
105
+ export declare type MenuItemsWithFavorites = MenuItemWithFavorite[];
102
106
  export interface OptionItem extends MenuItem {
103
107
  opt_is_default: boolean;
104
108
  }
@@ -1,8 +1,8 @@
1
1
  import { RequestedAt } from '../datetimes';
2
2
  import { Decimal, Money, ServiceType, TaxTypeInt, Temperature } from '../global';
3
3
  import { Cart, CartErrors } from './cart';
4
+ import { SimpleCartItem } from './checkout';
4
5
  import { MenuSection } from './config';
5
- import { Favorite } from './favorite';
6
6
  export interface NutritionalInfo {
7
7
  calories: number;
8
8
  cholesterol: number;
@@ -96,9 +96,13 @@ export interface MenuItem {
96
96
  temperature: Temperature;
97
97
  upsell_items: number[];
98
98
  }
99
+ export interface MenuItemFavorite {
100
+ item: SimpleCartItem;
101
+ }
99
102
  export interface MenuItemWithFavorite extends MenuItem {
100
- favorite: Favorite;
103
+ favorite: MenuItemFavorite;
101
104
  }
105
+ export declare type MenuItemsWithFavorites = MenuItemWithFavorite[];
102
106
  export interface OptionItem extends MenuItem {
103
107
  opt_is_default: boolean;
104
108
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-tender/types",
3
- "version": "0.2.95",
3
+ "version": "0.2.97",
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",