@open-tender/types 0.0.101 → 0.0.103

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,6 +1,8 @@
1
1
  import { RequestedAt } from '../datetimes';
2
2
  import { Decimal, Money, ServiceType, TaxTypeInt, Temperature } from '../global';
3
+ import { CartItemGroups } from './cart';
3
4
  import { Favorite } from './favorite';
5
+ import { OrderItemImages } from './order';
4
6
  export interface NutritionalInfo {
5
7
  calories: number;
6
8
  cholesterol: number;
@@ -47,7 +49,7 @@ export interface MenuItemGroup {
47
49
  export declare type MenuItemGroups = Array<MenuItemGroup>;
48
50
  export interface Item {
49
51
  allergen_classes: string;
50
- allergens: string;
52
+ allergens: string | string[];
51
53
  app_image_url: string | null;
52
54
  color?: string | null;
53
55
  delivery_days: number | null;
@@ -55,7 +57,7 @@ export interface Item {
55
57
  end_date: number | null;
56
58
  end_date_str: string | null;
57
59
  height: string | null;
58
- id: number;
60
+ id?: number;
59
61
  increment: number;
60
62
  ingredients: string | null;
61
63
  is_alcohol: boolean;
@@ -65,14 +67,14 @@ export interface Item {
65
67
  max_quantity: number;
66
68
  menu_position: number;
67
69
  min_quantity: number;
68
- name: string;
70
+ name?: string;
69
71
  nutritional_info: NutritionalInfo | null;
70
72
  plu: string | null;
71
73
  points: number | null;
72
- price: Money;
74
+ price: Money | string;
73
75
  sales_tax_override: Decimal | null;
74
76
  service_restrictions: number[];
75
- short_description: string | null;
77
+ short_description?: string | null;
76
78
  short_name: string;
77
79
  shorthand: string | null;
78
80
  slug: string;
@@ -80,7 +82,7 @@ export interface Item {
80
82
  start_date: number | null;
81
83
  start_date_str: string | null;
82
84
  tag_classes: string;
83
- tags: string;
85
+ tags: string | string[];
84
86
  taxes: MenuItemTaxes;
85
87
  temperature: Temperature;
86
88
  weight: string | null;
@@ -103,6 +105,46 @@ export interface MenuItem extends Item {
103
105
  upsell_items: number[] | null;
104
106
  use_options_wizard: 1 | 0;
105
107
  favorite?: Partial<Favorite>;
108
+ upsellItems: number[];
109
+ index?: number;
110
+ id?: number;
111
+ name?: string;
112
+ shortName?: string;
113
+ cart_guest_id?: number | null;
114
+ category: string | null;
115
+ customer_id?: number | null;
116
+ description: string | null;
117
+ imageUrl: string | null;
118
+ slug: string;
119
+ allergens: string[];
120
+ tags: string[];
121
+ ingredients: string | null;
122
+ madeFor?: string | null;
123
+ notes?: string | null;
124
+ nutritionalInfo: NutritionalInfo | null;
125
+ cals: number | null;
126
+ groups: CartItemGroups;
127
+ quantity: number;
128
+ price: string;
129
+ increment: number;
130
+ max: number;
131
+ min: number;
132
+ points: any;
133
+ similarItems: number[];
134
+ totalPrice: number;
135
+ totalPoints: number | null;
136
+ totalCals: number | null;
137
+ item_no?: number;
138
+ nutritional_info: NutritionalInfo | null;
139
+ price_total?: number;
140
+ favorite_id?: number;
141
+ images?: OrderItemImages;
142
+ short_description?: string | null;
143
+ shortDescription?: string;
144
+ made_for?: string;
145
+ signature?: string;
146
+ isDefault?: boolean | number;
147
+ isSoldOut?: boolean;
106
148
  }
107
149
  export declare type MenuItems = Array<MenuItem>;
108
150
  export declare type MenuCategoryAppearance = 'small' | 'medium' | 'large';
@@ -36,4 +36,4 @@ export interface PicklistOption {
36
36
  disabled?: boolean;
37
37
  }
38
38
  export declare type PicklistOptions = PicklistOption[];
39
- export declare type AuthType = 'GUEST' | 'ACCOUNT' | 'VERIFIED';
39
+ export declare type AuthType = 'GUEST' | 'ACCOUNT' | 'VERIFIED' | 'HOME';
@@ -1,6 +1,8 @@
1
1
  import { RequestedAt } from '../datetimes';
2
2
  import { Decimal, Money, ServiceType, TaxTypeInt, Temperature } from '../global';
3
+ import { CartItemGroups } from './cart';
3
4
  import { Favorite } from './favorite';
5
+ import { OrderItemImages } from './order';
4
6
  export interface NutritionalInfo {
5
7
  calories: number;
6
8
  cholesterol: number;
@@ -47,7 +49,7 @@ export interface MenuItemGroup {
47
49
  export declare type MenuItemGroups = Array<MenuItemGroup>;
48
50
  export interface Item {
49
51
  allergen_classes: string;
50
- allergens: string;
52
+ allergens: string | string[];
51
53
  app_image_url: string | null;
52
54
  color?: string | null;
53
55
  delivery_days: number | null;
@@ -55,7 +57,7 @@ export interface Item {
55
57
  end_date: number | null;
56
58
  end_date_str: string | null;
57
59
  height: string | null;
58
- id: number;
60
+ id?: number;
59
61
  increment: number;
60
62
  ingredients: string | null;
61
63
  is_alcohol: boolean;
@@ -65,14 +67,14 @@ export interface Item {
65
67
  max_quantity: number;
66
68
  menu_position: number;
67
69
  min_quantity: number;
68
- name: string;
70
+ name?: string;
69
71
  nutritional_info: NutritionalInfo | null;
70
72
  plu: string | null;
71
73
  points: number | null;
72
- price: Money;
74
+ price: Money | string;
73
75
  sales_tax_override: Decimal | null;
74
76
  service_restrictions: number[];
75
- short_description: string | null;
77
+ short_description?: string | null;
76
78
  short_name: string;
77
79
  shorthand: string | null;
78
80
  slug: string;
@@ -80,7 +82,7 @@ export interface Item {
80
82
  start_date: number | null;
81
83
  start_date_str: string | null;
82
84
  tag_classes: string;
83
- tags: string;
85
+ tags: string | string[];
84
86
  taxes: MenuItemTaxes;
85
87
  temperature: Temperature;
86
88
  weight: string | null;
@@ -103,6 +105,46 @@ export interface MenuItem extends Item {
103
105
  upsell_items: number[] | null;
104
106
  use_options_wizard: 1 | 0;
105
107
  favorite?: Partial<Favorite>;
108
+ upsellItems: number[];
109
+ index?: number;
110
+ id?: number;
111
+ name?: string;
112
+ shortName?: string;
113
+ cart_guest_id?: number | null;
114
+ category: string | null;
115
+ customer_id?: number | null;
116
+ description: string | null;
117
+ imageUrl: string | null;
118
+ slug: string;
119
+ allergens: string[];
120
+ tags: string[];
121
+ ingredients: string | null;
122
+ madeFor?: string | null;
123
+ notes?: string | null;
124
+ nutritionalInfo: NutritionalInfo | null;
125
+ cals: number | null;
126
+ groups: CartItemGroups;
127
+ quantity: number;
128
+ price: string;
129
+ increment: number;
130
+ max: number;
131
+ min: number;
132
+ points: any;
133
+ similarItems: number[];
134
+ totalPrice: number;
135
+ totalPoints: number | null;
136
+ totalCals: number | null;
137
+ item_no?: number;
138
+ nutritional_info: NutritionalInfo | null;
139
+ price_total?: number;
140
+ favorite_id?: number;
141
+ images?: OrderItemImages;
142
+ short_description?: string | null;
143
+ shortDescription?: string;
144
+ made_for?: string;
145
+ signature?: string;
146
+ isDefault?: boolean | number;
147
+ isSoldOut?: boolean;
106
148
  }
107
149
  export declare type MenuItems = Array<MenuItem>;
108
150
  export declare type MenuCategoryAppearance = 'small' | 'medium' | 'large';
@@ -36,4 +36,4 @@ export interface PicklistOption {
36
36
  disabled?: boolean;
37
37
  }
38
38
  export declare type PicklistOptions = PicklistOption[];
39
- export declare type AuthType = 'GUEST' | 'ACCOUNT' | 'VERIFIED';
39
+ export declare type AuthType = 'GUEST' | 'ACCOUNT' | 'VERIFIED' | 'HOME';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-tender/types",
3
- "version": "0.0.101",
3
+ "version": "0.0.103",
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",