@kineticdata/react 6.0.1 → 6.0.3
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/CHANGELOG.md +86 -0
- 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 +19 -35
- 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 +16 -31
- package/lib/apis/system/index.js +46 -91
- package/lib/apis/task/index.js +60 -119
- package/lib/components/agent/bridge/BridgeForm.js +1 -2
- package/lib/components/agent/bridge/BridgeTable.js +1 -2
- package/lib/components/agent/filestore/FilestoreForm.js +1 -2
- package/lib/components/agent/filestore/FilestoreTable.js +1 -2
- package/lib/components/agent/handler/AgentHandlerForm.js +1 -2
- package/lib/components/agent/handler/AgentHandlerTable.js +1 -2
- 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 +7 -12
- 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 +1 -2
- package/lib/components/common/defaults/index.js +2 -3
- package/lib/components/core/attribute_definition/AttributeDefinitionForm.js +1 -2
- package/lib/components/core/attribute_definition/AttributeDefinitionTable.js +1 -2
- package/lib/components/core/bridge_model/BridgeModelForm.js +52 -55
- package/lib/components/core/bridge_model/BridgeModelTable.js +1 -2
- 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 +1 -2
- 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 +2 -4
- 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 +4 -4
- package/lib/components/core/form/FormTable.js +1 -2
- package/lib/components/core/form_type/FormTypeForm.js +1 -2
- package/lib/components/core/form_type/FormTypeTable.js +1 -2
- 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 +1 -2
- 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 +1 -2
- package/lib/components/core/log/LogTable.js +2 -4
- 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 +1 -2
- 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 +2 -4
- package/lib/components/core/submission/KappSubmissionTable.js +2 -4
- 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 +1 -2
- package/lib/components/core/team/TeamTable.js +1 -2
- 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 +1 -2
- package/lib/components/core/webapi/WebApiForm.js +97 -101
- package/lib/components/core/webapi/WebApiTable.js +1 -2
- package/lib/components/core/webhook/WebhookForm.js +1 -2
- package/lib/components/core/webhook/WebhookTable.js +1 -2
- package/lib/components/core/webhook_job/WebhookJobTable.js +1 -2
- package/lib/components/form/Form.helpers.js +10 -19
- package/lib/components/form/Form.js +312 -355
- package/lib/components/form/Form.models.js +6 -11
- package/lib/components/form/FormState.js +3 -3
- 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 +4354 -4508
- package/lib/components/form/tests/components.js +73 -64
- package/lib/components/index.js +7 -0
- package/lib/components/system/SystemBackgroundTasksTable.js +1 -2
- package/lib/components/system/SystemCassandraForm.js +1 -2
- package/lib/components/system/SystemElasticSearchForm.js +1 -2
- package/lib/components/system/SystemFilestoreForm.js +2 -3
- package/lib/components/system/SystemForm.js +1 -2
- package/lib/components/system/SystemIngressForm.js +1 -2
- package/lib/components/system/SystemSecurityForm.js +1 -2
- package/lib/components/system/SystemSmtpForm.js +1 -2
- package/lib/components/system/SystemTaskAdapterForm.js +1 -2
- package/lib/components/system/SystemTrustedCertificateForm.js +1 -2
- package/lib/components/system/SystemTrustedCertificatesTable.js +1 -2
- package/lib/components/system/SystemUserForm.js +1 -2
- package/lib/components/system/helpers.js +11 -21
- package/lib/components/system/spaces/SystemSpaceForm.js +2 -3
- package/lib/components/system/spaces/SystemTenantForm.js +2 -3
- package/lib/components/system/spaces/SystemTenantTable.js +1 -2
- package/lib/components/table/Table.js +48 -51
- package/lib/components/table/Table.redux.js +161 -188
- package/lib/components/table/Table.test.js +115 -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 +1 -2
- 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 +2 -3
- package/lib/components/table/tests/Table.redux.test.js +162 -0
- package/lib/components/table/tests/Table.test.js +767 -0
- package/lib/components/table/tests/components.js +182 -0
- 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 +14 -5
- package/lib/components/task/builder/builder.redux.js +187 -186
- 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 +24 -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 +2 -3
- 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 +1 -2
- 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 +2 -3
- 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 +1 -2
- package/lib/components/task/triggers/TriggerTable.js +2 -3
- package/lib/components/task/workflows/LinkedWorkflowForm.js +3 -5
- package/lib/components/task/workflows/LinkedWorkflowTable.js +1 -2
- package/lib/components/task/workflows/MissingRoutineTable.js +1 -2
- package/lib/components/task/workflows/WorkflowForm.js +91 -41
- package/lib/components/task/workflows/WorkflowTable.js +1 -2
- package/lib/helpers/SearchBuilder.js +2 -4
- package/lib/helpers/index.js +13 -26
- package/lib/index.js +3 -6
- package/lib/reducer.js +3 -5
- package/lib/saga.js +32 -48
- package/lib/store.js +32 -42
- package/package.json +12 -15
- package/lib/components/core/CoreFormModal.js +0 -64
- package/lib/components/core/CoreModal.js +0 -114
package/lib/apis/http.js
CHANGED
|
@@ -20,7 +20,7 @@ var types = {
|
|
|
20
20
|
404: 'notFound',
|
|
21
21
|
405: 'methodNotAllowed'
|
|
22
22
|
};
|
|
23
|
-
var handleErrors = function handleErrors(error) {
|
|
23
|
+
var handleErrors = exports.handleErrors = function handleErrors(error) {
|
|
24
24
|
// handle a javascript runtime exception by re-throwing it, this is in case we
|
|
25
25
|
// make a mistake in a `then` block in one of our api functions.
|
|
26
26
|
if (error instanceof Error && !error.response) {
|
|
@@ -67,8 +67,7 @@ var handleErrors = function handleErrors(error) {
|
|
|
67
67
|
error: result
|
|
68
68
|
};
|
|
69
69
|
};
|
|
70
|
-
exports.
|
|
71
|
-
var paramBuilder = function paramBuilder(options) {
|
|
70
|
+
var paramBuilder = exports.paramBuilder = function paramBuilder(options) {
|
|
72
71
|
var params = {};
|
|
73
72
|
if (options.include) params.include = options.include;
|
|
74
73
|
if (options.limit >= 0) params.limit = options.limit;
|
|
@@ -82,16 +81,14 @@ var paramBuilder = function paramBuilder(options) {
|
|
|
82
81
|
if (options.count) params.count = options.count;
|
|
83
82
|
return params;
|
|
84
83
|
};
|
|
85
|
-
exports.
|
|
86
|
-
var headerBuilder = function headerBuilder(options) {
|
|
84
|
+
var headerBuilder = exports.headerBuilder = function headerBuilder(options) {
|
|
87
85
|
var headers = {};
|
|
88
86
|
if (!options["public"]) {
|
|
89
87
|
headers['X-Kinetic-AuthAssumed'] = 'true';
|
|
90
88
|
}
|
|
91
89
|
return headers;
|
|
92
90
|
};
|
|
93
|
-
exports.
|
|
94
|
-
var formDataBuilder = function formDataBuilder(data, prefix) {
|
|
91
|
+
var formDataBuilder = exports.formDataBuilder = function formDataBuilder(data, prefix) {
|
|
95
92
|
var formData = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : new FormData();
|
|
96
93
|
return Object.keys(data).reduce(function (result, property) {
|
|
97
94
|
// Reduce the data object into a FormData object
|
|
@@ -122,8 +119,7 @@ var formDataBuilder = function formDataBuilder(data, prefix) {
|
|
|
122
119
|
return result;
|
|
123
120
|
}, formData);
|
|
124
121
|
};
|
|
125
|
-
exports.
|
|
126
|
-
var validateOptions = function validateOptions(functionName, requiredOptions, options) {
|
|
122
|
+
var validateOptions = exports.validateOptions = function validateOptions(functionName, requiredOptions, options) {
|
|
127
123
|
var missing = requiredOptions.filter(function (requiredOption) {
|
|
128
124
|
return !options[requiredOption];
|
|
129
125
|
});
|
|
@@ -131,8 +127,7 @@ var validateOptions = function validateOptions(functionName, requiredOptions, op
|
|
|
131
127
|
throw new Error("".concat(functionName, " failed! The following required options are missing: ").concat(missing));
|
|
132
128
|
}
|
|
133
129
|
};
|
|
134
|
-
exports.
|
|
135
|
-
var apiFunction = function apiFunction(_ref) {
|
|
130
|
+
var apiFunction = exports.apiFunction = function apiFunction(_ref) {
|
|
136
131
|
var name = _ref.name,
|
|
137
132
|
method = _ref.method,
|
|
138
133
|
dataOption = _ref.dataOption,
|
|
@@ -152,8 +147,7 @@ var apiFunction = function apiFunction(_ref) {
|
|
|
152
147
|
}).then(transform)["catch"](handleErrors);
|
|
153
148
|
};
|
|
154
149
|
};
|
|
155
|
-
exports.
|
|
156
|
-
var apiGroup = function apiGroup(_ref2) {
|
|
150
|
+
var apiGroup = exports.apiGroup = function apiGroup(_ref2) {
|
|
157
151
|
var _ref3;
|
|
158
152
|
var dataOption = _ref2.dataOption,
|
|
159
153
|
name = _ref2.name,
|
|
@@ -180,20 +174,17 @@ var apiGroup = function apiGroup(_ref2) {
|
|
|
180
174
|
method: 'delete'
|
|
181
175
|
}, singular))), _ref3;
|
|
182
176
|
};
|
|
183
|
-
exports.
|
|
184
|
-
var formPath = function formPath(_ref4) {
|
|
177
|
+
var formPath = exports.formPath = function formPath(_ref4) {
|
|
185
178
|
var form = _ref4.form,
|
|
186
179
|
kapp = _ref4.kapp;
|
|
187
180
|
return !kapp ? form ? "".concat(_helpers.bundle.spaceLocation(), "/app/forms/").concat(form) : "".concat(_helpers.bundle.spaceLocation(), "/app/forms") : form ? "".concat(_helpers.bundle.spaceLocation(), "/").concat(kapp || _helpers.bundle.kappSlug(), "/").concat(form) : "".concat(_helpers.bundle.spaceLocation(), "/").concat(kapp || _helpers.bundle.kappSlug());
|
|
188
181
|
};
|
|
189
|
-
exports.
|
|
190
|
-
var submissionPath = function submissionPath(_ref5) {
|
|
182
|
+
var submissionPath = exports.submissionPath = function submissionPath(_ref5) {
|
|
191
183
|
var submission = _ref5.submission,
|
|
192
184
|
datastore = _ref5.datastore;
|
|
193
185
|
return datastore ? submission ? "".concat(_helpers.bundle.spaceLocation(), "/app/datastore/submissions/").concat(submission) : "".concat(_helpers.bundle.spaceLocation(), "/app/datastore/submissions") : submission ? "".concat(_helpers.bundle.spaceLocation(), "/submissions/").concat(submission) : "".concat(_helpers.bundle.spaceLocation(), "/submissions");
|
|
194
186
|
};
|
|
195
|
-
exports.
|
|
196
|
-
var corePath = function corePath(_ref6) {
|
|
187
|
+
var corePath = exports.corePath = function corePath(_ref6) {
|
|
197
188
|
var submission = _ref6.submission,
|
|
198
189
|
kapp = _ref6.kapp,
|
|
199
190
|
form = _ref6.form,
|
|
@@ -206,8 +197,7 @@ var corePath = function corePath(_ref6) {
|
|
|
206
197
|
kapp: kapp
|
|
207
198
|
});
|
|
208
199
|
};
|
|
209
|
-
exports.
|
|
210
|
-
var operations = (0, _immutable.Map)({
|
|
200
|
+
var operations = exports.operations = (0, _immutable.Map)({
|
|
211
201
|
startsWith: function startsWith(field, value) {
|
|
212
202
|
return "".concat(field, " =* \"").concat(value, "\"");
|
|
213
203
|
},
|
|
@@ -235,7 +225,6 @@ var operations = (0, _immutable.Map)({
|
|
|
235
225
|
return "".concat(field, " BETWEEN (\"").concat(value.get(0), "\", \"").concat(value.get(1), "\")");
|
|
236
226
|
}
|
|
237
227
|
});
|
|
238
|
-
exports.operations = operations;
|
|
239
228
|
var searchFilters = function searchFilters(filters) {
|
|
240
229
|
var q = (0, _immutable.Map)(filters).filter(function (filter) {
|
|
241
230
|
return filter.getIn(['value'], '') !== '';
|
|
@@ -248,7 +237,7 @@ var searchFilters = function searchFilters(filters) {
|
|
|
248
237
|
q: q
|
|
249
238
|
} : {};
|
|
250
239
|
};
|
|
251
|
-
var generateSortParams = function generateSortParams(_ref7) {
|
|
240
|
+
var generateSortParams = exports.generateSortParams = function generateSortParams(_ref7) {
|
|
252
241
|
var sortColumn = _ref7.sortColumn,
|
|
253
242
|
sortDirection = _ref7.sortDirection;
|
|
254
243
|
return sortColumn ? {
|
|
@@ -256,8 +245,7 @@ var generateSortParams = function generateSortParams(_ref7) {
|
|
|
256
245
|
direction: sortDirection
|
|
257
246
|
} : {};
|
|
258
247
|
};
|
|
259
|
-
exports.
|
|
260
|
-
var generatePaginationParams = function generatePaginationParams(_ref8) {
|
|
248
|
+
var generatePaginationParams = exports.generatePaginationParams = function generatePaginationParams(_ref8) {
|
|
261
249
|
var pageSize = _ref8.pageSize,
|
|
262
250
|
nextPageToken = _ref8.nextPageToken;
|
|
263
251
|
return pageSize && nextPageToken ? {
|
|
@@ -267,14 +255,13 @@ var generatePaginationParams = function generatePaginationParams(_ref8) {
|
|
|
267
255
|
limit: pageSize
|
|
268
256
|
} : {};
|
|
269
257
|
};
|
|
270
|
-
exports.generatePaginationParams = generatePaginationParams;
|
|
271
258
|
var sortParams = function sortParams(sortColumn, sortDirection) {
|
|
272
259
|
return sortColumn ? {
|
|
273
260
|
orderBy: sortColumn,
|
|
274
261
|
direction: sortDirection
|
|
275
262
|
} : {};
|
|
276
263
|
};
|
|
277
|
-
var generateCESearchParams = function generateCESearchParams(_ref9) {
|
|
264
|
+
var generateCESearchParams = exports.generateCESearchParams = function generateCESearchParams(_ref9) {
|
|
278
265
|
var pageSize = _ref9.pageSize,
|
|
279
266
|
filters = _ref9.filters,
|
|
280
267
|
sortColumn = _ref9.sortColumn,
|
|
@@ -285,8 +272,7 @@ var generateCESearchParams = function generateCESearchParams(_ref9) {
|
|
|
285
272
|
pageToken: nextPageToken
|
|
286
273
|
}, searchFilters(filters)), sortParams(sortColumn, sortDirection));
|
|
287
274
|
};
|
|
288
|
-
exports.
|
|
289
|
-
var transformCoreResult = function transformCoreResult(envelope) {
|
|
275
|
+
var transformCoreResult = exports.transformCoreResult = function transformCoreResult(envelope) {
|
|
290
276
|
return function (result, paramData) {
|
|
291
277
|
var count = paramData.nextPageToken ? result.count + paramData.pageTokens.size * paramData.pageSize : result.count;
|
|
292
278
|
return {
|
|
@@ -295,5 +281,4 @@ var transformCoreResult = function transformCoreResult(envelope) {
|
|
|
295
281
|
count: count
|
|
296
282
|
};
|
|
297
283
|
};
|
|
298
|
-
};
|
|
299
|
-
exports.transformCoreResult = transformCoreResult;
|
|
284
|
+
};
|
package/lib/apis/system/index.js
CHANGED
|
@@ -8,7 +8,7 @@ exports.updateTenant = exports.updateSystemUser = exports.updateSystemSecurity =
|
|
|
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,8 +37,7 @@ 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
43
|
tenant = options.tenant,
|
|
@@ -59,8 +57,7 @@ var updateTenant = function updateTenant() {
|
|
|
59
57
|
};
|
|
60
58
|
})["catch"](_http.handleErrors);
|
|
61
59
|
};
|
|
62
|
-
exports.
|
|
63
|
-
var createTenant = function createTenant() {
|
|
60
|
+
var createTenant = exports.createTenant = function createTenant() {
|
|
64
61
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
65
62
|
var tenant = options.tenant,
|
|
66
63
|
multipart = options.multipart;
|
|
@@ -76,8 +73,7 @@ var createTenant = function createTenant() {
|
|
|
76
73
|
};
|
|
77
74
|
})["catch"](_http.handleErrors);
|
|
78
75
|
};
|
|
79
|
-
exports.
|
|
80
|
-
var deleteTenant = function deleteTenant() {
|
|
76
|
+
var deleteTenant = exports.deleteTenant = function deleteTenant() {
|
|
81
77
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
82
78
|
var slug = options.slug;
|
|
83
79
|
if (!slug) {
|
|
@@ -94,8 +90,7 @@ var deleteTenant = function deleteTenant() {
|
|
|
94
90
|
};
|
|
95
91
|
})["catch"](_http.handleErrors);
|
|
96
92
|
};
|
|
97
|
-
exports.
|
|
98
|
-
var fetchSystem = function fetchSystem() {
|
|
93
|
+
var fetchSystem = exports.fetchSystem = function fetchSystem() {
|
|
99
94
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
100
95
|
// Build URL and fetch the system config.
|
|
101
96
|
return _axios["default"].get('/app/system-coordinator/components/core/app/api/v1/config', {
|
|
@@ -107,8 +102,7 @@ var fetchSystem = function fetchSystem() {
|
|
|
107
102
|
};
|
|
108
103
|
})["catch"](_http.handleErrors);
|
|
109
104
|
};
|
|
110
|
-
exports.
|
|
111
|
-
var updateSystem = function updateSystem() {
|
|
105
|
+
var updateSystem = exports.updateSystem = function updateSystem() {
|
|
112
106
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
113
107
|
var system = options.system;
|
|
114
108
|
if (!system) {
|
|
@@ -124,8 +118,7 @@ var updateSystem = function updateSystem() {
|
|
|
124
118
|
};
|
|
125
119
|
})["catch"](_http.handleErrors);
|
|
126
120
|
};
|
|
127
|
-
exports.
|
|
128
|
-
var fetchSystemUser = function fetchSystemUser() {
|
|
121
|
+
var fetchSystemUser = exports.fetchSystemUser = function fetchSystemUser() {
|
|
129
122
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
130
123
|
// Build URL and fetch the space.
|
|
131
124
|
return _axios["default"].get('/app/system-coordinator/api/v1/platform/system-user', {
|
|
@@ -137,8 +130,7 @@ var fetchSystemUser = function fetchSystemUser() {
|
|
|
137
130
|
};
|
|
138
131
|
})["catch"](_http.handleErrors);
|
|
139
132
|
};
|
|
140
|
-
exports.
|
|
141
|
-
var updateSystemUser = function updateSystemUser() {
|
|
133
|
+
var updateSystemUser = exports.updateSystemUser = function updateSystemUser() {
|
|
142
134
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
143
135
|
var user = options.user;
|
|
144
136
|
if (!user) {
|
|
@@ -153,8 +145,7 @@ var updateSystemUser = function updateSystemUser() {
|
|
|
153
145
|
};
|
|
154
146
|
})["catch"](_http.handleErrors);
|
|
155
147
|
};
|
|
156
|
-
exports.
|
|
157
|
-
var fetchSystemIngress = function fetchSystemIngress() {
|
|
148
|
+
var fetchSystemIngress = exports.fetchSystemIngress = function fetchSystemIngress() {
|
|
158
149
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
159
150
|
return _axios["default"].get('/app/system-coordinator/api/v1/platform/ingress', {
|
|
160
151
|
params: (0, _http.paramBuilder)(options),
|
|
@@ -165,8 +156,7 @@ var fetchSystemIngress = function fetchSystemIngress() {
|
|
|
165
156
|
};
|
|
166
157
|
})["catch"](_http.handleErrors);
|
|
167
158
|
};
|
|
168
|
-
exports.
|
|
169
|
-
var updateSystemIngress = function updateSystemIngress() {
|
|
159
|
+
var updateSystemIngress = exports.updateSystemIngress = function updateSystemIngress() {
|
|
170
160
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
171
161
|
var ingress = options.ingress,
|
|
172
162
|
multipart = options.multipart;
|
|
@@ -179,8 +169,7 @@ var updateSystemIngress = function updateSystemIngress() {
|
|
|
179
169
|
};
|
|
180
170
|
})["catch"](_http.handleErrors);
|
|
181
171
|
};
|
|
182
|
-
exports.
|
|
183
|
-
var fetchTaskDbAdapters = function fetchTaskDbAdapters() {
|
|
172
|
+
var fetchTaskDbAdapters = exports.fetchTaskDbAdapters = function fetchTaskDbAdapters() {
|
|
184
173
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
185
174
|
// Build URL and fetch the space.
|
|
186
175
|
return _axios["default"].get("/app/system-coordinator/api/v1/meta/task-db-adapters", {
|
|
@@ -192,8 +181,7 @@ var fetchTaskDbAdapters = function fetchTaskDbAdapters() {
|
|
|
192
181
|
// .then(response => ({ space: response.data.space }))
|
|
193
182
|
["catch"](_http.handleErrors);
|
|
194
183
|
};
|
|
195
|
-
exports.
|
|
196
|
-
var fetchTaskDbAdapter = function fetchTaskDbAdapter() {
|
|
184
|
+
var fetchTaskDbAdapter = exports.fetchTaskDbAdapter = function fetchTaskDbAdapter() {
|
|
197
185
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
198
186
|
// Build URL and fetch the space.
|
|
199
187
|
return _axios["default"].get("/app/system-coordinator/api/v1/meta/task-db-adapters/".concat(options.type), {
|
|
@@ -205,8 +193,7 @@ var fetchTaskDbAdapter = function fetchTaskDbAdapter() {
|
|
|
205
193
|
};
|
|
206
194
|
})["catch"](_http.handleErrors);
|
|
207
195
|
};
|
|
208
|
-
exports.
|
|
209
|
-
var fetchSystemDefaultTaskDbAdapter = function fetchSystemDefaultTaskDbAdapter() {
|
|
196
|
+
var fetchSystemDefaultTaskDbAdapter = exports.fetchSystemDefaultTaskDbAdapter = function fetchSystemDefaultTaskDbAdapter() {
|
|
210
197
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
211
198
|
// Build URL and fetch the space.
|
|
212
199
|
return _axios["default"].get("/app/system-coordinator/api/v1/platform/default-task-db-adapter", {
|
|
@@ -218,8 +205,7 @@ var fetchSystemDefaultTaskDbAdapter = function fetchSystemDefaultTaskDbAdapter()
|
|
|
218
205
|
};
|
|
219
206
|
})["catch"](_http.handleErrors);
|
|
220
207
|
};
|
|
221
|
-
exports.
|
|
222
|
-
var updateSystemDefaultTaskDbAdapter = function updateSystemDefaultTaskDbAdapter() {
|
|
208
|
+
var updateSystemDefaultTaskDbAdapter = exports.updateSystemDefaultTaskDbAdapter = function updateSystemDefaultTaskDbAdapter() {
|
|
223
209
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
224
210
|
var adapter = options.adapter,
|
|
225
211
|
multipart = options.multipart;
|
|
@@ -235,8 +221,7 @@ var updateSystemDefaultTaskDbAdapter = function updateSystemDefaultTaskDbAdapter
|
|
|
235
221
|
};
|
|
236
222
|
})["catch"](_http.handleErrors);
|
|
237
223
|
};
|
|
238
|
-
exports.
|
|
239
|
-
var fetchSystemDefaultSmtpAdapter = function fetchSystemDefaultSmtpAdapter() {
|
|
224
|
+
var fetchSystemDefaultSmtpAdapter = exports.fetchSystemDefaultSmtpAdapter = function fetchSystemDefaultSmtpAdapter() {
|
|
240
225
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
241
226
|
// Build URL and fetch the space.
|
|
242
227
|
return _axios["default"].get('/app/system-coordinator/api/v1/platform/default-smtp-adapter', {
|
|
@@ -248,8 +233,7 @@ var fetchSystemDefaultSmtpAdapter = function fetchSystemDefaultSmtpAdapter() {
|
|
|
248
233
|
};
|
|
249
234
|
})["catch"](_http.handleErrors);
|
|
250
235
|
};
|
|
251
|
-
exports.
|
|
252
|
-
var updateSystemDefaultSmtpAdapter = function updateSystemDefaultSmtpAdapter() {
|
|
236
|
+
var updateSystemDefaultSmtpAdapter = exports.updateSystemDefaultSmtpAdapter = function updateSystemDefaultSmtpAdapter() {
|
|
253
237
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
254
238
|
var adapter = options.adapter;
|
|
255
239
|
if (!adapter) {
|
|
@@ -264,8 +248,7 @@ var updateSystemDefaultSmtpAdapter = function updateSystemDefaultSmtpAdapter() {
|
|
|
264
248
|
};
|
|
265
249
|
})["catch"](_http.handleErrors);
|
|
266
250
|
};
|
|
267
|
-
exports.
|
|
268
|
-
var fetchSystemFilestore = function fetchSystemFilestore() {
|
|
251
|
+
var fetchSystemFilestore = exports.fetchSystemFilestore = function fetchSystemFilestore() {
|
|
269
252
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
270
253
|
// Build URL and fetch the space.
|
|
271
254
|
return _axios["default"].get('/app/system-coordinator/components/agent/app/api/v1/spaces/SYSTEM/filestores/system', {
|
|
@@ -275,8 +258,7 @@ var fetchSystemFilestore = function fetchSystemFilestore() {
|
|
|
275
258
|
return response.data;
|
|
276
259
|
})["catch"](_http.handleErrors);
|
|
277
260
|
};
|
|
278
|
-
exports.
|
|
279
|
-
var updateSystemFilestore = function updateSystemFilestore() {
|
|
261
|
+
var updateSystemFilestore = exports.updateSystemFilestore = function updateSystemFilestore() {
|
|
280
262
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
281
263
|
var filestore = options.filestore;
|
|
282
264
|
if (!filestore) {
|
|
@@ -291,9 +273,8 @@ var updateSystemFilestore = function updateSystemFilestore() {
|
|
|
291
273
|
};
|
|
292
274
|
})["catch"](_http.handleErrors);
|
|
293
275
|
};
|
|
294
|
-
exports.updateSystemFilestore = updateSystemFilestore;
|
|
295
276
|
var VALID_RESTARTABLE_COMPONENTS = ['agent', 'core', 'loghub', 'indexer'];
|
|
296
|
-
var postPlatformComponentRestart = function postPlatformComponentRestart() {
|
|
277
|
+
var postPlatformComponentRestart = exports.postPlatformComponentRestart = function postPlatformComponentRestart() {
|
|
297
278
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
298
279
|
if (!options.component || !VALID_RESTARTABLE_COMPONENTS.includes(options.component)) {
|
|
299
280
|
throw new Error('postPlatformComponentRestart failed! The "component" option was missing or invalid.');
|
|
@@ -306,8 +287,7 @@ var postPlatformComponentRestart = function postPlatformComponentRestart() {
|
|
|
306
287
|
};
|
|
307
288
|
})["catch"](_http.handleErrors);
|
|
308
289
|
};
|
|
309
|
-
exports.
|
|
310
|
-
var fetchPlatformComponentStatus = function fetchPlatformComponentStatus() {
|
|
290
|
+
var fetchPlatformComponentStatus = exports.fetchPlatformComponentStatus = function fetchPlatformComponentStatus() {
|
|
311
291
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
312
292
|
return _axios["default"].get('/app/system-coordinator/api/v1/platform/components').then(function (_ref2) {
|
|
313
293
|
var data = _ref2.data;
|
|
@@ -316,8 +296,7 @@ var fetchPlatformComponentStatus = function fetchPlatformComponentStatus() {
|
|
|
316
296
|
};
|
|
317
297
|
})["catch"](_http.handleErrors);
|
|
318
298
|
};
|
|
319
|
-
exports.
|
|
320
|
-
var systemLogin = function systemLogin() {
|
|
299
|
+
var systemLogin = exports.systemLogin = function systemLogin() {
|
|
321
300
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
322
301
|
var username = options.username,
|
|
323
302
|
password = options.password;
|
|
@@ -328,8 +307,7 @@ var systemLogin = function systemLogin() {
|
|
|
328
307
|
return response.data;
|
|
329
308
|
})["catch"](_http.handleErrors);
|
|
330
309
|
};
|
|
331
|
-
exports.
|
|
332
|
-
var refreshSystemToken = function refreshSystemToken() {
|
|
310
|
+
var refreshSystemToken = exports.refreshSystemToken = function refreshSystemToken() {
|
|
333
311
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
334
312
|
return _axios["default"].post('/app/system-coordinator/refresh', {}, {
|
|
335
313
|
params: (0, _http.paramBuilder)(options),
|
|
@@ -338,8 +316,7 @@ var refreshSystemToken = function refreshSystemToken() {
|
|
|
338
316
|
return response.data;
|
|
339
317
|
})["catch"](_http.handleErrors);
|
|
340
318
|
};
|
|
341
|
-
exports.
|
|
342
|
-
var fetchCassandraConfig = function fetchCassandraConfig() {
|
|
319
|
+
var fetchCassandraConfig = exports.fetchCassandraConfig = function fetchCassandraConfig() {
|
|
343
320
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
344
321
|
return _axios["default"].get('/app/system-coordinator/api/v1/platform/cassandra', {}, {
|
|
345
322
|
params: (0, _http.paramBuilder)(options),
|
|
@@ -350,8 +327,7 @@ var fetchCassandraConfig = function fetchCassandraConfig() {
|
|
|
350
327
|
};
|
|
351
328
|
})["catch"](_http.handleErrors);
|
|
352
329
|
};
|
|
353
|
-
exports.
|
|
354
|
-
var updateCassandraConfig = function updateCassandraConfig() {
|
|
330
|
+
var updateCassandraConfig = exports.updateCassandraConfig = function updateCassandraConfig() {
|
|
355
331
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
356
332
|
var adapter = options.adapter,
|
|
357
333
|
multipart = options.multipart;
|
|
@@ -364,8 +340,7 @@ var updateCassandraConfig = function updateCassandraConfig() {
|
|
|
364
340
|
};
|
|
365
341
|
})["catch"](_http.handleErrors);
|
|
366
342
|
};
|
|
367
|
-
exports.
|
|
368
|
-
var fetchElasticSearchConfig = function fetchElasticSearchConfig() {
|
|
343
|
+
var fetchElasticSearchConfig = exports.fetchElasticSearchConfig = function fetchElasticSearchConfig() {
|
|
369
344
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
370
345
|
return _axios["default"].get('/app/system-coordinator/api/v1/platform/elasticsearch', {}, {
|
|
371
346
|
params: (0, _http.paramBuilder)(options),
|
|
@@ -376,8 +351,7 @@ var fetchElasticSearchConfig = function fetchElasticSearchConfig() {
|
|
|
376
351
|
};
|
|
377
352
|
})["catch"](_http.handleErrors);
|
|
378
353
|
};
|
|
379
|
-
exports.
|
|
380
|
-
var updateElasticSearchConfig = function updateElasticSearchConfig() {
|
|
354
|
+
var updateElasticSearchConfig = exports.updateElasticSearchConfig = function updateElasticSearchConfig() {
|
|
381
355
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
382
356
|
var adapter = options.adapter,
|
|
383
357
|
multipart = options.multipart;
|
|
@@ -390,8 +364,7 @@ var updateElasticSearchConfig = function updateElasticSearchConfig() {
|
|
|
390
364
|
};
|
|
391
365
|
})["catch"](_http.handleErrors);
|
|
392
366
|
};
|
|
393
|
-
exports.
|
|
394
|
-
var fetchSystemSecurity = function fetchSystemSecurity() {
|
|
367
|
+
var fetchSystemSecurity = exports.fetchSystemSecurity = function fetchSystemSecurity() {
|
|
395
368
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
396
369
|
return _axios["default"].get('/app/system-coordinator/api/v1/platform/system-security', {}, {
|
|
397
370
|
params: (0, _http.paramBuilder)(options),
|
|
@@ -402,8 +375,7 @@ var fetchSystemSecurity = function fetchSystemSecurity() {
|
|
|
402
375
|
};
|
|
403
376
|
})["catch"](_http.handleErrors);
|
|
404
377
|
};
|
|
405
|
-
exports.
|
|
406
|
-
var updateSystemSecurity = function updateSystemSecurity() {
|
|
378
|
+
var updateSystemSecurity = exports.updateSystemSecurity = function updateSystemSecurity() {
|
|
407
379
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
408
380
|
var systemSecurity = options.systemSecurity;
|
|
409
381
|
if (!systemSecurity) {
|
|
@@ -418,8 +390,7 @@ var updateSystemSecurity = function updateSystemSecurity() {
|
|
|
418
390
|
};
|
|
419
391
|
})["catch"](_http.handleErrors);
|
|
420
392
|
};
|
|
421
|
-
exports.
|
|
422
|
-
var fetchSystemLicense = function fetchSystemLicense() {
|
|
393
|
+
var fetchSystemLicense = exports.fetchSystemLicense = function fetchSystemLicense() {
|
|
423
394
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
424
395
|
return _axios["default"].get('/app/system-coordinator/components/core/app/api/v1/license', {
|
|
425
396
|
params: (0, _http.paramBuilder)(options),
|
|
@@ -430,8 +401,7 @@ var fetchSystemLicense = function fetchSystemLicense() {
|
|
|
430
401
|
};
|
|
431
402
|
})["catch"](_http.handleErrors);
|
|
432
403
|
};
|
|
433
|
-
exports.
|
|
434
|
-
var deleteSystemLicense = function deleteSystemLicense() {
|
|
404
|
+
var deleteSystemLicense = exports.deleteSystemLicense = function deleteSystemLicense() {
|
|
435
405
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
436
406
|
return _axios["default"]["delete"]('/app/system-coordinator/components/core/app/api/v1/license', {
|
|
437
407
|
params: (0, _http.paramBuilder)(options),
|
|
@@ -442,8 +412,7 @@ var deleteSystemLicense = function deleteSystemLicense() {
|
|
|
442
412
|
};
|
|
443
413
|
})["catch"](_http.handleErrors);
|
|
444
414
|
};
|
|
445
|
-
exports.
|
|
446
|
-
var resetSystemLicense = function resetSystemLicense() {
|
|
415
|
+
var resetSystemLicense = exports.resetSystemLicense = function resetSystemLicense() {
|
|
447
416
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
448
417
|
return _axios["default"].put('/app/system-coordinator/components/core/app/api/v1/license/reset', {
|
|
449
418
|
params: (0, _http.paramBuilder)(options),
|
|
@@ -454,8 +423,7 @@ var resetSystemLicense = function resetSystemLicense() {
|
|
|
454
423
|
};
|
|
455
424
|
})["catch"](_http.handleErrors);
|
|
456
425
|
};
|
|
457
|
-
exports.
|
|
458
|
-
var importSystemLicense = function importSystemLicense() {
|
|
426
|
+
var importSystemLicense = exports.importSystemLicense = function importSystemLicense() {
|
|
459
427
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
460
428
|
var content = options.content;
|
|
461
429
|
var data = new FormData();
|
|
@@ -471,8 +439,7 @@ var importSystemLicense = function importSystemLicense() {
|
|
|
471
439
|
};
|
|
472
440
|
})["catch"](_http.handleErrors);
|
|
473
441
|
};
|
|
474
|
-
exports.
|
|
475
|
-
var fetchSystemLicenseStats = function fetchSystemLicenseStats() {
|
|
442
|
+
var fetchSystemLicenseStats = exports.fetchSystemLicenseStats = function fetchSystemLicenseStats() {
|
|
476
443
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
477
444
|
return _axios["default"].get('/app/system-coordinator/components/core/app/api/v1/license/statistics', {
|
|
478
445
|
params: (0, _http.paramBuilder)(options),
|
|
@@ -483,8 +450,7 @@ var fetchSystemLicenseStats = function fetchSystemLicenseStats() {
|
|
|
483
450
|
};
|
|
484
451
|
})["catch"](_http.handleErrors);
|
|
485
452
|
};
|
|
486
|
-
exports.
|
|
487
|
-
var fetchSystemLicenseCheck = function fetchSystemLicenseCheck() {
|
|
453
|
+
var fetchSystemLicenseCheck = exports.fetchSystemLicenseCheck = function fetchSystemLicenseCheck() {
|
|
488
454
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
489
455
|
return _axios["default"].get('/app/system-coordinator/components/core/app/api/v1/license/check', {
|
|
490
456
|
params: (0, _http.paramBuilder)(options),
|
|
@@ -495,8 +461,7 @@ var fetchSystemLicenseCheck = function fetchSystemLicenseCheck() {
|
|
|
495
461
|
};
|
|
496
462
|
})["catch"](_http.handleErrors);
|
|
497
463
|
};
|
|
498
|
-
exports.
|
|
499
|
-
var fetchSystemBackgroundTasks = function fetchSystemBackgroundTasks() {
|
|
464
|
+
var fetchSystemBackgroundTasks = exports.fetchSystemBackgroundTasks = function fetchSystemBackgroundTasks() {
|
|
500
465
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
501
466
|
return _axios["default"].get('/app/system-coordinator/api/v1/backgroundTasks', {
|
|
502
467
|
params: (0, _http.paramBuilder)(options),
|
|
@@ -507,8 +472,7 @@ var fetchSystemBackgroundTasks = function fetchSystemBackgroundTasks() {
|
|
|
507
472
|
};
|
|
508
473
|
})["catch"](_http.handleErrors);
|
|
509
474
|
};
|
|
510
|
-
exports.
|
|
511
|
-
var fetchSystemBackgroundTask = function fetchSystemBackgroundTask() {
|
|
475
|
+
var fetchSystemBackgroundTask = exports.fetchSystemBackgroundTask = function fetchSystemBackgroundTask() {
|
|
512
476
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
513
477
|
var id = options.id;
|
|
514
478
|
if (!id) {
|
|
@@ -523,8 +487,7 @@ var fetchSystemBackgroundTask = function fetchSystemBackgroundTask() {
|
|
|
523
487
|
};
|
|
524
488
|
})["catch"](_http.handleErrors);
|
|
525
489
|
};
|
|
526
|
-
exports.
|
|
527
|
-
var deleteSystemBackgroundTask = function deleteSystemBackgroundTask() {
|
|
490
|
+
var deleteSystemBackgroundTask = exports.deleteSystemBackgroundTask = function deleteSystemBackgroundTask() {
|
|
528
491
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
529
492
|
var id = options.id;
|
|
530
493
|
if (!id) {
|
|
@@ -539,8 +502,7 @@ var deleteSystemBackgroundTask = function deleteSystemBackgroundTask() {
|
|
|
539
502
|
};
|
|
540
503
|
})["catch"](_http.handleErrors);
|
|
541
504
|
};
|
|
542
|
-
exports.
|
|
543
|
-
var rotateEncryptionKey = function rotateEncryptionKey() {
|
|
505
|
+
var rotateEncryptionKey = exports.rotateEncryptionKey = function rotateEncryptionKey() {
|
|
544
506
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
545
507
|
var spaceSlug = options.spaceSlug;
|
|
546
508
|
return _axios["default"].post(spaceSlug ? "/app/system-coordinator/api/v1/tenants/".concat(spaceSlug, "/rotateEncryptionKey") : '/app/system-coordinator/api/v1/platform/rotateEncryptionKey', {}, {
|
|
@@ -552,8 +514,7 @@ var rotateEncryptionKey = function rotateEncryptionKey() {
|
|
|
552
514
|
};
|
|
553
515
|
})["catch"](_http.handleErrors);
|
|
554
516
|
};
|
|
555
|
-
exports.
|
|
556
|
-
var fetchTrustedCertificates = function fetchTrustedCertificates() {
|
|
517
|
+
var fetchTrustedCertificates = exports.fetchTrustedCertificates = function fetchTrustedCertificates() {
|
|
557
518
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
558
519
|
var spaceSlug = options.spaceSlug;
|
|
559
520
|
return _axios["default"].get(spaceSlug ? "/app/system-coordinator/api/v1/tenants/".concat(spaceSlug, "/trusted") : '/app/system-coordinator/api/v1/platform/trusted', {
|
|
@@ -565,8 +526,7 @@ var fetchTrustedCertificates = function fetchTrustedCertificates() {
|
|
|
565
526
|
};
|
|
566
527
|
})["catch"](_http.handleErrors);
|
|
567
528
|
};
|
|
568
|
-
exports.
|
|
569
|
-
var createTrustedCertificate = function createTrustedCertificate() {
|
|
529
|
+
var createTrustedCertificate = exports.createTrustedCertificate = function createTrustedCertificate() {
|
|
570
530
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
571
531
|
var spaceSlug = options.spaceSlug,
|
|
572
532
|
certificates = options.certificates;
|
|
@@ -584,8 +544,7 @@ var createTrustedCertificate = function createTrustedCertificate() {
|
|
|
584
544
|
};
|
|
585
545
|
})["catch"](_http.handleErrors);
|
|
586
546
|
};
|
|
587
|
-
exports.
|
|
588
|
-
var deleteTrustedCertificate = function deleteTrustedCertificate() {
|
|
547
|
+
var deleteTrustedCertificate = exports.deleteTrustedCertificate = function deleteTrustedCertificate() {
|
|
589
548
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
590
549
|
var spaceSlug = options.spaceSlug,
|
|
591
550
|
fingerprint = options.fingerprint;
|
|
@@ -601,8 +560,7 @@ var deleteTrustedCertificate = function deleteTrustedCertificate() {
|
|
|
601
560
|
};
|
|
602
561
|
})["catch"](_http.handleErrors);
|
|
603
562
|
};
|
|
604
|
-
exports.
|
|
605
|
-
var fetchNotifications = function fetchNotifications() {
|
|
563
|
+
var fetchNotifications = exports.fetchNotifications = function fetchNotifications() {
|
|
606
564
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
607
565
|
return _axios["default"].get('/app/system-coordinator/api/v1/platform/notifications', {
|
|
608
566
|
params: (0, _http.paramBuilder)(options),
|
|
@@ -613,8 +571,7 @@ var fetchNotifications = function fetchNotifications() {
|
|
|
613
571
|
};
|
|
614
572
|
})["catch"](_http.handleErrors);
|
|
615
573
|
};
|
|
616
|
-
exports.
|
|
617
|
-
var fetchNotificationLabels = function fetchNotificationLabels() {
|
|
574
|
+
var fetchNotificationLabels = exports.fetchNotificationLabels = function fetchNotificationLabels() {
|
|
618
575
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
619
576
|
return _axios["default"].get('/app/system-coordinator/api/v1/platform/notifications/labels', {
|
|
620
577
|
params: (0, _http.paramBuilder)(options),
|
|
@@ -625,8 +582,7 @@ var fetchNotificationLabels = function fetchNotificationLabels() {
|
|
|
625
582
|
};
|
|
626
583
|
})["catch"](_http.handleErrors);
|
|
627
584
|
};
|
|
628
|
-
exports.
|
|
629
|
-
var restartResources = function restartResources(_ref3) {
|
|
585
|
+
var restartResources = exports.restartResources = function restartResources(_ref3) {
|
|
630
586
|
var _ref3$options = _ref3.options,
|
|
631
587
|
options = _ref3$options === void 0 ? {} : _ref3$options,
|
|
632
588
|
notification = _ref3.notification;
|
|
@@ -638,5 +594,4 @@ var restartResources = function restartResources(_ref3) {
|
|
|
638
594
|
trustedCertificates: response.data.trustedCertificates
|
|
639
595
|
};
|
|
640
596
|
})["catch"](_http.handleErrors);
|
|
641
|
-
};
|
|
642
|
-
exports.restartResources = restartResources;
|
|
597
|
+
};
|