@kineticdata/react 6.0.4 → 6.1.0
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/CHANGELOG.md +116 -86
- package/lib/apis/core/attributeDefinitions.js +9 -6
- package/lib/apis/core/integrations.js +61 -0
- package/lib/apis/core/submissions.js +52 -15
- package/lib/apis/http.js +16 -2
- package/lib/apis/index.js +24 -0
- package/lib/apis/integrator/index.js +262 -0
- package/lib/apis/system/index.js +64 -12
- package/lib/apis/task/index.js +9 -2
- package/lib/components/agent/filestore/FilestoreForm.js +1 -1
- package/lib/components/common/AttributeSelect.js +10 -2
- package/lib/components/common/BridgeSelect.js +2 -1
- package/lib/components/common/ConnectionSelect.js +72 -0
- package/lib/components/common/FormSelect.js +2 -1
- package/lib/components/common/StaticSelect.js +15 -6
- package/lib/components/common/TableInput.js +4 -1
- package/lib/components/common/TeamSelect.js +2 -1
- package/lib/components/common/ToastContainer.js +34 -10
- package/lib/components/common/Typeahead.js +59 -23
- package/lib/components/common/UserSelect.js +2 -1
- package/lib/components/common/authentication/RequestInterceptor.js +1 -1
- package/lib/components/core/attribute_definition/AttributeDefinitionForm.js +3 -0
- package/lib/components/core/bridge_model/BridgeModelTable.js +19 -0
- package/lib/components/core/bridge_model_attribute/BridgeModelAttributeForm.js +6 -9
- package/lib/components/core/bridge_model_attribute/BridgeModelAttributeTable.js +0 -4
- package/lib/components/core/bridge_model_qualification/BridgeModelQualificationForm.js +7 -10
- package/lib/components/core/bridge_model_qualification/BridgeModelQualificationTable.js +2 -15
- package/lib/components/core/category/CategoryForm.js +4 -1
- package/lib/components/core/category/CategoryTable.js +2 -2
- package/lib/components/core/core_form/CoreForm.js +18 -10
- package/lib/components/core/file_resource/FileResourceForm.js +2 -1
- package/lib/components/core/file_resource/FileResourceTable.js +14 -7
- package/lib/components/core/form/FormForm.js +42 -19
- package/lib/components/core/form/FormTable.js +14 -14
- package/lib/components/core/form_type/FormTypeForm.js +3 -0
- package/lib/components/core/i18n/Moment.js +1 -0
- package/lib/components/core/integration/IntegrationForm.js +232 -0
- package/lib/components/core/integration/IntegrationTable.js +139 -0
- package/lib/components/core/kapp/KappForm.js +56 -67
- package/lib/components/core/kapp/KappTable.js +3 -3
- package/lib/components/core/log/LogTable.js +1 -1
- package/lib/components/core/security_definition/SecurityDefinitionForm.js +48 -10
- package/lib/components/core/space/SpaceForm.js +97 -111
- package/lib/components/core/submission/DatastoreSubmissionTable.js +4 -4
- package/lib/components/core/submission/FormSubmissionTable.js +12 -7
- package/lib/components/core/submission/KappSubmissionTable.js +4 -4
- package/lib/components/core/submission/SubmissionForm.js +3 -1
- package/lib/components/core/team/TeamTable.js +17 -7
- package/lib/components/core/user/UserTable.js +18 -18
- package/lib/components/core/webapi/WebApiForm.js +5 -2
- package/lib/components/core/webapi/WebApiTable.js +2 -2
- package/lib/components/core/webhook/WebhookForm.js +43 -33
- package/lib/components/core/webhook/WebhookTable.js +16 -16
- package/lib/components/core/webhook_job/WebhookJobTable.js +17 -6
- package/lib/components/form/Form.helpers.js +10 -4
- package/lib/components/form/Form.js +250 -168
- package/lib/components/form/Form.models.js +6 -1
- package/lib/components/form/FormState.js +9 -5
- package/lib/components/form/defaults/CodeField.js +44 -1
- package/lib/components/index.js +84 -3
- package/lib/components/integrator/connection/ConnectionForm.js +112 -0
- package/lib/components/integrator/connection/ConnectionTable.js +80 -0
- package/lib/components/integrator/connection/config_fields/http.js +570 -0
- package/lib/components/integrator/integrationTypes.js +98 -0
- package/lib/components/integrator/operation/OperationForm.js +128 -0
- package/lib/components/integrator/operation/OperationTable.js +64 -0
- package/lib/components/integrator/operation/config_fields/http.js +184 -0
- package/lib/components/system/SystemSecurityForm.js +1 -1
- package/lib/components/system/SystemTaskAdapterForm.js +9 -9
- package/lib/components/system/helpers.js +123 -100
- package/lib/components/system/spaces/SystemSpaceForm.js +9 -37
- package/lib/components/system/spaces/SystemTenantForm.js +276 -104
- package/lib/components/system/spaces/SystemTenantMigrateForm.js +449 -0
- package/lib/components/system/spaces/SystemTenantTable.js +20 -16
- package/lib/components/table/Table.redux.js +1 -1
- package/lib/components/task/builder/ConnectorForm.js +11 -7
- package/lib/components/task/builder/Node.js +11 -2
- package/lib/components/task/builder/NodeForm.js +93 -22
- package/lib/components/task/builder/NodeParametersForm.js +29 -17
- package/lib/components/task/builder/TaskDefinitionConfigForm.js +18 -50
- package/lib/components/task/builder/TreeBuilder.js +32 -5
- package/lib/components/task/builder/builder.redux.js +399 -205
- package/lib/components/task/builder/constants.js +10 -2
- package/lib/components/task/builder/helpers.js +199 -79
- package/lib/components/task/builder/models.js +11 -9
- package/lib/components/task/category/TaskCategoryTable.js +3 -3
- package/lib/components/task/common/UsageTable.js +1 -1
- package/lib/components/task/handlers/HandlerTable.js +35 -19
- package/lib/components/task/policy_rule/PolicyRuleTable.js +3 -3
- package/lib/components/task/runs/CreateManualTriggerForm.js +2 -0
- package/lib/components/task/runs/RunTable.js +4 -4
- package/lib/components/task/runs/RunTaskTable.js +1 -1
- package/lib/components/task/sources/SourceTable.js +2 -2
- package/lib/components/task/triggers/TriggerTable.js +2 -2
- package/lib/components/task/workflows/LinkedWorkflowTable.js +2 -2
- package/lib/components/task/workflows/WorkflowForm.js +29 -9
- package/lib/components/task/workflows/WorkflowTable.js +2 -2
- package/lib/helpers/index.js +289 -72
- package/package.json +5 -3
- package/proxyhelper.js +28 -3
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.THROTTLE_ZOOM = exports.THROTTLE_DRAG = exports.NODE_WIDTH = exports.NODE_TOP_BAR_PATH = exports.NODE_STROKE_WIDTH = exports.NODE_START_RADIUS = exports.NODE_RADIUS = exports.NODE_PADDING = exports.NODE_NAME_PADDING = exports.NODE_LEFT_TOP_BAR_PATH = exports.NODE_LEFT_BOTTOM_BAR_PATH = exports.NODE_LEFT_BAR_PATH = exports.NODE_JOIN_JUNCTION_HEIGHT = exports.NODE_JOIN_JUNCTION_CENTER_Y = exports.NODE_HEIGHT = exports.NODE_DECORATION_STROKE_WIDTH = exports.NODE_CORNER_TAB_PATH = exports.NODE_CENTER_Y = exports.NODE_CENTER_X = exports.NODE_BOTTOM_BAR_PATH = exports.NODE_BAR_THICKNESS = exports.NODE_BADGE_OFFSET = exports.NEW_TASK_DY = exports.NEW_TASK_DX = exports.ICON_SIZE = exports.ICON_CENTER = exports.CONNECTOR_TAIL_RADIUS = exports.CONNECTOR_STROKE_WIDTH = exports.CONNECTOR_LABEL_WIDTH = exports.CONNECTOR_LABEL_RADIUS = exports.CONNECTOR_LABEL_PADDING = exports.CONNECTOR_LABEL_HEIGHT = exports.CONNECTOR_LABEL_CENTER_Y = exports.CONNECTOR_LABEL_CENTER_X = exports.CONNECTOR_HEAD_POINTS = exports.CANVAS_ZOOM_MODIFIER = exports.CANVAS_ZOOM_DURATION = exports.CANVAS_SCALE_OPTIONS = void 0;
|
|
6
|
+
exports.THROTTLE_ZOOM = exports.THROTTLE_DRAG = exports.NODE_WIDTH = exports.NODE_TOP_BAR_PATH = exports.NODE_STROKE_WIDTH = exports.NODE_START_RADIUS = exports.NODE_RADIUS = exports.NODE_PLUG_SPACE_HEIGHT = exports.NODE_PLUG_PRONG_HEIGHT = exports.NODE_PLUG_HEIGHT = exports.NODE_PLUG_BAR_PATH = exports.NODE_PADDING = exports.NODE_NAME_PADDING = exports.NODE_LEFT_TOP_BAR_PATH = exports.NODE_LEFT_BOTTOM_BAR_PATH = exports.NODE_LEFT_BAR_PATH = exports.NODE_JOIN_JUNCTION_HEIGHT = exports.NODE_JOIN_JUNCTION_CENTER_Y = exports.NODE_HEIGHT = exports.NODE_DECORATION_STROKE_WIDTH = exports.NODE_CORNER_TAB_PATH = exports.NODE_CENTER_Y = exports.NODE_CENTER_X = exports.NODE_BOTTOM_BAR_PATH = exports.NODE_BAR_THICKNESS = exports.NODE_BADGE_OFFSET = exports.NEW_TASK_DY = exports.NEW_TASK_DX = exports.ICON_SIZE = exports.ICON_CENTER = exports.CONNECTOR_TAIL_RADIUS = exports.CONNECTOR_STROKE_WIDTH = exports.CONNECTOR_LABEL_WIDTH = exports.CONNECTOR_LABEL_RADIUS = exports.CONNECTOR_LABEL_PADDING = exports.CONNECTOR_LABEL_HEIGHT = exports.CONNECTOR_LABEL_CENTER_Y = exports.CONNECTOR_LABEL_CENTER_X = exports.CONNECTOR_HEAD_POINTS = exports.CANVAS_ZOOM_MODIFIER = exports.CANVAS_ZOOM_DURATION = exports.CANVAS_SCALE_OPTIONS = exports.ADVANCED_HANDLER_NAME_SUBMISSION_CREATE = exports.ADVANCED_HANDLER_NAME_INTEGRATION = void 0;
|
|
7
7
|
var _immutable = require("immutable");
|
|
8
8
|
var CANVAS_SCALE_OPTIONS = exports.CANVAS_SCALE_OPTIONS = _immutable.List.of(0.25, 0.5, 0.75, 1, 1.33);
|
|
9
9
|
var CANVAS_ZOOM_DURATION = exports.CANVAS_ZOOM_DURATION = 200;
|
|
@@ -24,6 +24,9 @@ var NODE_BADGE_OFFSET = exports.NODE_BADGE_OFFSET = 6;
|
|
|
24
24
|
var NODE_BAR_THICKNESS = exports.NODE_BAR_THICKNESS = 8;
|
|
25
25
|
var NODE_RADIUS = exports.NODE_RADIUS = 8;
|
|
26
26
|
var NODE_HEIGHT = exports.NODE_HEIGHT = 45;
|
|
27
|
+
var NODE_PLUG_PRONG_HEIGHT = exports.NODE_PLUG_PRONG_HEIGHT = 4;
|
|
28
|
+
var NODE_PLUG_SPACE_HEIGHT = exports.NODE_PLUG_SPACE_HEIGHT = 3;
|
|
29
|
+
var NODE_PLUG_HEIGHT = exports.NODE_PLUG_HEIGHT = NODE_PLUG_PRONG_HEIGHT * 2 + NODE_PLUG_SPACE_HEIGHT;
|
|
27
30
|
var NODE_JOIN_JUNCTION_HEIGHT = exports.NODE_JOIN_JUNCTION_HEIGHT = 45;
|
|
28
31
|
var NODE_START_RADIUS = exports.NODE_START_RADIUS = 28;
|
|
29
32
|
var NODE_STROKE_WIDTH = exports.NODE_STROKE_WIDTH = 1;
|
|
@@ -61,7 +64,12 @@ var ARC_DOWN_LEFT = " ".concat(NODE_RADIUS, " ").concat(NODE_RADIUS, " 0 0 1 -")
|
|
|
61
64
|
var ARC_UP_LEFT = " ".concat(NODE_RADIUS, " ").concat(NODE_RADIUS, " 0 0 1 -").concat(NODE_RADIUS, " -").concat(NODE_RADIUS);
|
|
62
65
|
var NODE_BOTTOM_BAR_PATH = exports.NODE_BOTTOM_BAR_PATH = "\n M ".concat(MIN, " ").concat(MAX_Y - NODE_BAR_THICKNESS, "\n h ").concat(OUTER_WIDTH, "\n v ").concat(NODE_BAR_THICKNESS - NODE_RADIUS, "\n a ").concat(ARC_DOWN_LEFT, "\n h -").concat(OUTER_WIDTH - NODE_RADIUS * 2, "\n a ").concat(ARC_UP_LEFT, "\n v -").concat(NODE_BAR_THICKNESS - NODE_RADIUS, "\n");
|
|
63
66
|
var NODE_LEFT_BAR_PATH = exports.NODE_LEFT_BAR_PATH = "\n M ".concat(MIN + NODE_BAR_THICKNESS, " ").concat(MIN, "\n v ").concat(OUTER_HEIGHT, "\n h -").concat(NODE_BAR_THICKNESS - NODE_RADIUS, "\n a ").concat(ARC_UP_LEFT, "\n v -").concat(OUTER_HEIGHT - NODE_RADIUS * 2, "\n a ").concat(ARC_UP_RIGHT, "\n h ").concat(NODE_BAR_THICKNESS - NODE_RADIUS, "\n ");
|
|
67
|
+
var NODE_PLUG_BAR_PATH = exports.NODE_PLUG_BAR_PATH = "\n M ".concat(MIN + NODE_BAR_THICKNESS, " ").concat(MIN, "\n v ").concat(OUTER_HEIGHT, "\n h -").concat(NODE_BAR_THICKNESS - NODE_RADIUS, "\n a ").concat(ARC_UP_LEFT, "\n v -").concat((OUTER_HEIGHT - NODE_RADIUS * 2 - NODE_PLUG_HEIGHT) / 2, "\n h ").concat(NODE_BAR_THICKNESS * 0.625, "\n v -").concat(NODE_PLUG_PRONG_HEIGHT, "\n h -").concat(NODE_BAR_THICKNESS * 0.625, "\n v -").concat(NODE_PLUG_SPACE_HEIGHT, "\n h ").concat(NODE_BAR_THICKNESS * 0.625, "\n v -").concat(NODE_PLUG_PRONG_HEIGHT, "\n h -").concat(NODE_BAR_THICKNESS * 0.625, "\n v -").concat((OUTER_HEIGHT - NODE_RADIUS * 2 - NODE_PLUG_HEIGHT) / 2, "\n a ").concat(ARC_UP_RIGHT, "\n h ").concat(NODE_BAR_THICKNESS - NODE_RADIUS, "\n ");
|
|
64
68
|
var NODE_LEFT_TOP_BAR_PATH = exports.NODE_LEFT_TOP_BAR_PATH = "\n M ".concat(MIN + NODE_BAR_THICKNESS, " ").concat(MIN, "\n v ").concat(OUTER_HEIGHT / 2, "\n h -").concat(NODE_BAR_THICKNESS, "\n v -").concat(OUTER_HEIGHT / 2 - NODE_RADIUS, "\n a ").concat(ARC_UP_RIGHT, "\n h ").concat(NODE_BAR_THICKNESS - NODE_RADIUS, "\n ");
|
|
65
69
|
var NODE_LEFT_BOTTOM_BAR_PATH = exports.NODE_LEFT_BOTTOM_BAR_PATH = "\n M ".concat(MIN + NODE_BAR_THICKNESS, " ").concat(MIN + OUTER_HEIGHT / 2, "\n v ").concat(OUTER_HEIGHT / 2, "\n h -").concat(NODE_BAR_THICKNESS - NODE_RADIUS, "\n a ").concat(ARC_UP_LEFT, "\n v -").concat(OUTER_HEIGHT / 2 - NODE_RADIUS, "\n h ").concat(NODE_BAR_THICKNESS - NODE_RADIUS, "\n ");
|
|
66
70
|
var NODE_TOP_BAR_PATH = exports.NODE_TOP_BAR_PATH = "\n M ".concat(MIN, " ").concat(MIN + NODE_BAR_THICKNESS, "\n v -").concat(NODE_BAR_THICKNESS - NODE_RADIUS, "\n a ").concat(ARC_UP_RIGHT, "\n h ").concat(OUTER_WIDTH - NODE_RADIUS * 2, "\n a ").concat(ARC_DOWN_RIGHT, "\n v ").concat(NODE_BAR_THICKNESS - NODE_RADIUS, "\n h -").concat(OUTER_WIDTH, "\n");
|
|
67
|
-
var NODE_CORNER_TAB_PATH = exports.NODE_CORNER_TAB_PATH = "\n M ".concat(MAX_X - NODE_BAR_THICKNESS * 3, " ").concat(MIN, "\n h ").concat(NODE_BAR_THICKNESS * 3 - NODE_RADIUS, "\n a ").concat(ARC_DOWN_RIGHT, "\n v ").concat(NODE_BAR_THICKNESS * 3 - NODE_RADIUS, "\n L ").concat(MAX_X - NODE_BAR_THICKNESS * 3, " ").concat(MIN, "\n");
|
|
71
|
+
var NODE_CORNER_TAB_PATH = exports.NODE_CORNER_TAB_PATH = "\n M ".concat(MAX_X - NODE_BAR_THICKNESS * 3, " ").concat(MIN, "\n h ").concat(NODE_BAR_THICKNESS * 3 - NODE_RADIUS, "\n a ").concat(ARC_DOWN_RIGHT, "\n v ").concat(NODE_BAR_THICKNESS * 3 - NODE_RADIUS, "\n L ").concat(MAX_X - NODE_BAR_THICKNESS * 3, " ").concat(MIN, "\n");
|
|
72
|
+
|
|
73
|
+
// Advanced handler definition names
|
|
74
|
+
var ADVANCED_HANDLER_NAME_INTEGRATION = exports.ADVANCED_HANDLER_NAME_INTEGRATION = 'system_integration';
|
|
75
|
+
var ADVANCED_HANDLER_NAME_SUBMISSION_CREATE = exports.ADVANCED_HANDLER_NAME_SUBMISSION_CREATE = 'system_submission_create';
|
|
@@ -5,10 +5,12 @@ var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWild
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.treeReturnTask = exports.searchNodeResultDependencies = exports.replace = exports.renameDependencies = exports.parseNodeResultDependencies = exports.normalizeParameter = exports.isPointInNode = exports.isIE11 = exports.getRectIntersections = exports.getNodeType = exports.getNodeShape = exports.getNodeDependencies = exports.getNodeCenter = exports.getNewNodePosition = exports.getConnectorDependencies = exports.getAncestors = exports.buildBindings = exports.addNewTask = void 0;
|
|
8
|
+
exports.treeReturnTask = exports.searchNodeResultDependencies = exports.replace = exports.renameDependencies = exports.parseNodeResultDependencies = exports.normalizeParameter = exports.isPointInNode = exports.isIE11 = exports.getRectIntersections = exports.getNodeType = exports.getNodeShape = exports.getNodeDependencies = exports.getNodeCenter = exports.getNewNodePosition = exports.getConnectorDependencies = exports.getAncestors = exports.generateSubmissionCreateTaskDefinition = exports.generateIntegrationTaskDefinition = exports.checkOmittedParametersForAdvancedHandlers = exports.buildBindings = exports.addNewTask = void 0;
|
|
9
9
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectWithoutProperties"));
|
|
10
10
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/slicedToArray"));
|
|
11
11
|
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
|
12
|
+
var _toArray2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/toArray"));
|
|
13
|
+
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/toConsumableArray"));
|
|
12
14
|
var _immutable = require("immutable");
|
|
13
15
|
var _lodashEs = require("lodash-es");
|
|
14
16
|
var _kldIntersections = require("kld-intersections");
|
|
@@ -106,54 +108,94 @@ var getAncestors = exports.getAncestors = function getAncestors(tree, node) {
|
|
|
106
108
|
);
|
|
107
109
|
};
|
|
108
110
|
|
|
109
|
-
//
|
|
110
|
-
//
|
|
111
|
-
// time)
|
|
111
|
+
// Converts the bindings data from the server and the generated Results
|
|
112
|
+
// bindings into the correct structure needed for the code editor
|
|
112
113
|
var bindify = function bindify(raw) {
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
114
|
+
var flatBindings = flattenBindings(raw).map(function (binding) {
|
|
115
|
+
var _binding$match;
|
|
116
|
+
return binding === null || binding === void 0 ? void 0 : (_binding$match = binding.match(/^<?%?=?\s*(.*)\s*%?>?$/i)) === null || _binding$match === void 0 ? void 0 : _binding$match[1];
|
|
117
|
+
}).filter(Boolean).map(function (binding) {
|
|
118
|
+
return parseBinding(binding);
|
|
119
|
+
});
|
|
120
|
+
var groupedBindings = groupBindings(flatBindings);
|
|
121
|
+
return finalizeBindings(groupedBindings);
|
|
122
|
+
};
|
|
123
|
+
|
|
124
|
+
// Takes the bindings data from the server and the generated Results bindings,
|
|
125
|
+
// and flattens them all into a list of the binding strings
|
|
126
|
+
var flattenBindings = function flattenBindings(data) {
|
|
127
|
+
return (0, _lodashEs.isObject)(data) ? Object.values(data).flatMap(flattenBindings) : data;
|
|
128
|
+
};
|
|
129
|
+
|
|
130
|
+
// Parses each flattened bindings string to an array of its parts
|
|
131
|
+
var parseBinding = function parseBinding(binding, parsedSoFar) {
|
|
132
|
+
var match = binding === null || binding === void 0 ? void 0 : binding.match(/^(?:(@\w+)|\[\'((?:\w|\s|-)+)\'\])(.*)$/i);
|
|
133
|
+
if (match) {
|
|
134
|
+
var parsedNext = [].concat((0, _toConsumableArray2["default"])(parsedSoFar || []), [match[1] || match[2]]).filter(Boolean);
|
|
135
|
+
return match[3] ? parseBinding(match[3], parsedNext) : parsedNext;
|
|
136
|
+
}
|
|
137
|
+
return parsedSoFar;
|
|
138
|
+
};
|
|
139
|
+
|
|
140
|
+
// Recursively groups the flattened and parsed bindings into maps with the
|
|
141
|
+
// parts as keys, with the final leaf having a value of null
|
|
142
|
+
var groupBindings = function groupBindings(flatBindings) {
|
|
143
|
+
return Array.isArray(flatBindings) ? (0, _immutable.List)(flatBindings).groupBy(function (bindingArray) {
|
|
144
|
+
return bindingArray[0];
|
|
145
|
+
}).map(function (childBindings) {
|
|
146
|
+
var updatedBindings = childBindings.map(function (_ref4) {
|
|
147
|
+
var _ref5 = (0, _toArray2["default"])(_ref4),
|
|
148
|
+
children = _ref5.slice(1);
|
|
149
|
+
return children.length > 0 ? children : null;
|
|
150
|
+
}).filter(Boolean);
|
|
151
|
+
return updatedBindings.size > 0 ? groupBindings(updatedBindings.toArray()) : null;
|
|
152
|
+
}) : flatBindings;
|
|
153
|
+
};
|
|
154
|
+
|
|
155
|
+
// Recursively converts the grouped bindings into the format needed for the
|
|
156
|
+
// code editor
|
|
157
|
+
var finalizeBindings = function finalizeBindings(bindingsMap) {
|
|
158
|
+
return bindingsMap.map(function (children, label) {
|
|
159
|
+
return !!children ? (0, _immutable.Map)({
|
|
160
|
+
label: label,
|
|
161
|
+
type: 'object',
|
|
162
|
+
children: finalizeBindings(children)
|
|
118
163
|
}) : (0, _immutable.Map)({
|
|
119
|
-
|
|
164
|
+
label: label
|
|
120
165
|
});
|
|
121
|
-
});
|
|
166
|
+
}).toList();
|
|
122
167
|
};
|
|
123
|
-
var buildBindings = exports.buildBindings = function buildBindings(
|
|
124
|
-
var
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
.
|
|
145
|
-
return (
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
})];
|
|
150
|
-
}))
|
|
151
|
-
});
|
|
152
|
-
})
|
|
168
|
+
var buildBindings = exports.buildBindings = function buildBindings(_ref6) {
|
|
169
|
+
var tree = _ref6.tree,
|
|
170
|
+
tasks = _ref6.tasks,
|
|
171
|
+
connections = _ref6.connections,
|
|
172
|
+
node = _ref6.node;
|
|
173
|
+
var Results = tree.nodes.reduce(function (results, node) {
|
|
174
|
+
var isIntegration = node.definitionId.startsWith("".concat(_constants.ADVANCED_HANDLER_NAME_INTEGRATION, "_v"));
|
|
175
|
+
if (isIntegration) {
|
|
176
|
+
var _node$parameters$find, _node$parameters$find2;
|
|
177
|
+
var outputs = connections === null || connections === void 0 ? void 0 : connections.getIn([(_node$parameters$find = node.parameters.find(function (p) {
|
|
178
|
+
return p.id === 'connection';
|
|
179
|
+
})) === null || _node$parameters$find === void 0 ? void 0 : _node$parameters$find.value, 'operations', (_node$parameters$find2 = node.parameters.find(function (p) {
|
|
180
|
+
return p.id === 'operation';
|
|
181
|
+
})) === null || _node$parameters$find2 === void 0 ? void 0 : _node$parameters$find2.value, 'outputs']);
|
|
182
|
+
if (outputs) {
|
|
183
|
+
return results.set(node.name, outputs.reduce(function (res, _, name) {
|
|
184
|
+
return res.set(name, "@results['".concat(node.name, "']['").concat(name, "']"));
|
|
185
|
+
}, (0, _immutable.Map)()));
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
var task = tasks.get(node.definitionId);
|
|
189
|
+
return results.set(node.name, (task && (task.results || task.outputs) || []).reduce(function (res, output) {
|
|
190
|
+
return res.set(output.name, "@results['".concat(node.name, "']['").concat(output.name, "']"));
|
|
191
|
+
}, (0, _immutable.Map)()));
|
|
192
|
+
}, (0, _immutable.Map)()).filter(function (results) {
|
|
193
|
+
return !results.isEmpty();
|
|
153
194
|
});
|
|
154
|
-
|
|
155
|
-
Results: Results
|
|
156
|
-
})
|
|
195
|
+
var bindings = Results.isEmpty() ? tree.bindings : (0, _objectSpread2["default"])((0, _objectSpread2["default"])({}, tree.bindings), {}, {
|
|
196
|
+
Results: Results.toJS()
|
|
197
|
+
});
|
|
198
|
+
return bindify(bindings);
|
|
157
199
|
};
|
|
158
200
|
|
|
159
201
|
// implements the process of adding a new task node and connector to the tree,
|
|
@@ -162,10 +204,11 @@ var buildBindings = exports.buildBindings = function buildBindings(tree, tasks,
|
|
|
162
204
|
// should be called with a task definition, then it stubs out a node and
|
|
163
205
|
// connector and passes a complete function which should be called with the
|
|
164
206
|
// fully configured node and connector
|
|
165
|
-
var addNewTask = exports.addNewTask = function addNewTask(treeKey, tree, parent, position, reset) {
|
|
207
|
+
var addNewTask = exports.addNewTask = function addNewTask(treeKey, tree, connections, parent, position, reset) {
|
|
166
208
|
return {
|
|
167
209
|
cancel: reset,
|
|
168
210
|
tree: tree,
|
|
211
|
+
connections: connections,
|
|
169
212
|
selectCloneNode: function selectCloneNode(cloneNode) {
|
|
170
213
|
return addNewTaskNext({
|
|
171
214
|
cloneNode: cloneNode,
|
|
@@ -188,14 +231,14 @@ var addNewTask = exports.addNewTask = function addNewTask(treeKey, tree, parent,
|
|
|
188
231
|
}
|
|
189
232
|
};
|
|
190
233
|
};
|
|
191
|
-
var addNewTaskNext = function addNewTaskNext(
|
|
192
|
-
var cloneNode =
|
|
193
|
-
parent =
|
|
194
|
-
position =
|
|
195
|
-
reset =
|
|
196
|
-
task =
|
|
197
|
-
tree =
|
|
198
|
-
treeKey =
|
|
234
|
+
var addNewTaskNext = function addNewTaskNext(_ref7) {
|
|
235
|
+
var cloneNode = _ref7.cloneNode,
|
|
236
|
+
parent = _ref7.parent,
|
|
237
|
+
position = _ref7.position,
|
|
238
|
+
reset = _ref7.reset,
|
|
239
|
+
task = _ref7.task,
|
|
240
|
+
tree = _ref7.tree,
|
|
241
|
+
treeKey = _ref7.treeKey;
|
|
199
242
|
var connectors = tree.connectors,
|
|
200
243
|
nextConnectorId = tree.nextConnectorId,
|
|
201
244
|
nextNodeId = tree.nextNodeId,
|
|
@@ -225,7 +268,7 @@ var addNewTaskNext = function addNewTaskNext(_ref4) {
|
|
|
225
268
|
})
|
|
226
269
|
});
|
|
227
270
|
// add the stubbed connector and node to the current tree, this is done to
|
|
228
|
-
// accommodate the
|
|
271
|
+
// accommodate the code bindings helper in <ConnectorForm> and
|
|
229
272
|
// <NodeForm>
|
|
230
273
|
var stagedTree = tree.merge({
|
|
231
274
|
connectors: connectors.set(connector.id, connector),
|
|
@@ -242,10 +285,22 @@ var addNewTaskNext = function addNewTaskNext(_ref4) {
|
|
|
242
285
|
connector: connector,
|
|
243
286
|
node: node,
|
|
244
287
|
stagedTree: stagedTree,
|
|
245
|
-
complete: function complete(
|
|
246
|
-
var connector =
|
|
247
|
-
node =
|
|
288
|
+
complete: function complete(_ref8) {
|
|
289
|
+
var connector = _ref8.connector,
|
|
290
|
+
node = _ref8.node;
|
|
248
291
|
reset();
|
|
292
|
+
if (node.definitionId.startsWith("".concat(_constants.ADVANCED_HANDLER_NAME_INTEGRATION, "_v"))) {
|
|
293
|
+
var _node$parameters$find3;
|
|
294
|
+
var operationId = (_node$parameters$find3 = node.parameters.find(function (p) {
|
|
295
|
+
return p.id === 'operation';
|
|
296
|
+
})) === null || _node$parameters$find3 === void 0 ? void 0 : _node$parameters$find3.value;
|
|
297
|
+
if (operationId) {
|
|
298
|
+
(0, _store.dispatch)('TREE_LOAD_OPERATIONS', {
|
|
299
|
+
treeKey: treeKey,
|
|
300
|
+
operationIds: [operationId]
|
|
301
|
+
});
|
|
302
|
+
}
|
|
303
|
+
}
|
|
249
304
|
return (0, _store.dispatch)('TREE_UPDATE', {
|
|
250
305
|
treeKey: treeKey,
|
|
251
306
|
tree: stagedTree.setIn(['connectors', connector.id], connector).setIn(['nodes', node.id], node)
|
|
@@ -261,12 +316,12 @@ var STRING_CONTENT_REGEX = /((?:%[qQiIwWxs]?)?.)(.*)(.)/;
|
|
|
261
316
|
// takes a erb / ruby strings and checks for references to @results['Node name']
|
|
262
317
|
// using the language helpers,
|
|
263
318
|
var parseNodeResultDependencies = exports.parseNodeResultDependencies = function parseNodeResultDependencies(context, value, erb) {
|
|
264
|
-
return (erb ? _languageHelpers.processErbTemplate : _languageHelpers.processRuby)(value).reduce(function (
|
|
265
|
-
var
|
|
266
|
-
reduction =
|
|
267
|
-
index =
|
|
268
|
-
last1 =
|
|
269
|
-
last2 =
|
|
319
|
+
return (erb ? _languageHelpers.processErbTemplate : _languageHelpers.processRuby)(value).reduce(function (_ref9, token) {
|
|
320
|
+
var _ref10 = (0, _slicedToArray2["default"])(_ref9, 4),
|
|
321
|
+
reduction = _ref10[0],
|
|
322
|
+
index = _ref10[1],
|
|
323
|
+
last1 = _ref10[2],
|
|
324
|
+
last2 = _ref10[3];
|
|
270
325
|
var _token = (0, _slicedToArray2["default"])(token, 2),
|
|
271
326
|
content = _token[0],
|
|
272
327
|
type = _token[1];
|
|
@@ -290,20 +345,20 @@ var parseNodeResultDependencies = exports.parseNodeResultDependencies = function
|
|
|
290
345
|
return [newReduction, index + content.length, token, last1];
|
|
291
346
|
}, [(0, _immutable.List)(), 0, null, null])[0];
|
|
292
347
|
};
|
|
293
|
-
var getConnectorDependencies = exports.getConnectorDependencies = function getConnectorDependencies(
|
|
294
|
-
var condition =
|
|
295
|
-
id =
|
|
348
|
+
var getConnectorDependencies = exports.getConnectorDependencies = function getConnectorDependencies(_ref11) {
|
|
349
|
+
var condition = _ref11.condition,
|
|
350
|
+
id = _ref11.id;
|
|
296
351
|
return parseNodeResultDependencies(['connectors', id, 'condition'], condition);
|
|
297
352
|
};
|
|
298
|
-
var getNodeDependencies = exports.getNodeDependencies = function getNodeDependencies(
|
|
299
|
-
var id =
|
|
300
|
-
messages =
|
|
301
|
-
parameters =
|
|
302
|
-
return (0, _immutable.List)().concat(messages.flatMap(function (
|
|
303
|
-
var value =
|
|
353
|
+
var getNodeDependencies = exports.getNodeDependencies = function getNodeDependencies(_ref12) {
|
|
354
|
+
var id = _ref12.id,
|
|
355
|
+
messages = _ref12.messages,
|
|
356
|
+
parameters = _ref12.parameters;
|
|
357
|
+
return (0, _immutable.List)().concat(messages.flatMap(function (_ref13, i) {
|
|
358
|
+
var value = _ref13.value;
|
|
304
359
|
return parseNodeResultDependencies(['nodes', id, 'messages', i, 'value'], value, true);
|
|
305
|
-
}), parameters.flatMap(function (
|
|
306
|
-
var value =
|
|
360
|
+
}), parameters.flatMap(function (_ref14, i) {
|
|
361
|
+
var value = _ref14.value;
|
|
307
362
|
return parseNodeResultDependencies(['nodes', id, 'parameters', i, 'value'], value, true);
|
|
308
363
|
}));
|
|
309
364
|
};
|
|
@@ -341,11 +396,11 @@ var renameDependencies = exports.renameDependencies = function renameDependencie
|
|
|
341
396
|
// routines have `inputs` and handlers have `parameters` with slightly different
|
|
342
397
|
// properties so this is a helper function to take one or the other and return
|
|
343
398
|
// a consistent object
|
|
344
|
-
var normalizeParameter = exports.normalizeParameter = function normalizeParameter(
|
|
345
|
-
var name =
|
|
346
|
-
id =
|
|
347
|
-
defaultValue =
|
|
348
|
-
rest = (0, _objectWithoutProperties2["default"])(
|
|
399
|
+
var normalizeParameter = exports.normalizeParameter = function normalizeParameter(_ref15) {
|
|
400
|
+
var name = _ref15.name,
|
|
401
|
+
id = _ref15.id,
|
|
402
|
+
defaultValue = _ref15.defaultValue,
|
|
403
|
+
rest = (0, _objectWithoutProperties2["default"])(_ref15, _excluded);
|
|
349
404
|
return (0, _objectSpread2["default"])({
|
|
350
405
|
id: id || name,
|
|
351
406
|
label: name,
|
|
@@ -411,4 +466,69 @@ var getNewNodePosition = exports.getNewNodePosition = function getNewNodePositio
|
|
|
411
466
|
return y + _constants.NEW_TASK_DY;
|
|
412
467
|
});
|
|
413
468
|
}
|
|
469
|
+
};
|
|
470
|
+
var generateSubmissionCreateTaskDefinition = exports.generateSubmissionCreateTaskDefinition = function generateSubmissionCreateTaskDefinition(task, _ref16) {
|
|
471
|
+
var _form$fields;
|
|
472
|
+
var form = _ref16.form;
|
|
473
|
+
return (0, _objectSpread2["default"])((0, _objectSpread2["default"])({}, task), {}, {
|
|
474
|
+
parameters: [].concat((0, _toConsumableArray2["default"])(task.parameters
|
|
475
|
+
// Remove previous form's field parameters
|
|
476
|
+
.filter(function (parameter) {
|
|
477
|
+
return !parameter.id.startsWith('values.');
|
|
478
|
+
}).map(function (parameter) {
|
|
479
|
+
var _form$kapp;
|
|
480
|
+
return parameter.id === 'kappSlug' ? (0, _objectSpread2["default"])((0, _objectSpread2["default"])({}, parameter), {}, {
|
|
481
|
+
defaultValue: form === null || form === void 0 ? void 0 : (_form$kapp = form.kapp) === null || _form$kapp === void 0 ? void 0 : _form$kapp.slug
|
|
482
|
+
}) : parameter.id === 'formSlug' ? (0, _objectSpread2["default"])((0, _objectSpread2["default"])({}, parameter), {}, {
|
|
483
|
+
defaultValue: form === null || form === void 0 ? void 0 : form.slug
|
|
484
|
+
}) : parameter;
|
|
485
|
+
})), (0, _toConsumableArray2["default"])(form === null || form === void 0 ? void 0 : (_form$fields = form.fields) === null || _form$fields === void 0 ? void 0 : _form$fields.map(function (field) {
|
|
486
|
+
return {
|
|
487
|
+
name: field.name,
|
|
488
|
+
defaultValue: '',
|
|
489
|
+
dependsOnId: null,
|
|
490
|
+
dependsOnValue: null,
|
|
491
|
+
description: '',
|
|
492
|
+
id: "values.".concat(field.name),
|
|
493
|
+
required: false
|
|
494
|
+
};
|
|
495
|
+
})))
|
|
496
|
+
});
|
|
497
|
+
};
|
|
498
|
+
var generateIntegrationTaskDefinition = exports.generateIntegrationTaskDefinition = function generateIntegrationTaskDefinition(task, _ref17) {
|
|
499
|
+
var connection = _ref17.connection,
|
|
500
|
+
operation = _ref17.operation,
|
|
501
|
+
detectedInputs = _ref17.detectedInputs;
|
|
502
|
+
return (0, _objectSpread2["default"])((0, _objectSpread2["default"])({}, task), {}, {
|
|
503
|
+
parameters: [].concat((0, _toConsumableArray2["default"])(task.parameters
|
|
504
|
+
// Remove previous operation's parameters
|
|
505
|
+
.filter(function (parameter) {
|
|
506
|
+
return !parameter.id.startsWith('parameters.');
|
|
507
|
+
}).map(function (parameter) {
|
|
508
|
+
return parameter.id === 'connection' ? (0, _objectSpread2["default"])((0, _objectSpread2["default"])({}, parameter), {}, {
|
|
509
|
+
defaultValue: connection.id
|
|
510
|
+
}) : parameter.id === 'operation' ? (0, _objectSpread2["default"])((0, _objectSpread2["default"])({}, parameter), {}, {
|
|
511
|
+
defaultValue: operation.id
|
|
512
|
+
}) : parameter;
|
|
513
|
+
})), (0, _toConsumableArray2["default"])(detectedInputs.map(function (input) {
|
|
514
|
+
return {
|
|
515
|
+
name: input,
|
|
516
|
+
defaultValue: '',
|
|
517
|
+
dependsOnId: null,
|
|
518
|
+
dependsOnValue: null,
|
|
519
|
+
description: '',
|
|
520
|
+
id: "parameters.".concat(input),
|
|
521
|
+
required: false
|
|
522
|
+
};
|
|
523
|
+
})))
|
|
524
|
+
});
|
|
525
|
+
};
|
|
526
|
+
var checkOmittedParametersForAdvancedHandlers = exports.checkOmittedParametersForAdvancedHandlers = function checkOmittedParametersForAdvancedHandlers(node, parameter) {
|
|
527
|
+
if (node.definitionId.startsWith("".concat(_constants.ADVANCED_HANDLER_NAME_SUBMISSION_CREATE, "_v"))) {
|
|
528
|
+
return !['kappSlug', 'formSlug'].includes(parameter.id);
|
|
529
|
+
} else if (node.definitionId.startsWith("".concat(_constants.ADVANCED_HANDLER_NAME_INTEGRATION, "_v"))) {
|
|
530
|
+
return !['connection', 'operation'].includes(parameter.id);
|
|
531
|
+
} else {
|
|
532
|
+
return true;
|
|
533
|
+
}
|
|
414
534
|
};
|
|
@@ -9,8 +9,8 @@ var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/
|
|
|
9
9
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectWithoutProperties"));
|
|
10
10
|
var _immutable = require("immutable");
|
|
11
11
|
var _excluded = ["id", "messages", "parameters", "position"];
|
|
12
|
-
/*******************************************************************************
|
|
13
|
-
* Immutable records *
|
|
12
|
+
/*******************************************************************************
|
|
13
|
+
* Immutable records *
|
|
14
14
|
******************************************************************************/
|
|
15
15
|
|
|
16
16
|
var Point = exports.Point = (0, _immutable.Record)({
|
|
@@ -28,7 +28,7 @@ var WebApi = exports.WebApi = (0, _immutable.Record)({
|
|
|
28
28
|
updatedBy: null
|
|
29
29
|
});
|
|
30
30
|
var Tree = exports.Tree = (0, _immutable.Record)({
|
|
31
|
-
bindings:
|
|
31
|
+
bindings: {},
|
|
32
32
|
categories: (0, _immutable.List)(),
|
|
33
33
|
connectors: (0, _immutable.OrderedMap)(),
|
|
34
34
|
definitionId: null,
|
|
@@ -89,12 +89,13 @@ var Connector = exports.Connector = (0, _immutable.Record)({
|
|
|
89
89
|
});
|
|
90
90
|
var TreeBuilderState = exports.TreeBuilderState = (0, _immutable.Record)({
|
|
91
91
|
categories: (0, _immutable.OrderedMap)(),
|
|
92
|
+
connections: (0, _immutable.OrderedMap)(),
|
|
92
93
|
error: null,
|
|
94
|
+
formSlug: null,
|
|
93
95
|
kappSlug: null,
|
|
94
96
|
lastSave: null,
|
|
95
97
|
lastWebApi: null,
|
|
96
98
|
loading: true,
|
|
97
|
-
platformItem: null,
|
|
98
99
|
redoStack: (0, _immutable.List)(),
|
|
99
100
|
saving: false,
|
|
100
101
|
tasks: (0, _immutable.OrderedMap)(),
|
|
@@ -112,10 +113,10 @@ var NodeResultDependency = exports.NodeResultDependency = (0, _immutable.Record)
|
|
|
112
113
|
index: 0
|
|
113
114
|
});
|
|
114
115
|
|
|
115
|
-
/*******************************************************************************
|
|
116
|
-
* Serialization functions *
|
|
117
|
-
* Should take native objects that are returned from the API endpoints and *
|
|
118
|
-
* convert them to immutable records used by the builder implementation *
|
|
116
|
+
/*******************************************************************************
|
|
117
|
+
* Serialization functions *
|
|
118
|
+
* Should take native objects that are returned from the API endpoints and *
|
|
119
|
+
* convert them to immutable records used by the builder implementation *
|
|
119
120
|
******************************************************************************/
|
|
120
121
|
|
|
121
122
|
var deserializeNodeId = function deserializeNodeId(id) {
|
|
@@ -182,6 +183,7 @@ var deserializeTree = exports.deserializeTree = function deserializeTree(_ref4)
|
|
|
182
183
|
event = _ref4.event,
|
|
183
184
|
filter = _ref4.filter,
|
|
184
185
|
guid = _ref4.guid,
|
|
186
|
+
id = _ref4.id,
|
|
185
187
|
inputs = _ref4.inputs,
|
|
186
188
|
name = _ref4.name,
|
|
187
189
|
notes = _ref4.notes,
|
|
@@ -206,7 +208,7 @@ var deserializeTree = exports.deserializeTree = function deserializeTree(_ref4)
|
|
|
206
208
|
definitionId: definitionId,
|
|
207
209
|
event: event,
|
|
208
210
|
filter: filter,
|
|
209
|
-
guid: guid,
|
|
211
|
+
guid: guid || id,
|
|
210
212
|
inputs: (0, _immutable.List)(inputs).map(_immutable.Map),
|
|
211
213
|
name: name,
|
|
212
214
|
notes: notes,
|
|
@@ -47,11 +47,11 @@ var columns = [{
|
|
|
47
47
|
sortable: true
|
|
48
48
|
}, {
|
|
49
49
|
value: 'id',
|
|
50
|
-
title: '
|
|
50
|
+
title: 'ID',
|
|
51
51
|
sortable: true
|
|
52
52
|
}, {
|
|
53
53
|
value: 'createdAt',
|
|
54
|
-
title: 'Created',
|
|
54
|
+
title: 'Created At',
|
|
55
55
|
sortable: true
|
|
56
56
|
}, {
|
|
57
57
|
value: 'createdBy',
|
|
@@ -59,7 +59,7 @@ var columns = [{
|
|
|
59
59
|
sortable: true
|
|
60
60
|
}, {
|
|
61
61
|
value: 'updatedAt',
|
|
62
|
-
title: 'Updated',
|
|
62
|
+
title: 'Updated At',
|
|
63
63
|
sortable: true
|
|
64
64
|
}, {
|
|
65
65
|
value: 'updatedBy',
|
|
@@ -1,27 +1,33 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")["default"];
|
|
3
4
|
Object.defineProperty(exports, "__esModule", {
|
|
4
5
|
value: true
|
|
5
6
|
});
|
|
6
7
|
exports.HandlerTable = void 0;
|
|
8
|
+
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
|
7
9
|
var _Table = require("../../table/Table");
|
|
8
10
|
var _apis = require("../../../apis");
|
|
9
|
-
var
|
|
10
|
-
var clientSide = (0, _helpers.defineFilter)(true).equals('id', 'id').startsWith('name', 'name').equals('status', 'status').equals('definitionId', 'definitionId').startsWith('definitionName', 'definitionName').equals('definitionVersion', 'definitionVersion').end();
|
|
11
|
+
var _http = require("../../../apis/http");
|
|
11
12
|
var dataSource = function dataSource() {
|
|
12
13
|
return {
|
|
13
14
|
fn: _apis.fetchHandlers,
|
|
14
|
-
params: function params() {
|
|
15
|
-
return [{
|
|
16
|
-
include: 'details'
|
|
17
|
-
|
|
15
|
+
params: function params(paramData) {
|
|
16
|
+
return [(0, _objectSpread2["default"])({
|
|
17
|
+
include: 'details',
|
|
18
|
+
limit: paramData.pageSize,
|
|
19
|
+
offset: paramData.nextPageToken,
|
|
20
|
+
status: paramData.filters.get('status'),
|
|
21
|
+
name: paramData.filters.get('name')
|
|
22
|
+
}, (0, _http.generateSortParams)(paramData))];
|
|
18
23
|
},
|
|
19
24
|
transform: function transform(result) {
|
|
20
25
|
return {
|
|
21
|
-
data: result.handlers
|
|
26
|
+
data: result.handlers,
|
|
27
|
+
nextPageToken: result.nextPageToken,
|
|
28
|
+
count: result.count
|
|
22
29
|
};
|
|
23
|
-
}
|
|
24
|
-
clientSide: clientSide
|
|
30
|
+
}
|
|
25
31
|
};
|
|
26
32
|
};
|
|
27
33
|
var filters = function filters() {
|
|
@@ -61,49 +67,59 @@ var filters = function filters() {
|
|
|
61
67
|
};
|
|
62
68
|
};
|
|
63
69
|
var columns = [{
|
|
64
|
-
title: 'ID',
|
|
65
|
-
value: 'id',
|
|
66
|
-
toggleable: true
|
|
67
|
-
}, {
|
|
68
70
|
title: 'Name',
|
|
69
71
|
value: 'name',
|
|
72
|
+
sortable: true,
|
|
70
73
|
toggleable: false,
|
|
71
74
|
columnOrder: 'first'
|
|
72
|
-
}, {
|
|
73
|
-
title: 'Status',
|
|
74
|
-
value: 'status',
|
|
75
|
-
toggleable: true
|
|
76
75
|
}, {
|
|
77
76
|
title: 'Definition ID',
|
|
78
77
|
value: 'definitionId',
|
|
78
|
+
sortable: true,
|
|
79
79
|
toggleable: true
|
|
80
80
|
}, {
|
|
81
81
|
title: 'Definition Name',
|
|
82
82
|
value: 'definitionName',
|
|
83
|
+
sortable: true,
|
|
83
84
|
toggleable: true
|
|
84
85
|
}, {
|
|
85
86
|
title: 'Definition Version',
|
|
86
87
|
value: 'definitionVersion',
|
|
88
|
+
sortable: true,
|
|
89
|
+
toggleable: true
|
|
90
|
+
}, {
|
|
91
|
+
title: 'Status',
|
|
92
|
+
value: 'status',
|
|
93
|
+
sortable: true,
|
|
87
94
|
toggleable: true
|
|
88
95
|
}, {
|
|
89
96
|
title: 'Description',
|
|
90
97
|
value: 'description',
|
|
91
98
|
toggleable: true
|
|
92
99
|
}, {
|
|
93
|
-
title: 'Created',
|
|
100
|
+
title: 'Created At',
|
|
94
101
|
value: 'createdAt',
|
|
102
|
+
sortable: true,
|
|
95
103
|
toggleable: true
|
|
96
104
|
}, {
|
|
97
105
|
title: 'Created By',
|
|
98
106
|
value: 'createdBy',
|
|
107
|
+
sortable: true,
|
|
99
108
|
toggleable: true
|
|
100
109
|
}, {
|
|
101
|
-
title: 'Updated',
|
|
110
|
+
title: 'Updated At',
|
|
102
111
|
value: 'updatedAt',
|
|
112
|
+
sortable: true,
|
|
103
113
|
toggleable: true
|
|
104
114
|
}, {
|
|
105
115
|
title: 'Updated By',
|
|
106
116
|
value: 'updatedBy',
|
|
117
|
+
sortable: true,
|
|
118
|
+
toggleable: true
|
|
119
|
+
}, {
|
|
120
|
+
title: 'ID',
|
|
121
|
+
value: 'id',
|
|
122
|
+
sortable: true,
|
|
107
123
|
toggleable: true
|
|
108
124
|
}];
|
|
109
125
|
var HandlerTable = exports.HandlerTable = (0, _Table.generateTable)({
|
|
@@ -51,11 +51,11 @@ var columns = [{
|
|
|
51
51
|
type: 'text'
|
|
52
52
|
}, {
|
|
53
53
|
value: 'id',
|
|
54
|
-
title: '
|
|
54
|
+
title: 'ID',
|
|
55
55
|
sortable: true
|
|
56
56
|
}, {
|
|
57
57
|
value: 'createdAt',
|
|
58
|
-
title: 'Created',
|
|
58
|
+
title: 'Created At',
|
|
59
59
|
sortable: true
|
|
60
60
|
}, {
|
|
61
61
|
value: 'createdBy',
|
|
@@ -63,7 +63,7 @@ var columns = [{
|
|
|
63
63
|
sortable: true
|
|
64
64
|
}, {
|
|
65
65
|
value: 'updatedAt',
|
|
66
|
-
title: 'Updated',
|
|
66
|
+
title: 'Updated At',
|
|
67
67
|
sortable: true
|
|
68
68
|
}, {
|
|
69
69
|
value: 'updatedBy',
|
|
@@ -19,6 +19,8 @@ var dataSources = function dataSources(_ref) {
|
|
|
19
19
|
label: "".concat(node.name, " (").concat((0, _models.serializeNodeId)(node), ")"),
|
|
20
20
|
value: (0, _models.serializeNodeId)(node)
|
|
21
21
|
};
|
|
22
|
+
}).sortBy(function (node) {
|
|
23
|
+
return node.label;
|
|
22
24
|
}).valueSeq().toArray();
|
|
23
25
|
},
|
|
24
26
|
params: []
|