@trii/types 2.10.767 → 2.10.768
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.
|
@@ -1,6 +1,17 @@
|
|
|
1
1
|
export type QueueType = 'Conversation' | 'Message' | 'MessageStatus' | 'MessageAckStatus' | 'Post' | 'PostComment' | 'PostReaction' | 'PostCommentReaction' | 'PostResponse' | 'Reaction' | 'ChannelML' | 'Template' | 'Email' | 'ProfilePic' | 'ChannelState' | 'WhatsAppQualityUpdate' | 'WhatsAppAccountUpdate' | 'WhatsAppCapabilityUpdate' | 'WhatsAppCapabilityUpdate' | 'WhatsAppPairCode';
|
|
2
2
|
export type QueueAction = 'add' | 'remove' | 'edited' | 'react' | 'unreact' | 'Reject' | 'Bounce' | 'Complaint';
|
|
3
3
|
export type EventQueue = {
|
|
4
|
+
/** Identificador estable generado una sola vez por el productor y conservado al
|
|
5
|
+
* persistir, publicar y reintentar el mismo hecho; permite deduplicar.
|
|
6
|
+
* Obligatorio para nuevos eventos durables; ausente/null en mensajes legacy.
|
|
7
|
+
* No generar automáticamente al deserializar o en cada intento de envío.
|
|
8
|
+
*/
|
|
9
|
+
eventId?: string | null;
|
|
10
|
+
/** Fecha UTC del hecho, no de publicación ni procesamiento. Se conserva en reintentos.
|
|
11
|
+
* Obligatoria para nuevos eventos durables; ausente/null si el productor legacy no la informó.
|
|
12
|
+
* JSON transmite ISO 8601; el consumidor aplica la conversión habitual a Date.
|
|
13
|
+
*/
|
|
14
|
+
occurredAt?: Date | null;
|
|
4
15
|
type: QueueType;
|
|
5
16
|
action: QueueAction;
|
|
6
17
|
channelRef: string;
|