@gooddata/sdk-code-convertors 11.35.0-alpha.5 → 11.35.0-alpha.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. package/esm/configs/areaChart.d.ts +22 -9
  2. package/esm/configs/areaChart.js +13 -4
  3. package/esm/configs/barChart.d.ts +22 -9
  4. package/esm/configs/barChart.js +13 -4
  5. package/esm/configs/bubbleChart.d.ts +22 -9
  6. package/esm/configs/bubbleChart.js +13 -4
  7. package/esm/configs/bulletChart.d.ts +22 -9
  8. package/esm/configs/bulletChart.js +13 -4
  9. package/esm/configs/columnChart.d.ts +22 -9
  10. package/esm/configs/columnChart.js +13 -4
  11. package/esm/configs/comboChart.d.ts +22 -9
  12. package/esm/configs/comboChart.js +13 -4
  13. package/esm/configs/dependencyWheelChart.d.ts +22 -9
  14. package/esm/configs/dependencyWheelChart.js +13 -4
  15. package/esm/configs/donutChart.d.ts +22 -9
  16. package/esm/configs/donutChart.js +13 -4
  17. package/esm/configs/funnelChart.d.ts +22 -9
  18. package/esm/configs/funnelChart.js +13 -4
  19. package/esm/configs/geoAreaChart.d.ts +22 -9
  20. package/esm/configs/geoAreaChart.js +13 -4
  21. package/esm/configs/geoChart.d.ts +22 -9
  22. package/esm/configs/geoChart.js +13 -4
  23. package/esm/configs/headlineChart.d.ts +22 -9
  24. package/esm/configs/headlineChart.js +13 -4
  25. package/esm/configs/heatmapChart.d.ts +22 -9
  26. package/esm/configs/heatmapChart.js +13 -4
  27. package/esm/configs/lineChart.d.ts +22 -9
  28. package/esm/configs/lineChart.js +13 -4
  29. package/esm/configs/pieChart.d.ts +22 -9
  30. package/esm/configs/pieChart.js +13 -4
  31. package/esm/configs/pyramidChart.d.ts +22 -9
  32. package/esm/configs/pyramidChart.js +13 -4
  33. package/esm/configs/repeaterChart.d.ts +25 -10
  34. package/esm/configs/repeaterChart.js +15 -5
  35. package/esm/configs/sankeyChart.d.ts +22 -9
  36. package/esm/configs/sankeyChart.js +13 -4
  37. package/esm/configs/scatterChart.d.ts +22 -9
  38. package/esm/configs/scatterChart.js +13 -4
  39. package/esm/configs/table.d.ts +22 -9
  40. package/esm/configs/table.js +13 -4
  41. package/esm/configs/treemapChart.d.ts +22 -9
  42. package/esm/configs/treemapChart.js +13 -4
  43. package/esm/configs/types.d.ts +28 -0
  44. package/esm/configs/utils.d.ts +1 -0
  45. package/esm/configs/waterfallChart.d.ts +22 -9
  46. package/esm/configs/waterfallChart.js +13 -4
  47. package/esm/conts.d.ts +8 -0
  48. package/esm/conts.js +8 -0
  49. package/esm/from/declarativeDashboardToYaml.d.ts +9 -0
  50. package/esm/from/declarativeDashboardToYaml.js +7 -0
  51. package/esm/from/declarativeVisualisationToYaml.d.ts +47 -17
  52. package/esm/from/declarativeVisualisationToYaml.js +19 -0
  53. package/esm/index.d.ts +27 -27
  54. package/esm/index.js +23 -23
  55. package/esm/sdk-code-convertors.d.ts +2107 -1647
  56. package/esm/to/yamlDashboardToDeclarative.d.ts +18 -5
  57. package/esm/to/yamlDashboardToDeclarative.js +5 -0
  58. package/esm/to/yamlDatasetToDeclarative.d.ts +4 -0
  59. package/esm/to/yamlDatasetToDeclarative.js +4 -0
  60. package/esm/to/yamlVisualisationToDeclarative.d.ts +7 -2
  61. package/esm/to/yamlVisualisationToDeclarative.js +5 -0
  62. package/esm/utils/sharedUtils.d.ts +1 -0
  63. package/package.json +7 -7
@@ -1,7 +1,8 @@
1
1
  import type { Visualisation } from "@gooddata/sdk-code-schemas/v1";
2
2
  import { type ChartFillType, type ColorMapping, type PatternFillName } from "./types.js";
3
3
  import { type ConfigDefaults, type VisualisationConfig } from "./utils.js";
4
- type DefaultProperties = {
4
+ /** @internal */
5
+ export type PieChartConfigProperties = {
5
6
  colorMapping: Array<ColorMapping>;
6
7
  dataLabels: {
7
8
  visible: boolean | "auto";
@@ -19,8 +20,12 @@ type DefaultProperties = {
19
20
  disableAlerts: boolean;
20
21
  disableScheduledExports: boolean;
21
22
  };
22
- declare function load(props: VisualisationConfig<DefaultProperties>): import("yaml").Pair<import("yaml").Scalar<string>, any> | null;
23
- declare function save(_fields: Visualisation["query"]["fields"] | undefined, config: Visualisation["config"] | undefined): {
23
+ /** @internal */
24
+ export declare const PIE_CHART_DEFAULTS: ConfigDefaults<PieChartConfigProperties>;
25
+ /** @internal */
26
+ export declare function pieChartLoad(props: VisualisationConfig<PieChartConfigProperties>): import("yaml").Pair<import("yaml").Scalar<string>, any> | null;
27
+ /** @internal */
28
+ export declare function pieChartSave(_fields: Visualisation["query"]["fields"] | undefined, config: Visualisation["config"] | undefined): {
24
29
  colorMapping: ColorMapping[] | undefined;
25
30
  dataLabels: {
26
31
  visible: "auto" | boolean | undefined;
@@ -38,9 +43,17 @@ declare function save(_fields: Visualisation["query"]["fields"] | undefined, con
38
43
  disableAlerts: boolean | undefined;
39
44
  disableScheduledExports: boolean | undefined;
40
45
  } | undefined;
41
- export declare const pieChart: {
42
- load: typeof load;
43
- save: typeof save;
44
- DEFAULTS: ConfigDefaults<DefaultProperties>;
45
- };
46
- export {};
46
+ /**
47
+ * @internal
48
+ * @deprecated Use pieChartLoad and pieChartSave instead.
49
+ */
50
+ export interface IPieChartConfig {
51
+ load: typeof pieChartLoad;
52
+ save: typeof pieChartSave;
53
+ DEFAULTS: ConfigDefaults<PieChartConfigProperties>;
54
+ }
55
+ /**
56
+ * @internal
57
+ * @deprecated Use pieChartLoad and pieChartSave instead.
58
+ */
59
+ export declare const pieChart: IPieChartConfig;
@@ -1,6 +1,7 @@
1
1
  // (C) 2023-2026 GoodData Corporation
2
2
  import { loadChartFill, loadColorMapping, saveChartFill, saveColorMapping } from "../utils/configUtils.js";
3
3
  import { getValueOrDefault, loadConfig, saveConfigObject, } from "./utils.js";
4
+ /** @internal */
4
5
  const DEFAULTS = {
5
6
  colorMapping: [],
6
7
  dataLabels: {
@@ -18,7 +19,10 @@ const DEFAULTS = {
18
19
  disableAlerts: false,
19
20
  disableScheduledExports: false,
20
21
  };
21
- function load(props) {
22
+ /** @internal */
23
+ export const PIE_CHART_DEFAULTS = DEFAULTS;
24
+ /** @internal */
25
+ export function pieChartLoad(props) {
22
26
  return loadConfig(props, (key, value) => {
23
27
  switch (key) {
24
28
  case "colorMapping":
@@ -68,7 +72,8 @@ function load(props) {
68
72
  }
69
73
  });
70
74
  }
71
- function save(_fields, config) {
75
+ /** @internal */
76
+ export function pieChartSave(_fields, config) {
72
77
  if (!config) {
73
78
  return undefined;
74
79
  }
@@ -88,8 +93,12 @@ function save(_fields, config) {
88
93
  disableScheduledExports: getValueOrDefault(config.disable_scheduled_exports, DEFAULTS.disableScheduledExports, "bool"),
89
94
  });
90
95
  }
96
+ /**
97
+ * @internal
98
+ * @deprecated Use pieChartLoad and pieChartSave instead.
99
+ */
91
100
  export const pieChart = {
92
- load,
93
- save,
101
+ load: pieChartLoad,
102
+ save: pieChartSave,
94
103
  DEFAULTS,
95
104
  };
@@ -1,7 +1,8 @@
1
1
  import type { Visualisation } from "@gooddata/sdk-code-schemas/v1";
2
2
  import { type ChartFillType, type ColorMapping, type PatternFillName } from "./types.js";
3
3
  import { type ConfigDefaults, type VisualisationConfig } from "./utils.js";
4
- type DefaultProperties = {
4
+ /** @internal */
5
+ export type PyramidChartConfigProperties = {
5
6
  colorMapping: Array<ColorMapping>;
6
7
  dataLabels: {
7
8
  visible: boolean | "auto";
@@ -19,8 +20,12 @@ type DefaultProperties = {
19
20
  disableAlerts: boolean;
20
21
  disableScheduledExports: boolean;
21
22
  };
22
- declare function load(props: VisualisationConfig<DefaultProperties>): import("yaml").Pair<import("yaml").Scalar<string>, any> | null;
23
- declare function save(_fields: Visualisation["query"]["fields"] | undefined, config: Visualisation["config"] | undefined): {
23
+ /** @internal */
24
+ export declare const PYRAMID_CHART_DEFAULTS: ConfigDefaults<PyramidChartConfigProperties>;
25
+ /** @internal */
26
+ export declare function pyramidChartLoad(props: VisualisationConfig<PyramidChartConfigProperties>): import("yaml").Pair<import("yaml").Scalar<string>, any> | null;
27
+ /** @internal */
28
+ export declare function pyramidChartSave(_fields: Visualisation["query"]["fields"] | undefined, config: Visualisation["config"] | undefined): {
24
29
  colorMapping: ColorMapping[] | undefined;
25
30
  dataLabels: {
26
31
  visible: "auto" | boolean | undefined;
@@ -38,9 +43,17 @@ declare function save(_fields: Visualisation["query"]["fields"] | undefined, con
38
43
  disableAlerts: boolean | undefined;
39
44
  disableScheduledExports: boolean | undefined;
40
45
  } | undefined;
41
- export declare const pyramidChart: {
42
- load: typeof load;
43
- save: typeof save;
44
- DEFAULTS: ConfigDefaults<DefaultProperties>;
45
- };
46
- export {};
46
+ /**
47
+ * @internal
48
+ * @deprecated Use pyramidChartLoad and pyramidChartSave instead.
49
+ */
50
+ export interface IPyramidChartConfig {
51
+ load: typeof pyramidChartLoad;
52
+ save: typeof pyramidChartSave;
53
+ DEFAULTS: ConfigDefaults<PyramidChartConfigProperties>;
54
+ }
55
+ /**
56
+ * @internal
57
+ * @deprecated Use pyramidChartLoad and pyramidChartSave instead.
58
+ */
59
+ export declare const pyramidChart: IPyramidChartConfig;
@@ -1,6 +1,7 @@
1
1
  // (C) 2023-2026 GoodData Corporation
2
2
  import { loadChartFill, loadColorMapping, saveChartFill, saveColorMapping } from "../utils/configUtils.js";
3
3
  import { getValueOrDefault, loadConfig, saveConfigObject, } from "./utils.js";
4
+ /** @internal */
4
5
  const DEFAULTS = {
5
6
  colorMapping: [],
6
7
  dataLabels: {
@@ -18,7 +19,10 @@ const DEFAULTS = {
18
19
  disableAlerts: false,
19
20
  disableScheduledExports: false,
20
21
  };
21
- function load(props) {
22
+ /** @internal */
23
+ export const PYRAMID_CHART_DEFAULTS = DEFAULTS;
24
+ /** @internal */
25
+ export function pyramidChartLoad(props) {
22
26
  return loadConfig(props, (key, value) => {
23
27
  switch (key) {
24
28
  case "colorMapping":
@@ -68,7 +72,8 @@ function load(props) {
68
72
  }
69
73
  });
70
74
  }
71
- function save(_fields, config) {
75
+ /** @internal */
76
+ export function pyramidChartSave(_fields, config) {
72
77
  if (!config) {
73
78
  return undefined;
74
79
  }
@@ -88,8 +93,12 @@ function save(_fields, config) {
88
93
  disableScheduledExports: getValueOrDefault(config.disable_scheduled_exports, DEFAULTS.disableScheduledExports, "bool"),
89
94
  });
90
95
  }
96
+ /**
97
+ * @internal
98
+ * @deprecated Use pyramidChartLoad and pyramidChartSave instead.
99
+ */
91
100
  export const pyramidChart = {
92
- load,
93
- save,
101
+ load: pyramidChartLoad,
102
+ save: pyramidChartSave,
94
103
  DEFAULTS,
95
104
  };
@@ -1,7 +1,8 @@
1
1
  import type { Bucket, Visualisation } from "@gooddata/sdk-code-schemas/v1";
2
2
  import { type ColorMapping, type ColumnWidthItem } from "./types.js";
3
3
  import { type ConfigDefaults, type VisualisationConfig } from "./utils.js";
4
- type DefaultProperties = {
4
+ /** @internal */
5
+ export type RepeaterChartConfigProperties = {
5
6
  colorMapping: Array<ColorMapping>;
6
7
  columnWidths: Array<ColumnWidthItem>;
7
8
  cellImageSizing: "fit" | "fill";
@@ -11,11 +12,16 @@ type DefaultProperties = {
11
12
  disableAlerts: boolean;
12
13
  disableScheduledExports: boolean;
13
14
  };
15
+ /** @internal */
14
16
  export type InlineVisualizations = Record<string, {
15
17
  type: "metric" | "line" | "column";
16
18
  }>;
17
- declare function load(props: VisualisationConfig<DefaultProperties>): import("yaml").Pair<import("yaml").Scalar<string>, any> | null;
18
- declare function save(fields: Visualisation["query"]["fields"] | undefined, config: Visualisation["config"] | undefined): {
19
+ /** @internal */
20
+ export declare const REPEATER_CHART_DEFAULTS: ConfigDefaults<RepeaterChartConfigProperties>;
21
+ /** @internal */
22
+ export declare function repeaterChartLoad(props: VisualisationConfig<RepeaterChartConfigProperties>): import("yaml").Pair<import("yaml").Scalar<string>, any> | null;
23
+ /** @internal */
24
+ export declare function repeaterChartSave(fields: Visualisation["query"]["fields"] | undefined, config: Visualisation["config"] | undefined): {
19
25
  columnWidths: ColumnWidthItem[] | undefined;
20
26
  colorMapping: ColorMapping[] | undefined;
21
27
  rowHeight: "large" | "medium" | "small" | undefined;
@@ -25,11 +31,20 @@ declare function save(fields: Visualisation["query"]["fields"] | undefined, conf
25
31
  disableAlerts: boolean | undefined;
26
32
  disableScheduledExports: boolean | undefined;
27
33
  } | undefined;
28
- declare function saveInlineVisualizations(metrics?: Bucket[]): InlineVisualizations;
29
- export declare const repeaterChart: {
30
- load: typeof load;
31
- save: typeof save;
34
+ /** @internal */
35
+ export declare function saveInlineVisualizations(metrics?: Bucket[]): InlineVisualizations;
36
+ /**
37
+ * @internal
38
+ * @deprecated Use repeaterChartLoad and repeaterChartSave instead.
39
+ */
40
+ export interface IRepeaterChartConfig {
41
+ load: typeof repeaterChartLoad;
42
+ save: typeof repeaterChartSave;
32
43
  saveInlineVisualizations: typeof saveInlineVisualizations;
33
- DEFAULTS: ConfigDefaults<DefaultProperties>;
34
- };
35
- export {};
44
+ DEFAULTS: ConfigDefaults<RepeaterChartConfigProperties>;
45
+ }
46
+ /**
47
+ * @internal
48
+ * @deprecated Use repeaterChartLoad and repeaterChartSave instead.
49
+ */
50
+ export declare const repeaterChart: IRepeaterChartConfig;
@@ -2,6 +2,7 @@
2
2
  import { loadColorMapping, loadColumnsWidth, saveColorMapping, saveColumnWidths, } from "../utils/configUtils.js";
3
3
  import { getFullBucket } from "../utils/sharedUtils.js";
4
4
  import { getValueOrDefault, loadConfig, saveConfigObject, } from "./utils.js";
5
+ /** @internal */
5
6
  const DEFAULTS = {
6
7
  colorMapping: [],
7
8
  columnWidths: [],
@@ -12,7 +13,10 @@ const DEFAULTS = {
12
13
  disableAlerts: false,
13
14
  disableScheduledExports: false,
14
15
  };
15
- function load(props) {
16
+ /** @internal */
17
+ export const REPEATER_CHART_DEFAULTS = DEFAULTS;
18
+ /** @internal */
19
+ export function repeaterChartLoad(props) {
16
20
  return loadConfig(props, (key, value) => {
17
21
  switch (key) {
18
22
  case "columnWidths": {
@@ -69,7 +73,8 @@ function load(props) {
69
73
  }
70
74
  });
71
75
  }
72
- function save(fields, config) {
76
+ /** @internal */
77
+ export function repeaterChartSave(fields, config) {
73
78
  if (!config) {
74
79
  return undefined;
75
80
  }
@@ -84,7 +89,8 @@ function save(fields, config) {
84
89
  disableScheduledExports: getValueOrDefault(config.disable_scheduled_exports, DEFAULTS.disableScheduledExports, "bool"),
85
90
  });
86
91
  }
87
- function saveInlineVisualizations(metrics = []) {
92
+ /** @internal */
93
+ export function saveInlineVisualizations(metrics = []) {
88
94
  return metrics?.reduce((map, b) => {
89
95
  const bucket = getFullBucket(b);
90
96
  if (bucket.display_as && bucket.field) {
@@ -95,9 +101,13 @@ function saveInlineVisualizations(metrics = []) {
95
101
  return map;
96
102
  }, {});
97
103
  }
104
+ /**
105
+ * @internal
106
+ * @deprecated Use repeaterChartLoad and repeaterChartSave instead.
107
+ */
98
108
  export const repeaterChart = {
99
- load,
100
- save,
109
+ load: repeaterChartLoad,
110
+ save: repeaterChartSave,
101
111
  saveInlineVisualizations,
102
112
  DEFAULTS,
103
113
  };
@@ -1,7 +1,8 @@
1
1
  import type { Visualisation } from "@gooddata/sdk-code-schemas/v1";
2
2
  import { type ColorMapping } from "./types.js";
3
3
  import { type ConfigDefaults, type VisualisationConfig } from "./utils.js";
4
- type DefaultProperties = {
4
+ /** @internal */
5
+ export type SankeyChartConfigProperties = {
5
6
  colorMapping: Array<ColorMapping>;
6
7
  dataLabels: {
7
8
  visible: boolean | "auto";
@@ -15,8 +16,12 @@ type DefaultProperties = {
15
16
  disableAlerts: boolean;
16
17
  disableScheduledExports: boolean;
17
18
  };
18
- declare function load(props: VisualisationConfig<DefaultProperties>): import("yaml").Pair<import("yaml").Scalar<string>, any> | null;
19
- declare function save(_fields: Visualisation["query"]["fields"] | undefined, config: Visualisation["config"] | undefined): {
19
+ /** @internal */
20
+ export declare const SANKEY_CHART_DEFAULTS: ConfigDefaults<SankeyChartConfigProperties>;
21
+ /** @internal */
22
+ export declare function sankeyChartLoad(props: VisualisationConfig<SankeyChartConfigProperties>): import("yaml").Pair<import("yaml").Scalar<string>, any> | null;
23
+ /** @internal */
24
+ export declare function sankeyChartSave(_fields: Visualisation["query"]["fields"] | undefined, config: Visualisation["config"] | undefined): {
20
25
  colorMapping: ColorMapping[] | undefined;
21
26
  dataLabels: {
22
27
  visible: "auto" | boolean | undefined;
@@ -30,9 +35,17 @@ declare function save(_fields: Visualisation["query"]["fields"] | undefined, con
30
35
  disableAlerts: boolean | undefined;
31
36
  disableScheduledExports: boolean | undefined;
32
37
  } | undefined;
33
- export declare const sankeyChart: {
34
- load: typeof load;
35
- save: typeof save;
36
- DEFAULTS: ConfigDefaults<DefaultProperties>;
37
- };
38
- export {};
38
+ /**
39
+ * @internal
40
+ * @deprecated Use sankeyChartLoad and sankeyChartSave instead.
41
+ */
42
+ export interface ISankeyChartConfig {
43
+ load: typeof sankeyChartLoad;
44
+ save: typeof sankeyChartSave;
45
+ DEFAULTS: ConfigDefaults<SankeyChartConfigProperties>;
46
+ }
47
+ /**
48
+ * @internal
49
+ * @deprecated Use sankeyChartLoad and sankeyChartSave instead.
50
+ */
51
+ export declare const sankeyChart: ISankeyChartConfig;
@@ -1,6 +1,7 @@
1
1
  // (C) 2023-2026 GoodData Corporation
2
2
  import { loadColorMapping, saveColorMapping } from "../utils/configUtils.js";
3
3
  import { getValueOrDefault, loadConfig, saveConfigObject, } from "./utils.js";
4
+ /** @internal */
4
5
  const DEFAULTS = {
5
6
  colorMapping: [],
6
7
  dataLabels: {
@@ -15,7 +16,10 @@ const DEFAULTS = {
15
16
  disableAlerts: false,
16
17
  disableScheduledExports: false,
17
18
  };
18
- function load(props) {
19
+ /** @internal */
20
+ export const SANKEY_CHART_DEFAULTS = DEFAULTS;
21
+ /** @internal */
22
+ export function sankeyChartLoad(props) {
19
23
  return loadConfig(props, (key, value) => {
20
24
  switch (key) {
21
25
  case "colorMapping":
@@ -57,7 +61,8 @@ function load(props) {
57
61
  }
58
62
  });
59
63
  }
60
- function save(_fields, config) {
64
+ /** @internal */
65
+ export function sankeyChartSave(_fields, config) {
61
66
  if (!config) {
62
67
  return undefined;
63
68
  }
@@ -76,8 +81,12 @@ function save(_fields, config) {
76
81
  disableScheduledExports: getValueOrDefault(config.disable_scheduled_exports, DEFAULTS.disableScheduledExports, "bool"),
77
82
  });
78
83
  }
84
+ /**
85
+ * @internal
86
+ * @deprecated Use sankeyChartLoad and sankeyChartSave instead.
87
+ */
79
88
  export const sankeyChart = {
80
- load,
81
- save,
89
+ load: sankeyChartLoad,
90
+ save: sankeyChartSave,
82
91
  DEFAULTS,
83
92
  };
@@ -1,7 +1,8 @@
1
1
  import type { Visualisation } from "@gooddata/sdk-code-schemas/v1";
2
2
  import { type ColorMapping } from "./types.js";
3
3
  import { type ConfigDefaults, type VisualisationConfig } from "./utils.js";
4
- type DefaultProperties = {
4
+ /** @internal */
5
+ export type ScatterChartConfigProperties = {
5
6
  colorMapping: Array<ColorMapping>;
6
7
  dataLabels: {
7
8
  visible: boolean | "auto";
@@ -43,8 +44,12 @@ type DefaultProperties = {
43
44
  disableAlerts: boolean;
44
45
  disableScheduledExports: boolean;
45
46
  };
46
- declare function load(props: VisualisationConfig<DefaultProperties>): import("yaml").Pair<import("yaml").Scalar<string>, any> | null;
47
- declare function save(_fields: Visualisation["query"]["fields"] | undefined, config: Visualisation["config"] | undefined): {
47
+ /** @internal */
48
+ export declare const SCATTER_CHART_DEFAULTS: ConfigDefaults<ScatterChartConfigProperties>;
49
+ /** @internal */
50
+ export declare function scatterChartLoad(props: VisualisationConfig<ScatterChartConfigProperties>): import("yaml").Pair<import("yaml").Scalar<string>, any> | null;
51
+ /** @internal */
52
+ export declare function scatterChartSave(_fields: Visualisation["query"]["fields"] | undefined, config: Visualisation["config"] | undefined): {
48
53
  colorMapping: ColorMapping[] | undefined;
49
54
  dataLabels: {
50
55
  visible: "auto" | boolean | undefined;
@@ -86,9 +91,17 @@ declare function save(_fields: Visualisation["query"]["fields"] | undefined, con
86
91
  disableAlerts: boolean | undefined;
87
92
  disableScheduledExports: boolean | undefined;
88
93
  } | undefined;
89
- export declare const scatterChart: {
90
- load: typeof load;
91
- save: typeof save;
92
- DEFAULTS: ConfigDefaults<DefaultProperties>;
93
- };
94
- export {};
94
+ /**
95
+ * @internal
96
+ * @deprecated Use scatterChartLoad and scatterChartSave instead.
97
+ */
98
+ export interface IScatterChartConfig {
99
+ load: typeof scatterChartLoad;
100
+ save: typeof scatterChartSave;
101
+ DEFAULTS: ConfigDefaults<ScatterChartConfigProperties>;
102
+ }
103
+ /**
104
+ * @internal
105
+ * @deprecated Use scatterChartLoad and scatterChartSave instead.
106
+ */
107
+ export declare const scatterChart: IScatterChartConfig;
@@ -1,6 +1,7 @@
1
1
  // (C) 2023-2026 GoodData Corporation
2
2
  import { loadColorMapping, saveColorMapping } from "../utils/configUtils.js";
3
3
  import { getValueOrDefault, loadConfig, saveConfigObject, } from "./utils.js";
4
+ /** @internal */
4
5
  const DEFAULTS = {
5
6
  colorMapping: [],
6
7
  dataLabels: {
@@ -43,7 +44,10 @@ const DEFAULTS = {
43
44
  disableAlerts: false,
44
45
  disableScheduledExports: false,
45
46
  };
46
- function load(props) {
47
+ /** @internal */
48
+ export const SCATTER_CHART_DEFAULTS = DEFAULTS;
49
+ /** @internal */
50
+ export function scatterChartLoad(props) {
47
51
  return loadConfig(props, (key, value) => {
48
52
  switch (key) {
49
53
  case "colorMapping":
@@ -143,7 +147,8 @@ function load(props) {
143
147
  }
144
148
  });
145
149
  }
146
- function save(_fields, config) {
150
+ /** @internal */
151
+ export function scatterChartSave(_fields, config) {
147
152
  if (!config) {
148
153
  return undefined;
149
154
  }
@@ -190,8 +195,12 @@ function save(_fields, config) {
190
195
  disableScheduledExports: getValueOrDefault(config.disable_scheduled_exports, DEFAULTS.disableScheduledExports, "bool"),
191
196
  });
192
197
  }
198
+ /**
199
+ * @internal
200
+ * @deprecated Use scatterChartLoad and scatterChartSave instead.
201
+ */
193
202
  export const scatterChart = {
194
- load,
195
- save,
203
+ load: scatterChartLoad,
204
+ save: scatterChartSave,
196
205
  DEFAULTS,
197
206
  };
@@ -1,7 +1,8 @@
1
1
  import type { Visualisation } from "@gooddata/sdk-code-schemas/v1";
2
2
  import { type ColumnLocator, type ColumnWidthItem } from "./types.js";
3
3
  import { type ConfigDefaults, type VisualisationConfig } from "./utils.js";
4
- type DefaultProperties = {
4
+ /** @internal */
5
+ export type TableConfigProperties = {
5
6
  columnWidths: Array<ColumnWidthItem>;
6
7
  measureGroupDimension: "columns" | "rows";
7
8
  columnHeadersPosition: "top" | "left";
@@ -26,8 +27,12 @@ type DefaultProperties = {
26
27
  pageSize: number;
27
28
  grandTotalsPosition: "pinnedBottom" | "pinnedTop" | "bottom" | "top";
28
29
  };
29
- declare function load(props: VisualisationConfig<DefaultProperties>): import("yaml").Pair<import("yaml").Scalar<string>, any> | null;
30
- declare function save(fields: Visualisation["query"]["fields"] | undefined, config: Visualisation["config"] | undefined): {
30
+ /** @internal */
31
+ export declare const TABLE_DEFAULTS: ConfigDefaults<TableConfigProperties>;
32
+ /** @internal */
33
+ export declare function tableLoad(props: VisualisationConfig<TableConfigProperties>): import("yaml").Pair<import("yaml").Scalar<string>, any> | null;
34
+ /** @internal */
35
+ export declare function tableSave(fields: Visualisation["query"]["fields"] | undefined, config: Visualisation["config"] | undefined): {
31
36
  columnWidths: ColumnWidthItem[] | undefined;
32
37
  columnHeadersPosition: string | undefined;
33
38
  measureGroupDimension: string | undefined;
@@ -52,9 +57,17 @@ declare function save(fields: Visualisation["query"]["fields"] | undefined, conf
52
57
  pageSize: number | undefined;
53
58
  grandTotalsPosition: "bottom" | "pinnedBottom" | "pinnedTop" | "top" | undefined;
54
59
  } | undefined;
55
- export declare const table: {
56
- load: typeof load;
57
- save: typeof save;
58
- DEFAULTS: ConfigDefaults<DefaultProperties>;
59
- };
60
- export {};
60
+ /**
61
+ * @internal
62
+ * @deprecated Use tableLoad and tableSave instead.
63
+ */
64
+ export interface ITableConfig {
65
+ load: typeof tableLoad;
66
+ save: typeof tableSave;
67
+ DEFAULTS: ConfigDefaults<TableConfigProperties>;
68
+ }
69
+ /**
70
+ * @internal
71
+ * @deprecated Use tableLoad and tableSave instead.
72
+ */
73
+ export declare const table: ITableConfig;
@@ -1,6 +1,7 @@
1
1
  // (C) 2023-2026 GoodData Corporation
2
2
  import { loadColumnsWidth, saveColumnWidths } from "../utils/configUtils.js";
3
3
  import { getValueOrDefault, loadConfig, saveConfigObject, } from "./utils.js";
4
+ /** @internal */
4
5
  const DEFAULTS = {
5
6
  columnWidths: [],
6
7
  measureGroupDimension: "columns",
@@ -77,7 +78,10 @@ function saveTextWrapping(value) {
77
78
  })),
78
79
  };
79
80
  }
80
- function load(props) {
81
+ /** @internal */
82
+ export const TABLE_DEFAULTS = DEFAULTS;
83
+ /** @internal */
84
+ export function tableLoad(props) {
81
85
  return loadConfig(props, (key, value) => {
82
86
  switch (key) {
83
87
  case "columnWidths": {
@@ -142,7 +146,8 @@ function load(props) {
142
146
  }
143
147
  });
144
148
  }
145
- function save(fields, config) {
149
+ /** @internal */
150
+ export function tableSave(fields, config) {
146
151
  if (!config) {
147
152
  return undefined;
148
153
  }
@@ -161,8 +166,12 @@ function save(fields, config) {
161
166
  grandTotalsPosition: getValueOrDefault(config.grand_totals_position, DEFAULTS.grandTotalsPosition),
162
167
  });
163
168
  }
169
+ /**
170
+ * @internal
171
+ * @deprecated Use tableLoad and tableSave instead.
172
+ */
164
173
  export const table = {
165
- load,
166
- save,
174
+ load: tableLoad,
175
+ save: tableSave,
167
176
  DEFAULTS,
168
177
  };
@@ -1,7 +1,8 @@
1
1
  import type { Visualisation } from "@gooddata/sdk-code-schemas/v1";
2
2
  import { type ChartFillType, type ColorMapping, type PatternFillName } from "./types.js";
3
3
  import { type ConfigDefaults, type VisualisationConfig } from "./utils.js";
4
- type DefaultProperties = {
4
+ /** @internal */
5
+ export type TreemapChartConfigProperties = {
5
6
  colorMapping: Array<ColorMapping>;
6
7
  dataLabels: {
7
8
  visible: boolean | "auto";
@@ -19,8 +20,12 @@ type DefaultProperties = {
19
20
  disableAlerts: boolean;
20
21
  disableScheduledExports: boolean;
21
22
  };
22
- declare function load(props: VisualisationConfig<DefaultProperties>): import("yaml").Pair<import("yaml").Scalar<string>, any> | null;
23
- declare function save(_fields: Visualisation["query"]["fields"] | undefined, config: Visualisation["config"] | undefined): {
23
+ /** @internal */
24
+ export declare const TREEMAP_CHART_DEFAULTS: ConfigDefaults<TreemapChartConfigProperties>;
25
+ /** @internal */
26
+ export declare function treemapChartLoad(props: VisualisationConfig<TreemapChartConfigProperties>): import("yaml").Pair<import("yaml").Scalar<string>, any> | null;
27
+ /** @internal */
28
+ export declare function treemapChartSave(_fields: Visualisation["query"]["fields"] | undefined, config: Visualisation["config"] | undefined): {
24
29
  colorMapping: ColorMapping[] | undefined;
25
30
  dataLabels: {
26
31
  visible: "auto" | boolean | undefined;
@@ -38,9 +43,17 @@ declare function save(_fields: Visualisation["query"]["fields"] | undefined, con
38
43
  disableAlerts: boolean | undefined;
39
44
  disableScheduledExports: boolean | undefined;
40
45
  } | undefined;
41
- export declare const treemapChart: {
42
- load: typeof load;
43
- save: typeof save;
44
- DEFAULTS: ConfigDefaults<DefaultProperties>;
45
- };
46
- export {};
46
+ /**
47
+ * @internal
48
+ * @deprecated Use treemapChartLoad and treemapChartSave instead.
49
+ */
50
+ export interface ITreemapChartConfig {
51
+ load: typeof treemapChartLoad;
52
+ save: typeof treemapChartSave;
53
+ DEFAULTS: ConfigDefaults<TreemapChartConfigProperties>;
54
+ }
55
+ /**
56
+ * @internal
57
+ * @deprecated Use treemapChartLoad and treemapChartSave instead.
58
+ */
59
+ export declare const treemapChart: ITreemapChartConfig;