react-semaphor 0.1.555 → 0.1.557
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/DATA_APP_SDK.md +6 -29
- package/dist/analytics-protocol/index.js +20 -21
- package/dist/assistant-context/index.js +1 -1
- package/dist/assistant-protocol/index.js +5 -5
- package/dist/brand-studio/index.js +426 -444
- package/dist/briefings/index.js +56 -57
- package/dist/chunks/{analytics-base-schemas-BKs3flFS.js → analytics-base-schemas-BUFUoO6G.js} +2 -2
- package/dist/chunks/{assistant-chat-8NZP6m-u.js → assistant-chat-WMTpYirZ.js} +79 -81
- package/dist/chunks/{bookmark-state-BAeGKd3s.js → bookmark-state-PjQpxbG7.js} +3 -3
- package/dist/chunks/{braces-o9UiRQes.js → braces-BOErQVyi.js} +1 -1
- package/dist/chunks/comparison-window-caption-Dc7BaCMz.js +1218 -0
- package/dist/chunks/{context-BerEBuFR.js → context-DVy4HOU0.js} +1 -1
- package/dist/chunks/{custom-visual-inputs-Gw-Ggg3O.js → custom-visual-inputs-CxYI-gFa.js} +31 -33
- package/dist/chunks/{dashboard-Ds68ckO3.js → dashboard-4D8Vy4pL.js} +1 -1
- package/dist/chunks/{dashboard-briefing-launcher-DlTr-VGc.js → dashboard-briefing-launcher-C4EmOfxs.js} +149 -151
- package/dist/chunks/{dashboard-controls-oNXJZN6x.js → dashboard-controls-DBWykmvL.js} +171 -173
- package/dist/chunks/{dashboard-json-CW7Q_efH.js → dashboard-json-DiX-p0F7.js} +21 -22
- package/dist/chunks/{document-dashboard-inputs-C21mL3ib.js → document-dashboard-inputs-DP5hquBR.js} +32 -32
- package/dist/chunks/{edit-dashboard-visual-BnnT_oKR.js → edit-dashboard-visual-n1jLV_7V.js} +5842 -5955
- package/dist/chunks/{filter-reach-copy-DlNPHbE-.js → filter-reach-copy-BB9iakLA.js} +915 -986
- package/dist/chunks/{filter-value-text-DMrpj4h9.js → filter-value-text-CUBpotVN.js} +5 -5
- package/dist/chunks/{global-date-filter-utils-7OboTgrM.js → global-date-filter-utils-Cc5tqkoW.js} +2908 -3112
- package/dist/chunks/{index-B2k6KtUN.js → index-CgjhzkKM.js} +72 -80
- package/dist/chunks/{index-CtoK1Lgu.js → index-dIV-Gdsb.js} +159 -161
- package/dist/chunks/{layout-grid-Bgzth8vd.js → layout-grid-CcNklCwL.js} +1 -1
- package/dist/chunks/{list-filter-DsaTbM3J.js → list-filter-Ds_4UTpD.js} +1 -1
- package/dist/chunks/{matrix-analytical-definition-DPVGg1mU.js → matrix-analytical-definition-4GTUDheD.js} +22 -22
- package/dist/chunks/{matrix-card-D9bsdAye.js → matrix-card-fS_4O7zA.js} +3 -3
- package/dist/chunks/{matrix-member-presentation-DRWcJ8Mi.js → matrix-member-presentation-Dj7HaAHC.js} +1 -1
- package/dist/chunks/{matrix-operation-contract--lMaLlpV.js → matrix-operation-contract-CpgLZ7E5.js} +52 -52
- package/dist/chunks/{metric-comparison-CYIt2F5X.js → metric-comparison-C8LY7GG5.js} +4 -4
- package/dist/chunks/{model-change-B0rAK-5w.js → model-change-CJEj3ZD6.js} +1 -1
- package/dist/chunks/{palette-D10o_yYX.js → palette-DMkIhagj.js} +1 -1
- package/dist/chunks/{matrix-formatter-K2OVPJQI.js → pivot-result-contract-expectations-DMk-mKhG.js} +451 -402
- package/dist/chunks/pivot-result-identity-CrQ54Xbj.js +77 -0
- package/dist/chunks/{raw-temporal-presentation-CivONfcO.js → raw-temporal-presentation-DdEpgPRB.js} +25 -26
- package/dist/chunks/report-preferences-dialog-CFg5VFLk.js +2109 -0
- package/dist/chunks/{report-runtime-context-BaIKSaja.js → report-runtime-context-CohdtiMg.js} +2 -2
- package/dist/chunks/{resolve-dashboard-input-context-CIm9A8_j.js → resolve-dashboard-input-context-Djl3kCFL.js} +1396 -1550
- package/dist/chunks/{save-CfJpQQ68.js → save-D1EpMcwT.js} +1 -1
- package/dist/chunks/{saved-dashboard-context-akb9JfOL.js → saved-dashboard-context-umlQFevH.js} +9 -9
- package/dist/chunks/selection-reducer-_d6aKJnj.js +46 -0
- package/dist/chunks/{semaphor-ready-indicator-Ba7dwP5_.js → semaphor-ready-indicator-4cOp6sla.js} +54479 -63899
- package/dist/chunks/{shelf-drop-preview-context-5rg3pJHW.js → shelf-drop-preview-context-DAtRuvR7.js} +7 -7
- package/dist/chunks/{source-entity-resolution-CGymm5td.js → source-entity-resolution-DXW1HpKf.js} +1 -1
- package/dist/chunks/{switch-B-UTI6v-.js → switch-9CJt5EF_.js} +1431 -1342
- package/dist/chunks/{table-export-sheet-CgO6gaSM.js → table-export-sheet-CTCTA_bd.js} +1 -1
- package/dist/chunks/{table-settings-DOT_Bv1m.js → table-settings-DF1gdVQR.js} +3 -3
- package/dist/chunks/temporal-input-presentation-DoSniQj1.js +2939 -0
- package/dist/chunks/{token-types-DYECHYGH.js → token-types-DFyLflLY.js} +1 -1
- package/dist/chunks/{upload-BFX7apKV.js → upload-LSNKpt0w.js} +1 -1
- package/dist/chunks/{use-create-flow-overlay-state-BHNs0wl7.js → use-create-flow-overlay-state-esyMT9vU.js} +125 -127
- package/dist/chunks/{validators-ClKLGDGZ.js → validators-hmfNNQz8.js} +305 -307
- package/dist/chunks/zoned-wall-clock-E35Frf9v.js +191 -0
- package/dist/dashboard/index.js +2 -2
- package/dist/dashboard-authoring/index.js +168 -169
- package/dist/data-app-sdk/index.js +789 -4154
- package/dist/data-app-sdk-adapters/index.js +3 -3
- package/dist/data-app-sdk-validation/index.js +6 -6
- package/dist/format-utils/index.js +234 -253
- package/dist/index.js +233 -235
- package/dist/layouts/index.js +1 -1
- package/dist/pdf-export-policy/index.js +9 -11
- package/dist/report-runtime-context/index.js +2 -2
- package/dist/style.css +1 -1
- package/dist/surfboard/index.js +2 -2
- package/dist/types/brand-studio/brand-studio-draft.d.ts +0 -3
- package/dist/types/brand-studio/index.d.ts +1 -1
- package/dist/types/components/visual/data-table/types/data-table.d.ts +0 -1
- package/dist/types/components/visual/shared/utils/table-column-order.d.ts +0 -6
- package/dist/types/data-app-sdk/contracts.d.ts +0 -146
- package/dist/types/data-app-sdk/index.d.ts +0 -2
- package/dist/types/index.js +27 -28
- package/dist/types/lib/api/exports-api.d.ts +1 -1
- package/dist/types/lib/charts/table-chart-types.d.ts +1 -1
- package/dist/types/lib/charts/types.d.ts +2 -2
- package/dist/types/lib/dashboard-viewer/export-table-view.d.ts +0 -3
- package/dist/types/lib/document/document-edits.d.ts +1 -1
- package/dist/types/lib/document/document-section-kinds.d.ts +2 -4
- package/dist/types/lib/document/document-table-data-policy.d.ts +1 -2
- package/dist/types/lib/formatters/grouped-temporal-activation.d.ts +3 -3
- package/dist/types/lib/formatters/grouped-temporal-presentation.d.ts +0 -6
- package/dist/types/lib/query-context/card-server-request.d.ts +0 -1
- package/dist/types/lib/table-formatting/table-formatting-types.d.ts +1 -1
- package/dist/types/lib/types/common-types.d.ts +0 -7
- package/dist/types/lib/types/explorer-types.d.ts +1 -14
- package/dist/types/lib/utils/card-config-utils.d.ts +11 -1
- package/dist/types/shared/dashboard-authoring/card-export-request.d.ts +1 -2
- package/dist/types/shared/dashboard-authoring/filter-model/filter-definitions.d.ts +1 -7
- package/dist/types/shared/dashboard-authoring/legacy-table-routing.d.ts +9 -4
- package/dist/types/shared/format-utils/grouped-table-presentation.d.ts +0 -14
- package/dist/types/shared/format-utils/index.d.ts +0 -2
- package/dist/types/shared/format-utils/pdf-export-policy.d.ts +1 -1
- package/dist/types/shared/format-utils/pivot-result-contract-expectations.d.ts +2 -20
- package/dist/types/shared/format-utils/pivot-result-identity.d.ts +0 -20
- package/dist/types/shared/format-utils/table-export/prepare-table-export.d.ts +0 -1
- package/dist/types/shared/format-utils/table-export/table-export-result.d.ts +0 -4
- package/package.json +2 -4
- package/src/data-app-sdk/README.md +7 -31
- package/dist/chunks/comparison-window-caption-C2WNTlxK.js +0 -1433
- package/dist/chunks/pivot-header-presentation-CX4fkRuG.js +0 -42
- package/dist/chunks/pivot-result-identity-BHJGZwIc.js +0 -94
- package/dist/chunks/pivot-result-lifecycle-BygCpOhk.js +0 -1238
- package/dist/chunks/raw-temporal-contract-WuXA8jBP.js +0 -64
- package/dist/chunks/report-preferences-dialog-D_KyuEFx.js +0 -2261
- package/dist/chunks/selection-reducer-yw_JgICP.js +0 -111
- package/dist/chunks/temporal-bucket-C4rqmwaQ.js +0 -2071
- package/dist/chunks/x-4f5U2XwU.js +0 -100
- package/dist/chunks/zoned-wall-clock-MulfA26h.js +0 -129
- package/dist/types/components/visual/pivot-table/types.d.ts +0 -80
- package/dist/types/data-app-sdk/devtools/index.d.ts +0 -49
- package/dist/types/data-app-sdk/devtools.d.ts +0 -1
- package/dist/types/shared/format-utils/aggregate-table-row-presentation.d.ts +0 -85
- package/dist/types/shared/format-utils/pivot-result-lifecycle.d.ts +0 -55
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { r as G } from "./metric-comparison-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { r as G } from "./metric-comparison-C8LY7GG5.js";
|
|
2
|
+
import { ab as E, aw as Y, av as V, ax as J, au as X, at as ee, a0 as $, P, x as te } from "./validators-hmfNNQz8.js";
|
|
3
|
+
import { c as ne, w as h, z as F } from "./zoned-wall-clock-E35Frf9v.js";
|
|
4
4
|
import { z as u } from "zod";
|
|
5
|
-
import { c as ie } from "./analytics-base-schemas-
|
|
5
|
+
import { c as ie } from "./analytics-base-schemas-BUFUoO6G.js";
|
|
6
6
|
function ae(e, t) {
|
|
7
7
|
return G({ ...e, role: t });
|
|
8
8
|
}
|
|
@@ -55,7 +55,7 @@ function re(e) {
|
|
|
55
55
|
function y(e) {
|
|
56
56
|
return typeof e == "object" && e !== null && !Array.isArray(e);
|
|
57
57
|
}
|
|
58
|
-
function
|
|
58
|
+
function j(e) {
|
|
59
59
|
if (typeof e != "string") return "";
|
|
60
60
|
const t = e.split(".").map((n) => n.trim());
|
|
61
61
|
return t.length > 1 && t.every(Boolean) ? t.join(".") : "";
|
|
@@ -125,9 +125,9 @@ function ce(e, t) {
|
|
|
125
125
|
};
|
|
126
126
|
}
|
|
127
127
|
function le(e, t) {
|
|
128
|
-
const n = y(e.fieldMeta) ? e.fieldMeta : void 0, i = typeof (n == null ? void 0 : n.qualifiedFieldName) == "string" ? n.qualifiedFieldName.trim() : "", a =
|
|
128
|
+
const n = y(e.fieldMeta) ? e.fieldMeta : void 0, i = typeof (n == null ? void 0 : n.qualifiedFieldName) == "string" ? n.qualifiedFieldName.trim() : "", a = j(
|
|
129
129
|
n == null ? void 0 : n.qualifiedFieldName
|
|
130
|
-
), s = typeof e.column == "string" ? e.column.trim() : "", r =
|
|
130
|
+
), s = typeof e.column == "string" ? e.column.trim() : "", r = j(s), o = typeof e.qualifiedTableName == "string" ? e.qualifiedTableName.trim() : "", c = N(
|
|
131
131
|
e.qualifiedTableName
|
|
132
132
|
);
|
|
133
133
|
if (i && !a || t && o && !c || s.includes(".") && !r)
|
|
@@ -216,10 +216,10 @@ function ye(e, t, n) {
|
|
|
216
216
|
...i ? ge({ aggregate: t, semanticAggregate: e.semanticAggregate, dataType: e.dataType }) : {}
|
|
217
217
|
};
|
|
218
218
|
}
|
|
219
|
-
function
|
|
219
|
+
function Pe(e, t, n) {
|
|
220
220
|
return { ...e, ...ye(e, t, n) };
|
|
221
221
|
}
|
|
222
|
-
function
|
|
222
|
+
function je(e) {
|
|
223
223
|
return e.aggregate ?? e.effectiveAggregate;
|
|
224
224
|
}
|
|
225
225
|
function Re(e) {
|
|
@@ -408,7 +408,7 @@ function He(e, t, n) {
|
|
|
408
408
|
return Math.round((i(t) - i(e)) / M);
|
|
409
409
|
}
|
|
410
410
|
const Ie = /^(\d{4})-(\d{2})-(\d{2})$/;
|
|
411
|
-
function
|
|
411
|
+
function Ke(e, t) {
|
|
412
412
|
const { year: n, month: i, day: a } = F(e, t);
|
|
413
413
|
return `${String(n).padStart(4, "0")}-${String(i).padStart(2, "0")}-${String(a).padStart(2, "0")}`;
|
|
414
414
|
}
|
|
@@ -418,7 +418,7 @@ function Z(e) {
|
|
|
418
418
|
const n = Number(t[1]), i = Number(t[2]), a = Number(t[3]);
|
|
419
419
|
return i < 1 || i > 12 || a < 1 || a > B(n, i) ? null : { year: n, month: i, day: a };
|
|
420
420
|
}
|
|
421
|
-
function
|
|
421
|
+
function Qe(e, t) {
|
|
422
422
|
const n = Z(e);
|
|
423
423
|
if (!n) return null;
|
|
424
424
|
const i = { ...n, hour: 0, minute: 0, second: 0, millisecond: 0 };
|
|
@@ -559,7 +559,7 @@ function H(e) {
|
|
|
559
559
|
...e.kind === "physical" ? { dialect: e.dialect, connectionType: e.connectionType } : {}
|
|
560
560
|
};
|
|
561
561
|
}
|
|
562
|
-
function
|
|
562
|
+
function K(e) {
|
|
563
563
|
const { label: t, source: n, ...i } = e;
|
|
564
564
|
return { ...i, source: n && H(n) };
|
|
565
565
|
}
|
|
@@ -577,7 +577,7 @@ function k(e) {
|
|
|
577
577
|
inputs: Object.fromEntries(
|
|
578
578
|
Object.entries(s).map(([o, c]) => [
|
|
579
579
|
o,
|
|
580
|
-
{ ...c, field:
|
|
580
|
+
{ ...c, field: K(c.field) }
|
|
581
581
|
])
|
|
582
582
|
)
|
|
583
583
|
};
|
|
@@ -585,7 +585,7 @@ function k(e) {
|
|
|
585
585
|
function S(e) {
|
|
586
586
|
const { derivedField: t, ...n } = e;
|
|
587
587
|
return {
|
|
588
|
-
...
|
|
588
|
+
...K(n),
|
|
589
589
|
derivedField: t && k(t)
|
|
590
590
|
};
|
|
591
591
|
}
|
|
@@ -611,7 +611,7 @@ function D(e) {
|
|
|
611
611
|
}
|
|
612
612
|
};
|
|
613
613
|
}
|
|
614
|
-
function
|
|
614
|
+
function Q(e) {
|
|
615
615
|
return {
|
|
616
616
|
...e,
|
|
617
617
|
conditions: e.conditions.map(
|
|
@@ -620,7 +620,7 @@ function K(e) {
|
|
|
620
620
|
field: D(n)
|
|
621
621
|
})
|
|
622
622
|
),
|
|
623
|
-
groups: e.groups.map(
|
|
623
|
+
groups: e.groups.map(Q)
|
|
624
624
|
};
|
|
625
625
|
}
|
|
626
626
|
function Je(e) {
|
|
@@ -641,7 +641,7 @@ function Je(e) {
|
|
|
641
641
|
definition: k(t.definition)
|
|
642
642
|
}
|
|
643
643
|
),
|
|
644
|
-
filters: e.filters &&
|
|
644
|
+
filters: e.filters && Q(e.filters),
|
|
645
645
|
joinPlan: e.joinPlan && {
|
|
646
646
|
...e.joinPlan,
|
|
647
647
|
// relationshipName participates in governed relationship resolution.
|
|
@@ -659,7 +659,7 @@ function Je(e) {
|
|
|
659
659
|
},
|
|
660
660
|
// Sort scopes are keyed overrides, unlike ordered axes/calculation inputs.
|
|
661
661
|
sorts: [...e.sorts].sort((t, n) => {
|
|
662
|
-
const i =
|
|
662
|
+
const i = P(t), a = P(n);
|
|
663
663
|
return i < a ? -1 : i > a ? 1 : 0;
|
|
664
664
|
})
|
|
665
665
|
};
|
|
@@ -676,9 +676,9 @@ export {
|
|
|
676
676
|
q as I,
|
|
677
677
|
x as J,
|
|
678
678
|
He as K,
|
|
679
|
-
|
|
679
|
+
Ke as L,
|
|
680
680
|
Z as M,
|
|
681
|
-
|
|
681
|
+
Qe as N,
|
|
682
682
|
Ge as O,
|
|
683
683
|
Ye as P,
|
|
684
684
|
Ve as Q,
|
|
@@ -701,7 +701,7 @@ export {
|
|
|
701
701
|
U as k,
|
|
702
702
|
ye as l,
|
|
703
703
|
ge as m,
|
|
704
|
-
|
|
704
|
+
je as n,
|
|
705
705
|
Re as o,
|
|
706
706
|
C as p,
|
|
707
707
|
xe as q,
|
|
@@ -710,7 +710,7 @@ export {
|
|
|
710
710
|
Le as t,
|
|
711
711
|
Ue as u,
|
|
712
712
|
ze as v,
|
|
713
|
-
|
|
713
|
+
Pe as w,
|
|
714
714
|
z as x,
|
|
715
715
|
pe as y,
|
|
716
716
|
he as z
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { l as s, o as f, q as u } from "./validators-
|
|
2
|
-
import "./matrix-operation-contract
|
|
3
|
-
import "./analytics-base-schemas-
|
|
1
|
+
import { l as s, o as f, q as u } from "./validators-hmfNNQz8.js";
|
|
2
|
+
import "./matrix-operation-contract-CpgLZ7E5.js";
|
|
3
|
+
import "./analytics-base-schemas-BUFUoO6G.js";
|
|
4
4
|
import "zod";
|
|
5
5
|
function c(i, r = {}) {
|
|
6
6
|
var o, e;
|
package/dist/chunks/{matrix-operation-contract--lMaLlpV.js → matrix-operation-contract-CpgLZ7E5.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z as t } from "zod";
|
|
2
|
-
import { z as je, E as Fe, F as Le, I as Ue, J as qe, s as U, x as Z, n as De, C as Me, D as ce, f as Be, r as Ge, y as ze, m as Ve, o as We,
|
|
3
|
-
import { I as w, A as ue,
|
|
4
|
-
const
|
|
2
|
+
import { z as je, E as Fe, F as Le, I as Ue, J as qe, s as U, x as Z, n as De, C as Me, D as ce, f as Be, r as Ge, y as ze, m as Ve, o as We, a as le, u as Xe } from "./analytics-base-schemas-BUFUoO6G.js";
|
|
3
|
+
import { I as w, A as ue, Q as G, aM as ee, t as b, J as Ke, aG as $, aN as Ze, B as $e, s as Ye, x as de, a8 as He, r as Qe, m as Je } from "./validators-hmfNNQz8.js";
|
|
4
|
+
const Y = {
|
|
5
5
|
answerSummary: "string",
|
|
6
6
|
responseDetail: "responseDetail",
|
|
7
7
|
mode: "string",
|
|
@@ -275,7 +275,7 @@ const ut = t.object({
|
|
|
275
275
|
}).strict(), ge = t.object({
|
|
276
276
|
levels: t.array(ne).readonly(),
|
|
277
277
|
measures: t.array(ne).readonly()
|
|
278
|
-
}).strict(),
|
|
278
|
+
}).strict(), H = t.object({
|
|
279
279
|
code: t.enum(st),
|
|
280
280
|
message: y,
|
|
281
281
|
/** Technical cause for dashboard owners; never shown as the primary copy. */
|
|
@@ -299,7 +299,7 @@ function ye(e) {
|
|
|
299
299
|
capabilities: mt,
|
|
300
300
|
pages: t.array(lt).readonly(),
|
|
301
301
|
blocks: t.array(e).readonly(),
|
|
302
|
-
failures: t.array(
|
|
302
|
+
failures: t.array(H).readonly()
|
|
303
303
|
}).strict().superRefine((n, a) => {
|
|
304
304
|
const r = new Set(
|
|
305
305
|
n.descriptors.levels.map((i) => i.id)
|
|
@@ -366,7 +366,7 @@ function Ae(e) {
|
|
|
366
366
|
status: t.enum(["success", "partial"]),
|
|
367
367
|
window: e
|
|
368
368
|
}).strict(),
|
|
369
|
-
t.object({ status: t.literal("failed"), failure:
|
|
369
|
+
t.object({ status: t.literal("failed"), failure: H }).strict()
|
|
370
370
|
]).superRefine((n, a) => {
|
|
371
371
|
const r = n;
|
|
372
372
|
if (r.status === "failed") return;
|
|
@@ -611,15 +611,15 @@ function kt(e) {
|
|
|
611
611
|
}
|
|
612
612
|
}
|
|
613
613
|
const wt = Object.fromEntries(
|
|
614
|
-
Object.entries(
|
|
614
|
+
Object.entries(Y).map(
|
|
615
615
|
([e, n]) => [e, kt(n)]
|
|
616
616
|
)
|
|
617
617
|
), vt = t.object(wt).strict(), Tt = new Set(
|
|
618
|
-
Object.keys(
|
|
618
|
+
Object.keys(Y)
|
|
619
619
|
);
|
|
620
620
|
function fn() {
|
|
621
621
|
return Object.keys(
|
|
622
|
-
|
|
622
|
+
Y
|
|
623
623
|
);
|
|
624
624
|
}
|
|
625
625
|
function Et(e) {
|
|
@@ -641,7 +641,7 @@ const Te = 100, F = "selection:";
|
|
|
641
641
|
function Ee(e) {
|
|
642
642
|
return [
|
|
643
643
|
de(e.source),
|
|
644
|
-
|
|
644
|
+
He(e.name),
|
|
645
645
|
e.sourceField ?? ""
|
|
646
646
|
].join("::");
|
|
647
647
|
}
|
|
@@ -771,7 +771,7 @@ const Ot = t.union([
|
|
|
771
771
|
for (let a = 0; a < e.conditions.length; a += 1) {
|
|
772
772
|
const r = e.conditions[a];
|
|
773
773
|
e.conditions.findIndex(
|
|
774
|
-
(c, i) => i < a &&
|
|
774
|
+
(c, i) => i < a && Ye(c.field, r.field)
|
|
775
775
|
) !== -1 && n.addIssue({
|
|
776
776
|
code: t.ZodIssueCode.custom,
|
|
777
777
|
message: "A selection tuple can contain only one condition per field.",
|
|
@@ -782,7 +782,7 @@ const Ot = t.union([
|
|
|
782
782
|
id: t.string().min(1),
|
|
783
783
|
tuples: t.array(Lt).min(1).max(Te)
|
|
784
784
|
}).strict(), Ut = t.object({ key: t.string().min(1), nativeText: t.string().nullable() }).strict(), qt = t.object({
|
|
785
|
-
executionInstant: t.string().refine((e) =>
|
|
785
|
+
executionInstant: t.string().refine((e) => Qe(e) !== null, {
|
|
786
786
|
message: "executionInstant must be an ISO instant"
|
|
787
787
|
}),
|
|
788
788
|
dataAnchors: t.array(Ut).default([])
|
|
@@ -1171,7 +1171,7 @@ function $t(e) {
|
|
|
1171
1171
|
var n, a;
|
|
1172
1172
|
return ((n = e.derivedField) == null ? void 0 : n.computeStage) || ((a = e.calculatedFormula) == null ? void 0 : a.computeStage);
|
|
1173
1173
|
}
|
|
1174
|
-
const
|
|
1174
|
+
const Q = {
|
|
1175
1175
|
stage: "aggregate",
|
|
1176
1176
|
calls: [],
|
|
1177
1177
|
windowed: !1,
|
|
@@ -1180,7 +1180,7 @@ const J = {
|
|
|
1180
1180
|
outputType: "numeric",
|
|
1181
1181
|
identity: "unresolved",
|
|
1182
1182
|
unresolved: !0
|
|
1183
|
-
}, Pe = { ...
|
|
1183
|
+
}, Pe = { ...Q, stage: "row" };
|
|
1184
1184
|
function K(e) {
|
|
1185
1185
|
return {
|
|
1186
1186
|
stage: "row",
|
|
@@ -1199,19 +1199,19 @@ function B(e, n) {
|
|
|
1199
1199
|
const a = (r = n.derivedField) == null ? void 0 : r.aggregationBehavior;
|
|
1200
1200
|
return !a || e.unresolved ? e : a === "additive" ? e.reaggregation.kind === "additive" ? e : { ...e, reaggregation: { kind: "additive" } } : { ...e, reaggregation: { kind: "none", reason: "declared" } };
|
|
1201
1201
|
}
|
|
1202
|
-
function
|
|
1203
|
-
if (!e) return
|
|
1202
|
+
function Yt(e, n) {
|
|
1203
|
+
if (!e) return Q;
|
|
1204
1204
|
if (typeof e.expression == "string" && e.expression.trim()) {
|
|
1205
|
-
const r =
|
|
1205
|
+
const r = J(e, n + 1);
|
|
1206
1206
|
return r === "row_input" ? "raw" : r.unresolved || r.stage === "aggregate" || r.outer ? r : "raw";
|
|
1207
1207
|
}
|
|
1208
1208
|
const a = X(e.aggregate);
|
|
1209
1209
|
return a ? K(a) : "raw";
|
|
1210
1210
|
}
|
|
1211
|
-
const
|
|
1212
|
-
function
|
|
1211
|
+
const Ht = 12;
|
|
1212
|
+
function J(e, n) {
|
|
1213
1213
|
var E;
|
|
1214
|
-
if (n >
|
|
1214
|
+
if (n > Ht) return Q;
|
|
1215
1215
|
const a = typeof e.expression == "string" ? e.expression.trim() : "";
|
|
1216
1216
|
if (!a)
|
|
1217
1217
|
return B(
|
|
@@ -1223,12 +1223,12 @@ function Q(e, n) {
|
|
|
1223
1223
|
return S ? s[Number(S[1])] : void 0;
|
|
1224
1224
|
}, i = /* @__PURE__ */ new Map();
|
|
1225
1225
|
for (const u of r.tokensOutsideAggregates)
|
|
1226
|
-
i.has(u) || i.set(u,
|
|
1226
|
+
i.has(u) || i.set(u, Yt(c(u), n));
|
|
1227
1227
|
const l = r.calls.some(
|
|
1228
1228
|
(u) => u.tokens.some((S) => {
|
|
1229
1229
|
const k = c(S);
|
|
1230
1230
|
if (!(k != null && k.expression)) return !1;
|
|
1231
|
-
const L =
|
|
1231
|
+
const L = J(k, n + 1);
|
|
1232
1232
|
return L !== "row_input" && (L.unresolved || L.stage === "aggregate");
|
|
1233
1233
|
})
|
|
1234
1234
|
), m = Array.from(i.values()).filter(
|
|
@@ -1283,26 +1283,26 @@ function Q(e, n) {
|
|
|
1283
1283
|
);
|
|
1284
1284
|
}
|
|
1285
1285
|
function vn(e) {
|
|
1286
|
-
const n =
|
|
1286
|
+
const n = J(e, 0);
|
|
1287
1287
|
return n === "row_input" ? Pe : n;
|
|
1288
1288
|
}
|
|
1289
|
-
const
|
|
1290
|
-
intent:
|
|
1289
|
+
const Qt = t.object({
|
|
1290
|
+
intent: Je,
|
|
1291
1291
|
matrixWindowRequest: pe
|
|
1292
|
-
}).strict(),
|
|
1292
|
+
}).strict(), Jt = t.object({
|
|
1293
1293
|
runtimeFilters: G.innerType().shape.filters,
|
|
1294
1294
|
runtimeSorts: G.innerType().shape.sorts.optional()
|
|
1295
1295
|
});
|
|
1296
1296
|
function Tn(e) {
|
|
1297
|
-
return
|
|
1297
|
+
return Jt.parse(e);
|
|
1298
1298
|
}
|
|
1299
1299
|
const en = {
|
|
1300
1300
|
// A window executes a governed statement set, not one compiled query.
|
|
1301
1301
|
compiledQuery: t.never().optional(),
|
|
1302
|
-
intent:
|
|
1302
|
+
intent: Qt.shape.intent,
|
|
1303
1303
|
resultShape: t.literal("matrix"),
|
|
1304
1304
|
result: be.optional(),
|
|
1305
|
-
metadata: t.object({ rowLimitExceeded: t.boolean(), matrixFailure:
|
|
1305
|
+
metadata: t.object({ rowLimitExceeded: t.boolean(), matrixFailure: H.optional() }).passthrough()
|
|
1306
1306
|
}, tn = ve.extend(en), En = tn.superRefine((e, n) => {
|
|
1307
1307
|
e.status === "failed" == !!e.result && n.addIssue({ code: "custom", message: "Only answered or partial Matrix execution carries a window." }), e.result && e.status === "partial" != e.result.window.failures.length > 0 && n.addIssue({ code: "custom", message: "Matrix execution status must match acquired window failures." });
|
|
1308
1308
|
});
|
|
@@ -1326,7 +1326,7 @@ export {
|
|
|
1326
1326
|
nt as P,
|
|
1327
1327
|
at as Q,
|
|
1328
1328
|
sn as R,
|
|
1329
|
-
|
|
1329
|
+
Te as S,
|
|
1330
1330
|
on as T,
|
|
1331
1331
|
st as U,
|
|
1332
1332
|
cn as V,
|
|
@@ -1339,7 +1339,7 @@ export {
|
|
|
1339
1339
|
ut as a0,
|
|
1340
1340
|
dt as a1,
|
|
1341
1341
|
ne as a2,
|
|
1342
|
-
|
|
1342
|
+
H as a3,
|
|
1343
1343
|
mt as a4,
|
|
1344
1344
|
Se as a5,
|
|
1345
1345
|
pt as a6,
|
|
@@ -1355,33 +1355,33 @@ export {
|
|
|
1355
1355
|
ae as ag,
|
|
1356
1356
|
At as ah,
|
|
1357
1357
|
hn as ai,
|
|
1358
|
-
|
|
1358
|
+
Jt as aj,
|
|
1359
1359
|
Tn as ak,
|
|
1360
1360
|
En as al,
|
|
1361
|
-
|
|
1362
|
-
|
|
1361
|
+
Qt as am,
|
|
1362
|
+
_n as b,
|
|
1363
1363
|
An as c,
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1364
|
+
Sn as d,
|
|
1365
|
+
Y as e,
|
|
1366
|
+
bt as f,
|
|
1367
1367
|
fn as g,
|
|
1368
|
-
|
|
1368
|
+
It as h,
|
|
1369
1369
|
Et as i,
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1370
|
+
_e as j,
|
|
1371
|
+
ke as k,
|
|
1372
|
+
we as l,
|
|
1373
|
+
ve as m,
|
|
1374
|
+
_t as n,
|
|
1375
|
+
wt as o,
|
|
1376
1376
|
gn as p,
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1377
|
+
vt as q,
|
|
1378
|
+
be as r,
|
|
1379
|
+
se as s,
|
|
1380
|
+
Ee as t,
|
|
1381
|
+
yn as u,
|
|
1382
|
+
Rt as v,
|
|
1383
|
+
Re as w,
|
|
1384
|
+
Ct as x,
|
|
1385
1385
|
z as y,
|
|
1386
1386
|
oe as z
|
|
1387
1387
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { r as k } from "./validators-
|
|
1
|
+
import { T as m, t as g, a as C } from "./analytics-base-schemas-BUFUoO6G.js";
|
|
2
|
+
import { r as k } from "./validators-hmfNNQz8.js";
|
|
3
3
|
function w(e) {
|
|
4
|
-
const r =
|
|
4
|
+
const r = C.safeParse(e);
|
|
5
5
|
return r.success ? { ok: !0, value: r.data } : {
|
|
6
6
|
ok: !1,
|
|
7
7
|
error: {
|
|
@@ -26,7 +26,7 @@ function f(e, r) {
|
|
|
26
26
|
);
|
|
27
27
|
if (!o.ok || !o.value)
|
|
28
28
|
return o;
|
|
29
|
-
const n =
|
|
29
|
+
const n = g(
|
|
30
30
|
o.value.granularity
|
|
31
31
|
);
|
|
32
32
|
return e.dataType !== n ? {
|