@kineticdata/react 6.0.1 → 6.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (258) hide show
  1. package/CHANGELOG.md +86 -0
  2. package/lib/apis/agent/adapters.js +2 -3
  3. package/lib/apis/agent/bridges.js +7 -13
  4. package/lib/apis/agent/handlers.js +7 -13
  5. package/lib/apis/core/activity.js +2 -3
  6. package/lib/apis/core/attributeDefinitions.js +6 -11
  7. package/lib/apis/core/attributeDefinitions.test.js +201 -213
  8. package/lib/apis/core/authentication.js +74 -84
  9. package/lib/apis/core/backgroundJobs.js +5 -9
  10. package/lib/apis/core/bridgeModelAttributeMappings.js +5 -10
  11. package/lib/apis/core/bridgeModelAttributes.js +6 -11
  12. package/lib/apis/core/bridgeModelMappings.js +5 -10
  13. package/lib/apis/core/bridgeModelQualificationMappings.js +5 -10
  14. package/lib/apis/core/bridgeModelQualifications.js +5 -10
  15. package/lib/apis/core/bridgeModels.js +7 -13
  16. package/lib/apis/core/bridgeModels.test.js +313 -333
  17. package/lib/apis/core/bridgedresources.js +7 -13
  18. package/lib/apis/core/categories.js +6 -11
  19. package/lib/apis/core/fileResources.js +5 -10
  20. package/lib/apis/core/filestores.js +5 -10
  21. package/lib/apis/core/formTypes.js +6 -11
  22. package/lib/apis/core/forms.js +6 -11
  23. package/lib/apis/core/forms.test.js +201 -213
  24. package/lib/apis/core/kapps.js +6 -11
  25. package/lib/apis/core/kapps.test.js +122 -130
  26. package/lib/apis/core/logs.js +3 -5
  27. package/lib/apis/core/memberships.js +3 -5
  28. package/lib/apis/core/meta.js +6 -11
  29. package/lib/apis/core/notices.js +2 -3
  30. package/lib/apis/core/oauthClients.js +6 -11
  31. package/lib/apis/core/platformComponents.js +10 -19
  32. package/lib/apis/core/platformItems.js +2 -3
  33. package/lib/apis/core/profile.js +3 -5
  34. package/lib/apis/core/securityPolicyDefinitions.js +6 -11
  35. package/lib/apis/core/securityPolicyDefinitions.test.js +254 -268
  36. package/lib/apis/core/space.js +3 -5
  37. package/lib/apis/core/space.test.js +106 -114
  38. package/lib/apis/core/submissions.js +19 -35
  39. package/lib/apis/core/teams.js +6 -11
  40. package/lib/apis/core/translations.js +18 -35
  41. package/lib/apis/core/translations.test.js +1343 -1437
  42. package/lib/apis/core/users.js +6 -11
  43. package/lib/apis/core/version.js +2 -3
  44. package/lib/apis/core/webApis.js +5 -10
  45. package/lib/apis/core/webhooks.js +6 -11
  46. package/lib/apis/core/webhooks.test.js +243 -257
  47. package/lib/apis/core/webhooksJobs.js +3 -5
  48. package/lib/apis/core/workflows.js +7 -13
  49. package/lib/apis/http.js +16 -31
  50. package/lib/apis/system/index.js +46 -91
  51. package/lib/apis/task/index.js +60 -119
  52. package/lib/components/agent/bridge/BridgeForm.js +1 -2
  53. package/lib/components/agent/bridge/BridgeTable.js +1 -2
  54. package/lib/components/agent/filestore/FilestoreForm.js +1 -2
  55. package/lib/components/agent/filestore/FilestoreTable.js +1 -2
  56. package/lib/components/agent/handler/AgentHandlerForm.js +1 -2
  57. package/lib/components/agent/handler/AgentHandlerTable.js +1 -2
  58. package/lib/components/common/AttributeSelect.js +2 -3
  59. package/lib/components/common/BridgeSelect.js +16 -17
  60. package/lib/components/common/ComponentConfigContext.js +1 -2
  61. package/lib/components/common/ContentEditable.js +23 -3
  62. package/lib/components/common/FormSelect.js +16 -17
  63. package/lib/components/common/NodeSelect.js +2 -3
  64. package/lib/components/common/Scroller.js +2 -3
  65. package/lib/components/common/StaticSelect.js +14 -15
  66. package/lib/components/common/TableInput.js +276 -63
  67. package/lib/components/common/TeamSelect.js +16 -17
  68. package/lib/components/common/ToastContainer.js +7 -12
  69. package/lib/components/common/Typeahead.js +15 -2
  70. package/lib/components/common/UserSelect.js +16 -17
  71. package/lib/components/common/authentication/AuthInterceptor.js +2 -3
  72. package/lib/components/common/authentication/AuthInterceptor.test.js +141 -153
  73. package/lib/components/common/authentication/AuthenticationContainer.js +332 -343
  74. package/lib/components/common/authentication/RequestInterceptor.js +2 -10
  75. package/lib/components/common/code_input/CodeInput.js +4 -9
  76. package/lib/components/common/code_input/draftHelpers.js +20 -37
  77. package/lib/components/common/code_input/languageHelpers.js +6 -12
  78. package/lib/components/common/code_input/languageHelpers.test.js +10 -8
  79. package/lib/components/common/defaults/Toast.js +1 -2
  80. package/lib/components/common/defaults/index.js +2 -3
  81. package/lib/components/core/attribute_definition/AttributeDefinitionForm.js +1 -2
  82. package/lib/components/core/attribute_definition/AttributeDefinitionTable.js +1 -2
  83. package/lib/components/core/bridge_model/BridgeModelForm.js +52 -55
  84. package/lib/components/core/bridge_model/BridgeModelTable.js +1 -2
  85. package/lib/components/core/bridge_model_attribute/BridgeModelAttributeForm.js +1 -2
  86. package/lib/components/core/bridge_model_attribute/BridgeModelAttributeTable.js +1 -2
  87. package/lib/components/core/bridge_model_qualification/BridgeModelQualificationForm.js +1 -2
  88. package/lib/components/core/bridge_model_qualification/BridgeModelQualificationTable.js +1 -2
  89. package/lib/components/core/category/CategoryForm.js +1 -2
  90. package/lib/components/core/category/CategoryTable.js +1 -2
  91. package/lib/components/core/core_form/CoreForm.js +11 -22
  92. package/lib/components/core/core_form/defaults/index.js +11 -19
  93. package/lib/components/core/core_form/globals.js +3 -5
  94. package/lib/components/core/field_definition/FieldDefinitionForm.js +1 -2
  95. package/lib/components/core/field_definition/FieldDefinitionTable.js +2 -4
  96. package/lib/components/core/file_resource/FileResourceForm.js +1 -2
  97. package/lib/components/core/file_resource/FileResourceTable.js +1 -2
  98. package/lib/components/core/form/FormForm.js +4 -4
  99. package/lib/components/core/form/FormTable.js +1 -2
  100. package/lib/components/core/form_type/FormTypeForm.js +1 -2
  101. package/lib/components/core/form_type/FormTypeTable.js +1 -2
  102. package/lib/components/core/i18n/I18n.js +2 -4
  103. package/lib/components/core/i18n/I18nContext.js +1 -2
  104. package/lib/components/core/i18n/I18nProvider.js +2 -3
  105. package/lib/components/core/i18n/Moment.js +10 -9
  106. package/lib/components/core/index_definition/IndexDefinitionForm.js +1 -2
  107. package/lib/components/core/index_definition/IndexDefinitionTable.js +1 -2
  108. package/lib/components/core/index_job/IndexJobTable.js +1 -2
  109. package/lib/components/core/kapp/KappForm.js +1 -2
  110. package/lib/components/core/kapp/KappTable.js +1 -2
  111. package/lib/components/core/log/LogTable.js +2 -4
  112. package/lib/components/core/oauth_client/OAuthClientForm.js +1 -2
  113. package/lib/components/core/oauth_client/OAuthClientTable.js +1 -2
  114. package/lib/components/core/platform_component/AgentComponentForm.js +1 -2
  115. package/lib/components/core/platform_component/AgentComponentTable.js +1 -2
  116. package/lib/components/core/platform_component/TaskComponentForm.js +1 -2
  117. package/lib/components/core/profile/ProfileForm.js +1 -2
  118. package/lib/components/core/security_definition/SecurityDefinitionForm.js +3 -6
  119. package/lib/components/core/security_definition/SecurityDefinitionTable.js +1 -2
  120. package/lib/components/core/space/SpaceForm.js +1 -2
  121. package/lib/components/core/submission/DatastoreSubmissionFilters.js +3 -5
  122. package/lib/components/core/submission/DatastoreSubmissionTable.js +2 -4
  123. package/lib/components/core/submission/FormSubmissionFilters.js +4 -7
  124. package/lib/components/core/submission/FormSubmissionTable.js +2 -4
  125. package/lib/components/core/submission/KappSubmissionTable.js +2 -4
  126. package/lib/components/core/submission/SubmissionForm.js +1 -2
  127. package/lib/components/core/submission/SubmissionTable.js +2 -3
  128. package/lib/components/core/submission/helpers.js +4 -7
  129. package/lib/components/core/team/TeamForm.js +1 -2
  130. package/lib/components/core/team/TeamTable.js +1 -2
  131. package/lib/components/core/translation/ContextForm.js +1 -2
  132. package/lib/components/core/translation/ContextTable.js +1 -2
  133. package/lib/components/core/translation/EntryForm.js +1 -2
  134. package/lib/components/core/translation/EntryTable.js +1 -2
  135. package/lib/components/core/translation/LocaleForm.js +1 -2
  136. package/lib/components/core/translation/LocaleTable.js +1 -2
  137. package/lib/components/core/user/UserForm.js +1 -2
  138. package/lib/components/core/user/UserTable.js +1 -2
  139. package/lib/components/core/webapi/WebApiForm.js +97 -101
  140. package/lib/components/core/webapi/WebApiTable.js +1 -2
  141. package/lib/components/core/webhook/WebhookForm.js +1 -2
  142. package/lib/components/core/webhook/WebhookTable.js +1 -2
  143. package/lib/components/core/webhook_job/WebhookJobTable.js +1 -2
  144. package/lib/components/form/Form.helpers.js +10 -19
  145. package/lib/components/form/Form.js +312 -355
  146. package/lib/components/form/Form.models.js +6 -11
  147. package/lib/components/form/FormState.js +3 -3
  148. package/lib/components/form/KitchenSinkForm.js +23 -3
  149. package/lib/components/form/SimpleForm.helpers.js +262 -0
  150. package/lib/components/form/SimpleForm.js +462 -0
  151. package/lib/components/form/SimpleForm.models.js +62 -0
  152. package/lib/components/form/defaults/AttributesField.js +3 -4
  153. package/lib/components/form/defaults/CheckboxField.js +2 -3
  154. package/lib/components/form/defaults/CodeField.js +2 -3
  155. package/lib/components/form/defaults/FormButtons.js +2 -3
  156. package/lib/components/form/defaults/FormError.js +2 -3
  157. package/lib/components/form/defaults/FormField.js +2 -3
  158. package/lib/components/form/defaults/FormLayout.js +2 -3
  159. package/lib/components/form/defaults/FormMultiField.js +2 -3
  160. package/lib/components/form/defaults/PasswordField.js +2 -3
  161. package/lib/components/form/defaults/RadioField.js +2 -3
  162. package/lib/components/form/defaults/SampleTeamsRolesFIeld.js +2 -3
  163. package/lib/components/form/defaults/SelectField.js +2 -3
  164. package/lib/components/form/defaults/SelectMultiField.js +2 -3
  165. package/lib/components/form/defaults/TableField.js +2 -3
  166. package/lib/components/form/defaults/TeamField.js +2 -3
  167. package/lib/components/form/defaults/TeamMultiField.js +2 -3
  168. package/lib/components/form/defaults/TextField.js +2 -3
  169. package/lib/components/form/defaults/TextMultiField.js +2 -3
  170. package/lib/components/form/defaults/UserField.js +2 -3
  171. package/lib/components/form/defaults/UserMultiField.js +2 -3
  172. package/lib/components/form/defaults/index.js +2 -3
  173. package/lib/components/form/tests/Form.test.js +4354 -4508
  174. package/lib/components/form/tests/components.js +73 -64
  175. package/lib/components/index.js +7 -0
  176. package/lib/components/system/SystemBackgroundTasksTable.js +1 -2
  177. package/lib/components/system/SystemCassandraForm.js +1 -2
  178. package/lib/components/system/SystemElasticSearchForm.js +1 -2
  179. package/lib/components/system/SystemFilestoreForm.js +2 -3
  180. package/lib/components/system/SystemForm.js +1 -2
  181. package/lib/components/system/SystemIngressForm.js +1 -2
  182. package/lib/components/system/SystemSecurityForm.js +1 -2
  183. package/lib/components/system/SystemSmtpForm.js +1 -2
  184. package/lib/components/system/SystemTaskAdapterForm.js +1 -2
  185. package/lib/components/system/SystemTrustedCertificateForm.js +1 -2
  186. package/lib/components/system/SystemTrustedCertificatesTable.js +1 -2
  187. package/lib/components/system/SystemUserForm.js +1 -2
  188. package/lib/components/system/helpers.js +11 -21
  189. package/lib/components/system/spaces/SystemSpaceForm.js +2 -3
  190. package/lib/components/system/spaces/SystemTenantForm.js +2 -3
  191. package/lib/components/system/spaces/SystemTenantTable.js +1 -2
  192. package/lib/components/table/Table.js +48 -51
  193. package/lib/components/table/Table.redux.js +161 -188
  194. package/lib/components/table/Table.test.js +115 -123
  195. package/lib/components/table/defaults/BodyCell.js +1 -2
  196. package/lib/components/table/defaults/BodyRow.js +1 -2
  197. package/lib/components/table/defaults/BooleanFilter.js +1 -2
  198. package/lib/components/table/defaults/ColumnControl.js +1 -2
  199. package/lib/components/table/defaults/EmptyBodyRow.js +1 -2
  200. package/lib/components/table/defaults/FilterLayout.js +1 -2
  201. package/lib/components/table/defaults/Footer.js +1 -2
  202. package/lib/components/table/defaults/FooterCell.js +1 -2
  203. package/lib/components/table/defaults/FooterRow.js +1 -2
  204. package/lib/components/table/defaults/Header.js +1 -2
  205. package/lib/components/table/defaults/HeaderCell.js +1 -2
  206. package/lib/components/table/defaults/HeaderRow.js +1 -2
  207. package/lib/components/table/defaults/PaginationControl.js +2 -4
  208. package/lib/components/table/defaults/TableBody.js +1 -2
  209. package/lib/components/table/defaults/TableLayout.js +1 -2
  210. package/lib/components/table/defaults/TextFilter.js +1 -2
  211. package/lib/components/table/defaults/index.js +2 -3
  212. package/lib/components/table/tests/Table.redux.test.js +162 -0
  213. package/lib/components/table/tests/Table.test.js +767 -0
  214. package/lib/components/table/tests/components.js +182 -0
  215. package/lib/components/task/builder/Connector.js +26 -11
  216. package/lib/components/task/builder/ConnectorForm.js +1 -2
  217. package/lib/components/task/builder/Node.js +18 -9
  218. package/lib/components/task/builder/NodeForm.js +1 -2
  219. package/lib/components/task/builder/NodeParametersForm.js +1 -2
  220. package/lib/components/task/builder/SvgCanvas.js +2 -3
  221. package/lib/components/task/builder/SvgText.js +2 -3
  222. package/lib/components/task/builder/TaskDefinitionConfigForm.js +3 -6
  223. package/lib/components/task/builder/TreeBuilder.js +14 -5
  224. package/lib/components/task/builder/builder.redux.js +187 -186
  225. package/lib/components/task/builder/constants.js +38 -76
  226. package/lib/components/task/builder/helpers.js +23 -40
  227. package/lib/components/task/builder/models.js +24 -35
  228. package/lib/components/task/category/TaskCategoryForm.js +2 -3
  229. package/lib/components/task/category/TaskCategoryTable.js +1 -2
  230. package/lib/components/task/common/UsageTable.js +1 -2
  231. package/lib/components/task/engine/EngineSettingsForm.js +2 -3
  232. package/lib/components/task/errors/RunErrorTable.js +2 -3
  233. package/lib/components/task/errors/SystemErrorsTable.js +1 -2
  234. package/lib/components/task/handlers/HandlerForm.js +2 -3
  235. package/lib/components/task/handlers/HandlerTable.js +1 -2
  236. package/lib/components/task/handlers/MissingHandlerTable.js +1 -2
  237. package/lib/components/task/policy_rule/PolicyRuleForm.js +2 -3
  238. package/lib/components/task/policy_rule/PolicyRuleTable.js +1 -2
  239. package/lib/components/task/runs/CreateManualTriggerForm.js +1 -2
  240. package/lib/components/task/runs/RunTable.js +2 -3
  241. package/lib/components/task/runs/RunTaskTable.js +1 -2
  242. package/lib/components/task/sources/SourceForm.js +1 -2
  243. package/lib/components/task/sources/SourceTable.js +1 -2
  244. package/lib/components/task/triggers/TriggerTable.js +2 -3
  245. package/lib/components/task/workflows/LinkedWorkflowForm.js +3 -5
  246. package/lib/components/task/workflows/LinkedWorkflowTable.js +1 -2
  247. package/lib/components/task/workflows/MissingRoutineTable.js +1 -2
  248. package/lib/components/task/workflows/WorkflowForm.js +91 -41
  249. package/lib/components/task/workflows/WorkflowTable.js +1 -2
  250. package/lib/helpers/SearchBuilder.js +2 -4
  251. package/lib/helpers/index.js +13 -26
  252. package/lib/index.js +3 -6
  253. package/lib/reducer.js +3 -5
  254. package/lib/saga.js +32 -48
  255. package/lib/store.js +32 -42
  256. package/package.json +12 -15
  257. package/lib/components/core/CoreFormModal.js +0 -64
  258. package/lib/components/core/CoreModal.js +0 -114
package/CHANGELOG.md ADDED
@@ -0,0 +1,86 @@
1
+ # Changelog for `@kineticdata/react`
2
+
3
+ When upgrading `@kineticdata/react` to a newer version, remember that all `@kineticdata/*` libraries must be on the same exact version. This is because each `@kineticdata/bundle-*` library has `@kineticdata/react` as a dependency, and if two different versions of `@kineticdata/react` are installed in a bundle, the bundle will never load because authentication happens in a different version of `@kineticdata/react` than the one used during rendering the packages.
4
+
5
+ Remember to always run `yarn install` after upgrading any dependency versions.
6
+
7
+ ## 6.0.2 (November 6, 2023)
8
+
9
+ - Removed XSRF header setting from Request Interceptor
10
+ - Added SAML logout options
11
+ - Upgraded various `dependencies` to resolve vulnerabilities
12
+ - Updated the `react` and `react-dom` `peerDependencies` to `>=17.0.2` to support the latest versions of React
13
+
14
+ ### Bundle Issues
15
+
16
+ One of the `dependencies` that was updated is `axios` whose latest version causes some issues with the latest `react-scripts`. If the bundle has a `craco.config.js` file, the following steps must be taken when upgrading to this version.
17
+
18
+ 1. In `craco.config.js`, add the following function to the very end of the file:
19
+
20
+ ```javascript
21
+ function getFileLoaderRule(rules) {
22
+ for (const rule of rules) {
23
+ if ('oneOf' in rule) {
24
+ const found = getFileLoaderRule(rule.oneOf);
25
+ if (found) {
26
+ return found;
27
+ }
28
+ } else if (rule.test === undefined && rule.type === 'asset/resource') {
29
+ return rule;
30
+ }
31
+ }
32
+ }
33
+ ```
34
+
35
+ 2. In `craco.config.js`, add the following code inside the `configure` function of the `webpack` object:
36
+
37
+ ```javascript
38
+ // Fix for CJS files not being treated as JavaScript files
39
+ // https://github.com/facebook/create-react-app/issues/11889#issuecomment-1114928008
40
+ const fileLoaderRule = getFileLoaderRule(webpackConfig.module.rules);
41
+ if (!fileLoaderRule) {
42
+ throw new Error('File loader not found');
43
+ }
44
+ fileLoaderRule.exclude.push(/\.cjs$/);
45
+ ```
46
+
47
+ ## 6.0.1 (September 20, 2023)
48
+
49
+ - Updated the `react` and `react-dom` `peerDependencies` to `^17.0.2` to support React v17
50
+
51
+ ### Bundle Issues
52
+
53
+ It is recommended to upgrade the bundle's `react` and `react-dom` versions to `^17.0.2`. This upgrade should not have any breaking changes. To do so, update these two dependency versions in `bundle/packages/app/package.json` and the peer dependency versions in all of the `package.json` files of the other packages.
54
+
55
+ If you do upgrade `react` to v17, the following steps must also be taken if the bundle has testing configured:
56
+
57
+ 1. In `bundle/package.json`, remove the `enzyme-adapter-react-16` dependency, and add the following dependency:
58
+ `"@wojtekmaj/enzyme-adapter-react-17": "^0.8.0"`
59
+ 2. In `bundle/packages/app/src/setupTests.js`, change the `Adapter` import from `enzyme-adapter-react-16` to be from `@wojtekmaj/enzyme-adapter-react-17`.
60
+
61
+ ## 6.0.0 (February 22, 2023)
62
+
63
+ - Removed all code related to Discussions
64
+ - Removed most `devDependencies`, which were move to the project root
65
+
66
+ ### Bundle Issues
67
+
68
+ Because all discussions code was removed from the library, any bundles that are upgraded to this version must have all of their discussions code removed as well, since the various imports from this library that bundles used no longer exist.
69
+
70
+ We consolidated most of our `devDependencies` into the root of our project, of which `@kineticdata/react` is just one part. Any bundles upgrading to this version must add the following `devDependencies` to the `package.json` file in the root of their `bundle` folder:
71
+
72
+ ```
73
+ "@babel/cli": "^7.23.0",
74
+ "@babel/runtime": "^7.23.2",
75
+ ```
76
+
77
+ If you get the following error when trying to run your bundle:
78
+ `Uncaught Error: Cannot find module '@babel/runtime/helpers/esm/regeneratorRuntime'`
79
+ You will need to run the following commands in your `bundle` directory:
80
+
81
+ ```
82
+ npx yarn-deduplicate --packages @babel/runtime -- yarn.lock
83
+ yarn install
84
+ ```
85
+
86
+ The above step will always be required when first upgrading to a v6+ version of `@kineticdata/react`.
@@ -21,7 +21,7 @@ var validateOptions = function validateOptions(functionName, requiredOptions, op
21
21
  throw new Error("".concat(functionName, " failed! The provided adapter type (").concat(options.attributeType, ") is not valid. Must be one of ").concat(validTypes.join(', ')));
22
22
  }
23
23
  };
24
- var fetchAdapters = function fetchAdapters() {
24
+ var fetchAdapters = exports.fetchAdapters = function fetchAdapters() {
25
25
  var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
26
26
  validateOptions('fetchAdapters', ['type'], options);
27
27
  return _axios["default"].get("".concat(options.slug ? '/app/system-coordinator/components/agent' : (0, _helpers.buildAgentPath)(options), "/app/api/v1/adapters?type=").concat(options.type), {
@@ -32,5 +32,4 @@ var fetchAdapters = function fetchAdapters() {
32
32
  adapters: response.data.adapters
33
33
  };
34
34
  })["catch"](_http.handleErrors);
35
- };
36
- exports.fetchAdapters = fetchAdapters;
35
+ };
@@ -8,7 +8,7 @@ exports.validateBridge = exports.updateBridge = exports.fetchBridges = exports.f
8
8
  var _axios = _interopRequireDefault(require("axios"));
9
9
  var _helpers = require("../../helpers");
10
10
  var _http = require("../http");
11
- var fetchBridges = function fetchBridges() {
11
+ var fetchBridges = exports.fetchBridges = function fetchBridges() {
12
12
  var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
13
13
  (0, _http.validateOptions)('fetchBridges', [], options);
14
14
  return _axios["default"].get("".concat((0, _helpers.buildAgentPath)(options), "/app/api/v1/bridges"), {
@@ -20,8 +20,7 @@ var fetchBridges = function fetchBridges() {
20
20
  };
21
21
  })["catch"](_http.handleErrors);
22
22
  };
23
- exports.fetchBridges = fetchBridges;
24
- var fetchBridge = function fetchBridge() {
23
+ var fetchBridge = exports.fetchBridge = function fetchBridge() {
25
24
  var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
26
25
  (0, _http.validateOptions)('fetchBridge', ['bridgeSlug'], options);
27
26
  return _axios["default"].get("".concat((0, _helpers.buildAgentPath)(options), "/app/api/v1/bridges/").concat(options.bridgeSlug), {
@@ -33,8 +32,7 @@ var fetchBridge = function fetchBridge() {
33
32
  };
34
33
  })["catch"](_http.handleErrors);
35
34
  };
36
- exports.fetchBridge = fetchBridge;
37
- var createBridge = function createBridge() {
35
+ var createBridge = exports.createBridge = function createBridge() {
38
36
  var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
39
37
  (0, _http.validateOptions)('createBridge', ['bridge'], options);
40
38
  return _axios["default"].post("".concat((0, _helpers.buildAgentPath)(options), "/app/api/v1/bridges/"), options.bridge, {
@@ -46,8 +44,7 @@ var createBridge = function createBridge() {
46
44
  };
47
45
  })["catch"](_http.handleErrors);
48
46
  };
49
- exports.createBridge = createBridge;
50
- var updateBridge = function updateBridge() {
47
+ var updateBridge = exports.updateBridge = function updateBridge() {
51
48
  var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
52
49
  (0, _http.validateOptions)('updateBridge', ['bridgeSlug', 'bridge'], options);
53
50
  return _axios["default"].put("".concat((0, _helpers.buildAgentPath)(options), "/app/api/v1/bridges/").concat(options.bridgeSlug), options.bridge, {
@@ -59,8 +56,7 @@ var updateBridge = function updateBridge() {
59
56
  };
60
57
  })["catch"](_http.handleErrors);
61
58
  };
62
- exports.updateBridge = updateBridge;
63
- var deleteBridge = function deleteBridge() {
59
+ var deleteBridge = exports.deleteBridge = function deleteBridge() {
64
60
  var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
65
61
  (0, _http.validateOptions)('deleteBridge', ['bridgeSlug'], options);
66
62
  return _axios["default"]["delete"]("".concat((0, _helpers.buildAgentPath)(options), "/app/api/v1/bridges/").concat(options.bridgeSlug), {
@@ -72,8 +68,7 @@ var deleteBridge = function deleteBridge() {
72
68
  };
73
69
  })["catch"](_http.handleErrors);
74
70
  };
75
- exports.deleteBridge = deleteBridge;
76
- var validateBridge = function validateBridge() {
71
+ var validateBridge = exports.validateBridge = function validateBridge() {
77
72
  var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
78
73
  (0, _http.validateOptions)('validateBridge', ['bridge'], options);
79
74
  var endpoint = (0, _helpers.buildAgentPath)(options) + (options.bridgeSlug ? "/app/api/v1/bridges/".concat(options.bridgeSlug, "/validate") : "/app/api/v1/adapters/validate?type=bridge");
@@ -85,5 +80,4 @@ var validateBridge = function validateBridge() {
85
80
  successMessage: response.data.message
86
81
  };
87
82
  })["catch"](_http.handleErrors);
88
- };
89
- exports.validateBridge = validateBridge;
83
+ };
@@ -9,7 +9,7 @@ var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/
9
9
  var _axios = _interopRequireDefault(require("axios"));
10
10
  var _http = require("../http");
11
11
  var _helpers = require("../../helpers");
12
- var fetchAgentHandlers = function fetchAgentHandlers() {
12
+ var fetchAgentHandlers = exports.fetchAgentHandlers = function fetchAgentHandlers() {
13
13
  var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
14
14
  (0, _http.validateOptions)('fetchAgentHandlers', [], options);
15
15
  return _axios["default"].get("".concat((0, _helpers.buildAgentPath)(options), "/app/api/v1/handlers"), {
@@ -21,8 +21,7 @@ var fetchAgentHandlers = function fetchAgentHandlers() {
21
21
  };
22
22
  })["catch"](_http.handleErrors);
23
23
  };
24
- exports.fetchAgentHandlers = fetchAgentHandlers;
25
- var fetchAgentHandler = function fetchAgentHandler() {
24
+ var fetchAgentHandler = exports.fetchAgentHandler = function fetchAgentHandler() {
26
25
  var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
27
26
  (0, _http.validateOptions)('fetchAgentHandler', ['handlerSlug'], options);
28
27
  return _axios["default"].get("".concat((0, _helpers.buildAgentPath)(options), "/app/api/v1/handlers/").concat(options.handlerSlug), {
@@ -34,8 +33,7 @@ var fetchAgentHandler = function fetchAgentHandler() {
34
33
  };
35
34
  })["catch"](_http.handleErrors);
36
35
  };
37
- exports.fetchAgentHandler = fetchAgentHandler;
38
- var createAgentHandler = function createAgentHandler() {
36
+ var createAgentHandler = exports.createAgentHandler = function createAgentHandler() {
39
37
  var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
40
38
  (0, _http.validateOptions)('createAgentHandler', ['handler'], options);
41
39
  return _axios["default"].post("".concat((0, _helpers.buildAgentPath)(options), "/app/api/v1/handlers/"), options.handler, {
@@ -47,8 +45,7 @@ var createAgentHandler = function createAgentHandler() {
47
45
  };
48
46
  })["catch"](_http.handleErrors);
49
47
  };
50
- exports.createAgentHandler = createAgentHandler;
51
- var updateAgentHandler = function updateAgentHandler() {
48
+ var updateAgentHandler = exports.updateAgentHandler = function updateAgentHandler() {
52
49
  var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
53
50
  (0, _http.validateOptions)('updateAgentHandler', ['handlerSlug', 'handler'], options);
54
51
  return _axios["default"].put("".concat((0, _helpers.buildAgentPath)(options), "/app/api/v1/handlers/").concat(options.handlerSlug), options.handler, {
@@ -60,8 +57,7 @@ var updateAgentHandler = function updateAgentHandler() {
60
57
  };
61
58
  })["catch"](_http.handleErrors);
62
59
  };
63
- exports.updateAgentHandler = updateAgentHandler;
64
- var deleteAgentHandler = function deleteAgentHandler() {
60
+ var deleteAgentHandler = exports.deleteAgentHandler = function deleteAgentHandler() {
65
61
  var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
66
62
  (0, _http.validateOptions)('deleteAgentHandler', ['handlerSlug'], options);
67
63
  return _axios["default"]["delete"]("".concat((0, _helpers.buildAgentPath)(options), "/app/api/v1/handlers/").concat(options.handlerSlug), {
@@ -73,8 +69,7 @@ var deleteAgentHandler = function deleteAgentHandler() {
73
69
  };
74
70
  })["catch"](_http.handleErrors);
75
71
  };
76
- exports.deleteAgentHandler = deleteAgentHandler;
77
- var testAgentHandler = function testAgentHandler() {
72
+ var testAgentHandler = exports.testAgentHandler = function testAgentHandler() {
78
73
  var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
79
74
  (0, _http.validateOptions)('testAgentHandler', ['agentSlug', 'handlerSlug', 'parameters'], options);
80
75
  var parameters = options.parameters.reduce(function (params, parameter) {
@@ -82,5 +77,4 @@ var testAgentHandler = function testAgentHandler() {
82
77
  return params;
83
78
  }, {});
84
79
  return _axios["default"].post("".concat((0, _helpers.buildAgentPath)(options), "/app/api/v1/handlers/").concat(options.handlerSlug, "/execute"), (0, _objectSpread2["default"])({}, parameters))["catch"](_http.handleErrors);
85
- };
86
- exports.testAgentHandler = testAgentHandler;
80
+ };
@@ -13,7 +13,7 @@ var _http = require("../http");
13
13
  * @param {object} options fetch parameters
14
14
  * @param {string} options.kappSlug slug of the kapp to scope activity to
15
15
  */
16
- var fetchActivity = function fetchActivity() {
16
+ var fetchActivity = exports.fetchActivity = function fetchActivity() {
17
17
  var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
18
18
  var kappSlug = options.kappSlug;
19
19
  var path = kappSlug ? "".concat(_helpers.bundle.apiLocation(), "/kapps/").concat(kappSlug, "/activity") : "".concat(_helpers.bundle.apiLocation(), "/activity");
@@ -28,5 +28,4 @@ var fetchActivity = function fetchActivity() {
28
28
  submissionVolume: response.data.submissionVolume
29
29
  };
30
30
  })["catch"](_http.handleErrors);
31
- };
32
- exports.fetchActivity = fetchActivity;
31
+ };
@@ -42,7 +42,7 @@ var buildEndpoint = function buildEndpoint(_ref) {
42
42
  var basePath = kappSlug ? "".concat(_helpers.bundle.apiLocation(), "/kapps/").concat(kappSlug, "/").concat(attributeType) : "".concat(_helpers.bundle.apiLocation(), "/").concat(attributeType);
43
43
  return an ? "".concat(basePath, "/").concat(attributeName) : basePath;
44
44
  };
45
- var fetchAttributeDefinitions = function fetchAttributeDefinitions() {
45
+ var fetchAttributeDefinitions = exports.fetchAttributeDefinitions = function fetchAttributeDefinitions() {
46
46
  var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
47
47
  var attributeType = options.attributeType;
48
48
  validateOptions('fetchAttributeDefinitions', ['attributeType'], options);
@@ -55,8 +55,7 @@ var fetchAttributeDefinitions = function fetchAttributeDefinitions() {
55
55
  };
56
56
  })["catch"](_http.handleErrors);
57
57
  };
58
- exports.fetchAttributeDefinitions = fetchAttributeDefinitions;
59
- var fetchAttributeDefinition = function fetchAttributeDefinition() {
58
+ var fetchAttributeDefinition = exports.fetchAttributeDefinition = function fetchAttributeDefinition() {
60
59
  var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
61
60
  var attributeType = options.attributeType;
62
61
  validateOptions('fetchAttributeDefinition', ['attributeType', 'attributeName'], options);
@@ -69,8 +68,7 @@ var fetchAttributeDefinition = function fetchAttributeDefinition() {
69
68
  };
70
69
  })["catch"](_http.handleErrors);
71
70
  };
72
- exports.fetchAttributeDefinition = fetchAttributeDefinition;
73
- var createAttributeDefinition = function createAttributeDefinition() {
71
+ var createAttributeDefinition = exports.createAttributeDefinition = function createAttributeDefinition() {
74
72
  var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
75
73
  var kappSlug = options.kappSlug,
76
74
  attributeType = options.attributeType,
@@ -90,8 +88,7 @@ var createAttributeDefinition = function createAttributeDefinition() {
90
88
  };
91
89
  })["catch"](_http.handleErrors);
92
90
  };
93
- exports.createAttributeDefinition = createAttributeDefinition;
94
- var updateAttributeDefinition = function updateAttributeDefinition() {
91
+ var updateAttributeDefinition = exports.updateAttributeDefinition = function updateAttributeDefinition() {
95
92
  var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
96
93
  var attributeType = options.attributeType,
97
94
  attributeDefinition = options.attributeDefinition;
@@ -106,8 +103,7 @@ var updateAttributeDefinition = function updateAttributeDefinition() {
106
103
  };
107
104
  })["catch"](_http.handleErrors);
108
105
  };
109
- exports.updateAttributeDefinition = updateAttributeDefinition;
110
- var deleteAttributeDefinition = function deleteAttributeDefinition() {
106
+ var deleteAttributeDefinition = exports.deleteAttributeDefinition = function deleteAttributeDefinition() {
111
107
  var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
112
108
  var attributeType = options.attributeType;
113
109
  validateOptions('deleteAttributeDefinition', ['attributeType', 'attributeName'], options);
@@ -121,5 +117,4 @@ var deleteAttributeDefinition = function deleteAttributeDefinition() {
121
117
  attributeDefinition: response.data[responseEnvelope(attributeType)]
122
118
  };
123
119
  })["catch"](_http.handleErrors);
124
- };
125
- exports.deleteAttributeDefinition = deleteAttributeDefinition;
120
+ };