@ahoo-wang/wow-generator 10.0.0-alpha.7 → 10.0.0-beta.1
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/README.md +5 -3
- package/README.zh-CN.md +4 -2
- package/dist/cli.cjs +1 -1
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +2 -2
- package/dist/{codeGenerator-C0dKAKl6.cjs → codeGenerator-CADTvm2G.cjs} +19 -19
- package/dist/codeGenerator-CADTvm2G.cjs.map +1 -0
- package/dist/{codeGenerator-Bouc_Ad8.js → codeGenerator-Cxlr_VOh.js} +588 -580
- package/dist/codeGenerator-Cxlr_VOh.js.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/manifest/analyze.d.cts +11 -1
- package/dist/manifest/analyze.d.ts +11 -1
- package/package.json +11 -3
- package/dist/codeGenerator-Bouc_Ad8.js.map +0 -1
- package/dist/codeGenerator-C0dKAKl6.cjs.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./codeGenerator-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./codeGenerator-CADTvm2G.cjs");exports.CodeGenerator=e.t,exports.ConsoleLogger=e.i,exports.DEFAULT_CONFIG_PATH=e.c,exports.EXIT_CODES=e.o,exports.GeneratorError=e.s,exports.SilentLogger=e.a;
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as CodeGenerator, i as ConsoleLogger, c as DEFAULT_CONFIG_PATH, o as EXIT_CODES, s as GeneratorError, a as SilentLogger } from "./codeGenerator-
|
|
1
|
+
export { t as CodeGenerator, i as ConsoleLogger, c as DEFAULT_CONFIG_PATH, o as EXIT_CODES, s as GeneratorError, a as SilentLogger } from "./codeGenerator-Cxlr_VOh.js";
|
|
@@ -50,8 +50,18 @@ export interface CommandModel {
|
|
|
50
50
|
readonly ownMethod?: string;
|
|
51
51
|
/** The body's type name, or undefined when its schema is unknown. */
|
|
52
52
|
readonly bodyType: string;
|
|
53
|
-
/** The body may be left out: its schema requires nothing. */
|
|
53
|
+
/** The body may be left out: its schema requires nothing the method takes. */
|
|
54
54
|
readonly bodyOptional: boolean;
|
|
55
|
+
/**
|
|
56
|
+
* The property of its body that names its aggregate (the Manifest's
|
|
57
|
+
* `idProperty`): the command then has no route by id, and its method no id.
|
|
58
|
+
*/
|
|
59
|
+
readonly idProperty?: string;
|
|
60
|
+
/**
|
|
61
|
+
* Its `idProperty` is computed (`readOnly` in its schema): the service
|
|
62
|
+
* computes it from the body's fields, so the method takes the body without it.
|
|
63
|
+
*/
|
|
64
|
+
readonly idComputed?: boolean;
|
|
55
65
|
readonly creation: string;
|
|
56
66
|
readonly mounted: boolean;
|
|
57
67
|
readonly produces: readonly string[];
|
|
@@ -50,8 +50,18 @@ export interface CommandModel {
|
|
|
50
50
|
readonly ownMethod?: string;
|
|
51
51
|
/** The body's type name, or undefined when its schema is unknown. */
|
|
52
52
|
readonly bodyType: string;
|
|
53
|
-
/** The body may be left out: its schema requires nothing. */
|
|
53
|
+
/** The body may be left out: its schema requires nothing the method takes. */
|
|
54
54
|
readonly bodyOptional: boolean;
|
|
55
|
+
/**
|
|
56
|
+
* The property of its body that names its aggregate (the Manifest's
|
|
57
|
+
* `idProperty`): the command then has no route by id, and its method no id.
|
|
58
|
+
*/
|
|
59
|
+
readonly idProperty?: string;
|
|
60
|
+
/**
|
|
61
|
+
* Its `idProperty` is computed (`readOnly` in its schema): the service
|
|
62
|
+
* computes it from the body's fields, so the method takes the body without it.
|
|
63
|
+
*/
|
|
64
|
+
readonly idComputed?: boolean;
|
|
55
65
|
readonly creation: string;
|
|
56
66
|
readonly mounted: boolean;
|
|
57
67
|
readonly produces: readonly string[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ahoo-wang/wow-generator",
|
|
3
|
-
"version": "10.0.0-
|
|
3
|
+
"version": "10.0.0-beta.1",
|
|
4
4
|
"description": "Generates the typed TypeScript clients of a Wow service from its Manifest, and TypeScript models and Fetcher decorator clients from any OpenAPI 3 document (https://github.com/Ahoo-Wang/Wow).",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"wow",
|
|
@@ -64,7 +64,15 @@
|
|
|
64
64
|
"@ahoo-wang/fetcher": "^5.1.5 || ^6.0.0",
|
|
65
65
|
"@ahoo-wang/fetcher-decorator": "^5.1.5 || ^6.0.0",
|
|
66
66
|
"@ahoo-wang/fetcher-eventstream": "^5.1.5 || ^6.0.0",
|
|
67
|
-
"@ahoo-wang/wow-client": "~10.0.0-
|
|
67
|
+
"@ahoo-wang/wow-client": "~10.0.0-beta.1"
|
|
68
|
+
},
|
|
69
|
+
"peerDependenciesMeta": {
|
|
70
|
+
"@ahoo-wang/fetcher-decorator": {
|
|
71
|
+
"optional": true
|
|
72
|
+
},
|
|
73
|
+
"@ahoo-wang/fetcher-eventstream": {
|
|
74
|
+
"optional": true
|
|
75
|
+
}
|
|
68
76
|
},
|
|
69
77
|
"dependencies": {
|
|
70
78
|
"ts-morph": "^28.0.0",
|
|
@@ -90,7 +98,7 @@
|
|
|
90
98
|
"vite": "8.3.5",
|
|
91
99
|
"vite-bundle-analyzer": "^1.3.9",
|
|
92
100
|
"vitest": "^4.1.12",
|
|
93
|
-
"@ahoo-wang/wow-client": "~10.0.0-
|
|
101
|
+
"@ahoo-wang/wow-client": "~10.0.0-beta.1"
|
|
94
102
|
},
|
|
95
103
|
"scripts": {
|
|
96
104
|
"build": "vite build && pnpm test:package",
|