@astrato-io/visualizations 0.0.0-stage → 0.6.4
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/CHANGELOG.md +23 -0
- package/LICENSE +93 -0
- package/README.md +843 -2
- package/THIRD_PARTY_NOTICES.md +8387 -0
- package/VISUALIZATION_DEFINITIONS.md +2378 -0
- package/chunks/LinearProgress-CUZ0D8_t.js +253 -0
- package/chunks/Radio-Ciu-F4CU.js +957 -0
- package/chunks/ToggleButton-BCJc3Jlc.js +153 -0
- package/chunks/_baseFlatten-DPXPOrea.js +7076 -0
- package/chunks/accessors-DemrDevR.js +128 -0
- package/chunks/app-filter-bar.compiler-j_CVoWTa.js +55 -0
- package/chunks/bar.compiler-oqaPzIut.js +370 -0
- package/chunks/color-settings-ZIvgNTq1.js +10 -0
- package/chunks/coloring-C16AUZEi.js +663 -0
- package/chunks/data-item-resolution-1lvYB5ln.js +53 -0
- package/chunks/debounce-fn-CUixuz45.js +7 -0
- package/chunks/escobar-BGqT1EsE.js +34580 -0
- package/chunks/event-bus-KiSiCJrC.js +2683 -0
- package/chunks/events-WZut5Ow6.js +4 -0
- package/chunks/extend-BKUkc4_i.js +37 -0
- package/chunks/filter.compiler-CuLtc_02.js +60 -0
- package/chunks/filtering-Yq4DEa0t.js +953 -0
- package/chunks/gauge-target-type-BkKXAqkX.js +4 -0
- package/chunks/grouping-type-BX_9Ix5q.js +3 -0
- package/chunks/interfaces-VUY4_yVO.js +8742 -0
- package/chunks/line-settings-DfYTUyPz.js +4 -0
- package/chunks/line.compiler-BpA_6Tc7.js +188 -0
- package/chunks/metadata-CPXdYoln.js +28 -0
- package/chunks/number.compiler-DbkWcG4S.js +44 -0
- package/chunks/pie-uv42Eqal.js +10 -0
- package/chunks/range-DrzdfBX4.js +22 -0
- package/chunks/registry-CExpGJ1N.js +920 -0
- package/chunks/requirements-DNhuShLS.js +6 -0
- package/chunks/rolldown-runtime-DleVn1XH.js +28 -0
- package/chunks/set-coloring-datafield-B3uIS1Pe.js +8 -0
- package/chunks/shared-CKDL4hx9.js +1171 -0
- package/chunks/src-BC7cGcJ-.js +2024 -0
- package/chunks/src-BOS6SqkZ.js +67 -0
- package/chunks/src-C0LgoUWY.js +26105 -0
- package/chunks/src-Cum_2NLV.js +12145 -0
- package/chunks/src-D9XogOrc.js +422 -0
- package/chunks/src-Dun_jXtz.js +10295 -0
- package/chunks/src-DvX5LU9T.js +14742 -0
- package/chunks/standalone-87YV_m9n.js +687 -0
- package/chunks/standalone-BDCwI6Hn.js +4619 -0
- package/chunks/standalone-BH5NqDwp.js +1763 -0
- package/chunks/standalone-BLVAWLNJ.js +385 -0
- package/chunks/standalone-BPomtAVs.js +2 -0
- package/chunks/standalone-BXyBcUOQ.js +2 -0
- package/chunks/standalone-BYm1UjLr.js +140 -0
- package/chunks/standalone-BllF4rDp.js +383 -0
- package/chunks/standalone-BmfMt74U.js +726 -0
- package/chunks/standalone-BqWyrnZI.js +281 -0
- package/chunks/standalone-C85u7U6I.js +340 -0
- package/chunks/standalone-CCNtaJ7s.js +741 -0
- package/chunks/standalone-CDQnr6qT.js +345 -0
- package/chunks/standalone-CNyNHKVx.js +674 -0
- package/chunks/standalone-CY57qwZ-.js +1129 -0
- package/chunks/standalone-CZynjFG7.js +12979 -0
- package/chunks/standalone-D5vnf-9y.js +3943 -0
- package/chunks/standalone-DFPva_ku.js +299 -0
- package/chunks/standalone-DQxxNwF8.js +675 -0
- package/chunks/standalone-DS9T0FZ-.js +830 -0
- package/chunks/standalone-Dx3MLlrO.js +512 -0
- package/chunks/standalone-DzixzZAL.js +411 -0
- package/chunks/standalone-QJ1kKMnO.js +6 -0
- package/chunks/standalone-jiz0L2Dg.js +3855 -0
- package/chunks/standalone-lBm9hQ-q.js +179 -0
- package/chunks/standalone-rJ45Zfl1.js +68 -0
- package/chunks/stroke-dash-UgMEcCS4.js +6 -0
- package/chunks/table.compiler-BrXkm4Fz.js +213 -0
- package/chunks/toInteger-DVZr-D1j.js +11 -0
- package/chunks/treemap-x_zmJoG7.js +23 -0
- package/chunks/typeof-CJDtcySz.js +13 -0
- package/chunks/types-dVVCsDWD.js +4 -0
- package/chunks/ui-D1HQNIBy.js +54039 -0
- package/chunks/url-utils-B17gj_mr.js +5501 -0
- package/chunks/useFieldName-oqQ3bvnO.js +7 -0
- package/chunks/utils-Ba9T0TqC.js +31097 -0
- package/chunks/view-CLqWMV7Z.js +156 -0
- package/definitions.js +3 -0
- package/docs/operations/astrato-app-filter-bar.md +161 -0
- package/docs/operations/bar.md +7050 -0
- package/docs/operations/combo.md +5825 -0
- package/docs/operations/date-picker.md +644 -0
- package/docs/operations/distribution-gauge.md +3218 -0
- package/docs/operations/dot.md +5662 -0
- package/docs/operations/filter.md +1507 -0
- package/docs/operations/gauge.md +3452 -0
- package/docs/operations/heatMap.md +6026 -0
- package/docs/operations/histogram.md +1870 -0
- package/docs/operations/iframe.md +56 -0
- package/docs/operations/image.md +177 -0
- package/docs/operations/index.md +46 -0
- package/docs/operations/line.md +6468 -0
- package/docs/operations/number.md +3969 -0
- package/docs/operations/pie.md +6089 -0
- package/docs/operations/radar.md +4646 -0
- package/docs/operations/sankey.md +3210 -0
- package/docs/operations/scatter.md +6075 -0
- package/docs/operations/shape.md +315 -0
- package/docs/operations/simpleTextObject.md +706 -0
- package/docs/operations/slider.md +230 -0
- package/docs/operations/table.md +8790 -0
- package/docs/operations/tree.md +2874 -0
- package/docs/operations/treemap.md +3619 -0
- package/docs/operations/waterfall.md +2938 -0
- package/docs/operations/word-cloud.md +3071 -0
- package/getters.js +18 -0
- package/index.js +1183 -0
- package/metadata.js +20 -0
- package/operations.js +64 -0
- package/package.json +191 -4
- package/src/definitions/index.d.ts +2 -0
- package/src/definitions/shared/index.d.ts +5 -0
- package/src/definitions/shared/lib/available-fields.d.ts +36 -0
- package/src/definitions/shared/lib/compilers/index.d.ts +7 -0
- package/src/definitions/shared/lib/registry/compile.d.ts +2 -0
- package/src/definitions/shared/lib/registry/descriptor-registry.d.ts +587 -0
- package/src/definitions/shared/lib/registry/index.d.ts +3 -0
- package/src/definitions/shared/lib/registry/validation.d.ts +3 -0
- package/src/definitions/shared/lib/schemas/app-filter-bar.schema.d.ts +22 -0
- package/src/definitions/shared/lib/schemas/bar.schema.d.ts +73 -0
- package/src/definitions/shared/lib/schemas/broad-chart.schema.d.ts +68 -0
- package/src/definitions/shared/lib/schemas/common.schema.d.ts +304 -0
- package/src/definitions/shared/lib/schemas/filter.schema.d.ts +22 -0
- package/src/definitions/shared/lib/schemas/index.d.ts +9 -0
- package/src/definitions/shared/lib/schemas/line.schema.d.ts +72 -0
- package/src/definitions/shared/lib/schemas/number.schema.d.ts +21 -0
- package/src/definitions/shared/lib/schemas/object.schema.d.ts +215 -0
- package/src/definitions/shared/lib/schemas/table.schema.d.ts +458 -0
- package/src/definitions/shared/lib/types/compilation.types.d.ts +36 -0
- package/src/definitions/shared/lib/types/definition.types.d.ts +2 -0
- package/src/definitions/shared/lib/types/descriptor.types.d.ts +39 -0
- package/src/definitions/shared/lib/types/index.d.ts +3 -0
- package/src/getters/index.d.ts +30 -0
- package/src/index.d.ts +4 -0
- package/src/metadata/index.d.ts +4 -0
- package/src/operations/index.d.ts +30 -0
- package/src/registry/index.d.ts +6 -0
- package/src/runtime/index.d.ts +2 -0
- package/src/types.d.ts +307 -0
- package/src/visualization-catalog.d.ts +82 -0
- package/src/web-components/index.d.ts +12 -0
- package/styles.css +2 -0
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const barVisualizationDefinitionSchema: z.ZodObject<{
|
|
3
|
+
data: z.ZodObject<{
|
|
4
|
+
dimensions: z.ZodArray<z.ZodObject<{
|
|
5
|
+
fieldKey: z.ZodString;
|
|
6
|
+
format: z.ZodOptional<z.ZodObject<{
|
|
7
|
+
formatString: z.ZodOptional<z.ZodString>;
|
|
8
|
+
formatType: z.ZodOptional<z.ZodType<"custom" | "day" | "month" | "none" | "inherit" | "quarter" | "yyyy" | "yy" | "hh" | "ddmmyyyy" | "ddmmyyyy2" | "ddmmyyyy3" | "yyyymmdd" | "mmddyyyy" | "mmddyyyy2" | "ddmmmmyyyy" | "ddmmmyyyy" | "ddmmmyy" | "mmmmddyyyy" | "mmmyyyy" | "yyyymmm" | "yyyymmmm" | "mmyyyy" | "yyyymm" | "mmmmyyyy" | "yyyywn" | "wnyyyy" | "yywn" | "yyyyq" | "qyyyy" | "yyyymmddhhmmss" | "yyyymmddhmmss" | "yyyymmddhhmm" | "yyyymmddhh" | "yyyymmddhmm" | "yyyymmddh" | "ddmmmyyyyhhmmss" | "ddmmmyyyyhmmss" | "ddmmmyyyyhhmm" | "ddmmmyyyyhmm" | "ddmmmyyyyh" | "hhmmss" | "hhmm" | "hmm" | "h" | "hmmss" | "month2" | "monthn" | "month3" | "quarter2" | "week1" | "week2" | "week3" | "dayOfWeek" | "hhn" | "hn" | "defaultNumber" | "defaultMoney" | "numberNoDecimal" | "number1Decimal" | "number2Decimal" | "abbreviationAuto" | "abbreviationNoDecimal" | "abbreviation1Decimal" | "abbreviation2Decimal" | "percentageNoDecimal" | "percentage1Decimal" | "percentage2Decimal" | "money0Decimal" | "money2Decimal" | "durationDays" | "durationHours" | "durationMinutes" | "durationSeconds" | "defaultDate" | "defaultDatetime" | "defaultTime", unknown, z.core.$ZodTypeInternals<"custom" | "day" | "month" | "none" | "inherit" | "quarter" | "yyyy" | "yy" | "hh" | "ddmmyyyy" | "ddmmyyyy2" | "ddmmyyyy3" | "yyyymmdd" | "mmddyyyy" | "mmddyyyy2" | "ddmmmmyyyy" | "ddmmmyyyy" | "ddmmmyy" | "mmmmddyyyy" | "mmmyyyy" | "yyyymmm" | "yyyymmmm" | "mmyyyy" | "yyyymm" | "mmmmyyyy" | "yyyywn" | "wnyyyy" | "yywn" | "yyyyq" | "qyyyy" | "yyyymmddhhmmss" | "yyyymmddhmmss" | "yyyymmddhhmm" | "yyyymmddhh" | "yyyymmddhmm" | "yyyymmddh" | "ddmmmyyyyhhmmss" | "ddmmmyyyyhmmss" | "ddmmmyyyyhhmm" | "ddmmmyyyyhmm" | "ddmmmyyyyh" | "hhmmss" | "hhmm" | "hmm" | "h" | "hmmss" | "month2" | "monthn" | "month3" | "quarter2" | "week1" | "week2" | "week3" | "dayOfWeek" | "hhn" | "hn" | "defaultNumber" | "defaultMoney" | "numberNoDecimal" | "number1Decimal" | "number2Decimal" | "abbreviationAuto" | "abbreviationNoDecimal" | "abbreviation1Decimal" | "abbreviation2Decimal" | "percentageNoDecimal" | "percentage1Decimal" | "percentage2Decimal" | "money0Decimal" | "money2Decimal" | "durationDays" | "durationHours" | "durationMinutes" | "durationSeconds" | "defaultDate" | "defaultDatetime" | "defaultTime", unknown>>>;
|
|
9
|
+
}, z.core.$strict>>;
|
|
10
|
+
ref: z.ZodString;
|
|
11
|
+
showNullValues: z.ZodOptional<z.ZodBoolean>;
|
|
12
|
+
temporalGrouping: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
13
|
+
dateLevel: z.ZodType<"day" | "week" | "month" | "year" | "second" | "quarter" | "hour" | "minute" | "year-end" | "quarter-end" | "month-end" | "week-end", unknown, z.core.$ZodTypeInternals<"day" | "week" | "month" | "year" | "second" | "quarter" | "hour" | "minute" | "year-end" | "quarter-end" | "month-end" | "week-end", unknown>>;
|
|
14
|
+
mode: z.ZodLiteral<"level">;
|
|
15
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
16
|
+
datePart: z.ZodType<"day" | "month" | "year" | "second" | "quarter" | "hour" | "minute" | "dayofweekiso" | "dayofyear" | "weekiso" | "yearofweekiso", unknown, z.core.$ZodTypeInternals<"day" | "month" | "year" | "second" | "quarter" | "hour" | "minute" | "dayofweekiso" | "dayofyear" | "weekiso" | "yearofweekiso", unknown>>;
|
|
17
|
+
mode: z.ZodLiteral<"part">;
|
|
18
|
+
}, z.core.$strict>], "mode">>;
|
|
19
|
+
}, z.core.$strict>>;
|
|
20
|
+
measures: z.ZodArray<z.ZodObject<{
|
|
21
|
+
aggregation: z.ZodOptional<z.ZodString>;
|
|
22
|
+
dataLabels: z.ZodOptional<z.ZodObject<{
|
|
23
|
+
placements: z.ZodOptional<z.ZodArray<z.ZodType<"inside" | "outside" | "opposite", unknown, z.core.$ZodTypeInternals<"inside" | "outside" | "opposite", unknown>>>>;
|
|
24
|
+
visible: z.ZodBoolean;
|
|
25
|
+
}, z.core.$strict>>;
|
|
26
|
+
fieldKey: z.ZodString;
|
|
27
|
+
format: z.ZodOptional<z.ZodObject<{
|
|
28
|
+
currency: z.ZodOptional<z.ZodString>;
|
|
29
|
+
currencyIsPrefix: z.ZodOptional<z.ZodBoolean>;
|
|
30
|
+
formatString: z.ZodOptional<z.ZodString>;
|
|
31
|
+
formatType: z.ZodOptional<z.ZodType<"custom" | "day" | "month" | "none" | "inherit" | "quarter" | "yyyy" | "yy" | "hh" | "ddmmyyyy" | "ddmmyyyy2" | "ddmmyyyy3" | "yyyymmdd" | "mmddyyyy" | "mmddyyyy2" | "ddmmmmyyyy" | "ddmmmyyyy" | "ddmmmyy" | "mmmmddyyyy" | "mmmyyyy" | "yyyymmm" | "yyyymmmm" | "mmyyyy" | "yyyymm" | "mmmmyyyy" | "yyyywn" | "wnyyyy" | "yywn" | "yyyyq" | "qyyyy" | "yyyymmddhhmmss" | "yyyymmddhmmss" | "yyyymmddhhmm" | "yyyymmddhh" | "yyyymmddhmm" | "yyyymmddh" | "ddmmmyyyyhhmmss" | "ddmmmyyyyhmmss" | "ddmmmyyyyhhmm" | "ddmmmyyyyhmm" | "ddmmmyyyyh" | "hhmmss" | "hhmm" | "hmm" | "h" | "hmmss" | "month2" | "monthn" | "month3" | "quarter2" | "week1" | "week2" | "week3" | "dayOfWeek" | "hhn" | "hn" | "defaultNumber" | "defaultMoney" | "numberNoDecimal" | "number1Decimal" | "number2Decimal" | "abbreviationAuto" | "abbreviationNoDecimal" | "abbreviation1Decimal" | "abbreviation2Decimal" | "percentageNoDecimal" | "percentage1Decimal" | "percentage2Decimal" | "money0Decimal" | "money2Decimal" | "durationDays" | "durationHours" | "durationMinutes" | "durationSeconds" | "defaultDate" | "defaultDatetime" | "defaultTime", unknown, z.core.$ZodTypeInternals<"custom" | "day" | "month" | "none" | "inherit" | "quarter" | "yyyy" | "yy" | "hh" | "ddmmyyyy" | "ddmmyyyy2" | "ddmmyyyy3" | "yyyymmdd" | "mmddyyyy" | "mmddyyyy2" | "ddmmmmyyyy" | "ddmmmyyyy" | "ddmmmyy" | "mmmmddyyyy" | "mmmyyyy" | "yyyymmm" | "yyyymmmm" | "mmyyyy" | "yyyymm" | "mmmmyyyy" | "yyyywn" | "wnyyyy" | "yywn" | "yyyyq" | "qyyyy" | "yyyymmddhhmmss" | "yyyymmddhmmss" | "yyyymmddhhmm" | "yyyymmddhh" | "yyyymmddhmm" | "yyyymmddh" | "ddmmmyyyyhhmmss" | "ddmmmyyyyhmmss" | "ddmmmyyyyhhmm" | "ddmmmyyyyhmm" | "ddmmmyyyyh" | "hhmmss" | "hhmm" | "hmm" | "h" | "hmmss" | "month2" | "monthn" | "month3" | "quarter2" | "week1" | "week2" | "week3" | "dayOfWeek" | "hhn" | "hn" | "defaultNumber" | "defaultMoney" | "numberNoDecimal" | "number1Decimal" | "number2Decimal" | "abbreviationAuto" | "abbreviationNoDecimal" | "abbreviation1Decimal" | "abbreviation2Decimal" | "percentageNoDecimal" | "percentage1Decimal" | "percentage2Decimal" | "money0Decimal" | "money2Decimal" | "durationDays" | "durationHours" | "durationMinutes" | "durationSeconds" | "defaultDate" | "defaultDatetime" | "defaultTime", unknown>>>;
|
|
32
|
+
negativeType: z.ZodOptional<z.ZodType<"symbol" | "parenthesis", unknown, z.core.$ZodTypeInternals<"symbol" | "parenthesis", unknown>>>;
|
|
33
|
+
}, z.core.$strict>>;
|
|
34
|
+
ref: z.ZodString;
|
|
35
|
+
axis: z.ZodOptional<z.ZodEnum<{
|
|
36
|
+
primary: "primary";
|
|
37
|
+
secondary: "secondary";
|
|
38
|
+
}>>;
|
|
39
|
+
}, z.core.$strict>>;
|
|
40
|
+
}, z.core.$strict>;
|
|
41
|
+
filterGroup: z.ZodOptional<z.ZodType<import("./common.schema").VisualizationStaticFilterGroup, unknown, z.core.$ZodTypeInternals<import("./common.schema").VisualizationStaticFilterGroup, unknown>>>;
|
|
42
|
+
limiting: z.ZodOptional<z.ZodObject<{
|
|
43
|
+
queryLimit: z.ZodOptional<z.ZodNumber>;
|
|
44
|
+
topN: z.ZodOptional<z.ZodObject<{
|
|
45
|
+
by: z.ZodString;
|
|
46
|
+
count: z.ZodNumber;
|
|
47
|
+
direction: z.ZodType<"asc" | "desc", unknown, z.core.$ZodTypeInternals<"asc" | "desc", unknown>>;
|
|
48
|
+
showOthers: z.ZodOptional<z.ZodBoolean>;
|
|
49
|
+
}, z.core.$strict>>;
|
|
50
|
+
}, z.core.$strict>>;
|
|
51
|
+
presentation: z.ZodOptional<z.ZodObject<{
|
|
52
|
+
axes: z.ZodOptional<z.ZodObject<{
|
|
53
|
+
dimension: z.ZodOptional<typeof import("./common.schema").axisDefinitionSchema>;
|
|
54
|
+
primaryMeasure: z.ZodOptional<typeof import("./common.schema").measureAxisDefinitionSchema>;
|
|
55
|
+
secondaryMeasure: z.ZodOptional<typeof import("./common.schema").measureAxisDefinitionSchema>;
|
|
56
|
+
}, z.core.$strict>>;
|
|
57
|
+
legend: z.ZodOptional<z.ZodObject<{
|
|
58
|
+
position: z.ZodOptional<z.ZodType<"top" | "bottom" | "left" | "right", unknown, z.core.$ZodTypeInternals<"top" | "bottom" | "left" | "right", unknown>>>;
|
|
59
|
+
title: z.ZodOptional<z.ZodString>;
|
|
60
|
+
visible: z.ZodOptional<z.ZodBoolean>;
|
|
61
|
+
}, z.core.$strict>>;
|
|
62
|
+
orientation: z.ZodOptional<z.ZodType<"horizontal" | "vertical", unknown, z.core.$ZodTypeInternals<"horizontal" | "vertical", unknown>>>;
|
|
63
|
+
coloring: z.ZodOptional<z.ZodType<import("./common.schema").ColoringDefinition, unknown, z.core.$ZodTypeInternals<import("./common.schema").ColoringDefinition, unknown>>>;
|
|
64
|
+
}, z.core.$strict>>;
|
|
65
|
+
sorting: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
66
|
+
by: z.ZodString;
|
|
67
|
+
direction: z.ZodType<"asc" | "desc", unknown, z.core.$ZodTypeInternals<"asc" | "desc", unknown>>;
|
|
68
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
69
|
+
}, z.core.$strict>>>;
|
|
70
|
+
type: z.ZodLiteral<"bar">;
|
|
71
|
+
version: z.ZodLiteral<1>;
|
|
72
|
+
}, z.core.$strict>;
|
|
73
|
+
export type BarVisualizationDefinition = z.infer<typeof barVisualizationDefinitionSchema>;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { axisDefinitionSchema, dimensionDefinitionSchema, legendDefinitionSchema, measureAxisDefinitionSchema, measureDefinitionSchema, sortingDefinitionSchema, type ColoringDefinition, type VisualizationStaticFilterGroup } from './common.schema';
|
|
3
|
+
export type BroadChartVisualizationType = 'combo' | 'distribution-gauge' | 'dot' | 'gauge' | 'heatMap' | 'histogram' | 'pie' | 'radar' | 'sankey' | 'scatter' | 'tree' | 'treemap' | 'waterfall' | 'word-cloud';
|
|
4
|
+
export interface BroadChartVisualizationDefinition<TType extends BroadChartVisualizationType = BroadChartVisualizationType> {
|
|
5
|
+
data: {
|
|
6
|
+
dimensions?: Array<z.infer<typeof dimensionDefinitionSchema>>;
|
|
7
|
+
measures?: Array<z.infer<typeof measureDefinitionSchema> & {
|
|
8
|
+
axis?: 'primary' | 'secondary';
|
|
9
|
+
seriesType?: 'bar' | 'line' | 'point';
|
|
10
|
+
}>;
|
|
11
|
+
};
|
|
12
|
+
filterGroup?: VisualizationStaticFilterGroup;
|
|
13
|
+
limiting?: {
|
|
14
|
+
queryLimit?: number;
|
|
15
|
+
};
|
|
16
|
+
presentation?: {
|
|
17
|
+
axes?: {
|
|
18
|
+
dimension?: z.infer<typeof axisDefinitionSchema>;
|
|
19
|
+
primaryMeasure?: z.infer<typeof measureAxisDefinitionSchema>;
|
|
20
|
+
secondaryDimension?: z.infer<typeof axisDefinitionSchema>;
|
|
21
|
+
secondaryMeasure?: z.infer<typeof measureAxisDefinitionSchema>;
|
|
22
|
+
};
|
|
23
|
+
coloring?: ColoringDefinition;
|
|
24
|
+
dataLabels?: {
|
|
25
|
+
visible: boolean;
|
|
26
|
+
};
|
|
27
|
+
displayMode?: 'bar' | 'radial';
|
|
28
|
+
legend?: z.infer<typeof legendDefinitionSchema>;
|
|
29
|
+
layout?: {
|
|
30
|
+
compact?: boolean;
|
|
31
|
+
direction?: 'bottom' | 'left' | 'right' | 'top';
|
|
32
|
+
forceAutoFit?: boolean;
|
|
33
|
+
initialExpandedLevels?: number;
|
|
34
|
+
};
|
|
35
|
+
orientation?: 'horizontal' | 'vertical';
|
|
36
|
+
};
|
|
37
|
+
sorting?: Array<z.infer<typeof sortingDefinitionSchema>>;
|
|
38
|
+
type: TType;
|
|
39
|
+
version: 1;
|
|
40
|
+
}
|
|
41
|
+
export declare const comboVisualizationDefinitionSchema: z.ZodType<BroadChartVisualizationDefinition<"combo">, unknown, z.core.$ZodTypeInternals<BroadChartVisualizationDefinition<"combo">, unknown>>;
|
|
42
|
+
export declare const dotVisualizationDefinitionSchema: z.ZodType<BroadChartVisualizationDefinition<"dot">, unknown, z.core.$ZodTypeInternals<BroadChartVisualizationDefinition<"dot">, unknown>>;
|
|
43
|
+
export declare const scatterVisualizationDefinitionSchema: z.ZodType<BroadChartVisualizationDefinition<"scatter">, unknown, z.core.$ZodTypeInternals<BroadChartVisualizationDefinition<"scatter">, unknown>>;
|
|
44
|
+
export declare const histogramVisualizationDefinitionSchema: z.ZodType<BroadChartVisualizationDefinition<"histogram">, unknown, z.core.$ZodTypeInternals<BroadChartVisualizationDefinition<"histogram">, unknown>>;
|
|
45
|
+
export declare const heatMapVisualizationDefinitionSchema: z.ZodType<BroadChartVisualizationDefinition<"heatMap">, unknown, z.core.$ZodTypeInternals<BroadChartVisualizationDefinition<"heatMap">, unknown>>;
|
|
46
|
+
export declare const radarVisualizationDefinitionSchema: z.ZodType<BroadChartVisualizationDefinition<"radar">, unknown, z.core.$ZodTypeInternals<BroadChartVisualizationDefinition<"radar">, unknown>>;
|
|
47
|
+
export declare const gaugeVisualizationDefinitionSchema: z.ZodType<BroadChartVisualizationDefinition<"gauge">, unknown, z.core.$ZodTypeInternals<BroadChartVisualizationDefinition<"gauge">, unknown>>;
|
|
48
|
+
export declare const distributionGaugeVisualizationDefinitionSchema: z.ZodType<BroadChartVisualizationDefinition<"distribution-gauge">, unknown, z.core.$ZodTypeInternals<BroadChartVisualizationDefinition<"distribution-gauge">, unknown>>;
|
|
49
|
+
export declare const pieVisualizationDefinitionSchema: z.ZodType<BroadChartVisualizationDefinition<"pie">, unknown, z.core.$ZodTypeInternals<BroadChartVisualizationDefinition<"pie">, unknown>>;
|
|
50
|
+
export declare const treeVisualizationDefinitionSchema: z.ZodType<BroadChartVisualizationDefinition<"tree">, unknown, z.core.$ZodTypeInternals<BroadChartVisualizationDefinition<"tree">, unknown>>;
|
|
51
|
+
export declare const treemapVisualizationDefinitionSchema: z.ZodType<BroadChartVisualizationDefinition<"treemap">, unknown, z.core.$ZodTypeInternals<BroadChartVisualizationDefinition<"treemap">, unknown>>;
|
|
52
|
+
export declare const sankeyVisualizationDefinitionSchema: z.ZodType<BroadChartVisualizationDefinition<"sankey">, unknown, z.core.$ZodTypeInternals<BroadChartVisualizationDefinition<"sankey">, unknown>>;
|
|
53
|
+
export declare const waterfallVisualizationDefinitionSchema: z.ZodType<BroadChartVisualizationDefinition<"waterfall">, unknown, z.core.$ZodTypeInternals<BroadChartVisualizationDefinition<"waterfall">, unknown>>;
|
|
54
|
+
export declare const wordCloudVisualizationDefinitionSchema: z.ZodType<BroadChartVisualizationDefinition<"word-cloud">, unknown, z.core.$ZodTypeInternals<BroadChartVisualizationDefinition<"word-cloud">, unknown>>;
|
|
55
|
+
export type ComboVisualizationDefinition = z.infer<typeof comboVisualizationDefinitionSchema>;
|
|
56
|
+
export type DistributionGaugeVisualizationDefinition = z.infer<typeof distributionGaugeVisualizationDefinitionSchema>;
|
|
57
|
+
export type DotVisualizationDefinition = z.infer<typeof dotVisualizationDefinitionSchema>;
|
|
58
|
+
export type GaugeVisualizationDefinition = z.infer<typeof gaugeVisualizationDefinitionSchema>;
|
|
59
|
+
export type HeatMapVisualizationDefinition = z.infer<typeof heatMapVisualizationDefinitionSchema>;
|
|
60
|
+
export type HistogramVisualizationDefinition = z.infer<typeof histogramVisualizationDefinitionSchema>;
|
|
61
|
+
export type PieVisualizationDefinition = z.infer<typeof pieVisualizationDefinitionSchema>;
|
|
62
|
+
export type RadarVisualizationDefinition = z.infer<typeof radarVisualizationDefinitionSchema>;
|
|
63
|
+
export type SankeyVisualizationDefinition = z.infer<typeof sankeyVisualizationDefinitionSchema>;
|
|
64
|
+
export type ScatterVisualizationDefinition = z.infer<typeof scatterVisualizationDefinitionSchema>;
|
|
65
|
+
export type TreeVisualizationDefinition = z.infer<typeof treeVisualizationDefinitionSchema>;
|
|
66
|
+
export type TreemapVisualizationDefinition = z.infer<typeof treemapVisualizationDefinitionSchema>;
|
|
67
|
+
export type WaterfallVisualizationDefinition = z.infer<typeof waterfallVisualizationDefinitionSchema>;
|
|
68
|
+
export type WordCloudVisualizationDefinition = z.infer<typeof wordCloudVisualizationDefinitionSchema>;
|
|
@@ -0,0 +1,304 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
type PublicSchemaValue<TValue> = TValue extends string ? `${TValue}` : TValue extends Array<infer TItem> ? Array<PublicSchemaValue<TItem>> : TValue extends object ? {
|
|
3
|
+
[TKey in keyof TValue]: PublicSchemaValue<TValue[TKey]>;
|
|
4
|
+
} : TValue;
|
|
5
|
+
export declare const asPublicSchema: <TValue>(schema: z.ZodType<TValue>) => z.ZodType<PublicSchemaValue<TValue>>;
|
|
6
|
+
export declare const referenceSchema: z.ZodString;
|
|
7
|
+
export declare const fieldKeySchema: z.ZodString;
|
|
8
|
+
export declare const visualizationAvailableFieldAggregationSchema: z.ZodObject<{
|
|
9
|
+
distinct: z.ZodOptional<z.ZodBoolean>;
|
|
10
|
+
name: z.ZodString;
|
|
11
|
+
resultType: z.ZodOptional<z.ZodString>;
|
|
12
|
+
}, z.core.$strict>;
|
|
13
|
+
export declare const visualizationAvailableFieldSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
14
|
+
aggregations: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
15
|
+
distinct: z.ZodOptional<z.ZodBoolean>;
|
|
16
|
+
name: z.ZodString;
|
|
17
|
+
resultType: z.ZodOptional<z.ZodString>;
|
|
18
|
+
}, z.core.$strict>>>;
|
|
19
|
+
dataType: z.ZodType<"string" | "boolean" | "int" | "float" | "date" | "timestamp" | "timestamp_tz" | "time" | "real" | "decimal" | "json" | "grouped_dimension" | "geography", unknown, z.core.$ZodTypeInternals<"string" | "boolean" | "int" | "float" | "date" | "timestamp" | "timestamp_tz" | "time" | "real" | "decimal" | "json" | "grouped_dimension" | "geography", unknown>>;
|
|
20
|
+
fieldKey: z.ZodString;
|
|
21
|
+
isManualData: z.ZodOptional<z.ZodBoolean>;
|
|
22
|
+
kind: z.ZodDefault<z.ZodLiteral<"field">>;
|
|
23
|
+
name: z.ZodString;
|
|
24
|
+
schema: z.ZodString;
|
|
25
|
+
view: z.ZodString;
|
|
26
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
27
|
+
fieldKey: z.ZodString;
|
|
28
|
+
item: z.ZodObject<{
|
|
29
|
+
description: z.ZodOptional<z.ZodString>;
|
|
30
|
+
id: z.ZodOptional<z.ZodString>;
|
|
31
|
+
key: z.ZodString;
|
|
32
|
+
name: z.ZodString;
|
|
33
|
+
views: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
34
|
+
dimension: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
35
|
+
type: z.ZodLiteral<"dimension">;
|
|
36
|
+
}, z.core.$loose>;
|
|
37
|
+
kind: z.ZodLiteral<"dimension">;
|
|
38
|
+
name: z.ZodString;
|
|
39
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
40
|
+
fieldKey: z.ZodString;
|
|
41
|
+
item: z.ZodObject<{
|
|
42
|
+
description: z.ZodOptional<z.ZodString>;
|
|
43
|
+
id: z.ZodOptional<z.ZodString>;
|
|
44
|
+
key: z.ZodString;
|
|
45
|
+
name: z.ZodString;
|
|
46
|
+
views: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
47
|
+
measure: z.ZodObject<{
|
|
48
|
+
aggregation: z.ZodString;
|
|
49
|
+
}, z.core.$loose>;
|
|
50
|
+
type: z.ZodLiteral<"measure">;
|
|
51
|
+
}, z.core.$loose>;
|
|
52
|
+
kind: z.ZodLiteral<"measure">;
|
|
53
|
+
name: z.ZodString;
|
|
54
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
55
|
+
fieldKey: z.ZodString;
|
|
56
|
+
item: z.ZodObject<{
|
|
57
|
+
description: z.ZodOptional<z.ZodString>;
|
|
58
|
+
id: z.ZodOptional<z.ZodString>;
|
|
59
|
+
key: z.ZodString;
|
|
60
|
+
name: z.ZodString;
|
|
61
|
+
views: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
62
|
+
calculation: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
63
|
+
type: z.ZodLiteral<"calculation">;
|
|
64
|
+
}, z.core.$loose>;
|
|
65
|
+
kind: z.ZodLiteral<"calculation">;
|
|
66
|
+
name: z.ZodString;
|
|
67
|
+
}, z.core.$strict>]>;
|
|
68
|
+
export declare const valueFormattingSchema: z.ZodObject<{
|
|
69
|
+
currency: z.ZodOptional<z.ZodString>;
|
|
70
|
+
currencyIsPrefix: z.ZodOptional<z.ZodBoolean>;
|
|
71
|
+
formatString: z.ZodOptional<z.ZodString>;
|
|
72
|
+
formatType: z.ZodOptional<z.ZodType<"custom" | "day" | "month" | "none" | "inherit" | "quarter" | "yyyy" | "yy" | "hh" | "ddmmyyyy" | "ddmmyyyy2" | "ddmmyyyy3" | "yyyymmdd" | "mmddyyyy" | "mmddyyyy2" | "ddmmmmyyyy" | "ddmmmyyyy" | "ddmmmyy" | "mmmmddyyyy" | "mmmyyyy" | "yyyymmm" | "yyyymmmm" | "mmyyyy" | "yyyymm" | "mmmmyyyy" | "yyyywn" | "wnyyyy" | "yywn" | "yyyyq" | "qyyyy" | "yyyymmddhhmmss" | "yyyymmddhmmss" | "yyyymmddhhmm" | "yyyymmddhh" | "yyyymmddhmm" | "yyyymmddh" | "ddmmmyyyyhhmmss" | "ddmmmyyyyhmmss" | "ddmmmyyyyhhmm" | "ddmmmyyyyhmm" | "ddmmmyyyyh" | "hhmmss" | "hhmm" | "hmm" | "h" | "hmmss" | "month2" | "monthn" | "month3" | "quarter2" | "week1" | "week2" | "week3" | "dayOfWeek" | "hhn" | "hn" | "defaultNumber" | "defaultMoney" | "numberNoDecimal" | "number1Decimal" | "number2Decimal" | "abbreviationAuto" | "abbreviationNoDecimal" | "abbreviation1Decimal" | "abbreviation2Decimal" | "percentageNoDecimal" | "percentage1Decimal" | "percentage2Decimal" | "money0Decimal" | "money2Decimal" | "durationDays" | "durationHours" | "durationMinutes" | "durationSeconds" | "defaultDate" | "defaultDatetime" | "defaultTime", unknown, z.core.$ZodTypeInternals<"custom" | "day" | "month" | "none" | "inherit" | "quarter" | "yyyy" | "yy" | "hh" | "ddmmyyyy" | "ddmmyyyy2" | "ddmmyyyy3" | "yyyymmdd" | "mmddyyyy" | "mmddyyyy2" | "ddmmmmyyyy" | "ddmmmyyyy" | "ddmmmyy" | "mmmmddyyyy" | "mmmyyyy" | "yyyymmm" | "yyyymmmm" | "mmyyyy" | "yyyymm" | "mmmmyyyy" | "yyyywn" | "wnyyyy" | "yywn" | "yyyyq" | "qyyyy" | "yyyymmddhhmmss" | "yyyymmddhmmss" | "yyyymmddhhmm" | "yyyymmddhh" | "yyyymmddhmm" | "yyyymmddh" | "ddmmmyyyyhhmmss" | "ddmmmyyyyhmmss" | "ddmmmyyyyhhmm" | "ddmmmyyyyhmm" | "ddmmmyyyyh" | "hhmmss" | "hhmm" | "hmm" | "h" | "hmmss" | "month2" | "monthn" | "month3" | "quarter2" | "week1" | "week2" | "week3" | "dayOfWeek" | "hhn" | "hn" | "defaultNumber" | "defaultMoney" | "numberNoDecimal" | "number1Decimal" | "number2Decimal" | "abbreviationAuto" | "abbreviationNoDecimal" | "abbreviation1Decimal" | "abbreviation2Decimal" | "percentageNoDecimal" | "percentage1Decimal" | "percentage2Decimal" | "money0Decimal" | "money2Decimal" | "durationDays" | "durationHours" | "durationMinutes" | "durationSeconds" | "defaultDate" | "defaultDatetime" | "defaultTime", unknown>>>;
|
|
73
|
+
negativeType: z.ZodOptional<z.ZodType<"symbol" | "parenthesis", unknown, z.core.$ZodTypeInternals<"symbol" | "parenthesis", unknown>>>;
|
|
74
|
+
}, z.core.$strict>;
|
|
75
|
+
export declare const temporalGroupingDefinitionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
76
|
+
dateLevel: z.ZodType<"day" | "week" | "month" | "year" | "second" | "quarter" | "hour" | "minute" | "year-end" | "quarter-end" | "month-end" | "week-end", unknown, z.core.$ZodTypeInternals<"day" | "week" | "month" | "year" | "second" | "quarter" | "hour" | "minute" | "year-end" | "quarter-end" | "month-end" | "week-end", unknown>>;
|
|
77
|
+
mode: z.ZodLiteral<"level">;
|
|
78
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
79
|
+
datePart: z.ZodType<"day" | "month" | "year" | "second" | "quarter" | "hour" | "minute" | "dayofweekiso" | "dayofyear" | "weekiso" | "yearofweekiso", unknown, z.core.$ZodTypeInternals<"day" | "month" | "year" | "second" | "quarter" | "hour" | "minute" | "dayofweekiso" | "dayofyear" | "weekiso" | "yearofweekiso", unknown>>;
|
|
80
|
+
mode: z.ZodLiteral<"part">;
|
|
81
|
+
}, z.core.$strict>], "mode">;
|
|
82
|
+
export declare const dimensionDefinitionSchema: z.ZodObject<{
|
|
83
|
+
fieldKey: z.ZodString;
|
|
84
|
+
format: z.ZodOptional<z.ZodObject<{
|
|
85
|
+
formatString: z.ZodOptional<z.ZodString>;
|
|
86
|
+
formatType: z.ZodOptional<z.ZodType<"custom" | "day" | "month" | "none" | "inherit" | "quarter" | "yyyy" | "yy" | "hh" | "ddmmyyyy" | "ddmmyyyy2" | "ddmmyyyy3" | "yyyymmdd" | "mmddyyyy" | "mmddyyyy2" | "ddmmmmyyyy" | "ddmmmyyyy" | "ddmmmyy" | "mmmmddyyyy" | "mmmyyyy" | "yyyymmm" | "yyyymmmm" | "mmyyyy" | "yyyymm" | "mmmmyyyy" | "yyyywn" | "wnyyyy" | "yywn" | "yyyyq" | "qyyyy" | "yyyymmddhhmmss" | "yyyymmddhmmss" | "yyyymmddhhmm" | "yyyymmddhh" | "yyyymmddhmm" | "yyyymmddh" | "ddmmmyyyyhhmmss" | "ddmmmyyyyhmmss" | "ddmmmyyyyhhmm" | "ddmmmyyyyhmm" | "ddmmmyyyyh" | "hhmmss" | "hhmm" | "hmm" | "h" | "hmmss" | "month2" | "monthn" | "month3" | "quarter2" | "week1" | "week2" | "week3" | "dayOfWeek" | "hhn" | "hn" | "defaultNumber" | "defaultMoney" | "numberNoDecimal" | "number1Decimal" | "number2Decimal" | "abbreviationAuto" | "abbreviationNoDecimal" | "abbreviation1Decimal" | "abbreviation2Decimal" | "percentageNoDecimal" | "percentage1Decimal" | "percentage2Decimal" | "money0Decimal" | "money2Decimal" | "durationDays" | "durationHours" | "durationMinutes" | "durationSeconds" | "defaultDate" | "defaultDatetime" | "defaultTime", unknown, z.core.$ZodTypeInternals<"custom" | "day" | "month" | "none" | "inherit" | "quarter" | "yyyy" | "yy" | "hh" | "ddmmyyyy" | "ddmmyyyy2" | "ddmmyyyy3" | "yyyymmdd" | "mmddyyyy" | "mmddyyyy2" | "ddmmmmyyyy" | "ddmmmyyyy" | "ddmmmyy" | "mmmmddyyyy" | "mmmyyyy" | "yyyymmm" | "yyyymmmm" | "mmyyyy" | "yyyymm" | "mmmmyyyy" | "yyyywn" | "wnyyyy" | "yywn" | "yyyyq" | "qyyyy" | "yyyymmddhhmmss" | "yyyymmddhmmss" | "yyyymmddhhmm" | "yyyymmddhh" | "yyyymmddhmm" | "yyyymmddh" | "ddmmmyyyyhhmmss" | "ddmmmyyyyhmmss" | "ddmmmyyyyhhmm" | "ddmmmyyyyhmm" | "ddmmmyyyyh" | "hhmmss" | "hhmm" | "hmm" | "h" | "hmmss" | "month2" | "monthn" | "month3" | "quarter2" | "week1" | "week2" | "week3" | "dayOfWeek" | "hhn" | "hn" | "defaultNumber" | "defaultMoney" | "numberNoDecimal" | "number1Decimal" | "number2Decimal" | "abbreviationAuto" | "abbreviationNoDecimal" | "abbreviation1Decimal" | "abbreviation2Decimal" | "percentageNoDecimal" | "percentage1Decimal" | "percentage2Decimal" | "money0Decimal" | "money2Decimal" | "durationDays" | "durationHours" | "durationMinutes" | "durationSeconds" | "defaultDate" | "defaultDatetime" | "defaultTime", unknown>>>;
|
|
87
|
+
}, z.core.$strict>>;
|
|
88
|
+
ref: z.ZodString;
|
|
89
|
+
showNullValues: z.ZodOptional<z.ZodBoolean>;
|
|
90
|
+
temporalGrouping: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
91
|
+
dateLevel: z.ZodType<"day" | "week" | "month" | "year" | "second" | "quarter" | "hour" | "minute" | "year-end" | "quarter-end" | "month-end" | "week-end", unknown, z.core.$ZodTypeInternals<"day" | "week" | "month" | "year" | "second" | "quarter" | "hour" | "minute" | "year-end" | "quarter-end" | "month-end" | "week-end", unknown>>;
|
|
92
|
+
mode: z.ZodLiteral<"level">;
|
|
93
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
94
|
+
datePart: z.ZodType<"day" | "month" | "year" | "second" | "quarter" | "hour" | "minute" | "dayofweekiso" | "dayofyear" | "weekiso" | "yearofweekiso", unknown, z.core.$ZodTypeInternals<"day" | "month" | "year" | "second" | "quarter" | "hour" | "minute" | "dayofweekiso" | "dayofyear" | "weekiso" | "yearofweekiso", unknown>>;
|
|
95
|
+
mode: z.ZodLiteral<"part">;
|
|
96
|
+
}, z.core.$strict>], "mode">>;
|
|
97
|
+
}, z.core.$strict>;
|
|
98
|
+
export declare const measureDefinitionSchema: z.ZodObject<{
|
|
99
|
+
aggregation: z.ZodOptional<z.ZodString>;
|
|
100
|
+
dataLabels: z.ZodOptional<z.ZodObject<{
|
|
101
|
+
placements: z.ZodOptional<z.ZodArray<z.ZodType<"inside" | "outside" | "opposite", unknown, z.core.$ZodTypeInternals<"inside" | "outside" | "opposite", unknown>>>>;
|
|
102
|
+
visible: z.ZodBoolean;
|
|
103
|
+
}, z.core.$strict>>;
|
|
104
|
+
fieldKey: z.ZodString;
|
|
105
|
+
format: z.ZodOptional<z.ZodObject<{
|
|
106
|
+
currency: z.ZodOptional<z.ZodString>;
|
|
107
|
+
currencyIsPrefix: z.ZodOptional<z.ZodBoolean>;
|
|
108
|
+
formatString: z.ZodOptional<z.ZodString>;
|
|
109
|
+
formatType: z.ZodOptional<z.ZodType<"custom" | "day" | "month" | "none" | "inherit" | "quarter" | "yyyy" | "yy" | "hh" | "ddmmyyyy" | "ddmmyyyy2" | "ddmmyyyy3" | "yyyymmdd" | "mmddyyyy" | "mmddyyyy2" | "ddmmmmyyyy" | "ddmmmyyyy" | "ddmmmyy" | "mmmmddyyyy" | "mmmyyyy" | "yyyymmm" | "yyyymmmm" | "mmyyyy" | "yyyymm" | "mmmmyyyy" | "yyyywn" | "wnyyyy" | "yywn" | "yyyyq" | "qyyyy" | "yyyymmddhhmmss" | "yyyymmddhmmss" | "yyyymmddhhmm" | "yyyymmddhh" | "yyyymmddhmm" | "yyyymmddh" | "ddmmmyyyyhhmmss" | "ddmmmyyyyhmmss" | "ddmmmyyyyhhmm" | "ddmmmyyyyhmm" | "ddmmmyyyyh" | "hhmmss" | "hhmm" | "hmm" | "h" | "hmmss" | "month2" | "monthn" | "month3" | "quarter2" | "week1" | "week2" | "week3" | "dayOfWeek" | "hhn" | "hn" | "defaultNumber" | "defaultMoney" | "numberNoDecimal" | "number1Decimal" | "number2Decimal" | "abbreviationAuto" | "abbreviationNoDecimal" | "abbreviation1Decimal" | "abbreviation2Decimal" | "percentageNoDecimal" | "percentage1Decimal" | "percentage2Decimal" | "money0Decimal" | "money2Decimal" | "durationDays" | "durationHours" | "durationMinutes" | "durationSeconds" | "defaultDate" | "defaultDatetime" | "defaultTime", unknown, z.core.$ZodTypeInternals<"custom" | "day" | "month" | "none" | "inherit" | "quarter" | "yyyy" | "yy" | "hh" | "ddmmyyyy" | "ddmmyyyy2" | "ddmmyyyy3" | "yyyymmdd" | "mmddyyyy" | "mmddyyyy2" | "ddmmmmyyyy" | "ddmmmyyyy" | "ddmmmyy" | "mmmmddyyyy" | "mmmyyyy" | "yyyymmm" | "yyyymmmm" | "mmyyyy" | "yyyymm" | "mmmmyyyy" | "yyyywn" | "wnyyyy" | "yywn" | "yyyyq" | "qyyyy" | "yyyymmddhhmmss" | "yyyymmddhmmss" | "yyyymmddhhmm" | "yyyymmddhh" | "yyyymmddhmm" | "yyyymmddh" | "ddmmmyyyyhhmmss" | "ddmmmyyyyhmmss" | "ddmmmyyyyhhmm" | "ddmmmyyyyhmm" | "ddmmmyyyyh" | "hhmmss" | "hhmm" | "hmm" | "h" | "hmmss" | "month2" | "monthn" | "month3" | "quarter2" | "week1" | "week2" | "week3" | "dayOfWeek" | "hhn" | "hn" | "defaultNumber" | "defaultMoney" | "numberNoDecimal" | "number1Decimal" | "number2Decimal" | "abbreviationAuto" | "abbreviationNoDecimal" | "abbreviation1Decimal" | "abbreviation2Decimal" | "percentageNoDecimal" | "percentage1Decimal" | "percentage2Decimal" | "money0Decimal" | "money2Decimal" | "durationDays" | "durationHours" | "durationMinutes" | "durationSeconds" | "defaultDate" | "defaultDatetime" | "defaultTime", unknown>>>;
|
|
110
|
+
negativeType: z.ZodOptional<z.ZodType<"symbol" | "parenthesis", unknown, z.core.$ZodTypeInternals<"symbol" | "parenthesis", unknown>>>;
|
|
111
|
+
}, z.core.$strict>>;
|
|
112
|
+
ref: z.ZodString;
|
|
113
|
+
}, z.core.$strict>;
|
|
114
|
+
export declare const visualizationStaticFilterSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
115
|
+
fieldKey: z.ZodString;
|
|
116
|
+
operator: z.ZodType<"equals" | "contains" | "startsWith" | "endsWith" | "like" | "doesNotEqual" | "greaterThan" | "lessThan" | "greaterThanOrEqualTo" | "lessThanOrEqualTo" | "excludes" | "notLike", unknown, z.core.$ZodTypeInternals<"equals" | "contains" | "startsWith" | "endsWith" | "like" | "doesNotEqual" | "greaterThan" | "lessThan" | "greaterThanOrEqualTo" | "lessThanOrEqualTo" | "excludes" | "notLike", unknown>>;
|
|
117
|
+
value: z.ZodString;
|
|
118
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
119
|
+
fieldKey: z.ZodString;
|
|
120
|
+
operator: z.ZodType<"isBetween" | "isNotBetween", unknown, z.core.$ZodTypeInternals<"isBetween" | "isNotBetween", unknown>>;
|
|
121
|
+
valueFrom: z.ZodString;
|
|
122
|
+
valueTo: z.ZodString;
|
|
123
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
124
|
+
fieldKey: z.ZodString;
|
|
125
|
+
operator: z.ZodType<"inList" | "excludedFromList", unknown, z.core.$ZodTypeInternals<"inList" | "excludedFromList", unknown>>;
|
|
126
|
+
values: z.ZodArray<z.ZodString>;
|
|
127
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
128
|
+
fieldKey: z.ZodString;
|
|
129
|
+
operator: z.ZodType<"isNull" | "notNull", unknown, z.core.$ZodTypeInternals<"isNull" | "notNull", unknown>>;
|
|
130
|
+
}, z.core.$strict>]>;
|
|
131
|
+
export interface VisualizationStaticFilterGroup {
|
|
132
|
+
filters: Array<VisualizationStaticFilter | VisualizationStaticFilterGroup>;
|
|
133
|
+
operator: 'and' | 'or';
|
|
134
|
+
}
|
|
135
|
+
export declare const visualizationStaticFilterGroupSchema: z.ZodType<VisualizationStaticFilterGroup>;
|
|
136
|
+
export declare const sortingDefinitionSchema: z.ZodObject<{
|
|
137
|
+
by: z.ZodString;
|
|
138
|
+
direction: z.ZodType<"asc" | "desc", unknown, z.core.$ZodTypeInternals<"asc" | "desc", unknown>>;
|
|
139
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
140
|
+
}, z.core.$strict>;
|
|
141
|
+
export declare const limitingDefinitionSchema: z.ZodObject<{
|
|
142
|
+
queryLimit: z.ZodOptional<z.ZodNumber>;
|
|
143
|
+
topN: z.ZodOptional<z.ZodObject<{
|
|
144
|
+
by: z.ZodString;
|
|
145
|
+
count: z.ZodNumber;
|
|
146
|
+
direction: z.ZodType<"asc" | "desc", unknown, z.core.$ZodTypeInternals<"asc" | "desc", unknown>>;
|
|
147
|
+
showOthers: z.ZodOptional<z.ZodBoolean>;
|
|
148
|
+
}, z.core.$strict>>;
|
|
149
|
+
}, z.core.$strict>;
|
|
150
|
+
export declare const legendDefinitionSchema: z.ZodObject<{
|
|
151
|
+
position: z.ZodOptional<z.ZodType<"top" | "bottom" | "left" | "right", unknown, z.core.$ZodTypeInternals<"top" | "bottom" | "left" | "right", unknown>>>;
|
|
152
|
+
title: z.ZodOptional<z.ZodString>;
|
|
153
|
+
visible: z.ZodOptional<z.ZodBoolean>;
|
|
154
|
+
}, z.core.$strict>;
|
|
155
|
+
export declare const axisDefinitionSchema: z.ZodObject<{
|
|
156
|
+
labelsVisible: z.ZodOptional<z.ZodBoolean>;
|
|
157
|
+
lineVisible: z.ZodOptional<z.ZodBoolean>;
|
|
158
|
+
ticksVisible: z.ZodOptional<z.ZodBoolean>;
|
|
159
|
+
title: z.ZodOptional<z.ZodString>;
|
|
160
|
+
titleVisible: z.ZodOptional<z.ZodBoolean>;
|
|
161
|
+
}, z.core.$strict>;
|
|
162
|
+
/**
|
|
163
|
+
* The range mode follows from the ends given: both fix the axis, one fixes that end, neither fits
|
|
164
|
+
* the data. `startsAtZero` applies only to a fitted axis, so the two shapes are alternatives rather
|
|
165
|
+
* than a refinement, which keeps the rule in the JSON Schema. `min < max` cannot be expressed there,
|
|
166
|
+
* so the compiler checks it.
|
|
167
|
+
*/
|
|
168
|
+
export declare const measureAxisRangeDefinitionSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
169
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
170
|
+
min: z.ZodOptional<z.ZodNumber>;
|
|
171
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
172
|
+
startsAtZero: z.ZodBoolean;
|
|
173
|
+
}, z.core.$strict>]>;
|
|
174
|
+
declare const coloringOverwriteDefinitionSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
175
|
+
color: z.ZodString;
|
|
176
|
+
operator: z.ZodOptional<z.ZodEnum<{
|
|
177
|
+
equals: "equals";
|
|
178
|
+
contains: "contains";
|
|
179
|
+
startsWith: "startsWith";
|
|
180
|
+
endsWith: "endsWith";
|
|
181
|
+
greater: "greater";
|
|
182
|
+
less: "less";
|
|
183
|
+
"greater-equals": "greater-equals";
|
|
184
|
+
"less-equals": "less-equals";
|
|
185
|
+
}>>;
|
|
186
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
187
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
188
|
+
color: z.ZodString;
|
|
189
|
+
operator: z.ZodLiteral<"between">;
|
|
190
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
191
|
+
secondValue: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
192
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
193
|
+
color: z.ZodString;
|
|
194
|
+
operator: z.ZodEnum<{
|
|
195
|
+
inList: "inList";
|
|
196
|
+
notInList: "notInList";
|
|
197
|
+
}>;
|
|
198
|
+
values: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
199
|
+
delimiter: z.ZodOptional<z.ZodString>;
|
|
200
|
+
}, z.core.$strict>]>;
|
|
201
|
+
declare const coloringRuleDefinitionSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
202
|
+
measure: z.ZodString;
|
|
203
|
+
color: z.ZodString;
|
|
204
|
+
operator: z.ZodEnum<{
|
|
205
|
+
equals: "equals";
|
|
206
|
+
greater: "greater";
|
|
207
|
+
less: "less";
|
|
208
|
+
"greater-equals": "greater-equals";
|
|
209
|
+
"less-equals": "less-equals";
|
|
210
|
+
"not-equals": "not-equals";
|
|
211
|
+
}>;
|
|
212
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
213
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
214
|
+
measure: z.ZodString;
|
|
215
|
+
color: z.ZodString;
|
|
216
|
+
operator: z.ZodLiteral<"between">;
|
|
217
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
218
|
+
secondValue: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
219
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
220
|
+
measure: z.ZodString;
|
|
221
|
+
color: z.ZodString;
|
|
222
|
+
operator: z.ZodEnum<{
|
|
223
|
+
inList: "inList";
|
|
224
|
+
notInList: "notInList";
|
|
225
|
+
}>;
|
|
226
|
+
values: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
227
|
+
delimiter: z.ZodOptional<z.ZodString>;
|
|
228
|
+
}, z.core.$strict>]>;
|
|
229
|
+
export type ColoringOverwriteDefinition = z.infer<typeof coloringOverwriteDefinitionSchema> & {
|
|
230
|
+
dimension?: string;
|
|
231
|
+
};
|
|
232
|
+
export type ColoringRuleDefinition = z.infer<typeof coloringRuleDefinitionSchema>;
|
|
233
|
+
export interface ColoringDefinition {
|
|
234
|
+
overwrites?: ColoringOverwriteDefinition[];
|
|
235
|
+
rules?: ColoringRuleDefinition[];
|
|
236
|
+
}
|
|
237
|
+
/**
|
|
238
|
+
* Conditional coloring, for the charts whose panel offers it. Charts that disable measure rules
|
|
239
|
+
* in the panel (line, radar) accept overwrites only, and only sankey names a dimension per overwrite.
|
|
240
|
+
*/
|
|
241
|
+
export declare const createColoringDefinitionSchema: (options: {
|
|
242
|
+
requiresOverwriteDimension?: boolean;
|
|
243
|
+
rules: boolean;
|
|
244
|
+
}) => z.ZodType<ColoringDefinition>;
|
|
245
|
+
/**
|
|
246
|
+
* Every setting a measure axis can take. Each chart's schema accepts only the subset its renderer
|
|
247
|
+
* honours, built by `createAxesDefinitionSchema`.
|
|
248
|
+
*/
|
|
249
|
+
export declare const measureAxisDefinitionSchema: z.ZodObject<{
|
|
250
|
+
labelsVisible: z.ZodOptional<z.ZodBoolean>;
|
|
251
|
+
lineVisible: z.ZodOptional<z.ZodBoolean>;
|
|
252
|
+
ticksVisible: z.ZodOptional<z.ZodBoolean>;
|
|
253
|
+
title: z.ZodOptional<z.ZodString>;
|
|
254
|
+
titleVisible: z.ZodOptional<z.ZodBoolean>;
|
|
255
|
+
scale: z.ZodOptional<z.ZodType<"linear" | "log", unknown, z.core.$ZodTypeInternals<"linear" | "log", unknown>>>;
|
|
256
|
+
bands: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
257
|
+
start: z.ZodNumber;
|
|
258
|
+
end: z.ZodNumber;
|
|
259
|
+
color: z.ZodOptional<z.ZodString>;
|
|
260
|
+
label: z.ZodOptional<z.ZodString>;
|
|
261
|
+
}, z.core.$strict>>>;
|
|
262
|
+
inverted: z.ZodOptional<z.ZodBoolean>;
|
|
263
|
+
range: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
264
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
265
|
+
min: z.ZodOptional<z.ZodNumber>;
|
|
266
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
267
|
+
startsAtZero: z.ZodBoolean;
|
|
268
|
+
}, z.core.$strict>]>>;
|
|
269
|
+
}, z.core.$strict>;
|
|
270
|
+
export type RangedMeasureAxisName = 'primaryMeasure' | 'secondaryMeasure';
|
|
271
|
+
export interface AxesDefinitionOptions {
|
|
272
|
+
/** Whether the measure axes accept `scale`, for the charts that draw logarithmic axes. */
|
|
273
|
+
logScale?: boolean;
|
|
274
|
+
/** Whether the primary measure axis accepts `bands`. */
|
|
275
|
+
primaryMeasureBands?: boolean;
|
|
276
|
+
/** The measure axes whose range and direction the chart honours, which accept `inverted` and `range`. */
|
|
277
|
+
rangedMeasureAxes?: RangedMeasureAxisName[];
|
|
278
|
+
}
|
|
279
|
+
type AxesDefinitionSchema = z.ZodObject<{
|
|
280
|
+
dimension: z.ZodOptional<typeof axisDefinitionSchema>;
|
|
281
|
+
primaryMeasure: z.ZodOptional<typeof measureAxisDefinitionSchema>;
|
|
282
|
+
secondaryMeasure: z.ZodOptional<typeof measureAxisDefinitionSchema>;
|
|
283
|
+
}, z.core.$strict>;
|
|
284
|
+
/**
|
|
285
|
+
* Builds the axes section. Each measure axis accepts only the settings the chart's renderer
|
|
286
|
+
* honours, so the runtime schema - and the JSON Schema callers receive - rejects the rest. The
|
|
287
|
+
* declared type lists every measure-axis setting, so the compilers can read any of them.
|
|
288
|
+
*/
|
|
289
|
+
export declare const createAxesDefinitionSchema: ({ logScale, primaryMeasureBands, rangedMeasureAxes, }?: AxesDefinitionOptions) => AxesDefinitionSchema;
|
|
290
|
+
export declare const axesDefinitionSchema: AxesDefinitionSchema;
|
|
291
|
+
/** Bar and line draw bands, log scales, ranges and inversion on their measure axes. */
|
|
292
|
+
export declare const cartesianPresentationSchema: z.ZodObject<{
|
|
293
|
+
axes: z.ZodOptional<AxesDefinitionSchema>;
|
|
294
|
+
legend: z.ZodOptional<z.ZodObject<{
|
|
295
|
+
position: z.ZodOptional<z.ZodType<"top" | "bottom" | "left" | "right", unknown, z.core.$ZodTypeInternals<"top" | "bottom" | "left" | "right", unknown>>>;
|
|
296
|
+
title: z.ZodOptional<z.ZodString>;
|
|
297
|
+
visible: z.ZodOptional<z.ZodBoolean>;
|
|
298
|
+
}, z.core.$strict>>;
|
|
299
|
+
orientation: z.ZodOptional<z.ZodType<"horizontal" | "vertical", unknown, z.core.$ZodTypeInternals<"horizontal" | "vertical", unknown>>>;
|
|
300
|
+
}, z.core.$strict>;
|
|
301
|
+
export type VisualizationAvailableField = z.infer<typeof visualizationAvailableFieldSchema>;
|
|
302
|
+
export type VisualizationStaticFilter = z.infer<typeof visualizationStaticFilterSchema>;
|
|
303
|
+
export type TemporalGroupingDefinition = z.infer<typeof temporalGroupingDefinitionSchema>;
|
|
304
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const filterVisualizationDefinitionSchema: z.ZodObject<{
|
|
3
|
+
data: z.ZodObject<{
|
|
4
|
+
field: z.ZodObject<{
|
|
5
|
+
fieldKey: z.ZodString;
|
|
6
|
+
ref: z.ZodString;
|
|
7
|
+
}, z.core.$strict>;
|
|
8
|
+
}, z.core.$strict>;
|
|
9
|
+
presentation: z.ZodOptional<z.ZodObject<{
|
|
10
|
+
mode: z.ZodOptional<z.ZodEnum<{
|
|
11
|
+
dropdown: "dropdown";
|
|
12
|
+
listbox: "listbox";
|
|
13
|
+
}>>;
|
|
14
|
+
quickSelect: z.ZodOptional<z.ZodBoolean>;
|
|
15
|
+
responsive: z.ZodOptional<z.ZodBoolean>;
|
|
16
|
+
searchable: z.ZodOptional<z.ZodBoolean>;
|
|
17
|
+
showProgressBar: z.ZodOptional<z.ZodBoolean>;
|
|
18
|
+
}, z.core.$strict>>;
|
|
19
|
+
type: z.ZodLiteral<"filter">;
|
|
20
|
+
version: z.ZodLiteral<1>;
|
|
21
|
+
}, z.core.$strict>;
|
|
22
|
+
export type FilterVisualizationDefinition = z.infer<typeof filterVisualizationDefinitionSchema>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { barVisualizationDefinitionSchema, type BarVisualizationDefinition } from './bar.schema';
|
|
2
|
+
export * from './broad-chart.schema';
|
|
3
|
+
export { dimensionDefinitionSchema, measureDefinitionSchema, temporalGroupingDefinitionSchema, valueFormattingSchema, visualizationAvailableFieldAggregationSchema, visualizationAvailableFieldSchema, visualizationStaticFilterGroupSchema, type TemporalGroupingDefinition, type VisualizationAvailableField, type VisualizationStaticFilterGroup, } from './common.schema';
|
|
4
|
+
export { filterVisualizationDefinitionSchema, type FilterVisualizationDefinition } from './filter.schema';
|
|
5
|
+
export { appFilterBarVisualizationDefinitionSchema, type AppFilterBarVisualizationDefinition, } from './app-filter-bar.schema';
|
|
6
|
+
export { lineVisualizationDefinitionSchema, type LineVisualizationDefinition } from './line.schema';
|
|
7
|
+
export { numberVisualizationDefinitionSchema, type NumberVisualizationDefinition } from './number.schema';
|
|
8
|
+
export * from './object.schema';
|
|
9
|
+
export { tableDataDefinitionSchema, tableVisualizationDefinitionSchema, type TableDataDefinition, type TablePresentationDefinition, type TableTotalsDefinition, type TableVisualizationDefinition, } from './table.schema';
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const lineVisualizationDefinitionSchema: z.ZodObject<{
|
|
3
|
+
data: z.ZodObject<{
|
|
4
|
+
dimensions: z.ZodArray<z.ZodObject<{
|
|
5
|
+
fieldKey: z.ZodString;
|
|
6
|
+
format: z.ZodOptional<z.ZodObject<{
|
|
7
|
+
formatString: z.ZodOptional<z.ZodString>;
|
|
8
|
+
formatType: z.ZodOptional<z.ZodType<"custom" | "day" | "month" | "none" | "inherit" | "quarter" | "yyyy" | "yy" | "hh" | "ddmmyyyy" | "ddmmyyyy2" | "ddmmyyyy3" | "yyyymmdd" | "mmddyyyy" | "mmddyyyy2" | "ddmmmmyyyy" | "ddmmmyyyy" | "ddmmmyy" | "mmmmddyyyy" | "mmmyyyy" | "yyyymmm" | "yyyymmmm" | "mmyyyy" | "yyyymm" | "mmmmyyyy" | "yyyywn" | "wnyyyy" | "yywn" | "yyyyq" | "qyyyy" | "yyyymmddhhmmss" | "yyyymmddhmmss" | "yyyymmddhhmm" | "yyyymmddhh" | "yyyymmddhmm" | "yyyymmddh" | "ddmmmyyyyhhmmss" | "ddmmmyyyyhmmss" | "ddmmmyyyyhhmm" | "ddmmmyyyyhmm" | "ddmmmyyyyh" | "hhmmss" | "hhmm" | "hmm" | "h" | "hmmss" | "month2" | "monthn" | "month3" | "quarter2" | "week1" | "week2" | "week3" | "dayOfWeek" | "hhn" | "hn" | "defaultNumber" | "defaultMoney" | "numberNoDecimal" | "number1Decimal" | "number2Decimal" | "abbreviationAuto" | "abbreviationNoDecimal" | "abbreviation1Decimal" | "abbreviation2Decimal" | "percentageNoDecimal" | "percentage1Decimal" | "percentage2Decimal" | "money0Decimal" | "money2Decimal" | "durationDays" | "durationHours" | "durationMinutes" | "durationSeconds" | "defaultDate" | "defaultDatetime" | "defaultTime", unknown, z.core.$ZodTypeInternals<"custom" | "day" | "month" | "none" | "inherit" | "quarter" | "yyyy" | "yy" | "hh" | "ddmmyyyy" | "ddmmyyyy2" | "ddmmyyyy3" | "yyyymmdd" | "mmddyyyy" | "mmddyyyy2" | "ddmmmmyyyy" | "ddmmmyyyy" | "ddmmmyy" | "mmmmddyyyy" | "mmmyyyy" | "yyyymmm" | "yyyymmmm" | "mmyyyy" | "yyyymm" | "mmmmyyyy" | "yyyywn" | "wnyyyy" | "yywn" | "yyyyq" | "qyyyy" | "yyyymmddhhmmss" | "yyyymmddhmmss" | "yyyymmddhhmm" | "yyyymmddhh" | "yyyymmddhmm" | "yyyymmddh" | "ddmmmyyyyhhmmss" | "ddmmmyyyyhmmss" | "ddmmmyyyyhhmm" | "ddmmmyyyyhmm" | "ddmmmyyyyh" | "hhmmss" | "hhmm" | "hmm" | "h" | "hmmss" | "month2" | "monthn" | "month3" | "quarter2" | "week1" | "week2" | "week3" | "dayOfWeek" | "hhn" | "hn" | "defaultNumber" | "defaultMoney" | "numberNoDecimal" | "number1Decimal" | "number2Decimal" | "abbreviationAuto" | "abbreviationNoDecimal" | "abbreviation1Decimal" | "abbreviation2Decimal" | "percentageNoDecimal" | "percentage1Decimal" | "percentage2Decimal" | "money0Decimal" | "money2Decimal" | "durationDays" | "durationHours" | "durationMinutes" | "durationSeconds" | "defaultDate" | "defaultDatetime" | "defaultTime", unknown>>>;
|
|
9
|
+
}, z.core.$strict>>;
|
|
10
|
+
ref: z.ZodString;
|
|
11
|
+
showNullValues: z.ZodOptional<z.ZodBoolean>;
|
|
12
|
+
temporalGrouping: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
13
|
+
dateLevel: z.ZodType<"day" | "week" | "month" | "year" | "second" | "quarter" | "hour" | "minute" | "year-end" | "quarter-end" | "month-end" | "week-end", unknown, z.core.$ZodTypeInternals<"day" | "week" | "month" | "year" | "second" | "quarter" | "hour" | "minute" | "year-end" | "quarter-end" | "month-end" | "week-end", unknown>>;
|
|
14
|
+
mode: z.ZodLiteral<"level">;
|
|
15
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
16
|
+
datePart: z.ZodType<"day" | "month" | "year" | "second" | "quarter" | "hour" | "minute" | "dayofweekiso" | "dayofyear" | "weekiso" | "yearofweekiso", unknown, z.core.$ZodTypeInternals<"day" | "month" | "year" | "second" | "quarter" | "hour" | "minute" | "dayofweekiso" | "dayofyear" | "weekiso" | "yearofweekiso", unknown>>;
|
|
17
|
+
mode: z.ZodLiteral<"part">;
|
|
18
|
+
}, z.core.$strict>], "mode">>;
|
|
19
|
+
}, z.core.$strict>>;
|
|
20
|
+
measures: z.ZodArray<z.ZodObject<{
|
|
21
|
+
aggregation: z.ZodOptional<z.ZodString>;
|
|
22
|
+
format: z.ZodOptional<z.ZodObject<{
|
|
23
|
+
currency: z.ZodOptional<z.ZodString>;
|
|
24
|
+
currencyIsPrefix: z.ZodOptional<z.ZodBoolean>;
|
|
25
|
+
formatString: z.ZodOptional<z.ZodString>;
|
|
26
|
+
formatType: z.ZodOptional<z.ZodType<"custom" | "day" | "month" | "none" | "inherit" | "quarter" | "yyyy" | "yy" | "hh" | "ddmmyyyy" | "ddmmyyyy2" | "ddmmyyyy3" | "yyyymmdd" | "mmddyyyy" | "mmddyyyy2" | "ddmmmmyyyy" | "ddmmmyyyy" | "ddmmmyy" | "mmmmddyyyy" | "mmmyyyy" | "yyyymmm" | "yyyymmmm" | "mmyyyy" | "yyyymm" | "mmmmyyyy" | "yyyywn" | "wnyyyy" | "yywn" | "yyyyq" | "qyyyy" | "yyyymmddhhmmss" | "yyyymmddhmmss" | "yyyymmddhhmm" | "yyyymmddhh" | "yyyymmddhmm" | "yyyymmddh" | "ddmmmyyyyhhmmss" | "ddmmmyyyyhmmss" | "ddmmmyyyyhhmm" | "ddmmmyyyyhmm" | "ddmmmyyyyh" | "hhmmss" | "hhmm" | "hmm" | "h" | "hmmss" | "month2" | "monthn" | "month3" | "quarter2" | "week1" | "week2" | "week3" | "dayOfWeek" | "hhn" | "hn" | "defaultNumber" | "defaultMoney" | "numberNoDecimal" | "number1Decimal" | "number2Decimal" | "abbreviationAuto" | "abbreviationNoDecimal" | "abbreviation1Decimal" | "abbreviation2Decimal" | "percentageNoDecimal" | "percentage1Decimal" | "percentage2Decimal" | "money0Decimal" | "money2Decimal" | "durationDays" | "durationHours" | "durationMinutes" | "durationSeconds" | "defaultDate" | "defaultDatetime" | "defaultTime", unknown, z.core.$ZodTypeInternals<"custom" | "day" | "month" | "none" | "inherit" | "quarter" | "yyyy" | "yy" | "hh" | "ddmmyyyy" | "ddmmyyyy2" | "ddmmyyyy3" | "yyyymmdd" | "mmddyyyy" | "mmddyyyy2" | "ddmmmmyyyy" | "ddmmmyyyy" | "ddmmmyy" | "mmmmddyyyy" | "mmmyyyy" | "yyyymmm" | "yyyymmmm" | "mmyyyy" | "yyyymm" | "mmmmyyyy" | "yyyywn" | "wnyyyy" | "yywn" | "yyyyq" | "qyyyy" | "yyyymmddhhmmss" | "yyyymmddhmmss" | "yyyymmddhhmm" | "yyyymmddhh" | "yyyymmddhmm" | "yyyymmddh" | "ddmmmyyyyhhmmss" | "ddmmmyyyyhmmss" | "ddmmmyyyyhhmm" | "ddmmmyyyyhmm" | "ddmmmyyyyh" | "hhmmss" | "hhmm" | "hmm" | "h" | "hmmss" | "month2" | "monthn" | "month3" | "quarter2" | "week1" | "week2" | "week3" | "dayOfWeek" | "hhn" | "hn" | "defaultNumber" | "defaultMoney" | "numberNoDecimal" | "number1Decimal" | "number2Decimal" | "abbreviationAuto" | "abbreviationNoDecimal" | "abbreviation1Decimal" | "abbreviation2Decimal" | "percentageNoDecimal" | "percentage1Decimal" | "percentage2Decimal" | "money0Decimal" | "money2Decimal" | "durationDays" | "durationHours" | "durationMinutes" | "durationSeconds" | "defaultDate" | "defaultDatetime" | "defaultTime", unknown>>>;
|
|
27
|
+
negativeType: z.ZodOptional<z.ZodType<"symbol" | "parenthesis", unknown, z.core.$ZodTypeInternals<"symbol" | "parenthesis", unknown>>>;
|
|
28
|
+
}, z.core.$strict>>;
|
|
29
|
+
fieldKey: z.ZodString;
|
|
30
|
+
ref: z.ZodString;
|
|
31
|
+
axis: z.ZodOptional<z.ZodEnum<{
|
|
32
|
+
primary: "primary";
|
|
33
|
+
secondary: "secondary";
|
|
34
|
+
}>>;
|
|
35
|
+
dataPointShape: z.ZodType<"bar" | "circle" | "triangle" | "square" | "star" | "cross" | "diamond" | "n-polygon" | "rectangle" | "saltire" | "vertical-bar" | null | undefined, unknown, z.core.$ZodTypeInternals<"bar" | "circle" | "triangle" | "square" | "star" | "cross" | "diamond" | "n-polygon" | "rectangle" | "saltire" | "vertical-bar" | null | undefined, unknown>>;
|
|
36
|
+
}, z.core.$strict>>;
|
|
37
|
+
}, z.core.$strict>;
|
|
38
|
+
filterGroup: z.ZodOptional<z.ZodType<import("./common.schema").VisualizationStaticFilterGroup, unknown, z.core.$ZodTypeInternals<import("./common.schema").VisualizationStaticFilterGroup, unknown>>>;
|
|
39
|
+
limiting: z.ZodOptional<z.ZodObject<{
|
|
40
|
+
queryLimit: z.ZodOptional<z.ZodNumber>;
|
|
41
|
+
}, z.core.$strict>>;
|
|
42
|
+
presentation: z.ZodOptional<z.ZodObject<{
|
|
43
|
+
axes: z.ZodOptional<z.ZodObject<{
|
|
44
|
+
dimension: z.ZodOptional<typeof import("./common.schema").axisDefinitionSchema>;
|
|
45
|
+
primaryMeasure: z.ZodOptional<typeof import("./common.schema").measureAxisDefinitionSchema>;
|
|
46
|
+
secondaryMeasure: z.ZodOptional<typeof import("./common.schema").measureAxisDefinitionSchema>;
|
|
47
|
+
}, z.core.$strict>>;
|
|
48
|
+
legend: z.ZodOptional<z.ZodObject<{
|
|
49
|
+
position: z.ZodOptional<z.ZodType<"top" | "bottom" | "left" | "right", unknown, z.core.$ZodTypeInternals<"top" | "bottom" | "left" | "right", unknown>>>;
|
|
50
|
+
title: z.ZodOptional<z.ZodString>;
|
|
51
|
+
visible: z.ZodOptional<z.ZodBoolean>;
|
|
52
|
+
}, z.core.$strict>>;
|
|
53
|
+
orientation: z.ZodOptional<z.ZodType<"horizontal" | "vertical", unknown, z.core.$ZodTypeInternals<"horizontal" | "vertical", unknown>>>;
|
|
54
|
+
coloring: z.ZodOptional<z.ZodType<import("./common.schema").ColoringDefinition, unknown, z.core.$ZodTypeInternals<import("./common.schema").ColoringDefinition, unknown>>>;
|
|
55
|
+
dataLabels: z.ZodOptional<z.ZodObject<{
|
|
56
|
+
density: z.ZodOptional<z.ZodEnum<{
|
|
57
|
+
low: "low";
|
|
58
|
+
medium: "medium";
|
|
59
|
+
high: "high";
|
|
60
|
+
}>>;
|
|
61
|
+
visible: z.ZodBoolean;
|
|
62
|
+
}, z.core.$strict>>;
|
|
63
|
+
}, z.core.$strict>>;
|
|
64
|
+
sorting: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
65
|
+
by: z.ZodString;
|
|
66
|
+
direction: z.ZodType<"asc" | "desc", unknown, z.core.$ZodTypeInternals<"asc" | "desc", unknown>>;
|
|
67
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
68
|
+
}, z.core.$strict>>>;
|
|
69
|
+
type: z.ZodLiteral<"line">;
|
|
70
|
+
version: z.ZodLiteral<1>;
|
|
71
|
+
}, z.core.$strict>;
|
|
72
|
+
export type LineVisualizationDefinition = z.infer<typeof lineVisualizationDefinitionSchema>;
|