@trii/types 2.10.778 → 2.10.780

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,5 +1,5 @@
1
1
  import { ISchedule } from "../Schedules/Schedules";
2
- export declare class WebChatConfig {
2
+ export interface WebChatConfig {
3
3
  token?: string | '';
4
4
  reassign?: boolean;
5
5
  reassignTime?: number;
@@ -35,6 +35,11 @@ export declare class WebChatConfig {
35
35
  homeChannelsWhatsApp: WebChatChannel[];
36
36
  homeChannelsMessenger: WebChatChannel[];
37
37
  homeChannelsPhone: WebChatChannel[];
38
+ homeChannelsEmail: WebChatChannel[];
39
+ homeChannelsInstagram: WebChatChannel[];
40
+ homeChannelsTelegram: WebChatChannel[];
41
+ homeChannelsSms: WebChatChannel[];
42
+ homeChannelsX: WebChatChannel[];
38
43
  preChatUserInfoEnabled: boolean;
39
44
  preChatUserInfoEmailTitle: string | '';
40
45
  preChatUserInfoNameTitle: string | '';
@@ -53,7 +58,7 @@ export declare enum WebChatWidgetShape {
53
58
  ONLY_ICON = 0,
54
59
  ICON_AND_TEXT = 1
55
60
  }
56
- export declare class WebChatChannel {
61
+ export interface WebChatChannel {
57
62
  id?: string;
58
63
  order: number | 0;
59
64
  imageUrl?: string | '';
@@ -1,9 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.WebChatChannel = exports.WebChatWidgetShape = exports.WebChatWidgetPosition = exports.WebChatConfig = void 0;
4
- class WebChatConfig {
5
- }
6
- exports.WebChatConfig = WebChatConfig;
3
+ exports.WebChatWidgetShape = exports.WebChatWidgetPosition = void 0;
7
4
  var WebChatWidgetPosition;
8
5
  (function (WebChatWidgetPosition) {
9
6
  WebChatWidgetPosition[WebChatWidgetPosition["RIGHT"] = 0] = "RIGHT";
@@ -14,6 +11,3 @@ var WebChatWidgetShape;
14
11
  WebChatWidgetShape[WebChatWidgetShape["ONLY_ICON"] = 0] = "ONLY_ICON";
15
12
  WebChatWidgetShape[WebChatWidgetShape["ICON_AND_TEXT"] = 1] = "ICON_AND_TEXT";
16
13
  })(WebChatWidgetShape || (exports.WebChatWidgetShape = WebChatWidgetShape = {}));
17
- class WebChatChannel {
18
- }
19
- exports.WebChatChannel = WebChatChannel;
@@ -161,6 +161,18 @@ export interface IConversationMetadata {
161
161
  utmCampaign?: string;
162
162
  sessionId?: string;
163
163
  screenResolution?: string;
164
+ /** Aceptación de la política de privacidad en el pre-chat del webchat (solo si el canal la pide). */
165
+ privacyConsent?: IConversationPrivacyConsent;
166
+ }
167
+ /** Constancia de que el cliente aceptó la política de privacidad. Espejo C#: ConversationPrivacyConsent. */
168
+ export interface IConversationPrivacyConsent {
169
+ accepted: boolean;
170
+ /**ISO8601 timestamp */
171
+ acceptedAt?: Date;
172
+ /** Texto que vio el cliente al aceptar. */
173
+ description?: string;
174
+ /** Link a la política, si el canal lo configuró. */
175
+ link?: string;
164
176
  }
165
177
  /** @deprecated Estado legacy. Usar ConversationAutomationStatus para ejecuciones nuevas. */
166
178
  export declare enum ConversationBotStatus {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trii/types",
3
- "version": "2.10.778",
3
+ "version": "2.10.780",
4
4
  "description": "Types definitions for Trii projects - ",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",