@trii/types 2.10.255 → 2.10.257

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 (175) hide show
  1. package/dist/Accounts/accounts.d.ts +88 -88
  2. package/dist/Accounts/accounts.js +21 -21
  3. package/dist/Accounts/device.d.ts +21 -21
  4. package/dist/Accounts/device.js +8 -8
  5. package/dist/Accounts/index.d.ts +2 -2
  6. package/dist/Accounts/index.js +2 -2
  7. package/dist/ApiResponses/index.d.ts +8 -8
  8. package/dist/ApiResponses/index.js +1 -1
  9. package/dist/AuditLogs/auditLog.d.ts +7 -7
  10. package/dist/AuditLogs/auditLog.js +1 -1
  11. package/dist/AuditLogs/auditLogType.d.ts +5 -5
  12. package/dist/AuditLogs/auditLogType.js +6 -6
  13. package/dist/AuditLogs/index.d.ts +2 -2
  14. package/dist/AuditLogs/index.js +2 -2
  15. package/dist/Calendar/Event.d.ts +63 -63
  16. package/dist/Calendar/Event.js +13 -13
  17. package/dist/Calendar/index.d.ts +1 -1
  18. package/dist/Calendar/index.js +1 -1
  19. package/dist/Common/API/AuthApiKey.d.ts +5 -5
  20. package/dist/Common/API/AuthApiKey.js +1 -1
  21. package/dist/Common/API/AuthBasic.d.ts +4 -4
  22. package/dist/Common/API/AuthBasic.js +1 -1
  23. package/dist/Common/API/AuthBearer.d.ts +5 -5
  24. package/dist/Common/API/AuthBearer.js +1 -1
  25. package/dist/Common/API/AuthType.d.ts +6 -6
  26. package/dist/Common/API/AuthType.js +7 -7
  27. package/dist/Common/API/Method.d.ts +4 -4
  28. package/dist/Common/API/Method.js +5 -5
  29. package/dist/Common/API/index.d.ts +5 -5
  30. package/dist/Common/API/index.js +5 -5
  31. package/dist/Common/Channels/Channel.d.ts +42 -42
  32. package/dist/Common/Channels/Channel.js +1 -1
  33. package/dist/Common/Channels/ChannelType.d.ts +23 -23
  34. package/dist/Common/Channels/ChannelType.js +24 -24
  35. package/dist/Common/Channels/Email.d.ts +38 -38
  36. package/dist/Common/Channels/Email.js +26 -26
  37. package/dist/Common/Channels/Facebook.d.ts +22 -22
  38. package/dist/Common/Channels/Facebook.js +2 -2
  39. package/dist/Common/Channels/Form.d.ts +52 -52
  40. package/dist/Common/Channels/Form.js +25 -25
  41. package/dist/Common/Channels/GoogleBusiness.d.ts +15 -15
  42. package/dist/Common/Channels/GoogleBusiness.js +2 -2
  43. package/dist/Common/Channels/Instagram.d.ts +21 -21
  44. package/dist/Common/Channels/Instagram.js +2 -2
  45. package/dist/Common/Channels/MercadoLibre.d.ts +22 -22
  46. package/dist/Common/Channels/MercadoLibre.js +4 -4
  47. package/dist/Common/Channels/Pbx.d.ts +2 -2
  48. package/dist/Common/Channels/Pbx.js +2 -2
  49. package/dist/Common/Channels/Permission.d.ts +5 -5
  50. package/dist/Common/Channels/Permission.js +2 -2
  51. package/dist/Common/Channels/Sip.d.ts +2 -2
  52. package/dist/Common/Channels/Sip.js +2 -2
  53. package/dist/Common/Channels/Sms.d.ts +36 -36
  54. package/dist/Common/Channels/Sms.js +10 -10
  55. package/dist/Common/Channels/WebChat.d.ts +60 -60
  56. package/dist/Common/Channels/WebChat.js +14 -14
  57. package/dist/Common/Channels/WhatsApp.d.ts +40 -33
  58. package/dist/Common/Channels/WhatsApp.js +10 -9
  59. package/dist/Common/Channels/index.d.ts +14 -14
  60. package/dist/Common/Channels/index.js +14 -14
  61. package/dist/Common/EventsQueue/EventQueue.d.ts +6 -6
  62. package/dist/Common/EventsQueue/EventQueue.js +1 -1
  63. package/dist/Common/EventsQueue/index.d.ts +1 -1
  64. package/dist/Common/EventsQueue/index.js +1 -1
  65. package/dist/Common/Messages/MediaFile.d.ts +5 -5
  66. package/dist/Common/Messages/MediaFile.js +1 -1
  67. package/dist/Common/Messages/Message.d.ts +309 -306
  68. package/dist/Common/Messages/Message.js +39 -39
  69. package/dist/Common/Messages/index.d.ts +2 -2
  70. package/dist/Common/Messages/index.js +2 -2
  71. package/dist/Common/Notifications/Notification.d.ts +19 -19
  72. package/dist/Common/Notifications/Notification.js +7 -7
  73. package/dist/Common/Notifications/index.d.ts +1 -1
  74. package/dist/Common/Notifications/index.js +1 -1
  75. package/dist/Common/Schedules/Schedules.d.ts +32 -32
  76. package/dist/Common/Schedules/Schedules.js +1 -1
  77. package/dist/Common/Schedules/index.d.ts +1 -1
  78. package/dist/Common/Schedules/index.js +1 -1
  79. package/dist/Common/index.d.ts +6 -6
  80. package/dist/Common/index.js +12 -12
  81. package/dist/Contacts/File.d.ts +17 -17
  82. package/dist/Contacts/File.js +1 -1
  83. package/dist/Contacts/Label.d.ts +9 -9
  84. package/dist/Contacts/Label.js +1 -1
  85. package/dist/Contacts/Note.d.ts +15 -15
  86. package/dist/Contacts/Note.js +1 -1
  87. package/dist/Contacts/contacts.d.ts +217 -217
  88. package/dist/Contacts/contacts.js +39 -39
  89. package/dist/Contacts/index.d.ts +5 -5
  90. package/dist/Contacts/index.js +5 -5
  91. package/dist/Contacts/segments.d.ts +51 -51
  92. package/dist/Contacts/segments.js +49 -49
  93. package/dist/Conversations/Chat.d.ts +33 -0
  94. package/dist/Conversations/Chat.js +11 -0
  95. package/dist/Conversations/Conversation.d.ts +75 -75
  96. package/dist/Conversations/Conversation.js +34 -34
  97. package/dist/Conversations/Ending.d.ts +11 -11
  98. package/dist/Conversations/Ending.js +1 -1
  99. package/dist/Conversations/Flows/Flow.d.ts +104 -104
  100. package/dist/Conversations/Flows/Flow.js +36 -36
  101. package/dist/Conversations/Flows/Nodes/NodeApi.d.ts +20 -20
  102. package/dist/Conversations/Flows/Nodes/NodeApi.js +2 -2
  103. package/dist/Conversations/Flows/Nodes/NodeConditional.d.ts +21 -21
  104. package/dist/Conversations/Flows/Nodes/NodeConditional.js +16 -16
  105. package/dist/Conversations/Flows/Nodes/NodeContactSearch.d.ts +8 -8
  106. package/dist/Conversations/Flows/Nodes/NodeContactSearch.js +2 -2
  107. package/dist/Conversations/Flows/Nodes/NodeContactUpdate.d.ts +12 -12
  108. package/dist/Conversations/Flows/Nodes/NodeContactUpdate.js +7 -7
  109. package/dist/Conversations/Flows/Nodes/NodeConversationAssignTo.d.ts +6 -6
  110. package/dist/Conversations/Flows/Nodes/NodeConversationAssignTo.js +2 -2
  111. package/dist/Conversations/Flows/Nodes/NodeConversationFinalize.d.ts +4 -4
  112. package/dist/Conversations/Flows/Nodes/NodeConversationFinalize.js +2 -2
  113. package/dist/Conversations/Flows/Nodes/NodeConversationUpdate.d.ts +15 -15
  114. package/dist/Conversations/Flows/Nodes/NodeConversationUpdate.js +11 -11
  115. package/dist/Conversations/Flows/Nodes/NodeFillForm.d.ts +12 -12
  116. package/dist/Conversations/Flows/Nodes/NodeFillForm.js +4 -4
  117. package/dist/Conversations/Flows/Nodes/NodeFillTicket.d.ts +22 -22
  118. package/dist/Conversations/Flows/Nodes/NodeFillTicket.js +9 -9
  119. package/dist/Conversations/Flows/Nodes/NodeMsgText.d.ts +40 -40
  120. package/dist/Conversations/Flows/Nodes/NodeMsgText.js +25 -25
  121. package/dist/Conversations/Flows/Nodes/NodeMsgWaitResponse.d.ts +44 -44
  122. package/dist/Conversations/Flows/Nodes/NodeMsgWaitResponse.js +31 -31
  123. package/dist/Conversations/Flows/Nodes/NodeRedirect.d.ts +7 -7
  124. package/dist/Conversations/Flows/Nodes/NodeRedirect.js +2 -2
  125. package/dist/Conversations/Flows/Nodes/NodeSendEmail.d.ts +9 -9
  126. package/dist/Conversations/Flows/Nodes/NodeSendEmail.js +2 -2
  127. package/dist/Conversations/Flows/Nodes/NodeSqlQuery.d.ts +14 -14
  128. package/dist/Conversations/Flows/Nodes/NodeSqlQuery.js +8 -8
  129. package/dist/Conversations/Flows/Nodes/NodeStart.d.ts +32 -32
  130. package/dist/Conversations/Flows/Nodes/NodeStart.js +184 -184
  131. package/dist/Conversations/Flows/Nodes/NodeTimeScheduleControl.d.ts +6 -6
  132. package/dist/Conversations/Flows/Nodes/NodeTimeScheduleControl.js +2 -2
  133. package/dist/Conversations/Flows/Nodes/NodeTimeTimer.d.ts +9 -9
  134. package/dist/Conversations/Flows/Nodes/NodeTimeTimer.js +2 -2
  135. package/dist/Conversations/Flows/Nodes/NodeTimeWaitUntil.d.ts +6 -6
  136. package/dist/Conversations/Flows/Nodes/NodeTimeWaitUntil.js +2 -2
  137. package/dist/Conversations/Flows/Nodes/index.d.ts +18 -18
  138. package/dist/Conversations/Flows/Nodes/index.js +18 -18
  139. package/dist/Conversations/Flows/index.d.ts +2 -2
  140. package/dist/Conversations/Flows/index.js +3 -3
  141. package/dist/Conversations/Groups/Group.d.ts +23 -23
  142. package/dist/Conversations/Groups/Group.js +6 -6
  143. package/dist/Conversations/Label.d.ts +10 -10
  144. package/dist/Conversations/Label.js +1 -1
  145. package/dist/Conversations/QuickResponse.d.ts +34 -34
  146. package/dist/Conversations/QuickResponse.js +1 -1
  147. package/dist/Conversations/SocialWalls.d.ts +44 -44
  148. package/dist/Conversations/SocialWalls.js +1 -1
  149. package/dist/Conversations/WebHook.d.ts +22 -22
  150. package/dist/Conversations/WebHook.js +1 -1
  151. package/dist/Conversations/index.d.ts +8 -8
  152. package/dist/Conversations/index.js +10 -10
  153. package/dist/Security/Security.d.ts +12 -12
  154. package/dist/Security/Security.js +1 -1
  155. package/dist/Security/index.d.ts +1 -1
  156. package/dist/Security/index.js +1 -1
  157. package/dist/Spaces/index.d.ts +1 -1
  158. package/dist/Spaces/index.js +1 -1
  159. package/dist/Spaces/spaces.d.ts +86 -86
  160. package/dist/Spaces/spaces.js +77 -77
  161. package/dist/Tickets/AccessLevel.d.ts +5 -5
  162. package/dist/Tickets/AccessLevel.js +6 -6
  163. package/dist/Tickets/index.d.ts +1 -1
  164. package/dist/Tickets/index.js +1 -1
  165. package/dist/Users/UserProfile.d.ts +69 -69
  166. package/dist/Users/UserProfile.js +76 -76
  167. package/dist/Users/UserTrii.d.ts +68 -68
  168. package/dist/Users/UserTrii.js +47 -47
  169. package/dist/Users/UserType.d.ts +10 -10
  170. package/dist/Users/UserType.js +11 -11
  171. package/dist/Users/index.d.ts +3 -3
  172. package/dist/Users/index.js +3 -3
  173. package/dist/index.d.ts +12 -12
  174. package/dist/index.js +24 -24
  175. package/package.json +12 -12
@@ -1,49 +1,49 @@
1
- import { ContactField_type } from "./contacts";
2
- export var Segment_Filter_Operator;
3
- (function (Segment_Filter_Operator) {
4
- Segment_Filter_Operator[Segment_Filter_Operator["NULL"] = 0] = "NULL";
5
- Segment_Filter_Operator[Segment_Filter_Operator["LESS_THAN"] = 1] = "LESS_THAN";
6
- Segment_Filter_Operator[Segment_Filter_Operator["LESS_THAN_EQUAL"] = 2] = "LESS_THAN_EQUAL";
7
- Segment_Filter_Operator[Segment_Filter_Operator["EQUAL"] = 3] = "EQUAL";
8
- Segment_Filter_Operator[Segment_Filter_Operator["GREATER_THAN_EQUAL"] = 4] = "GREATER_THAN_EQUAL";
9
- Segment_Filter_Operator[Segment_Filter_Operator["GREATER_THAN"] = 5] = "GREATER_THAN";
10
- Segment_Filter_Operator[Segment_Filter_Operator["START_WITH"] = 6] = "START_WITH";
11
- Segment_Filter_Operator[Segment_Filter_Operator["END_WITH"] = 7] = "END_WITH";
12
- Segment_Filter_Operator[Segment_Filter_Operator["CONTAINS"] = 8] = "CONTAINS";
13
- Segment_Filter_Operator[Segment_Filter_Operator["NOT_CONTAINS"] = 9] = "NOT_CONTAINS";
14
- Segment_Filter_Operator[Segment_Filter_Operator["ANY_VALUE"] = 10] = "ANY_VALUE";
15
- })(Segment_Filter_Operator || (Segment_Filter_Operator = {}));
16
- export const Segment_Filter_Details = [
17
- {
18
- key: "details.name",
19
- type: ContactField_type.TEXT
20
- },
21
- {
22
- key: "details.email",
23
- type: ContactField_type.TEXT
24
- },
25
- ];
26
- export const Segment_Filter_Geography = [
27
- {
28
- key: "geography.country",
29
- type: ContactField_type.TEXT
30
- },
31
- {
32
- key: "details.city",
33
- type: ContactField_type.TEXT
34
- }
35
- ];
36
- export const Segment_Filter_Account = [
37
- {
38
- key: "account.name",
39
- type: ContactField_type.TEXT
40
- },
41
- {
42
- key: "account.email",
43
- type: ContactField_type.TEXT
44
- },
45
- {
46
- key: "account.numberOfEmployees",
47
- type: ContactField_type.NUMBER_INTEGER
48
- }
49
- ];
1
+ import { ContactField_type } from "./contacts";
2
+ export var Segment_Filter_Operator;
3
+ (function (Segment_Filter_Operator) {
4
+ Segment_Filter_Operator[Segment_Filter_Operator["NULL"] = 0] = "NULL";
5
+ Segment_Filter_Operator[Segment_Filter_Operator["LESS_THAN"] = 1] = "LESS_THAN";
6
+ Segment_Filter_Operator[Segment_Filter_Operator["LESS_THAN_EQUAL"] = 2] = "LESS_THAN_EQUAL";
7
+ Segment_Filter_Operator[Segment_Filter_Operator["EQUAL"] = 3] = "EQUAL";
8
+ Segment_Filter_Operator[Segment_Filter_Operator["GREATER_THAN_EQUAL"] = 4] = "GREATER_THAN_EQUAL";
9
+ Segment_Filter_Operator[Segment_Filter_Operator["GREATER_THAN"] = 5] = "GREATER_THAN";
10
+ Segment_Filter_Operator[Segment_Filter_Operator["START_WITH"] = 6] = "START_WITH";
11
+ Segment_Filter_Operator[Segment_Filter_Operator["END_WITH"] = 7] = "END_WITH";
12
+ Segment_Filter_Operator[Segment_Filter_Operator["CONTAINS"] = 8] = "CONTAINS";
13
+ Segment_Filter_Operator[Segment_Filter_Operator["NOT_CONTAINS"] = 9] = "NOT_CONTAINS";
14
+ Segment_Filter_Operator[Segment_Filter_Operator["ANY_VALUE"] = 10] = "ANY_VALUE";
15
+ })(Segment_Filter_Operator || (Segment_Filter_Operator = {}));
16
+ export const Segment_Filter_Details = [
17
+ {
18
+ key: "details.name",
19
+ type: ContactField_type.TEXT
20
+ },
21
+ {
22
+ key: "details.email",
23
+ type: ContactField_type.TEXT
24
+ },
25
+ ];
26
+ export const Segment_Filter_Geography = [
27
+ {
28
+ key: "geography.country",
29
+ type: ContactField_type.TEXT
30
+ },
31
+ {
32
+ key: "details.city",
33
+ type: ContactField_type.TEXT
34
+ }
35
+ ];
36
+ export const Segment_Filter_Account = [
37
+ {
38
+ key: "account.name",
39
+ type: ContactField_type.TEXT
40
+ },
41
+ {
42
+ key: "account.email",
43
+ type: ContactField_type.TEXT
44
+ },
45
+ {
46
+ key: "account.numberOfEmployees",
47
+ type: ContactField_type.NUMBER_INTEGER
48
+ }
49
+ ];
@@ -0,0 +1,33 @@
1
+ import { UserInfo } from "../Users/UserTrii";
2
+ export interface IChat {
3
+ id: string;
4
+ spaceId: string;
5
+ ownerId: string;
6
+ type: ChatType;
7
+ chatName: string;
8
+ to: string;
9
+ members: IChatMemeber[];
10
+ memberCount: number;
11
+ chatImage: string;
12
+ lastMessage: string;
13
+ newMessagesCount: number;
14
+ archived: boolean;
15
+ createdAt: Date;
16
+ updatedAt: Date;
17
+ }
18
+ export interface IChatMemeber {
19
+ joinTimeStamp: Date;
20
+ isAdmin: boolean;
21
+ userId: string;
22
+ user: UserInfo;
23
+ }
24
+ export declare enum ChatType {
25
+ /**messages between two users */
26
+ DIRECT = 1,
27
+ /**messages between multiple users */
28
+ GROUP = 2,
29
+ /**Messages to discuss a conversation */
30
+ DISCUSS_CONVERSATION = 11,
31
+ /**Messages to discuss a ticket */
32
+ DISCUSS_TICKET = 12
33
+ }
@@ -0,0 +1,11 @@
1
+ export var ChatType;
2
+ (function (ChatType) {
3
+ /**messages between two users */
4
+ ChatType[ChatType["DIRECT"] = 1] = "DIRECT";
5
+ /**messages between multiple users */
6
+ ChatType[ChatType["GROUP"] = 2] = "GROUP";
7
+ /**Messages to discuss a conversation */
8
+ ChatType[ChatType["DISCUSS_CONVERSATION"] = 11] = "DISCUSS_CONVERSATION";
9
+ /**Messages to discuss a ticket */
10
+ ChatType[ChatType["DISCUSS_TICKET"] = 12] = "DISCUSS_TICKET";
11
+ })(ChatType || (ChatType = {}));
@@ -1,75 +1,75 @@
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
- type: ChatType;
9
- ownerId: string;
10
- chatName: string;
11
- chatImage: string;
12
- chatMembers: IChatMemeber[];
13
- chatMembersCount: number;
14
- contactInfo?: IContactInfo;
15
- direction: ConversationDirection;
16
- remoteAddress: string;
17
- remoteAddressId: string;
18
- channelInfo: Channels.IChannel;
19
- lastMessage: string;
20
- newMessagesCount: number;
21
- labels: ILabel[];
22
- pinned: boolean;
23
- transferBy?: string;
24
- transferTo?: ConversationAssigned;
25
- expired: boolean;
26
- expiredAssignedTo: ConversationAssigned;
27
- status: ConversationSatus;
28
- assignedTo?: ConversationAssigned;
29
- participants: UserInfo[];
30
- archived: boolean;
31
- botStatus: ConversationBotStatus;
32
- botId?: string;
33
- finalizedAt: Date;
34
- createdAt: Date;
35
- updatedAt: Date;
36
- }
37
- export declare enum ConversationBotStatus {
38
- NONE = 0,
39
- WAITING = 1,
40
- PROCESSING = 2,
41
- FINALIZED = 4,
42
- CANCELED = 5
43
- }
44
- export declare enum ChatType {
45
- /**Conversation with a external channel/contact */
46
- EXTERNAL = 0,
47
- /**messages between two users */
48
- DIRECT = 1,
49
- /**messages between multiple users */
50
- GROUP = 2,
51
- /**Messages to discuss a conversation */
52
- DISCUSS_CONVERSATION = 11,
53
- /**Messages to discuss a ticket */
54
- DISCUSS_TICKET = 12
55
- }
56
- export interface IChatMemeber {
57
- joinTimeStamp: Date;
58
- isAdmin: boolean;
59
- userId: string;
60
- user: UserInfo;
61
- }
62
- export declare class ConversationAssigned {
63
- groupInfo?: GroupInfo;
64
- userInfo?: UserInfo;
65
- userIds?: string[];
66
- }
67
- export declare enum ConversationDirection {
68
- INBOUND = 1,
69
- OUTBOUND = 2
70
- }
71
- export declare enum ConversationSatus {
72
- NEW = 1,
73
- ACTIVE = 2,
74
- FINALIZED = 3
75
- }
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
+ type: ChatType;
9
+ ownerId: string;
10
+ chatName: string;
11
+ chatImage: string;
12
+ chatMembers: IChatMemeber[];
13
+ chatMembersCount: number;
14
+ contactInfo?: IContactInfo;
15
+ direction: ConversationDirection;
16
+ remoteAddress: string;
17
+ remoteAddressId: string;
18
+ channelInfo: Channels.IChannel;
19
+ lastMessage: string;
20
+ newMessagesCount: number;
21
+ labels: ILabel[];
22
+ pinned: boolean;
23
+ transferBy?: string;
24
+ transferTo?: ConversationAssigned;
25
+ expired: boolean;
26
+ expiredAssignedTo: ConversationAssigned;
27
+ status: ConversationSatus;
28
+ assignedTo?: ConversationAssigned;
29
+ participants: UserInfo[];
30
+ archived: boolean;
31
+ botStatus: ConversationBotStatus;
32
+ botId?: string;
33
+ finalizedAt: Date;
34
+ createdAt: Date;
35
+ updatedAt: Date;
36
+ }
37
+ export declare enum ConversationBotStatus {
38
+ NONE = 0,
39
+ WAITING = 1,
40
+ PROCESSING = 2,
41
+ FINALIZED = 4,
42
+ CANCELED = 5
43
+ }
44
+ export declare enum ChatType {
45
+ /**Conversation with a external channel/contact */
46
+ EXTERNAL = 0,
47
+ /**messages between two users */
48
+ DIRECT = 1,
49
+ /**messages between multiple users */
50
+ GROUP = 2,
51
+ /**Messages to discuss a conversation */
52
+ DISCUSS_CONVERSATION = 11,
53
+ /**Messages to discuss a ticket */
54
+ DISCUSS_TICKET = 12
55
+ }
56
+ export interface IChatMemeber {
57
+ joinTimeStamp: Date;
58
+ isAdmin: boolean;
59
+ userId: string;
60
+ user: UserInfo;
61
+ }
62
+ export declare class ConversationAssigned {
63
+ groupInfo?: GroupInfo;
64
+ userInfo?: UserInfo;
65
+ userIds?: string[];
66
+ }
67
+ export declare enum ConversationDirection {
68
+ INBOUND = 1,
69
+ OUTBOUND = 2
70
+ }
71
+ export declare enum ConversationSatus {
72
+ NEW = 1,
73
+ ACTIVE = 2,
74
+ FINALIZED = 3
75
+ }
@@ -1,34 +1,34 @@
1
- export var ConversationBotStatus;
2
- (function (ConversationBotStatus) {
3
- ConversationBotStatus[ConversationBotStatus["NONE"] = 0] = "NONE";
4
- ConversationBotStatus[ConversationBotStatus["WAITING"] = 1] = "WAITING";
5
- ConversationBotStatus[ConversationBotStatus["PROCESSING"] = 2] = "PROCESSING";
6
- ConversationBotStatus[ConversationBotStatus["FINALIZED"] = 4] = "FINALIZED";
7
- ConversationBotStatus[ConversationBotStatus["CANCELED"] = 5] = "CANCELED";
8
- })(ConversationBotStatus || (ConversationBotStatus = {}));
9
- export var ChatType;
10
- (function (ChatType) {
11
- /**Conversation with a external channel/contact */
12
- ChatType[ChatType["EXTERNAL"] = 0] = "EXTERNAL";
13
- /**messages between two users */
14
- ChatType[ChatType["DIRECT"] = 1] = "DIRECT";
15
- /**messages between multiple users */
16
- ChatType[ChatType["GROUP"] = 2] = "GROUP";
17
- /**Messages to discuss a conversation */
18
- ChatType[ChatType["DISCUSS_CONVERSATION"] = 11] = "DISCUSS_CONVERSATION";
19
- /**Messages to discuss a ticket */
20
- ChatType[ChatType["DISCUSS_TICKET"] = 12] = "DISCUSS_TICKET";
21
- })(ChatType || (ChatType = {}));
22
- export class ConversationAssigned {
23
- }
24
- export var ConversationDirection;
25
- (function (ConversationDirection) {
26
- ConversationDirection[ConversationDirection["INBOUND"] = 1] = "INBOUND";
27
- ConversationDirection[ConversationDirection["OUTBOUND"] = 2] = "OUTBOUND";
28
- })(ConversationDirection || (ConversationDirection = {}));
29
- export var ConversationSatus;
30
- (function (ConversationSatus) {
31
- ConversationSatus[ConversationSatus["NEW"] = 1] = "NEW";
32
- ConversationSatus[ConversationSatus["ACTIVE"] = 2] = "ACTIVE";
33
- ConversationSatus[ConversationSatus["FINALIZED"] = 3] = "FINALIZED";
34
- })(ConversationSatus || (ConversationSatus = {}));
1
+ export var ConversationBotStatus;
2
+ (function (ConversationBotStatus) {
3
+ ConversationBotStatus[ConversationBotStatus["NONE"] = 0] = "NONE";
4
+ ConversationBotStatus[ConversationBotStatus["WAITING"] = 1] = "WAITING";
5
+ ConversationBotStatus[ConversationBotStatus["PROCESSING"] = 2] = "PROCESSING";
6
+ ConversationBotStatus[ConversationBotStatus["FINALIZED"] = 4] = "FINALIZED";
7
+ ConversationBotStatus[ConversationBotStatus["CANCELED"] = 5] = "CANCELED";
8
+ })(ConversationBotStatus || (ConversationBotStatus = {}));
9
+ export var ChatType;
10
+ (function (ChatType) {
11
+ /**Conversation with a external channel/contact */
12
+ ChatType[ChatType["EXTERNAL"] = 0] = "EXTERNAL";
13
+ /**messages between two users */
14
+ ChatType[ChatType["DIRECT"] = 1] = "DIRECT";
15
+ /**messages between multiple users */
16
+ ChatType[ChatType["GROUP"] = 2] = "GROUP";
17
+ /**Messages to discuss a conversation */
18
+ ChatType[ChatType["DISCUSS_CONVERSATION"] = 11] = "DISCUSS_CONVERSATION";
19
+ /**Messages to discuss a ticket */
20
+ ChatType[ChatType["DISCUSS_TICKET"] = 12] = "DISCUSS_TICKET";
21
+ })(ChatType || (ChatType = {}));
22
+ export class ConversationAssigned {
23
+ }
24
+ export var ConversationDirection;
25
+ (function (ConversationDirection) {
26
+ ConversationDirection[ConversationDirection["INBOUND"] = 1] = "INBOUND";
27
+ ConversationDirection[ConversationDirection["OUTBOUND"] = 2] = "OUTBOUND";
28
+ })(ConversationDirection || (ConversationDirection = {}));
29
+ export var ConversationSatus;
30
+ (function (ConversationSatus) {
31
+ ConversationSatus[ConversationSatus["NEW"] = 1] = "NEW";
32
+ ConversationSatus[ConversationSatus["ACTIVE"] = 2] = "ACTIVE";
33
+ ConversationSatus[ConversationSatus["FINALIZED"] = 3] = "FINALIZED";
34
+ })(ConversationSatus || (ConversationSatus = {}));
@@ -1,11 +1,11 @@
1
- import { GroupInfo } from "./Groups/Group";
2
- interface IEnding {
3
- id?: string | null;
4
- spaceId?: string | null;
5
- name?: string | null;
6
- groups: GroupInfo[];
7
- createdAt?: string | null;
8
- updatedAt?: string | null;
9
- deletedAt?: string | null;
10
- }
11
- export { IEnding };
1
+ import { GroupInfo } from "./Groups/Group";
2
+ interface IEnding {
3
+ id?: string | null;
4
+ spaceId?: string | null;
5
+ name?: string | null;
6
+ groups: GroupInfo[];
7
+ createdAt?: string | null;
8
+ updatedAt?: string | null;
9
+ deletedAt?: string | null;
10
+ }
11
+ export { IEnding };
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1,104 +1,104 @@
1
- import { NodeApi } from "./Nodes/NodeApi";
2
- import { NodeConditional } from "./Nodes/NodeConditional";
3
- import { NodeContactSearch } from "./Nodes/NodeContactSearch";
4
- import { NodeContactUpdate } from "./Nodes/NodeContactUpdate";
5
- import { NodeConversationAssignTo } from "./Nodes/NodeConversationAssignTo";
6
- import { NodeConversationFinalize } from "./Nodes/NodeConversationFinalize";
7
- import { NodeConversationUpdate } from "./Nodes/NodeConversationUpdate";
8
- import { NodeFillForm } from "./Nodes/NodeFillForm";
9
- import { NodeFillTicket } from "./Nodes/NodeFillTicket";
10
- import { NodeMsgText } from "./Nodes/NodeMsgText";
11
- import { NodeMsgWaitResponse } from "./Nodes/NodeMsgWaitResponse";
12
- import { NodeRedirect } from "./Nodes/NodeRedirect";
13
- import { NodeSendEmail } from "./Nodes/NodeSendEmail";
14
- import { NodeSqlQuery } from "./Nodes/NodeSqlQuery";
15
- import { NodeStart } from "./Nodes/NodeStart";
16
- import { NodeTimeScheduleControl } from "./Nodes/NodeTimeScheduleControl";
17
- import { NodeTimeTimer } from "./Nodes/NodeTimeTimer";
18
- import { NodeTimeWaitUntil } from "./Nodes/NodeTimeWaitUntil";
19
- interface IFlow {
20
- id?: string | null;
21
- tenantId?: string | null;
22
- name?: string | null;
23
- description?: string | null;
24
- nodes?: Node[] | null;
25
- edges?: Edge[] | null;
26
- createdAt?: string | null;
27
- updatedAt?: string | null;
28
- deletedAt?: string | null;
29
- }
30
- declare enum NodeType {
31
- START = 11,
32
- MSG_TEXT = 21,
33
- MSG_WAIT_RESPONSE = 22,
34
- SQL_QUERY = 31,
35
- API = 32,
36
- SEND_EMAIL = 33,
37
- FILL_FORM = 41,
38
- FILL_TICKET = 42,
39
- CONTACT_SEARCH = 51,
40
- CONTACT_UPDATE = 52,
41
- CONVERSATION_ASSIGN_TO = 61,
42
- CONVERSATION_UPDATE = 62,
43
- CONVERSATION_FINALIZE = 63,
44
- TIME_SCHEDULE_CONTROL = 81,
45
- TIME_TIMER = 82,
46
- TIME_WAIT_UNTIL = 83,
47
- CONDITIONAL = 71,
48
- REDIRECT = 72
49
- }
50
- declare class NodePosition {
51
- x: number;
52
- y: number;
53
- }
54
- declare class NodeData {
55
- start?: NodeStart | null;
56
- msgText?: NodeMsgText | null;
57
- msgWaitResponse?: NodeMsgWaitResponse | null;
58
- sqlQuery?: NodeSqlQuery | null;
59
- api?: NodeApi | null;
60
- sendEmail?: NodeSendEmail | null;
61
- fillForm?: NodeFillForm | null;
62
- fillTicket?: NodeFillTicket | null;
63
- contactSearch?: NodeContactSearch | null;
64
- contactUpdate?: NodeContactUpdate | null;
65
- conversationAssignTo?: NodeConversationAssignTo | null;
66
- conversationUpdate?: NodeConversationUpdate | null;
67
- conversationFinalize?: NodeConversationFinalize | null;
68
- timeScheduleControl?: NodeTimeScheduleControl | null;
69
- timeTimer?: NodeTimeTimer | null;
70
- timeWaitUntil?: NodeTimeWaitUntil | null;
71
- conditional?: NodeConditional | null;
72
- redirect?: NodeRedirect | null;
73
- }
74
- declare class Node {
75
- id: string;
76
- type: NodeType;
77
- position: NodePosition;
78
- data: NodeData;
79
- width?: number | null;
80
- height?: number | null;
81
- selected?: boolean | null;
82
- positionAbsolute?: NodePosition | null;
83
- dragging?: boolean | null;
84
- }
85
- declare class Edge {
86
- id: string | null;
87
- source: string | null;
88
- sourceHandle?: string | null;
89
- target: string | null;
90
- targetHandle?: string | null;
91
- }
92
- declare class EdgeMarkerEnd {
93
- type?: string | '';
94
- }
95
- declare class FlowInfo {
96
- id: string;
97
- name: string;
98
- nodes: NodeInfo[];
99
- }
100
- declare class NodeInfo {
101
- id: string;
102
- name: string;
103
- }
104
- export { IFlow, NodeType, NodePosition, NodeData, Node, Edge, EdgeMarkerEnd, FlowInfo, NodeInfo };
1
+ import { NodeApi } from "./Nodes/NodeApi";
2
+ import { NodeConditional } from "./Nodes/NodeConditional";
3
+ import { NodeContactSearch } from "./Nodes/NodeContactSearch";
4
+ import { NodeContactUpdate } from "./Nodes/NodeContactUpdate";
5
+ import { NodeConversationAssignTo } from "./Nodes/NodeConversationAssignTo";
6
+ import { NodeConversationFinalize } from "./Nodes/NodeConversationFinalize";
7
+ import { NodeConversationUpdate } from "./Nodes/NodeConversationUpdate";
8
+ import { NodeFillForm } from "./Nodes/NodeFillForm";
9
+ import { NodeFillTicket } from "./Nodes/NodeFillTicket";
10
+ import { NodeMsgText } from "./Nodes/NodeMsgText";
11
+ import { NodeMsgWaitResponse } from "./Nodes/NodeMsgWaitResponse";
12
+ import { NodeRedirect } from "./Nodes/NodeRedirect";
13
+ import { NodeSendEmail } from "./Nodes/NodeSendEmail";
14
+ import { NodeSqlQuery } from "./Nodes/NodeSqlQuery";
15
+ import { NodeStart } from "./Nodes/NodeStart";
16
+ import { NodeTimeScheduleControl } from "./Nodes/NodeTimeScheduleControl";
17
+ import { NodeTimeTimer } from "./Nodes/NodeTimeTimer";
18
+ import { NodeTimeWaitUntil } from "./Nodes/NodeTimeWaitUntil";
19
+ interface IFlow {
20
+ id?: string | null;
21
+ tenantId?: string | null;
22
+ name?: string | null;
23
+ description?: string | null;
24
+ nodes?: Node[] | null;
25
+ edges?: Edge[] | null;
26
+ createdAt?: string | null;
27
+ updatedAt?: string | null;
28
+ deletedAt?: string | null;
29
+ }
30
+ declare enum NodeType {
31
+ START = 11,
32
+ MSG_TEXT = 21,
33
+ MSG_WAIT_RESPONSE = 22,
34
+ SQL_QUERY = 31,
35
+ API = 32,
36
+ SEND_EMAIL = 33,
37
+ FILL_FORM = 41,
38
+ FILL_TICKET = 42,
39
+ CONTACT_SEARCH = 51,
40
+ CONTACT_UPDATE = 52,
41
+ CONVERSATION_ASSIGN_TO = 61,
42
+ CONVERSATION_UPDATE = 62,
43
+ CONVERSATION_FINALIZE = 63,
44
+ TIME_SCHEDULE_CONTROL = 81,
45
+ TIME_TIMER = 82,
46
+ TIME_WAIT_UNTIL = 83,
47
+ CONDITIONAL = 71,
48
+ REDIRECT = 72
49
+ }
50
+ declare class NodePosition {
51
+ x: number;
52
+ y: number;
53
+ }
54
+ declare class NodeData {
55
+ start?: NodeStart | null;
56
+ msgText?: NodeMsgText | null;
57
+ msgWaitResponse?: NodeMsgWaitResponse | null;
58
+ sqlQuery?: NodeSqlQuery | null;
59
+ api?: NodeApi | null;
60
+ sendEmail?: NodeSendEmail | null;
61
+ fillForm?: NodeFillForm | null;
62
+ fillTicket?: NodeFillTicket | null;
63
+ contactSearch?: NodeContactSearch | null;
64
+ contactUpdate?: NodeContactUpdate | null;
65
+ conversationAssignTo?: NodeConversationAssignTo | null;
66
+ conversationUpdate?: NodeConversationUpdate | null;
67
+ conversationFinalize?: NodeConversationFinalize | null;
68
+ timeScheduleControl?: NodeTimeScheduleControl | null;
69
+ timeTimer?: NodeTimeTimer | null;
70
+ timeWaitUntil?: NodeTimeWaitUntil | null;
71
+ conditional?: NodeConditional | null;
72
+ redirect?: NodeRedirect | null;
73
+ }
74
+ declare class Node {
75
+ id: string;
76
+ type: NodeType;
77
+ position: NodePosition;
78
+ data: NodeData;
79
+ width?: number | null;
80
+ height?: number | null;
81
+ selected?: boolean | null;
82
+ positionAbsolute?: NodePosition | null;
83
+ dragging?: boolean | null;
84
+ }
85
+ declare class Edge {
86
+ id: string | null;
87
+ source: string | null;
88
+ sourceHandle?: string | null;
89
+ target: string | null;
90
+ targetHandle?: string | null;
91
+ }
92
+ declare class EdgeMarkerEnd {
93
+ type?: string | '';
94
+ }
95
+ declare class FlowInfo {
96
+ id: string;
97
+ name: string;
98
+ nodes: NodeInfo[];
99
+ }
100
+ declare class NodeInfo {
101
+ id: string;
102
+ name: string;
103
+ }
104
+ export { IFlow, NodeType, NodePosition, NodeData, Node, Edge, EdgeMarkerEnd, FlowInfo, NodeInfo };