@kineticdata/react 5.1.2 → 6.0.1

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