automatic gapi.client.calendar update @ Sat, 30 May 2020 05:12:50 GMT (#45157)

This commit is contained in:
Maxim Mazurok 2020-06-04 13:49:11 +10:00 committed by GitHub
parent f918a16d58
commit 7228e70224
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 47 additions and 47 deletions

View File

@ -8,7 +8,7 @@
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
// Generated from: https://www.googleapis.com/discovery/v1/apis/calendar/v3/rest
// Revision: 20200517
// Revision: 20200523
/// <reference types="gapi.client" />
@ -189,7 +189,7 @@ declare namespace gapi.client {
/** Identifies this as a notification channel used to watch for changes to a resource, which is "api#channel". */
kind?: string;
/** Additional parameters controlling delivery channel behavior. Optional. */
params?: Record<string, string>;
params?: { [P in string]: string };
/** A Boolean value to indicate whether payload is wanted. Optional. */
payload?: boolean;
/** An opaque ID that identifies the resource being watched on this channel. Stable across different API versions. */
@ -212,12 +212,12 @@ declare namespace gapi.client {
* A global palette of calendar colors, mapping from the color ID to its definition. A calendarListEntry resource refers to one of these color IDs in its
* color field. Read-only.
*/
calendar?: Record<string, ColorDefinition>;
calendar?: { [P in string]: ColorDefinition };
/**
* A global palette of event colors, mapping from the color ID to its definition. An event resource may refer to one of these color IDs in its color
* field. Read-only.
*/
event?: Record<string, ColorDefinition>;
event?: { [P in string]: ColorDefinition };
/** Type of the resource ("calendar#colors"). */
kind?: string;
/** Last modification time of the color palette (as a RFC3339 timestamp). Read-only. */
@ -272,7 +272,7 @@ declare namespace gapi.client {
addOnParameters?: ConferenceParametersAddOnParameters;
}
interface ConferenceParametersAddOnParameters {
parameters?: Record<string, string>;
parameters?: { [P in string]: string };
}
interface ConferenceProperties {
/**
@ -463,9 +463,9 @@ declare namespace gapi.client {
/** Extended properties of the event. */
extendedProperties?: {
/** Properties that are private to the copy of the event that appears on this calendar. */
private?: Record<string, string>;
private?: { [P in string]: string };
/** Properties that are shared between copies of the event on other attendees' calendars. */
shared?: Record<string, string>;
shared?: { [P in string]: string };
};
/** A gadget that extends this event. */
gadget?: {
@ -482,7 +482,7 @@ declare namespace gapi.client {
/** The gadget's URL. The URL scheme must be HTTPS. */
link?: string;
/** Preferences. */
preferences?: Record<string, string>;
preferences?: { [P in string]: string };
/** The gadget's title. */
title?: string;
/** The gadget's type. */
@ -778,9 +778,9 @@ declare namespace gapi.client {
}
interface FreeBusyResponse {
/** List of free/busy information for calendars. */
calendars?: Record<string, FreeBusyCalendar>;
calendars?: { [P in string]: FreeBusyCalendar };
/** Expansion of groups. */
groups?: Record<string, FreeBusyGroup>;
groups?: { [P in string]: FreeBusyGroup };
/** Type of the resource ("calendar#freeBusy"). */
kind?: string;
/** The end of the interval. */

View File

@ -73,185 +73,185 @@ After that you can use Calendar API resources:
/*
Deletes an access control rule.
*/
await gapi.client.acl.delete({ calendarId: "calendarId", ruleId: "ruleId", });
await gapi.client.calendar.acl.delete({ calendarId: "calendarId", ruleId: "ruleId", });
/*
Returns an access control rule.
*/
await gapi.client.acl.get({ calendarId: "calendarId", ruleId: "ruleId", });
await gapi.client.calendar.acl.get({ calendarId: "calendarId", ruleId: "ruleId", });
/*
Creates an access control rule.
*/
await gapi.client.acl.insert({ calendarId: "calendarId", });
await gapi.client.calendar.acl.insert({ calendarId: "calendarId", });
/*
Returns the rules in the access control list for the calendar.
*/
await gapi.client.acl.list({ calendarId: "calendarId", });
await gapi.client.calendar.acl.list({ calendarId: "calendarId", });
/*
Updates an access control rule. This method supports patch semantics.
*/
await gapi.client.acl.patch({ calendarId: "calendarId", ruleId: "ruleId", });
await gapi.client.calendar.acl.patch({ calendarId: "calendarId", ruleId: "ruleId", });
/*
Updates an access control rule.
*/
await gapi.client.acl.update({ calendarId: "calendarId", ruleId: "ruleId", });
await gapi.client.calendar.acl.update({ calendarId: "calendarId", ruleId: "ruleId", });
/*
Watch for changes to ACL resources.
*/
await gapi.client.acl.watch({ calendarId: "calendarId", });
await gapi.client.calendar.acl.watch({ calendarId: "calendarId", });
/*
Removes a calendar from the user's calendar list.
*/
await gapi.client.calendarList.delete({ calendarId: "calendarId", });
await gapi.client.calendar.calendarList.delete({ calendarId: "calendarId", });
/*
Returns a calendar from the user's calendar list.
*/
await gapi.client.calendarList.get({ calendarId: "calendarId", });
await gapi.client.calendar.calendarList.get({ calendarId: "calendarId", });
/*
Inserts an existing calendar into the user's calendar list.
*/
await gapi.client.calendarList.insert({ });
await gapi.client.calendar.calendarList.insert({ });
/*
Returns the calendars on the user's calendar list.
*/
await gapi.client.calendarList.list({ });
await gapi.client.calendar.calendarList.list({ });
/*
Updates an existing calendar on the user's calendar list. This method supports patch semantics.
*/
await gapi.client.calendarList.patch({ calendarId: "calendarId", });
await gapi.client.calendar.calendarList.patch({ calendarId: "calendarId", });
/*
Updates an existing calendar on the user's calendar list.
*/
await gapi.client.calendarList.update({ calendarId: "calendarId", });
await gapi.client.calendar.calendarList.update({ calendarId: "calendarId", });
/*
Watch for changes to CalendarList resources.
*/
await gapi.client.calendarList.watch({ });
await gapi.client.calendar.calendarList.watch({ });
/*
Clears a primary calendar. This operation deletes all events associated with the primary calendar of an account.
*/
await gapi.client.calendars.clear({ calendarId: "calendarId", });
await gapi.client.calendar.calendars.clear({ calendarId: "calendarId", });
/*
Deletes a secondary calendar. Use calendars.clear for clearing all events on primary calendars.
*/
await gapi.client.calendars.delete({ calendarId: "calendarId", });
await gapi.client.calendar.calendars.delete({ calendarId: "calendarId", });
/*
Returns metadata for a calendar.
*/
await gapi.client.calendars.get({ calendarId: "calendarId", });
await gapi.client.calendar.calendars.get({ calendarId: "calendarId", });
/*
Creates a secondary calendar.
*/
await gapi.client.calendars.insert({ });
await gapi.client.calendar.calendars.insert({ });
/*
Updates metadata for a calendar. This method supports patch semantics.
*/
await gapi.client.calendars.patch({ calendarId: "calendarId", });
await gapi.client.calendar.calendars.patch({ calendarId: "calendarId", });
/*
Updates metadata for a calendar.
*/
await gapi.client.calendars.update({ calendarId: "calendarId", });
await gapi.client.calendar.calendars.update({ calendarId: "calendarId", });
/*
Stop watching resources through this channel
*/
await gapi.client.channels.stop({ });
await gapi.client.calendar.channels.stop({ });
/*
Returns the color definitions for calendars and events.
*/
await gapi.client.colors.get({ });
await gapi.client.calendar.colors.get({ });
/*
Deletes an event.
*/
await gapi.client.events.delete({ calendarId: "calendarId", eventId: "eventId", });
await gapi.client.calendar.events.delete({ calendarId: "calendarId", eventId: "eventId", });
/*
Returns an event.
*/
await gapi.client.events.get({ calendarId: "calendarId", eventId: "eventId", });
await gapi.client.calendar.events.get({ calendarId: "calendarId", eventId: "eventId", });
/*
Imports an event. This operation is used to add a private copy of an existing event to a calendar.
*/
await gapi.client.events.import({ calendarId: "calendarId", });
await gapi.client.calendar.events.import({ calendarId: "calendarId", });
/*
Creates an event.
*/
await gapi.client.events.insert({ calendarId: "calendarId", });
await gapi.client.calendar.events.insert({ calendarId: "calendarId", });
/*
Returns instances of the specified recurring event.
*/
await gapi.client.events.instances({ calendarId: "calendarId", eventId: "eventId", });
await gapi.client.calendar.events.instances({ calendarId: "calendarId", eventId: "eventId", });
/*
Returns events on the specified calendar.
*/
await gapi.client.events.list({ calendarId: "calendarId", });
await gapi.client.calendar.events.list({ calendarId: "calendarId", });
/*
Moves an event to another calendar, i.e. changes an event's organizer.
*/
await gapi.client.events.move({ calendarId: "calendarId", destination: "destination", eventId: "eventId", });
await gapi.client.calendar.events.move({ calendarId: "calendarId", destination: "destination", eventId: "eventId", });
/*
Updates an event. This method supports patch semantics.
*/
await gapi.client.events.patch({ calendarId: "calendarId", eventId: "eventId", });
await gapi.client.calendar.events.patch({ calendarId: "calendarId", eventId: "eventId", });
/*
Creates an event based on a simple text string.
*/
await gapi.client.events.quickAdd({ calendarId: "calendarId", text: "text", });
await gapi.client.calendar.events.quickAdd({ calendarId: "calendarId", text: "text", });
/*
Updates an event.
*/
await gapi.client.events.update({ calendarId: "calendarId", eventId: "eventId", });
await gapi.client.calendar.events.update({ calendarId: "calendarId", eventId: "eventId", });
/*
Watch for changes to Events resources.
*/
await gapi.client.events.watch({ calendarId: "calendarId", });
await gapi.client.calendar.events.watch({ calendarId: "calendarId", });
/*
Returns free/busy information for a set of calendars.
*/
await gapi.client.freebusy.query({ });
await gapi.client.calendar.freebusy.query({ });
/*
Returns a single user setting.
*/
await gapi.client.settings.get({ setting: "setting", });
await gapi.client.calendar.settings.get({ setting: "setting", });
/*
Returns all user settings for the authenticated user.
*/
await gapi.client.settings.list({ });
await gapi.client.calendar.settings.list({ });
/*
Watch for changes to Settings resources.
*/
await gapi.client.settings.watch({ });
await gapi.client.calendar.settings.watch({ });
```