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

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 +103 -29
  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 +51 -0
  7. package/ios/Extensions/ZelloIOSSdkModule+Extension.swift +49 -9
  8. package/ios/ZelloIOSSdkModule.swift +88 -27
  9. package/ios/ZelloIOSSdkModuleBridge.m +22 -11
  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 +69 -45
  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 +107 -82
  37. package/lib/commonjs/docs/enums/types.ZelloAccountStatus.html +4 -4
  38. package/lib/commonjs/docs/enums/types.ZelloChannelAlertLevel.html +4 -4
  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 +6 -6
  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 +195 -47
  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 +69 -45
  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 +107 -82
  95. package/lib/module/docs/enums/types.ZelloAccountStatus.html +4 -4
  96. package/lib/module/docs/enums/types.ZelloChannelAlertLevel.html +4 -4
  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 +6 -6
  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 +197 -49
  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 +2 -1
  143. package/react-native-zello-sdk.podspec +1 -1
  144. package/src/events/index.ts +37 -0
  145. package/src/sdk/index.ts +237 -50
  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
@@ -3,4 +3,4 @@
3
3
  This is the &quot;x&quot; in your {<a href="http://x.zellowork.com" target="_blank" class="external">x.zellowork.com</a>} Zello Work console login.</p>
4
4
  </div><div class="tsd-comment tsd-typography"></div></li><li class="tsd-parameter"><h5><span class="tsd-kind-property">password</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><p>The password for the user.</p>
5
5
  </div><div class="tsd-comment tsd-typography"></div></li><li class="tsd-parameter"><h5><span class="tsd-kind-property">username</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><p>The username to connect.</p>
6
- </div><div class="tsd-comment tsd-typography"></div></li></ul></div><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/zelloptt/react-native-zello-sdk/blob/68ceb919b83b2ca14f8c1bb7bc5f3f7eb87a5cf9/src/types/index.ts#L241">src/types/index.ts:241</a></li></ul></aside></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Protected</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-external" name="external"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>External</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div><div class="site-menu"><nav class="tsd-navigation"><a href="../index.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1"></use></svg><span>@zelloptt/react-native-zello-sdk</span></a><ul class="tsd-small-nested-navigation" id="tsd-nav-container" data-base=".."><li>Loading...</li></ul></nav></div></div></div><footer><p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer><div class="overlay"></div></body></html>
6
+ </div><div class="tsd-comment tsd-typography"></div></li></ul></div><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/zelloptt/react-native-zello-sdk/blob/e82383ec6cfc9b9cceb3ebceec52547bba1f26bf/src/types/index.ts#L303">src/types/index.ts:303</a></li></ul></aside></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Protected</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-external" name="external"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>External</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div><div class="site-menu"><nav class="tsd-navigation"><a href="../index.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1"></use></svg><span>@zelloptt/react-native-zello-sdk</span></a><ul class="tsd-small-nested-navigation" id="tsd-nav-container" data-base=".."><li>Loading...</li></ul></nav></div></div></div><footer><p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer><div class="overlay"></div></body></html>
@@ -6,4 +6,4 @@ If outgoing, undefined.</p>
6
6
  This identifier persists across sessions.</p>
7
7
  </div><div class="tsd-comment tsd-typography"></div></li><li class="tsd-parameter"><h5><span class="tsd-kind-property">incoming</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span></h5><div class="tsd-comment tsd-typography"><p>Whether the message was received or sent.</p>
8
8
  </div><div class="tsd-comment tsd-typography"></div></li><li class="tsd-parameter"><h5><span class="tsd-kind-property">timestamp</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></h5><div class="tsd-comment tsd-typography"><p>The timestamp of the message.</p>
9
- </div><div class="tsd-comment tsd-typography"></div></li></ul></div><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/zelloptt/react-native-zello-sdk/blob/68ceb919b83b2ca14f8c1bb7bc5f3f7eb87a5cf9/src/types/index.ts#L652">src/types/index.ts:652</a></li></ul></aside></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Protected</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-external" name="external"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>External</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div><div class="site-menu"><nav class="tsd-navigation"><a href="../index.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1"></use></svg><span>@zelloptt/react-native-zello-sdk</span></a><ul class="tsd-small-nested-navigation" id="tsd-nav-container" data-base=".."><li>Loading...</li></ul></nav></div></div></div><footer><p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer><div class="overlay"></div></body></html>
9
+ </div><div class="tsd-comment tsd-typography"></div></li></ul></div><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/zelloptt/react-native-zello-sdk/blob/e82383ec6cfc9b9cceb3ebceec52547bba1f26bf/src/types/index.ts#L714">src/types/index.ts:714</a></li></ul></aside></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Protected</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-external" name="external"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>External</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div><div class="site-menu"><nav class="tsd-navigation"><a href="../index.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1"></use></svg><span>@zelloptt/react-native-zello-sdk</span></a><ul class="tsd-small-nested-navigation" id="tsd-nav-container" data-base=".."><li>Loading...</li></ul></nav></div></div></div><footer><p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer><div class="overlay"></div></body></html>
@@ -4,4 +4,4 @@ If outgoing, undefined.</p>
4
4
  </div><div class="tsd-comment tsd-typography"></div></li><li class="tsd-parameter"><h5><span class="tsd-kind-property">contact</span><span class="tsd-signature-symbol">: </span><a href="types.ZelloContact.html" class="tsd-signature-type tsd-kind-type-alias">ZelloContact</a></h5><div class="tsd-comment tsd-typography"><p>The contact that sent or received the message. If this is a channel message, the contact will be the channel.</p>
5
5
  </div><div class="tsd-comment tsd-typography"></div></li><li class="tsd-parameter"><h5><span class="tsd-kind-property">incoming</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span></h5><div class="tsd-comment tsd-typography"><p>Whether the message was received or sent.</p>
6
6
  </div><div class="tsd-comment tsd-typography"></div></li><li class="tsd-parameter"><h5><span class="tsd-kind-property">timestamp</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></h5><div class="tsd-comment tsd-typography"><p>The timestamp of the message.</p>
7
- </div><div class="tsd-comment tsd-typography"></div></li></ul></div><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/zelloptt/react-native-zello-sdk/blob/68ceb919b83b2ca14f8c1bb7bc5f3f7eb87a5cf9/src/types/index.ts#L302">src/types/index.ts:302</a></li></ul></aside></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Protected</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-external" name="external"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>External</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div><div class="site-menu"><nav class="tsd-navigation"><a href="../index.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1"></use></svg><span>@zelloptt/react-native-zello-sdk</span></a><ul class="tsd-small-nested-navigation" id="tsd-nav-container" data-base=".."><li>Loading...</li></ul></nav></div></div></div><footer><p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer><div class="overlay"></div></body></html>
7
+ </div><div class="tsd-comment tsd-typography"></div></li></ul></div><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/zelloptt/react-native-zello-sdk/blob/e82383ec6cfc9b9cceb3ebceec52547bba1f26bf/src/types/index.ts#L364">src/types/index.ts:364</a></li></ul></aside></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Protected</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-external" name="external"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>External</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div><div class="site-menu"><nav class="tsd-navigation"><a href="../index.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1"></use></svg><span>@zelloptt/react-native-zello-sdk</span></a><ul class="tsd-small-nested-navigation" id="tsd-nav-container" data-base=".."><li>Loading...</li></ul></nav></div></div></div><footer><p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer><div class="overlay"></div></body></html>
@@ -43,6 +43,12 @@ let ZelloEvent = exports.ZelloEvent = /*#__PURE__*/function (ZelloEvent) {
43
43
  ZelloEvent["DISPATCH_CALL_TRANSFERRED"] = "onDispatchCallTransferred";
44
44
  ZelloEvent["DISPATCH_CALL_ENDED"] = "onDispatchCallEnded";
45
45
  ZelloEvent["CONSOLE_SETTINGS_CHANGED"] = "onConsoleSettingsChanged";
46
+ ZelloEvent["GROUP_CONVERSATION_CREATED"] = "onGroupConversationCreated";
47
+ ZelloEvent["GROUP_CONVERSATION_INVITE"] = "onGroupConversationInvite";
48
+ ZelloEvent["GROUP_CONVERSATION_USERS_ADDED"] = "onGroupConversationUsersAdded";
49
+ ZelloEvent["GROUP_CONVERSATION_USERS_LEFT"] = "onGroupConversationUsersLeft";
50
+ ZelloEvent["GROUP_CONVERSATION_LEFT"] = "onGroupConversationLeft";
51
+ ZelloEvent["GROUP_CONVERSATION_RENAMED"] = "onGroupConversationRenamed";
46
52
  return ZelloEvent;
47
53
  }({});
48
54
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["ZelloEvent","exports"],"sourceRoot":"../../../src","sources":["events/index.ts"],"mappings":";;;;;;IAAYA,UAAU,GAAAC,OAAA,CAAAD,UAAA,0BAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAA,OAAVA,UAAU;AAAA","ignoreList":[]}
1
+ {"version":3,"names":["ZelloEvent","exports"],"sourceRoot":"../../../src","sources":["events/index.ts"],"mappings":";;;;;;IAAYA,UAAU,GAAAC,OAAA,CAAAD,UAAA,0BAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAA,OAAVA,UAAU;AAAA","ignoreList":[]}
@@ -55,6 +55,10 @@ let Zello = exports.Zello = /*#__PURE__*/function (_EventEmitter) {
55
55
  * The list of {@link ZelloChannel} in the contact list. Sorted by name, ascending.
56
56
  */
57
57
  _defineProperty(_this, "channels", []);
58
+ /**
59
+ * The list of {@link ZelloGroupConversation} in the contact list. Sorted by name, ascending.
60
+ */
61
+ _defineProperty(_this, "groupConversations", []);
58
62
  /**
59
63
  * The current account status. undefined when {@link state} is not {@link ZelloConnectionState.Connected}.
60
64
  */
@@ -109,9 +113,6 @@ let Zello = exports.Zello = /*#__PURE__*/function (_EventEmitter) {
109
113
 
110
114
  /**
111
115
  * Sets configuration variables for the SDK.
112
- *
113
- * At the moment, this is only functional on Android.
114
- *
115
116
  * @param config The configuration to set.
116
117
  */
117
118
  _inherits(Zello, _EventEmitter);
@@ -188,6 +189,17 @@ let Zello = exports.Zello = /*#__PURE__*/function (_EventEmitter) {
188
189
  return (0, _index3.sortedArrayFind)(this.channels, name, _index3.compareNameAscending);
189
190
  }
190
191
 
192
+ /**
193
+ * Returns the group conversation with the given name. Case-insensitive.
194
+ * @param name The name of the group conversation to search for.
195
+ * @return The group conversation with the given name, or null if no group conversation with that name exists.
196
+ */
197
+ }, {
198
+ key: "getGroupConversation",
199
+ value: function getGroupConversation(name) {
200
+ return (0, _index3.sortedArrayFind)(this.groupConversations, name, _index3.compareNameAscending);
201
+ }
202
+
191
203
  /**
192
204
  * Sets the selected contact.
193
205
  * While optional, this is typically used for tracking the contact that the user is currently interacting with.
@@ -197,11 +209,10 @@ let Zello = exports.Zello = /*#__PURE__*/function (_EventEmitter) {
197
209
  }, {
198
210
  key: "setSelectedContact",
199
211
  value: function setSelectedContact(contact) {
200
- const isChannel = contact.type === _index2.ZelloContactType.Channel;
201
212
  if (_index.isAndroid) {
202
- ZelloAndroidSdkModule.setSelectedContact(contact.name, isChannel);
213
+ ZelloAndroidSdkModule.setSelectedContact(contact.name, contact.type);
203
214
  } else {
204
- ZelloIOSSdkModule.selectContact(contact.name, isChannel);
215
+ ZelloIOSSdkModule.selectContact(contact.name, contact.type);
205
216
  }
206
217
  }
207
218
 
@@ -232,7 +243,11 @@ let Zello = exports.Zello = /*#__PURE__*/function (_EventEmitter) {
232
243
  if (_index.isAndroid) {
233
244
  ZelloAndroidSdkModule.connectChannel(channel.name);
234
245
  } else {
235
- ZelloIOSSdkModule.connectChannel(channel.name);
246
+ if (channel.type === _index2.ZelloContactType.GroupConversation) {
247
+ ZelloIOSSdkModule.connectGroupConversation(channel.name);
248
+ } else {
249
+ ZelloIOSSdkModule.connectChannel(channel.name);
250
+ }
236
251
  }
237
252
  }
238
253
 
@@ -248,7 +263,11 @@ let Zello = exports.Zello = /*#__PURE__*/function (_EventEmitter) {
248
263
  if (_index.isAndroid) {
249
264
  ZelloAndroidSdkModule.disconnectChannel(channel.name);
250
265
  } else {
251
- ZelloIOSSdkModule.disconnectChannel(channel.name);
266
+ if (channel.type === _index2.ZelloContactType.GroupConversation) {
267
+ ZelloIOSSdkModule.disconnectGroupConversation(channel.name);
268
+ } else {
269
+ ZelloIOSSdkModule.disconnectChannel(channel.name);
270
+ }
252
271
  }
253
272
  }
254
273
 
@@ -261,11 +280,10 @@ let Zello = exports.Zello = /*#__PURE__*/function (_EventEmitter) {
261
280
  }, {
262
281
  key: "startVoiceMessage",
263
282
  value: function startVoiceMessage(contact) {
264
- const isChannel = contact.type === _index2.ZelloContactType.Channel;
265
283
  if (_index.isAndroid) {
266
- ZelloAndroidSdkModule.startVoiceMessage(contact.name, isChannel);
284
+ ZelloAndroidSdkModule.startVoiceMessage(contact.name, contact.type);
267
285
  } else {
268
- ZelloIOSSdkModule.startVoiceMessage(contact.name, isChannel);
286
+ ZelloIOSSdkModule.startVoiceMessage(contact.name, contact.type);
269
287
  }
270
288
  }
271
289
 
@@ -292,11 +310,10 @@ let Zello = exports.Zello = /*#__PURE__*/function (_EventEmitter) {
292
310
  }, {
293
311
  key: "sendImage",
294
312
  value: function sendImage(contact, data) {
295
- const isChannel = contact.type === _index2.ZelloContactType.Channel;
296
313
  if (_index.isAndroid) {
297
- ZelloAndroidSdkModule.sendImage(contact.name, isChannel, data);
314
+ ZelloAndroidSdkModule.sendImage(contact.name, contact.type, data);
298
315
  } else {
299
- ZelloIOSSdkModule.sendImage(contact.name, isChannel, data);
316
+ ZelloIOSSdkModule.sendImage(contact.name, contact.type, data);
300
317
  }
301
318
  }
302
319
 
@@ -308,11 +325,10 @@ let Zello = exports.Zello = /*#__PURE__*/function (_EventEmitter) {
308
325
  }, {
309
326
  key: "sendLocation",
310
327
  value: function sendLocation(contact) {
311
- const isChannel = contact.type === _index2.ZelloContactType.Channel;
312
328
  if (_index.isAndroid) {
313
- ZelloAndroidSdkModule.sendLocation(contact.name, isChannel);
329
+ ZelloAndroidSdkModule.sendLocation(contact.name, contact.type);
314
330
  } else {
315
- ZelloIOSSdkModule.sendLocation(contact.name, isChannel);
331
+ ZelloIOSSdkModule.sendLocation(contact.name, contact.type);
316
332
  }
317
333
  }
318
334
 
@@ -325,11 +341,10 @@ let Zello = exports.Zello = /*#__PURE__*/function (_EventEmitter) {
325
341
  }, {
326
342
  key: "sendText",
327
343
  value: function sendText(contact, text) {
328
- const isChannel = contact.type === _index2.ZelloContactType.Channel;
329
344
  if (_index.isAndroid) {
330
- ZelloAndroidSdkModule.sendText(contact.name, isChannel, text);
345
+ ZelloAndroidSdkModule.sendText(contact.name, contact.type, text);
331
346
  } else {
332
- ZelloIOSSdkModule.sendText(contact.name, isChannel, text);
347
+ ZelloIOSSdkModule.sendText(contact.name, contact.type, text);
333
348
  }
334
349
  }
335
350
 
@@ -343,11 +358,10 @@ let Zello = exports.Zello = /*#__PURE__*/function (_EventEmitter) {
343
358
  }, {
344
359
  key: "sendAlert",
345
360
  value: function sendAlert(contact, text, level) {
346
- const isChannel = contact.type === _index2.ZelloContactType.Channel;
347
361
  if (_index.isAndroid) {
348
- ZelloAndroidSdkModule.sendAlert(contact.name, isChannel, text, level);
362
+ ZelloAndroidSdkModule.sendAlert(contact.name, contact.type, text, level);
349
363
  } else {
350
- ZelloIOSSdkModule.sendAlert(contact.name, isChannel, text, level);
364
+ ZelloIOSSdkModule.sendAlert(contact.name, contact.type, text, level);
351
365
  }
352
366
  }
353
367
 
@@ -373,11 +387,10 @@ let Zello = exports.Zello = /*#__PURE__*/function (_EventEmitter) {
373
387
  }, {
374
388
  key: "muteContact",
375
389
  value: function muteContact(contact) {
376
- const isChannel = contact.type === _index2.ZelloContactType.Channel;
377
390
  if (_index.isAndroid) {
378
- ZelloAndroidSdkModule.muteContact(contact.name, isChannel);
391
+ ZelloAndroidSdkModule.muteContact(contact.name, contact.type);
379
392
  } else {
380
- ZelloIOSSdkModule.muteContact(contact.name, isChannel);
393
+ ZelloIOSSdkModule.muteContact(contact.name, contact.type);
381
394
  }
382
395
  }
383
396
 
@@ -389,11 +402,10 @@ let Zello = exports.Zello = /*#__PURE__*/function (_EventEmitter) {
389
402
  }, {
390
403
  key: "unmuteContact",
391
404
  value: function unmuteContact(contact) {
392
- const isChannel = contact.type === _index2.ZelloContactType.Channel;
393
405
  if (_index.isAndroid) {
394
- ZelloAndroidSdkModule.unmuteContact(contact.name, isChannel);
406
+ ZelloAndroidSdkModule.unmuteContact(contact.name, contact.type);
395
407
  } else {
396
- ZelloIOSSdkModule.unmuteContact(contact.name, isChannel);
408
+ ZelloIOSSdkModule.unmuteContact(contact.name, contact.type);
397
409
  }
398
410
  }
399
411
 
@@ -437,7 +449,6 @@ let Zello = exports.Zello = /*#__PURE__*/function (_EventEmitter) {
437
449
  value: function getHistory(contact, size) {
438
450
  const defaultHistorySize = 50;
439
451
  return new Promise(resolve => {
440
- const isChannel = contact.type === _index2.ZelloContactType.Channel;
441
452
  const callback = history => {
442
453
  if (!history) {
443
454
  resolve([]);
@@ -447,9 +458,9 @@ let Zello = exports.Zello = /*#__PURE__*/function (_EventEmitter) {
447
458
  resolve(messages);
448
459
  };
449
460
  if (_index.isAndroid) {
450
- ZelloAndroidSdkModule.getHistory(contact.name, isChannel, size ?? defaultHistorySize, callback);
461
+ ZelloAndroidSdkModule.getHistory(contact.name, contact.type, size ?? defaultHistorySize, callback);
451
462
  } else {
452
- ZelloIOSSdkModule.getHistory(contact.name, isChannel, size ?? defaultHistorySize, callback);
463
+ ZelloIOSSdkModule.getHistory(contact.name, contact.type, size ?? defaultHistorySize, callback);
453
464
  }
454
465
  });
455
466
  }
@@ -462,11 +473,10 @@ let Zello = exports.Zello = /*#__PURE__*/function (_EventEmitter) {
462
473
  }, {
463
474
  key: "playHistoryMessage",
464
475
  value: function playHistoryMessage(message) {
465
- const isChannel = message.contact.type === _index2.ZelloContactType.Channel;
466
476
  if (_index.isAndroid) {
467
- ZelloAndroidSdkModule.playHistoryMessage(message.historyId, message.contact.name, isChannel);
477
+ ZelloAndroidSdkModule.playHistoryMessage(message.historyId, message.contact.name, message.contact.type);
468
478
  } else {
469
- ZelloIOSSdkModule.playHistoryMessage(message.historyId, message.contact.name, isChannel);
479
+ ZelloIOSSdkModule.playHistoryMessage(message.historyId, message.contact.name, message.contact.type);
470
480
  }
471
481
  }
472
482
 
@@ -493,11 +503,10 @@ let Zello = exports.Zello = /*#__PURE__*/function (_EventEmitter) {
493
503
  key: "getImageDataForHistoryImageMessage",
494
504
  value: function getImageDataForHistoryImageMessage(message) {
495
505
  return new Promise(resolve => {
496
- const isChannel = message.contact.type === _index2.ZelloContactType.Channel;
497
506
  if (_index.isAndroid) {
498
- ZelloAndroidSdkModule.getImageDataForHistoryImageMessage(message.historyId, message.contact.name, isChannel, data => resolve(data));
507
+ ZelloAndroidSdkModule.getImageDataForHistoryImageMessage(message.historyId, message.contact.name, message.contact.type, data => resolve(data));
499
508
  } else {
500
- ZelloIOSSdkModule.getHistoryImageData(message.historyId, message.contact.name, isChannel, data => resolve(data));
509
+ ZelloIOSSdkModule.getHistoryImageData(message.historyId, message.contact.name, message.contact.type, data => resolve(data));
501
510
  }
502
511
  });
503
512
  }
@@ -519,6 +528,81 @@ let Zello = exports.Zello = /*#__PURE__*/function (_EventEmitter) {
519
528
  ZelloIOSSdkModule.endDispatchCall(channel.name);
520
529
  }
521
530
  }
531
+
532
+ /**
533
+ * Creates a new group conversation with the given users.
534
+ * This will trigger the {@link ZelloEvent.GROUP_CONVERSATION_CREATED} and {@link ZelloEvent.CONTACT_LIST_UPDATED} events.
535
+ * @param users The users to create the group conversation with.
536
+ * @param displayName Optional; The display name of the group conversation. The conversation can be renamed later by using {@link renameGroupConversation}.
537
+ */
538
+ }, {
539
+ key: "createGroupConversation",
540
+ value: function createGroupConversation(users, displayName) {
541
+ if (!this.consoleSettings?.allowGroupConversations) {
542
+ return;
543
+ }
544
+ if (_index.isAndroid) {
545
+ ZelloAndroidSdkModule.createGroupConversation(users.map(user => user.name), displayName);
546
+ } else {
547
+ ZelloIOSSdkModule.createGroupConversation(users.map(user => user.name), displayName);
548
+ }
549
+ }
550
+
551
+ /**
552
+ * Adds users to the given group conversation.
553
+ * This will trigger the {@link ZelloEvent.GROUP_CONVERSATION_USERS_ADDED} and {@link ZelloEvent.CONTACT_LIST_UPDATED} events.
554
+ * @param groupConversation The group conversation to add users to.
555
+ * @param users The users to add to the group conversation.
556
+ */
557
+ }, {
558
+ key: "addUsersToGroupConversation",
559
+ value: function addUsersToGroupConversation(groupConversation, users) {
560
+ if (!this.consoleSettings?.allowGroupConversations) {
561
+ return;
562
+ }
563
+ if (_index.isAndroid) {
564
+ ZelloAndroidSdkModule.addUsersToGroupConversation(groupConversation.name, users.map(user => user.name));
565
+ } else {
566
+ ZelloIOSSdkModule.addUsersToGroupConversation(groupConversation.name, users.map(user => user.name));
567
+ }
568
+ }
569
+
570
+ /**
571
+ * Removes the user from the group conversation.
572
+ * This will trigger the {@link ZelloEvent.GROUP_CONVERSATION_LEFT} and {@link ZelloEvent.CONTACT_LIST_UPDATED} events.
573
+ * @param groupConversation The group conversation to leave.
574
+ */
575
+ }, {
576
+ key: "leaveGroupConversation",
577
+ value: function leaveGroupConversation(groupConversation) {
578
+ if (!this.consoleSettings?.allowGroupConversations) {
579
+ return;
580
+ }
581
+ if (_index.isAndroid) {
582
+ ZelloAndroidSdkModule.leaveGroupConversation(groupConversation.name);
583
+ } else {
584
+ ZelloIOSSdkModule.leaveGroupConversation(groupConversation.name);
585
+ }
586
+ }
587
+
588
+ /**
589
+ * Renames the group conversation.
590
+ * This will trigger the {@link ZelloEvent.GROUP_CONVERSATION_RENAMED} and {@link ZelloEvent.CONTACT_LIST_UPDATED} events.
591
+ * @param groupConversation The group conversation to rename.
592
+ * @param name The new name for the group conversation.
593
+ */
594
+ }, {
595
+ key: "renameGroupConversation",
596
+ value: function renameGroupConversation(groupConversation, name) {
597
+ if (!this.consoleSettings?.allowGroupConversations) {
598
+ return;
599
+ }
600
+ if (_index.isAndroid) {
601
+ ZelloAndroidSdkModule.renameGroupConversation(groupConversation.name, name);
602
+ } else {
603
+ ZelloIOSSdkModule.renameGroupConversation(groupConversation.name, name);
604
+ }
605
+ }
522
606
  }, {
523
607
  key: "setupEventListener",
524
608
  value: function setupEventListener(eventEmitter) {
@@ -563,10 +647,12 @@ let Zello = exports.Zello = /*#__PURE__*/function (_EventEmitter) {
563
647
  this.users.sort(_index3.compareNameAscending);
564
648
  this.channels = event.channels.map(channel => (0, _index.bridgeContactToSdkContact)(channel));
565
649
  this.channels.sort(_index3.compareNameAscending);
650
+ this.groupConversations = event.groupConversations.map(groupConversation => (0, _index.bridgeContactToSdkContact)(groupConversation));
651
+ this.groupConversations.sort(_index3.compareNameAscending);
566
652
  if (event.emergencyChannel) {
567
653
  this.emergencyChannel = (0, _index.bridgeContactToSdkContact)(event.emergencyChannel);
568
654
  }
569
- this.emit(_index4.ZelloEvent.CONTACT_LIST_UPDATED, this.users, this.channels);
655
+ this.emit(_index4.ZelloEvent.CONTACT_LIST_UPDATED, this.users, this.channels, this.groupConversations);
570
656
  break;
571
657
  }
572
658
  case 'onSelectedContactChanged':
@@ -590,7 +676,7 @@ let Zello = exports.Zello = /*#__PURE__*/function (_EventEmitter) {
590
676
  if (!contact) {
591
677
  break;
592
678
  }
593
- this.incomingVoiceMessage = new _index2.ZelloIncomingVoiceMessage(contact, new _index2.ZelloChannelUser(event.channelUserName), parseInt(event.timestamp, 10));
679
+ this.incomingVoiceMessage = new _index2.ZelloIncomingVoiceMessage(contact, (0, _index.bridgeChannelUserToSdkChannelUser)(event.channelUser), parseInt(event.timestamp, 10));
594
680
  this.emit(_index4.ZelloEvent.INCOMING_VOICE_MESSAGE_STARTED, this.incomingVoiceMessage);
595
681
  break;
596
682
  }
@@ -601,7 +687,7 @@ let Zello = exports.Zello = /*#__PURE__*/function (_EventEmitter) {
601
687
  if (!contact) {
602
688
  break;
603
689
  }
604
- this.emit(_index4.ZelloEvent.INCOMING_VOICE_MESSAGE_STOPPED, new _index2.ZelloIncomingVoiceMessage(contact, new _index2.ZelloChannelUser(event.channelUserName), parseInt(event.timestamp, 10)));
690
+ this.emit(_index4.ZelloEvent.INCOMING_VOICE_MESSAGE_STOPPED, new _index2.ZelloIncomingVoiceMessage(contact, (0, _index.bridgeChannelUserToSdkChannelUser)(event.channelUser), parseInt(event.timestamp, 10)));
605
691
  break;
606
692
  }
607
693
  case 'onOutgoingVoiceMessageConnecting':
@@ -645,7 +731,7 @@ let Zello = exports.Zello = /*#__PURE__*/function (_EventEmitter) {
645
731
  if (!contact) {
646
732
  break;
647
733
  }
648
- this.emit(_index4.ZelloEvent.INCOMING_IMAGE_MESSAGE_RECEIVED, new _index2.ZelloImageMessage(contact, new _index2.ZelloChannelUser(event.channelUserName), true, parseInt(event.timestamp, 10), event.thumbnail, event.image));
734
+ this.emit(_index4.ZelloEvent.INCOMING_IMAGE_MESSAGE_RECEIVED, new _index2.ZelloImageMessage(contact, (0, _index.bridgeChannelUserToSdkChannelUser)(event.channelUser), true, parseInt(event.timestamp, 10), event.thumbnail, event.image));
649
735
  break;
650
736
  }
651
737
  case 'onOutgoingImageMessageSent':
@@ -672,7 +758,7 @@ let Zello = exports.Zello = /*#__PURE__*/function (_EventEmitter) {
672
758
  if (!contact) {
673
759
  break;
674
760
  }
675
- this.emit(_index4.ZelloEvent.INCOMING_ALERT_MESSAGE_RECEIVED, new _index2.ZelloAlertMessage(contact, new _index2.ZelloChannelUser(event.channelUserName), true, parseInt(event.timestamp, 10), event.text));
761
+ this.emit(_index4.ZelloEvent.INCOMING_ALERT_MESSAGE_RECEIVED, new _index2.ZelloAlertMessage(contact, (0, _index.bridgeChannelUserToSdkChannelUser)(event.channelUser), true, parseInt(event.timestamp, 10), event.text));
676
762
  break;
677
763
  }
678
764
  case 'onOutgoingAlertMessageSent':
@@ -699,7 +785,7 @@ let Zello = exports.Zello = /*#__PURE__*/function (_EventEmitter) {
699
785
  if (!contact) {
700
786
  break;
701
787
  }
702
- this.emit(_index4.ZelloEvent.INCOMING_TEXT_MESSAGE_RECEIVED, new _index2.ZelloTextMessage(contact, new _index2.ZelloChannelUser(event.channelUserName), true, parseInt(event.timestamp, 10), event.text));
788
+ this.emit(_index4.ZelloEvent.INCOMING_TEXT_MESSAGE_RECEIVED, new _index2.ZelloTextMessage(contact, (0, _index.bridgeChannelUserToSdkChannelUser)(event.channelUser), true, parseInt(event.timestamp, 10), event.text));
703
789
  break;
704
790
  }
705
791
  case 'onOutgoingTextMessageSent':
@@ -726,7 +812,7 @@ let Zello = exports.Zello = /*#__PURE__*/function (_EventEmitter) {
726
812
  if (!contact) {
727
813
  break;
728
814
  }
729
- this.emit(_index4.ZelloEvent.INCOMING_LOCATION_MESSAGE_RECEIVED, new _index2.ZelloLocationMessage(contact, new _index2.ZelloChannelUser(event.channelUserName), true, parseInt(event.timestamp, 10), event.latitude, event.longitude, event.accuracy, event.address).contact);
815
+ this.emit(_index4.ZelloEvent.INCOMING_LOCATION_MESSAGE_RECEIVED, new _index2.ZelloLocationMessage(contact, (0, _index.bridgeChannelUserToSdkChannelUser)(event.channelUser), true, parseInt(event.timestamp, 10), event.latitude, event.longitude, event.accuracy, event.address).contact);
730
816
  break;
731
817
  }
732
818
  case 'onOutgoingLocationMessageSent':
@@ -799,8 +885,7 @@ let Zello = exports.Zello = /*#__PURE__*/function (_EventEmitter) {
799
885
  if (!contact) {
800
886
  return undefined;
801
887
  }
802
- const channelUser = recent.channelUser ? new _index2.ZelloChannelUser(recent.channelUser) : undefined;
803
- return new _index2.ZelloRecentEntry(contact, channelUser, parseInt(recent.timestamp, 10), recent.type.toLowerCase(), recent.incoming);
888
+ return new _index2.ZelloRecentEntry(contact, (0, _index.bridgeChannelUserToSdkChannelUser)(event.channelUser), parseInt(recent.timestamp, 10), recent.type.toLowerCase(), recent.incoming);
804
889
  }).filter(recent => recent !== undefined);
805
890
  this.emit(_index4.ZelloEvent.RECENTS_UPDATED, this.recents);
806
891
  break;
@@ -836,6 +921,68 @@ let Zello = exports.Zello = /*#__PURE__*/function (_EventEmitter) {
836
921
  this.processDispatchCallEvent(event);
837
922
  break;
838
923
  }
924
+ case 'onGroupConversationLeft':
925
+ {
926
+ const groupConversation = (0, _index.bridgeContactToSdkContact)(event.conversation);
927
+ if (!groupConversation) {
928
+ break;
929
+ }
930
+ this.emit(_index4.ZelloEvent.GROUP_CONVERSATION_LEFT, groupConversation);
931
+ break;
932
+ }
933
+ case 'onGroupConversationInvite':
934
+ {
935
+ const groupConversation = (0, _index.bridgeContactToSdkContact)(event.conversation);
936
+ if (!groupConversation) {
937
+ break;
938
+ }
939
+ this.emit(_index4.ZelloEvent.GROUP_CONVERSATION_INVITE, groupConversation);
940
+ break;
941
+ }
942
+ case 'onGroupConversationCreated':
943
+ {
944
+ const groupConversation = (0, _index.bridgeContactToSdkContact)(event.conversation);
945
+ if (!groupConversation) {
946
+ break;
947
+ }
948
+ this.emit(_index4.ZelloEvent.GROUP_CONVERSATION_CREATED, groupConversation);
949
+ break;
950
+ }
951
+ case 'onGroupConversationRenamed':
952
+ {
953
+ const groupConversation = (0, _index.bridgeContactToSdkContact)(event.conversation);
954
+ if (!groupConversation) {
955
+ break;
956
+ }
957
+ this.emit(_index4.ZelloEvent.GROUP_CONVERSATION_RENAMED, groupConversation);
958
+ break;
959
+ }
960
+ case 'onGroupConversationUsersAdded':
961
+ {
962
+ const groupConversation = (0, _index.bridgeContactToSdkContact)(event.conversation);
963
+ if (!groupConversation) {
964
+ break;
965
+ }
966
+ const users = event.users.map(user => (0, _index.bridgeChannelUserToSdkChannelUser)(user));
967
+ if (!users || users.length === 0) {
968
+ return;
969
+ }
970
+ this.emit(_index4.ZelloEvent.GROUP_CONVERSATION_USERS_ADDED, groupConversation, users);
971
+ break;
972
+ }
973
+ case 'onGroupConversationUsersLeft':
974
+ {
975
+ const groupConversation = (0, _index.bridgeContactToSdkContact)(event.conversation);
976
+ if (!groupConversation) {
977
+ break;
978
+ }
979
+ const users = event.users.map(user => (0, _index.bridgeChannelUserToSdkChannelUser)(user));
980
+ if (!users || users.length === 0) {
981
+ return;
982
+ }
983
+ this.emit(_index4.ZelloEvent.GROUP_CONVERSATION_USERS_LEFT, groupConversation, users);
984
+ break;
985
+ }
839
986
  default:
840
987
  break;
841
988
  }
@@ -871,6 +1018,7 @@ let Zello = exports.Zello = /*#__PURE__*/function (_EventEmitter) {
871
1018
  value: function clearContactList() {
872
1019
  this.users = [];
873
1020
  this.channels = [];
1021
+ this.groupConversations = [];
874
1022
  }
875
1023
  }], [{
876
1024
  key: "getInstance",