@mgamadeus/ddd-web 0.13.0 → 0.14.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.
- package/.claude/skills/ddd-web-specialist/references/consumer.md +1 -1
- package/CHANGELOG.md +8 -0
- package/dist/{chunk-J2RLNVKK.js → chunk-HVYT2X4V.js} +107 -3
- package/dist/chunk-HVYT2X4V.js.map +1 -0
- package/dist/codegen/cli.js +1 -1
- package/dist/codegen/index.d.ts +7 -0
- package/dist/codegen/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-J2RLNVKK.js.map +0 -1
package/dist/codegen/cli.js
CHANGED
package/dist/codegen/index.d.ts
CHANGED
|
@@ -193,6 +193,13 @@ interface EndpointOptions {
|
|
|
193
193
|
* class that moves keeps the name). `rtk` (default): the camel-cased schema name.
|
|
194
194
|
*/
|
|
195
195
|
bodyArg?: 'rtk' | 'requestBody';
|
|
196
|
+
/**
|
|
197
|
+
* `true`: the request builder of every endpoint (its `query`) goes into `<stem>Requests.ts` next to the api file, as
|
|
198
|
+
* `export const <stem>Requests = { <endpoint>: (queryArg: <Arg>) => ({ url, params, body, … }) }`, and the endpoint
|
|
199
|
+
* uses it (`query: <stem>Requests.<endpoint>`). A bundle that only builds requests imports that module without the
|
|
200
|
+
* endpoint injection. Default `false`.
|
|
201
|
+
*/
|
|
202
|
+
requestBuilders?: boolean;
|
|
196
203
|
}
|
|
197
204
|
/** The endpoint name of `naming: 'path'` (see {@link EndpointOptions.naming}). */
|
|
198
205
|
declare function buildEndpointNameFromPath(method: string, path: string, stripPathPrefix?: string | RegExp): string;
|
package/dist/codegen/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mgamadeus/ddd-web",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.14.0",
|
|
4
4
|
"description": "TypeScript web client for backends built with mgamadeus/ddd, the DDD entity framework for Symfony and Doctrine (Composer/Packagist). Generates a typed RTK Query SDK from the backend's OpenAPI document, builds DDD QueryOptions (filters, orderBy, expand, select, paging) and handles JWT auth with token refresh.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ddd",
|