@maxim_mazurok/gapi.client.drive-v2 0.0.20230815 → 0.0.20230822

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: 20230815
12
+ // Revision: 20230822
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -1651,7 +1651,7 @@ declare namespace gapi.client {
1651
1651
  /** The list of properties. */
1652
1652
  items?:
1653
1653
  Property[];
1654
- /** This is always `drive#propertyList`.s */
1654
+ /** This is always `drive#propertyList`. */
1655
1655
  kind?:
1656
1656
  string;
1657
1657
  /** The link back to this list. */
@@ -3172,7 +3172,7 @@ declare namespace gapi.client {
3172
3172
  body: Comment): Request<Comment>;
3173
3173
  }
3174
3174
  interface DrivesResource {
3175
- /** Permanently deletes a shared drive for which the user is an organizer. The shared drive cannot contain any untrashed items. */
3175
+ /** Permanently deletes a shared drive for which the user is an `organizer`. The shared drive cannot contain any untrashed items. */
3176
3176
  delete(request?: {
3177
3177
  /** V1 error format. */
3178
3178
  "$.xgafv"?:
@@ -3729,7 +3729,10 @@ declare namespace gapi.client {
3729
3729
  string;
3730
3730
  },
3731
3731
  body: File): Request<File>;
3732
- /** Permanently deletes a file by ID. Skips the trash. The currently authenticated user must own the file or be an organizer on the parent for shared drive files. */
3732
+ /**
3733
+ * Permanently deletes a file owned by the user without moving it to the trash. If the file belongs to a shared drive, the user must be an `organizer` on the parent folder. If the
3734
+ * target is a folder, all descendants owned by the user are also deleted.
3735
+ */
3733
3736
  delete(request?: {
3734
3737
  /** V1 error format. */
3735
3738
  "$.xgafv"?:
@@ -4250,7 +4253,7 @@ declare namespace gapi.client {
4250
4253
  /** Selector specifying which fields to include in a partial response. */
4251
4254
  fields?:
4252
4255
  string;
4253
- /** The ID for the file or shared drive. */
4256
+ /** The ID for the file. */
4254
4257
  fileId:
4255
4258
  string;
4256
4259
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
@@ -4618,12 +4621,7 @@ declare namespace gapi.client {
4618
4621
  uploadType?:
4619
4622
  string;
4620
4623
  }): Request<File>;
4621
- /**
4622
- * Moves a file to the trash. The currently authenticated user must own the file or be at least a `fileOrganizer` on the parent for shared drive files. Only the owner may trash a file.
4623
- * The trashed item is excluded from all `files.list` responses returned for any user who doesn't own the file. However, all users with access to the file can see the trashed item
4624
- * metadata in an API response. All users with access can copy, download, export, and share the file. *Note:* Files moved to the trash still appear by default in results from the
4625
- * `files.list` method. To permanently remove a file, use `files.delete`.
4626
- */
4624
+ /** Moves a file to the trash. The currently authenticated user must own the file or be at least a `fileOrganizer` on the parent for shared drive files. */
4627
4625
  trash(request?: {
4628
4626
  /** V1 error format. */
4629
4627
  "$.xgafv"?:
@@ -4674,10 +4672,7 @@ declare namespace gapi.client {
4674
4672
  uploadType?:
4675
4673
  string;
4676
4674
  }): Request<File>;
4677
- /**
4678
- * Restores a file from the trash. The currently authenticated user must own the file or be at least a `fileOrganizer` on the parent for shared drive files. Only the owner may untrash
4679
- * a file.
4680
- */
4675
+ /** Restores a file from the trash. The currently authenticated user must own the file or be at least a `fileOrganizer` on the parent for shared drive files. */
4681
4676
  untrash(request?: {
4682
4677
  /** V1 error format. */
4683
4678
  "$.xgafv"?:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.drive-v2",
3
- "version": "0.0.20230815",
3
+ "version": "0.0.20230822",
4
4
  "description": "TypeScript typings for Google Drive API v2",
5
5
  "license": "MIT",
6
6
  "author": {
package/readme.md CHANGED
@@ -181,7 +181,7 @@ Updates an existing comment.
181
181
  await gapi.client.drive.comments.update({ commentId: "commentId", fileId: "fileId", });
182
182
 
183
183
  /*
184
- Permanently deletes a shared drive for which the user is an organizer. The shared drive cannot contain any untrashed items.
184
+ Permanently deletes a shared drive for which the user is an `organizer`. The shared drive cannot contain any untrashed items.
185
185
  */
186
186
  await gapi.client.drive.drives.delete({ driveId: "driveId", });
187
187
 
@@ -221,7 +221,7 @@ Creates a copy of the specified file.
221
221
  await gapi.client.drive.files.copy({ fileId: "fileId", });
222
222
 
223
223
  /*
224
- Permanently deletes a file by ID. Skips the trash. The currently authenticated user must own the file or be an organizer on the parent for shared drive files.
224
+ Permanently deletes a file owned by the user without moving it to the trash. If the file belongs to a shared drive, the user must be an `organizer` on the parent folder. If the target is a folder, all descendants owned by the user are also deleted.
225
225
  */
226
226
  await gapi.client.drive.files.delete({ fileId: "fileId", });
227
227
 
@@ -276,12 +276,12 @@ Set the file's updated time to the current server time.
276
276
  await gapi.client.drive.files.touch({ fileId: "fileId", });
277
277
 
278
278
  /*
279
- Moves a file to the trash. The currently authenticated user must own the file or be at least a `fileOrganizer` on the parent for shared drive files. Only the owner may trash a file. The trashed item is excluded from all `files.list` responses returned for any user who doesn't own the file. However, all users with access to the file can see the trashed item metadata in an API response. All users with access can copy, download, export, and share the file. *Note:* Files moved to the trash still appear by default in results from the `files.list` method. To permanently remove a file, use `files.delete`.
279
+ Moves a file to the trash. The currently authenticated user must own the file or be at least a `fileOrganizer` on the parent for shared drive files.
280
280
  */
281
281
  await gapi.client.drive.files.trash({ fileId: "fileId", });
282
282
 
283
283
  /*
284
- Restores a file from the trash. The currently authenticated user must own the file or be at least a `fileOrganizer` on the parent for shared drive files. Only the owner may untrash a file.
284
+ Restores a file from the trash. The currently authenticated user must own the file or be at least a `fileOrganizer` on the parent for shared drive files.
285
285
  */
286
286
  await gapi.client.drive.files.untrash({ fileId: "fileId", });
287
287
 
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: 20230815
6
+ // Revision: 20230822
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -352,7 +352,7 @@ gapi.load('client', async () => {
352
352
  selfLink: "Test string",
353
353
  status: "Test string",
354
354
  });
355
- /** Permanently deletes a shared drive for which the user is an organizer. The shared drive cannot contain any untrashed items. */
355
+ /** Permanently deletes a shared drive for which the user is an `organizer`. The shared drive cannot contain any untrashed items. */
356
356
  await gapi.client.drive.drives.delete({
357
357
  allowItemDeletion: true,
358
358
  driveId: "Test string",
@@ -873,7 +873,10 @@ gapi.load('client', async () => {
873
873
  webViewLink: "Test string",
874
874
  writersCanShare: true,
875
875
  });
876
- /** Permanently deletes a file by ID. Skips the trash. The currently authenticated user must own the file or be an organizer on the parent for shared drive files. */
876
+ /**
877
+ * Permanently deletes a file owned by the user without moving it to the trash. If the file belongs to a shared drive, the user must be an `organizer` on the parent folder. If the target
878
+ * is a folder, all descendants owned by the user are also deleted.
879
+ */
877
880
  await gapi.client.drive.files.delete({
878
881
  enforceSingleParent: true,
879
882
  fileId: "Test string",
@@ -1787,12 +1790,7 @@ gapi.load('client', async () => {
1787
1790
  supportsAllDrives: true,
1788
1791
  supportsTeamDrives: true,
1789
1792
  });
1790
- /**
1791
- * Moves a file to the trash. The currently authenticated user must own the file or be at least a `fileOrganizer` on the parent for shared drive files. Only the owner may trash a file. The
1792
- * trashed item is excluded from all `files.list` responses returned for any user who doesn't own the file. However, all users with access to the file can see the trashed item metadata in
1793
- * an API response. All users with access can copy, download, export, and share the file. *Note:* Files moved to the trash still appear by default in results from the `files.list` method.
1794
- * To permanently remove a file, use `files.delete`.
1795
- */
1793
+ /** Moves a file to the trash. The currently authenticated user must own the file or be at least a `fileOrganizer` on the parent for shared drive files. */
1796
1794
  await gapi.client.drive.files.trash({
1797
1795
  fileId: "Test string",
1798
1796
  includeLabels: "Test string",
@@ -1800,10 +1798,7 @@ gapi.load('client', async () => {
1800
1798
  supportsAllDrives: true,
1801
1799
  supportsTeamDrives: true,
1802
1800
  });
1803
- /**
1804
- * Restores a file from the trash. The currently authenticated user must own the file or be at least a `fileOrganizer` on the parent for shared drive files. Only the owner may untrash a
1805
- * file.
1806
- */
1801
+ /** Restores a file from the trash. The currently authenticated user must own the file or be at least a `fileOrganizer` on the parent for shared drive files. */
1807
1802
  await gapi.client.drive.files.untrash({
1808
1803
  fileId: "Test string",
1809
1804
  includeLabels: "Test string",