sinfactura-types 1.10.13 → 1.10.15
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/account.d.ts +18 -0
- package/dist/order.d.ts +8 -0
- package/dist/userActivity.d.ts +7 -1
- package/package.json +1 -1
package/dist/account.d.ts
CHANGED
|
@@ -5,6 +5,24 @@ declare global {
|
|
|
5
5
|
orderId?: string;
|
|
6
6
|
createdAt: number;
|
|
7
7
|
dated: number;
|
|
8
|
+
/**
|
|
9
|
+
* NOT a plain customer id — a composite index key, in one of two shapes:
|
|
10
|
+
*
|
|
11
|
+
* - `` `${customerId}#${createdAt}` `` — movement rows (`CUST000107#1786112946988`)
|
|
12
|
+
* - `` `BALANCE-${customerId}` `` — carried-forward balance rows
|
|
13
|
+
*
|
|
14
|
+
* The listing query matches with `begins_with`, so passing a bare `CUST……`
|
|
15
|
+
* as a FILTER works and conveniently excludes the `BALANCE-` rows. What does
|
|
16
|
+
* not work is the obvious client-side equality test:
|
|
17
|
+
*
|
|
18
|
+
* ```ts
|
|
19
|
+
* rows.filter((row) => row.customerId === customerId) // never matches
|
|
20
|
+
* ```
|
|
21
|
+
*
|
|
22
|
+
* Compare on the prefix, or split on `#`. This has already cost real
|
|
23
|
+
* behaviour in a consumer: one code path stripped the suffix and another did
|
|
24
|
+
* not, and the one that did not returned an empty list rather than failing.
|
|
25
|
+
*/
|
|
8
26
|
customerId?: string;
|
|
9
27
|
fullName?: string;
|
|
10
28
|
subject?: string;
|
package/dist/order.d.ts
CHANGED
|
@@ -5,6 +5,14 @@ declare global {
|
|
|
5
5
|
customerId: string;
|
|
6
6
|
customer: Partial<Customer>;
|
|
7
7
|
createdAt: number;
|
|
8
|
+
/**
|
|
9
|
+
* `YYYYMMDD` in Buenos Aires time (e.g. `20260810`), stamped at creation
|
|
10
|
+
* and never rewritten — the sort key of the `PK-dated` index the per-day
|
|
11
|
+
* order queries run on. Required rather than optional: rows predating the
|
|
12
|
+
* field were backfilled, and that one-shot migration has since been
|
|
13
|
+
* removed as spent.
|
|
14
|
+
*/
|
|
15
|
+
dated: number;
|
|
8
16
|
updatedAt?: number;
|
|
9
17
|
readyAt?: number;
|
|
10
18
|
deliveredAt?: number;
|
package/dist/userActivity.d.ts
CHANGED
|
@@ -358,6 +358,7 @@ declare global {
|
|
|
358
358
|
interface ImpersonationUiStartedEvent extends UserActivityEventBase {
|
|
359
359
|
event: 'Impersonation UI Started';
|
|
360
360
|
target_store_id: string;
|
|
361
|
+
return_to?: string;
|
|
361
362
|
}
|
|
362
363
|
interface ImpersonationUiEndedEvent extends UserActivityEventBase {
|
|
363
364
|
event: 'Impersonation UI Ended';
|
|
@@ -468,7 +469,12 @@ declare global {
|
|
|
468
469
|
printer_id: string;
|
|
469
470
|
active: boolean;
|
|
470
471
|
}
|
|
471
|
-
|
|
472
|
+
interface CustomerPasswordResetInitiatedEvent extends UserActivityEventBase {
|
|
473
|
+
event: 'Customer Password Reset Initiated';
|
|
474
|
+
customer_id: string;
|
|
475
|
+
email_sent: boolean;
|
|
476
|
+
}
|
|
477
|
+
type UserActivityEvent = UserLoggedInEvent | UserLoggedOutEvent | UserPasswordChangedEvent | UserSuspendedEvent | TwoFactorEnrolledEvent | TwoFactorDisabledEvent | TwoFactorResetEvent | TwoFactorRecoveryCodesGeneratedEvent | StorePaletteChangedEvent | StoreSettingsUpdatedEvent | PlanChangedEvent | InvoiceCreatedEvent | OrderCreatedEvent | OrderCancelledEvent | OrderEditedEvent | OrderReturnedEvent | ProductPriceChangedEvent | CustomerCreatedEvent | CustomerEditedEvent | CashDrawerOpenedEvent | CashDrawerClosedEvent | TenantImpersonatedEvent | SecretRotatedEvent | UserCreatedEvent | UserUpdatedEvent | ProductCreatedEvent | ProductUpdatedEvent | StockIncomeCreatedEvent | CategoryCreatedEvent | CategoryUpdatedEvent | BrandCreatedEvent | BrandUpdatedEvent | SupplierCreatedEvent | SupplierUpdatedEvent | SupplierInvoiceCreatedEvent | SupplierAccountCreatedEvent | SupplierAccountUpdatedEvent | AccountCreatedEvent | AccountDeletedEvent | BasketUpdatedEvent | BasketDeletedEvent | CashDrawerMovementEvent | PaymentCreatedEvent | PaymentLinkedEvent | PaymentUnlinkedEvent | PaymentLinkageUpdatedEvent | 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 | PrinterActiveToggledEvent | CustomerPasswordResetInitiatedEvent;
|
|
472
478
|
}
|
|
473
479
|
/**
|
|
474
480
|
* Canonical whitelist of UI-only `UserActivityEvent` variant names. Imported by
|