@hostwebhook/node-types 1.10.16 → 1.10.18

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',
20
+ 'aggregator', 'conditional', 'delay', 'schemaValidator', 'split', 'markdown',
21
21
  'emailAction', 'httpAction', 'mongoAction', 'notificationAction', 'sheetsAction', 'calendarAction', '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',
26
+ 'cache', 'code', 'rateLimiter', 'aggregator', 'conditional', 'delay', 'schemaValidator', 'split', 'loop', 'markdown',
27
27
  ];
28
28
  /** Action nodes that can chain (non-terminal) */
29
29
  const CHAINABLE_ACTIONS = ['httpAction', 'mongoAction', 'sheetsAction', 'calendarAction'];
@@ -58,6 +58,8 @@ 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
+ // ── Processing (transform-like) ──
62
+ markdown: { acceptsInputFrom: STANDARD_INPUTS, canOutputTo: PROCESSING_OUTPUTS },
61
63
  // ── Monitoring ──
62
64
  alert: { acceptsInputFrom: ['endpoint', 'scheduledWebhook'], canOutputTo: [], special: { isTerminal: true } },
63
65
  // ── Annotations (visual only, no pipeline processing) ──
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
+ markdown: { service: 'markdownNodesService', collection: 'markdownnodes', hasFilters: false, outputFields: ['outputNodes'], customDispatch: true },
36
37
  // ── Source + monitoring ──
37
38
  alert: { service: 'alertService', collection: 'alerts', hasFilters: false, outputFields: [], customDispatch: true },
38
39
  endpoint: { service: 'endpointsService', collection: 'endpoints', hasFilters: false, outputFields: ['outputNodes'], customDispatch: true },
package/dist/registry.js CHANGED
@@ -108,6 +108,12 @@ exports.NODE_REGISTRY = {
108
108
  stateKey: 'loopNodes', allStateKey: 'allLoopNodes',
109
109
  color: '#f59e0b', testable: true,
110
110
  },
111
+ markdown: {
112
+ type: 'markdown', prefix: 'md', label: 'Markdown',
113
+ group: 'Flow Control', detailPath: '/dashboard/markdown-nodes', apiPath: '/markdown-nodes',
114
+ stateKey: 'markdownNodes', allStateKey: 'allMarkdownNodes',
115
+ color: '#6366f1', testable: true,
116
+ },
111
117
  // ── Routing ──
112
118
  router: {
113
119
  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' | 'router' | 'emailAction' | 'httpAction' | 'mongoAction' | 'notificationAction' | 'sheetsAction' | 'calendarAction' | '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' | '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
@@ -13,7 +13,7 @@ exports.NODE_UI = {
13
13
  // ── Pipeline processing nodes ──
14
14
  filter: { fromNodes: true, toNodes: true, special: { loopBackAllowed: true } },
15
15
  transform: { fromNodes: true, toNodes: true, special: { loopBackAllowed: true } },
16
- schemaValidator: { fromNodes: true, toNodes: true, outputHandles: ['right'], special: { loopBackAllowed: true, connectModal: 'output-group', outputGroups: { fixedGroups: [{ name: 'Valid', field: 'outputNodes' }, { name: 'Invalid', field: 'invalidOutputNodes' }], label: 'path' } } },
16
+ schemaValidator: { fromNodes: true, toNodes: true, outputHandles: ['right'], special: { loopBackAllowed: true, connectModal: 'output-group', outputGroups: { fixedGroups: [{ name: 'Valid', field: 'outputNodes' }, { name: 'Invalid', field: 'invalidOutputNodes' }], label: 'path' }, alternatePayloads: { outputNodes: 'lastValidPayload', invalidOutputNodes: 'lastInvalidPayload' } } },
17
17
  conditional: { fromNodes: true, toNodes: true, outputHandles: ['right'], special: { loopBackAllowed: true, connectModal: 'output-group', outputGroups: { field: 'branches', nameField: 'name', summaryField: 'filterMode', label: 'branch', elseField: 'elseOutputNodes' } } },
18
18
  delay: { fromNodes: true, toNodes: true },
19
19
  rateLimiter: { fromNodes: true, toNodes: true },
@@ -21,6 +21,7 @@ exports.NODE_UI = {
21
21
  cache: { fromNodes: true, toNodes: true },
22
22
  code: { fromNodes: true, toNodes: true, special: { loopBackAllowed: true } },
23
23
  ai: { fromNodes: true, toNodes: true },
24
+ markdown: { fromNodes: true, toNodes: true, special: { loopBackAllowed: true } },
24
25
  // ── Flow control nodes ──
25
26
  split: { fromNodes: true, toNodes: true, outputHandles: ['right'], special: { connectModal: 'output-group', outputGroups: { field: 'outputs', nameField: 'name', summaryField: 'field', label: 'output', elseField: 'remainderOutputNodes' } } },
26
27
  merge: { fromNodes: true, toNodes: true, inputHandles: ['left', 'top'] },
@@ -66,6 +67,7 @@ exports.PREFIX_TO_TYPE = [
66
67
  { prefix: 'ai-', type: 'ai', canvasType: 'ai-node' },
67
68
  { prefix: 'split-', type: 'split', canvasType: 'split' },
68
69
  { prefix: 'loop-', type: 'loop', canvasType: 'loop' },
70
+ { prefix: 'md-', type: 'markdown', canvasType: 'markdown' },
69
71
  { prefix: 'note-', type: 'stickyNote', canvasType: 'sticky-note' },
70
72
  ];
71
73
  /** Resolve canvas node ID to { type, entityId } */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hostwebhook/node-types",
3
- "version": "1.10.16",
3
+ "version": "1.10.18",
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",