@ebarooni/capacitor-calendar 7.0.0 → 7.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +863 -315
- package/android/src/main/java/dev/barooni/capacitor/calendar/CapacitorCalendarPlugin.kt +283 -316
- package/android/src/main/java/dev/barooni/capacitor/calendar/PluginError.kt +49 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/implementation/CapacitorCalendar.kt +363 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/data/CalendarEvent.kt +25 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/data/CalendarInfo.kt +14 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/data/EventGuest.kt +9 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/enums/CalendarPermissionScope.kt +15 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/CheckPermissionInput.kt +20 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/CreateCalendarInput.kt +18 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/CreateEventInput.kt +27 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/CreateEventWithPromptInput.kt +36 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/DeleteCalendarInput.kt +10 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/DeleteEventInput.kt +10 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/DeleteEventWithPromptInput.kt +14 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/DeleteEventsByIdInput.kt +11 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/ListEventsInRangeInput.kt +14 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/ModifyCalendarInput.kt +13 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/ModifyEvent.kt +25 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/ModifyEventWithPromptInput.kt +37 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/OpenCalendarInput.kt +10 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/RequestAllPermissionsInput.kt +9 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/RequestPermissionInput.kt +40 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/CheckAllPermissionsResult.kt +17 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/CheckPermissionResult.kt +15 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/CreateCalendarResult.kt +21 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/CreateEventResult.kt +21 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/CreateEventWithPromptResult.kt +12 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/DeleteEventWithPromptResult.kt +14 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/DeleteEventsByIdResult.kt +27 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/GetDefaultCalendarResult.kt +34 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/ListCalendarsResult.kt +39 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/ListEventsInRangeResult.kt +58 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/ModifyEventWithPromptResult.kt +12 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/RequestAllPermissionsResult.kt +30 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/RequestPermissionResult.kt +42 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/templates/JSResult.kt +7 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/utils/ImplementationHelper.kt +387 -0
- package/dist/docs.json +3966 -1107
- package/dist/esm/definitions.d.ts +6 -759
- package/dist/esm/definitions.js.map +1 -1
- package/dist/esm/index.d.ts +42 -12
- package/dist/esm/index.js +11 -6
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/schemas/enums/attendee-role.d.ts +50 -0
- package/dist/esm/schemas/enums/attendee-role.js +52 -0
- package/dist/esm/schemas/enums/attendee-role.js.map +1 -0
- package/dist/esm/schemas/enums/attendee-status.d.ts +55 -0
- package/dist/esm/schemas/enums/attendee-status.js +57 -0
- package/dist/esm/schemas/enums/attendee-status.js.map +1 -0
- package/dist/esm/schemas/enums/attendee-type.d.ts +45 -0
- package/dist/esm/schemas/enums/attendee-type.js +47 -0
- package/dist/esm/schemas/enums/attendee-type.js.map +1 -0
- package/dist/esm/schemas/enums/calendar-chooser-display-style.d.ts +3 -6
- package/dist/esm/schemas/enums/calendar-chooser-display-style.js +3 -6
- package/dist/esm/schemas/enums/calendar-chooser-display-style.js.map +1 -1
- package/dist/esm/schemas/enums/calendar-permission-scope.d.ts +60 -0
- package/dist/esm/schemas/enums/calendar-permission-scope.js +62 -0
- package/dist/esm/schemas/enums/calendar-permission-scope.js.map +1 -0
- package/dist/esm/schemas/enums/calendar-source-type.d.ts +7 -16
- package/dist/esm/schemas/enums/calendar-source-type.js +7 -16
- package/dist/esm/schemas/enums/calendar-source-type.js.map +1 -1
- package/dist/esm/schemas/enums/calendar-type.d.ts +6 -9
- package/dist/esm/schemas/enums/calendar-type.js +6 -9
- package/dist/esm/schemas/enums/calendar-type.js.map +1 -1
- package/dist/esm/schemas/enums/event-availability.d.ts +30 -0
- package/dist/esm/schemas/enums/event-availability.js +32 -0
- package/dist/esm/schemas/enums/event-availability.js.map +1 -0
- package/dist/esm/schemas/enums/event-span.d.ts +3 -6
- package/dist/esm/schemas/enums/event-span.js +3 -6
- package/dist/esm/schemas/enums/event-span.js.map +1 -1
- package/dist/esm/schemas/enums/event-status.d.ts +26 -0
- package/dist/esm/schemas/enums/event-status.js +28 -0
- package/dist/esm/schemas/enums/event-status.js.map +1 -0
- package/dist/esm/schemas/enums/recurrence-frequency.d.ts +21 -0
- package/dist/esm/schemas/enums/recurrence-frequency.js +23 -0
- package/dist/esm/schemas/enums/recurrence-frequency.js.map +1 -0
- package/dist/esm/schemas/enums/reminder-recurrence-frequency.d.ts +5 -8
- package/dist/esm/schemas/enums/reminder-recurrence-frequency.js +5 -8
- package/dist/esm/schemas/enums/reminder-recurrence-frequency.js.map +1 -1
- package/dist/esm/schemas/interfaces/calendar-event.d.ts +116 -48
- package/dist/esm/schemas/interfaces/calendar-event.js.map +1 -1
- package/dist/esm/schemas/interfaces/calendar-source.d.ts +10 -7
- package/dist/esm/schemas/interfaces/calendar-source.js.map +1 -1
- package/dist/esm/schemas/interfaces/calendar.d.ts +59 -25
- package/dist/esm/schemas/interfaces/calendar.js.map +1 -1
- package/dist/esm/schemas/interfaces/create-calendar-options.d.ts +38 -0
- package/dist/esm/schemas/interfaces/create-calendar-options.js +2 -0
- package/dist/esm/schemas/interfaces/create-calendar-options.js.map +1 -0
- package/dist/esm/schemas/interfaces/create-event-options.d.ts +96 -0
- package/dist/esm/schemas/interfaces/create-event-options.js +2 -0
- package/dist/esm/schemas/interfaces/create-event-options.js.map +1 -0
- package/dist/esm/schemas/interfaces/create-event-with-prompt-options.d.ts +70 -0
- package/dist/esm/schemas/interfaces/create-event-with-prompt-options.js +2 -0
- package/dist/esm/schemas/interfaces/create-event-with-prompt-options.js.map +1 -0
- package/dist/esm/schemas/interfaces/create-reminder-options.d.ts +54 -0
- package/dist/esm/schemas/interfaces/create-reminder-options.js +2 -0
- package/dist/esm/schemas/interfaces/create-reminder-options.js.map +1 -0
- package/dist/esm/schemas/interfaces/delete-calendar-options.d.ts +9 -0
- package/dist/esm/schemas/interfaces/delete-calendar-options.js +2 -0
- package/dist/esm/schemas/interfaces/delete-calendar-options.js.map +1 -0
- package/dist/esm/schemas/interfaces/delete-event-options.d.ts +18 -0
- package/dist/esm/schemas/interfaces/delete-event-options.js +2 -0
- package/dist/esm/schemas/interfaces/delete-event-options.js.map +1 -0
- package/dist/esm/schemas/interfaces/delete-event-with-prompt-options.d.ts +48 -0
- package/dist/esm/schemas/interfaces/delete-event-with-prompt-options.js +2 -0
- package/dist/esm/schemas/interfaces/delete-event-with-prompt-options.js.map +1 -0
- package/dist/esm/schemas/interfaces/delete-events-by-id-options.d.ts +18 -0
- package/dist/esm/schemas/interfaces/delete-events-by-id-options.js +2 -0
- package/dist/esm/schemas/interfaces/delete-events-by-id-options.js.map +1 -0
- package/dist/esm/schemas/interfaces/delete-reminder-options.d.ts +9 -0
- package/dist/esm/schemas/interfaces/delete-reminder-options.js +2 -0
- package/dist/esm/schemas/interfaces/delete-reminder-options.js.map +1 -0
- package/dist/esm/schemas/interfaces/delete-reminder-with-prompt-options.d.ts +35 -0
- package/dist/esm/schemas/interfaces/delete-reminder-with-prompt-options.js +2 -0
- package/dist/esm/schemas/interfaces/delete-reminder-with-prompt-options.js.map +1 -0
- package/dist/esm/schemas/interfaces/delete-reminders-by-id-options.d.ts +9 -0
- package/dist/esm/schemas/interfaces/delete-reminders-by-id-options.js +2 -0
- package/dist/esm/schemas/interfaces/delete-reminders-by-id-options.js.map +1 -0
- package/dist/esm/schemas/interfaces/event-guest.d.ts +13 -0
- package/dist/esm/schemas/interfaces/event-guest.js +2 -0
- package/dist/esm/schemas/interfaces/event-guest.js.map +1 -0
- package/dist/esm/schemas/interfaces/get-reminder-by-id-options.d.ts +6 -0
- package/dist/esm/schemas/interfaces/get-reminder-by-id-options.js +2 -0
- package/dist/esm/schemas/interfaces/get-reminder-by-id-options.js.map +1 -0
- package/dist/esm/schemas/interfaces/get-reminders-from-lists-options.d.ts +9 -0
- package/dist/esm/schemas/interfaces/get-reminders-from-lists-options.js +2 -0
- package/dist/esm/schemas/interfaces/get-reminders-from-lists-options.js.map +1 -0
- package/dist/esm/schemas/interfaces/list-events-in-range-options.d.ts +17 -0
- package/dist/esm/schemas/interfaces/list-events-in-range-options.js +2 -0
- package/dist/esm/schemas/interfaces/list-events-in-range-options.js.map +1 -0
- package/dist/esm/schemas/interfaces/modify-calendar-options.d.ts +21 -0
- package/dist/esm/schemas/interfaces/modify-calendar-options.js +2 -0
- package/dist/esm/schemas/interfaces/modify-calendar-options.js.map +1 -0
- package/dist/esm/schemas/interfaces/modify-event-options.d.ts +103 -0
- package/dist/esm/schemas/interfaces/modify-event-options.js +2 -0
- package/dist/esm/schemas/interfaces/modify-event-options.js.map +1 -0
- package/dist/esm/schemas/interfaces/modify-event-with-prompt-options.d.ts +13 -0
- package/dist/esm/schemas/interfaces/modify-event-with-prompt-options.js +2 -0
- package/dist/esm/schemas/interfaces/modify-event-with-prompt-options.js.map +1 -0
- package/dist/esm/schemas/interfaces/modify-reminder-options.d.ts +58 -0
- package/dist/esm/schemas/interfaces/modify-reminder-options.js +2 -0
- package/dist/esm/schemas/interfaces/modify-reminder-options.js.map +1 -0
- package/dist/esm/schemas/interfaces/open-calendar-options.d.ts +10 -0
- package/dist/esm/schemas/interfaces/open-calendar-options.js +2 -0
- package/dist/esm/schemas/interfaces/open-calendar-options.js.map +1 -0
- package/dist/esm/schemas/interfaces/recurrence-rule.d.ts +22 -0
- package/dist/esm/schemas/interfaces/recurrence-rule.js +2 -0
- package/dist/esm/schemas/interfaces/recurrence-rule.js.map +1 -0
- package/dist/esm/schemas/interfaces/reminder-recurrence-rule.d.ts +6 -24
- package/dist/esm/schemas/interfaces/reminder-recurrence-rule.js.map +1 -1
- package/dist/esm/schemas/interfaces/reminder.d.ts +29 -38
- package/dist/esm/schemas/interfaces/reminder.js.map +1 -1
- package/dist/esm/schemas/interfaces/reminders-list.d.ts +3 -0
- package/dist/esm/schemas/interfaces/reminders-list.js.map +1 -1
- package/dist/esm/schemas/interfaces/select-calendars-with-prompt-options.d.ts +18 -0
- package/dist/esm/schemas/interfaces/select-calendars-with-prompt-options.js +2 -0
- package/dist/esm/schemas/interfaces/select-calendars-with-prompt-options.js.map +1 -0
- package/dist/esm/schemas/types/event-edit-action.d.ts +4 -0
- package/dist/esm/schemas/types/event-edit-action.js +2 -0
- package/dist/esm/schemas/types/event-edit-action.js.map +1 -0
- package/dist/esm/sub-definitions/calendar-access.d.ts +114 -0
- package/dist/esm/sub-definitions/calendar-access.js +2 -0
- package/dist/esm/sub-definitions/calendar-access.js.map +1 -0
- package/dist/esm/sub-definitions/calendar-operations.d.ts +85 -0
- package/dist/esm/sub-definitions/calendar-operations.js +2 -0
- package/dist/esm/sub-definitions/calendar-operations.js.map +1 -0
- package/dist/esm/sub-definitions/event-operations.d.ts +111 -0
- package/dist/esm/sub-definitions/event-operations.js +2 -0
- package/dist/esm/sub-definitions/event-operations.js.map +1 -0
- package/dist/esm/sub-definitions/reminders-access.d.ts +22 -0
- package/dist/esm/sub-definitions/reminders-access.js +2 -0
- package/dist/esm/sub-definitions/reminders-access.js.map +1 -0
- package/dist/esm/sub-definitions/reminders-operations.d.ts +120 -0
- package/dist/esm/sub-definitions/reminders-operations.js +2 -0
- package/dist/esm/sub-definitions/reminders-operations.js.map +1 -0
- package/dist/esm/web.d.ts +91 -150
- package/dist/esm/web.js +73 -49
- package/dist/esm/web.js.map +1 -1
- package/dist/plugin.cjs.js +398 -172
- package/dist/plugin.cjs.js.map +1 -1
- package/dist/plugin.js +398 -172
- package/dist/plugin.js.map +1 -1
- package/ios/Sources/CapacitorCalendarPlugin/CapacitorCalendarPlugin.swift +225 -528
- package/ios/Sources/CapacitorCalendarPlugin/Implementation/CapacitorCalendar.swift +596 -0
- package/ios/Sources/CapacitorCalendarPlugin/{PermissionState.swift → Models/Enums/CAPPermissionState.swift} +1 -3
- package/ios/Sources/CapacitorCalendarPlugin/Models/Enums/CalendarPermissionScope.swift +6 -0
- package/ios/Sources/CapacitorCalendarPlugin/Models/Enums/EventEditAction.swift +20 -0
- package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/CheckPermissionInput.swift +19 -0
- package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/CreateCalendarInput.swift +32 -0
- package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/CreateEventInput.swift +61 -0
- package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/CreateEventWithPromptInput.swift +89 -0
- package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/CreateReminderInput.swift +116 -0
- package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/DeleteCalendarInput.swift +16 -0
- package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/DeleteEventInput.swift +27 -0
- package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/DeleteEventWithPromptInput.swift +57 -0
- package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/DeleteEventsByIdInput.swift +27 -0
- package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/DeleteReminderInput.swift +16 -0
- package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/DeleteReminderWithPromptInput.swift +46 -0
- package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/DeleteRemindersByIdInput.swift +16 -0
- package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/GetReminderByIdInput.swift +16 -0
- package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/GetRemindersFromListsInput.swift +24 -0
- package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/ListEventsInRangeInput.swift +25 -0
- package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/ModifyCalendarInput.swift +32 -0
- package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/ModifyEventInput.swift +117 -0
- package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/ModifyEventWithPromptInput.swift +83 -0
- package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/ModifyReminderInput.swift +118 -0
- package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/OpenCalendarInput.swift +17 -0
- package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/RequestPermissionInput.swift +19 -0
- package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/SelectCalendarsWithPromptInput.swift +32 -0
- package/ios/Sources/CapacitorCalendarPlugin/Models/Results/CheckAllPermissionsResult.swift +15 -0
- package/ios/Sources/CapacitorCalendarPlugin/Models/Results/CheckPermissionResult.swift +16 -0
- package/ios/Sources/CapacitorCalendarPlugin/Models/Results/CreateCalendarResult.swift +18 -0
- package/ios/Sources/CapacitorCalendarPlugin/Models/Results/CreateEventResult.swift +18 -0
- package/ios/Sources/CapacitorCalendarPlugin/Models/Results/CreateEventWithPromptResult.swift +15 -0
- package/ios/Sources/CapacitorCalendarPlugin/Models/Results/CreateReminderResult.swift +16 -0
- package/ios/Sources/CapacitorCalendarPlugin/Models/Results/DeleteEventWithPromptResult.swift +15 -0
- package/ios/Sources/CapacitorCalendarPlugin/Models/Results/DeleteEventsByIdResult.swift +23 -0
- package/ios/Sources/CapacitorCalendarPlugin/Models/Results/DeleteRemindersByIdResult.swift +23 -0
- package/ios/Sources/CapacitorCalendarPlugin/Models/Results/FetchAllCalendarSourcesResult.swift +16 -0
- package/ios/Sources/CapacitorCalendarPlugin/Models/Results/GetDefaultCalendarResult.swift +16 -0
- package/ios/Sources/CapacitorCalendarPlugin/Models/Results/GetReminderByIdResult.swift +20 -0
- package/ios/Sources/CapacitorCalendarPlugin/Models/Results/GetRemindersFromListsResult.swift +16 -0
- package/ios/Sources/CapacitorCalendarPlugin/Models/Results/ListCalendarsResult.swift +16 -0
- package/ios/Sources/CapacitorCalendarPlugin/Models/Results/ListEventsInRangeResult.swift +16 -0
- package/ios/Sources/CapacitorCalendarPlugin/Models/Results/ModifyEventWithPromptResult.swift +16 -0
- package/ios/Sources/CapacitorCalendarPlugin/Models/Results/RequestAllPermissionsResult.swift +20 -0
- package/ios/Sources/CapacitorCalendarPlugin/Models/Results/RequestPermissionResult.swift +15 -0
- package/ios/Sources/CapacitorCalendarPlugin/Models/Results/SelectCalendarsWithPromptResult.swift +16 -0
- package/ios/Sources/CapacitorCalendarPlugin/Models/Templates/JSResult.swift +5 -0
- package/ios/Sources/CapacitorCalendarPlugin/PluginConfig.swift +44 -0
- package/ios/Sources/CapacitorCalendarPlugin/PluginError.swift +87 -0
- package/ios/Sources/CapacitorCalendarPlugin/Utils/ImplementationHelper.swift +361 -0
- package/ios/Sources/CapacitorCalendarPlugin/Utils/UIColorFromHexExtension.swift +32 -0
- package/package.json +58 -59
- package/android/src/main/java/dev/barooni/capacitor/calendar/CapacitorCalendar.kt +0 -358
- package/dist/esm/schemas/enums/calendar-chooser-selection-style.d.ts +0 -16
- package/dist/esm/schemas/enums/calendar-chooser-selection-style.js +0 -18
- package/dist/esm/schemas/enums/calendar-chooser-selection-style.js.map +0 -1
- package/dist/esm/schemas/enums/plugin-permission.d.ts +0 -58
- package/dist/esm/schemas/enums/plugin-permission.js +0 -60
- package/dist/esm/schemas/enums/plugin-permission.js.map +0 -1
- package/dist/esm/schemas/interfaces/plugin-permissions-map.d.ts +0 -2
- package/dist/esm/schemas/interfaces/plugin-permissions-map.js +0 -2
- package/dist/esm/schemas/interfaces/plugin-permissions-map.js.map +0 -1
- package/ios/Sources/CapacitorCalendarPlugin/CapacitorCalendar.swift +0 -635
- package/ios/Sources/CapacitorCalendarPlugin/CapacitorCalendarPluginError.swift +0 -14
- package/ios/Sources/CapacitorCalendarPlugin/CapacitorReminders.swift +0 -448
- package/ios/Sources/CapacitorCalendarPlugin/EventCreationParameters.swift +0 -14
- package/ios/Sources/CapacitorCalendarPlugin/EventDeleteResults.swift +0 -6
- package/ios/Sources/CapacitorCalendarPlugin/RecurrenceParameters.swift +0 -7
- package/ios/Sources/CapacitorCalendarPlugin/ReminderCreationParameters.swift +0 -15
- package/ios/Sources/CapacitorCalendarPlugin/UIColorExtensions.swift +0 -20
- /package/{LICENSE.txt → LICENSE} +0 -0
|
@@ -1,83 +1,151 @@
|
|
|
1
|
+
import { AttendeeRole } from "../enums/attendee-role";
|
|
2
|
+
import { AttendeeStatus } from "../enums/attendee-status";
|
|
3
|
+
import { AttendeeType } from "../enums/attendee-type";
|
|
4
|
+
import { EventAvailability } from "../enums/event-availability";
|
|
5
|
+
import { EventStatus } from "../enums/event-status";
|
|
1
6
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
* @interface CalendarEvent
|
|
5
|
-
* @property {string} id The unique identifier of the event.
|
|
6
|
-
* @property {string} title The title or name of the event. (Optional)
|
|
7
|
-
* @property {string} location The location of the event. (Optional)
|
|
8
|
-
* @property {string} eventColor The color of the individual event. (Optional)
|
|
9
|
-
* @property {string} organizer The organizer of the event. (Optional)
|
|
10
|
-
* @property {string} description The description of the event. (Optional)
|
|
11
|
-
* @property {number} startDate The start date of the event. (Optional)
|
|
12
|
-
* @property {number} endDate The end date of the event. (Optional)
|
|
13
|
-
* @property {string} eventTimezone The timezone of the start date. (optional)
|
|
14
|
-
* @property {string} eventEndTimezone The timezone of the end date. (optional)
|
|
15
|
-
* @property {string} duration The duration of the event. (Optional)
|
|
16
|
-
* @property {boolean} isAllDay Indicates if the event is all day. (Optional)
|
|
17
|
-
* @property {string} calendarId The calendar that the event belongs to. (Optional)
|
|
18
|
-
* @property {string} url The URL of the event. (Optional)
|
|
7
|
+
* @since 7.1.0
|
|
19
8
|
*/
|
|
20
9
|
export interface CalendarEvent {
|
|
21
10
|
/**
|
|
22
|
-
* @platform
|
|
11
|
+
* @platform Android, iOS
|
|
12
|
+
* @since 7.1.0
|
|
23
13
|
*/
|
|
24
14
|
id: string;
|
|
25
15
|
/**
|
|
26
|
-
* @platform
|
|
16
|
+
* @platform Android, iOS
|
|
17
|
+
* @since 7.1.0
|
|
27
18
|
*/
|
|
28
|
-
title
|
|
19
|
+
title: string;
|
|
29
20
|
/**
|
|
30
|
-
* @platform
|
|
21
|
+
* @platform Android, iOS
|
|
22
|
+
* @since 7.1.0
|
|
31
23
|
*/
|
|
32
|
-
|
|
24
|
+
calendarId: string | null;
|
|
33
25
|
/**
|
|
34
|
-
* @platform
|
|
26
|
+
* @platform Android, iOS
|
|
27
|
+
* @since 7.1.0
|
|
35
28
|
*/
|
|
36
|
-
|
|
29
|
+
location: string | null;
|
|
37
30
|
/**
|
|
38
|
-
* @platform
|
|
31
|
+
* @platform Android, iOS
|
|
32
|
+
* @since 7.1.0
|
|
39
33
|
*/
|
|
40
|
-
|
|
34
|
+
startDate: number;
|
|
41
35
|
/**
|
|
42
|
-
* @platform
|
|
36
|
+
* @platform Android, iOS
|
|
37
|
+
* @since 7.1.0
|
|
43
38
|
*/
|
|
44
|
-
|
|
39
|
+
endDate: number;
|
|
45
40
|
/**
|
|
46
|
-
* @platform
|
|
41
|
+
* @platform Android, iOS
|
|
42
|
+
* @since 7.1.0
|
|
47
43
|
*/
|
|
48
|
-
|
|
44
|
+
isAllDay: boolean;
|
|
49
45
|
/**
|
|
50
|
-
* @platform
|
|
46
|
+
* @platform Android, iOS
|
|
47
|
+
* @since 7.1.0
|
|
51
48
|
*/
|
|
52
|
-
|
|
49
|
+
alerts: number[];
|
|
53
50
|
/**
|
|
54
|
-
* @platform iOS
|
|
51
|
+
* @platform iOS
|
|
52
|
+
* @since 7.1.0
|
|
53
|
+
*/
|
|
54
|
+
url: string | null;
|
|
55
|
+
/**
|
|
56
|
+
* @platform Android, iOS
|
|
57
|
+
* @since 7.1.0
|
|
58
|
+
*/
|
|
59
|
+
description: string | null;
|
|
60
|
+
/**
|
|
61
|
+
* @platform Android, iOS
|
|
62
|
+
* @since 7.1.0
|
|
55
63
|
*/
|
|
56
|
-
|
|
57
|
-
region: string;
|
|
58
|
-
abbreviation: string;
|
|
59
|
-
};
|
|
64
|
+
availability: EventAvailability | null;
|
|
60
65
|
/**
|
|
61
|
-
* @platform
|
|
66
|
+
* @platform Android, iOS
|
|
67
|
+
* @since 7.1.0
|
|
62
68
|
*/
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
69
|
+
organizer: string | null;
|
|
70
|
+
/**
|
|
71
|
+
* @platform Android, iOS
|
|
72
|
+
* @since 7.1.0
|
|
73
|
+
*/
|
|
74
|
+
color: string | null;
|
|
67
75
|
/**
|
|
68
76
|
* @platform Android
|
|
77
|
+
* @since 7.1.0
|
|
78
|
+
*/
|
|
79
|
+
duration: string | null;
|
|
80
|
+
/**
|
|
81
|
+
* @platform iOS
|
|
82
|
+
* @since 7.1.0
|
|
69
83
|
*/
|
|
70
|
-
|
|
84
|
+
isDetached: boolean | null;
|
|
71
85
|
/**
|
|
72
|
-
* @platform iOS
|
|
86
|
+
* @platform iOS
|
|
87
|
+
* @see {@link https://developer.apple.com/documentation/eventkit/ekevent/birthdaycontactidentifier}
|
|
88
|
+
* @since 7.1.0
|
|
73
89
|
*/
|
|
74
|
-
|
|
90
|
+
birthdayContactIdentifier: string | null;
|
|
75
91
|
/**
|
|
76
|
-
* @platform
|
|
92
|
+
* @platform Android, iOS
|
|
93
|
+
* @since 7.1.0
|
|
94
|
+
*/
|
|
95
|
+
status: EventStatus | null;
|
|
96
|
+
/**
|
|
97
|
+
* @platform iOS
|
|
98
|
+
* @since 7.1.0
|
|
77
99
|
*/
|
|
78
|
-
|
|
100
|
+
creationDate: number | null;
|
|
79
101
|
/**
|
|
80
102
|
* @platform iOS
|
|
103
|
+
* @since 7.1.0
|
|
104
|
+
*/
|
|
105
|
+
lastModifiedDate: number | null;
|
|
106
|
+
/**
|
|
107
|
+
* @platform Android, iOS
|
|
108
|
+
* @since 7.1.0
|
|
109
|
+
*/
|
|
110
|
+
attendees: {
|
|
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
|
+
}[];
|
|
146
|
+
/**
|
|
147
|
+
* @platform Android, iOS
|
|
148
|
+
* @since 7.1.0
|
|
81
149
|
*/
|
|
82
|
-
|
|
150
|
+
timezone: string | null;
|
|
83
151
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"calendar-event.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/calendar-event.ts"],"names":[],"mappings":"","sourcesContent":["
|
|
1
|
+
{"version":3,"file":"calendar-event.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/calendar-event.ts"],"names":[],"mappings":"","sourcesContent":["import { AttendeeRole } from \"../enums/attendee-role\";\nimport { AttendeeStatus } from \"../enums/attendee-status\";\nimport { AttendeeType } from \"../enums/attendee-type\";\nimport { EventAvailability } from \"../enums/event-availability\";\nimport { EventStatus } from \"../enums/event-status\";\n\n/**\n * @since 7.1.0\n */\nexport interface CalendarEvent {\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 title: string;\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n calendarId: string | null;\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n location: string | null;\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 endDate: number;\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n isAllDay: boolean;\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n alerts: number[];\n /**\n * @platform iOS\n * @since 7.1.0\n */\n url: string | null;\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n description: string | null;\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n availability: EventAvailability | null;\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n organizer: string | null;\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n color: string | null;\n /**\n * @platform Android\n * @since 7.1.0\n */\n duration: string | null;\n /**\n * @platform iOS\n * @since 7.1.0\n */\n isDetached: boolean | 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 status: EventStatus | null;\n /**\n * @platform iOS\n * @since 7.1.0\n */\n creationDate: number | null;\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 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 timezone: string | null;\n}\n"]}
|
|
@@ -1,15 +1,18 @@
|
|
|
1
1
|
import { CalendarSourceType } from "../enums/calendar-source-type";
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
* @enum CalendarSource
|
|
6
|
-
* @platform iOS
|
|
7
|
-
* @property {CalendarSourceType} type The type of the source object.
|
|
8
|
-
* @property {string} id A unique identifier for the source object.
|
|
9
|
-
* @property {string} title The name of the source object.
|
|
3
|
+
* @since 7.1.0
|
|
10
4
|
*/
|
|
11
5
|
export interface CalendarSource {
|
|
6
|
+
/**
|
|
7
|
+
* @since 7.1.0
|
|
8
|
+
*/
|
|
12
9
|
type: CalendarSourceType;
|
|
10
|
+
/**
|
|
11
|
+
* @since 7.1.0
|
|
12
|
+
*/
|
|
13
13
|
id: string;
|
|
14
|
+
/**
|
|
15
|
+
* @since 7.1.0
|
|
16
|
+
*/
|
|
14
17
|
title: string;
|
|
15
18
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"calendar-source.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/calendar-source.ts"],"names":[],"mappings":"","sourcesContent":["import { CalendarSourceType } from \"../enums/calendar-source-type\";\n\n/**\n *
|
|
1
|
+
{"version":3,"file":"calendar-source.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/calendar-source.ts"],"names":[],"mappings":"","sourcesContent":["import { CalendarSourceType } from \"../enums/calendar-source-type\";\n\n/**\n * @since 7.1.0\n */\nexport interface CalendarSource {\n /**\n * @since 7.1.0\n */\n type: CalendarSourceType;\n /**\n * @since 7.1.0\n */\n id: string;\n /**\n * @since 7.1.0\n */\n title: string;\n}\n"]}
|
|
@@ -1,53 +1,87 @@
|
|
|
1
|
-
import { CalendarSource } from "./calendar-source";
|
|
1
|
+
import type { CalendarSource } from "./calendar-source";
|
|
2
2
|
import { CalendarType } from "../enums/calendar-type";
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
* @interface Calendar
|
|
7
|
-
* @platform iOS, Android
|
|
8
|
-
* @property {string} id The unique identifier of the calendar.
|
|
9
|
-
* @property {string} title The title or name of the calendar.
|
|
10
|
-
* @property {string} color The color of the calendar.
|
|
11
|
-
* @property {boolean} isImmutable Indicating whether the calendar's properties
|
|
12
|
-
* can be modified.
|
|
13
|
-
* @property {boolean} allowsContentModifications Indicating whether the calendar's
|
|
14
|
-
* items (events or reminders) can be modified.
|
|
15
|
-
* @property {CalendarType} type The type of the calendar. On iOS the type is of type
|
|
16
|
-
* CalendarSourceType.
|
|
17
|
-
* @property {boolean} isSubscribed Indicating whether the calendar is a subscribed calendar.
|
|
18
|
-
* @property {CalendarSource} source The source of the calendar.
|
|
4
|
+
* @since 7.1.0
|
|
19
5
|
*/
|
|
20
6
|
export interface Calendar {
|
|
21
7
|
/**
|
|
22
|
-
* @platform
|
|
8
|
+
* @platform Android, iOS
|
|
9
|
+
* @since 7.1.0
|
|
23
10
|
*/
|
|
24
11
|
id: string;
|
|
25
12
|
/**
|
|
26
|
-
* @platform
|
|
13
|
+
* @platform Android, iOS
|
|
14
|
+
* @since 7.1.0
|
|
27
15
|
*/
|
|
28
16
|
title: string;
|
|
29
17
|
/**
|
|
30
|
-
*
|
|
18
|
+
* Internal name of the calendar (`CalendarContract.Calendars.NAME`).
|
|
19
|
+
*
|
|
20
|
+
* @platform Android
|
|
21
|
+
* @since 7.1.0
|
|
22
|
+
*/
|
|
23
|
+
internalTitle: string | null;
|
|
24
|
+
/**
|
|
25
|
+
* @platform Android, iOS
|
|
26
|
+
* @since 7.1.0
|
|
31
27
|
*/
|
|
32
28
|
color: string;
|
|
33
29
|
/**
|
|
34
30
|
* @platform iOS
|
|
31
|
+
* @since 7.1.0
|
|
35
32
|
*/
|
|
36
|
-
isImmutable
|
|
33
|
+
isImmutable: boolean | null;
|
|
37
34
|
/**
|
|
38
35
|
* @platform iOS
|
|
36
|
+
* @since 7.1.0
|
|
39
37
|
*/
|
|
40
|
-
allowsContentModifications
|
|
38
|
+
allowsContentModifications: boolean | null;
|
|
41
39
|
/**
|
|
42
|
-
* @platform iOS
|
|
40
|
+
* @platform iOS
|
|
41
|
+
* @since 7.1.0
|
|
43
42
|
*/
|
|
44
|
-
type
|
|
43
|
+
type: CalendarType | null;
|
|
45
44
|
/**
|
|
46
45
|
* @platform iOS
|
|
46
|
+
* @since 7.1.0
|
|
47
47
|
*/
|
|
48
|
-
isSubscribed
|
|
48
|
+
isSubscribed: boolean | null;
|
|
49
49
|
/**
|
|
50
50
|
* @platform iOS
|
|
51
|
+
* @since 7.1.0
|
|
52
|
+
*/
|
|
53
|
+
source: CalendarSource | null;
|
|
54
|
+
/**
|
|
55
|
+
* Indicates if the events from this calendar should be shown.
|
|
56
|
+
*
|
|
57
|
+
* @platform Android
|
|
58
|
+
* @since 7.1.0
|
|
59
|
+
*/
|
|
60
|
+
visible: boolean | null;
|
|
61
|
+
/**
|
|
62
|
+
* The account under which the calendar is registered.
|
|
63
|
+
*
|
|
64
|
+
* @platform Android
|
|
65
|
+
* @since 7.1.0
|
|
66
|
+
*/
|
|
67
|
+
accountName: string | null;
|
|
68
|
+
/**
|
|
69
|
+
* The owner of the calendar.
|
|
70
|
+
*
|
|
71
|
+
* @platform Android
|
|
72
|
+
* @since 7.1.0
|
|
73
|
+
*/
|
|
74
|
+
ownerAccount: string | null;
|
|
75
|
+
/**
|
|
76
|
+
* Maximum number of reminders allowed per event.
|
|
77
|
+
*
|
|
78
|
+
* @platform Android
|
|
79
|
+
* @since 7.1.0
|
|
80
|
+
*/
|
|
81
|
+
maxReminders: number | null;
|
|
82
|
+
/**
|
|
83
|
+
* @platform Android
|
|
84
|
+
* @since 7.1.0
|
|
51
85
|
*/
|
|
52
|
-
|
|
86
|
+
location: string | null;
|
|
53
87
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"calendar.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/calendar.ts"],"names":[],"mappings":"","sourcesContent":["import { CalendarSource } from \"./calendar-source\";\nimport { CalendarType } from \"../enums/calendar-type\";\n\n/**\n *
|
|
1
|
+
{"version":3,"file":"calendar.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/calendar.ts"],"names":[],"mappings":"","sourcesContent":["import type { CalendarSource } from \"./calendar-source\";\nimport { CalendarType } from \"../enums/calendar-type\";\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 * @platform Android, iOS\n * @since 7.1.0\n */\n title: string;\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 * @platform Android, iOS\n * @since 7.1.0\n */\n color: string;\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,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @since 5.2.0
|
|
3
|
+
*/
|
|
4
|
+
export interface CreateCalendarOptions {
|
|
5
|
+
/**
|
|
6
|
+
* @platform Android, iOS
|
|
7
|
+
* @since 5.2.0
|
|
8
|
+
*/
|
|
9
|
+
title: string;
|
|
10
|
+
/**
|
|
11
|
+
* The color of the calendar.
|
|
12
|
+
* Should be provided on Android.
|
|
13
|
+
*
|
|
14
|
+
* @platform Android, iOS
|
|
15
|
+
* @example #0000FF
|
|
16
|
+
* @since 5.2.0
|
|
17
|
+
*/
|
|
18
|
+
color?: string;
|
|
19
|
+
/**
|
|
20
|
+
* @platform iOS
|
|
21
|
+
* @since 5.2.0
|
|
22
|
+
*/
|
|
23
|
+
sourceId?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Only needed on Android. Typically set to an email address.
|
|
26
|
+
*
|
|
27
|
+
* @platform Android
|
|
28
|
+
* @since 7.1.0
|
|
29
|
+
*/
|
|
30
|
+
accountName?: string;
|
|
31
|
+
/**
|
|
32
|
+
* Only needed on Android. Typically set to an email address.
|
|
33
|
+
*
|
|
34
|
+
* @platform Android
|
|
35
|
+
* @since 7.1.0
|
|
36
|
+
*/
|
|
37
|
+
ownerAccount?: string;
|
|
38
|
+
}
|
|
@@ -0,0 +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 * The color of the calendar.\n * Should be provided on Android.\n *\n * @platform Android, iOS\n * @example #0000FF\n * @since 5.2.0\n */\n color?: string;\n /**\n * @platform iOS\n * @since 5.2.0\n */\n sourceId?: string;\n /**\n * Only needed on Android. Typically set to an email address.\n *\n * @platform Android\n * @since 7.1.0\n */\n accountName?: string;\n /**\n * Only needed on Android. Typically set to an email address.\n *\n * @platform Android\n * @since 7.1.0\n */\n ownerAccount?: string;\n}\n"]}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { EventAvailability } from "../enums/event-availability";
|
|
2
|
+
import type { EventGuest } from "./event-guest";
|
|
3
|
+
/**
|
|
4
|
+
* @since 7.1.0
|
|
5
|
+
*/
|
|
6
|
+
export interface CreateEventOptions {
|
|
7
|
+
/**
|
|
8
|
+
* @platform Android, iOS
|
|
9
|
+
* @since 0.4.0
|
|
10
|
+
*/
|
|
11
|
+
title: string;
|
|
12
|
+
/**
|
|
13
|
+
* @platform Android, iOS
|
|
14
|
+
* @since 0.1.0
|
|
15
|
+
*/
|
|
16
|
+
calendarId?: string;
|
|
17
|
+
/**
|
|
18
|
+
* @platform Android, iOS
|
|
19
|
+
* @since 0.1.0
|
|
20
|
+
*/
|
|
21
|
+
location?: string;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @platform Android, iOS
|
|
25
|
+
* @since 0.1.0
|
|
26
|
+
*/
|
|
27
|
+
startDate?: number;
|
|
28
|
+
/**
|
|
29
|
+
* @platform Android, iOS
|
|
30
|
+
* @since 0.1.0
|
|
31
|
+
*/
|
|
32
|
+
endDate?: number;
|
|
33
|
+
/**
|
|
34
|
+
* @platform Android, iOS
|
|
35
|
+
* @since 0.1.0
|
|
36
|
+
*/
|
|
37
|
+
isAllDay?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* @platform Android, iOS
|
|
40
|
+
* @since 7.1.0
|
|
41
|
+
*/
|
|
42
|
+
alerts?: number[];
|
|
43
|
+
/**
|
|
44
|
+
* @platform iOS
|
|
45
|
+
* @since 0.1.0
|
|
46
|
+
*/
|
|
47
|
+
url?: string;
|
|
48
|
+
/**
|
|
49
|
+
* @platform Android, iOS
|
|
50
|
+
* @since 7.1.0
|
|
51
|
+
*/
|
|
52
|
+
description?: string;
|
|
53
|
+
/**
|
|
54
|
+
* @platform Android, iOS
|
|
55
|
+
* @since 7.1.0
|
|
56
|
+
*/
|
|
57
|
+
availability?: EventAvailability;
|
|
58
|
+
/**
|
|
59
|
+
* Email of the event organizer.
|
|
60
|
+
*
|
|
61
|
+
* @platform Android
|
|
62
|
+
* @since 7.1.0
|
|
63
|
+
*/
|
|
64
|
+
organizer?: string;
|
|
65
|
+
/**
|
|
66
|
+
* @example #6750A4
|
|
67
|
+
* @platform Android
|
|
68
|
+
* @since 7.1.0
|
|
69
|
+
*/
|
|
70
|
+
color?: string;
|
|
71
|
+
/**
|
|
72
|
+
* Duration of the event in RFC2445 format.
|
|
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
|
|
78
|
+
*/
|
|
79
|
+
duration?: string;
|
|
80
|
+
/**
|
|
81
|
+
* Whether to save immediately (`true`) or batch changes for later (`false`).
|
|
82
|
+
*
|
|
83
|
+
* @default true
|
|
84
|
+
* @platform iOS
|
|
85
|
+
* @see {@link CalendarOperations#commit}
|
|
86
|
+
* @since 7.1.0
|
|
87
|
+
*/
|
|
88
|
+
commit?: boolean;
|
|
89
|
+
/**
|
|
90
|
+
* The event guests.
|
|
91
|
+
*
|
|
92
|
+
* @platform Android
|
|
93
|
+
* @since 7.1.0
|
|
94
|
+
*/
|
|
95
|
+
attendees?: EventGuest[];
|
|
96
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-event-options.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/create-event-options.ts"],"names":[],"mappings":"","sourcesContent":["import { EventAvailability } from \"../enums/event-availability\";\nimport type { EventGuest } from \"./event-guest\";\n\n/**\n * @since 7.1.0\n */\nexport interface CreateEventOptions {\n /**\n * @platform Android, iOS\n * @since 0.4.0\n */\n title: string;\n /**\n * @platform Android, iOS\n * @since 0.1.0\n */\n calendarId?: string;\n /**\n * @platform Android, iOS\n * @since 0.1.0\n */\n location?: string;\n /**\n *\n * @platform Android, iOS\n * @since 0.1.0\n */\n startDate?: number;\n /**\n * @platform Android, iOS\n * @since 0.1.0\n */\n endDate?: number;\n /**\n * @platform Android, iOS\n * @since 0.1.0\n */\n isAllDay?: boolean;\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n alerts?: number[];\n /**\n * @platform iOS\n * @since 0.1.0\n */\n url?: string;\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n description?: string;\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n availability?: EventAvailability;\n /**\n * Email of the event organizer.\n *\n * @platform Android\n * @since 7.1.0\n */\n organizer?: string;\n /**\n * @example #6750A4\n * @platform Android\n * @since 7.1.0\n */\n color?: string;\n /**\n * Duration of the event in RFC2445 format.\n *\n * @example P1D (1 day), P3W (3 weeks), P2DT4H30M (2 days, 4 hours, and 30 minutes).\n * @platform Android\n * @see {@link https://datatracker.ietf.org/doc/html/rfc2445}\n * @since 7.1.0\n */\n duration?: 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 * The event guests.\n *\n * @platform Android\n * @since 7.1.0\n */\n attendees?: EventGuest[];\n}\n"]}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { EventAvailability } from "../enums/event-availability";
|
|
2
|
+
/**
|
|
3
|
+
* @since 7.1.0
|
|
4
|
+
*/
|
|
5
|
+
export interface CreateEventWithPromptOptions {
|
|
6
|
+
/**
|
|
7
|
+
* @platform Android, iOS
|
|
8
|
+
* @since 0.1.0
|
|
9
|
+
*/
|
|
10
|
+
title?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @platform iOS
|
|
13
|
+
* @since 0.1.0
|
|
14
|
+
*/
|
|
15
|
+
calendarId?: string;
|
|
16
|
+
/**
|
|
17
|
+
* @platform Android, iOS
|
|
18
|
+
* @since 0.1.0
|
|
19
|
+
*/
|
|
20
|
+
location?: string;
|
|
21
|
+
/**
|
|
22
|
+
* @platform Android, iOS
|
|
23
|
+
* @since 0.1.0
|
|
24
|
+
*/
|
|
25
|
+
startDate?: number;
|
|
26
|
+
/**
|
|
27
|
+
* @platform Android, iOS
|
|
28
|
+
* @since 0.1.0
|
|
29
|
+
*/
|
|
30
|
+
endDate?: number;
|
|
31
|
+
/**
|
|
32
|
+
* @platform Android, iOS
|
|
33
|
+
* @since 0.1.0
|
|
34
|
+
*/
|
|
35
|
+
isAllDay?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Sets alerts before or after the start of the event in minutes.
|
|
38
|
+
* On iOS only 2 alerts are supported.
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* // 10mins before and 30mins after the event
|
|
42
|
+
* const alerts: [-10, 30]
|
|
43
|
+
*
|
|
44
|
+
* @platform iOS
|
|
45
|
+
* @since 7.1.0
|
|
46
|
+
*/
|
|
47
|
+
alerts?: number[];
|
|
48
|
+
/**
|
|
49
|
+
* @platform iOS
|
|
50
|
+
* @since 0.1.0
|
|
51
|
+
*/
|
|
52
|
+
url?: string;
|
|
53
|
+
/**
|
|
54
|
+
* @platform Android, iOS
|
|
55
|
+
* @since 7.1.0
|
|
56
|
+
*/
|
|
57
|
+
description?: string;
|
|
58
|
+
/**
|
|
59
|
+
* @platform Android, iOS
|
|
60
|
+
* @since 7.1.0
|
|
61
|
+
*/
|
|
62
|
+
availability?: EventAvailability;
|
|
63
|
+
/**
|
|
64
|
+
* An array of emails to invite.
|
|
65
|
+
*
|
|
66
|
+
* @platform Android
|
|
67
|
+
* @since 7.1.0
|
|
68
|
+
*/
|
|
69
|
+
invitees?: string[];
|
|
70
|
+
}
|
|
@@ -0,0 +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 \"../enums/event-availability\";\n\n/**\n * @since 7.1.0\n */\nexport interface CreateEventWithPromptOptions {\n /**\n * @platform Android, iOS\n * @since 0.1.0\n */\n title?: string;\n /**\n * @platform iOS\n * @since 0.1.0\n */\n calendarId?: string;\n /**\n * @platform Android, iOS\n * @since 0.1.0\n */\n location?: string;\n /**\n * @platform Android, iOS\n * @since 0.1.0\n */\n startDate?: number;\n /**\n * @platform Android, iOS\n * @since 0.1.0\n */\n endDate?: number;\n /**\n * @platform Android, iOS\n * @since 0.1.0\n */\n isAllDay?: boolean;\n /**\n * Sets alerts before or after the start of the event in minutes.\n * On iOS only 2 alerts are supported.\n *\n * @example\n * // 10mins before and 30mins after the event\n * const alerts: [-10, 30]\n *\n * @platform iOS\n * @since 7.1.0\n */\n alerts?: number[];\n /**\n * @platform iOS\n * @since 0.1.0\n */\n url?: string;\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n description?: string;\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n availability?: EventAvailability;\n /**\n * An array of emails to invite.\n *\n * @platform Android\n * @since 7.1.0\n */\n invitees?: string[];\n}\n"]}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import type { RecurrenceRule } from "./recurrence-rule";
|
|
2
|
+
/**
|
|
3
|
+
* @since 7.1.0
|
|
4
|
+
*/
|
|
5
|
+
export interface CreateReminderOptions {
|
|
6
|
+
/**
|
|
7
|
+
* @since 7.1.0
|
|
8
|
+
*/
|
|
9
|
+
title: string;
|
|
10
|
+
/**
|
|
11
|
+
* @since 7.1.0
|
|
12
|
+
*/
|
|
13
|
+
listId?: string;
|
|
14
|
+
/**
|
|
15
|
+
* @since 7.1.0
|
|
16
|
+
*/
|
|
17
|
+
priority?: number;
|
|
18
|
+
/**
|
|
19
|
+
* @since 7.1.0
|
|
20
|
+
*/
|
|
21
|
+
isCompleted?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* @since 7.1.0
|
|
24
|
+
*/
|
|
25
|
+
startDate?: number;
|
|
26
|
+
/**
|
|
27
|
+
* @since 7.1.0
|
|
28
|
+
*/
|
|
29
|
+
dueDate?: number;
|
|
30
|
+
/**
|
|
31
|
+
* @since 7.1.0
|
|
32
|
+
*/
|
|
33
|
+
completionDate?: number;
|
|
34
|
+
/**
|
|
35
|
+
* @since 7.1.0
|
|
36
|
+
*/
|
|
37
|
+
notes?: string;
|
|
38
|
+
/**
|
|
39
|
+
* @since 7.1.0
|
|
40
|
+
*/
|
|
41
|
+
url?: string;
|
|
42
|
+
/**
|
|
43
|
+
* @since 7.1.0
|
|
44
|
+
*/
|
|
45
|
+
location?: string;
|
|
46
|
+
/**
|
|
47
|
+
* @since 7.1.0
|
|
48
|
+
*/
|
|
49
|
+
recurrence?: RecurrenceRule;
|
|
50
|
+
/**
|
|
51
|
+
* @since 7.1.0
|
|
52
|
+
*/
|
|
53
|
+
alerts?: number[];
|
|
54
|
+
}
|