1 import { EXPENSIVE_REQUEST_TIMEOUT } from '../../drive/constants';
3 export const queryCheckAvailableHashes = (
6 data: { Hashes: string[] },
11 timeout: EXPENSIVE_REQUEST_TIMEOUT,
12 url: `drive/shares/${shareId}/links/${linkId}/checkAvailableHashes`,
13 suppress: suppressErrors,
18 export const queryGetLink = (ShareID: string, LinkID: string) => ({
20 url: `drive/shares/${ShareID}/links/${LinkID}`,
23 export const queryTrashLinks = (ShareID: string, ParentLinkID: string, LinkIDs: string[]) => ({
25 url: `drive/shares/${ShareID}/folders/${ParentLinkID}/trash_multiple`,
29 export const queryDeleteTrashedLinks = (ShareID: string, LinkIDs: string[]) => ({
31 url: `drive/shares/${ShareID}/trash/delete_multiple`,
35 export const queryDeleteChildrenLinks = (ShareID: string, ParentLinkID: string, LinkIDs: string[]) => ({
37 url: `drive/shares/${ShareID}/folders/${ParentLinkID}/delete_multiple`,
41 export const queryRestoreLinks = (ShareID: string, LinkIDs: string[]) => ({
43 url: `drive/shares/${ShareID}/trash/restore_multiple`,
47 export const queryEmptyTrashOfShare = (ShareID: string) => ({
49 url: `drive/shares/${ShareID}/trash`,
52 export const queryLinkMetaBatch = (shareId: string, linksIds: string[], loadThumbnails: boolean = false) => ({
54 url: `drive/shares/${shareId}/links/fetch_metadata`,
55 data: { LinkIDs: linksIds, Thumbnails: loadThumbnails ? 1 : 0 },
58 export const queryShareMap = (shareID: string, lastIndex?: number, sessionName?: string, pageSize?: number) => ({
59 url: `drive/shares/${shareID}/map`,
63 SessionName: sessionName,