Cleanup - unused files / unused exports / duplicate exports
[ProtonMail-WebClient.git] / packages / shared / lib / api / drive / photos.ts
blobf51f9d20568b129ec2d4181e45d235cfa9e127c7
1 import { PHOTOS_PAGE_SIZE } from '../../drive/constants';
3 export const queryPhotos = (
4     volumeId: string,
5     params?: {
6         Desc?: 0 | 1;
7         PreviousPageLastLinkID?: string;
8         MinimumCaptureTime?: number;
9     }
10 ) => ({
11     method: 'get',
12     url: `drive/volumes/${volumeId}/photos`,
13     params: {
14         PageSize: PHOTOS_PAGE_SIZE,
15         ...params,
16     },
17 });
18 export const queryDeletePhotosShare = (volumeId: string, shareId: string) => ({
19     method: 'delete',
20     url: `drive/volumes/${volumeId}/photos/share/${shareId}`,
21 });
23 export const queryPhotosDuplicates = (volumeId: string, { nameHashes }: { nameHashes: string[] }) => ({
24     method: 'post',
25     url: `drive/volumes/${volumeId}/photos/duplicates`,
26     data: {
27         NameHashes: nameHashes,
28     },
29 });