platform-types 1.10.846 → 1.10.847
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/cjs/socket.js +7 -9
- package/dist/presupuesto.d.ts +4 -1
- package/dist/socket.js +7 -9
- package/package.json +1 -1
package/dist/cjs/socket.js
CHANGED
|
@@ -316,15 +316,13 @@ exports.SOCKET_ACTIONS = [
|
|
|
316
316
|
'loyalty',
|
|
317
317
|
'orders',
|
|
318
318
|
/**
|
|
319
|
-
* BE →
|
|
320
|
-
*
|
|
321
|
-
*
|
|
322
|
-
*
|
|
323
|
-
*
|
|
324
|
-
*
|
|
325
|
-
*
|
|
326
|
-
* structurally (by shape, not by `action` name) before the customer's copy
|
|
327
|
-
* goes out.
|
|
319
|
+
* BE → the store's OPERATOR sockets only, on every presupuesto write:
|
|
320
|
+
* create, revise (both rows), a status transition (send/approve/reject/
|
|
321
|
+
* expire), and conversion to an order. Carries the full `Presupuesto` row,
|
|
322
|
+
* `items[].cost` included. ⚠️ Never the row's customer: drafts, the staff
|
|
323
|
+
* `approval.approvedBy` and the operator's `rejection.reason` must not reach
|
|
324
|
+
* a storefront socket — a customer-facing quote view owes its own
|
|
325
|
+
* allow-listed copy.
|
|
328
326
|
*
|
|
329
327
|
* ⚠️ Never a fiscal frame — a `Presupuesto` is never sent to ARCA and never
|
|
330
328
|
* carries an `Invoice`. See the contract's own doc comment
|
package/dist/presupuesto.d.ts
CHANGED
|
@@ -53,7 +53,10 @@ declare global {
|
|
|
53
53
|
/** Recorded once `status` moves to `approved`. */
|
|
54
54
|
interface PresupuestoApproval {
|
|
55
55
|
approvedAt: number;
|
|
56
|
-
/**
|
|
56
|
+
/**
|
|
57
|
+
* userId of the operator who recorded it. A customer self-approval would
|
|
58
|
+
* record the customerId here, but no writer offers one yet.
|
|
59
|
+
*/
|
|
57
60
|
approvedBy: string;
|
|
58
61
|
}
|
|
59
62
|
/** Recorded once `status` moves to `rejected`. */
|
package/dist/socket.js
CHANGED
|
@@ -313,15 +313,13 @@ export const SOCKET_ACTIONS = [
|
|
|
313
313
|
'loyalty',
|
|
314
314
|
'orders',
|
|
315
315
|
/**
|
|
316
|
-
* BE →
|
|
317
|
-
*
|
|
318
|
-
*
|
|
319
|
-
*
|
|
320
|
-
*
|
|
321
|
-
*
|
|
322
|
-
*
|
|
323
|
-
* structurally (by shape, not by `action` name) before the customer's copy
|
|
324
|
-
* goes out.
|
|
316
|
+
* BE → the store's OPERATOR sockets only, on every presupuesto write:
|
|
317
|
+
* create, revise (both rows), a status transition (send/approve/reject/
|
|
318
|
+
* expire), and conversion to an order. Carries the full `Presupuesto` row,
|
|
319
|
+
* `items[].cost` included. ⚠️ Never the row's customer: drafts, the staff
|
|
320
|
+
* `approval.approvedBy` and the operator's `rejection.reason` must not reach
|
|
321
|
+
* a storefront socket — a customer-facing quote view owes its own
|
|
322
|
+
* allow-listed copy.
|
|
325
323
|
*
|
|
326
324
|
* ⚠️ Never a fiscal frame — a `Presupuesto` is never sent to ARCA and never
|
|
327
325
|
* carries an `Invoice`. See the contract's own doc comment
|