@corsair-dev/googledrive 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api.test.d.ts +2 -0
- package/dist/api.test.d.ts.map +1 -0
- package/dist/client.d.ts.map +1 -1
- package/dist/endpoints/files.d.ts +1 -1
- package/dist/endpoints/files.d.ts.map +1 -1
- package/dist/endpoints/folders.d.ts +1 -1
- package/dist/endpoints/folders.d.ts.map +1 -1
- package/dist/endpoints/index.d.ts +20 -20
- package/dist/endpoints/search.d.ts +1 -1
- package/dist/endpoints/search.d.ts.map +1 -1
- package/dist/endpoints/sharedDrives.d.ts +1 -1
- package/dist/endpoints/sharedDrives.d.ts.map +1 -1
- package/dist/endpoints/types.d.ts +146 -1754
- package/dist/endpoints/types.d.ts.map +1 -1
- package/dist/index.d.ts +152 -1761
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/integration.test.d.ts +2 -0
- package/dist/integration.test.d.ts.map +1 -0
- package/dist/schema/database.d.ts +14 -412
- package/dist/schema/database.d.ts.map +1 -1
- package/dist/schema/index.d.ts +14 -412
- package/dist/schema/index.d.ts.map +1 -1
- package/dist/webhooks/changes.d.ts +1 -1
- package/dist/webhooks/changes.d.ts.map +1 -1
- package/dist/webhooks/index.d.ts +10 -10
- package/dist/webhooks/types.d.ts +47 -142
- package/dist/webhooks/types.d.ts.map +1 -1
- package/package.json +16 -6
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api.test.d.ts","sourceRoot":"","sources":["../api.test.ts"],"names":[],"mappings":"AAAA,OAAO,eAAe,CAAC"}
|
package/dist/client.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../client.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../client.ts"],"names":[],"mappings":"AAGA,qBAAa,mBA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AA8B,GACrC,OAAO,CAAC,CAAC,CAAC,CAUZ"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { GoogleDriveEndpoints } from '
|
|
1
|
+
import type { GoogleDriveEndpoints } from '../index';
|
|
2
2
|
export declare const list: GoogleDriveEndpoints['filesList'];
|
|
3
3
|
export declare const get: GoogleDriveEndpoints['filesGet'];
|
|
4
4
|
export declare const createFromText: GoogleDriveEndpoints['filesCreateFromText'];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"files.d.ts","sourceRoot":"","sources":["../../endpoints/files.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"files.d.ts","sourceRoot":"","sources":["../../endpoints/files.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAA6B,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAGhF,eAAO,MAAM,IAAI,EAAE,oBAAoB,CAAC,WAAW,CAyClD,CAAC;AAEF,eAAO,MAAM,GAAG,EAAE,oBAAoB,CAAC,UAAU,CAoChD,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,oBAAoB,CAAC,qBAAqB,CA0BrE,CAAC;AAEH,eAAO,MAAM,MAAM,EAAE,oBAAoB,CAAC,aAAa,CA4BtD,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,oBAAoB,CAAC,aAAa,CAqCtD,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,oBAAoB,CAAC,aAAa,CA4B1D,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,oBAAoB,CAAC,WAAW,CA2BlD,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,oBAAoB,CAAC,WAAW,CAqBlD,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,oBAAoB,CAAC,eAAe,CAqB1D,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,oBAAoB,CAAC,YAAY,CA8BpD,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { GoogleDriveEndpoints } from '
|
|
1
|
+
import type { GoogleDriveEndpoints } from '../index';
|
|
2
2
|
export declare const create: GoogleDriveEndpoints['foldersCreate'];
|
|
3
3
|
export declare const get: GoogleDriveEndpoints['foldersGet'];
|
|
4
4
|
export declare const list: GoogleDriveEndpoints['foldersList'];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"folders.d.ts","sourceRoot":"","sources":["../../endpoints/folders.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"folders.d.ts","sourceRoot":"","sources":["../../endpoints/folders.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAGrD,eAAO,MAAM,MAAM,EAAE,oBAAoB,CAAC,eAAe,CAmCxD,CAAC;AAEF,eAAO,MAAM,GAAG,EAAE,oBAAoB,CAAC,YAAY,CA+BlD,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,oBAAoB,CAAC,aAAa,CA6CpD,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,oBAAoB,CAAC,eAAe,CA4B9D,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,oBAAoB,CAAC,cAAc,CAiCtD,CAAC"}
|
|
@@ -15,37 +15,37 @@ export declare const FilesEndpoints: {
|
|
|
15
15
|
}) => Promise<import("..").FileList>;
|
|
16
16
|
get: (ctx: import("..").GoogleDriveContext, args: {
|
|
17
17
|
fileId: string;
|
|
18
|
-
|
|
18
|
+
acknowledgeAbuse?: boolean | undefined;
|
|
19
19
|
supportsAllDrives?: boolean | undefined;
|
|
20
20
|
supportsTeamDrives?: boolean | undefined;
|
|
21
|
-
|
|
21
|
+
includePermissionsForView?: string | undefined;
|
|
22
22
|
}) => Promise<import("..").File>;
|
|
23
23
|
createFromText: (ctx: import("..").GoogleDriveContext, args: {
|
|
24
24
|
name: string;
|
|
25
25
|
content: string;
|
|
26
|
-
description?: string | undefined;
|
|
27
26
|
mimeType?: string | undefined;
|
|
28
27
|
parents?: string[] | undefined;
|
|
28
|
+
description?: string | undefined;
|
|
29
29
|
}) => Promise<import("..").File>;
|
|
30
30
|
upload: (ctx: import("..").GoogleDriveContext, args: {
|
|
31
31
|
name: string;
|
|
32
|
-
description?: string | undefined;
|
|
33
32
|
mimeType?: string | undefined;
|
|
34
33
|
parents?: string[] | undefined;
|
|
34
|
+
description?: string | undefined;
|
|
35
35
|
}) => Promise<import("..").File>;
|
|
36
36
|
update: (ctx: import("..").GoogleDriveContext, args: {
|
|
37
37
|
fileId: string;
|
|
38
38
|
name?: string | undefined;
|
|
39
39
|
description?: string | undefined;
|
|
40
|
-
properties?: Record<string, string> | undefined;
|
|
41
|
-
supportsAllDrives?: boolean | undefined;
|
|
42
|
-
supportsTeamDrives?: boolean | undefined;
|
|
43
|
-
parents?: string[] | undefined;
|
|
44
40
|
starred?: boolean | undefined;
|
|
45
41
|
trashed?: boolean | undefined;
|
|
42
|
+
parents?: string[] | undefined;
|
|
46
43
|
addParents?: string | undefined;
|
|
47
44
|
removeParents?: string | undefined;
|
|
45
|
+
properties?: Record<string, string> | undefined;
|
|
48
46
|
appProperties?: Record<string, string> | undefined;
|
|
47
|
+
supportsAllDrives?: boolean | undefined;
|
|
48
|
+
supportsTeamDrives?: boolean | undefined;
|
|
49
49
|
}) => Promise<import("..").File>;
|
|
50
50
|
delete: (ctx: import("..").GoogleDriveContext, args: {
|
|
51
51
|
fileId: string;
|
|
@@ -55,16 +55,16 @@ export declare const FilesEndpoints: {
|
|
|
55
55
|
copy: (ctx: import("..").GoogleDriveContext, args: {
|
|
56
56
|
fileId: string;
|
|
57
57
|
name?: string | undefined;
|
|
58
|
+
parents?: string[] | undefined;
|
|
58
59
|
supportsAllDrives?: boolean | undefined;
|
|
59
60
|
supportsTeamDrives?: boolean | undefined;
|
|
60
|
-
parents?: string[] | undefined;
|
|
61
61
|
}) => Promise<import("..").File>;
|
|
62
62
|
move: (ctx: import("..").GoogleDriveContext, args: {
|
|
63
63
|
fileId: string;
|
|
64
|
-
supportsAllDrives?: boolean | undefined;
|
|
65
|
-
supportsTeamDrives?: boolean | undefined;
|
|
66
64
|
addParents?: string | undefined;
|
|
67
65
|
removeParents?: string | undefined;
|
|
66
|
+
supportsAllDrives?: boolean | undefined;
|
|
67
|
+
supportsTeamDrives?: boolean | undefined;
|
|
68
68
|
}) => Promise<import("..").File>;
|
|
69
69
|
download: (ctx: import("..").GoogleDriveContext, args: {
|
|
70
70
|
fileId: string;
|
|
@@ -73,15 +73,15 @@ export declare const FilesEndpoints: {
|
|
|
73
73
|
share: (ctx: import("..").GoogleDriveContext, args: {
|
|
74
74
|
fileId: string;
|
|
75
75
|
type?: "user" | "group" | "domain" | "anyone" | undefined;
|
|
76
|
-
domain?: string | undefined;
|
|
77
|
-
supportsAllDrives?: boolean | undefined;
|
|
78
|
-
supportsTeamDrives?: boolean | undefined;
|
|
79
76
|
role?: "owner" | "organizer" | "fileOrganizer" | "writer" | "commenter" | "reader" | undefined;
|
|
80
77
|
emailAddress?: string | undefined;
|
|
78
|
+
domain?: string | undefined;
|
|
81
79
|
allowFileDiscovery?: boolean | undefined;
|
|
82
80
|
expirationTime?: string | undefined;
|
|
83
81
|
sendNotificationEmail?: boolean | undefined;
|
|
84
82
|
emailMessage?: string | undefined;
|
|
83
|
+
supportsAllDrives?: boolean | undefined;
|
|
84
|
+
supportsTeamDrives?: boolean | undefined;
|
|
85
85
|
moveToNewOwnersRoot?: boolean | undefined;
|
|
86
86
|
transferOwnership?: boolean | undefined;
|
|
87
87
|
}) => Promise<import("..").Permission>;
|
|
@@ -89,14 +89,14 @@ export declare const FilesEndpoints: {
|
|
|
89
89
|
export declare const FoldersEndpoints: {
|
|
90
90
|
create: (ctx: import("..").GoogleDriveContext, args: {
|
|
91
91
|
name: string;
|
|
92
|
-
description?: string | undefined;
|
|
93
92
|
parents?: string[] | undefined;
|
|
93
|
+
description?: string | undefined;
|
|
94
94
|
}) => Promise<import("..").File>;
|
|
95
95
|
get: (ctx: import("..").GoogleDriveContext, args: {
|
|
96
96
|
folderId: string;
|
|
97
|
-
includePermissionsForView?: string | undefined;
|
|
98
97
|
supportsAllDrives?: boolean | undefined;
|
|
99
98
|
supportsTeamDrives?: boolean | undefined;
|
|
99
|
+
includePermissionsForView?: string | undefined;
|
|
100
100
|
}) => Promise<import("..").File>;
|
|
101
101
|
list: (ctx: import("..").GoogleDriveContext, args: {
|
|
102
102
|
q?: string | undefined;
|
|
@@ -120,15 +120,15 @@ export declare const FoldersEndpoints: {
|
|
|
120
120
|
share: (ctx: import("..").GoogleDriveContext, args: {
|
|
121
121
|
folderId: string;
|
|
122
122
|
type?: "user" | "group" | "domain" | "anyone" | undefined;
|
|
123
|
-
domain?: string | undefined;
|
|
124
|
-
supportsAllDrives?: boolean | undefined;
|
|
125
|
-
supportsTeamDrives?: boolean | undefined;
|
|
126
123
|
role?: "owner" | "organizer" | "fileOrganizer" | "writer" | "commenter" | "reader" | undefined;
|
|
127
124
|
emailAddress?: string | undefined;
|
|
125
|
+
domain?: string | undefined;
|
|
128
126
|
allowFileDiscovery?: boolean | undefined;
|
|
129
127
|
expirationTime?: string | undefined;
|
|
130
128
|
sendNotificationEmail?: boolean | undefined;
|
|
131
129
|
emailMessage?: string | undefined;
|
|
130
|
+
supportsAllDrives?: boolean | undefined;
|
|
131
|
+
supportsTeamDrives?: boolean | undefined;
|
|
132
132
|
moveToNewOwnersRoot?: boolean | undefined;
|
|
133
133
|
transferOwnership?: boolean | undefined;
|
|
134
134
|
}) => Promise<import("..").Permission>;
|
|
@@ -151,9 +151,9 @@ export declare const SharedDrivesEndpoints: {
|
|
|
151
151
|
useDomainAdminAccess?: boolean | undefined;
|
|
152
152
|
}) => Promise<import("..").SharedDrive>;
|
|
153
153
|
list: (ctx: import("..").GoogleDriveContext, args: {
|
|
154
|
-
q?: string | undefined;
|
|
155
154
|
pageSize?: number | undefined;
|
|
156
155
|
pageToken?: string | undefined;
|
|
156
|
+
q?: string | undefined;
|
|
157
157
|
useDomainAdminAccess?: boolean | undefined;
|
|
158
158
|
}) => Promise<import("..").SharedDriveList>;
|
|
159
159
|
update: (ctx: import("..").GoogleDriveContext, args: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search.d.ts","sourceRoot":"","sources":["../../endpoints/search.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"search.d.ts","sourceRoot":"","sources":["../../endpoints/search.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAGrD,eAAO,MAAM,eAAe,EAAE,oBAAoB,CAAC,uBAAuB,CAuDxE,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { GoogleDriveEndpoints } from '
|
|
1
|
+
import type { GoogleDriveEndpoints } from '../index';
|
|
2
2
|
export declare const create: GoogleDriveEndpoints['sharedDrivesCreate'];
|
|
3
3
|
export declare const get: GoogleDriveEndpoints['sharedDrivesGet'];
|
|
4
4
|
export declare const list: GoogleDriveEndpoints['sharedDrivesList'];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sharedDrives.d.ts","sourceRoot":"","sources":["../../endpoints/sharedDrives.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"sharedDrives.d.ts","sourceRoot":"","sources":["../../endpoints/sharedDrives.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAGrD,eAAO,MAAM,MAAM,EAAE,oBAAoB,CAAC,oBAAoB,CAuC7D,CAAC;AAEF,eAAO,MAAM,GAAG,EAAE,oBAAoB,CAAC,iBAAiB,CAgCvD,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,oBAAoB,CAAC,kBAAkB,CAuCzD,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,oBAAoB,CAAC,oBAAoB,CAsC7D,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,oBAAoB,CAAC,oBAAoB,CAsBvE,CAAC"}
|