@budibase/frontend-core 3.23.19 → 3.23.22

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.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/src/api/queries.ts +12 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@budibase/frontend-core",
3
- "version": "3.23.19",
3
+ "version": "3.23.22",
4
4
  "description": "Budibase frontend core libraries used in builder and client",
5
5
  "author": "Budibase",
6
6
  "license": "MPL-2.0",
@@ -17,5 +17,5 @@
17
17
  "shortid": "2.2.15",
18
18
  "socket.io-client": "^4.7.5"
19
19
  },
20
- "gitHead": "f7d6fb730b00e7e5cd91883b5b1b15a7f6ecda1e"
20
+ "gitHead": "05aacdf00de25de6b8730e11393a62bcafd73a16"
21
21
  }
@@ -6,6 +6,8 @@ import {
6
6
  FindQueryResponse,
7
7
  ImportRestQueryRequest,
8
8
  ImportRestQueryResponse,
9
+ ImportRestQueryInfoRequest,
10
+ ImportRestQueryInfoResponse,
9
11
  PreviewQueryRequest,
10
12
  PreviewQueryResponse,
11
13
  SaveQueryRequest,
@@ -26,6 +28,9 @@ export interface QueryEndpoints {
26
28
  importQueries: (
27
29
  data: ImportRestQueryRequest
28
30
  ) => Promise<ImportRestQueryResponse>
31
+ getImportInfo: (
32
+ data: ImportRestQueryInfoRequest
33
+ ) => Promise<ImportRestQueryInfoResponse>
29
34
  }
30
35
 
31
36
  export const buildQueryEndpoints = (API: BaseAPIClient): QueryEndpoints => ({
@@ -97,6 +102,13 @@ export const buildQueryEndpoints = (API: BaseAPIClient): QueryEndpoints => ({
97
102
  })
98
103
  },
99
104
 
105
+ getImportInfo: async data => {
106
+ return await API.post({
107
+ url: "/api/queries/import/info",
108
+ body: data,
109
+ })
110
+ },
111
+
100
112
  /**
101
113
  * Runs a query with test parameters to see the result.
102
114
  * @param query the query to run