@vizzly/services 0.14.1 → 0.14.2-dev-b5d1d3db2e08da70c1901b7ed65768aee6c329fb
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/dist/results-driver/src/driver/Custom.d.ts +5 -5
- package/dist/results-driver/src/driver/VizzlyQuery/AdditionalFilter/toQueries.d.ts +2 -2
- package/dist/results-driver/src/driver/VizzlyQuery/AreaChart/toQueries.d.ts +1 -1
- package/dist/results-driver/src/driver/VizzlyQuery/BarChart/toQueries.d.ts +1 -1
- package/dist/results-driver/src/driver/VizzlyQuery/BasicTable/toQueries.d.ts +1 -1
- package/dist/results-driver/src/driver/VizzlyQuery/ComboChart/toQueries.d.ts +2 -4
- package/dist/results-driver/src/driver/VizzlyQuery/FunnelChart/toQueries.d.ts +1 -1
- package/dist/results-driver/src/driver/VizzlyQuery/HorizontalBarChart/toQueries.d.ts +1 -1
- package/dist/results-driver/src/driver/VizzlyQuery/LineChart/toQueries.d.ts +1 -1
- package/dist/results-driver/src/driver/VizzlyQuery/MercatorMap/toQueries.d.ts +2 -4
- package/dist/results-driver/src/driver/VizzlyQuery/PieChart/toQueries.d.ts +1 -1
- package/dist/results-driver/src/driver/VizzlyQuery/PivotTable/toQueries.d.ts +1 -1
- package/dist/results-driver/src/driver/VizzlyQuery/QueryAttributes/toQueries.d.ts +5 -2
- package/dist/results-driver/src/driver/VizzlyQuery/RichText/toQueries.d.ts +1 -1
- package/dist/results-driver/src/driver/VizzlyQuery/ScatterChart/toQueries.d.ts +2 -4
- package/dist/results-driver/src/driver/VizzlyQuery/SingleStat/toQueries.d.ts +2 -4
- package/dist/results-driver/src/driver/VizzlyQuery/commonToQueries.d.ts +2 -4
- package/dist/results-driver/src/driver/VizzlyQueryEngine.d.ts +5 -5
- package/dist/results-driver/src/utils/runWithValidationAndCaching.d.ts +4 -2
- package/dist/services/src/index.d.ts +7 -1
- package/dist/services/src/schemaValidations/query.d.ts +1 -1
- package/dist/shared-logic/src/AdditionalFilter/types.d.ts +1 -0
- package/dist/shared-logic/src/AdditionalFilter/validate.d.ts +2 -2
- package/dist/shared-logic/src/Component/types.d.ts +9 -1
- package/dist/shared-logic/src/ComponentInterface/types/namespaces.types.d.ts +1 -1
- package/dist/shared-logic/src/CustomField/Conditional/index.d.ts +2 -2
- package/dist/shared-logic/src/CustomField/CustomField.d.ts +2 -2
- package/dist/shared-logic/src/CustomField/Percentage/index.d.ts +2 -3
- package/dist/shared-logic/src/CustomField/Rules/index.d.ts +3 -3
- package/dist/shared-logic/src/CustomField/SimpleMath/index.d.ts +6 -2
- package/dist/shared-logic/src/DashboardAPI/dataConfigurationAndIdentity.d.ts +1 -1
- package/dist/shared-logic/src/DashboardAPI/dataSets.d.ts +2 -2
- package/dist/shared-logic/src/DashboardAPI/types.d.ts +1 -1
- package/dist/shared-logic/src/DataPanelConfig/types.d.ts +3 -2
- package/dist/shared-logic/src/DataSet/DataSet.d.ts +1 -0
- package/dist/shared-logic/src/DataSet/fieldFilterOptions.d.ts +15 -0
- package/dist/shared-logic/src/DataSet/filterFields.d.ts +2 -1
- package/dist/shared-logic/src/DataSet/types.d.ts +1 -15
- package/dist/shared-logic/src/Field/Field.d.ts +1 -1
- package/dist/shared-logic/src/Field/types.d.ts +1 -1
- package/dist/shared-logic/src/Filter/Filter.d.ts +2 -2
- package/dist/shared-logic/src/Filter/Where.d.ts +6 -0
- package/dist/shared-logic/src/Filter/types.d.ts +9 -0
- package/dist/shared-logic/src/FormatPanelConfig/types.d.ts +1 -1
- package/dist/shared-logic/src/GlobalLibrary/globalLibraries.d.ts +2 -2
- package/dist/shared-logic/src/JSQueryEngine/fetchData.d.ts +1 -1
- package/dist/shared-logic/src/JSQueryEngine/localRunQueriesCallback.d.ts +6 -4
- package/dist/shared-logic/src/JSQueryEngine/runQueryV3.d.ts +0 -2
- package/dist/shared-logic/src/Query/Query.d.ts +1 -1
- package/dist/shared-logic/src/Query/buildFromQueryAttributes.d.ts +2 -3
- package/dist/shared-logic/src/Result/types.d.ts +1 -0
- package/dist/shared-logic/src/Strategy/types.d.ts +1 -5
- package/dist/shared-logic/src/Theme/types.d.ts +17 -2
- package/dist/shared-logic/src/Translations/translateQueryEngineConfig.d.ts +1 -1
- package/dist/shared-logic/src/Translations/translation.types.d.ts +159 -58
- package/dist/shared-logic/src/api/queryEngine/createResults.d.ts +8 -1
- package/dist/shared-logic/src/api/queryEngine/getRunQueriesCallback.d.ts +9 -9
- package/dist/shared-logic/src/utils/feedback.d.ts +2 -2
- package/package.json +2 -2
|
@@ -2,9 +2,9 @@ import { Query } from '../Query/types';
|
|
|
2
2
|
import { QueryAttributes } from '../QueryAttributes/types';
|
|
3
3
|
import { QueryEngineConfig } from '../QueryEngineConfig/types';
|
|
4
4
|
import { DataSet } from '../DataSet/types';
|
|
5
|
-
import {
|
|
5
|
+
import { Params } from '../../../results-driver/src/types';
|
|
6
6
|
export declare const addAndFilters: (filter: QueryAttributes['filter'], filterToAddToAll: QueryAttributes.Filter[]) => QueryAttributes['filter'];
|
|
7
|
-
export declare const filterAttributeToQueryFilter: (filters: QueryAttributes.Filter[][], queryEngineConfig: QueryEngineConfig, dataSet: DataSet,
|
|
7
|
+
export declare const filterAttributeToQueryFilter: (filters: QueryAttributes.Filter[][], queryEngineConfig: QueryEngineConfig, dataSet: DataSet, params: Params) => Query['filter'];
|
|
8
8
|
export declare const takeUsedFields: (filter: QueryAttributes['filter']) => string[];
|
|
9
9
|
export declare const isAvailable: (filter?: QueryAttributes['filter']) => boolean | undefined;
|
|
10
10
|
export declare const isAdditionalFilter: (value: any) => boolean;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { DataSet } from '../DataSet/types';
|
|
2
|
+
import { WhereClause } from './types';
|
|
3
|
+
import { QueryEngineConfig } from '../QueryEngineConfig/types';
|
|
4
|
+
import { Params } from '../../../results-driver/src/types';
|
|
5
|
+
export declare const filterConfigToWhere: (dataSet: DataSet, queryEngineConfig: QueryEngineConfig, params: Params) => WhereClause | undefined;
|
|
6
|
+
export declare const isWhereClause: (thing: any) => thing is WhereClause;
|
|
@@ -41,5 +41,5 @@ export interface ProgressTypeSection<T> extends Omit<Section<T>, 'type'> {
|
|
|
41
41
|
progressType?: Omit<Section<T>, 'type'>;
|
|
42
42
|
}
|
|
43
43
|
export declare type ProgressTypesSection = Section<'progressType'> & ProgressTypeSection<'progressType'>;
|
|
44
|
-
export declare type FormatPanelSection = HeadingSection | FormatSection | ChartStylesSection | PrefixSection | AxisLabelsSection | LabelsSection | MapColorsSection | ConditionalFormattingSection | GoalLineSection | ProgressTypesSection | HeadlineSection | RichTextFormatSection
|
|
44
|
+
export declare type FormatPanelSection = HeadingSection | FormatSection | ChartStylesSection | PrefixSection | AxisLabelsSection | LabelsSection | MapColorsSection | ConditionalFormattingSection | GoalLineSection | ProgressTypesSection | HeadlineSection | RichTextFormatSection | Section<'trends'>;
|
|
45
45
|
export declare type FormatPanelConfig = Array<FormatPanelSection>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { GlobalLibraryPermission } from '@vizzly/api-client';
|
|
2
|
-
import { Component } from '
|
|
3
|
-
import { GlobalLibrary } from '
|
|
2
|
+
import { Component } from '../Component/types';
|
|
3
|
+
import { GlobalLibrary } from '../GlobalLibrary/types';
|
|
4
4
|
export declare function tokenForLibrary(globalLibraryPermissions: GlobalLibraryPermission[], updatedGlobalLibraries: GlobalLibrary.Base[]): string;
|
|
5
5
|
export declare function update(globalLibraries: GlobalLibrary.Base[], componentAdded: Component, customFields: GlobalLibrary.CustomFields): GlobalLibrary.Base;
|
|
6
6
|
export declare const remove: (globalLibraries: GlobalLibrary.Base[], componentDeleted: Component) => GlobalLibrary.Base;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import { Query } from '
|
|
2
|
-
import { DataSet as DataSetType } from '
|
|
3
|
-
import { Result } from '
|
|
1
|
+
import { Query } from '../Query/types';
|
|
2
|
+
import { DataSet as DataSetType } from '../DataSet/types';
|
|
3
|
+
import { Result } from '../Result/types';
|
|
4
4
|
import { loadDataCallback } from '../Callbacks/types';
|
|
5
|
-
export declare const localRunQueriesCallback: (queries: Query[], dataSets: DataSetType[], doFetch: loadDataCallback, cacheKeyPrefix?: string) => Promise<
|
|
5
|
+
export declare const localRunQueriesCallback: (queries: Query[], dataSets: DataSetType[], doFetch: loadDataCallback, cacheKeyPrefix?: string) => Promise<{
|
|
6
|
+
results: (Omit<Result, 'fields'> | null)[];
|
|
7
|
+
}>;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { DataSet } from '../DataSet/types';
|
|
2
2
|
import { JSQueryEngineQuery } from './types';
|
|
3
3
|
import { Result } from '../Result/types';
|
|
4
|
-
import { SqlAST } from '@vizzly/sqldialects';
|
|
5
4
|
import { PreparedQuery } from '../Query/types';
|
|
6
|
-
export declare const buildWhereAST: (filter: JSQueryEngineQuery['filter'], dataSet: DataSet) => SqlAST['where'];
|
|
7
5
|
export declare const runQueryV3: (query: JSQueryEngineQuery | PreparedQuery, dataSet: DataSet) => Promise<Result['content']>;
|
|
@@ -14,7 +14,7 @@ export declare const hasGroups: (query: Query) => boolean;
|
|
|
14
14
|
export declare const setQueryLimit: (query: Query, limit: number) => Query;
|
|
15
15
|
export declare const isRunnable: (query: Query | null, queryEngineConfig: QueryEngineConfig) => boolean;
|
|
16
16
|
export declare const takeRunnableQueries: (queries: (Query | null)[], queryEngineConfig: QueryEngineConfig) => Query<string, string, string>[];
|
|
17
|
-
export declare const build: (dataSet: DataSet<DataSet.Field>, measureAttr: QueryAttributes.Measure[], orderAttr: QueryAttributes.Order[],
|
|
17
|
+
export declare const build: (dataSet: DataSet<DataSet.Field>, measureAttr: QueryAttributes.Measure[], orderAttr: QueryAttributes.Order[], dimensionAttr: QueryAttributes.Dimension[], timeDimensionAttr: QueryAttributes.TimeDimension | null, limitAttr: number | undefined, offsetAttr: number | undefined, queryEngineConfig: import("@vizzly/semantic-layer-public/dist/types").QueryEngineConfig, params: import("../../../results-driver/src/types").Params, prebuiltFilters?: QueryAttributes.Filter[][] | undefined) => {
|
|
18
18
|
query: Query<string, string, string>;
|
|
19
19
|
measureDescription: import("./types").MeasureDescription[];
|
|
20
20
|
};
|
|
@@ -2,9 +2,8 @@ import { QueryAttributes } from '../QueryAttributes/types';
|
|
|
2
2
|
import { QueryEngineConfig } from '../QueryEngineConfig/types';
|
|
3
3
|
import { MeasureDescription, Query } from './types';
|
|
4
4
|
import { DataSet } from '../DataSet/types';
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
export declare const buildFromQueryAttributes: (dataSet: DataSet, measureAttr: QueryAttributes.Measure[], orderAttr: QueryAttributes.Order[], filterAttr: QueryAttributes.Filter[][], dimensionAttr: QueryAttributes.Dimension[], timeDimensionAttr: QueryAttributes.TimeDimension | null, limitAttr: QueryAttributes.Limit | undefined, offsetAttr: QueryAttributes.Offset | undefined, queryEngineConfig: QueryEngineConfig, variables: VariableList) => {
|
|
5
|
+
import { Params } from '../../../results-driver/src/types';
|
|
6
|
+
export declare const buildFromQueryAttributes: (dataSet: DataSet, measureAttr: QueryAttributes.Measure[], orderAttr: QueryAttributes.Order[], dimensionAttr: QueryAttributes.Dimension[], timeDimensionAttr: QueryAttributes.TimeDimension | null, limitAttr: QueryAttributes.Limit | undefined, offsetAttr: QueryAttributes.Offset | undefined, queryEngineConfig: QueryEngineConfig, params: Params, prebuiltFilters?: QueryAttributes.Filter[][]) => {
|
|
8
7
|
query: Query;
|
|
9
8
|
measureDescription: Array<MeasureDescription>;
|
|
10
9
|
};
|
|
@@ -3,9 +3,5 @@ declare type ExactStrategy = {
|
|
|
3
3
|
type: 'exact';
|
|
4
4
|
globalLibrary: GlobalLibrary.Base;
|
|
5
5
|
};
|
|
6
|
-
declare type
|
|
7
|
-
type: 'instantCopyOf';
|
|
8
|
-
parentGlobalLibrary: GlobalLibrary.Base;
|
|
9
|
-
};
|
|
10
|
-
export declare type GlobalLibraryStrategy = ExactStrategy | InstantCopyOf;
|
|
6
|
+
export declare type GlobalLibraryStrategy = ExactStrategy;
|
|
11
7
|
export {};
|
|
@@ -330,8 +330,14 @@ export declare namespace VizzlyTheming {
|
|
|
330
330
|
type Alerts = {
|
|
331
331
|
padding?: CSSProperties['padding'];
|
|
332
332
|
borderRadius?: CSSProperties['borderRadius'];
|
|
333
|
-
title?: FontStyle
|
|
334
|
-
|
|
333
|
+
title?: FontStyle & {
|
|
334
|
+
display?: CSSProperties['display'];
|
|
335
|
+
width?: CSSProperties['width'];
|
|
336
|
+
};
|
|
337
|
+
content?: FontStyle & {
|
|
338
|
+
display?: CSSProperties['display'];
|
|
339
|
+
width?: CSSProperties['width'];
|
|
340
|
+
};
|
|
335
341
|
info?: AlertType;
|
|
336
342
|
warning?: AlertType;
|
|
337
343
|
critical?: AlertType;
|
|
@@ -354,6 +360,7 @@ export declare namespace VizzlyTheming {
|
|
|
354
360
|
grid?: ChartGrid;
|
|
355
361
|
axis?: ChartAxis;
|
|
356
362
|
pie?: Pie;
|
|
363
|
+
line?: LineChart;
|
|
357
364
|
barChart?: BarChart;
|
|
358
365
|
singleStat?: SingleStat;
|
|
359
366
|
threshold?: ChartThreshold;
|
|
@@ -467,6 +474,11 @@ export declare namespace VizzlyTheming {
|
|
|
467
474
|
cells?: TableCell;
|
|
468
475
|
odd?: TableRowsStripes;
|
|
469
476
|
even?: TableRowsStripes;
|
|
477
|
+
drilldown?: {
|
|
478
|
+
arrow?: {
|
|
479
|
+
stroke?: CSSProperties['stroke'];
|
|
480
|
+
};
|
|
481
|
+
};
|
|
470
482
|
};
|
|
471
483
|
type TableRowsStripes = {
|
|
472
484
|
background?: CSSProperties['background'];
|
|
@@ -597,6 +609,9 @@ export declare namespace VizzlyTheming {
|
|
|
597
609
|
gap?: boolean;
|
|
598
610
|
hole?: boolean;
|
|
599
611
|
};
|
|
612
|
+
type LineChart = {
|
|
613
|
+
opacity?: number;
|
|
614
|
+
};
|
|
600
615
|
type BarChart = {
|
|
601
616
|
cornerRadius?: number;
|
|
602
617
|
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { QueryEngineConfig } from '
|
|
1
|
+
import { QueryEngineConfig } from '../QueryEngineConfig/types';
|
|
2
2
|
import { TextOverride } from './types';
|
|
3
3
|
export declare const translateQueryEngineConfig: (queryEngineConfig: QueryEngineConfig, t: TextOverride) => QueryEngineConfig;
|
|
@@ -420,6 +420,13 @@ export declare type VizzlyTranslations = {
|
|
|
420
420
|
* String containing the translation.
|
|
421
421
|
*/
|
|
422
422
|
close: string;
|
|
423
|
+
/**
|
|
424
|
+
* @default 'Click Settings'
|
|
425
|
+
*
|
|
426
|
+
* @returns
|
|
427
|
+
* String containing the translation.
|
|
428
|
+
*/
|
|
429
|
+
click_settings: string;
|
|
423
430
|
/**
|
|
424
431
|
* @default 'No value'
|
|
425
432
|
*
|
|
@@ -964,13 +971,6 @@ export declare type VizzlyTranslations = {
|
|
|
964
971
|
* String containing the translation.
|
|
965
972
|
*/
|
|
966
973
|
add_to_library: string;
|
|
967
|
-
/**
|
|
968
|
-
* @default 'Click Settings'
|
|
969
|
-
*
|
|
970
|
-
* @returns
|
|
971
|
-
* String containing the translation.
|
|
972
|
-
*/
|
|
973
|
-
click_settings: string;
|
|
974
974
|
/**
|
|
975
975
|
* @default 'JSON Results'
|
|
976
976
|
*
|
|
@@ -1146,20 +1146,6 @@ export declare type VizzlyTranslations = {
|
|
|
1146
1146
|
* String containing the translation.
|
|
1147
1147
|
*/
|
|
1148
1148
|
advanced_filters: string;
|
|
1149
|
-
/**
|
|
1150
|
-
* @default 'Add filter'
|
|
1151
|
-
*
|
|
1152
|
-
* @returns
|
|
1153
|
-
* String containing the translation.
|
|
1154
|
-
*/
|
|
1155
|
-
add_filter: string;
|
|
1156
|
-
/**
|
|
1157
|
-
* @default 'Add `OR`'
|
|
1158
|
-
*
|
|
1159
|
-
* @returns
|
|
1160
|
-
* String containing the translation.
|
|
1161
|
-
*/
|
|
1162
|
-
add_or_filter: string;
|
|
1163
1149
|
/**
|
|
1164
1150
|
* @default 'Cancel'
|
|
1165
1151
|
*
|
|
@@ -1431,6 +1417,13 @@ export declare type VizzlyTranslations = {
|
|
|
1431
1417
|
* String containing the translation.
|
|
1432
1418
|
*/
|
|
1433
1419
|
fields_being_used_description: string;
|
|
1420
|
+
/**
|
|
1421
|
+
* @default 'A variable is not available.'
|
|
1422
|
+
*
|
|
1423
|
+
* @returns
|
|
1424
|
+
* String containing the translation.
|
|
1425
|
+
*/
|
|
1426
|
+
'custom_metric.variable_not_available': string;
|
|
1434
1427
|
/**
|
|
1435
1428
|
* @default 'Cannot find data set.'
|
|
1436
1429
|
*
|
|
@@ -1439,7 +1432,7 @@ export declare type VizzlyTranslations = {
|
|
|
1439
1432
|
*/
|
|
1440
1433
|
cannot_find_data_set: string;
|
|
1441
1434
|
/**
|
|
1442
|
-
* @default
|
|
1435
|
+
* @default "This will permanently remove the custom field '[[nameOfCustomMetric]]' from all views on the dashboard, not just this view. Are you sure you want to continue?"
|
|
1443
1436
|
*
|
|
1444
1437
|
* @params
|
|
1445
1438
|
* Fixed Variables: [[nameOfCustomMetric]]
|
|
@@ -1491,12 +1484,12 @@ export declare type VizzlyTranslations = {
|
|
|
1491
1484
|
*/
|
|
1492
1485
|
add_drilldown_field: string;
|
|
1493
1486
|
/**
|
|
1494
|
-
* @default '
|
|
1487
|
+
* @default 'OR'
|
|
1495
1488
|
*
|
|
1496
1489
|
* @returns
|
|
1497
1490
|
* String containing the translation.
|
|
1498
1491
|
*/
|
|
1499
|
-
|
|
1492
|
+
'filters.or': string;
|
|
1500
1493
|
/**
|
|
1501
1494
|
* @default 'Value'
|
|
1502
1495
|
*
|
|
@@ -1504,6 +1497,41 @@ export declare type VizzlyTranslations = {
|
|
|
1504
1497
|
* String containing the translation.
|
|
1505
1498
|
*/
|
|
1506
1499
|
value: string;
|
|
1500
|
+
/**
|
|
1501
|
+
* @default '+ OR Filter'
|
|
1502
|
+
*
|
|
1503
|
+
* @returns
|
|
1504
|
+
* String containing the translation.
|
|
1505
|
+
*/
|
|
1506
|
+
'filters.plus_or_filter': string;
|
|
1507
|
+
/**
|
|
1508
|
+
* @default 'Filter is successfully defined'
|
|
1509
|
+
*
|
|
1510
|
+
* @returns
|
|
1511
|
+
* String containing the translation.
|
|
1512
|
+
*/
|
|
1513
|
+
'filters.filter_is_successfully_defined': string;
|
|
1514
|
+
/**
|
|
1515
|
+
* @default 'Filter is not defined'
|
|
1516
|
+
*
|
|
1517
|
+
* @returns
|
|
1518
|
+
* String containing the translation.
|
|
1519
|
+
*/
|
|
1520
|
+
'filters.filter_is_not_defined': string;
|
|
1521
|
+
/**
|
|
1522
|
+
* @default 'No filter to remove'
|
|
1523
|
+
*
|
|
1524
|
+
* @returns
|
|
1525
|
+
* String containing the translation.
|
|
1526
|
+
*/
|
|
1527
|
+
'filters.no_filter_to_remove': string;
|
|
1528
|
+
/**
|
|
1529
|
+
* @default 'Click to Remove filter'
|
|
1530
|
+
*
|
|
1531
|
+
* @returns
|
|
1532
|
+
* String containing the translation.
|
|
1533
|
+
*/
|
|
1534
|
+
'filters.click_to_remove_filter': string;
|
|
1507
1535
|
/**
|
|
1508
1536
|
* @default 'Remove filter: [[filterNumber]]'
|
|
1509
1537
|
*
|
|
@@ -1559,6 +1587,13 @@ export declare type VizzlyTranslations = {
|
|
|
1559
1587
|
* String containing the translation.
|
|
1560
1588
|
*/
|
|
1561
1589
|
filter_list_subtext: TranslationInterpolation;
|
|
1590
|
+
/**
|
|
1591
|
+
* @default 'Add filter'
|
|
1592
|
+
*
|
|
1593
|
+
* @returns
|
|
1594
|
+
* String containing the translation.
|
|
1595
|
+
*/
|
|
1596
|
+
add_filter: string;
|
|
1562
1597
|
/**
|
|
1563
1598
|
* @default 'Add metric'
|
|
1564
1599
|
*
|
|
@@ -1650,6 +1685,34 @@ export declare type VizzlyTranslations = {
|
|
|
1650
1685
|
* String containing the translation.
|
|
1651
1686
|
*/
|
|
1652
1687
|
add_time_dimension: string;
|
|
1688
|
+
/**
|
|
1689
|
+
* @default 'Trend'
|
|
1690
|
+
*
|
|
1691
|
+
* @returns
|
|
1692
|
+
* String containing the translation.
|
|
1693
|
+
*/
|
|
1694
|
+
'trend-lines.trens.title': string;
|
|
1695
|
+
/**
|
|
1696
|
+
* @default 'Analyzes trends within the given date range.'
|
|
1697
|
+
*
|
|
1698
|
+
* @returns
|
|
1699
|
+
* String containing the translation.
|
|
1700
|
+
*/
|
|
1701
|
+
'trend-lines.trend.subtext': string;
|
|
1702
|
+
/**
|
|
1703
|
+
* @default 'Forecast'
|
|
1704
|
+
*
|
|
1705
|
+
* @returns
|
|
1706
|
+
* String containing the translation.
|
|
1707
|
+
*/
|
|
1708
|
+
'trend-lines.forecast.title': string;
|
|
1709
|
+
/**
|
|
1710
|
+
* @default 'Forecast uses historical data to predict future trends.'
|
|
1711
|
+
*
|
|
1712
|
+
* @returns
|
|
1713
|
+
* String containing the translation.
|
|
1714
|
+
*/
|
|
1715
|
+
'trend-lines.forecast.subtext': string;
|
|
1653
1716
|
/**
|
|
1654
1717
|
* @default 'Add trend line'
|
|
1655
1718
|
*
|
|
@@ -1657,6 +1720,23 @@ export declare type VizzlyTranslations = {
|
|
|
1657
1720
|
* String containing the translation.
|
|
1658
1721
|
*/
|
|
1659
1722
|
add_trend: string;
|
|
1723
|
+
/**
|
|
1724
|
+
* @default 'Add Trend Lines'
|
|
1725
|
+
*
|
|
1726
|
+
* @returns
|
|
1727
|
+
* String containing the translation.
|
|
1728
|
+
*/
|
|
1729
|
+
add_trend_lines: string;
|
|
1730
|
+
/**
|
|
1731
|
+
* @default '[[timeDimension]] Forecast Limit'
|
|
1732
|
+
*
|
|
1733
|
+
* @params
|
|
1734
|
+
* Fixed Variables: [[timeDimension]]
|
|
1735
|
+
*
|
|
1736
|
+
* @returns
|
|
1737
|
+
* String containing the translation.
|
|
1738
|
+
*/
|
|
1739
|
+
forecast_limit: string;
|
|
1660
1740
|
/**
|
|
1661
1741
|
* @default 'Line'
|
|
1662
1742
|
*
|
|
@@ -1755,6 +1835,13 @@ export declare type VizzlyTranslations = {
|
|
|
1755
1835
|
* String containing the translation.
|
|
1756
1836
|
*/
|
|
1757
1837
|
'editor_modal.confirm': string;
|
|
1838
|
+
/**
|
|
1839
|
+
* @default 'There is too much data for this view.'
|
|
1840
|
+
*
|
|
1841
|
+
* @returns
|
|
1842
|
+
* String containing the translation.
|
|
1843
|
+
*/
|
|
1844
|
+
'results-too-large': string;
|
|
1758
1845
|
/**
|
|
1759
1846
|
* @default 'There are no Views in your template library'
|
|
1760
1847
|
*
|
|
@@ -1882,47 +1969,54 @@ export declare type VizzlyTranslations = {
|
|
|
1882
1969
|
*/
|
|
1883
1970
|
hide_labels: string;
|
|
1884
1971
|
/**
|
|
1885
|
-
* @default '
|
|
1972
|
+
* @default 'Natural'
|
|
1886
1973
|
*
|
|
1887
1974
|
* @returns
|
|
1888
1975
|
* String containing the translation.
|
|
1889
1976
|
*/
|
|
1890
|
-
|
|
1977
|
+
natural: string;
|
|
1891
1978
|
/**
|
|
1892
|
-
* @default '
|
|
1979
|
+
* @default 'Straight'
|
|
1893
1980
|
*
|
|
1894
1981
|
* @returns
|
|
1895
1982
|
* String containing the translation.
|
|
1896
1983
|
*/
|
|
1897
|
-
|
|
1984
|
+
straight: string;
|
|
1898
1985
|
/**
|
|
1899
|
-
* @default '
|
|
1986
|
+
* @default 'Step'
|
|
1900
1987
|
*
|
|
1901
1988
|
* @returns
|
|
1902
1989
|
* String containing the translation.
|
|
1903
1990
|
*/
|
|
1904
|
-
|
|
1991
|
+
step: string;
|
|
1905
1992
|
/**
|
|
1906
|
-
* @default '
|
|
1993
|
+
* @default 'Dotted'
|
|
1907
1994
|
*
|
|
1908
1995
|
* @returns
|
|
1909
1996
|
* String containing the translation.
|
|
1910
1997
|
*/
|
|
1911
|
-
|
|
1998
|
+
dotted: string;
|
|
1912
1999
|
/**
|
|
1913
|
-
* @default '
|
|
2000
|
+
* @default 'Grouped'
|
|
1914
2001
|
*
|
|
1915
2002
|
* @returns
|
|
1916
2003
|
* String containing the translation.
|
|
1917
2004
|
*/
|
|
1918
|
-
|
|
2005
|
+
grouped: string;
|
|
1919
2006
|
/**
|
|
1920
|
-
* @default '
|
|
2007
|
+
* @default 'Stacked'
|
|
1921
2008
|
*
|
|
1922
2009
|
* @returns
|
|
1923
2010
|
* String containing the translation.
|
|
1924
2011
|
*/
|
|
1925
|
-
|
|
2012
|
+
stacked: string;
|
|
2013
|
+
/**
|
|
2014
|
+
* @default 'Stacked (100%)'
|
|
2015
|
+
*
|
|
2016
|
+
* @returns
|
|
2017
|
+
* String containing the translation.
|
|
2018
|
+
*/
|
|
2019
|
+
stacked_100prc: string;
|
|
1926
2020
|
/**
|
|
1927
2021
|
* @default 'Add Conditional Formatting'
|
|
1928
2022
|
*
|
|
@@ -2020,6 +2114,13 @@ export declare type VizzlyTranslations = {
|
|
|
2020
2114
|
* String containing the translation.
|
|
2021
2115
|
*/
|
|
2022
2116
|
goal_line_configuration: string;
|
|
2117
|
+
/**
|
|
2118
|
+
* @default 'This variable is not available.'
|
|
2119
|
+
*
|
|
2120
|
+
* @returns
|
|
2121
|
+
* String containing the translation.
|
|
2122
|
+
*/
|
|
2123
|
+
'goal_line.variable_not_available': string;
|
|
2023
2124
|
/**
|
|
2024
2125
|
* @default 'None'
|
|
2025
2126
|
*
|
|
@@ -2415,13 +2516,6 @@ export declare type VizzlyTranslations = {
|
|
|
2415
2516
|
* String containing the translation.
|
|
2416
2517
|
*/
|
|
2417
2518
|
'filter.past_18_months': string;
|
|
2418
|
-
/**
|
|
2419
|
-
* @default NULL_REPLACEMENT
|
|
2420
|
-
*
|
|
2421
|
-
* @returns
|
|
2422
|
-
* String containing the translation.
|
|
2423
|
-
*/
|
|
2424
|
-
'textOverrideKey ? textOverrideKey : no_value': string;
|
|
2425
2519
|
/**
|
|
2426
2520
|
* @default 'Minutes'
|
|
2427
2521
|
*
|
|
@@ -4137,20 +4231,6 @@ export declare type VizzlyTranslations = {
|
|
|
4137
4231
|
* String containing the translation.
|
|
4138
4232
|
*/
|
|
4139
4233
|
'line_chart.data_panel.custom_metrics.description': string;
|
|
4140
|
-
/**
|
|
4141
|
-
* @default "Trend lines"
|
|
4142
|
-
*
|
|
4143
|
-
* @returns
|
|
4144
|
-
* String containing the translation.
|
|
4145
|
-
*/
|
|
4146
|
-
'line_chart.data_panel.trends.title': string;
|
|
4147
|
-
/**
|
|
4148
|
-
* @default "Specify a trend type for the line chart."
|
|
4149
|
-
*
|
|
4150
|
-
* @returns
|
|
4151
|
-
* String containing the translation.
|
|
4152
|
-
*/
|
|
4153
|
-
'line_chart.data_panel.trends.description': string;
|
|
4154
4234
|
/**
|
|
4155
4235
|
* @default "Limit"
|
|
4156
4236
|
*
|
|
@@ -4194,7 +4274,7 @@ export declare type VizzlyTranslations = {
|
|
|
4194
4274
|
*/
|
|
4195
4275
|
'line_chart.format_panel.chart_styles.title': string;
|
|
4196
4276
|
/**
|
|
4197
|
-
* @default "Line
|
|
4277
|
+
* @default "Line Style"
|
|
4198
4278
|
*
|
|
4199
4279
|
* @returns
|
|
4200
4280
|
* String containing the translation.
|
|
@@ -4312,6 +4392,20 @@ export declare type VizzlyTranslations = {
|
|
|
4312
4392
|
* String containing the translation.
|
|
4313
4393
|
*/
|
|
4314
4394
|
'line_chart.format_panel.headline.title': string;
|
|
4395
|
+
/**
|
|
4396
|
+
* @default "Trend lines"
|
|
4397
|
+
*
|
|
4398
|
+
* @returns
|
|
4399
|
+
* String containing the translation.
|
|
4400
|
+
*/
|
|
4401
|
+
'line_chart.format_panel.trends.title': string;
|
|
4402
|
+
/**
|
|
4403
|
+
* @default "Specify a trend type for the line chart."
|
|
4404
|
+
*
|
|
4405
|
+
* @returns
|
|
4406
|
+
* String containing the translation.
|
|
4407
|
+
*/
|
|
4408
|
+
'line_chart.format_panel.trends.description': string;
|
|
4315
4409
|
/**
|
|
4316
4410
|
* @default "Goal Lines"
|
|
4317
4411
|
*
|
|
@@ -5243,6 +5337,13 @@ export declare type VizzlyTranslations = {
|
|
|
5243
5337
|
* String containing the translation.
|
|
5244
5338
|
*/
|
|
5245
5339
|
'single_stat.format_panel.format.font_size.title': string;
|
|
5340
|
+
/**
|
|
5341
|
+
* @default "Direction"
|
|
5342
|
+
*
|
|
5343
|
+
* @returns
|
|
5344
|
+
* String containing the translation.
|
|
5345
|
+
*/
|
|
5346
|
+
'single_stat.format_panel.format.direction.title': string;
|
|
5246
5347
|
/**
|
|
5247
5348
|
* @default "Greater than"
|
|
5248
5349
|
*
|
|
@@ -1,3 +1,10 @@
|
|
|
1
1
|
import { PreparedQuery, Query } from '../../Query/types';
|
|
2
2
|
import { QueryEngineEndpoint } from '../../QueryEngineConfig/types';
|
|
3
|
-
|
|
3
|
+
declare type CreateResultsResponse = {
|
|
4
|
+
results: {
|
|
5
|
+
content: any[][];
|
|
6
|
+
hasMoreResults: boolean | null;
|
|
7
|
+
}[];
|
|
8
|
+
};
|
|
9
|
+
export declare const createResults: (queries: (Query | PreparedQuery)[], queryEngineEndpoint: QueryEngineEndpoint, dataAccessToken?: string, abortSignal?: AbortSignal) => Promise<CreateResultsResponse | null>;
|
|
10
|
+
export {};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { AdditionalFilter, FilterConfig, TimeRangeOptions } from '
|
|
1
|
+
import { AdditionalFilter, FilterConfig, TimeRangeOptions } from '../../AdditionalFilter/types';
|
|
2
2
|
import { CustomDriver } from '../../../../results-driver/src/types';
|
|
3
|
-
import { loadDataCallback } from '
|
|
4
|
-
import { QueryEngineConfig as QueryEngineConfigType, QueryEngineEndpoint } from '
|
|
5
|
-
import { Component } from '
|
|
6
|
-
import { QueryAttributes } from '
|
|
7
|
-
import { PreparedQuery } from '
|
|
8
|
-
import { Result } from '
|
|
9
|
-
import { DataSet } from '
|
|
10
|
-
import { IdentityConfig as IdentityConfigType } from '
|
|
3
|
+
import { loadDataCallback } from '../../Callbacks/types';
|
|
4
|
+
import { QueryEngineConfig as QueryEngineConfigType, QueryEngineEndpoint } from '../../QueryEngineConfig/types';
|
|
5
|
+
import { Component } from '../../Component/types';
|
|
6
|
+
import { QueryAttributes } from '../../QueryAttributes/types';
|
|
7
|
+
import { PreparedQuery } from '../../Query/types';
|
|
8
|
+
import { Result } from '../../Result/types';
|
|
9
|
+
import { DataSet } from '../../DataSet/types';
|
|
10
|
+
import { IdentityConfig as IdentityConfigType } from '../../IdentityConfig/types';
|
|
11
11
|
import { VariableList } from '../../Variables/types';
|
|
12
12
|
declare type CallbackError = null;
|
|
13
13
|
export declare type runQueriesCallback = (queries: Component.Attributes | AdditionalFilter | QueryAttributes[] | [PreparedQuery], params: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { Component } from '../../src/Component/types';
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const getGroupingFeedbackMessage: (attributes: Component.Attributes) => string | null;
|
|
3
3
|
export declare const chartHasDimensions: (attributes: Component.Attributes) => boolean;
|
|
4
|
-
export declare const createFeedback: (attribute: Component.Attributes) =>
|
|
4
|
+
export declare const createFeedback: (attribute: Component.Attributes) => string | true | null;
|
package/package.json
CHANGED
|
@@ -26,9 +26,9 @@
|
|
|
26
26
|
"fix-type-alias": "tsc-alias -p tsconfig.json",
|
|
27
27
|
"prepare": "yarn build"
|
|
28
28
|
},
|
|
29
|
-
"version": "0.14.
|
|
29
|
+
"version": "0.14.2-dev-b5d1d3db2e08da70c1901b7ed65768aee6c329fb",
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@vizzly/api-client": "0.0.
|
|
31
|
+
"@vizzly/api-client": "0.0.43",
|
|
32
32
|
"@vizzly/joi": "^17.11.0",
|
|
33
33
|
"lodash": "^4.17.21"
|
|
34
34
|
}
|