@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
package/README.md ADDED
@@ -0,0 +1,7 @@
1
+ # Introduction
2
+
3
+ This package is for use in projects linked to Trii.
4
+ Trii - Unified Communications - CRM
5
+
6
+ ## website
7
+ https://trii.app
@@ -0,0 +1,21 @@
1
+ export declare enum Account_Status {
2
+ Normal = 1,
3
+ PendingToDeleted = 2,
4
+ Deleted = 3
5
+ }
6
+ export declare class PrincipalAccount implements IPrincipalAccount {
7
+ props: IPrincipalAccount;
8
+ id: string;
9
+ uid: string;
10
+ name: string;
11
+ email: string;
12
+ status: Account_Status;
13
+ constructor(props: IPrincipalAccount);
14
+ }
15
+ export interface IPrincipalAccount {
16
+ id: string;
17
+ uid: string;
18
+ name: string;
19
+ email: string;
20
+ status: Account_Status;
21
+ }
@@ -0,0 +1,16 @@
1
+ export var Account_Status;
2
+ (function (Account_Status) {
3
+ Account_Status[Account_Status["Normal"] = 1] = "Normal";
4
+ Account_Status[Account_Status["PendingToDeleted"] = 2] = "PendingToDeleted";
5
+ Account_Status[Account_Status["Deleted"] = 3] = "Deleted";
6
+ })(Account_Status || (Account_Status = {}));
7
+ export class PrincipalAccount {
8
+ constructor(props) {
9
+ this.props = props;
10
+ this.id = props.id;
11
+ this.uid = props.uid;
12
+ this.name = props.name;
13
+ this.email = props.email;
14
+ this.status = props.status;
15
+ }
16
+ }
@@ -0,0 +1 @@
1
+ export * from './accounts';
@@ -0,0 +1 @@
1
+ export * from './accounts';
@@ -0,0 +1,8 @@
1
+ import { AuditLogType } from "./auditLogType";
2
+ export declare class AuditLog {
3
+ id: string;
4
+ type: AuditLogType;
5
+ datetime: Date;
6
+ details: string;
7
+ constructor(auditLogJson: any);
8
+ }
@@ -0,0 +1,9 @@
1
+ import { AuditLogType } from "./auditLogType";
2
+ export class AuditLog {
3
+ constructor(auditLogJson) {
4
+ this.id = auditLogJson.id ? auditLogJson.id : '';
5
+ this.type = auditLogJson.type ? auditLogJson.type : AuditLogType.INFO;
6
+ this.datetime = auditLogJson.datetime ? auditLogJson.datetime : null;
7
+ this.details = auditLogJson.details ? auditLogJson.details : '';
8
+ }
9
+ }
@@ -0,0 +1,5 @@
1
+ export declare enum AuditLogType {
2
+ INFO = "INFO",
3
+ WARNING = "WARNING",
4
+ ERROR = "ERROR"
5
+ }
@@ -0,0 +1,6 @@
1
+ export var AuditLogType;
2
+ (function (AuditLogType) {
3
+ AuditLogType["INFO"] = "INFO";
4
+ AuditLogType["WARNING"] = "WARNING";
5
+ AuditLogType["ERROR"] = "ERROR";
6
+ })(AuditLogType || (AuditLogType = {}));
@@ -0,0 +1,2 @@
1
+ export * from './auditLog';
2
+ export * from './auditLogType';
@@ -0,0 +1,2 @@
1
+ export * from './auditLog';
2
+ export * from './auditLogType';
@@ -0,0 +1,5 @@
1
+ export interface AuthApiKey {
2
+ headers?: {
3
+ [key: string]: string;
4
+ } | null;
5
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,4 @@
1
+ export interface AuthBasic {
2
+ username?: string | null;
3
+ password?: string | null;
4
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,5 @@
1
+ export interface AuthBearer {
2
+ fixToken?: string | null;
3
+ dynamicUrl?: string | null;
4
+ dynamicBody?: string | null;
5
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,6 @@
1
+ export declare enum AuthType {
2
+ NONE = 0,
3
+ BASIC = 1,
4
+ APIKEY = 2,
5
+ BEARER = 3
6
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,4 @@
1
+ export declare enum Method {
2
+ GET = 1,
3
+ POST = 2
4
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,5 @@
1
+ export * from './AuthApiKey';
2
+ export * from './AuthBasic';
3
+ export * from './AuthBearer';
4
+ export * from './AuthType';
5
+ export * from './Method';
@@ -0,0 +1,5 @@
1
+ export * from './AuthApiKey';
2
+ export * from './AuthBasic';
3
+ export * from './AuthBearer';
4
+ export * from './AuthType';
5
+ export * from './Method';
@@ -0,0 +1,42 @@
1
+ import { ChannelType } from './ChannelType';
2
+ import { EmailConfig } from './Email';
3
+ import { FacebookConfig } from './Facebook';
4
+ import { FormConfig } from './Form';
5
+ import { GoogleBusinessConfig } from './GoogleBusiness';
6
+ import { InstagramConfig } from './Instagram';
7
+ import { MercadoLibreConfig } from './MercadoLibre';
8
+ import { PbxConfig } from './Pbx';
9
+ import { Permission } from './Permission';
10
+ import { SipConfig } from './Sip';
11
+ import { SmsConfig } from './Sms';
12
+ import { WebChatConfig } from './WebChat';
13
+ import { WhatsAppConfig } from './WhatsApp';
14
+ interface IChannelInfo {
15
+ id?: string | null;
16
+ name?: string | null;
17
+ description?: string | null;
18
+ type?: ChannelType | null;
19
+ }
20
+ interface IChannel {
21
+ id?: string | null;
22
+ tenantId?: string | null;
23
+ name?: string | null;
24
+ description?: string | null;
25
+ type?: ChannelType | null;
26
+ permissions?: Permission[] | null;
27
+ email?: EmailConfig | null;
28
+ sms?: SmsConfig | null;
29
+ webChat?: WebChatConfig | null;
30
+ form?: FormConfig | null;
31
+ pbx?: PbxConfig | null;
32
+ sip?: SipConfig | null;
33
+ whatsApp?: WhatsAppConfig | null;
34
+ instagram?: InstagramConfig | null;
35
+ facebook?: FacebookConfig | null;
36
+ mercadoLibre?: MercadoLibreConfig | null;
37
+ googleBusiness?: GoogleBusinessConfig | null;
38
+ createdAt?: string | null;
39
+ updatedAt?: string | null;
40
+ deletedAt?: string | null;
41
+ }
42
+ export { IChannel, IChannelInfo };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,23 @@
1
+ export declare enum ChannelType {
2
+ NULL = 0,
3
+ CALLBACK = 1,
4
+ EMAIL = 3,
5
+ SMS = 4,
6
+ CALL = 5,
7
+ PHONE = 5,
8
+ INFO = 9,
9
+ NOTA = 10,
10
+ WHATSAPP = 13,
11
+ FACEBOOK = 14,
12
+ TWITTER = 15,
13
+ INSTAGRAM = 16,
14
+ TELEGRAM = 17,
15
+ TRII = 18,
16
+ FACEBOOKPAGE = 19,
17
+ WEBCHAT = 20,
18
+ PBX = 31,
19
+ SIP = 32,
20
+ FORM = 33,
21
+ MERCADOLIBRE = 41,
22
+ GOOGLEBUSINESS = 42
23
+ }
@@ -0,0 +1,24 @@
1
+ export var ChannelType;
2
+ (function (ChannelType) {
3
+ ChannelType[ChannelType["NULL"] = 0] = "NULL";
4
+ ChannelType[ChannelType["CALLBACK"] = 1] = "CALLBACK";
5
+ ChannelType[ChannelType["EMAIL"] = 3] = "EMAIL";
6
+ ChannelType[ChannelType["SMS"] = 4] = "SMS";
7
+ ChannelType[ChannelType["CALL"] = 5] = "CALL";
8
+ ChannelType[ChannelType["PHONE"] = 5] = "PHONE";
9
+ ChannelType[ChannelType["INFO"] = 9] = "INFO";
10
+ ChannelType[ChannelType["NOTA"] = 10] = "NOTA";
11
+ ChannelType[ChannelType["WHATSAPP"] = 13] = "WHATSAPP";
12
+ ChannelType[ChannelType["FACEBOOK"] = 14] = "FACEBOOK";
13
+ ChannelType[ChannelType["TWITTER"] = 15] = "TWITTER";
14
+ ChannelType[ChannelType["INSTAGRAM"] = 16] = "INSTAGRAM";
15
+ ChannelType[ChannelType["TELEGRAM"] = 17] = "TELEGRAM";
16
+ ChannelType[ChannelType["TRII"] = 18] = "TRII";
17
+ ChannelType[ChannelType["FACEBOOKPAGE"] = 19] = "FACEBOOKPAGE";
18
+ ChannelType[ChannelType["WEBCHAT"] = 20] = "WEBCHAT";
19
+ ChannelType[ChannelType["PBX"] = 31] = "PBX";
20
+ ChannelType[ChannelType["SIP"] = 32] = "SIP";
21
+ ChannelType[ChannelType["FORM"] = 33] = "FORM";
22
+ ChannelType[ChannelType["MERCADOLIBRE"] = 41] = "MERCADOLIBRE";
23
+ ChannelType[ChannelType["GOOGLEBUSINESS"] = 42] = "GOOGLEBUSINESS";
24
+ })(ChannelType || (ChannelType = {}));
@@ -0,0 +1,38 @@
1
+ export declare enum EmailConfigOutboundConnectionType {
2
+ NULL = 0,
3
+ TRII = 1,
4
+ SMTP = 2
5
+ }
6
+ export declare enum EmailConfigOutboundSecurityType {
7
+ NONE = 0,
8
+ SSL = 1,
9
+ TLS = 2
10
+ }
11
+ export declare enum EmailConfigOutboundTriiStatus {
12
+ NOT_CONFIGURED = 1,
13
+ SUCCESS = 2
14
+ }
15
+ export declare enum EmailConfigFromNameType {
16
+ CHANNEL_NAME = 1,
17
+ USER_NAME = 2,
18
+ CUSTOM = 3
19
+ }
20
+ export declare class EmailConfig {
21
+ token?: string;
22
+ emailAddress: string;
23
+ emailFromNameType: EmailConfigFromNameType;
24
+ emailFromNameCustom: string;
25
+ reassign?: boolean;
26
+ reassignTime?: number;
27
+ reassignGroupId?: string;
28
+ inboundConnectedEmail: string;
29
+ outboundConnectionType: EmailConfigOutboundConnectionType;
30
+ outboundSmtpServer: string;
31
+ outboundSmtpPort: number | 25;
32
+ outboundSmtpUser: string;
33
+ outboundSmtPasword: string;
34
+ outboundSmtSecurityType: EmailConfigOutboundSecurityType;
35
+ outboundTriiSpfStatus: EmailConfigOutboundTriiStatus;
36
+ outboundTriiDkimStatus: EmailConfigOutboundTriiStatus;
37
+ signature: string;
38
+ }
@@ -0,0 +1,26 @@
1
+ export var EmailConfigOutboundConnectionType;
2
+ (function (EmailConfigOutboundConnectionType) {
3
+ EmailConfigOutboundConnectionType[EmailConfigOutboundConnectionType["NULL"] = 0] = "NULL";
4
+ EmailConfigOutboundConnectionType[EmailConfigOutboundConnectionType["TRII"] = 1] = "TRII";
5
+ EmailConfigOutboundConnectionType[EmailConfigOutboundConnectionType["SMTP"] = 2] = "SMTP";
6
+ // GOOGLE = 3,
7
+ })(EmailConfigOutboundConnectionType || (EmailConfigOutboundConnectionType = {}));
8
+ export var EmailConfigOutboundSecurityType;
9
+ (function (EmailConfigOutboundSecurityType) {
10
+ EmailConfigOutboundSecurityType[EmailConfigOutboundSecurityType["NONE"] = 0] = "NONE";
11
+ EmailConfigOutboundSecurityType[EmailConfigOutboundSecurityType["SSL"] = 1] = "SSL";
12
+ EmailConfigOutboundSecurityType[EmailConfigOutboundSecurityType["TLS"] = 2] = "TLS";
13
+ })(EmailConfigOutboundSecurityType || (EmailConfigOutboundSecurityType = {}));
14
+ export var EmailConfigOutboundTriiStatus;
15
+ (function (EmailConfigOutboundTriiStatus) {
16
+ EmailConfigOutboundTriiStatus[EmailConfigOutboundTriiStatus["NOT_CONFIGURED"] = 1] = "NOT_CONFIGURED";
17
+ EmailConfigOutboundTriiStatus[EmailConfigOutboundTriiStatus["SUCCESS"] = 2] = "SUCCESS";
18
+ })(EmailConfigOutboundTriiStatus || (EmailConfigOutboundTriiStatus = {}));
19
+ export var EmailConfigFromNameType;
20
+ (function (EmailConfigFromNameType) {
21
+ EmailConfigFromNameType[EmailConfigFromNameType["CHANNEL_NAME"] = 1] = "CHANNEL_NAME";
22
+ EmailConfigFromNameType[EmailConfigFromNameType["USER_NAME"] = 2] = "USER_NAME";
23
+ EmailConfigFromNameType[EmailConfigFromNameType["CUSTOM"] = 3] = "CUSTOM";
24
+ })(EmailConfigFromNameType || (EmailConfigFromNameType = {}));
25
+ export class EmailConfig {
26
+ }
@@ -0,0 +1,15 @@
1
+ import { ISchedule } from "../Schedules/Schedules";
2
+ export declare class FacebookConfig {
3
+ token?: string | '';
4
+ reassign?: boolean;
5
+ reassignTime?: number;
6
+ reassignGroupId?: string;
7
+ autoResponseBusinessHours?: boolean;
8
+ autoResponseOutOfBusinessHours?: boolean;
9
+ autoResponseHoliday?: boolean;
10
+ autoResponseBusinessHoursMessage?: string | '';
11
+ autoResponseOutOfBusinessHoursMessage?: string | '';
12
+ autoResponseHolidayMessage?: string | '';
13
+ scheduleId?: string | null;
14
+ schedule?: ISchedule | null;
15
+ }
@@ -0,0 +1,2 @@
1
+ export class FacebookConfig {
2
+ }
@@ -0,0 +1,52 @@
1
+ import { ISchedule } from "../Schedules/Schedules";
2
+ export declare enum FormItemType {
3
+ SHORT_ANSWER = 1,
4
+ PARAGRAPH = 2,
5
+ SEVERAL_OPTIONS = 3,
6
+ CHECKBOXES = 4,
7
+ DROPDOWN = 5,
8
+ LINEARSCALE = 6,
9
+ EMAIL = 7,
10
+ DATE = 8,
11
+ TIME = 9
12
+ }
13
+ export declare enum FormItemLinearScaleStyle {
14
+ CIRCLE = 1,
15
+ STAR = 2
16
+ }
17
+ export declare class FormItemLinearScale {
18
+ from: number;
19
+ fromTitle: string | '';
20
+ to: number;
21
+ toTitle: string | '';
22
+ style: FormItemLinearScaleStyle;
23
+ }
24
+ export declare class FormItem {
25
+ id: string | '';
26
+ order: number;
27
+ question: string | '';
28
+ type: FormItemType;
29
+ severalOptionList: FormItemResponseItem[];
30
+ checkboxList: FormItemResponseItem[];
31
+ dropdownList: FormItemResponseItem[];
32
+ linearScale: FormItemLinearScale;
33
+ required: boolean;
34
+ }
35
+ export declare class FormItemResponseItem {
36
+ id: string | '';
37
+ value: string | '';
38
+ }
39
+ export declare class FormConfig {
40
+ token?: string;
41
+ reassign?: boolean;
42
+ reassignTime?: number;
43
+ reassignGroupId?: string;
44
+ scheduleId?: string | null;
45
+ schedule?: ISchedule | null;
46
+ title?: string | '';
47
+ subTitle?: string | '';
48
+ color?: string | '';
49
+ successMessage?: string | '';
50
+ errorMessage?: string | '';
51
+ items: FormItem[];
52
+ }
@@ -0,0 +1,25 @@
1
+ export var FormItemType;
2
+ (function (FormItemType) {
3
+ FormItemType[FormItemType["SHORT_ANSWER"] = 1] = "SHORT_ANSWER";
4
+ FormItemType[FormItemType["PARAGRAPH"] = 2] = "PARAGRAPH";
5
+ FormItemType[FormItemType["SEVERAL_OPTIONS"] = 3] = "SEVERAL_OPTIONS";
6
+ FormItemType[FormItemType["CHECKBOXES"] = 4] = "CHECKBOXES";
7
+ FormItemType[FormItemType["DROPDOWN"] = 5] = "DROPDOWN";
8
+ FormItemType[FormItemType["LINEARSCALE"] = 6] = "LINEARSCALE";
9
+ FormItemType[FormItemType["EMAIL"] = 7] = "EMAIL";
10
+ FormItemType[FormItemType["DATE"] = 8] = "DATE";
11
+ FormItemType[FormItemType["TIME"] = 9] = "TIME";
12
+ })(FormItemType || (FormItemType = {}));
13
+ export var FormItemLinearScaleStyle;
14
+ (function (FormItemLinearScaleStyle) {
15
+ FormItemLinearScaleStyle[FormItemLinearScaleStyle["CIRCLE"] = 1] = "CIRCLE";
16
+ FormItemLinearScaleStyle[FormItemLinearScaleStyle["STAR"] = 2] = "STAR";
17
+ })(FormItemLinearScaleStyle || (FormItemLinearScaleStyle = {}));
18
+ export class FormItemLinearScale {
19
+ }
20
+ export class FormItem {
21
+ }
22
+ export class FormItemResponseItem {
23
+ }
24
+ export class FormConfig {
25
+ }
@@ -0,0 +1,15 @@
1
+ import { ISchedule } from "../Schedules/Schedules";
2
+ export declare class GoogleBusinessConfig {
3
+ token?: string | '';
4
+ reassign?: boolean;
5
+ reassignTime?: number;
6
+ reassignGroupId?: string;
7
+ autoResponseBusinessHours?: boolean;
8
+ autoResponseOutOfBusinessHours?: boolean;
9
+ autoResponseHoliday?: boolean;
10
+ autoResponseBusinessHoursMessage?: string | '';
11
+ autoResponseOutOfBusinessHoursMessage?: string | '';
12
+ autoResponseHolidayMessage?: string | '';
13
+ scheduleId?: string | null;
14
+ schedule?: ISchedule | null;
15
+ }
@@ -0,0 +1,2 @@
1
+ export class GoogleBusinessConfig {
2
+ }
@@ -0,0 +1,15 @@
1
+ import { ISchedule } from "../Schedules/Schedules";
2
+ export declare class InstagramConfig {
3
+ token?: string | '';
4
+ reassign?: boolean;
5
+ reassignTime?: number;
6
+ reassignGroupId?: string;
7
+ autoResponseBusinessHours?: boolean;
8
+ autoResponseOutOfBusinessHours?: boolean;
9
+ autoResponseHoliday?: boolean;
10
+ autoResponseBusinessHoursMessage?: string | '';
11
+ autoResponseOutOfBusinessHoursMessage?: string | '';
12
+ autoResponseHolidayMessage?: string | '';
13
+ scheduleId?: string | null;
14
+ schedule?: ISchedule | null;
15
+ }
@@ -0,0 +1,2 @@
1
+ export class InstagramConfig {
2
+ }
@@ -0,0 +1,22 @@
1
+ import { ISchedule } from "../Schedules/Schedules";
2
+ export declare class MercadoLibreConfig {
3
+ token?: string | '';
4
+ reassign?: boolean;
5
+ reassignTime?: number;
6
+ reassignGroupId?: string;
7
+ autoResponseBusinessHours?: boolean;
8
+ autoResponseOutOfBusinessHours?: boolean;
9
+ autoResponseHoliday?: boolean;
10
+ autoResponseBusinessHoursMessage?: string | '';
11
+ autoResponseOutOfBusinessHoursMessage?: string | '';
12
+ autoResponseHolidayMessage?: string | '';
13
+ mlAccount?: MercadoLibreConfigAccount | null;
14
+ scheduleId?: string | null;
15
+ schedule?: ISchedule | null;
16
+ }
17
+ export declare class MercadoLibreConfigAccount {
18
+ name: string;
19
+ email: string;
20
+ imageUrl: string;
21
+ token: string;
22
+ }
@@ -0,0 +1,4 @@
1
+ export class MercadoLibreConfig {
2
+ }
3
+ export class MercadoLibreConfigAccount {
4
+ }
@@ -0,0 +1,2 @@
1
+ export declare class PbxConfig {
2
+ }
@@ -0,0 +1,2 @@
1
+ export class PbxConfig {
2
+ }
@@ -0,0 +1,5 @@
1
+ export declare class Permission {
2
+ groupId?: string | null;
3
+ readMessages?: boolean | null;
4
+ startConversations?: boolean | null;
5
+ }
@@ -0,0 +1,2 @@
1
+ export class Permission {
2
+ }
@@ -0,0 +1,2 @@
1
+ export declare class SipConfig {
2
+ }
@@ -0,0 +1,2 @@
1
+ export class SipConfig {
2
+ }
@@ -0,0 +1,36 @@
1
+ import { ISchedule } from "../Schedules/Schedules";
2
+ export declare enum SmsConectionType {
3
+ NULL = 0,
4
+ SYNWAY = 1,
5
+ DYNSTAR = 2,
6
+ YEASTAR = 3,
7
+ TRIISHORTSMS = 4
8
+ }
9
+ export declare class SmsConfig {
10
+ useInCampaigns?: boolean;
11
+ token?: string;
12
+ reOpenTime?: number;
13
+ pauseBetweenMessages?: number;
14
+ reassign?: boolean;
15
+ reassignTime?: number;
16
+ reassignGroupId?: string;
17
+ autoResponseBusinessHours?: boolean;
18
+ autoResponseOutOfBusinessHours?: boolean;
19
+ autoResponseHoliday?: boolean;
20
+ scheduleId?: string | null;
21
+ schedule?: ISchedule | null;
22
+ conectionType: SmsConectionType;
23
+ synwayUrl?: string | null;
24
+ synwayUser?: string | null;
25
+ synwayPass?: string | null;
26
+ synwayPort?: string | null;
27
+ dynstarUrl?: string | null;
28
+ dynstarUser?: string | null;
29
+ dynstarPass?: string | null;
30
+ dynstarPort?: string | null;
31
+ yeastarUrl?: string | null;
32
+ yeastarUser?: string | null;
33
+ yeastarPass?: string | null;
34
+ yeastarPort?: string | null;
35
+ shortSmsToken?: string | null;
36
+ }
@@ -0,0 +1,10 @@
1
+ export var SmsConectionType;
2
+ (function (SmsConectionType) {
3
+ SmsConectionType[SmsConectionType["NULL"] = 0] = "NULL";
4
+ SmsConectionType[SmsConectionType["SYNWAY"] = 1] = "SYNWAY";
5
+ SmsConectionType[SmsConectionType["DYNSTAR"] = 2] = "DYNSTAR";
6
+ SmsConectionType[SmsConectionType["YEASTAR"] = 3] = "YEASTAR";
7
+ SmsConectionType[SmsConectionType["TRIISHORTSMS"] = 4] = "TRIISHORTSMS";
8
+ })(SmsConectionType || (SmsConectionType = {}));
9
+ export class SmsConfig {
10
+ }
@@ -0,0 +1,60 @@
1
+ import { ISchedule } from "../Schedules/Schedules";
2
+ export declare class WebChatConfig {
3
+ token?: string | '';
4
+ reassign?: boolean;
5
+ reassignTime?: number;
6
+ reassignGroupId?: string;
7
+ autoResponseBusinessHours?: boolean;
8
+ autoResponseOutOfBusinessHours?: boolean;
9
+ autoResponseHoliday?: boolean;
10
+ autoResponseBusinessHoursMessage?: string | '';
11
+ autoResponseOutOfBusinessHoursMessage?: string | '';
12
+ autoResponseHolidayMessage?: string | '';
13
+ scheduleId?: string | null;
14
+ schedule?: ISchedule | null;
15
+ statusShowWidget: boolean;
16
+ styleBackgroundColor?: string | '';
17
+ styleFontColor?: string | '';
18
+ widgetPosition?: WebChatWidgetPosition;
19
+ widgetShape?: WebChatWidgetShape;
20
+ widgetTitle?: string | '';
21
+ widgetSubTitle?: string | '';
22
+ widgetCalloutEnabled: boolean;
23
+ widgetCalloutTimer: number;
24
+ widgetCalloutTitle?: string | '';
25
+ widgetCalloutMessage?: string | '';
26
+ widgetCalloutIcon?: string | '';
27
+ homeLogoEnabled: boolean;
28
+ homeLogoUrl?: string | '';
29
+ homeTitle?: string | '';
30
+ homeSubTitle?: string | '';
31
+ homeMultiConversationsEnabled: boolean;
32
+ homeChannelsWhatsApp: WebChatChannel[];
33
+ homeChannelsMessenger: WebChatChannel[];
34
+ homeChannelsPhone: WebChatChannel[];
35
+ preChatUserInfoEnabled: boolean;
36
+ preChatUserInfoEmailTitle: string | '';
37
+ preChatUserInfoNameTitle: string | '';
38
+ preChatDataPrivacyPolicyEnabled: boolean;
39
+ preChatDataPrivacyPolicyDescription: string | '';
40
+ preChatDataPrivacyPolicyLink: string | '';
41
+ surveyEnabled: boolean;
42
+ surveyFormId?: string | '';
43
+ advanceMarginTop: number;
44
+ }
45
+ export declare enum WebChatWidgetPosition {
46
+ RIGHT = 0,
47
+ LEFT = 1
48
+ }
49
+ export declare enum WebChatWidgetShape {
50
+ ONLY_ICON = 0,
51
+ ICON_AND_TEXT = 1
52
+ }
53
+ export declare class WebChatChannel {
54
+ id?: string;
55
+ order: number | 0;
56
+ imageUrl?: string | '';
57
+ title?: string | '';
58
+ detail?: string | '';
59
+ address?: string | '';
60
+ }
@@ -0,0 +1,14 @@
1
+ export class WebChatConfig {
2
+ }
3
+ export var WebChatWidgetPosition;
4
+ (function (WebChatWidgetPosition) {
5
+ WebChatWidgetPosition[WebChatWidgetPosition["RIGHT"] = 0] = "RIGHT";
6
+ WebChatWidgetPosition[WebChatWidgetPosition["LEFT"] = 1] = "LEFT";
7
+ })(WebChatWidgetPosition || (WebChatWidgetPosition = {}));
8
+ export var WebChatWidgetShape;
9
+ (function (WebChatWidgetShape) {
10
+ WebChatWidgetShape[WebChatWidgetShape["ONLY_ICON"] = 0] = "ONLY_ICON";
11
+ WebChatWidgetShape[WebChatWidgetShape["ICON_AND_TEXT"] = 1] = "ICON_AND_TEXT";
12
+ })(WebChatWidgetShape || (WebChatWidgetShape = {}));
13
+ export class WebChatChannel {
14
+ }