shopoflex-types 1.0.82 → 1.0.84
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/common.d.ts +11 -1
- package/package.json +1 -1
package/dist/common.d.ts
CHANGED
|
@@ -204,7 +204,8 @@ export interface Modifier {
|
|
|
204
204
|
minSelect?: number;
|
|
205
205
|
active?: boolean;
|
|
206
206
|
addons?: {
|
|
207
|
-
|
|
207
|
+
productId?: any;
|
|
208
|
+
variantId?: any;
|
|
208
209
|
enableQuantity?: boolean;
|
|
209
210
|
priceOverride?: number;
|
|
210
211
|
}[];
|
|
@@ -226,6 +227,12 @@ export interface Category {
|
|
|
226
227
|
isActive: boolean;
|
|
227
228
|
vendorId: string | any;
|
|
228
229
|
}
|
|
230
|
+
export interface CompositionType {
|
|
231
|
+
componentId: string;
|
|
232
|
+
variantId: string;
|
|
233
|
+
quantity: number;
|
|
234
|
+
priceOverride?: number;
|
|
235
|
+
}
|
|
229
236
|
export interface ProductType {
|
|
230
237
|
_id?: string;
|
|
231
238
|
name: {
|
|
@@ -244,6 +251,9 @@ export interface ProductType {
|
|
|
244
251
|
branchesIds?: string[];
|
|
245
252
|
modifiers?: Modifier[];
|
|
246
253
|
hasModifiers?: boolean;
|
|
254
|
+
composition?: CompositionType[];
|
|
255
|
+
isComposite?: boolean;
|
|
256
|
+
isSellable?: boolean;
|
|
247
257
|
sort?: number;
|
|
248
258
|
hasVariants?: boolean;
|
|
249
259
|
variants: VariantType[];
|