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