@trii/types 2.10.130

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.
Files changed (148) hide show
  1. package/README.md +7 -0
  2. package/dist/Accounts/accounts.d.ts +21 -0
  3. package/dist/Accounts/accounts.js +16 -0
  4. package/dist/Accounts/index.d.ts +1 -0
  5. package/dist/Accounts/index.js +1 -0
  6. package/dist/AuditLogs/auditLog.d.ts +8 -0
  7. package/dist/AuditLogs/auditLog.js +9 -0
  8. package/dist/AuditLogs/auditLogType.d.ts +5 -0
  9. package/dist/AuditLogs/auditLogType.js +6 -0
  10. package/dist/AuditLogs/index.d.ts +2 -0
  11. package/dist/AuditLogs/index.js +2 -0
  12. package/dist/Common/API/AuthApiKey.d.ts +5 -0
  13. package/dist/Common/API/AuthApiKey.js +1 -0
  14. package/dist/Common/API/AuthBasic.d.ts +4 -0
  15. package/dist/Common/API/AuthBasic.js +1 -0
  16. package/dist/Common/API/AuthBearer.d.ts +5 -0
  17. package/dist/Common/API/AuthBearer.js +1 -0
  18. package/dist/Common/API/AuthType.d.ts +6 -0
  19. package/dist/Common/API/AuthType.js +1 -0
  20. package/dist/Common/API/Method.d.ts +4 -0
  21. package/dist/Common/API/Method.js +1 -0
  22. package/dist/Common/API/index.d.ts +5 -0
  23. package/dist/Common/API/index.js +5 -0
  24. package/dist/Common/Channels/Channel.d.ts +42 -0
  25. package/dist/Common/Channels/Channel.js +1 -0
  26. package/dist/Common/Channels/ChannelType.d.ts +23 -0
  27. package/dist/Common/Channels/ChannelType.js +24 -0
  28. package/dist/Common/Channels/Email.d.ts +38 -0
  29. package/dist/Common/Channels/Email.js +26 -0
  30. package/dist/Common/Channels/Facebook.d.ts +15 -0
  31. package/dist/Common/Channels/Facebook.js +2 -0
  32. package/dist/Common/Channels/Form.d.ts +52 -0
  33. package/dist/Common/Channels/Form.js +25 -0
  34. package/dist/Common/Channels/GoogleBusiness.d.ts +15 -0
  35. package/dist/Common/Channels/GoogleBusiness.js +2 -0
  36. package/dist/Common/Channels/Instagram.d.ts +15 -0
  37. package/dist/Common/Channels/Instagram.js +2 -0
  38. package/dist/Common/Channels/MercadoLibre.d.ts +22 -0
  39. package/dist/Common/Channels/MercadoLibre.js +4 -0
  40. package/dist/Common/Channels/Pbx.d.ts +2 -0
  41. package/dist/Common/Channels/Pbx.js +2 -0
  42. package/dist/Common/Channels/Permission.d.ts +5 -0
  43. package/dist/Common/Channels/Permission.js +2 -0
  44. package/dist/Common/Channels/Sip.d.ts +2 -0
  45. package/dist/Common/Channels/Sip.js +2 -0
  46. package/dist/Common/Channels/Sms.d.ts +36 -0
  47. package/dist/Common/Channels/Sms.js +10 -0
  48. package/dist/Common/Channels/WebChat.d.ts +60 -0
  49. package/dist/Common/Channels/WebChat.js +14 -0
  50. package/dist/Common/Channels/WhatsApp.d.ts +33 -0
  51. package/dist/Common/Channels/WhatsApp.js +9 -0
  52. package/dist/Common/Channels/index.d.ts +14 -0
  53. package/dist/Common/Channels/index.js +14 -0
  54. package/dist/Common/Messages/Message.d.ts +133 -0
  55. package/dist/Common/Messages/Message.js +25 -0
  56. package/dist/Common/Messages/index.d.ts +1 -0
  57. package/dist/Common/Messages/index.js +1 -0
  58. package/dist/Common/Notifications/Notification.d.ts +19 -0
  59. package/dist/Common/Notifications/Notification.js +7 -0
  60. package/dist/Common/Notifications/index.d.ts +1 -0
  61. package/dist/Common/Notifications/index.js +1 -0
  62. package/dist/Common/Schedules/Schedules.d.ts +58 -0
  63. package/dist/Common/Schedules/Schedules.js +1 -0
  64. package/dist/Common/Schedules/index.d.ts +1 -0
  65. package/dist/Common/Schedules/index.js +1 -0
  66. package/dist/Common/index.d.ts +5 -0
  67. package/dist/Common/index.js +10 -0
  68. package/dist/Contacts/contacts.d.ts +153 -0
  69. package/dist/Contacts/contacts.js +106 -0
  70. package/dist/Contacts/index.d.ts +1 -0
  71. package/dist/Contacts/index.js +1 -0
  72. package/dist/Conversations/Conversation.d.ts +38 -0
  73. package/dist/Conversations/Conversation.js +13 -0
  74. package/dist/Conversations/Ending.d.ts +9 -0
  75. package/dist/Conversations/Ending.js +1 -0
  76. package/dist/Conversations/Flows/Flow.d.ts +104 -0
  77. package/dist/Conversations/Flows/Flow.js +36 -0
  78. package/dist/Conversations/Flows/Nodes/NodeApi.d.ts +20 -0
  79. package/dist/Conversations/Flows/Nodes/NodeApi.js +2 -0
  80. package/dist/Conversations/Flows/Nodes/NodeConditional.d.ts +21 -0
  81. package/dist/Conversations/Flows/Nodes/NodeConditional.js +16 -0
  82. package/dist/Conversations/Flows/Nodes/NodeContactSearch.d.ts +8 -0
  83. package/dist/Conversations/Flows/Nodes/NodeContactSearch.js +2 -0
  84. package/dist/Conversations/Flows/Nodes/NodeContactUpdate.d.ts +12 -0
  85. package/dist/Conversations/Flows/Nodes/NodeContactUpdate.js +7 -0
  86. package/dist/Conversations/Flows/Nodes/NodeConversationAssignTo.d.ts +6 -0
  87. package/dist/Conversations/Flows/Nodes/NodeConversationAssignTo.js +2 -0
  88. package/dist/Conversations/Flows/Nodes/NodeConversationFinalize.d.ts +4 -0
  89. package/dist/Conversations/Flows/Nodes/NodeConversationFinalize.js +2 -0
  90. package/dist/Conversations/Flows/Nodes/NodeConversationUpdate.d.ts +15 -0
  91. package/dist/Conversations/Flows/Nodes/NodeConversationUpdate.js +11 -0
  92. package/dist/Conversations/Flows/Nodes/NodeFillForm.d.ts +12 -0
  93. package/dist/Conversations/Flows/Nodes/NodeFillForm.js +4 -0
  94. package/dist/Conversations/Flows/Nodes/NodeFillTicket.d.ts +22 -0
  95. package/dist/Conversations/Flows/Nodes/NodeFillTicket.js +9 -0
  96. package/dist/Conversations/Flows/Nodes/NodeMsgText.d.ts +40 -0
  97. package/dist/Conversations/Flows/Nodes/NodeMsgText.js +25 -0
  98. package/dist/Conversations/Flows/Nodes/NodeMsgWaitResponse.d.ts +44 -0
  99. package/dist/Conversations/Flows/Nodes/NodeMsgWaitResponse.js +31 -0
  100. package/dist/Conversations/Flows/Nodes/NodeRedirect.d.ts +7 -0
  101. package/dist/Conversations/Flows/Nodes/NodeRedirect.js +2 -0
  102. package/dist/Conversations/Flows/Nodes/NodeSendEmail.d.ts +9 -0
  103. package/dist/Conversations/Flows/Nodes/NodeSendEmail.js +2 -0
  104. package/dist/Conversations/Flows/Nodes/NodeSqlQuery.d.ts +14 -0
  105. package/dist/Conversations/Flows/Nodes/NodeSqlQuery.js +8 -0
  106. package/dist/Conversations/Flows/Nodes/NodeStart.d.ts +32 -0
  107. package/dist/Conversations/Flows/Nodes/NodeStart.js +184 -0
  108. package/dist/Conversations/Flows/Nodes/NodeTimeScheduleControl.d.ts +6 -0
  109. package/dist/Conversations/Flows/Nodes/NodeTimeScheduleControl.js +2 -0
  110. package/dist/Conversations/Flows/Nodes/NodeTimeTimer.d.ts +9 -0
  111. package/dist/Conversations/Flows/Nodes/NodeTimeTimer.js +2 -0
  112. package/dist/Conversations/Flows/Nodes/NodeTimeWaitUntil.d.ts +6 -0
  113. package/dist/Conversations/Flows/Nodes/NodeTimeWaitUntil.js +2 -0
  114. package/dist/Conversations/Flows/Nodes/index.d.ts +18 -0
  115. package/dist/Conversations/Flows/Nodes/index.js +18 -0
  116. package/dist/Conversations/Flows/index.d.ts +2 -0
  117. package/dist/Conversations/Flows/index.js +3 -0
  118. package/dist/Conversations/Groups/Group.d.ts +29 -0
  119. package/dist/Conversations/Groups/Group.js +10 -0
  120. package/dist/Conversations/Label.d.ts +10 -0
  121. package/dist/Conversations/Label.js +1 -0
  122. package/dist/Conversations/WebHook.d.ts +22 -0
  123. package/dist/Conversations/WebHook.js +1 -0
  124. package/dist/Conversations/index.d.ts +6 -0
  125. package/dist/Conversations/index.js +8 -0
  126. package/dist/Security/Security.d.ts +12 -0
  127. package/dist/Security/Security.js +1 -0
  128. package/dist/Security/index.d.ts +1 -0
  129. package/dist/Security/index.js +1 -0
  130. package/dist/Spaces/index.d.ts +1 -0
  131. package/dist/Spaces/index.js +1 -0
  132. package/dist/Spaces/spaces.d.ts +78 -0
  133. package/dist/Spaces/spaces.js +74 -0
  134. package/dist/Tickets/AccessLevel.d.ts +5 -0
  135. package/dist/Tickets/AccessLevel.js +6 -0
  136. package/dist/Tickets/index.d.ts +1 -0
  137. package/dist/Tickets/index.js +1 -0
  138. package/dist/Users/UserProfile.d.ts +69 -0
  139. package/dist/Users/UserProfile.js +76 -0
  140. package/dist/Users/UserTrii.d.ts +44 -0
  141. package/dist/Users/UserTrii.js +40 -0
  142. package/dist/Users/UserType.d.ts +8 -0
  143. package/dist/Users/UserType.js +9 -0
  144. package/dist/Users/index.d.ts +3 -0
  145. package/dist/Users/index.js +3 -0
  146. package/dist/index.d.ts +9 -0
  147. package/dist/index.js +18 -0
  148. package/package.json +12 -0
@@ -0,0 +1,33 @@
1
+ import { ISchedule } from "../Schedules/Schedules";
2
+ export declare enum WhatsAppConectionType {
3
+ NULL = 0,
4
+ APIQR = 1,
5
+ TWILIO = 2,
6
+ DIALOG360 = 6
7
+ }
8
+ export declare class WhatsAppConfig {
9
+ useInCampaigns?: boolean;
10
+ token?: string;
11
+ reOpenTime?: number;
12
+ pauseBetweenMessages?: number;
13
+ reassign?: boolean;
14
+ reassignTime?: number;
15
+ reassignGroupId?: string;
16
+ autoResponseBusinessHours?: boolean;
17
+ autoResponseOutOfBusinessHours?: boolean;
18
+ autoResponseHoliday?: boolean;
19
+ autoResponseBusinessHoursMessage?: string | '';
20
+ autoResponseOutOfBusinessHoursMessage?: string | '';
21
+ autoResponseHolidayMessage?: string | '';
22
+ scheduleId?: string | null;
23
+ schedule?: ISchedule | null;
24
+ conectionType: WhatsAppConectionType;
25
+ dialog360NameSpace?: string;
26
+ dialog360AuthToken?: string;
27
+ dialog360Number?: string;
28
+ twilioAccountSid?: string;
29
+ twilioAuthToken?: string;
30
+ twilioNumber?: string;
31
+ apiqrId?: string;
32
+ apiqrToken?: string;
33
+ }
@@ -0,0 +1,9 @@
1
+ export var WhatsAppConectionType;
2
+ (function (WhatsAppConectionType) {
3
+ WhatsAppConectionType[WhatsAppConectionType["NULL"] = 0] = "NULL";
4
+ WhatsAppConectionType[WhatsAppConectionType["APIQR"] = 1] = "APIQR";
5
+ WhatsAppConectionType[WhatsAppConectionType["TWILIO"] = 2] = "TWILIO";
6
+ WhatsAppConectionType[WhatsAppConectionType["DIALOG360"] = 6] = "DIALOG360";
7
+ })(WhatsAppConectionType || (WhatsAppConectionType = {}));
8
+ export class WhatsAppConfig {
9
+ }
@@ -0,0 +1,14 @@
1
+ export * from './Channel';
2
+ export * from './ChannelType';
3
+ export * from './Permission';
4
+ export * from './Email';
5
+ export * from './Facebook';
6
+ export * from './Form';
7
+ export * from './GoogleBusiness';
8
+ export * from './Instagram';
9
+ export * from './MercadoLibre';
10
+ export * from './Pbx';
11
+ export * from './Sip';
12
+ export * from './Sms';
13
+ export * from './WebChat';
14
+ export * from './WhatsApp';
@@ -0,0 +1,14 @@
1
+ export * from './Channel';
2
+ export * from './ChannelType';
3
+ export * from './Permission';
4
+ export * from './Email';
5
+ export * from './Facebook';
6
+ export * from './Form';
7
+ export * from './GoogleBusiness';
8
+ export * from './Instagram';
9
+ export * from './MercadoLibre';
10
+ export * from './Pbx';
11
+ export * from './Sip';
12
+ export * from './Sms';
13
+ export * from './WebChat';
14
+ export * from './WhatsApp';
@@ -0,0 +1,133 @@
1
+ import { UserInfo } from "../../Users/UserTrii";
2
+ import { IChannelInfo } from "../Channels/Channel";
3
+ export interface IMessage {
4
+ id: string;
5
+ /**ISO8601 timestamp */
6
+ timestamp: Date;
7
+ author: UserInfo;
8
+ channelInfo?: IChannelInfo;
9
+ from: string;
10
+ to: string;
11
+ mentions: [];
12
+ ack: MessageAck;
13
+ type: MessageType;
14
+ context?: string;
15
+ text?: MessageText;
16
+ contacts?: MessageContact[];
17
+ audios?: MessageAudio[];
18
+ images?: MessageImage[];
19
+ videos?: MessageVideo[];
20
+ documents?: MessageDocument[];
21
+ stickers?: MessageSticker[];
22
+ info?: MessageInfo;
23
+ form?: MessageForm;
24
+ email?: string;
25
+ buttons?: [];
26
+ reactions?: [];
27
+ deleted: boolean;
28
+ updatedAt?: Date;
29
+ updatedBy?: UserInfo;
30
+ }
31
+ export declare enum MessageAck {
32
+ ACK_ERROR = 0,
33
+ ACK_PENDING = 1,
34
+ ACK_SERVER = 2,
35
+ ACK_DEVICE = 3,
36
+ ACK_READ = 4,
37
+ ACK_PLAYED = 5
38
+ }
39
+ export declare enum MessageType {
40
+ TEXT = 1,
41
+ AUDIO = 2,
42
+ IMAGE = 3,
43
+ VIDEO = 4,
44
+ STICKER = 5,
45
+ LOCATION = 6,
46
+ IM = 7,
47
+ IM_EXTERNAL = 8,
48
+ CDR_PBX = 9,
49
+ CALL = 10,
50
+ COMMENT = 11,
51
+ NOTIFICATION_NEW_CONVERSATION = 12,
52
+ N2B = 13
53
+ }
54
+ export declare type MessageType2 = 'audio' | 'button' | 'contact' | 'document' | 'image' | 'location' | 'sticker' | 'text' | 'video' | 'interactive';
55
+ export interface MessageText {
56
+ previewUrl: boolean;
57
+ body: string;
58
+ }
59
+ export interface MessageAudio {
60
+ }
61
+ export interface MessageImage {
62
+ }
63
+ export interface MessageVideo {
64
+ id: string;
65
+ animated: boolean;
66
+ /**The name for the file on the sender's device. */
67
+ filename: string | '';
68
+ /**image/webp */
69
+ mimeType: string;
70
+ /**The url of the video. */
71
+ url: string;
72
+ }
73
+ export interface MessageDocument {
74
+ }
75
+ export interface MessageEmail {
76
+ }
77
+ export interface MessageSticker {
78
+ /**The ID for the video. */
79
+ id: string;
80
+ /**The caption for the video, if provided. */
81
+ caption: string | '';
82
+ /**The name for the file on the sender's device. */
83
+ filename: string | '';
84
+ /**The mime type for the video file. */
85
+ mimeType: string;
86
+ /**The url of the video. */
87
+ url: string;
88
+ }
89
+ export interface MessageInfo {
90
+ }
91
+ export interface MessageForm {
92
+ }
93
+ export interface MessageContact {
94
+ addresses: MessageContactAddress[];
95
+ birthday: string;
96
+ emails: MessageContactEmail[];
97
+ name: MessageContactName;
98
+ org: MessageContactOrg;
99
+ phones: MessageContactPhone[];
100
+ }
101
+ export interface MessageContactAddress {
102
+ street: string;
103
+ city: string;
104
+ state: string;
105
+ zip: string;
106
+ country: string;
107
+ countryCode: string;
108
+ type: string;
109
+ urls: [];
110
+ }
111
+ export interface MessageContactEmail {
112
+ email: string;
113
+ type: string;
114
+ }
115
+ export interface MessageContactName {
116
+ formattedName: string;
117
+ firstName: string;
118
+ lastName: string;
119
+ middleName: string;
120
+ }
121
+ export interface MessageContactOrg {
122
+ company: string;
123
+ department: string;
124
+ title: string;
125
+ }
126
+ export interface MessageContactPhone {
127
+ phone: string;
128
+ type: string;
129
+ }
130
+ export interface MessageContactUrl {
131
+ url: string;
132
+ type: string;
133
+ }
@@ -0,0 +1,25 @@
1
+ export var MessageAck;
2
+ (function (MessageAck) {
3
+ MessageAck[MessageAck["ACK_ERROR"] = 0] = "ACK_ERROR";
4
+ MessageAck[MessageAck["ACK_PENDING"] = 1] = "ACK_PENDING";
5
+ MessageAck[MessageAck["ACK_SERVER"] = 2] = "ACK_SERVER";
6
+ MessageAck[MessageAck["ACK_DEVICE"] = 3] = "ACK_DEVICE";
7
+ MessageAck[MessageAck["ACK_READ"] = 4] = "ACK_READ";
8
+ MessageAck[MessageAck["ACK_PLAYED"] = 5] = "ACK_PLAYED";
9
+ })(MessageAck || (MessageAck = {}));
10
+ export var MessageType;
11
+ (function (MessageType) {
12
+ MessageType[MessageType["TEXT"] = 1] = "TEXT";
13
+ MessageType[MessageType["AUDIO"] = 2] = "AUDIO";
14
+ MessageType[MessageType["IMAGE"] = 3] = "IMAGE";
15
+ MessageType[MessageType["VIDEO"] = 4] = "VIDEO";
16
+ MessageType[MessageType["STICKER"] = 5] = "STICKER";
17
+ MessageType[MessageType["LOCATION"] = 6] = "LOCATION";
18
+ MessageType[MessageType["IM"] = 7] = "IM";
19
+ MessageType[MessageType["IM_EXTERNAL"] = 8] = "IM_EXTERNAL";
20
+ MessageType[MessageType["CDR_PBX"] = 9] = "CDR_PBX";
21
+ MessageType[MessageType["CALL"] = 10] = "CALL";
22
+ MessageType[MessageType["COMMENT"] = 11] = "COMMENT";
23
+ MessageType[MessageType["NOTIFICATION_NEW_CONVERSATION"] = 12] = "NOTIFICATION_NEW_CONVERSATION";
24
+ MessageType[MessageType["N2B"] = 13] = "N2B";
25
+ })(MessageType || (MessageType = {}));
@@ -0,0 +1 @@
1
+ export * from "./Message";
@@ -0,0 +1 @@
1
+ export * from "./Message";
@@ -0,0 +1,19 @@
1
+ export interface INotification {
2
+ id: string;
3
+ type: string;
4
+ title: string;
5
+ description: string;
6
+ isRead: Boolean;
7
+ task?: NotificationTask;
8
+ createdAt: Date;
9
+ }
10
+ export interface NotificationTask {
11
+ taskId: string;
12
+ taskStatus: NotificationTaskStatus;
13
+ }
14
+ export declare enum NotificationTaskStatus {
15
+ QUEUED = 0,
16
+ RUNNING = 1,
17
+ FINISHED = 2,
18
+ ERROR = 3
19
+ }
@@ -0,0 +1,7 @@
1
+ export var NotificationTaskStatus;
2
+ (function (NotificationTaskStatus) {
3
+ NotificationTaskStatus[NotificationTaskStatus["QUEUED"] = 0] = "QUEUED";
4
+ NotificationTaskStatus[NotificationTaskStatus["RUNNING"] = 1] = "RUNNING";
5
+ NotificationTaskStatus[NotificationTaskStatus["FINISHED"] = 2] = "FINISHED";
6
+ NotificationTaskStatus[NotificationTaskStatus["ERROR"] = 3] = "ERROR";
7
+ })(NotificationTaskStatus || (NotificationTaskStatus = {}));
@@ -0,0 +1 @@
1
+ export * from './Notification';
@@ -0,0 +1 @@
1
+ export * from './Notification';
@@ -0,0 +1,58 @@
1
+ export interface IHoliday {
2
+ id: string | null;
3
+ description: string | null;
4
+ datetimeStart: Date | null;
5
+ datetimeEnd: Date | null;
6
+ }
7
+ export interface ISchedule {
8
+ id: string | null;
9
+ tenantId: string | null;
10
+ name: string | null;
11
+ description: string | null;
12
+ holidays: IHoliday[] | null;
13
+ mondayStart1: string | null;
14
+ mondayEnd1: string | null;
15
+ mondayStart2: string | null;
16
+ mondayEnd2: string | null;
17
+ tuesdayStart1: string | null;
18
+ tuesdayEnd1: string | null;
19
+ tuesdayStart2: string | null;
20
+ tuesdayEnd2: string | null;
21
+ wednesdayStart1: string | null;
22
+ wednesdayEnd1: string | null;
23
+ wednesdayStart2: string | null;
24
+ wednesdayEnd2: string | null;
25
+ thursdayStart1: string | null;
26
+ thursdayEnd1: string | null;
27
+ thursdayStart2: string | null;
28
+ thursdayEnd2: string | null;
29
+ fridayStart1: string | null;
30
+ fridayEnd1: string | null;
31
+ fridayStart2: string | null;
32
+ fridayEnd2: string | null;
33
+ saturdayStart1: string | null;
34
+ saturdayEnd1: string | null;
35
+ saturdayStart2: string | null;
36
+ saturdayEnd2: string | null;
37
+ sundayStart1: string | null;
38
+ sundayEnd1: string | null;
39
+ sundayStart2: string | null;
40
+ sundayEnd2: string | null;
41
+ monday1?: boolean;
42
+ monday2?: boolean;
43
+ tuesday1?: boolean;
44
+ tuesday2?: boolean;
45
+ wednesday1?: boolean;
46
+ wednesday2?: boolean;
47
+ thursday1?: boolean;
48
+ thursday2?: boolean;
49
+ friday1?: boolean;
50
+ friday2?: boolean;
51
+ saturday1?: boolean;
52
+ saturday2?: boolean;
53
+ sunday1?: boolean;
54
+ sunday2?: boolean;
55
+ createdAt?: Date | null;
56
+ updatedAt?: Date | null;
57
+ deletedAt?: Date | null;
58
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export * from './Schedules';
@@ -0,0 +1 @@
1
+ export * from './Schedules';
@@ -0,0 +1,5 @@
1
+ export * as API from './API/index';
2
+ export * as Channels from './Channels/index';
3
+ export * as Messages from './Messages/index';
4
+ export * as Notifications from './Notifications/index';
5
+ export * as Schedules from './Schedules/index';
@@ -0,0 +1,10 @@
1
+ import * as API_1 from './API/index';
2
+ export { API_1 as API };
3
+ import * as Channels_1 from './Channels/index';
4
+ export { Channels_1 as Channels };
5
+ import * as Messages_1 from './Messages/index';
6
+ export { Messages_1 as Messages };
7
+ import * as Notifications_1 from './Notifications/index';
8
+ export { Notifications_1 as Notifications };
9
+ import * as Schedules_1 from './Schedules/index';
10
+ export { Schedules_1 as Schedules };
@@ -0,0 +1,153 @@
1
+ export interface IContactInfo {
2
+ id: number;
3
+ name: string;
4
+ imageUrl: string;
5
+ }
6
+ declare class Property {
7
+ value: any;
8
+ name: string;
9
+ constructor(name: string, value: any);
10
+ }
11
+ export declare class Contact implements IContact {
12
+ id: number;
13
+ name: string;
14
+ properties: Property[];
15
+ constructor(name: string, properties: Property[]);
16
+ }
17
+ export interface IContact {
18
+ id: number;
19
+ name: string;
20
+ }
21
+ export declare enum ContactField_type {
22
+ Text = 0,
23
+ LongText = 1,
24
+ Number = 2,
25
+ Currency = 3,
26
+ Options = 4,
27
+ Time = 5,
28
+ Date = 6,
29
+ TimeRange = 7,
30
+ DateRange = 8,
31
+ Address = 11
32
+ }
33
+ export declare enum ContactField_numbertype {
34
+ Integer = 1,
35
+ Decimal = 2,
36
+ Currency = 3,
37
+ Accounting = 4
38
+ }
39
+ export declare class ContactField implements IContactField {
40
+ props: IContactField;
41
+ id: number;
42
+ name: string;
43
+ nameKey: string;
44
+ type: ContactField_type;
45
+ number: ContactField_number;
46
+ options: string[];
47
+ order: number;
48
+ isSearchKey: boolean;
49
+ isImportKey: boolean;
50
+ isDefault: boolean;
51
+ readOnly: boolean;
52
+ hide: boolean;
53
+ useMask: boolean;
54
+ constructor(props: IContactField);
55
+ }
56
+ export interface IContactField {
57
+ id: number;
58
+ name: string;
59
+ nameKey: string;
60
+ type: ContactField_type;
61
+ number: ContactField_number;
62
+ options: string[];
63
+ order: number;
64
+ isSearchKey: boolean;
65
+ isImportKey: boolean;
66
+ isDefault: boolean;
67
+ readOnly: boolean;
68
+ hide: boolean;
69
+ useMask: boolean;
70
+ }
71
+ export interface ContactField_number {
72
+ type: ContactField_numbertype;
73
+ DecimalsCount: number;
74
+ }
75
+ export declare class Subscription implements ISubscription {
76
+ props: ISubscription;
77
+ id: number;
78
+ name: string;
79
+ details: string;
80
+ constructor(props: ISubscription);
81
+ }
82
+ export interface ISubscription {
83
+ id: number;
84
+ name: string;
85
+ details: string;
86
+ }
87
+ export declare class IntegrationButton implements IIntegrationButton {
88
+ props: IIntegrationButton;
89
+ id: number;
90
+ name: string;
91
+ enabled: boolean;
92
+ icon_class: string;
93
+ icon_color: string;
94
+ api_method: IntegrationButton_method;
95
+ api_url: string;
96
+ api_AuthType: string;
97
+ api_Auth_username: string;
98
+ api_Auth_password: string;
99
+ api_Auth_token: string;
100
+ api_Auth_token_url: string;
101
+ api_Auth_token_body: string;
102
+ api_Auth_APIkey_Key: string;
103
+ api_Auth_APIkey_Value: string;
104
+ api_Auth_APIkey_Addto: string;
105
+ api_contenttype: string;
106
+ api_body: string;
107
+ api_formatosalida: IntegrationButton_format;
108
+ api_Template: string;
109
+ constructor(props: IIntegrationButton);
110
+ }
111
+ export interface IIntegrationButton {
112
+ id: number;
113
+ name: string;
114
+ enabled: boolean;
115
+ icon_class: string;
116
+ icon_color: string;
117
+ api_method: IntegrationButton_method;
118
+ api_url: string;
119
+ api_AuthType: string;
120
+ api_Auth_username: string;
121
+ api_Auth_password: string;
122
+ api_Auth_token: string;
123
+ api_Auth_token_url: string;
124
+ api_Auth_token_body: string;
125
+ api_Auth_APIkey_Key: string;
126
+ api_Auth_APIkey_Value: string;
127
+ api_Auth_APIkey_Addto: string;
128
+ api_contenttype: string;
129
+ api_body: string;
130
+ api_formatosalida: IntegrationButton_format;
131
+ api_Template: string;
132
+ }
133
+ export declare enum IntegrationButton_method {
134
+ GET = 1,
135
+ POST = 2
136
+ }
137
+ export declare enum IntegrationButton_format {
138
+ JSON = 1,
139
+ HTML = 2,
140
+ HTML_newtab = 3
141
+ }
142
+ export declare class GooglePeopleIntegration {
143
+ googleAccount: GoogleAccountInfo;
144
+ autoUpdate: boolean;
145
+ updateBy: string;
146
+ updateAt: Date;
147
+ }
148
+ export declare class GoogleAccountInfo {
149
+ name: string;
150
+ email: string;
151
+ imageUrl: string;
152
+ }
153
+ export {};
@@ -0,0 +1,106 @@
1
+ class Property {
2
+ constructor(name, value) {
3
+ this.name = name;
4
+ this.value = value;
5
+ }
6
+ }
7
+ export class Contact {
8
+ constructor(name, properties) {
9
+ this.name = name;
10
+ this.properties = properties;
11
+ properties.forEach((p, index) => {
12
+ this[p.name] = (value) => {
13
+ if (value) {
14
+ this.properties[index].value = value;
15
+ }
16
+ return this.properties[index].value;
17
+ };
18
+ }, this);
19
+ }
20
+ }
21
+ export var ContactField_type;
22
+ (function (ContactField_type) {
23
+ ContactField_type[ContactField_type["Text"] = 0] = "Text";
24
+ ContactField_type[ContactField_type["LongText"] = 1] = "LongText";
25
+ ContactField_type[ContactField_type["Number"] = 2] = "Number";
26
+ ContactField_type[ContactField_type["Currency"] = 3] = "Currency";
27
+ ContactField_type[ContactField_type["Options"] = 4] = "Options";
28
+ ContactField_type[ContactField_type["Time"] = 5] = "Time";
29
+ ContactField_type[ContactField_type["Date"] = 6] = "Date";
30
+ ContactField_type[ContactField_type["TimeRange"] = 7] = "TimeRange";
31
+ ContactField_type[ContactField_type["DateRange"] = 8] = "DateRange";
32
+ ContactField_type[ContactField_type["Address"] = 11] = "Address";
33
+ })(ContactField_type || (ContactField_type = {}));
34
+ export var ContactField_numbertype;
35
+ (function (ContactField_numbertype) {
36
+ ContactField_numbertype[ContactField_numbertype["Integer"] = 1] = "Integer";
37
+ ContactField_numbertype[ContactField_numbertype["Decimal"] = 2] = "Decimal";
38
+ ContactField_numbertype[ContactField_numbertype["Currency"] = 3] = "Currency";
39
+ ContactField_numbertype[ContactField_numbertype["Accounting"] = 4] = "Accounting";
40
+ })(ContactField_numbertype || (ContactField_numbertype = {}));
41
+ export class ContactField {
42
+ constructor(props) {
43
+ this.props = props;
44
+ this.id = props.id;
45
+ this.name = props.name;
46
+ this.nameKey = props.nameKey;
47
+ this.type = props.type;
48
+ this.number = props.number;
49
+ this.options = props.options;
50
+ this.order = props.order;
51
+ this.isSearchKey = props.isSearchKey;
52
+ this.isImportKey = props.isImportKey;
53
+ this.isDefault = props.isDefault;
54
+ this.readOnly = props.readOnly;
55
+ this.hide = props.hide;
56
+ this.useMask = props.useMask;
57
+ }
58
+ }
59
+ export class Subscription {
60
+ constructor(props) {
61
+ this.props = props;
62
+ this.id = props.id;
63
+ this.name = props.name;
64
+ this.details = props.details;
65
+ }
66
+ }
67
+ export class IntegrationButton {
68
+ constructor(props) {
69
+ this.props = props;
70
+ this.id = props.id;
71
+ this.name = props.name;
72
+ this.enabled = props.enabled;
73
+ this.icon_class = props.icon_class;
74
+ this.icon_color = props.icon_color;
75
+ this.api_method = props.api_method;
76
+ this.api_url = props.api_url;
77
+ this.api_AuthType = props.api_AuthType;
78
+ this.api_Auth_username = props.api_Auth_username;
79
+ this.api_Auth_password = props.api_Auth_password;
80
+ this.api_Auth_token = props.api_Auth_token;
81
+ this.api_Auth_token_url = props.api_Auth_token_url;
82
+ this.api_Auth_token_body = props.api_Auth_token_body;
83
+ this.api_Auth_APIkey_Key = props.api_Auth_APIkey_Key;
84
+ this.api_Auth_APIkey_Value = props.api_Auth_APIkey_Value;
85
+ this.api_Auth_APIkey_Addto = props.api_Auth_APIkey_Addto;
86
+ this.api_contenttype = props.api_contenttype;
87
+ this.api_body = props.api_body;
88
+ this.api_formatosalida = props.api_formatosalida;
89
+ this.api_Template = props.api_Template;
90
+ }
91
+ }
92
+ export var IntegrationButton_method;
93
+ (function (IntegrationButton_method) {
94
+ IntegrationButton_method[IntegrationButton_method["GET"] = 1] = "GET";
95
+ IntegrationButton_method[IntegrationButton_method["POST"] = 2] = "POST";
96
+ })(IntegrationButton_method || (IntegrationButton_method = {}));
97
+ export var IntegrationButton_format;
98
+ (function (IntegrationButton_format) {
99
+ IntegrationButton_format[IntegrationButton_format["JSON"] = 1] = "JSON";
100
+ IntegrationButton_format[IntegrationButton_format["HTML"] = 2] = "HTML";
101
+ IntegrationButton_format[IntegrationButton_format["HTML_newtab"] = 3] = "HTML_newtab";
102
+ })(IntegrationButton_format || (IntegrationButton_format = {}));
103
+ export class GooglePeopleIntegration {
104
+ }
105
+ export class GoogleAccountInfo {
106
+ }
@@ -0,0 +1 @@
1
+ export * from './contacts';
@@ -0,0 +1 @@
1
+ export * from './contacts';
@@ -0,0 +1,38 @@
1
+ import { UserInfo } from "../Users/UserTrii";
2
+ import { ILabel } from "./Label";
3
+ import { GroupInfo } from "./Groups/Group";
4
+ import { Channels } from "../Common/index";
5
+ import { IContactInfo } from "../Contacts/contacts";
6
+ export interface IConversation {
7
+ id: string;
8
+ contactInfo?: IContactInfo;
9
+ direction: ConversationDirection;
10
+ remoteAddress: string;
11
+ channelInfo: Channels.IChannel;
12
+ lastMessage: string;
13
+ newMessagesCount: number;
14
+ labels: ILabel[];
15
+ pinned: boolean;
16
+ transferTo?: ConversationAssigned;
17
+ expired: boolean;
18
+ expiredAssignedTo: ConversationAssigned;
19
+ status: ConversationSatus;
20
+ assignedTo?: ConversationAssigned;
21
+ participants: UserInfo[];
22
+ finalizedAt: Date;
23
+ createdAt: Date;
24
+ updatedAt: Date;
25
+ }
26
+ export declare class ConversationAssigned {
27
+ groupInfo?: GroupInfo;
28
+ userInfo?: UserInfo;
29
+ }
30
+ export declare enum ConversationDirection {
31
+ INBOUND = 1,
32
+ OUTBOUND = 2
33
+ }
34
+ export declare enum ConversationSatus {
35
+ NEW = 1,
36
+ ACTIVE = 2,
37
+ FINALIZED = 2
38
+ }
@@ -0,0 +1,13 @@
1
+ export class ConversationAssigned {
2
+ }
3
+ export var ConversationDirection;
4
+ (function (ConversationDirection) {
5
+ ConversationDirection[ConversationDirection["INBOUND"] = 1] = "INBOUND";
6
+ ConversationDirection[ConversationDirection["OUTBOUND"] = 2] = "OUTBOUND";
7
+ })(ConversationDirection || (ConversationDirection = {}));
8
+ export var ConversationSatus;
9
+ (function (ConversationSatus) {
10
+ ConversationSatus[ConversationSatus["NEW"] = 1] = "NEW";
11
+ ConversationSatus[ConversationSatus["ACTIVE"] = 2] = "ACTIVE";
12
+ ConversationSatus[ConversationSatus["FINALIZED"] = 2] = "FINALIZED";
13
+ })(ConversationSatus || (ConversationSatus = {}));