merchi_sdk_js 0.24.0 → 0.25.0

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "merchi_sdk_js",
3
- "version": "0.24.0",
3
+ "version": "0.25.0",
4
4
  "type": "module",
5
5
  "main": "src/merchi.js",
6
6
  "module": "src/merchi.js",
package/src/model.js CHANGED
@@ -347,6 +347,10 @@ export function getList(resource, success, error, parameters, withUpdates) {
347
347
  request.query().add('public_only',
348
348
  JSON.stringify(parameters.publicOnly));
349
349
  }
350
+ if (parameters.isDraft !== undefined && parameters.isDraft !== null) {
351
+ request.query().add('is_draft',
352
+ JSON.stringify(parameters.isDraft));
353
+ }
350
354
  if (parameters.isPrivate) {
351
355
  request.query().add('is_private',
352
356
  JSON.stringify(parameters.isPrivate));
package/src/product.js CHANGED
@@ -87,6 +87,7 @@ export function Product() {
87
87
  addPropertyTo(this, 'publicFiles', MerchiFile);
88
88
  addPropertyTo(this, 'productionFiles', MerchiFile);
89
89
  addPropertyTo(this, 'showPublic');
90
+ addPropertyTo(this, 'isDraft');
90
91
  addPropertyTo(this, 'acceptSquare');
91
92
  addPropertyTo(this, 'acceptStripe');
92
93
  addPropertyTo(this, 'acceptPaypal');