@vizzly/services 0.8.1 → 0.8.2-dev-4ac76b0195bc8bd9f3866e4cdcdac08e26caeff3

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 (86) hide show
  1. package/dist/index.js +1 -1
  2. package/dist/services/src/Services/APIServices.d.ts +7 -5
  3. package/dist/services/src/Services/CellServices.d.ts +1 -1
  4. package/dist/services/src/Services/DashboardServices.d.ts +2 -2
  5. package/dist/services/src/Services/HeaderServices.d.ts +1 -1
  6. package/dist/services/src/Services/ViewServices.d.ts +1 -1
  7. package/dist/shared-logic/src/AI/types.d.ts +2 -2
  8. package/dist/shared-logic/src/AdditionalFilter/types.d.ts +15 -15
  9. package/dist/shared-logic/src/Aggregate/Aggregate.d.ts +2 -0
  10. package/dist/shared-logic/src/Aggregate/types.d.ts +2 -2
  11. package/dist/shared-logic/src/ApiConfig/ApiConfig.d.ts +1 -1
  12. package/dist/shared-logic/src/BasicTable/index.d.ts +1 -1
  13. package/dist/shared-logic/src/Callbacks/types.d.ts +6 -6
  14. package/dist/shared-logic/src/Component/dumpable.d.ts +2 -2
  15. package/dist/shared-logic/src/Component/types.d.ts +17 -9
  16. package/dist/shared-logic/src/ComponentInterface/types/ComponentInterfaceConfig.d.ts +1 -1
  17. package/dist/shared-logic/src/ComponentInterface/types/namespaces.types.d.ts +6 -6
  18. package/dist/shared-logic/src/ComponentInterface/types.d.ts +1 -1
  19. package/dist/shared-logic/src/ConditionalFormatting/ConditionalFormatting.d.ts +1 -1
  20. package/dist/shared-logic/src/CustomField/Rules/types.d.ts +1 -1
  21. package/dist/shared-logic/src/CustomField/types.d.ts +18 -18
  22. package/dist/shared-logic/src/Dashboard/fromRaw.d.ts +2 -2
  23. package/dist/shared-logic/src/Dashboard/types.d.ts +2 -2
  24. package/dist/shared-logic/src/DashboardAPI/dashboardAPI/creating.d.ts +1 -1
  25. package/dist/shared-logic/src/DashboardAPI/dashboardAPI/updating.d.ts +2 -0
  26. package/dist/shared-logic/src/DashboardAPI/dataConfigurationAndIdentity.d.ts +1 -1
  27. package/dist/shared-logic/src/DashboardAPI/dataSets.d.ts +1 -1
  28. package/dist/shared-logic/src/DashboardAPI/types.d.ts +2 -2
  29. package/dist/shared-logic/src/DashboardPermission/types.d.ts +2 -2
  30. package/dist/shared-logic/src/DataPanelConfig/types.d.ts +10 -10
  31. package/dist/shared-logic/src/DataSet/newField.d.ts +2 -2
  32. package/dist/shared-logic/src/DataSet/types.d.ts +2 -2
  33. package/dist/shared-logic/src/DataTable/types.d.ts +5 -5
  34. package/dist/shared-logic/src/DateTime/types.d.ts +2 -2
  35. package/dist/shared-logic/src/DatumKey/DatumKey.d.ts +3 -3
  36. package/dist/shared-logic/src/Display/Display.d.ts +1 -1
  37. package/dist/shared-logic/src/Display/dumpable.d.ts +1 -1
  38. package/dist/shared-logic/src/Display/types.d.ts +5 -5
  39. package/dist/shared-logic/src/Display/upcast.d.ts +1 -1
  40. package/dist/shared-logic/src/Field/Field.d.ts +2 -2
  41. package/dist/shared-logic/src/Field/types.d.ts +6 -6
  42. package/dist/shared-logic/src/FormatPanelConfig/types.d.ts +14 -14
  43. package/dist/shared-logic/src/FormattingRule/types.d.ts +1 -1
  44. package/dist/shared-logic/src/Functions/types.d.ts +2 -2
  45. package/dist/shared-logic/src/GlobalFilter/types.d.ts +3 -3
  46. package/dist/shared-logic/src/IdentityConfig/types.d.ts +7 -7
  47. package/dist/shared-logic/src/JSQueryEngine/types.d.ts +8 -8
  48. package/dist/shared-logic/src/Logger/Logger.d.ts +2 -0
  49. package/dist/shared-logic/src/Logger/types.d.ts +1 -1
  50. package/dist/shared-logic/src/Parameters/index.d.ts +1 -1
  51. package/dist/shared-logic/src/Progress/types.d.ts +1 -1
  52. package/dist/shared-logic/src/Project/types.d.ts +4 -4
  53. package/dist/shared-logic/src/Query/Query.d.ts +2 -2
  54. package/dist/shared-logic/src/Query/types.d.ts +7 -7
  55. package/dist/shared-logic/src/Query/validate.d.ts +2 -1
  56. package/dist/shared-logic/src/QueryAttributes/types.d.ts +3 -3
  57. package/dist/shared-logic/src/QueryEngineConfig/redshift.d.ts +2 -0
  58. package/dist/shared-logic/src/QueryEngineConfig/types.d.ts +3 -3
  59. package/dist/shared-logic/src/Report/types.d.ts +1 -1
  60. package/dist/shared-logic/src/Result/types.d.ts +1 -1
  61. package/dist/shared-logic/src/SingleStat/types.d.ts +2 -2
  62. package/dist/shared-logic/src/Theme/types.d.ts +4 -2
  63. package/dist/shared-logic/src/TimeDimension/TimeDimension.d.ts +1 -1
  64. package/dist/shared-logic/src/TimeDimension/types.d.ts +2 -2
  65. package/dist/shared-logic/src/Translations/extract/shared.d.ts +2 -2
  66. package/dist/shared-logic/src/Translations/textOverrideComponent.d.ts +3 -3
  67. package/dist/shared-logic/src/Translations/translation.types.d.ts +8 -1
  68. package/dist/shared-logic/src/Translations/translations.d.ts +1 -1
  69. package/dist/shared-logic/src/Translations/types.d.ts +4 -4
  70. package/dist/shared-logic/src/api/index.d.ts +1 -1
  71. package/dist/shared-logic/src/api/queryEngine/createDashboard.d.ts +5 -3
  72. package/dist/shared-logic/src/api/queryEngine/multiGetDashboards.d.ts +1 -1
  73. package/dist/shared-logic/src/api/queryEngine/updateDashboard.d.ts +2 -2
  74. package/dist/shared-logic/src/api/types.d.ts +4 -4
  75. package/dist/shared-logic/src/api/vizzly/aiActions.d.ts +3 -3
  76. package/dist/shared-logic/src/api/vizzly/aiHelpers/types.d.ts +4 -4
  77. package/dist/shared-logic/src/api/vizzly/createDashboard.d.ts +5 -3
  78. package/dist/shared-logic/src/api/vizzly/createDashboardAccess.d.ts +1 -1
  79. package/dist/shared-logic/src/api/vizzly/getParentDashboards.d.ts +1 -1
  80. package/dist/shared-logic/src/api/vizzly/getTeamMembers.d.ts +1 -1
  81. package/dist/shared-logic/src/api/vizzly/multiGetDashboards.d.ts +1 -1
  82. package/dist/shared-logic/src/api/vizzly/multiGetEncryptedDashboards.d.ts +1 -1
  83. package/dist/shared-logic/src/api/vizzly/updateDashboard.d.ts +6 -4
  84. package/dist/shared-logic/src/api/vizzly/updateProjectApiKey.d.ts +1 -1
  85. package/dist/shared-logic/src/typeHelpers.d.ts +1 -1
  86. package/package.json +1 -1
@@ -1,17 +1,17 @@
1
1
  import { DataSet, FieldFilterOptions } from '../DataSet/types';
2
2
  import { QueryAttributes } from '../QueryAttributes/types';
3
3
  import { Section as ConstSection } from '../ComponentInterface/types/namespaces.types';
4
- export type Section<Type> = ConstSection<Type> & {
4
+ export declare type Section<Type> = ConstSection<Type> & {
5
5
  testId?: string;
6
6
  namespace?: string;
7
7
  };
8
- type MetricOptions = {
8
+ declare type MetricOptions = {
9
9
  allowsMultiple?: boolean;
10
10
  maximumMetricsAllowed?: number;
11
11
  propKey?: 'xMeasure' | 'yMeasure' | 'measure' | 'barMeasure' | 'lineMeasure';
12
12
  filterFieldOptions?: FieldFilterOptions;
13
13
  };
14
- export type FieldCollectorOptions<Attrs> = {
14
+ export declare type FieldCollectorOptions<Attrs> = {
15
15
  callToAction?: string;
16
16
  maxAllowed?: number;
17
17
  preventDuplicates?: boolean;
@@ -19,14 +19,14 @@ export type FieldCollectorOptions<Attrs> = {
19
19
  getValues: (attributes: Attrs) => Array<QueryAttributes['measure'][number] | QueryAttributes['dimension'][number]>;
20
20
  preSetPartialAttributes: (values: Array<QueryAttributes['measure'][number] | QueryAttributes['dimension'][number]>, dataSet: DataSet, originalAttributes: Attrs) => Partial<Attrs>;
21
21
  };
22
- export type FieldCollectorSection = Section<'fieldCollector'> & FieldCollectorOptions<any>;
23
- export type MetricsSection = Section<'metrics'> & MetricOptions;
24
- export type DimensionSection = Section<'dimension'> & {
22
+ export declare type FieldCollectorSection = Section<'fieldCollector'> & FieldCollectorOptions<any>;
23
+ export declare type MetricsSection = Section<'metrics'> & MetricOptions;
24
+ export declare type DimensionSection = Section<'dimension'> & {
25
25
  newCallToAction?: string;
26
26
  allowsMultiple?: boolean;
27
27
  filterFieldOptions?: FieldFilterOptions;
28
28
  };
29
- export type LabelledMetricSection = Section<'labelledMetrics'> & {
29
+ export declare type LabelledMetricSection = Section<'labelledMetrics'> & {
30
30
  subSection: Array<MetricOptions & {
31
31
  title: string;
32
32
  }>;
@@ -37,7 +37,7 @@ export interface ProgressGoalSection<T> extends Omit<Section<T>, 'type'> {
37
37
  value: number;
38
38
  }[];
39
39
  }
40
- export type ProgressGoalsSection = Section<'progressGoals'> & ProgressGoalSection<'progressGoals'>;
41
- export type DataPanelSection = Section<'dataSet'> | MetricsSection | FieldCollectorSection | LabelledMetricSection | Section<'customMetrics'> | DimensionSection | Section<'drilldown'> | Section<'comparison'> | Section<'comboChartDimension'> | Section<'timeDimension'> | Section<'xAxis'> | Section<'views'> | Section<'sort'> | Section<'filter'> | Section<'limit'> | Section<'pagination'> | Section<'fields'> | Section<'country'> | ProgressGoalsSection;
42
- export type DataPanelConfig = Array<DataPanelSection>;
40
+ export declare type ProgressGoalsSection = Section<'progressGoals'> & ProgressGoalSection<'progressGoals'>;
41
+ export declare type DataPanelSection = Section<'dataSet'> | MetricsSection | FieldCollectorSection | LabelledMetricSection | Section<'customMetrics'> | DimensionSection | Section<'drilldown'> | Section<'comparison'> | Section<'comboChartDimension'> | Section<'timeDimension'> | Section<'xAxis'> | Section<'views'> | Section<'sort'> | Section<'filter'> | Section<'limit'> | Section<'pagination'> | Section<'fields'> | Section<'country'> | ProgressGoalsSection;
42
+ export declare type DataPanelConfig = Array<DataPanelSection>;
43
43
  export {};
@@ -1,11 +1,11 @@
1
1
  import { QueryEngineConfig } from '../QueryEngineConfig/types';
2
2
  import { DateTimeField, NonDateTimeField } from '../Field/types';
3
- export type FieldOverrides = Partial<{
3
+ export declare type FieldOverrides = Partial<{
4
4
  canBeDimension: boolean;
5
5
  canBeMeasure: boolean;
6
6
  allowedOperators: Array<string>;
7
7
  }>;
8
- export type DateTimeFieldOverrides = FieldOverrides & Partial<{
8
+ export declare type DateTimeFieldOverrides = FieldOverrides & Partial<{
9
9
  allowedGranularities: Array<string>;
10
10
  }>;
11
11
  export declare const stringField: (queryEngineConfig: QueryEngineConfig, id: string, publicName: string, overrides?: FieldOverrides) => NonDateTimeField;
@@ -4,14 +4,14 @@ import { DataType, DateTimeField, NonDateTimeField } from '../Field/types';
4
4
  export declare namespace DataSet {
5
5
  type Field = DateTimeField | NonDateTimeField | CustomField;
6
6
  }
7
- export type DataSet = {
7
+ export declare type DataSet = {
8
8
  id: string;
9
9
  name: string;
10
10
  description?: string;
11
11
  fields: DataSet.Field[];
12
12
  preAggregated?: undefined | false | string[];
13
13
  };
14
- export type FieldFilterOptions = {
14
+ export declare type FieldFilterOptions = {
15
15
  removeSimplePercentage?: boolean;
16
16
  removeConditionalPercentage?: boolean;
17
17
  removeRuleGrouping?: boolean;
@@ -1,19 +1,19 @@
1
1
  import { Result } from '../Result/types';
2
2
  import type { DatumKey } from '../DatumKey';
3
- export type GroupedTitle = {
3
+ export declare type GroupedTitle = {
4
4
  colSpan: number;
5
5
  content: string;
6
6
  rowGroup?: boolean;
7
7
  unformatted: string;
8
8
  };
9
- export type TableContent = {
9
+ export declare type TableContent = {
10
10
  value: any;
11
11
  displayValue?: any;
12
12
  };
13
- export type TableFields = Result['fields'][number] & {
13
+ export declare type TableFields = Result['fields'][number] & {
14
14
  datumKey: DatumKey;
15
15
  };
16
- export type TableRepresentation = {
16
+ export declare type TableRepresentation = {
17
17
  groupTitles?: {
18
18
  consolidated: Array<GroupedTitle>;
19
19
  unconsolidated: Array<GroupedTitle>;
@@ -21,6 +21,6 @@ export type TableRepresentation = {
21
21
  fields: Array<TableFields>;
22
22
  content: TableContent[][];
23
23
  };
24
- export type TableFieldsV2 = {
24
+ export declare type TableFieldsV2 = {
25
25
  [key: string]: string | number;
26
26
  };
@@ -1,10 +1,10 @@
1
- export type CustomDateTimeRange = {
1
+ export declare type CustomDateTimeRange = {
2
2
  description: string;
3
3
  range: {
4
4
  after: Date;
5
5
  before: Date;
6
6
  };
7
7
  };
8
- export type DateTimeFilterOptions = {
8
+ export declare type DateTimeFilterOptions = {
9
9
  [key: string]: boolean | CustomDateTimeRange;
10
10
  };
@@ -1,8 +1,8 @@
1
- export type Datum = {
1
+ export declare type Datum = {
2
2
  [key: string]: string | number | any;
3
3
  };
4
- export type DatumKey = string;
5
- export type ParsedDatumKey = {
4
+ export declare type DatumKey = string;
5
+ export declare type ParsedDatumKey = {
6
6
  dimensionKeys: Array<string>;
7
7
  dimensionValues: Array<string | number | null | string[]>;
8
8
  fieldId: string;
@@ -9,7 +9,7 @@ export declare const TOTAL_COLSPAN = 12;
9
9
  export declare const appendEmptyCell: (currentPanels: Display, rowIndex: number) => Display;
10
10
  export declare const addHeaderRow: (display: Display, rowIndex: number, initialTitle: string) => Display;
11
11
  export declare const setComponent: (display: Display, component: Component | EmptyCell | HeaderComponent, rowIndex: number, cellIndex: number) => Display;
12
- type Move = {
12
+ declare type Move = {
13
13
  rowIndex: number;
14
14
  cellIndex: number;
15
15
  };
@@ -1,5 +1,5 @@
1
1
  import { Dumpable } from '../Dumpable';
2
2
  import { Display, DisplayDumped } from './types';
3
- export type DumpableDisplay = Dumpable<Display, DisplayDumped>;
3
+ export declare type DumpableDisplay = Dumpable<Display, DisplayDumped>;
4
4
  export declare const load: DumpableDisplay['load'];
5
5
  export declare const dump: DumpableDisplay['dump'];
@@ -1,18 +1,18 @@
1
1
  import { Component } from '../Component/types';
2
- export type EmptyCell = {
2
+ export declare type EmptyCell = {
3
3
  isEmpty: true;
4
4
  colSpan: number;
5
5
  };
6
- export type HeaderComponent = {
6
+ export declare type HeaderComponent = {
7
7
  displayTitle: string;
8
8
  colSpan: number;
9
9
  };
10
- export type DisplayRow = {
10
+ export declare type DisplayRow = {
11
11
  components: Array<Component | EmptyCell | HeaderComponent>;
12
12
  height: number;
13
13
  };
14
- export type Display = DisplayRow[];
15
- export type DisplayDumped = Array<{
14
+ export declare type Display = DisplayRow[];
15
+ export declare type DisplayDumped = Array<{
16
16
  components: Array<Component.RawComponent | EmptyCell | HeaderComponent>;
17
17
  height: number;
18
18
  }>;
@@ -1,6 +1,6 @@
1
1
  import { DisplayRow, EmptyCell, HeaderComponent } from './types';
2
2
  import { Component as ComponentType } from '../Component/types';
3
3
  import { ComponentInterfaceConfig } from '../ComponentInterface/types';
4
- type OldDisplayRow = (ComponentType | null | EmptyCell | HeaderComponent)[];
4
+ declare type OldDisplayRow = (ComponentType | null | EmptyCell | HeaderComponent)[];
5
5
  export declare const upcastRow: (displayRow: OldDisplayRow | DisplayRow, componentInterfaceConfig?: ComponentInterfaceConfig) => DisplayRow;
6
6
  export {};
@@ -9,7 +9,7 @@ import { QueryEngineConfig } from '../QueryEngineConfig/types';
9
9
  import { SupportedTransformationFunctions } from '../Functions/types';
10
10
  import * as Measure from '../Measure';
11
11
  export declare const ALL_AGGREGATES: Array<QueryAttributes.Aggregate>;
12
- export type OldField = {
12
+ export declare type OldField = {
13
13
  id: string;
14
14
  publicName?: string;
15
15
  dataType: 'string' | 'number' | 'date_time' | 'boolean' | 'string[]';
@@ -65,7 +65,7 @@ export declare const id: (metric: {
65
65
  field: string;
66
66
  function: string;
67
67
  }) => string;
68
- export type DecodingFunctionsToCheck = {
68
+ export declare type DecodingFunctionsToCheck = {
69
69
  supportedAggregates: QueryEngineConfig['supportedAggregates'] | undefined;
70
70
  supportedTimeTruncFunctions: QueryEngineConfig['supportedTimeTruncFunctions'] | undefined;
71
71
  supportedTransformationFunctions: QueryEngineConfig['supportedTransformationFunctions'] | undefined;
@@ -1,12 +1,12 @@
1
1
  import { QueryAttributes } from '../QueryAttributes/types';
2
- export type DataType = 'number' | 'boolean' | 'string' | 'date_time' | 'string[]';
3
- export type DateTimeFormat = 'DD/MM/YYYY' | 'MM/DD/YYYY' | 'DD-MM-YYYY' | 'MM-DD-YYYY' | 'DD MMMM YYYY, hh:mm' | 'dddd DD MMMM YYYY, hh:mm' | 'hh:mm' | 'hh:mm:ss' | 'DD MMMM YYYY' | 'MMMM YYYY' | 'YYYY' | 'YYYY-MM-DD[T]HH:mm:ss' | 'quarter' | 'week';
4
- export type SupportedAggregateOption = string;
5
- type DashboardRequiredFilterGroup = {
2
+ export declare type DataType = 'number' | 'boolean' | 'string' | 'date_time' | 'string[]';
3
+ export declare type DateTimeFormat = 'DD/MM/YYYY' | 'MM/DD/YYYY' | 'DD-MM-YYYY' | 'MM-DD-YYYY' | 'DD MMMM YYYY, hh:mm' | 'dddd DD MMMM YYYY, hh:mm' | 'hh:mm' | 'hh:mm:ss' | 'DD MMMM YYYY' | 'MMMM YYYY' | 'YYYY' | 'YYYY-MM-DD[T]HH:mm:ss' | 'quarter' | 'week';
4
+ export declare type SupportedAggregateOption = string;
5
+ declare type DashboardRequiredFilterGroup = {
6
6
  /** This is displayed on the global filter, and it is also used to group related filters */
7
7
  publicName: string;
8
8
  };
9
- export type BaseField = {
9
+ export declare type BaseField = {
10
10
  id: string;
11
11
  publicName: string;
12
12
  description?: string;
@@ -16,7 +16,7 @@ export type BaseField = {
16
16
  dashboardRequiredFilterGroups?: DashboardRequiredFilterGroup[];
17
17
  supportedAggregateOptions?: SupportedAggregateOption[];
18
18
  };
19
- export type DateTimeField = BaseField & {
19
+ export declare type DateTimeField = BaseField & {
20
20
  dataType: 'date_time';
21
21
  allowedGranularities: QueryAttributes.TimeDimension.Truncate[];
22
22
  };
@@ -1,15 +1,15 @@
1
1
  import { FormattingRuleType } from '../FormattingRule/types';
2
2
  import { Section } from '../DataPanelConfig/types';
3
- export type HeadingSubSections = Section<'title'> | Section<'subject'>;
4
- export type HeadingSection = Section<'heading'> & {
3
+ export declare type HeadingSubSections = Section<'title'> | Section<'subject'>;
4
+ export declare type HeadingSection = Section<'heading'> & {
5
5
  subSection: Array<HeadingSubSections>;
6
6
  };
7
- export type FormatSubSections = Section<'time'> | Section<'fontSize'>;
8
- export type FormatSection = Section<'format'> & {
7
+ export declare type FormatSubSections = Section<'time'> | Section<'fontSize'>;
8
+ export declare type FormatSection = Section<'format'> & {
9
9
  subSection: Array<FormatSubSections>;
10
10
  };
11
- export type ChartStylesSubSections = Section<'stacked' | 'curve' | 'legend' | 'numberFormat'>;
12
- export type ChartStylesSection = Section<'chartStyles'> & {
11
+ export declare type ChartStylesSubSections = Section<'stacked' | 'curve' | 'legend' | 'numberFormat'>;
12
+ export declare type ChartStylesSection = Section<'chartStyles'> & {
13
13
  subSection: Array<ChartStylesSubSections>;
14
14
  };
15
15
  export interface LabelSection<T> extends Omit<Section<T>, 'type'> {
@@ -19,14 +19,14 @@ export interface LabelSection<T> extends Omit<Section<T>, 'type'> {
19
19
  count: Omit<Section<T>, 'type'>;
20
20
  axisTitle?: Omit<Section<T>, 'type'>;
21
21
  }
22
- export type AxisLabelsSection = Section<'axisLabels'> & {
22
+ export declare type AxisLabelsSection = Section<'axisLabels'> & {
23
23
  x: LabelSection<'axisLabels'>;
24
24
  y: LabelSection<'axisLabels'>;
25
25
  };
26
- export type LabelsSection = Section<'statsLabels'> & LabelSection<'statsLabels'>;
27
- export type PrefixSection = Section<'prefixes'>;
28
- export type MapColorsSection = Section<'mapColors'>;
29
- export type HeadlineSection = Section<'headline'>;
26
+ export declare type LabelsSection = Section<'statsLabels'> & LabelSection<'statsLabels'>;
27
+ export declare type PrefixSection = Section<'prefixes'>;
28
+ export declare type MapColorsSection = Section<'mapColors'>;
29
+ export declare type HeadlineSection = Section<'headline'>;
30
30
  export interface ConditionalFormattingSection extends Section<'conditionalFormatting'> {
31
31
  ruleType: FormattingRuleType;
32
32
  subSection?: {
@@ -39,6 +39,6 @@ export interface GoalLineSection extends Section<'goalLine'> {
39
39
  export interface ProgressTypeSection<T> extends Omit<Section<T>, 'type'> {
40
40
  progressType?: Omit<Section<T>, 'type'>;
41
41
  }
42
- export type ProgressTypesSection = Section<'progressType'> & ProgressTypeSection<'progressType'>;
43
- export type FormatPanelSection = HeadingSection | FormatSection | ChartStylesSection | PrefixSection | AxisLabelsSection | LabelsSection | MapColorsSection | ConditionalFormattingSection | GoalLineSection | ProgressTypesSection | HeadlineSection;
44
- export type FormatPanelConfig = Array<FormatPanelSection>;
42
+ export declare type ProgressTypesSection = Section<'progressType'> & ProgressTypeSection<'progressType'>;
43
+ export declare type FormatPanelSection = HeadingSection | FormatSection | ChartStylesSection | PrefixSection | AxisLabelsSection | LabelsSection | MapColorsSection | ConditionalFormattingSection | GoalLineSection | ProgressTypesSection | HeadlineSection;
44
+ export declare type FormatPanelConfig = Array<FormatPanelSection>;
@@ -1 +1 @@
1
- export type FormattingRuleType = 'backgroundColor' | 'fontColor' | 'lineColor' | 'areaColor';
1
+ export declare type FormattingRuleType = 'backgroundColor' | 'fontColor' | 'lineColor' | 'areaColor';
@@ -1,8 +1,8 @@
1
1
  import { DataType } from '../Field/types';
2
- export type SupportedFunction = {
2
+ export declare type SupportedFunction = {
3
3
  publicName: string;
4
4
  validDataTypes: Array<Omit<DataType, 'date_time'>>;
5
5
  };
6
- export type SupportedTransformationFunctions = {
6
+ export declare type SupportedTransformationFunctions = {
7
7
  [id: string]: SupportedFunction;
8
8
  };
@@ -20,8 +20,8 @@ export declare namespace GlobalFilter {
20
20
  };
21
21
  }
22
22
  /** @deprecated */
23
- export type GlobalSelectFilter = GlobalFilter.Base<'globalSelectFilter'>;
23
+ export declare type GlobalSelectFilter = GlobalFilter.Base<'globalSelectFilter'>;
24
24
  /** @deprecated */
25
- export type GlobalDateTimeFilter = GlobalFilter.Base<'globalDateTimeFilter'>;
25
+ export declare type GlobalDateTimeFilter = GlobalFilter.Base<'globalDateTimeFilter'>;
26
26
  /** @deprecated */
27
- export type GlobalFilter = GlobalSelectFilter | GlobalDateTimeFilter;
27
+ export declare type GlobalFilter = GlobalSelectFilter | GlobalDateTimeFilter;
@@ -1,11 +1,11 @@
1
1
  import { QueryAttributes } from '../QueryAttributes/types';
2
- type AllowedTablesRule = {
2
+ declare type AllowedTablesRule = {
3
3
  table: string;
4
4
  };
5
- export type VizzlyApiAccessConfig = {
5
+ export declare type VizzlyApiAccessConfig = {
6
6
  allowVizzlyConfigReadAccess?: string;
7
7
  };
8
- export type QueryEngineAccessConfig = {
8
+ export declare type QueryEngineAccessConfig = {
9
9
  projectId: string;
10
10
  allowDatabaseSchemaAccess: boolean | Array<AllowedTablesRule>;
11
11
  allowDatabaseWriteAccess?: Array<AllowedTablesRule>;
@@ -13,7 +13,7 @@ export type QueryEngineAccessConfig = {
13
13
  expires: string;
14
14
  signature: string;
15
15
  };
16
- export type DataAccessConfig = {
16
+ export declare type DataAccessConfig = {
17
17
  dataSetIds: string[] | '*';
18
18
  secureFilters: {
19
19
  [dataSetId: string]: QueryAttributes.Filter[];
@@ -22,7 +22,7 @@ export type DataAccessConfig = {
22
22
  expires: string;
23
23
  signature: string;
24
24
  };
25
- export type DashboardAccessConfig = {
25
+ export declare type DashboardAccessConfig = {
26
26
  projectId: string;
27
27
  /** @deprecated */
28
28
  dashboardId?: string;
@@ -32,11 +32,11 @@ export type DashboardAccessConfig = {
32
32
  accessType: 'admin' | 'standard';
33
33
  scope: 'read' | 'read_write';
34
34
  };
35
- export type DashboardAdminOverrideConfig = {
35
+ export declare type DashboardAdminOverrideConfig = {
36
36
  signature: string;
37
37
  project_id: string;
38
38
  };
39
- export type IdentityConfig = {
39
+ export declare type IdentityConfig = {
40
40
  dashboardAccess: DashboardAccessConfig;
41
41
  dashboardAdminOverride?: DashboardAdminOverrideConfig;
42
42
  dataAccess?: DataAccessConfig;
@@ -1,12 +1,12 @@
1
1
  import { Query, SubQuery } from '../Query/types';
2
- export type DataMap = {
2
+ export declare type DataMap = {
3
3
  [key: string]: string | boolean | number | Date | null;
4
4
  };
5
- type JSQueryEngineOperator = '>' | '<' | '=' | '!=' | '>=' | '<=' | 'is_one_of' | 'is_not_one_of' | 'starts_with' | 'ends_with' | 'contains_substring' | 'does_not_contain_substring';
6
- export type JSQueryEngineTimeFunction = 'month' | 'year' | 'quarter' | 'week' | 'day' | 'hour' | 'minute' | 'second';
7
- export type JSQueryEngineAggregateFunction = 'countDistinct' | 'count' | 'mean' | 'sum' | 'min' | 'max' | 'none';
8
- export type JSQueryEngineFunction = JSQueryEngineTimeFunction | JSQueryEngineAggregateFunction;
9
- export type JSQueryEngineMathsOp = '*' | '-' | '/' | '+';
10
- export type JSQueryEngineSubQuery = SubQuery<JSQueryEngineFunction, JSQueryEngineOperator, JSQueryEngineMathsOp>;
11
- export type JSQueryEngineQuery = Query<JSQueryEngineFunction, JSQueryEngineOperator, JSQueryEngineMathsOp>;
5
+ declare type JSQueryEngineOperator = '>' | '<' | '=' | '!=' | '>=' | '<=' | 'is_one_of' | 'is_not_one_of' | 'starts_with' | 'ends_with' | 'contains_substring' | 'does_not_contain_substring';
6
+ export declare type JSQueryEngineTimeFunction = 'month' | 'year' | 'quarter' | 'week' | 'day' | 'hour' | 'minute' | 'second';
7
+ export declare type JSQueryEngineAggregateFunction = 'countDistinct' | 'count' | 'mean' | 'sum' | 'min' | 'max' | 'none';
8
+ export declare type JSQueryEngineFunction = JSQueryEngineTimeFunction | JSQueryEngineAggregateFunction;
9
+ export declare type JSQueryEngineMathsOp = '*' | '-' | '/' | '+';
10
+ export declare type JSQueryEngineSubQuery = SubQuery<JSQueryEngineFunction, JSQueryEngineOperator, JSQueryEngineMathsOp>;
11
+ export declare type JSQueryEngineQuery = Query<JSQueryEngineFunction, JSQueryEngineOperator, JSQueryEngineMathsOp>;
12
12
  export {};
@@ -5,8 +5,10 @@ export declare const setupLogger: (newLogLevel: LogLevel, onLogLevelChange?: ((n
5
5
  logError: (...message: any) => void;
6
6
  logInfo: (...message: any) => void;
7
7
  logWarning: (...message: any) => void;
8
+ logProperties: (...message: any) => void;
8
9
  };
9
10
  export declare const logDebug: (...message: any) => void;
10
11
  export declare const logInfo: (...message: any) => void;
12
+ export declare const logProperties: (...message: any) => void;
11
13
  export declare const logWarning: (...message: any) => void;
12
14
  export declare const logError: (...message: any) => void;
@@ -1 +1 @@
1
- export type LogLevel = 'info' | 'debug' | 'warning' | 'error';
1
+ export declare type LogLevel = 'info' | 'debug' | 'warning' | 'error' | 'properties';
@@ -1,5 +1,5 @@
1
1
  import { QueryAttributes } from '../QueryAttributes/types';
2
- export type UpdatedMetrics = {
2
+ export declare type UpdatedMetrics = {
3
3
  updatedMeasures?: QueryAttributes.Measure[];
4
4
  updatedDimension?: QueryAttributes.Dimension[];
5
5
  updatedTimeDimension?: QueryAttributes.TimeDimension;
@@ -1,2 +1,2 @@
1
1
  import { Component } from '../Component/types';
2
- export type DumpedProgressAttributes = Component.ProgressAttributes;
2
+ export declare type DumpedProgressAttributes = Component.ProgressAttributes;
@@ -1,6 +1,6 @@
1
1
  import { Dashboard } from '../Dashboard';
2
- export type ProjectType = 'instant_dashboard' | 'self_hosted' | 'managed_query_engine' | 'in_browser' | 'dynamic_self_hosted_query_engine';
3
- export type Project = {
2
+ export declare type ProjectType = 'instant_dashboard' | 'self_hosted' | 'managed_query_engine' | 'in_browser' | 'dynamic_self_hosted_query_engine';
3
+ export declare type Project = {
4
4
  instant_dashboard_id: string | null;
5
5
  managed_query_engine_id: string | null;
6
6
  id: string;
@@ -48,7 +48,7 @@ export type Project = {
48
48
  updated_at: string;
49
49
  };
50
50
  };
51
- export type ShareLink = {
51
+ export declare type ShareLink = {
52
52
  id: string;
53
53
  token: string;
54
54
  active: boolean;
@@ -56,7 +56,7 @@ export type ShareLink = {
56
56
  title: string;
57
57
  email: string | null;
58
58
  };
59
- export type RawKeyPair = {
59
+ export declare type RawKeyPair = {
60
60
  id: string;
61
61
  uploaded_by: string;
62
62
  public_key: string;
@@ -11,9 +11,9 @@ export declare const containsAggregates: (query: Query | SubQuery) => boolean;
11
11
  export declare const hasGroups: (query: Query) => boolean;
12
12
  export declare const setQueryLimit: (query: Query, limit: number) => Query;
13
13
  export declare const isRunnable: (query: Query | null, queryEngineConfig: QueryEngineConfig) => boolean;
14
- export declare const takeRunnableQueries: (queries: (Query | null)[], queryEngineConfig: QueryEngineConfig) => Query[];
14
+ export declare const takeRunnableQueries: (queries: (Query | null)[], queryEngineConfig: QueryEngineConfig) => Query<string, string, string>[];
15
15
  export declare const build: (dataSet: DataSet, measureAttr: QueryAttributes.Measure[], orderAttr: QueryAttributes.Order[], filterAttr: QueryAttributes.Filter[][], dimensionAttr: QueryAttributes.Dimension[], timeDimensionAttr: QueryAttributes.TimeDimension | null, limitAttr: number | undefined, offsetAttr: number | undefined, queryEngineConfig: QueryEngineConfig) => {
16
- query: Query;
16
+ query: Query<string, string, string>;
17
17
  measureDescription: import("./types").MeasureDescription[];
18
18
  };
19
19
  export declare const hasDimensions: (query: {
@@ -80,34 +80,34 @@ export declare namespace QueryNameSpace {
80
80
  };
81
81
  type FieldDefinition<SupportedFunction = string, ComparisonOperator = string, MathsOp = string> = BasicType | ComplexType<SupportedFunction, ComparisonOperator, MathsOp>;
82
82
  }
83
- export type MeasureDescription = {
83
+ export declare type MeasureDescription = {
84
84
  field: DataSet.Field;
85
85
  functionId: string;
86
86
  };
87
- export type SubQuery<SupportedFunction = string, ComparisonOperator = string, MathsOp = string> = {
87
+ export declare type SubQuery<SupportedFunction = string, ComparisonOperator = string, MathsOp = string> = {
88
88
  measure: [QueryNameSpace.FieldDefinition<SupportedFunction, ComparisonOperator, MathsOp>];
89
89
  filter: QueryNameSpace.Filter<QueryNameSpace.FieldDefinition<SupportedFunction, ComparisonOperator, MathsOp>, ComparisonOperator>[][];
90
90
  };
91
91
  /** For when a query cannot be generalised into the TraditionalQuery format. We can provide a very specific query for a specific purpose. */
92
- type BasePreparedQuery<PreparedQueryType> = {
92
+ declare type BasePreparedQuery<PreparedQueryType> = {
93
93
  type: 'preparedQuery';
94
94
  preparedQueryType: PreparedQueryType;
95
95
  };
96
96
  /** A prepared query that returns unique values for a single array field */
97
- export type UniqueArrayValuesQuery = BasePreparedQuery<'uniqueArrayValues'> & {
97
+ export declare type UniqueArrayValuesQuery = BasePreparedQuery<'uniqueArrayValues'> & {
98
98
  dataSetId: string;
99
99
  fieldId: string;
100
100
  filter: Query['filter'];
101
101
  };
102
- export type PreAggregatedQuery = BasePreparedQuery<'preAggregated'> & {
102
+ export declare type PreAggregatedQuery = BasePreparedQuery<'preAggregated'> & {
103
103
  dataSetId: string;
104
104
  filter: {
105
105
  [dataSetId: string]: Query['filter'];
106
106
  };
107
107
  };
108
- export type PreparedQuery = UniqueArrayValuesQuery | PreAggregatedQuery;
108
+ export declare type PreparedQuery = UniqueArrayValuesQuery | PreAggregatedQuery;
109
109
  /** Most commonly used query format. */
110
- export type Query<SupportedFunction = string, ComparisonOperator = string, MathsOp = string> = {
110
+ export declare type Query<SupportedFunction = string, ComparisonOperator = string, MathsOp = string> = {
111
111
  type: 'query';
112
112
  dataSetId: string;
113
113
  measure: Array<QueryNameSpace.FieldDefinition<SupportedFunction, ComparisonOperator, MathsOp>>;
@@ -3,7 +3,7 @@ import { QueryEngineConfig } from '../QueryEngineConfig/types';
3
3
  import { Query } from './types';
4
4
  export declare class InvalidQuery extends Error {
5
5
  }
6
- type JoiOptions = {
6
+ declare type JoiOptions = {
7
7
  convert: boolean;
8
8
  stripUnknown: boolean;
9
9
  };
@@ -12,5 +12,6 @@ export declare const snowflakeQuerySchema: Joi.AlternativesSchema<unknown>;
12
12
  export declare const mariadbQuerySchema: Joi.AlternativesSchema<unknown>;
13
13
  export declare const mysqlQuerySchema: Joi.AlternativesSchema<unknown>;
14
14
  export declare const bigqueryQuerySchema: Joi.AlternativesSchema<unknown>;
15
+ export declare const redshiftSchema: Joi.AlternativesSchema<unknown>;
15
16
  export declare const validate: (queries: Array<unknown>, queryEngineConfig: QueryEngineConfig, joiOptions: JoiOptions) => Array<Query>;
16
17
  export {};
@@ -49,14 +49,14 @@ export declare namespace QueryAttributes {
49
49
  bucketFill?: boolean;
50
50
  };
51
51
  }
52
- export type SupportedOperator = {
52
+ export declare type SupportedOperator = {
53
53
  publicName: string;
54
54
  validDataTypes: Array<'number' | 'boolean' | 'string' | 'date_time' | 'string[]'>;
55
55
  };
56
- export type SupportedOperators = {
56
+ export declare type SupportedOperators = {
57
57
  [id: string]: SupportedOperator;
58
58
  };
59
- export type QueryAttributes = {
59
+ export declare type QueryAttributes = {
60
60
  dataSetId: string;
61
61
  measure: QueryAttributes.Measure[];
62
62
  dimension: QueryAttributes.Dimension[];
@@ -0,0 +1,2 @@
1
+ import { QueryEngineConfig } from './types';
2
+ export declare const queryEngineConfig: () => QueryEngineConfig;
@@ -2,8 +2,8 @@ import { SupportedAggregates } from '../Aggregate';
2
2
  import { SupportedTimeTruncFunctions } from '../TimeDimension/types';
3
3
  import { SupportedOperators } from '../QueryAttributes/types';
4
4
  import { SupportedTransformationFunctions } from '../Functions/types';
5
- export type SupportedFeature = 'subquery' | 'simpleMaths' | 'aggregateMaths' | 'switchField' | 'configManagerUi' | 'roundedNumbers' | 'sqlDefinedDataSet' | 'encryptedDashboards' | 'sqlViews';
6
- export type QueryEngineConfig = {
5
+ export declare type SupportedFeature = 'subquery' | 'simpleMaths' | 'aggregateMaths' | 'switchField' | 'configManagerUi' | 'roundedNumbers' | 'sqlDefinedDataSet' | 'encryptedDashboards' | 'sqlViews';
6
+ export declare type QueryEngineConfig = {
7
7
  origin?: 'in-browser' | 'query-engine' | 'custom';
8
8
  supportedFeatures: SupportedFeature[];
9
9
  supportedOperators: SupportedOperators;
@@ -11,7 +11,7 @@ export type QueryEngineConfig = {
11
11
  supportedTimeTruncFunctions: SupportedTimeTruncFunctions;
12
12
  supportedTransformationFunctions: SupportedTransformationFunctions;
13
13
  };
14
- export type QueryEngineEndpoint = string | {
14
+ export declare type QueryEngineEndpoint = string | {
15
15
  endpoint: string;
16
16
  dynamicConfig?: Object;
17
17
  customHeaders?: () => {
@@ -1,4 +1,4 @@
1
- export type Report = {
1
+ export declare type Report = {
2
2
  id: string;
3
3
  type: 'scheduled';
4
4
  schedule: string;
@@ -7,7 +7,7 @@ export declare namespace Result {
7
7
  hidden?: boolean;
8
8
  };
9
9
  }
10
- export type Result = {
10
+ export declare type Result = {
11
11
  content: any[][];
12
12
  fields: Result.Field[];
13
13
  };
@@ -1,10 +1,10 @@
1
1
  import { Component } from '../Component/types';
2
2
  import { QueryAttributes } from '../QueryAttributes/types';
3
- type OldSingleStatAttributes = Omit<Component.SingleStatAttributes, 'prefixes' | 'postfixes' | 'measure' | 'formatter'> & {
3
+ declare type OldSingleStatAttributes = Omit<Component.SingleStatAttributes, 'prefixes' | 'postfixes' | 'measure' | 'formatter'> & {
4
4
  prefix: string;
5
5
  postfix: string;
6
6
  singleMeasure: QueryAttributes['measure'][number];
7
7
  formatter: string;
8
8
  };
9
- export type DumpedSingleStatAttributes = Component.SingleStatAttributes | OldSingleStatAttributes;
9
+ export declare type DumpedSingleStatAttributes = Component.SingleStatAttributes | OldSingleStatAttributes;
10
10
  export {};
@@ -1,7 +1,7 @@
1
1
  import { CSSProperties } from 'react';
2
2
  export interface StoredTheme extends Theme {
3
3
  }
4
- export type Theme = {
4
+ export declare type Theme = {
5
5
  colors?: CSSProperties['color'][];
6
6
  detail?: 'minimal' | 'verbose';
7
7
  fontFamily?: string;
@@ -308,11 +308,13 @@ export declare namespace VizzlyTheming {
308
308
  color?: CSSProperties['fill'];
309
309
  fontWeight?: CSSProperties['fontWeight'];
310
310
  fontSize?: CSSProperties['fontSize'];
311
+ fontFamily?: CSSProperties['fontFamily'];
311
312
  };
312
313
  type ChartAxisTitle = {
313
314
  color?: CSSProperties['fill'];
314
315
  fontWeight?: CSSProperties['fontWeight'];
315
316
  fontSize?: CSSProperties['fontSize'];
317
+ fontFamily?: CSSProperties['fontFamily'];
316
318
  };
317
319
  type ChartGrid = {
318
320
  stroke: CSSProperties['stroke'];
@@ -504,4 +506,4 @@ export declare namespace VizzlyTheming {
504
506
  delteStyle?: 'pill' | 'text';
505
507
  };
506
508
  }
507
- export type ThemeVersion = 1 | 2;
509
+ export declare type ThemeVersion = 1 | 2;