@hostwebhook/node-types 1.10.26 → 1.12.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.
@@ -17,13 +17,13 @@ exports.isNodeType = isNodeType;
17
17
  /** All node types that can appear as pipeline outputs */
18
18
  const PROCESSING_OUTPUTS = [
19
19
  'endpoint', 'router', 'filter', 'transform', 'cache', 'code', 'rateLimiter',
20
- 'aggregator', 'conditional', 'delay', 'schemaValidator', 'split', 'markdown',
20
+ 'aggregator', 'conditional', 'delay', 'schemaValidator', 'split', 'markdown', 'fileTransform',
21
21
  'emailAction', 'httpAction', 'mongoAction', 'notificationAction', 'sheetsAction', 'calendarAction', 'docsAction', 'firecrawlAction', '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', 'loop', 'markdown',
26
+ 'cache', 'code', 'rateLimiter', 'aggregator', 'conditional', 'delay', 'schemaValidator', 'split', 'loop', 'markdown', 'fileTransform',
27
27
  ];
28
28
  /** Action nodes that can chain (non-terminal) */
29
29
  const CHAINABLE_ACTIONS = ['httpAction', 'mongoAction', 'sheetsAction', 'calendarAction', 'docsAction', 'firecrawlAction'];
@@ -50,7 +50,7 @@ exports.NODE_CONNECTIONS = {
50
50
  approval: { acceptsInputFrom: ['endpoint', 'filter', 'transform'], canOutputTo: ['endpoint', 'filter', 'transform', 'emailAction', 'httpAction', 'mongoAction', 'notificationAction', 'sheetsAction', 'calendarAction'], special: { hasRejectionOutputNodes: true } },
51
51
  loop: { acceptsInputFrom: STANDARD_INPUTS, canOutputTo: PROCESSING_OUTPUTS, special: { hasLoopBack: true } },
52
52
  // ── Routing nodes ──
53
- router: { acceptsInputFrom: ['endpoint', 'scheduledWebhook', 'filter', 'transform'], canOutputTo: ['endpoint', 'notificationAction', 'filter', 'transform', 'emailAction', 'httpAction', 'mongoAction', 'sheetsAction', 'calendarAction'] },
53
+ router: { acceptsInputFrom: ['endpoint', 'scheduledWebhook', 'filter', 'transform'], canOutputTo: PROCESSING_OUTPUTS.filter(t => t !== 'endpoint') },
54
54
  // ── Action nodes ──
55
55
  emailAction: { acceptsInputFrom: ACTION_INPUTS, canOutputTo: [], special: { isTerminal: true } },
56
56
  httpAction: { acceptsInputFrom: ACTION_INPUTS, canOutputTo: PROCESSING_OUTPUTS },
@@ -62,6 +62,7 @@ exports.NODE_CONNECTIONS = {
62
62
  firecrawlAction: { acceptsInputFrom: ACTION_INPUTS, canOutputTo: PROCESSING_OUTPUTS },
63
63
  // ── Processing (transform-like) ──
64
64
  markdown: { acceptsInputFrom: STANDARD_INPUTS, canOutputTo: PROCESSING_OUTPUTS },
65
+ fileTransform: { acceptsInputFrom: STANDARD_INPUTS, canOutputTo: PROCESSING_OUTPUTS },
65
66
  // ── Monitoring ──
66
67
  alert: { acceptsInputFrom: ['endpoint', 'scheduledWebhook'], canOutputTo: [], special: { isTerminal: true } },
67
68
  // ── Annotations (visual only, no pipeline processing) ──
package/dist/dispatch.js CHANGED
@@ -36,6 +36,7 @@ exports.NODE_DISPATCH = {
36
36
  docsAction: { service: 'docsActionsService', collection: 'docsactions', hasFilters: true, outputFields: ['outputNodes'], customDispatch: true },
37
37
  firecrawlAction: { service: 'firecrawlActionsService', collection: 'firecrawlactions', hasFilters: true, outputFields: ['outputNodes'], customDispatch: true },
38
38
  markdown: { service: 'markdownNodesService', collection: 'markdownnodes', hasFilters: false, outputFields: ['outputNodes'], customDispatch: true },
39
+ fileTransform: { service: 'fileTransformNodesService', collection: 'filetransformnodes', hasFilters: true, outputFields: ['outputNodes'], customDispatch: true },
39
40
  // ── Source + monitoring ──
40
41
  alert: { service: 'alertService', collection: 'alerts', hasFilters: false, outputFields: [], customDispatch: true },
41
42
  endpoint: { service: 'endpointsService', collection: 'endpoints', hasFilters: false, outputFields: ['outputNodes'], customDispatch: true },
package/dist/registry.js CHANGED
@@ -114,6 +114,12 @@ exports.NODE_REGISTRY = {
114
114
  stateKey: 'markdownNodes', allStateKey: 'allMarkdownNodes',
115
115
  color: '#6366f1', testable: true,
116
116
  },
117
+ fileTransform: {
118
+ type: 'fileTransform', prefix: 'ft', label: 'File Transform',
119
+ group: 'Flow Control', detailPath: '/dashboard/file-transform-nodes', apiPath: '/file-transform-nodes',
120
+ stateKey: 'fileTransformNodes', allStateKey: 'allFileTransformNodes',
121
+ color: '#f97316', testable: true,
122
+ },
117
123
  // ── Routing ──
118
124
  router: {
119
125
  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' | 'loop' | 'markdown' | 'router' | 'emailAction' | 'httpAction' | 'mongoAction' | 'notificationAction' | 'sheetsAction' | 'calendarAction' | 'docsAction' | 'firecrawlAction' | 'alert' | 'stickyNote';
2
+ export type NodeType = 'endpoint' | 'scheduledWebhook' | 'filter' | 'transform' | 'schemaValidator' | 'conditional' | 'delay' | 'rateLimiter' | 'aggregator' | 'cache' | 'code' | 'ai' | 'merge' | 'approval' | 'split' | 'loop' | 'markdown' | 'fileTransform' | '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
@@ -22,6 +22,7 @@ exports.NODE_UI = {
22
22
  code: { fromNodes: true, toNodes: true, special: { loopBackAllowed: true } },
23
23
  ai: { fromNodes: true, toNodes: true },
24
24
  markdown: { fromNodes: true, toNodes: true, special: { loopBackAllowed: true } },
25
+ fileTransform: { fromNodes: true, toNodes: true },
25
26
  // ── Flow control nodes ──
26
27
  split: { fromNodes: true, toNodes: true, outputHandles: ['right'], special: { connectModal: 'output-group', outputGroups: { field: 'outputs', nameField: 'name', summaryField: 'field', label: 'output', elseField: 'remainderOutputNodes' } } },
27
28
  merge: { fromNodes: true, toNodes: true, inputHandles: ['left', 'top'] },
@@ -70,6 +71,7 @@ exports.PREFIX_TO_TYPE = [
70
71
  { prefix: 'split-', type: 'split', canvasType: 'split' },
71
72
  { prefix: 'loop-', type: 'loop', canvasType: 'loop' },
72
73
  { prefix: 'md-', type: 'markdown', canvasType: 'markdown' },
74
+ { prefix: 'ft-', type: 'fileTransform', canvasType: 'fileTransform' },
73
75
  { prefix: 'doc-', type: 'docsAction', canvasType: 'docsAction' },
74
76
  { prefix: 'fc-', type: 'firecrawlAction', canvasType: 'firecrawlAction' },
75
77
  { prefix: 'note-', type: 'stickyNote', canvasType: 'stickyNote' },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hostwebhook/node-types",
3
- "version": "1.10.26",
3
+ "version": "1.12.0",
4
4
  "description": "Shared node type definitions, connection rules, and dispatch config for HostWebhook",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",