@hostwebhook/node-types 1.10.22 → 1.10.24
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/README.md +0 -0
- package/dist/connections.js +3 -2
- package/dist/dispatch.js +1 -0
- package/dist/registry.js +6 -0
- package/dist/types.d.ts +1 -1
- package/dist/ui.js +19 -17
- package/package.json +1 -1
package/README.md
ADDED
|
Binary file
|
package/dist/connections.js
CHANGED
|
@@ -18,7 +18,7 @@ exports.isNodeType = isNodeType;
|
|
|
18
18
|
const PROCESSING_OUTPUTS = [
|
|
19
19
|
'endpoint', 'router', 'filter', 'transform', 'cache', 'code', 'rateLimiter',
|
|
20
20
|
'aggregator', 'conditional', 'delay', 'schemaValidator', 'split', 'markdown',
|
|
21
|
-
'emailAction', 'httpAction', 'mongoAction', 'notificationAction', 'sheetsAction', 'calendarAction', 'firecrawlAction', 'loop',
|
|
21
|
+
'emailAction', 'httpAction', 'mongoAction', 'notificationAction', 'sheetsAction', 'calendarAction', 'docsAction', 'firecrawlAction', 'loop',
|
|
22
22
|
];
|
|
23
23
|
/** Standard processing input sources */
|
|
24
24
|
const STANDARD_INPUTS = [
|
|
@@ -26,7 +26,7 @@ const STANDARD_INPUTS = [
|
|
|
26
26
|
'cache', 'code', 'rateLimiter', 'aggregator', 'conditional', 'delay', 'schemaValidator', 'split', 'loop', 'markdown',
|
|
27
27
|
];
|
|
28
28
|
/** Action nodes that can chain (non-terminal) */
|
|
29
|
-
const CHAINABLE_ACTIONS = ['httpAction', 'mongoAction', 'sheetsAction', 'calendarAction', 'firecrawlAction'];
|
|
29
|
+
const CHAINABLE_ACTIONS = ['httpAction', 'mongoAction', 'sheetsAction', 'calendarAction', 'docsAction', 'firecrawlAction'];
|
|
30
30
|
/** Full input list for action nodes (standard + chainable actions) */
|
|
31
31
|
const ACTION_INPUTS = [...STANDARD_INPUTS, ...CHAINABLE_ACTIONS];
|
|
32
32
|
exports.NODE_CONNECTIONS = {
|
|
@@ -58,6 +58,7 @@ exports.NODE_CONNECTIONS = {
|
|
|
58
58
|
notificationAction: { acceptsInputFrom: ACTION_INPUTS, canOutputTo: [], special: { isTerminal: true } },
|
|
59
59
|
sheetsAction: { acceptsInputFrom: ACTION_INPUTS, canOutputTo: PROCESSING_OUTPUTS },
|
|
60
60
|
calendarAction: { acceptsInputFrom: ACTION_INPUTS, canOutputTo: PROCESSING_OUTPUTS },
|
|
61
|
+
docsAction: { acceptsInputFrom: ACTION_INPUTS, canOutputTo: PROCESSING_OUTPUTS },
|
|
61
62
|
firecrawlAction: { acceptsInputFrom: ACTION_INPUTS, canOutputTo: PROCESSING_OUTPUTS },
|
|
62
63
|
// ── Processing (transform-like) ──
|
|
63
64
|
markdown: { acceptsInputFrom: STANDARD_INPUTS, canOutputTo: PROCESSING_OUTPUTS },
|
package/dist/dispatch.js
CHANGED
|
@@ -33,6 +33,7 @@ exports.NODE_DISPATCH = {
|
|
|
33
33
|
notificationAction: { service: 'notificationActionsService', collection: 'notificationactions', hasFilters: true, outputFields: [], customDispatch: true },
|
|
34
34
|
sheetsAction: { service: 'sheetsActionsService', collection: 'sheetsactions', hasFilters: true, outputFields: ['outputNodes'], customDispatch: true },
|
|
35
35
|
calendarAction: { service: 'calendarActionsService', collection: 'calendaractions', hasFilters: true, outputFields: ['outputNodes'], customDispatch: true },
|
|
36
|
+
docsAction: { service: 'docsActionsService', collection: 'docsactions', hasFilters: true, outputFields: ['outputNodes'], customDispatch: true },
|
|
36
37
|
firecrawlAction: { service: 'firecrawlActionsService', collection: 'firecrawlactions', hasFilters: true, outputFields: ['outputNodes'], customDispatch: true },
|
|
37
38
|
markdown: { service: 'markdownNodesService', collection: 'markdownnodes', hasFilters: false, outputFields: ['outputNodes'], customDispatch: true },
|
|
38
39
|
// ── Source + monitoring ──
|
package/dist/registry.js
CHANGED
|
@@ -158,6 +158,12 @@ exports.NODE_REGISTRY = {
|
|
|
158
158
|
stateKey: 'calendarActions', allStateKey: 'allCalendarActions',
|
|
159
159
|
color: '#60a5fa', testable: true,
|
|
160
160
|
},
|
|
161
|
+
docsAction: {
|
|
162
|
+
type: 'docsAction', prefix: 'doc', label: 'Google Docs',
|
|
163
|
+
group: 'Actions', detailPath: '/dashboard/docs-actions', apiPath: '/docs-actions',
|
|
164
|
+
stateKey: 'docsActions', allStateKey: 'allDocsActions',
|
|
165
|
+
color: '#4285F4', testable: true,
|
|
166
|
+
},
|
|
161
167
|
firecrawlAction: {
|
|
162
168
|
type: 'firecrawlAction', prefix: 'fc', label: 'Firecrawl',
|
|
163
169
|
group: 'Actions', detailPath: '/dashboard/firecrawl-actions', apiPath: '/firecrawl-actions',
|
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' | 'loop' | 'markdown' | 'router' | 'emailAction' | 'httpAction' | 'mongoAction' | 'notificationAction' | 'sheetsAction' | 'calendarAction' | 'firecrawlAction' | 'alert' | 'stickyNote';
|
|
2
|
+
export type NodeType = 'endpoint' | 'scheduledWebhook' | 'filter' | 'transform' | 'schemaValidator' | 'conditional' | 'delay' | 'rateLimiter' | 'aggregator' | 'cache' | 'code' | 'ai' | 'merge' | 'approval' | 'split' | 'loop' | 'markdown' | 'router' | 'emailAction' | 'httpAction' | 'mongoAction' | 'notificationAction' | 'sheetsAction' | 'calendarAction' | 'docsAction' | 'firecrawlAction' | '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 */
|
package/dist/ui.js
CHANGED
|
@@ -36,6 +36,7 @@ exports.NODE_UI = {
|
|
|
36
36
|
notificationAction: { fromNodes: true, toNodes: false, inputHandles: ['left', 'top'], dotHandles: { input: ['left-in', 'top-in'] }, special: { isTerminal: true, routerTargetLabel: 'notification' } },
|
|
37
37
|
sheetsAction: { fromNodes: true, toNodes: true, inputHandles: ['left'], dotHandles: { input: ['left-in'], output: ['right-out'] }, special: { loopBackAllowed: true } },
|
|
38
38
|
calendarAction: { fromNodes: true, toNodes: true, inputHandles: ['left'], dotHandles: { input: ['left-in'], output: ['right-out'] }, special: { loopBackAllowed: true } },
|
|
39
|
+
docsAction: { fromNodes: true, toNodes: true, inputHandles: ['left'], dotHandles: { input: ['left-in'], output: ['right-out'] }, special: { loopBackAllowed: true } },
|
|
39
40
|
firecrawlAction: { fromNodes: true, toNodes: true, inputHandles: ['left'], dotHandles: { input: ['left-in'], output: ['right-out'] }, special: { loopBackAllowed: true } },
|
|
40
41
|
// ── Monitoring ──
|
|
41
42
|
alert: { fromNodes: true, toNodes: false, inputHandles: ['bottom'], special: { isTerminal: true } },
|
|
@@ -45,32 +46,33 @@ exports.NODE_UI = {
|
|
|
45
46
|
/** Canvas prefix → node type mapping (used by FlowCanvas to identify node type from XYFlow node ID) */
|
|
46
47
|
exports.PREFIX_TO_TYPE = [
|
|
47
48
|
{ prefix: 'ep-', type: 'endpoint', canvasType: 'endpoint' },
|
|
48
|
-
{ prefix: 'sw-', type: 'scheduledWebhook', canvasType: '
|
|
49
|
+
{ prefix: 'sw-', type: 'scheduledWebhook', canvasType: 'scheduledWebhook' },
|
|
49
50
|
{ prefix: 'al-', type: 'alert', canvasType: 'alert' },
|
|
50
|
-
{ prefix: 'ea-', type: 'emailAction', canvasType: '
|
|
51
|
-
{ prefix: 'ha-', type: 'httpAction', canvasType: '
|
|
52
|
-
{ prefix: 'ma-', type: 'mongoAction', canvasType: '
|
|
53
|
-
{ prefix: 'na-', type: 'notificationAction', canvasType: '
|
|
51
|
+
{ prefix: 'ea-', type: 'emailAction', canvasType: 'emailAction' },
|
|
52
|
+
{ prefix: 'ha-', type: 'httpAction', canvasType: 'httpAction' },
|
|
53
|
+
{ prefix: 'ma-', type: 'mongoAction', canvasType: 'mongoAction' },
|
|
54
|
+
{ prefix: 'na-', type: 'notificationAction', canvasType: 'notificationAction' },
|
|
54
55
|
{ prefix: 'ro-', type: 'router', canvasType: 'router' },
|
|
55
|
-
{ prefix: 'fi-', type: 'filter', canvasType: 'filter
|
|
56
|
-
{ prefix: 'tr-', type: 'transform', canvasType: 'transform
|
|
57
|
-
{ prefix: 'sv-', type: 'schemaValidator', canvasType: '
|
|
58
|
-
{ prefix: 'delay-', type: 'delay', canvasType: 'delay
|
|
59
|
-
{ prefix: 'sheet-', type: 'sheetsAction', canvasType: '
|
|
56
|
+
{ prefix: 'fi-', type: 'filter', canvasType: 'filter' },
|
|
57
|
+
{ prefix: 'tr-', type: 'transform', canvasType: 'transform' },
|
|
58
|
+
{ prefix: 'sv-', type: 'schemaValidator', canvasType: 'schemaValidator' },
|
|
59
|
+
{ prefix: 'delay-', type: 'delay', canvasType: 'delay' },
|
|
60
|
+
{ prefix: 'sheet-', type: 'sheetsAction', canvasType: 'sheetsAction' },
|
|
60
61
|
{ prefix: 'cal-', type: 'calendarAction', canvasType: 'calendarAction' },
|
|
61
|
-
{ prefix: 'appr-', type: 'approval', canvasType: 'approval
|
|
62
|
+
{ prefix: 'appr-', type: 'approval', canvasType: 'approval' },
|
|
62
63
|
{ prefix: 'merge-', type: 'merge', canvasType: 'merge' },
|
|
63
64
|
{ prefix: 'cond-', type: 'conditional', canvasType: 'conditional' },
|
|
64
|
-
{ prefix: 'rl-', type: 'rateLimiter', canvasType: '
|
|
65
|
-
{ prefix: 'agg-', type: 'aggregator', canvasType: 'aggregator
|
|
66
|
-
{ prefix: 'cache-', type: 'cache', canvasType: 'cache
|
|
67
|
-
{ prefix: 'code-', type: 'code', canvasType: 'code
|
|
68
|
-
{ prefix: 'ai-', type: 'ai', canvasType: 'ai
|
|
65
|
+
{ prefix: 'rl-', type: 'rateLimiter', canvasType: 'rateLimiter' },
|
|
66
|
+
{ prefix: 'agg-', type: 'aggregator', canvasType: 'aggregator' },
|
|
67
|
+
{ prefix: 'cache-', type: 'cache', canvasType: 'cache' },
|
|
68
|
+
{ prefix: 'code-', type: 'code', canvasType: 'code' },
|
|
69
|
+
{ prefix: 'ai-', type: 'ai', canvasType: 'ai' },
|
|
69
70
|
{ prefix: 'split-', type: 'split', canvasType: 'split' },
|
|
70
71
|
{ prefix: 'loop-', type: 'loop', canvasType: 'loop' },
|
|
71
72
|
{ prefix: 'md-', type: 'markdown', canvasType: 'markdown' },
|
|
73
|
+
{ prefix: 'doc-', type: 'docsAction', canvasType: 'docsAction' },
|
|
72
74
|
{ prefix: 'fc-', type: 'firecrawlAction', canvasType: 'firecrawlAction' },
|
|
73
|
-
{ prefix: 'note-', type: 'stickyNote', canvasType: '
|
|
75
|
+
{ prefix: 'note-', type: 'stickyNote', canvasType: 'stickyNote' },
|
|
74
76
|
];
|
|
75
77
|
/** Resolve canvas node ID to { type, entityId } */
|
|
76
78
|
function resolveNodeId(canvasId) {
|
package/package.json
CHANGED