@maxim_mazurok/gapi.client.drive-v3 0.0.20230212 → 0.0.20230306

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/v3/rest
12
- // Revision: 20230212
12
+ // Revision: 20230306
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -191,7 +191,7 @@ declare namespace gapi.client {
191
191
  }
192
192
  interface Drive {
193
193
  /**
194
- * An image file and cropping parameters from which a background image for this shared drive is set. This is a write only field; it can only be set on drive.drives.update requests that
194
+ * An image file and cropping parameters from which a background image for this shared drive is set. This is a write-only field; it can only be set on drive.drives.update requests that
195
195
  * don't set themeId. When specified, all fields of the backgroundImageFile must be set.
196
196
  */
197
197
  backgroundImageFile?: {
@@ -258,7 +258,7 @@ declare namespace gapi.client {
258
258
  /** Whether the current user can trash children from folders in this shared drive. */
259
259
  canTrashChildren?: boolean;
260
260
  };
261
- /** The color of this shared drive as an RGB hex string. It can only be set on a drive.drives.update request that does not set themeId. */
261
+ /** The color of this shared drive as an RGB hex string. It can only be set on drive.drives.update requests that don't set themeId. */
262
262
  colorRgb?: string;
263
263
  /** The time at which the shared drive was created (RFC 3339 date-time). */
264
264
  createdTime?: string;
@@ -292,7 +292,7 @@ declare namespace gapi.client {
292
292
  sharingFoldersRequiresOrganizerPermission?: boolean;
293
293
  };
294
294
  /**
295
- * The ID of the theme from which the background image and color will be set. The set of possible driveThemes can be retrieved from a drive.about.get response. When not specified on a
295
+ * The ID of the theme from which the background image and color are set. The set of possible driveThemes can be retrieved from a drive.about.get response. When not specified on a
296
296
  * drive.drives.create request, a random theme is chosen from which the background image and color are set. This is a write-only field; it can only be set on requests that don't set
297
297
  * colorRgb or backgroundImageFile.
298
298
  */
@@ -780,44 +780,48 @@ declare namespace gapi.client {
780
780
  deleted?: boolean;
781
781
  /**
782
782
  * The "pretty" name of the value of the permission. The following is a list of examples for each type of permission:
783
- * - user - User's full name, as defined for their Google account, such as "Joe Smith."
783
+ * - user - User's full name, as defined for their Google Account, such as "Joe Smith."
784
784
  * - group - Name of the Google Group, such as "The Company Administrators."
785
- * - domain - String domain name, such as "thecompany.com."
785
+ * - domain - String domain name, such as "your-company.com."
786
786
  * - anyone - No displayName is present.
787
787
  */
788
788
  displayName?: string;
789
- /** The domain to which this permission refers. */
789
+ /**
790
+ * The domain to which this permission refers. The following options are currently allowed:
791
+ * - The entire domain, such as "your-company.com."
792
+ * - A target audience, such as "ID.audience.googledomains.com."
793
+ */
790
794
  domain?: string;
791
795
  /** The email address of the user or group to which this permission refers. */
792
796
  emailAddress?: string;
793
797
  /**
794
798
  * The time at which this permission will expire (RFC 3339 date-time). Expiration times have the following restrictions:
795
- * - They cannot be set on shared drive items
796
- * - They can only be set on user and group permissions
797
- * - The time must be in the future
798
- * - The time cannot be more than a year in the future
799
+ * - They cannot be set on shared drive items.
800
+ * - They can only be set on user and group permissions.
801
+ * - The time must be in the future.
802
+ * - The time cannot be more than one year in the future.
799
803
  */
800
804
  expirationTime?: string;
801
805
  /** The ID of this permission. This is a unique identifier for the grantee, and is published in User resources as permissionId. IDs should be treated as opaque values. */
802
806
  id?: string;
803
807
  /** Identifies what kind of resource this is. Value: the fixed string "drive#permission". */
804
808
  kind?: string;
805
- /** Whether the account associated with this permission is a pending owner. Only populated for user type permissions for files that are not in a shared drive. */
809
+ /** Whether the account associated with this permission is a pending owner. Only populated for user type permissions for files that aren't in a shared drive. */
806
810
  pendingOwner?: boolean;
807
- /** Details of whether the permissions on this shared drive item are inherited or directly on this item. This is an output-only field which is present only for shared drive items. */
811
+ /** Details of whether the permissions on this shared drive item are inherited or are directly on this item. This is an output-only field that's present only for shared drive items. */
808
812
  permissionDetails?: Array<{
809
813
  /** Whether this permission is inherited. This field is always populated. This is an output-only field. */
810
814
  inherited?: boolean;
811
815
  /** The ID of the item from which this permission is inherited. This is an output-only field. */
812
816
  inheritedFrom?: string;
813
817
  /**
814
- * The permission type for this user. While new values may be added in future, the following are currently possible:
818
+ * The permission type for this user. While new values may be added in future, the following are currently allowed:
815
819
  * - file
816
820
  * - member
817
821
  */
818
822
  permissionType?: string;
819
823
  /**
820
- * The primary role for this user. While new values may be added in the future, the following are currently possible:
824
+ * The primary role for this user. While new values may be added in the future, the following are currently allowed:
821
825
  * - organizer
822
826
  * - fileOrganizer
823
827
  * - writer
@@ -855,7 +859,7 @@ declare namespace gapi.client {
855
859
  * - group
856
860
  * - domain
857
861
  * - anyone When creating a permission, if type is user or group, you must provide an emailAddress for the user or group. When type is domain, you must provide a domain. There isn't
858
- * extra information required for a anyone type.
862
+ * extra information required for the anyone type.
859
863
  */
860
864
  type?: string;
861
865
  /** Indicates the view for this permission. Only populated for permissions that belong to a view. published is the only supported value. */
@@ -1191,7 +1195,7 @@ declare namespace gapi.client {
1191
1195
  /** Deprecated. Please use quotaUser instead. */
1192
1196
  userIp?: string;
1193
1197
  }): Request<ChangeList>;
1194
- /** Subscribes to changes for a user. */
1198
+ /** Subscribes to changes for a user. To use this method, you must include the pageToken query parameter. */
1195
1199
  watch(request: {
1196
1200
  /** Data format for the response. */
1197
1201
  alt?: string;
@@ -1657,7 +1661,7 @@ declare namespace gapi.client {
1657
1661
  /** Deprecated. Please use quotaUser instead. */
1658
1662
  userIp?: string;
1659
1663
  }): Request<Drive>;
1660
- /** Updates the metadate for a shared drive. */
1664
+ /** Updates the metadata for a shared drive. */
1661
1665
  update(request: {
1662
1666
  /** Data format for the response. */
1663
1667
  alt?: string;
@@ -1673,10 +1677,7 @@ declare namespace gapi.client {
1673
1677
  prettyPrint?: boolean;
1674
1678
  /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
1675
1679
  quotaUser?: string;
1676
- /**
1677
- * Issue the request as a domain administrator; if set to true, then the requester will be granted access if they are an administrator of the domain to which the shared drive
1678
- * belongs.
1679
- */
1680
+ /** Issue the request as a domain administrator. If set to true, then the requester is granted access if they're an administrator of the domain to which the shared drive belongs. */
1680
1681
  useDomainAdminAccess?: boolean;
1681
1682
  /** Deprecated. Please use quotaUser instead. */
1682
1683
  userIp?: string;
@@ -1698,10 +1699,7 @@ declare namespace gapi.client {
1698
1699
  prettyPrint?: boolean;
1699
1700
  /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
1700
1701
  quotaUser?: string;
1701
- /**
1702
- * Issue the request as a domain administrator; if set to true, then the requester will be granted access if they are an administrator of the domain to which the shared drive
1703
- * belongs.
1704
- */
1702
+ /** Issue the request as a domain administrator. If set to true, then the requester is granted access if they're an administrator of the domain to which the shared drive belongs. */
1705
1703
  useDomainAdminAccess?: boolean;
1706
1704
  /** Deprecated. Please use quotaUser instead. */
1707
1705
  userIp?: string;
@@ -2267,7 +2265,7 @@ declare namespace gapi.client {
2267
2265
  body: Channel): Request<Channel>;
2268
2266
  }
2269
2267
  interface PermissionsResource {
2270
- /** Creates a permission for a file or shared drive. */
2268
+ /** Creates a permission for a file or shared drive. For more information on creating permissions, see Share files, folders & drives. */
2271
2269
  create(request: {
2272
2270
  /** Data format for the response. */
2273
2271
  alt?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.drive-v3",
3
- "version": "0.0.20230212",
3
+ "version": "0.0.20230306",
4
4
  "description": "TypeScript typings for Drive API v3",
5
5
  "license": "MIT",
6
6
  "author": {
package/readme.md CHANGED
@@ -103,7 +103,7 @@ Lists the changes for a user or shared drive.
103
103
  await gapi.client.drive.changes.list({ pageToken: "pageToken", });
104
104
 
105
105
  /*
106
- Subscribes to changes for a user.
106
+ Subscribes to changes for a user. To use this method, you must include the pageToken query parameter.
107
107
  */
108
108
  await gapi.client.drive.changes.watch({ pageToken: "pageToken", });
109
109
 
@@ -168,7 +168,7 @@ Restores a shared drive to the default view.
168
168
  await gapi.client.drive.drives.unhide({ driveId: "driveId", });
169
169
 
170
170
  /*
171
- Updates the metadate for a shared drive.
171
+ Updates the metadata for a shared drive.
172
172
  */
173
173
  await gapi.client.drive.drives.update({ driveId: "driveId", });
174
174
 
@@ -233,7 +233,7 @@ Subscribes to changes to a file. While you can establish a channel for changes t
233
233
  await gapi.client.drive.files.watch({ fileId: "fileId", });
234
234
 
235
235
  /*
236
- Creates a permission for a file or shared drive.
236
+ Creates a permission for a file or shared drive. For more information on creating permissions, see Share files, folders & drives.
237
237
  */
238
238
  await gapi.client.drive.permissions.create({ fileId: "fileId", });
239
239
 
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: 20230212
6
+ // Revision: 20230306
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -69,7 +69,7 @@ gapi.load('client', async () => {
69
69
  supportsTeamDrives: true,
70
70
  teamDriveId: "Test string",
71
71
  });
72
- /** Subscribes to changes for a user. */
72
+ /** Subscribes to changes for a user. To use this method, you must include the pageToken query parameter. */
73
73
  await gapi.client.drive.changes.watch({
74
74
  driveId: "Test string",
75
75
  includeCorpusRemovals: true,
@@ -301,7 +301,7 @@ gapi.load('client', async () => {
301
301
  await gapi.client.drive.drives.unhide({
302
302
  driveId: "Test string",
303
303
  });
304
- /** Updates the metadate for a shared drive. */
304
+ /** Updates the metadata for a shared drive. */
305
305
  await gapi.client.drive.drives.update({
306
306
  driveId: "Test string",
307
307
  useDomainAdminAccess: true,
@@ -1320,7 +1320,7 @@ gapi.load('client', async () => {
1320
1320
  token: "Test string",
1321
1321
  type: "Test string",
1322
1322
  });
1323
- /** Creates a permission for a file or shared drive. */
1323
+ /** Creates a permission for a file or shared drive. For more information on creating permissions, see Share files, folders & drives. */
1324
1324
  await gapi.client.drive.permissions.create({
1325
1325
  emailMessage: "Test string",
1326
1326
  enforceSingleParent: true,