mirror of
https://github.com/vercel/commerce.git
synced 2025-07-22 20:26:49 +00:00
✨ feat: get recipe-list
:%s
This commit is contained in:
@@ -17,16 +17,15 @@ export type RecipesType = {
|
|||||||
totalItems: number
|
totalItems: number
|
||||||
}
|
}
|
||||||
|
|
||||||
export enum SortType {
|
export enum SortOrder {
|
||||||
ASC = 'ASC',
|
ASC = 'ASC',
|
||||||
DESC = 'DESC',
|
DESC = 'DESC',
|
||||||
}
|
}
|
||||||
export type GetAllRecipesOperation<T extends RecipesType = RecipesType> = {
|
export type GetAllRecipesOperation<T extends RecipesType = RecipesType> = {
|
||||||
data: { items: T['items'][], totalItems: number }
|
data: { items: T['items'][], totalItems: number }
|
||||||
variables: {
|
variables: {
|
||||||
|
excludeBlogIds:Array<Number>,
|
||||||
take?: number
|
take?: number
|
||||||
sort?: {
|
id?: SortOrder
|
||||||
id: SortType
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
Reference in New Issue
Block a user