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.
Files changed (2) hide show
  1. package/dist/common.d.ts +34 -7
  2. 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: any[];
175
- dimensions?: Dimensions;
176
- priceModel: PriceModel;
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
- specifications?: Specification;
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 | any;
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shopoflex-types",
3
- "version": "1.0.49",
3
+ "version": "1.0.51",
4
4
  "description": "Shared TypeScript types for Shopoflex applications",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",