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 +1 -1
- package/src/inventory_group.js +20 -0
package/package.json
CHANGED
@@ -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
|
+
}
|