platform-types 1.10.785 → 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` and `POST /customers { mode: 'wholesale-decision' }`
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`,
@@ -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` and `POST /customers { mode: 'wholesale-decision' }`
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
@@ -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` and `POST /customers { mode: 'wholesale-decision' }`
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`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "platform-types",
3
- "version": "1.10.785",
3
+ "version": "1.10.786",
4
4
  "description": "Shared wire and entity contracts for the platform.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",