semanticdb-core 1.1.17 → 1.1.18

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.
@@ -1,3 +1,3 @@
1
1
  import { GroupbyItemType, LogicformType } from '../../logicform/logicform';
2
2
  import { SchemaType } from '../schema';
3
- export declare const getDrilldownDimensions: (schema: SchemaType, schemasDict: Record<string, SchemaType>, logicform?: LogicformType) => Promise<GroupbyItemType[]>;
3
+ export declare const getDrilldownDimensions: (schema: SchemaType, schemasDict: Record<string, SchemaType>, logicform?: LogicformType, usage?: "drilldown" | "analyze") => Promise<GroupbyItemType[]>;
@@ -15,7 +15,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.getDrilldownDimensions = void 0;
16
16
  const logicform_utils_1 = require("../../logicform/logicform.utils");
17
17
  const moment_1 = __importDefault(require("moment"));
18
- const getDrilldownDimensions = (schema, schemasDict, logicform) => __awaiter(void 0, void 0, void 0, function* () {
18
+ const getDrilldownDimensions = (schema_1, schemasDict_1, logicform_1, ...args_1) => __awaiter(void 0, [schema_1, schemasDict_1, logicform_1, ...args_1], void 0, function* (schema, schemasDict, logicform, usage = 'drilldown') {
19
19
  if (!schema)
20
20
  return []; // 如果没有schema,代表logicform result报错了
21
21
  if (logicform && schema.analyzer && schema.analyzer.drilldown) {
@@ -38,7 +38,7 @@ const getDrilldownDimensions = (schema, schemasDict, logicform) => __awaiter(voi
38
38
  let drilldownProps = [];
39
39
  // 一个递归函数
40
40
  const addToArrayWithProperty = (property, prefix, schema) => {
41
- if (property.is_analyzable === false)
41
+ if (usage === 'analyze' && property.is_analyzable === false)
42
42
  return;
43
43
  const pushToPropNames = (propertyName, level, prefix, schema) => {
44
44
  const groupbyItem = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "semanticdb-core",
3
- "version": "1.1.17",
3
+ "version": "1.1.18",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [