@maxim_mazurok/gapi.client.drive-v3 0.0.20240118 → 0.0.20240126

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 +131 -1
  2. package/package.json +1 -1
  3. package/readme.md +13 -0
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: 20240118
12
+ // Revision: 20240126
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -75,6 +75,74 @@ declare namespace gapi.client {
75
75
  /** The authenticated user. */
76
76
  user?: User;
77
77
  }
78
+ interface App {
79
+ /** Whether the app is authorized to access data on the user's Drive. */
80
+ authorized?: boolean;
81
+ /** The template URL to create a file with this app in a given folder. The template contains the {folderId} to be replaced by the folder ID house the new file. */
82
+ createInFolderTemplate?: string;
83
+ /** The URL to create a file with this app. */
84
+ createUrl?: string;
85
+ /** Whether the app has Drive-wide scope. An app with Drive-wide scope can access all files in the user's Drive. */
86
+ hasDriveWideScope?: boolean;
87
+ /** The various icons for the app. */
88
+ icons?: AppIcons[];
89
+ /** The ID of the app. */
90
+ id?: string;
91
+ /** Whether the app is installed. */
92
+ installed?: boolean;
93
+ /** Output only. Identifies what kind of resource this is. Value: the fixed string "drive#app". */
94
+ kind?: string;
95
+ /** A long description of the app. */
96
+ longDescription?: string;
97
+ /** The name of the app. */
98
+ name?: string;
99
+ /** The type of object this app creates such as a Chart. If empty, the app name should be used instead. */
100
+ objectType?: string;
101
+ /** The template URL for opening files with this app. The template contains {ids} or {exportIds} to be replaced by the actual file IDs. For more information, see Open Files for the full documentation. */
102
+ openUrlTemplate?: string;
103
+ /** The list of primary file extensions. */
104
+ primaryFileExtensions?: string[];
105
+ /** The list of primary MIME types. */
106
+ primaryMimeTypes?: string[];
107
+ /** The ID of the product listing for this app. */
108
+ productId?: string;
109
+ /** A link to the product listing for this app. */
110
+ productUrl?: string;
111
+ /** The list of secondary file extensions. */
112
+ secondaryFileExtensions?: string[];
113
+ /** The list of secondary MIME types. */
114
+ secondaryMimeTypes?: string[];
115
+ /** A short description of the app. */
116
+ shortDescription?: string;
117
+ /** Whether this app supports creating objects. */
118
+ supportsCreate?: boolean;
119
+ /** Whether this app supports importing from Google Docs. */
120
+ supportsImport?: boolean;
121
+ /** Whether this app supports opening more than one file. */
122
+ supportsMultiOpen?: boolean;
123
+ /** Whether this app supports creating files when offline. */
124
+ supportsOfflineCreate?: boolean;
125
+ /** Whether the app is selected as the default handler for the types it supports. */
126
+ useByDefault?: boolean;
127
+ }
128
+ interface AppIcons {
129
+ /** Category of the icon. Allowed values are: * `application` - The icon for the application. * `document` - The icon for a file associated with the app. * `documentShared` - The icon for a shared file associated with the app. */
130
+ category?: string;
131
+ /** URL for the icon. */
132
+ iconUrl?: string;
133
+ /** Size of the icon. Represented as the maximum of the width and height. */
134
+ size?: number;
135
+ }
136
+ interface AppList {
137
+ /** The list of app IDs that the user has specified to use by default. The list is in reverse-priority order (lowest to highest). */
138
+ defaultAppIds?: string[];
139
+ /** The list of apps. */
140
+ items?: App[];
141
+ /** Output only. Identifies what kind of resource this is. Value: the fixed string "drive#appList". */
142
+ kind?: string;
143
+ /** A link back to this list. */
144
+ selfLink?: string;
145
+ }
78
146
  interface Change {
79
147
  /** The type of the change. Possible values are `file` and `drive`. */
80
148
  changeType?: string;
@@ -938,6 +1006,66 @@ declare namespace gapi.client {
938
1006
  uploadType?: string;
939
1007
  }): Request<About>;
940
1008
  }
1009
+ interface AppsResource {
1010
+ /** Gets a specific app. */
1011
+ get(request?: {
1012
+ /** V1 error format. */
1013
+ '$.xgafv'?: string;
1014
+ /** OAuth access token. */
1015
+ access_token?: string;
1016
+ /** Data format for response. */
1017
+ alt?: string;
1018
+ /** The ID of the app. */
1019
+ appId: string;
1020
+ /** JSONP */
1021
+ callback?: string;
1022
+ /** Selector specifying which fields to include in a partial response. */
1023
+ fields?: string;
1024
+ /** 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. */
1025
+ key?: string;
1026
+ /** OAuth 2.0 token for the current user. */
1027
+ oauth_token?: string;
1028
+ /** Returns response with indentations and line breaks. */
1029
+ prettyPrint?: boolean;
1030
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1031
+ quotaUser?: string;
1032
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1033
+ upload_protocol?: string;
1034
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1035
+ uploadType?: string;
1036
+ }): Request<App>;
1037
+ /** Lists a user's installed apps. */
1038
+ list(request?: {
1039
+ /** V1 error format. */
1040
+ '$.xgafv'?: string;
1041
+ /** OAuth access token. */
1042
+ access_token?: string;
1043
+ /** Data format for response. */
1044
+ alt?: string;
1045
+ /** A comma-separated list of file extensions to limit returned results. All results within the given app query scope which can open any of the given file extensions are included in the response. If `appFilterMimeTypes` are provided as well, the result is a union of the two resulting app lists. */
1046
+ appFilterExtensions?: string;
1047
+ /** A comma-separated list of file extensions to limit returned results. All results within the given app query scope which can open any of the given MIME types will be included in the response. If `appFilterExtensions` are provided as well, the result is a union of the two resulting app lists. */
1048
+ appFilterMimeTypes?: string;
1049
+ /** JSONP */
1050
+ callback?: string;
1051
+ /** Selector specifying which fields to include in a partial response. */
1052
+ fields?: string;
1053
+ /** 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. */
1054
+ key?: string;
1055
+ /** A language or locale code, as defined by BCP 47, with some extensions from Unicode's LDML format (http://www.unicode.org/reports/tr35/). */
1056
+ languageCode?: string;
1057
+ /** OAuth 2.0 token for the current user. */
1058
+ oauth_token?: string;
1059
+ /** Returns response with indentations and line breaks. */
1060
+ prettyPrint?: boolean;
1061
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1062
+ quotaUser?: string;
1063
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1064
+ upload_protocol?: string;
1065
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1066
+ uploadType?: string;
1067
+ }): Request<AppList>;
1068
+ }
941
1069
  interface ChangesResource {
942
1070
  /** Gets the starting pageToken for listing future changes. */
943
1071
  getStartPageToken(request?: {
@@ -3220,6 +3348,8 @@ declare namespace gapi.client {
3220
3348
 
3221
3349
  const about: AboutResource;
3222
3350
 
3351
+ const apps: AppsResource;
3352
+
3223
3353
  const changes: ChangesResource;
3224
3354
 
3225
3355
  const channels: ChannelsResource;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.drive-v3",
3
- "version": "0.0.20240118",
3
+ "version": "0.0.20240126",
4
4
  "description": "TypeScript typings for Google Drive API v3",
5
5
  "repository": {
6
6
  "type": "git",
package/readme.md CHANGED
@@ -54,6 +54,9 @@ var client_id = '',
54
54
  // See, create, and delete its own configuration data in your Google Drive
55
55
  'https://www.googleapis.com/auth/drive.appdata',
56
56
 
57
+ // View your Google Drive apps
58
+ 'https://www.googleapis.com/auth/drive.apps.readonly',
59
+
57
60
  // See, edit, create, and delete only the specific Google Drive files you use with this app
58
61
  'https://www.googleapis.com/auth/drive.file',
59
62
 
@@ -96,6 +99,16 @@ Gets information about the user, the user's Drive, and system capabilities.
96
99
  */
97
100
  await gapi.client.drive.about.get({ });
98
101
 
102
+ /*
103
+ Gets a specific app.
104
+ */
105
+ await gapi.client.drive.apps.get({ appId: "appId", });
106
+
107
+ /*
108
+ Lists a user's installed apps.
109
+ */
110
+ await gapi.client.drive.apps.list({ });
111
+
99
112
  /*
100
113
  Gets the starting pageToken for listing future changes.
101
114
  */