files.com 1.2.248 → 1.2.250
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/_VERSION +1 -1
- package/docs/models/Bundle.md +4 -2
- package/docs/models/FormFieldSet.md +5 -2
- package/lib/Api.js +72 -71
- package/lib/Files.js +1 -1
- package/lib/isomorphic/File.node.js +5 -5
- package/lib/models/ActionNotificationExport.js +38 -38
- package/lib/models/ActionNotificationExportResult.js +14 -14
- package/lib/models/ApiKey.js +100 -100
- package/lib/models/ApiRequestLog.js +8 -8
- package/lib/models/App.js +8 -8
- package/lib/models/As2IncomingMessage.js +10 -10
- package/lib/models/As2OutgoingMessage.js +10 -10
- package/lib/models/As2Partner.js +101 -101
- package/lib/models/As2Station.js +81 -81
- package/lib/models/Automation.js +167 -167
- package/lib/models/AutomationLog.js +8 -8
- package/lib/models/AutomationRun.js +24 -24
- package/lib/models/BandwidthSnapshot.js +8 -8
- package/lib/models/Behavior.js +106 -106
- package/lib/models/Bundle.js +143 -143
- package/lib/models/BundleAction.js +10 -10
- package/lib/models/BundleDownload.js +12 -12
- package/lib/models/BundleNotification.js +69 -69
- package/lib/models/BundleRecipient.js +40 -40
- package/lib/models/BundleRegistration.js +12 -12
- package/lib/models/Clickwrap.js +79 -79
- package/lib/models/DnsRecord.js +8 -8
- package/lib/models/EmailIncomingMessage.js +8 -8
- package/lib/models/EmailLog.js +8 -8
- package/lib/models/ExavaultApiRequestLog.js +8 -8
- package/lib/models/ExternalEvent.js +36 -36
- package/lib/models/File.js +269 -269
- package/lib/models/FileComment.js +70 -70
- package/lib/models/FileCommentReaction.js +34 -34
- package/lib/models/FileMigration.js +10 -10
- package/lib/models/FileMigrationLog.js +8 -8
- package/lib/models/Folder.js +36 -36
- package/lib/models/FormFieldSet.js +78 -71
- package/lib/models/FtpActionLog.js +8 -8
- package/lib/models/GpgKey.js +81 -81
- package/lib/models/Group.js +83 -83
- package/lib/models/GroupUser.js +89 -89
- package/lib/models/History.js +88 -88
- package/lib/models/HistoryExport.js +64 -64
- package/lib/models/HistoryExportResult.js +14 -14
- package/lib/models/InboxRecipient.js +36 -36
- package/lib/models/InboxRegistration.js +10 -10
- package/lib/models/InboxUpload.js +8 -8
- package/lib/models/Invoice.js +18 -18
- package/lib/models/IpAddress.js +32 -32
- package/lib/models/Lock.js +51 -51
- package/lib/models/Message.js +100 -100
- package/lib/models/MessageComment.js +78 -78
- package/lib/models/MessageCommentReaction.js +54 -54
- package/lib/models/MessageReaction.js +54 -54
- package/lib/models/Notification.js +91 -91
- package/lib/models/OutboundConnectionLog.js +8 -8
- package/lib/models/Payment.js +18 -18
- package/lib/models/Permission.js +54 -54
- package/lib/models/Priority.js +14 -14
- package/lib/models/Project.js +70 -70
- package/lib/models/PublicHostingRequestLog.js +8 -8
- package/lib/models/PublicKey.js +78 -78
- package/lib/models/RemoteBandwidthSnapshot.js +8 -8
- package/lib/models/RemoteServer.js +362 -362
- package/lib/models/Request.js +60 -60
- package/lib/models/Restore.js +24 -24
- package/lib/models/Session.js +21 -21
- package/lib/models/SettingsChange.js +8 -8
- package/lib/models/SftpActionLog.js +8 -8
- package/lib/models/SftpHostKey.js +67 -67
- package/lib/models/ShareGroup.js +79 -79
- package/lib/models/SiemHttpDestination.js +158 -158
- package/lib/models/Site.js +150 -150
- package/lib/models/Snapshot.js +85 -85
- package/lib/models/SsoStrategy.js +32 -32
- package/lib/models/Style.js +48 -48
- package/lib/models/SyncLog.js +8 -8
- package/lib/models/UsageDailySnapshot.js +8 -8
- package/lib/models/UsageSnapshot.js +8 -8
- package/lib/models/User.js +215 -215
- package/lib/models/UserCipherUse.js +10 -10
- package/lib/models/UserLifecycleRule.js +92 -92
- package/lib/models/UserRequest.js +56 -56
- package/lib/models/UserSftpClientUse.js +10 -10
- package/lib/models/WebDavActionLog.js +8 -8
- package/lib/models/WebhookTest.js +24 -24
- package/package.json +1 -1
- package/src/Files.js +1 -1
- package/src/models/FormFieldSet.js +7 -0
|
@@ -84,37 +84,37 @@ _UserCipherUse = UserCipherUse;
|
|
|
84
84
|
options,
|
|
85
85
|
response,
|
|
86
86
|
_args = arguments;
|
|
87
|
-
return _regenerator.default.wrap(function
|
|
87
|
+
return _regenerator.default.wrap(function (_context) {
|
|
88
88
|
while (1) switch (_context.prev = _context.next) {
|
|
89
89
|
case 0:
|
|
90
90
|
params = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
|
|
91
91
|
options = _args.length > 1 && _args[1] !== undefined ? _args[1] : {};
|
|
92
92
|
if (!(params.user_id && !(0, _utils.isInt)(params.user_id))) {
|
|
93
|
-
_context.next =
|
|
93
|
+
_context.next = 1;
|
|
94
94
|
break;
|
|
95
95
|
}
|
|
96
96
|
throw new errors.InvalidParameterError("Bad parameter: user_id must be of type Int, received ".concat((0, _utils.getType)(params.user_id)));
|
|
97
|
-
case
|
|
97
|
+
case 1:
|
|
98
98
|
if (!(params.cursor && !(0, _utils.isString)(params.cursor))) {
|
|
99
|
-
_context.next =
|
|
99
|
+
_context.next = 2;
|
|
100
100
|
break;
|
|
101
101
|
}
|
|
102
102
|
throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params.cursor)));
|
|
103
|
-
case
|
|
103
|
+
case 2:
|
|
104
104
|
if (!(params.per_page && !(0, _utils.isInt)(params.per_page))) {
|
|
105
|
-
_context.next =
|
|
105
|
+
_context.next = 3;
|
|
106
106
|
break;
|
|
107
107
|
}
|
|
108
108
|
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
|
|
109
|
-
case
|
|
110
|
-
_context.next =
|
|
109
|
+
case 3:
|
|
110
|
+
_context.next = 4;
|
|
111
111
|
return _Api.default.sendRequest('/user_cipher_uses', 'GET', params, options);
|
|
112
|
-
case
|
|
112
|
+
case 4:
|
|
113
113
|
response = _context.sent;
|
|
114
114
|
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) {
|
|
115
115
|
return new _UserCipherUse(obj, options);
|
|
116
116
|
})) || []);
|
|
117
|
-
case
|
|
117
|
+
case 5:
|
|
118
118
|
case "end":
|
|
119
119
|
return _context.stop();
|
|
120
120
|
}
|
|
@@ -91,109 +91,109 @@ var UserLifecycleRule = /*#__PURE__*/(0, _createClass2.default)(function UserLif
|
|
|
91
91
|
var params,
|
|
92
92
|
response,
|
|
93
93
|
_args = arguments;
|
|
94
|
-
return _regenerator.default.wrap(function
|
|
94
|
+
return _regenerator.default.wrap(function (_context) {
|
|
95
95
|
while (1) switch (_context.prev = _context.next) {
|
|
96
96
|
case 0:
|
|
97
97
|
params = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
|
|
98
98
|
if (_this.attributes.id) {
|
|
99
|
-
_context.next =
|
|
99
|
+
_context.next = 1;
|
|
100
100
|
break;
|
|
101
101
|
}
|
|
102
102
|
throw new errors.EmptyPropertyError('Current object has no id');
|
|
103
|
-
case
|
|
103
|
+
case 1:
|
|
104
104
|
if ((0, _utils.isObject)(params)) {
|
|
105
|
-
_context.next =
|
|
105
|
+
_context.next = 2;
|
|
106
106
|
break;
|
|
107
107
|
}
|
|
108
108
|
throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
|
|
109
|
-
case
|
|
109
|
+
case 2:
|
|
110
110
|
params.id = _this.attributes.id;
|
|
111
111
|
if (!(params.id && !(0, _utils.isInt)(params.id))) {
|
|
112
|
-
_context.next =
|
|
112
|
+
_context.next = 3;
|
|
113
113
|
break;
|
|
114
114
|
}
|
|
115
115
|
throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params.id)));
|
|
116
|
-
case
|
|
116
|
+
case 3:
|
|
117
117
|
if (!(params.action && !(0, _utils.isString)(params.action))) {
|
|
118
|
-
_context.next =
|
|
118
|
+
_context.next = 4;
|
|
119
119
|
break;
|
|
120
120
|
}
|
|
121
121
|
throw new errors.InvalidParameterError("Bad parameter: action must be of type String, received ".concat((0, _utils.getType)(params.action)));
|
|
122
|
-
case
|
|
122
|
+
case 4:
|
|
123
123
|
if (!(params.authentication_method && !(0, _utils.isString)(params.authentication_method))) {
|
|
124
|
-
_context.next =
|
|
124
|
+
_context.next = 5;
|
|
125
125
|
break;
|
|
126
126
|
}
|
|
127
127
|
throw new errors.InvalidParameterError("Bad parameter: authentication_method must be of type String, received ".concat((0, _utils.getType)(params.authentication_method)));
|
|
128
|
-
case
|
|
128
|
+
case 5:
|
|
129
129
|
if (!(params.inactivity_days && !(0, _utils.isInt)(params.inactivity_days))) {
|
|
130
|
-
_context.next =
|
|
130
|
+
_context.next = 6;
|
|
131
131
|
break;
|
|
132
132
|
}
|
|
133
133
|
throw new errors.InvalidParameterError("Bad parameter: inactivity_days must be of type Int, received ".concat((0, _utils.getType)(params.inactivity_days)));
|
|
134
|
-
case
|
|
134
|
+
case 6:
|
|
135
135
|
if (params.id) {
|
|
136
|
-
_context.next =
|
|
136
|
+
_context.next = 8;
|
|
137
137
|
break;
|
|
138
138
|
}
|
|
139
139
|
if (!_this.attributes.id) {
|
|
140
|
-
_context.next =
|
|
140
|
+
_context.next = 7;
|
|
141
141
|
break;
|
|
142
142
|
}
|
|
143
143
|
params.id = _this.id;
|
|
144
|
-
_context.next =
|
|
144
|
+
_context.next = 8;
|
|
145
145
|
break;
|
|
146
|
-
case
|
|
146
|
+
case 7:
|
|
147
147
|
throw new errors.MissingParameterError('Parameter missing: id');
|
|
148
|
-
case
|
|
148
|
+
case 8:
|
|
149
149
|
if (params.action) {
|
|
150
|
-
_context.next =
|
|
150
|
+
_context.next = 10;
|
|
151
151
|
break;
|
|
152
152
|
}
|
|
153
153
|
if (!_this.attributes.action) {
|
|
154
|
-
_context.next =
|
|
154
|
+
_context.next = 9;
|
|
155
155
|
break;
|
|
156
156
|
}
|
|
157
157
|
params.action = _this.action;
|
|
158
|
-
_context.next =
|
|
158
|
+
_context.next = 10;
|
|
159
159
|
break;
|
|
160
|
-
case
|
|
160
|
+
case 9:
|
|
161
161
|
throw new errors.MissingParameterError('Parameter missing: action');
|
|
162
|
-
case
|
|
162
|
+
case 10:
|
|
163
163
|
if (params.authentication_method) {
|
|
164
|
-
_context.next =
|
|
164
|
+
_context.next = 12;
|
|
165
165
|
break;
|
|
166
166
|
}
|
|
167
167
|
if (!_this.attributes.authentication_method) {
|
|
168
|
-
_context.next =
|
|
168
|
+
_context.next = 11;
|
|
169
169
|
break;
|
|
170
170
|
}
|
|
171
171
|
params.authentication_method = _this.authentication_method;
|
|
172
|
-
_context.next =
|
|
172
|
+
_context.next = 12;
|
|
173
173
|
break;
|
|
174
|
-
case
|
|
174
|
+
case 11:
|
|
175
175
|
throw new errors.MissingParameterError('Parameter missing: authentication_method');
|
|
176
|
-
case
|
|
176
|
+
case 12:
|
|
177
177
|
if (params.inactivity_days) {
|
|
178
|
-
_context.next =
|
|
178
|
+
_context.next = 14;
|
|
179
179
|
break;
|
|
180
180
|
}
|
|
181
181
|
if (!_this.attributes.inactivity_days) {
|
|
182
|
-
_context.next =
|
|
182
|
+
_context.next = 13;
|
|
183
183
|
break;
|
|
184
184
|
}
|
|
185
185
|
params.inactivity_days = _this.inactivity_days;
|
|
186
|
-
_context.next =
|
|
186
|
+
_context.next = 14;
|
|
187
187
|
break;
|
|
188
|
-
case
|
|
188
|
+
case 13:
|
|
189
189
|
throw new errors.MissingParameterError('Parameter missing: inactivity_days');
|
|
190
|
-
case
|
|
191
|
-
_context.next =
|
|
190
|
+
case 14:
|
|
191
|
+
_context.next = 15;
|
|
192
192
|
return _Api.default.sendRequest("/user_lifecycle_rules/".concat(encodeURIComponent(params.id)), 'PATCH', params, _this.options);
|
|
193
|
-
case
|
|
193
|
+
case 15:
|
|
194
194
|
response = _context.sent;
|
|
195
195
|
return _context.abrupt("return", new UserLifecycleRule(response === null || response === void 0 ? void 0 : response.data, _this.options));
|
|
196
|
-
case
|
|
196
|
+
case 16:
|
|
197
197
|
case "end":
|
|
198
198
|
return _context.stop();
|
|
199
199
|
}
|
|
@@ -202,46 +202,46 @@ var UserLifecycleRule = /*#__PURE__*/(0, _createClass2.default)(function UserLif
|
|
|
202
202
|
(0, _defineProperty2.default)(this, "delete", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee2() {
|
|
203
203
|
var params,
|
|
204
204
|
_args2 = arguments;
|
|
205
|
-
return _regenerator.default.wrap(function
|
|
205
|
+
return _regenerator.default.wrap(function (_context2) {
|
|
206
206
|
while (1) switch (_context2.prev = _context2.next) {
|
|
207
207
|
case 0:
|
|
208
208
|
params = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : {};
|
|
209
209
|
if (_this.attributes.id) {
|
|
210
|
-
_context2.next =
|
|
210
|
+
_context2.next = 1;
|
|
211
211
|
break;
|
|
212
212
|
}
|
|
213
213
|
throw new errors.EmptyPropertyError('Current object has no id');
|
|
214
|
-
case
|
|
214
|
+
case 1:
|
|
215
215
|
if ((0, _utils.isObject)(params)) {
|
|
216
|
-
_context2.next =
|
|
216
|
+
_context2.next = 2;
|
|
217
217
|
break;
|
|
218
218
|
}
|
|
219
219
|
throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
|
|
220
|
-
case
|
|
220
|
+
case 2:
|
|
221
221
|
params.id = _this.attributes.id;
|
|
222
222
|
if (!(params.id && !(0, _utils.isInt)(params.id))) {
|
|
223
|
-
_context2.next =
|
|
223
|
+
_context2.next = 3;
|
|
224
224
|
break;
|
|
225
225
|
}
|
|
226
226
|
throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params.id)));
|
|
227
|
-
case
|
|
227
|
+
case 3:
|
|
228
228
|
if (params.id) {
|
|
229
|
-
_context2.next =
|
|
229
|
+
_context2.next = 5;
|
|
230
230
|
break;
|
|
231
231
|
}
|
|
232
232
|
if (!_this.attributes.id) {
|
|
233
|
-
_context2.next =
|
|
233
|
+
_context2.next = 4;
|
|
234
234
|
break;
|
|
235
235
|
}
|
|
236
236
|
params.id = _this.id;
|
|
237
|
-
_context2.next =
|
|
237
|
+
_context2.next = 5;
|
|
238
238
|
break;
|
|
239
|
-
case
|
|
239
|
+
case 4:
|
|
240
240
|
throw new errors.MissingParameterError('Parameter missing: id');
|
|
241
|
-
case
|
|
242
|
-
_context2.next =
|
|
241
|
+
case 5:
|
|
242
|
+
_context2.next = 6;
|
|
243
243
|
return _Api.default.sendRequest("/user_lifecycle_rules/".concat(encodeURIComponent(params.id)), 'DELETE', params, _this.options);
|
|
244
|
-
case
|
|
244
|
+
case 6:
|
|
245
245
|
case "end":
|
|
246
246
|
return _context2.stop();
|
|
247
247
|
}
|
|
@@ -253,27 +253,27 @@ var UserLifecycleRule = /*#__PURE__*/(0, _createClass2.default)(function UserLif
|
|
|
253
253
|
});
|
|
254
254
|
(0, _defineProperty2.default)(this, "save", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee3() {
|
|
255
255
|
var _newObject, newObject;
|
|
256
|
-
return _regenerator.default.wrap(function
|
|
256
|
+
return _regenerator.default.wrap(function (_context3) {
|
|
257
257
|
while (1) switch (_context3.prev = _context3.next) {
|
|
258
258
|
case 0:
|
|
259
259
|
if (!_this.attributes.id) {
|
|
260
|
-
_context3.next =
|
|
260
|
+
_context3.next = 2;
|
|
261
261
|
break;
|
|
262
262
|
}
|
|
263
|
-
_context3.next =
|
|
263
|
+
_context3.next = 1;
|
|
264
264
|
return _this.update(_this.attributes);
|
|
265
|
-
case
|
|
265
|
+
case 1:
|
|
266
266
|
_newObject = _context3.sent;
|
|
267
267
|
_this.attributes = _objectSpread({}, _newObject.attributes);
|
|
268
268
|
return _context3.abrupt("return", true);
|
|
269
|
-
case
|
|
270
|
-
_context3.next =
|
|
269
|
+
case 2:
|
|
270
|
+
_context3.next = 3;
|
|
271
271
|
return UserLifecycleRule.create(_this.attributes, _this.options);
|
|
272
|
-
case
|
|
272
|
+
case 3:
|
|
273
273
|
newObject = _context3.sent;
|
|
274
274
|
_this.attributes = _objectSpread({}, newObject.attributes);
|
|
275
275
|
return _context3.abrupt("return", true);
|
|
276
|
-
case
|
|
276
|
+
case 4:
|
|
277
277
|
case "end":
|
|
278
278
|
return _context3.stop();
|
|
279
279
|
}
|
|
@@ -302,31 +302,31 @@ _UserLifecycleRule = UserLifecycleRule;
|
|
|
302
302
|
options,
|
|
303
303
|
response,
|
|
304
304
|
_args4 = arguments;
|
|
305
|
-
return _regenerator.default.wrap(function
|
|
305
|
+
return _regenerator.default.wrap(function (_context4) {
|
|
306
306
|
while (1) switch (_context4.prev = _context4.next) {
|
|
307
307
|
case 0:
|
|
308
308
|
params = _args4.length > 0 && _args4[0] !== undefined ? _args4[0] : {};
|
|
309
309
|
options = _args4.length > 1 && _args4[1] !== undefined ? _args4[1] : {};
|
|
310
310
|
if (!(params.cursor && !(0, _utils.isString)(params.cursor))) {
|
|
311
|
-
_context4.next =
|
|
311
|
+
_context4.next = 1;
|
|
312
312
|
break;
|
|
313
313
|
}
|
|
314
314
|
throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params.cursor)));
|
|
315
|
-
case
|
|
315
|
+
case 1:
|
|
316
316
|
if (!(params.per_page && !(0, _utils.isInt)(params.per_page))) {
|
|
317
|
-
_context4.next =
|
|
317
|
+
_context4.next = 2;
|
|
318
318
|
break;
|
|
319
319
|
}
|
|
320
320
|
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
|
|
321
|
-
case
|
|
322
|
-
_context4.next =
|
|
321
|
+
case 2:
|
|
322
|
+
_context4.next = 3;
|
|
323
323
|
return _Api.default.sendRequest('/user_lifecycle_rules', 'GET', params, options);
|
|
324
|
-
case
|
|
324
|
+
case 3:
|
|
325
325
|
response = _context4.sent;
|
|
326
326
|
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) {
|
|
327
327
|
return new _UserLifecycleRule(obj, options);
|
|
328
328
|
})) || []);
|
|
329
|
-
case
|
|
329
|
+
case 4:
|
|
330
330
|
case "end":
|
|
331
331
|
return _context4.stop();
|
|
332
332
|
}
|
|
@@ -345,36 +345,36 @@ _UserLifecycleRule = UserLifecycleRule;
|
|
|
345
345
|
options,
|
|
346
346
|
response,
|
|
347
347
|
_args5 = arguments;
|
|
348
|
-
return _regenerator.default.wrap(function
|
|
348
|
+
return _regenerator.default.wrap(function (_context5) {
|
|
349
349
|
while (1) switch (_context5.prev = _context5.next) {
|
|
350
350
|
case 0:
|
|
351
351
|
params = _args5.length > 1 && _args5[1] !== undefined ? _args5[1] : {};
|
|
352
352
|
options = _args5.length > 2 && _args5[2] !== undefined ? _args5[2] : {};
|
|
353
353
|
if ((0, _utils.isObject)(params)) {
|
|
354
|
-
_context5.next =
|
|
354
|
+
_context5.next = 1;
|
|
355
355
|
break;
|
|
356
356
|
}
|
|
357
357
|
throw new errors.InvalidParameterError("Bad parameter: params must be of type object, received ".concat((0, _utils.getType)(params)));
|
|
358
|
-
case
|
|
358
|
+
case 1:
|
|
359
359
|
params.id = id;
|
|
360
360
|
if (params.id) {
|
|
361
|
-
_context5.next =
|
|
361
|
+
_context5.next = 2;
|
|
362
362
|
break;
|
|
363
363
|
}
|
|
364
364
|
throw new errors.MissingParameterError('Parameter missing: id');
|
|
365
|
-
case
|
|
365
|
+
case 2:
|
|
366
366
|
if (!(params.id && !(0, _utils.isInt)(params.id))) {
|
|
367
|
-
_context5.next =
|
|
367
|
+
_context5.next = 3;
|
|
368
368
|
break;
|
|
369
369
|
}
|
|
370
370
|
throw new errors.InvalidParameterError("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(params.id)));
|
|
371
|
-
case
|
|
372
|
-
_context5.next =
|
|
371
|
+
case 3:
|
|
372
|
+
_context5.next = 4;
|
|
373
373
|
return _Api.default.sendRequest("/user_lifecycle_rules/".concat(encodeURIComponent(params.id)), 'GET', params, options);
|
|
374
|
-
case
|
|
374
|
+
case 4:
|
|
375
375
|
response = _context5.sent;
|
|
376
376
|
return _context5.abrupt("return", new _UserLifecycleRule(response === null || response === void 0 ? void 0 : response.data, options));
|
|
377
|
-
case
|
|
377
|
+
case 5:
|
|
378
378
|
case "end":
|
|
379
379
|
return _context5.stop();
|
|
380
380
|
}
|
|
@@ -400,53 +400,53 @@ _UserLifecycleRule = UserLifecycleRule;
|
|
|
400
400
|
options,
|
|
401
401
|
response,
|
|
402
402
|
_args6 = arguments;
|
|
403
|
-
return _regenerator.default.wrap(function
|
|
403
|
+
return _regenerator.default.wrap(function (_context6) {
|
|
404
404
|
while (1) switch (_context6.prev = _context6.next) {
|
|
405
405
|
case 0:
|
|
406
406
|
params = _args6.length > 0 && _args6[0] !== undefined ? _args6[0] : {};
|
|
407
407
|
options = _args6.length > 1 && _args6[1] !== undefined ? _args6[1] : {};
|
|
408
408
|
if (params.action) {
|
|
409
|
-
_context6.next =
|
|
409
|
+
_context6.next = 1;
|
|
410
410
|
break;
|
|
411
411
|
}
|
|
412
412
|
throw new errors.MissingParameterError('Parameter missing: action');
|
|
413
|
-
case
|
|
413
|
+
case 1:
|
|
414
414
|
if (params.authentication_method) {
|
|
415
|
-
_context6.next =
|
|
415
|
+
_context6.next = 2;
|
|
416
416
|
break;
|
|
417
417
|
}
|
|
418
418
|
throw new errors.MissingParameterError('Parameter missing: authentication_method');
|
|
419
|
-
case
|
|
419
|
+
case 2:
|
|
420
420
|
if (params.inactivity_days) {
|
|
421
|
-
_context6.next =
|
|
421
|
+
_context6.next = 3;
|
|
422
422
|
break;
|
|
423
423
|
}
|
|
424
424
|
throw new errors.MissingParameterError('Parameter missing: inactivity_days');
|
|
425
|
-
case
|
|
425
|
+
case 3:
|
|
426
426
|
if (!(params.action && !(0, _utils.isString)(params.action))) {
|
|
427
|
-
_context6.next =
|
|
427
|
+
_context6.next = 4;
|
|
428
428
|
break;
|
|
429
429
|
}
|
|
430
430
|
throw new errors.InvalidParameterError("Bad parameter: action must be of type String, received ".concat((0, _utils.getType)(params.action)));
|
|
431
|
-
case
|
|
431
|
+
case 4:
|
|
432
432
|
if (!(params.authentication_method && !(0, _utils.isString)(params.authentication_method))) {
|
|
433
|
-
_context6.next =
|
|
433
|
+
_context6.next = 5;
|
|
434
434
|
break;
|
|
435
435
|
}
|
|
436
436
|
throw new errors.InvalidParameterError("Bad parameter: authentication_method must be of type String, received ".concat((0, _utils.getType)(params.authentication_method)));
|
|
437
|
-
case
|
|
437
|
+
case 5:
|
|
438
438
|
if (!(params.inactivity_days && !(0, _utils.isInt)(params.inactivity_days))) {
|
|
439
|
-
_context6.next =
|
|
439
|
+
_context6.next = 6;
|
|
440
440
|
break;
|
|
441
441
|
}
|
|
442
442
|
throw new errors.InvalidParameterError("Bad parameter: inactivity_days must be of type Int, received ".concat((0, _utils.getType)(params.inactivity_days)));
|
|
443
|
-
case
|
|
444
|
-
_context6.next =
|
|
443
|
+
case 6:
|
|
444
|
+
_context6.next = 7;
|
|
445
445
|
return _Api.default.sendRequest('/user_lifecycle_rules', 'POST', params, options);
|
|
446
|
-
case
|
|
446
|
+
case 7:
|
|
447
447
|
response = _context6.sent;
|
|
448
448
|
return _context6.abrupt("return", new _UserLifecycleRule(response === null || response === void 0 ? void 0 : response.data, options));
|
|
449
|
-
case
|
|
449
|
+
case 8:
|
|
450
450
|
case "end":
|
|
451
451
|
return _context6.stop();
|
|
452
452
|
}
|