@kineticdata/react 6.1.0 → 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 +55 -0
- 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/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 +62 -0
- 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 +22 -11
- package/lib/apis/index.js +24 -0
- package/lib/apis/integrator/index.js +95 -20
- package/lib/components/common/AttributeSelect.js +1 -0
- package/lib/components/common/BridgeSelect.js +1 -0
- package/lib/components/common/ConnectionSelect.js +2 -1
- package/lib/components/common/FormSelect.js +1 -0
- package/lib/components/common/NodeSelect.js +1 -0
- package/lib/components/common/StaticSelect.js +1 -0
- package/lib/components/common/TeamSelect.js +1 -0
- package/lib/components/common/ToastContainer.js +3 -3
- package/lib/components/common/Typeahead.js +3 -0
- package/lib/components/common/UserSelect.js +1 -0
- package/lib/components/common/authentication/AuthenticationContainer.js +121 -55
- package/lib/components/common/preferences/PreferencesProvider.js +461 -0
- package/lib/components/core/attribute_definition/AttributeDefinitionForm.js +7 -7
- package/lib/components/core/field_definition/FieldDefinitionForm.js +3 -3
- package/lib/components/core/form/FormTable.js +0 -1
- package/lib/components/core/integration/IntegrationTable.js +3 -0
- package/lib/components/core/space/SpaceForm.js +14 -14
- package/lib/components/core/submission/SubmissionActivityForm.js +79 -0
- package/lib/components/core/submission/SubmissionForm.js +12 -2
- 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 +4 -4
- package/lib/components/form/Form.js +14 -3
- package/lib/components/form/FormState.js +1 -1
- package/lib/components/form/SimpleForm.js +2 -2
- package/lib/components/index.js +68 -0
- package/lib/components/integrator/connection/ConnectionForm.js +62 -18
- package/lib/components/integrator/connection/ConnectionTable.js +5 -3
- package/lib/components/integrator/connection/config_fields/http.js +19 -19
- package/lib/components/integrator/connection/config_fields/sql.js +123 -0
- package/lib/components/integrator/integrationTypes.js +27 -5
- package/lib/components/integrator/operation/OperationForm.js +24 -4
- package/lib/components/integrator/operation/OperationTable.js +3 -5
- package/lib/components/integrator/operation/config_fields/http.js +3 -2
- package/lib/components/integrator/operation/config_fields/sql.js +81 -0
- package/lib/components/system/SystemUserForm.js +2 -0
- package/lib/components/table/Table.js +75 -15
- package/lib/components/table/Table.redux.js +296 -72
- 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/Node.js +25 -38
- package/lib/components/task/builder/SvgCanvas.js +3 -17
- package/lib/components/task/builder/TreeBuilder.js +1 -2
- package/lib/components/task/builder/builder.redux.js +52 -32
- package/lib/components/task/builder/helpers.js +35 -5
- package/lib/components/task/common/UsageTable.js +8 -1
- package/lib/components/task/handlers/HandlerTable.js +9 -18
- package/lib/components/task/runs/RunTable.js +6 -10
- package/lib/components/task/workflows/LinkedWorkflowTable.js +14 -9
- package/lib/components/task/workflows/WorkflowTable.js +25 -24
- package/lib/helpers/index.js +18 -2
- package/lib/index.js +2 -1
- package/lib/saga.js +4 -4
- package/lib/store.js +2 -1
- package/package.json +5 -6
- package/proxyhelper.js +201 -201
- package/CHANGELOG.md +0 -116
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) {
|
|
@@ -120,14 +130,14 @@ var formDataBuilder = exports.formDataBuilder = function formDataBuilder(data, p
|
|
|
120
130
|
}, formData);
|
|
121
131
|
};
|
|
122
132
|
|
|
123
|
-
/**
|
|
124
|
-
*
|
|
125
|
-
* @param {string} functionName
|
|
126
|
-
* @param {(string|string[])[]} requiredOptions
|
|
127
|
-
* The keys of the required options. You can group keys in a nested array if
|
|
128
|
-
* only one of a subset is required.
|
|
129
|
-
* @param {object} options
|
|
130
|
-
* The options object to validate.
|
|
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.
|
|
131
141
|
*/
|
|
132
142
|
var validateOptions = exports.validateOptions = function validateOptions(functionName, requiredOptions, options) {
|
|
133
143
|
var missing = requiredOptions.filter(function (requiredOption) {
|
|
@@ -165,10 +175,11 @@ var apiGroup = exports.apiGroup = function apiGroup(_ref2) {
|
|
|
165
175
|
var _ref3;
|
|
166
176
|
var dataOption = _ref2.dataOption,
|
|
167
177
|
name = _ref2.name,
|
|
178
|
+
pluralName = _ref2.pluralName,
|
|
168
179
|
plural = _ref2.plural,
|
|
169
180
|
singular = _ref2.singular;
|
|
170
|
-
return _ref3 = {}, (0, _defineProperty2["default"])(_ref3, "fetch".concat(name, "s"), apiFunction((0, _objectSpread2["default"])({
|
|
171
|
-
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")),
|
|
172
183
|
method: 'get'
|
|
173
184
|
}, plural))), (0, _defineProperty2["default"])(_ref3, "fetch".concat(name), apiFunction((0, _objectSpread2["default"])({
|
|
174
185
|
name: "fetch".concat(name),
|
package/lib/apis/index.js
CHANGED
|
@@ -360,6 +360,18 @@ Object.keys(_submissions).forEach(function (key) {
|
|
|
360
360
|
}
|
|
361
361
|
});
|
|
362
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
|
+
});
|
|
363
375
|
var _teams = require("./core/teams");
|
|
364
376
|
Object.keys(_teams).forEach(function (key) {
|
|
365
377
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -396,6 +408,18 @@ Object.keys(_users).forEach(function (key) {
|
|
|
396
408
|
}
|
|
397
409
|
});
|
|
398
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
|
+
});
|
|
399
423
|
var _version = require("./core/version");
|
|
400
424
|
Object.keys(_version).forEach(function (key) {
|
|
401
425
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -4,7 +4,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.updateOperation = exports.updateConnection = exports.testConnection = exports.inspectOperation = exports.fetchOperations = exports.fetchOperation = exports.fetchIntegratorVersion = exports.fetchConnections = exports.fetchConnection = exports.fetchBulkOperations = exports.executeOperation = exports.deleteOperation = exports.deleteConnection = exports.createOperation = exports.createConnection = void 0;
|
|
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
8
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectWithoutProperties"));
|
|
9
9
|
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
|
10
10
|
var _axios = _interopRequireDefault(require("axios"));
|
|
@@ -14,15 +14,20 @@ var _excluded = ["id"],
|
|
|
14
14
|
_excluded2 = ["id", "connection"],
|
|
15
15
|
_excluded3 = ["connection"],
|
|
16
16
|
_excluded4 = ["id"],
|
|
17
|
-
_excluded5 = ["
|
|
18
|
-
_excluded6 = ["
|
|
19
|
-
_excluded7 = ["
|
|
20
|
-
_excluded8 = ["
|
|
21
|
-
_excluded9 = ["connectionId"
|
|
17
|
+
_excluded5 = ["id"],
|
|
18
|
+
_excluded6 = ["connection"],
|
|
19
|
+
_excluded7 = ["connection", "id"],
|
|
20
|
+
_excluded8 = ["id"],
|
|
21
|
+
_excluded9 = ["connectionId"],
|
|
22
22
|
_excluded10 = ["connectionId", "id"],
|
|
23
|
-
_excluded11 = ["
|
|
24
|
-
_excluded12 = ["
|
|
25
|
-
_excluded13 = ["
|
|
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"];
|
|
26
31
|
/******************************************************************************
|
|
27
32
|
* CONNECTIONS
|
|
28
33
|
******************************************************************************/
|
|
@@ -103,13 +108,52 @@ var deleteConnection = exports.deleteConnection = function deleteConnection() {
|
|
|
103
108
|
};
|
|
104
109
|
})["catch"](_http.handleErrors);
|
|
105
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
|
+
};
|
|
106
137
|
var testConnection = exports.testConnection = function testConnection() {
|
|
107
138
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
108
139
|
(0, _http.validateOptions)('testConnection', ['connection'], options);
|
|
109
140
|
var connection = options.connection,
|
|
110
|
-
|
|
111
|
-
params = (0, _objectWithoutProperties2["default"])(options,
|
|
112
|
-
return _axios["default"].post("".concat(_helpers.bundle.spaceLocation(), "/app/integrator/api").concat(
|
|
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, {
|
|
113
157
|
params: params
|
|
114
158
|
}).then(function (response) {
|
|
115
159
|
return {
|
|
@@ -126,7 +170,7 @@ var fetchOperations = exports.fetchOperations = function fetchOperations() {
|
|
|
126
170
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
127
171
|
(0, _http.validateOptions)('fetchOperation', ['connectionId'], options);
|
|
128
172
|
var connectionId = options.connectionId,
|
|
129
|
-
params = (0, _objectWithoutProperties2["default"])(options,
|
|
173
|
+
params = (0, _objectWithoutProperties2["default"])(options, _excluded9);
|
|
130
174
|
return _axios["default"].get("".concat(_helpers.bundle.spaceLocation(), "/app/integrator/api/connections/").concat(connectionId, "/operations"), {
|
|
131
175
|
params: params
|
|
132
176
|
}).then(function (response) {
|
|
@@ -140,7 +184,7 @@ var fetchOperation = exports.fetchOperation = function fetchOperation() {
|
|
|
140
184
|
(0, _http.validateOptions)('fetchOperation', ['connectionId', 'id'], options);
|
|
141
185
|
var connectionId = options.connectionId,
|
|
142
186
|
id = options.id,
|
|
143
|
-
params = (0, _objectWithoutProperties2["default"])(options,
|
|
187
|
+
params = (0, _objectWithoutProperties2["default"])(options, _excluded10);
|
|
144
188
|
return _axios["default"].get("".concat(_helpers.bundle.spaceLocation(), "/app/integrator/api/connections/").concat(connectionId, "/operations/").concat(id), {
|
|
145
189
|
params: params
|
|
146
190
|
}).then(function (response) {
|
|
@@ -155,7 +199,7 @@ var updateOperation = exports.updateOperation = function updateOperation() {
|
|
|
155
199
|
var connectionId = options.connectionId,
|
|
156
200
|
id = options.id,
|
|
157
201
|
operation = options.operation,
|
|
158
|
-
params = (0, _objectWithoutProperties2["default"])(options,
|
|
202
|
+
params = (0, _objectWithoutProperties2["default"])(options, _excluded11);
|
|
159
203
|
return _axios["default"].put("".concat(_helpers.bundle.spaceLocation(), "/app/integrator/api/connections/").concat(connectionId, "/operations/").concat(id), operation, {
|
|
160
204
|
params: params
|
|
161
205
|
}).then(function (response) {
|
|
@@ -169,7 +213,7 @@ var createOperation = exports.createOperation = function createOperation() {
|
|
|
169
213
|
(0, _http.validateOptions)('createOperation', ['connectionId', 'operation'], options);
|
|
170
214
|
var connectionId = options.connectionId,
|
|
171
215
|
operation = options.operation,
|
|
172
|
-
params = (0, _objectWithoutProperties2["default"])(options,
|
|
216
|
+
params = (0, _objectWithoutProperties2["default"])(options, _excluded12);
|
|
173
217
|
return _axios["default"].post("".concat(_helpers.bundle.spaceLocation(), "/app/integrator/api/connections/").concat(connectionId, "/operations"), operation, {
|
|
174
218
|
params: params
|
|
175
219
|
}).then(function (response) {
|
|
@@ -183,7 +227,7 @@ var deleteOperation = exports.deleteOperation = function deleteOperation() {
|
|
|
183
227
|
(0, _http.validateOptions)('deleteOperation', ['connectionId', 'id'], options);
|
|
184
228
|
var connectionId = options.connectionId,
|
|
185
229
|
id = options.id,
|
|
186
|
-
params = (0, _objectWithoutProperties2["default"])(options,
|
|
230
|
+
params = (0, _objectWithoutProperties2["default"])(options, _excluded13);
|
|
187
231
|
return _axios["default"]["delete"]("".concat(_helpers.bundle.spaceLocation(), "/app/integrator/api/connections/").concat(connectionId, "/operations/").concat(id), {
|
|
188
232
|
params: params
|
|
189
233
|
}).then(function (response) {
|
|
@@ -192,11 +236,25 @@ var deleteOperation = exports.deleteOperation = function deleteOperation() {
|
|
|
192
236
|
};
|
|
193
237
|
})["catch"](_http.handleErrors);
|
|
194
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
|
+
};
|
|
195
253
|
var fetchBulkOperations = exports.fetchBulkOperations = function fetchBulkOperations() {
|
|
196
254
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
197
255
|
(0, _http.validateOptions)('fetchBulkOperations', ['ids'], options);
|
|
198
256
|
var ids = options.ids,
|
|
199
|
-
params = (0, _objectWithoutProperties2["default"])(options,
|
|
257
|
+
params = (0, _objectWithoutProperties2["default"])(options, _excluded15);
|
|
200
258
|
return _axios["default"].post("".concat(_helpers.bundle.spaceLocation(), "/app/integrator/api/operations-search"), {
|
|
201
259
|
ids: ids
|
|
202
260
|
}, {
|
|
@@ -212,7 +270,7 @@ var inspectOperation = exports.inspectOperation = function inspectOperation() {
|
|
|
212
270
|
(0, _http.validateOptions)('inspectOperation', [['operation', 'operationId']], options);
|
|
213
271
|
var operation = options.operation,
|
|
214
272
|
operationId = options.operationId,
|
|
215
|
-
params = (0, _objectWithoutProperties2["default"])(options,
|
|
273
|
+
params = (0, _objectWithoutProperties2["default"])(options, _excluded16);
|
|
216
274
|
return _axios["default"].post("".concat(_helpers.bundle.spaceLocation(), "/app/integrator/api/inspect"), {
|
|
217
275
|
operation: operation,
|
|
218
276
|
operationId: operationId
|
|
@@ -233,7 +291,7 @@ var executeOperation = exports.executeOperation = function executeOperation() {
|
|
|
233
291
|
operationId = options.operationId,
|
|
234
292
|
_options$parameters = options.parameters,
|
|
235
293
|
parameters = _options$parameters === void 0 ? {} : _options$parameters,
|
|
236
|
-
params = (0, _objectWithoutProperties2["default"])(options,
|
|
294
|
+
params = (0, _objectWithoutProperties2["default"])(options, _excluded17);
|
|
237
295
|
return _axios["default"].post("".concat(_helpers.bundle.spaceLocation(), "/app/integrator/api/execute"), {
|
|
238
296
|
connection: connection,
|
|
239
297
|
connectionId: connectionId,
|
|
@@ -259,4 +317,21 @@ var fetchIntegratorVersion = exports.fetchIntegratorVersion = function fetchInte
|
|
|
259
317
|
version: response.data.version
|
|
260
318
|
};
|
|
261
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);
|
|
262
337
|
};
|
|
@@ -14,7 +14,7 @@ var searchConnections = function searchConnections(_ref) {
|
|
|
14
14
|
search = _ref$search === void 0 ? (0, _immutable.Map)() : _ref$search;
|
|
15
15
|
return function (field, value, callback) {
|
|
16
16
|
return (0, _apis.fetchConnections)({
|
|
17
|
-
type: search.
|
|
17
|
+
type: search.getIn(['config', 'configType'])
|
|
18
18
|
}).then(function (_ref2) {
|
|
19
19
|
var connections = _ref2.connections,
|
|
20
20
|
error = _ref2.error,
|
|
@@ -67,6 +67,7 @@ var ConnectionSelect = exports.ConnectionSelect = function ConnectionSelect(prop
|
|
|
67
67
|
onBlur: props.onBlur,
|
|
68
68
|
placeholder: props.placeholder,
|
|
69
69
|
id: props.id,
|
|
70
|
+
name: props.name,
|
|
70
71
|
form: props.form
|
|
71
72
|
});
|
|
72
73
|
};
|
|
@@ -136,6 +136,7 @@ var StaticSelect = exports.StaticSelect = function StaticSelect(props) {
|
|
|
136
136
|
onBlur: props.onBlur,
|
|
137
137
|
placeholder: props.placeholder,
|
|
138
138
|
id: props.id,
|
|
139
|
+
name: props.name,
|
|
139
140
|
form: props.form,
|
|
140
141
|
invalid: props.invalid,
|
|
141
142
|
action: actionOptions(props)
|
|
@@ -52,9 +52,9 @@ var ToastState = exports.ToastState = (0, _immutable.Record)({
|
|
|
52
52
|
}
|
|
53
53
|
});
|
|
54
54
|
|
|
55
|
-
/**
|
|
56
|
-
* @param {object} toast Options for the toast
|
|
57
|
-
* @param {'success'|'error'} [presetType] Preset for styles
|
|
55
|
+
/**
|
|
56
|
+
* @param {object} toast Options for the toast
|
|
57
|
+
* @param {'success'|'error'} [presetType] Preset for styles
|
|
58
58
|
*/
|
|
59
59
|
var showToast = exports.showToast = function showToast(toast, presetType) {
|
|
60
60
|
// If presetType is provided, add some default toast properties
|
|
@@ -228,6 +228,7 @@ var Typeahead = exports.Typeahead = /*#__PURE__*/function (_React$Component) {
|
|
|
228
228
|
selection: this.props.value,
|
|
229
229
|
placeholder: this.props.placeholder,
|
|
230
230
|
id: this.props.id,
|
|
231
|
+
name: this.props.name,
|
|
231
232
|
form: this.props.form
|
|
232
233
|
},
|
|
233
234
|
onSuggestionHighlighted: this.onHighlight,
|
|
@@ -337,6 +338,7 @@ function renderSelections() {
|
|
|
337
338
|
value = _this$props5.value,
|
|
338
339
|
placeholder = _this$props5.placeholder,
|
|
339
340
|
id = _this$props5.id,
|
|
341
|
+
name = _this$props5.name,
|
|
340
342
|
form = _this$props5.form,
|
|
341
343
|
invalid = _this$props5.invalid,
|
|
342
344
|
minSearchLength = _this$props5.minSearchLength,
|
|
@@ -353,6 +355,7 @@ function renderSelections() {
|
|
|
353
355
|
suggestionValue: suggestionValue,
|
|
354
356
|
placeholder: !multiple ? placeholder : null,
|
|
355
357
|
id: !multiple ? id : null,
|
|
358
|
+
name: name,
|
|
356
359
|
invalid: invalid,
|
|
357
360
|
form: form,
|
|
358
361
|
minSearchLength: minSearchLength
|