react-semaphor 0.1.561 → 0.1.562
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/analytics-protocol/index.js +452 -429
- package/dist/assistant-context/index.js +1 -1
- package/dist/assistant-protocol/index.js +5 -5
- package/dist/brand-studio/index.js +9 -9
- package/dist/briefings/index.js +5 -5
- package/dist/chunks/{analytics-base-schemas-CB3oFAXk.js → analytics-base-schemas-BaIQrEzX.js} +139 -134
- package/dist/chunks/{assistant-chat-DiVHY3Hw.js → assistant-chat-R_yT8xH4.js} +104 -104
- package/dist/chunks/{bookmark-impact-CR09dpkn.js → bookmark-impact-D4Kl4amw.js} +2 -2
- package/dist/chunks/{bookmark-state-BusLpkb7.js → bookmark-state-CWeoGbrx.js} +25 -25
- package/dist/chunks/{braces-u8VorWJc.js → braces-DzgoQC64.js} +1 -1
- package/dist/chunks/{comparison-window-caption-DDsIWJYT.js → comparison-window-caption-D1EUXzaR.js} +562 -437
- package/dist/chunks/{context-TUjw9eqr.js → context-R31TSL5V.js} +1 -1
- package/dist/chunks/{dashboard-BRdZBPqr.js → dashboard-Bp1y5oun.js} +1 -1
- package/dist/chunks/{dashboard-briefing-launcher-CgvTLndW.js → dashboard-briefing-launcher-S5FB3aUW.js} +155 -154
- package/dist/chunks/{dashboard-controls-B4vfSzTF.js → dashboard-controls-CfC_6Ztn.js} +970 -968
- package/dist/chunks/{dashboard-json-Y3MF59g7.js → dashboard-json-gYZT7ZQY.js} +5 -5
- package/dist/chunks/dates-DFY7Gfss.js +91 -0
- package/dist/chunks/{edit-dashboard-visual-DwjZcxj-.js → edit-dashboard-visual-u7OI_g8Q.js} +4636 -4681
- package/dist/chunks/{filter-reach-copy-bijwf_-b.js → filter-reach-copy-CvV7W5dd.js} +1470 -1101
- package/dist/chunks/{filter-value-text-DFnhwuEW.js → filter-value-text-CPwFkrMz.js} +11 -10
- package/dist/chunks/{global-date-filter-utils-BXgCpvQM.js → global-date-filter-utils-N1kcsOFE.js} +8997 -7417
- package/dist/chunks/{index-ClwbY3BL.js → index-CNGkfUp4.js} +91 -85
- package/dist/chunks/{layout-grid-CtvCBfOm.js → layout-grid-BM65viQh.js} +1 -1
- package/dist/chunks/{list-filter-BklYgciR.js → list-filter-BoeLBfL3.js} +1 -1
- package/dist/chunks/{matrix-analytical-definition-pU51-JmY.js → matrix-analytical-definition-hEucouWM.js} +4 -4
- package/dist/chunks/{matrix-card-CUorIB7Q.js → matrix-card-CCh9JjP1.js} +3 -3
- package/dist/chunks/{matrix-member-presentation-Df5UgCGN.js → matrix-member-presentation-DsAUbuoL.js} +1 -1
- package/dist/chunks/{matrix-operation-contract-BSiGEXVC.js → matrix-operation-contract-DsLdFdSa.js} +339 -330
- package/dist/chunks/{metric-comparison-95aC0uEO.js → metric-comparison-Bnso1cm1.js} +2 -2
- package/dist/chunks/{model-change-B5wQhg5G.js → model-change-T1cRkh3m.js} +1 -1
- package/dist/chunks/{palette-DTnMhipt.js → palette-p1XSJFgB.js} +1 -1
- package/dist/chunks/{pivot-result-contract-expectations-Bo-86vwS.js → pivot-result-contract-expectations-B53jqszr.js} +5 -5
- package/dist/chunks/{pivot-result-identity-olvXJoB9.js → pivot-result-identity-Dq5jm-EC.js} +1 -1
- package/dist/chunks/{zoned-wall-clock-CGLVI40Q.js → raw-temporal-value-Bqz8wc7L.js} +97 -46
- package/dist/chunks/{report-preferences-dialog-C2YUIwKG.js → report-preferences-dialog-C4RAR8u5.js} +68 -63
- package/dist/chunks/{report-runtime-context-DoIUr3MP.js → report-runtime-context-BITkNSDa.js} +2 -2
- package/dist/chunks/{resolve-dashboard-input-context-q_iiNXE1.js → resolve-dashboard-input-context-DaDrZGuA.js} +3455 -1744
- package/dist/chunks/{save-DH4RyrnG.js → save-CHV1B1fL.js} +1 -1
- package/dist/chunks/{saved-dashboard-context-8jqfI7hI.js → saved-dashboard-context-DFYBrE6O.js} +94 -95
- package/dist/chunks/{selection-filter-compiler-BKXmyLrS.js → selection-filter-compiler-CUDRnUxc.js} +19 -18
- package/dist/chunks/{selection-reducer-CV7K4FI6.js → selection-reducer-Bz5aywT4.js} +1 -1
- package/dist/chunks/{semaphor-ready-indicator-E2XWyibu.js → semaphor-ready-indicator-Cfuafnem.js} +37067 -38400
- package/dist/chunks/{shelf-drop-preview-context-C29EUzDp.js → shelf-drop-preview-context-BR2GEYog.js} +81 -82
- package/dist/chunks/{source-entity-resolution-BXI3nQ5Z.js → source-entity-resolution-DdDVXFB8.js} +6 -6
- package/dist/chunks/{switch-balDSHc7.js → switch-BW4yXSYs.js} +3 -3
- package/dist/chunks/{table-export-sheet-CK8tvh4d.js → table-export-sheet-bSXxGn-v.js} +1 -1
- package/dist/chunks/{temporal-input-presentation-B77JsAzU.js → temporal-input-presentation-sk9gqLi6.js} +699 -741
- package/dist/chunks/{token-types-DhYH5YKb.js → token-types-BUK06hU2.js} +1 -1
- package/dist/chunks/{upload-Ufj8vjyn.js → upload-BnmuyPqW.js} +1 -1
- package/dist/chunks/{use-create-flow-overlay-state-9WsnzEO5.js → use-create-flow-overlay-state-DyzhWvRJ.js} +6 -6
- package/dist/chunks/{validators-BtaCFIEB.js → validators-BIM0FE31.js} +764 -885
- package/dist/dashboard/index.js +2 -2
- package/dist/dashboard-authoring/index.js +2278 -3030
- package/dist/data-app-sdk/index.js +43 -43
- package/dist/data-app-sdk-adapters/index.js +3 -3
- package/dist/data-app-sdk-validation/index.js +22 -22
- package/dist/format-utils/index.js +215 -209
- package/dist/index.js +225 -224
- package/dist/report-runtime-context/index.js +2 -2
- package/dist/style.css +1 -1
- package/dist/surfboard/index.js +2 -2
- package/dist/types/briefings/attachment-outcomes.d.ts +1 -1
- package/dist/types/components/dashboard/dashboard-create-dialog.d.ts +23 -0
- package/dist/types/components/index.d.ts +1 -2
- package/dist/types/components/surfboard/filter/types.d.ts +3 -1
- package/dist/types/index.js +5 -5
- package/dist/types/lib/formatters/raw-temporal-presentation.d.ts +59 -2
- package/dist/types/lib/interactions/get-click-context-from-matrix.d.ts +5 -0
- package/dist/types/lib/interactions/get-click-context-from-table.d.ts +45 -0
- package/dist/types/lib/print/print-inputs.d.ts +2 -1
- package/dist/types/lib/query-context/assemble-card-query.d.ts +2 -0
- package/dist/types/lib/query-context/build-dashboard-execution-snapshot.d.ts +5 -0
- package/dist/types/lib/selection/selection-from-click-context.d.ts +41 -0
- package/dist/types/lib/types/common-types.d.ts +6 -0
- package/dist/types/lib/types/explorer-types.d.ts +7 -1
- package/dist/types/lib/types/interaction-types.d.ts +3 -1
- package/dist/types/lib/types/token-types.d.ts +0 -1
- package/dist/types/shared/analytics-protocol/analytics-base-schemas.d.ts +3 -1
- package/dist/types/shared/analytics-protocol/contracts.d.ts +9 -40
- package/dist/types/shared/analytics-protocol/selection-contract.d.ts +12 -2
- package/dist/types/shared/analytics-protocol/validators.d.ts +1 -2
- package/dist/types/shared/assistant-protocol/context.d.ts +8 -8
- package/dist/types/shared/dashboard-authoring/card-formats/sql-date-pattern.d.ts +7 -1
- package/dist/types/shared/dashboard-authoring/card-settings/card-display-write.d.ts +24 -0
- package/dist/types/shared/dashboard-authoring/card-settings/card-kinds.d.ts +1 -1
- package/dist/types/shared/dashboard-authoring/card-settings/column-polarity-write.d.ts +5 -0
- package/dist/types/shared/dashboard-authoring/card-settings/index.d.ts +4 -2
- package/dist/types/shared/dashboard-authoring/card-settings/inputs.d.ts +15 -0
- package/dist/types/shared/dashboard-authoring/card-settings/resolved.d.ts +12 -1
- package/dist/types/shared/dashboard-authoring/card-settings/views.d.ts +5 -3
- package/dist/types/shared/dashboard-authoring/changes/dashboard-change.d.ts +3230 -4658
- package/dist/types/shared/dashboard-authoring/changes/diagnostics.d.ts +24 -2
- package/dist/types/shared/dashboard-authoring/changes/field-ref.d.ts +91 -0
- package/dist/types/shared/dashboard-authoring/changes/read-card-query.d.ts +7 -0
- package/dist/types/shared/dashboard-authoring/changes/resolve-dashboard-changes.d.ts +27 -1
- package/dist/types/shared/dashboard-authoring/changes/resolve-dashboard-create.d.ts +26 -0
- package/dist/types/shared/dashboard-authoring/click-to-filter-settings.d.ts +2 -1
- package/dist/types/shared/dashboard-authoring/conditional-formatting/schema.d.ts +10 -10
- package/dist/types/shared/dashboard-authoring/detail-date-presentation.d.ts +9 -0
- package/dist/types/shared/dashboard-authoring/index.d.ts +8 -6
- package/dist/types/shared/dashboard-authoring/measure-calculations/apply.d.ts +8 -0
- package/dist/types/shared/dashboard-authoring/measure-calculations/comparison.d.ts +16 -0
- package/dist/types/shared/dashboard-authoring/measure-calculations/dates.d.ts +41 -0
- package/dist/types/shared/dashboard-authoring/measure-calculations/index.d.ts +17 -0
- package/dist/types/shared/dashboard-authoring/measure-calculations/options.d.ts +63 -0
- package/dist/types/shared/dashboard-authoring/measure-calculations/read.d.ts +16 -0
- package/dist/types/shared/dashboard-authoring/measure-calculations/resolve.d.ts +79 -0
- package/dist/types/shared/dashboard-authoring/measure-calculations/schemas.d.ts +934 -0
- package/dist/types/shared/dashboard-authoring/measure-calculations/sentences.d.ts +4 -0
- package/dist/types/shared/dashboard-authoring/measure-calculations/set.d.ts +11 -0
- package/dist/types/shared/dashboard-authoring/measure-calculations/transform.d.ts +63 -0
- package/dist/types/shared/dashboard-authoring/measure-calculations/window-transforms.d.ts +60 -0
- package/dist/types/shared/dashboard-authoring/new-card.d.ts +12 -1
- package/dist/types/shared/dashboard-authoring/operations/apply-dashboard-operations.d.ts +2 -1
- package/dist/types/shared/dashboard-authoring/operations/operation-sentences.d.ts +46 -0
- package/dist/types/shared/dashboard-authoring/operations/operation-types.d.ts +52 -2
- package/dist/types/shared/dashboard-authoring/outline/outline-dashboard.d.ts +13 -1
- package/dist/types/shared/dashboard-authoring/text-card-words/blocks.d.ts +58 -0
- package/dist/types/shared/dashboard-authoring/text-card-words/index.d.ts +55 -0
- package/dist/types/shared/dashboard-authoring/text-card-words/rich-content.d.ts +18 -0
- package/dist/types/shared/format-utils/document-print.d.ts +82 -0
- package/dist/types/shared/format-utils/index.d.ts +1 -0
- package/dist/types/shared/format-utils/raw-temporal.d.ts +2 -7
- package/dist/types/shared/temporal/index.d.ts +1 -0
- package/dist/types/shared/temporal/raw-temporal-equality.d.ts +19 -0
- package/dist/types/shared/temporal/raw-temporal-value.d.ts +29 -0
- package/dist/types/shared/temporal/zoned-wall-clock.d.ts +6 -0
- package/package.json +1 -1
- package/dist/chunks/custom-visual-inputs-DfolidZ9.js +0 -292
- package/dist/chunks/document-dashboard-inputs-CvBbFTUA.js +0 -1718
- package/dist/types/components/dashboard/ai-dashboard-create-dialog.d.ts +0 -38
- package/dist/types/components/dashboard/dashboard-create-template.d.ts +0 -10
- package/dist/types/lib/hooks/use-dashboard-authoring.d.ts +0 -49
- package/dist/types/shared/dashboard-authoring/artifact-compiler.d.ts +0 -6
- package/dist/types/shared/dashboard-authoring/contracts.d.ts +0 -106
- package/dist/types/shared/dashboard-authoring/protocol-adapter.d.ts +0 -7
- package/dist/types/shared/dashboard-authoring/source-matching.d.ts +0 -34
- package/dist/types/shared/dashboard-authoring/validators.d.ts +0 -2
|
@@ -0,0 +1,934 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/** A comparison of the measure's own, in the stored spec's names: what `semaphor_analyze` takes. */
|
|
3
|
+
export declare const explicitComparisonSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
4
|
+
kind: z.ZodLiteral<"previous_period">;
|
|
5
|
+
offsetPeriods: z.ZodOptional<z.ZodNumber>;
|
|
6
|
+
alignment: z.ZodOptional<z.ZodEnum<["calendar", "weekday"]>>;
|
|
7
|
+
toDate: z.ZodOptional<z.ZodBoolean>;
|
|
8
|
+
}, "strict", z.ZodTypeAny, {
|
|
9
|
+
kind: "previous_period";
|
|
10
|
+
toDate?: boolean | undefined;
|
|
11
|
+
alignment?: "calendar" | "weekday" | undefined;
|
|
12
|
+
offsetPeriods?: number | undefined;
|
|
13
|
+
}, {
|
|
14
|
+
kind: "previous_period";
|
|
15
|
+
toDate?: boolean | undefined;
|
|
16
|
+
alignment?: "calendar" | "weekday" | undefined;
|
|
17
|
+
offsetPeriods?: number | undefined;
|
|
18
|
+
}>, z.ZodObject<{
|
|
19
|
+
kind: z.ZodLiteral<"previous_year">;
|
|
20
|
+
offsetYears: z.ZodOptional<z.ZodNumber>;
|
|
21
|
+
alignment: z.ZodOptional<z.ZodEnum<["calendar", "weekday"]>>;
|
|
22
|
+
toDate: z.ZodOptional<z.ZodBoolean>;
|
|
23
|
+
}, "strict", z.ZodTypeAny, {
|
|
24
|
+
kind: "previous_year";
|
|
25
|
+
toDate?: boolean | undefined;
|
|
26
|
+
alignment?: "calendar" | "weekday" | undefined;
|
|
27
|
+
offsetYears?: number | undefined;
|
|
28
|
+
}, {
|
|
29
|
+
kind: "previous_year";
|
|
30
|
+
toDate?: boolean | undefined;
|
|
31
|
+
alignment?: "calendar" | "weekday" | undefined;
|
|
32
|
+
offsetYears?: number | undefined;
|
|
33
|
+
}>, z.ZodObject<{
|
|
34
|
+
kind: z.ZodLiteral<"target">;
|
|
35
|
+
targetValue: z.ZodNumber;
|
|
36
|
+
}, "strict", z.ZodTypeAny, {
|
|
37
|
+
kind: "target";
|
|
38
|
+
targetValue: number;
|
|
39
|
+
}, {
|
|
40
|
+
kind: "target";
|
|
41
|
+
targetValue: number;
|
|
42
|
+
}>]>;
|
|
43
|
+
/** A card measure's comparison: its own, none (`off`), or the dashboard's (`inherit`). */
|
|
44
|
+
declare const measureComparisonUnion: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
45
|
+
kind: z.ZodLiteral<"inherit">;
|
|
46
|
+
}, "strict", z.ZodTypeAny, {
|
|
47
|
+
kind: "inherit";
|
|
48
|
+
}, {
|
|
49
|
+
kind: "inherit";
|
|
50
|
+
}>, z.ZodObject<{
|
|
51
|
+
kind: z.ZodLiteral<"off">;
|
|
52
|
+
}, "strict", z.ZodTypeAny, {
|
|
53
|
+
kind: "off";
|
|
54
|
+
}, {
|
|
55
|
+
kind: "off";
|
|
56
|
+
}>, z.ZodObject<{
|
|
57
|
+
kind: z.ZodLiteral<"previous_period">;
|
|
58
|
+
offsetPeriods: z.ZodOptional<z.ZodNumber>;
|
|
59
|
+
alignment: z.ZodOptional<z.ZodEnum<["calendar", "weekday"]>>;
|
|
60
|
+
toDate: z.ZodOptional<z.ZodBoolean>;
|
|
61
|
+
}, "strict", z.ZodTypeAny, {
|
|
62
|
+
kind: "previous_period";
|
|
63
|
+
toDate?: boolean | undefined;
|
|
64
|
+
alignment?: "calendar" | "weekday" | undefined;
|
|
65
|
+
offsetPeriods?: number | undefined;
|
|
66
|
+
}, {
|
|
67
|
+
kind: "previous_period";
|
|
68
|
+
toDate?: boolean | undefined;
|
|
69
|
+
alignment?: "calendar" | "weekday" | undefined;
|
|
70
|
+
offsetPeriods?: number | undefined;
|
|
71
|
+
}>, z.ZodObject<{
|
|
72
|
+
kind: z.ZodLiteral<"previous_year">;
|
|
73
|
+
offsetYears: z.ZodOptional<z.ZodNumber>;
|
|
74
|
+
alignment: z.ZodOptional<z.ZodEnum<["calendar", "weekday"]>>;
|
|
75
|
+
toDate: z.ZodOptional<z.ZodBoolean>;
|
|
76
|
+
}, "strict", z.ZodTypeAny, {
|
|
77
|
+
kind: "previous_year";
|
|
78
|
+
toDate?: boolean | undefined;
|
|
79
|
+
alignment?: "calendar" | "weekday" | undefined;
|
|
80
|
+
offsetYears?: number | undefined;
|
|
81
|
+
}, {
|
|
82
|
+
kind: "previous_year";
|
|
83
|
+
toDate?: boolean | undefined;
|
|
84
|
+
alignment?: "calendar" | "weekday" | undefined;
|
|
85
|
+
offsetYears?: number | undefined;
|
|
86
|
+
}>, z.ZodObject<{
|
|
87
|
+
kind: z.ZodLiteral<"target">;
|
|
88
|
+
targetValue: z.ZodNumber;
|
|
89
|
+
}, "strict", z.ZodTypeAny, {
|
|
90
|
+
kind: "target";
|
|
91
|
+
targetValue: number;
|
|
92
|
+
}, {
|
|
93
|
+
kind: "target";
|
|
94
|
+
targetValue: number;
|
|
95
|
+
}>]>;
|
|
96
|
+
/** The grouping a transform runs along; `field` is written as the query writes that grouping. */
|
|
97
|
+
export declare const transformOrderSchema: z.ZodObject<{
|
|
98
|
+
field: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
99
|
+
name: z.ZodString;
|
|
100
|
+
label: z.ZodOptional<z.ZodString>;
|
|
101
|
+
datasetName: z.ZodOptional<z.ZodString>;
|
|
102
|
+
datasetId: z.ZodOptional<z.ZodString>;
|
|
103
|
+
connectionId: z.ZodOptional<z.ZodString>;
|
|
104
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
105
|
+
kind: z.ZodLiteral<"semantic">;
|
|
106
|
+
domainId: z.ZodString;
|
|
107
|
+
datasetName: z.ZodString;
|
|
108
|
+
datasetId: z.ZodOptional<z.ZodString>;
|
|
109
|
+
connectionId: z.ZodOptional<z.ZodString>;
|
|
110
|
+
}, "strict", z.ZodTypeAny, {
|
|
111
|
+
kind: "semantic";
|
|
112
|
+
domainId: string;
|
|
113
|
+
datasetName: string;
|
|
114
|
+
datasetId?: string | undefined;
|
|
115
|
+
connectionId?: string | undefined;
|
|
116
|
+
}, {
|
|
117
|
+
kind: "semantic";
|
|
118
|
+
domainId: string;
|
|
119
|
+
datasetName: string;
|
|
120
|
+
datasetId?: string | undefined;
|
|
121
|
+
connectionId?: string | undefined;
|
|
122
|
+
}>>;
|
|
123
|
+
}, "strict", z.ZodTypeAny, {
|
|
124
|
+
name: string;
|
|
125
|
+
datasetName?: string | undefined;
|
|
126
|
+
datasetId?: string | undefined;
|
|
127
|
+
label?: string | undefined;
|
|
128
|
+
connectionId?: string | undefined;
|
|
129
|
+
source?: {
|
|
130
|
+
kind: "semantic";
|
|
131
|
+
domainId: string;
|
|
132
|
+
datasetName: string;
|
|
133
|
+
datasetId?: string | undefined;
|
|
134
|
+
connectionId?: string | undefined;
|
|
135
|
+
} | undefined;
|
|
136
|
+
}, {
|
|
137
|
+
name: string;
|
|
138
|
+
datasetName?: string | undefined;
|
|
139
|
+
datasetId?: string | undefined;
|
|
140
|
+
label?: string | undefined;
|
|
141
|
+
connectionId?: string | undefined;
|
|
142
|
+
source?: {
|
|
143
|
+
kind: "semantic";
|
|
144
|
+
domainId: string;
|
|
145
|
+
datasetName: string;
|
|
146
|
+
datasetId?: string | undefined;
|
|
147
|
+
connectionId?: string | undefined;
|
|
148
|
+
} | undefined;
|
|
149
|
+
}>]>;
|
|
150
|
+
direction: z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
|
|
151
|
+
}, "strict", z.ZodTypeAny, {
|
|
152
|
+
field: string | {
|
|
153
|
+
name: string;
|
|
154
|
+
datasetName?: string | undefined;
|
|
155
|
+
datasetId?: string | undefined;
|
|
156
|
+
label?: string | undefined;
|
|
157
|
+
connectionId?: string | undefined;
|
|
158
|
+
source?: {
|
|
159
|
+
kind: "semantic";
|
|
160
|
+
domainId: string;
|
|
161
|
+
datasetName: string;
|
|
162
|
+
datasetId?: string | undefined;
|
|
163
|
+
connectionId?: string | undefined;
|
|
164
|
+
} | undefined;
|
|
165
|
+
};
|
|
166
|
+
direction?: "asc" | "desc" | undefined;
|
|
167
|
+
}, {
|
|
168
|
+
field: string | {
|
|
169
|
+
name: string;
|
|
170
|
+
datasetName?: string | undefined;
|
|
171
|
+
datasetId?: string | undefined;
|
|
172
|
+
label?: string | undefined;
|
|
173
|
+
connectionId?: string | undefined;
|
|
174
|
+
source?: {
|
|
175
|
+
kind: "semantic";
|
|
176
|
+
domainId: string;
|
|
177
|
+
datasetName: string;
|
|
178
|
+
datasetId?: string | undefined;
|
|
179
|
+
connectionId?: string | undefined;
|
|
180
|
+
} | undefined;
|
|
181
|
+
};
|
|
182
|
+
direction?: "asc" | "desc" | undefined;
|
|
183
|
+
}>;
|
|
184
|
+
/** A measure's table calculation: the four the server runs (RC-D5). */
|
|
185
|
+
declare const measureTransformUnion: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
186
|
+
orderBy: z.ZodOptional<z.ZodObject<{
|
|
187
|
+
field: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
188
|
+
name: z.ZodString;
|
|
189
|
+
label: z.ZodOptional<z.ZodString>;
|
|
190
|
+
datasetName: z.ZodOptional<z.ZodString>;
|
|
191
|
+
datasetId: z.ZodOptional<z.ZodString>;
|
|
192
|
+
connectionId: z.ZodOptional<z.ZodString>;
|
|
193
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
194
|
+
kind: z.ZodLiteral<"semantic">;
|
|
195
|
+
domainId: z.ZodString;
|
|
196
|
+
datasetName: z.ZodString;
|
|
197
|
+
datasetId: z.ZodOptional<z.ZodString>;
|
|
198
|
+
connectionId: z.ZodOptional<z.ZodString>;
|
|
199
|
+
}, "strict", z.ZodTypeAny, {
|
|
200
|
+
kind: "semantic";
|
|
201
|
+
domainId: string;
|
|
202
|
+
datasetName: string;
|
|
203
|
+
datasetId?: string | undefined;
|
|
204
|
+
connectionId?: string | undefined;
|
|
205
|
+
}, {
|
|
206
|
+
kind: "semantic";
|
|
207
|
+
domainId: string;
|
|
208
|
+
datasetName: string;
|
|
209
|
+
datasetId?: string | undefined;
|
|
210
|
+
connectionId?: string | undefined;
|
|
211
|
+
}>>;
|
|
212
|
+
}, "strict", z.ZodTypeAny, {
|
|
213
|
+
name: string;
|
|
214
|
+
datasetName?: string | undefined;
|
|
215
|
+
datasetId?: string | undefined;
|
|
216
|
+
label?: string | undefined;
|
|
217
|
+
connectionId?: string | undefined;
|
|
218
|
+
source?: {
|
|
219
|
+
kind: "semantic";
|
|
220
|
+
domainId: string;
|
|
221
|
+
datasetName: string;
|
|
222
|
+
datasetId?: string | undefined;
|
|
223
|
+
connectionId?: string | undefined;
|
|
224
|
+
} | undefined;
|
|
225
|
+
}, {
|
|
226
|
+
name: string;
|
|
227
|
+
datasetName?: string | undefined;
|
|
228
|
+
datasetId?: string | undefined;
|
|
229
|
+
label?: string | undefined;
|
|
230
|
+
connectionId?: string | undefined;
|
|
231
|
+
source?: {
|
|
232
|
+
kind: "semantic";
|
|
233
|
+
domainId: string;
|
|
234
|
+
datasetName: string;
|
|
235
|
+
datasetId?: string | undefined;
|
|
236
|
+
connectionId?: string | undefined;
|
|
237
|
+
} | undefined;
|
|
238
|
+
}>]>;
|
|
239
|
+
direction: z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
|
|
240
|
+
}, "strict", z.ZodTypeAny, {
|
|
241
|
+
field: string | {
|
|
242
|
+
name: string;
|
|
243
|
+
datasetName?: string | undefined;
|
|
244
|
+
datasetId?: string | undefined;
|
|
245
|
+
label?: string | undefined;
|
|
246
|
+
connectionId?: string | undefined;
|
|
247
|
+
source?: {
|
|
248
|
+
kind: "semantic";
|
|
249
|
+
domainId: string;
|
|
250
|
+
datasetName: string;
|
|
251
|
+
datasetId?: string | undefined;
|
|
252
|
+
connectionId?: string | undefined;
|
|
253
|
+
} | undefined;
|
|
254
|
+
};
|
|
255
|
+
direction?: "asc" | "desc" | undefined;
|
|
256
|
+
}, {
|
|
257
|
+
field: string | {
|
|
258
|
+
name: string;
|
|
259
|
+
datasetName?: string | undefined;
|
|
260
|
+
datasetId?: string | undefined;
|
|
261
|
+
label?: string | undefined;
|
|
262
|
+
connectionId?: string | undefined;
|
|
263
|
+
source?: {
|
|
264
|
+
kind: "semantic";
|
|
265
|
+
domainId: string;
|
|
266
|
+
datasetName: string;
|
|
267
|
+
datasetId?: string | undefined;
|
|
268
|
+
connectionId?: string | undefined;
|
|
269
|
+
} | undefined;
|
|
270
|
+
};
|
|
271
|
+
direction?: "asc" | "desc" | undefined;
|
|
272
|
+
}>>;
|
|
273
|
+
resetBy: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
274
|
+
name: z.ZodString;
|
|
275
|
+
label: z.ZodOptional<z.ZodString>;
|
|
276
|
+
datasetName: z.ZodOptional<z.ZodString>;
|
|
277
|
+
datasetId: z.ZodOptional<z.ZodString>;
|
|
278
|
+
connectionId: z.ZodOptional<z.ZodString>;
|
|
279
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
280
|
+
kind: z.ZodLiteral<"semantic">;
|
|
281
|
+
domainId: z.ZodString;
|
|
282
|
+
datasetName: z.ZodString;
|
|
283
|
+
datasetId: z.ZodOptional<z.ZodString>;
|
|
284
|
+
connectionId: z.ZodOptional<z.ZodString>;
|
|
285
|
+
}, "strict", z.ZodTypeAny, {
|
|
286
|
+
kind: "semantic";
|
|
287
|
+
domainId: string;
|
|
288
|
+
datasetName: string;
|
|
289
|
+
datasetId?: string | undefined;
|
|
290
|
+
connectionId?: string | undefined;
|
|
291
|
+
}, {
|
|
292
|
+
kind: "semantic";
|
|
293
|
+
domainId: string;
|
|
294
|
+
datasetName: string;
|
|
295
|
+
datasetId?: string | undefined;
|
|
296
|
+
connectionId?: string | undefined;
|
|
297
|
+
}>>;
|
|
298
|
+
}, "strict", z.ZodTypeAny, {
|
|
299
|
+
name: string;
|
|
300
|
+
datasetName?: string | undefined;
|
|
301
|
+
datasetId?: string | undefined;
|
|
302
|
+
label?: string | undefined;
|
|
303
|
+
connectionId?: string | undefined;
|
|
304
|
+
source?: {
|
|
305
|
+
kind: "semantic";
|
|
306
|
+
domainId: string;
|
|
307
|
+
datasetName: string;
|
|
308
|
+
datasetId?: string | undefined;
|
|
309
|
+
connectionId?: string | undefined;
|
|
310
|
+
} | undefined;
|
|
311
|
+
}, {
|
|
312
|
+
name: string;
|
|
313
|
+
datasetName?: string | undefined;
|
|
314
|
+
datasetId?: string | undefined;
|
|
315
|
+
label?: string | undefined;
|
|
316
|
+
connectionId?: string | undefined;
|
|
317
|
+
source?: {
|
|
318
|
+
kind: "semantic";
|
|
319
|
+
domainId: string;
|
|
320
|
+
datasetName: string;
|
|
321
|
+
datasetId?: string | undefined;
|
|
322
|
+
connectionId?: string | undefined;
|
|
323
|
+
} | undefined;
|
|
324
|
+
}>]>, "many">>;
|
|
325
|
+
kind: z.ZodLiteral<"running_total">;
|
|
326
|
+
}, "strict", z.ZodTypeAny, {
|
|
327
|
+
kind: "running_total";
|
|
328
|
+
orderBy?: {
|
|
329
|
+
field: string | {
|
|
330
|
+
name: string;
|
|
331
|
+
datasetName?: string | undefined;
|
|
332
|
+
datasetId?: string | undefined;
|
|
333
|
+
label?: string | undefined;
|
|
334
|
+
connectionId?: string | undefined;
|
|
335
|
+
source?: {
|
|
336
|
+
kind: "semantic";
|
|
337
|
+
domainId: string;
|
|
338
|
+
datasetName: string;
|
|
339
|
+
datasetId?: string | undefined;
|
|
340
|
+
connectionId?: string | undefined;
|
|
341
|
+
} | undefined;
|
|
342
|
+
};
|
|
343
|
+
direction?: "asc" | "desc" | undefined;
|
|
344
|
+
} | undefined;
|
|
345
|
+
resetBy?: (string | {
|
|
346
|
+
name: string;
|
|
347
|
+
datasetName?: string | undefined;
|
|
348
|
+
datasetId?: string | undefined;
|
|
349
|
+
label?: string | undefined;
|
|
350
|
+
connectionId?: string | undefined;
|
|
351
|
+
source?: {
|
|
352
|
+
kind: "semantic";
|
|
353
|
+
domainId: string;
|
|
354
|
+
datasetName: string;
|
|
355
|
+
datasetId?: string | undefined;
|
|
356
|
+
connectionId?: string | undefined;
|
|
357
|
+
} | undefined;
|
|
358
|
+
})[] | undefined;
|
|
359
|
+
}, {
|
|
360
|
+
kind: "running_total";
|
|
361
|
+
orderBy?: {
|
|
362
|
+
field: string | {
|
|
363
|
+
name: string;
|
|
364
|
+
datasetName?: string | undefined;
|
|
365
|
+
datasetId?: string | undefined;
|
|
366
|
+
label?: string | undefined;
|
|
367
|
+
connectionId?: string | undefined;
|
|
368
|
+
source?: {
|
|
369
|
+
kind: "semantic";
|
|
370
|
+
domainId: string;
|
|
371
|
+
datasetName: string;
|
|
372
|
+
datasetId?: string | undefined;
|
|
373
|
+
connectionId?: string | undefined;
|
|
374
|
+
} | undefined;
|
|
375
|
+
};
|
|
376
|
+
direction?: "asc" | "desc" | undefined;
|
|
377
|
+
} | undefined;
|
|
378
|
+
resetBy?: (string | {
|
|
379
|
+
name: string;
|
|
380
|
+
datasetName?: string | undefined;
|
|
381
|
+
datasetId?: string | undefined;
|
|
382
|
+
label?: string | undefined;
|
|
383
|
+
connectionId?: string | undefined;
|
|
384
|
+
source?: {
|
|
385
|
+
kind: "semantic";
|
|
386
|
+
domainId: string;
|
|
387
|
+
datasetName: string;
|
|
388
|
+
datasetId?: string | undefined;
|
|
389
|
+
connectionId?: string | undefined;
|
|
390
|
+
} | undefined;
|
|
391
|
+
})[] | undefined;
|
|
392
|
+
}>, z.ZodObject<{
|
|
393
|
+
window: z.ZodOptional<z.ZodNumber>;
|
|
394
|
+
minPeriods: z.ZodOptional<z.ZodNumber>;
|
|
395
|
+
orderBy: z.ZodOptional<z.ZodObject<{
|
|
396
|
+
field: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
397
|
+
name: z.ZodString;
|
|
398
|
+
label: z.ZodOptional<z.ZodString>;
|
|
399
|
+
datasetName: z.ZodOptional<z.ZodString>;
|
|
400
|
+
datasetId: z.ZodOptional<z.ZodString>;
|
|
401
|
+
connectionId: z.ZodOptional<z.ZodString>;
|
|
402
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
403
|
+
kind: z.ZodLiteral<"semantic">;
|
|
404
|
+
domainId: z.ZodString;
|
|
405
|
+
datasetName: z.ZodString;
|
|
406
|
+
datasetId: z.ZodOptional<z.ZodString>;
|
|
407
|
+
connectionId: z.ZodOptional<z.ZodString>;
|
|
408
|
+
}, "strict", z.ZodTypeAny, {
|
|
409
|
+
kind: "semantic";
|
|
410
|
+
domainId: string;
|
|
411
|
+
datasetName: string;
|
|
412
|
+
datasetId?: string | undefined;
|
|
413
|
+
connectionId?: string | undefined;
|
|
414
|
+
}, {
|
|
415
|
+
kind: "semantic";
|
|
416
|
+
domainId: string;
|
|
417
|
+
datasetName: string;
|
|
418
|
+
datasetId?: string | undefined;
|
|
419
|
+
connectionId?: string | undefined;
|
|
420
|
+
}>>;
|
|
421
|
+
}, "strict", z.ZodTypeAny, {
|
|
422
|
+
name: string;
|
|
423
|
+
datasetName?: string | undefined;
|
|
424
|
+
datasetId?: string | undefined;
|
|
425
|
+
label?: string | undefined;
|
|
426
|
+
connectionId?: string | undefined;
|
|
427
|
+
source?: {
|
|
428
|
+
kind: "semantic";
|
|
429
|
+
domainId: string;
|
|
430
|
+
datasetName: string;
|
|
431
|
+
datasetId?: string | undefined;
|
|
432
|
+
connectionId?: string | undefined;
|
|
433
|
+
} | undefined;
|
|
434
|
+
}, {
|
|
435
|
+
name: string;
|
|
436
|
+
datasetName?: string | undefined;
|
|
437
|
+
datasetId?: string | undefined;
|
|
438
|
+
label?: string | undefined;
|
|
439
|
+
connectionId?: string | undefined;
|
|
440
|
+
source?: {
|
|
441
|
+
kind: "semantic";
|
|
442
|
+
domainId: string;
|
|
443
|
+
datasetName: string;
|
|
444
|
+
datasetId?: string | undefined;
|
|
445
|
+
connectionId?: string | undefined;
|
|
446
|
+
} | undefined;
|
|
447
|
+
}>]>;
|
|
448
|
+
direction: z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
|
|
449
|
+
}, "strict", z.ZodTypeAny, {
|
|
450
|
+
field: string | {
|
|
451
|
+
name: string;
|
|
452
|
+
datasetName?: string | undefined;
|
|
453
|
+
datasetId?: string | undefined;
|
|
454
|
+
label?: string | undefined;
|
|
455
|
+
connectionId?: string | undefined;
|
|
456
|
+
source?: {
|
|
457
|
+
kind: "semantic";
|
|
458
|
+
domainId: string;
|
|
459
|
+
datasetName: string;
|
|
460
|
+
datasetId?: string | undefined;
|
|
461
|
+
connectionId?: string | undefined;
|
|
462
|
+
} | undefined;
|
|
463
|
+
};
|
|
464
|
+
direction?: "asc" | "desc" | undefined;
|
|
465
|
+
}, {
|
|
466
|
+
field: string | {
|
|
467
|
+
name: string;
|
|
468
|
+
datasetName?: string | undefined;
|
|
469
|
+
datasetId?: string | undefined;
|
|
470
|
+
label?: string | undefined;
|
|
471
|
+
connectionId?: string | undefined;
|
|
472
|
+
source?: {
|
|
473
|
+
kind: "semantic";
|
|
474
|
+
domainId: string;
|
|
475
|
+
datasetName: string;
|
|
476
|
+
datasetId?: string | undefined;
|
|
477
|
+
connectionId?: string | undefined;
|
|
478
|
+
} | undefined;
|
|
479
|
+
};
|
|
480
|
+
direction?: "asc" | "desc" | undefined;
|
|
481
|
+
}>>;
|
|
482
|
+
resetBy: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
483
|
+
name: z.ZodString;
|
|
484
|
+
label: z.ZodOptional<z.ZodString>;
|
|
485
|
+
datasetName: z.ZodOptional<z.ZodString>;
|
|
486
|
+
datasetId: z.ZodOptional<z.ZodString>;
|
|
487
|
+
connectionId: z.ZodOptional<z.ZodString>;
|
|
488
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
489
|
+
kind: z.ZodLiteral<"semantic">;
|
|
490
|
+
domainId: z.ZodString;
|
|
491
|
+
datasetName: z.ZodString;
|
|
492
|
+
datasetId: z.ZodOptional<z.ZodString>;
|
|
493
|
+
connectionId: z.ZodOptional<z.ZodString>;
|
|
494
|
+
}, "strict", z.ZodTypeAny, {
|
|
495
|
+
kind: "semantic";
|
|
496
|
+
domainId: string;
|
|
497
|
+
datasetName: string;
|
|
498
|
+
datasetId?: string | undefined;
|
|
499
|
+
connectionId?: string | undefined;
|
|
500
|
+
}, {
|
|
501
|
+
kind: "semantic";
|
|
502
|
+
domainId: string;
|
|
503
|
+
datasetName: string;
|
|
504
|
+
datasetId?: string | undefined;
|
|
505
|
+
connectionId?: string | undefined;
|
|
506
|
+
}>>;
|
|
507
|
+
}, "strict", z.ZodTypeAny, {
|
|
508
|
+
name: string;
|
|
509
|
+
datasetName?: string | undefined;
|
|
510
|
+
datasetId?: string | undefined;
|
|
511
|
+
label?: string | undefined;
|
|
512
|
+
connectionId?: string | undefined;
|
|
513
|
+
source?: {
|
|
514
|
+
kind: "semantic";
|
|
515
|
+
domainId: string;
|
|
516
|
+
datasetName: string;
|
|
517
|
+
datasetId?: string | undefined;
|
|
518
|
+
connectionId?: string | undefined;
|
|
519
|
+
} | undefined;
|
|
520
|
+
}, {
|
|
521
|
+
name: string;
|
|
522
|
+
datasetName?: string | undefined;
|
|
523
|
+
datasetId?: string | undefined;
|
|
524
|
+
label?: string | undefined;
|
|
525
|
+
connectionId?: string | undefined;
|
|
526
|
+
source?: {
|
|
527
|
+
kind: "semantic";
|
|
528
|
+
domainId: string;
|
|
529
|
+
datasetName: string;
|
|
530
|
+
datasetId?: string | undefined;
|
|
531
|
+
connectionId?: string | undefined;
|
|
532
|
+
} | undefined;
|
|
533
|
+
}>]>, "many">>;
|
|
534
|
+
kind: z.ZodLiteral<"moving_average">;
|
|
535
|
+
}, "strict", z.ZodTypeAny, {
|
|
536
|
+
kind: "moving_average";
|
|
537
|
+
window?: number | undefined;
|
|
538
|
+
orderBy?: {
|
|
539
|
+
field: string | {
|
|
540
|
+
name: string;
|
|
541
|
+
datasetName?: string | undefined;
|
|
542
|
+
datasetId?: string | undefined;
|
|
543
|
+
label?: string | undefined;
|
|
544
|
+
connectionId?: string | undefined;
|
|
545
|
+
source?: {
|
|
546
|
+
kind: "semantic";
|
|
547
|
+
domainId: string;
|
|
548
|
+
datasetName: string;
|
|
549
|
+
datasetId?: string | undefined;
|
|
550
|
+
connectionId?: string | undefined;
|
|
551
|
+
} | undefined;
|
|
552
|
+
};
|
|
553
|
+
direction?: "asc" | "desc" | undefined;
|
|
554
|
+
} | undefined;
|
|
555
|
+
resetBy?: (string | {
|
|
556
|
+
name: string;
|
|
557
|
+
datasetName?: string | undefined;
|
|
558
|
+
datasetId?: string | undefined;
|
|
559
|
+
label?: string | undefined;
|
|
560
|
+
connectionId?: string | undefined;
|
|
561
|
+
source?: {
|
|
562
|
+
kind: "semantic";
|
|
563
|
+
domainId: string;
|
|
564
|
+
datasetName: string;
|
|
565
|
+
datasetId?: string | undefined;
|
|
566
|
+
connectionId?: string | undefined;
|
|
567
|
+
} | undefined;
|
|
568
|
+
})[] | undefined;
|
|
569
|
+
minPeriods?: number | undefined;
|
|
570
|
+
}, {
|
|
571
|
+
kind: "moving_average";
|
|
572
|
+
window?: number | undefined;
|
|
573
|
+
orderBy?: {
|
|
574
|
+
field: string | {
|
|
575
|
+
name: string;
|
|
576
|
+
datasetName?: string | undefined;
|
|
577
|
+
datasetId?: string | undefined;
|
|
578
|
+
label?: string | undefined;
|
|
579
|
+
connectionId?: string | undefined;
|
|
580
|
+
source?: {
|
|
581
|
+
kind: "semantic";
|
|
582
|
+
domainId: string;
|
|
583
|
+
datasetName: string;
|
|
584
|
+
datasetId?: string | undefined;
|
|
585
|
+
connectionId?: string | undefined;
|
|
586
|
+
} | undefined;
|
|
587
|
+
};
|
|
588
|
+
direction?: "asc" | "desc" | undefined;
|
|
589
|
+
} | undefined;
|
|
590
|
+
resetBy?: (string | {
|
|
591
|
+
name: string;
|
|
592
|
+
datasetName?: string | undefined;
|
|
593
|
+
datasetId?: string | undefined;
|
|
594
|
+
label?: string | undefined;
|
|
595
|
+
connectionId?: string | undefined;
|
|
596
|
+
source?: {
|
|
597
|
+
kind: "semantic";
|
|
598
|
+
domainId: string;
|
|
599
|
+
datasetName: string;
|
|
600
|
+
datasetId?: string | undefined;
|
|
601
|
+
connectionId?: string | undefined;
|
|
602
|
+
} | undefined;
|
|
603
|
+
})[] | undefined;
|
|
604
|
+
minPeriods?: number | undefined;
|
|
605
|
+
}>, z.ZodObject<{
|
|
606
|
+
mode: z.ZodOptional<z.ZodEnum<["difference", "percent_change"]>>;
|
|
607
|
+
orderBy: z.ZodOptional<z.ZodObject<{
|
|
608
|
+
field: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
609
|
+
name: z.ZodString;
|
|
610
|
+
label: z.ZodOptional<z.ZodString>;
|
|
611
|
+
datasetName: z.ZodOptional<z.ZodString>;
|
|
612
|
+
datasetId: z.ZodOptional<z.ZodString>;
|
|
613
|
+
connectionId: z.ZodOptional<z.ZodString>;
|
|
614
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
615
|
+
kind: z.ZodLiteral<"semantic">;
|
|
616
|
+
domainId: z.ZodString;
|
|
617
|
+
datasetName: z.ZodString;
|
|
618
|
+
datasetId: z.ZodOptional<z.ZodString>;
|
|
619
|
+
connectionId: z.ZodOptional<z.ZodString>;
|
|
620
|
+
}, "strict", z.ZodTypeAny, {
|
|
621
|
+
kind: "semantic";
|
|
622
|
+
domainId: string;
|
|
623
|
+
datasetName: string;
|
|
624
|
+
datasetId?: string | undefined;
|
|
625
|
+
connectionId?: string | undefined;
|
|
626
|
+
}, {
|
|
627
|
+
kind: "semantic";
|
|
628
|
+
domainId: string;
|
|
629
|
+
datasetName: string;
|
|
630
|
+
datasetId?: string | undefined;
|
|
631
|
+
connectionId?: string | undefined;
|
|
632
|
+
}>>;
|
|
633
|
+
}, "strict", z.ZodTypeAny, {
|
|
634
|
+
name: string;
|
|
635
|
+
datasetName?: string | undefined;
|
|
636
|
+
datasetId?: string | undefined;
|
|
637
|
+
label?: string | undefined;
|
|
638
|
+
connectionId?: string | undefined;
|
|
639
|
+
source?: {
|
|
640
|
+
kind: "semantic";
|
|
641
|
+
domainId: string;
|
|
642
|
+
datasetName: string;
|
|
643
|
+
datasetId?: string | undefined;
|
|
644
|
+
connectionId?: string | undefined;
|
|
645
|
+
} | undefined;
|
|
646
|
+
}, {
|
|
647
|
+
name: string;
|
|
648
|
+
datasetName?: string | undefined;
|
|
649
|
+
datasetId?: string | undefined;
|
|
650
|
+
label?: string | undefined;
|
|
651
|
+
connectionId?: string | undefined;
|
|
652
|
+
source?: {
|
|
653
|
+
kind: "semantic";
|
|
654
|
+
domainId: string;
|
|
655
|
+
datasetName: string;
|
|
656
|
+
datasetId?: string | undefined;
|
|
657
|
+
connectionId?: string | undefined;
|
|
658
|
+
} | undefined;
|
|
659
|
+
}>]>;
|
|
660
|
+
direction: z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
|
|
661
|
+
}, "strict", z.ZodTypeAny, {
|
|
662
|
+
field: string | {
|
|
663
|
+
name: string;
|
|
664
|
+
datasetName?: string | undefined;
|
|
665
|
+
datasetId?: string | undefined;
|
|
666
|
+
label?: string | undefined;
|
|
667
|
+
connectionId?: string | undefined;
|
|
668
|
+
source?: {
|
|
669
|
+
kind: "semantic";
|
|
670
|
+
domainId: string;
|
|
671
|
+
datasetName: string;
|
|
672
|
+
datasetId?: string | undefined;
|
|
673
|
+
connectionId?: string | undefined;
|
|
674
|
+
} | undefined;
|
|
675
|
+
};
|
|
676
|
+
direction?: "asc" | "desc" | undefined;
|
|
677
|
+
}, {
|
|
678
|
+
field: string | {
|
|
679
|
+
name: string;
|
|
680
|
+
datasetName?: string | undefined;
|
|
681
|
+
datasetId?: string | undefined;
|
|
682
|
+
label?: string | undefined;
|
|
683
|
+
connectionId?: string | undefined;
|
|
684
|
+
source?: {
|
|
685
|
+
kind: "semantic";
|
|
686
|
+
domainId: string;
|
|
687
|
+
datasetName: string;
|
|
688
|
+
datasetId?: string | undefined;
|
|
689
|
+
connectionId?: string | undefined;
|
|
690
|
+
} | undefined;
|
|
691
|
+
};
|
|
692
|
+
direction?: "asc" | "desc" | undefined;
|
|
693
|
+
}>>;
|
|
694
|
+
resetBy: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
695
|
+
name: z.ZodString;
|
|
696
|
+
label: z.ZodOptional<z.ZodString>;
|
|
697
|
+
datasetName: z.ZodOptional<z.ZodString>;
|
|
698
|
+
datasetId: z.ZodOptional<z.ZodString>;
|
|
699
|
+
connectionId: z.ZodOptional<z.ZodString>;
|
|
700
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
701
|
+
kind: z.ZodLiteral<"semantic">;
|
|
702
|
+
domainId: z.ZodString;
|
|
703
|
+
datasetName: z.ZodString;
|
|
704
|
+
datasetId: z.ZodOptional<z.ZodString>;
|
|
705
|
+
connectionId: z.ZodOptional<z.ZodString>;
|
|
706
|
+
}, "strict", z.ZodTypeAny, {
|
|
707
|
+
kind: "semantic";
|
|
708
|
+
domainId: string;
|
|
709
|
+
datasetName: string;
|
|
710
|
+
datasetId?: string | undefined;
|
|
711
|
+
connectionId?: string | undefined;
|
|
712
|
+
}, {
|
|
713
|
+
kind: "semantic";
|
|
714
|
+
domainId: string;
|
|
715
|
+
datasetName: string;
|
|
716
|
+
datasetId?: string | undefined;
|
|
717
|
+
connectionId?: string | undefined;
|
|
718
|
+
}>>;
|
|
719
|
+
}, "strict", z.ZodTypeAny, {
|
|
720
|
+
name: string;
|
|
721
|
+
datasetName?: string | undefined;
|
|
722
|
+
datasetId?: string | undefined;
|
|
723
|
+
label?: string | undefined;
|
|
724
|
+
connectionId?: string | undefined;
|
|
725
|
+
source?: {
|
|
726
|
+
kind: "semantic";
|
|
727
|
+
domainId: string;
|
|
728
|
+
datasetName: string;
|
|
729
|
+
datasetId?: string | undefined;
|
|
730
|
+
connectionId?: string | undefined;
|
|
731
|
+
} | undefined;
|
|
732
|
+
}, {
|
|
733
|
+
name: string;
|
|
734
|
+
datasetName?: string | undefined;
|
|
735
|
+
datasetId?: string | undefined;
|
|
736
|
+
label?: string | undefined;
|
|
737
|
+
connectionId?: string | undefined;
|
|
738
|
+
source?: {
|
|
739
|
+
kind: "semantic";
|
|
740
|
+
domainId: string;
|
|
741
|
+
datasetName: string;
|
|
742
|
+
datasetId?: string | undefined;
|
|
743
|
+
connectionId?: string | undefined;
|
|
744
|
+
} | undefined;
|
|
745
|
+
}>]>, "many">>;
|
|
746
|
+
kind: z.ZodLiteral<"difference_from_previous">;
|
|
747
|
+
}, "strict", z.ZodTypeAny, {
|
|
748
|
+
kind: "difference_from_previous";
|
|
749
|
+
mode?: "difference" | "percent_change" | undefined;
|
|
750
|
+
orderBy?: {
|
|
751
|
+
field: string | {
|
|
752
|
+
name: string;
|
|
753
|
+
datasetName?: string | undefined;
|
|
754
|
+
datasetId?: string | undefined;
|
|
755
|
+
label?: string | undefined;
|
|
756
|
+
connectionId?: string | undefined;
|
|
757
|
+
source?: {
|
|
758
|
+
kind: "semantic";
|
|
759
|
+
domainId: string;
|
|
760
|
+
datasetName: string;
|
|
761
|
+
datasetId?: string | undefined;
|
|
762
|
+
connectionId?: string | undefined;
|
|
763
|
+
} | undefined;
|
|
764
|
+
};
|
|
765
|
+
direction?: "asc" | "desc" | undefined;
|
|
766
|
+
} | undefined;
|
|
767
|
+
resetBy?: (string | {
|
|
768
|
+
name: string;
|
|
769
|
+
datasetName?: string | undefined;
|
|
770
|
+
datasetId?: string | undefined;
|
|
771
|
+
label?: string | undefined;
|
|
772
|
+
connectionId?: string | undefined;
|
|
773
|
+
source?: {
|
|
774
|
+
kind: "semantic";
|
|
775
|
+
domainId: string;
|
|
776
|
+
datasetName: string;
|
|
777
|
+
datasetId?: string | undefined;
|
|
778
|
+
connectionId?: string | undefined;
|
|
779
|
+
} | undefined;
|
|
780
|
+
})[] | undefined;
|
|
781
|
+
}, {
|
|
782
|
+
kind: "difference_from_previous";
|
|
783
|
+
mode?: "difference" | "percent_change" | undefined;
|
|
784
|
+
orderBy?: {
|
|
785
|
+
field: string | {
|
|
786
|
+
name: string;
|
|
787
|
+
datasetName?: string | undefined;
|
|
788
|
+
datasetId?: string | undefined;
|
|
789
|
+
label?: string | undefined;
|
|
790
|
+
connectionId?: string | undefined;
|
|
791
|
+
source?: {
|
|
792
|
+
kind: "semantic";
|
|
793
|
+
domainId: string;
|
|
794
|
+
datasetName: string;
|
|
795
|
+
datasetId?: string | undefined;
|
|
796
|
+
connectionId?: string | undefined;
|
|
797
|
+
} | undefined;
|
|
798
|
+
};
|
|
799
|
+
direction?: "asc" | "desc" | undefined;
|
|
800
|
+
} | undefined;
|
|
801
|
+
resetBy?: (string | {
|
|
802
|
+
name: string;
|
|
803
|
+
datasetName?: string | undefined;
|
|
804
|
+
datasetId?: string | undefined;
|
|
805
|
+
label?: string | undefined;
|
|
806
|
+
connectionId?: string | undefined;
|
|
807
|
+
source?: {
|
|
808
|
+
kind: "semantic";
|
|
809
|
+
domainId: string;
|
|
810
|
+
datasetName: string;
|
|
811
|
+
datasetId?: string | undefined;
|
|
812
|
+
connectionId?: string | undefined;
|
|
813
|
+
} | undefined;
|
|
814
|
+
})[] | undefined;
|
|
815
|
+
}>, z.ZodObject<{
|
|
816
|
+
kind: z.ZodLiteral<"percent_of_total">;
|
|
817
|
+
scope: z.ZodOptional<z.ZodEnum<["grand_total", "partition_total"]>>;
|
|
818
|
+
resetBy: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
819
|
+
name: z.ZodString;
|
|
820
|
+
label: z.ZodOptional<z.ZodString>;
|
|
821
|
+
datasetName: z.ZodOptional<z.ZodString>;
|
|
822
|
+
datasetId: z.ZodOptional<z.ZodString>;
|
|
823
|
+
connectionId: z.ZodOptional<z.ZodString>;
|
|
824
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
825
|
+
kind: z.ZodLiteral<"semantic">;
|
|
826
|
+
domainId: z.ZodString;
|
|
827
|
+
datasetName: z.ZodString;
|
|
828
|
+
datasetId: z.ZodOptional<z.ZodString>;
|
|
829
|
+
connectionId: z.ZodOptional<z.ZodString>;
|
|
830
|
+
}, "strict", z.ZodTypeAny, {
|
|
831
|
+
kind: "semantic";
|
|
832
|
+
domainId: string;
|
|
833
|
+
datasetName: string;
|
|
834
|
+
datasetId?: string | undefined;
|
|
835
|
+
connectionId?: string | undefined;
|
|
836
|
+
}, {
|
|
837
|
+
kind: "semantic";
|
|
838
|
+
domainId: string;
|
|
839
|
+
datasetName: string;
|
|
840
|
+
datasetId?: string | undefined;
|
|
841
|
+
connectionId?: string | undefined;
|
|
842
|
+
}>>;
|
|
843
|
+
}, "strict", z.ZodTypeAny, {
|
|
844
|
+
name: string;
|
|
845
|
+
datasetName?: string | undefined;
|
|
846
|
+
datasetId?: string | undefined;
|
|
847
|
+
label?: string | undefined;
|
|
848
|
+
connectionId?: string | undefined;
|
|
849
|
+
source?: {
|
|
850
|
+
kind: "semantic";
|
|
851
|
+
domainId: string;
|
|
852
|
+
datasetName: string;
|
|
853
|
+
datasetId?: string | undefined;
|
|
854
|
+
connectionId?: string | undefined;
|
|
855
|
+
} | undefined;
|
|
856
|
+
}, {
|
|
857
|
+
name: string;
|
|
858
|
+
datasetName?: string | undefined;
|
|
859
|
+
datasetId?: string | undefined;
|
|
860
|
+
label?: string | undefined;
|
|
861
|
+
connectionId?: string | undefined;
|
|
862
|
+
source?: {
|
|
863
|
+
kind: "semantic";
|
|
864
|
+
domainId: string;
|
|
865
|
+
datasetName: string;
|
|
866
|
+
datasetId?: string | undefined;
|
|
867
|
+
connectionId?: string | undefined;
|
|
868
|
+
} | undefined;
|
|
869
|
+
}>]>, "many">>;
|
|
870
|
+
output: z.ZodOptional<z.ZodEnum<["percent", "fraction"]>>;
|
|
871
|
+
}, "strict", z.ZodTypeAny, {
|
|
872
|
+
kind: "percent_of_total";
|
|
873
|
+
scope?: "grand_total" | "partition_total" | undefined;
|
|
874
|
+
output?: "percent" | "fraction" | undefined;
|
|
875
|
+
resetBy?: (string | {
|
|
876
|
+
name: string;
|
|
877
|
+
datasetName?: string | undefined;
|
|
878
|
+
datasetId?: string | undefined;
|
|
879
|
+
label?: string | undefined;
|
|
880
|
+
connectionId?: string | undefined;
|
|
881
|
+
source?: {
|
|
882
|
+
kind: "semantic";
|
|
883
|
+
domainId: string;
|
|
884
|
+
datasetName: string;
|
|
885
|
+
datasetId?: string | undefined;
|
|
886
|
+
connectionId?: string | undefined;
|
|
887
|
+
} | undefined;
|
|
888
|
+
})[] | undefined;
|
|
889
|
+
}, {
|
|
890
|
+
kind: "percent_of_total";
|
|
891
|
+
scope?: "grand_total" | "partition_total" | undefined;
|
|
892
|
+
output?: "percent" | "fraction" | undefined;
|
|
893
|
+
resetBy?: (string | {
|
|
894
|
+
name: string;
|
|
895
|
+
datasetName?: string | undefined;
|
|
896
|
+
datasetId?: string | undefined;
|
|
897
|
+
label?: string | undefined;
|
|
898
|
+
connectionId?: string | undefined;
|
|
899
|
+
source?: {
|
|
900
|
+
kind: "semantic";
|
|
901
|
+
domainId: string;
|
|
902
|
+
datasetName: string;
|
|
903
|
+
datasetId?: string | undefined;
|
|
904
|
+
connectionId?: string | undefined;
|
|
905
|
+
} | undefined;
|
|
906
|
+
})[] | undefined;
|
|
907
|
+
}>]>;
|
|
908
|
+
export type ExplicitComparison = z.infer<typeof explicitComparisonSchema>;
|
|
909
|
+
export type MeasureComparison = z.infer<typeof measureComparisonUnion>;
|
|
910
|
+
export type TransformOrder = z.infer<typeof transformOrderSchema>;
|
|
911
|
+
export type MeasureTransform = z.infer<typeof measureTransformUnion>;
|
|
912
|
+
export declare const measureComparisonSchema: z.ZodType<MeasureComparison>;
|
|
913
|
+
export declare const measureTransformSchema: z.ZodType<MeasureTransform>;
|
|
914
|
+
/** One card measure's calculations: what the outline shows and what a change states. */
|
|
915
|
+
export type MeasureCalculations = {
|
|
916
|
+
comparison?: MeasureComparison;
|
|
917
|
+
/** null only in a card.update: removes the transform. */
|
|
918
|
+
transform?: MeasureTransform | null;
|
|
919
|
+
};
|
|
920
|
+
/** One semaphor_analyze measure's calculations: no dashboard to inherit, nothing to remove. */
|
|
921
|
+
export type AnalyzeMeasureCalculations = {
|
|
922
|
+
comparison?: ExplicitComparison;
|
|
923
|
+
transform?: MeasureTransform;
|
|
924
|
+
};
|
|
925
|
+
/**
|
|
926
|
+
* The registered definition's one line per word (SPEC S-5): the tool lists
|
|
927
|
+
* these, and the parsing schemas above check what is sent in full. Measured
|
|
928
|
+
* against the definition budget (RC-D1).
|
|
929
|
+
*/
|
|
930
|
+
export declare const MEASURE_CALCULATION_SUMMARIES: {
|
|
931
|
+
readonly comparison: "{ kind: 'inherit' (the dashboard's; default) | 'off' | 'previous_period' | 'previous_year' (offsetPeriods or offsetYears?: n, alignment?: 'calendar' | 'weekday', toDate?: true) | 'target' (targetValue: number) }. Targets on kpi and table. A period or year compares over the card's date grouping (a KPI's Trend By: dateField with timeGrain) or the dataset's primary date.";
|
|
932
|
+
readonly transform: "{ kind: 'running_total' | 'moving_average' (window?: 7, minPeriods?: 1) | 'difference_from_previous' (mode?: 'difference' | 'percent_change') | 'percent_of_total' (scope?: 'grand_total' | 'partition_total', output?: 'percent' | 'fraction'), orderBy?: { field, direction? } (default: the first date grouping), resetBy?: [fields] (default: every other grouping) }; null removes it. Not beside a comparison of its own.";
|
|
933
|
+
};
|
|
934
|
+
export {};
|