@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,16 +1,21 @@
1
- import { generateTable } from '../../table/Table';
2
- import { fetchUsage } from '../../../apis';
3
- import { defineFilter } from '../../../helpers';
4
- var clientSide = defineFilter(true).equals('type', 'type').startsWith('source', 'source').startsWith('group', 'group').startsWith('name', 'name').end();
1
+ "use strict";
5
2
 
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.UsageTable = void 0;
7
+ var _Table = require("../../table/Table");
8
+ var _apis = require("../../../apis");
9
+ var _helpers = require("../../../helpers");
10
+ var clientSide = (0, _helpers.defineFilter)(true).equals('type', 'type').startsWith('source', 'source').startsWith('group', 'group').startsWith('name', 'name').end();
6
11
  var dataSource = function dataSource(_ref) {
7
12
  var definitionId = _ref.definitionId,
8
- sourceName = _ref.sourceName,
9
- sourceGroup = _ref.sourceGroup,
10
- name = _ref.name,
11
- usageType = _ref.usageType;
13
+ sourceName = _ref.sourceName,
14
+ sourceGroup = _ref.sourceGroup,
15
+ name = _ref.name,
16
+ usageType = _ref.usageType;
12
17
  return {
13
- fn: fetchUsage,
18
+ fn: _apis.fetchUsage,
14
19
  clientSide: clientSide,
15
20
  params: function params() {
16
21
  return [{
@@ -28,7 +33,6 @@ var dataSource = function dataSource(_ref) {
28
33
  }
29
34
  };
30
35
  };
31
-
32
36
  var filters = function filters() {
33
37
  return function () {
34
38
  return [{
@@ -50,7 +54,6 @@ var filters = function filters() {
50
54
  }];
51
55
  };
52
56
  };
53
-
54
57
  var columns = [{
55
58
  value: 'type',
56
59
  title: 'Type',
@@ -76,10 +79,11 @@ var columns = [{
76
79
  title: 'Updated',
77
80
  sortable: true
78
81
  }];
79
- export var UsageTable = generateTable({
82
+ var UsageTable = (0, _Table.generateTable)({
80
83
  tableOptions: ['definitionId', 'sourceName', 'sourceGroup', 'name', 'usageType'],
81
84
  columns: columns,
82
85
  filters: filters,
83
86
  dataSource: dataSource
84
87
  });
88
+ exports.UsageTable = UsageTable;
85
89
  UsageTable.displayName = 'UsageTable';
@@ -1,11 +1,16 @@
1
- import { fetchEngineSettings, updateEngineSettings } from '../../../apis';
2
- import { generateForm } from '../../form/Form';
1
+ "use strict";
3
2
 
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.EngineSettingsForm = void 0;
7
+ var _apis = require("../../../apis");
8
+ var _Form = require("../../form/Form");
4
9
  var dataSources = function dataSources(_ref) {
5
10
  var spaceSlug = _ref.spaceSlug;
6
11
  return {
7
12
  settings: {
8
- fn: fetchEngineSettings,
13
+ fn: _apis.fetchEngineSettings,
9
14
  params: [{
10
15
  spaceSlug: spaceSlug
11
16
  }],
@@ -15,19 +20,17 @@ var dataSources = function dataSources(_ref) {
15
20
  }
16
21
  };
17
22
  };
18
-
19
23
  var handleSubmit = function handleSubmit(_ref2) {
20
24
  var spaceSlug = _ref2.spaceSlug;
21
25
  return function (values) {
22
26
  return new Promise(function (resolve, reject) {
23
27
  var settings = values.toJS();
24
- updateEngineSettings({
28
+ (0, _apis.updateEngineSettings)({
25
29
  spaceSlug: spaceSlug,
26
30
  settings: settings
27
31
  }).then(function (_ref3) {
28
32
  var message = _ref3.message,
29
- error = _ref3.error;
30
-
33
+ error = _ref3.error;
31
34
  if (message) {
32
35
  resolve(message);
33
36
  } else {
@@ -37,7 +40,6 @@ var handleSubmit = function handleSubmit(_ref2) {
37
40
  });
38
41
  };
39
42
  };
40
-
41
43
  var fields = function fields() {
42
44
  return function (_ref4) {
43
45
  var settings = _ref4.settings;
@@ -62,10 +64,10 @@ var fields = function fields() {
62
64
  }];
63
65
  };
64
66
  };
65
-
66
- export var EngineSettingsForm = generateForm({
67
+ var EngineSettingsForm = (0, _Form.generateForm)({
67
68
  formOptions: ['spaceSlug'],
68
69
  dataSources: dataSources,
69
70
  fields: fields,
70
71
  handleSubmit: handleSubmit
71
- });
72
+ });
73
+ exports.EngineSettingsForm = EngineSettingsForm;
@@ -1,13 +1,18 @@
1
- import { fetchTaskRunErrors } from '../../../apis/task';
2
- import { generateTable } from '../../table/Table';
3
- import { getIn } from 'immutable';
4
- var ERROR_TYPES = ['Connector Error', 'Handler Error', 'Invalid Trigger Error', 'Missing Handler Error', 'Missing Routine Error', 'Node Message Error', 'Node Parameter Error', 'Source Error', 'Tree Error', 'Unidentified Error', 'Unknown Variable Error'];
1
+ "use strict";
5
2
 
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.RunErrorTable = void 0;
7
+ var _task = require("../../../apis/task");
8
+ var _Table = require("../../table/Table");
9
+ var _immutable = require("immutable");
10
+ var ERROR_TYPES = ['Connector Error', 'Handler Error', 'Invalid Trigger Error', 'Missing Handler Error', 'Missing Routine Error', 'Node Message Error', 'Node Parameter Error', 'Source Error', 'Tree Error', 'Unidentified Error', 'Unknown Variable Error'];
6
11
  var dataSource = function dataSource(_ref) {
7
12
  var runId = _ref.runId,
8
- id = _ref.id;
13
+ id = _ref.id;
9
14
  return {
10
- fn: fetchTaskRunErrors,
15
+ fn: _task.fetchTaskRunErrors,
11
16
  params: function params(paramData) {
12
17
  return [{
13
18
  runId: runId,
@@ -41,7 +46,6 @@ var dataSource = function dataSource(_ref) {
41
46
  }
42
47
  };
43
48
  };
44
-
45
49
  var filters = function filters() {
46
50
  return function () {
47
51
  return [{
@@ -83,88 +87,107 @@ var filters = function filters() {
83
87
  }];
84
88
  };
85
89
  };
86
-
87
90
  var columns = [{
91
+ // Note: This appears as 'Occured' in the columnControl
88
92
  value: 'createdAt',
89
93
  title: 'Created At',
90
- sortable: true
94
+ sortable: true,
95
+ toggleable: true
91
96
  }, {
92
97
  value: 'createdBy',
93
98
  title: 'Created By',
94
- sortable: false
99
+ sortable: false,
100
+ toggleable: true
95
101
  }, {
96
102
  value: 'engineIdentification',
97
103
  title: 'Engine Identification',
98
- sortable: false
104
+ sortable: false,
105
+ toggleable: true
99
106
  }, {
100
107
  value: 'id',
101
108
  title: 'Error Id',
102
- sortable: false
109
+ sortable: false,
110
+ toggleable: false,
111
+ columnOrder: 'first'
103
112
  }, {
104
113
  value: 'relatedItem1Id',
105
114
  title: 'Related Item 1 ID',
106
- sortable: false
115
+ sortable: false,
116
+ toggleable: true
107
117
  }, {
108
118
  value: 'relatedItem1Type',
109
119
  title: 'Related Item 1 Type',
110
- sortable: false
120
+ sortable: false,
121
+ toggleable: true
111
122
  }, {
112
123
  value: 'relatedItem2Id',
113
124
  title: 'Related Item 2 ID',
114
- sortable: false
125
+ sortable: false,
126
+ toggleable: true
115
127
  }, {
116
128
  value: 'relatedItem2Type',
117
129
  title: 'Related Item 2 Type',
118
- sortable: false
130
+ sortable: false,
131
+ toggleable: true
119
132
  }, {
120
133
  value: 'status',
121
134
  title: 'Status',
122
- sortable: false
135
+ sortable: false,
136
+ toggleable: true
123
137
  }, {
124
138
  value: 'sourceName',
125
139
  title: 'Source',
126
140
  sortable: false,
141
+ toggleable: true,
127
142
  valueTransform: function valueTransform(_value, row) {
128
- return getIn(row, ['run', 'tree', 'sourceName'], '');
143
+ return (0, _immutable.getIn)(row, ['run', 'tree', 'sourceName'], '');
129
144
  }
130
145
  }, {
131
146
  value: 'sourceGroup',
132
147
  title: 'Group',
133
148
  sortable: false,
149
+ toggleable: true,
134
150
  valueTransform: function valueTransform(_value, row) {
135
- return getIn(row, ['run', 'tree', 'sourceGroup'], '');
151
+ return (0, _immutable.getIn)(row, ['run', 'tree', 'sourceGroup'], '');
136
152
  }
137
153
  }, {
138
154
  value: 'treeName',
139
155
  title: 'Name',
140
156
  sortable: false,
157
+ toggleable: true,
141
158
  valueTransform: function valueTransform(_value, row) {
142
- return getIn(row, ['run', 'tree', 'name'], '');
159
+ return (0, _immutable.getIn)(row, ['run', 'tree', 'name'], '');
143
160
  }
144
161
  }, {
145
162
  value: 'Summary',
146
163
  title: 'Summary',
147
- sortable: false
164
+ sortable: false,
165
+ toggleable: true
148
166
  }, {
149
167
  value: 'text',
150
168
  title: 'Text',
151
- sortable: false
169
+ sortable: false,
170
+ toggleable: true
152
171
  }, {
153
172
  value: 'type',
154
173
  title: 'Type',
155
- sortable: false
174
+ sortable: false,
175
+ toggleable: true
156
176
  }, {
157
177
  value: 'updatedAt',
158
178
  title: 'Updated At',
159
- sortable: true
179
+ sortable: true,
180
+ toggleable: true
160
181
  }, {
161
182
  value: 'updatedBy',
162
183
  title: 'Updated By',
163
- sortable: false
184
+ sortable: false,
185
+ toggleable: true
164
186
  }];
165
- export var RunErrorTable = generateTable({
187
+ var RunErrorTable = (0, _Table.generateTable)({
166
188
  tableOptions: ['runId'],
167
189
  columns: columns,
168
190
  filters: filters,
169
191
  dataSource: dataSource
170
- });
192
+ });
193
+ exports.RunErrorTable = RunErrorTable;
@@ -1,17 +1,22 @@
1
- import { generateTable } from '../../table/Table';
2
- import { fetchSystemErrors } from '../../../apis';
3
- import { defineFilter } from '../../../helpers';
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.SystemErrorsTable = void 0;
7
+ var _Table = require("../../table/Table");
8
+ var _apis = require("../../../apis");
9
+ var _helpers = require("../../../helpers");
4
10
  var STATUS_VALUES = ['Active', 'Handled'].map(function (s) {
5
11
  return {
6
12
  value: s,
7
13
  label: s
8
14
  };
9
15
  });
10
- var clientSide = defineFilter(true).equals('status', 'status').end();
11
-
16
+ var clientSide = (0, _helpers.defineFilter)(true).equals('status', 'status').end();
12
17
  var dataSource = function dataSource() {
13
18
  return {
14
- fn: fetchSystemErrors,
19
+ fn: _apis.fetchSystemErrors,
15
20
  clientSide: clientSide,
16
21
  params: function params() {
17
22
  return [{
@@ -25,7 +30,6 @@ var dataSource = function dataSource() {
25
30
  }
26
31
  };
27
32
  };
28
-
29
33
  var filters = function filters() {
30
34
  return function () {
31
35
  return [{
@@ -36,7 +40,6 @@ var filters = function filters() {
36
40
  }];
37
41
  };
38
42
  };
39
-
40
43
  var columns = [{
41
44
  value: 'summary',
42
45
  title: 'System Error',
@@ -74,10 +77,11 @@ var columns = [{
74
77
  title: 'Updated By',
75
78
  sortable: true
76
79
  }];
77
- export var SystemErrorsTable = generateTable({
80
+ var SystemErrorsTable = (0, _Table.generateTable)({
78
81
  columns: columns,
79
82
  filters: filters,
80
83
  dataSource: dataSource
81
84
  });
85
+ exports.SystemErrorsTable = SystemErrorsTable;
82
86
  SystemErrorsTable.propTypes = {};
83
87
  SystemErrorsTable.displayName = 'SystemErrorsTable';
@@ -1,14 +1,20 @@
1
- import React from 'react';
2
- import { fetchHandler, fetchTaskCategories, updateHandler } from '../../../apis';
3
- import { Form } from '../../form/Form';
4
- import { get, Map, List } from 'immutable';
5
- import { buildPropertyFields } from '../../form/Form.helpers';
1
+ "use strict";
6
2
 
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")["default"];
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.HandlerForm = void 0;
8
+ var _react = _interopRequireDefault(require("react"));
9
+ var _apis = require("../../../apis");
10
+ var _Form = require("../../form/Form");
11
+ var _immutable = require("immutable");
12
+ var _Form2 = require("../../form/Form.helpers");
7
13
  var dataSources = function dataSources(_ref) {
8
14
  var definitionId = _ref.definitionId;
9
15
  return {
10
16
  handler: {
11
- fn: fetchHandler,
17
+ fn: _apis.fetchHandler,
12
18
  params: definitionId && [{
13
19
  definitionId: definitionId,
14
20
  include: 'details,categories,parameters,results,properties'
@@ -18,7 +24,7 @@ var dataSources = function dataSources(_ref) {
18
24
  }
19
25
  },
20
26
  categories: {
21
- fn: fetchTaskCategories,
27
+ fn: _apis.fetchTaskCategories,
22
28
  params: [],
23
29
  transform: function transform(result) {
24
30
  return result.categories;
@@ -26,17 +32,15 @@ var dataSources = function dataSources(_ref) {
26
32
  }
27
33
  };
28
34
  };
29
-
30
35
  var handleSubmit = function handleSubmit(_ref2) {
31
36
  var definitionId = _ref2.definitionId;
32
37
  return function (values) {
33
- updateHandler({
38
+ (0, _apis.updateHandler)({
34
39
  definitionId: definitionId,
35
40
  handler: values.toJS()
36
41
  }).then(function (_ref3) {
37
42
  var handler = _ref3.handler,
38
- error = _ref3.error;
39
-
43
+ error = _ref3.error;
40
44
  if (error) {
41
45
  throw error.statusCode === 400 && error.message || 'There was an error saving the handler';
42
46
  } else {
@@ -45,71 +49,67 @@ var handleSubmit = function handleSubmit(_ref2) {
45
49
  });
46
50
  };
47
51
  };
48
-
49
52
  var fields = function fields(_ref4) {
50
53
  var definitionId = _ref4.definitionId;
51
54
  return function (_ref5) {
52
55
  var handler = _ref5.handler,
53
- categories = _ref5.categories;
54
-
56
+ categories = _ref5.categories;
55
57
  if (!(definitionId && handler && categories)) {
56
58
  return false;
57
59
  }
58
-
59
- var _buildPropertyFields = buildPropertyFields({
60
- isNew: false,
61
- properties: handler.get('properties'),
62
- getName: function getName(property) {
63
- return property.get('name');
64
- },
65
- getRequired: function getRequired(property) {
66
- return property.get('required');
67
- },
68
- getSensitive: function getSensitive(property) {
69
- return property.get('type') === 'Encrypted';
70
- },
71
- getValue: function getValue(property) {
72
- return property.get('type') === 'Encrypted' ? '' : property.get('value') === null ? '' : property.get('value');
73
- }
74
- }),
75
- propertiesFields = _buildPropertyFields.propertiesFields,
76
- propertiesSerialize = _buildPropertyFields.propertiesSerialize;
77
-
60
+ var _buildPropertyFields = (0, _Form2.buildPropertyFields)({
61
+ isNew: false,
62
+ properties: handler.get('properties'),
63
+ getName: function getName(property) {
64
+ return property.get('name');
65
+ },
66
+ getRequired: function getRequired(property) {
67
+ return property.get('required');
68
+ },
69
+ getSensitive: function getSensitive(property) {
70
+ return property.get('type') === 'Encrypted';
71
+ },
72
+ getValue: function getValue(property) {
73
+ return property.get('type') === 'Encrypted' ? '' : property.get('value') === null ? '' : property.get('value');
74
+ }
75
+ }),
76
+ propertiesFields = _buildPropertyFields.propertiesFields,
77
+ propertiesSerialize = _buildPropertyFields.propertiesSerialize;
78
78
  return definitionId && handler && categories && [{
79
79
  name: 'definitionId',
80
80
  label: 'Definition ID',
81
81
  type: 'text',
82
82
  "transient": true,
83
83
  enabled: false,
84
- initialValue: get(handler, 'definitionId', '')
84
+ initialValue: (0, _immutable.get)(handler, 'definitionId', '')
85
85
  }, {
86
86
  name: 'definitionName',
87
87
  label: 'Definition Name',
88
88
  type: 'text',
89
89
  "transient": true,
90
90
  enabled: false,
91
- initialValue: get(handler, 'definitionName', '')
91
+ initialValue: (0, _immutable.get)(handler, 'definitionName', '')
92
92
  }, {
93
93
  name: 'definitionVersion',
94
94
  label: 'Definition Version',
95
95
  type: 'text',
96
96
  "transient": true,
97
97
  enabled: false,
98
- initialValue: get(handler, 'definitionVersion', '')
98
+ initialValue: (0, _immutable.get)(handler, 'definitionVersion', '')
99
99
  }, {
100
100
  name: 'name',
101
101
  label: 'Name',
102
102
  type: 'text',
103
103
  "transient": true,
104
104
  enabled: false,
105
- initialValue: get(handler, 'name', '')
105
+ initialValue: (0, _immutable.get)(handler, 'name', '')
106
106
  }, {
107
107
  name: 'description',
108
108
  label: 'Description',
109
109
  type: 'text',
110
110
  "transient": true,
111
111
  enabled: false,
112
- initialValue: get(handler, 'description', '')
112
+ initialValue: (0, _immutable.get)(handler, 'description', '')
113
113
  }, {
114
114
  name: 'status',
115
115
  label: 'Status',
@@ -122,19 +122,19 @@ var fields = function fields(_ref4) {
122
122
  label: 'Paused',
123
123
  value: 'Paused'
124
124
  }],
125
- initialValue: get(handler, 'status', '')
125
+ initialValue: (0, _immutable.get)(handler, 'status', '')
126
126
  }, {
127
127
  name: 'categories',
128
128
  label: 'Categories',
129
129
  type: 'select-multi',
130
130
  required: false,
131
- initialValue: get(handler, 'categories', List()).map(function (c) {
131
+ initialValue: (0, _immutable.get)(handler, 'categories', (0, _immutable.List)()).map(function (c) {
132
132
  return c.get('name');
133
133
  }),
134
134
  options: categories.sort(function (a, b) {
135
135
  return a.get('name').toLowerCase().localeCompare(b.get('name').toLowerCase());
136
136
  }).map(function (c) {
137
- return Map({
137
+ return (0, _immutable.Map)({
138
138
  label: c.get('name'),
139
139
  value: c.get('name')
140
140
  });
@@ -150,23 +150,22 @@ var fields = function fields(_ref4) {
150
150
  }, {
151
151
  name: 'properties',
152
152
  visible: false,
153
- initialValue: get(handler, 'properties', []),
153
+ initialValue: (0, _immutable.get)(handler, 'properties', []),
154
154
  serialize: propertiesSerialize
155
155
  }].concat(propertiesFields);
156
156
  };
157
157
  };
158
-
159
- export var HandlerForm = function HandlerForm(_ref7) {
158
+ var HandlerForm = function HandlerForm(_ref7) {
160
159
  var addFields = _ref7.addFields,
161
- alterFields = _ref7.alterFields,
162
- fieldSet = _ref7.fieldSet,
163
- formKey = _ref7.formKey,
164
- components = _ref7.components,
165
- onSave = _ref7.onSave,
166
- onError = _ref7.onError,
167
- children = _ref7.children,
168
- definitionId = _ref7.definitionId;
169
- return /*#__PURE__*/React.createElement(Form, {
160
+ alterFields = _ref7.alterFields,
161
+ fieldSet = _ref7.fieldSet,
162
+ formKey = _ref7.formKey,
163
+ components = _ref7.components,
164
+ onSave = _ref7.onSave,
165
+ onError = _ref7.onError,
166
+ children = _ref7.children,
167
+ definitionId = _ref7.definitionId;
168
+ return /*#__PURE__*/_react["default"].createElement(_Form.Form, {
170
169
  addFields: addFields,
171
170
  alterFields: alterFields,
172
171
  fieldSet: fieldSet,
@@ -181,4 +180,5 @@ export var HandlerForm = function HandlerForm(_ref7) {
181
180
  definitionId: definitionId
182
181
  }
183
182
  }, children);
184
- };
183
+ };
184
+ exports.HandlerForm = HandlerForm;
@@ -1,11 +1,16 @@
1
- import { generateTable } from '../../table/Table';
2
- import { fetchHandlers } from '../../../apis';
3
- import { defineFilter } from '../../../helpers';
4
- var clientSide = defineFilter(true).equals('id', 'id').startsWith('name', 'name').equals('status', 'status').equals('definitionId', 'definitionId').startsWith('definitionName', 'definitionName').equals('definitionVersion', 'definitionVersion').end();
1
+ "use strict";
5
2
 
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.HandlerTable = void 0;
7
+ var _Table = require("../../table/Table");
8
+ var _apis = require("../../../apis");
9
+ var _helpers = require("../../../helpers");
10
+ var clientSide = (0, _helpers.defineFilter)(true).equals('id', 'id').startsWith('name', 'name').equals('status', 'status').equals('definitionId', 'definitionId').startsWith('definitionName', 'definitionName').equals('definitionVersion', 'definitionVersion').end();
6
11
  var dataSource = function dataSource() {
7
12
  return {
8
- fn: fetchHandlers,
13
+ fn: _apis.fetchHandlers,
9
14
  params: function params() {
10
15
  return [{
11
16
  include: 'details'
@@ -19,7 +24,6 @@ var dataSource = function dataSource() {
19
24
  clientSide: clientSide
20
25
  };
21
26
  };
22
-
23
27
  var filters = function filters() {
24
28
  return function () {
25
29
  return [{
@@ -56,44 +60,56 @@ var filters = function filters() {
56
60
  }];
57
61
  };
58
62
  };
59
-
60
63
  var columns = [{
61
64
  title: 'ID',
62
- value: 'id'
65
+ value: 'id',
66
+ toggleable: true
63
67
  }, {
64
68
  title: 'Name',
65
- value: 'name'
69
+ value: 'name',
70
+ toggleable: false,
71
+ columnOrder: 'first'
66
72
  }, {
67
73
  title: 'Status',
68
- value: 'status'
74
+ value: 'status',
75
+ toggleable: true
69
76
  }, {
70
77
  title: 'Definition ID',
71
- value: 'definitionId'
78
+ value: 'definitionId',
79
+ toggleable: true
72
80
  }, {
73
81
  title: 'Definition Name',
74
- value: 'definitionName'
82
+ value: 'definitionName',
83
+ toggleable: true
75
84
  }, {
76
85
  title: 'Definition Version',
77
- value: 'definitionVersion'
86
+ value: 'definitionVersion',
87
+ toggleable: true
78
88
  }, {
79
89
  title: 'Description',
80
- value: 'description'
90
+ value: 'description',
91
+ toggleable: true
81
92
  }, {
82
93
  title: 'Created',
83
- value: 'createdAt'
94
+ value: 'createdAt',
95
+ toggleable: true
84
96
  }, {
85
97
  title: 'Created By',
86
- value: 'createdBy'
98
+ value: 'createdBy',
99
+ toggleable: true
87
100
  }, {
88
101
  title: 'Updated',
89
- value: 'updatedAt'
102
+ value: 'updatedAt',
103
+ toggleable: true
90
104
  }, {
91
105
  title: 'Updated By',
92
- value: 'updatedBy'
106
+ value: 'updatedBy',
107
+ toggleable: true
93
108
  }];
94
- export var HandlerTable = generateTable({
109
+ var HandlerTable = (0, _Table.generateTable)({
95
110
  columns: columns,
96
111
  filters: filters,
97
112
  dataSource: dataSource
98
113
  });
114
+ exports.HandlerTable = HandlerTable;
99
115
  HandlerTable.displayName = 'HandlerTable';