@hostwebhook/node-types 1.9.0 → 1.10.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/dist/connections.js +3 -2
- package/dist/dispatch.js +1 -0
- package/dist/registry.js +6 -0
- package/dist/types.d.ts +2 -1
- package/dist/ui.js +2 -0
- package/package.json +1 -1
package/dist/connections.js
CHANGED
|
@@ -18,12 +18,12 @@ exports.isNodeType = isNodeType;
|
|
|
18
18
|
const PROCESSING_OUTPUTS = [
|
|
19
19
|
'endpoint', 'router', 'filter', 'transform', 'cache', 'code', 'rateLimiter',
|
|
20
20
|
'aggregator', 'conditional', 'delay', 'schemaValidator', 'split',
|
|
21
|
-
'emailAction', 'httpAction', 'mongoAction', 'notificationAction', 'sheetsAction',
|
|
21
|
+
'emailAction', 'httpAction', 'mongoAction', 'notificationAction', 'sheetsAction', 'loop',
|
|
22
22
|
];
|
|
23
23
|
/** Standard processing input sources */
|
|
24
24
|
const STANDARD_INPUTS = [
|
|
25
25
|
'endpoint', 'scheduledWebhook', 'router', 'filter', 'transform',
|
|
26
|
-
'cache', 'code', 'rateLimiter', 'aggregator', 'conditional', 'delay', 'schemaValidator', 'split',
|
|
26
|
+
'cache', 'code', 'rateLimiter', 'aggregator', 'conditional', 'delay', 'schemaValidator', 'split', 'loop',
|
|
27
27
|
];
|
|
28
28
|
/** Action nodes that can chain (non-terminal) */
|
|
29
29
|
const CHAINABLE_ACTIONS = ['httpAction', 'mongoAction', 'sheetsAction'];
|
|
@@ -48,6 +48,7 @@ exports.NODE_CONNECTIONS = {
|
|
|
48
48
|
split: { acceptsInputFrom: STANDARD_INPUTS, canOutputTo: PROCESSING_OUTPUTS },
|
|
49
49
|
merge: { acceptsInputFrom: ['endpoint', 'filter', 'transform', 'cache', 'rateLimiter', 'aggregator', 'conditional', 'delay', 'schemaValidator', 'split'], canOutputTo: PROCESSING_OUTPUTS },
|
|
50
50
|
approval: { acceptsInputFrom: ['endpoint', 'filter', 'transform'], canOutputTo: ['endpoint', 'filter', 'transform', 'emailAction', 'httpAction', 'mongoAction', 'notificationAction', 'sheetsAction'], special: { hasRejectionOutputNodes: true } },
|
|
51
|
+
loop: { acceptsInputFrom: STANDARD_INPUTS, canOutputTo: PROCESSING_OUTPUTS, special: { hasLoopBack: true } },
|
|
51
52
|
// ── Routing nodes ──
|
|
52
53
|
router: { acceptsInputFrom: ['endpoint', 'scheduledWebhook', 'filter', 'transform'], canOutputTo: ['endpoint', 'notificationAction', 'filter', 'transform', 'emailAction', 'httpAction', 'mongoAction', 'sheetsAction'] },
|
|
53
54
|
// ── Action nodes ──
|
package/dist/dispatch.js
CHANGED
|
@@ -23,6 +23,7 @@ exports.NODE_DISPATCH = {
|
|
|
23
23
|
conditional: { service: 'conditionalNodesService', collection: 'conditionalnodes', hasFilters: false, outputFields: ['outputNodes', 'elseOutputNodes'], customDispatch: true },
|
|
24
24
|
merge: { service: 'mergeNodesService', collection: 'mergenodes', hasFilters: false, outputFields: ['outputNodes'], customDispatch: true },
|
|
25
25
|
approval: { service: 'approvalNodesService', collection: 'approvalnodes', hasFilters: false, outputFields: ['outputNodes'], customDispatch: true },
|
|
26
|
+
loop: { service: 'loopNodesService', collection: 'loopnodes', hasFilters: false, outputFields: ['loopOutputNodes', 'doneOutputNodes'], customDispatch: true },
|
|
26
27
|
// ── Routing ──
|
|
27
28
|
router: { service: 'routersService', collection: 'routers', hasFilters: false, outputFields: ['outputNodes'], customDispatch: true },
|
|
28
29
|
// ── Action nodes ──
|
package/dist/registry.js
CHANGED
|
@@ -102,6 +102,12 @@ exports.NODE_REGISTRY = {
|
|
|
102
102
|
stateKey: 'approvalNodes', allStateKey: 'allApprovalNodes',
|
|
103
103
|
color: '#94a3b8', testable: false,
|
|
104
104
|
},
|
|
105
|
+
loop: {
|
|
106
|
+
type: 'loop', prefix: 'loop', label: 'Loop',
|
|
107
|
+
group: 'Flow Control', detailPath: '/dashboard/loop-nodes', apiPath: '/loop-nodes',
|
|
108
|
+
stateKey: 'loopNodes', allStateKey: 'allLoopNodes',
|
|
109
|
+
color: '#f59e0b', testable: false,
|
|
110
|
+
},
|
|
105
111
|
// ── Routing ──
|
|
106
112
|
router: {
|
|
107
113
|
type: 'router', prefix: 'ro', label: 'Router',
|
package/dist/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** All valid node type identifiers */
|
|
2
|
-
export type NodeType = 'endpoint' | 'scheduledWebhook' | 'filter' | 'transform' | 'schemaValidator' | 'conditional' | 'delay' | 'rateLimiter' | 'aggregator' | 'cache' | 'code' | 'ai' | 'merge' | 'approval' | 'split' | 'router' | 'emailAction' | 'httpAction' | 'mongoAction' | 'notificationAction' | 'sheetsAction' | 'alert' | 'stickyNote';
|
|
2
|
+
export type NodeType = 'endpoint' | 'scheduledWebhook' | 'filter' | 'transform' | 'schemaValidator' | 'conditional' | 'delay' | 'rateLimiter' | 'aggregator' | 'cache' | 'code' | 'ai' | 'merge' | 'approval' | 'split' | 'loop' | 'router' | 'emailAction' | 'httpAction' | 'mongoAction' | 'notificationAction' | 'sheetsAction' | 'alert' | 'stickyNote';
|
|
3
3
|
/** Node role in the pipeline */
|
|
4
4
|
export type NodeRole = 'source' | 'processing' | 'flowControl' | 'routing' | 'action' | 'monitoring';
|
|
5
5
|
/** Handle positions on the canvas node */
|
|
@@ -12,6 +12,7 @@ export interface NodeConnectionConfig {
|
|
|
12
12
|
hasRejectionOutputNodes?: boolean;
|
|
13
13
|
hasBranches?: boolean;
|
|
14
14
|
isTerminal?: boolean;
|
|
15
|
+
hasLoopBack?: boolean;
|
|
15
16
|
};
|
|
16
17
|
}
|
|
17
18
|
/** UI-specific config for the dashboard canvas */
|
package/dist/ui.js
CHANGED
|
@@ -25,6 +25,7 @@ exports.NODE_UI = {
|
|
|
25
25
|
split: { fromNodes: true, toNodes: true, outputHandles: ['right', 'bottom'], special: { connectModal: 'output-group', outputGroups: { field: 'outputs', nameField: 'name', summaryField: 'field', label: 'output' } } },
|
|
26
26
|
merge: { fromNodes: true, toNodes: true, inputHandles: ['left', 'top'] },
|
|
27
27
|
approval: { fromNodes: true, toNodes: true, outputHandles: ['right', 'bottom'], special: { rejectionEndpoints: 'rejectionEndpointIds' } },
|
|
28
|
+
loop: { fromNodes: true, toNodes: true, inputHandles: ['left'], outputHandles: ['right'], dotHandles: { input: ['left-in', 'left-in-loopback'], output: ['right-out-loop', 'right-out-done'] } },
|
|
28
29
|
// ── Routing nodes ──
|
|
29
30
|
router: { fromNodes: true, toNodes: true, outputHandles: ['right', 'bottom'], dotHandles: { output: ['right-out', 'bottom-out'] }, special: { connectModal: 'rule' } },
|
|
30
31
|
// ── Action nodes ──
|
|
@@ -62,6 +63,7 @@ exports.PREFIX_TO_TYPE = [
|
|
|
62
63
|
{ prefix: 'code-', type: 'code', canvasType: 'code-node' },
|
|
63
64
|
{ prefix: 'ai-', type: 'ai', canvasType: 'ai-node' },
|
|
64
65
|
{ prefix: 'split-', type: 'split', canvasType: 'split' },
|
|
66
|
+
{ prefix: 'loop-', type: 'loop', canvasType: 'loop' },
|
|
65
67
|
{ prefix: 'note-', type: 'stickyNote', canvasType: 'sticky-note' },
|
|
66
68
|
];
|
|
67
69
|
/** Resolve canvas node ID to { type, entityId } */
|
package/package.json
CHANGED