merchi_sdk_js 0.0.35 → 0.0.39

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.35",
3
+ "version": "0.0.39",
4
4
  "type": "module",
5
5
  "main": "src/merchi.js",
6
6
  "module": "src/merchi.js",
package/src/category.js CHANGED
@@ -14,6 +14,8 @@ export function Category() {
14
14
  addPropertyTo(this, 'showPublic');
15
15
  addPropertyTo(this, 'showPublicSupplierResell');
16
16
  addPropertyTo(this, 'domain', Domain);
17
+ addPropertyTo(this, 'subcategories', Category);
18
+ addPropertyTo(this, 'parent', Category);
17
19
 
18
20
  this.create = function (success, error, embed, domainId) {
19
21
  var data = serialise(this),
package/src/model.js CHANGED
@@ -459,6 +459,9 @@ export function getList(resource, success, error, parameters, withUpdates) {
459
459
  request.query().add('query_string',
460
460
  parameters.queryString);
461
461
  }
462
+ if (notEmpty(parameters.categories)) {
463
+ request.query().add('categories', parameters.categories);
464
+ }
462
465
  if (notEmpty(parameters.companyCustomerId)) {
463
466
  request.query().add('company_customer_id',
464
467
  parameters.companyCustomerId);