@trii/types 2.10.418 → 2.10.420
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.
- package/dist/Accounts/accounts.js +7 -4
- package/dist/Accounts/device.js +5 -2
- package/dist/Accounts/index.js +18 -2
- package/dist/ApiResponses/index.js +2 -1
- package/dist/AuditLogs/auditLog.js +2 -1
- package/dist/AuditLogs/auditLogType.js +5 -2
- package/dist/AuditLogs/index.js +18 -2
- package/dist/Calendar/Event.js +7 -4
- package/dist/Calendar/index.js +17 -1
- package/dist/Calls/Call.js +9 -6
- package/dist/Calls/index.js +17 -1
- package/dist/Common/API/AuthApiKey.js +2 -1
- package/dist/Common/API/AuthBasic.js +2 -1
- package/dist/Common/API/AuthBearer.js +2 -1
- package/dist/Common/API/AuthType.js +5 -2
- package/dist/Common/API/Method.js +5 -2
- package/dist/Common/API/index.js +21 -5
- package/dist/Common/Channels/Channel.js +4 -2
- package/dist/Common/Channels/ChannelType.js +5 -2
- package/dist/Common/Channels/Email.js +17 -11
- package/dist/Common/Channels/Facebook.js +5 -1
- package/dist/Common/Channels/Form.js +15 -8
- package/dist/Common/Channels/GoogleBusiness.js +7 -2
- package/dist/Common/Channels/Instagram.js +5 -1
- package/dist/Common/Channels/MercadoLibre.js +7 -2
- package/dist/Common/Channels/Pbx.js +5 -1
- package/dist/Common/Channels/Permission.js +5 -1
- package/dist/Common/Channels/RCS.js +7 -2
- package/dist/Common/Channels/Sip.js +5 -1
- package/dist/Common/Channels/Sms.js +7 -3
- package/dist/Common/Channels/WebChat.js +11 -6
- package/dist/Common/Channels/WhatsApp.js +7 -3
- package/dist/Common/Channels/index.js +31 -15
- package/dist/Common/EventsQueue/Data/postComment.js +2 -1
- package/dist/Common/EventsQueue/EmailTemplate.js +2 -1
- package/dist/Common/EventsQueue/EventQueue.js +2 -1
- package/dist/Common/EventsQueue/UserUpdate.js +2 -1
- package/dist/Common/EventsQueue/index.js +19 -3
- package/dist/Common/Logs/Log.js +7 -4
- package/dist/Common/Logs/index.js +17 -1
- package/dist/Common/Messages/MediaFile.js +2 -1
- package/dist/Common/Messages/Message.d.ts +61 -61
- package/dist/Common/Messages/Message.js +17 -14
- package/dist/Common/Messages/Template.js +9 -6
- package/dist/Common/Messages/index.js +19 -3
- package/dist/Common/Notifications/Notification.js +5 -2
- package/dist/Common/Notifications/UserNotificationsConfig.js +11 -4
- package/dist/Common/Notifications/index.js +18 -2
- package/dist/Common/Schedules/Schedules.js +2 -1
- package/dist/Common/Schedules/index.js +17 -1
- package/dist/Common/index.js +42 -12
- package/dist/Contacts/File.js +2 -1
- package/dist/Contacts/Label.js +2 -1
- package/dist/Contacts/Note.js +2 -1
- package/dist/Contacts/contacts.js +15 -10
- package/dist/Contacts/index.js +21 -5
- package/dist/Contacts/segments.js +16 -13
- package/dist/Conversations/Conversation.js +17 -12
- package/dist/Conversations/DashBoard/dashboard.js +31 -17
- package/dist/Conversations/DashBoard/dashboardChannels.js +5 -1
- package/dist/Conversations/DashBoard/dashboardForms.js +17 -7
- package/dist/Conversations/DashBoard/dashboardMessages.js +7 -2
- package/dist/Conversations/Ending.js +2 -1
- package/dist/Conversations/Flows/Flow.js +11 -2
- package/dist/Conversations/Flows/Nodes/NodeApi.js +5 -1
- package/dist/Conversations/Flows/Nodes/NodeConditional.js +7 -3
- package/dist/Conversations/Flows/Nodes/NodeContactSearch.js +5 -1
- package/dist/Conversations/Flows/Nodes/NodeContactUpdate.js +7 -3
- package/dist/Conversations/Flows/Nodes/NodeConversationAssignTo.js +5 -1
- package/dist/Conversations/Flows/Nodes/NodeConversationFinalize.js +5 -1
- package/dist/Conversations/Flows/Nodes/NodeConversationUpdate.js +9 -5
- package/dist/Conversations/Flows/Nodes/NodeFillForm.js +7 -2
- package/dist/Conversations/Flows/Nodes/NodeFillTicket.js +7 -3
- package/dist/Conversations/Flows/Nodes/NodeMsgText.js +19 -11
- package/dist/Conversations/Flows/Nodes/NodeMsgWaitResponse.js +13 -8
- package/dist/Conversations/Flows/Nodes/NodeRedirect.js +5 -1
- package/dist/Conversations/Flows/Nodes/NodeSendEmail.js +5 -1
- package/dist/Conversations/Flows/Nodes/NodeSqlQuery.js +7 -3
- package/dist/Conversations/Flows/Nodes/NodeStart.js +10 -5
- package/dist/Conversations/Flows/Nodes/NodeTimeScheduleControl.js +5 -1
- package/dist/Conversations/Flows/Nodes/NodeTimeTimer.js +5 -1
- package/dist/Conversations/Flows/Nodes/NodeTimeWaitUntil.js +5 -1
- package/dist/Conversations/Flows/Nodes/index.js +34 -18
- package/dist/Conversations/Flows/index.js +41 -3
- package/dist/Conversations/Groups/Group.js +4 -2
- package/dist/Conversations/Label.js +2 -1
- package/dist/Conversations/QuickResponse.js +2 -1
- package/dist/Conversations/SocialWalls.js +2 -1
- package/dist/Conversations/Survey.js +5 -2
- package/dist/Conversations/WebHook.js +2 -1
- package/dist/Conversations/index.js +52 -15
- package/dist/Marketing/Campaign.js +9 -6
- package/dist/Marketing/Dashboard.js +2 -1
- package/dist/Marketing/index.js +18 -2
- package/dist/PublicAPI/apiKey.js +2 -1
- package/dist/Security/Security.js +2 -1
- package/dist/Security/index.js +17 -1
- package/dist/Spaces/Dashboard.js +2 -1
- package/dist/Spaces/index.js +18 -2
- package/dist/Spaces/spaces.js +20 -16
- package/dist/Tickets/AccessLevel.js +5 -2
- package/dist/Tickets/index.js +17 -1
- package/dist/Users/UserActivitySummary.js +2 -1
- package/dist/Users/UserProfile.js +19 -1
- package/dist/Users/UserTrii.js +13 -6
- package/dist/Users/UserType.js +3 -1
- package/dist/Users/index.js +20 -4
- package/dist/index.js +50 -28
- package/package.json +1 -1
package/dist/Common/Logs/Log.js
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LogType = exports.LogLevel = void 0;
|
|
4
|
+
var LogLevel;
|
|
2
5
|
(function (LogLevel) {
|
|
3
6
|
LogLevel[LogLevel["INFO"] = 0] = "INFO";
|
|
4
7
|
LogLevel[LogLevel["WARNING"] = 1] = "WARNING";
|
|
5
8
|
LogLevel[LogLevel["ERROR"] = 2] = "ERROR";
|
|
6
|
-
})(LogLevel || (LogLevel = {}));
|
|
7
|
-
|
|
9
|
+
})(LogLevel || (exports.LogLevel = LogLevel = {}));
|
|
10
|
+
var LogType;
|
|
8
11
|
(function (LogType) {
|
|
9
12
|
LogType[LogType["CHANNEL"] = 0] = "CHANNEL";
|
|
10
|
-
})(LogType || (LogType = {}));
|
|
13
|
+
})(LogType || (exports.LogType = LogType = {}));
|
|
@@ -1 +1,17 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./Log"), exports);
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,67 +1,6 @@
|
|
|
1
1
|
import { IContactAddress } from "../../Contacts/contacts";
|
|
2
2
|
import { UserInfo } from "../../Users/UserTrii";
|
|
3
3
|
import { IChannelInfo } from "../Channels/Channel";
|
|
4
|
-
export interface IMessage {
|
|
5
|
-
id: string;
|
|
6
|
-
externalId?: string;
|
|
7
|
-
shardKey?: string;
|
|
8
|
-
/**only for Front-End */
|
|
9
|
-
idLocal?: number;
|
|
10
|
-
spaceId: string;
|
|
11
|
-
conversationId: string;
|
|
12
|
-
/**only for Front-End */
|
|
13
|
-
contactId?: string;
|
|
14
|
-
read?: boolean;
|
|
15
|
-
/**ISO8601 timestamp */
|
|
16
|
-
timestamp: Date;
|
|
17
|
-
userId: string;
|
|
18
|
-
channelInfo?: IChannelInfo;
|
|
19
|
-
/**
|
|
20
|
-
* ejemplos
|
|
21
|
-
* wa:5493584023801,
|
|
22
|
-
* email:info@trii.app,
|
|
23
|
-
* Fb:11111111111111111,
|
|
24
|
-
* Ig:22222222222222222,
|
|
25
|
-
* sms:3584023801
|
|
26
|
-
* */
|
|
27
|
-
from: string;
|
|
28
|
-
to: string;
|
|
29
|
-
remoteContactData?: MessageContactData;
|
|
30
|
-
direction: MessageDirection;
|
|
31
|
-
ack: MessageAck;
|
|
32
|
-
ackLogs: ackLog[];
|
|
33
|
-
forwarded: boolean;
|
|
34
|
-
remoteDeleted: boolean;
|
|
35
|
-
type: MessageType;
|
|
36
|
-
header?: MessageHeader;
|
|
37
|
-
footer?: string;
|
|
38
|
-
mentions: [];
|
|
39
|
-
context?: string;
|
|
40
|
-
text?: MessageText;
|
|
41
|
-
contacts?: MessageContact[];
|
|
42
|
-
audio: MessageAudio;
|
|
43
|
-
images?: MessageImage[];
|
|
44
|
-
videos?: MessageVideo[];
|
|
45
|
-
cdr?: MessageCdr;
|
|
46
|
-
locations?: MessageLocation[];
|
|
47
|
-
documents?: MessageDocument[];
|
|
48
|
-
stickers?: MessageSticker[];
|
|
49
|
-
info?: MessageInfo;
|
|
50
|
-
form?: MessageForm;
|
|
51
|
-
ticket?: MessageTicket;
|
|
52
|
-
email?: MessageEmail;
|
|
53
|
-
buttons?: MessageButton[];
|
|
54
|
-
poll?: MessagePoll;
|
|
55
|
-
note?: MessageNote;
|
|
56
|
-
reactions?: MessageReaction[];
|
|
57
|
-
messageReference?: MessageReference;
|
|
58
|
-
comment?: CommentData;
|
|
59
|
-
isLoaded: boolean;
|
|
60
|
-
isHighlighted: boolean;
|
|
61
|
-
deleted: boolean;
|
|
62
|
-
updatedAt?: Date;
|
|
63
|
-
updatedBy?: UserInfo;
|
|
64
|
-
}
|
|
65
4
|
export interface CommentData {
|
|
66
5
|
userId: string;
|
|
67
6
|
text: string;
|
|
@@ -362,3 +301,64 @@ export interface MessageContactUrl {
|
|
|
362
301
|
url: string;
|
|
363
302
|
type: string;
|
|
364
303
|
}
|
|
304
|
+
export interface IMessage {
|
|
305
|
+
id: string;
|
|
306
|
+
externalId?: string;
|
|
307
|
+
shardKey?: string;
|
|
308
|
+
/**only for Front-End */
|
|
309
|
+
idLocal?: number;
|
|
310
|
+
spaceId: string;
|
|
311
|
+
conversationId: string;
|
|
312
|
+
/**only for Front-End */
|
|
313
|
+
contactId?: string;
|
|
314
|
+
read?: boolean;
|
|
315
|
+
/**ISO8601 timestamp */
|
|
316
|
+
timestamp: Date;
|
|
317
|
+
userId: string;
|
|
318
|
+
channelInfo?: IChannelInfo;
|
|
319
|
+
/**
|
|
320
|
+
* ejemplos
|
|
321
|
+
* wa:5493584023801,
|
|
322
|
+
* email:info@trii.app,
|
|
323
|
+
* Fb:11111111111111111,
|
|
324
|
+
* Ig:22222222222222222,
|
|
325
|
+
* sms:3584023801
|
|
326
|
+
* */
|
|
327
|
+
from: string;
|
|
328
|
+
to: string;
|
|
329
|
+
remoteContactData?: MessageContactData;
|
|
330
|
+
direction: MessageDirection;
|
|
331
|
+
ack: MessageAck;
|
|
332
|
+
ackLogs: ackLog[];
|
|
333
|
+
forwarded: boolean;
|
|
334
|
+
remoteDeleted: boolean;
|
|
335
|
+
type: MessageType;
|
|
336
|
+
header?: MessageHeader;
|
|
337
|
+
footer?: string;
|
|
338
|
+
mentions: [];
|
|
339
|
+
context?: string;
|
|
340
|
+
text?: MessageText;
|
|
341
|
+
contacts?: MessageContact[];
|
|
342
|
+
audio: MessageAudio;
|
|
343
|
+
images?: MessageImage[];
|
|
344
|
+
videos?: MessageVideo[];
|
|
345
|
+
cdr?: MessageCdr;
|
|
346
|
+
locations?: MessageLocation[];
|
|
347
|
+
documents?: MessageDocument[];
|
|
348
|
+
stickers?: MessageSticker[];
|
|
349
|
+
info?: MessageInfo;
|
|
350
|
+
form?: MessageForm;
|
|
351
|
+
ticket?: MessageTicket;
|
|
352
|
+
email?: MessageEmail;
|
|
353
|
+
buttons?: MessageButton[];
|
|
354
|
+
poll?: MessagePoll;
|
|
355
|
+
note?: MessageNote;
|
|
356
|
+
reactions?: MessageReaction[];
|
|
357
|
+
messageReference?: MessageReference;
|
|
358
|
+
comment?: CommentData;
|
|
359
|
+
isLoaded: boolean;
|
|
360
|
+
isHighlighted: boolean;
|
|
361
|
+
deleted: boolean;
|
|
362
|
+
updatedAt?: Date;
|
|
363
|
+
updatedBy?: UserInfo;
|
|
364
|
+
}
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MessageFormStatus = exports.MessageButtonType = exports.MessageCdrCallStatus = exports.MessageHeaderType = exports.MessageType = exports.MessageAck = exports.MessageDirection = void 0;
|
|
4
|
+
var MessageDirection;
|
|
2
5
|
(function (MessageDirection) {
|
|
3
6
|
MessageDirection[MessageDirection["IN"] = 1] = "IN";
|
|
4
7
|
MessageDirection[MessageDirection["OUT"] = 2] = "OUT";
|
|
5
|
-
})(MessageDirection || (MessageDirection = {}));
|
|
6
|
-
|
|
8
|
+
})(MessageDirection || (exports.MessageDirection = MessageDirection = {}));
|
|
9
|
+
var MessageAck;
|
|
7
10
|
(function (MessageAck) {
|
|
8
11
|
MessageAck[MessageAck["ACK_QUEUE"] = -2] = "ACK_QUEUE";
|
|
9
12
|
MessageAck[MessageAck["ACK_PENDING"] = -1] = "ACK_PENDING";
|
|
@@ -13,8 +16,8 @@ export var MessageAck;
|
|
|
13
16
|
MessageAck[MessageAck["ACK_DEVICE"] = 3] = "ACK_DEVICE";
|
|
14
17
|
MessageAck[MessageAck["ACK_READ"] = 4] = "ACK_READ";
|
|
15
18
|
MessageAck[MessageAck["ACK_PLAYED"] = 5] = "ACK_PLAYED";
|
|
16
|
-
})(MessageAck || (MessageAck = {}));
|
|
17
|
-
|
|
19
|
+
})(MessageAck || (exports.MessageAck = MessageAck = {}));
|
|
20
|
+
var MessageType;
|
|
18
21
|
(function (MessageType) {
|
|
19
22
|
MessageType[MessageType["CHAT"] = 1] = "CHAT";
|
|
20
23
|
MessageType[MessageType["CHAT_EXTERNAL"] = 2] = "CHAT_EXTERNAL";
|
|
@@ -25,29 +28,29 @@ export var MessageType;
|
|
|
25
28
|
MessageType[MessageType["INFO"] = 7] = "INFO";
|
|
26
29
|
MessageType[MessageType["NOTIFICATION_NEW_CONVERSATION"] = 12] = "NOTIFICATION_NEW_CONVERSATION";
|
|
27
30
|
MessageType[MessageType["N2B"] = 13] = "N2B";
|
|
28
|
-
})(MessageType || (MessageType = {}));
|
|
29
|
-
|
|
31
|
+
})(MessageType || (exports.MessageType = MessageType = {}));
|
|
32
|
+
var MessageHeaderType;
|
|
30
33
|
(function (MessageHeaderType) {
|
|
31
34
|
MessageHeaderType[MessageHeaderType["TEXT"] = 0] = "TEXT";
|
|
32
35
|
MessageHeaderType[MessageHeaderType["IMAGE"] = 1] = "IMAGE";
|
|
33
36
|
MessageHeaderType[MessageHeaderType["VIDEO"] = 2] = "VIDEO";
|
|
34
37
|
MessageHeaderType[MessageHeaderType["FILE"] = 3] = "FILE";
|
|
35
38
|
MessageHeaderType[MessageHeaderType["LOCATION"] = 4] = "LOCATION";
|
|
36
|
-
})(MessageHeaderType || (MessageHeaderType = {}));
|
|
37
|
-
|
|
39
|
+
})(MessageHeaderType || (exports.MessageHeaderType = MessageHeaderType = {}));
|
|
40
|
+
var MessageCdrCallStatus;
|
|
38
41
|
(function (MessageCdrCallStatus) {
|
|
39
42
|
MessageCdrCallStatus[MessageCdrCallStatus["ANSWERED"] = 1] = "ANSWERED";
|
|
40
43
|
MessageCdrCallStatus[MessageCdrCallStatus["UNANSWERED"] = 2] = "UNANSWERED";
|
|
41
44
|
MessageCdrCallStatus[MessageCdrCallStatus["LOST"] = 3] = "LOST";
|
|
42
|
-
})(MessageCdrCallStatus || (MessageCdrCallStatus = {}));
|
|
43
|
-
|
|
45
|
+
})(MessageCdrCallStatus || (exports.MessageCdrCallStatus = MessageCdrCallStatus = {}));
|
|
46
|
+
var MessageButtonType;
|
|
44
47
|
(function (MessageButtonType) {
|
|
45
48
|
MessageButtonType[MessageButtonType["TEXT"] = 0] = "TEXT";
|
|
46
49
|
MessageButtonType[MessageButtonType["URL"] = 1] = "URL";
|
|
47
|
-
})(MessageButtonType || (MessageButtonType = {}));
|
|
48
|
-
|
|
50
|
+
})(MessageButtonType || (exports.MessageButtonType = MessageButtonType = {}));
|
|
51
|
+
var MessageFormStatus;
|
|
49
52
|
(function (MessageFormStatus) {
|
|
50
53
|
MessageFormStatus[MessageFormStatus["pending"] = 0] = "pending";
|
|
51
54
|
MessageFormStatus[MessageFormStatus["completed"] = 1] = "completed";
|
|
52
55
|
MessageFormStatus[MessageFormStatus["expired"] = 2] = "expired";
|
|
53
|
-
})(MessageFormStatus || (MessageFormStatus = {}));
|
|
56
|
+
})(MessageFormStatus || (exports.MessageFormStatus = MessageFormStatus = {}));
|
|
@@ -1,20 +1,23 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TemplateButtonType = exports.TemplateHeaderType = exports.TemplateStatus = void 0;
|
|
4
|
+
var TemplateStatus;
|
|
2
5
|
(function (TemplateStatus) {
|
|
3
6
|
TemplateStatus[TemplateStatus["PENDING"] = 0] = "PENDING";
|
|
4
7
|
TemplateStatus[TemplateStatus["APPROVED"] = 1] = "APPROVED";
|
|
5
8
|
TemplateStatus[TemplateStatus["REJECTED"] = 2] = "REJECTED";
|
|
6
9
|
TemplateStatus[TemplateStatus["PROCESSING"] = 3] = "PROCESSING";
|
|
7
|
-
})(TemplateStatus || (TemplateStatus = {}));
|
|
8
|
-
|
|
10
|
+
})(TemplateStatus || (exports.TemplateStatus = TemplateStatus = {}));
|
|
11
|
+
var TemplateHeaderType;
|
|
9
12
|
(function (TemplateHeaderType) {
|
|
10
13
|
TemplateHeaderType[TemplateHeaderType["TEXT"] = 0] = "TEXT";
|
|
11
14
|
TemplateHeaderType[TemplateHeaderType["IMAGE"] = 1] = "IMAGE";
|
|
12
15
|
TemplateHeaderType[TemplateHeaderType["VIDEO"] = 2] = "VIDEO";
|
|
13
16
|
TemplateHeaderType[TemplateHeaderType["FILE"] = 3] = "FILE";
|
|
14
17
|
TemplateHeaderType[TemplateHeaderType["LOCATION"] = 4] = "LOCATION";
|
|
15
|
-
})(TemplateHeaderType || (TemplateHeaderType = {}));
|
|
16
|
-
|
|
18
|
+
})(TemplateHeaderType || (exports.TemplateHeaderType = TemplateHeaderType = {}));
|
|
19
|
+
var TemplateButtonType;
|
|
17
20
|
(function (TemplateButtonType) {
|
|
18
21
|
TemplateButtonType[TemplateButtonType["TEXT"] = 0] = "TEXT";
|
|
19
22
|
TemplateButtonType[TemplateButtonType["URL"] = 1] = "URL";
|
|
20
|
-
})(TemplateButtonType || (TemplateButtonType = {}));
|
|
23
|
+
})(TemplateButtonType || (exports.TemplateButtonType = TemplateButtonType = {}));
|
|
@@ -1,3 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./Message"), exports);
|
|
18
|
+
__exportStar(require("./MediaFile"), exports);
|
|
19
|
+
__exportStar(require("./Template"), exports);
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NotificationTaskStatus = void 0;
|
|
4
|
+
var NotificationTaskStatus;
|
|
2
5
|
(function (NotificationTaskStatus) {
|
|
3
6
|
NotificationTaskStatus[NotificationTaskStatus["QUEUED"] = 0] = "QUEUED";
|
|
4
7
|
NotificationTaskStatus[NotificationTaskStatus["RUNNING"] = 1] = "RUNNING";
|
|
5
8
|
NotificationTaskStatus[NotificationTaskStatus["FINISHED"] = 2] = "FINISHED";
|
|
6
9
|
NotificationTaskStatus[NotificationTaskStatus["ERROR"] = 3] = "ERROR";
|
|
7
|
-
})(NotificationTaskStatus || (NotificationTaskStatus = {}));
|
|
10
|
+
})(NotificationTaskStatus || (exports.NotificationTaskStatus = NotificationTaskStatus = {}));
|
|
@@ -1,8 +1,15 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UserConfig_SendTo = exports.UserConfig_Tickets = exports.UserConfig_Chat = exports.UserConfig_Conversations = void 0;
|
|
4
|
+
class UserConfig_Conversations {
|
|
2
5
|
}
|
|
3
|
-
|
|
6
|
+
exports.UserConfig_Conversations = UserConfig_Conversations;
|
|
7
|
+
class UserConfig_Chat {
|
|
4
8
|
}
|
|
5
|
-
|
|
9
|
+
exports.UserConfig_Chat = UserConfig_Chat;
|
|
10
|
+
class UserConfig_Tickets {
|
|
6
11
|
}
|
|
7
|
-
|
|
12
|
+
exports.UserConfig_Tickets = UserConfig_Tickets;
|
|
13
|
+
class UserConfig_SendTo {
|
|
8
14
|
}
|
|
15
|
+
exports.UserConfig_SendTo = UserConfig_SendTo;
|
|
@@ -1,2 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./Notification"), exports);
|
|
18
|
+
__exportStar(require("./UserNotificationsConfig"), exports);
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1 +1,17 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./Schedules"), exports);
|
package/dist/Common/index.js
CHANGED
|
@@ -1,12 +1,42 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.QueueEvent = exports.Schedules = exports.Notifications = exports.Messages = exports.Channels = exports.API = void 0;
|
|
37
|
+
exports.API = __importStar(require("./API/index"));
|
|
38
|
+
exports.Channels = __importStar(require("./Channels/index"));
|
|
39
|
+
exports.Messages = __importStar(require("./Messages/index"));
|
|
40
|
+
exports.Notifications = __importStar(require("./Notifications/index"));
|
|
41
|
+
exports.Schedules = __importStar(require("./Schedules/index"));
|
|
42
|
+
exports.QueueEvent = __importStar(require("./EventsQueue/index"));
|
package/dist/Contacts/File.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
package/dist/Contacts/Label.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
package/dist/Contacts/Note.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,12 +1,15 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GoogleAccountInfo = exports.GooglePeopleIntegration = exports.IntegrationButton_format = exports.IntegrationButton_method = exports.ContactField_type = exports.ContactOrigin = void 0;
|
|
4
|
+
var ContactOrigin;
|
|
2
5
|
(function (ContactOrigin) {
|
|
3
6
|
ContactOrigin[ContactOrigin["MANUAL"] = 0] = "MANUAL";
|
|
4
7
|
ContactOrigin[ContactOrigin["IMPORT"] = 1] = "IMPORT";
|
|
5
8
|
ContactOrigin[ContactOrigin["CALL"] = 2] = "CALL";
|
|
6
9
|
ContactOrigin[ContactOrigin["TICKET"] = 3] = "TICKET";
|
|
7
10
|
ContactOrigin[ContactOrigin["FORM"] = 4] = "FORM";
|
|
8
|
-
})(ContactOrigin || (ContactOrigin = {}));
|
|
9
|
-
|
|
11
|
+
})(ContactOrigin || (exports.ContactOrigin = ContactOrigin = {}));
|
|
12
|
+
var ContactField_type;
|
|
10
13
|
(function (ContactField_type) {
|
|
11
14
|
ContactField_type[ContactField_type["TEXT"] = 0] = "TEXT";
|
|
12
15
|
ContactField_type[ContactField_type["LONGTEXT"] = 1] = "LONGTEXT";
|
|
@@ -21,19 +24,21 @@ export var ContactField_type;
|
|
|
21
24
|
ContactField_type[ContactField_type["NUMBER_DECIMAL"] = 22] = "NUMBER_DECIMAL";
|
|
22
25
|
ContactField_type[ContactField_type["NUMBER_CURRENCY"] = 23] = "NUMBER_CURRENCY";
|
|
23
26
|
ContactField_type[ContactField_type["NUMBER_ACCOUNTING"] = 24] = "NUMBER_ACCOUNTING";
|
|
24
|
-
})(ContactField_type || (ContactField_type = {}));
|
|
25
|
-
|
|
27
|
+
})(ContactField_type || (exports.ContactField_type = ContactField_type = {}));
|
|
28
|
+
var IntegrationButton_method;
|
|
26
29
|
(function (IntegrationButton_method) {
|
|
27
30
|
IntegrationButton_method[IntegrationButton_method["GET"] = 1] = "GET";
|
|
28
31
|
IntegrationButton_method[IntegrationButton_method["POST"] = 2] = "POST";
|
|
29
|
-
})(IntegrationButton_method || (IntegrationButton_method = {}));
|
|
30
|
-
|
|
32
|
+
})(IntegrationButton_method || (exports.IntegrationButton_method = IntegrationButton_method = {}));
|
|
33
|
+
var IntegrationButton_format;
|
|
31
34
|
(function (IntegrationButton_format) {
|
|
32
35
|
IntegrationButton_format[IntegrationButton_format["JSON"] = 1] = "JSON";
|
|
33
36
|
IntegrationButton_format[IntegrationButton_format["HTML"] = 2] = "HTML";
|
|
34
37
|
IntegrationButton_format[IntegrationButton_format["HTML_newtab"] = 3] = "HTML_newtab";
|
|
35
|
-
})(IntegrationButton_format || (IntegrationButton_format = {}));
|
|
36
|
-
|
|
38
|
+
})(IntegrationButton_format || (exports.IntegrationButton_format = IntegrationButton_format = {}));
|
|
39
|
+
class GooglePeopleIntegration {
|
|
37
40
|
}
|
|
38
|
-
|
|
41
|
+
exports.GooglePeopleIntegration = GooglePeopleIntegration;
|
|
42
|
+
class GoogleAccountInfo {
|
|
39
43
|
}
|
|
44
|
+
exports.GoogleAccountInfo = GoogleAccountInfo;
|
package/dist/Contacts/index.js
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./contacts"), exports);
|
|
18
|
+
__exportStar(require("./segments"), exports);
|
|
19
|
+
__exportStar(require("./Label"), exports);
|
|
20
|
+
__exportStar(require("./Note"), exports);
|
|
21
|
+
__exportStar(require("./File"), exports);
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Segment_Filter_Account = exports.Segment_Filter_Geography = exports.Segment_Filter_Details = exports.Segment_Filter_Operator = void 0;
|
|
4
|
+
const contacts_1 = require("./contacts");
|
|
5
|
+
var Segment_Filter_Operator;
|
|
3
6
|
(function (Segment_Filter_Operator) {
|
|
4
7
|
Segment_Filter_Operator[Segment_Filter_Operator["NULL"] = 0] = "NULL";
|
|
5
8
|
Segment_Filter_Operator[Segment_Filter_Operator["LESS_THAN"] = 1] = "LESS_THAN";
|
|
@@ -12,38 +15,38 @@ export var Segment_Filter_Operator;
|
|
|
12
15
|
Segment_Filter_Operator[Segment_Filter_Operator["CONTAINS"] = 8] = "CONTAINS";
|
|
13
16
|
Segment_Filter_Operator[Segment_Filter_Operator["NOT_CONTAINS"] = 9] = "NOT_CONTAINS";
|
|
14
17
|
Segment_Filter_Operator[Segment_Filter_Operator["ANY_VALUE"] = 10] = "ANY_VALUE";
|
|
15
|
-
})(Segment_Filter_Operator || (Segment_Filter_Operator = {}));
|
|
16
|
-
|
|
18
|
+
})(Segment_Filter_Operator || (exports.Segment_Filter_Operator = Segment_Filter_Operator = {}));
|
|
19
|
+
exports.Segment_Filter_Details = [
|
|
17
20
|
{
|
|
18
21
|
key: "details.name",
|
|
19
|
-
type: ContactField_type.TEXT
|
|
22
|
+
type: contacts_1.ContactField_type.TEXT
|
|
20
23
|
},
|
|
21
24
|
{
|
|
22
25
|
key: "details.email",
|
|
23
|
-
type: ContactField_type.TEXT
|
|
26
|
+
type: contacts_1.ContactField_type.TEXT
|
|
24
27
|
},
|
|
25
28
|
];
|
|
26
|
-
|
|
29
|
+
exports.Segment_Filter_Geography = [
|
|
27
30
|
{
|
|
28
31
|
key: "geography.country",
|
|
29
|
-
type: ContactField_type.TEXT
|
|
32
|
+
type: contacts_1.ContactField_type.TEXT
|
|
30
33
|
},
|
|
31
34
|
{
|
|
32
35
|
key: "details.city",
|
|
33
|
-
type: ContactField_type.TEXT
|
|
36
|
+
type: contacts_1.ContactField_type.TEXT
|
|
34
37
|
}
|
|
35
38
|
];
|
|
36
|
-
|
|
39
|
+
exports.Segment_Filter_Account = [
|
|
37
40
|
{
|
|
38
41
|
key: "account.name",
|
|
39
|
-
type: ContactField_type.TEXT
|
|
42
|
+
type: contacts_1.ContactField_type.TEXT
|
|
40
43
|
},
|
|
41
44
|
{
|
|
42
45
|
key: "account.email",
|
|
43
|
-
type: ContactField_type.TEXT
|
|
46
|
+
type: contacts_1.ContactField_type.TEXT
|
|
44
47
|
},
|
|
45
48
|
{
|
|
46
49
|
key: "account.numberOfEmployees",
|
|
47
|
-
type: ContactField_type.NUMBER_INTEGER
|
|
50
|
+
type: contacts_1.ContactField_type.NUMBER_INTEGER
|
|
48
51
|
}
|
|
49
52
|
];
|
|
@@ -1,14 +1,18 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AssignMethod = exports.ConversationSatus = exports.ConversationDirection = exports.ConversationAssigned = exports.ChatType = exports.ConversationBotVar = exports.ConversationBotStatus = void 0;
|
|
4
|
+
var ConversationBotStatus;
|
|
2
5
|
(function (ConversationBotStatus) {
|
|
3
6
|
ConversationBotStatus[ConversationBotStatus["NONE"] = 0] = "NONE";
|
|
4
7
|
ConversationBotStatus[ConversationBotStatus["WAITING"] = 1] = "WAITING";
|
|
5
8
|
ConversationBotStatus[ConversationBotStatus["PROCESSING"] = 2] = "PROCESSING";
|
|
6
9
|
ConversationBotStatus[ConversationBotStatus["FINALIZED"] = 4] = "FINALIZED";
|
|
7
10
|
ConversationBotStatus[ConversationBotStatus["CANCELED"] = 5] = "CANCELED";
|
|
8
|
-
})(ConversationBotStatus || (ConversationBotStatus = {}));
|
|
9
|
-
|
|
11
|
+
})(ConversationBotStatus || (exports.ConversationBotStatus = ConversationBotStatus = {}));
|
|
12
|
+
class ConversationBotVar {
|
|
10
13
|
}
|
|
11
|
-
|
|
14
|
+
exports.ConversationBotVar = ConversationBotVar;
|
|
15
|
+
var ChatType;
|
|
12
16
|
(function (ChatType) {
|
|
13
17
|
/**Conversation with a external channel/contact */
|
|
14
18
|
ChatType[ChatType["EXTERNAL"] = 0] = "EXTERNAL";
|
|
@@ -20,25 +24,26 @@ export var ChatType;
|
|
|
20
24
|
ChatType[ChatType["DISCUSS_CONVERSATION"] = 11] = "DISCUSS_CONVERSATION";
|
|
21
25
|
/**Messages to discuss a ticket */
|
|
22
26
|
ChatType[ChatType["DISCUSS_TICKET"] = 12] = "DISCUSS_TICKET";
|
|
23
|
-
})(ChatType || (ChatType = {}));
|
|
24
|
-
|
|
27
|
+
})(ChatType || (exports.ChatType = ChatType = {}));
|
|
28
|
+
class ConversationAssigned {
|
|
25
29
|
}
|
|
26
|
-
|
|
30
|
+
exports.ConversationAssigned = ConversationAssigned;
|
|
31
|
+
var ConversationDirection;
|
|
27
32
|
(function (ConversationDirection) {
|
|
28
33
|
ConversationDirection[ConversationDirection["INBOUND"] = 1] = "INBOUND";
|
|
29
34
|
ConversationDirection[ConversationDirection["OUTBOUND"] = 2] = "OUTBOUND";
|
|
30
|
-
})(ConversationDirection || (ConversationDirection = {}));
|
|
31
|
-
|
|
35
|
+
})(ConversationDirection || (exports.ConversationDirection = ConversationDirection = {}));
|
|
36
|
+
var ConversationSatus;
|
|
32
37
|
(function (ConversationSatus) {
|
|
33
38
|
ConversationSatus[ConversationSatus["NEW"] = 1] = "NEW";
|
|
34
39
|
ConversationSatus[ConversationSatus["ACTIVE"] = 2] = "ACTIVE";
|
|
35
40
|
ConversationSatus[ConversationSatus["FINALIZED"] = 3] = "FINALIZED";
|
|
36
41
|
ConversationSatus[ConversationSatus["ARCHIVED"] = 4] = "ARCHIVED";
|
|
37
|
-
})(ConversationSatus || (ConversationSatus = {}));
|
|
38
|
-
|
|
42
|
+
})(ConversationSatus || (exports.ConversationSatus = ConversationSatus = {}));
|
|
43
|
+
var AssignMethod;
|
|
39
44
|
(function (AssignMethod) {
|
|
40
45
|
AssignMethod[AssignMethod["ALL"] = 0] = "ALL";
|
|
41
46
|
AssignMethod[AssignMethod["ROUND_ROBIN"] = 1] = "ROUND_ROBIN";
|
|
42
47
|
AssignMethod[AssignMethod["RANDOM"] = 2] = "RANDOM";
|
|
43
48
|
AssignMethod[AssignMethod["LEAST_BUSY"] = 3] = "LEAST_BUSY";
|
|
44
|
-
})(AssignMethod || (AssignMethod = {}));
|
|
49
|
+
})(AssignMethod || (exports.AssignMethod = AssignMethod = {}));
|