@viamrobotics/sdk 0.7.0-rc.2 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app/data-client.d.ts +23 -5
- package/dist/gen/app/data/v1/data_pb.d.ts +92 -0
- package/dist/gen/app/data/v1/data_pb_service.d.ts +38 -0
- package/dist/gen/app/mltraining/v1/ml_training_pb.d.ts +12 -0
- package/dist/main.es.js +421 -109
- package/dist/main.umd.js +3 -3
- package/package.json +1 -1
package/dist/main.es.js
CHANGED
|
@@ -20555,29 +20555,29 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
|
|
|
20555
20555
|
case 0:
|
|
20556
20556
|
return D = "", z = function() {
|
|
20557
20557
|
return s.__awaiter(L, void 0, void 0, function() {
|
|
20558
|
-
var I, U, k, S, M,
|
|
20558
|
+
var I, U, k, S, M, B, E, F, P, O;
|
|
20559
20559
|
return s.__generator(this, function(C) {
|
|
20560
20560
|
switch (C.label) {
|
|
20561
20561
|
case 0:
|
|
20562
|
-
return D != "" ? [3, 5] : (I = "", T.accessToken && T.accessToken !== "" ? [3, 2] : ((
|
|
20562
|
+
return D != "" ? [3, 5] : (I = "", T.accessToken && T.accessToken !== "" ? [3, 2] : ((E = new r.AuthenticateRequest()).setEntity(T.authEntity ? T.authEntity : R.replace(/^(.*:\/\/)/, "")), (S = new r.Credentials()).setType((P = T.credentials) === null || P === void 0 ? void 0 : P.type), S.setPayload((O = T.credentials) === null || O === void 0 ? void 0 : O.payload), E.setCredentials(S), B = new Promise(function(A, W) {
|
|
20563
20563
|
U = A, k = W;
|
|
20564
|
-
}), l.grpc.invoke(u.AuthService.Authenticate, { request:
|
|
20564
|
+
}), l.grpc.invoke(u.AuthService.Authenticate, { request: E, host: T.externalAuthAddress ? T.externalAuthAddress : R, transport: w, onMessage: function(A) {
|
|
20565
20565
|
I = A.getAccessToken();
|
|
20566
20566
|
}, onEnd: function(A, W, _) {
|
|
20567
20567
|
A == l.grpc.Code.OK ? U(F) : k(W);
|
|
20568
|
-
} }), [4,
|
|
20568
|
+
} }), [4, B]));
|
|
20569
20569
|
case 1:
|
|
20570
20570
|
return C.sent(), [3, 3];
|
|
20571
20571
|
case 2:
|
|
20572
20572
|
I = T.accessToken, C.label = 3;
|
|
20573
20573
|
case 3:
|
|
20574
|
-
return D = I, T.externalAuthAddress && T.externalAuthToEntity ? ((M = new l.grpc.Metadata()).set("authorization", "Bearer ".concat(D)),
|
|
20574
|
+
return D = I, T.externalAuthAddress && T.externalAuthToEntity ? ((M = new l.grpc.Metadata()).set("authorization", "Bearer ".concat(D)), B = new Promise(function(A, W) {
|
|
20575
20575
|
U = A, k = W;
|
|
20576
|
-
}), I = "", (
|
|
20576
|
+
}), I = "", (E = new r.AuthenticateToRequest()).setEntity(T.externalAuthToEntity), l.grpc.invoke(u.ExternalAuthService.AuthenticateTo, { request: E, host: T.externalAuthAddress, transport: w, metadata: M, onMessage: function(A) {
|
|
20577
20577
|
I = A.getAccessToken();
|
|
20578
20578
|
}, onEnd: function(A, W, _) {
|
|
20579
20579
|
A == l.grpc.Code.OK ? U(M) : k(W);
|
|
20580
|
-
} }), [4,
|
|
20580
|
+
} }), [4, B]) : [3, 5];
|
|
20581
20581
|
case 4:
|
|
20582
20582
|
C.sent(), D = I, C.label = 5;
|
|
20583
20583
|
case 5:
|
|
@@ -20622,9 +20622,9 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
|
|
|
20622
20622
|
return z = U.sent(), I = new Promise(function(k, S) {
|
|
20623
20623
|
j = k, L = S;
|
|
20624
20624
|
}), l.grpc.unary(d.SignalingService.OptionalWebRTCConfig, { request: new c.OptionalWebRTCConfigRequest(), metadata: { "rpc-host": w }, host: R, transport: z, onEnd: function(k) {
|
|
20625
|
-
var S = k.status, M = k.statusMessage,
|
|
20626
|
-
if (S === l.grpc.Code.OK &&
|
|
20627
|
-
if (!(x =
|
|
20625
|
+
var S = k.status, M = k.statusMessage, B = k.message;
|
|
20626
|
+
if (S === l.grpc.Code.OK && B) {
|
|
20627
|
+
if (!(x = B.getConfig()))
|
|
20628
20628
|
return void j(new c.WebRTCConfig());
|
|
20629
20629
|
j(x);
|
|
20630
20630
|
} else
|
|
@@ -20666,7 +20666,7 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
|
|
|
20666
20666
|
e.dialWebRTC = function(R, w, T) {
|
|
20667
20667
|
var D, z, j, L, x, I, U, k;
|
|
20668
20668
|
return s.__awaiter(this, void 0, void 0, function() {
|
|
20669
|
-
var S, M,
|
|
20669
|
+
var S, M, B, E, F, P, O, C, A, W, _, G, H, Y, oe, le, re, ge, ae, ie, pe, ne, ce, se, de, ve, ue, me = this;
|
|
20670
20670
|
return s.__generator(this, function(J) {
|
|
20671
20671
|
switch (J.label) {
|
|
20672
20672
|
case 0:
|
|
@@ -20674,9 +20674,9 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
|
|
|
20674
20674
|
case 1:
|
|
20675
20675
|
return S = J.sent(), M = S.toObject().additionalIceServersList.map(function(q) {
|
|
20676
20676
|
return { urls: q.urlsList, credential: q.credential, username: q.username };
|
|
20677
|
-
}), T || (T = {}), T.webrtcOptions ? (
|
|
20677
|
+
}), T || (T = {}), T.webrtcOptions ? (B = T.webrtcOptions).rtcConfig ? B.rtcConfig.iceServers = s.__spreadArray(s.__spreadArray([], B.rtcConfig.iceServers || [], !0), M, !0) : B.rtcConfig = { iceServers: M } : B = { disableTrickleICE: S.getDisableTrickle(), rtcConfig: { iceServers: M } }, [4, (0, m.newPeerConnectionForClient)(B !== void 0 && B.disableTrickleICE, B?.rtcConfig, B?.additionalSdpFields)];
|
|
20678
20678
|
case 2:
|
|
20679
|
-
|
|
20679
|
+
E = J.sent(), F = E.pc, P = E.dc, O = !1, J.label = 3;
|
|
20680
20680
|
case 3:
|
|
20681
20681
|
return J.trys.push([3, , 10, 11]), C = T, T && (C = s.__assign({}, T), T.accessToken || (C.authEntity = (D = T?.webrtcOptions) === null || D === void 0 ? void 0 : D.signalingAuthEntity, C.authEntity || (C.externalAuthAddress ? C.authEntity = (z = T.externalAuthAddress) === null || z === void 0 ? void 0 : z.replace(/^(.*:\/\/)/, "") : C.authEntity = R.replace(/^(.*:\/\/)/, "")), C.credentials = (j = T?.webrtcOptions) === null || j === void 0 ? void 0 : j.signalingCredentials, C.accessToken = (L = T?.webrtcOptions) === null || L === void 0 ? void 0 : L.signalingAccessToken), C.externalAuthAddress = (x = T?.webrtcOptions) === null || x === void 0 ? void 0 : x.signalingExternalAuthAddress, C.externalAuthToEntity = (I = T?.webrtcOptions) === null || I === void 0 ? void 0 : I.signalingExternalAuthToEntity), [4, v(R, C)];
|
|
20682
20682
|
case 4:
|
|
@@ -20702,7 +20702,7 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
|
|
|
20702
20702
|
}
|
|
20703
20703
|
}, le = new Promise(function(q) {
|
|
20704
20704
|
oe = q;
|
|
20705
|
-
}), re = !1,
|
|
20705
|
+
}), re = !1, B?.disableTrickleICE ? [3, 7] : [4, F.createOffer()];
|
|
20706
20706
|
case 5:
|
|
20707
20707
|
return ge = J.sent(), ae = !1, F.onicecandidate = function(q) {
|
|
20708
20708
|
return s.__awaiter(me, void 0, void 0, function() {
|
|
@@ -20732,7 +20732,7 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
|
|
|
20732
20732
|
case 0:
|
|
20733
20733
|
return (N = q).hasInit() ? ie ? (H("got init stage more than once"), [2]) : ($ = N.getInit(), ie = !0, _ = N.getUuid(), K = new RTCSessionDescription(JSON.parse(atob($.getSdp()))), [4, F.setRemoteDescription(K)]) : [3, 2];
|
|
20734
20734
|
case 1:
|
|
20735
|
-
return ee.sent(), oe(!0),
|
|
20735
|
+
return ee.sent(), oe(!0), B?.disableTrickleICE ? (re = !0, Y(), [2]) : [3, 8];
|
|
20736
20736
|
case 2:
|
|
20737
20737
|
if (!N.hasUpdate())
|
|
20738
20738
|
return [3, 7];
|
|
@@ -20761,7 +20761,7 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
|
|
|
20761
20761
|
pe = q, ne = N;
|
|
20762
20762
|
}), W.onEnd(function(q, N, $) {
|
|
20763
20763
|
q !== l.grpc.Code.OK ? N !== "Response closed without headers" ? (console.error(N), ne(N)) : ne(new p.ConnectionClosedError("failed to dial")) : pe();
|
|
20764
|
-
}), W.start({ "rpc-host": w }), se = new c.CallRequest(), de = (0, m.addSdpFields)(F.localDescription, (U = T.webrtcOptions) === null || U === void 0 ? void 0 : U.additionalSdpFields), ve = btoa(JSON.stringify(de)), se.setSdp(ve),
|
|
20764
|
+
}), W.start({ "rpc-host": w }), se = new c.CallRequest(), de = (0, m.addSdpFields)(F.localDescription, (U = T.webrtcOptions) === null || U === void 0 ? void 0 : U.additionalSdpFields), ve = btoa(JSON.stringify(de)), se.setSdp(ve), B && B.disableTrickleICE && se.setDisableTrickle(B.disableTrickleICE), W.send(se), (ue = new g.ClientChannel(F, P)).ready.then(function() {
|
|
20765
20765
|
return pe();
|
|
20766
20766
|
}).catch(function(q) {
|
|
20767
20767
|
return ne(q);
|
|
@@ -20882,85 +20882,85 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
|
|
|
20882
20882
|
}, 655: (i, e, n) => {
|
|
20883
20883
|
n.r(e), n.d(e, { __assign: () => g, __asyncDelegator: () => T, __asyncGenerator: () => w, __asyncValues: () => D, __await: () => R, __awaiter: () => u, __classPrivateFieldGet: () => I, __classPrivateFieldIn: () => k, __classPrivateFieldSet: () => U, __createBinding: () => d, __decorate: () => t, __exportStar: () => m, __extends: () => l, __generator: () => c, __importDefault: () => x, __importStar: () => L, __makeTemplateObject: () => z, __metadata: () => r, __param: () => o, __read: () => f, __rest: () => p, __spread: () => y, __spreadArray: () => h, __spreadArrays: () => b, __values: () => v });
|
|
20884
20884
|
var s = function(S, M) {
|
|
20885
|
-
return s = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(
|
|
20886
|
-
|
|
20887
|
-
} || function(
|
|
20888
|
-
for (var F in
|
|
20889
|
-
Object.prototype.hasOwnProperty.call(
|
|
20885
|
+
return s = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(B, E) {
|
|
20886
|
+
B.__proto__ = E;
|
|
20887
|
+
} || function(B, E) {
|
|
20888
|
+
for (var F in E)
|
|
20889
|
+
Object.prototype.hasOwnProperty.call(E, F) && (B[F] = E[F]);
|
|
20890
20890
|
}, s(S, M);
|
|
20891
20891
|
};
|
|
20892
20892
|
function l(S, M) {
|
|
20893
20893
|
if (typeof M != "function" && M !== null)
|
|
20894
20894
|
throw new TypeError("Class extends value " + String(M) + " is not a constructor or null");
|
|
20895
|
-
function
|
|
20895
|
+
function B() {
|
|
20896
20896
|
this.constructor = S;
|
|
20897
20897
|
}
|
|
20898
|
-
s(S, M), S.prototype = M === null ? Object.create(M) : (
|
|
20898
|
+
s(S, M), S.prototype = M === null ? Object.create(M) : (B.prototype = M.prototype, new B());
|
|
20899
20899
|
}
|
|
20900
20900
|
var g = function() {
|
|
20901
20901
|
return g = Object.assign || function(S) {
|
|
20902
|
-
for (var M,
|
|
20903
|
-
for (var F in M = arguments[
|
|
20902
|
+
for (var M, B = 1, E = arguments.length; B < E; B++)
|
|
20903
|
+
for (var F in M = arguments[B])
|
|
20904
20904
|
Object.prototype.hasOwnProperty.call(M, F) && (S[F] = M[F]);
|
|
20905
20905
|
return S;
|
|
20906
20906
|
}, g.apply(this, arguments);
|
|
20907
20907
|
};
|
|
20908
20908
|
function p(S, M) {
|
|
20909
|
-
var
|
|
20910
|
-
for (var
|
|
20911
|
-
Object.prototype.hasOwnProperty.call(S,
|
|
20909
|
+
var B = {};
|
|
20910
|
+
for (var E in S)
|
|
20911
|
+
Object.prototype.hasOwnProperty.call(S, E) && M.indexOf(E) < 0 && (B[E] = S[E]);
|
|
20912
20912
|
if (S != null && typeof Object.getOwnPropertySymbols == "function") {
|
|
20913
20913
|
var F = 0;
|
|
20914
|
-
for (
|
|
20915
|
-
M.indexOf(
|
|
20914
|
+
for (E = Object.getOwnPropertySymbols(S); F < E.length; F++)
|
|
20915
|
+
M.indexOf(E[F]) < 0 && Object.prototype.propertyIsEnumerable.call(S, E[F]) && (B[E[F]] = S[E[F]]);
|
|
20916
20916
|
}
|
|
20917
|
-
return
|
|
20917
|
+
return B;
|
|
20918
20918
|
}
|
|
20919
|
-
function t(S, M,
|
|
20920
|
-
var F, P = arguments.length, O = P < 3 ? M :
|
|
20919
|
+
function t(S, M, B, E) {
|
|
20920
|
+
var F, P = arguments.length, O = P < 3 ? M : E === null ? E = Object.getOwnPropertyDescriptor(M, B) : E;
|
|
20921
20921
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
20922
|
-
O = Reflect.decorate(S, M,
|
|
20922
|
+
O = Reflect.decorate(S, M, B, E);
|
|
20923
20923
|
else
|
|
20924
20924
|
for (var C = S.length - 1; C >= 0; C--)
|
|
20925
|
-
(F = S[C]) && (O = (P < 3 ? F(O) : P > 3 ? F(M,
|
|
20926
|
-
return P > 3 && O && Object.defineProperty(M,
|
|
20925
|
+
(F = S[C]) && (O = (P < 3 ? F(O) : P > 3 ? F(M, B, O) : F(M, B)) || O);
|
|
20926
|
+
return P > 3 && O && Object.defineProperty(M, B, O), O;
|
|
20927
20927
|
}
|
|
20928
20928
|
function o(S, M) {
|
|
20929
|
-
return function(
|
|
20930
|
-
M(
|
|
20929
|
+
return function(B, E) {
|
|
20930
|
+
M(B, E, S);
|
|
20931
20931
|
};
|
|
20932
20932
|
}
|
|
20933
20933
|
function r(S, M) {
|
|
20934
20934
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
|
|
20935
20935
|
return Reflect.metadata(S, M);
|
|
20936
20936
|
}
|
|
20937
|
-
function u(S, M,
|
|
20938
|
-
return new (
|
|
20937
|
+
function u(S, M, B, E) {
|
|
20938
|
+
return new (B || (B = Promise))(function(F, P) {
|
|
20939
20939
|
function O(W) {
|
|
20940
20940
|
try {
|
|
20941
|
-
A(
|
|
20941
|
+
A(E.next(W));
|
|
20942
20942
|
} catch (_) {
|
|
20943
20943
|
P(_);
|
|
20944
20944
|
}
|
|
20945
20945
|
}
|
|
20946
20946
|
function C(W) {
|
|
20947
20947
|
try {
|
|
20948
|
-
A(
|
|
20948
|
+
A(E.throw(W));
|
|
20949
20949
|
} catch (_) {
|
|
20950
20950
|
P(_);
|
|
20951
20951
|
}
|
|
20952
20952
|
}
|
|
20953
20953
|
function A(W) {
|
|
20954
20954
|
var _;
|
|
20955
|
-
W.done ? F(W.value) : (_ = W.value, _ instanceof
|
|
20955
|
+
W.done ? F(W.value) : (_ = W.value, _ instanceof B ? _ : new B(function(G) {
|
|
20956
20956
|
G(_);
|
|
20957
20957
|
})).then(O, C);
|
|
20958
20958
|
}
|
|
20959
|
-
A((
|
|
20959
|
+
A((E = E.apply(S, M || [])).next());
|
|
20960
20960
|
});
|
|
20961
20961
|
}
|
|
20962
20962
|
function c(S, M) {
|
|
20963
|
-
var
|
|
20963
|
+
var B, E, F, P, O = { label: 0, sent: function() {
|
|
20964
20964
|
if (1 & F[0])
|
|
20965
20965
|
throw F[1];
|
|
20966
20966
|
return F[1];
|
|
@@ -20971,13 +20971,13 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
|
|
|
20971
20971
|
function C(A) {
|
|
20972
20972
|
return function(W) {
|
|
20973
20973
|
return function(_) {
|
|
20974
|
-
if (
|
|
20974
|
+
if (B)
|
|
20975
20975
|
throw new TypeError("Generator is already executing.");
|
|
20976
20976
|
for (; P && (P = 0, _[0] && (O = 0)), O; )
|
|
20977
20977
|
try {
|
|
20978
|
-
if (
|
|
20978
|
+
if (B = 1, E && (F = 2 & _[0] ? E.return : _[0] ? E.throw || ((F = E.return) && F.call(E), 0) : E.next) && !(F = F.call(E, _[1])).done)
|
|
20979
20979
|
return F;
|
|
20980
|
-
switch (
|
|
20980
|
+
switch (E = 0, F && (_ = [2 & _[0], F.value]), _[0]) {
|
|
20981
20981
|
case 0:
|
|
20982
20982
|
case 1:
|
|
20983
20983
|
F = _;
|
|
@@ -20985,7 +20985,7 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
|
|
|
20985
20985
|
case 4:
|
|
20986
20986
|
return O.label++, { value: _[1], done: !1 };
|
|
20987
20987
|
case 5:
|
|
20988
|
-
O.label++,
|
|
20988
|
+
O.label++, E = _[1], _ = [0];
|
|
20989
20989
|
continue;
|
|
20990
20990
|
case 7:
|
|
20991
20991
|
_ = O.ops.pop(), O.trys.pop();
|
|
@@ -21012,9 +21012,9 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
|
|
|
21012
21012
|
}
|
|
21013
21013
|
_ = M.call(S, O);
|
|
21014
21014
|
} catch (G) {
|
|
21015
|
-
_ = [6, G],
|
|
21015
|
+
_ = [6, G], E = 0;
|
|
21016
21016
|
} finally {
|
|
21017
|
-
|
|
21017
|
+
B = F = 0;
|
|
21018
21018
|
}
|
|
21019
21019
|
if (5 & _[0])
|
|
21020
21020
|
throw _[1];
|
|
@@ -21023,42 +21023,42 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
|
|
|
21023
21023
|
};
|
|
21024
21024
|
}
|
|
21025
21025
|
}
|
|
21026
|
-
var d = Object.create ? function(S, M,
|
|
21027
|
-
|
|
21028
|
-
var F = Object.getOwnPropertyDescriptor(M,
|
|
21026
|
+
var d = Object.create ? function(S, M, B, E) {
|
|
21027
|
+
E === void 0 && (E = B);
|
|
21028
|
+
var F = Object.getOwnPropertyDescriptor(M, B);
|
|
21029
21029
|
F && !("get" in F ? !M.__esModule : F.writable || F.configurable) || (F = { enumerable: !0, get: function() {
|
|
21030
|
-
return M[
|
|
21031
|
-
} }), Object.defineProperty(S,
|
|
21032
|
-
} : function(S, M,
|
|
21033
|
-
|
|
21030
|
+
return M[B];
|
|
21031
|
+
} }), Object.defineProperty(S, E, F);
|
|
21032
|
+
} : function(S, M, B, E) {
|
|
21033
|
+
E === void 0 && (E = B), S[E] = M[B];
|
|
21034
21034
|
};
|
|
21035
21035
|
function m(S, M) {
|
|
21036
|
-
for (var
|
|
21037
|
-
|
|
21036
|
+
for (var B in S)
|
|
21037
|
+
B === "default" || Object.prototype.hasOwnProperty.call(M, B) || d(M, S, B);
|
|
21038
21038
|
}
|
|
21039
21039
|
function v(S) {
|
|
21040
|
-
var M = typeof Symbol == "function" && Symbol.iterator,
|
|
21041
|
-
if (
|
|
21042
|
-
return
|
|
21040
|
+
var M = typeof Symbol == "function" && Symbol.iterator, B = M && S[M], E = 0;
|
|
21041
|
+
if (B)
|
|
21042
|
+
return B.call(S);
|
|
21043
21043
|
if (S && typeof S.length == "number")
|
|
21044
21044
|
return { next: function() {
|
|
21045
|
-
return S &&
|
|
21045
|
+
return S && E >= S.length && (S = void 0), { value: S && S[E++], done: !S };
|
|
21046
21046
|
} };
|
|
21047
21047
|
throw new TypeError(M ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
21048
21048
|
}
|
|
21049
21049
|
function f(S, M) {
|
|
21050
|
-
var
|
|
21051
|
-
if (!
|
|
21050
|
+
var B = typeof Symbol == "function" && S[Symbol.iterator];
|
|
21051
|
+
if (!B)
|
|
21052
21052
|
return S;
|
|
21053
|
-
var
|
|
21053
|
+
var E, F, P = B.call(S), O = [];
|
|
21054
21054
|
try {
|
|
21055
|
-
for (; (M === void 0 || M-- > 0) && !(
|
|
21056
|
-
O.push(
|
|
21055
|
+
for (; (M === void 0 || M-- > 0) && !(E = P.next()).done; )
|
|
21056
|
+
O.push(E.value);
|
|
21057
21057
|
} catch (C) {
|
|
21058
21058
|
F = { error: C };
|
|
21059
21059
|
} finally {
|
|
21060
21060
|
try {
|
|
21061
|
-
|
|
21061
|
+
E && !E.done && (B = P.return) && B.call(P);
|
|
21062
21062
|
} finally {
|
|
21063
21063
|
if (F)
|
|
21064
21064
|
throw F.error;
|
|
@@ -21072,32 +21072,32 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
|
|
|
21072
21072
|
return S;
|
|
21073
21073
|
}
|
|
21074
21074
|
function b() {
|
|
21075
|
-
for (var S = 0, M = 0,
|
|
21075
|
+
for (var S = 0, M = 0, B = arguments.length; M < B; M++)
|
|
21076
21076
|
S += arguments[M].length;
|
|
21077
|
-
var
|
|
21078
|
-
for (M = 0; M <
|
|
21077
|
+
var E = Array(S), F = 0;
|
|
21078
|
+
for (M = 0; M < B; M++)
|
|
21079
21079
|
for (var P = arguments[M], O = 0, C = P.length; O < C; O++, F++)
|
|
21080
|
-
|
|
21081
|
-
return
|
|
21080
|
+
E[F] = P[O];
|
|
21081
|
+
return E;
|
|
21082
21082
|
}
|
|
21083
|
-
function h(S, M,
|
|
21084
|
-
if (
|
|
21085
|
-
for (var
|
|
21086
|
-
!
|
|
21087
|
-
return S.concat(
|
|
21083
|
+
function h(S, M, B) {
|
|
21084
|
+
if (B || arguments.length === 2)
|
|
21085
|
+
for (var E, F = 0, P = M.length; F < P; F++)
|
|
21086
|
+
!E && F in M || (E || (E = Array.prototype.slice.call(M, 0, F)), E[F] = M[F]);
|
|
21087
|
+
return S.concat(E || Array.prototype.slice.call(M));
|
|
21088
21088
|
}
|
|
21089
21089
|
function R(S) {
|
|
21090
21090
|
return this instanceof R ? (this.v = S, this) : new R(S);
|
|
21091
21091
|
}
|
|
21092
|
-
function w(S, M,
|
|
21092
|
+
function w(S, M, B) {
|
|
21093
21093
|
if (!Symbol.asyncIterator)
|
|
21094
21094
|
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
21095
|
-
var
|
|
21096
|
-
return
|
|
21095
|
+
var E, F = B.apply(S, M || []), P = [];
|
|
21096
|
+
return E = {}, O("next"), O("throw"), O("return"), E[Symbol.asyncIterator] = function() {
|
|
21097
21097
|
return this;
|
|
21098
|
-
},
|
|
21098
|
+
}, E;
|
|
21099
21099
|
function O(G) {
|
|
21100
|
-
F[G] && (
|
|
21100
|
+
F[G] && (E[G] = function(H) {
|
|
21101
21101
|
return new Promise(function(Y, oe) {
|
|
21102
21102
|
P.push([G, H, Y, oe]) > 1 || C(G, H);
|
|
21103
21103
|
});
|
|
@@ -21122,26 +21122,26 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
|
|
|
21122
21122
|
}
|
|
21123
21123
|
}
|
|
21124
21124
|
function T(S) {
|
|
21125
|
-
var M,
|
|
21126
|
-
return M = {},
|
|
21125
|
+
var M, B;
|
|
21126
|
+
return M = {}, E("next"), E("throw", function(F) {
|
|
21127
21127
|
throw F;
|
|
21128
|
-
}),
|
|
21128
|
+
}), E("return"), M[Symbol.iterator] = function() {
|
|
21129
21129
|
return this;
|
|
21130
21130
|
}, M;
|
|
21131
|
-
function
|
|
21131
|
+
function E(F, P) {
|
|
21132
21132
|
M[F] = S[F] ? function(O) {
|
|
21133
|
-
return (
|
|
21133
|
+
return (B = !B) ? { value: R(S[F](O)), done: F === "return" } : P ? P(O) : O;
|
|
21134
21134
|
} : P;
|
|
21135
21135
|
}
|
|
21136
21136
|
}
|
|
21137
21137
|
function D(S) {
|
|
21138
21138
|
if (!Symbol.asyncIterator)
|
|
21139
21139
|
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
21140
|
-
var M,
|
|
21141
|
-
return
|
|
21140
|
+
var M, B = S[Symbol.asyncIterator];
|
|
21141
|
+
return B ? B.call(S) : (S = v(S), M = {}, E("next"), E("throw"), E("return"), M[Symbol.asyncIterator] = function() {
|
|
21142
21142
|
return this;
|
|
21143
21143
|
}, M);
|
|
21144
|
-
function
|
|
21144
|
+
function E(F) {
|
|
21145
21145
|
M[F] = S[F] && function(P) {
|
|
21146
21146
|
return new Promise(function(O, C) {
|
|
21147
21147
|
(function(A, W, _, G) {
|
|
@@ -21166,28 +21166,28 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
|
|
|
21166
21166
|
return S;
|
|
21167
21167
|
var M = {};
|
|
21168
21168
|
if (S != null)
|
|
21169
|
-
for (var
|
|
21170
|
-
|
|
21169
|
+
for (var B in S)
|
|
21170
|
+
B !== "default" && Object.prototype.hasOwnProperty.call(S, B) && d(M, S, B);
|
|
21171
21171
|
return j(M, S), M;
|
|
21172
21172
|
}
|
|
21173
21173
|
function x(S) {
|
|
21174
21174
|
return S && S.__esModule ? S : { default: S };
|
|
21175
21175
|
}
|
|
21176
|
-
function I(S, M,
|
|
21177
|
-
if (
|
|
21176
|
+
function I(S, M, B, E) {
|
|
21177
|
+
if (B === "a" && !E)
|
|
21178
21178
|
throw new TypeError("Private accessor was defined without a getter");
|
|
21179
|
-
if (typeof M == "function" ? S !== M || !
|
|
21179
|
+
if (typeof M == "function" ? S !== M || !E : !M.has(S))
|
|
21180
21180
|
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
21181
|
-
return
|
|
21181
|
+
return B === "m" ? E : B === "a" ? E.call(S) : E ? E.value : M.get(S);
|
|
21182
21182
|
}
|
|
21183
|
-
function U(S, M,
|
|
21184
|
-
if (
|
|
21183
|
+
function U(S, M, B, E, F) {
|
|
21184
|
+
if (E === "m")
|
|
21185
21185
|
throw new TypeError("Private method is not writable");
|
|
21186
|
-
if (
|
|
21186
|
+
if (E === "a" && !F)
|
|
21187
21187
|
throw new TypeError("Private accessor was defined without a setter");
|
|
21188
21188
|
if (typeof M == "function" ? S !== M || !F : !M.has(S))
|
|
21189
21189
|
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
21190
|
-
return
|
|
21190
|
+
return E === "a" ? F.call(S, B) : F ? F.value = B : M.set(S, B), B;
|
|
21191
21191
|
}
|
|
21192
21192
|
function k(S, M) {
|
|
21193
21193
|
if (M === null || typeof M != "object" && typeof M != "function")
|
|
@@ -47404,7 +47404,7 @@ var data_pb = {};
|
|
|
47404
47404
|
var g = struct_pb;
|
|
47405
47405
|
n.object.extend(proto, g);
|
|
47406
47406
|
var p = timestamp_pb;
|
|
47407
|
-
n.object.extend(proto, p), n.exportSymbol("proto.viam.app.data.v1.AddBinaryDataToDatasetByIDsRequest", null, s), n.exportSymbol("proto.viam.app.data.v1.AddBinaryDataToDatasetByIDsResponse", null, s), n.exportSymbol("proto.viam.app.data.v1.AddBoundingBoxToImageByIDRequest", null, s), n.exportSymbol("proto.viam.app.data.v1.AddBoundingBoxToImageByIDResponse", null, s), n.exportSymbol("proto.viam.app.data.v1.AddTagsToBinaryDataByFilterRequest", null, s), n.exportSymbol("proto.viam.app.data.v1.AddTagsToBinaryDataByFilterResponse", null, s), n.exportSymbol("proto.viam.app.data.v1.AddTagsToBinaryDataByIDsRequest", null, s), n.exportSymbol("proto.viam.app.data.v1.AddTagsToBinaryDataByIDsResponse", null, s), n.exportSymbol("proto.viam.app.data.v1.Annotations", null, s), n.exportSymbol("proto.viam.app.data.v1.BinaryData", null, s), n.exportSymbol("proto.viam.app.data.v1.BinaryDataByFilterRequest", null, s), n.exportSymbol("proto.viam.app.data.v1.BinaryDataByFilterResponse", null, s), n.exportSymbol("proto.viam.app.data.v1.BinaryDataByIDsRequest", null, s), n.exportSymbol("proto.viam.app.data.v1.BinaryDataByIDsResponse", null, s), n.exportSymbol("proto.viam.app.data.v1.BinaryID", null, s), n.exportSymbol("proto.viam.app.data.v1.BinaryMetadata", null, s), n.exportSymbol("proto.viam.app.data.v1.BoundingBox", null, s), n.exportSymbol("proto.viam.app.data.v1.BoundingBoxLabelsByFilterRequest", null, s), n.exportSymbol("proto.viam.app.data.v1.BoundingBoxLabelsByFilterResponse", null, s), n.exportSymbol("proto.viam.app.data.v1.CaptureInterval", null, s), n.exportSymbol("proto.viam.app.data.v1.CaptureMetadata", null, s), n.exportSymbol("proto.viam.app.data.v1.ConfigureDatabaseUserRequest", null, s), n.exportSymbol("proto.viam.app.data.v1.ConfigureDatabaseUserResponse", null, s), n.exportSymbol("proto.viam.app.data.v1.DataRequest", null, s), n.exportSymbol("proto.viam.app.data.v1.DeleteBinaryDataByFilterRequest", null, s), n.exportSymbol("proto.viam.app.data.v1.DeleteBinaryDataByFilterResponse", null, s), n.exportSymbol("proto.viam.app.data.v1.DeleteBinaryDataByIDsRequest", null, s), n.exportSymbol("proto.viam.app.data.v1.DeleteBinaryDataByIDsResponse", null, s), n.exportSymbol("proto.viam.app.data.v1.DeleteTabularDataRequest", null, s), n.exportSymbol("proto.viam.app.data.v1.DeleteTabularDataResponse", null, s), n.exportSymbol("proto.viam.app.data.v1.Filter", null, s), n.exportSymbol("proto.viam.app.data.v1.GetDatabaseConnectionRequest", null, s), n.exportSymbol("proto.viam.app.data.v1.GetDatabaseConnectionResponse", null, s), n.exportSymbol("proto.viam.app.data.v1.Order", null, s), n.exportSymbol("proto.viam.app.data.v1.RemoveBinaryDataFromDatasetByIDsRequest", null, s), n.exportSymbol("proto.viam.app.data.v1.RemoveBinaryDataFromDatasetByIDsResponse", null, s), n.exportSymbol("proto.viam.app.data.v1.RemoveBoundingBoxFromImageByIDRequest", null, s), n.exportSymbol("proto.viam.app.data.v1.RemoveBoundingBoxFromImageByIDResponse", null, s), n.exportSymbol("proto.viam.app.data.v1.RemoveTagsFromBinaryDataByFilterRequest", null, s), n.exportSymbol("proto.viam.app.data.v1.RemoveTagsFromBinaryDataByFilterResponse", null, s), n.exportSymbol("proto.viam.app.data.v1.RemoveTagsFromBinaryDataByIDsRequest", null, s), n.exportSymbol("proto.viam.app.data.v1.RemoveTagsFromBinaryDataByIDsResponse", null, s), n.exportSymbol("proto.viam.app.data.v1.TabularData", null, s), n.exportSymbol("proto.viam.app.data.v1.TabularDataByFilterRequest", null, s), n.exportSymbol("proto.viam.app.data.v1.TabularDataByFilterResponse", null, s), n.exportSymbol("proto.viam.app.data.v1.TagsByFilterRequest", null, s), n.exportSymbol("proto.viam.app.data.v1.TagsByFilterResponse", null, s), n.exportSymbol("proto.viam.app.data.v1.TagsFilter", null, s), n.exportSymbol("proto.viam.app.data.v1.TagsFilterType", null, s), proto.viam.app.data.v1.DataRequest = function(t) {
|
|
47407
|
+
n.object.extend(proto, p), n.exportSymbol("proto.viam.app.data.v1.AddBinaryDataToDatasetByIDsRequest", null, s), n.exportSymbol("proto.viam.app.data.v1.AddBinaryDataToDatasetByIDsResponse", null, s), n.exportSymbol("proto.viam.app.data.v1.AddBoundingBoxToImageByIDRequest", null, s), n.exportSymbol("proto.viam.app.data.v1.AddBoundingBoxToImageByIDResponse", null, s), n.exportSymbol("proto.viam.app.data.v1.AddTagsToBinaryDataByFilterRequest", null, s), n.exportSymbol("proto.viam.app.data.v1.AddTagsToBinaryDataByFilterResponse", null, s), n.exportSymbol("proto.viam.app.data.v1.AddTagsToBinaryDataByIDsRequest", null, s), n.exportSymbol("proto.viam.app.data.v1.AddTagsToBinaryDataByIDsResponse", null, s), n.exportSymbol("proto.viam.app.data.v1.Annotations", null, s), n.exportSymbol("proto.viam.app.data.v1.BinaryData", null, s), n.exportSymbol("proto.viam.app.data.v1.BinaryDataByFilterRequest", null, s), n.exportSymbol("proto.viam.app.data.v1.BinaryDataByFilterResponse", null, s), n.exportSymbol("proto.viam.app.data.v1.BinaryDataByIDsRequest", null, s), n.exportSymbol("proto.viam.app.data.v1.BinaryDataByIDsResponse", null, s), n.exportSymbol("proto.viam.app.data.v1.BinaryID", null, s), n.exportSymbol("proto.viam.app.data.v1.BinaryMetadata", null, s), n.exportSymbol("proto.viam.app.data.v1.BoundingBox", null, s), n.exportSymbol("proto.viam.app.data.v1.BoundingBoxLabelsByFilterRequest", null, s), n.exportSymbol("proto.viam.app.data.v1.BoundingBoxLabelsByFilterResponse", null, s), n.exportSymbol("proto.viam.app.data.v1.CaptureInterval", null, s), n.exportSymbol("proto.viam.app.data.v1.CaptureMetadata", null, s), n.exportSymbol("proto.viam.app.data.v1.ConfigureDatabaseUserRequest", null, s), n.exportSymbol("proto.viam.app.data.v1.ConfigureDatabaseUserResponse", null, s), n.exportSymbol("proto.viam.app.data.v1.DataRequest", null, s), n.exportSymbol("proto.viam.app.data.v1.DeleteBinaryDataByFilterRequest", null, s), n.exportSymbol("proto.viam.app.data.v1.DeleteBinaryDataByFilterResponse", null, s), n.exportSymbol("proto.viam.app.data.v1.DeleteBinaryDataByIDsRequest", null, s), n.exportSymbol("proto.viam.app.data.v1.DeleteBinaryDataByIDsResponse", null, s), n.exportSymbol("proto.viam.app.data.v1.DeleteTabularDataRequest", null, s), n.exportSymbol("proto.viam.app.data.v1.DeleteTabularDataResponse", null, s), n.exportSymbol("proto.viam.app.data.v1.Filter", null, s), n.exportSymbol("proto.viam.app.data.v1.GetDatabaseConnectionRequest", null, s), n.exportSymbol("proto.viam.app.data.v1.GetDatabaseConnectionResponse", null, s), n.exportSymbol("proto.viam.app.data.v1.Order", null, s), n.exportSymbol("proto.viam.app.data.v1.RemoveBinaryDataFromDatasetByIDsRequest", null, s), n.exportSymbol("proto.viam.app.data.v1.RemoveBinaryDataFromDatasetByIDsResponse", null, s), n.exportSymbol("proto.viam.app.data.v1.RemoveBoundingBoxFromImageByIDRequest", null, s), n.exportSymbol("proto.viam.app.data.v1.RemoveBoundingBoxFromImageByIDResponse", null, s), n.exportSymbol("proto.viam.app.data.v1.RemoveTagsFromBinaryDataByFilterRequest", null, s), n.exportSymbol("proto.viam.app.data.v1.RemoveTagsFromBinaryDataByFilterResponse", null, s), n.exportSymbol("proto.viam.app.data.v1.RemoveTagsFromBinaryDataByIDsRequest", null, s), n.exportSymbol("proto.viam.app.data.v1.RemoveTagsFromBinaryDataByIDsResponse", null, s), n.exportSymbol("proto.viam.app.data.v1.TabularData", null, s), n.exportSymbol("proto.viam.app.data.v1.TabularDataByFilterRequest", null, s), n.exportSymbol("proto.viam.app.data.v1.TabularDataByFilterResponse", null, s), n.exportSymbol("proto.viam.app.data.v1.TabularDataByMQLRequest", null, s), n.exportSymbol("proto.viam.app.data.v1.TabularDataByMQLResponse", null, s), n.exportSymbol("proto.viam.app.data.v1.TabularDataBySQLRequest", null, s), n.exportSymbol("proto.viam.app.data.v1.TabularDataBySQLResponse", null, s), n.exportSymbol("proto.viam.app.data.v1.TagsByFilterRequest", null, s), n.exportSymbol("proto.viam.app.data.v1.TagsByFilterResponse", null, s), n.exportSymbol("proto.viam.app.data.v1.TagsFilter", null, s), n.exportSymbol("proto.viam.app.data.v1.TagsFilterType", null, s), proto.viam.app.data.v1.DataRequest = function(t) {
|
|
47408
47408
|
e.Message.initialize(this, t, 0, -1, null, null);
|
|
47409
47409
|
}, n.inherits(proto.viam.app.data.v1.DataRequest, e.Message), n.DEBUG && !COMPILED && (proto.viam.app.data.v1.DataRequest.displayName = "proto.viam.app.data.v1.DataRequest"), proto.viam.app.data.v1.Filter = function(t) {
|
|
47410
47410
|
e.Message.initialize(this, t, 0, -1, proto.viam.app.data.v1.Filter.repeatedFields_, null);
|
|
@@ -47420,7 +47420,15 @@ var data_pb = {};
|
|
|
47420
47420
|
e.Message.initialize(this, t, 0, -1, proto.viam.app.data.v1.TabularDataByFilterResponse.repeatedFields_, null);
|
|
47421
47421
|
}, n.inherits(proto.viam.app.data.v1.TabularDataByFilterResponse, e.Message), n.DEBUG && !COMPILED && (proto.viam.app.data.v1.TabularDataByFilterResponse.displayName = "proto.viam.app.data.v1.TabularDataByFilterResponse"), proto.viam.app.data.v1.TabularData = function(t) {
|
|
47422
47422
|
e.Message.initialize(this, t, 0, -1, null, null);
|
|
47423
|
-
}, n.inherits(proto.viam.app.data.v1.TabularData, e.Message), n.DEBUG && !COMPILED && (proto.viam.app.data.v1.TabularData.displayName = "proto.viam.app.data.v1.TabularData"), proto.viam.app.data.v1.
|
|
47423
|
+
}, n.inherits(proto.viam.app.data.v1.TabularData, e.Message), n.DEBUG && !COMPILED && (proto.viam.app.data.v1.TabularData.displayName = "proto.viam.app.data.v1.TabularData"), proto.viam.app.data.v1.TabularDataBySQLRequest = function(t) {
|
|
47424
|
+
e.Message.initialize(this, t, 0, -1, null, null);
|
|
47425
|
+
}, n.inherits(proto.viam.app.data.v1.TabularDataBySQLRequest, e.Message), n.DEBUG && !COMPILED && (proto.viam.app.data.v1.TabularDataBySQLRequest.displayName = "proto.viam.app.data.v1.TabularDataBySQLRequest"), proto.viam.app.data.v1.TabularDataBySQLResponse = function(t) {
|
|
47426
|
+
e.Message.initialize(this, t, 0, -1, proto.viam.app.data.v1.TabularDataBySQLResponse.repeatedFields_, null);
|
|
47427
|
+
}, n.inherits(proto.viam.app.data.v1.TabularDataBySQLResponse, e.Message), n.DEBUG && !COMPILED && (proto.viam.app.data.v1.TabularDataBySQLResponse.displayName = "proto.viam.app.data.v1.TabularDataBySQLResponse"), proto.viam.app.data.v1.TabularDataByMQLRequest = function(t) {
|
|
47428
|
+
e.Message.initialize(this, t, 0, -1, null, null);
|
|
47429
|
+
}, n.inherits(proto.viam.app.data.v1.TabularDataByMQLRequest, e.Message), n.DEBUG && !COMPILED && (proto.viam.app.data.v1.TabularDataByMQLRequest.displayName = "proto.viam.app.data.v1.TabularDataByMQLRequest"), proto.viam.app.data.v1.TabularDataByMQLResponse = function(t) {
|
|
47430
|
+
e.Message.initialize(this, t, 0, -1, proto.viam.app.data.v1.TabularDataByMQLResponse.repeatedFields_, null);
|
|
47431
|
+
}, n.inherits(proto.viam.app.data.v1.TabularDataByMQLResponse, e.Message), n.DEBUG && !COMPILED && (proto.viam.app.data.v1.TabularDataByMQLResponse.displayName = "proto.viam.app.data.v1.TabularDataByMQLResponse"), proto.viam.app.data.v1.BinaryData = function(t) {
|
|
47424
47432
|
e.Message.initialize(this, t, 0, -1, null, null);
|
|
47425
47433
|
}, n.inherits(proto.viam.app.data.v1.BinaryData, e.Message), n.DEBUG && !COMPILED && (proto.viam.app.data.v1.BinaryData.displayName = "proto.viam.app.data.v1.BinaryData"), proto.viam.app.data.v1.BinaryDataByFilterRequest = function(t) {
|
|
47426
47434
|
e.Message.initialize(this, t, 0, -1, null, null);
|
|
@@ -48581,6 +48589,226 @@ var data_pb = {};
|
|
|
48581
48589
|
return this.setTimeReceived(void 0);
|
|
48582
48590
|
}, proto.viam.app.data.v1.TabularData.prototype.hasTimeReceived = function() {
|
|
48583
48591
|
return e.Message.getField(this, 4) != null;
|
|
48592
|
+
}, e.Message.GENERATE_TO_OBJECT && (proto.viam.app.data.v1.TabularDataBySQLRequest.prototype.toObject = function(t) {
|
|
48593
|
+
return proto.viam.app.data.v1.TabularDataBySQLRequest.toObject(t, this);
|
|
48594
|
+
}, proto.viam.app.data.v1.TabularDataBySQLRequest.toObject = function(t, o) {
|
|
48595
|
+
var r = {
|
|
48596
|
+
organizationId: e.Message.getFieldWithDefault(o, 1, ""),
|
|
48597
|
+
sqlQuery: e.Message.getFieldWithDefault(o, 2, "")
|
|
48598
|
+
};
|
|
48599
|
+
return t && (r.$jspbMessageInstance = o), r;
|
|
48600
|
+
}), proto.viam.app.data.v1.TabularDataBySQLRequest.deserializeBinary = function(t) {
|
|
48601
|
+
var o = new e.BinaryReader(t), r = new proto.viam.app.data.v1.TabularDataBySQLRequest();
|
|
48602
|
+
return proto.viam.app.data.v1.TabularDataBySQLRequest.deserializeBinaryFromReader(r, o);
|
|
48603
|
+
}, proto.viam.app.data.v1.TabularDataBySQLRequest.deserializeBinaryFromReader = function(t, o) {
|
|
48604
|
+
for (; o.nextField() && !o.isEndGroup(); ) {
|
|
48605
|
+
var r = o.getFieldNumber();
|
|
48606
|
+
switch (r) {
|
|
48607
|
+
case 1:
|
|
48608
|
+
var u = (
|
|
48609
|
+
/** @type {string} */
|
|
48610
|
+
o.readString()
|
|
48611
|
+
);
|
|
48612
|
+
t.setOrganizationId(u);
|
|
48613
|
+
break;
|
|
48614
|
+
case 2:
|
|
48615
|
+
var u = (
|
|
48616
|
+
/** @type {string} */
|
|
48617
|
+
o.readString()
|
|
48618
|
+
);
|
|
48619
|
+
t.setSqlQuery(u);
|
|
48620
|
+
break;
|
|
48621
|
+
default:
|
|
48622
|
+
o.skipField();
|
|
48623
|
+
break;
|
|
48624
|
+
}
|
|
48625
|
+
}
|
|
48626
|
+
return t;
|
|
48627
|
+
}, proto.viam.app.data.v1.TabularDataBySQLRequest.prototype.serializeBinary = function() {
|
|
48628
|
+
var t = new e.BinaryWriter();
|
|
48629
|
+
return proto.viam.app.data.v1.TabularDataBySQLRequest.serializeBinaryToWriter(this, t), t.getResultBuffer();
|
|
48630
|
+
}, proto.viam.app.data.v1.TabularDataBySQLRequest.serializeBinaryToWriter = function(t, o) {
|
|
48631
|
+
var r = void 0;
|
|
48632
|
+
r = t.getOrganizationId(), r.length > 0 && o.writeString(
|
|
48633
|
+
1,
|
|
48634
|
+
r
|
|
48635
|
+
), r = t.getSqlQuery(), r.length > 0 && o.writeString(
|
|
48636
|
+
2,
|
|
48637
|
+
r
|
|
48638
|
+
);
|
|
48639
|
+
}, proto.viam.app.data.v1.TabularDataBySQLRequest.prototype.getOrganizationId = function() {
|
|
48640
|
+
return (
|
|
48641
|
+
/** @type {string} */
|
|
48642
|
+
e.Message.getFieldWithDefault(this, 1, "")
|
|
48643
|
+
);
|
|
48644
|
+
}, proto.viam.app.data.v1.TabularDataBySQLRequest.prototype.setOrganizationId = function(t) {
|
|
48645
|
+
return e.Message.setProto3StringField(this, 1, t);
|
|
48646
|
+
}, proto.viam.app.data.v1.TabularDataBySQLRequest.prototype.getSqlQuery = function() {
|
|
48647
|
+
return (
|
|
48648
|
+
/** @type {string} */
|
|
48649
|
+
e.Message.getFieldWithDefault(this, 2, "")
|
|
48650
|
+
);
|
|
48651
|
+
}, proto.viam.app.data.v1.TabularDataBySQLRequest.prototype.setSqlQuery = function(t) {
|
|
48652
|
+
return e.Message.setProto3StringField(this, 2, t);
|
|
48653
|
+
}, proto.viam.app.data.v1.TabularDataBySQLResponse.repeatedFields_ = [1], e.Message.GENERATE_TO_OBJECT && (proto.viam.app.data.v1.TabularDataBySQLResponse.prototype.toObject = function(t) {
|
|
48654
|
+
return proto.viam.app.data.v1.TabularDataBySQLResponse.toObject(t, this);
|
|
48655
|
+
}, proto.viam.app.data.v1.TabularDataBySQLResponse.toObject = function(t, o) {
|
|
48656
|
+
var r = {
|
|
48657
|
+
dataList: e.Message.toObjectList(
|
|
48658
|
+
o.getDataList(),
|
|
48659
|
+
g.Struct.toObject,
|
|
48660
|
+
t
|
|
48661
|
+
)
|
|
48662
|
+
};
|
|
48663
|
+
return t && (r.$jspbMessageInstance = o), r;
|
|
48664
|
+
}), proto.viam.app.data.v1.TabularDataBySQLResponse.deserializeBinary = function(t) {
|
|
48665
|
+
var o = new e.BinaryReader(t), r = new proto.viam.app.data.v1.TabularDataBySQLResponse();
|
|
48666
|
+
return proto.viam.app.data.v1.TabularDataBySQLResponse.deserializeBinaryFromReader(r, o);
|
|
48667
|
+
}, proto.viam.app.data.v1.TabularDataBySQLResponse.deserializeBinaryFromReader = function(t, o) {
|
|
48668
|
+
for (; o.nextField() && !o.isEndGroup(); ) {
|
|
48669
|
+
var r = o.getFieldNumber();
|
|
48670
|
+
switch (r) {
|
|
48671
|
+
case 1:
|
|
48672
|
+
var u = new g.Struct();
|
|
48673
|
+
o.readMessage(u, g.Struct.deserializeBinaryFromReader), t.addData(u);
|
|
48674
|
+
break;
|
|
48675
|
+
default:
|
|
48676
|
+
o.skipField();
|
|
48677
|
+
break;
|
|
48678
|
+
}
|
|
48679
|
+
}
|
|
48680
|
+
return t;
|
|
48681
|
+
}, proto.viam.app.data.v1.TabularDataBySQLResponse.prototype.serializeBinary = function() {
|
|
48682
|
+
var t = new e.BinaryWriter();
|
|
48683
|
+
return proto.viam.app.data.v1.TabularDataBySQLResponse.serializeBinaryToWriter(this, t), t.getResultBuffer();
|
|
48684
|
+
}, proto.viam.app.data.v1.TabularDataBySQLResponse.serializeBinaryToWriter = function(t, o) {
|
|
48685
|
+
var r = void 0;
|
|
48686
|
+
r = t.getDataList(), r.length > 0 && o.writeRepeatedMessage(
|
|
48687
|
+
1,
|
|
48688
|
+
r,
|
|
48689
|
+
g.Struct.serializeBinaryToWriter
|
|
48690
|
+
);
|
|
48691
|
+
}, proto.viam.app.data.v1.TabularDataBySQLResponse.prototype.getDataList = function() {
|
|
48692
|
+
return (
|
|
48693
|
+
/** @type{!Array<!proto.google.protobuf.Struct>} */
|
|
48694
|
+
e.Message.getRepeatedWrapperField(this, g.Struct, 1)
|
|
48695
|
+
);
|
|
48696
|
+
}, proto.viam.app.data.v1.TabularDataBySQLResponse.prototype.setDataList = function(t) {
|
|
48697
|
+
return e.Message.setRepeatedWrapperField(this, 1, t);
|
|
48698
|
+
}, proto.viam.app.data.v1.TabularDataBySQLResponse.prototype.addData = function(t, o) {
|
|
48699
|
+
return e.Message.addToRepeatedWrapperField(this, 1, t, proto.google.protobuf.Struct, o);
|
|
48700
|
+
}, proto.viam.app.data.v1.TabularDataBySQLResponse.prototype.clearDataList = function() {
|
|
48701
|
+
return this.setDataList([]);
|
|
48702
|
+
}, e.Message.GENERATE_TO_OBJECT && (proto.viam.app.data.v1.TabularDataByMQLRequest.prototype.toObject = function(t) {
|
|
48703
|
+
return proto.viam.app.data.v1.TabularDataByMQLRequest.toObject(t, this);
|
|
48704
|
+
}, proto.viam.app.data.v1.TabularDataByMQLRequest.toObject = function(t, o) {
|
|
48705
|
+
var r = {
|
|
48706
|
+
organizationId: e.Message.getFieldWithDefault(o, 1, ""),
|
|
48707
|
+
mqlQuery: e.Message.getFieldWithDefault(o, 2, "")
|
|
48708
|
+
};
|
|
48709
|
+
return t && (r.$jspbMessageInstance = o), r;
|
|
48710
|
+
}), proto.viam.app.data.v1.TabularDataByMQLRequest.deserializeBinary = function(t) {
|
|
48711
|
+
var o = new e.BinaryReader(t), r = new proto.viam.app.data.v1.TabularDataByMQLRequest();
|
|
48712
|
+
return proto.viam.app.data.v1.TabularDataByMQLRequest.deserializeBinaryFromReader(r, o);
|
|
48713
|
+
}, proto.viam.app.data.v1.TabularDataByMQLRequest.deserializeBinaryFromReader = function(t, o) {
|
|
48714
|
+
for (; o.nextField() && !o.isEndGroup(); ) {
|
|
48715
|
+
var r = o.getFieldNumber();
|
|
48716
|
+
switch (r) {
|
|
48717
|
+
case 1:
|
|
48718
|
+
var u = (
|
|
48719
|
+
/** @type {string} */
|
|
48720
|
+
o.readString()
|
|
48721
|
+
);
|
|
48722
|
+
t.setOrganizationId(u);
|
|
48723
|
+
break;
|
|
48724
|
+
case 2:
|
|
48725
|
+
var u = (
|
|
48726
|
+
/** @type {string} */
|
|
48727
|
+
o.readString()
|
|
48728
|
+
);
|
|
48729
|
+
t.setMqlQuery(u);
|
|
48730
|
+
break;
|
|
48731
|
+
default:
|
|
48732
|
+
o.skipField();
|
|
48733
|
+
break;
|
|
48734
|
+
}
|
|
48735
|
+
}
|
|
48736
|
+
return t;
|
|
48737
|
+
}, proto.viam.app.data.v1.TabularDataByMQLRequest.prototype.serializeBinary = function() {
|
|
48738
|
+
var t = new e.BinaryWriter();
|
|
48739
|
+
return proto.viam.app.data.v1.TabularDataByMQLRequest.serializeBinaryToWriter(this, t), t.getResultBuffer();
|
|
48740
|
+
}, proto.viam.app.data.v1.TabularDataByMQLRequest.serializeBinaryToWriter = function(t, o) {
|
|
48741
|
+
var r = void 0;
|
|
48742
|
+
r = t.getOrganizationId(), r.length > 0 && o.writeString(
|
|
48743
|
+
1,
|
|
48744
|
+
r
|
|
48745
|
+
), r = t.getMqlQuery(), r.length > 0 && o.writeString(
|
|
48746
|
+
2,
|
|
48747
|
+
r
|
|
48748
|
+
);
|
|
48749
|
+
}, proto.viam.app.data.v1.TabularDataByMQLRequest.prototype.getOrganizationId = function() {
|
|
48750
|
+
return (
|
|
48751
|
+
/** @type {string} */
|
|
48752
|
+
e.Message.getFieldWithDefault(this, 1, "")
|
|
48753
|
+
);
|
|
48754
|
+
}, proto.viam.app.data.v1.TabularDataByMQLRequest.prototype.setOrganizationId = function(t) {
|
|
48755
|
+
return e.Message.setProto3StringField(this, 1, t);
|
|
48756
|
+
}, proto.viam.app.data.v1.TabularDataByMQLRequest.prototype.getMqlQuery = function() {
|
|
48757
|
+
return (
|
|
48758
|
+
/** @type {string} */
|
|
48759
|
+
e.Message.getFieldWithDefault(this, 2, "")
|
|
48760
|
+
);
|
|
48761
|
+
}, proto.viam.app.data.v1.TabularDataByMQLRequest.prototype.setMqlQuery = function(t) {
|
|
48762
|
+
return e.Message.setProto3StringField(this, 2, t);
|
|
48763
|
+
}, proto.viam.app.data.v1.TabularDataByMQLResponse.repeatedFields_ = [1], e.Message.GENERATE_TO_OBJECT && (proto.viam.app.data.v1.TabularDataByMQLResponse.prototype.toObject = function(t) {
|
|
48764
|
+
return proto.viam.app.data.v1.TabularDataByMQLResponse.toObject(t, this);
|
|
48765
|
+
}, proto.viam.app.data.v1.TabularDataByMQLResponse.toObject = function(t, o) {
|
|
48766
|
+
var r = {
|
|
48767
|
+
dataList: e.Message.toObjectList(
|
|
48768
|
+
o.getDataList(),
|
|
48769
|
+
g.Struct.toObject,
|
|
48770
|
+
t
|
|
48771
|
+
)
|
|
48772
|
+
};
|
|
48773
|
+
return t && (r.$jspbMessageInstance = o), r;
|
|
48774
|
+
}), proto.viam.app.data.v1.TabularDataByMQLResponse.deserializeBinary = function(t) {
|
|
48775
|
+
var o = new e.BinaryReader(t), r = new proto.viam.app.data.v1.TabularDataByMQLResponse();
|
|
48776
|
+
return proto.viam.app.data.v1.TabularDataByMQLResponse.deserializeBinaryFromReader(r, o);
|
|
48777
|
+
}, proto.viam.app.data.v1.TabularDataByMQLResponse.deserializeBinaryFromReader = function(t, o) {
|
|
48778
|
+
for (; o.nextField() && !o.isEndGroup(); ) {
|
|
48779
|
+
var r = o.getFieldNumber();
|
|
48780
|
+
switch (r) {
|
|
48781
|
+
case 1:
|
|
48782
|
+
var u = new g.Struct();
|
|
48783
|
+
o.readMessage(u, g.Struct.deserializeBinaryFromReader), t.addData(u);
|
|
48784
|
+
break;
|
|
48785
|
+
default:
|
|
48786
|
+
o.skipField();
|
|
48787
|
+
break;
|
|
48788
|
+
}
|
|
48789
|
+
}
|
|
48790
|
+
return t;
|
|
48791
|
+
}, proto.viam.app.data.v1.TabularDataByMQLResponse.prototype.serializeBinary = function() {
|
|
48792
|
+
var t = new e.BinaryWriter();
|
|
48793
|
+
return proto.viam.app.data.v1.TabularDataByMQLResponse.serializeBinaryToWriter(this, t), t.getResultBuffer();
|
|
48794
|
+
}, proto.viam.app.data.v1.TabularDataByMQLResponse.serializeBinaryToWriter = function(t, o) {
|
|
48795
|
+
var r = void 0;
|
|
48796
|
+
r = t.getDataList(), r.length > 0 && o.writeRepeatedMessage(
|
|
48797
|
+
1,
|
|
48798
|
+
r,
|
|
48799
|
+
g.Struct.serializeBinaryToWriter
|
|
48800
|
+
);
|
|
48801
|
+
}, proto.viam.app.data.v1.TabularDataByMQLResponse.prototype.getDataList = function() {
|
|
48802
|
+
return (
|
|
48803
|
+
/** @type{!Array<!proto.google.protobuf.Struct>} */
|
|
48804
|
+
e.Message.getRepeatedWrapperField(this, g.Struct, 1)
|
|
48805
|
+
);
|
|
48806
|
+
}, proto.viam.app.data.v1.TabularDataByMQLResponse.prototype.setDataList = function(t) {
|
|
48807
|
+
return e.Message.setRepeatedWrapperField(this, 1, t);
|
|
48808
|
+
}, proto.viam.app.data.v1.TabularDataByMQLResponse.prototype.addData = function(t, o) {
|
|
48809
|
+
return e.Message.addToRepeatedWrapperField(this, 1, t, proto.google.protobuf.Struct, o);
|
|
48810
|
+
}, proto.viam.app.data.v1.TabularDataByMQLResponse.prototype.clearDataList = function() {
|
|
48811
|
+
return this.setDataList([]);
|
|
48584
48812
|
}, e.Message.GENERATE_TO_OBJECT && (proto.viam.app.data.v1.BinaryData.prototype.toObject = function(t) {
|
|
48585
48813
|
return proto.viam.app.data.v1.BinaryData.toObject(t, this);
|
|
48586
48814
|
}, proto.viam.app.data.v1.BinaryData.toObject = function(t, o) {
|
|
@@ -50980,6 +51208,22 @@ DataService.TabularDataByFilter = {
|
|
|
50980
51208
|
requestType: app_data_v1_data_pb.TabularDataByFilterRequest,
|
|
50981
51209
|
responseType: app_data_v1_data_pb.TabularDataByFilterResponse
|
|
50982
51210
|
};
|
|
51211
|
+
DataService.TabularDataBySQL = {
|
|
51212
|
+
methodName: "TabularDataBySQL",
|
|
51213
|
+
service: DataService,
|
|
51214
|
+
requestStream: !1,
|
|
51215
|
+
responseStream: !1,
|
|
51216
|
+
requestType: app_data_v1_data_pb.TabularDataBySQLRequest,
|
|
51217
|
+
responseType: app_data_v1_data_pb.TabularDataBySQLResponse
|
|
51218
|
+
};
|
|
51219
|
+
DataService.TabularDataByMQL = {
|
|
51220
|
+
methodName: "TabularDataByMQL",
|
|
51221
|
+
service: DataService,
|
|
51222
|
+
requestStream: !1,
|
|
51223
|
+
responseStream: !1,
|
|
51224
|
+
requestType: app_data_v1_data_pb.TabularDataByMQLRequest,
|
|
51225
|
+
responseType: app_data_v1_data_pb.TabularDataByMQLResponse
|
|
51226
|
+
};
|
|
50983
51227
|
DataService.BinaryDataByFilter = {
|
|
50984
51228
|
methodName: "BinaryDataByFilter",
|
|
50985
51229
|
service: DataService,
|
|
@@ -51142,6 +51386,52 @@ DataServiceClient.prototype.tabularDataByFilter = function i(e, n, s) {
|
|
|
51142
51386
|
}
|
|
51143
51387
|
};
|
|
51144
51388
|
};
|
|
51389
|
+
DataServiceClient.prototype.tabularDataBySQL = function i(e, n, s) {
|
|
51390
|
+
arguments.length === 2 && (s = arguments[1]);
|
|
51391
|
+
var l = grpc$4.unary(DataService.TabularDataBySQL, {
|
|
51392
|
+
request: e,
|
|
51393
|
+
host: this.serviceHost,
|
|
51394
|
+
metadata: n,
|
|
51395
|
+
transport: this.options.transport,
|
|
51396
|
+
debug: this.options.debug,
|
|
51397
|
+
onEnd: function(g) {
|
|
51398
|
+
if (s)
|
|
51399
|
+
if (g.status !== grpc$4.Code.OK) {
|
|
51400
|
+
var p = new Error(g.statusMessage);
|
|
51401
|
+
p.code = g.status, p.metadata = g.trailers, s(p, null);
|
|
51402
|
+
} else
|
|
51403
|
+
s(null, g.message);
|
|
51404
|
+
}
|
|
51405
|
+
});
|
|
51406
|
+
return {
|
|
51407
|
+
cancel: function() {
|
|
51408
|
+
s = null, l.close();
|
|
51409
|
+
}
|
|
51410
|
+
};
|
|
51411
|
+
};
|
|
51412
|
+
DataServiceClient.prototype.tabularDataByMQL = function i(e, n, s) {
|
|
51413
|
+
arguments.length === 2 && (s = arguments[1]);
|
|
51414
|
+
var l = grpc$4.unary(DataService.TabularDataByMQL, {
|
|
51415
|
+
request: e,
|
|
51416
|
+
host: this.serviceHost,
|
|
51417
|
+
metadata: n,
|
|
51418
|
+
transport: this.options.transport,
|
|
51419
|
+
debug: this.options.debug,
|
|
51420
|
+
onEnd: function(g) {
|
|
51421
|
+
if (s)
|
|
51422
|
+
if (g.status !== grpc$4.Code.OK) {
|
|
51423
|
+
var p = new Error(g.statusMessage);
|
|
51424
|
+
p.code = g.status, p.metadata = g.trailers, s(p, null);
|
|
51425
|
+
} else
|
|
51426
|
+
s(null, g.message);
|
|
51427
|
+
}
|
|
51428
|
+
});
|
|
51429
|
+
return {
|
|
51430
|
+
cancel: function() {
|
|
51431
|
+
s = null, l.close();
|
|
51432
|
+
}
|
|
51433
|
+
};
|
|
51434
|
+
};
|
|
51145
51435
|
DataServiceClient.prototype.binaryDataByFilter = function i(e, n, s) {
|
|
51146
51436
|
arguments.length === 2 && (s = arguments[1]);
|
|
51147
51437
|
var l = grpc$4.unary(DataService.BinaryDataByFilter, {
|
|
@@ -51539,6 +51829,28 @@ class DataClient {
|
|
|
51539
51829
|
constructor(e, n) {
|
|
51540
51830
|
this.service = new DataServiceClient_1(e, n);
|
|
51541
51831
|
}
|
|
51832
|
+
/**
|
|
51833
|
+
* Obtain unified tabular data and metadata, queried with SQL.
|
|
51834
|
+
*
|
|
51835
|
+
* @param organizationId The ID of the organization that owns the data
|
|
51836
|
+
* @param query The SQL query to run
|
|
51837
|
+
* @returns An array of data objects
|
|
51838
|
+
*/
|
|
51839
|
+
async tabularDataBySQL(e, n) {
|
|
51840
|
+
const { service: s } = this, l = new data_pb.TabularDataBySQLRequest();
|
|
51841
|
+
return l.setOrganizationId(e), l.setSqlQuery(n), (await promisify(s.tabularDataBySQL.bind(s), l)).getDataList().map((t) => t.toJavaScript());
|
|
51842
|
+
}
|
|
51843
|
+
/**
|
|
51844
|
+
* Obtain unified tabular data and metadata, queried with MQL.
|
|
51845
|
+
*
|
|
51846
|
+
* @param organizationId The ID of the organization that owns the data
|
|
51847
|
+
* @param query The MQL query to run
|
|
51848
|
+
* @returns An array of data objects
|
|
51849
|
+
*/
|
|
51850
|
+
async tabularDataByMQL(e, n) {
|
|
51851
|
+
const { service: s } = this, l = new data_pb.TabularDataByMQLRequest();
|
|
51852
|
+
return l.setOrganizationId(e), l.setMqlQuery(n), (await promisify(s.tabularDataByMQL.bind(s), l)).getDataList().map((t) => t.toJavaScript());
|
|
51853
|
+
}
|
|
51542
51854
|
/**
|
|
51543
51855
|
* Filter and download tabular data. The returned metadata might be empty if
|
|
51544
51856
|
* the metadata index of the data is out of the bounds of the returned
|
|
@@ -51556,7 +51868,7 @@ class DataClient {
|
|
|
51556
51868
|
const p = new data_pb.TabularDataByFilterRequest();
|
|
51557
51869
|
p.setDataRequest(g), p.setCountOnly(!1);
|
|
51558
51870
|
const t = await promisify(n.tabularDataByFilter.bind(n), p), o = t.getDataList();
|
|
51559
|
-
if (
|
|
51871
|
+
if (o.length === 0)
|
|
51560
51872
|
break;
|
|
51561
51873
|
const r = t.getMetadataList().length;
|
|
51562
51874
|
l.push(
|
|
@@ -51582,7 +51894,7 @@ class DataClient {
|
|
|
51582
51894
|
const p = new data_pb.BinaryDataByFilterRequest();
|
|
51583
51895
|
p.setDataRequest(g), p.setCountOnly(!1);
|
|
51584
51896
|
const t = await promisify(n.binaryDataByFilter.bind(n), p), o = t.getDataList();
|
|
51585
|
-
if (
|
|
51897
|
+
if (o.length === 0)
|
|
51586
51898
|
break;
|
|
51587
51899
|
l.push(...o.map((r) => r.toObject())), s = t.getLast();
|
|
51588
51900
|
}
|
|
@@ -51614,7 +51926,7 @@ class ViamClient {
|
|
|
51614
51926
|
transportFactory;
|
|
51615
51927
|
dataClient;
|
|
51616
51928
|
constructor(e, n) {
|
|
51617
|
-
this.serviceHost = n
|
|
51929
|
+
this.serviceHost = n ?? "https://app.viam.com:443", this.dialOpts = e;
|
|
51618
51930
|
}
|
|
51619
51931
|
getTransportFactory = async () => createViamTransportFactory(this.serviceHost, this.dialOpts);
|
|
51620
51932
|
async connect() {
|
|
@@ -54805,7 +55117,7 @@ const concatArrayU8 = (i) => {
|
|
|
54805
55117
|
for (const l of i)
|
|
54806
55118
|
n.set(l, s), s += l.length;
|
|
54807
55119
|
return n;
|
|
54808
|
-
}, version = "0.7.0
|
|
55120
|
+
}, version = "0.7.0";
|
|
54809
55121
|
export {
|
|
54810
55122
|
ArmClient,
|
|
54811
55123
|
BaseClient,
|