@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
@@ -34,6 +34,7 @@ import { IAttributeFilterConfigs } from '@gooddata/sdk-model';
34
34
  import { IAttributeSortItem } from '@gooddata/sdk-model';
35
35
  import { IBucket } from '@gooddata/sdk-model';
36
36
  import { IDashboardAttributeFilterConfig } from '@gooddata/sdk-model';
37
+ import { IDashboardDateFilter } from '@gooddata/sdk-model';
37
38
  import { IDashboardDateFilterConfig } from '@gooddata/sdk-model';
38
39
  import { IDashboardDateFilterConfigItem } from '@gooddata/sdk-model';
39
40
  import { IDashboardDefinition } from '@gooddata/sdk-model';
@@ -130,392 +131,250 @@ export declare type AacSection = Section;
130
131
  /** @public */
131
132
  export declare type AacVisualisation = Visualisation;
132
133
 
134
+ /** @internal */
133
135
  export declare const AllTypes: string[];
134
136
 
135
- export declare const areaChart: {
136
- load: typeof load_5;
137
- save: typeof save_5;
138
- DEFAULTS: ConfigDefaults<DefaultProperties_5>;
139
- };
140
-
141
- /** @public */
142
- export declare function assertUnreachable(x: never): never;
143
-
144
- export declare const AttributeHierarchyTypes: string[];
145
-
146
- export declare const barChart: {
147
- load: typeof load_2;
148
- save: typeof save_2;
149
- DEFAULTS: ConfigDefaults<DefaultProperties_2>;
150
- };
137
+ /** @internal */
138
+ export declare const AREA_CHART_DEFAULTS: ConfigDefaults<AreaChartConfigProperties>;
151
139
 
152
- export declare const bubbleChart: {
153
- load: typeof load_7;
154
- save: typeof save_7;
155
- DEFAULTS: ConfigDefaults<DefaultProperties_7>;
156
- };
140
+ /**
141
+ * @internal
142
+ * @deprecated Use areaChartLoad and areaChartSave instead.
143
+ */
144
+ export declare const areaChart: IAreaChartConfig;
157
145
 
158
- declare type BucketGroup = {
159
- type: BucketsType;
160
- items: BucketGroupItems;
146
+ /** @internal */
147
+ export declare type AreaChartConfigProperties = {
148
+ colorMapping: Array<ColorMapping>;
149
+ distinctPointShapes: {
150
+ enabled: boolean;
151
+ pointShapeMapping?: Record<string, PointShapeSymbol>;
152
+ };
153
+ chartFill: {
154
+ type: ChartFillType;
155
+ measureToPatternName?: Record<string, PatternFillName>;
156
+ };
157
+ dataLabels: {
158
+ visible: boolean | "auto";
159
+ style: "auto" | "backplate";
160
+ };
161
+ dataPoints: {
162
+ visible: boolean | "auto";
163
+ };
164
+ legend: {
165
+ enabled: boolean;
166
+ position: "top" | "bottom" | "left" | "right" | "auto";
167
+ };
168
+ stackMeasures: boolean;
169
+ stackMeasuresToPercent: boolean;
170
+ xaxis: {
171
+ name: {
172
+ visible: boolean;
173
+ position: "center" | "left" | "right" | "auto";
174
+ };
175
+ labelsEnabled: boolean;
176
+ rotation: "0" | "30" | "60" | "90" | "auto";
177
+ visible: boolean;
178
+ };
179
+ yaxis: {
180
+ format: "inherit" | "auto";
181
+ max: number | string;
182
+ min: number | string;
183
+ name: {
184
+ visible: boolean;
185
+ position: "center" | "left" | "right" | "auto";
186
+ };
187
+ labelsEnabled: boolean;
188
+ rotation: "0" | "30" | "60" | "90" | "auto";
189
+ visible: boolean;
190
+ };
191
+ grid: {
192
+ enabled: boolean;
193
+ };
194
+ disableDrillDown: boolean;
195
+ disableAlerts: boolean;
196
+ disableScheduledExports: boolean;
161
197
  };
162
198
 
163
- declare type BucketGroupItems = Array<{
164
- field: string;
165
- format?: string;
166
- totals?: YAMLMap[];
167
- axis?: "primary" | "secondary";
168
- display_as?: "metric" | "line" | "column";
169
- } | null>;
170
-
171
- declare type Buckets = {
172
- fieldsMap: YAMLMap;
173
- groups: BucketGroup[];
174
- postProcessors: PostProcessors;
175
- };
199
+ /** @internal */
200
+ export declare function areaChartLoad(props: VisualisationConfig<AreaChartConfigProperties>): Pair<Scalar<string>, any> | null;
176
201
 
177
- /** @public */
178
- export declare enum BucketsType {
179
- Measures = "measures",
180
- SecondaryMeasures = "secondary_measures",
181
- TertiaryMeasures = "tertiary_measures",
182
- Attribute = "attribute",
183
- Columns = "columns",
184
- View = "view",
185
- Stack = "stack",
186
- Trend = "trend",
187
- Segment = "segment",
188
- AttributeFrom = "attribute_from",
189
- AttributeTo = "attribute_to",
190
- Size = "size",
191
- Color = "color",
192
- Location = "location",
193
- Area = "area"
194
- }
202
+ /** @internal */
203
+ export declare function areaChartSave(_fields: Visualisation["query"]["fields"] | undefined, config: Visualisation["config"] | undefined): {
204
+ colorMapping: ColorMapping[] | undefined;
205
+ distinctPointShapes: {
206
+ enabled: boolean | undefined;
207
+ pointShapeMapping: Record<string, PointShapeSymbol> | undefined;
208
+ } | undefined;
209
+ chartFill: {
210
+ type: ChartFillType | undefined;
211
+ measureToPatternName: Record<string, PatternFillName> | undefined;
212
+ } | undefined;
213
+ dataLabels: {
214
+ visible: "auto" | boolean | undefined;
215
+ style: "auto" | "backplate" | undefined;
216
+ } | undefined;
217
+ dataPoints: {
218
+ visible: "auto" | boolean | undefined;
219
+ } | undefined;
220
+ legend: {
221
+ enabled: boolean | undefined;
222
+ position: string | undefined;
223
+ } | undefined;
224
+ stackMeasuresToPercent: boolean | undefined;
225
+ stackMeasures: boolean | undefined;
226
+ xaxis: {
227
+ name: {
228
+ position: string | undefined;
229
+ visible: boolean | undefined;
230
+ } | undefined;
231
+ rotation: string | undefined;
232
+ visible: boolean | undefined;
233
+ labelsEnabled: boolean | undefined;
234
+ } | undefined;
235
+ yaxis: {
236
+ format: string | undefined;
237
+ max: string | number | undefined;
238
+ min: string | number | undefined;
239
+ name: {
240
+ position: string | undefined;
241
+ visible: boolean | undefined;
242
+ } | undefined;
243
+ rotation: string | undefined;
244
+ visible: boolean | undefined;
245
+ labelsEnabled: boolean | undefined;
246
+ } | undefined;
247
+ grid: {
248
+ enabled: boolean | undefined;
249
+ } | undefined;
250
+ disableDrillDown: boolean | undefined;
251
+ disableAlerts: boolean | undefined;
252
+ disableScheduledExports: boolean | undefined;
253
+ } | undefined;
195
254
 
196
255
  /** @public */
197
- export declare function buildAfmExecution(entities: ExportEntities, query: Query): ToExecutionResults;
198
-
199
- /**
200
- * Build declarative attribute labels out of AaC labels
201
- */
202
- export declare function buildAttributeLabels(labels?: Attribute["labels"], isAuxiliaryDataset?: boolean): DeclarativeLabel[];
256
+ export declare function assertUnreachable(x: never): never;
203
257
 
204
- /**
205
- * Build declarative attributes out of AaC fields
206
- */
207
- export declare function buildAttributes(fields?: Fields, isAuxiliaryDataset?: boolean): DeclarativeAttribute[];
258
+ /** @internal */
259
+ export declare const AttributeHierarchyTypes: string[];
208
260
 
209
- /**
210
- * Build declarative facts out of AaC fields
211
- */
212
- export declare function buildFacts(fields?: Fields): DeclarativeFact[];
261
+ /** @internal */
262
+ export declare const BAR_CHART_DEFAULTS: ConfigDefaults<BarChartConfigProperties>;
213
263
 
214
264
  /**
215
- * Build declarative references
265
+ * @internal
266
+ * @deprecated Use barChartLoad and barChartSave instead.
216
267
  */
217
- export declare function buildReferences(entities: ExportEntities, refs?: Dataset["references"]): DeclarativeReference[];
218
-
219
- export declare const bulletChart: {
220
- load: typeof load_14;
221
- save: typeof save_14;
222
- DEFAULTS: ConfigDefaults<DefaultProperties_14>;
223
- };
224
-
225
- export declare interface ChartFill {
226
- type: ChartFillType;
227
- measureToPatternName?: Record<string, PatternFillName>;
228
- }
229
-
230
- export declare type ChartFillType = "solid" | "pattern" | "outline";
268
+ export declare const barChart: IBarChartConfig;
231
269
 
232
- export declare type ColorMapping = {
233
- id: string;
234
- color: {
235
- type: "guid";
236
- value: string;
237
- } | {
238
- type: "rgb";
239
- value: {
240
- r: number;
241
- g: number;
242
- b: number;
270
+ /** @internal */
271
+ export declare type BarChartConfigProperties = {
272
+ colorMapping: Array<ColorMapping>;
273
+ dataLabels: {
274
+ totalsVisible: boolean | "auto";
275
+ visible: boolean | "auto";
276
+ style: "auto" | "backplate";
277
+ };
278
+ chartFill: {
279
+ type: ChartFillType;
280
+ measureToPatternName?: Record<string, PatternFillName>;
281
+ };
282
+ legend: {
283
+ enabled: boolean;
284
+ position: "top" | "bottom" | "left" | "right" | "auto";
285
+ };
286
+ stackMeasures: boolean;
287
+ stackMeasuresToPercent: boolean;
288
+ xaxis: {
289
+ format: "inherit" | "auto";
290
+ max: number | string;
291
+ min: number | string;
292
+ name: {
293
+ visible: boolean;
294
+ position: "center" | "left" | "right" | "auto";
243
295
  };
296
+ labelsEnabled: boolean;
297
+ rotation: "0" | "30" | "60" | "90" | "auto";
298
+ visible: boolean;
244
299
  };
300
+ yaxis: {
301
+ name: {
302
+ visible: boolean;
303
+ position: "center" | "left" | "right" | "auto";
304
+ };
305
+ labelsEnabled: boolean;
306
+ rotation: "0" | "30" | "60" | "90" | "auto";
307
+ visible: boolean;
308
+ };
309
+ grid: {
310
+ enabled: boolean;
311
+ };
312
+ disableDrillDown: boolean;
313
+ disableAlerts: boolean;
314
+ disableScheduledExports: boolean;
245
315
  };
246
316
 
247
- export declare const columnChart: {
248
- load: typeof load_3;
249
- save: typeof save_3;
250
- DEFAULTS: ConfigDefaults<DefaultProperties_3>;
251
- };
252
-
253
- export declare type ColumnLocator = IAttributeColumnLocator | IMeasureColumnLocator | ITotalColumnLocator;
254
-
255
- export declare type ColumnWidth = IAbsoluteColumnWidth | IAutoColumnWidth;
256
-
257
- export declare type ColumnWidthItem = IAttributeColumnWidthItem | IMeasureColumnWidthItem | ISliceMeasureColumnWidthItem | IMixedValuesColumnWidthItem | IAllMeasureColumnWidthItem | IWeakMeasureColumnWidthItem;
258
-
259
- export declare const comboChart: {
260
- load: typeof load_19;
261
- save: typeof save_19;
262
- DEFAULTS: ConfigDefaults<DefaultProperties_19>;
263
- };
264
-
265
- declare type ConfigDefaults<T> = {
266
- [key in keyof T]: T[key];
267
- };
268
-
269
- /** @public */
270
- export declare function convertBucketToTitle(entities: ExportEntities, query: Query, field: FullFields, location?: boolean): string | null;
271
-
272
- /**
273
- * @public
274
- */
275
- export declare enum CoreErrorCode {
276
- BucketItemTypeNotSupported = "core.bucketItemTypeNotSupported",
277
- FilterItemTypeNotSupported = "core.filterItemTypeNotSupported",
278
- ItemNotSupported = "core.itemNotSupported",
279
- ReferenceTypeNotSupported = "core.referenceTypeNotSupported",
280
- VisualizationNotSupported = "core.visualizationNotSupported",
281
- LayerTypeNotSupported = "core.layerTypeNotSupported",
282
- MultipleDateDataSets = "core.multipleDateDataSets",
283
- OnlyOneDateDatasetAllowed = "core.onlyOneDateDatasetAllowed",
284
- OnlyOneAttributeItemAllowed = "core.onlyOneAttributeItemAllowed",
285
- MultipleCommonDateFilters = "core.multipleCommonDateFilters",
286
- DuplicateFilterLocalIdentifier = "core.duplicateFilterLocalIdentifier",
287
- DuplicateTabIdentifier = "core.duplicateTabIdentifier"
288
- }
289
-
290
- /**
291
- * @public
292
- */
293
- export declare const CoreErrorMessages: Record<CoreErrorCode, string>;
317
+ /** @internal */
318
+ export declare function barChartLoad(props: VisualisationConfig<BarChartConfigProperties>): Pair<Scalar<string>, any> | null;
294
319
 
295
- /**
296
- * @public
297
- */
298
- export declare const CoreErrorTypes: Record<CoreErrorCode, string>;
299
-
300
- /** @public */
301
- export declare function createIdentifier<T = AfmObjectIdentifier>(data: string, { forceMetric, forceType }?: {
302
- forceMetric?: boolean;
303
- forceType?: "user" | "userGroup" | "dataset" | "date" | "attribute" | "label" | "measure" | "workspaceDataFilter" | "visualizationObject" | "analyticalDashboard" | "dashboardPlugin" | "filterContext";
304
- }): T | null;
305
-
306
- declare type DashboardDefinition = Pick<OverrideDashboardDefinition, "layout" | "plugins" | "dateFilterConfig" | "dateFilterConfigs" | "disableCrossFiltering" | "disableUserFilterSave" | "disableUserFilterReset" | "disableFilterViews" | "attributeFilterConfigs" | "measureValueFilterConfigs" | "filterContextRef" | "tabs" | "activeTabLocalIdentifier"> & {
307
- version: string;
308
- };
309
-
310
- declare type DashboardSection = Required<DashboardDefinition>["layout"]["sections"][number];
311
-
312
- /** @public */
313
- export declare type DashboardTab = {
314
- localIdentifier: string;
315
- title: string;
316
- layout: IDashboardDefinition["layout"];
317
- filterContextRef?: AfmObjectIdentifier;
318
- dateFilterConfig?: IDashboardDefinition["dateFilterConfig"];
319
- dateFilterConfigs?: IDashboardDefinition["dateFilterConfigs"];
320
- attributeFilterConfigs?: IDashboardDefinition["attributeFilterConfigs"];
321
- measureValueFilterConfigs?: IDashboardDefinition["measureValueFilterConfigs"];
322
- filterGroupsConfig?: IDashboardFilterGroupsConfig;
323
- };
324
-
325
- export declare const DashboardTypes: string[];
326
-
327
- declare type DashboardWidget = DashboardSection["items"][number];
328
-
329
- export declare const DatasetTypes: string[];
330
-
331
- export declare const DateDatasetTypes: string[];
332
-
333
- export declare function declarativeAbsoluteDateFilterToYaml(absoluteDateFilter: IAbsoluteDateFilter["absoluteDateFilter"], connectedAttributeFilters: IFilter[] | undefined, entities: FromEntities, getUniqueKey: (baseKey: string) => string, errorContext?: IErrorContext): YAMLMap;
334
-
335
- export declare function declarativeArithmeticMetricToYaml(def: IMeasureBody, arithmeticDefinition: IArithmeticMeasureDefinition): YAMLMap;
336
-
337
- /** @public */
338
- export declare function declarativeAttributeHierarchyToYaml(hierarchy: DeclarativeAttributeHierarchy, context?: IErrorContext): {
339
- content: string;
340
- json: AttributeHierarchy;
341
- };
342
-
343
- export declare function declarativeAttributeSortToYaml(sort: IAttributeSortItem): YAMLMap;
344
-
345
- export declare function declarativeAttributeToYaml(def: IAttributeBody, errorContext?: IErrorContext): YAMLMap;
346
-
347
- export declare function declarativeBucketsToYaml(entities: FromEntities, buckets: IBucket[], errorContext?: IErrorContext): Buckets;
348
-
349
- /** @public */
350
- export declare function declarativeDashboardToYaml(entities: FromEntities, dashboard: DeclarativeAnalyticalDashboard, filterContexts?: DeclarativeFilterContext[], context?: IErrorContext): {
351
- content: string;
352
- json: Dashboard;
353
- };
354
-
355
- /** @public */
356
- export declare function declarativeDatasetToYaml(dataset: DeclarativeDataset, profile: Profile, tablesMap: Record<string, DeclarativeTable[]>): {
357
- content: string;
358
- json: Dataset;
359
- };
360
-
361
- /** @public */
362
- export declare function declarativeDateInstanceToYaml(dataset: DeclarativeDateDataset): {
363
- content: string;
364
- json: DateDataset;
365
- };
366
-
367
- export declare function declarativeDrillToYaml(drill: InsightDrillDefinition, entities?: FromEntities, sourceVisualizationId?: string, errorContext?: IErrorContext): YAMLMap<unknown, unknown>;
368
-
369
- export declare function declarativeFilterContextToYaml(dateFilterConfig?: IDashboardDateFilterConfig, filterContext?: DeclarativeFilterContext, errorContext?: IErrorContext): {
370
- filters: YAMLMap<unknown, unknown>;
371
- filtersMap: {
372
- [key: string]: FilterContextItem;
373
- };
374
- };
375
-
376
- export declare function declarativeFiltersConfigToYaml(filtersMap: Record<string, FilterContextItem>, dateFilterConfig?: IDashboardDateFilterConfig, dateFilterConfigs?: IDashboardDateFilterConfigItem[], attributeFilterConfigs?: IDashboardAttributeFilterConfig[], measureValueFilterConfigs?: IDashboardMeasureValueFilterConfig[], errorContext?: IErrorContext): void;
377
-
378
- export declare function declarativeFiltersToYaml(entities: FromEntities, filters: IFilter[], errorContext?: IErrorContext): Filters;
379
-
380
- export declare function declarativeInlineMetricToYaml(def: IMeasureBody, inlineDef: IInlineMeasureDefinition): YAMLMap;
381
-
382
- export declare function declarativeMeasureSortToYaml(sort: IMeasureSortItem): YAMLMap;
383
-
384
- export declare function declarativeMeasureValueFilterToYaml(measureValueFilter: IMeasureValueFilterBody, errorContext?: IErrorContext): YAMLMap;
385
-
386
- /** @public */
387
- export declare function declarativeMetricToYaml(metric: DeclarativeMetric): {
388
- content: string;
389
- json: Metric;
390
- };
391
-
392
- export declare function declarativeNegativeAttributeFilterToYaml(entities: FromEntities, attributeFilter: INegativeAttributeFilterBody, errorContext?: IErrorContext): YAMLMap;
393
-
394
- export declare function declarativeNormalMetricToYaml(def: IMeasureBody, metricDefinition: IMeasureDefinition, postProcessors: PostProcessors, errorContext?: IErrorContext): YAMLMap;
395
-
396
- export declare function declarativePluginsToYaml(dashboard: IDashboardDefinition, errorContext?: IErrorContext): YAMLSeq<unknown> | undefined;
397
-
398
- /** @public */
399
- export declare function declarativePluginToYaml(plugin: DeclarativeDashboardPlugin): {
400
- content: string;
401
- json: Plugin_2;
402
- };
403
-
404
- export declare function declarativePoPMetricToYaml(def: IMeasureBody, popDefinition: IPoPMeasureDefinition, errorContext?: IErrorContext): YAMLMap;
405
-
406
- export declare function declarativePositiveAttributeFilterToYaml(entities: FromEntities, attributeFilter: IPositiveAttributeFilterBody, errorContext?: IErrorContext): YAMLMap;
407
-
408
- export declare function declarativePreviousPeriodMetricToYaml(def: IMeasureBody, previousDefinition: IPreviousPeriodMeasureDefinition, errorContext?: IErrorContext): YAMLMap;
409
-
410
- export declare function declarativeRankingFilterToYaml(rankingFilter: IRankingFilterBody, errorContext?: IErrorContext): YAMLMap;
411
-
412
- export declare function declarativeRelativeDateFilterToYaml(relativeDateFilter: IRelativeDateFilter["relativeDateFilter"], connectedAttributeFilters: IFilter[] | undefined, entities: FromEntities, getUniqueKey: (baseKey: string) => string, errorContext?: IErrorContext): YAMLMap;
413
-
414
- export declare function declarativeSectionsToYaml(layout?: IDashboardLayout, entities?: FromEntities, errorContext?: IErrorContext): YAMLSeq<unknown> | undefined;
415
-
416
- export declare function declarativeSortsToYaml(sorts: ISortItem[], _errorContext?: IErrorContext): Sorts_2;
417
-
418
- export declare function declarativeTabsToYaml(tabs: DashboardTab[], filterContexts?: DeclarativeFilterContext[], entities?: FromEntities, errorContext?: IErrorContext): YAMLSeq | undefined;
419
-
420
- export declare function declarativeTotalToYaml(total: ITotal, _errorContext?: IErrorContext): {
421
- totalMap: YAMLMap<unknown, unknown>;
422
- attribute: string;
423
- };
424
-
425
- export declare function declarativeVisTypeToYaml(def: IInsightDefinition["insight"]): string | null;
426
-
427
- /** @public */
428
- export declare function declarativeVisualisationToYaml(entities: FromEntities, visualisation: DeclarativeVisualizationObject, context?: IErrorContext): {
429
- content: string;
430
- json?: Visualisation;
431
- };
432
-
433
- export declare function declarativeWidgetToYaml(widget?: IDashboardWidget | null, size?: IDashboardLayoutItem["size"], entities?: FromEntities, errorContext?: IErrorContext): YAMLMap<unknown, unknown> | undefined;
434
-
435
- declare type DefaultProperties = {
436
- columnWidths: Array<ColumnWidthItem>;
437
- measureGroupDimension: "columns" | "rows";
438
- columnHeadersPosition: "top" | "left";
439
- disableDrillDown: boolean;
440
- disableDrillIntoURL: boolean;
441
- disableAlerts: boolean;
442
- disableScheduledExports: boolean;
443
- textWrapping: {
444
- wrapText: boolean;
445
- wrapHeaderText: boolean;
446
- columnOverrides: Array<{
447
- locators: ColumnLocator[];
448
- wrapText: boolean;
449
- wrapHeaderText: boolean;
450
- matchType: "column" | "pivotGroup";
451
- }>;
452
- };
453
- enableAccessibility: boolean;
454
- pagination: {
455
- enabled: boolean;
456
- };
457
- pageSize: number;
458
- grandTotalsPosition: "pinnedBottom" | "pinnedTop" | "bottom" | "top";
459
- };
460
-
461
- declare type DefaultProperties_10 = {
462
- colorMapping: Array<ColorMapping>;
320
+ /** @internal */
321
+ export declare function barChartSave(_fields: Visualisation["query"]["fields"] | undefined, config: Visualisation["config"] | undefined): {
322
+ colorMapping: ColorMapping[] | undefined;
463
323
  dataLabels: {
464
- visible: boolean | "auto";
465
- style: "auto" | "backplate";
466
- };
324
+ totalsVisible: "auto" | boolean | undefined;
325
+ visible: "auto" | boolean | undefined;
326
+ style: "auto" | "backplate" | undefined;
327
+ } | undefined;
467
328
  chartFill: {
468
- type: ChartFillType;
469
- measureToPatternName?: Record<string, PatternFillName>;
470
- };
329
+ type: ChartFillType | undefined;
330
+ measureToPatternName: Record<string, PatternFillName> | undefined;
331
+ } | undefined;
471
332
  legend: {
472
- enabled: boolean;
473
- position: "top" | "bottom" | "left" | "right" | "auto";
474
- };
475
- disableDrillDown: boolean;
476
- disableAlerts: boolean;
477
- disableScheduledExports: boolean;
478
- };
333
+ enabled: boolean | undefined;
334
+ position: string | undefined;
335
+ } | undefined;
336
+ stackMeasuresToPercent: boolean | undefined;
337
+ stackMeasures: boolean | undefined;
338
+ xaxis: {
339
+ format: string | undefined;
340
+ max: string | number | undefined;
341
+ min: string | number | undefined;
342
+ name: {
343
+ position: string | undefined;
344
+ visible: boolean | undefined;
345
+ } | undefined;
346
+ rotation: string | undefined;
347
+ visible: boolean | undefined;
348
+ labelsEnabled: boolean | undefined;
349
+ } | undefined;
350
+ yaxis: {
351
+ name: {
352
+ position: string | undefined;
353
+ visible: boolean | undefined;
354
+ } | undefined;
355
+ rotation: string | undefined;
356
+ visible: boolean | undefined;
357
+ labelsEnabled: boolean | undefined;
358
+ } | undefined;
359
+ grid: {
360
+ enabled: boolean | undefined;
361
+ } | undefined;
362
+ disableDrillDown: boolean | undefined;
363
+ disableAlerts: boolean | undefined;
364
+ disableScheduledExports: boolean | undefined;
365
+ } | undefined;
479
366
 
480
- declare type DefaultProperties_11 = {
481
- colorMapping: Array<ColorMapping>;
482
- dataLabels: {
483
- visible: boolean | "auto";
484
- style: "auto" | "backplate";
485
- };
486
- chartFill: {
487
- type: ChartFillType;
488
- measureToPatternName?: Record<string, PatternFillName>;
489
- };
490
- legend: {
491
- enabled: boolean;
492
- position: "top" | "bottom" | "left" | "right" | "auto";
493
- };
494
- disableDrillDown: boolean;
495
- disableAlerts: boolean;
496
- disableScheduledExports: boolean;
497
- };
367
+ /** @internal */
368
+ export declare const BUBBLE_CHART_DEFAULTS: ConfigDefaults<BubbleChartConfigProperties>;
498
369
 
499
- declare type DefaultProperties_12 = {
500
- colorMapping: Array<ColorMapping>;
501
- dataLabels: {
502
- visible: boolean | "auto";
503
- style: "auto" | "backplate";
504
- };
505
- chartFill: {
506
- type: ChartFillType;
507
- measureToPatternName?: Record<string, PatternFillName>;
508
- };
509
- legend: {
510
- enabled: boolean;
511
- position: "top" | "bottom" | "left" | "right" | "auto";
512
- };
513
- disableDrillDown: boolean;
514
- disableAlerts: boolean;
515
- disableScheduledExports: boolean;
516
- };
370
+ /**
371
+ * @internal
372
+ * @deprecated Use bubbleChartLoad and bubbleChartSave instead.
373
+ */
374
+ export declare const bubbleChart: IBubbleChartConfig;
517
375
 
518
- declare type DefaultProperties_13 = {
376
+ /** @internal */
377
+ export declare type BubbleChartConfigProperties = {
519
378
  colorMapping: Array<ColorMapping>;
520
379
  dataLabels: {
521
380
  visible: boolean | "auto";
@@ -526,6 +385,9 @@ declare type DefaultProperties_13 = {
526
385
  position: "top" | "bottom" | "left" | "right" | "auto";
527
386
  };
528
387
  xaxis: {
388
+ format: "inherit" | "auto";
389
+ max: number | string;
390
+ min: number | string;
529
391
  name: {
530
392
  visible: boolean;
531
393
  position: "center" | "left" | "right" | "auto";
@@ -535,6 +397,9 @@ declare type DefaultProperties_13 = {
535
397
  visible: boolean;
536
398
  };
537
399
  yaxis: {
400
+ format: "inherit" | "auto";
401
+ max: number | string;
402
+ min: number | string;
538
403
  name: {
539
404
  visible: boolean;
540
405
  position: "center" | "left" | "right" | "auto";
@@ -543,12 +408,117 @@ declare type DefaultProperties_13 = {
543
408
  rotation: "0" | "30" | "60" | "90" | "auto";
544
409
  visible: boolean;
545
410
  };
546
- disableDrillDown: boolean;
547
- disableAlerts: boolean;
411
+ grid: {
412
+ enabled: boolean;
413
+ };
414
+ disableDrillDown: boolean;
415
+ disableAlerts: boolean;
548
416
  disableScheduledExports: boolean;
549
417
  };
550
418
 
551
- declare type DefaultProperties_14 = {
419
+ /** @internal */
420
+ export declare function bubbleChartLoad(props: VisualisationConfig<BubbleChartConfigProperties>): Pair<Scalar<string>, any> | null;
421
+
422
+ /** @internal */
423
+ export declare function bubbleChartSave(_fields: Visualisation["query"]["fields"] | undefined, config: Visualisation["config"] | undefined): {
424
+ colorMapping: ColorMapping[] | undefined;
425
+ dataLabels: {
426
+ visible: "auto" | boolean | undefined;
427
+ style: "auto" | "backplate" | undefined;
428
+ } | undefined;
429
+ legend: {
430
+ enabled: boolean | undefined;
431
+ position: string | undefined;
432
+ } | undefined;
433
+ xaxis: {
434
+ format: string | undefined;
435
+ max: string | number | undefined;
436
+ min: string | number | undefined;
437
+ name: {
438
+ position: string | undefined;
439
+ visible: boolean | undefined;
440
+ } | undefined;
441
+ rotation: string | undefined;
442
+ visible: boolean | undefined;
443
+ labelsEnabled: boolean | undefined;
444
+ } | undefined;
445
+ yaxis: {
446
+ format: string | undefined;
447
+ max: string | number | undefined;
448
+ min: string | number | undefined;
449
+ name: {
450
+ position: string | undefined;
451
+ visible: boolean | undefined;
452
+ } | undefined;
453
+ rotation: string | undefined;
454
+ visible: boolean | undefined;
455
+ labelsEnabled: boolean | undefined;
456
+ } | undefined;
457
+ grid: {
458
+ enabled: boolean | undefined;
459
+ } | undefined;
460
+ disableDrillDown: boolean | undefined;
461
+ disableAlerts: boolean | undefined;
462
+ disableScheduledExports: boolean | undefined;
463
+ } | undefined;
464
+
465
+ /** @public */
466
+ export declare enum BucketsType {
467
+ Measures = "measures",
468
+ SecondaryMeasures = "secondary_measures",
469
+ TertiaryMeasures = "tertiary_measures",
470
+ Attribute = "attribute",
471
+ Columns = "columns",
472
+ View = "view",
473
+ Stack = "stack",
474
+ Trend = "trend",
475
+ Segment = "segment",
476
+ AttributeFrom = "attribute_from",
477
+ AttributeTo = "attribute_to",
478
+ Size = "size",
479
+ Color = "color",
480
+ Location = "location",
481
+ Area = "area"
482
+ }
483
+
484
+ /** @public */
485
+ export declare function buildAfmExecution(entities: ExportEntities, query: Query): ToExecutionResults;
486
+
487
+ /**
488
+ * Build declarative attribute labels out of AaC labels
489
+ */
490
+ /** @internal */
491
+ export declare function buildAttributeLabels(labels?: Attribute["labels"], isAuxiliaryDataset?: boolean): DeclarativeLabel[];
492
+
493
+ /**
494
+ * Build declarative attributes out of AaC fields
495
+ */
496
+ /** @internal */
497
+ export declare function buildAttributes(fields?: Fields, isAuxiliaryDataset?: boolean): DeclarativeAttribute[];
498
+
499
+ /**
500
+ * Build declarative facts out of AaC fields
501
+ */
502
+ /** @internal */
503
+ export declare function buildFacts(fields?: Fields): DeclarativeFact[];
504
+
505
+ /**
506
+ * Build declarative references
507
+ */
508
+ /** @internal */
509
+ export declare function buildReferences(entities: ExportEntities, refs?: Dataset["references"]): DeclarativeReference[];
510
+
511
+ /** @internal */
512
+ export declare const BULLET_CHART_DEFAULTS: ConfigDefaults<BulletChartConfigProperties>;
513
+
514
+ /**
515
+ * @internal
516
+ * @deprecated Use bulletChartLoad and bulletChartSave instead.
517
+ */
518
+ export declare const bulletChart: IBulletChartConfig;
519
+
520
+ /** @internal */
521
+ export declare type BulletChartConfigProperties = {
552
522
  colorMapping: Array<ColorMapping>;
553
523
  legend: {
554
524
  enabled: boolean;
@@ -587,9 +557,88 @@ declare type DefaultProperties_14 = {
587
557
  disableScheduledExports: boolean;
588
558
  };
589
559
 
590
- declare type DefaultProperties_15 = {
560
+ /** @internal */
561
+ export declare function bulletChartLoad(props: VisualisationConfig<BulletChartConfigProperties>): Pair<Scalar<string>, any> | null;
562
+
563
+ /** @internal */
564
+ export declare function bulletChartSave(_fields: Visualisation["query"]["fields"] | undefined, config: Visualisation["config"] | undefined): {
565
+ colorMapping: ColorMapping[] | undefined;
566
+ legend: {
567
+ enabled: boolean | undefined;
568
+ position: string | undefined;
569
+ } | undefined;
570
+ chartFill: {
571
+ type: ChartFillType | undefined;
572
+ measureToPatternName: Record<string, PatternFillName> | undefined;
573
+ } | undefined;
574
+ xaxis: {
575
+ format: string | undefined;
576
+ max: string | number | undefined;
577
+ min: string | number | undefined;
578
+ name: {
579
+ position: string | undefined;
580
+ visible: boolean | undefined;
581
+ } | undefined;
582
+ rotation: string | undefined;
583
+ visible: boolean | undefined;
584
+ labelsEnabled: boolean | undefined;
585
+ } | undefined;
586
+ yaxis: {
587
+ name: {
588
+ position: string | undefined;
589
+ visible: boolean | undefined;
590
+ } | undefined;
591
+ rotation: string | undefined;
592
+ visible: boolean | undefined;
593
+ labelsEnabled: boolean | undefined;
594
+ } | undefined;
595
+ grid: {
596
+ enabled: boolean | undefined;
597
+ } | undefined;
598
+ disableDrillDown: boolean | undefined;
599
+ disableAlerts: boolean | undefined;
600
+ disableScheduledExports: boolean | undefined;
601
+ } | undefined;
602
+
603
+ /** @internal */
604
+ export declare interface ChartFill {
605
+ type: ChartFillType;
606
+ measureToPatternName?: Record<string, PatternFillName>;
607
+ }
608
+
609
+ /** @internal */
610
+ export declare type ChartFillType = "solid" | "pattern" | "outline";
611
+
612
+ /** @public */
613
+ export declare type ColorMapping = {
614
+ id: string;
615
+ color: {
616
+ type: "guid";
617
+ value: string;
618
+ } | {
619
+ type: "rgb";
620
+ value: {
621
+ r: number;
622
+ g: number;
623
+ b: number;
624
+ };
625
+ };
626
+ };
627
+
628
+ /** @internal */
629
+ export declare const COLUMN_CHART_DEFAULTS: ConfigDefaults<ColumnChartConfigProperties>;
630
+
631
+ /**
632
+ * @internal
633
+ * @deprecated Use columnChartLoad and columnChartSave instead.
634
+ */
635
+ export declare const columnChart: IColumnChartConfig;
636
+
637
+ /** @internal */
638
+ export declare type ColumnChartConfigProperties = {
591
639
  colorMapping: Array<ColorMapping>;
592
640
  dataLabels: {
641
+ totalsVisible: boolean | "auto";
593
642
  visible: boolean | "auto";
594
643
  style: "auto" | "backplate";
595
644
  };
@@ -597,21 +646,13 @@ declare type DefaultProperties_15 = {
597
646
  type: ChartFillType;
598
647
  measureToPatternName?: Record<string, PatternFillName>;
599
648
  };
600
- orientation: {
601
- position: "horizontal" | "vertical";
602
- };
603
- total: {
604
- enabled: boolean;
605
- name: string;
606
- };
607
649
  legend: {
608
650
  enabled: boolean;
609
651
  position: "top" | "bottom" | "left" | "right" | "auto";
610
652
  };
653
+ stackMeasures: boolean;
654
+ stackMeasuresToPercent: boolean;
611
655
  xaxis: {
612
- format: "inherit" | "auto";
613
- max: number | string;
614
- min: number | string;
615
656
  name: {
616
657
  visible: boolean;
617
658
  position: "center" | "left" | "right" | "auto";
@@ -621,6 +662,9 @@ declare type DefaultProperties_15 = {
621
662
  visible: boolean;
622
663
  };
623
664
  yaxis: {
665
+ format: "inherit" | "auto";
666
+ max: number | string;
667
+ min: number | string;
624
668
  name: {
625
669
  visible: boolean;
626
670
  position: "center" | "left" | "right" | "auto";
@@ -637,80 +681,95 @@ declare type DefaultProperties_15 = {
637
681
  disableScheduledExports: boolean;
638
682
  };
639
683
 
640
- declare type DefaultProperties_16 = {
641
- colorMapping: Array<ColorMapping>;
684
+ /** @internal */
685
+ export declare function columnChartLoad(props: VisualisationConfig<ColumnChartConfigProperties>): Pair<Scalar<string>, any> | null;
686
+
687
+ /** @internal */
688
+ export declare function columnChartSave(_fields: Visualisation["query"]["fields"] | undefined, config: Visualisation["config"] | undefined): {
689
+ colorMapping: ColorMapping[] | undefined;
642
690
  dataLabels: {
643
- visible: boolean | "auto";
644
- };
691
+ totalsVisible: "auto" | boolean | undefined;
692
+ visible: "auto" | boolean | undefined;
693
+ style: "auto" | "backplate" | undefined;
694
+ } | undefined;
695
+ chartFill: {
696
+ type: ChartFillType | undefined;
697
+ measureToPatternName: Record<string, PatternFillName> | undefined;
698
+ } | undefined;
645
699
  legend: {
646
- enabled: boolean;
647
- position: "top" | "bottom" | "left" | "right" | "auto";
648
- };
649
- disableDrillDown: boolean;
650
- disableAlerts: boolean;
651
- disableScheduledExports: boolean;
652
- };
700
+ enabled: boolean | undefined;
701
+ position: string | undefined;
702
+ } | undefined;
703
+ stackMeasuresToPercent: boolean | undefined;
704
+ stackMeasures: boolean | undefined;
705
+ xaxis: {
706
+ name: {
707
+ position: string | undefined;
708
+ visible: boolean | undefined;
709
+ } | undefined;
710
+ rotation: string | undefined;
711
+ visible: boolean | undefined;
712
+ labelsEnabled: boolean | undefined;
713
+ } | undefined;
714
+ yaxis: {
715
+ format: string | undefined;
716
+ max: string | number | undefined;
717
+ min: string | number | undefined;
718
+ name: {
719
+ position: string | undefined;
720
+ visible: boolean | undefined;
721
+ } | undefined;
722
+ rotation: string | undefined;
723
+ visible: boolean | undefined;
724
+ labelsEnabled: boolean | undefined;
725
+ } | undefined;
726
+ grid: {
727
+ enabled: boolean | undefined;
728
+ } | undefined;
729
+ disableDrillDown: boolean | undefined;
730
+ disableAlerts: boolean | undefined;
731
+ disableScheduledExports: boolean | undefined;
732
+ } | undefined;
733
+
734
+ /** @public */
735
+ export declare type ColumnLocator = IAttributeColumnLocator | IMeasureColumnLocator | ITotalColumnLocator;
736
+
737
+ /** @public */
738
+ export declare type ColumnWidth = IAbsoluteColumnWidth | IAutoColumnWidth;
739
+
740
+ /** @public */
741
+ export declare type ColumnWidthItem = IAttributeColumnWidthItem | IMeasureColumnWidthItem | ISliceMeasureColumnWidthItem | IMixedValuesColumnWidthItem | IAllMeasureColumnWidthItem | IWeakMeasureColumnWidthItem;
742
+
743
+ /** @internal */
744
+ export declare const COMBO_CHART_DEFAULTS: ConfigDefaults<ComboChartConfigProperties>;
745
+
746
+ /**
747
+ * @internal
748
+ * @deprecated Use comboChartLoad and comboChartSave instead.
749
+ */
750
+ export declare const comboChart: IComboChartConfig;
653
751
 
654
- declare type DefaultProperties_17 = {
752
+ /** @internal */
753
+ export declare type ComboChartConfigProperties = {
655
754
  colorMapping: Array<ColorMapping>;
755
+ continuousLine: {
756
+ enabled: boolean;
757
+ };
758
+ distinctPointShapes: {
759
+ enabled: boolean;
760
+ pointShapeMapping?: Record<string, PointShapeSymbol>;
761
+ };
762
+ chartFill: {
763
+ type: ChartFillType;
764
+ measureToPatternName?: Record<string, PatternFillName>;
765
+ };
656
766
  dataLabels: {
657
767
  visible: boolean | "auto";
658
768
  style: "auto" | "backplate";
659
769
  };
660
- legend: {
661
- enabled: boolean;
662
- position: "top" | "bottom" | "left" | "right" | "auto";
663
- };
664
- disableDrillDown: boolean;
665
- disableAlerts: boolean;
666
- disableScheduledExports: boolean;
667
- };
668
-
669
- declare type DefaultProperties_18 = {
670
- comparison: {
671
- enabled: boolean;
672
- calculationType: "change" | "change_difference" | "ratio" | "difference";
673
- format: "inherit" | string;
674
- position: "right" | "left" | "top" | "auto";
675
- isArrowEnabled: boolean;
676
- colorConfig?: {
677
- disabled: boolean;
678
- equals: ColorMapping["color"] | undefined;
679
- negative: ColorMapping["color"] | undefined;
680
- positive: ColorMapping["color"] | undefined;
681
- };
682
- labelConfig?: {
683
- isConditional: boolean;
684
- unconditionalValue: string;
685
- equals: string;
686
- negative: string;
687
- positive: string;
688
- };
689
- };
690
- disableAlerts: boolean;
691
- disableScheduledExports: boolean;
692
- };
693
-
694
- declare type DefaultProperties_19 = {
695
- colorMapping: Array<ColorMapping>;
696
- continuousLine: {
697
- enabled: boolean;
698
- };
699
- distinctPointShapes: {
700
- enabled: boolean;
701
- pointShapeMapping?: Record<string, PointShapeSymbol>;
702
- };
703
- chartFill: {
704
- type: ChartFillType;
705
- measureToPatternName?: Record<string, PatternFillName>;
706
- };
707
- dataLabels: {
708
- visible: boolean | "auto";
709
- style: "auto" | "backplate";
710
- };
711
- dataPoints: {
712
- visible: boolean | "auto";
713
- };
770
+ dataPoints: {
771
+ visible: boolean | "auto";
772
+ };
714
773
  legend: {
715
774
  enabled: boolean;
716
775
  position: "top" | "bottom" | "left" | "right" | "auto";
@@ -764,435 +823,382 @@ declare type DefaultProperties_19 = {
764
823
  thresholdExcludedMeasures: string[];
765
824
  };
766
825
 
767
- declare type DefaultProperties_2 = {
768
- colorMapping: Array<ColorMapping>;
769
- dataLabels: {
770
- totalsVisible: boolean | "auto";
771
- visible: boolean | "auto";
772
- style: "auto" | "backplate";
773
- };
826
+ /** @internal */
827
+ export declare function comboChartLoad(props: VisualisationConfig<ComboChartConfigProperties>): Pair<Scalar<string>, any> | null;
828
+
829
+ /** @internal */
830
+ export declare function comboChartSave(_fields: Visualisation["query"]["fields"] | undefined, config: Visualisation["config"] | undefined, buckets?: Bucket[]): {
831
+ colorMapping: ColorMapping[] | undefined;
832
+ continuousLine: {
833
+ enabled: boolean | undefined;
834
+ } | undefined;
835
+ distinctPointShapes: {
836
+ enabled: boolean | undefined;
837
+ pointShapeMapping: Record<string, PointShapeSymbol> | undefined;
838
+ } | undefined;
774
839
  chartFill: {
775
- type: ChartFillType;
776
- measureToPatternName?: Record<string, PatternFillName>;
777
- };
840
+ type: ChartFillType | undefined;
841
+ measureToPatternName: Record<string, PatternFillName> | undefined;
842
+ } | undefined;
843
+ dataPoints: {
844
+ visible: "auto" | boolean | undefined;
845
+ } | undefined;
846
+ dataLabels: {
847
+ visible: "auto" | boolean | undefined;
848
+ style: "auto" | "backplate" | undefined;
849
+ } | undefined;
778
850
  legend: {
779
- enabled: boolean;
780
- position: "top" | "bottom" | "left" | "right" | "auto";
781
- };
782
- stackMeasures: boolean;
783
- stackMeasuresToPercent: boolean;
851
+ enabled: boolean | undefined;
852
+ position: string | undefined;
853
+ } | undefined;
854
+ stackMeasuresToPercent: boolean | undefined;
855
+ stackMeasures: boolean | undefined;
784
856
  xaxis: {
785
- format: "inherit" | "auto";
786
- max: number | string;
787
- min: number | string;
788
857
  name: {
789
- visible: boolean;
790
- position: "center" | "left" | "right" | "auto";
791
- };
792
- labelsEnabled: boolean;
793
- rotation: "0" | "30" | "60" | "90" | "auto";
794
- visible: boolean;
795
- };
858
+ position: string | undefined;
859
+ visible: boolean | undefined;
860
+ } | undefined;
861
+ rotation: string | undefined;
862
+ visible: boolean | undefined;
863
+ labelsEnabled: boolean | undefined;
864
+ } | undefined;
865
+ primaryChartType: "area" | "column" | "line" | undefined;
796
866
  yaxis: {
867
+ format: string | undefined;
868
+ max: string | number | undefined;
869
+ min: string | number | undefined;
797
870
  name: {
798
- visible: boolean;
799
- position: "center" | "left" | "right" | "auto";
800
- };
801
- labelsEnabled: boolean;
802
- rotation: "0" | "30" | "60" | "90" | "auto";
803
- visible: boolean;
804
- };
871
+ position: string | undefined;
872
+ visible: boolean | undefined;
873
+ } | undefined;
874
+ rotation: string | undefined;
875
+ visible: boolean | undefined;
876
+ labelsEnabled: boolean | undefined;
877
+ } | undefined;
878
+ secondaryChartType: "area" | "column" | "line" | undefined;
879
+ secondary_yaxis: {
880
+ measures: string[] | undefined;
881
+ format: string | undefined;
882
+ max: string | number | undefined;
883
+ min: string | number | undefined;
884
+ name: {
885
+ position: string | undefined;
886
+ visible: boolean | undefined;
887
+ } | undefined;
888
+ rotation: string | undefined;
889
+ visible: boolean | undefined;
890
+ labelsEnabled: boolean | undefined;
891
+ } | undefined;
892
+ dualAxis: boolean | undefined;
805
893
  grid: {
806
- enabled: boolean;
807
- };
808
- disableDrillDown: boolean;
809
- disableAlerts: boolean;
810
- disableScheduledExports: boolean;
811
- };
894
+ enabled: boolean | undefined;
895
+ } | undefined;
896
+ disableDrillDown: boolean | undefined;
897
+ disableAlerts: boolean | undefined;
898
+ disableScheduledExports: boolean | undefined;
899
+ thresholdMeasures: string[] | undefined;
900
+ thresholdExcludedMeasures: string[] | undefined;
901
+ } | undefined;
812
902
 
813
- declare type DefaultProperties_20 = {
814
- colorMapping: Array<ColorMapping>;
815
- legend: {
816
- enabled: boolean;
817
- position: "top" | "bottom" | "left" | "right" | "auto" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
818
- };
819
- longitude: string;
820
- latitude: string;
821
- tooltipText: string;
822
- basemap: string;
823
- viewport: {
824
- area: "auto" | "continent_af" | "continent_as" | "continent_au" | "continent_eu" | "continent_na" | "continent_sa" | "world" | "custom";
825
- navigation: {
826
- pan: boolean;
827
- zoom: boolean;
828
- };
829
- };
830
- center: {
831
- lat: number;
832
- lng: number;
833
- };
834
- zoom: number;
835
- bounds: {
836
- northEast: {
837
- lat: number;
838
- lng: number;
839
- };
840
- southWest: {
841
- lat: number;
842
- lng: number;
843
- };
844
- };
845
- points: {
846
- groupNearbyPoints: boolean;
847
- maxSize: "0.5x" | "0.75x" | "normal" | "1.25x" | "1.5x" | "default";
848
- minSize: "0.5x" | "0.75x" | "normal" | "1.25x" | "1.5x" | "default";
849
- shapeType: "circle" | "iconByValue" | "oneIcon";
850
- icon: string;
851
- };
852
- disableAlerts: boolean;
853
- disableScheduledExports: boolean;
903
+ /** @internal */
904
+ export declare type ConfigDefaults<T> = {
905
+ [key in keyof T]: T[key];
854
906
  };
855
907
 
856
- declare type DefaultProperties_21 = {
857
- colorMapping: Array<ColorMapping>;
858
- legend: {
859
- enabled: boolean;
860
- position: "top" | "bottom" | "left" | "right" | "auto" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
861
- };
862
- tooltipText: string;
863
- basemap: string;
864
- viewport: {
865
- area: "auto" | "continent_af" | "continent_as" | "continent_au" | "continent_eu" | "continent_na" | "continent_sa" | "world" | "custom";
866
- navigation: {
867
- pan: boolean;
868
- zoom: boolean;
869
- };
870
- };
871
- center: {
872
- lat: number;
873
- lng: number;
874
- };
875
- zoom: number;
876
- bounds: {
877
- northEast: {
878
- lat: number;
879
- lng: number;
880
- };
881
- southWest: {
882
- lat: number;
883
- lng: number;
884
- };
885
- };
886
- disableAlerts: boolean;
887
- disableScheduledExports: boolean;
888
- };
908
+ /** @public */
909
+ export declare function convertBucketToTitle(entities: ExportEntities, query: Query, field: FullFields, location?: boolean): string | null;
889
910
 
890
- declare type DefaultProperties_22 = {
891
- colorMapping: Array<ColorMapping>;
892
- columnWidths: Array<ColumnWidthItem>;
893
- cellImageSizing: "fit" | "fill";
894
- cellTextWrapping: "clip" | "wrap";
895
- cellVerticalAlign: "top" | "middle" | "bottom";
896
- rowHeight: "small" | "medium" | "large";
897
- disableAlerts: boolean;
898
- disableScheduledExports: boolean;
899
- };
911
+ /**
912
+ * @public
913
+ */
914
+ export declare enum CoreErrorCode {
915
+ BucketItemTypeNotSupported = "core.bucketItemTypeNotSupported",
916
+ FilterItemTypeNotSupported = "core.filterItemTypeNotSupported",
917
+ ItemNotSupported = "core.itemNotSupported",
918
+ ReferenceTypeNotSupported = "core.referenceTypeNotSupported",
919
+ VisualizationNotSupported = "core.visualizationNotSupported",
920
+ LayerTypeNotSupported = "core.layerTypeNotSupported",
921
+ MultipleDateDataSets = "core.multipleDateDataSets",
922
+ OnlyOneDateDatasetAllowed = "core.onlyOneDateDatasetAllowed",
923
+ OnlyOneAttributeItemAllowed = "core.onlyOneAttributeItemAllowed",
924
+ MultipleCommonDateFilters = "core.multipleCommonDateFilters",
925
+ DuplicateFilterLocalIdentifier = "core.duplicateFilterLocalIdentifier",
926
+ DuplicateTabIdentifier = "core.duplicateTabIdentifier"
927
+ }
900
928
 
901
- declare type DefaultProperties_3 = {
902
- colorMapping: Array<ColorMapping>;
903
- dataLabels: {
904
- totalsVisible: boolean | "auto";
905
- visible: boolean | "auto";
906
- style: "auto" | "backplate";
929
+ /**
930
+ * @public
931
+ */
932
+ export declare const CoreErrorMessages: Record<CoreErrorCode, string>;
933
+
934
+ /**
935
+ * @public
936
+ */
937
+ export declare const CoreErrorTypes: Record<CoreErrorCode, string>;
938
+
939
+ /** @public */
940
+ export declare function createIdentifier<T = AfmObjectIdentifier>(data: string, { forceMetric, forceType }?: {
941
+ forceMetric?: boolean;
942
+ forceType?: "user" | "userGroup" | "dataset" | "date" | "attribute" | "label" | "measure" | "workspaceDataFilter" | "visualizationObject" | "analyticalDashboard" | "dashboardPlugin" | "filterContext";
943
+ }): T | null;
944
+
945
+ /** @internal */
946
+ export declare type DashboardDefinition = Pick<OverrideDashboardDefinition, "layout" | "plugins" | "dateFilterConfig" | "dateFilterConfigs" | "disableCrossFiltering" | "disableUserFilterSave" | "disableUserFilterReset" | "disableFilterViews" | "attributeFilterConfigs" | "measureValueFilterConfigs" | "filterContextRef" | "tabs" | "activeTabLocalIdentifier"> & {
947
+ version: string;
948
+ };
949
+
950
+ /** @internal */
951
+ export declare type DashboardSection = Required<DashboardDefinition>["layout"]["sections"][number];
952
+
953
+ /** @public */
954
+ export declare type DashboardTab = {
955
+ localIdentifier: string;
956
+ title: string;
957
+ layout: IDashboardDefinition["layout"];
958
+ filterContextRef?: AfmObjectIdentifier;
959
+ dateFilterConfig?: IDashboardDefinition["dateFilterConfig"];
960
+ dateFilterConfigs?: IDashboardDefinition["dateFilterConfigs"];
961
+ attributeFilterConfigs?: IDashboardDefinition["attributeFilterConfigs"];
962
+ measureValueFilterConfigs?: IDashboardDefinition["measureValueFilterConfigs"];
963
+ filterGroupsConfig?: IDashboardFilterGroupsConfig;
964
+ };
965
+
966
+ /** @internal */
967
+ export declare const DashboardTypes: string[];
968
+
969
+ /** @internal */
970
+ export declare type DashboardWidget = DashboardSection["items"][number];
971
+
972
+ /** @internal */
973
+ export declare const DatasetTypes: string[];
974
+
975
+ /** @internal */
976
+ export declare const DateDatasetTypes: string[];
977
+
978
+ /** @internal */
979
+ export declare function declarativeAbsoluteDateFilterToYaml(absoluteDateFilter: IAbsoluteDateFilter["absoluteDateFilter"], connectedAttributeFilters: IFilter[] | undefined, entities: FromEntities, getUniqueKey: (baseKey: string) => string, errorContext?: IErrorContext): YAMLMap;
980
+
981
+ /** @internal */
982
+ export declare function declarativeArithmeticMetricToYaml(def: IMeasureBody, arithmeticDefinition: IArithmeticMeasureDefinition): YAMLMap;
983
+
984
+ /** @public */
985
+ export declare function declarativeAttributeHierarchyToYaml(hierarchy: DeclarativeAttributeHierarchy, context?: IErrorContext): {
986
+ content: string;
987
+ json: AttributeHierarchy;
988
+ };
989
+
990
+ /** @internal */
991
+ export declare function declarativeAttributeSortToYaml(sort: IAttributeSortItem): YAMLMap;
992
+
993
+ /** @internal */
994
+ export declare function declarativeAttributeToYaml(def: IAttributeBody, errorContext?: IErrorContext): YAMLMap;
995
+
996
+ /** @internal */
997
+ export declare function declarativeBucketsToYaml(entities: FromEntities, buckets: IBucket[], errorContext?: IErrorContext): YamlBuckets;
998
+
999
+ /** @public */
1000
+ export declare function declarativeDashboardToYaml(entities: FromEntities, dashboard: DeclarativeAnalyticalDashboard, filterContexts?: DeclarativeFilterContext[], context?: IErrorContext): {
1001
+ content: string;
1002
+ json: Dashboard;
1003
+ };
1004
+
1005
+ /** @public */
1006
+ export declare function declarativeDatasetToYaml(dataset: DeclarativeDataset, profile: Profile, tablesMap: Record<string, DeclarativeTable[]>): {
1007
+ content: string;
1008
+ json: Dataset;
1009
+ };
1010
+
1011
+ /** @public */
1012
+ export declare function declarativeDateInstanceToYaml(dataset: DeclarativeDateDataset): {
1013
+ content: string;
1014
+ json: DateDataset;
1015
+ };
1016
+
1017
+ /** @internal */
1018
+ export declare function declarativeDrillToYaml(drill: InsightDrillDefinition, entities?: FromEntities, sourceVisualizationId?: string, errorContext?: IErrorContext): YAMLMap<unknown, unknown>;
1019
+
1020
+ /** @internal */
1021
+ export declare function declarativeFilterContextToYaml(dateFilterConfig?: IDashboardDateFilterConfig, filterContext?: DeclarativeFilterContext, errorContext?: IErrorContext): {
1022
+ filters: YAMLMap<unknown, unknown>;
1023
+ filtersMap: {
1024
+ [key: string]: FilterContextItem;
907
1025
  };
908
- chartFill: {
909
- type: ChartFillType;
910
- measureToPatternName?: Record<string, PatternFillName>;
1026
+ };
1027
+
1028
+ /** @internal */
1029
+ export declare function declarativeFiltersConfigToYaml(filtersMap: Record<string, FilterContextItem>, dateFilterConfig?: IDashboardDateFilterConfig, dateFilterConfigs?: IDashboardDateFilterConfigItem[], attributeFilterConfigs?: IDashboardAttributeFilterConfig[], measureValueFilterConfigs?: IDashboardMeasureValueFilterConfig[], errorContext?: IErrorContext): void;
1030
+
1031
+ /** @internal */
1032
+ export declare function declarativeFiltersToYaml(entities: FromEntities, filters: IFilter[], errorContext?: IErrorContext): YamlFilters;
1033
+
1034
+ /** @internal */
1035
+ export declare function declarativeInlineMetricToYaml(def: IMeasureBody, inlineDef: IInlineMeasureDefinition): YAMLMap;
1036
+
1037
+ /** @internal */
1038
+ export declare function declarativeMeasureSortToYaml(sort: IMeasureSortItem): YAMLMap;
1039
+
1040
+ /** @internal */
1041
+ export declare function declarativeMeasureValueFilterToYaml(measureValueFilter: IMeasureValueFilterBody, errorContext?: IErrorContext): YAMLMap;
1042
+
1043
+ /** @public */
1044
+ export declare function declarativeMetricToYaml(metric: DeclarativeMetric): {
1045
+ content: string;
1046
+ json: Metric;
1047
+ };
1048
+
1049
+ /** @internal */
1050
+ export declare function declarativeNegativeAttributeFilterToYaml(entities: FromEntities, attributeFilter: INegativeAttributeFilterBody, errorContext?: IErrorContext): YAMLMap;
1051
+
1052
+ /** @internal */
1053
+ export declare function declarativeNormalMetricToYaml(def: IMeasureBody, metricDefinition: IMeasureDefinition, postProcessors: YamlPostProcessors, errorContext?: IErrorContext): YAMLMap;
1054
+
1055
+ /** @internal */
1056
+ export declare function declarativePluginsToYaml(dashboard: IDashboardDefinition, errorContext?: IErrorContext): YAMLSeq<unknown> | undefined;
1057
+
1058
+ /** @public */
1059
+ export declare function declarativePluginToYaml(plugin: DeclarativeDashboardPlugin): {
1060
+ content: string;
1061
+ json: Plugin_2;
1062
+ };
1063
+
1064
+ /** @internal */
1065
+ export declare function declarativePoPMetricToYaml(def: IMeasureBody, popDefinition: IPoPMeasureDefinition, errorContext?: IErrorContext): YAMLMap;
1066
+
1067
+ /** @internal */
1068
+ export declare function declarativePositiveAttributeFilterToYaml(entities: FromEntities, attributeFilter: IPositiveAttributeFilterBody, errorContext?: IErrorContext): YAMLMap;
1069
+
1070
+ /** @internal */
1071
+ export declare function declarativePreviousPeriodMetricToYaml(def: IMeasureBody, previousDefinition: IPreviousPeriodMeasureDefinition, errorContext?: IErrorContext): YAMLMap;
1072
+
1073
+ /** @internal */
1074
+ export declare function declarativeRankingFilterToYaml(rankingFilter: IRankingFilterBody, errorContext?: IErrorContext): YAMLMap;
1075
+
1076
+ /** @internal */
1077
+ export declare function declarativeRelativeDateFilterToYaml(relativeDateFilter: IRelativeDateFilter["relativeDateFilter"], connectedAttributeFilters: IFilter[] | undefined, entities: FromEntities, getUniqueKey: (baseKey: string) => string, errorContext?: IErrorContext): YAMLMap;
1078
+
1079
+ /** @internal */
1080
+ export declare function declarativeSectionsToYaml(layout?: IDashboardLayout, entities?: FromEntities, errorContext?: IErrorContext): YAMLSeq<unknown> | undefined;
1081
+
1082
+ /** @internal */
1083
+ export declare function declarativeSortsToYaml(sorts: ISortItem[], _errorContext?: IErrorContext): YamlSorts;
1084
+
1085
+ /** @internal */
1086
+ export declare function declarativeTabsToYaml(tabs: DashboardTab[], filterContexts?: DeclarativeFilterContext[], entities?: FromEntities, errorContext?: IErrorContext): YAMLSeq | undefined;
1087
+
1088
+ /** @internal */
1089
+ export declare function declarativeTotalToYaml(total: ITotal, _errorContext?: IErrorContext): {
1090
+ totalMap: YAMLMap<unknown, unknown>;
1091
+ attribute: string;
1092
+ };
1093
+
1094
+ /** @internal */
1095
+ export declare function declarativeVisTypeToYaml(def: IInsightDefinition["insight"]): string | null;
1096
+
1097
+ /** @public */
1098
+ export declare function declarativeVisualisationToYaml(entities: FromEntities, visualisation: DeclarativeVisualizationObject, context?: IErrorContext): {
1099
+ content: string;
1100
+ json?: Visualisation;
1101
+ };
1102
+
1103
+ /** @internal */
1104
+ export declare function declarativeWidgetToYaml(widget?: IDashboardWidget | null, size?: IDashboardLayoutItem["size"], entities?: FromEntities, errorContext?: IErrorContext): YAMLMap<unknown, unknown> | undefined;
1105
+
1106
+ /** @internal */
1107
+ export declare const DEPENDENCY_WHEEL_CHART_DEFAULTS: ConfigDefaults<DependencyWheelChartConfigProperties>;
1108
+
1109
+ /**
1110
+ * @internal
1111
+ * @deprecated Use dependencyWheelChartLoad and dependencyWheelChartSave instead.
1112
+ */
1113
+ export declare const dependencyWheelChart: IDependencyWheelChartConfig;
1114
+
1115
+ /** @internal */
1116
+ export declare type DependencyWheelChartConfigProperties = {
1117
+ colorMapping: Array<ColorMapping>;
1118
+ dataLabels: {
1119
+ visible: boolean | "auto";
911
1120
  };
912
1121
  legend: {
913
1122
  enabled: boolean;
914
1123
  position: "top" | "bottom" | "left" | "right" | "auto";
915
1124
  };
916
- stackMeasures: boolean;
917
- stackMeasuresToPercent: boolean;
918
- xaxis: {
919
- name: {
920
- visible: boolean;
921
- position: "center" | "left" | "right" | "auto";
922
- };
923
- labelsEnabled: boolean;
924
- rotation: "0" | "30" | "60" | "90" | "auto";
925
- visible: boolean;
926
- };
927
- yaxis: {
928
- format: "inherit" | "auto";
929
- max: number | string;
930
- min: number | string;
931
- name: {
932
- visible: boolean;
933
- position: "center" | "left" | "right" | "auto";
934
- };
935
- labelsEnabled: boolean;
936
- rotation: "0" | "30" | "60" | "90" | "auto";
937
- visible: boolean;
938
- };
939
- grid: {
940
- enabled: boolean;
941
- };
942
1125
  disableDrillDown: boolean;
943
1126
  disableAlerts: boolean;
944
1127
  disableScheduledExports: boolean;
945
1128
  };
946
1129
 
947
- declare type DefaultProperties_4 = {
1130
+ /** @internal */
1131
+ export declare function dependencyWheelChartLoad(props: VisualisationConfig<DependencyWheelChartConfigProperties>): Pair<Scalar<string>, any> | null;
1132
+
1133
+ /** @internal */
1134
+ export declare function dependencyWheelChartSave(_fields: Visualisation["query"]["fields"] | undefined, config: Visualisation["config"] | undefined): {
1135
+ colorMapping: ColorMapping[] | undefined;
1136
+ dataLabels: {
1137
+ visible: "auto" | boolean | undefined;
1138
+ } | undefined;
1139
+ legend: {
1140
+ enabled: boolean | undefined;
1141
+ position: string | undefined;
1142
+ } | undefined;
1143
+ disableDrillDown: boolean | undefined;
1144
+ disableAlerts: boolean | undefined;
1145
+ disableScheduledExports: boolean | undefined;
1146
+ } | undefined;
1147
+
1148
+ /** @internal */
1149
+ export declare const DONUT_CHART_DEFAULTS: ConfigDefaults<DonutChartConfigProperties>;
1150
+
1151
+ /**
1152
+ * @internal
1153
+ * @deprecated Use donutChartLoad and donutChartSave instead.
1154
+ */
1155
+ export declare const donutChart: IDonutChartConfig;
1156
+
1157
+ /** @internal */
1158
+ export declare type DonutChartConfigProperties = {
948
1159
  colorMapping: Array<ColorMapping>;
949
- continuousLine: {
950
- enabled: boolean;
951
- };
952
- distinctPointShapes: {
953
- enabled: boolean;
954
- pointShapeMapping?: Record<string, PointShapeSymbol>;
955
- };
956
1160
  dataLabels: {
957
1161
  visible: boolean | "auto";
958
1162
  style: "auto" | "backplate";
959
1163
  };
960
- dataPoints: {
961
- visible: boolean | "auto";
1164
+ chartFill: {
1165
+ type: ChartFillType;
1166
+ measureToPatternName?: Record<string, PatternFillName>;
962
1167
  };
963
1168
  legend: {
964
1169
  enabled: boolean;
965
1170
  position: "top" | "bottom" | "left" | "right" | "auto";
966
1171
  };
967
- xaxis: {
968
- name: {
969
- visible: boolean;
970
- position: "center" | "left" | "right" | "auto";
971
- };
972
- labelsEnabled: boolean;
973
- rotation: "0" | "30" | "60" | "90" | "auto";
974
- visible: boolean;
975
- };
976
- yaxis: {
977
- format: "inherit" | "auto";
978
- max: number | string;
979
- min: number | string;
980
- name: {
981
- visible: boolean;
982
- position: "center" | "left" | "right" | "auto";
983
- };
984
- labelsEnabled: boolean;
985
- rotation: "0" | "30" | "60" | "90" | "auto";
986
- visible: boolean;
987
- };
988
- grid: {
989
- enabled: boolean;
990
- };
991
- forecast: {
992
- enabled: boolean;
993
- confidence: number;
994
- period: number;
995
- seasonal: boolean;
996
- };
997
- anomalies: {
998
- enabled: boolean;
999
- sensitivity: "low" | "medium" | "high";
1000
- size: "small" | "medium" | "big";
1001
- color: string | number;
1002
- };
1003
1172
  disableDrillDown: boolean;
1004
1173
  disableAlerts: boolean;
1005
1174
  disableScheduledExports: boolean;
1006
- thresholdMeasures: string[];
1007
- thresholdExcludedMeasures: string[];
1008
1175
  };
1009
1176
 
1010
- declare type DefaultProperties_5 = {
1011
- colorMapping: Array<ColorMapping>;
1012
- distinctPointShapes: {
1013
- enabled: boolean;
1014
- pointShapeMapping?: Record<string, PointShapeSymbol>;
1015
- };
1016
- chartFill: {
1017
- type: ChartFillType;
1018
- measureToPatternName?: Record<string, PatternFillName>;
1019
- };
1177
+ /** @internal */
1178
+ export declare function donutChartLoad(props: VisualisationConfig<DonutChartConfigProperties>): Pair<Scalar<string>, any> | null;
1179
+
1180
+ /** @internal */
1181
+ export declare function donutChartSave(_fields: Visualisation["query"]["fields"] | undefined, config: Visualisation["config"] | undefined): {
1182
+ colorMapping: ColorMapping[] | undefined;
1020
1183
  dataLabels: {
1021
- visible: boolean | "auto";
1022
- style: "auto" | "backplate";
1023
- };
1024
- dataPoints: {
1025
- visible: boolean | "auto";
1026
- };
1027
- legend: {
1028
- enabled: boolean;
1029
- position: "top" | "bottom" | "left" | "right" | "auto";
1030
- };
1031
- stackMeasures: boolean;
1032
- stackMeasuresToPercent: boolean;
1033
- xaxis: {
1034
- name: {
1035
- visible: boolean;
1036
- position: "center" | "left" | "right" | "auto";
1037
- };
1038
- labelsEnabled: boolean;
1039
- rotation: "0" | "30" | "60" | "90" | "auto";
1040
- visible: boolean;
1041
- };
1042
- yaxis: {
1043
- format: "inherit" | "auto";
1044
- max: number | string;
1045
- min: number | string;
1046
- name: {
1047
- visible: boolean;
1048
- position: "center" | "left" | "right" | "auto";
1049
- };
1050
- labelsEnabled: boolean;
1051
- rotation: "0" | "30" | "60" | "90" | "auto";
1052
- visible: boolean;
1053
- };
1054
- grid: {
1055
- enabled: boolean;
1056
- };
1057
- disableDrillDown: boolean;
1058
- disableAlerts: boolean;
1059
- disableScheduledExports: boolean;
1060
- };
1061
-
1062
- declare type DefaultProperties_6 = {
1063
- colorMapping: Array<ColorMapping>;
1064
- dataLabels: {
1065
- visible: boolean | "auto";
1066
- style: "auto" | "backplate";
1067
- };
1068
- xaxis: {
1069
- format: "inherit" | "auto";
1070
- max: number | string;
1071
- min: number | string;
1072
- name: {
1073
- visible: boolean;
1074
- position: "center" | "left" | "right" | "auto";
1075
- };
1076
- labelsEnabled: boolean;
1077
- rotation: "0" | "30" | "60" | "90" | "auto";
1078
- visible: boolean;
1079
- };
1080
- yaxis: {
1081
- format: "inherit" | "auto";
1082
- max: number | string;
1083
- min: number | string;
1084
- name: {
1085
- visible: boolean;
1086
- position: "center" | "left" | "right" | "auto";
1087
- };
1088
- labelsEnabled: boolean;
1089
- rotation: "0" | "30" | "60" | "90" | "auto";
1090
- visible: boolean;
1091
- };
1092
- grid: {
1093
- enabled: boolean;
1094
- };
1095
- clustering: {
1096
- enabled: boolean;
1097
- numberOfClusters: number;
1098
- threshold: number;
1099
- };
1100
- disableDrillDown: boolean;
1101
- disableAlerts: boolean;
1102
- disableScheduledExports: boolean;
1103
- };
1104
-
1105
- declare type DefaultProperties_7 = {
1106
- colorMapping: Array<ColorMapping>;
1107
- dataLabels: {
1108
- visible: boolean | "auto";
1109
- style: "auto" | "backplate";
1110
- };
1111
- legend: {
1112
- enabled: boolean;
1113
- position: "top" | "bottom" | "left" | "right" | "auto";
1114
- };
1115
- xaxis: {
1116
- format: "inherit" | "auto";
1117
- max: number | string;
1118
- min: number | string;
1119
- name: {
1120
- visible: boolean;
1121
- position: "center" | "left" | "right" | "auto";
1122
- };
1123
- labelsEnabled: boolean;
1124
- rotation: "0" | "30" | "60" | "90" | "auto";
1125
- visible: boolean;
1126
- };
1127
- yaxis: {
1128
- format: "inherit" | "auto";
1129
- max: number | string;
1130
- min: number | string;
1131
- name: {
1132
- visible: boolean;
1133
- position: "center" | "left" | "right" | "auto";
1134
- };
1135
- labelsEnabled: boolean;
1136
- rotation: "0" | "30" | "60" | "90" | "auto";
1137
- visible: boolean;
1138
- };
1139
- grid: {
1140
- enabled: boolean;
1141
- };
1142
- disableDrillDown: boolean;
1143
- disableAlerts: boolean;
1144
- disableScheduledExports: boolean;
1145
- };
1146
-
1147
- declare type DefaultProperties_8 = {
1148
- colorMapping: Array<ColorMapping>;
1149
- dataLabels: {
1150
- visible: boolean | "auto";
1151
- style: "auto" | "backplate";
1152
- };
1153
- chartFill: {
1154
- type: ChartFillType;
1155
- measureToPatternName?: Record<string, PatternFillName>;
1156
- };
1157
- legend: {
1158
- enabled: boolean;
1159
- position: "top" | "bottom" | "left" | "right" | "auto";
1160
- };
1161
- disableDrillDown: boolean;
1162
- disableAlerts: boolean;
1163
- disableScheduledExports: boolean;
1164
- };
1165
-
1166
- declare type DefaultProperties_9 = {
1167
- colorMapping: Array<ColorMapping>;
1168
- dataLabels: {
1169
- visible: boolean | "auto";
1170
- style: "auto" | "backplate";
1171
- };
1184
+ visible: "auto" | boolean | undefined;
1185
+ style: "auto" | "backplate" | undefined;
1186
+ } | undefined;
1172
1187
  chartFill: {
1173
- type: ChartFillType;
1174
- measureToPatternName?: Record<string, PatternFillName>;
1175
- };
1188
+ type: ChartFillType | undefined;
1189
+ measureToPatternName: Record<string, PatternFillName> | undefined;
1190
+ } | undefined;
1176
1191
  legend: {
1177
- enabled: boolean;
1178
- position: "top" | "bottom" | "left" | "right" | "auto";
1179
- };
1180
- disableDrillDown: boolean;
1181
- disableAlerts: boolean;
1182
- disableScheduledExports: boolean;
1183
- };
1184
-
1185
- export declare const dependencyWheelChart: {
1186
- load: typeof load_16;
1187
- save: typeof save_16;
1188
- DEFAULTS: ConfigDefaults<DefaultProperties_16>;
1189
- };
1192
+ enabled: boolean | undefined;
1193
+ position: string | undefined;
1194
+ } | undefined;
1195
+ disableDrillDown: boolean | undefined;
1196
+ disableAlerts: boolean | undefined;
1197
+ disableScheduledExports: boolean | undefined;
1198
+ } | undefined;
1190
1199
 
1191
- export declare const donutChart: {
1192
- load: typeof load_9;
1193
- save: typeof save_9;
1194
- DEFAULTS: ConfigDefaults<DefaultProperties_9>;
1195
- };
1200
+ /** @internal */
1201
+ export declare type EmptyValueHandling = NonNullable<IDashboardDateFilter["dateFilter"]["emptyValueHandling"]>;
1196
1202
 
1197
1203
  /** @public */
1198
1204
  export declare type ExportEntities = Array<{
@@ -1214,19 +1220,15 @@ export declare type FileNamesUsed = {
1214
1220
  /** @public */
1215
1221
  export declare type FilePath = string[] | string;
1216
1222
 
1217
- export declare type FilterContextItem = {
1218
- yaml: YAMLMap;
1219
- filter: IFilterContextDefinition["filters"][number];
1223
+ /** @internal */
1224
+ export declare type FilterContextDefinition = Pick<IFilterContextDefinition, "filters"> & {
1225
+ version: string;
1220
1226
  };
1221
1227
 
1222
- declare type FilterMapEntry = {
1228
+ /** @internal */
1229
+ export declare type FilterContextItem = {
1223
1230
  yaml: YAMLMap;
1224
- filter: IFilter;
1225
- };
1226
-
1227
- declare type Filters = {
1228
- filtersMap: Record<string, FilterMapEntry>;
1229
- filtersArray: YAMLMap;
1231
+ filter: IFilterContextDefinition["filters"][number];
1230
1232
  };
1231
1233
 
1232
1234
  /** @public */
@@ -1240,14 +1242,61 @@ export declare type FromEntities = Array<{
1240
1242
  data?: Dataset | DateDataset | Metric | Visualisation | Dashboard | Plugin_2 | AttributeHierarchy;
1241
1243
  }>;
1242
1244
 
1243
- declare type FullFields = AttributeField | MetricField | CalculatedMetricField | InlineMetricField | ArithmeticMetricField | PoPMetricField | PreviousPeriodMetricField;
1245
+ /** @public */
1246
+ export declare type FullFields = AttributeField | MetricField | CalculatedMetricField | InlineMetricField | ArithmeticMetricField | PoPMetricField | PreviousPeriodMetricField;
1247
+
1248
+ /** @internal */
1249
+ export declare const FUNNEL_CHART_DEFAULTS: ConfigDefaults<FunnelChartConfigProperties>;
1244
1250
 
1245
- export declare const funnelChart: {
1246
- load: typeof load_12;
1247
- save: typeof save_12;
1248
- DEFAULTS: ConfigDefaults<DefaultProperties_12>;
1251
+ /**
1252
+ * @internal
1253
+ * @deprecated Use funnelChartLoad and funnelChartSave instead.
1254
+ */
1255
+ export declare const funnelChart: IFunnelChartConfig;
1256
+
1257
+ /** @internal */
1258
+ export declare type FunnelChartConfigProperties = {
1259
+ colorMapping: Array<ColorMapping>;
1260
+ dataLabels: {
1261
+ visible: boolean | "auto";
1262
+ style: "auto" | "backplate";
1263
+ };
1264
+ chartFill: {
1265
+ type: ChartFillType;
1266
+ measureToPatternName?: Record<string, PatternFillName>;
1267
+ };
1268
+ legend: {
1269
+ enabled: boolean;
1270
+ position: "top" | "bottom" | "left" | "right" | "auto";
1271
+ };
1272
+ disableDrillDown: boolean;
1273
+ disableAlerts: boolean;
1274
+ disableScheduledExports: boolean;
1249
1275
  };
1250
1276
 
1277
+ /** @internal */
1278
+ export declare function funnelChartLoad(props: VisualisationConfig<FunnelChartConfigProperties>): Pair<Scalar<string>, any> | null;
1279
+
1280
+ /** @internal */
1281
+ export declare function funnelChartSave(_fields: Visualisation["query"]["fields"] | undefined, config: Visualisation["config"] | undefined): {
1282
+ colorMapping: ColorMapping[] | undefined;
1283
+ dataLabels: {
1284
+ visible: "auto" | boolean | undefined;
1285
+ style: "auto" | "backplate" | undefined;
1286
+ } | undefined;
1287
+ chartFill: {
1288
+ type: ChartFillType | undefined;
1289
+ measureToPatternName: Record<string, PatternFillName> | undefined;
1290
+ } | undefined;
1291
+ legend: {
1292
+ enabled: boolean | undefined;
1293
+ position: string | undefined;
1294
+ } | undefined;
1295
+ disableDrillDown: boolean | undefined;
1296
+ disableAlerts: boolean | undefined;
1297
+ disableScheduledExports: boolean | undefined;
1298
+ } | undefined;
1299
+
1251
1300
  /** @public */
1252
1301
  export declare function generateFileName(used: FileNamesUsed, base: string[], id: string, title?: string | null): string;
1253
1302
 
@@ -1271,449 +1320,314 @@ export declare type GenericAssigneeRulePermission = {
1271
1320
  /** @public */
1272
1321
  export declare type GenericPermission = GenericAssigneePermission | GenericAssigneeRulePermission;
1273
1322
 
1274
- export declare const geoAreaChart: {
1275
- load: typeof load_21;
1276
- save: typeof save_21;
1277
- DEFAULTS: ConfigDefaults<DefaultProperties_21>;
1278
- };
1279
-
1280
- export declare const geoChart: {
1281
- load: typeof load_20;
1282
- save: typeof save_20;
1283
- DEFAULTS: ConfigDefaults<DefaultProperties_20>;
1284
- };
1285
-
1286
- /** @public */
1287
- export declare function getIdentifier(obj: ObjRef | ObjRefInScope | AfmObjectIdentifier, untype?: boolean, errorContext?: IErrorContext): string;
1288
-
1289
- /** @public */
1290
- export declare function getValueOrDefault<T>(value: T, defaultValue: T, type?: ValueType, undefinedAsDefault?: boolean): T | undefined;
1291
-
1292
- export declare const headlineChart: {
1293
- load: typeof load_18;
1294
- save: typeof save_18;
1295
- DEFAULTS: ConfigDefaults<DefaultProperties_18>;
1296
- };
1297
-
1298
- export declare const heatmapChart: {
1299
- load: typeof load_13;
1300
- save: typeof save_13;
1301
- DEFAULTS: ConfigDefaults<DefaultProperties_13>;
1302
- };
1303
-
1304
- export declare interface IAbsoluteColumnWidth {
1305
- value: number;
1306
- allowGrowToFit?: boolean;
1307
- }
1323
+ /** @internal */
1324
+ export declare const GEO_AREA_CHART_DEFAULTS: ConfigDefaults<GeoAreaChartConfigProperties>;
1308
1325
 
1309
- export declare interface IAllMeasureColumnWidthItem {
1310
- measureColumnWidthItem: IAllMeasureColumnWidthItemBody;
1311
- }
1312
-
1313
- export declare interface IAllMeasureColumnWidthItemBody {
1314
- width: IAbsoluteColumnWidth;
1315
- }
1326
+ /** @internal */
1327
+ export declare const GEO_CHART_DEFAULTS: ConfigDefaults<GeoChartConfigProperties>;
1316
1328
 
1317
- export declare interface IAttributeColumnLocator {
1318
- attributeLocatorItem: IAttributeColumnLocatorBody;
1319
- }
1329
+ /**
1330
+ * @internal
1331
+ * @deprecated Use geoAreaChartLoad and geoAreaChartSave instead.
1332
+ */
1333
+ export declare const geoAreaChart: IGeoAreaChartConfig;
1320
1334
 
1321
- export declare interface IAttributeColumnLocatorBody {
1322
- attributeIdentifier: string;
1323
- element?: string | null;
1324
- }
1325
-
1326
- export declare interface IAttributeColumnWidthItem {
1327
- attributeColumnWidthItem: IAttributeColumnWidthItemBody;
1328
- }
1329
-
1330
- export declare interface IAttributeColumnWidthItemBody {
1331
- width: IAbsoluteColumnWidth;
1332
- attributeIdentifier: string;
1333
- }
1335
+ /** @internal */
1336
+ export declare type GeoAreaChartConfigProperties = {
1337
+ colorMapping: Array<ColorMapping>;
1338
+ legend: {
1339
+ enabled: boolean;
1340
+ position: "top" | "bottom" | "left" | "right" | "auto" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
1341
+ };
1342
+ tooltipText: string;
1343
+ basemap: string;
1344
+ viewport: {
1345
+ area: "auto" | "continent_af" | "continent_as" | "continent_au" | "continent_eu" | "continent_na" | "continent_sa" | "world" | "custom";
1346
+ navigation: {
1347
+ pan: boolean;
1348
+ zoom: boolean;
1349
+ };
1350
+ };
1351
+ center: {
1352
+ lat: number;
1353
+ lng: number;
1354
+ };
1355
+ zoom: number;
1356
+ bounds: {
1357
+ northEast: {
1358
+ lat: number;
1359
+ lng: number;
1360
+ };
1361
+ southWest: {
1362
+ lat: number;
1363
+ lng: number;
1364
+ };
1365
+ };
1366
+ disableAlerts: boolean;
1367
+ disableScheduledExports: boolean;
1368
+ };
1334
1369
 
1335
- export declare interface IAutoColumnWidth {
1336
- value: "auto";
1337
- }
1370
+ /** @internal */
1371
+ export declare function geoAreaChartLoad(props: VisualisationConfig<GeoAreaChartConfigProperties>): Pair<Scalar<string>, any> | null;
1338
1372
 
1339
- /**
1340
- * @public
1341
- */
1342
- export declare interface ICoreError extends Error {
1343
- code: CoreErrorCode;
1344
- type: (typeof CoreErrorTypes)[keyof typeof CoreErrorTypes];
1345
- context?: IErrorContext;
1346
- }
1373
+ /** @internal */
1374
+ export declare function geoAreaChartSave(_fields: Visualisation["query"]["fields"] | undefined, config: Visualisation["config"] | undefined, _positions: Array<{
1375
+ longitude: string;
1376
+ latitude: string;
1377
+ }>): {
1378
+ colorMapping: ColorMapping[] | undefined;
1379
+ legend: {
1380
+ enabled: boolean | undefined;
1381
+ position: string | undefined;
1382
+ } | undefined;
1383
+ tooltipText: string | undefined;
1384
+ basemap: string | undefined;
1385
+ viewport: {
1386
+ area: "auto" | "continent_af" | "continent_as" | "continent_au" | "continent_eu" | "continent_na" | "continent_sa" | "custom" | "world" | undefined;
1387
+ navigation: {
1388
+ pan: boolean | undefined;
1389
+ zoom: boolean | undefined;
1390
+ } | undefined;
1391
+ } | undefined;
1392
+ center: {
1393
+ lat: number | undefined;
1394
+ lng: number | undefined;
1395
+ } | undefined;
1396
+ zoom: number | undefined;
1397
+ bounds: {
1398
+ northEast: {
1399
+ lat: number | undefined;
1400
+ lng: number | undefined;
1401
+ } | undefined;
1402
+ southWest: {
1403
+ lat: number | undefined;
1404
+ lng: number | undefined;
1405
+ } | undefined;
1406
+ } | undefined;
1407
+ disableAlerts: boolean | undefined;
1408
+ disableScheduledExports: boolean | undefined;
1409
+ } | undefined;
1347
1410
 
1348
1411
  /**
1349
- * @public
1412
+ * @internal
1413
+ * @deprecated Use geoChartLoad and geoChartSave instead.
1350
1414
  */
1351
- export declare interface IErrorContext {
1352
- type?: string;
1353
- path?: string[];
1354
- data?: unknown;
1355
- }
1356
-
1357
- export declare interface IMeasureColumnLocator {
1358
- measureLocatorItem: IMeasureColumnLocatorBody;
1359
- }
1360
-
1361
- export declare interface IMeasureColumnLocatorBody {
1362
- measureIdentifier: string;
1363
- }
1364
-
1365
- export declare interface IMeasureColumnWidthItem {
1366
- measureColumnWidthItem: IMeasureColumnWidthItemBody;
1367
- }
1368
-
1369
- export declare interface IMeasureColumnWidthItemBody {
1370
- width: ColumnWidth;
1371
- locators: ColumnLocator[];
1372
- }
1373
-
1374
- export declare interface IMixedValuesColumnWidthItem {
1375
- mixedValuesColumnWidthItem: IMixedValuesColumnWidthItemBody;
1376
- }
1377
-
1378
- export declare interface IMixedValuesColumnWidthItemBody {
1379
- width: ColumnWidth;
1380
- locators: IMeasureColumnLocator[];
1381
- }
1382
-
1383
- export declare type InlineVisualizations = Record<string, {
1384
- type: "metric" | "line" | "column";
1385
- }>;
1386
-
1387
- export declare interface ISliceMeasureColumnWidthItem {
1388
- sliceMeasureColumnWidthItem: ISliceMeasureColumnWidthItemBody;
1389
- }
1390
-
1391
- export declare interface ISliceMeasureColumnWidthItemBody {
1392
- width: ColumnWidth;
1393
- locators: IMeasureColumnLocator[];
1394
- }
1395
-
1396
- export declare interface ITotalColumnLocator {
1397
- totalLocatorItem: ITotalColumnLocatorBody;
1398
- }
1399
-
1400
- export declare interface ITotalColumnLocatorBody {
1401
- attributeIdentifier: string;
1402
- totalFunction: string;
1403
- }
1404
-
1405
- export declare interface IWeakMeasureColumnWidthItem {
1406
- measureColumnWidthItem: IWeakMeasureColumnWidthItemBody;
1407
- }
1408
-
1409
- export declare interface IWeakMeasureColumnWidthItemBody {
1410
- width: IAbsoluteColumnWidth;
1411
- locator: IMeasureColumnLocator;
1412
- }
1415
+ export declare const geoChart: IGeoChartConfig;
1413
1416
 
1414
- export declare const lineChart: {
1415
- load: typeof load_4;
1416
- save: typeof save_4;
1417
- DEFAULTS: ConfigDefaults<DefaultProperties_4>;
1417
+ /** @internal */
1418
+ export declare type GeoChartConfigProperties = {
1419
+ colorMapping: Array<ColorMapping>;
1420
+ legend: {
1421
+ enabled: boolean;
1422
+ position: "top" | "bottom" | "left" | "right" | "auto" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
1423
+ };
1424
+ longitude: string;
1425
+ latitude: string;
1426
+ tooltipText: string;
1427
+ basemap: string;
1428
+ viewport: {
1429
+ area: "auto" | "continent_af" | "continent_as" | "continent_au" | "continent_eu" | "continent_na" | "continent_sa" | "world" | "custom";
1430
+ navigation: {
1431
+ pan: boolean;
1432
+ zoom: boolean;
1433
+ };
1434
+ };
1435
+ center: {
1436
+ lat: number;
1437
+ lng: number;
1438
+ };
1439
+ zoom: number;
1440
+ bounds: {
1441
+ northEast: {
1442
+ lat: number;
1443
+ lng: number;
1444
+ };
1445
+ southWest: {
1446
+ lat: number;
1447
+ lng: number;
1448
+ };
1449
+ };
1450
+ points: {
1451
+ groupNearbyPoints: boolean;
1452
+ maxSize: "0.5x" | "0.75x" | "normal" | "1.25x" | "1.5x" | "default";
1453
+ minSize: "0.5x" | "0.75x" | "normal" | "1.25x" | "1.5x" | "default";
1454
+ shapeType: "circle" | "iconByValue" | "oneIcon";
1455
+ icon: string;
1456
+ };
1457
+ disableAlerts: boolean;
1458
+ disableScheduledExports: boolean;
1418
1459
  };
1419
1460
 
1420
- declare function load(props: VisualisationConfig<DefaultProperties>): Pair<Scalar<string>, any> | null;
1421
-
1422
- declare function load_10(props: VisualisationConfig<DefaultProperties_10>): Pair<Scalar<string>, any> | null;
1423
-
1424
- declare function load_11(props: VisualisationConfig<DefaultProperties_11>): Pair<Scalar<string>, any> | null;
1461
+ /** @internal */
1462
+ export declare function geoChartLoad(props: VisualisationConfig<GeoChartConfigProperties>): Pair<Scalar<string>, any> | null;
1425
1463
 
1426
- declare function load_12(props: VisualisationConfig<DefaultProperties_12>): Pair<Scalar<string>, any> | null;
1427
-
1428
- declare function load_13(props: VisualisationConfig<DefaultProperties_13>): Pair<Scalar<string>, any> | null;
1429
-
1430
- declare function load_14(props: VisualisationConfig<DefaultProperties_14>): Pair<Scalar<string>, any> | null;
1431
-
1432
- declare function load_15(props: VisualisationConfig<DefaultProperties_15>): Pair<Scalar<string>, any> | null;
1433
-
1434
- declare function load_16(props: VisualisationConfig<DefaultProperties_16>): Pair<Scalar<string>, any> | null;
1435
-
1436
- declare function load_17(props: VisualisationConfig<DefaultProperties_17>): Pair<Scalar<string>, any> | null;
1437
-
1438
- declare function load_18(props: VisualisationConfig<DefaultProperties_18>): Pair<Scalar<string>, any> | null;
1439
-
1440
- declare function load_19(props: VisualisationConfig<DefaultProperties_19>): Pair<Scalar<string>, any> | null;
1441
-
1442
- declare function load_2(props: VisualisationConfig<DefaultProperties_2>): Pair<Scalar<string>, any> | null;
1443
-
1444
- declare function load_20(props: VisualisationConfig<DefaultProperties_20>): Pair<Scalar<string>, any> | null;
1445
-
1446
- declare function load_21(props: VisualisationConfig<DefaultProperties_21>): Pair<Scalar<string>, any> | null;
1447
-
1448
- declare function load_22(props: VisualisationConfig<DefaultProperties_22>): Pair<Scalar<string>, any> | null;
1449
-
1450
- declare function load_3(props: VisualisationConfig<DefaultProperties_3>): Pair<Scalar<string>, any> | null;
1451
-
1452
- declare function load_4(props: VisualisationConfig<DefaultProperties_4>): Pair<Scalar<string>, any> | null;
1453
-
1454
- declare function load_5(props: VisualisationConfig<DefaultProperties_5>): Pair<Scalar<string>, any> | null;
1455
-
1456
- declare function load_6(props: VisualisationConfig<DefaultProperties_6>): Pair<Scalar<string>, any> | null;
1457
-
1458
- declare function load_7(props: VisualisationConfig<DefaultProperties_7>): Pair<Scalar<string>, any> | null;
1459
-
1460
- declare function load_8(props: VisualisationConfig<DefaultProperties_8>): Pair<Scalar<string>, any> | null;
1461
-
1462
- declare function load_9(props: VisualisationConfig<DefaultProperties_9>): Pair<Scalar<string>, any> | null;
1464
+ /** @internal */
1465
+ export declare function geoChartSave(_fields: Visualisation["query"]["fields"] | undefined, config: Visualisation["config"] | undefined, positions: Array<{
1466
+ longitude: string;
1467
+ latitude: string;
1468
+ }>): {
1469
+ longitude: string;
1470
+ latitude: string;
1471
+ } | undefined;
1463
1472
 
1464
1473
  /** @public */
1465
- export declare function loadColorMapping(mappings: Array<ColorMapping>): YAMLMap<keyof ListOfColors, Color>;
1474
+ export declare function getIdentifier(obj: ObjRef | ObjRefInScope | AfmObjectIdentifier, untype?: boolean, errorContext?: IErrorContext): string;
1466
1475
 
1467
1476
  /** @public */
1468
- export declare function loadColumnsWidth(widths: Array<ColumnWidthItem>): YAMLMap<keyof Width, any>[] | undefined;
1477
+ export declare function getValueOrDefault<T>(value: T, defaultValue: T, type?: ValueType, undefinedAsDefault?: boolean): T | undefined;
1469
1478
 
1470
- export declare const MetricTypes: string[];
1479
+ /** @internal */
1480
+ export declare const HEADLINE_CHART_DEFAULTS: ConfigDefaults<HeadlineChartConfigProperties>;
1471
1481
 
1472
- export declare type OverrideDashboardDefinition = Omit<IDashboardDefinition, "filterContext"> & {
1473
- filterContextRef?: AfmObjectIdentifier;
1474
- tabs?: DashboardTab[];
1475
- activeTabLocalIdentifier?: string;
1482
+ /**
1483
+ * @internal
1484
+ * @deprecated Use headlineChartLoad and headlineChartSave instead.
1485
+ */
1486
+ export declare const headlineChart: IHeadlineChartConfig;
1487
+
1488
+ /** @internal */
1489
+ export declare type HeadlineChartConfigProperties = {
1490
+ comparison: {
1491
+ enabled: boolean;
1492
+ calculationType: "change" | "change_difference" | "ratio" | "difference";
1493
+ format: "inherit" | string;
1494
+ position: "right" | "left" | "top" | "auto";
1495
+ isArrowEnabled: boolean;
1496
+ colorConfig?: {
1497
+ disabled: boolean;
1498
+ equals: ColorMapping["color"] | undefined;
1499
+ negative: ColorMapping["color"] | undefined;
1500
+ positive: ColorMapping["color"] | undefined;
1501
+ };
1502
+ labelConfig?: {
1503
+ isConditional: boolean;
1504
+ unconditionalValue: string;
1505
+ equals: string;
1506
+ negative: string;
1507
+ positive: string;
1508
+ };
1509
+ };
1510
+ disableAlerts: boolean;
1511
+ disableScheduledExports: boolean;
1476
1512
  };
1477
1513
 
1478
- export declare 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";
1514
+ /** @internal */
1515
+ export declare function headlineChartLoad(props: VisualisationConfig<HeadlineChartConfigProperties>): Pair<Scalar<string>, any> | null;
1479
1516
 
1480
- /** @public */
1481
- declare type Permissions_2 = {
1482
- [name: string]: {
1483
- all?: boolean;
1484
- users?: string[];
1485
- user_groups?: string[];
1486
- } | undefined;
1487
- };
1488
- export { Permissions_2 as Permissions }
1489
-
1490
- export declare const pieChart: {
1491
- load: typeof load_8;
1492
- save: typeof save_8;
1493
- DEFAULTS: ConfigDefaults<DefaultProperties_8>;
1494
- };
1495
-
1496
- export declare const PluginTypes: string[];
1497
-
1498
- export declare type PointShapeSymbol = "circle" | "square" | "diamond" | "triangle" | "triangle-down";
1499
-
1500
- declare type PostProcessors = {
1501
- filters: Array<{
1502
- item: YAMLMap;
1503
- filters: IFilter[];
1504
- }>;
1505
- };
1506
-
1507
- /** @public */
1508
- export declare type Profile = {
1509
- host: string;
1510
- token: string;
1511
- workspace_id: string;
1512
- data_source?: string;
1513
- };
1514
-
1515
- export declare const pyramidChart: {
1516
- load: typeof load_11;
1517
- save: typeof save_11;
1518
- DEFAULTS: ConfigDefaults<DefaultProperties_11>;
1519
- };
1520
-
1521
- export declare const repeaterChart: {
1522
- load: typeof load_22;
1523
- save: typeof save_22;
1524
- saveInlineVisualizations: typeof saveInlineVisualizations;
1525
- DEFAULTS: ConfigDefaults<DefaultProperties_22>;
1526
- };
1527
-
1528
- /** @public */
1529
- export declare function resolveIdFromFileName(fileName: FilePath): string;
1530
-
1531
- export declare const sankeyChart: {
1532
- load: typeof load_17;
1533
- save: typeof save_17;
1534
- DEFAULTS: ConfigDefaults<DefaultProperties_17>;
1535
- };
1536
-
1537
- declare function save(fields: Visualisation["query"]["fields"] | undefined, config: Visualisation["config"] | undefined): {
1538
- columnWidths: ColumnWidthItem[] | undefined;
1539
- columnHeadersPosition: string | undefined;
1540
- measureGroupDimension: string | undefined;
1541
- disableDrillDown: boolean | undefined;
1542
- disableDrillIntoURL: boolean | undefined;
1543
- disableAlerts: boolean | undefined;
1544
- disableScheduledExports: boolean | undefined;
1545
- textWrapping: {
1546
- wrapText: boolean;
1547
- wrapHeaderText: boolean;
1548
- columnOverrides: {
1549
- locators: ColumnLocator[];
1550
- wrapText: boolean;
1551
- wrapHeaderText: boolean;
1552
- matchType: "column" | "pivotGroup";
1553
- }[];
1554
- } | undefined;
1555
- enableAccessibility: boolean | undefined;
1556
- pagination: {
1557
- enabled: boolean;
1558
- } | undefined;
1559
- pageSize: number | undefined;
1560
- grandTotalsPosition: "bottom" | "pinnedBottom" | "pinnedTop" | "top" | undefined;
1561
- } | undefined;
1562
-
1563
- declare function save_10(_fields: Visualisation["query"]["fields"] | undefined, config: Visualisation["config"] | undefined): {
1564
- colorMapping: ColorMapping[] | undefined;
1565
- dataLabels: {
1566
- visible: "auto" | boolean | undefined;
1567
- style: "auto" | "backplate" | undefined;
1568
- } | undefined;
1569
- chartFill: {
1570
- type: ChartFillType | undefined;
1571
- measureToPatternName: Record<string, PatternFillName> | undefined;
1572
- } | undefined;
1573
- legend: {
1517
+ /** @internal */
1518
+ export declare function headlineChartSave(_fields: Visualisation["query"]["fields"] | undefined, config?: Visualisation["config"] | undefined): {
1519
+ comparison: {
1520
+ calculationType: string | undefined;
1521
+ format: string | undefined;
1574
1522
  enabled: boolean | undefined;
1575
1523
  position: string | undefined;
1524
+ isArrowEnabled: boolean | undefined;
1525
+ labelConfig: {
1526
+ isConditional: boolean | undefined;
1527
+ unconditionalValue: string | undefined;
1528
+ equals: string | undefined;
1529
+ negative: string | undefined;
1530
+ positive: string | undefined;
1531
+ } | undefined;
1532
+ colorConfig: {
1533
+ disabled: boolean | undefined;
1534
+ equals: {
1535
+ type: "guid";
1536
+ value: string;
1537
+ } | {
1538
+ type: "rgb";
1539
+ value: {
1540
+ r: number;
1541
+ g: number;
1542
+ b: number;
1543
+ };
1544
+ } | undefined;
1545
+ negative: {
1546
+ type: "guid";
1547
+ value: string;
1548
+ } | {
1549
+ type: "rgb";
1550
+ value: {
1551
+ r: number;
1552
+ g: number;
1553
+ b: number;
1554
+ };
1555
+ } | undefined;
1556
+ positive: {
1557
+ type: "guid";
1558
+ value: string;
1559
+ } | {
1560
+ type: "rgb";
1561
+ value: {
1562
+ r: number;
1563
+ g: number;
1564
+ b: number;
1565
+ };
1566
+ } | undefined;
1567
+ } | undefined;
1576
1568
  } | undefined;
1577
- disableDrillDown: boolean | undefined;
1578
1569
  disableAlerts: boolean | undefined;
1579
1570
  disableScheduledExports: boolean | undefined;
1580
1571
  } | undefined;
1581
1572
 
1582
- declare function save_11(_fields: Visualisation["query"]["fields"] | undefined, config: Visualisation["config"] | undefined): {
1583
- colorMapping: ColorMapping[] | undefined;
1584
- dataLabels: {
1585
- visible: "auto" | boolean | undefined;
1586
- style: "auto" | "backplate" | undefined;
1587
- } | undefined;
1588
- chartFill: {
1589
- type: ChartFillType | undefined;
1590
- measureToPatternName: Record<string, PatternFillName> | undefined;
1591
- } | undefined;
1592
- legend: {
1593
- enabled: boolean | undefined;
1594
- position: string | undefined;
1595
- } | undefined;
1596
- disableDrillDown: boolean | undefined;
1597
- disableAlerts: boolean | undefined;
1598
- disableScheduledExports: boolean | undefined;
1599
- } | undefined;
1573
+ /** @internal */
1574
+ export declare const HEATMAP_CHART_DEFAULTS: ConfigDefaults<HeatmapChartConfigProperties>;
1600
1575
 
1601
- declare function save_12(_fields: Visualisation["query"]["fields"] | undefined, config: Visualisation["config"] | undefined): {
1602
- colorMapping: ColorMapping[] | undefined;
1603
- dataLabels: {
1604
- visible: "auto" | boolean | undefined;
1605
- style: "auto" | "backplate" | undefined;
1606
- } | undefined;
1607
- chartFill: {
1608
- type: ChartFillType | undefined;
1609
- measureToPatternName: Record<string, PatternFillName> | undefined;
1610
- } | undefined;
1611
- legend: {
1612
- enabled: boolean | undefined;
1613
- position: string | undefined;
1614
- } | undefined;
1615
- disableDrillDown: boolean | undefined;
1616
- disableAlerts: boolean | undefined;
1617
- disableScheduledExports: boolean | undefined;
1618
- } | undefined;
1576
+ /**
1577
+ * @internal
1578
+ * @deprecated Use heatmapChartLoad and heatmapChartSave instead.
1579
+ */
1580
+ export declare const heatmapChart: IHeatmapChartConfig;
1619
1581
 
1620
- declare function save_13(_fields: Visualisation["query"]["fields"] | undefined, config: Visualisation["config"] | undefined): {
1621
- colorMapping: ColorMapping[] | undefined;
1582
+ /** @internal */
1583
+ export declare type HeatmapChartConfigProperties = {
1584
+ colorMapping: Array<ColorMapping>;
1622
1585
  dataLabels: {
1623
- visible: "auto" | boolean | undefined;
1624
- style: "auto" | "backplate" | undefined;
1625
- } | undefined;
1586
+ visible: boolean | "auto";
1587
+ style: "auto" | "backplate";
1588
+ };
1626
1589
  legend: {
1627
- enabled: boolean | undefined;
1628
- position: string | undefined;
1629
- } | undefined;
1590
+ enabled: boolean;
1591
+ position: "top" | "bottom" | "left" | "right" | "auto";
1592
+ };
1630
1593
  xaxis: {
1631
1594
  name: {
1632
- position: string | undefined;
1633
- visible: boolean | undefined;
1634
- } | undefined;
1635
- rotation: string | undefined;
1636
- visible: boolean | undefined;
1637
- labelsEnabled: boolean | undefined;
1638
- } | undefined;
1595
+ visible: boolean;
1596
+ position: "center" | "left" | "right" | "auto";
1597
+ };
1598
+ labelsEnabled: boolean;
1599
+ rotation: "0" | "30" | "60" | "90" | "auto";
1600
+ visible: boolean;
1601
+ };
1639
1602
  yaxis: {
1640
1603
  name: {
1641
- position: string | undefined;
1642
- visible: boolean | undefined;
1643
- } | undefined;
1644
- rotation: string | undefined;
1645
- visible: boolean | undefined;
1646
- labelsEnabled: boolean | undefined;
1647
- } | undefined;
1648
- disableDrillDown: boolean | undefined;
1649
- disableAlerts: boolean | undefined;
1650
- disableScheduledExports: boolean | undefined;
1651
- } | undefined;
1604
+ visible: boolean;
1605
+ position: "center" | "left" | "right" | "auto";
1606
+ };
1607
+ labelsEnabled: boolean;
1608
+ rotation: "0" | "30" | "60" | "90" | "auto";
1609
+ visible: boolean;
1610
+ };
1611
+ disableDrillDown: boolean;
1612
+ disableAlerts: boolean;
1613
+ disableScheduledExports: boolean;
1614
+ };
1652
1615
 
1653
- declare function save_14(_fields: Visualisation["query"]["fields"] | undefined, config: Visualisation["config"] | undefined): {
1654
- colorMapping: ColorMapping[] | undefined;
1655
- legend: {
1656
- enabled: boolean | undefined;
1657
- position: string | undefined;
1658
- } | undefined;
1659
- chartFill: {
1660
- type: ChartFillType | undefined;
1661
- measureToPatternName: Record<string, PatternFillName> | undefined;
1662
- } | undefined;
1663
- xaxis: {
1664
- format: string | undefined;
1665
- max: string | number | undefined;
1666
- min: string | number | undefined;
1667
- name: {
1668
- position: string | undefined;
1669
- visible: boolean | undefined;
1670
- } | undefined;
1671
- rotation: string | undefined;
1672
- visible: boolean | undefined;
1673
- labelsEnabled: boolean | undefined;
1674
- } | undefined;
1675
- yaxis: {
1676
- name: {
1677
- position: string | undefined;
1678
- visible: boolean | undefined;
1679
- } | undefined;
1680
- rotation: string | undefined;
1681
- visible: boolean | undefined;
1682
- labelsEnabled: boolean | undefined;
1683
- } | undefined;
1684
- grid: {
1685
- enabled: boolean | undefined;
1686
- } | undefined;
1687
- disableDrillDown: boolean | undefined;
1688
- disableAlerts: boolean | undefined;
1689
- disableScheduledExports: boolean | undefined;
1690
- } | undefined;
1616
+ /** @internal */
1617
+ export declare function heatmapChartLoad(props: VisualisationConfig<HeatmapChartConfigProperties>): Pair<Scalar<string>, any> | null;
1691
1618
 
1692
- declare function save_15(_fields: Visualisation["query"]["fields"] | undefined, config: Visualisation["config"] | undefined): {
1619
+ /** @internal */
1620
+ export declare function heatmapChartSave(_fields: Visualisation["query"]["fields"] | undefined, config: Visualisation["config"] | undefined): {
1693
1621
  colorMapping: ColorMapping[] | undefined;
1694
1622
  dataLabels: {
1695
1623
  visible: "auto" | boolean | undefined;
1696
1624
  style: "auto" | "backplate" | undefined;
1697
1625
  } | undefined;
1698
- chartFill: {
1699
- type: ChartFillType | undefined;
1700
- measureToPatternName: Record<string, PatternFillName> | undefined;
1701
- } | undefined;
1702
- orientation: {
1703
- position: string | undefined;
1704
- } | undefined;
1705
- total: {
1706
- enabled: boolean | undefined;
1707
- name: string | undefined;
1708
- } | undefined;
1709
1626
  legend: {
1710
1627
  enabled: boolean | undefined;
1711
1628
  position: string | undefined;
1712
1629
  } | undefined;
1713
1630
  xaxis: {
1714
- format: string | undefined;
1715
- max: string | number | undefined;
1716
- min: string | number | undefined;
1717
1631
  name: {
1718
1632
  position: string | undefined;
1719
1633
  visible: boolean | undefined;
@@ -1731,99 +1645,441 @@ declare function save_15(_fields: Visualisation["query"]["fields"] | undefined,
1731
1645
  visible: boolean | undefined;
1732
1646
  labelsEnabled: boolean | undefined;
1733
1647
  } | undefined;
1734
- grid: {
1735
- enabled: boolean | undefined;
1736
- } | undefined;
1737
1648
  disableDrillDown: boolean | undefined;
1738
1649
  disableAlerts: boolean | undefined;
1739
1650
  disableScheduledExports: boolean | undefined;
1740
1651
  } | undefined;
1741
1652
 
1742
- declare function save_16(_fields: Visualisation["query"]["fields"] | undefined, config: Visualisation["config"] | undefined): {
1743
- colorMapping: ColorMapping[] | undefined;
1744
- dataLabels: {
1745
- visible: "auto" | boolean | undefined;
1746
- } | undefined;
1747
- legend: {
1748
- enabled: boolean | undefined;
1749
- position: string | undefined;
1750
- } | undefined;
1751
- disableDrillDown: boolean | undefined;
1752
- disableAlerts: boolean | undefined;
1753
- disableScheduledExports: boolean | undefined;
1754
- } | undefined;
1653
+ /** @public */
1654
+ export declare interface IAbsoluteColumnWidth {
1655
+ value: number;
1656
+ allowGrowToFit?: boolean;
1657
+ }
1755
1658
 
1756
- declare function save_17(_fields: Visualisation["query"]["fields"] | undefined, config: Visualisation["config"] | undefined): {
1757
- colorMapping: ColorMapping[] | undefined;
1659
+ /** @public */
1660
+ export declare interface IAllMeasureColumnWidthItem {
1661
+ measureColumnWidthItem: IAllMeasureColumnWidthItemBody;
1662
+ }
1663
+
1664
+ /** @public */
1665
+ export declare interface IAllMeasureColumnWidthItemBody {
1666
+ width: IAbsoluteColumnWidth;
1667
+ }
1668
+
1669
+ /**
1670
+ * @internal
1671
+ * @deprecated Use areaChartLoad and areaChartSave instead.
1672
+ */
1673
+ export declare interface IAreaChartConfig {
1674
+ load: typeof areaChartLoad;
1675
+ save: typeof areaChartSave;
1676
+ DEFAULTS: ConfigDefaults<AreaChartConfigProperties>;
1677
+ }
1678
+
1679
+ /** @public */
1680
+ export declare interface IAttributeColumnLocator {
1681
+ attributeLocatorItem: IAttributeColumnLocatorBody;
1682
+ }
1683
+
1684
+ /** @public */
1685
+ export declare interface IAttributeColumnLocatorBody {
1686
+ attributeIdentifier: string;
1687
+ element?: string | null;
1688
+ }
1689
+
1690
+ /** @public */
1691
+ export declare interface IAttributeColumnWidthItem {
1692
+ attributeColumnWidthItem: IAttributeColumnWidthItemBody;
1693
+ }
1694
+
1695
+ /** @public */
1696
+ export declare interface IAttributeColumnWidthItemBody {
1697
+ width: IAbsoluteColumnWidth;
1698
+ attributeIdentifier: string;
1699
+ }
1700
+
1701
+ /** @public */
1702
+ export declare interface IAutoColumnWidth {
1703
+ value: "auto";
1704
+ }
1705
+
1706
+ /**
1707
+ * @internal
1708
+ * @deprecated Use barChartLoad and barChartSave instead.
1709
+ */
1710
+ export declare interface IBarChartConfig {
1711
+ load: typeof barChartLoad;
1712
+ save: typeof barChartSave;
1713
+ DEFAULTS: ConfigDefaults<BarChartConfigProperties>;
1714
+ }
1715
+
1716
+ /**
1717
+ * @internal
1718
+ * @deprecated Use bubbleChartLoad and bubbleChartSave instead.
1719
+ */
1720
+ export declare interface IBubbleChartConfig {
1721
+ load: typeof bubbleChartLoad;
1722
+ save: typeof bubbleChartSave;
1723
+ DEFAULTS: ConfigDefaults<BubbleChartConfigProperties>;
1724
+ }
1725
+
1726
+ /**
1727
+ * @internal
1728
+ * @deprecated Use bulletChartLoad and bulletChartSave instead.
1729
+ */
1730
+ export declare interface IBulletChartConfig {
1731
+ load: typeof bulletChartLoad;
1732
+ save: typeof bulletChartSave;
1733
+ DEFAULTS: ConfigDefaults<BulletChartConfigProperties>;
1734
+ }
1735
+
1736
+ /**
1737
+ * @internal
1738
+ * @deprecated Use columnChartLoad and columnChartSave instead.
1739
+ */
1740
+ export declare interface IColumnChartConfig {
1741
+ load: typeof columnChartLoad;
1742
+ save: typeof columnChartSave;
1743
+ DEFAULTS: ConfigDefaults<ColumnChartConfigProperties>;
1744
+ }
1745
+
1746
+ /**
1747
+ * @internal
1748
+ * @deprecated Use comboChartLoad and comboChartSave instead.
1749
+ */
1750
+ export declare interface IComboChartConfig {
1751
+ load: typeof comboChartLoad;
1752
+ save: typeof comboChartSave;
1753
+ DEFAULTS: ConfigDefaults<ComboChartConfigProperties>;
1754
+ }
1755
+
1756
+ /**
1757
+ * @public
1758
+ */
1759
+ export declare interface ICoreError extends Error {
1760
+ code: CoreErrorCode;
1761
+ type: (typeof CoreErrorTypes)[keyof typeof CoreErrorTypes];
1762
+ context?: IErrorContext;
1763
+ }
1764
+
1765
+ /**
1766
+ * @internal
1767
+ * @deprecated Use dependencyWheelChartLoad and dependencyWheelChartSave instead.
1768
+ */
1769
+ export declare interface IDependencyWheelChartConfig {
1770
+ load: typeof dependencyWheelChartLoad;
1771
+ save: typeof dependencyWheelChartSave;
1772
+ DEFAULTS: ConfigDefaults<DependencyWheelChartConfigProperties>;
1773
+ }
1774
+
1775
+ /**
1776
+ * @internal
1777
+ * @deprecated Use donutChartLoad and donutChartSave instead.
1778
+ */
1779
+ export declare interface IDonutChartConfig {
1780
+ load: typeof donutChartLoad;
1781
+ save: typeof donutChartSave;
1782
+ DEFAULTS: ConfigDefaults<DonutChartConfigProperties>;
1783
+ }
1784
+
1785
+ /**
1786
+ * @public
1787
+ */
1788
+ export declare interface IErrorContext {
1789
+ type?: string;
1790
+ path?: string[];
1791
+ data?: unknown;
1792
+ }
1793
+
1794
+ /**
1795
+ * @internal
1796
+ * @deprecated Use funnelChartLoad and funnelChartSave instead.
1797
+ */
1798
+ export declare interface IFunnelChartConfig {
1799
+ load: typeof funnelChartLoad;
1800
+ save: typeof funnelChartSave;
1801
+ DEFAULTS: ConfigDefaults<FunnelChartConfigProperties>;
1802
+ }
1803
+
1804
+ /**
1805
+ * @internal
1806
+ * @deprecated Use geoAreaChartLoad and geoAreaChartSave instead.
1807
+ */
1808
+ export declare interface IGeoAreaChartConfig {
1809
+ load: typeof geoAreaChartLoad;
1810
+ save: typeof geoAreaChartSave;
1811
+ DEFAULTS: ConfigDefaults<GeoAreaChartConfigProperties>;
1812
+ }
1813
+
1814
+ /**
1815
+ * @internal
1816
+ * @deprecated Use geoChartLoad and geoChartSave instead.
1817
+ */
1818
+ export declare interface IGeoChartConfig {
1819
+ load: typeof geoChartLoad;
1820
+ save: typeof geoChartSave;
1821
+ DEFAULTS: ConfigDefaults<GeoChartConfigProperties>;
1822
+ }
1823
+
1824
+ /**
1825
+ * @internal
1826
+ * @deprecated Use headlineChartLoad and headlineChartSave instead.
1827
+ */
1828
+ export declare interface IHeadlineChartConfig {
1829
+ load: typeof headlineChartLoad;
1830
+ save: typeof headlineChartSave;
1831
+ DEFAULTS: ConfigDefaults<HeadlineChartConfigProperties>;
1832
+ }
1833
+
1834
+ /**
1835
+ * @internal
1836
+ * @deprecated Use heatmapChartLoad and heatmapChartSave instead.
1837
+ */
1838
+ export declare interface IHeatmapChartConfig {
1839
+ load: typeof heatmapChartLoad;
1840
+ save: typeof heatmapChartSave;
1841
+ DEFAULTS: ConfigDefaults<HeatmapChartConfigProperties>;
1842
+ }
1843
+
1844
+ /**
1845
+ * @internal
1846
+ * @deprecated Use lineChartLoad and lineChartSave instead.
1847
+ */
1848
+ export declare interface ILineChartConfig {
1849
+ load: typeof lineChartLoad;
1850
+ save: typeof lineChartSave;
1851
+ DEFAULTS: ConfigDefaults<LineChartConfigProperties>;
1852
+ }
1853
+
1854
+ /** @public */
1855
+ export declare interface IMeasureColumnLocator {
1856
+ measureLocatorItem: IMeasureColumnLocatorBody;
1857
+ }
1858
+
1859
+ /** @public */
1860
+ export declare interface IMeasureColumnLocatorBody {
1861
+ measureIdentifier: string;
1862
+ }
1863
+
1864
+ /** @public */
1865
+ export declare interface IMeasureColumnWidthItem {
1866
+ measureColumnWidthItem: IMeasureColumnWidthItemBody;
1867
+ }
1868
+
1869
+ /** @public */
1870
+ export declare interface IMeasureColumnWidthItemBody {
1871
+ width: ColumnWidth;
1872
+ locators: ColumnLocator[];
1873
+ }
1874
+
1875
+ /** @public */
1876
+ export declare interface IMixedValuesColumnWidthItem {
1877
+ mixedValuesColumnWidthItem: IMixedValuesColumnWidthItemBody;
1878
+ }
1879
+
1880
+ /** @public */
1881
+ export declare interface IMixedValuesColumnWidthItemBody {
1882
+ width: ColumnWidth;
1883
+ locators: IMeasureColumnLocator[];
1884
+ }
1885
+
1886
+ /** @internal */
1887
+ export declare type InlineVisualizations = Record<string, {
1888
+ type: "metric" | "line" | "column";
1889
+ }>;
1890
+
1891
+ /**
1892
+ * @internal
1893
+ * @deprecated Use pieChartLoad and pieChartSave instead.
1894
+ */
1895
+ export declare interface IPieChartConfig {
1896
+ load: typeof pieChartLoad;
1897
+ save: typeof pieChartSave;
1898
+ DEFAULTS: ConfigDefaults<PieChartConfigProperties>;
1899
+ }
1900
+
1901
+ /**
1902
+ * @internal
1903
+ * @deprecated Use pyramidChartLoad and pyramidChartSave instead.
1904
+ */
1905
+ export declare interface IPyramidChartConfig {
1906
+ load: typeof pyramidChartLoad;
1907
+ save: typeof pyramidChartSave;
1908
+ DEFAULTS: ConfigDefaults<PyramidChartConfigProperties>;
1909
+ }
1910
+
1911
+ /**
1912
+ * @internal
1913
+ * @deprecated Use repeaterChartLoad and repeaterChartSave instead.
1914
+ */
1915
+ export declare interface IRepeaterChartConfig {
1916
+ load: typeof repeaterChartLoad;
1917
+ save: typeof repeaterChartSave;
1918
+ saveInlineVisualizations: typeof saveInlineVisualizations;
1919
+ DEFAULTS: ConfigDefaults<RepeaterChartConfigProperties>;
1920
+ }
1921
+
1922
+ /**
1923
+ * @internal
1924
+ * @deprecated Use sankeyChartLoad and sankeyChartSave instead.
1925
+ */
1926
+ export declare interface ISankeyChartConfig {
1927
+ load: typeof sankeyChartLoad;
1928
+ save: typeof sankeyChartSave;
1929
+ DEFAULTS: ConfigDefaults<SankeyChartConfigProperties>;
1930
+ }
1931
+
1932
+ /**
1933
+ * @internal
1934
+ * @deprecated Use scatterChartLoad and scatterChartSave instead.
1935
+ */
1936
+ export declare interface IScatterChartConfig {
1937
+ load: typeof scatterChartLoad;
1938
+ save: typeof scatterChartSave;
1939
+ DEFAULTS: ConfigDefaults<ScatterChartConfigProperties>;
1940
+ }
1941
+
1942
+ /** @public */
1943
+ export declare interface ISliceMeasureColumnWidthItem {
1944
+ sliceMeasureColumnWidthItem: ISliceMeasureColumnWidthItemBody;
1945
+ }
1946
+
1947
+ /** @public */
1948
+ export declare interface ISliceMeasureColumnWidthItemBody {
1949
+ width: ColumnWidth;
1950
+ locators: IMeasureColumnLocator[];
1951
+ }
1952
+
1953
+ /**
1954
+ * @internal
1955
+ * @deprecated Use tableLoad and tableSave instead.
1956
+ */
1957
+ export declare interface ITableConfig {
1958
+ load: typeof tableLoad;
1959
+ save: typeof tableSave;
1960
+ DEFAULTS: ConfigDefaults<TableConfigProperties>;
1961
+ }
1962
+
1963
+ /** @public */
1964
+ export declare interface ITotalColumnLocator {
1965
+ totalLocatorItem: ITotalColumnLocatorBody;
1966
+ }
1967
+
1968
+ /** @public */
1969
+ export declare interface ITotalColumnLocatorBody {
1970
+ attributeIdentifier: string;
1971
+ totalFunction: string;
1972
+ }
1973
+
1974
+ /**
1975
+ * @internal
1976
+ * @deprecated Use treemapChartLoad and treemapChartSave instead.
1977
+ */
1978
+ export declare interface ITreemapChartConfig {
1979
+ load: typeof treemapChartLoad;
1980
+ save: typeof treemapChartSave;
1981
+ DEFAULTS: ConfigDefaults<TreemapChartConfigProperties>;
1982
+ }
1983
+
1984
+ /**
1985
+ * @internal
1986
+ * @deprecated Use waterfallChartLoad and waterfallChartSave instead.
1987
+ */
1988
+ export declare interface IWaterfallChartConfig {
1989
+ load: typeof waterfallChartLoad;
1990
+ save: typeof waterfallChartSave;
1991
+ DEFAULTS: ConfigDefaults<WaterfallChartConfigProperties>;
1992
+ }
1993
+
1994
+ /** @public */
1995
+ export declare interface IWeakMeasureColumnWidthItem {
1996
+ measureColumnWidthItem: IWeakMeasureColumnWidthItemBody;
1997
+ }
1998
+
1999
+ /** @public */
2000
+ export declare interface IWeakMeasureColumnWidthItemBody {
2001
+ width: IAbsoluteColumnWidth;
2002
+ locator: IMeasureColumnLocator;
2003
+ }
2004
+
2005
+ /** @internal */
2006
+ export declare const LINE_CHART_DEFAULTS: ConfigDefaults<LineChartConfigProperties>;
2007
+
2008
+ /**
2009
+ * @internal
2010
+ * @deprecated Use lineChartLoad and lineChartSave instead.
2011
+ */
2012
+ export declare const lineChart: ILineChartConfig;
2013
+
2014
+ /** @internal */
2015
+ export declare type LineChartConfigProperties = {
2016
+ colorMapping: Array<ColorMapping>;
2017
+ continuousLine: {
2018
+ enabled: boolean;
2019
+ };
2020
+ distinctPointShapes: {
2021
+ enabled: boolean;
2022
+ pointShapeMapping?: Record<string, PointShapeSymbol>;
2023
+ };
1758
2024
  dataLabels: {
1759
- visible: "auto" | boolean | undefined;
1760
- style: "auto" | "backplate" | undefined;
1761
- } | undefined;
2025
+ visible: boolean | "auto";
2026
+ style: "auto" | "backplate";
2027
+ };
2028
+ dataPoints: {
2029
+ visible: boolean | "auto";
2030
+ };
1762
2031
  legend: {
1763
- enabled: boolean | undefined;
1764
- position: string | undefined;
1765
- } | undefined;
1766
- disableDrillDown: boolean | undefined;
1767
- disableAlerts: boolean | undefined;
1768
- disableScheduledExports: boolean | undefined;
1769
- } | undefined;
2032
+ enabled: boolean;
2033
+ position: "top" | "bottom" | "left" | "right" | "auto";
2034
+ };
2035
+ xaxis: {
2036
+ name: {
2037
+ visible: boolean;
2038
+ position: "center" | "left" | "right" | "auto";
2039
+ };
2040
+ labelsEnabled: boolean;
2041
+ rotation: "0" | "30" | "60" | "90" | "auto";
2042
+ visible: boolean;
2043
+ };
2044
+ yaxis: {
2045
+ format: "inherit" | "auto";
2046
+ max: number | string;
2047
+ min: number | string;
2048
+ name: {
2049
+ visible: boolean;
2050
+ position: "center" | "left" | "right" | "auto";
2051
+ };
2052
+ labelsEnabled: boolean;
2053
+ rotation: "0" | "30" | "60" | "90" | "auto";
2054
+ visible: boolean;
2055
+ };
2056
+ grid: {
2057
+ enabled: boolean;
2058
+ };
2059
+ forecast: {
2060
+ enabled: boolean;
2061
+ confidence: number;
2062
+ period: number;
2063
+ seasonal: boolean;
2064
+ };
2065
+ anomalies: {
2066
+ enabled: boolean;
2067
+ sensitivity: "low" | "medium" | "high";
2068
+ size: "small" | "medium" | "big";
2069
+ color: string | number;
2070
+ };
2071
+ disableDrillDown: boolean;
2072
+ disableAlerts: boolean;
2073
+ disableScheduledExports: boolean;
2074
+ thresholdMeasures: string[];
2075
+ thresholdExcludedMeasures: string[];
2076
+ };
1770
2077
 
1771
- declare function save_18(_fields: Visualisation["query"]["fields"] | undefined, config?: Visualisation["config"] | undefined): {
1772
- comparison: {
1773
- calculationType: string | undefined;
1774
- format: string | undefined;
1775
- enabled: boolean | undefined;
1776
- position: string | undefined;
1777
- isArrowEnabled: boolean | undefined;
1778
- labelConfig: {
1779
- isConditional: boolean | undefined;
1780
- unconditionalValue: string | undefined;
1781
- equals: string | undefined;
1782
- negative: string | undefined;
1783
- positive: string | undefined;
1784
- } | undefined;
1785
- colorConfig: {
1786
- disabled: boolean | undefined;
1787
- equals: {
1788
- type: "guid";
1789
- value: string;
1790
- } | {
1791
- type: "rgb";
1792
- value: {
1793
- r: number;
1794
- g: number;
1795
- b: number;
1796
- };
1797
- } | undefined;
1798
- negative: {
1799
- type: "guid";
1800
- value: string;
1801
- } | {
1802
- type: "rgb";
1803
- value: {
1804
- r: number;
1805
- g: number;
1806
- b: number;
1807
- };
1808
- } | undefined;
1809
- positive: {
1810
- type: "guid";
1811
- value: string;
1812
- } | {
1813
- type: "rgb";
1814
- value: {
1815
- r: number;
1816
- g: number;
1817
- b: number;
1818
- };
1819
- } | undefined;
1820
- } | undefined;
1821
- } | undefined;
1822
- disableAlerts: boolean | undefined;
1823
- disableScheduledExports: boolean | undefined;
1824
- } | undefined;
2078
+ /** @internal */
2079
+ export declare function lineChartLoad(props: VisualisationConfig<LineChartConfigProperties>): Pair<Scalar<string>, any> | null;
1825
2080
 
1826
- declare function save_19(_fields: Visualisation["query"]["fields"] | undefined, config: Visualisation["config"] | undefined, buckets?: Bucket[]): {
2081
+ /** @internal */
2082
+ export declare function lineChartSave(_fields: Visualisation["query"]["fields"] | undefined, config: Visualisation["config"] | undefined): {
1827
2083
  colorMapping: ColorMapping[] | undefined;
1828
2084
  continuousLine: {
1829
2085
  enabled: boolean | undefined;
@@ -1832,23 +2088,17 @@ declare function save_19(_fields: Visualisation["query"]["fields"] | undefined,
1832
2088
  enabled: boolean | undefined;
1833
2089
  pointShapeMapping: Record<string, PointShapeSymbol> | undefined;
1834
2090
  } | undefined;
1835
- chartFill: {
1836
- type: ChartFillType | undefined;
1837
- measureToPatternName: Record<string, PatternFillName> | undefined;
1838
- } | undefined;
1839
- dataPoints: {
1840
- visible: "auto" | boolean | undefined;
1841
- } | undefined;
1842
2091
  dataLabels: {
1843
2092
  visible: "auto" | boolean | undefined;
1844
2093
  style: "auto" | "backplate" | undefined;
1845
2094
  } | undefined;
2095
+ dataPoints: {
2096
+ visible: "auto" | boolean | undefined;
2097
+ } | undefined;
1846
2098
  legend: {
1847
2099
  enabled: boolean | undefined;
1848
2100
  position: string | undefined;
1849
2101
  } | undefined;
1850
- stackMeasuresToPercent: boolean | undefined;
1851
- stackMeasures: boolean | undefined;
1852
2102
  xaxis: {
1853
2103
  name: {
1854
2104
  position: string | undefined;
@@ -1858,7 +2108,6 @@ declare function save_19(_fields: Visualisation["query"]["fields"] | undefined,
1858
2108
  visible: boolean | undefined;
1859
2109
  labelsEnabled: boolean | undefined;
1860
2110
  } | undefined;
1861
- primaryChartType: "area" | "column" | "line" | undefined;
1862
2111
  yaxis: {
1863
2112
  format: string | undefined;
1864
2113
  max: string | number | undefined;
@@ -1871,24 +2120,21 @@ declare function save_19(_fields: Visualisation["query"]["fields"] | undefined,
1871
2120
  visible: boolean | undefined;
1872
2121
  labelsEnabled: boolean | undefined;
1873
2122
  } | undefined;
1874
- secondaryChartType: "area" | "column" | "line" | undefined;
1875
- secondary_yaxis: {
1876
- measures: string[] | undefined;
1877
- format: string | undefined;
1878
- max: string | number | undefined;
1879
- min: string | number | undefined;
1880
- name: {
1881
- position: string | undefined;
1882
- visible: boolean | undefined;
1883
- } | undefined;
1884
- rotation: string | undefined;
1885
- visible: boolean | undefined;
1886
- labelsEnabled: boolean | undefined;
1887
- } | undefined;
1888
- dualAxis: boolean | undefined;
1889
2123
  grid: {
1890
2124
  enabled: boolean | undefined;
1891
2125
  } | undefined;
2126
+ forecast: {
2127
+ enabled: boolean | undefined;
2128
+ confidence: number | undefined;
2129
+ period: number | undefined;
2130
+ seasonal: boolean | undefined;
2131
+ } | undefined;
2132
+ anomalies: {
2133
+ enabled: boolean | undefined;
2134
+ sensitivity: "high" | "low" | "medium" | undefined;
2135
+ size: "big" | "medium" | "small" | undefined;
2136
+ color: string | number | undefined;
2137
+ } | undefined;
1892
2138
  disableDrillDown: boolean | undefined;
1893
2139
  disableAlerts: boolean | undefined;
1894
2140
  disableScheduledExports: boolean | undefined;
@@ -1896,10 +2142,71 @@ declare function save_19(_fields: Visualisation["query"]["fields"] | undefined,
1896
2142
  thresholdExcludedMeasures: string[] | undefined;
1897
2143
  } | undefined;
1898
2144
 
1899
- declare function save_2(_fields: Visualisation["query"]["fields"] | undefined, config: Visualisation["config"] | undefined): {
2145
+ /** @public */
2146
+ export declare function loadColorMapping(mappings: Array<ColorMapping>): YAMLMap<keyof ListOfColors, Color>;
2147
+
2148
+ /** @public */
2149
+ export declare function loadColumnsWidth(widths: Array<ColumnWidthItem>): YAMLMap<keyof Width, any>[] | undefined;
2150
+
2151
+ /** @internal */
2152
+ export declare const MetricTypes: string[];
2153
+
2154
+ /** @internal */
2155
+ export declare type OverrideDashboardDefinition = Omit<IDashboardDefinition, "filterContext"> & {
2156
+ filterContextRef?: AfmObjectIdentifier;
2157
+ tabs?: DashboardTab[];
2158
+ activeTabLocalIdentifier?: string;
2159
+ };
2160
+
2161
+ /** @internal */
2162
+ export declare 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";
2163
+
2164
+ /** @public */
2165
+ declare type Permissions_2 = {
2166
+ [name: string]: {
2167
+ all?: boolean;
2168
+ users?: string[];
2169
+ user_groups?: string[];
2170
+ } | undefined;
2171
+ };
2172
+ export { Permissions_2 as Permissions }
2173
+
2174
+ /** @internal */
2175
+ export declare const PIE_CHART_DEFAULTS: ConfigDefaults<PieChartConfigProperties>;
2176
+
2177
+ /**
2178
+ * @internal
2179
+ * @deprecated Use pieChartLoad and pieChartSave instead.
2180
+ */
2181
+ export declare const pieChart: IPieChartConfig;
2182
+
2183
+ /** @internal */
2184
+ export declare type PieChartConfigProperties = {
2185
+ colorMapping: Array<ColorMapping>;
2186
+ dataLabels: {
2187
+ visible: boolean | "auto";
2188
+ style: "auto" | "backplate";
2189
+ };
2190
+ chartFill: {
2191
+ type: ChartFillType;
2192
+ measureToPatternName?: Record<string, PatternFillName>;
2193
+ };
2194
+ legend: {
2195
+ enabled: boolean;
2196
+ position: "top" | "bottom" | "left" | "right" | "auto";
2197
+ };
2198
+ disableDrillDown: boolean;
2199
+ disableAlerts: boolean;
2200
+ disableScheduledExports: boolean;
2201
+ };
2202
+
2203
+ /** @internal */
2204
+ export declare function pieChartLoad(props: VisualisationConfig<PieChartConfigProperties>): Pair<Scalar<string>, any> | null;
2205
+
2206
+ /** @internal */
2207
+ export declare function pieChartSave(_fields: Visualisation["query"]["fields"] | undefined, config: Visualisation["config"] | undefined): {
1900
2208
  colorMapping: ColorMapping[] | undefined;
1901
2209
  dataLabels: {
1902
- totalsVisible: "auto" | boolean | undefined;
1903
2210
  visible: "auto" | boolean | undefined;
1904
2211
  style: "auto" | "backplate" | undefined;
1905
2212
  } | undefined;
@@ -1911,83 +2218,103 @@ declare function save_2(_fields: Visualisation["query"]["fields"] | undefined, c
1911
2218
  enabled: boolean | undefined;
1912
2219
  position: string | undefined;
1913
2220
  } | undefined;
1914
- stackMeasuresToPercent: boolean | undefined;
1915
- stackMeasures: boolean | undefined;
1916
- xaxis: {
1917
- format: string | undefined;
1918
- max: string | number | undefined;
1919
- min: string | number | undefined;
1920
- name: {
1921
- position: string | undefined;
1922
- visible: boolean | undefined;
1923
- } | undefined;
1924
- rotation: string | undefined;
1925
- visible: boolean | undefined;
1926
- labelsEnabled: boolean | undefined;
1927
- } | undefined;
1928
- yaxis: {
1929
- name: {
1930
- position: string | undefined;
1931
- visible: boolean | undefined;
1932
- } | undefined;
1933
- rotation: string | undefined;
1934
- visible: boolean | undefined;
1935
- labelsEnabled: boolean | undefined;
1936
- } | undefined;
1937
- grid: {
1938
- enabled: boolean | undefined;
1939
- } | undefined;
1940
2221
  disableDrillDown: boolean | undefined;
1941
2222
  disableAlerts: boolean | undefined;
1942
2223
  disableScheduledExports: boolean | undefined;
1943
2224
  } | undefined;
1944
2225
 
1945
- declare function save_20(_fields: Visualisation["query"]["fields"] | undefined, config: Visualisation["config"] | undefined, positions: Array<{
1946
- longitude: string;
1947
- latitude: string;
1948
- }>): {
1949
- longitude: string;
1950
- latitude: string;
1951
- } | undefined;
2226
+ /** @internal */
2227
+ export declare const PluginTypes: string[];
1952
2228
 
1953
- declare function save_21(_fields: Visualisation["query"]["fields"] | undefined, config: Visualisation["config"] | undefined, _positions: Array<{
1954
- longitude: string;
1955
- latitude: string;
1956
- }>): {
1957
- colorMapping: ColorMapping[] | undefined;
2229
+ /** @internal */
2230
+ export declare type PointShapeSymbol = "circle" | "square" | "diamond" | "triangle" | "triangle-down";
2231
+
2232
+ /** @public */
2233
+ export declare type Profile = {
2234
+ host: string;
2235
+ token: string;
2236
+ workspace_id: string;
2237
+ data_source?: string;
2238
+ };
2239
+
2240
+ /** @internal */
2241
+ export declare const PYRAMID_CHART_DEFAULTS: ConfigDefaults<PyramidChartConfigProperties>;
2242
+
2243
+ /**
2244
+ * @internal
2245
+ * @deprecated Use pyramidChartLoad and pyramidChartSave instead.
2246
+ */
2247
+ export declare const pyramidChart: IPyramidChartConfig;
2248
+
2249
+ /** @internal */
2250
+ export declare type PyramidChartConfigProperties = {
2251
+ colorMapping: Array<ColorMapping>;
2252
+ dataLabels: {
2253
+ visible: boolean | "auto";
2254
+ style: "auto" | "backplate";
2255
+ };
2256
+ chartFill: {
2257
+ type: ChartFillType;
2258
+ measureToPatternName?: Record<string, PatternFillName>;
2259
+ };
1958
2260
  legend: {
1959
- enabled: boolean | undefined;
1960
- position: string | undefined;
1961
- } | undefined;
1962
- tooltipText: string | undefined;
1963
- basemap: string | undefined;
1964
- viewport: {
1965
- area: "auto" | "continent_af" | "continent_as" | "continent_au" | "continent_eu" | "continent_na" | "continent_sa" | "custom" | "world" | undefined;
1966
- navigation: {
1967
- pan: boolean | undefined;
1968
- zoom: boolean | undefined;
1969
- } | undefined;
1970
- } | undefined;
1971
- center: {
1972
- lat: number | undefined;
1973
- lng: number | undefined;
1974
- } | undefined;
1975
- zoom: number | undefined;
1976
- bounds: {
1977
- northEast: {
1978
- lat: number | undefined;
1979
- lng: number | undefined;
1980
- } | undefined;
1981
- southWest: {
1982
- lat: number | undefined;
1983
- lng: number | undefined;
1984
- } | undefined;
2261
+ enabled: boolean;
2262
+ position: "top" | "bottom" | "left" | "right" | "auto";
2263
+ };
2264
+ disableDrillDown: boolean;
2265
+ disableAlerts: boolean;
2266
+ disableScheduledExports: boolean;
2267
+ };
2268
+
2269
+ /** @internal */
2270
+ export declare function pyramidChartLoad(props: VisualisationConfig<PyramidChartConfigProperties>): Pair<Scalar<string>, any> | null;
2271
+
2272
+ /** @internal */
2273
+ export declare function pyramidChartSave(_fields: Visualisation["query"]["fields"] | undefined, config: Visualisation["config"] | undefined): {
2274
+ colorMapping: ColorMapping[] | undefined;
2275
+ dataLabels: {
2276
+ visible: "auto" | boolean | undefined;
2277
+ style: "auto" | "backplate" | undefined;
2278
+ } | undefined;
2279
+ chartFill: {
2280
+ type: ChartFillType | undefined;
2281
+ measureToPatternName: Record<string, PatternFillName> | undefined;
2282
+ } | undefined;
2283
+ legend: {
2284
+ enabled: boolean | undefined;
2285
+ position: string | undefined;
1985
2286
  } | undefined;
2287
+ disableDrillDown: boolean | undefined;
1986
2288
  disableAlerts: boolean | undefined;
1987
2289
  disableScheduledExports: boolean | undefined;
1988
2290
  } | undefined;
1989
2291
 
1990
- declare function save_22(fields: Visualisation["query"]["fields"] | undefined, config: Visualisation["config"] | undefined): {
2292
+ /** @internal */
2293
+ export declare const REPEATER_CHART_DEFAULTS: ConfigDefaults<RepeaterChartConfigProperties>;
2294
+
2295
+ /**
2296
+ * @internal
2297
+ * @deprecated Use repeaterChartLoad and repeaterChartSave instead.
2298
+ */
2299
+ export declare const repeaterChart: IRepeaterChartConfig;
2300
+
2301
+ /** @internal */
2302
+ export declare type RepeaterChartConfigProperties = {
2303
+ colorMapping: Array<ColorMapping>;
2304
+ columnWidths: Array<ColumnWidthItem>;
2305
+ cellImageSizing: "fit" | "fill";
2306
+ cellTextWrapping: "clip" | "wrap";
2307
+ cellVerticalAlign: "top" | "middle" | "bottom";
2308
+ rowHeight: "small" | "medium" | "large";
2309
+ disableAlerts: boolean;
2310
+ disableScheduledExports: boolean;
2311
+ };
2312
+
2313
+ /** @internal */
2314
+ export declare function repeaterChartLoad(props: VisualisationConfig<RepeaterChartConfigProperties>): Pair<Scalar<string>, any> | null;
2315
+
2316
+ /** @internal */
2317
+ export declare function repeaterChartSave(fields: Visualisation["query"]["fields"] | undefined, config: Visualisation["config"] | undefined): {
1991
2318
  columnWidths: ColumnWidthItem[] | undefined;
1992
2319
  colorMapping: ColorMapping[] | undefined;
1993
2320
  rowHeight: "large" | "medium" | "small" | undefined;
@@ -1998,73 +2325,129 @@ declare function save_22(fields: Visualisation["query"]["fields"] | undefined, c
1998
2325
  disableScheduledExports: boolean | undefined;
1999
2326
  } | undefined;
2000
2327
 
2001
- declare function save_3(_fields: Visualisation["query"]["fields"] | undefined, config: Visualisation["config"] | undefined): {
2328
+ /** @public */
2329
+ export declare function resolveIdFromFileName(fileName: FilePath): string;
2330
+
2331
+ /** @internal */
2332
+ export declare const SANKEY_CHART_DEFAULTS: ConfigDefaults<SankeyChartConfigProperties>;
2333
+
2334
+ /**
2335
+ * @internal
2336
+ * @deprecated Use sankeyChartLoad and sankeyChartSave instead.
2337
+ */
2338
+ export declare const sankeyChart: ISankeyChartConfig;
2339
+
2340
+ /** @internal */
2341
+ export declare type SankeyChartConfigProperties = {
2342
+ colorMapping: Array<ColorMapping>;
2343
+ dataLabels: {
2344
+ visible: boolean | "auto";
2345
+ style: "auto" | "backplate";
2346
+ };
2347
+ legend: {
2348
+ enabled: boolean;
2349
+ position: "top" | "bottom" | "left" | "right" | "auto";
2350
+ };
2351
+ disableDrillDown: boolean;
2352
+ disableAlerts: boolean;
2353
+ disableScheduledExports: boolean;
2354
+ };
2355
+
2356
+ /** @internal */
2357
+ export declare function sankeyChartLoad(props: VisualisationConfig<SankeyChartConfigProperties>): Pair<Scalar<string>, any> | null;
2358
+
2359
+ /** @internal */
2360
+ export declare function sankeyChartSave(_fields: Visualisation["query"]["fields"] | undefined, config: Visualisation["config"] | undefined): {
2002
2361
  colorMapping: ColorMapping[] | undefined;
2003
2362
  dataLabels: {
2004
- totalsVisible: "auto" | boolean | undefined;
2005
2363
  visible: "auto" | boolean | undefined;
2006
2364
  style: "auto" | "backplate" | undefined;
2007
2365
  } | undefined;
2008
- chartFill: {
2009
- type: ChartFillType | undefined;
2010
- measureToPatternName: Record<string, PatternFillName> | undefined;
2011
- } | undefined;
2012
2366
  legend: {
2013
2367
  enabled: boolean | undefined;
2014
2368
  position: string | undefined;
2015
2369
  } | undefined;
2016
- stackMeasuresToPercent: boolean | undefined;
2017
- stackMeasures: boolean | undefined;
2370
+ disableDrillDown: boolean | undefined;
2371
+ disableAlerts: boolean | undefined;
2372
+ disableScheduledExports: boolean | undefined;
2373
+ } | undefined;
2374
+
2375
+ /** @public */
2376
+ export declare function saveColorMapping(mapping: ListOfColors): Array<ColorMapping> | undefined;
2377
+
2378
+ /** @public */
2379
+ export declare function saveColumnWidths(fields: Visualisation["query"]["fields"], widths: Width[] | undefined): ColumnWidthItem[] | undefined;
2380
+
2381
+ /** @internal */
2382
+ export declare function saveInlineVisualizations(metrics?: Bucket[]): InlineVisualizations;
2383
+
2384
+ /** @internal */
2385
+ export declare const SCATTER_CHART_DEFAULTS: ConfigDefaults<ScatterChartConfigProperties>;
2386
+
2387
+ /**
2388
+ * @internal
2389
+ * @deprecated Use scatterChartLoad and scatterChartSave instead.
2390
+ */
2391
+ export declare const scatterChart: IScatterChartConfig;
2392
+
2393
+ /** @internal */
2394
+ export declare type ScatterChartConfigProperties = {
2395
+ colorMapping: Array<ColorMapping>;
2396
+ dataLabels: {
2397
+ visible: boolean | "auto";
2398
+ style: "auto" | "backplate";
2399
+ };
2018
2400
  xaxis: {
2401
+ format: "inherit" | "auto";
2402
+ max: number | string;
2403
+ min: number | string;
2019
2404
  name: {
2020
- position: string | undefined;
2021
- visible: boolean | undefined;
2022
- } | undefined;
2023
- rotation: string | undefined;
2024
- visible: boolean | undefined;
2025
- labelsEnabled: boolean | undefined;
2026
- } | undefined;
2405
+ visible: boolean;
2406
+ position: "center" | "left" | "right" | "auto";
2407
+ };
2408
+ labelsEnabled: boolean;
2409
+ rotation: "0" | "30" | "60" | "90" | "auto";
2410
+ visible: boolean;
2411
+ };
2027
2412
  yaxis: {
2028
- format: string | undefined;
2029
- max: string | number | undefined;
2030
- min: string | number | undefined;
2413
+ format: "inherit" | "auto";
2414
+ max: number | string;
2415
+ min: number | string;
2031
2416
  name: {
2032
- position: string | undefined;
2033
- visible: boolean | undefined;
2034
- } | undefined;
2035
- rotation: string | undefined;
2036
- visible: boolean | undefined;
2037
- labelsEnabled: boolean | undefined;
2038
- } | undefined;
2417
+ visible: boolean;
2418
+ position: "center" | "left" | "right" | "auto";
2419
+ };
2420
+ labelsEnabled: boolean;
2421
+ rotation: "0" | "30" | "60" | "90" | "auto";
2422
+ visible: boolean;
2423
+ };
2039
2424
  grid: {
2040
- enabled: boolean | undefined;
2041
- } | undefined;
2042
- disableDrillDown: boolean | undefined;
2043
- disableAlerts: boolean | undefined;
2044
- disableScheduledExports: boolean | undefined;
2045
- } | undefined;
2425
+ enabled: boolean;
2426
+ };
2427
+ clustering: {
2428
+ enabled: boolean;
2429
+ numberOfClusters: number;
2430
+ threshold: number;
2431
+ };
2432
+ disableDrillDown: boolean;
2433
+ disableAlerts: boolean;
2434
+ disableScheduledExports: boolean;
2435
+ };
2436
+
2437
+ /** @internal */
2438
+ export declare function scatterChartLoad(props: VisualisationConfig<ScatterChartConfigProperties>): Pair<Scalar<string>, any> | null;
2046
2439
 
2047
- declare function save_4(_fields: Visualisation["query"]["fields"] | undefined, config: Visualisation["config"] | undefined): {
2440
+ /** @internal */
2441
+ export declare function scatterChartSave(_fields: Visualisation["query"]["fields"] | undefined, config: Visualisation["config"] | undefined): {
2048
2442
  colorMapping: ColorMapping[] | undefined;
2049
- continuousLine: {
2050
- enabled: boolean | undefined;
2051
- } | undefined;
2052
- distinctPointShapes: {
2053
- enabled: boolean | undefined;
2054
- pointShapeMapping: Record<string, PointShapeSymbol> | undefined;
2055
- } | undefined;
2056
2443
  dataLabels: {
2057
2444
  visible: "auto" | boolean | undefined;
2058
2445
  style: "auto" | "backplate" | undefined;
2059
2446
  } | undefined;
2060
- dataPoints: {
2061
- visible: "auto" | boolean | undefined;
2062
- } | undefined;
2063
- legend: {
2064
- enabled: boolean | undefined;
2065
- position: string | undefined;
2066
- } | undefined;
2067
2447
  xaxis: {
2448
+ format: string | undefined;
2449
+ max: string | number | undefined;
2450
+ min: string | number | undefined;
2068
2451
  name: {
2069
2452
  position: string | undefined;
2070
2453
  visible: boolean | undefined;
@@ -2088,126 +2471,247 @@ declare function save_4(_fields: Visualisation["query"]["fields"] | undefined, c
2088
2471
  grid: {
2089
2472
  enabled: boolean | undefined;
2090
2473
  } | undefined;
2091
- forecast: {
2092
- enabled: boolean | undefined;
2093
- confidence: number | undefined;
2094
- period: number | undefined;
2095
- seasonal: boolean | undefined;
2096
- } | undefined;
2097
- anomalies: {
2474
+ clustering: {
2098
2475
  enabled: boolean | undefined;
2099
- sensitivity: "high" | "low" | "medium" | undefined;
2100
- size: "big" | "medium" | "small" | undefined;
2101
- color: string | number | undefined;
2476
+ numberOfClusters: number | undefined;
2477
+ threshold: number | undefined;
2102
2478
  } | undefined;
2103
2479
  disableDrillDown: boolean | undefined;
2104
2480
  disableAlerts: boolean | undefined;
2105
2481
  disableScheduledExports: boolean | undefined;
2106
- thresholdMeasures: string[] | undefined;
2107
- thresholdExcludedMeasures: string[] | undefined;
2108
2482
  } | undefined;
2109
2483
 
2110
- declare function save_5(_fields: Visualisation["query"]["fields"] | undefined, config: Visualisation["config"] | undefined): {
2484
+ /**
2485
+ * @internal
2486
+ * @deprecated Use tableLoad and tableSave instead.
2487
+ */
2488
+ export declare const table: ITableConfig;
2489
+
2490
+ /** @internal */
2491
+ export declare const TABLE_DEFAULTS: ConfigDefaults<TableConfigProperties>;
2492
+
2493
+ /** @internal */
2494
+ export declare type TableConfigProperties = {
2495
+ columnWidths: Array<ColumnWidthItem>;
2496
+ measureGroupDimension: "columns" | "rows";
2497
+ columnHeadersPosition: "top" | "left";
2498
+ disableDrillDown: boolean;
2499
+ disableDrillIntoURL: boolean;
2500
+ disableAlerts: boolean;
2501
+ disableScheduledExports: boolean;
2502
+ textWrapping: {
2503
+ wrapText: boolean;
2504
+ wrapHeaderText: boolean;
2505
+ columnOverrides: Array<{
2506
+ locators: ColumnLocator[];
2507
+ wrapText: boolean;
2508
+ wrapHeaderText: boolean;
2509
+ matchType: "column" | "pivotGroup";
2510
+ }>;
2511
+ };
2512
+ enableAccessibility: boolean;
2513
+ pagination: {
2514
+ enabled: boolean;
2515
+ };
2516
+ pageSize: number;
2517
+ grandTotalsPosition: "pinnedBottom" | "pinnedTop" | "bottom" | "top";
2518
+ };
2519
+
2520
+ /** @internal */
2521
+ export declare function tableLoad(props: VisualisationConfig<TableConfigProperties>): Pair<Scalar<string>, any> | null;
2522
+
2523
+ /** @internal */
2524
+ export declare function tableSave(fields: Visualisation["query"]["fields"] | undefined, config: Visualisation["config"] | undefined): {
2525
+ columnWidths: ColumnWidthItem[] | undefined;
2526
+ columnHeadersPosition: string | undefined;
2527
+ measureGroupDimension: string | undefined;
2528
+ disableDrillDown: boolean | undefined;
2529
+ disableDrillIntoURL: boolean | undefined;
2530
+ disableAlerts: boolean | undefined;
2531
+ disableScheduledExports: boolean | undefined;
2532
+ textWrapping: {
2533
+ wrapText: boolean;
2534
+ wrapHeaderText: boolean;
2535
+ columnOverrides: {
2536
+ locators: ColumnLocator[];
2537
+ wrapText: boolean;
2538
+ wrapHeaderText: boolean;
2539
+ matchType: "column" | "pivotGroup";
2540
+ }[];
2541
+ } | undefined;
2542
+ enableAccessibility: boolean | undefined;
2543
+ pagination: {
2544
+ enabled: boolean;
2545
+ } | undefined;
2546
+ pageSize: number | undefined;
2547
+ grandTotalsPosition: "bottom" | "pinnedBottom" | "pinnedTop" | "top" | undefined;
2548
+ } | undefined;
2549
+
2550
+ /** @public */
2551
+ export declare const toDeclarativePermissions: (permissions?: {
2552
+ VIEW?: Permission | undefined;
2553
+ EDIT?: Permission | undefined;
2554
+ SHARE?: Permission | undefined;
2555
+ } | undefined) => [GenericPermission[], GenericPermission[]];
2556
+
2557
+ /** @public */
2558
+ export declare type ToExecutionResults = {
2559
+ execution: AfmExecution;
2560
+ fields: Record<string, {
2561
+ title?: string;
2562
+ }>;
2563
+ sorting: Record<string, "ASC" | "DESC">;
2564
+ };
2565
+
2566
+ /** @internal */
2567
+ export declare const TREEMAP_CHART_DEFAULTS: ConfigDefaults<TreemapChartConfigProperties>;
2568
+
2569
+ /**
2570
+ * @internal
2571
+ * @deprecated Use treemapChartLoad and treemapChartSave instead.
2572
+ */
2573
+ export declare const treemapChart: ITreemapChartConfig;
2574
+
2575
+ /** @internal */
2576
+ export declare type TreemapChartConfigProperties = {
2577
+ colorMapping: Array<ColorMapping>;
2578
+ dataLabels: {
2579
+ visible: boolean | "auto";
2580
+ style: "auto" | "backplate";
2581
+ };
2582
+ chartFill: {
2583
+ type: ChartFillType;
2584
+ measureToPatternName?: Record<string, PatternFillName>;
2585
+ };
2586
+ legend: {
2587
+ enabled: boolean;
2588
+ position: "top" | "bottom" | "left" | "right" | "auto";
2589
+ };
2590
+ disableDrillDown: boolean;
2591
+ disableAlerts: boolean;
2592
+ disableScheduledExports: boolean;
2593
+ };
2594
+
2595
+ /** @internal */
2596
+ export declare function treemapChartLoad(props: VisualisationConfig<TreemapChartConfigProperties>): Pair<Scalar<string>, any> | null;
2597
+
2598
+ /** @internal */
2599
+ export declare function treemapChartSave(_fields: Visualisation["query"]["fields"] | undefined, config: Visualisation["config"] | undefined): {
2111
2600
  colorMapping: ColorMapping[] | undefined;
2112
- distinctPointShapes: {
2113
- enabled: boolean | undefined;
2114
- pointShapeMapping: Record<string, PointShapeSymbol> | undefined;
2115
- } | undefined;
2116
- chartFill: {
2117
- type: ChartFillType | undefined;
2118
- measureToPatternName: Record<string, PatternFillName> | undefined;
2119
- } | undefined;
2120
2601
  dataLabels: {
2121
2602
  visible: "auto" | boolean | undefined;
2122
2603
  style: "auto" | "backplate" | undefined;
2123
2604
  } | undefined;
2124
- dataPoints: {
2125
- visible: "auto" | boolean | undefined;
2605
+ chartFill: {
2606
+ type: ChartFillType | undefined;
2607
+ measureToPatternName: Record<string, PatternFillName> | undefined;
2126
2608
  } | undefined;
2127
2609
  legend: {
2128
2610
  enabled: boolean | undefined;
2129
2611
  position: string | undefined;
2130
2612
  } | undefined;
2131
- stackMeasuresToPercent: boolean | undefined;
2132
- stackMeasures: boolean | undefined;
2133
- xaxis: {
2134
- name: {
2135
- position: string | undefined;
2136
- visible: boolean | undefined;
2137
- } | undefined;
2138
- rotation: string | undefined;
2139
- visible: boolean | undefined;
2140
- labelsEnabled: boolean | undefined;
2141
- } | undefined;
2142
- yaxis: {
2143
- format: string | undefined;
2144
- max: string | number | undefined;
2145
- min: string | number | undefined;
2146
- name: {
2147
- position: string | undefined;
2148
- visible: boolean | undefined;
2149
- } | undefined;
2150
- rotation: string | undefined;
2151
- visible: boolean | undefined;
2152
- labelsEnabled: boolean | undefined;
2153
- } | undefined;
2154
- grid: {
2155
- enabled: boolean | undefined;
2156
- } | undefined;
2157
2613
  disableDrillDown: boolean | undefined;
2158
2614
  disableAlerts: boolean | undefined;
2159
2615
  disableScheduledExports: boolean | undefined;
2160
2616
  } | undefined;
2161
2617
 
2162
- declare function save_6(_fields: Visualisation["query"]["fields"] | undefined, config: Visualisation["config"] | undefined): {
2163
- colorMapping: ColorMapping[] | undefined;
2618
+ /** @public */
2619
+ export declare type ValueType = "string" | "bool" | "number" | "bool_auto" | "array";
2620
+
2621
+ /** @public */
2622
+ export declare type VisualisationConfig<T> = {
2623
+ controls?: T;
2624
+ };
2625
+
2626
+ /** @internal */
2627
+ export declare type VisualisationDefinition = Pick<IInsight["insight"], "visualizationUrl" | "properties" | "filters" | "buckets" | "sorts" | "attributeFilterConfigs"> & {
2628
+ version: string;
2629
+ };
2630
+
2631
+ /** @internal */
2632
+ export declare const VisualisationsTypes: string[];
2633
+
2634
+ /** @internal */
2635
+ export declare const WATERFALL_CHART_DEFAULTS: ConfigDefaults<WaterfallChartConfigProperties>;
2636
+
2637
+ /**
2638
+ * @internal
2639
+ * @deprecated Use waterfallChartLoad and waterfallChartSave instead.
2640
+ */
2641
+ export declare const waterfallChart: IWaterfallChartConfig;
2642
+
2643
+ /** @internal */
2644
+ export declare type WaterfallChartConfigProperties = {
2645
+ colorMapping: Array<ColorMapping>;
2164
2646
  dataLabels: {
2165
- visible: "auto" | boolean | undefined;
2166
- style: "auto" | "backplate" | undefined;
2167
- } | undefined;
2647
+ visible: boolean | "auto";
2648
+ style: "auto" | "backplate";
2649
+ };
2650
+ chartFill: {
2651
+ type: ChartFillType;
2652
+ measureToPatternName?: Record<string, PatternFillName>;
2653
+ };
2654
+ orientation: {
2655
+ position: "horizontal" | "vertical";
2656
+ };
2657
+ total: {
2658
+ enabled: boolean;
2659
+ name: string;
2660
+ };
2661
+ legend: {
2662
+ enabled: boolean;
2663
+ position: "top" | "bottom" | "left" | "right" | "auto";
2664
+ };
2168
2665
  xaxis: {
2169
- format: string | undefined;
2170
- max: string | number | undefined;
2171
- min: string | number | undefined;
2666
+ format: "inherit" | "auto";
2667
+ max: number | string;
2668
+ min: number | string;
2172
2669
  name: {
2173
- position: string | undefined;
2174
- visible: boolean | undefined;
2175
- } | undefined;
2176
- rotation: string | undefined;
2177
- visible: boolean | undefined;
2178
- labelsEnabled: boolean | undefined;
2179
- } | undefined;
2670
+ visible: boolean;
2671
+ position: "center" | "left" | "right" | "auto";
2672
+ };
2673
+ labelsEnabled: boolean;
2674
+ rotation: "0" | "30" | "60" | "90" | "auto";
2675
+ visible: boolean;
2676
+ };
2180
2677
  yaxis: {
2181
- format: string | undefined;
2182
- max: string | number | undefined;
2183
- min: string | number | undefined;
2184
2678
  name: {
2185
- position: string | undefined;
2186
- visible: boolean | undefined;
2187
- } | undefined;
2188
- rotation: string | undefined;
2189
- visible: boolean | undefined;
2190
- labelsEnabled: boolean | undefined;
2191
- } | undefined;
2679
+ visible: boolean;
2680
+ position: "center" | "left" | "right" | "auto";
2681
+ };
2682
+ labelsEnabled: boolean;
2683
+ rotation: "0" | "30" | "60" | "90" | "auto";
2684
+ visible: boolean;
2685
+ };
2192
2686
  grid: {
2193
- enabled: boolean | undefined;
2194
- } | undefined;
2195
- clustering: {
2196
- enabled: boolean | undefined;
2197
- numberOfClusters: number | undefined;
2198
- threshold: number | undefined;
2199
- } | undefined;
2200
- disableDrillDown: boolean | undefined;
2201
- disableAlerts: boolean | undefined;
2202
- disableScheduledExports: boolean | undefined;
2203
- } | undefined;
2687
+ enabled: boolean;
2688
+ };
2689
+ disableDrillDown: boolean;
2690
+ disableAlerts: boolean;
2691
+ disableScheduledExports: boolean;
2692
+ };
2693
+
2694
+ /** @internal */
2695
+ export declare function waterfallChartLoad(props: VisualisationConfig<WaterfallChartConfigProperties>): Pair<Scalar<string>, any> | null;
2204
2696
 
2205
- declare function save_7(_fields: Visualisation["query"]["fields"] | undefined, config: Visualisation["config"] | undefined): {
2697
+ /** @internal */
2698
+ export declare function waterfallChartSave(_fields: Visualisation["query"]["fields"] | undefined, config: Visualisation["config"] | undefined): {
2206
2699
  colorMapping: ColorMapping[] | undefined;
2207
2700
  dataLabels: {
2208
2701
  visible: "auto" | boolean | undefined;
2209
2702
  style: "auto" | "backplate" | undefined;
2210
2703
  } | undefined;
2704
+ chartFill: {
2705
+ type: ChartFillType | undefined;
2706
+ measureToPatternName: Record<string, PatternFillName> | undefined;
2707
+ } | undefined;
2708
+ orientation: {
2709
+ position: string | undefined;
2710
+ } | undefined;
2711
+ total: {
2712
+ enabled: boolean | undefined;
2713
+ name: string | undefined;
2714
+ } | undefined;
2211
2715
  legend: {
2212
2716
  enabled: boolean | undefined;
2213
2717
  position: string | undefined;
@@ -2225,9 +2729,6 @@ declare function save_7(_fields: Visualisation["query"]["fields"] | undefined, c
2225
2729
  labelsEnabled: boolean | undefined;
2226
2730
  } | undefined;
2227
2731
  yaxis: {
2228
- format: string | undefined;
2229
- max: string | number | undefined;
2230
- min: string | number | undefined;
2231
2732
  name: {
2232
2733
  position: string | undefined;
2233
2734
  visible: boolean | undefined;
@@ -2244,113 +2745,32 @@ declare function save_7(_fields: Visualisation["query"]["fields"] | undefined, c
2244
2745
  disableScheduledExports: boolean | undefined;
2245
2746
  } | undefined;
2246
2747
 
2247
- declare function save_8(_fields: Visualisation["query"]["fields"] | undefined, config: Visualisation["config"] | undefined): {
2248
- colorMapping: ColorMapping[] | undefined;
2249
- dataLabels: {
2250
- visible: "auto" | boolean | undefined;
2251
- style: "auto" | "backplate" | undefined;
2252
- } | undefined;
2253
- chartFill: {
2254
- type: ChartFillType | undefined;
2255
- measureToPatternName: Record<string, PatternFillName> | undefined;
2256
- } | undefined;
2257
- legend: {
2258
- enabled: boolean | undefined;
2259
- position: string | undefined;
2260
- } | undefined;
2261
- disableDrillDown: boolean | undefined;
2262
- disableAlerts: boolean | undefined;
2263
- disableScheduledExports: boolean | undefined;
2264
- } | undefined;
2265
-
2266
- declare function save_9(_fields: Visualisation["query"]["fields"] | undefined, config: Visualisation["config"] | undefined): {
2267
- colorMapping: ColorMapping[] | undefined;
2268
- dataLabels: {
2269
- visible: "auto" | boolean | undefined;
2270
- style: "auto" | "backplate" | undefined;
2271
- } | undefined;
2272
- chartFill: {
2273
- type: ChartFillType | undefined;
2274
- measureToPatternName: Record<string, PatternFillName> | undefined;
2275
- } | undefined;
2276
- legend: {
2277
- enabled: boolean | undefined;
2278
- position: string | undefined;
2279
- } | undefined;
2280
- disableDrillDown: boolean | undefined;
2281
- disableAlerts: boolean | undefined;
2282
- disableScheduledExports: boolean | undefined;
2283
- } | undefined;
2284
-
2285
- /** @public */
2286
- export declare function saveColorMapping(mapping: ListOfColors): Array<ColorMapping> | undefined;
2287
-
2288
- /** @public */
2289
- export declare function saveColumnWidths(fields: Visualisation["query"]["fields"], widths: Width[] | undefined): ColumnWidthItem[] | undefined;
2290
-
2291
- declare function saveInlineVisualizations(metrics?: Bucket[]): InlineVisualizations;
2292
-
2293
- export declare const scatterChart: {
2294
- load: typeof load_6;
2295
- save: typeof save_6;
2296
- DEFAULTS: ConfigDefaults<DefaultProperties_6>;
2297
- };
2298
-
2299
- declare type Sorts_2 = {
2300
- sortsArray: YAMLMap[];
2301
- };
2302
-
2303
- export declare const table: {
2304
- load: typeof load;
2305
- save: typeof save;
2306
- DEFAULTS: ConfigDefaults<DefaultProperties>;
2307
- };
2308
-
2309
- /** @public */
2310
- export declare const toDeclarativePermissions: (permissions?: {
2311
- VIEW?: Permission | undefined;
2312
- EDIT?: Permission | undefined;
2313
- SHARE?: Permission | undefined;
2314
- } | undefined) => [GenericPermission[], GenericPermission[]];
2315
-
2316
- /** @public */
2317
- export declare type ToExecutionResults = {
2318
- execution: AfmExecution;
2319
- fields: Record<string, {
2320
- title?: string;
2321
- }>;
2322
- sorting: Record<string, "ASC" | "DESC">;
2323
- };
2324
-
2325
- export declare const treemapChart: {
2326
- load: typeof load_10;
2327
- save: typeof save_10;
2328
- DEFAULTS: ConfigDefaults<DefaultProperties_10>;
2329
- };
2330
-
2331
2748
  /** @public */
2332
- export declare type ValueType = "string" | "bool" | "number" | "bool_auto" | "array";
2333
-
2334
- /** @public */
2335
- export declare type VisualisationConfig<T> = {
2336
- controls?: T;
2337
- };
2749
+ export declare function yamlAttributeHierarchyToDeclarative(input: AttributeHierarchy): DeclarativeAttributeHierarchy;
2338
2750
 
2339
- declare type VisualisationDefinition = Pick<IInsight["insight"], "visualizationUrl" | "properties" | "filters" | "buckets" | "sorts" | "attributeFilterConfigs"> & {
2340
- version: string;
2751
+ /** @internal */
2752
+ export declare type YamlBucketGroup = {
2753
+ type: BucketsType;
2754
+ items: YamlBucketGroupItems;
2341
2755
  };
2342
2756
 
2343
- export declare const VisualisationsTypes: string[];
2757
+ /** @internal */
2758
+ export declare type YamlBucketGroupItems = Array<{
2759
+ field: string;
2760
+ format?: string;
2761
+ totals?: YAMLMap[];
2762
+ axis?: "primary" | "secondary";
2763
+ display_as?: "metric" | "line" | "column";
2764
+ } | null>;
2344
2765
 
2345
- export declare const waterfallChart: {
2346
- load: typeof load_15;
2347
- save: typeof save_15;
2348
- DEFAULTS: ConfigDefaults<DefaultProperties_15>;
2766
+ /** @internal */
2767
+ export declare type YamlBuckets = {
2768
+ fieldsMap: YAMLMap;
2769
+ groups: YamlBucketGroup[];
2770
+ postProcessors: YamlPostProcessors;
2349
2771
  };
2350
2772
 
2351
- /** @public */
2352
- export declare function yamlAttributeHierarchyToDeclarative(input: AttributeHierarchy): DeclarativeAttributeHierarchy;
2353
-
2773
+ /** @internal */
2354
2774
  export declare function yamlBucketsToDeclarative(entities: ExportEntities, input: Visualisation): {
2355
2775
  buckets: VisualisationDefinition["buckets"];
2356
2776
  positions: Array<{
@@ -2380,6 +2800,13 @@ export declare function yamlDatasetToDeclarative(entities: ExportEntities, input
2380
2800
  /** @public */
2381
2801
  export declare function yamlDateDatesetToDeclarative(input: DateDataset): DeclarativeDateDataset;
2382
2802
 
2803
+ /** @internal */
2804
+ export declare type YamlFieldData = {
2805
+ format?: string;
2806
+ axis?: "primary" | "secondary";
2807
+ };
2808
+
2809
+ /** @internal */
2383
2810
  export declare function yamlFilterContextToDeclarative(baseId: string, yamlFilters: DashboardFilters | undefined): {
2384
2811
  filterContext: DeclarativeFilterContext;
2385
2812
  dateFilterConfig: IDashboardDateFilterConfig | undefined;
@@ -2389,21 +2816,45 @@ export declare function yamlFilterContextToDeclarative(baseId: string, yamlFilte
2389
2816
  filterGroupsConfig: IDashboardFilterGroupsConfig | undefined;
2390
2817
  };
2391
2818
 
2819
+ /** @internal */
2820
+ export declare type YamlFilterMapEntry = {
2821
+ yaml: YAMLMap;
2822
+ filter: IFilter;
2823
+ };
2824
+
2825
+ /** @internal */
2826
+ export declare type YamlFilters = {
2827
+ filtersMap: Record<string, YamlFilterMapEntry>;
2828
+ filtersArray: YAMLMap;
2829
+ };
2830
+
2831
+ /** @internal */
2392
2832
  export declare function yamlFiltersToDeclarative(entities: ExportEntities, filters_by: QueryFilters | Filter[] | undefined, attributeFilterConfigs?: IAttributeFilterConfigs): {
2393
2833
  filters: IFilter[];
2394
2834
  attributeFilterConfigs: IAttributeFilterConfigs | undefined;
2395
2835
  };
2396
2836
 
2837
+ /** @internal */
2397
2838
  export declare function yamlInteractionToDeclarative(entities: ExportEntities, visualisation: string, input: Interaction): IDrillToInsight | IDrillToDashboard | IDrillToCustomUrl | IDrillToAttributeUrl | null;
2398
2839
 
2399
2840
  /** @public */
2400
2841
  export declare function yamlMetricToDeclarative(input: Metric): DeclarativeMetric;
2401
2842
 
2843
+ /** @internal */
2402
2844
  export declare function yamlPluginsToDeclarative(plugins: Dashboard["plugins"]): IDashboardPluginLink[] | undefined;
2403
2845
 
2404
2846
  /** @public */
2405
2847
  export declare function yamlPluginToDeclarative(input: Plugin_2): DeclarativeDashboardPlugin;
2406
2848
 
2849
+ /** @internal */
2850
+ export declare type YamlPostProcessors = {
2851
+ filters: Array<{
2852
+ item: YAMLMap;
2853
+ filters: IFilter[];
2854
+ }>;
2855
+ };
2856
+
2857
+ /** @internal */
2407
2858
  export declare function yamlReportToDeclarative(entities: ExportEntities, input: Visualisation): {
2408
2859
  buckets: VisualisationDefinition["buckets"];
2409
2860
  sorts: VisualisationDefinition["sorts"];
@@ -2415,8 +2866,15 @@ export declare function yamlReportToDeclarative(entities: ExportEntities, input:
2415
2866
  attributeFilterConfigs?: IAttributeFilterConfigs;
2416
2867
  };
2417
2868
 
2869
+ /** @internal */
2418
2870
  export declare function yamlReportTotalToDeclarative(totals: Total[] | undefined, attributeIdentifier: string): ITotal[];
2419
2871
 
2872
+ /** @internal */
2873
+ export declare type YamlSorts = {
2874
+ sortsArray: YAMLMap[];
2875
+ };
2876
+
2877
+ /** @internal */
2420
2878
  export declare function yamlSortsToDeclarative(sort_by: Sorts | undefined, fields: Visualisation["query"]["fields"]): ISortItem[];
2421
2879
 
2422
2880
  /** @public */
@@ -2425,8 +2883,10 @@ export declare function yamlVisualisationToDeclarative(entities: ExportEntities,
2425
2883
  /** @public */
2426
2884
  export declare function yamlVisualisationToMetadataObject(entities: ExportEntities, input: Visualisation): JsonApiVisualizationObjectOut;
2427
2885
 
2886
+ /** @internal */
2428
2887
  export declare function yamlWidgetItemToDeclarative(entities: ExportEntities, input: Widget, enableSectionHeaders?: boolean): DashboardWidget | null;
2429
2888
 
2889
+ /** @internal */
2430
2890
  export declare function yamlWidgetToDeclarative(entities: ExportEntities, input: VisualisationWidget | RichTextWidget | VisualizationSwitcherWidget | ContainerWidget, enableSectionHeaders?: boolean): DashboardWidget["widget"];
2431
2891
 
2432
2892
  export { }