@budibase/frontend-core 2.6.19-alpha.1 → 2.6.19-alpha.11
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.6.19-alpha.
|
|
3
|
+
"version": "2.6.19-alpha.11",
|
|
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.6.19-alpha.
|
|
10
|
-
"@budibase/shared-core": "2.6.19-alpha.
|
|
9
|
+
"@budibase/bbui": "2.6.19-alpha.11",
|
|
10
|
+
"@budibase/shared-core": "2.6.19-alpha.11",
|
|
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": "
|
|
16
|
+
"gitHead": "01a98bcf8dbedde393d2ad3b4019da79826ba2a1"
|
|
17
17
|
}
|
package/src/api/tables.js
CHANGED
|
@@ -62,13 +62,15 @@ export const buildTableEndpoints = API => ({
|
|
|
62
62
|
/**
|
|
63
63
|
* Imports data into an existing table
|
|
64
64
|
* @param tableId the table ID to import to
|
|
65
|
-
* @param
|
|
65
|
+
* @param rows the data import object
|
|
66
|
+
* @param identifierFields column names to be used as keys for overwriting existing rows
|
|
66
67
|
*/
|
|
67
|
-
importTableData: async ({ tableId, rows }) => {
|
|
68
|
+
importTableData: async ({ tableId, rows, identifierFields }) => {
|
|
68
69
|
return await API.post({
|
|
69
70
|
url: `/api/tables/${tableId}/import`,
|
|
70
71
|
body: {
|
|
71
72
|
rows,
|
|
73
|
+
identifierFields,
|
|
72
74
|
},
|
|
73
75
|
})
|
|
74
76
|
},
|
|
@@ -33,6 +33,7 @@
|
|
|
33
33
|
|
|
34
34
|
export let API = null
|
|
35
35
|
export let tableId = null
|
|
36
|
+
export let tableType = null
|
|
36
37
|
export let schemaOverrides = null
|
|
37
38
|
export let allowAddRows = true
|
|
38
39
|
export let allowAddColumns = true
|
|
@@ -62,6 +63,7 @@
|
|
|
62
63
|
rand,
|
|
63
64
|
config,
|
|
64
65
|
tableId: tableIdStore,
|
|
66
|
+
tableType,
|
|
65
67
|
schemaOverrides: schemaOverridesStore,
|
|
66
68
|
}
|
|
67
69
|
context = { ...context, ...createEventManagers() }
|