@trii/types 2.10.791 → 2.10.793

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,7 +1,5 @@
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' | 'SubscribeChannel' | 'UnsubscribeChannel' | 'ChannelHealth';
2
2
  export type QueueAction = 'add' | 'remove' | 'edited' | 'react' | 'unreact' | 'Reject' | 'Bounce' | 'Complaint';
3
- /** Impacto de una actualización sobre la pertenencia a la bandeja. */
4
- export type InboxImpact = 'content' | 'membership';
5
3
  export type EventQueue = {
6
4
  /** Identificador estable generado una sola vez por el productor y conservado al
7
5
  * persistir, publicar y reintentar el mismo hecho; permite deduplicar.
@@ -16,16 +14,15 @@ export type EventQueue = {
16
14
  occurredAt?: Date | null;
17
15
  type: QueueType;
18
16
  action: QueueAction;
19
- /**
20
- * content: no cambia la pertenencia; permite actualizar una conversación cargada
21
- * si el evento contiene los datos necesarios.
22
- * membership: puede cambiar la pertenencia y requiere reconciliación con /resolve.
23
- * Ausente/null o desconocido: conservar la reconciliación existente.
24
- * Lo informa el productor según la operación; no garantiza que el cliente esté al día.
25
- */
26
- inboxImpact?: InboxImpact | null;
27
17
  channelRef: string;
28
18
  data: any;
19
+ /**
20
+ * Argumentos posicionales del evento Socket.IO, en orden. Si se informa,
21
+ * reemplaza a data al emitir; ausente/null conserva data como único argumento.
22
+ * Un array vacío indica cero argumentos. Para enviar un array como único
23
+ * argumento, incluirlo como un elemento de args. Se permiten elementos null.
24
+ */
25
+ args?: unknown[] | null;
29
26
  param1: any;
30
27
  spaceId: string;
31
28
  userId: string;
@@ -27,6 +27,11 @@ export interface UserProfile_Agent {
27
27
  inactivityTime: Number;
28
28
  }
29
29
  export interface UserProfile_Contacts {
30
+ /**
31
+ * Indicates if the user has access to the contacts functionality from the header. If set to true, the user can search and access contacts directly from the header section of the application.
32
+ */
33
+ searchContactsFromHeader: boolean;
34
+ searchBusinessFromHeader: boolean;
30
35
  enabled: boolean;
31
36
  import: boolean;
32
37
  export: boolean;
@@ -35,6 +40,8 @@ export interface UserProfile_Contacts {
35
40
  editConfig: boolean;
36
41
  }
37
42
  export interface UserProfile_Conversations {
43
+ searchConversationsFromHeader: boolean;
44
+ searchMessagesFromHeader: boolean;
38
45
  enabled: boolean;
39
46
  dashboard: boolean;
40
47
  otherInboxes: boolean;
@@ -49,11 +56,14 @@ export interface UserProfile_Conversations {
49
56
  editConfig: boolean;
50
57
  }
51
58
  export interface UserProfile_Tickets {
59
+ /**
60
+ * Indicates if the user has access to the tickets functionality
61
+ */
52
62
  enabled: boolean;
53
- ticket_create: boolean;
54
- ticket_edit: boolean;
55
- ticket_delete: boolean;
56
- ticket_update: boolean;
63
+ /**
64
+ * Indicates if the user has administrative privileges for ticket management. Access to configuration and management of ticket settings is granted to users with this role.
65
+ */
66
+ isAdmin: boolean;
57
67
  }
58
68
  export interface UserProfile_Marketing {
59
69
  enabled: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trii/types",
3
- "version": "2.10.791",
3
+ "version": "2.10.793",
4
4
  "description": "Types definitions for Trii projects - ",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",