merchi_sdk_js 0.0.27 → 0.0.29

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "merchi_sdk_js",
3
- "version": "0.0.27",
3
+ "version": "0.0.29",
4
4
  "type": "module",
5
5
  "main": "src/merchi.js",
6
6
  "module": "src/merchi.js",
@@ -1,7 +1,7 @@
1
1
  import { generateUUID } from './uuid.js';
2
2
  import { addPropertyTo } from './model.js';
3
3
  import { Company } from './company.js';
4
- import { Inventory } from './inventory';
4
+ import { Inventory } from './inventory.js';
5
5
  import { Product } from './product.js';
6
6
  import { Job } from './job.js';
7
7
  import { VariationField } from './variation_field.js';
@@ -3,6 +3,7 @@ import { fieldTypes } from './field_types.js';
3
3
  import { addPropertyTo } from './model.js';
4
4
  import { isUndefinedOrNull, clone } from './helpers.js';
5
5
  import { DiscountGroup } from './discount_group.js';
6
+ import { InventoryGroup } from './inventory_group.js';
6
7
  import { VariationFieldsOption } from './variation_fields_option.js';
7
8
  import { Variation } from './variation.js';
8
9
  import { VariationOption } from './variation_option.js';
@@ -21,6 +22,7 @@ export function VariationField() {
21
22
  addPropertyTo(this, 'defaultValue');
22
23
  addPropertyTo(this, 'required');
23
24
  addPropertyTo(this, 'independent');
25
+ addPropertyTo(this, 'inventoryGroup', InventoryGroup);
24
26
  addPropertyTo(this, 'variationCost');
25
27
  addPropertyTo(this, 'variationCostDiscountGroup', DiscountGroup);
26
28
  addPropertyTo(this, 'variationUnitCost');