Skip to content

Commit 7a49eca

Browse files
authored
Merge pull request #2052 from hey-api/fix/tanstack-query-comments
fix(tanstack-query): add SDK function comments to TanStack Query output
2 parents cb651c0 + f430eaa commit 7a49eca

File tree

57 files changed

+450
-17
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+450
-17
lines changed

.changeset/curvy-dryers-behave.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@hey-api/openapi-ts': patch
3+
---
4+
5+
fix(tanstack-query): add SDK function comments to TanStack Query output

packages/openapi-ts-tests/test/__snapshots__/2.0.x/plugins/@tanstack/angular-query-experimental/asClass/@tanstack/angular-query-experimental.gen.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -678,6 +678,10 @@ export const nonAsciiæøåÆøÅöôêÊ字符串Mutation = (options?: Partial<
678678

679679
export const postApiVbyApiVersionBodyQueryKey = (options: Options<PostApiVbyApiVersionBodyData>) => createQueryKey('postApiVbyApiVersionBody', options);
680680

681+
/**
682+
* Body should not be unknown
683+
* Body should not be unknown
684+
*/
681685
export const postApiVbyApiVersionBodyOptions = (options: Options<PostApiVbyApiVersionBodyData>) => {
682686
return queryOptions({
683687
queryFn: async ({ queryKey, signal }) => {
@@ -693,6 +697,10 @@ export const postApiVbyApiVersionBodyOptions = (options: Options<PostApiVbyApiVe
693697
});
694698
};
695699

700+
/**
701+
* Body should not be unknown
702+
* Body should not be unknown
703+
*/
696704
export const postApiVbyApiVersionBodyMutation = (options?: Partial<Options<PostApiVbyApiVersionBodyData>>): MutationOptions<PostApiVbyApiVersionBodyResponse, PostApiVbyApiVersionBodyError, Options<PostApiVbyApiVersionBodyData>> => {
697705
const mutationOptions: MutationOptions<PostApiVbyApiVersionBodyResponse, PostApiVbyApiVersionBodyError, Options<PostApiVbyApiVersionBodyData>> = {
698706
mutationFn: async (localOptions) => {

packages/openapi-ts-tests/test/__snapshots__/2.0.x/plugins/@tanstack/angular-query-experimental/axios/@tanstack/angular-query-experimental.gen.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -679,6 +679,10 @@ export const nonAsciiæøåÆøÅöôêÊ字符串Mutation = (options?: Partial<
679679

680680
export const postApiVbyApiVersionBodyQueryKey = (options: Options<PostApiVbyApiVersionBodyData>) => createQueryKey('postApiVbyApiVersionBody', options);
681681

682+
/**
683+
* Body should not be unknown
684+
* Body should not be unknown
685+
*/
682686
export const postApiVbyApiVersionBodyOptions = (options: Options<PostApiVbyApiVersionBodyData>) => {
683687
return queryOptions({
684688
queryFn: async ({ queryKey, signal }) => {
@@ -694,6 +698,10 @@ export const postApiVbyApiVersionBodyOptions = (options: Options<PostApiVbyApiVe
694698
});
695699
};
696700

701+
/**
702+
* Body should not be unknown
703+
* Body should not be unknown
704+
*/
697705
export const postApiVbyApiVersionBodyMutation = (options?: Partial<Options<PostApiVbyApiVersionBodyData>>): MutationOptions<PostApiVbyApiVersionBodyResponse, AxiosError<PostApiVbyApiVersionBodyError>, Options<PostApiVbyApiVersionBodyData>> => {
698706
const mutationOptions: MutationOptions<PostApiVbyApiVersionBodyResponse, AxiosError<PostApiVbyApiVersionBodyError>, Options<PostApiVbyApiVersionBodyData>> = {
699707
mutationFn: async (localOptions) => {

packages/openapi-ts-tests/test/__snapshots__/2.0.x/plugins/@tanstack/angular-query-experimental/fetch/@tanstack/angular-query-experimental.gen.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -678,6 +678,10 @@ export const nonAsciiæøåÆøÅöôêÊ字符串Mutation = (options?: Partial<
678678

679679
export const postApiVbyApiVersionBodyQueryKey = (options: Options<PostApiVbyApiVersionBodyData>) => createQueryKey('postApiVbyApiVersionBody', options);
680680

681+
/**
682+
* Body should not be unknown
683+
* Body should not be unknown
684+
*/
681685
export const postApiVbyApiVersionBodyOptions = (options: Options<PostApiVbyApiVersionBodyData>) => {
682686
return queryOptions({
683687
queryFn: async ({ queryKey, signal }) => {
@@ -693,6 +697,10 @@ export const postApiVbyApiVersionBodyOptions = (options: Options<PostApiVbyApiVe
693697
});
694698
};
695699

700+
/**
701+
* Body should not be unknown
702+
* Body should not be unknown
703+
*/
696704
export const postApiVbyApiVersionBodyMutation = (options?: Partial<Options<PostApiVbyApiVersionBodyData>>): MutationOptions<PostApiVbyApiVersionBodyResponse, PostApiVbyApiVersionBodyError, Options<PostApiVbyApiVersionBodyData>> => {
697705
const mutationOptions: MutationOptions<PostApiVbyApiVersionBodyResponse, PostApiVbyApiVersionBodyError, Options<PostApiVbyApiVersionBodyData>> = {
698706
mutationFn: async (localOptions) => {

packages/openapi-ts-tests/test/__snapshots__/2.0.x/plugins/@tanstack/react-query/asClass/@tanstack/react-query.gen.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -678,6 +678,10 @@ export const nonAsciiæøåÆøÅöôêÊ字符串Mutation = (options?: Partial<
678678

679679
export const postApiVbyApiVersionBodyQueryKey = (options: Options<PostApiVbyApiVersionBodyData>) => createQueryKey('postApiVbyApiVersionBody', options);
680680

681+
/**
682+
* Body should not be unknown
683+
* Body should not be unknown
684+
*/
681685
export const postApiVbyApiVersionBodyOptions = (options: Options<PostApiVbyApiVersionBodyData>) => {
682686
return queryOptions({
683687
queryFn: async ({ queryKey, signal }) => {
@@ -693,6 +697,10 @@ export const postApiVbyApiVersionBodyOptions = (options: Options<PostApiVbyApiVe
693697
});
694698
};
695699

700+
/**
701+
* Body should not be unknown
702+
* Body should not be unknown
703+
*/
696704
export const postApiVbyApiVersionBodyMutation = (options?: Partial<Options<PostApiVbyApiVersionBodyData>>): UseMutationOptions<PostApiVbyApiVersionBodyResponse, PostApiVbyApiVersionBodyError, Options<PostApiVbyApiVersionBodyData>> => {
697705
const mutationOptions: UseMutationOptions<PostApiVbyApiVersionBodyResponse, PostApiVbyApiVersionBodyError, Options<PostApiVbyApiVersionBodyData>> = {
698706
mutationFn: async (localOptions) => {

packages/openapi-ts-tests/test/__snapshots__/2.0.x/plugins/@tanstack/react-query/axios/@tanstack/react-query.gen.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -679,6 +679,10 @@ export const nonAsciiæøåÆøÅöôêÊ字符串Mutation = (options?: Partial<
679679

680680
export const postApiVbyApiVersionBodyQueryKey = (options: Options<PostApiVbyApiVersionBodyData>) => createQueryKey('postApiVbyApiVersionBody', options);
681681

682+
/**
683+
* Body should not be unknown
684+
* Body should not be unknown
685+
*/
682686
export const postApiVbyApiVersionBodyOptions = (options: Options<PostApiVbyApiVersionBodyData>) => {
683687
return queryOptions({
684688
queryFn: async ({ queryKey, signal }) => {
@@ -694,6 +698,10 @@ export const postApiVbyApiVersionBodyOptions = (options: Options<PostApiVbyApiVe
694698
});
695699
};
696700

701+
/**
702+
* Body should not be unknown
703+
* Body should not be unknown
704+
*/
697705
export const postApiVbyApiVersionBodyMutation = (options?: Partial<Options<PostApiVbyApiVersionBodyData>>): UseMutationOptions<PostApiVbyApiVersionBodyResponse, AxiosError<PostApiVbyApiVersionBodyError>, Options<PostApiVbyApiVersionBodyData>> => {
698706
const mutationOptions: UseMutationOptions<PostApiVbyApiVersionBodyResponse, AxiosError<PostApiVbyApiVersionBodyError>, Options<PostApiVbyApiVersionBodyData>> = {
699707
mutationFn: async (localOptions) => {

packages/openapi-ts-tests/test/__snapshots__/2.0.x/plugins/@tanstack/react-query/fetch/@tanstack/react-query.gen.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -678,6 +678,10 @@ export const nonAsciiæøåÆøÅöôêÊ字符串Mutation = (options?: Partial<
678678

679679
export const postApiVbyApiVersionBodyQueryKey = (options: Options<PostApiVbyApiVersionBodyData>) => createQueryKey('postApiVbyApiVersionBody', options);
680680

681+
/**
682+
* Body should not be unknown
683+
* Body should not be unknown
684+
*/
681685
export const postApiVbyApiVersionBodyOptions = (options: Options<PostApiVbyApiVersionBodyData>) => {
682686
return queryOptions({
683687
queryFn: async ({ queryKey, signal }) => {
@@ -693,6 +697,10 @@ export const postApiVbyApiVersionBodyOptions = (options: Options<PostApiVbyApiVe
693697
});
694698
};
695699

700+
/**
701+
* Body should not be unknown
702+
* Body should not be unknown
703+
*/
696704
export const postApiVbyApiVersionBodyMutation = (options?: Partial<Options<PostApiVbyApiVersionBodyData>>): UseMutationOptions<PostApiVbyApiVersionBodyResponse, PostApiVbyApiVersionBodyError, Options<PostApiVbyApiVersionBodyData>> => {
697705
const mutationOptions: UseMutationOptions<PostApiVbyApiVersionBodyResponse, PostApiVbyApiVersionBodyError, Options<PostApiVbyApiVersionBodyData>> = {
698706
mutationFn: async (localOptions) => {

packages/openapi-ts-tests/test/__snapshots__/2.0.x/plugins/@tanstack/solid-query/asClass/@tanstack/solid-query.gen.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -678,6 +678,10 @@ export const nonAsciiæøåÆøÅöôêÊ字符串Mutation = (options?: Partial<
678678

679679
export const postApiVbyApiVersionBodyQueryKey = (options: Options<PostApiVbyApiVersionBodyData>) => createQueryKey('postApiVbyApiVersionBody', options);
680680

681+
/**
682+
* Body should not be unknown
683+
* Body should not be unknown
684+
*/
681685
export const postApiVbyApiVersionBodyOptions = (options: Options<PostApiVbyApiVersionBodyData>) => {
682686
return queryOptions({
683687
queryFn: async ({ queryKey, signal }) => {
@@ -693,6 +697,10 @@ export const postApiVbyApiVersionBodyOptions = (options: Options<PostApiVbyApiVe
693697
});
694698
};
695699

700+
/**
701+
* Body should not be unknown
702+
* Body should not be unknown
703+
*/
696704
export const postApiVbyApiVersionBodyMutation = (options?: Partial<Options<PostApiVbyApiVersionBodyData>>): MutationOptions<PostApiVbyApiVersionBodyResponse, PostApiVbyApiVersionBodyError, Options<PostApiVbyApiVersionBodyData>> => {
697705
const mutationOptions: MutationOptions<PostApiVbyApiVersionBodyResponse, PostApiVbyApiVersionBodyError, Options<PostApiVbyApiVersionBodyData>> = {
698706
mutationFn: async (localOptions) => {

packages/openapi-ts-tests/test/__snapshots__/2.0.x/plugins/@tanstack/solid-query/axios/@tanstack/solid-query.gen.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -679,6 +679,10 @@ export const nonAsciiæøåÆøÅöôêÊ字符串Mutation = (options?: Partial<
679679

680680
export const postApiVbyApiVersionBodyQueryKey = (options: Options<PostApiVbyApiVersionBodyData>) => createQueryKey('postApiVbyApiVersionBody', options);
681681

682+
/**
683+
* Body should not be unknown
684+
* Body should not be unknown
685+
*/
682686
export const postApiVbyApiVersionBodyOptions = (options: Options<PostApiVbyApiVersionBodyData>) => {
683687
return queryOptions({
684688
queryFn: async ({ queryKey, signal }) => {
@@ -694,6 +698,10 @@ export const postApiVbyApiVersionBodyOptions = (options: Options<PostApiVbyApiVe
694698
});
695699
};
696700

701+
/**
702+
* Body should not be unknown
703+
* Body should not be unknown
704+
*/
697705
export const postApiVbyApiVersionBodyMutation = (options?: Partial<Options<PostApiVbyApiVersionBodyData>>): MutationOptions<PostApiVbyApiVersionBodyResponse, AxiosError<PostApiVbyApiVersionBodyError>, Options<PostApiVbyApiVersionBodyData>> => {
698706
const mutationOptions: MutationOptions<PostApiVbyApiVersionBodyResponse, AxiosError<PostApiVbyApiVersionBodyError>, Options<PostApiVbyApiVersionBodyData>> = {
699707
mutationFn: async (localOptions) => {

packages/openapi-ts-tests/test/__snapshots__/2.0.x/plugins/@tanstack/solid-query/fetch/@tanstack/solid-query.gen.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -678,6 +678,10 @@ export const nonAsciiæøåÆøÅöôêÊ字符串Mutation = (options?: Partial<
678678

679679
export const postApiVbyApiVersionBodyQueryKey = (options: Options<PostApiVbyApiVersionBodyData>) => createQueryKey('postApiVbyApiVersionBody', options);
680680

681+
/**
682+
* Body should not be unknown
683+
* Body should not be unknown
684+
*/
681685
export const postApiVbyApiVersionBodyOptions = (options: Options<PostApiVbyApiVersionBodyData>) => {
682686
return queryOptions({
683687
queryFn: async ({ queryKey, signal }) => {
@@ -693,6 +697,10 @@ export const postApiVbyApiVersionBodyOptions = (options: Options<PostApiVbyApiVe
693697
});
694698
};
695699

700+
/**
701+
* Body should not be unknown
702+
* Body should not be unknown
703+
*/
696704
export const postApiVbyApiVersionBodyMutation = (options?: Partial<Options<PostApiVbyApiVersionBodyData>>): MutationOptions<PostApiVbyApiVersionBodyResponse, PostApiVbyApiVersionBodyError, Options<PostApiVbyApiVersionBodyData>> => {
697705
const mutationOptions: MutationOptions<PostApiVbyApiVersionBodyResponse, PostApiVbyApiVersionBodyError, Options<PostApiVbyApiVersionBodyData>> = {
698706
mutationFn: async (localOptions) => {

packages/openapi-ts-tests/test/__snapshots__/2.0.x/plugins/@tanstack/svelte-query/asClass/@tanstack/svelte-query.gen.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -678,6 +678,10 @@ export const nonAsciiæøåÆøÅöôêÊ字符串Mutation = (options?: Partial<
678678

679679
export const postApiVbyApiVersionBodyQueryKey = (options: Options<PostApiVbyApiVersionBodyData>) => createQueryKey('postApiVbyApiVersionBody', options);
680680

681+
/**
682+
* Body should not be unknown
683+
* Body should not be unknown
684+
*/
681685
export const postApiVbyApiVersionBodyOptions = (options: Options<PostApiVbyApiVersionBodyData>) => {
682686
return queryOptions({
683687
queryFn: async ({ queryKey, signal }) => {
@@ -693,6 +697,10 @@ export const postApiVbyApiVersionBodyOptions = (options: Options<PostApiVbyApiVe
693697
});
694698
};
695699

700+
/**
701+
* Body should not be unknown
702+
* Body should not be unknown
703+
*/
696704
export const postApiVbyApiVersionBodyMutation = (options?: Partial<Options<PostApiVbyApiVersionBodyData>>): MutationOptions<PostApiVbyApiVersionBodyResponse, PostApiVbyApiVersionBodyError, Options<PostApiVbyApiVersionBodyData>> => {
697705
const mutationOptions: MutationOptions<PostApiVbyApiVersionBodyResponse, PostApiVbyApiVersionBodyError, Options<PostApiVbyApiVersionBodyData>> = {
698706
mutationFn: async (localOptions) => {

packages/openapi-ts-tests/test/__snapshots__/2.0.x/plugins/@tanstack/svelte-query/axios/@tanstack/svelte-query.gen.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -679,6 +679,10 @@ export const nonAsciiæøåÆøÅöôêÊ字符串Mutation = (options?: Partial<
679679

680680
export const postApiVbyApiVersionBodyQueryKey = (options: Options<PostApiVbyApiVersionBodyData>) => createQueryKey('postApiVbyApiVersionBody', options);
681681

682+
/**
683+
* Body should not be unknown
684+
* Body should not be unknown
685+
*/
682686
export const postApiVbyApiVersionBodyOptions = (options: Options<PostApiVbyApiVersionBodyData>) => {
683687
return queryOptions({
684688
queryFn: async ({ queryKey, signal }) => {
@@ -694,6 +698,10 @@ export const postApiVbyApiVersionBodyOptions = (options: Options<PostApiVbyApiVe
694698
});
695699
};
696700

701+
/**
702+
* Body should not be unknown
703+
* Body should not be unknown
704+
*/
697705
export const postApiVbyApiVersionBodyMutation = (options?: Partial<Options<PostApiVbyApiVersionBodyData>>): MutationOptions<PostApiVbyApiVersionBodyResponse, AxiosError<PostApiVbyApiVersionBodyError>, Options<PostApiVbyApiVersionBodyData>> => {
698706
const mutationOptions: MutationOptions<PostApiVbyApiVersionBodyResponse, AxiosError<PostApiVbyApiVersionBodyError>, Options<PostApiVbyApiVersionBodyData>> = {
699707
mutationFn: async (localOptions) => {

packages/openapi-ts-tests/test/__snapshots__/2.0.x/plugins/@tanstack/svelte-query/fetch/@tanstack/svelte-query.gen.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -678,6 +678,10 @@ export const nonAsciiæøåÆøÅöôêÊ字符串Mutation = (options?: Partial<
678678

679679
export const postApiVbyApiVersionBodyQueryKey = (options: Options<PostApiVbyApiVersionBodyData>) => createQueryKey('postApiVbyApiVersionBody', options);
680680

681+
/**
682+
* Body should not be unknown
683+
* Body should not be unknown
684+
*/
681685
export const postApiVbyApiVersionBodyOptions = (options: Options<PostApiVbyApiVersionBodyData>) => {
682686
return queryOptions({
683687
queryFn: async ({ queryKey, signal }) => {
@@ -693,6 +697,10 @@ export const postApiVbyApiVersionBodyOptions = (options: Options<PostApiVbyApiVe
693697
});
694698
};
695699

700+
/**
701+
* Body should not be unknown
702+
* Body should not be unknown
703+
*/
696704
export const postApiVbyApiVersionBodyMutation = (options?: Partial<Options<PostApiVbyApiVersionBodyData>>): MutationOptions<PostApiVbyApiVersionBodyResponse, PostApiVbyApiVersionBodyError, Options<PostApiVbyApiVersionBodyData>> => {
697705
const mutationOptions: MutationOptions<PostApiVbyApiVersionBodyResponse, PostApiVbyApiVersionBodyError, Options<PostApiVbyApiVersionBodyData>> = {
698706
mutationFn: async (localOptions) => {

packages/openapi-ts-tests/test/__snapshots__/2.0.x/plugins/@tanstack/vue-query/asClass/@tanstack/vue-query.gen.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -678,6 +678,10 @@ export const nonAsciiæøåÆøÅöôêÊ字符串Mutation = (options?: Partial<
678678

679679
export const postApiVbyApiVersionBodyQueryKey = (options: Options<PostApiVbyApiVersionBodyData>) => createQueryKey('postApiVbyApiVersionBody', options);
680680

681+
/**
682+
* Body should not be unknown
683+
* Body should not be unknown
684+
*/
681685
export const postApiVbyApiVersionBodyOptions = (options: Options<PostApiVbyApiVersionBodyData>) => {
682686
return queryOptions({
683687
queryFn: async ({ queryKey, signal }) => {
@@ -693,6 +697,10 @@ export const postApiVbyApiVersionBodyOptions = (options: Options<PostApiVbyApiVe
693697
});
694698
};
695699

700+
/**
701+
* Body should not be unknown
702+
* Body should not be unknown
703+
*/
696704
export const postApiVbyApiVersionBodyMutation = (options?: Partial<Options<PostApiVbyApiVersionBodyData>>): UseMutationOptions<PostApiVbyApiVersionBodyResponse, PostApiVbyApiVersionBodyError, Options<PostApiVbyApiVersionBodyData>> => {
697705
const mutationOptions: UseMutationOptions<PostApiVbyApiVersionBodyResponse, PostApiVbyApiVersionBodyError, Options<PostApiVbyApiVersionBodyData>> = {
698706
mutationFn: async (localOptions) => {

packages/openapi-ts-tests/test/__snapshots__/2.0.x/plugins/@tanstack/vue-query/axios/@tanstack/vue-query.gen.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -679,6 +679,10 @@ export const nonAsciiæøåÆøÅöôêÊ字符串Mutation = (options?: Partial<
679679

680680
export const postApiVbyApiVersionBodyQueryKey = (options: Options<PostApiVbyApiVersionBodyData>) => createQueryKey('postApiVbyApiVersionBody', options);
681681

682+
/**
683+
* Body should not be unknown
684+
* Body should not be unknown
685+
*/
682686
export const postApiVbyApiVersionBodyOptions = (options: Options<PostApiVbyApiVersionBodyData>) => {
683687
return queryOptions({
684688
queryFn: async ({ queryKey, signal }) => {
@@ -694,6 +698,10 @@ export const postApiVbyApiVersionBodyOptions = (options: Options<PostApiVbyApiVe
694698
});
695699
};
696700

701+
/**
702+
* Body should not be unknown
703+
* Body should not be unknown
704+
*/
697705
export const postApiVbyApiVersionBodyMutation = (options?: Partial<Options<PostApiVbyApiVersionBodyData>>): UseMutationOptions<PostApiVbyApiVersionBodyResponse, AxiosError<PostApiVbyApiVersionBodyError>, Options<PostApiVbyApiVersionBodyData>> => {
698706
const mutationOptions: UseMutationOptions<PostApiVbyApiVersionBodyResponse, AxiosError<PostApiVbyApiVersionBodyError>, Options<PostApiVbyApiVersionBodyData>> = {
699707
mutationFn: async (localOptions) => {

packages/openapi-ts-tests/test/__snapshots__/2.0.x/plugins/@tanstack/vue-query/fetch/@tanstack/vue-query.gen.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -678,6 +678,10 @@ export const nonAsciiæøåÆøÅöôêÊ字符串Mutation = (options?: Partial<
678678

679679
export const postApiVbyApiVersionBodyQueryKey = (options: Options<PostApiVbyApiVersionBodyData>) => createQueryKey('postApiVbyApiVersionBody', options);
680680

681+
/**
682+
* Body should not be unknown
683+
* Body should not be unknown
684+
*/
681685
export const postApiVbyApiVersionBodyOptions = (options: Options<PostApiVbyApiVersionBodyData>) => {
682686
return queryOptions({
683687
queryFn: async ({ queryKey, signal }) => {
@@ -693,6 +697,10 @@ export const postApiVbyApiVersionBodyOptions = (options: Options<PostApiVbyApiVe
693697
});
694698
};
695699

700+
/**
701+
* Body should not be unknown
702+
* Body should not be unknown
703+
*/
696704
export const postApiVbyApiVersionBodyMutation = (options?: Partial<Options<PostApiVbyApiVersionBodyData>>): UseMutationOptions<PostApiVbyApiVersionBodyResponse, PostApiVbyApiVersionBodyError, Options<PostApiVbyApiVersionBodyData>> => {
697705
const mutationOptions: UseMutationOptions<PostApiVbyApiVersionBodyResponse, PostApiVbyApiVersionBodyError, Options<PostApiVbyApiVersionBodyData>> = {
698706
mutationFn: async (localOptions) => {

packages/openapi-ts-tests/test/__snapshots__/3.0.x/plugins/@tanstack/angular-query-experimental/asClass/@tanstack/angular-query-experimental.gen.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,9 @@ export const callWithDescriptionsMutation = (options?: Partial<Options<CallWithD
283283

284284
export const deprecatedCallQueryKey = (options: Options<DeprecatedCallData>) => createQueryKey('deprecatedCall', options);
285285

286+
/**
287+
* @deprecated
288+
*/
286289
export const deprecatedCallOptions = (options: Options<DeprecatedCallData>) => {
287290
return queryOptions({
288291
queryFn: async ({ queryKey, signal }) => {
@@ -298,6 +301,9 @@ export const deprecatedCallOptions = (options: Options<DeprecatedCallData>) => {
298301
});
299302
};
300303

304+
/**
305+
* @deprecated
306+
*/
301307
export const deprecatedCallMutation = (options?: Partial<Options<DeprecatedCallData>>): MutationOptions<unknown, DefaultError, Options<DeprecatedCallData>> => {
302308
const mutationOptions: MutationOptions<unknown, DefaultError, Options<DeprecatedCallData>> = {
303309
mutationFn: async (localOptions) => {
@@ -1113,6 +1119,9 @@ export const nonAsciiæøåÆøÅöôêÊ字符串Mutation = (options?: Partial<
11131119
return mutationOptions;
11141120
};
11151121

1122+
/**
1123+
* Login User
1124+
*/
11161125
export const putWithFormUrlEncodedMutation = (options?: Partial<Options<PutWithFormUrlEncodedData>>): MutationOptions<unknown, DefaultError, Options<PutWithFormUrlEncodedData>> => {
11171126
const mutationOptions: MutationOptions<unknown, DefaultError, Options<PutWithFormUrlEncodedData>> = {
11181127
mutationFn: async (localOptions) => {

packages/openapi-ts-tests/test/__snapshots__/3.0.x/plugins/@tanstack/angular-query-experimental/axios/@tanstack/angular-query-experimental.gen.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,9 @@ export const callWithDescriptionsMutation = (options?: Partial<Options<CallWithD
284284

285285
export const deprecatedCallQueryKey = (options: Options<DeprecatedCallData>) => createQueryKey('deprecatedCall', options);
286286

287+
/**
288+
* @deprecated
289+
*/
287290
export const deprecatedCallOptions = (options: Options<DeprecatedCallData>) => {
288291
return queryOptions({
289292
queryFn: async ({ queryKey, signal }) => {
@@ -299,6 +302,9 @@ export const deprecatedCallOptions = (options: Options<DeprecatedCallData>) => {
299302
});
300303
};
301304

305+
/**
306+
* @deprecated
307+
*/
302308
export const deprecatedCallMutation = (options?: Partial<Options<DeprecatedCallData>>): MutationOptions<unknown, AxiosError<DefaultError>, Options<DeprecatedCallData>> => {
303309
const mutationOptions: MutationOptions<unknown, AxiosError<DefaultError>, Options<DeprecatedCallData>> = {
304310
mutationFn: async (localOptions) => {
@@ -1114,6 +1120,9 @@ export const nonAsciiæøåÆøÅöôêÊ字符串Mutation = (options?: Partial<
11141120
return mutationOptions;
11151121
};
11161122

1123+
/**
1124+
* Login User
1125+
*/
11171126
export const putWithFormUrlEncodedMutation = (options?: Partial<Options<PutWithFormUrlEncodedData>>): MutationOptions<unknown, AxiosError<DefaultError>, Options<PutWithFormUrlEncodedData>> => {
11181127
const mutationOptions: MutationOptions<unknown, AxiosError<DefaultError>, Options<PutWithFormUrlEncodedData>> = {
11191128
mutationFn: async (localOptions) => {

0 commit comments

Comments
 (0)