Interface: UseOrdersOptions
Defined in: composables/react/useOrders.ts:47
Options for useOrders.
Properties
afterReorder?
optionalafterReorder?: (cart) =>void
Defined in: composables/react/useOrders.ts:72
Fires after a reorder completes — receives the cart all items were added to.
Parameters
cart
Cart
Returns
void
channelIds?
optionalchannelIds?:number[]
Defined in: composables/react/useOrders.ts:68
Restrict orders to specific sales channels.
companyId?
optionalcompanyId?:number
Defined in: composables/react/useOrders.ts:53
Active company id; scopes orders to a company for B2B users.
configuration?
optionalconfiguration?:object
Defined in: composables/react/useOrders.ts:63
Portal configuration: image search/variant filters.
imageSearchFiltersGrid?
optionalimageSearchFiltersGrid?:MediaImageProductSearchInput
imageVariantFiltersSmall?
optionalimageVariantFiltersSmall?:TransformationsInput
graphqlClient
graphqlClient:
GraphQLClient
Defined in: composables/react/useOrders.ts:49
GraphQL client the hook derives its Services bundle from.
itemsPerPage?
optionalitemsPerPage?:number
Defined in: composables/react/useOrders.ts:57
Page size for the order list. Defaults to 10.
language?
optionallanguage?:string
Defined in: composables/react/useOrders.ts:55
Language for order/PDF queries. Defaults to 'NL'.
onCartCreated?
optionalonCartCreated?: (cart) =>void
Defined in: composables/react/useOrders.ts:70
Fires when reorder creates a fresh cart — use it to persist the cart id.
Parameters
cart
Cart
Returns
void
orderStatuses?
optionalorderStatuses?:string[]
Defined in: composables/react/useOrders.ts:59
Order statuses to include. Defaults to ['NEW','CONFIRMED','VALIDATED','ORDER'].
termFields?
optionaltermFields?:OrderSearchFields[]
Defined in: composables/react/useOrders.ts:61
Fields the free-text term is matched against.
user
user:
AnyUser
Defined in: composables/react/useOrders.ts:51
The signed-in user; supplies the userId the order query is scoped to.