@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.
- package/README.md +9 -4
- package/android/build.gradle +1 -1
- package/android/src/main/java/com/zellosdk/ZelloAndroidSdkModule.kt +103 -29
- package/android/src/main/java/com/zellosdk/ZelloAndroidSdkModuleHelper.kt +53 -8
- package/ios/Extensions/ZelloConsoleSettings+Extension.swift +6 -1
- package/ios/Extensions/ZelloContact+Extension.swift +51 -0
- package/ios/Extensions/ZelloIOSSdkModule+Extension.swift +49 -9
- package/ios/ZelloIOSSdkModule.swift +88 -27
- package/ios/ZelloIOSSdkModuleBridge.m +22 -11
- package/lib/commonjs/docs/assets/navigation.js +1 -1
- package/lib/commonjs/docs/assets/navigation.js.map +1 -1
- package/lib/commonjs/docs/assets/search.js +1 -1
- package/lib/commonjs/docs/assets/search.js.map +1 -1
- package/lib/commonjs/docs/classes/sdk.Zello.html +69 -45
- package/lib/commonjs/docs/classes/types.ZelloAlertMessage.html +7 -7
- package/lib/commonjs/docs/classes/types.ZelloChannel.html +8 -8
- package/lib/commonjs/docs/classes/types.ZelloChannelUser.html +5 -4
- package/lib/commonjs/docs/classes/types.ZelloDispatchCall.html +4 -4
- package/lib/commonjs/docs/classes/types.ZelloDispatchChannel.html +9 -9
- package/lib/commonjs/docs/classes/types.ZelloGroupConversation.html +24 -0
- package/lib/commonjs/docs/classes/types.ZelloHistoryAlertMessage.html +8 -8
- package/lib/commonjs/docs/classes/types.ZelloHistoryImageMessage.html +7 -7
- package/lib/commonjs/docs/classes/types.ZelloHistoryLocationMessage.html +11 -11
- package/lib/commonjs/docs/classes/types.ZelloHistoryTextMessage.html +8 -8
- package/lib/commonjs/docs/classes/types.ZelloHistoryVoiceMessage.html +8 -8
- package/lib/commonjs/docs/classes/types.ZelloImageMessage.html +8 -8
- package/lib/commonjs/docs/classes/types.ZelloIncomingEmergency.html +7 -7
- package/lib/commonjs/docs/classes/types.ZelloIncomingVoiceMessage.html +6 -6
- package/lib/commonjs/docs/classes/types.ZelloLocationMessage.html +10 -10
- package/lib/commonjs/docs/classes/types.ZelloOutgoingEmergency.html +5 -5
- package/lib/commonjs/docs/classes/types.ZelloOutgoingVoiceMessage.html +7 -7
- package/lib/commonjs/docs/classes/types.ZelloRecentEntry.html +7 -7
- package/lib/commonjs/docs/classes/types.ZelloTextMessage.html +7 -7
- package/lib/commonjs/docs/classes/types.ZelloUser.html +10 -8
- package/lib/commonjs/docs/classes/types.ZelloUserSupportedFeatures.html +5 -0
- package/lib/commonjs/docs/enums/events.ZelloEvent.html +107 -82
- package/lib/commonjs/docs/enums/types.ZelloAccountStatus.html +4 -4
- package/lib/commonjs/docs/enums/types.ZelloChannelAlertLevel.html +4 -4
- package/lib/commonjs/docs/enums/types.ZelloChannelConnectionStatus.html +2 -2
- package/lib/commonjs/docs/enums/types.ZelloConnectionError.html +2 -2
- package/lib/commonjs/docs/enums/types.ZelloConnectionState.html +2 -2
- package/lib/commonjs/docs/enums/types.ZelloContactType.html +4 -2
- package/lib/commonjs/docs/enums/types.ZelloDispatchCallStatus.html +2 -2
- package/lib/commonjs/docs/enums/types.ZelloOutgoingVoiceMessageError.html +2 -2
- package/lib/commonjs/docs/enums/types.ZelloOutgoingVoiceMessageState.html +2 -2
- package/lib/commonjs/docs/enums/types.ZelloRecentEntryType.html +2 -2
- package/lib/commonjs/docs/enums/types.ZelloUserStatus.html +6 -6
- package/lib/commonjs/docs/index.html +7 -4
- package/lib/commonjs/docs/modules/events.html +1 -1
- package/lib/commonjs/docs/modules/index.html +4 -2
- package/lib/commonjs/docs/modules/sdk.html +1 -1
- package/lib/commonjs/docs/modules/types.html +4 -2
- package/lib/commonjs/docs/types/types.ZelloChannelOptions.html +4 -4
- package/lib/commonjs/docs/types/types.ZelloConfig.html +1 -1
- package/lib/commonjs/docs/types/types.ZelloConsoleSettings.html +8 -0
- package/lib/commonjs/docs/types/types.ZelloContact.html +1 -1
- package/lib/commonjs/docs/types/types.ZelloCredentials.html +1 -1
- package/lib/commonjs/docs/types/types.ZelloHistoryMessage.html +1 -1
- package/lib/commonjs/docs/types/types.ZelloMessage.html +1 -1
- package/lib/commonjs/events/index.js +6 -0
- package/lib/commonjs/events/index.js.map +1 -1
- package/lib/commonjs/sdk/index.js +195 -47
- package/lib/commonjs/sdk/index.js.map +1 -1
- package/lib/commonjs/types/index.js +56 -12
- package/lib/commonjs/types/index.js.map +1 -1
- package/lib/commonjs/utils/index.js +41 -10
- package/lib/commonjs/utils/index.js.map +1 -1
- package/lib/module/docs/assets/navigation.js +1 -1
- package/lib/module/docs/assets/navigation.js.map +1 -1
- package/lib/module/docs/assets/search.js +1 -1
- package/lib/module/docs/assets/search.js.map +1 -1
- package/lib/module/docs/classes/sdk.Zello.html +69 -45
- package/lib/module/docs/classes/types.ZelloAlertMessage.html +7 -7
- package/lib/module/docs/classes/types.ZelloChannel.html +8 -8
- package/lib/module/docs/classes/types.ZelloChannelUser.html +5 -4
- package/lib/module/docs/classes/types.ZelloDispatchCall.html +4 -4
- package/lib/module/docs/classes/types.ZelloDispatchChannel.html +9 -9
- package/lib/module/docs/classes/types.ZelloGroupConversation.html +24 -0
- package/lib/module/docs/classes/types.ZelloHistoryAlertMessage.html +8 -8
- package/lib/module/docs/classes/types.ZelloHistoryImageMessage.html +7 -7
- package/lib/module/docs/classes/types.ZelloHistoryLocationMessage.html +11 -11
- package/lib/module/docs/classes/types.ZelloHistoryTextMessage.html +8 -8
- package/lib/module/docs/classes/types.ZelloHistoryVoiceMessage.html +8 -8
- package/lib/module/docs/classes/types.ZelloImageMessage.html +8 -8
- package/lib/module/docs/classes/types.ZelloIncomingEmergency.html +7 -7
- package/lib/module/docs/classes/types.ZelloIncomingVoiceMessage.html +6 -6
- package/lib/module/docs/classes/types.ZelloLocationMessage.html +10 -10
- package/lib/module/docs/classes/types.ZelloOutgoingEmergency.html +5 -5
- package/lib/module/docs/classes/types.ZelloOutgoingVoiceMessage.html +7 -7
- package/lib/module/docs/classes/types.ZelloRecentEntry.html +7 -7
- package/lib/module/docs/classes/types.ZelloTextMessage.html +7 -7
- package/lib/module/docs/classes/types.ZelloUser.html +10 -8
- package/lib/module/docs/classes/types.ZelloUserSupportedFeatures.html +5 -0
- package/lib/module/docs/enums/events.ZelloEvent.html +107 -82
- package/lib/module/docs/enums/types.ZelloAccountStatus.html +4 -4
- package/lib/module/docs/enums/types.ZelloChannelAlertLevel.html +4 -4
- package/lib/module/docs/enums/types.ZelloChannelConnectionStatus.html +2 -2
- package/lib/module/docs/enums/types.ZelloConnectionError.html +2 -2
- package/lib/module/docs/enums/types.ZelloConnectionState.html +2 -2
- package/lib/module/docs/enums/types.ZelloContactType.html +4 -2
- package/lib/module/docs/enums/types.ZelloDispatchCallStatus.html +2 -2
- package/lib/module/docs/enums/types.ZelloOutgoingVoiceMessageError.html +2 -2
- package/lib/module/docs/enums/types.ZelloOutgoingVoiceMessageState.html +2 -2
- package/lib/module/docs/enums/types.ZelloRecentEntryType.html +2 -2
- package/lib/module/docs/enums/types.ZelloUserStatus.html +6 -6
- package/lib/module/docs/index.html +7 -4
- package/lib/module/docs/modules/events.html +1 -1
- package/lib/module/docs/modules/index.html +4 -2
- package/lib/module/docs/modules/sdk.html +1 -1
- package/lib/module/docs/modules/types.html +4 -2
- package/lib/module/docs/types/types.ZelloChannelOptions.html +4 -4
- package/lib/module/docs/types/types.ZelloConfig.html +1 -1
- package/lib/module/docs/types/types.ZelloConsoleSettings.html +8 -0
- package/lib/module/docs/types/types.ZelloContact.html +1 -1
- package/lib/module/docs/types/types.ZelloCredentials.html +1 -1
- package/lib/module/docs/types/types.ZelloHistoryMessage.html +1 -1
- package/lib/module/docs/types/types.ZelloMessage.html +1 -1
- package/lib/module/events/index.js +6 -0
- package/lib/module/events/index.js.map +1 -1
- package/lib/module/sdk/index.js +197 -49
- package/lib/module/sdk/index.js.map +1 -1
- package/lib/module/types/index.js +57 -11
- package/lib/module/types/index.js.map +1 -1
- package/lib/module/utils/index.js +41 -11
- package/lib/module/utils/index.js.map +1 -1
- package/lib/typescript/commonjs/src/events/index.d.ts +38 -1
- package/lib/typescript/commonjs/src/events/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/sdk/index.d.ts +38 -4
- package/lib/typescript/commonjs/src/sdk/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/types/index.d.ts +66 -10
- package/lib/typescript/commonjs/src/types/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/index.d.ts +2 -1
- package/lib/typescript/commonjs/src/utils/index.d.ts.map +1 -1
- package/lib/typescript/module/src/events/index.d.ts +38 -1
- package/lib/typescript/module/src/events/index.d.ts.map +1 -1
- package/lib/typescript/module/src/sdk/index.d.ts +38 -4
- package/lib/typescript/module/src/sdk/index.d.ts.map +1 -1
- package/lib/typescript/module/src/types/index.d.ts +66 -10
- package/lib/typescript/module/src/types/index.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/index.d.ts +2 -1
- package/lib/typescript/module/src/utils/index.d.ts.map +1 -1
- package/package.json +2 -1
- package/react-native-zello-sdk.podspec +1 -1
- package/src/events/index.ts +37 -0
- package/src/sdk/index.ts +237 -50
- package/src/types/index.ts +90 -12
- package/src/utils/index.ts +65 -20
- package/lib/commonjs/docs/classes/types.ZelloConsoleSettings.html +0 -5
- package/lib/module/docs/classes/types.ZelloConsoleSettings.html +0 -5
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
This is the "x" 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/
|
|
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/
|
|
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/
|
|
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,
|
|
213
|
+
ZelloAndroidSdkModule.setSelectedContact(contact.name, contact.type);
|
|
203
214
|
} else {
|
|
204
|
-
ZelloIOSSdkModule.selectContact(contact.name,
|
|
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
|
-
|
|
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
|
-
|
|
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,
|
|
284
|
+
ZelloAndroidSdkModule.startVoiceMessage(contact.name, contact.type);
|
|
267
285
|
} else {
|
|
268
|
-
ZelloIOSSdkModule.startVoiceMessage(contact.name,
|
|
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,
|
|
314
|
+
ZelloAndroidSdkModule.sendImage(contact.name, contact.type, data);
|
|
298
315
|
} else {
|
|
299
|
-
ZelloIOSSdkModule.sendImage(contact.name,
|
|
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,
|
|
329
|
+
ZelloAndroidSdkModule.sendLocation(contact.name, contact.type);
|
|
314
330
|
} else {
|
|
315
|
-
ZelloIOSSdkModule.sendLocation(contact.name,
|
|
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,
|
|
345
|
+
ZelloAndroidSdkModule.sendText(contact.name, contact.type, text);
|
|
331
346
|
} else {
|
|
332
|
-
ZelloIOSSdkModule.sendText(contact.name,
|
|
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,
|
|
362
|
+
ZelloAndroidSdkModule.sendAlert(contact.name, contact.type, text, level);
|
|
349
363
|
} else {
|
|
350
|
-
ZelloIOSSdkModule.sendAlert(contact.name,
|
|
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,
|
|
391
|
+
ZelloAndroidSdkModule.muteContact(contact.name, contact.type);
|
|
379
392
|
} else {
|
|
380
|
-
ZelloIOSSdkModule.muteContact(contact.name,
|
|
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,
|
|
406
|
+
ZelloAndroidSdkModule.unmuteContact(contact.name, contact.type);
|
|
395
407
|
} else {
|
|
396
|
-
ZelloIOSSdkModule.unmuteContact(contact.name,
|
|
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,
|
|
461
|
+
ZelloAndroidSdkModule.getHistory(contact.name, contact.type, size ?? defaultHistorySize, callback);
|
|
451
462
|
} else {
|
|
452
|
-
ZelloIOSSdkModule.getHistory(contact.name,
|
|
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,
|
|
477
|
+
ZelloAndroidSdkModule.playHistoryMessage(message.historyId, message.contact.name, message.contact.type);
|
|
468
478
|
} else {
|
|
469
|
-
ZelloIOSSdkModule.playHistoryMessage(message.historyId, message.contact.name,
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
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
|
-
|
|
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",
|