@open-tender/types 0.4.55 → 0.4.57

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 { NutritionalInfo } from './menu';
1
+ import { MenuItemAllergens, MenuItemTags, NutritionalInfo } from './menu';
2
2
  import { OrderItemPoints } from './order';
3
3
  export interface BaseItemGroup {
4
4
  id: number;
@@ -16,6 +16,7 @@ export interface BaseItem {
16
16
  export declare type BaseItems = BaseItem[];
17
17
  export interface CartItemOption {
18
18
  allergens: string[];
19
+ allergens_list?: MenuItemAllergens;
19
20
  cals: number | null;
20
21
  description: string | null;
21
22
  groups: CartItemGroups;
@@ -37,6 +38,7 @@ export interface CartItemOption {
37
38
  shortName: string;
38
39
  slug: string;
39
40
  tags: string[];
41
+ tags_list?: MenuItemTags;
40
42
  totalAllergens: string[];
41
43
  totalCals: number | null;
42
44
  totalPoints: number | null;
@@ -15,6 +15,7 @@ export interface PosScanner {
15
15
  }
16
16
  export declare type PosScanners = PosScanner[];
17
17
  export declare type PosTerminalPrintReceipt = 'never' | 'always' | 'prompt';
18
+ export declare type PosScannerType = 'NONE' | 'USB' | 'CAMERA' | 'MORPHSTICK';
18
19
  export interface PosTerminal {
19
20
  description: string;
20
21
  name: string;
@@ -22,6 +23,7 @@ export interface PosTerminal {
22
23
  pos_printer_v2_id: number | null;
23
24
  pos_scanner: PosScanner;
24
25
  pos_scanner_id: number | null;
26
+ pos_scanner_type: PosScannerType;
25
27
  pos_terminal_id: number;
26
28
  print_kds: boolean;
27
29
  print_receipt: PosTerminalPrintReceipt;
@@ -63,8 +63,27 @@ export declare type MenuItemGroups = MenuItemGroup[];
63
63
  export interface MenuItemFavorite {
64
64
  item: SimpleCartItem;
65
65
  }
66
+ export interface MenuItemAllergen {
67
+ allergen_id: number;
68
+ app_image_url: string | null;
69
+ description: string | null;
70
+ large_image_url: string | null;
71
+ name: string;
72
+ small_image_url: string | null;
73
+ }
74
+ export declare type MenuItemAllergens = MenuItemAllergen[];
75
+ export interface MenuItemTag {
76
+ app_image_url: string | null;
77
+ description: string | null;
78
+ large_image_url: string | null;
79
+ name: string;
80
+ small_image_url: string | null;
81
+ tag_id: number;
82
+ }
83
+ export declare type MenuItemTags = MenuItemTag[];
66
84
  export interface MenuItem {
67
85
  allergens: string | null;
86
+ allergens_list?: MenuItemAllergens;
68
87
  app_image_url: string | null;
69
88
  calories: number | null;
70
89
  description: string | null;
@@ -96,6 +115,7 @@ export interface MenuItem {
96
115
  small_image_url: string | null;
97
116
  suspend_until: number | null;
98
117
  tags: string | null;
118
+ tags_list?: MenuItemTags;
99
119
  taxes: MenuItemTaxes;
100
120
  temperature: Temperature;
101
121
  upsell_items: number[];
@@ -1,4 +1,4 @@
1
- import { NutritionalInfo } from './menu';
1
+ import { MenuItemAllergens, MenuItemTags, NutritionalInfo } from './menu';
2
2
  import { OrderItemPoints } from './order';
3
3
  export interface BaseItemGroup {
4
4
  id: number;
@@ -16,6 +16,7 @@ export interface BaseItem {
16
16
  export declare type BaseItems = BaseItem[];
17
17
  export interface CartItemOption {
18
18
  allergens: string[];
19
+ allergens_list?: MenuItemAllergens;
19
20
  cals: number | null;
20
21
  description: string | null;
21
22
  groups: CartItemGroups;
@@ -37,6 +38,7 @@ export interface CartItemOption {
37
38
  shortName: string;
38
39
  slug: string;
39
40
  tags: string[];
41
+ tags_list?: MenuItemTags;
40
42
  totalAllergens: string[];
41
43
  totalCals: number | null;
42
44
  totalPoints: number | null;
@@ -15,6 +15,7 @@ export interface PosScanner {
15
15
  }
16
16
  export declare type PosScanners = PosScanner[];
17
17
  export declare type PosTerminalPrintReceipt = 'never' | 'always' | 'prompt';
18
+ export declare type PosScannerType = 'NONE' | 'USB' | 'CAMERA' | 'MORPHSTICK';
18
19
  export interface PosTerminal {
19
20
  description: string;
20
21
  name: string;
@@ -22,6 +23,7 @@ export interface PosTerminal {
22
23
  pos_printer_v2_id: number | null;
23
24
  pos_scanner: PosScanner;
24
25
  pos_scanner_id: number | null;
26
+ pos_scanner_type: PosScannerType;
25
27
  pos_terminal_id: number;
26
28
  print_kds: boolean;
27
29
  print_receipt: PosTerminalPrintReceipt;
@@ -63,8 +63,27 @@ export declare type MenuItemGroups = MenuItemGroup[];
63
63
  export interface MenuItemFavorite {
64
64
  item: SimpleCartItem;
65
65
  }
66
+ export interface MenuItemAllergen {
67
+ allergen_id: number;
68
+ app_image_url: string | null;
69
+ description: string | null;
70
+ large_image_url: string | null;
71
+ name: string;
72
+ small_image_url: string | null;
73
+ }
74
+ export declare type MenuItemAllergens = MenuItemAllergen[];
75
+ export interface MenuItemTag {
76
+ app_image_url: string | null;
77
+ description: string | null;
78
+ large_image_url: string | null;
79
+ name: string;
80
+ small_image_url: string | null;
81
+ tag_id: number;
82
+ }
83
+ export declare type MenuItemTags = MenuItemTag[];
66
84
  export interface MenuItem {
67
85
  allergens: string | null;
86
+ allergens_list?: MenuItemAllergens;
68
87
  app_image_url: string | null;
69
88
  calories: number | null;
70
89
  description: string | null;
@@ -96,6 +115,7 @@ export interface MenuItem {
96
115
  small_image_url: string | null;
97
116
  suspend_until: number | null;
98
117
  tags: string | null;
118
+ tags_list?: MenuItemTags;
99
119
  taxes: MenuItemTaxes;
100
120
  temperature: Temperature;
101
121
  upsell_items: number[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-tender/types",
3
- "version": "0.4.55",
3
+ "version": "0.4.57",
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",