@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.
- package/README.md +22 -4
- package/android/build.gradle +5 -3
- package/android/src/main/java/com/zellosdk/ZelloAndroidSdkModule.kt +117 -7
- package/android/src/main/java/com/zellosdk/ZelloAndroidSdkModuleHelper.kt +76 -8
- package/ios/Extensions/ZelloConsoleSettings+Extension.swift +14 -0
- package/ios/Extensions/ZelloContact+Extension.swift +56 -2
- package/ios/Extensions/ZelloDispatchCall+Extension.swift +13 -0
- package/ios/Extensions/ZelloIOSSdkModule+Extension.swift +81 -8
- package/ios/ZelloIOSSdkModule.swift +61 -5
- package/ios/ZelloIOSSdkModuleBridge.m +14 -1
- package/lib/commonjs/docs/assets/highlight.css +18 -4
- 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 +75 -43
- 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 +7 -0
- package/lib/commonjs/docs/classes/types.ZelloDispatchChannel.html +19 -0
- 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 +108 -67
- package/lib/commonjs/docs/enums/types.ZelloAccountStatus.html +3 -3
- package/lib/commonjs/docs/enums/types.ZelloChannelAlertLevel.html +3 -3
- 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 +6 -0
- 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 +5 -5
- package/lib/commonjs/docs/index.html +16 -8
- package/lib/commonjs/docs/modules/events.html +1 -1
- package/lib/commonjs/docs/modules/index.html +9 -3
- package/lib/commonjs/docs/modules/sdk.html +1 -1
- package/lib/commonjs/docs/modules/types.html +7 -1
- package/lib/commonjs/docs/types/types.ZelloChannelOptions.html +4 -4
- package/lib/commonjs/docs/types/types.ZelloConfig.html +4 -3
- 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 +2 -2
- 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 +11 -0
- package/lib/commonjs/events/index.js.map +1 -1
- package/lib/commonjs/sdk/index.js +237 -16
- package/lib/commonjs/sdk/index.js.map +1 -1
- package/lib/commonjs/types/index.js +110 -4
- package/lib/commonjs/types/index.js.map +1 -1
- package/lib/commonjs/utils/index.js +73 -9
- package/lib/commonjs/utils/index.js.map +1 -1
- package/lib/module/docs/assets/highlight.css +18 -4
- 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 +75 -43
- 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 +7 -0
- package/lib/module/docs/classes/types.ZelloDispatchChannel.html +19 -0
- 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 +108 -67
- package/lib/module/docs/enums/types.ZelloAccountStatus.html +3 -3
- package/lib/module/docs/enums/types.ZelloChannelAlertLevel.html +3 -3
- 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 +6 -0
- 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 +5 -5
- package/lib/module/docs/index.html +16 -8
- package/lib/module/docs/modules/events.html +1 -1
- package/lib/module/docs/modules/index.html +9 -3
- package/lib/module/docs/modules/sdk.html +1 -1
- package/lib/module/docs/modules/types.html +7 -1
- package/lib/module/docs/types/types.ZelloChannelOptions.html +4 -4
- package/lib/module/docs/types/types.ZelloConfig.html +4 -3
- 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 +2 -2
- 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 +11 -0
- package/lib/module/events/index.js.map +1 -1
- package/lib/module/sdk/index.js +240 -17
- package/lib/module/sdk/index.js.map +1 -1
- package/lib/module/types/index.js +115 -3
- package/lib/module/types/index.js.map +1 -1
- package/lib/module/utils/index.js +71 -10
- package/lib/module/utils/index.js.map +1 -1
- package/lib/typescript/commonjs/src/events/index.d.ts +65 -2
- package/lib/typescript/commonjs/src/events/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/sdk/index.d.ts +53 -4
- package/lib/typescript/commonjs/src/sdk/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/types/index.d.ts +109 -6
- package/lib/typescript/commonjs/src/types/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/index.d.ts +4 -1
- package/lib/typescript/commonjs/src/utils/index.d.ts.map +1 -1
- package/lib/typescript/module/src/events/index.d.ts +65 -2
- package/lib/typescript/module/src/events/index.d.ts.map +1 -1
- package/lib/typescript/module/src/sdk/index.d.ts +53 -4
- package/lib/typescript/module/src/sdk/index.d.ts.map +1 -1
- package/lib/typescript/module/src/types/index.d.ts +109 -6
- package/lib/typescript/module/src/types/index.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/index.d.ts +4 -1
- package/lib/typescript/module/src/utils/index.d.ts.map +1 -1
- package/package.json +1 -2
- package/react-native-zello-sdk.podspec +1 -1
- package/src/events/index.ts +64 -1
- package/src/sdk/index.ts +286 -19
- package/src/types/index.ts +152 -5
- 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/
|
|
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 "x" in your {<a href="http://x.zellowork.com">x.zellowork.com</a>} Zello Work console login.</p>
|
|
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/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/
|
|
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/
|
|
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>
|
|
@@ -38,6 +38,17 @@ let ZelloEvent = exports.ZelloEvent = /*#__PURE__*/function (ZelloEvent) {
|
|
|
38
38
|
ZelloEvent["HISTORY_UPDATED"] = "onHistoryUpdated";
|
|
39
39
|
ZelloEvent["HISTORY_PLAYBACK_STARTED"] = "onHistoryPlaybackStarted";
|
|
40
40
|
ZelloEvent["HISTORY_PLAYBACK_STOPPED"] = "onHistoryPlaybackStopped";
|
|
41
|
+
ZelloEvent["DISPATCH_CALL_PENDING"] = "onDispatchCallPending";
|
|
42
|
+
ZelloEvent["DISPATCH_CALL_ACTIVE"] = "onDispatchCallActive";
|
|
43
|
+
ZelloEvent["DISPATCH_CALL_TRANSFERRED"] = "onDispatchCallTransferred";
|
|
44
|
+
ZelloEvent["DISPATCH_CALL_ENDED"] = "onDispatchCallEnded";
|
|
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";
|
|
41
52
|
return ZelloEvent;
|
|
42
53
|
}({});
|
|
43
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;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":[]}
|
|
@@ -24,7 +24,7 @@ function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new T
|
|
|
24
24
|
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
25
25
|
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; }
|
|
26
26
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
27
|
-
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); }
|
|
27
|
+
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); } // noinspection JSUnusedGlobalSymbols
|
|
28
28
|
const {
|
|
29
29
|
ZelloAndroidSdkModule,
|
|
30
30
|
ZelloIOSSdkModule
|
|
@@ -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
|
*/
|
|
@@ -88,6 +92,11 @@ let Zello = exports.Zello = /*#__PURE__*/function (_EventEmitter) {
|
|
|
88
92
|
* The currently playing history voice message.
|
|
89
93
|
*/
|
|
90
94
|
_defineProperty(_this, "historyVoiceMessage", void 0);
|
|
95
|
+
/**
|
|
96
|
+
* The console settings for the network.
|
|
97
|
+
* This is only expected to be valid when {@link state} is {@link ZelloConnectionState.Connected}.
|
|
98
|
+
*/
|
|
99
|
+
_defineProperty(_this, "consoleSettings", void 0);
|
|
91
100
|
_defineProperty(_this, "eventListener", void 0);
|
|
92
101
|
const sdk = Zello.getSdk();
|
|
93
102
|
if (sdk) {
|
|
@@ -104,9 +113,6 @@ let Zello = exports.Zello = /*#__PURE__*/function (_EventEmitter) {
|
|
|
104
113
|
|
|
105
114
|
/**
|
|
106
115
|
* Sets configuration variables for the SDK.
|
|
107
|
-
*
|
|
108
|
-
* At the moment, this is only functional on Android.
|
|
109
|
-
*
|
|
110
116
|
* @param config The configuration to set.
|
|
111
117
|
*/
|
|
112
118
|
_inherits(Zello, _EventEmitter);
|
|
@@ -116,7 +122,7 @@ let Zello = exports.Zello = /*#__PURE__*/function (_EventEmitter) {
|
|
|
116
122
|
if (_index.isAndroid) {
|
|
117
123
|
ZelloAndroidSdkModule.configure(config.android.enableOfflineMessagePushNotifications, config.android.enableForegroundService);
|
|
118
124
|
} else {
|
|
119
|
-
ZelloIOSSdkModule.configure(config.ios.isDebugBuild);
|
|
125
|
+
ZelloIOSSdkModule.configure(config.ios.isDebugBuild, config.ios.appGroup);
|
|
120
126
|
}
|
|
121
127
|
}
|
|
122
128
|
|
|
@@ -183,6 +189,17 @@ let Zello = exports.Zello = /*#__PURE__*/function (_EventEmitter) {
|
|
|
183
189
|
return (0, _index3.sortedArrayFind)(this.channels, name, _index3.compareNameAscending);
|
|
184
190
|
}
|
|
185
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
|
+
|
|
186
203
|
/**
|
|
187
204
|
* Sets the selected contact.
|
|
188
205
|
* While optional, this is typically used for tracking the contact that the user is currently interacting with.
|
|
@@ -227,7 +244,11 @@ let Zello = exports.Zello = /*#__PURE__*/function (_EventEmitter) {
|
|
|
227
244
|
if (_index.isAndroid) {
|
|
228
245
|
ZelloAndroidSdkModule.connectChannel(channel.name);
|
|
229
246
|
} else {
|
|
230
|
-
|
|
247
|
+
if (channel.type === _index2.ZelloContactType.GroupConversation) {
|
|
248
|
+
ZelloIOSSdkModule.connectGroupConversation(channel.name);
|
|
249
|
+
} else {
|
|
250
|
+
ZelloIOSSdkModule.connectChannel(channel.name);
|
|
251
|
+
}
|
|
231
252
|
}
|
|
232
253
|
}
|
|
233
254
|
|
|
@@ -243,7 +264,11 @@ let Zello = exports.Zello = /*#__PURE__*/function (_EventEmitter) {
|
|
|
243
264
|
if (_index.isAndroid) {
|
|
244
265
|
ZelloAndroidSdkModule.disconnectChannel(channel.name);
|
|
245
266
|
} else {
|
|
246
|
-
|
|
267
|
+
if (channel.type === _index2.ZelloContactType.GroupConversation) {
|
|
268
|
+
ZelloIOSSdkModule.disconnectGroupConversation(channel.name);
|
|
269
|
+
} else {
|
|
270
|
+
ZelloIOSSdkModule.disconnectChannel(channel.name);
|
|
271
|
+
}
|
|
247
272
|
}
|
|
248
273
|
}
|
|
249
274
|
|
|
@@ -496,6 +521,99 @@ let Zello = exports.Zello = /*#__PURE__*/function (_EventEmitter) {
|
|
|
496
521
|
}
|
|
497
522
|
});
|
|
498
523
|
}
|
|
524
|
+
|
|
525
|
+
/**
|
|
526
|
+
* Ends the dispatch call for the given dispatch channel.
|
|
527
|
+
* This will trigger the {@link ZelloEvent.DISPATCH_CALL_ENDED} event.
|
|
528
|
+
*
|
|
529
|
+
* If {@link consoleSettings | ZelloConsoleSettings.allowNonDispatchersToEndCalls} is false, this method will do nothing.
|
|
530
|
+
*
|
|
531
|
+
* @param channel The dispatch channel to end the call for.
|
|
532
|
+
*/
|
|
533
|
+
}, {
|
|
534
|
+
key: "endDispatchCall",
|
|
535
|
+
value: function endDispatchCall(channel) {
|
|
536
|
+
if (_index.isAndroid) {
|
|
537
|
+
ZelloAndroidSdkModule.endDispatchCall(channel.name);
|
|
538
|
+
} else {
|
|
539
|
+
ZelloIOSSdkModule.endDispatchCall(channel.name);
|
|
540
|
+
}
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
/**
|
|
544
|
+
* Creates a new group conversation with the given users.
|
|
545
|
+
* This will trigger the {@link ZelloEvent.GROUP_CONVERSATION_CREATED} and {@link ZelloEvent.CONTACT_LIST_UPDATED} events.
|
|
546
|
+
* @param users The users to create the group conversation with.
|
|
547
|
+
* @param displayName Optional; The display name of the group conversation. The conversation can be renamed later by using {@link renameGroupConversation}.
|
|
548
|
+
*/
|
|
549
|
+
}, {
|
|
550
|
+
key: "createGroupConversation",
|
|
551
|
+
value: function createGroupConversation(users, displayName) {
|
|
552
|
+
if (!this.consoleSettings?.allowGroupConversations) {
|
|
553
|
+
return;
|
|
554
|
+
}
|
|
555
|
+
if (_index.isAndroid) {
|
|
556
|
+
ZelloAndroidSdkModule.createGroupConversation(users.map(user => user.name), displayName);
|
|
557
|
+
} else {
|
|
558
|
+
ZelloIOSSdkModule.createGroupConversation(users.map(user => user.name), displayName);
|
|
559
|
+
}
|
|
560
|
+
}
|
|
561
|
+
|
|
562
|
+
/**
|
|
563
|
+
* Adds users to the given group conversation.
|
|
564
|
+
* This will trigger the {@link ZelloEvent.GROUP_CONVERSATION_USERS_ADDED} and {@link ZelloEvent.CONTACT_LIST_UPDATED} events.
|
|
565
|
+
* @param groupConversation The group conversation to add users to.
|
|
566
|
+
* @param users The users to add to the group conversation.
|
|
567
|
+
*/
|
|
568
|
+
}, {
|
|
569
|
+
key: "addUsersToGroupConversation",
|
|
570
|
+
value: function addUsersToGroupConversation(groupConversation, users) {
|
|
571
|
+
if (!this.consoleSettings?.allowGroupConversations) {
|
|
572
|
+
return;
|
|
573
|
+
}
|
|
574
|
+
if (_index.isAndroid) {
|
|
575
|
+
ZelloAndroidSdkModule.addUsersToGroupConversation(groupConversation.name, users.map(user => user.name));
|
|
576
|
+
} else {
|
|
577
|
+
ZelloIOSSdkModule.addUsersToGroupConversation(groupConversation.name, users.map(user => user.name));
|
|
578
|
+
}
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
/**
|
|
582
|
+
* Removes the user from the group conversation.
|
|
583
|
+
* This will trigger the {@link ZelloEvent.GROUP_CONVERSATION_LEFT} and {@link ZelloEvent.CONTACT_LIST_UPDATED} events.
|
|
584
|
+
* @param groupConversation The group conversation to leave.
|
|
585
|
+
*/
|
|
586
|
+
}, {
|
|
587
|
+
key: "leaveGroupConversation",
|
|
588
|
+
value: function leaveGroupConversation(groupConversation) {
|
|
589
|
+
if (!this.consoleSettings?.allowGroupConversations) {
|
|
590
|
+
return;
|
|
591
|
+
}
|
|
592
|
+
if (_index.isAndroid) {
|
|
593
|
+
ZelloAndroidSdkModule.leaveGroupConversation(groupConversation.name);
|
|
594
|
+
} else {
|
|
595
|
+
ZelloIOSSdkModule.leaveGroupConversation(groupConversation.name);
|
|
596
|
+
}
|
|
597
|
+
}
|
|
598
|
+
|
|
599
|
+
/**
|
|
600
|
+
* Renames the group conversation.
|
|
601
|
+
* This will trigger the {@link ZelloEvent.GROUP_CONVERSATION_RENAMED} and {@link ZelloEvent.CONTACT_LIST_UPDATED} events.
|
|
602
|
+
* @param groupConversation The group conversation to rename.
|
|
603
|
+
* @param name The new name for the group conversation.
|
|
604
|
+
*/
|
|
605
|
+
}, {
|
|
606
|
+
key: "renameGroupConversation",
|
|
607
|
+
value: function renameGroupConversation(groupConversation, name) {
|
|
608
|
+
if (!this.consoleSettings?.allowGroupConversations) {
|
|
609
|
+
return;
|
|
610
|
+
}
|
|
611
|
+
if (_index.isAndroid) {
|
|
612
|
+
ZelloAndroidSdkModule.renameGroupConversation(groupConversation.name, name);
|
|
613
|
+
} else {
|
|
614
|
+
ZelloIOSSdkModule.renameGroupConversation(groupConversation.name, name);
|
|
615
|
+
}
|
|
616
|
+
}
|
|
499
617
|
}, {
|
|
500
618
|
key: "setupEventListener",
|
|
501
619
|
value: function setupEventListener(eventEmitter) {
|
|
@@ -540,10 +658,12 @@ let Zello = exports.Zello = /*#__PURE__*/function (_EventEmitter) {
|
|
|
540
658
|
this.users.sort(_index3.compareNameAscending);
|
|
541
659
|
this.channels = event.channels.map(channel => (0, _index.bridgeContactToSdkContact)(channel));
|
|
542
660
|
this.channels.sort(_index3.compareNameAscending);
|
|
661
|
+
this.groupConversations = event.groupConversations.map(groupConversation => (0, _index.bridgeContactToSdkContact)(groupConversation));
|
|
662
|
+
this.groupConversations.sort(_index3.compareNameAscending);
|
|
543
663
|
if (event.emergencyChannel) {
|
|
544
664
|
this.emergencyChannel = (0, _index.bridgeContactToSdkContact)(event.emergencyChannel);
|
|
545
665
|
}
|
|
546
|
-
this.emit(_index4.ZelloEvent.CONTACT_LIST_UPDATED, this.users, this.channels);
|
|
666
|
+
this.emit(_index4.ZelloEvent.CONTACT_LIST_UPDATED, this.users, this.channels, this.groupConversations);
|
|
547
667
|
break;
|
|
548
668
|
}
|
|
549
669
|
case 'onSelectedContactChanged':
|
|
@@ -567,7 +687,7 @@ let Zello = exports.Zello = /*#__PURE__*/function (_EventEmitter) {
|
|
|
567
687
|
if (!contact) {
|
|
568
688
|
break;
|
|
569
689
|
}
|
|
570
|
-
this.incomingVoiceMessage = new _index2.ZelloIncomingVoiceMessage(contact,
|
|
690
|
+
this.incomingVoiceMessage = new _index2.ZelloIncomingVoiceMessage(contact, (0, _index.bridgeChannelUserToSdkChannelUser)(event.channelUser), parseInt(event.timestamp, 10));
|
|
571
691
|
this.emit(_index4.ZelloEvent.INCOMING_VOICE_MESSAGE_STARTED, this.incomingVoiceMessage);
|
|
572
692
|
break;
|
|
573
693
|
}
|
|
@@ -578,7 +698,7 @@ let Zello = exports.Zello = /*#__PURE__*/function (_EventEmitter) {
|
|
|
578
698
|
if (!contact) {
|
|
579
699
|
break;
|
|
580
700
|
}
|
|
581
|
-
this.emit(_index4.ZelloEvent.INCOMING_VOICE_MESSAGE_STOPPED, new _index2.ZelloIncomingVoiceMessage(contact,
|
|
701
|
+
this.emit(_index4.ZelloEvent.INCOMING_VOICE_MESSAGE_STOPPED, new _index2.ZelloIncomingVoiceMessage(contact, (0, _index.bridgeChannelUserToSdkChannelUser)(event.channelUser), parseInt(event.timestamp, 10)));
|
|
582
702
|
break;
|
|
583
703
|
}
|
|
584
704
|
case 'onOutgoingVoiceMessageConnecting':
|
|
@@ -622,7 +742,7 @@ let Zello = exports.Zello = /*#__PURE__*/function (_EventEmitter) {
|
|
|
622
742
|
if (!contact) {
|
|
623
743
|
break;
|
|
624
744
|
}
|
|
625
|
-
this.emit(_index4.ZelloEvent.INCOMING_IMAGE_MESSAGE_RECEIVED, new _index2.ZelloImageMessage(contact,
|
|
745
|
+
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));
|
|
626
746
|
break;
|
|
627
747
|
}
|
|
628
748
|
case 'onOutgoingImageMessageSent':
|
|
@@ -649,7 +769,7 @@ let Zello = exports.Zello = /*#__PURE__*/function (_EventEmitter) {
|
|
|
649
769
|
if (!contact) {
|
|
650
770
|
break;
|
|
651
771
|
}
|
|
652
|
-
this.emit(_index4.ZelloEvent.INCOMING_ALERT_MESSAGE_RECEIVED, new _index2.ZelloAlertMessage(contact,
|
|
772
|
+
this.emit(_index4.ZelloEvent.INCOMING_ALERT_MESSAGE_RECEIVED, new _index2.ZelloAlertMessage(contact, (0, _index.bridgeChannelUserToSdkChannelUser)(event.channelUser), true, parseInt(event.timestamp, 10), event.text));
|
|
653
773
|
break;
|
|
654
774
|
}
|
|
655
775
|
case 'onOutgoingAlertMessageSent':
|
|
@@ -676,7 +796,7 @@ let Zello = exports.Zello = /*#__PURE__*/function (_EventEmitter) {
|
|
|
676
796
|
if (!contact) {
|
|
677
797
|
break;
|
|
678
798
|
}
|
|
679
|
-
this.emit(_index4.ZelloEvent.INCOMING_TEXT_MESSAGE_RECEIVED, new _index2.ZelloTextMessage(contact,
|
|
799
|
+
this.emit(_index4.ZelloEvent.INCOMING_TEXT_MESSAGE_RECEIVED, new _index2.ZelloTextMessage(contact, (0, _index.bridgeChannelUserToSdkChannelUser)(event.channelUser), true, parseInt(event.timestamp, 10), event.text));
|
|
680
800
|
break;
|
|
681
801
|
}
|
|
682
802
|
case 'onOutgoingTextMessageSent':
|
|
@@ -703,7 +823,7 @@ let Zello = exports.Zello = /*#__PURE__*/function (_EventEmitter) {
|
|
|
703
823
|
if (!contact) {
|
|
704
824
|
break;
|
|
705
825
|
}
|
|
706
|
-
this.emit(_index4.ZelloEvent.INCOMING_LOCATION_MESSAGE_RECEIVED, new _index2.ZelloLocationMessage(contact,
|
|
826
|
+
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);
|
|
707
827
|
break;
|
|
708
828
|
}
|
|
709
829
|
case 'onOutgoingLocationMessageSent':
|
|
@@ -776,8 +896,7 @@ let Zello = exports.Zello = /*#__PURE__*/function (_EventEmitter) {
|
|
|
776
896
|
if (!contact) {
|
|
777
897
|
return undefined;
|
|
778
898
|
}
|
|
779
|
-
|
|
780
|
-
return new _index2.ZelloRecentEntry(contact, channelUser, parseInt(recent.timestamp, 10), recent.type.toLowerCase(), recent.incoming);
|
|
899
|
+
return new _index2.ZelloRecentEntry(contact, (0, _index.bridgeChannelUserToSdkChannelUser)(event.channelUser), parseInt(recent.timestamp, 10), recent.type.toLowerCase(), recent.incoming);
|
|
781
900
|
}).filter(recent => recent !== undefined);
|
|
782
901
|
this.emit(_index4.ZelloEvent.RECENTS_UPDATED, this.recents);
|
|
783
902
|
break;
|
|
@@ -799,16 +918,118 @@ let Zello = exports.Zello = /*#__PURE__*/function (_EventEmitter) {
|
|
|
799
918
|
this.emit(_index4.ZelloEvent.HISTORY_PLAYBACK_STOPPED, this.historyVoiceMessage);
|
|
800
919
|
break;
|
|
801
920
|
}
|
|
921
|
+
case 'onConsoleSettingsChanged':
|
|
922
|
+
{
|
|
923
|
+
this.consoleSettings = (0, _index.bridgeConsoleSettingsToSdkConsoleSettings)(event);
|
|
924
|
+
this.emit(_index4.ZelloEvent.CONSOLE_SETTINGS_CHANGED, this.consoleSettings);
|
|
925
|
+
break;
|
|
926
|
+
}
|
|
927
|
+
case 'onDispatchCallTransferred':
|
|
928
|
+
case 'onDispatchCallEnded':
|
|
929
|
+
case 'onDispatchCallActive':
|
|
930
|
+
case 'onDispatchCallPending':
|
|
931
|
+
{
|
|
932
|
+
this.processDispatchCallEvent(event);
|
|
933
|
+
break;
|
|
934
|
+
}
|
|
935
|
+
case 'onGroupConversationLeft':
|
|
936
|
+
{
|
|
937
|
+
const groupConversation = (0, _index.bridgeContactToSdkContact)(event.conversation);
|
|
938
|
+
if (!groupConversation) {
|
|
939
|
+
break;
|
|
940
|
+
}
|
|
941
|
+
this.emit(_index4.ZelloEvent.GROUP_CONVERSATION_LEFT, groupConversation);
|
|
942
|
+
break;
|
|
943
|
+
}
|
|
944
|
+
case 'onGroupConversationInvite':
|
|
945
|
+
{
|
|
946
|
+
const groupConversation = (0, _index.bridgeContactToSdkContact)(event.conversation);
|
|
947
|
+
if (!groupConversation) {
|
|
948
|
+
break;
|
|
949
|
+
}
|
|
950
|
+
this.emit(_index4.ZelloEvent.GROUP_CONVERSATION_INVITE, groupConversation);
|
|
951
|
+
break;
|
|
952
|
+
}
|
|
953
|
+
case 'onGroupConversationCreated':
|
|
954
|
+
{
|
|
955
|
+
const groupConversation = (0, _index.bridgeContactToSdkContact)(event.conversation);
|
|
956
|
+
if (!groupConversation) {
|
|
957
|
+
break;
|
|
958
|
+
}
|
|
959
|
+
this.emit(_index4.ZelloEvent.GROUP_CONVERSATION_CREATED, groupConversation);
|
|
960
|
+
break;
|
|
961
|
+
}
|
|
962
|
+
case 'onGroupConversationRenamed':
|
|
963
|
+
{
|
|
964
|
+
const groupConversation = (0, _index.bridgeContactToSdkContact)(event.conversation);
|
|
965
|
+
if (!groupConversation) {
|
|
966
|
+
break;
|
|
967
|
+
}
|
|
968
|
+
this.emit(_index4.ZelloEvent.GROUP_CONVERSATION_RENAMED, groupConversation);
|
|
969
|
+
break;
|
|
970
|
+
}
|
|
971
|
+
case 'onGroupConversationUsersAdded':
|
|
972
|
+
{
|
|
973
|
+
const groupConversation = (0, _index.bridgeContactToSdkContact)(event.conversation);
|
|
974
|
+
if (!groupConversation) {
|
|
975
|
+
break;
|
|
976
|
+
}
|
|
977
|
+
const users = event.users.map(user => (0, _index.bridgeChannelUserToSdkChannelUser)(user));
|
|
978
|
+
if (!users || users.length === 0) {
|
|
979
|
+
return;
|
|
980
|
+
}
|
|
981
|
+
this.emit(_index4.ZelloEvent.GROUP_CONVERSATION_USERS_ADDED, groupConversation, users);
|
|
982
|
+
break;
|
|
983
|
+
}
|
|
984
|
+
case 'onGroupConversationUsersLeft':
|
|
985
|
+
{
|
|
986
|
+
const groupConversation = (0, _index.bridgeContactToSdkContact)(event.conversation);
|
|
987
|
+
if (!groupConversation) {
|
|
988
|
+
break;
|
|
989
|
+
}
|
|
990
|
+
const users = event.users.map(user => (0, _index.bridgeChannelUserToSdkChannelUser)(user));
|
|
991
|
+
if (!users || users.length === 0) {
|
|
992
|
+
return;
|
|
993
|
+
}
|
|
994
|
+
this.emit(_index4.ZelloEvent.GROUP_CONVERSATION_USERS_LEFT, groupConversation, users);
|
|
995
|
+
break;
|
|
996
|
+
}
|
|
802
997
|
default:
|
|
803
998
|
break;
|
|
804
999
|
}
|
|
805
1000
|
});
|
|
806
1001
|
}
|
|
1002
|
+
}, {
|
|
1003
|
+
key: "processDispatchCallEvent",
|
|
1004
|
+
value: function processDispatchCallEvent(event) {
|
|
1005
|
+
const channel = (0, _index.bridgeContactToSdkContact)(event.channel);
|
|
1006
|
+
const call = (0, _index.bridgeCallToSdkCall)(event.call);
|
|
1007
|
+
if (!channel || !call) {
|
|
1008
|
+
return;
|
|
1009
|
+
}
|
|
1010
|
+
switch (event.name) {
|
|
1011
|
+
case 'onDispatchCallTransferred':
|
|
1012
|
+
this.emit(_index4.ZelloEvent.DISPATCH_CALL_TRANSFERRED, channel, call);
|
|
1013
|
+
break;
|
|
1014
|
+
case 'onDispatchCallEnded':
|
|
1015
|
+
this.emit(_index4.ZelloEvent.DISPATCH_CALL_ENDED, channel, call);
|
|
1016
|
+
break;
|
|
1017
|
+
case 'onDispatchCallActive':
|
|
1018
|
+
this.emit(_index4.ZelloEvent.DISPATCH_CALL_ACTIVE, channel, call);
|
|
1019
|
+
break;
|
|
1020
|
+
case 'onDispatchCallPending':
|
|
1021
|
+
this.emit(_index4.ZelloEvent.DISPATCH_CALL_PENDING, channel, call);
|
|
1022
|
+
break;
|
|
1023
|
+
default:
|
|
1024
|
+
break;
|
|
1025
|
+
}
|
|
1026
|
+
}
|
|
807
1027
|
}, {
|
|
808
1028
|
key: "clearContactList",
|
|
809
1029
|
value: function clearContactList() {
|
|
810
1030
|
this.users = [];
|
|
811
1031
|
this.channels = [];
|
|
1032
|
+
this.groupConversations = [];
|
|
812
1033
|
}
|
|
813
1034
|
}], [{
|
|
814
1035
|
key: "getInstance",
|