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