@kineticdata/react 5.1.2 → 6.0.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/assets/task/icons/drag-handle.svg +3 -0
- package/assets/task/icons/plus_small.svg +2 -4
- package/lib/apis/agent/adapters.js +16 -12
- package/lib/apis/agent/bridges.js +54 -41
- package/lib/apis/agent/handlers.js +51 -38
- package/lib/apis/core/activity.js +19 -11
- package/lib/apis/core/attributeDefinitions.js +54 -46
- package/lib/apis/core/attributeDefinitions.test.js +47 -55
- package/lib/apis/core/authentication.js +58 -63
- package/lib/apis/core/backgroundJobs.js +38 -30
- package/lib/apis/core/bridgeModelAttributeMappings.js +42 -34
- package/lib/apis/core/bridgeModelAttributes.js +47 -37
- package/lib/apis/core/bridgeModelMappings.js +42 -34
- package/lib/apis/core/bridgeModelQualificationMappings.js +42 -34
- package/lib/apis/core/bridgeModelQualifications.js +42 -34
- package/lib/apis/core/bridgeModels.js +56 -46
- package/lib/apis/core/bridgeModels.test.js +64 -80
- package/lib/apis/core/bridgedresources.js +64 -72
- package/lib/apis/core/bridgedresources.test.js +33 -30
- package/lib/apis/core/categories.js +59 -52
- package/lib/apis/core/categories.test.js +36 -33
- package/lib/apis/core/fileResources.js +41 -33
- package/lib/apis/core/filestores.js +42 -34
- package/lib/apis/core/formTypes.js +50 -44
- package/lib/apis/core/forms.js +53 -49
- package/lib/apis/core/forms.test.js +60 -74
- package/lib/apis/core/kapps.js +45 -39
- package/lib/apis/core/kapps.test.js +45 -52
- package/lib/apis/core/logs.js +20 -16
- package/lib/apis/core/memberships.js +23 -20
- package/lib/apis/core/meta.js +31 -19
- package/lib/apis/core/notices.js +17 -9
- package/lib/apis/core/oauthClients.js +49 -45
- package/lib/apis/core/platformComponents.js +73 -57
- package/lib/apis/core/platformItems.js +22 -13
- package/lib/apis/core/profile.js +28 -21
- package/lib/apis/core/profile.test.js +20 -17
- package/lib/apis/core/securityPolicyDefinitions.js +48 -41
- package/lib/apis/core/securityPolicyDefinitions.test.js +50 -60
- package/lib/apis/core/space.js +23 -16
- package/lib/apis/core/space.test.js +31 -38
- package/lib/apis/core/submissions.js +213 -186
- package/lib/apis/core/submissions.test.js +39 -36
- package/lib/apis/core/teams.js +51 -44
- package/lib/apis/core/teams.test.js +42 -39
- package/lib/apis/core/translations.js +123 -130
- package/lib/apis/core/translations.test.js +278 -368
- package/lib/apis/core/users.js +56 -49
- package/lib/apis/core/users.test.js +42 -39
- package/lib/apis/core/version.js +20 -11
- package/lib/apis/core/webApis.js +42 -34
- package/lib/apis/core/webhooks.js +48 -41
- package/lib/apis/core/webhooks.test.js +50 -60
- package/lib/apis/core/webhooksJobs.js +30 -26
- package/lib/apis/core/workflows.js +52 -44
- package/lib/apis/http.js +121 -80
- package/lib/apis/http.test.js +137 -38
- package/lib/apis/index.js +506 -50
- package/lib/apis/system/index.js +363 -215
- package/lib/apis/task/index.js +294 -227
- package/lib/components/agent/bridge/BridgeForm.js +50 -50
- package/lib/components/agent/bridge/BridgeTable.js +16 -9
- package/lib/components/agent/filestore/FilestoreForm.js +49 -48
- package/lib/components/agent/filestore/FilestoreTable.js +16 -9
- package/lib/components/agent/handler/AgentHandlerForm.js +24 -27
- package/lib/components/agent/handler/AgentHandlerTable.js +17 -10
- package/lib/components/common/AttributeSelect.js +15 -9
- package/lib/components/common/BridgeSelect.js +48 -43
- package/lib/components/common/ComponentConfigContext.js +9 -2
- package/lib/components/common/ContentEditable.js +36 -60
- package/lib/components/common/FormSelect.js +70 -58
- package/lib/components/common/NodeSelect.js +23 -19
- package/lib/components/common/Scroller.js +24 -23
- package/lib/components/common/StaticSelect.js +57 -50
- package/lib/components/common/TableInput.js +54 -57
- package/lib/components/common/TeamSelect.js +42 -39
- package/lib/components/common/ToastContainer.js +170 -0
- package/lib/components/common/Typeahead.js +121 -138
- package/lib/components/common/UserSelect.js +42 -41
- package/lib/components/common/authentication/AuthInterceptor.js +15 -19
- package/lib/components/common/authentication/AuthInterceptor.test.js +46 -64
- package/lib/components/common/authentication/AuthenticationContainer.js +350 -454
- package/lib/components/common/authentication/RequestInterceptor.js +16 -19
- package/lib/components/common/code_input/CodeInput.js +92 -122
- package/lib/components/common/code_input/draftHelpers.js +96 -90
- package/lib/components/common/code_input/languageHelpers.js +49 -47
- package/lib/components/common/code_input/languageHelpers.test.js +21 -16
- package/lib/components/common/defaults/Toast.js +26 -0
- package/lib/components/common/defaults/index.js +13 -0
- package/lib/components/core/CoreFormModal.js +26 -24
- package/lib/components/core/CoreModal.js +37 -31
- package/lib/components/core/attribute_definition/AttributeDefinitionForm.js +24 -23
- package/lib/components/core/attribute_definition/AttributeDefinitionTable.js +25 -18
- package/lib/components/core/bridge_model/BridgeModelForm.js +27 -37
- package/lib/components/core/bridge_model/BridgeModelTable.js +17 -10
- package/lib/components/core/bridge_model_attribute/BridgeModelAttributeForm.js +17 -16
- package/lib/components/core/bridge_model_attribute/BridgeModelAttributeTable.js +25 -21
- package/lib/components/core/bridge_model_qualification/BridgeModelQualificationForm.js +20 -20
- package/lib/components/core/bridge_model_qualification/BridgeModelQualificationTable.js +27 -22
- package/lib/components/core/category/CategoryForm.js +22 -22
- package/lib/components/core/category/CategoryTable.js +28 -16
- package/lib/components/core/core_form/CoreForm.js +209 -285
- package/lib/components/core/core_form/CoreForm.test.js +12 -10
- package/lib/components/core/core_form/defaults/index.js +52 -44
- package/lib/components/core/core_form/globals.js +14 -5
- package/lib/components/core/field_definition/FieldDefinitionForm.js +23 -21
- package/lib/components/core/field_definition/FieldDefinitionTable.js +26 -15
- package/lib/components/core/file_resource/FileResourceForm.js +38 -37
- package/lib/components/core/file_resource/FileResourceTable.js +16 -12
- package/lib/components/core/form/FormForm.js +56 -61
- package/lib/components/core/form/FormTable.js +47 -33
- package/lib/components/core/form_type/FormTypeForm.js +14 -13
- package/lib/components/core/form_type/FormTypeTable.js +15 -9
- package/lib/components/core/i18n/I18n.js +54 -61
- package/lib/components/core/i18n/I18nContext.js +9 -2
- package/lib/components/core/i18n/I18nProvider.js +40 -43
- package/lib/components/core/i18n/Moment.js +40 -50
- package/lib/components/core/index_definition/IndexDefinitionForm.js +23 -24
- package/lib/components/core/index_definition/IndexDefinitionTable.js +31 -16
- package/lib/components/core/index_job/IndexJobTable.js +20 -15
- package/lib/components/core/kapp/KappForm.js +57 -58
- package/lib/components/core/kapp/KappTable.js +34 -44
- package/lib/components/core/log/LogTable.js +42 -34
- package/lib/components/core/oauth_client/OAuthClientForm.js +17 -17
- package/lib/components/core/oauth_client/OAuthClientTable.js +12 -8
- package/lib/components/core/platform_component/AgentComponentForm.js +15 -15
- package/lib/components/core/platform_component/AgentComponentTable.js +10 -5
- package/lib/components/core/platform_component/TaskComponentForm.js +14 -14
- package/lib/components/core/profile/ProfileForm.js +40 -39
- package/lib/components/core/security_definition/SecurityDefinitionForm.js +28 -25
- package/lib/components/core/security_definition/SecurityDefinitionTable.js +27 -17
- package/lib/components/core/space/SpaceForm.js +79 -90
- package/lib/components/core/submission/DatastoreSubmissionFilters.js +39 -40
- package/lib/components/core/submission/DatastoreSubmissionTable.js +37 -34
- package/lib/components/core/submission/FormSubmissionFilters.js +79 -75
- package/lib/components/core/submission/FormSubmissionTable.js +64 -39
- package/lib/components/core/submission/KappSubmissionTable.js +67 -48
- package/lib/components/core/submission/SubmissionForm.js +126 -55
- package/lib/components/core/submission/SubmissionTable.js +24 -20
- package/lib/components/core/submission/helpers.js +37 -33
- package/lib/components/core/submission/helpers.test.js +69 -20
- package/lib/components/core/team/TeamForm.js +24 -21
- package/lib/components/core/team/TeamTable.js +27 -16
- package/lib/components/core/translation/ContextForm.js +13 -10
- package/lib/components/core/translation/ContextTable.js +13 -10
- package/lib/components/core/translation/EntryForm.js +27 -24
- package/lib/components/core/translation/EntryTable.js +19 -16
- package/lib/components/core/translation/LocaleForm.js +16 -13
- package/lib/components/core/translation/LocaleTable.js +12 -8
- package/lib/components/core/user/UserForm.js +38 -37
- package/lib/components/core/user/UserTable.js +42 -20
- package/lib/components/core/webapi/WebApiForm.js +87 -80
- package/lib/components/core/webapi/WebApiTable.js +28 -17
- package/lib/components/core/webhook/WebhookForm.js +33 -32
- package/lib/components/core/webhook/WebhookTable.js +41 -29
- package/lib/components/core/webhook_job/WebhookJobTable.js +58 -35
- package/lib/components/form/Form.helpers.js +182 -108
- package/lib/components/form/Form.js +467 -524
- package/lib/components/form/Form.models.js +39 -24
- package/lib/components/form/FormState.js +8 -5
- package/lib/components/form/KitchenSinkForm.js +135 -4
- package/lib/components/form/defaults/AttributesField.js +48 -59
- package/lib/components/form/defaults/CheckboxField.js +14 -6
- package/lib/components/form/defaults/CodeField.js +15 -7
- package/lib/components/form/defaults/FormButtons.js +12 -4
- package/lib/components/form/defaults/FormError.js +12 -4
- package/lib/components/form/defaults/FormField.js +15 -7
- package/lib/components/form/defaults/FormLayout.js +12 -4
- package/lib/components/form/defaults/FormMultiField.js +15 -7
- package/lib/components/form/defaults/PasswordField.js +14 -6
- package/lib/components/form/defaults/RadioField.js +15 -7
- package/lib/components/form/defaults/SampleTeamsRolesFIeld.js +17 -9
- package/lib/components/form/defaults/SelectField.js +16 -8
- package/lib/components/form/defaults/SelectMultiField.js +15 -7
- package/lib/components/form/defaults/TableField.js +14 -6
- package/lib/components/form/defaults/TeamField.js +15 -7
- package/lib/components/form/defaults/TeamMultiField.js +15 -7
- package/lib/components/form/defaults/TextField.js +14 -6
- package/lib/components/form/defaults/TextMultiField.js +26 -28
- package/lib/components/form/defaults/UserField.js +15 -7
- package/lib/components/form/defaults/UserMultiField.js +15 -7
- package/lib/components/form/defaults/index.js +48 -41
- package/lib/components/form/tests/Form.test.js +568 -864
- package/lib/components/form/tests/components.js +15 -25
- package/lib/components/form/tests/helpers.test.js +35 -33
- package/lib/components/index.js +1034 -135
- package/lib/components/system/SystemBackgroundTasksTable.js +14 -10
- package/lib/components/system/SystemCassandraForm.js +98 -0
- package/lib/components/system/SystemElasticSearchForm.js +98 -0
- package/lib/components/system/SystemFilestoreForm.js +36 -28
- package/lib/components/system/SystemForm.js +19 -16
- package/lib/components/system/SystemIngressForm.js +85 -36
- package/lib/components/system/SystemSecurityForm.js +17 -14
- package/lib/components/system/SystemSmtpForm.js +13 -13
- package/lib/components/system/SystemTaskAdapterForm.js +49 -21
- package/lib/components/system/SystemTrustedCertificateForm.js +40 -0
- package/lib/components/system/SystemTrustedCertificatesTable.js +74 -0
- package/lib/components/system/SystemUserForm.js +15 -14
- package/lib/components/system/helpers.js +281 -98
- package/lib/components/system/helpers.test.js +16 -12
- package/lib/components/system/spaces/SystemSpaceForm.js +25 -24
- package/lib/components/system/spaces/SystemTenantForm.js +112 -68
- package/lib/components/system/spaces/SystemTenantTable.js +12 -8
- package/lib/components/table/Table.js +295 -227
- package/lib/components/table/Table.redux.js +339 -355
- package/lib/components/table/Table.redux.test.js +49 -47
- package/lib/components/table/Table.test.js +146 -132
- package/lib/components/table/defaults/BodyCell.js +12 -6
- package/lib/components/table/defaults/BodyRow.js +10 -4
- package/lib/components/table/defaults/BooleanFilter.js +17 -11
- package/lib/components/table/defaults/ColumnControl.js +26 -0
- package/lib/components/table/defaults/EmptyBodyRow.js +12 -6
- package/lib/components/table/defaults/FilterLayout.js +17 -11
- package/lib/components/table/defaults/Footer.js +11 -5
- package/lib/components/table/defaults/FooterCell.js +10 -4
- package/lib/components/table/defaults/FooterRow.js +10 -4
- package/lib/components/table/defaults/Header.js +10 -4
- package/lib/components/table/defaults/HeaderCell.js +16 -10
- package/lib/components/table/defaults/HeaderRow.js +10 -4
- package/lib/components/table/defaults/PaginationControl.js +18 -9
- package/lib/components/table/defaults/TableBody.js +10 -4
- package/lib/components/table/defaults/TableLayout.js +12 -6
- package/lib/components/table/defaults/TextFilter.js +16 -10
- package/lib/components/table/defaults/index.js +43 -33
- package/lib/components/task/builder/Connector.js +100 -111
- package/lib/components/task/builder/ConnectorForm.js +17 -11
- package/lib/components/task/builder/Node.js +101 -83
- package/lib/components/task/builder/NodeForm.js +30 -27
- package/lib/components/task/builder/NodeParametersForm.js +27 -24
- package/lib/components/task/builder/SvgCanvas.js +67 -96
- package/lib/components/task/builder/SvgText.js +19 -134
- package/lib/components/task/builder/TaskDefinitionConfigForm.js +27 -22
- package/lib/components/task/builder/TreeBuilder.js +140 -115
- package/lib/components/task/builder/builder.redux.js +311 -326
- package/lib/components/task/builder/constants.js +94 -45
- package/lib/components/task/builder/helpers.js +184 -173
- package/lib/components/task/builder/helpers.test.js +20 -18
- package/lib/components/task/builder/models.js +121 -98
- package/lib/components/task/category/TaskCategoryForm.js +31 -29
- package/lib/components/task/category/TaskCategoryTable.js +12 -8
- package/lib/components/task/common/UsageTable.js +16 -12
- package/lib/components/task/engine/EngineSettingsForm.js +13 -11
- package/lib/components/task/errors/RunErrorTable.js +50 -27
- package/lib/components/task/errors/SystemErrorsTable.js +13 -9
- package/lib/components/task/handlers/HandlerForm.js +55 -55
- package/lib/components/task/handlers/HandlerTable.js +35 -19
- package/lib/components/task/handlers/MissingHandlerTable.js +12 -8
- package/lib/components/task/policy_rule/PolicyRuleForm.js +33 -32
- package/lib/components/task/policy_rule/PolicyRuleTable.js +12 -8
- package/lib/components/task/runs/CreateManualTriggerForm.js +17 -15
- package/lib/components/task/runs/RunTable.js +45 -29
- package/lib/components/task/runs/RunTaskTable.js +10 -6
- package/lib/components/task/sources/SourceForm.js +47 -47
- package/lib/components/task/sources/SourceTable.js +29 -18
- package/lib/components/task/triggers/TriggerTable.js +71 -41
- package/lib/components/task/workflows/LinkedWorkflowForm.js +48 -54
- package/lib/components/task/workflows/LinkedWorkflowTable.js +46 -26
- package/lib/components/task/workflows/MissingRoutineTable.js +12 -8
- package/lib/components/task/workflows/WorkflowForm.js +49 -44
- package/lib/components/task/workflows/WorkflowTable.js +47 -29
- package/lib/helpers/SearchBuilder.js +73 -127
- package/lib/helpers/SearchBuilder.test.js +184 -175
- package/lib/helpers/index.js +116 -74
- package/lib/index.js +87 -38
- package/lib/reducer.js +11 -3
- package/lib/saga.js +42 -38
- package/lib/store.js +59 -35
- package/package.json +17 -29
- package/proxyhelper.js +122 -57
- package/assets/discussions/images/avi_128.png +0 -0
- package/assets/discussions/images/excel_128.png +0 -0
- package/assets/discussions/images/html_128.png +0 -0
- package/assets/discussions/images/illustrator_128.png +0 -0
- package/assets/discussions/images/indesign_128.png +0 -0
- package/assets/discussions/images/movie_128.png +0 -0
- package/assets/discussions/images/mpeg_128.png +0 -0
- package/assets/discussions/images/pdf_128.png +0 -0
- package/assets/discussions/images/photoshop_128.png +0 -0
- package/assets/discussions/images/powerpoint_128.png +0 -0
- package/assets/discussions/images/txt_128.png +0 -0
- package/assets/discussions/images/unknown_128.png +0 -0
- package/assets/discussions/images/word_128.png +0 -0
- package/assets/discussions/styles/_discussion.scss +0 -506
- package/lib/apis/discussions/index.js +0 -395
- package/lib/apis/socket/index.js +0 -77
- package/lib/apis/socket/socket.js +0 -350
- package/lib/apis/socket/socket.test.js +0 -90
- package/lib/apis/socket/timer.js +0 -45
- package/lib/apis/socket/timer.test.js +0 -51
- package/lib/apis/socket/topic.js +0 -185
- package/lib/apis/topics/index.js +0 -19
- package/lib/components/discussions/ChatInputForm.js +0 -424
- package/lib/components/discussions/DateBanner.js +0 -10
- package/lib/components/discussions/Discussion.js +0 -202
- package/lib/components/discussions/DiscussionForm.js +0 -227
- package/lib/components/discussions/InvitationForm.js +0 -107
- package/lib/components/discussions/MessageHistory.js +0 -110
- package/lib/components/discussions/MessagesByDate.js +0 -40
- package/lib/components/discussions/MessagesList.js +0 -30
- package/lib/components/discussions/MoreMessagesBanner.js +0 -26
- package/lib/components/discussions/ScrollHelper.js +0 -84
- package/lib/components/discussions/SystemMessage.js +0 -88
- package/lib/components/discussions/SystemMessageGroup.js +0 -15
- package/lib/components/discussions/UserMessage.js +0 -163
- package/lib/components/discussions/UserMessageGroup.js +0 -34
- package/lib/components/discussions/redux.js +0 -178
- package/lib/components/discussions/sagas.js +0 -500
- package/lib/helpers/discussions/canManage.js +0 -30
- package/lib/helpers/discussions/canManage.test.js +0 -69
- package/lib/helpers/discussions/generateSystemMessageContent.js +0 -131
- package/lib/helpers/discussions/generateSystemMessageContent.test.js +0 -450
- package/lib/models/discussions.js +0 -76
- package/lib/models/index.js +0 -1
package/lib/apis/system/index.js
CHANGED
|
@@ -1,403 +1,461 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")["default"];
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.updateTenant = exports.updateSystemUser = exports.updateSystemSecurity = exports.updateSystemIngress = exports.updateSystemFilestore = exports.updateSystemDefaultTaskDbAdapter = exports.updateSystemDefaultSmtpAdapter = exports.updateSystem = exports.updateElasticSearchConfig = exports.updateCassandraConfig = exports.systemLogin = exports.rotateEncryptionKey = exports.restartResources = exports.resetSystemLicense = exports.refreshSystemToken = exports.postPlatformComponentRestart = exports.importSystemLicense = exports.fetchTrustedCertificates = exports.fetchTenants = exports.fetchTenant = exports.fetchTaskDbAdapters = exports.fetchTaskDbAdapter = exports.fetchSystemUser = exports.fetchSystemSecurity = exports.fetchSystemLicenseStats = exports.fetchSystemLicenseCheck = exports.fetchSystemLicense = exports.fetchSystemIngress = exports.fetchSystemFilestore = exports.fetchSystemDefaultTaskDbAdapter = exports.fetchSystemDefaultSmtpAdapter = exports.fetchSystemBackgroundTasks = exports.fetchSystemBackgroundTask = exports.fetchSystem = exports.fetchPlatformComponentStatus = exports.fetchNotifications = exports.fetchNotificationLabels = exports.fetchElasticSearchConfig = exports.fetchCassandraConfig = exports.deleteTrustedCertificate = exports.deleteTenant = exports.deleteSystemLicense = exports.deleteSystemBackgroundTask = exports.createTrustedCertificate = exports.createTenant = void 0;
|
|
8
|
+
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
|
9
|
+
var _axios = _interopRequireDefault(require("axios"));
|
|
10
|
+
var _http = require("../http");
|
|
11
|
+
var fetchTenants = function fetchTenants() {
|
|
5
12
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
6
13
|
// Build URL and fetch the space.
|
|
7
|
-
return
|
|
8
|
-
params: paramBuilder(options),
|
|
9
|
-
headers: headerBuilder(options)
|
|
14
|
+
return _axios["default"].get('/app/system-coordinator/api/v1/tenants', {
|
|
15
|
+
params: (0, _http.paramBuilder)(options),
|
|
16
|
+
headers: (0, _http.headerBuilder)(options)
|
|
10
17
|
}).then(function (response) {
|
|
11
18
|
return {
|
|
12
19
|
tenants: response.data.tenants,
|
|
13
20
|
nextPageToken: response.data.nextPageToken
|
|
14
21
|
};
|
|
15
|
-
})["catch"](handleErrors);
|
|
22
|
+
})["catch"](_http.handleErrors);
|
|
16
23
|
};
|
|
17
|
-
|
|
24
|
+
exports.fetchTenants = fetchTenants;
|
|
25
|
+
var fetchTenant = function fetchTenant() {
|
|
18
26
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
19
27
|
var slug = options.slug;
|
|
20
|
-
|
|
21
28
|
if (!slug) {
|
|
22
29
|
throw new Error('fetchTenant failed! The option "slug" is required.');
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
headers: headerBuilder(options)
|
|
30
|
+
}
|
|
31
|
+
// Build URL and fetch the space.
|
|
32
|
+
return _axios["default"].get("/app/system-coordinator/api/v1/tenants/".concat(slug), {
|
|
33
|
+
params: (0, _http.paramBuilder)(options),
|
|
34
|
+
headers: (0, _http.headerBuilder)(options)
|
|
29
35
|
}).then(function (response) {
|
|
30
36
|
return {
|
|
31
37
|
tenant: response.data.tenant
|
|
32
38
|
};
|
|
33
|
-
})["catch"](handleErrors);
|
|
39
|
+
})["catch"](_http.handleErrors);
|
|
34
40
|
};
|
|
35
|
-
|
|
41
|
+
exports.fetchTenant = fetchTenant;
|
|
42
|
+
var updateTenant = function updateTenant() {
|
|
36
43
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
37
44
|
var slug = options.slug,
|
|
38
|
-
|
|
39
|
-
|
|
45
|
+
tenant = options.tenant,
|
|
46
|
+
multipart = options.multipart;
|
|
40
47
|
if (!tenant) {
|
|
41
48
|
throw new Error('updateTenant failed! The option "tenant" is required.');
|
|
42
49
|
}
|
|
43
|
-
|
|
44
50
|
if (!slug) {
|
|
45
51
|
throw new Error('updateTenant failed! The option "slug" is required.');
|
|
46
52
|
}
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
headers: headerBuilder(options)
|
|
53
|
+
return _axios["default"].put("/app/system-coordinator/api/v1/tenants/".concat(slug), !multipart ? tenant : (0, _http.formDataBuilder)(tenant), {
|
|
54
|
+
params: (0, _http.paramBuilder)(options),
|
|
55
|
+
headers: (0, _http.headerBuilder)(options)
|
|
51
56
|
}).then(function (response) {
|
|
52
57
|
return {
|
|
53
58
|
tenant: response.data.tenant
|
|
54
59
|
};
|
|
55
|
-
})["catch"](handleErrors);
|
|
60
|
+
})["catch"](_http.handleErrors);
|
|
56
61
|
};
|
|
57
|
-
|
|
62
|
+
exports.updateTenant = updateTenant;
|
|
63
|
+
var createTenant = function createTenant() {
|
|
58
64
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
59
|
-
var tenant = options.tenant
|
|
60
|
-
|
|
65
|
+
var tenant = options.tenant,
|
|
66
|
+
multipart = options.multipart;
|
|
61
67
|
if (!tenant) {
|
|
62
68
|
throw new Error('createTenant failed! The option "tenant" is required.');
|
|
63
69
|
}
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
headers: headerBuilder(options)
|
|
70
|
+
return _axios["default"].post('/app/system-coordinator/api/v1/tenants', !multipart ? tenant : (0, _http.formDataBuilder)(tenant), {
|
|
71
|
+
params: (0, _http.paramBuilder)(options),
|
|
72
|
+
headers: (0, _http.headerBuilder)(options)
|
|
68
73
|
}).then(function (response) {
|
|
69
74
|
return {
|
|
70
75
|
tenant: response.data.tenant
|
|
71
76
|
};
|
|
72
|
-
})["catch"](handleErrors);
|
|
77
|
+
})["catch"](_http.handleErrors);
|
|
73
78
|
};
|
|
74
|
-
|
|
79
|
+
exports.createTenant = createTenant;
|
|
80
|
+
var deleteTenant = function deleteTenant() {
|
|
75
81
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
76
82
|
var slug = options.slug;
|
|
77
|
-
|
|
78
83
|
if (!slug) {
|
|
79
84
|
throw new Error('createTenant failed! The option "slug" is required.');
|
|
80
85
|
}
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
params: _objectSpread(_objectSpread({}, paramBuilder(options)), {}, {
|
|
86
|
+
return _axios["default"]["delete"]("/app/system-coordinator/api/v1/tenants/".concat(slug), {
|
|
87
|
+
params: (0, _objectSpread2["default"])((0, _objectSpread2["default"])({}, (0, _http.paramBuilder)(options)), {}, {
|
|
84
88
|
deleteDatabase: options.deleteDatabase || undefined
|
|
85
89
|
}),
|
|
86
|
-
headers: headerBuilder(options)
|
|
90
|
+
headers: (0, _http.headerBuilder)(options)
|
|
87
91
|
}).then(function (response) {
|
|
88
92
|
return {
|
|
89
93
|
tenant: response.data.tenant
|
|
90
94
|
};
|
|
91
|
-
})["catch"](handleErrors);
|
|
95
|
+
})["catch"](_http.handleErrors);
|
|
92
96
|
};
|
|
93
|
-
|
|
97
|
+
exports.deleteTenant = deleteTenant;
|
|
98
|
+
var fetchSystem = function fetchSystem() {
|
|
94
99
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
95
100
|
// Build URL and fetch the system config.
|
|
96
|
-
return
|
|
97
|
-
params: paramBuilder(options),
|
|
98
|
-
headers: headerBuilder(options)
|
|
101
|
+
return _axios["default"].get('/app/system-coordinator/components/core/app/api/v1/config', {
|
|
102
|
+
params: (0, _http.paramBuilder)(options),
|
|
103
|
+
headers: (0, _http.headerBuilder)(options)
|
|
99
104
|
}).then(function (response) {
|
|
100
105
|
return {
|
|
101
106
|
system: response.data
|
|
102
107
|
};
|
|
103
|
-
})["catch"](handleErrors);
|
|
108
|
+
})["catch"](_http.handleErrors);
|
|
104
109
|
};
|
|
105
|
-
|
|
110
|
+
exports.fetchSystem = fetchSystem;
|
|
111
|
+
var updateSystem = function updateSystem() {
|
|
106
112
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
107
113
|
var system = options.system;
|
|
108
|
-
|
|
109
114
|
if (!system) {
|
|
110
115
|
throw new Error('updateSystem failed! The option "system" is required.');
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
headers: headerBuilder(options)
|
|
116
|
+
}
|
|
117
|
+
// Build URL and fetch the system config.
|
|
118
|
+
return _axios["default"].put('/app/system-coordinator/components/core/app/api/v1/config', system, {
|
|
119
|
+
params: (0, _http.paramBuilder)(options),
|
|
120
|
+
headers: (0, _http.headerBuilder)(options)
|
|
117
121
|
}).then(function (response) {
|
|
118
122
|
return {
|
|
119
123
|
system: response.data
|
|
120
124
|
};
|
|
121
|
-
})["catch"](handleErrors);
|
|
125
|
+
})["catch"](_http.handleErrors);
|
|
122
126
|
};
|
|
123
|
-
|
|
127
|
+
exports.updateSystem = updateSystem;
|
|
128
|
+
var fetchSystemUser = function fetchSystemUser() {
|
|
124
129
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
125
130
|
// Build URL and fetch the space.
|
|
126
|
-
return
|
|
127
|
-
params: paramBuilder(options),
|
|
128
|
-
headers: headerBuilder(options)
|
|
131
|
+
return _axios["default"].get('/app/system-coordinator/api/v1/platform/system-user', {
|
|
132
|
+
params: (0, _http.paramBuilder)(options),
|
|
133
|
+
headers: (0, _http.headerBuilder)(options)
|
|
129
134
|
}).then(function (response) {
|
|
130
135
|
return {
|
|
131
136
|
user: response.data
|
|
132
137
|
};
|
|
133
|
-
})["catch"](handleErrors);
|
|
138
|
+
})["catch"](_http.handleErrors);
|
|
134
139
|
};
|
|
135
|
-
|
|
140
|
+
exports.fetchSystemUser = fetchSystemUser;
|
|
141
|
+
var updateSystemUser = function updateSystemUser() {
|
|
136
142
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
137
143
|
var user = options.user;
|
|
138
|
-
|
|
139
144
|
if (!user) {
|
|
140
145
|
throw new Error('updateSystemUser failed! The option "user" is required.');
|
|
141
146
|
}
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
headers: headerBuilder(options)
|
|
147
|
+
return _axios["default"].put('/app/system-coordinator/api/v1/platform/system-user', user, {
|
|
148
|
+
params: (0, _http.paramBuilder)(options),
|
|
149
|
+
headers: (0, _http.headerBuilder)(options)
|
|
146
150
|
}).then(function (response) {
|
|
147
151
|
return {
|
|
148
152
|
user: response.data
|
|
149
153
|
};
|
|
150
|
-
})["catch"](handleErrors);
|
|
154
|
+
})["catch"](_http.handleErrors);
|
|
151
155
|
};
|
|
152
|
-
|
|
156
|
+
exports.updateSystemUser = updateSystemUser;
|
|
157
|
+
var fetchSystemIngress = function fetchSystemIngress() {
|
|
153
158
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
headers: headerBuilder(options)
|
|
159
|
+
return _axios["default"].get('/app/system-coordinator/api/v1/platform/ingress', {
|
|
160
|
+
params: (0, _http.paramBuilder)(options),
|
|
161
|
+
headers: (0, _http.headerBuilder)(options)
|
|
158
162
|
}).then(function (response) {
|
|
159
163
|
return {
|
|
160
|
-
ingress: response.data
|
|
164
|
+
ingress: response.data.ingress
|
|
161
165
|
};
|
|
162
|
-
})["catch"](handleErrors);
|
|
166
|
+
})["catch"](_http.handleErrors);
|
|
163
167
|
};
|
|
164
|
-
|
|
168
|
+
exports.fetchSystemIngress = fetchSystemIngress;
|
|
169
|
+
var updateSystemIngress = function updateSystemIngress() {
|
|
170
|
+
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
171
|
+
var ingress = options.ingress,
|
|
172
|
+
multipart = options.multipart;
|
|
173
|
+
return _axios["default"].put('/app/system-coordinator/api/v1/platform/ingress', !multipart ? ingress : (0, _http.formDataBuilder)(ingress), {
|
|
174
|
+
params: (0, _http.paramBuilder)(options),
|
|
175
|
+
headers: (0, _http.headerBuilder)(options)
|
|
176
|
+
}).then(function (response) {
|
|
177
|
+
return {
|
|
178
|
+
ingress: response.data.ingress
|
|
179
|
+
};
|
|
180
|
+
})["catch"](_http.handleErrors);
|
|
181
|
+
};
|
|
182
|
+
exports.updateSystemIngress = updateSystemIngress;
|
|
183
|
+
var fetchTaskDbAdapters = function fetchTaskDbAdapters() {
|
|
165
184
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
166
185
|
// Build URL and fetch the space.
|
|
167
|
-
return
|
|
168
|
-
params: paramBuilder(options),
|
|
169
|
-
headers: headerBuilder(options)
|
|
186
|
+
return _axios["default"].get("/app/system-coordinator/api/v1/meta/task-db-adapters", {
|
|
187
|
+
params: (0, _http.paramBuilder)(options),
|
|
188
|
+
headers: (0, _http.headerBuilder)(options)
|
|
170
189
|
}).then(function (response) {
|
|
171
190
|
return response.data;
|
|
172
|
-
})
|
|
173
|
-
|
|
191
|
+
})
|
|
192
|
+
// .then(response => ({ space: response.data.space }))
|
|
193
|
+
["catch"](_http.handleErrors);
|
|
174
194
|
};
|
|
175
|
-
|
|
195
|
+
exports.fetchTaskDbAdapters = fetchTaskDbAdapters;
|
|
196
|
+
var fetchTaskDbAdapter = function fetchTaskDbAdapter() {
|
|
176
197
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
177
198
|
// Build URL and fetch the space.
|
|
178
|
-
return
|
|
179
|
-
params: paramBuilder(options),
|
|
180
|
-
headers: headerBuilder(options)
|
|
199
|
+
return _axios["default"].get("/app/system-coordinator/api/v1/meta/task-db-adapters/".concat(options.type), {
|
|
200
|
+
params: (0, _http.paramBuilder)(options),
|
|
201
|
+
headers: (0, _http.headerBuilder)(options)
|
|
181
202
|
}).then(function (response) {
|
|
182
203
|
return {
|
|
183
204
|
adapter: response.data.adapter
|
|
184
205
|
};
|
|
185
|
-
})["catch"](handleErrors);
|
|
206
|
+
})["catch"](_http.handleErrors);
|
|
186
207
|
};
|
|
187
|
-
|
|
208
|
+
exports.fetchTaskDbAdapter = fetchTaskDbAdapter;
|
|
209
|
+
var fetchSystemDefaultTaskDbAdapter = function fetchSystemDefaultTaskDbAdapter() {
|
|
188
210
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
189
211
|
// Build URL and fetch the space.
|
|
190
|
-
return
|
|
191
|
-
params: paramBuilder(options),
|
|
192
|
-
headers: headerBuilder(options)
|
|
212
|
+
return _axios["default"].get("/app/system-coordinator/api/v1/platform/default-task-db-adapter", {
|
|
213
|
+
params: (0, _http.paramBuilder)(options),
|
|
214
|
+
headers: (0, _http.headerBuilder)(options)
|
|
193
215
|
}).then(function (response) {
|
|
194
216
|
return {
|
|
195
217
|
adapter: response.data.adapter
|
|
196
218
|
};
|
|
197
|
-
})["catch"](handleErrors);
|
|
219
|
+
})["catch"](_http.handleErrors);
|
|
198
220
|
};
|
|
199
|
-
|
|
221
|
+
exports.fetchSystemDefaultTaskDbAdapter = fetchSystemDefaultTaskDbAdapter;
|
|
222
|
+
var updateSystemDefaultTaskDbAdapter = function updateSystemDefaultTaskDbAdapter() {
|
|
200
223
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
201
|
-
var adapter = options.adapter
|
|
202
|
-
|
|
224
|
+
var adapter = options.adapter,
|
|
225
|
+
multipart = options.multipart;
|
|
203
226
|
if (!adapter) {
|
|
204
227
|
throw new Error('updateSystemDefaultTaskDbAdapter failed! The option "adapter" is required.');
|
|
205
228
|
}
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
headers: headerBuilder(options)
|
|
229
|
+
return _axios["default"].put("/app/system-coordinator/api/v1/platform/default-task-db-adapter", !multipart ? adapter : (0, _http.formDataBuilder)(adapter), {
|
|
230
|
+
params: (0, _http.paramBuilder)(options),
|
|
231
|
+
headers: (0, _http.headerBuilder)(options)
|
|
210
232
|
}).then(function (response) {
|
|
211
233
|
return {
|
|
212
234
|
adapter: response.data.adapter
|
|
213
235
|
};
|
|
214
|
-
})["catch"](handleErrors);
|
|
236
|
+
})["catch"](_http.handleErrors);
|
|
215
237
|
};
|
|
216
|
-
|
|
238
|
+
exports.updateSystemDefaultTaskDbAdapter = updateSystemDefaultTaskDbAdapter;
|
|
239
|
+
var fetchSystemDefaultSmtpAdapter = function fetchSystemDefaultSmtpAdapter() {
|
|
217
240
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
218
241
|
// Build URL and fetch the space.
|
|
219
|
-
return
|
|
220
|
-
params: paramBuilder(options),
|
|
221
|
-
headers: headerBuilder(options)
|
|
242
|
+
return _axios["default"].get('/app/system-coordinator/api/v1/platform/default-smtp-adapter', {
|
|
243
|
+
params: (0, _http.paramBuilder)(options),
|
|
244
|
+
headers: (0, _http.headerBuilder)(options)
|
|
222
245
|
}).then(function (response) {
|
|
223
246
|
return {
|
|
224
247
|
adapter: response.data.adapter
|
|
225
248
|
};
|
|
226
|
-
})["catch"](handleErrors);
|
|
249
|
+
})["catch"](_http.handleErrors);
|
|
227
250
|
};
|
|
228
|
-
|
|
251
|
+
exports.fetchSystemDefaultSmtpAdapter = fetchSystemDefaultSmtpAdapter;
|
|
252
|
+
var updateSystemDefaultSmtpAdapter = function updateSystemDefaultSmtpAdapter() {
|
|
229
253
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
230
254
|
var adapter = options.adapter;
|
|
231
|
-
|
|
232
255
|
if (!adapter) {
|
|
233
256
|
throw new Error('updateSystemDefaultSmtpAdapter failed! The option "adapter" is required.');
|
|
234
257
|
}
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
headers: headerBuilder(options)
|
|
258
|
+
return _axios["default"].put('/app/system-coordinator/api/v1/platform/default-smtp-adapter', adapter, {
|
|
259
|
+
params: (0, _http.paramBuilder)(options),
|
|
260
|
+
headers: (0, _http.headerBuilder)(options)
|
|
239
261
|
}).then(function (response) {
|
|
240
262
|
return {
|
|
241
263
|
adapter: response.data.adapter
|
|
242
264
|
};
|
|
243
|
-
})["catch"](handleErrors);
|
|
265
|
+
})["catch"](_http.handleErrors);
|
|
244
266
|
};
|
|
245
|
-
|
|
267
|
+
exports.updateSystemDefaultSmtpAdapter = updateSystemDefaultSmtpAdapter;
|
|
268
|
+
var fetchSystemFilestore = function fetchSystemFilestore() {
|
|
246
269
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
247
270
|
// Build URL and fetch the space.
|
|
248
|
-
return
|
|
249
|
-
params: paramBuilder(options),
|
|
250
|
-
headers: headerBuilder(options)
|
|
271
|
+
return _axios["default"].get('/app/system-coordinator/components/agent/app/api/v1/spaces/SYSTEM/filestores/system', {
|
|
272
|
+
params: (0, _http.paramBuilder)(options),
|
|
273
|
+
headers: (0, _http.headerBuilder)(options)
|
|
251
274
|
}).then(function (response) {
|
|
252
275
|
return response.data;
|
|
253
|
-
})["catch"](handleErrors);
|
|
276
|
+
})["catch"](_http.handleErrors);
|
|
254
277
|
};
|
|
255
|
-
|
|
278
|
+
exports.fetchSystemFilestore = fetchSystemFilestore;
|
|
279
|
+
var updateSystemFilestore = function updateSystemFilestore() {
|
|
256
280
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
257
281
|
var filestore = options.filestore;
|
|
258
|
-
|
|
259
282
|
if (!filestore) {
|
|
260
283
|
throw new Error('updateSystemFilestore failed! The option "adapter" is required.');
|
|
261
284
|
}
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
headers: headerBuilder(options)
|
|
285
|
+
return _axios["default"].put('/app/system-coordinator/components/agent/app/api/v1/spaces/SYSTEM/filestores/system', filestore, {
|
|
286
|
+
params: (0, _http.paramBuilder)(options),
|
|
287
|
+
headers: (0, _http.headerBuilder)(options)
|
|
266
288
|
}).then(function (response) {
|
|
267
289
|
return {
|
|
268
290
|
filestore: response.data.filestore
|
|
269
291
|
};
|
|
270
|
-
})["catch"](handleErrors);
|
|
292
|
+
})["catch"](_http.handleErrors);
|
|
271
293
|
};
|
|
272
|
-
|
|
273
|
-
|
|
294
|
+
exports.updateSystemFilestore = updateSystemFilestore;
|
|
295
|
+
var VALID_RESTARTABLE_COMPONENTS = ['agent', 'core', 'loghub', 'indexer'];
|
|
296
|
+
var postPlatformComponentRestart = function postPlatformComponentRestart() {
|
|
274
297
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
275
|
-
|
|
276
298
|
if (!options.component || !VALID_RESTARTABLE_COMPONENTS.includes(options.component)) {
|
|
277
299
|
throw new Error('postPlatformComponentRestart failed! The "component" option was missing or invalid.');
|
|
278
300
|
}
|
|
279
|
-
|
|
280
|
-
return axios.post("/app/system-coordinator/api/v1/platform/components/".concat(options.component, "/restart")).then(function (_ref) {
|
|
301
|
+
return _axios["default"].post("/app/system-coordinator/api/v1/platform/components/".concat(options.component, "/restart")).then(function (_ref) {
|
|
281
302
|
var data = _ref.data;
|
|
282
303
|
return {
|
|
283
304
|
component: data.component,
|
|
284
305
|
message: data.message
|
|
285
306
|
};
|
|
286
|
-
})["catch"](handleErrors);
|
|
307
|
+
})["catch"](_http.handleErrors);
|
|
287
308
|
};
|
|
288
|
-
|
|
309
|
+
exports.postPlatformComponentRestart = postPlatformComponentRestart;
|
|
310
|
+
var fetchPlatformComponentStatus = function fetchPlatformComponentStatus() {
|
|
289
311
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
290
|
-
return
|
|
312
|
+
return _axios["default"].get('/app/system-coordinator/api/v1/platform/components').then(function (_ref2) {
|
|
291
313
|
var data = _ref2.data;
|
|
292
314
|
return {
|
|
293
315
|
components: data.components
|
|
294
316
|
};
|
|
295
|
-
})["catch"](handleErrors);
|
|
317
|
+
})["catch"](_http.handleErrors);
|
|
296
318
|
};
|
|
297
|
-
|
|
319
|
+
exports.fetchPlatformComponentStatus = fetchPlatformComponentStatus;
|
|
320
|
+
var systemLogin = function systemLogin() {
|
|
298
321
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
299
322
|
var username = options.username,
|
|
300
|
-
|
|
301
|
-
return
|
|
323
|
+
password = options.password;
|
|
324
|
+
return _axios["default"].post('/app/system-coordinator/login', {
|
|
302
325
|
username: username,
|
|
303
326
|
password: password
|
|
304
327
|
}, {}).then(function (response) {
|
|
305
328
|
return response.data;
|
|
306
|
-
})["catch"](handleErrors);
|
|
329
|
+
})["catch"](_http.handleErrors);
|
|
307
330
|
};
|
|
308
|
-
|
|
331
|
+
exports.systemLogin = systemLogin;
|
|
332
|
+
var refreshSystemToken = function refreshSystemToken() {
|
|
309
333
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
310
|
-
return
|
|
311
|
-
params: paramBuilder(options),
|
|
312
|
-
headers: headerBuilder(options)
|
|
334
|
+
return _axios["default"].post('/app/system-coordinator/refresh', {}, {
|
|
335
|
+
params: (0, _http.paramBuilder)(options),
|
|
336
|
+
headers: (0, _http.headerBuilder)(options)
|
|
313
337
|
}).then(function (response) {
|
|
314
338
|
return response.data;
|
|
315
|
-
})["catch"](handleErrors);
|
|
339
|
+
})["catch"](_http.handleErrors);
|
|
340
|
+
};
|
|
341
|
+
exports.refreshSystemToken = refreshSystemToken;
|
|
342
|
+
var fetchCassandraConfig = function fetchCassandraConfig() {
|
|
343
|
+
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
344
|
+
return _axios["default"].get('/app/system-coordinator/api/v1/platform/cassandra', {}, {
|
|
345
|
+
params: (0, _http.paramBuilder)(options),
|
|
346
|
+
headers: (0, _http.headerBuilder)(options)
|
|
347
|
+
}).then(function (response) {
|
|
348
|
+
return {
|
|
349
|
+
adapter: response.data.adapter
|
|
350
|
+
};
|
|
351
|
+
})["catch"](_http.handleErrors);
|
|
352
|
+
};
|
|
353
|
+
exports.fetchCassandraConfig = fetchCassandraConfig;
|
|
354
|
+
var updateCassandraConfig = function updateCassandraConfig() {
|
|
355
|
+
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
356
|
+
var adapter = options.adapter,
|
|
357
|
+
multipart = options.multipart;
|
|
358
|
+
return _axios["default"].put('/app/system-coordinator/api/v1/platform/cassandra', !multipart ? adapter : (0, _http.formDataBuilder)(adapter), {
|
|
359
|
+
params: (0, _http.paramBuilder)(options),
|
|
360
|
+
headers: (0, _http.headerBuilder)(options)
|
|
361
|
+
}).then(function (response) {
|
|
362
|
+
return {
|
|
363
|
+
adapter: response.data.adapter
|
|
364
|
+
};
|
|
365
|
+
})["catch"](_http.handleErrors);
|
|
316
366
|
};
|
|
317
|
-
|
|
367
|
+
exports.updateCassandraConfig = updateCassandraConfig;
|
|
368
|
+
var fetchElasticSearchConfig = function fetchElasticSearchConfig() {
|
|
318
369
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
319
|
-
return
|
|
320
|
-
params: paramBuilder(options),
|
|
321
|
-
headers: headerBuilder(options)
|
|
370
|
+
return _axios["default"].get('/app/system-coordinator/api/v1/platform/elasticsearch', {}, {
|
|
371
|
+
params: (0, _http.paramBuilder)(options),
|
|
372
|
+
headers: (0, _http.headerBuilder)(options)
|
|
322
373
|
}).then(function (response) {
|
|
323
374
|
return {
|
|
324
375
|
adapter: response.data.adapter
|
|
325
376
|
};
|
|
326
|
-
})["catch"](handleErrors);
|
|
377
|
+
})["catch"](_http.handleErrors);
|
|
327
378
|
};
|
|
328
|
-
|
|
379
|
+
exports.fetchElasticSearchConfig = fetchElasticSearchConfig;
|
|
380
|
+
var updateElasticSearchConfig = function updateElasticSearchConfig() {
|
|
329
381
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
382
|
+
var adapter = options.adapter,
|
|
383
|
+
multipart = options.multipart;
|
|
384
|
+
return _axios["default"].put('/app/system-coordinator/api/v1/platform/elasticsearch', !multipart ? adapter : (0, _http.formDataBuilder)(adapter), {
|
|
385
|
+
params: (0, _http.paramBuilder)(options),
|
|
386
|
+
headers: (0, _http.headerBuilder)(options)
|
|
333
387
|
}).then(function (response) {
|
|
334
388
|
return {
|
|
335
389
|
adapter: response.data.adapter
|
|
336
390
|
};
|
|
337
|
-
})["catch"](handleErrors);
|
|
391
|
+
})["catch"](_http.handleErrors);
|
|
338
392
|
};
|
|
339
|
-
|
|
393
|
+
exports.updateElasticSearchConfig = updateElasticSearchConfig;
|
|
394
|
+
var fetchSystemSecurity = function fetchSystemSecurity() {
|
|
340
395
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
341
|
-
return
|
|
342
|
-
params: paramBuilder(options),
|
|
343
|
-
headers: headerBuilder(options)
|
|
396
|
+
return _axios["default"].get('/app/system-coordinator/api/v1/platform/system-security', {}, {
|
|
397
|
+
params: (0, _http.paramBuilder)(options),
|
|
398
|
+
headers: (0, _http.headerBuilder)(options)
|
|
344
399
|
}).then(function (response) {
|
|
345
400
|
return {
|
|
346
401
|
systemSecurity: response.data
|
|
347
402
|
};
|
|
348
|
-
})["catch"](handleErrors);
|
|
403
|
+
})["catch"](_http.handleErrors);
|
|
349
404
|
};
|
|
350
|
-
|
|
405
|
+
exports.fetchSystemSecurity = fetchSystemSecurity;
|
|
406
|
+
var updateSystemSecurity = function updateSystemSecurity() {
|
|
351
407
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
352
408
|
var systemSecurity = options.systemSecurity;
|
|
353
|
-
|
|
354
409
|
if (!systemSecurity) {
|
|
355
410
|
throw new Error('updateSystemSecurity failed! The option "systemSecurity" is required.');
|
|
356
411
|
}
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
headers: headerBuilder(options)
|
|
412
|
+
return _axios["default"].put("/app/system-coordinator/api/v1/platform/system-security", systemSecurity, {
|
|
413
|
+
params: (0, _http.paramBuilder)(options),
|
|
414
|
+
headers: (0, _http.headerBuilder)(options)
|
|
361
415
|
}).then(function (response) {
|
|
362
416
|
return {
|
|
363
417
|
systemSecurity: response.data
|
|
364
418
|
};
|
|
365
|
-
})["catch"](handleErrors);
|
|
419
|
+
})["catch"](_http.handleErrors);
|
|
366
420
|
};
|
|
367
|
-
|
|
421
|
+
exports.updateSystemSecurity = updateSystemSecurity;
|
|
422
|
+
var fetchSystemLicense = function fetchSystemLicense() {
|
|
368
423
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
369
|
-
return
|
|
370
|
-
params: paramBuilder(options),
|
|
371
|
-
headers: headerBuilder(options)
|
|
424
|
+
return _axios["default"].get('/app/system-coordinator/components/core/app/api/v1/license', {
|
|
425
|
+
params: (0, _http.paramBuilder)(options),
|
|
426
|
+
headers: (0, _http.headerBuilder)(options)
|
|
372
427
|
}).then(function (response) {
|
|
373
428
|
return {
|
|
374
429
|
system: response.data
|
|
375
430
|
};
|
|
376
|
-
})["catch"](handleErrors);
|
|
431
|
+
})["catch"](_http.handleErrors);
|
|
377
432
|
};
|
|
378
|
-
|
|
433
|
+
exports.fetchSystemLicense = fetchSystemLicense;
|
|
434
|
+
var deleteSystemLicense = function deleteSystemLicense() {
|
|
379
435
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
380
|
-
return
|
|
381
|
-
params: paramBuilder(options),
|
|
382
|
-
headers: headerBuilder(options)
|
|
436
|
+
return _axios["default"]["delete"]('/app/system-coordinator/components/core/app/api/v1/license', {
|
|
437
|
+
params: (0, _http.paramBuilder)(options),
|
|
438
|
+
headers: (0, _http.headerBuilder)(options)
|
|
383
439
|
}).then(function (response) {
|
|
384
440
|
return {
|
|
385
441
|
system: response.data
|
|
386
442
|
};
|
|
387
|
-
})["catch"](handleErrors);
|
|
443
|
+
})["catch"](_http.handleErrors);
|
|
388
444
|
};
|
|
389
|
-
|
|
445
|
+
exports.deleteSystemLicense = deleteSystemLicense;
|
|
446
|
+
var resetSystemLicense = function resetSystemLicense() {
|
|
390
447
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
391
|
-
return
|
|
392
|
-
params: paramBuilder(options),
|
|
393
|
-
headers: headerBuilder(options)
|
|
448
|
+
return _axios["default"].put('/app/system-coordinator/components/core/app/api/v1/license/reset', {
|
|
449
|
+
params: (0, _http.paramBuilder)(options),
|
|
450
|
+
headers: (0, _http.headerBuilder)(options)
|
|
394
451
|
}).then(function (response) {
|
|
395
452
|
return {
|
|
396
453
|
system: response.data
|
|
397
454
|
};
|
|
398
|
-
})["catch"](handleErrors);
|
|
455
|
+
})["catch"](_http.handleErrors);
|
|
399
456
|
};
|
|
400
|
-
|
|
457
|
+
exports.resetSystemLicense = resetSystemLicense;
|
|
458
|
+
var importSystemLicense = function importSystemLicense() {
|
|
401
459
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
402
460
|
var content = options.content;
|
|
403
461
|
var data = new FormData();
|
|
@@ -405,90 +463,180 @@ export var importSystemLicense = function importSystemLicense() {
|
|
|
405
463
|
var headers = {
|
|
406
464
|
'Content-Type': 'multipart/form-data'
|
|
407
465
|
};
|
|
408
|
-
return
|
|
466
|
+
return _axios["default"].post('/app/system-coordinator/components/core/app/api/v1/license', data, {
|
|
409
467
|
headers: headers
|
|
410
468
|
}).then(function (response) {
|
|
411
469
|
return {
|
|
412
470
|
system: response.data
|
|
413
471
|
};
|
|
414
|
-
})["catch"](handleErrors);
|
|
472
|
+
})["catch"](_http.handleErrors);
|
|
415
473
|
};
|
|
416
|
-
|
|
474
|
+
exports.importSystemLicense = importSystemLicense;
|
|
475
|
+
var fetchSystemLicenseStats = function fetchSystemLicenseStats() {
|
|
417
476
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
418
|
-
return
|
|
419
|
-
params: paramBuilder(options),
|
|
420
|
-
headers: headerBuilder(options)
|
|
477
|
+
return _axios["default"].get('/app/system-coordinator/components/core/app/api/v1/license/statistics', {
|
|
478
|
+
params: (0, _http.paramBuilder)(options),
|
|
479
|
+
headers: (0, _http.headerBuilder)(options)
|
|
421
480
|
}).then(function (response) {
|
|
422
481
|
return {
|
|
423
482
|
system: response.data
|
|
424
483
|
};
|
|
425
|
-
})["catch"](handleErrors);
|
|
484
|
+
})["catch"](_http.handleErrors);
|
|
426
485
|
};
|
|
427
|
-
|
|
486
|
+
exports.fetchSystemLicenseStats = fetchSystemLicenseStats;
|
|
487
|
+
var fetchSystemLicenseCheck = function fetchSystemLicenseCheck() {
|
|
428
488
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
429
|
-
return
|
|
430
|
-
params: paramBuilder(options),
|
|
431
|
-
headers: headerBuilder(options)
|
|
489
|
+
return _axios["default"].get('/app/system-coordinator/components/core/app/api/v1/license/check', {
|
|
490
|
+
params: (0, _http.paramBuilder)(options),
|
|
491
|
+
headers: (0, _http.headerBuilder)(options)
|
|
432
492
|
}).then(function (response) {
|
|
433
493
|
return {
|
|
434
494
|
system: response.data
|
|
435
495
|
};
|
|
436
|
-
})["catch"](handleErrors);
|
|
496
|
+
})["catch"](_http.handleErrors);
|
|
437
497
|
};
|
|
438
|
-
|
|
498
|
+
exports.fetchSystemLicenseCheck = fetchSystemLicenseCheck;
|
|
499
|
+
var fetchSystemBackgroundTasks = function fetchSystemBackgroundTasks() {
|
|
439
500
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
440
|
-
return
|
|
441
|
-
params: paramBuilder(options),
|
|
442
|
-
headers: headerBuilder(options)
|
|
501
|
+
return _axios["default"].get('/app/system-coordinator/api/v1/backgroundTasks', {
|
|
502
|
+
params: (0, _http.paramBuilder)(options),
|
|
503
|
+
headers: (0, _http.headerBuilder)(options)
|
|
443
504
|
}).then(function (response) {
|
|
444
505
|
return {
|
|
445
506
|
backgroundTasks: response.data.backgroundTasks
|
|
446
507
|
};
|
|
447
|
-
})["catch"](handleErrors);
|
|
508
|
+
})["catch"](_http.handleErrors);
|
|
448
509
|
};
|
|
449
|
-
|
|
510
|
+
exports.fetchSystemBackgroundTasks = fetchSystemBackgroundTasks;
|
|
511
|
+
var fetchSystemBackgroundTask = function fetchSystemBackgroundTask() {
|
|
450
512
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
451
513
|
var id = options.id;
|
|
452
|
-
|
|
453
514
|
if (!id) {
|
|
454
515
|
throw new Error('fetchSystemBackgroundTask failed! The option "id" is required.');
|
|
455
516
|
}
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
headers: headerBuilder(options)
|
|
517
|
+
return _axios["default"].get("/app/system-coordinator/api/v1/backgroundTasks/".concat(id), {
|
|
518
|
+
params: (0, _http.paramBuilder)(options),
|
|
519
|
+
headers: (0, _http.headerBuilder)(options)
|
|
460
520
|
}).then(function (response) {
|
|
461
521
|
return {
|
|
462
522
|
backgroundTask: response.data.backgroundTask
|
|
463
523
|
};
|
|
464
|
-
})["catch"](handleErrors);
|
|
524
|
+
})["catch"](_http.handleErrors);
|
|
465
525
|
};
|
|
466
|
-
|
|
526
|
+
exports.fetchSystemBackgroundTask = fetchSystemBackgroundTask;
|
|
527
|
+
var deleteSystemBackgroundTask = function deleteSystemBackgroundTask() {
|
|
467
528
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
468
529
|
var id = options.id;
|
|
469
|
-
|
|
470
530
|
if (!id) {
|
|
471
531
|
throw new Error('deleteSystemBackgroundTask failed! The option "id" is required.');
|
|
472
532
|
}
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
headers: headerBuilder(options)
|
|
533
|
+
return _axios["default"]["delete"]("/app/system-coordinator/api/v1/backgroundTasks/".concat(id), {
|
|
534
|
+
params: (0, _http.paramBuilder)(options),
|
|
535
|
+
headers: (0, _http.headerBuilder)(options)
|
|
477
536
|
}).then(function (response) {
|
|
478
537
|
return {
|
|
479
538
|
backgroundTask: response.data.backgroundTask
|
|
480
539
|
};
|
|
481
|
-
})["catch"](handleErrors);
|
|
540
|
+
})["catch"](_http.handleErrors);
|
|
482
541
|
};
|
|
483
|
-
|
|
542
|
+
exports.deleteSystemBackgroundTask = deleteSystemBackgroundTask;
|
|
543
|
+
var rotateEncryptionKey = function rotateEncryptionKey() {
|
|
484
544
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
485
545
|
var spaceSlug = options.spaceSlug;
|
|
486
|
-
return
|
|
487
|
-
params: paramBuilder(options),
|
|
488
|
-
headers: headerBuilder(options)
|
|
546
|
+
return _axios["default"].post(spaceSlug ? "/app/system-coordinator/api/v1/tenants/".concat(spaceSlug, "/rotateEncryptionKey") : '/app/system-coordinator/api/v1/platform/rotateEncryptionKey', {}, {
|
|
547
|
+
params: (0, _http.paramBuilder)(options),
|
|
548
|
+
headers: (0, _http.headerBuilder)(options)
|
|
489
549
|
}).then(function (response) {
|
|
490
550
|
return {
|
|
491
551
|
system: response.data
|
|
492
552
|
};
|
|
493
|
-
})["catch"](handleErrors);
|
|
494
|
-
};
|
|
553
|
+
})["catch"](_http.handleErrors);
|
|
554
|
+
};
|
|
555
|
+
exports.rotateEncryptionKey = rotateEncryptionKey;
|
|
556
|
+
var fetchTrustedCertificates = function fetchTrustedCertificates() {
|
|
557
|
+
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
558
|
+
var spaceSlug = options.spaceSlug;
|
|
559
|
+
return _axios["default"].get(spaceSlug ? "/app/system-coordinator/api/v1/tenants/".concat(spaceSlug, "/trusted") : '/app/system-coordinator/api/v1/platform/trusted', {
|
|
560
|
+
params: (0, _http.paramBuilder)(options),
|
|
561
|
+
headers: (0, _http.headerBuilder)(options)
|
|
562
|
+
}).then(function (response) {
|
|
563
|
+
return {
|
|
564
|
+
trustedCertificates: response.data.trustedCertificates
|
|
565
|
+
};
|
|
566
|
+
})["catch"](_http.handleErrors);
|
|
567
|
+
};
|
|
568
|
+
exports.fetchTrustedCertificates = fetchTrustedCertificates;
|
|
569
|
+
var createTrustedCertificate = function createTrustedCertificate() {
|
|
570
|
+
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
571
|
+
var spaceSlug = options.spaceSlug,
|
|
572
|
+
certificates = options.certificates;
|
|
573
|
+
if (!certificates) {
|
|
574
|
+
throw new Error('createTenant failed! The option "certificates" is required.');
|
|
575
|
+
}
|
|
576
|
+
return _axios["default"].post(spaceSlug ? "/app/system-coordinator/api/v1/tenants/".concat(spaceSlug, "/trusted") : '/app/system-coordinator/api/v1/platform/trusted', (0, _http.formDataBuilder)({
|
|
577
|
+
certificates: certificates
|
|
578
|
+
}), {
|
|
579
|
+
params: (0, _http.paramBuilder)(options),
|
|
580
|
+
headers: (0, _http.headerBuilder)(options)
|
|
581
|
+
}).then(function (response) {
|
|
582
|
+
return {
|
|
583
|
+
trustedCertificates: response.data.trustedCertificates
|
|
584
|
+
};
|
|
585
|
+
})["catch"](_http.handleErrors);
|
|
586
|
+
};
|
|
587
|
+
exports.createTrustedCertificate = createTrustedCertificate;
|
|
588
|
+
var deleteTrustedCertificate = function deleteTrustedCertificate() {
|
|
589
|
+
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
590
|
+
var spaceSlug = options.spaceSlug,
|
|
591
|
+
fingerprint = options.fingerprint;
|
|
592
|
+
if (!fingerprint) {
|
|
593
|
+
throw new Error('createTenant failed! The option "fingerprint" is required.');
|
|
594
|
+
}
|
|
595
|
+
return _axios["default"]["delete"](spaceSlug ? "/app/system-coordinator/api/v1/tenants/".concat(spaceSlug, "/trusted/").concat(fingerprint) : "/app/system-coordinator/api/v1/platform/trusted/".concat(fingerprint), {
|
|
596
|
+
params: (0, _http.paramBuilder)(options),
|
|
597
|
+
headers: (0, _http.headerBuilder)(options)
|
|
598
|
+
}).then(function (response) {
|
|
599
|
+
return {
|
|
600
|
+
trustedCertificates: response.data.trustedCertificates
|
|
601
|
+
};
|
|
602
|
+
})["catch"](_http.handleErrors);
|
|
603
|
+
};
|
|
604
|
+
exports.deleteTrustedCertificate = deleteTrustedCertificate;
|
|
605
|
+
var fetchNotifications = function fetchNotifications() {
|
|
606
|
+
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
607
|
+
return _axios["default"].get('/app/system-coordinator/api/v1/platform/notifications', {
|
|
608
|
+
params: (0, _http.paramBuilder)(options),
|
|
609
|
+
headers: (0, _http.headerBuilder)(options)
|
|
610
|
+
}).then(function (response) {
|
|
611
|
+
return {
|
|
612
|
+
notifications: response.data
|
|
613
|
+
};
|
|
614
|
+
})["catch"](_http.handleErrors);
|
|
615
|
+
};
|
|
616
|
+
exports.fetchNotifications = fetchNotifications;
|
|
617
|
+
var fetchNotificationLabels = function fetchNotificationLabels() {
|
|
618
|
+
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
619
|
+
return _axios["default"].get('/app/system-coordinator/api/v1/platform/notifications/labels', {
|
|
620
|
+
params: (0, _http.paramBuilder)(options),
|
|
621
|
+
headers: (0, _http.headerBuilder)(options)
|
|
622
|
+
}).then(function (response) {
|
|
623
|
+
return {
|
|
624
|
+
notifications: response.data
|
|
625
|
+
};
|
|
626
|
+
})["catch"](_http.handleErrors);
|
|
627
|
+
};
|
|
628
|
+
exports.fetchNotificationLabels = fetchNotificationLabels;
|
|
629
|
+
var restartResources = function restartResources(_ref3) {
|
|
630
|
+
var _ref3$options = _ref3.options,
|
|
631
|
+
options = _ref3$options === void 0 ? {} : _ref3$options,
|
|
632
|
+
notification = _ref3.notification;
|
|
633
|
+
return _axios["default"].post('/app/system-coordinator/api/v1/platform/restartResources', (0, _objectSpread2["default"])({}, notification), {
|
|
634
|
+
params: (0, _http.paramBuilder)(options),
|
|
635
|
+
headers: (0, _http.headerBuilder)(options)
|
|
636
|
+
}).then(function (response) {
|
|
637
|
+
return {
|
|
638
|
+
trustedCertificates: response.data.trustedCertificates
|
|
639
|
+
};
|
|
640
|
+
})["catch"](_http.handleErrors);
|
|
641
|
+
};
|
|
642
|
+
exports.restartResources = restartResources;
|