sinfactura-types 1.10.447 → 1.10.449

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.
@@ -127,9 +127,10 @@ var NotificationTypeEnum;
127
127
  * operator wants to know a booking moved, so these two belong. A reminder
128
128
  * is an outbound message to a CUSTOMER over email/WhatsApp/SMS, and putting
129
129
  * it here would make its opt-out a staff preference, which is the wrong
130
- * person's consent. A customer has no notification preference row at all
131
- * today, which is why the reminder path is blocked on the notification
132
- * spine rather than merely unbuilt.
130
+ * person's consent. The customer's reminder is an email on its own path
131
+ * instead — an hourly sweep sends one about 24 hours ahead, suppressible
132
+ * (a bounce or complaint row stops it), and records it on
133
+ * `Appointment.remindersSent`, never as a bell.
133
134
  */
134
135
  NotificationTypeEnum["APPOINTMENT_CONFIRMED"] = "APPOINTMENT_CONFIRMED";
135
136
  NotificationTypeEnum["APPOINTMENT_CANCELLED"] = "APPOINTMENT_CANCELLED";
@@ -102,9 +102,10 @@ export declare enum NotificationTypeEnum {
102
102
  * operator wants to know a booking moved, so these two belong. A reminder
103
103
  * is an outbound message to a CUSTOMER over email/WhatsApp/SMS, and putting
104
104
  * it here would make its opt-out a staff preference, which is the wrong
105
- * person's consent. A customer has no notification preference row at all
106
- * today, which is why the reminder path is blocked on the notification
107
- * spine rather than merely unbuilt.
105
+ * person's consent. The customer's reminder is an email on its own path
106
+ * instead — an hourly sweep sends one about 24 hours ahead, suppressible
107
+ * (a bounce or complaint row stops it), and records it on
108
+ * `Appointment.remindersSent`, never as a bell.
108
109
  */
109
110
  APPOINTMENT_CONFIRMED = "APPOINTMENT_CONFIRMED",
110
111
  APPOINTMENT_CANCELLED = "APPOINTMENT_CANCELLED",
@@ -124,9 +124,10 @@ export var NotificationTypeEnum;
124
124
  * operator wants to know a booking moved, so these two belong. A reminder
125
125
  * is an outbound message to a CUSTOMER over email/WhatsApp/SMS, and putting
126
126
  * it here would make its opt-out a staff preference, which is the wrong
127
- * person's consent. A customer has no notification preference row at all
128
- * today, which is why the reminder path is blocked on the notification
129
- * spine rather than merely unbuilt.
127
+ * person's consent. The customer's reminder is an email on its own path
128
+ * instead — an hourly sweep sends one about 24 hours ahead, suppressible
129
+ * (a bounce or complaint row stops it), and records it on
130
+ * `Appointment.remindersSent`, never as a bell.
130
131
  */
131
132
  NotificationTypeEnum["APPOINTMENT_CONFIRMED"] = "APPOINTMENT_CONFIRMED";
132
133
  NotificationTypeEnum["APPOINTMENT_CANCELLED"] = "APPOINTMENT_CANCELLED";
package/dist/print.d.ts CHANGED
@@ -18,7 +18,7 @@
18
18
  export declare const LABEL_TEMPLATE_IDS: readonly ["producto", "precio", "estante", "envio", "inventario"];
19
19
  export type LabelTemplateId = (typeof LABEL_TEMPLATE_IDS)[number];
20
20
  declare global {
21
- type PrintJobState = 'queued' | 'sent' | 'printed' | 'error';
21
+ type PrintJobState = 'queued' | 'sent' | 'printed' | 'error' | 'cancelled';
22
22
  type PrintContentType = 'pdf_uri' | 'pdf_base64' | 'raw_uri' | 'raw_base64';
23
23
  /**
24
24
  * A raw (non-PDF) control language a printer can be sent.
@@ -1166,6 +1166,12 @@ declare global {
1166
1166
  command_id: string;
1167
1167
  destructive: boolean;
1168
1168
  }
1169
+ interface PrintJobCancelledEvent extends UserActivityEventBase {
1170
+ event: 'Print Job Cancelled';
1171
+ job_id: string;
1172
+ previous_state?: 'queued' | 'sent';
1173
+ agent_id?: string;
1174
+ }
1169
1175
  interface RmaRequestedEvent extends UserActivityEventBase {
1170
1176
  event: 'RMA Requested';
1171
1177
  rma_id: string;
@@ -1190,7 +1196,7 @@ declare global {
1190
1196
  carrier?: string;
1191
1197
  tracking_set: boolean;
1192
1198
  }
1193
- type UserActivityEvent = CustomerConsentImportedEvent | CustomerConsentImportCompletedEvent | UserLoggedInEvent | UserLoggedOutEvent | UserPasswordChangedEvent | UserSuspendedEvent | TwoFactorEnrolledEvent | TwoFactorDisabledEvent | TwoFactorResetEvent | TwoFactorRecoveryCodesGeneratedEvent | StoreSettingsUpdatedEvent | PlanChangedEvent | InvoiceCreatedEvent | OrderCreatedEvent | OrderCancelledEvent | OrderEditedEvent | OrderReturnedEvent | ReturnLineRegradedEvent | ProductPriceChangedEvent | CustomerCreatedEvent | CustomerEditedEvent | CustomerRecordServedEvent | CustomerCreditCheckPerformedEvent | CustomersMergedEvent | CashDrawerOpenedEvent | CashDrawerClosedEvent | TenantImpersonatedEvent | SecretRotatedEvent | UserCreatedEvent | UserUpdatedEvent | ProductCreatedEvent | ProductUpdatedEvent | StockIncomeCreatedEvent | StockAdjustedEvent | CategoryCreatedEvent | CategoryUpdatedEvent | BrandCreatedEvent | BrandUpdatedEvent | SupplierCreatedEvent | SupplierUpdatedEvent | SupplierInvoiceCreatedEvent | SupplierInvoiceMatchOverriddenEvent | SupplierClaimRaisedEvent | SupplierClaimStatusChangedEvent | SupplierAccountCreatedEvent | SupplierAccountUpdatedEvent | AccountCreatedEvent | AccountDeletedEvent | BasketUpdatedEvent | BasketDiscountGrantedEvent | BasketDeletedEvent | CashDrawerMovementEvent | PaymentCreatedEvent | PaymentLinkedEvent | PaymentUnlinkedEvent | PaymentLinkageUpdatedEvent | CreditLimitOverriddenEvent | AppointmentSelfBookingBlockOverriddenEvent | AppointmentSelfBookingBlockLiftedEvent | 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;
1199
+ type UserActivityEvent = CustomerConsentImportedEvent | CustomerConsentImportCompletedEvent | UserLoggedInEvent | UserLoggedOutEvent | UserPasswordChangedEvent | UserSuspendedEvent | TwoFactorEnrolledEvent | TwoFactorDisabledEvent | TwoFactorResetEvent | TwoFactorRecoveryCodesGeneratedEvent | StoreSettingsUpdatedEvent | PlanChangedEvent | InvoiceCreatedEvent | OrderCreatedEvent | OrderCancelledEvent | OrderEditedEvent | OrderReturnedEvent | ReturnLineRegradedEvent | ProductPriceChangedEvent | CustomerCreatedEvent | CustomerEditedEvent | CustomerRecordServedEvent | CustomerCreditCheckPerformedEvent | CustomersMergedEvent | CashDrawerOpenedEvent | CashDrawerClosedEvent | TenantImpersonatedEvent | SecretRotatedEvent | UserCreatedEvent | UserUpdatedEvent | ProductCreatedEvent | ProductUpdatedEvent | StockIncomeCreatedEvent | StockAdjustedEvent | CategoryCreatedEvent | CategoryUpdatedEvent | BrandCreatedEvent | BrandUpdatedEvent | SupplierCreatedEvent | SupplierUpdatedEvent | SupplierInvoiceCreatedEvent | SupplierInvoiceMatchOverriddenEvent | SupplierClaimRaisedEvent | SupplierClaimStatusChangedEvent | SupplierAccountCreatedEvent | SupplierAccountUpdatedEvent | AccountCreatedEvent | AccountDeletedEvent | BasketUpdatedEvent | BasketDiscountGrantedEvent | BasketDeletedEvent | CashDrawerMovementEvent | PaymentCreatedEvent | PaymentLinkedEvent | PaymentUnlinkedEvent | PaymentLinkageUpdatedEvent | CreditLimitOverriddenEvent | AppointmentSelfBookingBlockOverriddenEvent | AppointmentSelfBookingBlockLiftedEvent | 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 | PrintJobCancelledEvent | RmaRequestedEvent | RmaTransitionedEvent | RmaTrackingUpdatedEvent | ClockedInEvent | ClockedOutEvent | AttendanceCorrectedEvent;
1194
1200
  }
1195
1201
  /**
1196
1202
  * 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.447",
3
+ "version": "1.10.449",
4
4
  "description": "Shared wire and entity contracts for the SINFACTURA platform.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",