@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.
@@ -4,7 +4,7 @@ import {
4
4
  consoleLogger,
5
5
  generateSdk,
6
6
  linkSkills
7
- } from "../chunk-J2RLNVKK.js";
7
+ } from "../chunk-HVYT2X4V.js";
8
8
 
9
9
  // src/codegen/cli.ts
10
10
  import { parseArgs } from "util";
@@ -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;
@@ -11,7 +11,7 @@ import {
11
11
  loadSpec,
12
12
  silentLogger,
13
13
  validateSpec
14
- } from "../chunk-J2RLNVKK.js";
14
+ } from "../chunk-HVYT2X4V.js";
15
15
  export {
16
16
  SUPPORTED_CONTRACT,
17
17
  SdkGenerationError,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mgamadeus/ddd-web",
3
- "version": "0.13.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",