@zelloptt/react-native-zello-sdk 0.4.0 → 1.0.0

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 (149) hide show
  1. package/README.md +9 -4
  2. package/android/build.gradle +1 -1
  3. package/android/src/main/java/com/zellosdk/ZelloAndroidSdkModule.kt +72 -7
  4. package/android/src/main/java/com/zellosdk/ZelloAndroidSdkModuleHelper.kt +53 -8
  5. package/ios/Extensions/ZelloConsoleSettings+Extension.swift +6 -1
  6. package/ios/Extensions/ZelloContact+Extension.swift +49 -0
  7. package/ios/Extensions/ZelloIOSSdkModule+Extension.swift +44 -7
  8. package/ios/ZelloIOSSdkModule.swift +45 -4
  9. package/ios/ZelloIOSSdkModuleBridge.m +11 -0
  10. package/lib/commonjs/docs/assets/navigation.js +1 -1
  11. package/lib/commonjs/docs/assets/navigation.js.map +1 -1
  12. package/lib/commonjs/docs/assets/search.js +1 -1
  13. package/lib/commonjs/docs/assets/search.js.map +1 -1
  14. package/lib/commonjs/docs/classes/sdk.Zello.html +67 -43
  15. package/lib/commonjs/docs/classes/types.ZelloAlertMessage.html +7 -7
  16. package/lib/commonjs/docs/classes/types.ZelloChannel.html +8 -8
  17. package/lib/commonjs/docs/classes/types.ZelloChannelUser.html +5 -4
  18. package/lib/commonjs/docs/classes/types.ZelloDispatchCall.html +4 -4
  19. package/lib/commonjs/docs/classes/types.ZelloDispatchChannel.html +9 -9
  20. package/lib/commonjs/docs/classes/types.ZelloGroupConversation.html +24 -0
  21. package/lib/commonjs/docs/classes/types.ZelloHistoryAlertMessage.html +8 -8
  22. package/lib/commonjs/docs/classes/types.ZelloHistoryImageMessage.html +7 -7
  23. package/lib/commonjs/docs/classes/types.ZelloHistoryLocationMessage.html +11 -11
  24. package/lib/commonjs/docs/classes/types.ZelloHistoryTextMessage.html +8 -8
  25. package/lib/commonjs/docs/classes/types.ZelloHistoryVoiceMessage.html +8 -8
  26. package/lib/commonjs/docs/classes/types.ZelloImageMessage.html +8 -8
  27. package/lib/commonjs/docs/classes/types.ZelloIncomingEmergency.html +7 -7
  28. package/lib/commonjs/docs/classes/types.ZelloIncomingVoiceMessage.html +6 -6
  29. package/lib/commonjs/docs/classes/types.ZelloLocationMessage.html +10 -10
  30. package/lib/commonjs/docs/classes/types.ZelloOutgoingEmergency.html +5 -5
  31. package/lib/commonjs/docs/classes/types.ZelloOutgoingVoiceMessage.html +7 -7
  32. package/lib/commonjs/docs/classes/types.ZelloRecentEntry.html +7 -7
  33. package/lib/commonjs/docs/classes/types.ZelloTextMessage.html +7 -7
  34. package/lib/commonjs/docs/classes/types.ZelloUser.html +10 -8
  35. package/lib/commonjs/docs/classes/types.ZelloUserSupportedFeatures.html +5 -0
  36. package/lib/commonjs/docs/enums/events.ZelloEvent.html +99 -74
  37. package/lib/commonjs/docs/enums/types.ZelloAccountStatus.html +3 -3
  38. package/lib/commonjs/docs/enums/types.ZelloChannelAlertLevel.html +3 -3
  39. package/lib/commonjs/docs/enums/types.ZelloChannelConnectionStatus.html +2 -2
  40. package/lib/commonjs/docs/enums/types.ZelloConnectionError.html +2 -2
  41. package/lib/commonjs/docs/enums/types.ZelloConnectionState.html +2 -2
  42. package/lib/commonjs/docs/enums/types.ZelloContactType.html +4 -2
  43. package/lib/commonjs/docs/enums/types.ZelloDispatchCallStatus.html +2 -2
  44. package/lib/commonjs/docs/enums/types.ZelloOutgoingVoiceMessageError.html +2 -2
  45. package/lib/commonjs/docs/enums/types.ZelloOutgoingVoiceMessageState.html +2 -2
  46. package/lib/commonjs/docs/enums/types.ZelloRecentEntryType.html +2 -2
  47. package/lib/commonjs/docs/enums/types.ZelloUserStatus.html +5 -5
  48. package/lib/commonjs/docs/index.html +7 -4
  49. package/lib/commonjs/docs/modules/events.html +1 -1
  50. package/lib/commonjs/docs/modules/index.html +4 -2
  51. package/lib/commonjs/docs/modules/sdk.html +1 -1
  52. package/lib/commonjs/docs/modules/types.html +4 -2
  53. package/lib/commonjs/docs/types/types.ZelloChannelOptions.html +4 -4
  54. package/lib/commonjs/docs/types/types.ZelloConfig.html +1 -1
  55. package/lib/commonjs/docs/types/types.ZelloConsoleSettings.html +8 -0
  56. package/lib/commonjs/docs/types/types.ZelloContact.html +1 -1
  57. package/lib/commonjs/docs/types/types.ZelloCredentials.html +1 -1
  58. package/lib/commonjs/docs/types/types.ZelloHistoryMessage.html +1 -1
  59. package/lib/commonjs/docs/types/types.ZelloMessage.html +1 -1
  60. package/lib/commonjs/events/index.js +6 -0
  61. package/lib/commonjs/events/index.js.map +1 -1
  62. package/lib/commonjs/sdk/index.js +173 -14
  63. package/lib/commonjs/sdk/index.js.map +1 -1
  64. package/lib/commonjs/types/index.js +56 -12
  65. package/lib/commonjs/types/index.js.map +1 -1
  66. package/lib/commonjs/utils/index.js +41 -10
  67. package/lib/commonjs/utils/index.js.map +1 -1
  68. package/lib/module/docs/assets/navigation.js +1 -1
  69. package/lib/module/docs/assets/navigation.js.map +1 -1
  70. package/lib/module/docs/assets/search.js +1 -1
  71. package/lib/module/docs/assets/search.js.map +1 -1
  72. package/lib/module/docs/classes/sdk.Zello.html +67 -43
  73. package/lib/module/docs/classes/types.ZelloAlertMessage.html +7 -7
  74. package/lib/module/docs/classes/types.ZelloChannel.html +8 -8
  75. package/lib/module/docs/classes/types.ZelloChannelUser.html +5 -4
  76. package/lib/module/docs/classes/types.ZelloDispatchCall.html +4 -4
  77. package/lib/module/docs/classes/types.ZelloDispatchChannel.html +9 -9
  78. package/lib/module/docs/classes/types.ZelloGroupConversation.html +24 -0
  79. package/lib/module/docs/classes/types.ZelloHistoryAlertMessage.html +8 -8
  80. package/lib/module/docs/classes/types.ZelloHistoryImageMessage.html +7 -7
  81. package/lib/module/docs/classes/types.ZelloHistoryLocationMessage.html +11 -11
  82. package/lib/module/docs/classes/types.ZelloHistoryTextMessage.html +8 -8
  83. package/lib/module/docs/classes/types.ZelloHistoryVoiceMessage.html +8 -8
  84. package/lib/module/docs/classes/types.ZelloImageMessage.html +8 -8
  85. package/lib/module/docs/classes/types.ZelloIncomingEmergency.html +7 -7
  86. package/lib/module/docs/classes/types.ZelloIncomingVoiceMessage.html +6 -6
  87. package/lib/module/docs/classes/types.ZelloLocationMessage.html +10 -10
  88. package/lib/module/docs/classes/types.ZelloOutgoingEmergency.html +5 -5
  89. package/lib/module/docs/classes/types.ZelloOutgoingVoiceMessage.html +7 -7
  90. package/lib/module/docs/classes/types.ZelloRecentEntry.html +7 -7
  91. package/lib/module/docs/classes/types.ZelloTextMessage.html +7 -7
  92. package/lib/module/docs/classes/types.ZelloUser.html +10 -8
  93. package/lib/module/docs/classes/types.ZelloUserSupportedFeatures.html +5 -0
  94. package/lib/module/docs/enums/events.ZelloEvent.html +99 -74
  95. package/lib/module/docs/enums/types.ZelloAccountStatus.html +3 -3
  96. package/lib/module/docs/enums/types.ZelloChannelAlertLevel.html +3 -3
  97. package/lib/module/docs/enums/types.ZelloChannelConnectionStatus.html +2 -2
  98. package/lib/module/docs/enums/types.ZelloConnectionError.html +2 -2
  99. package/lib/module/docs/enums/types.ZelloConnectionState.html +2 -2
  100. package/lib/module/docs/enums/types.ZelloContactType.html +4 -2
  101. package/lib/module/docs/enums/types.ZelloDispatchCallStatus.html +2 -2
  102. package/lib/module/docs/enums/types.ZelloOutgoingVoiceMessageError.html +2 -2
  103. package/lib/module/docs/enums/types.ZelloOutgoingVoiceMessageState.html +2 -2
  104. package/lib/module/docs/enums/types.ZelloRecentEntryType.html +2 -2
  105. package/lib/module/docs/enums/types.ZelloUserStatus.html +5 -5
  106. package/lib/module/docs/index.html +7 -4
  107. package/lib/module/docs/modules/events.html +1 -1
  108. package/lib/module/docs/modules/index.html +4 -2
  109. package/lib/module/docs/modules/sdk.html +1 -1
  110. package/lib/module/docs/modules/types.html +4 -2
  111. package/lib/module/docs/types/types.ZelloChannelOptions.html +4 -4
  112. package/lib/module/docs/types/types.ZelloConfig.html +1 -1
  113. package/lib/module/docs/types/types.ZelloConsoleSettings.html +8 -0
  114. package/lib/module/docs/types/types.ZelloContact.html +1 -1
  115. package/lib/module/docs/types/types.ZelloCredentials.html +1 -1
  116. package/lib/module/docs/types/types.ZelloHistoryMessage.html +1 -1
  117. package/lib/module/docs/types/types.ZelloMessage.html +1 -1
  118. package/lib/module/events/index.js +6 -0
  119. package/lib/module/events/index.js.map +1 -1
  120. package/lib/module/sdk/index.js +175 -16
  121. package/lib/module/sdk/index.js.map +1 -1
  122. package/lib/module/types/index.js +57 -11
  123. package/lib/module/types/index.js.map +1 -1
  124. package/lib/module/utils/index.js +41 -11
  125. package/lib/module/utils/index.js.map +1 -1
  126. package/lib/typescript/commonjs/src/events/index.d.ts +38 -1
  127. package/lib/typescript/commonjs/src/events/index.d.ts.map +1 -1
  128. package/lib/typescript/commonjs/src/sdk/index.d.ts +38 -4
  129. package/lib/typescript/commonjs/src/sdk/index.d.ts.map +1 -1
  130. package/lib/typescript/commonjs/src/types/index.d.ts +66 -10
  131. package/lib/typescript/commonjs/src/types/index.d.ts.map +1 -1
  132. package/lib/typescript/commonjs/src/utils/index.d.ts +2 -1
  133. package/lib/typescript/commonjs/src/utils/index.d.ts.map +1 -1
  134. package/lib/typescript/module/src/events/index.d.ts +38 -1
  135. package/lib/typescript/module/src/events/index.d.ts.map +1 -1
  136. package/lib/typescript/module/src/sdk/index.d.ts +38 -4
  137. package/lib/typescript/module/src/sdk/index.d.ts.map +1 -1
  138. package/lib/typescript/module/src/types/index.d.ts +66 -10
  139. package/lib/typescript/module/src/types/index.d.ts.map +1 -1
  140. package/lib/typescript/module/src/utils/index.d.ts +2 -1
  141. package/lib/typescript/module/src/utils/index.d.ts.map +1 -1
  142. package/package.json +1 -1
  143. package/react-native-zello-sdk.podspec +1 -1
  144. package/src/events/index.ts +37 -0
  145. package/src/sdk/index.ts +215 -17
  146. package/src/types/index.ts +90 -12
  147. package/src/utils/index.ts +65 -20
  148. package/lib/commonjs/docs/classes/types.ZelloConsoleSettings.html +0 -5
  149. package/lib/module/docs/classes/types.ZelloConsoleSettings.html +0 -5
@@ -25,6 +25,8 @@ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e =
25
25
  export let ZelloContactType = /*#__PURE__*/function (ZelloContactType) {
26
26
  ZelloContactType["User"] = "user";
27
27
  ZelloContactType["Channel"] = "channel";
28
+ ZelloContactType["DispatchChannel"] = "dispatchChannel";
29
+ ZelloContactType["GroupConversation"] = "groupConversation";
28
30
  return ZelloContactType;
29
31
  }({});
30
32
 
@@ -42,7 +44,7 @@ export let ZelloUserStatus = /*#__PURE__*/function (ZelloUserStatus) {
42
44
  /**
43
45
  * A Zello user.
44
46
  */
45
- export let ZelloUser = /*#__PURE__*/_createClass(function ZelloUser(name, displayName, isMuted, status, profilePictureUrl, profilePictureThumbnailUrl) {
47
+ export let ZelloUser = /*#__PURE__*/_createClass(function ZelloUser(name, displayName, isMuted, status, profilePictureUrl, profilePictureThumbnailUrl, supportedFeatures) {
46
48
  _classCallCheck(this, ZelloUser);
47
49
  _defineProperty(this, "name", void 0);
48
50
  /**
@@ -62,6 +64,10 @@ export let ZelloUser = /*#__PURE__*/_createClass(function ZelloUser(name, displa
62
64
  * This can be used for displaying a smaller version of the profile picture (such as in a list).
63
65
  */
64
66
  _defineProperty(this, "profilePictureThumbnailUrl", void 0);
67
+ /**
68
+ * The supported features of the user.
69
+ */
70
+ _defineProperty(this, "supportedFeatures", void 0);
65
71
  this.name = name;
66
72
  this.type = ZelloContactType.User;
67
73
  this.displayName = displayName;
@@ -69,6 +75,19 @@ export let ZelloUser = /*#__PURE__*/_createClass(function ZelloUser(name, displa
69
75
  this.status = status;
70
76
  this.profilePictureUrl = profilePictureUrl;
71
77
  this.profilePictureThumbnailUrl = profilePictureThumbnailUrl;
78
+ this.supportedFeatures = supportedFeatures;
79
+ });
80
+
81
+ /**
82
+ * The supported features of a {@link ZelloUser}.
83
+ */
84
+ export let ZelloUserSupportedFeatures = /*#__PURE__*/_createClass(function ZelloUserSupportedFeatures(groupConversations) {
85
+ _classCallCheck(this, ZelloUserSupportedFeatures);
86
+ /**
87
+ * Whether the user supports group conversations.
88
+ */
89
+ _defineProperty(this, "groupConversations", void 0);
90
+ this.groupConversations = groupConversations;
72
91
  });
73
92
 
74
93
  /**
@@ -111,6 +130,7 @@ export let ZelloDispatchChannel = /*#__PURE__*/function (_ZelloChannel2) {
111
130
  * The current call on the dispatch channel, if any.
112
131
  */
113
132
  _defineProperty(_this, "currentCall", void 0);
133
+ _this.type = ZelloContactType.DispatchChannel;
114
134
  _this.currentCall = currentCall;
115
135
  return _this;
116
136
  }
@@ -146,6 +166,38 @@ export let ZelloDispatchCallStatus = /*#__PURE__*/function (ZelloDispatchCallSta
146
166
  return ZelloDispatchCallStatus;
147
167
  }({});
148
168
 
169
+ /**
170
+ * A ad-hoc group conversation in Zello. A {@link ZelloGroupConversation} is a type of {@link ZelloChannel}, but the provisioning is done by the end user instead of through the Zello Work Administrative Console.
171
+ *
172
+ * {@link ZelloGroupConversation}s are only possible when {@link ZelloConsoleSettings.allowGroupConversations} is true.
173
+ */
174
+ export let ZelloGroupConversation = /*#__PURE__*/function (_ZelloChannel3) {
175
+ function ZelloGroupConversation(name, isMuted, connectionStatus, usersOnline, options, displayName, users, onlineUsers) {
176
+ var _this2;
177
+ _classCallCheck(this, ZelloGroupConversation);
178
+ _this2 = _callSuper(this, ZelloGroupConversation, [name, isMuted, connectionStatus, usersOnline, options]);
179
+ /**
180
+ * The display name of the group conversation. This should be used in the UI instead of {@link ZelloChannel#name}, as the {@link ZelloChannel#name} will be a uniquely hashed value starting with c##.
181
+ */
182
+ _defineProperty(_this2, "displayName", void 0);
183
+ /**
184
+ * The users in the group conversation.
185
+ */
186
+ _defineProperty(_this2, "users", void 0);
187
+ /**
188
+ * The users in the group conversation that are currently online.
189
+ */
190
+ _defineProperty(_this2, "onlineUsers", void 0);
191
+ _this2.type = ZelloContactType.GroupConversation;
192
+ _this2.displayName = displayName;
193
+ _this2.users = users;
194
+ _this2.onlineUsers = onlineUsers;
195
+ return _this2;
196
+ }
197
+ _inherits(ZelloGroupConversation, _ZelloChannel3);
198
+ return _createClass(ZelloGroupConversation);
199
+ }(ZelloChannel);
200
+
149
201
  /**
150
202
  * The connection status of a {@link ZelloChannel}.
151
203
  */
@@ -161,12 +213,14 @@ export let ZelloChannelConnectionStatus = /*#__PURE__*/function (ZelloChannelCon
161
213
  */
162
214
 
163
215
  /**
164
- * A user in a {@link ZelloChannel}. A {@link ZelloChannelUser} may or may not not be part of your contact list.
216
+ * A user in a {@link ZelloChannel}. A {@link ZelloChannelUser} may or may not be part of your contact list.
165
217
  */
166
- export let ZelloChannelUser = /*#__PURE__*/_createClass(function ZelloChannelUser(name) {
218
+ export let ZelloChannelUser = /*#__PURE__*/_createClass(function ZelloChannelUser(name, displayName) {
167
219
  _classCallCheck(this, ZelloChannelUser);
168
220
  _defineProperty(this, "name", void 0);
221
+ _defineProperty(this, "displayName", void 0);
169
222
  this.name = name;
223
+ this.displayName = displayName;
170
224
  });
171
225
 
172
226
  /**
@@ -602,12 +656,4 @@ export let ZelloHistoryLocationMessage = /*#__PURE__*/_createClass(function Zell
602
656
  /**
603
657
  * Settings for the network. These are configured via the Zello Work Administrative Console.
604
658
  */
605
- export let ZelloConsoleSettings = /*#__PURE__*/_createClass(function ZelloConsoleSettings(allowNonDispatchersToEndCalls) {
606
- _classCallCheck(this, ZelloConsoleSettings);
607
- /**
608
- * Allow non-dispatchers to end calls. When this is false, you should not show any UI to allow non-dispatchers to end calls.
609
- */
610
- _defineProperty(this, "allowNonDispatchersToEndCalls", void 0);
611
- this.allowNonDispatchersToEndCalls = allowNonDispatchersToEndCalls;
612
- });
613
659
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["ZelloContactType","ZelloUserStatus","ZelloUser","_createClass","name","displayName","isMuted","status","profilePictureUrl","profilePictureThumbnailUrl","_classCallCheck","_defineProperty","type","User","ZelloChannel","connectionStatus","usersOnline","options","Channel","ZelloDispatchChannel","_ZelloChannel2","currentCall","_this","_callSuper","_inherits","ZelloDispatchCall","dispatcher","ZelloDispatchCallStatus","ZelloChannelConnectionStatus","ZelloChannelUser","ZelloConnectionState","ZelloConnectionError","ZelloOutgoingVoiceMessageError","ZelloAccountStatus","ZelloIncomingVoiceMessage","contact","channelUser","timestamp","ZelloOutgoingVoiceMessage","state","undefined","ZelloOutgoingVoiceMessageState","ZelloImageMessage","incoming","thumbnail","image","ZelloAlertMessage","text","ZelloChannelAlertLevel","ZelloTextMessage","ZelloLocationMessage","latitude","longitude","accuracy","address","ZelloIncomingEmergency","channel","emergencyId","startTimestamp","endTimestamp","ZelloOutgoingEmergency","ZelloRecentEntry","ZelloRecentEntryType","ZelloHistoryVoiceMessage","historyId","durationMs","ZelloHistoryImageMessage","ZelloHistoryAlertMessage","ZelloHistoryTextMessage","ZelloHistoryLocationMessage","ZelloConsoleSettings","allowNonDispatchersToEndCalls"],"sourceRoot":"../../../src","sources":["types/index.ts"],"mappings":";;;;;;;;;;;;;;;AAAA;;AAEA;AACA;AACA;;AAkBA;AACA;AACA;AACA,WAAYA,gBAAgB,0BAAhBA,gBAAgB;EAAhBA,gBAAgB;EAAhBA,gBAAgB;EAAA,OAAhBA,gBAAgB;AAAA;;AAK5B;AACA;AACA;AACA,WAAYC,eAAe,0BAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAA,OAAfA,eAAe;AAAA;;AAoB3B;AACA;AACA;AACA,WAAaC,SAAS,gBAAAC,YAAA,CAoBpB,SAAAD,UACEE,IAAY,EACZC,WAAmB,EACnBC,OAAgB,EAChBC,MAAuB,EACvBC,iBAAqC,EACrCC,0BAA8C,EAC9C;EAAAC,eAAA,OAAAR,SAAA;EAAAS,eAAA;EAzBF;AACF;AACA;AACA;EAHEA,eAAA;EAAAA,eAAA;EAAAA,eAAA;EAAAA,eAAA;EAQA;AACF;AACA;EAFEA,eAAA;EAIA;AACF;AACA;AACA;EAHEA,eAAA;EAcE,IAAI,CAACP,IAA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A;EAAAA,eAAA;EAAAA,eAAA;EAAAA,eAAA;EAAAA,eAAA;EA3BF;AACF;AACA;EAFEA,eAAA;EAIA;AACF;AACA;EAFEA,eAAA;EAIA;AACF;AACA;EAFEA,eAAA;EAIA;AACF;AACA;EAFEA,eAAA;EAgBE,IAAI,CAACwB,OAAO,GAAGA,OAAO;EACtB,IAAI,CAACC,WAAW,GAAGA,WAAW;EAC9B,IAAI,CAACC,SAAS,GAAGA,SAAS;EAC1B,IAAI,CAAC2B,SAAS,GAAGA,SAAS;EAC1B,IAAI,CAACrB,QAAQ,GAAGA,QAAQ;EACxB,IAAI,CAACQ,QAAQ,GAAGA,QAAQ;EACxB,IAAI,CAACC,SAAS,GAAGA,SAAS;EAC1B,IAAI,CAACC,QAAQ,GAAGA,QAAQ;EACxB,IAAI,CAACC,OAAO,GAAGA,OAAO;AACxB,CAAC;;AAGH;AACA;AACA;;AA2BA;AACA;AACA;AACA,WAAagB,oBAAoB,gBAAAnE,YAAA,CAM/B,SAAAmE,qBAAYC,6BAAsC,EAAE;EAAA7D,eAAA,OAAA4D,oBAAA;EALpD;AACF;AACA;EAFE3D,eAAA;EAME,IAAI,CAAC4D,6BAA6B,GAAGA,6BAA6B;AACpE,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["ZelloContactType","ZelloUserStatus","ZelloUser","_createClass","name","displayName","isMuted","status","profilePictureUrl","profilePictureThumbnailUrl","supportedFeatures","_classCallCheck","_defineProperty","type","User","ZelloUserSupportedFeatures","groupConversations","ZelloChannel","connectionStatus","usersOnline","options","Channel","ZelloDispatchChannel","_ZelloChannel2","currentCall","_this","_callSuper","DispatchChannel","_inherits","ZelloDispatchCall","dispatcher","ZelloDispatchCallStatus","ZelloGroupConversation","_ZelloChannel3","users","onlineUsers","_this2","GroupConversation","ZelloChannelConnectionStatus","ZelloChannelUser","ZelloConnectionState","ZelloConnectionError","ZelloOutgoingVoiceMessageError","ZelloAccountStatus","ZelloIncomingVoiceMessage","contact","channelUser","timestamp","ZelloOutgoingVoiceMessage","state","undefined","ZelloOutgoingVoiceMessageState","ZelloImageMessage","incoming","thumbnail","image","ZelloAlertMessage","text","ZelloChannelAlertLevel","ZelloTextMessage","ZelloLocationMessage","latitude","longitude","accuracy","address","ZelloIncomingEmergency","channel","emergencyId","startTimestamp","endTimestamp","ZelloOutgoingEmergency","ZelloRecentEntry","ZelloRecentEntryType","ZelloHistoryVoiceMessage","historyId","durationMs","ZelloHistoryImageMessage","ZelloHistoryAlertMessage","ZelloHistoryTextMessage","ZelloHistoryLocationMessage"],"sourceRoot":"../../../src","sources":["types/index.ts"],"mappings":";;;;;;;;;;;;;;;AAAA;;AAEA;AACA;AACA;;AAkBA;AACA;AACA;AACA,WAAYA,gBAAgB,0BAAhBA,gBAAgB;EAAhBA,gBAAgB;EAAhBA,gBAAgB;EAAhBA,gBAAgB;EAAhBA,gBAAgB;EAAA,OAAhBA,gBAAgB;AAAA;;AAO5B;AACA;AACA;AACA,WAAYC,eAAe,0BAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAA,OAAfA,eAAe;AAAA;;AAoB3B;AACA;AACA;AACA,WAAaC,SAAS,gBAAAC,YAAA,CAwBpB,SAAAD,UACEE,IAAY,EACZC,WAAmB,EACnBC,OAAgB,EAChBC,MAAuB,EACvBC,iBAAqC,EACrCC,0BAA8C,EAC9CC,iBAA6C,EAC7C;EAAAC,eAAA,OAAAT,SAAA;EAAAU,eAAA;EA9BF;AACF;AACA;AACA;EAHEA,eAAA;EAAAA,eAAA;EAAAA,eAAA;EAAAA,eAAA;EAQA;AACF;AACA;EAFEA,eAAA;EAIA;AACF;AACA;AACA;EAHEA,eAAA;EAKA;AACF;AACA;EAFEA,eAAA;EAcE,IAAI,CAACR,IAAI,GAAGA,IAAI;EAChB,IAAI,CAACS,IAAI,GAAGb,gBAAgB,CAACc,IAAI;EACjC,IAAI,CAACT,WAAW,GAAGA,WAAW;EAC9B,IAAI,CAACC,OAA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,GAAGA,OAAO;EACtB,IAAI,CAACC,WAAW,GAAGA,WAAW;EAC9B,IAAI,CAACC,SAAS,GAAGA,SAAS;EAC1B,IAAI,CAAC2B,SAAS,GAAGA,SAAS;EAC1B,IAAI,CAACrB,QAAQ,GAAGA,QAAQ;EACxB,IAAI,CAACQ,QAAQ,GAAGA,QAAQ;EACxB,IAAI,CAACC,SAAS,GAAGA,SAAS;EAC1B,IAAI,CAACC,QAAQ,GAAGA,QAAQ;EACxB,IAAI,CAACC,OAAO,GAAGA,OAAO;AACxB,CAAC;;AAGH;AACA;AACA;;AA2BA;AACA;AACA","ignoreList":[]}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- import { ZelloChannel, ZelloChannelConnectionStatus, ZelloChannelUser, ZelloConsoleSettings, ZelloDispatchCall, ZelloDispatchCallStatus, ZelloDispatchChannel, ZelloHistoryAlertMessage, ZelloHistoryImageMessage, ZelloHistoryLocationMessage, ZelloHistoryTextMessage, ZelloHistoryVoiceMessage, ZelloIncomingEmergency, ZelloUser, ZelloUserStatus } from "../types/index.js";
3
+ import { ZelloChannel, ZelloChannelConnectionStatus, ZelloChannelUser, ZelloDispatchCall, ZelloDispatchCallStatus, ZelloDispatchChannel, ZelloGroupConversation, ZelloHistoryAlertMessage, ZelloHistoryImageMessage, ZelloHistoryLocationMessage, ZelloHistoryTextMessage, ZelloHistoryVoiceMessage, ZelloIncomingEmergency, ZelloUser, ZelloUserStatus, ZelloUserSupportedFeatures } from "../types/index.js";
4
4
  import { Platform } from 'react-native';
5
5
  export const isSameContact = (a, b) => a.name.toLowerCase() === b.name.toLowerCase() && a.type === b.type;
6
6
  export const isAndroid = Platform.OS === 'android';
@@ -13,7 +13,21 @@ export function bridgeContactToSdkContact(eventContact) {
13
13
  const isMuted = eventContact.isMuted;
14
14
  const connectionStatus = eventContact.isConnected ? ZelloChannelConnectionStatus.Connected : eventContact.isConnecting ? ZelloChannelConnectionStatus.Connecting : ZelloChannelConnectionStatus.Disconnected;
15
15
  const usersOnline = eventContact.usersOnline;
16
- const options = eventContact.options;
16
+ const eventOptions = eventContact.options;
17
+ let options;
18
+ if (eventOptions) {
19
+ options = {
20
+ noDisconnect: eventOptions.noDisconnect,
21
+ hidePowerButton: eventOptions.hidePowerButton,
22
+ listenOnly: eventOptions.listenOnly,
23
+ allowAlertMessages: eventOptions.allowAlerts,
24
+ allowLocationMessages: eventOptions.allowLocations,
25
+ allowTextMessages: eventOptions.allowTextMessages
26
+ };
27
+ }
28
+ if (!options) {
29
+ return undefined;
30
+ }
17
31
  if (eventContact.isDispatchChannel) {
18
32
  let call;
19
33
  if (eventContact.currentCall) {
@@ -23,6 +37,8 @@ export function bridgeContactToSdkContact(eventContact) {
23
37
  }
24
38
  }
25
39
  contact = new ZelloDispatchChannel(contactName, isMuted, connectionStatus, usersOnline, options, call);
40
+ } else if (eventContact.isGroupConversation) {
41
+ contact = new ZelloGroupConversation(contactName, isMuted, connectionStatus, usersOnline, options, eventContact.displayName, eventContact.users.map(user => bridgeChannelUserToSdkChannelUser(user)), eventContact.onlineUsers.map(user => bridgeChannelUserToSdkChannelUser(user)));
26
42
  } else {
27
43
  contact = new ZelloChannel(contactName, isMuted, connectionStatus, usersOnline, options);
28
44
  }
@@ -32,17 +48,18 @@ export function bridgeContactToSdkContact(eventContact) {
32
48
  if (Object.values(ZelloUserStatus).includes(statusValue)) {
33
49
  userStatus = statusValue;
34
50
  }
35
- contact = new ZelloUser(contactName, eventContact.displayName, eventContact.isMuted, userStatus, eventContact.profilePictureUrl, eventContact.profilePictureThumbnailUrl);
51
+ contact = new ZelloUser(contactName, eventContact.displayName, eventContact.isMuted, userStatus, eventContact.profilePictureUrl, eventContact.profilePictureThumbnailUrl, new ZelloUserSupportedFeatures(eventContact.supportedFeatures.groupConversations));
36
52
  }
37
53
  }
38
54
  return contact;
39
55
  }
40
56
  export function bridgeIncomingEmergencyToSdkIncomingEmergency(emergency) {
41
57
  const channel = bridgeContactToSdkContact(emergency.channel);
42
- if (!channel) {
58
+ const channelUser = bridgeChannelUserToSdkChannelUser(emergency.channelUser);
59
+ if (!channel || !channelUser) {
43
60
  return undefined;
44
61
  }
45
- return new ZelloIncomingEmergency(channel, new ZelloChannelUser(emergency.channelUserName), emergency.emergencyId, parseInt(emergency.startTimestamp, 10), parseInt(emergency.endTimestamp, 10));
62
+ return new ZelloIncomingEmergency(channel, channelUser, emergency.emergencyId, parseInt(emergency.startTimestamp, 10), parseInt(emergency.endTimestamp, 10));
46
63
  }
47
64
  export function bridgeHistoryMessageToSdkHistoryMessage(message) {
48
65
  const contact = bridgeContactToSdkContact(message.contact);
@@ -51,15 +68,15 @@ export function bridgeHistoryMessageToSdkHistoryMessage(message) {
51
68
  }
52
69
  switch (message.type) {
53
70
  case 'voice':
54
- return new ZelloHistoryVoiceMessage(contact, message.channelUserName ? new ZelloChannelUser(message.channelUserName) : undefined, parseInt(message.timestamp, 10), message.historyId, message.incoming, message.durationMs);
71
+ return new ZelloHistoryVoiceMessage(contact, bridgeChannelUserToSdkChannelUser(message.channelUser), parseInt(message.timestamp, 10), message.historyId, message.incoming, message.durationMs);
55
72
  case 'image':
56
- return new ZelloHistoryImageMessage(contact, message.channelUserName ? new ZelloChannelUser(message.channelUserName) : undefined, parseInt(message.timestamp, 10), message.historyId, message.incoming);
73
+ return new ZelloHistoryImageMessage(contact, bridgeChannelUserToSdkChannelUser(message.channelUser), parseInt(message.timestamp, 10), message.historyId, message.incoming);
57
74
  case 'location':
58
- return new ZelloHistoryLocationMessage(contact, message.channelUserName ? new ZelloChannelUser(message.channelUserName) : undefined, parseInt(message.timestamp, 10), message.historyId, message.incoming, message.latitude, message.longitude, message.accuracy, message.address);
75
+ return new ZelloHistoryLocationMessage(contact, bridgeChannelUserToSdkChannelUser(message.channelUser), parseInt(message.timestamp, 10), message.historyId, message.incoming, message.latitude, message.longitude, message.accuracy, message.address);
59
76
  case 'text':
60
- return new ZelloHistoryTextMessage(contact, message.channelUserName ? new ZelloChannelUser(message.channelUserName) : undefined, parseInt(message.timestamp, 10), message.historyId, message.incoming, message.text);
77
+ return new ZelloHistoryTextMessage(contact, bridgeChannelUserToSdkChannelUser(message.channelUser), parseInt(message.timestamp, 10), message.historyId, message.incoming, message.text);
61
78
  case 'alert':
62
- return new ZelloHistoryAlertMessage(contact, message.channelUserName ? new ZelloChannelUser(message.channelUserName) : undefined, parseInt(message.timestamp, 10), message.historyId, message.incoming, message.text);
79
+ return new ZelloHistoryAlertMessage(contact, bridgeChannelUserToSdkChannelUser(message.channelUser), parseInt(message.timestamp, 10), message.historyId, message.incoming, message.text);
63
80
  default:
64
81
  return undefined;
65
82
  }
@@ -78,6 +95,19 @@ export function bridgeConsoleSettingsToSdkConsoleSettings(settings) {
78
95
  if (!settings) {
79
96
  return undefined;
80
97
  }
81
- return new ZelloConsoleSettings(settings.allowNonDispatchersToEndCalls);
98
+ return {
99
+ allowNonDispatchersToEndCalls: settings.allowNonDispatchersToEndCalls,
100
+ allowImageMessages: settings.allowImageMessages,
101
+ allowLocationMessages: settings.allowLocationMessages,
102
+ allowTextMessages: settings.allowTextMessages,
103
+ allowAlertMessages: settings.allowAlertMessages,
104
+ allowGroupConversations: settings.allowGroupConversations
105
+ };
106
+ }
107
+ export function bridgeChannelUserToSdkChannelUser(channelUser) {
108
+ if (!channelUser?.name) {
109
+ return undefined;
110
+ }
111
+ return new ZelloChannelUser(channelUser.name, channelUser.displayName ?? channelUser.name);
82
112
  }
83
113
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["ZelloChannel","ZelloChannelConnectionStatus","ZelloChannelUser","ZelloConsoleSettings","ZelloDispatchCall","ZelloDispatchCallStatus","ZelloDispatchChannel","ZelloHistoryAlertMessage","ZelloHistoryImageMessage","ZelloHistoryLocationMessage","ZelloHistoryTextMessage","ZelloHistoryVoiceMessage","ZelloIncomingEmergency","ZelloUser","ZelloUserStatus","Platform","isSameContact","a","b","name","toLowerCase","type","isAndroid","OS","isiOS","bridgeContactToSdkContact","eventContact","contact","contactName","isChannel","isMuted","connectionStatus","isConnected","Connected","isConnecting","Connecting","Disconnected","usersOnline","options","isDispatchChannel","call","currentCall","statusValue","status","Object","values","includes","dispatcher","userStatus","Offline","displayName","profilePictureUrl","profilePictureThumbnailUrl","bridgeIncomingEmergencyToSdkIncomingEmergency","emergency","channel","undefined","channelUserName","emergencyId","parseInt","startTimestamp","endTimestamp","bridgeHistoryMessageToSdkHistoryMessage","message","timestamp","historyId","incoming","durationMs","latitude","longitude","accuracy","address","text","bridgeCallToSdkCall","bridgeConsoleSettingsToSdkConsoleSettings","settings","allowNonDispatchersToEndCalls"],"sourceRoot":"../../../src","sources":["utils/index.ts"],"mappings":";;AAAA,SACEA,YAAY,EACZC,4BAA4B,EAC5BC,gBAAgB,EAChBC,oBAAoB,EAEpBC,iBAAiB,EACjBC,uBAAuB,EACvBC,oBAAoB,EACpBC,wBAAwB,EACxBC,wBAAwB,EACxBC,2BAA2B,EAE3BC,uBAAuB,EACvBC,wBAAwB,EACxBC,sBAAsB,EACtBC,SAAS,EACTC,eAAe,QACV,mBAAU;AACjB,SAASC,QAAQ,QAAQ,cAAc;AAEvC,OAAO,MAAMC,aAAa,GAAGA,CAACC,CAAe,EAAEC,CAAe,KAC5DD,CAAC,CAACE,IAAI,CAACC,WAAW,CAAC,CAAC,KAAKF,CAAC,CAACC,IAAI,CAACC,WAAW,CAAC,CAAC,IAAIH,CAAC,CAACI,IAAI,KAAKH,CAAC,CAACG,IAAI;AAEpE,OAAO,MAAMC,SAAS,GAAGP,QAAQ,CAACQ,EAAE,KAAK,SAAS;AAClD,OAAO,MAAMC,KAAK,GAAGT,QAAQ,CAACQ,EAAE,KAAK,KAAK;AAE1C,OAAO,SAASE,yBAAyBA,CACvCC,YAAiB,EACS;EAC1B,IAAIC,OAAiC;EACrC,MAAMC,WAAW,GAAGF,YAAY,CAACP,IAAI;EACrC,IAAIS,WAAW,EAAE;IACf,IAAIF,YAAY,CAACG,SAAS,EAAE;MAC1B,MA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AGF,IAAI,CAACG,MAAM,CAACvB,WAAW,CAAC,CAA4B;EACxE,IAAI,CAACwB,MAAM,CAACC,MAAM,CAACxC,uBAAuB,CAAC,CAACyC,QAAQ,CAACJ,WAAW,CAAC,EAAE;IACjE,OAAOc,SAAS;EAClB;EACA,OAAO,IAAIpD,iBAAiB,CAACsC,WAAW,EAAEF,IAAI,CAACO,UAAU,CAAC;AAC5D;AAEA,OAAO,SAAS2B,yCAAyCA,CACvDC,QAAa,EACqB;EAClC,IAAI,CAACA,QAAQ,EAAE;IACb,OAAOnB,SAAS;EAClB;EACA,OAAO,IAAIrD,oBAAoB,CAACwE,QAAQ,CAACC,6BAA6B,CAAC;AACzE","ignoreList":[]}
1
+ {"version":3,"names":["ZelloChannel","ZelloChannelConnectionStatus","ZelloChannelUser","ZelloDispatchCall","ZelloDispatchCallStatus","ZelloDispatchChannel","ZelloGroupConversation","ZelloHistoryAlertMessage","ZelloHistoryImageMessage","ZelloHistoryLocationMessage","ZelloHistoryTextMessage","ZelloHistoryVoiceMessage","ZelloIncomingEmergency","ZelloUser","ZelloUserStatus","ZelloUserSupportedFeatures","Platform","isSameContact","a","b","name","toLowerCase","type","isAndroid","OS","isiOS","bridgeContactToSdkContact","eventContact","contact","contactName","isChannel","isMuted","connectionStatus","isConnected","Connected","isConnecting","Connecting","Disconnected","usersOnline","eventOptions","options","noDisconnect","hidePowerButton","listenOnly","allowAlertMessages","allowAlerts","allowLocationMessages","allowLocations","allowTextMessages","undefined","isDispatchChannel","call","currentCall","statusValue","status","Object","values","includes","dispatcher","isGroupConversation","displayName","users","map","user","bridgeChannelUserToSdkChannelUser","onlineUsers","userStatus","Offline","profilePictureUrl","profilePictureThumbnailUrl","supportedFeatures","groupConversations","bridgeIncomingEmergencyToSdkIncomingEmergency","emergency","channel","channelUser","emergencyId","parseInt","startTimestamp","endTimestamp","bridgeHistoryMessageToSdkHistoryMessage","message","timestamp","historyId","incoming","durationMs","latitude","longitude","accuracy","address","text","bridgeCallToSdkCall","bridgeConsoleSettingsToSdkConsoleSettings","settings","allowNonDispatchersToEndCalls","allowImageMessages","allowGroupConversations"],"sourceRoot":"../../../src","sources":["utils/index.ts"],"mappings":";;AAAA,SACEA,YAAY,EACZC,4BAA4B,EAE5BC,gBAAgB,EAGhBC,iBAAiB,EACjBC,uBAAuB,EACvBC,oBAAoB,EACpBC,sBAAsB,EACtBC,wBAAwB,EACxBC,wBAAwB,EACxBC,2BAA2B,EAE3BC,uBAAuB,EACvBC,wBAAwB,EACxBC,sBAAsB,EACtBC,SAAS,EACTC,eAAe,EACfC,0BAA0B,QACrB,mBAAU;AACjB,SAASC,QAAQ,QAAQ,cAAc;AAEvC,OAAO,MAAMC,aAAa,GAAGA,CAACC,CAAe,EAAEC,CAAe,KAC5DD,CAAC,CAACE,IAAI,CAACC,WAAW,CAAC,CAAC,KAAKF,CAAC,CAACC,IAAI,CAACC,WAAW,CAAC,CAAC,IAAIH,CAAC,CAACI,IAAI,KAAKH,CAAC,CAACG,IAAI;AAEpE,OAAO,MAAMC,SAAS,GAAGP,QAAQ,CAACQ,EAAE,KAAK,SAAS;AAClD,OAAO,MAAMC,KAAK,GAAGT,QAAQ,CAACQ,EAAE,KAAK,KAAK;AAE1C,OAAO,SAASE,yBAAyBA,CACvCC,YAAiB,EACS;EAC1B,IAAIC,OAAiC;EACrC,MAAMC,WAAW,GAAGF,YAAY,CAACP,IAAI;EACrC,IAAIS,WAAW,EAAE;IACf,IAAIF,YAAY,CAACG,SAAS,EAAE;MAC1B,MAAMC,OAAO,GAAGJ,YAAY,CAACI,OAAO;MACpC,MAAMC,gBAAgB,GAAGL,YAAY,CAACM,WAAW,GAC7ChC,4BAA4B,CAACiC,SAAS,GACtCP,YAAY,CAACQ,YAAY,GACvBlC,4BAA4B,CAACmC,UAAU,GACvCnC,4BAA4B,CAACoC,YAAY;MAC/C,MAAMC,WAAW,GAAGX,YAAY,CAACW,WAAW;MAC5C,MAAMC,YAAY,GAAGZ,YAAY,CAACa,OAAO;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ACzC,CAAC;AACH","ignoreList":[]}
@@ -35,6 +35,7 @@ export declare enum ZelloEvent {
35
35
  * {@link sdk.Zello.users | Zello.users} and {@link sdk.Zello.channels | Zello.channels} will be updated.
36
36
  * @param {@link types.ZelloUser | ZelloUser[]} users The list of users.
37
37
  * @param {@link types.ZelloChannel | ZelloChannel[]} channels The list of channels.
38
+ * @param {@link types.ZelloGroupConversation | ZelloGroupConversation[]} groupConversations The list of group conversations.
38
39
  */
39
40
  CONTACT_LIST_UPDATED = "onContactListUpdated",
40
41
  /**
@@ -213,6 +214,42 @@ export declare enum ZelloEvent {
213
214
  * {@link sdk.Zello.consoleSettings | Zello.consoleSettings} will contain the updated console settings.
214
215
  * @param {@link types.ZelloConsoleSettings | ZelloConsoleSettings} settings The updated console settings.
215
216
  */
216
- CONSOLE_SETTINGS_CHANGED = "onConsoleSettingsChanged"
217
+ CONSOLE_SETTINGS_CHANGED = "onConsoleSettingsChanged",
218
+ /**
219
+ * A group conversation has been created.
220
+ * {@link sdk.Zello.groupConversations | Zello.groupConversations} will be updated.
221
+ * @param {@link types.ZelloGroupConversation | ZelloGroupConversation} groupConversation The created group conversation.
222
+ */
223
+ GROUP_CONVERSATION_CREATED = "onGroupConversationCreated",
224
+ /**
225
+ * The user has been invited to a group conversation.
226
+ * {@link sdk.Zello.groupConversations | Zello.groupConversations} will be updated.
227
+ * @param {@link types.ZelloGroupConversation | ZelloGroupConversation} groupConversation The group conversation.
228
+ */
229
+ GROUP_CONVERSATION_INVITE = "onGroupConversationInvite",
230
+ /**
231
+ * A group conversation has new users added.
232
+ * {@link sdk.Zello.groupConversations | Zello.groupConversations} will be updated.
233
+ * @param {@link types.ZelloGroupConversation | ZelloGroupConversation} groupConversation The group conversation.
234
+ */
235
+ GROUP_CONVERSATION_USERS_ADDED = "onGroupConversationUsersAdded",
236
+ /**
237
+ * Users left a group conversation.
238
+ * {@link sdk.Zello.groupConversations | Zello.groupConversations} will be updated.
239
+ * @param {@link types.ZelloGroupConversation | ZelloGroupConversation} groupConversation The group conversation.
240
+ */
241
+ GROUP_CONVERSATION_USERS_LEFT = "onGroupConversationUsersLeft",
242
+ /**
243
+ * The user has left a group conversation.
244
+ * {@link sdk.Zello.groupConversations | Zello.groupConversations} will be updated.
245
+ * @param {@link types.ZelloGroupConversation | ZelloGroupConversation} groupConversation The group conversation.
246
+ */
247
+ GROUP_CONVERSATION_LEFT = "onGroupConversationLeft",
248
+ /**
249
+ * A group conversation has been renamed.
250
+ * {@link sdk.Zello.groupConversations | Zello.groupConversations} will be updated.
251
+ * @param {@link types.ZelloGroupConversation | ZelloGroupConversation} groupConversation The group conversation.
252
+ */
253
+ GROUP_CONVERSATION_RENAMED = "onGroupConversationRenamed"
217
254
  }
218
255
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/events/index.ts"],"names":[],"mappings":"AAAA,oBAAY,UAAU;IACpB;;;;;OAKG;IACH,cAAc,oBAAoB;IAClC;;;;SAIK;IACL,eAAe,qBAAqB;IACpC;;;;SAIK;IACL,iBAAiB,uBAAuB;IACxC;;;;OAIG;IACH,YAAY,mBAAmB;IAC/B;;;;OAIG;IACH,YAAY,oBAAoB;IAChC;;;;;OAKG;IACH,oBAAoB,yBAAyB;IAC7C;;;;OAIG;IACH,wBAAwB,6BAA6B;IACrD;;;;OAIG;IACH,sBAAsB,2BAA2B;IACjD;;;;OAIG;IACH,8BAA8B,kCAAkC;IAChE;;;;OAIG;IACH,8BAA8B,kCAAkC;IAChE;;;;OAIG;IACH,iCAAiC,qCAAqC;IACtE;;;;OAIG;IACH,8BAA8B,kCAAkC;IAChE;;;;;OAKG;IACH,8BAA8B,kCAAkC;IAChE;;;OAGG;IACH,+BAA+B,2BAA2B;IAC1D;;;OAGG;IACH,2BAA2B,+BAA+B;IAC1D;;;OAGG;IACH,kCAAkC,qCAAqC;IACvE;;;OAGG;IACH,+BAA+B,2BAA2B;IAC1D;;;OAGG;IACH,2BAA2B,+BAA+B;IAC1D;;;OAGG;IACH,kCAAkC,qCAAqC;IACvE;;;OAGG;IACH,8BAA8B,0BAA0B;IACxD;;;OAGG;IACH,0BAA0B,8BAA8B;IACxD;;;OAGG;IACH,iCAAiC,oCAAoC;IACrE;;;OAGG;IACH,kCAAkC,8BAA8B;IAChE;;;OAGG;IACH,8BAA8B,kCAAkC;IAChE;;;OAGG;IACH,qCAAqC,wCAAwC;IAC7E;;;;;OAKG;IACH,0BAA0B,+BAA+B;IACzD;;;;;OAKG;IACH,0BAA0B,+BAA+B;IACzD;;;;OAIG;IACH,0BAA0B,+BAA+B;IACzD;;;;OAIG;IACH,0BAA0B,+BAA+B;IACzD;;;;OAIG;IACH,eAAe,qBAAqB;IACpC;;OAEG;IACH,eAAe,qBAAqB;IACpC;;;;OAIG;IACH,wBAAwB,6BAA6B;IACrD;;;;OAIG;IACH,wBAAwB,6BAA6B;IACrD;;;OAGG;IACH,qBAAqB,0BAA0B;IAC/C;;;OAGG;IACH,oBAAoB,yBAAyB;IAC7C;;;OAGG;IACH,yBAAyB,8BAA8B;IACvD;;;OAGG;IACH,mBAAmB,wBAAwB;IAC3C;;;;OAIG;IACH,wBAAwB,6BAA6B;CACtD"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/events/index.ts"],"names":[],"mappings":"AAAA,oBAAY,UAAU;IACpB;;;;;OAKG;IACH,cAAc,oBAAoB;IAClC;;;;SAIK;IACL,eAAe,qBAAqB;IACpC;;;;SAIK;IACL,iBAAiB,uBAAuB;IACxC;;;;OAIG;IACH,YAAY,mBAAmB;IAC/B;;;;OAIG;IACH,YAAY,oBAAoB;IAChC;;;;;;OAMG;IACH,oBAAoB,yBAAyB;IAC7C;;;;OAIG;IACH,wBAAwB,6BAA6B;IACrD;;;;OAIG;IACH,sBAAsB,2BAA2B;IACjD;;;;OAIG;IACH,8BAA8B,kCAAkC;IAChE;;;;OAIG;IACH,8BAA8B,kCAAkC;IAChE;;;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BAA0B,+BAA+B;CAC1D"}
@@ -1,4 +1,4 @@
1
- import { ZelloAccountStatus, ZelloChannel, ZelloChannelAlertLevel, ZelloConfig, ZelloConnectionState, ZelloConsoleSettings, ZelloContact, ZelloCredentials, ZelloDispatchChannel, ZelloHistoryImageMessage, ZelloHistoryMessage, ZelloHistoryVoiceMessage, ZelloIncomingEmergency, ZelloIncomingVoiceMessage, ZelloOutgoingEmergency, ZelloOutgoingVoiceMessage, ZelloRecentEntry, ZelloUser } from '../types';
1
+ import { ZelloAccountStatus, ZelloChannel, ZelloChannelAlertLevel, ZelloConfig, ZelloConnectionState, ZelloConsoleSettings, ZelloContact, ZelloCredentials, ZelloDispatchChannel, ZelloGroupConversation, ZelloHistoryImageMessage, ZelloHistoryMessage, ZelloHistoryVoiceMessage, ZelloIncomingEmergency, ZelloIncomingVoiceMessage, ZelloOutgoingEmergency, ZelloOutgoingVoiceMessage, ZelloRecentEntry, ZelloUser } from '../types';
2
2
  import EventEmitter from 'react-native/Libraries/vendor/emitter/EventEmitter';
3
3
  /**
4
4
  * Zello SDK.
@@ -23,6 +23,10 @@ export declare class Zello extends EventEmitter {
23
23
  * The list of {@link ZelloChannel} in the contact list. Sorted by name, ascending.
24
24
  */
25
25
  channels: ZelloChannel[];
26
+ /**
27
+ * The list of {@link ZelloGroupConversation} in the contact list. Sorted by name, ascending.
28
+ */
29
+ groupConversations: ZelloGroupConversation[];
26
30
  /**
27
31
  * The current account status. undefined when {@link state} is not {@link ZelloConnectionState.Connected}.
28
32
  */
@@ -65,9 +69,6 @@ export declare class Zello extends EventEmitter {
65
69
  private constructor();
66
70
  /**
67
71
  * Sets configuration variables for the SDK.
68
- *
69
- * At the moment, this is only functional on Android.
70
- *
71
72
  * @param config The configuration to set.
72
73
  */
73
74
  configure(config: ZelloConfig): void;
@@ -100,6 +101,12 @@ export declare class Zello extends EventEmitter {
100
101
  * @return The channel with the given name, or null if no channel with that name exists.
101
102
  */
102
103
  getChannel(name: string): ZelloChannel | undefined;
104
+ /**
105
+ * Returns the group conversation with the given name. Case-insensitive.
106
+ * @param name The name of the group conversation to search for.
107
+ * @return The group conversation with the given name, or null if no group conversation with that name exists.
108
+ */
109
+ getGroupConversation(name: string): ZelloGroupConversation | undefined;
103
110
  /**
104
111
  * Sets the selected contact.
105
112
  * While optional, this is typically used for tracking the contact that the user is currently interacting with.
@@ -228,6 +235,33 @@ export declare class Zello extends EventEmitter {
228
235
  * @param channel The dispatch channel to end the call for.
229
236
  */
230
237
  endDispatchCall(channel: ZelloDispatchChannel): void;
238
+ /**
239
+ * Creates a new group conversation with the given users.
240
+ * This will trigger the {@link ZelloEvent.GROUP_CONVERSATION_CREATED} and {@link ZelloEvent.CONTACT_LIST_UPDATED} events.
241
+ * @param users The users to create the group conversation with.
242
+ * @param displayName Optional; The display name of the group conversation. The conversation can be renamed later by using {@link renameGroupConversation}.
243
+ */
244
+ createGroupConversation(users: ZelloUser[], displayName?: string): void;
245
+ /**
246
+ * Adds users to the given group conversation.
247
+ * This will trigger the {@link ZelloEvent.GROUP_CONVERSATION_USERS_ADDED} and {@link ZelloEvent.CONTACT_LIST_UPDATED} events.
248
+ * @param groupConversation The group conversation to add users to.
249
+ * @param users The users to add to the group conversation.
250
+ */
251
+ addUsersToGroupConversation(groupConversation: ZelloGroupConversation, users: ZelloUser[]): void;
252
+ /**
253
+ * Removes the user from the group conversation.
254
+ * This will trigger the {@link ZelloEvent.GROUP_CONVERSATION_LEFT} and {@link ZelloEvent.CONTACT_LIST_UPDATED} events.
255
+ * @param groupConversation The group conversation to leave.
256
+ */
257
+ leaveGroupConversation(groupConversation: ZelloGroupConversation): void;
258
+ /**
259
+ * Renames the group conversation.
260
+ * This will trigger the {@link ZelloEvent.GROUP_CONVERSATION_RENAMED} and {@link ZelloEvent.CONTACT_LIST_UPDATED} events.
261
+ * @param groupConversation The group conversation to rename.
262
+ * @param name The new name for the group conversation.
263
+ */
264
+ renameGroupConversation(groupConversation: ZelloGroupConversation, name: string): void;
231
265
  private setupEventListener;
232
266
  private processDispatchCallEvent;
233
267
  private clearContactList;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/index.ts"],"names":[],"mappings":"AAYA,OAAO,EACL,kBAAkB,EAElB,YAAY,EACZ,sBAAsB,EAEtB,WAAW,EAEX,oBAAoB,EACpB,oBAAoB,EACpB,YAAY,EAEZ,gBAAgB,EAChB,oBAAoB,EACpB,wBAAwB,EACxB,mBAAmB,EACnB,wBAAwB,EAExB,sBAAsB,EACtB,yBAAyB,EAEzB,sBAAsB,EACtB,yBAAyB,EAGzB,gBAAgB,EAEhB,SAAS,EACV,MAAM,UAAU,CAAC;AAClB,OAAO,YAAY,MAAM,oDAAoD,CAAC;AAW9E;;;GAGG;AACH,qBAAa,KAAM,SAAQ,YAAY;IACrC,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAQ;WAEjB,WAAW,IAAI,KAAK;IAOlC;;OAEG;IACI,KAAK,EAAE,oBAAoB,CAAqC;IAEvE;;OAEG;IACI,eAAe,EAAE,YAAY,GAAG,SAAS,CAAC;IAEjD;;OAEG;IACI,KAAK,EAAE,SAAS,EAAE,CAAM;IAC/B;;OAEG;IACI,QAAQ,EAAE,YAAY,EAAE,CAAM;IAErC;;OAEG;IACI,aAAa,EAAE,kBAAkB,GAAG,SAAS,CAAC;IAErD;;OAEG;IACI,oBAAoB,EAAE,yBAAyB,GAAG,SAAS,CAAC;IACnE;;OAEG;IACI,oBAAoB,EAAE,yBAAyB,GAAG,SAAS,CAAC;IAEnE;;OAEG;IACI,gBAAgB,EAAE,YAAY,GAAG,SAAS,CAAC;IAClD;;;OAGG;IACI,mBAAmB,EAAE,sBAAsB,EAAE,CAAM;IAC1D;;OAEG;IACI,iBAAiB,EAAE,sBAAsB,GAAG,SAAS,CAAC;IAE7D;;OAEG;IACI,OAAO,EAAE,gBAAgB,EAAE,CAAM;IAExC;;OAEG;IACI,mBAAmB,EAAE,wBAAwB,GAAG,SAAS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B,iBAAiB,EAAE,sBAAsB,EACzC,IAAI,EAAE,MAAM;IAed,OAAO,CAAC,kBAAkB;IA0lB1B,OAAO,CAAC,wBAAwB;IA0BhC,OAAO,CAAC,gBAAgB;IAMxB,OAAO,CAAC,MAAM,CAAC,MAAM;CAMtB"}
@@ -22,7 +22,9 @@ export type ZelloContact = {
22
22
  */
23
23
  export declare enum ZelloContactType {
24
24
  User = "user",
25
- Channel = "channel"
25
+ Channel = "channel",
26
+ DispatchChannel = "dispatchChannel",
27
+ GroupConversation = "groupConversation"
26
28
  }
27
29
  /**
28
30
  * The status of a {@link ZelloUser}.
@@ -68,7 +70,21 @@ export declare class ZelloUser implements ZelloContact {
68
70
  * This can be used for displaying a smaller version of the profile picture (such as in a list).
69
71
  */
70
72
  profilePictureThumbnailUrl: string | undefined;
71
- constructor(name: string, displayName: string, isMuted: boolean, status: ZelloUserStatus, profilePictureUrl: string | undefined, profilePictureThumbnailUrl: string | undefined);
73
+ /**
74
+ * The supported features of the user.
75
+ */
76
+ supportedFeatures: ZelloUserSupportedFeatures;
77
+ constructor(name: string, displayName: string, isMuted: boolean, status: ZelloUserStatus, profilePictureUrl: string | undefined, profilePictureThumbnailUrl: string | undefined, supportedFeatures: ZelloUserSupportedFeatures);
78
+ }
79
+ /**
80
+ * The supported features of a {@link ZelloUser}.
81
+ */
82
+ export declare class ZelloUserSupportedFeatures {
83
+ /**
84
+ * Whether the user supports group conversations.
85
+ */
86
+ readonly groupConversations: boolean;
87
+ constructor(groupConversations: boolean);
72
88
  }
73
89
  /**
74
90
  * A Zello channel. A channel contains multiple users.
@@ -124,6 +140,26 @@ export declare enum ZelloDispatchCallStatus {
124
140
  Ended = "ended",
125
141
  Disconnected = "disconnected"
126
142
  }
143
+ /**
144
+ * A ad-hoc group conversation in Zello. A {@link ZelloGroupConversation} is a type of {@link ZelloChannel}, but the provisioning is done by the end user instead of through the Zello Work Administrative Console.
145
+ *
146
+ * {@link ZelloGroupConversation}s are only possible when {@link ZelloConsoleSettings.allowGroupConversations} is true.
147
+ */
148
+ export declare class ZelloGroupConversation extends ZelloChannel {
149
+ /**
150
+ * The display name of the group conversation. This should be used in the UI instead of {@link ZelloChannel#name}, as the {@link ZelloChannel#name} will be a uniquely hashed value starting with c##.
151
+ */
152
+ readonly displayName: string;
153
+ /**
154
+ * The users in the group conversation.
155
+ */
156
+ readonly users: ZelloChannelUser[];
157
+ /**
158
+ * The users in the group conversation that are currently online.
159
+ */
160
+ readonly onlineUsers: ZelloChannelUser[];
161
+ constructor(name: string, isMuted: boolean, connectionStatus: ZelloChannelConnectionStatus, usersOnline: number, options: ZelloChannelOptions, displayName: string, users: ZelloChannelUser[], onlineUsers: ZelloChannelUser[]);
162
+ }
127
163
  /**
128
164
  * The connection status of a {@link ZelloChannel}.
129
165
  */
@@ -155,7 +191,7 @@ export type ZelloChannelOptions = {
155
191
  * Whether the user is allowed to send alert messages to the channel.
156
192
  * When this is true, you should not show any UI to allow the user to send alert messages to the channel.
157
193
  */
158
- allowAlerts: boolean;
194
+ allowAlertMessages: boolean;
159
195
  /**
160
196
  * Whether the user is allowed to send text messages to the channel.
161
197
  * When this is true, you should not show any UI to allow the user to send text messages to the channel.
@@ -165,14 +201,15 @@ export type ZelloChannelOptions = {
165
201
  * Whether the user is allowed to send location messages to the channel.
166
202
  * When this is true, you should not show any UI to allow the user to send location messages to the channel.
167
203
  */
168
- allowLocations: boolean;
204
+ allowLocationMessages: boolean;
169
205
  };
170
206
  /**
171
- * A user in a {@link ZelloChannel}. A {@link ZelloChannelUser} may or may not not be part of your contact list.
207
+ * A user in a {@link ZelloChannel}. A {@link ZelloChannelUser} may or may not be part of your contact list.
172
208
  */
173
209
  export declare class ZelloChannelUser {
174
210
  name: string;
175
- constructor(name: string);
211
+ displayName: string;
212
+ constructor(name: string, displayName: string);
176
213
  }
177
214
  /**
178
215
  * The credentials required to connect to Zello.
@@ -597,11 +634,30 @@ export type ZelloConfig = {
597
634
  /**
598
635
  * Settings for the network. These are configured via the Zello Work Administrative Console.
599
636
  */
600
- export declare class ZelloConsoleSettings {
637
+ export type ZelloConsoleSettings = {
601
638
  /**
602
639
  * Allow non-dispatchers to end calls. When this is false, you should not show any UI to allow non-dispatchers to end calls.
603
640
  */
604
- readonly allowNonDispatchersToEndCalls: boolean;
605
- constructor(allowNonDispatchersToEndCalls: boolean);
606
- }
641
+ allowNonDispatchersToEndCalls: boolean;
642
+ /**
643
+ * Allow image messages. When this is false, you should not show any UI to allow users to send image messages.
644
+ */
645
+ allowImageMessages: boolean;
646
+ /**
647
+ * Allow alert messages. When this is false, you should not show any UI to allow users to send alert messages.
648
+ */
649
+ allowAlertMessages: boolean;
650
+ /**
651
+ * Allow location messages. When this is false, you should not show any UI to allow users to send location messages.
652
+ */
653
+ allowLocationMessages: boolean;
654
+ /**
655
+ * Allow text messages. When this is false, you should not show any UI to allow users to send text messages.
656
+ */
657
+ allowTextMessages: boolean;
658
+ /**
659
+ * Allow group conversations. When this is false, you should not show any UI to allow users to create group conversations.
660
+ */
661
+ allowGroupConversations: boolean;
662
+ };
607
663
  //# sourceMappingURL=index.d.ts.map