@maxim_mazurok/gapi.client.drive-v3 0.0.20230711 → 0.0.20230718

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.
Files changed (3) hide show
  1. package/index.d.ts +17 -2
  2. package/package.json +1 -1
  3. package/tests.ts +13 -1
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: 20230711
12
+ // Revision: 20230718
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -241,6 +241,12 @@ declare namespace gapi.client {
241
241
  string;
242
242
  }
243
243
  interface ContentRestriction {
244
+ /**
245
+ * Whether the content restriction can only be modified or removed by a user who owns the file. For files in shared drives, any user with `organizer` capabilities can modify or remove
246
+ * this content restriction.
247
+ */
248
+ ownerRestricted?:
249
+ boolean;
244
250
  /**
245
251
  * Whether the content of the file is read-only. If a file is read-only, a new revision of the file may not be added, comments may not be added or modified, and the title of the file
246
252
  * may not be modified.
@@ -493,12 +499,18 @@ declare namespace gapi.client {
493
499
  /** Output only. Whether the current user can modify the content of this file. */
494
500
  canModifyContent?:
495
501
  boolean;
496
- /** Output only. Whether the current user can modify restrictions on content of this file. */
502
+ /** Deprecated: Output only. Use one of `canModifyEditorContentRestriction`, `canModifyOwnerContentRestriction` or `canRemoveContentRestriction`. */
497
503
  canModifyContentRestriction?:
498
504
  boolean;
505
+ /** Output only. Whether the current user can add or modify content restrictions on the file which are editor restricted. */
506
+ canModifyEditorContentRestriction?:
507
+ boolean;
499
508
  /** Output only. Whether the current user can modify the labels on the file. */
500
509
  canModifyLabels?:
501
510
  boolean;
511
+ /** Output only. Whether the current user can add or modify content restrictions which are owner restricted. */
512
+ canModifyOwnerContentRestriction?:
513
+ boolean;
502
514
  /**
503
515
  * Output only. Whether the current user can move children of this folder outside of the shared drive. This is false when the item is not a folder. Only populated for items in
504
516
  * shared drives.
@@ -562,6 +574,9 @@ declare namespace gapi.client {
562
574
  */
563
575
  canRemoveChildren?:
564
576
  boolean;
577
+ /** Output only. Whether there is a content restriction on the file that can be removed by the current user. */
578
+ canRemoveContentRestriction?:
579
+ boolean;
565
580
  /** Output only. Whether the current user can remove a parent from the item without adding another parent in the same request. Not populated for shared drive files. */
566
581
  canRemoveMyDriveParent?:
567
582
  boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.drive-v3",
3
- "version": "0.0.20230711",
3
+ "version": "0.0.20230718",
4
4
  "description": "TypeScript typings for Google Drive API v3",
5
5
  "license": "MIT",
6
6
  "author": {
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: 20230711
6
+ // Revision: 20230718
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -388,7 +388,9 @@ gapi.load('client', async () => {
388
388
  canListChildren: true,
389
389
  canModifyContent: true,
390
390
  canModifyContentRestriction: true,
391
+ canModifyEditorContentRestriction: true,
391
392
  canModifyLabels: true,
393
+ canModifyOwnerContentRestriction: true,
392
394
  canMoveChildrenOutOfDrive: true,
393
395
  canMoveChildrenOutOfTeamDrive: true,
394
396
  canMoveChildrenWithinDrive: true,
@@ -404,6 +406,7 @@ gapi.load('client', async () => {
404
406
  canReadRevisions: true,
405
407
  canReadTeamDrive: true,
406
408
  canRemoveChildren: true,
409
+ canRemoveContentRestriction: true,
407
410
  canRemoveMyDriveParent: true,
408
411
  canRename: true,
409
412
  canShare: true,
@@ -420,6 +423,7 @@ gapi.load('client', async () => {
420
423
  },
421
424
  contentRestrictions: [
422
425
  {
426
+ ownerRestricted: true,
423
427
  readOnly: true,
424
428
  reason: "Test string",
425
429
  restrictingUser: {
@@ -679,7 +683,9 @@ gapi.load('client', async () => {
679
683
  canListChildren: true,
680
684
  canModifyContent: true,
681
685
  canModifyContentRestriction: true,
686
+ canModifyEditorContentRestriction: true,
682
687
  canModifyLabels: true,
688
+ canModifyOwnerContentRestriction: true,
683
689
  canMoveChildrenOutOfDrive: true,
684
690
  canMoveChildrenOutOfTeamDrive: true,
685
691
  canMoveChildrenWithinDrive: true,
@@ -695,6 +701,7 @@ gapi.load('client', async () => {
695
701
  canReadRevisions: true,
696
702
  canReadTeamDrive: true,
697
703
  canRemoveChildren: true,
704
+ canRemoveContentRestriction: true,
698
705
  canRemoveMyDriveParent: true,
699
706
  canRename: true,
700
707
  canShare: true,
@@ -711,6 +718,7 @@ gapi.load('client', async () => {
711
718
  },
712
719
  contentRestrictions: [
713
720
  {
721
+ ownerRestricted: true,
714
722
  readOnly: true,
715
723
  reason: "Test string",
716
724
  restrictingUser: {
@@ -1071,7 +1079,9 @@ gapi.load('client', async () => {
1071
1079
  canListChildren: true,
1072
1080
  canModifyContent: true,
1073
1081
  canModifyContentRestriction: true,
1082
+ canModifyEditorContentRestriction: true,
1074
1083
  canModifyLabels: true,
1084
+ canModifyOwnerContentRestriction: true,
1075
1085
  canMoveChildrenOutOfDrive: true,
1076
1086
  canMoveChildrenOutOfTeamDrive: true,
1077
1087
  canMoveChildrenWithinDrive: true,
@@ -1087,6 +1097,7 @@ gapi.load('client', async () => {
1087
1097
  canReadRevisions: true,
1088
1098
  canReadTeamDrive: true,
1089
1099
  canRemoveChildren: true,
1100
+ canRemoveContentRestriction: true,
1090
1101
  canRemoveMyDriveParent: true,
1091
1102
  canRename: true,
1092
1103
  canShare: true,
@@ -1103,6 +1114,7 @@ gapi.load('client', async () => {
1103
1114
  },
1104
1115
  contentRestrictions: [
1105
1116
  {
1117
+ ownerRestricted: true,
1106
1118
  readOnly: true,
1107
1119
  reason: "Test string",
1108
1120
  restrictingUser: {