@open-tender/types 0.2.96 → 0.2.98

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;
@@ -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,10 +100,6 @@ export interface MenuItem {
96
100
  temperature: Temperature;
97
101
  upsell_items: number[];
98
102
  }
99
- export interface MenuItemWithFavorite extends MenuItem {
100
- favorite: Favorite;
101
- }
102
- export declare type MenuItemsWithFavorites = MenuItemWithFavorite[];
103
103
  export interface OptionItem extends MenuItem {
104
104
  opt_is_default: boolean;
105
105
  }
@@ -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;
@@ -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,10 +100,6 @@ export interface MenuItem {
96
100
  temperature: Temperature;
97
101
  upsell_items: number[];
98
102
  }
99
- export interface MenuItemWithFavorite extends MenuItem {
100
- favorite: Favorite;
101
- }
102
- export declare type MenuItemsWithFavorites = MenuItemWithFavorite[];
103
103
  export interface OptionItem extends MenuItem {
104
104
  opt_is_default: boolean;
105
105
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-tender/types",
3
- "version": "0.2.96",
3
+ "version": "0.2.98",
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",