StoreStatus
One storefront's desired/observed/discrepancy status.
Everything beyond storeId is optional, so this same shape doubles as the response of pauseStores / unpauseStores — those can only state desired firsthand from what they just wrote, never a live re-read of the platform (observed) or a recomputed discrepancy, so they omit those fields rather than fabricate them. Call fetchStoreStatuses next for the observed view.
Fields
- storeIdstring
The
Store.idthis status describes. Always present. - desiredDesiredStoreStatus
The state configured in OneTablet. Always present.
- observedObservedStoreStatus
What the delivery platform last reported. Present on reads; absent on the
pauseStores/unpauseStoresresponse, which does not re-read the platform. - discrepancyDiscrepancy
Whether
desiredandobserveddisagree, and how to fix it. Present on reads; absent on thepauseStores/unpauseStoresresponse. - lastPolledAtstring<date-time>
When OneTablet last refreshed
observed. Reason about staleness against this before acting. Absent on thepauseStores/unpauseStoresresponse, which never setsobserved.