@vizzly/services 0.14.4-dev-638c4c213227d29bb6a665fc62b13368e8b8bc5b → 0.14.4-dev-ccfbdccebc45fb0361ebf39ecb0ab567ca7a1067
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/services/src/index.d.ts +3 -2
- package/dist/shared-logic/src/CustomView/types.d.ts +2 -5
- package/dist/shared-logic/src/DataSet/DataSet.d.ts +1 -3
- package/dist/shared-logic/src/Query/Query.d.ts +1 -16
- package/package.json +1 -1
- package/dist/shared-logic/src/Query/validate.d.ts +0 -13
- package/dist/shared-logic/src/QueryEngineConfig/bigquery.d.ts +0 -2
- package/dist/shared-logic/src/QueryEngineConfig/mariadb.d.ts +0 -2
- package/dist/shared-logic/src/QueryEngineConfig/mysql.d.ts +0 -2
- package/dist/shared-logic/src/QueryEngineConfig/postgres.d.ts +0 -2
- package/dist/shared-logic/src/QueryEngineConfig/redshift.d.ts +0 -2
- package/dist/shared-logic/src/QueryEngineConfig/snowflake.d.ts +0 -2
|
@@ -15,8 +15,9 @@ import { QueryAttributes } from '../../shared-logic/src/QueryAttributes/types';
|
|
|
15
15
|
import { CustomDriver } from '../../results-driver/src/types';
|
|
16
16
|
import { Result } from '../../shared-logic/src/Result/types';
|
|
17
17
|
import { DateTimeFilterOptions } from '../../shared-logic/src/DateTime/types';
|
|
18
|
-
import { DataSetDashboardFilters } from '../../shared-logic/src/CustomView/types';
|
|
19
18
|
import { VariableList } from '../../shared-logic/src/Variables/types';
|
|
19
|
+
import { FilterConfig } from '../../shared-logic/src/AdditionalFilter/types';
|
|
20
|
+
export type { FilterConfig } from '../../shared-logic/src/AdditionalFilter/types';
|
|
20
21
|
export type { ViewConfiguration } from '../../shared-logic/src/ViewConfiguration/types';
|
|
21
22
|
export { VizzlyInstanceNotLoaded } from './errors/VizzlyInstanceNotLoaded';
|
|
22
23
|
export declare type Options = {
|
|
@@ -172,6 +173,6 @@ export declare type QueryParams = {
|
|
|
172
173
|
data?: loadDataCallback;
|
|
173
174
|
queryEngineEndpoint?: QueryEngineEndpoint;
|
|
174
175
|
dateFilterOptions?: DateTimeFilterOptions;
|
|
175
|
-
dashboardFilters: DataSetDashboardFilters;
|
|
176
176
|
variables?: VariableList;
|
|
177
|
+
filterConfig?: FilterConfig;
|
|
177
178
|
};
|
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import { FilterConfig } from '../AdditionalFilter/types';
|
|
2
3
|
import { Component } from '../Component/types';
|
|
3
|
-
import { QueryAttributes } from '../QueryAttributes/types';
|
|
4
4
|
export declare type CustomView = StaticCustomView | SelectableCustomView;
|
|
5
|
-
export declare type DataSetDashboardFilters = {
|
|
6
|
-
[dataSetId: string]: QueryAttributes.Filter[][];
|
|
7
|
-
};
|
|
8
5
|
export declare type CustomViewCallbackParams = {
|
|
9
|
-
dashboardFilters: DataSetDashboardFilters;
|
|
10
6
|
attributes?: Component.CustomViewAttributes;
|
|
7
|
+
filterConfig: FilterConfig;
|
|
11
8
|
};
|
|
12
9
|
export declare type BaseCustomView = {
|
|
13
10
|
id: string;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { DataSet } from './types';
|
|
2
2
|
import { CustomField, SimpleMathField } from '../CustomField/types';
|
|
3
3
|
import { DateTimeField, NonDateTimeField } from '../Field/types';
|
|
4
|
-
import { PreAggregatedQuery
|
|
4
|
+
import { PreAggregatedQuery } from '../Query/types';
|
|
5
5
|
import * as Field from '../Field/Field';
|
|
6
|
-
import FieldNotFoundInDataSet from '../errors/FieldNotFoundInDataSet';
|
|
7
6
|
import { QueryAttributes } from '../QueryAttributes/types';
|
|
8
7
|
import { QueryEngineConfig } from '../QueryEngineConfig/types';
|
|
9
8
|
import { ComponentType } from '../Component/types';
|
|
@@ -24,7 +23,6 @@ export declare const hasDateTimeFields: (dataSet: DataSet) => boolean;
|
|
|
24
23
|
export declare const getPlaceholder: (dataSet: DataSet, field: string | null) => string;
|
|
25
24
|
export declare const takeFieldsForDimension: (dataSet: DataSet) => DataSet.Field[];
|
|
26
25
|
export declare const takeFieldsForMeasure: (dataSet: DataSet, componentType: ComponentType) => DataSet.Field[];
|
|
27
|
-
export declare const validateQueries: (dataSet: DataSet, queries: Query[]) => undefined | FieldNotFoundInDataSet;
|
|
28
26
|
/**
|
|
29
27
|
* Return all custom fields for a data set, and optionally
|
|
30
28
|
* provide the componentType to ensure the custom fields which are returned
|
|
@@ -1,19 +1,8 @@
|
|
|
1
|
-
import { PreAggregatedQuery, PreparedQuery, Query
|
|
1
|
+
import { PreAggregatedQuery, PreparedQuery, Query } from './types';
|
|
2
2
|
import { QueryAttributes } from '../QueryAttributes/types';
|
|
3
3
|
import { QueryEngineConfig, SupportedFeature as SupportedFeatureType } from '../QueryEngineConfig/types';
|
|
4
4
|
import { DataSet } from '../DataSet/types';
|
|
5
|
-
import { JSQueryEngineMathsOp } from '../JSQueryEngine/types';
|
|
6
5
|
import { Result } from '../Result/types';
|
|
7
|
-
import { AdditionalFilter, TimeRangeOptions } from '../AdditionalFilter/types';
|
|
8
|
-
import { DataSetDashboardFilters } from '../CustomView/types';
|
|
9
|
-
export { validate } from './validate';
|
|
10
|
-
export declare const isValidMathsOp: (value: string) => value is JSQueryEngineMathsOp;
|
|
11
|
-
export declare const containsSubquery: (measures: Query['measure']) => boolean;
|
|
12
|
-
export declare const containsAggregates: (query: Query | SubQuery) => boolean;
|
|
13
|
-
export declare const hasGroups: (query: Query) => boolean;
|
|
14
|
-
export declare const setQueryLimit: (query: Query, limit: number) => Query;
|
|
15
|
-
export declare const isRunnable: (query: Query | null, queryEngineConfig: QueryEngineConfig) => boolean;
|
|
16
|
-
export declare const takeRunnableQueries: (queries: (Query | null)[], queryEngineConfig: QueryEngineConfig) => Query<string, string, string>[];
|
|
17
6
|
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
7
|
query: Query<string, string, string>;
|
|
19
8
|
measureDescription: import("./types").MeasureDescription[];
|
|
@@ -21,7 +10,6 @@ export declare const build: (dataSet: DataSet<DataSet.Field>, measureAttr: Query
|
|
|
21
10
|
export declare const hasDimensions: (query: {
|
|
22
11
|
group: Query['group'];
|
|
23
12
|
}) => boolean;
|
|
24
|
-
export declare const getMeasures: (query: Query) => Query['measure'];
|
|
25
13
|
export declare const buildPreAggregatedPreparedQuery: (query: PreAggregatedQuery, dataSet: DataSet) => {
|
|
26
14
|
query: PreAggregatedQuery;
|
|
27
15
|
resultFields: Result.Field[];
|
|
@@ -31,7 +19,4 @@ export declare const buildUniqueArrayValuesPreparedQuery: (dataSetId: string, da
|
|
|
31
19
|
resultFields: Result.Field[];
|
|
32
20
|
};
|
|
33
21
|
export declare const buildFilterQuery: (dataSet: DataSet, fieldId: string, optionsFilters?: QueryAttributes.Filter[], optionsOrders?: QueryAttributes.Order[]) => QueryAttributes;
|
|
34
|
-
export declare const requiredFields: (query: Query) => Array<string>;
|
|
35
22
|
export declare const supportsFeature: (queryEngineConfig: QueryEngineConfig, feature: SupportedFeatureType) => boolean;
|
|
36
|
-
export declare const toDataSetDashboardFilters: (dataSets: DataSet[], additionalFilters: AdditionalFilter[], dateFilterOptions: TimeRangeOptions) => DataSetDashboardFilters;
|
|
37
|
-
export declare function addGlobalFiltersToQueries(queries: QueryAttributes[], dashboardFilters?: DataSetDashboardFilters): QueryAttributes[];
|
package/package.json
CHANGED
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"fix-type-alias": "tsc-alias -p tsconfig.json",
|
|
27
27
|
"prepare": "yarn build"
|
|
28
28
|
},
|
|
29
|
-
"version": "0.14.4-dev-
|
|
29
|
+
"version": "0.14.4-dev-ccfbdccebc45fb0361ebf39ecb0ab567ca7a1067",
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@vizzly/api-client": "0.0.57",
|
|
32
32
|
"@vizzly/joi": "^17.11.0",
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import Joi from '@vizzly/joi';
|
|
2
|
-
import { QueryEngineConfig } from '../QueryEngineConfig/types';
|
|
3
|
-
import { Query } from './types';
|
|
4
|
-
import { JoiOptions } from '../validations';
|
|
5
|
-
export declare class InvalidQuery extends Error {
|
|
6
|
-
}
|
|
7
|
-
export declare const postgresQuerySchema: Joi.AlternativesSchema<unknown>;
|
|
8
|
-
export declare const snowflakeQuerySchema: Joi.AlternativesSchema<unknown>;
|
|
9
|
-
export declare const mariadbQuerySchema: Joi.AlternativesSchema<unknown>;
|
|
10
|
-
export declare const mysqlQuerySchema: Joi.AlternativesSchema<unknown>;
|
|
11
|
-
export declare const bigqueryQuerySchema: Joi.AlternativesSchema<unknown>;
|
|
12
|
-
export declare const redshiftSchema: Joi.AlternativesSchema<unknown>;
|
|
13
|
-
export declare const validate: (queries: Array<unknown>, queryEngineConfig: QueryEngineConfig, joiOptions: JoiOptions) => Array<Query>;
|