@orderingstack/ordering-types 0.1.9 → 1.0.1
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/dist/cjs/index.d.ts +33 -16
- package/dist/cjs/kiosk.d.ts +1 -0
- package/dist/cjs/kiosk.js +1 -0
- package/dist/esm/index.d.ts +33 -16
- package/dist/esm/kiosk.d.ts +1 -0
- package/dist/esm/kiosk.js +1 -0
- package/package.json +19 -19
package/dist/cjs/index.d.ts
CHANGED
|
@@ -60,7 +60,7 @@ export type Media = {
|
|
|
60
60
|
url: string;
|
|
61
61
|
name: string;
|
|
62
62
|
};
|
|
63
|
-
export
|
|
63
|
+
export interface IProductAvailability {
|
|
64
64
|
MON?: [string, string];
|
|
65
65
|
TUE?: [string, string];
|
|
66
66
|
WED?: [string, string];
|
|
@@ -68,12 +68,12 @@ export type Availability = {
|
|
|
68
68
|
FRI?: [string, string];
|
|
69
69
|
SAT?: [string, string];
|
|
70
70
|
SUN?: [string, string];
|
|
71
|
-
}
|
|
72
|
-
export
|
|
73
|
-
availability?:
|
|
71
|
+
}
|
|
72
|
+
export interface IProduct {
|
|
73
|
+
availability?: IProductAvailability;
|
|
74
74
|
id: string;
|
|
75
75
|
img?: string;
|
|
76
|
-
items?:
|
|
76
|
+
items?: IProduct[];
|
|
77
77
|
kind: EProductKind | EProductKindBucket;
|
|
78
78
|
literals?: Literals;
|
|
79
79
|
details?: {
|
|
@@ -85,19 +85,36 @@ export type Product = {
|
|
|
85
85
|
quantity: string;
|
|
86
86
|
vat: string;
|
|
87
87
|
outsideAvailabilitySlot?: boolean;
|
|
88
|
-
state?:
|
|
88
|
+
state?: IProductState;
|
|
89
89
|
selCtx: string;
|
|
90
|
-
filter?:
|
|
91
|
-
fltCtx?:
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
90
|
+
filter?: IProductFilter;
|
|
91
|
+
fltCtx?: string;
|
|
92
|
+
emit?: IProductEmit;
|
|
93
|
+
}
|
|
94
|
+
export interface IProductState {
|
|
95
|
+
selected: IProductStateFilter;
|
|
96
|
+
filter: IProductStateFilter;
|
|
97
|
+
}
|
|
98
|
+
export interface IProductStateFilter {
|
|
99
|
+
[flxCtx: string]: {
|
|
100
|
+
[id: string]: string;
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
export interface IProductStateSelected {
|
|
104
|
+
[selCtx: string]: {
|
|
105
|
+
[id: string]: string;
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
export interface IProductEmit {
|
|
109
|
+
[id: string]: string;
|
|
110
|
+
}
|
|
111
|
+
export interface ICategory {
|
|
98
112
|
id: string;
|
|
99
113
|
name: string;
|
|
100
114
|
}
|
|
115
|
+
export interface IProductFilter {
|
|
116
|
+
[fltCtx: string]: string[];
|
|
117
|
+
}
|
|
101
118
|
export interface Extra {
|
|
102
119
|
[propName: string]: any;
|
|
103
120
|
}
|
|
@@ -305,7 +322,7 @@ export interface OrderExtra {
|
|
|
305
322
|
allergies?: string;
|
|
306
323
|
"x-agg-id"?: string;
|
|
307
324
|
"support-order-id"?: string;
|
|
308
|
-
|
|
325
|
+
"x-pos-id"?: string;
|
|
309
326
|
}
|
|
310
327
|
export interface OrderLog {
|
|
311
328
|
timestamp?: string;
|
|
@@ -325,7 +342,7 @@ export interface OrderLine {
|
|
|
325
342
|
id: string;
|
|
326
343
|
price: string;
|
|
327
344
|
product: OrderProduct;
|
|
328
|
-
productConfig:
|
|
345
|
+
productConfig: IProductState;
|
|
329
346
|
productId: string;
|
|
330
347
|
quantity: number;
|
|
331
348
|
source: string;
|
package/dist/cjs/kiosk.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ export declare enum EPaymentStatus {
|
|
|
2
2
|
UNINITIALIZED = "UNINITIALIZED",
|
|
3
3
|
PROCESSING = "PROCESSING",
|
|
4
4
|
PAID = "PAID",
|
|
5
|
+
FAILED = "FAILED",
|
|
5
6
|
PRINTING_RECEIPT = "PRINTING_RECEIPT",
|
|
6
7
|
PRINTING_RECEIPT_SUCCESS = "PRINTING_RECEIPT_SUCCESS",
|
|
7
8
|
SENDING_RECEIPT = "SENDING_RECEIPT",
|
package/dist/cjs/kiosk.js
CHANGED
|
@@ -6,6 +6,7 @@ var EPaymentStatus;
|
|
|
6
6
|
EPaymentStatus["UNINITIALIZED"] = "UNINITIALIZED";
|
|
7
7
|
EPaymentStatus["PROCESSING"] = "PROCESSING";
|
|
8
8
|
EPaymentStatus["PAID"] = "PAID";
|
|
9
|
+
EPaymentStatus["FAILED"] = "FAILED";
|
|
9
10
|
EPaymentStatus["PRINTING_RECEIPT"] = "PRINTING_RECEIPT";
|
|
10
11
|
EPaymentStatus["PRINTING_RECEIPT_SUCCESS"] = "PRINTING_RECEIPT_SUCCESS";
|
|
11
12
|
EPaymentStatus["SENDING_RECEIPT"] = "SENDING_RECEIPT";
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -60,7 +60,7 @@ export type Media = {
|
|
|
60
60
|
url: string;
|
|
61
61
|
name: string;
|
|
62
62
|
};
|
|
63
|
-
export
|
|
63
|
+
export interface IProductAvailability {
|
|
64
64
|
MON?: [string, string];
|
|
65
65
|
TUE?: [string, string];
|
|
66
66
|
WED?: [string, string];
|
|
@@ -68,12 +68,12 @@ export type Availability = {
|
|
|
68
68
|
FRI?: [string, string];
|
|
69
69
|
SAT?: [string, string];
|
|
70
70
|
SUN?: [string, string];
|
|
71
|
-
}
|
|
72
|
-
export
|
|
73
|
-
availability?:
|
|
71
|
+
}
|
|
72
|
+
export interface IProduct {
|
|
73
|
+
availability?: IProductAvailability;
|
|
74
74
|
id: string;
|
|
75
75
|
img?: string;
|
|
76
|
-
items?:
|
|
76
|
+
items?: IProduct[];
|
|
77
77
|
kind: EProductKind | EProductKindBucket;
|
|
78
78
|
literals?: Literals;
|
|
79
79
|
details?: {
|
|
@@ -85,19 +85,36 @@ export type Product = {
|
|
|
85
85
|
quantity: string;
|
|
86
86
|
vat: string;
|
|
87
87
|
outsideAvailabilitySlot?: boolean;
|
|
88
|
-
state?:
|
|
88
|
+
state?: IProductState;
|
|
89
89
|
selCtx: string;
|
|
90
|
-
filter?:
|
|
91
|
-
fltCtx?:
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
90
|
+
filter?: IProductFilter;
|
|
91
|
+
fltCtx?: string;
|
|
92
|
+
emit?: IProductEmit;
|
|
93
|
+
}
|
|
94
|
+
export interface IProductState {
|
|
95
|
+
selected: IProductStateFilter;
|
|
96
|
+
filter: IProductStateFilter;
|
|
97
|
+
}
|
|
98
|
+
export interface IProductStateFilter {
|
|
99
|
+
[flxCtx: string]: {
|
|
100
|
+
[id: string]: string;
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
export interface IProductStateSelected {
|
|
104
|
+
[selCtx: string]: {
|
|
105
|
+
[id: string]: string;
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
export interface IProductEmit {
|
|
109
|
+
[id: string]: string;
|
|
110
|
+
}
|
|
111
|
+
export interface ICategory {
|
|
98
112
|
id: string;
|
|
99
113
|
name: string;
|
|
100
114
|
}
|
|
115
|
+
export interface IProductFilter {
|
|
116
|
+
[fltCtx: string]: string[];
|
|
117
|
+
}
|
|
101
118
|
export interface Extra {
|
|
102
119
|
[propName: string]: any;
|
|
103
120
|
}
|
|
@@ -305,7 +322,7 @@ export interface OrderExtra {
|
|
|
305
322
|
allergies?: string;
|
|
306
323
|
"x-agg-id"?: string;
|
|
307
324
|
"support-order-id"?: string;
|
|
308
|
-
|
|
325
|
+
"x-pos-id"?: string;
|
|
309
326
|
}
|
|
310
327
|
export interface OrderLog {
|
|
311
328
|
timestamp?: string;
|
|
@@ -325,7 +342,7 @@ export interface OrderLine {
|
|
|
325
342
|
id: string;
|
|
326
343
|
price: string;
|
|
327
344
|
product: OrderProduct;
|
|
328
|
-
productConfig:
|
|
345
|
+
productConfig: IProductState;
|
|
329
346
|
productId: string;
|
|
330
347
|
quantity: number;
|
|
331
348
|
source: string;
|
package/dist/esm/kiosk.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ export declare enum EPaymentStatus {
|
|
|
2
2
|
UNINITIALIZED = "UNINITIALIZED",
|
|
3
3
|
PROCESSING = "PROCESSING",
|
|
4
4
|
PAID = "PAID",
|
|
5
|
+
FAILED = "FAILED",
|
|
5
6
|
PRINTING_RECEIPT = "PRINTING_RECEIPT",
|
|
6
7
|
PRINTING_RECEIPT_SUCCESS = "PRINTING_RECEIPT_SUCCESS",
|
|
7
8
|
SENDING_RECEIPT = "SENDING_RECEIPT",
|
package/dist/esm/kiosk.js
CHANGED
|
@@ -3,6 +3,7 @@ export var EPaymentStatus;
|
|
|
3
3
|
EPaymentStatus["UNINITIALIZED"] = "UNINITIALIZED";
|
|
4
4
|
EPaymentStatus["PROCESSING"] = "PROCESSING";
|
|
5
5
|
EPaymentStatus["PAID"] = "PAID";
|
|
6
|
+
EPaymentStatus["FAILED"] = "FAILED";
|
|
6
7
|
EPaymentStatus["PRINTING_RECEIPT"] = "PRINTING_RECEIPT";
|
|
7
8
|
EPaymentStatus["PRINTING_RECEIPT_SUCCESS"] = "PRINTING_RECEIPT_SUCCESS";
|
|
8
9
|
EPaymentStatus["SENDING_RECEIPT"] = "SENDING_RECEIPT";
|
package/package.json
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@orderingstack/ordering-types",
|
|
3
|
-
"version": "0.1
|
|
4
|
-
"description": "Typescript types for @orderingstack",
|
|
5
|
-
"types": "dist/esm/index.d.ts",
|
|
6
|
-
"main": "dist/cjs/index.js",
|
|
7
|
-
"module": "dist/esm/index.js",
|
|
8
|
-
"files": [
|
|
9
|
-
"dist/"
|
|
10
|
-
],
|
|
11
|
-
"scripts": {
|
|
12
|
-
"build": "tsc -p tsconfig.json && tsc -p tsconfig-cjs.json",
|
|
13
|
-
"prepublishOnly": "npm run build"
|
|
14
|
-
},
|
|
15
|
-
"author": "Tomasz Rojek <tomasz.rojek@e3.pl>",
|
|
16
|
-
"devDependencies": {
|
|
17
|
-
"typescript": "next"
|
|
18
|
-
}
|
|
19
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@orderingstack/ordering-types",
|
|
3
|
+
"version": "1.0.1",
|
|
4
|
+
"description": "Typescript types for @orderingstack",
|
|
5
|
+
"types": "dist/esm/index.d.ts",
|
|
6
|
+
"main": "dist/cjs/index.js",
|
|
7
|
+
"module": "dist/esm/index.js",
|
|
8
|
+
"files": [
|
|
9
|
+
"dist/"
|
|
10
|
+
],
|
|
11
|
+
"scripts": {
|
|
12
|
+
"build": "tsc -p tsconfig.json && tsc -p tsconfig-cjs.json",
|
|
13
|
+
"prepublishOnly": "npm run build"
|
|
14
|
+
},
|
|
15
|
+
"author": "Tomasz Rojek <tomasz.rojek@e3.pl>",
|
|
16
|
+
"devDependencies": {
|
|
17
|
+
"typescript": "next"
|
|
18
|
+
}
|
|
19
|
+
}
|