@emqx/shared-ui-utils 0.0.21 → 0.0.23

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.
package/dist/tools.d.ts CHANGED
@@ -40,3 +40,14 @@ export declare const getBridgeKey: ({ type, name }: {
40
40
  name: string;
41
41
  }) => string;
42
42
  export declare const checkNeedRequestAPI: (isChanged?: boolean) => boolean;
43
+ interface SQLKeywords {
44
+ fieldStr: string;
45
+ fromStr: string;
46
+ whereStr: string;
47
+ }
48
+ /**
49
+ * If there is FOREACH in the SQL statement
50
+ * put the FOREACH and the following statements into the SELECT
51
+ */
52
+ export declare const getKeywordsFromSQL: (sqlStr: string) => SQLKeywords;
53
+ export {};
@@ -1,3 +1,9 @@
1
+ declare enum BatchSettingTypes {
2
+ IoTDB = "iotdb",
3
+ TDengine = "tdengine",
4
+ InfluxDB = "influxdb",
5
+ Datalayers = "datalayers"
6
+ }
1
7
  export declare const useBatchSettings: (locale?: 'zh' | 'en') => {
2
8
  filenameMap: {
3
9
  influxdb: string;
@@ -11,12 +17,14 @@ export declare const useBatchSettings: (locale?: 'zh' | 'en') => {
11
17
  influxdb: string;
12
18
  datalayers: string;
13
19
  };
20
+ getTemplateContent: (type: BatchSettingTypes, isTable?: boolean) => string;
14
21
  handleDownloadTemp: (template?: string, filename?: string) => void;
15
22
  readFileAndParse: (file: File, maxRows: number) => Promise<string[][]>;
16
- processIoTDBData: (data: string[][]) => Promise<Array<Record<string, any>>>;
23
+ processIoTDBData: (data: string[][], isTable?: boolean) => Promise<Array<Record<string, any>>>;
17
24
  processTDengineData: (data: string[][]) => Promise<string>;
18
25
  processInfluxDBData: (data: string[][]) => Promise<{
19
26
  key: string;
20
27
  value: string;
21
28
  }[]>;
22
29
  };
30
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emqx/shared-ui-utils",
3
- "version": "0.0.21",
3
+ "version": "0.0.23",
4
4
  "homepage": "https://emqx.io",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {