Skip to content

Commit

Permalink
Fix/query keys (#626)
Browse files Browse the repository at this point in the history
* feat!: replace `skipBy` by `exclude`, add `include`, replace `overrideBy` by `override` and replace `groupBy` by `group`

* chore: type fixes

* chore: update kubb.config for e2e

* fix: better querykeys

Use of path instead of resolvedPath for `@tanstack/react-query`
  • Loading branch information
stijnvanhulle authored Nov 12, 2023
1 parent 7d6e892 commit 61f2eae
Show file tree
Hide file tree
Showing 57 changed files with 102 additions and 97 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ type FindPetsByStatus = KubbQueryFactory<
type: 'query'
}
>
export const findPetsByStatusQueryKey = (params?: FindPetsByStatus['queryParams']) => [{ url: `/pet/findByStatus` }, ...(params ? [params] : [])] as const
export const findPetsByStatusQueryKey = (params?: FindPetsByStatus['queryParams']) => [{ url: '/pet/findByStatus' }, ...(params ? [params] : [])] as const
export type FindPetsByStatusQueryKey = ReturnType<typeof findPetsByStatusQueryKey>
export function findPetsByStatusQueryOptions<
TQueryFnData extends FindPetsByStatus['data'] = FindPetsByStatus['data'],
Expand Down Expand Up @@ -85,7 +85,7 @@ type FindPetsByStatusInfinite = KubbQueryFactory<
}
>
export const findPetsByStatusInfiniteQueryKey = (params?: FindPetsByStatusInfinite['queryParams']) =>
[{ url: `/pet/findByStatus` }, ...(params ? [params] : [])] as const
[{ url: '/pet/findByStatus' }, ...(params ? [params] : [])] as const
export type FindPetsByStatusInfiniteQueryKey = ReturnType<typeof findPetsByStatusInfiniteQueryKey>
export function findPetsByStatusInfiniteQueryOptions<
TQueryFnData extends FindPetsByStatusInfinite['data'] = FindPetsByStatusInfinite['data'],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ type FindPetsByTags = KubbQueryFactory<
type: 'query'
}
>
export const findPetsByTagsQueryKey = (params?: FindPetsByTags['queryParams']) => [{ url: `/pet/findByTags` }, ...(params ? [params] : [])] as const
export const findPetsByTagsQueryKey = (params?: FindPetsByTags['queryParams']) => [{ url: '/pet/findByTags' }, ...(params ? [params] : [])] as const
export type FindPetsByTagsQueryKey = ReturnType<typeof findPetsByTagsQueryKey>
export function findPetsByTagsQueryOptions<
TQueryFnData extends FindPetsByTags['data'] = FindPetsByTags['data'],
Expand Down Expand Up @@ -92,7 +92,7 @@ type FindPetsByTagsInfinite = KubbQueryFactory<
}
>
export const findPetsByTagsInfiniteQueryKey = (params?: FindPetsByTagsInfinite['queryParams']) =>
[{ url: `/pet/findByTags` }, ...(params ? [params] : [])] as const
[{ url: '/pet/findByTags' }, ...(params ? [params] : [])] as const
export type FindPetsByTagsInfiniteQueryKey = ReturnType<typeof findPetsByTagsInfiniteQueryKey>
export function findPetsByTagsInfiniteQueryOptions<
TQueryFnData extends FindPetsByTagsInfinite['data'] = FindPetsByTagsInfinite['data'],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ type GetPetById = KubbQueryFactory<GetPetByIdQueryResponse, GetPetById400 | GetP
dataReturnType: 'full'
type: 'query'
}>
export const getPetByIdQueryKey = (petId: GetPetByIdPathParams['petId']) => [{ url: `/pet/${petId}`, params: { petId: petId } }] as const
export const getPetByIdQueryKey = (petId: GetPetByIdPathParams['petId']) => [{ url: '/pet/:petId', params: { petId: petId } }] as const
export type GetPetByIdQueryKey = ReturnType<typeof getPetByIdQueryKey>
export function getPetByIdQueryOptions<
TQueryFnData extends GetPetById['data'] = GetPetById['data'],
Expand Down Expand Up @@ -74,7 +74,7 @@ type GetPetByIdInfinite = KubbQueryFactory<
type: 'query'
}
>
export const getPetByIdInfiniteQueryKey = (petId: GetPetByIdPathParams['petId']) => [{ url: `/pet/${petId}`, params: { petId: petId } }] as const
export const getPetByIdInfiniteQueryKey = (petId: GetPetByIdPathParams['petId']) => [{ url: '/pet/:petId', params: { petId: petId } }] as const
export type GetPetByIdInfiniteQueryKey = ReturnType<typeof getPetByIdInfiniteQueryKey>
export function getPetByIdInfiniteQueryOptions<
TQueryFnData extends GetPetByIdInfinite['data'] = GetPetByIdInfinite['data'],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ type GetUserByName = KubbQueryFactory<
type: 'query'
}
>
export const getUserByNameQueryKey = (username: GetUserByNamePathParams['username']) => [{ url: `/user/${username}`, params: { username: username } }] as const
export const getUserByNameQueryKey = (username: GetUserByNamePathParams['username']) => [{ url: '/user/:username', params: { username: username } }] as const
export type GetUserByNameQueryKey = ReturnType<typeof getUserByNameQueryKey>
export function getUserByNameQueryOptions<
TQueryFnData extends GetUserByName['data'] = GetUserByName['data'],
Expand Down Expand Up @@ -83,7 +83,7 @@ type GetUserByNameInfinite = KubbQueryFactory<
}
>
export const getUserByNameInfiniteQueryKey = (username: GetUserByNamePathParams['username']) =>
[{ url: `/user/${username}`, params: { username: username } }] as const
[{ url: '/user/:username', params: { username: username } }] as const
export type GetUserByNameInfiniteQueryKey = ReturnType<typeof getUserByNameInfiniteQueryKey>
export function getUserByNameInfiniteQueryOptions<
TQueryFnData extends GetUserByNameInfinite['data'] = GetUserByNameInfinite['data'],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ type LoginUser = KubbQueryFactory<LoginUserQueryResponse, LoginUser400, never, n
dataReturnType: 'full'
type: 'query'
}>
export const loginUserQueryKey = (params?: LoginUser['queryParams']) => [{ url: `/user/login` }, ...(params ? [params] : [])] as const
export const loginUserQueryKey = (params?: LoginUser['queryParams']) => [{ url: '/user/login' }, ...(params ? [params] : [])] as const
export type LoginUserQueryKey = ReturnType<typeof loginUserQueryKey>
export function loginUserQueryOptions<
TQueryFnData extends LoginUser['data'] = LoginUser['data'],
Expand Down Expand Up @@ -65,7 +65,7 @@ type LoginUserInfinite = KubbQueryFactory<LoginUserQueryResponse, LoginUser400,
dataReturnType: 'full'
type: 'query'
}>
export const loginUserInfiniteQueryKey = (params?: LoginUserInfinite['queryParams']) => [{ url: `/user/login` }, ...(params ? [params] : [])] as const
export const loginUserInfiniteQueryKey = (params?: LoginUserInfinite['queryParams']) => [{ url: '/user/login' }, ...(params ? [params] : [])] as const
export type LoginUserInfiniteQueryKey = ReturnType<typeof loginUserInfiniteQueryKey>
export function loginUserInfiniteQueryOptions<
TQueryFnData extends LoginUserInfinite['data'] = LoginUserInfinite['data'],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ type LogoutUser = KubbQueryFactory<LogoutUserQueryResponse, LogoutUserError, nev
dataReturnType: 'full'
type: 'query'
}>
export const logoutUserQueryKey = () => [{ url: `/user/logout` }] as const
export const logoutUserQueryKey = () => [{ url: '/user/logout' }] as const
export type LogoutUserQueryKey = ReturnType<typeof logoutUserQueryKey>
export function logoutUserQueryOptions<
TQueryFnData extends LogoutUser['data'] = LogoutUser['data'],
Expand Down Expand Up @@ -61,7 +61,7 @@ type LogoutUserInfinite = KubbQueryFactory<LogoutUserQueryResponse, LogoutUserEr
dataReturnType: 'full'
type: 'query'
}>
export const logoutUserInfiniteQueryKey = () => [{ url: `/user/logout` }] as const
export const logoutUserInfiniteQueryKey = () => [{ url: '/user/logout' }] as const
export type LogoutUserInfiniteQueryKey = ReturnType<typeof logoutUserInfiniteQueryKey>
export function logoutUserInfiniteQueryOptions<
TQueryFnData extends LogoutUserInfinite['data'] = LogoutUserInfinite['data'],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ type FindPetsByStatus = KubbQueryFactory<
type: 'query'
}
>
export const findPetsByStatusQueryKey = (params?: FindPetsByStatus['queryParams']) => [{ url: `/pet/findByStatus` }, ...(params ? [params] : [])] as const
export const findPetsByStatusQueryKey = (params?: FindPetsByStatus['queryParams']) => [{ url: '/pet/findByStatus' }, ...(params ? [params] : [])] as const
export type FindPetsByStatusQueryKey = ReturnType<typeof findPetsByStatusQueryKey>
export function findPetsByStatusQueryOptions<
TQueryFnData extends FindPetsByStatus['data'] = FindPetsByStatus['data'],
Expand Down Expand Up @@ -85,7 +85,7 @@ type FindPetsByStatusInfinite = KubbQueryFactory<
}
>
export const findPetsByStatusInfiniteQueryKey = (params?: FindPetsByStatusInfinite['queryParams']) =>
[{ url: `/pet/findByStatus` }, ...(params ? [params] : [])] as const
[{ url: '/pet/findByStatus' }, ...(params ? [params] : [])] as const
export type FindPetsByStatusInfiniteQueryKey = ReturnType<typeof findPetsByStatusInfiniteQueryKey>
export function findPetsByStatusInfiniteQueryOptions<
TQueryFnData extends FindPetsByStatusInfinite['data'] = FindPetsByStatusInfinite['data'],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ type FindPetsByTags = KubbQueryFactory<
type: 'query'
}
>
export const findPetsByTagsQueryKey = (params?: FindPetsByTags['queryParams']) => [{ url: `/pet/findByTags` }, ...(params ? [params] : [])] as const
export const findPetsByTagsQueryKey = (params?: FindPetsByTags['queryParams']) => [{ url: '/pet/findByTags' }, ...(params ? [params] : [])] as const
export type FindPetsByTagsQueryKey = ReturnType<typeof findPetsByTagsQueryKey>
export function findPetsByTagsQueryOptions<
TQueryFnData extends FindPetsByTags['data'] = FindPetsByTags['data'],
Expand Down Expand Up @@ -85,7 +85,7 @@ type FindPetsByTagsInfinite = KubbQueryFactory<
}
>
export const findPetsByTagsInfiniteQueryKey = (params?: FindPetsByTagsInfinite['queryParams']) =>
[{ url: `/pet/findByTags` }, ...(params ? [params] : [])] as const
[{ url: '/pet/findByTags' }, ...(params ? [params] : [])] as const
export type FindPetsByTagsInfiniteQueryKey = ReturnType<typeof findPetsByTagsInfiniteQueryKey>
export function findPetsByTagsInfiniteQueryOptions<
TQueryFnData extends FindPetsByTagsInfinite['data'] = FindPetsByTagsInfinite['data'],
Expand Down
4 changes: 2 additions & 2 deletions examples/react-query-v5/src/gen/hooks/useGetInventoryHook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ type GetInventory = KubbQueryFactory<GetInventoryQueryResponse, never, never, ne
dataReturnType: 'data'
type: 'query'
}>
export const getInventoryQueryKey = () => [{ url: `/store/inventory` }] as const
export const getInventoryQueryKey = () => [{ url: '/store/inventory' }] as const
export type GetInventoryQueryKey = ReturnType<typeof getInventoryQueryKey>
export function getInventoryQueryOptions<
TQueryFnData extends GetInventory['data'] = GetInventory['data'],
Expand Down Expand Up @@ -62,7 +62,7 @@ type GetInventoryInfinite = KubbQueryFactory<GetInventoryQueryResponse, never, n
dataReturnType: 'data'
type: 'query'
}>
export const getInventoryInfiniteQueryKey = () => [{ url: `/store/inventory` }] as const
export const getInventoryInfiniteQueryKey = () => [{ url: '/store/inventory' }] as const
export type GetInventoryInfiniteQueryKey = ReturnType<typeof getInventoryInfiniteQueryKey>
export function getInventoryInfiniteQueryOptions<
TQueryFnData extends GetInventoryInfinite['data'] = GetInventoryInfinite['data'],
Expand Down
4 changes: 2 additions & 2 deletions examples/react-query-v5/src/gen/hooks/useGetOrderByIdHook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ type GetOrderById = KubbQueryFactory<
type: 'query'
}
>
export const getOrderByIdQueryKey = (orderId: GetOrderByIdPathParams['orderId']) => [{ url: `/store/order/${orderId}`, params: { orderId: orderId } }] as const
export const getOrderByIdQueryKey = (orderId: GetOrderByIdPathParams['orderId']) => [{ url: '/store/order/:orderId', params: { orderId: orderId } }] as const
export type GetOrderByIdQueryKey = ReturnType<typeof getOrderByIdQueryKey>
export function getOrderByIdQueryOptions<
TQueryFnData extends GetOrderById['data'] = GetOrderById['data'],
Expand Down Expand Up @@ -84,7 +84,7 @@ type GetOrderByIdInfinite = KubbQueryFactory<
}
>
export const getOrderByIdInfiniteQueryKey = (orderId: GetOrderByIdPathParams['orderId']) =>
[{ url: `/store/order/${orderId}`, params: { orderId: orderId } }] as const
[{ url: '/store/order/:orderId', params: { orderId: orderId } }] as const
export type GetOrderByIdInfiniteQueryKey = ReturnType<typeof getOrderByIdInfiniteQueryKey>
export function getOrderByIdInfiniteQueryOptions<
TQueryFnData extends GetOrderByIdInfinite['data'] = GetOrderByIdInfinite['data'],
Expand Down
4 changes: 2 additions & 2 deletions examples/react-query-v5/src/gen/hooks/useGetPetByIdHook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ type GetPetById = KubbQueryFactory<GetPetByIdQueryResponse, GetPetById400 | GetP
dataReturnType: 'data'
type: 'query'
}>
export const getPetByIdQueryKey = (petId: GetPetByIdPathParams['petId']) => [{ url: `/pet/${petId}`, params: { petId: petId } }] as const
export const getPetByIdQueryKey = (petId: GetPetByIdPathParams['petId']) => [{ url: '/pet/:petId', params: { petId: petId } }] as const
export type GetPetByIdQueryKey = ReturnType<typeof getPetByIdQueryKey>
export function getPetByIdQueryOptions<
TQueryFnData extends GetPetById['data'] = GetPetById['data'],
Expand Down Expand Up @@ -74,7 +74,7 @@ type GetPetByIdInfinite = KubbQueryFactory<
type: 'query'
}
>
export const getPetByIdInfiniteQueryKey = (petId: GetPetByIdPathParams['petId']) => [{ url: `/pet/${petId}`, params: { petId: petId } }] as const
export const getPetByIdInfiniteQueryKey = (petId: GetPetByIdPathParams['petId']) => [{ url: '/pet/:petId', params: { petId: petId } }] as const
export type GetPetByIdInfiniteQueryKey = ReturnType<typeof getPetByIdInfiniteQueryKey>
export function getPetByIdInfiniteQueryOptions<
TQueryFnData extends GetPetByIdInfinite['data'] = GetPetByIdInfinite['data'],
Expand Down
4 changes: 2 additions & 2 deletions examples/react-query-v5/src/gen/hooks/useGetUserByNameHook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ type GetUserByName = KubbQueryFactory<
type: 'query'
}
>
export const getUserByNameQueryKey = (username: GetUserByNamePathParams['username']) => [{ url: `/user/${username}`, params: { username: username } }] as const
export const getUserByNameQueryKey = (username: GetUserByNamePathParams['username']) => [{ url: '/user/:username', params: { username: username } }] as const
export type GetUserByNameQueryKey = ReturnType<typeof getUserByNameQueryKey>
export function getUserByNameQueryOptions<
TQueryFnData extends GetUserByName['data'] = GetUserByName['data'],
Expand Down Expand Up @@ -83,7 +83,7 @@ type GetUserByNameInfinite = KubbQueryFactory<
}
>
export const getUserByNameInfiniteQueryKey = (username: GetUserByNamePathParams['username']) =>
[{ url: `/user/${username}`, params: { username: username } }] as const
[{ url: '/user/:username', params: { username: username } }] as const
export type GetUserByNameInfiniteQueryKey = ReturnType<typeof getUserByNameInfiniteQueryKey>
export function getUserByNameInfiniteQueryOptions<
TQueryFnData extends GetUserByNameInfinite['data'] = GetUserByNameInfinite['data'],
Expand Down
4 changes: 2 additions & 2 deletions examples/react-query-v5/src/gen/hooks/useLoginUserHook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ type LoginUser = KubbQueryFactory<LoginUserQueryResponse, LoginUser400, never, n
dataReturnType: 'data'
type: 'query'
}>
export const loginUserQueryKey = (params?: LoginUser['queryParams']) => [{ url: `/user/login` }, ...(params ? [params] : [])] as const
export const loginUserQueryKey = (params?: LoginUser['queryParams']) => [{ url: '/user/login' }, ...(params ? [params] : [])] as const
export type LoginUserQueryKey = ReturnType<typeof loginUserQueryKey>
export function loginUserQueryOptions<
TQueryFnData extends LoginUser['data'] = LoginUser['data'],
Expand Down Expand Up @@ -65,7 +65,7 @@ type LoginUserInfinite = KubbQueryFactory<LoginUserQueryResponse, LoginUser400,
dataReturnType: 'data'
type: 'query'
}>
export const loginUserInfiniteQueryKey = (params?: LoginUserInfinite['queryParams']) => [{ url: `/user/login` }, ...(params ? [params] : [])] as const
export const loginUserInfiniteQueryKey = (params?: LoginUserInfinite['queryParams']) => [{ url: '/user/login' }, ...(params ? [params] : [])] as const
export type LoginUserInfiniteQueryKey = ReturnType<typeof loginUserInfiniteQueryKey>
export function loginUserInfiniteQueryOptions<
TQueryFnData extends LoginUserInfinite['data'] = LoginUserInfinite['data'],
Expand Down
4 changes: 2 additions & 2 deletions examples/react-query-v5/src/gen/hooks/useLogoutUserHook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ type LogoutUser = KubbQueryFactory<LogoutUserQueryResponse, LogoutUserError, nev
dataReturnType: 'data'
type: 'query'
}>
export const logoutUserQueryKey = () => [{ url: `/user/logout` }] as const
export const logoutUserQueryKey = () => [{ url: '/user/logout' }] as const
export type LogoutUserQueryKey = ReturnType<typeof logoutUserQueryKey>
export function logoutUserQueryOptions<
TQueryFnData extends LogoutUser['data'] = LogoutUser['data'],
Expand Down Expand Up @@ -61,7 +61,7 @@ type LogoutUserInfinite = KubbQueryFactory<LogoutUserQueryResponse, LogoutUserEr
dataReturnType: 'data'
type: 'query'
}>
export const logoutUserInfiniteQueryKey = () => [{ url: `/user/logout` }] as const
export const logoutUserInfiniteQueryKey = () => [{ url: '/user/logout' }] as const
export type LogoutUserInfiniteQueryKey = ReturnType<typeof logoutUserInfiniteQueryKey>
export function logoutUserInfiniteQueryOptions<
TQueryFnData extends LogoutUserInfinite['data'] = LogoutUserInfinite['data'],
Expand Down
4 changes: 2 additions & 2 deletions examples/react-query/src/gen/hooks/useFindPetsByStatusHook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ type FindPetsByStatus = KubbQueryFactory<
type: 'query'
}
>
export const findPetsByStatusQueryKey = (params?: FindPetsByStatus['queryParams']) => [{ url: `/pet/findByStatus` }, ...(params ? [params] : [])] as const
export const findPetsByStatusQueryKey = (params?: FindPetsByStatus['queryParams']) => [{ url: '/pet/findByStatus' }, ...(params ? [params] : [])] as const
export type FindPetsByStatusQueryKey = ReturnType<typeof findPetsByStatusQueryKey>
export function findPetsByStatusQueryOptions<
TQueryFnData extends FindPetsByStatus['data'] = FindPetsByStatus['data'],
Expand Down Expand Up @@ -85,7 +85,7 @@ type FindPetsByStatusInfinite = KubbQueryFactory<
}
>
export const findPetsByStatusInfiniteQueryKey = (params?: FindPetsByStatusInfinite['queryParams']) =>
[{ url: `/pet/findByStatus` }, ...(params ? [params] : [])] as const
[{ url: '/pet/findByStatus' }, ...(params ? [params] : [])] as const
export type FindPetsByStatusInfiniteQueryKey = ReturnType<typeof findPetsByStatusInfiniteQueryKey>
export function findPetsByStatusInfiniteQueryOptions<
TQueryFnData extends FindPetsByStatusInfinite['data'] = FindPetsByStatusInfinite['data'],
Expand Down
4 changes: 2 additions & 2 deletions examples/react-query/src/gen/hooks/useFindPetsByTagsHook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ type FindPetsByTags = KubbQueryFactory<
type: 'query'
}
>
export const findPetsByTagsQueryKey = (params?: FindPetsByTags['queryParams']) => [{ url: `/pet/findByTags` }, ...(params ? [params] : [])] as const
export const findPetsByTagsQueryKey = (params?: FindPetsByTags['queryParams']) => [{ url: '/pet/findByTags' }, ...(params ? [params] : [])] as const
export type FindPetsByTagsQueryKey = ReturnType<typeof findPetsByTagsQueryKey>
export function findPetsByTagsQueryOptions<
TQueryFnData extends FindPetsByTags['data'] = FindPetsByTags['data'],
Expand Down Expand Up @@ -85,7 +85,7 @@ type FindPetsByTagsInfinite = KubbQueryFactory<
}
>
export const findPetsByTagsInfiniteQueryKey = (params?: FindPetsByTagsInfinite['queryParams']) =>
[{ url: `/pet/findByTags` }, ...(params ? [params] : [])] as const
[{ url: '/pet/findByTags' }, ...(params ? [params] : [])] as const
export type FindPetsByTagsInfiniteQueryKey = ReturnType<typeof findPetsByTagsInfiniteQueryKey>
export function findPetsByTagsInfiniteQueryOptions<
TQueryFnData extends FindPetsByTagsInfinite['data'] = FindPetsByTagsInfinite['data'],
Expand Down
4 changes: 2 additions & 2 deletions examples/react-query/src/gen/hooks/useGetInventoryHook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ type GetInventory = KubbQueryFactory<GetInventoryQueryResponse, never, never, ne
dataReturnType: 'data'
type: 'query'
}>
export const getInventoryQueryKey = () => [{ url: `/store/inventory` }] as const
export const getInventoryQueryKey = () => [{ url: '/store/inventory' }] as const
export type GetInventoryQueryKey = ReturnType<typeof getInventoryQueryKey>
export function getInventoryQueryOptions<
TQueryFnData extends GetInventory['data'] = GetInventory['data'],
Expand Down Expand Up @@ -62,7 +62,7 @@ type GetInventoryInfinite = KubbQueryFactory<GetInventoryQueryResponse, never, n
dataReturnType: 'data'
type: 'query'
}>
export const getInventoryInfiniteQueryKey = () => [{ url: `/store/inventory` }] as const
export const getInventoryInfiniteQueryKey = () => [{ url: '/store/inventory' }] as const
export type GetInventoryInfiniteQueryKey = ReturnType<typeof getInventoryInfiniteQueryKey>
export function getInventoryInfiniteQueryOptions<
TQueryFnData extends GetInventoryInfinite['data'] = GetInventoryInfinite['data'],
Expand Down
Loading

0 comments on commit 61f2eae

Please sign in to comment.