@kineticdata/react 6.0.0 → 6.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (256) hide show
  1. package/lib/apis/agent/adapters.js +2 -3
  2. package/lib/apis/agent/bridges.js +7 -13
  3. package/lib/apis/agent/handlers.js +7 -13
  4. package/lib/apis/core/activity.js +2 -3
  5. package/lib/apis/core/attributeDefinitions.js +6 -11
  6. package/lib/apis/core/attributeDefinitions.test.js +201 -213
  7. package/lib/apis/core/authentication.js +74 -84
  8. package/lib/apis/core/backgroundJobs.js +5 -9
  9. package/lib/apis/core/bridgeModelAttributeMappings.js +5 -10
  10. package/lib/apis/core/bridgeModelAttributes.js +6 -11
  11. package/lib/apis/core/bridgeModelMappings.js +5 -10
  12. package/lib/apis/core/bridgeModelQualificationMappings.js +5 -10
  13. package/lib/apis/core/bridgeModelQualifications.js +5 -10
  14. package/lib/apis/core/bridgeModels.js +7 -13
  15. package/lib/apis/core/bridgeModels.test.js +313 -333
  16. package/lib/apis/core/bridgedresources.js +7 -13
  17. package/lib/apis/core/categories.js +6 -11
  18. package/lib/apis/core/fileResources.js +5 -10
  19. package/lib/apis/core/filestores.js +5 -10
  20. package/lib/apis/core/formTypes.js +6 -11
  21. package/lib/apis/core/forms.js +6 -11
  22. package/lib/apis/core/forms.test.js +201 -213
  23. package/lib/apis/core/kapps.js +6 -11
  24. package/lib/apis/core/kapps.test.js +122 -130
  25. package/lib/apis/core/logs.js +3 -5
  26. package/lib/apis/core/memberships.js +3 -5
  27. package/lib/apis/core/meta.js +6 -11
  28. package/lib/apis/core/notices.js +2 -3
  29. package/lib/apis/core/oauthClients.js +6 -11
  30. package/lib/apis/core/platformComponents.js +10 -19
  31. package/lib/apis/core/platformItems.js +2 -3
  32. package/lib/apis/core/profile.js +3 -5
  33. package/lib/apis/core/securityPolicyDefinitions.js +6 -11
  34. package/lib/apis/core/securityPolicyDefinitions.test.js +254 -268
  35. package/lib/apis/core/space.js +3 -5
  36. package/lib/apis/core/space.test.js +106 -114
  37. package/lib/apis/core/submissions.js +17 -33
  38. package/lib/apis/core/teams.js +6 -11
  39. package/lib/apis/core/translations.js +18 -35
  40. package/lib/apis/core/translations.test.js +1343 -1437
  41. package/lib/apis/core/users.js +6 -11
  42. package/lib/apis/core/version.js +2 -3
  43. package/lib/apis/core/webApis.js +5 -10
  44. package/lib/apis/core/webhooks.js +6 -11
  45. package/lib/apis/core/webhooks.test.js +243 -257
  46. package/lib/apis/core/webhooksJobs.js +3 -5
  47. package/lib/apis/core/workflows.js +7 -13
  48. package/lib/apis/http.js +47 -30
  49. package/lib/apis/http.test.js +100 -0
  50. package/lib/apis/system/index.js +167 -81
  51. package/lib/apis/task/index.js +73 -118
  52. package/lib/components/agent/bridge/BridgeForm.js +1 -2
  53. package/lib/components/agent/bridge/BridgeTable.js +5 -3
  54. package/lib/components/agent/filestore/FilestoreForm.js +1 -2
  55. package/lib/components/agent/filestore/FilestoreTable.js +5 -3
  56. package/lib/components/agent/handler/AgentHandlerForm.js +1 -2
  57. package/lib/components/agent/handler/AgentHandlerTable.js +6 -4
  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 +165 -0
  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 +25 -0
  80. package/lib/components/common/defaults/index.js +12 -0
  81. package/lib/components/core/attribute_definition/AttributeDefinitionForm.js +1 -2
  82. package/lib/components/core/attribute_definition/AttributeDefinitionTable.js +8 -5
  83. package/lib/components/core/bridge_model/BridgeModelForm.js +52 -55
  84. package/lib/components/core/bridge_model/BridgeModelTable.js +6 -4
  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 +14 -8
  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 +13 -9
  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 +1 -2
  99. package/lib/components/core/form/FormTable.js +23 -13
  100. package/lib/components/core/form_type/FormTypeForm.js +1 -2
  101. package/lib/components/core/form_type/FormTypeTable.js +4 -3
  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 +13 -7
  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 +18 -34
  111. package/lib/components/core/log/LogTable.js +10 -6
  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 +10 -6
  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 +39 -23
  125. package/lib/components/core/submission/KappSubmissionTable.js +39 -23
  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 +2 -3
  130. package/lib/components/core/team/TeamTable.js +12 -7
  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 +24 -7
  139. package/lib/components/core/webapi/WebApiForm.js +138 -123
  140. package/lib/components/core/webapi/WebApiTable.js +15 -9
  141. package/lib/components/core/webhook/WebhookForm.js +1 -2
  142. package/lib/components/core/webhook/WebhookTable.js +20 -11
  143. package/lib/components/core/webhook_job/WebhookJobTable.js +40 -21
  144. package/lib/components/form/Form.helpers.js +91 -38
  145. package/lib/components/form/Form.js +312 -355
  146. package/lib/components/form/Form.models.js +7 -11
  147. package/lib/components/form/FormState.js +1 -2
  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 +3865 -4257
  174. package/lib/components/form/tests/components.js +2 -3
  175. package/lib/components/index.js +60 -0
  176. package/lib/components/system/SystemBackgroundTasksTable.js +1 -2
  177. package/lib/components/system/SystemCassandraForm.js +97 -0
  178. package/lib/components/system/SystemElasticSearchForm.js +97 -0
  179. package/lib/components/system/SystemFilestoreForm.js +12 -8
  180. package/lib/components/system/SystemForm.js +1 -2
  181. package/lib/components/system/SystemIngressForm.js +78 -31
  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 +30 -7
  185. package/lib/components/system/SystemTrustedCertificateForm.js +39 -0
  186. package/lib/components/system/SystemTrustedCertificatesTable.js +73 -0
  187. package/lib/components/system/SystemUserForm.js +1 -2
  188. package/lib/components/system/helpers.js +236 -65
  189. package/lib/components/system/spaces/SystemSpaceForm.js +2 -3
  190. package/lib/components/system/spaces/SystemTenantForm.js +77 -37
  191. package/lib/components/system/spaces/SystemTenantTable.js +1 -2
  192. package/lib/components/table/Table.js +132 -54
  193. package/lib/components/table/Table.redux.js +229 -235
  194. package/lib/components/table/Table.test.js +154 -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 +25 -0
  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 +5 -4
  212. package/lib/components/task/builder/Connector.js +26 -11
  213. package/lib/components/task/builder/ConnectorForm.js +1 -2
  214. package/lib/components/task/builder/Node.js +18 -9
  215. package/lib/components/task/builder/NodeForm.js +1 -2
  216. package/lib/components/task/builder/NodeParametersForm.js +1 -2
  217. package/lib/components/task/builder/SvgCanvas.js +2 -3
  218. package/lib/components/task/builder/SvgText.js +2 -3
  219. package/lib/components/task/builder/TaskDefinitionConfigForm.js +3 -6
  220. package/lib/components/task/builder/TreeBuilder.js +10 -4
  221. package/lib/components/task/builder/builder.redux.js +171 -182
  222. package/lib/components/task/builder/constants.js +38 -76
  223. package/lib/components/task/builder/helpers.js +23 -40
  224. package/lib/components/task/builder/models.js +19 -35
  225. package/lib/components/task/category/TaskCategoryForm.js +2 -3
  226. package/lib/components/task/category/TaskCategoryTable.js +1 -2
  227. package/lib/components/task/common/UsageTable.js +1 -2
  228. package/lib/components/task/engine/EngineSettingsForm.js +2 -3
  229. package/lib/components/task/errors/RunErrorTable.js +35 -17
  230. package/lib/components/task/errors/SystemErrorsTable.js +1 -2
  231. package/lib/components/task/handlers/HandlerForm.js +2 -3
  232. package/lib/components/task/handlers/HandlerTable.js +24 -13
  233. package/lib/components/task/handlers/MissingHandlerTable.js +1 -2
  234. package/lib/components/task/policy_rule/PolicyRuleForm.js +2 -3
  235. package/lib/components/task/policy_rule/PolicyRuleTable.js +1 -2
  236. package/lib/components/task/runs/CreateManualTriggerForm.js +1 -2
  237. package/lib/components/task/runs/RunTable.js +24 -12
  238. package/lib/components/task/runs/RunTaskTable.js +1 -2
  239. package/lib/components/task/sources/SourceForm.js +1 -2
  240. package/lib/components/task/sources/SourceTable.js +16 -9
  241. package/lib/components/task/triggers/TriggerTable.js +52 -26
  242. package/lib/components/task/workflows/LinkedWorkflowForm.js +3 -5
  243. package/lib/components/task/workflows/LinkedWorkflowTable.js +33 -18
  244. package/lib/components/task/workflows/MissingRoutineTable.js +1 -2
  245. package/lib/components/task/workflows/WorkflowForm.js +2 -3
  246. package/lib/components/task/workflows/WorkflowTable.js +31 -17
  247. package/lib/helpers/SearchBuilder.js +2 -4
  248. package/lib/helpers/index.js +13 -26
  249. package/lib/index.js +7 -9
  250. package/lib/reducer.js +3 -5
  251. package/lib/saga.js +32 -48
  252. package/lib/store.js +32 -42
  253. package/package.json +26 -16
  254. package/proxyhelper.js +17 -11
  255. package/lib/components/core/CoreFormModal.js +0 -64
  256. package/lib/components/core/CoreModal.js +0 -114
@@ -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
+ };