@ebarooni/capacitor-calendar
Advanced tools
Comparing version 6.6.1 to 6.7.0
@@ -714,2 +714,43 @@ import { CalendarChooserDisplayStyle } from "./schemas/enums/calendar-chooser-display-style"; | ||
}>; | ||
/** | ||
* Modifies a reminder given its id and update details. | ||
* | ||
* @async | ||
* @since 6.7.0 | ||
* @platform iOS | ||
* @permissions | ||
* <h3>Runtime Permissions:</h3> | ||
* <ul> | ||
* <li><strong>iOS:</strong> writeReminders, readReminders</li> | ||
* </ul> | ||
* @param {Object} options The options for updating a reminder. | ||
* @param {string} options.id The id of the reminder to be modified. | ||
* @param {Object} options.update The set of reminder properties to be modified. | ||
* @returns {Promise<void>} A promise that resolves when the update operation is complete. | ||
* @throws {Error} throws an error if an event for the given id is not found. | ||
* @example | ||
* const { result } = await CapacitorCalendar.reminder({ | ||
* id: 'REMINDER_ID_ONE', | ||
* update: { | ||
* title: 'newTitle', | ||
* isCompleted: true | ||
* }, | ||
* }); | ||
*/ | ||
modifyReminder(options: { | ||
id: string; | ||
update: { | ||
title?: string; | ||
listId?: string; | ||
priority?: number; | ||
isCompleted?: boolean; | ||
startDate?: number; | ||
dueDate?: number; | ||
completionDate?: number; | ||
notes?: string; | ||
url?: string; | ||
location?: string; | ||
recurrence?: ReminderRecurrenceRule; | ||
}; | ||
}): Promise<void>; | ||
} |
@@ -171,2 +171,18 @@ import { PermissionState, WebPlugin } from "@capacitor/core"; | ||
}>; | ||
modifyReminder(_options: { | ||
id: string; | ||
update: { | ||
title?: string; | ||
listId?: string; | ||
priority?: number; | ||
isCompleted?: boolean; | ||
startDate?: number; | ||
dueDate?: number; | ||
completionDate?: number; | ||
notes?: string; | ||
url?: string; | ||
location?: string; | ||
recurrence?: ReminderRecurrenceRule; | ||
}; | ||
}): Promise<void>; | ||
} |
@@ -87,3 +87,6 @@ import { WebPlugin } from "@capacitor/core"; | ||
} | ||
modifyReminder(_options) { | ||
throw this.unimplemented(`${this.modifyReminder.name} is not implemented on the web`); | ||
} | ||
} | ||
//# sourceMappingURL=web.js.map |
@@ -304,2 +304,5 @@ 'use strict'; | ||
} | ||
modifyReminder(_options) { | ||
throw this.unimplemented(`${this.modifyReminder.name} is not implemented on the web`); | ||
} | ||
} | ||
@@ -306,0 +309,0 @@ |
@@ -303,2 +303,5 @@ var capacitorCapacitorCalendar = (function (exports, core) { | ||
} | ||
modifyReminder(_options) { | ||
throw this.unimplemented(`${this.modifyReminder.name} is not implemented on the web`); | ||
} | ||
} | ||
@@ -305,0 +308,0 @@ |
{ | ||
"name": "@ebarooni/capacitor-calendar", | ||
"version": "6.6.1", | ||
"version": "6.7.0", | ||
"description": "The Capacitor Calendar Plugin enables full calendar functionality on iOS and Android, with added reminder support for iOS devices.", | ||
@@ -5,0 +5,0 @@ "main": "dist/plugin.cjs.js", |
@@ -148,2 +148,3 @@ <p align="center"> | ||
* [`fetchAllRemindersSources()`](#fetchallreminderssources) | ||
* [`modifyReminder(...)`](#modifyreminder) | ||
* [Interfaces](#interfaces) | ||
@@ -150,0 +151,0 @@ * [Type Aliases](#type-aliases) |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
1200907
4428
174