@synnaxlabs/client 0.17.0 → 0.17.2
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/.turbo/turbo-build.log +5 -5
- package/dist/channel/client.d.ts +6 -2
- package/dist/client.cjs +5 -5
- package/dist/client.cjs.map +1 -1
- package/dist/client.js +67 -56
- package/dist/client.js.map +1 -1
- package/examples/node/basicReadWrite.js +67 -0
- package/examples/node/package-lock.json +69 -57
- package/examples/node/package.json +1 -1
- package/examples/node/streamWrite.js +79 -0
- package/package.json +3 -3
- package/src/channel/channel.spec.ts +68 -2
- package/src/channel/client.ts +18 -6
- package/src/framer/frame.ts +5 -1
- package/examples/node/basicReadWriter.js +0 -66
package/dist/client.js
CHANGED
|
@@ -3722,9 +3722,9 @@ const Ae = class Te {
|
|
|
3722
3722
|
);
|
|
3723
3723
|
}
|
|
3724
3724
|
toString() {
|
|
3725
|
-
const e = this.truncate(Te.DAY), t = this.truncate(Te.HOUR), n = this.truncate(Te.MINUTE), s = this.truncate(Te.SECOND), a = this.truncate(Te.MILLISECOND), i = this.truncate(Te.MICROSECOND), o = this.truncate(Te.NANOSECOND), c = e, l = t.sub(e), g = n.sub(t), E = s.sub(n), Q = a.sub(s), ce = i.sub(a),
|
|
3725
|
+
const e = this.truncate(Te.DAY), t = this.truncate(Te.HOUR), n = this.truncate(Te.MINUTE), s = this.truncate(Te.SECOND), a = this.truncate(Te.MILLISECOND), i = this.truncate(Te.MICROSECOND), o = this.truncate(Te.NANOSECOND), c = e, l = t.sub(e), g = n.sub(t), E = s.sub(n), Q = a.sub(s), ce = i.sub(a), Ne = o.sub(i);
|
|
3726
3726
|
let ee = "";
|
|
3727
|
-
return c.isZero || (ee += `${c.days}d `), l.isZero || (ee += `${l.hours}h `), g.isZero || (ee += `${g.minutes}m `), E.isZero || (ee += `${E.seconds}s `), Q.isZero || (ee += `${Q.milliseconds}ms `), ce.isZero || (ee += `${ce.microseconds}µs `),
|
|
3727
|
+
return c.isZero || (ee += `${c.days}d `), l.isZero || (ee += `${l.hours}h `), g.isZero || (ee += `${g.minutes}m `), E.isZero || (ee += `${E.seconds}s `), Q.isZero || (ee += `${Q.milliseconds}ms `), ce.isZero || (ee += `${ce.microseconds}µs `), Ne.isZero || (ee += `${Ne.nanoseconds}ns`), ee.trim();
|
|
3728
3728
|
}
|
|
3729
3729
|
/** @returns the decimal number of days in the timespan */
|
|
3730
3730
|
get days() {
|
|
@@ -4688,7 +4688,7 @@ let nm = (_n = class {
|
|
|
4688
4688
|
);
|
|
4689
4689
|
}
|
|
4690
4690
|
}, S(_n, "UNKNOWN", new _n({ host: "unknown", port: 0 })), _n);
|
|
4691
|
-
const
|
|
4691
|
+
const Se = (r) => Array.isArray(r) ? r : [r];
|
|
4692
4692
|
var _o;
|
|
4693
4693
|
try {
|
|
4694
4694
|
_o = new TextDecoder();
|
|
@@ -5132,19 +5132,19 @@ function cc(r) {
|
|
|
5132
5132
|
return Ye(e, t, n, s, a, i, o, c, l, g, E, Q, ce);
|
|
5133
5133
|
}
|
|
5134
5134
|
} else {
|
|
5135
|
-
let ce = P[p++],
|
|
5136
|
-
if ((ce & 128) > 0 || (
|
|
5135
|
+
let ce = P[p++], Ne = P[p++];
|
|
5136
|
+
if ((ce & 128) > 0 || (Ne & 128) > 0) {
|
|
5137
5137
|
p -= 14;
|
|
5138
5138
|
return;
|
|
5139
5139
|
}
|
|
5140
5140
|
if (r < 15)
|
|
5141
|
-
return Ye(e, t, n, s, a, i, o, c, l, g, E, Q, ce,
|
|
5141
|
+
return Ye(e, t, n, s, a, i, o, c, l, g, E, Q, ce, Ne);
|
|
5142
5142
|
let ee = P[p++];
|
|
5143
5143
|
if ((ee & 128) > 0) {
|
|
5144
5144
|
p -= 15;
|
|
5145
5145
|
return;
|
|
5146
5146
|
}
|
|
5147
|
-
return Ye(e, t, n, s, a, i, o, c, l, g, E, Q, ce,
|
|
5147
|
+
return Ye(e, t, n, s, a, i, o, c, l, g, E, Q, ce, Ne, ee);
|
|
5148
5148
|
}
|
|
5149
5149
|
}
|
|
5150
5150
|
}
|
|
@@ -5319,8 +5319,8 @@ let ym = class extends Ml {
|
|
|
5319
5319
|
e.structuredClone && e.moreTypes == null && (this.moreTypes = !0);
|
|
5320
5320
|
let E = e.maxOwnStructures;
|
|
5321
5321
|
E == null && (E = l ? 32 : 64), !this.structures && e.useRecords != !1 && (this.structures = []);
|
|
5322
|
-
let Q = g > 32 || E + g > 64, ce = g + 64,
|
|
5323
|
-
if (
|
|
5322
|
+
let Q = g > 32 || E + g > 64, ce = g + 64, Ne = g + E + 64;
|
|
5323
|
+
if (Ne > 8256)
|
|
5324
5324
|
throw new Error("Maximum maxSharedStructure + maxOwnStructure is 8192");
|
|
5325
5325
|
let ee = [], tr = 0, rr = 0;
|
|
5326
5326
|
this.pack = this.encode = function(d, O) {
|
|
@@ -5593,7 +5593,7 @@ let ym = class extends Ml {
|
|
|
5593
5593
|
return Ie = m.dataView || (m.dataView = new DataView(m.buffer, 0, O)), d = Math.min(d, b.length), b.copy ? b.copy(m, 0, t, d) : m.set(b.slice(t, d)), v -= t, t = 0, dt = m.length - 10, b = m;
|
|
5594
5594
|
}, Qr = (d, O, m) => {
|
|
5595
5595
|
let y = s.nextId;
|
|
5596
|
-
y || (y = 64), y < ce && this.shouldShareStructure && !this.shouldShareStructure(O) ? (y = s.nextOwnId, y <
|
|
5596
|
+
y || (y = 64), y < ce && this.shouldShareStructure && !this.shouldShareStructure(O) ? (y = s.nextOwnId, y < Ne || (y = ce), s.nextOwnId = y + 1) : (y >= Ne && (y = ce), s.nextId = y + 1);
|
|
5597
5597
|
let k = O.highByte = y >= 96 && Q ? y - 96 >> 5 : -1;
|
|
5598
5598
|
d[kn] = y, d.__keys__ = O, s[y - 64] = O, y < ce ? (O.isShared = !0, s.sharedLength = y - 63, n = !0, k >= 0 ? (b[v++] = (y & 31) + 96, b[v++] = k) : b[v++] = y) : (k >= 0 ? (b[v++] = 213, b[v++] = 114, b[v++] = (y & 31) + 96, b[v++] = k) : (b[v++] = 212, b[v++] = 114, b[v++] = y), m && (tr += rr * m), ee.length >= E && (ee.shift()[kn] = 0), ee.push(d), te(O));
|
|
5599
5599
|
}, Jn = (d, O, m, y) => {
|
|
@@ -6065,7 +6065,7 @@ class lc {
|
|
|
6065
6065
|
}
|
|
6066
6066
|
}
|
|
6067
6067
|
const Jr = (r) => {
|
|
6068
|
-
const e =
|
|
6068
|
+
const e = Se(r).filter((t) => t != 0);
|
|
6069
6069
|
return {
|
|
6070
6070
|
single: !Array.isArray(r),
|
|
6071
6071
|
variant: typeof e[0] == "number" ? "keys" : "names",
|
|
@@ -9806,9 +9806,9 @@ const $e = class xe {
|
|
|
9806
9806
|
);
|
|
9807
9807
|
}
|
|
9808
9808
|
toString() {
|
|
9809
|
-
const e = this.truncate(xe.DAY), t = this.truncate(xe.HOUR), n = this.truncate(xe.MINUTE), s = this.truncate(xe.SECOND), a = this.truncate(xe.MILLISECOND), i = this.truncate(xe.MICROSECOND), o = this.truncate(xe.NANOSECOND), c = e, l = t.sub(e), g = n.sub(t), E = s.sub(n), Q = a.sub(s), ce = i.sub(a),
|
|
9809
|
+
const e = this.truncate(xe.DAY), t = this.truncate(xe.HOUR), n = this.truncate(xe.MINUTE), s = this.truncate(xe.SECOND), a = this.truncate(xe.MILLISECOND), i = this.truncate(xe.MICROSECOND), o = this.truncate(xe.NANOSECOND), c = e, l = t.sub(e), g = n.sub(t), E = s.sub(n), Q = a.sub(s), ce = i.sub(a), Ne = o.sub(i);
|
|
9810
9810
|
let ee = "";
|
|
9811
|
-
return c.isZero || (ee += `${c.days}d `), l.isZero || (ee += `${l.hours}h `), g.isZero || (ee += `${g.minutes}m `), E.isZero || (ee += `${E.seconds}s `), Q.isZero || (ee += `${Q.milliseconds}ms `), ce.isZero || (ee += `${ce.microseconds}µs `),
|
|
9811
|
+
return c.isZero || (ee += `${c.days}d `), l.isZero || (ee += `${l.hours}h `), g.isZero || (ee += `${g.minutes}m `), E.isZero || (ee += `${E.seconds}s `), Q.isZero || (ee += `${Q.milliseconds}ms `), ce.isZero || (ee += `${ce.microseconds}µs `), Ne.isZero || (ee += `${Ne.nanoseconds}ns`), ee.trim();
|
|
9812
9812
|
}
|
|
9813
9813
|
/** @returns the decimal number of days in the timespan */
|
|
9814
9814
|
get days() {
|
|
@@ -10911,19 +10911,19 @@ function xc(r) {
|
|
|
10911
10911
|
return Je(e, t, n, s, a, i, o, c, l, g, E, Q, ce);
|
|
10912
10912
|
}
|
|
10913
10913
|
} else {
|
|
10914
|
-
let ce = U[f++],
|
|
10915
|
-
if ((ce & 128) > 0 || (
|
|
10914
|
+
let ce = U[f++], Ne = U[f++];
|
|
10915
|
+
if ((ce & 128) > 0 || (Ne & 128) > 0) {
|
|
10916
10916
|
f -= 14;
|
|
10917
10917
|
return;
|
|
10918
10918
|
}
|
|
10919
10919
|
if (r < 15)
|
|
10920
|
-
return Je(e, t, n, s, a, i, o, c, l, g, E, Q, ce,
|
|
10920
|
+
return Je(e, t, n, s, a, i, o, c, l, g, E, Q, ce, Ne);
|
|
10921
10921
|
let ee = U[f++];
|
|
10922
10922
|
if ((ee & 128) > 0) {
|
|
10923
10923
|
f -= 15;
|
|
10924
10924
|
return;
|
|
10925
10925
|
}
|
|
10926
|
-
return Je(e, t, n, s, a, i, o, c, l, g, E, Q, ce,
|
|
10926
|
+
return Je(e, t, n, s, a, i, o, c, l, g, E, Q, ce, Ne, ee);
|
|
10927
10927
|
}
|
|
10928
10928
|
}
|
|
10929
10929
|
}
|
|
@@ -11098,8 +11098,8 @@ class Qg extends Zs {
|
|
|
11098
11098
|
e.structuredClone && e.moreTypes == null && (this.moreTypes = !0);
|
|
11099
11099
|
let E = e.maxOwnStructures;
|
|
11100
11100
|
E == null && (E = l ? 32 : 64), !this.structures && e.useRecords != !1 && (this.structures = []);
|
|
11101
|
-
let Q = g > 32 || E + g > 64, ce = g + 64,
|
|
11102
|
-
if (
|
|
11101
|
+
let Q = g > 32 || E + g > 64, ce = g + 64, Ne = g + E + 64;
|
|
11102
|
+
if (Ne > 8256)
|
|
11103
11103
|
throw new Error("Maximum maxSharedStructure + maxOwnStructure is 8192");
|
|
11104
11104
|
let ee = [], tr = 0, rr = 0;
|
|
11105
11105
|
this.pack = this.encode = function(d, O) {
|
|
@@ -11372,7 +11372,7 @@ class Qg extends Zs {
|
|
|
11372
11372
|
return Ce = m.dataView || (m.dataView = new DataView(m.buffer, 0, O)), d = Math.min(d, _.length), _.copy ? _.copy(m, 0, t, d) : m.set(_.slice(t, d)), w -= t, t = 0, ht = m.length - 10, _ = m;
|
|
11373
11373
|
}, Qr = (d, O, m) => {
|
|
11374
11374
|
let y = s.nextId;
|
|
11375
|
-
y || (y = 64), y < ce && this.shouldShareStructure && !this.shouldShareStructure(O) ? (y = s.nextOwnId, y <
|
|
11375
|
+
y || (y = 64), y < ce && this.shouldShareStructure && !this.shouldShareStructure(O) ? (y = s.nextOwnId, y < Ne || (y = ce), s.nextOwnId = y + 1) : (y >= Ne && (y = ce), s.nextId = y + 1);
|
|
11376
11376
|
let k = O.highByte = y >= 96 && Q ? y - 96 >> 5 : -1;
|
|
11377
11377
|
d[Tn] = y, d.__keys__ = O, s[y - 64] = O, y < ce ? (O.isShared = !0, s.sharedLength = y - 63, n = !0, k >= 0 ? (_[w++] = (y & 31) + 96, _[w++] = k) : _[w++] = y) : (k >= 0 ? (_[w++] = 213, _[w++] = 114, _[w++] = (y & 31) + 96, _[w++] = k) : (_[w++] = 212, _[w++] = 114, _[w++] = y), m && (tr += rr * m), ee.length >= E && (ee.shift()[Tn] = 0), ee.push(d), te(O));
|
|
11378
11378
|
}, Jn = (d, O, m, y) => {
|
|
@@ -14480,8 +14480,8 @@ class dw extends ih {
|
|
|
14480
14480
|
try {
|
|
14481
14481
|
E = await Ru(l.protocol)(l.target, o);
|
|
14482
14482
|
} catch (ce) {
|
|
14483
|
-
let
|
|
14484
|
-
return
|
|
14483
|
+
let Ne = ce;
|
|
14484
|
+
return Ne.message === "Load failed" && (Ne = new qs({ url: i })), [g, Ne];
|
|
14485
14485
|
}
|
|
14486
14486
|
const Q = await E.arrayBuffer();
|
|
14487
14487
|
if (E != null && E.ok)
|
|
@@ -14489,8 +14489,8 @@ class dw extends ih {
|
|
|
14489
14489
|
try {
|
|
14490
14490
|
if (E.status !== 400)
|
|
14491
14491
|
return [g, new Error(E.statusText)];
|
|
14492
|
-
const ce = this.encoder.decode(Q, ta),
|
|
14493
|
-
return [g,
|
|
14492
|
+
const ce = this.encoder.decode(Q, ta), Ne = Nc(ce);
|
|
14493
|
+
return [g, Ne];
|
|
14494
14494
|
} catch (ce) {
|
|
14495
14495
|
return [
|
|
14496
14496
|
g,
|
|
@@ -14802,9 +14802,14 @@ let hh = class {
|
|
|
14802
14802
|
h(this, "client");
|
|
14803
14803
|
this.frameClient = e, this.retriever = t, this.client = n, this.creator = s;
|
|
14804
14804
|
}
|
|
14805
|
-
async create(e) {
|
|
14806
|
-
const
|
|
14807
|
-
|
|
14805
|
+
async create(e, t = {}) {
|
|
14806
|
+
const { retrieveIfNameExists: n = !1 } = t, s = !Array.isArray(e);
|
|
14807
|
+
let a = Se(e), i = [];
|
|
14808
|
+
if (n) {
|
|
14809
|
+
const o = await this.retriever.retrieve(a.map((l) => l.name)), c = new Set(o.map((l) => l.name));
|
|
14810
|
+
a = a.filter((l) => !c.has(l.name)), i = this.sugar(o);
|
|
14811
|
+
}
|
|
14812
|
+
return i = i.concat(this.sugar(await this.creator.create(a))), s ? i[0] : i;
|
|
14808
14813
|
}
|
|
14809
14814
|
/**
|
|
14810
14815
|
* Retrieves a channel from the database using the given parameters.
|
|
@@ -15001,10 +15006,10 @@ h(Zr, "Absolute", 255), h(Zr, "Default", 1), h(Zr, "z", u.union([
|
|
|
15001
15006
|
]));
|
|
15002
15007
|
let vn = Zr;
|
|
15003
15008
|
const Uu = (r) => {
|
|
15004
|
-
const e =
|
|
15009
|
+
const e = Se(r);
|
|
15005
15010
|
return e.length === 0 ? null : typeof e[0] == "number" ? "key" : "name";
|
|
15006
15011
|
}, Du = (r, e) => {
|
|
15007
|
-
const t =
|
|
15012
|
+
const t = Se(r);
|
|
15008
15013
|
if (t.length === e.length)
|
|
15009
15014
|
return;
|
|
15010
15015
|
const n = Uu(r);
|
|
@@ -15024,7 +15029,7 @@ class wt {
|
|
|
15024
15029
|
return;
|
|
15025
15030
|
}
|
|
15026
15031
|
if (e instanceof Map) {
|
|
15027
|
-
e.forEach((s, a) => this.push(a, ...
|
|
15032
|
+
e.forEach((s, a) => this.push(a, ...Se(s)));
|
|
15028
15033
|
return;
|
|
15029
15034
|
}
|
|
15030
15035
|
if (typeof e == "object" && !Array.isArray(e)) {
|
|
@@ -15032,11 +15037,17 @@ class wt {
|
|
|
15032
15037
|
const s = e, a = s.series.map((i) => yh(i));
|
|
15033
15038
|
Du(s.keys, a), s.keys.forEach((i, o) => this.push(i, a[o]));
|
|
15034
15039
|
} else
|
|
15035
|
-
Object.entries(e).forEach(([s, a]) =>
|
|
15040
|
+
Object.entries(e).forEach(([s, a]) => {
|
|
15041
|
+
const i = parseInt(s);
|
|
15042
|
+
if (isNaN(i))
|
|
15043
|
+
this.push(s, ...Se(a));
|
|
15044
|
+
else
|
|
15045
|
+
return this.push(i, ...Se(a));
|
|
15046
|
+
});
|
|
15036
15047
|
return;
|
|
15037
15048
|
}
|
|
15038
15049
|
if (Array.isArray(e) || ["string", "number"].includes(typeof e)) {
|
|
15039
|
-
const s =
|
|
15050
|
+
const s = Se(t), a = Se(e);
|
|
15040
15051
|
Du(a, s), s.forEach((i, o) => this.push(a[o], i));
|
|
15041
15052
|
return;
|
|
15042
15053
|
}
|
|
@@ -15659,7 +15670,7 @@ let wh = (un = class {
|
|
|
15659
15670
|
start: new je(i),
|
|
15660
15671
|
keys: c.keys,
|
|
15661
15672
|
controlSubject: a,
|
|
15662
|
-
authorities:
|
|
15673
|
+
authorities: Se(s),
|
|
15663
15674
|
mode: o
|
|
15664
15675
|
}
|
|
15665
15676
|
}), g;
|
|
@@ -15909,7 +15920,7 @@ let kh = class {
|
|
|
15909
15920
|
return (await this.writer.create([e]))[0];
|
|
15910
15921
|
}
|
|
15911
15922
|
async retrieve(e) {
|
|
15912
|
-
const t = await this.retriever.retrieve(
|
|
15923
|
+
const t = await this.retriever.retrieve(Se(e));
|
|
15913
15924
|
return Array.isArray(e) ? t : t[0];
|
|
15914
15925
|
}
|
|
15915
15926
|
async search(e) {
|
|
@@ -16012,7 +16023,7 @@ let xh = class {
|
|
|
16012
16023
|
return this.sugar(n);
|
|
16013
16024
|
}
|
|
16014
16025
|
async retrieve(e) {
|
|
16015
|
-
const t = await this.retriever.retrieve(
|
|
16026
|
+
const t = await this.retriever.retrieve(Se(e));
|
|
16016
16027
|
return Array.isArray(e) ? this.sugar(t) : this.sugar(t)[0];
|
|
16017
16028
|
}
|
|
16018
16029
|
sugar(e) {
|
|
@@ -16139,7 +16150,7 @@ let Ah = class {
|
|
|
16139
16150
|
async retrieve(e) {
|
|
16140
16151
|
const t = {};
|
|
16141
16152
|
let n = !0;
|
|
16142
|
-
typeof e == "number" ? t.rack = e : typeof e == "string" ? (n = !1, t.keys = [e]) : t.keys =
|
|
16153
|
+
typeof e == "number" ? t.rack = e : typeof e == "string" ? (n = !1, t.keys = [e]) : t.keys = Se(e);
|
|
16143
16154
|
const s = await this.retriever.retrieve(t);
|
|
16144
16155
|
return n ? s : s[0];
|
|
16145
16156
|
}
|
|
@@ -16389,14 +16400,14 @@ let $b = ($n = class {
|
|
|
16389
16400
|
}
|
|
16390
16401
|
async retrieve(e, t = !0, n = !0) {
|
|
16391
16402
|
return await this.execute({
|
|
16392
|
-
ids:
|
|
16403
|
+
ids: Se(e).map((s) => new rt(s).payload),
|
|
16393
16404
|
includeFieldData: n,
|
|
16394
16405
|
includeSchema: t
|
|
16395
16406
|
});
|
|
16396
16407
|
}
|
|
16397
16408
|
async retrieveChildren(e, t = !0, n = !0) {
|
|
16398
16409
|
return await this.execute({
|
|
16399
|
-
ids:
|
|
16410
|
+
ids: Se(e).map((s) => new rt(s).payload),
|
|
16400
16411
|
children: !0,
|
|
16401
16412
|
includeSchema: t,
|
|
16402
16413
|
includeFieldData: n
|
|
@@ -16404,7 +16415,7 @@ let $b = ($n = class {
|
|
|
16404
16415
|
}
|
|
16405
16416
|
async retrieveParents(e, t = !0, n = !0) {
|
|
16406
16417
|
return await this.execute({
|
|
16407
|
-
ids:
|
|
16418
|
+
ids: Se(e).map((s) => new rt(s).payload),
|
|
16408
16419
|
parents: !0,
|
|
16409
16420
|
includeSchema: t,
|
|
16410
16421
|
includeFieldData: n
|
|
@@ -16610,7 +16621,7 @@ let Mh = (Cn = class {
|
|
|
16610
16621
|
this.client = e;
|
|
16611
16622
|
}
|
|
16612
16623
|
async retrieve(e) {
|
|
16613
|
-
const t =
|
|
16624
|
+
const t = Se(e);
|
|
16614
16625
|
return await this.execute({ keys: t });
|
|
16615
16626
|
}
|
|
16616
16627
|
async retrieveFor(e) {
|
|
@@ -16653,7 +16664,7 @@ let zh = class {
|
|
|
16653
16664
|
return (await J(
|
|
16654
16665
|
this.client,
|
|
16655
16666
|
zb,
|
|
16656
|
-
{ labels:
|
|
16667
|
+
{ labels: Se(e) },
|
|
16657
16668
|
Db,
|
|
16658
16669
|
Mb
|
|
16659
16670
|
)).labels;
|
|
@@ -16662,7 +16673,7 @@ let zh = class {
|
|
|
16662
16673
|
await J(
|
|
16663
16674
|
this.client,
|
|
16664
16675
|
Vb,
|
|
16665
|
-
{ keys:
|
|
16676
|
+
{ keys: Se(e) },
|
|
16666
16677
|
Lb,
|
|
16667
16678
|
lo
|
|
16668
16679
|
);
|
|
@@ -16752,7 +16763,7 @@ const Yb = (r, e) => r === "delete" ? e.toUUIDs().map((t) => ({
|
|
|
16752
16763
|
}), Kh = aa.extend({
|
|
16753
16764
|
key: u.string().uuid().optional()
|
|
16754
16765
|
}), Dc = (r) => {
|
|
16755
|
-
const e =
|
|
16766
|
+
const e = Se(r);
|
|
16756
16767
|
if (e.length === 0)
|
|
16757
16768
|
throw new Error("Range params must not be empty");
|
|
16758
16769
|
const t = ut.safeParse(e[0]).success;
|
|
@@ -16922,7 +16933,7 @@ const f_ = u.object({
|
|
|
16922
16933
|
async get(e) {
|
|
16923
16934
|
const [t, n] = await this.client.send(
|
|
16924
16935
|
$r.GET_ENDPOINT,
|
|
16925
|
-
{ range: this.rangeKey, keys:
|
|
16936
|
+
{ range: this.rangeKey, keys: Se(e) },
|
|
16926
16937
|
g_,
|
|
16927
16938
|
v_
|
|
16928
16939
|
);
|
|
@@ -16946,7 +16957,7 @@ const f_ = u.object({
|
|
|
16946
16957
|
await J(
|
|
16947
16958
|
this.client,
|
|
16948
16959
|
$r.DELETE_ENDPOINT,
|
|
16949
|
-
{ range: this.rangeKey, keys:
|
|
16960
|
+
{ range: this.rangeKey, keys: Se(e) },
|
|
16950
16961
|
b_,
|
|
16951
16962
|
u.unknown()
|
|
16952
16963
|
);
|
|
@@ -17007,14 +17018,14 @@ let Fh = class {
|
|
|
17007
17018
|
this.frameClient = e, this.retriever = t, this.writer = n, this.unaryClient = s, this.channels = a, this.active = new n_(s), this.labelClient = i;
|
|
17008
17019
|
}
|
|
17009
17020
|
async create(e) {
|
|
17010
|
-
const t = !Array.isArray(e), n = this.sugar(await this.writer.create(
|
|
17021
|
+
const t = !Array.isArray(e), n = this.sugar(await this.writer.create(Se(e)));
|
|
17011
17022
|
return t ? n[0] : n;
|
|
17012
17023
|
}
|
|
17013
17024
|
async rename(e, t) {
|
|
17014
17025
|
await this.writer.rename(e, t);
|
|
17015
17026
|
}
|
|
17016
17027
|
async delete(e) {
|
|
17017
|
-
await this.writer.delete(
|
|
17028
|
+
await this.writer.delete(Se(e));
|
|
17018
17029
|
}
|
|
17019
17030
|
async search(e) {
|
|
17020
17031
|
return this.sugar(await this.retriever.search(e));
|
|
@@ -17172,7 +17183,7 @@ let P_ = class {
|
|
|
17172
17183
|
this.client = e;
|
|
17173
17184
|
}
|
|
17174
17185
|
async retrieve(e) {
|
|
17175
|
-
const t =
|
|
17186
|
+
const t = Se(e);
|
|
17176
17187
|
return (await J(
|
|
17177
17188
|
this.client,
|
|
17178
17189
|
this.ENDPOINT,
|
|
@@ -17215,7 +17226,7 @@ let G_ = class {
|
|
|
17215
17226
|
)).linePlots[0];
|
|
17216
17227
|
}
|
|
17217
17228
|
async delete(e) {
|
|
17218
|
-
const t =
|
|
17229
|
+
const t = Se(e);
|
|
17219
17230
|
await J(
|
|
17220
17231
|
this.client,
|
|
17221
17232
|
W_,
|
|
@@ -17290,7 +17301,7 @@ let t1 = class {
|
|
|
17290
17301
|
return (await J(
|
|
17291
17302
|
this.client,
|
|
17292
17303
|
this.ENDPOINT,
|
|
17293
|
-
{ keys:
|
|
17304
|
+
{ keys: Se(e) },
|
|
17294
17305
|
Q_,
|
|
17295
17306
|
e1
|
|
17296
17307
|
)).pids;
|
|
@@ -17346,7 +17357,7 @@ let y1 = class {
|
|
|
17346
17357
|
)).pid;
|
|
17347
17358
|
}
|
|
17348
17359
|
async delete(e) {
|
|
17349
|
-
const t =
|
|
17360
|
+
const t = Se(e);
|
|
17350
17361
|
await J(
|
|
17351
17362
|
this.client,
|
|
17352
17363
|
h1,
|
|
@@ -17413,7 +17424,7 @@ const v1 = u.object({
|
|
|
17413
17424
|
this.client = e;
|
|
17414
17425
|
}
|
|
17415
17426
|
async retrieve(e) {
|
|
17416
|
-
const t =
|
|
17427
|
+
const t = Se(e);
|
|
17417
17428
|
return await this.execute({ keys: t });
|
|
17418
17429
|
}
|
|
17419
17430
|
async retrieveByAuthor(e) {
|
|
@@ -17456,7 +17467,7 @@ class C1 {
|
|
|
17456
17467
|
return (await J(
|
|
17457
17468
|
this.client,
|
|
17458
17469
|
A1,
|
|
17459
|
-
{ workspaces:
|
|
17470
|
+
{ workspaces: Se(e) },
|
|
17460
17471
|
_1,
|
|
17461
17472
|
k1
|
|
17462
17473
|
)).workspaces;
|
|
@@ -17465,7 +17476,7 @@ class C1 {
|
|
|
17465
17476
|
await J(
|
|
17466
17477
|
this.client,
|
|
17467
17478
|
I1,
|
|
17468
|
-
{ keys:
|
|
17479
|
+
{ keys: Se(e) },
|
|
17469
17480
|
O1,
|
|
17470
17481
|
T1
|
|
17471
17482
|
);
|
|
@@ -17600,11 +17611,11 @@ class R1 {
|
|
|
17600
17611
|
new Oh(this.transport.unary),
|
|
17601
17612
|
new Th(this.transport.unary),
|
|
17602
17613
|
this.telem
|
|
17603
|
-
), ce = new Ih(this.transport.unary),
|
|
17614
|
+
), ce = new Ih(this.transport.unary), Ne = new Zh(this.transport.unary), ee = new Ah(ce, Ne), tr = new xh(
|
|
17604
17615
|
new Eh(this.transport.unary),
|
|
17605
17616
|
new Nh(this.transport.unary),
|
|
17606
17617
|
this.telem,
|
|
17607
|
-
|
|
17618
|
+
Ne,
|
|
17608
17619
|
ce
|
|
17609
17620
|
);
|
|
17610
17621
|
this.hardware = new _h(ee, tr, Q);
|