Update user endpoints
This commit is contained in:
parent
00cbee50de
commit
557406a416
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue