@acrobits/ipc-sdk 0.2.1-alpha.0 → 0.3.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/docs/classes/IPCManager.html +10 -5
- package/docs/interfaces/BaseContactItem.html +4 -4
- package/docs/interfaces/CloudUsernameContactItem.html +5 -5
- package/docs/interfaces/DetailedContactItem.html +9 -9
- package/docs/interfaces/UriContactItem.html +5 -5
- package/docs/types/ContactItem.html +1 -1
- package/docs/types/ContactLabel.html +1 -1
- package/docs/types/ContactType.html +1 -1
- package/docs/types/ContactURI.html +1 -1
- package/docs/types/HostType.html +1 -1
- package/docs/types/IpcProtocolVersion.html +1 -1
- package/lib/index.d.ts +2 -1
- package/lib/ipc-sdk.js +34 -32
- package/lib/ipc-sdk.js.map +1 -1
- package/lib/ipc-sdk.umd.cjs +2 -2
- package/lib/ipc-sdk.umd.cjs.map +1 -1
- package/package.json +2 -2
|
@@ -162,7 +162,7 @@ create the instance as a singleton and use it throughout the app.</p>
|
|
|
162
162
|
<section class="tsd-panel tsd-member"><a id="badgeUpdate" class="tsd-anchor"></a>
|
|
163
163
|
<h3 class="tsd-anchor-link"><span>badge<wbr/>Update</span><a href="#badgeUpdate" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
|
|
164
164
|
<ul class="tsd-signatures">
|
|
165
|
-
<li class="tsd-signature tsd-anchor-link" id="badgeUpdate.badgeUpdate-1"><span class="tsd-kind-call-signature">badge<wbr/>Update</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">count</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span><a href="#badgeUpdate.badgeUpdate-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
|
|
165
|
+
<li class="tsd-signature tsd-anchor-link" id="badgeUpdate.badgeUpdate-1"><span class="tsd-kind-call-signature">badge<wbr/>Update</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">count</span>, <span class="tsd-kind-parameter">isActivity</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span><a href="#badgeUpdate.badgeUpdate-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
|
|
166
166
|
<li class="tsd-description">
|
|
167
167
|
<div class="tsd-comment tsd-typography"><p>Sends the current badge count to the <code>Host</code> app.</p>
|
|
168
168
|
</div>
|
|
@@ -173,11 +173,16 @@ create the instance as a singleton and use it throughout the app.</p>
|
|
|
173
173
|
<h5><span class="tsd-kind-parameter">count</span>: <span class="tsd-signature-type">number</span></h5>
|
|
174
174
|
<div class="tsd-comment tsd-typography"><p>The count to update the badge to.</p>
|
|
175
175
|
</div>
|
|
176
|
+
<div class="tsd-comment tsd-typography"></div></li>
|
|
177
|
+
<li>
|
|
178
|
+
<h5><span class="tsd-kind-parameter">isActivity</span>: <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = false</span></h5>
|
|
179
|
+
<div class="tsd-comment tsd-typography"><p><em>Optional</em>. Whether the update is for an activity instead of a badge.</p>
|
|
180
|
+
</div>
|
|
176
181
|
<div class="tsd-comment tsd-typography"></div></li></ul></div>
|
|
177
182
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
|
|
178
183
|
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
|
|
179
184
|
<ul>
|
|
180
|
-
<li>Defined in ipc-sdk/src/lib/sdk.ts:
|
|
185
|
+
<li>Defined in ipc-sdk/src/lib/sdk.ts:250</li></ul></aside></li></ul></section>
|
|
181
186
|
<section class="tsd-panel tsd-member"><a id="determineContext" class="tsd-anchor"></a>
|
|
182
187
|
<h3 class="tsd-anchor-link"><span>determine<wbr/>Context</span><a href="#determineContext" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
|
|
183
188
|
<ul class="tsd-signatures">
|
|
@@ -202,7 +207,7 @@ create the instance as a singleton and use it throughout the app.</p>
|
|
|
202
207
|
<h5><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">context</span>: <span class="tsd-signature-type ">AppContext</span></h5></li></ul></div>
|
|
203
208
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"host"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"standalone"</span></h4><aside class="tsd-sources">
|
|
204
209
|
<ul>
|
|
205
|
-
<li>Defined in ipc-sdk/src/lib/sdk.ts:
|
|
210
|
+
<li>Defined in ipc-sdk/src/lib/sdk.ts:285</li></ul></aside></li></ul></section>
|
|
206
211
|
<section class="tsd-panel tsd-member"><a id="initiateConnection" class="tsd-anchor"></a>
|
|
207
212
|
<h3 class="tsd-anchor-link"><span>initiate<wbr/>Connection</span><a href="#initiateConnection" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
|
|
208
213
|
<ul class="tsd-signatures">
|
|
@@ -263,7 +268,7 @@ is received.</p>
|
|
|
263
268
|
|
|
264
269
|
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
|
|
265
270
|
<ul>
|
|
266
|
-
<li>Defined in ipc-sdk/src/lib/sdk.ts:
|
|
271
|
+
<li>Defined in ipc-sdk/src/lib/sdk.ts:262</li></ul></aside></li></ul></section>
|
|
267
272
|
<section class="tsd-panel tsd-member"><a id="onHostInForeground" class="tsd-anchor"></a>
|
|
268
273
|
<h3 class="tsd-anchor-link"><span>on<wbr/>Host<wbr/>In<wbr/>Foreground</span><a href="#onHostInForeground" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
|
|
269
274
|
<ul class="tsd-signatures">
|
|
@@ -290,7 +295,7 @@ event is received.</p>
|
|
|
290
295
|
|
|
291
296
|
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
|
|
292
297
|
<ul>
|
|
293
|
-
<li>Defined in ipc-sdk/src/lib/sdk.ts:
|
|
298
|
+
<li>Defined in ipc-sdk/src/lib/sdk.ts:277</li></ul></aside></li></ul></section>
|
|
294
299
|
<section class="tsd-panel tsd-member"><a id="requestPushToken" class="tsd-anchor"></a>
|
|
295
300
|
<h3 class="tsd-anchor-link"><span>request<wbr/>Push<wbr/>Token</span><a href="#requestPushToken" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
|
|
296
301
|
<ul class="tsd-signatures">
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
<li><a href="CloudUsernameContactItem.html" class="tsd-signature-type tsd-kind-interface">CloudUsernameContactItem</a></li>
|
|
28
28
|
<li><a href="UriContactItem.html" class="tsd-signature-type tsd-kind-interface">UriContactItem</a></li></ul></li></ul></section><aside class="tsd-sources">
|
|
29
29
|
<ul>
|
|
30
|
-
<li>Defined in ipc-protocol/lib/index.d.ts:
|
|
30
|
+
<li>Defined in ipc-protocol/lib/index.d.ts:68</li></ul></aside>
|
|
31
31
|
<section class="tsd-panel-group tsd-index-group">
|
|
32
32
|
<section class="tsd-panel tsd-index-panel">
|
|
33
33
|
<details class="tsd-index-content tsd-index-accordion" open><summary class="tsd-accordion-summary tsd-index-summary">
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
</div>
|
|
49
49
|
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
|
|
50
50
|
<ul>
|
|
51
|
-
<li>Defined in ipc-protocol/lib/index.d.ts:
|
|
51
|
+
<li>Defined in ipc-protocol/lib/index.d.ts:76</li></ul></aside></section>
|
|
52
52
|
<section class="tsd-panel tsd-member"><a id="networkId" class="tsd-anchor"></a>
|
|
53
53
|
<h3 class="tsd-anchor-link"><span>network<wbr/>Id</span><a href="#networkId" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
|
|
54
54
|
<div class="tsd-signature"><span class="tsd-kind-property">network<wbr/>Id</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
</div>
|
|
57
57
|
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
|
|
58
58
|
<ul>
|
|
59
|
-
<li>Defined in ipc-protocol/lib/index.d.ts:
|
|
59
|
+
<li>Defined in ipc-protocol/lib/index.d.ts:80</li></ul></aside></section>
|
|
60
60
|
<section class="tsd-panel tsd-member"><a id="type" class="tsd-anchor"></a>
|
|
61
61
|
<h3 class="tsd-anchor-link"><span>type</span><a href="#type" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
|
|
62
62
|
<div class="tsd-signature"><span class="tsd-kind-property">type</span><span class="tsd-signature-symbol">:</span> <a href="../types/ContactType.html" class="tsd-signature-type tsd-kind-type-alias">ContactType</a></div>
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
</div>
|
|
65
65
|
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
|
|
66
66
|
<ul>
|
|
67
|
-
<li>Defined in ipc-protocol/lib/index.d.ts:
|
|
67
|
+
<li>Defined in ipc-protocol/lib/index.d.ts:72</li></ul></aside></section></section></div>
|
|
68
68
|
<div class="col-sidebar">
|
|
69
69
|
<div class="page-menu">
|
|
70
70
|
<div class="tsd-navigation settings">
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
<ul class="tsd-hierarchy">
|
|
27
27
|
<li><span class="target">CloudUsernameContactItem</span></li></ul></li></ul></section><aside class="tsd-sources">
|
|
28
28
|
<ul>
|
|
29
|
-
<li>Defined in ipc-protocol/lib/index.d.ts:
|
|
29
|
+
<li>Defined in ipc-protocol/lib/index.d.ts:96</li></ul></aside>
|
|
30
30
|
<section class="tsd-panel-group tsd-index-group">
|
|
31
31
|
<section class="tsd-panel tsd-index-panel">
|
|
32
32
|
<details class="tsd-index-content tsd-index-accordion" open><summary class="tsd-accordion-summary tsd-index-summary">
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
|
|
50
50
|
<p>Inherited from <a href="BaseContactItem.html">BaseContactItem</a>.<a href="BaseContactItem.html#cloudId">cloudId</a></p>
|
|
51
51
|
<ul>
|
|
52
|
-
<li>Defined in ipc-protocol/lib/index.d.ts:
|
|
52
|
+
<li>Defined in ipc-protocol/lib/index.d.ts:76</li></ul></aside></section>
|
|
53
53
|
<section class="tsd-panel tsd-member"><a id="cloudUsername" class="tsd-anchor"></a>
|
|
54
54
|
<h3 class="tsd-anchor-link"><span>cloud<wbr/>Username</span><a href="#cloudUsername" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
|
|
55
55
|
<div class="tsd-signature"><span class="tsd-kind-property">cloud<wbr/>Username</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
</div>
|
|
58
58
|
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
|
|
59
59
|
<ul>
|
|
60
|
-
<li>Defined in ipc-protocol/lib/index.d.ts:
|
|
60
|
+
<li>Defined in ipc-protocol/lib/index.d.ts:101</li></ul></aside></section>
|
|
61
61
|
<section class="tsd-panel tsd-member tsd-is-inherited"><a id="networkId" class="tsd-anchor"></a>
|
|
62
62
|
<h3 class="tsd-anchor-link"><span>network<wbr/>Id</span><a href="#networkId" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
|
|
63
63
|
<div class="tsd-signature"><span class="tsd-kind-property">network<wbr/>Id</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
|
|
67
67
|
<p>Inherited from <a href="BaseContactItem.html">BaseContactItem</a>.<a href="BaseContactItem.html#networkId">networkId</a></p>
|
|
68
68
|
<ul>
|
|
69
|
-
<li>Defined in ipc-protocol/lib/index.d.ts:
|
|
69
|
+
<li>Defined in ipc-protocol/lib/index.d.ts:80</li></ul></aside></section>
|
|
70
70
|
<section class="tsd-panel tsd-member"><a id="type" class="tsd-anchor"></a>
|
|
71
71
|
<h3 class="tsd-anchor-link"><span>type</span><a href="#type" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
|
|
72
72
|
<div class="tsd-signature"><span class="tsd-kind-property">type</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"cloudUsername"</span></div>
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
|
|
76
76
|
<p>Overrides <a href="BaseContactItem.html">BaseContactItem</a>.<a href="BaseContactItem.html#type">type</a></p>
|
|
77
77
|
<ul>
|
|
78
|
-
<li>Defined in ipc-protocol/lib/index.d.ts:
|
|
78
|
+
<li>Defined in ipc-protocol/lib/index.d.ts:97</li></ul></aside></section></section></div>
|
|
79
79
|
<div class="col-sidebar">
|
|
80
80
|
<div class="page-menu">
|
|
81
81
|
<div class="tsd-navigation settings">
|
|
@@ -25,7 +25,7 @@ SIP URIs and contact type etc.</p>
|
|
|
25
25
|
<ul class="tsd-hierarchy">
|
|
26
26
|
<li><span class="target">DetailedContactItem</span></li></ul></section><aside class="tsd-sources">
|
|
27
27
|
<ul>
|
|
28
|
-
<li>Defined in ipc-protocol/lib/index.d.ts:
|
|
28
|
+
<li>Defined in ipc-protocol/lib/index.d.ts:242</li></ul></aside>
|
|
29
29
|
<section class="tsd-panel-group tsd-index-group">
|
|
30
30
|
<section class="tsd-panel tsd-index-panel">
|
|
31
31
|
<details class="tsd-index-content tsd-index-accordion" open><summary class="tsd-accordion-summary tsd-index-summary">
|
|
@@ -51,7 +51,7 @@ SIP URIs and contact type etc.</p>
|
|
|
51
51
|
</div>
|
|
52
52
|
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
|
|
53
53
|
<ul>
|
|
54
|
-
<li>Defined in ipc-protocol/lib/index.d.ts:
|
|
54
|
+
<li>Defined in ipc-protocol/lib/index.d.ts:254</li></ul></aside></section>
|
|
55
55
|
<section class="tsd-panel tsd-member"><a id="cloudUsername" class="tsd-anchor"></a>
|
|
56
56
|
<h3 class="tsd-anchor-link"><span>cloud<wbr/>Username</span><a href="#cloudUsername" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
|
|
57
57
|
<div class="tsd-signature"><span class="tsd-kind-property">cloud<wbr/>Username</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
|
|
@@ -59,7 +59,7 @@ SIP URIs and contact type etc.</p>
|
|
|
59
59
|
</div>
|
|
60
60
|
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
|
|
61
61
|
<ul>
|
|
62
|
-
<li>Defined in ipc-protocol/lib/index.d.ts:
|
|
62
|
+
<li>Defined in ipc-protocol/lib/index.d.ts:258</li></ul></aside></section>
|
|
63
63
|
<section class="tsd-panel tsd-member"><a id="contactLabel" class="tsd-anchor"></a>
|
|
64
64
|
<h3 class="tsd-anchor-link"><span>contact<wbr/>Label</span><a href="#contactLabel" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
|
|
65
65
|
<div class="tsd-signature"><span class="tsd-kind-property">contact<wbr/>Label</span><span class="tsd-signature-symbol">:</span> <a href="../types/ContactLabel.html" class="tsd-signature-type tsd-kind-type-alias">ContactLabel</a></div>
|
|
@@ -67,7 +67,7 @@ SIP URIs and contact type etc.</p>
|
|
|
67
67
|
</div>
|
|
68
68
|
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
|
|
69
69
|
<ul>
|
|
70
|
-
<li>Defined in ipc-protocol/lib/index.d.ts:
|
|
70
|
+
<li>Defined in ipc-protocol/lib/index.d.ts:246</li></ul></aside></section>
|
|
71
71
|
<section class="tsd-panel tsd-member"><a id="displayName" class="tsd-anchor"></a>
|
|
72
72
|
<h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagOptional">Optional</code> <span>display<wbr/>Name</span><a href="#displayName" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
|
|
73
73
|
<div class="tsd-signature"><span class="tsd-kind-property">display<wbr/>Name</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span></div>
|
|
@@ -75,7 +75,7 @@ SIP URIs and contact type etc.</p>
|
|
|
75
75
|
</div>
|
|
76
76
|
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
|
|
77
77
|
<ul>
|
|
78
|
-
<li>Defined in ipc-protocol/lib/index.d.ts:
|
|
78
|
+
<li>Defined in ipc-protocol/lib/index.d.ts:270</li></ul></aside></section>
|
|
79
79
|
<section class="tsd-panel tsd-member"><a id="networkId" class="tsd-anchor"></a>
|
|
80
80
|
<h3 class="tsd-anchor-link"><span>network<wbr/>Id</span><a href="#networkId" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
|
|
81
81
|
<div class="tsd-signature"><span class="tsd-kind-property">network<wbr/>Id</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
|
|
@@ -83,7 +83,7 @@ SIP URIs and contact type etc.</p>
|
|
|
83
83
|
</div>
|
|
84
84
|
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
|
|
85
85
|
<ul>
|
|
86
|
-
<li>Defined in ipc-protocol/lib/index.d.ts:
|
|
86
|
+
<li>Defined in ipc-protocol/lib/index.d.ts:262</li></ul></aside></section>
|
|
87
87
|
<section class="tsd-panel tsd-member"><a id="profilePictureUrl" class="tsd-anchor"></a>
|
|
88
88
|
<h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagOptional">Optional</code> <span>profile<wbr/>Picture<wbr/>Url</span><a href="#profilePictureUrl" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
|
|
89
89
|
<div class="tsd-signature"><span class="tsd-kind-property">profile<wbr/>Picture<wbr/>Url</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span></div>
|
|
@@ -91,7 +91,7 @@ SIP URIs and contact type etc.</p>
|
|
|
91
91
|
</div>
|
|
92
92
|
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
|
|
93
93
|
<ul>
|
|
94
|
-
<li>Defined in ipc-protocol/lib/index.d.ts:
|
|
94
|
+
<li>Defined in ipc-protocol/lib/index.d.ts:274</li></ul></aside></section>
|
|
95
95
|
<section class="tsd-panel tsd-member"><a id="type" class="tsd-anchor"></a>
|
|
96
96
|
<h3 class="tsd-anchor-link"><span>type</span><a href="#type" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
|
|
97
97
|
<div class="tsd-signature"><span class="tsd-kind-property">type</span><span class="tsd-signature-symbol">:</span> <a href="../types/ContactType.html" class="tsd-signature-type tsd-kind-type-alias">ContactType</a></div>
|
|
@@ -99,7 +99,7 @@ SIP URIs and contact type etc.</p>
|
|
|
99
99
|
</div>
|
|
100
100
|
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
|
|
101
101
|
<ul>
|
|
102
|
-
<li>Defined in ipc-protocol/lib/index.d.ts:
|
|
102
|
+
<li>Defined in ipc-protocol/lib/index.d.ts:250</li></ul></aside></section>
|
|
103
103
|
<section class="tsd-panel tsd-member"><a id="uri" class="tsd-anchor"></a>
|
|
104
104
|
<h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagOptional">Optional</code> <span>uri</span><a href="#uri" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
|
|
105
105
|
<div class="tsd-signature"><span class="tsd-kind-property">uri</span><span class="tsd-signature-symbol">?:</span> <a href="../types/ContactURI.html" class="tsd-signature-type tsd-kind-type-alias">ContactURI</a></div>
|
|
@@ -107,7 +107,7 @@ SIP URIs and contact type etc.</p>
|
|
|
107
107
|
</div>
|
|
108
108
|
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
|
|
109
109
|
<ul>
|
|
110
|
-
<li>Defined in ipc-protocol/lib/index.d.ts:
|
|
110
|
+
<li>Defined in ipc-protocol/lib/index.d.ts:266</li></ul></aside></section></section></div>
|
|
111
111
|
<div class="col-sidebar">
|
|
112
112
|
<div class="page-menu">
|
|
113
113
|
<div class="tsd-navigation settings">
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
<ul class="tsd-hierarchy">
|
|
27
27
|
<li><span class="target">UriContactItem</span></li></ul></li></ul></section><aside class="tsd-sources">
|
|
28
28
|
<ul>
|
|
29
|
-
<li>Defined in ipc-protocol/lib/index.d.ts:
|
|
29
|
+
<li>Defined in ipc-protocol/lib/index.d.ts:1980</li></ul></aside>
|
|
30
30
|
<section class="tsd-panel-group tsd-index-group">
|
|
31
31
|
<section class="tsd-panel tsd-index-panel">
|
|
32
32
|
<details class="tsd-index-content tsd-index-accordion" open><summary class="tsd-accordion-summary tsd-index-summary">
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
|
|
50
50
|
<p>Inherited from <a href="BaseContactItem.html">BaseContactItem</a>.<a href="BaseContactItem.html#cloudId">cloudId</a></p>
|
|
51
51
|
<ul>
|
|
52
|
-
<li>Defined in ipc-protocol/lib/index.d.ts:
|
|
52
|
+
<li>Defined in ipc-protocol/lib/index.d.ts:76</li></ul></aside></section>
|
|
53
53
|
<section class="tsd-panel tsd-member tsd-is-inherited"><a id="networkId" class="tsd-anchor"></a>
|
|
54
54
|
<h3 class="tsd-anchor-link"><span>network<wbr/>Id</span><a href="#networkId" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
|
|
55
55
|
<div class="tsd-signature"><span class="tsd-kind-property">network<wbr/>Id</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
|
|
59
59
|
<p>Inherited from <a href="BaseContactItem.html">BaseContactItem</a>.<a href="BaseContactItem.html#networkId">networkId</a></p>
|
|
60
60
|
<ul>
|
|
61
|
-
<li>Defined in ipc-protocol/lib/index.d.ts:
|
|
61
|
+
<li>Defined in ipc-protocol/lib/index.d.ts:80</li></ul></aside></section>
|
|
62
62
|
<section class="tsd-panel tsd-member"><a id="type" class="tsd-anchor"></a>
|
|
63
63
|
<h3 class="tsd-anchor-link"><span>type</span><a href="#type" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
|
|
64
64
|
<div class="tsd-signature"><span class="tsd-kind-property">type</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"uri"</span></div>
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
|
|
68
68
|
<p>Overrides <a href="BaseContactItem.html">BaseContactItem</a>.<a href="BaseContactItem.html#type">type</a></p>
|
|
69
69
|
<ul>
|
|
70
|
-
<li>Defined in ipc-protocol/lib/index.d.ts:
|
|
70
|
+
<li>Defined in ipc-protocol/lib/index.d.ts:1981</li></ul></aside></section>
|
|
71
71
|
<section class="tsd-panel tsd-member"><a id="uri" class="tsd-anchor"></a>
|
|
72
72
|
<h3 class="tsd-anchor-link"><span>uri</span><a href="#uri" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
|
|
73
73
|
<div class="tsd-signature"><span class="tsd-kind-property">uri</span><span class="tsd-signature-symbol">:</span> <a href="../types/ContactURI.html" class="tsd-signature-type tsd-kind-type-alias">ContactURI</a></div>
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
</div>
|
|
76
76
|
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
|
|
77
77
|
<ul>
|
|
78
|
-
<li>Defined in ipc-protocol/lib/index.d.ts:
|
|
78
|
+
<li>Defined in ipc-protocol/lib/index.d.ts:1985</li></ul></aside></section></section></div>
|
|
79
79
|
<div class="col-sidebar">
|
|
80
80
|
<div class="page-menu">
|
|
81
81
|
<div class="tsd-navigation settings">
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
</div>
|
|
21
21
|
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
|
|
22
22
|
<ul>
|
|
23
|
-
<li>Defined in ipc-protocol/lib/index.d.ts:
|
|
23
|
+
<li>Defined in ipc-protocol/lib/index.d.ts:195</li></ul></aside></div>
|
|
24
24
|
<div class="col-sidebar">
|
|
25
25
|
<div class="page-menu">
|
|
26
26
|
<div class="tsd-navigation settings">
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
</div>
|
|
21
21
|
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
|
|
22
22
|
<ul>
|
|
23
|
-
<li>Defined in ipc-protocol/lib/index.d.ts:
|
|
23
|
+
<li>Defined in ipc-protocol/lib/index.d.ts:202</li></ul></aside></div>
|
|
24
24
|
<div class="col-sidebar">
|
|
25
25
|
<div class="page-menu">
|
|
26
26
|
<div class="tsd-navigation settings">
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
</div>
|
|
21
21
|
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
|
|
22
22
|
<ul>
|
|
23
|
-
<li>Defined in ipc-protocol/lib/index.d.ts:
|
|
23
|
+
<li>Defined in ipc-protocol/lib/index.d.ts:209</li></ul></aside></div>
|
|
24
24
|
<div class="col-sidebar">
|
|
25
25
|
<div class="page-menu">
|
|
26
26
|
<div class="tsd-navigation settings">
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
</code><button>Copy</button></pre>
|
|
24
24
|
</div><aside class="tsd-sources">
|
|
25
25
|
<ul>
|
|
26
|
-
<li>Defined in ipc-protocol/lib/index.d.ts:
|
|
26
|
+
<li>Defined in ipc-protocol/lib/index.d.ts:222</li></ul></aside></div>
|
|
27
27
|
<div class="col-sidebar">
|
|
28
28
|
<div class="page-menu">
|
|
29
29
|
<div class="tsd-navigation settings">
|
package/docs/types/HostType.html
CHANGED
|
@@ -21,7 +21,7 @@ and <code>electron</code>.</p>
|
|
|
21
21
|
</div>
|
|
22
22
|
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
|
|
23
23
|
<ul>
|
|
24
|
-
<li>Defined in ipc-protocol/lib/index.d.ts:
|
|
24
|
+
<li>Defined in ipc-protocol/lib/index.d.ts:538</li></ul></aside></div>
|
|
25
25
|
<div class="col-sidebar">
|
|
26
26
|
<div class="page-menu">
|
|
27
27
|
<div class="tsd-navigation settings">
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
</div>
|
|
21
21
|
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
|
|
22
22
|
<ul>
|
|
23
|
-
<li>Defined in ipc-protocol/lib/index.d.ts:
|
|
23
|
+
<li>Defined in ipc-protocol/lib/index.d.ts:1272</li></ul></aside></div>
|
|
24
24
|
<div class="col-sidebar">
|
|
25
25
|
<div class="page-menu">
|
|
26
26
|
<div class="tsd-navigation settings">
|
package/lib/index.d.ts
CHANGED
|
@@ -268,8 +268,9 @@ export declare class IPCManager {
|
|
|
268
268
|
* Sends the current badge count to the `Host` app.
|
|
269
269
|
*
|
|
270
270
|
* @param count - The count to update the badge to.
|
|
271
|
+
* @param isActivity - _Optional_. Whether the update is for an activity instead of a badge.
|
|
271
272
|
*/
|
|
272
|
-
badgeUpdate(count: number): void;
|
|
273
|
+
badgeUpdate(count: number, isActivity?: boolean): void;
|
|
273
274
|
/**
|
|
274
275
|
* Registers a callback to be invoked when a {@link IPCEvents.BadgeQuery} is received.
|
|
275
276
|
*
|
package/lib/ipc-sdk.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var M = (n, t, e) => (
|
|
1
|
+
var Re = Object.defineProperty;
|
|
2
|
+
var Ae = (n, t, e) => t in n ? Re(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e;
|
|
3
|
+
var M = (n, t, e) => (Ae(n, typeof t != "symbol" ? t + "" : t, e), e);
|
|
4
4
|
var E = /* @__PURE__ */ ((n) => (n.BadgeQuery = "BADGE QUERY", n.HostInForeground = "HOST IN FOREGROUND", n))(E || {}), z = function(n, t) {
|
|
5
5
|
return z = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, r) {
|
|
6
6
|
e.__proto__ = r;
|
|
@@ -203,7 +203,7 @@ function Pe(n) {
|
|
|
203
203
|
}
|
|
204
204
|
function se() {
|
|
205
205
|
}
|
|
206
|
-
function
|
|
206
|
+
function $(n) {
|
|
207
207
|
n();
|
|
208
208
|
}
|
|
209
209
|
var ee = function(n) {
|
|
@@ -237,11 +237,11 @@ var ee = function(n) {
|
|
|
237
237
|
this.unsubscribe();
|
|
238
238
|
}
|
|
239
239
|
}, t;
|
|
240
|
-
}(T),
|
|
240
|
+
}(T), $e = Function.prototype.bind;
|
|
241
241
|
function k(n, t) {
|
|
242
|
-
return
|
|
242
|
+
return $e.call(n, t);
|
|
243
243
|
}
|
|
244
|
-
var
|
|
244
|
+
var Ue = function() {
|
|
245
245
|
function n(t) {
|
|
246
246
|
this.partialObserver = t;
|
|
247
247
|
}
|
|
@@ -251,7 +251,7 @@ var $e = function() {
|
|
|
251
251
|
try {
|
|
252
252
|
e.next(t);
|
|
253
253
|
} catch (r) {
|
|
254
|
-
|
|
254
|
+
R(r);
|
|
255
255
|
}
|
|
256
256
|
}, n.prototype.error = function(t) {
|
|
257
257
|
var e = this.partialObserver;
|
|
@@ -259,17 +259,17 @@ var $e = function() {
|
|
|
259
259
|
try {
|
|
260
260
|
e.error(t);
|
|
261
261
|
} catch (r) {
|
|
262
|
-
|
|
262
|
+
R(r);
|
|
263
263
|
}
|
|
264
264
|
else
|
|
265
|
-
|
|
265
|
+
R(t);
|
|
266
266
|
}, n.prototype.complete = function() {
|
|
267
267
|
var t = this.partialObserver;
|
|
268
268
|
if (t.complete)
|
|
269
269
|
try {
|
|
270
270
|
t.complete();
|
|
271
271
|
} catch (e) {
|
|
272
|
-
|
|
272
|
+
R(e);
|
|
273
273
|
}
|
|
274
274
|
}, n;
|
|
275
275
|
}(), F = function(n) {
|
|
@@ -292,11 +292,11 @@ var $e = function() {
|
|
|
292
292
|
complete: e.complete && k(e.complete, c)
|
|
293
293
|
}) : s = e;
|
|
294
294
|
}
|
|
295
|
-
return o.destination = new
|
|
295
|
+
return o.destination = new Ue(s), o;
|
|
296
296
|
}
|
|
297
297
|
return t;
|
|
298
298
|
}(ee);
|
|
299
|
-
function
|
|
299
|
+
function R(n) {
|
|
300
300
|
Pe(n);
|
|
301
301
|
}
|
|
302
302
|
function Le(n) {
|
|
@@ -329,7 +329,7 @@ var Y = function() {
|
|
|
329
329
|
return e.source = this, e.operator = t, e;
|
|
330
330
|
}, n.prototype.subscribe = function(t, e, r) {
|
|
331
331
|
var i = this, o = De(t) ? t : new F(t, e, r);
|
|
332
|
-
return
|
|
332
|
+
return $(function() {
|
|
333
333
|
var s = i, c = s.operator, u = s.source;
|
|
334
334
|
o.add(c ? c.call(o, u) : u ? i._subscribe(o) : i._trySubscribe(o));
|
|
335
335
|
}), o;
|
|
@@ -462,7 +462,7 @@ var ke = function(n) {
|
|
|
462
462
|
throw new Be();
|
|
463
463
|
}, t.prototype.next = function(e) {
|
|
464
464
|
var r = this;
|
|
465
|
-
|
|
465
|
+
$(function() {
|
|
466
466
|
var i, o;
|
|
467
467
|
if (r._throwIfClosed(), !r.isStopped) {
|
|
468
468
|
r.currentObservers || (r.currentObservers = Array.from(r.observers));
|
|
@@ -485,7 +485,7 @@ var ke = function(n) {
|
|
|
485
485
|
});
|
|
486
486
|
}, t.prototype.error = function(e) {
|
|
487
487
|
var r = this;
|
|
488
|
-
|
|
488
|
+
$(function() {
|
|
489
489
|
if (r._throwIfClosed(), !r.isStopped) {
|
|
490
490
|
r.hasError = r.isStopped = !0, r.thrownError = e;
|
|
491
491
|
for (var i = r.observers; i.length; )
|
|
@@ -494,7 +494,7 @@ var ke = function(n) {
|
|
|
494
494
|
});
|
|
495
495
|
}, t.prototype.complete = function() {
|
|
496
496
|
var e = this;
|
|
497
|
-
|
|
497
|
+
$(function() {
|
|
498
498
|
if (e._throwIfClosed(), !e.isStopped) {
|
|
499
499
|
e.isStopped = !0;
|
|
500
500
|
for (var r = e.observers; r.length; )
|
|
@@ -673,7 +673,7 @@ function O(n, t) {
|
|
|
673
673
|
function Ke(n) {
|
|
674
674
|
return n instanceof Date && !isNaN(n);
|
|
675
675
|
}
|
|
676
|
-
function
|
|
676
|
+
function A(n, t) {
|
|
677
677
|
return Ce(function(e, r) {
|
|
678
678
|
var i = 0;
|
|
679
679
|
e.subscribe(xe(r, function(o) {
|
|
@@ -720,7 +720,7 @@ class l extends Error {
|
|
|
720
720
|
super(`Incorrect context (${t}). Cannot perform the requested operation.`), C(this, "context"), this.context = t;
|
|
721
721
|
}
|
|
722
722
|
}
|
|
723
|
-
class
|
|
723
|
+
class U extends Error {
|
|
724
724
|
constructor(t, e, r) {
|
|
725
725
|
super(`Invalid parameter (${t}). ${r}`), this.param = t, this.value = e, this.reason = r;
|
|
726
726
|
}
|
|
@@ -1627,13 +1627,13 @@ class xt {
|
|
|
1627
1627
|
if (!this.isEmbedded())
|
|
1628
1628
|
throw new l(this.currentContext);
|
|
1629
1629
|
if (e === "group" && i === void 0)
|
|
1630
|
-
throw new
|
|
1630
|
+
throw new U(
|
|
1631
1631
|
"currentContacts",
|
|
1632
1632
|
i,
|
|
1633
1633
|
"currentContacts is required for group streams"
|
|
1634
1634
|
);
|
|
1635
1635
|
if (e === "direct" && i !== void 0)
|
|
1636
|
-
throw new
|
|
1636
|
+
throw new U(
|
|
1637
1637
|
"currentContacts",
|
|
1638
1638
|
i,
|
|
1639
1639
|
"currentContacts should not be passed for direct streams"
|
|
@@ -1666,7 +1666,7 @@ class xt {
|
|
|
1666
1666
|
if (!this.isEmbedded())
|
|
1667
1667
|
throw new l(this.currentContext);
|
|
1668
1668
|
if (!t.length)
|
|
1669
|
-
throw new
|
|
1669
|
+
throw new U("contacts", t, "At least one contact is required");
|
|
1670
1670
|
const e = "MATCH CONTACTS", r = this.createMessage(e);
|
|
1671
1671
|
r.contacts = [...t], this.logCreated(e, r);
|
|
1672
1672
|
const i = this.incomingMessages$.pipe(
|
|
@@ -1761,13 +1761,14 @@ class xt {
|
|
|
1761
1761
|
* {@link BadgeQueryMessage}.
|
|
1762
1762
|
*
|
|
1763
1763
|
* @param count - The counter's value
|
|
1764
|
+
* @param isActivity - _Optional_. Whether the counter is for activity or not. Defaults to `false`
|
|
1764
1765
|
* @param replyTo - _Optional_. The message ID to which the reply should be sent
|
|
1765
1766
|
*/
|
|
1766
|
-
sendBadgeUpdateMessage(t, e) {
|
|
1767
|
+
sendBadgeUpdateMessage(t, e, r) {
|
|
1767
1768
|
if (!this.isEmbedded())
|
|
1768
1769
|
throw new l(this.currentContext);
|
|
1769
|
-
const
|
|
1770
|
-
|
|
1770
|
+
const i = "BADGE UPDATE", o = this.createMessage(i, !1, r);
|
|
1771
|
+
o.count = t, o.activity = e ?? !1, this.logCreated(i, o), this.port2.postMessage(o), this.logSent(i, o);
|
|
1771
1772
|
}
|
|
1772
1773
|
/**
|
|
1773
1774
|
* Setup listener for {@link HostInForegroundMessage}, which can be sent by a `Host` app to
|
|
@@ -2161,7 +2162,7 @@ class It {
|
|
|
2161
2162
|
i();
|
|
2162
2163
|
}), this.cloudId = t.cloudId, this.host = t.host;
|
|
2163
2164
|
}),
|
|
2164
|
-
|
|
2165
|
+
A(() => {
|
|
2165
2166
|
})
|
|
2166
2167
|
)
|
|
2167
2168
|
);
|
|
@@ -2171,7 +2172,7 @@ class It {
|
|
|
2171
2172
|
let o;
|
|
2172
2173
|
if (e === "multi") {
|
|
2173
2174
|
if (!r || !Array.isArray(r))
|
|
2174
|
-
throw new
|
|
2175
|
+
throw new U(
|
|
2175
2176
|
"currentContacts",
|
|
2176
2177
|
r,
|
|
2177
2178
|
"currentContacts is required for group streams"
|
|
@@ -2184,7 +2185,7 @@ class It {
|
|
|
2184
2185
|
);
|
|
2185
2186
|
} else
|
|
2186
2187
|
r ? i = r : i = "cloudUsername", o = this.helper.selectContacts(t.toString(), "direct", i);
|
|
2187
|
-
return O(o.pipe(
|
|
2188
|
+
return O(o.pipe(A((s) => s.contacts)));
|
|
2188
2189
|
}
|
|
2189
2190
|
/**
|
|
2190
2191
|
* Matches batch of {@link ContactItem} objects against the Host's contact list to fetch detailed
|
|
@@ -2196,7 +2197,7 @@ class It {
|
|
|
2196
2197
|
* Host's contact list.
|
|
2197
2198
|
*/
|
|
2198
2199
|
matchContacts(t) {
|
|
2199
|
-
return this.logger.debug("Match Contacts: ", t), O(this.helper.matchContacts(t).pipe(
|
|
2200
|
+
return this.logger.debug("Match Contacts: ", t), O(this.helper.matchContacts(t).pipe(A((e) => e.contacts)));
|
|
2200
2201
|
}
|
|
2201
2202
|
/**
|
|
2202
2203
|
* Requests the `Host` app to provide the Push Token for the current device.
|
|
@@ -2204,15 +2205,16 @@ class It {
|
|
|
2204
2205
|
* @returns A promise with the Push Token as `string`.
|
|
2205
2206
|
*/
|
|
2206
2207
|
requestPushToken() {
|
|
2207
|
-
return this.logger.debug("Requesting Push Token"), O(this.helper.requestPushToken().pipe(
|
|
2208
|
+
return this.logger.debug("Requesting Push Token"), O(this.helper.requestPushToken().pipe(A((t) => t.pushToken)));
|
|
2208
2209
|
}
|
|
2209
2210
|
/**
|
|
2210
2211
|
* Sends the current badge count to the `Host` app.
|
|
2211
2212
|
*
|
|
2212
2213
|
* @param count - The count to update the badge to.
|
|
2214
|
+
* @param isActivity - _Optional_. Whether the update is for an activity instead of a badge.
|
|
2213
2215
|
*/
|
|
2214
|
-
badgeUpdate(t) {
|
|
2215
|
-
this.logger.debug(
|
|
2216
|
+
badgeUpdate(t, e = !1) {
|
|
2217
|
+
this.logger.debug(`Sending Badge Update, count: ${t}, activity: ${e}`), this.helper.sendBadgeUpdateMessage(t, e);
|
|
2216
2218
|
}
|
|
2217
2219
|
/**
|
|
2218
2220
|
* Registers a callback to be invoked when a {@link IPCEvents.BadgeQuery} is received.
|