@orderingstack/ordering-types 1.24.0 → 1.24.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.
@@ -48,7 +48,8 @@ export declare enum EProductKind {
48
48
  CONFIG = "3e/group/config",
49
49
  STATIC = "3e/static",
50
50
  REF = "3e/ref",
51
- QUERY = "3e/query"
51
+ QUERY = "3e/query",
52
+ CMS = "3e/cms"
52
53
  }
53
54
  export declare enum EProductKindBucket {
54
55
  GROUP = "group",
@@ -81,6 +82,14 @@ export interface IProductAvailability {
81
82
  * @related {string} comma separated related products IDs
82
83
  */
83
84
  export interface IProductExtra extends IStringKeyRecord<string | undefined> {
85
+ /**
86
+ * comma separated values
87
+ */
88
+ tags?: string;
89
+ /**
90
+ * stringified nutrients object
91
+ */
92
+ nutrients?: string;
84
93
  related?: string;
85
94
  category?: string;
86
95
  "ALLOW-MULTIPLE-LINE"?: "true" | "false";
@@ -88,7 +97,23 @@ export interface IProductExtra extends IStringKeyRecord<string | undefined> {
88
97
  "rbi-offer"?: "true" | "false";
89
98
  "rbi-rewards-cat"?: "true" | "false";
90
99
  "rbi-offers-cat"?: "true" | "false";
91
- "rbi-reward-points": string;
100
+ "rbi-reward-points"?: string;
101
+ /**
102
+ * CSS column span of ui item in grid
103
+ */
104
+ viewCols?: string;
105
+ /**
106
+ * CSS column span of ui item in grid
107
+ */
108
+ viewRows?: string;
109
+ /**
110
+ * CSS column start of ui item in grid
111
+ */
112
+ "col-start"?: string;
113
+ /**
114
+ * CSS row start of ui item in grid
115
+ */
116
+ "row-start"?: string;
92
117
  }
93
118
  /**
94
119
  * IProductFrontAttributes
@@ -99,11 +124,13 @@ export interface IProductExtra extends IStringKeyRecord<string | undefined> {
99
124
  export interface IProductFrontAttributes {
100
125
  isHiddenByEnableKey?: boolean;
101
126
  lineExtra?: IStringKeyRecord<string>;
127
+ cmsData?: any;
102
128
  }
103
129
  export interface IProduct {
104
130
  availability?: IProductAvailability;
105
131
  id: string;
106
132
  img?: string;
133
+ cmsId?: string;
107
134
  items?: IProduct[];
108
135
  kind: EProductKind | EProductKindBucket;
109
136
  literals?: TLiterals;
@@ -172,7 +199,7 @@ export interface IUser {
172
199
  export declare enum EOrderUserRole {
173
200
  CREATOR = "CREATOR",
174
201
  CUSTOMER = "CUSTOMER",
175
- COUPON = "COUPON",
202
+ COUPONS = "COUPON",
176
203
  KIOSK = "KIOSK",
177
204
  WAITER = "WAITER",
178
205
  MANAGER = "MANAGER",
@@ -332,6 +359,7 @@ export interface IOrderPayment {
332
359
  user: string;
333
360
  timestamp?: string;
334
361
  extra?: IStringKeyRecord<string>;
362
+ deferred?: boolean;
335
363
  }
336
364
  export declare enum EOrderPaymentType {
337
365
  CASH = "CASH",
package/dist/cjs/index.js CHANGED
@@ -35,6 +35,7 @@ var EProductKind;
35
35
  EProductKind["STATIC"] = "3e/static";
36
36
  EProductKind["REF"] = "3e/ref";
37
37
  EProductKind["QUERY"] = "3e/query";
38
+ EProductKind["CMS"] = "3e/cms";
38
39
  })(EProductKind = exports.EProductKind || (exports.EProductKind = {}));
39
40
  var EProductKindBucket;
40
41
  (function (EProductKindBucket) {
@@ -45,7 +46,7 @@ var EOrderUserRole;
45
46
  (function (EOrderUserRole) {
46
47
  EOrderUserRole["CREATOR"] = "CREATOR";
47
48
  EOrderUserRole["CUSTOMER"] = "CUSTOMER";
48
- EOrderUserRole["COUPON"] = "COUPON";
49
+ EOrderUserRole["COUPONS"] = "COUPON";
49
50
  EOrderUserRole["KIOSK"] = "KIOSK";
50
51
  EOrderUserRole["WAITER"] = "WAITER";
51
52
  EOrderUserRole["MANAGER"] = "MANAGER";
@@ -48,7 +48,8 @@ export declare enum EProductKind {
48
48
  CONFIG = "3e/group/config",
49
49
  STATIC = "3e/static",
50
50
  REF = "3e/ref",
51
- QUERY = "3e/query"
51
+ QUERY = "3e/query",
52
+ CMS = "3e/cms"
52
53
  }
53
54
  export declare enum EProductKindBucket {
54
55
  GROUP = "group",
@@ -81,6 +82,14 @@ export interface IProductAvailability {
81
82
  * @related {string} comma separated related products IDs
82
83
  */
83
84
  export interface IProductExtra extends IStringKeyRecord<string | undefined> {
85
+ /**
86
+ * comma separated values
87
+ */
88
+ tags?: string;
89
+ /**
90
+ * stringified nutrients object
91
+ */
92
+ nutrients?: string;
84
93
  related?: string;
85
94
  category?: string;
86
95
  "ALLOW-MULTIPLE-LINE"?: "true" | "false";
@@ -88,7 +97,23 @@ export interface IProductExtra extends IStringKeyRecord<string | undefined> {
88
97
  "rbi-offer"?: "true" | "false";
89
98
  "rbi-rewards-cat"?: "true" | "false";
90
99
  "rbi-offers-cat"?: "true" | "false";
91
- "rbi-reward-points": string;
100
+ "rbi-reward-points"?: string;
101
+ /**
102
+ * CSS column span of ui item in grid
103
+ */
104
+ viewCols?: string;
105
+ /**
106
+ * CSS column span of ui item in grid
107
+ */
108
+ viewRows?: string;
109
+ /**
110
+ * CSS column start of ui item in grid
111
+ */
112
+ "col-start"?: string;
113
+ /**
114
+ * CSS row start of ui item in grid
115
+ */
116
+ "row-start"?: string;
92
117
  }
93
118
  /**
94
119
  * IProductFrontAttributes
@@ -99,11 +124,13 @@ export interface IProductExtra extends IStringKeyRecord<string | undefined> {
99
124
  export interface IProductFrontAttributes {
100
125
  isHiddenByEnableKey?: boolean;
101
126
  lineExtra?: IStringKeyRecord<string>;
127
+ cmsData?: any;
102
128
  }
103
129
  export interface IProduct {
104
130
  availability?: IProductAvailability;
105
131
  id: string;
106
132
  img?: string;
133
+ cmsId?: string;
107
134
  items?: IProduct[];
108
135
  kind: EProductKind | EProductKindBucket;
109
136
  literals?: TLiterals;
@@ -172,7 +199,7 @@ export interface IUser {
172
199
  export declare enum EOrderUserRole {
173
200
  CREATOR = "CREATOR",
174
201
  CUSTOMER = "CUSTOMER",
175
- COUPON = "COUPON",
202
+ COUPONS = "COUPON",
176
203
  KIOSK = "KIOSK",
177
204
  WAITER = "WAITER",
178
205
  MANAGER = "MANAGER",
@@ -332,6 +359,7 @@ export interface IOrderPayment {
332
359
  user: string;
333
360
  timestamp?: string;
334
361
  extra?: IStringKeyRecord<string>;
362
+ deferred?: boolean;
335
363
  }
336
364
  export declare enum EOrderPaymentType {
337
365
  CASH = "CASH",
package/dist/esm/index.js CHANGED
@@ -18,6 +18,7 @@ export var EProductKind;
18
18
  EProductKind["STATIC"] = "3e/static";
19
19
  EProductKind["REF"] = "3e/ref";
20
20
  EProductKind["QUERY"] = "3e/query";
21
+ EProductKind["CMS"] = "3e/cms";
21
22
  })(EProductKind || (EProductKind = {}));
22
23
  export var EProductKindBucket;
23
24
  (function (EProductKindBucket) {
@@ -28,7 +29,7 @@ export var EOrderUserRole;
28
29
  (function (EOrderUserRole) {
29
30
  EOrderUserRole["CREATOR"] = "CREATOR";
30
31
  EOrderUserRole["CUSTOMER"] = "CUSTOMER";
31
- EOrderUserRole["COUPON"] = "COUPON";
32
+ EOrderUserRole["COUPONS"] = "COUPON";
32
33
  EOrderUserRole["KIOSK"] = "KIOSK";
33
34
  EOrderUserRole["WAITER"] = "WAITER";
34
35
  EOrderUserRole["MANAGER"] = "MANAGER";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orderingstack/ordering-types",
3
- "version": "1.24.0",
3
+ "version": "1.24.1",
4
4
  "description": "Typescript types for @orderingstack",
5
5
  "types": "dist/esm/index.d.ts",
6
6
  "main": "dist/cjs/index.js",