@ebarooni/capacitor-calendar 7.0.0 → 7.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +863 -315
- package/android/src/main/java/dev/barooni/capacitor/calendar/CapacitorCalendarPlugin.kt +283 -316
- package/android/src/main/java/dev/barooni/capacitor/calendar/PluginError.kt +49 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/implementation/CapacitorCalendar.kt +363 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/data/CalendarEvent.kt +25 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/data/CalendarInfo.kt +14 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/data/EventGuest.kt +9 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/enums/CalendarPermissionScope.kt +15 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/CheckPermissionInput.kt +20 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/CreateCalendarInput.kt +18 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/CreateEventInput.kt +27 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/CreateEventWithPromptInput.kt +36 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/DeleteCalendarInput.kt +10 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/DeleteEventInput.kt +10 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/DeleteEventWithPromptInput.kt +14 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/DeleteEventsByIdInput.kt +11 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/ListEventsInRangeInput.kt +14 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/ModifyCalendarInput.kt +13 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/ModifyEvent.kt +25 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/ModifyEventWithPromptInput.kt +37 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/OpenCalendarInput.kt +10 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/RequestAllPermissionsInput.kt +9 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/RequestPermissionInput.kt +40 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/CheckAllPermissionsResult.kt +17 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/CheckPermissionResult.kt +15 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/CreateCalendarResult.kt +21 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/CreateEventResult.kt +21 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/CreateEventWithPromptResult.kt +12 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/DeleteEventWithPromptResult.kt +14 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/DeleteEventsByIdResult.kt +27 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/GetDefaultCalendarResult.kt +34 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/ListCalendarsResult.kt +39 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/ListEventsInRangeResult.kt +58 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/ModifyEventWithPromptResult.kt +12 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/RequestAllPermissionsResult.kt +30 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/RequestPermissionResult.kt +42 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/templates/JSResult.kt +7 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/utils/ImplementationHelper.kt +387 -0
- package/dist/docs.json +3966 -1107
- package/dist/esm/definitions.d.ts +6 -759
- package/dist/esm/definitions.js.map +1 -1
- package/dist/esm/index.d.ts +42 -12
- package/dist/esm/index.js +11 -6
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/schemas/enums/attendee-role.d.ts +50 -0
- package/dist/esm/schemas/enums/attendee-role.js +52 -0
- package/dist/esm/schemas/enums/attendee-role.js.map +1 -0
- package/dist/esm/schemas/enums/attendee-status.d.ts +55 -0
- package/dist/esm/schemas/enums/attendee-status.js +57 -0
- package/dist/esm/schemas/enums/attendee-status.js.map +1 -0
- package/dist/esm/schemas/enums/attendee-type.d.ts +45 -0
- package/dist/esm/schemas/enums/attendee-type.js +47 -0
- package/dist/esm/schemas/enums/attendee-type.js.map +1 -0
- package/dist/esm/schemas/enums/calendar-chooser-display-style.d.ts +3 -6
- package/dist/esm/schemas/enums/calendar-chooser-display-style.js +3 -6
- package/dist/esm/schemas/enums/calendar-chooser-display-style.js.map +1 -1
- package/dist/esm/schemas/enums/calendar-permission-scope.d.ts +60 -0
- package/dist/esm/schemas/enums/calendar-permission-scope.js +62 -0
- package/dist/esm/schemas/enums/calendar-permission-scope.js.map +1 -0
- package/dist/esm/schemas/enums/calendar-source-type.d.ts +7 -16
- package/dist/esm/schemas/enums/calendar-source-type.js +7 -16
- package/dist/esm/schemas/enums/calendar-source-type.js.map +1 -1
- package/dist/esm/schemas/enums/calendar-type.d.ts +6 -9
- package/dist/esm/schemas/enums/calendar-type.js +6 -9
- package/dist/esm/schemas/enums/calendar-type.js.map +1 -1
- package/dist/esm/schemas/enums/event-availability.d.ts +30 -0
- package/dist/esm/schemas/enums/event-availability.js +32 -0
- package/dist/esm/schemas/enums/event-availability.js.map +1 -0
- package/dist/esm/schemas/enums/event-span.d.ts +3 -6
- package/dist/esm/schemas/enums/event-span.js +3 -6
- package/dist/esm/schemas/enums/event-span.js.map +1 -1
- package/dist/esm/schemas/enums/event-status.d.ts +26 -0
- package/dist/esm/schemas/enums/event-status.js +28 -0
- package/dist/esm/schemas/enums/event-status.js.map +1 -0
- package/dist/esm/schemas/enums/recurrence-frequency.d.ts +21 -0
- package/dist/esm/schemas/enums/recurrence-frequency.js +23 -0
- package/dist/esm/schemas/enums/recurrence-frequency.js.map +1 -0
- package/dist/esm/schemas/enums/reminder-recurrence-frequency.d.ts +5 -8
- package/dist/esm/schemas/enums/reminder-recurrence-frequency.js +5 -8
- package/dist/esm/schemas/enums/reminder-recurrence-frequency.js.map +1 -1
- package/dist/esm/schemas/interfaces/calendar-event.d.ts +116 -48
- package/dist/esm/schemas/interfaces/calendar-event.js.map +1 -1
- package/dist/esm/schemas/interfaces/calendar-source.d.ts +10 -7
- package/dist/esm/schemas/interfaces/calendar-source.js.map +1 -1
- package/dist/esm/schemas/interfaces/calendar.d.ts +59 -25
- package/dist/esm/schemas/interfaces/calendar.js.map +1 -1
- package/dist/esm/schemas/interfaces/create-calendar-options.d.ts +38 -0
- package/dist/esm/schemas/interfaces/create-calendar-options.js +2 -0
- package/dist/esm/schemas/interfaces/create-calendar-options.js.map +1 -0
- package/dist/esm/schemas/interfaces/create-event-options.d.ts +96 -0
- package/dist/esm/schemas/interfaces/create-event-options.js +2 -0
- package/dist/esm/schemas/interfaces/create-event-options.js.map +1 -0
- package/dist/esm/schemas/interfaces/create-event-with-prompt-options.d.ts +70 -0
- package/dist/esm/schemas/interfaces/create-event-with-prompt-options.js +2 -0
- package/dist/esm/schemas/interfaces/create-event-with-prompt-options.js.map +1 -0
- package/dist/esm/schemas/interfaces/create-reminder-options.d.ts +54 -0
- package/dist/esm/schemas/interfaces/create-reminder-options.js +2 -0
- package/dist/esm/schemas/interfaces/create-reminder-options.js.map +1 -0
- package/dist/esm/schemas/interfaces/delete-calendar-options.d.ts +9 -0
- package/dist/esm/schemas/interfaces/delete-calendar-options.js +2 -0
- package/dist/esm/schemas/interfaces/delete-calendar-options.js.map +1 -0
- package/dist/esm/schemas/interfaces/delete-event-options.d.ts +18 -0
- package/dist/esm/schemas/interfaces/delete-event-options.js +2 -0
- package/dist/esm/schemas/interfaces/delete-event-options.js.map +1 -0
- package/dist/esm/schemas/interfaces/delete-event-with-prompt-options.d.ts +48 -0
- package/dist/esm/schemas/interfaces/delete-event-with-prompt-options.js +2 -0
- package/dist/esm/schemas/interfaces/delete-event-with-prompt-options.js.map +1 -0
- package/dist/esm/schemas/interfaces/delete-events-by-id-options.d.ts +18 -0
- package/dist/esm/schemas/interfaces/delete-events-by-id-options.js +2 -0
- package/dist/esm/schemas/interfaces/delete-events-by-id-options.js.map +1 -0
- package/dist/esm/schemas/interfaces/delete-reminder-options.d.ts +9 -0
- package/dist/esm/schemas/interfaces/delete-reminder-options.js +2 -0
- package/dist/esm/schemas/interfaces/delete-reminder-options.js.map +1 -0
- package/dist/esm/schemas/interfaces/delete-reminder-with-prompt-options.d.ts +35 -0
- package/dist/esm/schemas/interfaces/delete-reminder-with-prompt-options.js +2 -0
- package/dist/esm/schemas/interfaces/delete-reminder-with-prompt-options.js.map +1 -0
- package/dist/esm/schemas/interfaces/delete-reminders-by-id-options.d.ts +9 -0
- package/dist/esm/schemas/interfaces/delete-reminders-by-id-options.js +2 -0
- package/dist/esm/schemas/interfaces/delete-reminders-by-id-options.js.map +1 -0
- package/dist/esm/schemas/interfaces/event-guest.d.ts +13 -0
- package/dist/esm/schemas/interfaces/event-guest.js +2 -0
- package/dist/esm/schemas/interfaces/event-guest.js.map +1 -0
- package/dist/esm/schemas/interfaces/get-reminder-by-id-options.d.ts +6 -0
- package/dist/esm/schemas/interfaces/get-reminder-by-id-options.js +2 -0
- package/dist/esm/schemas/interfaces/get-reminder-by-id-options.js.map +1 -0
- package/dist/esm/schemas/interfaces/get-reminders-from-lists-options.d.ts +9 -0
- package/dist/esm/schemas/interfaces/get-reminders-from-lists-options.js +2 -0
- package/dist/esm/schemas/interfaces/get-reminders-from-lists-options.js.map +1 -0
- package/dist/esm/schemas/interfaces/list-events-in-range-options.d.ts +17 -0
- package/dist/esm/schemas/interfaces/list-events-in-range-options.js +2 -0
- package/dist/esm/schemas/interfaces/list-events-in-range-options.js.map +1 -0
- package/dist/esm/schemas/interfaces/modify-calendar-options.d.ts +21 -0
- package/dist/esm/schemas/interfaces/modify-calendar-options.js +2 -0
- package/dist/esm/schemas/interfaces/modify-calendar-options.js.map +1 -0
- package/dist/esm/schemas/interfaces/modify-event-options.d.ts +103 -0
- package/dist/esm/schemas/interfaces/modify-event-options.js +2 -0
- package/dist/esm/schemas/interfaces/modify-event-options.js.map +1 -0
- package/dist/esm/schemas/interfaces/modify-event-with-prompt-options.d.ts +13 -0
- package/dist/esm/schemas/interfaces/modify-event-with-prompt-options.js +2 -0
- package/dist/esm/schemas/interfaces/modify-event-with-prompt-options.js.map +1 -0
- package/dist/esm/schemas/interfaces/modify-reminder-options.d.ts +58 -0
- package/dist/esm/schemas/interfaces/modify-reminder-options.js +2 -0
- package/dist/esm/schemas/interfaces/modify-reminder-options.js.map +1 -0
- package/dist/esm/schemas/interfaces/open-calendar-options.d.ts +10 -0
- package/dist/esm/schemas/interfaces/open-calendar-options.js +2 -0
- package/dist/esm/schemas/interfaces/open-calendar-options.js.map +1 -0
- package/dist/esm/schemas/interfaces/recurrence-rule.d.ts +22 -0
- package/dist/esm/schemas/interfaces/recurrence-rule.js +2 -0
- package/dist/esm/schemas/interfaces/recurrence-rule.js.map +1 -0
- package/dist/esm/schemas/interfaces/reminder-recurrence-rule.d.ts +6 -24
- package/dist/esm/schemas/interfaces/reminder-recurrence-rule.js.map +1 -1
- package/dist/esm/schemas/interfaces/reminder.d.ts +29 -38
- package/dist/esm/schemas/interfaces/reminder.js.map +1 -1
- package/dist/esm/schemas/interfaces/reminders-list.d.ts +3 -0
- package/dist/esm/schemas/interfaces/reminders-list.js.map +1 -1
- package/dist/esm/schemas/interfaces/select-calendars-with-prompt-options.d.ts +18 -0
- package/dist/esm/schemas/interfaces/select-calendars-with-prompt-options.js +2 -0
- package/dist/esm/schemas/interfaces/select-calendars-with-prompt-options.js.map +1 -0
- package/dist/esm/schemas/types/event-edit-action.d.ts +4 -0
- package/dist/esm/schemas/types/event-edit-action.js +2 -0
- package/dist/esm/schemas/types/event-edit-action.js.map +1 -0
- package/dist/esm/sub-definitions/calendar-access.d.ts +114 -0
- package/dist/esm/sub-definitions/calendar-access.js +2 -0
- package/dist/esm/sub-definitions/calendar-access.js.map +1 -0
- package/dist/esm/sub-definitions/calendar-operations.d.ts +85 -0
- package/dist/esm/sub-definitions/calendar-operations.js +2 -0
- package/dist/esm/sub-definitions/calendar-operations.js.map +1 -0
- package/dist/esm/sub-definitions/event-operations.d.ts +111 -0
- package/dist/esm/sub-definitions/event-operations.js +2 -0
- package/dist/esm/sub-definitions/event-operations.js.map +1 -0
- package/dist/esm/sub-definitions/reminders-access.d.ts +22 -0
- package/dist/esm/sub-definitions/reminders-access.js +2 -0
- package/dist/esm/sub-definitions/reminders-access.js.map +1 -0
- package/dist/esm/sub-definitions/reminders-operations.d.ts +120 -0
- package/dist/esm/sub-definitions/reminders-operations.js +2 -0
- package/dist/esm/sub-definitions/reminders-operations.js.map +1 -0
- package/dist/esm/web.d.ts +91 -150
- package/dist/esm/web.js +73 -49
- package/dist/esm/web.js.map +1 -1
- package/dist/plugin.cjs.js +398 -172
- package/dist/plugin.cjs.js.map +1 -1
- package/dist/plugin.js +398 -172
- package/dist/plugin.js.map +1 -1
- package/ios/Sources/CapacitorCalendarPlugin/CapacitorCalendarPlugin.swift +225 -528
- package/ios/Sources/CapacitorCalendarPlugin/Implementation/CapacitorCalendar.swift +596 -0
- package/ios/Sources/CapacitorCalendarPlugin/{PermissionState.swift → Models/Enums/CAPPermissionState.swift} +1 -3
- package/ios/Sources/CapacitorCalendarPlugin/Models/Enums/CalendarPermissionScope.swift +6 -0
- package/ios/Sources/CapacitorCalendarPlugin/Models/Enums/EventEditAction.swift +20 -0
- package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/CheckPermissionInput.swift +19 -0
- package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/CreateCalendarInput.swift +32 -0
- package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/CreateEventInput.swift +61 -0
- package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/CreateEventWithPromptInput.swift +89 -0
- package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/CreateReminderInput.swift +116 -0
- package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/DeleteCalendarInput.swift +16 -0
- package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/DeleteEventInput.swift +27 -0
- package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/DeleteEventWithPromptInput.swift +57 -0
- package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/DeleteEventsByIdInput.swift +27 -0
- package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/DeleteReminderInput.swift +16 -0
- package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/DeleteReminderWithPromptInput.swift +46 -0
- package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/DeleteRemindersByIdInput.swift +16 -0
- package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/GetReminderByIdInput.swift +16 -0
- package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/GetRemindersFromListsInput.swift +24 -0
- package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/ListEventsInRangeInput.swift +25 -0
- package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/ModifyCalendarInput.swift +32 -0
- package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/ModifyEventInput.swift +117 -0
- package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/ModifyEventWithPromptInput.swift +83 -0
- package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/ModifyReminderInput.swift +118 -0
- package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/OpenCalendarInput.swift +17 -0
- package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/RequestPermissionInput.swift +19 -0
- package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/SelectCalendarsWithPromptInput.swift +32 -0
- package/ios/Sources/CapacitorCalendarPlugin/Models/Results/CheckAllPermissionsResult.swift +15 -0
- package/ios/Sources/CapacitorCalendarPlugin/Models/Results/CheckPermissionResult.swift +16 -0
- package/ios/Sources/CapacitorCalendarPlugin/Models/Results/CreateCalendarResult.swift +18 -0
- package/ios/Sources/CapacitorCalendarPlugin/Models/Results/CreateEventResult.swift +18 -0
- package/ios/Sources/CapacitorCalendarPlugin/Models/Results/CreateEventWithPromptResult.swift +15 -0
- package/ios/Sources/CapacitorCalendarPlugin/Models/Results/CreateReminderResult.swift +16 -0
- package/ios/Sources/CapacitorCalendarPlugin/Models/Results/DeleteEventWithPromptResult.swift +15 -0
- package/ios/Sources/CapacitorCalendarPlugin/Models/Results/DeleteEventsByIdResult.swift +23 -0
- package/ios/Sources/CapacitorCalendarPlugin/Models/Results/DeleteRemindersByIdResult.swift +23 -0
- package/ios/Sources/CapacitorCalendarPlugin/Models/Results/FetchAllCalendarSourcesResult.swift +16 -0
- package/ios/Sources/CapacitorCalendarPlugin/Models/Results/GetDefaultCalendarResult.swift +16 -0
- package/ios/Sources/CapacitorCalendarPlugin/Models/Results/GetReminderByIdResult.swift +20 -0
- package/ios/Sources/CapacitorCalendarPlugin/Models/Results/GetRemindersFromListsResult.swift +16 -0
- package/ios/Sources/CapacitorCalendarPlugin/Models/Results/ListCalendarsResult.swift +16 -0
- package/ios/Sources/CapacitorCalendarPlugin/Models/Results/ListEventsInRangeResult.swift +16 -0
- package/ios/Sources/CapacitorCalendarPlugin/Models/Results/ModifyEventWithPromptResult.swift +16 -0
- package/ios/Sources/CapacitorCalendarPlugin/Models/Results/RequestAllPermissionsResult.swift +20 -0
- package/ios/Sources/CapacitorCalendarPlugin/Models/Results/RequestPermissionResult.swift +15 -0
- package/ios/Sources/CapacitorCalendarPlugin/Models/Results/SelectCalendarsWithPromptResult.swift +16 -0
- package/ios/Sources/CapacitorCalendarPlugin/Models/Templates/JSResult.swift +5 -0
- package/ios/Sources/CapacitorCalendarPlugin/PluginConfig.swift +44 -0
- package/ios/Sources/CapacitorCalendarPlugin/PluginError.swift +87 -0
- package/ios/Sources/CapacitorCalendarPlugin/Utils/ImplementationHelper.swift +361 -0
- package/ios/Sources/CapacitorCalendarPlugin/Utils/UIColorFromHexExtension.swift +32 -0
- package/package.json +58 -59
- package/android/src/main/java/dev/barooni/capacitor/calendar/CapacitorCalendar.kt +0 -358
- package/dist/esm/schemas/enums/calendar-chooser-selection-style.d.ts +0 -16
- package/dist/esm/schemas/enums/calendar-chooser-selection-style.js +0 -18
- package/dist/esm/schemas/enums/calendar-chooser-selection-style.js.map +0 -1
- package/dist/esm/schemas/enums/plugin-permission.d.ts +0 -58
- package/dist/esm/schemas/enums/plugin-permission.js +0 -60
- package/dist/esm/schemas/enums/plugin-permission.js.map +0 -1
- package/dist/esm/schemas/interfaces/plugin-permissions-map.d.ts +0 -2
- package/dist/esm/schemas/interfaces/plugin-permissions-map.js +0 -2
- package/dist/esm/schemas/interfaces/plugin-permissions-map.js.map +0 -1
- package/ios/Sources/CapacitorCalendarPlugin/CapacitorCalendar.swift +0 -635
- package/ios/Sources/CapacitorCalendarPlugin/CapacitorCalendarPluginError.swift +0 -14
- package/ios/Sources/CapacitorCalendarPlugin/CapacitorReminders.swift +0 -448
- package/ios/Sources/CapacitorCalendarPlugin/EventCreationParameters.swift +0 -14
- package/ios/Sources/CapacitorCalendarPlugin/EventDeleteResults.swift +0 -6
- package/ios/Sources/CapacitorCalendarPlugin/RecurrenceParameters.swift +0 -7
- package/ios/Sources/CapacitorCalendarPlugin/ReminderCreationParameters.swift +0 -15
- package/ios/Sources/CapacitorCalendarPlugin/UIColorExtensions.swift +0 -20
- /package/{LICENSE.txt → LICENSE} +0 -0
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import type { CalendarSource } from "../schemas/interfaces/calendar-source";
|
|
2
|
+
import type { CreateReminderOptions } from "../schemas/interfaces/create-reminder-options";
|
|
3
|
+
import type { DeleteReminderOptions } from "../schemas/interfaces/delete-reminder-options";
|
|
4
|
+
import type { DeleteReminderWithPromptOptions } from "../schemas/interfaces/delete-reminder-with-prompt-options";
|
|
5
|
+
import type { DeleteRemindersByIdOptions } from "../schemas/interfaces/delete-reminders-by-id-options";
|
|
6
|
+
import type { GetReminderByIdOptions } from "../schemas/interfaces/get-reminder-by-id-options";
|
|
7
|
+
import type { GetRemindersFromListsOptions } from "../schemas/interfaces/get-reminders-from-lists-options";
|
|
8
|
+
import type { ModifyReminderOptions } from "../schemas/interfaces/modify-reminder-options";
|
|
9
|
+
import type { Reminder } from "../schemas/interfaces/reminder";
|
|
10
|
+
import type { RemindersList } from "../schemas/interfaces/reminders-list";
|
|
11
|
+
export interface RemindersOperations {
|
|
12
|
+
/**
|
|
13
|
+
* Retrieves a list of calendar sources.
|
|
14
|
+
*
|
|
15
|
+
* @deprecated Duplicates {@link CalendarOperations#fetchAllCalendarSources}
|
|
16
|
+
* @platform iOS
|
|
17
|
+
* @since 6.6.0
|
|
18
|
+
*/
|
|
19
|
+
fetchAllRemindersSources(): Promise<{
|
|
20
|
+
result: CalendarSource[];
|
|
21
|
+
}>;
|
|
22
|
+
/**
|
|
23
|
+
* Opens the reminders app.
|
|
24
|
+
*
|
|
25
|
+
* @platform iOS
|
|
26
|
+
* @since 7.1.0
|
|
27
|
+
*/
|
|
28
|
+
openReminders(): Promise<void>;
|
|
29
|
+
/**
|
|
30
|
+
* Retrieves the default reminders list.
|
|
31
|
+
*
|
|
32
|
+
* @platform iOS
|
|
33
|
+
* @since 7.1.0
|
|
34
|
+
*/
|
|
35
|
+
getDefaultRemindersList(): Promise<{
|
|
36
|
+
result: RemindersList | null;
|
|
37
|
+
}>;
|
|
38
|
+
/**
|
|
39
|
+
* Retrieves all available reminders lists.
|
|
40
|
+
*
|
|
41
|
+
* @platform iOS
|
|
42
|
+
* @since 7.1.0
|
|
43
|
+
*/
|
|
44
|
+
getRemindersLists(): Promise<{
|
|
45
|
+
result: RemindersList[];
|
|
46
|
+
}>;
|
|
47
|
+
/**
|
|
48
|
+
* Creates a reminder.
|
|
49
|
+
*
|
|
50
|
+
* @platform iOS
|
|
51
|
+
* @since 0.5.0
|
|
52
|
+
*/
|
|
53
|
+
createReminder(options: CreateReminderOptions): Promise<{
|
|
54
|
+
id: string;
|
|
55
|
+
}>;
|
|
56
|
+
/**
|
|
57
|
+
* Deletes multiple reminders.
|
|
58
|
+
*
|
|
59
|
+
* @deprecated Use `deleteReminder(...)`.
|
|
60
|
+
* @platform iOS
|
|
61
|
+
* @since 5.3.0
|
|
62
|
+
*/
|
|
63
|
+
deleteRemindersById(options: DeleteRemindersByIdOptions): Promise<{
|
|
64
|
+
result: DeleteRemindersByIdResult;
|
|
65
|
+
}>;
|
|
66
|
+
/**
|
|
67
|
+
* Deletes a reminder.
|
|
68
|
+
*
|
|
69
|
+
* @platform iOS
|
|
70
|
+
* @since 7.1.0
|
|
71
|
+
*/
|
|
72
|
+
deleteReminder(options: DeleteReminderOptions): Promise<void>;
|
|
73
|
+
/**
|
|
74
|
+
* Modifies a reminder.
|
|
75
|
+
*
|
|
76
|
+
* @platform iOS
|
|
77
|
+
* @since 6.7.0
|
|
78
|
+
*/
|
|
79
|
+
modifyReminder(options: ModifyReminderOptions): Promise<void>;
|
|
80
|
+
/**
|
|
81
|
+
* Retrieve a reminder by ID.
|
|
82
|
+
*
|
|
83
|
+
* @platform iOS
|
|
84
|
+
* @since 7.1.0
|
|
85
|
+
*/
|
|
86
|
+
getReminderById(options: GetReminderByIdOptions): Promise<{
|
|
87
|
+
result: Reminder | null;
|
|
88
|
+
}>;
|
|
89
|
+
/**
|
|
90
|
+
* Retrieves reminders from multiple lists.
|
|
91
|
+
*
|
|
92
|
+
* @platform iOS
|
|
93
|
+
* @since 5.3.0
|
|
94
|
+
*/
|
|
95
|
+
getRemindersFromLists(options: GetRemindersFromListsOptions): Promise<{
|
|
96
|
+
result: Reminder[];
|
|
97
|
+
}>;
|
|
98
|
+
/**
|
|
99
|
+
* Opens a dialog to delete a reminder.
|
|
100
|
+
*
|
|
101
|
+
* @platform iOS
|
|
102
|
+
* @since 7.2.0
|
|
103
|
+
*/
|
|
104
|
+
deleteReminderWithPrompt(options: DeleteReminderWithPromptOptions): Promise<{
|
|
105
|
+
deleted: boolean;
|
|
106
|
+
}>;
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* @since 7.1.0
|
|
110
|
+
*/
|
|
111
|
+
export interface DeleteRemindersByIdResult {
|
|
112
|
+
/**
|
|
113
|
+
* @since 7.1.0
|
|
114
|
+
*/
|
|
115
|
+
deleted: string[];
|
|
116
|
+
/**
|
|
117
|
+
* @since 7.1.0
|
|
118
|
+
*/
|
|
119
|
+
failed: string[];
|
|
120
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reminders-operations.js","sourceRoot":"","sources":["../../../src/sub-definitions/reminders-operations.ts"],"names":[],"mappings":"","sourcesContent":["import type { CalendarSource } from \"../schemas/interfaces/calendar-source\";\nimport type { CreateReminderOptions } from \"../schemas/interfaces/create-reminder-options\";\nimport type { DeleteReminderOptions } from \"../schemas/interfaces/delete-reminder-options\";\nimport type { DeleteReminderWithPromptOptions } from \"../schemas/interfaces/delete-reminder-with-prompt-options\";\nimport type { DeleteRemindersByIdOptions } from \"../schemas/interfaces/delete-reminders-by-id-options\";\nimport type { GetReminderByIdOptions } from \"../schemas/interfaces/get-reminder-by-id-options\";\nimport type { GetRemindersFromListsOptions } from \"../schemas/interfaces/get-reminders-from-lists-options\";\nimport type { ModifyReminderOptions } from \"../schemas/interfaces/modify-reminder-options\";\nimport type { Reminder } from \"../schemas/interfaces/reminder\";\nimport type { RemindersList } from \"../schemas/interfaces/reminders-list\";\n\nexport interface RemindersOperations {\n /**\n * Retrieves a list of calendar sources.\n *\n * @deprecated Duplicates {@link CalendarOperations#fetchAllCalendarSources}\n * @platform iOS\n * @since 6.6.0\n */\n fetchAllRemindersSources(): Promise<{ result: CalendarSource[] }>;\n /**\n * Opens the reminders app.\n *\n * @platform iOS\n * @since 7.1.0\n */\n openReminders(): Promise<void>;\n /**\n * Retrieves the default reminders list.\n *\n * @platform iOS\n * @since 7.1.0\n */\n getDefaultRemindersList(): Promise<{ result: RemindersList | null }>;\n /**\n * Retrieves all available reminders lists.\n *\n * @platform iOS\n * @since 7.1.0\n */\n getRemindersLists(): Promise<{ result: RemindersList[] }>;\n /**\n * Creates a reminder.\n *\n * @platform iOS\n * @since 0.5.0\n */\n createReminder(options: CreateReminderOptions): Promise<{ id: string }>;\n /**\n * Deletes multiple reminders.\n *\n * @deprecated Use `deleteReminder(...)`.\n * @platform iOS\n * @since 5.3.0\n */\n deleteRemindersById(\n options: DeleteRemindersByIdOptions,\n ): Promise<{ result: DeleteRemindersByIdResult }>;\n /**\n * Deletes a reminder.\n *\n * @platform iOS\n * @since 7.1.0\n */\n deleteReminder(options: DeleteReminderOptions): Promise<void>;\n /**\n * Modifies a reminder.\n *\n * @platform iOS\n * @since 6.7.0\n */\n modifyReminder(options: ModifyReminderOptions): Promise<void>;\n /**\n * Retrieve a reminder by ID.\n *\n * @platform iOS\n * @since 7.1.0\n */\n getReminderById(\n options: GetReminderByIdOptions,\n ): Promise<{ result: Reminder | null }>;\n /**\n * Retrieves reminders from multiple lists.\n *\n * @platform iOS\n * @since 5.3.0\n */\n getRemindersFromLists(\n options: GetRemindersFromListsOptions,\n ): Promise<{ result: Reminder[] }>;\n /**\n * Opens a dialog to delete a reminder.\n *\n * @platform iOS\n * @since 7.2.0\n */\n deleteReminderWithPrompt(\n options: DeleteReminderWithPromptOptions,\n ): Promise<{ deleted: boolean }>;\n}\n\n/**\n * @since 7.1.0\n */\nexport interface DeleteRemindersByIdResult {\n /**\n * @since 7.1.0\n */\n deleted: string[];\n /**\n * @since 7.1.0\n */\n failed: string[];\n}\n"]}
|
package/dist/esm/web.d.ts
CHANGED
|
@@ -1,188 +1,129 @@
|
|
|
1
|
+
import { CheckAllPermissionsResult, RequestAllPermissionsResult } from "./sub-definitions/calendar-access";
|
|
1
2
|
import { PermissionState, WebPlugin } from "@capacitor/core";
|
|
2
|
-
import { CapacitorCalendarPlugin } from "./definitions";
|
|
3
|
-
import { PluginPermission } from "./schemas/enums/plugin-permission";
|
|
4
|
-
import { ReminderRecurrenceRule } from "./schemas/interfaces/reminder-recurrence-rule";
|
|
5
|
-
import { EventSpan } from "./schemas/enums/event-span";
|
|
6
3
|
import type { Calendar } from "./schemas/interfaces/calendar";
|
|
7
|
-
import type { RemindersList } from "./schemas/interfaces/reminders-list";
|
|
8
|
-
import type { PluginPermissionsMap } from "./schemas/interfaces/plugin-permissions-map";
|
|
9
4
|
import type { CalendarEvent } from "./schemas/interfaces/calendar-event";
|
|
10
|
-
import
|
|
5
|
+
import { CalendarPermissionScope } from "./schemas/enums/calendar-permission-scope";
|
|
11
6
|
import type { CalendarSource } from "./schemas/interfaces/calendar-source";
|
|
7
|
+
import type { CapacitorCalendarPlugin } from "./definitions";
|
|
8
|
+
import type { CreateCalendarOptions } from "./schemas/interfaces/create-calendar-options";
|
|
9
|
+
import type { CreateEventOptions } from "./schemas/interfaces/create-event-options";
|
|
10
|
+
import type { CreateEventWithPromptOptions } from "./schemas/interfaces/create-event-with-prompt-options";
|
|
11
|
+
import type { CreateReminderOptions } from "./schemas/interfaces/create-reminder-options";
|
|
12
|
+
import type { DeleteCalendarOptions } from "./schemas/interfaces/delete-calendar-options";
|
|
13
|
+
import type { DeleteEventOptions } from "./schemas/interfaces/delete-event-options";
|
|
14
|
+
import type { DeleteEventWithPromptOptions } from "./schemas/interfaces/delete-event-with-prompt-options";
|
|
15
|
+
import type { DeleteEventsByIdOptions } from "./schemas/interfaces/delete-events-by-id-options";
|
|
16
|
+
import type { DeleteEventsByIdResult } from "./sub-definitions/event-operations";
|
|
17
|
+
import type { DeleteReminderOptions } from "./schemas/interfaces/delete-reminder-options";
|
|
18
|
+
import type { DeleteReminderWithPromptOptions } from "./schemas/interfaces/delete-reminder-with-prompt-options";
|
|
19
|
+
import type { DeleteRemindersByIdOptions } from "./schemas/interfaces/delete-reminders-by-id-options";
|
|
20
|
+
import type { DeleteRemindersByIdResult } from "./sub-definitions/reminders-operations";
|
|
21
|
+
import type { EventEditAction } from "./schemas/types/event-edit-action";
|
|
22
|
+
import type { GetReminderByIdOptions } from "./schemas/interfaces/get-reminder-by-id-options";
|
|
23
|
+
import type { GetRemindersFromListsOptions } from "./schemas/interfaces/get-reminders-from-lists-options";
|
|
24
|
+
import type { ListEventsInRangeOptions } from "./schemas/interfaces/list-events-in-range-options";
|
|
25
|
+
import type { ModifyCalendarOptions } from "./schemas/interfaces/modify-calendar-options";
|
|
26
|
+
import type { ModifyEventOptions } from "./schemas/interfaces/modify-event-options";
|
|
27
|
+
import type { ModifyEventWithPromptOptions } from "./schemas/interfaces/modify-event-with-prompt-options";
|
|
28
|
+
import type { ModifyReminderOptions } from "./schemas/interfaces/modify-reminder-options";
|
|
29
|
+
import type { OpenCalendarOptions } from "./schemas/interfaces/open-calendar-options";
|
|
30
|
+
import type { Reminder } from "./schemas/interfaces/reminder";
|
|
31
|
+
import type { RemindersList } from "./schemas/interfaces/reminders-list";
|
|
32
|
+
import type { SelectCalendarsWithPromptOptions } from "./schemas/interfaces/select-calendars-with-prompt-options";
|
|
12
33
|
export declare class CapacitorCalendarWeb extends WebPlugin implements CapacitorCalendarPlugin {
|
|
13
34
|
checkPermission(_options: {
|
|
14
|
-
|
|
35
|
+
scope: CalendarPermissionScope;
|
|
15
36
|
}): Promise<{
|
|
16
37
|
result: PermissionState;
|
|
17
38
|
}>;
|
|
18
|
-
checkAllPermissions(): Promise<
|
|
39
|
+
checkAllPermissions(): Promise<{
|
|
40
|
+
result: CheckAllPermissionsResult;
|
|
41
|
+
}>;
|
|
19
42
|
requestPermission(_options: {
|
|
20
|
-
|
|
43
|
+
scope: CalendarPermissionScope;
|
|
21
44
|
}): Promise<{
|
|
22
45
|
result: PermissionState;
|
|
23
46
|
}>;
|
|
24
|
-
requestAllPermissions(): Promise<
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
alertOffsetInMinutes?: number | number[];
|
|
33
|
-
url?: string;
|
|
34
|
-
notes?: string;
|
|
35
|
-
eventIdOptional?: boolean;
|
|
36
|
-
}): Promise<{
|
|
37
|
-
result: string[];
|
|
47
|
+
requestAllPermissions(): Promise<{
|
|
48
|
+
result: RequestAllPermissionsResult;
|
|
49
|
+
}>;
|
|
50
|
+
requestWriteOnlyCalendarAccess(): Promise<{
|
|
51
|
+
result: PermissionState;
|
|
52
|
+
}>;
|
|
53
|
+
requestReadOnlyCalendarAccess(): Promise<{
|
|
54
|
+
result: PermissionState;
|
|
38
55
|
}>;
|
|
39
|
-
|
|
56
|
+
requestFullCalendarAccess(): Promise<{
|
|
57
|
+
result: PermissionState;
|
|
58
|
+
}>;
|
|
59
|
+
requestFullRemindersAccess(): Promise<{
|
|
60
|
+
result: PermissionState;
|
|
61
|
+
}>;
|
|
62
|
+
createEventWithPrompt(_options: CreateEventWithPromptOptions): Promise<{
|
|
63
|
+
id: string | null;
|
|
64
|
+
}>;
|
|
65
|
+
modifyEventWithPrompt(_options: ModifyEventWithPromptOptions): Promise<{
|
|
66
|
+
result: EventEditAction | null;
|
|
67
|
+
}>;
|
|
68
|
+
createEvent(_options: CreateEventOptions): Promise<{
|
|
69
|
+
id: string;
|
|
70
|
+
}>;
|
|
71
|
+
commit(): Promise<void>;
|
|
72
|
+
modifyEvent(_options: ModifyEventOptions): Promise<void>;
|
|
73
|
+
selectCalendarsWithPrompt(_options?: SelectCalendarsWithPromptOptions): Promise<{
|
|
40
74
|
result: Calendar[];
|
|
41
75
|
}>;
|
|
76
|
+
fetchAllCalendarSources(): Promise<{
|
|
77
|
+
result: CalendarSource[];
|
|
78
|
+
}>;
|
|
42
79
|
listCalendars(): Promise<{
|
|
43
80
|
result: Calendar[];
|
|
44
81
|
}>;
|
|
82
|
+
fetchAllRemindersSources(): Promise<{
|
|
83
|
+
result: CalendarSource[];
|
|
84
|
+
}>;
|
|
45
85
|
getDefaultCalendar(): Promise<{
|
|
46
86
|
result: Calendar | null;
|
|
47
87
|
}>;
|
|
48
|
-
createEvent(_options: {
|
|
49
|
-
title: string;
|
|
50
|
-
calendarId?: string;
|
|
51
|
-
location?: string;
|
|
52
|
-
startDate?: number;
|
|
53
|
-
endDate?: number;
|
|
54
|
-
isAllDay?: boolean;
|
|
55
|
-
alertOffsetInMinutes?: number | number[];
|
|
56
|
-
url?: string;
|
|
57
|
-
notes?: string;
|
|
58
|
-
}): Promise<{
|
|
59
|
-
result: string;
|
|
60
|
-
}>;
|
|
61
|
-
createReminder(_options: {
|
|
62
|
-
title: string;
|
|
63
|
-
listId?: string;
|
|
64
|
-
priority?: number;
|
|
65
|
-
isCompleted?: boolean;
|
|
66
|
-
startDate?: number;
|
|
67
|
-
dueDate?: number;
|
|
68
|
-
completionDate?: number;
|
|
69
|
-
notes?: string;
|
|
70
|
-
url?: string;
|
|
71
|
-
location?: string;
|
|
72
|
-
recurrence?: ReminderRecurrenceRule;
|
|
73
|
-
}): Promise<{
|
|
74
|
-
result: string;
|
|
75
|
-
}>;
|
|
76
88
|
getDefaultRemindersList(): Promise<{
|
|
77
|
-
result: RemindersList;
|
|
89
|
+
result: RemindersList | null;
|
|
78
90
|
}>;
|
|
91
|
+
openReminders(): Promise<void>;
|
|
79
92
|
getRemindersLists(): Promise<{
|
|
80
93
|
result: RemindersList[];
|
|
81
94
|
}>;
|
|
82
|
-
openCalendar(_options:
|
|
83
|
-
|
|
84
|
-
}): Promise<void>;
|
|
85
|
-
openReminders(): Promise<void>;
|
|
86
|
-
listEventsInRange(_options: {
|
|
87
|
-
startDate: number;
|
|
88
|
-
endDate: number;
|
|
89
|
-
}): Promise<{
|
|
90
|
-
result: CalendarEvent[];
|
|
91
|
-
}>;
|
|
92
|
-
deleteEventsById(_options: {
|
|
93
|
-
ids: string[];
|
|
94
|
-
}): Promise<{
|
|
95
|
-
result: {
|
|
96
|
-
deleted: string[];
|
|
97
|
-
failed: string[];
|
|
98
|
-
};
|
|
99
|
-
}>;
|
|
100
|
-
createCalendar(_options: {
|
|
101
|
-
title: string;
|
|
102
|
-
color?: string;
|
|
103
|
-
sourceId?: string;
|
|
104
|
-
}): Promise<{
|
|
105
|
-
result: string;
|
|
106
|
-
}>;
|
|
107
|
-
deleteCalendar(_options: {
|
|
95
|
+
openCalendar(_options: OpenCalendarOptions): Promise<void>;
|
|
96
|
+
createCalendar(_options: CreateCalendarOptions): Promise<{
|
|
108
97
|
id: string;
|
|
109
|
-
}): Promise<void>;
|
|
110
|
-
getRemindersFromLists(_options?: {
|
|
111
|
-
listIds: string[];
|
|
112
|
-
}): Promise<{
|
|
113
|
-
result: Reminder[];
|
|
114
98
|
}>;
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
result: {
|
|
119
|
-
deleted: string[];
|
|
120
|
-
failed: string[];
|
|
121
|
-
};
|
|
99
|
+
deleteCalendar(_options: DeleteCalendarOptions): Promise<void>;
|
|
100
|
+
createReminder(_options: CreateReminderOptions): Promise<{
|
|
101
|
+
id: string;
|
|
122
102
|
}>;
|
|
123
|
-
|
|
124
|
-
result:
|
|
103
|
+
deleteRemindersById(_options: DeleteRemindersByIdOptions): Promise<{
|
|
104
|
+
result: DeleteRemindersByIdResult;
|
|
125
105
|
}>;
|
|
126
|
-
|
|
127
|
-
|
|
106
|
+
deleteReminder(_options: DeleteReminderOptions): Promise<void>;
|
|
107
|
+
modifyReminder(_options: ModifyReminderOptions): Promise<void>;
|
|
108
|
+
getReminderById(_options: GetReminderByIdOptions): Promise<{
|
|
109
|
+
result: Reminder | null;
|
|
128
110
|
}>;
|
|
129
|
-
|
|
130
|
-
result:
|
|
111
|
+
getRemindersFromLists(_options: GetRemindersFromListsOptions): Promise<{
|
|
112
|
+
result: Reminder[];
|
|
131
113
|
}>;
|
|
132
|
-
|
|
133
|
-
result:
|
|
114
|
+
deleteEventsById(_options: DeleteEventsByIdOptions): Promise<{
|
|
115
|
+
result: DeleteEventsByIdResult;
|
|
134
116
|
}>;
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
title?: string;
|
|
139
|
-
calendarId?: string;
|
|
140
|
-
location?: string;
|
|
141
|
-
startDate?: number;
|
|
142
|
-
endDate?: number;
|
|
143
|
-
isAllDay?: boolean;
|
|
144
|
-
alertOffsetInMinutes?: number | number[];
|
|
145
|
-
url?: string;
|
|
146
|
-
notes?: string;
|
|
147
|
-
};
|
|
148
|
-
}): Promise<{
|
|
149
|
-
result: string[];
|
|
117
|
+
deleteEvent(_options: DeleteEventOptions): Promise<void>;
|
|
118
|
+
deleteEventWithPrompt(_options: DeleteEventWithPromptOptions): Promise<{
|
|
119
|
+
deleted: boolean;
|
|
150
120
|
}>;
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
span?: EventSpan;
|
|
154
|
-
update: {
|
|
155
|
-
title?: string;
|
|
156
|
-
calendarId?: string;
|
|
157
|
-
location?: string;
|
|
158
|
-
startDate?: number;
|
|
159
|
-
endDate?: number;
|
|
160
|
-
isAllDay?: boolean;
|
|
161
|
-
alertOffsetInMinutes?: number | number[];
|
|
162
|
-
url?: string;
|
|
163
|
-
notes?: string;
|
|
164
|
-
};
|
|
165
|
-
}): Promise<void>;
|
|
166
|
-
fetchAllCalendarSources(): Promise<{
|
|
167
|
-
result: CalendarSource[];
|
|
121
|
+
listEventsInRange(_options: ListEventsInRangeOptions): Promise<{
|
|
122
|
+
result: CalendarEvent[];
|
|
168
123
|
}>;
|
|
169
|
-
|
|
170
|
-
|
|
124
|
+
modifyCalendar(_options: ModifyCalendarOptions): Promise<void>;
|
|
125
|
+
deleteReminderWithPrompt(_options: DeleteReminderWithPromptOptions): Promise<{
|
|
126
|
+
deleted: boolean;
|
|
171
127
|
}>;
|
|
172
|
-
|
|
173
|
-
id: string;
|
|
174
|
-
update: {
|
|
175
|
-
title?: string;
|
|
176
|
-
listId?: string;
|
|
177
|
-
priority?: number;
|
|
178
|
-
isCompleted?: boolean;
|
|
179
|
-
startDate?: number;
|
|
180
|
-
dueDate?: number;
|
|
181
|
-
completionDate?: number;
|
|
182
|
-
notes?: string;
|
|
183
|
-
url?: string;
|
|
184
|
-
location?: string;
|
|
185
|
-
recurrence?: ReminderRecurrenceRule;
|
|
186
|
-
};
|
|
187
|
-
}): Promise<void>;
|
|
128
|
+
private throwUnimplemented;
|
|
188
129
|
}
|
package/dist/esm/web.js
CHANGED
|
@@ -1,91 +1,115 @@
|
|
|
1
1
|
import { WebPlugin } from "@capacitor/core";
|
|
2
2
|
export class CapacitorCalendarWeb extends WebPlugin {
|
|
3
3
|
checkPermission(_options) {
|
|
4
|
-
|
|
4
|
+
return this.throwUnimplemented(this.checkPermission.name);
|
|
5
5
|
}
|
|
6
6
|
checkAllPermissions() {
|
|
7
|
-
|
|
7
|
+
return this.throwUnimplemented(this.checkAllPermissions.name);
|
|
8
8
|
}
|
|
9
9
|
requestPermission(_options) {
|
|
10
|
-
|
|
10
|
+
return this.throwUnimplemented(this.requestPermission.name);
|
|
11
11
|
}
|
|
12
12
|
requestAllPermissions() {
|
|
13
|
-
|
|
13
|
+
return this.throwUnimplemented(this.requestAllPermissions.name);
|
|
14
14
|
}
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
requestWriteOnlyCalendarAccess() {
|
|
16
|
+
return this.throwUnimplemented(this.requestWriteOnlyCalendarAccess.name);
|
|
17
17
|
}
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
requestReadOnlyCalendarAccess() {
|
|
19
|
+
return this.throwUnimplemented(this.requestReadOnlyCalendarAccess.name);
|
|
20
20
|
}
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
requestFullCalendarAccess() {
|
|
22
|
+
return this.throwUnimplemented(this.requestFullCalendarAccess.name);
|
|
23
23
|
}
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
requestFullRemindersAccess() {
|
|
25
|
+
return this.throwUnimplemented(this.requestFullRemindersAccess.name);
|
|
26
|
+
}
|
|
27
|
+
createEventWithPrompt(_options) {
|
|
28
|
+
return this.throwUnimplemented(this.createEventWithPrompt.name);
|
|
29
|
+
}
|
|
30
|
+
modifyEventWithPrompt(_options) {
|
|
31
|
+
return this.throwUnimplemented(this.modifyEventWithPrompt.name);
|
|
26
32
|
}
|
|
27
33
|
createEvent(_options) {
|
|
28
|
-
|
|
34
|
+
return this.throwUnimplemented(this.createEvent.name);
|
|
29
35
|
}
|
|
30
|
-
|
|
31
|
-
|
|
36
|
+
commit() {
|
|
37
|
+
return this.throwUnimplemented(this.commit.name);
|
|
32
38
|
}
|
|
33
|
-
|
|
34
|
-
|
|
39
|
+
modifyEvent(_options) {
|
|
40
|
+
return this.throwUnimplemented(this.modifyEvent.name);
|
|
35
41
|
}
|
|
36
|
-
|
|
37
|
-
|
|
42
|
+
selectCalendarsWithPrompt(_options) {
|
|
43
|
+
return this.throwUnimplemented(this.selectCalendarsWithPrompt.name);
|
|
38
44
|
}
|
|
39
|
-
|
|
40
|
-
|
|
45
|
+
fetchAllCalendarSources() {
|
|
46
|
+
return this.throwUnimplemented(this.fetchAllCalendarSources.name);
|
|
47
|
+
}
|
|
48
|
+
listCalendars() {
|
|
49
|
+
return this.throwUnimplemented(this.listCalendars.name);
|
|
50
|
+
}
|
|
51
|
+
fetchAllRemindersSources() {
|
|
52
|
+
return this.throwUnimplemented(this.fetchAllRemindersSources.name);
|
|
53
|
+
}
|
|
54
|
+
getDefaultCalendar() {
|
|
55
|
+
return this.throwUnimplemented(this.getDefaultCalendar.name);
|
|
56
|
+
}
|
|
57
|
+
getDefaultRemindersList() {
|
|
58
|
+
return this.throwUnimplemented(this.getDefaultRemindersList.name);
|
|
41
59
|
}
|
|
42
60
|
openReminders() {
|
|
43
|
-
|
|
61
|
+
return this.throwUnimplemented(this.openReminders.name);
|
|
44
62
|
}
|
|
45
|
-
|
|
46
|
-
|
|
63
|
+
getRemindersLists() {
|
|
64
|
+
return this.throwUnimplemented(this.getRemindersLists.name);
|
|
47
65
|
}
|
|
48
|
-
|
|
49
|
-
|
|
66
|
+
openCalendar(_options) {
|
|
67
|
+
return this.throwUnimplemented(this.openCalendar.name);
|
|
50
68
|
}
|
|
51
69
|
createCalendar(_options) {
|
|
52
|
-
|
|
70
|
+
return this.throwUnimplemented(this.createCalendar.name);
|
|
53
71
|
}
|
|
54
72
|
deleteCalendar(_options) {
|
|
55
|
-
|
|
73
|
+
return this.throwUnimplemented(this.deleteCalendar.name);
|
|
56
74
|
}
|
|
57
|
-
|
|
58
|
-
|
|
75
|
+
createReminder(_options) {
|
|
76
|
+
return this.throwUnimplemented(this.createReminder.name);
|
|
59
77
|
}
|
|
60
78
|
deleteRemindersById(_options) {
|
|
61
|
-
|
|
79
|
+
return this.throwUnimplemented(this.deleteRemindersById.name);
|
|
62
80
|
}
|
|
63
|
-
|
|
64
|
-
|
|
81
|
+
deleteReminder(_options) {
|
|
82
|
+
return this.throwUnimplemented(this.deleteReminder.name);
|
|
65
83
|
}
|
|
66
|
-
|
|
67
|
-
|
|
84
|
+
modifyReminder(_options) {
|
|
85
|
+
return this.throwUnimplemented(this.modifyReminder.name);
|
|
68
86
|
}
|
|
69
|
-
|
|
70
|
-
|
|
87
|
+
getReminderById(_options) {
|
|
88
|
+
return this.throwUnimplemented(this.getReminderById.name);
|
|
71
89
|
}
|
|
72
|
-
|
|
73
|
-
|
|
90
|
+
getRemindersFromLists(_options) {
|
|
91
|
+
return this.throwUnimplemented(this.getRemindersFromLists.name);
|
|
74
92
|
}
|
|
75
|
-
|
|
76
|
-
|
|
93
|
+
deleteEventsById(_options) {
|
|
94
|
+
return this.throwUnimplemented(this.deleteEventsById.name);
|
|
77
95
|
}
|
|
78
|
-
|
|
79
|
-
|
|
96
|
+
deleteEvent(_options) {
|
|
97
|
+
return this.throwUnimplemented(this.deleteEvent.name);
|
|
80
98
|
}
|
|
81
|
-
|
|
82
|
-
|
|
99
|
+
deleteEventWithPrompt(_options) {
|
|
100
|
+
return this.throwUnimplemented(this.deleteEventWithPrompt.name);
|
|
83
101
|
}
|
|
84
|
-
|
|
85
|
-
|
|
102
|
+
listEventsInRange(_options) {
|
|
103
|
+
return this.throwUnimplemented(this.listEventsInRange.name);
|
|
86
104
|
}
|
|
87
|
-
|
|
88
|
-
|
|
105
|
+
modifyCalendar(_options) {
|
|
106
|
+
return this.throwUnimplemented(this.modifyCalendar.name);
|
|
107
|
+
}
|
|
108
|
+
deleteReminderWithPrompt(_options) {
|
|
109
|
+
return this.throwUnimplemented(this.deleteReminderWithPrompt.name);
|
|
110
|
+
}
|
|
111
|
+
throwUnimplemented(methodName) {
|
|
112
|
+
return Promise.reject(this.unimplemented(`${methodName} is not implemented on the web.`));
|
|
89
113
|
}
|
|
90
114
|
}
|
|
91
115
|
//# sourceMappingURL=web.js.map
|
package/dist/esm/web.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"web.js","sourceRoot":"","sources":["../../src/web.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAY7D,MAAM,OAAO,oBACX,SAAQ,SAAS;IAGV,eAAe,CAAC,QAEtB;QACC,MAAM,IAAI,CAAC,aAAa,CACtB,GAAG,IAAI,CAAC,eAAe,CAAC,IAAI,gCAAgC,CAC7D,CAAC;IACJ,CAAC;IAEM,mBAAmB;QACxB,MAAM,IAAI,CAAC,aAAa,CACtB,GAAG,IAAI,CAAC,mBAAmB,CAAC,IAAI,gCAAgC,CACjE,CAAC;IACJ,CAAC;IAEM,iBAAiB,CAAC,QAExB;QACC,MAAM,IAAI,CAAC,aAAa,CACtB,GAAG,IAAI,CAAC,iBAAiB,CAAC,IAAI,gCAAgC,CAC/D,CAAC;IACJ,CAAC;IAEM,qBAAqB;QAC1B,MAAM,IAAI,CAAC,aAAa,CACtB,GAAG,IAAI,CAAC,qBAAqB,CAAC,IAAI,gCAAgC,CACnE,CAAC;IACJ,CAAC;IAEM,qBAAqB,CAAC,QAW5B;QACC,MAAM,IAAI,CAAC,aAAa,CACtB,GAAG,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IACJ,CAAC;IAEM,qBAAqB,CAAC,QAa5B;QACC,MAAM,IAAI,CAAC,aAAa,CACtB,GAAG,IAAI,CAAC,qBAAqB,CAAC,IAAI,gCAAgC,CACnE,CAAC;IACJ,CAAC;IAEM,WAAW,CAAC,QAclB;QACC,MAAM,IAAI,CAAC,aAAa,CACtB,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,gCAAgC,CACzD,CAAC;IACJ,CAAC;IAEM,uBAAuB;QAC5B,MAAM,IAAI,CAAC,aAAa,CACtB,GAAG,IAAI,CAAC,uBAAuB,CAAC,IAAI,gCAAgC,CACrE,CAAC;IACJ,CAAC;IAEM,wBAAwB;QAC7B,MAAM,IAAI,CAAC,aAAa,CACtB,GAAG,IAAI,CAAC,wBAAwB,CAAC,IAAI,gCAAgC,CACtE,CAAC;IACJ,CAAC;IAED,cAAc,CAAC,QAed;QACC,MAAM,IAAI,CAAC,aAAa,CACtB,GAAG,IAAI,CAAC,cAAc,CAAC,IAAI,gCAAgC,CAC5D,CAAC;IACJ,CAAC;CACF","sourcesContent":["import { PermissionState, WebPlugin } from \"@capacitor/core\";\nimport { CapacitorCalendarPlugin } from \"./definitions\";\nimport { PluginPermission } from \"./schemas/enums/plugin-permission\";\nimport { ReminderRecurrenceRule } from \"./schemas/interfaces/reminder-recurrence-rule\";\nimport { EventSpan } from \"./schemas/enums/event-span\";\nimport type { Calendar } from \"./schemas/interfaces/calendar\";\nimport type { RemindersList } from \"./schemas/interfaces/reminders-list\";\nimport type { PluginPermissionsMap } from \"./schemas/interfaces/plugin-permissions-map\";\nimport type { CalendarEvent } from \"./schemas/interfaces/calendar-event\";\nimport type { Reminder } from \"./schemas/interfaces/reminder\";\nimport type { CalendarSource } from \"./schemas/interfaces/calendar-source\";\n\nexport class CapacitorCalendarWeb\n extends WebPlugin\n implements CapacitorCalendarPlugin\n{\n public checkPermission(_options: {\n alias: PluginPermission;\n }): Promise<{ result: PermissionState }> {\n throw this.unimplemented(\n `${this.checkPermission.name} is not implemented on the web`,\n );\n }\n\n public checkAllPermissions(): Promise<PluginPermissionsMap> {\n throw this.unimplemented(\n `${this.checkAllPermissions.name} is not implemented on the web`,\n );\n }\n\n public requestPermission(_options: {\n alias: PluginPermission;\n }): Promise<{ result: PermissionState }> {\n throw this.unimplemented(\n `${this.requestPermission.name} is not implemented on the web`,\n );\n }\n\n public requestAllPermissions(): Promise<PluginPermissionsMap> {\n throw this.unimplemented(\n `${this.requestAllPermissions.name} is not implemented on the web`,\n );\n }\n\n public createEventWithPrompt(_options: {\n title: string;\n calendarId?: string;\n location?: string;\n startDate?: number;\n endDate?: number;\n isAllDay?: boolean;\n alertOffsetInMinutes?: number | number[];\n url?: string;\n notes?: string;\n eventIdOptional?: boolean;\n }): Promise<{ result: string[] }> {\n throw this.unimplemented(\n `${this.createEventWithPrompt.name} is not implemented on the web`,\n );\n }\n\n public selectCalendarsWithPrompt(): Promise<{ result: Calendar[] }> {\n throw this.unimplemented(\n `${this.selectCalendarsWithPrompt.name} is not implemented on the web`,\n );\n }\n\n public listCalendars(): Promise<{ result: Calendar[] }> {\n throw this.unimplemented(\n `${this.listCalendars.name} is not implemented on the web`,\n );\n }\n\n public getDefaultCalendar(): Promise<{ result: Calendar | null }> {\n throw this.unimplemented(\n `${this.getDefaultCalendar.name} is not implemented on the web`,\n );\n }\n\n public createEvent(_options: {\n title: string;\n calendarId?: string;\n location?: string;\n startDate?: number;\n endDate?: number;\n isAllDay?: boolean;\n alertOffsetInMinutes?: number | number[];\n url?: string;\n notes?: string;\n }): Promise<{\n result: string;\n }> {\n throw this.unimplemented(\n `${this.createEvent.name} is not implemented on the web`,\n );\n }\n\n public createReminder(_options: {\n title: string;\n listId?: string;\n priority?: number;\n isCompleted?: boolean;\n startDate?: number;\n dueDate?: number;\n completionDate?: number;\n notes?: string;\n url?: string;\n location?: string;\n recurrence?: ReminderRecurrenceRule;\n }): Promise<{ result: string }> {\n throw this.unimplemented(\n `${this.createReminder.name} is not implemented on the web`,\n );\n }\n\n public getDefaultRemindersList(): Promise<{ result: RemindersList }> {\n throw this.unimplemented(\n `${this.getDefaultRemindersList.name} is not implemented on the web`,\n );\n }\n\n public getRemindersLists(): Promise<{ result: RemindersList[] }> {\n throw this.unimplemented(\n `${this.getRemindersLists.name} is not implemented on the web`,\n );\n }\n\n public openCalendar(_options: { date?: number }): Promise<void> {\n throw this.unimplemented(\n `${this.openCalendar.name} is not implemented on the web`,\n );\n }\n\n public openReminders(): Promise<void> {\n throw this.unimplemented(\n `${this.openReminders.name} is not implemented on the web`,\n );\n }\n\n public listEventsInRange(_options: {\n startDate: number;\n endDate: number;\n }): Promise<{ result: CalendarEvent[] }> {\n throw this.unimplemented(\n `${this.listEventsInRange.name} is not implemented on the web`,\n );\n }\n\n public deleteEventsById(_options: { ids: string[] }): Promise<{\n result: { deleted: string[]; failed: string[] };\n }> {\n throw this.unimplemented(\n `${this.deleteEventsById.name} is not implemented on the web`,\n );\n }\n\n public createCalendar(_options: {\n title: string;\n color?: string;\n sourceId?: string;\n }): Promise<{ result: string }> {\n throw this.unimplemented(\n `${this.createCalendar.name} is not implemented on the web`,\n );\n }\n\n public deleteCalendar(_options: { id: string }): Promise<void> {\n throw this.unimplemented(\n `${this.deleteCalendar.name} is not implemented on the web`,\n );\n }\n\n public getRemindersFromLists(_options?: {\n listIds: string[];\n }): Promise<{ result: Reminder[] }> {\n throw this.unimplemented(\n `${this.getRemindersFromLists.name} is not implemented on the web`,\n );\n }\n\n public deleteRemindersById(_options: {\n ids: string[];\n }): Promise<{ result: { deleted: string[]; failed: string[] } }> {\n throw this.unimplemented(\n `${this.deleteRemindersById.name} is not implemented on the web`,\n );\n }\n\n public requestWriteOnlyCalendarAccess(): Promise<{\n result: PermissionState;\n }> {\n throw this.unimplemented(\n `${this.requestWriteOnlyCalendarAccess.name} is not implemented on the web`,\n );\n }\n\n public requestReadOnlyCalendarAccess(): Promise<{ result: PermissionState }> {\n throw this.unimplemented(\n `${this.requestReadOnlyCalendarAccess.name} is not implemented on the web`,\n );\n }\n\n public requestFullCalendarAccess(): Promise<{ result: PermissionState }> {\n throw this.unimplemented(\n `${this.requestFullCalendarAccess.name} is not implemented on the web`,\n );\n }\n\n public requestFullRemindersAccess(): Promise<{ result: PermissionState }> {\n throw this.unimplemented(\n `${this.requestFullRemindersAccess.name} is not implemented on the web`,\n );\n }\n\n public modifyEventWithPrompt(_options: {\n id: string;\n update?: {\n title?: string;\n calendarId?: string;\n location?: string;\n startDate?: number;\n endDate?: number;\n isAllDay?: boolean;\n alertOffsetInMinutes?: number | number[];\n url?: string;\n notes?: string;\n };\n }): Promise<{ result: string[] }> {\n throw this.unimplemented(\n `${this.modifyEventWithPrompt.name} is not implemented on the web`,\n );\n }\n\n public modifyEvent(_options: {\n id: string;\n span?: EventSpan;\n update: {\n title?: string;\n calendarId?: string;\n location?: string;\n startDate?: number;\n endDate?: number;\n isAllDay?: boolean;\n alertOffsetInMinutes?: number | number[];\n url?: string;\n notes?: string;\n };\n }): Promise<void> {\n throw this.unimplemented(\n `${this.modifyEvent.name} is not implemented on the web`,\n );\n }\n\n public fetchAllCalendarSources(): Promise<{ result: CalendarSource[] }> {\n throw this.unimplemented(\n `${this.fetchAllCalendarSources.name} is not implemented on the web`,\n );\n }\n\n public fetchAllRemindersSources(): Promise<{ result: CalendarSource[] }> {\n throw this.unimplemented(\n `${this.fetchAllRemindersSources.name} is not implemented on the web`,\n );\n }\n\n modifyReminder(_options: {\n id: string;\n update: {\n title?: string;\n listId?: string;\n priority?: number;\n isCompleted?: boolean;\n startDate?: number;\n dueDate?: number;\n completionDate?: number;\n notes?: string;\n url?: string;\n location?: string;\n recurrence?: ReminderRecurrenceRule;\n };\n }): Promise<void> {\n throw this.unimplemented(\n `${this.modifyReminder.name} is not implemented on the web`,\n );\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"web.js","sourceRoot":"","sources":["../../src/web.ts"],"names":[],"mappings":"AAIA,OAAO,EAAmB,SAAS,EAAE,MAAM,iBAAiB,CAAC;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CAAC,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;IACxD,CAAC;IAEM,qBAAqB,CAC1B,QAAsC;QAEtC,OAAO,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,qBAAqB,CAAC,IAAI,CAAC,CAAC;IAClE,CAAC;IAEM,iBAAiB,CACtB,QAAkC;QAElC,OAAO,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC;IAC9D,CAAC;IAEM,cAAc,CAAC,QAA+B;QACnD,OAAO,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC;IAC3D,CAAC;IAEM,wBAAwB,CAC7B,QAAyC;QAEzC,OAAO,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,wBAAwB,CAAC,IAAI,CAAC,CAAC;IACrE,CAAC;IAEO,kBAAkB,CAAI,UAAkB;QAC9C,OAAO,OAAO,CAAC,MAAM,CACnB,IAAI,CAAC,aAAa,CAAC,GAAG,UAAU,iCAAiC,CAAC,CACnE,CAAC;IACJ,CAAC;CACF","sourcesContent":["import {\n CheckAllPermissionsResult,\n RequestAllPermissionsResult,\n} from \"./sub-definitions/calendar-access\";\nimport { PermissionState, WebPlugin } from \"@capacitor/core\";\nimport type { Calendar } from \"./schemas/interfaces/calendar\";\nimport type { CalendarEvent } from \"./schemas/interfaces/calendar-event\";\nimport { CalendarPermissionScope } from \"./schemas/enums/calendar-permission-scope\";\nimport type { CalendarSource } from \"./schemas/interfaces/calendar-source\";\nimport type { CapacitorCalendarPlugin } from \"./definitions\";\nimport type { CreateCalendarOptions } from \"./schemas/interfaces/create-calendar-options\";\nimport type { CreateEventOptions } from \"./schemas/interfaces/create-event-options\";\nimport type { CreateEventWithPromptOptions } from \"./schemas/interfaces/create-event-with-prompt-options\";\nimport type { CreateReminderOptions } from \"./schemas/interfaces/create-reminder-options\";\nimport type { DeleteCalendarOptions } from \"./schemas/interfaces/delete-calendar-options\";\nimport type { DeleteEventOptions } from \"./schemas/interfaces/delete-event-options\";\nimport type { DeleteEventWithPromptOptions } from \"./schemas/interfaces/delete-event-with-prompt-options\";\nimport type { DeleteEventsByIdOptions } from \"./schemas/interfaces/delete-events-by-id-options\";\nimport type { DeleteEventsByIdResult } from \"./sub-definitions/event-operations\";\nimport type { DeleteReminderOptions } from \"./schemas/interfaces/delete-reminder-options\";\nimport type { DeleteReminderWithPromptOptions } from \"./schemas/interfaces/delete-reminder-with-prompt-options\";\nimport type { DeleteRemindersByIdOptions } from \"./schemas/interfaces/delete-reminders-by-id-options\";\nimport type { DeleteRemindersByIdResult } from \"./sub-definitions/reminders-operations\";\nimport type { EventEditAction } from \"./schemas/types/event-edit-action\";\nimport type { GetReminderByIdOptions } from \"./schemas/interfaces/get-reminder-by-id-options\";\nimport type { GetRemindersFromListsOptions } from \"./schemas/interfaces/get-reminders-from-lists-options\";\nimport type { ListEventsInRangeOptions } from \"./schemas/interfaces/list-events-in-range-options\";\nimport type { ModifyCalendarOptions } from \"./schemas/interfaces/modify-calendar-options\";\nimport type { ModifyEventOptions } from \"./schemas/interfaces/modify-event-options\";\nimport type { ModifyEventWithPromptOptions } from \"./schemas/interfaces/modify-event-with-prompt-options\";\nimport type { ModifyReminderOptions } from \"./schemas/interfaces/modify-reminder-options\";\nimport type { OpenCalendarOptions } from \"./schemas/interfaces/open-calendar-options\";\nimport type { Reminder } from \"./schemas/interfaces/reminder\";\nimport type { RemindersList } from \"./schemas/interfaces/reminders-list\";\nimport type { SelectCalendarsWithPromptOptions } from \"./schemas/interfaces/select-calendars-with-prompt-options\";\n\nexport class CapacitorCalendarWeb\n extends WebPlugin\n implements CapacitorCalendarPlugin\n{\n public checkPermission(_options: {\n scope: CalendarPermissionScope;\n }): Promise<{ result: PermissionState }> {\n return this.throwUnimplemented(this.checkPermission.name);\n }\n\n public checkAllPermissions(): Promise<{ result: CheckAllPermissionsResult }> {\n return this.throwUnimplemented(this.checkAllPermissions.name);\n }\n\n public requestPermission(_options: {\n scope: CalendarPermissionScope;\n }): Promise<{ result: PermissionState }> {\n return this.throwUnimplemented(this.requestPermission.name);\n }\n\n public requestAllPermissions(): Promise<{\n result: RequestAllPermissionsResult;\n }> {\n return this.throwUnimplemented(this.requestAllPermissions.name);\n }\n\n public requestWriteOnlyCalendarAccess(): Promise<{\n result: PermissionState;\n }> {\n return this.throwUnimplemented(this.requestWriteOnlyCalendarAccess.name);\n }\n\n public requestReadOnlyCalendarAccess(): Promise<{ result: PermissionState }> {\n return this.throwUnimplemented(this.requestReadOnlyCalendarAccess.name);\n }\n\n public requestFullCalendarAccess(): Promise<{ result: PermissionState }> {\n return this.throwUnimplemented(this.requestFullCalendarAccess.name);\n }\n\n public requestFullRemindersAccess(): Promise<{ result: PermissionState }> {\n return this.throwUnimplemented(this.requestFullRemindersAccess.name);\n }\n\n public createEventWithPrompt(\n _options: CreateEventWithPromptOptions,\n ): Promise<{ id: string | null }> {\n return this.throwUnimplemented(this.createEventWithPrompt.name);\n }\n\n public modifyEventWithPrompt(\n _options: ModifyEventWithPromptOptions,\n ): Promise<{ result: EventEditAction | null }> {\n return this.throwUnimplemented(this.modifyEventWithPrompt.name);\n }\n\n public createEvent(_options: CreateEventOptions): Promise<{\n id: string;\n }> {\n return this.throwUnimplemented(this.createEvent.name);\n }\n\n public commit(): Promise<void> {\n return this.throwUnimplemented(this.commit.name);\n }\n\n public modifyEvent(_options: ModifyEventOptions): Promise<void> {\n return this.throwUnimplemented(this.modifyEvent.name);\n }\n\n public selectCalendarsWithPrompt(\n _options?: SelectCalendarsWithPromptOptions,\n ): Promise<{ result: Calendar[] }> {\n return this.throwUnimplemented(this.selectCalendarsWithPrompt.name);\n }\n\n public fetchAllCalendarSources(): Promise<{ result: CalendarSource[] }> {\n return this.throwUnimplemented(this.fetchAllCalendarSources.name);\n }\n\n public listCalendars(): Promise<{ result: Calendar[] }> {\n return this.throwUnimplemented(this.listCalendars.name);\n }\n\n public fetchAllRemindersSources(): Promise<{ result: CalendarSource[] }> {\n return this.throwUnimplemented(this.fetchAllRemindersSources.name);\n }\n\n public getDefaultCalendar(): Promise<{ result: Calendar | null }> {\n return this.throwUnimplemented(this.getDefaultCalendar.name);\n }\n\n public getDefaultRemindersList(): Promise<{ result: RemindersList | null }> {\n return this.throwUnimplemented(this.getDefaultRemindersList.name);\n }\n\n public openReminders(): Promise<void> {\n return this.throwUnimplemented(this.openReminders.name);\n }\n\n public getRemindersLists(): Promise<{ result: RemindersList[] }> {\n return this.throwUnimplemented(this.getRemindersLists.name);\n }\n\n public openCalendar(_options: OpenCalendarOptions): Promise<void> {\n return this.throwUnimplemented(this.openCalendar.name);\n }\n\n public createCalendar(\n _options: CreateCalendarOptions,\n ): Promise<{ id: string }> {\n return this.throwUnimplemented(this.createCalendar.name);\n }\n\n public deleteCalendar(_options: DeleteCalendarOptions): Promise<void> {\n return this.throwUnimplemented(this.deleteCalendar.name);\n }\n\n public createReminder(\n _options: CreateReminderOptions,\n ): Promise<{ id: string }> {\n return this.throwUnimplemented(this.createReminder.name);\n }\n\n public deleteRemindersById(\n _options: DeleteRemindersByIdOptions,\n ): Promise<{ result: DeleteRemindersByIdResult }> {\n return this.throwUnimplemented(this.deleteRemindersById.name);\n }\n\n public deleteReminder(_options: DeleteReminderOptions): Promise<void> {\n return this.throwUnimplemented(this.deleteReminder.name);\n }\n\n public modifyReminder(_options: ModifyReminderOptions): Promise<void> {\n return this.throwUnimplemented(this.modifyReminder.name);\n }\n\n public getReminderById(\n _options: GetReminderByIdOptions,\n ): Promise<{ result: Reminder | null }> {\n return this.throwUnimplemented(this.getReminderById.name);\n }\n\n public getRemindersFromLists(\n _options: GetRemindersFromListsOptions,\n ): Promise<{ result: Reminder[] }> {\n return this.throwUnimplemented(this.getRemindersFromLists.name);\n }\n\n public deleteEventsById(_options: DeleteEventsByIdOptions): Promise<{\n result: DeleteEventsByIdResult;\n }> {\n return this.throwUnimplemented(this.deleteEventsById.name);\n }\n\n public deleteEvent(_options: DeleteEventOptions): Promise<void> {\n return this.throwUnimplemented(this.deleteEvent.name);\n }\n\n public deleteEventWithPrompt(\n _options: DeleteEventWithPromptOptions,\n ): Promise<{ deleted: boolean }> {\n return this.throwUnimplemented(this.deleteEventWithPrompt.name);\n }\n\n public listEventsInRange(\n _options: ListEventsInRangeOptions,\n ): Promise<{ result: CalendarEvent[] }> {\n return this.throwUnimplemented(this.listEventsInRange.name);\n }\n\n public modifyCalendar(_options: ModifyCalendarOptions): Promise<void> {\n return this.throwUnimplemented(this.modifyCalendar.name);\n }\n\n public deleteReminderWithPrompt(\n _options: DeleteReminderWithPromptOptions,\n ): Promise<{ deleted: boolean }> {\n return this.throwUnimplemented(this.deleteReminderWithPrompt.name);\n }\n\n private throwUnimplemented<T>(methodName: string): Promise<T> {\n return Promise.reject(\n this.unimplemented(`${methodName} is not implemented on the web.`),\n );\n }\n}\n"]}
|