@maxim_mazurok/gapi.client.drive-v2 0.0.20230402 → 0.0.20230423

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/index.d.ts CHANGED
@@ -9,7 +9,7 @@
9
9
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
10
10
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
11
11
  // Generated from: https://www.googleapis.com/discovery/v1/apis/drive/v2/rest
12
- // Revision: 20230402
12
+ // Revision: 20230423
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -2406,10 +2406,12 @@ declare namespace gapi.client {
2406
2406
  /** Deprecated. Please use quotaUser instead. */
2407
2407
  userIp?: string;
2408
2408
  }): Request<void>;
2409
- /** Permanently deletes all of the user's trashed files. */
2409
+ /** Permanently deletes all trashed files of a user or shared drive. */
2410
2410
  emptyTrash(request?: {
2411
2411
  /** Data format for the response. */
2412
2412
  alt?: string;
2413
+ /** If set, empties the trash of the provided shared drive. */
2414
+ driveId?: string;
2413
2415
  /** Deprecated. If an item is not in a shared drive and its last parent is deleted but the item itself is not, the item will be placed under its owner's root. */
2414
2416
  enforceSingleParent?: boolean;
2415
2417
  /** Selector specifying which fields to include in a partial response. */
@@ -3059,7 +3061,7 @@ declare namespace gapi.client {
3059
3061
  userIp?: string;
3060
3062
  },
3061
3063
  body: File): Request<File>;
3062
- /** Subscribes to changes to a file. While you can establish a channel for changes to a file on a shared drive, a change to a shared drive file won't create a notification. */
3064
+ /** Subscribe to changes on a file. */
3063
3065
  watch(request: {
3064
3066
  /** Whether the user is acknowledging the risk of downloading known malware or other abusive files. */
3065
3067
  acknowledgeAbuse?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.drive-v2",
3
- "version": "0.0.20230402",
3
+ "version": "0.0.20230423",
4
4
  "description": "TypeScript typings for Drive API v2",
5
5
  "license": "MIT",
6
6
  "author": {
package/readme.md CHANGED
@@ -226,7 +226,7 @@ Permanently deletes a file by ID. Skips the trash. The currently authenticated u
226
226
  await gapi.client.drive.files.delete({ fileId: "fileId", });
227
227
 
228
228
  /*
229
- Permanently deletes all of the user's trashed files.
229
+ Permanently deletes all trashed files of a user or shared drive.
230
230
  */
231
231
  await gapi.client.drive.files.emptyTrash({ });
232
232
 
@@ -291,7 +291,7 @@ Updates a file's metadata and/or content. When calling this method, only populat
291
291
  await gapi.client.drive.files.update({ fileId: "fileId", });
292
292
 
293
293
  /*
294
- Subscribes to changes to a file. While you can establish a channel for changes to a file on a shared drive, a change to a shared drive file won't create a notification.
294
+ Subscribe to changes on a file.
295
295
  */
296
296
  await gapi.client.drive.files.watch({ fileId: "fileId", });
297
297
 
package/tests.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
4
4
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
5
5
 
6
- // Revision: 20230402
6
+ // Revision: 20230423
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -872,8 +872,9 @@ gapi.load('client', async () => {
872
872
  supportsAllDrives: true,
873
873
  supportsTeamDrives: true,
874
874
  });
875
- /** Permanently deletes all of the user's trashed files. */
875
+ /** Permanently deletes all trashed files of a user or shared drive. */
876
876
  await gapi.client.drive.files.emptyTrash({
877
+ driveId: "Test string",
877
878
  enforceSingleParent: true,
878
879
  });
879
880
  /** Exports a Google Workspace document to the requested MIME type and returns exported byte content. Note that the exported content is limited to 10MB. */
@@ -2175,7 +2176,7 @@ gapi.load('client', async () => {
2175
2176
  webViewLink: "Test string",
2176
2177
  writersCanShare: true,
2177
2178
  });
2178
- /** Subscribes to changes to a file. While you can establish a channel for changes to a file on a shared drive, a change to a shared drive file won't create a notification. */
2179
+ /** Subscribe to changes on a file. */
2179
2180
  await gapi.client.drive.files.watch({
2180
2181
  acknowledgeAbuse: true,
2181
2182
  fileId: "Test string",