@rexeus/typeweaver-clients 0.6.5 → 0.7.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.
|
@@ -48,6 +48,8 @@ export abstract class RequestCommand<
|
|
|
48
48
|
Query extends IHttpQuery = IHttpQuery | undefined,
|
|
49
49
|
Body extends IHttpBody = IHttpBody | undefined,
|
|
50
50
|
> implements IHttpRequest {
|
|
51
|
+
/** Unique operation identifier from the API definition */
|
|
52
|
+
public readonly operationId!: string;
|
|
51
53
|
/** The HTTP method for this request */
|
|
52
54
|
public readonly method!: HttpMethod;
|
|
53
55
|
/** The URL path pattern with parameter placeholders (e.g., '/users/:id') */
|
|
@@ -23,6 +23,7 @@ import { <%= successResponse.name %>Response } from "<%= successResponseImportPa
|
|
|
23
23
|
<% } %>
|
|
24
24
|
|
|
25
25
|
export class <%= pascalCaseOperationId %>RequestCommand extends RequestCommand implements I<%= pascalCaseOperationId %>Request {
|
|
26
|
+
public override readonly operationId = definition.operationId;
|
|
26
27
|
public override readonly method = definition.method as HttpMethod.<%= method %>;
|
|
27
28
|
public override readonly path = definition.path;
|
|
28
29
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rexeus/typeweaver-clients",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"description": "Generates HTTP clients directly from your API definitions. Powered by Typeweaver 🧵✨",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -48,19 +48,19 @@
|
|
|
48
48
|
"homepage": "https://github.com/rexeus/typeweaver#readme",
|
|
49
49
|
"peerDependencies": {
|
|
50
50
|
"zod": "^4.3.0",
|
|
51
|
-
"@rexeus/typeweaver-core": "^0.
|
|
52
|
-
"@rexeus/typeweaver-gen": "^0.
|
|
51
|
+
"@rexeus/typeweaver-core": "^0.7.0",
|
|
52
|
+
"@rexeus/typeweaver-gen": "^0.7.0"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"@hono/node-server": "^1.19.7",
|
|
56
56
|
"test-utils": "file:../test-utils",
|
|
57
57
|
"zod": "^4.3.6",
|
|
58
|
-
"@rexeus/typeweaver-core": "^0.
|
|
59
|
-
"@rexeus/typeweaver-gen": "^0.
|
|
58
|
+
"@rexeus/typeweaver-core": "^0.7.0",
|
|
59
|
+
"@rexeus/typeweaver-gen": "^0.7.0"
|
|
60
60
|
},
|
|
61
61
|
"dependencies": {
|
|
62
62
|
"case": "^1.6.3",
|
|
63
|
-
"@rexeus/typeweaver-zod-to-ts": "^0.
|
|
63
|
+
"@rexeus/typeweaver-zod-to-ts": "^0.7.0"
|
|
64
64
|
},
|
|
65
65
|
"scripts": {
|
|
66
66
|
"typecheck": "tsc --noEmit",
|