@milaboratories/pl-client 2.5.3 → 2.5.4
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/dist/core/transaction.d.ts +1 -0
- package/dist/core/transaction.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +179 -168
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/core/transaction.ts +23 -8
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var Di = Object.defineProperty;
|
|
2
2
|
var Oi = (o, e, t) => e in o ? Di(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t;
|
|
3
|
-
var
|
|
3
|
+
var y = (o, e, t) => Oi(o, typeof e != "symbol" ? e + "" : e, t);
|
|
4
4
|
import { notEmpty as T, Aborted as si, assertNever as oi, createRetryState as ai, nextRetryStateOrError as li } from "@milaboratories/ts-helpers";
|
|
5
5
|
import { ServiceType as Ki, stackIntercept as k } from "@protobuf-ts/runtime-rpc";
|
|
6
6
|
import { MessageType as h, PbLong as W, typeofJsonValue as bn, reflectionMergePartial as p, UnknownFieldHandler as u, WireType as c, jsonWriteOptions as qi, isJsonObject as En } from "@protobuf-ts/runtime";
|
|
@@ -258,7 +258,7 @@ class ir extends h {
|
|
|
258
258
|
return n !== !1 && (n == !0 ? u.onWrite : n)(this.typeName, e, t), t;
|
|
259
259
|
}
|
|
260
260
|
}
|
|
261
|
-
const
|
|
261
|
+
const g = new ir();
|
|
262
262
|
class rr extends h {
|
|
263
263
|
constructor() {
|
|
264
264
|
super("MiLaboratories.PL.Base.FieldRef", [
|
|
@@ -535,7 +535,7 @@ new ar();
|
|
|
535
535
|
class lr extends h {
|
|
536
536
|
constructor() {
|
|
537
537
|
super("MiLaboratories.PL.RTypes.NotificationFilter", [
|
|
538
|
-
{ no: 1, name: "resource_type", kind: "message", oneof: "resourceFilter", T: () =>
|
|
538
|
+
{ no: 1, name: "resource_type", kind: "message", oneof: "resourceFilter", T: () => g },
|
|
539
539
|
{
|
|
540
540
|
no: 7,
|
|
541
541
|
name: "resource_id",
|
|
@@ -562,7 +562,7 @@ class lr extends h {
|
|
|
562
562
|
1:
|
|
563
563
|
r.resourceFilter = {
|
|
564
564
|
oneofKind: "resourceType",
|
|
565
|
-
resourceType:
|
|
565
|
+
resourceType: g.internalBinaryRead(e, e.uint32(), i, r.resourceFilter.resourceType)
|
|
566
566
|
};
|
|
567
567
|
break;
|
|
568
568
|
case /* uint64 resource_id */
|
|
@@ -591,7 +591,7 @@ class lr extends h {
|
|
|
591
591
|
return r;
|
|
592
592
|
}
|
|
593
593
|
internalBinaryWrite(e, t, i) {
|
|
594
|
-
e.resourceFilter.oneofKind === "resourceType" &&
|
|
594
|
+
e.resourceFilter.oneofKind === "resourceType" && g.internalBinaryWrite(e.resourceFilter.resourceType, t.tag(1, c.LengthDelimited).fork(), i).join(), e.resourceFilter.oneofKind === "resourceId" && t.tag(7, c.Varint).uint64(e.resourceFilter.resourceId), e.eventFilter && ge.internalBinaryWrite(e.eventFilter, t.tag(8, c.LengthDelimited).fork(), i).join(), e.payload && q.internalBinaryWrite(e.payload, t.tag(9, c.LengthDelimited).fork(), i).join();
|
|
595
595
|
let n = i.writeUnknownFields;
|
|
596
596
|
return n !== !1 && (n == !0 ? u.onWrite : n)(this.typeName, e, t), t;
|
|
597
597
|
}
|
|
@@ -1053,7 +1053,7 @@ class hr extends h {
|
|
|
1053
1053
|
/*LongType.BIGINT*/
|
|
1054
1054
|
},
|
|
1055
1055
|
{ no: 3, name: "kind", kind: "enum", T: () => ["MiLaboratories.PL.API.Resource.Kind", ue, "KIND_"] },
|
|
1056
|
-
{ no: 4, name: "type", kind: "message", T: () =>
|
|
1056
|
+
{ no: 4, name: "type", kind: "message", T: () => g },
|
|
1057
1057
|
{
|
|
1058
1058
|
no: 5,
|
|
1059
1059
|
name: "data",
|
|
@@ -1136,7 +1136,7 @@ class hr extends h {
|
|
|
1136
1136
|
break;
|
|
1137
1137
|
case /* MiLaboratories.PL.Base.ResourceType type */
|
|
1138
1138
|
4:
|
|
1139
|
-
r.type =
|
|
1139
|
+
r.type = g.internalBinaryRead(e, e.uint32(), i, r.type);
|
|
1140
1140
|
break;
|
|
1141
1141
|
case /* bytes data */
|
|
1142
1142
|
5:
|
|
@@ -1193,7 +1193,7 @@ class hr extends h {
|
|
|
1193
1193
|
return r;
|
|
1194
1194
|
}
|
|
1195
1195
|
internalBinaryWrite(e, t, i) {
|
|
1196
|
-
e.id !== 0n && t.tag(2, c.Varint).uint64(e.id), e.kind !== 0 && t.tag(3, c.Varint).int32(e.kind), e.type &&
|
|
1196
|
+
e.id !== 0n && t.tag(2, c.Varint).uint64(e.id), e.kind !== 0 && t.tag(3, c.Varint).int32(e.kind), e.type && g.internalBinaryWrite(e.type, t.tag(4, c.LengthDelimited).fork(), i).join(), e.data.length && t.tag(5, c.LengthDelimited).bytes(e.data);
|
|
1197
1197
|
for (let r = 0; r < e.fields.length; r++)
|
|
1198
1198
|
w.internalBinaryWrite(e.fields[r], t.tag(6, c.LengthDelimited).fork(), i).join();
|
|
1199
1199
|
e.hasErrors !== !1 && t.tag(7, c.Varint).bool(e.hasErrors), e.inputsLocked !== !1 && t.tag(8, c.Varint).bool(e.inputsLocked), e.outputsLocked !== !1 && t.tag(9, c.Varint).bool(e.outputsLocked), e.resourceReady !== !1 && t.tag(14, c.Varint).bool(e.resourceReady), e.isFinal !== !1 && t.tag(15, c.Varint).bool(e.isFinal), e.originalResourceId !== 0n && t.tag(10, c.Varint).uint64(e.originalResourceId), e.parentResourceId !== 0n && t.tag(11, c.Varint).uint64(e.parentResourceId), e.createdTime && C.internalBinaryWrite(e.createdTime, t.tag(12, c.LengthDelimited).fork(), i).join(), e.deletedTime && C.internalBinaryWrite(e.deletedTime, t.tag(13, c.LengthDelimited).fork(), i).join();
|
|
@@ -1201,7 +1201,7 @@ class hr extends h {
|
|
|
1201
1201
|
return n !== !1 && (n == !0 ? u.onWrite : n)(this.typeName, e, t), t;
|
|
1202
1202
|
}
|
|
1203
1203
|
}
|
|
1204
|
-
const
|
|
1204
|
+
const A = new hr();
|
|
1205
1205
|
class pr extends h {
|
|
1206
1206
|
constructor() {
|
|
1207
1207
|
super("MiLaboratories.PL.API.Field", [
|
|
@@ -1310,7 +1310,7 @@ class yr extends h {
|
|
|
1310
1310
|
L: 0
|
|
1311
1311
|
/*LongType.BIGINT*/
|
|
1312
1312
|
},
|
|
1313
|
-
{ no: 4, name: "resource_type", kind: "message", T: () =>
|
|
1313
|
+
{ no: 4, name: "resource_type", kind: "message", T: () => g },
|
|
1314
1314
|
{ no: 5, name: "events", kind: "message", T: () => ke },
|
|
1315
1315
|
{ no: 6, name: "field_changes", kind: "map", K: 9, V: { kind: "message", T: () => Z } },
|
|
1316
1316
|
{ no: 7, name: "payload", kind: "message", T: () => q },
|
|
@@ -1347,7 +1347,7 @@ class yr extends h {
|
|
|
1347
1347
|
break;
|
|
1348
1348
|
case /* MiLaboratories.PL.Base.ResourceType resource_type */
|
|
1349
1349
|
4:
|
|
1350
|
-
r.resourceType =
|
|
1350
|
+
r.resourceType = g.internalBinaryRead(e, e.uint32(), i, r.resourceType);
|
|
1351
1351
|
break;
|
|
1352
1352
|
case /* MiLaboratories.PL.API.Notification.Events events */
|
|
1353
1353
|
5:
|
|
@@ -1397,7 +1397,7 @@ class yr extends h {
|
|
|
1397
1397
|
e[d ?? ""] = a ?? Z.create();
|
|
1398
1398
|
}
|
|
1399
1399
|
internalBinaryWrite(e, t, i) {
|
|
1400
|
-
e.subscriptionId !== 0n && t.tag(1, c.Varint).uint64(e.subscriptionId), e.eventId !== 0n && t.tag(2, c.Varint).uint64(e.eventId), e.resourceId !== 0n && t.tag(3, c.Varint).uint64(e.resourceId), e.resourceType &&
|
|
1400
|
+
e.subscriptionId !== 0n && t.tag(1, c.Varint).uint64(e.subscriptionId), e.eventId !== 0n && t.tag(2, c.Varint).uint64(e.eventId), e.resourceId !== 0n && t.tag(3, c.Varint).uint64(e.resourceId), e.resourceType && g.internalBinaryWrite(e.resourceType, t.tag(4, c.LengthDelimited).fork(), i).join(), e.events && ke.internalBinaryWrite(e.events, t.tag(5, c.LengthDelimited).fork(), i).join();
|
|
1401
1401
|
for (let r of globalThis.Object.keys(e.fieldChanges))
|
|
1402
1402
|
t.tag(6, c.LengthDelimited).fork().tag(1, c.LengthDelimited).string(r), t.tag(2, c.LengthDelimited).fork(), Z.internalBinaryWrite(e.fieldChanges[r], t, i), t.join().join();
|
|
1403
1403
|
e.payload && q.internalBinaryWrite(e.payload, t.tag(7, c.LengthDelimited).fork(), i).join(), e.filterName !== "" && t.tag(8, c.LengthDelimited).string(e.filterName), e.txSpan && be.internalBinaryWrite(e.txSpan, t.tag(9, c.LengthDelimited).fork(), i).join();
|
|
@@ -1836,7 +1836,7 @@ const Te = new wr();
|
|
|
1836
1836
|
class Tr extends h {
|
|
1837
1837
|
constructor() {
|
|
1838
1838
|
super("MiLaboratories.PL.API.ResourceSchema", [
|
|
1839
|
-
{ no: 1, name: "type", kind: "message", T: () =>
|
|
1839
|
+
{ no: 1, name: "type", kind: "message", T: () => g },
|
|
1840
1840
|
{ no: 2, name: "fields", kind: "message", repeat: 1, T: () => Re }
|
|
1841
1841
|
]);
|
|
1842
1842
|
}
|
|
@@ -1851,7 +1851,7 @@ class Tr extends h {
|
|
|
1851
1851
|
switch (a) {
|
|
1852
1852
|
case /* MiLaboratories.PL.Base.ResourceType type */
|
|
1853
1853
|
1:
|
|
1854
|
-
r.type =
|
|
1854
|
+
r.type = g.internalBinaryRead(e, e.uint32(), i, r.type);
|
|
1855
1855
|
break;
|
|
1856
1856
|
case /* repeated MiLaboratories.PL.API.FieldSchema fields */
|
|
1857
1857
|
2:
|
|
@@ -1868,7 +1868,7 @@ class Tr extends h {
|
|
|
1868
1868
|
return r;
|
|
1869
1869
|
}
|
|
1870
1870
|
internalBinaryWrite(e, t, i) {
|
|
1871
|
-
e.type &&
|
|
1871
|
+
e.type && g.internalBinaryWrite(e.type, t.tag(1, c.LengthDelimited).fork(), i).join();
|
|
1872
1872
|
for (let r = 0; r < e.fields.length; r++)
|
|
1873
1873
|
Re.internalBinaryWrite(e.fields[r], t.tag(2, c.LengthDelimited).fork(), i).join();
|
|
1874
1874
|
let n = i.writeUnknownFields;
|
|
@@ -1940,7 +1940,7 @@ class Ir extends h {
|
|
|
1940
1940
|
T: 9
|
|
1941
1941
|
/*ScalarType.STRING*/
|
|
1942
1942
|
},
|
|
1943
|
-
{ no: 3, name: "resource_type", kind: "message", T: () =>
|
|
1943
|
+
{ no: 3, name: "resource_type", kind: "message", T: () => g },
|
|
1944
1944
|
{
|
|
1945
1945
|
no: 4,
|
|
1946
1946
|
name: "endpoint",
|
|
@@ -1969,7 +1969,7 @@ class Ir extends h {
|
|
|
1969
1969
|
break;
|
|
1970
1970
|
case /* MiLaboratories.PL.Base.ResourceType resource_type */
|
|
1971
1971
|
3:
|
|
1972
|
-
r.resourceType =
|
|
1972
|
+
r.resourceType = g.internalBinaryRead(e, e.uint32(), i, r.resourceType);
|
|
1973
1973
|
break;
|
|
1974
1974
|
case /* string endpoint */
|
|
1975
1975
|
4:
|
|
@@ -1986,7 +1986,7 @@ class Ir extends h {
|
|
|
1986
1986
|
return r;
|
|
1987
1987
|
}
|
|
1988
1988
|
internalBinaryWrite(e, t, i) {
|
|
1989
|
-
e.controllerType !== "" && t.tag(1, c.LengthDelimited).string(e.controllerType), e.featureName !== "" && t.tag(2, c.LengthDelimited).string(e.featureName), e.resourceType &&
|
|
1989
|
+
e.controllerType !== "" && t.tag(1, c.LengthDelimited).string(e.controllerType), e.featureName !== "" && t.tag(2, c.LengthDelimited).string(e.featureName), e.resourceType && g.internalBinaryWrite(e.resourceType, t.tag(3, c.LengthDelimited).fork(), i).join(), e.endpoint !== "" && t.tag(4, c.LengthDelimited).string(e.endpoint);
|
|
1990
1990
|
let n = i.writeUnknownFields;
|
|
1991
1991
|
return n !== !1 && (n == !0 ? u.onWrite : n)(this.typeName, e, t), t;
|
|
1992
1992
|
}
|
|
@@ -2184,7 +2184,7 @@ class _r extends h {
|
|
|
2184
2184
|
}
|
|
2185
2185
|
const _e = new _r();
|
|
2186
2186
|
var de = /* @__PURE__ */ ((o) => (o[o.INVALID = 0] = "INVALID", o[o.WRITABLE = 1] = "WRITABLE", o[o.NOT_WRITABLE = 2] = "NOT_WRITABLE", o))(de || {});
|
|
2187
|
-
class
|
|
2187
|
+
class Ar extends h {
|
|
2188
2188
|
constructor() {
|
|
2189
2189
|
super("MiLaboratories.PL.API.TxAPI", []);
|
|
2190
2190
|
}
|
|
@@ -2200,8 +2200,8 @@ class Lr extends h {
|
|
|
2200
2200
|
return n !== !1 && (n == !0 ? u.onWrite : n)(this.typeName, e, t), t;
|
|
2201
2201
|
}
|
|
2202
2202
|
}
|
|
2203
|
-
new
|
|
2204
|
-
class
|
|
2203
|
+
new Ar();
|
|
2204
|
+
class Lr extends h {
|
|
2205
2205
|
constructor() {
|
|
2206
2206
|
super("MiLaboratories.PL.API.TxAPI.ClientMessage", [
|
|
2207
2207
|
{
|
|
@@ -2211,7 +2211,7 @@ class Ar extends h {
|
|
|
2211
2211
|
T: 13
|
|
2212
2212
|
/*ScalarType.UINT32*/
|
|
2213
2213
|
},
|
|
2214
|
-
{ no: 11, name: "tx_open", kind: "message", oneof: "request", T: () =>
|
|
2214
|
+
{ no: 11, name: "tx_open", kind: "message", oneof: "request", T: () => Le },
|
|
2215
2215
|
{ no: 12, name: "tx_commit", kind: "message", oneof: "request", T: () => Ne },
|
|
2216
2216
|
{ no: 13, name: "tx_discard", kind: "message", oneof: "request", T: () => xe },
|
|
2217
2217
|
{ no: 58, name: "resource_create_root", kind: "message", oneof: "request", T: () => st },
|
|
@@ -2238,7 +2238,7 @@ class Ar extends h {
|
|
|
2238
2238
|
{ no: 102, name: "field_set", kind: "message", oneof: "request", T: () => Tt },
|
|
2239
2239
|
{ no: 105, name: "field_set_error", kind: "message", oneof: "request", T: () => It },
|
|
2240
2240
|
{ no: 103, name: "field_get", kind: "message", oneof: "request", T: () => _t },
|
|
2241
|
-
{ no: 104, name: "field_reset", kind: "message", oneof: "request", T: () =>
|
|
2241
|
+
{ no: 104, name: "field_reset", kind: "message", oneof: "request", T: () => Lt },
|
|
2242
2242
|
{ no: 106, name: "field_remove", kind: "message", oneof: "request", T: () => Nt },
|
|
2243
2243
|
{ no: 111, name: "subscription_create", kind: "message", oneof: "request", T: () => Et },
|
|
2244
2244
|
{ no: 112, name: "subscription_attach_filter", kind: "message", oneof: "request", T: () => te },
|
|
@@ -2281,7 +2281,7 @@ class Ar extends h {
|
|
|
2281
2281
|
11:
|
|
2282
2282
|
r.request = {
|
|
2283
2283
|
oneofKind: "txOpen",
|
|
2284
|
-
txOpen:
|
|
2284
|
+
txOpen: Le.internalBinaryRead(e, e.uint32(), i, r.request.txOpen)
|
|
2285
2285
|
};
|
|
2286
2286
|
break;
|
|
2287
2287
|
case /* MiLaboratories.PL.API.TxAPI.Commit.Request tx_commit */
|
|
@@ -2470,7 +2470,7 @@ class Ar extends h {
|
|
|
2470
2470
|
104:
|
|
2471
2471
|
r.request = {
|
|
2472
2472
|
oneofKind: "fieldReset",
|
|
2473
|
-
fieldReset:
|
|
2473
|
+
fieldReset: Lt.internalBinaryRead(e, e.uint32(), i, r.request.fieldReset)
|
|
2474
2474
|
};
|
|
2475
2475
|
break;
|
|
2476
2476
|
case /* MiLaboratories.PL.API.FieldAPI.Remove.Request field_remove */
|
|
@@ -2645,12 +2645,12 @@ class Ar extends h {
|
|
|
2645
2645
|
return r;
|
|
2646
2646
|
}
|
|
2647
2647
|
internalBinaryWrite(e, t, i) {
|
|
2648
|
-
e.requestId !== 0 && t.tag(1, c.Varint).uint32(e.requestId), e.request.oneofKind === "txOpen" &&
|
|
2648
|
+
e.requestId !== 0 && t.tag(1, c.Varint).uint32(e.requestId), e.request.oneofKind === "txOpen" && Le.internalBinaryWrite(e.request.txOpen, t.tag(11, c.LengthDelimited).fork(), i).join(), e.request.oneofKind === "txCommit" && Ne.internalBinaryWrite(e.request.txCommit, t.tag(12, c.LengthDelimited).fork(), i).join(), e.request.oneofKind === "txDiscard" && xe.internalBinaryWrite(e.request.txDiscard, t.tag(13, c.LengthDelimited).fork(), i).join(), e.request.oneofKind === "resourceCreateRoot" && st.internalBinaryWrite(e.request.resourceCreateRoot, t.tag(58, c.LengthDelimited).fork(), i).join(), e.request.oneofKind === "resourceRemove" && at.internalBinaryWrite(e.request.resourceRemove, t.tag(57, c.LengthDelimited).fork(), i).join(), e.request.oneofKind === "resourceCreateStruct" && Ue.internalBinaryWrite(e.request.resourceCreateStruct, t.tag(51, c.LengthDelimited).fork(), i).join(), e.request.oneofKind === "resourceCreateEphemeral" && Ee.internalBinaryWrite(e.request.resourceCreateEphemeral, t.tag(62, c.LengthDelimited).fork(), i).join(), e.request.oneofKind === "resourceCreateValue" && Oe.internalBinaryWrite(e.request.resourceCreateValue, t.tag(52, c.LengthDelimited).fork(), i).join(), e.request.oneofKind === "resourceGetValueId" && qe.internalBinaryWrite(e.request.resourceGetValueId, t.tag(63, c.LengthDelimited).fork(), i).join(), e.request.oneofKind === "resourceCreateSingleton" && ve.internalBinaryWrite(e.request.resourceCreateSingleton, t.tag(64, c.LengthDelimited).fork(), i).join(), e.request.oneofKind === "resourceGetSingleton" && Me.internalBinaryWrite(e.request.resourceGetSingleton, t.tag(65, c.LengthDelimited).fork(), i).join(), e.request.oneofKind === "resourceCreateChild" && Ce.internalBinaryWrite(e.request.resourceCreateChild, t.tag(59, c.LengthDelimited).fork(), i).join(), e.request.oneofKind === "resourceLockInputs" && Je.internalBinaryWrite(e.request.resourceLockInputs, t.tag(53, c.LengthDelimited).fork(), i).join(), e.request.oneofKind === "resourceLockOutputs" && He.internalBinaryWrite(e.request.resourceLockOutputs, t.tag(56, c.LengthDelimited).fork(), i).join(), e.request.oneofKind === "resourceExists" && Ze.internalBinaryWrite(e.request.resourceExists, t.tag(54, c.LengthDelimited).fork(), i).join(), e.request.oneofKind === "resourceGet" && tt.internalBinaryWrite(e.request.resourceGet, t.tag(55, c.LengthDelimited).fork(), i).join(), e.request.oneofKind === "resourceSetError" && Qe.internalBinaryWrite(e.request.resourceSetError, t.tag(61, c.LengthDelimited).fork(), i).join(), e.request.oneofKind === "resourceListByType" && it.internalBinaryWrite(e.request.resourceListByType, t.tag(60, c.LengthDelimited).fork(), i).join(), e.request.oneofKind === "resourceNameSet" && ct.internalBinaryWrite(e.request.resourceNameSet, t.tag(66, c.LengthDelimited).fork(), i).join(), e.request.oneofKind === "resourceNameGet" && dt.internalBinaryWrite(e.request.resourceNameGet, t.tag(67, c.LengthDelimited).fork(), i).join(), e.request.oneofKind === "resourceNameExists" && ht.internalBinaryWrite(e.request.resourceNameExists, t.tag(68, c.LengthDelimited).fork(), i).join(), e.request.oneofKind === "resourceNameDelete" && yt.internalBinaryWrite(e.request.resourceNameDelete, t.tag(69, c.LengthDelimited).fork(), i).join(), e.request.oneofKind === "fieldCreate" && mt.internalBinaryWrite(e.request.fieldCreate, t.tag(101, c.LengthDelimited).fork(), i).join(), e.request.oneofKind === "fieldExists" && bt.internalBinaryWrite(e.request.fieldExists, t.tag(107, c.LengthDelimited).fork(), i).join(), e.request.oneofKind === "fieldSet" && Tt.internalBinaryWrite(e.request.fieldSet, t.tag(102, c.LengthDelimited).fork(), i).join(), e.request.oneofKind === "fieldSetError" && It.internalBinaryWrite(e.request.fieldSetError, t.tag(105, c.LengthDelimited).fork(), i).join(), e.request.oneofKind === "fieldGet" && _t.internalBinaryWrite(e.request.fieldGet, t.tag(103, c.LengthDelimited).fork(), i).join(), e.request.oneofKind === "fieldReset" && Lt.internalBinaryWrite(e.request.fieldReset, t.tag(104, c.LengthDelimited).fork(), i).join(), e.request.oneofKind === "fieldRemove" && Nt.internalBinaryWrite(e.request.fieldRemove, t.tag(106, c.LengthDelimited).fork(), i).join(), e.request.oneofKind === "subscriptionCreate" && Et.internalBinaryWrite(e.request.subscriptionCreate, t.tag(111, c.LengthDelimited).fork(), i).join(), e.request.oneofKind === "subscriptionAttachFilter" && te.internalBinaryWrite(e.request.subscriptionAttachFilter, t.tag(112, c.LengthDelimited).fork(), i).join(), e.request.oneofKind === "subscriptionDetachFilter" && ie.internalBinaryWrite(e.request.subscriptionDetachFilter, t.tag(113, c.LengthDelimited).fork(), i).join(), e.request.oneofKind === "subscriptionCreateFilter" && Ct.internalBinaryWrite(e.request.subscriptionCreateFilter, t.tag(115, c.LengthDelimited).fork(), i).join(), e.request.oneofKind === "notificationGet" && Q.internalBinaryWrite(e.request.notificationGet, t.tag(154, c.LengthDelimited).fork(), i).join(), e.request.oneofKind === "notificationAck" && xt.internalBinaryWrite(e.request.notificationAck, t.tag(155, c.LengthDelimited).fork(), i).join(), e.request.oneofKind === "notificationDiscard" && Ut.internalBinaryWrite(e.request.notificationDiscard, t.tag(156, c.LengthDelimited).fork(), i).join(), e.request.oneofKind === "resourceKeyValueSet" && vt.internalBinaryWrite(e.request.resourceKeyValueSet, t.tag(200, c.LengthDelimited).fork(), i).join(), e.request.oneofKind === "resourceKeyValueGet" && Mt.internalBinaryWrite(e.request.resourceKeyValueGet, t.tag(201, c.LengthDelimited).fork(), i).join(), e.request.oneofKind === "resourceKeyValueGetIfExists" && Jt.internalBinaryWrite(e.request.resourceKeyValueGetIfExists, t.tag(202, c.LengthDelimited).fork(), i).join(), e.request.oneofKind === "resourceKeyValueSetFlag" && Zt.internalBinaryWrite(e.request.resourceKeyValueSetFlag, t.tag(203, c.LengthDelimited).fork(), i).join(), e.request.oneofKind === "resourceKeyValueGetFlag" && D.internalBinaryWrite(e.request.resourceKeyValueGetFlag, t.tag(204, c.LengthDelimited).fork(), i).join(), e.request.oneofKind === "resourceKeyValueGetFlagIfExists" && D.internalBinaryWrite(e.request.resourceKeyValueGetFlagIfExists, t.tag(205, c.LengthDelimited).fork(), i).join(), e.request.oneofKind === "resourceKeyValueDelete" && Ht.internalBinaryWrite(e.request.resourceKeyValueDelete, t.tag(206, c.LengthDelimited).fork(), i).join(), e.request.oneofKind === "resourceKeyValueList" && Kt.internalBinaryWrite(e.request.resourceKeyValueList, t.tag(207, c.LengthDelimited).fork(), i).join(), e.request.oneofKind === "controllerKeyValueSet" && Qt.internalBinaryWrite(e.request.controllerKeyValueSet, t.tag(250, c.LengthDelimited).fork(), i).join(), e.request.oneofKind === "controllerKeyValueGet" && tn.internalBinaryWrite(e.request.controllerKeyValueGet, t.tag(251, c.LengthDelimited).fork(), i).join(), e.request.oneofKind === "controllerKeyValueGetIfExists" && rn.internalBinaryWrite(e.request.controllerKeyValueGetIfExists, t.tag(252, c.LengthDelimited).fork(), i).join(), e.request.oneofKind === "cacheSetToField" && on.internalBinaryWrite(e.request.cacheSetToField, t.tag(300, c.LengthDelimited).fork(), i).join(), e.request.oneofKind === "cacheDeleteExpiredRecords" && ln.internalBinaryWrite(e.request.cacheDeleteExpiredRecords, t.tag(301, c.LengthDelimited).fork(), i).join(), e.request.oneofKind === "controllerFeaturesSet" && se.internalBinaryWrite(e.request.controllerFeaturesSet, t.tag(350, c.LengthDelimited).fork(), i).join(), e.request.oneofKind === "controllerFeaturesClear" && ae.internalBinaryWrite(e.request.controllerFeaturesClear, t.tag(351, c.LengthDelimited).fork(), i).join();
|
|
2649
2649
|
let n = i.writeUnknownFields;
|
|
2650
2650
|
return n !== !1 && (n == !0 ? u.onWrite : n)(this.typeName, e, t), t;
|
|
2651
2651
|
}
|
|
2652
2652
|
}
|
|
2653
|
-
const Br = new
|
|
2653
|
+
const Br = new Lr();
|
|
2654
2654
|
class Nr extends h {
|
|
2655
2655
|
constructor() {
|
|
2656
2656
|
super("MiLaboratories.PL.API.TxAPI.ServerMessage", [
|
|
@@ -2661,7 +2661,7 @@ class Nr extends h {
|
|
|
2661
2661
|
T: 13
|
|
2662
2662
|
/*ScalarType.UINT32*/
|
|
2663
2663
|
},
|
|
2664
|
-
{ no: 2, name: "multi_message", kind: "message", T: () =>
|
|
2664
|
+
{ no: 2, name: "multi_message", kind: "message", T: () => Ae },
|
|
2665
2665
|
{ no: 11, name: "tx_open", kind: "message", oneof: "response", T: () => Be },
|
|
2666
2666
|
{ no: 12, name: "tx_commit", kind: "message", oneof: "response", T: () => Fe },
|
|
2667
2667
|
{ no: 13, name: "tx_discard", kind: "message", oneof: "response", T: () => We },
|
|
@@ -2688,7 +2688,7 @@ class Nr extends h {
|
|
|
2688
2688
|
{ no: 107, name: "field_exists", kind: "message", oneof: "response", T: () => wt },
|
|
2689
2689
|
{ no: 102, name: "field_set", kind: "message", oneof: "response", T: () => Rt },
|
|
2690
2690
|
{ no: 105, name: "field_set_error", kind: "message", oneof: "response", T: () => Pt },
|
|
2691
|
-
{ no: 103, name: "field_get", kind: "message", oneof: "response", T: () =>
|
|
2691
|
+
{ no: 103, name: "field_get", kind: "message", oneof: "response", T: () => At },
|
|
2692
2692
|
{ no: 104, name: "field_reset", kind: "message", oneof: "response", T: () => Bt },
|
|
2693
2693
|
{ no: 106, name: "field_remove", kind: "message", oneof: "response", T: () => Ft },
|
|
2694
2694
|
{ no: 111, name: "subscription_create", kind: "message", oneof: "response", T: () => St },
|
|
@@ -2731,7 +2731,7 @@ class Nr extends h {
|
|
|
2731
2731
|
break;
|
|
2732
2732
|
case /* MiLaboratories.PL.API.TxAPI.ServerMessage.Multi multi_message */
|
|
2733
2733
|
2:
|
|
2734
|
-
r.multiMessage =
|
|
2734
|
+
r.multiMessage = Ae.internalBinaryRead(e, e.uint32(), i, r.multiMessage);
|
|
2735
2735
|
break;
|
|
2736
2736
|
case /* MiLaboratories.PL.API.TxAPI.Open.Response tx_open */
|
|
2737
2737
|
11:
|
|
@@ -2919,7 +2919,7 @@ class Nr extends h {
|
|
|
2919
2919
|
103:
|
|
2920
2920
|
r.response = {
|
|
2921
2921
|
oneofKind: "fieldGet",
|
|
2922
|
-
fieldGet:
|
|
2922
|
+
fieldGet: At.internalBinaryRead(e, e.uint32(), i, r.response.fieldGet)
|
|
2923
2923
|
};
|
|
2924
2924
|
break;
|
|
2925
2925
|
case /* MiLaboratories.PL.API.FieldAPI.Reset.Response field_reset */
|
|
@@ -3105,7 +3105,7 @@ class Nr extends h {
|
|
|
3105
3105
|
return r;
|
|
3106
3106
|
}
|
|
3107
3107
|
internalBinaryWrite(e, t, i) {
|
|
3108
|
-
e.requestId !== 0 && t.tag(1, c.Varint).uint32(e.requestId), e.multiMessage &&
|
|
3108
|
+
e.requestId !== 0 && t.tag(1, c.Varint).uint32(e.requestId), e.multiMessage && Ae.internalBinaryWrite(e.multiMessage, t.tag(2, c.LengthDelimited).fork(), i).join(), e.response.oneofKind === "txOpen" && Be.internalBinaryWrite(e.response.txOpen, t.tag(11, c.LengthDelimited).fork(), i).join(), e.response.oneofKind === "txCommit" && Fe.internalBinaryWrite(e.response.txCommit, t.tag(12, c.LengthDelimited).fork(), i).join(), e.response.oneofKind === "txDiscard" && We.internalBinaryWrite(e.response.txDiscard, t.tag(13, c.LengthDelimited).fork(), i).join(), e.response.oneofKind === "resourceCreateRoot" && ot.internalBinaryWrite(e.response.resourceCreateRoot, t.tag(58, c.LengthDelimited).fork(), i).join(), e.response.oneofKind === "resourceRemove" && lt.internalBinaryWrite(e.response.resourceRemove, t.tag(57, c.LengthDelimited).fork(), i).join(), e.response.oneofKind === "resourceCreateStruct" && $e.internalBinaryWrite(e.response.resourceCreateStruct, t.tag(51, c.LengthDelimited).fork(), i).join(), e.response.oneofKind === "resourceCreateEphemeral" && Se.internalBinaryWrite(e.response.resourceCreateEphemeral, t.tag(62, c.LengthDelimited).fork(), i).join(), e.response.oneofKind === "resourceCreateValue" && Ke.internalBinaryWrite(e.response.resourceCreateValue, t.tag(52, c.LengthDelimited).fork(), i).join(), e.response.oneofKind === "resourceGetValueId" && Ve.internalBinaryWrite(e.response.resourceGetValueId, t.tag(63, c.LengthDelimited).fork(), i).join(), e.response.oneofKind === "resourceCreateSingleton" && je.internalBinaryWrite(e.response.resourceCreateSingleton, t.tag(64, c.LengthDelimited).fork(), i).join(), e.response.oneofKind === "resourceGetSingleton" && Ge.internalBinaryWrite(e.response.resourceGetSingleton, t.tag(65, c.LengthDelimited).fork(), i).join(), e.response.oneofKind === "resourceCreateChild" && De.internalBinaryWrite(e.response.resourceCreateChild, t.tag(59, c.LengthDelimited).fork(), i).join(), e.response.oneofKind === "resourceLockInputs" && ze.internalBinaryWrite(e.response.resourceLockInputs, t.tag(53, c.LengthDelimited).fork(), i).join(), e.response.oneofKind === "resourceLockOutputs" && Ye.internalBinaryWrite(e.response.resourceLockOutputs, t.tag(56, c.LengthDelimited).fork(), i).join(), e.response.oneofKind === "resourceExists" && Xe.internalBinaryWrite(e.response.resourceExists, t.tag(54, c.LengthDelimited).fork(), i).join(), e.response.oneofKind === "resourceGet" && nt.internalBinaryWrite(e.response.resourceGet, t.tag(55, c.LengthDelimited).fork(), i).join(), e.response.oneofKind === "resourceSetError" && et.internalBinaryWrite(e.response.resourceSetError, t.tag(61, c.LengthDelimited).fork(), i).join(), e.response.oneofKind === "resourceListByType" && rt.internalBinaryWrite(e.response.resourceListByType, t.tag(60, c.LengthDelimited).fork(), i).join(), e.response.oneofKind === "resourceNameSet" && ut.internalBinaryWrite(e.response.resourceNameSet, t.tag(66, c.LengthDelimited).fork(), i).join(), e.response.oneofKind === "resourceNameGet" && ft.internalBinaryWrite(e.response.resourceNameGet, t.tag(67, c.LengthDelimited).fork(), i).join(), e.response.oneofKind === "resourceNameExists" && pt.internalBinaryWrite(e.response.resourceNameExists, t.tag(68, c.LengthDelimited).fork(), i).join(), e.response.oneofKind === "resourceNameDelete" && gt.internalBinaryWrite(e.response.resourceNameDelete, t.tag(69, c.LengthDelimited).fork(), i).join(), e.response.oneofKind === "fieldCreate" && kt.internalBinaryWrite(e.response.fieldCreate, t.tag(101, c.LengthDelimited).fork(), i).join(), e.response.oneofKind === "fieldExists" && wt.internalBinaryWrite(e.response.fieldExists, t.tag(107, c.LengthDelimited).fork(), i).join(), e.response.oneofKind === "fieldSet" && Rt.internalBinaryWrite(e.response.fieldSet, t.tag(102, c.LengthDelimited).fork(), i).join(), e.response.oneofKind === "fieldSetError" && Pt.internalBinaryWrite(e.response.fieldSetError, t.tag(105, c.LengthDelimited).fork(), i).join(), e.response.oneofKind === "fieldGet" && At.internalBinaryWrite(e.response.fieldGet, t.tag(103, c.LengthDelimited).fork(), i).join(), e.response.oneofKind === "fieldReset" && Bt.internalBinaryWrite(e.response.fieldReset, t.tag(104, c.LengthDelimited).fork(), i).join(), e.response.oneofKind === "fieldRemove" && Ft.internalBinaryWrite(e.response.fieldRemove, t.tag(106, c.LengthDelimited).fork(), i).join(), e.response.oneofKind === "subscriptionCreate" && St.internalBinaryWrite(e.response.subscriptionCreate, t.tag(111, c.LengthDelimited).fork(), i).join(), e.response.oneofKind === "subscriptionCreateFilter" && Dt.internalBinaryWrite(e.response.subscriptionCreateFilter, t.tag(115, c.LengthDelimited).fork(), i).join(), e.response.oneofKind === "subscriptionAttachFilter" && ne.internalBinaryWrite(e.response.subscriptionAttachFilter, t.tag(112, c.LengthDelimited).fork(), i).join(), e.response.oneofKind === "subscriptionDetachFilter" && re.internalBinaryWrite(e.response.subscriptionDetachFilter, t.tag(113, c.LengthDelimited).fork(), i).join(), e.response.oneofKind === "notificationGet" && ee.internalBinaryWrite(e.response.notificationGet, t.tag(154, c.LengthDelimited).fork(), i).join(), e.response.oneofKind === "notificationAck" && Wt.internalBinaryWrite(e.response.notificationAck, t.tag(155, c.LengthDelimited).fork(), i).join(), e.response.oneofKind === "notificationDiscard" && $t.internalBinaryWrite(e.response.notificationDiscard, t.tag(156, c.LengthDelimited).fork(), i).join(), e.response.oneofKind === "resourceKeyValueSet" && jt.internalBinaryWrite(e.response.resourceKeyValueSet, t.tag(200, c.LengthDelimited).fork(), i).join(), e.response.oneofKind === "resourceKeyValueGet" && Gt.internalBinaryWrite(e.response.resourceKeyValueGet, t.tag(201, c.LengthDelimited).fork(), i).join(), e.response.oneofKind === "resourceKeyValueGetIfExists" && zt.internalBinaryWrite(e.response.resourceKeyValueGetIfExists, t.tag(202, c.LengthDelimited).fork(), i).join(), e.response.oneofKind === "resourceKeyValueSetFlag" && Xt.internalBinaryWrite(e.response.resourceKeyValueSetFlag, t.tag(203, c.LengthDelimited).fork(), i).join(), e.response.oneofKind === "resourceKeyValueGetFlag" && O.internalBinaryWrite(e.response.resourceKeyValueGetFlag, t.tag(204, c.LengthDelimited).fork(), i).join(), e.response.oneofKind === "resourceKeyValueGetFlagIfExists" && O.internalBinaryWrite(e.response.resourceKeyValueGetFlagIfExists, t.tag(205, c.LengthDelimited).fork(), i).join(), e.response.oneofKind === "resourceKeyValueDelete" && Yt.internalBinaryWrite(e.response.resourceKeyValueDelete, t.tag(206, c.LengthDelimited).fork(), i).join(), e.response.oneofKind === "resourceKeyValueList" && qt.internalBinaryWrite(e.response.resourceKeyValueList, t.tag(207, c.LengthDelimited).fork(), i).join(), e.response.oneofKind === "controllerKeyValueSet" && en.internalBinaryWrite(e.response.controllerKeyValueSet, t.tag(250, c.LengthDelimited).fork(), i).join(), e.response.oneofKind === "controllerKeyValueGet" && nn.internalBinaryWrite(e.response.controllerKeyValueGet, t.tag(251, c.LengthDelimited).fork(), i).join(), e.response.oneofKind === "controllerKeyValueGetIfExists" && sn.internalBinaryWrite(e.response.controllerKeyValueGetIfExists, t.tag(252, c.LengthDelimited).fork(), i).join(), e.response.oneofKind === "cacheSetToField" && an.internalBinaryWrite(e.response.cacheSetToField, t.tag(300, c.LengthDelimited).fork(), i).join(), e.response.oneofKind === "cacheDeleteExpiredRecords" && cn.internalBinaryWrite(e.response.cacheDeleteExpiredRecords, t.tag(301, c.LengthDelimited).fork(), i).join(), e.response.oneofKind === "controllerFeaturesSet" && oe.internalBinaryWrite(e.response.controllerFeaturesSet, t.tag(350, c.LengthDelimited).fork(), i).join(), e.response.oneofKind === "controllerFeaturesClear" && le.internalBinaryWrite(e.response.controllerFeaturesClear, t.tag(351, c.LengthDelimited).fork(), i).join(), e.error && _e.internalBinaryWrite(e.error, t.tag(3, c.LengthDelimited).fork(), i).join();
|
|
3109
3109
|
let n = i.writeUnknownFields;
|
|
3110
3110
|
return n !== !1 && (n == !0 ? u.onWrite : n)(this.typeName, e, t), t;
|
|
3111
3111
|
}
|
|
@@ -3174,7 +3174,7 @@ class xr extends h {
|
|
|
3174
3174
|
return n !== !1 && (n == !0 ? u.onWrite : n)(this.typeName, e, t), t;
|
|
3175
3175
|
}
|
|
3176
3176
|
}
|
|
3177
|
-
const
|
|
3177
|
+
const Ae = new xr();
|
|
3178
3178
|
class Wr extends h {
|
|
3179
3179
|
constructor() {
|
|
3180
3180
|
super("MiLaboratories.PL.API.TxAPI.Open", []);
|
|
@@ -3238,7 +3238,7 @@ class Ur extends h {
|
|
|
3238
3238
|
return n !== !1 && (n == !0 ? u.onWrite : n)(this.typeName, e, t), t;
|
|
3239
3239
|
}
|
|
3240
3240
|
}
|
|
3241
|
-
const
|
|
3241
|
+
const Le = new Ur();
|
|
3242
3242
|
class $r extends h {
|
|
3243
3243
|
constructor() {
|
|
3244
3244
|
super("MiLaboratories.PL.API.TxAPI.Open.Response", [
|
|
@@ -3524,7 +3524,7 @@ class zr extends h {
|
|
|
3524
3524
|
L: 0
|
|
3525
3525
|
/*LongType.BIGINT*/
|
|
3526
3526
|
},
|
|
3527
|
-
{ no: 3, name: "type", kind: "message", T: () =>
|
|
3527
|
+
{ no: 3, name: "type", kind: "message", T: () => g },
|
|
3528
3528
|
{
|
|
3529
3529
|
no: 4,
|
|
3530
3530
|
name: "data",
|
|
@@ -3550,7 +3550,7 @@ class zr extends h {
|
|
|
3550
3550
|
break;
|
|
3551
3551
|
case /* MiLaboratories.PL.Base.ResourceType type */
|
|
3552
3552
|
3:
|
|
3553
|
-
r.type =
|
|
3553
|
+
r.type = g.internalBinaryRead(e, e.uint32(), i, r.type);
|
|
3554
3554
|
break;
|
|
3555
3555
|
case /* optional bytes data */
|
|
3556
3556
|
4:
|
|
@@ -3567,7 +3567,7 @@ class zr extends h {
|
|
|
3567
3567
|
return r;
|
|
3568
3568
|
}
|
|
3569
3569
|
internalBinaryWrite(e, t, i) {
|
|
3570
|
-
e.id !== 0n && t.tag(2, c.Varint).uint64(e.id), e.type &&
|
|
3570
|
+
e.id !== 0n && t.tag(2, c.Varint).uint64(e.id), e.type && g.internalBinaryWrite(e.type, t.tag(3, c.LengthDelimited).fork(), i).join(), e.data !== void 0 && t.tag(4, c.LengthDelimited).bytes(e.data);
|
|
3571
3571
|
let n = i.writeUnknownFields;
|
|
3572
3572
|
return n !== !1 && (n == !0 ? u.onWrite : n)(this.typeName, e, t), t;
|
|
3573
3573
|
}
|
|
@@ -3644,7 +3644,7 @@ class Zr extends h {
|
|
|
3644
3644
|
L: 0
|
|
3645
3645
|
/*LongType.BIGINT*/
|
|
3646
3646
|
},
|
|
3647
|
-
{ no: 3, name: "type", kind: "message", T: () =>
|
|
3647
|
+
{ no: 3, name: "type", kind: "message", T: () => g },
|
|
3648
3648
|
{
|
|
3649
3649
|
no: 4,
|
|
3650
3650
|
name: "data",
|
|
@@ -3670,7 +3670,7 @@ class Zr extends h {
|
|
|
3670
3670
|
break;
|
|
3671
3671
|
case /* MiLaboratories.PL.Base.ResourceType type */
|
|
3672
3672
|
3:
|
|
3673
|
-
r.type =
|
|
3673
|
+
r.type = g.internalBinaryRead(e, e.uint32(), i, r.type);
|
|
3674
3674
|
break;
|
|
3675
3675
|
case /* optional bytes data */
|
|
3676
3676
|
4:
|
|
@@ -3687,7 +3687,7 @@ class Zr extends h {
|
|
|
3687
3687
|
return r;
|
|
3688
3688
|
}
|
|
3689
3689
|
internalBinaryWrite(e, t, i) {
|
|
3690
|
-
e.id !== 0n && t.tag(2, c.Varint).uint64(e.id), e.type &&
|
|
3690
|
+
e.id !== 0n && t.tag(2, c.Varint).uint64(e.id), e.type && g.internalBinaryWrite(e.type, t.tag(3, c.LengthDelimited).fork(), i).join(), e.data !== void 0 && t.tag(4, c.LengthDelimited).bytes(e.data);
|
|
3691
3691
|
let n = i.writeUnknownFields;
|
|
3692
3692
|
return n !== !1 && (n == !0 ? u.onWrite : n)(this.typeName, e, t), t;
|
|
3693
3693
|
}
|
|
@@ -3764,7 +3764,7 @@ class es extends h {
|
|
|
3764
3764
|
L: 0
|
|
3765
3765
|
/*LongType.BIGINT*/
|
|
3766
3766
|
},
|
|
3767
|
-
{ no: 2, name: "type", kind: "message", T: () =>
|
|
3767
|
+
{ no: 2, name: "type", kind: "message", T: () => g },
|
|
3768
3768
|
{ no: 3, name: "parent_field", kind: "message", T: () => m }
|
|
3769
3769
|
]);
|
|
3770
3770
|
}
|
|
@@ -3783,7 +3783,7 @@ class es extends h {
|
|
|
3783
3783
|
break;
|
|
3784
3784
|
case /* MiLaboratories.PL.Base.ResourceType type */
|
|
3785
3785
|
2:
|
|
3786
|
-
r.type =
|
|
3786
|
+
r.type = g.internalBinaryRead(e, e.uint32(), i, r.type);
|
|
3787
3787
|
break;
|
|
3788
3788
|
case /* MiLaboratories.PL.Base.FieldRef parent_field */
|
|
3789
3789
|
3:
|
|
@@ -3800,7 +3800,7 @@ class es extends h {
|
|
|
3800
3800
|
return r;
|
|
3801
3801
|
}
|
|
3802
3802
|
internalBinaryWrite(e, t, i) {
|
|
3803
|
-
e.id !== 0n && t.tag(1, c.Varint).uint64(e.id), e.type &&
|
|
3803
|
+
e.id !== 0n && t.tag(1, c.Varint).uint64(e.id), e.type && g.internalBinaryWrite(e.type, t.tag(2, c.LengthDelimited).fork(), i).join(), e.parentField && m.internalBinaryWrite(e.parentField, t.tag(3, c.LengthDelimited).fork(), i).join();
|
|
3804
3804
|
let n = i.writeUnknownFields;
|
|
3805
3805
|
return n !== !1 && (n == !0 ? u.onWrite : n)(this.typeName, e, t), t;
|
|
3806
3806
|
}
|
|
@@ -3877,7 +3877,7 @@ class is extends h {
|
|
|
3877
3877
|
L: 0
|
|
3878
3878
|
/*LongType.BIGINT*/
|
|
3879
3879
|
},
|
|
3880
|
-
{ no: 3, name: "type", kind: "message", T: () =>
|
|
3880
|
+
{ no: 3, name: "type", kind: "message", T: () => g },
|
|
3881
3881
|
{
|
|
3882
3882
|
no: 6,
|
|
3883
3883
|
name: "data",
|
|
@@ -3909,7 +3909,7 @@ class is extends h {
|
|
|
3909
3909
|
break;
|
|
3910
3910
|
case /* MiLaboratories.PL.Base.ResourceType type */
|
|
3911
3911
|
3:
|
|
3912
|
-
r.type =
|
|
3912
|
+
r.type = g.internalBinaryRead(e, e.uint32(), i, r.type);
|
|
3913
3913
|
break;
|
|
3914
3914
|
case /* bytes data */
|
|
3915
3915
|
6:
|
|
@@ -3930,7 +3930,7 @@ class is extends h {
|
|
|
3930
3930
|
return r;
|
|
3931
3931
|
}
|
|
3932
3932
|
internalBinaryWrite(e, t, i) {
|
|
3933
|
-
e.id !== 0n && t.tag(2, c.Varint).uint64(e.id), e.type &&
|
|
3933
|
+
e.id !== 0n && t.tag(2, c.Varint).uint64(e.id), e.type && g.internalBinaryWrite(e.type, t.tag(3, c.LengthDelimited).fork(), i).join(), e.data.length && t.tag(6, c.LengthDelimited).bytes(e.data), e.errorIfExists !== !1 && t.tag(7, c.Varint).bool(e.errorIfExists);
|
|
3934
3934
|
let n = i.writeUnknownFields;
|
|
3935
3935
|
return n !== !1 && (n == !0 ? u.onWrite : n)(this.typeName, e, t), t;
|
|
3936
3936
|
}
|
|
@@ -3999,7 +3999,7 @@ new ss();
|
|
|
3999
3999
|
class os extends h {
|
|
4000
4000
|
constructor() {
|
|
4001
4001
|
super("MiLaboratories.PL.API.ResourceAPI.GetValueID.Request", [
|
|
4002
|
-
{ no: 1, name: "type", kind: "message", T: () =>
|
|
4002
|
+
{ no: 1, name: "type", kind: "message", T: () => g },
|
|
4003
4003
|
{
|
|
4004
4004
|
no: 2,
|
|
4005
4005
|
name: "data",
|
|
@@ -4020,7 +4020,7 @@ class os extends h {
|
|
|
4020
4020
|
switch (a) {
|
|
4021
4021
|
case /* MiLaboratories.PL.Base.ResourceType type */
|
|
4022
4022
|
1:
|
|
4023
|
-
r.type =
|
|
4023
|
+
r.type = g.internalBinaryRead(e, e.uint32(), i, r.type);
|
|
4024
4024
|
break;
|
|
4025
4025
|
case /* bytes data */
|
|
4026
4026
|
2:
|
|
@@ -4037,7 +4037,7 @@ class os extends h {
|
|
|
4037
4037
|
return r;
|
|
4038
4038
|
}
|
|
4039
4039
|
internalBinaryWrite(e, t, i) {
|
|
4040
|
-
e.type &&
|
|
4040
|
+
e.type && g.internalBinaryWrite(e.type, t.tag(1, c.LengthDelimited).fork(), i).join(), e.data.length && t.tag(2, c.LengthDelimited).bytes(e.data);
|
|
4041
4041
|
let n = i.writeUnknownFields;
|
|
4042
4042
|
return n !== !1 && (n == !0 ? u.onWrite : n)(this.typeName, e, t), t;
|
|
4043
4043
|
}
|
|
@@ -4114,7 +4114,7 @@ class cs extends h {
|
|
|
4114
4114
|
L: 0
|
|
4115
4115
|
/*LongType.BIGINT*/
|
|
4116
4116
|
},
|
|
4117
|
-
{ no: 3, name: "type", kind: "message", T: () =>
|
|
4117
|
+
{ no: 3, name: "type", kind: "message", T: () => g },
|
|
4118
4118
|
{
|
|
4119
4119
|
no: 6,
|
|
4120
4120
|
name: "data",
|
|
@@ -4146,7 +4146,7 @@ class cs extends h {
|
|
|
4146
4146
|
break;
|
|
4147
4147
|
case /* MiLaboratories.PL.Base.ResourceType type */
|
|
4148
4148
|
3:
|
|
4149
|
-
r.type =
|
|
4149
|
+
r.type = g.internalBinaryRead(e, e.uint32(), i, r.type);
|
|
4150
4150
|
break;
|
|
4151
4151
|
case /* bytes data */
|
|
4152
4152
|
6:
|
|
@@ -4167,7 +4167,7 @@ class cs extends h {
|
|
|
4167
4167
|
return r;
|
|
4168
4168
|
}
|
|
4169
4169
|
internalBinaryWrite(e, t, i) {
|
|
4170
|
-
e.id !== 0n && t.tag(2, c.Varint).uint64(e.id), e.type &&
|
|
4170
|
+
e.id !== 0n && t.tag(2, c.Varint).uint64(e.id), e.type && g.internalBinaryWrite(e.type, t.tag(3, c.LengthDelimited).fork(), i).join(), e.data.length && t.tag(6, c.LengthDelimited).bytes(e.data), e.errorIfExists !== !1 && t.tag(7, c.Varint).bool(e.errorIfExists);
|
|
4171
4171
|
let n = i.writeUnknownFields;
|
|
4172
4172
|
return n !== !1 && (n == !0 ? u.onWrite : n)(this.typeName, e, t), t;
|
|
4173
4173
|
}
|
|
@@ -4236,7 +4236,7 @@ new ds();
|
|
|
4236
4236
|
class fs extends h {
|
|
4237
4237
|
constructor() {
|
|
4238
4238
|
super("MiLaboratories.PL.API.ResourceAPI.GetSingleton.Request", [
|
|
4239
|
-
{ no: 1, name: "type", kind: "message", T: () =>
|
|
4239
|
+
{ no: 1, name: "type", kind: "message", T: () => g },
|
|
4240
4240
|
{
|
|
4241
4241
|
no: 2,
|
|
4242
4242
|
name: "data",
|
|
@@ -4264,7 +4264,7 @@ class fs extends h {
|
|
|
4264
4264
|
switch (a) {
|
|
4265
4265
|
case /* MiLaboratories.PL.Base.ResourceType type */
|
|
4266
4266
|
1:
|
|
4267
|
-
r.type =
|
|
4267
|
+
r.type = g.internalBinaryRead(e, e.uint32(), i, r.type);
|
|
4268
4268
|
break;
|
|
4269
4269
|
case /* bytes data */
|
|
4270
4270
|
2:
|
|
@@ -4285,7 +4285,7 @@ class fs extends h {
|
|
|
4285
4285
|
return r;
|
|
4286
4286
|
}
|
|
4287
4287
|
internalBinaryWrite(e, t, i) {
|
|
4288
|
-
e.type &&
|
|
4288
|
+
e.type && g.internalBinaryWrite(e.type, t.tag(1, c.LengthDelimited).fork(), i).join(), e.data.length && t.tag(2, c.LengthDelimited).bytes(e.data), e.loadFields !== !1 && t.tag(3, c.Varint).bool(e.loadFields);
|
|
4289
4289
|
let n = i.writeUnknownFields;
|
|
4290
4290
|
return n !== !1 && (n == !0 ? u.onWrite : n)(this.typeName, e, t), t;
|
|
4291
4291
|
}
|
|
@@ -4294,7 +4294,7 @@ const Me = new fs();
|
|
|
4294
4294
|
class hs extends h {
|
|
4295
4295
|
constructor() {
|
|
4296
4296
|
super("MiLaboratories.PL.API.ResourceAPI.GetSingleton.Response", [
|
|
4297
|
-
{ no: 1, name: "resource", kind: "message", T: () =>
|
|
4297
|
+
{ no: 1, name: "resource", kind: "message", T: () => A }
|
|
4298
4298
|
]);
|
|
4299
4299
|
}
|
|
4300
4300
|
create(e) {
|
|
@@ -4308,7 +4308,7 @@ class hs extends h {
|
|
|
4308
4308
|
switch (a) {
|
|
4309
4309
|
case /* MiLaboratories.PL.API.Resource resource */
|
|
4310
4310
|
1:
|
|
4311
|
-
r.resource =
|
|
4311
|
+
r.resource = A.internalBinaryRead(e, e.uint32(), i, r.resource);
|
|
4312
4312
|
break;
|
|
4313
4313
|
default:
|
|
4314
4314
|
let s = i.readUnknownField;
|
|
@@ -4321,7 +4321,7 @@ class hs extends h {
|
|
|
4321
4321
|
return r;
|
|
4322
4322
|
}
|
|
4323
4323
|
internalBinaryWrite(e, t, i) {
|
|
4324
|
-
e.resource &&
|
|
4324
|
+
e.resource && A.internalBinaryWrite(e.resource, t.tag(1, c.LengthDelimited).fork(), i).join();
|
|
4325
4325
|
let n = i.writeUnknownFields;
|
|
4326
4326
|
return n !== !1 && (n == !0 ? u.onWrite : n)(this.typeName, e, t), t;
|
|
4327
4327
|
}
|
|
@@ -4672,7 +4672,7 @@ class _s extends h {
|
|
|
4672
4672
|
}
|
|
4673
4673
|
}
|
|
4674
4674
|
const et = new _s();
|
|
4675
|
-
class
|
|
4675
|
+
class As extends h {
|
|
4676
4676
|
constructor() {
|
|
4677
4677
|
super("MiLaboratories.PL.API.ResourceAPI.Get", []);
|
|
4678
4678
|
}
|
|
@@ -4688,8 +4688,8 @@ class Ls extends h {
|
|
|
4688
4688
|
return n !== !1 && (n == !0 ? u.onWrite : n)(this.typeName, e, t), t;
|
|
4689
4689
|
}
|
|
4690
4690
|
}
|
|
4691
|
-
new
|
|
4692
|
-
class
|
|
4691
|
+
new As();
|
|
4692
|
+
class Ls extends h {
|
|
4693
4693
|
constructor() {
|
|
4694
4694
|
super("MiLaboratories.PL.API.ResourceAPI.Get.Request", [
|
|
4695
4695
|
{
|
|
@@ -4742,11 +4742,11 @@ class As extends h {
|
|
|
4742
4742
|
return n !== !1 && (n == !0 ? u.onWrite : n)(this.typeName, e, t), t;
|
|
4743
4743
|
}
|
|
4744
4744
|
}
|
|
4745
|
-
const tt = new
|
|
4745
|
+
const tt = new Ls();
|
|
4746
4746
|
class Bs extends h {
|
|
4747
4747
|
constructor() {
|
|
4748
4748
|
super("MiLaboratories.PL.API.ResourceAPI.Get.Response", [
|
|
4749
|
-
{ no: 1, name: "resource", kind: "message", T: () =>
|
|
4749
|
+
{ no: 1, name: "resource", kind: "message", T: () => A }
|
|
4750
4750
|
]);
|
|
4751
4751
|
}
|
|
4752
4752
|
create(e) {
|
|
@@ -4760,7 +4760,7 @@ class Bs extends h {
|
|
|
4760
4760
|
switch (a) {
|
|
4761
4761
|
case /* MiLaboratories.PL.API.Resource resource */
|
|
4762
4762
|
1:
|
|
4763
|
-
r.resource =
|
|
4763
|
+
r.resource = A.internalBinaryRead(e, e.uint32(), i, r.resource);
|
|
4764
4764
|
break;
|
|
4765
4765
|
default:
|
|
4766
4766
|
let s = i.readUnknownField;
|
|
@@ -4773,7 +4773,7 @@ class Bs extends h {
|
|
|
4773
4773
|
return r;
|
|
4774
4774
|
}
|
|
4775
4775
|
internalBinaryWrite(e, t, i) {
|
|
4776
|
-
e.resource &&
|
|
4776
|
+
e.resource && A.internalBinaryWrite(e.resource, t.tag(1, c.LengthDelimited).fork(), i).join();
|
|
4777
4777
|
let n = i.writeUnknownFields;
|
|
4778
4778
|
return n !== !1 && (n == !0 ? u.onWrite : n)(this.typeName, e, t), t;
|
|
4779
4779
|
}
|
|
@@ -4816,7 +4816,7 @@ new Fs();
|
|
|
4816
4816
|
class xs extends h {
|
|
4817
4817
|
constructor() {
|
|
4818
4818
|
super("MiLaboratories.PL.API.ResourceAPI.List.ByType.Request", [
|
|
4819
|
-
{ no: 1, name: "resource_type", kind: "message", T: () =>
|
|
4819
|
+
{ no: 1, name: "resource_type", kind: "message", T: () => g }
|
|
4820
4820
|
]);
|
|
4821
4821
|
}
|
|
4822
4822
|
create(e) {
|
|
@@ -4830,7 +4830,7 @@ class xs extends h {
|
|
|
4830
4830
|
switch (a) {
|
|
4831
4831
|
case /* MiLaboratories.PL.Base.ResourceType resource_type */
|
|
4832
4832
|
1:
|
|
4833
|
-
r.resourceType =
|
|
4833
|
+
r.resourceType = g.internalBinaryRead(e, e.uint32(), i, r.resourceType);
|
|
4834
4834
|
break;
|
|
4835
4835
|
default:
|
|
4836
4836
|
let s = i.readUnknownField;
|
|
@@ -4843,7 +4843,7 @@ class xs extends h {
|
|
|
4843
4843
|
return r;
|
|
4844
4844
|
}
|
|
4845
4845
|
internalBinaryWrite(e, t, i) {
|
|
4846
|
-
e.resourceType &&
|
|
4846
|
+
e.resourceType && g.internalBinaryWrite(e.resourceType, t.tag(1, c.LengthDelimited).fork(), i).join();
|
|
4847
4847
|
let n = i.writeUnknownFields;
|
|
4848
4848
|
return n !== !1 && (n == !0 ? u.onWrite : n)(this.typeName, e, t), t;
|
|
4849
4849
|
}
|
|
@@ -4852,7 +4852,7 @@ const it = new xs();
|
|
|
4852
4852
|
class Ws extends h {
|
|
4853
4853
|
constructor() {
|
|
4854
4854
|
super("MiLaboratories.PL.API.ResourceAPI.List.ByType.Response", [
|
|
4855
|
-
{ no: 1, name: "resources", kind: "map", K: 4, V: { kind: "message", T: () =>
|
|
4855
|
+
{ no: 1, name: "resources", kind: "map", K: 4, V: { kind: "message", T: () => A } }
|
|
4856
4856
|
]);
|
|
4857
4857
|
}
|
|
4858
4858
|
create(e) {
|
|
@@ -4887,17 +4887,17 @@ class Ws extends h {
|
|
|
4887
4887
|
d = t.uint64().toString();
|
|
4888
4888
|
break;
|
|
4889
4889
|
case 2:
|
|
4890
|
-
a =
|
|
4890
|
+
a = A.internalBinaryRead(t, t.uint32(), i);
|
|
4891
4891
|
break;
|
|
4892
4892
|
default:
|
|
4893
4893
|
throw new globalThis.Error("unknown map entry field for field MiLaboratories.PL.API.ResourceAPI.List.ByType.Response.resources");
|
|
4894
4894
|
}
|
|
4895
4895
|
}
|
|
4896
|
-
e[d ?? "0"] = a ??
|
|
4896
|
+
e[d ?? "0"] = a ?? A.create();
|
|
4897
4897
|
}
|
|
4898
4898
|
internalBinaryWrite(e, t, i) {
|
|
4899
4899
|
for (let r of globalThis.Object.keys(e.resources))
|
|
4900
|
-
t.tag(1, c.LengthDelimited).fork().tag(1, c.Varint).uint64(r), t.tag(2, c.LengthDelimited).fork(),
|
|
4900
|
+
t.tag(1, c.LengthDelimited).fork().tag(1, c.Varint).uint64(r), t.tag(2, c.LengthDelimited).fork(), A.internalBinaryWrite(e.resources[r], t, i), t.join().join();
|
|
4901
4901
|
let n = i.writeUnknownFields;
|
|
4902
4902
|
return n !== !1 && (n == !0 ? u.onWrite : n)(this.typeName, e, t), t;
|
|
4903
4903
|
}
|
|
@@ -4931,7 +4931,7 @@ class $s extends h {
|
|
|
4931
4931
|
L: 0
|
|
4932
4932
|
/*LongType.BIGINT*/
|
|
4933
4933
|
},
|
|
4934
|
-
{ no: 3, name: "type", kind: "message", T: () =>
|
|
4934
|
+
{ no: 3, name: "type", kind: "message", T: () => g }
|
|
4935
4935
|
]);
|
|
4936
4936
|
}
|
|
4937
4937
|
create(e) {
|
|
@@ -4949,7 +4949,7 @@ class $s extends h {
|
|
|
4949
4949
|
break;
|
|
4950
4950
|
case /* MiLaboratories.PL.Base.ResourceType type */
|
|
4951
4951
|
3:
|
|
4952
|
-
r.type =
|
|
4952
|
+
r.type = g.internalBinaryRead(e, e.uint32(), i, r.type);
|
|
4953
4953
|
break;
|
|
4954
4954
|
default:
|
|
4955
4955
|
let s = i.readUnknownField;
|
|
@@ -4962,7 +4962,7 @@ class $s extends h {
|
|
|
4962
4962
|
return r;
|
|
4963
4963
|
}
|
|
4964
4964
|
internalBinaryWrite(e, t, i) {
|
|
4965
|
-
e.id !== 0n && t.tag(2, c.Varint).uint64(e.id), e.type &&
|
|
4965
|
+
e.id !== 0n && t.tag(2, c.Varint).uint64(e.id), e.type && g.internalBinaryWrite(e.type, t.tag(3, c.LengthDelimited).fork(), i).join();
|
|
4966
4966
|
let n = i.writeUnknownFields;
|
|
4967
4967
|
return n !== !1 && (n == !0 ? u.onWrite : n)(this.typeName, e, t), t;
|
|
4968
4968
|
}
|
|
@@ -5923,7 +5923,7 @@ class po extends h {
|
|
|
5923
5923
|
return n !== !1 && (n == !0 ? u.onWrite : n)(this.typeName, e, t), t;
|
|
5924
5924
|
}
|
|
5925
5925
|
}
|
|
5926
|
-
const
|
|
5926
|
+
const At = new po();
|
|
5927
5927
|
class yo extends h {
|
|
5928
5928
|
constructor() {
|
|
5929
5929
|
super("MiLaboratories.PL.API.FieldAPI.Reset", []);
|
|
@@ -5976,7 +5976,7 @@ class go extends h {
|
|
|
5976
5976
|
return n !== !1 && (n == !0 ? u.onWrite : n)(this.typeName, e, t), t;
|
|
5977
5977
|
}
|
|
5978
5978
|
}
|
|
5979
|
-
const
|
|
5979
|
+
const Lt = new go();
|
|
5980
5980
|
class mo extends h {
|
|
5981
5981
|
constructor() {
|
|
5982
5982
|
super("MiLaboratories.PL.API.FieldAPI.Reset.Response", []);
|
|
@@ -6206,7 +6206,7 @@ class _o extends h {
|
|
|
6206
6206
|
}
|
|
6207
6207
|
}
|
|
6208
6208
|
new _o();
|
|
6209
|
-
class
|
|
6209
|
+
class Ao extends h {
|
|
6210
6210
|
constructor() {
|
|
6211
6211
|
super("MiLaboratories.PL.API.NotificationAPI.Ack.Request", [
|
|
6212
6212
|
{
|
|
@@ -6260,8 +6260,8 @@ class Lo extends h {
|
|
|
6260
6260
|
return n !== !1 && (n == !0 ? u.onWrite : n)(this.typeName, e, t), t;
|
|
6261
6261
|
}
|
|
6262
6262
|
}
|
|
6263
|
-
const xt = new
|
|
6264
|
-
class
|
|
6263
|
+
const xt = new Ao();
|
|
6264
|
+
class Lo extends h {
|
|
6265
6265
|
constructor() {
|
|
6266
6266
|
super("MiLaboratories.PL.API.NotificationAPI.Ack.Response", []);
|
|
6267
6267
|
}
|
|
@@ -6277,7 +6277,7 @@ class Ao extends h {
|
|
|
6277
6277
|
return n !== !1 && (n == !0 ? u.onWrite : n)(this.typeName, e, t), t;
|
|
6278
6278
|
}
|
|
6279
6279
|
}
|
|
6280
|
-
const Wt = new
|
|
6280
|
+
const Wt = new Lo();
|
|
6281
6281
|
class Bo extends h {
|
|
6282
6282
|
constructor() {
|
|
6283
6283
|
super("MiLaboratories.PL.API.NotificationAPI.Discard", []);
|
|
@@ -7608,7 +7608,7 @@ class _a extends h {
|
|
|
7608
7608
|
}
|
|
7609
7609
|
}
|
|
7610
7610
|
new _a();
|
|
7611
|
-
class
|
|
7611
|
+
class Aa extends h {
|
|
7612
7612
|
constructor() {
|
|
7613
7613
|
super("MiLaboratories.PL.API.ControllerAPI.AttachSubscription.Request", [
|
|
7614
7614
|
{
|
|
@@ -7662,7 +7662,7 @@ class La extends h {
|
|
|
7662
7662
|
return n !== !1 && (n == !0 ? u.onWrite : n)(this.typeName, e, t), t;
|
|
7663
7663
|
}
|
|
7664
7664
|
}
|
|
7665
|
-
const
|
|
7665
|
+
const La = new Aa();
|
|
7666
7666
|
class Ba extends h {
|
|
7667
7667
|
constructor() {
|
|
7668
7668
|
super("MiLaboratories.PL.API.ControllerAPI.AttachSubscription.Response", []);
|
|
@@ -9079,7 +9079,7 @@ class _l extends h {
|
|
|
9079
9079
|
}
|
|
9080
9080
|
}
|
|
9081
9081
|
new _l();
|
|
9082
|
-
class
|
|
9082
|
+
class Al extends h {
|
|
9083
9083
|
constructor() {
|
|
9084
9084
|
super("MiLaboratories.PL.API.ControllerKVAPI.Set", []);
|
|
9085
9085
|
}
|
|
@@ -9095,8 +9095,8 @@ class Ll extends h {
|
|
|
9095
9095
|
return n !== !1 && (n == !0 ? u.onWrite : n)(this.typeName, e, t), t;
|
|
9096
9096
|
}
|
|
9097
9097
|
}
|
|
9098
|
-
new
|
|
9099
|
-
class
|
|
9098
|
+
new Al();
|
|
9099
|
+
class Ll extends h {
|
|
9100
9100
|
constructor() {
|
|
9101
9101
|
super("MiLaboratories.PL.API.ControllerKVAPI.Set.Request", [
|
|
9102
9102
|
{
|
|
@@ -9159,7 +9159,7 @@ class Al extends h {
|
|
|
9159
9159
|
return n !== !1 && (n == !0 ? u.onWrite : n)(this.typeName, e, t), t;
|
|
9160
9160
|
}
|
|
9161
9161
|
}
|
|
9162
|
-
const Qt = new
|
|
9162
|
+
const Qt = new Ll();
|
|
9163
9163
|
class Bl extends h {
|
|
9164
9164
|
constructor() {
|
|
9165
9165
|
super("MiLaboratories.PL.API.ControllerKVAPI.Set.Response", []);
|
|
@@ -10217,7 +10217,7 @@ const wc = new bc();
|
|
|
10217
10217
|
class Tc extends h {
|
|
10218
10218
|
constructor() {
|
|
10219
10219
|
super("MiLaboratories.PL.API.MiscAPI.ListResourceTypes.Response", [
|
|
10220
|
-
{ no: 1, name: "types", kind: "message", repeat: 1, T: () =>
|
|
10220
|
+
{ no: 1, name: "types", kind: "message", repeat: 1, T: () => g }
|
|
10221
10221
|
]);
|
|
10222
10222
|
}
|
|
10223
10223
|
create(e) {
|
|
@@ -10231,7 +10231,7 @@ class Tc extends h {
|
|
|
10231
10231
|
switch (a) {
|
|
10232
10232
|
case /* repeated MiLaboratories.PL.Base.ResourceType types */
|
|
10233
10233
|
1:
|
|
10234
|
-
r.types.push(
|
|
10234
|
+
r.types.push(g.internalBinaryRead(e, e.uint32(), i));
|
|
10235
10235
|
break;
|
|
10236
10236
|
default:
|
|
10237
10237
|
let s = i.readUnknownField;
|
|
@@ -10245,7 +10245,7 @@ class Tc extends h {
|
|
|
10245
10245
|
}
|
|
10246
10246
|
internalBinaryWrite(e, t, i) {
|
|
10247
10247
|
for (let r = 0; r < e.types.length; r++)
|
|
10248
|
-
|
|
10248
|
+
g.internalBinaryWrite(e.types[r], t.tag(1, c.LengthDelimited).fork(), i).join();
|
|
10249
10249
|
let n = i.writeUnknownFields;
|
|
10250
10250
|
return n !== !1 && (n == !0 ? u.onWrite : n)(this.typeName, e, t), t;
|
|
10251
10251
|
}
|
|
@@ -10301,8 +10301,8 @@ class _c extends h {
|
|
|
10301
10301
|
return n !== !1 && (n == !0 ? u.onWrite : n)(this.typeName, e, t), t;
|
|
10302
10302
|
}
|
|
10303
10303
|
}
|
|
10304
|
-
const
|
|
10305
|
-
class
|
|
10304
|
+
const Ac = new _c();
|
|
10305
|
+
class Lc extends h {
|
|
10306
10306
|
constructor() {
|
|
10307
10307
|
super("MiLaboratories.PL.API.MaintenanceAPI.Ping.Response", [
|
|
10308
10308
|
{
|
|
@@ -10365,7 +10365,7 @@ class Ac extends h {
|
|
|
10365
10365
|
return n !== !1 && (n == !0 ? u.onWrite : n)(this.typeName, e, t), t;
|
|
10366
10366
|
}
|
|
10367
10367
|
}
|
|
10368
|
-
const Bc = new
|
|
10368
|
+
const Bc = new Lc(), dn = new Ki("MiLaboratories.PL.API.Platform", [
|
|
10369
10369
|
{ name: "Tx", serverStreaming: !0, clientStreaming: !0, options: {}, I: Br, O: Fr },
|
|
10370
10370
|
{ name: "TxSync", options: {}, I: vr, O: Mr },
|
|
10371
10371
|
{ name: "SubscriptionAttachFilter", options: {}, I: te, O: ne },
|
|
@@ -10377,7 +10377,7 @@ const Bc = new Ac(), dn = new Ki("MiLaboratories.PL.API.Platform", [
|
|
|
10377
10377
|
{ name: "ControllerExists", options: {}, I: na, O: ra },
|
|
10378
10378
|
{ name: "ControllerGet", options: {}, I: Ra, O: Pa },
|
|
10379
10379
|
{ name: "ControllerUpdate", options: {}, I: aa, O: ca },
|
|
10380
|
-
{ name: "ControllerAttachSubscription", options: {}, I:
|
|
10380
|
+
{ name: "ControllerAttachSubscription", options: {}, I: La, O: Na },
|
|
10381
10381
|
{ name: "GetControllerNotifications", options: {}, I: Wa, O: $a },
|
|
10382
10382
|
{ name: "WriteControllerAliasesAndUrls", options: {}, I: Ca, O: Oa },
|
|
10383
10383
|
{ name: "RemoveControllerAliasesAndUrls", options: {}, I: Ja, O: Ha },
|
|
@@ -10390,7 +10390,7 @@ const Bc = new Ac(), dn = new Ki("MiLaboratories.PL.API.Platform", [
|
|
|
10390
10390
|
{ name: "AuthMethods", options: {}, I: lc, O: uc },
|
|
10391
10391
|
{ name: "GetJWTToken", options: {}, I: pc, O: gc },
|
|
10392
10392
|
{ name: "ListResourceTypes", options: {}, I: wc, O: Rc },
|
|
10393
|
-
{ name: "Ping", options: {}, I:
|
|
10393
|
+
{ name: "Ping", options: {}, I: Ac, O: Bc }
|
|
10394
10394
|
]);
|
|
10395
10395
|
function Nc(o) {
|
|
10396
10396
|
return o instanceof ArrayBuffer || ArrayBuffer.isView(o);
|
|
@@ -10551,7 +10551,7 @@ function _i(o) {
|
|
|
10551
10551
|
function j(o) {
|
|
10552
10552
|
return o.hasOwnProperty("globalId") && o.hasOwnProperty("localId");
|
|
10553
10553
|
}
|
|
10554
|
-
function
|
|
10554
|
+
function L(o) {
|
|
10555
10555
|
return _i(o) ? { resourceId: o.resourceId.localId, fieldName: o.fieldName } : o;
|
|
10556
10556
|
}
|
|
10557
10557
|
async function zu(o) {
|
|
@@ -10563,10 +10563,10 @@ function I(o) {
|
|
|
10563
10563
|
async function qc(o) {
|
|
10564
10564
|
return j(o) ? await o.globalId : o;
|
|
10565
10565
|
}
|
|
10566
|
-
function
|
|
10566
|
+
function An(o, e) {
|
|
10567
10567
|
return { resourceId: o, fieldName: e };
|
|
10568
10568
|
}
|
|
10569
|
-
class
|
|
10569
|
+
class Ai extends Error {
|
|
10570
10570
|
}
|
|
10571
10571
|
async function X(o) {
|
|
10572
10572
|
try {
|
|
@@ -10578,19 +10578,20 @@ async function X(o) {
|
|
|
10578
10578
|
}
|
|
10579
10579
|
const N = class N {
|
|
10580
10580
|
constructor(e, t, i, n, r, d) {
|
|
10581
|
-
|
|
10582
|
-
|
|
10581
|
+
y(this, "globalTxId");
|
|
10582
|
+
y(this, "localTxId", N.nextLocalTxId());
|
|
10583
10583
|
/** Used in caching */
|
|
10584
|
-
|
|
10585
|
-
|
|
10584
|
+
y(this, "txOpenTimestamp", Date.now());
|
|
10585
|
+
y(this, "localResourceIdCounter", 0);
|
|
10586
10586
|
/** Store logical tx open / closed state to prevent invalid sequence of requests.
|
|
10587
10587
|
* True means output stream was completed.
|
|
10588
10588
|
* Contract: there must be no async operations between setting this field to true and sending complete signal to stream.*/
|
|
10589
|
-
|
|
10589
|
+
y(this, "_completed", !1);
|
|
10590
10590
|
/** Void operation futures are placed into this pool, and corresponding method return immediately.
|
|
10591
10591
|
* This is done to save number of round-trips. Next operation producing result will also await those
|
|
10592
10592
|
* pending ops, to throw any pending errors. */
|
|
10593
|
-
|
|
10593
|
+
y(this, "pendingVoidOps", []);
|
|
10594
|
+
y(this, "globalTxIdWasAwaited", !1);
|
|
10594
10595
|
this.ll = e, this.name = t, this.writable = i, this._clientRoot = n, this.finalPredicate = r, this.sharedResourceDataCache = d, this.globalTxId = this.sendSingleAndParse(
|
|
10595
10596
|
{
|
|
10596
10597
|
oneofKind: "txOpen",
|
|
@@ -10603,7 +10604,9 @@ const N = class N {
|
|
|
10603
10604
|
var l;
|
|
10604
10605
|
return T((l = a.txOpen.tx) == null ? void 0 : l.id);
|
|
10605
10606
|
}
|
|
10606
|
-
)
|
|
10607
|
+
), this.globalTxId.catch((a) => {
|
|
10608
|
+
this.globalTxIdWasAwaited || console.warn(a);
|
|
10609
|
+
});
|
|
10607
10610
|
}
|
|
10608
10611
|
async drainAndAwaitPendingOps() {
|
|
10609
10612
|
if (this.pendingVoidOps.length === 0) return;
|
|
@@ -10612,11 +10615,19 @@ const N = class N {
|
|
|
10612
10615
|
}
|
|
10613
10616
|
async sendSingleAndParse(e, t) {
|
|
10614
10617
|
const i = this.ll.send(e, !1);
|
|
10615
|
-
|
|
10618
|
+
try {
|
|
10619
|
+
await this.drainAndAwaitPendingOps();
|
|
10620
|
+
} finally {
|
|
10621
|
+
return t(await i);
|
|
10622
|
+
}
|
|
10616
10623
|
}
|
|
10617
10624
|
async sendMultiAndParse(e, t) {
|
|
10618
10625
|
const i = this.ll.send(e, !0);
|
|
10619
|
-
|
|
10626
|
+
try {
|
|
10627
|
+
await this.drainAndAwaitPendingOps();
|
|
10628
|
+
} finally {
|
|
10629
|
+
return t(await i);
|
|
10630
|
+
}
|
|
10620
10631
|
}
|
|
10621
10632
|
async sendVoidSync(e) {
|
|
10622
10633
|
await this.ll.send(e, !1);
|
|
@@ -10639,7 +10650,7 @@ const N = class N {
|
|
|
10639
10650
|
{ oneofKind: "txCommit", txCommit: {} },
|
|
10640
10651
|
(i) => i.txCommit.success
|
|
10641
10652
|
), t = this.ll.complete();
|
|
10642
|
-
if (await this.drainAndAwaitPendingOps(), !await e) throw new
|
|
10653
|
+
if (await this.drainAndAwaitPendingOps(), !await e) throw new Ai();
|
|
10643
10654
|
await t, await this.ll.await();
|
|
10644
10655
|
} else {
|
|
10645
10656
|
const e = this.ll.complete();
|
|
@@ -10838,14 +10849,14 @@ const N = class N {
|
|
|
10838
10849
|
createField(e, t, i) {
|
|
10839
10850
|
this.sendVoidAsync({
|
|
10840
10851
|
oneofKind: "fieldCreate",
|
|
10841
|
-
fieldCreate: { type: Oc(t), id:
|
|
10852
|
+
fieldCreate: { type: Oc(t), id: L(e) }
|
|
10842
10853
|
}), i !== void 0 && this.setField(e, i);
|
|
10843
10854
|
}
|
|
10844
10855
|
async fieldExists(e) {
|
|
10845
10856
|
return await this.sendSingleAndParse(
|
|
10846
10857
|
{
|
|
10847
10858
|
oneofKind: "fieldExists",
|
|
10848
|
-
fieldExists: { field:
|
|
10859
|
+
fieldExists: { field: L(e) }
|
|
10849
10860
|
},
|
|
10850
10861
|
(t) => t.fieldExists.exists
|
|
10851
10862
|
);
|
|
@@ -10854,7 +10865,7 @@ const N = class N {
|
|
|
10854
10865
|
Kc(t) ? this.sendVoidAsync({
|
|
10855
10866
|
oneofKind: "fieldSet",
|
|
10856
10867
|
fieldSet: {
|
|
10857
|
-
field:
|
|
10868
|
+
field: L(e),
|
|
10858
10869
|
value: {
|
|
10859
10870
|
resourceId: I(t),
|
|
10860
10871
|
fieldName: ""
|
|
@@ -10864,20 +10875,20 @@ const N = class N {
|
|
|
10864
10875
|
}) : this.sendVoidAsync({
|
|
10865
10876
|
oneofKind: "fieldSet",
|
|
10866
10877
|
fieldSet: {
|
|
10867
|
-
field:
|
|
10868
|
-
value:
|
|
10878
|
+
field: L(e),
|
|
10879
|
+
value: L(t)
|
|
10869
10880
|
}
|
|
10870
10881
|
});
|
|
10871
10882
|
}
|
|
10872
10883
|
setFieldError(e, t) {
|
|
10873
10884
|
this.sendVoidAsync({
|
|
10874
10885
|
oneofKind: "fieldSetError",
|
|
10875
|
-
fieldSetError: { field:
|
|
10886
|
+
fieldSetError: { field: L(e), errResourceId: I(t) }
|
|
10876
10887
|
});
|
|
10877
10888
|
}
|
|
10878
10889
|
async getField(e) {
|
|
10879
10890
|
return await this.sendSingleAndParse(
|
|
10880
|
-
{ oneofKind: "fieldGet", fieldGet: { field:
|
|
10891
|
+
{ oneofKind: "fieldGet", fieldGet: { field: L(e) } },
|
|
10881
10892
|
(t) => Pi(T(t.fieldGet.field))
|
|
10882
10893
|
);
|
|
10883
10894
|
}
|
|
@@ -10885,10 +10896,10 @@ const N = class N {
|
|
|
10885
10896
|
return X(async () => await this.getField(e));
|
|
10886
10897
|
}
|
|
10887
10898
|
resetField(e) {
|
|
10888
|
-
this.sendVoidAsync({ oneofKind: "fieldReset", fieldReset: { field:
|
|
10899
|
+
this.sendVoidAsync({ oneofKind: "fieldReset", fieldReset: { field: L(e) } });
|
|
10889
10900
|
}
|
|
10890
10901
|
removeField(e) {
|
|
10891
|
-
this.sendVoidAsync({ oneofKind: "fieldRemove", fieldRemove: { field:
|
|
10902
|
+
this.sendVoidAsync({ oneofKind: "fieldRemove", fieldRemove: { field: L(e) } });
|
|
10892
10903
|
}
|
|
10893
10904
|
//
|
|
10894
10905
|
// KV
|
|
@@ -10982,7 +10993,7 @@ const N = class N {
|
|
|
10982
10993
|
// Technical
|
|
10983
10994
|
//
|
|
10984
10995
|
async getGlobalTxId() {
|
|
10985
|
-
return await this.globalTxId;
|
|
10996
|
+
return this.globalTxIdWasAwaited = !0, await this.globalTxId;
|
|
10986
10997
|
}
|
|
10987
10998
|
/** Closes output event stream */
|
|
10988
10999
|
async complete() {
|
|
@@ -11006,12 +11017,12 @@ const N = class N {
|
|
|
11006
11017
|
return N.localTxIdCounter++, N.localTxIdCounter === Rn && (N.localTxIdCounter = 1), N.localTxIdCounter;
|
|
11007
11018
|
}
|
|
11008
11019
|
};
|
|
11009
|
-
|
|
11020
|
+
y(N, "localTxIdCounter", 0);
|
|
11010
11021
|
let gn = N;
|
|
11011
11022
|
function _(o, e) {
|
|
11012
11023
|
return { name: o, version: e };
|
|
11013
11024
|
}
|
|
11014
|
-
const mn = _("ClientRoot", "1"), Vc = _("StructTest", "1"), vc = _("ValueTest", "1"),
|
|
11025
|
+
const mn = _("ClientRoot", "1"), Vc = _("StructTest", "1"), vc = _("ValueTest", "1"), Li = _("json/string", "1"), Bi = _("json/bool", "1"), Ni = _("json/object", "1"), Fi = _("json/array", "1"), xi = _("json/number", "1"), Wi = _("json/null", "1"), Ln = _("EphStdMap", "1"), Bn = _("StdMap", "1");
|
|
11015
11026
|
function jc(o) {
|
|
11016
11027
|
return o.createValue(Wi, Buffer.from(JSON.stringify(null)));
|
|
11017
11028
|
}
|
|
@@ -11022,7 +11033,7 @@ function Gc(o, e) {
|
|
|
11022
11033
|
return o.createValue(xi, Buffer.from(JSON.stringify(e)));
|
|
11023
11034
|
}
|
|
11024
11035
|
function Jc(o, e) {
|
|
11025
|
-
return o.createValue(
|
|
11036
|
+
return o.createValue(Li, Buffer.from(JSON.stringify(e)));
|
|
11026
11037
|
}
|
|
11027
11038
|
function zc(o, e) {
|
|
11028
11039
|
return o.createValue(Fi, Buffer.from(JSON.stringify(e)));
|
|
@@ -11037,9 +11048,9 @@ function Ui(o, e) {
|
|
|
11037
11048
|
return e === void 0 ? Object.entries(o) : e.map((t) => Nn(t, o[t]));
|
|
11038
11049
|
}
|
|
11039
11050
|
function Yc(o, e, t, i) {
|
|
11040
|
-
const n = i ?? (t ?
|
|
11051
|
+
const n = i ?? (t ? Ln : Bn), r = t ? o.createEphemeral(n) : o.createStruct(n);
|
|
11041
11052
|
for (const [d, a] of Array.isArray(e) ? e : Ui(e))
|
|
11042
|
-
o.createField(
|
|
11053
|
+
o.createField(An(r, d), "Input", a);
|
|
11043
11054
|
return o.lock(r), r;
|
|
11044
11055
|
}
|
|
11045
11056
|
function Zc(o, e, t, i, n = "") {
|
|
@@ -11047,13 +11058,13 @@ function Zc(o, e, t, i, n = "") {
|
|
|
11047
11058
|
t.map((r) => Nn(r, o.getFutureFieldValue(e, `${n}${r}`, i)))
|
|
11048
11059
|
);
|
|
11049
11060
|
}
|
|
11050
|
-
const $i = Bn, Ei =
|
|
11061
|
+
const $i = Bn, Ei = Ln, pe = "ref";
|
|
11051
11062
|
function Xc(o, e) {
|
|
11052
|
-
const t = o.createStruct($i), i =
|
|
11063
|
+
const t = o.createStruct($i), i = An(t, pe);
|
|
11053
11064
|
return o.createField(i, "Input", e), o.lock(t), t;
|
|
11054
11065
|
}
|
|
11055
11066
|
function Qc(o, e) {
|
|
11056
|
-
const t = o.createEphemeral(Ei), i =
|
|
11067
|
+
const t = o.createEphemeral(Ei), i = An(t, pe);
|
|
11057
11068
|
return o.createField(i, "Input", e), o.lock(t), t;
|
|
11058
11069
|
}
|
|
11059
11070
|
function eu(o, e) {
|
|
@@ -11063,7 +11074,7 @@ const Hu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
11063
11074
|
__proto__: null,
|
|
11064
11075
|
ClientRoot: mn,
|
|
11065
11076
|
EphHolder: Ei,
|
|
11066
|
-
EphStdMap:
|
|
11077
|
+
EphStdMap: Ln,
|
|
11067
11078
|
Holder: $i,
|
|
11068
11079
|
HolderRefField: pe,
|
|
11069
11080
|
JsonArray: Fi,
|
|
@@ -11071,7 +11082,7 @@ const Hu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
11071
11082
|
JsonNull: Wi,
|
|
11072
11083
|
JsonNumber: xi,
|
|
11073
11084
|
JsonObject: Ni,
|
|
11074
|
-
JsonString:
|
|
11085
|
+
JsonString: Li,
|
|
11075
11086
|
StdMap: Bn,
|
|
11076
11087
|
StructTestResource: Vc,
|
|
11077
11088
|
ValueTestResource: vc,
|
|
@@ -11148,9 +11159,9 @@ function fe(o, e = {}) {
|
|
|
11148
11159
|
const Yu = {};
|
|
11149
11160
|
class tu {
|
|
11150
11161
|
constructor(e) {
|
|
11151
|
-
|
|
11152
|
-
|
|
11153
|
-
|
|
11162
|
+
y(this, "typeName", dn.typeName);
|
|
11163
|
+
y(this, "methods", dn.methods);
|
|
11164
|
+
y(this, "options", dn.options);
|
|
11154
11165
|
this._transport = e;
|
|
11155
11166
|
}
|
|
11156
11167
|
/**
|
|
@@ -11371,29 +11382,29 @@ class M extends Error {
|
|
|
11371
11382
|
class ru {
|
|
11372
11383
|
constructor(e) {
|
|
11373
11384
|
/** Bidirectional channel through which transaction communicates with the server */
|
|
11374
|
-
|
|
11385
|
+
y(this, "stream");
|
|
11375
11386
|
/** Used to abort ongoing transaction stream */
|
|
11376
|
-
|
|
11387
|
+
y(this, "abortController", new AbortController());
|
|
11377
11388
|
/** Counter of sent requests, used to calculate which future response will correspond to this request.
|
|
11378
11389
|
* Incremented on each sent request. */
|
|
11379
|
-
|
|
11390
|
+
y(this, "requestIdxCounter", 0);
|
|
11380
11391
|
/** Queue from which incoming message processor takes handlers to which pass incoming messages */
|
|
11381
|
-
|
|
11392
|
+
y(this, "responseHandlerQueue", new vi());
|
|
11382
11393
|
/** Each new resource, created by the transaction, is assigned with virtual (local) resource id, to make it possible
|
|
11383
11394
|
* to populate its fields without awaiting actual resource id. This counter tracks those ids on client side, the
|
|
11384
11395
|
* same way it is tracked on the server, so client can synchronously return such ids to the user. */
|
|
11385
|
-
|
|
11396
|
+
y(this, "localResourceIdCounter", 0n);
|
|
11386
11397
|
/** Switches to true, when this transaction closes due to normal or exceptional conditions. Prevents any new messages
|
|
11387
11398
|
* to be sent to the stream. */
|
|
11388
|
-
|
|
11399
|
+
y(this, "closed", !1);
|
|
11389
11400
|
/** Whether the outgoing stream was already closed. */
|
|
11390
|
-
|
|
11401
|
+
y(this, "completed", !1);
|
|
11391
11402
|
/** If this transaction was terminated due to error, this is a generator to create new errors if corresponding response is required. */
|
|
11392
|
-
|
|
11403
|
+
y(this, "errorFactory");
|
|
11393
11404
|
/** Timestamp when transaction was opened */
|
|
11394
|
-
|
|
11395
|
-
|
|
11396
|
-
|
|
11405
|
+
y(this, "openTimestamp", Date.now());
|
|
11406
|
+
y(this, "incomingProcessorResult");
|
|
11407
|
+
y(this, "_completed", !1);
|
|
11397
11408
|
this.stream = e(this.abortController.signal), this.incomingProcessorResult = this.incomingEventProcessor();
|
|
11398
11409
|
}
|
|
11399
11410
|
assignErrorFactoryIfNotSet(e, t) {
|
|
@@ -11542,23 +11553,23 @@ function Zu(o) {
|
|
|
11542
11553
|
}
|
|
11543
11554
|
class xn {
|
|
11544
11555
|
constructor(e, t = {}) {
|
|
11545
|
-
|
|
11556
|
+
y(this, "conf");
|
|
11546
11557
|
/** Initial authorization information */
|
|
11547
|
-
|
|
11558
|
+
y(this, "authInformation");
|
|
11548
11559
|
/** Will be executed by the client when it is required */
|
|
11549
|
-
|
|
11560
|
+
y(this, "onAuthUpdate");
|
|
11550
11561
|
/** Will be executed if auth-related error happens during normal client operation */
|
|
11551
|
-
|
|
11562
|
+
y(this, "onAuthError");
|
|
11552
11563
|
/** Will be executed by the client when it is required */
|
|
11553
|
-
|
|
11564
|
+
y(this, "onAuthRefreshProblem");
|
|
11554
11565
|
/** Threshold after which auth info refresh is required */
|
|
11555
|
-
|
|
11556
|
-
|
|
11557
|
-
|
|
11558
|
-
|
|
11559
|
-
|
|
11560
|
-
|
|
11561
|
-
|
|
11566
|
+
y(this, "refreshTimestamp");
|
|
11567
|
+
y(this, "_status", "OK");
|
|
11568
|
+
y(this, "statusListener");
|
|
11569
|
+
y(this, "grpcTransport");
|
|
11570
|
+
y(this, "grpcPl");
|
|
11571
|
+
y(this, "httpDispatcher");
|
|
11572
|
+
y(this, "authRefreshInProgress", !1);
|
|
11562
11573
|
this.conf = typeof e == "string" ? fe(e) : e;
|
|
11563
11574
|
const i = [], { auth: n, statusListener: r } = t;
|
|
11564
11575
|
n !== void 0 && (this.refreshTimestamp = Y(
|
|
@@ -11732,25 +11743,25 @@ function ti(o) {
|
|
|
11732
11743
|
}
|
|
11733
11744
|
class ye {
|
|
11734
11745
|
constructor(e, t, i = {}) {
|
|
11735
|
-
|
|
11736
|
-
|
|
11746
|
+
y(this, "ll");
|
|
11747
|
+
y(this, "drivers", /* @__PURE__ */ new Map());
|
|
11737
11748
|
/** Artificial delay introduced after write transactions completion, to
|
|
11738
11749
|
* somewhat throttle the load on pl. Delay introduced after sync, if requested. */
|
|
11739
|
-
|
|
11750
|
+
y(this, "txDelay");
|
|
11740
11751
|
/** Last resort measure to solve complicated race conditions in pl. */
|
|
11741
|
-
|
|
11752
|
+
y(this, "forceSync");
|
|
11742
11753
|
/** Last resort measure to solve complicated race conditions in pl. */
|
|
11743
|
-
|
|
11754
|
+
y(this, "defaultRetryOptions");
|
|
11744
11755
|
/** Stores client root (this abstraction is intended for future implementation of the security model)*/
|
|
11745
|
-
|
|
11746
|
-
|
|
11756
|
+
y(this, "_clientRoot", E);
|
|
11757
|
+
y(this, "_serverInfo");
|
|
11747
11758
|
//
|
|
11748
11759
|
// Caching
|
|
11749
11760
|
//
|
|
11750
11761
|
/** This function determines whether resource data can be cached */
|
|
11751
|
-
|
|
11762
|
+
y(this, "finalPredicate");
|
|
11752
11763
|
/** Resource data cache, to minimize redundant data rereading from remote db */
|
|
11753
|
-
|
|
11764
|
+
y(this, "resourceDataCache");
|
|
11754
11765
|
this.ll = new xn(e, { auth: t, ...i });
|
|
11755
11766
|
const n = this.ll.conf;
|
|
11756
11767
|
switch (this.txDelay = n.txDelay, this.forceSync = n.forceSync, this.finalPredicate = i.finalPredicate ?? ou, this.resourceDataCache = new zi({
|
|
@@ -11847,7 +11858,7 @@ class ye {
|
|
|
11847
11858
|
try {
|
|
11848
11859
|
f = await n(l), s = !0;
|
|
11849
11860
|
} catch ($n) {
|
|
11850
|
-
if (!($n instanceof
|
|
11861
|
+
if (!($n instanceof Ai)) throw $n;
|
|
11851
11862
|
} finally {
|
|
11852
11863
|
await l.complete(), await l.await(), Un = await l.getGlobalTxId();
|
|
11853
11864
|
}
|
|
@@ -11885,7 +11896,7 @@ function Xu(o, e) {
|
|
|
11885
11896
|
}
|
|
11886
11897
|
class Si {
|
|
11887
11898
|
constructor(e) {
|
|
11888
|
-
|
|
11899
|
+
y(this, "ll");
|
|
11889
11900
|
this.ll = new xn(e);
|
|
11890
11901
|
}
|
|
11891
11902
|
async ping() {
|
|
@@ -12226,7 +12237,7 @@ export {
|
|
|
12226
12237
|
ku as PollTxAccessor,
|
|
12227
12238
|
Pn as RecoverablePlError,
|
|
12228
12239
|
nd as TestHelpers,
|
|
12229
|
-
|
|
12240
|
+
Ai as TxCommitConflict,
|
|
12230
12241
|
_n as UnauthenticatedError,
|
|
12231
12242
|
Si as UnauthenticatedPlClient,
|
|
12232
12243
|
Wc as UnrecoverablePlError,
|
|
@@ -12240,7 +12251,7 @@ export {
|
|
|
12240
12251
|
Zu as expirationFromAuthInformation,
|
|
12241
12252
|
On as extractBasicResourceData,
|
|
12242
12253
|
gi as extractTxId,
|
|
12243
|
-
|
|
12254
|
+
An as field,
|
|
12244
12255
|
Kn as getField,
|
|
12245
12256
|
Y as inferAuthRefreshTime,
|
|
12246
12257
|
Cu as isAnyResourceId,
|
|
@@ -12268,7 +12279,7 @@ export {
|
|
|
12268
12279
|
Uc as rethrowMeaningfulError,
|
|
12269
12280
|
Gu as stringifyWithResourceId,
|
|
12270
12281
|
xc as throwPlNotFoundError,
|
|
12271
|
-
|
|
12282
|
+
L as toFieldId,
|
|
12272
12283
|
zu as toGlobalFieldId,
|
|
12273
12284
|
qc as toGlobalResourceId,
|
|
12274
12285
|
I as toResourceId,
|