Skip to content

Commit

Permalink
feat(calendar): update the API
Browse files Browse the repository at this point in the history
#### calendar:v3

The following keys were added:
- resources.events.methods.list.parameters.eventTypes.enum
- resources.events.methods.list.parameters.eventTypes.enumDescriptions
- resources.events.methods.watch.parameters.eventTypes.enum
- resources.events.methods.watch.parameters.eventTypes.enumDescriptions

The following keys were changed:
- resources.events.methods.list.parameters.alwaysIncludeEmail.description
- resources.events.methods.list.parameters.eventTypes.description
- resources.events.methods.list.parameters.q.description
- resources.events.methods.watch.parameters.alwaysIncludeEmail.description
- resources.events.methods.watch.parameters.eventTypes.description
- resources.events.methods.watch.parameters.q.description
  • Loading branch information
yoshi-automation authored and bcoe committed Feb 2, 2024
1 parent ec5ff13 commit 70b4f02
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 19 deletions.
38 changes: 31 additions & 7 deletions discovery/calendar-v3.json
Original file line number Diff line number Diff line change
Expand Up @@ -1077,7 +1077,7 @@
],
"parameters": {
"alwaysIncludeEmail": {
"description": "Deprecated and ignored. A value will always be returned in the email field for the organizer, creator and attendees, even if no real email address is available (i.e. a generated, non-working value will be provided).",
"description": "Deprecated and ignored.",
"location": "query",
"type": "boolean"
},
Expand All @@ -1088,7 +1088,19 @@
"type": "string"
},
"eventTypes": {
"description": "Event types to return. Optional. Possible values are: \n- \"default\" \n- \"focusTime\" \n- \"outOfOffice\" \n- \"workingLocation\"This parameter can be repeated multiple times to return events of different types. The default is [\"default\", \"focusTime\", \"outOfOffice\"].",
"description": "Event types to return. Optional. This parameter can be repeated multiple times to return events of different types. The default is [\"default\", \"focusTime\", \"outOfOffice\"].",
"enum": [
"default",
"focusTime",
"outOfOffice",
"workingLocation"
],
"enumDescriptions": [
"Regular events.",
"Focus time events.",
"Out of office events.",
"Working location events."
],
"location": "query",
"repeated": true,
"type": "string"
Expand Down Expand Up @@ -1138,7 +1150,7 @@
"type": "string"
},
"q": {
"description": "Free text search terms to find events that match these terms in the following fields:\n\n- summary \n- description \n- location \n- attendee's displayName \n- attendee's email \n- workingLocationProperties.officeLocation.buildingId \n- workingLocationProperties.officeLocation.deskId \n- workingLocationProperties.officeLocation.label \n- workingLocationProperties.customLocation.label \nThese 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 \"Office\" or \"Bureau\" returns working location events of type officeLocation, whereas searching for \"Out of office\" or \"Abwesend\" returns out-of-office events. Optional.",
"description": "Free text search terms to find events that match these terms in the following fields:\n\n- summary \n- description \n- location \n- attendee's displayName \n- attendee's email \n- organizer's displayName \n- organizer's email \n- workingLocationProperties.officeLocation.buildingId \n- workingLocationProperties.officeLocation.deskId \n- workingLocationProperties.officeLocation.label \n- workingLocationProperties.customLocation.label \nThese 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 \"Office\" or \"Bureau\" returns working location events of type officeLocation, whereas searching for \"Out of office\" or \"Abwesend\" returns out-of-office events. Optional.",
"location": "query",
"type": "string"
},
Expand Down Expand Up @@ -1480,7 +1492,7 @@
],
"parameters": {
"alwaysIncludeEmail": {
"description": "Deprecated and ignored. A value will always be returned in the email field for the organizer, creator and attendees, even if no real email address is available (i.e. a generated, non-working value will be provided).",
"description": "Deprecated and ignored.",
"location": "query",
"type": "boolean"
},
Expand All @@ -1491,7 +1503,19 @@
"type": "string"
},
"eventTypes": {
"description": "Event types to return. Optional. Possible values are: \n- \"default\" \n- \"focusTime\" \n- \"outOfOffice\" \n- \"workingLocation\"This parameter can be repeated multiple times to return events of different types. The default is [\"default\", \"focusTime\", \"outOfOffice\"].",
"description": "Event types to return. Optional. This parameter can be repeated multiple times to return events of different types. The default is [\"default\", \"focusTime\", \"outOfOffice\"].",
"enum": [
"default",
"focusTime",
"outOfOffice",
"workingLocation"
],
"enumDescriptions": [
"Regular events.",
"Focus time events.",
"Out of office events.",
"Working location events."
],
"location": "query",
"repeated": true,
"type": "string"
Expand Down Expand Up @@ -1541,7 +1565,7 @@
"type": "string"
},
"q": {
"description": "Free text search terms to find events that match these terms in the following fields:\n\n- summary \n- description \n- location \n- attendee's displayName \n- attendee's email \n- workingLocationProperties.officeLocation.buildingId \n- workingLocationProperties.officeLocation.deskId \n- workingLocationProperties.officeLocation.label \n- workingLocationProperties.customLocation.label \nThese 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 \"Office\" or \"Bureau\" returns working location events of type officeLocation, whereas searching for \"Out of office\" or \"Abwesend\" returns out-of-office events. Optional.",
"description": "Free text search terms to find events that match these terms in the following fields:\n\n- summary \n- description \n- location \n- attendee's displayName \n- attendee's email \n- organizer's displayName \n- organizer's email \n- workingLocationProperties.officeLocation.buildingId \n- workingLocationProperties.officeLocation.deskId \n- workingLocationProperties.officeLocation.label \n- workingLocationProperties.customLocation.label \nThese 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 \"Office\" or \"Bureau\" returns working location events of type officeLocation, whereas searching for \"Out of office\" or \"Abwesend\" returns out-of-office events. Optional.",
"location": "query",
"type": "string"
},
Expand Down Expand Up @@ -1735,7 +1759,7 @@
}
}
},
"revision": "20231215",
"revision": "20240125",
"rootUrl": "https://www.googleapis.com/",
"schemas": {
"Acl": {
Expand Down
20 changes: 8 additions & 12 deletions src/apis/calendar/v3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4464,19 +4464,15 @@ export namespace calendar_v3 {
}
export interface Params$Resource$Events$List extends StandardParameters {
/**
* Deprecated and ignored. A value will always be returned in the email field for the organizer, creator and attendees, even if no real email address is available (i.e. a generated, non-working value will be provided).
* Deprecated and ignored.
*/
alwaysIncludeEmail?: boolean;
/**
* Calendar identifier. To retrieve calendar IDs call the calendarList.list method. If you want to access the primary calendar of the currently logged in user, use the "primary" keyword.
*/
calendarId?: string;
/**
* Event types to return. Optional. Possible values are:
* - "default"
* - "focusTime"
* - "outOfOffice"
* - "workingLocation"This parameter can be repeated multiple times to return events of different types. The default is ["default", "focusTime", "outOfOffice"].
* Event types to return. Optional. This parameter can be repeated multiple times to return events of different types. The default is ["default", "focusTime", "outOfOffice"].
*/
eventTypes?: string[];
/**
Expand Down Expand Up @@ -4511,6 +4507,8 @@ export namespace calendar_v3 {
* - location
* - attendee's displayName
* - attendee's email
* - organizer's displayName
* - organizer's email
* - workingLocationProperties.officeLocation.buildingId
* - workingLocationProperties.officeLocation.deskId
* - workingLocationProperties.officeLocation.label
Expand Down Expand Up @@ -4696,19 +4694,15 @@ export namespace calendar_v3 {
}
export interface Params$Resource$Events$Watch extends StandardParameters {
/**
* Deprecated and ignored. A value will always be returned in the email field for the organizer, creator and attendees, even if no real email address is available (i.e. a generated, non-working value will be provided).
* Deprecated and ignored.
*/
alwaysIncludeEmail?: boolean;
/**
* Calendar identifier. To retrieve calendar IDs call the calendarList.list method. If you want to access the primary calendar of the currently logged in user, use the "primary" keyword.
*/
calendarId?: string;
/**
* Event types to return. Optional. Possible values are:
* - "default"
* - "focusTime"
* - "outOfOffice"
* - "workingLocation"This parameter can be repeated multiple times to return events of different types. The default is ["default", "focusTime", "outOfOffice"].
* Event types to return. Optional. This parameter can be repeated multiple times to return events of different types. The default is ["default", "focusTime", "outOfOffice"].
*/
eventTypes?: string[];
/**
Expand Down Expand Up @@ -4743,6 +4737,8 @@ export namespace calendar_v3 {
* - location
* - attendee's displayName
* - attendee's email
* - organizer's displayName
* - organizer's email
* - workingLocationProperties.officeLocation.buildingId
* - workingLocationProperties.officeLocation.deskId
* - workingLocationProperties.officeLocation.label
Expand Down

0 comments on commit 70b4f02

Please sign in to comment.