@como/como-client 0.7.58 → 0.7.61

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.
@@ -132,17 +132,15 @@ exports.getUserAtLocation = function (service) {
132
132
 
133
133
  exports.memberAssets = function (service) {
134
134
  return function () {
135
- var _ref5 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee4(baseUrl, locationId) {
136
- var archived = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
137
-
138
- var archivedText, url, _ref6, data;
135
+ var _ref5 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee4(baseUrl, locationId, active) {
136
+ var requestKind, url, _ref6, data;
139
137
 
140
138
  return _regenerator2.default.wrap(function _callee4$(_context4) {
141
139
  while (1) {
142
140
  switch (_context4.prev = _context4.next) {
143
141
  case 0:
144
- archivedText = archived ? 'OnlyArchived' : 'OnlyUnarchived';
145
- url = baseUrl + '/memberAssets?requestKind=' + archivedText + '&locationId=' + locationId + '&limit=500';
142
+ requestKind = active == null ? '' : active === true ? '&requestKind=OnlyUnarchived' : '&requestKind=OnlyArchived';
143
+ url = baseUrl + '/memberAssets?locationId=' + locationId + requestKind + '&limit=500';
146
144
  _context4.next = 4;
147
145
  return service.get(url);
148
146
 
@@ -159,7 +157,7 @@ exports.memberAssets = function (service) {
159
157
  }, _callee4, undefined);
160
158
  }));
161
159
 
162
- return function (_x8, _x9) {
160
+ return function (_x8, _x9, _x10) {
163
161
  return _ref5.apply(this, arguments);
164
162
  };
165
163
  }();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@como/como-client",
3
- "version": "0.7.58",
3
+ "version": "0.7.61",
4
4
  "description": "Client module for Como's loaylty API",
5
5
  "main": "src/como.js",
6
6
  "scripts": {