@techallee/foodverse 1.2.5 → 1.2.7

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@techallee/foodverse",
3
- "version": "1.2.5",
3
+ "version": "1.2.7",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "types": "index.d.ts",
@@ -4,6 +4,7 @@ declare interface Menu {
4
4
  categories: Category[];
5
5
  specifications: Specification[];
6
6
  allergies: Allergy[];
7
+ optionGroups: OptionGroup[];
7
8
  }
8
9
 
9
10
  declare interface Allergy {
@@ -34,7 +35,9 @@ declare interface OptionGroup {
34
35
  source: MenuSource;
35
36
  name: string;
36
37
  isMultiple: boolean;
37
- specifications: Specification[];
38
+ restaurantId: string;
39
+ specifications?: Specification[];
40
+ specificationIds?: string[];
38
41
  }
39
42
 
40
43
  declare interface Variant {
@@ -54,7 +57,7 @@ declare interface Product {
54
57
  id: string;
55
58
  externalId?: string | null;
56
59
  source: MenuSource;
57
- imgUrl: string;
60
+ imgUrl: string| null;
58
61
  code?: string | null;
59
62
  shortName: string;
60
63
  name: string;
@@ -66,7 +69,8 @@ declare interface Product {
66
69
  discount: any[];
67
70
  categoryId: string;
68
71
  variants: Variant[];
69
- optionGroups: OptionGroup[];
72
+ optionGroups?: OptionGroup[];
73
+ optionGroupIds?: string[];
70
74
  }
71
75
 
72
76
  declare interface Category {
@@ -1,5 +1,6 @@
1
1
  declare type StationPrinterType = 'hardware' | 'software';
2
2
  declare type CounterType = 'main_counter' | 'sub_counter';
3
+ declare type CounterColor = 'dark' | 'danger' | 'warning' | 'success' | 'info' | 'primary' | 'secondary' | 'dreaming'
3
4
  declare type CounterOperator = 'equals' | 'contains' | 'starts_with' | 'ends_with';
4
5
  declare type CounterPropertyType = 'product' | 'variant' | 'specification';
5
6
  declare type PrintedProductStatus = 0 | 1 | 2 | 3; // 0: nothing, 1: drink, 2: food, 3: both
@@ -24,7 +25,7 @@ declare interface PrintedProduct {
24
25
  declare interface Counter {
25
26
  id: string;
26
27
  name: string;
27
- color: string;
28
+ color: CounterColor;
28
29
  priority: number;
29
30
  type: CounterType;
30
31
  stationPrinterId: string;
@@ -76,7 +77,6 @@ declare interface StationPrinter {
76
77
  declare interface CategoryOption {
77
78
  name: string;
78
79
  products: string[];
79
- selected: boolean;
80
80
  }
81
81
 
82
82
  declare interface DeliveryTypeOption {