@hostwebhook/node-types 1.3.0 → 1.4.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/types.d.ts +2 -0
- package/dist/ui.js +23 -23
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -55,4 +55,6 @@ export declare function iterableMeta(field: string, count: number): PayloadMeta;
|
|
|
55
55
|
export interface PrefixMapping {
|
|
56
56
|
prefix: string;
|
|
57
57
|
type: NodeType;
|
|
58
|
+
/** Canvas node type used in React Flow nodeTypes map (e.g. "cache-node", "email-action") */
|
|
59
|
+
canvasType: string;
|
|
58
60
|
}
|
package/dist/ui.js
CHANGED
|
@@ -40,29 +40,29 @@ exports.NODE_UI = {
|
|
|
40
40
|
};
|
|
41
41
|
/** Canvas prefix → node type mapping (used by FlowCanvas to identify node type from XYFlow node ID) */
|
|
42
42
|
exports.PREFIX_TO_TYPE = [
|
|
43
|
-
{ prefix: 'ep-', type: 'endpoint' },
|
|
44
|
-
{ prefix: 'sw-', type: 'scheduledWebhook' },
|
|
45
|
-
{ prefix: 'fo-', type: 'fanout' },
|
|
46
|
-
{ prefix: 'al-', type: 'alert' },
|
|
47
|
-
{ prefix: 'ea-', type: 'emailAction' },
|
|
48
|
-
{ prefix: 'ha-', type: 'httpAction' },
|
|
49
|
-
{ prefix: 'ma-', type: 'mongoAction' },
|
|
50
|
-
{ prefix: 'na-', type: 'notificationAction' },
|
|
51
|
-
{ prefix: 'ro-', type: 'router' },
|
|
52
|
-
{ prefix: 'fi-', type: 'filter' },
|
|
53
|
-
{ prefix: 'tr-', type: 'transform' },
|
|
54
|
-
{ prefix: 'sv-', type: 'schemaValidator' },
|
|
55
|
-
{ prefix: 'delay-', type: 'delay' },
|
|
56
|
-
{ prefix: 'sheet-', type: 'sheetsAction' },
|
|
57
|
-
{ prefix: 'appr-', type: 'approval' },
|
|
58
|
-
{ prefix: 'merge-', type: 'merge' },
|
|
59
|
-
{ prefix: 'cond-', type: 'conditional' },
|
|
60
|
-
{ prefix: 'rl-', type: 'rateLimiter' },
|
|
61
|
-
{ prefix: 'agg-', type: 'aggregator' },
|
|
62
|
-
{ prefix: 'cache-', type: 'cache' },
|
|
63
|
-
{ prefix: 'code-', type: 'code' },
|
|
64
|
-
{ prefix: 'ai-', type: 'ai' },
|
|
65
|
-
{ prefix: 'note-', type: 'stickyNote' },
|
|
43
|
+
{ prefix: 'ep-', type: 'endpoint', canvasType: 'endpoint' },
|
|
44
|
+
{ prefix: 'sw-', type: 'scheduledWebhook', canvasType: 'scheduled-webhook' },
|
|
45
|
+
{ prefix: 'fo-', type: 'fanout', canvasType: 'fanout' },
|
|
46
|
+
{ prefix: 'al-', type: 'alert', canvasType: 'alert' },
|
|
47
|
+
{ prefix: 'ea-', type: 'emailAction', canvasType: 'email-action' },
|
|
48
|
+
{ prefix: 'ha-', type: 'httpAction', canvasType: 'http-action' },
|
|
49
|
+
{ prefix: 'ma-', type: 'mongoAction', canvasType: 'mongo-action' },
|
|
50
|
+
{ prefix: 'na-', type: 'notificationAction', canvasType: 'notification-action' },
|
|
51
|
+
{ prefix: 'ro-', type: 'router', canvasType: 'router' },
|
|
52
|
+
{ prefix: 'fi-', type: 'filter', canvasType: 'filter-node' },
|
|
53
|
+
{ prefix: 'tr-', type: 'transform', canvasType: 'transform-node' },
|
|
54
|
+
{ prefix: 'sv-', type: 'schemaValidator', canvasType: 'schema-validator' },
|
|
55
|
+
{ prefix: 'delay-', type: 'delay', canvasType: 'delay-node' },
|
|
56
|
+
{ prefix: 'sheet-', type: 'sheetsAction', canvasType: 'sheets-action' },
|
|
57
|
+
{ prefix: 'appr-', type: 'approval', canvasType: 'approval-node' },
|
|
58
|
+
{ prefix: 'merge-', type: 'merge', canvasType: 'merge-node' },
|
|
59
|
+
{ prefix: 'cond-', type: 'conditional', canvasType: 'conditional-node' },
|
|
60
|
+
{ prefix: 'rl-', type: 'rateLimiter', canvasType: 'rate-limiter-node' },
|
|
61
|
+
{ prefix: 'agg-', type: 'aggregator', canvasType: 'aggregator-node' },
|
|
62
|
+
{ prefix: 'cache-', type: 'cache', canvasType: 'cache-node' },
|
|
63
|
+
{ prefix: 'code-', type: 'code', canvasType: 'code-node' },
|
|
64
|
+
{ prefix: 'ai-', type: 'ai', canvasType: 'ai-node' },
|
|
65
|
+
{ prefix: 'note-', type: 'stickyNote', canvasType: 'sticky-note' },
|
|
66
66
|
];
|
|
67
67
|
/** Resolve canvas node ID to { type, entityId } */
|
|
68
68
|
function resolveNodeId(canvasId) {
|
package/package.json
CHANGED