platform-types 1.10.784 → 1.10.786
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.
|
@@ -28,7 +28,8 @@ exports.WHOLESALE_REQUEST_REASON_MAX = 500;
|
|
|
28
28
|
* - web `POST /user { mode: 'wholesale-request' }` (`stacks/web/lambdas/user/_wholesaleRequest.ts`):
|
|
29
29
|
* `WHOLESALE_REQUESTS_DISABLED`, `CUSTOMER_NOT_FOUND`, `CUSTOMER_ANONYMIZED`, `USER_NOT_ENABLED`,
|
|
30
30
|
* `CUSTOMER_ALREADY_WHOLESALE`, `WHOLESALE_REQUEST_CONTENDED`, `WHOLESALE_REQUEST_PENDING`;
|
|
31
|
-
* - app `GET /customers?mode=wholesale-requests
|
|
31
|
+
* - app `GET /customers?mode=wholesale-requests`, `GET /customers?mode=wholesale-request` and
|
|
32
|
+
* `POST /customers { mode: 'wholesale-decision' }`
|
|
32
33
|
* (`stacks/lambdas/customers/_wholesaleRequests.ts`): `ROLE_FORBIDDEN`, `ADMIN_REQUIRED`,
|
|
33
34
|
* `INVALID_CURSOR`, `WHOLESALE_REQUEST_NOT_PENDING`, `WHOLESALE_DECISION_CONTENDED`,
|
|
34
35
|
* `CUSTOMER_NOT_FOUND`, `CUSTOMER_ANONYMIZED`, `CUSTOMER_MERGED`, `PRICE_LIST_NOT_FOUND`,
|
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
|
|
@@ -25,7 +25,8 @@ export declare const WHOLESALE_REQUEST_REASON_MAX = 500;
|
|
|
25
25
|
* - web `POST /user { mode: 'wholesale-request' }` (`stacks/web/lambdas/user/_wholesaleRequest.ts`):
|
|
26
26
|
* `WHOLESALE_REQUESTS_DISABLED`, `CUSTOMER_NOT_FOUND`, `CUSTOMER_ANONYMIZED`, `USER_NOT_ENABLED`,
|
|
27
27
|
* `CUSTOMER_ALREADY_WHOLESALE`, `WHOLESALE_REQUEST_CONTENDED`, `WHOLESALE_REQUEST_PENDING`;
|
|
28
|
-
* - app `GET /customers?mode=wholesale-requests
|
|
28
|
+
* - app `GET /customers?mode=wholesale-requests`, `GET /customers?mode=wholesale-request` and
|
|
29
|
+
* `POST /customers { mode: 'wholesale-decision' }`
|
|
29
30
|
* (`stacks/lambdas/customers/_wholesaleRequests.ts`): `ROLE_FORBIDDEN`, `ADMIN_REQUIRED`,
|
|
30
31
|
* `INVALID_CURSOR`, `WHOLESALE_REQUEST_NOT_PENDING`, `WHOLESALE_DECISION_CONTENDED`,
|
|
31
32
|
* `CUSTOMER_NOT_FOUND`, `CUSTOMER_ANONYMIZED`, `CUSTOMER_MERGED`, `PRICE_LIST_NOT_FOUND`,
|
|
@@ -130,6 +131,15 @@ declare global {
|
|
|
130
131
|
LastEvaluatedKey?: string;
|
|
131
132
|
truncated?: boolean;
|
|
132
133
|
}
|
|
134
|
+
/**
|
|
135
|
+
* App `GET /customers?mode=wholesale-request&customerId=…` (admin tier): ONE
|
|
136
|
+
* customer's request with the queue row's projection and customer join, or
|
|
137
|
+
* `data: null` when the customer never asked.
|
|
138
|
+
*/
|
|
139
|
+
interface WholesaleRequestPointResponse {
|
|
140
|
+
message: string;
|
|
141
|
+
data: WholesaleRequestQueueEntry | null;
|
|
142
|
+
}
|
|
133
143
|
/**
|
|
134
144
|
* App `POST /customers` body that decides a request. `'approved'` requires a
|
|
135
145
|
* wholesale-class `priceList` and refuses a `reason`; `'declined'` refuses a
|
package/dist/wholesaleRequest.js
CHANGED
|
@@ -25,7 +25,8 @@ export const WHOLESALE_REQUEST_REASON_MAX = 500;
|
|
|
25
25
|
* - web `POST /user { mode: 'wholesale-request' }` (`stacks/web/lambdas/user/_wholesaleRequest.ts`):
|
|
26
26
|
* `WHOLESALE_REQUESTS_DISABLED`, `CUSTOMER_NOT_FOUND`, `CUSTOMER_ANONYMIZED`, `USER_NOT_ENABLED`,
|
|
27
27
|
* `CUSTOMER_ALREADY_WHOLESALE`, `WHOLESALE_REQUEST_CONTENDED`, `WHOLESALE_REQUEST_PENDING`;
|
|
28
|
-
* - app `GET /customers?mode=wholesale-requests
|
|
28
|
+
* - app `GET /customers?mode=wholesale-requests`, `GET /customers?mode=wholesale-request` and
|
|
29
|
+
* `POST /customers { mode: 'wholesale-decision' }`
|
|
29
30
|
* (`stacks/lambdas/customers/_wholesaleRequests.ts`): `ROLE_FORBIDDEN`, `ADMIN_REQUIRED`,
|
|
30
31
|
* `INVALID_CURSOR`, `WHOLESALE_REQUEST_NOT_PENDING`, `WHOLESALE_DECISION_CONTENDED`,
|
|
31
32
|
* `CUSTOMER_NOT_FOUND`, `CUSTOMER_ANONYMIZED`, `CUSTOMER_MERGED`, `PRICE_LIST_NOT_FOUND`,
|