Skip to content

v0.6.0

Latest
Compare
Choose a tag to compare
@philvarner philvarner released this 11 Feb 15:29
96bcc8f

[v0.6.0] - 2025-02-11

Added

  • Added token-based pagination to GET /orders, GET /products,
    GET /orders/{order_id}/statuses, and POST /products/{product_id}/opportunities.
  • Optional and Extension STAPI Status Codes "scheduled", "held", "processing", "reserved", "tasked",
    and "user_canceled"
  • Asynchronous opportunity search. If the root router supports asynchronous opportunity
    search, all products must support it. If asynchronous opportunity search is
    supported, POST requests to the /products/{productId}/opportunities endpoint will
    default to asynchronous opportunity search unless synchronous search is also supported
    by the product and a Prefer header in the POST request is set to wait.
  • Added the /products/{productId}/opportunities/ and /searches/opportunities
    endpoints to support asynchronous opportunity search.

Changed

  • Replaced the root and product backend Protocol classes with Callable type aliases to
    enable future changes to make product opportunity searching, product ordering, and/or
    asynchronous (stateful) product opportunity searching optional.
  • Backend methods that support pagination now return tuples to include the pagination
    token.
  • Moved OrderCollection construction from the root backend to the RootRouter
    get_orders method.
  • Renamed OpportunityRequest to OpportunityPayload so that would not be confused as
    being a subclass of the Starlette/FastAPI Request class.

Fixed

  • Opportunities Search result now has the search body in the create-order link.