@corsair-dev/googledrive 0.1.0 → 0.1.1

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.
@@ -0,0 +1,2 @@
1
+ import 'dotenv/config';
2
+ //# sourceMappingURL=api.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api.test.d.ts","sourceRoot":"","sources":["../api.test.ts"],"names":[],"mappings":"AAAA,OAAO,eAAe,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../client.ts"],"names":[],"mappings":"AAIA,qBAAa,mBAAoB,SAAQ,KAAK;aAG5B,IAAI,CAAC,EAAE,MAAM;gBAD7B,OAAO,EAAE,MAAM,EACC,IAAI,CAAC,EAAE,MAAM,YAAA;CAK9B;AAmCD,wBAAsB,mBAAmB,CAAC,EACzC,WAAW,EACX,SAAS,EACT,QAAQ,EACR,YAAY,EACZ,YAAY,EACZ,YAAoB,GACpB,EAAE;IACF,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,OAAO,CAAC;CACvB,GAAG,OAAO,CAAC;IAAE,WAAW,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,OAAO,CAAA;CAAE,CAAC,CAkB1E;AAED,KAAK,yBAAyB,GAAG;IAChC,MAAM,CAAC,EAAE,KAAK,GAAG,MAAM,GAAG,KAAK,GAAG,QAAQ,GAAG,OAAO,CAAC;IACrD,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,OAA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EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC,CAAC;CAC9D,CAAC;AAEF,wBAAsB,sBAAsB,CAAC,CAAC,EAC7C,QAAQ,EAAE,MAAM,EAChB,WAAW,EAAE,MAAM,EACnB,OAAO,GAAE,yBAA8B,GACrC,OAAO,CAAC,CAAC,CAAC,CA2BZ;AAUD,wBAAsB,mCAAmC,CAAC,CAAC,EAC1D,QAAQ,EAAE,MAAM,EAChB,GAAG,EAAE;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,YAAY,CAAC,EAAE,MAAM,OAAO,CAAC,MAAM,CAAC,CAAA;CAAE,EAC1D,OAAO,GAAE,yBAA8B,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":"AACA,OAAO,KAAK,EAA6B,oBAAoB,EAAE,MAAM,IAAI,CAAC;AAI1E,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,CA8B1D,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
+ {"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":"AACA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,IAAI,CAAC;AAI/C,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,CA8B9D,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,oBAAoB,CAAC,cAAc,CAiCtD,CAAC"}
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"}
@@ -23,28 +23,28 @@ export declare const FilesEndpoints: {
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
- name?: string | undefined;
39
- description?: string | undefined;
40
- properties?: Record<string, string> | undefined;
41
38
  supportsAllDrives?: boolean | undefined;
42
39
  supportsTeamDrives?: boolean | undefined;
40
+ name?: string | undefined;
43
41
  parents?: string[] | undefined;
42
+ description?: string | undefined;
44
43
  starred?: boolean | undefined;
45
44
  trashed?: boolean | undefined;
46
45
  addParents?: string | undefined;
47
46
  removeParents?: string | undefined;
47
+ properties?: Record<string, string> | undefined;
48
48
  appProperties?: Record<string, string> | undefined;
49
49
  }) => Promise<import("..").File>;
50
50
  delete: (ctx: import("..").GoogleDriveContext, args: {
@@ -54,9 +54,9 @@ export declare const FilesEndpoints: {
54
54
  }) => Promise<void>;
55
55
  copy: (ctx: import("..").GoogleDriveContext, args: {
56
56
  fileId: string;
57
- name?: string | undefined;
58
57
  supportsAllDrives?: boolean | undefined;
59
58
  supportsTeamDrives?: boolean | undefined;
59
+ name?: string | undefined;
60
60
  parents?: string[] | undefined;
61
61
  }) => Promise<import("..").File>;
62
62
  move: (ctx: import("..").GoogleDriveContext, args: {
@@ -72,10 +72,10 @@ export declare const FilesEndpoints: {
72
72
  }) => Promise<any>;
73
73
  share: (ctx: import("..").GoogleDriveContext, args: {
74
74
  fileId: string;
75
- type?: "user" | "group" | "domain" | "anyone" | undefined;
76
75
  domain?: string | undefined;
77
76
  supportsAllDrives?: boolean | undefined;
78
77
  supportsTeamDrives?: boolean | undefined;
78
+ type?: "user" | "group" | "domain" | "anyone" | undefined;
79
79
  role?: "owner" | "organizer" | "fileOrganizer" | "writer" | "commenter" | "reader" | undefined;
80
80
  emailAddress?: string | undefined;
81
81
  allowFileDiscovery?: boolean | undefined;
@@ -89,8 +89,8 @@ 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;
@@ -119,10 +119,10 @@ export declare const FoldersEndpoints: {
119
119
  }) => Promise<void>;
120
120
  share: (ctx: import("..").GoogleDriveContext, args: {
121
121
  folderId: string;
122
- type?: "user" | "group" | "domain" | "anyone" | undefined;
123
122
  domain?: string | undefined;
124
123
  supportsAllDrives?: boolean | undefined;
125
124
  supportsTeamDrives?: boolean | undefined;
125
+ type?: "user" | "group" | "domain" | "anyone" | undefined;
126
126
  role?: "owner" | "organizer" | "fileOrganizer" | "writer" | "commenter" | "reader" | undefined;
127
127
  emailAddress?: string | undefined;
128
128
  allowFileDiscovery?: boolean | undefined;
@@ -1,3 +1,3 @@
1
- import type { GoogleDriveEndpoints } from '..';
1
+ import type { GoogleDriveEndpoints } from '../index';
2
2
  export declare const filesAndFolders: GoogleDriveEndpoints['searchFilesAndFolders'];
3
3
  //# sourceMappingURL=search.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"search.d.ts","sourceRoot":"","sources":["../../endpoints/search.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,IAAI,CAAC;AAI/C,eAAO,MAAM,eAAe,EAAE,oBAAoB,CAAC,uBAAuB,CAuDxE,CAAC"}
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":"AACA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,IAAI,CAAC;AAI/C,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"}
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"}