@kubb/plugin-react-query 4.22.1 → 4.22.3

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.
Files changed (58) hide show
  1. package/dist/{components-B6Ze18_y.cjs → components-4AuOG0-B.cjs} +17 -17
  2. package/dist/components-4AuOG0-B.cjs.map +1 -0
  3. package/dist/{components-Bz8jAFux.js → components-B1qUEUDQ.js} +17 -17
  4. package/dist/components-B1qUEUDQ.js.map +1 -0
  5. package/dist/components.cjs +1 -1
  6. package/dist/components.js +1 -1
  7. package/dist/{generators-DtDEbt56.cjs → generators-D1_YChnq.cjs} +2 -2
  8. package/dist/{generators-DtDEbt56.cjs.map → generators-D1_YChnq.cjs.map} +1 -1
  9. package/dist/{generators-DTkvanZK.js → generators-OMqW9ebl.js} +2 -2
  10. package/dist/{generators-DTkvanZK.js.map → generators-OMqW9ebl.js.map} +1 -1
  11. package/dist/generators.cjs +1 -1
  12. package/dist/generators.js +1 -1
  13. package/dist/index.cjs +2 -2
  14. package/dist/index.js +2 -2
  15. package/package.json +7 -7
  16. package/src/components/InfiniteQuery.tsx +2 -2
  17. package/src/components/InfiniteQueryOptions.tsx +4 -4
  18. package/src/components/Mutation.tsx +1 -1
  19. package/src/components/MutationOptions.tsx +2 -2
  20. package/src/components/Query.tsx +2 -2
  21. package/src/components/QueryOptions.tsx +4 -4
  22. package/src/components/SuspenseInfiniteQuery.tsx +2 -2
  23. package/src/components/SuspenseInfiniteQueryOptions.tsx +4 -4
  24. package/src/components/SuspenseQuery.tsx +2 -2
  25. package/src/generators/__snapshots__/clientDataReturnTypeFull.ts +2 -2
  26. package/src/generators/__snapshots__/clientGetImportPath.ts +2 -2
  27. package/src/generators/__snapshots__/clientPostImportPath.ts +2 -2
  28. package/src/generators/__snapshots__/createUsersWithListInput.ts +2 -2
  29. package/src/generators/__snapshots__/createUsersWithListInputAsQuery.ts +2 -2
  30. package/src/generators/__snapshots__/findByStatusAllOptional.ts +2 -2
  31. package/src/generators/__snapshots__/findByStatusAllOptionalInline.ts +2 -2
  32. package/src/generators/__snapshots__/findByTags.ts +2 -2
  33. package/src/generators/__snapshots__/findByTagsObject.ts +2 -2
  34. package/src/generators/__snapshots__/findByTagsPathParamsObject.ts +2 -2
  35. package/src/generators/__snapshots__/findByTagsTemplateString.ts +2 -2
  36. package/src/generators/__snapshots__/findByTagsWithCustomOptions.ts +2 -2
  37. package/src/generators/__snapshots__/findByTagsWithCustomQueryKey.ts +2 -2
  38. package/src/generators/__snapshots__/findByTagsWithZod.ts +2 -2
  39. package/src/generators/__snapshots__/findInfiniteByStatusAllOptional.ts +2 -2
  40. package/src/generators/__snapshots__/findInfiniteByTags.ts +2 -2
  41. package/src/generators/__snapshots__/findInfiniteByTagsCursor.ts +3 -3
  42. package/src/generators/__snapshots__/findInfiniteByTagsNextAndPreviousParam.ts +2 -2
  43. package/src/generators/__snapshots__/findInfiniteByTagsNextParam.ts +2 -2
  44. package/src/generators/__snapshots__/findInfiniteByTagsWithCustomOptions.ts +2 -2
  45. package/src/generators/__snapshots__/findSuspenseByStatusAllOptional.ts +2 -2
  46. package/src/generators/__snapshots__/findSuspenseByTags.ts +2 -2
  47. package/src/generators/__snapshots__/findSuspenseByTagsWithCustomOptions.ts +2 -2
  48. package/src/generators/__snapshots__/findSuspenseInfiniteByStatusAllOptional.ts +2 -2
  49. package/src/generators/__snapshots__/findSuspenseInfiniteByTags.ts +2 -2
  50. package/src/generators/__snapshots__/findSuspenseInfiniteByTagsCursor.ts +2 -2
  51. package/src/generators/__snapshots__/findSuspenseInfiniteByTagsWithCustomOptions.ts +2 -2
  52. package/src/generators/__snapshots__/getPetIdCamelCase.ts +2 -2
  53. package/src/generators/__snapshots__/postAsQuery.ts +2 -2
  54. package/src/generators/__snapshots__/updatePetById.ts +2 -2
  55. package/src/generators/__snapshots__/updatePetByIdPathParamsObject.ts +2 -2
  56. package/src/generators/__snapshots__/updatePetByIdWithCustomOptions.ts +2 -2
  57. package/dist/components-B6Ze18_y.cjs.map +0 -1
  58. package/dist/components-Bz8jAFux.js.map +0 -1
@@ -68,8 +68,8 @@ function getParams({ paramsType, paramsCasing, pathParamsType, typeSchemas }: Ge
68
68
  },
69
69
  config: {
70
70
  type: typeSchemas.request?.name
71
- ? `Partial<RequestConfig<${typeSchemas.request?.name}>> & { client?: typeof fetch }`
72
- : 'Partial<RequestConfig> & { client?: typeof fetch }',
71
+ ? `Partial<RequestConfig<${typeSchemas.request?.name}>> & { client?: Client }`
72
+ : 'Partial<RequestConfig> & { client?: Client }',
73
73
  default: '{}',
74
74
  },
75
75
  })
@@ -106,8 +106,8 @@ function getParams({ paramsType, paramsCasing, pathParamsType, typeSchemas }: Ge
106
106
  : undefined,
107
107
  config: {
108
108
  type: typeSchemas.request?.name
109
- ? `Partial<RequestConfig<${typeSchemas.request?.name}>> & { client?: typeof fetch }`
110
- : 'Partial<RequestConfig> & { client?: typeof fetch }',
109
+ ? `Partial<RequestConfig<${typeSchemas.request?.name}>> & { client?: Client }`
110
+ : 'Partial<RequestConfig> & { client?: Client }',
111
111
  default: '{}',
112
112
  },
113
113
  })
@@ -74,7 +74,7 @@ function getParams({ paramsType, paramsCasing, pathParamsType, dataReturnType, t
74
74
  type: `
75
75
  {
76
76
  query?: Partial<UseSuspenseQueryOptions<${[TData, TError, 'TData', 'TQueryKey'].join(', ')}>> & { client?: QueryClient },
77
- client?: ${typeSchemas.request?.name ? `Partial<RequestConfig<${typeSchemas.request?.name}>> & { client?: typeof fetch }` : 'Partial<RequestConfig> & { client?: typeof fetch }'}
77
+ client?: ${typeSchemas.request?.name ? `Partial<RequestConfig<${typeSchemas.request?.name}>> & { client?: Client }` : 'Partial<RequestConfig> & { client?: Client }'}
78
78
  }
79
79
  `,
80
80
  default: '{}',
@@ -115,7 +115,7 @@ function getParams({ paramsType, paramsCasing, pathParamsType, dataReturnType, t
115
115
  type: `
116
116
  {
117
117
  query?: Partial<UseSuspenseQueryOptions<${[TData, TError, 'TData', 'TQueryKey'].join(', ')}>> & { client?: QueryClient },
118
- client?: ${typeSchemas.request?.name ? `Partial<RequestConfig<${typeSchemas.request?.name}>> & { client?: typeof fetch }` : 'Partial<RequestConfig> & { client?: typeof fetch }'}
118
+ client?: ${typeSchemas.request?.name ? `Partial<RequestConfig<${typeSchemas.request?.name}>> & { client?: Client }` : 'Partial<RequestConfig> & { client?: Client }'}
119
119
  }
120
120
  `,
121
121
  default: '{}',
@@ -36,7 +36,7 @@ export async function findPetsByTags(
36
36
  export function findPetsByTagsQueryOptions(
37
37
  headers: FindPetsByTagsHeaderParams,
38
38
  params?: FindPetsByTagsQueryParams,
39
- config: Partial<RequestConfig> & { client?: typeof fetch } = {},
39
+ config: Partial<RequestConfig> & { client?: Client } = {},
40
40
  ) {
41
41
  const queryKey = findPetsByTagsQueryKey(params)
42
42
  return queryOptions<
@@ -69,7 +69,7 @@ export function useFindPetsByTags<
69
69
  query?: Partial<QueryObserverOptions<ResponseConfig<FindPetsByTagsQueryResponse>, ResponseErrorConfig<FindPetsByTags400>, TData, TQueryData, TQueryKey>> & {
70
70
  client?: QueryClient
71
71
  }
72
- client?: Partial<RequestConfig> & { client?: typeof fetch }
72
+ client?: Partial<RequestConfig> & { client?: Client }
73
73
  } = {},
74
74
  ) {
75
75
  const { query: queryConfig = {}, client: config = {} } = options ?? {}
@@ -36,7 +36,7 @@ export async function findPetsByTags(
36
36
  export function findPetsByTagsQueryOptions(
37
37
  headers: FindPetsByTagsHeaderParams,
38
38
  params?: FindPetsByTagsQueryParams,
39
- config: Partial<RequestConfig> & { client?: typeof fetch } = {},
39
+ config: Partial<RequestConfig> & { client?: Client } = {},
40
40
  ) {
41
41
  const queryKey = findPetsByTagsQueryKey(params)
42
42
  return queryOptions<FindPetsByTagsQueryResponse, ResponseErrorConfig<FindPetsByTags400>, FindPetsByTagsQueryResponse, typeof queryKey>({
@@ -64,7 +64,7 @@ export function useFindPetsByTags<
64
64
  query?: Partial<QueryObserverOptions<FindPetsByTagsQueryResponse, ResponseErrorConfig<FindPetsByTags400>, TData, TQueryData, TQueryKey>> & {
65
65
  client?: QueryClient
66
66
  }
67
- client?: Partial<RequestConfig> & { client?: typeof fetch }
67
+ client?: Partial<RequestConfig> & { client?: Client }
68
68
  } = {},
69
69
  ) {
70
70
  const { query: queryConfig = {}, client: config = {} } = options ?? {}
@@ -36,7 +36,7 @@ export async function updatePetWithForm(
36
36
  }
37
37
 
38
38
  export function updatePetWithFormMutationOptions<TContext = unknown>(
39
- config: Partial<RequestConfig<UpdatePetWithFormMutationRequest>> & { client?: typeof fetch } = {},
39
+ config: Partial<RequestConfig<UpdatePetWithFormMutationRequest>> & { client?: Client } = {},
40
40
  ) {
41
41
  const mutationKey = updatePetWithFormMutationKey()
42
42
  return mutationOptions<
@@ -64,7 +64,7 @@ export function useUpdatePetWithForm<TContext>(
64
64
  { petId: UpdatePetWithFormPathParams['petId']; data?: UpdatePetWithFormMutationRequest; params?: UpdatePetWithFormQueryParams },
65
65
  TContext
66
66
  > & { client?: QueryClient }
67
- client?: Partial<RequestConfig<UpdatePetWithFormMutationRequest>> & { client?: typeof fetch }
67
+ client?: Partial<RequestConfig<UpdatePetWithFormMutationRequest>> & { client?: Client }
68
68
  } = {},
69
69
  ) {
70
70
  const { mutation = {}, client: config = {} } = options ?? {}
@@ -34,7 +34,7 @@ export async function createUsersWithListInput(
34
34
  }
35
35
 
36
36
  export function createUsersWithListInputMutationOptions<TContext = unknown>(
37
- config: Partial<RequestConfig<CreateUsersWithListInputMutationRequest>> & { client?: typeof fetch } = {},
37
+ config: Partial<RequestConfig<CreateUsersWithListInputMutationRequest>> & { client?: Client } = {},
38
38
  ) {
39
39
  const mutationKey = createUsersWithListInputMutationKey()
40
40
  return mutationOptions<CreateUsersWithListInputMutationResponse, ResponseErrorConfig<Error>, { data?: CreateUsersWithListInputMutationRequest }, TContext>({
@@ -58,7 +58,7 @@ export function useCreateUsersWithListInput<TContext>(
58
58
  { data?: CreateUsersWithListInputMutationRequest },
59
59
  TContext
60
60
  > & { client?: QueryClient }
61
- client?: Partial<RequestConfig<CreateUsersWithListInputMutationRequest>> & { client?: typeof fetch }
61
+ client?: Partial<RequestConfig<CreateUsersWithListInputMutationRequest>> & { client?: Client }
62
62
  } = {},
63
63
  ) {
64
64
  const { mutation = {}, client: config = {} } = options ?? {}
@@ -36,7 +36,7 @@ export async function createUsersWithListInput(
36
36
 
37
37
  export function createUsersWithListInputQueryOptions(
38
38
  data?: CreateUsersWithListInputMutationRequest,
39
- config: Partial<RequestConfig<CreateUsersWithListInputMutationRequest>> & { client?: typeof fetch } = {},
39
+ config: Partial<RequestConfig<CreateUsersWithListInputMutationRequest>> & { client?: Client } = {},
40
40
  ) {
41
41
  const queryKey = createUsersWithListInputQueryKey(data)
42
42
  return queryOptions<CreateUsersWithListInputMutationResponse, ResponseErrorConfig<Error>, CreateUsersWithListInputMutationResponse, typeof queryKey>({
@@ -63,7 +63,7 @@ export function useCreateUsersWithListInput<
63
63
  query?: Partial<QueryObserverOptions<CreateUsersWithListInputMutationResponse, ResponseErrorConfig<Error>, TData, TQueryData, TQueryKey>> & {
64
64
  client?: QueryClient
65
65
  }
66
- client?: Partial<RequestConfig<CreateUsersWithListInputMutationRequest>> & { client?: typeof fetch }
66
+ client?: Partial<RequestConfig<CreateUsersWithListInputMutationRequest>> & { client?: Client }
67
67
  } = {},
68
68
  ) {
69
69
  const { query: queryConfig = {}, client: config = {} } = options ?? {}
@@ -30,7 +30,7 @@ export async function findPetsByStatus({ params }: { params?: FindPetsByStatusQu
30
30
 
31
31
  export function findPetsByStatusQueryOptions(
32
32
  { params }: { params?: FindPetsByStatusQueryParams } = {},
33
- config: Partial<RequestConfig> & { client?: typeof fetch } = {},
33
+ config: Partial<RequestConfig> & { client?: Client } = {},
34
34
  ) {
35
35
  const queryKey = findPetsByStatusQueryKey(params)
36
36
  return queryOptions<FindPetsByStatusQueryResponse, ResponseErrorConfig<FindPetsByStatus400>, FindPetsByStatusQueryResponse, typeof queryKey>({
@@ -57,7 +57,7 @@ export function useFindPetsByStatus<
57
57
  query?: Partial<QueryObserverOptions<FindPetsByStatusQueryResponse, ResponseErrorConfig<FindPetsByStatus400>, TData, TQueryData, TQueryKey>> & {
58
58
  client?: QueryClient
59
59
  }
60
- client?: Partial<RequestConfig> & { client?: typeof fetch }
60
+ client?: Partial<RequestConfig> & { client?: Client }
61
61
  } = {},
62
62
  ) {
63
63
  const { query: queryConfig = {}, client: config = {} } = options ?? {}
@@ -28,7 +28,7 @@ export async function findPetsByStatus(params?: FindPetsByStatusQueryParams, con
28
28
  return findPetsByStatusQueryResponse.parse(res.data)
29
29
  }
30
30
 
31
- export function findPetsByStatusQueryOptions(params?: FindPetsByStatusQueryParams, config: Partial<RequestConfig> & { client?: typeof fetch } = {}) {
31
+ export function findPetsByStatusQueryOptions(params?: FindPetsByStatusQueryParams, config: Partial<RequestConfig> & { client?: Client } = {}) {
32
32
  const queryKey = findPetsByStatusQueryKey(params)
33
33
  return queryOptions<FindPetsByStatusQueryResponse, ResponseErrorConfig<FindPetsByStatus400>, FindPetsByStatusQueryResponse, typeof queryKey>({
34
34
  queryKey,
@@ -54,7 +54,7 @@ export function useFindPetsByStatus<
54
54
  query?: Partial<QueryObserverOptions<FindPetsByStatusQueryResponse, ResponseErrorConfig<FindPetsByStatus400>, TData, TQueryData, TQueryKey>> & {
55
55
  client?: QueryClient
56
56
  }
57
- client?: Partial<RequestConfig> & { client?: typeof fetch }
57
+ client?: Partial<RequestConfig> & { client?: Client }
58
58
  } = {},
59
59
  ) {
60
60
  const { query: queryConfig = {}, client: config = {} } = options ?? {}
@@ -36,7 +36,7 @@ export async function findPetsByTags(
36
36
  export function findPetsByTagsQueryOptions(
37
37
  headers: FindPetsByTagsHeaderParams,
38
38
  params?: FindPetsByTagsQueryParams,
39
- config: Partial<RequestConfig> & { client?: typeof fetch } = {},
39
+ config: Partial<RequestConfig> & { client?: Client } = {},
40
40
  ) {
41
41
  const queryKey = findPetsByTagsQueryKey(params)
42
42
  return queryOptions<FindPetsByTagsQueryResponse, ResponseErrorConfig<FindPetsByTags400>, FindPetsByTagsQueryResponse, typeof queryKey>({
@@ -64,7 +64,7 @@ export function useFindPetsByTags<
64
64
  query?: Partial<QueryObserverOptions<FindPetsByTagsQueryResponse, ResponseErrorConfig<FindPetsByTags400>, TData, TQueryData, TQueryKey>> & {
65
65
  client?: QueryClient
66
66
  }
67
- client?: Partial<RequestConfig> & { client?: typeof fetch }
67
+ client?: Partial<RequestConfig> & { client?: Client }
68
68
  } = {},
69
69
  ) {
70
70
  const { query: queryConfig = {}, client: config = {} } = options ?? {}
@@ -34,7 +34,7 @@ export async function findPetsByTags(
34
34
 
35
35
  export function findPetsByTagsQueryOptions(
36
36
  { headers, params }: { headers: FindPetsByTagsHeaderParams; params?: FindPetsByTagsQueryParams },
37
- config: Partial<RequestConfig> & { client?: typeof fetch } = {},
37
+ config: Partial<RequestConfig> & { client?: Client } = {},
38
38
  ) {
39
39
  const queryKey = findPetsByTagsQueryKey(params)
40
40
  return queryOptions<FindPetsByTagsQueryResponse, ResponseErrorConfig<FindPetsByTags400>, FindPetsByTagsQueryResponse, typeof queryKey>({
@@ -61,7 +61,7 @@ export function useFindPetsByTags<
61
61
  query?: Partial<QueryObserverOptions<FindPetsByTagsQueryResponse, ResponseErrorConfig<FindPetsByTags400>, TData, TQueryData, TQueryKey>> & {
62
62
  client?: QueryClient
63
63
  }
64
- client?: Partial<RequestConfig> & { client?: typeof fetch }
64
+ client?: Partial<RequestConfig> & { client?: Client }
65
65
  } = {},
66
66
  ) {
67
67
  const { query: queryConfig = {}, client: config = {} } = options ?? {}
@@ -36,7 +36,7 @@ export async function findPetsByTags(
36
36
  export function findPetsByTagsQueryOptions(
37
37
  headers: FindPetsByTagsHeaderParams,
38
38
  params?: FindPetsByTagsQueryParams,
39
- config: Partial<RequestConfig> & { client?: typeof fetch } = {},
39
+ config: Partial<RequestConfig> & { client?: Client } = {},
40
40
  ) {
41
41
  const queryKey = findPetsByTagsQueryKey(params)
42
42
  return queryOptions<FindPetsByTagsQueryResponse, ResponseErrorConfig<FindPetsByTags400>, FindPetsByTagsQueryResponse, typeof queryKey>({
@@ -64,7 +64,7 @@ export function useFindPetsByTags<
64
64
  query?: Partial<QueryObserverOptions<FindPetsByTagsQueryResponse, ResponseErrorConfig<FindPetsByTags400>, TData, TQueryData, TQueryKey>> & {
65
65
  client?: QueryClient
66
66
  }
67
- client?: Partial<RequestConfig> & { client?: typeof fetch }
67
+ client?: Partial<RequestConfig> & { client?: Client }
68
68
  } = {},
69
69
  ) {
70
70
  const { query: queryConfig = {}, client: config = {} } = options ?? {}
@@ -37,7 +37,7 @@ export async function findPetsByTags(
37
37
  export function findPetsByTagsQueryOptions(
38
38
  headers: FindPetsByTagsHeaderParams,
39
39
  params?: FindPetsByTagsQueryParams,
40
- config: Partial<RequestConfig> & { client?: typeof fetch } = {},
40
+ config: Partial<RequestConfig> & { client?: Client } = {},
41
41
  ) {
42
42
  const queryKey = findPetsByTagsQueryKey(params)
43
43
  return queryOptions<FindPetsByTagsQueryResponse, ResponseErrorConfig<FindPetsByTags400>, FindPetsByTagsQueryResponse, typeof queryKey>({
@@ -65,7 +65,7 @@ export function useFindPetsByTags<
65
65
  query?: Partial<QueryObserverOptions<FindPetsByTagsQueryResponse, ResponseErrorConfig<FindPetsByTags400>, TData, TQueryData, TQueryKey>> & {
66
66
  client?: QueryClient
67
67
  }
68
- client?: Partial<RequestConfig> & { client?: typeof fetch }
68
+ client?: Partial<RequestConfig> & { client?: Client }
69
69
  } = {},
70
70
  ) {
71
71
  const { query: queryConfig = {}, client: config = {} } = options ?? {}
@@ -37,7 +37,7 @@ export async function findPetsByTags(
37
37
  export function findPetsByTagsQueryOptions(
38
38
  headers: FindPetsByTagsHeaderParams,
39
39
  params?: FindPetsByTagsQueryParams,
40
- config: Partial<RequestConfig> & { client?: typeof fetch } = {},
40
+ config: Partial<RequestConfig> & { client?: Client } = {},
41
41
  ) {
42
42
  const queryKey = findPetsByTagsQueryKey(params)
43
43
  return queryOptions<FindPetsByTagsQueryResponse, ResponseErrorConfig<FindPetsByTags400>, FindPetsByTagsQueryResponse, typeof queryKey>({
@@ -65,7 +65,7 @@ export function useFindPetsByTags<
65
65
  query?: Partial<QueryObserverOptions<FindPetsByTagsQueryResponse, ResponseErrorConfig<FindPetsByTags400>, TData, TQueryData, TQueryKey>> & {
66
66
  client?: QueryClient
67
67
  }
68
- client?: Partial<RequestConfig> & { client?: typeof fetch }
68
+ client?: Partial<RequestConfig> & { client?: Client }
69
69
  } = {},
70
70
  ) {
71
71
  const { query: queryConfig = {}, client: config = {} } = options ?? {}
@@ -36,7 +36,7 @@ export async function findPetsByTags(
36
36
  export function findPetsByTagsQueryOptions(
37
37
  headers: FindPetsByTagsHeaderParams,
38
38
  params?: FindPetsByTagsQueryParams,
39
- config: Partial<RequestConfig> & { client?: typeof fetch } = {},
39
+ config: Partial<RequestConfig> & { client?: Client } = {},
40
40
  ) {
41
41
  const queryKey = findPetsByTagsQueryKey(params)
42
42
  return queryOptions<FindPetsByTagsQueryResponse, ResponseErrorConfig<FindPetsByTags400>, FindPetsByTagsQueryResponse, typeof queryKey>({
@@ -64,7 +64,7 @@ export function useFindPetsByTags<
64
64
  query?: Partial<QueryObserverOptions<FindPetsByTagsQueryResponse, ResponseErrorConfig<FindPetsByTags400>, TData, TQueryData, TQueryKey>> & {
65
65
  client?: QueryClient
66
66
  }
67
- client?: Partial<RequestConfig> & { client?: typeof fetch }
67
+ client?: Partial<RequestConfig> & { client?: Client }
68
68
  } = {},
69
69
  ) {
70
70
  const { query: queryConfig = {}, client: config = {} } = options ?? {}
@@ -36,7 +36,7 @@ export async function findPetsByTags(
36
36
  export function findPetsByTagsQueryOptions(
37
37
  headers: FindPetsByTagsHeaderParams,
38
38
  params?: FindPetsByTagsQueryParams,
39
- config: Partial<RequestConfig> & { client?: typeof fetch } = {},
39
+ config: Partial<RequestConfig> & { client?: Client } = {},
40
40
  ) {
41
41
  const queryKey = findPetsByTagsQueryKey(params)
42
42
  return queryOptions<FindPetsByTagsQueryResponse, ResponseErrorConfig<FindPetsByTags400>, FindPetsByTagsQueryResponse, typeof queryKey>({
@@ -64,7 +64,7 @@ export function useFindPetsByTags<
64
64
  query?: Partial<QueryObserverOptions<FindPetsByTagsQueryResponse, ResponseErrorConfig<FindPetsByTags400>, TData, TQueryData, TQueryKey>> & {
65
65
  client?: QueryClient
66
66
  }
67
- client?: Partial<RequestConfig> & { client?: typeof fetch }
67
+ client?: Partial<RequestConfig> & { client?: Client }
68
68
  } = {},
69
69
  ) {
70
70
  const { query: queryConfig = {}, client: config = {} } = options ?? {}
@@ -34,7 +34,7 @@ export async function findPetsByStatusInfinite(
34
34
 
35
35
  export function findPetsByStatusInfiniteQueryOptions(
36
36
  { params }: { params?: FindPetsByStatusQueryParams } = {},
37
- config: Partial<RequestConfig> & { client?: typeof fetch } = {},
37
+ config: Partial<RequestConfig> & { client?: Client } = {},
38
38
  ) {
39
39
  const queryKey = findPetsByStatusInfiniteQueryKey(params)
40
40
  return infiniteQueryOptions<
@@ -75,7 +75,7 @@ export function useFindPetsByStatusInfinite<
75
75
  { params }: { params?: FindPetsByStatusQueryParams } = {},
76
76
  options: {
77
77
  query?: Partial<InfiniteQueryObserverOptions<TQueryFnData, TError, TData, TQueryKey, TPageParam>> & { client?: QueryClient }
78
- client?: Partial<RequestConfig> & { client?: typeof fetch }
78
+ client?: Partial<RequestConfig> & { client?: Client }
79
79
  } = {},
80
80
  ) {
81
81
  const { query: queryConfig = {}, client: config = {} } = options ?? {}
@@ -36,7 +36,7 @@ export async function findPetsByTagsInfinite(
36
36
  export function findPetsByTagsInfiniteQueryOptions(
37
37
  headers: FindPetsByTagsHeaderParams,
38
38
  params?: FindPetsByTagsQueryParams,
39
- config: Partial<RequestConfig> & { client?: typeof fetch } = {},
39
+ config: Partial<RequestConfig> & { client?: Client } = {},
40
40
  ) {
41
41
  const queryKey = findPetsByTagsInfiniteQueryKey(params)
42
42
  return infiniteQueryOptions<
@@ -78,7 +78,7 @@ export function useFindPetsByTagsInfinite<
78
78
  params?: FindPetsByTagsQueryParams,
79
79
  options: {
80
80
  query?: Partial<InfiniteQueryObserverOptions<TQueryFnData, TError, TData, TQueryKey, TPageParam>> & { client?: QueryClient }
81
- client?: Partial<RequestConfig> & { client?: typeof fetch }
81
+ client?: Partial<RequestConfig> & { client?: Client }
82
82
  } = {},
83
83
  ) {
84
84
  const { query: queryConfig = {}, client: config = {} } = options ?? {}
@@ -19,7 +19,7 @@ export type FindPetsByTagsInfiniteQueryKey = ReturnType<typeof findPetsByTagsInf
19
19
  export async function findPetsByTagsInfinite(
20
20
  headers: FindPetsByTagsHeaderParams,
21
21
  params?: FindPetsByTagsQueryParams,
22
- config: Partial<RequestConfig> & { client?: typeof fetch } = {},
22
+ config: Partial<RequestConfig> & { client?: Client } = {},
23
23
  ) {
24
24
  const { client: request = fetch, ...requestConfig } = config
25
25
 
@@ -36,7 +36,7 @@ export async function findPetsByTagsInfinite(
36
36
  export function findPetsByTagsInfiniteQueryOptions(
37
37
  headers: FindPetsByTagsHeaderParams,
38
38
  params?: FindPetsByTagsQueryParams,
39
- config: Partial<RequestConfig> & { client?: typeof fetch } = {},
39
+ config: Partial<RequestConfig> & { client?: Client } = {},
40
40
  ) {
41
41
  const queryKey = findPetsByTagsInfiniteQueryKey(params)
42
42
  return infiniteQueryOptions<
@@ -78,7 +78,7 @@ export function useFindPetsByTagsInfinite<
78
78
  params?: FindPetsByTagsQueryParams,
79
79
  options: {
80
80
  query?: Partial<InfiniteQueryObserverOptions<TQueryFnData, TError, TData, TQueryKey, TPageParam>> & { client?: QueryClient }
81
- client?: Partial<RequestConfig> & { client?: typeof fetch }
81
+ client?: Partial<RequestConfig> & { client?: Client }
82
82
  } = {},
83
83
  ) {
84
84
  const { query: queryConfig = {}, client: config = {} } = options ?? {}
@@ -36,7 +36,7 @@ export async function findPetsByTagsInfinite(
36
36
  export function findPetsByTagsInfiniteQueryOptions(
37
37
  headers: FindPetsByTagsHeaderParams,
38
38
  params?: FindPetsByTagsQueryParams,
39
- config: Partial<RequestConfig> & { client?: typeof fetch } = {},
39
+ config: Partial<RequestConfig> & { client?: Client } = {},
40
40
  ) {
41
41
  const queryKey = findPetsByTagsInfiniteQueryKey(params)
42
42
  return infiniteQueryOptions<
@@ -78,7 +78,7 @@ export function useFindPetsByTagsInfinite<
78
78
  params?: FindPetsByTagsQueryParams,
79
79
  options: {
80
80
  query?: Partial<InfiniteQueryObserverOptions<TQueryFnData, TError, TData, TQueryKey, TPageParam>> & { client?: QueryClient }
81
- client?: Partial<RequestConfig> & { client?: typeof fetch }
81
+ client?: Partial<RequestConfig> & { client?: Client }
82
82
  } = {},
83
83
  ) {
84
84
  const { query: queryConfig = {}, client: config = {} } = options ?? {}
@@ -36,7 +36,7 @@ export async function findPetsByTagsInfinite(
36
36
  export function findPetsByTagsInfiniteQueryOptions(
37
37
  headers: FindPetsByTagsHeaderParams,
38
38
  params?: FindPetsByTagsQueryParams,
39
- config: Partial<RequestConfig> & { client?: typeof fetch } = {},
39
+ config: Partial<RequestConfig> & { client?: Client } = {},
40
40
  ) {
41
41
  const queryKey = findPetsByTagsInfiniteQueryKey(params)
42
42
  return infiniteQueryOptions<
@@ -77,7 +77,7 @@ export function useFindPetsByTagsInfinite<
77
77
  params?: FindPetsByTagsQueryParams,
78
78
  options: {
79
79
  query?: Partial<InfiniteQueryObserverOptions<TQueryFnData, TError, TData, TQueryKey, TPageParam>> & { client?: QueryClient }
80
- client?: Partial<RequestConfig> & { client?: typeof fetch }
80
+ client?: Partial<RequestConfig> & { client?: Client }
81
81
  } = {},
82
82
  ) {
83
83
  const { query: queryConfig = {}, client: config = {} } = options ?? {}
@@ -37,7 +37,7 @@ export async function findPetsByTagsInfinite(
37
37
  export function findPetsByTagsInfiniteQueryOptions(
38
38
  headers: FindPetsByTagsHeaderParams,
39
39
  params?: FindPetsByTagsQueryParams,
40
- config: Partial<RequestConfig> & { client?: typeof fetch } = {},
40
+ config: Partial<RequestConfig> & { client?: Client } = {},
41
41
  ) {
42
42
  const queryKey = findPetsByTagsInfiniteQueryKey(params)
43
43
  return infiniteQueryOptions<
@@ -79,7 +79,7 @@ export function useFindPetsByTagsInfinite<
79
79
  params?: FindPetsByTagsQueryParams,
80
80
  options: {
81
81
  query?: Partial<InfiniteQueryObserverOptions<TQueryFnData, TError, TData, TQueryKey, TPageParam>> & { client?: QueryClient }
82
- client?: Partial<RequestConfig> & { client?: typeof fetch }
82
+ client?: Partial<RequestConfig> & { client?: Client }
83
83
  } = {},
84
84
  ) {
85
85
  const { query: queryConfig = {}, client: config = {} } = options ?? {}
@@ -34,7 +34,7 @@ export async function findPetsByStatusSuspense(
34
34
 
35
35
  export function findPetsByStatusSuspenseQueryOptions(
36
36
  { params }: { params?: FindPetsByStatusQueryParams } = {},
37
- config: Partial<RequestConfig> & { client?: typeof fetch } = {},
37
+ config: Partial<RequestConfig> & { client?: Client } = {},
38
38
  ) {
39
39
  const queryKey = findPetsByStatusSuspenseQueryKey(params)
40
40
  return queryOptions<FindPetsByStatusQueryResponse, ResponseErrorConfig<FindPetsByStatus400>, FindPetsByStatusQueryResponse, typeof queryKey>({
@@ -57,7 +57,7 @@ export function useFindPetsByStatusSuspense<TData = FindPetsByStatusQueryRespons
57
57
  query?: Partial<UseSuspenseQueryOptions<FindPetsByStatusQueryResponse, ResponseErrorConfig<FindPetsByStatus400>, TData, TQueryKey>> & {
58
58
  client?: QueryClient
59
59
  }
60
- client?: Partial<RequestConfig> & { client?: typeof fetch }
60
+ client?: Partial<RequestConfig> & { client?: Client }
61
61
  } = {},
62
62
  ) {
63
63
  const { query: queryConfig = {}, client: config = {} } = options ?? {}
@@ -36,7 +36,7 @@ export async function findPetsByTagsSuspense(
36
36
  export function findPetsByTagsSuspenseQueryOptions(
37
37
  headers: FindPetsByTagsHeaderParams,
38
38
  params?: FindPetsByTagsQueryParams,
39
- config: Partial<RequestConfig> & { client?: typeof fetch } = {},
39
+ config: Partial<RequestConfig> & { client?: Client } = {},
40
40
  ) {
41
41
  const queryKey = findPetsByTagsSuspenseQueryKey(params)
42
42
  return queryOptions<FindPetsByTagsQueryResponse, ResponseErrorConfig<FindPetsByTags400>, FindPetsByTagsQueryResponse, typeof queryKey>({
@@ -58,7 +58,7 @@ export function useFindPetsByTagsSuspense<TData = FindPetsByTagsQueryResponse, T
58
58
  params?: FindPetsByTagsQueryParams,
59
59
  options: {
60
60
  query?: Partial<UseSuspenseQueryOptions<FindPetsByTagsQueryResponse, ResponseErrorConfig<FindPetsByTags400>, TData, TQueryKey>> & { client?: QueryClient }
61
- client?: Partial<RequestConfig> & { client?: typeof fetch }
61
+ client?: Partial<RequestConfig> & { client?: Client }
62
62
  } = {},
63
63
  ) {
64
64
  const { query: queryConfig = {}, client: config = {} } = options ?? {}
@@ -37,7 +37,7 @@ export async function findPetsByTagsSuspense(
37
37
  export function findPetsByTagsSuspenseQueryOptions(
38
38
  headers: FindPetsByTagsHeaderParams,
39
39
  params?: FindPetsByTagsQueryParams,
40
- config: Partial<RequestConfig> & { client?: typeof fetch } = {},
40
+ config: Partial<RequestConfig> & { client?: Client } = {},
41
41
  ) {
42
42
  const queryKey = findPetsByTagsSuspenseQueryKey(params)
43
43
  return queryOptions<FindPetsByTagsQueryResponse, ResponseErrorConfig<FindPetsByTags400>, FindPetsByTagsQueryResponse, typeof queryKey>({
@@ -59,7 +59,7 @@ export function useFindPetsByTagsSuspense<TData = FindPetsByTagsQueryResponse, T
59
59
  params?: FindPetsByTagsQueryParams,
60
60
  options: {
61
61
  query?: Partial<UseSuspenseQueryOptions<FindPetsByTagsQueryResponse, ResponseErrorConfig<FindPetsByTags400>, TData, TQueryKey>> & { client?: QueryClient }
62
- client?: Partial<RequestConfig> & { client?: typeof fetch }
62
+ client?: Partial<RequestConfig> & { client?: Client }
63
63
  } = {},
64
64
  ) {
65
65
  const { query: queryConfig = {}, client: config = {} } = options ?? {}
@@ -34,7 +34,7 @@ export async function findPetsByStatusSuspenseInfinite(
34
34
 
35
35
  export function findPetsByStatusSuspenseInfiniteQueryOptions(
36
36
  { params }: { params?: FindPetsByStatusQueryParams } = {},
37
- config: Partial<RequestConfig> & { client?: typeof fetch } = {},
37
+ config: Partial<RequestConfig> & { client?: Client } = {},
38
38
  ) {
39
39
  const queryKey = findPetsByStatusSuspenseInfiniteQueryKey(params)
40
40
  return infiniteQueryOptions<
@@ -75,7 +75,7 @@ export function useFindPetsByStatusSuspenseInfinite<
75
75
  { params }: { params?: FindPetsByStatusQueryParams } = {},
76
76
  options: {
77
77
  query?: Partial<UseSuspenseInfiniteQueryOptions<TQueryFnData, TError, TData, TQueryKey, TPageParam>> & { client?: QueryClient }
78
- client?: Partial<RequestConfig> & { client?: typeof fetch }
78
+ client?: Partial<RequestConfig> & { client?: Client }
79
79
  } = {},
80
80
  ) {
81
81
  const { query: queryConfig = {}, client: config = {} } = options ?? {}
@@ -37,7 +37,7 @@ export async function findPetsByTagsSuspenseInfinite(
37
37
  export function findPetsByTagsSuspenseInfiniteQueryOptions(
38
38
  headers: FindPetsByTagsHeaderParams,
39
39
  params?: FindPetsByTagsQueryParams,
40
- config: Partial<RequestConfig> & { client?: typeof fetch } = {},
40
+ config: Partial<RequestConfig> & { client?: Client } = {},
41
41
  ) {
42
42
  const queryKey = findPetsByTagsSuspenseInfiniteQueryKey(params)
43
43
  return infiniteQueryOptions<
@@ -79,7 +79,7 @@ export function useFindPetsByTagsSuspenseInfinite<
79
79
  params?: FindPetsByTagsQueryParams,
80
80
  options: {
81
81
  query?: Partial<UseSuspenseInfiniteQueryOptions<TQueryFnData, TError, TData, TQueryKey, TPageParam>> & { client?: QueryClient }
82
- client?: Partial<RequestConfig> & { client?: typeof fetch }
82
+ client?: Partial<RequestConfig> & { client?: Client }
83
83
  } = {},
84
84
  ) {
85
85
  const { query: queryConfig = {}, client: config = {} } = options ?? {}
@@ -37,7 +37,7 @@ export async function findPetsByTagsSuspenseInfinite(
37
37
  export function findPetsByTagsSuspenseInfiniteQueryOptions(
38
38
  headers: FindPetsByTagsHeaderParams,
39
39
  params?: FindPetsByTagsQueryParams,
40
- config: Partial<RequestConfig> & { client?: typeof fetch } = {},
40
+ config: Partial<RequestConfig> & { client?: Client } = {},
41
41
  ) {
42
42
  const queryKey = findPetsByTagsSuspenseInfiniteQueryKey(params)
43
43
  return infiniteQueryOptions<
@@ -79,7 +79,7 @@ export function useFindPetsByTagsSuspenseInfinite<
79
79
  params?: FindPetsByTagsQueryParams,
80
80
  options: {
81
81
  query?: Partial<UseSuspenseInfiniteQueryOptions<TQueryFnData, TError, TData, TQueryKey, TPageParam>> & { client?: QueryClient }
82
- client?: Partial<RequestConfig> & { client?: typeof fetch }
82
+ client?: Partial<RequestConfig> & { client?: Client }
83
83
  } = {},
84
84
  ) {
85
85
  const { query: queryConfig = {}, client: config = {} } = options ?? {}
@@ -38,7 +38,7 @@ export async function findPetsByTagsSuspenseInfinite(
38
38
  export function findPetsByTagsSuspenseInfiniteQueryOptions(
39
39
  headers: FindPetsByTagsHeaderParams,
40
40
  params?: FindPetsByTagsQueryParams,
41
- config: Partial<RequestConfig> & { client?: typeof fetch } = {},
41
+ config: Partial<RequestConfig> & { client?: Client } = {},
42
42
  ) {
43
43
  const queryKey = findPetsByTagsSuspenseInfiniteQueryKey(params)
44
44
  return infiniteQueryOptions<
@@ -80,7 +80,7 @@ export function useFindPetsByTagsSuspenseInfinite<
80
80
  params?: FindPetsByTagsQueryParams,
81
81
  options: {
82
82
  query?: Partial<UseSuspenseInfiniteQueryOptions<TQueryFnData, TError, TData, TQueryKey, TPageParam>> & { client?: QueryClient }
83
- client?: Partial<RequestConfig> & { client?: typeof fetch }
83
+ client?: Partial<RequestConfig> & { client?: Client }
84
84
  } = {},
85
85
  ) {
86
86
  const { query: queryConfig = {}, client: config = {} } = options ?? {}
@@ -29,7 +29,7 @@ export async function getPetById(petId: GetPetByIdPathParams['petId'], config: P
29
29
  return getPetByIdQueryResponse.parse(res.data)
30
30
  }
31
31
 
32
- export function getPetByIdQueryOptions(petId: GetPetByIdPathParams['petId'], config: Partial<RequestConfig> & { client?: typeof fetch } = {}) {
32
+ export function getPetByIdQueryOptions(petId: GetPetByIdPathParams['petId'], config: Partial<RequestConfig> & { client?: Client } = {}) {
33
33
  const queryKey = getPetByIdQueryKey(petId)
34
34
  return queryOptions<GetPetByIdQueryResponse, ResponseErrorConfig<GetPetById400 | GetPetById404>, GetPetByIdQueryResponse, typeof queryKey>({
35
35
  enabled: !!petId,
@@ -52,7 +52,7 @@ export function useGetPetById<TData = GetPetByIdQueryResponse, TQueryData = GetP
52
52
  query?: Partial<QueryObserverOptions<GetPetByIdQueryResponse, ResponseErrorConfig<GetPetById400 | GetPetById404>, TData, TQueryData, TQueryKey>> & {
53
53
  client?: QueryClient
54
54
  }
55
- client?: Partial<RequestConfig> & { client?: typeof fetch }
55
+ client?: Partial<RequestConfig> & { client?: Client }
56
56
  } = {},
57
57
  ) {
58
58
  const { query: queryConfig = {}, client: config = {} } = options ?? {}
@@ -43,7 +43,7 @@ export function updatePetWithFormQueryOptions(
43
43
  petId: UpdatePetWithFormPathParams['petId'],
44
44
  data?: UpdatePetWithFormMutationRequest,
45
45
  params?: UpdatePetWithFormQueryParams,
46
- config: Partial<RequestConfig<UpdatePetWithFormMutationRequest>> & { client?: typeof fetch } = {},
46
+ config: Partial<RequestConfig<UpdatePetWithFormMutationRequest>> & { client?: Client } = {},
47
47
  ) {
48
48
  const queryKey = updatePetWithFormQueryKey(petId, data, params)
49
49
  return queryOptions<UpdatePetWithFormMutationResponse, ResponseErrorConfig<UpdatePetWithForm405>, UpdatePetWithFormMutationResponse, typeof queryKey>({
@@ -72,7 +72,7 @@ export function useUpdatePetWithForm<
72
72
  query?: Partial<QueryObserverOptions<UpdatePetWithFormMutationResponse, ResponseErrorConfig<UpdatePetWithForm405>, TData, TQueryData, TQueryKey>> & {
73
73
  client?: QueryClient
74
74
  }
75
- client?: Partial<RequestConfig<UpdatePetWithFormMutationRequest>> & { client?: typeof fetch }
75
+ client?: Partial<RequestConfig<UpdatePetWithFormMutationRequest>> & { client?: Client }
76
76
  } = {},
77
77
  ) {
78
78
  const { query: queryConfig = {}, client: config = {} } = options ?? {}
@@ -36,7 +36,7 @@ export async function updatePetWithForm(
36
36
  }
37
37
 
38
38
  export function updatePetWithFormMutationOptions<TContext = unknown>(
39
- config: Partial<RequestConfig<UpdatePetWithFormMutationRequest>> & { client?: typeof fetch } = {},
39
+ config: Partial<RequestConfig<UpdatePetWithFormMutationRequest>> & { client?: Client } = {},
40
40
  ) {
41
41
  const mutationKey = updatePetWithFormMutationKey()
42
42
  return mutationOptions<
@@ -64,7 +64,7 @@ export function useUpdatePetWithForm<TContext>(
64
64
  { petId: UpdatePetWithFormPathParams['petId']; data?: UpdatePetWithFormMutationRequest; params?: UpdatePetWithFormQueryParams },
65
65
  TContext
66
66
  > & { client?: QueryClient }
67
- client?: Partial<RequestConfig<UpdatePetWithFormMutationRequest>> & { client?: typeof fetch }
67
+ client?: Partial<RequestConfig<UpdatePetWithFormMutationRequest>> & { client?: Client }
68
68
  } = {},
69
69
  ) {
70
70
  const { mutation = {}, client: config = {} } = options ?? {}