@trii/types 2.10.788 → 2.10.790
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.
|
@@ -109,11 +109,21 @@ interface IChannel {
|
|
|
109
109
|
statusDetails: string | '';
|
|
110
110
|
statusUpdateAt?: Date | null;
|
|
111
111
|
messagingAvailability: MessagingAvailability;
|
|
112
|
+
lifecycleStatus?: ChannelLifecycleStatus;
|
|
113
|
+
lifecycleStatusUpdatedAt?: Date | null;
|
|
114
|
+
lifecycleStatusUpdatedBy?: string | null;
|
|
112
115
|
}
|
|
113
116
|
declare enum MessagingAvailability {
|
|
114
117
|
AVAILABLE = 0,
|
|
115
118
|
BLOCKED = 1
|
|
116
119
|
}
|
|
120
|
+
declare enum ChannelLifecycleStatus {
|
|
121
|
+
ACTIVE = 0,
|
|
122
|
+
/** Pausado por el usuario: conserva configuración y suscripciones, no envía ni recibe mensajes. */
|
|
123
|
+
PAUSED = 1,
|
|
124
|
+
/** Desconectado por el usuario (soft delete): se puede volver a conectar reutilizando el mismo canal. */
|
|
125
|
+
ARCHIVED = 2
|
|
126
|
+
}
|
|
117
127
|
declare enum channelStatus {
|
|
118
128
|
UNKNOWN = 0,
|
|
119
129
|
ACTIVE = 1,
|
|
@@ -123,6 +133,11 @@ declare enum channelStatus {
|
|
|
123
133
|
PROVISIONING = 5,
|
|
124
134
|
DEPROVISIONING = 6,
|
|
125
135
|
SUSPENDED = 7,
|
|
126
|
-
CONFIGURATION_PENDING = 9
|
|
136
|
+
CONFIGURATION_PENDING = 9,
|
|
137
|
+
/**
|
|
138
|
+
* La credencial del proveedor es inválida, expiró o perdió permisos (por ejemplo, token de Meta):
|
|
139
|
+
* el usuario debe volver a conectar la cuenta. El motivo va en statusDetails.
|
|
140
|
+
*/
|
|
141
|
+
REAUTH_REQUIRED = 10
|
|
127
142
|
}
|
|
128
|
-
export { IChannel, IChannelInfo, ChannelConversationRoutingConfig, channelStatus, MessagingAvailability };
|
|
143
|
+
export { IChannel, IChannelInfo, ChannelConversationRoutingConfig, channelStatus, MessagingAvailability, ChannelLifecycleStatus };
|
|
@@ -1,11 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MessagingAvailability = exports.channelStatus = void 0;
|
|
3
|
+
exports.ChannelLifecycleStatus = exports.MessagingAvailability = exports.channelStatus = void 0;
|
|
4
4
|
var MessagingAvailability;
|
|
5
5
|
(function (MessagingAvailability) {
|
|
6
6
|
MessagingAvailability[MessagingAvailability["AVAILABLE"] = 0] = "AVAILABLE";
|
|
7
7
|
MessagingAvailability[MessagingAvailability["BLOCKED"] = 1] = "BLOCKED";
|
|
8
8
|
})(MessagingAvailability || (exports.MessagingAvailability = MessagingAvailability = {}));
|
|
9
|
+
var ChannelLifecycleStatus;
|
|
10
|
+
(function (ChannelLifecycleStatus) {
|
|
11
|
+
ChannelLifecycleStatus[ChannelLifecycleStatus["ACTIVE"] = 0] = "ACTIVE";
|
|
12
|
+
/** Pausado por el usuario: conserva configuración y suscripciones, no envía ni recibe mensajes. */
|
|
13
|
+
ChannelLifecycleStatus[ChannelLifecycleStatus["PAUSED"] = 1] = "PAUSED";
|
|
14
|
+
/** Desconectado por el usuario (soft delete): se puede volver a conectar reutilizando el mismo canal. */
|
|
15
|
+
ChannelLifecycleStatus[ChannelLifecycleStatus["ARCHIVED"] = 2] = "ARCHIVED";
|
|
16
|
+
})(ChannelLifecycleStatus || (exports.ChannelLifecycleStatus = ChannelLifecycleStatus = {}));
|
|
9
17
|
var channelStatus;
|
|
10
18
|
(function (channelStatus) {
|
|
11
19
|
channelStatus[channelStatus["UNKNOWN"] = 0] = "UNKNOWN";
|
|
@@ -17,4 +25,9 @@ var channelStatus;
|
|
|
17
25
|
channelStatus[channelStatus["DEPROVISIONING"] = 6] = "DEPROVISIONING";
|
|
18
26
|
channelStatus[channelStatus["SUSPENDED"] = 7] = "SUSPENDED";
|
|
19
27
|
channelStatus[channelStatus["CONFIGURATION_PENDING"] = 9] = "CONFIGURATION_PENDING";
|
|
28
|
+
/**
|
|
29
|
+
* La credencial del proveedor es inválida, expiró o perdió permisos (por ejemplo, token de Meta):
|
|
30
|
+
* el usuario debe volver a conectar la cuenta. El motivo va en statusDetails.
|
|
31
|
+
*/
|
|
32
|
+
channelStatus[channelStatus["REAUTH_REQUIRED"] = 10] = "REAUTH_REQUIRED";
|
|
20
33
|
})(channelStatus || (exports.channelStatus = channelStatus = {}));
|
|
@@ -12,6 +12,11 @@ export declare class InstagramConfig {
|
|
|
12
12
|
fbUserName: string;
|
|
13
13
|
igAccountId: string;
|
|
14
14
|
igAccountName: string;
|
|
15
|
+
/**
|
|
16
|
+
* Página de Facebook vinculada a la cuenta de Instagram. Solo para connectionType FACEBOOK:
|
|
17
|
+
* la suscripción a webhooks se hace sobre esta página (/{fbPageId}/subscribed_apps).
|
|
18
|
+
*/
|
|
19
|
+
fbPageId?: string | null;
|
|
15
20
|
igSubscribedEvents: string[];
|
|
16
21
|
reassign?: boolean;
|
|
17
22
|
reassignTime?: number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type QueueType = 'Conversation' | 'Message' | 'MessageStatus' | 'MessageAckStatus' | 'Post' | 'PostComment' | 'PostReaction' | 'PostCommentReaction' | 'PostResponse' | 'Reaction' | 'ChannelML' | 'Template' | 'Email' | 'ProfilePic' | 'ChannelState' | 'WhatsAppQualityUpdate' | 'WhatsAppAccountUpdate' | 'WhatsAppCapabilityUpdate' | 'WhatsAppCapabilityUpdate' | 'WhatsAppPairCode';
|
|
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
3
|
export type EventQueue = {
|
|
4
4
|
/** Identificador estable generado una sola vez por el productor y conservado al
|
|
@@ -106,6 +106,10 @@ export interface IContactField {
|
|
|
106
106
|
nameKey: string;
|
|
107
107
|
description: string | '';
|
|
108
108
|
placeholder: string | '';
|
|
109
|
+
/**
|
|
110
|
+
* Indicates if the field should be highlighted.
|
|
111
|
+
*/
|
|
112
|
+
isHighlighted?: boolean;
|
|
109
113
|
type: ContactField_type;
|
|
110
114
|
typeNumberDecimalsCount: number | 0;
|
|
111
115
|
typeOptions: string[];
|