@ebarooni/capacitor-calendar 7.2.0 → 7.4.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/EbarooniCapacitorCalendar.podspec +1 -1
- package/Package.swift +2 -2
- package/README.md +932 -466
- package/android/src/main/java/dev/barooni/capacitor/calendar/CapacitorCalendarPlugin.kt +128 -31
- package/android/src/main/java/dev/barooni/capacitor/calendar/PluginError.kt +43 -19
- package/android/src/main/java/dev/barooni/capacitor/calendar/implementation/CapacitorCalendar.kt +312 -85
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/data/CalendarEvent.kt +4 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/data/EventDeleteInfo.kt +8 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/data/EventRecurrenceRule.kt +135 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/enums/EventSpan.kt +13 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/CheckPermissionInput.kt +0 -4
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/CreateCalendarInput.kt +3 -1
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/CreateEventInput.kt +1 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/CreateEventWithPromptInput.kt +5 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/DeleteCalendarInput.kt +4 -1
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/DeleteEventInput.kt +4 -1
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/DeleteEventWithPromptInput.kt +4 -1
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/DeleteEventsByIdInput.kt +2 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/GetDefaultCalendarInput.kt +9 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/ModifyCalendarInput.kt +10 -1
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/ModifyEvent.kt +3 -1
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/ModifyEventWithPromptInput.kt +3 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/RequestPermissionInput.kt +3 -5
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/CheckAllPermissionsResult.kt +3 -2
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/CreateEventResult.kt +1 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/CreateEventWithPromptResult.kt +1 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/GetDefaultCalendarResult.kt +1 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/ListCalendarsResult.kt +1 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/ListEventsInRangeResult.kt +4 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/RequestAllPermissionsResult.kt +1 -1
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/templates/PluginCompletion.kt +8 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/utils/DeclarationCheck.kt +59 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/utils/ImplementationHelper.kt +468 -39
- package/dist/docs.json +3046 -1048
- package/dist/esm/definitions.d.ts +5 -5
- package/dist/esm/definitions.js.map +1 -1
- package/dist/esm/index.d.ts +72 -48
- package/dist/esm/index.js +18 -17
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/schemas/enums/attendee-role.js.map +1 -1
- package/dist/esm/schemas/enums/attendee-status.js.map +1 -1
- package/dist/esm/schemas/enums/attendee-type.js.map +1 -1
- package/dist/esm/schemas/enums/calendar-permission-scope.d.ts +9 -1
- package/dist/esm/schemas/enums/calendar-permission-scope.js +9 -1
- package/dist/esm/schemas/enums/calendar-permission-scope.js.map +1 -1
- package/dist/esm/schemas/enums/capacitor-calendar-error-code.d.ts +13 -0
- package/dist/esm/schemas/enums/capacitor-calendar-error-code.js +15 -0
- package/dist/esm/schemas/enums/capacitor-calendar-error-code.js.map +1 -0
- package/dist/esm/schemas/enums/event-span.d.ts +4 -0
- package/dist/esm/schemas/enums/event-span.js +4 -0
- package/dist/esm/schemas/enums/event-span.js.map +1 -1
- package/dist/esm/schemas/enums/event-status.js.map +1 -1
- package/dist/esm/schemas/enums/reminder-recurrence-frequency.d.ts +5 -5
- package/dist/esm/schemas/enums/reminder-recurrence-frequency.js +5 -5
- package/dist/esm/schemas/enums/reminder-recurrence-frequency.js.map +1 -1
- package/dist/esm/schemas/interfaces/calendar-event.d.ts +145 -70
- package/dist/esm/schemas/interfaces/calendar-event.js.map +1 -1
- package/dist/esm/schemas/interfaces/calendar-source.d.ts +4 -1
- package/dist/esm/schemas/interfaces/calendar-source.js.map +1 -1
- package/dist/esm/schemas/interfaces/calendar.d.ts +22 -4
- package/dist/esm/schemas/interfaces/calendar.js.map +1 -1
- package/dist/esm/schemas/interfaces/check-permission-options.d.ts +19 -0
- package/dist/esm/schemas/interfaces/check-permission-options.js +2 -0
- package/dist/esm/schemas/interfaces/check-permission-options.js.map +1 -0
- package/dist/esm/schemas/interfaces/create-calendar-options.d.ts +19 -6
- package/dist/esm/schemas/interfaces/create-calendar-options.js.map +1 -1
- package/dist/esm/schemas/interfaces/create-calendar-result.d.ts +12 -0
- package/dist/esm/schemas/interfaces/create-calendar-result.js +2 -0
- package/dist/esm/schemas/interfaces/create-calendar-result.js.map +1 -0
- package/dist/esm/schemas/interfaces/create-event-options.d.ts +86 -51
- package/dist/esm/schemas/interfaces/create-event-options.js.map +1 -1
- package/dist/esm/schemas/interfaces/create-event-result.d.ts +22 -0
- package/dist/esm/schemas/interfaces/create-event-result.js +2 -0
- package/dist/esm/schemas/interfaces/create-event-result.js.map +1 -0
- package/dist/esm/schemas/interfaces/create-event-with-prompt-options.d.ts +73 -36
- package/dist/esm/schemas/interfaces/create-event-with-prompt-options.js.map +1 -1
- package/dist/esm/schemas/interfaces/create-event-with-prompt-result.d.ts +23 -0
- package/dist/esm/schemas/interfaces/create-event-with-prompt-result.js +2 -0
- package/dist/esm/schemas/interfaces/create-event-with-prompt-result.js.map +1 -0
- package/dist/esm/schemas/interfaces/create-reminder-options.d.ts +42 -12
- package/dist/esm/schemas/interfaces/create-reminder-options.js.map +1 -1
- package/dist/esm/schemas/interfaces/create-reminder-result.d.ts +12 -0
- package/dist/esm/schemas/interfaces/create-reminder-result.js +2 -0
- package/dist/esm/schemas/interfaces/create-reminder-result.js.map +1 -0
- package/dist/esm/schemas/interfaces/create-reminders-list-options.d.ts +46 -0
- package/dist/esm/schemas/interfaces/create-reminders-list-options.js +2 -0
- package/dist/esm/schemas/interfaces/create-reminders-list-options.js.map +1 -0
- package/dist/esm/schemas/interfaces/create-reminders-list-result.d.ts +12 -0
- package/dist/esm/schemas/interfaces/create-reminders-list-result.js +2 -0
- package/dist/esm/schemas/interfaces/create-reminders-list-result.js.map +1 -0
- package/dist/esm/schemas/interfaces/delete-calendar-options.d.ts +1 -0
- package/dist/esm/schemas/interfaces/delete-calendar-options.js.map +1 -1
- package/dist/esm/schemas/interfaces/delete-event-options.d.ts +29 -4
- package/dist/esm/schemas/interfaces/delete-event-options.js.map +1 -1
- package/dist/esm/schemas/interfaces/delete-event-with-prompt-options.d.ts +39 -14
- package/dist/esm/schemas/interfaces/delete-event-with-prompt-options.js.map +1 -1
- package/dist/esm/schemas/interfaces/delete-events-by-id-options.d.ts +16 -4
- package/dist/esm/schemas/interfaces/delete-events-by-id-options.js.map +1 -1
- package/dist/esm/schemas/interfaces/delete-reminder-options.d.ts +10 -0
- package/dist/esm/schemas/interfaces/delete-reminder-options.js.map +1 -1
- package/dist/esm/schemas/interfaces/delete-reminder-with-prompt-result.d.ts +12 -0
- package/dist/esm/schemas/interfaces/delete-reminder-with-prompt-result.js +2 -0
- package/dist/esm/schemas/interfaces/delete-reminder-with-prompt-result.js.map +1 -0
- package/dist/esm/schemas/interfaces/delete-reminders-by-id-result.d.ts +13 -0
- package/dist/esm/schemas/interfaces/delete-reminders-by-id-result.js +2 -0
- package/dist/esm/schemas/interfaces/delete-reminders-by-id-result.js.map +1 -0
- package/dist/esm/schemas/interfaces/delete-reminders-list-options.d.ts +23 -0
- package/dist/esm/schemas/interfaces/delete-reminders-list-options.js +2 -0
- package/dist/esm/schemas/interfaces/delete-reminders-list-options.js.map +1 -0
- package/dist/esm/schemas/interfaces/event-recurrence-rule.d.ts +96 -0
- package/dist/esm/schemas/interfaces/event-recurrence-rule.js +2 -0
- package/dist/esm/schemas/interfaces/event-recurrence-rule.js.map +1 -0
- package/dist/esm/schemas/interfaces/fetch-all-calendar-sources-result.d.ts +13 -0
- package/dist/esm/schemas/interfaces/fetch-all-calendar-sources-result.js +2 -0
- package/dist/esm/schemas/interfaces/fetch-all-calendar-sources-result.js.map +1 -0
- package/dist/esm/schemas/interfaces/get-default-calendar-options.d.ts +13 -0
- package/dist/esm/schemas/interfaces/get-default-calendar-options.js +2 -0
- package/dist/esm/schemas/interfaces/get-default-calendar-options.js.map +1 -0
- package/dist/esm/schemas/interfaces/get-default-reminders-list-result.d.ts +13 -0
- package/dist/esm/schemas/interfaces/get-default-reminders-list-result.js +2 -0
- package/dist/esm/schemas/interfaces/get-default-reminders-list-result.js.map +1 -0
- package/dist/esm/schemas/interfaces/get-reminder-by-id-result.d.ts +13 -0
- package/dist/esm/schemas/interfaces/get-reminder-by-id-result.js +2 -0
- package/dist/esm/schemas/interfaces/get-reminder-by-id-result.js.map +1 -0
- package/dist/esm/schemas/interfaces/get-reminders-from-lists-result.d.ts +13 -0
- package/dist/esm/schemas/interfaces/get-reminders-from-lists-result.js +2 -0
- package/dist/esm/schemas/interfaces/get-reminders-from-lists-result.js.map +1 -0
- package/dist/esm/schemas/interfaces/get-reminders-lists-result.d.ts +13 -0
- package/dist/esm/schemas/interfaces/get-reminders-lists-result.js +2 -0
- package/dist/esm/schemas/interfaces/get-reminders-lists-result.js.map +1 -0
- package/dist/esm/schemas/interfaces/list-calendars-result.d.ts +13 -0
- package/dist/esm/schemas/interfaces/list-calendars-result.js +2 -0
- package/dist/esm/schemas/interfaces/list-calendars-result.js.map +1 -0
- package/dist/esm/schemas/interfaces/list-events-in-range-options.d.ts +7 -2
- package/dist/esm/schemas/interfaces/list-events-in-range-options.js.map +1 -1
- package/dist/esm/schemas/interfaces/list-events-in-range-result.d.ts +13 -0
- package/dist/esm/schemas/interfaces/list-events-in-range-result.js +2 -0
- package/dist/esm/schemas/interfaces/list-events-in-range-result.js.map +1 -0
- package/dist/esm/schemas/interfaces/modify-calendar-options.d.ts +13 -2
- package/dist/esm/schemas/interfaces/modify-calendar-options.js.map +1 -1
- package/dist/esm/schemas/interfaces/modify-event-options.d.ts +61 -44
- package/dist/esm/schemas/interfaces/modify-event-options.js.map +1 -1
- package/dist/esm/schemas/interfaces/modify-event-with-prompt-options.d.ts +77 -2
- package/dist/esm/schemas/interfaces/modify-event-with-prompt-options.js.map +1 -1
- package/dist/esm/schemas/interfaces/modify-reminder-options.d.ts +77 -13
- package/dist/esm/schemas/interfaces/modify-reminder-options.js.map +1 -1
- package/dist/esm/schemas/interfaces/open-calendar-options.d.ts +5 -1
- package/dist/esm/schemas/interfaces/open-calendar-options.js.map +1 -1
- package/dist/esm/schemas/interfaces/recurrence-rule.d.ts +8 -2
- package/dist/esm/schemas/interfaces/recurrence-rule.js.map +1 -1
- package/dist/esm/schemas/interfaces/reminder-recurrence-rule.d.ts +1 -1
- package/dist/esm/schemas/interfaces/reminder-recurrence-rule.js.map +1 -1
- package/dist/esm/schemas/interfaces/reminder.d.ts +4 -1
- package/dist/esm/schemas/interfaces/reminder.js.map +1 -1
- package/dist/esm/schemas/interfaces/reminders-list.d.ts +8 -2
- package/dist/esm/schemas/interfaces/reminders-list.js.map +1 -1
- package/dist/esm/schemas/interfaces/request-permission-options.d.ts +16 -0
- package/dist/esm/schemas/interfaces/request-permission-options.js +2 -0
- package/dist/esm/schemas/interfaces/request-permission-options.js.map +1 -0
- package/dist/esm/schemas/interfaces/select-calendars-with-prompt-options.d.ts +1 -1
- package/dist/esm/schemas/interfaces/select-calendars-with-prompt-options.js.map +1 -1
- package/dist/esm/schemas/interfaces/select-calendars-with-prompt-result.d.ts +14 -0
- package/dist/esm/schemas/interfaces/select-calendars-with-prompt-result.js +2 -0
- package/dist/esm/schemas/interfaces/select-calendars-with-prompt-result.js.map +1 -0
- package/dist/esm/schemas/interfaces/update-reminders-list-options.d.ts +43 -0
- package/dist/esm/schemas/interfaces/update-reminders-list-options.js +2 -0
- package/dist/esm/schemas/interfaces/update-reminders-list-options.js.map +1 -0
- package/dist/esm/schemas/interfaces/update-reminders-list-result.d.ts +12 -0
- package/dist/esm/schemas/interfaces/update-reminders-list-result.js +2 -0
- package/dist/esm/schemas/interfaces/update-reminders-list-result.js.map +1 -0
- package/dist/esm/schemas/types/event-edit-action.d.ts +1 -1
- package/dist/esm/schemas/types/event-edit-action.js.map +1 -1
- package/dist/esm/schemas/types/recurrence-frequency.d.ts +4 -0
- package/dist/esm/schemas/types/recurrence-frequency.js +2 -0
- package/dist/esm/schemas/types/recurrence-frequency.js.map +1 -0
- package/dist/esm/schemas/types/system-color-name.d.ts +6 -0
- package/dist/esm/schemas/types/system-color-name.js +2 -0
- package/dist/esm/schemas/types/system-color-name.js.map +1 -0
- package/dist/esm/sub-definitions/calendar-access.d.ts +26 -14
- package/dist/esm/sub-definitions/calendar-access.js.map +1 -1
- package/dist/esm/sub-definitions/calendar-operations.d.ts +68 -21
- package/dist/esm/sub-definitions/calendar-operations.js.map +1 -1
- package/dist/esm/sub-definitions/event-operations.d.ts +46 -25
- package/dist/esm/sub-definitions/event-operations.js.map +1 -1
- package/dist/esm/sub-definitions/reminders-access.d.ts +6 -2
- package/dist/esm/sub-definitions/reminders-access.js.map +1 -1
- package/dist/esm/sub-definitions/reminders-operations.d.ts +78 -43
- package/dist/esm/sub-definitions/reminders-operations.js.map +1 -1
- package/dist/esm/web/download-ics-file.d.ts +18 -0
- package/dist/esm/web/download-ics-file.js +33 -0
- package/dist/esm/web/download-ics-file.js.map +1 -0
- package/dist/esm/web/ics.d.ts +27 -0
- package/dist/esm/web/ics.js +294 -0
- package/dist/esm/web/ics.js.map +1 -0
- package/dist/esm/web.d.ts +70 -82
- package/dist/esm/web.js +121 -6
- package/dist/esm/web.js.map +1 -1
- package/dist/plugin.cjs.js +479 -35
- package/dist/plugin.cjs.js.map +1 -1
- package/dist/plugin.js +479 -35
- package/dist/plugin.js.map +1 -1
- package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/CapacitorCalendarPlugin.swift +190 -77
- package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Implementation/CapacitorCalendar.swift +203 -110
- package/ios/Plugin/Info.plist +24 -0
- package/ios/Plugin/Models/Enums/EventSpan.swift +8 -0
- package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Inputs/CreateCalendarInput.swift +6 -4
- package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Inputs/CreateEventInput.swift +25 -21
- package/ios/Plugin/Models/Inputs/CreateEventWithPromptInput.swift +171 -0
- package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Inputs/CreateReminderInput.swift +14 -4
- package/ios/Plugin/Models/Inputs/CreateRemindersListInput.swift +43 -0
- package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Inputs/DeleteCalendarInput.swift +1 -1
- package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Inputs/DeleteEventInput.swift +9 -4
- package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Inputs/DeleteEventWithPromptInput.swift +9 -4
- package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Inputs/DeleteEventsByIdInput.swift +9 -4
- package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Inputs/DeleteReminderInput.swift +7 -1
- package/ios/Plugin/Models/Inputs/DeleteRemindersListInput.swift +22 -0
- package/ios/Plugin/Models/Inputs/GetDefaultCalendarInput.swift +13 -0
- package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Inputs/ModifyCalendarInput.swift +6 -3
- package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Inputs/ModifyEventInput.swift +63 -41
- package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Inputs/ModifyReminderInput.swift +66 -5
- package/ios/Plugin/Models/Inputs/UpdateRemindersListInput.swift +41 -0
- package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Results/CreateEventResult.swift +1 -0
- package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Results/CreateEventWithPromptResult.swift +1 -0
- package/ios/Plugin/Models/Results/CreateRemindersListResult.swift +15 -0
- package/ios/Plugin/Models/Results/ListEventsInRangeResult.swift +29 -0
- package/ios/Plugin/Models/Results/UpdateRemindersListResult.swift +15 -0
- package/ios/Plugin/Models/Structs/RecurrenceInput.swift +41 -0
- package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/PluginConfig.swift +30 -27
- package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/PluginError.swift +87 -56
- package/ios/Plugin/Utils/DeclarationCheck.swift +63 -0
- package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Utils/ImplementationHelper.swift +140 -24
- package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Utils/UIColorFromHexExtension.swift +5 -0
- package/package.json +36 -43
- package/dist/esm/schemas/enums/recurrence-frequency.d.ts +0 -21
- package/dist/esm/schemas/enums/recurrence-frequency.js +0 -23
- package/dist/esm/schemas/enums/recurrence-frequency.js.map +0 -1
- package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/CreateEventWithPromptInput.swift +0 -89
- package/ios/Sources/CapacitorCalendarPlugin/Models/Results/ListEventsInRangeResult.swift +0 -16
- package/ios/Tests/CapacitorCalendarPluginTests/CapacitorCalendarPluginTests.swift +0 -15
- /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Enums/CAPPermissionState.swift +0 -0
- /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Enums/CalendarPermissionScope.swift +0 -0
- /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Enums/EventEditAction.swift +0 -0
- /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Inputs/CheckPermissionInput.swift +0 -0
- /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Inputs/DeleteReminderWithPromptInput.swift +0 -0
- /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Inputs/DeleteRemindersByIdInput.swift +0 -0
- /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Inputs/GetReminderByIdInput.swift +0 -0
- /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Inputs/GetRemindersFromListsInput.swift +0 -0
- /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Inputs/ListEventsInRangeInput.swift +0 -0
- /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Inputs/ModifyEventWithPromptInput.swift +0 -0
- /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Inputs/OpenCalendarInput.swift +0 -0
- /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Inputs/RequestPermissionInput.swift +0 -0
- /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Inputs/SelectCalendarsWithPromptInput.swift +0 -0
- /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Results/CheckAllPermissionsResult.swift +0 -0
- /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Results/CheckPermissionResult.swift +0 -0
- /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Results/CreateCalendarResult.swift +0 -0
- /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Results/CreateReminderResult.swift +0 -0
- /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Results/DeleteEventWithPromptResult.swift +0 -0
- /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Results/DeleteEventsByIdResult.swift +0 -0
- /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Results/DeleteRemindersByIdResult.swift +0 -0
- /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Results/FetchAllCalendarSourcesResult.swift +0 -0
- /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Results/GetDefaultCalendarResult.swift +0 -0
- /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Results/GetReminderByIdResult.swift +0 -0
- /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Results/GetRemindersFromListsResult.swift +0 -0
- /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Results/ListCalendarsResult.swift +0 -0
- /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Results/ModifyEventWithPromptResult.swift +0 -0
- /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Results/RequestAllPermissionsResult.swift +0 -0
- /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Results/RequestPermissionResult.swift +0 -0
- /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Results/SelectCalendarsWithPromptResult.swift +0 -0
- /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Templates/JSResult.swift +0 -0
|
@@ -1,96 +1,131 @@
|
|
|
1
|
-
import { EventAvailability } from
|
|
2
|
-
import type { EventGuest } from
|
|
1
|
+
import type { EventAvailability } from '../enums/event-availability';
|
|
2
|
+
import type { EventGuest } from './event-guest';
|
|
3
|
+
import type { EventRecurrenceRule } from './event-recurrence-rule';
|
|
3
4
|
/**
|
|
4
5
|
* @since 7.1.0
|
|
5
6
|
*/
|
|
6
7
|
export interface CreateEventOptions {
|
|
7
8
|
/**
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
*
|
|
14
|
-
*
|
|
9
|
+
* Alert times in minutes relative to the event start.
|
|
10
|
+
* Use negative numbers for alerts before the start, and positive numbers for alerts after the start.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* // -1440 -> 1 day before
|
|
14
|
+
* // -60 -> 1 hour before
|
|
15
|
+
* // 30 -> 30 minutes after
|
|
16
|
+
* [-1440, -60, 30]
|
|
17
|
+
*
|
|
18
|
+
* @platform Android, iOS, Web
|
|
19
|
+
* @since 7.1.0
|
|
15
20
|
*/
|
|
16
|
-
|
|
21
|
+
alerts?: number[];
|
|
17
22
|
/**
|
|
18
|
-
*
|
|
19
|
-
*
|
|
23
|
+
* The event guests.
|
|
24
|
+
*
|
|
25
|
+
* @platform Android, Web
|
|
26
|
+
* @since 7.1.0
|
|
20
27
|
*/
|
|
21
|
-
|
|
28
|
+
attendees?: EventGuest[];
|
|
22
29
|
/**
|
|
30
|
+
* Start a browser download of the ICS file.
|
|
23
31
|
*
|
|
24
|
-
* @
|
|
25
|
-
* @
|
|
32
|
+
* @default false
|
|
33
|
+
* @platform Web
|
|
34
|
+
* @since 7.3.0
|
|
26
35
|
*/
|
|
27
|
-
|
|
36
|
+
autoDownloadIcsFile?: boolean;
|
|
28
37
|
/**
|
|
29
|
-
* @platform Android, iOS
|
|
30
|
-
* @since
|
|
38
|
+
* @platform Android, iOS, Web
|
|
39
|
+
* @since 7.1.0
|
|
31
40
|
*/
|
|
32
|
-
|
|
41
|
+
availability?: EventAvailability;
|
|
33
42
|
/**
|
|
34
43
|
* @platform Android, iOS
|
|
35
44
|
* @since 0.1.0
|
|
36
45
|
*/
|
|
37
|
-
|
|
46
|
+
calendarId?: string;
|
|
38
47
|
/**
|
|
39
|
-
* @
|
|
48
|
+
* @example #6750A4
|
|
49
|
+
* @platform Android
|
|
40
50
|
* @since 7.1.0
|
|
41
51
|
*/
|
|
42
|
-
|
|
52
|
+
color?: string;
|
|
43
53
|
/**
|
|
54
|
+
* Whether to save immediately (`true`) or batch changes for later (`false`).
|
|
55
|
+
*
|
|
56
|
+
* @default true
|
|
44
57
|
* @platform iOS
|
|
45
|
-
* @
|
|
58
|
+
* @see {@link CalendarOperations#commit}
|
|
59
|
+
* @since 7.1.0
|
|
46
60
|
*/
|
|
47
|
-
|
|
61
|
+
commit?: boolean;
|
|
48
62
|
/**
|
|
49
|
-
* @platform Android, iOS
|
|
63
|
+
* @platform Android, iOS, Web
|
|
50
64
|
* @since 7.1.0
|
|
51
65
|
*/
|
|
52
66
|
description?: string;
|
|
53
67
|
/**
|
|
54
|
-
*
|
|
68
|
+
* Duration of the event in RFC2445 format.
|
|
69
|
+
* On Web, used when `endDate` is omitted; `endDate` wins if both are set.
|
|
70
|
+
*
|
|
71
|
+
* @example P1D (1 day), P3W (3 weeks), P2DT4H30M (2 days, 4 hours, and 30 minutes).
|
|
72
|
+
* @platform Android, Web
|
|
73
|
+
* @see {@link https://datatracker.ietf.org/doc/html/rfc2445}
|
|
55
74
|
* @since 7.1.0
|
|
56
75
|
*/
|
|
57
|
-
|
|
76
|
+
duration?: string;
|
|
58
77
|
/**
|
|
59
|
-
*
|
|
78
|
+
* @platform Android, iOS, Web
|
|
79
|
+
* @since 0.1.0
|
|
80
|
+
*/
|
|
81
|
+
endDate?: number;
|
|
82
|
+
/**
|
|
83
|
+
* Download filename for the `.ics` file.
|
|
84
|
+
* When omitted, a name is derived from `title` (fallback `event.ics`).
|
|
85
|
+
* If the value has no `.ics` extension, `.ics` is appended.
|
|
60
86
|
*
|
|
61
|
-
* @
|
|
62
|
-
* @
|
|
87
|
+
* @example 'team-standup.ics'
|
|
88
|
+
* @platform Web
|
|
89
|
+
* @since 7.3.0
|
|
63
90
|
*/
|
|
64
|
-
|
|
91
|
+
icsFileName?: string;
|
|
65
92
|
/**
|
|
66
|
-
* @
|
|
67
|
-
* @
|
|
68
|
-
* @since 7.1.0
|
|
93
|
+
* @platform Android, iOS, Web
|
|
94
|
+
* @since 0.1.0
|
|
69
95
|
*/
|
|
70
|
-
|
|
96
|
+
isAllDay?: boolean;
|
|
71
97
|
/**
|
|
72
|
-
*
|
|
73
|
-
*
|
|
74
|
-
* @example P1D (1 day), P3W (3 weeks), P2DT4H30M (2 days, 4 hours, and 30 minutes).
|
|
75
|
-
* @platform Android
|
|
76
|
-
* @see {@link https://datatracker.ietf.org/doc/html/rfc2445}
|
|
77
|
-
* @since 7.1.0
|
|
98
|
+
* @platform Android, iOS, Web
|
|
99
|
+
* @since 0.1.0
|
|
78
100
|
*/
|
|
79
|
-
|
|
101
|
+
location?: string;
|
|
80
102
|
/**
|
|
81
|
-
*
|
|
103
|
+
* Email of the event organizer.
|
|
82
104
|
*
|
|
83
|
-
* @
|
|
84
|
-
* @platform iOS
|
|
85
|
-
* @see {@link CalendarOperations#commit}
|
|
105
|
+
* @platform Android, Web
|
|
86
106
|
* @since 7.1.0
|
|
87
107
|
*/
|
|
88
|
-
|
|
108
|
+
organizer?: string;
|
|
89
109
|
/**
|
|
90
|
-
*
|
|
110
|
+
* Rules for creating a recurring event.
|
|
91
111
|
*
|
|
92
|
-
* @platform Android
|
|
93
|
-
* @since 7.
|
|
112
|
+
* @platform Android, iOS, Web
|
|
113
|
+
* @since 7.3.0
|
|
94
114
|
*/
|
|
95
|
-
|
|
115
|
+
recurrence?: EventRecurrenceRule;
|
|
116
|
+
/**
|
|
117
|
+
* @platform Android, iOS, Web
|
|
118
|
+
* @since 0.1.0
|
|
119
|
+
*/
|
|
120
|
+
startDate?: number;
|
|
121
|
+
/**
|
|
122
|
+
* @platform Android, iOS, Web
|
|
123
|
+
* @since 0.4.0
|
|
124
|
+
*/
|
|
125
|
+
title: string;
|
|
126
|
+
/**
|
|
127
|
+
* @platform iOS, Web
|
|
128
|
+
* @since 0.1.0
|
|
129
|
+
*/
|
|
130
|
+
url?: string;
|
|
96
131
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-event-options.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/create-event-options.ts"],"names":[],"mappings":"","sourcesContent":["import { EventAvailability } from
|
|
1
|
+
{"version":3,"file":"create-event-options.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/create-event-options.ts"],"names":[],"mappings":"","sourcesContent":["import type { EventAvailability } from '../enums/event-availability';\n\nimport type { EventGuest } from './event-guest';\nimport type { EventRecurrenceRule } from './event-recurrence-rule';\n\n/**\n * @since 7.1.0\n */\nexport interface CreateEventOptions {\n /**\n * Alert times in minutes relative to the event start.\n * Use negative numbers for alerts before the start, and positive numbers for alerts after the start.\n *\n * @example\n * // -1440 -> 1 day before\n * // -60 -> 1 hour before\n * // 30 -> 30 minutes after\n * [-1440, -60, 30]\n *\n * @platform Android, iOS, Web\n * @since 7.1.0\n */\n alerts?: number[];\n /**\n * The event guests.\n *\n * @platform Android, Web\n * @since 7.1.0\n */\n attendees?: EventGuest[];\n /**\n * Start a browser download of the ICS file.\n *\n * @default false\n * @platform Web\n * @since 7.3.0\n */\n autoDownloadIcsFile?: boolean;\n /**\n * @platform Android, iOS, Web\n * @since 7.1.0\n */\n availability?: EventAvailability;\n /**\n * @platform Android, iOS\n * @since 0.1.0\n */\n calendarId?: string;\n /**\n * @example #6750A4\n * @platform Android\n * @since 7.1.0\n */\n color?: string;\n /**\n * Whether to save immediately (`true`) or batch changes for later (`false`).\n *\n * @default true\n * @platform iOS\n * @see {@link CalendarOperations#commit}\n * @since 7.1.0\n */\n commit?: boolean;\n /**\n * @platform Android, iOS, Web\n * @since 7.1.0\n */\n description?: string;\n /**\n * Duration of the event in RFC2445 format.\n * On Web, used when `endDate` is omitted; `endDate` wins if both are set.\n *\n * @example P1D (1 day), P3W (3 weeks), P2DT4H30M (2 days, 4 hours, and 30 minutes).\n * @platform Android, Web\n * @see {@link https://datatracker.ietf.org/doc/html/rfc2445}\n * @since 7.1.0\n */\n duration?: string;\n /**\n * @platform Android, iOS, Web\n * @since 0.1.0\n */\n endDate?: number;\n /**\n * Download filename for the `.ics` file.\n * When omitted, a name is derived from `title` (fallback `event.ics`).\n * If the value has no `.ics` extension, `.ics` is appended.\n *\n * @example 'team-standup.ics'\n * @platform Web\n * @since 7.3.0\n */\n icsFileName?: string;\n /**\n * @platform Android, iOS, Web\n * @since 0.1.0\n */\n isAllDay?: boolean;\n /**\n * @platform Android, iOS, Web\n * @since 0.1.0\n */\n location?: string;\n /**\n * Email of the event organizer.\n *\n * @platform Android, Web\n * @since 7.1.0\n */\n organizer?: string;\n /**\n * Rules for creating a recurring event.\n *\n * @platform Android, iOS, Web\n * @since 7.3.0\n */\n recurrence?: EventRecurrenceRule;\n /**\n * @platform Android, iOS, Web\n * @since 0.1.0\n */\n startDate?: number;\n /**\n * @platform Android, iOS, Web\n * @since 0.4.0\n */\n title: string;\n /**\n * @platform iOS, Web\n * @since 0.1.0\n */\n url?: string;\n}\n"]}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @since 7.3.0
|
|
3
|
+
*/
|
|
4
|
+
export interface CreateEventResult {
|
|
5
|
+
/**
|
|
6
|
+
* An `.ics` file (`text/calendar`) with one `VEVENT`.
|
|
7
|
+
* Always `null` on Android and iOS.
|
|
8
|
+
*
|
|
9
|
+
* @platform Web
|
|
10
|
+
* @since 7.3.0
|
|
11
|
+
*/
|
|
12
|
+
ics: File | null;
|
|
13
|
+
/**
|
|
14
|
+
* The identifier of the created event.
|
|
15
|
+
* Always `null` on Web.
|
|
16
|
+
* Present on Android and iOS after a successful create.
|
|
17
|
+
*
|
|
18
|
+
* @platform Android, iOS
|
|
19
|
+
* @since 0.4.0
|
|
20
|
+
*/
|
|
21
|
+
id: string | null;
|
|
22
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-event-result.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/create-event-result.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * @since 7.3.0\n */\nexport interface CreateEventResult {\n /**\n * An `.ics` file (`text/calendar`) with one `VEVENT`.\n * Always `null` on Android and iOS.\n *\n * @platform Web\n * @since 7.3.0\n */\n ics: File | null;\n /**\n * The identifier of the created event.\n * Always `null` on Web.\n * Present on Android and iOS after a successful create.\n *\n * @platform Android, iOS\n * @since 0.4.0\n */\n id: string | null;\n}\n"]}
|
|
@@ -1,70 +1,107 @@
|
|
|
1
|
-
import { EventAvailability } from
|
|
1
|
+
import type { EventAvailability } from '../enums/event-availability';
|
|
2
|
+
import type { EventRecurrenceRule } from './event-recurrence-rule';
|
|
2
3
|
/**
|
|
3
4
|
* @since 7.1.0
|
|
4
5
|
*/
|
|
5
6
|
export interface CreateEventWithPromptOptions {
|
|
6
7
|
/**
|
|
7
|
-
*
|
|
8
|
-
*
|
|
8
|
+
* Alert times in minutes relative to the event start.
|
|
9
|
+
* Use negative numbers for reminders before the start, and positive numbers for reminders after the start.
|
|
10
|
+
* On iOS only 2 alerts are supported.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* // -1440 -> 1 day before
|
|
14
|
+
* // -60 -> 1 hour before
|
|
15
|
+
* // 30 -> 30 minutes after
|
|
16
|
+
* [-1440, -60, 30]
|
|
17
|
+
*
|
|
18
|
+
* @platform iOS, Web
|
|
19
|
+
* @since 7.1.0
|
|
9
20
|
*/
|
|
10
|
-
|
|
21
|
+
alerts?: number[];
|
|
11
22
|
/**
|
|
12
|
-
*
|
|
13
|
-
*
|
|
23
|
+
* Start a browser download of the ICS file.
|
|
24
|
+
*
|
|
25
|
+
* @default true
|
|
26
|
+
* @platform Web
|
|
27
|
+
* @since 7.3.0
|
|
14
28
|
*/
|
|
15
|
-
|
|
29
|
+
autoDownloadIcsFile?: boolean;
|
|
16
30
|
/**
|
|
17
|
-
* @platform Android, iOS
|
|
18
|
-
* @since
|
|
31
|
+
* @platform Android, iOS, Web
|
|
32
|
+
* @since 7.1.0
|
|
19
33
|
*/
|
|
20
|
-
|
|
34
|
+
availability?: EventAvailability;
|
|
21
35
|
/**
|
|
22
|
-
* @platform
|
|
36
|
+
* @platform iOS
|
|
23
37
|
* @since 0.1.0
|
|
24
38
|
*/
|
|
25
|
-
|
|
39
|
+
calendarId?: string;
|
|
26
40
|
/**
|
|
27
|
-
* @platform Android, iOS
|
|
28
|
-
* @since
|
|
41
|
+
* @platform Android, iOS, Web
|
|
42
|
+
* @since 7.1.0
|
|
29
43
|
*/
|
|
30
|
-
|
|
44
|
+
description?: string;
|
|
31
45
|
/**
|
|
32
|
-
* @platform Android, iOS
|
|
46
|
+
* @platform Android, iOS, Web
|
|
33
47
|
* @since 0.1.0
|
|
34
48
|
*/
|
|
35
|
-
|
|
49
|
+
endDate?: number;
|
|
36
50
|
/**
|
|
37
|
-
*
|
|
38
|
-
*
|
|
51
|
+
* Download filename for the `.ics` file.
|
|
52
|
+
* When omitted, a name is derived from `title` (fallback `event.ics`).
|
|
53
|
+
* If the value has no `.ics` extension, `.ics` is appended.
|
|
39
54
|
*
|
|
40
|
-
* @example
|
|
41
|
-
*
|
|
42
|
-
*
|
|
55
|
+
* @example 'planning-session.ics'
|
|
56
|
+
* @platform Web
|
|
57
|
+
* @since 7.3.0
|
|
58
|
+
*/
|
|
59
|
+
icsFileName?: string;
|
|
60
|
+
/**
|
|
61
|
+
* An array of emails to invite.
|
|
43
62
|
*
|
|
44
|
-
* @platform
|
|
63
|
+
* @platform Android
|
|
45
64
|
* @since 7.1.0
|
|
46
65
|
*/
|
|
47
|
-
|
|
66
|
+
invitees?: string[];
|
|
48
67
|
/**
|
|
49
|
-
* @platform iOS
|
|
68
|
+
* @platform Android, iOS, Web
|
|
50
69
|
* @since 0.1.0
|
|
51
70
|
*/
|
|
52
|
-
|
|
71
|
+
isAllDay?: boolean;
|
|
53
72
|
/**
|
|
54
|
-
* @platform Android, iOS
|
|
55
|
-
* @since
|
|
73
|
+
* @platform Android, iOS, Web
|
|
74
|
+
* @since 0.1.0
|
|
56
75
|
*/
|
|
57
|
-
|
|
76
|
+
location?: string;
|
|
58
77
|
/**
|
|
59
|
-
*
|
|
60
|
-
*
|
|
78
|
+
* Confirm dialog message.
|
|
79
|
+
* When omitted, the dialog uses the event title and time summary.
|
|
80
|
+
*
|
|
81
|
+
* @platform Web
|
|
82
|
+
* @since 7.3.0
|
|
61
83
|
*/
|
|
62
|
-
|
|
84
|
+
promptMessage?: string;
|
|
63
85
|
/**
|
|
64
|
-
*
|
|
86
|
+
* Rules for creating a recurring event.
|
|
65
87
|
*
|
|
66
|
-
* @platform Android
|
|
67
|
-
* @since 7.
|
|
88
|
+
* @platform Android, iOS, Web
|
|
89
|
+
* @since 7.3.0
|
|
68
90
|
*/
|
|
69
|
-
|
|
91
|
+
recurrence?: EventRecurrenceRule;
|
|
92
|
+
/**
|
|
93
|
+
* @platform Android, iOS, Web
|
|
94
|
+
* @since 0.1.0
|
|
95
|
+
*/
|
|
96
|
+
startDate?: number;
|
|
97
|
+
/**
|
|
98
|
+
* @platform Android, iOS, Web
|
|
99
|
+
* @since 0.1.0
|
|
100
|
+
*/
|
|
101
|
+
title?: string;
|
|
102
|
+
/**
|
|
103
|
+
* @platform iOS, Web
|
|
104
|
+
* @since 0.1.0
|
|
105
|
+
*/
|
|
106
|
+
url?: string;
|
|
70
107
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-event-with-prompt-options.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/create-event-with-prompt-options.ts"],"names":[],"mappings":"","sourcesContent":["import { EventAvailability } from
|
|
1
|
+
{"version":3,"file":"create-event-with-prompt-options.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/create-event-with-prompt-options.ts"],"names":[],"mappings":"","sourcesContent":["import type { EventAvailability } from '../enums/event-availability';\n\nimport type { EventRecurrenceRule } from './event-recurrence-rule';\n\n/**\n * @since 7.1.0\n */\nexport interface CreateEventWithPromptOptions {\n /**\n * Alert times in minutes relative to the event start.\n * Use negative numbers for reminders before the start, and positive numbers for reminders after the start.\n * On iOS only 2 alerts are supported.\n *\n * @example\n * // -1440 -> 1 day before\n * // -60 -> 1 hour before\n * // 30 -> 30 minutes after\n * [-1440, -60, 30]\n *\n * @platform iOS, Web\n * @since 7.1.0\n */\n alerts?: number[];\n /**\n * Start a browser download of the ICS file.\n *\n * @default true\n * @platform Web\n * @since 7.3.0\n */\n autoDownloadIcsFile?: boolean;\n /**\n * @platform Android, iOS, Web\n * @since 7.1.0\n */\n availability?: EventAvailability;\n /**\n * @platform iOS\n * @since 0.1.0\n */\n calendarId?: string;\n /**\n * @platform Android, iOS, Web\n * @since 7.1.0\n */\n description?: string;\n /**\n * @platform Android, iOS, Web\n * @since 0.1.0\n */\n endDate?: number;\n /**\n * Download filename for the `.ics` file.\n * When omitted, a name is derived from `title` (fallback `event.ics`).\n * If the value has no `.ics` extension, `.ics` is appended.\n *\n * @example 'planning-session.ics'\n * @platform Web\n * @since 7.3.0\n */\n icsFileName?: string;\n /**\n * An array of emails to invite.\n *\n * @platform Android\n * @since 7.1.0\n */\n invitees?: string[];\n /**\n * @platform Android, iOS, Web\n * @since 0.1.0\n */\n isAllDay?: boolean;\n /**\n * @platform Android, iOS, Web\n * @since 0.1.0\n */\n location?: string;\n /**\n * Confirm dialog message.\n * When omitted, the dialog uses the event title and time summary.\n *\n * @platform Web\n * @since 7.3.0\n */\n promptMessage?: string;\n /**\n * Rules for creating a recurring event.\n *\n * @platform Android, iOS, Web\n * @since 7.3.0\n */\n recurrence?: EventRecurrenceRule;\n /**\n * @platform Android, iOS, Web\n * @since 0.1.0\n */\n startDate?: number;\n /**\n * @platform Android, iOS, Web\n * @since 0.1.0\n */\n title?: string;\n /**\n * @platform iOS, Web\n * @since 0.1.0\n */\n url?: string;\n}\n"]}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @since 7.3.0
|
|
3
|
+
*/
|
|
4
|
+
export interface CreateEventWithPromptResult {
|
|
5
|
+
/**
|
|
6
|
+
* An `.ics` file (`text/calendar`) with one `VEVENT`.
|
|
7
|
+
* Always `null` on Android and iOS.
|
|
8
|
+
* On Web, set when the user confirms; `null` when the user cancels.
|
|
9
|
+
*
|
|
10
|
+
* @platform Web
|
|
11
|
+
* @since 7.3.0
|
|
12
|
+
*/
|
|
13
|
+
ics: File | null;
|
|
14
|
+
/**
|
|
15
|
+
* The identifier of the created event.
|
|
16
|
+
* Always `null` on Android and Web.
|
|
17
|
+
* Present on iOS when the user saves.
|
|
18
|
+
*
|
|
19
|
+
* @platform Android, iOS
|
|
20
|
+
* @since 0.1.0
|
|
21
|
+
*/
|
|
22
|
+
id: string | null;
|
|
23
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-event-with-prompt-result.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/create-event-with-prompt-result.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * @since 7.3.0\n */\nexport interface CreateEventWithPromptResult {\n /**\n * An `.ics` file (`text/calendar`) with one `VEVENT`.\n * Always `null` on Android and iOS.\n * On Web, set when the user confirms; `null` when the user cancels.\n *\n * @platform Web\n * @since 7.3.0\n */\n ics: File | null;\n /**\n * The identifier of the created event.\n * Always `null` on Android and Web.\n * Present on iOS when the user saves.\n *\n * @platform Android, iOS\n * @since 0.1.0\n */\n id: string | null;\n}\n"]}
|
|
@@ -1,20 +1,44 @@
|
|
|
1
|
-
import type { RecurrenceRule } from
|
|
1
|
+
import type { RecurrenceRule } from './recurrence-rule';
|
|
2
2
|
/**
|
|
3
3
|
* @since 7.1.0
|
|
4
4
|
*/
|
|
5
5
|
export interface CreateReminderOptions {
|
|
6
6
|
/**
|
|
7
|
+
* Alert times in minutes relative to the reminder start.
|
|
8
|
+
* Use negative numbers for alerts before the start, and positive numbers for alerts after the start.
|
|
9
|
+
*
|
|
10
|
+
* On iOS only 2 alerts are supported.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* // -1440 -> 1 day before
|
|
14
|
+
* // -60 -> 1 hour before
|
|
15
|
+
* // 30 -> 30 minutes after
|
|
16
|
+
* [-1440, -60, 30]
|
|
17
|
+
*
|
|
7
18
|
* @since 7.1.0
|
|
8
19
|
*/
|
|
9
|
-
|
|
20
|
+
alerts?: number[];
|
|
21
|
+
/**
|
|
22
|
+
* Whether to save immediately (`true`) or batch changes for later (`false`).
|
|
23
|
+
* Pass `false` to batch multiple changes and commit them together using `CapacitorCalendar.commit()`, which is more efficient than committing each save individually.
|
|
24
|
+
*
|
|
25
|
+
* @default true
|
|
26
|
+
* @platform iOS
|
|
27
|
+
* @see {@link CalendarOperations#commit}
|
|
28
|
+
* @since 7.3.0
|
|
29
|
+
*/
|
|
30
|
+
commit?: boolean;
|
|
10
31
|
/**
|
|
11
32
|
* @since 7.1.0
|
|
12
33
|
*/
|
|
13
|
-
|
|
34
|
+
completionDate?: number;
|
|
14
35
|
/**
|
|
36
|
+
* When the reminder should be completed, in milliseconds since the epoch.
|
|
37
|
+
* On iOS, if `startDate` is omitted, it is set to this value.
|
|
38
|
+
*
|
|
15
39
|
* @since 7.1.0
|
|
16
40
|
*/
|
|
17
|
-
|
|
41
|
+
dueDate?: number;
|
|
18
42
|
/**
|
|
19
43
|
* @since 7.1.0
|
|
20
44
|
*/
|
|
@@ -22,33 +46,39 @@ export interface CreateReminderOptions {
|
|
|
22
46
|
/**
|
|
23
47
|
* @since 7.1.0
|
|
24
48
|
*/
|
|
25
|
-
|
|
49
|
+
listId?: string;
|
|
26
50
|
/**
|
|
27
51
|
* @since 7.1.0
|
|
28
52
|
*/
|
|
29
|
-
|
|
53
|
+
location?: string;
|
|
30
54
|
/**
|
|
31
55
|
* @since 7.1.0
|
|
32
56
|
*/
|
|
33
|
-
|
|
57
|
+
notes?: string;
|
|
34
58
|
/**
|
|
59
|
+
* Priority: `0` none, `1` highest through `9` lowest.
|
|
60
|
+
*
|
|
35
61
|
* @since 7.1.0
|
|
36
62
|
*/
|
|
37
|
-
|
|
63
|
+
priority?: number;
|
|
38
64
|
/**
|
|
65
|
+
* @platform iOS
|
|
39
66
|
* @since 7.1.0
|
|
40
67
|
*/
|
|
41
|
-
|
|
68
|
+
recurrence?: RecurrenceRule;
|
|
42
69
|
/**
|
|
70
|
+
* When the reminder starts, in milliseconds since the epoch.
|
|
71
|
+
* Relative `alerts` use this date.
|
|
72
|
+
*
|
|
43
73
|
* @since 7.1.0
|
|
44
74
|
*/
|
|
45
|
-
|
|
75
|
+
startDate?: number;
|
|
46
76
|
/**
|
|
47
77
|
* @since 7.1.0
|
|
48
78
|
*/
|
|
49
|
-
|
|
79
|
+
title: string;
|
|
50
80
|
/**
|
|
51
81
|
* @since 7.1.0
|
|
52
82
|
*/
|
|
53
|
-
|
|
83
|
+
url?: string;
|
|
54
84
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-reminder-options.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/create-reminder-options.ts"],"names":[],"mappings":"","sourcesContent":["import type { RecurrenceRule } from
|
|
1
|
+
{"version":3,"file":"create-reminder-options.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/create-reminder-options.ts"],"names":[],"mappings":"","sourcesContent":["import type { RecurrenceRule } from './recurrence-rule';\n\n/**\n * @since 7.1.0\n */\nexport interface CreateReminderOptions {\n /**\n * Alert times in minutes relative to the reminder start.\n * Use negative numbers for alerts before the start, and positive numbers for alerts after the start.\n *\n * On iOS only 2 alerts are supported.\n *\n * @example\n * // -1440 -> 1 day before\n * // -60 -> 1 hour before\n * // 30 -> 30 minutes after\n * [-1440, -60, 30]\n *\n * @since 7.1.0\n */\n alerts?: number[];\n /**\n * Whether to save immediately (`true`) or batch changes for later (`false`).\n * Pass `false` to batch multiple changes and commit them together using `CapacitorCalendar.commit()`, which is more efficient than committing each save individually.\n *\n * @default true\n * @platform iOS\n * @see {@link CalendarOperations#commit}\n * @since 7.3.0\n */\n commit?: boolean;\n /**\n * @since 7.1.0\n */\n completionDate?: number;\n /**\n * When the reminder should be completed, in milliseconds since the epoch.\n * On iOS, if `startDate` is omitted, it is set to this value.\n *\n * @since 7.1.0\n */\n dueDate?: number;\n /**\n * @since 7.1.0\n */\n isCompleted?: boolean;\n /**\n * @since 7.1.0\n */\n listId?: string;\n /**\n * @since 7.1.0\n */\n location?: string;\n /**\n * @since 7.1.0\n */\n notes?: string;\n /**\n * Priority: `0` none, `1` highest through `9` lowest.\n *\n * @since 7.1.0\n */\n priority?: number;\n /**\n * @platform iOS\n * @since 7.1.0\n */\n recurrence?: RecurrenceRule;\n /**\n * When the reminder starts, in milliseconds since the epoch.\n * Relative `alerts` use this date.\n *\n * @since 7.1.0\n */\n startDate?: number;\n /**\n * @since 7.1.0\n */\n title: string;\n /**\n * @since 7.1.0\n */\n url?: string;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-reminder-result.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/create-reminder-result.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * @since 0.5.0\n */\nexport interface CreateReminderResult {\n /**\n * Identifier of the newly created reminder.\n *\n * @platform iOS\n * @since 0.5.0\n */\n id: string;\n}\n"]}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import type { SystemColorName } from '../types/system-color-name';
|
|
2
|
+
/**
|
|
3
|
+
* @since 7.3.0
|
|
4
|
+
*/
|
|
5
|
+
export interface CreateRemindersListOptions {
|
|
6
|
+
/**
|
|
7
|
+
* Named color (`blue`, …) or hex `#RRGGBB` / `#RRGGBBAA`.
|
|
8
|
+
* When omitted, the platform chooses the list color.
|
|
9
|
+
*
|
|
10
|
+
* @example 'indigo'
|
|
11
|
+
* @example #007AFF
|
|
12
|
+
* @platform iOS
|
|
13
|
+
* @since 7.3.0
|
|
14
|
+
*/
|
|
15
|
+
color?: SystemColorName | `#${string}`;
|
|
16
|
+
/**
|
|
17
|
+
* Whether to save the list immediately.
|
|
18
|
+
* Pass `false` to batch changes and commit them with `CapacitorCalendar.commit()`.
|
|
19
|
+
*
|
|
20
|
+
* @example false
|
|
21
|
+
* @default true
|
|
22
|
+
* @platform iOS
|
|
23
|
+
* @see {@link CalendarOperations#commit}
|
|
24
|
+
* @since 7.3.0
|
|
25
|
+
*/
|
|
26
|
+
commit?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* The calendar source (account) where the list should be created.
|
|
29
|
+
*
|
|
30
|
+
* If provided, it should match a source from `fetchAllCalendarSources()`.
|
|
31
|
+
* If omitted or unmatched, iCloud is used when available, otherwise the local source.
|
|
32
|
+
*
|
|
33
|
+
* @example 'A1234567-ABCD-EFGH-IJKL-MNOPQRSTUVWX'
|
|
34
|
+
* @platform iOS
|
|
35
|
+
* @since 7.3.0
|
|
36
|
+
*/
|
|
37
|
+
sourceId?: string;
|
|
38
|
+
/**
|
|
39
|
+
* The title of the list.
|
|
40
|
+
*
|
|
41
|
+
* @example 'Groceries'
|
|
42
|
+
* @platform iOS
|
|
43
|
+
* @since 7.3.0
|
|
44
|
+
*/
|
|
45
|
+
title: string;
|
|
46
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-reminders-list-options.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/create-reminders-list-options.ts"],"names":[],"mappings":"","sourcesContent":["import type { SystemColorName } from '../types/system-color-name';\n\n/**\n * @since 7.3.0\n */\nexport interface CreateRemindersListOptions {\n /**\n * Named color (`blue`, …) or hex `#RRGGBB` / `#RRGGBBAA`.\n * When omitted, the platform chooses the list color.\n *\n * @example 'indigo'\n * @example #007AFF\n * @platform iOS\n * @since 7.3.0\n */\n color?: SystemColorName | `#${string}`;\n /**\n * Whether to save the list immediately.\n * Pass `false` to batch changes and commit them with `CapacitorCalendar.commit()`.\n *\n * @example false\n * @default true\n * @platform iOS\n * @see {@link CalendarOperations#commit}\n * @since 7.3.0\n */\n commit?: boolean;\n /**\n * The calendar source (account) where the list should be created.\n *\n * If provided, it should match a source from `fetchAllCalendarSources()`.\n * If omitted or unmatched, iCloud is used when available, otherwise the local source.\n *\n * @example 'A1234567-ABCD-EFGH-IJKL-MNOPQRSTUVWX'\n * @platform iOS\n * @since 7.3.0\n */\n sourceId?: string;\n /**\n * The title of the list.\n *\n * @example 'Groceries'\n * @platform iOS\n * @since 7.3.0\n */\n title: string;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-reminders-list-result.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/create-reminders-list-result.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * @since 7.3.0\n */\nexport interface CreateRemindersListResult {\n /**\n * Identifier of the newly created reminders list.\n *\n * @platform iOS\n * @since 7.3.0\n */\n id: string;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-calendar-options.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/delete-calendar-options.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * @since 7.1.0\n */\nexport interface DeleteCalendarOptions {\n /**\n * @since 7.1.0\n */\n id: string;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"delete-calendar-options.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/delete-calendar-options.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * @since 7.1.0\n */\nexport interface DeleteCalendarOptions {\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n id: string;\n}\n"]}
|