Wocart

@wocart/storefront v3.1.0


@wocart/storefront / index / STOREFRONT_RETRY_POLICIES

Variable: STOREFRONT_RETRY_POLICIES

const STOREFRONT_RETRY_POLICIES: object

The retry policy per operation, as a contract a caller can read.

The transport enforces it by kind: every safe-read goes through the caching/deduplicating GET path, which repeats a transport or 5xx failure, while every never goes through the POST/PATCH path, which returns a result and never retries (a replayed write is how a shopper ends up with two orders). A test asserts this table covers every public operation and agrees with that classification, so a new operation cannot ship unclassified.

Type Declaration

cart.validate

readonly cart.validate: "safe-read"

categories.list

readonly categories.list: "safe-read"

collections.get

readonly collections.get: "safe-read"

config.get

readonly config.get: "safe-read"

geo.communes

readonly geo.communes: "safe-read"

readonly menus.get: "safe-read"

orders.abandoned.convert

readonly orders.abandoned.convert: "never"

orders.abandoned.upsert

readonly orders.abandoned.upsert: "never"

orders.create

readonly orders.create: "never"

orders.otp.send

readonly orders.otp.send: "never"

orders.otp.verify

readonly orders.otp.verify: "never"

orders.status

readonly orders.status: "never"

orders.tracking

readonly orders.tracking: "safe-read"

pageData.get

readonly pageData.get: "safe-read"

pages.get

readonly pages.get: "safe-read"

pages.landing

readonly pages.landing: "safe-read"

products.get

readonly products.get: "safe-read"

products.list

readonly products.list: "safe-read"

products.reviews.eligibility

readonly products.reviews.eligibility: "never"

products.reviews.list

readonly products.reviews.list: "safe-read"

products.reviews.submit

readonly products.reviews.submit: "never"

products.reviews.upload

readonly products.reviews.upload: "never"

products.search

readonly products.search: "safe-read"

shipping.rate

readonly shipping.rate: "safe-read"

shipping.rates

readonly shipping.rates: "safe-read"