merchi_sdk_js 0.0.42 → 0.0.44
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/category.js +1 -0
- package/src/model.js +9 -0
package/package.json
CHANGED
package/src/category.js
CHANGED
@@ -14,6 +14,7 @@ export function Category() {
|
|
14
14
|
addPropertyTo(this, 'showDashboard');
|
15
15
|
addPropertyTo(this, 'showPublic');
|
16
16
|
addPropertyTo(this, 'showPublicSupplierResell');
|
17
|
+
addPropertyTo(this, 'descendant');
|
17
18
|
addPropertyTo(this, 'image', MerchiFile);
|
18
19
|
addPropertyTo(this, 'domain', Domain);
|
19
20
|
addPropertyTo(this, 'subcategories', Category);
|
package/src/model.js
CHANGED
@@ -386,6 +386,9 @@ export function getList(resource, success, error, parameters, withUpdates) {
|
|
386
386
|
if (parameters.entityTypes) {
|
387
387
|
request.query().add('entity_types', parameters.entityTypes);
|
388
388
|
}
|
389
|
+
if (parameters.priceRange) {
|
390
|
+
request.query().add('product_range', parameters.priceRange);
|
391
|
+
}
|
389
392
|
if (parameters.productTypes) {
|
390
393
|
request.query().add('product_types', parameters.productTypes);
|
391
394
|
}
|
@@ -497,6 +500,12 @@ export function getList(resource, success, error, parameters, withUpdates) {
|
|
497
500
|
if (parameters.tagNames) {
|
498
501
|
request.query().add('tag_names', parameters.tagNames);
|
499
502
|
}
|
503
|
+
if (parameters.turnaroundTimeDays) {
|
504
|
+
request.query().add(
|
505
|
+
'turnaround_time_days',
|
506
|
+
parameters.turnaroundTimeDays
|
507
|
+
);
|
508
|
+
}
|
500
509
|
if (notEmpty(parameters.exclude)) {
|
501
510
|
request.query().add('exclude', parameters.exclude);
|
502
511
|
}
|