@vizzly/semantic-layer-public 0.0.108 → 0.0.110

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.
@@ -88,6 +88,10 @@ exports.timeDimensionsConstants = {
88
88
  publicName: 'Daily',
89
89
  dateFormat: 'DD-MM-YYYY',
90
90
  },
91
+ hourOfDayOnly: {
92
+ publicName: 'Hour of day',
93
+ dateFormat: 'hour_of_day',
94
+ },
91
95
  weekOfYearOnly: {
92
96
  publicName: 'Week of year',
93
97
  dateFormat: 'week_of_year',
@@ -2,9 +2,13 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.queryEngineConfig = void 0;
4
4
  const support_1 = require("./support");
5
- const sqldialects_1 = require("@vizzly/sqldialects");
5
+ const isKustoFlavor = () => {
6
+ var _a;
7
+ if (typeof process === 'undefined')
8
+ return false;
9
+ return ((_a = process.env['VIZZLY_MICROSOFT_FLAVOR']) === null || _a === void 0 ? void 0 : _a.toUpperCase()) === 'KUSTO';
10
+ };
6
11
  const queryEngineConfig = () => {
7
- const dialect = (0, sqldialects_1.getDialect)({ type: 'microsoftSQLServer' });
8
12
  return {
9
13
  origin: 'query-engine',
10
14
  supportedFeatures: [
@@ -27,7 +31,7 @@ const queryEngineConfig = () => {
27
31
  'day',
28
32
  'hour',
29
33
  'minute',
30
- ...(dialect.context.flavour === 'kusto' ? [] : ['second']),
34
+ ...(isKustoFlavor() ? [] : ['second']),
31
35
  ]),
32
36
  supportedAggregates: (0, support_1.supportedAggregates)(['sum', 'mean', 'min', 'max', 'count', 'countDistinct']),
33
37
  supportedOperators: (0, support_1.supportedOperators)([
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vizzly/semantic-layer-public",
3
- "version": "0.0.108",
3
+ "version": "0.0.110",
4
4
  "source": "src/index.ts",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -24,9 +24,9 @@
24
24
  "ts-jest": "^29.1.2",
25
25
  "typescript": "^5.4.5",
26
26
  "uuid": "^9.0.1",
27
- "@vizzly/sqlbuilder-public": "0.1.1"
27
+ "@vizzly/sqlbuilder-public": "0.1.7"
28
28
  },
29
29
  "peerDependencies": {
30
- "@vizzly/sqlbuilder-public": "0.1.1"
30
+ "@vizzly/sqlbuilder-public": "0.1.7"
31
31
  }
32
32
  }