Merge branch 'IDTEAM-1.26.0' into 'main'
[ProtonMail-WebClient.git] / packages / shared / lib / api / drive / member.ts
blob9ab61fa51b6c932512b426cb31ff320694024896
1 import type { SHARE_MEMBER_PERMISSIONS } from '../../drive/permissions';
3 //TODO: Add pagination
4 export const queryShareMemberListing = (shareId: string) => ({
5     method: 'get',
6     url: `drive/v2/shares/${shareId}/members`,
7 });
9 export const queryRemoveShareMember = (shareId: string, memberId: string) => ({
10     method: 'delete',
11     url: `drive/v2/shares/${shareId}/members/${memberId}`,
12 });
14 export const queryUpdateShareMemberPermissions = (
15     shareId: string,
16     memberId: string,
17     Permissions: SHARE_MEMBER_PERMISSIONS
18 ) => ({
19     method: 'put',
20     url: `drive/v2/shares/${shareId}/members/${memberId}`,
21     data: {
22         Permissions,
23     },
24 });