merchi_sdk_js 0.0.24 → 0.0.25

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.24",
3
+ "version": "0.0.25",
4
4
  "type": "module",
5
5
  "main": "src/merchi.js",
6
6
  "module": "src/merchi.js",
@@ -0,0 +1,20 @@
1
+ import { generateUUID } from './uuid.js';
2
+ import { addPropertyTo } from './model.js';
3
+ import { Inventory } from './inventories.js';
4
+ import { Product } from './products.js';
5
+ import { Job } from './jobs.js';
6
+ import { VariationField } from './variation_field.js';
7
+
8
+ export function InventoryGroup() {
9
+ this.resource = '/inventory_groups';
10
+ this.json = 'inventoryGroup';
11
+ this.temporaryId = generateUUID();
12
+
13
+ addPropertyTo(this, 'archived');
14
+ addPropertyTo(this, 'id');
15
+ addPropertyTo(this, 'inventories', Inventory);
16
+ addPropertyTo(this, 'name');
17
+ addPropertyTo(this, 'products', Product);
18
+ addPropertyTo(this, 'jobs', Job);
19
+ addPropertyTo(this, 'variationFields', VariationField);
20
+ }