@maxim_mazurok/gapi.client.calendar-v3 0.0.20231107 → 0.0.20231123

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,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: 20231107
12
+ // Revision: 20231123
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -556,8 +556,8 @@ declare namespace gapi.client {
556
556
  /**
557
557
  * Specific type of the event. This cannot be modified after the event is created. Possible values are:
558
558
  * - "default" - A regular event or not further specified.
559
- * - "outOfOffice" - An out-of-office event.
560
- * - "focusTime" - A focus-time event.
559
+ * - "outOfOffice" - An out-of-office event. An outOfOfficeProperties parameter must be supplied to make a valid event (even if empty).
560
+ * - "focusTime" - A focus-time event. A focusTimeProperties parameter must be supplied to make a valid event (even if empty).
561
561
  * - "workingLocation" - A working location event. Currently, only "default " and "workingLocation" events can be created using the API. Extended support for other event types will be
562
562
  * made available in later releases.
563
563
  */
@@ -573,6 +573,9 @@ declare namespace gapi.client {
573
573
  shared?:
574
574
  { [P in string]: string };
575
575
  };
576
+ /** Focus Time event data. Required if eventType is focusTime. */
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. Required if eventType is outOfOffice. */
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:
@@ -2640,11 +2673,7 @@ declare namespace gapi.client {
2640
2673
  * - "default"
2641
2674
  * - "focusTime"
2642
2675
  * - "outOfOffice"
2643
- * - "workingLocation"This parameter can be repeated multiple times to return events of different types. Currently, these are the only allowed values for this field:
2644
- * - ["default", "focusTime", "outOfOffice"]
2645
- * - ["default", "focusTime", "outOfOffice", "workingLocation"]
2646
- * - ["workingLocation"] The default is ["default", "focusTime", "outOfOffice"].
2647
- * Additional combinations of these four event types will be made available in later releases.
2676
+ * - "workingLocation"This parameter can be repeated multiple times to return events of different types. The default is ["default", "focusTime", "outOfOffice"].
2648
2677
  */
2649
2678
  eventTypes?:
2650
2679
  string | string[];
@@ -2685,7 +2714,21 @@ declare namespace gapi.client {
2685
2714
  */
2686
2715
  privateExtendedProperty?:
2687
2716
  string | string[];
2688
- /** Free text search terms to find events that match these terms in the following fields: summary, description, location, attendee's displayName, attendee's email. Optional. */
2717
+ /**
2718
+ * Free text search terms to find events that match these terms in the following fields:
2719
+ *
2720
+ * - summary
2721
+ * - description
2722
+ * - location
2723
+ * - attendee's displayName
2724
+ * - attendee's email
2725
+ * - workingLocationProperties.officeLocation.buildingId
2726
+ * - workingLocationProperties.officeLocation.deskId
2727
+ * - workingLocationProperties.officeLocation.label
2728
+ * - workingLocationProperties.customLocation.label
2729
+ * 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
2730
+ * "Office" or "Bureau" returns working location events of type officeLocation, whereas searching for "Out of office" or "Abwesend" returns out-of-office events. Optional.
2731
+ */
2689
2732
  q?:
2690
2733
  string;
2691
2734
  /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
@@ -2758,7 +2801,7 @@ declare namespace gapi.client {
2758
2801
  userIp?:
2759
2802
  string;
2760
2803
  }): Request<Events>;
2761
- /** Moves an event to another calendar, i.e. changes an event's organizer. */
2804
+ /** 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
2805
  move(request?: {
2763
2806
  /** Data format for the response. */
2764
2807
  alt?:
@@ -3120,11 +3163,7 @@ declare namespace gapi.client {
3120
3163
  * - "default"
3121
3164
  * - "focusTime"
3122
3165
  * - "outOfOffice"
3123
- * - "workingLocation"This parameter can be repeated multiple times to return events of different types. Currently, these are the only allowed values for this field:
3124
- * - ["default", "focusTime", "outOfOffice"]
3125
- * - ["default", "focusTime", "outOfOffice", "workingLocation"]
3126
- * - ["workingLocation"] The default is ["default", "focusTime", "outOfOffice"].
3127
- * Additional combinations of these four event types will be made available in later releases.
3166
+ * - "workingLocation"This parameter can be repeated multiple times to return events of different types. The default is ["default", "focusTime", "outOfOffice"].
3128
3167
  */
3129
3168
  eventTypes?:
3130
3169
  string | string[];
@@ -3165,7 +3204,21 @@ declare namespace gapi.client {
3165
3204
  */
3166
3205
  privateExtendedProperty?:
3167
3206
  string | string[];
3168
- /** Free text search terms to find events that match these terms in the following fields: summary, description, location, attendee's displayName, attendee's email. Optional. */
3207
+ /**
3208
+ * Free text search terms to find events that match these terms in the following fields:
3209
+ *
3210
+ * - summary
3211
+ * - description
3212
+ * - location
3213
+ * - attendee's displayName
3214
+ * - attendee's email
3215
+ * - workingLocationProperties.officeLocation.buildingId
3216
+ * - workingLocationProperties.officeLocation.deskId
3217
+ * - workingLocationProperties.officeLocation.label
3218
+ * - workingLocationProperties.customLocation.label
3219
+ * 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
3220
+ * "Office" or "Bureau" returns working location events of type officeLocation, whereas searching for "Out of office" or "Abwesend" returns out-of-office events. Optional.
3221
+ */
3169
3222
  q?:
3170
3223
  string;
3171
3224
  /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
@@ -3262,11 +3315,7 @@ declare namespace gapi.client {
3262
3315
  * - "default"
3263
3316
  * - "focusTime"
3264
3317
  * - "outOfOffice"
3265
- * - "workingLocation"This parameter can be repeated multiple times to return events of different types. Currently, these are the only allowed values for this field:
3266
- * - ["default", "focusTime", "outOfOffice"]
3267
- * - ["default", "focusTime", "outOfOffice", "workingLocation"]
3268
- * - ["workingLocation"] The default is ["default", "focusTime", "outOfOffice"].
3269
- * Additional combinations of these four event types will be made available in later releases.
3318
+ * - "workingLocation"This parameter can be repeated multiple times to return events of different types. The default is ["default", "focusTime", "outOfOffice"].
3270
3319
  */
3271
3320
  eventTypes?:
3272
3321
  string | string[];
@@ -3307,7 +3356,21 @@ declare namespace gapi.client {
3307
3356
  */
3308
3357
  privateExtendedProperty?:
3309
3358
  string | string[];
3310
- /** Free text search terms to find events that match these terms in the following fields: summary, description, location, attendee's displayName, attendee's email. Optional. */
3359
+ /**
3360
+ * Free text search terms to find events that match these terms in the following fields:
3361
+ *
3362
+ * - summary
3363
+ * - description
3364
+ * - location
3365
+ * - attendee's displayName
3366
+ * - attendee's email
3367
+ * - workingLocationProperties.officeLocation.buildingId
3368
+ * - workingLocationProperties.officeLocation.deskId
3369
+ * - workingLocationProperties.officeLocation.label
3370
+ * - workingLocationProperties.customLocation.label
3371
+ * 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
3372
+ * "Office" or "Bureau" returns working location events of type officeLocation, whereas searching for "Out of office" or "Abwesend" returns out-of-office events. Optional.
3373
+ */
3311
3374
  q?:
3312
3375
  string;
3313
3376
  /** An opaque string that represents a user for quota purposes. Must not exceed 40 characters. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.calendar-v3",
3
- "version": "0.0.20231107",
3
+ "version": "0.0.20231123",
4
4
  "description": "TypeScript typings for Calendar API v3",
5
5
  "license": "MIT",
6
6
  "author": {
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: 20231107
6
+ // Revision: 20231123
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"