sinfactura-types 1.10.201 → 1.10.202
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/userActivity.d.ts +28 -1
- package/package.json +1 -1
package/dist/userActivity.d.ts
CHANGED
|
@@ -70,6 +70,33 @@ declare global {
|
|
|
70
70
|
customer_id: string;
|
|
71
71
|
consent_changes: CustomerConsentGrantChange[];
|
|
72
72
|
}
|
|
73
|
+
/**
|
|
74
|
+
* ONE row per staff CSV import round that changed consent on at least one
|
|
75
|
+
* customer — the rolled-up form of {@link CustomerConsentImportedEvent}, which
|
|
76
|
+
* a max-size import would otherwise emit ~10k times into a handler already
|
|
77
|
+
* near its timeout.
|
|
78
|
+
*
|
|
79
|
+
* The per-row evidence lives on the customer rows themselves: the import
|
|
80
|
+
* bakes `marketing.consent.<channel> = { ts, source: 'import' }` into the same
|
|
81
|
+
* PutRequest that persists the row, so it cannot diverge from row persistence.
|
|
82
|
+
* This event carries the pointer to those rows, not a copy of them: an
|
|
83
|
+
* import mints one CONTIGUOUS block of customer ids, so
|
|
84
|
+
* `first_customer_id..last_customer_id` bounds a `SK BETWEEN` query on
|
|
85
|
+
* `CUSTOMER#{storeId}`, filtered on `marketing.consent.<channel>.source ===
|
|
86
|
+
* 'import'`.
|
|
87
|
+
*
|
|
88
|
+
* `status` is `'partial'` on ANY round failure or unprocessed item across the
|
|
89
|
+
* whole import — conservative on purpose, so a partial import is
|
|
90
|
+
* distinguishable from a complete one from this row alone.
|
|
91
|
+
*/
|
|
92
|
+
interface CustomerConsentImportCompletedEvent extends UserActivityEventBase {
|
|
93
|
+
event: 'Customer Consent Import Completed';
|
|
94
|
+
status: 'complete' | 'partial';
|
|
95
|
+
/** Rows where a channel changed AND the row was confirmed persisted. */
|
|
96
|
+
rows_touched: number;
|
|
97
|
+
first_customer_id: string;
|
|
98
|
+
last_customer_id: string;
|
|
99
|
+
}
|
|
73
100
|
/** Rows written for a customer's own action. Kept separate from {@link UserActivityEvent}. */
|
|
74
101
|
type CustomerActivityEvent = CustomerConsentUpdatedEvent;
|
|
75
102
|
interface UserLoggedInEvent extends UserActivityEventBase {
|
|
@@ -854,7 +881,7 @@ declare global {
|
|
|
854
881
|
command_id: string;
|
|
855
882
|
destructive: boolean;
|
|
856
883
|
}
|
|
857
|
-
type UserActivityEvent = CustomerConsentImportedEvent | 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 | 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 | UserPasswordResetInitiatedByOperatorEvent | AgentCommandDispatchedEvent | ClockedInEvent | ClockedOutEvent;
|
|
884
|
+
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 | 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 | UserPasswordResetInitiatedByOperatorEvent | AgentCommandDispatchedEvent | ClockedInEvent | ClockedOutEvent;
|
|
858
885
|
}
|
|
859
886
|
/**
|
|
860
887
|
* Canonical whitelist of UI-only `UserActivityEvent` variant names. Imported by
|