Skip to content

Commit ea0faff

Browse files
[Bot] push changes from Files.com
1 parent 3cc7ddc commit ea0faff

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+878
-336
lines changed

_VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.0.22
1+
1.0.23

lib/models/ApiKey.js

+28-6
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,12 @@ var ApiKey = function ApiKey() {
7878
(0, _defineProperty2.default)(this, "setName", function (value) {
7979
_this.attributes.name = value;
8080
});
81+
(0, _defineProperty2.default)(this, "getPath", function () {
82+
return _this.attributes.path;
83+
});
84+
(0, _defineProperty2.default)(this, "setPath", function (value) {
85+
_this.attributes.path = value;
86+
});
8187
(0, _defineProperty2.default)(this, "getPermissionSet", function () {
8288
return _this.attributes.permission_set;
8389
});
@@ -318,16 +324,24 @@ var ApiKey = function ApiKey() {
318324
throw new Error("Bad parameter: action must be of type String, received ".concat((0, _utils.getType)(action)));
319325

320326
case 10:
321-
_context3.next = 12;
322-
return _Api.default.sendRequest("/api_keys", 'GET', params, options);
327+
if (!(params['cursor'] && !(0, _utils.isString)(params['cursor']))) {
328+
_context3.next = 12;
329+
break;
330+
}
331+
332+
throw new Error("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(cursor)));
323333

324334
case 12:
335+
_context3.next = 14;
336+
return _Api.default.sendRequest("/api_keys", 'GET', params, options);
337+
338+
case 14:
325339
response = _context3.sent;
326340
return _context3.abrupt("return", (response === null || response === void 0 ? void 0 : (_response$data = response.data) === null || _response$data === void 0 ? void 0 : _response$data.map(function (obj) {
327341
return new ApiKey(obj, options);
328342
})) || []);
329343

330-
case 14:
344+
case 16:
331345
case "end":
332346
return _context3.stop();
333347
}
@@ -471,14 +485,22 @@ var ApiKey = function ApiKey() {
471485
throw new Error("Bad parameter: permission_set must be of type String, received ".concat((0, _utils.getType)(permission_set)));
472486

473487
case 10:
474-
_context6.next = 12;
475-
return _Api.default.sendRequest("/api_keys", 'POST', params, options);
488+
if (!(params['path'] && !(0, _utils.isString)(params['path']))) {
489+
_context6.next = 12;
490+
break;
491+
}
492+
493+
throw new Error("Bad parameter: path must be of type String, received ".concat((0, _utils.getType)(path)));
476494

477495
case 12:
496+
_context6.next = 14;
497+
return _Api.default.sendRequest("/api_keys", 'POST', params, options);
498+
499+
case 14:
478500
response = _context6.sent;
479501
return _context6.abrupt("return", new ApiKey(response === null || response === void 0 ? void 0 : response.data, options));
480502

481-
case 14:
503+
case 16:
482504
case "end":
483505
return _context6.stop();
484506
}

lib/models/App.js

+17-3
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,12 @@ var App = function App() {
4848
(0, _defineProperty2.default)(this, "getDocumentationLinks", function () {
4949
return _this.attributes.documentation_links;
5050
});
51+
(0, _defineProperty2.default)(this, "getLogoUrl", function () {
52+
return _this.attributes.logo_url;
53+
});
54+
(0, _defineProperty2.default)(this, "getLogoThumbnailUrl", function () {
55+
return _this.attributes.logo_thumbnail_url;
56+
});
5157
(0, _defineProperty2.default)(this, "getSsoStrategyType", function () {
5258
return _this.attributes.sso_strategy_type;
5359
});
@@ -119,16 +125,24 @@ var App = function App() {
119125
throw new Error("Bad parameter: action must be of type String, received ".concat((0, _utils.getType)(action)));
120126

121127
case 8:
122-
_context.next = 10;
123-
return _Api.default.sendRequest("/apps", 'GET', params, options);
128+
if (!(params['cursor'] && !(0, _utils.isString)(params['cursor']))) {
129+
_context.next = 10;
130+
break;
131+
}
132+
133+
throw new Error("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(cursor)));
124134

125135
case 10:
136+
_context.next = 12;
137+
return _Api.default.sendRequest("/apps", 'GET', params, options);
138+
139+
case 12:
126140
response = _context.sent;
127141
return _context.abrupt("return", (response === null || response === void 0 ? void 0 : (_response$data = response.data) === null || _response$data === void 0 ? void 0 : _response$data.map(function (obj) {
128142
return new App(obj, options);
129143
})) || []);
130144

131-
case 12:
145+
case 14:
132146
case "end":
133147
return _context.stop();
134148
}

lib/models/Automation.js

+13-5
Original file line numberDiff line numberDiff line change
@@ -397,24 +397,32 @@ var Automation = function Automation() {
397397
throw new Error("Bad parameter: action must be of type String, received ".concat((0, _utils.getType)(action)));
398398

399399
case 8:
400-
if (!(params['automation'] && !(0, _utils.isString)(params['automation']))) {
400+
if (!(params['cursor'] && !(0, _utils.isString)(params['cursor']))) {
401401
_context3.next = 10;
402402
break;
403403
}
404404

405-
throw new Error("Bad parameter: automation must be of type String, received ".concat((0, _utils.getType)(automation)));
405+
throw new Error("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(cursor)));
406406

407407
case 10:
408-
_context3.next = 12;
409-
return _Api.default.sendRequest("/automations", 'GET', params, options);
408+
if (!(params['automation'] && !(0, _utils.isString)(params['automation']))) {
409+
_context3.next = 12;
410+
break;
411+
}
412+
413+
throw new Error("Bad parameter: automation must be of type String, received ".concat((0, _utils.getType)(automation)));
410414

411415
case 12:
416+
_context3.next = 14;
417+
return _Api.default.sendRequest("/automations", 'GET', params, options);
418+
419+
case 14:
412420
response = _context3.sent;
413421
return _context3.abrupt("return", (response === null || response === void 0 ? void 0 : (_response$data = response.data) === null || _response$data === void 0 ? void 0 : _response$data.map(function (obj) {
414422
return new Automation(obj, options);
415423
})) || []);
416424

417-
case 14:
425+
case 16:
418426
case "end":
419427
return _context3.stop();
420428
}

0 commit comments

Comments
 (0)