@hostwebhook/node-types 1.1.0 → 1.2.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.
@@ -57,6 +57,8 @@ exports.NODE_CONNECTIONS = {
57
57
  sheetsAction: { acceptsInputFrom: ACTION_INPUTS, canOutputTo: PROCESSING_OUTPUTS },
58
58
  // ── Monitoring ──
59
59
  alert: { acceptsInputFrom: ['endpoint', 'scheduledWebhook'], canOutputTo: [], special: { isTerminal: true } },
60
+ // ── Annotations (visual only, no pipeline processing) ──
61
+ stickyNote: { acceptsInputFrom: [], canOutputTo: [] },
60
62
  };
61
63
  // ── Helper functions ──
62
64
  function canReceiveFrom(targetType, sourceType) {
package/dist/dispatch.js CHANGED
@@ -34,6 +34,8 @@ exports.NODE_DISPATCH = {
34
34
  alert: { service: 'alertService', collection: 'alerts', hasFilters: false, outputFields: [], customDispatch: true },
35
35
  endpoint: { service: 'endpointsService', collection: 'endpoints', hasFilters: false, outputFields: ['outputNodes'], customDispatch: true },
36
36
  scheduledWebhook: { service: 'scheduledWebhooksService', collection: 'scheduledwebhooks', hasFilters: false, outputFields: ['outputNodes'], customDispatch: true },
37
+ // ── Annotations ──
38
+ stickyNote: { service: 'stickyNotesService', collection: 'stickynotes', hasFilters: false, outputFields: ['outputNodes'], customDispatch: true },
37
39
  };
38
40
  /** Get all MongoDB collection names for cascade cleanup */
39
41
  function getAllNodeCollections() {
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' | 'ai' | 'merge' | 'approval' | 'router' | 'fanout' | 'emailAction' | 'httpAction' | 'mongoAction' | 'notificationAction' | 'sheetsAction' | 'alert';
2
+ export type NodeType = 'endpoint' | 'scheduledWebhook' | 'filter' | 'transform' | 'schemaValidator' | 'conditional' | 'delay' | 'rateLimiter' | 'aggregator' | 'cache' | 'ai' | 'merge' | 'approval' | 'router' | 'fanout' | '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 */
package/dist/ui.js CHANGED
@@ -34,6 +34,8 @@ exports.NODE_UI = {
34
34
  sheetsAction: { fromNodes: true, toNodes: true, inputHandles: ['left'], dotHandles: { input: ['left-in'], output: ['right-out'] } },
35
35
  // ── Monitoring ──
36
36
  alert: { fromNodes: true, toNodes: false, inputHandles: ['bottom'], special: { isTerminal: true } },
37
+ // ── Annotations ──
38
+ stickyNote: { fromNodes: false, toNodes: false },
37
39
  };
38
40
  /** Canvas prefix → node type mapping (used by FlowCanvas to identify node type from XYFlow node ID) */
39
41
  exports.PREFIX_TO_TYPE = [
@@ -58,6 +60,7 @@ exports.PREFIX_TO_TYPE = [
58
60
  { prefix: 'agg-', type: 'aggregator' },
59
61
  { prefix: 'cache-', type: 'cache' },
60
62
  { prefix: 'ai-', type: 'ai' },
63
+ { prefix: 'note-', type: 'stickyNote' },
61
64
  ];
62
65
  /** Resolve canvas node ID to { type, entityId } */
63
66
  function resolveNodeId(canvasId) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hostwebhook/node-types",
3
- "version": "1.1.0",
3
+ "version": "1.2.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",