shopoflex-types 1.0.54 → 1.0.55

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 +8 -13
  2. package/package.json +1 -1
package/dist/common.d.ts CHANGED
@@ -172,19 +172,15 @@ export interface ProductType {
172
172
  };
173
173
  sku?: string;
174
174
  categoriesIds: string[];
175
- dimensions?: {
176
- active: boolean;
177
- };
175
+ dimensions?: Dimensions;
178
176
  label?: Label;
179
- priceModel?: PriceModel;
180
- stockHandle?: StockHandle;
181
177
  tags?: string[];
182
178
  branchesIds?: string[];
183
179
  modifiers?: Modifier[];
184
180
  hasModifiers?: boolean;
185
181
  sort?: number;
186
182
  hasVariants?: boolean;
187
- variants?: VariantType[];
183
+ variants: VariantType[];
188
184
  specifications?: {
189
185
  active: boolean;
190
186
  values: any[];
@@ -192,20 +188,19 @@ export interface ProductType {
192
188
  linkedProduct?: any;
193
189
  createdAt?: Date;
194
190
  updatedAt?: Date;
195
- files?: FileType[];
196
191
  isActive: boolean;
197
192
  vendorId: any;
198
193
  }
199
194
  export interface VariantType {
200
195
  variantId: string;
201
- sku: string;
196
+ sku?: string;
202
197
  priceModel: PriceModel;
203
198
  stockHandle: StockHandle;
204
- attributes: VariantAttribute[];
205
- files: FileType[];
206
- barcode: string;
207
- isActive: boolean;
208
- sortOrder: number;
199
+ attributes?: VariantAttribute[];
200
+ files?: FileType[];
201
+ barcode?: string;
202
+ isActive?: boolean;
203
+ sortOrder?: number;
209
204
  }
210
205
  export interface VariantAttribute {
211
206
  type: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shopoflex-types",
3
- "version": "1.0.54",
3
+ "version": "1.0.55",
4
4
  "description": "Shared TypeScript types for Shopoflex applications",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",