@maxim_mazurok/gapi.client.calendar-v3 0.0.20231102 → 0.0.20231116
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 +80 -5
- package/package.json +1 -1
- package/readme.md +1 -1
- package/tests.ts +38 -2
package/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
10
10
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
11
11
|
// Generated from: https://calendar-json.googleapis.com/$discovery/rest?version=v3
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20231116
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -573,6 +573,9 @@ declare namespace gapi.client {
|
|
|
573
573
|
shared?:
|
|
574
574
|
{ [P in string]: string };
|
|
575
575
|
};
|
|
576
|
+
/** Focus Time event data. */
|
|
577
|
+
focusTimeProperties?:
|
|
578
|
+
EventFocusTimeProperties;
|
|
576
579
|
/** A gadget that extends this event. Gadgets are deprecated; this structure is instead only used for returning birthday calendar metadata. */
|
|
577
580
|
gadget?:
|
|
578
581
|
{
|
|
@@ -677,6 +680,9 @@ declare namespace gapi.client {
|
|
|
677
680
|
*/
|
|
678
681
|
originalStartTime?:
|
|
679
682
|
EventDateTime;
|
|
683
|
+
/** Out of office event data. */
|
|
684
|
+
outOfOfficeProperties?:
|
|
685
|
+
EventOutOfOfficeProperties;
|
|
680
686
|
/** If set to True, Event propagation is disabled. Note that it is not the same thing as Private event properties. Optional. Immutable. The default is False. */
|
|
681
687
|
privateCopy?:
|
|
682
688
|
boolean;
|
|
@@ -848,6 +854,33 @@ declare namespace gapi.client {
|
|
|
848
854
|
timeZone?:
|
|
849
855
|
string;
|
|
850
856
|
}
|
|
857
|
+
interface EventFocusTimeProperties {
|
|
858
|
+
/**
|
|
859
|
+
* Whether to decline meeting invitations which overlap Focus Time events. Valid values are declineNone, meaning that no meeting invitations are declined;
|
|
860
|
+
* declineAllConflictingInvitations, meaning that all conflicting meeting invitations that conflict with the event are declined; and declineOnlyNewConflictingInvitations, meaning that
|
|
861
|
+
* only new conflicting meeting invitations which arrive while the Focus Time event is present are to be declined.
|
|
862
|
+
*/
|
|
863
|
+
autoDeclineMode?:
|
|
864
|
+
string;
|
|
865
|
+
/** The status to mark the user in Chat and related products. This can be available or doNotDisturb. */
|
|
866
|
+
chatStatus?:
|
|
867
|
+
string;
|
|
868
|
+
/** Response message to set if an existing event or new invitation is automatically declined by Calendar. */
|
|
869
|
+
declineMessage?:
|
|
870
|
+
string;
|
|
871
|
+
}
|
|
872
|
+
interface EventOutOfOfficeProperties {
|
|
873
|
+
/**
|
|
874
|
+
* Whether to decline meeting invitations which overlap Out of office events. Valid values are declineNone, meaning that no meeting invitations are declined;
|
|
875
|
+
* declineAllConflictingInvitations, meaning that all conflicting meeting invitations that conflict with the event are declined; and declineOnlyNewConflictingInvitations, meaning that
|
|
876
|
+
* only new conflicting meeting invitations which arrive while the Out of office event is present are to be declined.
|
|
877
|
+
*/
|
|
878
|
+
autoDeclineMode?:
|
|
879
|
+
string;
|
|
880
|
+
/** Response message to set if an existing event or new invitation is automatically declined by Calendar. */
|
|
881
|
+
declineMessage?:
|
|
882
|
+
string;
|
|
883
|
+
}
|
|
851
884
|
interface EventReminder {
|
|
852
885
|
/**
|
|
853
886
|
* The method used by this reminder. Possible values are:
|
|
@@ -2685,7 +2718,21 @@ declare namespace gapi.client {
|
|
|
2685
2718
|
*/
|
|
2686
2719
|
privateExtendedProperty?:
|
|
2687
2720
|
string | string[];
|
|
2688
|
-
/**
|
|
2721
|
+
/**
|
|
2722
|
+
* Free text search terms to find events that match these terms in the following fields:
|
|
2723
|
+
*
|
|
2724
|
+
* - summary
|
|
2725
|
+
* - description
|
|
2726
|
+
* - location
|
|
2727
|
+
* - attendee's displayName
|
|
2728
|
+
* - attendee's email
|
|
2729
|
+
* - workingLocationProperties.officeLocation.buildingId
|
|
2730
|
+
* - workingLocationProperties.officeLocation.deskId
|
|
2731
|
+
* - workingLocationProperties.officeLocation.label
|
|
2732
|
+
* - workingLocationProperties.customLocation.label
|
|
2733
|
+
* These search terms also match predefined keywords against all display title translations of working location, out-of-office, and focus-time events. For example, searching for
|
|
2734
|
+
* "Office" or "Bureau" returns working location events of type officeLocation, whereas searching for "Out of office" or "Abwesend" returns out-of-office events. Optional.
|
|
2735
|
+
*/
|
|
2689
2736
|
q?:
|
|
2690
2737
|
string;
|
|
2691
2738
|
/** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
|
|
@@ -2758,7 +2805,7 @@ declare namespace gapi.client {
|
|
|
2758
2805
|
userIp?:
|
|
2759
2806
|
string;
|
|
2760
2807
|
}): Request<Events>;
|
|
2761
|
-
/** Moves an event to another calendar, i.e. changes an event's organizer. */
|
|
2808
|
+
/** Moves an event to another calendar, i.e. changes an event's organizer. Note that only default events can be moved; outOfOffice, focusTime and workingLocation events cannot be moved. */
|
|
2762
2809
|
move(request?: {
|
|
2763
2810
|
/** Data format for the response. */
|
|
2764
2811
|
alt?:
|
|
@@ -3165,7 +3212,21 @@ declare namespace gapi.client {
|
|
|
3165
3212
|
*/
|
|
3166
3213
|
privateExtendedProperty?:
|
|
3167
3214
|
string | string[];
|
|
3168
|
-
/**
|
|
3215
|
+
/**
|
|
3216
|
+
* Free text search terms to find events that match these terms in the following fields:
|
|
3217
|
+
*
|
|
3218
|
+
* - summary
|
|
3219
|
+
* - description
|
|
3220
|
+
* - location
|
|
3221
|
+
* - attendee's displayName
|
|
3222
|
+
* - attendee's email
|
|
3223
|
+
* - workingLocationProperties.officeLocation.buildingId
|
|
3224
|
+
* - workingLocationProperties.officeLocation.deskId
|
|
3225
|
+
* - workingLocationProperties.officeLocation.label
|
|
3226
|
+
* - workingLocationProperties.customLocation.label
|
|
3227
|
+
* These search terms also match predefined keywords against all display title translations of working location, out-of-office, and focus-time events. For example, searching for
|
|
3228
|
+
* "Office" or "Bureau" returns working location events of type officeLocation, whereas searching for "Out of office" or "Abwesend" returns out-of-office events. Optional.
|
|
3229
|
+
*/
|
|
3169
3230
|
q?:
|
|
3170
3231
|
string;
|
|
3171
3232
|
/** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
|
|
@@ -3307,7 +3368,21 @@ declare namespace gapi.client {
|
|
|
3307
3368
|
*/
|
|
3308
3369
|
privateExtendedProperty?:
|
|
3309
3370
|
string | string[];
|
|
3310
|
-
/**
|
|
3371
|
+
/**
|
|
3372
|
+
* Free text search terms to find events that match these terms in the following fields:
|
|
3373
|
+
*
|
|
3374
|
+
* - summary
|
|
3375
|
+
* - description
|
|
3376
|
+
* - location
|
|
3377
|
+
* - attendee's displayName
|
|
3378
|
+
* - attendee's email
|
|
3379
|
+
* - workingLocationProperties.officeLocation.buildingId
|
|
3380
|
+
* - workingLocationProperties.officeLocation.deskId
|
|
3381
|
+
* - workingLocationProperties.officeLocation.label
|
|
3382
|
+
* - workingLocationProperties.customLocation.label
|
|
3383
|
+
* These search terms also match predefined keywords against all display title translations of working location, out-of-office, and focus-time events. For example, searching for
|
|
3384
|
+
* "Office" or "Bureau" returns working location events of type officeLocation, whereas searching for "Out of office" or "Abwesend" returns out-of-office events. Optional.
|
|
3385
|
+
*/
|
|
3311
3386
|
q?:
|
|
3312
3387
|
string;
|
|
3313
3388
|
/** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -219,7 +219,7 @@ Returns events on the specified calendar.
|
|
|
219
219
|
await gapi.client.calendar.events.list({ calendarId: "calendarId", });
|
|
220
220
|
|
|
221
221
|
/*
|
|
222
|
-
Moves an event to another calendar, i.e. changes an event's organizer.
|
|
222
|
+
Moves an event to another calendar, i.e. changes an event's organizer. Note that only default events can be moved; outOfOffice, focusTime and workingLocation events cannot be moved.
|
|
223
223
|
*/
|
|
224
224
|
await gapi.client.calendar.events.move({ calendarId: "calendarId", destination: "destination", eventId: "eventId", });
|
|
225
225
|
|
package/tests.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
4
4
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
5
5
|
|
|
6
|
-
// Revision:
|
|
6
|
+
// Revision: 20231116
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|
|
@@ -474,6 +474,11 @@ gapi.load('client', async () => {
|
|
|
474
474
|
A: "Test string"
|
|
475
475
|
},
|
|
476
476
|
},
|
|
477
|
+
focusTimeProperties: {
|
|
478
|
+
autoDeclineMode: "Test string",
|
|
479
|
+
chatStatus: "Test string",
|
|
480
|
+
declineMessage: "Test string",
|
|
481
|
+
},
|
|
477
482
|
gadget: {
|
|
478
483
|
display: "Test string",
|
|
479
484
|
height: 42,
|
|
@@ -507,6 +512,10 @@ gapi.load('client', async () => {
|
|
|
507
512
|
dateTime: "Test string",
|
|
508
513
|
timeZone: "Test string",
|
|
509
514
|
},
|
|
515
|
+
outOfOfficeProperties: {
|
|
516
|
+
autoDeclineMode: "Test string",
|
|
517
|
+
declineMessage: "Test string",
|
|
518
|
+
},
|
|
510
519
|
privateCopy: true,
|
|
511
520
|
recurrence: [
|
|
512
521
|
"Test string"
|
|
@@ -654,6 +663,11 @@ gapi.load('client', async () => {
|
|
|
654
663
|
A: "Test string"
|
|
655
664
|
},
|
|
656
665
|
},
|
|
666
|
+
focusTimeProperties: {
|
|
667
|
+
autoDeclineMode: "Test string",
|
|
668
|
+
chatStatus: "Test string",
|
|
669
|
+
declineMessage: "Test string",
|
|
670
|
+
},
|
|
657
671
|
gadget: {
|
|
658
672
|
display: "Test string",
|
|
659
673
|
height: 42,
|
|
@@ -687,6 +701,10 @@ gapi.load('client', async () => {
|
|
|
687
701
|
dateTime: "Test string",
|
|
688
702
|
timeZone: "Test string",
|
|
689
703
|
},
|
|
704
|
+
outOfOfficeProperties: {
|
|
705
|
+
autoDeclineMode: "Test string",
|
|
706
|
+
declineMessage: "Test string",
|
|
707
|
+
},
|
|
690
708
|
privateCopy: true,
|
|
691
709
|
recurrence: [
|
|
692
710
|
"Test string"
|
|
@@ -767,7 +785,7 @@ gapi.load('client', async () => {
|
|
|
767
785
|
timeZone: "Test string",
|
|
768
786
|
updatedMin: "Test string",
|
|
769
787
|
});
|
|
770
|
-
/** Moves an event to another calendar, i.e. changes an event's organizer. */
|
|
788
|
+
/** Moves an event to another calendar, i.e. changes an event's organizer. Note that only default events can be moved; outOfOffice, focusTime and workingLocation events cannot be moved. */
|
|
771
789
|
await gapi.client.calendar.events.move({
|
|
772
790
|
calendarId: "Test string",
|
|
773
791
|
destination: "Test string",
|
|
@@ -880,6 +898,11 @@ gapi.load('client', async () => {
|
|
|
880
898
|
A: "Test string"
|
|
881
899
|
},
|
|
882
900
|
},
|
|
901
|
+
focusTimeProperties: {
|
|
902
|
+
autoDeclineMode: "Test string",
|
|
903
|
+
chatStatus: "Test string",
|
|
904
|
+
declineMessage: "Test string",
|
|
905
|
+
},
|
|
883
906
|
gadget: {
|
|
884
907
|
display: "Test string",
|
|
885
908
|
height: 42,
|
|
@@ -913,6 +936,10 @@ gapi.load('client', async () => {
|
|
|
913
936
|
dateTime: "Test string",
|
|
914
937
|
timeZone: "Test string",
|
|
915
938
|
},
|
|
939
|
+
outOfOfficeProperties: {
|
|
940
|
+
autoDeclineMode: "Test string",
|
|
941
|
+
declineMessage: "Test string",
|
|
942
|
+
},
|
|
916
943
|
privateCopy: true,
|
|
917
944
|
recurrence: [
|
|
918
945
|
"Test string"
|
|
@@ -1069,6 +1096,11 @@ gapi.load('client', async () => {
|
|
|
1069
1096
|
A: "Test string"
|
|
1070
1097
|
},
|
|
1071
1098
|
},
|
|
1099
|
+
focusTimeProperties: {
|
|
1100
|
+
autoDeclineMode: "Test string",
|
|
1101
|
+
chatStatus: "Test string",
|
|
1102
|
+
declineMessage: "Test string",
|
|
1103
|
+
},
|
|
1072
1104
|
gadget: {
|
|
1073
1105
|
display: "Test string",
|
|
1074
1106
|
height: 42,
|
|
@@ -1102,6 +1134,10 @@ gapi.load('client', async () => {
|
|
|
1102
1134
|
dateTime: "Test string",
|
|
1103
1135
|
timeZone: "Test string",
|
|
1104
1136
|
},
|
|
1137
|
+
outOfOfficeProperties: {
|
|
1138
|
+
autoDeclineMode: "Test string",
|
|
1139
|
+
declineMessage: "Test string",
|
|
1140
|
+
},
|
|
1105
1141
|
privateCopy: true,
|
|
1106
1142
|
recurrence: [
|
|
1107
1143
|
"Test string"
|