@gooddata/sdk-code-convertors 11.35.0-alpha.4 → 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 (230) hide show
  1. package/esm/configs/areaChart.d.ts +22 -10
  2. package/esm/configs/areaChart.js +13 -5
  3. package/esm/configs/barChart.d.ts +22 -10
  4. package/esm/configs/barChart.js +13 -5
  5. package/esm/configs/bubbleChart.d.ts +22 -10
  6. package/esm/configs/bubbleChart.js +13 -5
  7. package/esm/configs/bulletChart.d.ts +22 -10
  8. package/esm/configs/bulletChart.js +13 -5
  9. package/esm/configs/columnChart.d.ts +22 -10
  10. package/esm/configs/columnChart.js +13 -5
  11. package/esm/configs/comboChart.d.ts +22 -10
  12. package/esm/configs/comboChart.js +13 -5
  13. package/esm/configs/dependencyWheelChart.d.ts +22 -10
  14. package/esm/configs/dependencyWheelChart.js +13 -5
  15. package/esm/configs/donutChart.d.ts +22 -10
  16. package/esm/configs/donutChart.js +13 -5
  17. package/esm/configs/funnelChart.d.ts +22 -10
  18. package/esm/configs/funnelChart.js +13 -5
  19. package/esm/configs/geoAreaChart.d.ts +22 -10
  20. package/esm/configs/geoAreaChart.js +13 -5
  21. package/esm/configs/geoChart.d.ts +22 -10
  22. package/esm/configs/geoChart.js +13 -5
  23. package/esm/configs/headlineChart.d.ts +22 -10
  24. package/esm/configs/headlineChart.js +13 -5
  25. package/esm/configs/heatmapChart.d.ts +22 -10
  26. package/esm/configs/heatmapChart.js +13 -5
  27. package/esm/configs/lineChart.d.ts +22 -10
  28. package/esm/configs/lineChart.js +13 -5
  29. package/esm/configs/pieChart.d.ts +22 -10
  30. package/esm/configs/pieChart.js +13 -5
  31. package/esm/configs/pyramidChart.d.ts +22 -10
  32. package/esm/configs/pyramidChart.js +13 -5
  33. package/esm/configs/repeaterChart.d.ts +25 -11
  34. package/esm/configs/repeaterChart.js +15 -6
  35. package/esm/configs/sankeyChart.d.ts +22 -10
  36. package/esm/configs/sankeyChart.js +13 -5
  37. package/esm/configs/scatterChart.d.ts +22 -10
  38. package/esm/configs/scatterChart.js +13 -5
  39. package/esm/configs/table.d.ts +22 -10
  40. package/esm/configs/table.js +13 -5
  41. package/esm/configs/treemapChart.d.ts +22 -10
  42. package/esm/configs/treemapChart.js +13 -5
  43. package/esm/configs/types.d.ts +28 -1
  44. package/esm/configs/types.js +0 -1
  45. package/esm/configs/utils.d.ts +1 -1
  46. package/esm/configs/utils.js +0 -1
  47. package/esm/configs/waterfallChart.d.ts +22 -10
  48. package/esm/configs/waterfallChart.js +13 -5
  49. package/esm/conts.d.ts +8 -1
  50. package/esm/conts.js +8 -1
  51. package/esm/execution/buildAfmExecution.d.ts +0 -1
  52. package/esm/execution/buildAfmExecution.js +0 -1
  53. package/esm/from/declarativeAttributeHierarchyToYaml.d.ts +0 -1
  54. package/esm/from/declarativeAttributeHierarchyToYaml.js +0 -1
  55. package/esm/from/declarativeDashboardToYaml.d.ts +9 -1
  56. package/esm/from/declarativeDashboardToYaml.js +7 -1
  57. package/esm/from/declarativeDatasetToYaml.d.ts +0 -1
  58. package/esm/from/declarativeDatasetToYaml.js +0 -1
  59. package/esm/from/declarativeDateInstanceToYaml.d.ts +0 -1
  60. package/esm/from/declarativeDateInstanceToYaml.js +0 -1
  61. package/esm/from/declarativeMetricToYaml.d.ts +0 -1
  62. package/esm/from/declarativeMetricToYaml.js +0 -1
  63. package/esm/from/declarativePluginToYaml.d.ts +0 -1
  64. package/esm/from/declarativePluginToYaml.js +0 -1
  65. package/esm/from/declarativeVisualisationToYaml.d.ts +47 -18
  66. package/esm/from/declarativeVisualisationToYaml.js +19 -1
  67. package/esm/index.d.ts +27 -28
  68. package/esm/index.js +23 -24
  69. package/esm/schemas/types.d.ts +0 -1
  70. package/esm/schemas/types.js +0 -1
  71. package/esm/sdk-code-convertors.d.ts +2107 -1647
  72. package/esm/to/yamlAttributeHierarchyToDeclarative.d.ts +0 -1
  73. package/esm/to/yamlAttributeHierarchyToDeclarative.js +0 -1
  74. package/esm/to/yamlDashboardToDeclarative.d.ts +18 -6
  75. package/esm/to/yamlDashboardToDeclarative.js +5 -1
  76. package/esm/to/yamlDatasetToDeclarative.d.ts +4 -1
  77. package/esm/to/yamlDatasetToDeclarative.js +4 -1
  78. package/esm/to/yamlDateDatasetToDeclarative.d.ts +0 -1
  79. package/esm/to/yamlDateDatasetToDeclarative.js +0 -1
  80. package/esm/to/yamlMetricToDeclarative.d.ts +0 -1
  81. package/esm/to/yamlMetricToDeclarative.js +0 -1
  82. package/esm/to/yamlPluginToDeclarative.d.ts +0 -1
  83. package/esm/to/yamlPluginToDeclarative.js +0 -1
  84. package/esm/to/yamlVisualisationToDeclarative.d.ts +7 -3
  85. package/esm/to/yamlVisualisationToDeclarative.js +5 -1
  86. package/esm/types.d.ts +0 -1
  87. package/esm/types.js +0 -1
  88. package/esm/utils/configUtils.d.ts +0 -1
  89. package/esm/utils/configUtils.js +0 -1
  90. package/esm/utils/convertBucketToTitle.d.ts +0 -1
  91. package/esm/utils/convertBucketToTitle.js +0 -1
  92. package/esm/utils/customUrl.d.ts +0 -1
  93. package/esm/utils/customUrl.js +0 -1
  94. package/esm/utils/dateUtils.d.ts +0 -1
  95. package/esm/utils/dateUtils.js +0 -1
  96. package/esm/utils/errors.d.ts +0 -1
  97. package/esm/utils/errors.js +0 -1
  98. package/esm/utils/filterUtils.d.ts +0 -1
  99. package/esm/utils/filterUtils.js +0 -1
  100. package/esm/utils/granularityUtils.d.ts +0 -1
  101. package/esm/utils/granularityUtils.js +0 -1
  102. package/esm/utils/locationUtils.d.ts +0 -1
  103. package/esm/utils/locationUtils.js +0 -1
  104. package/esm/utils/nameUtils.d.ts +0 -1
  105. package/esm/utils/nameUtils.js +0 -1
  106. package/esm/utils/permissionUtils.d.ts +0 -1
  107. package/esm/utils/permissionUtils.js +0 -1
  108. package/esm/utils/sharedUtils.d.ts +1 -1
  109. package/esm/utils/sharedUtils.js +0 -1
  110. package/esm/utils/texts.d.ts +0 -1
  111. package/esm/utils/texts.js +0 -1
  112. package/esm/utils/typeGuards.d.ts +0 -1
  113. package/esm/utils/typeGuards.js +0 -1
  114. package/esm/utils/yamlUtils.d.ts +0 -1
  115. package/esm/utils/yamlUtils.js +0 -1
  116. package/package.json +7 -7
  117. package/esm/configs/areaChart.d.ts.map +0 -1
  118. package/esm/configs/areaChart.js.map +0 -1
  119. package/esm/configs/barChart.d.ts.map +0 -1
  120. package/esm/configs/barChart.js.map +0 -1
  121. package/esm/configs/bubbleChart.d.ts.map +0 -1
  122. package/esm/configs/bubbleChart.js.map +0 -1
  123. package/esm/configs/bulletChart.d.ts.map +0 -1
  124. package/esm/configs/bulletChart.js.map +0 -1
  125. package/esm/configs/columnChart.d.ts.map +0 -1
  126. package/esm/configs/columnChart.js.map +0 -1
  127. package/esm/configs/comboChart.d.ts.map +0 -1
  128. package/esm/configs/comboChart.js.map +0 -1
  129. package/esm/configs/dependencyWheelChart.d.ts.map +0 -1
  130. package/esm/configs/dependencyWheelChart.js.map +0 -1
  131. package/esm/configs/donutChart.d.ts.map +0 -1
  132. package/esm/configs/donutChart.js.map +0 -1
  133. package/esm/configs/funnelChart.d.ts.map +0 -1
  134. package/esm/configs/funnelChart.js.map +0 -1
  135. package/esm/configs/geoAreaChart.d.ts.map +0 -1
  136. package/esm/configs/geoAreaChart.js.map +0 -1
  137. package/esm/configs/geoChart.d.ts.map +0 -1
  138. package/esm/configs/geoChart.js.map +0 -1
  139. package/esm/configs/headlineChart.d.ts.map +0 -1
  140. package/esm/configs/headlineChart.js.map +0 -1
  141. package/esm/configs/heatmapChart.d.ts.map +0 -1
  142. package/esm/configs/heatmapChart.js.map +0 -1
  143. package/esm/configs/lineChart.d.ts.map +0 -1
  144. package/esm/configs/lineChart.js.map +0 -1
  145. package/esm/configs/pieChart.d.ts.map +0 -1
  146. package/esm/configs/pieChart.js.map +0 -1
  147. package/esm/configs/pyramidChart.d.ts.map +0 -1
  148. package/esm/configs/pyramidChart.js.map +0 -1
  149. package/esm/configs/repeaterChart.d.ts.map +0 -1
  150. package/esm/configs/repeaterChart.js.map +0 -1
  151. package/esm/configs/sankeyChart.d.ts.map +0 -1
  152. package/esm/configs/sankeyChart.js.map +0 -1
  153. package/esm/configs/scatterChart.d.ts.map +0 -1
  154. package/esm/configs/scatterChart.js.map +0 -1
  155. package/esm/configs/table.d.ts.map +0 -1
  156. package/esm/configs/table.js.map +0 -1
  157. package/esm/configs/treemapChart.d.ts.map +0 -1
  158. package/esm/configs/treemapChart.js.map +0 -1
  159. package/esm/configs/types.d.ts.map +0 -1
  160. package/esm/configs/types.js.map +0 -1
  161. package/esm/configs/utils.d.ts.map +0 -1
  162. package/esm/configs/utils.js.map +0 -1
  163. package/esm/configs/waterfallChart.d.ts.map +0 -1
  164. package/esm/configs/waterfallChart.js.map +0 -1
  165. package/esm/conts.d.ts.map +0 -1
  166. package/esm/conts.js.map +0 -1
  167. package/esm/execution/buildAfmExecution.d.ts.map +0 -1
  168. package/esm/execution/buildAfmExecution.js.map +0 -1
  169. package/esm/from/declarativeAttributeHierarchyToYaml.d.ts.map +0 -1
  170. package/esm/from/declarativeAttributeHierarchyToYaml.js.map +0 -1
  171. package/esm/from/declarativeDashboardToYaml.d.ts.map +0 -1
  172. package/esm/from/declarativeDashboardToYaml.js.map +0 -1
  173. package/esm/from/declarativeDatasetToYaml.d.ts.map +0 -1
  174. package/esm/from/declarativeDatasetToYaml.js.map +0 -1
  175. package/esm/from/declarativeDateInstanceToYaml.d.ts.map +0 -1
  176. package/esm/from/declarativeDateInstanceToYaml.js.map +0 -1
  177. package/esm/from/declarativeMetricToYaml.d.ts.map +0 -1
  178. package/esm/from/declarativeMetricToYaml.js.map +0 -1
  179. package/esm/from/declarativePluginToYaml.d.ts.map +0 -1
  180. package/esm/from/declarativePluginToYaml.js.map +0 -1
  181. package/esm/from/declarativeVisualisationToYaml.d.ts.map +0 -1
  182. package/esm/from/declarativeVisualisationToYaml.js.map +0 -1
  183. package/esm/index.d.ts.map +0 -1
  184. package/esm/index.js.map +0 -1
  185. package/esm/schemas/types.d.ts.map +0 -1
  186. package/esm/schemas/types.js.map +0 -1
  187. package/esm/to/yamlAttributeHierarchyToDeclarative.d.ts.map +0 -1
  188. package/esm/to/yamlAttributeHierarchyToDeclarative.js.map +0 -1
  189. package/esm/to/yamlDashboardToDeclarative.d.ts.map +0 -1
  190. package/esm/to/yamlDashboardToDeclarative.js.map +0 -1
  191. package/esm/to/yamlDatasetToDeclarative.d.ts.map +0 -1
  192. package/esm/to/yamlDatasetToDeclarative.js.map +0 -1
  193. package/esm/to/yamlDateDatasetToDeclarative.d.ts.map +0 -1
  194. package/esm/to/yamlDateDatasetToDeclarative.js.map +0 -1
  195. package/esm/to/yamlMetricToDeclarative.d.ts.map +0 -1
  196. package/esm/to/yamlMetricToDeclarative.js.map +0 -1
  197. package/esm/to/yamlPluginToDeclarative.d.ts.map +0 -1
  198. package/esm/to/yamlPluginToDeclarative.js.map +0 -1
  199. package/esm/to/yamlVisualisationToDeclarative.d.ts.map +0 -1
  200. package/esm/to/yamlVisualisationToDeclarative.js.map +0 -1
  201. package/esm/types.d.ts.map +0 -1
  202. package/esm/types.js.map +0 -1
  203. package/esm/utils/configUtils.d.ts.map +0 -1
  204. package/esm/utils/configUtils.js.map +0 -1
  205. package/esm/utils/convertBucketToTitle.d.ts.map +0 -1
  206. package/esm/utils/convertBucketToTitle.js.map +0 -1
  207. package/esm/utils/customUrl.d.ts.map +0 -1
  208. package/esm/utils/customUrl.js.map +0 -1
  209. package/esm/utils/dateUtils.d.ts.map +0 -1
  210. package/esm/utils/dateUtils.js.map +0 -1
  211. package/esm/utils/errors.d.ts.map +0 -1
  212. package/esm/utils/errors.js.map +0 -1
  213. package/esm/utils/filterUtils.d.ts.map +0 -1
  214. package/esm/utils/filterUtils.js.map +0 -1
  215. package/esm/utils/granularityUtils.d.ts.map +0 -1
  216. package/esm/utils/granularityUtils.js.map +0 -1
  217. package/esm/utils/locationUtils.d.ts.map +0 -1
  218. package/esm/utils/locationUtils.js.map +0 -1
  219. package/esm/utils/nameUtils.d.ts.map +0 -1
  220. package/esm/utils/nameUtils.js.map +0 -1
  221. package/esm/utils/permissionUtils.d.ts.map +0 -1
  222. package/esm/utils/permissionUtils.js.map +0 -1
  223. package/esm/utils/sharedUtils.d.ts.map +0 -1
  224. package/esm/utils/sharedUtils.js.map +0 -1
  225. package/esm/utils/texts.d.ts.map +0 -1
  226. package/esm/utils/texts.js.map +0 -1
  227. package/esm/utils/typeGuards.d.ts.map +0 -1
  228. package/esm/utils/typeGuards.js.map +0 -1
  229. package/esm/utils/yamlUtils.d.ts.map +0 -1
  230. package/esm/utils/yamlUtils.js.map +0 -1
@@ -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,9 +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
  };
169
- //# sourceMappingURL=table.js.map
@@ -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,10 +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 {};
47
- //# sourceMappingURL=treemapChart.d.ts.map
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;
@@ -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 TREEMAP_CHART_DEFAULTS = DEFAULTS;
24
+ /** @internal */
25
+ export function treemapChartLoad(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 treemapChartSave(_fields, config) {
72
77
  if (!config) {
73
78
  return undefined;
74
79
  }
@@ -88,9 +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 treemapChartLoad and treemapChartSave instead.
99
+ */
91
100
  export const treemapChart = {
92
- load,
93
- save,
101
+ load: treemapChartLoad,
102
+ save: treemapChartSave,
94
103
  DEFAULTS,
95
104
  };
96
- //# sourceMappingURL=treemapChart.js.map
@@ -1,3 +1,4 @@
1
+ /** @public */
1
2
  export type ColorMapping = {
2
3
  id: string;
3
4
  color: {
@@ -12,82 +13,108 @@ export type ColorMapping = {
12
13
  };
13
14
  };
14
15
  };
16
+ /** @internal */
15
17
  export type PointShapeSymbol = "circle" | "square" | "diamond" | "triangle" | "triangle-down";
18
+ /** @internal */
16
19
  export interface IChartFill {
17
20
  type: ChartFillType;
18
21
  measureToPatternName?: Record<string, PatternFillName>;
19
22
  }
23
+ /** @internal */
20
24
  export type ChartFillType = "solid" | "pattern" | "outline";
25
+ /** @internal */
21
26
  export type PatternFillName = "diagonal_grid_small" | "vertical_lines_small" | "grid_small" | "horizontal_lines_small" | "circle_small" | "flag_small" | "waffle_small" | "dot_small" | "pyramid_small" | "needle_small" | "diamond_small" | "pizza_small" | "diagonal_grid_medium" | "vertical_lines_medium" | "grid_large" | "horizontal_lines_medium" | "circle_medium" | "flag_medium" | "waffle_medium" | "dot_medium" | "pyramid_medium" | "needle_medium" | "diamond_medium" | "pizza_medium";
27
+ /** @public */
22
28
  export type ColumnLocator = IAttributeColumnLocator | IMeasureColumnLocator | ITotalColumnLocator;
29
+ /** @public */
23
30
  export interface IAttributeColumnLocatorBody {
24
31
  attributeIdentifier: string;
25
32
  element?: string | null;
26
33
  }
34
+ /** @public */
27
35
  export interface ITotalColumnLocatorBody {
28
36
  attributeIdentifier: string;
29
37
  totalFunction: string;
30
38
  }
39
+ /** @public */
31
40
  export interface IAttributeColumnLocator {
32
41
  attributeLocatorItem: IAttributeColumnLocatorBody;
33
42
  }
43
+ /** @public */
34
44
  export interface ITotalColumnLocator {
35
45
  totalLocatorItem: ITotalColumnLocatorBody;
36
46
  }
47
+ /** @public */
37
48
  export interface IAttributeColumnWidthItem {
38
49
  attributeColumnWidthItem: IAttributeColumnWidthItemBody;
39
50
  }
51
+ /** @public */
40
52
  export interface IAttributeColumnWidthItemBody {
41
53
  width: IAbsoluteColumnWidth;
42
54
  attributeIdentifier: string;
43
55
  }
56
+ /** @public */
44
57
  export interface IMeasureColumnWidthItemBody {
45
58
  width: ColumnWidth;
46
59
  locators: ColumnLocator[];
47
60
  }
61
+ /** @public */
48
62
  export interface IMeasureColumnWidthItem {
49
63
  measureColumnWidthItem: IMeasureColumnWidthItemBody;
50
64
  }
65
+ /** @public */
51
66
  export interface ISliceMeasureColumnWidthItemBody {
52
67
  width: ColumnWidth;
53
68
  locators: IMeasureColumnLocator[];
54
69
  }
70
+ /** @public */
55
71
  export interface ISliceMeasureColumnWidthItem {
56
72
  sliceMeasureColumnWidthItem: ISliceMeasureColumnWidthItemBody;
57
73
  }
74
+ /** @public */
58
75
  export interface IMixedValuesColumnWidthItemBody {
59
76
  width: ColumnWidth;
60
77
  locators: IMeasureColumnLocator[];
61
78
  }
79
+ /** @public */
62
80
  export interface IAbsoluteColumnWidth {
63
81
  value: number;
64
82
  allowGrowToFit?: boolean;
65
83
  }
84
+ /** @public */
66
85
  export type ColumnWidth = IAbsoluteColumnWidth | IAutoColumnWidth;
86
+ /** @public */
67
87
  export interface IAutoColumnWidth {
68
88
  value: "auto";
69
89
  }
90
+ /** @public */
70
91
  export interface IMixedValuesColumnWidthItem {
71
92
  mixedValuesColumnWidthItem: IMixedValuesColumnWidthItemBody;
72
93
  }
94
+ /** @public */
73
95
  export interface IAllMeasureColumnWidthItemBody {
74
96
  width: IAbsoluteColumnWidth;
75
97
  }
98
+ /** @public */
76
99
  export interface IAllMeasureColumnWidthItem {
77
100
  measureColumnWidthItem: IAllMeasureColumnWidthItemBody;
78
101
  }
102
+ /** @public */
79
103
  export interface IWeakMeasureColumnWidthItemBody {
80
104
  width: IAbsoluteColumnWidth;
81
105
  locator: IMeasureColumnLocator;
82
106
  }
107
+ /** @public */
83
108
  export interface IWeakMeasureColumnWidthItem {
84
109
  measureColumnWidthItem: IWeakMeasureColumnWidthItemBody;
85
110
  }
111
+ /** @public */
86
112
  export interface IMeasureColumnLocatorBody {
87
113
  measureIdentifier: string;
88
114
  }
115
+ /** @public */
89
116
  export interface IMeasureColumnLocator {
90
117
  measureLocatorItem: IMeasureColumnLocatorBody;
91
118
  }
119
+ /** @public */
92
120
  export type ColumnWidthItem = IAttributeColumnWidthItem | IMeasureColumnWidthItem | ISliceMeasureColumnWidthItem | IMixedValuesColumnWidthItem | IAllMeasureColumnWidthItem | IWeakMeasureColumnWidthItem;
93
- //# sourceMappingURL=types.d.ts.map
@@ -1,3 +1,2 @@
1
1
  // (C) 2023-2026 GoodData Corporation
2
2
  export {};
3
- //# sourceMappingURL=types.js.map
@@ -3,6 +3,7 @@ import { Pair } from "yaml";
3
3
  export type VisualisationConfig<T> = {
4
4
  controls?: T;
5
5
  };
6
+ /** @internal */
6
7
  export type ConfigDefaults<T> = {
7
8
  [key in keyof T]: T[key];
8
9
  };
@@ -12,4 +13,3 @@ export type ValueType = "string" | "bool" | "number" | "bool_auto" | "array";
12
13
  export declare function getValueOrDefault<T>(value: T, defaultValue: T, type?: ValueType, undefinedAsDefault?: boolean): T | undefined;
13
14
  export declare function loadConfig<T>(props: VisualisationConfig<T>, loader: <K extends keyof T>(key: K, value: T[K]) => [string, any][]): Pair<import("yaml").Scalar<string>, any> | null;
14
15
  export declare function saveConfigObject<T extends object>(obj: T | undefined): T | undefined;
15
- //# sourceMappingURL=utils.d.ts.map
@@ -74,4 +74,3 @@ function addInPath(base, path, newValue) {
74
74
  }
75
75
  });
76
76
  }
77
- //# sourceMappingURL=utils.js.map
@@ -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 WaterfallChartConfigProperties = {
5
6
  colorMapping: Array<ColorMapping>;
6
7
  dataLabels: {
7
8
  visible: boolean | "auto";
@@ -50,8 +51,12 @@ type DefaultProperties = {
50
51
  disableAlerts: boolean;
51
52
  disableScheduledExports: boolean;
52
53
  };
53
- declare function load(props: VisualisationConfig<DefaultProperties>): import("yaml").Pair<import("yaml").Scalar<string>, any> | null;
54
- declare function save(_fields: Visualisation["query"]["fields"] | undefined, config: Visualisation["config"] | undefined): {
54
+ /** @internal */
55
+ export declare const WATERFALL_CHART_DEFAULTS: ConfigDefaults<WaterfallChartConfigProperties>;
56
+ /** @internal */
57
+ export declare function waterfallChartLoad(props: VisualisationConfig<WaterfallChartConfigProperties>): import("yaml").Pair<import("yaml").Scalar<string>, any> | null;
58
+ /** @internal */
59
+ export declare function waterfallChartSave(_fields: Visualisation["query"]["fields"] | undefined, config: Visualisation["config"] | undefined): {
55
60
  colorMapping: ColorMapping[] | undefined;
56
61
  dataLabels: {
57
62
  visible: "auto" | boolean | undefined;
@@ -100,10 +105,17 @@ declare function save(_fields: Visualisation["query"]["fields"] | undefined, con
100
105
  disableAlerts: boolean | undefined;
101
106
  disableScheduledExports: boolean | undefined;
102
107
  } | undefined;
103
- export declare const waterfallChart: {
104
- load: typeof load;
105
- save: typeof save;
106
- DEFAULTS: ConfigDefaults<DefaultProperties>;
107
- };
108
- export {};
109
- //# sourceMappingURL=waterfallChart.d.ts.map
108
+ /**
109
+ * @internal
110
+ * @deprecated Use waterfallChartLoad and waterfallChartSave instead.
111
+ */
112
+ export interface IWaterfallChartConfig {
113
+ load: typeof waterfallChartLoad;
114
+ save: typeof waterfallChartSave;
115
+ DEFAULTS: ConfigDefaults<WaterfallChartConfigProperties>;
116
+ }
117
+ /**
118
+ * @internal
119
+ * @deprecated Use waterfallChartLoad and waterfallChartSave instead.
120
+ */
121
+ export declare const waterfallChart: IWaterfallChartConfig;
@@ -1,6 +1,7 @@
1
1
  // (C) 2023-2026 GoodData Corporation
2
2
  import { loadChartFill, loadColorDefinitions, saveChartFill, saveColorDefinitions, } 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: {
@@ -49,7 +50,10 @@ const DEFAULTS = {
49
50
  disableAlerts: false,
50
51
  disableScheduledExports: false,
51
52
  };
52
- function load(props) {
53
+ /** @internal */
54
+ export const WATERFALL_CHART_DEFAULTS = DEFAULTS;
55
+ /** @internal */
56
+ export function waterfallChartLoad(props) {
53
57
  return loadConfig(props, (key, value) => {
54
58
  switch (key) {
55
59
  case "colorMapping":
@@ -155,7 +159,8 @@ function load(props) {
155
159
  }
156
160
  });
157
161
  }
158
- function save(_fields, config) {
162
+ /** @internal */
163
+ export function waterfallChartSave(_fields, config) {
159
164
  if (!config) {
160
165
  return undefined;
161
166
  }
@@ -206,9 +211,12 @@ function save(_fields, config) {
206
211
  disableScheduledExports: getValueOrDefault(config.disable_scheduled_exports, DEFAULTS.disableScheduledExports, "bool"),
207
212
  });
208
213
  }
214
+ /**
215
+ * @internal
216
+ * @deprecated Use waterfallChartLoad and waterfallChartSave instead.
217
+ */
209
218
  export const waterfallChart = {
210
- load,
211
- save,
219
+ load: waterfallChartLoad,
220
+ save: waterfallChartSave,
212
221
  DEFAULTS,
213
222
  };
214
- //# sourceMappingURL=waterfallChart.js.map
package/esm/conts.d.ts CHANGED
@@ -1,9 +1,16 @@
1
+ /** @internal */
1
2
  export declare const DatasetTypes: string[];
3
+ /** @internal */
2
4
  export declare const DateDatasetTypes: string[];
5
+ /** @internal */
3
6
  export declare const MetricTypes: string[];
7
+ /** @internal */
4
8
  export declare const DashboardTypes: string[];
9
+ /** @internal */
5
10
  export declare const PluginTypes: string[];
11
+ /** @internal */
6
12
  export declare const AttributeHierarchyTypes: string[];
13
+ /** @internal */
7
14
  export declare const VisualisationsTypes: string[];
15
+ /** @internal */
8
16
  export declare const AllTypes: string[];
9
- //# sourceMappingURL=conts.d.ts.map
package/esm/conts.js CHANGED
@@ -1,10 +1,17 @@
1
1
  // (C) 2024-2026 GoodData Corporation
2
+ /** @internal */
2
3
  export const DatasetTypes = ["dataset"];
4
+ /** @internal */
3
5
  export const DateDatasetTypes = ["date"];
6
+ /** @internal */
4
7
  export const MetricTypes = ["metric"];
8
+ /** @internal */
5
9
  export const DashboardTypes = ["dashboard"];
10
+ /** @internal */
6
11
  export const PluginTypes = ["plugin"];
12
+ /** @internal */
7
13
  export const AttributeHierarchyTypes = ["attribute_hierarchy"];
14
+ /** @internal */
8
15
  export const VisualisationsTypes = [
9
16
  "table",
10
17
  "bar_chart",
@@ -29,6 +36,7 @@ export const VisualisationsTypes = [
29
36
  "geo_area_chart",
30
37
  "repeater_chart",
31
38
  ];
39
+ /** @internal */
32
40
  export const AllTypes = [
33
41
  ...DatasetTypes,
34
42
  ...DateDatasetTypes,
@@ -38,4 +46,3 @@ export const AllTypes = [
38
46
  ...VisualisationsTypes,
39
47
  ...AttributeHierarchyTypes,
40
48
  ];
41
- //# sourceMappingURL=conts.js.map
@@ -2,4 +2,3 @@ import type { Query } from "@gooddata/sdk-code-schemas/v1";
2
2
  import { type ExportEntities, type ToExecutionResults } from "../types.js";
3
3
  /** @public */
4
4
  export declare function buildAfmExecution(entities: ExportEntities, query: Query): ToExecutionResults;
5
- //# sourceMappingURL=buildAfmExecution.d.ts.map
@@ -409,4 +409,3 @@ function buildSorting(sort_by) {
409
409
  sorting,
410
410
  };
411
411
  }
412
- //# sourceMappingURL=buildAfmExecution.js.map
@@ -10,4 +10,3 @@ export declare function declarativeAttributeHierarchyToYaml(hierarchy: Declarati
10
10
  content: string;
11
11
  json: AttributeHierarchy;
12
12
  };
13
- //# sourceMappingURL=declarativeAttributeHierarchyToYaml.d.ts.map
@@ -29,4 +29,3 @@ export function declarativeAttributeHierarchyToYaml(hierarchy, context) {
29
29
  json: doc.toJSON(),
30
30
  };
31
31
  }
32
- //# sourceMappingURL=declarativeAttributeHierarchyToYaml.js.map
@@ -4,6 +4,7 @@ import type { Dashboard } from "@gooddata/sdk-code-schemas/v1";
4
4
  import { type IDashboardAttributeFilterConfig, type IDashboardDateFilterConfig, type IDashboardDateFilterConfigItem, type IDashboardDefinition, type IDashboardLayout, type IDashboardLayoutItem, type IDashboardLayoutWidget, type IDashboardMeasureValueFilterConfig, type IDashboardWidget, type IDrillDownIntersectionIgnoredAttributes, type IDrillDownReference, type IFilterContextDefinition, type IInsightWidget, type IRichTextWidget, type IVisualizationSwitcherWidget, type InsightDrillDefinition } from "@gooddata/sdk-model";
5
5
  import { type DashboardTab, type FromEntities } from "../types.js";
6
6
  import { type IErrorContext } from "../utils/errors.js";
7
+ /** @internal */
7
8
  export type OverrideDashboardDefinition = Omit<IDashboardDefinition, "filterContext"> & {
8
9
  filterContextRef?: AfmObjectIdentifier;
9
10
  tabs?: DashboardTab[];
@@ -14,8 +15,11 @@ export declare function declarativeDashboardToYaml(entities: FromEntities, dashb
14
15
  content: string;
15
16
  json: Dashboard;
16
17
  };
18
+ /** @internal */
17
19
  export declare function declarativeTabsToYaml(tabs: DashboardTab[], filterContexts?: DeclarativeFilterContext[], entities?: FromEntities, errorContext?: IErrorContext): YAMLSeq | undefined;
20
+ /** @internal */
18
21
  export declare function declarativeSectionsToYaml(layout?: IDashboardLayout, entities?: FromEntities, errorContext?: IErrorContext): YAMLSeq<unknown> | undefined;
22
+ /** @internal */
19
23
  export declare function declarativeWidgetToYaml(widget?: IDashboardWidget | null, size?: IDashboardLayoutItem["size"], entities?: FromEntities, errorContext?: IErrorContext): YAMLMap<unknown, unknown> | undefined;
20
24
  export declare function declarativeInsightWidgetToYaml(widget: IInsightWidget, size?: IDashboardLayoutItem["size"], entities?: FromEntities, errorContext?: IErrorContext): YAMLMap<unknown, unknown>;
21
25
  export declare function declarativeIgnoreDrillDownHierarchyToYaml(hierarchy: IDrillDownReference, errorContext?: IErrorContext): {
@@ -42,19 +46,23 @@ export declare function declarativeDrillDownIntersectionIgnoredAttributesToYaml(
42
46
  export declare function declarativeRichTextWidgetToYaml(widget: IRichTextWidget, size?: IDashboardLayoutItem["size"]): YAMLMap<unknown, unknown>;
43
47
  export declare function declarativeVisualizationSwitcherWidgetToYaml(widget: IVisualizationSwitcherWidget, size?: IDashboardLayoutItem["size"], entities?: FromEntities, errorContext?: IErrorContext): YAMLMap<unknown, unknown>;
44
48
  export declare function declarativeContainerWidgetToYaml(widget: IDashboardLayoutWidget, size?: IDashboardLayoutItem["size"], entities?: FromEntities, errorContext?: IErrorContext): YAMLMap<unknown, unknown>;
49
+ /** @internal */
45
50
  export declare function declarativeDrillToYaml(drill: InsightDrillDefinition, entities?: FromEntities, sourceVisualizationId?: string, errorContext?: IErrorContext): YAMLMap<unknown, unknown>;
51
+ /** @internal */
46
52
  export type FilterContextItem = {
47
53
  yaml: YAMLMap;
48
54
  filter: IFilterContextDefinition["filters"][number];
49
55
  };
56
+ /** @internal */
50
57
  export declare function declarativeFilterContextToYaml(dateFilterConfig?: IDashboardDateFilterConfig, filterContext?: DeclarativeFilterContext, errorContext?: IErrorContext): {
51
58
  filters: YAMLMap<unknown, unknown>;
52
59
  filtersMap: {
53
60
  [key: string]: FilterContextItem;
54
61
  };
55
62
  };
63
+ /** @internal */
56
64
  export declare function declarativeFiltersConfigToYaml(filtersMap: Record<string, FilterContextItem>, dateFilterConfig?: IDashboardDateFilterConfig, dateFilterConfigs?: IDashboardDateFilterConfigItem[], attributeFilterConfigs?: IDashboardAttributeFilterConfig[], measureValueFilterConfigs?: IDashboardMeasureValueFilterConfig[], errorContext?: IErrorContext): void;
57
65
  export declare function declarativeFilterGroupsToYaml(filters: YAMLMap, filterGroupsConfig?: DashboardTab["filterGroupsConfig"]): YAMLMap;
66
+ /** @internal */
58
67
  export declare function declarativePluginsToYaml(dashboard: IDashboardDefinition, errorContext?: IErrorContext): YAMLSeq<unknown> | undefined;
59
68
  export declare function declarativePermissionsToYaml(doc: Document, dashboard: DeclarativeAnalyticalDashboard | DeclarativeAnalyticalDashboardExtension): YAMLMap<import("yaml").Scalar<string> | import("yaml").Scalar<number>, import("yaml").Scalar<undefined> | YAMLMap<import("yaml").Scalar<"all"> | import("yaml").Scalar<"user_groups"> | import("yaml").Scalar<"users">, import("yaml").Scalar<undefined> | import("yaml").Scalar<false> | import("yaml").Scalar<true> | YAMLSeq<import("yaml").Scalar<string>>>> | undefined;
60
- //# sourceMappingURL=declarativeDashboardToYaml.d.ts.map
@@ -106,6 +106,7 @@ export function declarativeDashboardToYaml(entities, dashboard, filterContexts,
106
106
  json: doc.toJSON(),
107
107
  };
108
108
  }
109
+ /** @internal */
109
110
  export function declarativeTabsToYaml(tabs, filterContexts, entities, errorContext) {
110
111
  // no tabs
111
112
  if (!tabs || tabs.length === 0) {
@@ -146,6 +147,7 @@ export function declarativeTabsToYaml(tabs, filterContexts, entities, errorConte
146
147
  });
147
148
  return yamlTabs;
148
149
  }
150
+ /** @internal */
149
151
  export function declarativeSectionsToYaml(layout, entities, errorContext) {
150
152
  //no sections at all
151
153
  if (!layout?.sections?.length) {
@@ -175,6 +177,7 @@ export function declarativeSectionsToYaml(layout, entities, errorContext) {
175
177
  });
176
178
  return sections;
177
179
  }
180
+ /** @internal */
178
181
  export function declarativeWidgetToYaml(widget, size, entities, errorContext) {
179
182
  if (!widget) {
180
183
  return;
@@ -368,6 +371,7 @@ export function declarativeContainerWidgetToYaml(widget, size, entities, errorCo
368
371
  }
369
372
  return yamlWidget;
370
373
  }
374
+ /** @internal */
371
375
  export function declarativeDrillToYaml(drill, entities, sourceVisualizationId, errorContext) {
372
376
  const drillYaml = new YAMLMap();
373
377
  const originIdentifier = drill.origin.type === "drillFromMeasure" ? drill.origin.measure : drill.origin.attribute;
@@ -509,6 +513,7 @@ function getDateFilterEmptyValueHandling(filter) {
509
513
  }
510
514
  return undefined;
511
515
  }
516
+ /** @internal */
512
517
  export function declarativeFilterContextToYaml(dateFilterConfig, filterContext, errorContext) {
513
518
  const filters = [];
514
519
  const filtersMap = {};
@@ -757,6 +762,7 @@ function declarativeMeasureValueFilterToYaml(filter, errorContext) {
757
762
  }
758
763
  return measureValueFilter;
759
764
  }
765
+ /** @internal */
760
766
  export function declarativeFiltersConfigToYaml(filtersMap, dateFilterConfig, dateFilterConfigs, attributeFilterConfigs, measureValueFilterConfigs, errorContext) {
761
767
  attributeFilterConfigs?.forEach((filterSettings, i) => {
762
768
  const filter = filtersMap[filterSettings.localIdentifier];
@@ -877,6 +883,7 @@ function getFilterGroupIdBase({ title, localIdentifier }) {
877
883
  .replace(/[^a-zA-Z0-9]/g, "_")
878
884
  .toLowerCase();
879
885
  }
886
+ /** @internal */
880
887
  export function declarativePluginsToYaml(dashboard, errorContext) {
881
888
  if (!dashboard.plugins?.length) {
882
889
  return;
@@ -911,4 +918,3 @@ function parseParameters(params) {
911
918
  return params;
912
919
  }
913
920
  }
914
- //# sourceMappingURL=declarativeDashboardToYaml.js.map
@@ -6,4 +6,3 @@ export declare function declarativeDatasetToYaml(dataset: DeclarativeDataset, pr
6
6
  content: string;
7
7
  json: Dataset;
8
8
  };
9
- //# sourceMappingURL=declarativeDatasetToYaml.d.ts.map
@@ -252,4 +252,3 @@ export function declarativeDatasetToYaml(dataset, profile, tablesMap) {
252
252
  json: doc.toJSON(),
253
253
  };
254
254
  }
255
- //# sourceMappingURL=declarativeDatasetToYaml.js.map
@@ -5,4 +5,3 @@ export declare function declarativeDateInstanceToYaml(dataset: DeclarativeDateDa
5
5
  content: string;
6
6
  json: DateDataset;
7
7
  };
8
- //# sourceMappingURL=declarativeDateInstanceToYaml.d.ts.map
@@ -27,4 +27,3 @@ export function declarativeDateInstanceToYaml(dataset) {
27
27
  json: doc.toJSON(),
28
28
  };
29
29
  }
30
- //# sourceMappingURL=declarativeDateInstanceToYaml.js.map
@@ -5,4 +5,3 @@ export declare function declarativeMetricToYaml(metric: DeclarativeMetric): {
5
5
  content: string;
6
6
  json: Metric;
7
7
  };
8
- //# sourceMappingURL=declarativeMetricToYaml.d.ts.map
@@ -31,4 +31,3 @@ export function declarativeMetricToYaml(metric) {
31
31
  json: doc.toJSON(),
32
32
  };
33
33
  }
34
- //# sourceMappingURL=declarativeMetricToYaml.js.map
@@ -7,4 +7,3 @@ export declare function declarativePluginToYaml(plugin: DeclarativeDashboardPlug
7
7
  content: string;
8
8
  json: Plugin;
9
9
  };
10
- //# sourceMappingURL=declarativePluginToYaml.d.ts.map
@@ -23,4 +23,3 @@ export function declarativePluginToYaml(plugin) {
23
23
  json: doc.toJSON(),
24
24
  };
25
25
  }
26
- //# sourceMappingURL=declarativePluginToYaml.js.map