@open-tender/types 0.0.65 → 0.0.67

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.
@@ -45,7 +45,7 @@ export interface FavoriteItemGroup {
45
45
  export interface FavoriteItem {
46
46
  allergens: Array<string>;
47
47
  description: string;
48
- groups?: Array<FavoriteItemGroup>;
48
+ groups?: Array<Partial<FavoriteItemGroup>>;
49
49
  id: number;
50
50
  images: Array<FavoriteItemImage>;
51
51
  ingredients: string | null;
@@ -1,5 +1,6 @@
1
1
  import { RequestedAt } from '../datetimes';
2
2
  import { Decimal, Money, ServiceType, TaxTypeInt, Temperature } from '../global';
3
+ import { Favorite } from './favorite';
3
4
  export interface NutritionalInfo {
4
5
  calories: number;
5
6
  cholesterol: number;
@@ -101,6 +102,7 @@ export interface MenuItem extends Item {
101
102
  sizes: MenuItemSizes | null;
102
103
  upsell_items: number[] | null;
103
104
  use_options_wizard: 1 | 0;
105
+ favorite?: Favorite;
104
106
  }
105
107
  export declare type MenuItems = Array<MenuItem>;
106
108
  export declare type MenuCategoryAppearance = 'small' | 'medium' | 'large';
@@ -45,7 +45,7 @@ export interface FavoriteItemGroup {
45
45
  export interface FavoriteItem {
46
46
  allergens: Array<string>;
47
47
  description: string;
48
- groups?: Array<FavoriteItemGroup>;
48
+ groups?: Array<Partial<FavoriteItemGroup>>;
49
49
  id: number;
50
50
  images: Array<FavoriteItemImage>;
51
51
  ingredients: string | null;
@@ -1,5 +1,6 @@
1
1
  import { RequestedAt } from '../datetimes';
2
2
  import { Decimal, Money, ServiceType, TaxTypeInt, Temperature } from '../global';
3
+ import { Favorite } from './favorite';
3
4
  export interface NutritionalInfo {
4
5
  calories: number;
5
6
  cholesterol: number;
@@ -101,6 +102,7 @@ export interface MenuItem extends Item {
101
102
  sizes: MenuItemSizes | null;
102
103
  upsell_items: number[] | null;
103
104
  use_options_wizard: 1 | 0;
105
+ favorite?: Favorite;
104
106
  }
105
107
  export declare type MenuItems = Array<MenuItem>;
106
108
  export declare type MenuCategoryAppearance = 'small' | 'medium' | 'large';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-tender/types",
3
- "version": "0.0.65",
3
+ "version": "0.0.67",
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",