@orderingstack/ordering-types 1.25.0-beta.0 → 1.25.0-beta.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 +5 -4
- package/dist/cjs/index.js +1 -0
- package/dist/esm/index.d.ts +5 -4
- package/dist/esm/index.js +1 -0
- package/package.json +1 -1
package/dist/cjs/index.d.ts
CHANGED
|
@@ -141,12 +141,13 @@ interface IMenuItem {
|
|
|
141
141
|
qty: string;
|
|
142
142
|
}>;
|
|
143
143
|
outsideAvailabilitySlot?: boolean;
|
|
144
|
+
__?: IProductFrontAttributes;
|
|
144
145
|
}
|
|
145
|
-
export interface ICmsReference extends Pick<IMenuItem, "id" | "_"> {
|
|
146
|
+
export interface ICmsReference extends Pick<IMenuItem, "id" | "_" | "__"> {
|
|
146
147
|
kind: EProductKind.CMS;
|
|
147
148
|
reference: string;
|
|
148
149
|
}
|
|
149
|
-
export interface IStatic extends Pick<IMenuItem, "id" | "kind" | "_"> {
|
|
150
|
+
export interface IStatic extends Pick<IMenuItem, "id" | "kind" | "_" | "__"> {
|
|
150
151
|
kind: EProductKind.STATIC;
|
|
151
152
|
details: TDetails;
|
|
152
153
|
}
|
|
@@ -166,7 +167,7 @@ export interface IGroupOptions extends IMenuItem {
|
|
|
166
167
|
attrs?: IGroupAttributes;
|
|
167
168
|
filter?: IProductFilter;
|
|
168
169
|
}
|
|
169
|
-
export interface IMenuCategory extends Pick<IMenuItem, "id" | "kind" | "_" | "details"> {
|
|
170
|
+
export interface IMenuCategory extends Pick<IMenuItem, "id" | "kind" | "_" | "__" | "details"> {
|
|
170
171
|
kind: EProductKind.CATEGORY;
|
|
171
172
|
}
|
|
172
173
|
export interface IMenuProduct extends IMenuItem {
|
|
@@ -179,7 +180,7 @@ export type MenuProduct = IMenuCategory | ICmsReference | IStatic | IGroupConfig
|
|
|
179
180
|
* @interface IProductFrontAttributes attributes are added by useMenu hook
|
|
180
181
|
* @isHiddenByEnableKey {boolean} product has not been enabled by one of its enableKeys
|
|
181
182
|
*/
|
|
182
|
-
export interface IProductFrontAttributes {
|
|
183
|
+
export interface IProductFrontAttributes extends IStringKeyRecord<any> {
|
|
183
184
|
isHiddenByEnableKey?: boolean;
|
|
184
185
|
lineExtra?: IStringKeyRecord<string>;
|
|
185
186
|
cmsData?: any;
|
package/dist/cjs/index.js
CHANGED
|
@@ -42,6 +42,7 @@ var EProductKindBucket;
|
|
|
42
42
|
EProductKindBucket["GROUP"] = "group";
|
|
43
43
|
EProductKindBucket["PRODUCT"] = "product";
|
|
44
44
|
})(EProductKindBucket = exports.EProductKindBucket || (exports.EProductKindBucket = {}));
|
|
45
|
+
;
|
|
45
46
|
var EOrderUserRole;
|
|
46
47
|
(function (EOrderUserRole) {
|
|
47
48
|
EOrderUserRole["CREATOR"] = "CREATOR";
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -141,12 +141,13 @@ interface IMenuItem {
|
|
|
141
141
|
qty: string;
|
|
142
142
|
}>;
|
|
143
143
|
outsideAvailabilitySlot?: boolean;
|
|
144
|
+
__?: IProductFrontAttributes;
|
|
144
145
|
}
|
|
145
|
-
export interface ICmsReference extends Pick<IMenuItem, "id" | "_"> {
|
|
146
|
+
export interface ICmsReference extends Pick<IMenuItem, "id" | "_" | "__"> {
|
|
146
147
|
kind: EProductKind.CMS;
|
|
147
148
|
reference: string;
|
|
148
149
|
}
|
|
149
|
-
export interface IStatic extends Pick<IMenuItem, "id" | "kind" | "_"> {
|
|
150
|
+
export interface IStatic extends Pick<IMenuItem, "id" | "kind" | "_" | "__"> {
|
|
150
151
|
kind: EProductKind.STATIC;
|
|
151
152
|
details: TDetails;
|
|
152
153
|
}
|
|
@@ -166,7 +167,7 @@ export interface IGroupOptions extends IMenuItem {
|
|
|
166
167
|
attrs?: IGroupAttributes;
|
|
167
168
|
filter?: IProductFilter;
|
|
168
169
|
}
|
|
169
|
-
export interface IMenuCategory extends Pick<IMenuItem, "id" | "kind" | "_" | "details"> {
|
|
170
|
+
export interface IMenuCategory extends Pick<IMenuItem, "id" | "kind" | "_" | "__" | "details"> {
|
|
170
171
|
kind: EProductKind.CATEGORY;
|
|
171
172
|
}
|
|
172
173
|
export interface IMenuProduct extends IMenuItem {
|
|
@@ -179,7 +180,7 @@ export type MenuProduct = IMenuCategory | ICmsReference | IStatic | IGroupConfig
|
|
|
179
180
|
* @interface IProductFrontAttributes attributes are added by useMenu hook
|
|
180
181
|
* @isHiddenByEnableKey {boolean} product has not been enabled by one of its enableKeys
|
|
181
182
|
*/
|
|
182
|
-
export interface IProductFrontAttributes {
|
|
183
|
+
export interface IProductFrontAttributes extends IStringKeyRecord<any> {
|
|
183
184
|
isHiddenByEnableKey?: boolean;
|
|
184
185
|
lineExtra?: IStringKeyRecord<string>;
|
|
185
186
|
cmsData?: any;
|
package/dist/esm/index.js
CHANGED
|
@@ -25,6 +25,7 @@ export var EProductKindBucket;
|
|
|
25
25
|
EProductKindBucket["GROUP"] = "group";
|
|
26
26
|
EProductKindBucket["PRODUCT"] = "product";
|
|
27
27
|
})(EProductKindBucket || (EProductKindBucket = {}));
|
|
28
|
+
;
|
|
28
29
|
export var EOrderUserRole;
|
|
29
30
|
(function (EOrderUserRole) {
|
|
30
31
|
EOrderUserRole["CREATOR"] = "CREATOR";
|