platform-types 1.10.844 → 1.10.846
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/customer.d.ts +16 -0
- package/dist/order.d.ts +8 -0
- package/dist/return.d.ts +6 -5
- package/package.json +1 -1
package/dist/customer.d.ts
CHANGED
|
@@ -626,6 +626,22 @@ declare global {
|
|
|
626
626
|
marketing?: CustomerMarketing;
|
|
627
627
|
/** Transactional WhatsApp consent for this store — see `CustomerWhatsappNotices`. Server-written. */
|
|
628
628
|
whatsappNotices?: CustomerWhatsappNotices;
|
|
629
|
+
/**
|
|
630
|
+
* DERIVED, never stored: `isWhatsappNoticesOptedIn(whatsappNotices)`. Served
|
|
631
|
+
* on the composed customer list and search rows (the ungated read the
|
|
632
|
+
* intake picker uses) and on the operator `customers` frame whenever that
|
|
633
|
+
* frame carries the consent — so a cashier without the `customers`
|
|
634
|
+
* capability can see the state without the full row.
|
|
635
|
+
*/
|
|
636
|
+
whatsappOptedIn?: boolean;
|
|
637
|
+
/**
|
|
638
|
+
* DERIVED, never stored: the latest withdrawal's `ts`, present only while
|
|
639
|
+
* the customer is opted out (`whatsappNotices.optOut`). ⚠️ A re-grant
|
|
640
|
+
* removes the withdrawal, so the next frame OMITS this key; a merging
|
|
641
|
+
* cache must read it as meaningful only while `whatsappOptedIn` is
|
|
642
|
+
* `false`, never keep it beside `true`.
|
|
643
|
+
*/
|
|
644
|
+
whatsappOptedOutAt?: number;
|
|
629
645
|
/** Optional notification mail only; transactional mail cannot be disabled. */
|
|
630
646
|
notificationPreferences?: CustomerNotificationPreferences;
|
|
631
647
|
minBuy?: number;
|
package/dist/order.d.ts
CHANGED
|
@@ -2323,6 +2323,14 @@ declare global {
|
|
|
2323
2323
|
* on a {@link Order.creditOverride} sent with it.
|
|
2324
2324
|
*/
|
|
2325
2325
|
onAccount?: boolean;
|
|
2326
|
+
/**
|
|
2327
|
+
* The cashier recorded the customer's transactional WhatsApp consent at
|
|
2328
|
+
* intake (a back-office grant, stamped on the order's customer after the
|
|
2329
|
+
* create commits; best-effort, never changes the answer). `true` only —
|
|
2330
|
+
* `false` is refused 400; a withdrawal stays on `POST /customers`. Create
|
|
2331
|
+
* leg only (an update ignores it); a directive, never stored on the order.
|
|
2332
|
+
*/
|
|
2333
|
+
whatsappOptIn?: true;
|
|
2326
2334
|
/**
|
|
2327
2335
|
* Tender legs to ring against this order, as RAW input — NOT the persisted
|
|
2328
2336
|
* `Order.tenders`, which is why `Partial<Order>` is narrowed with `Omit`
|
package/dist/return.d.ts
CHANGED
|
@@ -375,10 +375,10 @@ declare global {
|
|
|
375
375
|
ncStatus: ReturnCreditNoteStatus;
|
|
376
376
|
/**
|
|
377
377
|
* Human-readable failure detail when `ncStatus === 'rejected'`: an
|
|
378
|
-
* operator-facing sentence
|
|
379
|
-
* ARCA's own
|
|
380
|
-
*
|
|
381
|
-
* treat it as operator-only and never log it unredacted.
|
|
378
|
+
* operator-facing sentence. An ARCA refusal stores the curated
|
|
379
|
+
* `NC_EMISSION_FAILED` sentence, never ARCA's own message. A row written
|
|
380
|
+
* before that rule may still hold ARCA's message, which can name the
|
|
381
|
+
* receiver's CUIT, so treat it as operator-only and never log it unredacted.
|
|
382
382
|
*/
|
|
383
383
|
ncError?: string;
|
|
384
384
|
/**
|
|
@@ -790,7 +790,8 @@ declare global {
|
|
|
790
790
|
creditNoteId?: string;
|
|
791
791
|
/**
|
|
792
792
|
* Human-readable failure detail when `ncStatus === 'rejected'`. Mirrors
|
|
793
|
-
* `Return.ncError
|
|
793
|
+
* `Return.ncError`; a summary written before ARCA refusals stopped
|
|
794
|
+
* relaying ARCA's own message may still carry it. Operator-only:
|
|
794
795
|
* stripped from every customer surface, like `ncErrorCode`, `ncReview` and
|
|
795
796
|
* `ncPendingSince`.
|
|
796
797
|
*/
|