@hey-api/openapi-ts 0.98.2 → 0.99.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/README.md +23 -23
- package/dist/chunk-z9aeyW2b.mjs +15 -0
- package/dist/clients/core/params.ts +18 -11
- package/dist/index.d.mts +464 -167
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +4 -3
- package/dist/{init-6HtXdMiq.mjs → init-D6Y8JFUS.mjs} +3575 -1677
- package/dist/init-D6Y8JFUS.mjs.map +1 -0
- package/dist/internal.mjs +1 -1
- package/dist/plugins.d.mts +34 -0
- package/dist/plugins.d.mts.map +1 -0
- package/dist/plugins.mjs +65 -0
- package/dist/plugins.mjs.map +1 -0
- package/dist/run.mjs +2 -2
- package/dist/{src-CY0O0cwg.mjs → src-CI9riJdm.mjs} +4 -3
- package/dist/src-CI9riJdm.mjs.map +1 -0
- package/package.json +36 -17
- package/dist/init-6HtXdMiq.mjs.map +0 -1
- package/dist/src-CY0O0cwg.mjs.map +0 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { n as UserConfig } from "./types-DH7EVLYi.mjs";
|
|
2
|
+
import { t as plugins_d_exports } from "./plugins.mjs";
|
|
2
3
|
import { AnalysisContext, BindingKind, ExportModule, File, FromRef, ImportModule, Language, Logger, Node, NodeName, NodeNameSanitizer, NodeRelationship, NodeScope, ProjectMeta, Ref, RenderContext, Renderer, Symbol } from "@hey-api/codegen-core";
|
|
3
|
-
import { AnyPluginName, BaseOutput, Casing, Coercer, CoercerMap, ConfigTable, Context, DefinePlugin, DefinePlugin as DefinePlugin$1, FeatureToggle, IR, IR as IR$1, NameTransformer, NamingConfig, NamingOptions, NamingRule, OpenApi, OpenApiMetaObject, OpenApiOperationObject, OpenApiParameterObject, OpenApiRequestBodyObject, OpenApiResponseObject, OpenApiSchemaObject, OperationPath, OperationPathStrategy, OperationStrategy, OperationsStrategy, Plugin, Plugin as Plugin$1, PluginContext, PluginInstance, PluginInstance as PluginInstance$1, RequestSchemaContext, ResolvedRequestValidatorLayer, SchemaVisitorContext, SchemaWithType, TableDirectives, Walker, applyNaming, coerce, defaultPaginationKeywords, defineConfig as defineConfigTable, definePluginConfig, toCase, utils } from "@hey-api/shared";
|
|
4
|
+
import { AnyPluginName, BaseOutput, Casing, Coercer, CoercerMap, ConfigTable, Context, DefinePlugin, DefinePlugin as DefinePlugin$1, FeatureToggle, IR, IR as IR$1, NameTransformer, NamingConfig, NamingOptions, NamingRule, OpenApi, OpenApiMetaObject, OpenApiOperationObject, OpenApiParameterObject, OpenApiRequestBodyObject, OpenApiResponseObject, OpenApiSchemaObject, OperationPath, OperationPathStrategy, OperationStrategy, OperationsStrategy, Plugin, Plugin as Plugin$1, PluginConfigMap, PluginContext, PluginInstance, PluginInstance as PluginInstance$1, PluginNames, RequestSchemaContext, ResolvedRequestValidatorLayer, SchemaVisitorContext, SchemaWithType, TableDirectives, Walker, applyNaming, coerce, defaultPaginationKeywords, defineConfig as defineConfigTable, definePluginConfig, toCase, utils } from "@hey-api/shared";
|
|
4
5
|
import ts from "typescript";
|
|
5
6
|
import { AnyString, LazyOrAsync, MaybeArray, MaybeFunc } from "@hey-api/types";
|
|
6
7
|
import { HttpClient, HttpErrorResponse, HttpHeaders, HttpRequest, HttpResponse } from "@angular/common/http";
|
|
@@ -10,9 +11,9 @@ import { AsyncDataOptions, UseFetchOptions, useAsyncData, useFetch, useLazyAsync
|
|
|
10
11
|
import { Ref as Ref$1 } from "vue";
|
|
11
12
|
import { FetchOptions, ResponseType, ofetch } from "ofetch";
|
|
12
13
|
import ky, { Options } from "ky";
|
|
13
|
-
import { LinguistLanguages
|
|
14
|
+
import { LinguistLanguages } from "@hey-api/spec-types";
|
|
14
15
|
|
|
15
|
-
//#region src/plugins/@angular/common/
|
|
16
|
+
//#region src/plugins/@angular/common/http-requests/types.d.ts
|
|
16
17
|
interface UserHttpRequestsConfig {
|
|
17
18
|
/**
|
|
18
19
|
* Type of container for grouped operations.
|
|
@@ -192,7 +193,7 @@ type HttpRequestsConfig = FeatureToggle & {
|
|
|
192
193
|
strategyDefaultTag: string;
|
|
193
194
|
};
|
|
194
195
|
//#endregion
|
|
195
|
-
//#region src/plugins/@angular/common/
|
|
196
|
+
//#region src/plugins/@angular/common/http-resources/types.d.ts
|
|
196
197
|
interface UserHttpResourcesConfig {
|
|
197
198
|
/**
|
|
198
199
|
* Type of container for grouped operations.
|
|
@@ -372,8 +373,17 @@ type HttpResourcesConfig = FeatureToggle & {
|
|
|
372
373
|
strategyDefaultTag: string;
|
|
373
374
|
};
|
|
374
375
|
//#endregion
|
|
376
|
+
//#region src/plugins/@angular/common/imports.d.ts
|
|
377
|
+
declare function angularImports(plugin: PluginInstance$1): {
|
|
378
|
+
HttpRequest: any;
|
|
379
|
+
Injectable: any;
|
|
380
|
+
httpResource: any;
|
|
381
|
+
inject: any;
|
|
382
|
+
};
|
|
383
|
+
type AngularImports = ReturnType<typeof angularImports>;
|
|
384
|
+
//#endregion
|
|
375
385
|
//#region src/plugins/@angular/common/types.d.ts
|
|
376
|
-
type UserConfig$
|
|
386
|
+
type UserConfig$29 = Plugin$1.Name<'@angular/common'> & Plugin$1.Hooks & Plugin$1.UserComments & Plugin$1.UserExports & {
|
|
377
387
|
/**
|
|
378
388
|
* Options for generating HTTP Request instances.
|
|
379
389
|
*
|
|
@@ -387,7 +397,7 @@ type UserConfig$27 = Plugin$1.Name<'@angular/common'> & Plugin$1.Hooks & Plugin$
|
|
|
387
397
|
*/
|
|
388
398
|
httpResources?: boolean | OperationsStrategy | UserHttpResourcesConfig;
|
|
389
399
|
};
|
|
390
|
-
type Config$
|
|
400
|
+
type Config$26 = Plugin$1.Name<'@angular/common'> & Plugin$1.Hooks & Plugin$1.Comments & Plugin$1.Exports & {
|
|
391
401
|
/**
|
|
392
402
|
* Options for generating HTTP Request instances.
|
|
393
403
|
*/
|
|
@@ -397,7 +407,7 @@ type Config$24 = Plugin$1.Name<'@angular/common'> & Plugin$1.Hooks & Plugin$1.Co
|
|
|
397
407
|
*/
|
|
398
408
|
httpResources: HttpResourcesConfig;
|
|
399
409
|
};
|
|
400
|
-
type AngularCommonPlugin = DefinePlugin$1<UserConfig$
|
|
410
|
+
type AngularCommonPlugin = DefinePlugin$1<UserConfig$29, Config$26, never, AngularImports>;
|
|
401
411
|
//#endregion
|
|
402
412
|
//#region src/ts-dsl/mixins/types.d.ts
|
|
403
413
|
type BaseCtor<T extends ts.Node> = abstract new (...args: Array<any>) => TsDsl<T>;
|
|
@@ -2426,44 +2436,116 @@ type DollarTsDsl = {
|
|
|
2426
2436
|
$: typeof $;
|
|
2427
2437
|
};
|
|
2428
2438
|
//#endregion
|
|
2439
|
+
//#region src/plugins/@faker-js/faker/shared/types.d.ts
|
|
2440
|
+
/**
|
|
2441
|
+
* Any DSL node or raw TS node that represents an expression.
|
|
2442
|
+
* Broad enough to accept ExprTsDsl, CallTsDsl, ObjectTsDsl, LiteralTsDsl, etc.
|
|
2443
|
+
*/
|
|
2444
|
+
type Expression$1 = MaybeTsDsl<ts.Expression>;
|
|
2445
|
+
interface NameRule {
|
|
2446
|
+
/**
|
|
2447
|
+
* Default args for the faker method. Schema constraints merge with these:
|
|
2448
|
+
* schema values override defaults.
|
|
2449
|
+
*/
|
|
2450
|
+
defaultArgs?: string | Record<string, number | string | boolean>;
|
|
2451
|
+
/** Faker method path segments, e.g., ['person', 'firstName']. */
|
|
2452
|
+
fakerPath: Readonly<[fakeModule: string, fakeFunction: string]>;
|
|
2453
|
+
}
|
|
2454
|
+
/**
|
|
2455
|
+
* A map of properties and the desired faker methods.
|
|
2456
|
+
*
|
|
2457
|
+
* Add `suffixMatch` so the configured rule will be applied as long as
|
|
2458
|
+
* the property name ends with the provided key.
|
|
2459
|
+
*
|
|
2460
|
+
* Supports matching with property ancestor with the pattern
|
|
2461
|
+
* `<ancesor>.<property>`.
|
|
2462
|
+
*
|
|
2463
|
+
* @example
|
|
2464
|
+
*
|
|
2465
|
+
* ```ts
|
|
2466
|
+
* {
|
|
2467
|
+
* // property matching 'country' exactly -> `faker.location.countryCode('alpha-3')`
|
|
2468
|
+
* country: { fakerPath: ['location', 'countryCode'], defaultArgs: 'alpha-3' },
|
|
2469
|
+
* // property ends with 'id' -> `faker.database.mongodbObjectId()`
|
|
2470
|
+
* id: { fakerPath: ['database', 'mongodbObjectId'], suffixMatch: true },
|
|
2471
|
+
* // property name wih role as ancestor -> `faker.person.jobTitle()`
|
|
2472
|
+
* 'role.name': { fakerPath: ['person', 'jobTitle'] }
|
|
2473
|
+
* }
|
|
2474
|
+
* ```
|
|
2475
|
+
*/
|
|
2476
|
+
type NameRulesOverrides = Record<string, NameRule & {
|
|
2477
|
+
suffixMatch?: true;
|
|
2478
|
+
}>;
|
|
2479
|
+
//#endregion
|
|
2429
2480
|
//#region src/plugins/@faker-js/faker/api.d.ts
|
|
2430
|
-
type Expression$1 = ReturnType<typeof $.expr>;
|
|
2431
2481
|
type IApi$4 = {
|
|
2432
2482
|
/**
|
|
2433
|
-
* Generate
|
|
2483
|
+
* Generate an inline Faker expression for a schema.
|
|
2434
2484
|
*
|
|
2435
2485
|
* Returns an expression that produces a valid instance when executed.
|
|
2436
|
-
*
|
|
2486
|
+
* The returned expression may reference faker symbols (`ensureFaker`,
|
|
2487
|
+
* `options`) — cross-plugin references resolve imports automatically.
|
|
2437
2488
|
*
|
|
2438
2489
|
* @example
|
|
2439
2490
|
* ```ts
|
|
2491
|
+
* // For { type: 'object', properties: { name: string, email: string } }:
|
|
2440
2492
|
* {
|
|
2441
|
-
* name:
|
|
2442
|
-
* email:
|
|
2493
|
+
* name: ensureFaker(options).person.fullName(),
|
|
2494
|
+
* email: ensureFaker(options).internet.email()
|
|
2443
2495
|
* }
|
|
2444
2496
|
* ```
|
|
2445
2497
|
*/
|
|
2446
|
-
toNode(
|
|
2498
|
+
toNode(args: {
|
|
2499
|
+
plugin: FakerJsFakerPlugin['Instance'];
|
|
2500
|
+
schema: IR$1.SchemaObject;
|
|
2501
|
+
}): Expression$1;
|
|
2447
2502
|
/**
|
|
2448
|
-
* Get a reference to
|
|
2503
|
+
* Get a reference to an existing Faker factory for a schema.
|
|
2449
2504
|
*
|
|
2450
|
-
*
|
|
2451
|
-
*
|
|
2505
|
+
* For `$ref` schemas, looks up the registered factory symbol via
|
|
2506
|
+
* `referenceSymbol` and returns a call expression (e.g. `fakeUser(options)`).
|
|
2507
|
+
* For non-`$ref` schemas, falls back to an inline expression via `toNode`.
|
|
2452
2508
|
*
|
|
2453
2509
|
* @example
|
|
2454
|
-
*
|
|
2510
|
+
* ```ts
|
|
2511
|
+
* // For { $ref: '#/components/schemas/User' }:
|
|
2512
|
+
* fakeUser(options)
|
|
2513
|
+
* ```
|
|
2455
2514
|
*/
|
|
2456
|
-
toNodeRef(
|
|
2515
|
+
toNodeRef(args: {
|
|
2516
|
+
plugin: FakerJsFakerPlugin['Instance'];
|
|
2517
|
+
schema: IR$1.SchemaObject;
|
|
2518
|
+
}): Expression$1;
|
|
2457
2519
|
};
|
|
2458
2520
|
//#endregion
|
|
2521
|
+
//#region src/plugins/@faker-js/faker/imports.d.ts
|
|
2522
|
+
declare function fakerImports(plugin: PluginInstance$1): {
|
|
2523
|
+
Faker: any;
|
|
2524
|
+
faker: any;
|
|
2525
|
+
};
|
|
2526
|
+
type FakerImports = ReturnType<typeof fakerImports>;
|
|
2527
|
+
//#endregion
|
|
2459
2528
|
//#region src/plugins/@faker-js/faker/types.d.ts
|
|
2460
|
-
type
|
|
2529
|
+
type FakerCompatibilityVersion = 9 | 10;
|
|
2530
|
+
type UserConfig$28 = Plugin$1.Name<'@faker-js/faker'> & Plugin$1.Hooks & Plugin$1.UserExports & {
|
|
2461
2531
|
/**
|
|
2462
2532
|
* Casing convention for generated names.
|
|
2463
2533
|
*
|
|
2464
2534
|
* @default 'camelCase'
|
|
2465
2535
|
*/
|
|
2466
2536
|
case?: Casing;
|
|
2537
|
+
/**
|
|
2538
|
+
* The compatibility version to target for generated output.
|
|
2539
|
+
*
|
|
2540
|
+
* Can be:
|
|
2541
|
+
* - `9`: [@faker-js/faker v9](https://www.npmjs.com/package/@faker-js/faker/v/9) (default). Requires Node >= 18.
|
|
2542
|
+
* - `10`: [@faker-js/faker v10](https://www.npmjs.com/package/@faker-js/faker/v/10). Requires Node ^20.19.0.
|
|
2543
|
+
*
|
|
2544
|
+
* Both versions produce identical output.
|
|
2545
|
+
*
|
|
2546
|
+
* @default 10
|
|
2547
|
+
*/
|
|
2548
|
+
compatibilityVersion?: FakerCompatibilityVersion;
|
|
2467
2549
|
/**
|
|
2468
2550
|
* Configuration for reusable schema definitions.
|
|
2469
2551
|
*
|
|
@@ -2471,6 +2553,8 @@ type UserConfig$26 = Plugin$1.Name<'@faker-js/faker'> & Plugin$1.Hooks & Plugin$
|
|
|
2471
2553
|
* - `boolean`: Shorthand for `{ enabled: boolean }`
|
|
2472
2554
|
* - `string` or `function`: Shorthand for `{ name: string | function }`
|
|
2473
2555
|
* - `object`: Full configuration object
|
|
2556
|
+
*
|
|
2557
|
+
* @default true
|
|
2474
2558
|
*/
|
|
2475
2559
|
definitions?: boolean | NameTransformer | {
|
|
2476
2560
|
/**
|
|
@@ -2493,24 +2577,103 @@ type UserConfig$26 = Plugin$1.Name<'@faker-js/faker'> & Plugin$1.Hooks & Plugin$
|
|
|
2493
2577
|
name?: NameTransformer;
|
|
2494
2578
|
};
|
|
2495
2579
|
/**
|
|
2496
|
-
*
|
|
2580
|
+
* Locale for `@faker-js/faker`. When set, the generated import for the
|
|
2581
|
+
* faker instance will use `@faker-js/faker/locale/{locale}` instead of
|
|
2582
|
+
* `@faker-js/faker`.
|
|
2497
2583
|
*
|
|
2498
|
-
* @
|
|
2584
|
+
* @see https://fakerjs.dev/guide/localization
|
|
2499
2585
|
*/
|
|
2500
2586
|
locale?: string;
|
|
2501
2587
|
/**
|
|
2502
|
-
*
|
|
2503
|
-
* the
|
|
2588
|
+
* Maximum recursion depth for circular schema references.
|
|
2589
|
+
* When the call depth exceeds this value, circular references
|
|
2590
|
+
* will return empty arrays or be omitted for optional properties.
|
|
2591
|
+
*
|
|
2592
|
+
* @default 10
|
|
2593
|
+
*/
|
|
2594
|
+
maxCallDepth?: number;
|
|
2595
|
+
/**
|
|
2596
|
+
* Customize the faker method based on property names.
|
|
2504
2597
|
*/
|
|
2505
|
-
|
|
2598
|
+
nameRules?: {
|
|
2599
|
+
/** Name rules for number schema type */number?: NameRulesOverrides; /** Name rules for string schema type */
|
|
2600
|
+
string?: NameRulesOverrides;
|
|
2601
|
+
};
|
|
2602
|
+
/**
|
|
2603
|
+
* Configuration for operation request factories.
|
|
2604
|
+
*
|
|
2605
|
+
* Can be:
|
|
2606
|
+
* - `boolean`: Shorthand for `{ enabled: boolean }`
|
|
2607
|
+
* - `string` or `function`: Shorthand for `{ name: string | function }`
|
|
2608
|
+
* - `object`: Full configuration object
|
|
2609
|
+
*
|
|
2610
|
+
* @default true
|
|
2611
|
+
*/
|
|
2612
|
+
requests?: boolean | NameTransformer | {
|
|
2613
|
+
/**
|
|
2614
|
+
* Casing convention for generated names.
|
|
2615
|
+
*
|
|
2616
|
+
* @default 'camelCase'
|
|
2617
|
+
*/
|
|
2618
|
+
case?: Casing;
|
|
2619
|
+
/**
|
|
2620
|
+
* Whether this feature is enabled.
|
|
2621
|
+
*
|
|
2622
|
+
* @default true
|
|
2623
|
+
*/
|
|
2624
|
+
enabled?: boolean;
|
|
2625
|
+
/**
|
|
2626
|
+
* Naming pattern for generated names.
|
|
2627
|
+
*
|
|
2628
|
+
* @default 'fake{{name}}Request'
|
|
2629
|
+
*/
|
|
2630
|
+
name?: NameTransformer;
|
|
2631
|
+
};
|
|
2632
|
+
/**
|
|
2633
|
+
* Configuration for operation response factories.
|
|
2634
|
+
*
|
|
2635
|
+
* Can be:
|
|
2636
|
+
* - `boolean`: Shorthand for `{ enabled: boolean }`
|
|
2637
|
+
* - `string` or `function`: Shorthand for `{ name: string | function }`
|
|
2638
|
+
* - `object`: Full configuration object
|
|
2639
|
+
*
|
|
2640
|
+
* @default true
|
|
2641
|
+
*/
|
|
2642
|
+
responses?: boolean | NameTransformer | {
|
|
2643
|
+
/**
|
|
2644
|
+
* Casing convention for generated names.
|
|
2645
|
+
*
|
|
2646
|
+
* @default 'camelCase'
|
|
2647
|
+
*/
|
|
2648
|
+
case?: Casing;
|
|
2649
|
+
/**
|
|
2650
|
+
* Whether this feature is enabled.
|
|
2651
|
+
*
|
|
2652
|
+
* @default true
|
|
2653
|
+
*/
|
|
2654
|
+
enabled?: boolean;
|
|
2655
|
+
/**
|
|
2656
|
+
* Naming pattern for generated names.
|
|
2657
|
+
*
|
|
2658
|
+
* @default 'fake{{name}}Response'
|
|
2659
|
+
*/
|
|
2660
|
+
name?: NameTransformer;
|
|
2661
|
+
};
|
|
2506
2662
|
};
|
|
2507
|
-
type Config$
|
|
2508
|
-
/** Casing convention for generated names. */case: Casing; /**
|
|
2509
|
-
|
|
2510
|
-
|
|
2511
|
-
|
|
2663
|
+
type Config$25 = Plugin$1.Name<'@faker-js/faker'> & Plugin$1.Hooks & Plugin$1.Exports & {
|
|
2664
|
+
/** Casing convention for generated names. */case: Casing; /** The compatibility version to target for generated output. */
|
|
2665
|
+
compatibilityVersion: FakerCompatibilityVersion; /** Configuration for reusable schema definitions. */
|
|
2666
|
+
definitions: NamingOptions & FeatureToggle; /** Locale for `@faker-js/faker`. */
|
|
2667
|
+
locale?: string; /** Maximum recursion depth for circular schema references. */
|
|
2668
|
+
maxCallDepth: number; /** Faker method customization based on property name */
|
|
2669
|
+
nameRules: {
|
|
2670
|
+
number?: NameRulesOverrides;
|
|
2671
|
+
string?: NameRulesOverrides;
|
|
2672
|
+
}; /** Configuration for operation request factories. */
|
|
2673
|
+
requests: NamingOptions & FeatureToggle; /** Configuration for operation response factories. */
|
|
2674
|
+
responses: NamingOptions & FeatureToggle;
|
|
2512
2675
|
};
|
|
2513
|
-
type FakerJsFakerPlugin = DefinePlugin$1<UserConfig$
|
|
2676
|
+
type FakerJsFakerPlugin = DefinePlugin$1<UserConfig$28, Config$25, IApi$4, FakerImports>;
|
|
2514
2677
|
//#endregion
|
|
2515
2678
|
//#region src/plugins/@faker-js/faker/resolvers/types.d.ts
|
|
2516
2679
|
type Expression = ReturnType<typeof $.expr>;
|
|
@@ -2620,7 +2783,7 @@ type Client$8<RequestFn = never, Config = unknown, MethodFn = never, BuildUrlFn
|
|
|
2620
2783
|
} : {
|
|
2621
2784
|
sse: { [K in HttpMethod]: SseFn };
|
|
2622
2785
|
});
|
|
2623
|
-
interface Config$
|
|
2786
|
+
interface Config$24 {
|
|
2624
2787
|
/**
|
|
2625
2788
|
* Auth token or a function returning auth token. The resolved value will be
|
|
2626
2789
|
* added to the request payload as defined by its `security` array.
|
|
@@ -2675,7 +2838,7 @@ interface Config$22 {
|
|
|
2675
2838
|
}
|
|
2676
2839
|
//#endregion
|
|
2677
2840
|
//#region src/plugins/@hey-api/client-core/bundle/serverSentEvents.d.ts
|
|
2678
|
-
type ServerSentEventsOptions<TData = unknown> = Omit<RequestInit, 'method'> & Pick<Config$
|
|
2841
|
+
type ServerSentEventsOptions<TData = unknown> = Omit<RequestInit, 'method'> & Pick<Config$24, 'method' | 'responseTransformer' | 'responseValidator'> & {
|
|
2679
2842
|
/**
|
|
2680
2843
|
* Fetch API implementation. You can use this option to provide a custom
|
|
2681
2844
|
* fetch instance.
|
|
@@ -2770,7 +2933,7 @@ interface Middleware$4<Req, Res, Err, Options> {
|
|
|
2770
2933
|
//#endregion
|
|
2771
2934
|
//#region src/plugins/@hey-api/client-angular/bundle/types.d.ts
|
|
2772
2935
|
type ResponseStyle$3 = 'data' | 'fields';
|
|
2773
|
-
interface Config$
|
|
2936
|
+
interface Config$23<T extends ClientOptions$6 = ClientOptions$6> extends Omit<RequestInit, 'body' | 'headers' | 'method'>, Omit<Config$24, 'headers'> {
|
|
2774
2937
|
/**
|
|
2775
2938
|
* Base URL for all requests made by this client.
|
|
2776
2939
|
*/
|
|
@@ -2799,7 +2962,7 @@ interface Config$21<T extends ClientOptions$6 = ClientOptions$6> extends Omit<Re
|
|
|
2799
2962
|
*/
|
|
2800
2963
|
throwOnError?: T['throwOnError'];
|
|
2801
2964
|
}
|
|
2802
|
-
interface RequestOptions$6<TData = unknown, TResponseStyle extends ResponseStyle$3 = 'fields', ThrowOnError extends boolean = boolean, Url extends string = string> extends Config$
|
|
2965
|
+
interface RequestOptions$6<TData = unknown, TResponseStyle extends ResponseStyle$3 = 'fields', ThrowOnError extends boolean = boolean, Url extends string = string> extends Config$23<{
|
|
2803
2966
|
responseStyle: TResponseStyle;
|
|
2804
2967
|
throwOnError: ThrowOnError;
|
|
2805
2968
|
}>, Pick<ServerSentEventsOptions<TData>, 'onRequest' | 'onSseError' | 'onSseEvent' | 'sseDefaultRetryDelay' | 'sseMaxRetryAttempts' | 'sseMaxRetryDelay'> {
|
|
@@ -2857,7 +3020,7 @@ type BuildUrlFn$6 = <TData extends {
|
|
|
2857
3020
|
query?: Record<string, unknown>;
|
|
2858
3021
|
url: string;
|
|
2859
3022
|
}>(options: TData & Options$6<TData>) => string;
|
|
2860
|
-
type Client$7 = Client$8<RequestFn$6, Config$
|
|
3023
|
+
type Client$7 = Client$8<RequestFn$6, Config$23, MethodFn$6, BuildUrlFn$6, SseFn$6> & {
|
|
2861
3024
|
interceptors: Middleware$4<HttpRequest<unknown>, HttpResponse<unknown>, unknown, ResolvedRequestOptions$4>;
|
|
2862
3025
|
requestOptions: RequestOptionsFn;
|
|
2863
3026
|
};
|
|
@@ -2872,7 +3035,7 @@ type OmitKeys$5<T, K> = Pick<T, Exclude<keyof T, K>>;
|
|
|
2872
3035
|
type Options$6<TData extends TDataShape$5 = TDataShape$5, ThrowOnError extends boolean = boolean, TResponse = unknown, TResponseStyle extends ResponseStyle$3 = 'fields'> = OmitKeys$5<RequestOptions$6<TResponse, TResponseStyle, ThrowOnError>, 'body' | 'path' | 'query' | 'url'> & ([TData] extends [never] ? unknown : Omit<TData, 'url'>);
|
|
2873
3036
|
//#endregion
|
|
2874
3037
|
//#region src/plugins/@hey-api/client-axios/bundle/types.d.ts
|
|
2875
|
-
interface Config$
|
|
3038
|
+
interface Config$22<T extends ClientOptions$5 = ClientOptions$5> extends Omit<CreateAxiosDefaults, 'auth' | 'baseURL' | 'headers' | 'method'>, Config$24 {
|
|
2876
3039
|
/**
|
|
2877
3040
|
* Axios implementation. You can use this option to provide either an
|
|
2878
3041
|
* `AxiosStatic` or an `AxiosInstance`.
|
|
@@ -2898,7 +3061,7 @@ interface Config$20<T extends ClientOptions$5 = ClientOptions$5> extends Omit<Cr
|
|
|
2898
3061
|
*/
|
|
2899
3062
|
throwOnError?: T['throwOnError'];
|
|
2900
3063
|
}
|
|
2901
|
-
interface RequestOptions$5<TData = unknown, ThrowOnError extends boolean = boolean, Url extends string = string> extends Config$
|
|
3064
|
+
interface RequestOptions$5<TData = unknown, ThrowOnError extends boolean = boolean, Url extends string = string> extends Config$22<{
|
|
2902
3065
|
throwOnError: ThrowOnError;
|
|
2903
3066
|
}>, Pick<ServerSentEventsOptions<TData>, 'onRequest' | 'onSseError' | 'onSseEvent' | 'sseDefaultRetryDelay' | 'sseMaxRetryAttempts' | 'sseMaxRetryDelay'> {
|
|
2904
3067
|
/**
|
|
@@ -2933,12 +3096,12 @@ type BuildUrlFn$5 = <TData extends {
|
|
|
2933
3096
|
query?: Record<string, unknown>;
|
|
2934
3097
|
url: string;
|
|
2935
3098
|
}>(options: TData & Pick<RequestOptions$5<unknown, boolean>, 'axios' | 'baseURL' | 'paramsSerializer' | 'querySerializer'>) => string;
|
|
2936
|
-
type Client$6 = Client$8<RequestFn$5, Config$
|
|
3099
|
+
type Client$6 = Client$8<RequestFn$5, Config$22, MethodFn$5, BuildUrlFn$5, SseFn$5> & {
|
|
2937
3100
|
instance: AxiosInstance;
|
|
2938
3101
|
};
|
|
2939
3102
|
//#endregion
|
|
2940
3103
|
//#region src/plugins/@hey-api/client-axios/types.d.ts
|
|
2941
|
-
type UserConfig$
|
|
3104
|
+
type UserConfig$27 = Plugin$1.Name<'@hey-api/client-axios'> & Client.Config & {
|
|
2942
3105
|
/**
|
|
2943
3106
|
* Throw an error instead of returning it in the response?
|
|
2944
3107
|
*
|
|
@@ -2946,7 +3109,7 @@ type UserConfig$25 = Plugin$1.Name<'@hey-api/client-axios'> & Client.Config & {
|
|
|
2946
3109
|
*/
|
|
2947
3110
|
throwOnError?: boolean;
|
|
2948
3111
|
};
|
|
2949
|
-
type HeyApiClientAxiosPlugin = DefinePlugin$1<UserConfig$
|
|
3112
|
+
type HeyApiClientAxiosPlugin = DefinePlugin$1<UserConfig$27, UserConfig$27>;
|
|
2950
3113
|
//#endregion
|
|
2951
3114
|
//#region src/plugins/@hey-api/client-fetch/bundle/utils.d.ts
|
|
2952
3115
|
type ErrInterceptor$3<Err, Res, Req, Options> = (error: Err, /** response may be undefined due to a network error where no response object is produced */
|
|
@@ -2973,7 +3136,7 @@ interface Middleware$3<Req, Res, Err, Options> {
|
|
|
2973
3136
|
//#endregion
|
|
2974
3137
|
//#region src/plugins/@hey-api/client-fetch/bundle/types.d.ts
|
|
2975
3138
|
type ResponseStyle$2 = 'data' | 'fields';
|
|
2976
|
-
interface Config$
|
|
3139
|
+
interface Config$21<T extends ClientOptions$4 = ClientOptions$4> extends Omit<RequestInit, 'body' | 'headers' | 'method'>, Config$24 {
|
|
2977
3140
|
/**
|
|
2978
3141
|
* Base URL for all requests made by this client.
|
|
2979
3142
|
*/
|
|
@@ -3014,7 +3177,7 @@ interface Config$19<T extends ClientOptions$4 = ClientOptions$4> extends Omit<Re
|
|
|
3014
3177
|
*/
|
|
3015
3178
|
throwOnError?: T['throwOnError'];
|
|
3016
3179
|
}
|
|
3017
|
-
interface RequestOptions$4<TData = unknown, TResponseStyle extends ResponseStyle$2 = 'fields', ThrowOnError extends boolean = boolean, Url extends string = string> extends Config$
|
|
3180
|
+
interface RequestOptions$4<TData = unknown, TResponseStyle extends ResponseStyle$2 = 'fields', ThrowOnError extends boolean = boolean, Url extends string = string> extends Config$21<{
|
|
3018
3181
|
responseStyle: TResponseStyle;
|
|
3019
3182
|
throwOnError: ThrowOnError;
|
|
3020
3183
|
}>, Pick<ServerSentEventsOptions<TData>, 'onRequest' | 'onSseError' | 'onSseEvent' | 'sseDefaultRetryDelay' | 'sseMaxRetryAttempts' | 'sseMaxRetryDelay'> {
|
|
@@ -3064,7 +3227,7 @@ type BuildUrlFn$4 = <TData extends {
|
|
|
3064
3227
|
query?: Record<string, unknown>;
|
|
3065
3228
|
url: string;
|
|
3066
3229
|
}>(options: TData & Options$5<TData>) => string;
|
|
3067
|
-
type Client$5 = Client$8<RequestFn$4, Config$
|
|
3230
|
+
type Client$5 = Client$8<RequestFn$4, Config$21, MethodFn$4, BuildUrlFn$4, SseFn$4> & {
|
|
3068
3231
|
interceptors: Middleware$3<Request, Response, unknown, ResolvedRequestOptions$3>;
|
|
3069
3232
|
};
|
|
3070
3233
|
interface TDataShape$4 {
|
|
@@ -3078,7 +3241,7 @@ type OmitKeys$4<T, K> = Pick<T, Exclude<keyof T, K>>;
|
|
|
3078
3241
|
type Options$5<TData extends TDataShape$4 = TDataShape$4, ThrowOnError extends boolean = boolean, TResponse = unknown, TResponseStyle extends ResponseStyle$2 = 'fields'> = OmitKeys$4<RequestOptions$4<TResponse, TResponseStyle, ThrowOnError>, 'body' | 'path' | 'query' | 'url'> & ([TData] extends [never] ? unknown : Omit<TData, 'url'>);
|
|
3079
3242
|
//#endregion
|
|
3080
3243
|
//#region src/plugins/@hey-api/client-fetch/types.d.ts
|
|
3081
|
-
type UserConfig$
|
|
3244
|
+
type UserConfig$26 = Plugin$1.Name<'@hey-api/client-fetch'> & Client.Config & {
|
|
3082
3245
|
/**
|
|
3083
3246
|
* Throw an error instead of returning it in the response?
|
|
3084
3247
|
*
|
|
@@ -3086,7 +3249,7 @@ type UserConfig$24 = Plugin$1.Name<'@hey-api/client-fetch'> & Client.Config & {
|
|
|
3086
3249
|
*/
|
|
3087
3250
|
throwOnError?: boolean;
|
|
3088
3251
|
};
|
|
3089
|
-
type HeyApiClientFetchPlugin = DefinePlugin$1<UserConfig$
|
|
3252
|
+
type HeyApiClientFetchPlugin = DefinePlugin$1<UserConfig$26, UserConfig$26>;
|
|
3090
3253
|
//#endregion
|
|
3091
3254
|
//#region src/plugins/@hey-api/client-next/bundle/utils.d.ts
|
|
3092
3255
|
type ErrInterceptor$2<Err, Res, Options> = (error: Err, /** response may be undefined due to a network error where no response object is produced */
|
|
@@ -3110,7 +3273,7 @@ interface Middleware$2<Res, Err, Options> {
|
|
|
3110
3273
|
}
|
|
3111
3274
|
//#endregion
|
|
3112
3275
|
//#region src/plugins/@hey-api/client-next/bundle/types.d.ts
|
|
3113
|
-
interface Config$
|
|
3276
|
+
interface Config$20<T extends ClientOptions$3 = ClientOptions$3> extends Omit<RequestInit, 'body' | 'headers' | 'method'>, Config$24 {
|
|
3114
3277
|
/**
|
|
3115
3278
|
* Base URL for all requests made by this client.
|
|
3116
3279
|
*/
|
|
@@ -3138,7 +3301,7 @@ interface Config$18<T extends ClientOptions$3 = ClientOptions$3> extends Omit<Re
|
|
|
3138
3301
|
*/
|
|
3139
3302
|
throwOnError?: T['throwOnError'];
|
|
3140
3303
|
}
|
|
3141
|
-
interface RequestOptions$3<TData = unknown, ThrowOnError extends boolean = boolean, Url extends string = string> extends Config$
|
|
3304
|
+
interface RequestOptions$3<TData = unknown, ThrowOnError extends boolean = boolean, Url extends string = string> extends Config$20<{
|
|
3142
3305
|
throwOnError: ThrowOnError;
|
|
3143
3306
|
}>, Pick<ServerSentEventsOptions<TData>, 'onRequest' | 'onSseError' | 'onSseEvent' | 'sseDefaultRetryDelay' | 'sseMaxRetryAttempts' | 'sseMaxRetryDelay'> {
|
|
3144
3307
|
/**
|
|
@@ -3184,7 +3347,7 @@ type BuildUrlFn$3 = <TData extends {
|
|
|
3184
3347
|
query?: Record<string, unknown>;
|
|
3185
3348
|
url: string;
|
|
3186
3349
|
}>(options: TData & Options$4<TData>) => string;
|
|
3187
|
-
type Client$4 = Client$8<RequestFn$3, Config$
|
|
3350
|
+
type Client$4 = Client$8<RequestFn$3, Config$20, MethodFn$3, BuildUrlFn$3, SseFn$3> & {
|
|
3188
3351
|
interceptors: Middleware$2<Response, unknown, ResolvedRequestOptions$2>;
|
|
3189
3352
|
};
|
|
3190
3353
|
interface TDataShape$3 {
|
|
@@ -3198,7 +3361,7 @@ type OmitKeys$3<T, K> = Pick<T, Exclude<keyof T, K>>;
|
|
|
3198
3361
|
type Options$4<TData extends TDataShape$3 = TDataShape$3, ThrowOnError extends boolean = boolean, TResponse = unknown> = OmitKeys$3<RequestOptions$3<TResponse, ThrowOnError>, 'body' | 'path' | 'query' | 'url'> & ([TData] extends [never] ? unknown : Omit<TData, 'url'>);
|
|
3199
3362
|
//#endregion
|
|
3200
3363
|
//#region src/plugins/@hey-api/client-next/types.d.ts
|
|
3201
|
-
type UserConfig$
|
|
3364
|
+
type UserConfig$25 = Plugin$1.Name<'@hey-api/client-next'> & Client.Config & {
|
|
3202
3365
|
/**
|
|
3203
3366
|
* Throw an error instead of returning it in the response?
|
|
3204
3367
|
*
|
|
@@ -3206,13 +3369,13 @@ type UserConfig$23 = Plugin$1.Name<'@hey-api/client-next'> & Client.Config & {
|
|
|
3206
3369
|
*/
|
|
3207
3370
|
throwOnError?: boolean;
|
|
3208
3371
|
};
|
|
3209
|
-
type HeyApiClientNextPlugin = DefinePlugin$1<UserConfig$
|
|
3372
|
+
type HeyApiClientNextPlugin = DefinePlugin$1<UserConfig$25, UserConfig$25>;
|
|
3210
3373
|
//#endregion
|
|
3211
3374
|
//#region src/plugins/@hey-api/client-nuxt/bundle/types.d.ts
|
|
3212
3375
|
type QuerySerializer = (query: Parameters<Client$3['buildUrl']>[0]['query']) => string;
|
|
3213
3376
|
type WithRefs<TData> = { [K in keyof TData]: NonNullable<TData[K]> extends object ? WithRefs<NonNullable<TData[K]>> | Ref$1<NonNullable<TData[K]>> | Extract<TData[K], null> : NonNullable<TData[K]> | Ref$1<NonNullable<TData[K]>> | Extract<TData[K], null> };
|
|
3214
3377
|
type KeysOf<T> = Array<T extends T ? (keyof T extends string ? keyof T : never) : never>;
|
|
3215
|
-
interface Config$
|
|
3378
|
+
interface Config$19<T extends ClientOptions$2 = ClientOptions$2> extends Omit<FetchOptions$1<unknown>, 'baseURL' | 'body' | 'headers' | 'method' | 'query'>, WithRefs<Pick<FetchOptions$1<unknown>, 'query'>>, Omit<Config$24, 'querySerializer'> {
|
|
3216
3379
|
/**
|
|
3217
3380
|
* Base URL for all requests made by this client.
|
|
3218
3381
|
*/
|
|
@@ -3226,7 +3389,7 @@ interface Config$17<T extends ClientOptions$2 = ClientOptions$2> extends Omit<Fe
|
|
|
3226
3389
|
*/
|
|
3227
3390
|
querySerializer?: QuerySerializer | QuerySerializerOptions;
|
|
3228
3391
|
}
|
|
3229
|
-
interface RequestOptions$2<TComposable extends Composable = '$fetch', ResT = unknown, DefaultT = undefined, Url extends string = string> extends Config$
|
|
3392
|
+
interface RequestOptions$2<TComposable extends Composable = '$fetch', ResT = unknown, DefaultT = undefined, Url extends string = string> extends Config$19, WithRefs<{
|
|
3230
3393
|
path?: FetchOptions$1<unknown>['query'];
|
|
3231
3394
|
query?: FetchOptions$1<unknown>['query'];
|
|
3232
3395
|
}>, Pick<ServerSentEventsOptions<ResT>, 'onSseError' | 'onSseEvent' | 'sseDefaultRetryDelay' | 'sseMaxRetryAttempts' | 'sseMaxRetryDelay'> {
|
|
@@ -3270,15 +3433,15 @@ interface TDataShape$2 {
|
|
|
3270
3433
|
}
|
|
3271
3434
|
type BuildUrlOptions<TData extends Omit<TDataShape$2, 'headers'> = Omit<TDataShape$2, 'headers'>> = Pick<WithRefs<TData>, 'path' | 'query'> & Pick<TData, 'url'> & Pick<Options$3<'$fetch', TData>, 'baseURL' | 'querySerializer'>;
|
|
3272
3435
|
type BuildUrlFn$2 = <TData extends Omit<TDataShape$2, 'headers'>>(options: BuildUrlOptions<TData>) => string;
|
|
3273
|
-
type Client$3 = Client$8<RequestFn$2, Config$
|
|
3436
|
+
type Client$3 = Client$8<RequestFn$2, Config$19, MethodFn$2, BuildUrlFn$2, SseFn$2>;
|
|
3274
3437
|
type OmitKeys$2<T, K> = Pick<T, Exclude<keyof T, K>>;
|
|
3275
3438
|
type Options$3<TComposable extends Composable = '$fetch', TData extends TDataShape$2 = TDataShape$2, ResT = unknown, DefaultT = undefined> = OmitKeys$2<RequestOptions$2<TComposable, ResT, DefaultT>, 'body' | 'path' | 'query' | 'url'> & ([TData] extends [never] ? unknown : WithRefs<Omit<TData, 'url'>>);
|
|
3276
3439
|
type FetchOptions$1<TData> = Omit<UseFetchOptions<TData, TData>, keyof AsyncDataOptions<TData>>;
|
|
3277
3440
|
type Composable = '$fetch' | 'useAsyncData' | 'useFetch' | 'useLazyAsyncData' | 'useLazyFetch';
|
|
3278
3441
|
//#endregion
|
|
3279
3442
|
//#region src/plugins/@hey-api/client-nuxt/types.d.ts
|
|
3280
|
-
type UserConfig$
|
|
3281
|
-
type HeyApiClientNuxtPlugin = DefinePlugin$1<UserConfig$
|
|
3443
|
+
type UserConfig$24 = Plugin$1.Name<'@hey-api/client-nuxt'> & Client.Config;
|
|
3444
|
+
type HeyApiClientNuxtPlugin = DefinePlugin$1<UserConfig$24, UserConfig$24>;
|
|
3282
3445
|
//#endregion
|
|
3283
3446
|
//#region src/plugins/@hey-api/client-ofetch/bundle/utils.d.ts
|
|
3284
3447
|
type ErrInterceptor$1<Err, Res, Req, Options> = (error: Err, /** response may be undefined due to a network error where no response object is produced */
|
|
@@ -3305,7 +3468,7 @@ interface Middleware$1<Req, Res, Err, Options> {
|
|
|
3305
3468
|
//#endregion
|
|
3306
3469
|
//#region src/plugins/@hey-api/client-ofetch/bundle/types.d.ts
|
|
3307
3470
|
type ResponseStyle$1 = 'data' | 'fields';
|
|
3308
|
-
interface Config$
|
|
3471
|
+
interface Config$18<T extends ClientOptions$1 = ClientOptions$1> extends Omit<RequestInit, 'body' | 'headers' | 'method'>, Config$24 {
|
|
3309
3472
|
/**
|
|
3310
3473
|
* HTTP(S) agent configuration (Node.js only). Passed through to ofetch.
|
|
3311
3474
|
*/
|
|
@@ -3406,7 +3569,7 @@ interface Config$16<T extends ClientOptions$1 = ClientOptions$1> extends Omit<Re
|
|
|
3406
3569
|
*/
|
|
3407
3570
|
timeout?: number;
|
|
3408
3571
|
}
|
|
3409
|
-
interface RequestOptions$1<TData = unknown, TResponseStyle extends ResponseStyle$1 = 'fields', ThrowOnError extends boolean = boolean, Url extends string = string> extends Config$
|
|
3572
|
+
interface RequestOptions$1<TData = unknown, TResponseStyle extends ResponseStyle$1 = 'fields', ThrowOnError extends boolean = boolean, Url extends string = string> extends Config$18<{
|
|
3410
3573
|
responseStyle: TResponseStyle;
|
|
3411
3574
|
throwOnError: ThrowOnError;
|
|
3412
3575
|
}>, Pick<ServerSentEventsOptions<TData>, 'onSseError' | 'onSseEvent' | 'sseDefaultRetryDelay' | 'sseMaxRetryAttempts' | 'sseMaxRetryDelay'> {
|
|
@@ -3456,7 +3619,7 @@ type BuildUrlFn$1 = <TData extends {
|
|
|
3456
3619
|
query?: Record<string, unknown>;
|
|
3457
3620
|
url: string;
|
|
3458
3621
|
}>(options: TData & Options$2<TData>) => string;
|
|
3459
|
-
type Client$2 = Client$8<RequestFn$1, Config$
|
|
3622
|
+
type Client$2 = Client$8<RequestFn$1, Config$18, MethodFn$1, BuildUrlFn$1, SseFn$1> & {
|
|
3460
3623
|
interceptors: Middleware$1<Request, Response, unknown, ResolvedRequestOptions$1>;
|
|
3461
3624
|
};
|
|
3462
3625
|
interface TDataShape$1 {
|
|
@@ -3470,7 +3633,7 @@ type OmitKeys$1<T, K> = Pick<T, Exclude<keyof T, K>>;
|
|
|
3470
3633
|
type Options$2<TData extends TDataShape$1 = TDataShape$1, ThrowOnError extends boolean = boolean, TResponse = unknown, TResponseStyle extends ResponseStyle$1 = 'fields'> = OmitKeys$1<RequestOptions$1<TResponse, TResponseStyle, ThrowOnError>, 'body' | 'path' | 'query' | 'url'> & ([TData] extends [never] ? unknown : Omit<TData, 'url'>);
|
|
3471
3634
|
//#endregion
|
|
3472
3635
|
//#region src/plugins/@hey-api/client-ofetch/types.d.ts
|
|
3473
|
-
type UserConfig$
|
|
3636
|
+
type UserConfig$23 = Plugin$1.Name<'@hey-api/client-ofetch'> & Client.Config & {
|
|
3474
3637
|
/**
|
|
3475
3638
|
* Throw an error instead of returning it in the response?
|
|
3476
3639
|
*
|
|
@@ -3478,7 +3641,7 @@ type UserConfig$21 = Plugin$1.Name<'@hey-api/client-ofetch'> & Client.Config & {
|
|
|
3478
3641
|
*/
|
|
3479
3642
|
throwOnError?: boolean;
|
|
3480
3643
|
};
|
|
3481
|
-
type HeyApiClientOfetchPlugin = DefinePlugin$1<UserConfig$
|
|
3644
|
+
type HeyApiClientOfetchPlugin = DefinePlugin$1<UserConfig$23, UserConfig$23>;
|
|
3482
3645
|
//#endregion
|
|
3483
3646
|
//#region src/plugins/@hey-api/client-core/types.d.ts
|
|
3484
3647
|
interface PluginHandler {
|
|
@@ -3541,7 +3704,7 @@ declare namespace Client {
|
|
|
3541
3704
|
}
|
|
3542
3705
|
//#endregion
|
|
3543
3706
|
//#region src/plugins/@hey-api/client-angular/types.d.ts
|
|
3544
|
-
type UserConfig$
|
|
3707
|
+
type UserConfig$22 = Plugin$1.Name<'@hey-api/client-angular'> & Client.Config & {
|
|
3545
3708
|
/**
|
|
3546
3709
|
* Throw an error instead of returning it in the response?
|
|
3547
3710
|
*
|
|
@@ -3549,7 +3712,7 @@ type UserConfig$20 = Plugin$1.Name<'@hey-api/client-angular'> & Client.Config &
|
|
|
3549
3712
|
*/
|
|
3550
3713
|
throwOnError?: boolean;
|
|
3551
3714
|
};
|
|
3552
|
-
type HeyApiClientAngularPlugin = DefinePlugin$1<UserConfig$
|
|
3715
|
+
type HeyApiClientAngularPlugin = DefinePlugin$1<UserConfig$22, UserConfig$22>;
|
|
3553
3716
|
//#endregion
|
|
3554
3717
|
//#region src/plugins/@hey-api/client-ky/bundle/utils.d.ts
|
|
3555
3718
|
type ErrInterceptor<Err, Res, Req, Options> = (error: Err, /** response may be undefined due to a network error where no response object is produced */
|
|
@@ -3576,7 +3739,7 @@ interface Middleware<Req, Res, Err, Options> {
|
|
|
3576
3739
|
//#endregion
|
|
3577
3740
|
//#region src/plugins/@hey-api/client-ky/bundle/types.d.ts
|
|
3578
3741
|
type ResponseStyle = 'data' | 'fields';
|
|
3579
|
-
interface Config$
|
|
3742
|
+
interface Config$17<T extends ClientOptions = ClientOptions> extends Pick<Options, 'cache' | 'credentials' | 'retry' | 'signal' | 'integrity' | 'keepalive' | 'mode' | 'redirect' | 'referrer' | 'referrerPolicy' | 'timeout'>, Config$24 {
|
|
3580
3743
|
/**
|
|
3581
3744
|
* Base URL for all requests made by this client.
|
|
3582
3745
|
*/
|
|
@@ -3617,7 +3780,7 @@ interface Config$15<T extends ClientOptions = ClientOptions> extends Pick<Option
|
|
|
3617
3780
|
*/
|
|
3618
3781
|
throwOnError?: T['throwOnError'];
|
|
3619
3782
|
}
|
|
3620
|
-
interface RequestOptions<TData = unknown, TResponseStyle extends ResponseStyle = 'fields', ThrowOnError extends boolean = boolean, Url extends string = string> extends Config$
|
|
3783
|
+
interface RequestOptions<TData = unknown, TResponseStyle extends ResponseStyle = 'fields', ThrowOnError extends boolean = boolean, Url extends string = string> extends Config$17<{
|
|
3621
3784
|
responseStyle: TResponseStyle;
|
|
3622
3785
|
throwOnError: ThrowOnError;
|
|
3623
3786
|
}>, Pick<ServerSentEventsOptions<TData>, 'onRequest' | 'onSseError' | 'onSseEvent' | 'sseDefaultRetryDelay' | 'sseMaxRetryAttempts' | 'sseMaxRetryDelay'> {
|
|
@@ -3667,7 +3830,7 @@ type BuildUrlFn = <TData extends {
|
|
|
3667
3830
|
query?: Record<string, unknown>;
|
|
3668
3831
|
url: string;
|
|
3669
3832
|
}>(options: TData & Options$1<TData>) => string;
|
|
3670
|
-
type Client$1 = Client$8<RequestFn, Config$
|
|
3833
|
+
type Client$1 = Client$8<RequestFn, Config$17, MethodFn, BuildUrlFn, SseFn> & {
|
|
3671
3834
|
interceptors: Middleware<Request, Response, unknown, ResolvedRequestOptions>;
|
|
3672
3835
|
};
|
|
3673
3836
|
interface TDataShape {
|
|
@@ -3681,7 +3844,7 @@ type OmitKeys<T, K> = Pick<T, Exclude<keyof T, K>>;
|
|
|
3681
3844
|
type Options$1<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown, TResponseStyle extends ResponseStyle = 'fields'> = OmitKeys<RequestOptions<TResponse, TResponseStyle, ThrowOnError>, 'body' | 'path' | 'query' | 'url'> & ([TData] extends [never] ? unknown : Omit<TData, 'url'>);
|
|
3682
3845
|
//#endregion
|
|
3683
3846
|
//#region src/plugins/@hey-api/client-ky/types.d.ts
|
|
3684
|
-
type UserConfig$
|
|
3847
|
+
type UserConfig$21 = Plugin$1.Name<'@hey-api/client-ky'> & Client.Config & {
|
|
3685
3848
|
/**
|
|
3686
3849
|
* Throw an error instead of returning it in the response?
|
|
3687
3850
|
*
|
|
@@ -3689,10 +3852,24 @@ type UserConfig$19 = Plugin$1.Name<'@hey-api/client-ky'> & Client.Config & {
|
|
|
3689
3852
|
*/
|
|
3690
3853
|
throwOnError?: boolean;
|
|
3691
3854
|
};
|
|
3692
|
-
type HeyApiClientKyPlugin = DefinePlugin$1<UserConfig$
|
|
3855
|
+
type HeyApiClientKyPlugin = DefinePlugin$1<UserConfig$21, UserConfig$21>;
|
|
3856
|
+
//#endregion
|
|
3857
|
+
//#region src/plugins/@hey-api/examples/types.d.ts
|
|
3858
|
+
type UserConfig$20 = Plugin$1.Name<'@hey-api/examples'> & Plugin$1.Hooks & Plugin$1.UserExports & {
|
|
3859
|
+
/**
|
|
3860
|
+
* Casing convention for generated names.
|
|
3861
|
+
*
|
|
3862
|
+
* @default 'camelCase'
|
|
3863
|
+
*/
|
|
3864
|
+
case?: Casing;
|
|
3865
|
+
};
|
|
3866
|
+
type Config$16 = Plugin$1.Name<'@hey-api/examples'> & Plugin$1.Hooks & Plugin$1.Exports & {
|
|
3867
|
+
/** Casing convention for generated names. */case: Casing;
|
|
3868
|
+
};
|
|
3869
|
+
type HeyApiExamplesPlugin = DefinePlugin$1<UserConfig$20, Config$16>;
|
|
3693
3870
|
//#endregion
|
|
3694
3871
|
//#region src/plugins/@hey-api/schemas/types.d.ts
|
|
3695
|
-
type UserConfig$
|
|
3872
|
+
type UserConfig$19 = Plugin$1.Name<'@hey-api/schemas'> & Plugin$1.Hooks & Plugin$1.UserExports & {
|
|
3696
3873
|
/**
|
|
3697
3874
|
* Customise the schema name. By default, `{{name}}Schema` is used. `name` is a
|
|
3698
3875
|
* valid JavaScript/TypeScript identifier, e.g., if your schema name is
|
|
@@ -3700,7 +3877,7 @@ type UserConfig$18 = Plugin$1.Name<'@hey-api/schemas'> & Plugin$1.Hooks & Plugin
|
|
|
3700
3877
|
*
|
|
3701
3878
|
* @default '{{name}}Schema'
|
|
3702
3879
|
*/
|
|
3703
|
-
nameBuilder?: string | ((name: string, schema:
|
|
3880
|
+
nameBuilder?: string | ((name: string, schema: unknown) => string);
|
|
3704
3881
|
/**
|
|
3705
3882
|
* Choose schema type to generate. Select 'form' if you don't want
|
|
3706
3883
|
* descriptions to reduce bundle size and you plan to use schemas
|
|
@@ -3710,10 +3887,11 @@ type UserConfig$18 = Plugin$1.Name<'@hey-api/schemas'> & Plugin$1.Hooks & Plugin
|
|
|
3710
3887
|
*/
|
|
3711
3888
|
type?: 'form' | 'json';
|
|
3712
3889
|
};
|
|
3713
|
-
type HeyApiSchemasPlugin = DefinePlugin$1<UserConfig$
|
|
3890
|
+
type HeyApiSchemasPlugin = DefinePlugin$1<UserConfig$19, UserConfig$19>;
|
|
3714
3891
|
//#endregion
|
|
3715
3892
|
//#region src/plugins/types.d.ts
|
|
3716
3893
|
type PluginClientNames = '@hey-api/client-angular' | '@hey-api/client-axios' | '@hey-api/client-fetch' | '@hey-api/client-ky' | '@hey-api/client-next' | '@hey-api/client-nuxt' | '@hey-api/client-ofetch';
|
|
3894
|
+
type PluginSourceNames = '@faker-js/faker' | '@hey-api/examples';
|
|
3717
3895
|
type PluginTransformerNames = '@hey-api/transformers' | 'valibot' | 'zod';
|
|
3718
3896
|
type PluginValidatorNames = 'arktype' | 'valibot' | 'zod';
|
|
3719
3897
|
//#endregion
|
|
@@ -3769,6 +3947,27 @@ type ExamplesConfig = Omit<ExampleOptions, 'payload'> & FeatureToggle & {
|
|
|
3769
3947
|
transform?: (example: string, operation: IR$1.OperationObject) => string;
|
|
3770
3948
|
};
|
|
3771
3949
|
//#endregion
|
|
3950
|
+
//#region src/plugins/@hey-api/sdk/imports.d.ts
|
|
3951
|
+
declare function sdkImports(plugin: PluginInstance$1): {
|
|
3952
|
+
Client: any;
|
|
3953
|
+
ClientMeta: any;
|
|
3954
|
+
Composable: any;
|
|
3955
|
+
Options: any;
|
|
3956
|
+
RequestResult: any;
|
|
3957
|
+
ServerSentEventsResult: any;
|
|
3958
|
+
TDataShape: any;
|
|
3959
|
+
angular: {
|
|
3960
|
+
HttpRequest: any;
|
|
3961
|
+
Injectable: any;
|
|
3962
|
+
httpResource: any;
|
|
3963
|
+
inject: any;
|
|
3964
|
+
};
|
|
3965
|
+
buildClientParams: any;
|
|
3966
|
+
formDataBodySerializer: any;
|
|
3967
|
+
urlSearchParamsBodySerializer: any;
|
|
3968
|
+
};
|
|
3969
|
+
type SdkImports = ReturnType<typeof sdkImports>;
|
|
3970
|
+
//#endregion
|
|
3772
3971
|
//#region src/plugins/@hey-api/sdk/operations/types.d.ts
|
|
3773
3972
|
interface UserOperationsConfig {
|
|
3774
3973
|
/**
|
|
@@ -3884,26 +4083,8 @@ interface OperationsConfig {
|
|
|
3884
4083
|
strategyDefaultTag: string;
|
|
3885
4084
|
}
|
|
3886
4085
|
//#endregion
|
|
3887
|
-
//#region src/plugins/@hey-api/sdk/symbols.d.ts
|
|
3888
|
-
declare function sdkSymbols(plugin: PluginInstance$1): {
|
|
3889
|
-
Client: any;
|
|
3890
|
-
ClientMeta: any;
|
|
3891
|
-
Composable: any;
|
|
3892
|
-
Options: any;
|
|
3893
|
-
RequestResult: any;
|
|
3894
|
-
ServerSentEventsResult: any;
|
|
3895
|
-
TDataShape: any;
|
|
3896
|
-
angular: {
|
|
3897
|
-
Injectable: any;
|
|
3898
|
-
};
|
|
3899
|
-
buildClientParams: any;
|
|
3900
|
-
formDataBodySerializer: any;
|
|
3901
|
-
urlSearchParamsBodySerializer: any;
|
|
3902
|
-
};
|
|
3903
|
-
type SdkSymbols = ReturnType<typeof sdkSymbols>;
|
|
3904
|
-
//#endregion
|
|
3905
4086
|
//#region src/plugins/@hey-api/sdk/types.d.ts
|
|
3906
|
-
type UserConfig$
|
|
4087
|
+
type UserConfig$18 = Plugin$1.Name<'@hey-api/sdk'> & Plugin$1.Hooks & Plugin$1.UserComments & Plugin$1.UserExports & {
|
|
3907
4088
|
/**
|
|
3908
4089
|
* Should the generated functions contain auth mechanisms? You may want to
|
|
3909
4090
|
* disable this option if you're handling auth yourself or defining it
|
|
@@ -4092,7 +4273,7 @@ type UserConfig$17 = Plugin$1.Name<'@hey-api/sdk'> & Plugin$1.Hooks & Plugin$1.U
|
|
|
4092
4273
|
*/
|
|
4093
4274
|
response?: 'body' | 'response';
|
|
4094
4275
|
};
|
|
4095
|
-
type Config$
|
|
4276
|
+
type Config$15 = Plugin$1.Name<'@hey-api/sdk'> & Plugin$1.Hooks & Plugin$1.Comments & Plugin$1.Exports & {
|
|
4096
4277
|
/** Should the generated functions contain auth mechanisms? */auth: boolean; /** Use an internal client instance to send HTTP requests? */
|
|
4097
4278
|
client: PluginClientNames | false; /** Configuration for generating SDK code examples. */
|
|
4098
4279
|
examples: ExamplesConfig; /** Define the structure of generated SDK operations. */
|
|
@@ -4121,7 +4302,15 @@ type Config$14 = Plugin$1.Name<'@hey-api/sdk'> & Plugin$1.Hooks & Plugin$1.Comme
|
|
|
4121
4302
|
*/
|
|
4122
4303
|
response: 'body' | 'response';
|
|
4123
4304
|
};
|
|
4124
|
-
type HeyApiSdkPlugin = DefinePlugin$1<UserConfig$
|
|
4305
|
+
type HeyApiSdkPlugin = DefinePlugin$1<UserConfig$18, Config$15, never, SdkImports>;
|
|
4306
|
+
//#endregion
|
|
4307
|
+
//#region src/plugins/@hey-api/transformers/imports.d.ts
|
|
4308
|
+
declare function transformersImports(plugin: PluginInstance$1): {
|
|
4309
|
+
temporalPolyfill: {
|
|
4310
|
+
Temporal: any;
|
|
4311
|
+
};
|
|
4312
|
+
};
|
|
4313
|
+
type TransformersImports = ReturnType<typeof transformersImports>;
|
|
4125
4314
|
//#endregion
|
|
4126
4315
|
//#region src/plugins/@hey-api/transformers/types.d.ts
|
|
4127
4316
|
interface BaseTransformer extends DollarTsDsl {
|
|
@@ -4129,7 +4318,7 @@ interface BaseTransformer extends DollarTsDsl {
|
|
|
4129
4318
|
schema: IR$1.SchemaObject;
|
|
4130
4319
|
}
|
|
4131
4320
|
type ExpressionTransformer = (ctx: BaseTransformer & {
|
|
4132
|
-
/** @deprecated Use `plugin` instead and access the config via `plugin.config` */config: Omit<UserConfig$
|
|
4321
|
+
/** @deprecated Use `plugin` instead and access the config via `plugin.config` */config: Omit<UserConfig$17, 'name'>;
|
|
4133
4322
|
dataExpression?: ts.Expression | ReturnType<typeof $.attr | typeof $.expr> | string;
|
|
4134
4323
|
}) => Array<TsDsl<ts.Expression> | ReturnType<typeof $.return>> | undefined;
|
|
4135
4324
|
/**
|
|
@@ -4137,7 +4326,7 @@ type ExpressionTransformer = (ctx: BaseTransformer & {
|
|
|
4137
4326
|
* If undefined is returned, the default type will be used.
|
|
4138
4327
|
*/
|
|
4139
4328
|
type TypeTransformer = (ctx: BaseTransformer) => MaybeTsDsl<ts.TypeNode> | undefined;
|
|
4140
|
-
type UserConfig$
|
|
4329
|
+
type UserConfig$17 = Plugin$1.Name<'@hey-api/transformers'> & Plugin$1.Hooks & Plugin$1.UserExports & {
|
|
4141
4330
|
/**
|
|
4142
4331
|
* Convert long integers into BigInt values?
|
|
4143
4332
|
*
|
|
@@ -4166,7 +4355,7 @@ type UserConfig$16 = Plugin$1.Name<'@hey-api/transformers'> & Plugin$1.Hooks & P
|
|
|
4166
4355
|
*/
|
|
4167
4356
|
typeTransformers?: ReadonlyArray<TypeTransformer>;
|
|
4168
4357
|
};
|
|
4169
|
-
type Config$
|
|
4358
|
+
type Config$14 = Plugin$1.Name<'@hey-api/transformers'> & Plugin$1.Hooks & Plugin$1.Exports & {
|
|
4170
4359
|
/**
|
|
4171
4360
|
* Convert long integers into BigInt values?
|
|
4172
4361
|
*
|
|
@@ -4195,7 +4384,7 @@ type Config$13 = Plugin$1.Name<'@hey-api/transformers'> & Plugin$1.Hooks & Plugi
|
|
|
4195
4384
|
*/
|
|
4196
4385
|
typeTransformers: ReadonlyArray<TypeTransformer>;
|
|
4197
4386
|
};
|
|
4198
|
-
type HeyApiTransformersPlugin = DefinePlugin$1<UserConfig$
|
|
4387
|
+
type HeyApiTransformersPlugin = DefinePlugin$1<UserConfig$17, Config$14, never, TransformersImports>;
|
|
4199
4388
|
//#endregion
|
|
4200
4389
|
//#region src/plugins/@hey-api/typescript/shared/types.d.ts
|
|
4201
4390
|
type Type = MaybeTsDsl<TypeTsDsl>;
|
|
@@ -4229,6 +4418,14 @@ type IApi$3 = {
|
|
|
4229
4418
|
schemaToType: (plugin: HeyApiTypeScriptPlugin['Instance'], schema: IR$1.SchemaObject) => Type;
|
|
4230
4419
|
};
|
|
4231
4420
|
//#endregion
|
|
4421
|
+
//#region src/plugins/@hey-api/typescript/imports.d.ts
|
|
4422
|
+
declare function typescriptImports(plugin: PluginInstance$1): {
|
|
4423
|
+
temporalPolyfill: {
|
|
4424
|
+
Temporal: any;
|
|
4425
|
+
};
|
|
4426
|
+
};
|
|
4427
|
+
type TypeScriptImports = ReturnType<typeof typescriptImports>;
|
|
4428
|
+
//#endregion
|
|
4232
4429
|
//#region src/plugins/@hey-api/typescript/resolvers.d.ts
|
|
4233
4430
|
type HeyApiTypeScriptResolvers = Plugin$1.Resolvers<{
|
|
4234
4431
|
/**
|
|
@@ -4522,7 +4719,7 @@ interface VoidResolverContext$2 extends BaseContext$2, Plugin$1.ResolverNodes<{
|
|
|
4522
4719
|
//#endregion
|
|
4523
4720
|
//#region src/plugins/@hey-api/typescript/types.d.ts
|
|
4524
4721
|
type EnumsType = 'javascript' | 'typescript' | 'typescript-const';
|
|
4525
|
-
type UserConfig$
|
|
4722
|
+
type UserConfig$16 = Plugin$1.Name<'@hey-api/typescript'> & Plugin$1.Hooks & Plugin$1.UserComments & Plugin$1.UserExports & HeyApiTypeScriptResolvers & {
|
|
4526
4723
|
/**
|
|
4527
4724
|
* Casing convention for generated names.
|
|
4528
4725
|
*
|
|
@@ -4729,7 +4926,7 @@ type UserConfig$15 = Plugin$1.Name<'@hey-api/typescript'> & Plugin$1.Hooks & Plu
|
|
|
4729
4926
|
payload?: NameTransformer;
|
|
4730
4927
|
};
|
|
4731
4928
|
};
|
|
4732
|
-
type Config$
|
|
4929
|
+
type Config$13 = Plugin$1.Name<'@hey-api/typescript'> & Plugin$1.Hooks & Plugin$1.Comments & Plugin$1.Exports & HeyApiTypeScriptResolvers & {
|
|
4733
4930
|
/**
|
|
4734
4931
|
* Casing convention for generated names.
|
|
4735
4932
|
*/
|
|
@@ -4826,10 +5023,22 @@ type Config$12 = Plugin$1.Name<'@hey-api/typescript'> & Plugin$1.Hooks & Plugin$
|
|
|
4826
5023
|
payload: NameTransformer;
|
|
4827
5024
|
};
|
|
4828
5025
|
};
|
|
4829
|
-
type HeyApiTypeScriptPlugin = DefinePlugin$1<UserConfig$
|
|
5026
|
+
type HeyApiTypeScriptPlugin = DefinePlugin$1<UserConfig$16, Config$13, IApi$3, TypeScriptImports>;
|
|
5027
|
+
//#endregion
|
|
5028
|
+
//#region src/plugins/@pinia/colada/imports.d.ts
|
|
5029
|
+
declare function piniaColadaImports(plugin: PluginInstance$1): {
|
|
5030
|
+
axios: {
|
|
5031
|
+
AxiosError: any;
|
|
5032
|
+
};
|
|
5033
|
+
UseMutationOptions: any;
|
|
5034
|
+
UseQueryOptions: any;
|
|
5035
|
+
_JSONValue: any;
|
|
5036
|
+
defineQueryOptions: any;
|
|
5037
|
+
};
|
|
5038
|
+
type PiniaColadaImports = ReturnType<typeof piniaColadaImports>;
|
|
4830
5039
|
//#endregion
|
|
4831
5040
|
//#region src/plugins/@pinia/colada/types.d.ts
|
|
4832
|
-
type UserConfig$
|
|
5041
|
+
type UserConfig$15 = Plugin$1.Name<'@pinia/colada'> & Plugin$1.Hooks & Plugin$1.UserComments & Plugin$1.UserExports & {
|
|
4833
5042
|
/**
|
|
4834
5043
|
* Casing convention for generated names.
|
|
4835
5044
|
*
|
|
@@ -4986,7 +5195,7 @@ type UserConfig$14 = Plugin$1.Name<'@pinia/colada'> & Plugin$1.Hooks & Plugin$1.
|
|
|
4986
5195
|
name?: NameTransformer;
|
|
4987
5196
|
};
|
|
4988
5197
|
};
|
|
4989
|
-
type Config$
|
|
5198
|
+
type Config$12 = Plugin$1.Name<'@pinia/colada'> & Plugin$1.Hooks & Plugin$1.Comments & Plugin$1.Exports & {
|
|
4990
5199
|
/**
|
|
4991
5200
|
* Casing convention for generated names.
|
|
4992
5201
|
*/
|
|
@@ -5064,10 +5273,10 @@ type Config$11 = Plugin$1.Name<'@pinia/colada'> & Plugin$1.Hooks & Plugin$1.Comm
|
|
|
5064
5273
|
meta: ((operation: IR$1.OperationObject) => Record<string, unknown>) | undefined;
|
|
5065
5274
|
};
|
|
5066
5275
|
};
|
|
5067
|
-
type PiniaColadaPlugin = DefinePlugin$1<UserConfig$
|
|
5276
|
+
type PiniaColadaPlugin = DefinePlugin$1<UserConfig$15, Config$12, never, PiniaColadaImports>;
|
|
5068
5277
|
//#endregion
|
|
5069
|
-
//#region src/plugins/@tanstack/query-core/
|
|
5070
|
-
declare function
|
|
5278
|
+
//#region src/plugins/@tanstack/query-core/imports.d.ts
|
|
5279
|
+
declare function tanStackQueryImports(plugin: PluginInstance$1): {
|
|
5071
5280
|
axios: {
|
|
5072
5281
|
AxiosError: any;
|
|
5073
5282
|
};
|
|
@@ -5081,10 +5290,10 @@ declare function tanStackQuerySymbols(plugin: PluginInstance$1): {
|
|
|
5081
5290
|
useQuery: any;
|
|
5082
5291
|
useQueryClient: any;
|
|
5083
5292
|
};
|
|
5084
|
-
type
|
|
5293
|
+
type TanStackQueryImports = ReturnType<typeof tanStackQueryImports>;
|
|
5085
5294
|
//#endregion
|
|
5086
5295
|
//#region src/plugins/@tanstack/angular-query-experimental/types.d.ts
|
|
5087
|
-
type UserConfig$
|
|
5296
|
+
type UserConfig$14 = Plugin$1.Name<'@tanstack/angular-query-experimental'> & Plugin$1.Hooks & Plugin$1.UserComments & Plugin$1.UserExports & {
|
|
5088
5297
|
/**
|
|
5089
5298
|
* Casing convention for generated names.
|
|
5090
5299
|
*
|
|
@@ -5456,7 +5665,7 @@ type UserConfig$13 = Plugin$1.Name<'@tanstack/angular-query-experimental'> & Plu
|
|
|
5456
5665
|
name?: NameTransformer;
|
|
5457
5666
|
};
|
|
5458
5667
|
};
|
|
5459
|
-
type Config$
|
|
5668
|
+
type Config$11 = Plugin$1.Name<'@tanstack/angular-query-experimental'> & Plugin$1.Hooks & Plugin$1.Comments & Plugin$1.Exports & {
|
|
5460
5669
|
/** Casing convention for generated names. */case: Casing; /** Resolved configuration for generated `getQueryData` helpers. */
|
|
5461
5670
|
getQueryData: NamingOptions & FeatureToggle; /** Resolved configuration for generated infinite query key helpers. */
|
|
5462
5671
|
infiniteQueryKeys: NamingOptions & FeatureToggle & {
|
|
@@ -5481,10 +5690,10 @@ type Config$10 = Plugin$1.Name<'@tanstack/angular-query-experimental'> & Plugin$
|
|
|
5481
5690
|
}; /** Resolved configuration for generated `setQueryData` helpers. */
|
|
5482
5691
|
setQueryData: NamingOptions & FeatureToggle;
|
|
5483
5692
|
};
|
|
5484
|
-
type TanStackAngularQueryPlugin = DefinePlugin$1<UserConfig$
|
|
5693
|
+
type TanStackAngularQueryPlugin = DefinePlugin$1<UserConfig$14, Config$11, never, TanStackQueryImports>;
|
|
5485
5694
|
//#endregion
|
|
5486
5695
|
//#region src/plugins/@tanstack/preact-query/types.d.ts
|
|
5487
|
-
type UserConfig$
|
|
5696
|
+
type UserConfig$13 = Plugin$1.Name<'@tanstack/preact-query'> & Plugin$1.Hooks & Plugin$1.UserComments & Plugin$1.UserExports & {
|
|
5488
5697
|
/**
|
|
5489
5698
|
* Casing convention for generated names.
|
|
5490
5699
|
*
|
|
@@ -5998,7 +6207,7 @@ type UserConfig$12 = Plugin$1.Name<'@tanstack/preact-query'> & Plugin$1.Hooks &
|
|
|
5998
6207
|
name?: NameTransformer;
|
|
5999
6208
|
};
|
|
6000
6209
|
};
|
|
6001
|
-
type Config$
|
|
6210
|
+
type Config$10 = Plugin$1.Name<'@tanstack/preact-query'> & Plugin$1.Hooks & Plugin$1.Comments & Plugin$1.Exports & {
|
|
6002
6211
|
/** Casing convention for generated names. */case: Casing; /** Resolved configuration for generated `getQueryData` helpers. */
|
|
6003
6212
|
getQueryData: NamingOptions & FeatureToggle; /** Resolved configuration for generated infinite query key helpers. */
|
|
6004
6213
|
infiniteQueryKeys: NamingOptions & FeatureToggle & {
|
|
@@ -6027,10 +6236,10 @@ type Config$9 = Plugin$1.Name<'@tanstack/preact-query'> & Plugin$1.Hooks & Plugi
|
|
|
6027
6236
|
useQuery: NamingOptions & FeatureToggle; /** Configuration for generated Preact Query hook variant of `setQueryData`. */
|
|
6028
6237
|
useSetQueryData: NamingOptions & FeatureToggle;
|
|
6029
6238
|
};
|
|
6030
|
-
type TanStackPreactQueryPlugin = DefinePlugin$1<UserConfig$
|
|
6239
|
+
type TanStackPreactQueryPlugin = DefinePlugin$1<UserConfig$13, Config$10, never, TanStackQueryImports>;
|
|
6031
6240
|
//#endregion
|
|
6032
6241
|
//#region src/plugins/@tanstack/react-query/types.d.ts
|
|
6033
|
-
type UserConfig$
|
|
6242
|
+
type UserConfig$12 = Plugin$1.Name<'@tanstack/react-query'> & Plugin$1.Hooks & Plugin$1.UserComments & Plugin$1.UserExports & {
|
|
6034
6243
|
/**
|
|
6035
6244
|
* Casing convention for generated names.
|
|
6036
6245
|
*
|
|
@@ -6544,7 +6753,7 @@ type UserConfig$11 = Plugin$1.Name<'@tanstack/react-query'> & Plugin$1.Hooks & P
|
|
|
6544
6753
|
name?: NameTransformer;
|
|
6545
6754
|
};
|
|
6546
6755
|
};
|
|
6547
|
-
type Config$
|
|
6756
|
+
type Config$9 = Plugin$1.Name<'@tanstack/react-query'> & Plugin$1.Hooks & Plugin$1.Comments & Plugin$1.Exports & {
|
|
6548
6757
|
/** Casing convention for generated names. */case: Casing; /** Resolved configuration for generated `getQueryData` helpers. */
|
|
6549
6758
|
getQueryData: NamingOptions & FeatureToggle; /** Resolved configuration for generated infinite query key helpers. */
|
|
6550
6759
|
infiniteQueryKeys: NamingOptions & FeatureToggle & {
|
|
@@ -6573,10 +6782,10 @@ type Config$8 = Plugin$1.Name<'@tanstack/react-query'> & Plugin$1.Hooks & Plugin
|
|
|
6573
6782
|
useQuery: NamingOptions & FeatureToggle; /** Configuration for generated React Query hook variant of `setQueryData`. */
|
|
6574
6783
|
useSetQueryData: NamingOptions & FeatureToggle;
|
|
6575
6784
|
};
|
|
6576
|
-
type TanStackReactQueryPlugin = DefinePlugin$1<UserConfig$
|
|
6785
|
+
type TanStackReactQueryPlugin = DefinePlugin$1<UserConfig$12, Config$9, never, TanStackQueryImports>;
|
|
6577
6786
|
//#endregion
|
|
6578
6787
|
//#region src/plugins/@tanstack/solid-query/types.d.ts
|
|
6579
|
-
type UserConfig$
|
|
6788
|
+
type UserConfig$11 = Plugin$1.Name<'@tanstack/solid-query'> & Plugin$1.Hooks & Plugin$1.UserComments & Plugin$1.UserExports & {
|
|
6580
6789
|
/**
|
|
6581
6790
|
* Casing convention for generated names.
|
|
6582
6791
|
*
|
|
@@ -6949,7 +7158,7 @@ type UserConfig$10 = Plugin$1.Name<'@tanstack/solid-query'> & Plugin$1.Hooks & P
|
|
|
6949
7158
|
name?: NameTransformer;
|
|
6950
7159
|
};
|
|
6951
7160
|
};
|
|
6952
|
-
type Config$
|
|
7161
|
+
type Config$8 = Plugin$1.Name<'@tanstack/solid-query'> & Plugin$1.Hooks & Plugin$1.Comments & Plugin$1.Exports & {
|
|
6953
7162
|
/** Casing convention for generated names. */case: Casing; /** Resolved configuration for generated `getQueryData` helpers. */
|
|
6954
7163
|
getQueryData: NamingOptions & FeatureToggle; /** Resolved configuration for generated infinite query key helpers. */
|
|
6955
7164
|
infiniteQueryKeys: NamingOptions & FeatureToggle & {
|
|
@@ -6974,10 +7183,10 @@ type Config$7 = Plugin$1.Name<'@tanstack/solid-query'> & Plugin$1.Hooks & Plugin
|
|
|
6974
7183
|
}; /** Resolved configuration for generated `setQueryData` helpers. */
|
|
6975
7184
|
setQueryData: NamingOptions & FeatureToggle;
|
|
6976
7185
|
};
|
|
6977
|
-
type TanStackSolidQueryPlugin = DefinePlugin$1<UserConfig$
|
|
7186
|
+
type TanStackSolidQueryPlugin = DefinePlugin$1<UserConfig$11, Config$8, never, TanStackQueryImports>;
|
|
6978
7187
|
//#endregion
|
|
6979
7188
|
//#region src/plugins/@tanstack/svelte-query/types.d.ts
|
|
6980
|
-
type UserConfig$
|
|
7189
|
+
type UserConfig$10 = Plugin$1.Name<'@tanstack/svelte-query'> & Plugin$1.Hooks & Plugin$1.UserComments & Plugin$1.UserExports & {
|
|
6981
7190
|
/**
|
|
6982
7191
|
* Casing convention for generated names.
|
|
6983
7192
|
*
|
|
@@ -7349,7 +7558,7 @@ type UserConfig$9 = Plugin$1.Name<'@tanstack/svelte-query'> & Plugin$1.Hooks & P
|
|
|
7349
7558
|
name?: NameTransformer;
|
|
7350
7559
|
};
|
|
7351
7560
|
};
|
|
7352
|
-
type Config$
|
|
7561
|
+
type Config$7 = Plugin$1.Name<'@tanstack/svelte-query'> & Plugin$1.Hooks & Plugin$1.Comments & Plugin$1.Exports & {
|
|
7353
7562
|
/** Casing convention for generated names. */case: Casing; /** Resolved configuration for generated `getQueryData` helpers. */
|
|
7354
7563
|
getQueryData: NamingOptions & FeatureToggle; /** Resolved configuration for generated infinite query key helpers. */
|
|
7355
7564
|
infiniteQueryKeys: NamingOptions & FeatureToggle & {
|
|
@@ -7374,10 +7583,10 @@ type Config$6 = Plugin$1.Name<'@tanstack/svelte-query'> & Plugin$1.Hooks & Plugi
|
|
|
7374
7583
|
}; /** Resolved configuration for generated `setQueryData` helpers. */
|
|
7375
7584
|
setQueryData: NamingOptions & FeatureToggle;
|
|
7376
7585
|
};
|
|
7377
|
-
type TanStackSvelteQueryPlugin = DefinePlugin$1<UserConfig$
|
|
7586
|
+
type TanStackSvelteQueryPlugin = DefinePlugin$1<UserConfig$10, Config$7, never, TanStackQueryImports>;
|
|
7378
7587
|
//#endregion
|
|
7379
7588
|
//#region src/plugins/@tanstack/vue-query/types.d.ts
|
|
7380
|
-
type UserConfig$
|
|
7589
|
+
type UserConfig$9 = Plugin$1.Name<'@tanstack/vue-query'> & Plugin$1.Hooks & Plugin$1.UserComments & Plugin$1.UserExports & {
|
|
7381
7590
|
/**
|
|
7382
7591
|
* Casing convention for generated names.
|
|
7383
7592
|
*
|
|
@@ -7752,7 +7961,7 @@ type UserConfig$8 = Plugin$1.Name<'@tanstack/vue-query'> & Plugin$1.Hooks & Plug
|
|
|
7752
7961
|
name?: NameTransformer;
|
|
7753
7962
|
};
|
|
7754
7963
|
};
|
|
7755
|
-
type Config$
|
|
7964
|
+
type Config$6 = Plugin$1.Name<'@tanstack/vue-query'> & Plugin$1.Hooks & Plugin$1.Comments & Plugin$1.Exports & {
|
|
7756
7965
|
/** Casing convention for generated names. */case: Casing; /** Resolved configuration for generated `getQueryData` helpers. */
|
|
7757
7966
|
getQueryData: NamingOptions & FeatureToggle; /** Resolved configuration for generated infinite query key helpers. */
|
|
7758
7967
|
infiniteQueryKeys: NamingOptions & FeatureToggle & {
|
|
@@ -7777,7 +7986,7 @@ type Config$5 = Plugin$1.Name<'@tanstack/vue-query'> & Plugin$1.Hooks & Plugin$1
|
|
|
7777
7986
|
}; /** Resolved configuration for generated `setQueryData` helpers. */
|
|
7778
7987
|
setQueryData: NamingOptions & FeatureToggle;
|
|
7779
7988
|
};
|
|
7780
|
-
type TanStackVueQueryPlugin = DefinePlugin$1<UserConfig$
|
|
7989
|
+
type TanStackVueQueryPlugin = DefinePlugin$1<UserConfig$9, Config$6, never, TanStackQueryImports>;
|
|
7781
7990
|
//#endregion
|
|
7782
7991
|
//#region src/plugins/arktype/shared/types.d.ts
|
|
7783
7992
|
type ValidatorArgs$2 = {
|
|
@@ -7794,8 +8003,14 @@ type IApi$2 = {
|
|
|
7794
8003
|
createResponseValidator: (args: ValidatorArgs$2) => ArrowFunc$2 | undefined;
|
|
7795
8004
|
};
|
|
7796
8005
|
//#endregion
|
|
8006
|
+
//#region src/plugins/arktype/imports.d.ts
|
|
8007
|
+
declare function arktypeImports(plugin: PluginInstance$1): {
|
|
8008
|
+
type: any;
|
|
8009
|
+
};
|
|
8010
|
+
type ArktypeImports = ReturnType<typeof arktypeImports>;
|
|
8011
|
+
//#endregion
|
|
7797
8012
|
//#region src/plugins/arktype/types.d.ts
|
|
7798
|
-
type UserConfig$
|
|
8013
|
+
type UserConfig$8 = Plugin$1.Name<'arktype'> & Plugin$1.Hooks & Plugin$1.UserComments & Plugin$1.UserExports & {
|
|
7799
8014
|
/**
|
|
7800
8015
|
* Casing convention for generated names.
|
|
7801
8016
|
*
|
|
@@ -8119,7 +8334,7 @@ type UserConfig$7 = Plugin$1.Name<'arktype'> & Plugin$1.Hooks & Plugin$1.UserCom
|
|
|
8119
8334
|
};
|
|
8120
8335
|
};
|
|
8121
8336
|
};
|
|
8122
|
-
type Config$
|
|
8337
|
+
type Config$5 = Plugin$1.Name<'arktype'> & Plugin$1.Hooks & Plugin$1.Comments & Plugin$1.Exports & {
|
|
8123
8338
|
/**
|
|
8124
8339
|
* Casing convention for generated names.
|
|
8125
8340
|
*/
|
|
@@ -8224,11 +8439,70 @@ type Config$4 = Plugin$1.Name<'arktype'> & Plugin$1.Hooks & Plugin$1.Comments &
|
|
|
8224
8439
|
};
|
|
8225
8440
|
};
|
|
8226
8441
|
};
|
|
8227
|
-
type ArktypePlugin = DefinePlugin$1<UserConfig$
|
|
8442
|
+
type ArktypePlugin = DefinePlugin$1<UserConfig$8, Config$5, IApi$2, ArktypeImports>;
|
|
8443
|
+
//#endregion
|
|
8444
|
+
//#region src/plugins/fastify/imports.d.ts
|
|
8445
|
+
declare function fastifyImports(plugin: PluginInstance$1): {
|
|
8446
|
+
RouteHandler: any;
|
|
8447
|
+
};
|
|
8448
|
+
type FastifyImports = ReturnType<typeof fastifyImports>;
|
|
8228
8449
|
//#endregion
|
|
8229
8450
|
//#region src/plugins/fastify/types.d.ts
|
|
8230
|
-
type UserConfig$
|
|
8231
|
-
type FastifyPlugin = DefinePlugin$1<UserConfig$
|
|
8451
|
+
type UserConfig$7 = Plugin$1.Name<'fastify'> & Plugin$1.Hooks & Plugin$1.UserExports;
|
|
8452
|
+
type FastifyPlugin = DefinePlugin$1<UserConfig$7, UserConfig$7, never, FastifyImports>;
|
|
8453
|
+
//#endregion
|
|
8454
|
+
//#region src/plugins/msw/imports.d.ts
|
|
8455
|
+
declare function mswImports(plugin: PluginInstance$1): {
|
|
8456
|
+
DefaultBodyType: any;
|
|
8457
|
+
HttpHandler: any;
|
|
8458
|
+
HttpResponse: any;
|
|
8459
|
+
HttpResponseResolver: any;
|
|
8460
|
+
RequestHandlerOptions: any;
|
|
8461
|
+
http: any;
|
|
8462
|
+
};
|
|
8463
|
+
type MswImports = ReturnType<typeof mswImports>;
|
|
8464
|
+
//#endregion
|
|
8465
|
+
//#region src/plugins/msw/types.d.ts
|
|
8466
|
+
type UserConfig$6 = Plugin$1.Name<'msw'> & Plugin$1.Hooks & Plugin$1.UserComments & Plugin$1.UserExports & {
|
|
8467
|
+
/**
|
|
8468
|
+
* Set a default base URL when creating the handlers? You can set `baseUrl`
|
|
8469
|
+
* to a string which will be used as the base URL. If your input defines
|
|
8470
|
+
* server(s), you can set `baseUrl` to a number to pick a specific server
|
|
8471
|
+
* to use as the base URL. You can disable setting the base URL by setting
|
|
8472
|
+
* `baseUrl` to `false`. By default, `baseUrl` is `'*'`, which matches all
|
|
8473
|
+
* URLs.
|
|
8474
|
+
*
|
|
8475
|
+
* If the matched URL contains template literals, it will be ignored.
|
|
8476
|
+
*
|
|
8477
|
+
* @default '*'
|
|
8478
|
+
*/
|
|
8479
|
+
baseUrl?: string | number | boolean;
|
|
8480
|
+
/**
|
|
8481
|
+
* Behavior when a response cannot be generated (no response defined
|
|
8482
|
+
* in the specification, or configured value sources cannot produce a value).
|
|
8483
|
+
*
|
|
8484
|
+
* - `'error'` - throw an error (fail fast)
|
|
8485
|
+
* - `'passthrough'` - let the request pass through to the network
|
|
8486
|
+
*
|
|
8487
|
+
* @default 'error'
|
|
8488
|
+
*/
|
|
8489
|
+
responseFallback?: 'error' | 'passthrough';
|
|
8490
|
+
/**
|
|
8491
|
+
* Where to pull mock data from. When an array, earlier entries take
|
|
8492
|
+
* precedence.
|
|
8493
|
+
*
|
|
8494
|
+
* - `'example'` - example values defined in the input
|
|
8495
|
+
*
|
|
8496
|
+
* @default ['@hey-api/examples']
|
|
8497
|
+
*/
|
|
8498
|
+
source?: MaybeArray<PluginSourceNames>;
|
|
8499
|
+
};
|
|
8500
|
+
type Config$4 = Plugin$1.Name<'msw'> & Plugin$1.Hooks & Plugin$1.Comments & Plugin$1.Exports & {
|
|
8501
|
+
/** Set a default base URL when creating the handlers. */baseUrl: string | number | boolean; /** Behavior when a response cannot be generated. */
|
|
8502
|
+
responseFallback: 'error' | 'passthrough'; /** Where to pull mock data from. */
|
|
8503
|
+
source: ReadonlyArray<PluginSourceNames>;
|
|
8504
|
+
};
|
|
8505
|
+
type MswPlugin = DefinePlugin$1<UserConfig$6, Config$4, never, MswImports>;
|
|
8232
8506
|
//#endregion
|
|
8233
8507
|
//#region src/plugins/nestjs/types.d.ts
|
|
8234
8508
|
type UserConfig$5 = Plugin$1.Name<'nestjs'> & Plugin$1.Hooks & Plugin$1.UserExports;
|
|
@@ -8336,6 +8610,14 @@ interface ContractsConfig {
|
|
|
8336
8610
|
strategyDefaultTag: string;
|
|
8337
8611
|
}
|
|
8338
8612
|
//#endregion
|
|
8613
|
+
//#region src/plugins/orpc/imports.d.ts
|
|
8614
|
+
declare function orpcImports(plugin: PluginInstance$1): {
|
|
8615
|
+
contract: {
|
|
8616
|
+
oc: any;
|
|
8617
|
+
};
|
|
8618
|
+
};
|
|
8619
|
+
type OrpcImports = ReturnType<typeof orpcImports>;
|
|
8620
|
+
//#endregion
|
|
8339
8621
|
//#region src/plugins/orpc/types.d.ts
|
|
8340
8622
|
type UserConfig$4 = Plugin$1.Name<'orpc'> & Plugin$1.Hooks & Plugin$1.UserExports & {
|
|
8341
8623
|
/**
|
|
@@ -8385,7 +8667,13 @@ type Config$3 = Plugin$1.Name<'orpc'> & Plugin$1.Hooks & Plugin$1.Exports & {
|
|
|
8385
8667
|
output: PluginValidatorNames | false;
|
|
8386
8668
|
};
|
|
8387
8669
|
};
|
|
8388
|
-
type OrpcPlugin = DefinePlugin$1<UserConfig$4, Config$3>;
|
|
8670
|
+
type OrpcPlugin = DefinePlugin$1<UserConfig$4, Config$3, never, OrpcImports>;
|
|
8671
|
+
//#endregion
|
|
8672
|
+
//#region src/plugins/swr/imports.d.ts
|
|
8673
|
+
declare function swrImports(plugin: PluginInstance$1): {
|
|
8674
|
+
useSWR: any;
|
|
8675
|
+
};
|
|
8676
|
+
type SwrImports = ReturnType<typeof swrImports>;
|
|
8389
8677
|
//#endregion
|
|
8390
8678
|
//#region src/plugins/swr/types.d.ts
|
|
8391
8679
|
type UserConfig$3 = Plugin$1.Name<'swr'> & Plugin$1.Hooks & Plugin$1.UserComments & Plugin$1.UserExports & {
|
|
@@ -8825,7 +9113,7 @@ type Config$2 = Plugin$1.Name<'swr'> & Plugin$1.Hooks & Plugin$1.Comments & Plug
|
|
|
8825
9113
|
*/
|
|
8826
9114
|
useSwr: NamingOptions & FeatureToggle;
|
|
8827
9115
|
};
|
|
8828
|
-
type SwrPlugin = DefinePlugin$1<UserConfig$3, Config$2>;
|
|
9116
|
+
type SwrPlugin = DefinePlugin$1<UserConfig$3, Config$2, never, SwrImports>;
|
|
8829
9117
|
//#endregion
|
|
8830
9118
|
//#region src/plugins/valibot/shared/pipes.d.ts
|
|
8831
9119
|
type Pipe = ReturnType<typeof $.call | typeof $.expr>;
|
|
@@ -8894,6 +9182,12 @@ type IApi$1 = {
|
|
|
8894
9182
|
createResponseValidator: (ctx: ValidatorArgs$1) => ArrowFunc$1 | undefined;
|
|
8895
9183
|
};
|
|
8896
9184
|
//#endregion
|
|
9185
|
+
//#region src/plugins/valibot/imports.d.ts
|
|
9186
|
+
declare function valibotImports(plugin: PluginInstance$1): {
|
|
9187
|
+
v: any;
|
|
9188
|
+
};
|
|
9189
|
+
type ValibotImports = ReturnType<typeof valibotImports>;
|
|
9190
|
+
//#endregion
|
|
8897
9191
|
//#region src/plugins/shared/utils/coerce.d.ts
|
|
8898
9192
|
type MaybeBigInt = (value: unknown, format: string | undefined) => ReturnType<typeof $.fromValue>;
|
|
8899
9193
|
type ShouldCoerceToBigInt = (format: string | undefined) => boolean;
|
|
@@ -9064,6 +9358,9 @@ interface BaseContext$1 extends DollarTsDsl, SchemaVisitorContext<ValibotPlugin[
|
|
|
9064
9358
|
* Provides access to commonly used symbols within the plugin.
|
|
9065
9359
|
*/
|
|
9066
9360
|
symbols: {
|
|
9361
|
+
/**
|
|
9362
|
+
* @deprecated The `v` symbol is now available via `plugin.imports.v` and should be accessed from there.
|
|
9363
|
+
*/
|
|
9067
9364
|
v: Symbol;
|
|
9068
9365
|
};
|
|
9069
9366
|
}
|
|
@@ -9253,12 +9550,6 @@ interface VoidResolverContext$1 extends BaseContext$1, Plugin$1.ResolverNodes<{
|
|
|
9253
9550
|
schema: SchemaWithType<'void'>;
|
|
9254
9551
|
}
|
|
9255
9552
|
//#endregion
|
|
9256
|
-
//#region src/plugins/valibot/symbols.d.ts
|
|
9257
|
-
declare function valibotSymbols(plugin: PluginInstance$1): {
|
|
9258
|
-
v: any;
|
|
9259
|
-
};
|
|
9260
|
-
type ValibotSymbols = ReturnType<typeof valibotSymbols>;
|
|
9261
|
-
//#endregion
|
|
9262
9553
|
//#region src/plugins/valibot/types.d.ts
|
|
9263
9554
|
type UserConfig$2 = Plugin$1.Name<'valibot'> & Plugin$1.Hooks & Plugin$1.UserComments & Plugin$1.UserExports & ValibotResolvers & {
|
|
9264
9555
|
/**
|
|
@@ -9584,7 +9875,7 @@ type Config$1 = Plugin$1.Name<'valibot'> & Plugin$1.Hooks & Plugin$1.Comments &
|
|
|
9584
9875
|
responses: NamingOptions & FeatureToggle; /** Configuration for webhook-specific Valibot schemas. */
|
|
9585
9876
|
webhooks: NamingOptions & FeatureToggle;
|
|
9586
9877
|
};
|
|
9587
|
-
type ValibotPlugin = DefinePlugin$1<UserConfig$2, Config$1, IApi$1,
|
|
9878
|
+
type ValibotPlugin = DefinePlugin$1<UserConfig$2, Config$1, IApi$1, ValibotImports>;
|
|
9588
9879
|
//#endregion
|
|
9589
9880
|
//#region src/plugins/zod/shared/chain.d.ts
|
|
9590
9881
|
type Chain = ReturnType<typeof $.call | typeof $.expr>;
|
|
@@ -9653,6 +9944,12 @@ type IApi = {
|
|
|
9653
9944
|
createResponseValidator: (ctx: ValidatorArgs) => ArrowFunc | undefined;
|
|
9654
9945
|
};
|
|
9655
9946
|
//#endregion
|
|
9947
|
+
//#region src/plugins/zod/imports.d.ts
|
|
9948
|
+
declare function zodImports(plugin: PluginInstance$1): {
|
|
9949
|
+
z: any;
|
|
9950
|
+
};
|
|
9951
|
+
type ZodImports = ReturnType<typeof zodImports>;
|
|
9952
|
+
//#endregion
|
|
9656
9953
|
//#region src/plugins/zod/resolvers.d.ts
|
|
9657
9954
|
type ZodResolvers = Plugin$1.Resolvers<{
|
|
9658
9955
|
/**
|
|
@@ -9809,6 +10106,9 @@ interface BaseContext extends DollarTsDsl, SchemaVisitorContext<ZodPlugin['Insta
|
|
|
9809
10106
|
* Provides access to commonly used symbols within the plugin.
|
|
9810
10107
|
*/
|
|
9811
10108
|
symbols: {
|
|
10109
|
+
/**
|
|
10110
|
+
* @deprecated The `z` symbol is now available via `plugin.imports.z` and should be accessed from there.
|
|
10111
|
+
*/
|
|
9812
10112
|
z: Symbol;
|
|
9813
10113
|
};
|
|
9814
10114
|
}
|
|
@@ -10089,13 +10389,8 @@ interface VoidResolverContext extends BaseContext, Plugin$1.ResolverNodes<{
|
|
|
10089
10389
|
schema: SchemaWithType<'void'>;
|
|
10090
10390
|
}
|
|
10091
10391
|
//#endregion
|
|
10092
|
-
//#region src/plugins/zod/symbols.d.ts
|
|
10093
|
-
declare function zodSymbols(plugin: PluginInstance$1): {
|
|
10094
|
-
z: any;
|
|
10095
|
-
};
|
|
10096
|
-
type ZodSymbols = ReturnType<typeof zodSymbols>;
|
|
10097
|
-
//#endregion
|
|
10098
10392
|
//#region src/plugins/zod/types.d.ts
|
|
10393
|
+
type ZodCompatibilityVersion = 3 | 4 | 'mini';
|
|
10099
10394
|
type UserConfig$1 = Plugin$1.Name<'zod'> & Plugin$1.Hooks & Plugin$1.UserComments & Plugin$1.UserExports & ZodResolvers & {
|
|
10100
10395
|
/**
|
|
10101
10396
|
* Casing convention for generated names.
|
|
@@ -10113,7 +10408,7 @@ type UserConfig$1 = Plugin$1.Name<'zod'> & Plugin$1.Hooks & Plugin$1.UserComment
|
|
|
10113
10408
|
*
|
|
10114
10409
|
* @default 4
|
|
10115
10410
|
*/
|
|
10116
|
-
compatibilityVersion?:
|
|
10411
|
+
compatibilityVersion?: ZodCompatibilityVersion;
|
|
10117
10412
|
/**
|
|
10118
10413
|
* Configuration for date handling in generated Zod schemas.
|
|
10119
10414
|
*
|
|
@@ -11293,7 +11588,7 @@ type UserConfig$1 = Plugin$1.Name<'zod'> & Plugin$1.Hooks & Plugin$1.UserComment
|
|
|
11293
11588
|
};
|
|
11294
11589
|
type Config = Plugin$1.Name<'zod'> & Plugin$1.Hooks & Plugin$1.Comments & Plugin$1.Exports & ZodResolvers & {
|
|
11295
11590
|
/** Casing convention for generated names. */case: Casing; /** The compatibility version to target for generated output. */
|
|
11296
|
-
compatibilityVersion:
|
|
11591
|
+
compatibilityVersion: ZodCompatibilityVersion; /** Configuration for date handling in generated Zod schemas. */
|
|
11297
11592
|
dates: {
|
|
11298
11593
|
/** Whether to allow unqualified (timezone-less) datetimes. */local: boolean; /** Whether to include timezone offset information when handling dates. */
|
|
11299
11594
|
offset: boolean;
|
|
@@ -11326,7 +11621,7 @@ type Config = Plugin$1.Name<'zod'> & Plugin$1.Hooks & Plugin$1.Comments & Plugin
|
|
|
11326
11621
|
}; /** Configuration for webhook-specific Zod schemas. */
|
|
11327
11622
|
webhooks: NamingOptions & FeatureToggle & TypeOptions;
|
|
11328
11623
|
};
|
|
11329
|
-
type ZodPlugin = DefinePlugin$1<UserConfig$1, Config, IApi,
|
|
11624
|
+
type ZodPlugin = DefinePlugin$1<UserConfig$1, Config, IApi, ZodImports>;
|
|
11330
11625
|
//#endregion
|
|
11331
11626
|
//#region src/generate.d.ts
|
|
11332
11627
|
/**
|
|
@@ -11336,12 +11631,6 @@ type ZodPlugin = DefinePlugin$1<UserConfig$1, Config, IApi, ZodSymbols>;
|
|
|
11336
11631
|
*/
|
|
11337
11632
|
declare function createClient(userConfig?: LazyOrAsync<MaybeArray<UserConfig>>, logger?: any): Promise<ReadonlyArray<Context>>;
|
|
11338
11633
|
//#endregion
|
|
11339
|
-
//#region src/config/plugins.d.ts
|
|
11340
|
-
/**
|
|
11341
|
-
* Default plugins used to generate artifacts if plugins aren't specified.
|
|
11342
|
-
*/
|
|
11343
|
-
declare const defaultPlugins: readonly ["@hey-api/typescript", "@hey-api/sdk"];
|
|
11344
|
-
//#endregion
|
|
11345
11634
|
//#region src/plugins/@hey-api/client-core/config.d.ts
|
|
11346
11635
|
declare const clientDefaultConfig: {
|
|
11347
11636
|
readonly baseUrl: true;
|
|
@@ -11358,6 +11647,12 @@ declare function clientPluginHandler({
|
|
|
11358
11647
|
plugin
|
|
11359
11648
|
}: Parameters<PluginHandler>[0]): void;
|
|
11360
11649
|
//#endregion
|
|
11650
|
+
//#region src/plugins/config.d.ts
|
|
11651
|
+
/**
|
|
11652
|
+
* Default plugins used to generate artifacts if plugins aren't specified.
|
|
11653
|
+
*/
|
|
11654
|
+
declare const defaultPlugins: readonly ["@hey-api/typescript", "@hey-api/sdk"];
|
|
11655
|
+
//#endregion
|
|
11361
11656
|
//#region src/index.d.ts
|
|
11362
11657
|
declare module '@hey-api/codegen-core' {
|
|
11363
11658
|
interface ProjectMeta {
|
|
@@ -11371,23 +11666,17 @@ declare module '@hey-api/codegen-core' {
|
|
|
11371
11666
|
importFileExtension?: AnyString | null;
|
|
11372
11667
|
}
|
|
11373
11668
|
interface SymbolMeta {
|
|
11669
|
+
artifact?: 'angular' | 'arktype' | 'fastify' | 'json-schema' | 'msw' | 'sdk' | 'typescript' | 'valibot' | 'zod' | AnyString;
|
|
11374
11670
|
category?: 'client' | 'external' | 'hook' | 'schema' | 'sdk' | 'transform' | 'type' | 'utility' | AnyString;
|
|
11375
|
-
/**
|
|
11376
|
-
* Path to the resource this symbol represents.
|
|
11377
|
-
*/
|
|
11671
|
+
/** Path to the resource this symbol represents. */
|
|
11378
11672
|
path?: ReadonlyArray<string | number>;
|
|
11379
|
-
/**
|
|
11380
|
-
|
|
11381
|
-
*/
|
|
11382
|
-
pluginName?: string;
|
|
11673
|
+
/** Name of the plugin that registered this symbol. */
|
|
11674
|
+
plugin?: string;
|
|
11383
11675
|
resource?: 'client' | 'definition' | 'operation' | 'webhook' | AnyString;
|
|
11384
11676
|
resourceId?: string;
|
|
11385
11677
|
role?: 'data' | 'error' | 'errors' | 'options' | 'response' | 'responses' | AnyString;
|
|
11386
|
-
/**
|
|
11387
|
-
* Tags associated with this symbol.
|
|
11388
|
-
*/
|
|
11678
|
+
/** Tags associated with this symbol. */
|
|
11389
11679
|
tags?: ReadonlyArray<string>;
|
|
11390
|
-
tool?: 'angular' | 'arktype' | 'fastify' | 'json-schema' | 'sdk' | 'typescript' | 'valibot' | 'zod' | AnyString;
|
|
11391
11680
|
variant?: 'container' | AnyString;
|
|
11392
11681
|
}
|
|
11393
11682
|
}
|
|
@@ -11402,6 +11691,7 @@ declare module '@hey-api/shared' {
|
|
|
11402
11691
|
'@hey-api/client-next': Plugins.HeyApiClientNext.Types['Types'];
|
|
11403
11692
|
'@hey-api/client-nuxt': Plugins.HeyApiClientNuxt.Types['Types'];
|
|
11404
11693
|
'@hey-api/client-ofetch': Plugins.HeyApiClientOfetch.Types['Types'];
|
|
11694
|
+
'@hey-api/examples': Plugins.HeyApiExamples.Types['Types'];
|
|
11405
11695
|
'@hey-api/schemas': Plugins.HeyApiSchemas.Types['Types'];
|
|
11406
11696
|
'@hey-api/sdk': Plugins.HeyApiSdk.Types['Types'];
|
|
11407
11697
|
'@hey-api/transformers': Plugins.HeyApiTransformers.Types['Types'];
|
|
@@ -11415,6 +11705,7 @@ declare module '@hey-api/shared' {
|
|
|
11415
11705
|
'@tanstack/vue-query': Plugins.TanStackVueQuery.Types['Types'];
|
|
11416
11706
|
arktype: Plugins.Arktype.Types['Types'];
|
|
11417
11707
|
fastify: Plugins.Fastify.Types['Types'];
|
|
11708
|
+
msw: Plugins.Msw.Types['Types'];
|
|
11418
11709
|
nestjs: Plugins.NestJs.Types['Types'];
|
|
11419
11710
|
orpc: Plugins.Orpc.Types['Types'];
|
|
11420
11711
|
swr: Plugins.Swr.Types['Types'];
|
|
@@ -11438,8 +11729,8 @@ declare namespace Plugins {
|
|
|
11438
11729
|
type Types = ArktypePlugin;
|
|
11439
11730
|
}
|
|
11440
11731
|
namespace FakerJsFaker {
|
|
11732
|
+
type Resolvers = Required<FakerJsFakerResolvers>['$resolvers'];
|
|
11441
11733
|
type Types = FakerJsFakerPlugin;
|
|
11442
|
-
type Resolvers = Required<FakerJsFakerResolvers>['~resolvers'];
|
|
11443
11734
|
}
|
|
11444
11735
|
namespace Fastify {
|
|
11445
11736
|
type Types = FastifyPlugin;
|
|
@@ -11472,6 +11763,9 @@ declare namespace Plugins {
|
|
|
11472
11763
|
type Client = Client$2;
|
|
11473
11764
|
type Types = HeyApiClientOfetchPlugin;
|
|
11474
11765
|
}
|
|
11766
|
+
namespace HeyApiExamples {
|
|
11767
|
+
type Types = HeyApiExamplesPlugin;
|
|
11768
|
+
}
|
|
11475
11769
|
namespace HeyApiSchemas {
|
|
11476
11770
|
type Types = HeyApiSchemasPlugin;
|
|
11477
11771
|
}
|
|
@@ -11482,9 +11776,12 @@ declare namespace Plugins {
|
|
|
11482
11776
|
type Types = HeyApiTransformersPlugin;
|
|
11483
11777
|
}
|
|
11484
11778
|
namespace HeyApiTypeScript {
|
|
11485
|
-
type Resolvers = Required<HeyApiTypeScriptResolvers>['
|
|
11779
|
+
type Resolvers = Required<HeyApiTypeScriptResolvers>['$resolvers'];
|
|
11486
11780
|
type Types = HeyApiTypeScriptPlugin;
|
|
11487
11781
|
}
|
|
11782
|
+
namespace Msw {
|
|
11783
|
+
type Types = MswPlugin;
|
|
11784
|
+
}
|
|
11488
11785
|
namespace NestJs {
|
|
11489
11786
|
type Types = NestJsPlugin;
|
|
11490
11787
|
}
|
|
@@ -11516,11 +11813,11 @@ declare namespace Plugins {
|
|
|
11516
11813
|
type Types = TanStackVueQueryPlugin;
|
|
11517
11814
|
}
|
|
11518
11815
|
namespace Valibot {
|
|
11519
|
-
type Resolvers = Required<ValibotResolvers>['
|
|
11816
|
+
type Resolvers = Required<ValibotResolvers>['$resolvers'];
|
|
11520
11817
|
type Types = ValibotPlugin;
|
|
11521
11818
|
}
|
|
11522
11819
|
namespace Zod {
|
|
11523
|
-
type Resolvers = Required<ZodResolvers>['
|
|
11820
|
+
type Resolvers = Required<ZodResolvers>['$resolvers'];
|
|
11524
11821
|
type Types = ZodPlugin;
|
|
11525
11822
|
}
|
|
11526
11823
|
}
|
|
@@ -11539,5 +11836,5 @@ type NuxtClient = Client$3;
|
|
|
11539
11836
|
/** @deprecated Use `Plugins.HeyApiClientOfetch.Client` instead. */
|
|
11540
11837
|
type OfetchClient = Client$2;
|
|
11541
11838
|
//#endregion
|
|
11542
|
-
export { $, AngularClient, type AnyPluginName, AxiosClient, type CallArgs, type Client, type Coercer, type CoercerMap, type ConfigTable, type DefinePlugin, DollarTsDsl, type ExampleOptions, type ExpressionTransformer, FetchClient, type IR, KyClient, Logger, type MaybeTsDsl, NextClient, NuxtClient, OfetchClient, type OpenApi, type OpenApiMetaObject, type OpenApiOperationObject, type OpenApiParameterObject, type OpenApiRequestBodyObject, type OpenApiResponseObject, type OpenApiSchemaObject, OperationPath, OperationStrategy, type Plugin, type PluginContext, type PluginInstance, Plugins, type TableDirectives, TsDsl, TsDslContext, TypeScriptRenderer, type TypeTransformer, type TypeTsDsl, type UserConfig, applyNaming, clientDefaultConfig, clientDefaultMeta, clientPluginHandler, coerce, createClient, ctx, defaultPaginationKeywords, defaultPlugins, defineConfig, defineConfigTable, definePluginConfig, keywords, regexp, reserved, toCase, utils };
|
|
11839
|
+
export { $, AngularClient, type AnyPluginName, AxiosClient, type CallArgs, type Client, type Coercer, type CoercerMap, type ConfigTable, type DefinePlugin, DollarTsDsl, type ExampleOptions, type ExpressionTransformer, FetchClient, type IR, KyClient, Logger, type MaybeTsDsl, NextClient, NuxtClient, OfetchClient, type OpenApi, type OpenApiMetaObject, type OpenApiOperationObject, type OpenApiParameterObject, type OpenApiRequestBodyObject, type OpenApiResponseObject, type OpenApiSchemaObject, OperationPath, OperationStrategy, type Plugin, type PluginContext, type PluginInstance, Plugins, type TableDirectives, TsDsl, TsDslContext, TypeScriptRenderer, type TypeTransformer, type TypeTsDsl, type UserConfig, applyNaming, clientDefaultConfig, clientDefaultMeta, clientPluginHandler, coerce, createClient, ctx, defaultPaginationKeywords, defaultPlugins, defineConfig, defineConfigTable, definePluginConfig, keywords, plugins_d_exports as plugins, regexp, reserved, toCase, utils };
|
|
11543
11840
|
//# sourceMappingURL=index.d.mts.map
|