@ldsg/graphql-workflow 0.3.31 → 0.3.33
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/constants.d.ts +3 -3
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +8 -8
- package/dist/handler.d.ts +4 -4
- package/dist/handler.d.ts.map +1 -1
- package/dist/index.d.ts +5 -5
- package/dist/instantiate-resource.d.ts +4 -4
- package/dist/instantiate-resource.js +1 -1
- package/dist/resource.d.ts +3 -3
- package/dist/resource.js +2 -2
- package/dist/types/index.d.ts +1 -1
- package/dist/types/specific-resource-settings.d.ts +1 -1
- package/dist/types/specific-resource-settings.js +1 -1
- package/package.json +19 -15
package/dist/constants.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { HandlerSpecificResourceSettings } from
|
|
2
|
-
import { ResourceDefinitionSpecificResourceSettings } from
|
|
3
|
-
import { GeneralResourceSettings } from
|
|
1
|
+
import { HandlerSpecificResourceSettings } from "@ldsg/handler";
|
|
2
|
+
import { ResourceDefinitionSpecificResourceSettings } from "@ldsg/resource-definition";
|
|
3
|
+
import { GeneralResourceSettings } from "@ldsg/types";
|
|
4
4
|
/**
|
|
5
5
|
* Instantiate Resource Handler General Resource Settings
|
|
6
6
|
* 实例化资源处理程序普通资源配置
|
package/dist/constants.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,+BAA+B,EAAE,MAAM,eAAe,CAAC;AAChE,OAAO,EAAE,0CAA0C,EAAE,MAAM,2BAA2B,CAAC;AACvF,OAAO,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AAEtD;;;GAGG;AACH,eAAO,MAAM,sDAAsD,EAAE,uBAGpE,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,uDAAuD,EAAE,+
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,+BAA+B,EAAE,MAAM,eAAe,CAAC;AAChE,OAAO,EAAE,0CAA0C,EAAE,MAAM,2BAA2B,CAAC;AACvF,OAAO,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AAEtD;;;GAGG;AACH,eAAO,MAAM,sDAAsD,EAAE,uBAGpE,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,uDAAuD,EAAE,+BAQnE,CAAC;AAEJ,eAAO,MAAM,6CAA6C,EAAE,uBAG3D,CAAC;AAEF,eAAO,MAAM,8CAA8C,EAAE,0CAG1D,CAAC"}
|
package/dist/constants.js
CHANGED
|
@@ -6,8 +6,8 @@ exports.RESOURCE_DEFINITION_SPECIFIC_RESOURCE_SETTINGS = exports.RESOURCE_DEFINI
|
|
|
6
6
|
* 实例化资源处理程序普通资源配置
|
|
7
7
|
*/
|
|
8
8
|
exports.INSTANTIATE_RESOURCE_HANDLER_GENERAL_RESOURCE_SETTINGS = {
|
|
9
|
-
title:
|
|
10
|
-
description:
|
|
9
|
+
title: "GraphQL工作流实例化资源处理程序",
|
|
10
|
+
description: "",
|
|
11
11
|
};
|
|
12
12
|
/**
|
|
13
13
|
* Instantiate Resource Handler Specific Resource Settings
|
|
@@ -18,14 +18,14 @@ exports.INSTANTIATE_RESOURCE_HANDLER_SPECIFIC_RESOURCE_SETTINGS = {
|
|
|
18
18
|
code: `export * from "@ldsg/graphql-workflow";`,
|
|
19
19
|
dependencies: [
|
|
20
20
|
{
|
|
21
|
-
name:
|
|
22
|
-
}
|
|
23
|
-
]
|
|
21
|
+
name: "@ldsg/graphql-workflow",
|
|
22
|
+
},
|
|
23
|
+
],
|
|
24
24
|
};
|
|
25
25
|
exports.RESOURCE_DEFINITION_GENERAL_RESOURCE_SETTINGS = {
|
|
26
|
-
title:
|
|
27
|
-
description:
|
|
26
|
+
title: "GraphQL工作流资源定义",
|
|
27
|
+
description: "",
|
|
28
28
|
};
|
|
29
29
|
exports.RESOURCE_DEFINITION_SPECIFIC_RESOURCE_SETTINGS = {
|
|
30
|
-
kind:
|
|
30
|
+
kind: "graphql_workflow",
|
|
31
31
|
};
|
package/dist/handler.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Handler, HandlerExtendedResourceSettings } from
|
|
2
|
-
import { InstantiateResourceParams, InstantiateResourceRes } from
|
|
3
|
-
import { GraphqlWorkflowResource } from
|
|
4
|
-
import { GraphqlWorkflowSpecificResourceSettings } from
|
|
1
|
+
import { Handler, HandlerExtendedResourceSettings } from "@ldsg/handler";
|
|
2
|
+
import { InstantiateResourceParams, InstantiateResourceRes } from "@ldsg/resource";
|
|
3
|
+
import { GraphqlWorkflowResource } from "./resource";
|
|
4
|
+
import { GraphqlWorkflowSpecificResourceSettings } from "./types";
|
|
5
5
|
export declare const handler: Handler<InstantiateResourceParams<HandlerExtendedResourceSettings<GraphqlWorkflowSpecificResourceSettings>>, InstantiateResourceRes<GraphqlWorkflowResource>>;
|
|
6
6
|
//# sourceMappingURL=handler.d.ts.map
|
package/dist/handler.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"handler.d.ts","sourceRoot":"","sources":["../src/handler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,+BAA+B,EAAE,MAAM,eAAe,CAAC;AACzE,OAAO,EAAE,yBAAyB,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AAEnF,OAAO,EAAE,uBAAuB,EAAE,MAAM,YAAY,CAAC;AACrD,OAAO,EAAE,uCAAuC,EAAE,MAAM,SAAS,CAAC;AAElE,eAAO,MAAM,OAAO,EAAE,OAAO,CAC3B,yBAAyB,
|
|
1
|
+
{"version":3,"file":"handler.d.ts","sourceRoot":"","sources":["../src/handler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,+BAA+B,EAAE,MAAM,eAAe,CAAC;AACzE,OAAO,EAAE,yBAAyB,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AAEnF,OAAO,EAAE,uBAAuB,EAAE,MAAM,YAAY,CAAC;AACrD,OAAO,EAAE,uCAAuC,EAAE,MAAM,SAAS,CAAC;AAElE,eAAO,MAAM,OAAO,EAAE,OAAO,CAC3B,yBAAyB,CACvB,+BAA+B,CAAC,uCAAuC,CAAC,CACzE,EACD,sBAAsB,CAAC,uBAAuB,CAAC,CAC1B,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
1
|
+
export * from "./constants";
|
|
2
|
+
export * from "./handler";
|
|
3
|
+
export * from "./instantiate-resource";
|
|
4
|
+
export * from "./resource";
|
|
5
|
+
export * from "./types";
|
|
6
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { HandlerExtendedResourceSettings } from
|
|
2
|
-
import { InstantiateResource } from
|
|
3
|
-
import { GraphqlWorkflowResource } from
|
|
4
|
-
import { GraphqlWorkflowSpecificResourceSettings } from
|
|
1
|
+
import { HandlerExtendedResourceSettings } from "@ldsg/handler";
|
|
2
|
+
import { InstantiateResource } from "@ldsg/resource";
|
|
3
|
+
import { GraphqlWorkflowResource } from "./resource";
|
|
4
|
+
import { GraphqlWorkflowSpecificResourceSettings } from "./types";
|
|
5
5
|
export declare const instantiateResource: InstantiateResource<HandlerExtendedResourceSettings<GraphqlWorkflowSpecificResourceSettings>, GraphqlWorkflowResource>;
|
|
6
6
|
//# sourceMappingURL=instantiate-resource.d.ts.map
|
package/dist/resource.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { GetGraphqlWorkflowInfo } from
|
|
2
|
-
import { Resource } from
|
|
3
|
-
import { GraphqlWorkflowSpecificResourceSettings } from
|
|
1
|
+
import { GetGraphqlWorkflowInfo } from "@ldsg/graphql-workflows";
|
|
2
|
+
import { Resource } from "@ldsg/resource";
|
|
3
|
+
import { GraphqlWorkflowSpecificResourceSettings } from "./types";
|
|
4
4
|
export declare class GraphqlWorkflowResource extends Resource<GraphqlWorkflowSpecificResourceSettings> {
|
|
5
5
|
getGraphqlWorkflowInfo: GetGraphqlWorkflowInfo;
|
|
6
6
|
}
|
package/dist/resource.js
CHANGED
|
@@ -6,13 +6,13 @@ class GraphqlWorkflowResource extends resource_1.Resource {
|
|
|
6
6
|
constructor() {
|
|
7
7
|
super(...arguments);
|
|
8
8
|
this.getGraphqlWorkflowInfo = () => {
|
|
9
|
-
const { settings: { typeName, fieldName }, getResourcesFromSettings } = this;
|
|
9
|
+
const { settings: { typeName, fieldName }, getResourcesFromSettings, } = this;
|
|
10
10
|
const { workflowResource } = getResourcesFromSettings();
|
|
11
11
|
const { workflowInfo } = workflowResource.getWorkflowInfo();
|
|
12
12
|
const res = {
|
|
13
13
|
typeName,
|
|
14
14
|
fieldName,
|
|
15
|
-
workflowInfo
|
|
15
|
+
workflowInfo,
|
|
16
16
|
};
|
|
17
17
|
return res;
|
|
18
18
|
};
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from "./specific-resource-settings";
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -15,7 +15,7 @@ exports.GraphqlWorkflowSpecificResourceSettingsSchema = zod_1.z
|
|
|
15
15
|
/**
|
|
16
16
|
* Workflow Resource Id
|
|
17
17
|
*/
|
|
18
|
-
workflowResourceId: zod_1.z.string()
|
|
18
|
+
workflowResourceId: zod_1.z.string(),
|
|
19
19
|
})
|
|
20
20
|
.catchall(zod_1.z.any());
|
|
21
21
|
exports.SpecificResourceSettingsSchema = exports.GraphqlWorkflowSpecificResourceSettingsSchema;
|
package/package.json
CHANGED
|
@@ -1,42 +1,46 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ldsg/graphql-workflow",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.33",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": "wanxger",
|
|
8
|
-
"main": "dist/index.js",
|
|
9
|
-
"types": "dist",
|
|
10
8
|
"files": [
|
|
11
9
|
"dist/"
|
|
12
10
|
],
|
|
11
|
+
"main": "dist/index.js",
|
|
12
|
+
"types": "dist",
|
|
13
|
+
"publishConfig": {
|
|
14
|
+
"access": "public"
|
|
15
|
+
},
|
|
13
16
|
"dependencies": {
|
|
14
|
-
"graphql-compose": "
|
|
17
|
+
"graphql-compose": "9.1.0",
|
|
15
18
|
"graphql-yoga": "^5.13.4",
|
|
16
19
|
"zod": "^4.1.11",
|
|
17
|
-
"@ldsg/handler": "0.3.
|
|
18
|
-
"@ldsg/resource": "0.3.
|
|
19
|
-
"@ldsg/
|
|
20
|
-
"@ldsg/
|
|
20
|
+
"@ldsg/handler": "0.3.33",
|
|
21
|
+
"@ldsg/resource-definition": "0.3.33",
|
|
22
|
+
"@ldsg/workflow": "0.3.33",
|
|
23
|
+
"@ldsg/resource": "0.3.33"
|
|
21
24
|
},
|
|
22
25
|
"devDependencies": {
|
|
23
26
|
"@types/jest": "^29.5.2",
|
|
24
27
|
"@types/supertest": "^6.0.0",
|
|
25
28
|
"graphql": "16.11.0",
|
|
26
29
|
"jest": "^29.5.0",
|
|
30
|
+
"oxfmt": "latest",
|
|
31
|
+
"oxlint": "latest",
|
|
27
32
|
"supertest": "^6.3.4",
|
|
28
33
|
"ts-jest": "^29.1.5",
|
|
29
34
|
"ts-node": "^10.9.2",
|
|
30
35
|
"typescript": "^5.8.3",
|
|
31
|
-
"@ldsg/application": "0.3.
|
|
32
|
-
"@ldsg/
|
|
33
|
-
"@ldsg/
|
|
34
|
-
},
|
|
35
|
-
"publishConfig": {
|
|
36
|
-
"access": "public"
|
|
36
|
+
"@ldsg/application": "0.3.33",
|
|
37
|
+
"@ldsg/graphql-workflows": "0.3.33",
|
|
38
|
+
"@ldsg/types": "0.3.33"
|
|
37
39
|
},
|
|
38
40
|
"scripts": {
|
|
39
41
|
"build": "tsc --project tsconfig.build.json",
|
|
40
|
-
"clean": "rm -rf dist"
|
|
42
|
+
"clean": "rm -rf dist",
|
|
43
|
+
"format": "oxfmt --write src/",
|
|
44
|
+
"lint": "oxlint src/"
|
|
41
45
|
}
|
|
42
46
|
}
|