@vizzly/semantic-layer-public 0.0.2 → 0.0.4
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/QueryEngineConfig/QueryEngineConfig.d.ts +2 -0
- package/dist/QueryEngineConfig/QueryEngineConfig.js +7 -0
- package/dist/QueryEngineConfig/bigquery.d.ts +2 -0
- package/dist/QueryEngineConfig/bigquery.js +46 -0
- package/dist/QueryEngineConfig/constants.d.ts +4 -0
- package/dist/QueryEngineConfig/constants.js +121 -0
- package/dist/QueryEngineConfig/getQueryEngineConfig.d.ts +3 -0
- package/dist/QueryEngineConfig/getQueryEngineConfig.js +57 -0
- package/dist/QueryEngineConfig/index.d.ts +4 -0
- package/dist/QueryEngineConfig/index.js +33 -0
- package/dist/QueryEngineConfig/localJS.d.ts +2 -0
- package/dist/QueryEngineConfig/localJS.js +42 -0
- package/dist/QueryEngineConfig/mariadb.d.ts +2 -0
- package/dist/QueryEngineConfig/mariadb.js +36 -0
- package/dist/QueryEngineConfig/merge.d.ts +3 -0
- package/dist/QueryEngineConfig/merge.js +27 -0
- package/dist/QueryEngineConfig/microsoftSQLServer.d.ts +2 -0
- package/dist/QueryEngineConfig/microsoftSQLServer.js +46 -0
- package/dist/QueryEngineConfig/mysql.d.ts +2 -0
- package/dist/QueryEngineConfig/mysql.js +35 -0
- package/dist/QueryEngineConfig/postgres.d.ts +2 -0
- package/dist/QueryEngineConfig/postgres.js +46 -0
- package/dist/QueryEngineConfig/redshift.d.ts +2 -0
- package/dist/QueryEngineConfig/redshift.js +46 -0
- package/dist/QueryEngineConfig/snowflake.d.ts +2 -0
- package/dist/QueryEngineConfig/snowflake.js +45 -0
- package/dist/QueryEngineConfig/support.d.ts +22 -0
- package/dist/QueryEngineConfig/support.js +117 -0
- package/dist/QueryEngineConfig/supportedFeature.d.ts +2 -0
- package/dist/QueryEngineConfig/supportedFeature.js +8 -0
- package/dist/QueryEngineConfig/types.d.ts +53 -0
- package/dist/QueryEngineConfig/types.js +2 -0
- package/dist/VizzlyConfig/constants.d.ts +13 -0
- package/dist/VizzlyConfig/constants.js +87 -0
- package/dist/VizzlyConfig/index.d.ts +2 -0
- package/dist/VizzlyConfig/index.js +8 -0
- package/dist/VizzlyConfig/validate.d.ts +10 -0
- package/dist/VizzlyConfig/validate.js +183 -0
- package/dist/errors/VizzlyConfigValidationError.d.ts +2 -0
- package/dist/errors/VizzlyConfigValidationError.js +6 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +26 -3
- package/package.json +7 -2
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.supportsFeature = void 0;
|
|
4
|
+
const supportsFeature = (queryEngineConfig, feature) => {
|
|
5
|
+
return [...queryEngineConfig.supportedFeatures].includes(feature);
|
|
6
|
+
};
|
|
7
|
+
exports.supportsFeature = supportsFeature;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.queryEngineConfig = void 0;
|
|
4
|
+
const support_1 = require("./support");
|
|
5
|
+
const queryEngineConfig = () => ({
|
|
6
|
+
origin: 'query-engine',
|
|
7
|
+
supportedFeatures: [
|
|
8
|
+
'simpleMaths',
|
|
9
|
+
'aggregateMaths',
|
|
10
|
+
'subquery',
|
|
11
|
+
'configManagerUi',
|
|
12
|
+
'sqlDefinedDataSet',
|
|
13
|
+
'roundedNumbers',
|
|
14
|
+
'switchField',
|
|
15
|
+
'encryptedDashboards',
|
|
16
|
+
'sqlViews',
|
|
17
|
+
],
|
|
18
|
+
supportedTimeTruncFunctions: (0, support_1.supportedTimeTruncFunctions)([
|
|
19
|
+
'month',
|
|
20
|
+
'year',
|
|
21
|
+
'quarter',
|
|
22
|
+
'week',
|
|
23
|
+
'day',
|
|
24
|
+
'hour',
|
|
25
|
+
'minute',
|
|
26
|
+
'second',
|
|
27
|
+
]),
|
|
28
|
+
supportedAggregates: (0, support_1.supportedAggregates)(['sum', 'mean', 'min', 'max', 'count', 'countDistinct']),
|
|
29
|
+
supportedOperators: (0, support_1.supportedOperators)([
|
|
30
|
+
'>',
|
|
31
|
+
'<',
|
|
32
|
+
'=',
|
|
33
|
+
'!=',
|
|
34
|
+
'>=',
|
|
35
|
+
'<=',
|
|
36
|
+
'is_one_of',
|
|
37
|
+
'is_not_one_of',
|
|
38
|
+
'starts_with',
|
|
39
|
+
'ends_with',
|
|
40
|
+
'contains_substring',
|
|
41
|
+
'does_not_contain_substring',
|
|
42
|
+
'array_contains',
|
|
43
|
+
]),
|
|
44
|
+
supportedTransformationFunctions: (0, support_1.supportedTransformationFunctions)(['round_to_0_dp', 'round_to_2_dp']),
|
|
45
|
+
});
|
|
46
|
+
exports.queryEngineConfig = queryEngineConfig;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { SupportedAggregates, SupportedOperators, SupportedTimeTruncFunctions } from './types';
|
|
2
|
+
export declare const supportedOperatorsConstants: SupportedOperators;
|
|
3
|
+
export declare const timeDimensionsConstants: SupportedTimeTruncFunctions;
|
|
4
|
+
export declare const supportedAggregatesConstants: SupportedAggregates;
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.supportedAggregatesConstants = exports.timeDimensionsConstants = exports.supportedOperatorsConstants = void 0;
|
|
4
|
+
exports.supportedOperatorsConstants = {
|
|
5
|
+
'>': {
|
|
6
|
+
publicName: 'Greater than',
|
|
7
|
+
validDataTypes: ['number', 'date_time'],
|
|
8
|
+
},
|
|
9
|
+
'<': {
|
|
10
|
+
publicName: 'Less than',
|
|
11
|
+
validDataTypes: ['number', 'date_time'],
|
|
12
|
+
},
|
|
13
|
+
'<=': {
|
|
14
|
+
publicName: 'Less than or equal to',
|
|
15
|
+
validDataTypes: ['number', 'date_time'],
|
|
16
|
+
},
|
|
17
|
+
'>=': {
|
|
18
|
+
publicName: 'Greater than or equal to',
|
|
19
|
+
validDataTypes: ['number', 'date_time'],
|
|
20
|
+
},
|
|
21
|
+
'!=': {
|
|
22
|
+
publicName: 'Not equal to',
|
|
23
|
+
validDataTypes: ['number', 'date_time', 'boolean', 'string'],
|
|
24
|
+
},
|
|
25
|
+
is_one_of: {
|
|
26
|
+
publicName: 'Is one of',
|
|
27
|
+
validDataTypes: ['number', 'date_time', 'boolean', 'string'],
|
|
28
|
+
},
|
|
29
|
+
'=': {
|
|
30
|
+
publicName: 'Equal to',
|
|
31
|
+
validDataTypes: ['number', 'date_time', 'boolean', 'string'],
|
|
32
|
+
},
|
|
33
|
+
is_not_one_of: {
|
|
34
|
+
publicName: 'Is not one of',
|
|
35
|
+
validDataTypes: ['number', 'date_time', 'boolean', 'string'],
|
|
36
|
+
},
|
|
37
|
+
starts_with: {
|
|
38
|
+
publicName: 'Starts with',
|
|
39
|
+
validDataTypes: ['string'],
|
|
40
|
+
},
|
|
41
|
+
ends_with: {
|
|
42
|
+
publicName: 'Ends with',
|
|
43
|
+
validDataTypes: ['string'],
|
|
44
|
+
},
|
|
45
|
+
contains_substring: {
|
|
46
|
+
publicName: 'Contains text',
|
|
47
|
+
validDataTypes: ['string'],
|
|
48
|
+
},
|
|
49
|
+
does_not_contain_substring: {
|
|
50
|
+
publicName: 'Does not contain text',
|
|
51
|
+
validDataTypes: ['string'],
|
|
52
|
+
},
|
|
53
|
+
array_contains: {
|
|
54
|
+
publicName: 'Contains',
|
|
55
|
+
validDataTypes: ['string[]'],
|
|
56
|
+
},
|
|
57
|
+
};
|
|
58
|
+
exports.timeDimensionsConstants = {
|
|
59
|
+
month: {
|
|
60
|
+
publicName: 'Monthly',
|
|
61
|
+
dateFormat: 'MMMM YYYY',
|
|
62
|
+
},
|
|
63
|
+
year: {
|
|
64
|
+
publicName: 'Yearly',
|
|
65
|
+
dateFormat: 'YYYY',
|
|
66
|
+
},
|
|
67
|
+
quarter: {
|
|
68
|
+
publicName: 'Per quarter',
|
|
69
|
+
dateFormat: 'quarter',
|
|
70
|
+
},
|
|
71
|
+
week: {
|
|
72
|
+
publicName: 'Weekly',
|
|
73
|
+
dateFormat: 'week',
|
|
74
|
+
},
|
|
75
|
+
day: {
|
|
76
|
+
publicName: 'Daily',
|
|
77
|
+
dateFormat: 'DD-MM-YYYY',
|
|
78
|
+
},
|
|
79
|
+
second: {
|
|
80
|
+
publicName: 'Per second',
|
|
81
|
+
dateFormat: 'hh:mm:ss',
|
|
82
|
+
},
|
|
83
|
+
hour: {
|
|
84
|
+
publicName: 'Hourly',
|
|
85
|
+
dateFormat: 'hh:mm',
|
|
86
|
+
},
|
|
87
|
+
minute: {
|
|
88
|
+
publicName: 'Per minute',
|
|
89
|
+
dateFormat: 'hh:mm',
|
|
90
|
+
},
|
|
91
|
+
};
|
|
92
|
+
exports.supportedAggregatesConstants = {
|
|
93
|
+
mean: {
|
|
94
|
+
publicName: 'Mean',
|
|
95
|
+
validDataTypes: ['number'],
|
|
96
|
+
},
|
|
97
|
+
sum: {
|
|
98
|
+
publicName: 'Sum',
|
|
99
|
+
validDataTypes: ['number'],
|
|
100
|
+
},
|
|
101
|
+
min: {
|
|
102
|
+
publicName: 'Min',
|
|
103
|
+
validDataTypes: ['number'],
|
|
104
|
+
},
|
|
105
|
+
max: {
|
|
106
|
+
publicName: 'Max',
|
|
107
|
+
validDataTypes: ['number'],
|
|
108
|
+
},
|
|
109
|
+
count: {
|
|
110
|
+
publicName: 'Count',
|
|
111
|
+
validDataTypes: ['string', 'number', 'boolean', 'date_time', 'string[]'],
|
|
112
|
+
},
|
|
113
|
+
countDistinct: {
|
|
114
|
+
publicName: 'Unique',
|
|
115
|
+
validDataTypes: ['string', 'number', 'boolean', 'date_time'],
|
|
116
|
+
},
|
|
117
|
+
median: {
|
|
118
|
+
publicName: 'Median',
|
|
119
|
+
validDataTypes: ['number'],
|
|
120
|
+
},
|
|
121
|
+
};
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.getQueryEngineConfig = void 0;
|
|
27
|
+
const Postgres = __importStar(require("./postgres"));
|
|
28
|
+
const Redshift = __importStar(require("./redshift"));
|
|
29
|
+
const BigQuery = __importStar(require("./bigquery"));
|
|
30
|
+
const MicrosoftSQLServer = __importStar(require("./microsoftSQLServer"));
|
|
31
|
+
const MariaDb = __importStar(require("./mariadb"));
|
|
32
|
+
const Snowflake = __importStar(require("./snowflake"));
|
|
33
|
+
const MySQL = __importStar(require("./mysql"));
|
|
34
|
+
const localJS_1 = require("./localJS");
|
|
35
|
+
const getQueryEngineConfig = (client) => {
|
|
36
|
+
switch (client) {
|
|
37
|
+
case 'js':
|
|
38
|
+
return localJS_1.localQueryEngineConfig;
|
|
39
|
+
case 'postgres':
|
|
40
|
+
return Postgres.queryEngineConfig();
|
|
41
|
+
case 'redshift':
|
|
42
|
+
return Redshift.queryEngineConfig();
|
|
43
|
+
case 'bigquery':
|
|
44
|
+
return BigQuery.queryEngineConfig();
|
|
45
|
+
case 'mariadb':
|
|
46
|
+
return MariaDb.queryEngineConfig();
|
|
47
|
+
case 'snowflake':
|
|
48
|
+
return Snowflake.queryEngineConfig();
|
|
49
|
+
case 'mysql':
|
|
50
|
+
return MySQL.queryEngineConfig();
|
|
51
|
+
case 'microsoftSQLServer':
|
|
52
|
+
return MicrosoftSQLServer.queryEngineConfig();
|
|
53
|
+
case 'SQLite':
|
|
54
|
+
throw 'SQLite not support via the query engine';
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
exports.getQueryEngineConfig = getQueryEngineConfig;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
19
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
20
|
+
};
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.Support = exports.Constants = void 0;
|
|
30
|
+
__exportStar(require("./getQueryEngineConfig"), exports);
|
|
31
|
+
__exportStar(require("./merge"), exports);
|
|
32
|
+
exports.Constants = __importStar(require("./constants"));
|
|
33
|
+
exports.Support = __importStar(require("./support"));
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.localQueryEngineConfig = void 0;
|
|
4
|
+
const support_1 = require("./support");
|
|
5
|
+
exports.localQueryEngineConfig = {
|
|
6
|
+
origin: 'in-browser',
|
|
7
|
+
supportedFeatures: [
|
|
8
|
+
'simpleMaths',
|
|
9
|
+
'aggregateMaths',
|
|
10
|
+
'subquery',
|
|
11
|
+
'encryptedDashboards',
|
|
12
|
+
'switchField',
|
|
13
|
+
'roundedNumbers',
|
|
14
|
+
'encryptedDashboards',
|
|
15
|
+
],
|
|
16
|
+
supportedTimeTruncFunctions: (0, support_1.supportedTimeTruncFunctions)([
|
|
17
|
+
'month',
|
|
18
|
+
'year',
|
|
19
|
+
'quarter',
|
|
20
|
+
'week',
|
|
21
|
+
'day',
|
|
22
|
+
'hour',
|
|
23
|
+
'minute',
|
|
24
|
+
'second',
|
|
25
|
+
]),
|
|
26
|
+
supportedAggregates: (0, support_1.supportedAggregates)(['sum', 'mean', 'min', 'max', 'count', 'countDistinct', 'median']),
|
|
27
|
+
supportedOperators: (0, support_1.supportedOperators)([
|
|
28
|
+
'>',
|
|
29
|
+
'<',
|
|
30
|
+
'=',
|
|
31
|
+
'!=',
|
|
32
|
+
'>=',
|
|
33
|
+
'<=',
|
|
34
|
+
'is_one_of',
|
|
35
|
+
'is_not_one_of',
|
|
36
|
+
'starts_with',
|
|
37
|
+
'ends_with',
|
|
38
|
+
'contains_substring',
|
|
39
|
+
'does_not_contain_substring',
|
|
40
|
+
]),
|
|
41
|
+
supportedTransformationFunctions: (0, support_1.supportedTransformationFunctions)(['round_to_0_dp', 'round_to_2_dp']),
|
|
42
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.queryEngineConfig = void 0;
|
|
4
|
+
const support_1 = require("./support");
|
|
5
|
+
const queryEngineConfig = () => ({
|
|
6
|
+
origin: 'query-engine',
|
|
7
|
+
supportedFeatures: [
|
|
8
|
+
'simpleMaths',
|
|
9
|
+
'subquery',
|
|
10
|
+
'configManagerUi',
|
|
11
|
+
'switchField',
|
|
12
|
+
'sqlDefinedDataSet',
|
|
13
|
+
'roundedNumbers',
|
|
14
|
+
'aggregateMaths',
|
|
15
|
+
'encryptedDashboards',
|
|
16
|
+
'sqlViews',
|
|
17
|
+
],
|
|
18
|
+
supportedTimeTruncFunctions: (0, support_1.supportedTimeTruncFunctions)(['month', 'year', 'day', 'hour', 'minute', 'second']),
|
|
19
|
+
supportedAggregates: (0, support_1.supportedAggregates)(['sum', 'mean', 'min', 'max', 'count', 'countDistinct']),
|
|
20
|
+
supportedOperators: (0, support_1.supportedOperators)([
|
|
21
|
+
'>',
|
|
22
|
+
'<',
|
|
23
|
+
'=',
|
|
24
|
+
'!=',
|
|
25
|
+
'>=',
|
|
26
|
+
'<=',
|
|
27
|
+
'is_one_of',
|
|
28
|
+
'is_not_one_of',
|
|
29
|
+
'starts_with',
|
|
30
|
+
'ends_with',
|
|
31
|
+
'contains_substring',
|
|
32
|
+
'does_not_contain_substring',
|
|
33
|
+
]),
|
|
34
|
+
supportedTransformationFunctions: (0, support_1.supportedTransformationFunctions)(['round_to_0_dp', 'round_to_2_dp']),
|
|
35
|
+
});
|
|
36
|
+
exports.queryEngineConfig = queryEngineConfig;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.merge = void 0;
|
|
4
|
+
const lodash_1 = require("lodash");
|
|
5
|
+
/** If more than one DB is used, then we need to combine the configs and take the intersection of features. */
|
|
6
|
+
const merge = (...queryEngineConfigs) => {
|
|
7
|
+
return queryEngineConfigs.reduce((acc, current) => {
|
|
8
|
+
const mapIntersection = (key) => {
|
|
9
|
+
let accObj = acc[key];
|
|
10
|
+
let currentObj = current[key];
|
|
11
|
+
if (typeof accObj === 'object' && typeof currentObj === 'object') {
|
|
12
|
+
const keepKeys = (0, lodash_1.intersection)(Object.keys(accObj), Object.keys(currentObj));
|
|
13
|
+
return (0, lodash_1.pick)(current[key], keepKeys);
|
|
14
|
+
}
|
|
15
|
+
throw 'Cannot intersect non-object type in mapIntersection function.';
|
|
16
|
+
};
|
|
17
|
+
return {
|
|
18
|
+
origin: 'query-engine',
|
|
19
|
+
supportedAggregates: mapIntersection('supportedAggregates'),
|
|
20
|
+
supportedFeatures: (0, lodash_1.intersection)(acc.supportedFeatures, current.supportedFeatures),
|
|
21
|
+
supportedOperators: mapIntersection('supportedOperators'),
|
|
22
|
+
supportedTimeTruncFunctions: mapIntersection('supportedTimeTruncFunctions'),
|
|
23
|
+
supportedTransformationFunctions: mapIntersection('supportedTransformationFunctions'),
|
|
24
|
+
};
|
|
25
|
+
}, queryEngineConfigs[0]);
|
|
26
|
+
};
|
|
27
|
+
exports.merge = merge;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.queryEngineConfig = void 0;
|
|
4
|
+
const support_1 = require("./support");
|
|
5
|
+
const queryEngineConfig = () => ({
|
|
6
|
+
origin: 'query-engine',
|
|
7
|
+
supportedFeatures: [
|
|
8
|
+
'simpleMaths',
|
|
9
|
+
'aggregateMaths',
|
|
10
|
+
'subquery',
|
|
11
|
+
'configManagerUi',
|
|
12
|
+
'switchField',
|
|
13
|
+
'roundedNumbers',
|
|
14
|
+
'sqlDefinedDataSet',
|
|
15
|
+
'encryptedDashboards',
|
|
16
|
+
'sqlViews',
|
|
17
|
+
],
|
|
18
|
+
supportedTimeTruncFunctions: (0, support_1.supportedTimeTruncFunctions)([
|
|
19
|
+
'month',
|
|
20
|
+
'year',
|
|
21
|
+
'quarter',
|
|
22
|
+
'week',
|
|
23
|
+
'day',
|
|
24
|
+
'hour',
|
|
25
|
+
'minute',
|
|
26
|
+
'second',
|
|
27
|
+
]),
|
|
28
|
+
supportedAggregates: (0, support_1.supportedAggregates)(['sum', 'mean', 'min', 'max', 'count', 'countDistinct']),
|
|
29
|
+
supportedOperators: (0, support_1.supportedOperators)([
|
|
30
|
+
'>',
|
|
31
|
+
'<',
|
|
32
|
+
'=',
|
|
33
|
+
'!=',
|
|
34
|
+
'>=',
|
|
35
|
+
'<=',
|
|
36
|
+
'is_one_of',
|
|
37
|
+
'is_not_one_of',
|
|
38
|
+
'starts_with',
|
|
39
|
+
'ends_with',
|
|
40
|
+
'contains_substring',
|
|
41
|
+
'does_not_contain_substring',
|
|
42
|
+
'array_contains',
|
|
43
|
+
]),
|
|
44
|
+
supportedTransformationFunctions: (0, support_1.supportedTransformationFunctions)(['round_to_0_dp', 'round_to_2_dp']),
|
|
45
|
+
});
|
|
46
|
+
exports.queryEngineConfig = queryEngineConfig;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.queryEngineConfig = void 0;
|
|
4
|
+
const support_1 = require("./support");
|
|
5
|
+
const queryEngineConfig = () => ({
|
|
6
|
+
origin: 'query-engine',
|
|
7
|
+
supportedFeatures: [
|
|
8
|
+
'simpleMaths',
|
|
9
|
+
'subquery',
|
|
10
|
+
'configManagerUi',
|
|
11
|
+
'sqlDefinedDataSet',
|
|
12
|
+
'roundedNumbers',
|
|
13
|
+
'aggregateMaths',
|
|
14
|
+
'encryptedDashboards',
|
|
15
|
+
'sqlViews',
|
|
16
|
+
],
|
|
17
|
+
supportedTimeTruncFunctions: (0, support_1.supportedTimeTruncFunctions)(['month', 'year', 'day', 'hour', 'minute', 'second']),
|
|
18
|
+
supportedAggregates: (0, support_1.supportedAggregates)(['sum', 'mean', 'min', 'max', 'count', 'countDistinct']),
|
|
19
|
+
supportedOperators: (0, support_1.supportedOperators)([
|
|
20
|
+
'>',
|
|
21
|
+
'<',
|
|
22
|
+
'=',
|
|
23
|
+
'!=',
|
|
24
|
+
'>=',
|
|
25
|
+
'<=',
|
|
26
|
+
'is_one_of',
|
|
27
|
+
'is_not_one_of',
|
|
28
|
+
'starts_with',
|
|
29
|
+
'ends_with',
|
|
30
|
+
'contains_substring',
|
|
31
|
+
'does_not_contain_substring',
|
|
32
|
+
]),
|
|
33
|
+
supportedTransformationFunctions: (0, support_1.supportedTransformationFunctions)(['round_to_0_dp', 'round_to_2_dp']),
|
|
34
|
+
});
|
|
35
|
+
exports.queryEngineConfig = queryEngineConfig;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.queryEngineConfig = void 0;
|
|
4
|
+
const support_1 = require("./support");
|
|
5
|
+
const queryEngineConfig = () => ({
|
|
6
|
+
origin: 'query-engine',
|
|
7
|
+
supportedFeatures: [
|
|
8
|
+
'simpleMaths',
|
|
9
|
+
'aggregateMaths',
|
|
10
|
+
'subquery',
|
|
11
|
+
'configManagerUi',
|
|
12
|
+
'switchField',
|
|
13
|
+
'roundedNumbers',
|
|
14
|
+
'sqlDefinedDataSet',
|
|
15
|
+
'encryptedDashboards',
|
|
16
|
+
'sqlViews',
|
|
17
|
+
],
|
|
18
|
+
supportedTimeTruncFunctions: (0, support_1.supportedTimeTruncFunctions)([
|
|
19
|
+
'month',
|
|
20
|
+
'year',
|
|
21
|
+
'quarter',
|
|
22
|
+
'week',
|
|
23
|
+
'day',
|
|
24
|
+
'hour',
|
|
25
|
+
'minute',
|
|
26
|
+
'second',
|
|
27
|
+
]),
|
|
28
|
+
supportedAggregates: (0, support_1.supportedAggregates)(['sum', 'mean', 'min', 'max', 'count', 'countDistinct']),
|
|
29
|
+
supportedOperators: (0, support_1.supportedOperators)([
|
|
30
|
+
'>',
|
|
31
|
+
'<',
|
|
32
|
+
'=',
|
|
33
|
+
'!=',
|
|
34
|
+
'>=',
|
|
35
|
+
'<=',
|
|
36
|
+
'is_one_of',
|
|
37
|
+
'is_not_one_of',
|
|
38
|
+
'starts_with',
|
|
39
|
+
'ends_with',
|
|
40
|
+
'contains_substring',
|
|
41
|
+
'does_not_contain_substring',
|
|
42
|
+
'array_contains',
|
|
43
|
+
]),
|
|
44
|
+
supportedTransformationFunctions: (0, support_1.supportedTransformationFunctions)(['round_to_0_dp', 'round_to_2_dp']),
|
|
45
|
+
});
|
|
46
|
+
exports.queryEngineConfig = queryEngineConfig;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.queryEngineConfig = void 0;
|
|
4
|
+
const support_1 = require("./support");
|
|
5
|
+
const queryEngineConfig = () => ({
|
|
6
|
+
origin: 'query-engine',
|
|
7
|
+
supportedFeatures: [
|
|
8
|
+
'simpleMaths',
|
|
9
|
+
'aggregateMaths',
|
|
10
|
+
'subquery',
|
|
11
|
+
'configManagerUi',
|
|
12
|
+
'switchField',
|
|
13
|
+
'roundedNumbers',
|
|
14
|
+
'sqlDefinedDataSet',
|
|
15
|
+
'encryptedDashboards',
|
|
16
|
+
'sqlViews',
|
|
17
|
+
],
|
|
18
|
+
supportedTimeTruncFunctions: (0, support_1.supportedTimeTruncFunctions)([
|
|
19
|
+
'month',
|
|
20
|
+
'year',
|
|
21
|
+
'quarter',
|
|
22
|
+
'week',
|
|
23
|
+
'day',
|
|
24
|
+
'hour',
|
|
25
|
+
'minute',
|
|
26
|
+
'second',
|
|
27
|
+
]),
|
|
28
|
+
supportedAggregates: (0, support_1.supportedAggregates)(['sum', 'mean', 'min', 'max', 'count', 'countDistinct']),
|
|
29
|
+
supportedOperators: (0, support_1.supportedOperators)([
|
|
30
|
+
'>',
|
|
31
|
+
'<',
|
|
32
|
+
'=',
|
|
33
|
+
'!=',
|
|
34
|
+
'>=',
|
|
35
|
+
'<=',
|
|
36
|
+
'is_one_of',
|
|
37
|
+
'is_not_one_of',
|
|
38
|
+
'starts_with',
|
|
39
|
+
'ends_with',
|
|
40
|
+
'contains_substring',
|
|
41
|
+
'does_not_contain_substring',
|
|
42
|
+
'array_contains',
|
|
43
|
+
]),
|
|
44
|
+
supportedTransformationFunctions: (0, support_1.supportedTransformationFunctions)(['round_to_0_dp', 'round_to_2_dp']),
|
|
45
|
+
});
|
|
46
|
+
exports.queryEngineConfig = queryEngineConfig;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.queryEngineConfig = void 0;
|
|
4
|
+
const support_1 = require("./support");
|
|
5
|
+
const queryEngineConfig = () => ({
|
|
6
|
+
origin: 'query-engine',
|
|
7
|
+
supportedFeatures: [
|
|
8
|
+
'simpleMaths',
|
|
9
|
+
'aggregateMaths',
|
|
10
|
+
'subquery',
|
|
11
|
+
'configManagerUi',
|
|
12
|
+
'sqlDefinedDataSet',
|
|
13
|
+
'roundedNumbers',
|
|
14
|
+
'switchField',
|
|
15
|
+
'encryptedDashboards',
|
|
16
|
+
'sqlViews',
|
|
17
|
+
],
|
|
18
|
+
supportedTimeTruncFunctions: (0, support_1.supportedTimeTruncFunctions)([
|
|
19
|
+
'month',
|
|
20
|
+
'year',
|
|
21
|
+
'quarter',
|
|
22
|
+
'week',
|
|
23
|
+
'day',
|
|
24
|
+
'hour',
|
|
25
|
+
'minute',
|
|
26
|
+
'second',
|
|
27
|
+
]),
|
|
28
|
+
supportedAggregates: (0, support_1.supportedAggregates)(['sum', 'mean', 'min', 'max', 'count', 'countDistinct']),
|
|
29
|
+
supportedOperators: (0, support_1.supportedOperators)([
|
|
30
|
+
'>',
|
|
31
|
+
'<',
|
|
32
|
+
'=',
|
|
33
|
+
'!=',
|
|
34
|
+
'>=',
|
|
35
|
+
'<=',
|
|
36
|
+
'is_one_of',
|
|
37
|
+
'is_not_one_of',
|
|
38
|
+
'starts_with',
|
|
39
|
+
'ends_with',
|
|
40
|
+
'contains_substring',
|
|
41
|
+
'does_not_contain_substring',
|
|
42
|
+
]),
|
|
43
|
+
supportedTransformationFunctions: (0, support_1.supportedTransformationFunctions)(['round_to_0_dp', 'round_to_2_dp']),
|
|
44
|
+
});
|
|
45
|
+
exports.queryEngineConfig = queryEngineConfig;
|