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