platform-types 1.10.783 → 1.10.785
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 +8 -1
- package/dist/wholesaleRequest.d.ts +12 -0
- package/package.json +1 -1
package/dist/store.d.ts
CHANGED
|
@@ -269,6 +269,13 @@ declare global {
|
|
|
269
269
|
* an anonymous caller which app build the platform is on.
|
|
270
270
|
*/
|
|
271
271
|
currentAppVersion?: string;
|
|
272
|
+
/**
|
|
273
|
+
* Platform switch for store-paid customer messaging (SMS today). `false`
|
|
274
|
+
* or absent: no store-paid message is sent, and the app hides every store
|
|
275
|
+
* messaging surface. App-only (`forwardToTenants: 'app'`), so absent from
|
|
276
|
+
* the storefront's unauthenticated response.
|
|
277
|
+
*/
|
|
278
|
+
tenantMessagingEnabled?: boolean;
|
|
272
279
|
}
|
|
273
280
|
/**
|
|
274
281
|
* Cadence of the scheduled sales digest. `'none'` and absence are the same
|
|
@@ -1859,7 +1866,7 @@ declare global {
|
|
|
1859
1866
|
* A stored rule the write could not have produced (an unknown audience, an
|
|
1860
1867
|
* undeclared key, a non-positive list) fails CLOSED for shoppers: hidden on
|
|
1861
1868
|
* `GET /store`, refused at checkout, and both catalogs left off the frame.
|
|
1862
|
-
* Operator reads omit
|
|
1869
|
+
* Operator reads omit such a malformed rule (a valid one is kept), and `POST /store` keeps it when an existing row
|
|
1863
1870
|
* is sent back without `availability`; sending a valid rule replaces it.
|
|
1864
1871
|
*/
|
|
1865
1872
|
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;
|