Update user endpoints

This commit is contained in:
Andrew Kingston 2024-12-05 16:22:31 +00:00
parent 00cbee50de
commit 557406a416
No known key found for this signature in database
1 changed files with 5 additions and 2 deletions

View File

@ -13,7 +13,8 @@ import {
InviteUsersResponse,
SaveUserResponse,
SearchUsersRequest,
UpdateSelfRequest,
UpdateSelfMetadataRequest,
UpdateSelfMetadataResponse,
User,
} from "@budibase/types"
import { BaseAPIClient } from "./types"
@ -21,7 +22,9 @@ import { BaseAPIClient } from "./types"
export interface UserEndpoints {
getUsers: () => Promise<User[]>
getUser: (userId: string) => Promise<User>
updateOwnMetadata: (metadata: UpdateSelfRequest) => Promise<void>
updateOwnMetadata: (
metadata: UpdateSelfMetadataRequest
) => Promise<UpdateSelfMetadataResponse>
createAdminUser: (
user: CreateAdminUserRequest
) => Promise<CreateAdminUserResponse>