@vizzly/semantic-layer-public 0.0.221 → 0.0.224
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.
|
@@ -25,6 +25,9 @@ const queryEngineConfig = () => ({
|
|
|
25
25
|
'hour',
|
|
26
26
|
'minute',
|
|
27
27
|
'second',
|
|
28
|
+
'dayOfMonthOnly',
|
|
29
|
+
'weekOfYearOnly',
|
|
30
|
+
'monthOfYearOnly',
|
|
28
31
|
]),
|
|
29
32
|
supportedAggregates: (0, support_1.supportedAggregates)(['sum', 'mean', 'min', 'max', 'count', 'countDistinct']),
|
|
30
33
|
supportedOperators: (0, support_1.supportedOperators)([
|
|
@@ -118,6 +118,13 @@ const baseDataSetSchema = (fieldSchema) => ({
|
|
|
118
118
|
.optional()
|
|
119
119
|
.description('Optional - For pre-aggregated data sets or SQL views, provide a list of data sets that are relied upon.'),
|
|
120
120
|
fields: joi_1.default.array().min(1).items(fieldSchema).unique('id').message('Field IDs must be unique').required(),
|
|
121
|
+
permanentFilters: joi_1.default.object({
|
|
122
|
+
type: joi_1.default.valid('andWhere', 'orWhere', 'where'),
|
|
123
|
+
// TODO;
|
|
124
|
+
// more validation on the list
|
|
125
|
+
// of filters provided here.
|
|
126
|
+
value: joi_1.default.array(),
|
|
127
|
+
}),
|
|
121
128
|
secureFilterGuards: joi_1.default.array().items(secureFilterGuardSchema).optional(),
|
|
122
129
|
});
|
|
123
130
|
const _sqlDataSetSchema = (fieldSchema) => joi_1.default.object(Object.assign(Object.assign({}, baseDataSetSchema(fieldSchema)), { joins: joi_1.default.array()
|
package/dist/types.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vizzly/semantic-layer-public",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.224",
|
|
4
4
|
"source": "src/index.ts",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -21,10 +21,10 @@
|
|
|
21
21
|
"jest": "^29.7.0",
|
|
22
22
|
"ts-jest": "^29.1.2",
|
|
23
23
|
"typescript": "^5.4.5",
|
|
24
|
-
"@vizzly/sqlbuilder-public": "0.1.
|
|
24
|
+
"@vizzly/sqlbuilder-public": "0.1.29"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
27
|
-
"@vizzly/sqlbuilder-public": "0.1.
|
|
27
|
+
"@vizzly/sqlbuilder-public": "0.1.29",
|
|
28
28
|
"@vizzly/joi": "^17.11.0"
|
|
29
29
|
}
|
|
30
30
|
}
|