merchi_sdk_js 0.0.23 → 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.23",
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
+ }
package/src/job.js CHANGED
@@ -61,12 +61,17 @@ export function Job() {
61
61
  addPropertyTo(this, 'invoice', Invoice);
62
62
  addPropertyTo(this, 'items', Item);
63
63
  addPropertyTo(this, 'shipment', Shipment);
64
+
64
65
  addPropertyTo(this, 'client', User);
66
+ addPropertyTo(this, 'clientBrowser');
67
+ addPropertyTo(this, 'clientDevice');
68
+ addPropertyTo(this, 'clientOs');
65
69
  addPropertyTo(this, 'clientEmail', EmailAddress);
66
70
  addPropertyTo(this, 'clientPhone', PhoneNumber);
67
71
  addPropertyTo(this, 'clientCompany', Company);
68
72
  addPropertyTo(this, 'clientCompanyEmail', EmailAddress);
69
73
  addPropertyTo(this, 'clientCompanyPhone', PhoneNumber);
74
+
70
75
  addPropertyTo(this, 'manager', User);
71
76
  addPropertyTo(this, 'designer', User);
72
77
  addPropertyTo(this, 'shipping', Address);