semanticdb-core 1.0.42 → 1.0.44

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.
@@ -98,16 +98,7 @@ function getMinGran(date, flag = false) {
98
98
  }
99
99
  return 'day';
100
100
  }
101
- if (date.$options === 'YTD') {
102
- return 'year';
103
- }
104
- if (date.$options === 'QTD') {
105
- return 'quarter';
106
- }
107
- if (date.$options === 'MTD') {
108
- return 'month';
109
- }
110
- if (date.$options === 'DTD') {
101
+ if (typeof date.$options === 'string' && date.$options.endsWith('TD')) {
111
102
  return 'day';
112
103
  }
113
104
  const checkLTEValid = (lte, tw) => {
@@ -23,6 +23,7 @@ export interface SchemaTypeDraft {
23
23
  drilldown?: GroupbyItemType[];
24
24
  projections?: any[];
25
25
  etl?: any;
26
+ lastEventDate?: string;
26
27
  }
27
28
  export interface SchemaType extends SchemaTypeDraft {
28
29
  properties: PropertyType[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "semanticdb-core",
3
- "version": "1.0.42",
3
+ "version": "1.0.44",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [