@kineticdata/react 5.1.1 → 6.0.0
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 +61 -45
- package/lib/apis/core/bridgeModels.test.js +64 -80
- package/lib/apis/core/bridgedresources.js +64 -71
- package/lib/apis/core/bridgedresources.test.js +34 -31
- 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 -48
- 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 +30 -0
- 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 +220 -172
- package/lib/apis/core/submissions.test.js +81 -51
- 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 +64 -0
- package/lib/apis/http.js +89 -80
- package/lib/apis/http.test.js +37 -38
- package/lib/apis/index.js +506 -48
- package/lib/apis/system/index.js +228 -211
- package/lib/apis/task/index.js +283 -226
- package/lib/components/agent/bridge/BridgeForm.js +50 -50
- package/lib/components/agent/bridge/BridgeTable.js +12 -8
- package/lib/components/agent/filestore/FilestoreForm.js +49 -48
- package/lib/components/agent/filestore/FilestoreTable.js +12 -8
- package/lib/components/agent/handler/AgentHandlerForm.js +24 -27
- package/lib/components/agent/handler/AgentHandlerTable.js +12 -8
- 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/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/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 +18 -15
- package/lib/components/core/bridge_model/BridgeModelForm.js +27 -37
- package/lib/components/core/bridge_model/BridgeModelTable.js +12 -8
- 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 +15 -10
- 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 +15 -10
- 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 +25 -22
- package/lib/components/core/form_type/FormTypeForm.js +14 -13
- package/lib/components/core/form_type/FormTypeTable.js +12 -8
- 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 +19 -11
- 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 +17 -12
- package/lib/components/core/log/LogTable.js +35 -33
- 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 +18 -13
- 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 +27 -20
- package/lib/components/core/submission/KappSubmissionTable.js +30 -29
- 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 +16 -11
- 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 +19 -15
- package/lib/components/core/webapi/WebApiForm.js +49 -61
- package/lib/components/core/webapi/WebApiTable.js +14 -10
- package/lib/components/core/webhook/WebhookForm.js +33 -32
- package/lib/components/core/webhook/WebhookTable.js +22 -20
- package/lib/components/core/webhook_job/WebhookJobTable.js +19 -16
- package/lib/components/form/Form.helpers.js +102 -90
- package/lib/components/form/Form.js +467 -524
- package/lib/components/form/Form.models.js +38 -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 +981 -133
- package/lib/components/system/SystemBackgroundTasksTable.js +14 -10
- package/lib/components/system/SystemFilestoreForm.js +28 -25
- package/lib/components/system/SystemForm.js +19 -16
- package/lib/components/system/SystemIngressForm.js +10 -9
- package/lib/components/system/SystemSecurityForm.js +17 -14
- package/lib/components/system/SystemSmtpForm.js +13 -13
- package/lib/components/system/SystemTaskAdapterForm.js +21 -17
- package/lib/components/system/SystemUserForm.js +15 -14
- package/lib/components/system/helpers.js +62 -60
- 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 +43 -40
- package/lib/components/system/spaces/SystemTenantTable.js +12 -8
- package/lib/components/table/Table.js +219 -225
- package/lib/components/table/Table.redux.js +298 -327
- package/lib/components/table/Table.redux.test.js +49 -47
- package/lib/components/table/Table.test.js +107 -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/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 +41 -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 +28 -23
- package/lib/components/task/builder/TreeBuilder.js +140 -115
- package/lib/components/task/builder/builder.redux.js +322 -300
- 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 +133 -91
- 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 +17 -13
- 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 +12 -8
- 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 +23 -20
- 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 +14 -11
- package/lib/components/task/triggers/TriggerTable.js +21 -18
- package/lib/components/task/workflows/LinkedWorkflowForm.js +249 -0
- package/lib/components/task/workflows/LinkedWorkflowTable.js +137 -0
- package/lib/components/task/workflows/MissingRoutineTable.js +12 -8
- package/lib/components/task/workflows/WorkflowForm.js +61 -46
- package/lib/components/task/workflows/WorkflowTable.js +17 -14
- 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 +86 -38
- package/lib/reducer.js +11 -3
- package/lib/saga.js +42 -38
- package/lib/store.js +59 -35
- package/package.json +4 -29
- package/proxyhelper.js +105 -47
- 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,417 @@
|
|
|
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.updateSystemFilestore = exports.updateSystemDefaultTaskDbAdapter = exports.updateSystemDefaultSmtpAdapter = exports.updateSystem = exports.systemLogin = exports.rotateEncryptionKey = exports.resetSystemLicense = exports.refreshSystemToken = exports.postPlatformComponentRestart = exports.importSystemLicense = 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.fetchElasticSearchConfig = exports.fetchCassandraConfig = exports.deleteTenant = exports.deleteSystemLicense = exports.deleteSystemBackgroundTask = 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;
|
|
40
46
|
if (!tenant) {
|
|
41
47
|
throw new Error('updateTenant failed! The option "tenant" is required.');
|
|
42
48
|
}
|
|
43
|
-
|
|
44
49
|
if (!slug) {
|
|
45
50
|
throw new Error('updateTenant failed! The option "slug" is required.');
|
|
46
51
|
}
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
headers: headerBuilder(options)
|
|
52
|
+
return _axios["default"].put("/app/system-coordinator/api/v1/tenants/".concat(slug), tenant, {
|
|
53
|
+
params: (0, _http.paramBuilder)(options),
|
|
54
|
+
headers: (0, _http.headerBuilder)(options)
|
|
51
55
|
}).then(function (response) {
|
|
52
56
|
return {
|
|
53
57
|
tenant: response.data.tenant
|
|
54
58
|
};
|
|
55
|
-
})["catch"](handleErrors);
|
|
59
|
+
})["catch"](_http.handleErrors);
|
|
56
60
|
};
|
|
57
|
-
|
|
61
|
+
exports.updateTenant = updateTenant;
|
|
62
|
+
var createTenant = function createTenant() {
|
|
58
63
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
59
64
|
var tenant = options.tenant;
|
|
60
|
-
|
|
61
65
|
if (!tenant) {
|
|
62
66
|
throw new Error('createTenant failed! The option "tenant" is required.');
|
|
63
67
|
}
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
headers: headerBuilder(options)
|
|
68
|
+
return _axios["default"].post('/app/system-coordinator/api/v1/tenants', tenant, {
|
|
69
|
+
params: (0, _http.paramBuilder)(options),
|
|
70
|
+
headers: (0, _http.headerBuilder)(options)
|
|
68
71
|
}).then(function (response) {
|
|
69
72
|
return {
|
|
70
73
|
tenant: response.data.tenant
|
|
71
74
|
};
|
|
72
|
-
})["catch"](handleErrors);
|
|
75
|
+
})["catch"](_http.handleErrors);
|
|
73
76
|
};
|
|
74
|
-
|
|
77
|
+
exports.createTenant = createTenant;
|
|
78
|
+
var deleteTenant = function deleteTenant() {
|
|
75
79
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
76
80
|
var slug = options.slug;
|
|
77
|
-
|
|
78
81
|
if (!slug) {
|
|
79
82
|
throw new Error('createTenant failed! The option "slug" is required.');
|
|
80
83
|
}
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
params: _objectSpread(_objectSpread({}, paramBuilder(options)), {}, {
|
|
84
|
+
return _axios["default"]["delete"]("/app/system-coordinator/api/v1/tenants/".concat(slug), {
|
|
85
|
+
params: (0, _objectSpread2["default"])((0, _objectSpread2["default"])({}, (0, _http.paramBuilder)(options)), {}, {
|
|
84
86
|
deleteDatabase: options.deleteDatabase || undefined
|
|
85
87
|
}),
|
|
86
|
-
headers: headerBuilder(options)
|
|
88
|
+
headers: (0, _http.headerBuilder)(options)
|
|
87
89
|
}).then(function (response) {
|
|
88
90
|
return {
|
|
89
91
|
tenant: response.data.tenant
|
|
90
92
|
};
|
|
91
|
-
})["catch"](handleErrors);
|
|
93
|
+
})["catch"](_http.handleErrors);
|
|
92
94
|
};
|
|
93
|
-
|
|
95
|
+
exports.deleteTenant = deleteTenant;
|
|
96
|
+
var fetchSystem = function fetchSystem() {
|
|
94
97
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
95
98
|
// Build URL and fetch the system config.
|
|
96
|
-
return
|
|
97
|
-
params: paramBuilder(options),
|
|
98
|
-
headers: headerBuilder(options)
|
|
99
|
+
return _axios["default"].get('/app/system-coordinator/components/core/app/api/v1/config', {
|
|
100
|
+
params: (0, _http.paramBuilder)(options),
|
|
101
|
+
headers: (0, _http.headerBuilder)(options)
|
|
99
102
|
}).then(function (response) {
|
|
100
103
|
return {
|
|
101
104
|
system: response.data
|
|
102
105
|
};
|
|
103
|
-
})["catch"](handleErrors);
|
|
106
|
+
})["catch"](_http.handleErrors);
|
|
104
107
|
};
|
|
105
|
-
|
|
108
|
+
exports.fetchSystem = fetchSystem;
|
|
109
|
+
var updateSystem = function updateSystem() {
|
|
106
110
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
107
111
|
var system = options.system;
|
|
108
|
-
|
|
109
112
|
if (!system) {
|
|
110
113
|
throw new Error('updateSystem failed! The option "system" is required.');
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
headers: headerBuilder(options)
|
|
114
|
+
}
|
|
115
|
+
// Build URL and fetch the system config.
|
|
116
|
+
return _axios["default"].put('/app/system-coordinator/components/core/app/api/v1/config', system, {
|
|
117
|
+
params: (0, _http.paramBuilder)(options),
|
|
118
|
+
headers: (0, _http.headerBuilder)(options)
|
|
117
119
|
}).then(function (response) {
|
|
118
120
|
return {
|
|
119
121
|
system: response.data
|
|
120
122
|
};
|
|
121
|
-
})["catch"](handleErrors);
|
|
123
|
+
})["catch"](_http.handleErrors);
|
|
122
124
|
};
|
|
123
|
-
|
|
125
|
+
exports.updateSystem = updateSystem;
|
|
126
|
+
var fetchSystemUser = function fetchSystemUser() {
|
|
124
127
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
125
128
|
// Build URL and fetch the space.
|
|
126
|
-
return
|
|
127
|
-
params: paramBuilder(options),
|
|
128
|
-
headers: headerBuilder(options)
|
|
129
|
+
return _axios["default"].get('/app/system-coordinator/api/v1/platform/system-user', {
|
|
130
|
+
params: (0, _http.paramBuilder)(options),
|
|
131
|
+
headers: (0, _http.headerBuilder)(options)
|
|
129
132
|
}).then(function (response) {
|
|
130
133
|
return {
|
|
131
134
|
user: response.data
|
|
132
135
|
};
|
|
133
|
-
})["catch"](handleErrors);
|
|
136
|
+
})["catch"](_http.handleErrors);
|
|
134
137
|
};
|
|
135
|
-
|
|
138
|
+
exports.fetchSystemUser = fetchSystemUser;
|
|
139
|
+
var updateSystemUser = function updateSystemUser() {
|
|
136
140
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
137
141
|
var user = options.user;
|
|
138
|
-
|
|
139
142
|
if (!user) {
|
|
140
143
|
throw new Error('updateSystemUser failed! The option "user" is required.');
|
|
141
144
|
}
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
headers: headerBuilder(options)
|
|
145
|
+
return _axios["default"].put('/app/system-coordinator/api/v1/platform/system-user', user, {
|
|
146
|
+
params: (0, _http.paramBuilder)(options),
|
|
147
|
+
headers: (0, _http.headerBuilder)(options)
|
|
146
148
|
}).then(function (response) {
|
|
147
149
|
return {
|
|
148
150
|
user: response.data
|
|
149
151
|
};
|
|
150
|
-
})["catch"](handleErrors);
|
|
152
|
+
})["catch"](_http.handleErrors);
|
|
151
153
|
};
|
|
152
|
-
|
|
154
|
+
exports.updateSystemUser = updateSystemUser;
|
|
155
|
+
var fetchSystemIngress = function fetchSystemIngress() {
|
|
153
156
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
154
157
|
// Build URL and fetch the space.
|
|
155
|
-
return
|
|
156
|
-
params: paramBuilder(options),
|
|
157
|
-
headers: headerBuilder(options)
|
|
158
|
+
return _axios["default"].get('/app/system-coordinator/api/v1/platform/ingress', {
|
|
159
|
+
params: (0, _http.paramBuilder)(options),
|
|
160
|
+
headers: (0, _http.headerBuilder)(options)
|
|
158
161
|
}).then(function (response) {
|
|
159
162
|
return {
|
|
160
163
|
ingress: response.data
|
|
161
164
|
};
|
|
162
|
-
})["catch"](handleErrors);
|
|
165
|
+
})["catch"](_http.handleErrors);
|
|
163
166
|
};
|
|
164
|
-
|
|
167
|
+
exports.fetchSystemIngress = fetchSystemIngress;
|
|
168
|
+
var fetchTaskDbAdapters = function fetchTaskDbAdapters() {
|
|
165
169
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
166
170
|
// Build URL and fetch the space.
|
|
167
|
-
return
|
|
168
|
-
params: paramBuilder(options),
|
|
169
|
-
headers: headerBuilder(options)
|
|
171
|
+
return _axios["default"].get("/app/system-coordinator/api/v1/meta/task-db-adapters", {
|
|
172
|
+
params: (0, _http.paramBuilder)(options),
|
|
173
|
+
headers: (0, _http.headerBuilder)(options)
|
|
170
174
|
}).then(function (response) {
|
|
171
175
|
return response.data;
|
|
172
|
-
})
|
|
173
|
-
|
|
176
|
+
})
|
|
177
|
+
// .then(response => ({ space: response.data.space }))
|
|
178
|
+
["catch"](_http.handleErrors);
|
|
174
179
|
};
|
|
175
|
-
|
|
180
|
+
exports.fetchTaskDbAdapters = fetchTaskDbAdapters;
|
|
181
|
+
var fetchTaskDbAdapter = function fetchTaskDbAdapter() {
|
|
176
182
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
177
183
|
// Build URL and fetch the space.
|
|
178
|
-
return
|
|
179
|
-
params: paramBuilder(options),
|
|
180
|
-
headers: headerBuilder(options)
|
|
184
|
+
return _axios["default"].get("/app/system-coordinator/api/v1/meta/task-db-adapters/".concat(options.type), {
|
|
185
|
+
params: (0, _http.paramBuilder)(options),
|
|
186
|
+
headers: (0, _http.headerBuilder)(options)
|
|
181
187
|
}).then(function (response) {
|
|
182
188
|
return {
|
|
183
189
|
adapter: response.data.adapter
|
|
184
190
|
};
|
|
185
|
-
})["catch"](handleErrors);
|
|
191
|
+
})["catch"](_http.handleErrors);
|
|
186
192
|
};
|
|
187
|
-
|
|
193
|
+
exports.fetchTaskDbAdapter = fetchTaskDbAdapter;
|
|
194
|
+
var fetchSystemDefaultTaskDbAdapter = function fetchSystemDefaultTaskDbAdapter() {
|
|
188
195
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
189
196
|
// Build URL and fetch the space.
|
|
190
|
-
return
|
|
191
|
-
params: paramBuilder(options),
|
|
192
|
-
headers: headerBuilder(options)
|
|
197
|
+
return _axios["default"].get("/app/system-coordinator/api/v1/platform/default-task-db-adapter", {
|
|
198
|
+
params: (0, _http.paramBuilder)(options),
|
|
199
|
+
headers: (0, _http.headerBuilder)(options)
|
|
193
200
|
}).then(function (response) {
|
|
194
201
|
return {
|
|
195
202
|
adapter: response.data.adapter
|
|
196
203
|
};
|
|
197
|
-
})["catch"](handleErrors);
|
|
204
|
+
})["catch"](_http.handleErrors);
|
|
198
205
|
};
|
|
199
|
-
|
|
206
|
+
exports.fetchSystemDefaultTaskDbAdapter = fetchSystemDefaultTaskDbAdapter;
|
|
207
|
+
var updateSystemDefaultTaskDbAdapter = function updateSystemDefaultTaskDbAdapter() {
|
|
200
208
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
201
209
|
var adapter = options.adapter;
|
|
202
|
-
|
|
203
210
|
if (!adapter) {
|
|
204
211
|
throw new Error('updateSystemDefaultTaskDbAdapter failed! The option "adapter" is required.');
|
|
205
212
|
}
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
headers: headerBuilder(options)
|
|
213
|
+
return _axios["default"].put("/app/system-coordinator/api/v1/platform/default-task-db-adapter", adapter, {
|
|
214
|
+
params: (0, _http.paramBuilder)(options),
|
|
215
|
+
headers: (0, _http.headerBuilder)(options)
|
|
210
216
|
}).then(function (response) {
|
|
211
217
|
return {
|
|
212
218
|
adapter: response.data.adapter
|
|
213
219
|
};
|
|
214
|
-
})["catch"](handleErrors);
|
|
220
|
+
})["catch"](_http.handleErrors);
|
|
215
221
|
};
|
|
216
|
-
|
|
222
|
+
exports.updateSystemDefaultTaskDbAdapter = updateSystemDefaultTaskDbAdapter;
|
|
223
|
+
var fetchSystemDefaultSmtpAdapter = function fetchSystemDefaultSmtpAdapter() {
|
|
217
224
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
218
225
|
// Build URL and fetch the space.
|
|
219
|
-
return
|
|
220
|
-
params: paramBuilder(options),
|
|
221
|
-
headers: headerBuilder(options)
|
|
226
|
+
return _axios["default"].get('/app/system-coordinator/api/v1/platform/default-smtp-adapter', {
|
|
227
|
+
params: (0, _http.paramBuilder)(options),
|
|
228
|
+
headers: (0, _http.headerBuilder)(options)
|
|
222
229
|
}).then(function (response) {
|
|
223
230
|
return {
|
|
224
231
|
adapter: response.data.adapter
|
|
225
232
|
};
|
|
226
|
-
})["catch"](handleErrors);
|
|
233
|
+
})["catch"](_http.handleErrors);
|
|
227
234
|
};
|
|
228
|
-
|
|
235
|
+
exports.fetchSystemDefaultSmtpAdapter = fetchSystemDefaultSmtpAdapter;
|
|
236
|
+
var updateSystemDefaultSmtpAdapter = function updateSystemDefaultSmtpAdapter() {
|
|
229
237
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
230
238
|
var adapter = options.adapter;
|
|
231
|
-
|
|
232
239
|
if (!adapter) {
|
|
233
240
|
throw new Error('updateSystemDefaultSmtpAdapter failed! The option "adapter" is required.');
|
|
234
241
|
}
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
headers: headerBuilder(options)
|
|
242
|
+
return _axios["default"].put('/app/system-coordinator/api/v1/platform/default-smtp-adapter', adapter, {
|
|
243
|
+
params: (0, _http.paramBuilder)(options),
|
|
244
|
+
headers: (0, _http.headerBuilder)(options)
|
|
239
245
|
}).then(function (response) {
|
|
240
246
|
return {
|
|
241
247
|
adapter: response.data.adapter
|
|
242
248
|
};
|
|
243
|
-
})["catch"](handleErrors);
|
|
249
|
+
})["catch"](_http.handleErrors);
|
|
244
250
|
};
|
|
245
|
-
|
|
251
|
+
exports.updateSystemDefaultSmtpAdapter = updateSystemDefaultSmtpAdapter;
|
|
252
|
+
var fetchSystemFilestore = function fetchSystemFilestore() {
|
|
246
253
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
247
254
|
// Build URL and fetch the space.
|
|
248
|
-
return
|
|
249
|
-
params: paramBuilder(options),
|
|
250
|
-
headers: headerBuilder(options)
|
|
255
|
+
return _axios["default"].get('/app/system-coordinator/components/agent/app/api/v1/spaces/SYSTEM/filestores/system', {
|
|
256
|
+
params: (0, _http.paramBuilder)(options),
|
|
257
|
+
headers: (0, _http.headerBuilder)(options)
|
|
251
258
|
}).then(function (response) {
|
|
252
259
|
return response.data;
|
|
253
|
-
})["catch"](handleErrors);
|
|
260
|
+
})["catch"](_http.handleErrors);
|
|
254
261
|
};
|
|
255
|
-
|
|
262
|
+
exports.fetchSystemFilestore = fetchSystemFilestore;
|
|
263
|
+
var updateSystemFilestore = function updateSystemFilestore() {
|
|
256
264
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
257
265
|
var filestore = options.filestore;
|
|
258
|
-
|
|
259
266
|
if (!filestore) {
|
|
260
267
|
throw new Error('updateSystemFilestore failed! The option "adapter" is required.');
|
|
261
268
|
}
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
headers: headerBuilder(options)
|
|
269
|
+
return _axios["default"].put('/app/system-coordinator/components/agent/app/api/v1/spaces/SYSTEM/filestores/system', filestore, {
|
|
270
|
+
params: (0, _http.paramBuilder)(options),
|
|
271
|
+
headers: (0, _http.headerBuilder)(options)
|
|
266
272
|
}).then(function (response) {
|
|
267
273
|
return {
|
|
268
274
|
filestore: response.data.filestore
|
|
269
275
|
};
|
|
270
|
-
})["catch"](handleErrors);
|
|
276
|
+
})["catch"](_http.handleErrors);
|
|
271
277
|
};
|
|
272
|
-
|
|
273
|
-
|
|
278
|
+
exports.updateSystemFilestore = updateSystemFilestore;
|
|
279
|
+
var VALID_RESTARTABLE_COMPONENTS = ['agent', 'core', 'loghub', 'indexer'];
|
|
280
|
+
var postPlatformComponentRestart = function postPlatformComponentRestart() {
|
|
274
281
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
275
|
-
|
|
276
282
|
if (!options.component || !VALID_RESTARTABLE_COMPONENTS.includes(options.component)) {
|
|
277
283
|
throw new Error('postPlatformComponentRestart failed! The "component" option was missing or invalid.');
|
|
278
284
|
}
|
|
279
|
-
|
|
280
|
-
return axios.post("/app/system-coordinator/api/v1/platform/components/".concat(options.component, "/restart")).then(function (_ref) {
|
|
285
|
+
return _axios["default"].post("/app/system-coordinator/api/v1/platform/components/".concat(options.component, "/restart")).then(function (_ref) {
|
|
281
286
|
var data = _ref.data;
|
|
282
287
|
return {
|
|
283
288
|
component: data.component,
|
|
284
289
|
message: data.message
|
|
285
290
|
};
|
|
286
|
-
})["catch"](handleErrors);
|
|
291
|
+
})["catch"](_http.handleErrors);
|
|
287
292
|
};
|
|
288
|
-
|
|
293
|
+
exports.postPlatformComponentRestart = postPlatformComponentRestart;
|
|
294
|
+
var fetchPlatformComponentStatus = function fetchPlatformComponentStatus() {
|
|
289
295
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
290
|
-
return
|
|
296
|
+
return _axios["default"].get('/app/system-coordinator/api/v1/platform/components').then(function (_ref2) {
|
|
291
297
|
var data = _ref2.data;
|
|
292
298
|
return {
|
|
293
299
|
components: data.components
|
|
294
300
|
};
|
|
295
|
-
})["catch"](handleErrors);
|
|
301
|
+
})["catch"](_http.handleErrors);
|
|
296
302
|
};
|
|
297
|
-
|
|
303
|
+
exports.fetchPlatformComponentStatus = fetchPlatformComponentStatus;
|
|
304
|
+
var systemLogin = function systemLogin() {
|
|
298
305
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
299
306
|
var username = options.username,
|
|
300
|
-
|
|
301
|
-
return
|
|
307
|
+
password = options.password;
|
|
308
|
+
return _axios["default"].post('/app/system-coordinator/login', {
|
|
302
309
|
username: username,
|
|
303
310
|
password: password
|
|
304
311
|
}, {}).then(function (response) {
|
|
305
312
|
return response.data;
|
|
306
|
-
})["catch"](handleErrors);
|
|
313
|
+
})["catch"](_http.handleErrors);
|
|
307
314
|
};
|
|
308
|
-
|
|
315
|
+
exports.systemLogin = systemLogin;
|
|
316
|
+
var refreshSystemToken = function refreshSystemToken() {
|
|
309
317
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
310
|
-
return
|
|
311
|
-
params: paramBuilder(options),
|
|
312
|
-
headers: headerBuilder(options)
|
|
318
|
+
return _axios["default"].post('/app/system-coordinator/refresh', {}, {
|
|
319
|
+
params: (0, _http.paramBuilder)(options),
|
|
320
|
+
headers: (0, _http.headerBuilder)(options)
|
|
313
321
|
}).then(function (response) {
|
|
314
322
|
return response.data;
|
|
315
|
-
})["catch"](handleErrors);
|
|
323
|
+
})["catch"](_http.handleErrors);
|
|
316
324
|
};
|
|
317
|
-
|
|
325
|
+
exports.refreshSystemToken = refreshSystemToken;
|
|
326
|
+
var fetchCassandraConfig = function fetchCassandraConfig() {
|
|
318
327
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
319
|
-
return
|
|
320
|
-
params: paramBuilder(options),
|
|
321
|
-
headers: headerBuilder(options)
|
|
328
|
+
return _axios["default"].get('/app/system-coordinator/api/v1/platform/cassandra', {}, {
|
|
329
|
+
params: (0, _http.paramBuilder)(options),
|
|
330
|
+
headers: (0, _http.headerBuilder)(options)
|
|
322
331
|
}).then(function (response) {
|
|
323
332
|
return {
|
|
324
333
|
adapter: response.data.adapter
|
|
325
334
|
};
|
|
326
|
-
})["catch"](handleErrors);
|
|
335
|
+
})["catch"](_http.handleErrors);
|
|
327
336
|
};
|
|
328
|
-
|
|
337
|
+
exports.fetchCassandraConfig = fetchCassandraConfig;
|
|
338
|
+
var fetchElasticSearchConfig = function fetchElasticSearchConfig() {
|
|
329
339
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
330
|
-
return
|
|
331
|
-
params: paramBuilder(options),
|
|
332
|
-
headers: headerBuilder(options)
|
|
340
|
+
return _axios["default"].get('/app/system-coordinator/api/v1/platform/elasticsearch', {}, {
|
|
341
|
+
params: (0, _http.paramBuilder)(options),
|
|
342
|
+
headers: (0, _http.headerBuilder)(options)
|
|
333
343
|
}).then(function (response) {
|
|
334
344
|
return {
|
|
335
345
|
adapter: response.data.adapter
|
|
336
346
|
};
|
|
337
|
-
})["catch"](handleErrors);
|
|
347
|
+
})["catch"](_http.handleErrors);
|
|
338
348
|
};
|
|
339
|
-
|
|
349
|
+
exports.fetchElasticSearchConfig = fetchElasticSearchConfig;
|
|
350
|
+
var fetchSystemSecurity = function fetchSystemSecurity() {
|
|
340
351
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
341
|
-
return
|
|
342
|
-
params: paramBuilder(options),
|
|
343
|
-
headers: headerBuilder(options)
|
|
352
|
+
return _axios["default"].get('/app/system-coordinator/api/v1/platform/system-security', {}, {
|
|
353
|
+
params: (0, _http.paramBuilder)(options),
|
|
354
|
+
headers: (0, _http.headerBuilder)(options)
|
|
344
355
|
}).then(function (response) {
|
|
345
356
|
return {
|
|
346
357
|
systemSecurity: response.data
|
|
347
358
|
};
|
|
348
|
-
})["catch"](handleErrors);
|
|
359
|
+
})["catch"](_http.handleErrors);
|
|
349
360
|
};
|
|
350
|
-
|
|
361
|
+
exports.fetchSystemSecurity = fetchSystemSecurity;
|
|
362
|
+
var updateSystemSecurity = function updateSystemSecurity() {
|
|
351
363
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
352
364
|
var systemSecurity = options.systemSecurity;
|
|
353
|
-
|
|
354
365
|
if (!systemSecurity) {
|
|
355
366
|
throw new Error('updateSystemSecurity failed! The option "systemSecurity" is required.');
|
|
356
367
|
}
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
headers: headerBuilder(options)
|
|
368
|
+
return _axios["default"].put("/app/system-coordinator/api/v1/platform/system-security", systemSecurity, {
|
|
369
|
+
params: (0, _http.paramBuilder)(options),
|
|
370
|
+
headers: (0, _http.headerBuilder)(options)
|
|
361
371
|
}).then(function (response) {
|
|
362
372
|
return {
|
|
363
373
|
systemSecurity: response.data
|
|
364
374
|
};
|
|
365
|
-
})["catch"](handleErrors);
|
|
375
|
+
})["catch"](_http.handleErrors);
|
|
366
376
|
};
|
|
367
|
-
|
|
377
|
+
exports.updateSystemSecurity = updateSystemSecurity;
|
|
378
|
+
var fetchSystemLicense = function fetchSystemLicense() {
|
|
368
379
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
369
|
-
return
|
|
370
|
-
params: paramBuilder(options),
|
|
371
|
-
headers: headerBuilder(options)
|
|
380
|
+
return _axios["default"].get('/app/system-coordinator/components/core/app/api/v1/license', {
|
|
381
|
+
params: (0, _http.paramBuilder)(options),
|
|
382
|
+
headers: (0, _http.headerBuilder)(options)
|
|
372
383
|
}).then(function (response) {
|
|
373
384
|
return {
|
|
374
385
|
system: response.data
|
|
375
386
|
};
|
|
376
|
-
})["catch"](handleErrors);
|
|
387
|
+
})["catch"](_http.handleErrors);
|
|
377
388
|
};
|
|
378
|
-
|
|
389
|
+
exports.fetchSystemLicense = fetchSystemLicense;
|
|
390
|
+
var deleteSystemLicense = function deleteSystemLicense() {
|
|
379
391
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
380
|
-
return
|
|
381
|
-
params: paramBuilder(options),
|
|
382
|
-
headers: headerBuilder(options)
|
|
392
|
+
return _axios["default"]["delete"]('/app/system-coordinator/components/core/app/api/v1/license', {
|
|
393
|
+
params: (0, _http.paramBuilder)(options),
|
|
394
|
+
headers: (0, _http.headerBuilder)(options)
|
|
383
395
|
}).then(function (response) {
|
|
384
396
|
return {
|
|
385
397
|
system: response.data
|
|
386
398
|
};
|
|
387
|
-
})["catch"](handleErrors);
|
|
399
|
+
})["catch"](_http.handleErrors);
|
|
388
400
|
};
|
|
389
|
-
|
|
401
|
+
exports.deleteSystemLicense = deleteSystemLicense;
|
|
402
|
+
var resetSystemLicense = function resetSystemLicense() {
|
|
390
403
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
391
|
-
return
|
|
392
|
-
params: paramBuilder(options),
|
|
393
|
-
headers: headerBuilder(options)
|
|
404
|
+
return _axios["default"].put('/app/system-coordinator/components/core/app/api/v1/license/reset', {
|
|
405
|
+
params: (0, _http.paramBuilder)(options),
|
|
406
|
+
headers: (0, _http.headerBuilder)(options)
|
|
394
407
|
}).then(function (response) {
|
|
395
408
|
return {
|
|
396
409
|
system: response.data
|
|
397
410
|
};
|
|
398
|
-
})["catch"](handleErrors);
|
|
411
|
+
})["catch"](_http.handleErrors);
|
|
399
412
|
};
|
|
400
|
-
|
|
413
|
+
exports.resetSystemLicense = resetSystemLicense;
|
|
414
|
+
var importSystemLicense = function importSystemLicense() {
|
|
401
415
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
402
416
|
var content = options.content;
|
|
403
417
|
var data = new FormData();
|
|
@@ -405,90 +419,93 @@ export var importSystemLicense = function importSystemLicense() {
|
|
|
405
419
|
var headers = {
|
|
406
420
|
'Content-Type': 'multipart/form-data'
|
|
407
421
|
};
|
|
408
|
-
return
|
|
422
|
+
return _axios["default"].post('/app/system-coordinator/components/core/app/api/v1/license', data, {
|
|
409
423
|
headers: headers
|
|
410
424
|
}).then(function (response) {
|
|
411
425
|
return {
|
|
412
426
|
system: response.data
|
|
413
427
|
};
|
|
414
|
-
})["catch"](handleErrors);
|
|
428
|
+
})["catch"](_http.handleErrors);
|
|
415
429
|
};
|
|
416
|
-
|
|
430
|
+
exports.importSystemLicense = importSystemLicense;
|
|
431
|
+
var fetchSystemLicenseStats = function fetchSystemLicenseStats() {
|
|
417
432
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
418
|
-
return
|
|
419
|
-
params: paramBuilder(options),
|
|
420
|
-
headers: headerBuilder(options)
|
|
433
|
+
return _axios["default"].get('/app/system-coordinator/components/core/app/api/v1/license/statistics', {
|
|
434
|
+
params: (0, _http.paramBuilder)(options),
|
|
435
|
+
headers: (0, _http.headerBuilder)(options)
|
|
421
436
|
}).then(function (response) {
|
|
422
437
|
return {
|
|
423
438
|
system: response.data
|
|
424
439
|
};
|
|
425
|
-
})["catch"](handleErrors);
|
|
440
|
+
})["catch"](_http.handleErrors);
|
|
426
441
|
};
|
|
427
|
-
|
|
442
|
+
exports.fetchSystemLicenseStats = fetchSystemLicenseStats;
|
|
443
|
+
var fetchSystemLicenseCheck = function fetchSystemLicenseCheck() {
|
|
428
444
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
429
|
-
return
|
|
430
|
-
params: paramBuilder(options),
|
|
431
|
-
headers: headerBuilder(options)
|
|
445
|
+
return _axios["default"].get('/app/system-coordinator/components/core/app/api/v1/license/check', {
|
|
446
|
+
params: (0, _http.paramBuilder)(options),
|
|
447
|
+
headers: (0, _http.headerBuilder)(options)
|
|
432
448
|
}).then(function (response) {
|
|
433
449
|
return {
|
|
434
450
|
system: response.data
|
|
435
451
|
};
|
|
436
|
-
})["catch"](handleErrors);
|
|
452
|
+
})["catch"](_http.handleErrors);
|
|
437
453
|
};
|
|
438
|
-
|
|
454
|
+
exports.fetchSystemLicenseCheck = fetchSystemLicenseCheck;
|
|
455
|
+
var fetchSystemBackgroundTasks = function fetchSystemBackgroundTasks() {
|
|
439
456
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
440
|
-
return
|
|
441
|
-
params: paramBuilder(options),
|
|
442
|
-
headers: headerBuilder(options)
|
|
457
|
+
return _axios["default"].get('/app/system-coordinator/api/v1/backgroundTasks', {
|
|
458
|
+
params: (0, _http.paramBuilder)(options),
|
|
459
|
+
headers: (0, _http.headerBuilder)(options)
|
|
443
460
|
}).then(function (response) {
|
|
444
461
|
return {
|
|
445
462
|
backgroundTasks: response.data.backgroundTasks
|
|
446
463
|
};
|
|
447
|
-
})["catch"](handleErrors);
|
|
464
|
+
})["catch"](_http.handleErrors);
|
|
448
465
|
};
|
|
449
|
-
|
|
466
|
+
exports.fetchSystemBackgroundTasks = fetchSystemBackgroundTasks;
|
|
467
|
+
var fetchSystemBackgroundTask = function fetchSystemBackgroundTask() {
|
|
450
468
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
451
469
|
var id = options.id;
|
|
452
|
-
|
|
453
470
|
if (!id) {
|
|
454
471
|
throw new Error('fetchSystemBackgroundTask failed! The option "id" is required.');
|
|
455
472
|
}
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
headers: headerBuilder(options)
|
|
473
|
+
return _axios["default"].get("/app/system-coordinator/api/v1/backgroundTasks/".concat(id), {
|
|
474
|
+
params: (0, _http.paramBuilder)(options),
|
|
475
|
+
headers: (0, _http.headerBuilder)(options)
|
|
460
476
|
}).then(function (response) {
|
|
461
477
|
return {
|
|
462
478
|
backgroundTask: response.data.backgroundTask
|
|
463
479
|
};
|
|
464
|
-
})["catch"](handleErrors);
|
|
480
|
+
})["catch"](_http.handleErrors);
|
|
465
481
|
};
|
|
466
|
-
|
|
482
|
+
exports.fetchSystemBackgroundTask = fetchSystemBackgroundTask;
|
|
483
|
+
var deleteSystemBackgroundTask = function deleteSystemBackgroundTask() {
|
|
467
484
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
468
485
|
var id = options.id;
|
|
469
|
-
|
|
470
486
|
if (!id) {
|
|
471
487
|
throw new Error('deleteSystemBackgroundTask failed! The option "id" is required.');
|
|
472
488
|
}
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
headers: headerBuilder(options)
|
|
489
|
+
return _axios["default"]["delete"]("/app/system-coordinator/api/v1/backgroundTasks/".concat(id), {
|
|
490
|
+
params: (0, _http.paramBuilder)(options),
|
|
491
|
+
headers: (0, _http.headerBuilder)(options)
|
|
477
492
|
}).then(function (response) {
|
|
478
493
|
return {
|
|
479
494
|
backgroundTask: response.data.backgroundTask
|
|
480
495
|
};
|
|
481
|
-
})["catch"](handleErrors);
|
|
496
|
+
})["catch"](_http.handleErrors);
|
|
482
497
|
};
|
|
483
|
-
|
|
498
|
+
exports.deleteSystemBackgroundTask = deleteSystemBackgroundTask;
|
|
499
|
+
var rotateEncryptionKey = function rotateEncryptionKey() {
|
|
484
500
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
485
501
|
var spaceSlug = options.spaceSlug;
|
|
486
|
-
return
|
|
487
|
-
params: paramBuilder(options),
|
|
488
|
-
headers: headerBuilder(options)
|
|
502
|
+
return _axios["default"].post(spaceSlug ? "/app/system-coordinator/api/v1/tenants/".concat(spaceSlug, "/rotateEncryptionKey") : '/app/system-coordinator/api/v1/platform/rotateEncryptionKey', {}, {
|
|
503
|
+
params: (0, _http.paramBuilder)(options),
|
|
504
|
+
headers: (0, _http.headerBuilder)(options)
|
|
489
505
|
}).then(function (response) {
|
|
490
506
|
return {
|
|
491
507
|
system: response.data
|
|
492
508
|
};
|
|
493
|
-
})["catch"](handleErrors);
|
|
494
|
-
};
|
|
509
|
+
})["catch"](_http.handleErrors);
|
|
510
|
+
};
|
|
511
|
+
exports.rotateEncryptionKey = rotateEncryptionKey;
|