@codemation/node-example 0.0.28 → 0.0.29

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/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # @codemation/node-example
2
2
 
3
+ ## 0.0.29
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`88844f7`](https://github.com/MadeRelevant/codemation/commit/88844f75a48fe051e4cb895c710408855de14da4)]:
8
+ - @codemation/core@0.7.0
9
+
3
10
  ## 0.0.28
4
11
 
5
12
  ### Patch Changes
package/dist/index.d.cts CHANGED
@@ -158,6 +158,9 @@ interface RunnableNode<TConfig extends RunnableNodeConfig<any, any> = RunnableNo
158
158
  //#region ../core/src/contracts/workflowTypes.d.ts
159
159
  type WorkflowId = string;
160
160
  type NodeId = string;
161
+ type NodeIdRef<TJson = unknown> = NodeId & Readonly<{
162
+ __codemationNodeJson?: TJson;
163
+ }>;
161
164
  type OutputPortKey = string;
162
165
  type InputPortKey = string;
163
166
  type NodeKind = "trigger" | "node";
@@ -262,8 +265,8 @@ interface ParentExecutionRef {
262
265
  }
263
266
  interface RunDataSnapshot {
264
267
  getOutputs(nodeId: NodeId): NodeOutputs | undefined;
265
- getOutputItems(nodeId: NodeId, output?: OutputPortKey): Items;
266
- getOutputItem(nodeId: NodeId, itemIndex: number, output?: OutputPortKey): Item | undefined;
268
+ getOutputItems<TJson = unknown>(nodeId: NodeId | NodeIdRef<TJson>, output?: OutputPortKey): Items<TJson>;
269
+ getOutputItem<TJson = unknown>(nodeId: NodeId | NodeIdRef<TJson>, itemIndex: number, output?: OutputPortKey): Item<TJson> | undefined;
267
270
  }
268
271
  interface NodeErrorHandlerArgs<TConfig extends NodeConfigBase = NodeConfigBase> {
269
272
  readonly kind: "single" | "multi";
package/dist/index.d.ts CHANGED
@@ -158,6 +158,9 @@ interface RunnableNode<TConfig extends RunnableNodeConfig<any, any> = RunnableNo
158
158
  //#region ../core/src/contracts/workflowTypes.d.ts
159
159
  type WorkflowId = string;
160
160
  type NodeId = string;
161
+ type NodeIdRef<TJson = unknown> = NodeId & Readonly<{
162
+ __codemationNodeJson?: TJson;
163
+ }>;
161
164
  type OutputPortKey = string;
162
165
  type InputPortKey = string;
163
166
  type NodeKind = "trigger" | "node";
@@ -262,8 +265,8 @@ interface ParentExecutionRef {
262
265
  }
263
266
  interface RunDataSnapshot {
264
267
  getOutputs(nodeId: NodeId): NodeOutputs | undefined;
265
- getOutputItems(nodeId: NodeId, output?: OutputPortKey): Items;
266
- getOutputItem(nodeId: NodeId, itemIndex: number, output?: OutputPortKey): Item | undefined;
268
+ getOutputItems<TJson = unknown>(nodeId: NodeId | NodeIdRef<TJson>, output?: OutputPortKey): Items<TJson>;
269
+ getOutputItem<TJson = unknown>(nodeId: NodeId | NodeIdRef<TJson>, itemIndex: number, output?: OutputPortKey): Item<TJson> | undefined;
267
270
  }
268
271
  interface NodeErrorHandlerArgs<TConfig extends NodeConfigBase = NodeConfigBase> {
269
272
  readonly kind: "single" | "multi";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codemation/node-example",
3
- "version": "0.0.28",
3
+ "version": "0.0.29",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -28,7 +28,7 @@
28
28
  }
29
29
  },
30
30
  "dependencies": {
31
- "@codemation/core": "0.6.0"
31
+ "@codemation/core": "0.7.0"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@types/node": "^25.3.5",