@burdenoff/microfe-bigconsole 2026.1124.5 → 2026.1124.7
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/bigconsole/components/builder/inspector/QuerySection.d.ts +15 -0
- package/dist/bigconsole/components/builder/inspector/QuerySection.js +501 -0
- package/dist/bigconsole/components/builder/inspector/index.d.ts +1 -0
- package/dist/bigconsole/components/builder/inspector/index.js +1 -0
- package/dist/bigconsole/components/fleet/FleetBindingsDialog.js +113 -115
- package/dist/bigconsole/components/fleet/FleetCopySection.js +2 -2
- package/dist/bigconsole/components/fleet/FleetWidgetActions.js +62 -57
- package/dist/bigconsole/components/widgets/PropertiesPanel.js +800 -779
- package/dist/bigconsole/components/widgets/chart/ChartWidget.js +140 -130
- package/dist/bigconsole/components/widgets/chart/charts/numericSeries.js +4 -4
- package/dist/bigconsole/components/widgets/chart/charts/referenceElements.js +1 -1
- package/dist/bigconsole/components/widgets/chart/charts/types.d.ts +1 -1
- package/dist/bigconsole/hooks/useWidgetQueryPreview.d.ts +11 -0
- package/dist/bigconsole/hooks/useWidgetQueryPreview.js +42 -0
- package/dist/bigconsole/utils/fleetPlural.d.ts +7 -0
- package/dist/bigconsole/utils/fleetPlural.js +11 -0
- package/dist/bigconsole/utils/widgetQuery.d.ts +102 -0
- package/dist/bigconsole/utils/widgetQuery.js +241 -0
- package/dist/generated/wspace-operations.d.ts +14 -0
- package/dist/generated/wspace-operations.js +130 -11
- package/dist/generated/wspace-types.d.ts +8 -1
- package/package.json +1 -1
|
@@ -0,0 +1,241 @@
|
|
|
1
|
+
// src/bigconsole/utils/widgetQuery.ts
|
|
2
|
+
var e = [
|
|
3
|
+
"sum",
|
|
4
|
+
"avg",
|
|
5
|
+
"min",
|
|
6
|
+
"max",
|
|
7
|
+
"count",
|
|
8
|
+
"distinct_count"
|
|
9
|
+
], t = {
|
|
10
|
+
dimensions: 2,
|
|
11
|
+
measures: 6,
|
|
12
|
+
series: 12,
|
|
13
|
+
rows: 1e3
|
|
14
|
+
}, n = 200, r = (e) => typeof e == "object" && !!e && !Array.isArray(e), i = /^\d{4}-\d{2}(-\d{2}([T ]\d{2}:\d{2}(:\d{2}(\.\d+)?)?(Z|[+-]\d{2}:?\d{2})?)?)?$/;
|
|
15
|
+
function a(e) {
|
|
16
|
+
return e == null || e === "" ? null : typeof e == "boolean" ? "boolean" : typeof e == "number" ? Number.isFinite(e) ? "number" : null : typeof e == "string" ? i.test(e) ? "date" : e.trim() !== "" && Number.isFinite(Number(e)) ? "number" : "text" : "text";
|
|
17
|
+
}
|
|
18
|
+
function o(e) {
|
|
19
|
+
return !Array.isArray(e) || e.length === 0 ? null : e.every(r) ? e : null;
|
|
20
|
+
}
|
|
21
|
+
function s(e) {
|
|
22
|
+
let t = /* @__PURE__ */ new Map();
|
|
23
|
+
for (let r of e.slice(0, n)) for (let [e, n] of Object.entries(r)) {
|
|
24
|
+
let r = a(n), i = t.get(e);
|
|
25
|
+
i == null ? t.set(e, r) : r !== null && i !== r && t.set(e, "mixed");
|
|
26
|
+
}
|
|
27
|
+
return [...t].map(([e, t]) => ({
|
|
28
|
+
name: e,
|
|
29
|
+
kind: t === null || t === "mixed" ? "text" : t
|
|
30
|
+
}));
|
|
31
|
+
}
|
|
32
|
+
var c = (e) => e.kind === "number";
|
|
33
|
+
function l(e) {
|
|
34
|
+
return e.filter(c);
|
|
35
|
+
}
|
|
36
|
+
var u = /* @__PURE__ */ new Set([
|
|
37
|
+
"sum",
|
|
38
|
+
"avg",
|
|
39
|
+
"min",
|
|
40
|
+
"max"
|
|
41
|
+
]), d = {
|
|
42
|
+
sum: "added up",
|
|
43
|
+
avg: "averaged",
|
|
44
|
+
min: "used for the smallest value",
|
|
45
|
+
max: "used for the largest value"
|
|
46
|
+
};
|
|
47
|
+
function f(t) {
|
|
48
|
+
let n = t?.query;
|
|
49
|
+
if (!r(n) || !Array.isArray(n.measures)) return null;
|
|
50
|
+
let i = n.measures.filter(r).flatMap((t) => {
|
|
51
|
+
if (typeof t.agg != "string" || !e.includes(t.agg)) return [];
|
|
52
|
+
let n = { agg: t.agg };
|
|
53
|
+
return typeof t.field == "string" && (n.field = t.field), typeof t.as == "string" && (n.as = t.as), [n];
|
|
54
|
+
});
|
|
55
|
+
if (i.length === 0) return null;
|
|
56
|
+
let a = {
|
|
57
|
+
dimensions: Array.isArray(n.dimensions) ? n.dimensions.filter((e) => typeof e == "string") : [],
|
|
58
|
+
measures: i,
|
|
59
|
+
filters: Array.isArray(n.filters) ? n.filters.filter(r) : []
|
|
60
|
+
};
|
|
61
|
+
return typeof n.series == "string" && n.series !== "" && (a.series = n.series), r(n.orderBy) && (a.orderBy = n.orderBy), typeof n.limit == "number" && (a.limit = n.limit), a;
|
|
62
|
+
}
|
|
63
|
+
function p(e, n, r = !0, i = !0) {
|
|
64
|
+
let a = l(e)[0];
|
|
65
|
+
if (!a) return null;
|
|
66
|
+
let o = i ? e.find((e) => e.kind === "date") ?? e.find((e) => e.kind === "text") : void 0;
|
|
67
|
+
if (!o) return {
|
|
68
|
+
dimensions: [],
|
|
69
|
+
measures: [{
|
|
70
|
+
agg: "sum",
|
|
71
|
+
field: a.name
|
|
72
|
+
}],
|
|
73
|
+
filters: []
|
|
74
|
+
};
|
|
75
|
+
let s = {
|
|
76
|
+
dimensions: [o.name],
|
|
77
|
+
measures: [{
|
|
78
|
+
agg: "sum",
|
|
79
|
+
field: a.name
|
|
80
|
+
}],
|
|
81
|
+
filters: []
|
|
82
|
+
}, c = e.find((e) => e.kind === "text" && e.name !== o.name && m(n, e.name) >= 2 && m(n, e.name) <= t.series);
|
|
83
|
+
return r && c && o.kind === "date" && (s.series = c.name), s;
|
|
84
|
+
}
|
|
85
|
+
function m(e, t) {
|
|
86
|
+
let r = /* @__PURE__ */ new Set();
|
|
87
|
+
for (let i of e.slice(0, n)) {
|
|
88
|
+
let e = i[t];
|
|
89
|
+
e != null && r.add(String(e));
|
|
90
|
+
}
|
|
91
|
+
return r.size;
|
|
92
|
+
}
|
|
93
|
+
function h(e, t) {
|
|
94
|
+
if (!t || e.length < 2) return null;
|
|
95
|
+
let n = /* @__PURE__ */ new Map();
|
|
96
|
+
for (let r of e) {
|
|
97
|
+
let e = r[t];
|
|
98
|
+
if (e == null) continue;
|
|
99
|
+
let i = String(e);
|
|
100
|
+
n.set(i, (n.get(i) ?? 0) + 1);
|
|
101
|
+
}
|
|
102
|
+
let r = [...n].filter(([, e]) => e > 1);
|
|
103
|
+
if (r.length === 0) return null;
|
|
104
|
+
let [i] = r[0];
|
|
105
|
+
return `"${t}" repeats (for example "${i}" appears more than once), so the chart draws several points with the same label. Group by "${t}" and split by another field to show one point per value.`;
|
|
106
|
+
}
|
|
107
|
+
function g(e, t, n = !0, r = !0) {
|
|
108
|
+
if (!r) return "This chart type needs individual rows. Stop grouping or choose a different chart type.";
|
|
109
|
+
let i = new Set(t.map((e) => e.name));
|
|
110
|
+
if (e.measures.length === 0) return "Pick at least one value to calculate.";
|
|
111
|
+
for (let n of e.measures) {
|
|
112
|
+
if (n.agg !== "count" && !n.field) return "Pick a field for each calculation.";
|
|
113
|
+
if (n.field && i.size > 0 && !i.has(n.field)) return `"${n.field}" is not in the data any more. Pick another field.`;
|
|
114
|
+
let e = t.find((e) => e.name === n.field);
|
|
115
|
+
if (e && u.has(n.agg) && e.kind !== "number") return `"${e.name}" holds ${e.kind === "date" ? "dates" : "text"}, so it cannot be ${d[n.agg] ?? "calculated"}. Use count or distinct count, or pick a number field.`;
|
|
116
|
+
}
|
|
117
|
+
for (let t of e.dimensions) if (i.size > 0 && !i.has(t)) return `"${t}" is not in the data any more. Pick another field.`;
|
|
118
|
+
if (new Set(e.dimensions).size !== e.dimensions.length) return "Choose a different field for each group.";
|
|
119
|
+
if (e.series && !n) return "Remove the series split to use this widget type.";
|
|
120
|
+
if (e.series && e.measures.length !== 1) return "Splitting into lines needs exactly one value.";
|
|
121
|
+
if (e.series && e.dimensions.includes(e.series)) return "Choose a different field to split into lines.";
|
|
122
|
+
let a = [...e.dimensions, ...D(e)];
|
|
123
|
+
return new Set(a).size === a.length ? null : "Choose distinct output fields and calculations.";
|
|
124
|
+
}
|
|
125
|
+
function _(e, n) {
|
|
126
|
+
return e === "metric_card" ? {
|
|
127
|
+
dimensions: 0,
|
|
128
|
+
measures: 1
|
|
129
|
+
} : e === "chart" ? {
|
|
130
|
+
dimensions: 1,
|
|
131
|
+
measures: w(n) === "pie" ? 1 : t.measures
|
|
132
|
+
} : t;
|
|
133
|
+
}
|
|
134
|
+
function v(e, t, n) {
|
|
135
|
+
let { dimensions: r, measures: i } = _(t, n);
|
|
136
|
+
if (t === "metric_card") {
|
|
137
|
+
if (e.dimensions.length > r || e.series) return "Remove grouping and series to calculate one metric.";
|
|
138
|
+
if (e.measures.length !== i) return "Choose one value to calculate for this metric.";
|
|
139
|
+
}
|
|
140
|
+
if (t === "chart") {
|
|
141
|
+
if (w(n) === "pie" && (e.dimensions.length !== r || e.measures.length !== i)) return "Choose one group and one value for a pie chart.";
|
|
142
|
+
if (e.dimensions.length > r) return "Choose one group for this chart’s x-axis.";
|
|
143
|
+
}
|
|
144
|
+
return null;
|
|
145
|
+
}
|
|
146
|
+
function y(e) {
|
|
147
|
+
let t = {
|
|
148
|
+
sum: "Total of",
|
|
149
|
+
avg: "Average of",
|
|
150
|
+
min: "Smallest",
|
|
151
|
+
max: "Largest",
|
|
152
|
+
count: "Count of",
|
|
153
|
+
distinct_count: "Distinct count of"
|
|
154
|
+
}, n = [e.measures.map((e) => e.agg === "count" && !e.field ? "Number of rows" : `${t[e.agg]} ${e.field ?? ""}`.trim()).join(", ")];
|
|
155
|
+
return e.dimensions.length > 0 && n.push(`by ${e.dimensions.join(" and ")}`), e.series && n.push(`split by ${e.series}`), n.join(" ");
|
|
156
|
+
}
|
|
157
|
+
function b(e) {
|
|
158
|
+
if (e.measures.length === 0) return null;
|
|
159
|
+
let t = {
|
|
160
|
+
dimensions: e.dimensions.filter((e) => e !== ""),
|
|
161
|
+
measures: e.measures.map((e) => ({
|
|
162
|
+
agg: e.agg,
|
|
163
|
+
...e.field ? { field: e.field } : {},
|
|
164
|
+
...e.as ? { as: e.as } : {}
|
|
165
|
+
})),
|
|
166
|
+
filters: e.filters
|
|
167
|
+
};
|
|
168
|
+
if (e.series && (t.series = e.series), e.orderBy) {
|
|
169
|
+
let n = e.orderBy.by === "dimension" ? t.dimensions : t.measures;
|
|
170
|
+
e.orderBy.index >= 0 && e.orderBy.index < n.length && (t.orderBy = e.orderBy);
|
|
171
|
+
}
|
|
172
|
+
return e.limit !== void 0 && (t.limit = e.limit), t;
|
|
173
|
+
}
|
|
174
|
+
var x = /* @__PURE__ */ new Set([
|
|
175
|
+
"chart",
|
|
176
|
+
"table",
|
|
177
|
+
"metric_card"
|
|
178
|
+
]), S = /* @__PURE__ */ new Set([
|
|
179
|
+
"line",
|
|
180
|
+
"bar",
|
|
181
|
+
"area",
|
|
182
|
+
"combo"
|
|
183
|
+
]), C = /* @__PURE__ */ new Set([...S, "pie"]);
|
|
184
|
+
function w(e) {
|
|
185
|
+
return typeof e?.chartType == "string" ? e.chartType.toLowerCase() : "line";
|
|
186
|
+
}
|
|
187
|
+
function T(e, t) {
|
|
188
|
+
return e === "chart" ? C.has(w(t)) : e !== void 0 && x.has(e);
|
|
189
|
+
}
|
|
190
|
+
function E(e, t) {
|
|
191
|
+
return e === "chart" && S.has(w(t));
|
|
192
|
+
}
|
|
193
|
+
function D(e) {
|
|
194
|
+
let t = new Set(e.dimensions);
|
|
195
|
+
return e.measures.map((e) => {
|
|
196
|
+
let n = e.as ?? e.field ?? "count", r = t.has(n) ? `${e.agg}_${n}` : n;
|
|
197
|
+
return t.add(r), r;
|
|
198
|
+
});
|
|
199
|
+
}
|
|
200
|
+
function O(e, t) {
|
|
201
|
+
return e.series ? Object.keys(t ?? {}).filter((t) => !e.dimensions.includes(t)) : D(e);
|
|
202
|
+
}
|
|
203
|
+
function k(e, t) {
|
|
204
|
+
let [n] = t.dimensions, r = D(t), [i] = r;
|
|
205
|
+
return e === "chart" ? {
|
|
206
|
+
xAxisField: n,
|
|
207
|
+
labelField: n,
|
|
208
|
+
valueField: t.series ? void 0 : i,
|
|
209
|
+
xAxisKey: void 0,
|
|
210
|
+
selectedFields: t.series ? void 0 : r,
|
|
211
|
+
series: void 0
|
|
212
|
+
} : e === "metric_card" ? { valueField: i } : e === "table" ? { columns: void 0 } : {};
|
|
213
|
+
}
|
|
214
|
+
var A = /* @__PURE__ */ new Map([
|
|
215
|
+
["chart", [
|
|
216
|
+
"xAxisField",
|
|
217
|
+
"labelField",
|
|
218
|
+
"valueField",
|
|
219
|
+
"xAxisKey",
|
|
220
|
+
"selectedFields",
|
|
221
|
+
"series"
|
|
222
|
+
]],
|
|
223
|
+
["metric_card", ["valueField"]],
|
|
224
|
+
["table", ["columns"]]
|
|
225
|
+
]);
|
|
226
|
+
function j(e, t, n) {
|
|
227
|
+
let i = { ...e }, a = A.get(t ?? "") ?? [];
|
|
228
|
+
if (n === null) {
|
|
229
|
+
delete i.query, delete i.querySourceMappings;
|
|
230
|
+
let t = e.querySourceMappings;
|
|
231
|
+
if (r(t)) for (let e of a) Object.hasOwn(t, e) ? i[e] = t[e] : delete i[e];
|
|
232
|
+
return i;
|
|
233
|
+
}
|
|
234
|
+
!f(e) && a.length > 0 && (i.querySourceMappings = Object.fromEntries(a.filter((t) => Object.hasOwn(e, t)).map((t) => [t, e[t]]))), i.query = n;
|
|
235
|
+
for (let [e, r] of Object.entries(k(t, n))) r === void 0 ? delete i[e] : i[e] = r;
|
|
236
|
+
return i;
|
|
237
|
+
}
|
|
238
|
+
function M(e, t) {
|
|
239
|
+
return Object.fromEntries(Object.entries(e).filter(([e]) => e !== t));
|
|
240
|
+
}
|
|
241
|
+
export { u as NUMERIC_ONLY, e as QUERY_AGGREGATES, t as QUERY_LIMITS, j as applyQueryToConfig, O as chartQueryColumns, y as describeQuery, s as detectFields, k as mappingPatch, D as measureNames, b as normalizeQuery, l as numericFields, M as omitKey, o as previewRows, _ as queryInputLimits, g as queryProblem, v as queryRendererProblem, f as readQuery, h as repeatedXWarning, p as suggestQuery, T as supportsQuery, E as supportsQuerySeries };
|
|
@@ -9314,6 +9314,19 @@ export type ListWidgetsForPageQuery = {
|
|
|
9314
9314
|
}>;
|
|
9315
9315
|
};
|
|
9316
9316
|
};
|
|
9317
|
+
export type PreviewWidgetQueryQueryVariables = Exact<{
|
|
9318
|
+
id: string | number;
|
|
9319
|
+
query: Record<string, unknown>;
|
|
9320
|
+
}>;
|
|
9321
|
+
export type PreviewWidgetQueryQuery = {
|
|
9322
|
+
getWidget: {
|
|
9323
|
+
id: string;
|
|
9324
|
+
data: {
|
|
9325
|
+
processed: Record<string, unknown>;
|
|
9326
|
+
error: string | null;
|
|
9327
|
+
} | null;
|
|
9328
|
+
} | null;
|
|
9329
|
+
};
|
|
9317
9330
|
export type WidgetTypeCatalogQueryVariables = Exact<{
|
|
9318
9331
|
[key: string]: never;
|
|
9319
9332
|
}>;
|
|
@@ -10046,6 +10059,7 @@ export declare const ListEventWebhookMappingsDocument: DocumentNode<ListEventWeb
|
|
|
10046
10059
|
export declare const ListWidgetsDocument: DocumentNode<ListWidgetsQuery, ListWidgetsQueryVariables>;
|
|
10047
10060
|
export declare const ListWidgetsByDashboardDocument: DocumentNode<ListWidgetsByDashboardQuery, ListWidgetsByDashboardQueryVariables>;
|
|
10048
10061
|
export declare const ListWidgetsForPageDocument: DocumentNode<ListWidgetsForPageQuery, ListWidgetsForPageQueryVariables>;
|
|
10062
|
+
export declare const PreviewWidgetQueryDocument: DocumentNode<PreviewWidgetQueryQuery, PreviewWidgetQueryQueryVariables>;
|
|
10049
10063
|
export declare const WidgetTypeCatalogDocument: DocumentNode<WidgetTypeCatalogQuery, WidgetTypeCatalogQueryVariables>;
|
|
10050
10064
|
export declare const CreateWorkflowDocument: DocumentNode<CreateWorkflowMutation, CreateWorkflowMutationVariables>;
|
|
10051
10065
|
export declare const DeleteWorkflowDocument: DocumentNode<DeleteWorkflowMutation, DeleteWorkflowMutationVariables>;
|
|
@@ -40522,6 +40522,125 @@ var e = {
|
|
|
40522
40522
|
}
|
|
40523
40523
|
]
|
|
40524
40524
|
}, Sn = {
|
|
40525
|
+
kind: "Document",
|
|
40526
|
+
definitions: [{
|
|
40527
|
+
kind: "OperationDefinition",
|
|
40528
|
+
operation: "query",
|
|
40529
|
+
name: {
|
|
40530
|
+
kind: "Name",
|
|
40531
|
+
value: "PreviewWidgetQuery"
|
|
40532
|
+
},
|
|
40533
|
+
variableDefinitions: [{
|
|
40534
|
+
kind: "VariableDefinition",
|
|
40535
|
+
variable: {
|
|
40536
|
+
kind: "Variable",
|
|
40537
|
+
name: {
|
|
40538
|
+
kind: "Name",
|
|
40539
|
+
value: "id"
|
|
40540
|
+
}
|
|
40541
|
+
},
|
|
40542
|
+
type: {
|
|
40543
|
+
kind: "NonNullType",
|
|
40544
|
+
type: {
|
|
40545
|
+
kind: "NamedType",
|
|
40546
|
+
name: {
|
|
40547
|
+
kind: "Name",
|
|
40548
|
+
value: "ID"
|
|
40549
|
+
}
|
|
40550
|
+
}
|
|
40551
|
+
}
|
|
40552
|
+
}, {
|
|
40553
|
+
kind: "VariableDefinition",
|
|
40554
|
+
variable: {
|
|
40555
|
+
kind: "Variable",
|
|
40556
|
+
name: {
|
|
40557
|
+
kind: "Name",
|
|
40558
|
+
value: "query"
|
|
40559
|
+
}
|
|
40560
|
+
},
|
|
40561
|
+
type: {
|
|
40562
|
+
kind: "NonNullType",
|
|
40563
|
+
type: {
|
|
40564
|
+
kind: "NamedType",
|
|
40565
|
+
name: {
|
|
40566
|
+
kind: "Name",
|
|
40567
|
+
value: "JSON"
|
|
40568
|
+
}
|
|
40569
|
+
}
|
|
40570
|
+
}
|
|
40571
|
+
}],
|
|
40572
|
+
selectionSet: {
|
|
40573
|
+
kind: "SelectionSet",
|
|
40574
|
+
selections: [{
|
|
40575
|
+
kind: "Field",
|
|
40576
|
+
name: {
|
|
40577
|
+
kind: "Name",
|
|
40578
|
+
value: "getWidget"
|
|
40579
|
+
},
|
|
40580
|
+
arguments: [{
|
|
40581
|
+
kind: "Argument",
|
|
40582
|
+
name: {
|
|
40583
|
+
kind: "Name",
|
|
40584
|
+
value: "id"
|
|
40585
|
+
},
|
|
40586
|
+
value: {
|
|
40587
|
+
kind: "Variable",
|
|
40588
|
+
name: {
|
|
40589
|
+
kind: "Name",
|
|
40590
|
+
value: "id"
|
|
40591
|
+
}
|
|
40592
|
+
}
|
|
40593
|
+
}],
|
|
40594
|
+
selectionSet: {
|
|
40595
|
+
kind: "SelectionSet",
|
|
40596
|
+
selections: [{
|
|
40597
|
+
kind: "Field",
|
|
40598
|
+
name: {
|
|
40599
|
+
kind: "Name",
|
|
40600
|
+
value: "id"
|
|
40601
|
+
}
|
|
40602
|
+
}, {
|
|
40603
|
+
kind: "Field",
|
|
40604
|
+
name: {
|
|
40605
|
+
kind: "Name",
|
|
40606
|
+
value: "data"
|
|
40607
|
+
},
|
|
40608
|
+
arguments: [{
|
|
40609
|
+
kind: "Argument",
|
|
40610
|
+
name: {
|
|
40611
|
+
kind: "Name",
|
|
40612
|
+
value: "query"
|
|
40613
|
+
},
|
|
40614
|
+
value: {
|
|
40615
|
+
kind: "Variable",
|
|
40616
|
+
name: {
|
|
40617
|
+
kind: "Name",
|
|
40618
|
+
value: "query"
|
|
40619
|
+
}
|
|
40620
|
+
}
|
|
40621
|
+
}],
|
|
40622
|
+
selectionSet: {
|
|
40623
|
+
kind: "SelectionSet",
|
|
40624
|
+
selections: [{
|
|
40625
|
+
kind: "Field",
|
|
40626
|
+
name: {
|
|
40627
|
+
kind: "Name",
|
|
40628
|
+
value: "processed"
|
|
40629
|
+
}
|
|
40630
|
+
}, {
|
|
40631
|
+
kind: "Field",
|
|
40632
|
+
name: {
|
|
40633
|
+
kind: "Name",
|
|
40634
|
+
value: "error"
|
|
40635
|
+
}
|
|
40636
|
+
}]
|
|
40637
|
+
}
|
|
40638
|
+
}]
|
|
40639
|
+
}
|
|
40640
|
+
}]
|
|
40641
|
+
}
|
|
40642
|
+
}]
|
|
40643
|
+
}, Cn = {
|
|
40525
40644
|
kind: "Document",
|
|
40526
40645
|
definitions: [{
|
|
40527
40646
|
kind: "OperationDefinition",
|
|
@@ -40644,7 +40763,7 @@ var e = {
|
|
|
40644
40763
|
}]
|
|
40645
40764
|
}
|
|
40646
40765
|
}]
|
|
40647
|
-
},
|
|
40766
|
+
}, wn = {
|
|
40648
40767
|
kind: "Document",
|
|
40649
40768
|
definitions: [
|
|
40650
40769
|
{
|
|
@@ -41041,7 +41160,7 @@ var e = {
|
|
|
41041
41160
|
}
|
|
41042
41161
|
}
|
|
41043
41162
|
]
|
|
41044
|
-
},
|
|
41163
|
+
}, Tn = {
|
|
41045
41164
|
kind: "Document",
|
|
41046
41165
|
definitions: [{
|
|
41047
41166
|
kind: "OperationDefinition",
|
|
@@ -41095,7 +41214,7 @@ var e = {
|
|
|
41095
41214
|
}]
|
|
41096
41215
|
}
|
|
41097
41216
|
}]
|
|
41098
|
-
},
|
|
41217
|
+
}, En = {
|
|
41099
41218
|
kind: "Document",
|
|
41100
41219
|
definitions: [
|
|
41101
41220
|
{
|
|
@@ -41521,7 +41640,7 @@ var e = {
|
|
|
41521
41640
|
}
|
|
41522
41641
|
}
|
|
41523
41642
|
]
|
|
41524
|
-
},
|
|
41643
|
+
}, Dn = {
|
|
41525
41644
|
kind: "Document",
|
|
41526
41645
|
definitions: [
|
|
41527
41646
|
{
|
|
@@ -41772,7 +41891,7 @@ var e = {
|
|
|
41772
41891
|
}
|
|
41773
41892
|
}
|
|
41774
41893
|
]
|
|
41775
|
-
},
|
|
41894
|
+
}, On = {
|
|
41776
41895
|
kind: "Document",
|
|
41777
41896
|
definitions: [{
|
|
41778
41897
|
kind: "OperationDefinition",
|
|
@@ -41858,7 +41977,7 @@ var e = {
|
|
|
41858
41977
|
}]
|
|
41859
41978
|
}
|
|
41860
41979
|
}]
|
|
41861
|
-
},
|
|
41980
|
+
}, kn = {
|
|
41862
41981
|
kind: "Document",
|
|
41863
41982
|
definitions: [
|
|
41864
41983
|
{
|
|
@@ -42327,7 +42446,7 @@ var e = {
|
|
|
42327
42446
|
}
|
|
42328
42447
|
}
|
|
42329
42448
|
]
|
|
42330
|
-
},
|
|
42449
|
+
}, An = {
|
|
42331
42450
|
kind: "Document",
|
|
42332
42451
|
definitions: [
|
|
42333
42452
|
{
|
|
@@ -42724,7 +42843,7 @@ var e = {
|
|
|
42724
42843
|
}
|
|
42725
42844
|
}
|
|
42726
42845
|
]
|
|
42727
|
-
},
|
|
42846
|
+
}, jn = {
|
|
42728
42847
|
kind: "Document",
|
|
42729
42848
|
definitions: [
|
|
42730
42849
|
{
|
|
@@ -43121,7 +43240,7 @@ var e = {
|
|
|
43121
43240
|
}
|
|
43122
43241
|
}
|
|
43123
43242
|
]
|
|
43124
|
-
},
|
|
43243
|
+
}, Mn = {
|
|
43125
43244
|
kind: "Document",
|
|
43126
43245
|
definitions: [{
|
|
43127
43246
|
kind: "OperationDefinition",
|
|
@@ -43343,7 +43462,7 @@ var e = {
|
|
|
43343
43462
|
]
|
|
43344
43463
|
}
|
|
43345
43464
|
}]
|
|
43346
|
-
},
|
|
43465
|
+
}, Nn = {
|
|
43347
43466
|
kind: "Document",
|
|
43348
43467
|
definitions: [{
|
|
43349
43468
|
kind: "OperationDefinition",
|
|
@@ -43424,4 +43543,4 @@ var e = {
|
|
|
43424
43543
|
}
|
|
43425
43544
|
}]
|
|
43426
43545
|
};
|
|
43427
|
-
export { te as BatchCreateDataSinksDocument, ne as BatchDeleteDataSinksDocument, Ht as BatchUpdateWidgetPositionsDocument, n as BigConsoleAskAddToDashboardDocument, t as BigConsoleAskDocument, jt as BigConsoleDashboardPresenceDocument, de as BigConsoleDataSinkAlertChannelsDocument, fe as BigConsoleDataSinkAlertExecutionsDocument, ue as BigConsoleDataSinkAlertsDocument, ie as BigConsoleDeleteDataSinkAlertDocument, r as BigConsoleDetectAnomaliesDocument, me as BigConsoleDetectDataSinkAnomaliesDocument, lt as BigConsoleOverviewDashboardsDocument, ut as BigConsoleOverviewDataSinksDocument, dt as BigConsoleOverviewParsersDocument, ft as BigConsoleOverviewPipelinesDocument, pe as BigConsolePreviewDataSinkAlertDocument, s as BigConsoleShareGroupsDocument, o as BigConsoleShareMemberIdentitiesDocument, a as BigConsoleShareMembersDocument, re as BigConsoleUpsertDataSinkAlertDocument, i as BigConsoleValidateConsoleDefinitionDocument, Te as CancelExploreDocument, g as CloneDashboardDocument, _ as CreateDashboardDocument, v as CreateDashboardEmbedPolicyDocument, y as CreateDashboardPageDocument, b as CreateDashboardViewDocument, ae as CreateDataSinkDocument, f as CreateEntityCommentDocument, Ut as CreateEventWebhookMappingDocument, De as CreateExploreWidgetDocument, x as CreateGlobalFilterDocument, Ie as CreateLinkedCopyDocument, pt as CreateParserDocument, bt as CreatePipelineDocument, It as CreateSandboxDocument, Gt as CreateWidgetActionDocument, Wt as CreateWidgetDocument, Kt as CreateWidgetDrilldownDocument,
|
|
43546
|
+
export { te as BatchCreateDataSinksDocument, ne as BatchDeleteDataSinksDocument, Ht as BatchUpdateWidgetPositionsDocument, n as BigConsoleAskAddToDashboardDocument, t as BigConsoleAskDocument, jt as BigConsoleDashboardPresenceDocument, de as BigConsoleDataSinkAlertChannelsDocument, fe as BigConsoleDataSinkAlertExecutionsDocument, ue as BigConsoleDataSinkAlertsDocument, ie as BigConsoleDeleteDataSinkAlertDocument, r as BigConsoleDetectAnomaliesDocument, me as BigConsoleDetectDataSinkAnomaliesDocument, lt as BigConsoleOverviewDashboardsDocument, ut as BigConsoleOverviewDataSinksDocument, dt as BigConsoleOverviewParsersDocument, ft as BigConsoleOverviewPipelinesDocument, pe as BigConsolePreviewDataSinkAlertDocument, s as BigConsoleShareGroupsDocument, o as BigConsoleShareMemberIdentitiesDocument, a as BigConsoleShareMembersDocument, re as BigConsoleUpsertDataSinkAlertDocument, i as BigConsoleValidateConsoleDefinitionDocument, Te as CancelExploreDocument, g as CloneDashboardDocument, _ as CreateDashboardDocument, v as CreateDashboardEmbedPolicyDocument, y as CreateDashboardPageDocument, b as CreateDashboardViewDocument, ae as CreateDataSinkDocument, f as CreateEntityCommentDocument, Ut as CreateEventWebhookMappingDocument, De as CreateExploreWidgetDocument, x as CreateGlobalFilterDocument, Ie as CreateLinkedCopyDocument, pt as CreateParserDocument, bt as CreatePipelineDocument, It as CreateSandboxDocument, Gt as CreateWidgetActionDocument, Wt as CreateWidgetDocument, Kt as CreateWidgetDrilldownDocument, wn as CreateWorkflowDocument, S as DeleteDashboardDocument, C as DeleteDashboardPageDocument, w as DeleteDashboardViewDocument, oe as DeleteDataSinkDocument, p as DeleteEntityCommentDocument, qt as DeleteEventWebhookMappingDocument, T as DeleteGlobalFilterDocument, mt as DeleteParserDocument, xt as DeletePipelineDocument, Yt as DeleteWidgetActionDocument, Jt as DeleteWidgetDocument, Xt as DeleteWidgetDrilldownDocument, Tn as DeleteWorkflowDocument, Le as DetachDashboardDocument, E as DuplicateDashboardPageDocument, Zt as DuplicateWidgetDocument, Qt as EmitWidgetEventDocument, ht as ExecuteParserDocument, St as ExecutePipelineDocument, En as ExecuteWorkflowDocument, ot as ExplainDashboardDocument, it as ExplainKpiChangeDocument, st as ExplainWidgetDocument, Oe as ExploreDashboardsDocument, xe as ExploreHistoryDocument, ke as ExplorePagesDocument, Se as ExploreSavedQueriesDocument, Ce as ExploreSavedQueryDocument, be as ExploreSourcesDocument, U as ExportDashboardDocument, Rt as ExtendSandboxTtlDocument, Ye as FleetBoardNameDocument, Xe as FleetBoardStateDocument, Ze as FleetChildrenDocument, Qe as FleetDataSinkChoicesDocument, Je as FleetLinksDocument, $e as FleetMasterSourcesDocument, et as FleetWidgetFlagsDocument, Vt as GetActiveSandboxesDocument, d as GetBigConsoleSettingsDocument, W as GetDashboardDocument, G as GetDashboardViewDocument, ge as GetDataSinkDataDocument, he as GetDataSinkDocument, _e as GetDataSinkForExportDocument, ve as GetDataSinkPayloadDocument, K as GetDefaultDashboardViewDocument, q as GetDrilldownTargetDashboardDocument, h as GetEntityCommentsDocument, dn as GetEventLogDocument, fn as GetLegacyWidgetTypesDocument, _t as GetParserDocument, J as GetParserScopeDashboardDocument, Tt as GetPipelineDocument, Et as GetPipelineExecutionDocument, Bt as GetReusableAssistantSandboxDocument, zt as GetSandboxDocument, mn as GetWidgetActionsDocument, hn as GetWidgetDataAsOfDocument, pn as GetWidgetDocument, gn as GetWidgetDrilldownTargetDocument, _n as GetWidgetTypesDocument, jn as GetWorkflowByKeyDocument, An as GetWorkflowDocument, e as GlobalFilterFieldsFragmentDoc, kt as HeartbeatBigConsoleDashboardPresenceDocument, D as ImportDashboardDocument, $t as InstallWidgetTypeDocument, se as InvalidateDataSinkCacheDocument, Mt as KpiReconcilableCardsDocument, Nt as KpiReconciliationCardFieldsDocument, Pt as KpiReconciliationItemsDocument, ct as LatestDashboardDigestDocument, At as LeaveBigConsoleDashboardPresenceDocument, Re as LinkDashboardToMasterDocument, Dn as LinkDataSinkToWorkflowDocument, Y as ListDashboardEmbedPoliciesDocument, X as ListDashboardSharesDocument, Z as ListDashboardViewsDocument, Q as ListDashboardsDocument, ye as ListDataSinksDocument, vn as ListEventLogsDocument, yn as ListEventWebhookMappingsDocument, vt as ListParsersDocument, Dt as ListPipelineExecutionsDocument, Ot as ListPipelinesDocument, $ as ListSharedWithMeDocument, bn as ListWidgetsByDashboardDocument, xn as ListWidgetsForPageDocument, Mn as ListWorkflowsDocument, at as PreviewBoardMigrationDocument, tt as PreviewCopyBindingsDocument, nt as PreviewPushToCopiesDocument, rt as PreviewRestoreDashboardToOriginalDocument, Sn as PreviewWidgetQueryDocument, ze as PromoteWidgetToMasterDocument, Lt as ProxySandboxRequestDocument, O as PublishDashboardEmbedPolicyDocument, Be as PushToCopiesDocument, je as QueryAccessGrantsDocument, Me as QueryAccessRegisterRelationDocument, Ae as QueryAccessRelationsDocument, Ne as QueryAccessRemoveRelationDocument, Fe as QueryAccessRevokeGrantDocument, Pe as QueryAccessSetGrantDocument, Ft as ReconcileKpiCardsDocument, ce as RefreshDataSinkDocument, en as RefreshWidgetDataDocument, k as ReorderDashboardPagesDocument, A as ReorderGlobalFiltersDocument, tn as ReorderWidgetActionsDocument, l as ResetBigConsoleSettingsDocument, m as ResolveEntityCommentDocument, Ve as ResolveWidgetFlagDocument, He as RespondToDashboardLinkDocument, Ue as RestoreDashboardToOriginalDocument, We as RestoreWidgetToOriginalDocument, nn as RetryEventDeliveryDocument, j as RevokeAllSharesDocument, M as RevokeDashboardEmbedPolicyDocument, N as RevokeDashboardShareDocument, P as RotateDashboardEmbedPolicyDocument, we as RunExploreDocument, Ee as SaveExploreDocument, Ge as SetCopyBindingsDocument, Ke as SetDashboardAsMasterDocument, F as SetDefaultViewDocument, I as ShareDashboardDocument, yt as TestParserExpressionDocument, Ct as TestPipelineDocument, rn as TestWebhookMappingDocument, an as ToggleEventWebhookMappingDocument, on as UninstallWidgetTypeDocument, On as UnlinkDataSinkFromWorkflowDocument, qe as UnsetDashboardAsMasterDocument, u as UpdateBigConsoleSettingsDocument, L as UpdateDashboardDocument, R as UpdateDashboardEmbedPolicyDocument, z as UpdateDashboardPageDocument, B as UpdateDashboardShareDocument, V as UpdateDashboardViewDocument, le as UpdateDataSinkDocument, sn as UpdateEventWebhookMappingDocument, H as UpdateGlobalFilterDocument, gt as UpdateParserDocument, wt as UpdatePipelineDocument, ln as UpdateWidgetActionDocument, cn as UpdateWidgetDocument, un as UpdateWidgetDrilldownDocument, kn as UpdateWorkflowDocument, ee as ValidateDashboardImportDocument, Cn as WidgetTypeCatalogDocument, Nn as WorkflowDefinitionExistsDocument, c as WorkspaceInstalledAppsDocument };
|
|
@@ -12080,7 +12080,13 @@ export type BigConsoleWidget = {
|
|
|
12080
12080
|
* latest. Only data sources on the lake have history. When history cannot
|
|
12081
12081
|
* answer, `error` says why and `asOf.reason` has the code; the live value is
|
|
12082
12082
|
* never returned in its place. Masking and row-level security apply as for a
|
|
12083
|
-
* live read.
|
|
12083
|
+
* live read. The widget's saved group-by and aggregation (`config.query`) is applied to the
|
|
12084
|
+
* rows its parser produces. Pass `query` to preview unsaved settings instead:
|
|
12085
|
+
* `{ dimensions: [field], measures: [{ agg, field, as }], series: field,
|
|
12086
|
+
* filters: [{ field, op, value }], orderBy: { by, index, direction }, limit }`
|
|
12087
|
+
* with `agg` one of sum, avg, min, max, count, distinct_count. A query that
|
|
12088
|
+
* cannot run returns its reason in `error`; the unaggregated rows are never
|
|
12089
|
+
* returned in its place.
|
|
12084
12090
|
*/
|
|
12085
12091
|
data?: Maybe<BigConsoleWidgetData>;
|
|
12086
12092
|
/** Data sink ID (v2.0) - for context and drilldowns */
|
|
@@ -12159,6 +12165,7 @@ export type BigConsoleWidget = {
|
|
|
12159
12165
|
/** A visualization component on a dashboard page */
|
|
12160
12166
|
export type BigConsoleWidgetDataArgs = {
|
|
12161
12167
|
asOf?: InputMaybe<Scalars['DateTime']['input']>;
|
|
12168
|
+
query?: InputMaybe<Scalars['JSON']['input']>;
|
|
12162
12169
|
};
|
|
12163
12170
|
/** An interactive action element on a widget (v2.0) */
|
|
12164
12171
|
export type BigConsoleWidgetAction = {
|