Skip to content

feature-quote advanced

Everything else the package exports, for when you go beyond its components and hooks, such as your own queries or cache updates. Most projects never need these.

Contexts7
QuoteContextThe context QuoteProvider fills.
@evolve-storefront/feature-quote/context
useCanConvertQuoteWhether the buyer may order a quote.
@evolve-storefront/feature-quote/context
useCanRequestQuoteWhether the buyer may request a quote — enabled + capability.
@evolve-storefront/feature-quote/context
useQuoteContextRead the injected auth/session context.
@evolve-storefront/feature-quote/context
useQuotesEnabledBusiness-only gate: the feature is active only with a company set.
@evolve-storefront/feature-quote/context
quoteDefaultsDefaults are the BusinessUnitCapability enum values verbatim, because that is what a backend actually sends.
@evolve-storefront/feature-quote/context
QuoteContextValueInjected auth/session seam for the quote feature, supplied by QuoteProvider.
@evolve-storefront/feature-quote/context
GraphQL documents5
GetQuoteOne of a business unit's quotes, by id.
@evolve-storefront/feature-quote/queries
GetQuoteRequestOne of a business unit's quote requests, by id.
@evolve-storefront/feature-quote/queries
GetQuoteRequestsA business unit's quote requests, paged.
@evolve-storefront/feature-quote/queries
GetQuotesA business unit's quotes, paged, in sort order and optionally only one status.
@evolve-storefront/feature-quote/queries
QuoteRequestCreate⚠️ Requires a current gateway. The settled contract moves the cart from a top-level id argument into the args, adds CartNotQuotableError to the error union, and makes quoteRequest nullable so the errors are usable at all.
@evolve-storefront/feature-quote/queries
Data and cache helpers6
invalidateQuoteInvalidate one quote's detail cache, and every quote list it appears in.
@evolve-storefront/feature-quote
invalidateQuoteRequestsInvalidate every quote-request list cache for a company (post-create).
@evolve-storefront/feature-quote
isQuoteOrderableWhether a quote may be ordered: PENDING and inside its validity window.
@evolve-storefront/feature-quote
quoteDisplayStatusThe status to show, which is not always the status the server sent.
@evolve-storefront/feature-quote
quoteNetTotalA quote's total excluding VAT; null without a total.
@evolve-storefront/feature-quote
quoteKeysreact-query key factory for the quote/request list + detail caches.
@evolve-storefront/feature-quote
Errors3
QuoteAnswerErrorquoteReply or quoteDecline refused the answer.
@evolve-storefront/feature-quote/hooks
QuoteOrderErrororderPlace refused to place the order.
@evolve-storefront/feature-quote/hooks
QuoteOrderMissingErrororderPlace reported success and named no order.
@evolve-storefront/feature-quote/hooks
Schemas1
QuoteRequestFormSchemaQuote request form schema, aligned with the schema QuoteRequestCreateArgsInput (comment + purchaseOrderNumber).
@evolve-storefront/feature-quote/schemas
Other functions and constants6
quoteRequestArgsWhat useCreateQuoteRequest sends for a checkout's cart.
@evolve-storefront/feature-quote/checkout
QUOTE_REQUEST_ENDING_IDThe quote ending's id, for defaultEnding when the buyer clicked "Request a quote".
@evolve-storefront/feature-quote/checkout
readPlaceQuoteOrderResponseTurn orderPlace's response into an order or a throw.
@evolve-storefront/feature-quote/hooks
readQuoteAnswerResponseTurn a reply's or a decline's response into the answered quote or a throw.
@evolve-storefront/feature-quote/hooks
QUOTE_LIST_SORTSThe orders the sort offers, in order.
@evolve-storefront/feature-quote/quote-list
QUOTE_LIST_STATUSESThe states the status filter offers, in order.
@evolve-storefront/feature-quote/quote-list
Types40
CartNotQuotableErrorA refusal to quote a cart (schema CartNotQuotableError).
@evolve-storefront/feature-quote
CartNotQuotableReasonWhy a cart cannot be turned into a quote request (schema CartNotQuotableReasonType).
@evolve-storefront/feature-quote
IncotermThe delivery terms of an export (schema IncotermType), verbatim.
@evolve-storefront/feature-quote
MoneyMoney (schema Money): minor units + ISO currency.
@evolve-storefront/feature-quote
ProductImageMinimal product image.
@evolve-storefront/feature-quote
ProductVariantMinimal product variant on a quote line (schema ProductVariant).
@evolve-storefront/feature-quote
QuoteA quote provided by the merchant (schema Quote).
@evolve-storefront/feature-quote
QuoteAddressAddress as displayed on a quote (subset of schema Address).
@evolve-storefront/feature-quote
QuoteAnswerErrorEntryOne entry of a reply's or a decline's quoteErrors.
@evolve-storefront/feature-quote
QuoteCheckoutErrorEntryOne entry of orderPlace's placeErrors, whose schema union is CheckoutError | ValidationError | QuoteNotOrderableError.
@evolve-storefront/feature-quote
QuoteIdentifierQuote identifier with optimistic-concurrency version (schema QuoteIdentifier).
@evolve-storefront/feature-quote
QuoteKindWhich kind of record a list/card shows: a request and a quote are distinct things.
@evolve-storefront/feature-quote
QuoteLineItemA priced quote line item (schema QuoteSingleLineItem).
@evolve-storefront/feature-quote
QuoteListEntryThe subset of a quote or quote request that a list row renders — both satisfy it structurally, so one card handles either kind.
@evolve-storefront/feature-quote
QuoteNotOrderableErrororderPlace refusing a quote (schema QuoteNotOrderableError).
@evolve-storefront/feature-quote
QuoteNotPendingErrorquoteReply or quoteDecline refusing a quote that is no longer waiting on the buyer (schema QuoteNotPendingError).
@evolve-storefront/feature-quote
QuoteOrderApprovalThe approval flow holding a placed order, when one is (schema OrderApproval).
@evolve-storefront/feature-quote
QuoteOrderRefThe order the quote became (schema Order, of which only the identifiers are selected).
@evolve-storefront/feature-quote
QuoteRequestA quote request created by the customer (schema QuoteRequest).
@evolve-storefront/feature-quote
QuoteRequestResultPaginated quote-request list (schema QuoteRequestResult).
@evolve-storefront/feature-quote
QuoteRequestStatusQuote-request status (schema QuoteRequestStatusType).
@evolve-storefront/feature-quote
QuoteResultPaginated quote list (schema QuoteResult).
@evolve-storefront/feature-quote
QuoteSortOrderOrder of a quote list (schema QuoteSortOrderType).
@evolve-storefront/feature-quote
QuoteStatusQuote status (schema QuoteStatusType).
@evolve-storefront/feature-quote
TaxA tax line (schema Tax).
@evolve-storefront/feature-quote
TaxedPriceA single-rate taxed price (schema TaxedPrice).
@evolve-storefront/feature-quote
TaxedTotalPriceA multi-rate taxed total (schema TaxedTotalPrice).
@evolve-storefront/feature-quote
VatOutcomeThe VAT rule a quote follows and the reason it applies.
@evolve-storefront/feature-quote
VatReasonWhy a quote's VAT is applied the way it is (schema VatReasonType), verbatim.
@evolve-storefront/feature-quote
VatTreatmentHow VAT is applied to a quote (schema VatTreatmentType), verbatim.
@evolve-storefront/feature-quote
QuoteRequestCartThe one cart shape the ending reads.
@evolve-storefront/feature-quote/checkout
QuoteRequestFormInput
@evolve-storefront/feature-quote/schemas
DeclineQuoteVariables
@evolve-storefront/feature-quote/hooks
PlaceQuoteOrderResult
@evolve-storefront/feature-quote/hooks
PlaceQuoteOrderVariables
@evolve-storefront/feature-quote/hooks
ReplyToQuoteVariables
@evolve-storefront/feature-quote/hooks
QuoteLineItemRenderer
@evolve-storefront/feature-quote/quote-detail
QuotableCartThe little a quote needs to know about a cart: which one, and whether it can be delivered anywhere.
@evolve-storefront/feature-quote/quote-request-button
QuoteRequestFormContextValueContext seeded by QuoteRequestForm so the composed pieces (Fields, Submit) read what they need without prop-drilling — which lets the dialog own the DialogFooter (and the submit button inside it) instead of the generic form importing anything dialog-specific.
@evolve-storefront/feature-quote/quote-request-button
QuoteRequestFormFieldErrorsA validationErrors map keyed by field name, as RAC's Form consumes it.
@evolve-storefront/feature-quote/quote-request-button

Not listed: 24 props and options types. They appear as the tables on the pages of what they type.