@mgamadeus/ddd-web 0.13.0 → 0.15.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 +19 -0
- package/dist/{chunk-J2RLNVKK.js → chunk-6CQEUZ3B.js} +174 -40
- package/dist/chunk-6CQEUZ3B.js.map +1 -0
- package/dist/codegen/cli.js +1 -1
- package/dist/codegen/index.d.ts +13 -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,19 @@ 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. `'all'`: the module holds the builder of EVERY operation of the document (and their argument
|
|
201
|
+
* types are written), while the api file injects only what `filterEndpoints` keeps. Default `false`.
|
|
202
|
+
*/
|
|
203
|
+
requestBuilders?: boolean | 'all';
|
|
204
|
+
/**
|
|
205
|
+
* `drop` (default): parameters `in: cookie` leave the endpoints — a browser sends its cookies itself, and RTK Query's
|
|
206
|
+
* `FetchArgs` has no field for them (a builder with `cookies` fails the type check). `keep`: as RTK codegen writes them.
|
|
207
|
+
*/
|
|
208
|
+
cookieParameters?: 'drop' | 'keep';
|
|
196
209
|
}
|
|
197
210
|
/** The endpoint name of `naming: 'path'` (see {@link EndpointOptions.naming}). */
|
|
198
211
|
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.15.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",
|