@kineticdata/react 6.0.5 → 6.1.1
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/README.md +110 -110
- package/assets/task/icons/defer.svg +12 -12
- package/assets/task/icons/drag-handle.svg +3 -3
- package/assets/task/icons/filter.svg +11 -11
- package/assets/task/icons/loop.svg +10 -10
- package/assets/task/icons/plus_small.svg +5 -5
- package/assets/task/icons/routine.svg +9 -9
- package/assets/task/icons/scale-minus.svg +11 -11
- package/assets/task/icons/scale-plus.svg +13 -13
- package/assets/task/icons/start.svg +11 -11
- package/assets/task/icons/stop.svg +8 -8
- package/lib/apis/core/activity.js +4 -4
- package/lib/apis/core/attributeDefinitions.js +64 -6
- package/lib/apis/core/attributeDefinitions.test.js +7 -4
- package/lib/apis/core/authentication.js +12 -1
- package/lib/apis/core/bridgeModels.test.js +46 -23
- package/lib/apis/core/bridgedresources.js +41 -41
- package/lib/apis/core/fileResources.js +2 -6
- package/lib/apis/core/forms.js +51 -2
- package/lib/apis/core/forms.test.js +32 -19
- package/lib/apis/core/integrations.js +61 -0
- package/lib/apis/core/kapps.js +49 -0
- package/lib/apis/core/kapps.test.js +16 -10
- package/lib/apis/core/notices.js +7 -0
- package/lib/apis/core/securityPolicyDefinitions.test.js +7 -4
- package/lib/apis/core/space.js +18 -0
- package/lib/apis/core/space.test.js +16 -10
- package/lib/apis/core/submissionActivities.js +38 -0
- package/lib/apis/core/submissions.js +114 -15
- package/lib/apis/core/translations.test.js +126 -55
- package/lib/apis/core/userPreferences.js +59 -0
- package/lib/apis/core/webApis.js +32 -2
- package/lib/apis/core/webhooks.test.js +7 -4
- package/lib/apis/http.js +30 -5
- package/lib/apis/index.js +48 -0
- package/lib/apis/integrator/index.js +337 -0
- package/lib/apis/system/index.js +64 -12
- package/lib/apis/task/index.js +9 -2
- package/lib/components/agent/filestore/FilestoreForm.js +1 -1
- package/lib/components/common/AttributeSelect.js +11 -2
- package/lib/components/common/BridgeSelect.js +3 -1
- package/lib/components/common/ConnectionSelect.js +73 -0
- package/lib/components/common/FormSelect.js +3 -1
- package/lib/components/common/NodeSelect.js +1 -0
- package/lib/components/common/StaticSelect.js +16 -6
- package/lib/components/common/TableInput.js +4 -1
- package/lib/components/common/TeamSelect.js +3 -1
- package/lib/components/common/ToastContainer.js +34 -10
- package/lib/components/common/Typeahead.js +62 -23
- package/lib/components/common/UserSelect.js +3 -1
- package/lib/components/common/authentication/AuthenticationContainer.js +121 -55
- package/lib/components/common/authentication/RequestInterceptor.js +1 -1
- package/lib/components/common/preferences/PreferencesProvider.js +461 -0
- package/lib/components/core/attribute_definition/AttributeDefinitionForm.js +10 -7
- package/lib/components/core/bridge_model/BridgeModelTable.js +19 -0
- package/lib/components/core/bridge_model_attribute/BridgeModelAttributeForm.js +6 -9
- package/lib/components/core/bridge_model_attribute/BridgeModelAttributeTable.js +0 -4
- package/lib/components/core/bridge_model_qualification/BridgeModelQualificationForm.js +7 -10
- package/lib/components/core/bridge_model_qualification/BridgeModelQualificationTable.js +2 -15
- package/lib/components/core/category/CategoryForm.js +4 -1
- package/lib/components/core/category/CategoryTable.js +2 -2
- package/lib/components/core/core_form/CoreForm.js +18 -10
- package/lib/components/core/field_definition/FieldDefinitionForm.js +3 -3
- package/lib/components/core/file_resource/FileResourceForm.js +2 -1
- package/lib/components/core/file_resource/FileResourceTable.js +14 -7
- package/lib/components/core/form/FormForm.js +42 -19
- package/lib/components/core/form/FormTable.js +13 -14
- package/lib/components/core/form_type/FormTypeForm.js +3 -0
- package/lib/components/core/i18n/Moment.js +1 -0
- package/lib/components/core/integration/IntegrationForm.js +232 -0
- package/lib/components/core/integration/IntegrationTable.js +142 -0
- package/lib/components/core/kapp/KappForm.js +18 -5
- package/lib/components/core/kapp/KappTable.js +3 -3
- package/lib/components/core/log/LogTable.js +1 -1
- package/lib/components/core/security_definition/SecurityDefinitionForm.js +48 -10
- package/lib/components/core/space/SpaceForm.js +17 -36
- package/lib/components/core/submission/DatastoreSubmissionTable.js +4 -4
- package/lib/components/core/submission/FormSubmissionTable.js +12 -7
- package/lib/components/core/submission/KappSubmissionTable.js +4 -4
- package/lib/components/core/submission/SubmissionActivityForm.js +79 -0
- package/lib/components/core/submission/SubmissionForm.js +15 -3
- package/lib/components/core/team/TeamTable.js +17 -7
- package/lib/components/core/translation/EntryTable.js +8 -7
- package/lib/components/core/user/UserForm.js +2 -0
- package/lib/components/core/user/UserTable.js +22 -22
- package/lib/components/core/webapi/WebApiForm.js +5 -2
- package/lib/components/core/webapi/WebApiTable.js +2 -2
- package/lib/components/core/webhook/WebhookForm.js +43 -33
- package/lib/components/core/webhook/WebhookTable.js +16 -16
- package/lib/components/core/webhook_job/WebhookJobTable.js +17 -6
- package/lib/components/form/Form.helpers.js +10 -4
- package/lib/components/form/Form.js +264 -171
- package/lib/components/form/Form.models.js +6 -1
- package/lib/components/form/FormState.js +9 -5
- package/lib/components/form/SimpleForm.js +2 -2
- package/lib/components/form/defaults/CodeField.js +44 -1
- package/lib/components/index.js +152 -3
- package/lib/components/integrator/connection/ConnectionForm.js +156 -0
- package/lib/components/integrator/connection/ConnectionTable.js +82 -0
- package/lib/components/integrator/connection/config_fields/http.js +570 -0
- package/lib/components/integrator/connection/config_fields/sql.js +123 -0
- package/lib/components/integrator/integrationTypes.js +120 -0
- package/lib/components/integrator/operation/OperationForm.js +148 -0
- package/lib/components/integrator/operation/OperationTable.js +62 -0
- package/lib/components/integrator/operation/config_fields/http.js +185 -0
- package/lib/components/integrator/operation/config_fields/sql.js +81 -0
- package/lib/components/system/SystemSecurityForm.js +1 -1
- package/lib/components/system/SystemTaskAdapterForm.js +9 -9
- package/lib/components/system/SystemUserForm.js +2 -0
- package/lib/components/system/helpers.js +123 -100
- package/lib/components/system/spaces/SystemSpaceForm.js +9 -37
- package/lib/components/system/spaces/SystemTenantForm.js +276 -104
- package/lib/components/system/spaces/SystemTenantMigrateForm.js +449 -0
- package/lib/components/system/spaces/SystemTenantTable.js +20 -16
- package/lib/components/table/Table.js +75 -15
- package/lib/components/table/Table.redux.js +297 -73
- package/lib/components/table/defaults/FilterControl.js +24 -0
- package/lib/components/table/defaults/index.js +2 -0
- package/lib/components/table/tests/Table.test.js +22 -22
- package/lib/components/table/tests/components.js +9 -2
- package/lib/components/task/builder/Connector.js +51 -41
- package/lib/components/task/builder/ConnectorForm.js +11 -7
- package/lib/components/task/builder/Node.js +31 -35
- package/lib/components/task/builder/NodeForm.js +93 -22
- package/lib/components/task/builder/NodeParametersForm.js +29 -17
- package/lib/components/task/builder/SvgCanvas.js +3 -17
- package/lib/components/task/builder/TaskDefinitionConfigForm.js +18 -50
- package/lib/components/task/builder/TreeBuilder.js +23 -3
- package/lib/components/task/builder/builder.redux.js +342 -197
- package/lib/components/task/builder/constants.js +10 -2
- package/lib/components/task/builder/helpers.js +231 -81
- package/lib/components/task/builder/models.js +7 -6
- package/lib/components/task/category/TaskCategoryTable.js +3 -3
- package/lib/components/task/common/UsageTable.js +9 -2
- package/lib/components/task/handlers/HandlerTable.js +44 -37
- package/lib/components/task/policy_rule/PolicyRuleTable.js +3 -3
- package/lib/components/task/runs/CreateManualTriggerForm.js +2 -0
- package/lib/components/task/runs/RunTable.js +10 -14
- package/lib/components/task/runs/RunTaskTable.js +1 -1
- package/lib/components/task/sources/SourceTable.js +2 -2
- package/lib/components/task/triggers/TriggerTable.js +2 -2
- package/lib/components/task/workflows/LinkedWorkflowTable.js +16 -11
- package/lib/components/task/workflows/WorkflowForm.js +27 -8
- package/lib/components/task/workflows/WorkflowTable.js +27 -26
- package/lib/helpers/index.js +307 -74
- package/lib/index.js +2 -1
- package/lib/saga.js +4 -4
- package/lib/store.js +2 -1
- package/package.json +7 -6
- package/proxyhelper.js +201 -176
- package/CHANGELOG.md +0 -94
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")["default"];
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.upsertUserPreference = exports.resetUserPreferences = exports.fetchUserPreferences = exports.fetchUserPreference = exports.deleteUserPreference = void 0;
|
|
8
|
+
var _axios = _interopRequireDefault(require("axios"));
|
|
9
|
+
var _http = require("../http");
|
|
10
|
+
var _helpers = require("../../helpers");
|
|
11
|
+
var fetchUserPreferences = exports.fetchUserPreferences = function fetchUserPreferences() {
|
|
12
|
+
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
13
|
+
return _axios["default"].get("".concat(_helpers.bundle.apiLocation(), "/userPreferences"), {
|
|
14
|
+
params: options
|
|
15
|
+
}).then(function (response) {
|
|
16
|
+
return response.data;
|
|
17
|
+
})["catch"](_http.handleErrors);
|
|
18
|
+
};
|
|
19
|
+
var fetchUserPreference = exports.fetchUserPreference = function fetchUserPreference() {
|
|
20
|
+
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
21
|
+
(0, _http.validateOptions)('updateUserPreference', ['key'], options);
|
|
22
|
+
var key = options.key;
|
|
23
|
+
return _axios["default"].get("".concat(_helpers.bundle.apiLocation(), "/userPreferences/").concat(key), {
|
|
24
|
+
params: options
|
|
25
|
+
}).then(function (response) {
|
|
26
|
+
return response.data;
|
|
27
|
+
})["catch"](_http.handleErrors);
|
|
28
|
+
};
|
|
29
|
+
var upsertUserPreference = exports.upsertUserPreference = function upsertUserPreference() {
|
|
30
|
+
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
31
|
+
(0, _http.validateOptions)('updateUserPreference', ['userPreference'], options);
|
|
32
|
+
var userPreference = options.userPreference;
|
|
33
|
+
return _axios["default"].post("".concat(_helpers.bundle.apiLocation(), "/userPreferences"), {
|
|
34
|
+
userPreference: userPreference
|
|
35
|
+
}, {
|
|
36
|
+
params: (0, _http.paramBuilder)(options),
|
|
37
|
+
headers: (0, _http.headerBuilder)(options)
|
|
38
|
+
}).then(function (response) {
|
|
39
|
+
return response.data;
|
|
40
|
+
})["catch"](_http.handleErrors);
|
|
41
|
+
};
|
|
42
|
+
var deleteUserPreference = exports.deleteUserPreference = function deleteUserPreference() {
|
|
43
|
+
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
44
|
+
(0, _http.validateOptions)('updateUserPreference', ['key'], options);
|
|
45
|
+
var key = options.key;
|
|
46
|
+
return _axios["default"]["delete"]("".concat(_helpers.bundle.apiLocation(), "/userPreferences/").concat(key), {
|
|
47
|
+
params: options
|
|
48
|
+
}).then(function (response) {
|
|
49
|
+
return response.data;
|
|
50
|
+
})["catch"](_http.handleErrors);
|
|
51
|
+
};
|
|
52
|
+
var resetUserPreferences = exports.resetUserPreferences = function resetUserPreferences() {
|
|
53
|
+
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
54
|
+
return _axios["default"].post("".concat(_helpers.bundle.apiLocation(), "/userPreferences/reset"), null, {
|
|
55
|
+
params: options
|
|
56
|
+
}).then(function (response) {
|
|
57
|
+
return response.data;
|
|
58
|
+
})["catch"](_http.handleErrors);
|
|
59
|
+
};
|
package/lib/apis/core/webApis.js
CHANGED
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")["default"];
|
|
3
4
|
Object.defineProperty(exports, "__esModule", {
|
|
4
5
|
value: true
|
|
5
6
|
});
|
|
6
|
-
exports.updateWebApi = exports.fetchWebApis = exports.fetchWebApi = exports.deleteWebApi = exports.createWebApi = void 0;
|
|
7
|
+
exports.updateWebApi = exports.importWebApi = exports.fetchWebApis = exports.fetchWebApi = exports.exportWebApi = exports.deleteWebApi = exports.createWebApi = void 0;
|
|
8
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectWithoutProperties"));
|
|
7
9
|
var _http = require("../http");
|
|
10
|
+
var _axios = _interopRequireDefault(require("axios"));
|
|
11
|
+
var _helpers = require("../../helpers");
|
|
12
|
+
var _excluded = ["webApi", "kappSlug"];
|
|
8
13
|
var _apiGroup = (0, _http.apiGroup)({
|
|
9
14
|
name: 'WebApi',
|
|
10
15
|
dataOption: 'webApi',
|
|
@@ -38,4 +43,29 @@ var _apiGroup = (0, _http.apiGroup)({
|
|
|
38
43
|
fetchWebApi = exports.fetchWebApi = _apiGroup.fetchWebApi,
|
|
39
44
|
createWebApi = exports.createWebApi = _apiGroup.createWebApi,
|
|
40
45
|
updateWebApi = exports.updateWebApi = _apiGroup.updateWebApi,
|
|
41
|
-
deleteWebApi = exports.deleteWebApi = _apiGroup.deleteWebApi;
|
|
46
|
+
deleteWebApi = exports.deleteWebApi = _apiGroup.deleteWebApi;
|
|
47
|
+
var exportWebApi = exports.exportWebApi = function exportWebApi() {
|
|
48
|
+
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
49
|
+
(0, _http.validateOptions)('exportWebApi', ['slug'], options);
|
|
50
|
+
var slug = options.slug,
|
|
51
|
+
kappSlug = options.kappSlug;
|
|
52
|
+
return _axios["default"].get("".concat(_helpers.bundle.apiLocation()).concat(kappSlug ? "/kapps/".concat(kappSlug) : '', "/webApis/").concat(slug, "/export")).then(function (response) {
|
|
53
|
+
return {
|
|
54
|
+
webApi: response.data
|
|
55
|
+
};
|
|
56
|
+
})["catch"](_http.handleErrors);
|
|
57
|
+
};
|
|
58
|
+
var importWebApi = exports.importWebApi = function importWebApi() {
|
|
59
|
+
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
60
|
+
(0, _http.validateOptions)('importWebApi', ['webApi'], options);
|
|
61
|
+
var webApi = options.webApi,
|
|
62
|
+
kappSlug = options.kappSlug,
|
|
63
|
+
params = (0, _objectWithoutProperties2["default"])(options, _excluded);
|
|
64
|
+
return _axios["default"].post("".concat(_helpers.bundle.apiLocation()).concat(kappSlug ? "/kapps/".concat(kappSlug) : '', "/webApiImport"), webApi, {
|
|
65
|
+
params: params
|
|
66
|
+
}).then(function (response) {
|
|
67
|
+
return {
|
|
68
|
+
webApi: response.data
|
|
69
|
+
};
|
|
70
|
+
})["catch"](_http.handleErrors);
|
|
71
|
+
};
|
|
@@ -4,7 +4,6 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
var _regeneratorRuntime2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/regeneratorRuntime"));
|
|
5
5
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/asyncToGenerator"));
|
|
6
6
|
var _axios = _interopRequireDefault(require("axios"));
|
|
7
|
-
var _createError = _interopRequireDefault(require("axios/lib/core/createError"));
|
|
8
7
|
var _webhooks = require("./webhooks");
|
|
9
8
|
jest.mock('axios');
|
|
10
9
|
|
|
@@ -118,9 +117,13 @@ describe('webhooks api', function () {
|
|
|
118
117
|
return (0, _regeneratorRuntime2["default"])().wrap(function _callee3$(_context3) {
|
|
119
118
|
while (1) switch (_context3.prev = _context3.next) {
|
|
120
119
|
case 0:
|
|
121
|
-
_axios["default"].get.mockRejectedValue((
|
|
122
|
-
|
|
123
|
-
|
|
120
|
+
_axios["default"].get.mockRejectedValue(Object.assign(new Error('Request failed with status code 403'), {
|
|
121
|
+
name: 'AxiosError',
|
|
122
|
+
isAxiosError: true,
|
|
123
|
+
response: {
|
|
124
|
+
status: 403,
|
|
125
|
+
statusText: 'Forbidden'
|
|
126
|
+
}
|
|
124
127
|
}));
|
|
125
128
|
_context3.next = 3;
|
|
126
129
|
return (0, _webhooks.fetchWebhooks)();
|
package/lib/apis/http.js
CHANGED
|
@@ -24,11 +24,20 @@ var handleErrors = exports.handleErrors = function handleErrors(error) {
|
|
|
24
24
|
// handle a javascript runtime exception by re-throwing it, this is in case we
|
|
25
25
|
// make a mistake in a `then` block in one of our api functions.
|
|
26
26
|
if (error instanceof Error && !error.response) {
|
|
27
|
+
if (error.name === 'AxiosError') {
|
|
28
|
+
return {
|
|
29
|
+
error: {
|
|
30
|
+
message: error.message || 'An unexpected error occurred.'
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
}
|
|
27
34
|
throw error;
|
|
28
35
|
}
|
|
29
36
|
if (_axios["default"].isCancel(error)) {
|
|
30
37
|
return {
|
|
31
|
-
error:
|
|
38
|
+
error: {
|
|
39
|
+
message: 'Canceled by user request.'
|
|
40
|
+
}
|
|
32
41
|
};
|
|
33
42
|
}
|
|
34
43
|
|
|
@@ -79,6 +88,7 @@ var paramBuilder = exports.paramBuilder = function paramBuilder(options) {
|
|
|
79
88
|
if (options["export"]) params["export"] = options["export"];
|
|
80
89
|
if (options.days) params.days = options.days;
|
|
81
90
|
if (options.count) params.count = options.count;
|
|
91
|
+
if (options.force) params.force = options.force;
|
|
82
92
|
return params;
|
|
83
93
|
};
|
|
84
94
|
var headerBuilder = exports.headerBuilder = function headerBuilder(options) {
|
|
@@ -119,12 +129,26 @@ var formDataBuilder = exports.formDataBuilder = function formDataBuilder(data, p
|
|
|
119
129
|
return result;
|
|
120
130
|
}, formData);
|
|
121
131
|
};
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
*
|
|
135
|
+
* @param {string} functionName
|
|
136
|
+
* @param {(string|string[])[]} requiredOptions
|
|
137
|
+
* The keys of the required options. You can group keys in a nested array if
|
|
138
|
+
* only one of a subset is required.
|
|
139
|
+
* @param {object} options
|
|
140
|
+
* The options object to validate.
|
|
141
|
+
*/
|
|
122
142
|
var validateOptions = exports.validateOptions = function validateOptions(functionName, requiredOptions, options) {
|
|
123
143
|
var missing = requiredOptions.filter(function (requiredOption) {
|
|
124
|
-
return !
|
|
144
|
+
return Array.isArray(requiredOption) ? !requiredOption.some(function (option) {
|
|
145
|
+
return options[option];
|
|
146
|
+
}) : !options[requiredOption];
|
|
125
147
|
});
|
|
126
148
|
if (missing.length > 0) {
|
|
127
|
-
throw new Error("".concat(functionName, " failed! The following required options are missing: ").concat(missing)
|
|
149
|
+
throw new Error("".concat(functionName, " failed! The following required options are missing: ").concat(missing.map(function (key) {
|
|
150
|
+
return Array.isArray(key) ? key.join(' or ') : key;
|
|
151
|
+
}).join(', ')));
|
|
128
152
|
}
|
|
129
153
|
};
|
|
130
154
|
var apiFunction = exports.apiFunction = function apiFunction(_ref) {
|
|
@@ -151,10 +175,11 @@ var apiGroup = exports.apiGroup = function apiGroup(_ref2) {
|
|
|
151
175
|
var _ref3;
|
|
152
176
|
var dataOption = _ref2.dataOption,
|
|
153
177
|
name = _ref2.name,
|
|
178
|
+
pluralName = _ref2.pluralName,
|
|
154
179
|
plural = _ref2.plural,
|
|
155
180
|
singular = _ref2.singular;
|
|
156
|
-
return _ref3 = {}, (0, _defineProperty2["default"])(_ref3, "fetch".concat(name, "s"), apiFunction((0, _objectSpread2["default"])({
|
|
157
|
-
name: "fetch".concat(name, "s"),
|
|
181
|
+
return _ref3 = {}, (0, _defineProperty2["default"])(_ref3, "fetch".concat(pluralName || "".concat(name, "s")), apiFunction((0, _objectSpread2["default"])({
|
|
182
|
+
name: "fetch".concat(pluralName || "".concat(name, "s")),
|
|
158
183
|
method: 'get'
|
|
159
184
|
}, plural))), (0, _defineProperty2["default"])(_ref3, "fetch".concat(name), apiFunction((0, _objectSpread2["default"])({
|
|
160
185
|
name: "fetch".concat(name),
|
package/lib/apis/index.js
CHANGED
|
@@ -204,6 +204,18 @@ Object.keys(_formTypes).forEach(function (key) {
|
|
|
204
204
|
}
|
|
205
205
|
});
|
|
206
206
|
});
|
|
207
|
+
var _integrations = require("./core/integrations");
|
|
208
|
+
Object.keys(_integrations).forEach(function (key) {
|
|
209
|
+
if (key === "default" || key === "__esModule") return;
|
|
210
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
211
|
+
if (key in exports && exports[key] === _integrations[key]) return;
|
|
212
|
+
Object.defineProperty(exports, key, {
|
|
213
|
+
enumerable: true,
|
|
214
|
+
get: function get() {
|
|
215
|
+
return _integrations[key];
|
|
216
|
+
}
|
|
217
|
+
});
|
|
218
|
+
});
|
|
207
219
|
var _kapps = require("./core/kapps");
|
|
208
220
|
Object.keys(_kapps).forEach(function (key) {
|
|
209
221
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -348,6 +360,18 @@ Object.keys(_submissions).forEach(function (key) {
|
|
|
348
360
|
}
|
|
349
361
|
});
|
|
350
362
|
});
|
|
363
|
+
var _submissionActivities = require("./core/submissionActivities");
|
|
364
|
+
Object.keys(_submissionActivities).forEach(function (key) {
|
|
365
|
+
if (key === "default" || key === "__esModule") return;
|
|
366
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
367
|
+
if (key in exports && exports[key] === _submissionActivities[key]) return;
|
|
368
|
+
Object.defineProperty(exports, key, {
|
|
369
|
+
enumerable: true,
|
|
370
|
+
get: function get() {
|
|
371
|
+
return _submissionActivities[key];
|
|
372
|
+
}
|
|
373
|
+
});
|
|
374
|
+
});
|
|
351
375
|
var _teams = require("./core/teams");
|
|
352
376
|
Object.keys(_teams).forEach(function (key) {
|
|
353
377
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -384,6 +408,18 @@ Object.keys(_users).forEach(function (key) {
|
|
|
384
408
|
}
|
|
385
409
|
});
|
|
386
410
|
});
|
|
411
|
+
var _userPreferences = require("./core/userPreferences");
|
|
412
|
+
Object.keys(_userPreferences).forEach(function (key) {
|
|
413
|
+
if (key === "default" || key === "__esModule") return;
|
|
414
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
415
|
+
if (key in exports && exports[key] === _userPreferences[key]) return;
|
|
416
|
+
Object.defineProperty(exports, key, {
|
|
417
|
+
enumerable: true,
|
|
418
|
+
get: function get() {
|
|
419
|
+
return _userPreferences[key];
|
|
420
|
+
}
|
|
421
|
+
});
|
|
422
|
+
});
|
|
387
423
|
var _version = require("./core/version");
|
|
388
424
|
Object.keys(_version).forEach(function (key) {
|
|
389
425
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -445,6 +481,18 @@ Object.keys(_workflows).forEach(function (key) {
|
|
|
445
481
|
});
|
|
446
482
|
});
|
|
447
483
|
var _http = require("./http");
|
|
484
|
+
var _integrator = require("./integrator");
|
|
485
|
+
Object.keys(_integrator).forEach(function (key) {
|
|
486
|
+
if (key === "default" || key === "__esModule") return;
|
|
487
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
488
|
+
if (key in exports && exports[key] === _integrator[key]) return;
|
|
489
|
+
Object.defineProperty(exports, key, {
|
|
490
|
+
enumerable: true,
|
|
491
|
+
get: function get() {
|
|
492
|
+
return _integrator[key];
|
|
493
|
+
}
|
|
494
|
+
});
|
|
495
|
+
});
|
|
448
496
|
var _task = require("./task");
|
|
449
497
|
Object.keys(_task).forEach(function (key) {
|
|
450
498
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -0,0 +1,337 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")["default"];
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.updateOperation = exports.updateConnection = exports.transformOutputs = exports.testConnection = exports.restartConnection = exports.inspectOperation = exports.importOperations = exports.importConnection = exports.fetchOperations = exports.fetchOperation = exports.fetchIntegratorVersion = exports.fetchConnections = exports.fetchConnection = exports.fetchBulkOperations = exports.exportConnection = exports.executeOperation = exports.deleteOperation = exports.deleteConnection = exports.createOperation = exports.createConnection = void 0;
|
|
8
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectWithoutProperties"));
|
|
9
|
+
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
|
10
|
+
var _axios = _interopRequireDefault(require("axios"));
|
|
11
|
+
var _http = require("../http");
|
|
12
|
+
var _helpers = require("../../helpers");
|
|
13
|
+
var _excluded = ["id"],
|
|
14
|
+
_excluded2 = ["id", "connection"],
|
|
15
|
+
_excluded3 = ["connection"],
|
|
16
|
+
_excluded4 = ["id"],
|
|
17
|
+
_excluded5 = ["id"],
|
|
18
|
+
_excluded6 = ["connection"],
|
|
19
|
+
_excluded7 = ["connection", "id"],
|
|
20
|
+
_excluded8 = ["id"],
|
|
21
|
+
_excluded9 = ["connectionId"],
|
|
22
|
+
_excluded10 = ["connectionId", "id"],
|
|
23
|
+
_excluded11 = ["connectionId", "id", "operation"],
|
|
24
|
+
_excluded12 = ["connectionId", "operation"],
|
|
25
|
+
_excluded13 = ["connectionId", "id"],
|
|
26
|
+
_excluded14 = ["connectionId", "operations"],
|
|
27
|
+
_excluded15 = ["ids"],
|
|
28
|
+
_excluded16 = ["operation", "operationId"],
|
|
29
|
+
_excluded17 = ["connection", "connectionId", "operation", "operationId", "parameters"],
|
|
30
|
+
_excluded18 = ["outputs", "raw"];
|
|
31
|
+
/******************************************************************************
|
|
32
|
+
* CONNECTIONS
|
|
33
|
+
******************************************************************************/
|
|
34
|
+
|
|
35
|
+
var fetchConnections = exports.fetchConnections = function fetchConnections() {
|
|
36
|
+
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
37
|
+
return _axios["default"].get("".concat(_helpers.bundle.spaceLocation(), "/app/integrator/api/connections"), {
|
|
38
|
+
params: options
|
|
39
|
+
}).then(function (response) {
|
|
40
|
+
return {
|
|
41
|
+
connections: response.data
|
|
42
|
+
};
|
|
43
|
+
})["catch"](function (rawError) {
|
|
44
|
+
var _errorResponse$error;
|
|
45
|
+
var errorResponse = (0, _http.handleErrors)(rawError);
|
|
46
|
+
// If response statusCode is 404, then integrator isn't installed so we
|
|
47
|
+
// should return a better message.
|
|
48
|
+
if (((_errorResponse$error = errorResponse.error) === null || _errorResponse$error === void 0 ? void 0 : _errorResponse$error.statusCode) === 404) {
|
|
49
|
+
return {
|
|
50
|
+
error: (0, _objectSpread2["default"])((0, _objectSpread2["default"])({}, errorResponse.error), {}, {
|
|
51
|
+
message: 'Integrator is unavailable.'
|
|
52
|
+
})
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
return errorResponse;
|
|
56
|
+
});
|
|
57
|
+
};
|
|
58
|
+
var fetchConnection = exports.fetchConnection = function fetchConnection() {
|
|
59
|
+
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
60
|
+
(0, _http.validateOptions)('fetchConnection', ['id'], options);
|
|
61
|
+
var id = options.id,
|
|
62
|
+
params = (0, _objectWithoutProperties2["default"])(options, _excluded);
|
|
63
|
+
return _axios["default"].get("".concat(_helpers.bundle.spaceLocation(), "/app/integrator/api/connections/").concat(id), {
|
|
64
|
+
params: params
|
|
65
|
+
}).then(function (response) {
|
|
66
|
+
return {
|
|
67
|
+
connection: response.data
|
|
68
|
+
};
|
|
69
|
+
})["catch"](_http.handleErrors);
|
|
70
|
+
};
|
|
71
|
+
var updateConnection = exports.updateConnection = function updateConnection() {
|
|
72
|
+
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
73
|
+
(0, _http.validateOptions)('updateConnection', ['id', 'connection'], options);
|
|
74
|
+
var id = options.id,
|
|
75
|
+
connection = options.connection,
|
|
76
|
+
params = (0, _objectWithoutProperties2["default"])(options, _excluded2);
|
|
77
|
+
return _axios["default"].put("".concat(_helpers.bundle.spaceLocation(), "/app/integrator/api/connections/").concat(id), connection, {
|
|
78
|
+
params: params
|
|
79
|
+
}).then(function (response) {
|
|
80
|
+
return {
|
|
81
|
+
connection: response.data
|
|
82
|
+
};
|
|
83
|
+
})["catch"](_http.handleErrors);
|
|
84
|
+
};
|
|
85
|
+
var createConnection = exports.createConnection = function createConnection() {
|
|
86
|
+
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
87
|
+
(0, _http.validateOptions)('createConnection', ['connection'], options);
|
|
88
|
+
var connection = options.connection,
|
|
89
|
+
params = (0, _objectWithoutProperties2["default"])(options, _excluded3);
|
|
90
|
+
return _axios["default"].post("".concat(_helpers.bundle.spaceLocation(), "/app/integrator/api/connections"), connection, {
|
|
91
|
+
params: params
|
|
92
|
+
}).then(function (response) {
|
|
93
|
+
return {
|
|
94
|
+
connection: response.data
|
|
95
|
+
};
|
|
96
|
+
})["catch"](_http.handleErrors);
|
|
97
|
+
};
|
|
98
|
+
var deleteConnection = exports.deleteConnection = function deleteConnection() {
|
|
99
|
+
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
100
|
+
(0, _http.validateOptions)('deleteConnection', ['id'], options);
|
|
101
|
+
var id = options.id,
|
|
102
|
+
params = (0, _objectWithoutProperties2["default"])(options, _excluded4);
|
|
103
|
+
return _axios["default"]["delete"]("".concat(_helpers.bundle.spaceLocation(), "/app/integrator/api/connections/").concat(id), {
|
|
104
|
+
params: params
|
|
105
|
+
}).then(function (response) {
|
|
106
|
+
return {
|
|
107
|
+
connection: response.data
|
|
108
|
+
};
|
|
109
|
+
})["catch"](_http.handleErrors);
|
|
110
|
+
};
|
|
111
|
+
var exportConnection = exports.exportConnection = function exportConnection() {
|
|
112
|
+
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
113
|
+
(0, _http.validateOptions)('exportConnection', ['id'], options);
|
|
114
|
+
var id = options.id,
|
|
115
|
+
params = (0, _objectWithoutProperties2["default"])(options, _excluded5);
|
|
116
|
+
return _axios["default"].get("".concat(_helpers.bundle.spaceLocation(), "/app/integrator/api/export/connections/").concat(id), {
|
|
117
|
+
params: params
|
|
118
|
+
}).then(function (response) {
|
|
119
|
+
return {
|
|
120
|
+
connection: response.data
|
|
121
|
+
};
|
|
122
|
+
})["catch"](_http.handleErrors);
|
|
123
|
+
};
|
|
124
|
+
var importConnection = exports.importConnection = function importConnection() {
|
|
125
|
+
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
126
|
+
(0, _http.validateOptions)('importConnection', ['connection'], options);
|
|
127
|
+
var connection = options.connection,
|
|
128
|
+
params = (0, _objectWithoutProperties2["default"])(options, _excluded6);
|
|
129
|
+
return _axios["default"].post("".concat(_helpers.bundle.spaceLocation(), "/app/integrator/api/import/connections"), connection, {
|
|
130
|
+
params: params
|
|
131
|
+
}).then(function (response) {
|
|
132
|
+
return {
|
|
133
|
+
connection: response.data
|
|
134
|
+
};
|
|
135
|
+
})["catch"](_http.handleErrors);
|
|
136
|
+
};
|
|
137
|
+
var testConnection = exports.testConnection = function testConnection() {
|
|
138
|
+
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
139
|
+
(0, _http.validateOptions)('testConnection', ['connection'], options);
|
|
140
|
+
var connection = options.connection,
|
|
141
|
+
id = options.id,
|
|
142
|
+
params = (0, _objectWithoutProperties2["default"])(options, _excluded7);
|
|
143
|
+
return _axios["default"].post("".concat(_helpers.bundle.spaceLocation(), "/app/integrator/api").concat(id ? "/connections/".concat(id) : '', "/test"), connection, {
|
|
144
|
+
params: params
|
|
145
|
+
}).then(function (response) {
|
|
146
|
+
return {
|
|
147
|
+
data: response.data
|
|
148
|
+
};
|
|
149
|
+
})["catch"](_http.handleErrors);
|
|
150
|
+
};
|
|
151
|
+
var restartConnection = exports.restartConnection = function restartConnection() {
|
|
152
|
+
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
153
|
+
(0, _http.validateOptions)('restartConnection', ['id'], options);
|
|
154
|
+
var id = options.id,
|
|
155
|
+
params = (0, _objectWithoutProperties2["default"])(options, _excluded8);
|
|
156
|
+
return _axios["default"].post("".concat(_helpers.bundle.spaceLocation(), "/app/integrator/api/connections/").concat(id, "/restart"), null, {
|
|
157
|
+
params: params
|
|
158
|
+
}).then(function (response) {
|
|
159
|
+
return {
|
|
160
|
+
data: response.data
|
|
161
|
+
};
|
|
162
|
+
})["catch"](_http.handleErrors);
|
|
163
|
+
};
|
|
164
|
+
|
|
165
|
+
/******************************************************************************
|
|
166
|
+
* OPERATIONS
|
|
167
|
+
******************************************************************************/
|
|
168
|
+
|
|
169
|
+
var fetchOperations = exports.fetchOperations = function fetchOperations() {
|
|
170
|
+
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
171
|
+
(0, _http.validateOptions)('fetchOperation', ['connectionId'], options);
|
|
172
|
+
var connectionId = options.connectionId,
|
|
173
|
+
params = (0, _objectWithoutProperties2["default"])(options, _excluded9);
|
|
174
|
+
return _axios["default"].get("".concat(_helpers.bundle.spaceLocation(), "/app/integrator/api/connections/").concat(connectionId, "/operations"), {
|
|
175
|
+
params: params
|
|
176
|
+
}).then(function (response) {
|
|
177
|
+
return {
|
|
178
|
+
operations: response.data
|
|
179
|
+
};
|
|
180
|
+
})["catch"](_http.handleErrors);
|
|
181
|
+
};
|
|
182
|
+
var fetchOperation = exports.fetchOperation = function fetchOperation() {
|
|
183
|
+
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
184
|
+
(0, _http.validateOptions)('fetchOperation', ['connectionId', 'id'], options);
|
|
185
|
+
var connectionId = options.connectionId,
|
|
186
|
+
id = options.id,
|
|
187
|
+
params = (0, _objectWithoutProperties2["default"])(options, _excluded10);
|
|
188
|
+
return _axios["default"].get("".concat(_helpers.bundle.spaceLocation(), "/app/integrator/api/connections/").concat(connectionId, "/operations/").concat(id), {
|
|
189
|
+
params: params
|
|
190
|
+
}).then(function (response) {
|
|
191
|
+
return {
|
|
192
|
+
operation: response.data
|
|
193
|
+
};
|
|
194
|
+
})["catch"](_http.handleErrors);
|
|
195
|
+
};
|
|
196
|
+
var updateOperation = exports.updateOperation = function updateOperation() {
|
|
197
|
+
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
198
|
+
(0, _http.validateOptions)('updateOperation', ['connectionId', 'id', 'operation'], options);
|
|
199
|
+
var connectionId = options.connectionId,
|
|
200
|
+
id = options.id,
|
|
201
|
+
operation = options.operation,
|
|
202
|
+
params = (0, _objectWithoutProperties2["default"])(options, _excluded11);
|
|
203
|
+
return _axios["default"].put("".concat(_helpers.bundle.spaceLocation(), "/app/integrator/api/connections/").concat(connectionId, "/operations/").concat(id), operation, {
|
|
204
|
+
params: params
|
|
205
|
+
}).then(function (response) {
|
|
206
|
+
return {
|
|
207
|
+
operation: response.data
|
|
208
|
+
};
|
|
209
|
+
})["catch"](_http.handleErrors);
|
|
210
|
+
};
|
|
211
|
+
var createOperation = exports.createOperation = function createOperation() {
|
|
212
|
+
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
213
|
+
(0, _http.validateOptions)('createOperation', ['connectionId', 'operation'], options);
|
|
214
|
+
var connectionId = options.connectionId,
|
|
215
|
+
operation = options.operation,
|
|
216
|
+
params = (0, _objectWithoutProperties2["default"])(options, _excluded12);
|
|
217
|
+
return _axios["default"].post("".concat(_helpers.bundle.spaceLocation(), "/app/integrator/api/connections/").concat(connectionId, "/operations"), operation, {
|
|
218
|
+
params: params
|
|
219
|
+
}).then(function (response) {
|
|
220
|
+
return {
|
|
221
|
+
operation: response.data
|
|
222
|
+
};
|
|
223
|
+
})["catch"](_http.handleErrors);
|
|
224
|
+
};
|
|
225
|
+
var deleteOperation = exports.deleteOperation = function deleteOperation() {
|
|
226
|
+
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
227
|
+
(0, _http.validateOptions)('deleteOperation', ['connectionId', 'id'], options);
|
|
228
|
+
var connectionId = options.connectionId,
|
|
229
|
+
id = options.id,
|
|
230
|
+
params = (0, _objectWithoutProperties2["default"])(options, _excluded13);
|
|
231
|
+
return _axios["default"]["delete"]("".concat(_helpers.bundle.spaceLocation(), "/app/integrator/api/connections/").concat(connectionId, "/operations/").concat(id), {
|
|
232
|
+
params: params
|
|
233
|
+
}).then(function (response) {
|
|
234
|
+
return {
|
|
235
|
+
operation: response.data
|
|
236
|
+
};
|
|
237
|
+
})["catch"](_http.handleErrors);
|
|
238
|
+
};
|
|
239
|
+
var importOperations = exports.importOperations = function importOperations() {
|
|
240
|
+
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
241
|
+
(0, _http.validateOptions)('importOperations', ['connectionId', 'operations'], options);
|
|
242
|
+
var connectionId = options.connectionId,
|
|
243
|
+
operations = options.operations,
|
|
244
|
+
params = (0, _objectWithoutProperties2["default"])(options, _excluded14);
|
|
245
|
+
return _axios["default"].post("".concat(_helpers.bundle.spaceLocation(), "/app/integrator/api/import/connections/").concat(connectionId, "/operations"), operations, {
|
|
246
|
+
params: params
|
|
247
|
+
}).then(function (response) {
|
|
248
|
+
return {
|
|
249
|
+
connection: response.data
|
|
250
|
+
};
|
|
251
|
+
})["catch"](_http.handleErrors);
|
|
252
|
+
};
|
|
253
|
+
var fetchBulkOperations = exports.fetchBulkOperations = function fetchBulkOperations() {
|
|
254
|
+
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
255
|
+
(0, _http.validateOptions)('fetchBulkOperations', ['ids'], options);
|
|
256
|
+
var ids = options.ids,
|
|
257
|
+
params = (0, _objectWithoutProperties2["default"])(options, _excluded15);
|
|
258
|
+
return _axios["default"].post("".concat(_helpers.bundle.spaceLocation(), "/app/integrator/api/operations-search"), {
|
|
259
|
+
ids: ids
|
|
260
|
+
}, {
|
|
261
|
+
params: params
|
|
262
|
+
}).then(function (response) {
|
|
263
|
+
return {
|
|
264
|
+
operations: response.data
|
|
265
|
+
};
|
|
266
|
+
})["catch"](_http.handleErrors);
|
|
267
|
+
};
|
|
268
|
+
var inspectOperation = exports.inspectOperation = function inspectOperation() {
|
|
269
|
+
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
270
|
+
(0, _http.validateOptions)('inspectOperation', [['operation', 'operationId']], options);
|
|
271
|
+
var operation = options.operation,
|
|
272
|
+
operationId = options.operationId,
|
|
273
|
+
params = (0, _objectWithoutProperties2["default"])(options, _excluded16);
|
|
274
|
+
return _axios["default"].post("".concat(_helpers.bundle.spaceLocation(), "/app/integrator/api/inspect"), {
|
|
275
|
+
operation: operation,
|
|
276
|
+
operationId: operationId
|
|
277
|
+
}, {
|
|
278
|
+
params: params
|
|
279
|
+
}).then(function (response) {
|
|
280
|
+
return {
|
|
281
|
+
detectedInputs: response.data.detectedInputs
|
|
282
|
+
};
|
|
283
|
+
})["catch"](_http.handleErrors);
|
|
284
|
+
};
|
|
285
|
+
var executeOperation = exports.executeOperation = function executeOperation() {
|
|
286
|
+
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
287
|
+
(0, _http.validateOptions)('executeOperation', [['connection', 'connectionId'], ['operation', 'operationId']], options);
|
|
288
|
+
var connection = options.connection,
|
|
289
|
+
connectionId = options.connectionId,
|
|
290
|
+
operation = options.operation,
|
|
291
|
+
operationId = options.operationId,
|
|
292
|
+
_options$parameters = options.parameters,
|
|
293
|
+
parameters = _options$parameters === void 0 ? {} : _options$parameters,
|
|
294
|
+
params = (0, _objectWithoutProperties2["default"])(options, _excluded17);
|
|
295
|
+
return _axios["default"].post("".concat(_helpers.bundle.spaceLocation(), "/app/integrator/api/execute"), {
|
|
296
|
+
connection: connection,
|
|
297
|
+
connectionId: connectionId,
|
|
298
|
+
operation: operation,
|
|
299
|
+
operationId: operationId,
|
|
300
|
+
parameters: parameters
|
|
301
|
+
}, {
|
|
302
|
+
params: params
|
|
303
|
+
}).then(function (response) {
|
|
304
|
+
return {
|
|
305
|
+
data: response.data
|
|
306
|
+
};
|
|
307
|
+
})["catch"](_http.handleErrors);
|
|
308
|
+
};
|
|
309
|
+
|
|
310
|
+
/******************************************************************************
|
|
311
|
+
* METADATA
|
|
312
|
+
******************************************************************************/
|
|
313
|
+
|
|
314
|
+
var fetchIntegratorVersion = exports.fetchIntegratorVersion = function fetchIntegratorVersion() {
|
|
315
|
+
return _axios["default"].get("".concat(_helpers.bundle.spaceLocation(), "/app/integrator/api/version")).then(function (response) {
|
|
316
|
+
return {
|
|
317
|
+
version: response.data.version
|
|
318
|
+
};
|
|
319
|
+
})["catch"](_http.handleErrors);
|
|
320
|
+
};
|
|
321
|
+
var transformOutputs = exports.transformOutputs = function transformOutputs() {
|
|
322
|
+
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
323
|
+
(0, _http.validateOptions)('transformOutputs', ['outputs', 'raw'], options);
|
|
324
|
+
var outputs = options.outputs,
|
|
325
|
+
raw = options.raw,
|
|
326
|
+
params = (0, _objectWithoutProperties2["default"])(options, _excluded18);
|
|
327
|
+
return _axios["default"].post("".concat(_helpers.bundle.spaceLocation(), "/app/integrator/api/transform"), {
|
|
328
|
+
outputs: outputs,
|
|
329
|
+
raw: raw
|
|
330
|
+
}, {
|
|
331
|
+
params: params
|
|
332
|
+
}).then(function (response) {
|
|
333
|
+
return {
|
|
334
|
+
data: response.data
|
|
335
|
+
};
|
|
336
|
+
})["catch"](_http.handleErrors);
|
|
337
|
+
};
|