sinfactura-types 1.10.358 → 1.10.360

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.
@@ -9,8 +9,8 @@
9
9
  // for event names; snake_case for properties so the GA4 / Segment
10
10
  // vocabulary on the wire maps without translation.
11
11
  //
12
- // 21 variants — the 4 storefront-only events (`Page Viewed`,
13
- // `Favorite Toggled`, `Whatsapp Clicked`, `Error Captured`) currently
14
- // emitted by storefront are NOT in this taxonomy yet; they ride the
15
- // legacy `Log` path and are tracked for a follow-up types release.
12
+ // 22 variants — the 3 storefront-only events (`Page Viewed`,
13
+ // `Whatsapp Clicked`, `Error Captured`) currently emitted by storefront
14
+ // are NOT in this taxonomy yet; they ride the legacy `Log` path and are
15
+ // tracked for a follow-up types release.
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -168,5 +168,24 @@ declare global {
168
168
  type PlatformFxSourcesStoredRow = Omit<PlatformFxSourcesRow, 'sources' | 'persisted'> & {
169
169
  sources: PlatformFxSourceInput[];
170
170
  };
171
+ /**
172
+ * WHY a store's display-currency FX rate could not be resolved — the three
173
+ * facts a `Number(rate) || 1` used to swallow as one.
174
+ *
175
+ * Published because it rides `data.reason` on the `400 FX_CONVERSION_UNAVAILABLE`
176
+ * a cart write and a counter sale answer with, and the three have DIFFERENT
177
+ * remedies an FE should be able to say out loud:
178
+ *
179
+ * - `NO_SUBSCRIPTION` — the store holds no `currencies[]` entry for its own
180
+ * `config.displayCurrency`. Remedy: subscribe the currency.
181
+ * - `ZERO_VALUE` — an entry exists and holds `0` (or a negative). Remedy:
182
+ * repair the stored rate.
183
+ * - `NON_NUMERIC_VALUE` — an entry exists and holds something that is not a
184
+ * number. Same remedy, different cause, and worth telling apart in support.
185
+ *
186
+ * ⚠️ The peso never produces one of these: its rate is 1 by definition, so
187
+ * the fallback IS the right answer there.
188
+ */
189
+ type DisplayCurrencyRateUnresolvedReason = 'NO_SUBSCRIPTION' | 'NON_NUMERIC_VALUE' | 'ZERO_VALUE';
171
190
  }
172
191
  export {};
package/dist/print.d.ts CHANGED
@@ -249,22 +249,41 @@ declare global {
249
249
  * so a `register_printers` upsert cannot reset it on every agent restart.
250
250
  * Absent means the operator has not declared one — a renderer falls back to
251
251
  * its own default rather than guessing from the driver string.
252
+ *
253
+ * **The writer is `POST /print {mode:'printer-profile'}`** (ADMIN;
254
+ * `api/stacks/lambdas/print/_printerProfile.ts` →
255
+ * `services/printers.ts`'s `setPrinterProfile`), and the reader is
256
+ * `api/stacks/helpers/printerRenderHints.ts`. ⚠️ Until that mode landed
257
+ * this docblock described an ownership rule NOTHING implemented, and all
258
+ * four hints resolved their fallback for every printer, permanently.
259
+ *
260
+ * ⚠️ **That write is SUPPLIED-ONLY and there is no clear path.** A request
261
+ * naming one leaf leaves the other three exactly as declared; none of the
262
+ * four can be unset, because "absent" above is defined as never-declared
263
+ * rather than as a value. This is deliberately unlike `rawFormats`, where
264
+ * `[]` IS a documented clear.
252
265
  */
253
266
  columns?: number;
254
267
  /**
255
268
  * Which image command this device renders correctly. Operator-declared and
256
- * BE-owned — same ownership rule as `columns`.
269
+ * BE-owned — same ownership rule as `columns`, same writer
270
+ * (`POST /print {mode:'printer-profile'}`), same supplied-only, no-clear
271
+ * semantics.
257
272
  */
258
273
  imageMode?: 'raster' | 'column';
259
274
  /**
260
275
  * Which QR command this device renders correctly: `native` = the device's
261
276
  * own QR command set, `raster` = send it as an image. Operator-declared and
262
- * BE-owned — same ownership rule as `columns`.
277
+ * BE-owned — same ownership rule as `columns`, same writer
278
+ * (`POST /print {mode:'printer-profile'}`), same supplied-only, no-clear
279
+ * semantics.
263
280
  */
264
281
  qrMode?: 'native' | 'raster';
265
282
  /**
266
283
  * Append a cash-drawer pulse to receipt jobs. Operator-declared and BE-owned
267
- * — same ownership rule as `columns`.
284
+ * — same ownership rule as `columns`, same writer
285
+ * (`POST /print {mode:'printer-profile'}`), same supplied-only, no-clear
286
+ * semantics.
268
287
  */
269
288
  drawerKick?: boolean;
270
289
  /** ms epoch of the last `register_printers` report that included this printer. */
package/dist/report.d.ts CHANGED
@@ -598,5 +598,227 @@ declare global {
598
598
  */
599
599
  mixedCurrency: boolean;
600
600
  }
601
+ /**
602
+ * ONE Buenos Aires day of `GET /reports?mode=cogs-series` — the COGS and
603
+ * gross-margin NUMERATOR published on the same terms as
604
+ * {@link InventoryValueSeries}, which is the denominator.
605
+ *
606
+ * ## Attribution, stated so a consumer never has to guess
607
+ *
608
+ * `date` is the order's **`deliveredDate`**, a Buenos Aires business day.
609
+ * Returns are attributed to the return's OWN `dated` — the day it was
610
+ * PROCESSED, never the originating order's delivery — so a December order
611
+ * returned in January credits January. That is the identical rule
612
+ * {@link ReportSales} applies, through the identical predicate.
613
+ *
614
+ * ⚠️ **The inventory-value series is a SNAPSHOT that OPENS a day, not a day's
615
+ * average.** Its nightly job runs just after the 03:00 UTC Buenos Aires day
616
+ * roll, so the point labelled `D` is the valuation day `D` opens with. A day
617
+ * of COGS is therefore consumed out of inventory held BETWEEN the snapshot of
618
+ * `D` and the snapshot of `D + 1`, and the SANCTIONED pairing — the one this
619
+ * contract commits to, so the app does not have to invent one — is their mean:
620
+ *
621
+ * ```text
622
+ * averageInventory(from..to) = mean(value[from] … value[to + 1])
623
+ * turnover = summary.cogs / averageInventory
624
+ * DSI = summary.days / turnover
625
+ * GMROI = summary.grossMargin / averageInventory
626
+ * ```
627
+ *
628
+ * ⚠️ **`to + 1` is not optional.** Averaging `from..to` alone pairs a period's
629
+ * COGS with an inventory window that closes a day early: turnover reads high
630
+ * for a store drawing stock down and low for one stocking up. If the snapshot
631
+ * for `to + 1` is ABSENT from the series (the job missed that night, or `to`
632
+ * is today and tomorrow has not opened), the ratio is not available — the
633
+ * series never interpolates and neither may a consumer.
634
+ *
635
+ * ⚠️ **A ratio is only as good as the weaker side.** `complete` here and
636
+ * {@link InventoryValuePoint.complete} there must BOTH be true before a
637
+ * turnover, DSI or GMROI may be presented as a fact; otherwise it is a floor
638
+ * and must be labelled one.
639
+ *
640
+ * ## Floors
641
+ *
642
+ * Every money figure below EXCLUDES two populations rather than guessing at
643
+ * them, each counted beside the figure it is missing from:
644
+ *
645
+ * - orders whose `Order.cost` is absent — absence means WITHHELD or UNKNOWN
646
+ * and never `0`, so summing them would report 100 % margin;
647
+ * - orders this store holds no trustworthy rate for, or that carry no
648
+ * denomination at all.
649
+ *
650
+ * ⚠️ Every field is emitted on EVERY row, `0` included — a `0` is the positive
651
+ * statement that nothing was left out.
652
+ */
653
+ interface ReportCogsSeriesPoint {
654
+ /** `YYYYMMDD` as a NUMBER, Buenos Aires. */
655
+ date: number;
656
+ /**
657
+ * COGS of this day, NET of the COSTED returns and FX-converted into
658
+ * `currency`: `Σ Order.cost of costed, convertible orders − Σ Return.cost
659
+ * of costed returns`. The gross half is `cogs + returnCost`.
660
+ *
661
+ * ⚠️ A FLOOR whenever `complete` is `false`.
662
+ */
663
+ cogs: number;
664
+ /**
665
+ * The **cost-comparable** revenue base, net of the COSTED returns:
666
+ * `Σ Order.total of the SAME costed, convertible orders − (returns −
667
+ * uncostedReturns)`.
668
+ *
669
+ * ⚠️ This is deliberately NOT a gross `total`. An uncosted order's revenue
670
+ * is real but has no COGS to sit against, so it is excluded here and
671
+ * reported in `uncostedTotal` — the published rule that `total − cost` is
672
+ * not margin, applied at the source instead of left to the caller.
673
+ *
674
+ * ⚠️ **And it is deliberately net of only HALF the returns, which is where
675
+ * this departs from {@link ReportSales}.** `Return.cost` is withheld
676
+ * exactly when the originating `Order.cost` is, so an uncosted return is
677
+ * the return of an order whose revenue never entered this figure.
678
+ * Subtracting it would drive a day of purely uncosted trade to a negative
679
+ * revenue out of nothing — one uncosted order of 500 with a 200 return
680
+ * would read `-200`. `ReportSales` nets every return because its `total` is
681
+ * GROSS; this one cannot. The credit is not lost: it is in `returns` /
682
+ * `uncostedReturns` / `uncostedReturnCount`.
683
+ */
684
+ revenue: number;
685
+ /** `revenue − cogs`. The GMROI numerator. */
686
+ grossMargin: number;
687
+ /** Delivered orders on this day that carried a cost AND could be converted. */
688
+ costedOrders: number;
689
+ /** Delivered orders excluded from `cogs`/`revenue` for carrying no `Order.cost`. */
690
+ uncostedOrders: number;
691
+ /** Converted revenue of those uncosted orders — what `revenue` deliberately omits. */
692
+ uncostedTotal: number;
693
+ /**
694
+ * Delivered orders excluded from EVERY figure because their denomination
695
+ * could not be trusted. A count, matching
696
+ * {@link InventoryValuePoint.unconvertedProducts}'s shape; the
697
+ * denominations behind it are named once, window-wide, in
698
+ * {@link ReportCogsSeries.unconvertedCurrencies}.
699
+ */
700
+ unconvertedOrders: number;
701
+ /**
702
+ * Positive magnitude of returns credited on this day — every return,
703
+ * costed or not. Only the COSTED half reaches `revenue`.
704
+ *
705
+ * ⚠️ Taken at FACE VALUE in `currency` and NOT FX-converted: a `Return`
706
+ * row carries no denomination and no rate, so there is nothing to convert
707
+ * with and inventing a rate would be a second source of truth for the same
708
+ * money.
709
+ *
710
+ * ⚠️ **The flag for that is `faceValueReturns`, NOT `mixedCurrency`.**
711
+ * `mixedCurrency` only ever fires when the STORE changed its display
712
+ * currency; a store that has always displayed pesos while selling in
713
+ * dollars never trips it, and every one of its returns is nonetheless
714
+ * being read in a denomination nobody recorded.
715
+ */
716
+ returns: number;
717
+ /** Positive magnitude of COGS reversed by the COSTED returns among them. */
718
+ returnCost: number;
719
+ /**
720
+ * Returns that reversed NO cost, and their credit.
721
+ *
722
+ * ⚠️ An uncosted return credits revenue (the credit is known) and reverses
723
+ * nothing (its COGS is not), so this day's margin is understated by exactly
724
+ * the COGS of those goods. The identical disposition {@link ReportSales}
725
+ * gives the same case.
726
+ */
727
+ uncostedReturnCount: number;
728
+ uncostedReturns: number;
729
+ /**
730
+ * Returns on this day whose denomination cannot be certified, because the
731
+ * day carried at least one order that was not natively in `currency`
732
+ * (converted or not). Their `total` is read at face value in `currency`.
733
+ *
734
+ * ⚠️ **Conservative and DERIVED, not measured.** A `Return` row carries no
735
+ * denomination and no link this read projects, so the day's ORDERS are the
736
+ * only evidence available: every return on a non-native day is counted,
737
+ * and a day that traded natively throughout counts none. It is therefore
738
+ * an upper bound on the affected population, not an exact one — which is
739
+ * the right direction for a flag whose whole job is to stop a figure being
740
+ * certified.
741
+ *
742
+ * Emitted always, `0` included.
743
+ */
744
+ faceValueReturns: number;
745
+ /**
746
+ * `uncostedOrders === 0 && unconvertedOrders === 0 && faceValueReturns ===
747
+ * 0` — this row's figures describe the whole day, in one denomination.
748
+ * Derived, never stored.
749
+ */
750
+ complete: boolean;
751
+ }
752
+ /**
753
+ * The window's totals — the EXACT sum of the published `points`, rounded the
754
+ * same way after every addition, so a consumer adding the rows up cannot land
755
+ * a cent away from this.
756
+ */
757
+ interface ReportCogsSeriesSummary extends Omit<ReportCogsSeriesPoint, 'date'> {
758
+ /** The requested window, inclusive, echoed as resolved (`YYYYMMDD`). */
759
+ from: number;
760
+ to: number;
761
+ /** Calendar days in `[from, to]`, inclusive — the DSI denominator. */
762
+ days: number;
763
+ }
764
+ /**
765
+ * `GET /reports?mode=cogs-series&from=YYYYMMDD&to=YYYYMMDD` payload —
766
+ * ADMIN/MANAGER, behind `advancedReports`, store-wide.
767
+ *
768
+ * ⚠️ **STORE-WIDE ONLY, no `warehouseId`** — matching
769
+ * {@link InventoryValueSeries} exactly, and for the ratio's sake rather than
770
+ * by imitation: a numerator at one scope over a denominator at another is not
771
+ * a turnover.
772
+ *
773
+ * ⚠️ **`points` is SPARSE.** A day on which nothing was delivered and nothing
774
+ * returned has no row at all. It is not a measured zero; the window bounds are
775
+ * what make the gap readable.
776
+ *
777
+ * ⚠️ **`points`, `summary` and `unconvertedCurrencies` are ABSENT when
778
+ * `truncated`.** A short walk drops whole orders and whole returns, so the
779
+ * figures would be WRONG rather than merely short, and a ratio built on them
780
+ * wrong in a direction nobody can bound. `from`/`to`/`currency` survive, so a
781
+ * partial window can never be read as a total.
782
+ *
783
+ * ⚠️ **The 800-day cap is the WINDOW GRAMMAR, not the read bound**, and the
784
+ * two are independent. The cap exists so this read and
785
+ * {@link InventoryValueSeries} accept the same periods; the walk over orders
786
+ * and returns is bounded separately by the shared `getAll` guard rail. So a
787
+ * busy store CAN ask for a perfectly legal window and receive `truncated:
788
+ * true` with no figures. The remedy is to re-ask over a narrower window —
789
+ * never to read the last un-truncated answer as covering the wider one.
790
+ */
791
+ interface ReportCogsSeries {
792
+ /** Pinned. The literal exists so a future second scope cannot arrive unannounced. */
793
+ scope: 'store';
794
+ /** The resolved window, echoed on EVERY response including a truncated one. */
795
+ from: number;
796
+ to: number;
797
+ /** The store's display currency — the denomination of every figure below. */
798
+ currency: string;
799
+ /**
800
+ * The store changed its DISPLAY currency inside this window, so the series
801
+ * is not one line and nothing may be divided across the change.
802
+ *
803
+ * ⚠️ Detected exactly as {@link InventoryValueSeries.mixedCurrency} is —
804
+ * from the nightly snapshots' own per-day `currency`, which is the only
805
+ * record of what the display currency WAS on a past day. An order merely
806
+ * denominated in a foreign currency does NOT make a window mixed; that is a
807
+ * conversion, reported through `unconvertedOrders` when it fails. `true`
808
+ * when the snapshot read itself came up short, because a short read may
809
+ * have dropped the very day the denomination moved.
810
+ */
811
+ mixedCurrency: boolean;
812
+ /** Ascending by `date`, sparse. Absent when the read truncated. */
813
+ points?: ReportCogsSeriesPoint[];
814
+ /** Absent when the read truncated. */
815
+ summary?: ReportCogsSeriesSummary;
816
+ /**
817
+ * The catalog currency ids behind every row's `unconvertedOrders`,
818
+ * ascending; `'unknown'` stands for an order carrying no denomination at
819
+ * all. Empty when nothing was dropped. Absent when the read truncated.
820
+ */
821
+ unconvertedCurrencies?: string[];
822
+ }
601
823
  }
602
824
  export {};
@@ -953,6 +953,17 @@ declare global {
953
953
  * linkage.
954
954
  */
955
955
  parentServiceOrderId?: string;
956
+ /**
957
+ * A recorded fact only — nothing branches on it. `POST /services
958
+ * {mode:'create'}` accepts it and stamps it when supplied, and no handler,
959
+ * projection rule or money derivation reads it back.
960
+ *
961
+ * Deliberately independent of `billable`, which is the ONLY field that
962
+ * makes a job free: a rework can be goodwill-billed and a non-rework can be
963
+ * free, so neither implies the other. Kept published rather than removed
964
+ * because it is what an operator answers the art. 23 warranty question
965
+ * with, and a consumer reading the trio needs all three.
966
+ */
956
967
  isWarrantyRework?: boolean;
957
968
  /**
958
969
  * False on a warranty rework. Absent is treated as billable.
package/dist/store.d.ts CHANGED
@@ -524,27 +524,43 @@ declare global {
524
524
  * be stamped with a currency their balance is not kept in, whatever
525
525
  * this retired field still holds.
526
526
  *
527
- * ⚠️ Two things did NOT follow from that, and they are the live
528
- * questions. Rows stamped BEFORE it shipped are untouched — this repo
529
- * is forward-only, so nothing backfills them. And a `currencyId` that
530
- * resolves to no entry in `store.currencies` is not merely a label
531
- * problem: storefront checkout looks the id up and falls through to a
532
- * conversion rate of `1`, which prices a foreign-currency customer at
533
- * parity and compares the DNI/CUIT threshold against an unconverted
534
- * total.
527
+ * ⚠️ One thing did NOT follow from that: rows stamped BEFORE it shipped
528
+ * are untouched — this repo is forward-only, so nothing backfills them.
535
529
  *
536
- * Seed catalogId offered as the FE currency-selector default when a new
537
- * customer-facing money row is created. Does not reinterpret existing
538
- * rows, and — importantly — **does not denominate the Account ledger.**
530
+ * ⚠️ **This paragraph used to claim a second consequence, and it was
531
+ * WRONG.** It said a `currencyId` resolving to no `store.currencies`
532
+ * entry made storefront checkout fall through to a conversion rate of
533
+ * `1`, pricing a foreign-currency customer at parity and comparing the
534
+ * DNI/CUIT threshold against an unconverted total. The threshold half is
535
+ * false: the storefront's `requiresDniForTotal` converts with the CART's
536
+ * currency falling back to the store's `displayCurrency`, never the
537
+ * customer's, and its own docblock names that as the defect it avoids;
538
+ * it also fails closed on an absent or zero threshold. The residual
539
+ * `|| 1` in that helper falls back to the STORE's rate, not the
540
+ * customer's. So a stale `currencyId` is a label problem here and a
541
+ * presentation one over there — never a fiscal one, which is what the
542
+ * old wording implied.
543
+ *
544
+ * Seed catalogId an operator declares as the intended currency-selector
545
+ * default for new customer-facing money rows. Does not reinterpret
546
+ * existing rows, and — importantly — **does not denominate the Account
547
+ * ledger.**
539
548
  *
540
549
  * ⚠️ Read this before treating it as the account currency. `credit`/`debit`
541
550
  * on every row of the ACCOUNT partition are denominated in
542
551
  * `displayCurrency`, and the backend enforces that: caller-chosen and
543
552
  * order-derived amounts alike convert before persisting and refuse with
544
553
  * `FX_CONVERSION_UNAVAILABLE` when no usable rate resolves. Nothing on the
545
- * backend reads this field at all — it is consumed exclusively by the
546
- * frontend, which uses it to preselect a currency on customer creation and
547
- * on the invoice flow.
554
+ * backend reads this field at all.
555
+ *
556
+ * ⚠️ **Nor does any frontend flow consume it as a default today.** This
557
+ * docblock used to say the FE preselects it on customer creation and on
558
+ * the invoice flow; grepping `sinfactura/app` finds its only readers in
559
+ * the store-configuration editor itself (`components/store/`,
560
+ * `screens/supervisor/Store/`) — it is displayed and written there and
561
+ * read nowhere else. So it is, today, a stored operator preference with
562
+ * no consumer: state that rather than a behaviour, and re-grep before
563
+ * quoting either claim.
548
564
  *
549
565
  * ⚠️ Consequence: setting this to anything other than `displayCurrency`
550
566
  * produces customer rows whose stamped currency disagrees with the
@@ -163,6 +163,12 @@ declare global {
163
163
  event: 'Customer Password Changed';
164
164
  customer_id: string;
165
165
  }
166
- type StorefrontEvent = ProductViewedEvent | ProductListViewedEvent | CartItemAddedEvent | CartItemRemovedEvent | CartViewedEvent | SearchSubmittedEvent | CheckoutStartedEvent | CheckoutStepCompletedEvent | PaymentInfoEnteredEvent | OrderCompletedEvent | OrderCancelledByCustomerEvent | CustomerLoggedInEvent | CustomerSignedUpEvent | CustomerLoggedOutEvent | CustomerIdentifiedEvent | CustomerPasswordResetRequestedEvent | NotificationMarkedReadEvent | NotificationsMarkedAllReadEvent | SurveySubmittedEvent | CustomerProfileUpdatedEvent | CustomerPasswordChangedEvent;
166
+ interface FavoriteToggledEvent extends StorefrontEventBase {
167
+ event: 'Favorite Toggled';
168
+ product_id: string;
169
+ product_name: string;
170
+ direction: 'added' | 'removed';
171
+ }
172
+ type StorefrontEvent = ProductViewedEvent | ProductListViewedEvent | CartItemAddedEvent | CartItemRemovedEvent | CartViewedEvent | SearchSubmittedEvent | CheckoutStartedEvent | CheckoutStepCompletedEvent | PaymentInfoEnteredEvent | OrderCompletedEvent | OrderCancelledByCustomerEvent | CustomerLoggedInEvent | CustomerSignedUpEvent | CustomerLoggedOutEvent | CustomerIdentifiedEvent | CustomerPasswordResetRequestedEvent | NotificationMarkedReadEvent | NotificationsMarkedAllReadEvent | SurveySubmittedEvent | CustomerProfileUpdatedEvent | CustomerPasswordChangedEvent | FavoriteToggledEvent;
167
173
  }
168
174
  export {};
@@ -8,8 +8,8 @@
8
8
  // for event names; snake_case for properties so the GA4 / Segment
9
9
  // vocabulary on the wire maps without translation.
10
10
  //
11
- // 21 variants — the 4 storefront-only events (`Page Viewed`,
12
- // `Favorite Toggled`, `Whatsapp Clicked`, `Error Captured`) currently
13
- // emitted by storefront are NOT in this taxonomy yet; they ride the
14
- // legacy `Log` path and are tracked for a follow-up types release.
11
+ // 22 variants — the 3 storefront-only events (`Page Viewed`,
12
+ // `Whatsapp Clicked`, `Error Captured`) currently emitted by storefront
13
+ // are NOT in this taxonomy yet; they ride the legacy `Log` path and are
14
+ // tracked for a follow-up types release.
15
15
  export {};
@@ -944,6 +944,21 @@ declare global {
944
944
  printer_id: string;
945
945
  raw_formats: ('zpl' | 'escpos')[];
946
946
  }
947
+ /**
948
+ * Sibling of `PrinterRawFormatsUpdatedEvent` for `POST /print
949
+ * {mode:'printer-profile'}` — the operator-declared render hints
950
+ * (`PrintPrinter.columns/imageMode/qrMode/drawerKick`). Carries ONLY the
951
+ * leaves the request supplied; an absent key was not touched, never cleared.
952
+ */
953
+ interface PrinterProfileUpdatedEvent extends UserActivityEventBase {
954
+ event: 'Printer Profile Updated';
955
+ agent_id: string;
956
+ printer_id: string;
957
+ columns?: number;
958
+ image_mode?: 'raster' | 'column';
959
+ qr_mode?: 'native' | 'raster';
960
+ drawer_kick?: boolean;
961
+ }
947
962
  /**
948
963
  * A MANAGER edit to a PLAN TEMPLATE's own fields via
949
964
  * `PATCH /platform/billing/plans/{tier}` — the catalog row, not anybody's
@@ -1030,7 +1045,7 @@ declare global {
1030
1045
  carrier?: string;
1031
1046
  tracking_set: boolean;
1032
1047
  }
1033
- type UserActivityEvent = CustomerConsentImportedEvent | CustomerConsentImportCompletedEvent | UserLoggedInEvent | UserLoggedOutEvent | UserPasswordChangedEvent | UserSuspendedEvent | TwoFactorEnrolledEvent | TwoFactorDisabledEvent | TwoFactorResetEvent | TwoFactorRecoveryCodesGeneratedEvent | StoreSettingsUpdatedEvent | PlanChangedEvent | InvoiceCreatedEvent | OrderCreatedEvent | OrderCancelledEvent | OrderEditedEvent | OrderReturnedEvent | ProductPriceChangedEvent | CustomerCreatedEvent | CustomerEditedEvent | CustomerRecordServedEvent | CashDrawerOpenedEvent | CashDrawerClosedEvent | TenantImpersonatedEvent | SecretRotatedEvent | UserCreatedEvent | UserUpdatedEvent | ProductCreatedEvent | ProductUpdatedEvent | StockIncomeCreatedEvent | StockAdjustedEvent | CategoryCreatedEvent | CategoryUpdatedEvent | BrandCreatedEvent | BrandUpdatedEvent | SupplierCreatedEvent | SupplierUpdatedEvent | SupplierInvoiceCreatedEvent | SupplierAccountCreatedEvent | SupplierAccountUpdatedEvent | AccountCreatedEvent | AccountDeletedEvent | BasketUpdatedEvent | BasketDiscountGrantedEvent | BasketDeletedEvent | CashDrawerMovementEvent | PaymentCreatedEvent | PaymentLinkedEvent | PaymentUnlinkedEvent | PaymentLinkageUpdatedEvent | CreditLimitOverriddenEvent | NotificationReadEvent | LogDeletedEvent | PlanCreatedEvent | StoreMaintenanceToggledEvent | PlatformMaintenanceToggledEvent | MaintenanceBroadcastSentEvent | TenantCreatedEvent | LiteralUpdatedEvent | SupportTicketCreatedEvent | SupportTicketUpdatedEvent | AuditTrailViewedEvent | ReportViewedEvent | CustomerPiiViewedEvent | CashDrawerUiOpenedEvent | CashDrawerUiClosedEvent | ExportInitiatedEvent | ImpersonationUiStartedEvent | ImpersonationUiEndedEvent | PaymentViewedEvent | InvoiceViewedEvent | CustomerDetailViewedEvent | SupplierAccountViewedEvent | SearchPerformedEvent | ActionDeniedEvent | TwoFactorChallengeShownEvent | TwoFactorCodeValidationFailedEvent | TwoFactorEnrollmentStartedEvent | TwoFactorRecoveryCodesRevealedEvent | TwoFactorResetInitiatedEvent | IntegrationTokenRefreshedEvent | WaitlistConvertedEvent | PlatformConfigUpdatedEvent | MlChannelStatusChangedEvent | PrintRuleCreatedEvent | PrintRuleEditedEvent | PrintRuleDeletedEvent | WebhookCreatedEvent | WebhookUpdatedEvent | WebhookDeletedEvent | PrinterActiveToggledEvent | PrinterRawFormatsUpdatedEvent | PlanTemplateUpdatedEvent | SupplierAccountDeletedEvent | CustomerPasswordResetInitiatedEvent | UserSessionsRevokedEvent | UserAnonymizedEvent | UserPasswordResetInitiatedByOperatorEvent | AgentCommandDispatchedEvent | RmaRequestedEvent | RmaTransitionedEvent | RmaTrackingUpdatedEvent | ClockedInEvent | ClockedOutEvent | AttendanceCorrectedEvent;
1048
+ type UserActivityEvent = CustomerConsentImportedEvent | CustomerConsentImportCompletedEvent | UserLoggedInEvent | UserLoggedOutEvent | UserPasswordChangedEvent | UserSuspendedEvent | TwoFactorEnrolledEvent | TwoFactorDisabledEvent | TwoFactorResetEvent | TwoFactorRecoveryCodesGeneratedEvent | StoreSettingsUpdatedEvent | PlanChangedEvent | InvoiceCreatedEvent | OrderCreatedEvent | OrderCancelledEvent | OrderEditedEvent | OrderReturnedEvent | ProductPriceChangedEvent | CustomerCreatedEvent | CustomerEditedEvent | CustomerRecordServedEvent | CashDrawerOpenedEvent | CashDrawerClosedEvent | TenantImpersonatedEvent | SecretRotatedEvent | UserCreatedEvent | UserUpdatedEvent | ProductCreatedEvent | ProductUpdatedEvent | StockIncomeCreatedEvent | StockAdjustedEvent | CategoryCreatedEvent | CategoryUpdatedEvent | BrandCreatedEvent | BrandUpdatedEvent | SupplierCreatedEvent | SupplierUpdatedEvent | SupplierInvoiceCreatedEvent | SupplierAccountCreatedEvent | SupplierAccountUpdatedEvent | AccountCreatedEvent | AccountDeletedEvent | BasketUpdatedEvent | BasketDiscountGrantedEvent | BasketDeletedEvent | CashDrawerMovementEvent | PaymentCreatedEvent | PaymentLinkedEvent | PaymentUnlinkedEvent | PaymentLinkageUpdatedEvent | CreditLimitOverriddenEvent | NotificationReadEvent | LogDeletedEvent | PlanCreatedEvent | StoreMaintenanceToggledEvent | PlatformMaintenanceToggledEvent | MaintenanceBroadcastSentEvent | TenantCreatedEvent | LiteralUpdatedEvent | SupportTicketCreatedEvent | SupportTicketUpdatedEvent | AuditTrailViewedEvent | ReportViewedEvent | CustomerPiiViewedEvent | CashDrawerUiOpenedEvent | CashDrawerUiClosedEvent | ExportInitiatedEvent | ImpersonationUiStartedEvent | ImpersonationUiEndedEvent | PaymentViewedEvent | InvoiceViewedEvent | CustomerDetailViewedEvent | SupplierAccountViewedEvent | SearchPerformedEvent | ActionDeniedEvent | TwoFactorChallengeShownEvent | TwoFactorCodeValidationFailedEvent | TwoFactorEnrollmentStartedEvent | TwoFactorRecoveryCodesRevealedEvent | TwoFactorResetInitiatedEvent | IntegrationTokenRefreshedEvent | WaitlistConvertedEvent | PlatformConfigUpdatedEvent | MlChannelStatusChangedEvent | PrintRuleCreatedEvent | PrintRuleEditedEvent | PrintRuleDeletedEvent | WebhookCreatedEvent | WebhookUpdatedEvent | WebhookDeletedEvent | PrinterActiveToggledEvent | PrinterRawFormatsUpdatedEvent | PrinterProfileUpdatedEvent | PlanTemplateUpdatedEvent | SupplierAccountDeletedEvent | CustomerPasswordResetInitiatedEvent | UserSessionsRevokedEvent | UserAnonymizedEvent | UserPasswordResetInitiatedByOperatorEvent | AgentCommandDispatchedEvent | RmaRequestedEvent | RmaTransitionedEvent | RmaTrackingUpdatedEvent | ClockedInEvent | ClockedOutEvent | AttendanceCorrectedEvent;
1034
1049
  }
1035
1050
  /**
1036
1051
  * Canonical whitelist of UI-only `UserActivityEvent` variant names. Imported by
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sinfactura-types",
3
- "version": "1.10.358",
3
+ "version": "1.10.360",
4
4
  "description": "Shared wire and entity contracts for the SINFACTURA platform.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",