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