diff --git a/src/workspaces/index.test.ts b/src/workspaces/index.test.ts index b4101ca..ce0264c 100644 --- a/src/workspaces/index.test.ts +++ b/src/workspaces/index.test.ts @@ -82,6 +82,7 @@ describe('Workspaces service tests', () => { avatar: null, rootFolderId: 'asflaksfoau0su0fewnlsd', phoneNumber: null, + email: null, }, }, { @@ -141,6 +142,7 @@ describe('Workspaces service tests', () => { avatar: null, rootFolderId: 'asflaksfoau0su0fewnlsd', phoneNumber: null, + email: null, }, }, ], @@ -477,6 +479,7 @@ describe('Workspaces service tests', () => { avatar: null, rootFolderId: 'asdf-123-asdf', phoneNumber: null, + email: null, }, }, ]; diff --git a/src/workspaces/index.ts b/src/workspaces/index.ts index 2e7c7c5..4b64079 100644 --- a/src/workspaces/index.ts +++ b/src/workspaces/index.ts @@ -133,7 +133,13 @@ export class Workspaces { public editWorkspace( workspaceId: string, - details: { name?: string; description?: string; address?: string }, + details: { + name?: string; + description?: string; + address?: string; + phoneNumber?: string | null; + email?: string | null + }, ): Promise { return this.client.patch(`workspaces/${workspaceId}`, details, this.headers()); } diff --git a/src/workspaces/types.ts b/src/workspaces/types.ts index f77f5c6..5aa3e6c 100644 --- a/src/workspaces/types.ts +++ b/src/workspaces/types.ts @@ -34,6 +34,7 @@ export interface Workspace { avatar: null | string; rootFolderId: string; phoneNumber: null | string; + email: null | string; } export interface WorkspaceData { @@ -184,6 +185,8 @@ export type EditWorkspaceDetailsBody = { workspaceId: string; name?: string; description?: string; + phoneNumber?: string; + email?: string; }; export type GetMemberDetailsResponse = {