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