@conboai/app.db.query 0.9.38 → 0.9.39
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.db.query.js +30 -21
- package/dist/apps/FeedStreams/utils.d.ts +2 -0
- package/package.json +1 -1
package/dist/app.db.query.js
CHANGED
|
@@ -121555,21 +121555,23 @@ async function ia({
|
|
|
121555
121555
|
options: n,
|
|
121556
121556
|
errorMessage: r
|
|
121557
121557
|
}) {
|
|
121558
|
+
var u;
|
|
121558
121559
|
const o = {
|
|
121559
121560
|
...n,
|
|
121560
121561
|
method: t ? "POST" : "GET"
|
|
121561
121562
|
};
|
|
121562
121563
|
t && (o.headers = {
|
|
121564
|
+
...n == null ? void 0 : n.headers,
|
|
121563
121565
|
"Content-Type": "application/json"
|
|
121564
121566
|
}, o.body = JSON.stringify(t));
|
|
121565
|
-
const i = await fetch(e,
|
|
121566
|
-
|
|
121567
|
-
|
|
121568
|
-
if (!i.ok) {
|
|
121569
|
-
const
|
|
121570
|
-
Bo.error(
|
|
121567
|
+
const i = await fetch(e, o), s = await i.text();
|
|
121568
|
+
let a = null;
|
|
121569
|
+
const l = i.headers.get("Content-Type") || "";
|
|
121570
|
+
if (s && l.includes("application/json") && (a = JSON.parse(s)), !i.ok) {
|
|
121571
|
+
const d = r || a && (((u = a.messages) == null ? void 0 : u[0]) ?? JSON.stringify(a));
|
|
121572
|
+
throw Bo.error(d), new Error(d);
|
|
121571
121573
|
}
|
|
121572
|
-
return
|
|
121574
|
+
return a;
|
|
121573
121575
|
}
|
|
121574
121576
|
const JBe = async ({
|
|
121575
121577
|
baseUrl: e
|
|
@@ -130139,20 +130141,24 @@ const IB = "AIzaSyARRJwBmfqqfnNnLYFmUrhRtdUbiR37CVM", lf = ({
|
|
|
130139
130141
|
text: sx({ shouldShow: t, item: o, getLabel: r })
|
|
130140
130142
|
}
|
|
130141
130143
|
};
|
|
130142
|
-
}), _0 = (e, t) => {
|
|
130143
|
-
var
|
|
130144
|
+
}), _0 = (e, t, n) => {
|
|
130145
|
+
var i;
|
|
130144
130146
|
if (_l.isNil(e))
|
|
130145
130147
|
return null;
|
|
130146
|
-
const
|
|
130147
|
-
x:
|
|
130148
|
-
y:
|
|
130149
|
-
}))) || [],
|
|
130148
|
+
const r = ((i = e == null ? void 0 : e[0]) == null ? void 0 : i.map((s) => ({
|
|
130149
|
+
x: s[0],
|
|
130150
|
+
y: s[1]
|
|
130151
|
+
}))) || [], o = {
|
|
130152
|
+
fill: "transparent",
|
|
130153
|
+
stroke: "#e6194b"
|
|
130154
|
+
};
|
|
130150
130155
|
return {
|
|
130151
130156
|
id: String(il()),
|
|
130152
130157
|
type: Ii.Polygon,
|
|
130153
|
-
points:
|
|
130154
|
-
styles: t ||
|
|
130155
|
-
coordinates:
|
|
130158
|
+
points: r,
|
|
130159
|
+
styles: t || o,
|
|
130160
|
+
coordinates: r,
|
|
130161
|
+
isInFov: n
|
|
130156
130162
|
};
|
|
130157
130163
|
}, VHe = (e, t) => (e == null ? void 0 : e.filter((r) => {
|
|
130158
130164
|
const o = t.find(
|
|
@@ -131598,8 +131604,7 @@ const wi = pl((e) => ({
|
|
|
131598
131604
|
url: `${t}/api/detections_pixels/${e}/info`,
|
|
131599
131605
|
options: {
|
|
131600
131606
|
signal: n
|
|
131601
|
-
}
|
|
131602
|
-
errorMessage: "The request has been canceled"
|
|
131607
|
+
}
|
|
131603
131608
|
}), jWe = async ({
|
|
131604
131609
|
body: e,
|
|
131605
131610
|
orderBy: t,
|
|
@@ -134049,8 +134054,12 @@ const TGe = ({
|
|
|
134049
134054
|
const pe = _0(
|
|
134050
134055
|
h == null ? void 0 : h.pixel_points.coordinates,
|
|
134051
134056
|
{
|
|
134052
|
-
stroke: Kb(q == null ? void 0 : q.has_validation)
|
|
134053
|
-
|
|
134057
|
+
stroke: Kb(q == null ? void 0 : q.has_validation),
|
|
134058
|
+
fillOpacity: "0.1",
|
|
134059
|
+
strokeWidth: 2,
|
|
134060
|
+
fill: "#fff"
|
|
134061
|
+
},
|
|
134062
|
+
!0
|
|
134054
134063
|
);
|
|
134055
134064
|
_([...se, pe]);
|
|
134056
134065
|
} else
|
|
@@ -134253,7 +134262,7 @@ const TGe = ({
|
|
|
134253
134262
|
m.current = !1;
|
|
134254
134263
|
return;
|
|
134255
134264
|
}
|
|
134256
|
-
if (!ee) {
|
|
134265
|
+
if (!ee || ee.isInFov) {
|
|
134257
134266
|
U("selectedTableItemId", -1), s(!1), l(null);
|
|
134258
134267
|
return;
|
|
134259
134268
|
}
|
|
@@ -14,6 +14,7 @@ export declare const generateFeedStreamsData: ({ latestSnapshots, fovInfos, base
|
|
|
14
14
|
x: number;
|
|
15
15
|
y: number;
|
|
16
16
|
}[];
|
|
17
|
+
isInFov: boolean | undefined;
|
|
17
18
|
} | null;
|
|
18
19
|
displayName: string | undefined;
|
|
19
20
|
name: string | undefined;
|
|
@@ -35,6 +36,7 @@ export declare const generateFeedStreamsData: ({ latestSnapshots, fovInfos, base
|
|
|
35
36
|
x: number;
|
|
36
37
|
y: number;
|
|
37
38
|
}[];
|
|
39
|
+
isInFov: boolean | undefined;
|
|
38
40
|
} | null)[] | undefined;
|
|
39
41
|
unit: string | undefined;
|
|
40
42
|
}[];
|