sinfactura-types 1.10.365 → 1.10.367

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.
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ // A customer's CONTACTS: the people who act for one customer — the person who
3
+ // orders is not always the person who pays, and both belong to that customer.
4
+ //
5
+ // Purely ADDITIVE. Nothing on the CUSTOMER row mirrors a contact: `Customer.phone`
6
+ // and `Customer.email` stay the customer's OWN details (`email` is a login
7
+ // identity with a uniqueness claim, and SMS / marketing read `phone` / `email`
8
+ // directly), so there is no default contact, no pointer and no legacy writer to
9
+ // keep in step. A contact is never a notification target and never feeds the
10
+ // customer's `search` index.
11
+ //
12
+ // ⚠️ A contact is ANOTHER person's personal data (Ley 25.326), held by the store
13
+ // about the customer's staff. Never log a contact's name, phone or email, and
14
+ // never hand one to the customer unreviewed: the art. 14 export carries contacts
15
+ // on the STAFF surface only, never on the storefront self-service export.
16
+ Object.defineProperty(exports, "__esModule", { value: true });
package/dist/cjs/index.js CHANGED
@@ -40,6 +40,7 @@ __exportStar(require("./categories.js"), exports);
40
40
  __exportStar(require("./currency.js"), exports);
41
41
  __exportStar(require("./customer.js"), exports);
42
42
  __exportStar(require("./customerAddress.js"), exports);
43
+ __exportStar(require("./customerContact.js"), exports);
43
44
  __exportStar(require("./customerNote.js"), exports);
44
45
  __exportStar(require("./cycleCount.js"), exports);
45
46
  __exportStar(require("./delivery.js"), exports);
@@ -7,7 +7,7 @@ exports.NotificationTypeEnum = void 0;
7
7
  // Stripe hook, propagate-fx). Exported as a real enum so `api`
8
8
  // (stacks/helpers/notificationType.ts) and `app`
9
9
  // (src/domain/notificationType.ts) can drop their hand-mirrored copies
10
- // in follow-ups. DOLARBNA / ERROR / ML_FACTURADOR_COLLISION have no
10
+ // in follow-ups. DOLARBNA / ERROR / ML_FACTURADOR_COLLISION / ML_SELLER_SWITCHED have no
11
11
  // User-row read path — enum members only. AFIP_CERT_EXPIRY (the
12
12
  // cert-expiry alert type) was in that list and no longer belongs to it:
13
13
  // `createStore` seeds it on the founding user and `afipCertMonitor`
@@ -49,6 +49,19 @@ var NotificationTypeEnum;
49
49
  * The producer therefore fans out to every ADMIN of the store.
50
50
  */
51
51
  NotificationTypeEnum["ML_FACTURADOR_COLLISION"] = "ML_FACTURADOR_COLLISION";
52
+ /**
53
+ * The store's linked Mercado Libre seller was REPLACED by a different ML
54
+ * account (a confirmed seller switch). Names who switched it, from which
55
+ * account to which, and when.
56
+ *
57
+ * ⚠️ No User-row read path, same category and same two reasons as
58
+ * `ML_FACTURADOR_COLLISION`: a silent seller switch drops every
59
+ * notification for the real seller, which no tenant should be able to
60
+ * opt out of hearing about; and a new key is seeded nowhere, so an opt-in
61
+ * read would deliver it to nobody. The producer fans out to every
62
+ * non-disabled ADMIN of the store. Additive — no consumer migration owed.
63
+ */
64
+ NotificationTypeEnum["ML_SELLER_SWITCHED"] = "ML_SELLER_SWITCHED";
52
65
  // Stock alerts — fired when a sale crosses a product's stock
53
66
  // threshold. LOW_STOCK at stock <= `Product.minStock`; OUT_OF_STOCK at
54
67
  // stock <= 0. Both have User-row opt-in read paths.
@@ -169,6 +169,15 @@ exports.SOCKET_ACTIONS = [
169
169
  * `'operator-and-customer'` fan-out carries them.
170
170
  */
171
171
  'customerAddress',
172
+ /**
173
+ * A customer's contact (a person acting for the customer) was created,
174
+ * edited or deleted — or every contact of one customer was erased or moved
175
+ * by a merge (`change: 'purged'`). `data` is `CustomerContactChange`.
176
+ * OPERATOR audience only, with an ids-only `lowTierData`; the rows are
177
+ * written by raw transactions, so no automatic `'operator-and-customer'`
178
+ * fan-out carries them.
179
+ */
180
+ 'customerContact',
172
181
  /**
173
182
  * A delivery created, or an event appended to its timeline. Operator-only —
174
183
  * `wsPostStore(..., { audience: 'operator' })`, NEVER
@@ -589,6 +589,13 @@ declare global {
589
589
  * merged row's denormalised address copy stays as it was.
590
590
  */
591
591
  addressesMoved: number;
592
+ /**
593
+ * Contact rows (`CUSTOMER_CONTACT#{storeId}#{customerId}`) THIS run moved
594
+ * from the merged customer into the survivor's partition, one transaction
595
+ * each. A contact whose id is taken on the survivor is re-keyed to a fresh
596
+ * id. Contacts carry no pointer on the CUSTOMER row, so nothing else moves.
597
+ */
598
+ contactsMoved: number;
592
599
  /**
593
600
  * Both sides' `BALANCE-{customerId}-{date}` checkpoints were invalidated —
594
601
  * a checkpoint bakes a running balance for a ledger that just changed
@@ -663,6 +670,15 @@ declare global {
663
670
  * subject's own data. Each entry is the address and its dates only.
664
671
  */
665
672
  addresses: CustomerAddressExportEntry[];
673
+ /**
674
+ * The customer's contacts (the people who act for it), oldest first.
675
+ * PRESENT ONLY on the STAFF-initiated export, exactly like `notes`: each
676
+ * entry is a THIRD party's personal data (name, role, phone, email) held
677
+ * about the subject, so staff review it before handing the file over.
678
+ * ABSENT — never read — on the storefront self-service export. Each entry
679
+ * carries the contact and its dates only.
680
+ */
681
+ contacts?: CustomerContactExportEntry[];
666
682
  /**
667
683
  * Per COLLECTION, and honest: `true` means the read stopped before the
668
684
  * end of that partition and rows are MISSING from this export.
@@ -677,6 +693,8 @@ declare global {
677
693
  /** Present exactly when `notes` is. */
678
694
  notes?: boolean;
679
695
  addresses: boolean;
696
+ /** Present exactly when `contacts` is. */
697
+ contacts?: boolean;
680
698
  };
681
699
  }
682
700
  /**
@@ -749,6 +767,18 @@ declare global {
749
767
  * On BOTH wires — the subject's own addresses.
750
768
  */
751
769
  addressesEraseComplete: boolean;
770
+ /**
771
+ * Contact rows (`CUSTOMER_CONTACT#{storeId}#{customerId}`) DELETED by this
772
+ * erasure — the whole row goes. Nothing on the CUSTOMER row mirrors one.
773
+ */
774
+ contactsErased: number;
775
+ /**
776
+ * `false` when the contact partition could not be read or deleted to the
777
+ * end. Re-issuing the erasure re-runs the deletion; BOTH erasure handlers
778
+ * write a deduped `ERROR` row (`CUSTOMER_ANONYMIZE_CONTACTS_INCOMPLETE`).
779
+ * On BOTH wires — counts only.
780
+ */
781
+ contactsEraseComplete: boolean;
752
782
  }
753
783
  /**
754
784
  * A stored `Customer` plus the session tokens. Same caveat as `AuthUser`:
@@ -0,0 +1,96 @@
1
+ declare global {
2
+ /**
3
+ * One contact as it crosses the wire — an explicit allow-list of the stored
4
+ * row (no `PK`/`SK`, no `storeId`).
5
+ *
6
+ * `contactId` is the row's sort key — `{13-digit creation ms}-{8 hex}` —
7
+ * opaque to a client: address a row by `{ customerId, contactId }`, never
8
+ * parse it. Every text field is an empty string when unset.
9
+ */
10
+ interface CustomerContact {
11
+ contactId: string;
12
+ customerId: string;
13
+ /** The person's name. */
14
+ fullName: string;
15
+ /** What they do for the customer ("Compras", "Pagos", "Encargado"). Free text. */
16
+ role: string;
17
+ phone: string;
18
+ email: string;
19
+ createdAt: number;
20
+ updatedAt: number;
21
+ }
22
+ /**
23
+ * `GET /customers/contacts?customerId=` — one page, ascending by `contactId`
24
+ * (oldest first).
25
+ */
26
+ interface CustomerContactPage {
27
+ items: CustomerContact[];
28
+ /** Opaque; pass back as `?startKey=`. Absent once the walk is drained. */
29
+ nextCursor?: string;
30
+ /** `true` whenever more contacts exist past this page — never a silent prefix. */
31
+ truncated: boolean;
32
+ }
33
+ /**
34
+ * `data` of the `customerContact` socket frame. OPERATOR audience only — the
35
+ * customer's own socket is NOT addressed.
36
+ *
37
+ * `contact` is the whole row on the admin tier for `created` / `updated`,
38
+ * and absent on `deleted`. It is ALWAYS absent on the copy an operator socket
39
+ * that cannot prove admin tier receives (`lowTierData` — the ids only,
40
+ * `{ change, customerId, contactId }`, or `{ change, customerId, movedTo? }`
41
+ * for `purged`). The low tier is every socket that is not ADMIN, SUPERVISOR
42
+ * or MANAGER — a USER WITH the `customers` flag included — so the frame never
43
+ * carries a contact there; a capable USER refetches through the gated GET.
44
+ *
45
+ * `purged` is ONE frame for the whole customer: drop every cached contact for
46
+ * `customerId`. Sent when the Ley 25.326 art. 16 erasure deleted them (no
47
+ * `movedTo`), and when a customer merge moved them to the survivor
48
+ * (`movedTo` = survivor's id — refetch its list).
49
+ */
50
+ type CustomerContactChange = {
51
+ change: 'created' | 'updated' | 'deleted';
52
+ customerId: string;
53
+ contactId: string;
54
+ contact?: CustomerContact;
55
+ } | {
56
+ change: 'purged';
57
+ customerId: string;
58
+ movedTo?: string;
59
+ };
60
+ /**
61
+ * One contact as the STAFF art. 14 export carries it: the contact and its
62
+ * dates. The self-service export never reads the contacts partition.
63
+ */
64
+ interface CustomerContactExportEntry {
65
+ contactId: string;
66
+ fullName: string;
67
+ role: string;
68
+ phone: string;
69
+ email: string;
70
+ createdAt: number;
71
+ updatedAt: number;
72
+ }
73
+ /**
74
+ * Every DOMAIN refusal on `/customers/contacts`, one bare code each (the
75
+ * generic `VALIDATION_FAILED`, `CAPABILITY_REQUIRED` and `INVALID_CURSOR`
76
+ * are not listed). None of them writes.
77
+ *
78
+ * - `CUSTOMER_CONTACT_CUSTOMER_NOT_FOUND` (404) — not a customer of the
79
+ * caller's store; covers «no such id», so the route is no cross-tenant
80
+ * existence oracle. DELETE is the exception: it reads the contact
81
+ * first, so an unknown or foreign customer answers
82
+ * `CUSTOMER_CONTACT_NOT_FOUND` there (same 404).
83
+ * - `CUSTOMER_CONTACT_CUSTOMER_ANONYMIZED` (409) — erased under Ley 25.326
84
+ * art. 16; enforced atomically with the write.
85
+ * - `CUSTOMER_CONTACT_CUSTOMER_MERGED` (409) — folded into another customer
86
+ * (`mergedInto`); write on the survivor.
87
+ * - `CUSTOMER_CONTACT_CUSTOMER_MERGE_IN_PROGRESS` (409) — a merge INTO this
88
+ * customer is unfinished; its contacts are still arriving. Retry once the
89
+ * merge completes.
90
+ * - `CUSTOMER_CONTACT_NOT_FOUND` (404) — no such contact for that customer.
91
+ * - `CUSTOMER_CONTACT_WRITE_CONTENDED` (503) — the contact was edited under
92
+ * every bounded retry; retry is safe.
93
+ */
94
+ type CustomerContactErrorCode = 'CUSTOMER_CONTACT_CUSTOMER_NOT_FOUND' | 'CUSTOMER_CONTACT_CUSTOMER_ANONYMIZED' | 'CUSTOMER_CONTACT_CUSTOMER_MERGED' | 'CUSTOMER_CONTACT_CUSTOMER_MERGE_IN_PROGRESS' | 'CUSTOMER_CONTACT_NOT_FOUND' | 'CUSTOMER_CONTACT_WRITE_CONTENDED';
95
+ }
96
+ export {};
@@ -0,0 +1,15 @@
1
+ // A customer's CONTACTS: the people who act for one customer — the person who
2
+ // orders is not always the person who pays, and both belong to that customer.
3
+ //
4
+ // Purely ADDITIVE. Nothing on the CUSTOMER row mirrors a contact: `Customer.phone`
5
+ // and `Customer.email` stay the customer's OWN details (`email` is a login
6
+ // identity with a uniqueness claim, and SMS / marketing read `phone` / `email`
7
+ // directly), so there is no default contact, no pointer and no legacy writer to
8
+ // keep in step. A contact is never a notification target and never feeds the
9
+ // customer's `search` index.
10
+ //
11
+ // ⚠️ A contact is ANOTHER person's personal data (Ley 25.326), held by the store
12
+ // about the customer's staff. Never log a contact's name, phone or email, and
13
+ // never hand one to the customer unreviewed: the art. 14 export carries contacts
14
+ // on the STAFF surface only, never on the storefront self-service export.
15
+ export {};
package/dist/index.d.ts CHANGED
@@ -16,6 +16,7 @@ export * from './categories.ts';
16
16
  export * from './currency.ts';
17
17
  export * from './customer.ts';
18
18
  export * from './customerAddress.ts';
19
+ export * from './customerContact.ts';
19
20
  export * from './customerNote.ts';
20
21
  export * from './cycleCount.ts';
21
22
  export * from './delivery.ts';
package/dist/index.js CHANGED
@@ -24,6 +24,7 @@ export * from "./categories.js";
24
24
  export * from "./currency.js";
25
25
  export * from "./customer.js";
26
26
  export * from "./customerAddress.js";
27
+ export * from "./customerContact.js";
27
28
  export * from "./customerNote.js";
28
29
  export * from "./cycleCount.js";
29
30
  export * from "./delivery.js";
@@ -2,7 +2,27 @@ declare global {
2
2
  interface MlOauthInitiateResponse {
3
3
  authorizationUrl: string;
4
4
  }
5
- type MlOauthErrorCode = 'OAUTH_USER_DENIED' | 'OAUTH_STATE_MISMATCH' | 'OAUTH_EXCHANGE_FAILED' | 'ML_OAUTH_NOT_CONFIGURED' | 'ML_REDIRECT_URI_MISMATCH' | 'ML_OFFLINE_ACCESS_NOT_GRANTED' | 'ML_OPERATOR_SUB_ACCOUNT' | 'ML_SELLER_ALREADY_LINKED';
5
+ interface MlOauthInitiateRequest {
6
+ switchToUserId?: string;
7
+ }
8
+ interface MlSellerAccountRef {
9
+ userId: string;
10
+ nickname?: string;
11
+ }
12
+ interface MlSellerSwitchRefusal {
13
+ code: MlSellerSwitchRefusalCode;
14
+ current: MlSellerAccountRef;
15
+ attempted: MlSellerAccountRef;
16
+ }
17
+ interface MlSellerSwitchRefusalQuery {
18
+ error: MlSellerSwitchRefusalCode;
19
+ currentUserId: string;
20
+ currentNickname?: string;
21
+ attemptedUserId: string;
22
+ attemptedNickname?: string;
23
+ }
24
+ type MlSellerSwitchRefusalCode = 'ML_SELLER_SWITCH_UNCONFIRMED' | 'ML_SELLER_SWITCH_MISMATCH' | 'ML_SELLER_SWITCH_STALE';
25
+ type MlOauthErrorCode = 'OAUTH_USER_DENIED' | 'OAUTH_STATE_MISMATCH' | 'OAUTH_EXCHANGE_FAILED' | 'ML_OAUTH_NOT_CONFIGURED' | 'ML_REDIRECT_URI_MISMATCH' | 'ML_OFFLINE_ACCESS_NOT_GRANTED' | 'ML_OPERATOR_SUB_ACCOUNT' | 'ML_SELLER_ALREADY_LINKED' | MlSellerSwitchRefusalCode;
6
26
  type MlMatchGrade = 'vinculada' | 'para-revisar' | 'sin-vincular' | 'rechazada';
7
27
  type MlMatchBasis = 'seller_sku' | 'gtin' | 'title';
8
28
  interface MlFieldError {
@@ -29,6 +29,19 @@ export declare enum NotificationTypeEnum {
29
29
  * The producer therefore fans out to every ADMIN of the store.
30
30
  */
31
31
  ML_FACTURADOR_COLLISION = "ML_FACTURADOR_COLLISION",
32
+ /**
33
+ * The store's linked Mercado Libre seller was REPLACED by a different ML
34
+ * account (a confirmed seller switch). Names who switched it, from which
35
+ * account to which, and when.
36
+ *
37
+ * ⚠️ No User-row read path, same category and same two reasons as
38
+ * `ML_FACTURADOR_COLLISION`: a silent seller switch drops every
39
+ * notification for the real seller, which no tenant should be able to
40
+ * opt out of hearing about; and a new key is seeded nowhere, so an opt-in
41
+ * read would deliver it to nobody. The producer fans out to every
42
+ * non-disabled ADMIN of the store. Additive — no consumer migration owed.
43
+ */
44
+ ML_SELLER_SWITCHED = "ML_SELLER_SWITCHED",
32
45
  LOW_STOCK = "LOW_STOCK",
33
46
  OUT_OF_STOCK = "OUT_OF_STOCK",
34
47
  SUPPORT = "SUPPORT",
@@ -4,7 +4,7 @@
4
4
  // Stripe hook, propagate-fx). Exported as a real enum so `api`
5
5
  // (stacks/helpers/notificationType.ts) and `app`
6
6
  // (src/domain/notificationType.ts) can drop their hand-mirrored copies
7
- // in follow-ups. DOLARBNA / ERROR / ML_FACTURADOR_COLLISION have no
7
+ // in follow-ups. DOLARBNA / ERROR / ML_FACTURADOR_COLLISION / ML_SELLER_SWITCHED have no
8
8
  // User-row read path — enum members only. AFIP_CERT_EXPIRY (the
9
9
  // cert-expiry alert type) was in that list and no longer belongs to it:
10
10
  // `createStore` seeds it on the founding user and `afipCertMonitor`
@@ -46,6 +46,19 @@ export var NotificationTypeEnum;
46
46
  * The producer therefore fans out to every ADMIN of the store.
47
47
  */
48
48
  NotificationTypeEnum["ML_FACTURADOR_COLLISION"] = "ML_FACTURADOR_COLLISION";
49
+ /**
50
+ * The store's linked Mercado Libre seller was REPLACED by a different ML
51
+ * account (a confirmed seller switch). Names who switched it, from which
52
+ * account to which, and when.
53
+ *
54
+ * ⚠️ No User-row read path, same category and same two reasons as
55
+ * `ML_FACTURADOR_COLLISION`: a silent seller switch drops every
56
+ * notification for the real seller, which no tenant should be able to
57
+ * opt out of hearing about; and a new key is seeded nowhere, so an opt-in
58
+ * read would deliver it to nobody. The producer fans out to every
59
+ * non-disabled ADMIN of the store. Additive — no consumer migration owed.
60
+ */
61
+ NotificationTypeEnum["ML_SELLER_SWITCHED"] = "ML_SELLER_SWITCHED";
49
62
  // Stock alerts — fired when a sale crosses a product's stock
50
63
  // threshold. LOW_STOCK at stock <= `Product.minStock`; OUT_OF_STOCK at
51
64
  // stock <= 0. Both have User-row opt-in read paths.
package/dist/socket.d.ts CHANGED
@@ -26,7 +26,7 @@
26
26
  * A client must ignore actions it does not own rather than assume it
27
27
  * receives all of them.
28
28
  */
29
- export declare const SOCKET_ACTIONS: readonly ["account", "appointments", "appointmentWaitlist", "attendance", "automation-rules", "baskets", "cart", "brands", "cash", "categories", "campaigns", "customers", "customerNote", "customerAddress", "deliveries", "globals", "inventory", "invoices", "literals", "loyalty", "orders", "presupuestos", "products", "promotions", "segments", "returns", "rma", "templates", "services", "service-templates", "shifts", "stores", "suppliers", "supplier-invoice", "support", "surveys", "users", "warehouses", "favorites", "webhooks", "account-delete", "baskets-delete", "cart-delete", "log-delete", "notifications", "support-message", "whatsapp-message", "payment_received", "payment_linked", "payment_unlinked", "mercadopago", "mercadopago_dynamic_qr_created", "mercadopago_static_qr_created", "mp_hook_log_appended", "mp_ipn_log_appended", "stripe", "subscription", "caea", "print", "print-order", "print-invoice", "print-product", "print-tag", "print_job_failed", "request_printers", "printers_changed", "agent_status_changed", "print_rules_changed", "printers_active", "agent_command", "maintenance", "currency_auto_updated", "drain_progress", "integration_event_appended", "userActivityRecorded", "mercadolibre_settlement_period", "customDomain", "purchaseOrders", "cycleCounts", "stockTransfers"];
29
+ export declare const SOCKET_ACTIONS: readonly ["account", "appointments", "appointmentWaitlist", "attendance", "automation-rules", "baskets", "cart", "brands", "cash", "categories", "campaigns", "customers", "customerNote", "customerAddress", "customerContact", "deliveries", "globals", "inventory", "invoices", "literals", "loyalty", "orders", "presupuestos", "products", "promotions", "segments", "returns", "rma", "templates", "services", "service-templates", "shifts", "stores", "suppliers", "supplier-invoice", "support", "surveys", "users", "warehouses", "favorites", "webhooks", "account-delete", "baskets-delete", "cart-delete", "log-delete", "notifications", "support-message", "whatsapp-message", "payment_received", "payment_linked", "payment_unlinked", "mercadopago", "mercadopago_dynamic_qr_created", "mercadopago_static_qr_created", "mp_hook_log_appended", "mp_ipn_log_appended", "stripe", "subscription", "caea", "print", "print-order", "print-invoice", "print-product", "print-tag", "print_job_failed", "request_printers", "printers_changed", "agent_status_changed", "print_rules_changed", "printers_active", "agent_command", "maintenance", "currency_auto_updated", "drain_progress", "integration_event_appended", "userActivityRecorded", "mercadolibre_settlement_period", "customDomain", "purchaseOrders", "cycleCounts", "stockTransfers"];
30
30
  /** Union of every server→client data-frame action. */
31
31
  export type SocketAction = (typeof SOCKET_ACTIONS)[number];
32
32
  /**
package/dist/socket.js CHANGED
@@ -166,6 +166,15 @@ export const SOCKET_ACTIONS = [
166
166
  * `'operator-and-customer'` fan-out carries them.
167
167
  */
168
168
  'customerAddress',
169
+ /**
170
+ * A customer's contact (a person acting for the customer) was created,
171
+ * edited or deleted — or every contact of one customer was erased or moved
172
+ * by a merge (`change: 'purged'`). `data` is `CustomerContactChange`.
173
+ * OPERATOR audience only, with an ids-only `lowTierData`; the rows are
174
+ * written by raw transactions, so no automatic `'operator-and-customer'`
175
+ * fan-out carries them.
176
+ */
177
+ 'customerContact',
169
178
  /**
170
179
  * A delivery created, or an event appended to its timeline. Operator-only —
171
180
  * `wsPostStore(..., { audience: 'operator' })`, NEVER
@@ -918,6 +918,15 @@ declare global {
918
918
  before: string | number | boolean;
919
919
  after: string | number | boolean;
920
920
  }
921
+ interface IntegrationConnectionChangedEvent extends UserActivityEventBase {
922
+ event: 'Integration Connection Changed';
923
+ provider: 'mercadolibre';
924
+ action: 'connect' | 'reconnect' | 'switch' | 'disconnect';
925
+ from_ml_user_id?: string;
926
+ from_nickname?: string;
927
+ to_ml_user_id?: string;
928
+ to_nickname?: string;
929
+ }
921
930
  interface MlChannelStatusChangedEvent extends UserActivityEventBase {
922
931
  event: 'ML Channel Status Changed';
923
932
  provider: 'mercadolibre';
@@ -1074,7 +1083,7 @@ declare global {
1074
1083
  carrier?: string;
1075
1084
  tracking_set: boolean;
1076
1085
  }
1077
- type UserActivityEvent = CustomerConsentImportedEvent | CustomerConsentImportCompletedEvent | UserLoggedInEvent | UserLoggedOutEvent | UserPasswordChangedEvent | UserSuspendedEvent | TwoFactorEnrolledEvent | TwoFactorDisabledEvent | TwoFactorResetEvent | TwoFactorRecoveryCodesGeneratedEvent | StoreSettingsUpdatedEvent | PlanChangedEvent | InvoiceCreatedEvent | OrderCreatedEvent | OrderCancelledEvent | OrderEditedEvent | OrderReturnedEvent | ProductPriceChangedEvent | CustomerCreatedEvent | CustomerEditedEvent | CustomerRecordServedEvent | CustomersMergedEvent | 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;
1086
+ type UserActivityEvent = CustomerConsentImportedEvent | CustomerConsentImportCompletedEvent | UserLoggedInEvent | UserLoggedOutEvent | UserPasswordChangedEvent | UserSuspendedEvent | TwoFactorEnrolledEvent | TwoFactorDisabledEvent | TwoFactorResetEvent | TwoFactorRecoveryCodesGeneratedEvent | StoreSettingsUpdatedEvent | PlanChangedEvent | InvoiceCreatedEvent | OrderCreatedEvent | OrderCancelledEvent | OrderEditedEvent | OrderReturnedEvent | ProductPriceChangedEvent | CustomerCreatedEvent | CustomerEditedEvent | CustomerRecordServedEvent | CustomersMergedEvent | 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 | IntegrationConnectionChangedEvent | PrintRuleCreatedEvent | PrintRuleEditedEvent | PrintRuleDeletedEvent | WebhookCreatedEvent | WebhookUpdatedEvent | WebhookDeletedEvent | PrinterActiveToggledEvent | PrinterRawFormatsUpdatedEvent | PrinterProfileUpdatedEvent | PlanTemplateUpdatedEvent | SupplierAccountDeletedEvent | CustomerPasswordResetInitiatedEvent | UserSessionsRevokedEvent | UserAnonymizedEvent | UserPasswordResetInitiatedByOperatorEvent | AgentCommandDispatchedEvent | RmaRequestedEvent | RmaTransitionedEvent | RmaTrackingUpdatedEvent | ClockedInEvent | ClockedOutEvent | AttendanceCorrectedEvent;
1078
1087
  }
1079
1088
  /**
1080
1089
  * 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.365",
3
+ "version": "1.10.367",
4
4
  "description": "Shared wire and entity contracts for the SINFACTURA platform.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",