@kineticdata/react 6.0.0 → 6.0.2
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/lib/apis/agent/adapters.js +2 -3
- package/lib/apis/agent/bridges.js +7 -13
- package/lib/apis/agent/handlers.js +7 -13
- package/lib/apis/core/activity.js +2 -3
- package/lib/apis/core/attributeDefinitions.js +6 -11
- package/lib/apis/core/attributeDefinitions.test.js +201 -213
- package/lib/apis/core/authentication.js +74 -84
- package/lib/apis/core/backgroundJobs.js +5 -9
- package/lib/apis/core/bridgeModelAttributeMappings.js +5 -10
- package/lib/apis/core/bridgeModelAttributes.js +6 -11
- package/lib/apis/core/bridgeModelMappings.js +5 -10
- package/lib/apis/core/bridgeModelQualificationMappings.js +5 -10
- package/lib/apis/core/bridgeModelQualifications.js +5 -10
- package/lib/apis/core/bridgeModels.js +7 -13
- package/lib/apis/core/bridgeModels.test.js +313 -333
- package/lib/apis/core/bridgedresources.js +7 -13
- package/lib/apis/core/categories.js +6 -11
- package/lib/apis/core/fileResources.js +5 -10
- package/lib/apis/core/filestores.js +5 -10
- package/lib/apis/core/formTypes.js +6 -11
- package/lib/apis/core/forms.js +6 -11
- package/lib/apis/core/forms.test.js +201 -213
- package/lib/apis/core/kapps.js +6 -11
- package/lib/apis/core/kapps.test.js +122 -130
- package/lib/apis/core/logs.js +3 -5
- package/lib/apis/core/memberships.js +3 -5
- package/lib/apis/core/meta.js +6 -11
- package/lib/apis/core/notices.js +2 -3
- package/lib/apis/core/oauthClients.js +6 -11
- package/lib/apis/core/platformComponents.js +10 -19
- package/lib/apis/core/platformItems.js +2 -3
- package/lib/apis/core/profile.js +3 -5
- package/lib/apis/core/securityPolicyDefinitions.js +6 -11
- package/lib/apis/core/securityPolicyDefinitions.test.js +254 -268
- package/lib/apis/core/space.js +3 -5
- package/lib/apis/core/space.test.js +106 -114
- package/lib/apis/core/submissions.js +17 -33
- package/lib/apis/core/teams.js +6 -11
- package/lib/apis/core/translations.js +18 -35
- package/lib/apis/core/translations.test.js +1343 -1437
- package/lib/apis/core/users.js +6 -11
- package/lib/apis/core/version.js +2 -3
- package/lib/apis/core/webApis.js +5 -10
- package/lib/apis/core/webhooks.js +6 -11
- package/lib/apis/core/webhooks.test.js +243 -257
- package/lib/apis/core/webhooksJobs.js +3 -5
- package/lib/apis/core/workflows.js +7 -13
- package/lib/apis/http.js +47 -30
- package/lib/apis/http.test.js +100 -0
- package/lib/apis/system/index.js +167 -81
- package/lib/apis/task/index.js +73 -118
- package/lib/components/agent/bridge/BridgeForm.js +1 -2
- package/lib/components/agent/bridge/BridgeTable.js +5 -3
- package/lib/components/agent/filestore/FilestoreForm.js +1 -2
- package/lib/components/agent/filestore/FilestoreTable.js +5 -3
- package/lib/components/agent/handler/AgentHandlerForm.js +1 -2
- package/lib/components/agent/handler/AgentHandlerTable.js +6 -4
- package/lib/components/common/AttributeSelect.js +2 -3
- package/lib/components/common/BridgeSelect.js +16 -17
- package/lib/components/common/ComponentConfigContext.js +1 -2
- package/lib/components/common/ContentEditable.js +23 -3
- package/lib/components/common/FormSelect.js +16 -17
- package/lib/components/common/NodeSelect.js +2 -3
- package/lib/components/common/Scroller.js +2 -3
- package/lib/components/common/StaticSelect.js +14 -15
- package/lib/components/common/TableInput.js +276 -63
- package/lib/components/common/TeamSelect.js +16 -17
- package/lib/components/common/ToastContainer.js +165 -0
- package/lib/components/common/Typeahead.js +15 -2
- package/lib/components/common/UserSelect.js +16 -17
- package/lib/components/common/authentication/AuthInterceptor.js +2 -3
- package/lib/components/common/authentication/AuthInterceptor.test.js +141 -153
- package/lib/components/common/authentication/AuthenticationContainer.js +332 -343
- package/lib/components/common/authentication/RequestInterceptor.js +2 -10
- package/lib/components/common/code_input/CodeInput.js +4 -9
- package/lib/components/common/code_input/draftHelpers.js +20 -37
- package/lib/components/common/code_input/languageHelpers.js +6 -12
- package/lib/components/common/code_input/languageHelpers.test.js +10 -8
- package/lib/components/common/defaults/Toast.js +25 -0
- package/lib/components/common/defaults/index.js +12 -0
- package/lib/components/core/attribute_definition/AttributeDefinitionForm.js +1 -2
- package/lib/components/core/attribute_definition/AttributeDefinitionTable.js +8 -5
- package/lib/components/core/bridge_model/BridgeModelForm.js +52 -55
- package/lib/components/core/bridge_model/BridgeModelTable.js +6 -4
- package/lib/components/core/bridge_model_attribute/BridgeModelAttributeForm.js +1 -2
- package/lib/components/core/bridge_model_attribute/BridgeModelAttributeTable.js +1 -2
- package/lib/components/core/bridge_model_qualification/BridgeModelQualificationForm.js +1 -2
- package/lib/components/core/bridge_model_qualification/BridgeModelQualificationTable.js +1 -2
- package/lib/components/core/category/CategoryForm.js +1 -2
- package/lib/components/core/category/CategoryTable.js +14 -8
- package/lib/components/core/core_form/CoreForm.js +11 -22
- package/lib/components/core/core_form/defaults/index.js +11 -19
- package/lib/components/core/core_form/globals.js +3 -5
- package/lib/components/core/field_definition/FieldDefinitionForm.js +1 -2
- package/lib/components/core/field_definition/FieldDefinitionTable.js +13 -9
- package/lib/components/core/file_resource/FileResourceForm.js +1 -2
- package/lib/components/core/file_resource/FileResourceTable.js +1 -2
- package/lib/components/core/form/FormForm.js +1 -2
- package/lib/components/core/form/FormTable.js +23 -13
- package/lib/components/core/form_type/FormTypeForm.js +1 -2
- package/lib/components/core/form_type/FormTypeTable.js +4 -3
- package/lib/components/core/i18n/I18n.js +2 -4
- package/lib/components/core/i18n/I18nContext.js +1 -2
- package/lib/components/core/i18n/I18nProvider.js +2 -3
- package/lib/components/core/i18n/Moment.js +10 -9
- package/lib/components/core/index_definition/IndexDefinitionForm.js +1 -2
- package/lib/components/core/index_definition/IndexDefinitionTable.js +13 -7
- package/lib/components/core/index_job/IndexJobTable.js +1 -2
- package/lib/components/core/kapp/KappForm.js +1 -2
- package/lib/components/core/kapp/KappTable.js +18 -34
- package/lib/components/core/log/LogTable.js +10 -6
- package/lib/components/core/oauth_client/OAuthClientForm.js +1 -2
- package/lib/components/core/oauth_client/OAuthClientTable.js +1 -2
- package/lib/components/core/platform_component/AgentComponentForm.js +1 -2
- package/lib/components/core/platform_component/AgentComponentTable.js +1 -2
- package/lib/components/core/platform_component/TaskComponentForm.js +1 -2
- package/lib/components/core/profile/ProfileForm.js +1 -2
- package/lib/components/core/security_definition/SecurityDefinitionForm.js +3 -6
- package/lib/components/core/security_definition/SecurityDefinitionTable.js +10 -6
- package/lib/components/core/space/SpaceForm.js +1 -2
- package/lib/components/core/submission/DatastoreSubmissionFilters.js +3 -5
- package/lib/components/core/submission/DatastoreSubmissionTable.js +2 -4
- package/lib/components/core/submission/FormSubmissionFilters.js +4 -7
- package/lib/components/core/submission/FormSubmissionTable.js +39 -23
- package/lib/components/core/submission/KappSubmissionTable.js +39 -23
- package/lib/components/core/submission/SubmissionForm.js +1 -2
- package/lib/components/core/submission/SubmissionTable.js +2 -3
- package/lib/components/core/submission/helpers.js +4 -7
- package/lib/components/core/team/TeamForm.js +2 -3
- package/lib/components/core/team/TeamTable.js +12 -7
- package/lib/components/core/translation/ContextForm.js +1 -2
- package/lib/components/core/translation/ContextTable.js +1 -2
- package/lib/components/core/translation/EntryForm.js +1 -2
- package/lib/components/core/translation/EntryTable.js +1 -2
- package/lib/components/core/translation/LocaleForm.js +1 -2
- package/lib/components/core/translation/LocaleTable.js +1 -2
- package/lib/components/core/user/UserForm.js +1 -2
- package/lib/components/core/user/UserTable.js +24 -7
- package/lib/components/core/webapi/WebApiForm.js +138 -123
- package/lib/components/core/webapi/WebApiTable.js +15 -9
- package/lib/components/core/webhook/WebhookForm.js +1 -2
- package/lib/components/core/webhook/WebhookTable.js +20 -11
- package/lib/components/core/webhook_job/WebhookJobTable.js +40 -21
- package/lib/components/form/Form.helpers.js +91 -38
- package/lib/components/form/Form.js +312 -355
- package/lib/components/form/Form.models.js +7 -11
- package/lib/components/form/FormState.js +1 -2
- package/lib/components/form/KitchenSinkForm.js +23 -3
- package/lib/components/form/SimpleForm.helpers.js +262 -0
- package/lib/components/form/SimpleForm.js +462 -0
- package/lib/components/form/SimpleForm.models.js +62 -0
- package/lib/components/form/defaults/AttributesField.js +3 -4
- package/lib/components/form/defaults/CheckboxField.js +2 -3
- package/lib/components/form/defaults/CodeField.js +2 -3
- package/lib/components/form/defaults/FormButtons.js +2 -3
- package/lib/components/form/defaults/FormError.js +2 -3
- package/lib/components/form/defaults/FormField.js +2 -3
- package/lib/components/form/defaults/FormLayout.js +2 -3
- package/lib/components/form/defaults/FormMultiField.js +2 -3
- package/lib/components/form/defaults/PasswordField.js +2 -3
- package/lib/components/form/defaults/RadioField.js +2 -3
- package/lib/components/form/defaults/SampleTeamsRolesFIeld.js +2 -3
- package/lib/components/form/defaults/SelectField.js +2 -3
- package/lib/components/form/defaults/SelectMultiField.js +2 -3
- package/lib/components/form/defaults/TableField.js +2 -3
- package/lib/components/form/defaults/TeamField.js +2 -3
- package/lib/components/form/defaults/TeamMultiField.js +2 -3
- package/lib/components/form/defaults/TextField.js +2 -3
- package/lib/components/form/defaults/TextMultiField.js +2 -3
- package/lib/components/form/defaults/UserField.js +2 -3
- package/lib/components/form/defaults/UserMultiField.js +2 -3
- package/lib/components/form/defaults/index.js +2 -3
- package/lib/components/form/tests/Form.test.js +3865 -4257
- package/lib/components/form/tests/components.js +2 -3
- package/lib/components/index.js +60 -0
- package/lib/components/system/SystemBackgroundTasksTable.js +1 -2
- package/lib/components/system/SystemCassandraForm.js +97 -0
- package/lib/components/system/SystemElasticSearchForm.js +97 -0
- package/lib/components/system/SystemFilestoreForm.js +12 -8
- package/lib/components/system/SystemForm.js +1 -2
- package/lib/components/system/SystemIngressForm.js +78 -31
- package/lib/components/system/SystemSecurityForm.js +1 -2
- package/lib/components/system/SystemSmtpForm.js +1 -2
- package/lib/components/system/SystemTaskAdapterForm.js +30 -7
- package/lib/components/system/SystemTrustedCertificateForm.js +39 -0
- package/lib/components/system/SystemTrustedCertificatesTable.js +73 -0
- package/lib/components/system/SystemUserForm.js +1 -2
- package/lib/components/system/helpers.js +236 -65
- package/lib/components/system/spaces/SystemSpaceForm.js +2 -3
- package/lib/components/system/spaces/SystemTenantForm.js +77 -37
- package/lib/components/system/spaces/SystemTenantTable.js +1 -2
- package/lib/components/table/Table.js +132 -54
- package/lib/components/table/Table.redux.js +229 -235
- package/lib/components/table/Table.test.js +154 -123
- package/lib/components/table/defaults/BodyCell.js +1 -2
- package/lib/components/table/defaults/BodyRow.js +1 -2
- package/lib/components/table/defaults/BooleanFilter.js +1 -2
- package/lib/components/table/defaults/ColumnControl.js +25 -0
- package/lib/components/table/defaults/EmptyBodyRow.js +1 -2
- package/lib/components/table/defaults/FilterLayout.js +1 -2
- package/lib/components/table/defaults/Footer.js +1 -2
- package/lib/components/table/defaults/FooterCell.js +1 -2
- package/lib/components/table/defaults/FooterRow.js +1 -2
- package/lib/components/table/defaults/Header.js +1 -2
- package/lib/components/table/defaults/HeaderCell.js +1 -2
- package/lib/components/table/defaults/HeaderRow.js +1 -2
- package/lib/components/table/defaults/PaginationControl.js +2 -4
- package/lib/components/table/defaults/TableBody.js +1 -2
- package/lib/components/table/defaults/TableLayout.js +1 -2
- package/lib/components/table/defaults/TextFilter.js +1 -2
- package/lib/components/table/defaults/index.js +5 -4
- package/lib/components/task/builder/Connector.js +26 -11
- package/lib/components/task/builder/ConnectorForm.js +1 -2
- package/lib/components/task/builder/Node.js +18 -9
- package/lib/components/task/builder/NodeForm.js +1 -2
- package/lib/components/task/builder/NodeParametersForm.js +1 -2
- package/lib/components/task/builder/SvgCanvas.js +2 -3
- package/lib/components/task/builder/SvgText.js +2 -3
- package/lib/components/task/builder/TaskDefinitionConfigForm.js +3 -6
- package/lib/components/task/builder/TreeBuilder.js +10 -4
- package/lib/components/task/builder/builder.redux.js +171 -182
- package/lib/components/task/builder/constants.js +38 -76
- package/lib/components/task/builder/helpers.js +23 -40
- package/lib/components/task/builder/models.js +19 -35
- package/lib/components/task/category/TaskCategoryForm.js +2 -3
- package/lib/components/task/category/TaskCategoryTable.js +1 -2
- package/lib/components/task/common/UsageTable.js +1 -2
- package/lib/components/task/engine/EngineSettingsForm.js +2 -3
- package/lib/components/task/errors/RunErrorTable.js +35 -17
- package/lib/components/task/errors/SystemErrorsTable.js +1 -2
- package/lib/components/task/handlers/HandlerForm.js +2 -3
- package/lib/components/task/handlers/HandlerTable.js +24 -13
- package/lib/components/task/handlers/MissingHandlerTable.js +1 -2
- package/lib/components/task/policy_rule/PolicyRuleForm.js +2 -3
- package/lib/components/task/policy_rule/PolicyRuleTable.js +1 -2
- package/lib/components/task/runs/CreateManualTriggerForm.js +1 -2
- package/lib/components/task/runs/RunTable.js +24 -12
- package/lib/components/task/runs/RunTaskTable.js +1 -2
- package/lib/components/task/sources/SourceForm.js +1 -2
- package/lib/components/task/sources/SourceTable.js +16 -9
- package/lib/components/task/triggers/TriggerTable.js +52 -26
- package/lib/components/task/workflows/LinkedWorkflowForm.js +3 -5
- package/lib/components/task/workflows/LinkedWorkflowTable.js +33 -18
- package/lib/components/task/workflows/MissingRoutineTable.js +1 -2
- package/lib/components/task/workflows/WorkflowForm.js +2 -3
- package/lib/components/task/workflows/WorkflowTable.js +31 -17
- package/lib/helpers/SearchBuilder.js +2 -4
- package/lib/helpers/index.js +13 -26
- package/lib/index.js +7 -9
- package/lib/reducer.js +3 -5
- package/lib/saga.js +32 -48
- package/lib/store.js +32 -42
- package/package.json +26 -16
- package/proxyhelper.js +17 -11
- package/lib/components/core/CoreFormModal.js +0 -64
- package/lib/components/core/CoreModal.js +0 -114
package/lib/apis/task/index.js
CHANGED
|
@@ -4,15 +4,14 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.validateSource = exports.updateTree = exports.updateTaskRun = exports.updateTaskCategory = exports.updateSource = exports.updateRunTaskResults = exports.updatePolicyRule = exports.updateHandler = exports.updateEngineSettings = exports.updateDeferredTask = exports.stopEngine = exports.startEngine = exports.resolveTaskErrors = exports.resolveSystemError = exports.importTree = exports.fetchUsage = exports.fetchTrees = exports.fetchTreeCounts = exports.fetchTree = exports.fetchTaskVersion = exports.fetchTaskTriggers = exports.fetchTaskRuns = exports.fetchTaskRunErrors = exports.fetchTaskRunError = exports.fetchTaskRun = exports.fetchTaskCategory = exports.fetchTaskCategories = exports.fetchSystemErrors = exports.fetchSystemError = exports.fetchSources = exports.fetchSourceAdapters = exports.fetchSource = exports.fetchPolicyRules = exports.fetchPolicyRule = exports.fetchMissingRoutines = exports.fetchMissingHandlers = exports.fetchHandlers = exports.fetchHandlerDurations = exports.fetchHandler = exports.fetchEngineStatus = exports.fetchEngineSettings = exports.fetchEngineLicense = exports.exportTree = exports.deleteTree = exports.deleteTaskCategory = exports.deleteSource = exports.deletePolicyRule = exports.deleteHandler = exports.createTree = exports.createTaskTrigger = exports.createTaskRun = exports.createTaskCategory = exports.createSource = exports.createPolicyRule = exports.createHandler = exports.completeDeferredTask = exports.cloneTree = exports.buildTreeId = void 0;
|
|
7
|
+
exports.validateSource = exports.updateTree = exports.updateTaskRun = exports.updateTaskCategory = exports.updateSource = exports.updateRunTaskResults = exports.updatePolicyRule = exports.updateHandler = exports.updateEngineSettings = exports.updateDeferredTask = exports.stopEngine = exports.startEngine = exports.resolveTaskErrors = exports.resolveSystemError = exports.importTree = exports.fetchUsage = exports.fetchTrees = exports.fetchTreeCounts = exports.fetchTree = exports.fetchTaskVersion = exports.fetchTaskTriggers = exports.fetchTaskRuns = exports.fetchTaskRunViaDeferralToken = exports.fetchTaskRunErrors = exports.fetchTaskRunError = exports.fetchTaskRun = exports.fetchTaskCategory = exports.fetchTaskCategories = exports.fetchSystemErrors = exports.fetchSystemError = exports.fetchSources = exports.fetchSourceAdapters = exports.fetchSource = exports.fetchPolicyRules = exports.fetchPolicyRule = exports.fetchMissingRoutines = exports.fetchMissingHandlers = exports.fetchHandlers = exports.fetchHandlerDurations = exports.fetchHandler = exports.fetchEngineStatus = exports.fetchEngineSettings = exports.fetchEngineLicense = exports.exportTree = exports.deleteTree = exports.deleteTaskCategory = exports.deleteSource = exports.deletePolicyRule = exports.deleteHandler = exports.createTree = exports.createTaskTrigger = exports.createTaskRun = exports.createTaskCategory = exports.createSource = exports.createPolicyRule = exports.createHandler = exports.completeDeferredTask = exports.cloneTree = exports.buildTreeId = void 0;
|
|
8
8
|
var _axios = _interopRequireDefault(require("axios"));
|
|
9
9
|
var _immutable = require("immutable");
|
|
10
10
|
var _http = require("../http");
|
|
11
11
|
var _helpers = require("../../helpers");
|
|
12
|
-
var buildTreeId = function buildTreeId(options) {
|
|
12
|
+
var buildTreeId = exports.buildTreeId = function buildTreeId(options) {
|
|
13
13
|
return options.definitionId ? options.definitionId : options.sourceName && options.sourceGroup ? "".concat(options.sourceName, " :: ").concat(options.sourceGroup, " :: ").concat(options.name) : options.name;
|
|
14
14
|
};
|
|
15
|
-
exports.buildTreeId = buildTreeId;
|
|
16
15
|
var generateNextPageToken = function generateNextPageToken(data) {
|
|
17
16
|
var offset = data.offset,
|
|
18
17
|
limit = data.limit,
|
|
@@ -21,7 +20,7 @@ var generateNextPageToken = function generateNextPageToken(data) {
|
|
|
21
20
|
var nextPageToken = data.limit + data.offset;
|
|
22
21
|
return typeof more !== 'undefined' && more ? nextPageToken : offset >= 0 && limit && count ? offset + limit > count ? null : limit + offset : null;
|
|
23
22
|
};
|
|
24
|
-
var fetchTrees = function fetchTrees() {
|
|
23
|
+
var fetchTrees = exports.fetchTrees = function fetchTrees() {
|
|
25
24
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
26
25
|
return _axios["default"].get("".concat(_helpers.bundle.spaceLocation(), "/app/components/task/app/api/v2/trees"), {
|
|
27
26
|
params: {
|
|
@@ -46,8 +45,7 @@ var fetchTrees = function fetchTrees() {
|
|
|
46
45
|
};
|
|
47
46
|
})["catch"](_http.handleErrors);
|
|
48
47
|
};
|
|
49
|
-
exports.
|
|
50
|
-
var fetchTree = function fetchTree() {
|
|
48
|
+
var fetchTree = exports.fetchTree = function fetchTree() {
|
|
51
49
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
52
50
|
if (!options.guid) {
|
|
53
51
|
(0, _http.validateOptions)('fetchTree', ['name'], options);
|
|
@@ -62,8 +60,7 @@ var fetchTree = function fetchTree() {
|
|
|
62
60
|
};
|
|
63
61
|
})["catch"](_http.handleErrors);
|
|
64
62
|
};
|
|
65
|
-
exports.
|
|
66
|
-
var updateTree = function updateTree() {
|
|
63
|
+
var updateTree = exports.updateTree = function updateTree() {
|
|
67
64
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
68
65
|
(0, _http.validateOptions)('updateTree', ['name', 'tree'], options);
|
|
69
66
|
var id = buildTreeId(options);
|
|
@@ -77,8 +74,7 @@ var updateTree = function updateTree() {
|
|
|
77
74
|
};
|
|
78
75
|
})["catch"](_http.handleErrors);
|
|
79
76
|
};
|
|
80
|
-
exports.
|
|
81
|
-
var createTree = function createTree() {
|
|
77
|
+
var createTree = exports.createTree = function createTree() {
|
|
82
78
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
83
79
|
(0, _http.validateOptions)('createTree', ['tree'], options);
|
|
84
80
|
return _axios["default"].post("".concat(_helpers.bundle.spaceLocation(), "/app/components/task/app/api/v2/trees"), options.tree, {
|
|
@@ -89,8 +85,7 @@ var createTree = function createTree() {
|
|
|
89
85
|
return response.data;
|
|
90
86
|
})["catch"](_http.handleErrors);
|
|
91
87
|
};
|
|
92
|
-
exports.
|
|
93
|
-
var deleteTree = function deleteTree() {
|
|
88
|
+
var deleteTree = exports.deleteTree = function deleteTree() {
|
|
94
89
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
95
90
|
(0, _http.validateOptions)('deleteTree', ['name'], options);
|
|
96
91
|
var id = buildTreeId(options);
|
|
@@ -100,8 +95,7 @@ var deleteTree = function deleteTree() {
|
|
|
100
95
|
};
|
|
101
96
|
})["catch"](_http.handleErrors);
|
|
102
97
|
};
|
|
103
|
-
exports.
|
|
104
|
-
var cloneTree = function cloneTree() {
|
|
98
|
+
var cloneTree = exports.cloneTree = function cloneTree() {
|
|
105
99
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
106
100
|
(0, _http.validateOptions)('cloneTree', ['newName', 'name'], options);
|
|
107
101
|
var id = buildTreeId(options);
|
|
@@ -116,8 +110,7 @@ var cloneTree = function cloneTree() {
|
|
|
116
110
|
};
|
|
117
111
|
})["catch"](_http.handleErrors);
|
|
118
112
|
};
|
|
119
|
-
exports.
|
|
120
|
-
var exportTree = function exportTree() {
|
|
113
|
+
var exportTree = exports.exportTree = function exportTree() {
|
|
121
114
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
122
115
|
(0, _http.validateOptions)('exportTree', ['name'], options);
|
|
123
116
|
var id = buildTreeId(options);
|
|
@@ -127,8 +120,7 @@ var exportTree = function exportTree() {
|
|
|
127
120
|
};
|
|
128
121
|
})["catch"](_http.handleErrors);
|
|
129
122
|
};
|
|
130
|
-
exports.
|
|
131
|
-
var importTree = function importTree() {
|
|
123
|
+
var importTree = exports.importTree = function importTree() {
|
|
132
124
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
133
125
|
var content = options.content,
|
|
134
126
|
contentUrl = options.contentUrl,
|
|
@@ -157,8 +149,7 @@ var importTree = function importTree() {
|
|
|
157
149
|
};
|
|
158
150
|
})["catch"](_http.handleErrors);
|
|
159
151
|
};
|
|
160
|
-
exports.
|
|
161
|
-
var fetchTreeCounts = function fetchTreeCounts() {
|
|
152
|
+
var fetchTreeCounts = exports.fetchTreeCounts = function fetchTreeCounts() {
|
|
162
153
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
163
154
|
var id = buildTreeId(options);
|
|
164
155
|
return _axios["default"].get("".concat(_helpers.bundle.spaceLocation(), "/app/components/task/app/api/v2/trees/").concat(id, "/counts")).then(function (response) {
|
|
@@ -167,8 +158,7 @@ var fetchTreeCounts = function fetchTreeCounts() {
|
|
|
167
158
|
};
|
|
168
159
|
})["catch"](_http.handleErrors);
|
|
169
160
|
};
|
|
170
|
-
exports.
|
|
171
|
-
var fetchSources = function fetchSources() {
|
|
161
|
+
var fetchSources = exports.fetchSources = function fetchSources() {
|
|
172
162
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
173
163
|
return _axios["default"].get("".concat(_helpers.bundle.spaceLocation(), "/app/components/task/app/api/v2/sources"), {
|
|
174
164
|
params: {
|
|
@@ -180,8 +170,7 @@ var fetchSources = function fetchSources() {
|
|
|
180
170
|
};
|
|
181
171
|
})["catch"](_http.handleErrors);
|
|
182
172
|
};
|
|
183
|
-
exports.
|
|
184
|
-
var fetchSource = function fetchSource() {
|
|
173
|
+
var fetchSource = exports.fetchSource = function fetchSource() {
|
|
185
174
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
186
175
|
(0, _http.validateOptions)('fetchSource', ['sourceName'], options);
|
|
187
176
|
return _axios["default"].get("".concat(_helpers.bundle.spaceLocation(), "/app/components/task/app/api/v2/sources/").concat(options.sourceName), {
|
|
@@ -194,8 +183,7 @@ var fetchSource = function fetchSource() {
|
|
|
194
183
|
};
|
|
195
184
|
})["catch"](_http.handleErrors);
|
|
196
185
|
};
|
|
197
|
-
exports.
|
|
198
|
-
var updateSource = function updateSource() {
|
|
186
|
+
var updateSource = exports.updateSource = function updateSource() {
|
|
199
187
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
200
188
|
(0, _http.validateOptions)('updateSource', ['sourceName', 'source'], options);
|
|
201
189
|
return _axios["default"].put("".concat(_helpers.bundle.spaceLocation(), "/app/components/task/app/api/v2/sources/").concat(options.sourceName), options.source, {
|
|
@@ -208,8 +196,7 @@ var updateSource = function updateSource() {
|
|
|
208
196
|
};
|
|
209
197
|
})["catch"](_http.handleErrors);
|
|
210
198
|
};
|
|
211
|
-
exports.
|
|
212
|
-
var deleteSource = function deleteSource() {
|
|
199
|
+
var deleteSource = exports.deleteSource = function deleteSource() {
|
|
213
200
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
214
201
|
var sourceName = options.sourceName;
|
|
215
202
|
if (!sourceName) {
|
|
@@ -221,8 +208,7 @@ var deleteSource = function deleteSource() {
|
|
|
221
208
|
};
|
|
222
209
|
})["catch"](_http.handleErrors);
|
|
223
210
|
};
|
|
224
|
-
exports.
|
|
225
|
-
var createSource = function createSource() {
|
|
211
|
+
var createSource = exports.createSource = function createSource() {
|
|
226
212
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
227
213
|
(0, _http.validateOptions)('createSource', ['source'], options);
|
|
228
214
|
return _axios["default"].post("".concat(_helpers.bundle.spaceLocation(), "/app/components/task/app/api/v2/sources"), options.source, {
|
|
@@ -235,8 +221,7 @@ var createSource = function createSource() {
|
|
|
235
221
|
};
|
|
236
222
|
})["catch"](_http.handleErrors);
|
|
237
223
|
};
|
|
238
|
-
exports.
|
|
239
|
-
var validateSource = function validateSource() {
|
|
224
|
+
var validateSource = exports.validateSource = function validateSource() {
|
|
240
225
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
241
226
|
(0, _http.validateOptions)('validateSource', ['sourceName'], options);
|
|
242
227
|
return _axios["default"].put("".concat(_helpers.bundle.spaceLocation(), "/app/components/task/app/api/v2/sources/").concat(options.sourceName, "/validate"), null, {
|
|
@@ -247,8 +232,7 @@ var validateSource = function validateSource() {
|
|
|
247
232
|
return response.data;
|
|
248
233
|
})["catch"](_http.handleErrors);
|
|
249
234
|
};
|
|
250
|
-
exports.
|
|
251
|
-
var fetchSourceAdapters = function fetchSourceAdapters() {
|
|
235
|
+
var fetchSourceAdapters = exports.fetchSourceAdapters = function fetchSourceAdapters() {
|
|
252
236
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
253
237
|
return _axios["default"].get("".concat(_helpers.bundle.spaceLocation(), "/app/components/task/app/api/v2/meta/sourceAdapters"), {
|
|
254
238
|
params: {
|
|
@@ -260,8 +244,7 @@ var fetchSourceAdapters = function fetchSourceAdapters() {
|
|
|
260
244
|
};
|
|
261
245
|
})["catch"](_http.handleErrors);
|
|
262
246
|
};
|
|
263
|
-
exports.
|
|
264
|
-
var updateDeferredTask = function updateDeferredTask() {
|
|
247
|
+
var updateDeferredTask = exports.updateDeferredTask = function updateDeferredTask() {
|
|
265
248
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
266
249
|
(0, _http.validateOptions)('updateDeferredTask', ['token'], options);
|
|
267
250
|
return _axios["default"].put("".concat(_helpers.bundle.spaceLocation(), "/app/components/task/app/api/v2/runs/task/").concat(options.token), {
|
|
@@ -270,8 +253,7 @@ var updateDeferredTask = function updateDeferredTask() {
|
|
|
270
253
|
return response.data;
|
|
271
254
|
})["catch"](_http.handleErrors);
|
|
272
255
|
};
|
|
273
|
-
exports.
|
|
274
|
-
var completeDeferredTask = function completeDeferredTask() {
|
|
256
|
+
var completeDeferredTask = exports.completeDeferredTask = function completeDeferredTask() {
|
|
275
257
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
276
258
|
(0, _http.validateOptions)('completeDeferredTask', ['token', 'results'], options);
|
|
277
259
|
return _axios["default"].post("".concat(_helpers.bundle.spaceLocation(), "/app/components/task/app/api/v2/runs/task/").concat(options.token), {
|
|
@@ -281,8 +263,7 @@ var completeDeferredTask = function completeDeferredTask() {
|
|
|
281
263
|
return response.data;
|
|
282
264
|
})["catch"](_http.handleErrors);
|
|
283
265
|
};
|
|
284
|
-
exports.
|
|
285
|
-
var fetchTaskCategories = function fetchTaskCategories() {
|
|
266
|
+
var fetchTaskCategories = exports.fetchTaskCategories = function fetchTaskCategories() {
|
|
286
267
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
287
268
|
return _axios["default"].get("".concat(_helpers.bundle.spaceLocation(), "/app/components/task/app/api/v2/categories"), {
|
|
288
269
|
params: {
|
|
@@ -294,8 +275,7 @@ var fetchTaskCategories = function fetchTaskCategories() {
|
|
|
294
275
|
};
|
|
295
276
|
})["catch"](_http.handleErrors);
|
|
296
277
|
};
|
|
297
|
-
exports.
|
|
298
|
-
var createTaskCategory = function createTaskCategory() {
|
|
278
|
+
var createTaskCategory = exports.createTaskCategory = function createTaskCategory() {
|
|
299
279
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
300
280
|
(0, _http.validateOptions)('createTaskCategory', ['category'], options);
|
|
301
281
|
return _axios["default"].post("".concat(_helpers.bundle.spaceLocation(), "/app/components/task/app/api/v2/categories"), options.category, {
|
|
@@ -308,8 +288,7 @@ var createTaskCategory = function createTaskCategory() {
|
|
|
308
288
|
};
|
|
309
289
|
})["catch"](_http.handleErrors);
|
|
310
290
|
};
|
|
311
|
-
exports.
|
|
312
|
-
var fetchTaskCategory = function fetchTaskCategory() {
|
|
291
|
+
var fetchTaskCategory = exports.fetchTaskCategory = function fetchTaskCategory() {
|
|
313
292
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
314
293
|
(0, _http.validateOptions)('fetchTaskCategory', ['categoryName'], options);
|
|
315
294
|
return _axios["default"].get("".concat(_helpers.bundle.spaceLocation(), "/app/components/task/app/api/v2/categories/").concat(options.categoryName), {
|
|
@@ -322,8 +301,7 @@ var fetchTaskCategory = function fetchTaskCategory() {
|
|
|
322
301
|
};
|
|
323
302
|
})["catch"](_http.handleErrors);
|
|
324
303
|
};
|
|
325
|
-
exports.
|
|
326
|
-
var deleteTaskCategory = function deleteTaskCategory() {
|
|
304
|
+
var deleteTaskCategory = exports.deleteTaskCategory = function deleteTaskCategory() {
|
|
327
305
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
328
306
|
(0, _http.validateOptions)('deleteTaskCategory', ['categoryName'], options);
|
|
329
307
|
return _axios["default"]["delete"]("".concat(_helpers.bundle.spaceLocation(), "/app/components/task/app/api/v2/categories/").concat(options.categoryName), {
|
|
@@ -336,8 +314,7 @@ var deleteTaskCategory = function deleteTaskCategory() {
|
|
|
336
314
|
};
|
|
337
315
|
})["catch"](_http.handleErrors);
|
|
338
316
|
};
|
|
339
|
-
exports.
|
|
340
|
-
var updateTaskCategory = function updateTaskCategory() {
|
|
317
|
+
var updateTaskCategory = exports.updateTaskCategory = function updateTaskCategory() {
|
|
341
318
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
342
319
|
(0, _http.validateOptions)('updateTaskCategory', ['categoryName', 'category'], options);
|
|
343
320
|
return _axios["default"].put("".concat(_helpers.bundle.spaceLocation(), "/app/components/task/app/api/v2/categories/").concat(options.categoryName), options.category, {
|
|
@@ -350,8 +327,7 @@ var updateTaskCategory = function updateTaskCategory() {
|
|
|
350
327
|
};
|
|
351
328
|
})["catch"](_http.handleErrors);
|
|
352
329
|
};
|
|
353
|
-
exports.
|
|
354
|
-
var fetchPolicyRules = function fetchPolicyRules() {
|
|
330
|
+
var fetchPolicyRules = exports.fetchPolicyRules = function fetchPolicyRules() {
|
|
355
331
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
356
332
|
return _axios["default"].get("".concat(_helpers.bundle.spaceLocation(), "/app/components/task/app/api/v2/policyRules"), {
|
|
357
333
|
params: {
|
|
@@ -364,8 +340,7 @@ var fetchPolicyRules = function fetchPolicyRules() {
|
|
|
364
340
|
};
|
|
365
341
|
})["catch"](_http.handleErrors);
|
|
366
342
|
};
|
|
367
|
-
exports.
|
|
368
|
-
var createPolicyRule = function createPolicyRule() {
|
|
343
|
+
var createPolicyRule = exports.createPolicyRule = function createPolicyRule() {
|
|
369
344
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
370
345
|
(0, _http.validateOptions)('createPolicyRule', ['policy', 'policyType'], options);
|
|
371
346
|
return _axios["default"].post("".concat(_helpers.bundle.spaceLocation(), "/app/components/task/app/api/v2/policyRules/").concat(options.policyType), options.policy, {
|
|
@@ -378,8 +353,7 @@ var createPolicyRule = function createPolicyRule() {
|
|
|
378
353
|
};
|
|
379
354
|
})["catch"](_http.handleErrors);
|
|
380
355
|
};
|
|
381
|
-
exports.
|
|
382
|
-
var fetchPolicyRule = function fetchPolicyRule() {
|
|
356
|
+
var fetchPolicyRule = exports.fetchPolicyRule = function fetchPolicyRule() {
|
|
383
357
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
384
358
|
(0, _http.validateOptions)('fetchPolicyRule', ['policyName', 'policyType'], options);
|
|
385
359
|
return _axios["default"].get("".concat(_helpers.bundle.spaceLocation(), "/app/components/task/app/api/v2/policyRules/").concat(options.policyType, "/").concat(options.policyName), {
|
|
@@ -392,8 +366,7 @@ var fetchPolicyRule = function fetchPolicyRule() {
|
|
|
392
366
|
};
|
|
393
367
|
})["catch"](_http.handleErrors);
|
|
394
368
|
};
|
|
395
|
-
exports.
|
|
396
|
-
var deletePolicyRule = function deletePolicyRule() {
|
|
369
|
+
var deletePolicyRule = exports.deletePolicyRule = function deletePolicyRule() {
|
|
397
370
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
398
371
|
(0, _http.validateOptions)('deletePolicyRule', ['policyName', 'policyType'], options);
|
|
399
372
|
return _axios["default"]["delete"]("".concat(_helpers.bundle.spaceLocation(), "/app/components/task/app/api/v2/policyRules/").concat(options.policyType, "/").concat(options.policyName), {
|
|
@@ -406,8 +379,7 @@ var deletePolicyRule = function deletePolicyRule() {
|
|
|
406
379
|
};
|
|
407
380
|
})["catch"](_http.handleErrors);
|
|
408
381
|
};
|
|
409
|
-
exports.
|
|
410
|
-
var updatePolicyRule = function updatePolicyRule() {
|
|
382
|
+
var updatePolicyRule = exports.updatePolicyRule = function updatePolicyRule() {
|
|
411
383
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
412
384
|
(0, _http.validateOptions)('updatePolicyRule', ['policyName', 'policy', 'policyType'], options);
|
|
413
385
|
return _axios["default"].put("".concat(_helpers.bundle.spaceLocation(), "/app/components/task/app/api/v2/policyRules/").concat(options.policyType, "/").concat(options.policyName), options.policy, {
|
|
@@ -420,8 +392,7 @@ var updatePolicyRule = function updatePolicyRule() {
|
|
|
420
392
|
};
|
|
421
393
|
})["catch"](_http.handleErrors);
|
|
422
394
|
};
|
|
423
|
-
exports.
|
|
424
|
-
var fetchSystemErrors = function fetchSystemErrors() {
|
|
395
|
+
var fetchSystemErrors = exports.fetchSystemErrors = function fetchSystemErrors() {
|
|
425
396
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
426
397
|
return _axios["default"].get("".concat(_helpers.bundle.spaceLocation(), "/app/components/task/app/api/v2/systemErrors"), {
|
|
427
398
|
params: {
|
|
@@ -433,8 +404,7 @@ var fetchSystemErrors = function fetchSystemErrors() {
|
|
|
433
404
|
};
|
|
434
405
|
})["catch"](_http.handleErrors);
|
|
435
406
|
};
|
|
436
|
-
exports.
|
|
437
|
-
var fetchSystemError = function fetchSystemError() {
|
|
407
|
+
var fetchSystemError = exports.fetchSystemError = function fetchSystemError() {
|
|
438
408
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
439
409
|
(0, _http.validateOptions)('fetchSystemError', ['errorId'], options);
|
|
440
410
|
return _axios["default"].get("".concat(_helpers.bundle.spaceLocation(), "/app/components/task/app/api/v2/systemErrors/").concat(options.errorId), {
|
|
@@ -447,8 +417,7 @@ var fetchSystemError = function fetchSystemError() {
|
|
|
447
417
|
};
|
|
448
418
|
})["catch"](_http.handleErrors);
|
|
449
419
|
};
|
|
450
|
-
exports.
|
|
451
|
-
var resolveSystemError = function resolveSystemError() {
|
|
420
|
+
var resolveSystemError = exports.resolveSystemError = function resolveSystemError() {
|
|
452
421
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
453
422
|
(0, _http.validateOptions)('resolveSystemError', ['ids', 'resolution'], options);
|
|
454
423
|
return _axios["default"].post("".concat(_helpers.bundle.spaceLocation(), "/app/components/task/app/api/v2/systemErrors/resolve"), {
|
|
@@ -460,8 +429,7 @@ var resolveSystemError = function resolveSystemError() {
|
|
|
460
429
|
};
|
|
461
430
|
})["catch"](_http.handleErrors);
|
|
462
431
|
};
|
|
463
|
-
exports.
|
|
464
|
-
var fetchHandlers = function fetchHandlers() {
|
|
432
|
+
var fetchHandlers = exports.fetchHandlers = function fetchHandlers() {
|
|
465
433
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
466
434
|
return _axios["default"].get("".concat(_helpers.bundle.spaceLocation(), "/app/components/task/app/api/v2/handlers"), {
|
|
467
435
|
params: {
|
|
@@ -473,8 +441,7 @@ var fetchHandlers = function fetchHandlers() {
|
|
|
473
441
|
};
|
|
474
442
|
})["catch"](_http.handleErrors);
|
|
475
443
|
};
|
|
476
|
-
exports.
|
|
477
|
-
var fetchHandler = function fetchHandler() {
|
|
444
|
+
var fetchHandler = exports.fetchHandler = function fetchHandler() {
|
|
478
445
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
479
446
|
(0, _http.validateOptions)('fetchHandler', ['definitionId'], options);
|
|
480
447
|
return _axios["default"].get("".concat(_helpers.bundle.spaceLocation(), "/app/components/task/app/api/v2/handlers/").concat(options.definitionId), {
|
|
@@ -487,8 +454,7 @@ var fetchHandler = function fetchHandler() {
|
|
|
487
454
|
};
|
|
488
455
|
})["catch"](_http.handleErrors);
|
|
489
456
|
};
|
|
490
|
-
exports.
|
|
491
|
-
var createHandler = function createHandler() {
|
|
457
|
+
var createHandler = exports.createHandler = function createHandler() {
|
|
492
458
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
493
459
|
var packageUrl = options.packageUrl,
|
|
494
460
|
packageFile = options.packageFile,
|
|
@@ -519,8 +485,7 @@ var createHandler = function createHandler() {
|
|
|
519
485
|
};
|
|
520
486
|
});
|
|
521
487
|
};
|
|
522
|
-
exports.
|
|
523
|
-
var updateHandler = function updateHandler() {
|
|
488
|
+
var updateHandler = exports.updateHandler = function updateHandler() {
|
|
524
489
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
525
490
|
(0, _http.validateOptions)('updateHandler', ['definitionId', 'handler'], options);
|
|
526
491
|
return _axios["default"].put("".concat(_helpers.bundle.spaceLocation(), "/app/components/task/app/api/v2/handlers/").concat(options.definitionId), options.handler, {
|
|
@@ -533,8 +498,7 @@ var updateHandler = function updateHandler() {
|
|
|
533
498
|
};
|
|
534
499
|
})["catch"](_http.handleErrors);
|
|
535
500
|
};
|
|
536
|
-
exports.
|
|
537
|
-
var deleteHandler = function deleteHandler() {
|
|
501
|
+
var deleteHandler = exports.deleteHandler = function deleteHandler() {
|
|
538
502
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
539
503
|
var definitionId = options.definitionId;
|
|
540
504
|
if (!definitionId) {
|
|
@@ -546,8 +510,7 @@ var deleteHandler = function deleteHandler() {
|
|
|
546
510
|
};
|
|
547
511
|
})["catch"](_http.handleErrors);
|
|
548
512
|
};
|
|
549
|
-
exports.
|
|
550
|
-
var fetchUsage = function fetchUsage() {
|
|
513
|
+
var fetchUsage = exports.fetchUsage = function fetchUsage() {
|
|
551
514
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
552
515
|
var id = buildTreeId(options);
|
|
553
516
|
var path = options.usageType === 'handler' ? "".concat(_helpers.bundle.spaceLocation(), "/app/components/task/app/api/v2/handlers/").concat(options.definitionId, "/usage") : "".concat(_helpers.bundle.spaceLocation(), "/app/components/task/app/api/v2/trees/").concat(id, "/usage");
|
|
@@ -564,15 +527,13 @@ var fetchUsage = function fetchUsage() {
|
|
|
564
527
|
};
|
|
565
528
|
})["catch"](_http.handleErrors);
|
|
566
529
|
};
|
|
567
|
-
exports.
|
|
568
|
-
var fetchHandlerDurations = function fetchHandlerDurations() {
|
|
530
|
+
var fetchHandlerDurations = exports.fetchHandlerDurations = function fetchHandlerDurations() {
|
|
569
531
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
570
532
|
return _axios["default"].get("".concat(_helpers.bundle.spaceLocation(), "/app/components/task/app/api/v2/handlers/").concat(options.definitionId, "/durations")).then(function (response) {
|
|
571
533
|
return response.data;
|
|
572
534
|
})["catch"](_http.handleErrors);
|
|
573
535
|
};
|
|
574
|
-
exports.
|
|
575
|
-
var fetchMissingRoutines = function fetchMissingRoutines() {
|
|
536
|
+
var fetchMissingRoutines = exports.fetchMissingRoutines = function fetchMissingRoutines() {
|
|
576
537
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
577
538
|
return _axios["default"].get("".concat(_helpers.bundle.spaceLocation(), "/app/components/task/app/api/v2/trees/missing"), {
|
|
578
539
|
params: {
|
|
@@ -584,8 +545,7 @@ var fetchMissingRoutines = function fetchMissingRoutines() {
|
|
|
584
545
|
};
|
|
585
546
|
})["catch"](_http.handleErrors);
|
|
586
547
|
};
|
|
587
|
-
exports.
|
|
588
|
-
var fetchMissingHandlers = function fetchMissingHandlers() {
|
|
548
|
+
var fetchMissingHandlers = exports.fetchMissingHandlers = function fetchMissingHandlers() {
|
|
589
549
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
590
550
|
return _axios["default"].get("".concat(_helpers.bundle.spaceLocation(), "/app/components/task/app/api/v2/handlers/missing"), {
|
|
591
551
|
params: {
|
|
@@ -597,8 +557,7 @@ var fetchMissingHandlers = function fetchMissingHandlers() {
|
|
|
597
557
|
};
|
|
598
558
|
})["catch"](_http.handleErrors);
|
|
599
559
|
};
|
|
600
|
-
exports.
|
|
601
|
-
var stopEngine = function stopEngine() {
|
|
560
|
+
var stopEngine = exports.stopEngine = function stopEngine() {
|
|
602
561
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
603
562
|
return _axios["default"].post(options.spaceSlug ? "/app/system-coordinator/components/task/".concat(options.spaceSlug, "/app/api/v2/engine") : "".concat(_helpers.bundle.spaceLocation(), "/app/components/task/app/api/v2/engine"), {
|
|
604
563
|
action: 'stop',
|
|
@@ -607,8 +566,7 @@ var stopEngine = function stopEngine() {
|
|
|
607
566
|
return response.data;
|
|
608
567
|
})["catch"](_http.handleErrors);
|
|
609
568
|
};
|
|
610
|
-
exports.
|
|
611
|
-
var startEngine = function startEngine() {
|
|
569
|
+
var startEngine = exports.startEngine = function startEngine() {
|
|
612
570
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
613
571
|
return _axios["default"].post(options.spaceSlug ? "/app/system-coordinator/components/task/".concat(options.spaceSlug, "/app/api/v2/engine") : "".concat(_helpers.bundle.spaceLocation(), "/app/components/task/app/api/v2/engine"), {
|
|
614
572
|
action: 'start',
|
|
@@ -617,21 +575,18 @@ var startEngine = function startEngine() {
|
|
|
617
575
|
return response.data;
|
|
618
576
|
})["catch"](_http.handleErrors);
|
|
619
577
|
};
|
|
620
|
-
exports.
|
|
621
|
-
var fetchEngineStatus = function fetchEngineStatus() {
|
|
578
|
+
var fetchEngineStatus = exports.fetchEngineStatus = function fetchEngineStatus() {
|
|
622
579
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
623
580
|
return _axios["default"].get(options.spaceSlug ? "/app/system-coordinator/components/task/".concat(options.spaceSlug, "/app/api/v2/engine") : "".concat(_helpers.bundle.spaceLocation(), "/app/components/task/app/api/v2/engine")).then(function (response) {
|
|
624
581
|
return response.data;
|
|
625
582
|
})["catch"](_http.handleErrors);
|
|
626
583
|
};
|
|
627
|
-
exports.
|
|
628
|
-
var fetchEngineLicense = function fetchEngineLicense() {
|
|
584
|
+
var fetchEngineLicense = exports.fetchEngineLicense = function fetchEngineLicense() {
|
|
629
585
|
return _axios["default"].get("".concat(_helpers.bundle.spaceLocation(), "/app/components/task/app/api/v2/config/license")).then(function (response) {
|
|
630
586
|
return response.data;
|
|
631
587
|
})["catch"](_http.handleErrors);
|
|
632
588
|
};
|
|
633
|
-
exports.
|
|
634
|
-
var fetchEngineSettings = function fetchEngineSettings() {
|
|
589
|
+
var fetchEngineSettings = exports.fetchEngineSettings = function fetchEngineSettings() {
|
|
635
590
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
636
591
|
return _axios["default"].get(options.spaceSlug ? "/app/system-coordinator/components/task/".concat(options.spaceSlug, "/app/api/v2/config/engine") : "".concat(_helpers.bundle.spaceLocation(), "/app/components/task/app/api/v2/config/engine")).then(function (response) {
|
|
637
592
|
return {
|
|
@@ -639,8 +594,7 @@ var fetchEngineSettings = function fetchEngineSettings() {
|
|
|
639
594
|
};
|
|
640
595
|
})["catch"](_http.handleErrors);
|
|
641
596
|
};
|
|
642
|
-
exports.
|
|
643
|
-
var updateEngineSettings = function updateEngineSettings() {
|
|
597
|
+
var updateEngineSettings = exports.updateEngineSettings = function updateEngineSettings() {
|
|
644
598
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
645
599
|
return _axios["default"].put(options.spaceSlug ? "/app/system-coordinator/components/task/".concat(options.spaceSlug, "/app/api/v2/config/engine") : "".concat(_helpers.bundle.spaceLocation(), "/app/components/task/app/api/v2/config/engine"), options.settings).then(function (response) {
|
|
646
600
|
return {
|
|
@@ -648,8 +602,7 @@ var updateEngineSettings = function updateEngineSettings() {
|
|
|
648
602
|
};
|
|
649
603
|
})["catch"](_http.handleErrors);
|
|
650
604
|
};
|
|
651
|
-
exports.
|
|
652
|
-
var fetchTaskRuns = function fetchTaskRuns() {
|
|
605
|
+
var fetchTaskRuns = exports.fetchTaskRuns = function fetchTaskRuns() {
|
|
653
606
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
654
607
|
return _axios["default"].get("".concat(_helpers.bundle.spaceLocation(), "/app/components/task/app/api/v2/runs"), {
|
|
655
608
|
params: {
|
|
@@ -685,8 +638,7 @@ var fetchTaskRuns = function fetchTaskRuns() {
|
|
|
685
638
|
};
|
|
686
639
|
})["catch"](_http.handleErrors);
|
|
687
640
|
};
|
|
688
|
-
exports.
|
|
689
|
-
var fetchTaskRun = function fetchTaskRun() {
|
|
641
|
+
var fetchTaskRun = exports.fetchTaskRun = function fetchTaskRun() {
|
|
690
642
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
691
643
|
(0, _http.validateOptions)('fetchTaskRun', ['runId'], options);
|
|
692
644
|
return _axios["default"].get("".concat(_helpers.bundle.spaceLocation(), "/app/components/task/app/api/v2/runs/").concat(options.runId), {
|
|
@@ -699,16 +651,27 @@ var fetchTaskRun = function fetchTaskRun() {
|
|
|
699
651
|
};
|
|
700
652
|
})["catch"](_http.handleErrors);
|
|
701
653
|
};
|
|
702
|
-
exports.
|
|
703
|
-
var
|
|
654
|
+
var fetchTaskRunViaDeferralToken = exports.fetchTaskRunViaDeferralToken = function fetchTaskRunViaDeferralToken() {
|
|
655
|
+
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
656
|
+
(0, _http.validateOptions)('fetchTaskRunViaDeferralToken', ['deferralToken'], options);
|
|
657
|
+
return _axios["default"].get("".concat(_helpers.bundle.spaceLocation(), "/app/components/task/app/api/v2/runs/task/").concat(options.deferralToken), {
|
|
658
|
+
params: {
|
|
659
|
+
include: options.include
|
|
660
|
+
}
|
|
661
|
+
}).then(function (response) {
|
|
662
|
+
return {
|
|
663
|
+
run: response.data
|
|
664
|
+
};
|
|
665
|
+
})["catch"](_http.handleErrors);
|
|
666
|
+
};
|
|
667
|
+
var updateTaskRun = exports.updateTaskRun = function updateTaskRun() {
|
|
704
668
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
705
669
|
(0, _http.validateOptions)('updateTaskRun', ['runId', 'run'], options);
|
|
706
670
|
return _axios["default"].put("".concat(_helpers.bundle.spaceLocation(), "/app/components/task/app/api/v2/runs/").concat(options.runId), options.run, {
|
|
707
671
|
include: options.include
|
|
708
672
|
});
|
|
709
673
|
};
|
|
710
|
-
exports.
|
|
711
|
-
var createTaskRun = function createTaskRun() {
|
|
674
|
+
var createTaskRun = exports.createTaskRun = function createTaskRun() {
|
|
712
675
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
713
676
|
(0, _http.validateOptions)('createTaskRun', ['run'], options);
|
|
714
677
|
var data = options.run.sourceData || options.run.sourceData === '' ? options.run.sourceData : options.run;
|
|
@@ -728,8 +691,7 @@ var createTaskRun = function createTaskRun() {
|
|
|
728
691
|
};
|
|
729
692
|
})["catch"](_http.handleErrors);
|
|
730
693
|
};
|
|
731
|
-
exports.
|
|
732
|
-
var fetchTaskTriggers = function fetchTaskTriggers() {
|
|
694
|
+
var fetchTaskTriggers = exports.fetchTaskTriggers = function fetchTaskTriggers() {
|
|
733
695
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
734
696
|
return _axios["default"].get("".concat(_helpers.bundle.spaceLocation(), "/app/components/task/app/api/v2/triggers").concat(options.triggerStatus ? '/' + options.triggerStatus : ''), {
|
|
735
697
|
params: {
|
|
@@ -762,8 +724,7 @@ var fetchTaskTriggers = function fetchTaskTriggers() {
|
|
|
762
724
|
};
|
|
763
725
|
})["catch"](_http.handleErrors);
|
|
764
726
|
};
|
|
765
|
-
exports.
|
|
766
|
-
var createTaskTrigger = function createTaskTrigger() {
|
|
727
|
+
var createTaskTrigger = exports.createTaskTrigger = function createTaskTrigger() {
|
|
767
728
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
768
729
|
(0, _http.validateOptions)('createTaskTrigger', ['runId', 'nodeId'], options);
|
|
769
730
|
return _axios["default"].post("".concat(_helpers.bundle.spaceLocation(), "/app/components/task/app/api/v2/runs/").concat(options.runId, "/triggers"), {
|
|
@@ -774,8 +735,7 @@ var createTaskTrigger = function createTaskTrigger() {
|
|
|
774
735
|
return response.data;
|
|
775
736
|
})["catch"](_http.handleErrors);
|
|
776
737
|
};
|
|
777
|
-
exports.
|
|
778
|
-
var fetchTaskRunErrors = function fetchTaskRunErrors() {
|
|
738
|
+
var fetchTaskRunErrors = exports.fetchTaskRunErrors = function fetchTaskRunErrors() {
|
|
779
739
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
780
740
|
return _axios["default"].get("".concat(_helpers.bundle.spaceLocation(), "/app/components/task/app/api/v2/errors"), {
|
|
781
741
|
params: {
|
|
@@ -810,8 +770,7 @@ var fetchTaskRunErrors = function fetchTaskRunErrors() {
|
|
|
810
770
|
};
|
|
811
771
|
})["catch"](_http.handleErrors);
|
|
812
772
|
};
|
|
813
|
-
exports.
|
|
814
|
-
var fetchTaskRunError = function fetchTaskRunError() {
|
|
773
|
+
var fetchTaskRunError = exports.fetchTaskRunError = function fetchTaskRunError() {
|
|
815
774
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
816
775
|
(0, _http.validateOptions)('fetchTaskRunError', ['errorId'], options);
|
|
817
776
|
return _axios["default"].get("".concat(_helpers.bundle.spaceLocation(), "/app/components/task/app/api/v2/errors/").concat(options.errorId), {
|
|
@@ -824,8 +783,7 @@ var fetchTaskRunError = function fetchTaskRunError() {
|
|
|
824
783
|
};
|
|
825
784
|
})["catch"](_http.handleErrors);
|
|
826
785
|
};
|
|
827
|
-
exports.
|
|
828
|
-
var updateRunTaskResults = function updateRunTaskResults() {
|
|
786
|
+
var updateRunTaskResults = exports.updateRunTaskResults = function updateRunTaskResults() {
|
|
829
787
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
830
788
|
(0, _http.validateOptions)('updateRunTaskResults', ['runId', 'taskId'], options);
|
|
831
789
|
return _axios["default"].put("".concat(_helpers.bundle.spaceLocation(), "/app/components/task/app/api/v2/runs/").concat(options.runId, "/tasks/").concat(options.taskId), {
|
|
@@ -840,8 +798,7 @@ var updateRunTaskResults = function updateRunTaskResults() {
|
|
|
840
798
|
return response.data;
|
|
841
799
|
})["catch"](_http.handleErrors);
|
|
842
800
|
};
|
|
843
|
-
exports.
|
|
844
|
-
var resolveTaskErrors = function resolveTaskErrors() {
|
|
801
|
+
var resolveTaskErrors = exports.resolveTaskErrors = function resolveTaskErrors() {
|
|
845
802
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
846
803
|
(0, _http.validateOptions)('resolveTaskErrors', ['ids', 'action', 'resolution'], options);
|
|
847
804
|
return _axios["default"].post("".concat(_helpers.bundle.spaceLocation(), "/app/components/task/app/api/v2/errors/resolve"), {
|
|
@@ -857,12 +814,10 @@ var resolveTaskErrors = function resolveTaskErrors() {
|
|
|
857
814
|
};
|
|
858
815
|
})["catch"](_http.handleErrors);
|
|
859
816
|
};
|
|
860
|
-
exports.
|
|
861
|
-
var fetchTaskVersion = function fetchTaskVersion() {
|
|
817
|
+
var fetchTaskVersion = exports.fetchTaskVersion = function fetchTaskVersion() {
|
|
862
818
|
return _axios["default"].get("".concat(_helpers.bundle.spaceLocation(), "/app/components/task/app/api/v2/version")).then(function (response) {
|
|
863
819
|
return {
|
|
864
820
|
version: response.data
|
|
865
821
|
};
|
|
866
822
|
})["catch"](_http.handleErrors);
|
|
867
|
-
};
|
|
868
|
-
exports.fetchTaskVersion = fetchTaskVersion;
|
|
823
|
+
};
|
|
@@ -131,11 +131,10 @@ var fields = function fields(_ref5) {
|
|
|
131
131
|
}
|
|
132
132
|
};
|
|
133
133
|
};
|
|
134
|
-
var BridgeForm = (0, _Form.generateForm)({
|
|
134
|
+
var BridgeForm = exports.BridgeForm = (0, _Form.generateForm)({
|
|
135
135
|
formOptions: ['bridgeSlug', 'adapterClass', 'agentSlug'],
|
|
136
136
|
dataSources: dataSources,
|
|
137
137
|
fields: fields,
|
|
138
138
|
handleSubmit: handleSubmit
|
|
139
139
|
});
|
|
140
|
-
exports.BridgeForm = BridgeForm;
|
|
141
140
|
BridgeForm.displayName = 'BridgeForm';
|
|
@@ -42,20 +42,22 @@ var filters = function filters() {
|
|
|
42
42
|
var columns = [{
|
|
43
43
|
value: 'slug',
|
|
44
44
|
title: 'Slug',
|
|
45
|
-
sortable: true
|
|
45
|
+
sortable: true,
|
|
46
|
+
toggleable: false,
|
|
47
|
+
columnOrder: 'first'
|
|
46
48
|
}, {
|
|
47
49
|
value: 'adapterClass',
|
|
48
50
|
title: 'Adapter',
|
|
49
51
|
sortable: true,
|
|
52
|
+
toggleable: true,
|
|
50
53
|
valueTransform: function valueTransform(_value) {
|
|
51
54
|
return _value.split('.').pop().match(/[A-Z][a-z]+/g).join(' ');
|
|
52
55
|
}
|
|
53
56
|
}];
|
|
54
|
-
var BridgeTable = (0, _Table.generateTable)({
|
|
57
|
+
var BridgeTable = exports.BridgeTable = (0, _Table.generateTable)({
|
|
55
58
|
tableOptions: ['agentSlug'],
|
|
56
59
|
columns: columns,
|
|
57
60
|
filters: filters,
|
|
58
61
|
dataSource: dataSource
|
|
59
62
|
});
|
|
60
|
-
exports.BridgeTable = BridgeTable;
|
|
61
63
|
BridgeTable.displayName = 'BridgeTable';
|
|
@@ -123,11 +123,10 @@ var fields = function fields(_ref4) {
|
|
|
123
123
|
}
|
|
124
124
|
};
|
|
125
125
|
};
|
|
126
|
-
var FilestoreForm = (0, _Form2.generateForm)({
|
|
126
|
+
var FilestoreForm = exports.FilestoreForm = (0, _Form2.generateForm)({
|
|
127
127
|
formOptions: ['filestoreSlug', 'adapterClass', 'agentSlug'],
|
|
128
128
|
dataSources: dataSources,
|
|
129
129
|
fields: fields,
|
|
130
130
|
handleSubmit: handleSubmit
|
|
131
131
|
});
|
|
132
|
-
exports.FilestoreForm = FilestoreForm;
|
|
133
132
|
FilestoreForm.displayName = 'FilestoreForm';
|