@budibase/frontend-core 2.9.33-alpha.15 → 2.9.33-alpha.16
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 +4 -4
- package/src/api/user.js +6 -8
- package/src/constants.js +5 -0
package/package.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@budibase/frontend-core",
|
|
3
|
-
"version": "2.9.33-alpha.
|
|
3
|
+
"version": "2.9.33-alpha.16",
|
|
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.9.33-alpha.
|
|
10
|
-
"@budibase/shared-core": "2.9.33-alpha.
|
|
9
|
+
"@budibase/bbui": "2.9.33-alpha.16",
|
|
10
|
+
"@budibase/shared-core": "2.9.33-alpha.16",
|
|
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": "457d3a376f77c3d6dcfa12fc0dae21c3e6c93d4e"
|
|
17
17
|
}
|
package/src/api/user.js
CHANGED
|
@@ -144,8 +144,8 @@ export const buildUserEndpoints = API => ({
|
|
|
144
144
|
body: {
|
|
145
145
|
email,
|
|
146
146
|
userInfo: {
|
|
147
|
-
admin: admin ? { global: true } : undefined,
|
|
148
|
-
builder: builder ? { global: true } : undefined,
|
|
147
|
+
admin: admin?.global ? { global: true } : undefined,
|
|
148
|
+
builder: builder?.global ? { global: true } : undefined,
|
|
149
149
|
apps: apps ? apps : undefined,
|
|
150
150
|
},
|
|
151
151
|
},
|
|
@@ -156,14 +156,13 @@ export const buildUserEndpoints = API => ({
|
|
|
156
156
|
return await API.post({
|
|
157
157
|
url: "/api/global/users/onboard",
|
|
158
158
|
body: payload.map(invite => {
|
|
159
|
-
const { email, admin, builder, apps
|
|
159
|
+
const { email, admin, builder, apps } = invite
|
|
160
160
|
return {
|
|
161
161
|
email,
|
|
162
162
|
userInfo: {
|
|
163
|
-
admin
|
|
164
|
-
builder
|
|
163
|
+
admin,
|
|
164
|
+
builder,
|
|
165
165
|
apps: apps ? apps : undefined,
|
|
166
|
-
appBuilders,
|
|
167
166
|
},
|
|
168
167
|
}
|
|
169
168
|
}),
|
|
@@ -176,12 +175,11 @@ export const buildUserEndpoints = API => ({
|
|
|
176
175
|
* @param invite the invite code sent in the email
|
|
177
176
|
*/
|
|
178
177
|
updateUserInvite: async invite => {
|
|
179
|
-
console.log(invite)
|
|
180
178
|
await API.post({
|
|
181
179
|
url: `/api/global/users/invite/update/${invite.code}`,
|
|
182
180
|
body: {
|
|
183
181
|
apps: invite.apps,
|
|
184
|
-
|
|
182
|
+
builder: invite.builder,
|
|
185
183
|
},
|
|
186
184
|
})
|
|
187
185
|
},
|
package/src/constants.js
CHANGED
|
@@ -23,6 +23,11 @@ export const BudibaseRoles = {
|
|
|
23
23
|
Admin: "admin",
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
+
export const BudibaseRoleOptionsOld = [
|
|
27
|
+
{ label: "Developer", value: BudibaseRoles.Developer },
|
|
28
|
+
{ label: "Member", value: BudibaseRoles.AppUser },
|
|
29
|
+
{ label: "Admin", value: BudibaseRoles.Admin },
|
|
30
|
+
]
|
|
26
31
|
export const BudibaseRoleOptions = [
|
|
27
32
|
{ label: "Member", value: BudibaseRoles.AppUser },
|
|
28
33
|
{ label: "Admin", value: BudibaseRoles.Admin },
|