@zelloptt/react-native-zello-sdk 0.3.3 → 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 (150) hide show
  1. package/README.md +22 -4
  2. package/android/build.gradle +5 -3
  3. package/android/src/main/java/com/zellosdk/ZelloAndroidSdkModule.kt +117 -7
  4. package/android/src/main/java/com/zellosdk/ZelloAndroidSdkModuleHelper.kt +76 -8
  5. package/ios/Extensions/ZelloConsoleSettings+Extension.swift +14 -0
  6. package/ios/Extensions/ZelloContact+Extension.swift +56 -2
  7. package/ios/Extensions/ZelloDispatchCall+Extension.swift +13 -0
  8. package/ios/Extensions/ZelloIOSSdkModule+Extension.swift +81 -8
  9. package/ios/ZelloIOSSdkModule.swift +61 -5
  10. package/ios/ZelloIOSSdkModuleBridge.m +14 -1
  11. package/lib/commonjs/docs/assets/highlight.css +18 -4
  12. package/lib/commonjs/docs/assets/navigation.js +1 -1
  13. package/lib/commonjs/docs/assets/navigation.js.map +1 -1
  14. package/lib/commonjs/docs/assets/search.js +1 -1
  15. package/lib/commonjs/docs/assets/search.js.map +1 -1
  16. package/lib/commonjs/docs/classes/sdk.Zello.html +75 -43
  17. package/lib/commonjs/docs/classes/types.ZelloAlertMessage.html +7 -7
  18. package/lib/commonjs/docs/classes/types.ZelloChannel.html +8 -8
  19. package/lib/commonjs/docs/classes/types.ZelloChannelUser.html +5 -4
  20. package/lib/commonjs/docs/classes/types.ZelloDispatchCall.html +7 -0
  21. package/lib/commonjs/docs/classes/types.ZelloDispatchChannel.html +19 -0
  22. package/lib/commonjs/docs/classes/types.ZelloGroupConversation.html +24 -0
  23. package/lib/commonjs/docs/classes/types.ZelloHistoryAlertMessage.html +8 -8
  24. package/lib/commonjs/docs/classes/types.ZelloHistoryImageMessage.html +7 -7
  25. package/lib/commonjs/docs/classes/types.ZelloHistoryLocationMessage.html +11 -11
  26. package/lib/commonjs/docs/classes/types.ZelloHistoryTextMessage.html +8 -8
  27. package/lib/commonjs/docs/classes/types.ZelloHistoryVoiceMessage.html +8 -8
  28. package/lib/commonjs/docs/classes/types.ZelloImageMessage.html +8 -8
  29. package/lib/commonjs/docs/classes/types.ZelloIncomingEmergency.html +7 -7
  30. package/lib/commonjs/docs/classes/types.ZelloIncomingVoiceMessage.html +6 -6
  31. package/lib/commonjs/docs/classes/types.ZelloLocationMessage.html +10 -10
  32. package/lib/commonjs/docs/classes/types.ZelloOutgoingEmergency.html +5 -5
  33. package/lib/commonjs/docs/classes/types.ZelloOutgoingVoiceMessage.html +7 -7
  34. package/lib/commonjs/docs/classes/types.ZelloRecentEntry.html +7 -7
  35. package/lib/commonjs/docs/classes/types.ZelloTextMessage.html +7 -7
  36. package/lib/commonjs/docs/classes/types.ZelloUser.html +10 -8
  37. package/lib/commonjs/docs/classes/types.ZelloUserSupportedFeatures.html +5 -0
  38. package/lib/commonjs/docs/enums/events.ZelloEvent.html +108 -67
  39. package/lib/commonjs/docs/enums/types.ZelloAccountStatus.html +3 -3
  40. package/lib/commonjs/docs/enums/types.ZelloChannelAlertLevel.html +3 -3
  41. package/lib/commonjs/docs/enums/types.ZelloChannelConnectionStatus.html +2 -2
  42. package/lib/commonjs/docs/enums/types.ZelloConnectionError.html +2 -2
  43. package/lib/commonjs/docs/enums/types.ZelloConnectionState.html +2 -2
  44. package/lib/commonjs/docs/enums/types.ZelloContactType.html +4 -2
  45. package/lib/commonjs/docs/enums/types.ZelloDispatchCallStatus.html +6 -0
  46. package/lib/commonjs/docs/enums/types.ZelloOutgoingVoiceMessageError.html +2 -2
  47. package/lib/commonjs/docs/enums/types.ZelloOutgoingVoiceMessageState.html +2 -2
  48. package/lib/commonjs/docs/enums/types.ZelloRecentEntryType.html +2 -2
  49. package/lib/commonjs/docs/enums/types.ZelloUserStatus.html +5 -5
  50. package/lib/commonjs/docs/index.html +16 -8
  51. package/lib/commonjs/docs/modules/events.html +1 -1
  52. package/lib/commonjs/docs/modules/index.html +9 -3
  53. package/lib/commonjs/docs/modules/sdk.html +1 -1
  54. package/lib/commonjs/docs/modules/types.html +7 -1
  55. package/lib/commonjs/docs/types/types.ZelloChannelOptions.html +4 -4
  56. package/lib/commonjs/docs/types/types.ZelloConfig.html +4 -3
  57. package/lib/commonjs/docs/types/types.ZelloConsoleSettings.html +8 -0
  58. package/lib/commonjs/docs/types/types.ZelloContact.html +1 -1
  59. package/lib/commonjs/docs/types/types.ZelloCredentials.html +2 -2
  60. package/lib/commonjs/docs/types/types.ZelloHistoryMessage.html +1 -1
  61. package/lib/commonjs/docs/types/types.ZelloMessage.html +1 -1
  62. package/lib/commonjs/events/index.js +11 -0
  63. package/lib/commonjs/events/index.js.map +1 -1
  64. package/lib/commonjs/sdk/index.js +237 -16
  65. package/lib/commonjs/sdk/index.js.map +1 -1
  66. package/lib/commonjs/types/index.js +110 -4
  67. package/lib/commonjs/types/index.js.map +1 -1
  68. package/lib/commonjs/utils/index.js +73 -9
  69. package/lib/commonjs/utils/index.js.map +1 -1
  70. package/lib/module/docs/assets/highlight.css +18 -4
  71. package/lib/module/docs/assets/navigation.js +1 -1
  72. package/lib/module/docs/assets/navigation.js.map +1 -1
  73. package/lib/module/docs/assets/search.js +1 -1
  74. package/lib/module/docs/assets/search.js.map +1 -1
  75. package/lib/module/docs/classes/sdk.Zello.html +75 -43
  76. package/lib/module/docs/classes/types.ZelloAlertMessage.html +7 -7
  77. package/lib/module/docs/classes/types.ZelloChannel.html +8 -8
  78. package/lib/module/docs/classes/types.ZelloChannelUser.html +5 -4
  79. package/lib/module/docs/classes/types.ZelloDispatchCall.html +7 -0
  80. package/lib/module/docs/classes/types.ZelloDispatchChannel.html +19 -0
  81. package/lib/module/docs/classes/types.ZelloGroupConversation.html +24 -0
  82. package/lib/module/docs/classes/types.ZelloHistoryAlertMessage.html +8 -8
  83. package/lib/module/docs/classes/types.ZelloHistoryImageMessage.html +7 -7
  84. package/lib/module/docs/classes/types.ZelloHistoryLocationMessage.html +11 -11
  85. package/lib/module/docs/classes/types.ZelloHistoryTextMessage.html +8 -8
  86. package/lib/module/docs/classes/types.ZelloHistoryVoiceMessage.html +8 -8
  87. package/lib/module/docs/classes/types.ZelloImageMessage.html +8 -8
  88. package/lib/module/docs/classes/types.ZelloIncomingEmergency.html +7 -7
  89. package/lib/module/docs/classes/types.ZelloIncomingVoiceMessage.html +6 -6
  90. package/lib/module/docs/classes/types.ZelloLocationMessage.html +10 -10
  91. package/lib/module/docs/classes/types.ZelloOutgoingEmergency.html +5 -5
  92. package/lib/module/docs/classes/types.ZelloOutgoingVoiceMessage.html +7 -7
  93. package/lib/module/docs/classes/types.ZelloRecentEntry.html +7 -7
  94. package/lib/module/docs/classes/types.ZelloTextMessage.html +7 -7
  95. package/lib/module/docs/classes/types.ZelloUser.html +10 -8
  96. package/lib/module/docs/classes/types.ZelloUserSupportedFeatures.html +5 -0
  97. package/lib/module/docs/enums/events.ZelloEvent.html +108 -67
  98. package/lib/module/docs/enums/types.ZelloAccountStatus.html +3 -3
  99. package/lib/module/docs/enums/types.ZelloChannelAlertLevel.html +3 -3
  100. package/lib/module/docs/enums/types.ZelloChannelConnectionStatus.html +2 -2
  101. package/lib/module/docs/enums/types.ZelloConnectionError.html +2 -2
  102. package/lib/module/docs/enums/types.ZelloConnectionState.html +2 -2
  103. package/lib/module/docs/enums/types.ZelloContactType.html +4 -2
  104. package/lib/module/docs/enums/types.ZelloDispatchCallStatus.html +6 -0
  105. package/lib/module/docs/enums/types.ZelloOutgoingVoiceMessageError.html +2 -2
  106. package/lib/module/docs/enums/types.ZelloOutgoingVoiceMessageState.html +2 -2
  107. package/lib/module/docs/enums/types.ZelloRecentEntryType.html +2 -2
  108. package/lib/module/docs/enums/types.ZelloUserStatus.html +5 -5
  109. package/lib/module/docs/index.html +16 -8
  110. package/lib/module/docs/modules/events.html +1 -1
  111. package/lib/module/docs/modules/index.html +9 -3
  112. package/lib/module/docs/modules/sdk.html +1 -1
  113. package/lib/module/docs/modules/types.html +7 -1
  114. package/lib/module/docs/types/types.ZelloChannelOptions.html +4 -4
  115. package/lib/module/docs/types/types.ZelloConfig.html +4 -3
  116. package/lib/module/docs/types/types.ZelloConsoleSettings.html +8 -0
  117. package/lib/module/docs/types/types.ZelloContact.html +1 -1
  118. package/lib/module/docs/types/types.ZelloCredentials.html +2 -2
  119. package/lib/module/docs/types/types.ZelloHistoryMessage.html +1 -1
  120. package/lib/module/docs/types/types.ZelloMessage.html +1 -1
  121. package/lib/module/events/index.js +11 -0
  122. package/lib/module/events/index.js.map +1 -1
  123. package/lib/module/sdk/index.js +240 -17
  124. package/lib/module/sdk/index.js.map +1 -1
  125. package/lib/module/types/index.js +115 -3
  126. package/lib/module/types/index.js.map +1 -1
  127. package/lib/module/utils/index.js +71 -10
  128. package/lib/module/utils/index.js.map +1 -1
  129. package/lib/typescript/commonjs/src/events/index.d.ts +65 -2
  130. package/lib/typescript/commonjs/src/events/index.d.ts.map +1 -1
  131. package/lib/typescript/commonjs/src/sdk/index.d.ts +53 -4
  132. package/lib/typescript/commonjs/src/sdk/index.d.ts.map +1 -1
  133. package/lib/typescript/commonjs/src/types/index.d.ts +109 -6
  134. package/lib/typescript/commonjs/src/types/index.d.ts.map +1 -1
  135. package/lib/typescript/commonjs/src/utils/index.d.ts +4 -1
  136. package/lib/typescript/commonjs/src/utils/index.d.ts.map +1 -1
  137. package/lib/typescript/module/src/events/index.d.ts +65 -2
  138. package/lib/typescript/module/src/events/index.d.ts.map +1 -1
  139. package/lib/typescript/module/src/sdk/index.d.ts +53 -4
  140. package/lib/typescript/module/src/sdk/index.d.ts.map +1 -1
  141. package/lib/typescript/module/src/types/index.d.ts +109 -6
  142. package/lib/typescript/module/src/types/index.d.ts.map +1 -1
  143. package/lib/typescript/module/src/utils/index.d.ts +4 -1
  144. package/lib/typescript/module/src/utils/index.d.ts.map +1 -1
  145. package/package.json +1 -2
  146. package/react-native-zello-sdk.podspec +1 -1
  147. package/src/events/index.ts +64 -1
  148. package/src/sdk/index.ts +286 -19
  149. package/src/types/index.ts +152 -5
  150. package/src/utils/index.ts +124 -29
@@ -4,4 +4,4 @@ When a contact is muted, messages from the contact will not play live, but they
4
4
  </div><div class="tsd-comment tsd-typography"></div></li><li class="tsd-parameter"><h5><span class="tsd-kind-property">name</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><p>The name of the contact. Names are unique within their type.
5
5
  When comparing names, it is recommended to do so in a case-insensitive manner.</p>
6
6
  </div><div class="tsd-comment tsd-typography"></div></li><li class="tsd-parameter"><h5><span class="tsd-kind-property">type</span><span class="tsd-signature-symbol">: </span><a href="../enums/types.ZelloContactType.html" class="tsd-signature-type tsd-kind-enum">ZelloContactType</a></h5><div class="tsd-comment tsd-typography"><p>The type of contact.</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/8eb4cdcf259a21da114c05694eba22699f573434/src/types/index.ts#L6">src/types/index.ts:6</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/a9a5fa83bf3e6bba142c78b5f11b0c0c668c23e6/src/types/index.ts#L6">src/types/index.ts:6</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>
@@ -1,6 +1,6 @@
1
1
  <!DOCTYPE html><html class="default" lang="en"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>ZelloCredentials | @zelloptt/react-native-zello-sdk</title><meta name="description" content="Documentation for @zelloptt/react-native-zello-sdk"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><div class="table-cell" id="tsd-search" data-base=".."><div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="../assets/icons.svg#icon-search"></use></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div><div class="field"><div id="tsd-toolbar-links"></div></div><ul class="results"><li class="state loading">Preparing search index...</li><li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">@zelloptt/react-native-zello-sdk</a></div><div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb"><li><a href="../index.html">@zelloptt/react-native-zello-sdk</a></li><li><a href="../modules/types.html">types</a></li><li><a href="types.ZelloCredentials.html">ZelloCredentials</a></li></ul><h1>Type Alias ZelloCredentials</h1></div><div class="tsd-signature"><span class="tsd-kind-type-alias">Zello<wbr/>Credentials</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{ </span><br/><span>    </span><span class="tsd-kind-property">network</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span><br/><span>    </span><span class="tsd-kind-property">password</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span><br/><span>    </span><span class="tsd-kind-property">username</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span><br/><span class="tsd-signature-symbol">}</span></div><div class="tsd-comment tsd-typography"><p>The credentials required to connect to Zello.</p>
2
2
  </div><div class="tsd-type-declaration"><h4>Type declaration</h4><ul class="tsd-parameters"><li class="tsd-parameter"><h5><span class="tsd-kind-property">network</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><p>The network to connect to.
3
- This is the &quot;x&quot; in your {<a href="http://x.zellowork.com">x.zellowork.com</a>} Zello Work console login.</p>
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/8eb4cdcf259a21da114c05694eba22699f573434/src/types/index.ts#L190">src/types/index.ts:190</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/a9a5fa83bf3e6bba142c78b5f11b0c0c668c23e6/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/8eb4cdcf259a21da114c05694eba22699f573434/src/types/index.ts#L601">src/types/index.ts:601</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/a9a5fa83bf3e6bba142c78b5f11b0c0c668c23e6/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/8eb4cdcf259a21da114c05694eba22699f573434/src/types/index.ts#L251">src/types/index.ts:251</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/a9a5fa83bf3e6bba142c78b5f11b0c0c668c23e6/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>
@@ -34,6 +34,17 @@ export let ZelloEvent = /*#__PURE__*/function (ZelloEvent) {
34
34
  ZelloEvent["HISTORY_UPDATED"] = "onHistoryUpdated";
35
35
  ZelloEvent["HISTORY_PLAYBACK_STARTED"] = "onHistoryPlaybackStarted";
36
36
  ZelloEvent["HISTORY_PLAYBACK_STOPPED"] = "onHistoryPlaybackStopped";
37
+ ZelloEvent["DISPATCH_CALL_PENDING"] = "onDispatchCallPending";
38
+ ZelloEvent["DISPATCH_CALL_ACTIVE"] = "onDispatchCallActive";
39
+ ZelloEvent["DISPATCH_CALL_TRANSFERRED"] = "onDispatchCallTransferred";
40
+ ZelloEvent["DISPATCH_CALL_ENDED"] = "onDispatchCallEnded";
41
+ ZelloEvent["CONSOLE_SETTINGS_CHANGED"] = "onConsoleSettingsChanged";
42
+ ZelloEvent["GROUP_CONVERSATION_CREATED"] = "onGroupConversationCreated";
43
+ ZelloEvent["GROUP_CONVERSATION_INVITE"] = "onGroupConversationInvite";
44
+ ZelloEvent["GROUP_CONVERSATION_USERS_ADDED"] = "onGroupConversationUsersAdded";
45
+ ZelloEvent["GROUP_CONVERSATION_USERS_LEFT"] = "onGroupConversationUsersLeft";
46
+ ZelloEvent["GROUP_CONVERSATION_LEFT"] = "onGroupConversationLeft";
47
+ ZelloEvent["GROUP_CONVERSATION_RENAMED"] = "onGroupConversationRenamed";
37
48
  return ZelloEvent;
38
49
  }({});
39
50
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["ZelloEvent"],"sourceRoot":"../../../src","sources":["events/index.ts"],"mappings":";;AAAA,WAAYA,UAAU,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;EAAA,OAAVA,UAAU;AAAA","ignoreList":[]}
1
+ {"version":3,"names":["ZelloEvent"],"sourceRoot":"../../../src","sources":["events/index.ts"],"mappings":";;AAAA,WAAYA,UAAU,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":[]}
@@ -14,9 +14,11 @@ function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf
14
14
  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
15
15
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
16
16
  function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
17
+ // noinspection JSUnusedGlobalSymbols
18
+
17
19
  import { NativeEventEmitter, NativeModules } from 'react-native';
18
- import { isAndroid } from "../utils/index.js";
19
- import { ZelloAccountStatus, ZelloAlertMessage, ZelloChannelUser, ZelloConnectionError, ZelloConnectionState, ZelloContactType, ZelloImageMessage, ZelloIncomingVoiceMessage, ZelloLocationMessage, ZelloOutgoingEmergency, ZelloOutgoingVoiceMessage, ZelloOutgoingVoiceMessageError, ZelloOutgoingVoiceMessageState, ZelloRecentEntry, ZelloTextMessage } from "../types/index.js";
20
+ import { bridgeCallToSdkCall, bridgeChannelUserToSdkChannelUser, bridgeConsoleSettingsToSdkConsoleSettings, isAndroid } from "../utils/index.js";
21
+ import { ZelloAccountStatus, ZelloAlertMessage, ZelloConnectionError, ZelloConnectionState, ZelloContactType, ZelloImageMessage, ZelloIncomingVoiceMessage, ZelloLocationMessage, ZelloOutgoingEmergency, ZelloOutgoingVoiceMessage, ZelloOutgoingVoiceMessageError, ZelloOutgoingVoiceMessageState, ZelloRecentEntry, ZelloTextMessage } from "../types/index.js";
20
22
  import EventEmitter from 'react-native/Libraries/vendor/emitter/EventEmitter';
21
23
  import { compareNameAscending, sortedArrayFind } from "../utils/algorithms/index.js";
22
24
  import { bridgeContactToSdkContact, bridgeHistoryMessageToSdkHistoryMessage, bridgeIncomingEmergencyToSdkIncomingEmergency } from "../utils/index.js";
@@ -51,6 +53,10 @@ export let Zello = /*#__PURE__*/function (_EventEmitter) {
51
53
  * The list of {@link ZelloChannel} in the contact list. Sorted by name, ascending.
52
54
  */
53
55
  _defineProperty(_this, "channels", []);
56
+ /**
57
+ * The list of {@link ZelloGroupConversation} in the contact list. Sorted by name, ascending.
58
+ */
59
+ _defineProperty(_this, "groupConversations", []);
54
60
  /**
55
61
  * The current account status. undefined when {@link state} is not {@link ZelloConnectionState.Connected}.
56
62
  */
@@ -84,6 +90,11 @@ export let Zello = /*#__PURE__*/function (_EventEmitter) {
84
90
  * The currently playing history voice message.
85
91
  */
86
92
  _defineProperty(_this, "historyVoiceMessage", void 0);
93
+ /**
94
+ * The console settings for the network.
95
+ * This is only expected to be valid when {@link state} is {@link ZelloConnectionState.Connected}.
96
+ */
97
+ _defineProperty(_this, "consoleSettings", void 0);
87
98
  _defineProperty(_this, "eventListener", void 0);
88
99
  const sdk = Zello.getSdk();
89
100
  if (sdk) {
@@ -100,9 +111,6 @@ export let Zello = /*#__PURE__*/function (_EventEmitter) {
100
111
 
101
112
  /**
102
113
  * Sets configuration variables for the SDK.
103
- *
104
- * At the moment, this is only functional on Android.
105
- *
106
114
  * @param config The configuration to set.
107
115
  */
108
116
  _inherits(Zello, _EventEmitter);
@@ -112,7 +120,7 @@ export let Zello = /*#__PURE__*/function (_EventEmitter) {
112
120
  if (isAndroid) {
113
121
  ZelloAndroidSdkModule.configure(config.android.enableOfflineMessagePushNotifications, config.android.enableForegroundService);
114
122
  } else {
115
- ZelloIOSSdkModule.configure(config.ios.isDebugBuild);
123
+ ZelloIOSSdkModule.configure(config.ios.isDebugBuild, config.ios.appGroup);
116
124
  }
117
125
  }
118
126
 
@@ -179,6 +187,17 @@ export let Zello = /*#__PURE__*/function (_EventEmitter) {
179
187
  return sortedArrayFind(this.channels, name, compareNameAscending);
180
188
  }
181
189
 
190
+ /**
191
+ * Returns the group conversation with the given name. Case-insensitive.
192
+ * @param name The name of the group conversation to search for.
193
+ * @return The group conversation with the given name, or null if no group conversation with that name exists.
194
+ */
195
+ }, {
196
+ key: "getGroupConversation",
197
+ value: function getGroupConversation(name) {
198
+ return sortedArrayFind(this.groupConversations, name, compareNameAscending);
199
+ }
200
+
182
201
  /**
183
202
  * Sets the selected contact.
184
203
  * While optional, this is typically used for tracking the contact that the user is currently interacting with.
@@ -223,7 +242,11 @@ export let Zello = /*#__PURE__*/function (_EventEmitter) {
223
242
  if (isAndroid) {
224
243
  ZelloAndroidSdkModule.connectChannel(channel.name);
225
244
  } else {
226
- ZelloIOSSdkModule.connectChannel(channel.name);
245
+ if (channel.type === ZelloContactType.GroupConversation) {
246
+ ZelloIOSSdkModule.connectGroupConversation(channel.name);
247
+ } else {
248
+ ZelloIOSSdkModule.connectChannel(channel.name);
249
+ }
227
250
  }
228
251
  }
229
252
 
@@ -239,7 +262,11 @@ export let Zello = /*#__PURE__*/function (_EventEmitter) {
239
262
  if (isAndroid) {
240
263
  ZelloAndroidSdkModule.disconnectChannel(channel.name);
241
264
  } else {
242
- ZelloIOSSdkModule.disconnectChannel(channel.name);
265
+ if (channel.type === ZelloContactType.GroupConversation) {
266
+ ZelloIOSSdkModule.disconnectGroupConversation(channel.name);
267
+ } else {
268
+ ZelloIOSSdkModule.disconnectChannel(channel.name);
269
+ }
243
270
  }
244
271
  }
245
272
 
@@ -492,6 +519,99 @@ export let Zello = /*#__PURE__*/function (_EventEmitter) {
492
519
  }
493
520
  });
494
521
  }
522
+
523
+ /**
524
+ * Ends the dispatch call for the given dispatch channel.
525
+ * This will trigger the {@link ZelloEvent.DISPATCH_CALL_ENDED} event.
526
+ *
527
+ * If {@link consoleSettings | ZelloConsoleSettings.allowNonDispatchersToEndCalls} is false, this method will do nothing.
528
+ *
529
+ * @param channel The dispatch channel to end the call for.
530
+ */
531
+ }, {
532
+ key: "endDispatchCall",
533
+ value: function endDispatchCall(channel) {
534
+ if (isAndroid) {
535
+ ZelloAndroidSdkModule.endDispatchCall(channel.name);
536
+ } else {
537
+ ZelloIOSSdkModule.endDispatchCall(channel.name);
538
+ }
539
+ }
540
+
541
+ /**
542
+ * Creates a new group conversation with the given users.
543
+ * This will trigger the {@link ZelloEvent.GROUP_CONVERSATION_CREATED} and {@link ZelloEvent.CONTACT_LIST_UPDATED} events.
544
+ * @param users The users to create the group conversation with.
545
+ * @param displayName Optional; The display name of the group conversation. The conversation can be renamed later by using {@link renameGroupConversation}.
546
+ */
547
+ }, {
548
+ key: "createGroupConversation",
549
+ value: function createGroupConversation(users, displayName) {
550
+ if (!this.consoleSettings?.allowGroupConversations) {
551
+ return;
552
+ }
553
+ if (isAndroid) {
554
+ ZelloAndroidSdkModule.createGroupConversation(users.map(user => user.name), displayName);
555
+ } else {
556
+ ZelloIOSSdkModule.createGroupConversation(users.map(user => user.name), displayName);
557
+ }
558
+ }
559
+
560
+ /**
561
+ * Adds users to the given group conversation.
562
+ * This will trigger the {@link ZelloEvent.GROUP_CONVERSATION_USERS_ADDED} and {@link ZelloEvent.CONTACT_LIST_UPDATED} events.
563
+ * @param groupConversation The group conversation to add users to.
564
+ * @param users The users to add to the group conversation.
565
+ */
566
+ }, {
567
+ key: "addUsersToGroupConversation",
568
+ value: function addUsersToGroupConversation(groupConversation, users) {
569
+ if (!this.consoleSettings?.allowGroupConversations) {
570
+ return;
571
+ }
572
+ if (isAndroid) {
573
+ ZelloAndroidSdkModule.addUsersToGroupConversation(groupConversation.name, users.map(user => user.name));
574
+ } else {
575
+ ZelloIOSSdkModule.addUsersToGroupConversation(groupConversation.name, users.map(user => user.name));
576
+ }
577
+ }
578
+
579
+ /**
580
+ * Removes the user from the group conversation.
581
+ * This will trigger the {@link ZelloEvent.GROUP_CONVERSATION_LEFT} and {@link ZelloEvent.CONTACT_LIST_UPDATED} events.
582
+ * @param groupConversation The group conversation to leave.
583
+ */
584
+ }, {
585
+ key: "leaveGroupConversation",
586
+ value: function leaveGroupConversation(groupConversation) {
587
+ if (!this.consoleSettings?.allowGroupConversations) {
588
+ return;
589
+ }
590
+ if (isAndroid) {
591
+ ZelloAndroidSdkModule.leaveGroupConversation(groupConversation.name);
592
+ } else {
593
+ ZelloIOSSdkModule.leaveGroupConversation(groupConversation.name);
594
+ }
595
+ }
596
+
597
+ /**
598
+ * Renames the group conversation.
599
+ * This will trigger the {@link ZelloEvent.GROUP_CONVERSATION_RENAMED} and {@link ZelloEvent.CONTACT_LIST_UPDATED} events.
600
+ * @param groupConversation The group conversation to rename.
601
+ * @param name The new name for the group conversation.
602
+ */
603
+ }, {
604
+ key: "renameGroupConversation",
605
+ value: function renameGroupConversation(groupConversation, name) {
606
+ if (!this.consoleSettings?.allowGroupConversations) {
607
+ return;
608
+ }
609
+ if (isAndroid) {
610
+ ZelloAndroidSdkModule.renameGroupConversation(groupConversation.name, name);
611
+ } else {
612
+ ZelloIOSSdkModule.renameGroupConversation(groupConversation.name, name);
613
+ }
614
+ }
495
615
  }, {
496
616
  key: "setupEventListener",
497
617
  value: function setupEventListener(eventEmitter) {
@@ -536,10 +656,12 @@ export let Zello = /*#__PURE__*/function (_EventEmitter) {
536
656
  this.users.sort(compareNameAscending);
537
657
  this.channels = event.channels.map(channel => bridgeContactToSdkContact(channel));
538
658
  this.channels.sort(compareNameAscending);
659
+ this.groupConversations = event.groupConversations.map(groupConversation => bridgeContactToSdkContact(groupConversation));
660
+ this.groupConversations.sort(compareNameAscending);
539
661
  if (event.emergencyChannel) {
540
662
  this.emergencyChannel = bridgeContactToSdkContact(event.emergencyChannel);
541
663
  }
542
- this.emit(ZelloEvent.CONTACT_LIST_UPDATED, this.users, this.channels);
664
+ this.emit(ZelloEvent.CONTACT_LIST_UPDATED, this.users, this.channels, this.groupConversations);
543
665
  break;
544
666
  }
545
667
  case 'onSelectedContactChanged':
@@ -563,7 +685,7 @@ export let Zello = /*#__PURE__*/function (_EventEmitter) {
563
685
  if (!contact) {
564
686
  break;
565
687
  }
566
- this.incomingVoiceMessage = new ZelloIncomingVoiceMessage(contact, new ZelloChannelUser(event.channelUserName), parseInt(event.timestamp, 10));
688
+ this.incomingVoiceMessage = new ZelloIncomingVoiceMessage(contact, bridgeChannelUserToSdkChannelUser(event.channelUser), parseInt(event.timestamp, 10));
567
689
  this.emit(ZelloEvent.INCOMING_VOICE_MESSAGE_STARTED, this.incomingVoiceMessage);
568
690
  break;
569
691
  }
@@ -574,7 +696,7 @@ export let Zello = /*#__PURE__*/function (_EventEmitter) {
574
696
  if (!contact) {
575
697
  break;
576
698
  }
577
- this.emit(ZelloEvent.INCOMING_VOICE_MESSAGE_STOPPED, new ZelloIncomingVoiceMessage(contact, new ZelloChannelUser(event.channelUserName), parseInt(event.timestamp, 10)));
699
+ this.emit(ZelloEvent.INCOMING_VOICE_MESSAGE_STOPPED, new ZelloIncomingVoiceMessage(contact, bridgeChannelUserToSdkChannelUser(event.channelUser), parseInt(event.timestamp, 10)));
578
700
  break;
579
701
  }
580
702
  case 'onOutgoingVoiceMessageConnecting':
@@ -618,7 +740,7 @@ export let Zello = /*#__PURE__*/function (_EventEmitter) {
618
740
  if (!contact) {
619
741
  break;
620
742
  }
621
- this.emit(ZelloEvent.INCOMING_IMAGE_MESSAGE_RECEIVED, new ZelloImageMessage(contact, new ZelloChannelUser(event.channelUserName), true, parseInt(event.timestamp, 10), event.thumbnail, event.image));
743
+ this.emit(ZelloEvent.INCOMING_IMAGE_MESSAGE_RECEIVED, new ZelloImageMessage(contact, bridgeChannelUserToSdkChannelUser(event.channelUser), true, parseInt(event.timestamp, 10), event.thumbnail, event.image));
622
744
  break;
623
745
  }
624
746
  case 'onOutgoingImageMessageSent':
@@ -645,7 +767,7 @@ export let Zello = /*#__PURE__*/function (_EventEmitter) {
645
767
  if (!contact) {
646
768
  break;
647
769
  }
648
- this.emit(ZelloEvent.INCOMING_ALERT_MESSAGE_RECEIVED, new ZelloAlertMessage(contact, new ZelloChannelUser(event.channelUserName), true, parseInt(event.timestamp, 10), event.text));
770
+ this.emit(ZelloEvent.INCOMING_ALERT_MESSAGE_RECEIVED, new ZelloAlertMessage(contact, bridgeChannelUserToSdkChannelUser(event.channelUser), true, parseInt(event.timestamp, 10), event.text));
649
771
  break;
650
772
  }
651
773
  case 'onOutgoingAlertMessageSent':
@@ -672,7 +794,7 @@ export let Zello = /*#__PURE__*/function (_EventEmitter) {
672
794
  if (!contact) {
673
795
  break;
674
796
  }
675
- this.emit(ZelloEvent.INCOMING_TEXT_MESSAGE_RECEIVED, new ZelloTextMessage(contact, new ZelloChannelUser(event.channelUserName), true, parseInt(event.timestamp, 10), event.text));
797
+ this.emit(ZelloEvent.INCOMING_TEXT_MESSAGE_RECEIVED, new ZelloTextMessage(contact, bridgeChannelUserToSdkChannelUser(event.channelUser), true, parseInt(event.timestamp, 10), event.text));
676
798
  break;
677
799
  }
678
800
  case 'onOutgoingTextMessageSent':
@@ -699,7 +821,7 @@ export let Zello = /*#__PURE__*/function (_EventEmitter) {
699
821
  if (!contact) {
700
822
  break;
701
823
  }
702
- this.emit(ZelloEvent.INCOMING_LOCATION_MESSAGE_RECEIVED, new ZelloLocationMessage(contact, new ZelloChannelUser(event.channelUserName), true, parseInt(event.timestamp, 10), event.latitude, event.longitude, event.accuracy, event.address).contact);
824
+ this.emit(ZelloEvent.INCOMING_LOCATION_MESSAGE_RECEIVED, new ZelloLocationMessage(contact, bridgeChannelUserToSdkChannelUser(event.channelUser), true, parseInt(event.timestamp, 10), event.latitude, event.longitude, event.accuracy, event.address).contact);
703
825
  break;
704
826
  }
705
827
  case 'onOutgoingLocationMessageSent':
@@ -772,8 +894,7 @@ export let Zello = /*#__PURE__*/function (_EventEmitter) {
772
894
  if (!contact) {
773
895
  return undefined;
774
896
  }
775
- const channelUser = recent.channelUser ? new ZelloChannelUser(recent.channelUser) : undefined;
776
- return new ZelloRecentEntry(contact, channelUser, parseInt(recent.timestamp, 10), recent.type.toLowerCase(), recent.incoming);
897
+ return new ZelloRecentEntry(contact, bridgeChannelUserToSdkChannelUser(event.channelUser), parseInt(recent.timestamp, 10), recent.type.toLowerCase(), recent.incoming);
777
898
  }).filter(recent => recent !== undefined);
778
899
  this.emit(ZelloEvent.RECENTS_UPDATED, this.recents);
779
900
  break;
@@ -795,16 +916,118 @@ export let Zello = /*#__PURE__*/function (_EventEmitter) {
795
916
  this.emit(ZelloEvent.HISTORY_PLAYBACK_STOPPED, this.historyVoiceMessage);
796
917
  break;
797
918
  }
919
+ case 'onConsoleSettingsChanged':
920
+ {
921
+ this.consoleSettings = bridgeConsoleSettingsToSdkConsoleSettings(event);
922
+ this.emit(ZelloEvent.CONSOLE_SETTINGS_CHANGED, this.consoleSettings);
923
+ break;
924
+ }
925
+ case 'onDispatchCallTransferred':
926
+ case 'onDispatchCallEnded':
927
+ case 'onDispatchCallActive':
928
+ case 'onDispatchCallPending':
929
+ {
930
+ this.processDispatchCallEvent(event);
931
+ break;
932
+ }
933
+ case 'onGroupConversationLeft':
934
+ {
935
+ const groupConversation = bridgeContactToSdkContact(event.conversation);
936
+ if (!groupConversation) {
937
+ break;
938
+ }
939
+ this.emit(ZelloEvent.GROUP_CONVERSATION_LEFT, groupConversation);
940
+ break;
941
+ }
942
+ case 'onGroupConversationInvite':
943
+ {
944
+ const groupConversation = bridgeContactToSdkContact(event.conversation);
945
+ if (!groupConversation) {
946
+ break;
947
+ }
948
+ this.emit(ZelloEvent.GROUP_CONVERSATION_INVITE, groupConversation);
949
+ break;
950
+ }
951
+ case 'onGroupConversationCreated':
952
+ {
953
+ const groupConversation = bridgeContactToSdkContact(event.conversation);
954
+ if (!groupConversation) {
955
+ break;
956
+ }
957
+ this.emit(ZelloEvent.GROUP_CONVERSATION_CREATED, groupConversation);
958
+ break;
959
+ }
960
+ case 'onGroupConversationRenamed':
961
+ {
962
+ const groupConversation = bridgeContactToSdkContact(event.conversation);
963
+ if (!groupConversation) {
964
+ break;
965
+ }
966
+ this.emit(ZelloEvent.GROUP_CONVERSATION_RENAMED, groupConversation);
967
+ break;
968
+ }
969
+ case 'onGroupConversationUsersAdded':
970
+ {
971
+ const groupConversation = bridgeContactToSdkContact(event.conversation);
972
+ if (!groupConversation) {
973
+ break;
974
+ }
975
+ const users = event.users.map(user => bridgeChannelUserToSdkChannelUser(user));
976
+ if (!users || users.length === 0) {
977
+ return;
978
+ }
979
+ this.emit(ZelloEvent.GROUP_CONVERSATION_USERS_ADDED, groupConversation, users);
980
+ break;
981
+ }
982
+ case 'onGroupConversationUsersLeft':
983
+ {
984
+ const groupConversation = bridgeContactToSdkContact(event.conversation);
985
+ if (!groupConversation) {
986
+ break;
987
+ }
988
+ const users = event.users.map(user => bridgeChannelUserToSdkChannelUser(user));
989
+ if (!users || users.length === 0) {
990
+ return;
991
+ }
992
+ this.emit(ZelloEvent.GROUP_CONVERSATION_USERS_LEFT, groupConversation, users);
993
+ break;
994
+ }
798
995
  default:
799
996
  break;
800
997
  }
801
998
  });
802
999
  }
1000
+ }, {
1001
+ key: "processDispatchCallEvent",
1002
+ value: function processDispatchCallEvent(event) {
1003
+ const channel = bridgeContactToSdkContact(event.channel);
1004
+ const call = bridgeCallToSdkCall(event.call);
1005
+ if (!channel || !call) {
1006
+ return;
1007
+ }
1008
+ switch (event.name) {
1009
+ case 'onDispatchCallTransferred':
1010
+ this.emit(ZelloEvent.DISPATCH_CALL_TRANSFERRED, channel, call);
1011
+ break;
1012
+ case 'onDispatchCallEnded':
1013
+ this.emit(ZelloEvent.DISPATCH_CALL_ENDED, channel, call);
1014
+ break;
1015
+ case 'onDispatchCallActive':
1016
+ this.emit(ZelloEvent.DISPATCH_CALL_ACTIVE, channel, call);
1017
+ break;
1018
+ case 'onDispatchCallPending':
1019
+ this.emit(ZelloEvent.DISPATCH_CALL_PENDING, channel, call);
1020
+ break;
1021
+ default:
1022
+ break;
1023
+ }
1024
+ }
803
1025
  }, {
804
1026
  key: "clearContactList",
805
1027
  value: function clearContactList() {
806
1028
  this.users = [];
807
1029
  this.channels = [];
1030
+ this.groupConversations = [];
808
1031
  }
809
1032
  }], [{
810
1033
  key: "getInstance",