@maxim_mazurok/gapi.client.drive-v3 0.1.20251119 → 0.1.20251201
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 +103 -1
- package/package.json +1 -1
- package/readme.md +10 -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:
|
|
12
|
+
// Revision: 20251201
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -165,6 +165,36 @@ declare namespace gapi.client {
|
|
|
165
165
|
/** A link back to this list. */
|
|
166
166
|
selfLink?: string;
|
|
167
167
|
}
|
|
168
|
+
interface Approval {
|
|
169
|
+
/** The Approval ID. */
|
|
170
|
+
approvalId?: string;
|
|
171
|
+
/** Output only. The time time the approval was completed. */
|
|
172
|
+
completeTime?: string;
|
|
173
|
+
/** Output only. The time the approval was created. */
|
|
174
|
+
createTime?: string;
|
|
175
|
+
/** The time that the approval is due. */
|
|
176
|
+
dueTime?: string;
|
|
177
|
+
/** The user that requested the Approval. */
|
|
178
|
+
initiator?: User;
|
|
179
|
+
/** This is always drive#approval. */
|
|
180
|
+
kind?: string;
|
|
181
|
+
/** Output only. The most recent time the approval was modified. */
|
|
182
|
+
modifyTime?: string;
|
|
183
|
+
/** The responses made on the Approval by reviewers. */
|
|
184
|
+
reviewerResponses?: ReviewerResponse[];
|
|
185
|
+
/** Output only. The status of the approval at the time this resource was requested. */
|
|
186
|
+
status?: string;
|
|
187
|
+
/** Target file id of the approval. */
|
|
188
|
+
targetFileId?: string;
|
|
189
|
+
}
|
|
190
|
+
interface ApprovalList {
|
|
191
|
+
/** The list of Approvals. If nextPageToken is populated, then this list may be incomplete and an additional page of results should be fetched. */
|
|
192
|
+
items?: Approval[];
|
|
193
|
+
/** This is always drive#approvalList */
|
|
194
|
+
kind?: string;
|
|
195
|
+
/** The page token for the next page of Approvals. This will be absent if the end of the Approvals list has been reached. If the token is rejected for any reason, it should be discarded, and pagination should be restarted from the first page of results. */
|
|
196
|
+
nextPageToken?: string;
|
|
197
|
+
}
|
|
168
198
|
interface Change {
|
|
169
199
|
/** The type of the change. Possible values are `file` and `drive`. */
|
|
170
200
|
changeType?: string;
|
|
@@ -912,6 +942,14 @@ declare namespace gapi.client {
|
|
|
912
942
|
/** Optional. Indicates the view for this access proposal. This should only be set when the proposal belongs to a view. Only `published` is supported. */
|
|
913
943
|
view?: string;
|
|
914
944
|
}
|
|
945
|
+
interface ReviewerResponse {
|
|
946
|
+
/** This is always drive#reviewerResponse. */
|
|
947
|
+
kind?: string;
|
|
948
|
+
/** A Reviewer’s Response for the Approval. */
|
|
949
|
+
response?: string;
|
|
950
|
+
/** The user that is responsible for this response. */
|
|
951
|
+
reviewer?: User;
|
|
952
|
+
}
|
|
915
953
|
interface Revision {
|
|
916
954
|
/** Output only. Links for exporting Docs Editors files to specific formats. */
|
|
917
955
|
exportLinks?: {[P in string]: string};
|
|
@@ -1228,6 +1266,68 @@ declare namespace gapi.client {
|
|
|
1228
1266
|
body: ResolveAccessProposalRequest,
|
|
1229
1267
|
): Request<void>;
|
|
1230
1268
|
}
|
|
1269
|
+
interface ApprovalsResource {
|
|
1270
|
+
/** Gets an Approval by ID. */
|
|
1271
|
+
get(request?: {
|
|
1272
|
+
/** V1 error format. */
|
|
1273
|
+
'$.xgafv'?: string;
|
|
1274
|
+
/** OAuth access token. */
|
|
1275
|
+
access_token?: string;
|
|
1276
|
+
/** Data format for response. */
|
|
1277
|
+
alt?: string;
|
|
1278
|
+
/** Required. The ID of the Approval. */
|
|
1279
|
+
approvalId: string;
|
|
1280
|
+
/** JSONP */
|
|
1281
|
+
callback?: string;
|
|
1282
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1283
|
+
fields?: string;
|
|
1284
|
+
/** Required. The ID of the file the Approval is on. */
|
|
1285
|
+
fileId: string;
|
|
1286
|
+
/** 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. */
|
|
1287
|
+
key?: string;
|
|
1288
|
+
/** OAuth 2.0 token for the current user. */
|
|
1289
|
+
oauth_token?: string;
|
|
1290
|
+
/** Returns response with indentations and line breaks. */
|
|
1291
|
+
prettyPrint?: boolean;
|
|
1292
|
+
/** 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. */
|
|
1293
|
+
quotaUser?: string;
|
|
1294
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1295
|
+
upload_protocol?: string;
|
|
1296
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1297
|
+
uploadType?: string;
|
|
1298
|
+
}): Request<Approval>;
|
|
1299
|
+
/** Lists the Approvals on a file. */
|
|
1300
|
+
list(request?: {
|
|
1301
|
+
/** V1 error format. */
|
|
1302
|
+
'$.xgafv'?: string;
|
|
1303
|
+
/** OAuth access token. */
|
|
1304
|
+
access_token?: string;
|
|
1305
|
+
/** Data format for response. */
|
|
1306
|
+
alt?: string;
|
|
1307
|
+
/** JSONP */
|
|
1308
|
+
callback?: string;
|
|
1309
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1310
|
+
fields?: string;
|
|
1311
|
+
/** Required. The ID of the file the Approval is on. */
|
|
1312
|
+
fileId: string;
|
|
1313
|
+
/** 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. */
|
|
1314
|
+
key?: string;
|
|
1315
|
+
/** OAuth 2.0 token for the current user. */
|
|
1316
|
+
oauth_token?: string;
|
|
1317
|
+
/** The maximum number of Approvals to return. When not set, at most 100 Approvals will be returned. */
|
|
1318
|
+
pageSize?: number;
|
|
1319
|
+
/** The token for continuing a previous list request on the next page. This should be set to the value of nextPageToken from a previous response. */
|
|
1320
|
+
pageToken?: string;
|
|
1321
|
+
/** Returns response with indentations and line breaks. */
|
|
1322
|
+
prettyPrint?: boolean;
|
|
1323
|
+
/** 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. */
|
|
1324
|
+
quotaUser?: string;
|
|
1325
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1326
|
+
upload_protocol?: string;
|
|
1327
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1328
|
+
uploadType?: string;
|
|
1329
|
+
}): Request<ApprovalList>;
|
|
1330
|
+
}
|
|
1231
1331
|
interface AppsResource {
|
|
1232
1332
|
/** Gets a specific app. For more information, see [Return user info](https://developers.google.com/workspace/drive/api/guides/user-info). */
|
|
1233
1333
|
get(request?: {
|
|
@@ -3642,6 +3742,8 @@ declare namespace gapi.client {
|
|
|
3642
3742
|
|
|
3643
3743
|
const accessproposals: AccessproposalsResource;
|
|
3644
3744
|
|
|
3745
|
+
const approvals: ApprovalsResource;
|
|
3746
|
+
|
|
3645
3747
|
const apps: AppsResource;
|
|
3646
3748
|
|
|
3647
3749
|
const changes: ChangesResource;
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -117,6 +117,16 @@ Approves or denies an access proposal. For more information, see [Manage pending
|
|
|
117
117
|
*/
|
|
118
118
|
await gapi.client.drive.accessproposals.resolve({ fileId: "fileId", proposalId: "proposalId", });
|
|
119
119
|
|
|
120
|
+
/*
|
|
121
|
+
Gets an Approval by ID.
|
|
122
|
+
*/
|
|
123
|
+
await gapi.client.drive.approvals.get({ approvalId: "approvalId", fileId: "fileId", });
|
|
124
|
+
|
|
125
|
+
/*
|
|
126
|
+
Lists the Approvals on a file.
|
|
127
|
+
*/
|
|
128
|
+
await gapi.client.drive.approvals.list({ fileId: "fileId", });
|
|
129
|
+
|
|
120
130
|
/*
|
|
121
131
|
Gets a specific app. For more information, see [Return user info](https://developers.google.com/workspace/drive/api/guides/user-info).
|
|
122
132
|
*/
|