-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtypes.ts
76 lines (71 loc) · 1.48 KB
/
types.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
import { drive_v3 } from 'googleapis';
export interface FileDocument {
folderId: string;
folderName: string;
user: string;
ownerEmail: string;
id: string;
name: string;
mimeType: string;
starred: boolean;
trashed: boolean;
parents: string[];
webContentLink: string;
webViewLink: string;
iconLink: string;
createdTime: string;
modifiedTime: string;
owners: {
kind: string;
permissionId: string;
emailAddress: string;
}[];
permissions: {
id: string;
type: string;
emailAddress: string;
role: string;
}[];
md5Checksum: string;
size: string;
downloadUrl: string;
_id?: string;
}
export interface FileExistsResponse {
exists: boolean;
document: FileDocument | null;
}
// Define the interface for the return type
export interface RequestParams {
base64File?: any;
fileUrls?: string[];
fileUrl: string;
fileNames?: string[];
fileName: string;
user: string;
path: any;
folderId: string;
setPublic: boolean;
reUpload: boolean;
shareEmails: string[];
}
export type ServiceAccountClientsResult = {
driveClients: drive_v3.Drive[];
driveEmails: string[];
count: number;
};
export interface DriveStats {
numberOfDrives: number;
totalFiles: number;
totalFolders: number;
totalUsedSpace: string;
totalSpace: string;
percentSpaceRemaining: string;
nextDriveIndex?: number;
drives: {
ownerEmail: string;
spaceUsed: string;
percentSpaceRemaining: string;
}[];
timestamp?: Date;
}