@vizzly/semantic-layer-public
Advanced tools
Comparing version 0.0.219 to 0.0.221
@@ -74,2 +74,3 @@ "use strict"; | ||
dateFormat: 'MMMM YYYY', | ||
dataTypeOutput: 'date_time', | ||
}, | ||
@@ -79,2 +80,3 @@ year: { | ||
dateFormat: 'YYYY', | ||
dataTypeOutput: 'date_time', | ||
}, | ||
@@ -84,2 +86,3 @@ quarter: { | ||
dateFormat: 'quarter', | ||
dataTypeOutput: 'date_time', | ||
}, | ||
@@ -89,2 +92,3 @@ week: { | ||
dateFormat: 'week', | ||
dataTypeOutput: 'date_time', | ||
}, | ||
@@ -94,2 +98,3 @@ day: { | ||
dateFormat: 'DD-MM-YYYY', | ||
dataTypeOutput: 'date_time', | ||
}, | ||
@@ -99,2 +104,3 @@ hourOfDayOnly: { | ||
dateFormat: 'hour_of_day', | ||
dataTypeOutput: 'date_time', | ||
}, | ||
@@ -104,2 +110,3 @@ weekOfYearOnly: { | ||
dateFormat: 'week_of_year', | ||
dataTypeOutput: 'number', | ||
}, | ||
@@ -109,2 +116,3 @@ dayOfWeekOnly: { | ||
dateFormat: 'day_of_week_iso', | ||
dataTypeOutput: 'number', | ||
}, | ||
@@ -114,2 +122,3 @@ monthOfYearOnly: { | ||
dateFormat: 'month_of_year', | ||
dataTypeOutput: 'number', | ||
}, | ||
@@ -119,2 +128,3 @@ dayOfMonthOnly: { | ||
dateFormat: 'day_of_month', | ||
dataTypeOutput: 'number', | ||
}, | ||
@@ -124,2 +134,3 @@ second: { | ||
dateFormat: 'hh:mm:ss', | ||
dataTypeOutput: 'date_time', | ||
}, | ||
@@ -129,2 +140,3 @@ hour: { | ||
dateFormat: 'hh:mm', | ||
dataTypeOutput: 'date_time', | ||
}, | ||
@@ -134,2 +146,3 @@ minute: { | ||
dateFormat: 'hh:mm', | ||
dataTypeOutput: 'date_time', | ||
}, | ||
@@ -136,0 +149,0 @@ }; |
@@ -27,6 +27,7 @@ import { NormalizedDataType } from '@vizzly/sqlbuilder-public'; | ||
publicName: string; | ||
dataTypeOutput: 'number' | 'boolean' | 'string' | 'date_time' | 'string[]'; | ||
/** | ||
* Once from the query engine, what is | ||
* the most appropriate format for it | ||
* to be displayed in? | ||
* @deprecated | ||
* formatting function to use is determined | ||
* by the frontend from function -> formatter id | ||
* */ | ||
@@ -33,0 +34,0 @@ dateFormat: DateTimeFormat | (string & {}); |
@@ -15,17 +15,2 @@ "use strict"; | ||
const SUPPORTED_SECURE_FILTER_OPS = Object.keys(constants_2.supportedOperatorsConstants); | ||
const SUPPORTED_ALLOWED_GRANULARITIES = [ | ||
'second', | ||
'minute', | ||
'hour', | ||
'day', | ||
'week', | ||
'month', | ||
'quarter', | ||
'year', | ||
'dayOfMonthOnly', | ||
'dayOfWeekOnly', | ||
'weekOfYearOnly', | ||
'hourOfDayOnly', | ||
'monthOfYearOnly', | ||
]; | ||
const SUPPORTED_JOINS = ['rightJoin', 'leftJoin', 'innerJoin', 'outerJoin', 'leftOuterJoin', 'rightOuterJoin']; | ||
@@ -63,3 +48,3 @@ exports.ALLOWED_ID_REGEX = /^[a-zA-Z0-9_+:\/=\-\s]*$/; | ||
allowedGranularities: joi_1.default.array() | ||
.items(joi_1.default.string().valid(...SUPPORTED_ALLOWED_GRANULARITIES)) | ||
.items(joi_1.default.string().valid(...Object.keys((0, getQueryEngineConfig_1.getQueryEngineConfig)(client).supportedTimeTruncFunctions))) | ||
.optional(), | ||
@@ -66,0 +51,0 @@ allowedOperators: joi_1.default.alternatives() |
{ | ||
"name": "@vizzly/semantic-layer-public", | ||
"version": "0.0.219", | ||
"version": "0.0.221", | ||
"source": "src/index.ts", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
74125
1907