@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.
- package/lib/apis/agent/adapters.js +2 -3
- package/lib/apis/agent/bridges.js +7 -13
- package/lib/apis/agent/handlers.js +7 -13
- package/lib/apis/core/activity.js +2 -3
- package/lib/apis/core/attributeDefinitions.js +6 -11
- package/lib/apis/core/attributeDefinitions.test.js +201 -213
- package/lib/apis/core/authentication.js +74 -84
- package/lib/apis/core/backgroundJobs.js +5 -9
- package/lib/apis/core/bridgeModelAttributeMappings.js +5 -10
- package/lib/apis/core/bridgeModelAttributes.js +6 -11
- package/lib/apis/core/bridgeModelMappings.js +5 -10
- package/lib/apis/core/bridgeModelQualificationMappings.js +5 -10
- package/lib/apis/core/bridgeModelQualifications.js +5 -10
- package/lib/apis/core/bridgeModels.js +7 -13
- package/lib/apis/core/bridgeModels.test.js +313 -333
- package/lib/apis/core/bridgedresources.js +7 -13
- package/lib/apis/core/categories.js +6 -11
- package/lib/apis/core/fileResources.js +5 -10
- package/lib/apis/core/filestores.js +5 -10
- package/lib/apis/core/formTypes.js +6 -11
- package/lib/apis/core/forms.js +6 -11
- package/lib/apis/core/forms.test.js +201 -213
- package/lib/apis/core/kapps.js +6 -11
- package/lib/apis/core/kapps.test.js +122 -130
- package/lib/apis/core/logs.js +3 -5
- package/lib/apis/core/memberships.js +3 -5
- package/lib/apis/core/meta.js +6 -11
- package/lib/apis/core/notices.js +2 -3
- package/lib/apis/core/oauthClients.js +6 -11
- package/lib/apis/core/platformComponents.js +10 -19
- package/lib/apis/core/platformItems.js +2 -3
- package/lib/apis/core/profile.js +3 -5
- package/lib/apis/core/securityPolicyDefinitions.js +6 -11
- package/lib/apis/core/securityPolicyDefinitions.test.js +254 -268
- package/lib/apis/core/space.js +3 -5
- package/lib/apis/core/space.test.js +106 -114
- package/lib/apis/core/submissions.js +17 -33
- package/lib/apis/core/teams.js +6 -11
- package/lib/apis/core/translations.js +18 -35
- package/lib/apis/core/translations.test.js +1343 -1437
- package/lib/apis/core/users.js +6 -11
- package/lib/apis/core/version.js +2 -3
- package/lib/apis/core/webApis.js +5 -10
- package/lib/apis/core/webhooks.js +6 -11
- package/lib/apis/core/webhooks.test.js +243 -257
- package/lib/apis/core/webhooksJobs.js +3 -5
- package/lib/apis/core/workflows.js +7 -13
- package/lib/apis/http.js +47 -30
- package/lib/apis/http.test.js +100 -0
- package/lib/apis/system/index.js +167 -81
- package/lib/apis/task/index.js +73 -118
- package/lib/components/agent/bridge/BridgeForm.js +1 -2
- package/lib/components/agent/bridge/BridgeTable.js +5 -3
- package/lib/components/agent/filestore/FilestoreForm.js +1 -2
- package/lib/components/agent/filestore/FilestoreTable.js +5 -3
- package/lib/components/agent/handler/AgentHandlerForm.js +1 -2
- package/lib/components/agent/handler/AgentHandlerTable.js +6 -4
- package/lib/components/common/AttributeSelect.js +2 -3
- package/lib/components/common/BridgeSelect.js +16 -17
- package/lib/components/common/ComponentConfigContext.js +1 -2
- package/lib/components/common/ContentEditable.js +23 -3
- package/lib/components/common/FormSelect.js +16 -17
- package/lib/components/common/NodeSelect.js +2 -3
- package/lib/components/common/Scroller.js +2 -3
- package/lib/components/common/StaticSelect.js +14 -15
- package/lib/components/common/TableInput.js +276 -63
- package/lib/components/common/TeamSelect.js +16 -17
- package/lib/components/common/ToastContainer.js +165 -0
- package/lib/components/common/Typeahead.js +15 -2
- package/lib/components/common/UserSelect.js +16 -17
- package/lib/components/common/authentication/AuthInterceptor.js +2 -3
- package/lib/components/common/authentication/AuthInterceptor.test.js +141 -153
- package/lib/components/common/authentication/AuthenticationContainer.js +332 -343
- package/lib/components/common/authentication/RequestInterceptor.js +2 -10
- package/lib/components/common/code_input/CodeInput.js +4 -9
- package/lib/components/common/code_input/draftHelpers.js +20 -37
- package/lib/components/common/code_input/languageHelpers.js +6 -12
- package/lib/components/common/code_input/languageHelpers.test.js +10 -8
- package/lib/components/common/defaults/Toast.js +25 -0
- package/lib/components/common/defaults/index.js +12 -0
- package/lib/components/core/attribute_definition/AttributeDefinitionForm.js +1 -2
- package/lib/components/core/attribute_definition/AttributeDefinitionTable.js +8 -5
- package/lib/components/core/bridge_model/BridgeModelForm.js +52 -55
- package/lib/components/core/bridge_model/BridgeModelTable.js +6 -4
- package/lib/components/core/bridge_model_attribute/BridgeModelAttributeForm.js +1 -2
- package/lib/components/core/bridge_model_attribute/BridgeModelAttributeTable.js +1 -2
- package/lib/components/core/bridge_model_qualification/BridgeModelQualificationForm.js +1 -2
- package/lib/components/core/bridge_model_qualification/BridgeModelQualificationTable.js +1 -2
- package/lib/components/core/category/CategoryForm.js +1 -2
- package/lib/components/core/category/CategoryTable.js +14 -8
- package/lib/components/core/core_form/CoreForm.js +11 -22
- package/lib/components/core/core_form/defaults/index.js +11 -19
- package/lib/components/core/core_form/globals.js +3 -5
- package/lib/components/core/field_definition/FieldDefinitionForm.js +1 -2
- package/lib/components/core/field_definition/FieldDefinitionTable.js +13 -9
- package/lib/components/core/file_resource/FileResourceForm.js +1 -2
- package/lib/components/core/file_resource/FileResourceTable.js +1 -2
- package/lib/components/core/form/FormForm.js +1 -2
- package/lib/components/core/form/FormTable.js +23 -13
- package/lib/components/core/form_type/FormTypeForm.js +1 -2
- package/lib/components/core/form_type/FormTypeTable.js +4 -3
- package/lib/components/core/i18n/I18n.js +2 -4
- package/lib/components/core/i18n/I18nContext.js +1 -2
- package/lib/components/core/i18n/I18nProvider.js +2 -3
- package/lib/components/core/i18n/Moment.js +10 -9
- package/lib/components/core/index_definition/IndexDefinitionForm.js +1 -2
- package/lib/components/core/index_definition/IndexDefinitionTable.js +13 -7
- package/lib/components/core/index_job/IndexJobTable.js +1 -2
- package/lib/components/core/kapp/KappForm.js +1 -2
- package/lib/components/core/kapp/KappTable.js +18 -34
- package/lib/components/core/log/LogTable.js +10 -6
- package/lib/components/core/oauth_client/OAuthClientForm.js +1 -2
- package/lib/components/core/oauth_client/OAuthClientTable.js +1 -2
- package/lib/components/core/platform_component/AgentComponentForm.js +1 -2
- package/lib/components/core/platform_component/AgentComponentTable.js +1 -2
- package/lib/components/core/platform_component/TaskComponentForm.js +1 -2
- package/lib/components/core/profile/ProfileForm.js +1 -2
- package/lib/components/core/security_definition/SecurityDefinitionForm.js +3 -6
- package/lib/components/core/security_definition/SecurityDefinitionTable.js +10 -6
- package/lib/components/core/space/SpaceForm.js +1 -2
- package/lib/components/core/submission/DatastoreSubmissionFilters.js +3 -5
- package/lib/components/core/submission/DatastoreSubmissionTable.js +2 -4
- package/lib/components/core/submission/FormSubmissionFilters.js +4 -7
- package/lib/components/core/submission/FormSubmissionTable.js +39 -23
- package/lib/components/core/submission/KappSubmissionTable.js +39 -23
- package/lib/components/core/submission/SubmissionForm.js +1 -2
- package/lib/components/core/submission/SubmissionTable.js +2 -3
- package/lib/components/core/submission/helpers.js +4 -7
- package/lib/components/core/team/TeamForm.js +2 -3
- package/lib/components/core/team/TeamTable.js +12 -7
- package/lib/components/core/translation/ContextForm.js +1 -2
- package/lib/components/core/translation/ContextTable.js +1 -2
- package/lib/components/core/translation/EntryForm.js +1 -2
- package/lib/components/core/translation/EntryTable.js +1 -2
- package/lib/components/core/translation/LocaleForm.js +1 -2
- package/lib/components/core/translation/LocaleTable.js +1 -2
- package/lib/components/core/user/UserForm.js +1 -2
- package/lib/components/core/user/UserTable.js +24 -7
- package/lib/components/core/webapi/WebApiForm.js +138 -123
- package/lib/components/core/webapi/WebApiTable.js +15 -9
- package/lib/components/core/webhook/WebhookForm.js +1 -2
- package/lib/components/core/webhook/WebhookTable.js +20 -11
- package/lib/components/core/webhook_job/WebhookJobTable.js +40 -21
- package/lib/components/form/Form.helpers.js +91 -38
- package/lib/components/form/Form.js +312 -355
- package/lib/components/form/Form.models.js +7 -11
- package/lib/components/form/FormState.js +1 -2
- package/lib/components/form/KitchenSinkForm.js +23 -3
- package/lib/components/form/SimpleForm.helpers.js +262 -0
- package/lib/components/form/SimpleForm.js +462 -0
- package/lib/components/form/SimpleForm.models.js +62 -0
- package/lib/components/form/defaults/AttributesField.js +3 -4
- package/lib/components/form/defaults/CheckboxField.js +2 -3
- package/lib/components/form/defaults/CodeField.js +2 -3
- package/lib/components/form/defaults/FormButtons.js +2 -3
- package/lib/components/form/defaults/FormError.js +2 -3
- package/lib/components/form/defaults/FormField.js +2 -3
- package/lib/components/form/defaults/FormLayout.js +2 -3
- package/lib/components/form/defaults/FormMultiField.js +2 -3
- package/lib/components/form/defaults/PasswordField.js +2 -3
- package/lib/components/form/defaults/RadioField.js +2 -3
- package/lib/components/form/defaults/SampleTeamsRolesFIeld.js +2 -3
- package/lib/components/form/defaults/SelectField.js +2 -3
- package/lib/components/form/defaults/SelectMultiField.js +2 -3
- package/lib/components/form/defaults/TableField.js +2 -3
- package/lib/components/form/defaults/TeamField.js +2 -3
- package/lib/components/form/defaults/TeamMultiField.js +2 -3
- package/lib/components/form/defaults/TextField.js +2 -3
- package/lib/components/form/defaults/TextMultiField.js +2 -3
- package/lib/components/form/defaults/UserField.js +2 -3
- package/lib/components/form/defaults/UserMultiField.js +2 -3
- package/lib/components/form/defaults/index.js +2 -3
- package/lib/components/form/tests/Form.test.js +3865 -4257
- package/lib/components/form/tests/components.js +2 -3
- package/lib/components/index.js +60 -0
- package/lib/components/system/SystemBackgroundTasksTable.js +1 -2
- package/lib/components/system/SystemCassandraForm.js +97 -0
- package/lib/components/system/SystemElasticSearchForm.js +97 -0
- package/lib/components/system/SystemFilestoreForm.js +12 -8
- package/lib/components/system/SystemForm.js +1 -2
- package/lib/components/system/SystemIngressForm.js +78 -31
- package/lib/components/system/SystemSecurityForm.js +1 -2
- package/lib/components/system/SystemSmtpForm.js +1 -2
- package/lib/components/system/SystemTaskAdapterForm.js +30 -7
- package/lib/components/system/SystemTrustedCertificateForm.js +39 -0
- package/lib/components/system/SystemTrustedCertificatesTable.js +73 -0
- package/lib/components/system/SystemUserForm.js +1 -2
- package/lib/components/system/helpers.js +236 -65
- package/lib/components/system/spaces/SystemSpaceForm.js +2 -3
- package/lib/components/system/spaces/SystemTenantForm.js +77 -37
- package/lib/components/system/spaces/SystemTenantTable.js +1 -2
- package/lib/components/table/Table.js +132 -54
- package/lib/components/table/Table.redux.js +229 -235
- package/lib/components/table/Table.test.js +154 -123
- package/lib/components/table/defaults/BodyCell.js +1 -2
- package/lib/components/table/defaults/BodyRow.js +1 -2
- package/lib/components/table/defaults/BooleanFilter.js +1 -2
- package/lib/components/table/defaults/ColumnControl.js +25 -0
- package/lib/components/table/defaults/EmptyBodyRow.js +1 -2
- package/lib/components/table/defaults/FilterLayout.js +1 -2
- package/lib/components/table/defaults/Footer.js +1 -2
- package/lib/components/table/defaults/FooterCell.js +1 -2
- package/lib/components/table/defaults/FooterRow.js +1 -2
- package/lib/components/table/defaults/Header.js +1 -2
- package/lib/components/table/defaults/HeaderCell.js +1 -2
- package/lib/components/table/defaults/HeaderRow.js +1 -2
- package/lib/components/table/defaults/PaginationControl.js +2 -4
- package/lib/components/table/defaults/TableBody.js +1 -2
- package/lib/components/table/defaults/TableLayout.js +1 -2
- package/lib/components/table/defaults/TextFilter.js +1 -2
- package/lib/components/table/defaults/index.js +5 -4
- package/lib/components/task/builder/Connector.js +26 -11
- package/lib/components/task/builder/ConnectorForm.js +1 -2
- package/lib/components/task/builder/Node.js +18 -9
- package/lib/components/task/builder/NodeForm.js +1 -2
- package/lib/components/task/builder/NodeParametersForm.js +1 -2
- package/lib/components/task/builder/SvgCanvas.js +2 -3
- package/lib/components/task/builder/SvgText.js +2 -3
- package/lib/components/task/builder/TaskDefinitionConfigForm.js +3 -6
- package/lib/components/task/builder/TreeBuilder.js +10 -4
- package/lib/components/task/builder/builder.redux.js +171 -182
- package/lib/components/task/builder/constants.js +38 -76
- package/lib/components/task/builder/helpers.js +23 -40
- package/lib/components/task/builder/models.js +19 -35
- package/lib/components/task/category/TaskCategoryForm.js +2 -3
- package/lib/components/task/category/TaskCategoryTable.js +1 -2
- package/lib/components/task/common/UsageTable.js +1 -2
- package/lib/components/task/engine/EngineSettingsForm.js +2 -3
- package/lib/components/task/errors/RunErrorTable.js +35 -17
- package/lib/components/task/errors/SystemErrorsTable.js +1 -2
- package/lib/components/task/handlers/HandlerForm.js +2 -3
- package/lib/components/task/handlers/HandlerTable.js +24 -13
- package/lib/components/task/handlers/MissingHandlerTable.js +1 -2
- package/lib/components/task/policy_rule/PolicyRuleForm.js +2 -3
- package/lib/components/task/policy_rule/PolicyRuleTable.js +1 -2
- package/lib/components/task/runs/CreateManualTriggerForm.js +1 -2
- package/lib/components/task/runs/RunTable.js +24 -12
- package/lib/components/task/runs/RunTaskTable.js +1 -2
- package/lib/components/task/sources/SourceForm.js +1 -2
- package/lib/components/task/sources/SourceTable.js +16 -9
- package/lib/components/task/triggers/TriggerTable.js +52 -26
- package/lib/components/task/workflows/LinkedWorkflowForm.js +3 -5
- package/lib/components/task/workflows/LinkedWorkflowTable.js +33 -18
- package/lib/components/task/workflows/MissingRoutineTable.js +1 -2
- package/lib/components/task/workflows/WorkflowForm.js +2 -3
- package/lib/components/task/workflows/WorkflowTable.js +31 -17
- package/lib/helpers/SearchBuilder.js +2 -4
- package/lib/helpers/index.js +13 -26
- package/lib/index.js +7 -9
- package/lib/reducer.js +3 -5
- package/lib/saga.js +32 -48
- package/lib/store.js +32 -42
- package/package.json +26 -16
- package/proxyhelper.js +17 -11
- package/lib/components/core/CoreFormModal.js +0 -64
- 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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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
|
+
};
|