@maxim_mazurok/gapi.client.drive-v2 0.0.20230708 → 0.0.20230714
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 +17 -2
- package/package.json +1 -1
- package/tests.ts +17 -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/v2/rest
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20230714
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -559,6 +559,12 @@ declare namespace gapi.client {
|
|
|
559
559
|
string;
|
|
560
560
|
}
|
|
561
561
|
interface ContentRestriction {
|
|
562
|
+
/**
|
|
563
|
+
* 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
|
|
564
|
+
* this content restriction.
|
|
565
|
+
*/
|
|
566
|
+
ownerRestricted?:
|
|
567
|
+
boolean;
|
|
562
568
|
/**
|
|
563
569
|
* 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
|
|
564
570
|
* may not be modified.
|
|
@@ -815,12 +821,18 @@ declare namespace gapi.client {
|
|
|
815
821
|
/** Output only. Whether the current user can modify the content of this file. */
|
|
816
822
|
canModifyContent?:
|
|
817
823
|
boolean;
|
|
818
|
-
/** Output only.
|
|
824
|
+
/** Deprecated: Output only. Use one of `canModifyEditorContentRestriction`, `canModifyOwnerContentRestriction` or `canRemoveContentRestriction`. */
|
|
819
825
|
canModifyContentRestriction?:
|
|
820
826
|
boolean;
|
|
827
|
+
/** Output only. Whether the current user can add or modify content restrictions on the file which are editor restricted. */
|
|
828
|
+
canModifyEditorContentRestriction?:
|
|
829
|
+
boolean;
|
|
821
830
|
/** Output only. Whether the current user can modify the labels on the file. */
|
|
822
831
|
canModifyLabels?:
|
|
823
832
|
boolean;
|
|
833
|
+
/** Output only. Whether the current user can add or modify content restrictions which are owner restricted. */
|
|
834
|
+
canModifyOwnerContentRestriction?:
|
|
835
|
+
boolean;
|
|
824
836
|
/**
|
|
825
837
|
* 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
|
|
826
838
|
* shared drives.
|
|
@@ -884,6 +896,9 @@ declare namespace gapi.client {
|
|
|
884
896
|
*/
|
|
885
897
|
canRemoveChildren?:
|
|
886
898
|
boolean;
|
|
899
|
+
/** Output only. Whether there is a content restriction on the file that can be removed by the current user. */
|
|
900
|
+
canRemoveContentRestriction?:
|
|
901
|
+
boolean;
|
|
887
902
|
/** 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. */
|
|
888
903
|
canRemoveMyDriveParent?:
|
|
889
904
|
boolean;
|
package/package.json
CHANGED
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:
|
|
6
|
+
// Revision: 20230714
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|
|
@@ -517,7 +517,9 @@ gapi.load('client', async () => {
|
|
|
517
517
|
canListChildren: true,
|
|
518
518
|
canModifyContent: true,
|
|
519
519
|
canModifyContentRestriction: true,
|
|
520
|
+
canModifyEditorContentRestriction: true,
|
|
520
521
|
canModifyLabels: true,
|
|
522
|
+
canModifyOwnerContentRestriction: true,
|
|
521
523
|
canMoveChildrenOutOfDrive: true,
|
|
522
524
|
canMoveChildrenOutOfTeamDrive: true,
|
|
523
525
|
canMoveChildrenWithinDrive: true,
|
|
@@ -533,6 +535,7 @@ gapi.load('client', async () => {
|
|
|
533
535
|
canReadRevisions: true,
|
|
534
536
|
canReadTeamDrive: true,
|
|
535
537
|
canRemoveChildren: true,
|
|
538
|
+
canRemoveContentRestriction: true,
|
|
536
539
|
canRemoveMyDriveParent: true,
|
|
537
540
|
canRename: true,
|
|
538
541
|
canShare: true,
|
|
@@ -542,6 +545,7 @@ gapi.load('client', async () => {
|
|
|
542
545
|
},
|
|
543
546
|
contentRestrictions: [
|
|
544
547
|
{
|
|
548
|
+
ownerRestricted: true,
|
|
545
549
|
readOnly: true,
|
|
546
550
|
reason: "Test string",
|
|
547
551
|
restrictingUser: {
|
|
@@ -953,7 +957,9 @@ gapi.load('client', async () => {
|
|
|
953
957
|
canListChildren: true,
|
|
954
958
|
canModifyContent: true,
|
|
955
959
|
canModifyContentRestriction: true,
|
|
960
|
+
canModifyEditorContentRestriction: true,
|
|
956
961
|
canModifyLabels: true,
|
|
962
|
+
canModifyOwnerContentRestriction: true,
|
|
957
963
|
canMoveChildrenOutOfDrive: true,
|
|
958
964
|
canMoveChildrenOutOfTeamDrive: true,
|
|
959
965
|
canMoveChildrenWithinDrive: true,
|
|
@@ -969,6 +975,7 @@ gapi.load('client', async () => {
|
|
|
969
975
|
canReadRevisions: true,
|
|
970
976
|
canReadTeamDrive: true,
|
|
971
977
|
canRemoveChildren: true,
|
|
978
|
+
canRemoveContentRestriction: true,
|
|
972
979
|
canRemoveMyDriveParent: true,
|
|
973
980
|
canRename: true,
|
|
974
981
|
canShare: true,
|
|
@@ -978,6 +985,7 @@ gapi.load('client', async () => {
|
|
|
978
985
|
},
|
|
979
986
|
contentRestrictions: [
|
|
980
987
|
{
|
|
988
|
+
ownerRestricted: true,
|
|
981
989
|
readOnly: true,
|
|
982
990
|
reason: "Test string",
|
|
983
991
|
restrictingUser: {
|
|
@@ -1415,7 +1423,9 @@ gapi.load('client', async () => {
|
|
|
1415
1423
|
canListChildren: true,
|
|
1416
1424
|
canModifyContent: true,
|
|
1417
1425
|
canModifyContentRestriction: true,
|
|
1426
|
+
canModifyEditorContentRestriction: true,
|
|
1418
1427
|
canModifyLabels: true,
|
|
1428
|
+
canModifyOwnerContentRestriction: true,
|
|
1419
1429
|
canMoveChildrenOutOfDrive: true,
|
|
1420
1430
|
canMoveChildrenOutOfTeamDrive: true,
|
|
1421
1431
|
canMoveChildrenWithinDrive: true,
|
|
@@ -1431,6 +1441,7 @@ gapi.load('client', async () => {
|
|
|
1431
1441
|
canReadRevisions: true,
|
|
1432
1442
|
canReadTeamDrive: true,
|
|
1433
1443
|
canRemoveChildren: true,
|
|
1444
|
+
canRemoveContentRestriction: true,
|
|
1434
1445
|
canRemoveMyDriveParent: true,
|
|
1435
1446
|
canRename: true,
|
|
1436
1447
|
canShare: true,
|
|
@@ -1440,6 +1451,7 @@ gapi.load('client', async () => {
|
|
|
1440
1451
|
},
|
|
1441
1452
|
contentRestrictions: [
|
|
1442
1453
|
{
|
|
1454
|
+
ownerRestricted: true,
|
|
1443
1455
|
readOnly: true,
|
|
1444
1456
|
reason: "Test string",
|
|
1445
1457
|
restrictingUser: {
|
|
@@ -1847,7 +1859,9 @@ gapi.load('client', async () => {
|
|
|
1847
1859
|
canListChildren: true,
|
|
1848
1860
|
canModifyContent: true,
|
|
1849
1861
|
canModifyContentRestriction: true,
|
|
1862
|
+
canModifyEditorContentRestriction: true,
|
|
1850
1863
|
canModifyLabels: true,
|
|
1864
|
+
canModifyOwnerContentRestriction: true,
|
|
1851
1865
|
canMoveChildrenOutOfDrive: true,
|
|
1852
1866
|
canMoveChildrenOutOfTeamDrive: true,
|
|
1853
1867
|
canMoveChildrenWithinDrive: true,
|
|
@@ -1863,6 +1877,7 @@ gapi.load('client', async () => {
|
|
|
1863
1877
|
canReadRevisions: true,
|
|
1864
1878
|
canReadTeamDrive: true,
|
|
1865
1879
|
canRemoveChildren: true,
|
|
1880
|
+
canRemoveContentRestriction: true,
|
|
1866
1881
|
canRemoveMyDriveParent: true,
|
|
1867
1882
|
canRename: true,
|
|
1868
1883
|
canShare: true,
|
|
@@ -1872,6 +1887,7 @@ gapi.load('client', async () => {
|
|
|
1872
1887
|
},
|
|
1873
1888
|
contentRestrictions: [
|
|
1874
1889
|
{
|
|
1890
|
+
ownerRestricted: true,
|
|
1875
1891
|
readOnly: true,
|
|
1876
1892
|
reason: "Test string",
|
|
1877
1893
|
restrictingUser: {
|