@maxim_mazurok/gapi.client.calendar-v3 0.0.20220805

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/tests.ts ADDED
@@ -0,0 +1,1169 @@
1
+ /* This is stub file for gapi.client.calendar-v3 definition tests */
2
+ // IMPORTANT
3
+ // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
4
+ // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
5
+
6
+ // Revision: 20220805
7
+
8
+ gapi.load('client', async () => {
9
+ /** now we can use gapi.client */
10
+
11
+ await gapi.client.load('https://calendar-json.googleapis.com/$discovery/rest?version=v3');
12
+ /** now we can use gapi.client.calendar */
13
+
14
+ /** don't forget to authenticate your client before sending any request to resources: */
15
+ /** declare client_id registered in Google Developers Console */
16
+ const client_id = '<<PUT YOUR CLIENT ID HERE>>';
17
+ const scope = [
18
+ /** See, edit, share, and permanently delete all the calendars you can access using Google Calendar */
19
+ 'https://www.googleapis.com/auth/calendar',
20
+ /** View and edit events on all your calendars */
21
+ 'https://www.googleapis.com/auth/calendar.events',
22
+ /** View events on all your calendars */
23
+ 'https://www.googleapis.com/auth/calendar.events.readonly',
24
+ /** See and download any calendar you can access using your Google Calendar */
25
+ 'https://www.googleapis.com/auth/calendar.readonly',
26
+ /** View your Calendar settings */
27
+ 'https://www.googleapis.com/auth/calendar.settings.readonly',
28
+ ];
29
+ const immediate = false;
30
+ gapi.auth.authorize({ client_id, scope, immediate }, authResult => {
31
+ if (authResult && !authResult.error) {
32
+ /** handle successful authorization */
33
+ run();
34
+ } else {
35
+ /** handle authorization error */
36
+ }
37
+ });
38
+
39
+ async function run() {
40
+ /** Deletes an access control rule. */
41
+ await gapi.client.calendar.acl.delete({
42
+ calendarId: "Test string",
43
+ ruleId: "Test string",
44
+ });
45
+ /** Returns an access control rule. */
46
+ await gapi.client.calendar.acl.get({
47
+ calendarId: "Test string",
48
+ ruleId: "Test string",
49
+ });
50
+ /** Creates an access control rule. */
51
+ await gapi.client.calendar.acl.insert({
52
+ calendarId: "Test string",
53
+ sendNotifications: true,
54
+ }, {
55
+ etag: "Test string",
56
+ id: "Test string",
57
+ kind: "Test string",
58
+ role: "Test string",
59
+ scope: {
60
+ type: "Test string",
61
+ value: "Test string",
62
+ },
63
+ });
64
+ /** Returns the rules in the access control list for the calendar. */
65
+ await gapi.client.calendar.acl.list({
66
+ calendarId: "Test string",
67
+ maxResults: 42,
68
+ pageToken: "Test string",
69
+ showDeleted: true,
70
+ syncToken: "Test string",
71
+ });
72
+ /** Updates an access control rule. This method supports patch semantics. */
73
+ await gapi.client.calendar.acl.patch({
74
+ calendarId: "Test string",
75
+ ruleId: "Test string",
76
+ sendNotifications: true,
77
+ }, {
78
+ etag: "Test string",
79
+ id: "Test string",
80
+ kind: "Test string",
81
+ role: "Test string",
82
+ scope: {
83
+ type: "Test string",
84
+ value: "Test string",
85
+ },
86
+ });
87
+ /** Updates an access control rule. */
88
+ await gapi.client.calendar.acl.update({
89
+ calendarId: "Test string",
90
+ ruleId: "Test string",
91
+ sendNotifications: true,
92
+ }, {
93
+ etag: "Test string",
94
+ id: "Test string",
95
+ kind: "Test string",
96
+ role: "Test string",
97
+ scope: {
98
+ type: "Test string",
99
+ value: "Test string",
100
+ },
101
+ });
102
+ /** Watch for changes to ACL resources. */
103
+ await gapi.client.calendar.acl.watch({
104
+ calendarId: "Test string",
105
+ maxResults: 42,
106
+ pageToken: "Test string",
107
+ showDeleted: true,
108
+ syncToken: "Test string",
109
+ }, {
110
+ address: "Test string",
111
+ expiration: "Test string",
112
+ id: "Test string",
113
+ kind: "Test string",
114
+ params: {
115
+ A: "Test string"
116
+ },
117
+ payload: true,
118
+ resourceId: "Test string",
119
+ resourceUri: "Test string",
120
+ token: "Test string",
121
+ type: "Test string",
122
+ });
123
+ /** Removes a calendar from the user's calendar list. */
124
+ await gapi.client.calendar.calendarList.delete({
125
+ calendarId: "Test string",
126
+ });
127
+ /** Returns a calendar from the user's calendar list. */
128
+ await gapi.client.calendar.calendarList.get({
129
+ calendarId: "Test string",
130
+ });
131
+ /** Inserts an existing calendar into the user's calendar list. */
132
+ await gapi.client.calendar.calendarList.insert({
133
+ colorRgbFormat: true,
134
+ }, {
135
+ accessRole: "Test string",
136
+ backgroundColor: "Test string",
137
+ colorId: "Test string",
138
+ conferenceProperties: {
139
+ allowedConferenceSolutionTypes: [
140
+ "Test string"
141
+ ],
142
+ },
143
+ defaultReminders: [
144
+ {
145
+ method: "Test string",
146
+ minutes: 42,
147
+ }
148
+ ],
149
+ deleted: true,
150
+ description: "Test string",
151
+ etag: "Test string",
152
+ foregroundColor: "Test string",
153
+ hidden: true,
154
+ id: "Test string",
155
+ kind: "Test string",
156
+ location: "Test string",
157
+ notificationSettings: {
158
+ notifications: [
159
+ {
160
+ method: "Test string",
161
+ type: "Test string",
162
+ }
163
+ ],
164
+ },
165
+ primary: true,
166
+ selected: true,
167
+ summary: "Test string",
168
+ summaryOverride: "Test string",
169
+ timeZone: "Test string",
170
+ });
171
+ /** Returns the calendars on the user's calendar list. */
172
+ await gapi.client.calendar.calendarList.list({
173
+ maxResults: 42,
174
+ minAccessRole: "Test string",
175
+ pageToken: "Test string",
176
+ showDeleted: true,
177
+ showHidden: true,
178
+ syncToken: "Test string",
179
+ });
180
+ /** Updates an existing calendar on the user's calendar list. This method supports patch semantics. */
181
+ await gapi.client.calendar.calendarList.patch({
182
+ calendarId: "Test string",
183
+ colorRgbFormat: true,
184
+ }, {
185
+ accessRole: "Test string",
186
+ backgroundColor: "Test string",
187
+ colorId: "Test string",
188
+ conferenceProperties: {
189
+ allowedConferenceSolutionTypes: [
190
+ "Test string"
191
+ ],
192
+ },
193
+ defaultReminders: [
194
+ {
195
+ method: "Test string",
196
+ minutes: 42,
197
+ }
198
+ ],
199
+ deleted: true,
200
+ description: "Test string",
201
+ etag: "Test string",
202
+ foregroundColor: "Test string",
203
+ hidden: true,
204
+ id: "Test string",
205
+ kind: "Test string",
206
+ location: "Test string",
207
+ notificationSettings: {
208
+ notifications: [
209
+ {
210
+ method: "Test string",
211
+ type: "Test string",
212
+ }
213
+ ],
214
+ },
215
+ primary: true,
216
+ selected: true,
217
+ summary: "Test string",
218
+ summaryOverride: "Test string",
219
+ timeZone: "Test string",
220
+ });
221
+ /** Updates an existing calendar on the user's calendar list. */
222
+ await gapi.client.calendar.calendarList.update({
223
+ calendarId: "Test string",
224
+ colorRgbFormat: true,
225
+ }, {
226
+ accessRole: "Test string",
227
+ backgroundColor: "Test string",
228
+ colorId: "Test string",
229
+ conferenceProperties: {
230
+ allowedConferenceSolutionTypes: [
231
+ "Test string"
232
+ ],
233
+ },
234
+ defaultReminders: [
235
+ {
236
+ method: "Test string",
237
+ minutes: 42,
238
+ }
239
+ ],
240
+ deleted: true,
241
+ description: "Test string",
242
+ etag: "Test string",
243
+ foregroundColor: "Test string",
244
+ hidden: true,
245
+ id: "Test string",
246
+ kind: "Test string",
247
+ location: "Test string",
248
+ notificationSettings: {
249
+ notifications: [
250
+ {
251
+ method: "Test string",
252
+ type: "Test string",
253
+ }
254
+ ],
255
+ },
256
+ primary: true,
257
+ selected: true,
258
+ summary: "Test string",
259
+ summaryOverride: "Test string",
260
+ timeZone: "Test string",
261
+ });
262
+ /** Watch for changes to CalendarList resources. */
263
+ await gapi.client.calendar.calendarList.watch({
264
+ maxResults: 42,
265
+ minAccessRole: "Test string",
266
+ pageToken: "Test string",
267
+ showDeleted: true,
268
+ showHidden: true,
269
+ syncToken: "Test string",
270
+ }, {
271
+ address: "Test string",
272
+ expiration: "Test string",
273
+ id: "Test string",
274
+ kind: "Test string",
275
+ params: {
276
+ A: "Test string"
277
+ },
278
+ payload: true,
279
+ resourceId: "Test string",
280
+ resourceUri: "Test string",
281
+ token: "Test string",
282
+ type: "Test string",
283
+ });
284
+ /** Clears a primary calendar. This operation deletes all events associated with the primary calendar of an account. */
285
+ await gapi.client.calendar.calendars.clear({
286
+ calendarId: "Test string",
287
+ });
288
+ /** Deletes a secondary calendar. Use calendars.clear for clearing all events on primary calendars. */
289
+ await gapi.client.calendar.calendars.delete({
290
+ calendarId: "Test string",
291
+ });
292
+ /** Returns metadata for a calendar. */
293
+ await gapi.client.calendar.calendars.get({
294
+ calendarId: "Test string",
295
+ });
296
+ /** Creates a secondary calendar. */
297
+ await gapi.client.calendar.calendars.insert({} , {
298
+ conferenceProperties: {
299
+ allowedConferenceSolutionTypes: [
300
+ "Test string"
301
+ ],
302
+ },
303
+ description: "Test string",
304
+ etag: "Test string",
305
+ id: "Test string",
306
+ kind: "Test string",
307
+ location: "Test string",
308
+ summary: "Test string",
309
+ timeZone: "Test string",
310
+ });
311
+ /** Updates metadata for a calendar. This method supports patch semantics. */
312
+ await gapi.client.calendar.calendars.patch({
313
+ calendarId: "Test string",
314
+ }, {
315
+ conferenceProperties: {
316
+ allowedConferenceSolutionTypes: [
317
+ "Test string"
318
+ ],
319
+ },
320
+ description: "Test string",
321
+ etag: "Test string",
322
+ id: "Test string",
323
+ kind: "Test string",
324
+ location: "Test string",
325
+ summary: "Test string",
326
+ timeZone: "Test string",
327
+ });
328
+ /** Updates metadata for a calendar. */
329
+ await gapi.client.calendar.calendars.update({
330
+ calendarId: "Test string",
331
+ }, {
332
+ conferenceProperties: {
333
+ allowedConferenceSolutionTypes: [
334
+ "Test string"
335
+ ],
336
+ },
337
+ description: "Test string",
338
+ etag: "Test string",
339
+ id: "Test string",
340
+ kind: "Test string",
341
+ location: "Test string",
342
+ summary: "Test string",
343
+ timeZone: "Test string",
344
+ });
345
+ /** Stop watching resources through this channel */
346
+ await gapi.client.calendar.channels.stop({} , {
347
+ address: "Test string",
348
+ expiration: "Test string",
349
+ id: "Test string",
350
+ kind: "Test string",
351
+ params: {
352
+ A: "Test string"
353
+ },
354
+ payload: true,
355
+ resourceId: "Test string",
356
+ resourceUri: "Test string",
357
+ token: "Test string",
358
+ type: "Test string",
359
+ });
360
+ /** Returns the color definitions for calendars and events. */
361
+ await gapi.client.calendar.colors.get();
362
+ /** Deletes an event. */
363
+ await gapi.client.calendar.events.delete({
364
+ calendarId: "Test string",
365
+ eventId: "Test string",
366
+ sendNotifications: true,
367
+ sendUpdates: "Test string",
368
+ });
369
+ /** Returns an event based on its Google Calendar ID. To retrieve an event using its iCalendar ID, call the events.list method using the iCalUID parameter. */
370
+ await gapi.client.calendar.events.get({
371
+ alwaysIncludeEmail: true,
372
+ calendarId: "Test string",
373
+ eventId: "Test string",
374
+ maxAttendees: 42,
375
+ timeZone: "Test string",
376
+ });
377
+ /** Imports an event. This operation is used to add a private copy of an existing event to a calendar. */
378
+ await gapi.client.calendar.events.import({
379
+ calendarId: "Test string",
380
+ conferenceDataVersion: 42,
381
+ supportsAttachments: true,
382
+ }, {
383
+ anyoneCanAddSelf: true,
384
+ attachments: [
385
+ {
386
+ fileId: "Test string",
387
+ fileUrl: "Test string",
388
+ iconLink: "Test string",
389
+ mimeType: "Test string",
390
+ title: "Test string",
391
+ }
392
+ ],
393
+ attendees: [
394
+ {
395
+ additionalGuests: 42,
396
+ comment: "Test string",
397
+ displayName: "Test string",
398
+ email: "Test string",
399
+ id: "Test string",
400
+ optional: true,
401
+ organizer: true,
402
+ resource: true,
403
+ responseStatus: "Test string",
404
+ self: true,
405
+ }
406
+ ],
407
+ attendeesOmitted: true,
408
+ colorId: "Test string",
409
+ conferenceData: {
410
+ conferenceId: "Test string",
411
+ conferenceSolution: {
412
+ iconUri: "Test string",
413
+ key: {
414
+ type: "Test string",
415
+ },
416
+ name: "Test string",
417
+ },
418
+ createRequest: {
419
+ conferenceSolutionKey: {
420
+ type: "Test string",
421
+ },
422
+ requestId: "Test string",
423
+ status: {
424
+ statusCode: "Test string",
425
+ },
426
+ },
427
+ entryPoints: [
428
+ {
429
+ accessCode: "Test string",
430
+ entryPointFeatures: [
431
+ "Test string"
432
+ ],
433
+ entryPointType: "Test string",
434
+ label: "Test string",
435
+ meetingCode: "Test string",
436
+ passcode: "Test string",
437
+ password: "Test string",
438
+ pin: "Test string",
439
+ regionCode: "Test string",
440
+ uri: "Test string",
441
+ }
442
+ ],
443
+ notes: "Test string",
444
+ parameters: {
445
+ addOnParameters: {
446
+ parameters: {
447
+ A: "Test string"
448
+ },
449
+ },
450
+ },
451
+ signature: "Test string",
452
+ },
453
+ created: "Test string",
454
+ creator: {
455
+ displayName: "Test string",
456
+ email: "Test string",
457
+ id: "Test string",
458
+ self: true,
459
+ },
460
+ description: "Test string",
461
+ end: {
462
+ date: "Test string",
463
+ dateTime: "Test string",
464
+ timeZone: "Test string",
465
+ },
466
+ endTimeUnspecified: true,
467
+ etag: "Test string",
468
+ eventType: "Test string",
469
+ extendedProperties: {
470
+ private: {
471
+ A: "Test string"
472
+ },
473
+ shared: {
474
+ A: "Test string"
475
+ },
476
+ },
477
+ gadget: {
478
+ display: "Test string",
479
+ height: 42,
480
+ iconLink: "Test string",
481
+ link: "Test string",
482
+ preferences: {
483
+ A: "Test string"
484
+ },
485
+ title: "Test string",
486
+ type: "Test string",
487
+ width: 42,
488
+ },
489
+ guestsCanInviteOthers: true,
490
+ guestsCanModify: true,
491
+ guestsCanSeeOtherGuests: true,
492
+ hangoutLink: "Test string",
493
+ htmlLink: "Test string",
494
+ iCalUID: "Test string",
495
+ id: "Test string",
496
+ kind: "Test string",
497
+ location: "Test string",
498
+ locked: true,
499
+ organizer: {
500
+ displayName: "Test string",
501
+ email: "Test string",
502
+ id: "Test string",
503
+ self: true,
504
+ },
505
+ originalStartTime: {
506
+ date: "Test string",
507
+ dateTime: "Test string",
508
+ timeZone: "Test string",
509
+ },
510
+ privateCopy: true,
511
+ recurrence: [
512
+ "Test string"
513
+ ],
514
+ recurringEventId: "Test string",
515
+ reminders: {
516
+ overrides: [
517
+ {
518
+ method: "Test string",
519
+ minutes: 42,
520
+ }
521
+ ],
522
+ useDefault: true,
523
+ },
524
+ sequence: 42,
525
+ source: {
526
+ title: "Test string",
527
+ url: "Test string",
528
+ },
529
+ start: {
530
+ date: "Test string",
531
+ dateTime: "Test string",
532
+ timeZone: "Test string",
533
+ },
534
+ status: "Test string",
535
+ summary: "Test string",
536
+ transparency: "Test string",
537
+ updated: "Test string",
538
+ visibility: "Test string",
539
+ });
540
+ /** Creates an event. */
541
+ await gapi.client.calendar.events.insert({
542
+ calendarId: "Test string",
543
+ conferenceDataVersion: 42,
544
+ maxAttendees: 42,
545
+ sendNotifications: true,
546
+ sendUpdates: "Test string",
547
+ supportsAttachments: true,
548
+ }, {
549
+ anyoneCanAddSelf: true,
550
+ attachments: [
551
+ {
552
+ fileId: "Test string",
553
+ fileUrl: "Test string",
554
+ iconLink: "Test string",
555
+ mimeType: "Test string",
556
+ title: "Test string",
557
+ }
558
+ ],
559
+ attendees: [
560
+ {
561
+ additionalGuests: 42,
562
+ comment: "Test string",
563
+ displayName: "Test string",
564
+ email: "Test string",
565
+ id: "Test string",
566
+ optional: true,
567
+ organizer: true,
568
+ resource: true,
569
+ responseStatus: "Test string",
570
+ self: true,
571
+ }
572
+ ],
573
+ attendeesOmitted: true,
574
+ colorId: "Test string",
575
+ conferenceData: {
576
+ conferenceId: "Test string",
577
+ conferenceSolution: {
578
+ iconUri: "Test string",
579
+ key: {
580
+ type: "Test string",
581
+ },
582
+ name: "Test string",
583
+ },
584
+ createRequest: {
585
+ conferenceSolutionKey: {
586
+ type: "Test string",
587
+ },
588
+ requestId: "Test string",
589
+ status: {
590
+ statusCode: "Test string",
591
+ },
592
+ },
593
+ entryPoints: [
594
+ {
595
+ accessCode: "Test string",
596
+ entryPointFeatures: [
597
+ "Test string"
598
+ ],
599
+ entryPointType: "Test string",
600
+ label: "Test string",
601
+ meetingCode: "Test string",
602
+ passcode: "Test string",
603
+ password: "Test string",
604
+ pin: "Test string",
605
+ regionCode: "Test string",
606
+ uri: "Test string",
607
+ }
608
+ ],
609
+ notes: "Test string",
610
+ parameters: {
611
+ addOnParameters: {
612
+ parameters: {
613
+ A: "Test string"
614
+ },
615
+ },
616
+ },
617
+ signature: "Test string",
618
+ },
619
+ created: "Test string",
620
+ creator: {
621
+ displayName: "Test string",
622
+ email: "Test string",
623
+ id: "Test string",
624
+ self: true,
625
+ },
626
+ description: "Test string",
627
+ end: {
628
+ date: "Test string",
629
+ dateTime: "Test string",
630
+ timeZone: "Test string",
631
+ },
632
+ endTimeUnspecified: true,
633
+ etag: "Test string",
634
+ eventType: "Test string",
635
+ extendedProperties: {
636
+ private: {
637
+ A: "Test string"
638
+ },
639
+ shared: {
640
+ A: "Test string"
641
+ },
642
+ },
643
+ gadget: {
644
+ display: "Test string",
645
+ height: 42,
646
+ iconLink: "Test string",
647
+ link: "Test string",
648
+ preferences: {
649
+ A: "Test string"
650
+ },
651
+ title: "Test string",
652
+ type: "Test string",
653
+ width: 42,
654
+ },
655
+ guestsCanInviteOthers: true,
656
+ guestsCanModify: true,
657
+ guestsCanSeeOtherGuests: true,
658
+ hangoutLink: "Test string",
659
+ htmlLink: "Test string",
660
+ iCalUID: "Test string",
661
+ id: "Test string",
662
+ kind: "Test string",
663
+ location: "Test string",
664
+ locked: true,
665
+ organizer: {
666
+ displayName: "Test string",
667
+ email: "Test string",
668
+ id: "Test string",
669
+ self: true,
670
+ },
671
+ originalStartTime: {
672
+ date: "Test string",
673
+ dateTime: "Test string",
674
+ timeZone: "Test string",
675
+ },
676
+ privateCopy: true,
677
+ recurrence: [
678
+ "Test string"
679
+ ],
680
+ recurringEventId: "Test string",
681
+ reminders: {
682
+ overrides: [
683
+ {
684
+ method: "Test string",
685
+ minutes: 42,
686
+ }
687
+ ],
688
+ useDefault: true,
689
+ },
690
+ sequence: 42,
691
+ source: {
692
+ title: "Test string",
693
+ url: "Test string",
694
+ },
695
+ start: {
696
+ date: "Test string",
697
+ dateTime: "Test string",
698
+ timeZone: "Test string",
699
+ },
700
+ status: "Test string",
701
+ summary: "Test string",
702
+ transparency: "Test string",
703
+ updated: "Test string",
704
+ visibility: "Test string",
705
+ });
706
+ /** Returns instances of the specified recurring event. */
707
+ await gapi.client.calendar.events.instances({
708
+ alwaysIncludeEmail: true,
709
+ calendarId: "Test string",
710
+ eventId: "Test string",
711
+ maxAttendees: 42,
712
+ maxResults: 42,
713
+ originalStart: "Test string",
714
+ pageToken: "Test string",
715
+ showDeleted: true,
716
+ timeMax: "Test string",
717
+ timeMin: "Test string",
718
+ timeZone: "Test string",
719
+ });
720
+ /** Returns events on the specified calendar. */
721
+ await gapi.client.calendar.events.list({
722
+ alwaysIncludeEmail: true,
723
+ calendarId: "Test string",
724
+ iCalUID: "Test string",
725
+ maxAttendees: 42,
726
+ maxResults: 42,
727
+ orderBy: "Test string",
728
+ pageToken: "Test string",
729
+ privateExtendedProperty: "Test string",
730
+ q: "Test string",
731
+ sharedExtendedProperty: "Test string",
732
+ showDeleted: true,
733
+ showHiddenInvitations: true,
734
+ singleEvents: true,
735
+ syncToken: "Test string",
736
+ timeMax: "Test string",
737
+ timeMin: "Test string",
738
+ timeZone: "Test string",
739
+ updatedMin: "Test string",
740
+ });
741
+ /** Moves an event to another calendar, i.e. changes an event's organizer. */
742
+ await gapi.client.calendar.events.move({
743
+ calendarId: "Test string",
744
+ destination: "Test string",
745
+ eventId: "Test string",
746
+ sendNotifications: true,
747
+ sendUpdates: "Test string",
748
+ });
749
+ /** Updates an event. This method supports patch semantics. */
750
+ await gapi.client.calendar.events.patch({
751
+ alwaysIncludeEmail: true,
752
+ calendarId: "Test string",
753
+ conferenceDataVersion: 42,
754
+ eventId: "Test string",
755
+ maxAttendees: 42,
756
+ sendNotifications: true,
757
+ sendUpdates: "Test string",
758
+ supportsAttachments: true,
759
+ }, {
760
+ anyoneCanAddSelf: true,
761
+ attachments: [
762
+ {
763
+ fileId: "Test string",
764
+ fileUrl: "Test string",
765
+ iconLink: "Test string",
766
+ mimeType: "Test string",
767
+ title: "Test string",
768
+ }
769
+ ],
770
+ attendees: [
771
+ {
772
+ additionalGuests: 42,
773
+ comment: "Test string",
774
+ displayName: "Test string",
775
+ email: "Test string",
776
+ id: "Test string",
777
+ optional: true,
778
+ organizer: true,
779
+ resource: true,
780
+ responseStatus: "Test string",
781
+ self: true,
782
+ }
783
+ ],
784
+ attendeesOmitted: true,
785
+ colorId: "Test string",
786
+ conferenceData: {
787
+ conferenceId: "Test string",
788
+ conferenceSolution: {
789
+ iconUri: "Test string",
790
+ key: {
791
+ type: "Test string",
792
+ },
793
+ name: "Test string",
794
+ },
795
+ createRequest: {
796
+ conferenceSolutionKey: {
797
+ type: "Test string",
798
+ },
799
+ requestId: "Test string",
800
+ status: {
801
+ statusCode: "Test string",
802
+ },
803
+ },
804
+ entryPoints: [
805
+ {
806
+ accessCode: "Test string",
807
+ entryPointFeatures: [
808
+ "Test string"
809
+ ],
810
+ entryPointType: "Test string",
811
+ label: "Test string",
812
+ meetingCode: "Test string",
813
+ passcode: "Test string",
814
+ password: "Test string",
815
+ pin: "Test string",
816
+ regionCode: "Test string",
817
+ uri: "Test string",
818
+ }
819
+ ],
820
+ notes: "Test string",
821
+ parameters: {
822
+ addOnParameters: {
823
+ parameters: {
824
+ A: "Test string"
825
+ },
826
+ },
827
+ },
828
+ signature: "Test string",
829
+ },
830
+ created: "Test string",
831
+ creator: {
832
+ displayName: "Test string",
833
+ email: "Test string",
834
+ id: "Test string",
835
+ self: true,
836
+ },
837
+ description: "Test string",
838
+ end: {
839
+ date: "Test string",
840
+ dateTime: "Test string",
841
+ timeZone: "Test string",
842
+ },
843
+ endTimeUnspecified: true,
844
+ etag: "Test string",
845
+ eventType: "Test string",
846
+ extendedProperties: {
847
+ private: {
848
+ A: "Test string"
849
+ },
850
+ shared: {
851
+ A: "Test string"
852
+ },
853
+ },
854
+ gadget: {
855
+ display: "Test string",
856
+ height: 42,
857
+ iconLink: "Test string",
858
+ link: "Test string",
859
+ preferences: {
860
+ A: "Test string"
861
+ },
862
+ title: "Test string",
863
+ type: "Test string",
864
+ width: 42,
865
+ },
866
+ guestsCanInviteOthers: true,
867
+ guestsCanModify: true,
868
+ guestsCanSeeOtherGuests: true,
869
+ hangoutLink: "Test string",
870
+ htmlLink: "Test string",
871
+ iCalUID: "Test string",
872
+ id: "Test string",
873
+ kind: "Test string",
874
+ location: "Test string",
875
+ locked: true,
876
+ organizer: {
877
+ displayName: "Test string",
878
+ email: "Test string",
879
+ id: "Test string",
880
+ self: true,
881
+ },
882
+ originalStartTime: {
883
+ date: "Test string",
884
+ dateTime: "Test string",
885
+ timeZone: "Test string",
886
+ },
887
+ privateCopy: true,
888
+ recurrence: [
889
+ "Test string"
890
+ ],
891
+ recurringEventId: "Test string",
892
+ reminders: {
893
+ overrides: [
894
+ {
895
+ method: "Test string",
896
+ minutes: 42,
897
+ }
898
+ ],
899
+ useDefault: true,
900
+ },
901
+ sequence: 42,
902
+ source: {
903
+ title: "Test string",
904
+ url: "Test string",
905
+ },
906
+ start: {
907
+ date: "Test string",
908
+ dateTime: "Test string",
909
+ timeZone: "Test string",
910
+ },
911
+ status: "Test string",
912
+ summary: "Test string",
913
+ transparency: "Test string",
914
+ updated: "Test string",
915
+ visibility: "Test string",
916
+ });
917
+ /** Creates an event based on a simple text string. */
918
+ await gapi.client.calendar.events.quickAdd({
919
+ calendarId: "Test string",
920
+ sendNotifications: true,
921
+ sendUpdates: "Test string",
922
+ text: "Test string",
923
+ });
924
+ /** Updates an event. */
925
+ await gapi.client.calendar.events.update({
926
+ alwaysIncludeEmail: true,
927
+ calendarId: "Test string",
928
+ conferenceDataVersion: 42,
929
+ eventId: "Test string",
930
+ maxAttendees: 42,
931
+ sendNotifications: true,
932
+ sendUpdates: "Test string",
933
+ supportsAttachments: true,
934
+ }, {
935
+ anyoneCanAddSelf: true,
936
+ attachments: [
937
+ {
938
+ fileId: "Test string",
939
+ fileUrl: "Test string",
940
+ iconLink: "Test string",
941
+ mimeType: "Test string",
942
+ title: "Test string",
943
+ }
944
+ ],
945
+ attendees: [
946
+ {
947
+ additionalGuests: 42,
948
+ comment: "Test string",
949
+ displayName: "Test string",
950
+ email: "Test string",
951
+ id: "Test string",
952
+ optional: true,
953
+ organizer: true,
954
+ resource: true,
955
+ responseStatus: "Test string",
956
+ self: true,
957
+ }
958
+ ],
959
+ attendeesOmitted: true,
960
+ colorId: "Test string",
961
+ conferenceData: {
962
+ conferenceId: "Test string",
963
+ conferenceSolution: {
964
+ iconUri: "Test string",
965
+ key: {
966
+ type: "Test string",
967
+ },
968
+ name: "Test string",
969
+ },
970
+ createRequest: {
971
+ conferenceSolutionKey: {
972
+ type: "Test string",
973
+ },
974
+ requestId: "Test string",
975
+ status: {
976
+ statusCode: "Test string",
977
+ },
978
+ },
979
+ entryPoints: [
980
+ {
981
+ accessCode: "Test string",
982
+ entryPointFeatures: [
983
+ "Test string"
984
+ ],
985
+ entryPointType: "Test string",
986
+ label: "Test string",
987
+ meetingCode: "Test string",
988
+ passcode: "Test string",
989
+ password: "Test string",
990
+ pin: "Test string",
991
+ regionCode: "Test string",
992
+ uri: "Test string",
993
+ }
994
+ ],
995
+ notes: "Test string",
996
+ parameters: {
997
+ addOnParameters: {
998
+ parameters: {
999
+ A: "Test string"
1000
+ },
1001
+ },
1002
+ },
1003
+ signature: "Test string",
1004
+ },
1005
+ created: "Test string",
1006
+ creator: {
1007
+ displayName: "Test string",
1008
+ email: "Test string",
1009
+ id: "Test string",
1010
+ self: true,
1011
+ },
1012
+ description: "Test string",
1013
+ end: {
1014
+ date: "Test string",
1015
+ dateTime: "Test string",
1016
+ timeZone: "Test string",
1017
+ },
1018
+ endTimeUnspecified: true,
1019
+ etag: "Test string",
1020
+ eventType: "Test string",
1021
+ extendedProperties: {
1022
+ private: {
1023
+ A: "Test string"
1024
+ },
1025
+ shared: {
1026
+ A: "Test string"
1027
+ },
1028
+ },
1029
+ gadget: {
1030
+ display: "Test string",
1031
+ height: 42,
1032
+ iconLink: "Test string",
1033
+ link: "Test string",
1034
+ preferences: {
1035
+ A: "Test string"
1036
+ },
1037
+ title: "Test string",
1038
+ type: "Test string",
1039
+ width: 42,
1040
+ },
1041
+ guestsCanInviteOthers: true,
1042
+ guestsCanModify: true,
1043
+ guestsCanSeeOtherGuests: true,
1044
+ hangoutLink: "Test string",
1045
+ htmlLink: "Test string",
1046
+ iCalUID: "Test string",
1047
+ id: "Test string",
1048
+ kind: "Test string",
1049
+ location: "Test string",
1050
+ locked: true,
1051
+ organizer: {
1052
+ displayName: "Test string",
1053
+ email: "Test string",
1054
+ id: "Test string",
1055
+ self: true,
1056
+ },
1057
+ originalStartTime: {
1058
+ date: "Test string",
1059
+ dateTime: "Test string",
1060
+ timeZone: "Test string",
1061
+ },
1062
+ privateCopy: true,
1063
+ recurrence: [
1064
+ "Test string"
1065
+ ],
1066
+ recurringEventId: "Test string",
1067
+ reminders: {
1068
+ overrides: [
1069
+ {
1070
+ method: "Test string",
1071
+ minutes: 42,
1072
+ }
1073
+ ],
1074
+ useDefault: true,
1075
+ },
1076
+ sequence: 42,
1077
+ source: {
1078
+ title: "Test string",
1079
+ url: "Test string",
1080
+ },
1081
+ start: {
1082
+ date: "Test string",
1083
+ dateTime: "Test string",
1084
+ timeZone: "Test string",
1085
+ },
1086
+ status: "Test string",
1087
+ summary: "Test string",
1088
+ transparency: "Test string",
1089
+ updated: "Test string",
1090
+ visibility: "Test string",
1091
+ });
1092
+ /** Watch for changes to Events resources. */
1093
+ await gapi.client.calendar.events.watch({
1094
+ alwaysIncludeEmail: true,
1095
+ calendarId: "Test string",
1096
+ iCalUID: "Test string",
1097
+ maxAttendees: 42,
1098
+ maxResults: 42,
1099
+ orderBy: "Test string",
1100
+ pageToken: "Test string",
1101
+ privateExtendedProperty: "Test string",
1102
+ q: "Test string",
1103
+ sharedExtendedProperty: "Test string",
1104
+ showDeleted: true,
1105
+ showHiddenInvitations: true,
1106
+ singleEvents: true,
1107
+ syncToken: "Test string",
1108
+ timeMax: "Test string",
1109
+ timeMin: "Test string",
1110
+ timeZone: "Test string",
1111
+ updatedMin: "Test string",
1112
+ }, {
1113
+ address: "Test string",
1114
+ expiration: "Test string",
1115
+ id: "Test string",
1116
+ kind: "Test string",
1117
+ params: {
1118
+ A: "Test string"
1119
+ },
1120
+ payload: true,
1121
+ resourceId: "Test string",
1122
+ resourceUri: "Test string",
1123
+ token: "Test string",
1124
+ type: "Test string",
1125
+ });
1126
+ /** Returns free/busy information for a set of calendars. */
1127
+ await gapi.client.calendar.freebusy.query({} , {
1128
+ calendarExpansionMax: 42,
1129
+ groupExpansionMax: 42,
1130
+ items: [
1131
+ {
1132
+ id: "Test string",
1133
+ }
1134
+ ],
1135
+ timeMax: "Test string",
1136
+ timeMin: "Test string",
1137
+ timeZone: "Test string",
1138
+ });
1139
+ /** Returns a single user setting. */
1140
+ await gapi.client.calendar.settings.get({
1141
+ setting: "Test string",
1142
+ });
1143
+ /** Returns all user settings for the authenticated user. */
1144
+ await gapi.client.calendar.settings.list({
1145
+ maxResults: 42,
1146
+ pageToken: "Test string",
1147
+ syncToken: "Test string",
1148
+ });
1149
+ /** Watch for changes to Settings resources. */
1150
+ await gapi.client.calendar.settings.watch({
1151
+ maxResults: 42,
1152
+ pageToken: "Test string",
1153
+ syncToken: "Test string",
1154
+ }, {
1155
+ address: "Test string",
1156
+ expiration: "Test string",
1157
+ id: "Test string",
1158
+ kind: "Test string",
1159
+ params: {
1160
+ A: "Test string"
1161
+ },
1162
+ payload: true,
1163
+ resourceId: "Test string",
1164
+ resourceUri: "Test string",
1165
+ token: "Test string",
1166
+ type: "Test string",
1167
+ });
1168
+ }
1169
+ });