@maxim_mazurok/gapi.client.tasks-v1 0.1.20260317 → 0.2.20260602

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 +44 -44
  2. package/package.json +1 -1
  3. package/readme.md +12 -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://tasks.googleapis.com/$discovery/rest?version=v1
12
- // Revision: 20260317
12
+ // Revision: 20260602
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -32,7 +32,7 @@ declare namespace gapi.client {
32
32
  /** Output only. Information about the Chat Space where this task originates from. This field is read-only. */
33
33
  spaceInfo?: SpaceInfo;
34
34
  /** Output only. The type of surface this assigned task originates from. Currently limited to DOCUMENT or SPACE. */
35
- surfaceType?: string;
35
+ surfaceType?: 'CONTEXT_TYPE_UNSPECIFIED' | 'GMAIL' | 'DOCUMENT' | 'SPACE';
36
36
  }
37
37
  interface DriveResourceInfo {
38
38
  /** Output only. Identifier of the file in the Drive API. */
@@ -62,14 +62,14 @@ declare namespace gapi.client {
62
62
  /** Output only. Type of the resource. This is always "tasks#task". */
63
63
  kind?: string;
64
64
  /** Output only. Collection of links. This collection is read-only. */
65
- links?: Array<{
65
+ links?: {
66
66
  /** The description (might be empty). */
67
67
  description?: string;
68
68
  /** The URL. */
69
69
  link?: string;
70
70
  /** Type of the link, e.g. "email", "generic", "chat_message", "keep_note". */
71
71
  type?: string;
72
- }>;
72
+ }[];
73
73
  /** Notes describing the task. Tasks assigned from Google Docs cannot have notes. Optional. Maximum length allowed: 8192 characters. */
74
74
  notes?: string;
75
75
  /** Output only. Parent task identifier. This field is omitted if it is a top-level task. Use the "move" method to move the task under a different parent or to the top level. A parent task can never be an assigned task (from Chat Spaces, Docs). This field is read-only. */
@@ -125,11 +125,11 @@ declare namespace gapi.client {
125
125
  /** Deletes the authenticated user's specified task list. If the list contains assigned tasks, both the assigned tasks and the original tasks in the assignment surface (Docs, Chat Spaces) are deleted. */
126
126
  delete(request?: {
127
127
  /** V1 error format. */
128
- '$.xgafv'?: string;
128
+ '$.xgafv'?: '1' | '2';
129
129
  /** OAuth access token. */
130
130
  access_token?: string;
131
131
  /** Data format for response. */
132
- alt?: string;
132
+ alt?: 'json' | 'media' | 'proto';
133
133
  /** JSONP */
134
134
  callback?: string;
135
135
  /** Selector specifying which fields to include in a partial response. */
@@ -152,11 +152,11 @@ declare namespace gapi.client {
152
152
  /** Returns the authenticated user's specified task list. */
153
153
  get(request?: {
154
154
  /** V1 error format. */
155
- '$.xgafv'?: string;
155
+ '$.xgafv'?: '1' | '2';
156
156
  /** OAuth access token. */
157
157
  access_token?: string;
158
158
  /** Data format for response. */
159
- alt?: string;
159
+ alt?: 'json' | 'media' | 'proto';
160
160
  /** JSONP */
161
161
  callback?: string;
162
162
  /** Selector specifying which fields to include in a partial response. */
@@ -179,11 +179,11 @@ declare namespace gapi.client {
179
179
  /** Creates a new task list and adds it to the authenticated user's task lists. A user can have up to 2000 lists at a time. */
180
180
  insert(request: {
181
181
  /** V1 error format. */
182
- '$.xgafv'?: string;
182
+ '$.xgafv'?: '1' | '2';
183
183
  /** OAuth access token. */
184
184
  access_token?: string;
185
185
  /** Data format for response. */
186
- alt?: string;
186
+ alt?: 'json' | 'media' | 'proto';
187
187
  /** JSONP */
188
188
  callback?: string;
189
189
  /** Selector specifying which fields to include in a partial response. */
@@ -206,11 +206,11 @@ declare namespace gapi.client {
206
206
  insert(
207
207
  request: {
208
208
  /** V1 error format. */
209
- '$.xgafv'?: string;
209
+ '$.xgafv'?: '1' | '2';
210
210
  /** OAuth access token. */
211
211
  access_token?: string;
212
212
  /** Data format for response. */
213
- alt?: string;
213
+ alt?: 'json' | 'media' | 'proto';
214
214
  /** JSONP */
215
215
  callback?: string;
216
216
  /** Selector specifying which fields to include in a partial response. */
@@ -233,11 +233,11 @@ declare namespace gapi.client {
233
233
  /** Returns all the authenticated user's task lists. A user can have up to 2000 lists at a time. */
234
234
  list(request?: {
235
235
  /** V1 error format. */
236
- '$.xgafv'?: string;
236
+ '$.xgafv'?: '1' | '2';
237
237
  /** OAuth access token. */
238
238
  access_token?: string;
239
239
  /** Data format for response. */
240
- alt?: string;
240
+ alt?: 'json' | 'media' | 'proto';
241
241
  /** JSONP */
242
242
  callback?: string;
243
243
  /** Selector specifying which fields to include in a partial response. */
@@ -262,11 +262,11 @@ declare namespace gapi.client {
262
262
  /** Updates the authenticated user's specified task list. This method supports patch semantics. */
263
263
  patch(request: {
264
264
  /** V1 error format. */
265
- '$.xgafv'?: string;
265
+ '$.xgafv'?: '1' | '2';
266
266
  /** OAuth access token. */
267
267
  access_token?: string;
268
268
  /** Data format for response. */
269
- alt?: string;
269
+ alt?: 'json' | 'media' | 'proto';
270
270
  /** JSONP */
271
271
  callback?: string;
272
272
  /** Selector specifying which fields to include in a partial response. */
@@ -291,11 +291,11 @@ declare namespace gapi.client {
291
291
  patch(
292
292
  request: {
293
293
  /** V1 error format. */
294
- '$.xgafv'?: string;
294
+ '$.xgafv'?: '1' | '2';
295
295
  /** OAuth access token. */
296
296
  access_token?: string;
297
297
  /** Data format for response. */
298
- alt?: string;
298
+ alt?: 'json' | 'media' | 'proto';
299
299
  /** JSONP */
300
300
  callback?: string;
301
301
  /** Selector specifying which fields to include in a partial response. */
@@ -320,11 +320,11 @@ declare namespace gapi.client {
320
320
  /** Updates the authenticated user's specified task list. */
321
321
  update(request: {
322
322
  /** V1 error format. */
323
- '$.xgafv'?: string;
323
+ '$.xgafv'?: '1' | '2';
324
324
  /** OAuth access token. */
325
325
  access_token?: string;
326
326
  /** Data format for response. */
327
- alt?: string;
327
+ alt?: 'json' | 'media' | 'proto';
328
328
  /** JSONP */
329
329
  callback?: string;
330
330
  /** Selector specifying which fields to include in a partial response. */
@@ -349,11 +349,11 @@ declare namespace gapi.client {
349
349
  update(
350
350
  request: {
351
351
  /** V1 error format. */
352
- '$.xgafv'?: string;
352
+ '$.xgafv'?: '1' | '2';
353
353
  /** OAuth access token. */
354
354
  access_token?: string;
355
355
  /** Data format for response. */
356
- alt?: string;
356
+ alt?: 'json' | 'media' | 'proto';
357
357
  /** JSONP */
358
358
  callback?: string;
359
359
  /** Selector specifying which fields to include in a partial response. */
@@ -380,11 +380,11 @@ declare namespace gapi.client {
380
380
  /** Clears all completed tasks from the specified task list. The affected tasks will be marked as 'hidden' and no longer be returned by default when retrieving all tasks for a task list. */
381
381
  clear(request?: {
382
382
  /** V1 error format. */
383
- '$.xgafv'?: string;
383
+ '$.xgafv'?: '1' | '2';
384
384
  /** OAuth access token. */
385
385
  access_token?: string;
386
386
  /** Data format for response. */
387
- alt?: string;
387
+ alt?: 'json' | 'media' | 'proto';
388
388
  /** JSONP */
389
389
  callback?: string;
390
390
  /** Selector specifying which fields to include in a partial response. */
@@ -407,11 +407,11 @@ declare namespace gapi.client {
407
407
  /** Deletes the specified task from the task list. If the task is assigned, both the assigned task and the original task (in Docs, Chat Spaces) are deleted. To delete the assigned task only, navigate to the assignment surface and unassign the task from there. */
408
408
  delete(request?: {
409
409
  /** V1 error format. */
410
- '$.xgafv'?: string;
410
+ '$.xgafv'?: '1' | '2';
411
411
  /** OAuth access token. */
412
412
  access_token?: string;
413
413
  /** Data format for response. */
414
- alt?: string;
414
+ alt?: 'json' | 'media' | 'proto';
415
415
  /** JSONP */
416
416
  callback?: string;
417
417
  /** Selector specifying which fields to include in a partial response. */
@@ -436,11 +436,11 @@ declare namespace gapi.client {
436
436
  /** Returns the specified task. */
437
437
  get(request?: {
438
438
  /** V1 error format. */
439
- '$.xgafv'?: string;
439
+ '$.xgafv'?: '1' | '2';
440
440
  /** OAuth access token. */
441
441
  access_token?: string;
442
442
  /** Data format for response. */
443
- alt?: string;
443
+ alt?: 'json' | 'media' | 'proto';
444
444
  /** JSONP */
445
445
  callback?: string;
446
446
  /** Selector specifying which fields to include in a partial response. */
@@ -465,11 +465,11 @@ declare namespace gapi.client {
465
465
  /** Creates a new task on the specified task list. Tasks assigned from Docs or Chat Spaces cannot be inserted from Tasks Public API; they can only be created by assigning them from Docs or Chat Spaces. A user can have up to 20,000 non-hidden tasks per list and up to 100,000 tasks in total at a time. */
466
466
  insert(request: {
467
467
  /** V1 error format. */
468
- '$.xgafv'?: string;
468
+ '$.xgafv'?: '1' | '2';
469
469
  /** OAuth access token. */
470
470
  access_token?: string;
471
471
  /** Data format for response. */
472
- alt?: string;
472
+ alt?: 'json' | 'media' | 'proto';
473
473
  /** JSONP */
474
474
  callback?: string;
475
475
  /** Selector specifying which fields to include in a partial response. */
@@ -498,11 +498,11 @@ declare namespace gapi.client {
498
498
  insert(
499
499
  request: {
500
500
  /** V1 error format. */
501
- '$.xgafv'?: string;
501
+ '$.xgafv'?: '1' | '2';
502
502
  /** OAuth access token. */
503
503
  access_token?: string;
504
504
  /** Data format for response. */
505
- alt?: string;
505
+ alt?: 'json' | 'media' | 'proto';
506
506
  /** JSONP */
507
507
  callback?: string;
508
508
  /** Selector specifying which fields to include in a partial response. */
@@ -531,11 +531,11 @@ declare namespace gapi.client {
531
531
  /** Returns all tasks in the specified task list. Doesn't return assigned tasks by default (from Docs, Chat Spaces). A user can have up to 20,000 non-hidden tasks per list and up to 100,000 tasks in total at a time. */
532
532
  list(request?: {
533
533
  /** V1 error format. */
534
- '$.xgafv'?: string;
534
+ '$.xgafv'?: '1' | '2';
535
535
  /** OAuth access token. */
536
536
  access_token?: string;
537
537
  /** Data format for response. */
538
- alt?: string;
538
+ alt?: 'json' | 'media' | 'proto';
539
539
  /** JSONP */
540
540
  callback?: string;
541
541
  /** Upper bound for a task's completion date (as a RFC 3339 timestamp) to filter by. Optional. The default is not to filter by completion date. */
@@ -580,11 +580,11 @@ declare namespace gapi.client {
580
580
  /** Moves the specified task to another position in the destination task list. If the destination list is not specified, the task is moved within its current list. This can include putting it as a child task under a new parent and/or move it to a different position among its sibling tasks. A user can have up to 2,000 subtasks per task. */
581
581
  move(request?: {
582
582
  /** V1 error format. */
583
- '$.xgafv'?: string;
583
+ '$.xgafv'?: '1' | '2';
584
584
  /** OAuth access token. */
585
585
  access_token?: string;
586
586
  /** Data format for response. */
587
- alt?: string;
587
+ alt?: 'json' | 'media' | 'proto';
588
588
  /** JSONP */
589
589
  callback?: string;
590
590
  /** Optional. Destination task list identifier. If set, the task is moved from tasklist to the destinationTasklist list. Otherwise the task is moved within its current list. Recurrent tasks cannot currently be moved between lists. */
@@ -615,11 +615,11 @@ declare namespace gapi.client {
615
615
  /** Updates the specified task. This method supports patch semantics. */
616
616
  patch(request: {
617
617
  /** V1 error format. */
618
- '$.xgafv'?: string;
618
+ '$.xgafv'?: '1' | '2';
619
619
  /** OAuth access token. */
620
620
  access_token?: string;
621
621
  /** Data format for response. */
622
- alt?: string;
622
+ alt?: 'json' | 'media' | 'proto';
623
623
  /** JSONP */
624
624
  callback?: string;
625
625
  /** Selector specifying which fields to include in a partial response. */
@@ -646,11 +646,11 @@ declare namespace gapi.client {
646
646
  patch(
647
647
  request: {
648
648
  /** V1 error format. */
649
- '$.xgafv'?: string;
649
+ '$.xgafv'?: '1' | '2';
650
650
  /** OAuth access token. */
651
651
  access_token?: string;
652
652
  /** Data format for response. */
653
- alt?: string;
653
+ alt?: 'json' | 'media' | 'proto';
654
654
  /** JSONP */
655
655
  callback?: string;
656
656
  /** Selector specifying which fields to include in a partial response. */
@@ -677,11 +677,11 @@ declare namespace gapi.client {
677
677
  /** Updates the specified task. */
678
678
  update(request: {
679
679
  /** V1 error format. */
680
- '$.xgafv'?: string;
680
+ '$.xgafv'?: '1' | '2';
681
681
  /** OAuth access token. */
682
682
  access_token?: string;
683
683
  /** Data format for response. */
684
- alt?: string;
684
+ alt?: 'json' | 'media' | 'proto';
685
685
  /** JSONP */
686
686
  callback?: string;
687
687
  /** Selector specifying which fields to include in a partial response. */
@@ -708,11 +708,11 @@ declare namespace gapi.client {
708
708
  update(
709
709
  request: {
710
710
  /** V1 error format. */
711
- '$.xgafv'?: string;
711
+ '$.xgafv'?: '1' | '2';
712
712
  /** OAuth access token. */
713
713
  access_token?: string;
714
714
  /** Data format for response. */
715
- alt?: string;
715
+ alt?: 'json' | 'media' | 'proto';
716
716
  /** JSONP */
717
717
  callback?: string;
718
718
  /** Selector specifying which fields to include in a partial response. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.tasks-v1",
3
- "version": "0.1.20260317",
3
+ "version": "0.2.20260602",
4
4
  "description": "TypeScript typings for Google Tasks API v1",
5
5
  "repository": {
6
6
  "type": "git",
package/readme.md CHANGED
@@ -11,6 +11,18 @@ Install typings for Google Tasks API:
11
11
  npm install @types/gapi.client.tasks-v1 --save-dev
12
12
  ```
13
13
 
14
+ ## TypeScript 6.0+
15
+
16
+ TypeScript 6.0 changed `types` to default to `[]`. You must now explicitly list type packages in `tsconfig.json`:
17
+
18
+ ```json
19
+ {
20
+ "compilerOptions": {
21
+ "types": ["gapi", "gapi.auth2", "gapi.client", "gapi.client.tasks-v1"]
22
+ }
23
+ }
24
+ ```
25
+
14
26
  ## Usage
15
27
 
16
28
  You need to initialize Google API client in your code: