@budibase/frontend-core 2.7.33 → 2.7.34-alpha.1

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/package.json CHANGED
@@ -1,17 +1,17 @@
1
1
  {
2
2
  "name": "@budibase/frontend-core",
3
- "version": "2.7.33",
3
+ "version": "2.7.34-alpha.1",
4
4
  "description": "Budibase frontend core libraries used in builder and client",
5
5
  "author": "Budibase",
6
6
  "license": "MPL-2.0",
7
7
  "svelte": "src/index.js",
8
8
  "dependencies": {
9
- "@budibase/bbui": "2.7.33",
10
- "@budibase/shared-core": "2.7.33",
9
+ "@budibase/bbui": "2.7.34-alpha.1",
10
+ "@budibase/shared-core": "2.7.34-alpha.1",
11
11
  "dayjs": "^1.11.7",
12
12
  "lodash": "^4.17.21",
13
13
  "socket.io-client": "^4.6.1",
14
14
  "svelte": "^3.46.2"
15
15
  },
16
- "gitHead": "36a5d6ebbe381fd2dc578abade0c4a06dd620740"
16
+ "gitHead": "81e44cb279211680b37ea21c319ca2991b01bb71"
17
17
  }
@@ -26,13 +26,16 @@ export const buildDatasourceEndpoints = API => ({
26
26
  * Creates a datasource
27
27
  * @param datasource the datasource to create
28
28
  * @param fetchSchema whether to fetch the schema or not
29
+ * @param tablesFilter a list of tables to actually fetch rather than simply
30
+ * all that are accessible.
29
31
  */
30
- createDatasource: async ({ datasource, fetchSchema }) => {
32
+ createDatasource: async ({ datasource, fetchSchema, tablesFilter }) => {
31
33
  return await API.post({
32
34
  url: "/api/datasources",
33
35
  body: {
34
36
  datasource,
35
37
  fetchSchema,
38
+ tablesFilter,
36
39
  },
37
40
  })
38
41
  },
@@ -69,4 +72,15 @@ export const buildDatasourceEndpoints = API => ({
69
72
  body: { datasource },
70
73
  })
71
74
  },
75
+
76
+ /**
77
+ * Fetch table names available within the datasource, for filtering out undesired tables
78
+ * @param datasource the datasource configuration to use for fetching tables
79
+ */
80
+ fetchInfoForDatasource: async datasource => {
81
+ return await API.post({
82
+ url: `/api/datasources/info`,
83
+ body: { datasource },
84
+ })
85
+ },
72
86
  })