sinfactura-types 1.7.5 → 1.7.7

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/audit.d.ts CHANGED
@@ -101,6 +101,12 @@ declare global {
101
101
  publicationDate?: string;
102
102
  /** ISO date — freshness of the imported registry snapshot (the file's "Generado" stamp). */
103
103
  registrySnapshotAt: string;
104
+ /** True when `registrySnapshotAt` is older than the staleness threshold — api#1903.
105
+ * `flagged` is still computed from the local snapshot either way; this never suppresses
106
+ * an answer, only marks it as based on a potentially outdated registry. */
107
+ stale: boolean;
108
+ /** Days between `registrySnapshotAt` and `checkedAt` — api#1903. */
109
+ registryAgeDays: number;
104
110
  /** ISO timestamp of this check. */
105
111
  checkedAt: string;
106
112
  }
@@ -26,6 +26,7 @@
26
26
  // - (+1 variant) — IntegrationTokenRefreshedEvent (types#91, api#1540)
27
27
  // - 1.6.39 (+1 variant) — WaitlistConvertedEvent (types#92, api#1567)
28
28
  // - 1.6.43 (+1 variant) — PlatformConfigUpdatedEvent (api#1108)
29
+ // - (+1 variant) — MlChannelStatusChangedEvent (api#1894); shared by api#1893's unlink
29
30
  Object.defineProperty(exports, "__esModule", { value: true });
30
31
  exports.UI_ONLY_USER_ACTIVITY_VARIANTS = void 0;
31
32
  /**
@@ -408,7 +408,15 @@ declare global {
408
408
  before: string | number | boolean;
409
409
  after: string | number | boolean;
410
410
  }
411
- type UserActivityEvent = UserLoggedInEvent | UserLoggedOutEvent | UserPasswordChangedEvent | UserSuspendedEvent | TwoFactorEnrolledEvent | TwoFactorDisabledEvent | TwoFactorResetEvent | TwoFactorRecoveryCodesGeneratedEvent | StorePaletteChangedEvent | StoreSettingsUpdatedEvent | PlanChangedEvent | InvoiceCreatedEvent | OrderCreatedEvent | OrderCancelledEvent | 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;
411
+ interface MlChannelStatusChangedEvent extends UserActivityEventBase {
412
+ event: 'ML Channel Status Changed';
413
+ provider: 'mercadolibre';
414
+ product_id: string;
415
+ ml_item_id: string;
416
+ from_status: ProductChannelStatus;
417
+ to_status: ProductChannelStatus;
418
+ }
419
+ type UserActivityEvent = UserLoggedInEvent | UserLoggedOutEvent | UserPasswordChangedEvent | UserSuspendedEvent | TwoFactorEnrolledEvent | TwoFactorDisabledEvent | TwoFactorResetEvent | TwoFactorRecoveryCodesGeneratedEvent | StorePaletteChangedEvent | StoreSettingsUpdatedEvent | PlanChangedEvent | InvoiceCreatedEvent | OrderCreatedEvent | OrderCancelledEvent | 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;
412
420
  }
413
421
  /**
414
422
  * Canonical whitelist of UI-only `UserActivityEvent` variant names — the 8
@@ -25,6 +25,7 @@
25
25
  // - (+1 variant) — IntegrationTokenRefreshedEvent (types#91, api#1540)
26
26
  // - 1.6.39 (+1 variant) — WaitlistConvertedEvent (types#92, api#1567)
27
27
  // - 1.6.43 (+1 variant) — PlatformConfigUpdatedEvent (api#1108)
28
+ // - (+1 variant) — MlChannelStatusChangedEvent (api#1894); shared by api#1893's unlink
28
29
  /**
29
30
  * Canonical whitelist of UI-only `UserActivityEvent` variant names — the 8
30
31
  * Phase 3 verbs shipped in 1.6.13 (types#74). Imported by the api side
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sinfactura-types",
3
- "version": "1.7.5",
3
+ "version": "1.7.7",
4
4
  "main": "dist/index.js",
5
5
  "type": "module",
6
6
  "types": "./dist/index.d.ts",