@maxim_mazurok/gapi.client.driveactivity-v2 0.0.20230423 → 0.0.20230425

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 +345 -173
  2. package/package.json +1 -1
  3. package/tests.ts +1 -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://driveactivity.googleapis.com/$discovery/rest?version=v2
12
- // Revision: 20230423
12
+ // Revision: 20230425
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -24,53 +24,75 @@ declare namespace gapi.client {
24
24
  namespace driveactivity {
25
25
  interface Action {
26
26
  /** The actor responsible for this action (or empty if all actors are responsible). */
27
- actor?: Actor;
27
+ actor?:
28
+ Actor;
28
29
  /** The type and detailed information about the action. */
29
- detail?: ActionDetail;
30
+ detail?:
31
+ ActionDetail;
30
32
  /** The target this action affects (or empty if affecting all targets). This represents the state of the target immediately after this action occurred. */
31
- target?: Target;
33
+ target?:
34
+ Target;
32
35
  /** The action occurred over this time range. */
33
- timeRange?: TimeRange;
36
+ timeRange?:
37
+ TimeRange;
34
38
  /** The action occurred at this specific time. */
35
- timestamp?: string;
39
+ timestamp?:
40
+ string;
36
41
  }
37
42
  interface ActionDetail {
38
43
  /** Label was changed. */
39
- appliedLabelChange?: AppliedLabelChange;
44
+ appliedLabelChange?:
45
+ AppliedLabelChange;
40
46
  /** A change about comments was made. */
41
- comment?: Comment;
47
+ comment?:
48
+ Comment;
42
49
  /** An object was created. */
43
- create?: Create;
50
+ create?:
51
+ Create;
44
52
  /** An object was deleted. */
45
- delete?: Delete;
53
+ delete?:
54
+ Delete;
46
55
  /** A change happened in data leak prevention status. */
47
- dlpChange?: DataLeakPreventionChange;
56
+ dlpChange?:
57
+ DataLeakPreventionChange;
48
58
  /** An object was edited. */
49
- edit?: any;
59
+ edit?:
60
+ any;
50
61
  /** An object was moved. */
51
- move?: Move;
62
+ move?:
63
+ Move;
52
64
  /** The permission on an object was changed. */
53
- permissionChange?: PermissionChange;
65
+ permissionChange?:
66
+ PermissionChange;
54
67
  /** An object was referenced in an application outside of Drive/Docs. */
55
- reference?: ApplicationReference;
68
+ reference?:
69
+ ApplicationReference;
56
70
  /** An object was renamed. */
57
- rename?: Rename;
71
+ rename?:
72
+ Rename;
58
73
  /** A deleted object was restored. */
59
- restore?: Restore;
74
+ restore?:
75
+ Restore;
60
76
  /** Settings were changed. */
61
- settingsChange?: SettingsChange;
77
+ settingsChange?:
78
+ SettingsChange;
62
79
  }
63
80
  interface Actor {
64
81
  /** An administrator. */
65
- administrator?: any;
82
+ administrator?:
83
+ any;
66
84
  /** An anonymous user. */
67
- anonymous?: any;
85
+ anonymous?:
86
+ any;
68
87
  /** An account acting on behalf of another. */
69
- impersonation?: Impersonation;
88
+ impersonation?:
89
+ Impersonation;
70
90
  /** A non-user actor (i.e. system triggered). */
71
- system?: SystemEvent;
91
+ system?:
92
+ SystemEvent;
72
93
  /** An end user. */
73
- user?: User;
94
+ user?:
95
+ User;
74
96
  }
75
97
  // tslint:disable-next-line:no-empty-interface
76
98
  interface Administrator {
@@ -83,226 +105,300 @@ declare namespace gapi.client {
83
105
  }
84
106
  interface ApplicationReference {
85
107
  /** The reference type corresponding to this event. */
86
- type?: string;
108
+ type?:
109
+ string;
87
110
  }
88
111
  interface AppliedLabelChange {
89
112
  /** Changes that were made to the Label on the Target. */
90
- changes?: AppliedLabelChangeDetail[];
113
+ changes?:
114
+ AppliedLabelChangeDetail[];
91
115
  }
92
116
  interface AppliedLabelChangeDetail {
93
117
  /** Field Changes. Only present if `types` contains `LABEL_FIELD_VALUE_CHANGED`. */
94
- fieldChanges?: FieldValueChange[];
118
+ fieldChanges?:
119
+ FieldValueChange[];
95
120
  /** The Label name representing the Label that changed. This name always contains the revision of the Label that was used when this Action occurred. The format is `labels/id@revision`. */
96
- label?: string;
121
+ label?:
122
+ string;
97
123
  /** The human-readable title of the label that changed. */
98
- title?: string;
124
+ title?:
125
+ string;
99
126
  /** The types of changes made to the Label on the Target. */
100
- types?: string[];
127
+ types?:
128
+ string[];
101
129
  }
102
130
  interface Assignment {
103
131
  /** The user to whom the comment was assigned. */
104
- assignedUser?: User;
132
+ assignedUser?:
133
+ User;
105
134
  /** The sub-type of this event. */
106
- subtype?: string;
135
+ subtype?:
136
+ string;
107
137
  }
108
138
  interface Comment {
109
139
  /** A change on an assignment. */
110
- assignment?: Assignment;
140
+ assignment?:
141
+ Assignment;
111
142
  /** Users who are mentioned in this comment. */
112
- mentionedUsers?: User[];
143
+ mentionedUsers?:
144
+ User[];
113
145
  /** A change on a regular posted comment. */
114
- post?: Post;
146
+ post?:
147
+ Post;
115
148
  /** A change on a suggestion. */
116
- suggestion?: Suggestion;
149
+ suggestion?:
150
+ Suggestion;
117
151
  }
118
152
  interface ConsolidationStrategy {
119
153
  /** The individual activities are consolidated using the legacy strategy. */
120
- legacy?: any;
154
+ legacy?:
155
+ any;
121
156
  /** The individual activities are not consolidated. */
122
- none?: any;
157
+ none?:
158
+ any;
123
159
  }
124
160
  interface Copy {
125
161
  /** The original object. */
126
- originalObject?: TargetReference;
162
+ originalObject?:
163
+ TargetReference;
127
164
  }
128
165
  interface Create {
129
166
  /** If present, indicates the object was created by copying an existing Drive object. */
130
- copy?: Copy;
167
+ copy?:
168
+ Copy;
131
169
  /** If present, indicates the object was newly created (e.g. as a blank document), not derived from a Drive object or external object. */
132
- new?: any;
170
+ new?:
171
+ any;
133
172
  /** If present, indicates the object originated externally and was uploaded to Drive. */
134
- upload?: any;
173
+ upload?:
174
+ any;
135
175
  }
136
176
  interface DataLeakPreventionChange {
137
177
  /** The type of Data Leak Prevention (DLP) change. */
138
- type?: string;
178
+ type?:
179
+ string;
139
180
  }
140
181
  interface Date {
141
182
  /** Date value. */
142
- value?: string;
183
+ value?:
184
+ string;
143
185
  }
144
186
  interface Delete {
145
187
  /** The type of delete action taken. */
146
- type?: string;
188
+ type?:
189
+ string;
147
190
  }
148
191
  // tslint:disable-next-line:no-empty-interface
149
192
  interface DeletedUser {
150
193
  }
151
194
  interface Domain {
152
195
  /** An opaque string used to identify this domain. */
153
- legacyId?: string;
196
+ legacyId?:
197
+ string;
154
198
  /** The name of the domain, e.g. `google.com`. */
155
- name?: string;
199
+ name?:
200
+ string;
156
201
  }
157
202
  interface Drive {
158
203
  /** The resource name of the shared drive. The format is `COLLECTION_ID/DRIVE_ID`. Clients should not assume a specific collection ID for this resource name. */
159
- name?: string;
204
+ name?:
205
+ string;
160
206
  /** The root of this shared drive. */
161
- root?: DriveItem;
207
+ root?:
208
+ DriveItem;
162
209
  /** The title of the shared drive. */
163
- title?: string;
210
+ title?:
211
+ string;
164
212
  }
165
213
  interface DriveActivity {
166
214
  /** Details on all actions in this activity. */
167
- actions?: Action[];
215
+ actions?:
216
+ Action[];
168
217
  /** All actor(s) responsible for the activity. */
169
- actors?: Actor[];
218
+ actors?:
219
+ Actor[];
170
220
  /**
171
221
  * Key information about the primary action for this activity. This is either representative, or the most important, of all actions in the activity, according to the
172
222
  * ConsolidationStrategy in the request.
173
223
  */
174
- primaryActionDetail?: ActionDetail;
224
+ primaryActionDetail?:
225
+ ActionDetail;
175
226
  /** All Google Drive objects this activity is about (e.g. file, folder, drive). This represents the state of the target immediately after the actions occurred. */
176
- targets?: Target[];
227
+ targets?:
228
+ Target[];
177
229
  /** The activity occurred over this time range. */
178
- timeRange?: TimeRange;
230
+ timeRange?:
231
+ TimeRange;
179
232
  /** The activity occurred at this specific time. */
180
- timestamp?: string;
233
+ timestamp?:
234
+ string;
181
235
  }
182
236
  // tslint:disable-next-line:no-empty-interface
183
237
  interface DriveFile {
184
238
  }
185
239
  interface DriveFolder {
186
240
  /** The type of Drive folder. */
187
- type?: string;
241
+ type?:
242
+ string;
188
243
  }
189
244
  interface DriveItem {
190
245
  /** The Drive item is a file. */
191
- driveFile?: any;
246
+ driveFile?:
247
+ any;
192
248
  /** The Drive item is a folder. Includes information about the type of folder. */
193
- driveFolder?: DriveFolder;
249
+ driveFolder?:
250
+ DriveFolder;
194
251
  /** This field is deprecated; please use the `driveFile` field instead. */
195
- file?: any;
252
+ file?:
253
+ any;
196
254
  /** This field is deprecated; please use the `driveFolder` field instead. */
197
- folder?: Folder;
255
+ folder?:
256
+ Folder;
198
257
  /** The MIME type of the Drive item. See https://developers.google.com/drive/v3/web/mime-types. */
199
- mimeType?: string;
258
+ mimeType?:
259
+ string;
200
260
  /** The target Drive item. The format is `items/ITEM_ID`. */
201
- name?: string;
261
+ name?:
262
+ string;
202
263
  /** Information about the owner of this Drive item. */
203
- owner?: Owner;
264
+ owner?:
265
+ Owner;
204
266
  /** The title of the Drive item. */
205
- title?: string;
267
+ title?:
268
+ string;
206
269
  }
207
270
  interface DriveItemReference {
208
271
  /** The Drive item is a file. */
209
- driveFile?: any;
272
+ driveFile?:
273
+ any;
210
274
  /** The Drive item is a folder. Includes information about the type of folder. */
211
- driveFolder?: DriveFolder;
275
+ driveFolder?:
276
+ DriveFolder;
212
277
  /** This field is deprecated; please use the `driveFile` field instead. */
213
- file?: any;
278
+ file?:
279
+ any;
214
280
  /** This field is deprecated; please use the `driveFolder` field instead. */
215
- folder?: Folder;
281
+ folder?:
282
+ Folder;
216
283
  /** The target Drive item. The format is `items/ITEM_ID`. */
217
- name?: string;
284
+ name?:
285
+ string;
218
286
  /** The title of the Drive item. */
219
- title?: string;
287
+ title?:
288
+ string;
220
289
  }
221
290
  interface DriveReference {
222
291
  /** The resource name of the shared drive. The format is `COLLECTION_ID/DRIVE_ID`. Clients should not assume a specific collection ID for this resource name. */
223
- name?: string;
292
+ name?:
293
+ string;
224
294
  /** The title of the shared drive. */
225
- title?: string;
295
+ title?:
296
+ string;
226
297
  }
227
298
  // tslint:disable-next-line:no-empty-interface
228
299
  interface Edit {
229
300
  }
230
301
  interface FieldValue {
231
302
  /** Date Field value. */
232
- date?: Date;
303
+ date?:
304
+ Date;
233
305
  /** Integer Field value. */
234
- integer?: Integer;
306
+ integer?:
307
+ Integer;
235
308
  /** Selection Field value. */
236
- selection?: Selection;
309
+ selection?:
310
+ Selection;
237
311
  /** Selection List Field value. */
238
- selectionList?: SelectionList;
312
+ selectionList?:
313
+ SelectionList;
239
314
  /** Text Field value. */
240
- text?: Text;
315
+ text?:
316
+ Text;
241
317
  /** Text List Field value. */
242
- textList?: TextList;
318
+ textList?:
319
+ TextList;
243
320
  /** User Field value. */
244
- user?: SingleUser;
321
+ user?:
322
+ SingleUser;
245
323
  /** User List Field value. */
246
- userList?: UserList;
324
+ userList?:
325
+ UserList;
247
326
  }
248
327
  interface FieldValueChange {
249
328
  /** The human-readable display name for this field. */
250
- displayName?: string;
329
+ displayName?:
330
+ string;
251
331
  /** The ID of this field. Field IDs are unique within a Label. */
252
- fieldId?: string;
332
+ fieldId?:
333
+ string;
253
334
  /** The value that is now set on the field. If not present, the field was cleared. At least one of {old_value|new_value} is always set. */
254
- newValue?: FieldValue;
335
+ newValue?:
336
+ FieldValue;
255
337
  /** The value that was previously set on the field. If not present, the field was newly set. At least one of {old_value|new_value} is always set. */
256
- oldValue?: FieldValue;
338
+ oldValue?:
339
+ FieldValue;
257
340
  }
258
341
  // tslint:disable-next-line:no-empty-interface
259
342
  interface File {
260
343
  }
261
344
  interface FileComment {
262
345
  /** The comment in the discussion thread. This identifier is an opaque string compatible with the Drive API; see https://developers.google.com/drive/v3/reference/comments/get */
263
- legacyCommentId?: string;
346
+ legacyCommentId?:
347
+ string;
264
348
  /**
265
349
  * The discussion thread to which the comment was added. This identifier is an opaque string compatible with the Drive API and references the first comment in a discussion; see
266
350
  * https://developers.google.com/drive/v3/reference/comments/get
267
351
  */
268
- legacyDiscussionId?: string;
352
+ legacyDiscussionId?:
353
+ string;
269
354
  /** The link to the discussion thread containing this comment, for example, `https://docs.google.com/DOCUMENT_ID/edit?disco=THREAD_ID`. */
270
- linkToDiscussion?: string;
355
+ linkToDiscussion?:
356
+ string;
271
357
  /** The Drive item containing this comment. */
272
- parent?: DriveItem;
358
+ parent?:
359
+ DriveItem;
273
360
  }
274
361
  interface Folder {
275
362
  /** This field is deprecated; please see `DriveFolder.type` instead. */
276
- type?: string;
363
+ type?:
364
+ string;
277
365
  }
278
366
  interface Group {
279
367
  /** The email address of the group. */
280
- email?: string;
368
+ email?:
369
+ string;
281
370
  /** The title of the group. */
282
- title?: string;
371
+ title?:
372
+ string;
283
373
  }
284
374
  interface Impersonation {
285
375
  /** The impersonated user. */
286
- impersonatedUser?: User;
376
+ impersonatedUser?:
377
+ User;
287
378
  }
288
379
  interface Integer {
289
380
  /** Integer value. */
290
- value?: string;
381
+ value?:
382
+ string;
291
383
  }
292
384
  interface KnownUser {
293
385
  /** True if this is the user making the request. */
294
- isCurrentUser?: boolean;
386
+ isCurrentUser?:
387
+ boolean;
295
388
  /** The identifier for this user that can be used with the People API to get more information. The format is `people/ACCOUNT_ID`. See https://developers.google.com/people/. */
296
- personName?: string;
389
+ personName?:
390
+ string;
297
391
  }
298
392
  // tslint:disable-next-line:no-empty-interface
299
393
  interface Legacy {
300
394
  }
301
395
  interface Move {
302
396
  /** The added parent object(s). */
303
- addedParents?: TargetReference[];
397
+ addedParents?:
398
+ TargetReference[];
304
399
  /** The removed parent object(s). */
305
- removedParents?: TargetReference[];
400
+ removedParents?:
401
+ TargetReference[];
306
402
  }
307
403
  // tslint:disable-next-line:no-empty-interface
308
404
  interface New {
@@ -312,46 +408,61 @@ declare namespace gapi.client {
312
408
  }
313
409
  interface Owner {
314
410
  /** The domain of the Drive item owner. */
315
- domain?: Domain;
411
+ domain?:
412
+ Domain;
316
413
  /** The drive that owns the item. */
317
- drive?: DriveReference;
414
+ drive?:
415
+ DriveReference;
318
416
  /** This field is deprecated; please use the `drive` field instead. */
319
- teamDrive?: TeamDriveReference;
417
+ teamDrive?:
418
+ TeamDriveReference;
320
419
  /** The user that owns the Drive item. */
321
- user?: User;
420
+ user?:
421
+ User;
322
422
  }
323
423
  interface Permission {
324
424
  /** If true, the item can be discovered (e.g. in the user's "Shared with me" collection) without needing a link to the item. */
325
- allowDiscovery?: boolean;
425
+ allowDiscovery?:
426
+ boolean;
326
427
  /** If set, this permission applies to anyone, even logged out users. */
327
- anyone?: any;
428
+ anyone?:
429
+ any;
328
430
  /** The domain to whom this permission applies. */
329
- domain?: Domain;
431
+ domain?:
432
+ Domain;
330
433
  /** The group to whom this permission applies. */
331
- group?: Group;
434
+ group?:
435
+ Group;
332
436
  /**
333
437
  * Indicates the [Google Drive permissions role](https://developers.google.com/drive/web/manage-sharing#roles). The role determines a user's ability to read, write, and comment on
334
438
  * items.
335
439
  */
336
- role?: string;
440
+ role?:
441
+ string;
337
442
  /** The user to whom this permission applies. */
338
- user?: User;
443
+ user?:
444
+ User;
339
445
  }
340
446
  interface PermissionChange {
341
447
  /** The set of permissions added by this change. */
342
- addedPermissions?: Permission[];
448
+ addedPermissions?:
449
+ Permission[];
343
450
  /** The set of permissions removed by this change. */
344
- removedPermissions?: Permission[];
451
+ removedPermissions?:
452
+ Permission[];
345
453
  }
346
454
  interface Post {
347
455
  /** The sub-type of this event. */
348
- subtype?: string;
456
+ subtype?:
457
+ string;
349
458
  }
350
459
  interface QueryDriveActivityRequest {
351
460
  /** Return activities for this Drive folder, plus all children and descendants. The format is `items/ITEM_ID`. */
352
- ancestorName?: string;
461
+ ancestorName?:
462
+ string;
353
463
  /** Details on how to consolidate related actions that make up the activity. If not set, then related actions aren't consolidated. */
354
- consolidationStrategy?: ConsolidationStrategy;
464
+ consolidationStrategy?:
465
+ ConsolidationStrategy;
355
466
  /**
356
467
  * The filtering for items returned from this query request. The format of the filter string is a sequence of expressions, joined by an optional "AND", where each expression is of the
357
468
  * form "field operator value". Supported fields: - `time`: Uses numerical operators on date values either in terms of milliseconds since Jan 1, 1970 or in RFC 3339 format. Examples: -
@@ -359,113 +470,147 @@ declare namespace gapi.client {
359
470
  * list of allowed action types enclosed in parentheses, separated by a space. To exclude a result from the response, prepend a hyphen (`-`) to the beginning of the filter string.
360
471
  * Examples: - `detail.action_detail_case:RENAME` - `detail.action_detail_case:(CREATE RESTORE)` - `-detail.action_detail_case:MOVE`
361
472
  */
362
- filter?: string;
473
+ filter?:
474
+ string;
363
475
  /** Return activities for this Drive item. The format is `items/ITEM_ID`. */
364
- itemName?: string;
476
+ itemName?:
477
+ string;
365
478
  /**
366
479
  * The minimum number of activities desired in the response; the server attempts to return at least this quantity. The server may also return fewer activities if it has a partial
367
480
  * response ready before the request times out. If not set, a default value is used.
368
481
  */
369
- pageSize?: number;
482
+ pageSize?:
483
+ number;
370
484
  /**
371
485
  * The token identifies which page of results to return. Set this to the next_page_token value returned from a previous query to obtain the following page of results. If not set, the
372
486
  * first page of results is returned.
373
487
  */
374
- pageToken?: string;
488
+ pageToken?:
489
+ string;
375
490
  }
376
491
  interface QueryDriveActivityResponse {
377
492
  /** List of activity requested. */
378
- activities?: DriveActivity[];
493
+ activities?:
494
+ DriveActivity[];
379
495
  /** Token to retrieve the next page of results, or empty if there are no more results in the list. */
380
- nextPageToken?: string;
496
+ nextPageToken?:
497
+ string;
381
498
  }
382
499
  interface Rename {
383
500
  /** The new title of the drive object. */
384
- newTitle?: string;
501
+ newTitle?:
502
+ string;
385
503
  /** The previous title of the drive object. */
386
- oldTitle?: string;
504
+ oldTitle?:
505
+ string;
387
506
  }
388
507
  interface Restore {
389
508
  /** The type of restore action taken. */
390
- type?: string;
509
+ type?:
510
+ string;
391
511
  }
392
512
  interface RestrictionChange {
393
513
  /** The feature which had a change in restriction policy. */
394
- feature?: string;
514
+ feature?:
515
+ string;
395
516
  /** The restriction in place after the change. */
396
- newRestriction?: string;
517
+ newRestriction?:
518
+ string;
397
519
  }
398
520
  interface Selection {
399
521
  /** Selection value as human-readable display string. */
400
- displayName?: string;
522
+ displayName?:
523
+ string;
401
524
  /** Selection value as Field Choice ID. */
402
- value?: string;
525
+ value?:
526
+ string;
403
527
  }
404
528
  interface SelectionList {
405
529
  /** Selection values. */
406
- values?: Selection[];
530
+ values?:
531
+ Selection[];
407
532
  }
408
533
  interface SettingsChange {
409
534
  /** The set of changes made to restrictions. */
410
- restrictionChanges?: RestrictionChange[];
535
+ restrictionChanges?:
536
+ RestrictionChange[];
411
537
  }
412
538
  interface SingleUser {
413
539
  /** User value as email. */
414
- value?: string;
540
+ value?:
541
+ string;
415
542
  }
416
543
  interface Suggestion {
417
544
  /** The sub-type of this event. */
418
- subtype?: string;
545
+ subtype?:
546
+ string;
419
547
  }
420
548
  interface SystemEvent {
421
549
  /** The type of the system event that may triggered activity. */
422
- type?: string;
550
+ type?:
551
+ string;
423
552
  }
424
553
  interface Target {
425
554
  /** The target is a shared drive. */
426
- drive?: Drive;
555
+ drive?:
556
+ Drive;
427
557
  /** The target is a Drive item. */
428
- driveItem?: DriveItem;
558
+ driveItem?:
559
+ DriveItem;
429
560
  /** The target is a comment on a Drive file. */
430
- fileComment?: FileComment;
561
+ fileComment?:
562
+ FileComment;
431
563
  /** This field is deprecated; please use the `drive` field instead. */
432
- teamDrive?: TeamDrive;
564
+ teamDrive?:
565
+ TeamDrive;
433
566
  }
434
567
  interface TargetReference {
435
568
  /** The target is a shared drive. */
436
- drive?: DriveReference;
569
+ drive?:
570
+ DriveReference;
437
571
  /** The target is a Drive item. */
438
- driveItem?: DriveItemReference;
572
+ driveItem?:
573
+ DriveItemReference;
439
574
  /** This field is deprecated; please use the `drive` field instead. */
440
- teamDrive?: TeamDriveReference;
575
+ teamDrive?:
576
+ TeamDriveReference;
441
577
  }
442
578
  interface TeamDrive {
443
579
  /** This field is deprecated; please see `Drive.name` instead. */
444
- name?: string;
580
+ name?:
581
+ string;
445
582
  /** This field is deprecated; please see `Drive.root` instead. */
446
- root?: DriveItem;
583
+ root?:
584
+ DriveItem;
447
585
  /** This field is deprecated; please see `Drive.title` instead. */
448
- title?: string;
586
+ title?:
587
+ string;
449
588
  }
450
589
  interface TeamDriveReference {
451
590
  /** This field is deprecated; please see `DriveReference.name` instead. */
452
- name?: string;
591
+ name?:
592
+ string;
453
593
  /** This field is deprecated; please see `DriveReference.title` instead. */
454
- title?: string;
594
+ title?:
595
+ string;
455
596
  }
456
597
  interface Text {
457
598
  /** Value of Text Field. */
458
- value?: string;
599
+ value?:
600
+ string;
459
601
  }
460
602
  interface TextList {
461
603
  /** Text values. */
462
- values?: Text[];
604
+ values?:
605
+ Text[];
463
606
  }
464
607
  interface TimeRange {
465
608
  /** The end of the time range. */
466
- endTime?: string;
609
+ endTime?:
610
+ string;
467
611
  /** The start of the time range. */
468
- startTime?: string;
612
+ startTime?:
613
+ string;
469
614
  }
470
615
  // tslint:disable-next-line:no-empty-interface
471
616
  interface UnknownUser {
@@ -475,67 +620,94 @@ declare namespace gapi.client {
475
620
  }
476
621
  interface User {
477
622
  /** A user whose account has since been deleted. */
478
- deletedUser?: any;
623
+ deletedUser?:
624
+ any;
479
625
  /** A known user. */
480
- knownUser?: KnownUser;
626
+ knownUser?:
627
+ KnownUser;
481
628
  /** A user about whom nothing is currently known. */
482
- unknownUser?: any;
629
+ unknownUser?:
630
+ any;
483
631
  }
484
632
  interface UserList {
485
633
  /** User values. */
486
- values?: SingleUser[];
634
+ values?:
635
+ SingleUser[];
487
636
  }
488
637
  interface ActivityResource {
489
638
  /** Query past activity in Google Drive. */
490
639
  query(request: {
491
640
  /** V1 error format. */
492
- "$.xgafv"?: string;
641
+ "$.xgafv"?:
642
+ string;
493
643
  /** OAuth access token. */
494
- access_token?: string;
644
+ access_token?:
645
+ string;
495
646
  /** Data format for response. */
496
- alt?: string;
647
+ alt?:
648
+ string;
497
649
  /** JSONP */
498
- callback?: string;
650
+ callback?:
651
+ string;
499
652
  /** Selector specifying which fields to include in a partial response. */
500
- fields?: string;
653
+ fields?:
654
+ string;
501
655
  /** 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. */
502
- key?: string;
656
+ key?:
657
+ string;
503
658
  /** OAuth 2.0 token for the current user. */
504
- oauth_token?: string;
659
+ oauth_token?:
660
+ string;
505
661
  /** Returns response with indentations and line breaks. */
506
- prettyPrint?: boolean;
662
+ prettyPrint?:
663
+ boolean;
507
664
  /** 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. */
508
- quotaUser?: string;
665
+ quotaUser?:
666
+ string;
509
667
  /** Upload protocol for media (e.g. "raw", "multipart"). */
510
- upload_protocol?: string;
668
+ upload_protocol?:
669
+ string;
511
670
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
512
- uploadType?: string;
671
+ uploadType?:
672
+ string;
513
673
  /** Request body */
514
- resource: QueryDriveActivityRequest;
674
+ resource:
675
+ QueryDriveActivityRequest;
515
676
  }): Request<QueryDriveActivityResponse>;
516
677
  query(request: {
517
678
  /** V1 error format. */
518
- "$.xgafv"?: string;
679
+ "$.xgafv"?:
680
+ string;
519
681
  /** OAuth access token. */
520
- access_token?: string;
682
+ access_token?:
683
+ string;
521
684
  /** Data format for response. */
522
- alt?: string;
685
+ alt?:
686
+ string;
523
687
  /** JSONP */
524
- callback?: string;
688
+ callback?:
689
+ string;
525
690
  /** Selector specifying which fields to include in a partial response. */
526
- fields?: string;
691
+ fields?:
692
+ string;
527
693
  /** 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. */
528
- key?: string;
694
+ key?:
695
+ string;
529
696
  /** OAuth 2.0 token for the current user. */
530
- oauth_token?: string;
697
+ oauth_token?:
698
+ string;
531
699
  /** Returns response with indentations and line breaks. */
532
- prettyPrint?: boolean;
700
+ prettyPrint?:
701
+ boolean;
533
702
  /** 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. */
534
- quotaUser?: string;
703
+ quotaUser?:
704
+ string;
535
705
  /** Upload protocol for media (e.g. "raw", "multipart"). */
536
- upload_protocol?: string;
706
+ upload_protocol?:
707
+ string;
537
708
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
538
- uploadType?: string;
709
+ uploadType?:
710
+ string;
539
711
  },
540
712
  body: QueryDriveActivityRequest): Request<QueryDriveActivityResponse>;
541
713
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.driveactivity-v2",
3
- "version": "0.0.20230423",
3
+ "version": "0.0.20230425",
4
4
  "description": "TypeScript typings for Drive Activity API v2",
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: 20230423
6
+ // Revision: 20230425
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */