react-google-calendar-api
Advanced tools
Comparing version 2.0.3 to 2.1.0
@@ -82,3 +82,3 @@ interface ConfigApiCalendar { | ||
start: TimeCalendarType; | ||
}, calendarId?: string, sendUpdates?: 'all' | 'externalOnly' | 'none'): any; | ||
}, calendarId?: string, sendUpdates?: "all" | "externalOnly" | "none"): any; | ||
/** | ||
@@ -107,4 +107,15 @@ * Delete an event in the calendar. | ||
getEvent(eventId: string, calendarId?: string): any; | ||
/** | ||
* Get Calendar List | ||
* @returns {any} | ||
*/ | ||
listCalendars(): any; | ||
/** | ||
* Create Calendar | ||
* @param {string} summary, title of the calendar. | ||
* @returns {any} | ||
*/ | ||
createCalendar(summary: string): any; | ||
} | ||
export { ApiCalendar as default }; |
@@ -229,2 +229,18 @@ var __defProp = Object.defineProperty; | ||
} | ||
listCalendars() { | ||
if (gapi) { | ||
return gapi.client.calendar.calendarList.list(); | ||
} else { | ||
console.error("Error: gapi is not loaded use onLoad before please."); | ||
return null; | ||
} | ||
} | ||
createCalendar(summary) { | ||
if (gapi) { | ||
return gapi.client.calendar.calendars.insert({ summary }); | ||
} else { | ||
console.error("Error: gapi is not loaded use onLoad before please."); | ||
return null; | ||
} | ||
} | ||
}; | ||
@@ -231,0 +247,0 @@ var ApiCalendar_default = ApiCalendar; |
{ | ||
"name": "react-google-calendar-api", | ||
"version": "2.0.3", | ||
"version": "2.1.0", | ||
"description": "An api to manage your google calendar", | ||
@@ -28,3 +28,3 @@ "main": "./dist/ApiCalendar.js", | ||
"type": "git", | ||
"url": "git+ssh://git@github.com/Insomniiak/react-google-calendar-api.git" | ||
"url": "git+ssh://git@github.com/Kubessandra/react-google-calendar-api.git" | ||
}, | ||
@@ -40,5 +40,5 @@ "keywords": [ | ||
"bugs": { | ||
"url": "https://github.com/Insomniiak/react-google-calendar-api/issues" | ||
"url": "https://github.com/Kubessandra/react-google-calendar-api/issues" | ||
}, | ||
"homepage": "https://github.com/Insomniiak/react-google-calendar-api#readme", | ||
"homepage": "https://github.com/Kubessandra/react-google-calendar-api#readme", | ||
"devDependencies": { | ||
@@ -45,0 +45,0 @@ "@types/gapi": "^0.0.42", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
21864
364