files.com 1.1.19 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (164) hide show
  1. package/.eslintrc.js +0 -3
  2. package/_VERSION +1 -1
  3. package/lib/Api.js +1 -1
  4. package/lib/Errors.js +345 -334
  5. package/lib/Files.js +1 -1
  6. package/lib/models/ActionNotificationExport.js +25 -25
  7. package/lib/models/ActionNotificationExportResult.js +10 -10
  8. package/lib/models/ActionWebhookFailure.js +5 -9
  9. package/lib/models/ApiKey.js +62 -70
  10. package/lib/models/App.js +5 -5
  11. package/lib/models/As2IncomingMessage.js +7 -7
  12. package/lib/models/As2OutgoingMessage.js +7 -7
  13. package/lib/models/As2Partner.js +54 -58
  14. package/lib/models/As2Station.js +51 -55
  15. package/lib/models/Automation.js +102 -110
  16. package/lib/models/AutomationRun.js +13 -13
  17. package/lib/models/BandwidthSnapshot.js +5 -5
  18. package/lib/models/Behavior.js +77 -85
  19. package/lib/models/Bundle.js +102 -110
  20. package/lib/models/BundleDownload.js +9 -9
  21. package/lib/models/BundleNotification.js +37 -41
  22. package/lib/models/BundleRecipient.js +22 -22
  23. package/lib/models/BundleRegistration.js +7 -7
  24. package/lib/models/Clickwrap.js +52 -56
  25. package/lib/models/DnsRecord.js +5 -5
  26. package/lib/models/EmailIncomingMessage.js +5 -5
  27. package/lib/models/ExternalEvent.js +18 -18
  28. package/lib/models/File.js +89 -93
  29. package/lib/models/FileComment.js +41 -45
  30. package/lib/models/FileCommentReaction.js +15 -19
  31. package/lib/models/FileMigration.js +5 -5
  32. package/lib/models/Folder.js +24 -24
  33. package/lib/models/FormFieldSet.js +44 -48
  34. package/lib/models/GpgKey.js +53 -57
  35. package/lib/models/Group.js +51 -55
  36. package/lib/models/GroupUser.js +53 -57
  37. package/lib/models/History.js +72 -72
  38. package/lib/models/HistoryExport.js +51 -51
  39. package/lib/models/HistoryExportResult.js +10 -10
  40. package/lib/models/InboxRecipient.js +22 -22
  41. package/lib/models/InboxRegistration.js +7 -7
  42. package/lib/models/InboxUpload.js +9 -9
  43. package/lib/models/Invoice.js +12 -12
  44. package/lib/models/IpAddress.js +17 -17
  45. package/lib/models/Lock.js +27 -31
  46. package/lib/models/Message.js +60 -64
  47. package/lib/models/MessageComment.js +46 -50
  48. package/lib/models/MessageCommentReaction.js +27 -31
  49. package/lib/models/MessageReaction.js +27 -31
  50. package/lib/models/Notification.js +66 -70
  51. package/lib/models/Payment.js +12 -12
  52. package/lib/models/Permission.js +28 -32
  53. package/lib/models/Priority.js +9 -9
  54. package/lib/models/Project.js +39 -43
  55. package/lib/models/PublicKey.js +46 -50
  56. package/lib/models/RemoteBandwidthSnapshot.js +5 -5
  57. package/lib/models/RemoteServer.js +306 -310
  58. package/lib/models/Request.js +33 -37
  59. package/lib/models/Session.js +11 -15
  60. package/lib/models/SettingsChange.js +5 -5
  61. package/lib/models/SftpHostKey.js +40 -44
  62. package/lib/models/ShareGroup.js +50 -54
  63. package/lib/models/Site.js +138 -138
  64. package/lib/models/Snapshot.js +44 -48
  65. package/lib/models/SsoStrategy.js +15 -19
  66. package/lib/models/Style.js +17 -21
  67. package/lib/models/UsageDailySnapshot.js +5 -5
  68. package/lib/models/UsageSnapshot.js +5 -5
  69. package/lib/models/User.js +156 -172
  70. package/lib/models/UserCipherUse.js +7 -7
  71. package/lib/models/UserRequest.js +26 -30
  72. package/lib/models/WebhookTest.js +15 -15
  73. package/package.json +6 -2
  74. package/src/Api.js +2 -1
  75. package/src/Errors.js +189 -178
  76. package/src/Files.js +1 -1
  77. package/src/models/AccountLineItem.js +5 -2
  78. package/src/models/Action.js +5 -2
  79. package/src/models/ActionNotificationExport.js +36 -35
  80. package/src/models/ActionNotificationExportResult.js +15 -13
  81. package/src/models/ActionWebhookFailure.js +9 -8
  82. package/src/models/ApiKey.js +69 -72
  83. package/src/models/App.js +10 -8
  84. package/src/models/As2IncomingMessage.js +12 -10
  85. package/src/models/As2OutgoingMessage.js +12 -10
  86. package/src/models/As2Partner.js +61 -60
  87. package/src/models/As2Station.js +58 -57
  88. package/src/models/Auto.js +5 -2
  89. package/src/models/Automation.js +121 -110
  90. package/src/models/AutomationRun.js +18 -17
  91. package/src/models/BandwidthSnapshot.js +10 -8
  92. package/src/models/Behavior.js +85 -86
  93. package/src/models/Bundle.js +121 -110
  94. package/src/models/BundleDownload.js +14 -12
  95. package/src/models/BundleNotification.js +40 -43
  96. package/src/models/BundleRecipient.js +33 -32
  97. package/src/models/BundleRegistration.js +12 -10
  98. package/src/models/Clickwrap.js +60 -58
  99. package/src/models/DnsRecord.js +10 -8
  100. package/src/models/EmailIncomingMessage.js +10 -8
  101. package/src/models/Errors.js +5 -2
  102. package/src/models/ExternalEvent.js +29 -29
  103. package/src/models/File.js +116 -108
  104. package/src/models/FileAction.js +5 -2
  105. package/src/models/FileComment.js +45 -46
  106. package/src/models/FileCommentReaction.js +26 -26
  107. package/src/models/FileMigration.js +10 -8
  108. package/src/models/FileUploadPart.js +5 -2
  109. package/src/models/Folder.js +32 -29
  110. package/src/models/FormField.js +5 -2
  111. package/src/models/FormFieldSet.js +49 -50
  112. package/src/models/GpgKey.js +60 -59
  113. package/src/models/Group.js +58 -57
  114. package/src/models/GroupUser.js +60 -58
  115. package/src/models/History.js +77 -74
  116. package/src/models/HistoryExport.js +62 -61
  117. package/src/models/HistoryExportResult.js +15 -13
  118. package/src/models/Image.js +5 -2
  119. package/src/models/InboxRecipient.js +33 -32
  120. package/src/models/InboxRegistration.js +12 -10
  121. package/src/models/InboxUpload.js +14 -12
  122. package/src/models/Invoice.js +17 -14
  123. package/src/models/InvoiceLineItem.js +5 -2
  124. package/src/models/IpAddress.js +22 -20
  125. package/src/models/Lock.js +36 -36
  126. package/src/models/Message.js +66 -66
  127. package/src/models/MessageComment.js +50 -52
  128. package/src/models/MessageCommentReaction.js +38 -40
  129. package/src/models/MessageReaction.js +38 -40
  130. package/src/models/Notification.js +74 -72
  131. package/src/models/Payment.js +17 -14
  132. package/src/models/PaymentLineItem.js +5 -2
  133. package/src/models/Permission.js +39 -40
  134. package/src/models/Preview.js +5 -2
  135. package/src/models/Priority.js +14 -12
  136. package/src/models/Project.js +43 -45
  137. package/src/models/PublicIpAddress.js +5 -2
  138. package/src/models/PublicKey.js +50 -52
  139. package/src/models/RemoteBandwidthSnapshot.js +10 -8
  140. package/src/models/RemoteServer.js +380 -312
  141. package/src/models/RemoteServerConfigurationFile.js +5 -2
  142. package/src/models/Request.js +44 -46
  143. package/src/models/Session.js +22 -22
  144. package/src/models/SettingsChange.js +10 -8
  145. package/src/models/SftpHostKey.js +45 -46
  146. package/src/models/ShareGroup.js +56 -56
  147. package/src/models/ShareGroupMember.js +5 -2
  148. package/src/models/Site.js +143 -142
  149. package/src/models/Snapshot.js +50 -50
  150. package/src/models/SsoStrategy.js +20 -21
  151. package/src/models/Status.js +5 -2
  152. package/src/models/Style.js +22 -23
  153. package/src/models/UsageDailySnapshot.js +10 -8
  154. package/src/models/UsageSnapshot.js +10 -8
  155. package/src/models/User.js +185 -168
  156. package/src/models/UserCipherUse.js +12 -10
  157. package/src/models/UserRequest.js +37 -39
  158. package/src/models/WebhookTest.js +26 -24
  159. package/test/Api.test.js +163 -0
  160. package/test/{package.json → integration/package.json} +1 -1
  161. package/test/{src → integration/src}/index.js +1 -1
  162. package/test.sh +2 -1
  163. /package/test/{.babelrc → integration/.babelrc} +0 -0
  164. /package/test/{index.js → integration/index.js} +0 -0
@@ -107,31 +107,31 @@ var Snapshot = /*#__PURE__*/(0, _createClass2.default)(function Snapshot() {
107
107
  throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
108
108
  case 5:
109
109
  params.id = _this.attributes.id;
110
- if (!(params['id'] && !(0, _utils.isInt)(params['id']))) {
110
+ if (!(params.id && !(0, _utils.isInt)(params.id))) {
111
111
  _context.next = 8;
112
112
  break;
113
113
  }
114
- throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params['id'])));
114
+ throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params.id)));
115
115
  case 8:
116
- if (!(params['expires_at'] && !(0, _utils.isString)(params['expires_at']))) {
116
+ if (!(params.expires_at && !(0, _utils.isString)(params.expires_at))) {
117
117
  _context.next = 10;
118
118
  break;
119
119
  }
120
- throw new errors.InvalidParameterError("Bad parameter: expires_at must be of type String, received ".concat((0, _utils.getType)(params['expires_at'])));
120
+ throw new errors.InvalidParameterError("Bad parameter: expires_at must be of type String, received ".concat((0, _utils.getType)(params.expires_at)));
121
121
  case 10:
122
- if (!(params['name'] && !(0, _utils.isString)(params['name']))) {
122
+ if (!(params.name && !(0, _utils.isString)(params.name))) {
123
123
  _context.next = 12;
124
124
  break;
125
125
  }
126
- throw new errors.InvalidParameterError("Bad parameter: name must be of type String, received ".concat((0, _utils.getType)(params['name'])));
126
+ throw new errors.InvalidParameterError("Bad parameter: name must be of type String, received ".concat((0, _utils.getType)(params.name)));
127
127
  case 12:
128
- if (!(params['paths'] && !(0, _utils.isArray)(params['paths']))) {
128
+ if (!(params.paths && !(0, _utils.isArray)(params.paths))) {
129
129
  _context.next = 14;
130
130
  break;
131
131
  }
132
- throw new errors.InvalidParameterError("Bad parameter: paths must be of type Array, received ".concat((0, _utils.getType)(params['paths'])));
132
+ throw new errors.InvalidParameterError("Bad parameter: paths must be of type Array, received ".concat((0, _utils.getType)(params.paths)));
133
133
  case 14:
134
- if (params['id']) {
134
+ if (params.id) {
135
135
  _context.next = 20;
136
136
  break;
137
137
  }
@@ -139,14 +139,14 @@ var Snapshot = /*#__PURE__*/(0, _createClass2.default)(function Snapshot() {
139
139
  _context.next = 19;
140
140
  break;
141
141
  }
142
- params['id'] = _this.id;
142
+ params.id = _this.id;
143
143
  _context.next = 20;
144
144
  break;
145
145
  case 19:
146
146
  throw new errors.MissingParameterError('Parameter missing: id');
147
147
  case 20:
148
148
  _context.next = 22;
149
- return _Api.default.sendRequest("/snapshots/".concat(encodeURIComponent(params['id'])), 'PATCH', params, _this.options);
149
+ return _Api.default.sendRequest("/snapshots/".concat(encodeURIComponent(params.id)), 'PATCH', params, _this.options);
150
150
  case 22:
151
151
  response = _context.sent;
152
152
  return _context.abrupt("return", new Snapshot(response === null || response === void 0 ? void 0 : response.data, _this.options));
@@ -158,7 +158,6 @@ var Snapshot = /*#__PURE__*/(0, _createClass2.default)(function Snapshot() {
158
158
  })));
159
159
  (0, _defineProperty2.default)(this, "delete", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2() {
160
160
  var params,
161
- response,
162
161
  _args2 = arguments;
163
162
  return _regenerator.default.wrap(function _callee2$(_context2) {
164
163
  while (1) switch (_context2.prev = _context2.next) {
@@ -177,13 +176,13 @@ var Snapshot = /*#__PURE__*/(0, _createClass2.default)(function Snapshot() {
177
176
  throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
178
177
  case 5:
179
178
  params.id = _this.attributes.id;
180
- if (!(params['id'] && !(0, _utils.isInt)(params['id']))) {
179
+ if (!(params.id && !(0, _utils.isInt)(params.id))) {
181
180
  _context2.next = 8;
182
181
  break;
183
182
  }
184
- throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params['id'])));
183
+ throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params.id)));
185
184
  case 8:
186
- if (params['id']) {
185
+ if (params.id) {
187
186
  _context2.next = 14;
188
187
  break;
189
188
  }
@@ -191,18 +190,15 @@ var Snapshot = /*#__PURE__*/(0, _createClass2.default)(function Snapshot() {
191
190
  _context2.next = 13;
192
191
  break;
193
192
  }
194
- params['id'] = _this.id;
193
+ params.id = _this.id;
195
194
  _context2.next = 14;
196
195
  break;
197
196
  case 13:
198
197
  throw new errors.MissingParameterError('Parameter missing: id');
199
198
  case 14:
200
199
  _context2.next = 16;
201
- return _Api.default.sendRequest("/snapshots/".concat(encodeURIComponent(params['id'])), 'DELETE', params, _this.options);
200
+ return _Api.default.sendRequest("/snapshots/".concat(encodeURIComponent(params.id)), 'DELETE', params, _this.options);
202
201
  case 16:
203
- response = _context2.sent;
204
- return _context2.abrupt("return");
205
- case 18:
206
202
  case "end":
207
203
  return _context2.stop();
208
204
  }
@@ -213,28 +209,28 @@ var Snapshot = /*#__PURE__*/(0, _createClass2.default)(function Snapshot() {
213
209
  return _this.delete(params);
214
210
  });
215
211
  (0, _defineProperty2.default)(this, "save", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3() {
216
- var newObject, _newObject;
212
+ var _newObject, newObject;
217
213
  return _regenerator.default.wrap(function _callee3$(_context3) {
218
214
  while (1) switch (_context3.prev = _context3.next) {
219
215
  case 0:
220
- if (!_this.attributes['id']) {
221
- _context3.next = 8;
216
+ if (!_this.attributes.id) {
217
+ _context3.next = 6;
222
218
  break;
223
219
  }
224
220
  _context3.next = 3;
225
221
  return _this.update(_this.attributes);
226
222
  case 3:
227
- newObject = _context3.sent;
228
- _this.attributes = _objectSpread({}, newObject.attributes);
229
- return _context3.abrupt("return", true);
230
- case 8:
231
- _context3.next = 10;
232
- return Snapshot.create(_this.attributes, _this.options);
233
- case 10:
234
223
  _newObject = _context3.sent;
235
224
  _this.attributes = _objectSpread({}, _newObject.attributes);
236
225
  return _context3.abrupt("return", true);
237
- case 13:
226
+ case 6:
227
+ _context3.next = 8;
228
+ return Snapshot.create(_this.attributes, _this.options);
229
+ case 8:
230
+ newObject = _context3.sent;
231
+ _this.attributes = _objectSpread({}, newObject.attributes);
232
+ return _context3.abrupt("return", true);
233
+ case 11:
238
234
  case "end":
239
235
  return _context3.stop();
240
236
  }
@@ -268,20 +264,20 @@ _class = Snapshot;
268
264
  case 0:
269
265
  params = _args4.length > 0 && _args4[0] !== undefined ? _args4[0] : {};
270
266
  options = _args4.length > 1 && _args4[1] !== undefined ? _args4[1] : {};
271
- if (!(params['cursor'] && !(0, _utils.isString)(params['cursor']))) {
267
+ if (!(params.cursor && !(0, _utils.isString)(params.cursor))) {
272
268
  _context4.next = 4;
273
269
  break;
274
270
  }
275
- throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params['cursor'])));
271
+ throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params.cursor)));
276
272
  case 4:
277
- if (!(params['per_page'] && !(0, _utils.isInt)(params['per_page']))) {
273
+ if (!(params.per_page && !(0, _utils.isInt)(params.per_page))) {
278
274
  _context4.next = 6;
279
275
  break;
280
276
  }
281
- throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params['per_page'])));
277
+ throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
282
278
  case 6:
283
279
  _context4.next = 8;
284
- return _Api.default.sendRequest("/snapshots", 'GET', params, options);
280
+ return _Api.default.sendRequest('/snapshots', 'GET', params, options);
285
281
  case 8:
286
282
  response = _context4.sent;
287
283
  return _context4.abrupt("return", (response === null || response === void 0 || (_response$data = response.data) === null || _response$data === void 0 ? void 0 : _response$data.map(function (obj) {
@@ -317,21 +313,21 @@ _class = Snapshot;
317
313
  }
318
314
  throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
319
315
  case 4:
320
- params['id'] = id;
321
- if (params['id']) {
316
+ params.id = id;
317
+ if (params.id) {
322
318
  _context5.next = 7;
323
319
  break;
324
320
  }
325
321
  throw new errors.MissingParameterError('Parameter missing: id');
326
322
  case 7:
327
- if (!(params['id'] && !(0, _utils.isInt)(params['id']))) {
323
+ if (!(params.id && !(0, _utils.isInt)(params.id))) {
328
324
  _context5.next = 9;
329
325
  break;
330
326
  }
331
- throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params['id'])));
327
+ throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params.id)));
332
328
  case 9:
333
329
  _context5.next = 11;
334
- return _Api.default.sendRequest("/snapshots/".concat(encodeURIComponent(params['id'])), 'GET', params, options);
330
+ return _Api.default.sendRequest("/snapshots/".concat(encodeURIComponent(params.id)), 'GET', params, options);
335
331
  case 11:
336
332
  response = _context5.sent;
337
333
  return _context5.abrupt("return", new _class(response === null || response === void 0 ? void 0 : response.data, options));
@@ -364,26 +360,26 @@ _class = Snapshot;
364
360
  case 0:
365
361
  params = _args6.length > 0 && _args6[0] !== undefined ? _args6[0] : {};
366
362
  options = _args6.length > 1 && _args6[1] !== undefined ? _args6[1] : {};
367
- if (!(params['expires_at'] && !(0, _utils.isString)(params['expires_at']))) {
363
+ if (!(params.expires_at && !(0, _utils.isString)(params.expires_at))) {
368
364
  _context6.next = 4;
369
365
  break;
370
366
  }
371
- throw new errors.InvalidParameterError("Bad parameter: expires_at must be of type String, received ".concat((0, _utils.getType)(params['expires_at'])));
367
+ throw new errors.InvalidParameterError("Bad parameter: expires_at must be of type String, received ".concat((0, _utils.getType)(params.expires_at)));
372
368
  case 4:
373
- if (!(params['name'] && !(0, _utils.isString)(params['name']))) {
369
+ if (!(params.name && !(0, _utils.isString)(params.name))) {
374
370
  _context6.next = 6;
375
371
  break;
376
372
  }
377
- throw new errors.InvalidParameterError("Bad parameter: name must be of type String, received ".concat((0, _utils.getType)(params['name'])));
373
+ throw new errors.InvalidParameterError("Bad parameter: name must be of type String, received ".concat((0, _utils.getType)(params.name)));
378
374
  case 6:
379
- if (!(params['paths'] && !(0, _utils.isArray)(params['paths']))) {
375
+ if (!(params.paths && !(0, _utils.isArray)(params.paths))) {
380
376
  _context6.next = 8;
381
377
  break;
382
378
  }
383
- throw new errors.InvalidParameterError("Bad parameter: paths must be of type Array, received ".concat((0, _utils.getType)(params['paths'])));
379
+ throw new errors.InvalidParameterError("Bad parameter: paths must be of type Array, received ".concat((0, _utils.getType)(params.paths)));
384
380
  case 8:
385
381
  _context6.next = 10;
386
- return _Api.default.sendRequest("/snapshots", 'POST', params, options);
382
+ return _Api.default.sendRequest('/snapshots', 'POST', params, options);
387
383
  case 10:
388
384
  response = _context6.sent;
389
385
  return _context6.abrupt("return", new _class(response === null || response === void 0 ? void 0 : response.data, options));
@@ -216,7 +216,6 @@ var SsoStrategy = /*#__PURE__*/(0, _createClass2.default)(function SsoStrategy()
216
216
  // Synchronize provisioning data with the SSO remote server
217
217
  (0, _defineProperty2.default)(this, "sync", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
218
218
  var params,
219
- response,
220
219
  _args = arguments;
221
220
  return _regenerator.default.wrap(function _callee$(_context) {
222
221
  while (1) switch (_context.prev = _context.next) {
@@ -235,13 +234,13 @@ var SsoStrategy = /*#__PURE__*/(0, _createClass2.default)(function SsoStrategy()
235
234
  throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
236
235
  case 5:
237
236
  params.id = _this.attributes.id;
238
- if (!(params['id'] && !(0, _utils.isInt)(params['id']))) {
237
+ if (!(params.id && !(0, _utils.isInt)(params.id))) {
239
238
  _context.next = 8;
240
239
  break;
241
240
  }
242
- throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params['id'])));
241
+ throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params.id)));
243
242
  case 8:
244
- if (params['id']) {
243
+ if (params.id) {
245
244
  _context.next = 14;
246
245
  break;
247
246
  }
@@ -249,18 +248,15 @@ var SsoStrategy = /*#__PURE__*/(0, _createClass2.default)(function SsoStrategy()
249
248
  _context.next = 13;
250
249
  break;
251
250
  }
252
- params['id'] = _this.id;
251
+ params.id = _this.id;
253
252
  _context.next = 14;
254
253
  break;
255
254
  case 13:
256
255
  throw new errors.MissingParameterError('Parameter missing: id');
257
256
  case 14:
258
257
  _context.next = 16;
259
- return _Api.default.sendRequest("/sso_strategies/".concat(encodeURIComponent(params['id']), "/sync"), 'POST', params, _this.options);
258
+ return _Api.default.sendRequest("/sso_strategies/".concat(encodeURIComponent(params.id), "/sync"), 'POST', params, _this.options);
260
259
  case 16:
261
- response = _context.sent;
262
- return _context.abrupt("return");
263
- case 18:
264
260
  case "end":
265
261
  return _context.stop();
266
262
  }
@@ -294,20 +290,20 @@ _class = SsoStrategy;
294
290
  case 0:
295
291
  params = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : {};
296
292
  options = _args2.length > 1 && _args2[1] !== undefined ? _args2[1] : {};
297
- if (!(params['cursor'] && !(0, _utils.isString)(params['cursor']))) {
293
+ if (!(params.cursor && !(0, _utils.isString)(params.cursor))) {
298
294
  _context2.next = 4;
299
295
  break;
300
296
  }
301
- throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params['cursor'])));
297
+ throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params.cursor)));
302
298
  case 4:
303
- if (!(params['per_page'] && !(0, _utils.isInt)(params['per_page']))) {
299
+ if (!(params.per_page && !(0, _utils.isInt)(params.per_page))) {
304
300
  _context2.next = 6;
305
301
  break;
306
302
  }
307
- throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params['per_page'])));
303
+ throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
308
304
  case 6:
309
305
  _context2.next = 8;
310
- return _Api.default.sendRequest("/sso_strategies", 'GET', params, options);
306
+ return _Api.default.sendRequest('/sso_strategies', 'GET', params, options);
311
307
  case 8:
312
308
  response = _context2.sent;
313
309
  return _context2.abrupt("return", (response === null || response === void 0 || (_response$data = response.data) === null || _response$data === void 0 ? void 0 : _response$data.map(function (obj) {
@@ -343,21 +339,21 @@ _class = SsoStrategy;
343
339
  }
344
340
  throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
345
341
  case 4:
346
- params['id'] = id;
347
- if (params['id']) {
342
+ params.id = id;
343
+ if (params.id) {
348
344
  _context3.next = 7;
349
345
  break;
350
346
  }
351
347
  throw new errors.MissingParameterError('Parameter missing: id');
352
348
  case 7:
353
- if (!(params['id'] && !(0, _utils.isInt)(params['id']))) {
349
+ if (!(params.id && !(0, _utils.isInt)(params.id))) {
354
350
  _context3.next = 9;
355
351
  break;
356
352
  }
357
- throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params['id'])));
353
+ throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params.id)));
358
354
  case 9:
359
355
  _context3.next = 11;
360
- return _Api.default.sendRequest("/sso_strategies/".concat(encodeURIComponent(params['id'])), 'GET', params, options);
356
+ return _Api.default.sendRequest("/sso_strategies/".concat(encodeURIComponent(params.id)), 'GET', params, options);
361
357
  case 11:
362
358
  response = _context3.sent;
363
359
  return _context3.abrupt("return", new _class(response === null || response === void 0 ? void 0 : response.data, options));
@@ -91,13 +91,13 @@ var Style = /*#__PURE__*/(0, _createClass2.default)(function Style() {
91
91
  throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
92
92
  case 5:
93
93
  params.path = _this.attributes.path;
94
- if (!(params['path'] && !(0, _utils.isString)(params['path']))) {
94
+ if (!(params.path && !(0, _utils.isString)(params.path))) {
95
95
  _context.next = 8;
96
96
  break;
97
97
  }
98
- throw new errors.InvalidParameterError("Bad parameter: path must be of type String, received ".concat((0, _utils.getType)(params['path'])));
98
+ throw new errors.InvalidParameterError("Bad parameter: path must be of type String, received ".concat((0, _utils.getType)(params.path)));
99
99
  case 8:
100
- if (params['path']) {
100
+ if (params.path) {
101
101
  _context.next = 14;
102
102
  break;
103
103
  }
@@ -105,13 +105,13 @@ var Style = /*#__PURE__*/(0, _createClass2.default)(function Style() {
105
105
  _context.next = 13;
106
106
  break;
107
107
  }
108
- params['path'] = _this.path;
108
+ params.path = _this.path;
109
109
  _context.next = 14;
110
110
  break;
111
111
  case 13:
112
112
  throw new errors.MissingParameterError('Parameter missing: path');
113
113
  case 14:
114
- if (params['file']) {
114
+ if (params.file) {
115
115
  _context.next = 20;
116
116
  break;
117
117
  }
@@ -119,14 +119,14 @@ var Style = /*#__PURE__*/(0, _createClass2.default)(function Style() {
119
119
  _context.next = 19;
120
120
  break;
121
121
  }
122
- params['file'] = _this.file;
122
+ params.file = _this.file;
123
123
  _context.next = 20;
124
124
  break;
125
125
  case 19:
126
126
  throw new errors.MissingParameterError('Parameter missing: file');
127
127
  case 20:
128
128
  _context.next = 22;
129
- return _Api.default.sendRequest("/styles/".concat(encodeURIComponent(params['path'])), 'PATCH', params, _this.options);
129
+ return _Api.default.sendRequest("/styles/".concat(encodeURIComponent(params.path)), 'PATCH', params, _this.options);
130
130
  case 22:
131
131
  response = _context.sent;
132
132
  return _context.abrupt("return", new Style(response === null || response === void 0 ? void 0 : response.data, _this.options));
@@ -138,7 +138,6 @@ var Style = /*#__PURE__*/(0, _createClass2.default)(function Style() {
138
138
  })));
139
139
  (0, _defineProperty2.default)(this, "delete", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2() {
140
140
  var params,
141
- response,
142
141
  _args2 = arguments;
143
142
  return _regenerator.default.wrap(function _callee2$(_context2) {
144
143
  while (1) switch (_context2.prev = _context2.next) {
@@ -157,13 +156,13 @@ var Style = /*#__PURE__*/(0, _createClass2.default)(function Style() {
157
156
  throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
158
157
  case 5:
159
158
  params.path = _this.attributes.path;
160
- if (!(params['path'] && !(0, _utils.isString)(params['path']))) {
159
+ if (!(params.path && !(0, _utils.isString)(params.path))) {
161
160
  _context2.next = 8;
162
161
  break;
163
162
  }
164
- throw new errors.InvalidParameterError("Bad parameter: path must be of type String, received ".concat((0, _utils.getType)(params['path'])));
163
+ throw new errors.InvalidParameterError("Bad parameter: path must be of type String, received ".concat((0, _utils.getType)(params.path)));
165
164
  case 8:
166
- if (params['path']) {
165
+ if (params.path) {
167
166
  _context2.next = 14;
168
167
  break;
169
168
  }
@@ -171,18 +170,15 @@ var Style = /*#__PURE__*/(0, _createClass2.default)(function Style() {
171
170
  _context2.next = 13;
172
171
  break;
173
172
  }
174
- params['path'] = _this.path;
173
+ params.path = _this.path;
175
174
  _context2.next = 14;
176
175
  break;
177
176
  case 13:
178
177
  throw new errors.MissingParameterError('Parameter missing: path');
179
178
  case 14:
180
179
  _context2.next = 16;
181
- return _Api.default.sendRequest("/styles/".concat(encodeURIComponent(params['path'])), 'DELETE', params, _this.options);
180
+ return _Api.default.sendRequest("/styles/".concat(encodeURIComponent(params.path)), 'DELETE', params, _this.options);
182
181
  case 16:
183
- response = _context2.sent;
184
- return _context2.abrupt("return");
185
- case 18:
186
182
  case "end":
187
183
  return _context2.stop();
188
184
  }
@@ -242,21 +238,21 @@ _class = Style;
242
238
  }
243
239
  throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
244
240
  case 4:
245
- params['path'] = path;
246
- if (params['path']) {
241
+ params.path = path;
242
+ if (params.path) {
247
243
  _context4.next = 7;
248
244
  break;
249
245
  }
250
246
  throw new errors.MissingParameterError('Parameter missing: path');
251
247
  case 7:
252
- if (!(params['path'] && !(0, _utils.isString)(params['path']))) {
248
+ if (!(params.path && !(0, _utils.isString)(params.path))) {
253
249
  _context4.next = 9;
254
250
  break;
255
251
  }
256
- throw new errors.InvalidParameterError("Bad parameter: path must be of type String, received ".concat((0, _utils.getType)(params['path'])));
252
+ throw new errors.InvalidParameterError("Bad parameter: path must be of type String, received ".concat((0, _utils.getType)(params.path)));
257
253
  case 9:
258
254
  _context4.next = 11;
259
- return _Api.default.sendRequest("/styles/".concat(encodeURIComponent(params['path'])), 'GET', params, options);
255
+ return _Api.default.sendRequest("/styles/".concat(encodeURIComponent(params.path)), 'GET', params, options);
260
256
  case 11:
261
257
  response = _context4.sent;
262
258
  return _context4.abrupt("return", new _class(response === null || response === void 0 ? void 0 : response.data, options));
@@ -111,20 +111,20 @@ _class = UsageDailySnapshot;
111
111
  case 0:
112
112
  params = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
113
113
  options = _args.length > 1 && _args[1] !== undefined ? _args[1] : {};
114
- if (!(params['cursor'] && !(0, _utils.isString)(params['cursor']))) {
114
+ if (!(params.cursor && !(0, _utils.isString)(params.cursor))) {
115
115
  _context.next = 4;
116
116
  break;
117
117
  }
118
- throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params['cursor'])));
118
+ throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params.cursor)));
119
119
  case 4:
120
- if (!(params['per_page'] && !(0, _utils.isInt)(params['per_page']))) {
120
+ if (!(params.per_page && !(0, _utils.isInt)(params.per_page))) {
121
121
  _context.next = 6;
122
122
  break;
123
123
  }
124
- throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params['per_page'])));
124
+ throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
125
125
  case 6:
126
126
  _context.next = 8;
127
- return _Api.default.sendRequest("/usage_daily_snapshots", 'GET', params, options);
127
+ return _Api.default.sendRequest('/usage_daily_snapshots', 'GET', params, options);
128
128
  case 8:
129
129
  response = _context.sent;
130
130
  return _context.abrupt("return", (response === null || response === void 0 || (_response$data = response.data) === null || _response$data === void 0 ? void 0 : _response$data.map(function (obj) {
@@ -121,20 +121,20 @@ _class = UsageSnapshot;
121
121
  case 0:
122
122
  params = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
123
123
  options = _args.length > 1 && _args[1] !== undefined ? _args[1] : {};
124
- if (!(params['cursor'] && !(0, _utils.isString)(params['cursor']))) {
124
+ if (!(params.cursor && !(0, _utils.isString)(params.cursor))) {
125
125
  _context.next = 4;
126
126
  break;
127
127
  }
128
- throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params['cursor'])));
128
+ throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params.cursor)));
129
129
  case 4:
130
- if (!(params['per_page'] && !(0, _utils.isInt)(params['per_page']))) {
130
+ if (!(params.per_page && !(0, _utils.isInt)(params.per_page))) {
131
131
  _context.next = 6;
132
132
  break;
133
133
  }
134
- throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params['per_page'])));
134
+ throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
135
135
  case 6:
136
136
  _context.next = 8;
137
- return _Api.default.sendRequest("/usage_snapshots", 'GET', params, options);
137
+ return _Api.default.sendRequest('/usage_snapshots', 'GET', params, options);
138
138
  case 8:
139
139
  response = _context.sent;
140
140
  return _context.abrupt("return", (response === null || response === void 0 || (_response$data = response.data) === null || _response$data === void 0 ? void 0 : _response$data.map(function (obj) {