platform-types 1.10.783 → 1.10.784
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/store.d.ts +1 -1
- package/dist/wholesaleRequest.d.ts +12 -0
- package/package.json +1 -1
package/dist/store.d.ts
CHANGED
|
@@ -1859,7 +1859,7 @@ declare global {
|
|
|
1859
1859
|
* A stored rule the write could not have produced (an unknown audience, an
|
|
1860
1860
|
* undeclared key, a non-positive list) fails CLOSED for shoppers: hidden on
|
|
1861
1861
|
* `GET /store`, refused at checkout, and both catalogs left off the frame.
|
|
1862
|
-
* Operator reads omit
|
|
1862
|
+
* Operator reads omit such a malformed rule (a valid one is kept), and `POST /store` keeps it when an existing row
|
|
1863
1863
|
* is sent back without `availability`; sending a valid rule replaces it.
|
|
1864
1864
|
*/
|
|
1865
1865
|
availability?: StorefrontDesignVisibility;
|
|
@@ -78,6 +78,18 @@ declare global {
|
|
|
78
78
|
/** Unix ms of the decision. Absent while pending. */
|
|
79
79
|
decidedAt?: number;
|
|
80
80
|
}
|
|
81
|
+
/**
|
|
82
|
+
* The web `GET /user?mode=wholesale-request` envelope. `audienceClass` is the
|
|
83
|
+
* caller's effective class — their resolved list's `audienceClass`, by the rule
|
|
84
|
+
* `GET /store` uses (a deleted list is PUBLICO, retail) — so a buyer already on
|
|
85
|
+
* a wholesale list with no request reads `wholesale`. Absent when the customer
|
|
86
|
+
* row is gone.
|
|
87
|
+
*/
|
|
88
|
+
interface WholesaleRequestReadResponse {
|
|
89
|
+
message: string;
|
|
90
|
+
data: WholesaleRequestStatus | null;
|
|
91
|
+
audienceClass?: 'retail' | 'wholesale';
|
|
92
|
+
}
|
|
81
93
|
/** The operator's view of one request (admin tier only). */
|
|
82
94
|
interface WholesaleRequest extends WholesaleRequestCompany {
|
|
83
95
|
customerId: string;
|