react-semaphor 0.1.554 → 0.1.556
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/analytics-protocol/index.js +10 -10
- package/dist/assistant-context/index.js +1 -1
- package/dist/assistant-protocol/index.js +5 -5
- package/dist/brand-studio/index.js +438 -455
- package/dist/briefings/index.js +6 -6
- package/dist/chunks/{analytics-base-schemas-BKs3flFS.js → analytics-base-schemas-BUFUoO6G.js} +2 -2
- package/dist/chunks/{assistant-chat-ngs5dTvo.js → assistant-chat-C7Acww1T.js} +15 -15
- package/dist/chunks/{bookmark-state-BAeGKd3s.js → bookmark-state-7iZErWnR.js} +3 -3
- package/dist/chunks/comparison-window-caption-BseG5aOZ.js +1221 -0
- package/dist/chunks/{context-BerEBuFR.js → context-DVy4HOU0.js} +1 -1
- package/dist/chunks/{custom-visual-inputs-cTHqcqPu.js → custom-visual-inputs-ChuKjx27.js} +31 -33
- package/dist/chunks/{dashboard-548YvEW5.js → dashboard-BU6rE5kV.js} +1 -1
- package/dist/chunks/{dashboard-briefing-launcher-ptIRn5FS.js → dashboard-briefing-launcher-qrYd2zkN.js} +15 -15
- package/dist/chunks/{dashboard-controls-CqyUTN6Q.js → dashboard-controls-BsapXI2H.js} +14 -14
- package/dist/chunks/{dashboard-json-CvDFipA0.js → dashboard-json-CJqPqYnI.js} +5 -5
- package/dist/chunks/{document-dashboard-inputs-DrA9m-5H.js → document-dashboard-inputs-BNSprf5_.js} +12 -12
- package/dist/chunks/{edit-dashboard-visual-BHL0AlIj.js → edit-dashboard-visual-CjAdV-WG.js} +4603 -4687
- package/dist/chunks/{filter-reach-copy-CyftKCZE.js → filter-reach-copy-BTrqtFkh.js} +917 -987
- package/dist/chunks/{filter-value-text-DMrpj4h9.js → filter-value-text-CJTJDCym.js} +4 -4
- package/dist/chunks/{global-date-filter-utils-Or-3DL3k.js → global-date-filter-utils-CTVf3dG3.js} +2904 -3102
- package/dist/chunks/{index-ClwmmbUH.js → index-B_vIRa-q.js} +12 -19
- package/dist/chunks/{index-CtoK1Lgu.js → index-dIV-Gdsb.js} +159 -161
- package/dist/chunks/{matrix-analytical-definition-DPVGg1mU.js → matrix-analytical-definition-Cg0ioFGQ.js} +21 -21
- package/dist/chunks/matrix-card-yYibXSw1.js +42 -0
- package/dist/chunks/{matrix-formatter-K2OVPJQI.js → matrix-formatter-C2kjsCDf.js} +44 -44
- package/dist/chunks/{matrix-member-presentation-DRWcJ8Mi.js → matrix-member-presentation-DEEauKXC.js} +1 -1
- package/dist/chunks/{matrix-operation-contract--lMaLlpV.js → matrix-operation-contract-C1G6AJNh.js} +33 -33
- package/dist/chunks/{metric-comparison-CYIt2F5X.js → metric-comparison-BfcmwxM1.js} +4 -4
- package/dist/chunks/{model-change-B0rAK-5w.js → model-change-CJEj3ZD6.js} +1 -1
- package/dist/chunks/pivot-result-contract-expectations-fKBHFPfz.js +56 -0
- package/dist/chunks/pivot-result-identity-CWi5WrrY.js +77 -0
- package/dist/chunks/{raw-temporal-contract-WuXA8jBP.js → raw-temporal-contract-CjHaUIsE.js} +1 -1
- package/dist/chunks/{raw-temporal-presentation-gooAp93G.js → raw-temporal-presentation-DWzLIHc3.js} +8 -8
- package/dist/chunks/{report-preferences-dialog-2tqY0BMQ.js → report-preferences-dialog-D_wrbIQt.js} +17 -17
- package/dist/chunks/{report-runtime-context-BaIKSaja.js → report-runtime-context-BgM-iNWB.js} +2 -2
- package/dist/chunks/{resolve-dashboard-input-context-bOKDTHfJ.js → resolve-dashboard-input-context-Df8V5QHW.js} +1415 -1567
- package/dist/chunks/{saved-dashboard-context--Hq1juf9.js → saved-dashboard-context-VvXI6r03.js} +9 -9
- package/dist/chunks/{selection-reducer-yw_JgICP.js → selection-reducer-By4CSmEF.js} +1 -1
- package/dist/chunks/{semaphor-ready-indicator-yM4wo-FH.js → semaphor-ready-indicator-fejZmdq9.js} +49593 -56071
- package/dist/chunks/{shelf-drop-preview-context-BuLzyT1T.js → shelf-drop-preview-context-BuTCXe-S.js} +7 -7
- package/dist/chunks/{source-entity-resolution-CGymm5td.js → source-entity-resolution-B46EZIzX.js} +1 -1
- package/dist/chunks/{switch-B-UTI6v-.js → switch-Bq92UGId.js} +3 -3
- package/dist/chunks/{table-export-sheet-CgO6gaSM.js → table-export-sheet-noKl8-en.js} +1 -1
- package/dist/chunks/{table-settings-DOT_Bv1m.js → table-settings-PpINOzw8.js} +3 -3
- package/dist/chunks/{temporal-bucket-C4rqmwaQ.js → temporal-bucket-DzyadxVY.js} +53 -53
- package/dist/chunks/temporal-input-presentation-CJWS4d0L.js +879 -0
- package/dist/chunks/{token-types-DYECHYGH.js → token-types--0bgRCaO.js} +1 -1
- package/dist/chunks/{use-create-flow-overlay-state-DSXC-LD7.js → use-create-flow-overlay-state-Cz-ve64t.js} +7 -7
- package/dist/chunks/{validators-ClKLGDGZ.js → validators-CZo_H4E6.js} +305 -307
- package/dist/dashboard/index.js +2 -2
- package/dist/dashboard-authoring/index.js +65 -63
- package/dist/data-app-sdk/index.js +6 -6
- 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 +207 -223
- package/dist/index.js +96 -97
- 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/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/index.d.ts +1 -1
- package/dist/types/shared/dashboard-authoring/legacy-table-routing.d.ts +9 -4
- package/dist/types/shared/dashboard-authoring/matrix-card.d.ts +8 -0
- 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 -2
- package/dist/chunks/comparison-window-caption-C2WNTlxK.js +0 -1433
- package/dist/chunks/matrix-card-CVFVtqyo.js +0 -38
- 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/types/components/visual/pivot-table/types.d.ts +0 -80
- 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 {
|
|
1
|
+
import { r as G } from "./metric-comparison-BfcmwxM1.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-CZo_H4E6.js";
|
|
3
3
|
import { b as ne, w as h, z as F } from "./zoned-wall-clock-MulfA26h.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
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { l as s, o as f, q as u } from "./validators-CZo_H4E6.js";
|
|
2
|
+
import "./matrix-operation-contract-C1G6AJNh.js";
|
|
3
|
+
import "./analytics-base-schemas-BUFUoO6G.js";
|
|
4
|
+
import "zod";
|
|
5
|
+
function c(i, r = {}) {
|
|
6
|
+
var o, e;
|
|
7
|
+
if (i.type !== "matrixTable" || !i.config || typeof i.config != "object" || !("matrix" in i.config)) return { status: "absent" };
|
|
8
|
+
if ((o = i.sql) != null && o.trim() || (e = i.python) != null && e.trim())
|
|
9
|
+
return { status: "invalid", error: new Error("A Matrix definition requires a config-only Matrix card.") };
|
|
10
|
+
if ("matrixIntent" in i.config && i.config.matrixIntent !== void 0) return { status: "invalid", error: new Error("A Matrix card cannot contain two definitions.") };
|
|
11
|
+
const t = (r.authoringDraft ? s : f).safeParse(i.config.matrix);
|
|
12
|
+
return t.success ? { status: "ready", config: t.data } : { status: "invalid", error: t.error };
|
|
13
|
+
}
|
|
14
|
+
function p(i) {
|
|
15
|
+
const r = c(i);
|
|
16
|
+
if (r.status === "invalid") throw r.error;
|
|
17
|
+
return r.status === "ready" ? r.config : void 0;
|
|
18
|
+
}
|
|
19
|
+
function d(i) {
|
|
20
|
+
const r = [], n = (t, o, e) => {
|
|
21
|
+
r.push({ field: t, place: o, ownerId: e }), t.derivedField && Object.values(t.derivedField.inputs).forEach((a) => n(a.field, "input", e));
|
|
22
|
+
};
|
|
23
|
+
return i.rows.forEach((t) => n(t.field, "row", t.id)), i.columns.forEach((t) => n(t.field, "column", t.id)), i.measures.forEach((t) => {
|
|
24
|
+
t.kind === "aggregate" ? n(t.field, "measure", t.id) : Object.values(t.definition.inputs).forEach((o) => n(o.field, "input", t.id));
|
|
25
|
+
}), r;
|
|
26
|
+
}
|
|
27
|
+
function m(i) {
|
|
28
|
+
return d(i).map((r) => r.field);
|
|
29
|
+
}
|
|
30
|
+
function v(i) {
|
|
31
|
+
return u([
|
|
32
|
+
i.source,
|
|
33
|
+
...m(i).map((r) => r.source ?? i.source)
|
|
34
|
+
]);
|
|
35
|
+
}
|
|
36
|
+
export {
|
|
37
|
+
d as a,
|
|
38
|
+
v as b,
|
|
39
|
+
c as i,
|
|
40
|
+
m,
|
|
41
|
+
p as r
|
|
42
|
+
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./matrix-operation-contract
|
|
3
|
-
import { j as be } from "./analytics-base-schemas-
|
|
1
|
+
import { aI as ge, t as U, ab as ye, S as we } from "./validators-CZo_H4E6.js";
|
|
2
|
+
import "./matrix-operation-contract-C1G6AJNh.js";
|
|
3
|
+
import { j as be } from "./analytics-base-schemas-BUFUoO6G.js";
|
|
4
4
|
import "zod";
|
|
5
|
-
import { W as Me, X as se, S as Z, U as
|
|
5
|
+
import { W as Me, X as se, S as Z, U as N, Y as oe, Z as ue, Q as xe, j as De, i as q, E as pe, G as Oe, p as Te, r as ve, t as Pe, h as Se, l as ke } from "./temporal-bucket-DzyadxVY.js";
|
|
6
6
|
function d(e) {
|
|
7
7
|
const t = Object.prototype.toString.call(e);
|
|
8
8
|
return e instanceof Date || typeof e == "object" && t === "[object Date]" ? new e.constructor(+e) : typeof e == "number" || t === "[object Number]" || typeof e == "string" || t === "[object String]" ? new Date(e) : /* @__PURE__ */ new Date(NaN);
|
|
@@ -48,19 +48,19 @@ function E(e) {
|
|
|
48
48
|
);
|
|
49
49
|
return n.setUTCFullYear(t.getFullYear()), +e - +n;
|
|
50
50
|
}
|
|
51
|
-
function
|
|
51
|
+
function Ne(e, t) {
|
|
52
52
|
const n = V(e), r = V(t), a = +n - E(n), i = +r - E(r);
|
|
53
53
|
return Math.round((a - i) / Me);
|
|
54
54
|
}
|
|
55
|
-
function
|
|
55
|
+
function Ce(e) {
|
|
56
56
|
const t = ce(e), n = x(e, 0);
|
|
57
57
|
return n.setFullYear(t, 0, 4), n.setHours(0, 0, 0, 0), Y(n);
|
|
58
58
|
}
|
|
59
|
-
function
|
|
59
|
+
function C(e, t) {
|
|
60
60
|
const n = d(e), r = d(t), a = n.getTime() - r.getTime();
|
|
61
61
|
return a < 0 ? -1 : a > 0 ? 1 : a;
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function Fe(e) {
|
|
64
64
|
return x(e, Date.now());
|
|
65
65
|
}
|
|
66
66
|
function Ye(e) {
|
|
@@ -89,16 +89,16 @@ function _e(e) {
|
|
|
89
89
|
const t = d(e);
|
|
90
90
|
return t.setHours(23, 59, 59, 999), t;
|
|
91
91
|
}
|
|
92
|
-
function
|
|
92
|
+
function Ie(e) {
|
|
93
93
|
const t = d(e), n = t.getMonth();
|
|
94
94
|
return t.setFullYear(t.getFullYear(), n + 1, 0), t.setHours(23, 59, 59, 999), t;
|
|
95
95
|
}
|
|
96
|
-
function
|
|
96
|
+
function qe(e) {
|
|
97
97
|
const t = d(e);
|
|
98
|
-
return +_e(t) == +
|
|
98
|
+
return +_e(t) == +Ie(t);
|
|
99
99
|
}
|
|
100
100
|
function Re(e, t) {
|
|
101
|
-
const n = d(e), r = d(t), a =
|
|
101
|
+
const n = d(e), r = d(t), a = C(n, r), i = Math.abs(
|
|
102
102
|
Le(n, r)
|
|
103
103
|
);
|
|
104
104
|
let s;
|
|
@@ -106,8 +106,8 @@ function Re(e, t) {
|
|
|
106
106
|
s = 0;
|
|
107
107
|
else {
|
|
108
108
|
n.getMonth() === 1 && n.getDate() > 27 && n.setDate(30), n.setMonth(n.getMonth() - a * i);
|
|
109
|
-
let o =
|
|
110
|
-
|
|
109
|
+
let o = C(n, r) === -a;
|
|
110
|
+
qe(d(e)) && i === 1 && C(e, r) === 1 && (o = !1), s = a * (i - Number(o));
|
|
111
111
|
}
|
|
112
112
|
return s === 0 ? 0 : s;
|
|
113
113
|
}
|
|
@@ -552,10 +552,10 @@ const ct = /^(\d+)(th|st|nd|rd)?/i, ft = /\d+/i, lt = {
|
|
|
552
552
|
};
|
|
553
553
|
function pt(e) {
|
|
554
554
|
const t = d(e);
|
|
555
|
-
return
|
|
555
|
+
return Ne(t, He(t)) + 1;
|
|
556
556
|
}
|
|
557
557
|
function Ot(e) {
|
|
558
|
-
const t = d(e), n = +Y(t) - +
|
|
558
|
+
const t = d(e), n = +Y(t) - +Ce(t);
|
|
559
559
|
return Math.round(n / se) + 1;
|
|
560
560
|
}
|
|
561
561
|
function le(e, t) {
|
|
@@ -1188,22 +1188,22 @@ const Q = (e, t) => {
|
|
|
1188
1188
|
}, St = {
|
|
1189
1189
|
p: me,
|
|
1190
1190
|
P: Pt
|
|
1191
|
-
}, kt = /^D+$/, Wt = /^Y+$/,
|
|
1192
|
-
function
|
|
1191
|
+
}, kt = /^D+$/, Wt = /^Y+$/, Nt = ["D", "DD", "YY", "YYYY"];
|
|
1192
|
+
function Ct(e) {
|
|
1193
1193
|
return kt.test(e);
|
|
1194
1194
|
}
|
|
1195
|
-
function
|
|
1195
|
+
function Ft(e) {
|
|
1196
1196
|
return Wt.test(e);
|
|
1197
1197
|
}
|
|
1198
1198
|
function Yt(e, t, n) {
|
|
1199
1199
|
const r = Et(e, t, n);
|
|
1200
|
-
if (console.warn(r),
|
|
1200
|
+
if (console.warn(r), Nt.includes(e)) throw new RangeError(r);
|
|
1201
1201
|
}
|
|
1202
1202
|
function Et(e, t, n) {
|
|
1203
1203
|
const r = e[0] === "Y" ? "years" : "days of the month";
|
|
1204
1204
|
return `Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
|
|
1205
1205
|
}
|
|
1206
|
-
const Lt = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, zt = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Xt = /^'([^]*?)'?$/, _t = /''/g,
|
|
1206
|
+
const Lt = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, zt = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Xt = /^'([^]*?)'?$/, _t = /''/g, It = /[a-zA-Z]/;
|
|
1207
1207
|
function R(e, t, n) {
|
|
1208
1208
|
var u, g, c, h, y, O, H, j;
|
|
1209
1209
|
const r = P(), a = (n == null ? void 0 : n.locale) ?? r.locale ?? fe, i = (n == null ? void 0 : n.firstWeekContainsDate) ?? ((g = (u = n == null ? void 0 : n.locale) == null ? void 0 : u.options) == null ? void 0 : g.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((h = (c = r.locale) == null ? void 0 : c.options) == null ? void 0 : h.firstWeekContainsDate) ?? 1, s = (n == null ? void 0 : n.weekStartsOn) ?? ((O = (y = n == null ? void 0 : n.locale) == null ? void 0 : y.options) == null ? void 0 : O.weekStartsOn) ?? r.weekStartsOn ?? ((j = (H = r.locale) == null ? void 0 : H.options) == null ? void 0 : j.weekStartsOn) ?? 0, o = d(e);
|
|
@@ -1221,10 +1221,10 @@ function R(e, t, n) {
|
|
|
1221
1221
|
return { isToken: !1, value: "'" };
|
|
1222
1222
|
const w = b[0];
|
|
1223
1223
|
if (w === "'")
|
|
1224
|
-
return { isToken: !1, value:
|
|
1224
|
+
return { isToken: !1, value: qt(b) };
|
|
1225
1225
|
if (B[w])
|
|
1226
1226
|
return { isToken: !0, value: b };
|
|
1227
|
-
if (w.match(
|
|
1227
|
+
if (w.match(It))
|
|
1228
1228
|
throw new RangeError(
|
|
1229
1229
|
"Format string contains an unescaped latin alphabet character `" + w + "`"
|
|
1230
1230
|
);
|
|
@@ -1239,17 +1239,17 @@ function R(e, t, n) {
|
|
|
1239
1239
|
return f.map((b) => {
|
|
1240
1240
|
if (!b.isToken) return b.value;
|
|
1241
1241
|
const w = b.value;
|
|
1242
|
-
(!(n != null && n.useAdditionalWeekYearTokens) &&
|
|
1242
|
+
(!(n != null && n.useAdditionalWeekYearTokens) && Ft(w) || !(n != null && n.useAdditionalDayOfYearTokens) && Ct(w)) && Yt(w, t, String(e));
|
|
1243
1243
|
const z = B[w[0]];
|
|
1244
1244
|
return z(o, w, a.localize, l);
|
|
1245
1245
|
}).join("");
|
|
1246
1246
|
}
|
|
1247
|
-
function
|
|
1247
|
+
function qt(e) {
|
|
1248
1248
|
const t = e.match(Xt);
|
|
1249
1249
|
return t ? t[1].replace(_t, "'") : e;
|
|
1250
1250
|
}
|
|
1251
1251
|
function Rt(e, t, n) {
|
|
1252
|
-
const r = P(), a = (n == null ? void 0 : n.locale) ?? r.locale ?? fe, i = 2520, s =
|
|
1252
|
+
const r = P(), a = (n == null ? void 0 : n.locale) ?? r.locale ?? fe, i = 2520, s = C(e, t);
|
|
1253
1253
|
if (isNaN(s))
|
|
1254
1254
|
throw new RangeError("Invalid time value");
|
|
1255
1255
|
const o = Object.assign({}, n, {
|
|
@@ -1272,14 +1272,14 @@ function Rt(e, t, n) {
|
|
|
1272
1272
|
} else {
|
|
1273
1273
|
if (c < i)
|
|
1274
1274
|
return a.formatDistance("xDays", 1, o);
|
|
1275
|
-
if (c <
|
|
1275
|
+
if (c < N) {
|
|
1276
1276
|
const y = Math.round(c / Z);
|
|
1277
1277
|
return a.formatDistance("xDays", y, o);
|
|
1278
|
-
} else if (c <
|
|
1279
|
-
return h = Math.round(c /
|
|
1278
|
+
} else if (c < N * 2)
|
|
1279
|
+
return h = Math.round(c / N), a.formatDistance("aboutXMonths", h, o);
|
|
1280
1280
|
}
|
|
1281
1281
|
if (h = Re(l, f), h < 12) {
|
|
1282
|
-
const y = Math.round(c /
|
|
1282
|
+
const y = Math.round(c / N);
|
|
1283
1283
|
return a.formatDistance("xMonths", y, o);
|
|
1284
1284
|
} else {
|
|
1285
1285
|
const y = h % 12, O = Math.trunc(h / 12);
|
|
@@ -1287,7 +1287,7 @@ function Rt(e, t, n) {
|
|
|
1287
1287
|
}
|
|
1288
1288
|
}
|
|
1289
1289
|
function At(e, t) {
|
|
1290
|
-
return Rt(e,
|
|
1290
|
+
return Rt(e, Fe(e), t);
|
|
1291
1291
|
}
|
|
1292
1292
|
function Ht() {
|
|
1293
1293
|
return Object.assign({}, P());
|
|
@@ -1579,7 +1579,7 @@ function te(e) {
|
|
|
1579
1579
|
if (!(!t || t.toLowerCase() === "none"))
|
|
1580
1580
|
return t;
|
|
1581
1581
|
}
|
|
1582
|
-
function
|
|
1582
|
+
function F(e) {
|
|
1583
1583
|
if (!(typeof e != "number" || !Number.isFinite(e)))
|
|
1584
1584
|
return Math.max(0, Math.min(10, Math.trunc(e)));
|
|
1585
1585
|
}
|
|
@@ -1587,7 +1587,7 @@ function sn(e) {
|
|
|
1587
1587
|
return e === "currency" ? 2 : e === "percent" ? 1 : e === "scientific" ? 2 : 0;
|
|
1588
1588
|
}
|
|
1589
1589
|
function on(e, t, n) {
|
|
1590
|
-
const r =
|
|
1590
|
+
const r = F(t.minimumFractionDigits), a = F(t.maximumFractionDigits);
|
|
1591
1591
|
if (typeof r == "number" || typeof a == "number") {
|
|
1592
1592
|
const o = r ?? 0, f = a ?? Math.max(o, 2);
|
|
1593
1593
|
return {
|
|
@@ -1595,7 +1595,7 @@ function on(e, t, n) {
|
|
|
1595
1595
|
maximumFractionDigits: Math.max(o, f)
|
|
1596
1596
|
};
|
|
1597
1597
|
}
|
|
1598
|
-
const i =
|
|
1598
|
+
const i = F(t.decimals);
|
|
1599
1599
|
if (typeof i == "number")
|
|
1600
1600
|
return {
|
|
1601
1601
|
minimumFractionDigits: i,
|
|
@@ -1624,7 +1624,7 @@ function ne(e) {
|
|
|
1624
1624
|
}
|
|
1625
1625
|
function D(e, t, n) {
|
|
1626
1626
|
const r = { ...t, type: e };
|
|
1627
|
-
if ((n == null ? void 0 : n.numericInput) === "canonical" &&
|
|
1627
|
+
if ((n == null ? void 0 : n.numericInput) === "canonical" && q(r))
|
|
1628
1628
|
return ne(r);
|
|
1629
1629
|
const a = on(e, t, n), i = typeof t.prefix == "string" ? t.prefix : void 0, s = {
|
|
1630
1630
|
type: e,
|
|
@@ -1652,17 +1652,17 @@ function re(e) {
|
|
|
1652
1652
|
suffix: e.suffix
|
|
1653
1653
|
};
|
|
1654
1654
|
}
|
|
1655
|
-
function
|
|
1655
|
+
function I(e) {
|
|
1656
1656
|
return e === "millisecond" || e === "second" || e === "minute" || e === "hour" || e === "day";
|
|
1657
1657
|
}
|
|
1658
1658
|
function ae(e) {
|
|
1659
|
-
const t =
|
|
1659
|
+
const t = F(e.maxUnits);
|
|
1660
1660
|
return {
|
|
1661
1661
|
type: "duration",
|
|
1662
|
-
inputUnit:
|
|
1662
|
+
inputUnit: I(e.inputUnit) ? e.inputUnit : "second",
|
|
1663
1663
|
outputStyle: e.outputStyle === "digital" || e.outputStyle === "long" ? e.outputStyle : "compact",
|
|
1664
|
-
largestUnit:
|
|
1665
|
-
smallestUnit:
|
|
1664
|
+
largestUnit: I(e.largestUnit) ? e.largestUnit : void 0,
|
|
1665
|
+
smallestUnit: I(e.smallestUnit) ? e.smallestUnit : "second",
|
|
1666
1666
|
maxUnits: t,
|
|
1667
1667
|
prefix: e.prefix,
|
|
1668
1668
|
suffix: e.suffix,
|
|
@@ -1709,7 +1709,7 @@ function cn(e, t) {
|
|
|
1709
1709
|
const n = e;
|
|
1710
1710
|
if ((t == null ? void 0 : t.numericInput) === "canonical") {
|
|
1711
1711
|
const r = n.type === "percentage" ? { ...n, type: "percent" } : n;
|
|
1712
|
-
if (
|
|
1712
|
+
if (q(r))
|
|
1713
1713
|
return D(r.type, r, t);
|
|
1714
1714
|
}
|
|
1715
1715
|
if (n.type === "percentage")
|
|
@@ -1820,7 +1820,7 @@ function Pn(e, t, n) {
|
|
|
1820
1820
|
return y.ok ? y.text : g(h);
|
|
1821
1821
|
};
|
|
1822
1822
|
}
|
|
1823
|
-
if (
|
|
1823
|
+
if (q(u)) {
|
|
1824
1824
|
const c = Pe(u, n.valueFormat);
|
|
1825
1825
|
return o === "measures" && a.set(s.id, c), (h) => typeof h == "number" || typeof h == "object" && h !== null ? Se(h, c) : g(h);
|
|
1826
1826
|
}
|
|
@@ -1868,10 +1868,10 @@ export {
|
|
|
1868
1868
|
bn as r,
|
|
1869
1869
|
P as s,
|
|
1870
1870
|
fe as t,
|
|
1871
|
-
|
|
1871
|
+
C as u,
|
|
1872
1872
|
d as v,
|
|
1873
1873
|
ze as w,
|
|
1874
1874
|
E as x,
|
|
1875
|
-
|
|
1875
|
+
Fe as y,
|
|
1876
1876
|
re as z
|
|
1877
1877
|
};
|
package/dist/chunks/{matrix-operation-contract--lMaLlpV.js → matrix-operation-contract-C1G6AJNh.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, aN as ee, t as b, J as Ke, aG as $, aO as Ze, B as $e, s as Ye, x as de, a8 as He, r as Qe, m as Je } from "./validators-CZo_H4E6.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
|
+
Y 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,10 +1355,10 @@ 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
|
-
|
|
1361
|
+
Qt as am,
|
|
1362
1362
|
Sn as b,
|
|
1363
1363
|
An as c,
|
|
1364
1364
|
bt as d,
|
|
@@ -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-CZo_H4E6.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 ? {
|