@ldsg/workflow-edge 0.3.25 → 0.3.26

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/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2014-present Sebastian McKenzie and other contributors
3
+ Copyright (c) 2014-present Wanxger and other contributors
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining
6
6
  a copy of this software and associated documentation files (the
@@ -1,5 +1,15 @@
1
- import { SpecificResourceSettings } from '@ldsg/types';
2
- import { WorkflowEdgeInfo } from '@ldsg/workflow';
3
- export interface WorkflowEdgeSpecificResourceSettings extends SpecificResourceSettings, WorkflowEdgeInfo {
4
- }
1
+ import { z } from 'zod';
2
+ export declare const WorkflowEdgeSpecificResourceSettingsSchema: z.ZodObject<{
3
+ sourceWorkflowNodeResourceId: z.ZodString;
4
+ sourceWorkflowNodePortId: z.ZodOptional<z.ZodString>;
5
+ targetWorkflowNodeResourceId: z.ZodString;
6
+ targetWorkflowNodePortId: z.ZodOptional<z.ZodString>;
7
+ }, z.core.$catchall<z.ZodAny>>;
8
+ export declare const SpecificResourceSettingsSchema: z.ZodObject<{
9
+ sourceWorkflowNodeResourceId: z.ZodString;
10
+ sourceWorkflowNodePortId: z.ZodOptional<z.ZodString>;
11
+ targetWorkflowNodeResourceId: z.ZodString;
12
+ targetWorkflowNodePortId: z.ZodOptional<z.ZodString>;
13
+ }, z.core.$catchall<z.ZodAny>>;
14
+ export type WorkflowEdgeSpecificResourceSettings = z.infer<typeof WorkflowEdgeSpecificResourceSettingsSchema>;
5
15
  //# sourceMappingURL=specific-resource-settings.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"specific-resource-settings.d.ts","sourceRoot":"","sources":["../../src/types/specific-resource-settings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,aAAa,CAAC;AACvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAElD,MAAM,WAAW,oCAAqC,SAAQ,wBAAwB,EAAE,gBAAgB;CAAG"}
1
+ {"version":3,"file":"specific-resource-settings.d.ts","sourceRoot":"","sources":["../../src/types/specific-resource-settings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,0CAA0C;;;;;8BAwBG,CAAC;AAE3D,eAAO,MAAM,8BAA8B;;;;;8BAA6C,CAAC;AACzF,MAAM,MAAM,oCAAoC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0CAA0C,CAAC,CAAC"}
@@ -1,2 +1,27 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SpecificResourceSettingsSchema = exports.WorkflowEdgeSpecificResourceSettingsSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.WorkflowEdgeSpecificResourceSettingsSchema = zod_1.z
6
+ .object({
7
+ /**
8
+ * 开始工作流节点资源ID
9
+ */
10
+ sourceWorkflowNodeResourceId: zod_1.z.string(),
11
+ /**
12
+ * 开始工作流节点端口ID
13
+ * 缺省则采用开始节点的默认端口
14
+ */
15
+ sourceWorkflowNodePortId: zod_1.z.string().optional(),
16
+ /**
17
+ * 目标工作流节点资源ID
18
+ */
19
+ targetWorkflowNodeResourceId: zod_1.z.string(),
20
+ /**
21
+ * 目标工作流节点端口ID
22
+ * 缺省则采用目标节点的默认端口
23
+ */
24
+ targetWorkflowNodePortId: zod_1.z.string().optional()
25
+ })
26
+ .catchall(zod_1.z.any());
27
+ exports.SpecificResourceSettingsSchema = exports.WorkflowEdgeSpecificResourceSettingsSchema;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ldsg/workflow-edge",
3
- "version": "0.3.25",
3
+ "version": "0.3.26",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "license": "MIT",
@@ -12,10 +12,11 @@
12
12
  ],
13
13
  "dependencies": {
14
14
  "lodash": "^4.17.21",
15
- "@ldsg/handler": "0.3.25",
16
- "@ldsg/resource-definition": "0.3.25",
17
- "@ldsg/workflow": "0.3.25",
18
- "@ldsg/resource": "0.3.25"
15
+ "zod": "^4.1.11",
16
+ "@ldsg/handler": "0.3.26",
17
+ "@ldsg/resource": "0.3.26",
18
+ "@ldsg/workflow": "0.3.26",
19
+ "@ldsg/resource-definition": "0.3.26"
19
20
  },
20
21
  "devDependencies": {
21
22
  "@types/jest": "^29.5.2",
@@ -25,7 +26,7 @@
25
26
  "ts-jest": "^29.1.5",
26
27
  "ts-node": "^10.9.2",
27
28
  "typescript": "^5.8.3",
28
- "@ldsg/types": "0.3.25"
29
+ "@ldsg/types": "0.3.26"
29
30
  },
30
31
  "publishConfig": {
31
32
  "access": "public"