react-semaphor 0.1.559 → 0.1.561

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 (168) hide show
  1. package/dist/analytics-protocol/index.js +389 -378
  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 +9 -9
  5. package/dist/briefings/index.js +5 -5
  6. package/dist/chunks/analytics-base-schemas-CB3oFAXk.js +658 -0
  7. package/dist/chunks/{assistant-chat-B_4bVE6I.js → assistant-chat-DiVHY3Hw.js} +209 -211
  8. package/dist/chunks/bookmark-impact-CR09dpkn.js +75 -0
  9. package/dist/chunks/bookmark-state-BusLpkb7.js +743 -0
  10. package/dist/chunks/{braces-Rdxa3H-s.js → braces-u8VorWJc.js} +1 -1
  11. package/dist/chunks/{comparison-window-caption-CKzQ5LcF.js → comparison-window-caption-DDsIWJYT.js} +201 -201
  12. package/dist/chunks/{context-DVy4HOU0.js → context-TUjw9eqr.js} +1 -1
  13. package/dist/chunks/{custom-visual-inputs-zVa9wX_o.js → custom-visual-inputs-DfolidZ9.js} +1 -1
  14. package/dist/chunks/{dashboard-BziwOVpZ.js → dashboard-BRdZBPqr.js} +1 -1
  15. package/dist/chunks/{dashboard-briefing-launcher-CbeNR-YI.js → dashboard-briefing-launcher-CgvTLndW.js} +1163 -1178
  16. package/dist/chunks/{dashboard-controls-RD6UJs1r.js → dashboard-controls-B4vfSzTF.js} +877 -941
  17. package/dist/chunks/{dashboard-json-DGpv17vL.js → dashboard-json-Y3MF59g7.js} +5 -5
  18. package/dist/chunks/document-dashboard-inputs-CvBbFTUA.js +1718 -0
  19. package/dist/chunks/{edit-dashboard-visual-AQ2pQkFp.js → edit-dashboard-visual-DwjZcxj-.js} +9080 -9354
  20. package/dist/chunks/filter-reach-copy-bijwf_-b.js +3596 -0
  21. package/dist/chunks/{filter-value-text-B4l-xqJT.js → filter-value-text-DFnhwuEW.js} +3 -3
  22. package/dist/chunks/global-date-filter-utils-BXgCpvQM.js +15142 -0
  23. package/dist/chunks/{index-B1Xr7W24.js → index-ClwbY3BL.js} +648 -674
  24. package/dist/chunks/{layout-grid-Bbz3zKif.js → layout-grid-CtvCBfOm.js} +1 -1
  25. package/dist/chunks/{list-filter-3sbH0Uy1.js → list-filter-BklYgciR.js} +1 -1
  26. package/dist/chunks/{matrix-analytical-definition-CEe3PGEo.js → matrix-analytical-definition-pU51-JmY.js} +4 -4
  27. package/dist/chunks/{matrix-card-BRNGb1C4.js → matrix-card-CUorIB7Q.js} +3 -3
  28. package/dist/chunks/{matrix-member-presentation-CEegvTqg.js → matrix-member-presentation-Df5UgCGN.js} +1 -1
  29. package/dist/chunks/{matrix-operation-contract-COxrfQTS.js → matrix-operation-contract-BSiGEXVC.js} +221 -214
  30. package/dist/chunks/{metric-comparison-DQx-uX__.js → metric-comparison-95aC0uEO.js} +6 -6
  31. package/dist/chunks/{model-change-CJEj3ZD6.js → model-change-B5wQhg5G.js} +1 -1
  32. package/dist/chunks/{palette-DMJtp3Vn.js → palette-DTnMhipt.js} +1 -1
  33. package/dist/chunks/pivot-result-contract-expectations-Bo-86vwS.js +56 -0
  34. package/dist/chunks/{pivot-result-identity-CAj8SiRL.js → pivot-result-identity-olvXJoB9.js} +1 -1
  35. package/dist/chunks/{report-preferences-dialog-0sc8B1lh.js → report-preferences-dialog-C2YUIwKG.js} +55 -55
  36. package/dist/chunks/{report-runtime-context-bYoExeWr.js → report-runtime-context-DoIUr3MP.js} +2 -2
  37. package/dist/chunks/resolve-dashboard-input-context-q_iiNXE1.js +6503 -0
  38. package/dist/chunks/{save-DSb1jTtG.js → save-DH4RyrnG.js} +1 -1
  39. package/dist/chunks/{saved-dashboard-context-BQWM3ldX.js → saved-dashboard-context-8jqfI7hI.js} +59 -59
  40. package/dist/chunks/{selection-reducer-DSzMWb4x.js → selection-reducer-CV7K4FI6.js} +1 -1
  41. package/dist/chunks/{semaphor-ready-indicator-Bz14Oma5.js → semaphor-ready-indicator-E2XWyibu.js} +40105 -41658
  42. package/dist/chunks/{shelf-drop-preview-context-DBHAkgch.js → shelf-drop-preview-context-C29EUzDp.js} +570 -570
  43. package/dist/chunks/{source-entity-resolution-BOrmNCEM.js → source-entity-resolution-BXI3nQ5Z.js} +1 -1
  44. package/dist/chunks/{switch-Dq8XPFpT.js → switch-balDSHc7.js} +3 -3
  45. package/dist/chunks/{table-export-sheet-C_RvEUyO.js → table-export-sheet-CK8tvh4d.js} +1 -1
  46. package/dist/chunks/temporal-input-presentation-B77JsAzU.js +5002 -0
  47. package/dist/chunks/{token-types-LCYMJ3pa.js → token-types-DhYH5YKb.js} +1 -1
  48. package/dist/chunks/{upload-Dr_WAxHQ.js → upload-Ufj8vjyn.js} +1 -1
  49. package/dist/chunks/{use-create-flow-overlay-state-BK3YFkfc.js → use-create-flow-overlay-state-9WsnzEO5.js} +6 -6
  50. package/dist/chunks/{validators-C87JPd-_.js → validators-BtaCFIEB.js} +1206 -1579
  51. package/dist/chunks/{zoned-wall-clock-E35Frf9v.js → zoned-wall-clock-CGLVI40Q.js} +1 -1
  52. package/dist/dashboard/index.js +2 -2
  53. package/dist/dashboard-authoring/index.js +2713 -1459
  54. package/dist/data-app-sdk/index.js +20 -20
  55. package/dist/data-app-sdk-adapters/index.js +3 -3
  56. package/dist/data-app-sdk-validation/index.js +10 -10
  57. package/dist/format-utils/index.js +262 -256
  58. package/dist/index.js +214 -215
  59. package/dist/report-runtime-context/index.js +2 -2
  60. package/dist/style.css +1 -1
  61. package/dist/surfboard/index.js +2 -2
  62. package/dist/types/components/dashboard/summary-number-formatter.d.ts +6 -0
  63. package/dist/types/components/editor/editor-aside/utils.d.ts +1 -1
  64. package/dist/types/components/visual/data-table/types/data-table.d.ts +5 -20
  65. package/dist/types/index.js +50 -51
  66. package/dist/types/lib/formatters/canonical-format-adapter.d.ts +2 -29
  67. package/dist/types/lib/formatters/kpi-number-formatter.d.ts +41 -0
  68. package/dist/types/lib/formatters/raw-temporal-presentation.d.ts +0 -2
  69. package/dist/types/lib/formatters/table-column-settings.d.ts +47 -0
  70. package/dist/types/lib/matrix-table/matrix-card-adapter.d.ts +10 -188
  71. package/dist/types/lib/matrix-table/matrix-delivery-policy.d.ts +1 -1
  72. package/dist/types/lib/matrix-table/matrix-delivery.d.ts +16 -372
  73. package/dist/types/lib/stores/dashboard-store.d.ts +0 -1
  74. package/dist/types/lib/stores/editor-store.d.ts +48 -10
  75. package/dist/types/lib/stores/table-actions.d.ts +9 -5
  76. package/dist/types/lib/table-formatting/index.d.ts +0 -2
  77. package/dist/types/lib/table-formatting/table-conditional-formatting-range-source.d.ts +3 -2
  78. package/dist/types/lib/table-formatting/table-conditional-formatting-range.d.ts +3 -2
  79. package/dist/types/lib/table-formatting/table-formatting-normalize.d.ts +1 -2
  80. package/dist/types/lib/table-formatting/table-formatting-render-model.d.ts +9 -0
  81. package/dist/types/lib/table-formatting/table-formatting-types.d.ts +5 -95
  82. package/dist/types/lib/table-formatting/table-presentation-fields.d.ts +35 -0
  83. package/dist/types/lib/types/common-types.d.ts +40 -47
  84. package/dist/types/lib/types/explorer-types.d.ts +11 -43
  85. package/dist/types/lib/utils/card-config-utils.d.ts +8 -0
  86. package/dist/types/lib/utils/card-definition.d.ts +9 -187
  87. package/dist/types/shared/analytics-protocol/analytics-base-schemas.d.ts +169 -513
  88. package/dist/types/shared/analytics-protocol/contracts.d.ts +32 -9
  89. package/dist/types/shared/analytics-protocol/execution-input-schemas.d.ts +108 -980
  90. package/dist/types/shared/analytics-protocol/field-validation.d.ts +1 -0
  91. package/dist/types/shared/analytics-protocol/matrix-definition-contract.d.ts +281 -4624
  92. package/dist/types/shared/analytics-protocol/matrix-operation-contract.d.ts +20 -20
  93. package/dist/types/shared/analytics-protocol/matrix-operation-request.d.ts +18 -18
  94. package/dist/types/shared/analytics-protocol/matrix-path-contract.d.ts +40 -40
  95. package/dist/types/shared/analytics-protocol/matrix-window-contract.d.ts +3 -203
  96. package/dist/types/shared/analytics-protocol/measure-aggregation-profile.d.ts +12 -0
  97. package/dist/types/shared/analytics-protocol/scalar-value.d.ts +8 -8
  98. package/dist/types/shared/assistant-context/saved-dashboard-context.d.ts +8 -0
  99. package/dist/types/shared/assistant-protocol/context.d.ts +69 -69
  100. package/dist/types/shared/dashboard-authoring/canonical-result-keys.d.ts +13 -0
  101. package/dist/types/shared/dashboard-authoring/card-export-request.d.ts +4 -1
  102. package/dist/types/shared/dashboard-authoring/card-formats/sql-date-pattern.d.ts +10 -0
  103. package/dist/types/shared/dashboard-authoring/card-formats/upgrade-card-formats.d.ts +57 -0
  104. package/dist/types/shared/dashboard-authoring/card-settings/apply-card-settings.d.ts +11 -0
  105. package/dist/types/shared/dashboard-authoring/card-settings/card-display-write.d.ts +52 -0
  106. package/dist/types/shared/dashboard-authoring/card-settings/card-kinds.d.ts +14 -0
  107. package/dist/types/shared/dashboard-authoring/card-settings/carry-column-settings.d.ts +3 -0
  108. package/dist/types/shared/dashboard-authoring/card-settings/column-format-write.d.ts +8 -0
  109. package/dist/types/shared/dashboard-authoring/card-settings/column-names.d.ts +51 -0
  110. package/dist/types/shared/dashboard-authoring/card-settings/column-sources.d.ts +14 -0
  111. package/dist/types/shared/dashboard-authoring/card-settings/confirm-class.d.ts +9 -0
  112. package/dist/types/shared/dashboard-authoring/card-settings/highlight-inputs.d.ts +19 -0
  113. package/dist/types/shared/dashboard-authoring/card-settings/index.d.ts +15 -0
  114. package/dist/types/shared/dashboard-authoring/card-settings/inputs.d.ts +102 -0
  115. package/dist/types/shared/dashboard-authoring/card-settings/read-card-settings.d.ts +10 -0
  116. package/dist/types/shared/dashboard-authoring/card-settings/resolve-card-highlights.d.ts +14 -0
  117. package/dist/types/shared/dashboard-authoring/card-settings/resolve-card-settings.d.ts +59 -0
  118. package/dist/types/shared/dashboard-authoring/card-settings/resolved.d.ts +40 -0
  119. package/dist/types/shared/dashboard-authoring/card-settings/views.d.ts +28 -0
  120. package/dist/types/shared/dashboard-authoring/changes/card-query-part.d.ts +6 -0
  121. package/dist/types/shared/dashboard-authoring/changes/card-types.d.ts +32 -0
  122. package/dist/types/shared/dashboard-authoring/changes/dashboard-change.d.ts +555 -38
  123. package/dist/types/shared/dashboard-authoring/changes/diagnostics.d.ts +27 -8
  124. package/dist/types/shared/dashboard-authoring/changes/resolve-dashboard-changes.d.ts +25 -1
  125. package/dist/types/shared/dashboard-authoring/conditional-formatting/editable.d.ts +14 -0
  126. package/dist/types/shared/dashboard-authoring/conditional-formatting/evaluate.d.ts +16 -0
  127. package/dist/types/shared/dashboard-authoring/conditional-formatting/index.d.ts +9 -0
  128. package/dist/types/shared/dashboard-authoring/conditional-formatting/kpi.d.ts +7 -0
  129. package/dist/types/shared/dashboard-authoring/conditional-formatting/resolve-card-column-ref.d.ts +17 -0
  130. package/dist/types/shared/dashboard-authoring/conditional-formatting/retain.d.ts +14 -0
  131. package/dist/types/shared/dashboard-authoring/conditional-formatting/schema.d.ts +4499 -0
  132. package/dist/types/shared/dashboard-authoring/conditional-formatting/store.d.ts +12 -0
  133. package/dist/types/shared/dashboard-authoring/conditional-formatting/types.d.ts +151 -0
  134. package/dist/types/shared/dashboard-authoring/conditional-formatting/upgrade.d.ts +35 -0
  135. package/dist/types/shared/dashboard-authoring/control-execution-contract.d.ts +62 -62
  136. package/dist/types/shared/dashboard-authoring/index.d.ts +8 -0
  137. package/dist/types/shared/dashboard-authoring/kpi-figure.d.ts +123 -0
  138. package/dist/types/shared/dashboard-authoring/matrix-authoring.d.ts +4 -5
  139. package/dist/types/shared/dashboard-authoring/matrix-delivery.d.ts +24 -736
  140. package/dist/types/shared/dashboard-authoring/operations/operation-types.d.ts +21 -1
  141. package/dist/types/shared/dashboard-authoring/outline/outline-dashboard.d.ts +10 -4
  142. package/dist/types/shared/dashboard-authoring/retired-presentation-fields.d.ts +31 -0
  143. package/dist/types/shared/dashboard-authoring/upgrade-card-presentation.d.ts +14 -0
  144. package/dist/types/shared/dashboard-viewer/bookmark-impact.d.ts +33 -0
  145. package/dist/types/shared/format-utils/formatters/matrix-formatter.d.ts +13 -2
  146. package/dist/types/shared/format-utils/formatters/number-formatter.d.ts +16 -0
  147. package/dist/types/shared/format-utils/index.d.ts +2 -0
  148. package/dist/types/shared/format-utils/matrix-export-presentation.d.ts +10 -366
  149. package/dist/types/shared/format-utils/raw-temporal.d.ts +31 -1
  150. package/dist/types/shared/format-utils/resolve-column-format.d.ts +43 -0
  151. package/dist/types/shared/format-utils/retired-format-adapters.d.ts +68 -0
  152. package/dist/types/shared/format-utils/semantic-format.d.ts +5 -1
  153. package/dist/types/shared/format-utils/stored-value-format.d.ts +16 -0
  154. package/dist/types/shared/format-utils/types/format-types.d.ts +10 -12
  155. package/package.json +2 -2
  156. package/dist/chunks/analytics-base-schemas-BUFUoO6G.js +0 -472
  157. package/dist/chunks/bookmark-state-ssqrs5oP.js +0 -111
  158. package/dist/chunks/document-dashboard-inputs-ChVkcBuu.js +0 -3010
  159. package/dist/chunks/editor-draft-sync-BN5qYHPF.js +0 -15
  160. package/dist/chunks/filter-reach-copy-B5Y7FHzg.js +0 -3411
  161. package/dist/chunks/global-date-filter-utils-DBzEOX9M.js +0 -12222
  162. package/dist/chunks/pivot-result-contract-expectations-DOYhqeZb.js +0 -1926
  163. package/dist/chunks/raw-temporal-presentation-BmT7z6NH.js +0 -584
  164. package/dist/chunks/resolve-dashboard-input-context-B_C_VAJH.js +0 -5520
  165. package/dist/chunks/table-settings-DXj_zXwS.js +0 -637
  166. package/dist/chunks/temporal-input-presentation-AhLSkGPf.js +0 -2939
  167. package/dist/types/lib/table-formatting/table-conditional-formatting-evaluator.d.ts +0 -9
  168. package/dist/types/lib/table-formatting/table-formatting-validation.d.ts +0 -12
@@ -0,0 +1,4499 @@
1
+ import { z } from 'zod';
2
+ import { TCard } from '../../../lib/types/common-types.js';
3
+ import { CardColumnRef } from './types.js';
4
+ export declare const cardColumnRefSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
5
+ kind: z.ZodLiteral<"field">;
6
+ fieldId: z.ZodString;
7
+ }, "strict", z.ZodTypeAny, {
8
+ kind: "field";
9
+ fieldId: string;
10
+ }, {
11
+ kind: "field";
12
+ fieldId: string;
13
+ }>, z.ZodObject<{
14
+ kind: z.ZodLiteral<"pivot">;
15
+ metricId: z.ZodString;
16
+ members: z.ZodArray<z.ZodObject<{
17
+ fieldId: z.ZodString;
18
+ value: z.ZodNullable<z.ZodString>;
19
+ }, "strict", z.ZodTypeAny, {
20
+ value: string | null;
21
+ fieldId: string;
22
+ }, {
23
+ value: string | null;
24
+ fieldId: string;
25
+ }>, "many">;
26
+ }, "strict", z.ZodTypeAny, {
27
+ kind: "pivot";
28
+ metricId: string;
29
+ members: {
30
+ value: string | null;
31
+ fieldId: string;
32
+ }[];
33
+ }, {
34
+ kind: "pivot";
35
+ metricId: string;
36
+ members: {
37
+ value: string | null;
38
+ fieldId: string;
39
+ }[];
40
+ }>, z.ZodObject<{
41
+ kind: z.ZodLiteral<"result">;
42
+ key: z.ZodString;
43
+ }, "strict", z.ZodTypeAny, {
44
+ kind: "result";
45
+ key: string;
46
+ }, {
47
+ kind: "result";
48
+ key: string;
49
+ }>, z.ZodObject<{
50
+ kind: z.ZodLiteral<"sqlKpiValue">;
51
+ }, "strict", z.ZodTypeAny, {
52
+ kind: "sqlKpiValue";
53
+ }, {
54
+ kind: "sqlKpiValue";
55
+ }>, z.ZodObject<{
56
+ kind: z.ZodLiteral<"matrixMeasure">;
57
+ measureId: z.ZodString;
58
+ }, "strict", z.ZodTypeAny, {
59
+ kind: "matrixMeasure";
60
+ measureId: string;
61
+ }, {
62
+ kind: "matrixMeasure";
63
+ measureId: string;
64
+ }>, z.ZodObject<{
65
+ kind: z.ZodLiteral<"matrixLevel">;
66
+ levelId: z.ZodString;
67
+ }, "strict", z.ZodTypeAny, {
68
+ kind: "matrixLevel";
69
+ levelId: string;
70
+ }, {
71
+ kind: "matrixLevel";
72
+ levelId: string;
73
+ }>]>;
74
+ export declare const conditionalRuleSchema: z.ZodObject<{
75
+ id: z.ZodString;
76
+ name: z.ZodOptional<z.ZodString>;
77
+ enabled: z.ZodOptional<z.ZodBoolean>;
78
+ condition: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
79
+ kind: z.ZodLiteral<"comparison">;
80
+ column: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
81
+ kind: z.ZodLiteral<"field">;
82
+ fieldId: z.ZodString;
83
+ }, "strict", z.ZodTypeAny, {
84
+ kind: "field";
85
+ fieldId: string;
86
+ }, {
87
+ kind: "field";
88
+ fieldId: string;
89
+ }>, z.ZodObject<{
90
+ kind: z.ZodLiteral<"pivot">;
91
+ metricId: z.ZodString;
92
+ members: z.ZodArray<z.ZodObject<{
93
+ fieldId: z.ZodString;
94
+ value: z.ZodNullable<z.ZodString>;
95
+ }, "strict", z.ZodTypeAny, {
96
+ value: string | null;
97
+ fieldId: string;
98
+ }, {
99
+ value: string | null;
100
+ fieldId: string;
101
+ }>, "many">;
102
+ }, "strict", z.ZodTypeAny, {
103
+ kind: "pivot";
104
+ metricId: string;
105
+ members: {
106
+ value: string | null;
107
+ fieldId: string;
108
+ }[];
109
+ }, {
110
+ kind: "pivot";
111
+ metricId: string;
112
+ members: {
113
+ value: string | null;
114
+ fieldId: string;
115
+ }[];
116
+ }>, z.ZodObject<{
117
+ kind: z.ZodLiteral<"result">;
118
+ key: z.ZodString;
119
+ }, "strict", z.ZodTypeAny, {
120
+ kind: "result";
121
+ key: string;
122
+ }, {
123
+ kind: "result";
124
+ key: string;
125
+ }>, z.ZodObject<{
126
+ kind: z.ZodLiteral<"sqlKpiValue">;
127
+ }, "strict", z.ZodTypeAny, {
128
+ kind: "sqlKpiValue";
129
+ }, {
130
+ kind: "sqlKpiValue";
131
+ }>, z.ZodObject<{
132
+ kind: z.ZodLiteral<"matrixMeasure">;
133
+ measureId: z.ZodString;
134
+ }, "strict", z.ZodTypeAny, {
135
+ kind: "matrixMeasure";
136
+ measureId: string;
137
+ }, {
138
+ kind: "matrixMeasure";
139
+ measureId: string;
140
+ }>, z.ZodObject<{
141
+ kind: z.ZodLiteral<"matrixLevel">;
142
+ levelId: z.ZodString;
143
+ }, "strict", z.ZodTypeAny, {
144
+ kind: "matrixLevel";
145
+ levelId: string;
146
+ }, {
147
+ kind: "matrixLevel";
148
+ levelId: string;
149
+ }>]>;
150
+ operator: z.ZodEnum<["eq", "neq", "gt", "gte", "lt", "lte"]>;
151
+ value: z.ZodUnion<[z.ZodNull, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodEffects<z.ZodObject<{
152
+ kind: z.ZodLiteral<"exact_number">;
153
+ type: z.ZodEnum<["integer", "decimal"]>;
154
+ value: z.ZodEffects<z.ZodString, string, string>;
155
+ }, "strict", z.ZodTypeAny, {
156
+ type: "integer" | "decimal";
157
+ value: string;
158
+ kind: "exact_number";
159
+ }, {
160
+ type: "integer" | "decimal";
161
+ value: string;
162
+ kind: "exact_number";
163
+ }>, {
164
+ type: "integer" | "decimal";
165
+ value: string;
166
+ kind: "exact_number";
167
+ }, {
168
+ type: "integer" | "decimal";
169
+ value: string;
170
+ kind: "exact_number";
171
+ }>]>;
172
+ }, "strict", z.ZodTypeAny, {
173
+ value: string | number | boolean | {
174
+ type: "integer" | "decimal";
175
+ value: string;
176
+ kind: "exact_number";
177
+ } | null;
178
+ kind: "comparison";
179
+ operator: "eq" | "neq" | "gt" | "gte" | "lt" | "lte";
180
+ column: {
181
+ kind: "field";
182
+ fieldId: string;
183
+ } | {
184
+ kind: "pivot";
185
+ metricId: string;
186
+ members: {
187
+ value: string | null;
188
+ fieldId: string;
189
+ }[];
190
+ } | {
191
+ kind: "result";
192
+ key: string;
193
+ } | {
194
+ kind: "sqlKpiValue";
195
+ } | {
196
+ kind: "matrixMeasure";
197
+ measureId: string;
198
+ } | {
199
+ kind: "matrixLevel";
200
+ levelId: string;
201
+ };
202
+ }, {
203
+ value: string | number | boolean | {
204
+ type: "integer" | "decimal";
205
+ value: string;
206
+ kind: "exact_number";
207
+ } | null;
208
+ kind: "comparison";
209
+ operator: "eq" | "neq" | "gt" | "gte" | "lt" | "lte";
210
+ column: {
211
+ kind: "field";
212
+ fieldId: string;
213
+ } | {
214
+ kind: "pivot";
215
+ metricId: string;
216
+ members: {
217
+ value: string | null;
218
+ fieldId: string;
219
+ }[];
220
+ } | {
221
+ kind: "result";
222
+ key: string;
223
+ } | {
224
+ kind: "sqlKpiValue";
225
+ } | {
226
+ kind: "matrixMeasure";
227
+ measureId: string;
228
+ } | {
229
+ kind: "matrixLevel";
230
+ levelId: string;
231
+ };
232
+ }>, z.ZodObject<{
233
+ kind: z.ZodLiteral<"between">;
234
+ column: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
235
+ kind: z.ZodLiteral<"field">;
236
+ fieldId: z.ZodString;
237
+ }, "strict", z.ZodTypeAny, {
238
+ kind: "field";
239
+ fieldId: string;
240
+ }, {
241
+ kind: "field";
242
+ fieldId: string;
243
+ }>, z.ZodObject<{
244
+ kind: z.ZodLiteral<"pivot">;
245
+ metricId: z.ZodString;
246
+ members: z.ZodArray<z.ZodObject<{
247
+ fieldId: z.ZodString;
248
+ value: z.ZodNullable<z.ZodString>;
249
+ }, "strict", z.ZodTypeAny, {
250
+ value: string | null;
251
+ fieldId: string;
252
+ }, {
253
+ value: string | null;
254
+ fieldId: string;
255
+ }>, "many">;
256
+ }, "strict", z.ZodTypeAny, {
257
+ kind: "pivot";
258
+ metricId: string;
259
+ members: {
260
+ value: string | null;
261
+ fieldId: string;
262
+ }[];
263
+ }, {
264
+ kind: "pivot";
265
+ metricId: string;
266
+ members: {
267
+ value: string | null;
268
+ fieldId: string;
269
+ }[];
270
+ }>, z.ZodObject<{
271
+ kind: z.ZodLiteral<"result">;
272
+ key: z.ZodString;
273
+ }, "strict", z.ZodTypeAny, {
274
+ kind: "result";
275
+ key: string;
276
+ }, {
277
+ kind: "result";
278
+ key: string;
279
+ }>, z.ZodObject<{
280
+ kind: z.ZodLiteral<"sqlKpiValue">;
281
+ }, "strict", z.ZodTypeAny, {
282
+ kind: "sqlKpiValue";
283
+ }, {
284
+ kind: "sqlKpiValue";
285
+ }>, z.ZodObject<{
286
+ kind: z.ZodLiteral<"matrixMeasure">;
287
+ measureId: z.ZodString;
288
+ }, "strict", z.ZodTypeAny, {
289
+ kind: "matrixMeasure";
290
+ measureId: string;
291
+ }, {
292
+ kind: "matrixMeasure";
293
+ measureId: string;
294
+ }>, z.ZodObject<{
295
+ kind: z.ZodLiteral<"matrixLevel">;
296
+ levelId: z.ZodString;
297
+ }, "strict", z.ZodTypeAny, {
298
+ kind: "matrixLevel";
299
+ levelId: string;
300
+ }, {
301
+ kind: "matrixLevel";
302
+ levelId: string;
303
+ }>]>;
304
+ min: z.ZodUnion<[z.ZodNull, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodEffects<z.ZodObject<{
305
+ kind: z.ZodLiteral<"exact_number">;
306
+ type: z.ZodEnum<["integer", "decimal"]>;
307
+ value: z.ZodEffects<z.ZodString, string, string>;
308
+ }, "strict", z.ZodTypeAny, {
309
+ type: "integer" | "decimal";
310
+ value: string;
311
+ kind: "exact_number";
312
+ }, {
313
+ type: "integer" | "decimal";
314
+ value: string;
315
+ kind: "exact_number";
316
+ }>, {
317
+ type: "integer" | "decimal";
318
+ value: string;
319
+ kind: "exact_number";
320
+ }, {
321
+ type: "integer" | "decimal";
322
+ value: string;
323
+ kind: "exact_number";
324
+ }>]>;
325
+ max: z.ZodUnion<[z.ZodNull, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodEffects<z.ZodObject<{
326
+ kind: z.ZodLiteral<"exact_number">;
327
+ type: z.ZodEnum<["integer", "decimal"]>;
328
+ value: z.ZodEffects<z.ZodString, string, string>;
329
+ }, "strict", z.ZodTypeAny, {
330
+ type: "integer" | "decimal";
331
+ value: string;
332
+ kind: "exact_number";
333
+ }, {
334
+ type: "integer" | "decimal";
335
+ value: string;
336
+ kind: "exact_number";
337
+ }>, {
338
+ type: "integer" | "decimal";
339
+ value: string;
340
+ kind: "exact_number";
341
+ }, {
342
+ type: "integer" | "decimal";
343
+ value: string;
344
+ kind: "exact_number";
345
+ }>]>;
346
+ inclusive: z.ZodOptional<z.ZodBoolean>;
347
+ }, "strict", z.ZodTypeAny, {
348
+ kind: "between";
349
+ min: string | number | boolean | {
350
+ type: "integer" | "decimal";
351
+ value: string;
352
+ kind: "exact_number";
353
+ } | null;
354
+ max: string | number | boolean | {
355
+ type: "integer" | "decimal";
356
+ value: string;
357
+ kind: "exact_number";
358
+ } | null;
359
+ column: {
360
+ kind: "field";
361
+ fieldId: string;
362
+ } | {
363
+ kind: "pivot";
364
+ metricId: string;
365
+ members: {
366
+ value: string | null;
367
+ fieldId: string;
368
+ }[];
369
+ } | {
370
+ kind: "result";
371
+ key: string;
372
+ } | {
373
+ kind: "sqlKpiValue";
374
+ } | {
375
+ kind: "matrixMeasure";
376
+ measureId: string;
377
+ } | {
378
+ kind: "matrixLevel";
379
+ levelId: string;
380
+ };
381
+ inclusive?: boolean | undefined;
382
+ }, {
383
+ kind: "between";
384
+ min: string | number | boolean | {
385
+ type: "integer" | "decimal";
386
+ value: string;
387
+ kind: "exact_number";
388
+ } | null;
389
+ max: string | number | boolean | {
390
+ type: "integer" | "decimal";
391
+ value: string;
392
+ kind: "exact_number";
393
+ } | null;
394
+ column: {
395
+ kind: "field";
396
+ fieldId: string;
397
+ } | {
398
+ kind: "pivot";
399
+ metricId: string;
400
+ members: {
401
+ value: string | null;
402
+ fieldId: string;
403
+ }[];
404
+ } | {
405
+ kind: "result";
406
+ key: string;
407
+ } | {
408
+ kind: "sqlKpiValue";
409
+ } | {
410
+ kind: "matrixMeasure";
411
+ measureId: string;
412
+ } | {
413
+ kind: "matrixLevel";
414
+ levelId: string;
415
+ };
416
+ inclusive?: boolean | undefined;
417
+ }>, z.ZodObject<{
418
+ kind: z.ZodLiteral<"blank">;
419
+ column: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
420
+ kind: z.ZodLiteral<"field">;
421
+ fieldId: z.ZodString;
422
+ }, "strict", z.ZodTypeAny, {
423
+ kind: "field";
424
+ fieldId: string;
425
+ }, {
426
+ kind: "field";
427
+ fieldId: string;
428
+ }>, z.ZodObject<{
429
+ kind: z.ZodLiteral<"pivot">;
430
+ metricId: z.ZodString;
431
+ members: z.ZodArray<z.ZodObject<{
432
+ fieldId: z.ZodString;
433
+ value: z.ZodNullable<z.ZodString>;
434
+ }, "strict", z.ZodTypeAny, {
435
+ value: string | null;
436
+ fieldId: string;
437
+ }, {
438
+ value: string | null;
439
+ fieldId: string;
440
+ }>, "many">;
441
+ }, "strict", z.ZodTypeAny, {
442
+ kind: "pivot";
443
+ metricId: string;
444
+ members: {
445
+ value: string | null;
446
+ fieldId: string;
447
+ }[];
448
+ }, {
449
+ kind: "pivot";
450
+ metricId: string;
451
+ members: {
452
+ value: string | null;
453
+ fieldId: string;
454
+ }[];
455
+ }>, z.ZodObject<{
456
+ kind: z.ZodLiteral<"result">;
457
+ key: z.ZodString;
458
+ }, "strict", z.ZodTypeAny, {
459
+ kind: "result";
460
+ key: string;
461
+ }, {
462
+ kind: "result";
463
+ key: string;
464
+ }>, z.ZodObject<{
465
+ kind: z.ZodLiteral<"sqlKpiValue">;
466
+ }, "strict", z.ZodTypeAny, {
467
+ kind: "sqlKpiValue";
468
+ }, {
469
+ kind: "sqlKpiValue";
470
+ }>, z.ZodObject<{
471
+ kind: z.ZodLiteral<"matrixMeasure">;
472
+ measureId: z.ZodString;
473
+ }, "strict", z.ZodTypeAny, {
474
+ kind: "matrixMeasure";
475
+ measureId: string;
476
+ }, {
477
+ kind: "matrixMeasure";
478
+ measureId: string;
479
+ }>, z.ZodObject<{
480
+ kind: z.ZodLiteral<"matrixLevel">;
481
+ levelId: z.ZodString;
482
+ }, "strict", z.ZodTypeAny, {
483
+ kind: "matrixLevel";
484
+ levelId: string;
485
+ }, {
486
+ kind: "matrixLevel";
487
+ levelId: string;
488
+ }>]>;
489
+ isBlank: z.ZodBoolean;
490
+ }, "strict", z.ZodTypeAny, {
491
+ kind: "blank";
492
+ column: {
493
+ kind: "field";
494
+ fieldId: string;
495
+ } | {
496
+ kind: "pivot";
497
+ metricId: string;
498
+ members: {
499
+ value: string | null;
500
+ fieldId: string;
501
+ }[];
502
+ } | {
503
+ kind: "result";
504
+ key: string;
505
+ } | {
506
+ kind: "sqlKpiValue";
507
+ } | {
508
+ kind: "matrixMeasure";
509
+ measureId: string;
510
+ } | {
511
+ kind: "matrixLevel";
512
+ levelId: string;
513
+ };
514
+ isBlank: boolean;
515
+ }, {
516
+ kind: "blank";
517
+ column: {
518
+ kind: "field";
519
+ fieldId: string;
520
+ } | {
521
+ kind: "pivot";
522
+ metricId: string;
523
+ members: {
524
+ value: string | null;
525
+ fieldId: string;
526
+ }[];
527
+ } | {
528
+ kind: "result";
529
+ key: string;
530
+ } | {
531
+ kind: "sqlKpiValue";
532
+ } | {
533
+ kind: "matrixMeasure";
534
+ measureId: string;
535
+ } | {
536
+ kind: "matrixLevel";
537
+ levelId: string;
538
+ };
539
+ isBlank: boolean;
540
+ }>, z.ZodObject<{
541
+ kind: z.ZodLiteral<"contains">;
542
+ column: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
543
+ kind: z.ZodLiteral<"field">;
544
+ fieldId: z.ZodString;
545
+ }, "strict", z.ZodTypeAny, {
546
+ kind: "field";
547
+ fieldId: string;
548
+ }, {
549
+ kind: "field";
550
+ fieldId: string;
551
+ }>, z.ZodObject<{
552
+ kind: z.ZodLiteral<"pivot">;
553
+ metricId: z.ZodString;
554
+ members: z.ZodArray<z.ZodObject<{
555
+ fieldId: z.ZodString;
556
+ value: z.ZodNullable<z.ZodString>;
557
+ }, "strict", z.ZodTypeAny, {
558
+ value: string | null;
559
+ fieldId: string;
560
+ }, {
561
+ value: string | null;
562
+ fieldId: string;
563
+ }>, "many">;
564
+ }, "strict", z.ZodTypeAny, {
565
+ kind: "pivot";
566
+ metricId: string;
567
+ members: {
568
+ value: string | null;
569
+ fieldId: string;
570
+ }[];
571
+ }, {
572
+ kind: "pivot";
573
+ metricId: string;
574
+ members: {
575
+ value: string | null;
576
+ fieldId: string;
577
+ }[];
578
+ }>, z.ZodObject<{
579
+ kind: z.ZodLiteral<"result">;
580
+ key: z.ZodString;
581
+ }, "strict", z.ZodTypeAny, {
582
+ kind: "result";
583
+ key: string;
584
+ }, {
585
+ kind: "result";
586
+ key: string;
587
+ }>, z.ZodObject<{
588
+ kind: z.ZodLiteral<"sqlKpiValue">;
589
+ }, "strict", z.ZodTypeAny, {
590
+ kind: "sqlKpiValue";
591
+ }, {
592
+ kind: "sqlKpiValue";
593
+ }>, z.ZodObject<{
594
+ kind: z.ZodLiteral<"matrixMeasure">;
595
+ measureId: z.ZodString;
596
+ }, "strict", z.ZodTypeAny, {
597
+ kind: "matrixMeasure";
598
+ measureId: string;
599
+ }, {
600
+ kind: "matrixMeasure";
601
+ measureId: string;
602
+ }>, z.ZodObject<{
603
+ kind: z.ZodLiteral<"matrixLevel">;
604
+ levelId: z.ZodString;
605
+ }, "strict", z.ZodTypeAny, {
606
+ kind: "matrixLevel";
607
+ levelId: string;
608
+ }, {
609
+ kind: "matrixLevel";
610
+ levelId: string;
611
+ }>]>;
612
+ value: z.ZodString;
613
+ caseSensitive: z.ZodOptional<z.ZodBoolean>;
614
+ exact: z.ZodOptional<z.ZodBoolean>;
615
+ }, "strict", z.ZodTypeAny, {
616
+ value: string;
617
+ kind: "contains";
618
+ column: {
619
+ kind: "field";
620
+ fieldId: string;
621
+ } | {
622
+ kind: "pivot";
623
+ metricId: string;
624
+ members: {
625
+ value: string | null;
626
+ fieldId: string;
627
+ }[];
628
+ } | {
629
+ kind: "result";
630
+ key: string;
631
+ } | {
632
+ kind: "sqlKpiValue";
633
+ } | {
634
+ kind: "matrixMeasure";
635
+ measureId: string;
636
+ } | {
637
+ kind: "matrixLevel";
638
+ levelId: string;
639
+ };
640
+ exact?: boolean | undefined;
641
+ caseSensitive?: boolean | undefined;
642
+ }, {
643
+ value: string;
644
+ kind: "contains";
645
+ column: {
646
+ kind: "field";
647
+ fieldId: string;
648
+ } | {
649
+ kind: "pivot";
650
+ metricId: string;
651
+ members: {
652
+ value: string | null;
653
+ fieldId: string;
654
+ }[];
655
+ } | {
656
+ kind: "result";
657
+ key: string;
658
+ } | {
659
+ kind: "sqlKpiValue";
660
+ } | {
661
+ kind: "matrixMeasure";
662
+ measureId: string;
663
+ } | {
664
+ kind: "matrixLevel";
665
+ levelId: string;
666
+ };
667
+ exact?: boolean | undefined;
668
+ caseSensitive?: boolean | undefined;
669
+ }>, z.ZodObject<{
670
+ kind: z.ZodLiteral<"topBottom">;
671
+ column: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
672
+ kind: z.ZodLiteral<"field">;
673
+ fieldId: z.ZodString;
674
+ }, "strict", z.ZodTypeAny, {
675
+ kind: "field";
676
+ fieldId: string;
677
+ }, {
678
+ kind: "field";
679
+ fieldId: string;
680
+ }>, z.ZodObject<{
681
+ kind: z.ZodLiteral<"pivot">;
682
+ metricId: z.ZodString;
683
+ members: z.ZodArray<z.ZodObject<{
684
+ fieldId: z.ZodString;
685
+ value: z.ZodNullable<z.ZodString>;
686
+ }, "strict", z.ZodTypeAny, {
687
+ value: string | null;
688
+ fieldId: string;
689
+ }, {
690
+ value: string | null;
691
+ fieldId: string;
692
+ }>, "many">;
693
+ }, "strict", z.ZodTypeAny, {
694
+ kind: "pivot";
695
+ metricId: string;
696
+ members: {
697
+ value: string | null;
698
+ fieldId: string;
699
+ }[];
700
+ }, {
701
+ kind: "pivot";
702
+ metricId: string;
703
+ members: {
704
+ value: string | null;
705
+ fieldId: string;
706
+ }[];
707
+ }>, z.ZodObject<{
708
+ kind: z.ZodLiteral<"result">;
709
+ key: z.ZodString;
710
+ }, "strict", z.ZodTypeAny, {
711
+ kind: "result";
712
+ key: string;
713
+ }, {
714
+ kind: "result";
715
+ key: string;
716
+ }>, z.ZodObject<{
717
+ kind: z.ZodLiteral<"sqlKpiValue">;
718
+ }, "strict", z.ZodTypeAny, {
719
+ kind: "sqlKpiValue";
720
+ }, {
721
+ kind: "sqlKpiValue";
722
+ }>, z.ZodObject<{
723
+ kind: z.ZodLiteral<"matrixMeasure">;
724
+ measureId: z.ZodString;
725
+ }, "strict", z.ZodTypeAny, {
726
+ kind: "matrixMeasure";
727
+ measureId: string;
728
+ }, {
729
+ kind: "matrixMeasure";
730
+ measureId: string;
731
+ }>, z.ZodObject<{
732
+ kind: z.ZodLiteral<"matrixLevel">;
733
+ levelId: z.ZodString;
734
+ }, "strict", z.ZodTypeAny, {
735
+ kind: "matrixLevel";
736
+ levelId: string;
737
+ }, {
738
+ kind: "matrixLevel";
739
+ levelId: string;
740
+ }>]>;
741
+ direction: z.ZodEnum<["top", "bottom"]>;
742
+ count: z.ZodNumber;
743
+ }, "strict", z.ZodTypeAny, {
744
+ kind: "topBottom";
745
+ count: number;
746
+ direction: "top" | "bottom";
747
+ column: {
748
+ kind: "field";
749
+ fieldId: string;
750
+ } | {
751
+ kind: "pivot";
752
+ metricId: string;
753
+ members: {
754
+ value: string | null;
755
+ fieldId: string;
756
+ }[];
757
+ } | {
758
+ kind: "result";
759
+ key: string;
760
+ } | {
761
+ kind: "sqlKpiValue";
762
+ } | {
763
+ kind: "matrixMeasure";
764
+ measureId: string;
765
+ } | {
766
+ kind: "matrixLevel";
767
+ levelId: string;
768
+ };
769
+ }, {
770
+ kind: "topBottom";
771
+ count: number;
772
+ direction: "top" | "bottom";
773
+ column: {
774
+ kind: "field";
775
+ fieldId: string;
776
+ } | {
777
+ kind: "pivot";
778
+ metricId: string;
779
+ members: {
780
+ value: string | null;
781
+ fieldId: string;
782
+ }[];
783
+ } | {
784
+ kind: "result";
785
+ key: string;
786
+ } | {
787
+ kind: "sqlKpiValue";
788
+ } | {
789
+ kind: "matrixMeasure";
790
+ measureId: string;
791
+ } | {
792
+ kind: "matrixLevel";
793
+ levelId: string;
794
+ };
795
+ }>, z.ZodObject<{
796
+ kind: z.ZodLiteral<"colorScale">;
797
+ column: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
798
+ kind: z.ZodLiteral<"field">;
799
+ fieldId: z.ZodString;
800
+ }, "strict", z.ZodTypeAny, {
801
+ kind: "field";
802
+ fieldId: string;
803
+ }, {
804
+ kind: "field";
805
+ fieldId: string;
806
+ }>, z.ZodObject<{
807
+ kind: z.ZodLiteral<"pivot">;
808
+ metricId: z.ZodString;
809
+ members: z.ZodArray<z.ZodObject<{
810
+ fieldId: z.ZodString;
811
+ value: z.ZodNullable<z.ZodString>;
812
+ }, "strict", z.ZodTypeAny, {
813
+ value: string | null;
814
+ fieldId: string;
815
+ }, {
816
+ value: string | null;
817
+ fieldId: string;
818
+ }>, "many">;
819
+ }, "strict", z.ZodTypeAny, {
820
+ kind: "pivot";
821
+ metricId: string;
822
+ members: {
823
+ value: string | null;
824
+ fieldId: string;
825
+ }[];
826
+ }, {
827
+ kind: "pivot";
828
+ metricId: string;
829
+ members: {
830
+ value: string | null;
831
+ fieldId: string;
832
+ }[];
833
+ }>, z.ZodObject<{
834
+ kind: z.ZodLiteral<"result">;
835
+ key: z.ZodString;
836
+ }, "strict", z.ZodTypeAny, {
837
+ kind: "result";
838
+ key: string;
839
+ }, {
840
+ kind: "result";
841
+ key: string;
842
+ }>, z.ZodObject<{
843
+ kind: z.ZodLiteral<"sqlKpiValue">;
844
+ }, "strict", z.ZodTypeAny, {
845
+ kind: "sqlKpiValue";
846
+ }, {
847
+ kind: "sqlKpiValue";
848
+ }>, z.ZodObject<{
849
+ kind: z.ZodLiteral<"matrixMeasure">;
850
+ measureId: z.ZodString;
851
+ }, "strict", z.ZodTypeAny, {
852
+ kind: "matrixMeasure";
853
+ measureId: string;
854
+ }, {
855
+ kind: "matrixMeasure";
856
+ measureId: string;
857
+ }>, z.ZodObject<{
858
+ kind: z.ZodLiteral<"matrixLevel">;
859
+ levelId: z.ZodString;
860
+ }, "strict", z.ZodTypeAny, {
861
+ kind: "matrixLevel";
862
+ levelId: string;
863
+ }, {
864
+ kind: "matrixLevel";
865
+ levelId: string;
866
+ }>]>;
867
+ range: z.ZodEnum<["auto", "manual"]>;
868
+ min: z.ZodOptional<z.ZodNumber>;
869
+ mid: z.ZodOptional<z.ZodNumber>;
870
+ max: z.ZodOptional<z.ZodNumber>;
871
+ colors: z.ZodObject<{
872
+ min: z.ZodString;
873
+ mid: z.ZodOptional<z.ZodString>;
874
+ max: z.ZodString;
875
+ }, "strict", z.ZodTypeAny, {
876
+ min: string;
877
+ max: string;
878
+ mid?: string | undefined;
879
+ }, {
880
+ min: string;
881
+ max: string;
882
+ mid?: string | undefined;
883
+ }>;
884
+ }, "strict", z.ZodTypeAny, {
885
+ kind: "colorScale";
886
+ column: {
887
+ kind: "field";
888
+ fieldId: string;
889
+ } | {
890
+ kind: "pivot";
891
+ metricId: string;
892
+ members: {
893
+ value: string | null;
894
+ fieldId: string;
895
+ }[];
896
+ } | {
897
+ kind: "result";
898
+ key: string;
899
+ } | {
900
+ kind: "sqlKpiValue";
901
+ } | {
902
+ kind: "matrixMeasure";
903
+ measureId: string;
904
+ } | {
905
+ kind: "matrixLevel";
906
+ levelId: string;
907
+ };
908
+ colors: {
909
+ min: string;
910
+ max: string;
911
+ mid?: string | undefined;
912
+ };
913
+ range: "auto" | "manual";
914
+ min?: number | undefined;
915
+ max?: number | undefined;
916
+ mid?: number | undefined;
917
+ }, {
918
+ kind: "colorScale";
919
+ column: {
920
+ kind: "field";
921
+ fieldId: string;
922
+ } | {
923
+ kind: "pivot";
924
+ metricId: string;
925
+ members: {
926
+ value: string | null;
927
+ fieldId: string;
928
+ }[];
929
+ } | {
930
+ kind: "result";
931
+ key: string;
932
+ } | {
933
+ kind: "sqlKpiValue";
934
+ } | {
935
+ kind: "matrixMeasure";
936
+ measureId: string;
937
+ } | {
938
+ kind: "matrixLevel";
939
+ levelId: string;
940
+ };
941
+ colors: {
942
+ min: string;
943
+ max: string;
944
+ mid?: string | undefined;
945
+ };
946
+ range: "auto" | "manual";
947
+ min?: number | undefined;
948
+ max?: number | undefined;
949
+ mid?: number | undefined;
950
+ }>, z.ZodObject<{
951
+ kind: z.ZodLiteral<"dataBar">;
952
+ column: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
953
+ kind: z.ZodLiteral<"field">;
954
+ fieldId: z.ZodString;
955
+ }, "strict", z.ZodTypeAny, {
956
+ kind: "field";
957
+ fieldId: string;
958
+ }, {
959
+ kind: "field";
960
+ fieldId: string;
961
+ }>, z.ZodObject<{
962
+ kind: z.ZodLiteral<"pivot">;
963
+ metricId: z.ZodString;
964
+ members: z.ZodArray<z.ZodObject<{
965
+ fieldId: z.ZodString;
966
+ value: z.ZodNullable<z.ZodString>;
967
+ }, "strict", z.ZodTypeAny, {
968
+ value: string | null;
969
+ fieldId: string;
970
+ }, {
971
+ value: string | null;
972
+ fieldId: string;
973
+ }>, "many">;
974
+ }, "strict", z.ZodTypeAny, {
975
+ kind: "pivot";
976
+ metricId: string;
977
+ members: {
978
+ value: string | null;
979
+ fieldId: string;
980
+ }[];
981
+ }, {
982
+ kind: "pivot";
983
+ metricId: string;
984
+ members: {
985
+ value: string | null;
986
+ fieldId: string;
987
+ }[];
988
+ }>, z.ZodObject<{
989
+ kind: z.ZodLiteral<"result">;
990
+ key: z.ZodString;
991
+ }, "strict", z.ZodTypeAny, {
992
+ kind: "result";
993
+ key: string;
994
+ }, {
995
+ kind: "result";
996
+ key: string;
997
+ }>, z.ZodObject<{
998
+ kind: z.ZodLiteral<"sqlKpiValue">;
999
+ }, "strict", z.ZodTypeAny, {
1000
+ kind: "sqlKpiValue";
1001
+ }, {
1002
+ kind: "sqlKpiValue";
1003
+ }>, z.ZodObject<{
1004
+ kind: z.ZodLiteral<"matrixMeasure">;
1005
+ measureId: z.ZodString;
1006
+ }, "strict", z.ZodTypeAny, {
1007
+ kind: "matrixMeasure";
1008
+ measureId: string;
1009
+ }, {
1010
+ kind: "matrixMeasure";
1011
+ measureId: string;
1012
+ }>, z.ZodObject<{
1013
+ kind: z.ZodLiteral<"matrixLevel">;
1014
+ levelId: z.ZodString;
1015
+ }, "strict", z.ZodTypeAny, {
1016
+ kind: "matrixLevel";
1017
+ levelId: string;
1018
+ }, {
1019
+ kind: "matrixLevel";
1020
+ levelId: string;
1021
+ }>]>;
1022
+ range: z.ZodEnum<["auto", "manual"]>;
1023
+ min: z.ZodOptional<z.ZodNumber>;
1024
+ max: z.ZodOptional<z.ZodNumber>;
1025
+ color: z.ZodString;
1026
+ showValue: z.ZodOptional<z.ZodBoolean>;
1027
+ }, "strict", z.ZodTypeAny, {
1028
+ kind: "dataBar";
1029
+ column: {
1030
+ kind: "field";
1031
+ fieldId: string;
1032
+ } | {
1033
+ kind: "pivot";
1034
+ metricId: string;
1035
+ members: {
1036
+ value: string | null;
1037
+ fieldId: string;
1038
+ }[];
1039
+ } | {
1040
+ kind: "result";
1041
+ key: string;
1042
+ } | {
1043
+ kind: "sqlKpiValue";
1044
+ } | {
1045
+ kind: "matrixMeasure";
1046
+ measureId: string;
1047
+ } | {
1048
+ kind: "matrixLevel";
1049
+ levelId: string;
1050
+ };
1051
+ range: "auto" | "manual";
1052
+ color: string;
1053
+ min?: number | undefined;
1054
+ max?: number | undefined;
1055
+ showValue?: boolean | undefined;
1056
+ }, {
1057
+ kind: "dataBar";
1058
+ column: {
1059
+ kind: "field";
1060
+ fieldId: string;
1061
+ } | {
1062
+ kind: "pivot";
1063
+ metricId: string;
1064
+ members: {
1065
+ value: string | null;
1066
+ fieldId: string;
1067
+ }[];
1068
+ } | {
1069
+ kind: "result";
1070
+ key: string;
1071
+ } | {
1072
+ kind: "sqlKpiValue";
1073
+ } | {
1074
+ kind: "matrixMeasure";
1075
+ measureId: string;
1076
+ } | {
1077
+ kind: "matrixLevel";
1078
+ levelId: string;
1079
+ };
1080
+ range: "auto" | "manual";
1081
+ color: string;
1082
+ min?: number | undefined;
1083
+ max?: number | undefined;
1084
+ showValue?: boolean | undefined;
1085
+ }>]>;
1086
+ target: z.ZodObject<{
1087
+ level: z.ZodEnum<["cell", "row"]>;
1088
+ columns: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
1089
+ kind: z.ZodLiteral<"field">;
1090
+ fieldId: z.ZodString;
1091
+ }, "strict", z.ZodTypeAny, {
1092
+ kind: "field";
1093
+ fieldId: string;
1094
+ }, {
1095
+ kind: "field";
1096
+ fieldId: string;
1097
+ }>, z.ZodObject<{
1098
+ kind: z.ZodLiteral<"pivot">;
1099
+ metricId: z.ZodString;
1100
+ members: z.ZodArray<z.ZodObject<{
1101
+ fieldId: z.ZodString;
1102
+ value: z.ZodNullable<z.ZodString>;
1103
+ }, "strict", z.ZodTypeAny, {
1104
+ value: string | null;
1105
+ fieldId: string;
1106
+ }, {
1107
+ value: string | null;
1108
+ fieldId: string;
1109
+ }>, "many">;
1110
+ }, "strict", z.ZodTypeAny, {
1111
+ kind: "pivot";
1112
+ metricId: string;
1113
+ members: {
1114
+ value: string | null;
1115
+ fieldId: string;
1116
+ }[];
1117
+ }, {
1118
+ kind: "pivot";
1119
+ metricId: string;
1120
+ members: {
1121
+ value: string | null;
1122
+ fieldId: string;
1123
+ }[];
1124
+ }>, z.ZodObject<{
1125
+ kind: z.ZodLiteral<"result">;
1126
+ key: z.ZodString;
1127
+ }, "strict", z.ZodTypeAny, {
1128
+ kind: "result";
1129
+ key: string;
1130
+ }, {
1131
+ kind: "result";
1132
+ key: string;
1133
+ }>, z.ZodObject<{
1134
+ kind: z.ZodLiteral<"sqlKpiValue">;
1135
+ }, "strict", z.ZodTypeAny, {
1136
+ kind: "sqlKpiValue";
1137
+ }, {
1138
+ kind: "sqlKpiValue";
1139
+ }>, z.ZodObject<{
1140
+ kind: z.ZodLiteral<"matrixMeasure">;
1141
+ measureId: z.ZodString;
1142
+ }, "strict", z.ZodTypeAny, {
1143
+ kind: "matrixMeasure";
1144
+ measureId: string;
1145
+ }, {
1146
+ kind: "matrixMeasure";
1147
+ measureId: string;
1148
+ }>, z.ZodObject<{
1149
+ kind: z.ZodLiteral<"matrixLevel">;
1150
+ levelId: z.ZodString;
1151
+ }, "strict", z.ZodTypeAny, {
1152
+ kind: "matrixLevel";
1153
+ levelId: string;
1154
+ }, {
1155
+ kind: "matrixLevel";
1156
+ levelId: string;
1157
+ }>]>, "many">>;
1158
+ tableParts: z.ZodOptional<z.ZodArray<z.ZodEnum<["body", "header", "footer", "subtotal", "grandTotal"]>, "many">>;
1159
+ matrix: z.ZodOptional<z.ZodObject<{
1160
+ axis: z.ZodEnum<["rows", "columns"]>;
1161
+ levelId: z.ZodOptional<z.ZodString>;
1162
+ oppositePath: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodReadonly<z.ZodArray<z.ZodObject<{
1163
+ levelId: z.ZodString;
1164
+ member: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
1165
+ kind: z.ZodLiteral<"value">;
1166
+ value: z.ZodUnion<[z.ZodNull, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodEffects<z.ZodObject<{
1167
+ kind: z.ZodLiteral<"exact_number">;
1168
+ type: z.ZodEnum<["integer", "decimal"]>;
1169
+ value: z.ZodEffects<z.ZodString, string, string>;
1170
+ }, "strict", z.ZodTypeAny, {
1171
+ type: "integer" | "decimal";
1172
+ value: string;
1173
+ kind: "exact_number";
1174
+ }, {
1175
+ type: "integer" | "decimal";
1176
+ value: string;
1177
+ kind: "exact_number";
1178
+ }>, {
1179
+ type: "integer" | "decimal";
1180
+ value: string;
1181
+ kind: "exact_number";
1182
+ }, {
1183
+ type: "integer" | "decimal";
1184
+ value: string;
1185
+ kind: "exact_number";
1186
+ }>]>;
1187
+ }, "strict", z.ZodTypeAny, {
1188
+ value: string | number | boolean | {
1189
+ type: "integer" | "decimal";
1190
+ value: string;
1191
+ kind: "exact_number";
1192
+ } | null;
1193
+ kind: "value";
1194
+ }, {
1195
+ value: string | number | boolean | {
1196
+ type: "integer" | "decimal";
1197
+ value: string;
1198
+ kind: "exact_number";
1199
+ } | null;
1200
+ kind: "value";
1201
+ }>, z.ZodObject<{
1202
+ kind: z.ZodLiteral<"others">;
1203
+ rankingId: z.ZodString;
1204
+ }, "strict", z.ZodTypeAny, {
1205
+ kind: "others";
1206
+ rankingId: string;
1207
+ }, {
1208
+ kind: "others";
1209
+ rankingId: string;
1210
+ }>]>;
1211
+ }, "strict", z.ZodTypeAny, {
1212
+ member: {
1213
+ value: string | number | boolean | {
1214
+ type: "integer" | "decimal";
1215
+ value: string;
1216
+ kind: "exact_number";
1217
+ } | null;
1218
+ kind: "value";
1219
+ } | {
1220
+ kind: "others";
1221
+ rankingId: string;
1222
+ };
1223
+ levelId: string;
1224
+ }, {
1225
+ member: {
1226
+ value: string | number | boolean | {
1227
+ type: "integer" | "decimal";
1228
+ value: string;
1229
+ kind: "exact_number";
1230
+ } | null;
1231
+ kind: "value";
1232
+ } | {
1233
+ kind: "others";
1234
+ rankingId: string;
1235
+ };
1236
+ levelId: string;
1237
+ }>, "many">>, readonly {
1238
+ member: {
1239
+ value: string | number | boolean | {
1240
+ type: "integer" | "decimal";
1241
+ value: string;
1242
+ kind: "exact_number";
1243
+ } | null;
1244
+ kind: "value";
1245
+ } | {
1246
+ kind: "others";
1247
+ rankingId: string;
1248
+ };
1249
+ levelId: string;
1250
+ }[], readonly {
1251
+ member: {
1252
+ value: string | number | boolean | {
1253
+ type: "integer" | "decimal";
1254
+ value: string;
1255
+ kind: "exact_number";
1256
+ } | null;
1257
+ kind: "value";
1258
+ } | {
1259
+ kind: "others";
1260
+ rankingId: string;
1261
+ };
1262
+ levelId: string;
1263
+ }[]>, {
1264
+ member: {
1265
+ value: string | number | boolean | {
1266
+ type: "integer" | "decimal";
1267
+ value: string;
1268
+ kind: "exact_number";
1269
+ } | null;
1270
+ kind: "value";
1271
+ } | {
1272
+ kind: "others";
1273
+ rankingId: string;
1274
+ };
1275
+ levelId: string;
1276
+ }[], readonly {
1277
+ member: {
1278
+ value: string | number | boolean | {
1279
+ type: "integer" | "decimal";
1280
+ value: string;
1281
+ kind: "exact_number";
1282
+ } | null;
1283
+ kind: "value";
1284
+ } | {
1285
+ kind: "others";
1286
+ rankingId: string;
1287
+ };
1288
+ levelId: string;
1289
+ }[]>>;
1290
+ }, "strict", z.ZodTypeAny, {
1291
+ axis: "columns" | "rows";
1292
+ levelId?: string | undefined;
1293
+ oppositePath?: {
1294
+ member: {
1295
+ value: string | number | boolean | {
1296
+ type: "integer" | "decimal";
1297
+ value: string;
1298
+ kind: "exact_number";
1299
+ } | null;
1300
+ kind: "value";
1301
+ } | {
1302
+ kind: "others";
1303
+ rankingId: string;
1304
+ };
1305
+ levelId: string;
1306
+ }[] | undefined;
1307
+ }, {
1308
+ axis: "columns" | "rows";
1309
+ levelId?: string | undefined;
1310
+ oppositePath?: readonly {
1311
+ member: {
1312
+ value: string | number | boolean | {
1313
+ type: "integer" | "decimal";
1314
+ value: string;
1315
+ kind: "exact_number";
1316
+ } | null;
1317
+ kind: "value";
1318
+ } | {
1319
+ kind: "others";
1320
+ rankingId: string;
1321
+ };
1322
+ levelId: string;
1323
+ }[] | undefined;
1324
+ }>>;
1325
+ rowRoles: z.ZodOptional<z.ZodArray<z.ZodEnum<["member", "subtotal", "grand_total", "others"]>, "many">>;
1326
+ depth: z.ZodOptional<z.ZodNumber>;
1327
+ includeTotals: z.ZodOptional<z.ZodBoolean>;
1328
+ includeSubtotals: z.ZodOptional<z.ZodBoolean>;
1329
+ }, "strict", z.ZodTypeAny, {
1330
+ level: "row" | "cell";
1331
+ columns?: ({
1332
+ kind: "field";
1333
+ fieldId: string;
1334
+ } | {
1335
+ kind: "pivot";
1336
+ metricId: string;
1337
+ members: {
1338
+ value: string | null;
1339
+ fieldId: string;
1340
+ }[];
1341
+ } | {
1342
+ kind: "result";
1343
+ key: string;
1344
+ } | {
1345
+ kind: "sqlKpiValue";
1346
+ } | {
1347
+ kind: "matrixMeasure";
1348
+ measureId: string;
1349
+ } | {
1350
+ kind: "matrixLevel";
1351
+ levelId: string;
1352
+ })[] | undefined;
1353
+ matrix?: {
1354
+ axis: "columns" | "rows";
1355
+ levelId?: string | undefined;
1356
+ oppositePath?: {
1357
+ member: {
1358
+ value: string | number | boolean | {
1359
+ type: "integer" | "decimal";
1360
+ value: string;
1361
+ kind: "exact_number";
1362
+ } | null;
1363
+ kind: "value";
1364
+ } | {
1365
+ kind: "others";
1366
+ rankingId: string;
1367
+ };
1368
+ levelId: string;
1369
+ }[] | undefined;
1370
+ } | undefined;
1371
+ depth?: number | undefined;
1372
+ tableParts?: ("subtotal" | "body" | "header" | "footer" | "grandTotal")[] | undefined;
1373
+ rowRoles?: ("member" | "subtotal" | "grand_total" | "others")[] | undefined;
1374
+ includeTotals?: boolean | undefined;
1375
+ includeSubtotals?: boolean | undefined;
1376
+ }, {
1377
+ level: "row" | "cell";
1378
+ columns?: ({
1379
+ kind: "field";
1380
+ fieldId: string;
1381
+ } | {
1382
+ kind: "pivot";
1383
+ metricId: string;
1384
+ members: {
1385
+ value: string | null;
1386
+ fieldId: string;
1387
+ }[];
1388
+ } | {
1389
+ kind: "result";
1390
+ key: string;
1391
+ } | {
1392
+ kind: "sqlKpiValue";
1393
+ } | {
1394
+ kind: "matrixMeasure";
1395
+ measureId: string;
1396
+ } | {
1397
+ kind: "matrixLevel";
1398
+ levelId: string;
1399
+ })[] | undefined;
1400
+ matrix?: {
1401
+ axis: "columns" | "rows";
1402
+ levelId?: string | undefined;
1403
+ oppositePath?: readonly {
1404
+ member: {
1405
+ value: string | number | boolean | {
1406
+ type: "integer" | "decimal";
1407
+ value: string;
1408
+ kind: "exact_number";
1409
+ } | null;
1410
+ kind: "value";
1411
+ } | {
1412
+ kind: "others";
1413
+ rankingId: string;
1414
+ };
1415
+ levelId: string;
1416
+ }[] | undefined;
1417
+ } | undefined;
1418
+ depth?: number | undefined;
1419
+ tableParts?: ("subtotal" | "body" | "header" | "footer" | "grandTotal")[] | undefined;
1420
+ rowRoles?: ("member" | "subtotal" | "grand_total" | "others")[] | undefined;
1421
+ includeTotals?: boolean | undefined;
1422
+ includeSubtotals?: boolean | undefined;
1423
+ }>;
1424
+ style: z.ZodOptional<z.ZodObject<{
1425
+ backgroundColor: z.ZodOptional<z.ZodString>;
1426
+ textColor: z.ZodOptional<z.ZodString>;
1427
+ fontWeight: z.ZodOptional<z.ZodEnum<["normal", "medium", "semibold", "bold"]>>;
1428
+ italic: z.ZodOptional<z.ZodBoolean>;
1429
+ textDecoration: z.ZodOptional<z.ZodEnum<["none", "underline", "line-through"]>>;
1430
+ icon: z.ZodOptional<z.ZodEnum<["arrowUp", "arrowDown", "warning", "check", "x"]>>;
1431
+ dataBar: z.ZodOptional<z.ZodObject<{
1432
+ color: z.ZodString;
1433
+ showValue: z.ZodBoolean;
1434
+ }, "strict", z.ZodTypeAny, {
1435
+ color: string;
1436
+ showValue: boolean;
1437
+ }, {
1438
+ color: string;
1439
+ showValue: boolean;
1440
+ }>>;
1441
+ }, "strict", z.ZodTypeAny, {
1442
+ dataBar?: {
1443
+ color: string;
1444
+ showValue: boolean;
1445
+ } | undefined;
1446
+ fontWeight?: "bold" | "medium" | "normal" | "semibold" | undefined;
1447
+ backgroundColor?: string | undefined;
1448
+ textColor?: string | undefined;
1449
+ italic?: boolean | undefined;
1450
+ textDecoration?: "none" | "underline" | "line-through" | undefined;
1451
+ icon?: "warning" | "arrowUp" | "arrowDown" | "check" | "x" | undefined;
1452
+ }, {
1453
+ dataBar?: {
1454
+ color: string;
1455
+ showValue: boolean;
1456
+ } | undefined;
1457
+ fontWeight?: "bold" | "medium" | "normal" | "semibold" | undefined;
1458
+ backgroundColor?: string | undefined;
1459
+ textColor?: string | undefined;
1460
+ italic?: boolean | undefined;
1461
+ textDecoration?: "none" | "underline" | "line-through" | undefined;
1462
+ icon?: "warning" | "arrowUp" | "arrowDown" | "check" | "x" | undefined;
1463
+ }>>;
1464
+ }, "strict", z.ZodTypeAny, {
1465
+ id: string;
1466
+ target: {
1467
+ level: "row" | "cell";
1468
+ columns?: ({
1469
+ kind: "field";
1470
+ fieldId: string;
1471
+ } | {
1472
+ kind: "pivot";
1473
+ metricId: string;
1474
+ members: {
1475
+ value: string | null;
1476
+ fieldId: string;
1477
+ }[];
1478
+ } | {
1479
+ kind: "result";
1480
+ key: string;
1481
+ } | {
1482
+ kind: "sqlKpiValue";
1483
+ } | {
1484
+ kind: "matrixMeasure";
1485
+ measureId: string;
1486
+ } | {
1487
+ kind: "matrixLevel";
1488
+ levelId: string;
1489
+ })[] | undefined;
1490
+ matrix?: {
1491
+ axis: "columns" | "rows";
1492
+ levelId?: string | undefined;
1493
+ oppositePath?: {
1494
+ member: {
1495
+ value: string | number | boolean | {
1496
+ type: "integer" | "decimal";
1497
+ value: string;
1498
+ kind: "exact_number";
1499
+ } | null;
1500
+ kind: "value";
1501
+ } | {
1502
+ kind: "others";
1503
+ rankingId: string;
1504
+ };
1505
+ levelId: string;
1506
+ }[] | undefined;
1507
+ } | undefined;
1508
+ depth?: number | undefined;
1509
+ tableParts?: ("subtotal" | "body" | "header" | "footer" | "grandTotal")[] | undefined;
1510
+ rowRoles?: ("member" | "subtotal" | "grand_total" | "others")[] | undefined;
1511
+ includeTotals?: boolean | undefined;
1512
+ includeSubtotals?: boolean | undefined;
1513
+ };
1514
+ condition: {
1515
+ value: string | number | boolean | {
1516
+ type: "integer" | "decimal";
1517
+ value: string;
1518
+ kind: "exact_number";
1519
+ } | null;
1520
+ kind: "comparison";
1521
+ operator: "eq" | "neq" | "gt" | "gte" | "lt" | "lte";
1522
+ column: {
1523
+ kind: "field";
1524
+ fieldId: string;
1525
+ } | {
1526
+ kind: "pivot";
1527
+ metricId: string;
1528
+ members: {
1529
+ value: string | null;
1530
+ fieldId: string;
1531
+ }[];
1532
+ } | {
1533
+ kind: "result";
1534
+ key: string;
1535
+ } | {
1536
+ kind: "sqlKpiValue";
1537
+ } | {
1538
+ kind: "matrixMeasure";
1539
+ measureId: string;
1540
+ } | {
1541
+ kind: "matrixLevel";
1542
+ levelId: string;
1543
+ };
1544
+ } | {
1545
+ kind: "between";
1546
+ min: string | number | boolean | {
1547
+ type: "integer" | "decimal";
1548
+ value: string;
1549
+ kind: "exact_number";
1550
+ } | null;
1551
+ max: string | number | boolean | {
1552
+ type: "integer" | "decimal";
1553
+ value: string;
1554
+ kind: "exact_number";
1555
+ } | null;
1556
+ column: {
1557
+ kind: "field";
1558
+ fieldId: string;
1559
+ } | {
1560
+ kind: "pivot";
1561
+ metricId: string;
1562
+ members: {
1563
+ value: string | null;
1564
+ fieldId: string;
1565
+ }[];
1566
+ } | {
1567
+ kind: "result";
1568
+ key: string;
1569
+ } | {
1570
+ kind: "sqlKpiValue";
1571
+ } | {
1572
+ kind: "matrixMeasure";
1573
+ measureId: string;
1574
+ } | {
1575
+ kind: "matrixLevel";
1576
+ levelId: string;
1577
+ };
1578
+ inclusive?: boolean | undefined;
1579
+ } | {
1580
+ kind: "blank";
1581
+ column: {
1582
+ kind: "field";
1583
+ fieldId: string;
1584
+ } | {
1585
+ kind: "pivot";
1586
+ metricId: string;
1587
+ members: {
1588
+ value: string | null;
1589
+ fieldId: string;
1590
+ }[];
1591
+ } | {
1592
+ kind: "result";
1593
+ key: string;
1594
+ } | {
1595
+ kind: "sqlKpiValue";
1596
+ } | {
1597
+ kind: "matrixMeasure";
1598
+ measureId: string;
1599
+ } | {
1600
+ kind: "matrixLevel";
1601
+ levelId: string;
1602
+ };
1603
+ isBlank: boolean;
1604
+ } | {
1605
+ value: string;
1606
+ kind: "contains";
1607
+ column: {
1608
+ kind: "field";
1609
+ fieldId: string;
1610
+ } | {
1611
+ kind: "pivot";
1612
+ metricId: string;
1613
+ members: {
1614
+ value: string | null;
1615
+ fieldId: string;
1616
+ }[];
1617
+ } | {
1618
+ kind: "result";
1619
+ key: string;
1620
+ } | {
1621
+ kind: "sqlKpiValue";
1622
+ } | {
1623
+ kind: "matrixMeasure";
1624
+ measureId: string;
1625
+ } | {
1626
+ kind: "matrixLevel";
1627
+ levelId: string;
1628
+ };
1629
+ exact?: boolean | undefined;
1630
+ caseSensitive?: boolean | undefined;
1631
+ } | {
1632
+ kind: "topBottom";
1633
+ count: number;
1634
+ direction: "top" | "bottom";
1635
+ column: {
1636
+ kind: "field";
1637
+ fieldId: string;
1638
+ } | {
1639
+ kind: "pivot";
1640
+ metricId: string;
1641
+ members: {
1642
+ value: string | null;
1643
+ fieldId: string;
1644
+ }[];
1645
+ } | {
1646
+ kind: "result";
1647
+ key: string;
1648
+ } | {
1649
+ kind: "sqlKpiValue";
1650
+ } | {
1651
+ kind: "matrixMeasure";
1652
+ measureId: string;
1653
+ } | {
1654
+ kind: "matrixLevel";
1655
+ levelId: string;
1656
+ };
1657
+ } | {
1658
+ kind: "colorScale";
1659
+ column: {
1660
+ kind: "field";
1661
+ fieldId: string;
1662
+ } | {
1663
+ kind: "pivot";
1664
+ metricId: string;
1665
+ members: {
1666
+ value: string | null;
1667
+ fieldId: string;
1668
+ }[];
1669
+ } | {
1670
+ kind: "result";
1671
+ key: string;
1672
+ } | {
1673
+ kind: "sqlKpiValue";
1674
+ } | {
1675
+ kind: "matrixMeasure";
1676
+ measureId: string;
1677
+ } | {
1678
+ kind: "matrixLevel";
1679
+ levelId: string;
1680
+ };
1681
+ colors: {
1682
+ min: string;
1683
+ max: string;
1684
+ mid?: string | undefined;
1685
+ };
1686
+ range: "auto" | "manual";
1687
+ min?: number | undefined;
1688
+ max?: number | undefined;
1689
+ mid?: number | undefined;
1690
+ } | {
1691
+ kind: "dataBar";
1692
+ column: {
1693
+ kind: "field";
1694
+ fieldId: string;
1695
+ } | {
1696
+ kind: "pivot";
1697
+ metricId: string;
1698
+ members: {
1699
+ value: string | null;
1700
+ fieldId: string;
1701
+ }[];
1702
+ } | {
1703
+ kind: "result";
1704
+ key: string;
1705
+ } | {
1706
+ kind: "sqlKpiValue";
1707
+ } | {
1708
+ kind: "matrixMeasure";
1709
+ measureId: string;
1710
+ } | {
1711
+ kind: "matrixLevel";
1712
+ levelId: string;
1713
+ };
1714
+ range: "auto" | "manual";
1715
+ color: string;
1716
+ min?: number | undefined;
1717
+ max?: number | undefined;
1718
+ showValue?: boolean | undefined;
1719
+ };
1720
+ name?: string | undefined;
1721
+ style?: {
1722
+ dataBar?: {
1723
+ color: string;
1724
+ showValue: boolean;
1725
+ } | undefined;
1726
+ fontWeight?: "bold" | "medium" | "normal" | "semibold" | undefined;
1727
+ backgroundColor?: string | undefined;
1728
+ textColor?: string | undefined;
1729
+ italic?: boolean | undefined;
1730
+ textDecoration?: "none" | "underline" | "line-through" | undefined;
1731
+ icon?: "warning" | "arrowUp" | "arrowDown" | "check" | "x" | undefined;
1732
+ } | undefined;
1733
+ enabled?: boolean | undefined;
1734
+ }, {
1735
+ id: string;
1736
+ target: {
1737
+ level: "row" | "cell";
1738
+ columns?: ({
1739
+ kind: "field";
1740
+ fieldId: string;
1741
+ } | {
1742
+ kind: "pivot";
1743
+ metricId: string;
1744
+ members: {
1745
+ value: string | null;
1746
+ fieldId: string;
1747
+ }[];
1748
+ } | {
1749
+ kind: "result";
1750
+ key: string;
1751
+ } | {
1752
+ kind: "sqlKpiValue";
1753
+ } | {
1754
+ kind: "matrixMeasure";
1755
+ measureId: string;
1756
+ } | {
1757
+ kind: "matrixLevel";
1758
+ levelId: string;
1759
+ })[] | undefined;
1760
+ matrix?: {
1761
+ axis: "columns" | "rows";
1762
+ levelId?: string | undefined;
1763
+ oppositePath?: readonly {
1764
+ member: {
1765
+ value: string | number | boolean | {
1766
+ type: "integer" | "decimal";
1767
+ value: string;
1768
+ kind: "exact_number";
1769
+ } | null;
1770
+ kind: "value";
1771
+ } | {
1772
+ kind: "others";
1773
+ rankingId: string;
1774
+ };
1775
+ levelId: string;
1776
+ }[] | undefined;
1777
+ } | undefined;
1778
+ depth?: number | undefined;
1779
+ tableParts?: ("subtotal" | "body" | "header" | "footer" | "grandTotal")[] | undefined;
1780
+ rowRoles?: ("member" | "subtotal" | "grand_total" | "others")[] | undefined;
1781
+ includeTotals?: boolean | undefined;
1782
+ includeSubtotals?: boolean | undefined;
1783
+ };
1784
+ condition: {
1785
+ value: string | number | boolean | {
1786
+ type: "integer" | "decimal";
1787
+ value: string;
1788
+ kind: "exact_number";
1789
+ } | null;
1790
+ kind: "comparison";
1791
+ operator: "eq" | "neq" | "gt" | "gte" | "lt" | "lte";
1792
+ column: {
1793
+ kind: "field";
1794
+ fieldId: string;
1795
+ } | {
1796
+ kind: "pivot";
1797
+ metricId: string;
1798
+ members: {
1799
+ value: string | null;
1800
+ fieldId: string;
1801
+ }[];
1802
+ } | {
1803
+ kind: "result";
1804
+ key: string;
1805
+ } | {
1806
+ kind: "sqlKpiValue";
1807
+ } | {
1808
+ kind: "matrixMeasure";
1809
+ measureId: string;
1810
+ } | {
1811
+ kind: "matrixLevel";
1812
+ levelId: string;
1813
+ };
1814
+ } | {
1815
+ kind: "between";
1816
+ min: string | number | boolean | {
1817
+ type: "integer" | "decimal";
1818
+ value: string;
1819
+ kind: "exact_number";
1820
+ } | null;
1821
+ max: string | number | boolean | {
1822
+ type: "integer" | "decimal";
1823
+ value: string;
1824
+ kind: "exact_number";
1825
+ } | null;
1826
+ column: {
1827
+ kind: "field";
1828
+ fieldId: string;
1829
+ } | {
1830
+ kind: "pivot";
1831
+ metricId: string;
1832
+ members: {
1833
+ value: string | null;
1834
+ fieldId: string;
1835
+ }[];
1836
+ } | {
1837
+ kind: "result";
1838
+ key: string;
1839
+ } | {
1840
+ kind: "sqlKpiValue";
1841
+ } | {
1842
+ kind: "matrixMeasure";
1843
+ measureId: string;
1844
+ } | {
1845
+ kind: "matrixLevel";
1846
+ levelId: string;
1847
+ };
1848
+ inclusive?: boolean | undefined;
1849
+ } | {
1850
+ kind: "blank";
1851
+ column: {
1852
+ kind: "field";
1853
+ fieldId: string;
1854
+ } | {
1855
+ kind: "pivot";
1856
+ metricId: string;
1857
+ members: {
1858
+ value: string | null;
1859
+ fieldId: string;
1860
+ }[];
1861
+ } | {
1862
+ kind: "result";
1863
+ key: string;
1864
+ } | {
1865
+ kind: "sqlKpiValue";
1866
+ } | {
1867
+ kind: "matrixMeasure";
1868
+ measureId: string;
1869
+ } | {
1870
+ kind: "matrixLevel";
1871
+ levelId: string;
1872
+ };
1873
+ isBlank: boolean;
1874
+ } | {
1875
+ value: string;
1876
+ kind: "contains";
1877
+ column: {
1878
+ kind: "field";
1879
+ fieldId: string;
1880
+ } | {
1881
+ kind: "pivot";
1882
+ metricId: string;
1883
+ members: {
1884
+ value: string | null;
1885
+ fieldId: string;
1886
+ }[];
1887
+ } | {
1888
+ kind: "result";
1889
+ key: string;
1890
+ } | {
1891
+ kind: "sqlKpiValue";
1892
+ } | {
1893
+ kind: "matrixMeasure";
1894
+ measureId: string;
1895
+ } | {
1896
+ kind: "matrixLevel";
1897
+ levelId: string;
1898
+ };
1899
+ exact?: boolean | undefined;
1900
+ caseSensitive?: boolean | undefined;
1901
+ } | {
1902
+ kind: "topBottom";
1903
+ count: number;
1904
+ direction: "top" | "bottom";
1905
+ column: {
1906
+ kind: "field";
1907
+ fieldId: string;
1908
+ } | {
1909
+ kind: "pivot";
1910
+ metricId: string;
1911
+ members: {
1912
+ value: string | null;
1913
+ fieldId: string;
1914
+ }[];
1915
+ } | {
1916
+ kind: "result";
1917
+ key: string;
1918
+ } | {
1919
+ kind: "sqlKpiValue";
1920
+ } | {
1921
+ kind: "matrixMeasure";
1922
+ measureId: string;
1923
+ } | {
1924
+ kind: "matrixLevel";
1925
+ levelId: string;
1926
+ };
1927
+ } | {
1928
+ kind: "colorScale";
1929
+ column: {
1930
+ kind: "field";
1931
+ fieldId: string;
1932
+ } | {
1933
+ kind: "pivot";
1934
+ metricId: string;
1935
+ members: {
1936
+ value: string | null;
1937
+ fieldId: string;
1938
+ }[];
1939
+ } | {
1940
+ kind: "result";
1941
+ key: string;
1942
+ } | {
1943
+ kind: "sqlKpiValue";
1944
+ } | {
1945
+ kind: "matrixMeasure";
1946
+ measureId: string;
1947
+ } | {
1948
+ kind: "matrixLevel";
1949
+ levelId: string;
1950
+ };
1951
+ colors: {
1952
+ min: string;
1953
+ max: string;
1954
+ mid?: string | undefined;
1955
+ };
1956
+ range: "auto" | "manual";
1957
+ min?: number | undefined;
1958
+ max?: number | undefined;
1959
+ mid?: number | undefined;
1960
+ } | {
1961
+ kind: "dataBar";
1962
+ column: {
1963
+ kind: "field";
1964
+ fieldId: string;
1965
+ } | {
1966
+ kind: "pivot";
1967
+ metricId: string;
1968
+ members: {
1969
+ value: string | null;
1970
+ fieldId: string;
1971
+ }[];
1972
+ } | {
1973
+ kind: "result";
1974
+ key: string;
1975
+ } | {
1976
+ kind: "sqlKpiValue";
1977
+ } | {
1978
+ kind: "matrixMeasure";
1979
+ measureId: string;
1980
+ } | {
1981
+ kind: "matrixLevel";
1982
+ levelId: string;
1983
+ };
1984
+ range: "auto" | "manual";
1985
+ color: string;
1986
+ min?: number | undefined;
1987
+ max?: number | undefined;
1988
+ showValue?: boolean | undefined;
1989
+ };
1990
+ name?: string | undefined;
1991
+ style?: {
1992
+ dataBar?: {
1993
+ color: string;
1994
+ showValue: boolean;
1995
+ } | undefined;
1996
+ fontWeight?: "bold" | "medium" | "normal" | "semibold" | undefined;
1997
+ backgroundColor?: string | undefined;
1998
+ textColor?: string | undefined;
1999
+ italic?: boolean | undefined;
2000
+ textDecoration?: "none" | "underline" | "line-through" | undefined;
2001
+ icon?: "warning" | "arrowUp" | "arrowDown" | "check" | "x" | undefined;
2002
+ } | undefined;
2003
+ enabled?: boolean | undefined;
2004
+ }>;
2005
+ /** `preferences.conditionalFormatting`: the shape alone; `checkConditionalRuleColumns` checks it against the card. */
2006
+ export declare const cardConditionalFormattingSchema: z.ZodObject<{
2007
+ version: z.ZodLiteral<1>;
2008
+ rules: z.ZodArray<z.ZodObject<{
2009
+ id: z.ZodString;
2010
+ name: z.ZodOptional<z.ZodString>;
2011
+ enabled: z.ZodOptional<z.ZodBoolean>;
2012
+ condition: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
2013
+ kind: z.ZodLiteral<"comparison">;
2014
+ column: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
2015
+ kind: z.ZodLiteral<"field">;
2016
+ fieldId: z.ZodString;
2017
+ }, "strict", z.ZodTypeAny, {
2018
+ kind: "field";
2019
+ fieldId: string;
2020
+ }, {
2021
+ kind: "field";
2022
+ fieldId: string;
2023
+ }>, z.ZodObject<{
2024
+ kind: z.ZodLiteral<"pivot">;
2025
+ metricId: z.ZodString;
2026
+ members: z.ZodArray<z.ZodObject<{
2027
+ fieldId: z.ZodString;
2028
+ value: z.ZodNullable<z.ZodString>;
2029
+ }, "strict", z.ZodTypeAny, {
2030
+ value: string | null;
2031
+ fieldId: string;
2032
+ }, {
2033
+ value: string | null;
2034
+ fieldId: string;
2035
+ }>, "many">;
2036
+ }, "strict", z.ZodTypeAny, {
2037
+ kind: "pivot";
2038
+ metricId: string;
2039
+ members: {
2040
+ value: string | null;
2041
+ fieldId: string;
2042
+ }[];
2043
+ }, {
2044
+ kind: "pivot";
2045
+ metricId: string;
2046
+ members: {
2047
+ value: string | null;
2048
+ fieldId: string;
2049
+ }[];
2050
+ }>, z.ZodObject<{
2051
+ kind: z.ZodLiteral<"result">;
2052
+ key: z.ZodString;
2053
+ }, "strict", z.ZodTypeAny, {
2054
+ kind: "result";
2055
+ key: string;
2056
+ }, {
2057
+ kind: "result";
2058
+ key: string;
2059
+ }>, z.ZodObject<{
2060
+ kind: z.ZodLiteral<"sqlKpiValue">;
2061
+ }, "strict", z.ZodTypeAny, {
2062
+ kind: "sqlKpiValue";
2063
+ }, {
2064
+ kind: "sqlKpiValue";
2065
+ }>, z.ZodObject<{
2066
+ kind: z.ZodLiteral<"matrixMeasure">;
2067
+ measureId: z.ZodString;
2068
+ }, "strict", z.ZodTypeAny, {
2069
+ kind: "matrixMeasure";
2070
+ measureId: string;
2071
+ }, {
2072
+ kind: "matrixMeasure";
2073
+ measureId: string;
2074
+ }>, z.ZodObject<{
2075
+ kind: z.ZodLiteral<"matrixLevel">;
2076
+ levelId: z.ZodString;
2077
+ }, "strict", z.ZodTypeAny, {
2078
+ kind: "matrixLevel";
2079
+ levelId: string;
2080
+ }, {
2081
+ kind: "matrixLevel";
2082
+ levelId: string;
2083
+ }>]>;
2084
+ operator: z.ZodEnum<["eq", "neq", "gt", "gte", "lt", "lte"]>;
2085
+ value: z.ZodUnion<[z.ZodNull, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodEffects<z.ZodObject<{
2086
+ kind: z.ZodLiteral<"exact_number">;
2087
+ type: z.ZodEnum<["integer", "decimal"]>;
2088
+ value: z.ZodEffects<z.ZodString, string, string>;
2089
+ }, "strict", z.ZodTypeAny, {
2090
+ type: "integer" | "decimal";
2091
+ value: string;
2092
+ kind: "exact_number";
2093
+ }, {
2094
+ type: "integer" | "decimal";
2095
+ value: string;
2096
+ kind: "exact_number";
2097
+ }>, {
2098
+ type: "integer" | "decimal";
2099
+ value: string;
2100
+ kind: "exact_number";
2101
+ }, {
2102
+ type: "integer" | "decimal";
2103
+ value: string;
2104
+ kind: "exact_number";
2105
+ }>]>;
2106
+ }, "strict", z.ZodTypeAny, {
2107
+ value: string | number | boolean | {
2108
+ type: "integer" | "decimal";
2109
+ value: string;
2110
+ kind: "exact_number";
2111
+ } | null;
2112
+ kind: "comparison";
2113
+ operator: "eq" | "neq" | "gt" | "gte" | "lt" | "lte";
2114
+ column: {
2115
+ kind: "field";
2116
+ fieldId: string;
2117
+ } | {
2118
+ kind: "pivot";
2119
+ metricId: string;
2120
+ members: {
2121
+ value: string | null;
2122
+ fieldId: string;
2123
+ }[];
2124
+ } | {
2125
+ kind: "result";
2126
+ key: string;
2127
+ } | {
2128
+ kind: "sqlKpiValue";
2129
+ } | {
2130
+ kind: "matrixMeasure";
2131
+ measureId: string;
2132
+ } | {
2133
+ kind: "matrixLevel";
2134
+ levelId: string;
2135
+ };
2136
+ }, {
2137
+ value: string | number | boolean | {
2138
+ type: "integer" | "decimal";
2139
+ value: string;
2140
+ kind: "exact_number";
2141
+ } | null;
2142
+ kind: "comparison";
2143
+ operator: "eq" | "neq" | "gt" | "gte" | "lt" | "lte";
2144
+ column: {
2145
+ kind: "field";
2146
+ fieldId: string;
2147
+ } | {
2148
+ kind: "pivot";
2149
+ metricId: string;
2150
+ members: {
2151
+ value: string | null;
2152
+ fieldId: string;
2153
+ }[];
2154
+ } | {
2155
+ kind: "result";
2156
+ key: string;
2157
+ } | {
2158
+ kind: "sqlKpiValue";
2159
+ } | {
2160
+ kind: "matrixMeasure";
2161
+ measureId: string;
2162
+ } | {
2163
+ kind: "matrixLevel";
2164
+ levelId: string;
2165
+ };
2166
+ }>, z.ZodObject<{
2167
+ kind: z.ZodLiteral<"between">;
2168
+ column: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
2169
+ kind: z.ZodLiteral<"field">;
2170
+ fieldId: z.ZodString;
2171
+ }, "strict", z.ZodTypeAny, {
2172
+ kind: "field";
2173
+ fieldId: string;
2174
+ }, {
2175
+ kind: "field";
2176
+ fieldId: string;
2177
+ }>, z.ZodObject<{
2178
+ kind: z.ZodLiteral<"pivot">;
2179
+ metricId: z.ZodString;
2180
+ members: z.ZodArray<z.ZodObject<{
2181
+ fieldId: z.ZodString;
2182
+ value: z.ZodNullable<z.ZodString>;
2183
+ }, "strict", z.ZodTypeAny, {
2184
+ value: string | null;
2185
+ fieldId: string;
2186
+ }, {
2187
+ value: string | null;
2188
+ fieldId: string;
2189
+ }>, "many">;
2190
+ }, "strict", z.ZodTypeAny, {
2191
+ kind: "pivot";
2192
+ metricId: string;
2193
+ members: {
2194
+ value: string | null;
2195
+ fieldId: string;
2196
+ }[];
2197
+ }, {
2198
+ kind: "pivot";
2199
+ metricId: string;
2200
+ members: {
2201
+ value: string | null;
2202
+ fieldId: string;
2203
+ }[];
2204
+ }>, z.ZodObject<{
2205
+ kind: z.ZodLiteral<"result">;
2206
+ key: z.ZodString;
2207
+ }, "strict", z.ZodTypeAny, {
2208
+ kind: "result";
2209
+ key: string;
2210
+ }, {
2211
+ kind: "result";
2212
+ key: string;
2213
+ }>, z.ZodObject<{
2214
+ kind: z.ZodLiteral<"sqlKpiValue">;
2215
+ }, "strict", z.ZodTypeAny, {
2216
+ kind: "sqlKpiValue";
2217
+ }, {
2218
+ kind: "sqlKpiValue";
2219
+ }>, z.ZodObject<{
2220
+ kind: z.ZodLiteral<"matrixMeasure">;
2221
+ measureId: z.ZodString;
2222
+ }, "strict", z.ZodTypeAny, {
2223
+ kind: "matrixMeasure";
2224
+ measureId: string;
2225
+ }, {
2226
+ kind: "matrixMeasure";
2227
+ measureId: string;
2228
+ }>, z.ZodObject<{
2229
+ kind: z.ZodLiteral<"matrixLevel">;
2230
+ levelId: z.ZodString;
2231
+ }, "strict", z.ZodTypeAny, {
2232
+ kind: "matrixLevel";
2233
+ levelId: string;
2234
+ }, {
2235
+ kind: "matrixLevel";
2236
+ levelId: string;
2237
+ }>]>;
2238
+ min: z.ZodUnion<[z.ZodNull, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodEffects<z.ZodObject<{
2239
+ kind: z.ZodLiteral<"exact_number">;
2240
+ type: z.ZodEnum<["integer", "decimal"]>;
2241
+ value: z.ZodEffects<z.ZodString, string, string>;
2242
+ }, "strict", z.ZodTypeAny, {
2243
+ type: "integer" | "decimal";
2244
+ value: string;
2245
+ kind: "exact_number";
2246
+ }, {
2247
+ type: "integer" | "decimal";
2248
+ value: string;
2249
+ kind: "exact_number";
2250
+ }>, {
2251
+ type: "integer" | "decimal";
2252
+ value: string;
2253
+ kind: "exact_number";
2254
+ }, {
2255
+ type: "integer" | "decimal";
2256
+ value: string;
2257
+ kind: "exact_number";
2258
+ }>]>;
2259
+ max: z.ZodUnion<[z.ZodNull, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodEffects<z.ZodObject<{
2260
+ kind: z.ZodLiteral<"exact_number">;
2261
+ type: z.ZodEnum<["integer", "decimal"]>;
2262
+ value: z.ZodEffects<z.ZodString, string, string>;
2263
+ }, "strict", z.ZodTypeAny, {
2264
+ type: "integer" | "decimal";
2265
+ value: string;
2266
+ kind: "exact_number";
2267
+ }, {
2268
+ type: "integer" | "decimal";
2269
+ value: string;
2270
+ kind: "exact_number";
2271
+ }>, {
2272
+ type: "integer" | "decimal";
2273
+ value: string;
2274
+ kind: "exact_number";
2275
+ }, {
2276
+ type: "integer" | "decimal";
2277
+ value: string;
2278
+ kind: "exact_number";
2279
+ }>]>;
2280
+ inclusive: z.ZodOptional<z.ZodBoolean>;
2281
+ }, "strict", z.ZodTypeAny, {
2282
+ kind: "between";
2283
+ min: string | number | boolean | {
2284
+ type: "integer" | "decimal";
2285
+ value: string;
2286
+ kind: "exact_number";
2287
+ } | null;
2288
+ max: string | number | boolean | {
2289
+ type: "integer" | "decimal";
2290
+ value: string;
2291
+ kind: "exact_number";
2292
+ } | null;
2293
+ column: {
2294
+ kind: "field";
2295
+ fieldId: string;
2296
+ } | {
2297
+ kind: "pivot";
2298
+ metricId: string;
2299
+ members: {
2300
+ value: string | null;
2301
+ fieldId: string;
2302
+ }[];
2303
+ } | {
2304
+ kind: "result";
2305
+ key: string;
2306
+ } | {
2307
+ kind: "sqlKpiValue";
2308
+ } | {
2309
+ kind: "matrixMeasure";
2310
+ measureId: string;
2311
+ } | {
2312
+ kind: "matrixLevel";
2313
+ levelId: string;
2314
+ };
2315
+ inclusive?: boolean | undefined;
2316
+ }, {
2317
+ kind: "between";
2318
+ min: string | number | boolean | {
2319
+ type: "integer" | "decimal";
2320
+ value: string;
2321
+ kind: "exact_number";
2322
+ } | null;
2323
+ max: string | number | boolean | {
2324
+ type: "integer" | "decimal";
2325
+ value: string;
2326
+ kind: "exact_number";
2327
+ } | null;
2328
+ column: {
2329
+ kind: "field";
2330
+ fieldId: string;
2331
+ } | {
2332
+ kind: "pivot";
2333
+ metricId: string;
2334
+ members: {
2335
+ value: string | null;
2336
+ fieldId: string;
2337
+ }[];
2338
+ } | {
2339
+ kind: "result";
2340
+ key: string;
2341
+ } | {
2342
+ kind: "sqlKpiValue";
2343
+ } | {
2344
+ kind: "matrixMeasure";
2345
+ measureId: string;
2346
+ } | {
2347
+ kind: "matrixLevel";
2348
+ levelId: string;
2349
+ };
2350
+ inclusive?: boolean | undefined;
2351
+ }>, z.ZodObject<{
2352
+ kind: z.ZodLiteral<"blank">;
2353
+ column: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
2354
+ kind: z.ZodLiteral<"field">;
2355
+ fieldId: z.ZodString;
2356
+ }, "strict", z.ZodTypeAny, {
2357
+ kind: "field";
2358
+ fieldId: string;
2359
+ }, {
2360
+ kind: "field";
2361
+ fieldId: string;
2362
+ }>, z.ZodObject<{
2363
+ kind: z.ZodLiteral<"pivot">;
2364
+ metricId: z.ZodString;
2365
+ members: z.ZodArray<z.ZodObject<{
2366
+ fieldId: z.ZodString;
2367
+ value: z.ZodNullable<z.ZodString>;
2368
+ }, "strict", z.ZodTypeAny, {
2369
+ value: string | null;
2370
+ fieldId: string;
2371
+ }, {
2372
+ value: string | null;
2373
+ fieldId: string;
2374
+ }>, "many">;
2375
+ }, "strict", z.ZodTypeAny, {
2376
+ kind: "pivot";
2377
+ metricId: string;
2378
+ members: {
2379
+ value: string | null;
2380
+ fieldId: string;
2381
+ }[];
2382
+ }, {
2383
+ kind: "pivot";
2384
+ metricId: string;
2385
+ members: {
2386
+ value: string | null;
2387
+ fieldId: string;
2388
+ }[];
2389
+ }>, z.ZodObject<{
2390
+ kind: z.ZodLiteral<"result">;
2391
+ key: z.ZodString;
2392
+ }, "strict", z.ZodTypeAny, {
2393
+ kind: "result";
2394
+ key: string;
2395
+ }, {
2396
+ kind: "result";
2397
+ key: string;
2398
+ }>, z.ZodObject<{
2399
+ kind: z.ZodLiteral<"sqlKpiValue">;
2400
+ }, "strict", z.ZodTypeAny, {
2401
+ kind: "sqlKpiValue";
2402
+ }, {
2403
+ kind: "sqlKpiValue";
2404
+ }>, z.ZodObject<{
2405
+ kind: z.ZodLiteral<"matrixMeasure">;
2406
+ measureId: z.ZodString;
2407
+ }, "strict", z.ZodTypeAny, {
2408
+ kind: "matrixMeasure";
2409
+ measureId: string;
2410
+ }, {
2411
+ kind: "matrixMeasure";
2412
+ measureId: string;
2413
+ }>, z.ZodObject<{
2414
+ kind: z.ZodLiteral<"matrixLevel">;
2415
+ levelId: z.ZodString;
2416
+ }, "strict", z.ZodTypeAny, {
2417
+ kind: "matrixLevel";
2418
+ levelId: string;
2419
+ }, {
2420
+ kind: "matrixLevel";
2421
+ levelId: string;
2422
+ }>]>;
2423
+ isBlank: z.ZodBoolean;
2424
+ }, "strict", z.ZodTypeAny, {
2425
+ kind: "blank";
2426
+ column: {
2427
+ kind: "field";
2428
+ fieldId: string;
2429
+ } | {
2430
+ kind: "pivot";
2431
+ metricId: string;
2432
+ members: {
2433
+ value: string | null;
2434
+ fieldId: string;
2435
+ }[];
2436
+ } | {
2437
+ kind: "result";
2438
+ key: string;
2439
+ } | {
2440
+ kind: "sqlKpiValue";
2441
+ } | {
2442
+ kind: "matrixMeasure";
2443
+ measureId: string;
2444
+ } | {
2445
+ kind: "matrixLevel";
2446
+ levelId: string;
2447
+ };
2448
+ isBlank: boolean;
2449
+ }, {
2450
+ kind: "blank";
2451
+ column: {
2452
+ kind: "field";
2453
+ fieldId: string;
2454
+ } | {
2455
+ kind: "pivot";
2456
+ metricId: string;
2457
+ members: {
2458
+ value: string | null;
2459
+ fieldId: string;
2460
+ }[];
2461
+ } | {
2462
+ kind: "result";
2463
+ key: string;
2464
+ } | {
2465
+ kind: "sqlKpiValue";
2466
+ } | {
2467
+ kind: "matrixMeasure";
2468
+ measureId: string;
2469
+ } | {
2470
+ kind: "matrixLevel";
2471
+ levelId: string;
2472
+ };
2473
+ isBlank: boolean;
2474
+ }>, z.ZodObject<{
2475
+ kind: z.ZodLiteral<"contains">;
2476
+ column: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
2477
+ kind: z.ZodLiteral<"field">;
2478
+ fieldId: z.ZodString;
2479
+ }, "strict", z.ZodTypeAny, {
2480
+ kind: "field";
2481
+ fieldId: string;
2482
+ }, {
2483
+ kind: "field";
2484
+ fieldId: string;
2485
+ }>, z.ZodObject<{
2486
+ kind: z.ZodLiteral<"pivot">;
2487
+ metricId: z.ZodString;
2488
+ members: z.ZodArray<z.ZodObject<{
2489
+ fieldId: z.ZodString;
2490
+ value: z.ZodNullable<z.ZodString>;
2491
+ }, "strict", z.ZodTypeAny, {
2492
+ value: string | null;
2493
+ fieldId: string;
2494
+ }, {
2495
+ value: string | null;
2496
+ fieldId: string;
2497
+ }>, "many">;
2498
+ }, "strict", z.ZodTypeAny, {
2499
+ kind: "pivot";
2500
+ metricId: string;
2501
+ members: {
2502
+ value: string | null;
2503
+ fieldId: string;
2504
+ }[];
2505
+ }, {
2506
+ kind: "pivot";
2507
+ metricId: string;
2508
+ members: {
2509
+ value: string | null;
2510
+ fieldId: string;
2511
+ }[];
2512
+ }>, z.ZodObject<{
2513
+ kind: z.ZodLiteral<"result">;
2514
+ key: z.ZodString;
2515
+ }, "strict", z.ZodTypeAny, {
2516
+ kind: "result";
2517
+ key: string;
2518
+ }, {
2519
+ kind: "result";
2520
+ key: string;
2521
+ }>, z.ZodObject<{
2522
+ kind: z.ZodLiteral<"sqlKpiValue">;
2523
+ }, "strict", z.ZodTypeAny, {
2524
+ kind: "sqlKpiValue";
2525
+ }, {
2526
+ kind: "sqlKpiValue";
2527
+ }>, z.ZodObject<{
2528
+ kind: z.ZodLiteral<"matrixMeasure">;
2529
+ measureId: z.ZodString;
2530
+ }, "strict", z.ZodTypeAny, {
2531
+ kind: "matrixMeasure";
2532
+ measureId: string;
2533
+ }, {
2534
+ kind: "matrixMeasure";
2535
+ measureId: string;
2536
+ }>, z.ZodObject<{
2537
+ kind: z.ZodLiteral<"matrixLevel">;
2538
+ levelId: z.ZodString;
2539
+ }, "strict", z.ZodTypeAny, {
2540
+ kind: "matrixLevel";
2541
+ levelId: string;
2542
+ }, {
2543
+ kind: "matrixLevel";
2544
+ levelId: string;
2545
+ }>]>;
2546
+ value: z.ZodString;
2547
+ caseSensitive: z.ZodOptional<z.ZodBoolean>;
2548
+ exact: z.ZodOptional<z.ZodBoolean>;
2549
+ }, "strict", z.ZodTypeAny, {
2550
+ value: string;
2551
+ kind: "contains";
2552
+ column: {
2553
+ kind: "field";
2554
+ fieldId: string;
2555
+ } | {
2556
+ kind: "pivot";
2557
+ metricId: string;
2558
+ members: {
2559
+ value: string | null;
2560
+ fieldId: string;
2561
+ }[];
2562
+ } | {
2563
+ kind: "result";
2564
+ key: string;
2565
+ } | {
2566
+ kind: "sqlKpiValue";
2567
+ } | {
2568
+ kind: "matrixMeasure";
2569
+ measureId: string;
2570
+ } | {
2571
+ kind: "matrixLevel";
2572
+ levelId: string;
2573
+ };
2574
+ exact?: boolean | undefined;
2575
+ caseSensitive?: boolean | undefined;
2576
+ }, {
2577
+ value: string;
2578
+ kind: "contains";
2579
+ column: {
2580
+ kind: "field";
2581
+ fieldId: string;
2582
+ } | {
2583
+ kind: "pivot";
2584
+ metricId: string;
2585
+ members: {
2586
+ value: string | null;
2587
+ fieldId: string;
2588
+ }[];
2589
+ } | {
2590
+ kind: "result";
2591
+ key: string;
2592
+ } | {
2593
+ kind: "sqlKpiValue";
2594
+ } | {
2595
+ kind: "matrixMeasure";
2596
+ measureId: string;
2597
+ } | {
2598
+ kind: "matrixLevel";
2599
+ levelId: string;
2600
+ };
2601
+ exact?: boolean | undefined;
2602
+ caseSensitive?: boolean | undefined;
2603
+ }>, z.ZodObject<{
2604
+ kind: z.ZodLiteral<"topBottom">;
2605
+ column: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
2606
+ kind: z.ZodLiteral<"field">;
2607
+ fieldId: z.ZodString;
2608
+ }, "strict", z.ZodTypeAny, {
2609
+ kind: "field";
2610
+ fieldId: string;
2611
+ }, {
2612
+ kind: "field";
2613
+ fieldId: string;
2614
+ }>, z.ZodObject<{
2615
+ kind: z.ZodLiteral<"pivot">;
2616
+ metricId: z.ZodString;
2617
+ members: z.ZodArray<z.ZodObject<{
2618
+ fieldId: z.ZodString;
2619
+ value: z.ZodNullable<z.ZodString>;
2620
+ }, "strict", z.ZodTypeAny, {
2621
+ value: string | null;
2622
+ fieldId: string;
2623
+ }, {
2624
+ value: string | null;
2625
+ fieldId: string;
2626
+ }>, "many">;
2627
+ }, "strict", z.ZodTypeAny, {
2628
+ kind: "pivot";
2629
+ metricId: string;
2630
+ members: {
2631
+ value: string | null;
2632
+ fieldId: string;
2633
+ }[];
2634
+ }, {
2635
+ kind: "pivot";
2636
+ metricId: string;
2637
+ members: {
2638
+ value: string | null;
2639
+ fieldId: string;
2640
+ }[];
2641
+ }>, z.ZodObject<{
2642
+ kind: z.ZodLiteral<"result">;
2643
+ key: z.ZodString;
2644
+ }, "strict", z.ZodTypeAny, {
2645
+ kind: "result";
2646
+ key: string;
2647
+ }, {
2648
+ kind: "result";
2649
+ key: string;
2650
+ }>, z.ZodObject<{
2651
+ kind: z.ZodLiteral<"sqlKpiValue">;
2652
+ }, "strict", z.ZodTypeAny, {
2653
+ kind: "sqlKpiValue";
2654
+ }, {
2655
+ kind: "sqlKpiValue";
2656
+ }>, z.ZodObject<{
2657
+ kind: z.ZodLiteral<"matrixMeasure">;
2658
+ measureId: z.ZodString;
2659
+ }, "strict", z.ZodTypeAny, {
2660
+ kind: "matrixMeasure";
2661
+ measureId: string;
2662
+ }, {
2663
+ kind: "matrixMeasure";
2664
+ measureId: string;
2665
+ }>, z.ZodObject<{
2666
+ kind: z.ZodLiteral<"matrixLevel">;
2667
+ levelId: z.ZodString;
2668
+ }, "strict", z.ZodTypeAny, {
2669
+ kind: "matrixLevel";
2670
+ levelId: string;
2671
+ }, {
2672
+ kind: "matrixLevel";
2673
+ levelId: string;
2674
+ }>]>;
2675
+ direction: z.ZodEnum<["top", "bottom"]>;
2676
+ count: z.ZodNumber;
2677
+ }, "strict", z.ZodTypeAny, {
2678
+ kind: "topBottom";
2679
+ count: number;
2680
+ direction: "top" | "bottom";
2681
+ column: {
2682
+ kind: "field";
2683
+ fieldId: string;
2684
+ } | {
2685
+ kind: "pivot";
2686
+ metricId: string;
2687
+ members: {
2688
+ value: string | null;
2689
+ fieldId: string;
2690
+ }[];
2691
+ } | {
2692
+ kind: "result";
2693
+ key: string;
2694
+ } | {
2695
+ kind: "sqlKpiValue";
2696
+ } | {
2697
+ kind: "matrixMeasure";
2698
+ measureId: string;
2699
+ } | {
2700
+ kind: "matrixLevel";
2701
+ levelId: string;
2702
+ };
2703
+ }, {
2704
+ kind: "topBottom";
2705
+ count: number;
2706
+ direction: "top" | "bottom";
2707
+ column: {
2708
+ kind: "field";
2709
+ fieldId: string;
2710
+ } | {
2711
+ kind: "pivot";
2712
+ metricId: string;
2713
+ members: {
2714
+ value: string | null;
2715
+ fieldId: string;
2716
+ }[];
2717
+ } | {
2718
+ kind: "result";
2719
+ key: string;
2720
+ } | {
2721
+ kind: "sqlKpiValue";
2722
+ } | {
2723
+ kind: "matrixMeasure";
2724
+ measureId: string;
2725
+ } | {
2726
+ kind: "matrixLevel";
2727
+ levelId: string;
2728
+ };
2729
+ }>, z.ZodObject<{
2730
+ kind: z.ZodLiteral<"colorScale">;
2731
+ column: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
2732
+ kind: z.ZodLiteral<"field">;
2733
+ fieldId: z.ZodString;
2734
+ }, "strict", z.ZodTypeAny, {
2735
+ kind: "field";
2736
+ fieldId: string;
2737
+ }, {
2738
+ kind: "field";
2739
+ fieldId: string;
2740
+ }>, z.ZodObject<{
2741
+ kind: z.ZodLiteral<"pivot">;
2742
+ metricId: z.ZodString;
2743
+ members: z.ZodArray<z.ZodObject<{
2744
+ fieldId: z.ZodString;
2745
+ value: z.ZodNullable<z.ZodString>;
2746
+ }, "strict", z.ZodTypeAny, {
2747
+ value: string | null;
2748
+ fieldId: string;
2749
+ }, {
2750
+ value: string | null;
2751
+ fieldId: string;
2752
+ }>, "many">;
2753
+ }, "strict", z.ZodTypeAny, {
2754
+ kind: "pivot";
2755
+ metricId: string;
2756
+ members: {
2757
+ value: string | null;
2758
+ fieldId: string;
2759
+ }[];
2760
+ }, {
2761
+ kind: "pivot";
2762
+ metricId: string;
2763
+ members: {
2764
+ value: string | null;
2765
+ fieldId: string;
2766
+ }[];
2767
+ }>, z.ZodObject<{
2768
+ kind: z.ZodLiteral<"result">;
2769
+ key: z.ZodString;
2770
+ }, "strict", z.ZodTypeAny, {
2771
+ kind: "result";
2772
+ key: string;
2773
+ }, {
2774
+ kind: "result";
2775
+ key: string;
2776
+ }>, z.ZodObject<{
2777
+ kind: z.ZodLiteral<"sqlKpiValue">;
2778
+ }, "strict", z.ZodTypeAny, {
2779
+ kind: "sqlKpiValue";
2780
+ }, {
2781
+ kind: "sqlKpiValue";
2782
+ }>, z.ZodObject<{
2783
+ kind: z.ZodLiteral<"matrixMeasure">;
2784
+ measureId: z.ZodString;
2785
+ }, "strict", z.ZodTypeAny, {
2786
+ kind: "matrixMeasure";
2787
+ measureId: string;
2788
+ }, {
2789
+ kind: "matrixMeasure";
2790
+ measureId: string;
2791
+ }>, z.ZodObject<{
2792
+ kind: z.ZodLiteral<"matrixLevel">;
2793
+ levelId: z.ZodString;
2794
+ }, "strict", z.ZodTypeAny, {
2795
+ kind: "matrixLevel";
2796
+ levelId: string;
2797
+ }, {
2798
+ kind: "matrixLevel";
2799
+ levelId: string;
2800
+ }>]>;
2801
+ range: z.ZodEnum<["auto", "manual"]>;
2802
+ min: z.ZodOptional<z.ZodNumber>;
2803
+ mid: z.ZodOptional<z.ZodNumber>;
2804
+ max: z.ZodOptional<z.ZodNumber>;
2805
+ colors: z.ZodObject<{
2806
+ min: z.ZodString;
2807
+ mid: z.ZodOptional<z.ZodString>;
2808
+ max: z.ZodString;
2809
+ }, "strict", z.ZodTypeAny, {
2810
+ min: string;
2811
+ max: string;
2812
+ mid?: string | undefined;
2813
+ }, {
2814
+ min: string;
2815
+ max: string;
2816
+ mid?: string | undefined;
2817
+ }>;
2818
+ }, "strict", z.ZodTypeAny, {
2819
+ kind: "colorScale";
2820
+ column: {
2821
+ kind: "field";
2822
+ fieldId: string;
2823
+ } | {
2824
+ kind: "pivot";
2825
+ metricId: string;
2826
+ members: {
2827
+ value: string | null;
2828
+ fieldId: string;
2829
+ }[];
2830
+ } | {
2831
+ kind: "result";
2832
+ key: string;
2833
+ } | {
2834
+ kind: "sqlKpiValue";
2835
+ } | {
2836
+ kind: "matrixMeasure";
2837
+ measureId: string;
2838
+ } | {
2839
+ kind: "matrixLevel";
2840
+ levelId: string;
2841
+ };
2842
+ colors: {
2843
+ min: string;
2844
+ max: string;
2845
+ mid?: string | undefined;
2846
+ };
2847
+ range: "auto" | "manual";
2848
+ min?: number | undefined;
2849
+ max?: number | undefined;
2850
+ mid?: number | undefined;
2851
+ }, {
2852
+ kind: "colorScale";
2853
+ column: {
2854
+ kind: "field";
2855
+ fieldId: string;
2856
+ } | {
2857
+ kind: "pivot";
2858
+ metricId: string;
2859
+ members: {
2860
+ value: string | null;
2861
+ fieldId: string;
2862
+ }[];
2863
+ } | {
2864
+ kind: "result";
2865
+ key: string;
2866
+ } | {
2867
+ kind: "sqlKpiValue";
2868
+ } | {
2869
+ kind: "matrixMeasure";
2870
+ measureId: string;
2871
+ } | {
2872
+ kind: "matrixLevel";
2873
+ levelId: string;
2874
+ };
2875
+ colors: {
2876
+ min: string;
2877
+ max: string;
2878
+ mid?: string | undefined;
2879
+ };
2880
+ range: "auto" | "manual";
2881
+ min?: number | undefined;
2882
+ max?: number | undefined;
2883
+ mid?: number | undefined;
2884
+ }>, z.ZodObject<{
2885
+ kind: z.ZodLiteral<"dataBar">;
2886
+ column: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
2887
+ kind: z.ZodLiteral<"field">;
2888
+ fieldId: z.ZodString;
2889
+ }, "strict", z.ZodTypeAny, {
2890
+ kind: "field";
2891
+ fieldId: string;
2892
+ }, {
2893
+ kind: "field";
2894
+ fieldId: string;
2895
+ }>, z.ZodObject<{
2896
+ kind: z.ZodLiteral<"pivot">;
2897
+ metricId: z.ZodString;
2898
+ members: z.ZodArray<z.ZodObject<{
2899
+ fieldId: z.ZodString;
2900
+ value: z.ZodNullable<z.ZodString>;
2901
+ }, "strict", z.ZodTypeAny, {
2902
+ value: string | null;
2903
+ fieldId: string;
2904
+ }, {
2905
+ value: string | null;
2906
+ fieldId: string;
2907
+ }>, "many">;
2908
+ }, "strict", z.ZodTypeAny, {
2909
+ kind: "pivot";
2910
+ metricId: string;
2911
+ members: {
2912
+ value: string | null;
2913
+ fieldId: string;
2914
+ }[];
2915
+ }, {
2916
+ kind: "pivot";
2917
+ metricId: string;
2918
+ members: {
2919
+ value: string | null;
2920
+ fieldId: string;
2921
+ }[];
2922
+ }>, z.ZodObject<{
2923
+ kind: z.ZodLiteral<"result">;
2924
+ key: z.ZodString;
2925
+ }, "strict", z.ZodTypeAny, {
2926
+ kind: "result";
2927
+ key: string;
2928
+ }, {
2929
+ kind: "result";
2930
+ key: string;
2931
+ }>, z.ZodObject<{
2932
+ kind: z.ZodLiteral<"sqlKpiValue">;
2933
+ }, "strict", z.ZodTypeAny, {
2934
+ kind: "sqlKpiValue";
2935
+ }, {
2936
+ kind: "sqlKpiValue";
2937
+ }>, z.ZodObject<{
2938
+ kind: z.ZodLiteral<"matrixMeasure">;
2939
+ measureId: z.ZodString;
2940
+ }, "strict", z.ZodTypeAny, {
2941
+ kind: "matrixMeasure";
2942
+ measureId: string;
2943
+ }, {
2944
+ kind: "matrixMeasure";
2945
+ measureId: string;
2946
+ }>, z.ZodObject<{
2947
+ kind: z.ZodLiteral<"matrixLevel">;
2948
+ levelId: z.ZodString;
2949
+ }, "strict", z.ZodTypeAny, {
2950
+ kind: "matrixLevel";
2951
+ levelId: string;
2952
+ }, {
2953
+ kind: "matrixLevel";
2954
+ levelId: string;
2955
+ }>]>;
2956
+ range: z.ZodEnum<["auto", "manual"]>;
2957
+ min: z.ZodOptional<z.ZodNumber>;
2958
+ max: z.ZodOptional<z.ZodNumber>;
2959
+ color: z.ZodString;
2960
+ showValue: z.ZodOptional<z.ZodBoolean>;
2961
+ }, "strict", z.ZodTypeAny, {
2962
+ kind: "dataBar";
2963
+ column: {
2964
+ kind: "field";
2965
+ fieldId: string;
2966
+ } | {
2967
+ kind: "pivot";
2968
+ metricId: string;
2969
+ members: {
2970
+ value: string | null;
2971
+ fieldId: string;
2972
+ }[];
2973
+ } | {
2974
+ kind: "result";
2975
+ key: string;
2976
+ } | {
2977
+ kind: "sqlKpiValue";
2978
+ } | {
2979
+ kind: "matrixMeasure";
2980
+ measureId: string;
2981
+ } | {
2982
+ kind: "matrixLevel";
2983
+ levelId: string;
2984
+ };
2985
+ range: "auto" | "manual";
2986
+ color: string;
2987
+ min?: number | undefined;
2988
+ max?: number | undefined;
2989
+ showValue?: boolean | undefined;
2990
+ }, {
2991
+ kind: "dataBar";
2992
+ column: {
2993
+ kind: "field";
2994
+ fieldId: string;
2995
+ } | {
2996
+ kind: "pivot";
2997
+ metricId: string;
2998
+ members: {
2999
+ value: string | null;
3000
+ fieldId: string;
3001
+ }[];
3002
+ } | {
3003
+ kind: "result";
3004
+ key: string;
3005
+ } | {
3006
+ kind: "sqlKpiValue";
3007
+ } | {
3008
+ kind: "matrixMeasure";
3009
+ measureId: string;
3010
+ } | {
3011
+ kind: "matrixLevel";
3012
+ levelId: string;
3013
+ };
3014
+ range: "auto" | "manual";
3015
+ color: string;
3016
+ min?: number | undefined;
3017
+ max?: number | undefined;
3018
+ showValue?: boolean | undefined;
3019
+ }>]>;
3020
+ target: z.ZodObject<{
3021
+ level: z.ZodEnum<["cell", "row"]>;
3022
+ columns: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
3023
+ kind: z.ZodLiteral<"field">;
3024
+ fieldId: z.ZodString;
3025
+ }, "strict", z.ZodTypeAny, {
3026
+ kind: "field";
3027
+ fieldId: string;
3028
+ }, {
3029
+ kind: "field";
3030
+ fieldId: string;
3031
+ }>, z.ZodObject<{
3032
+ kind: z.ZodLiteral<"pivot">;
3033
+ metricId: z.ZodString;
3034
+ members: z.ZodArray<z.ZodObject<{
3035
+ fieldId: z.ZodString;
3036
+ value: z.ZodNullable<z.ZodString>;
3037
+ }, "strict", z.ZodTypeAny, {
3038
+ value: string | null;
3039
+ fieldId: string;
3040
+ }, {
3041
+ value: string | null;
3042
+ fieldId: string;
3043
+ }>, "many">;
3044
+ }, "strict", z.ZodTypeAny, {
3045
+ kind: "pivot";
3046
+ metricId: string;
3047
+ members: {
3048
+ value: string | null;
3049
+ fieldId: string;
3050
+ }[];
3051
+ }, {
3052
+ kind: "pivot";
3053
+ metricId: string;
3054
+ members: {
3055
+ value: string | null;
3056
+ fieldId: string;
3057
+ }[];
3058
+ }>, z.ZodObject<{
3059
+ kind: z.ZodLiteral<"result">;
3060
+ key: z.ZodString;
3061
+ }, "strict", z.ZodTypeAny, {
3062
+ kind: "result";
3063
+ key: string;
3064
+ }, {
3065
+ kind: "result";
3066
+ key: string;
3067
+ }>, z.ZodObject<{
3068
+ kind: z.ZodLiteral<"sqlKpiValue">;
3069
+ }, "strict", z.ZodTypeAny, {
3070
+ kind: "sqlKpiValue";
3071
+ }, {
3072
+ kind: "sqlKpiValue";
3073
+ }>, z.ZodObject<{
3074
+ kind: z.ZodLiteral<"matrixMeasure">;
3075
+ measureId: z.ZodString;
3076
+ }, "strict", z.ZodTypeAny, {
3077
+ kind: "matrixMeasure";
3078
+ measureId: string;
3079
+ }, {
3080
+ kind: "matrixMeasure";
3081
+ measureId: string;
3082
+ }>, z.ZodObject<{
3083
+ kind: z.ZodLiteral<"matrixLevel">;
3084
+ levelId: z.ZodString;
3085
+ }, "strict", z.ZodTypeAny, {
3086
+ kind: "matrixLevel";
3087
+ levelId: string;
3088
+ }, {
3089
+ kind: "matrixLevel";
3090
+ levelId: string;
3091
+ }>]>, "many">>;
3092
+ tableParts: z.ZodOptional<z.ZodArray<z.ZodEnum<["body", "header", "footer", "subtotal", "grandTotal"]>, "many">>;
3093
+ matrix: z.ZodOptional<z.ZodObject<{
3094
+ axis: z.ZodEnum<["rows", "columns"]>;
3095
+ levelId: z.ZodOptional<z.ZodString>;
3096
+ oppositePath: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodReadonly<z.ZodArray<z.ZodObject<{
3097
+ levelId: z.ZodString;
3098
+ member: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
3099
+ kind: z.ZodLiteral<"value">;
3100
+ value: z.ZodUnion<[z.ZodNull, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodEffects<z.ZodObject<{
3101
+ kind: z.ZodLiteral<"exact_number">;
3102
+ type: z.ZodEnum<["integer", "decimal"]>;
3103
+ value: z.ZodEffects<z.ZodString, string, string>;
3104
+ }, "strict", z.ZodTypeAny, {
3105
+ type: "integer" | "decimal";
3106
+ value: string;
3107
+ kind: "exact_number";
3108
+ }, {
3109
+ type: "integer" | "decimal";
3110
+ value: string;
3111
+ kind: "exact_number";
3112
+ }>, {
3113
+ type: "integer" | "decimal";
3114
+ value: string;
3115
+ kind: "exact_number";
3116
+ }, {
3117
+ type: "integer" | "decimal";
3118
+ value: string;
3119
+ kind: "exact_number";
3120
+ }>]>;
3121
+ }, "strict", z.ZodTypeAny, {
3122
+ value: string | number | boolean | {
3123
+ type: "integer" | "decimal";
3124
+ value: string;
3125
+ kind: "exact_number";
3126
+ } | null;
3127
+ kind: "value";
3128
+ }, {
3129
+ value: string | number | boolean | {
3130
+ type: "integer" | "decimal";
3131
+ value: string;
3132
+ kind: "exact_number";
3133
+ } | null;
3134
+ kind: "value";
3135
+ }>, z.ZodObject<{
3136
+ kind: z.ZodLiteral<"others">;
3137
+ rankingId: z.ZodString;
3138
+ }, "strict", z.ZodTypeAny, {
3139
+ kind: "others";
3140
+ rankingId: string;
3141
+ }, {
3142
+ kind: "others";
3143
+ rankingId: string;
3144
+ }>]>;
3145
+ }, "strict", z.ZodTypeAny, {
3146
+ member: {
3147
+ value: string | number | boolean | {
3148
+ type: "integer" | "decimal";
3149
+ value: string;
3150
+ kind: "exact_number";
3151
+ } | null;
3152
+ kind: "value";
3153
+ } | {
3154
+ kind: "others";
3155
+ rankingId: string;
3156
+ };
3157
+ levelId: string;
3158
+ }, {
3159
+ member: {
3160
+ value: string | number | boolean | {
3161
+ type: "integer" | "decimal";
3162
+ value: string;
3163
+ kind: "exact_number";
3164
+ } | null;
3165
+ kind: "value";
3166
+ } | {
3167
+ kind: "others";
3168
+ rankingId: string;
3169
+ };
3170
+ levelId: string;
3171
+ }>, "many">>, readonly {
3172
+ member: {
3173
+ value: string | number | boolean | {
3174
+ type: "integer" | "decimal";
3175
+ value: string;
3176
+ kind: "exact_number";
3177
+ } | null;
3178
+ kind: "value";
3179
+ } | {
3180
+ kind: "others";
3181
+ rankingId: string;
3182
+ };
3183
+ levelId: string;
3184
+ }[], readonly {
3185
+ member: {
3186
+ value: string | number | boolean | {
3187
+ type: "integer" | "decimal";
3188
+ value: string;
3189
+ kind: "exact_number";
3190
+ } | null;
3191
+ kind: "value";
3192
+ } | {
3193
+ kind: "others";
3194
+ rankingId: string;
3195
+ };
3196
+ levelId: string;
3197
+ }[]>, {
3198
+ member: {
3199
+ value: string | number | boolean | {
3200
+ type: "integer" | "decimal";
3201
+ value: string;
3202
+ kind: "exact_number";
3203
+ } | null;
3204
+ kind: "value";
3205
+ } | {
3206
+ kind: "others";
3207
+ rankingId: string;
3208
+ };
3209
+ levelId: string;
3210
+ }[], readonly {
3211
+ member: {
3212
+ value: string | number | boolean | {
3213
+ type: "integer" | "decimal";
3214
+ value: string;
3215
+ kind: "exact_number";
3216
+ } | null;
3217
+ kind: "value";
3218
+ } | {
3219
+ kind: "others";
3220
+ rankingId: string;
3221
+ };
3222
+ levelId: string;
3223
+ }[]>>;
3224
+ }, "strict", z.ZodTypeAny, {
3225
+ axis: "columns" | "rows";
3226
+ levelId?: string | undefined;
3227
+ oppositePath?: {
3228
+ member: {
3229
+ value: string | number | boolean | {
3230
+ type: "integer" | "decimal";
3231
+ value: string;
3232
+ kind: "exact_number";
3233
+ } | null;
3234
+ kind: "value";
3235
+ } | {
3236
+ kind: "others";
3237
+ rankingId: string;
3238
+ };
3239
+ levelId: string;
3240
+ }[] | undefined;
3241
+ }, {
3242
+ axis: "columns" | "rows";
3243
+ levelId?: string | undefined;
3244
+ oppositePath?: readonly {
3245
+ member: {
3246
+ value: string | number | boolean | {
3247
+ type: "integer" | "decimal";
3248
+ value: string;
3249
+ kind: "exact_number";
3250
+ } | null;
3251
+ kind: "value";
3252
+ } | {
3253
+ kind: "others";
3254
+ rankingId: string;
3255
+ };
3256
+ levelId: string;
3257
+ }[] | undefined;
3258
+ }>>;
3259
+ rowRoles: z.ZodOptional<z.ZodArray<z.ZodEnum<["member", "subtotal", "grand_total", "others"]>, "many">>;
3260
+ depth: z.ZodOptional<z.ZodNumber>;
3261
+ includeTotals: z.ZodOptional<z.ZodBoolean>;
3262
+ includeSubtotals: z.ZodOptional<z.ZodBoolean>;
3263
+ }, "strict", z.ZodTypeAny, {
3264
+ level: "row" | "cell";
3265
+ columns?: ({
3266
+ kind: "field";
3267
+ fieldId: string;
3268
+ } | {
3269
+ kind: "pivot";
3270
+ metricId: string;
3271
+ members: {
3272
+ value: string | null;
3273
+ fieldId: string;
3274
+ }[];
3275
+ } | {
3276
+ kind: "result";
3277
+ key: string;
3278
+ } | {
3279
+ kind: "sqlKpiValue";
3280
+ } | {
3281
+ kind: "matrixMeasure";
3282
+ measureId: string;
3283
+ } | {
3284
+ kind: "matrixLevel";
3285
+ levelId: string;
3286
+ })[] | undefined;
3287
+ matrix?: {
3288
+ axis: "columns" | "rows";
3289
+ levelId?: string | undefined;
3290
+ oppositePath?: {
3291
+ member: {
3292
+ value: string | number | boolean | {
3293
+ type: "integer" | "decimal";
3294
+ value: string;
3295
+ kind: "exact_number";
3296
+ } | null;
3297
+ kind: "value";
3298
+ } | {
3299
+ kind: "others";
3300
+ rankingId: string;
3301
+ };
3302
+ levelId: string;
3303
+ }[] | undefined;
3304
+ } | undefined;
3305
+ depth?: number | undefined;
3306
+ tableParts?: ("subtotal" | "body" | "header" | "footer" | "grandTotal")[] | undefined;
3307
+ rowRoles?: ("member" | "subtotal" | "grand_total" | "others")[] | undefined;
3308
+ includeTotals?: boolean | undefined;
3309
+ includeSubtotals?: boolean | undefined;
3310
+ }, {
3311
+ level: "row" | "cell";
3312
+ columns?: ({
3313
+ kind: "field";
3314
+ fieldId: string;
3315
+ } | {
3316
+ kind: "pivot";
3317
+ metricId: string;
3318
+ members: {
3319
+ value: string | null;
3320
+ fieldId: string;
3321
+ }[];
3322
+ } | {
3323
+ kind: "result";
3324
+ key: string;
3325
+ } | {
3326
+ kind: "sqlKpiValue";
3327
+ } | {
3328
+ kind: "matrixMeasure";
3329
+ measureId: string;
3330
+ } | {
3331
+ kind: "matrixLevel";
3332
+ levelId: string;
3333
+ })[] | undefined;
3334
+ matrix?: {
3335
+ axis: "columns" | "rows";
3336
+ levelId?: string | undefined;
3337
+ oppositePath?: readonly {
3338
+ member: {
3339
+ value: string | number | boolean | {
3340
+ type: "integer" | "decimal";
3341
+ value: string;
3342
+ kind: "exact_number";
3343
+ } | null;
3344
+ kind: "value";
3345
+ } | {
3346
+ kind: "others";
3347
+ rankingId: string;
3348
+ };
3349
+ levelId: string;
3350
+ }[] | undefined;
3351
+ } | undefined;
3352
+ depth?: number | undefined;
3353
+ tableParts?: ("subtotal" | "body" | "header" | "footer" | "grandTotal")[] | undefined;
3354
+ rowRoles?: ("member" | "subtotal" | "grand_total" | "others")[] | undefined;
3355
+ includeTotals?: boolean | undefined;
3356
+ includeSubtotals?: boolean | undefined;
3357
+ }>;
3358
+ style: z.ZodOptional<z.ZodObject<{
3359
+ backgroundColor: z.ZodOptional<z.ZodString>;
3360
+ textColor: z.ZodOptional<z.ZodString>;
3361
+ fontWeight: z.ZodOptional<z.ZodEnum<["normal", "medium", "semibold", "bold"]>>;
3362
+ italic: z.ZodOptional<z.ZodBoolean>;
3363
+ textDecoration: z.ZodOptional<z.ZodEnum<["none", "underline", "line-through"]>>;
3364
+ icon: z.ZodOptional<z.ZodEnum<["arrowUp", "arrowDown", "warning", "check", "x"]>>;
3365
+ dataBar: z.ZodOptional<z.ZodObject<{
3366
+ color: z.ZodString;
3367
+ showValue: z.ZodBoolean;
3368
+ }, "strict", z.ZodTypeAny, {
3369
+ color: string;
3370
+ showValue: boolean;
3371
+ }, {
3372
+ color: string;
3373
+ showValue: boolean;
3374
+ }>>;
3375
+ }, "strict", z.ZodTypeAny, {
3376
+ dataBar?: {
3377
+ color: string;
3378
+ showValue: boolean;
3379
+ } | undefined;
3380
+ fontWeight?: "bold" | "medium" | "normal" | "semibold" | undefined;
3381
+ backgroundColor?: string | undefined;
3382
+ textColor?: string | undefined;
3383
+ italic?: boolean | undefined;
3384
+ textDecoration?: "none" | "underline" | "line-through" | undefined;
3385
+ icon?: "warning" | "arrowUp" | "arrowDown" | "check" | "x" | undefined;
3386
+ }, {
3387
+ dataBar?: {
3388
+ color: string;
3389
+ showValue: boolean;
3390
+ } | undefined;
3391
+ fontWeight?: "bold" | "medium" | "normal" | "semibold" | undefined;
3392
+ backgroundColor?: string | undefined;
3393
+ textColor?: string | undefined;
3394
+ italic?: boolean | undefined;
3395
+ textDecoration?: "none" | "underline" | "line-through" | undefined;
3396
+ icon?: "warning" | "arrowUp" | "arrowDown" | "check" | "x" | undefined;
3397
+ }>>;
3398
+ }, "strict", z.ZodTypeAny, {
3399
+ id: string;
3400
+ target: {
3401
+ level: "row" | "cell";
3402
+ columns?: ({
3403
+ kind: "field";
3404
+ fieldId: string;
3405
+ } | {
3406
+ kind: "pivot";
3407
+ metricId: string;
3408
+ members: {
3409
+ value: string | null;
3410
+ fieldId: string;
3411
+ }[];
3412
+ } | {
3413
+ kind: "result";
3414
+ key: string;
3415
+ } | {
3416
+ kind: "sqlKpiValue";
3417
+ } | {
3418
+ kind: "matrixMeasure";
3419
+ measureId: string;
3420
+ } | {
3421
+ kind: "matrixLevel";
3422
+ levelId: string;
3423
+ })[] | undefined;
3424
+ matrix?: {
3425
+ axis: "columns" | "rows";
3426
+ levelId?: string | undefined;
3427
+ oppositePath?: {
3428
+ member: {
3429
+ value: string | number | boolean | {
3430
+ type: "integer" | "decimal";
3431
+ value: string;
3432
+ kind: "exact_number";
3433
+ } | null;
3434
+ kind: "value";
3435
+ } | {
3436
+ kind: "others";
3437
+ rankingId: string;
3438
+ };
3439
+ levelId: string;
3440
+ }[] | undefined;
3441
+ } | undefined;
3442
+ depth?: number | undefined;
3443
+ tableParts?: ("subtotal" | "body" | "header" | "footer" | "grandTotal")[] | undefined;
3444
+ rowRoles?: ("member" | "subtotal" | "grand_total" | "others")[] | undefined;
3445
+ includeTotals?: boolean | undefined;
3446
+ includeSubtotals?: boolean | undefined;
3447
+ };
3448
+ condition: {
3449
+ value: string | number | boolean | {
3450
+ type: "integer" | "decimal";
3451
+ value: string;
3452
+ kind: "exact_number";
3453
+ } | null;
3454
+ kind: "comparison";
3455
+ operator: "eq" | "neq" | "gt" | "gte" | "lt" | "lte";
3456
+ column: {
3457
+ kind: "field";
3458
+ fieldId: string;
3459
+ } | {
3460
+ kind: "pivot";
3461
+ metricId: string;
3462
+ members: {
3463
+ value: string | null;
3464
+ fieldId: string;
3465
+ }[];
3466
+ } | {
3467
+ kind: "result";
3468
+ key: string;
3469
+ } | {
3470
+ kind: "sqlKpiValue";
3471
+ } | {
3472
+ kind: "matrixMeasure";
3473
+ measureId: string;
3474
+ } | {
3475
+ kind: "matrixLevel";
3476
+ levelId: string;
3477
+ };
3478
+ } | {
3479
+ kind: "between";
3480
+ min: string | number | boolean | {
3481
+ type: "integer" | "decimal";
3482
+ value: string;
3483
+ kind: "exact_number";
3484
+ } | null;
3485
+ max: string | number | boolean | {
3486
+ type: "integer" | "decimal";
3487
+ value: string;
3488
+ kind: "exact_number";
3489
+ } | null;
3490
+ column: {
3491
+ kind: "field";
3492
+ fieldId: string;
3493
+ } | {
3494
+ kind: "pivot";
3495
+ metricId: string;
3496
+ members: {
3497
+ value: string | null;
3498
+ fieldId: string;
3499
+ }[];
3500
+ } | {
3501
+ kind: "result";
3502
+ key: string;
3503
+ } | {
3504
+ kind: "sqlKpiValue";
3505
+ } | {
3506
+ kind: "matrixMeasure";
3507
+ measureId: string;
3508
+ } | {
3509
+ kind: "matrixLevel";
3510
+ levelId: string;
3511
+ };
3512
+ inclusive?: boolean | undefined;
3513
+ } | {
3514
+ kind: "blank";
3515
+ column: {
3516
+ kind: "field";
3517
+ fieldId: string;
3518
+ } | {
3519
+ kind: "pivot";
3520
+ metricId: string;
3521
+ members: {
3522
+ value: string | null;
3523
+ fieldId: string;
3524
+ }[];
3525
+ } | {
3526
+ kind: "result";
3527
+ key: string;
3528
+ } | {
3529
+ kind: "sqlKpiValue";
3530
+ } | {
3531
+ kind: "matrixMeasure";
3532
+ measureId: string;
3533
+ } | {
3534
+ kind: "matrixLevel";
3535
+ levelId: string;
3536
+ };
3537
+ isBlank: boolean;
3538
+ } | {
3539
+ value: string;
3540
+ kind: "contains";
3541
+ column: {
3542
+ kind: "field";
3543
+ fieldId: string;
3544
+ } | {
3545
+ kind: "pivot";
3546
+ metricId: string;
3547
+ members: {
3548
+ value: string | null;
3549
+ fieldId: string;
3550
+ }[];
3551
+ } | {
3552
+ kind: "result";
3553
+ key: string;
3554
+ } | {
3555
+ kind: "sqlKpiValue";
3556
+ } | {
3557
+ kind: "matrixMeasure";
3558
+ measureId: string;
3559
+ } | {
3560
+ kind: "matrixLevel";
3561
+ levelId: string;
3562
+ };
3563
+ exact?: boolean | undefined;
3564
+ caseSensitive?: boolean | undefined;
3565
+ } | {
3566
+ kind: "topBottom";
3567
+ count: number;
3568
+ direction: "top" | "bottom";
3569
+ column: {
3570
+ kind: "field";
3571
+ fieldId: string;
3572
+ } | {
3573
+ kind: "pivot";
3574
+ metricId: string;
3575
+ members: {
3576
+ value: string | null;
3577
+ fieldId: string;
3578
+ }[];
3579
+ } | {
3580
+ kind: "result";
3581
+ key: string;
3582
+ } | {
3583
+ kind: "sqlKpiValue";
3584
+ } | {
3585
+ kind: "matrixMeasure";
3586
+ measureId: string;
3587
+ } | {
3588
+ kind: "matrixLevel";
3589
+ levelId: string;
3590
+ };
3591
+ } | {
3592
+ kind: "colorScale";
3593
+ column: {
3594
+ kind: "field";
3595
+ fieldId: string;
3596
+ } | {
3597
+ kind: "pivot";
3598
+ metricId: string;
3599
+ members: {
3600
+ value: string | null;
3601
+ fieldId: string;
3602
+ }[];
3603
+ } | {
3604
+ kind: "result";
3605
+ key: string;
3606
+ } | {
3607
+ kind: "sqlKpiValue";
3608
+ } | {
3609
+ kind: "matrixMeasure";
3610
+ measureId: string;
3611
+ } | {
3612
+ kind: "matrixLevel";
3613
+ levelId: string;
3614
+ };
3615
+ colors: {
3616
+ min: string;
3617
+ max: string;
3618
+ mid?: string | undefined;
3619
+ };
3620
+ range: "auto" | "manual";
3621
+ min?: number | undefined;
3622
+ max?: number | undefined;
3623
+ mid?: number | undefined;
3624
+ } | {
3625
+ kind: "dataBar";
3626
+ column: {
3627
+ kind: "field";
3628
+ fieldId: string;
3629
+ } | {
3630
+ kind: "pivot";
3631
+ metricId: string;
3632
+ members: {
3633
+ value: string | null;
3634
+ fieldId: string;
3635
+ }[];
3636
+ } | {
3637
+ kind: "result";
3638
+ key: string;
3639
+ } | {
3640
+ kind: "sqlKpiValue";
3641
+ } | {
3642
+ kind: "matrixMeasure";
3643
+ measureId: string;
3644
+ } | {
3645
+ kind: "matrixLevel";
3646
+ levelId: string;
3647
+ };
3648
+ range: "auto" | "manual";
3649
+ color: string;
3650
+ min?: number | undefined;
3651
+ max?: number | undefined;
3652
+ showValue?: boolean | undefined;
3653
+ };
3654
+ name?: string | undefined;
3655
+ style?: {
3656
+ dataBar?: {
3657
+ color: string;
3658
+ showValue: boolean;
3659
+ } | undefined;
3660
+ fontWeight?: "bold" | "medium" | "normal" | "semibold" | undefined;
3661
+ backgroundColor?: string | undefined;
3662
+ textColor?: string | undefined;
3663
+ italic?: boolean | undefined;
3664
+ textDecoration?: "none" | "underline" | "line-through" | undefined;
3665
+ icon?: "warning" | "arrowUp" | "arrowDown" | "check" | "x" | undefined;
3666
+ } | undefined;
3667
+ enabled?: boolean | undefined;
3668
+ }, {
3669
+ id: string;
3670
+ target: {
3671
+ level: "row" | "cell";
3672
+ columns?: ({
3673
+ kind: "field";
3674
+ fieldId: string;
3675
+ } | {
3676
+ kind: "pivot";
3677
+ metricId: string;
3678
+ members: {
3679
+ value: string | null;
3680
+ fieldId: string;
3681
+ }[];
3682
+ } | {
3683
+ kind: "result";
3684
+ key: string;
3685
+ } | {
3686
+ kind: "sqlKpiValue";
3687
+ } | {
3688
+ kind: "matrixMeasure";
3689
+ measureId: string;
3690
+ } | {
3691
+ kind: "matrixLevel";
3692
+ levelId: string;
3693
+ })[] | undefined;
3694
+ matrix?: {
3695
+ axis: "columns" | "rows";
3696
+ levelId?: string | undefined;
3697
+ oppositePath?: readonly {
3698
+ member: {
3699
+ value: string | number | boolean | {
3700
+ type: "integer" | "decimal";
3701
+ value: string;
3702
+ kind: "exact_number";
3703
+ } | null;
3704
+ kind: "value";
3705
+ } | {
3706
+ kind: "others";
3707
+ rankingId: string;
3708
+ };
3709
+ levelId: string;
3710
+ }[] | undefined;
3711
+ } | undefined;
3712
+ depth?: number | undefined;
3713
+ tableParts?: ("subtotal" | "body" | "header" | "footer" | "grandTotal")[] | undefined;
3714
+ rowRoles?: ("member" | "subtotal" | "grand_total" | "others")[] | undefined;
3715
+ includeTotals?: boolean | undefined;
3716
+ includeSubtotals?: boolean | undefined;
3717
+ };
3718
+ condition: {
3719
+ value: string | number | boolean | {
3720
+ type: "integer" | "decimal";
3721
+ value: string;
3722
+ kind: "exact_number";
3723
+ } | null;
3724
+ kind: "comparison";
3725
+ operator: "eq" | "neq" | "gt" | "gte" | "lt" | "lte";
3726
+ column: {
3727
+ kind: "field";
3728
+ fieldId: string;
3729
+ } | {
3730
+ kind: "pivot";
3731
+ metricId: string;
3732
+ members: {
3733
+ value: string | null;
3734
+ fieldId: string;
3735
+ }[];
3736
+ } | {
3737
+ kind: "result";
3738
+ key: string;
3739
+ } | {
3740
+ kind: "sqlKpiValue";
3741
+ } | {
3742
+ kind: "matrixMeasure";
3743
+ measureId: string;
3744
+ } | {
3745
+ kind: "matrixLevel";
3746
+ levelId: string;
3747
+ };
3748
+ } | {
3749
+ kind: "between";
3750
+ min: string | number | boolean | {
3751
+ type: "integer" | "decimal";
3752
+ value: string;
3753
+ kind: "exact_number";
3754
+ } | null;
3755
+ max: string | number | boolean | {
3756
+ type: "integer" | "decimal";
3757
+ value: string;
3758
+ kind: "exact_number";
3759
+ } | null;
3760
+ column: {
3761
+ kind: "field";
3762
+ fieldId: string;
3763
+ } | {
3764
+ kind: "pivot";
3765
+ metricId: string;
3766
+ members: {
3767
+ value: string | null;
3768
+ fieldId: string;
3769
+ }[];
3770
+ } | {
3771
+ kind: "result";
3772
+ key: string;
3773
+ } | {
3774
+ kind: "sqlKpiValue";
3775
+ } | {
3776
+ kind: "matrixMeasure";
3777
+ measureId: string;
3778
+ } | {
3779
+ kind: "matrixLevel";
3780
+ levelId: string;
3781
+ };
3782
+ inclusive?: boolean | undefined;
3783
+ } | {
3784
+ kind: "blank";
3785
+ column: {
3786
+ kind: "field";
3787
+ fieldId: string;
3788
+ } | {
3789
+ kind: "pivot";
3790
+ metricId: string;
3791
+ members: {
3792
+ value: string | null;
3793
+ fieldId: string;
3794
+ }[];
3795
+ } | {
3796
+ kind: "result";
3797
+ key: string;
3798
+ } | {
3799
+ kind: "sqlKpiValue";
3800
+ } | {
3801
+ kind: "matrixMeasure";
3802
+ measureId: string;
3803
+ } | {
3804
+ kind: "matrixLevel";
3805
+ levelId: string;
3806
+ };
3807
+ isBlank: boolean;
3808
+ } | {
3809
+ value: string;
3810
+ kind: "contains";
3811
+ column: {
3812
+ kind: "field";
3813
+ fieldId: string;
3814
+ } | {
3815
+ kind: "pivot";
3816
+ metricId: string;
3817
+ members: {
3818
+ value: string | null;
3819
+ fieldId: string;
3820
+ }[];
3821
+ } | {
3822
+ kind: "result";
3823
+ key: string;
3824
+ } | {
3825
+ kind: "sqlKpiValue";
3826
+ } | {
3827
+ kind: "matrixMeasure";
3828
+ measureId: string;
3829
+ } | {
3830
+ kind: "matrixLevel";
3831
+ levelId: string;
3832
+ };
3833
+ exact?: boolean | undefined;
3834
+ caseSensitive?: boolean | undefined;
3835
+ } | {
3836
+ kind: "topBottom";
3837
+ count: number;
3838
+ direction: "top" | "bottom";
3839
+ column: {
3840
+ kind: "field";
3841
+ fieldId: string;
3842
+ } | {
3843
+ kind: "pivot";
3844
+ metricId: string;
3845
+ members: {
3846
+ value: string | null;
3847
+ fieldId: string;
3848
+ }[];
3849
+ } | {
3850
+ kind: "result";
3851
+ key: string;
3852
+ } | {
3853
+ kind: "sqlKpiValue";
3854
+ } | {
3855
+ kind: "matrixMeasure";
3856
+ measureId: string;
3857
+ } | {
3858
+ kind: "matrixLevel";
3859
+ levelId: string;
3860
+ };
3861
+ } | {
3862
+ kind: "colorScale";
3863
+ column: {
3864
+ kind: "field";
3865
+ fieldId: string;
3866
+ } | {
3867
+ kind: "pivot";
3868
+ metricId: string;
3869
+ members: {
3870
+ value: string | null;
3871
+ fieldId: string;
3872
+ }[];
3873
+ } | {
3874
+ kind: "result";
3875
+ key: string;
3876
+ } | {
3877
+ kind: "sqlKpiValue";
3878
+ } | {
3879
+ kind: "matrixMeasure";
3880
+ measureId: string;
3881
+ } | {
3882
+ kind: "matrixLevel";
3883
+ levelId: string;
3884
+ };
3885
+ colors: {
3886
+ min: string;
3887
+ max: string;
3888
+ mid?: string | undefined;
3889
+ };
3890
+ range: "auto" | "manual";
3891
+ min?: number | undefined;
3892
+ max?: number | undefined;
3893
+ mid?: number | undefined;
3894
+ } | {
3895
+ kind: "dataBar";
3896
+ column: {
3897
+ kind: "field";
3898
+ fieldId: string;
3899
+ } | {
3900
+ kind: "pivot";
3901
+ metricId: string;
3902
+ members: {
3903
+ value: string | null;
3904
+ fieldId: string;
3905
+ }[];
3906
+ } | {
3907
+ kind: "result";
3908
+ key: string;
3909
+ } | {
3910
+ kind: "sqlKpiValue";
3911
+ } | {
3912
+ kind: "matrixMeasure";
3913
+ measureId: string;
3914
+ } | {
3915
+ kind: "matrixLevel";
3916
+ levelId: string;
3917
+ };
3918
+ range: "auto" | "manual";
3919
+ color: string;
3920
+ min?: number | undefined;
3921
+ max?: number | undefined;
3922
+ showValue?: boolean | undefined;
3923
+ };
3924
+ name?: string | undefined;
3925
+ style?: {
3926
+ dataBar?: {
3927
+ color: string;
3928
+ showValue: boolean;
3929
+ } | undefined;
3930
+ fontWeight?: "bold" | "medium" | "normal" | "semibold" | undefined;
3931
+ backgroundColor?: string | undefined;
3932
+ textColor?: string | undefined;
3933
+ italic?: boolean | undefined;
3934
+ textDecoration?: "none" | "underline" | "line-through" | undefined;
3935
+ icon?: "warning" | "arrowUp" | "arrowDown" | "check" | "x" | undefined;
3936
+ } | undefined;
3937
+ enabled?: boolean | undefined;
3938
+ }>, "many">;
3939
+ }, "strict", z.ZodTypeAny, {
3940
+ version: 1;
3941
+ rules: {
3942
+ id: string;
3943
+ target: {
3944
+ level: "row" | "cell";
3945
+ columns?: ({
3946
+ kind: "field";
3947
+ fieldId: string;
3948
+ } | {
3949
+ kind: "pivot";
3950
+ metricId: string;
3951
+ members: {
3952
+ value: string | null;
3953
+ fieldId: string;
3954
+ }[];
3955
+ } | {
3956
+ kind: "result";
3957
+ key: string;
3958
+ } | {
3959
+ kind: "sqlKpiValue";
3960
+ } | {
3961
+ kind: "matrixMeasure";
3962
+ measureId: string;
3963
+ } | {
3964
+ kind: "matrixLevel";
3965
+ levelId: string;
3966
+ })[] | undefined;
3967
+ matrix?: {
3968
+ axis: "columns" | "rows";
3969
+ levelId?: string | undefined;
3970
+ oppositePath?: {
3971
+ member: {
3972
+ value: string | number | boolean | {
3973
+ type: "integer" | "decimal";
3974
+ value: string;
3975
+ kind: "exact_number";
3976
+ } | null;
3977
+ kind: "value";
3978
+ } | {
3979
+ kind: "others";
3980
+ rankingId: string;
3981
+ };
3982
+ levelId: string;
3983
+ }[] | undefined;
3984
+ } | undefined;
3985
+ depth?: number | undefined;
3986
+ tableParts?: ("subtotal" | "body" | "header" | "footer" | "grandTotal")[] | undefined;
3987
+ rowRoles?: ("member" | "subtotal" | "grand_total" | "others")[] | undefined;
3988
+ includeTotals?: boolean | undefined;
3989
+ includeSubtotals?: boolean | undefined;
3990
+ };
3991
+ condition: {
3992
+ value: string | number | boolean | {
3993
+ type: "integer" | "decimal";
3994
+ value: string;
3995
+ kind: "exact_number";
3996
+ } | null;
3997
+ kind: "comparison";
3998
+ operator: "eq" | "neq" | "gt" | "gte" | "lt" | "lte";
3999
+ column: {
4000
+ kind: "field";
4001
+ fieldId: string;
4002
+ } | {
4003
+ kind: "pivot";
4004
+ metricId: string;
4005
+ members: {
4006
+ value: string | null;
4007
+ fieldId: string;
4008
+ }[];
4009
+ } | {
4010
+ kind: "result";
4011
+ key: string;
4012
+ } | {
4013
+ kind: "sqlKpiValue";
4014
+ } | {
4015
+ kind: "matrixMeasure";
4016
+ measureId: string;
4017
+ } | {
4018
+ kind: "matrixLevel";
4019
+ levelId: string;
4020
+ };
4021
+ } | {
4022
+ kind: "between";
4023
+ min: string | number | boolean | {
4024
+ type: "integer" | "decimal";
4025
+ value: string;
4026
+ kind: "exact_number";
4027
+ } | null;
4028
+ max: string | number | boolean | {
4029
+ type: "integer" | "decimal";
4030
+ value: string;
4031
+ kind: "exact_number";
4032
+ } | null;
4033
+ column: {
4034
+ kind: "field";
4035
+ fieldId: string;
4036
+ } | {
4037
+ kind: "pivot";
4038
+ metricId: string;
4039
+ members: {
4040
+ value: string | null;
4041
+ fieldId: string;
4042
+ }[];
4043
+ } | {
4044
+ kind: "result";
4045
+ key: string;
4046
+ } | {
4047
+ kind: "sqlKpiValue";
4048
+ } | {
4049
+ kind: "matrixMeasure";
4050
+ measureId: string;
4051
+ } | {
4052
+ kind: "matrixLevel";
4053
+ levelId: string;
4054
+ };
4055
+ inclusive?: boolean | undefined;
4056
+ } | {
4057
+ kind: "blank";
4058
+ column: {
4059
+ kind: "field";
4060
+ fieldId: string;
4061
+ } | {
4062
+ kind: "pivot";
4063
+ metricId: string;
4064
+ members: {
4065
+ value: string | null;
4066
+ fieldId: string;
4067
+ }[];
4068
+ } | {
4069
+ kind: "result";
4070
+ key: string;
4071
+ } | {
4072
+ kind: "sqlKpiValue";
4073
+ } | {
4074
+ kind: "matrixMeasure";
4075
+ measureId: string;
4076
+ } | {
4077
+ kind: "matrixLevel";
4078
+ levelId: string;
4079
+ };
4080
+ isBlank: boolean;
4081
+ } | {
4082
+ value: string;
4083
+ kind: "contains";
4084
+ column: {
4085
+ kind: "field";
4086
+ fieldId: string;
4087
+ } | {
4088
+ kind: "pivot";
4089
+ metricId: string;
4090
+ members: {
4091
+ value: string | null;
4092
+ fieldId: string;
4093
+ }[];
4094
+ } | {
4095
+ kind: "result";
4096
+ key: string;
4097
+ } | {
4098
+ kind: "sqlKpiValue";
4099
+ } | {
4100
+ kind: "matrixMeasure";
4101
+ measureId: string;
4102
+ } | {
4103
+ kind: "matrixLevel";
4104
+ levelId: string;
4105
+ };
4106
+ exact?: boolean | undefined;
4107
+ caseSensitive?: boolean | undefined;
4108
+ } | {
4109
+ kind: "topBottom";
4110
+ count: number;
4111
+ direction: "top" | "bottom";
4112
+ column: {
4113
+ kind: "field";
4114
+ fieldId: string;
4115
+ } | {
4116
+ kind: "pivot";
4117
+ metricId: string;
4118
+ members: {
4119
+ value: string | null;
4120
+ fieldId: string;
4121
+ }[];
4122
+ } | {
4123
+ kind: "result";
4124
+ key: string;
4125
+ } | {
4126
+ kind: "sqlKpiValue";
4127
+ } | {
4128
+ kind: "matrixMeasure";
4129
+ measureId: string;
4130
+ } | {
4131
+ kind: "matrixLevel";
4132
+ levelId: string;
4133
+ };
4134
+ } | {
4135
+ kind: "colorScale";
4136
+ column: {
4137
+ kind: "field";
4138
+ fieldId: string;
4139
+ } | {
4140
+ kind: "pivot";
4141
+ metricId: string;
4142
+ members: {
4143
+ value: string | null;
4144
+ fieldId: string;
4145
+ }[];
4146
+ } | {
4147
+ kind: "result";
4148
+ key: string;
4149
+ } | {
4150
+ kind: "sqlKpiValue";
4151
+ } | {
4152
+ kind: "matrixMeasure";
4153
+ measureId: string;
4154
+ } | {
4155
+ kind: "matrixLevel";
4156
+ levelId: string;
4157
+ };
4158
+ colors: {
4159
+ min: string;
4160
+ max: string;
4161
+ mid?: string | undefined;
4162
+ };
4163
+ range: "auto" | "manual";
4164
+ min?: number | undefined;
4165
+ max?: number | undefined;
4166
+ mid?: number | undefined;
4167
+ } | {
4168
+ kind: "dataBar";
4169
+ column: {
4170
+ kind: "field";
4171
+ fieldId: string;
4172
+ } | {
4173
+ kind: "pivot";
4174
+ metricId: string;
4175
+ members: {
4176
+ value: string | null;
4177
+ fieldId: string;
4178
+ }[];
4179
+ } | {
4180
+ kind: "result";
4181
+ key: string;
4182
+ } | {
4183
+ kind: "sqlKpiValue";
4184
+ } | {
4185
+ kind: "matrixMeasure";
4186
+ measureId: string;
4187
+ } | {
4188
+ kind: "matrixLevel";
4189
+ levelId: string;
4190
+ };
4191
+ range: "auto" | "manual";
4192
+ color: string;
4193
+ min?: number | undefined;
4194
+ max?: number | undefined;
4195
+ showValue?: boolean | undefined;
4196
+ };
4197
+ name?: string | undefined;
4198
+ style?: {
4199
+ dataBar?: {
4200
+ color: string;
4201
+ showValue: boolean;
4202
+ } | undefined;
4203
+ fontWeight?: "bold" | "medium" | "normal" | "semibold" | undefined;
4204
+ backgroundColor?: string | undefined;
4205
+ textColor?: string | undefined;
4206
+ italic?: boolean | undefined;
4207
+ textDecoration?: "none" | "underline" | "line-through" | undefined;
4208
+ icon?: "warning" | "arrowUp" | "arrowDown" | "check" | "x" | undefined;
4209
+ } | undefined;
4210
+ enabled?: boolean | undefined;
4211
+ }[];
4212
+ }, {
4213
+ version: 1;
4214
+ rules: {
4215
+ id: string;
4216
+ target: {
4217
+ level: "row" | "cell";
4218
+ columns?: ({
4219
+ kind: "field";
4220
+ fieldId: string;
4221
+ } | {
4222
+ kind: "pivot";
4223
+ metricId: string;
4224
+ members: {
4225
+ value: string | null;
4226
+ fieldId: string;
4227
+ }[];
4228
+ } | {
4229
+ kind: "result";
4230
+ key: string;
4231
+ } | {
4232
+ kind: "sqlKpiValue";
4233
+ } | {
4234
+ kind: "matrixMeasure";
4235
+ measureId: string;
4236
+ } | {
4237
+ kind: "matrixLevel";
4238
+ levelId: string;
4239
+ })[] | undefined;
4240
+ matrix?: {
4241
+ axis: "columns" | "rows";
4242
+ levelId?: string | undefined;
4243
+ oppositePath?: readonly {
4244
+ member: {
4245
+ value: string | number | boolean | {
4246
+ type: "integer" | "decimal";
4247
+ value: string;
4248
+ kind: "exact_number";
4249
+ } | null;
4250
+ kind: "value";
4251
+ } | {
4252
+ kind: "others";
4253
+ rankingId: string;
4254
+ };
4255
+ levelId: string;
4256
+ }[] | undefined;
4257
+ } | undefined;
4258
+ depth?: number | undefined;
4259
+ tableParts?: ("subtotal" | "body" | "header" | "footer" | "grandTotal")[] | undefined;
4260
+ rowRoles?: ("member" | "subtotal" | "grand_total" | "others")[] | undefined;
4261
+ includeTotals?: boolean | undefined;
4262
+ includeSubtotals?: boolean | undefined;
4263
+ };
4264
+ condition: {
4265
+ value: string | number | boolean | {
4266
+ type: "integer" | "decimal";
4267
+ value: string;
4268
+ kind: "exact_number";
4269
+ } | null;
4270
+ kind: "comparison";
4271
+ operator: "eq" | "neq" | "gt" | "gte" | "lt" | "lte";
4272
+ column: {
4273
+ kind: "field";
4274
+ fieldId: string;
4275
+ } | {
4276
+ kind: "pivot";
4277
+ metricId: string;
4278
+ members: {
4279
+ value: string | null;
4280
+ fieldId: string;
4281
+ }[];
4282
+ } | {
4283
+ kind: "result";
4284
+ key: string;
4285
+ } | {
4286
+ kind: "sqlKpiValue";
4287
+ } | {
4288
+ kind: "matrixMeasure";
4289
+ measureId: string;
4290
+ } | {
4291
+ kind: "matrixLevel";
4292
+ levelId: string;
4293
+ };
4294
+ } | {
4295
+ kind: "between";
4296
+ min: string | number | boolean | {
4297
+ type: "integer" | "decimal";
4298
+ value: string;
4299
+ kind: "exact_number";
4300
+ } | null;
4301
+ max: string | number | boolean | {
4302
+ type: "integer" | "decimal";
4303
+ value: string;
4304
+ kind: "exact_number";
4305
+ } | null;
4306
+ column: {
4307
+ kind: "field";
4308
+ fieldId: string;
4309
+ } | {
4310
+ kind: "pivot";
4311
+ metricId: string;
4312
+ members: {
4313
+ value: string | null;
4314
+ fieldId: string;
4315
+ }[];
4316
+ } | {
4317
+ kind: "result";
4318
+ key: string;
4319
+ } | {
4320
+ kind: "sqlKpiValue";
4321
+ } | {
4322
+ kind: "matrixMeasure";
4323
+ measureId: string;
4324
+ } | {
4325
+ kind: "matrixLevel";
4326
+ levelId: string;
4327
+ };
4328
+ inclusive?: boolean | undefined;
4329
+ } | {
4330
+ kind: "blank";
4331
+ column: {
4332
+ kind: "field";
4333
+ fieldId: string;
4334
+ } | {
4335
+ kind: "pivot";
4336
+ metricId: string;
4337
+ members: {
4338
+ value: string | null;
4339
+ fieldId: string;
4340
+ }[];
4341
+ } | {
4342
+ kind: "result";
4343
+ key: string;
4344
+ } | {
4345
+ kind: "sqlKpiValue";
4346
+ } | {
4347
+ kind: "matrixMeasure";
4348
+ measureId: string;
4349
+ } | {
4350
+ kind: "matrixLevel";
4351
+ levelId: string;
4352
+ };
4353
+ isBlank: boolean;
4354
+ } | {
4355
+ value: string;
4356
+ kind: "contains";
4357
+ column: {
4358
+ kind: "field";
4359
+ fieldId: string;
4360
+ } | {
4361
+ kind: "pivot";
4362
+ metricId: string;
4363
+ members: {
4364
+ value: string | null;
4365
+ fieldId: string;
4366
+ }[];
4367
+ } | {
4368
+ kind: "result";
4369
+ key: string;
4370
+ } | {
4371
+ kind: "sqlKpiValue";
4372
+ } | {
4373
+ kind: "matrixMeasure";
4374
+ measureId: string;
4375
+ } | {
4376
+ kind: "matrixLevel";
4377
+ levelId: string;
4378
+ };
4379
+ exact?: boolean | undefined;
4380
+ caseSensitive?: boolean | undefined;
4381
+ } | {
4382
+ kind: "topBottom";
4383
+ count: number;
4384
+ direction: "top" | "bottom";
4385
+ column: {
4386
+ kind: "field";
4387
+ fieldId: string;
4388
+ } | {
4389
+ kind: "pivot";
4390
+ metricId: string;
4391
+ members: {
4392
+ value: string | null;
4393
+ fieldId: string;
4394
+ }[];
4395
+ } | {
4396
+ kind: "result";
4397
+ key: string;
4398
+ } | {
4399
+ kind: "sqlKpiValue";
4400
+ } | {
4401
+ kind: "matrixMeasure";
4402
+ measureId: string;
4403
+ } | {
4404
+ kind: "matrixLevel";
4405
+ levelId: string;
4406
+ };
4407
+ } | {
4408
+ kind: "colorScale";
4409
+ column: {
4410
+ kind: "field";
4411
+ fieldId: string;
4412
+ } | {
4413
+ kind: "pivot";
4414
+ metricId: string;
4415
+ members: {
4416
+ value: string | null;
4417
+ fieldId: string;
4418
+ }[];
4419
+ } | {
4420
+ kind: "result";
4421
+ key: string;
4422
+ } | {
4423
+ kind: "sqlKpiValue";
4424
+ } | {
4425
+ kind: "matrixMeasure";
4426
+ measureId: string;
4427
+ } | {
4428
+ kind: "matrixLevel";
4429
+ levelId: string;
4430
+ };
4431
+ colors: {
4432
+ min: string;
4433
+ max: string;
4434
+ mid?: string | undefined;
4435
+ };
4436
+ range: "auto" | "manual";
4437
+ min?: number | undefined;
4438
+ max?: number | undefined;
4439
+ mid?: number | undefined;
4440
+ } | {
4441
+ kind: "dataBar";
4442
+ column: {
4443
+ kind: "field";
4444
+ fieldId: string;
4445
+ } | {
4446
+ kind: "pivot";
4447
+ metricId: string;
4448
+ members: {
4449
+ value: string | null;
4450
+ fieldId: string;
4451
+ }[];
4452
+ } | {
4453
+ kind: "result";
4454
+ key: string;
4455
+ } | {
4456
+ kind: "sqlKpiValue";
4457
+ } | {
4458
+ kind: "matrixMeasure";
4459
+ measureId: string;
4460
+ } | {
4461
+ kind: "matrixLevel";
4462
+ levelId: string;
4463
+ };
4464
+ range: "auto" | "manual";
4465
+ color: string;
4466
+ min?: number | undefined;
4467
+ max?: number | undefined;
4468
+ showValue?: boolean | undefined;
4469
+ };
4470
+ name?: string | undefined;
4471
+ style?: {
4472
+ dataBar?: {
4473
+ color: string;
4474
+ showValue: boolean;
4475
+ } | undefined;
4476
+ fontWeight?: "bold" | "medium" | "normal" | "semibold" | undefined;
4477
+ backgroundColor?: string | undefined;
4478
+ textColor?: string | undefined;
4479
+ italic?: boolean | undefined;
4480
+ textDecoration?: "none" | "underline" | "line-through" | undefined;
4481
+ icon?: "warning" | "arrowUp" | "arrowDown" | "check" | "x" | undefined;
4482
+ } | undefined;
4483
+ enabled?: boolean | undefined;
4484
+ }[];
4485
+ }>;
4486
+ export type ConditionalRuleIssue = {
4487
+ ruleId: string;
4488
+ /** Within the rule, e.g. `condition.column` or `target.columns[1]`. */
4489
+ path: string;
4490
+ message: string;
4491
+ };
4492
+ type RefKind = CardColumnRef['kind'];
4493
+ /** The `CardColumnRef` kinds a card's rules accept (the contract's table). */
4494
+ export declare function acceptedColumnRefKinds(card: TCard): readonly RefKind[];
4495
+ /** Why a reference names no column on this card, or undefined when it names one. */
4496
+ export declare function columnRefIssue(card: TCard, ref: CardColumnRef): string | undefined;
4497
+ /** Every rule issue on a card; empty when its rules fit it. */
4498
+ export declare function checkConditionalRuleColumns(card: TCard): ConditionalRuleIssue[];
4499
+ export {};