@maxim_mazurok/gapi.client.calendar-v3 0.0.20230210 → 0.0.20230226
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 +26 -1
- package/package.json +1 -1
- package/tests.ts +53 -1
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: 20230226
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -449,6 +449,7 @@ declare namespace gapi.client {
|
|
|
449
449
|
* - "default" - A regular event or not further specified.
|
|
450
450
|
* - "outOfOffice" - An out-of-office event.
|
|
451
451
|
* - "focusTime" - A focus-time event.
|
|
452
|
+
* - "workingLocation" - A working location event.
|
|
452
453
|
*/
|
|
453
454
|
eventType?: string;
|
|
454
455
|
/** Extended properties of the event. */
|
|
@@ -607,6 +608,8 @@ declare namespace gapi.client {
|
|
|
607
608
|
* - "confidential" - The event is private. This value is provided for compatibility reasons.
|
|
608
609
|
*/
|
|
609
610
|
visibility?: string;
|
|
611
|
+
/** Working Location event data. Read-only. */
|
|
612
|
+
workingLocationProperties?: EventWorkingLocationProperties;
|
|
610
613
|
}
|
|
611
614
|
interface EventAttachment {
|
|
612
615
|
/**
|
|
@@ -722,6 +725,28 @@ declare namespace gapi.client {
|
|
|
722
725
|
/** Last modification time of the calendar (as a RFC3339 timestamp). Read-only. */
|
|
723
726
|
updated?: string;
|
|
724
727
|
}
|
|
728
|
+
interface EventWorkingLocationProperties {
|
|
729
|
+
/** If present, specifies that the user is working from a custom location. */
|
|
730
|
+
customLocation?: {
|
|
731
|
+
/** An optional extra label for additional information. */
|
|
732
|
+
label?: string;
|
|
733
|
+
};
|
|
734
|
+
/** If present, specifies that the user is working at home. */
|
|
735
|
+
homeOffice?: any;
|
|
736
|
+
/** If present, specifies that the user is working from an office. */
|
|
737
|
+
officeLocation?: {
|
|
738
|
+
/** An optional building identifier. This should reference a building ID in the organization's Resources database. */
|
|
739
|
+
buildingId?: string;
|
|
740
|
+
/** An optional arbitrary desk identifier. */
|
|
741
|
+
deskId?: string;
|
|
742
|
+
/** An optional arbitrary floor identifier. */
|
|
743
|
+
floorId?: string;
|
|
744
|
+
/** An optional arbitrary floor section identifier. */
|
|
745
|
+
floorSectionId?: string;
|
|
746
|
+
/** An optional extra label for additional information. */
|
|
747
|
+
label?: string;
|
|
748
|
+
};
|
|
749
|
+
}
|
|
725
750
|
interface FreeBusyCalendar {
|
|
726
751
|
/** List of time ranges during which this calendar should be regarded as busy. */
|
|
727
752
|
busy?: TimePeriod[];
|
package/package.json
CHANGED
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: 20230226
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|
|
@@ -536,6 +536,19 @@ gapi.load('client', async () => {
|
|
|
536
536
|
transparency: "Test string",
|
|
537
537
|
updated: "Test string",
|
|
538
538
|
visibility: "Test string",
|
|
539
|
+
workingLocationProperties: {
|
|
540
|
+
customLocation: {
|
|
541
|
+
label: "Test string",
|
|
542
|
+
},
|
|
543
|
+
homeOffice: 42,
|
|
544
|
+
officeLocation: {
|
|
545
|
+
buildingId: "Test string",
|
|
546
|
+
deskId: "Test string",
|
|
547
|
+
floorId: "Test string",
|
|
548
|
+
floorSectionId: "Test string",
|
|
549
|
+
label: "Test string",
|
|
550
|
+
},
|
|
551
|
+
},
|
|
539
552
|
});
|
|
540
553
|
/** Creates an event. */
|
|
541
554
|
await gapi.client.calendar.events.insert({
|
|
@@ -702,6 +715,19 @@ gapi.load('client', async () => {
|
|
|
702
715
|
transparency: "Test string",
|
|
703
716
|
updated: "Test string",
|
|
704
717
|
visibility: "Test string",
|
|
718
|
+
workingLocationProperties: {
|
|
719
|
+
customLocation: {
|
|
720
|
+
label: "Test string",
|
|
721
|
+
},
|
|
722
|
+
homeOffice: 42,
|
|
723
|
+
officeLocation: {
|
|
724
|
+
buildingId: "Test string",
|
|
725
|
+
deskId: "Test string",
|
|
726
|
+
floorId: "Test string",
|
|
727
|
+
floorSectionId: "Test string",
|
|
728
|
+
label: "Test string",
|
|
729
|
+
},
|
|
730
|
+
},
|
|
705
731
|
});
|
|
706
732
|
/** Returns instances of the specified recurring event. */
|
|
707
733
|
await gapi.client.calendar.events.instances({
|
|
@@ -913,6 +939,19 @@ gapi.load('client', async () => {
|
|
|
913
939
|
transparency: "Test string",
|
|
914
940
|
updated: "Test string",
|
|
915
941
|
visibility: "Test string",
|
|
942
|
+
workingLocationProperties: {
|
|
943
|
+
customLocation: {
|
|
944
|
+
label: "Test string",
|
|
945
|
+
},
|
|
946
|
+
homeOffice: 42,
|
|
947
|
+
officeLocation: {
|
|
948
|
+
buildingId: "Test string",
|
|
949
|
+
deskId: "Test string",
|
|
950
|
+
floorId: "Test string",
|
|
951
|
+
floorSectionId: "Test string",
|
|
952
|
+
label: "Test string",
|
|
953
|
+
},
|
|
954
|
+
},
|
|
916
955
|
});
|
|
917
956
|
/** Creates an event based on a simple text string. */
|
|
918
957
|
await gapi.client.calendar.events.quickAdd({
|
|
@@ -1088,6 +1127,19 @@ gapi.load('client', async () => {
|
|
|
1088
1127
|
transparency: "Test string",
|
|
1089
1128
|
updated: "Test string",
|
|
1090
1129
|
visibility: "Test string",
|
|
1130
|
+
workingLocationProperties: {
|
|
1131
|
+
customLocation: {
|
|
1132
|
+
label: "Test string",
|
|
1133
|
+
},
|
|
1134
|
+
homeOffice: 42,
|
|
1135
|
+
officeLocation: {
|
|
1136
|
+
buildingId: "Test string",
|
|
1137
|
+
deskId: "Test string",
|
|
1138
|
+
floorId: "Test string",
|
|
1139
|
+
floorSectionId: "Test string",
|
|
1140
|
+
label: "Test string",
|
|
1141
|
+
},
|
|
1142
|
+
},
|
|
1091
1143
|
});
|
|
1092
1144
|
/** Watch for changes to Events resources. */
|
|
1093
1145
|
await gapi.client.calendar.events.watch({
|