@budibase/frontend-core 3.2.39 → 3.2.41
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 +2 -2
- package/src/api/attachments.ts +1 -0
- package/src/api/index.ts +2 -0
- package/src/api/self.ts +1 -1
- package/src/api/user.ts +5 -9
- package/src/index.ts +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@budibase/frontend-core",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.41",
|
|
4
4
|
"description": "Budibase frontend core libraries used in builder and client",
|
|
5
5
|
"author": "Budibase",
|
|
6
6
|
"license": "MPL-2.0",
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
"devDependencies": {
|
|
21
21
|
"svelte-check": "^4.1.0"
|
|
22
22
|
},
|
|
23
|
-
"gitHead": "
|
|
23
|
+
"gitHead": "53e10e4de05dd034dfae7e6b7e72a875b8ed99ea"
|
|
24
24
|
}
|
package/src/api/attachments.ts
CHANGED
package/src/api/index.ts
CHANGED
|
@@ -46,6 +46,8 @@ import { buildLogsEndpoints } from "./logs"
|
|
|
46
46
|
import { buildMigrationEndpoints } from "./migrations"
|
|
47
47
|
import { buildRowActionEndpoints } from "./rowActions"
|
|
48
48
|
|
|
49
|
+
export type { APIClient } from "./types"
|
|
50
|
+
|
|
49
51
|
/**
|
|
50
52
|
* Random identifier to uniquely identify a session in a tab. This is
|
|
51
53
|
* used to determine the originator of calls to the API, which is in
|
package/src/api/self.ts
CHANGED
|
@@ -13,7 +13,7 @@ export interface SelfEndpoints {
|
|
|
13
13
|
generateAPIKey: () => Promise<string | undefined>
|
|
14
14
|
fetchDeveloperInfo: () => Promise<FetchAPIKeyResponse>
|
|
15
15
|
fetchBuilderSelf: () => Promise<GetGlobalSelfResponse>
|
|
16
|
-
fetchSelf: () => Promise<AppSelfResponse>
|
|
16
|
+
fetchSelf: () => Promise<AppSelfResponse | null>
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
export const buildSelfEndpoints = (API: BaseAPIClient): SelfEndpoints => ({
|
package/src/api/user.ts
CHANGED
|
@@ -21,11 +21,12 @@ import {
|
|
|
21
21
|
SaveUserResponse,
|
|
22
22
|
SearchUsersRequest,
|
|
23
23
|
SearchUsersResponse,
|
|
24
|
+
UnsavedUser,
|
|
24
25
|
UpdateInviteRequest,
|
|
25
26
|
UpdateInviteResponse,
|
|
26
27
|
UpdateSelfMetadataRequest,
|
|
27
28
|
UpdateSelfMetadataResponse,
|
|
28
|
-
|
|
29
|
+
UserIdentifier,
|
|
29
30
|
} from "@budibase/types"
|
|
30
31
|
import { BaseAPIClient } from "./types"
|
|
31
32
|
|
|
@@ -38,14 +39,9 @@ export interface UserEndpoints {
|
|
|
38
39
|
createAdminUser: (
|
|
39
40
|
user: CreateAdminUserRequest
|
|
40
41
|
) => Promise<CreateAdminUserResponse>
|
|
41
|
-
saveUser: (user:
|
|
42
|
+
saveUser: (user: UnsavedUser) => Promise<SaveUserResponse>
|
|
42
43
|
deleteUser: (userId: string) => Promise<DeleteUserResponse>
|
|
43
|
-
deleteUsers: (
|
|
44
|
-
users: Array<{
|
|
45
|
-
userId: string
|
|
46
|
-
email: string
|
|
47
|
-
}>
|
|
48
|
-
) => Promise<BulkUserDeleted | undefined>
|
|
44
|
+
deleteUsers: (users: UserIdentifier[]) => Promise<BulkUserDeleted | undefined>
|
|
49
45
|
onboardUsers: (data: InviteUsersRequest) => Promise<InviteUsersResponse>
|
|
50
46
|
getUserInvite: (code: string) => Promise<CheckInviteResponse>
|
|
51
47
|
getUserInvites: () => Promise<GetUserInvitesResponse>
|
|
@@ -60,7 +56,7 @@ export interface UserEndpoints {
|
|
|
60
56
|
getAccountHolder: () => Promise<LookupAccountHolderResponse>
|
|
61
57
|
searchUsers: (data: SearchUsersRequest) => Promise<SearchUsersResponse>
|
|
62
58
|
createUsers: (
|
|
63
|
-
users:
|
|
59
|
+
users: UnsavedUser[],
|
|
64
60
|
groups: any[]
|
|
65
61
|
) => Promise<BulkUserCreated | undefined>
|
|
66
62
|
updateUserInvite: (
|