@maxim_mazurok/gapi.client.tasks-v1 0.0.20231128 → 0.0.20231205

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 CHANGED
@@ -9,1017 +9,709 @@
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: 20231128
12
+ // Revision: 20231205
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
16
16
  declare namespace gapi.client {
17
- /** Load Google Tasks API v1 */
18
- function load(urlOrObject: "https://tasks.googleapis.com/$discovery/rest?version=v1"): Promise<void>;
19
- /** @deprecated Please load APIs with discovery documents. */
20
- function load(name: "tasks", version: "v1"): Promise<void>;
21
- /** @deprecated Please load APIs with discovery documents. */
22
- function load(name: "tasks", version: "v1", callback: () => any): void;
17
+ /** Load Google Tasks API v1 */
18
+ function load(
19
+ urlOrObject: 'https://tasks.googleapis.com/$discovery/rest?version=v1'
20
+ ): Promise<void>;
21
+ /** @deprecated Please load APIs with discovery documents. */
22
+ function load(name: 'tasks', version: 'v1'): Promise<void>;
23
+ /** @deprecated Please load APIs with discovery documents. */
24
+ function load(name: 'tasks', version: 'v1', callback: () => any): void;
23
25
 
24
- namespace tasks {
25
- interface Task {
26
- /** Completion date of the task (as a RFC 3339 timestamp). This field is omitted if the task has not been completed. */
27
- completed?:
28
- string;
29
- /** Flag indicating whether the task has been deleted. The default is False. */
30
- deleted?:
31
- boolean;
32
- /**
33
- * Due date of the task (as a RFC 3339 timestamp). Optional. The due date only records date information; the time portion of the timestamp is discarded when setting the due date. It
34
- * isn't possible to read or write the time that a task is due via the API.
35
- */
36
- due?:
37
- string;
38
- /** ETag of the resource. */
39
- etag?:
40
- string;
41
- /**
42
- * Flag indicating whether the task is hidden. This is the case if the task had been marked completed when the task list was last cleared. The default is False. This field is
43
- * read-only.
44
- */
45
- hidden?:
46
- boolean;
47
- /** Task identifier. */
48
- id?:
49
- string;
50
- /** Type of the resource. This is always "tasks#task". */
51
- kind?:
52
- string;
53
- /** Collection of links. This collection is read-only. */
54
- links?:
55
- Array<{
56
- /** The description. In HTML speak: Everything between <a> and </a>. */
57
- description?:
58
- string;
59
- /** The URL. */
60
- link?:
61
- string;
62
- /** Type of the link, e.g. "email". */
63
- type?:
64
- string;
65
- }>;
66
- /** Notes describing the task. Optional. */
67
- notes?:
68
- string;
69
- /**
70
- * Parent task identifier. This field is omitted if it is a top-level task. This field is read-only. Use the "move" method to move the task under a different parent or to the top
71
- * level.
72
- */
73
- parent?:
74
- string;
75
- /**
76
- * String indicating the position of the task among its sibling tasks under the same parent task or at the top level. If this string is greater than another task's corresponding
77
- * position string according to lexicographical ordering, the task is positioned after the other task under the same parent task (or at the top level). This field is read-only. Use the
78
- * "move" method to move the task to another position.
79
- */
80
- position?:
81
- string;
82
- /** URL pointing to this task. Used to retrieve, update, or delete this task. */
83
- selfLink?:
84
- string;
85
- /** Status of the task. This is either "needsAction" or "completed". */
86
- status?:
87
- string;
88
- /** Title of the task. */
89
- title?:
90
- string;
91
- /** Last modification time of the task (as a RFC 3339 timestamp). */
92
- updated?:
93
- string;
94
- }
95
- interface TaskList {
96
- /** ETag of the resource. */
97
- etag?:
98
- string;
99
- /** Task list identifier. */
100
- id?:
101
- string;
102
- /** Type of the resource. This is always "tasks#taskList". */
103
- kind?:
104
- string;
105
- /** URL pointing to this task list. Used to retrieve, update, or delete this task list. */
106
- selfLink?:
107
- string;
108
- /** Title of the task list. */
109
- title?:
110
- string;
111
- /** Last modification time of the task list (as a RFC 3339 timestamp). */
112
- updated?:
113
- string;
114
- }
115
- interface TaskLists {
116
- /** ETag of the resource. */
117
- etag?:
118
- string;
119
- /** Collection of task lists. */
120
- items?:
121
- TaskList[];
122
- /** Type of the resource. This is always "tasks#taskLists". */
123
- kind?:
124
- string;
125
- /** Token that can be used to request the next page of this result. */
126
- nextPageToken?:
127
- string;
128
- }
129
- interface Tasks {
130
- /** ETag of the resource. */
131
- etag?:
132
- string;
133
- /** Collection of tasks. */
134
- items?:
135
- Task[];
136
- /** Type of the resource. This is always "tasks#tasks". */
137
- kind?:
138
- string;
139
- /** Token used to access the next page of this result. */
140
- nextPageToken?:
141
- string;
142
- }
143
- interface TasklistsResource {
144
- /** Deletes the authenticated user's specified task list. */
145
- delete(request?: {
146
- /** V1 error format. */
147
- "$.xgafv"?:
148
- string;
149
- /** OAuth access token. */
150
- access_token?:
151
- string;
152
- /** Data format for response. */
153
- alt?:
154
- string;
155
- /** JSONP */
156
- callback?:
157
- string;
158
- /** Selector specifying which fields to include in a partial response. */
159
- fields?:
160
- string;
161
- /** 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. */
162
- key?:
163
- string;
164
- /** OAuth 2.0 token for the current user. */
165
- oauth_token?:
166
- string;
167
- /** Returns response with indentations and line breaks. */
168
- prettyPrint?:
169
- boolean;
170
- /** 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. */
171
- quotaUser?:
172
- string;
173
- /** Task list identifier. */
174
- tasklist:
175
- string;
176
- /** Upload protocol for media (e.g. "raw", "multipart"). */
177
- upload_protocol?:
178
- string;
179
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
180
- uploadType?:
181
- string;
182
- }): Request<void>;
183
- /** Returns the authenticated user's specified task list. */
184
- get(request?: {
185
- /** V1 error format. */
186
- "$.xgafv"?:
187
- string;
188
- /** OAuth access token. */
189
- access_token?:
190
- string;
191
- /** Data format for response. */
192
- alt?:
193
- string;
194
- /** JSONP */
195
- callback?:
196
- string;
197
- /** Selector specifying which fields to include in a partial response. */
198
- fields?:
199
- string;
200
- /** 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. */
201
- key?:
202
- string;
203
- /** OAuth 2.0 token for the current user. */
204
- oauth_token?:
205
- string;
206
- /** Returns response with indentations and line breaks. */
207
- prettyPrint?:
208
- boolean;
209
- /** 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. */
210
- quotaUser?:
211
- string;
212
- /** Task list identifier. */
213
- tasklist:
214
- string;
215
- /** Upload protocol for media (e.g. "raw", "multipart"). */
216
- upload_protocol?:
217
- string;
218
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
219
- uploadType?:
220
- string;
221
- }): Request<TaskList>;
222
- /** Creates a new task list and adds it to the authenticated user's task lists. */
223
- insert(request: {
224
- /** V1 error format. */
225
- "$.xgafv"?:
226
- string;
227
- /** OAuth access token. */
228
- access_token?:
229
- string;
230
- /** Data format for response. */
231
- alt?:
232
- string;
233
- /** JSONP */
234
- callback?:
235
- string;
236
- /** Selector specifying which fields to include in a partial response. */
237
- fields?:
238
- string;
239
- /** 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. */
240
- key?:
241
- string;
242
- /** OAuth 2.0 token for the current user. */
243
- oauth_token?:
244
- string;
245
- /** Returns response with indentations and line breaks. */
246
- prettyPrint?:
247
- boolean;
248
- /** 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. */
249
- quotaUser?:
250
- string;
251
- /** Upload protocol for media (e.g. "raw", "multipart"). */
252
- upload_protocol?:
253
- string;
254
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
255
- uploadType?:
256
- string;
257
- /** Request body */
258
- resource:
259
- TaskList;
260
- }): Request<TaskList>;
261
- insert(request: {
262
- /** V1 error format. */
263
- "$.xgafv"?:
264
- string;
265
- /** OAuth access token. */
266
- access_token?:
267
- string;
268
- /** Data format for response. */
269
- alt?:
270
- string;
271
- /** JSONP */
272
- callback?:
273
- string;
274
- /** Selector specifying which fields to include in a partial response. */
275
- fields?:
276
- string;
277
- /** 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. */
278
- key?:
279
- string;
280
- /** OAuth 2.0 token for the current user. */
281
- oauth_token?:
282
- string;
283
- /** Returns response with indentations and line breaks. */
284
- prettyPrint?:
285
- boolean;
286
- /** 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. */
287
- quotaUser?:
288
- string;
289
- /** Upload protocol for media (e.g. "raw", "multipart"). */
290
- upload_protocol?:
291
- string;
292
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
293
- uploadType?:
294
- string;
295
- },
296
- body: TaskList): Request<TaskList>;
297
- /** Returns all the authenticated user's task lists. */
298
- list(request?: {
299
- /** V1 error format. */
300
- "$.xgafv"?:
301
- string;
302
- /** OAuth access token. */
303
- access_token?:
304
- string;
305
- /** Data format for response. */
306
- alt?:
307
- string;
308
- /** JSONP */
309
- callback?:
310
- string;
311
- /** Selector specifying which fields to include in a partial response. */
312
- fields?:
313
- string;
314
- /** 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. */
315
- key?:
316
- string;
317
- /** Maximum number of task lists returned on one page. Optional. The default is 20 (max allowed: 100). */
318
- maxResults?:
319
- number;
320
- /** OAuth 2.0 token for the current user. */
321
- oauth_token?:
322
- string;
323
- /** Token specifying the result page to return. Optional. */
324
- pageToken?:
325
- string;
326
- /** Returns response with indentations and line breaks. */
327
- prettyPrint?:
328
- boolean;
329
- /** 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. */
330
- quotaUser?:
331
- string;
332
- /** Upload protocol for media (e.g. "raw", "multipart"). */
333
- upload_protocol?:
334
- string;
335
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
336
- uploadType?:
337
- string;
338
- }): Request<TaskLists>;
339
- /** Updates the authenticated user's specified task list. This method supports patch semantics. */
340
- patch(request: {
341
- /** V1 error format. */
342
- "$.xgafv"?:
343
- string;
344
- /** OAuth access token. */
345
- access_token?:
346
- string;
347
- /** Data format for response. */
348
- alt?:
349
- string;
350
- /** JSONP */
351
- callback?:
352
- string;
353
- /** Selector specifying which fields to include in a partial response. */
354
- fields?:
355
- string;
356
- /** 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. */
357
- key?:
358
- string;
359
- /** OAuth 2.0 token for the current user. */
360
- oauth_token?:
361
- string;
362
- /** Returns response with indentations and line breaks. */
363
- prettyPrint?:
364
- boolean;
365
- /** 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. */
366
- quotaUser?:
367
- string;
368
- /** Task list identifier. */
369
- tasklist:
370
- string;
371
- /** Upload protocol for media (e.g. "raw", "multipart"). */
372
- upload_protocol?:
373
- string;
374
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
375
- uploadType?:
376
- string;
377
- /** Request body */
378
- resource:
379
- TaskList;
380
- }): Request<TaskList>;
381
- patch(request: {
382
- /** V1 error format. */
383
- "$.xgafv"?:
384
- string;
385
- /** OAuth access token. */
386
- access_token?:
387
- string;
388
- /** Data format for response. */
389
- alt?:
390
- string;
391
- /** JSONP */
392
- callback?:
393
- string;
394
- /** Selector specifying which fields to include in a partial response. */
395
- fields?:
396
- string;
397
- /** 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. */
398
- key?:
399
- string;
400
- /** OAuth 2.0 token for the current user. */
401
- oauth_token?:
402
- string;
403
- /** Returns response with indentations and line breaks. */
404
- prettyPrint?:
405
- boolean;
406
- /** 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. */
407
- quotaUser?:
408
- string;
409
- /** Task list identifier. */
410
- tasklist:
411
- string;
412
- /** Upload protocol for media (e.g. "raw", "multipart"). */
413
- upload_protocol?:
414
- string;
415
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
416
- uploadType?:
417
- string;
418
- },
419
- body: TaskList): Request<TaskList>;
420
- /** Updates the authenticated user's specified task list. */
421
- update(request: {
422
- /** V1 error format. */
423
- "$.xgafv"?:
424
- string;
425
- /** OAuth access token. */
426
- access_token?:
427
- string;
428
- /** Data format for response. */
429
- alt?:
430
- string;
431
- /** JSONP */
432
- callback?:
433
- string;
434
- /** Selector specifying which fields to include in a partial response. */
435
- fields?:
436
- string;
437
- /** 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. */
438
- key?:
439
- string;
440
- /** OAuth 2.0 token for the current user. */
441
- oauth_token?:
442
- string;
443
- /** Returns response with indentations and line breaks. */
444
- prettyPrint?:
445
- boolean;
446
- /** 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. */
447
- quotaUser?:
448
- string;
449
- /** Task list identifier. */
450
- tasklist:
451
- string;
452
- /** Upload protocol for media (e.g. "raw", "multipart"). */
453
- upload_protocol?:
454
- string;
455
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
456
- uploadType?:
457
- string;
458
- /** Request body */
459
- resource:
460
- TaskList;
461
- }): Request<TaskList>;
462
- update(request: {
463
- /** V1 error format. */
464
- "$.xgafv"?:
465
- string;
466
- /** OAuth access token. */
467
- access_token?:
468
- string;
469
- /** Data format for response. */
470
- alt?:
471
- string;
472
- /** JSONP */
473
- callback?:
474
- string;
475
- /** Selector specifying which fields to include in a partial response. */
476
- fields?:
477
- string;
478
- /** 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. */
479
- key?:
480
- string;
481
- /** OAuth 2.0 token for the current user. */
482
- oauth_token?:
483
- string;
484
- /** Returns response with indentations and line breaks. */
485
- prettyPrint?:
486
- boolean;
487
- /** 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. */
488
- quotaUser?:
489
- string;
490
- /** Task list identifier. */
491
- tasklist:
492
- string;
493
- /** Upload protocol for media (e.g. "raw", "multipart"). */
494
- upload_protocol?:
495
- string;
496
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
497
- uploadType?:
498
- string;
499
- },
500
- body: TaskList): Request<TaskList>;
501
- }
502
- interface TasksResource {
503
- /**
504
- * 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
505
- * list.
506
- */
507
- clear(request?: {
508
- /** V1 error format. */
509
- "$.xgafv"?:
510
- string;
511
- /** OAuth access token. */
512
- access_token?:
513
- string;
514
- /** Data format for response. */
515
- alt?:
516
- string;
517
- /** JSONP */
518
- callback?:
519
- string;
520
- /** Selector specifying which fields to include in a partial response. */
521
- fields?:
522
- string;
523
- /** 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. */
524
- key?:
525
- string;
526
- /** OAuth 2.0 token for the current user. */
527
- oauth_token?:
528
- string;
529
- /** Returns response with indentations and line breaks. */
530
- prettyPrint?:
531
- boolean;
532
- /** 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. */
533
- quotaUser?:
534
- string;
535
- /** Task list identifier. */
536
- tasklist:
537
- string;
538
- /** Upload protocol for media (e.g. "raw", "multipart"). */
539
- upload_protocol?:
540
- string;
541
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
542
- uploadType?:
543
- string;
544
- }): Request<void>;
545
- /** Deletes the specified task from the task list. */
546
- delete(request?: {
547
- /** V1 error format. */
548
- "$.xgafv"?:
549
- string;
550
- /** OAuth access token. */
551
- access_token?:
552
- string;
553
- /** Data format for response. */
554
- alt?:
555
- string;
556
- /** JSONP */
557
- callback?:
558
- string;
559
- /** Selector specifying which fields to include in a partial response. */
560
- fields?:
561
- string;
562
- /** 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. */
563
- key?:
564
- string;
565
- /** OAuth 2.0 token for the current user. */
566
- oauth_token?:
567
- string;
568
- /** Returns response with indentations and line breaks. */
569
- prettyPrint?:
570
- boolean;
571
- /** 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. */
572
- quotaUser?:
573
- string;
574
- /** Task identifier. */
575
- task:
576
- string;
577
- /** Task list identifier. */
578
- tasklist:
579
- string;
580
- /** Upload protocol for media (e.g. "raw", "multipart"). */
581
- upload_protocol?:
582
- string;
583
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
584
- uploadType?:
585
- string;
586
- }): Request<void>;
587
- /** Returns the specified task. */
588
- get(request?: {
589
- /** V1 error format. */
590
- "$.xgafv"?:
591
- string;
592
- /** OAuth access token. */
593
- access_token?:
594
- string;
595
- /** Data format for response. */
596
- alt?:
597
- string;
598
- /** JSONP */
599
- callback?:
600
- string;
601
- /** Selector specifying which fields to include in a partial response. */
602
- fields?:
603
- string;
604
- /** 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. */
605
- key?:
606
- string;
607
- /** OAuth 2.0 token for the current user. */
608
- oauth_token?:
609
- string;
610
- /** Returns response with indentations and line breaks. */
611
- prettyPrint?:
612
- boolean;
613
- /** 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. */
614
- quotaUser?:
615
- string;
616
- /** Task identifier. */
617
- task:
618
- string;
619
- /** Task list identifier. */
620
- tasklist:
621
- string;
622
- /** Upload protocol for media (e.g. "raw", "multipart"). */
623
- upload_protocol?:
624
- string;
625
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
626
- uploadType?:
627
- string;
628
- }): Request<Task>;
629
- /** Creates a new task on the specified task list. */
630
- insert(request: {
631
- /** V1 error format. */
632
- "$.xgafv"?:
633
- string;
634
- /** OAuth access token. */
635
- access_token?:
636
- string;
637
- /** Data format for response. */
638
- alt?:
639
- string;
640
- /** JSONP */
641
- callback?:
642
- string;
643
- /** Selector specifying which fields to include in a partial response. */
644
- fields?:
645
- string;
646
- /** 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. */
647
- key?:
648
- string;
649
- /** OAuth 2.0 token for the current user. */
650
- oauth_token?:
651
- string;
652
- /** Parent task identifier. If the task is created at the top level, this parameter is omitted. Optional. */
653
- parent?:
654
- string;
655
- /** Returns response with indentations and line breaks. */
656
- prettyPrint?:
657
- boolean;
658
- /** Previous sibling task identifier. If the task is created at the first position among its siblings, this parameter is omitted. Optional. */
659
- previous?:
660
- string;
661
- /** 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. */
662
- quotaUser?:
663
- string;
664
- /** Task list identifier. */
665
- tasklist:
666
- string;
667
- /** Upload protocol for media (e.g. "raw", "multipart"). */
668
- upload_protocol?:
669
- string;
670
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
671
- uploadType?:
672
- string;
673
- /** Request body */
674
- resource:
675
- Task;
676
- }): Request<Task>;
677
- insert(request: {
678
- /** V1 error format. */
679
- "$.xgafv"?:
680
- string;
681
- /** OAuth access token. */
682
- access_token?:
683
- string;
684
- /** Data format for response. */
685
- alt?:
686
- string;
687
- /** JSONP */
688
- callback?:
689
- string;
690
- /** Selector specifying which fields to include in a partial response. */
691
- fields?:
692
- string;
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. */
694
- key?:
695
- string;
696
- /** OAuth 2.0 token for the current user. */
697
- oauth_token?:
698
- string;
699
- /** Parent task identifier. If the task is created at the top level, this parameter is omitted. Optional. */
700
- parent?:
701
- string;
702
- /** Returns response with indentations and line breaks. */
703
- prettyPrint?:
704
- boolean;
705
- /** Previous sibling task identifier. If the task is created at the first position among its siblings, this parameter is omitted. Optional. */
706
- previous?:
707
- string;
708
- /** 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. */
709
- quotaUser?:
710
- string;
711
- /** Task list identifier. */
712
- tasklist:
713
- string;
714
- /** Upload protocol for media (e.g. "raw", "multipart"). */
715
- upload_protocol?:
716
- string;
717
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
718
- uploadType?:
719
- string;
720
- },
721
- body: Task): Request<Task>;
722
- /** Returns all tasks in the specified task list. */
723
- list(request?: {
724
- /** V1 error format. */
725
- "$.xgafv"?:
726
- string;
727
- /** OAuth access token. */
728
- access_token?:
729
- string;
730
- /** Data format for response. */
731
- alt?:
732
- string;
733
- /** JSONP */
734
- callback?:
735
- string;
736
- /** 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. */
737
- completedMax?:
738
- string;
739
- /** Lower 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. */
740
- completedMin?:
741
- string;
742
- /** Upper bound for a task's due date (as a RFC 3339 timestamp) to filter by. Optional. The default is not to filter by due date. */
743
- dueMax?:
744
- string;
745
- /** Lower bound for a task's due date (as a RFC 3339 timestamp) to filter by. Optional. The default is not to filter by due date. */
746
- dueMin?:
747
- string;
748
- /** Selector specifying which fields to include in a partial response. */
749
- fields?:
750
- string;
751
- /** 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. */
752
- key?:
753
- string;
754
- /** Maximum number of task lists returned on one page. Optional. The default is 20 (max allowed: 100). */
755
- maxResults?:
756
- number;
757
- /** OAuth 2.0 token for the current user. */
758
- oauth_token?:
759
- string;
760
- /** Token specifying the result page to return. Optional. */
761
- pageToken?:
762
- string;
763
- /** Returns response with indentations and line breaks. */
764
- prettyPrint?:
765
- boolean;
766
- /** 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. */
767
- quotaUser?:
768
- string;
769
- /**
770
- * Flag indicating whether completed tasks are returned in the result. Optional. The default is True. Note that showHidden must also be True to show tasks completed in first party
771
- * clients, such as the web UI and Google's mobile apps.
772
- */
773
- showCompleted?:
774
- boolean;
775
- /** Flag indicating whether deleted tasks are returned in the result. Optional. The default is False. */
776
- showDeleted?:
777
- boolean;
778
- /** Flag indicating whether hidden tasks are returned in the result. Optional. The default is False. */
779
- showHidden?:
780
- boolean;
781
- /** Task list identifier. */
782
- tasklist:
783
- string;
784
- /** Lower bound for a task's last modification time (as a RFC 3339 timestamp) to filter by. Optional. The default is not to filter by last modification time. */
785
- updatedMin?:
786
- string;
787
- /** Upload protocol for media (e.g. "raw", "multipart"). */
788
- upload_protocol?:
789
- string;
790
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
791
- uploadType?:
792
- string;
793
- }): Request<Tasks>;
794
- /**
795
- * Moves the specified task to another position in the task list. This can include putting it as a child task under a new parent and/or move it to a different position among its
796
- * sibling tasks.
797
- */
798
- move(request?: {
799
- /** V1 error format. */
800
- "$.xgafv"?:
801
- string;
802
- /** OAuth access token. */
803
- access_token?:
804
- string;
805
- /** Data format for response. */
806
- alt?:
807
- string;
808
- /** JSONP */
809
- callback?:
810
- string;
811
- /** Selector specifying which fields to include in a partial response. */
812
- fields?:
813
- string;
814
- /** 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. */
815
- key?:
816
- string;
817
- /** OAuth 2.0 token for the current user. */
818
- oauth_token?:
819
- string;
820
- /** New parent task identifier. If the task is moved to the top level, this parameter is omitted. Optional. */
821
- parent?:
822
- string;
823
- /** Returns response with indentations and line breaks. */
824
- prettyPrint?:
825
- boolean;
826
- /** New previous sibling task identifier. If the task is moved to the first position among its siblings, this parameter is omitted. Optional. */
827
- previous?:
828
- string;
829
- /** 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. */
830
- quotaUser?:
831
- string;
832
- /** Task identifier. */
833
- task:
834
- string;
835
- /** Task list identifier. */
836
- tasklist:
837
- string;
838
- /** Upload protocol for media (e.g. "raw", "multipart"). */
839
- upload_protocol?:
840
- string;
841
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
842
- uploadType?:
843
- string;
844
- }): Request<Task>;
845
- /** Updates the specified task. This method supports patch semantics. */
846
- patch(request: {
847
- /** V1 error format. */
848
- "$.xgafv"?:
849
- string;
850
- /** OAuth access token. */
851
- access_token?:
852
- string;
853
- /** Data format for response. */
854
- alt?:
855
- string;
856
- /** JSONP */
857
- callback?:
858
- string;
859
- /** Selector specifying which fields to include in a partial response. */
860
- fields?:
861
- string;
862
- /** 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. */
863
- key?:
864
- string;
865
- /** OAuth 2.0 token for the current user. */
866
- oauth_token?:
867
- string;
868
- /** Returns response with indentations and line breaks. */
869
- prettyPrint?:
870
- boolean;
871
- /** 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. */
872
- quotaUser?:
873
- string;
874
- /** Task identifier. */
875
- task:
876
- string;
877
- /** Task list identifier. */
878
- tasklist:
879
- string;
880
- /** Upload protocol for media (e.g. "raw", "multipart"). */
881
- upload_protocol?:
882
- string;
883
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
884
- uploadType?:
885
- string;
886
- /** Request body */
887
- resource:
888
- Task;
889
- }): Request<Task>;
890
- patch(request: {
891
- /** V1 error format. */
892
- "$.xgafv"?:
893
- string;
894
- /** OAuth access token. */
895
- access_token?:
896
- string;
897
- /** Data format for response. */
898
- alt?:
899
- string;
900
- /** JSONP */
901
- callback?:
902
- string;
903
- /** Selector specifying which fields to include in a partial response. */
904
- fields?:
905
- string;
906
- /** 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. */
907
- key?:
908
- string;
909
- /** OAuth 2.0 token for the current user. */
910
- oauth_token?:
911
- string;
912
- /** Returns response with indentations and line breaks. */
913
- prettyPrint?:
914
- boolean;
915
- /** 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. */
916
- quotaUser?:
917
- string;
918
- /** Task identifier. */
919
- task:
920
- string;
921
- /** Task list identifier. */
922
- tasklist:
923
- string;
924
- /** Upload protocol for media (e.g. "raw", "multipart"). */
925
- upload_protocol?:
926
- string;
927
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
928
- uploadType?:
929
- string;
930
- },
931
- body: Task): Request<Task>;
932
- /** Updates the specified task. */
933
- update(request: {
934
- /** V1 error format. */
935
- "$.xgafv"?:
936
- string;
937
- /** OAuth access token. */
938
- access_token?:
939
- string;
940
- /** Data format for response. */
941
- alt?:
942
- string;
943
- /** JSONP */
944
- callback?:
945
- string;
946
- /** Selector specifying which fields to include in a partial response. */
947
- fields?:
948
- string;
949
- /** 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. */
950
- key?:
951
- string;
952
- /** OAuth 2.0 token for the current user. */
953
- oauth_token?:
954
- string;
955
- /** Returns response with indentations and line breaks. */
956
- prettyPrint?:
957
- boolean;
958
- /** 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. */
959
- quotaUser?:
960
- string;
961
- /** Task identifier. */
962
- task:
963
- string;
964
- /** Task list identifier. */
965
- tasklist:
966
- string;
967
- /** Upload protocol for media (e.g. "raw", "multipart"). */
968
- upload_protocol?:
969
- string;
970
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
971
- uploadType?:
972
- string;
973
- /** Request body */
974
- resource:
975
- Task;
976
- }): Request<Task>;
977
- update(request: {
978
- /** V1 error format. */
979
- "$.xgafv"?:
980
- string;
981
- /** OAuth access token. */
982
- access_token?:
983
- string;
984
- /** Data format for response. */
985
- alt?:
986
- string;
987
- /** JSONP */
988
- callback?:
989
- string;
990
- /** Selector specifying which fields to include in a partial response. */
991
- fields?:
992
- string;
993
- /** 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. */
994
- key?:
995
- string;
996
- /** OAuth 2.0 token for the current user. */
997
- oauth_token?:
998
- string;
999
- /** Returns response with indentations and line breaks. */
1000
- prettyPrint?:
1001
- boolean;
1002
- /** 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. */
1003
- quotaUser?:
1004
- string;
1005
- /** Task identifier. */
1006
- task:
1007
- string;
1008
- /** Task list identifier. */
1009
- tasklist:
1010
- string;
1011
- /** Upload protocol for media (e.g. "raw", "multipart"). */
1012
- upload_protocol?:
1013
- string;
1014
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1015
- uploadType?:
1016
- string;
1017
- },
1018
- body: Task): Request<Task>;
1019
- }
26
+ namespace tasks {
27
+ interface Task {
28
+ /** Completion date of the task (as a RFC 3339 timestamp). This field is omitted if the task has not been completed. */
29
+ completed?: string;
30
+ /** Flag indicating whether the task has been deleted. The default is False. */
31
+ deleted?: boolean;
32
+ /** Due date of the task (as a RFC 3339 timestamp). Optional. The due date only records date information; the time portion of the timestamp is discarded when setting the due date. It isn't possible to read or write the time that a task is due via the API. */
33
+ due?: string;
34
+ /** ETag of the resource. */
35
+ etag?: string;
36
+ /** Flag indicating whether the task is hidden. This is the case if the task had been marked completed when the task list was last cleared. The default is False. This field is read-only. */
37
+ hidden?: boolean;
38
+ /** Task identifier. */
39
+ id?: string;
40
+ /** Type of the resource. This is always "tasks#task". */
41
+ kind?: string;
42
+ /** Collection of links. This collection is read-only. */
43
+ links?: Array<{
44
+ /** The description. In HTML speak: Everything between <a> and </a>. */
45
+ description?: string;
46
+ /** The URL. */
47
+ link?: string;
48
+ /** Type of the link, e.g. "email". */
49
+ type?: string;
50
+ }>;
51
+ /** Notes describing the task. Optional. */
52
+ notes?: string;
53
+ /** Parent task identifier. This field is omitted if it is a top-level task. This field is read-only. Use the "move" method to move the task under a different parent or to the top level. */
54
+ parent?: string;
55
+ /** String indicating the position of the task among its sibling tasks under the same parent task or at the top level. If this string is greater than another task's corresponding position string according to lexicographical ordering, the task is positioned after the other task under the same parent task (or at the top level). This field is read-only. Use the "move" method to move the task to another position. */
56
+ position?: string;
57
+ /** URL pointing to this task. Used to retrieve, update, or delete this task. */
58
+ selfLink?: string;
59
+ /** Status of the task. This is either "needsAction" or "completed". */
60
+ status?: string;
61
+ /** Title of the task. */
62
+ title?: string;
63
+ /** Last modification time of the task (as a RFC 3339 timestamp). */
64
+ updated?: string;
65
+ }
66
+ interface TaskList {
67
+ /** ETag of the resource. */
68
+ etag?: string;
69
+ /** Task list identifier. */
70
+ id?: string;
71
+ /** Type of the resource. This is always "tasks#taskList". */
72
+ kind?: string;
73
+ /** URL pointing to this task list. Used to retrieve, update, or delete this task list. */
74
+ selfLink?: string;
75
+ /** Title of the task list. */
76
+ title?: string;
77
+ /** Last modification time of the task list (as a RFC 3339 timestamp). */
78
+ updated?: string;
79
+ }
80
+ interface TaskLists {
81
+ /** ETag of the resource. */
82
+ etag?: string;
83
+ /** Collection of task lists. */
84
+ items?: TaskList[];
85
+ /** Type of the resource. This is always "tasks#taskLists". */
86
+ kind?: string;
87
+ /** Token that can be used to request the next page of this result. */
88
+ nextPageToken?: string;
89
+ }
90
+ interface Tasks {
91
+ /** ETag of the resource. */
92
+ etag?: string;
93
+ /** Collection of tasks. */
94
+ items?: Task[];
95
+ /** Type of the resource. This is always "tasks#tasks". */
96
+ kind?: string;
97
+ /** Token used to access the next page of this result. */
98
+ nextPageToken?: string;
99
+ }
100
+ interface TasklistsResource {
101
+ /** Deletes the authenticated user's specified task list. */
102
+ delete(request?: {
103
+ /** V1 error format. */
104
+ '$.xgafv'?: string;
105
+ /** OAuth access token. */
106
+ access_token?: string;
107
+ /** Data format for response. */
108
+ alt?: string;
109
+ /** JSONP */
110
+ callback?: string;
111
+ /** Selector specifying which fields to include in a partial response. */
112
+ fields?: string;
113
+ /** 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. */
114
+ key?: string;
115
+ /** OAuth 2.0 token for the current user. */
116
+ oauth_token?: string;
117
+ /** Returns response with indentations and line breaks. */
118
+ prettyPrint?: boolean;
119
+ /** 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. */
120
+ quotaUser?: string;
121
+ /** Task list identifier. */
122
+ tasklist: string;
123
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
124
+ upload_protocol?: string;
125
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
126
+ uploadType?: string;
127
+ }): Request<void>;
128
+ /** Returns the authenticated user's specified task list. */
129
+ get(request?: {
130
+ /** V1 error format. */
131
+ '$.xgafv'?: string;
132
+ /** OAuth access token. */
133
+ access_token?: string;
134
+ /** Data format for response. */
135
+ alt?: string;
136
+ /** JSONP */
137
+ callback?: string;
138
+ /** Selector specifying which fields to include in a partial response. */
139
+ fields?: string;
140
+ /** 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. */
141
+ key?: string;
142
+ /** OAuth 2.0 token for the current user. */
143
+ oauth_token?: string;
144
+ /** Returns response with indentations and line breaks. */
145
+ prettyPrint?: boolean;
146
+ /** 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. */
147
+ quotaUser?: string;
148
+ /** Task list identifier. */
149
+ tasklist: string;
150
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
151
+ upload_protocol?: string;
152
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
153
+ uploadType?: string;
154
+ }): Request<TaskList>;
155
+ /** Creates a new task list and adds it to the authenticated user's task lists. */
156
+ insert(request: {
157
+ /** V1 error format. */
158
+ '$.xgafv'?: string;
159
+ /** OAuth access token. */
160
+ access_token?: string;
161
+ /** Data format for response. */
162
+ alt?: string;
163
+ /** JSONP */
164
+ callback?: string;
165
+ /** Selector specifying which fields to include in a partial response. */
166
+ fields?: string;
167
+ /** 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. */
168
+ key?: string;
169
+ /** OAuth 2.0 token for the current user. */
170
+ oauth_token?: string;
171
+ /** Returns response with indentations and line breaks. */
172
+ prettyPrint?: boolean;
173
+ /** 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. */
174
+ quotaUser?: string;
175
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
176
+ upload_protocol?: string;
177
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
178
+ uploadType?: string;
179
+ /** Request body */
180
+ resource: TaskList;
181
+ }): Request<TaskList>;
182
+ insert(
183
+ request: {
184
+ /** V1 error format. */
185
+ '$.xgafv'?: string;
186
+ /** OAuth access token. */
187
+ access_token?: string;
188
+ /** Data format for response. */
189
+ alt?: string;
190
+ /** JSONP */
191
+ callback?: string;
192
+ /** Selector specifying which fields to include in a partial response. */
193
+ fields?: string;
194
+ /** 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. */
195
+ key?: string;
196
+ /** OAuth 2.0 token for the current user. */
197
+ oauth_token?: string;
198
+ /** Returns response with indentations and line breaks. */
199
+ prettyPrint?: boolean;
200
+ /** 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. */
201
+ quotaUser?: string;
202
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
203
+ upload_protocol?: string;
204
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
205
+ uploadType?: string;
206
+ },
207
+ body: TaskList
208
+ ): Request<TaskList>;
209
+ /** Returns all the authenticated user's task lists. */
210
+ list(request?: {
211
+ /** V1 error format. */
212
+ '$.xgafv'?: string;
213
+ /** OAuth access token. */
214
+ access_token?: string;
215
+ /** Data format for response. */
216
+ alt?: string;
217
+ /** JSONP */
218
+ callback?: string;
219
+ /** Selector specifying which fields to include in a partial response. */
220
+ fields?: string;
221
+ /** 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. */
222
+ key?: string;
223
+ /** Maximum number of task lists returned on one page. Optional. The default is 20 (max allowed: 100). */
224
+ maxResults?: number;
225
+ /** OAuth 2.0 token for the current user. */
226
+ oauth_token?: string;
227
+ /** Token specifying the result page to return. Optional. */
228
+ pageToken?: string;
229
+ /** Returns response with indentations and line breaks. */
230
+ prettyPrint?: boolean;
231
+ /** 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. */
232
+ quotaUser?: string;
233
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
234
+ upload_protocol?: string;
235
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
236
+ uploadType?: string;
237
+ }): Request<TaskLists>;
238
+ /** Updates the authenticated user's specified task list. This method supports patch semantics. */
239
+ patch(request: {
240
+ /** V1 error format. */
241
+ '$.xgafv'?: string;
242
+ /** OAuth access token. */
243
+ access_token?: string;
244
+ /** Data format for response. */
245
+ alt?: string;
246
+ /** JSONP */
247
+ callback?: string;
248
+ /** Selector specifying which fields to include in a partial response. */
249
+ fields?: string;
250
+ /** 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. */
251
+ key?: string;
252
+ /** OAuth 2.0 token for the current user. */
253
+ oauth_token?: string;
254
+ /** Returns response with indentations and line breaks. */
255
+ prettyPrint?: boolean;
256
+ /** 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. */
257
+ quotaUser?: string;
258
+ /** Task list identifier. */
259
+ tasklist: string;
260
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
261
+ upload_protocol?: string;
262
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
263
+ uploadType?: string;
264
+ /** Request body */
265
+ resource: TaskList;
266
+ }): Request<TaskList>;
267
+ patch(
268
+ request: {
269
+ /** V1 error format. */
270
+ '$.xgafv'?: string;
271
+ /** OAuth access token. */
272
+ access_token?: string;
273
+ /** Data format for response. */
274
+ alt?: string;
275
+ /** JSONP */
276
+ callback?: string;
277
+ /** Selector specifying which fields to include in a partial response. */
278
+ fields?: string;
279
+ /** 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. */
280
+ key?: string;
281
+ /** OAuth 2.0 token for the current user. */
282
+ oauth_token?: string;
283
+ /** Returns response with indentations and line breaks. */
284
+ prettyPrint?: boolean;
285
+ /** 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. */
286
+ quotaUser?: string;
287
+ /** Task list identifier. */
288
+ tasklist: string;
289
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
290
+ upload_protocol?: string;
291
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
292
+ uploadType?: string;
293
+ },
294
+ body: TaskList
295
+ ): Request<TaskList>;
296
+ /** Updates the authenticated user's specified task list. */
297
+ update(request: {
298
+ /** V1 error format. */
299
+ '$.xgafv'?: string;
300
+ /** OAuth access token. */
301
+ access_token?: string;
302
+ /** Data format for response. */
303
+ alt?: string;
304
+ /** JSONP */
305
+ callback?: string;
306
+ /** Selector specifying which fields to include in a partial response. */
307
+ fields?: string;
308
+ /** 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. */
309
+ key?: string;
310
+ /** OAuth 2.0 token for the current user. */
311
+ oauth_token?: string;
312
+ /** Returns response with indentations and line breaks. */
313
+ prettyPrint?: boolean;
314
+ /** 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. */
315
+ quotaUser?: string;
316
+ /** Task list identifier. */
317
+ tasklist: string;
318
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
319
+ upload_protocol?: string;
320
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
321
+ uploadType?: string;
322
+ /** Request body */
323
+ resource: TaskList;
324
+ }): Request<TaskList>;
325
+ update(
326
+ request: {
327
+ /** V1 error format. */
328
+ '$.xgafv'?: string;
329
+ /** OAuth access token. */
330
+ access_token?: string;
331
+ /** Data format for response. */
332
+ alt?: string;
333
+ /** JSONP */
334
+ callback?: string;
335
+ /** Selector specifying which fields to include in a partial response. */
336
+ fields?: string;
337
+ /** 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. */
338
+ key?: string;
339
+ /** OAuth 2.0 token for the current user. */
340
+ oauth_token?: string;
341
+ /** Returns response with indentations and line breaks. */
342
+ prettyPrint?: boolean;
343
+ /** 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. */
344
+ quotaUser?: string;
345
+ /** Task list identifier. */
346
+ tasklist: string;
347
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
348
+ upload_protocol?: string;
349
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
350
+ uploadType?: string;
351
+ },
352
+ body: TaskList
353
+ ): Request<TaskList>;
354
+ }
355
+ interface TasksResource {
356
+ /** 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. */
357
+ clear(request?: {
358
+ /** V1 error format. */
359
+ '$.xgafv'?: string;
360
+ /** OAuth access token. */
361
+ access_token?: string;
362
+ /** Data format for response. */
363
+ alt?: string;
364
+ /** JSONP */
365
+ callback?: string;
366
+ /** Selector specifying which fields to include in a partial response. */
367
+ fields?: string;
368
+ /** 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. */
369
+ key?: string;
370
+ /** OAuth 2.0 token for the current user. */
371
+ oauth_token?: string;
372
+ /** Returns response with indentations and line breaks. */
373
+ prettyPrint?: boolean;
374
+ /** 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. */
375
+ quotaUser?: string;
376
+ /** Task list identifier. */
377
+ tasklist: string;
378
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
379
+ upload_protocol?: string;
380
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
381
+ uploadType?: string;
382
+ }): Request<void>;
383
+ /** Deletes the specified task from the task list. */
384
+ delete(request?: {
385
+ /** V1 error format. */
386
+ '$.xgafv'?: string;
387
+ /** OAuth access token. */
388
+ access_token?: string;
389
+ /** Data format for response. */
390
+ alt?: string;
391
+ /** JSONP */
392
+ callback?: string;
393
+ /** Selector specifying which fields to include in a partial response. */
394
+ fields?: string;
395
+ /** 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. */
396
+ key?: string;
397
+ /** OAuth 2.0 token for the current user. */
398
+ oauth_token?: string;
399
+ /** Returns response with indentations and line breaks. */
400
+ prettyPrint?: boolean;
401
+ /** 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. */
402
+ quotaUser?: string;
403
+ /** Task identifier. */
404
+ task: string;
405
+ /** Task list identifier. */
406
+ tasklist: string;
407
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
408
+ upload_protocol?: string;
409
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
410
+ uploadType?: string;
411
+ }): Request<void>;
412
+ /** Returns the specified task. */
413
+ get(request?: {
414
+ /** V1 error format. */
415
+ '$.xgafv'?: string;
416
+ /** OAuth access token. */
417
+ access_token?: string;
418
+ /** Data format for response. */
419
+ alt?: string;
420
+ /** JSONP */
421
+ callback?: string;
422
+ /** Selector specifying which fields to include in a partial response. */
423
+ fields?: string;
424
+ /** 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. */
425
+ key?: string;
426
+ /** OAuth 2.0 token for the current user. */
427
+ oauth_token?: string;
428
+ /** Returns response with indentations and line breaks. */
429
+ prettyPrint?: boolean;
430
+ /** 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. */
431
+ quotaUser?: string;
432
+ /** Task identifier. */
433
+ task: string;
434
+ /** Task list identifier. */
435
+ tasklist: string;
436
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
437
+ upload_protocol?: string;
438
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
439
+ uploadType?: string;
440
+ }): Request<Task>;
441
+ /** Creates a new task on the specified task list. */
442
+ insert(request: {
443
+ /** V1 error format. */
444
+ '$.xgafv'?: string;
445
+ /** OAuth access token. */
446
+ access_token?: string;
447
+ /** Data format for response. */
448
+ alt?: string;
449
+ /** JSONP */
450
+ callback?: string;
451
+ /** Selector specifying which fields to include in a partial response. */
452
+ fields?: string;
453
+ /** 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. */
454
+ key?: string;
455
+ /** OAuth 2.0 token for the current user. */
456
+ oauth_token?: string;
457
+ /** Parent task identifier. If the task is created at the top level, this parameter is omitted. Optional. */
458
+ parent?: string;
459
+ /** Returns response with indentations and line breaks. */
460
+ prettyPrint?: boolean;
461
+ /** Previous sibling task identifier. If the task is created at the first position among its siblings, this parameter is omitted. Optional. */
462
+ previous?: string;
463
+ /** 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. */
464
+ quotaUser?: string;
465
+ /** Task list identifier. */
466
+ tasklist: string;
467
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
468
+ upload_protocol?: string;
469
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
470
+ uploadType?: string;
471
+ /** Request body */
472
+ resource: Task;
473
+ }): Request<Task>;
474
+ insert(
475
+ request: {
476
+ /** V1 error format. */
477
+ '$.xgafv'?: string;
478
+ /** OAuth access token. */
479
+ access_token?: string;
480
+ /** Data format for response. */
481
+ alt?: string;
482
+ /** JSONP */
483
+ callback?: string;
484
+ /** Selector specifying which fields to include in a partial response. */
485
+ fields?: string;
486
+ /** 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. */
487
+ key?: string;
488
+ /** OAuth 2.0 token for the current user. */
489
+ oauth_token?: string;
490
+ /** Parent task identifier. If the task is created at the top level, this parameter is omitted. Optional. */
491
+ parent?: string;
492
+ /** Returns response with indentations and line breaks. */
493
+ prettyPrint?: boolean;
494
+ /** Previous sibling task identifier. If the task is created at the first position among its siblings, this parameter is omitted. Optional. */
495
+ previous?: string;
496
+ /** 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. */
497
+ quotaUser?: string;
498
+ /** Task list identifier. */
499
+ tasklist: string;
500
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
501
+ upload_protocol?: string;
502
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
503
+ uploadType?: string;
504
+ },
505
+ body: Task
506
+ ): Request<Task>;
507
+ /** Returns all tasks in the specified task list. */
508
+ list(request?: {
509
+ /** V1 error format. */
510
+ '$.xgafv'?: string;
511
+ /** OAuth access token. */
512
+ access_token?: string;
513
+ /** Data format for response. */
514
+ alt?: string;
515
+ /** JSONP */
516
+ callback?: string;
517
+ /** 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. */
518
+ completedMax?: string;
519
+ /** Lower 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. */
520
+ completedMin?: string;
521
+ /** Upper bound for a task's due date (as a RFC 3339 timestamp) to filter by. Optional. The default is not to filter by due date. */
522
+ dueMax?: string;
523
+ /** Lower bound for a task's due date (as a RFC 3339 timestamp) to filter by. Optional. The default is not to filter by due date. */
524
+ dueMin?: string;
525
+ /** Selector specifying which fields to include in a partial response. */
526
+ fields?: string;
527
+ /** 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;
529
+ /** Maximum number of task lists returned on one page. Optional. The default is 20 (max allowed: 100). */
530
+ maxResults?: number;
531
+ /** OAuth 2.0 token for the current user. */
532
+ oauth_token?: string;
533
+ /** Token specifying the result page to return. Optional. */
534
+ pageToken?: string;
535
+ /** Returns response with indentations and line breaks. */
536
+ prettyPrint?: boolean;
537
+ /** 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. */
538
+ quotaUser?: string;
539
+ /** Flag indicating whether completed tasks are returned in the result. Optional. The default is True. Note that showHidden must also be True to show tasks completed in first party clients, such as the web UI and Google's mobile apps. */
540
+ showCompleted?: boolean;
541
+ /** Flag indicating whether deleted tasks are returned in the result. Optional. The default is False. */
542
+ showDeleted?: boolean;
543
+ /** Flag indicating whether hidden tasks are returned in the result. Optional. The default is False. */
544
+ showHidden?: boolean;
545
+ /** Task list identifier. */
546
+ tasklist: string;
547
+ /** Lower bound for a task's last modification time (as a RFC 3339 timestamp) to filter by. Optional. The default is not to filter by last modification time. */
548
+ updatedMin?: string;
549
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
550
+ upload_protocol?: string;
551
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
552
+ uploadType?: string;
553
+ }): Request<Tasks>;
554
+ /** Moves the specified task to another position in the task 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. */
555
+ move(request?: {
556
+ /** V1 error format. */
557
+ '$.xgafv'?: string;
558
+ /** OAuth access token. */
559
+ access_token?: string;
560
+ /** Data format for response. */
561
+ alt?: string;
562
+ /** JSONP */
563
+ callback?: string;
564
+ /** Selector specifying which fields to include in a partial response. */
565
+ fields?: string;
566
+ /** 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. */
567
+ key?: string;
568
+ /** OAuth 2.0 token for the current user. */
569
+ oauth_token?: string;
570
+ /** New parent task identifier. If the task is moved to the top level, this parameter is omitted. Optional. */
571
+ parent?: string;
572
+ /** Returns response with indentations and line breaks. */
573
+ prettyPrint?: boolean;
574
+ /** New previous sibling task identifier. If the task is moved to the first position among its siblings, this parameter is omitted. Optional. */
575
+ previous?: string;
576
+ /** 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. */
577
+ quotaUser?: string;
578
+ /** Task identifier. */
579
+ task: string;
580
+ /** Task list identifier. */
581
+ tasklist: string;
582
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
583
+ upload_protocol?: string;
584
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
585
+ uploadType?: string;
586
+ }): Request<Task>;
587
+ /** Updates the specified task. This method supports patch semantics. */
588
+ patch(request: {
589
+ /** V1 error format. */
590
+ '$.xgafv'?: string;
591
+ /** OAuth access token. */
592
+ access_token?: string;
593
+ /** Data format for response. */
594
+ alt?: string;
595
+ /** JSONP */
596
+ callback?: string;
597
+ /** Selector specifying which fields to include in a partial response. */
598
+ fields?: string;
599
+ /** 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. */
600
+ key?: string;
601
+ /** OAuth 2.0 token for the current user. */
602
+ oauth_token?: string;
603
+ /** Returns response with indentations and line breaks. */
604
+ prettyPrint?: boolean;
605
+ /** 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. */
606
+ quotaUser?: string;
607
+ /** Task identifier. */
608
+ task: string;
609
+ /** Task list identifier. */
610
+ tasklist: string;
611
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
612
+ upload_protocol?: string;
613
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
614
+ uploadType?: string;
615
+ /** Request body */
616
+ resource: Task;
617
+ }): Request<Task>;
618
+ patch(
619
+ request: {
620
+ /** V1 error format. */
621
+ '$.xgafv'?: string;
622
+ /** OAuth access token. */
623
+ access_token?: string;
624
+ /** Data format for response. */
625
+ alt?: string;
626
+ /** JSONP */
627
+ callback?: string;
628
+ /** Selector specifying which fields to include in a partial response. */
629
+ fields?: string;
630
+ /** 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. */
631
+ key?: string;
632
+ /** OAuth 2.0 token for the current user. */
633
+ oauth_token?: string;
634
+ /** Returns response with indentations and line breaks. */
635
+ prettyPrint?: boolean;
636
+ /** 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. */
637
+ quotaUser?: string;
638
+ /** Task identifier. */
639
+ task: string;
640
+ /** Task list identifier. */
641
+ tasklist: string;
642
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
643
+ upload_protocol?: string;
644
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
645
+ uploadType?: string;
646
+ },
647
+ body: Task
648
+ ): Request<Task>;
649
+ /** Updates the specified task. */
650
+ update(request: {
651
+ /** V1 error format. */
652
+ '$.xgafv'?: string;
653
+ /** OAuth access token. */
654
+ access_token?: string;
655
+ /** Data format for response. */
656
+ alt?: string;
657
+ /** JSONP */
658
+ callback?: string;
659
+ /** Selector specifying which fields to include in a partial response. */
660
+ fields?: string;
661
+ /** 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. */
662
+ key?: string;
663
+ /** OAuth 2.0 token for the current user. */
664
+ oauth_token?: string;
665
+ /** Returns response with indentations and line breaks. */
666
+ prettyPrint?: boolean;
667
+ /** 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. */
668
+ quotaUser?: string;
669
+ /** Task identifier. */
670
+ task: string;
671
+ /** Task list identifier. */
672
+ tasklist: string;
673
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
674
+ upload_protocol?: string;
675
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
676
+ uploadType?: string;
677
+ /** Request body */
678
+ resource: Task;
679
+ }): Request<Task>;
680
+ update(
681
+ request: {
682
+ /** V1 error format. */
683
+ '$.xgafv'?: string;
684
+ /** OAuth access token. */
685
+ access_token?: string;
686
+ /** Data format for response. */
687
+ alt?: string;
688
+ /** JSONP */
689
+ callback?: string;
690
+ /** Selector specifying which fields to include in a partial response. */
691
+ fields?: string;
692
+ /** 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. */
693
+ key?: string;
694
+ /** OAuth 2.0 token for the current user. */
695
+ oauth_token?: string;
696
+ /** Returns response with indentations and line breaks. */
697
+ prettyPrint?: boolean;
698
+ /** 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. */
699
+ quotaUser?: string;
700
+ /** Task identifier. */
701
+ task: string;
702
+ /** Task list identifier. */
703
+ tasklist: string;
704
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
705
+ upload_protocol?: string;
706
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
707
+ uploadType?: string;
708
+ },
709
+ body: Task
710
+ ): Request<Task>;
711
+ }
1020
712
 
1021
- const tasklists: TasklistsResource;
713
+ const tasklists: TasklistsResource;
1022
714
 
1023
- const tasks: TasksResource;
1024
- }
715
+ const tasks: TasksResource;
716
+ }
1025
717
  }