@ionic-native/calendar
Advanced tools
Comparing version 3.0.0 to 3.1.0-alpha.1
@@ -52,3 +52,3 @@ /** | ||
* ``` | ||
* import {Calendar} from 'ionic-native'; | ||
* import {Calendar} from '@ionic-native/calendar'; | ||
* | ||
@@ -77,3 +77,3 @@ * | ||
*/ | ||
static hasReadWritePermission(): Promise<boolean>; | ||
hasReadWritePermission(): Promise<boolean>; | ||
/** | ||
@@ -83,3 +83,3 @@ * Check if we have read permission | ||
*/ | ||
static hasReadPermission(): Promise<boolean>; | ||
hasReadPermission(): Promise<boolean>; | ||
/** | ||
@@ -89,3 +89,3 @@ * Check if we have write permission | ||
*/ | ||
static hasWritePermission(): Promise<boolean>; | ||
hasWritePermission(): Promise<boolean>; | ||
/** | ||
@@ -95,3 +95,3 @@ * Request write permission | ||
*/ | ||
static requestWritePermission(): Promise<any>; | ||
requestWritePermission(): Promise<any>; | ||
/** | ||
@@ -101,3 +101,3 @@ * Request read permission | ||
*/ | ||
static requestReadPermission(): Promise<any>; | ||
requestReadPermission(): Promise<any>; | ||
/** | ||
@@ -107,3 +107,3 @@ * Requests read/write permissions | ||
*/ | ||
static requestReadWritePermission(): Promise<any>; | ||
requestReadWritePermission(): Promise<any>; | ||
/** | ||
@@ -115,3 +115,3 @@ * Create a calendar. (iOS only) | ||
*/ | ||
static createCalendar(nameOrOptions: string | any): Promise<any>; | ||
createCalendar(nameOrOptions: string | any): Promise<any>; | ||
/** | ||
@@ -122,3 +122,3 @@ * Delete a calendar. (iOS only) | ||
*/ | ||
static deleteCalendar(name: string): Promise<any>; | ||
deleteCalendar(name: string): Promise<any>; | ||
/** | ||
@@ -129,3 +129,3 @@ * Returns the default calendar options. | ||
*/ | ||
static getCalendarOptions(): CalendarOptions; | ||
getCalendarOptions(): CalendarOptions; | ||
/** | ||
@@ -140,3 +140,3 @@ * Silently create an event. | ||
*/ | ||
static createEvent(title?: string, location?: string, notes?: string, startDate?: Date, endDate?: Date): Promise<any>; | ||
createEvent(title?: string, location?: string, notes?: string, startDate?: Date, endDate?: Date): Promise<any>; | ||
/** | ||
@@ -153,3 +153,3 @@ * Silently create an event with additional options. | ||
*/ | ||
static createEventWithOptions(title?: string, location?: string, notes?: string, startDate?: Date, endDate?: Date, options?: CalendarOptions): Promise<any>; | ||
createEventWithOptions(title?: string, location?: string, notes?: string, startDate?: Date, endDate?: Date, options?: CalendarOptions): Promise<any>; | ||
/** | ||
@@ -165,3 +165,3 @@ * Interactively create an event. | ||
*/ | ||
static createEventInteractively(title?: string, location?: string, notes?: string, startDate?: Date, endDate?: Date): Promise<any>; | ||
createEventInteractively(title?: string, location?: string, notes?: string, startDate?: Date, endDate?: Date): Promise<any>; | ||
/** | ||
@@ -178,3 +178,3 @@ * Interactively create an event with additional options. | ||
*/ | ||
static createEventInteractivelyWithOptions(title?: string, location?: string, notes?: string, startDate?: Date, endDate?: Date, options?: CalendarOptions): Promise<any>; | ||
createEventInteractivelyWithOptions(title?: string, location?: string, notes?: string, startDate?: Date, endDate?: Date, options?: CalendarOptions): Promise<any>; | ||
/** | ||
@@ -190,3 +190,3 @@ * Find an event. | ||
*/ | ||
static findEvent(title?: string, location?: string, notes?: string, startDate?: Date, endDate?: Date): Promise<any>; | ||
findEvent(title?: string, location?: string, notes?: string, startDate?: Date, endDate?: Date): Promise<any>; | ||
/** | ||
@@ -202,3 +202,3 @@ * Find an event with additional options. | ||
*/ | ||
static findEventWithOptions(title?: string, location?: string, notes?: string, startDate?: Date, endDate?: Date, options?: CalendarOptions): Promise<any>; | ||
findEventWithOptions(title?: string, location?: string, notes?: string, startDate?: Date, endDate?: Date, options?: CalendarOptions): Promise<any>; | ||
/** | ||
@@ -211,3 +211,3 @@ * Find a list of events within the specified date range. (Android only) | ||
*/ | ||
static listEventsInRange(startDate: Date, endDate: Date): Promise<any>; | ||
listEventsInRange(startDate: Date, endDate: Date): Promise<any>; | ||
/** | ||
@@ -217,3 +217,3 @@ * Get a list of all calendars. | ||
*/ | ||
static listCalendars(): Promise<any>; | ||
listCalendars(): Promise<any>; | ||
/** | ||
@@ -223,3 +223,3 @@ * Get a list of all future events in the specified calendar. (iOS only) | ||
*/ | ||
static findAllEventsInNamedCalendar(calendarName: string): Promise<any>; | ||
findAllEventsInNamedCalendar(calendarName: string): Promise<any>; | ||
/** | ||
@@ -240,3 +240,3 @@ * Modify an event. (iOS only) | ||
*/ | ||
static modifyEvent(title?: string, location?: string, notes?: string, startDate?: Date, endDate?: Date, newTitle?: string, newLocation?: string, newNotes?: string, newStartDate?: Date, newEndDate?: Date): Promise<any>; | ||
modifyEvent(title?: string, location?: string, notes?: string, startDate?: Date, endDate?: Date, newTitle?: string, newLocation?: string, newNotes?: string, newStartDate?: Date, newEndDate?: Date): Promise<any>; | ||
/** | ||
@@ -259,3 +259,3 @@ * Modify an event with additional options. (iOS only) | ||
*/ | ||
static modifyEventWithOptions(title?: string, location?: string, notes?: string, startDate?: Date, endDate?: Date, newTitle?: string, newLocation?: string, newNotes?: string, newStartDate?: Date, newEndDate?: Date, filterOptions?: CalendarOptions, newOptions?: CalendarOptions): Promise<any>; | ||
modifyEventWithOptions(title?: string, location?: string, notes?: string, startDate?: Date, endDate?: Date, newTitle?: string, newLocation?: string, newNotes?: string, newStartDate?: Date, newEndDate?: Date, filterOptions?: CalendarOptions, newOptions?: CalendarOptions): Promise<any>; | ||
/** | ||
@@ -271,3 +271,3 @@ * Delete an event. | ||
*/ | ||
static deleteEvent(title?: string, location?: string, notes?: string, startDate?: Date, endDate?: Date): Promise<any>; | ||
deleteEvent(title?: string, location?: string, notes?: string, startDate?: Date, endDate?: Date): Promise<any>; | ||
/** | ||
@@ -284,3 +284,3 @@ * Delete an event from the specified Calendar. (iOS only) | ||
*/ | ||
static deleteEventFromNamedCalendar(title?: string, location?: string, notes?: string, startDate?: Date, endDate?: Date, calendarName?: string): Promise<any>; | ||
deleteEventFromNamedCalendar(title?: string, location?: string, notes?: string, startDate?: Date, endDate?: Date, calendarName?: string): Promise<any>; | ||
/** | ||
@@ -291,3 +291,3 @@ * Open the calendar at the specified date. | ||
*/ | ||
static openCalendar(date: Date): Promise<any>; | ||
openCalendar(date: Date): Promise<any>; | ||
} |
103
index.js
@@ -7,2 +7,3 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { | ||
}; | ||
import { Injectable } from '@angular/core'; | ||
import { Cordova, Plugin } from '@ionic-native/core'; | ||
@@ -19,3 +20,3 @@ /** | ||
* ``` | ||
* import {Calendar} from 'ionic-native'; | ||
* import {Calendar} from '@ionic-native/calendar'; | ||
* | ||
@@ -46,3 +47,3 @@ * | ||
*/ | ||
Calendar.hasReadWritePermission = function () { return; }; | ||
Calendar.prototype.hasReadWritePermission = function () { return; }; | ||
/** | ||
@@ -52,3 +53,3 @@ * Check if we have read permission | ||
*/ | ||
Calendar.hasReadPermission = function () { return; }; | ||
Calendar.prototype.hasReadPermission = function () { return; }; | ||
/** | ||
@@ -58,3 +59,3 @@ * Check if we have write permission | ||
*/ | ||
Calendar.hasWritePermission = function () { return; }; | ||
Calendar.prototype.hasWritePermission = function () { return; }; | ||
/** | ||
@@ -64,3 +65,3 @@ * Request write permission | ||
*/ | ||
Calendar.requestWritePermission = function () { return; }; | ||
Calendar.prototype.requestWritePermission = function () { return; }; | ||
/** | ||
@@ -70,3 +71,3 @@ * Request read permission | ||
*/ | ||
Calendar.requestReadPermission = function () { return; }; | ||
Calendar.prototype.requestReadPermission = function () { return; }; | ||
/** | ||
@@ -76,3 +77,3 @@ * Requests read/write permissions | ||
*/ | ||
Calendar.requestReadWritePermission = function () { return; }; | ||
Calendar.prototype.requestReadWritePermission = function () { return; }; | ||
/** | ||
@@ -84,3 +85,3 @@ * Create a calendar. (iOS only) | ||
*/ | ||
Calendar.createCalendar = function (nameOrOptions) { return; }; | ||
Calendar.prototype.createCalendar = function (nameOrOptions) { return; }; | ||
/** | ||
@@ -91,3 +92,3 @@ * Delete a calendar. (iOS only) | ||
*/ | ||
Calendar.deleteCalendar = function (name) { return; }; | ||
Calendar.prototype.deleteCalendar = function (name) { return; }; | ||
/** | ||
@@ -98,3 +99,3 @@ * Returns the default calendar options. | ||
*/ | ||
Calendar.getCalendarOptions = function () { return; }; | ||
Calendar.prototype.getCalendarOptions = function () { return; }; | ||
/** | ||
@@ -109,3 +110,3 @@ * Silently create an event. | ||
*/ | ||
Calendar.createEvent = function (title, location, notes, startDate, endDate) { return; }; | ||
Calendar.prototype.createEvent = function (title, location, notes, startDate, endDate) { return; }; | ||
/** | ||
@@ -122,3 +123,3 @@ * Silently create an event with additional options. | ||
*/ | ||
Calendar.createEventWithOptions = function (title, location, notes, startDate, endDate, options) { return; }; | ||
Calendar.prototype.createEventWithOptions = function (title, location, notes, startDate, endDate, options) { return; }; | ||
/** | ||
@@ -134,3 +135,3 @@ * Interactively create an event. | ||
*/ | ||
Calendar.createEventInteractively = function (title, location, notes, startDate, endDate) { return; }; | ||
Calendar.prototype.createEventInteractively = function (title, location, notes, startDate, endDate) { return; }; | ||
/** | ||
@@ -147,6 +148,6 @@ * Interactively create an event with additional options. | ||
*/ | ||
Calendar.createEventInteractivelyWithOptions = function (title, location, notes, startDate, endDate, options) { return; }; | ||
Calendar.prototype.createEventInteractivelyWithOptions = function (title, location, notes, startDate, endDate, options) { return; }; | ||
// deprecated | ||
// @Cordova() | ||
// static createEventInNamedCalendar( | ||
// createEventInNamedCalendar( | ||
// title?: string, | ||
@@ -169,3 +170,3 @@ // location?: string, | ||
*/ | ||
Calendar.findEvent = function (title, location, notes, startDate, endDate) { return; }; | ||
Calendar.prototype.findEvent = function (title, location, notes, startDate, endDate) { return; }; | ||
/** | ||
@@ -181,3 +182,3 @@ * Find an event with additional options. | ||
*/ | ||
Calendar.findEventWithOptions = function (title, location, notes, startDate, endDate, options) { return; }; | ||
Calendar.prototype.findEventWithOptions = function (title, location, notes, startDate, endDate, options) { return; }; | ||
/** | ||
@@ -190,3 +191,3 @@ * Find a list of events within the specified date range. (Android only) | ||
*/ | ||
Calendar.listEventsInRange = function (startDate, endDate) { return; }; | ||
Calendar.prototype.listEventsInRange = function (startDate, endDate) { return; }; | ||
/** | ||
@@ -196,3 +197,3 @@ * Get a list of all calendars. | ||
*/ | ||
Calendar.listCalendars = function () { return; }; | ||
Calendar.prototype.listCalendars = function () { return; }; | ||
/** | ||
@@ -202,3 +203,3 @@ * Get a list of all future events in the specified calendar. (iOS only) | ||
*/ | ||
Calendar.findAllEventsInNamedCalendar = function (calendarName) { return; }; | ||
Calendar.prototype.findAllEventsInNamedCalendar = function (calendarName) { return; }; | ||
/** | ||
@@ -219,3 +220,3 @@ * Modify an event. (iOS only) | ||
*/ | ||
Calendar.modifyEvent = function (title, location, notes, startDate, endDate, newTitle, newLocation, newNotes, newStartDate, newEndDate) { return; }; | ||
Calendar.prototype.modifyEvent = function (title, location, notes, startDate, endDate, newTitle, newLocation, newNotes, newStartDate, newEndDate) { return; }; | ||
/** | ||
@@ -238,3 +239,3 @@ * Modify an event with additional options. (iOS only) | ||
*/ | ||
Calendar.modifyEventWithOptions = function (title, location, notes, startDate, endDate, newTitle, newLocation, newNotes, newStartDate, newEndDate, filterOptions, newOptions) { return; }; | ||
Calendar.prototype.modifyEventWithOptions = function (title, location, notes, startDate, endDate, newTitle, newLocation, newNotes, newStartDate, newEndDate, filterOptions, newOptions) { return; }; | ||
/** | ||
@@ -250,3 +251,3 @@ * Delete an event. | ||
*/ | ||
Calendar.deleteEvent = function (title, location, notes, startDate, endDate) { return; }; | ||
Calendar.prototype.deleteEvent = function (title, location, notes, startDate, endDate) { return; }; | ||
/** | ||
@@ -263,3 +264,3 @@ * Delete an event from the specified Calendar. (iOS only) | ||
*/ | ||
Calendar.deleteEventFromNamedCalendar = function (title, location, notes, startDate, endDate, calendarName) { return; }; | ||
Calendar.prototype.deleteEventFromNamedCalendar = function (title, location, notes, startDate, endDate, calendarName) { return; }; | ||
/** | ||
@@ -270,27 +271,32 @@ * Open the calendar at the specified date. | ||
*/ | ||
Calendar.openCalendar = function (date) { return; }; | ||
Calendar.prototype.openCalendar = function (date) { return; }; | ||
Calendar.decorators = [ | ||
{ type: Injectable }, | ||
]; | ||
/** @nocollapse */ | ||
Calendar.ctorParameters = function () { return []; }; | ||
__decorate([ | ||
Cordova() | ||
], Calendar, "hasReadWritePermission", null); | ||
], Calendar.prototype, "hasReadWritePermission", null); | ||
__decorate([ | ||
Cordova() | ||
], Calendar, "hasReadPermission", null); | ||
], Calendar.prototype, "hasReadPermission", null); | ||
__decorate([ | ||
Cordova() | ||
], Calendar, "hasWritePermission", null); | ||
], Calendar.prototype, "hasWritePermission", null); | ||
__decorate([ | ||
Cordova() | ||
], Calendar, "requestWritePermission", null); | ||
], Calendar.prototype, "requestWritePermission", null); | ||
__decorate([ | ||
Cordova() | ||
], Calendar, "requestReadPermission", null); | ||
], Calendar.prototype, "requestReadPermission", null); | ||
__decorate([ | ||
Cordova() | ||
], Calendar, "requestReadWritePermission", null); | ||
], Calendar.prototype, "requestReadWritePermission", null); | ||
__decorate([ | ||
Cordova() | ||
], Calendar, "createCalendar", null); | ||
], Calendar.prototype, "createCalendar", null); | ||
__decorate([ | ||
Cordova() | ||
], Calendar, "deleteCalendar", null); | ||
], Calendar.prototype, "deleteCalendar", null); | ||
__decorate([ | ||
@@ -300,21 +306,21 @@ Cordova({ | ||
}) | ||
], Calendar, "getCalendarOptions", null); | ||
], Calendar.prototype, "getCalendarOptions", null); | ||
__decorate([ | ||
Cordova() | ||
], Calendar, "createEvent", null); | ||
], Calendar.prototype, "createEvent", null); | ||
__decorate([ | ||
Cordova() | ||
], Calendar, "createEventWithOptions", null); | ||
], Calendar.prototype, "createEventWithOptions", null); | ||
__decorate([ | ||
Cordova() | ||
], Calendar, "createEventInteractively", null); | ||
], Calendar.prototype, "createEventInteractively", null); | ||
__decorate([ | ||
Cordova() | ||
], Calendar, "createEventInteractivelyWithOptions", null); | ||
], Calendar.prototype, "createEventInteractivelyWithOptions", null); | ||
__decorate([ | ||
Cordova() | ||
], Calendar, "findEvent", null); | ||
], Calendar.prototype, "findEvent", null); | ||
__decorate([ | ||
Cordova() | ||
], Calendar, "findEventWithOptions", null); | ||
], Calendar.prototype, "findEventWithOptions", null); | ||
__decorate([ | ||
@@ -324,6 +330,6 @@ Cordova({ | ||
}) | ||
], Calendar, "listEventsInRange", null); | ||
], Calendar.prototype, "listEventsInRange", null); | ||
__decorate([ | ||
Cordova() | ||
], Calendar, "listCalendars", null); | ||
], Calendar.prototype, "listCalendars", null); | ||
__decorate([ | ||
@@ -333,3 +339,3 @@ Cordova({ | ||
}) | ||
], Calendar, "findAllEventsInNamedCalendar", null); | ||
], Calendar.prototype, "findAllEventsInNamedCalendar", null); | ||
__decorate([ | ||
@@ -339,3 +345,3 @@ Cordova({ | ||
}) | ||
], Calendar, "modifyEvent", null); | ||
], Calendar.prototype, "modifyEvent", null); | ||
__decorate([ | ||
@@ -345,6 +351,6 @@ Cordova({ | ||
}) | ||
], Calendar, "modifyEventWithOptions", null); | ||
], Calendar.prototype, "modifyEventWithOptions", null); | ||
__decorate([ | ||
Cordova() | ||
], Calendar, "deleteEvent", null); | ||
], Calendar.prototype, "deleteEvent", null); | ||
__decorate([ | ||
@@ -354,6 +360,6 @@ Cordova({ | ||
}) | ||
], Calendar, "deleteEventFromNamedCalendar", null); | ||
], Calendar.prototype, "deleteEventFromNamedCalendar", null); | ||
__decorate([ | ||
Cordova() | ||
], Calendar, "openCalendar", null); | ||
], Calendar.prototype, "openCalendar", null); | ||
Calendar = __decorate([ | ||
@@ -370,2 +376,1 @@ Plugin({ | ||
}()); | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@ionic-native/calendar", | ||
"version": "3.0.0", | ||
"version": "3.1.0-alpha.1", | ||
"description": "Ionic Native - Native plugins for ionic apps", | ||
@@ -9,6 +9,6 @@ "module": "index.js", | ||
"license": "MIT", | ||
"dependencies": { | ||
"@ionic-native/core": "3.0.0" | ||
}, | ||
"peerDependencies": { | ||
"@angular/core": "2.2.1", | ||
"@ionic-native/core": "3.1.0-alpha.1", | ||
"@ionic-native/utils": "3.1.0-alpha.1", | ||
"rxjs": "5.0.0-beta.12" | ||
@@ -19,3 +19,6 @@ }, | ||
"url": "https://github.com/driftyco/ionic-native.git" | ||
}, | ||
"scripts": { | ||
"postinstall": "node -e \"require('@ionic-native/utils').install(require('./plugin-config.json'))\"" | ||
} | ||
} |
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
Install scripts
Supply chain riskInstall scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
5
618
35170
4
2
1
1
+ Added@angular/core@2.2.1(transitive)
+ Added@ionic-native/core@3.1.0-alpha.1(transitive)
+ Addedzone.js@0.6.26(transitive)
- Removed@ionic-native/core@3.0.0
- Removed@ionic-native/core@3.0.0(transitive)