@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,151 +1,226 @@
|
|
|
1
|
-
import { AttendeeRole } from
|
|
2
|
-
import { AttendeeStatus } from
|
|
3
|
-
import { AttendeeType } from
|
|
4
|
-
import { EventAvailability } from
|
|
5
|
-
import { EventStatus } from
|
|
1
|
+
import type { AttendeeRole } from '../enums/attendee-role';
|
|
2
|
+
import type { AttendeeStatus } from '../enums/attendee-status';
|
|
3
|
+
import type { AttendeeType } from '../enums/attendee-type';
|
|
4
|
+
import type { EventAvailability } from '../enums/event-availability';
|
|
5
|
+
import type { EventStatus } from '../enums/event-status';
|
|
6
6
|
/**
|
|
7
7
|
* @since 7.1.0
|
|
8
8
|
*/
|
|
9
9
|
export interface CalendarEvent {
|
|
10
10
|
/**
|
|
11
|
+
* Alert times in minutes relative to the event start.
|
|
12
|
+
*
|
|
11
13
|
* @platform Android, iOS
|
|
12
14
|
* @since 7.1.0
|
|
13
15
|
*/
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* @platform Android, iOS
|
|
17
|
-
* @since 7.1.0
|
|
18
|
-
*/
|
|
19
|
-
title: string;
|
|
16
|
+
alerts: number[];
|
|
20
17
|
/**
|
|
21
18
|
* @platform Android, iOS
|
|
22
19
|
* @since 7.1.0
|
|
23
20
|
*/
|
|
24
|
-
|
|
21
|
+
attendees: {
|
|
22
|
+
/**
|
|
23
|
+
* @platform Android
|
|
24
|
+
* @since 7.1.0
|
|
25
|
+
*/
|
|
26
|
+
email: string | null;
|
|
27
|
+
/**
|
|
28
|
+
* @platform Android, iOS
|
|
29
|
+
* @since 7.1.0
|
|
30
|
+
*/
|
|
31
|
+
name: string | null;
|
|
32
|
+
/**
|
|
33
|
+
* Equivalent to ATTENDEE_RELATIONSHIP on Android.
|
|
34
|
+
* Equivalent to EKParticipantRole on iOS.
|
|
35
|
+
*
|
|
36
|
+
* @platform Android, iOS
|
|
37
|
+
* @since 7.1.0
|
|
38
|
+
*/
|
|
39
|
+
role: AttendeeRole | null;
|
|
40
|
+
/**
|
|
41
|
+
* Equivalent to ATTENDEE_STATUS on Android.
|
|
42
|
+
* Equivalent to EKParticipantStatus on iOS.
|
|
43
|
+
*
|
|
44
|
+
* @platform Android, iOS
|
|
45
|
+
* @since 7.1.0
|
|
46
|
+
*/
|
|
47
|
+
status: AttendeeStatus | null;
|
|
48
|
+
/**
|
|
49
|
+
* Equivalent to ATTENDEE_TYPE on Android.
|
|
50
|
+
* Equivalent to EKParticipantType on iOS.
|
|
51
|
+
*
|
|
52
|
+
* @platform Android, iOS
|
|
53
|
+
* @since 7.1.0
|
|
54
|
+
*/
|
|
55
|
+
type: AttendeeType | null;
|
|
56
|
+
}[];
|
|
25
57
|
/**
|
|
26
58
|
* @platform Android, iOS
|
|
27
59
|
* @since 7.1.0
|
|
28
60
|
*/
|
|
29
|
-
|
|
61
|
+
availability: EventAvailability | null;
|
|
30
62
|
/**
|
|
31
|
-
* @platform
|
|
63
|
+
* @platform iOS
|
|
64
|
+
* @see {@link https://developer.apple.com/documentation/eventkit/ekevent/birthdaycontactidentifier}
|
|
32
65
|
* @since 7.1.0
|
|
33
66
|
*/
|
|
34
|
-
|
|
67
|
+
birthdayContactIdentifier: string | null;
|
|
35
68
|
/**
|
|
36
69
|
* @platform Android, iOS
|
|
37
70
|
* @since 7.1.0
|
|
38
71
|
*/
|
|
39
|
-
|
|
72
|
+
calendarId: string | null;
|
|
40
73
|
/**
|
|
41
|
-
*
|
|
42
|
-
*
|
|
74
|
+
* A stable external id for this calendar item.
|
|
75
|
+
*
|
|
76
|
+
* On iOS this is set when the system provides it. On Android and web it is
|
|
77
|
+
* always `null`. Use `masterId` on Android for the series master id.
|
|
78
|
+
*
|
|
79
|
+
* Do not treat this field as the same as `masterId`.
|
|
80
|
+
* They identify different things on different platforms.
|
|
81
|
+
*
|
|
82
|
+
* For non-detached occurrences of a series, this value is shared across
|
|
83
|
+
* those occurrences. On one device, `id` is often already shared for them.
|
|
84
|
+
* This field is mainly useful as a stable id across devices.
|
|
85
|
+
*
|
|
86
|
+
* Detached exceptions usually get a new identifier.
|
|
87
|
+
* You cannot find the original series from this value.
|
|
88
|
+
* Use `isDetached` and `isPartOfSeries` instead.
|
|
89
|
+
* Do not pass this value where the plugin expects an event `id`.
|
|
90
|
+
*
|
|
91
|
+
* @example "1A2B3C4D-...."
|
|
92
|
+
* @platform iOS
|
|
93
|
+
* @see {@link https://developer.apple.com/documentation/eventkit/ekcalendaritem/calendaritemexternalidentifier}
|
|
94
|
+
* @since 7.3.0
|
|
43
95
|
*/
|
|
44
|
-
|
|
96
|
+
calendarItemExternalIdentifier: string | null;
|
|
45
97
|
/**
|
|
46
98
|
* @platform Android, iOS
|
|
47
99
|
* @since 7.1.0
|
|
48
100
|
*/
|
|
49
|
-
|
|
101
|
+
color: string | null;
|
|
50
102
|
/**
|
|
51
103
|
* @platform iOS
|
|
52
104
|
* @since 7.1.0
|
|
53
105
|
*/
|
|
54
|
-
|
|
106
|
+
creationDate: number | null;
|
|
55
107
|
/**
|
|
56
108
|
* @platform Android, iOS
|
|
57
109
|
* @since 7.1.0
|
|
58
110
|
*/
|
|
59
111
|
description: string | null;
|
|
60
112
|
/**
|
|
61
|
-
* @platform Android
|
|
113
|
+
* @platform Android
|
|
62
114
|
* @since 7.1.0
|
|
63
115
|
*/
|
|
64
|
-
|
|
116
|
+
duration: string | null;
|
|
65
117
|
/**
|
|
66
118
|
* @platform Android, iOS
|
|
67
119
|
* @since 7.1.0
|
|
68
120
|
*/
|
|
69
|
-
|
|
121
|
+
endDate: number;
|
|
70
122
|
/**
|
|
71
123
|
* @platform Android, iOS
|
|
72
124
|
* @since 7.1.0
|
|
73
125
|
*/
|
|
74
|
-
|
|
126
|
+
id: string;
|
|
75
127
|
/**
|
|
76
|
-
* @platform Android
|
|
128
|
+
* @platform Android, iOS
|
|
77
129
|
* @since 7.1.0
|
|
78
130
|
*/
|
|
79
|
-
|
|
131
|
+
isAllDay: boolean;
|
|
80
132
|
/**
|
|
81
133
|
* @platform iOS
|
|
82
134
|
* @since 7.1.0
|
|
83
135
|
*/
|
|
84
136
|
isDetached: boolean | null;
|
|
137
|
+
/**
|
|
138
|
+
* Whether this event belongs to a recurring series.
|
|
139
|
+
*
|
|
140
|
+
* `true` for series occurrences and detached exceptions.
|
|
141
|
+
* `false` for one-off events.
|
|
142
|
+
*
|
|
143
|
+
* Detached exceptions also set `isDetached` (iOS only).
|
|
144
|
+
*
|
|
145
|
+
* @example true
|
|
146
|
+
* @platform Android, iOS
|
|
147
|
+
* @since 7.3.0
|
|
148
|
+
*/
|
|
149
|
+
isPartOfSeries: boolean;
|
|
85
150
|
/**
|
|
86
151
|
* @platform iOS
|
|
87
|
-
* @see {@link https://developer.apple.com/documentation/eventkit/ekevent/birthdaycontactidentifier}
|
|
88
152
|
* @since 7.1.0
|
|
89
153
|
*/
|
|
90
|
-
|
|
154
|
+
lastModifiedDate: number | null;
|
|
91
155
|
/**
|
|
92
156
|
* @platform Android, iOS
|
|
93
157
|
* @since 7.1.0
|
|
94
158
|
*/
|
|
95
|
-
|
|
159
|
+
location: string | null;
|
|
96
160
|
/**
|
|
97
|
-
*
|
|
161
|
+
* The id of the series master for this listed occurrence.
|
|
162
|
+
*
|
|
163
|
+
* On Android this is always a string. On iOS and web it is always `null`.
|
|
164
|
+
* iOS has no public master event id. Use `calendarItemExternalIdentifier`
|
|
165
|
+
* on iOS instead.
|
|
166
|
+
*
|
|
167
|
+
* Do not treat this field as the same as `calendarItemExternalIdentifier`.
|
|
168
|
+
* They identify different things on different platforms.
|
|
169
|
+
*
|
|
170
|
+
* If this row is the master or a one-shot event, `masterId` equals `id`.
|
|
171
|
+
* If this row is an exception, `id` is the exception and `masterId` is the
|
|
172
|
+
* series master.
|
|
173
|
+
*
|
|
174
|
+
* To modify or delete the whole series, pass `masterId` as the `id` option.
|
|
175
|
+
* You still need `span` and `instanceDate` when those APIs require them.
|
|
176
|
+
*
|
|
177
|
+
* In rare sync cases, an exception may temporarily report `masterId` equal
|
|
178
|
+
* to `id` until the platform links it to the series master.
|
|
179
|
+
*
|
|
180
|
+
* @example "42"
|
|
181
|
+
* @platform Android
|
|
182
|
+
* @since 7.3.0
|
|
183
|
+
*/
|
|
184
|
+
masterId: string | null;
|
|
185
|
+
/**
|
|
186
|
+
* @platform Android, iOS
|
|
98
187
|
* @since 7.1.0
|
|
99
188
|
*/
|
|
100
|
-
|
|
189
|
+
organizer: string | null;
|
|
101
190
|
/**
|
|
102
|
-
*
|
|
191
|
+
* Start time of the recurring series, in milliseconds since the epoch.
|
|
192
|
+
*
|
|
193
|
+
* Equals `startDate` for one-off events. On iOS, equals `startDate` when
|
|
194
|
+
* the series start is not available for a detached exception.
|
|
195
|
+
*
|
|
196
|
+
* @example 1719792000000
|
|
197
|
+
* @platform Android, iOS
|
|
198
|
+
* @since 7.3.0
|
|
199
|
+
*/
|
|
200
|
+
seriesStartDate: number;
|
|
201
|
+
/**
|
|
202
|
+
* @platform Android, iOS
|
|
103
203
|
* @since 7.1.0
|
|
104
204
|
*/
|
|
105
|
-
|
|
205
|
+
startDate: number;
|
|
106
206
|
/**
|
|
107
207
|
* @platform Android, iOS
|
|
108
208
|
* @since 7.1.0
|
|
109
209
|
*/
|
|
110
|
-
|
|
111
|
-
/**
|
|
112
|
-
* @platform Android
|
|
113
|
-
* @since 7.1.0
|
|
114
|
-
*/
|
|
115
|
-
email: string | null;
|
|
116
|
-
/**
|
|
117
|
-
* @platform Android, iOS
|
|
118
|
-
* @since 7.1.0
|
|
119
|
-
*/
|
|
120
|
-
name: string | null;
|
|
121
|
-
/**
|
|
122
|
-
* Equivalent to ATTENDEE_RELATIONSHIP on Android.
|
|
123
|
-
* Equivalent to EKParticipantRole on iOS.
|
|
124
|
-
*
|
|
125
|
-
* @platform Android, iOS
|
|
126
|
-
* @since 7.1.0
|
|
127
|
-
*/
|
|
128
|
-
role: AttendeeRole | null;
|
|
129
|
-
/**
|
|
130
|
-
* Equivalent to ATTENDEE_STATUS on Android.
|
|
131
|
-
* Equivalent to EKParticipantStatus on iOS.
|
|
132
|
-
*
|
|
133
|
-
* @platform Android, iOS
|
|
134
|
-
* @since 7.1.0
|
|
135
|
-
*/
|
|
136
|
-
status: AttendeeStatus | null;
|
|
137
|
-
/**
|
|
138
|
-
* Equivalent to ATTENDEE_TYPE on Android.
|
|
139
|
-
* Equivalent to EKParticipantType on iOS.
|
|
140
|
-
*
|
|
141
|
-
* @platform Android, iOS
|
|
142
|
-
* @since 7.1.0
|
|
143
|
-
*/
|
|
144
|
-
type: AttendeeType | null;
|
|
145
|
-
}[];
|
|
210
|
+
status: EventStatus | null;
|
|
146
211
|
/**
|
|
147
212
|
* @platform Android, iOS
|
|
148
213
|
* @since 7.1.0
|
|
149
214
|
*/
|
|
150
215
|
timezone: string | null;
|
|
216
|
+
/**
|
|
217
|
+
* @platform Android, iOS
|
|
218
|
+
* @since 7.1.0
|
|
219
|
+
*/
|
|
220
|
+
title: string;
|
|
221
|
+
/**
|
|
222
|
+
* @platform iOS
|
|
223
|
+
* @since 7.1.0
|
|
224
|
+
*/
|
|
225
|
+
url: string | null;
|
|
151
226
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"calendar-event.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/calendar-event.ts"],"names":[],"mappings":"","sourcesContent":["import { AttendeeRole } from
|
|
1
|
+
{"version":3,"file":"calendar-event.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/calendar-event.ts"],"names":[],"mappings":"","sourcesContent":["import type { AttendeeRole } from '../enums/attendee-role';\nimport type { AttendeeStatus } from '../enums/attendee-status';\nimport type { AttendeeType } from '../enums/attendee-type';\nimport type { EventAvailability } from '../enums/event-availability';\nimport type { EventStatus } from '../enums/event-status';\n\n/**\n * @since 7.1.0\n */\nexport interface CalendarEvent {\n /**\n * Alert times in minutes relative to the event start.\n *\n * @platform Android, iOS\n * @since 7.1.0\n */\n alerts: number[];\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n attendees: {\n /**\n * @platform Android\n * @since 7.1.0\n */\n email: string | null;\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n name: string | null;\n /**\n * Equivalent to ATTENDEE_RELATIONSHIP on Android.\n * Equivalent to EKParticipantRole on iOS.\n *\n * @platform Android, iOS\n * @since 7.1.0\n */\n role: AttendeeRole | null;\n /**\n * Equivalent to ATTENDEE_STATUS on Android.\n * Equivalent to EKParticipantStatus on iOS.\n *\n * @platform Android, iOS\n * @since 7.1.0\n */\n status: AttendeeStatus | null;\n /**\n * Equivalent to ATTENDEE_TYPE on Android.\n * Equivalent to EKParticipantType on iOS.\n *\n * @platform Android, iOS\n * @since 7.1.0\n */\n type: AttendeeType | null;\n }[];\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n availability: EventAvailability | null;\n /**\n * @platform iOS\n * @see {@link https://developer.apple.com/documentation/eventkit/ekevent/birthdaycontactidentifier}\n * @since 7.1.0\n */\n birthdayContactIdentifier: string | null;\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n calendarId: string | null;\n /**\n * A stable external id for this calendar item.\n *\n * On iOS this is set when the system provides it. On Android and web it is\n * always `null`. Use `masterId` on Android for the series master id.\n *\n * Do not treat this field as the same as `masterId`.\n * They identify different things on different platforms.\n *\n * For non-detached occurrences of a series, this value is shared across\n * those occurrences. On one device, `id` is often already shared for them.\n * This field is mainly useful as a stable id across devices.\n *\n * Detached exceptions usually get a new identifier.\n * You cannot find the original series from this value.\n * Use `isDetached` and `isPartOfSeries` instead.\n * Do not pass this value where the plugin expects an event `id`.\n *\n * @example \"1A2B3C4D-....\"\n * @platform iOS\n * @see {@link https://developer.apple.com/documentation/eventkit/ekcalendaritem/calendaritemexternalidentifier}\n * @since 7.3.0\n */\n calendarItemExternalIdentifier: string | null;\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n color: string | null;\n /**\n * @platform iOS\n * @since 7.1.0\n */\n creationDate: number | null;\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n description: string | null;\n /**\n * @platform Android\n * @since 7.1.0\n */\n duration: string | null;\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n endDate: number;\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n id: string;\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n isAllDay: boolean;\n /**\n * @platform iOS\n * @since 7.1.0\n */\n isDetached: boolean | null;\n /**\n * Whether this event belongs to a recurring series.\n *\n * `true` for series occurrences and detached exceptions.\n * `false` for one-off events.\n *\n * Detached exceptions also set `isDetached` (iOS only).\n *\n * @example true\n * @platform Android, iOS\n * @since 7.3.0\n */\n isPartOfSeries: boolean;\n /**\n * @platform iOS\n * @since 7.1.0\n */\n lastModifiedDate: number | null;\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n location: string | null;\n /**\n * The id of the series master for this listed occurrence.\n *\n * On Android this is always a string. On iOS and web it is always `null`.\n * iOS has no public master event id. Use `calendarItemExternalIdentifier`\n * on iOS instead.\n *\n * Do not treat this field as the same as `calendarItemExternalIdentifier`.\n * They identify different things on different platforms.\n *\n * If this row is the master or a one-shot event, `masterId` equals `id`.\n * If this row is an exception, `id` is the exception and `masterId` is the\n * series master.\n *\n * To modify or delete the whole series, pass `masterId` as the `id` option.\n * You still need `span` and `instanceDate` when those APIs require them.\n *\n * In rare sync cases, an exception may temporarily report `masterId` equal\n * to `id` until the platform links it to the series master.\n *\n * @example \"42\"\n * @platform Android\n * @since 7.3.0\n */\n masterId: string | null;\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n organizer: string | null;\n /**\n * Start time of the recurring series, in milliseconds since the epoch.\n *\n * Equals `startDate` for one-off events. On iOS, equals `startDate` when\n * the series start is not available for a detached exception.\n *\n * @example 1719792000000\n * @platform Android, iOS\n * @since 7.3.0\n */\n seriesStartDate: number;\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n startDate: number;\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n status: EventStatus | null;\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n timezone: string | null;\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n title: string;\n /**\n * @platform iOS\n * @since 7.1.0\n */\n url: string | null;\n}\n"]}
|
|
@@ -1,17 +1,20 @@
|
|
|
1
|
-
import { CalendarSourceType } from
|
|
1
|
+
import type { CalendarSourceType } from '../enums/calendar-source-type';
|
|
2
2
|
/**
|
|
3
3
|
* @since 7.1.0
|
|
4
4
|
*/
|
|
5
5
|
export interface CalendarSource {
|
|
6
6
|
/**
|
|
7
|
+
* @platform iOS
|
|
7
8
|
* @since 7.1.0
|
|
8
9
|
*/
|
|
9
10
|
type: CalendarSourceType;
|
|
10
11
|
/**
|
|
12
|
+
* @platform iOS
|
|
11
13
|
* @since 7.1.0
|
|
12
14
|
*/
|
|
13
15
|
id: string;
|
|
14
16
|
/**
|
|
17
|
+
* @platform iOS
|
|
15
18
|
* @since 7.1.0
|
|
16
19
|
*/
|
|
17
20
|
title: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"calendar-source.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/calendar-source.ts"],"names":[],"mappings":"","sourcesContent":["import { CalendarSourceType } from
|
|
1
|
+
{"version":3,"file":"calendar-source.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/calendar-source.ts"],"names":[],"mappings":"","sourcesContent":["import type { CalendarSourceType } from '../enums/calendar-source-type';\n\n/**\n * @since 7.1.0\n */\nexport interface CalendarSource {\n /**\n * @platform iOS\n * @since 7.1.0\n */\n type: CalendarSourceType;\n /**\n * @platform iOS\n * @since 7.1.0\n */\n id: string;\n /**\n * @platform iOS\n * @since 7.1.0\n */\n title: string;\n}\n"]}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import {
|
|
1
|
+
import type { CalendarType } from '../enums/calendar-type';
|
|
2
|
+
import type { SystemColorName } from '../types/system-color-name';
|
|
3
|
+
import type { CalendarSource } from './calendar-source';
|
|
3
4
|
/**
|
|
4
5
|
* @since 7.1.0
|
|
5
6
|
*/
|
|
@@ -10,10 +11,13 @@ export interface Calendar {
|
|
|
10
11
|
*/
|
|
11
12
|
id: string;
|
|
12
13
|
/**
|
|
14
|
+
* Display title of the calendar.
|
|
15
|
+
* May be `null` when the platform does not provide a title.
|
|
16
|
+
*
|
|
13
17
|
* @platform Android, iOS
|
|
14
18
|
* @since 7.1.0
|
|
15
19
|
*/
|
|
16
|
-
title: string;
|
|
20
|
+
title: string | null;
|
|
17
21
|
/**
|
|
18
22
|
* Internal name of the calendar (`CalendarContract.Calendars.NAME`).
|
|
19
23
|
*
|
|
@@ -22,10 +26,24 @@ export interface Calendar {
|
|
|
22
26
|
*/
|
|
23
27
|
internalTitle: string | null;
|
|
24
28
|
/**
|
|
29
|
+
* Hex color string, or null when none is available.
|
|
30
|
+
*
|
|
31
|
+
* Format: `#RRGGBB` when opaque; `#RRGGBBAA` when alpha is below fully opaque.
|
|
32
|
+
*
|
|
25
33
|
* @platform Android, iOS
|
|
34
|
+
* @example #0000FF
|
|
35
|
+
* @example #0000FF80
|
|
26
36
|
* @since 7.1.0
|
|
27
37
|
*/
|
|
28
|
-
color: string;
|
|
38
|
+
color: string | null;
|
|
39
|
+
/**
|
|
40
|
+
* Named color if the stored color matches one of the system colors;
|
|
41
|
+
* otherwise null. May be null in dark mode or for custom hex. Always null on Android.
|
|
42
|
+
*
|
|
43
|
+
* @platform Android, iOS
|
|
44
|
+
* @since 7.3.0
|
|
45
|
+
*/
|
|
46
|
+
colorName?: SystemColorName | null;
|
|
29
47
|
/**
|
|
30
48
|
* @platform iOS
|
|
31
49
|
* @since 7.1.0
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"calendar.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/calendar.ts"],"names":[],"mappings":"","sourcesContent":["import type {
|
|
1
|
+
{"version":3,"file":"calendar.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/calendar.ts"],"names":[],"mappings":"","sourcesContent":["import type { CalendarType } from '../enums/calendar-type';\nimport type { SystemColorName } from '../types/system-color-name';\n\nimport type { CalendarSource } from './calendar-source';\n\n/**\n * @since 7.1.0\n */\nexport interface Calendar {\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n id: string;\n /**\n * Display title of the calendar.\n * May be `null` when the platform does not provide a title.\n *\n * @platform Android, iOS\n * @since 7.1.0\n */\n title: string | null;\n /**\n * Internal name of the calendar (`CalendarContract.Calendars.NAME`).\n *\n * @platform Android\n * @since 7.1.0\n */\n internalTitle: string | null;\n /**\n * Hex color string, or null when none is available.\n *\n * Format: `#RRGGBB` when opaque; `#RRGGBBAA` when alpha is below fully opaque.\n *\n * @platform Android, iOS\n * @example #0000FF\n * @example #0000FF80\n * @since 7.1.0\n */\n color: string | null;\n /**\n * Named color if the stored color matches one of the system colors;\n * otherwise null. May be null in dark mode or for custom hex. Always null on Android.\n *\n * @platform Android, iOS\n * @since 7.3.0\n */\n colorName?: SystemColorName | null;\n /**\n * @platform iOS\n * @since 7.1.0\n */\n isImmutable: boolean | null;\n /**\n * @platform iOS\n * @since 7.1.0\n */\n allowsContentModifications: boolean | null;\n /**\n * @platform iOS\n * @since 7.1.0\n */\n type: CalendarType | null;\n /**\n * @platform iOS\n * @since 7.1.0\n */\n isSubscribed: boolean | null;\n /**\n * @platform iOS\n * @since 7.1.0\n */\n source: CalendarSource | null;\n /**\n * Indicates if the events from this calendar should be shown.\n *\n * @platform Android\n * @since 7.1.0\n */\n visible: boolean | null;\n /**\n * The account under which the calendar is registered.\n *\n * @platform Android\n * @since 7.1.0\n */\n accountName: string | null;\n /**\n * The owner of the calendar.\n *\n * @platform Android\n * @since 7.1.0\n */\n ownerAccount: string | null;\n /**\n * Maximum number of reminders allowed per event.\n *\n * @platform Android\n * @since 7.1.0\n */\n maxReminders: number | null;\n /**\n * @platform Android\n * @since 7.1.0\n */\n location: string | null;\n}\n"]}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { CalendarPermissionScope } from '../enums/calendar-permission-scope';
|
|
2
|
+
/**
|
|
3
|
+
* Options for {@link CalendarAccess#checkPermission}.
|
|
4
|
+
*
|
|
5
|
+
* @since 7.3.0
|
|
6
|
+
*/
|
|
7
|
+
export interface CheckPermissionOptions {
|
|
8
|
+
/**
|
|
9
|
+
* The permission scope to check.
|
|
10
|
+
*
|
|
11
|
+
* On Android, `readReminders` and `writeReminders` resolve to `"prompt"`
|
|
12
|
+
* (reminders are not supported on Android).
|
|
13
|
+
*
|
|
14
|
+
* @example CalendarPermissionScope.READ_CALENDAR
|
|
15
|
+
* @platform Android, iOS
|
|
16
|
+
* @since 7.3.0
|
|
17
|
+
*/
|
|
18
|
+
scope: CalendarPermissionScope;
|
|
19
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"check-permission-options.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/check-permission-options.ts"],"names":[],"mappings":"","sourcesContent":["import type { CalendarPermissionScope } from '../enums/calendar-permission-scope';\n\n/**\n * Options for {@link CalendarAccess#checkPermission}.\n *\n * @since 7.3.0\n */\nexport interface CheckPermissionOptions {\n /**\n * The permission scope to check.\n *\n * On Android, `readReminders` and `writeReminders` resolve to `\"prompt\"`\n * (reminders are not supported on Android).\n *\n * @example CalendarPermissionScope.READ_CALENDAR\n * @platform Android, iOS\n * @since 7.3.0\n */\n scope: CalendarPermissionScope;\n}\n"]}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { SystemColorName } from '../types/system-color-name';
|
|
1
2
|
/**
|
|
2
3
|
* @since 5.2.0
|
|
3
4
|
*/
|
|
@@ -8,29 +9,41 @@ export interface CreateCalendarOptions {
|
|
|
8
9
|
*/
|
|
9
10
|
title: string;
|
|
10
11
|
/**
|
|
11
|
-
*
|
|
12
|
-
*
|
|
12
|
+
* Named color (`blue`, …) or hex `#RRGGBB` / `#RRGGBBAA`.
|
|
13
|
+
* When omitted, Android and iOS use `#007AFF`.
|
|
14
|
+
* On Android, only hex is accepted; named colors reject with `Invalid color format.`
|
|
13
15
|
*
|
|
14
16
|
* @platform Android, iOS
|
|
15
|
-
* @example
|
|
17
|
+
* @example 'indigo'
|
|
18
|
+
* @example #007AFF
|
|
19
|
+
* @default #007AFF
|
|
16
20
|
* @since 5.2.0
|
|
17
21
|
*/
|
|
18
|
-
color?: string
|
|
22
|
+
color?: SystemColorName | `#${string}`;
|
|
19
23
|
/**
|
|
24
|
+
* The EventKit source (account) where the calendar should be created.
|
|
25
|
+
*
|
|
26
|
+
* If provided, it must match an existing source from `fetchAllCalendarSources()`.
|
|
27
|
+
* If omitted, iCloud is used when available, otherwise the local source.
|
|
28
|
+
*
|
|
20
29
|
* @platform iOS
|
|
21
30
|
* @since 5.2.0
|
|
22
31
|
*/
|
|
23
32
|
sourceId?: string;
|
|
24
33
|
/**
|
|
25
|
-
*
|
|
34
|
+
* The account under which the calendar is registered.
|
|
35
|
+
* Required on Android. Typically an email address.
|
|
26
36
|
*
|
|
37
|
+
* @example plugin@example.com
|
|
27
38
|
* @platform Android
|
|
28
39
|
* @since 7.1.0
|
|
29
40
|
*/
|
|
30
41
|
accountName?: string;
|
|
31
42
|
/**
|
|
32
|
-
*
|
|
43
|
+
* The owner of the calendar.
|
|
44
|
+
* Required on Android. Typically an email address.
|
|
33
45
|
*
|
|
46
|
+
* @example plugin@example.com
|
|
34
47
|
* @platform Android
|
|
35
48
|
* @since 7.1.0
|
|
36
49
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-calendar-options.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/create-calendar-options.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * @since 5.2.0\n */\nexport interface CreateCalendarOptions {\n /**\n * @platform Android, iOS\n * @since 5.2.0\n */\n title: string;\n /**\n *
|
|
1
|
+
{"version":3,"file":"create-calendar-options.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/create-calendar-options.ts"],"names":[],"mappings":"","sourcesContent":["import type { SystemColorName } from '../types/system-color-name';\n\n/**\n * @since 5.2.0\n */\nexport interface CreateCalendarOptions {\n /**\n * @platform Android, iOS\n * @since 5.2.0\n */\n title: string;\n /**\n * Named color (`blue`, …) or hex `#RRGGBB` / `#RRGGBBAA`.\n * When omitted, Android and iOS use `#007AFF`.\n * On Android, only hex is accepted; named colors reject with `Invalid color format.`\n *\n * @platform Android, iOS\n * @example 'indigo'\n * @example #007AFF\n * @default #007AFF\n * @since 5.2.0\n */\n color?: SystemColorName | `#${string}`;\n /**\n * The EventKit source (account) where the calendar should be created.\n *\n * If provided, it must match an existing source from `fetchAllCalendarSources()`.\n * If omitted, iCloud is used when available, otherwise the local source.\n *\n * @platform iOS\n * @since 5.2.0\n */\n sourceId?: string;\n /**\n * The account under which the calendar is registered.\n * Required on Android. Typically an email address.\n *\n * @example plugin@example.com\n * @platform Android\n * @since 7.1.0\n */\n accountName?: string;\n /**\n * The owner of the calendar.\n * Required on Android. Typically an email address.\n *\n * @example plugin@example.com\n * @platform Android\n * @since 7.1.0\n */\n ownerAccount?: string;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-calendar-result.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/create-calendar-result.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * @since 7.3.0\n */\nexport interface CreateCalendarResult {\n /**\n * Identifier of the newly created calendar.\n *\n * @platform Android, iOS\n * @since 7.3.0\n */\n id: string;\n}\n"]}
|