@hey-api/openapi-ts 0.97.1 → 0.97.2
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 +16 -8
- package/dist/clients/angular/client.ts +1 -4
- package/dist/clients/angular/utils.ts +7 -8
- package/dist/clients/axios/client.ts +1 -4
- package/dist/clients/axios/utils.ts +6 -8
- package/dist/clients/fetch/client.ts +1 -4
- package/dist/clients/fetch/utils.ts +6 -8
- package/dist/clients/ky/client.ts +1 -4
- package/dist/clients/ky/utils.ts +6 -8
- package/dist/clients/next/client.ts +1 -4
- package/dist/clients/next/utils.ts +6 -8
- package/dist/clients/nuxt/client.ts +7 -6
- package/dist/clients/nuxt/utils.ts +6 -8
- package/dist/clients/ofetch/client.ts +1 -4
- package/dist/clients/ofetch/utils.ts +6 -8
- package/dist/index.d.mts +312 -101
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/{init-Bi6_Uyy_.mjs → init-CitwzRmB.mjs} +747 -353
- package/dist/init-CitwzRmB.mjs.map +1 -0
- package/dist/internal.mjs +1 -1
- package/dist/run.mjs +2 -2
- package/dist/{src-CSz9FXkH.mjs → src-DEol_iHK.mjs} +2 -2
- package/dist/{src-CSz9FXkH.mjs.map → src-DEol_iHK.mjs.map} +1 -1
- package/package.json +6 -6
- package/dist/init-Bi6_Uyy_.mjs.map +0 -1
package/dist/index.d.mts
CHANGED
|
@@ -1253,6 +1253,7 @@ type LazyThunk<T extends ts.Node> = (ctx: TsDslContext) => TsDsl<T>;
|
|
|
1253
1253
|
declare class LazyTsDsl<T extends ts.Node = ts.Node> extends TsDsl<T> {
|
|
1254
1254
|
readonly '~dsl' = "LazyTsDsl";
|
|
1255
1255
|
private _thunk;
|
|
1256
|
+
private _result?;
|
|
1256
1257
|
constructor(thunk: LazyThunk<T>);
|
|
1257
1258
|
analyze(ctx: AnalysisContext): void;
|
|
1258
1259
|
toResult(): TsDsl<T>;
|
|
@@ -1479,6 +1480,7 @@ type FuncMode = 'arrow' | 'decl' | 'expr';
|
|
|
1479
1480
|
declare const Mixed$28: MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<abstract new () => TsDsl<ts.ArrowFunction>, TypeReturnsMethods>, TypeParamsMethods>, StaticMethods>, PublicMethods>, ProtectedMethods>, PrivateMethods>, ParamMethods>, ExportMethods>, DocMethods>, DoMethods>, DecoratorMethods>, AsyncMethods>, AsMethods>, AbstractMethods>;
|
|
1480
1481
|
declare class ImplFuncTsDsl<M extends FuncMode = 'arrow'> extends Mixed$28 {
|
|
1481
1482
|
readonly '~dsl' = "FuncTsDsl";
|
|
1483
|
+
readonly '~mode': M;
|
|
1482
1484
|
readonly nameSanitizer: (name: string) => string;
|
|
1483
1485
|
protected mode?: FuncMode;
|
|
1484
1486
|
constructor();
|
|
@@ -3674,7 +3676,7 @@ type HeyApiSchemasPlugin = DefinePlugin$1<UserConfig$18, UserConfig$18>;
|
|
|
3674
3676
|
//#endregion
|
|
3675
3677
|
//#region src/plugins/types.d.ts
|
|
3676
3678
|
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';
|
|
3677
|
-
type PluginTransformerNames = '@hey-api/transformers';
|
|
3679
|
+
type PluginTransformerNames = '@hey-api/transformers' | 'valibot' | 'zod';
|
|
3678
3680
|
type PluginValidatorNames = 'arktype' | 'valibot' | 'zod';
|
|
3679
3681
|
//#endregion
|
|
3680
3682
|
//#region src/plugins/@hey-api/sdk/examples/types.d.ts
|
|
@@ -3914,13 +3916,26 @@ type UserConfig$17 = Plugin$1.Name<'@hey-api/sdk'> & Plugin$1.Hooks & Plugin$1.U
|
|
|
3914
3916
|
* convert for example ISO strings into Date objects. However, transformation
|
|
3915
3917
|
* adds runtime overhead, so it's not recommended to use unless necessary.
|
|
3916
3918
|
*
|
|
3917
|
-
* You can customize the
|
|
3918
|
-
*
|
|
3919
|
-
*
|
|
3919
|
+
* You can customize the transformer output through its plugin. You can also
|
|
3920
|
+
* set `transformer` to `true` to automatically choose the transformer from your
|
|
3921
|
+
* defined plugins.
|
|
3922
|
+
*
|
|
3923
|
+
* Ensure you have declared the selected library as a dependency to avoid
|
|
3924
|
+
* errors.
|
|
3920
3925
|
*
|
|
3921
3926
|
* @default false
|
|
3922
3927
|
*/
|
|
3923
|
-
transformer?: PluginTransformerNames | boolean
|
|
3928
|
+
transformer?: PluginTransformerNames | boolean | {
|
|
3929
|
+
/**
|
|
3930
|
+
* Transform response data before returning.
|
|
3931
|
+
*
|
|
3932
|
+
* Can be a transformer plugin name or boolean (true to auto-select, false
|
|
3933
|
+
* to disable).
|
|
3934
|
+
*
|
|
3935
|
+
* @default false
|
|
3936
|
+
*/
|
|
3937
|
+
response?: PluginTransformerNames | boolean;
|
|
3938
|
+
};
|
|
3924
3939
|
/**
|
|
3925
3940
|
* Validate request and/or response data against schema before returning.
|
|
3926
3941
|
* This is useful if you want to ensure the request and/or response conforms
|
|
@@ -4022,38 +4037,10 @@ type UserConfig$17 = Plugin$1.Name<'@hey-api/sdk'> & Plugin$1.Hooks & Plugin$1.U
|
|
|
4022
4037
|
response?: 'body' | 'response';
|
|
4023
4038
|
};
|
|
4024
4039
|
type Config$14 = Plugin$1.Name<'@hey-api/sdk'> & Plugin$1.Hooks & Plugin$1.Comments & Plugin$1.Exports & {
|
|
4025
|
-
/**
|
|
4026
|
-
* Should the generated functions contain auth mechanisms? You may want to
|
|
4027
|
-
* disable this option if you're handling auth yourself or defining it
|
|
4028
|
-
* globally on the client and want to reduce the size of generated code.
|
|
4029
|
-
*
|
|
4030
|
-
* @default true
|
|
4031
|
-
*/
|
|
4032
|
-
auth: boolean;
|
|
4033
|
-
/**
|
|
4034
|
-
* Use an internal client instance to send HTTP requests? This is useful if
|
|
4035
|
-
* you don't want to manually pass the client to each SDK function.
|
|
4036
|
-
*
|
|
4037
|
-
* You can customize the selected client output through its plugin. You can
|
|
4038
|
-
* also set `client` to `true` to automatically choose the client from your
|
|
4039
|
-
* defined plugins. If we can't detect a client plugin when using `true`, we
|
|
4040
|
-
* will default to `@hey-api/client-fetch`.
|
|
4041
|
-
*
|
|
4042
|
-
* @default true
|
|
4043
|
-
*/
|
|
4040
|
+
/** Should the generated functions contain auth mechanisms? */auth: boolean; /** Use an internal client instance to send HTTP requests? */
|
|
4044
4041
|
client: PluginClientNames | false; /** Configuration for generating SDK code examples. */
|
|
4045
4042
|
examples: ExamplesConfig; /** Define the structure of generated SDK operations. */
|
|
4046
|
-
operations: OperationsConfig;
|
|
4047
|
-
/**
|
|
4048
|
-
* Define how request parameters are structured in generated SDK methods.
|
|
4049
|
-
*
|
|
4050
|
-
* - `'flat'` merges parameters into a single object.
|
|
4051
|
-
* - `'grouped'` separates parameters by transport layer.
|
|
4052
|
-
*
|
|
4053
|
-
* Use `'flat'` for simpler calls or `'grouped'` for stricter typing and code clarity.
|
|
4054
|
-
*
|
|
4055
|
-
* @default 'grouped'
|
|
4056
|
-
*/
|
|
4043
|
+
operations: OperationsConfig; /** Define how request parameters are structured in generated SDK methods. */
|
|
4057
4044
|
paramsStructure: 'flat' | 'grouped';
|
|
4058
4045
|
/**
|
|
4059
4046
|
* **This feature works only with the Fetch client**
|
|
@@ -4062,37 +4049,12 @@ type Config$14 = Plugin$1.Name<'@hey-api/sdk'> & Plugin$1.Hooks & Plugin$1.Comme
|
|
|
4062
4049
|
*
|
|
4063
4050
|
* @default 'fields'
|
|
4064
4051
|
*/
|
|
4065
|
-
responseStyle: 'data' | 'fields';
|
|
4066
|
-
|
|
4067
|
-
|
|
4068
|
-
|
|
4069
|
-
* adds runtime overhead, so it's not recommended to use unless necessary.
|
|
4070
|
-
*
|
|
4071
|
-
* You can customize the selected transformer output through its plugin. You
|
|
4072
|
-
* can also set `transformer` to `true` to automatically choose the
|
|
4073
|
-
* transformer from your defined plugins.
|
|
4074
|
-
*
|
|
4075
|
-
* @default false
|
|
4076
|
-
*/
|
|
4077
|
-
transformer: PluginTransformerNames | false;
|
|
4078
|
-
/**
|
|
4079
|
-
* Validate request and/or response data against schema before returning.
|
|
4080
|
-
* This is useful if you want to ensure the request and/or response conforms
|
|
4081
|
-
* to a desired shape. However, validation adds runtime overhead, so it's
|
|
4082
|
-
* not recommended to use unless absolutely necessary.
|
|
4083
|
-
*/
|
|
4052
|
+
responseStyle: 'data' | 'fields'; /** Transform response data before returning. */
|
|
4053
|
+
transformer: {
|
|
4054
|
+
/** The transformer plugin to use for response transformation, or false to disable. */response: PluginTransformerNames | false;
|
|
4055
|
+
}; /** Validate request and/or response data against schema before returning. */
|
|
4084
4056
|
validator: {
|
|
4085
|
-
/**
|
|
4086
|
-
* The validator plugin to use for request validation, or false to disable.
|
|
4087
|
-
*
|
|
4088
|
-
* @default false
|
|
4089
|
-
*/
|
|
4090
|
-
request: PluginValidatorNames | false;
|
|
4091
|
-
/**
|
|
4092
|
-
* The validator plugin to use for response validation, or false to disable.
|
|
4093
|
-
*
|
|
4094
|
-
* @default false
|
|
4095
|
-
*/
|
|
4057
|
+
/** The validator plugin to use for request validation, or false to disable. */request: PluginValidatorNames | false; /** The validator plugin to use for response validation, or false to disable. */
|
|
4096
4058
|
response: PluginValidatorNames | false;
|
|
4097
4059
|
};
|
|
4098
4060
|
/**
|
|
@@ -5199,10 +5161,49 @@ type UserConfig$13 = Plugin$1.Name<'@tanstack/angular-query-experimental'> & Plu
|
|
|
5199
5161
|
*/
|
|
5200
5162
|
name?: NameTransformer;
|
|
5201
5163
|
};
|
|
5164
|
+
/**
|
|
5165
|
+
* Configuration for generated mutation keys.
|
|
5166
|
+
*
|
|
5167
|
+
* See {@link https://tanstack.com/query/v5/docs/framework/angular/reference/functions/injectMutation injectMutation}
|
|
5168
|
+
*
|
|
5169
|
+
* Can be:
|
|
5170
|
+
* - `boolean`: Shorthand for `{ enabled: boolean }`
|
|
5171
|
+
* - `string` or `function`: Shorthand for `{ name: string | function }`
|
|
5172
|
+
* - `object`: Full configuration object
|
|
5173
|
+
*
|
|
5174
|
+
* @default false
|
|
5175
|
+
*/
|
|
5176
|
+
mutationKeys?: boolean | NameTransformer | {
|
|
5177
|
+
/**
|
|
5178
|
+
* Casing convention for generated names.
|
|
5179
|
+
*
|
|
5180
|
+
* @default 'camelCase'
|
|
5181
|
+
*/
|
|
5182
|
+
case?: Casing;
|
|
5183
|
+
/**
|
|
5184
|
+
* Whether this feature is enabled.
|
|
5185
|
+
*
|
|
5186
|
+
* @default true
|
|
5187
|
+
*/
|
|
5188
|
+
enabled?: boolean;
|
|
5189
|
+
/**
|
|
5190
|
+
* Naming pattern for generated names.
|
|
5191
|
+
*
|
|
5192
|
+
* @default '{{name}}MutationKey'
|
|
5193
|
+
*/
|
|
5194
|
+
name?: NameTransformer;
|
|
5195
|
+
/**
|
|
5196
|
+
* Whether to include operation tags in mutation keys.
|
|
5197
|
+
* This will make mutation keys larger but provides better cache invalidation capabilities.
|
|
5198
|
+
*
|
|
5199
|
+
* @default false
|
|
5200
|
+
*/
|
|
5201
|
+
tags?: boolean;
|
|
5202
|
+
};
|
|
5202
5203
|
/**
|
|
5203
5204
|
* Configuration for generated mutation options helpers.
|
|
5204
5205
|
*
|
|
5205
|
-
* See {@link https://tanstack.com/query/v5/docs/framework/angular/reference/
|
|
5206
|
+
* See {@link https://tanstack.com/query/v5/docs/framework/angular/reference/functions/injectMutation injectMutation}
|
|
5206
5207
|
*
|
|
5207
5208
|
* Can be:
|
|
5208
5209
|
* - `boolean`: Shorthand for `{ enabled: boolean }`
|
|
@@ -5256,7 +5257,7 @@ type UserConfig$13 = Plugin$1.Name<'@tanstack/angular-query-experimental'> & Plu
|
|
|
5256
5257
|
* Naming pattern for generated names.
|
|
5257
5258
|
*
|
|
5258
5259
|
* @default '{{name}}Mutation'
|
|
5259
|
-
* @see https://tanstack.com/query/v5/docs/framework/angular/reference/
|
|
5260
|
+
* @see https://tanstack.com/query/v5/docs/framework/angular/reference/functions/injectMutation
|
|
5260
5261
|
*/
|
|
5261
5262
|
name?: NameTransformer;
|
|
5262
5263
|
};
|
|
@@ -5403,6 +5404,9 @@ type Config$10 = Plugin$1.Name<'@tanstack/angular-query-experimental'> & Plugin$
|
|
|
5403
5404
|
}; /** Resolved configuration for generated infinite query options helpers. */
|
|
5404
5405
|
infiniteQueryOptions: NamingOptions & FeatureToggle & {
|
|
5405
5406
|
/** Custom function to generate metadata for the operation. */meta: (operation: IR$1.OperationObject) => Record<string, unknown>;
|
|
5407
|
+
}; /** Resolved configuration for generated mutation keys. */
|
|
5408
|
+
mutationKeys: NamingOptions & FeatureToggle & {
|
|
5409
|
+
/** Whether to include operation tags in mutation keys. */tags: boolean;
|
|
5406
5410
|
}; /** Resolved configuration for generated mutation options helpers. */
|
|
5407
5411
|
mutationOptions: NamingOptions & FeatureToggle & {
|
|
5408
5412
|
/** Whether to export generated symbols. */exported: boolean; /** Custom function to generate metadata for the operation. */
|
|
@@ -5525,6 +5529,45 @@ type UserConfig$12 = Plugin$1.Name<'@tanstack/preact-query'> & Plugin$1.Hooks &
|
|
|
5525
5529
|
*/
|
|
5526
5530
|
name?: NameTransformer;
|
|
5527
5531
|
};
|
|
5532
|
+
/**
|
|
5533
|
+
* Configuration for generated mutation keys.
|
|
5534
|
+
*
|
|
5535
|
+
* See {@link https://tanstack.com/query/v5/docs/framework/preact/reference/functions/useMutation useMutation}
|
|
5536
|
+
*
|
|
5537
|
+
* Can be:
|
|
5538
|
+
* - `boolean`: Shorthand for `{ enabled: boolean }`
|
|
5539
|
+
* - `string` or `function`: Shorthand for `{ name: string | function }`
|
|
5540
|
+
* - `object`: Full configuration object
|
|
5541
|
+
*
|
|
5542
|
+
* @default false
|
|
5543
|
+
*/
|
|
5544
|
+
mutationKeys?: boolean | NameTransformer | {
|
|
5545
|
+
/**
|
|
5546
|
+
* Casing convention for generated names.
|
|
5547
|
+
*
|
|
5548
|
+
* @default 'camelCase'
|
|
5549
|
+
*/
|
|
5550
|
+
case?: Casing;
|
|
5551
|
+
/**
|
|
5552
|
+
* Whether this feature is enabled.
|
|
5553
|
+
*
|
|
5554
|
+
* @default true
|
|
5555
|
+
*/
|
|
5556
|
+
enabled?: boolean;
|
|
5557
|
+
/**
|
|
5558
|
+
* Naming pattern for generated names.
|
|
5559
|
+
*
|
|
5560
|
+
* @default '{{name}}MutationKey'
|
|
5561
|
+
*/
|
|
5562
|
+
name?: NameTransformer;
|
|
5563
|
+
/**
|
|
5564
|
+
* Whether to include operation tags in mutation keys.
|
|
5565
|
+
* This will make mutation keys larger but provides better cache invalidation capabilities.
|
|
5566
|
+
*
|
|
5567
|
+
* @default false
|
|
5568
|
+
*/
|
|
5569
|
+
tags?: boolean;
|
|
5570
|
+
};
|
|
5528
5571
|
/**
|
|
5529
5572
|
* Configuration for generated mutation options helpers.
|
|
5530
5573
|
*
|
|
@@ -5835,6 +5878,9 @@ type Config$9 = Plugin$1.Name<'@tanstack/preact-query'> & Plugin$1.Hooks & Plugi
|
|
|
5835
5878
|
}; /** Resolved configuration for generated infinite query options helpers. */
|
|
5836
5879
|
infiniteQueryOptions: NamingOptions & FeatureToggle & {
|
|
5837
5880
|
/** Custom function to generate metadata for the operation. */meta: (operation: IR$1.OperationObject) => Record<string, unknown>;
|
|
5881
|
+
}; /** Resolved configuration for generated mutation keys. */
|
|
5882
|
+
mutationKeys: NamingOptions & FeatureToggle & {
|
|
5883
|
+
/** Whether to include operation tags in mutation keys. */tags: boolean;
|
|
5838
5884
|
}; /** Resolved configuration for generated mutation options helpers. */
|
|
5839
5885
|
mutationOptions: NamingOptions & FeatureToggle & {
|
|
5840
5886
|
/** Whether to export generated symbols. */exported: boolean; /** Custom function to generate metadata for the operation. */
|
|
@@ -5960,6 +6006,45 @@ type UserConfig$11 = Plugin$1.Name<'@tanstack/react-query'> & Plugin$1.Hooks & P
|
|
|
5960
6006
|
*/
|
|
5961
6007
|
name?: NameTransformer;
|
|
5962
6008
|
};
|
|
6009
|
+
/**
|
|
6010
|
+
* Configuration for generated mutation keys.
|
|
6011
|
+
*
|
|
6012
|
+
* See {@link https://tanstack.com/query/v5/docs/framework/react/reference/useMutation useMutation}
|
|
6013
|
+
*
|
|
6014
|
+
* Can be:
|
|
6015
|
+
* - `boolean`: Shorthand for `{ enabled: boolean }`
|
|
6016
|
+
* - `string` or `function`: Shorthand for `{ name: string | function }`
|
|
6017
|
+
* - `object`: Full configuration object
|
|
6018
|
+
*
|
|
6019
|
+
* @default false
|
|
6020
|
+
*/
|
|
6021
|
+
mutationKeys?: boolean | NameTransformer | {
|
|
6022
|
+
/**
|
|
6023
|
+
* Casing convention for generated names.
|
|
6024
|
+
*
|
|
6025
|
+
* @default 'camelCase'
|
|
6026
|
+
*/
|
|
6027
|
+
case?: Casing;
|
|
6028
|
+
/**
|
|
6029
|
+
* Whether this feature is enabled.
|
|
6030
|
+
*
|
|
6031
|
+
* @default true
|
|
6032
|
+
*/
|
|
6033
|
+
enabled?: boolean;
|
|
6034
|
+
/**
|
|
6035
|
+
* Naming pattern for generated names.
|
|
6036
|
+
*
|
|
6037
|
+
* @default '{{name}}MutationKey'
|
|
6038
|
+
*/
|
|
6039
|
+
name?: NameTransformer;
|
|
6040
|
+
/**
|
|
6041
|
+
* Whether to include operation tags in mutation keys.
|
|
6042
|
+
* This will make mutation keys larger but provides better cache invalidation capabilities.
|
|
6043
|
+
*
|
|
6044
|
+
* @default false
|
|
6045
|
+
*/
|
|
6046
|
+
tags?: boolean;
|
|
6047
|
+
};
|
|
5963
6048
|
/**
|
|
5964
6049
|
* Configuration for generated mutation options helpers.
|
|
5965
6050
|
*
|
|
@@ -6270,6 +6355,9 @@ type Config$8 = Plugin$1.Name<'@tanstack/react-query'> & Plugin$1.Hooks & Plugin
|
|
|
6270
6355
|
}; /** Resolved configuration for generated infinite query options helpers. */
|
|
6271
6356
|
infiniteQueryOptions: NamingOptions & FeatureToggle & {
|
|
6272
6357
|
/** Custom function to generate metadata for the operation. */meta: (operation: IR$1.OperationObject) => Record<string, unknown>;
|
|
6358
|
+
}; /** Resolved configuration for generated mutation keys. */
|
|
6359
|
+
mutationKeys: NamingOptions & FeatureToggle & {
|
|
6360
|
+
/** Whether to include operation tags in mutation keys. */tags: boolean;
|
|
6273
6361
|
}; /** Resolved configuration for generated mutation options helpers. */
|
|
6274
6362
|
mutationOptions: NamingOptions & FeatureToggle & {
|
|
6275
6363
|
/** Whether to export generated symbols. */exported: boolean; /** Custom function to generate metadata for the operation. */
|
|
@@ -6393,6 +6481,45 @@ type UserConfig$10 = Plugin$1.Name<'@tanstack/solid-query'> & Plugin$1.Hooks & P
|
|
|
6393
6481
|
*/
|
|
6394
6482
|
name?: NameTransformer;
|
|
6395
6483
|
};
|
|
6484
|
+
/**
|
|
6485
|
+
* Configuration for generated mutation keys.
|
|
6486
|
+
*
|
|
6487
|
+
* See {@link https://tanstack.com/query/v5/docs/framework/solid/reference/createMutation}
|
|
6488
|
+
*
|
|
6489
|
+
* Can be:
|
|
6490
|
+
* - `boolean`: Shorthand for `{ enabled: boolean }`
|
|
6491
|
+
* - `string` or `function`: Shorthand for `{ name: string | function }`
|
|
6492
|
+
* - `object`: Full configuration object
|
|
6493
|
+
*
|
|
6494
|
+
* @default false
|
|
6495
|
+
*/
|
|
6496
|
+
mutationKeys?: boolean | NameTransformer | {
|
|
6497
|
+
/**
|
|
6498
|
+
* Casing convention for generated names.
|
|
6499
|
+
*
|
|
6500
|
+
* @default 'camelCase'
|
|
6501
|
+
*/
|
|
6502
|
+
case?: Casing;
|
|
6503
|
+
/**
|
|
6504
|
+
* Whether this feature is enabled.
|
|
6505
|
+
*
|
|
6506
|
+
* @default true
|
|
6507
|
+
*/
|
|
6508
|
+
enabled?: boolean;
|
|
6509
|
+
/**
|
|
6510
|
+
* Naming pattern for generated names.
|
|
6511
|
+
*
|
|
6512
|
+
* @default '{{name}}MutationKey'
|
|
6513
|
+
*/
|
|
6514
|
+
name?: NameTransformer;
|
|
6515
|
+
/**
|
|
6516
|
+
* Whether to include operation tags in mutation keys.
|
|
6517
|
+
* This will make mutation keys larger but provides better cache invalidation capabilities.
|
|
6518
|
+
*
|
|
6519
|
+
* @default false
|
|
6520
|
+
*/
|
|
6521
|
+
tags?: boolean;
|
|
6522
|
+
};
|
|
6396
6523
|
/**
|
|
6397
6524
|
* Configuration for generated mutation options helpers.
|
|
6398
6525
|
*
|
|
@@ -6597,6 +6724,9 @@ type Config$7 = Plugin$1.Name<'@tanstack/solid-query'> & Plugin$1.Hooks & Plugin
|
|
|
6597
6724
|
}; /** Resolved configuration for generated infinite query options helpers. */
|
|
6598
6725
|
infiniteQueryOptions: NamingOptions & FeatureToggle & {
|
|
6599
6726
|
/** Custom function to generate metadata for the operation. */meta: (operation: IR$1.OperationObject) => Record<string, unknown>;
|
|
6727
|
+
}; /** Resolved configuration for generated mutation keys. */
|
|
6728
|
+
mutationKeys: NamingOptions & FeatureToggle & {
|
|
6729
|
+
/** Whether to include operation tags in mutation keys. */tags: boolean;
|
|
6600
6730
|
}; /** Resolved configuration for generated mutation options helpers. */
|
|
6601
6731
|
mutationOptions: NamingOptions & FeatureToggle & {
|
|
6602
6732
|
/** Whether to export generated symbols. */exported: boolean; /** Custom function to generate metadata for the operation. */
|
|
@@ -6716,6 +6846,45 @@ type UserConfig$9 = Plugin$1.Name<'@tanstack/svelte-query'> & Plugin$1.Hooks & P
|
|
|
6716
6846
|
*/
|
|
6717
6847
|
name?: NameTransformer;
|
|
6718
6848
|
};
|
|
6849
|
+
/**
|
|
6850
|
+
* Configuration for generated mutation keys.
|
|
6851
|
+
*
|
|
6852
|
+
* See {@link https://tanstack.com/query/v5/docs/framework/svelte/reference/functions/createMutation createMutation}
|
|
6853
|
+
*
|
|
6854
|
+
* Can be:
|
|
6855
|
+
* - `boolean`: Shorthand for `{ enabled: boolean }`
|
|
6856
|
+
* - `string` or `function`: Shorthand for `{ name: string | function }`
|
|
6857
|
+
* - `object`: Full configuration object
|
|
6858
|
+
*
|
|
6859
|
+
* @default false
|
|
6860
|
+
*/
|
|
6861
|
+
mutationKeys?: boolean | NameTransformer | {
|
|
6862
|
+
/**
|
|
6863
|
+
* Casing convention for generated names.
|
|
6864
|
+
*
|
|
6865
|
+
* @default 'camelCase'
|
|
6866
|
+
*/
|
|
6867
|
+
case?: Casing;
|
|
6868
|
+
/**
|
|
6869
|
+
* Whether this feature is enabled.
|
|
6870
|
+
*
|
|
6871
|
+
* @default true
|
|
6872
|
+
*/
|
|
6873
|
+
enabled?: boolean;
|
|
6874
|
+
/**
|
|
6875
|
+
* Naming pattern for generated names.
|
|
6876
|
+
*
|
|
6877
|
+
* @default '{{name}}MutationKey'
|
|
6878
|
+
*/
|
|
6879
|
+
name?: NameTransformer;
|
|
6880
|
+
/**
|
|
6881
|
+
* Whether to include operation tags in mutation keys.
|
|
6882
|
+
* This will make mutation keys larger but provides better cache invalidation capabilities.
|
|
6883
|
+
*
|
|
6884
|
+
* @default false
|
|
6885
|
+
*/
|
|
6886
|
+
tags?: boolean;
|
|
6887
|
+
};
|
|
6719
6888
|
/**
|
|
6720
6889
|
* Configuration for generated mutation options helpers.
|
|
6721
6890
|
*
|
|
@@ -6920,6 +7089,9 @@ type Config$6 = Plugin$1.Name<'@tanstack/svelte-query'> & Plugin$1.Hooks & Plugi
|
|
|
6920
7089
|
}; /** Resolved configuration for generated infinite query options helpers. */
|
|
6921
7090
|
infiniteQueryOptions: NamingOptions & FeatureToggle & {
|
|
6922
7091
|
/** Custom function to generate metadata for the operation. */meta: (operation: IR$1.OperationObject) => Record<string, unknown>;
|
|
7092
|
+
}; /** Resolved configuration for generated mutation keys. */
|
|
7093
|
+
mutationKeys: NamingOptions & FeatureToggle & {
|
|
7094
|
+
/** Whether to include operation tags in mutation keys. */tags: boolean;
|
|
6923
7095
|
}; /** Resolved configuration for generated mutation options helpers. */
|
|
6924
7096
|
mutationOptions: NamingOptions & FeatureToggle & {
|
|
6925
7097
|
/** Whether to export generated symbols. */exported: boolean; /** Custom function to generate metadata for the operation. */
|
|
@@ -7040,6 +7212,45 @@ type UserConfig$8 = Plugin$1.Name<'@tanstack/vue-query'> & Plugin$1.Hooks & Plug
|
|
|
7040
7212
|
*/
|
|
7041
7213
|
name?: NameTransformer;
|
|
7042
7214
|
};
|
|
7215
|
+
/**
|
|
7216
|
+
* Configuration for generated mutation keys.
|
|
7217
|
+
*
|
|
7218
|
+
* See {@link https://tanstack.com/query/v5/docs/framework/vue/reference/useMutation}
|
|
7219
|
+
*
|
|
7220
|
+
* Can be:
|
|
7221
|
+
* - `boolean`: Shorthand for `{ enabled: boolean }`
|
|
7222
|
+
* - `string` or `function`: Shorthand for `{ name: string | function }`
|
|
7223
|
+
* - `object`: Full configuration object
|
|
7224
|
+
*
|
|
7225
|
+
* @default false
|
|
7226
|
+
*/
|
|
7227
|
+
mutationKeys?: boolean | NameTransformer | {
|
|
7228
|
+
/**
|
|
7229
|
+
* Casing convention for generated names.
|
|
7230
|
+
*
|
|
7231
|
+
* @default 'camelCase'
|
|
7232
|
+
*/
|
|
7233
|
+
case?: Casing;
|
|
7234
|
+
/**
|
|
7235
|
+
* Whether this feature is enabled.
|
|
7236
|
+
*
|
|
7237
|
+
* @default true
|
|
7238
|
+
*/
|
|
7239
|
+
enabled?: boolean;
|
|
7240
|
+
/**
|
|
7241
|
+
* Naming pattern for generated names.
|
|
7242
|
+
*
|
|
7243
|
+
* @default '{{name}}MutationKey'
|
|
7244
|
+
*/
|
|
7245
|
+
name?: NameTransformer;
|
|
7246
|
+
/**
|
|
7247
|
+
* Whether to include operation tags in mutation keys.
|
|
7248
|
+
* This will make mutation keys larger but provides better cache invalidation capabilities.
|
|
7249
|
+
*
|
|
7250
|
+
* @default false
|
|
7251
|
+
*/
|
|
7252
|
+
tags?: boolean;
|
|
7253
|
+
};
|
|
7043
7254
|
/**
|
|
7044
7255
|
* Configuration for generated mutation options helpers.
|
|
7045
7256
|
*
|
|
@@ -7246,6 +7457,9 @@ type Config$5 = Plugin$1.Name<'@tanstack/vue-query'> & Plugin$1.Hooks & Plugin$1
|
|
|
7246
7457
|
}; /** Resolved configuration for generated infinite query options helpers. */
|
|
7247
7458
|
infiniteQueryOptions: NamingOptions & FeatureToggle & {
|
|
7248
7459
|
/** Custom function to generate metadata for the operation. */meta: (operation: IR$1.OperationObject) => Record<string, unknown>;
|
|
7460
|
+
}; /** Resolved configuration for generated mutation keys. */
|
|
7461
|
+
mutationKeys: NamingOptions & FeatureToggle & {
|
|
7462
|
+
/** Whether to include operation tags in mutation keys. */tags: boolean;
|
|
7249
7463
|
}; /** Resolved configuration for generated mutation options helpers. */
|
|
7250
7464
|
mutationOptions: NamingOptions & FeatureToggle & {
|
|
7251
7465
|
/** Whether to export generated symbols. */exported: boolean; /** Custom function to generate metadata for the operation. */
|
|
@@ -7269,9 +7483,12 @@ type ValidatorArgs$2 = {
|
|
|
7269
7483
|
};
|
|
7270
7484
|
//#endregion
|
|
7271
7485
|
//#region src/plugins/arktype/api.d.ts
|
|
7486
|
+
type ArrowFunc$2 = Extract<ReturnType<typeof $.func>, {
|
|
7487
|
+
'~mode': 'arrow';
|
|
7488
|
+
}>;
|
|
7272
7489
|
type IApi$2 = {
|
|
7273
|
-
createRequestValidator: (args: RequestSchemaContext<ArktypePlugin['Instance']>) =>
|
|
7274
|
-
createResponseValidator: (args: ValidatorArgs$2) =>
|
|
7490
|
+
createRequestValidator: (args: RequestSchemaContext<ArktypePlugin['Instance']>) => ArrowFunc$2 | undefined;
|
|
7491
|
+
createResponseValidator: (args: ValidatorArgs$2) => ArrowFunc$2 | undefined;
|
|
7275
7492
|
};
|
|
7276
7493
|
//#endregion
|
|
7277
7494
|
//#region src/plugins/arktype/types.d.ts
|
|
@@ -8360,10 +8577,18 @@ interface ValibotFinal extends Pick<ValibotResult, 'pipes'> {
|
|
|
8360
8577
|
}
|
|
8361
8578
|
//#endregion
|
|
8362
8579
|
//#region src/plugins/valibot/api.d.ts
|
|
8580
|
+
type ArrowFunc$1 = Extract<ReturnType<typeof $.func>, {
|
|
8581
|
+
'~mode': 'arrow';
|
|
8582
|
+
}>;
|
|
8363
8583
|
type IApi$1 = {
|
|
8364
8584
|
createRequestSchema: (ctx: RequestSchemaContext<ValibotPlugin['Instance']>) => Symbol | Pipe | undefined;
|
|
8365
|
-
createRequestValidator: (
|
|
8366
|
-
|
|
8585
|
+
createRequestValidator: (ctx: RequestSchemaContext<ValibotPlugin['Instance']>) => ArrowFunc$1 | undefined;
|
|
8586
|
+
createResponseHandlers: (ctx: ValidatorArgs$1) => {
|
|
8587
|
+
transformer: ArrowFunc$1 | undefined;
|
|
8588
|
+
validator: ArrowFunc$1 | undefined;
|
|
8589
|
+
};
|
|
8590
|
+
createResponseTransformer: (ctx: ValidatorArgs$1) => ArrowFunc$1 | undefined;
|
|
8591
|
+
createResponseValidator: (ctx: ValidatorArgs$1) => ArrowFunc$1 | undefined;
|
|
8367
8592
|
};
|
|
8368
8593
|
//#endregion
|
|
8369
8594
|
//#region src/plugins/shared/utils/coerce.d.ts
|
|
@@ -8516,7 +8741,7 @@ type ValibotResolvers = Plugin$1.Resolvers<{
|
|
|
8516
8741
|
*/
|
|
8517
8742
|
void?: (ctx: VoidResolverContext$1) => PipeResult;
|
|
8518
8743
|
}>;
|
|
8519
|
-
interface BaseContext$1 extends DollarTsDsl {
|
|
8744
|
+
interface BaseContext$1 extends DollarTsDsl, SchemaVisitorContext<ValibotPlugin['Instance']> {
|
|
8520
8745
|
/**
|
|
8521
8746
|
* Functions for working with pipes.
|
|
8522
8747
|
*/
|
|
@@ -8532,8 +8757,6 @@ interface BaseContext$1 extends DollarTsDsl {
|
|
|
8532
8757
|
*/
|
|
8533
8758
|
current: Pipes;
|
|
8534
8759
|
};
|
|
8535
|
-
/** The plugin instance. */
|
|
8536
|
-
plugin: ValibotPlugin['Instance'];
|
|
8537
8760
|
/**
|
|
8538
8761
|
* Provides access to commonly used symbols within the plugin.
|
|
8539
8762
|
*/
|
|
@@ -8556,7 +8779,6 @@ interface ArrayResolverContext$1 extends BaseContext$1 {
|
|
|
8556
8779
|
};
|
|
8557
8780
|
schema: SchemaWithType<'array'>;
|
|
8558
8781
|
walk: Walker<ValibotResult, ValibotPlugin['Instance']>;
|
|
8559
|
-
walkerCtx: SchemaVisitorContext<ValibotPlugin['Instance']>;
|
|
8560
8782
|
}
|
|
8561
8783
|
interface BooleanResolverContext$1 extends BaseContext$1 {
|
|
8562
8784
|
/**
|
|
@@ -8582,13 +8804,9 @@ interface EnumResolverContext$1 extends BaseContext$1 {
|
|
|
8582
8804
|
*/
|
|
8583
8805
|
items: (ctx: EnumResolverContext$1) => {
|
|
8584
8806
|
/**
|
|
8585
|
-
*
|
|
8807
|
+
* Literal nodes for each enum member.
|
|
8586
8808
|
*/
|
|
8587
8809
|
enumMembers: Array<ReturnType<typeof $.literal>>;
|
|
8588
|
-
/**
|
|
8589
|
-
* Whether the enum includes a null value.
|
|
8590
|
-
*/
|
|
8591
|
-
isNullable: boolean;
|
|
8592
8810
|
};
|
|
8593
8811
|
};
|
|
8594
8812
|
schema: SchemaWithType<'enum'>;
|
|
@@ -8660,7 +8878,6 @@ interface ObjectResolverContext$1 extends BaseContext$1 {
|
|
|
8660
8878
|
};
|
|
8661
8879
|
schema: SchemaWithType<'object'>;
|
|
8662
8880
|
walk: Walker<ValibotResult, ValibotPlugin['Instance']>;
|
|
8663
|
-
walkerCtx: SchemaVisitorContext<ValibotPlugin['Instance']>;
|
|
8664
8881
|
}
|
|
8665
8882
|
interface StringResolverContext$1 extends BaseContext$1 {
|
|
8666
8883
|
/**
|
|
@@ -8690,7 +8907,6 @@ interface TupleResolverContext$1 extends BaseContext$1 {
|
|
|
8690
8907
|
};
|
|
8691
8908
|
schema: SchemaWithType<'tuple'>;
|
|
8692
8909
|
walk: Walker<ValibotResult, ValibotPlugin['Instance']>;
|
|
8693
|
-
walkerCtx: SchemaVisitorContext<ValibotPlugin['Instance']>;
|
|
8694
8910
|
}
|
|
8695
8911
|
interface UndefinedResolverContext$1 extends BaseContext$1 {
|
|
8696
8912
|
/**
|
|
@@ -9170,10 +9386,18 @@ interface ZodFinal extends Pick<ZodResult, 'expression'> {
|
|
|
9170
9386
|
}
|
|
9171
9387
|
//#endregion
|
|
9172
9388
|
//#region src/plugins/zod/api.d.ts
|
|
9389
|
+
type ArrowFunc = Extract<ReturnType<typeof $.func>, {
|
|
9390
|
+
'~mode': 'arrow';
|
|
9391
|
+
}>;
|
|
9173
9392
|
type IApi = {
|
|
9174
9393
|
createRequestSchema: (ctx: RequestSchemaContext<ZodPlugin['Instance']>) => Symbol | Chain | undefined;
|
|
9175
|
-
createRequestValidator: (ctx: RequestSchemaContext<ZodPlugin['Instance']>) =>
|
|
9176
|
-
|
|
9394
|
+
createRequestValidator: (ctx: RequestSchemaContext<ZodPlugin['Instance']>) => ArrowFunc | undefined;
|
|
9395
|
+
createResponseHandlers: (ctx: ValidatorArgs) => {
|
|
9396
|
+
transformer: ArrowFunc | undefined;
|
|
9397
|
+
validator: ArrowFunc | undefined;
|
|
9398
|
+
};
|
|
9399
|
+
createResponseTransformer: (ctx: ValidatorArgs) => ArrowFunc | undefined;
|
|
9400
|
+
createResponseValidator: (ctx: ValidatorArgs) => ArrowFunc | undefined;
|
|
9177
9401
|
};
|
|
9178
9402
|
//#endregion
|
|
9179
9403
|
//#region src/plugins/zod/resolvers.d.ts
|
|
@@ -9312,7 +9536,7 @@ type ZodResolvers = Plugin$1.Resolvers<{
|
|
|
9312
9536
|
*/
|
|
9313
9537
|
void?: (ctx: VoidResolverContext) => ChainResult;
|
|
9314
9538
|
}>;
|
|
9315
|
-
interface BaseContext extends DollarTsDsl {
|
|
9539
|
+
interface BaseContext extends DollarTsDsl, SchemaVisitorContext<ZodPlugin['Instance']> {
|
|
9316
9540
|
/**
|
|
9317
9541
|
* Functions for working with chains.
|
|
9318
9542
|
*/
|
|
@@ -9328,8 +9552,6 @@ interface BaseContext extends DollarTsDsl {
|
|
|
9328
9552
|
*/
|
|
9329
9553
|
current: Chain;
|
|
9330
9554
|
};
|
|
9331
|
-
/** The plugin instance. */
|
|
9332
|
-
plugin: ZodPlugin['Instance'];
|
|
9333
9555
|
/**
|
|
9334
9556
|
* Provides access to commonly used symbols within the plugin.
|
|
9335
9557
|
*/
|
|
@@ -9368,7 +9590,6 @@ interface ArrayResolverContext extends BaseContext {
|
|
|
9368
9590
|
};
|
|
9369
9591
|
schema: SchemaWithType<'array'>;
|
|
9370
9592
|
walk: Walker<ZodResult, ZodPlugin['Instance']>;
|
|
9371
|
-
walkerCtx: SchemaVisitorContext<ZodPlugin['Instance']>;
|
|
9372
9593
|
}
|
|
9373
9594
|
interface BooleanResolverContext extends BaseContext {
|
|
9374
9595
|
/**
|
|
@@ -9400,21 +9621,13 @@ interface EnumResolverContext extends BaseContext {
|
|
|
9400
9621
|
*/
|
|
9401
9622
|
items: (ctx: EnumResolverContext) => {
|
|
9402
9623
|
/**
|
|
9403
|
-
*
|
|
9404
|
-
*/
|
|
9405
|
-
allStrings: boolean;
|
|
9406
|
-
/**
|
|
9407
|
-
* String literal values for use with z.enum([...]).
|
|
9624
|
+
* String literal nodes for each string-typed enum member.
|
|
9408
9625
|
*/
|
|
9409
9626
|
enumMembers: Array<ReturnType<typeof $.literal>>;
|
|
9410
9627
|
/**
|
|
9411
|
-
*
|
|
9412
|
-
*/
|
|
9413
|
-
isNullable: boolean;
|
|
9414
|
-
/**
|
|
9415
|
-
* Zod literal expressions for each enum member.
|
|
9628
|
+
* Schema expressions for each non-null enum member (e.g. z.literal(...)).
|
|
9416
9629
|
*/
|
|
9417
|
-
|
|
9630
|
+
literalSchemas: Array<Chain>;
|
|
9418
9631
|
};
|
|
9419
9632
|
};
|
|
9420
9633
|
schema: SchemaWithType<'enum'>;
|
|
@@ -9518,7 +9731,6 @@ interface ObjectResolverContext extends BaseContext {
|
|
|
9518
9731
|
};
|
|
9519
9732
|
schema: SchemaWithType<'object'>;
|
|
9520
9733
|
walk: Walker<ZodResult, ZodPlugin['Instance']>;
|
|
9521
|
-
walkerCtx: SchemaVisitorContext<ZodPlugin['Instance']>;
|
|
9522
9734
|
}
|
|
9523
9735
|
interface StringResolverContext extends BaseContext {
|
|
9524
9736
|
/**
|
|
@@ -9576,7 +9788,6 @@ interface TupleResolverContext extends BaseContext {
|
|
|
9576
9788
|
};
|
|
9577
9789
|
schema: SchemaWithType<'tuple'>;
|
|
9578
9790
|
walk: Walker<ZodResult, ZodPlugin['Instance']>;
|
|
9579
|
-
walkerCtx: SchemaVisitorContext<ZodPlugin['Instance']>;
|
|
9580
9791
|
}
|
|
9581
9792
|
interface UndefinedResolverContext extends BaseContext {
|
|
9582
9793
|
/**
|