@trii/types 2.10.254 → 2.10.255

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 +33 -33
  58. package/dist/Common/Channels/WhatsApp.js +9 -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 +306 -305
  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/Conversation.d.ts +75 -66
  94. package/dist/Conversations/Conversation.js +34 -26
  95. package/dist/Conversations/Ending.d.ts +11 -11
  96. package/dist/Conversations/Ending.js +1 -1
  97. package/dist/Conversations/Flows/Flow.d.ts +104 -104
  98. package/dist/Conversations/Flows/Flow.js +36 -36
  99. package/dist/Conversations/Flows/Nodes/NodeApi.d.ts +20 -20
  100. package/dist/Conversations/Flows/Nodes/NodeApi.js +2 -2
  101. package/dist/Conversations/Flows/Nodes/NodeConditional.d.ts +21 -21
  102. package/dist/Conversations/Flows/Nodes/NodeConditional.js +16 -16
  103. package/dist/Conversations/Flows/Nodes/NodeContactSearch.d.ts +8 -8
  104. package/dist/Conversations/Flows/Nodes/NodeContactSearch.js +2 -2
  105. package/dist/Conversations/Flows/Nodes/NodeContactUpdate.d.ts +12 -12
  106. package/dist/Conversations/Flows/Nodes/NodeContactUpdate.js +7 -7
  107. package/dist/Conversations/Flows/Nodes/NodeConversationAssignTo.d.ts +6 -6
  108. package/dist/Conversations/Flows/Nodes/NodeConversationAssignTo.js +2 -2
  109. package/dist/Conversations/Flows/Nodes/NodeConversationFinalize.d.ts +4 -4
  110. package/dist/Conversations/Flows/Nodes/NodeConversationFinalize.js +2 -2
  111. package/dist/Conversations/Flows/Nodes/NodeConversationUpdate.d.ts +15 -15
  112. package/dist/Conversations/Flows/Nodes/NodeConversationUpdate.js +11 -11
  113. package/dist/Conversations/Flows/Nodes/NodeFillForm.d.ts +12 -12
  114. package/dist/Conversations/Flows/Nodes/NodeFillForm.js +4 -4
  115. package/dist/Conversations/Flows/Nodes/NodeFillTicket.d.ts +22 -22
  116. package/dist/Conversations/Flows/Nodes/NodeFillTicket.js +9 -9
  117. package/dist/Conversations/Flows/Nodes/NodeMsgText.d.ts +40 -40
  118. package/dist/Conversations/Flows/Nodes/NodeMsgText.js +25 -25
  119. package/dist/Conversations/Flows/Nodes/NodeMsgWaitResponse.d.ts +44 -44
  120. package/dist/Conversations/Flows/Nodes/NodeMsgWaitResponse.js +31 -31
  121. package/dist/Conversations/Flows/Nodes/NodeRedirect.d.ts +7 -7
  122. package/dist/Conversations/Flows/Nodes/NodeRedirect.js +2 -2
  123. package/dist/Conversations/Flows/Nodes/NodeSendEmail.d.ts +9 -9
  124. package/dist/Conversations/Flows/Nodes/NodeSendEmail.js +2 -2
  125. package/dist/Conversations/Flows/Nodes/NodeSqlQuery.d.ts +14 -14
  126. package/dist/Conversations/Flows/Nodes/NodeSqlQuery.js +8 -8
  127. package/dist/Conversations/Flows/Nodes/NodeStart.d.ts +32 -32
  128. package/dist/Conversations/Flows/Nodes/NodeStart.js +184 -184
  129. package/dist/Conversations/Flows/Nodes/NodeTimeScheduleControl.d.ts +6 -6
  130. package/dist/Conversations/Flows/Nodes/NodeTimeScheduleControl.js +2 -2
  131. package/dist/Conversations/Flows/Nodes/NodeTimeTimer.d.ts +9 -9
  132. package/dist/Conversations/Flows/Nodes/NodeTimeTimer.js +2 -2
  133. package/dist/Conversations/Flows/Nodes/NodeTimeWaitUntil.d.ts +6 -6
  134. package/dist/Conversations/Flows/Nodes/NodeTimeWaitUntil.js +2 -2
  135. package/dist/Conversations/Flows/Nodes/index.d.ts +18 -18
  136. package/dist/Conversations/Flows/Nodes/index.js +18 -18
  137. package/dist/Conversations/Flows/index.d.ts +2 -2
  138. package/dist/Conversations/Flows/index.js +3 -3
  139. package/dist/Conversations/Groups/Group.d.ts +23 -23
  140. package/dist/Conversations/Groups/Group.js +6 -6
  141. package/dist/Conversations/Label.d.ts +10 -10
  142. package/dist/Conversations/Label.js +1 -1
  143. package/dist/Conversations/QuickResponse.d.ts +34 -34
  144. package/dist/Conversations/QuickResponse.js +1 -1
  145. package/dist/Conversations/SocialWalls.d.ts +44 -44
  146. package/dist/Conversations/SocialWalls.js +1 -1
  147. package/dist/Conversations/WebHook.d.ts +22 -22
  148. package/dist/Conversations/WebHook.js +1 -1
  149. package/dist/Conversations/index.d.ts +8 -8
  150. package/dist/Conversations/index.js +10 -10
  151. package/dist/Security/Security.d.ts +12 -12
  152. package/dist/Security/Security.js +1 -1
  153. package/dist/Security/index.d.ts +1 -1
  154. package/dist/Security/index.js +1 -1
  155. package/dist/Spaces/index.d.ts +1 -1
  156. package/dist/Spaces/index.js +1 -1
  157. package/dist/Spaces/spaces.d.ts +86 -86
  158. package/dist/Spaces/spaces.js +77 -77
  159. package/dist/Tickets/AccessLevel.d.ts +5 -5
  160. package/dist/Tickets/AccessLevel.js +6 -6
  161. package/dist/Tickets/index.d.ts +1 -1
  162. package/dist/Tickets/index.js +1 -1
  163. package/dist/Users/UserProfile.d.ts +69 -69
  164. package/dist/Users/UserProfile.js +76 -76
  165. package/dist/Users/UserTrii.d.ts +68 -68
  166. package/dist/Users/UserTrii.js +47 -47
  167. package/dist/Users/UserType.d.ts +10 -10
  168. package/dist/Users/UserType.js +11 -11
  169. package/dist/Users/index.d.ts +3 -3
  170. package/dist/Users/index.js +3 -3
  171. package/dist/index.d.ts +12 -12
  172. package/dist/index.js +24 -24
  173. package/package.json +12 -12
  174. package/dist/Conversations/Chat.d.ts +0 -33
  175. package/dist/Conversations/Chat.js +0 -11
@@ -1,47 +1,47 @@
1
- import UserType from './UserType';
2
- import { UserProfile } from './UserProfile';
3
- export class UserInfo {
4
- }
5
- export var UserStatus;
6
- (function (UserStatus) {
7
- UserStatus[UserStatus["OFFLINE"] = 0] = "OFFLINE";
8
- UserStatus[UserStatus["ONLINE"] = 1] = "ONLINE";
9
- UserStatus[UserStatus["AWAY"] = 2] = "AWAY";
10
- UserStatus[UserStatus["BUSY"] = 3] = "BUSY";
11
- })(UserStatus || (UserStatus = {}));
12
- export class UserTrii {
13
- constructor(userJson) {
14
- this.uid = userJson.uid ? userJson.uid : '';
15
- this.email = userJson.email ? userJson.email : '';
16
- this.username = userJson.username ? userJson.username : '';
17
- this.userType = userJson.userType ? userJson.userType : UserType.NULL;
18
- this.verifiedAccount = userJson.verifiedAccount ? userJson.verifiedAccount : false;
19
- this.firstname = userJson.firstname ? userJson.firstname : '';
20
- this.lastname = userJson.lastname ? userJson.lastname : '';
21
- this.display_name = userJson.display_name ? userJson.display_name : '';
22
- this.imageUrl = userJson.imageUrl ? userJson.imageUrl : '';
23
- this.birthDate = userJson.birthDate ? userJson.birthDate : undefined;
24
- this.phone = userJson.phone ? userJson.phone : '';
25
- this.role = userJson.role ? userJson.role : '';
26
- this.roleID = userJson.roleID ? userJson.roleID : '';
27
- this.profile = new UserProfile(userJson.profile);
28
- this.profileID = userJson.profileID ? userJson.profileID : '';
29
- this.street = userJson.street ? userJson.street : '';
30
- this.city = userJson.city ? userJson.city : '';
31
- this.state = userJson.state ? userJson.state : '';
32
- this.zipcode = userJson.zipcode ? userJson.zipcode : '';
33
- this.country = userJson.country ? userJson.country : '';
34
- this.regCon_timeZone = userJson.regCon_timeZone ? userJson.regCon_timeZone : '';
35
- this.regCon_language = userJson.regCon_language ? userJson.regCon_language : '';
36
- this.regCon_dateFormat = userJson.regCon_dateFormat ? userJson.regCon_dateFormat : '';
37
- this.regCon_timeFormat = userJson.regCon_timeFormat ? userJson.regCon_timeFormat : '';
38
- this.regCon_numberFormat = userJson.regCon_numberFormat ? userJson.regCon_numberFormat : '';
39
- this.regCon_country = userJson.regCon_country ? userJson.regCon_country : '';
40
- this.nameFormat = userJson.nameFormat ? userJson.nameFormat : '';
41
- this.theme = userJson.theme ? userJson.theme : '';
42
- this.socialFacebookID = userJson.socialFacebookID ? userJson.socialFacebookID : '';
43
- this.socialInstagramID = userJson.socialInstagramID ? userJson.socialInstagramID : '';
44
- this.socialLinkedinID = userJson.socialLinkedinID ? userJson.socialLinkedinID : '';
45
- this.socialTwitterID = userJson.socialTwitterID ? userJson.socialTwitterID : '';
46
- }
47
- }
1
+ import UserType from './UserType';
2
+ import { UserProfile } from './UserProfile';
3
+ export class UserInfo {
4
+ }
5
+ export var UserStatus;
6
+ (function (UserStatus) {
7
+ UserStatus[UserStatus["OFFLINE"] = 0] = "OFFLINE";
8
+ UserStatus[UserStatus["ONLINE"] = 1] = "ONLINE";
9
+ UserStatus[UserStatus["AWAY"] = 2] = "AWAY";
10
+ UserStatus[UserStatus["BUSY"] = 3] = "BUSY";
11
+ })(UserStatus || (UserStatus = {}));
12
+ export class UserTrii {
13
+ constructor(userJson) {
14
+ this.uid = userJson.uid ? userJson.uid : '';
15
+ this.email = userJson.email ? userJson.email : '';
16
+ this.username = userJson.username ? userJson.username : '';
17
+ this.userType = userJson.userType ? userJson.userType : UserType.NULL;
18
+ this.verifiedAccount = userJson.verifiedAccount ? userJson.verifiedAccount : false;
19
+ this.firstname = userJson.firstname ? userJson.firstname : '';
20
+ this.lastname = userJson.lastname ? userJson.lastname : '';
21
+ this.display_name = userJson.display_name ? userJson.display_name : '';
22
+ this.imageUrl = userJson.imageUrl ? userJson.imageUrl : '';
23
+ this.birthDate = userJson.birthDate ? userJson.birthDate : undefined;
24
+ this.phone = userJson.phone ? userJson.phone : '';
25
+ this.role = userJson.role ? userJson.role : '';
26
+ this.roleID = userJson.roleID ? userJson.roleID : '';
27
+ this.profile = new UserProfile(userJson.profile);
28
+ this.profileID = userJson.profileID ? userJson.profileID : '';
29
+ this.street = userJson.street ? userJson.street : '';
30
+ this.city = userJson.city ? userJson.city : '';
31
+ this.state = userJson.state ? userJson.state : '';
32
+ this.zipcode = userJson.zipcode ? userJson.zipcode : '';
33
+ this.country = userJson.country ? userJson.country : '';
34
+ this.regCon_timeZone = userJson.regCon_timeZone ? userJson.regCon_timeZone : '';
35
+ this.regCon_language = userJson.regCon_language ? userJson.regCon_language : '';
36
+ this.regCon_dateFormat = userJson.regCon_dateFormat ? userJson.regCon_dateFormat : '';
37
+ this.regCon_timeFormat = userJson.regCon_timeFormat ? userJson.regCon_timeFormat : '';
38
+ this.regCon_numberFormat = userJson.regCon_numberFormat ? userJson.regCon_numberFormat : '';
39
+ this.regCon_country = userJson.regCon_country ? userJson.regCon_country : '';
40
+ this.nameFormat = userJson.nameFormat ? userJson.nameFormat : '';
41
+ this.theme = userJson.theme ? userJson.theme : '';
42
+ this.socialFacebookID = userJson.socialFacebookID ? userJson.socialFacebookID : '';
43
+ this.socialInstagramID = userJson.socialInstagramID ? userJson.socialInstagramID : '';
44
+ this.socialLinkedinID = userJson.socialLinkedinID ? userJson.socialLinkedinID : '';
45
+ this.socialTwitterID = userJson.socialTwitterID ? userJson.socialTwitterID : '';
46
+ }
47
+ }
@@ -1,10 +1,10 @@
1
- declare enum UserType {
2
- NULL = 0,
3
- OWNER = 10,
4
- CO_OWNER = 11,
5
- ADMIN = 20,
6
- AGENT = 30,
7
- EXTERNAL = 40,
8
- GUEST = 50
9
- }
10
- export default UserType;
1
+ declare enum UserType {
2
+ NULL = 0,
3
+ OWNER = 10,
4
+ CO_OWNER = 11,
5
+ ADMIN = 20,
6
+ AGENT = 30,
7
+ EXTERNAL = 40,
8
+ GUEST = 50
9
+ }
10
+ export default UserType;
@@ -1,11 +1,11 @@
1
- var UserType;
2
- (function (UserType) {
3
- UserType[UserType["NULL"] = 0] = "NULL";
4
- UserType[UserType["OWNER"] = 10] = "OWNER";
5
- UserType[UserType["CO_OWNER"] = 11] = "CO_OWNER";
6
- UserType[UserType["ADMIN"] = 20] = "ADMIN";
7
- UserType[UserType["AGENT"] = 30] = "AGENT";
8
- UserType[UserType["EXTERNAL"] = 40] = "EXTERNAL";
9
- UserType[UserType["GUEST"] = 50] = "GUEST";
10
- })(UserType || (UserType = {}));
11
- export default UserType;
1
+ var UserType;
2
+ (function (UserType) {
3
+ UserType[UserType["NULL"] = 0] = "NULL";
4
+ UserType[UserType["OWNER"] = 10] = "OWNER";
5
+ UserType[UserType["CO_OWNER"] = 11] = "CO_OWNER";
6
+ UserType[UserType["ADMIN"] = 20] = "ADMIN";
7
+ UserType[UserType["AGENT"] = 30] = "AGENT";
8
+ UserType[UserType["EXTERNAL"] = 40] = "EXTERNAL";
9
+ UserType[UserType["GUEST"] = 50] = "GUEST";
10
+ })(UserType || (UserType = {}));
11
+ export default UserType;
@@ -1,3 +1,3 @@
1
- export * from './UserType';
2
- export * from './UserTrii';
3
- export * from './UserProfile';
1
+ export * from './UserType';
2
+ export * from './UserTrii';
3
+ export * from './UserProfile';
@@ -1,3 +1,3 @@
1
- export * from './UserType';
2
- export * from './UserTrii';
3
- export * from './UserProfile';
1
+ export * from './UserType';
2
+ export * from './UserTrii';
3
+ export * from './UserProfile';
package/dist/index.d.ts CHANGED
@@ -1,12 +1,12 @@
1
- export * as Accounts from './Accounts/index';
2
- export * as AuditLogs from './AuditLogs/index';
3
- export * as Common from './Common/index';
4
- export * as Contacts from './Contacts/index';
5
- export * as Calendar from './Calendar/index';
6
- export * as Conversations from './Conversations/index';
7
- export * as Security from './Security/index';
8
- export * as Spaces from './Spaces/index';
9
- export * as Tickets from './Tickets/index';
10
- export * as Users from './Users/index';
11
- export * as ApiResponses from './ApiResponses/index';
12
- export * as EventsQueue from './Common/EventsQueue/index';
1
+ export * as Accounts from './Accounts/index';
2
+ export * as AuditLogs from './AuditLogs/index';
3
+ export * as Common from './Common/index';
4
+ export * as Contacts from './Contacts/index';
5
+ export * as Calendar from './Calendar/index';
6
+ export * as Conversations from './Conversations/index';
7
+ export * as Security from './Security/index';
8
+ export * as Spaces from './Spaces/index';
9
+ export * as Tickets from './Tickets/index';
10
+ export * as Users from './Users/index';
11
+ export * as ApiResponses from './ApiResponses/index';
12
+ export * as EventsQueue from './Common/EventsQueue/index';
package/dist/index.js CHANGED
@@ -1,24 +1,24 @@
1
- import * as Accounts_1 from './Accounts/index';
2
- export { Accounts_1 as Accounts };
3
- import * as AuditLogs_1 from './AuditLogs/index';
4
- export { AuditLogs_1 as AuditLogs };
5
- import * as Common_1 from './Common/index';
6
- export { Common_1 as Common };
7
- import * as Contacts_1 from './Contacts/index';
8
- export { Contacts_1 as Contacts };
9
- import * as Calendar_1 from './Calendar/index';
10
- export { Calendar_1 as Calendar };
11
- import * as Conversations_1 from './Conversations/index';
12
- export { Conversations_1 as Conversations };
13
- import * as Security_1 from './Security/index';
14
- export { Security_1 as Security };
15
- import * as Spaces_1 from './Spaces/index';
16
- export { Spaces_1 as Spaces };
17
- import * as Tickets_1 from './Tickets/index';
18
- export { Tickets_1 as Tickets };
19
- import * as Users_1 from './Users/index';
20
- export { Users_1 as Users };
21
- import * as ApiResponses_1 from './ApiResponses/index';
22
- export { ApiResponses_1 as ApiResponses };
23
- import * as EventsQueue_1 from './Common/EventsQueue/index';
24
- export { EventsQueue_1 as EventsQueue };
1
+ import * as Accounts_1 from './Accounts/index';
2
+ export { Accounts_1 as Accounts };
3
+ import * as AuditLogs_1 from './AuditLogs/index';
4
+ export { AuditLogs_1 as AuditLogs };
5
+ import * as Common_1 from './Common/index';
6
+ export { Common_1 as Common };
7
+ import * as Contacts_1 from './Contacts/index';
8
+ export { Contacts_1 as Contacts };
9
+ import * as Calendar_1 from './Calendar/index';
10
+ export { Calendar_1 as Calendar };
11
+ import * as Conversations_1 from './Conversations/index';
12
+ export { Conversations_1 as Conversations };
13
+ import * as Security_1 from './Security/index';
14
+ export { Security_1 as Security };
15
+ import * as Spaces_1 from './Spaces/index';
16
+ export { Spaces_1 as Spaces };
17
+ import * as Tickets_1 from './Tickets/index';
18
+ export { Tickets_1 as Tickets };
19
+ import * as Users_1 from './Users/index';
20
+ export { Users_1 as Users };
21
+ import * as ApiResponses_1 from './ApiResponses/index';
22
+ export { ApiResponses_1 as ApiResponses };
23
+ import * as EventsQueue_1 from './Common/EventsQueue/index';
24
+ export { EventsQueue_1 as EventsQueue };
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
- {
2
- "name": "@trii/types",
3
- "version": "2.10.254",
4
- "description": "Types definitions for Trii projects - ",
5
- "main": "dist/index.js",
6
- "types": "dist/index.d.ts",
7
- "files": [
8
- "/dist"
9
- ],
10
- "author": "Trii LLC",
11
- "license": "ISC"
12
- }
1
+ {
2
+ "name": "@trii/types",
3
+ "version": "2.10.255",
4
+ "description": "Types definitions for Trii projects - ",
5
+ "main": "dist/index.js",
6
+ "types": "dist/index.d.ts",
7
+ "files": [
8
+ "/dist"
9
+ ],
10
+ "author": "Trii LLC",
11
+ "license": "ISC"
12
+ }
@@ -1,33 +0,0 @@
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
- }
@@ -1,11 +0,0 @@
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 = {}));