react-semaphor 0.1.602 → 0.1.603
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 +415 -375
- package/dist/assistant-context/index.js +1 -1
- package/dist/assistant-protocol/index.js +5 -5
- package/dist/brand-studio/index.js +8 -8
- package/dist/briefings/index.js +5 -5
- package/dist/chunks/{add-to-dashboard-ClhEIFst.js → add-to-dashboard-CFF-wFU-.js} +1 -1
- package/dist/chunks/{analytics-base-schemas-DevrgqQb.js → analytics-base-schemas-DsUh5Q3C.js} +14 -12
- package/dist/chunks/{assistant-chat-BWF3GYip.js → assistant-chat-B6hNQI1t.js} +146 -146
- package/dist/chunks/{bookmark-impact-BF3iRx5a.js → bookmark-impact-Ba2PLcGp.js} +3 -3
- package/dist/chunks/{bookmark-state-CBSTdW6q.js → bookmark-state-n7AaNzR_.js} +517 -516
- package/dist/chunks/{card-filter-builder-B8XHwMY6.js → card-filter-builder-Y22HizVx.js} +104 -104
- package/dist/chunks/{comparison-window-caption-W83qB4V5.js → comparison-window-caption-Ck2TIbnR.js} +69 -69
- package/dist/chunks/{context-BJoEFgNl.js → context-UCQ7sere.js} +1 -1
- package/dist/chunks/{dashboard-DG5EIYYB.js → dashboard-BghI99oY.js} +1 -1
- package/dist/chunks/{dashboard-briefing-launcher-CBSrhyWZ.js → dashboard-briefing-launcher-DtBAnGiH.js} +103 -103
- package/dist/chunks/{dashboard-controls-D6ECO4N1.js → dashboard-controls-CtFXlyjV.js} +53 -53
- package/dist/chunks/{dashboard-json-DrJftBSL.js → dashboard-json-DfGBUtCd.js} +5 -5
- package/dist/chunks/dates-BnrXF4bb.js +185 -0
- package/dist/chunks/{edit-dashboard-visual-BDYAJIbb.js → edit-dashboard-visual-oxt3x1wb.js} +7976 -8184
- package/dist/chunks/{filter-line-BXT6y303.js → filter-line-Cy5YYqRL.js} +27 -27
- package/dist/chunks/{filter-reach-copy-BukhZmzm.js → filter-reach-copy-CE_ZX147.js} +1590 -1729
- package/dist/chunks/{filter-value-text-D3-bf3_b.js → filter-value-text-fWvSDwkl.js} +11 -11
- package/dist/chunks/{index-BW0yozjs.js → index-D5rxbtS4.js} +24 -24
- package/dist/chunks/{layout-grid-Ds0diMeY.js → layout-grid-9LndRoLa.js} +1 -1
- package/dist/chunks/{matrix-analytical-definition-CgQgVeeI.js → matrix-analytical-definition-CCp48UCw.js} +496 -425
- package/dist/chunks/matrix-member-presentation-zNehruXR.js +391 -0
- package/dist/chunks/{matrix-operation-contract--DkNCOzd.js → matrix-operation-contract-DPBj69D8.js} +3 -2
- package/dist/chunks/{metric-comparison-zMylnIkc.js → metric-comparison-B0FR-Q8I.js} +184 -125
- package/dist/chunks/{paintbrush-CX8pao1j.js → paintbrush-58FQYY-y.js} +1 -1
- package/dist/chunks/{palette-CuA0HlzF.js → palette-Be62Tkoa.js} +1 -1
- package/dist/chunks/{pivot-result-contract-expectations-C8KL7hPx.js → pivot-result-contract-expectations-BYqAmG9n.js} +1236 -1190
- package/dist/chunks/{pivot-result-identity-C1AOH1PS.js → pivot-result-identity-CAP4--iq.js} +1 -1
- package/dist/chunks/raw-temporal-value-Dg_MTFF7.js +3778 -0
- package/dist/chunks/{report-preferences-dialog-CbuVNDGi.js → report-preferences-dialog-uJp9GBTM.js} +219 -205
- package/dist/chunks/{report-runtime-context-E7USjN7E.js → report-runtime-context-c77_KF9v.js} +2 -2
- package/dist/chunks/{resolve-dashboard-input-context-CULCE_hM.js → resolve-dashboard-input-context-Rtl1ffmE.js} +7115 -6963
- package/dist/chunks/{save-BKHlDONy.js → save-C5A0JnEV.js} +1 -1
- package/dist/chunks/{saved-dashboard-context-C1WlOx5z.js → saved-dashboard-context-tcyTU8jm.js} +193 -207
- package/dist/chunks/selection-filter-compiler-DNijjI5y.js +150 -0
- package/dist/chunks/{semaphor-ready-indicator-CBIRcDWs.js → semaphor-ready-indicator-FBvunj6S.js} +35550 -35273
- package/dist/chunks/{shelf-drop-preview-context-xR69SMA8.js → shelf-drop-preview-context-QKStrcK9.js} +6 -6
- package/dist/chunks/{stored-dashboard-BuM8vnWf.js → stored-dashboard-CHozcAY9.js} +621 -616
- package/dist/chunks/{style-sheet-parts-Bt9ZNre8.js → style-sheet-parts-CDCG-8Ej.js} +258 -251
- package/dist/chunks/{table-export-sheet-DVljtHkG.js → table-export-sheet-ZFIvs6Sj.js} +1 -1
- package/dist/chunks/{token-types-D_xKgyVS.js → token-types-XbM6QByy.js} +1 -1
- package/dist/chunks/{upload-Dll_M7XQ.js → upload-H15d7uHK.js} +1 -1
- package/dist/chunks/{validators-ClWHpYql.js → validators-Baf3VIf5.js} +3 -3
- package/dist/chunks/{variable-draft-CDGGl53R.js → variable-draft-C2y8Jp6Z.js} +3 -3
- package/dist/dashboard/index.js +2 -2
- package/dist/dashboard-authoring/index.js +2466 -2343
- package/dist/format-utils/index.js +205 -204
- package/dist/index.js +20 -20
- 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/components/ui-custom/date-range-presets.d.ts +8 -0
- package/dist/types/index.js +5 -5
- package/dist/types/lib/document/document-edits.d.ts +0 -4
- package/dist/types/lib/stores/dashboard-store.d.ts +0 -1
- package/dist/types/lib/types/common-types.d.ts +0 -2
- package/dist/types/lib/types/explorer-types.d.ts +1 -1
- package/dist/types/shared/analytics-protocol/analytics-base-schemas.d.ts +18 -0
- package/dist/types/shared/analytics-protocol/analyze-result-types.d.ts +3 -0
- package/dist/types/shared/analytics-protocol/comparison-choices.d.ts +92 -0
- package/dist/types/shared/analytics-protocol/comparison-placement.d.ts +30 -0
- package/dist/types/shared/analytics-protocol/contracts.d.ts +11 -5
- package/dist/types/shared/analytics-protocol/date-window.d.ts +105 -0
- package/dist/types/shared/analytics-protocol/filter-field-ownership.d.ts +27 -0
- package/dist/types/shared/analytics-protocol/fixtures.d.ts +4 -2
- package/dist/types/shared/analytics-protocol/index.d.ts +3 -0
- package/dist/types/shared/analytics-protocol/metric-comparison.d.ts +93 -11
- package/dist/types/shared/assistant-protocol/context.d.ts +16 -16
- package/dist/types/shared/dashboard-authoring/calculations/calculated-column.d.ts +1 -1
- package/dist/types/shared/dashboard-authoring/card-settings/card-display-write.d.ts +8 -0
- package/dist/types/shared/dashboard-authoring/card-settings/card-kinds.d.ts +1 -1
- package/dist/types/shared/dashboard-authoring/card-settings/inputs.d.ts +2 -1
- package/dist/types/shared/dashboard-authoring/card-settings/resolved.d.ts +0 -3
- package/dist/types/shared/dashboard-authoring/changes/dashboard-change.d.ts +21 -358
- package/dist/types/shared/dashboard-authoring/changes/diagnostics.d.ts +2 -0
- package/dist/types/shared/dashboard-authoring/conditional-formatting/schema.d.ts +10 -10
- package/dist/types/shared/dashboard-authoring/dashboard-variable-card.d.ts +2 -4
- package/dist/types/shared/dashboard-authoring/kpi-date-context.d.ts +2 -0
- package/dist/types/shared/dashboard-authoring/kpi-figure.d.ts +18 -0
- package/dist/types/shared/dashboard-authoring/measure-calculations/comparison.d.ts +8 -7
- package/dist/types/shared/dashboard-authoring/measure-calculations/dates.d.ts +11 -1
- package/dist/types/shared/dashboard-authoring/measure-calculations/index.d.ts +2 -2
- package/dist/types/shared/dashboard-authoring/measure-calculations/options.d.ts +4 -0
- package/dist/types/shared/dashboard-authoring/measure-calculations/read.d.ts +18 -1
- package/dist/types/shared/dashboard-authoring/measure-calculations/resolve.d.ts +2 -0
- package/dist/types/shared/dashboard-authoring/measure-calculations/schemas.d.ts +46 -88
- package/dist/types/shared/dashboard-authoring/operations/calculated-field-operations.d.ts +33 -8
- package/dist/types/shared/dashboard-authoring/operations/operation-types.d.ts +0 -2
- package/dist/types/shared/dashboard-authoring/outline/outline-filters.d.ts +3 -0
- package/dist/types/shared/format-utils/comparison-detail.d.ts +34 -0
- package/dist/types/shared/format-utils/index.d.ts +1 -0
- package/dist/types/shared/format-utils/partial-period.d.ts +4 -2
- package/dist/types/shared/temporal/calendar-periods.d.ts +11 -0
- package/dist/types/shared/temporal/index.d.ts +2 -0
- package/dist/types/shared/temporal/temporal-text.d.ts +33 -0
- package/dist/types/shared/temporal/temporal.d.ts +27 -0
- package/dist/types/shared/temporal/zoned-wall-clock.d.ts +4 -3
- package/dist/usage-events/index.js +1 -1
- package/package.json +3 -2
- package/dist/chunks/dates-Bz-qM5px.js +0 -164
- package/dist/chunks/matrix-member-presentation-DSBIIudt.js +0 -258
- package/dist/chunks/raw-temporal-value-E416F-0L.js +0 -454
- package/dist/chunks/selection-filter-compiler-ifT8JCXS.js +0 -131
|
@@ -173,41 +173,7 @@ export declare const AUTOMATIC_TIME_GRAIN: "automatic";
|
|
|
173
173
|
/** The largest row limit a query states. */
|
|
174
174
|
export declare const MAX_QUERY_LIMIT = 1000;
|
|
175
175
|
declare const queryMeasureUnion: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
176
|
-
comparison: z.ZodOptional<z.ZodType<
|
|
177
|
-
kind: "previous_period";
|
|
178
|
-
toDate?: boolean | undefined;
|
|
179
|
-
alignment?: "calendar" | "weekday" | undefined;
|
|
180
|
-
offsetPeriods?: number | undefined;
|
|
181
|
-
} | {
|
|
182
|
-
kind: "previous_year";
|
|
183
|
-
toDate?: boolean | undefined;
|
|
184
|
-
alignment?: "calendar" | "weekday" | undefined;
|
|
185
|
-
offsetYears?: number | undefined;
|
|
186
|
-
} | {
|
|
187
|
-
kind: "target";
|
|
188
|
-
targetValue: number;
|
|
189
|
-
} | {
|
|
190
|
-
kind: "inherit";
|
|
191
|
-
} | {
|
|
192
|
-
kind: "off";
|
|
193
|
-
}, z.ZodTypeDef, {
|
|
194
|
-
kind: "previous_period";
|
|
195
|
-
toDate?: boolean | undefined;
|
|
196
|
-
alignment?: "calendar" | "weekday" | undefined;
|
|
197
|
-
offsetPeriods?: number | undefined;
|
|
198
|
-
} | {
|
|
199
|
-
kind: "previous_year";
|
|
200
|
-
toDate?: boolean | undefined;
|
|
201
|
-
alignment?: "calendar" | "weekday" | undefined;
|
|
202
|
-
offsetYears?: number | undefined;
|
|
203
|
-
} | {
|
|
204
|
-
kind: "target";
|
|
205
|
-
targetValue: number;
|
|
206
|
-
} | {
|
|
207
|
-
kind: "inherit";
|
|
208
|
-
} | {
|
|
209
|
-
kind: "off";
|
|
210
|
-
}>>;
|
|
176
|
+
comparison: z.ZodOptional<z.ZodType<import('../index.js').MeasureComparison, z.ZodTypeDef, import('../index.js').MeasureComparison>>;
|
|
211
177
|
transform: z.ZodOptional<z.ZodNullable<z.ZodType<{
|
|
212
178
|
kind: "running_total";
|
|
213
179
|
orderBy?: {
|
|
@@ -488,24 +454,7 @@ declare const queryMeasureUnion: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
|
488
454
|
connectionId?: string | undefined;
|
|
489
455
|
} | undefined;
|
|
490
456
|
aggregate?: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT" | undefined;
|
|
491
|
-
comparison?:
|
|
492
|
-
kind: "previous_period";
|
|
493
|
-
toDate?: boolean | undefined;
|
|
494
|
-
alignment?: "calendar" | "weekday" | undefined;
|
|
495
|
-
offsetPeriods?: number | undefined;
|
|
496
|
-
} | {
|
|
497
|
-
kind: "previous_year";
|
|
498
|
-
toDate?: boolean | undefined;
|
|
499
|
-
alignment?: "calendar" | "weekday" | undefined;
|
|
500
|
-
offsetYears?: number | undefined;
|
|
501
|
-
} | {
|
|
502
|
-
kind: "target";
|
|
503
|
-
targetValue: number;
|
|
504
|
-
} | {
|
|
505
|
-
kind: "inherit";
|
|
506
|
-
} | {
|
|
507
|
-
kind: "off";
|
|
508
|
-
} | undefined;
|
|
457
|
+
comparison?: import('../index.js').MeasureComparison | undefined;
|
|
509
458
|
transform?: {
|
|
510
459
|
kind: "running_total";
|
|
511
460
|
orderBy?: {
|
|
@@ -641,24 +590,7 @@ declare const queryMeasureUnion: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
|
641
590
|
connectionId?: string | undefined;
|
|
642
591
|
} | undefined;
|
|
643
592
|
aggregate?: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT" | undefined;
|
|
644
|
-
comparison?:
|
|
645
|
-
kind: "previous_period";
|
|
646
|
-
toDate?: boolean | undefined;
|
|
647
|
-
alignment?: "calendar" | "weekday" | undefined;
|
|
648
|
-
offsetPeriods?: number | undefined;
|
|
649
|
-
} | {
|
|
650
|
-
kind: "previous_year";
|
|
651
|
-
toDate?: boolean | undefined;
|
|
652
|
-
alignment?: "calendar" | "weekday" | undefined;
|
|
653
|
-
offsetYears?: number | undefined;
|
|
654
|
-
} | {
|
|
655
|
-
kind: "target";
|
|
656
|
-
targetValue: number;
|
|
657
|
-
} | {
|
|
658
|
-
kind: "inherit";
|
|
659
|
-
} | {
|
|
660
|
-
kind: "off";
|
|
661
|
-
} | undefined;
|
|
593
|
+
comparison?: import('../index.js').MeasureComparison | undefined;
|
|
662
594
|
transform?: {
|
|
663
595
|
kind: "running_total";
|
|
664
596
|
orderBy?: {
|
|
@@ -799,24 +731,7 @@ export declare const metricCardQuerySchema: z.ZodObject<{
|
|
|
799
731
|
connectionId?: string | undefined;
|
|
800
732
|
} | undefined;
|
|
801
733
|
aggregate?: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT" | undefined;
|
|
802
|
-
comparison?:
|
|
803
|
-
kind: "previous_period";
|
|
804
|
-
toDate?: boolean | undefined;
|
|
805
|
-
alignment?: "calendar" | "weekday" | undefined;
|
|
806
|
-
offsetPeriods?: number | undefined;
|
|
807
|
-
} | {
|
|
808
|
-
kind: "previous_year";
|
|
809
|
-
toDate?: boolean | undefined;
|
|
810
|
-
alignment?: "calendar" | "weekday" | undefined;
|
|
811
|
-
offsetYears?: number | undefined;
|
|
812
|
-
} | {
|
|
813
|
-
kind: "target";
|
|
814
|
-
targetValue: number;
|
|
815
|
-
} | {
|
|
816
|
-
kind: "inherit";
|
|
817
|
-
} | {
|
|
818
|
-
kind: "off";
|
|
819
|
-
} | undefined;
|
|
734
|
+
comparison?: import('../index.js').MeasureComparison | undefined;
|
|
820
735
|
transform?: {
|
|
821
736
|
kind: "running_total";
|
|
822
737
|
orderBy?: {
|
|
@@ -952,24 +867,7 @@ export declare const metricCardQuerySchema: z.ZodObject<{
|
|
|
952
867
|
connectionId?: string | undefined;
|
|
953
868
|
} | undefined;
|
|
954
869
|
aggregate?: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT" | undefined;
|
|
955
|
-
comparison?:
|
|
956
|
-
kind: "previous_period";
|
|
957
|
-
toDate?: boolean | undefined;
|
|
958
|
-
alignment?: "calendar" | "weekday" | undefined;
|
|
959
|
-
offsetPeriods?: number | undefined;
|
|
960
|
-
} | {
|
|
961
|
-
kind: "previous_year";
|
|
962
|
-
toDate?: boolean | undefined;
|
|
963
|
-
alignment?: "calendar" | "weekday" | undefined;
|
|
964
|
-
offsetYears?: number | undefined;
|
|
965
|
-
} | {
|
|
966
|
-
kind: "target";
|
|
967
|
-
targetValue: number;
|
|
968
|
-
} | {
|
|
969
|
-
kind: "inherit";
|
|
970
|
-
} | {
|
|
971
|
-
kind: "off";
|
|
972
|
-
} | undefined;
|
|
870
|
+
comparison?: import('../index.js').MeasureComparison | undefined;
|
|
973
871
|
transform?: {
|
|
974
872
|
kind: "running_total";
|
|
975
873
|
orderBy?: {
|
|
@@ -1410,24 +1308,7 @@ export declare const metricCardQuerySchema: z.ZodObject<{
|
|
|
1410
1308
|
connectionId?: string | undefined;
|
|
1411
1309
|
} | undefined;
|
|
1412
1310
|
aggregate?: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT" | undefined;
|
|
1413
|
-
comparison?:
|
|
1414
|
-
kind: "previous_period";
|
|
1415
|
-
toDate?: boolean | undefined;
|
|
1416
|
-
alignment?: "calendar" | "weekday" | undefined;
|
|
1417
|
-
offsetPeriods?: number | undefined;
|
|
1418
|
-
} | {
|
|
1419
|
-
kind: "previous_year";
|
|
1420
|
-
toDate?: boolean | undefined;
|
|
1421
|
-
alignment?: "calendar" | "weekday" | undefined;
|
|
1422
|
-
offsetYears?: number | undefined;
|
|
1423
|
-
} | {
|
|
1424
|
-
kind: "target";
|
|
1425
|
-
targetValue: number;
|
|
1426
|
-
} | {
|
|
1427
|
-
kind: "inherit";
|
|
1428
|
-
} | {
|
|
1429
|
-
kind: "off";
|
|
1430
|
-
} | undefined;
|
|
1311
|
+
comparison?: import('../index.js').MeasureComparison | undefined;
|
|
1431
1312
|
transform?: {
|
|
1432
1313
|
kind: "running_total";
|
|
1433
1314
|
orderBy?: {
|
|
@@ -1637,24 +1518,7 @@ export declare const metricCardQuerySchema: z.ZodObject<{
|
|
|
1637
1518
|
connectionId?: string | undefined;
|
|
1638
1519
|
} | undefined;
|
|
1639
1520
|
aggregate?: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT" | undefined;
|
|
1640
|
-
comparison?:
|
|
1641
|
-
kind: "previous_period";
|
|
1642
|
-
toDate?: boolean | undefined;
|
|
1643
|
-
alignment?: "calendar" | "weekday" | undefined;
|
|
1644
|
-
offsetPeriods?: number | undefined;
|
|
1645
|
-
} | {
|
|
1646
|
-
kind: "previous_year";
|
|
1647
|
-
toDate?: boolean | undefined;
|
|
1648
|
-
alignment?: "calendar" | "weekday" | undefined;
|
|
1649
|
-
offsetYears?: number | undefined;
|
|
1650
|
-
} | {
|
|
1651
|
-
kind: "target";
|
|
1652
|
-
targetValue: number;
|
|
1653
|
-
} | {
|
|
1654
|
-
kind: "inherit";
|
|
1655
|
-
} | {
|
|
1656
|
-
kind: "off";
|
|
1657
|
-
} | undefined;
|
|
1521
|
+
comparison?: import('../index.js').MeasureComparison | undefined;
|
|
1658
1522
|
transform?: {
|
|
1659
1523
|
kind: "running_total";
|
|
1660
1524
|
orderBy?: {
|
|
@@ -2316,24 +2180,7 @@ declare const cardQueryPatchObject: z.ZodObject<{
|
|
|
2316
2180
|
connectionId?: string | undefined;
|
|
2317
2181
|
} | undefined;
|
|
2318
2182
|
aggregate?: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT" | undefined;
|
|
2319
|
-
comparison?:
|
|
2320
|
-
kind: "previous_period";
|
|
2321
|
-
toDate?: boolean | undefined;
|
|
2322
|
-
alignment?: "calendar" | "weekday" | undefined;
|
|
2323
|
-
offsetPeriods?: number | undefined;
|
|
2324
|
-
} | {
|
|
2325
|
-
kind: "previous_year";
|
|
2326
|
-
toDate?: boolean | undefined;
|
|
2327
|
-
alignment?: "calendar" | "weekday" | undefined;
|
|
2328
|
-
offsetYears?: number | undefined;
|
|
2329
|
-
} | {
|
|
2330
|
-
kind: "target";
|
|
2331
|
-
targetValue: number;
|
|
2332
|
-
} | {
|
|
2333
|
-
kind: "inherit";
|
|
2334
|
-
} | {
|
|
2335
|
-
kind: "off";
|
|
2336
|
-
} | undefined;
|
|
2183
|
+
comparison?: import('../index.js').MeasureComparison | undefined;
|
|
2337
2184
|
transform?: {
|
|
2338
2185
|
kind: "running_total";
|
|
2339
2186
|
orderBy?: {
|
|
@@ -2469,24 +2316,7 @@ declare const cardQueryPatchObject: z.ZodObject<{
|
|
|
2469
2316
|
connectionId?: string | undefined;
|
|
2470
2317
|
} | undefined;
|
|
2471
2318
|
aggregate?: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT" | undefined;
|
|
2472
|
-
comparison?:
|
|
2473
|
-
kind: "previous_period";
|
|
2474
|
-
toDate?: boolean | undefined;
|
|
2475
|
-
alignment?: "calendar" | "weekday" | undefined;
|
|
2476
|
-
offsetPeriods?: number | undefined;
|
|
2477
|
-
} | {
|
|
2478
|
-
kind: "previous_year";
|
|
2479
|
-
toDate?: boolean | undefined;
|
|
2480
|
-
alignment?: "calendar" | "weekday" | undefined;
|
|
2481
|
-
offsetYears?: number | undefined;
|
|
2482
|
-
} | {
|
|
2483
|
-
kind: "target";
|
|
2484
|
-
targetValue: number;
|
|
2485
|
-
} | {
|
|
2486
|
-
kind: "inherit";
|
|
2487
|
-
} | {
|
|
2488
|
-
kind: "off";
|
|
2489
|
-
} | undefined;
|
|
2319
|
+
comparison?: import('../index.js').MeasureComparison | undefined;
|
|
2490
2320
|
transform?: {
|
|
2491
2321
|
kind: "running_total";
|
|
2492
2322
|
orderBy?: {
|
|
@@ -2997,24 +2827,7 @@ declare const cardQueryPatchObject: z.ZodObject<{
|
|
|
2997
2827
|
connectionId?: string | undefined;
|
|
2998
2828
|
} | undefined;
|
|
2999
2829
|
aggregate?: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT" | undefined;
|
|
3000
|
-
comparison?:
|
|
3001
|
-
kind: "previous_period";
|
|
3002
|
-
toDate?: boolean | undefined;
|
|
3003
|
-
alignment?: "calendar" | "weekday" | undefined;
|
|
3004
|
-
offsetPeriods?: number | undefined;
|
|
3005
|
-
} | {
|
|
3006
|
-
kind: "previous_year";
|
|
3007
|
-
toDate?: boolean | undefined;
|
|
3008
|
-
alignment?: "calendar" | "weekday" | undefined;
|
|
3009
|
-
offsetYears?: number | undefined;
|
|
3010
|
-
} | {
|
|
3011
|
-
kind: "target";
|
|
3012
|
-
targetValue: number;
|
|
3013
|
-
} | {
|
|
3014
|
-
kind: "inherit";
|
|
3015
|
-
} | {
|
|
3016
|
-
kind: "off";
|
|
3017
|
-
} | undefined;
|
|
2830
|
+
comparison?: import('../index.js').MeasureComparison | undefined;
|
|
3018
2831
|
transform?: {
|
|
3019
2832
|
kind: "running_total";
|
|
3020
2833
|
orderBy?: {
|
|
@@ -3240,24 +3053,7 @@ declare const cardQueryPatchObject: z.ZodObject<{
|
|
|
3240
3053
|
connectionId?: string | undefined;
|
|
3241
3054
|
} | undefined;
|
|
3242
3055
|
aggregate?: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT" | undefined;
|
|
3243
|
-
comparison?:
|
|
3244
|
-
kind: "previous_period";
|
|
3245
|
-
toDate?: boolean | undefined;
|
|
3246
|
-
alignment?: "calendar" | "weekday" | undefined;
|
|
3247
|
-
offsetPeriods?: number | undefined;
|
|
3248
|
-
} | {
|
|
3249
|
-
kind: "previous_year";
|
|
3250
|
-
toDate?: boolean | undefined;
|
|
3251
|
-
alignment?: "calendar" | "weekday" | undefined;
|
|
3252
|
-
offsetYears?: number | undefined;
|
|
3253
|
-
} | {
|
|
3254
|
-
kind: "target";
|
|
3255
|
-
targetValue: number;
|
|
3256
|
-
} | {
|
|
3257
|
-
kind: "inherit";
|
|
3258
|
-
} | {
|
|
3259
|
-
kind: "off";
|
|
3260
|
-
} | undefined;
|
|
3056
|
+
comparison?: import('../index.js').MeasureComparison | undefined;
|
|
3261
3057
|
transform?: {
|
|
3262
3058
|
kind: "running_total";
|
|
3263
3059
|
orderBy?: {
|
|
@@ -3795,41 +3591,7 @@ declare const variableMetricQuerySchema: z.ZodObject<{
|
|
|
3795
3591
|
datasetName: z.ZodString;
|
|
3796
3592
|
measures: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
3797
3593
|
aggregate: z.ZodOptional<z.ZodEnum<["SUM", "COUNT", "AVG", "MIN", "MAX", "MEDIAN", "DISTINCT"]>>;
|
|
3798
|
-
comparison: z.ZodOptional<z.ZodType<
|
|
3799
|
-
kind: "previous_period";
|
|
3800
|
-
toDate?: boolean | undefined;
|
|
3801
|
-
alignment?: "calendar" | "weekday" | undefined;
|
|
3802
|
-
offsetPeriods?: number | undefined;
|
|
3803
|
-
} | {
|
|
3804
|
-
kind: "previous_year";
|
|
3805
|
-
toDate?: boolean | undefined;
|
|
3806
|
-
alignment?: "calendar" | "weekday" | undefined;
|
|
3807
|
-
offsetYears?: number | undefined;
|
|
3808
|
-
} | {
|
|
3809
|
-
kind: "target";
|
|
3810
|
-
targetValue: number;
|
|
3811
|
-
} | {
|
|
3812
|
-
kind: "inherit";
|
|
3813
|
-
} | {
|
|
3814
|
-
kind: "off";
|
|
3815
|
-
}, z.ZodTypeDef, {
|
|
3816
|
-
kind: "previous_period";
|
|
3817
|
-
toDate?: boolean | undefined;
|
|
3818
|
-
alignment?: "calendar" | "weekday" | undefined;
|
|
3819
|
-
offsetPeriods?: number | undefined;
|
|
3820
|
-
} | {
|
|
3821
|
-
kind: "previous_year";
|
|
3822
|
-
toDate?: boolean | undefined;
|
|
3823
|
-
alignment?: "calendar" | "weekday" | undefined;
|
|
3824
|
-
offsetYears?: number | undefined;
|
|
3825
|
-
} | {
|
|
3826
|
-
kind: "target";
|
|
3827
|
-
targetValue: number;
|
|
3828
|
-
} | {
|
|
3829
|
-
kind: "inherit";
|
|
3830
|
-
} | {
|
|
3831
|
-
kind: "off";
|
|
3832
|
-
}>>;
|
|
3594
|
+
comparison: z.ZodOptional<z.ZodType<import('../index.js').MeasureComparison, z.ZodTypeDef, import('../index.js').MeasureComparison>>;
|
|
3833
3595
|
name: z.ZodString;
|
|
3834
3596
|
label: z.ZodOptional<z.ZodString>;
|
|
3835
3597
|
datasetName: z.ZodOptional<z.ZodString>;
|
|
@@ -3868,24 +3630,7 @@ declare const variableMetricQuerySchema: z.ZodObject<{
|
|
|
3868
3630
|
connectionId?: string | undefined;
|
|
3869
3631
|
} | undefined;
|
|
3870
3632
|
aggregate?: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT" | undefined;
|
|
3871
|
-
comparison?:
|
|
3872
|
-
kind: "previous_period";
|
|
3873
|
-
toDate?: boolean | undefined;
|
|
3874
|
-
alignment?: "calendar" | "weekday" | undefined;
|
|
3875
|
-
offsetPeriods?: number | undefined;
|
|
3876
|
-
} | {
|
|
3877
|
-
kind: "previous_year";
|
|
3878
|
-
toDate?: boolean | undefined;
|
|
3879
|
-
alignment?: "calendar" | "weekday" | undefined;
|
|
3880
|
-
offsetYears?: number | undefined;
|
|
3881
|
-
} | {
|
|
3882
|
-
kind: "target";
|
|
3883
|
-
targetValue: number;
|
|
3884
|
-
} | {
|
|
3885
|
-
kind: "inherit";
|
|
3886
|
-
} | {
|
|
3887
|
-
kind: "off";
|
|
3888
|
-
} | undefined;
|
|
3633
|
+
comparison?: import('../index.js').MeasureComparison | undefined;
|
|
3889
3634
|
}, {
|
|
3890
3635
|
name: string;
|
|
3891
3636
|
datasetName?: string | undefined;
|
|
@@ -3900,24 +3645,7 @@ declare const variableMetricQuerySchema: z.ZodObject<{
|
|
|
3900
3645
|
connectionId?: string | undefined;
|
|
3901
3646
|
} | undefined;
|
|
3902
3647
|
aggregate?: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT" | undefined;
|
|
3903
|
-
comparison?:
|
|
3904
|
-
kind: "previous_period";
|
|
3905
|
-
toDate?: boolean | undefined;
|
|
3906
|
-
alignment?: "calendar" | "weekday" | undefined;
|
|
3907
|
-
offsetPeriods?: number | undefined;
|
|
3908
|
-
} | {
|
|
3909
|
-
kind: "previous_year";
|
|
3910
|
-
toDate?: boolean | undefined;
|
|
3911
|
-
alignment?: "calendar" | "weekday" | undefined;
|
|
3912
|
-
offsetYears?: number | undefined;
|
|
3913
|
-
} | {
|
|
3914
|
-
kind: "target";
|
|
3915
|
-
targetValue: number;
|
|
3916
|
-
} | {
|
|
3917
|
-
kind: "inherit";
|
|
3918
|
-
} | {
|
|
3919
|
-
kind: "off";
|
|
3920
|
-
} | undefined;
|
|
3648
|
+
comparison?: import('../index.js').MeasureComparison | undefined;
|
|
3921
3649
|
}>]>, "many">>;
|
|
3922
3650
|
dimensions: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
3923
3651
|
name: z.ZodString;
|
|
@@ -4182,24 +3910,7 @@ declare const variableMetricQuerySchema: z.ZodObject<{
|
|
|
4182
3910
|
connectionId?: string | undefined;
|
|
4183
3911
|
} | undefined;
|
|
4184
3912
|
aggregate?: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT" | undefined;
|
|
4185
|
-
comparison?:
|
|
4186
|
-
kind: "previous_period";
|
|
4187
|
-
toDate?: boolean | undefined;
|
|
4188
|
-
alignment?: "calendar" | "weekday" | undefined;
|
|
4189
|
-
offsetPeriods?: number | undefined;
|
|
4190
|
-
} | {
|
|
4191
|
-
kind: "previous_year";
|
|
4192
|
-
toDate?: boolean | undefined;
|
|
4193
|
-
alignment?: "calendar" | "weekday" | undefined;
|
|
4194
|
-
offsetYears?: number | undefined;
|
|
4195
|
-
} | {
|
|
4196
|
-
kind: "target";
|
|
4197
|
-
targetValue: number;
|
|
4198
|
-
} | {
|
|
4199
|
-
kind: "inherit";
|
|
4200
|
-
} | {
|
|
4201
|
-
kind: "off";
|
|
4202
|
-
} | undefined;
|
|
3913
|
+
comparison?: import('../index.js').MeasureComparison | undefined;
|
|
4203
3914
|
})[] | undefined;
|
|
4204
3915
|
filters?: {
|
|
4205
3916
|
field: string | {
|
|
@@ -4271,24 +3982,7 @@ declare const variableMetricQuerySchema: z.ZodObject<{
|
|
|
4271
3982
|
connectionId?: string | undefined;
|
|
4272
3983
|
} | undefined;
|
|
4273
3984
|
aggregate?: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT" | undefined;
|
|
4274
|
-
comparison?:
|
|
4275
|
-
kind: "previous_period";
|
|
4276
|
-
toDate?: boolean | undefined;
|
|
4277
|
-
alignment?: "calendar" | "weekday" | undefined;
|
|
4278
|
-
offsetPeriods?: number | undefined;
|
|
4279
|
-
} | {
|
|
4280
|
-
kind: "previous_year";
|
|
4281
|
-
toDate?: boolean | undefined;
|
|
4282
|
-
alignment?: "calendar" | "weekday" | undefined;
|
|
4283
|
-
offsetYears?: number | undefined;
|
|
4284
|
-
} | {
|
|
4285
|
-
kind: "target";
|
|
4286
|
-
targetValue: number;
|
|
4287
|
-
} | {
|
|
4288
|
-
kind: "inherit";
|
|
4289
|
-
} | {
|
|
4290
|
-
kind: "off";
|
|
4291
|
-
} | undefined;
|
|
3985
|
+
comparison?: import('../index.js').MeasureComparison | undefined;
|
|
4292
3986
|
})[] | undefined;
|
|
4293
3987
|
filters?: {
|
|
4294
3988
|
field: string | {
|
|
@@ -4720,24 +4414,7 @@ export declare const dashboardChangeSchema: z.ZodDiscriminatedUnion<"op", [z.Zod
|
|
|
4720
4414
|
connectionId?: string | undefined;
|
|
4721
4415
|
} | undefined;
|
|
4722
4416
|
aggregate?: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT" | undefined;
|
|
4723
|
-
comparison?:
|
|
4724
|
-
kind: "previous_period";
|
|
4725
|
-
toDate?: boolean | undefined;
|
|
4726
|
-
alignment?: "calendar" | "weekday" | undefined;
|
|
4727
|
-
offsetPeriods?: number | undefined;
|
|
4728
|
-
} | {
|
|
4729
|
-
kind: "previous_year";
|
|
4730
|
-
toDate?: boolean | undefined;
|
|
4731
|
-
alignment?: "calendar" | "weekday" | undefined;
|
|
4732
|
-
offsetYears?: number | undefined;
|
|
4733
|
-
} | {
|
|
4734
|
-
kind: "target";
|
|
4735
|
-
targetValue: number;
|
|
4736
|
-
} | {
|
|
4737
|
-
kind: "inherit";
|
|
4738
|
-
} | {
|
|
4739
|
-
kind: "off";
|
|
4740
|
-
} | undefined;
|
|
4417
|
+
comparison?: import('../index.js').MeasureComparison | undefined;
|
|
4741
4418
|
transform?: {
|
|
4742
4419
|
kind: "running_total";
|
|
4743
4420
|
orderBy?: {
|
|
@@ -5074,24 +4751,7 @@ export declare const dashboardChangeSchema: z.ZodDiscriminatedUnion<"op", [z.Zod
|
|
|
5074
4751
|
connectionId?: string | undefined;
|
|
5075
4752
|
} | undefined;
|
|
5076
4753
|
aggregate?: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT" | undefined;
|
|
5077
|
-
comparison?:
|
|
5078
|
-
kind: "previous_period";
|
|
5079
|
-
toDate?: boolean | undefined;
|
|
5080
|
-
alignment?: "calendar" | "weekday" | undefined;
|
|
5081
|
-
offsetPeriods?: number | undefined;
|
|
5082
|
-
} | {
|
|
5083
|
-
kind: "previous_year";
|
|
5084
|
-
toDate?: boolean | undefined;
|
|
5085
|
-
alignment?: "calendar" | "weekday" | undefined;
|
|
5086
|
-
offsetYears?: number | undefined;
|
|
5087
|
-
} | {
|
|
5088
|
-
kind: "target";
|
|
5089
|
-
targetValue: number;
|
|
5090
|
-
} | {
|
|
5091
|
-
kind: "inherit";
|
|
5092
|
-
} | {
|
|
5093
|
-
kind: "off";
|
|
5094
|
-
} | undefined;
|
|
4754
|
+
comparison?: import('../index.js').MeasureComparison | undefined;
|
|
5095
4755
|
transform?: {
|
|
5096
4756
|
kind: "running_total";
|
|
5097
4757
|
orderBy?: {
|
|
@@ -5402,6 +5062,7 @@ export declare const dashboardChangeSchema: z.ZodDiscriminatedUnion<"op", [z.Zod
|
|
|
5402
5062
|
values?: unknown[] | undefined;
|
|
5403
5063
|
}>>>;
|
|
5404
5064
|
defaultPeriod: z.ZodOptional<z.ZodNullable<z.ZodType<import('../../analytics-protocol/agent-time-window.js').AgentTimeWindow, z.ZodTypeDef, import('../../analytics-protocol/index.js').SemaphorTimeWindow>>>;
|
|
5065
|
+
defaultComparison: z.ZodOptional<z.ZodUnknown>;
|
|
5405
5066
|
sheetIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
5406
5067
|
position: z.ZodOptional<z.ZodNumber>;
|
|
5407
5068
|
/** The card a pinned filter is on, as the outline lists it (an id or a handle, as filterId). */
|
|
@@ -5421,6 +5082,7 @@ export declare const dashboardChangeSchema: z.ZodDiscriminatedUnion<"op", [z.Zod
|
|
|
5421
5082
|
values?: unknown[] | undefined;
|
|
5422
5083
|
} | null | undefined;
|
|
5423
5084
|
sheetIds?: string[] | null | undefined;
|
|
5085
|
+
defaultComparison?: unknown;
|
|
5424
5086
|
}, {
|
|
5425
5087
|
filterId: string;
|
|
5426
5088
|
op: "filter.update";
|
|
@@ -5436,6 +5098,7 @@ export declare const dashboardChangeSchema: z.ZodDiscriminatedUnion<"op", [z.Zod
|
|
|
5436
5098
|
values?: unknown[] | undefined;
|
|
5437
5099
|
} | null | undefined;
|
|
5438
5100
|
sheetIds?: string[] | null | undefined;
|
|
5101
|
+
defaultComparison?: unknown;
|
|
5439
5102
|
}>, z.ZodObject<{
|
|
5440
5103
|
op: z.ZodLiteral<"filter.remove">;
|
|
5441
5104
|
filterId: z.ZodString;
|
|
@@ -76,6 +76,8 @@ export type ChangeWarningCode =
|
|
|
76
76
|
| 'viewer_settings_affected'
|
|
77
77
|
/** A period or year comparison where no date window applies to its date: it shows only while one does. */
|
|
78
78
|
| 'comparison_without_date_window'
|
|
79
|
+
/** A step back that lands inside the date window a fresh viewer gets: it shows no comparison until a viewer picks a range it clears (compare-with CW-D16). */
|
|
80
|
+
| 'comparison_overlaps_date_window'
|
|
79
81
|
/** A table calculation ordered along a grouping that isn't a date. */
|
|
80
82
|
| 'transform_order_not_date'
|
|
81
83
|
/** A text card in a KPI's spot shows as the KPI's info, as in the editor, not as a tab (building a report SPEC §5.1). */
|
|
@@ -905,12 +905,12 @@ export declare const conditionalRuleSchema: z.ZodObject<{
|
|
|
905
905
|
kind: "matrixLevel";
|
|
906
906
|
levelId: string;
|
|
907
907
|
};
|
|
908
|
+
range: "auto" | "manual";
|
|
908
909
|
colors: {
|
|
909
910
|
max: string;
|
|
910
911
|
min: string;
|
|
911
912
|
mid?: string | undefined;
|
|
912
913
|
};
|
|
913
|
-
range: "auto" | "manual";
|
|
914
914
|
max?: number | undefined;
|
|
915
915
|
min?: number | undefined;
|
|
916
916
|
mid?: number | undefined;
|
|
@@ -938,12 +938,12 @@ export declare const conditionalRuleSchema: z.ZodObject<{
|
|
|
938
938
|
kind: "matrixLevel";
|
|
939
939
|
levelId: string;
|
|
940
940
|
};
|
|
941
|
+
range: "auto" | "manual";
|
|
941
942
|
colors: {
|
|
942
943
|
max: string;
|
|
943
944
|
min: string;
|
|
944
945
|
mid?: string | undefined;
|
|
945
946
|
};
|
|
946
|
-
range: "auto" | "manual";
|
|
947
947
|
max?: number | undefined;
|
|
948
948
|
min?: number | undefined;
|
|
949
949
|
mid?: number | undefined;
|
|
@@ -1678,12 +1678,12 @@ export declare const conditionalRuleSchema: z.ZodObject<{
|
|
|
1678
1678
|
kind: "matrixLevel";
|
|
1679
1679
|
levelId: string;
|
|
1680
1680
|
};
|
|
1681
|
+
range: "auto" | "manual";
|
|
1681
1682
|
colors: {
|
|
1682
1683
|
max: string;
|
|
1683
1684
|
min: string;
|
|
1684
1685
|
mid?: string | undefined;
|
|
1685
1686
|
};
|
|
1686
|
-
range: "auto" | "manual";
|
|
1687
1687
|
max?: number | undefined;
|
|
1688
1688
|
min?: number | undefined;
|
|
1689
1689
|
mid?: number | undefined;
|
|
@@ -1948,12 +1948,12 @@ export declare const conditionalRuleSchema: z.ZodObject<{
|
|
|
1948
1948
|
kind: "matrixLevel";
|
|
1949
1949
|
levelId: string;
|
|
1950
1950
|
};
|
|
1951
|
+
range: "auto" | "manual";
|
|
1951
1952
|
colors: {
|
|
1952
1953
|
max: string;
|
|
1953
1954
|
min: string;
|
|
1954
1955
|
mid?: string | undefined;
|
|
1955
1956
|
};
|
|
1956
|
-
range: "auto" | "manual";
|
|
1957
1957
|
max?: number | undefined;
|
|
1958
1958
|
min?: number | undefined;
|
|
1959
1959
|
mid?: number | undefined;
|
|
@@ -2839,12 +2839,12 @@ export declare const cardConditionalFormattingSchema: z.ZodObject<{
|
|
|
2839
2839
|
kind: "matrixLevel";
|
|
2840
2840
|
levelId: string;
|
|
2841
2841
|
};
|
|
2842
|
+
range: "auto" | "manual";
|
|
2842
2843
|
colors: {
|
|
2843
2844
|
max: string;
|
|
2844
2845
|
min: string;
|
|
2845
2846
|
mid?: string | undefined;
|
|
2846
2847
|
};
|
|
2847
|
-
range: "auto" | "manual";
|
|
2848
2848
|
max?: number | undefined;
|
|
2849
2849
|
min?: number | undefined;
|
|
2850
2850
|
mid?: number | undefined;
|
|
@@ -2872,12 +2872,12 @@ export declare const cardConditionalFormattingSchema: z.ZodObject<{
|
|
|
2872
2872
|
kind: "matrixLevel";
|
|
2873
2873
|
levelId: string;
|
|
2874
2874
|
};
|
|
2875
|
+
range: "auto" | "manual";
|
|
2875
2876
|
colors: {
|
|
2876
2877
|
max: string;
|
|
2877
2878
|
min: string;
|
|
2878
2879
|
mid?: string | undefined;
|
|
2879
2880
|
};
|
|
2880
|
-
range: "auto" | "manual";
|
|
2881
2881
|
max?: number | undefined;
|
|
2882
2882
|
min?: number | undefined;
|
|
2883
2883
|
mid?: number | undefined;
|
|
@@ -3612,12 +3612,12 @@ export declare const cardConditionalFormattingSchema: z.ZodObject<{
|
|
|
3612
3612
|
kind: "matrixLevel";
|
|
3613
3613
|
levelId: string;
|
|
3614
3614
|
};
|
|
3615
|
+
range: "auto" | "manual";
|
|
3615
3616
|
colors: {
|
|
3616
3617
|
max: string;
|
|
3617
3618
|
min: string;
|
|
3618
3619
|
mid?: string | undefined;
|
|
3619
3620
|
};
|
|
3620
|
-
range: "auto" | "manual";
|
|
3621
3621
|
max?: number | undefined;
|
|
3622
3622
|
min?: number | undefined;
|
|
3623
3623
|
mid?: number | undefined;
|
|
@@ -3882,12 +3882,12 @@ export declare const cardConditionalFormattingSchema: z.ZodObject<{
|
|
|
3882
3882
|
kind: "matrixLevel";
|
|
3883
3883
|
levelId: string;
|
|
3884
3884
|
};
|
|
3885
|
+
range: "auto" | "manual";
|
|
3885
3886
|
colors: {
|
|
3886
3887
|
max: string;
|
|
3887
3888
|
min: string;
|
|
3888
3889
|
mid?: string | undefined;
|
|
3889
3890
|
};
|
|
3890
|
-
range: "auto" | "manual";
|
|
3891
3891
|
max?: number | undefined;
|
|
3892
3892
|
min?: number | undefined;
|
|
3893
3893
|
mid?: number | undefined;
|
|
@@ -4155,12 +4155,12 @@ export declare const cardConditionalFormattingSchema: z.ZodObject<{
|
|
|
4155
4155
|
kind: "matrixLevel";
|
|
4156
4156
|
levelId: string;
|
|
4157
4157
|
};
|
|
4158
|
+
range: "auto" | "manual";
|
|
4158
4159
|
colors: {
|
|
4159
4160
|
max: string;
|
|
4160
4161
|
min: string;
|
|
4161
4162
|
mid?: string | undefined;
|
|
4162
4163
|
};
|
|
4163
|
-
range: "auto" | "manual";
|
|
4164
4164
|
max?: number | undefined;
|
|
4165
4165
|
min?: number | undefined;
|
|
4166
4166
|
mid?: number | undefined;
|
|
@@ -4428,12 +4428,12 @@ export declare const cardConditionalFormattingSchema: z.ZodObject<{
|
|
|
4428
4428
|
kind: "matrixLevel";
|
|
4429
4429
|
levelId: string;
|
|
4430
4430
|
};
|
|
4431
|
+
range: "auto" | "manual";
|
|
4431
4432
|
colors: {
|
|
4432
4433
|
max: string;
|
|
4433
4434
|
min: string;
|
|
4434
4435
|
mid?: string | undefined;
|
|
4435
4436
|
};
|
|
4436
|
-
range: "auto" | "manual";
|
|
4437
4437
|
max?: number | undefined;
|
|
4438
4438
|
min?: number | undefined;
|
|
4439
4439
|
mid?: number | undefined;
|
|
@@ -2,7 +2,7 @@ import { TChartType } from '../../lib/charts/types.js';
|
|
|
2
2
|
import { DataVariable, TCard, TextVariablePresentation } from '../../lib/types/common-types.js';
|
|
3
3
|
import { QueryColumnKeyMap } from '../../lib/types/explorer-types.js';
|
|
4
4
|
import { SemaphorFilterReachEntry, SemaphorResultColumn } from '../analytics-protocol/index.js';
|
|
5
|
-
import { ComparisonUnavailableReason, MetricComparisonMetadataMap
|
|
5
|
+
import { ComparisonShiftSpec, ComparisonUnavailableReason, MetricComparisonMetadataMap } from '../analytics-protocol/metric-comparison.js';
|
|
6
6
|
/**
|
|
7
7
|
* The card type every answer runs as: non-paginated (`isPaginatedCardType`),
|
|
8
8
|
* so the server applies `rowLimit` as the query's limit, and never the KPI
|
|
@@ -42,9 +42,7 @@ export declare function comparisonPartPresentation(part: string, presentation: T
|
|
|
42
42
|
* measure as a card's is, on a numeric aggregate. Undefined for any other
|
|
43
43
|
* variable, and for `off` or a target, which a variable is not offered.
|
|
44
44
|
*/
|
|
45
|
-
export declare function variableComparison(variable: Pick<DataVariable, 'query' | 'get'>):
|
|
46
|
-
kind: 'previous_period' | 'previous_year';
|
|
47
|
-
}> | undefined;
|
|
45
|
+
export declare function variableComparison(variable: Pick<DataVariable, 'query' | 'get'>): ComparisonShiftSpec | undefined;
|
|
48
46
|
/**
|
|
49
47
|
* The card a variable runs as: its id, its name, its stored query and the
|
|
50
48
|
* row limit its `get` needs. Memoized per variable object, so a variable keeps
|