files.com 1.2.86 → 1.2.87
Sign up to get free protection for your applications and to get access to all the features.
- package/_VERSION +1 -1
- package/docs/models/ActionNotificationExportResult.md +3 -0
- package/docs/models/ApiKey.md +6 -0
- package/docs/models/ApiRequestLog.md +3 -0
- package/docs/models/App.md +3 -0
- package/docs/models/As2IncomingMessage.md +3 -0
- package/docs/models/As2OutgoingMessage.md +3 -0
- package/docs/models/As2Partner.md +42 -29
- package/docs/models/As2Station.md +3 -0
- package/docs/models/Automation.md +17 -3
- package/docs/models/AutomationLog.md +3 -0
- package/docs/models/AutomationRun.md +3 -0
- package/docs/models/BandwidthSnapshot.md +3 -0
- package/docs/models/Behavior.md +26 -19
- package/docs/models/Bundle.md +4 -5
- package/docs/models/BundleAction.md +4 -0
- package/docs/models/BundleDownload.md +3 -0
- package/docs/models/BundleNotification.md +3 -0
- package/docs/models/BundleRecipient.md +3 -0
- package/docs/models/BundleRegistration.md +3 -0
- package/docs/models/Clickwrap.md +3 -0
- package/docs/models/DnsRecord.md +3 -0
- package/docs/models/EmailIncomingMessage.md +3 -0
- package/docs/models/EmailLog.md +3 -0
- package/docs/models/ExavaultApiRequestLog.md +3 -0
- package/docs/models/ExternalEvent.md +3 -0
- package/docs/models/FileComment.md +3 -0
- package/docs/models/FileMigration.md +1 -1
- package/docs/models/FileMigrationLog.md +3 -0
- package/docs/models/Folder.md +2 -0
- package/docs/models/FormFieldSet.md +3 -0
- package/docs/models/FtpActionLog.md +3 -0
- package/docs/models/GpgKey.md +3 -0
- package/docs/models/Group.md +3 -0
- package/docs/models/GroupUser.md +3 -0
- package/docs/models/History.md +20 -0
- package/docs/models/HistoryExportResult.md +4 -0
- package/docs/models/InboxRecipient.md +3 -0
- package/docs/models/InboxRegistration.md +3 -0
- package/docs/models/InboxUpload.md +3 -0
- package/docs/models/Invoice.md +3 -0
- package/docs/models/IpAddress.md +12 -0
- package/docs/models/Lock.md +6 -3
- package/docs/models/Message.md +3 -0
- package/docs/models/MessageComment.md +3 -0
- package/docs/models/MessageCommentReaction.md +3 -0
- package/docs/models/MessageReaction.md +3 -0
- package/docs/models/Notification.md +4 -1
- package/docs/models/Payment.md +3 -0
- package/docs/models/Permission.md +3 -0
- package/docs/models/Priority.md +3 -0
- package/docs/models/Project.md +3 -0
- package/docs/models/PublicHostingRequestLog.md +3 -0
- package/docs/models/PublicKey.md +3 -0
- package/docs/models/RemoteBandwidthSnapshot.md +3 -0
- package/docs/models/RemoteServer.md +3 -0
- package/docs/models/Request.md +6 -0
- package/docs/models/SettingsChange.md +3 -0
- package/docs/models/SftpActionLog.md +3 -0
- package/docs/models/SftpHostKey.md +3 -0
- package/docs/models/ShareGroup.md +3 -0
- package/docs/models/Snapshot.md +3 -0
- package/docs/models/SsoStrategy.md +4 -1
- package/docs/models/SyncLog.md +3 -0
- package/docs/models/UsageDailySnapshot.md +3 -0
- package/docs/models/UsageSnapshot.md +3 -0
- package/docs/models/User.md +6 -3
- package/docs/models/UserCipherUse.md +3 -0
- package/docs/models/UserRequest.md +3 -0
- package/docs/models/WebDavActionLog.md +3 -0
- package/lib/Files.js +1 -1
- package/lib/models/ActionNotificationExportResult.js +19 -5
- package/lib/models/ApiKey.js +34 -6
- package/lib/models/ApiRequestLog.js +17 -3
- package/lib/models/App.js +17 -3
- package/lib/models/As2IncomingMessage.js +19 -5
- package/lib/models/As2OutgoingMessage.js +19 -5
- package/lib/models/As2Partner.js +120 -64
- package/lib/models/As2Station.js +17 -3
- package/lib/models/Automation.js +31 -6
- package/lib/models/AutomationLog.js +17 -3
- package/lib/models/AutomationRun.js +19 -5
- package/lib/models/BandwidthSnapshot.js +17 -3
- package/lib/models/Behavior.js +53 -31
- package/lib/models/Bundle.js +18 -6
- package/lib/models/BundleAction.js +21 -7
- package/lib/models/BundleDownload.js +21 -7
- package/lib/models/BundleNotification.js +17 -3
- package/lib/models/BundleRecipient.js +19 -5
- package/lib/models/BundleRegistration.js +19 -5
- package/lib/models/Clickwrap.js +17 -3
- package/lib/models/DnsRecord.js +17 -3
- package/lib/models/EmailIncomingMessage.js +17 -3
- package/lib/models/EmailLog.js +17 -3
- package/lib/models/ExavaultApiRequestLog.js +17 -3
- package/lib/models/ExternalEvent.js +17 -3
- package/lib/models/FileComment.js +19 -5
- package/lib/models/FileMigration.js +1 -1
- package/lib/models/FileMigrationLog.js +17 -3
- package/lib/models/Folder.js +18 -11
- package/lib/models/FormFieldSet.js +17 -3
- package/lib/models/FtpActionLog.js +17 -3
- package/lib/models/GpgKey.js +17 -3
- package/lib/models/Group.js +19 -5
- package/lib/models/GroupUser.js +19 -5
- package/lib/models/History.js +91 -21
- package/lib/models/HistoryExportResult.js +19 -5
- package/lib/models/InboxRecipient.js +19 -5
- package/lib/models/InboxRegistration.js +19 -5
- package/lib/models/InboxUpload.js +21 -7
- package/lib/models/Invoice.js +17 -3
- package/lib/models/IpAddress.js +68 -12
- package/lib/models/Lock.js +22 -8
- package/lib/models/Message.js +19 -5
- package/lib/models/MessageComment.js +19 -5
- package/lib/models/MessageCommentReaction.js +19 -5
- package/lib/models/MessageReaction.js +19 -5
- package/lib/models/Notification.js +22 -8
- package/lib/models/Payment.js +17 -3
- package/lib/models/Permission.js +23 -9
- package/lib/models/Priority.js +19 -5
- package/lib/models/Project.js +17 -3
- package/lib/models/PublicHostingRequestLog.js +17 -3
- package/lib/models/PublicKey.js +17 -3
- package/lib/models/RemoteBandwidthSnapshot.js +17 -3
- package/lib/models/RemoteServer.js +17 -3
- package/lib/models/Request.js +38 -10
- package/lib/models/SettingsChange.js +17 -3
- package/lib/models/SftpActionLog.js +17 -3
- package/lib/models/SftpHostKey.js +17 -3
- package/lib/models/ShareGroup.js +17 -3
- package/lib/models/Snapshot.js +17 -3
- package/lib/models/SsoStrategy.js +18 -4
- package/lib/models/SyncLog.js +17 -3
- package/lib/models/UsageDailySnapshot.js +17 -3
- package/lib/models/UsageSnapshot.js +17 -3
- package/lib/models/User.js +24 -10
- package/lib/models/UserCipherUse.js +17 -3
- package/lib/models/UserRequest.js +17 -3
- package/lib/models/WebDavActionLog.js +17 -3
- package/package.json +1 -1
- package/src/Files.js +1 -1
- package/src/models/ActionNotificationExportResult.js +10 -0
- package/src/models/ApiKey.js +22 -0
- package/src/models/ApiRequestLog.js +10 -0
- package/src/models/App.js +10 -0
- package/src/models/As2IncomingMessage.js +10 -0
- package/src/models/As2OutgoingMessage.js +10 -0
- package/src/models/As2Partner.js +82 -38
- package/src/models/As2Station.js +10 -0
- package/src/models/Automation.js +24 -3
- package/src/models/AutomationLog.js +10 -0
- package/src/models/AutomationRun.js +10 -0
- package/src/models/BandwidthSnapshot.js +10 -0
- package/src/models/Behavior.js +39 -23
- package/src/models/Bundle.js +11 -3
- package/src/models/BundleAction.js +10 -0
- package/src/models/BundleDownload.js +10 -0
- package/src/models/BundleNotification.js +10 -0
- package/src/models/BundleRecipient.js +10 -0
- package/src/models/BundleRegistration.js +10 -0
- package/src/models/Clickwrap.js +10 -0
- package/src/models/DnsRecord.js +10 -0
- package/src/models/EmailIncomingMessage.js +10 -0
- package/src/models/EmailLog.js +10 -0
- package/src/models/ExavaultApiRequestLog.js +10 -0
- package/src/models/ExternalEvent.js +10 -0
- package/src/models/FileComment.js +10 -0
- package/src/models/FileMigration.js +1 -1
- package/src/models/FileMigrationLog.js +10 -0
- package/src/models/Folder.js +5 -0
- package/src/models/FormFieldSet.js +10 -0
- package/src/models/FtpActionLog.js +10 -0
- package/src/models/GpgKey.js +10 -0
- package/src/models/Group.js +10 -0
- package/src/models/GroupUser.js +10 -0
- package/src/models/History.js +50 -0
- package/src/models/HistoryExportResult.js +10 -0
- package/src/models/InboxRecipient.js +10 -0
- package/src/models/InboxRegistration.js +10 -0
- package/src/models/InboxUpload.js +10 -0
- package/src/models/Invoice.js +10 -0
- package/src/models/IpAddress.js +40 -0
- package/src/models/Lock.js +13 -3
- package/src/models/Message.js +10 -0
- package/src/models/MessageComment.js +10 -0
- package/src/models/MessageCommentReaction.js +10 -0
- package/src/models/MessageReaction.js +10 -0
- package/src/models/Notification.js +11 -1
- package/src/models/Payment.js +10 -0
- package/src/models/Permission.js +10 -0
- package/src/models/Priority.js +10 -0
- package/src/models/Project.js +10 -0
- package/src/models/PublicHostingRequestLog.js +10 -0
- package/src/models/PublicKey.js +10 -0
- package/src/models/RemoteBandwidthSnapshot.js +10 -0
- package/src/models/RemoteServer.js +10 -0
- package/src/models/Request.js +20 -0
- package/src/models/SettingsChange.js +10 -0
- package/src/models/SftpActionLog.js +10 -0
- package/src/models/SftpHostKey.js +10 -0
- package/src/models/ShareGroup.js +10 -0
- package/src/models/Snapshot.js +10 -0
- package/src/models/SsoStrategy.js +11 -1
- package/src/models/SyncLog.js +10 -0
- package/src/models/UsageDailySnapshot.js +10 -0
- package/src/models/UsageSnapshot.js +10 -0
- package/src/models/User.js +13 -3
- package/src/models/UserCipherUse.js +10 -0
- package/src/models/UserRequest.js +10 -0
- package/src/models/WebDavActionLog.js +10 -0
package/lib/models/IpAddress.js
CHANGED
@@ -66,6 +66,8 @@ _IpAddress = IpAddress;
|
|
66
66
|
// Parameters:
|
67
67
|
// cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
|
68
68
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
69
|
+
// action - string
|
70
|
+
// page - int64
|
69
71
|
(0, _defineProperty2.default)(IpAddress, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
|
70
72
|
var _response$data;
|
71
73
|
var params,
|
@@ -89,14 +91,26 @@ _IpAddress = IpAddress;
|
|
89
91
|
}
|
90
92
|
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
|
91
93
|
case 6:
|
92
|
-
|
93
|
-
|
94
|
+
if (!(params.action && !(0, _utils.isString)(params.action))) {
|
95
|
+
_context.next = 8;
|
96
|
+
break;
|
97
|
+
}
|
98
|
+
throw new errors.InvalidParameterError("Bad parameter: action must be of type String, received ".concat((0, _utils.getType)(params.action)));
|
94
99
|
case 8:
|
100
|
+
if (!(params.page && !(0, _utils.isInt)(params.page))) {
|
101
|
+
_context.next = 10;
|
102
|
+
break;
|
103
|
+
}
|
104
|
+
throw new errors.InvalidParameterError("Bad parameter: page must be of type Int, received ".concat((0, _utils.getType)(params.page)));
|
105
|
+
case 10:
|
106
|
+
_context.next = 12;
|
107
|
+
return _Api.default.sendRequest('/ip_addresses', 'GET', params, options);
|
108
|
+
case 12:
|
95
109
|
response = _context.sent;
|
96
110
|
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) {
|
97
111
|
return new _IpAddress(obj, options);
|
98
112
|
})) || []);
|
99
|
-
case
|
113
|
+
case 14:
|
100
114
|
case "end":
|
101
115
|
return _context.stop();
|
102
116
|
}
|
@@ -110,6 +124,8 @@ _IpAddress = IpAddress;
|
|
110
124
|
// Parameters:
|
111
125
|
// cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
|
112
126
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
127
|
+
// action - string
|
128
|
+
// page - int64
|
113
129
|
(0, _defineProperty2.default)(IpAddress, "getSmartfileReserved", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2() {
|
114
130
|
var _response$data2;
|
115
131
|
var params,
|
@@ -134,15 +150,27 @@ _IpAddress = IpAddress;
|
|
134
150
|
}
|
135
151
|
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
|
136
152
|
case 6:
|
137
|
-
|
138
|
-
|
153
|
+
if (!(params.action && !(0, _utils.isString)(params.action))) {
|
154
|
+
_context2.next = 8;
|
155
|
+
break;
|
156
|
+
}
|
157
|
+
throw new errors.InvalidParameterError("Bad parameter: action must be of type String, received ".concat((0, _utils.getType)(params.action)));
|
139
158
|
case 8:
|
159
|
+
if (!(params.page && !(0, _utils.isInt)(params.page))) {
|
160
|
+
_context2.next = 10;
|
161
|
+
break;
|
162
|
+
}
|
163
|
+
throw new errors.InvalidParameterError("Bad parameter: page must be of type Int, received ".concat((0, _utils.getType)(params.page)));
|
164
|
+
case 10:
|
165
|
+
_context2.next = 12;
|
166
|
+
return _Api.default.sendRequest('/ip_addresses/smartfile-reserved', 'GET', params, options);
|
167
|
+
case 12:
|
140
168
|
response = _context2.sent;
|
141
169
|
PublicIpAddress = require('./PublicIpAddress.js').default;
|
142
170
|
return _context2.abrupt("return", (response === null || response === void 0 || (_response$data2 = response.data) === null || _response$data2 === void 0 ? void 0 : _response$data2.map(function (obj) {
|
143
171
|
return new PublicIpAddress(obj, options);
|
144
172
|
})) || []);
|
145
|
-
case
|
173
|
+
case 15:
|
146
174
|
case "end":
|
147
175
|
return _context2.stop();
|
148
176
|
}
|
@@ -151,6 +179,8 @@ _IpAddress = IpAddress;
|
|
151
179
|
// Parameters:
|
152
180
|
// cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
|
153
181
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
182
|
+
// action - string
|
183
|
+
// page - int64
|
154
184
|
(0, _defineProperty2.default)(IpAddress, "getExavaultReserved", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3() {
|
155
185
|
var _response$data3;
|
156
186
|
var params,
|
@@ -175,15 +205,27 @@ _IpAddress = IpAddress;
|
|
175
205
|
}
|
176
206
|
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
|
177
207
|
case 6:
|
178
|
-
|
179
|
-
|
208
|
+
if (!(params.action && !(0, _utils.isString)(params.action))) {
|
209
|
+
_context3.next = 8;
|
210
|
+
break;
|
211
|
+
}
|
212
|
+
throw new errors.InvalidParameterError("Bad parameter: action must be of type String, received ".concat((0, _utils.getType)(params.action)));
|
180
213
|
case 8:
|
214
|
+
if (!(params.page && !(0, _utils.isInt)(params.page))) {
|
215
|
+
_context3.next = 10;
|
216
|
+
break;
|
217
|
+
}
|
218
|
+
throw new errors.InvalidParameterError("Bad parameter: page must be of type Int, received ".concat((0, _utils.getType)(params.page)));
|
219
|
+
case 10:
|
220
|
+
_context3.next = 12;
|
221
|
+
return _Api.default.sendRequest('/ip_addresses/exavault-reserved', 'GET', params, options);
|
222
|
+
case 12:
|
181
223
|
response = _context3.sent;
|
182
224
|
PublicIpAddress = require('./PublicIpAddress.js').default;
|
183
225
|
return _context3.abrupt("return", (response === null || response === void 0 || (_response$data3 = response.data) === null || _response$data3 === void 0 ? void 0 : _response$data3.map(function (obj) {
|
184
226
|
return new PublicIpAddress(obj, options);
|
185
227
|
})) || []);
|
186
|
-
case
|
228
|
+
case 15:
|
187
229
|
case "end":
|
188
230
|
return _context3.stop();
|
189
231
|
}
|
@@ -192,6 +234,8 @@ _IpAddress = IpAddress;
|
|
192
234
|
// Parameters:
|
193
235
|
// cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
|
194
236
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
237
|
+
// action - string
|
238
|
+
// page - int64
|
195
239
|
(0, _defineProperty2.default)(IpAddress, "getReserved", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee4() {
|
196
240
|
var _response$data4;
|
197
241
|
var params,
|
@@ -216,15 +260,27 @@ _IpAddress = IpAddress;
|
|
216
260
|
}
|
217
261
|
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
|
218
262
|
case 6:
|
219
|
-
|
220
|
-
|
263
|
+
if (!(params.action && !(0, _utils.isString)(params.action))) {
|
264
|
+
_context4.next = 8;
|
265
|
+
break;
|
266
|
+
}
|
267
|
+
throw new errors.InvalidParameterError("Bad parameter: action must be of type String, received ".concat((0, _utils.getType)(params.action)));
|
221
268
|
case 8:
|
269
|
+
if (!(params.page && !(0, _utils.isInt)(params.page))) {
|
270
|
+
_context4.next = 10;
|
271
|
+
break;
|
272
|
+
}
|
273
|
+
throw new errors.InvalidParameterError("Bad parameter: page must be of type Int, received ".concat((0, _utils.getType)(params.page)));
|
274
|
+
case 10:
|
275
|
+
_context4.next = 12;
|
276
|
+
return _Api.default.sendRequest('/ip_addresses/reserved', 'GET', params, options);
|
277
|
+
case 12:
|
222
278
|
response = _context4.sent;
|
223
279
|
PublicIpAddress = require('./PublicIpAddress.js').default;
|
224
280
|
return _context4.abrupt("return", (response === null || response === void 0 || (_response$data4 = response.data) === null || _response$data4 === void 0 ? void 0 : _response$data4.map(function (obj) {
|
225
281
|
return new PublicIpAddress(obj, options);
|
226
282
|
})) || []);
|
227
|
-
case
|
283
|
+
case 15:
|
228
284
|
case "end":
|
229
285
|
return _context4.stop();
|
230
286
|
}
|
package/lib/models/Lock.js
CHANGED
@@ -47,7 +47,7 @@ var Lock = /*#__PURE__*/(0, _createClass2.default)(function Lock() {
|
|
47
47
|
(0, _defineProperty2.default)(this, "setTimeout", function (value) {
|
48
48
|
_this.attributes.timeout = value;
|
49
49
|
});
|
50
|
-
// string
|
50
|
+
// string
|
51
51
|
(0, _defineProperty2.default)(this, "getDepth", function () {
|
52
52
|
return _this.attributes.depth;
|
53
53
|
});
|
@@ -68,7 +68,7 @@ var Lock = /*#__PURE__*/(0, _createClass2.default)(function Lock() {
|
|
68
68
|
(0, _defineProperty2.default)(this, "setOwner", function (value) {
|
69
69
|
_this.attributes.owner = value;
|
70
70
|
});
|
71
|
-
// string
|
71
|
+
// string
|
72
72
|
(0, _defineProperty2.default)(this, "getScope", function () {
|
73
73
|
return _this.attributes.scope;
|
74
74
|
});
|
@@ -89,7 +89,7 @@ var Lock = /*#__PURE__*/(0, _createClass2.default)(function Lock() {
|
|
89
89
|
(0, _defineProperty2.default)(this, "setToken", function (value) {
|
90
90
|
_this.attributes.token = value;
|
91
91
|
});
|
92
|
-
// string
|
92
|
+
// string
|
93
93
|
(0, _defineProperty2.default)(this, "getType", function () {
|
94
94
|
return _this.attributes.type;
|
95
95
|
});
|
@@ -225,6 +225,8 @@ _Lock = Lock;
|
|
225
225
|
// Parameters:
|
226
226
|
// cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
|
227
227
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
228
|
+
// action - string
|
229
|
+
// page - int64
|
228
230
|
// path (required) - string - Path to operate on.
|
229
231
|
// include_children - boolean - Include locks from children objects?
|
230
232
|
(0, _defineProperty2.default)(Lock, "listFor", /*#__PURE__*/function () {
|
@@ -264,20 +266,32 @@ _Lock = Lock;
|
|
264
266
|
}
|
265
267
|
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
|
266
268
|
case 11:
|
267
|
-
if (!(params.
|
269
|
+
if (!(params.action && !(0, _utils.isString)(params.action))) {
|
268
270
|
_context3.next = 13;
|
269
271
|
break;
|
270
272
|
}
|
271
|
-
throw new errors.InvalidParameterError("Bad parameter:
|
273
|
+
throw new errors.InvalidParameterError("Bad parameter: action must be of type String, received ".concat((0, _utils.getType)(params.action)));
|
272
274
|
case 13:
|
273
|
-
|
274
|
-
|
275
|
+
if (!(params.page && !(0, _utils.isInt)(params.page))) {
|
276
|
+
_context3.next = 15;
|
277
|
+
break;
|
278
|
+
}
|
279
|
+
throw new errors.InvalidParameterError("Bad parameter: page must be of type Int, received ".concat((0, _utils.getType)(params.page)));
|
275
280
|
case 15:
|
281
|
+
if (!(params.path && !(0, _utils.isString)(params.path))) {
|
282
|
+
_context3.next = 17;
|
283
|
+
break;
|
284
|
+
}
|
285
|
+
throw new errors.InvalidParameterError("Bad parameter: path must be of type String, received ".concat((0, _utils.getType)(params.path)));
|
286
|
+
case 17:
|
287
|
+
_context3.next = 19;
|
288
|
+
return _Api.default.sendRequest("/locks/".concat(encodeURIComponent(params.path)), 'GET', params, options);
|
289
|
+
case 19:
|
276
290
|
response = _context3.sent;
|
277
291
|
return _context3.abrupt("return", (response === null || response === void 0 || (_response$data = response.data) === null || _response$data === void 0 ? void 0 : _response$data.map(function (obj) {
|
278
292
|
return new _Lock(obj, options);
|
279
293
|
})) || []);
|
280
|
-
case
|
294
|
+
case 21:
|
281
295
|
case "end":
|
282
296
|
return _context3.stop();
|
283
297
|
}
|
package/lib/models/Message.js
CHANGED
@@ -289,6 +289,8 @@ _Message = Message;
|
|
289
289
|
// user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
|
290
290
|
// cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
|
291
291
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
292
|
+
// action - string
|
293
|
+
// page - int64
|
292
294
|
// project_id (required) - int64 - Project for which to return messages.
|
293
295
|
(0, _defineProperty2.default)(Message, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee4() {
|
294
296
|
var _response$data;
|
@@ -325,20 +327,32 @@ _Message = Message;
|
|
325
327
|
}
|
326
328
|
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
|
327
329
|
case 10:
|
328
|
-
if (!(params.
|
330
|
+
if (!(params.action && !(0, _utils.isString)(params.action))) {
|
329
331
|
_context4.next = 12;
|
330
332
|
break;
|
331
333
|
}
|
332
|
-
throw new errors.InvalidParameterError("Bad parameter:
|
334
|
+
throw new errors.InvalidParameterError("Bad parameter: action must be of type String, received ".concat((0, _utils.getType)(params.action)));
|
333
335
|
case 12:
|
334
|
-
|
335
|
-
|
336
|
+
if (!(params.page && !(0, _utils.isInt)(params.page))) {
|
337
|
+
_context4.next = 14;
|
338
|
+
break;
|
339
|
+
}
|
340
|
+
throw new errors.InvalidParameterError("Bad parameter: page must be of type Int, received ".concat((0, _utils.getType)(params.page)));
|
336
341
|
case 14:
|
342
|
+
if (!(params.project_id && !(0, _utils.isInt)(params.project_id))) {
|
343
|
+
_context4.next = 16;
|
344
|
+
break;
|
345
|
+
}
|
346
|
+
throw new errors.InvalidParameterError("Bad parameter: project_id must be of type Int, received ".concat((0, _utils.getType)(params.project_id)));
|
347
|
+
case 16:
|
348
|
+
_context4.next = 18;
|
349
|
+
return _Api.default.sendRequest('/messages', 'GET', params, options);
|
350
|
+
case 18:
|
337
351
|
response = _context4.sent;
|
338
352
|
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) {
|
339
353
|
return new _Message(obj, options);
|
340
354
|
})) || []);
|
341
|
-
case
|
355
|
+
case 20:
|
342
356
|
case "end":
|
343
357
|
return _context4.stop();
|
344
358
|
}
|
@@ -233,6 +233,8 @@ _MessageComment = MessageComment;
|
|
233
233
|
// user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
|
234
234
|
// cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
|
235
235
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
236
|
+
// action - string
|
237
|
+
// page - int64
|
236
238
|
// message_id (required) - int64 - Message comment to return comments for.
|
237
239
|
(0, _defineProperty2.default)(MessageComment, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee4() {
|
238
240
|
var _response$data;
|
@@ -269,20 +271,32 @@ _MessageComment = MessageComment;
|
|
269
271
|
}
|
270
272
|
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
|
271
273
|
case 10:
|
272
|
-
if (!(params.
|
274
|
+
if (!(params.action && !(0, _utils.isString)(params.action))) {
|
273
275
|
_context4.next = 12;
|
274
276
|
break;
|
275
277
|
}
|
276
|
-
throw new errors.InvalidParameterError("Bad parameter:
|
278
|
+
throw new errors.InvalidParameterError("Bad parameter: action must be of type String, received ".concat((0, _utils.getType)(params.action)));
|
277
279
|
case 12:
|
278
|
-
|
279
|
-
|
280
|
+
if (!(params.page && !(0, _utils.isInt)(params.page))) {
|
281
|
+
_context4.next = 14;
|
282
|
+
break;
|
283
|
+
}
|
284
|
+
throw new errors.InvalidParameterError("Bad parameter: page must be of type Int, received ".concat((0, _utils.getType)(params.page)));
|
280
285
|
case 14:
|
286
|
+
if (!(params.message_id && !(0, _utils.isInt)(params.message_id))) {
|
287
|
+
_context4.next = 16;
|
288
|
+
break;
|
289
|
+
}
|
290
|
+
throw new errors.InvalidParameterError("Bad parameter: message_id must be of type Int, received ".concat((0, _utils.getType)(params.message_id)));
|
291
|
+
case 16:
|
292
|
+
_context4.next = 18;
|
293
|
+
return _Api.default.sendRequest('/message_comments', 'GET', params, options);
|
294
|
+
case 18:
|
281
295
|
response = _context4.sent;
|
282
296
|
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) {
|
283
297
|
return new _MessageComment(obj, options);
|
284
298
|
})) || []);
|
285
|
-
case
|
299
|
+
case 20:
|
286
300
|
case "end":
|
287
301
|
return _context4.stop();
|
288
302
|
}
|
@@ -147,6 +147,8 @@ _MessageCommentReaction = MessageCommentReaction;
|
|
147
147
|
// user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
|
148
148
|
// cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
|
149
149
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
150
|
+
// action - string
|
151
|
+
// page - int64
|
150
152
|
// message_comment_id (required) - int64 - Message comment to return reactions for.
|
151
153
|
(0, _defineProperty2.default)(MessageCommentReaction, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3() {
|
152
154
|
var _response$data;
|
@@ -183,20 +185,32 @@ _MessageCommentReaction = MessageCommentReaction;
|
|
183
185
|
}
|
184
186
|
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
|
185
187
|
case 10:
|
186
|
-
if (!(params.
|
188
|
+
if (!(params.action && !(0, _utils.isString)(params.action))) {
|
187
189
|
_context3.next = 12;
|
188
190
|
break;
|
189
191
|
}
|
190
|
-
throw new errors.InvalidParameterError("Bad parameter:
|
192
|
+
throw new errors.InvalidParameterError("Bad parameter: action must be of type String, received ".concat((0, _utils.getType)(params.action)));
|
191
193
|
case 12:
|
192
|
-
|
193
|
-
|
194
|
+
if (!(params.page && !(0, _utils.isInt)(params.page))) {
|
195
|
+
_context3.next = 14;
|
196
|
+
break;
|
197
|
+
}
|
198
|
+
throw new errors.InvalidParameterError("Bad parameter: page must be of type Int, received ".concat((0, _utils.getType)(params.page)));
|
194
199
|
case 14:
|
200
|
+
if (!(params.message_comment_id && !(0, _utils.isInt)(params.message_comment_id))) {
|
201
|
+
_context3.next = 16;
|
202
|
+
break;
|
203
|
+
}
|
204
|
+
throw new errors.InvalidParameterError("Bad parameter: message_comment_id must be of type Int, received ".concat((0, _utils.getType)(params.message_comment_id)));
|
205
|
+
case 16:
|
206
|
+
_context3.next = 18;
|
207
|
+
return _Api.default.sendRequest('/message_comment_reactions', 'GET', params, options);
|
208
|
+
case 18:
|
195
209
|
response = _context3.sent;
|
196
210
|
return _context3.abrupt("return", (response === null || response === void 0 || (_response$data = response.data) === null || _response$data === void 0 ? void 0 : _response$data.map(function (obj) {
|
197
211
|
return new _MessageCommentReaction(obj, options);
|
198
212
|
})) || []);
|
199
|
-
case
|
213
|
+
case 20:
|
200
214
|
case "end":
|
201
215
|
return _context3.stop();
|
202
216
|
}
|
@@ -147,6 +147,8 @@ _MessageReaction = MessageReaction;
|
|
147
147
|
// user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
|
148
148
|
// cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
|
149
149
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
150
|
+
// action - string
|
151
|
+
// page - int64
|
150
152
|
// message_id (required) - int64 - Message to return reactions for.
|
151
153
|
(0, _defineProperty2.default)(MessageReaction, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3() {
|
152
154
|
var _response$data;
|
@@ -183,20 +185,32 @@ _MessageReaction = MessageReaction;
|
|
183
185
|
}
|
184
186
|
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
|
185
187
|
case 10:
|
186
|
-
if (!(params.
|
188
|
+
if (!(params.action && !(0, _utils.isString)(params.action))) {
|
187
189
|
_context3.next = 12;
|
188
190
|
break;
|
189
191
|
}
|
190
|
-
throw new errors.InvalidParameterError("Bad parameter:
|
192
|
+
throw new errors.InvalidParameterError("Bad parameter: action must be of type String, received ".concat((0, _utils.getType)(params.action)));
|
191
193
|
case 12:
|
192
|
-
|
193
|
-
|
194
|
+
if (!(params.page && !(0, _utils.isInt)(params.page))) {
|
195
|
+
_context3.next = 14;
|
196
|
+
break;
|
197
|
+
}
|
198
|
+
throw new errors.InvalidParameterError("Bad parameter: page must be of type Int, received ".concat((0, _utils.getType)(params.page)));
|
194
199
|
case 14:
|
200
|
+
if (!(params.message_id && !(0, _utils.isInt)(params.message_id))) {
|
201
|
+
_context3.next = 16;
|
202
|
+
break;
|
203
|
+
}
|
204
|
+
throw new errors.InvalidParameterError("Bad parameter: message_id must be of type Int, received ".concat((0, _utils.getType)(params.message_id)));
|
205
|
+
case 16:
|
206
|
+
_context3.next = 18;
|
207
|
+
return _Api.default.sendRequest('/message_reactions', 'GET', params, options);
|
208
|
+
case 18:
|
195
209
|
response = _context3.sent;
|
196
210
|
return _context3.abrupt("return", (response === null || response === void 0 || (_response$data = response.data) === null || _response$data === void 0 ? void 0 : _response$data.map(function (obj) {
|
197
211
|
return new _MessageReaction(obj, options);
|
198
212
|
})) || []);
|
199
|
-
case
|
213
|
+
case 20:
|
200
214
|
case "end":
|
201
215
|
return _context3.stop();
|
202
216
|
}
|
@@ -378,9 +378,11 @@ var Notification = /*#__PURE__*/(0, _createClass2.default)(function Notification
|
|
378
378
|
});
|
379
379
|
_Notification = Notification;
|
380
380
|
// Parameters:
|
381
|
-
// user_id - int64 -
|
381
|
+
// user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
|
382
382
|
// cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
|
383
383
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
384
|
+
// action - string
|
385
|
+
// page - int64
|
384
386
|
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[path]=desc`). Valid fields are `path`, `user_id` or `group_id`.
|
385
387
|
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `path`, `user_id` or `group_id`.
|
386
388
|
// filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `path`.
|
@@ -416,26 +418,38 @@ _Notification = Notification;
|
|
416
418
|
}
|
417
419
|
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
|
418
420
|
case 8:
|
419
|
-
if (!(params.
|
421
|
+
if (!(params.action && !(0, _utils.isString)(params.action))) {
|
420
422
|
_context4.next = 10;
|
421
423
|
break;
|
422
424
|
}
|
423
|
-
throw new errors.InvalidParameterError("Bad parameter:
|
425
|
+
throw new errors.InvalidParameterError("Bad parameter: action must be of type String, received ".concat((0, _utils.getType)(params.action)));
|
424
426
|
case 10:
|
425
|
-
if (!(params.
|
427
|
+
if (!(params.page && !(0, _utils.isInt)(params.page))) {
|
426
428
|
_context4.next = 12;
|
427
429
|
break;
|
428
430
|
}
|
429
|
-
throw new errors.InvalidParameterError("Bad parameter:
|
431
|
+
throw new errors.InvalidParameterError("Bad parameter: page must be of type Int, received ".concat((0, _utils.getType)(params.page)));
|
430
432
|
case 12:
|
431
|
-
|
432
|
-
|
433
|
+
if (!(params.path && !(0, _utils.isString)(params.path))) {
|
434
|
+
_context4.next = 14;
|
435
|
+
break;
|
436
|
+
}
|
437
|
+
throw new errors.InvalidParameterError("Bad parameter: path must be of type String, received ".concat((0, _utils.getType)(params.path)));
|
433
438
|
case 14:
|
439
|
+
if (!(params.group_id && !(0, _utils.isString)(params.group_id))) {
|
440
|
+
_context4.next = 16;
|
441
|
+
break;
|
442
|
+
}
|
443
|
+
throw new errors.InvalidParameterError("Bad parameter: group_id must be of type String, received ".concat((0, _utils.getType)(params.group_id)));
|
444
|
+
case 16:
|
445
|
+
_context4.next = 18;
|
446
|
+
return _Api.default.sendRequest('/notifications', 'GET', params, options);
|
447
|
+
case 18:
|
434
448
|
response = _context4.sent;
|
435
449
|
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) {
|
436
450
|
return new _Notification(obj, options);
|
437
451
|
})) || []);
|
438
|
-
case
|
452
|
+
case 20:
|
439
453
|
case "end":
|
440
454
|
return _context4.stop();
|
441
455
|
}
|
package/lib/models/Payment.js
CHANGED
@@ -102,6 +102,8 @@ _Payment = Payment;
|
|
102
102
|
// Parameters:
|
103
103
|
// cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
|
104
104
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
105
|
+
// action - string
|
106
|
+
// page - int64
|
105
107
|
(0, _defineProperty2.default)(Payment, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
|
106
108
|
var _response$data;
|
107
109
|
var params,
|
@@ -126,15 +128,27 @@ _Payment = Payment;
|
|
126
128
|
}
|
127
129
|
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
|
128
130
|
case 6:
|
129
|
-
|
130
|
-
|
131
|
+
if (!(params.action && !(0, _utils.isString)(params.action))) {
|
132
|
+
_context.next = 8;
|
133
|
+
break;
|
134
|
+
}
|
135
|
+
throw new errors.InvalidParameterError("Bad parameter: action must be of type String, received ".concat((0, _utils.getType)(params.action)));
|
131
136
|
case 8:
|
137
|
+
if (!(params.page && !(0, _utils.isInt)(params.page))) {
|
138
|
+
_context.next = 10;
|
139
|
+
break;
|
140
|
+
}
|
141
|
+
throw new errors.InvalidParameterError("Bad parameter: page must be of type Int, received ".concat((0, _utils.getType)(params.page)));
|
142
|
+
case 10:
|
143
|
+
_context.next = 12;
|
144
|
+
return _Api.default.sendRequest('/payments', 'GET', params, options);
|
145
|
+
case 12:
|
132
146
|
response = _context.sent;
|
133
147
|
AccountLineItem = require('./AccountLineItem.js').default;
|
134
148
|
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) {
|
135
149
|
return new AccountLineItem(obj, options);
|
136
150
|
})) || []);
|
137
|
-
case
|
151
|
+
case 15:
|
138
152
|
case "end":
|
139
153
|
return _context.stop();
|
140
154
|
}
|
package/lib/models/Permission.js
CHANGED
@@ -181,6 +181,8 @@ _Permission = Permission;
|
|
181
181
|
// Parameters:
|
182
182
|
// cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
|
183
183
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
184
|
+
// action - string
|
185
|
+
// page - int64
|
184
186
|
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[group_id]=desc`). Valid fields are `group_id`, `path`, `user_id` or `permission`.
|
185
187
|
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `path`, `group_id` or `user_id`. Valid field combinations are `[ group_id, path ]`, `[ user_id, path ]` or `[ user_id, group_id, path ]`.
|
186
188
|
// filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `path`.
|
@@ -211,32 +213,44 @@ _Permission = Permission;
|
|
211
213
|
}
|
212
214
|
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
|
213
215
|
case 6:
|
214
|
-
if (!(params.
|
216
|
+
if (!(params.action && !(0, _utils.isString)(params.action))) {
|
215
217
|
_context3.next = 8;
|
216
218
|
break;
|
217
219
|
}
|
218
|
-
throw new errors.InvalidParameterError("Bad parameter:
|
220
|
+
throw new errors.InvalidParameterError("Bad parameter: action must be of type String, received ".concat((0, _utils.getType)(params.action)));
|
219
221
|
case 8:
|
220
|
-
if (!(params.
|
222
|
+
if (!(params.page && !(0, _utils.isInt)(params.page))) {
|
221
223
|
_context3.next = 10;
|
222
224
|
break;
|
223
225
|
}
|
224
|
-
throw new errors.InvalidParameterError("Bad parameter:
|
226
|
+
throw new errors.InvalidParameterError("Bad parameter: page must be of type Int, received ".concat((0, _utils.getType)(params.page)));
|
225
227
|
case 10:
|
226
|
-
if (!(params.
|
228
|
+
if (!(params.path && !(0, _utils.isString)(params.path))) {
|
227
229
|
_context3.next = 12;
|
228
230
|
break;
|
229
231
|
}
|
230
|
-
throw new errors.InvalidParameterError("Bad parameter:
|
232
|
+
throw new errors.InvalidParameterError("Bad parameter: path must be of type String, received ".concat((0, _utils.getType)(params.path)));
|
231
233
|
case 12:
|
232
|
-
|
233
|
-
|
234
|
+
if (!(params.group_id && !(0, _utils.isString)(params.group_id))) {
|
235
|
+
_context3.next = 14;
|
236
|
+
break;
|
237
|
+
}
|
238
|
+
throw new errors.InvalidParameterError("Bad parameter: group_id must be of type String, received ".concat((0, _utils.getType)(params.group_id)));
|
234
239
|
case 14:
|
240
|
+
if (!(params.user_id && !(0, _utils.isString)(params.user_id))) {
|
241
|
+
_context3.next = 16;
|
242
|
+
break;
|
243
|
+
}
|
244
|
+
throw new errors.InvalidParameterError("Bad parameter: user_id must be of type String, received ".concat((0, _utils.getType)(params.user_id)));
|
245
|
+
case 16:
|
246
|
+
_context3.next = 18;
|
247
|
+
return _Api.default.sendRequest('/permissions', 'GET', params, options);
|
248
|
+
case 18:
|
235
249
|
response = _context3.sent;
|
236
250
|
return _context3.abrupt("return", (response === null || response === void 0 || (_response$data = response.data) === null || _response$data === void 0 ? void 0 : _response$data.map(function (obj) {
|
237
251
|
return new _Permission(obj, options);
|
238
252
|
})) || []);
|
239
|
-
case
|
253
|
+
case 20:
|
240
254
|
case "end":
|
241
255
|
return _context3.stop();
|
242
256
|
}
|
package/lib/models/Priority.js
CHANGED
@@ -58,6 +58,8 @@ _Priority = Priority;
|
|
58
58
|
// Parameters:
|
59
59
|
// cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
|
60
60
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
61
|
+
// action - string
|
62
|
+
// page - int64
|
61
63
|
// path (required) - string - The path to query for priorities
|
62
64
|
(0, _defineProperty2.default)(Priority, "list", /*#__PURE__*/function () {
|
63
65
|
var _ref3 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(path) {
|
@@ -96,20 +98,32 @@ _Priority = Priority;
|
|
96
98
|
}
|
97
99
|
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
|
98
100
|
case 11:
|
99
|
-
if (!(params.
|
101
|
+
if (!(params.action && !(0, _utils.isString)(params.action))) {
|
100
102
|
_context.next = 13;
|
101
103
|
break;
|
102
104
|
}
|
103
|
-
throw new errors.InvalidParameterError("Bad parameter:
|
105
|
+
throw new errors.InvalidParameterError("Bad parameter: action must be of type String, received ".concat((0, _utils.getType)(params.action)));
|
104
106
|
case 13:
|
105
|
-
|
106
|
-
|
107
|
+
if (!(params.page && !(0, _utils.isInt)(params.page))) {
|
108
|
+
_context.next = 15;
|
109
|
+
break;
|
110
|
+
}
|
111
|
+
throw new errors.InvalidParameterError("Bad parameter: page must be of type Int, received ".concat((0, _utils.getType)(params.page)));
|
107
112
|
case 15:
|
113
|
+
if (!(params.path && !(0, _utils.isString)(params.path))) {
|
114
|
+
_context.next = 17;
|
115
|
+
break;
|
116
|
+
}
|
117
|
+
throw new errors.InvalidParameterError("Bad parameter: path must be of type String, received ".concat((0, _utils.getType)(params.path)));
|
118
|
+
case 17:
|
119
|
+
_context.next = 19;
|
120
|
+
return _Api.default.sendRequest('/priorities', 'GET', params, options);
|
121
|
+
case 19:
|
108
122
|
response = _context.sent;
|
109
123
|
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) {
|
110
124
|
return new _Priority(obj, options);
|
111
125
|
})) || []);
|
112
|
-
case
|
126
|
+
case 21:
|
113
127
|
case "end":
|
114
128
|
return _context.stop();
|
115
129
|
}
|