@budibase/frontend-core 1.1.32-alpha.2 → 1.1.32-alpha.3
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 +3 -3
- package/src/api/user.js +11 -0
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@budibase/frontend-core",
|
|
3
|
-
"version": "1.1.32-alpha.
|
|
3
|
+
"version": "1.1.32-alpha.3",
|
|
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": "1.1.32-alpha.
|
|
9
|
+
"@budibase/bbui": "1.1.32-alpha.3",
|
|
10
10
|
"lodash": "^4.17.21",
|
|
11
11
|
"svelte": "^3.46.2"
|
|
12
12
|
},
|
|
13
|
-
"gitHead": "
|
|
13
|
+
"gitHead": "1b7322e51adc38e71f59caa2daf057304df07771"
|
|
14
14
|
}
|
package/src/api/user.js
CHANGED
|
@@ -172,4 +172,15 @@ export const buildUserEndpoints = API => ({
|
|
|
172
172
|
},
|
|
173
173
|
})
|
|
174
174
|
},
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* Accepts an invite to join the platform and creates a user.
|
|
178
|
+
* @param inviteCode the invite code sent in the email
|
|
179
|
+
* @param password the password for the newly created user
|
|
180
|
+
*/
|
|
181
|
+
getUserCountByApp: async ({ appId }) => {
|
|
182
|
+
return await API.get({
|
|
183
|
+
url: `/api/global/users/count/${appId}`,
|
|
184
|
+
})
|
|
185
|
+
},
|
|
175
186
|
})
|