semanticdb-core 1.0.17 → 1.0.19

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.
@@ -0,0 +1,13 @@
1
+ export declare interface DataSourceItemType {
2
+ id: string;
3
+ client: 'clickhouse' | 'mysql' | 'postgres' | 'starrocks' | 'oracle' | 'impala' | 'sybase';
4
+ connection: {
5
+ database: string;
6
+ host: string;
7
+ port: number;
8
+ user?: string;
9
+ password?: string;
10
+ options?: string;
11
+ };
12
+ readonly?: boolean;
13
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -9,9 +9,9 @@ exports.findOneCustomFunction = void 0;
9
9
  * @returns
10
10
  */
11
11
  const findOneCustomFunction = (schemaID, operator, customFunctions) => {
12
- let func = customFunctions[operator];
12
+ let func = customFunctions[`${schemaID}_${operator}`];
13
13
  if (!func)
14
- func = customFunctions[`${schemaID}_${operator}`];
14
+ func = customFunctions[operator];
15
15
  return func;
16
16
  };
17
17
  exports.findOneCustomFunction = findOneCustomFunction;
package/dist/index.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  export * from './schema/property';
2
2
  export * from './schema/schema';
3
3
  export * from './common/representation';
4
+ export * from './common/dataSourceItem';
4
5
  export * from './schema/schema.utils';
5
6
  export * from './schema/property.utils';
6
7
  export { getDrilldownDimensions } from './schema/schema.utils/getDrilldownDimensions';
package/dist/index.js CHANGED
@@ -18,6 +18,7 @@ exports.getDrilldownDimensions = void 0;
18
18
  __exportStar(require("./schema/property"), exports);
19
19
  __exportStar(require("./schema/schema"), exports);
20
20
  __exportStar(require("./common/representation"), exports);
21
+ __exportStar(require("./common/dataSourceItem"), exports);
21
22
  __exportStar(require("./schema/schema.utils"), exports);
22
23
  __exportStar(require("./schema/property.utils"), exports);
23
24
  var getDrilldownDimensions_1 = require("./schema/schema.utils/getDrilldownDimensions");
@@ -57,6 +57,7 @@ export interface PropertyTypeDraft {
57
57
  startLevel?: string;
58
58
  representation?: RepresentationType;
59
59
  delimiter?: boolean;
60
+ copyable?: boolean;
60
61
  };
61
62
  can_drilldown?: boolean;
62
63
  unit?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "semanticdb-core",
3
- "version": "1.0.17",
3
+ "version": "1.0.19",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [