@acrobits/ipc-sdk 0.11.2-alpha.4 → 0.11.2-alpha.5
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/types/IpcProtocolVersion.html +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/ipc-sdk.js +17 -15
- package/lib/ipc-sdk.js.map +1 -1
- package/lib/ipc-sdk.umd.cjs +1 -1
- package/lib/ipc-sdk.umd.cjs.map +1 -1
- package/package.json +2 -2
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
<!DOCTYPE html><html class="default" lang="en" data-base="../"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>IpcProtocolVersion | Acrobits IPC SDK</title><meta name="description" content="Documentation for Acrobits IPC 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(() => window.app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><a href="../index.html" class="title">Acrobits IPC SDK</a><div id="tsd-toolbar-links"></div><button id="tsd-search-trigger" class="tsd-widget" aria-label="Search"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-search"></use></svg></button><dialog id="tsd-search" aria-label="Search"><input role="combobox" id="tsd-search-input" aria-controls="tsd-search-results" aria-autocomplete="list" aria-expanded="true" autocapitalize="off" autocomplete="off" placeholder="Search the docs" maxLength="100"/><ul role="listbox" id="tsd-search-results"></ul><div id="tsd-search-status" aria-live="polite" aria-atomic="true"><div>Preparing search index...</div></div></dialog><a href="#" class="tsd-widget menu" id="tsd-toolbar-menu-trigger" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb" aria-label="Breadcrumb"><li><a href="" aria-current="page">IpcProtocolVersion</a></li></ul><h1>Type Alias IpcProtocolVersion</h1></div><div class="tsd-signature"><span class="tsd-kind-type-alias">IpcProtocolVersion</span><span class="tsd-signature-symbol">:</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"0.1"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"0.2"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"0.3"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"0.4"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"0.5"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"0.6"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"0.7"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"0.8"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"0.9"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"0.10"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"2.0"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"2.1"</span></div><div class="tsd-comment tsd-typography"><p>Supported versions of the IPC Protocol.</p>
|
|
1
|
+
<!DOCTYPE html><html class="default" lang="en" data-base="../"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>IpcProtocolVersion | Acrobits IPC SDK</title><meta name="description" content="Documentation for Acrobits IPC 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(() => window.app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><a href="../index.html" class="title">Acrobits IPC SDK</a><div id="tsd-toolbar-links"></div><button id="tsd-search-trigger" class="tsd-widget" aria-label="Search"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-search"></use></svg></button><dialog id="tsd-search" aria-label="Search"><input role="combobox" id="tsd-search-input" aria-controls="tsd-search-results" aria-autocomplete="list" aria-expanded="true" autocapitalize="off" autocomplete="off" placeholder="Search the docs" maxLength="100"/><ul role="listbox" id="tsd-search-results"></ul><div id="tsd-search-status" aria-live="polite" aria-atomic="true"><div>Preparing search index...</div></div></dialog><a href="#" class="tsd-widget menu" id="tsd-toolbar-menu-trigger" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb" aria-label="Breadcrumb"><li><a href="" aria-current="page">IpcProtocolVersion</a></li></ul><h1>Type Alias IpcProtocolVersion</h1></div><div class="tsd-signature"><span class="tsd-kind-type-alias">IpcProtocolVersion</span><span class="tsd-signature-symbol">:</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"0.1"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"0.2"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"0.3"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"0.4"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"0.5"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"0.6"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"0.7"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"0.8"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"0.9"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"0.10"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"2.0"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"2.1"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"2.2"</span></div><div class="tsd-comment tsd-typography"><p>Supported versions of the IPC Protocol.</p>
|
|
2
2
|
</div><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in ipc-protocol/lib/index.d.ts:2663</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"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg><h3>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="../modules.html">Acrobits IPC SDK</a><ul class="tsd-small-nested-navigation" id="tsd-nav-container"><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>
|
package/lib/index.d.ts
CHANGED
|
@@ -545,7 +545,7 @@ export declare class IPCManager {
|
|
|
545
545
|
*
|
|
546
546
|
* @public
|
|
547
547
|
*/
|
|
548
|
-
export declare type IpcProtocolVersion = '0.1' | '0.2' | '0.3' | '0.4' | '0.5' | '0.6' | '0.7' | '0.8' | '0.9' | '0.10' | '2.0' | '2.1';
|
|
548
|
+
export declare type IpcProtocolVersion = '0.1' | '0.2' | '0.3' | '0.4' | '0.5' | '0.6' | '0.7' | '0.8' | '0.9' | '0.10' | '2.0' | '2.1' | '2.2';
|
|
549
549
|
|
|
550
550
|
/**
|
|
551
551
|
* Defines the properties of a number based contact item.
|
package/lib/ipc-sdk.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var M = (s, t, e) => (
|
|
1
|
+
var Pe = Object.defineProperty;
|
|
2
|
+
var Ae = (s, t, e) => t in s ? Pe(s, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[t] = e;
|
|
3
|
+
var M = (s, t, e) => (Ae(s, typeof t != "symbol" ? t + "" : t, e), e);
|
|
4
4
|
var S = /* @__PURE__ */ ((s) => (s.BadgeQuery = "BADGE QUERY", s.Lifecycle = "LIFECYCLE", s.PushToken = "PUSH TOKEN", s.RequestLogs = "REQUEST LOGS", s))(S || {}), B = function(s, t) {
|
|
5
5
|
return B = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, r) {
|
|
6
6
|
e.__proto__ = r;
|
|
@@ -250,7 +250,7 @@ var Oe = function() {
|
|
|
250
250
|
try {
|
|
251
251
|
e.next(t);
|
|
252
252
|
} catch (r) {
|
|
253
|
-
|
|
253
|
+
A(r);
|
|
254
254
|
}
|
|
255
255
|
}, s.prototype.error = function(t) {
|
|
256
256
|
var e = this.partialObserver;
|
|
@@ -258,17 +258,17 @@ var Oe = function() {
|
|
|
258
258
|
try {
|
|
259
259
|
e.error(t);
|
|
260
260
|
} catch (r) {
|
|
261
|
-
|
|
261
|
+
A(r);
|
|
262
262
|
}
|
|
263
263
|
else
|
|
264
|
-
|
|
264
|
+
A(t);
|
|
265
265
|
}, s.prototype.complete = function() {
|
|
266
266
|
var t = this.partialObserver;
|
|
267
267
|
if (t.complete)
|
|
268
268
|
try {
|
|
269
269
|
t.complete();
|
|
270
270
|
} catch (e) {
|
|
271
|
-
|
|
271
|
+
A(e);
|
|
272
272
|
}
|
|
273
273
|
}, s;
|
|
274
274
|
}(), N = function(s) {
|
|
@@ -295,7 +295,7 @@ var Oe = function() {
|
|
|
295
295
|
}
|
|
296
296
|
return t;
|
|
297
297
|
}(Z);
|
|
298
|
-
function
|
|
298
|
+
function A(s) {
|
|
299
299
|
_e(s);
|
|
300
300
|
}
|
|
301
301
|
function $e(s) {
|
|
@@ -1150,7 +1150,7 @@ function mt(s) {
|
|
|
1150
1150
|
function yt(s) {
|
|
1151
1151
|
return s && s instanceof re || mt(s) && Ue(s);
|
|
1152
1152
|
}
|
|
1153
|
-
function
|
|
1153
|
+
function P(s, t, e, r, n) {
|
|
1154
1154
|
return new vt(s, t, e, r, n);
|
|
1155
1155
|
}
|
|
1156
1156
|
var vt = function(s) {
|
|
@@ -1192,7 +1192,7 @@ var vt = function(s) {
|
|
|
1192
1192
|
function f(s, t) {
|
|
1193
1193
|
return R(function(e, r) {
|
|
1194
1194
|
var n = 0;
|
|
1195
|
-
e.subscribe(
|
|
1195
|
+
e.subscribe(P(r, function(i) {
|
|
1196
1196
|
r.next(s.call(t, i, n++));
|
|
1197
1197
|
}));
|
|
1198
1198
|
});
|
|
@@ -1205,7 +1205,7 @@ function w(s) {
|
|
|
1205
1205
|
return bt;
|
|
1206
1206
|
} : R(function(t, e) {
|
|
1207
1207
|
var r = 0;
|
|
1208
|
-
t.subscribe(
|
|
1208
|
+
t.subscribe(P(e, function(n) {
|
|
1209
1209
|
++r <= s && (e.next(n), s <= r && e.complete());
|
|
1210
1210
|
}));
|
|
1211
1211
|
});
|
|
@@ -1213,7 +1213,7 @@ function w(s) {
|
|
|
1213
1213
|
function m(s, t) {
|
|
1214
1214
|
return R(function(e, r) {
|
|
1215
1215
|
var n = 0;
|
|
1216
|
-
e.subscribe(
|
|
1216
|
+
e.subscribe(P(r, function(i) {
|
|
1217
1217
|
return s.call(t, i, n++) && r.next(i);
|
|
1218
1218
|
}));
|
|
1219
1219
|
});
|
|
@@ -1221,7 +1221,7 @@ function m(s, t) {
|
|
|
1221
1221
|
function wt(s, t) {
|
|
1222
1222
|
return t === void 0 && (t = !1), R(function(e, r) {
|
|
1223
1223
|
var n = 0;
|
|
1224
|
-
e.subscribe(
|
|
1224
|
+
e.subscribe(P(r, function(i) {
|
|
1225
1225
|
var o = s(i, n++);
|
|
1226
1226
|
(o || t) && r.next(i), !o && r.complete();
|
|
1227
1227
|
}));
|
|
@@ -1233,7 +1233,7 @@ function g(s, t, e) {
|
|
|
1233
1233
|
var o;
|
|
1234
1234
|
(o = r.subscribe) === null || o === void 0 || o.call(r);
|
|
1235
1235
|
var c = !0;
|
|
1236
|
-
n.subscribe(
|
|
1236
|
+
n.subscribe(P(i, function(a) {
|
|
1237
1237
|
var u;
|
|
1238
1238
|
(u = r.next) === null || u === void 0 || u.call(r, a), i.next(a);
|
|
1239
1239
|
}, function() {
|
|
@@ -1734,7 +1734,7 @@ class Mt {
|
|
|
1734
1734
|
), u.contacts.length !== h && this.logService.debug(
|
|
1735
1735
|
`[IPC] [SelectContactsReply] Filtered ${h - u.contacts.length} contacts from reply`
|
|
1736
1736
|
), !n.allowMultipleSelection && u.contacts.length > 1 && (u.contacts = [u.contacts[0]]);
|
|
1737
|
-
for (const l of u.contacts)
|
|
1737
|
+
for (const l of u.contacts) {
|
|
1738
1738
|
if (l.type === "cloudUsername") {
|
|
1739
1739
|
if (!l.contactUser)
|
|
1740
1740
|
throw new Error(
|
|
@@ -1749,6 +1749,8 @@ class Mt {
|
|
|
1749
1749
|
)}`
|
|
1750
1750
|
);
|
|
1751
1751
|
}
|
|
1752
|
+
this.negotiatedProtocolVersion === "2.2" && (l.type === "number" && l.numbers.length > 1 ? l.numbers = [l.numbers[0]] : l.type === "email" && l.emails.length > 1 && (l.emails = [l.emails[0]]));
|
|
1753
|
+
}
|
|
1752
1754
|
}
|
|
1753
1755
|
return u;
|
|
1754
1756
|
}),
|