react-google-calendar-api
Advanced tools
Comparing version 1.3.1 to 1.4.0
{ | ||
"name": "react-google-calendar-api", | ||
"version": "1.3.1", | ||
"version": "1.4.0", | ||
"description": "An api to manage your google calendar", | ||
@@ -5,0 +5,0 @@ "main": "./build/ApiCalendar.js", |
@@ -120,5 +120,6 @@ # react-google-calendar-api | ||
* @param {object} Event with start and end dateTime | ||
* @param {string} sendUpdates Acceptable values are: "all", "externalOnly", "none" | ||
* @returns {any} Promise on the event. | ||
*/ | ||
public createEvent(event: object, calendarId: string = this.calendar): any { | ||
public createEvent(event: object, calendarId: string = this.calendar, sendUpdates: string = 'none',): any { | ||
``` | ||
@@ -217,5 +218,6 @@ | ||
* @param {object} event with details to update, e.g. summary | ||
* @param {string} sendUpdates Acceptable values are: "all", "externalOnly", "none" | ||
* @returns {any} Promise object with result | ||
*/ | ||
public updateEvent(event: object, eventId: string, calendarId: string = this.calendar): any | ||
public updateEvent(event: object, eventId: string, calendarId: string = this.calendar, sendUpdates: string = 'none'): any | ||
``` | ||
@@ -222,0 +224,0 @@ |
@@ -191,5 +191,6 @@ const Config = require('../../../apiGoogleconfig.json'); | ||
* @param {object} event with start and end dateTime | ||
* @param {string} sendUpdates Acceptable values are: "all", "externalOnly", "none" | ||
* @returns {any} | ||
*/ | ||
createEvent(event, calendarId = this.calendar) { | ||
createEvent(event, calendarId = this.calendar, sendUpdates = 'none') { | ||
if (this.gapi) { | ||
@@ -199,2 +200,3 @@ return this.gapi.client.calendar.events.insert({ | ||
resource: event, | ||
sendUpdates: sendUpdates, | ||
}); | ||
@@ -245,5 +247,6 @@ } | ||
* @param {object} event with details to update, e.g. summary | ||
* @param {string} sendUpdates Acceptable values are: "all", "externalOnly", "none" | ||
* @returns {any} | ||
*/ | ||
updateEvent(event, eventId, calendarId = this.calendar) { | ||
updateEvent(event, eventId, calendarId = this.calendar, sendUpdates = 'none') { | ||
if (this.gapi) { | ||
@@ -254,2 +257,3 @@ return this.gapi.client.calendar.events.patch({ | ||
resource: event, | ||
sendUpdates: sendUpdates, | ||
}); | ||
@@ -256,0 +260,0 @@ } |
@@ -211,5 +211,6 @@ const Config = require('../../../apiGoogleconfig.json'); | ||
* @param {object} event with start and end dateTime | ||
* @param {string} sendUpdates Acceptable values are: "all", "externalOnly", "none" | ||
* @returns {any} | ||
*/ | ||
public createEvent(event: object, calendarId: string = this.calendar): any { | ||
public createEvent(event: object, calendarId: string = this.calendar, sendUpdates: string = 'none' ): any { | ||
if (this.gapi) { | ||
@@ -219,2 +220,3 @@ return this.gapi.client.calendar.events.insert({ | ||
resource: event, | ||
sendUpdates: sendUpdates, | ||
}); | ||
@@ -265,2 +267,3 @@ } else { | ||
* @param {object} event with details to update, e.g. summary | ||
* @param {string} sendUpdates Acceptable values are: "all", "externalOnly", "none" | ||
* @returns {any} | ||
@@ -271,3 +274,4 @@ */ | ||
eventId: string, | ||
calendarId: string = this.calendar | ||
calendarId: string = this.calendar, | ||
sendUpdates: string = 'none', | ||
): any { | ||
@@ -279,2 +283,3 @@ if (this.gapi) { | ||
resource: event, | ||
sendUpdates: sendUpdates, | ||
}); | ||
@@ -281,0 +286,0 @@ } else { |
47649
945
362