@open-tender/types 0.4.97 → 0.4.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.
@@ -1,4 +1,4 @@
1
- import { MenuItemAllergens, MenuItemTags, NutritionalInfo } from './menu';
1
+ import { MenuItemAllergens, MenuItemTags, NutritionalInfo, PizzaShape } from './menu';
2
2
  import { OrderItemPoints } from './order';
3
3
  export interface BaseItemGroup {
4
4
  id: number;
@@ -14,7 +14,6 @@ export interface BaseItem {
14
14
  groups: BaseItemGroups;
15
15
  }
16
16
  export declare type BaseItems = BaseItem[];
17
- export declare type PizzaShape = 'CIRCULAR' | 'RECTANGULAR';
18
17
  export interface CartItemOption {
19
18
  allergens: string[];
20
19
  allergens_list?: MenuItemAllergens;
@@ -44,7 +43,8 @@ export interface CartItemOption {
44
43
  totalCals: number | null;
45
44
  totalPoints: number | null;
46
45
  totalPrice: number | null;
47
- shape: PizzaShape | null;
46
+ itemShape: PizzaShape | null;
47
+ excludeFromBuilder: boolean;
48
48
  }
49
49
  export declare type CartItemOptions = CartItemOption[];
50
50
  export interface CartItemOptionWithGroup extends CartItemOption {
@@ -80,7 +80,8 @@ export interface CartItemGroup {
80
80
  name: string;
81
81
  options: CartItemOptions;
82
82
  quantity: number;
83
- shape: PizzaShape | null;
83
+ itemShape: PizzaShape | null;
84
+ excludeFromBuilder: boolean;
84
85
  }
85
86
  export declare type CartItemGroups = CartItemGroup[];
86
87
  export declare type Cart = CartItem[];
@@ -356,6 +356,7 @@ export interface OrderCreatePos extends Omit<OrderCreate, 'customer'> {
356
356
  phone?: string | null;
357
357
  prep_type?: PrepType | null;
358
358
  notes_internal?: string | null;
359
+ device_type?: DeviceType | null;
359
360
  }
360
361
  export interface OrderCreateSendReceipt {
361
362
  email: string | null;
@@ -58,6 +58,8 @@ export interface MenuItemGroup {
58
58
  short_name: string;
59
59
  slug: string;
60
60
  small_image_url: string | null;
61
+ item_shape: PizzaShape | null;
62
+ exclude_from_builder: boolean;
61
63
  }
62
64
  export declare type MenuItemGroups = MenuItemGroup[];
63
65
  export interface MenuItemFavorite {
@@ -81,6 +83,7 @@ export interface MenuItemTag {
81
83
  tag_id: number;
82
84
  }
83
85
  export declare type MenuItemTags = MenuItemTag[];
86
+ export declare type PizzaShape = 'CIRCULAR' | 'RECTANGULAR';
84
87
  export interface MenuItem {
85
88
  allergens: string | null;
86
89
  allergens_list?: MenuItemAllergens;
@@ -119,6 +122,8 @@ export interface MenuItem {
119
122
  taxes: MenuItemTaxes;
120
123
  temperature: Temperature;
121
124
  upsell_items: number[];
125
+ item_shape: PizzaShape | null;
126
+ exclude_from_builder: boolean;
122
127
  }
123
128
  export interface OptionItem extends MenuItem {
124
129
  opt_is_default: boolean;
@@ -1,4 +1,4 @@
1
- import { MenuItemAllergens, MenuItemTags, NutritionalInfo } from './menu';
1
+ import { MenuItemAllergens, MenuItemTags, NutritionalInfo, PizzaShape } from './menu';
2
2
  import { OrderItemPoints } from './order';
3
3
  export interface BaseItemGroup {
4
4
  id: number;
@@ -14,7 +14,6 @@ export interface BaseItem {
14
14
  groups: BaseItemGroups;
15
15
  }
16
16
  export declare type BaseItems = BaseItem[];
17
- export declare type PizzaShape = 'CIRCULAR' | 'RECTANGULAR';
18
17
  export interface CartItemOption {
19
18
  allergens: string[];
20
19
  allergens_list?: MenuItemAllergens;
@@ -44,7 +43,8 @@ export interface CartItemOption {
44
43
  totalCals: number | null;
45
44
  totalPoints: number | null;
46
45
  totalPrice: number | null;
47
- shape: PizzaShape | null;
46
+ itemShape: PizzaShape | null;
47
+ excludeFromBuilder: boolean;
48
48
  }
49
49
  export declare type CartItemOptions = CartItemOption[];
50
50
  export interface CartItemOptionWithGroup extends CartItemOption {
@@ -80,7 +80,8 @@ export interface CartItemGroup {
80
80
  name: string;
81
81
  options: CartItemOptions;
82
82
  quantity: number;
83
- shape: PizzaShape | null;
83
+ itemShape: PizzaShape | null;
84
+ excludeFromBuilder: boolean;
84
85
  }
85
86
  export declare type CartItemGroups = CartItemGroup[];
86
87
  export declare type Cart = CartItem[];
@@ -356,6 +356,7 @@ export interface OrderCreatePos extends Omit<OrderCreate, 'customer'> {
356
356
  phone?: string | null;
357
357
  prep_type?: PrepType | null;
358
358
  notes_internal?: string | null;
359
+ device_type?: DeviceType | null;
359
360
  }
360
361
  export interface OrderCreateSendReceipt {
361
362
  email: string | null;
@@ -58,6 +58,8 @@ export interface MenuItemGroup {
58
58
  short_name: string;
59
59
  slug: string;
60
60
  small_image_url: string | null;
61
+ item_shape: PizzaShape | null;
62
+ exclude_from_builder: boolean;
61
63
  }
62
64
  export declare type MenuItemGroups = MenuItemGroup[];
63
65
  export interface MenuItemFavorite {
@@ -81,6 +83,7 @@ export interface MenuItemTag {
81
83
  tag_id: number;
82
84
  }
83
85
  export declare type MenuItemTags = MenuItemTag[];
86
+ export declare type PizzaShape = 'CIRCULAR' | 'RECTANGULAR';
84
87
  export interface MenuItem {
85
88
  allergens: string | null;
86
89
  allergens_list?: MenuItemAllergens;
@@ -119,6 +122,8 @@ export interface MenuItem {
119
122
  taxes: MenuItemTaxes;
120
123
  temperature: Temperature;
121
124
  upsell_items: number[];
125
+ item_shape: PizzaShape | null;
126
+ exclude_from_builder: boolean;
122
127
  }
123
128
  export interface OptionItem extends MenuItem {
124
129
  opt_is_default: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-tender/types",
3
- "version": "0.4.97",
3
+ "version": "0.4.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",