react-semaphor 0.1.601 → 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.
Files changed (123) hide show
  1. package/dist/analytics-protocol/index.js +415 -375
  2. package/dist/assistant-context/index.js +1 -1
  3. package/dist/assistant-protocol/index.js +5 -5
  4. package/dist/brand-studio/index.js +8 -8
  5. package/dist/briefings/index.js +5 -5
  6. package/dist/chunks/{add-to-dashboard-ClhEIFst.js → add-to-dashboard-CFF-wFU-.js} +1 -1
  7. package/dist/chunks/{analytics-base-schemas-DevrgqQb.js → analytics-base-schemas-DsUh5Q3C.js} +14 -12
  8. package/dist/chunks/{assistant-chat-BE0XXzZP.js → assistant-chat-B6hNQI1t.js} +146 -146
  9. package/dist/chunks/{bookmark-impact-DXDAN5AY.js → bookmark-impact-Ba2PLcGp.js} +3 -3
  10. package/dist/chunks/{bookmark-state-BMyB3Tb6.js → bookmark-state-n7AaNzR_.js} +517 -516
  11. package/dist/chunks/{card-filter-builder-CE0-YVN5.js → card-filter-builder-Y22HizVx.js} +474 -474
  12. package/dist/chunks/{comparison-window-caption-Dxj2CHOa.js → comparison-window-caption-Ck2TIbnR.js} +69 -69
  13. package/dist/chunks/{context-BJoEFgNl.js → context-UCQ7sere.js} +1 -1
  14. package/dist/chunks/{dashboard-mJKPFRbb.js → dashboard-BghI99oY.js} +1 -1
  15. package/dist/chunks/{dashboard-briefing-launcher-CntwKyiZ.js → dashboard-briefing-launcher-DtBAnGiH.js} +725 -716
  16. package/dist/chunks/{dashboard-controls-XO089DMg.js → dashboard-controls-CtFXlyjV.js} +53 -53
  17. package/dist/chunks/{dashboard-json-CQRiydUv.js → dashboard-json-DfGBUtCd.js} +5 -5
  18. package/dist/chunks/dates-BnrXF4bb.js +185 -0
  19. package/dist/chunks/{edit-dashboard-visual-f-Dm-BLR.js → edit-dashboard-visual-oxt3x1wb.js} +8081 -8268
  20. package/dist/chunks/{filter-line-CKNMyNTQ.js → filter-line-Cy5YYqRL.js} +27 -27
  21. package/dist/chunks/{filter-reach-copy-B8GGyVuR.js → filter-reach-copy-CE_ZX147.js} +1786 -2214
  22. package/dist/chunks/{filter-value-text-CRtKecI5.js → filter-value-text-fWvSDwkl.js} +11 -11
  23. package/dist/chunks/{index-DoPApnxg.js → index-D5rxbtS4.js} +24 -24
  24. package/dist/chunks/{layout-grid-CiSCZdIr.js → layout-grid-9LndRoLa.js} +1 -1
  25. package/dist/chunks/{matrix-analytical-definition-myf3D3Qx.js → matrix-analytical-definition-CCp48UCw.js} +496 -425
  26. package/dist/chunks/matrix-member-presentation-zNehruXR.js +391 -0
  27. package/dist/chunks/{matrix-operation-contract-C1SuOHLZ.js → matrix-operation-contract-DPBj69D8.js} +518 -514
  28. package/dist/chunks/{metric-comparison-Cm0G893W.js → metric-comparison-B0FR-Q8I.js} +184 -125
  29. package/dist/chunks/{paintbrush-DQIwqlck.js → paintbrush-58FQYY-y.js} +1 -1
  30. package/dist/chunks/{palette-Cun747Rg.js → palette-Be62Tkoa.js} +1 -1
  31. package/dist/chunks/{pivot-result-contract-expectations-C1Dyx8du.js → pivot-result-contract-expectations-BYqAmG9n.js} +1236 -1190
  32. package/dist/chunks/{pivot-result-identity-CBS-ssEp.js → pivot-result-identity-CAP4--iq.js} +1 -1
  33. package/dist/chunks/raw-temporal-value-Dg_MTFF7.js +3778 -0
  34. package/dist/chunks/{report-preferences-dialog-SDZEcG2x.js → report-preferences-dialog-uJp9GBTM.js} +219 -205
  35. package/dist/chunks/{report-runtime-context-BbedQdtc.js → report-runtime-context-c77_KF9v.js} +2 -2
  36. package/dist/chunks/{resolve-dashboard-input-context-DRBS0eRa.js → resolve-dashboard-input-context-Rtl1ffmE.js} +8808 -7291
  37. package/dist/chunks/{save-Dj5bjm7P.js → save-C5A0JnEV.js} +1 -1
  38. package/dist/chunks/{saved-dashboard-context-DWVlJcsa.js → saved-dashboard-context-tcyTU8jm.js} +199 -213
  39. package/dist/chunks/selection-filter-compiler-DNijjI5y.js +150 -0
  40. package/dist/chunks/{semaphor-ready-indicator-OFOoAY-A.js → semaphor-ready-indicator-FBvunj6S.js} +37894 -35726
  41. package/dist/chunks/{shelf-drop-preview-context-2swWypXu.js → shelf-drop-preview-context-QKStrcK9.js} +54 -54
  42. package/dist/chunks/{stored-dashboard-NtOuEX6a.js → stored-dashboard-CHozcAY9.js} +770 -743
  43. package/dist/chunks/{style-sheet-parts-Qv4UcLAo.js → style-sheet-parts-CDCG-8Ej.js} +258 -251
  44. package/dist/chunks/{table-export-sheet-Do7ZB0_F.js → table-export-sheet-ZFIvs6Sj.js} +1 -1
  45. package/dist/chunks/{token-types-Dy_aXO-U.js → token-types-XbM6QByy.js} +1 -1
  46. package/dist/chunks/{upload-Bq-puSVy.js → upload-H15d7uHK.js} +1 -1
  47. package/dist/chunks/{validators-C7DFk3QK.js → validators-Baf3VIf5.js} +5 -5
  48. package/dist/chunks/{variable-draft-Cy03qnEi.js → variable-draft-C2y8Jp6Z.js} +27 -28
  49. package/dist/dashboard/index.js +2 -2
  50. package/dist/dashboard-authoring/index.js +3392 -2761
  51. package/dist/format-utils/index.js +205 -204
  52. package/dist/index.js +73 -75
  53. package/dist/report-runtime-context/index.js +2 -2
  54. package/dist/style.css +1 -1
  55. package/dist/surfboard/index.js +2 -2
  56. package/dist/types/components/dashboard/dashboard-web-component.d.ts +7 -0
  57. package/dist/types/components/ui-custom/date-range-presets.d.ts +8 -0
  58. package/dist/types/index.js +5 -5
  59. package/dist/types/lib/dashboard-inputs/dashboard-input-target-context.d.ts +1 -1
  60. package/dist/types/lib/document/document-edits.d.ts +0 -4
  61. package/dist/types/lib/query-context/assemble-card-query.d.ts +6 -1
  62. package/dist/types/lib/stores/dashboard-store.d.ts +30 -1
  63. package/dist/types/lib/types/common-types.d.ts +0 -2
  64. package/dist/types/lib/types/explorer-types.d.ts +1 -1
  65. package/dist/types/shared/analytics-protocol/aggregate-expression.d.ts +15 -0
  66. package/dist/types/shared/analytics-protocol/analytics-base-schemas.d.ts +18 -0
  67. package/dist/types/shared/analytics-protocol/analyze-result-types.d.ts +3 -0
  68. package/dist/types/shared/analytics-protocol/comparison-choices.d.ts +92 -0
  69. package/dist/types/shared/analytics-protocol/comparison-placement.d.ts +30 -0
  70. package/dist/types/shared/analytics-protocol/contracts.d.ts +11 -5
  71. package/dist/types/shared/analytics-protocol/date-window.d.ts +105 -0
  72. package/dist/types/shared/analytics-protocol/filter-field-ownership.d.ts +27 -0
  73. package/dist/types/shared/analytics-protocol/fixtures.d.ts +4 -2
  74. package/dist/types/shared/analytics-protocol/index.d.ts +3 -0
  75. package/dist/types/shared/analytics-protocol/metric-comparison.d.ts +93 -11
  76. package/dist/types/shared/assistant-protocol/context.d.ts +16 -16
  77. package/dist/types/shared/dashboard-authoring/calculations/calculated-column.d.ts +52 -0
  78. package/dist/types/shared/dashboard-authoring/calculations/definition.d.ts +129 -0
  79. package/dist/types/shared/dashboard-authoring/calculations/resolve-dashboard-field-copies.d.ts +46 -0
  80. package/dist/types/shared/dashboard-authoring/calculations/tokens.d.ts +36 -0
  81. package/dist/types/shared/dashboard-authoring/card-settings/card-display-write.d.ts +8 -0
  82. package/dist/types/shared/dashboard-authoring/card-settings/card-kinds.d.ts +1 -1
  83. package/dist/types/shared/dashboard-authoring/card-settings/inputs.d.ts +2 -1
  84. package/dist/types/shared/dashboard-authoring/card-settings/resolved.d.ts +0 -3
  85. package/dist/types/shared/dashboard-authoring/changes/calculation-change.d.ts +399 -0
  86. package/dist/types/shared/dashboard-authoring/changes/dashboard-change.d.ts +165 -360
  87. package/dist/types/shared/dashboard-authoring/changes/diagnostics.d.ts +23 -2
  88. package/dist/types/shared/dashboard-authoring/changes/domain-change.d.ts +143 -266
  89. package/dist/types/shared/dashboard-authoring/changes/read-card-query.d.ts +2 -0
  90. package/dist/types/shared/dashboard-authoring/changes/resolve-dashboard-changes.d.ts +46 -0
  91. package/dist/types/shared/dashboard-authoring/conditional-formatting/schema.d.ts +10 -10
  92. package/dist/types/shared/dashboard-authoring/dashboard-variable-card.d.ts +2 -4
  93. package/dist/types/shared/dashboard-authoring/index.d.ts +7 -1
  94. package/dist/types/shared/dashboard-authoring/kpi-date-context.d.ts +2 -0
  95. package/dist/types/shared/dashboard-authoring/kpi-figure.d.ts +18 -0
  96. package/dist/types/shared/dashboard-authoring/measure-calculations/comparison.d.ts +8 -7
  97. package/dist/types/shared/dashboard-authoring/measure-calculations/dates.d.ts +11 -1
  98. package/dist/types/shared/dashboard-authoring/measure-calculations/index.d.ts +2 -2
  99. package/dist/types/shared/dashboard-authoring/measure-calculations/options.d.ts +4 -0
  100. package/dist/types/shared/dashboard-authoring/measure-calculations/read.d.ts +18 -1
  101. package/dist/types/shared/dashboard-authoring/measure-calculations/resolve.d.ts +2 -0
  102. package/dist/types/shared/dashboard-authoring/measure-calculations/schemas.d.ts +46 -88
  103. package/dist/types/shared/dashboard-authoring/operations/calculated-field-operations.d.ts +158 -0
  104. package/dist/types/shared/dashboard-authoring/operations/card-operations.d.ts +71 -0
  105. package/dist/types/shared/dashboard-authoring/operations/operation-types.d.ts +17 -6
  106. package/dist/types/shared/dashboard-authoring/outline/outline-dashboard.d.ts +21 -0
  107. package/dist/types/shared/dashboard-authoring/outline/outline-filters.d.ts +3 -0
  108. package/dist/types/shared/format-utils/comparison-detail.d.ts +34 -0
  109. package/dist/types/shared/format-utils/index.d.ts +1 -0
  110. package/dist/types/shared/format-utils/partial-period.d.ts +4 -2
  111. package/dist/types/shared/temporal/calendar-periods.d.ts +11 -0
  112. package/dist/types/shared/temporal/index.d.ts +2 -0
  113. package/dist/types/shared/temporal/temporal-text.d.ts +33 -0
  114. package/dist/types/shared/temporal/temporal.d.ts +27 -0
  115. package/dist/types/shared/temporal/zoned-wall-clock.d.ts +4 -3
  116. package/dist/types/shared/usage-events/details.d.ts +2 -2
  117. package/dist/types/shared/usage-events/envelope.d.ts +2 -2
  118. package/dist/usage-events/index.js +1 -1
  119. package/package.json +3 -2
  120. package/dist/chunks/dates-B-Urp5OD.js +0 -164
  121. package/dist/chunks/matrix-member-presentation-g0c_NpDW.js +0 -258
  122. package/dist/chunks/raw-temporal-value-DN_l-Tss.js +0 -454
  123. package/dist/chunks/selection-filter-compiler-DmAr7yqC.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;
@@ -5938,13 +5601,13 @@ export declare const dashboardChangeSchema: z.ZodDiscriminatedUnion<"op", [z.Zod
5938
5601
  emptyText: z.ZodTypeAny;
5939
5602
  }, "strict", z.ZodTypeAny, {
5940
5603
  name: string;
5604
+ op: "variable.add";
5941
5605
  query: VariableQueryChange;
5942
5606
  get: "aggregate" | "first" | "list" | "only" | {
5943
5607
  kind: "aggregate" | "first" | "list" | "only";
5944
5608
  limit?: number | undefined;
5945
5609
  separator?: string | undefined;
5946
5610
  };
5947
- op: "variable.add";
5948
5611
  presentation?: {
5949
5612
  percent?: boolean | undefined;
5950
5613
  decimals?: number | undefined;
@@ -5966,13 +5629,13 @@ export declare const dashboardChangeSchema: z.ZodDiscriminatedUnion<"op", [z.Zod
5966
5629
  emptyText?: any;
5967
5630
  }, {
5968
5631
  name: string;
5632
+ op: "variable.add";
5969
5633
  query: VariableQueryChange;
5970
5634
  get: "aggregate" | "first" | "list" | "only" | {
5971
5635
  kind: "aggregate" | "first" | "list" | "only";
5972
5636
  limit?: number | undefined;
5973
5637
  separator?: string | undefined;
5974
5638
  };
5975
- op: "variable.add";
5976
5639
  presentation?: {
5977
5640
  percent?: boolean | undefined;
5978
5641
  decimals?: number | undefined;
@@ -6106,6 +5769,148 @@ export declare const dashboardChangeSchema: z.ZodDiscriminatedUnion<"op", [z.Zod
6106
5769
  size?: number | undefined;
6107
5770
  align?: "left" | "right" | "center" | undefined;
6108
5771
  } | undefined;
5772
+ }>, z.ZodObject<{
5773
+ op: z.ZodLiteral<"calculation.add">;
5774
+ domainId: z.ZodOptional<z.ZodString>;
5775
+ dataset: z.ZodOptional<z.ZodString>;
5776
+ name: z.ZodString;
5777
+ label: z.ZodOptional<z.ZodString>;
5778
+ description: z.ZodOptional<z.ZodString>;
5779
+ expression: z.ZodString;
5780
+ inputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
5781
+ dataset: z.ZodString;
5782
+ field: z.ZodString;
5783
+ aggregate: z.ZodOptional<z.ZodEnum<["SUM", "COUNT", "AVG", "MIN", "MAX", "MEDIAN", "DISTINCT"]>>;
5784
+ }, "strict", z.ZodTypeAny, {
5785
+ field: string;
5786
+ dataset: string;
5787
+ aggregate?: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT" | undefined;
5788
+ }, {
5789
+ field: string;
5790
+ dataset: string;
5791
+ aggregate?: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT" | undefined;
5792
+ }>, z.ZodObject<{
5793
+ metric: z.ZodString;
5794
+ dataset: z.ZodOptional<z.ZodString>;
5795
+ }, "strict", z.ZodTypeAny, {
5796
+ metric: string;
5797
+ dataset?: string | undefined;
5798
+ }, {
5799
+ metric: string;
5800
+ dataset?: string | undefined;
5801
+ }>]>>>;
5802
+ use: z.ZodOptional<z.ZodEnum<["aggregate", "group_or_filter"]>>;
5803
+ dataType: z.ZodOptional<z.ZodEnum<["string", "number", "boolean", "date", "datetime"]>>;
5804
+ }, "strict", z.ZodTypeAny, {
5805
+ name: string;
5806
+ expression: string;
5807
+ op: "calculation.add";
5808
+ domainId?: string | undefined;
5809
+ label?: string | undefined;
5810
+ dataType?: "string" | "number" | "boolean" | "date" | "datetime" | undefined;
5811
+ description?: string | undefined;
5812
+ inputs?: Record<string, {
5813
+ field: string;
5814
+ dataset: string;
5815
+ aggregate?: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT" | undefined;
5816
+ } | {
5817
+ metric: string;
5818
+ dataset?: string | undefined;
5819
+ }> | undefined;
5820
+ dataset?: string | undefined;
5821
+ use?: "aggregate" | "group_or_filter" | undefined;
5822
+ }, {
5823
+ name: string;
5824
+ expression: string;
5825
+ op: "calculation.add";
5826
+ domainId?: string | undefined;
5827
+ label?: string | undefined;
5828
+ dataType?: "string" | "number" | "boolean" | "date" | "datetime" | undefined;
5829
+ description?: string | undefined;
5830
+ inputs?: Record<string, {
5831
+ field: string;
5832
+ dataset: string;
5833
+ aggregate?: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT" | undefined;
5834
+ } | {
5835
+ metric: string;
5836
+ dataset?: string | undefined;
5837
+ }> | undefined;
5838
+ dataset?: string | undefined;
5839
+ use?: "aggregate" | "group_or_filter" | undefined;
5840
+ }>, z.ZodObject<{
5841
+ op: z.ZodLiteral<"calculation.update">;
5842
+ name: z.ZodString;
5843
+ domainId: z.ZodOptional<z.ZodString>;
5844
+ dataset: z.ZodOptional<z.ZodString>;
5845
+ label: z.ZodOptional<z.ZodString>;
5846
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5847
+ expression: z.ZodOptional<z.ZodString>;
5848
+ inputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
5849
+ dataset: z.ZodString;
5850
+ field: z.ZodString;
5851
+ aggregate: z.ZodOptional<z.ZodEnum<["SUM", "COUNT", "AVG", "MIN", "MAX", "MEDIAN", "DISTINCT"]>>;
5852
+ }, "strict", z.ZodTypeAny, {
5853
+ field: string;
5854
+ dataset: string;
5855
+ aggregate?: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT" | undefined;
5856
+ }, {
5857
+ field: string;
5858
+ dataset: string;
5859
+ aggregate?: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT" | undefined;
5860
+ }>, z.ZodObject<{
5861
+ metric: z.ZodString;
5862
+ dataset: z.ZodOptional<z.ZodString>;
5863
+ }, "strict", z.ZodTypeAny, {
5864
+ metric: string;
5865
+ dataset?: string | undefined;
5866
+ }, {
5867
+ metric: string;
5868
+ dataset?: string | undefined;
5869
+ }>]>>>;
5870
+ }, "strict", z.ZodTypeAny, {
5871
+ name: string;
5872
+ op: "calculation.update";
5873
+ domainId?: string | undefined;
5874
+ label?: string | undefined;
5875
+ description?: string | null | undefined;
5876
+ expression?: string | undefined;
5877
+ inputs?: Record<string, {
5878
+ field: string;
5879
+ dataset: string;
5880
+ aggregate?: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT" | undefined;
5881
+ } | {
5882
+ metric: string;
5883
+ dataset?: string | undefined;
5884
+ }> | undefined;
5885
+ dataset?: string | undefined;
5886
+ }, {
5887
+ name: string;
5888
+ op: "calculation.update";
5889
+ domainId?: string | undefined;
5890
+ label?: string | undefined;
5891
+ description?: string | null | undefined;
5892
+ expression?: string | undefined;
5893
+ inputs?: Record<string, {
5894
+ field: string;
5895
+ dataset: string;
5896
+ aggregate?: "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "MEDIAN" | "DISTINCT" | undefined;
5897
+ } | {
5898
+ metric: string;
5899
+ dataset?: string | undefined;
5900
+ }> | undefined;
5901
+ dataset?: string | undefined;
5902
+ }>, z.ZodObject<{
5903
+ op: z.ZodLiteral<"calculation.remove">;
5904
+ name: z.ZodString;
5905
+ dataset: z.ZodOptional<z.ZodString>;
5906
+ }, "strict", z.ZodTypeAny, {
5907
+ name: string;
5908
+ op: "calculation.remove";
5909
+ dataset?: string | undefined;
5910
+ }, {
5911
+ name: string;
5912
+ op: "calculation.remove";
5913
+ dataset?: string | undefined;
6109
5914
  }>]>;
6110
5915
  /** The ops of changes to a dashboard: the one list callers route by (semaphor-app's MCP change tools). */
6111
5916
  export declare const DASHBOARD_CHANGE_OPS: readonly DashboardChange['op'][];