@orderingstack/ordering-types 1.27.3 → 1.28.0
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 +8 -2
- package/dist/cjs/index.js +23 -3
- package/dist/esm/index.d.ts +8 -2
- package/dist/esm/index.js +23 -3
- package/package.json +2 -2
package/dist/cjs/index.d.ts
CHANGED
|
@@ -377,7 +377,6 @@ export interface IOrderCoupon {
|
|
|
377
377
|
categoryId?: string;
|
|
378
378
|
productId?: string;
|
|
379
379
|
enableKey?: string | string[];
|
|
380
|
-
couponKey?: string;
|
|
381
380
|
userId?: string;
|
|
382
381
|
extra?: IStringKeyRecord<string>;
|
|
383
382
|
};
|
|
@@ -723,9 +722,10 @@ export interface ISteeringCommand {
|
|
|
723
722
|
properties?: Record<string, string>;
|
|
724
723
|
}
|
|
725
724
|
export declare const modules: readonly ["POS_INTEGRATOR", "KIOSK", "BI_CONNECTOR", "AGGREGATOR", "KDS", "STATUS_SCREEN", "LOYALTY_INTEGRATOR", "LOYALTY", "MOBILE_APP_LOYALTY", "ORDERING_WEB", "DELIVERY_PANEL"];
|
|
725
|
+
export type TModuleType = (typeof modules)[number];
|
|
726
726
|
export interface IModule {
|
|
727
727
|
id: string;
|
|
728
|
-
type:
|
|
728
|
+
type: TModuleType;
|
|
729
729
|
production: boolean;
|
|
730
730
|
venue: string;
|
|
731
731
|
created?: string;
|
|
@@ -738,3 +738,9 @@ export interface IModule {
|
|
|
738
738
|
[key: string]: any;
|
|
739
739
|
};
|
|
740
740
|
}
|
|
741
|
+
export interface IModuleCommonConfig {
|
|
742
|
+
type: TModuleType;
|
|
743
|
+
properties: {
|
|
744
|
+
[key: string]: string;
|
|
745
|
+
};
|
|
746
|
+
}
|
package/dist/cjs/index.js
CHANGED
|
@@ -42,7 +42,6 @@ var EProductKindBucket;
|
|
|
42
42
|
EProductKindBucket["GROUP"] = "group";
|
|
43
43
|
EProductKindBucket["PRODUCT"] = "product";
|
|
44
44
|
})(EProductKindBucket || (exports.EProductKindBucket = EProductKindBucket = {}));
|
|
45
|
-
;
|
|
46
45
|
var EOrderUserRole;
|
|
47
46
|
(function (EOrderUserRole) {
|
|
48
47
|
EOrderUserRole["CREATOR"] = "CREATOR";
|
|
@@ -96,7 +95,18 @@ var EOrderSource;
|
|
|
96
95
|
EOrderSource["UPMENU"] = "UPMENU";
|
|
97
96
|
EOrderSource["APP"] = "APP";
|
|
98
97
|
})(EOrderSource || (exports.EOrderSource = EOrderSource = {}));
|
|
99
|
-
exports.CHANNEL_NAMES = [
|
|
98
|
+
exports.CHANNEL_NAMES = [
|
|
99
|
+
"DINE_IN",
|
|
100
|
+
"TAKE_AWAY",
|
|
101
|
+
"DELIVERY",
|
|
102
|
+
"GLOVO",
|
|
103
|
+
"JUSTEAT",
|
|
104
|
+
"UBER",
|
|
105
|
+
"BOLT",
|
|
106
|
+
"WOLT",
|
|
107
|
+
"TAZZ",
|
|
108
|
+
"UPMENU",
|
|
109
|
+
];
|
|
100
110
|
var EChannelName;
|
|
101
111
|
(function (EChannelName) {
|
|
102
112
|
EChannelName["DINE_IN"] = "DINE_IN";
|
|
@@ -169,5 +179,15 @@ var ENotificationType;
|
|
|
169
179
|
ENotificationType["ORDER_UPSELL"] = "OrderUpsell";
|
|
170
180
|
})(ENotificationType || (exports.ENotificationType = ENotificationType = {}));
|
|
171
181
|
exports.modules = [
|
|
172
|
-
|
|
182
|
+
"POS_INTEGRATOR",
|
|
183
|
+
"KIOSK",
|
|
184
|
+
"BI_CONNECTOR",
|
|
185
|
+
"AGGREGATOR",
|
|
186
|
+
"KDS",
|
|
187
|
+
"STATUS_SCREEN",
|
|
188
|
+
"LOYALTY_INTEGRATOR",
|
|
189
|
+
"LOYALTY",
|
|
190
|
+
"MOBILE_APP_LOYALTY",
|
|
191
|
+
"ORDERING_WEB",
|
|
192
|
+
"DELIVERY_PANEL",
|
|
173
193
|
];
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -377,7 +377,6 @@ export interface IOrderCoupon {
|
|
|
377
377
|
categoryId?: string;
|
|
378
378
|
productId?: string;
|
|
379
379
|
enableKey?: string | string[];
|
|
380
|
-
couponKey?: string;
|
|
381
380
|
userId?: string;
|
|
382
381
|
extra?: IStringKeyRecord<string>;
|
|
383
382
|
};
|
|
@@ -723,9 +722,10 @@ export interface ISteeringCommand {
|
|
|
723
722
|
properties?: Record<string, string>;
|
|
724
723
|
}
|
|
725
724
|
export declare const modules: readonly ["POS_INTEGRATOR", "KIOSK", "BI_CONNECTOR", "AGGREGATOR", "KDS", "STATUS_SCREEN", "LOYALTY_INTEGRATOR", "LOYALTY", "MOBILE_APP_LOYALTY", "ORDERING_WEB", "DELIVERY_PANEL"];
|
|
725
|
+
export type TModuleType = (typeof modules)[number];
|
|
726
726
|
export interface IModule {
|
|
727
727
|
id: string;
|
|
728
|
-
type:
|
|
728
|
+
type: TModuleType;
|
|
729
729
|
production: boolean;
|
|
730
730
|
venue: string;
|
|
731
731
|
created?: string;
|
|
@@ -738,3 +738,9 @@ export interface IModule {
|
|
|
738
738
|
[key: string]: any;
|
|
739
739
|
};
|
|
740
740
|
}
|
|
741
|
+
export interface IModuleCommonConfig {
|
|
742
|
+
type: TModuleType;
|
|
743
|
+
properties: {
|
|
744
|
+
[key: string]: string;
|
|
745
|
+
};
|
|
746
|
+
}
|
package/dist/esm/index.js
CHANGED
|
@@ -25,7 +25,6 @@ export var EProductKindBucket;
|
|
|
25
25
|
EProductKindBucket["GROUP"] = "group";
|
|
26
26
|
EProductKindBucket["PRODUCT"] = "product";
|
|
27
27
|
})(EProductKindBucket || (EProductKindBucket = {}));
|
|
28
|
-
;
|
|
29
28
|
export var EOrderUserRole;
|
|
30
29
|
(function (EOrderUserRole) {
|
|
31
30
|
EOrderUserRole["CREATOR"] = "CREATOR";
|
|
@@ -79,7 +78,18 @@ export var EOrderSource;
|
|
|
79
78
|
EOrderSource["UPMENU"] = "UPMENU";
|
|
80
79
|
EOrderSource["APP"] = "APP";
|
|
81
80
|
})(EOrderSource || (EOrderSource = {}));
|
|
82
|
-
export const CHANNEL_NAMES = [
|
|
81
|
+
export const CHANNEL_NAMES = [
|
|
82
|
+
"DINE_IN",
|
|
83
|
+
"TAKE_AWAY",
|
|
84
|
+
"DELIVERY",
|
|
85
|
+
"GLOVO",
|
|
86
|
+
"JUSTEAT",
|
|
87
|
+
"UBER",
|
|
88
|
+
"BOLT",
|
|
89
|
+
"WOLT",
|
|
90
|
+
"TAZZ",
|
|
91
|
+
"UPMENU",
|
|
92
|
+
];
|
|
83
93
|
export var EChannelName;
|
|
84
94
|
(function (EChannelName) {
|
|
85
95
|
EChannelName["DINE_IN"] = "DINE_IN";
|
|
@@ -152,5 +162,15 @@ export var ENotificationType;
|
|
|
152
162
|
ENotificationType["ORDER_UPSELL"] = "OrderUpsell";
|
|
153
163
|
})(ENotificationType || (ENotificationType = {}));
|
|
154
164
|
export const modules = [
|
|
155
|
-
|
|
165
|
+
"POS_INTEGRATOR",
|
|
166
|
+
"KIOSK",
|
|
167
|
+
"BI_CONNECTOR",
|
|
168
|
+
"AGGREGATOR",
|
|
169
|
+
"KDS",
|
|
170
|
+
"STATUS_SCREEN",
|
|
171
|
+
"LOYALTY_INTEGRATOR",
|
|
172
|
+
"LOYALTY",
|
|
173
|
+
"MOBILE_APP_LOYALTY",
|
|
174
|
+
"ORDERING_WEB",
|
|
175
|
+
"DELIVERY_PANEL",
|
|
156
176
|
];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@orderingstack/ordering-types",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.28.0",
|
|
4
4
|
"description": "Typescript types for @orderingstack",
|
|
5
5
|
"types": "dist/esm/index.d.ts",
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
@@ -21,4 +21,4 @@
|
|
|
21
21
|
"typescript": "next"
|
|
22
22
|
},
|
|
23
23
|
"packageManager": "pnpm@9.15.2+sha512.93e57b0126f0df74ce6bff29680394c0ba54ec47246b9cf321f0121d8d9bb03f750a705f24edc3c1180853afd7c2c3b94196d0a3d53d3e069d9e2793ef11f321"
|
|
24
|
-
}
|
|
24
|
+
}
|