From 557406a416e0dce0302d21fedd189083386cb894 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Thu, 5 Dec 2024 16:22:31 +0000 Subject: [PATCH] Update user endpoints --- packages/frontend-core/src/api/user.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/frontend-core/src/api/user.ts b/packages/frontend-core/src/api/user.ts index 5560c71930..4104dca541 100644 --- a/packages/frontend-core/src/api/user.ts +++ b/packages/frontend-core/src/api/user.ts @@ -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 getUser: (userId: string) => Promise - updateOwnMetadata: (metadata: UpdateSelfRequest) => Promise + updateOwnMetadata: ( + metadata: UpdateSelfMetadataRequest + ) => Promise createAdminUser: ( user: CreateAdminUserRequest ) => Promise