shopoflex-types 1.0.49 → 1.0.51
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 +34 -7
- package/package.json +1 -1
package/dist/common.d.ts
CHANGED
|
@@ -171,25 +171,52 @@ export interface ProductType {
|
|
|
171
171
|
ar: string;
|
|
172
172
|
};
|
|
173
173
|
sku?: string;
|
|
174
|
-
categoriesIds:
|
|
175
|
-
dimensions?:
|
|
176
|
-
|
|
174
|
+
categoriesIds: string[];
|
|
175
|
+
dimensions?: {
|
|
176
|
+
active: boolean;
|
|
177
|
+
};
|
|
178
|
+
priceModel?: PriceModel;
|
|
177
179
|
stockHandle?: StockHandle;
|
|
178
180
|
tags?: string[];
|
|
179
181
|
branchesIds?: string[];
|
|
180
182
|
modifiers?: Modifier[];
|
|
181
183
|
hasModifiers?: boolean;
|
|
182
|
-
label?: Label;
|
|
183
184
|
sort?: number;
|
|
185
|
+
sortOrder?: number;
|
|
184
186
|
hasVariants?: boolean;
|
|
185
|
-
|
|
187
|
+
variants?: VariantType[];
|
|
188
|
+
specifications?: {
|
|
189
|
+
active: boolean;
|
|
190
|
+
values: any[];
|
|
191
|
+
};
|
|
186
192
|
linkedProduct?: any;
|
|
187
193
|
createdAt?: Date;
|
|
188
194
|
updatedAt?: Date;
|
|
189
195
|
files?: FileType[];
|
|
190
|
-
sortOrder?: number;
|
|
191
196
|
isActive: boolean;
|
|
192
|
-
vendorId: string
|
|
197
|
+
vendorId: string;
|
|
198
|
+
}
|
|
199
|
+
export interface VariantType {
|
|
200
|
+
variantId: string;
|
|
201
|
+
sku: string;
|
|
202
|
+
priceModel: PriceModel;
|
|
203
|
+
stockHandle: StockHandle;
|
|
204
|
+
attributes: VariantAttribute[];
|
|
205
|
+
files: FileType[];
|
|
206
|
+
barcode: string;
|
|
207
|
+
isActive: boolean;
|
|
208
|
+
sortOrder: number;
|
|
209
|
+
}
|
|
210
|
+
export interface VariantAttribute {
|
|
211
|
+
type: string;
|
|
212
|
+
value: string;
|
|
213
|
+
displayValue: {
|
|
214
|
+
en: string;
|
|
215
|
+
ar: string;
|
|
216
|
+
};
|
|
217
|
+
displayType: 'color' | 'text' | string;
|
|
218
|
+
hexColor?: string;
|
|
219
|
+
imageUrl?: string;
|
|
193
220
|
}
|
|
194
221
|
export interface GroupedCategory {
|
|
195
222
|
categoryName: any;
|