@ebarooni/capacitor-calendar 7.2.0 → 8.0.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 +2 -2
- package/Package.swift +4 -4
- package/README.md +176 -162
- package/android/build.gradle +20 -18
- package/android/src/main/java/dev/barooni/capacitor/calendar/implementation/CapacitorCalendar.kt +90 -61
- 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/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/ModifyEvent.kt +2 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/ModifyEventWithPromptInput.kt +3 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/utils/ImplementationHelper.kt +48 -4
- package/dist/docs.json +584 -324
- package/dist/esm/definitions.d.ts +5 -5
- package/dist/esm/definitions.js.map +1 -1
- package/dist/esm/index.d.ts +46 -46
- package/dist/esm/index.js +16 -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.js.map +1 -1
- package/dist/esm/schemas/enums/event-status.js.map +1 -1
- package/dist/esm/schemas/interfaces/calendar-event.d.ts +7 -5
- package/dist/esm/schemas/interfaces/calendar-event.js.map +1 -1
- package/dist/esm/schemas/interfaces/calendar-source.d.ts +1 -1
- package/dist/esm/schemas/interfaces/calendar-source.js.map +1 -1
- package/dist/esm/schemas/interfaces/calendar.d.ts +2 -2
- package/dist/esm/schemas/interfaces/calendar.js.map +1 -1
- package/dist/esm/schemas/interfaces/create-event-options.d.ts +63 -46
- package/dist/esm/schemas/interfaces/create-event-options.js.map +1 -1
- package/dist/esm/schemas/interfaces/create-event-with-prompt-options.d.ts +42 -31
- package/dist/esm/schemas/interfaces/create-event-with-prompt-options.js.map +1 -1
- package/dist/esm/schemas/interfaces/create-reminder-options.d.ts +10 -1
- package/dist/esm/schemas/interfaces/create-reminder-options.js.map +1 -1
- package/dist/esm/schemas/interfaces/delete-event-options.d.ts +1 -1
- package/dist/esm/schemas/interfaces/delete-event-options.js.map +1 -1
- package/dist/esm/schemas/interfaces/delete-event-with-prompt-options.d.ts +1 -1
- 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 +1 -1
- package/dist/esm/schemas/interfaces/delete-events-by-id-options.js.map +1 -1
- 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/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 +1 -1
- package/dist/esm/schemas/interfaces/modify-event-with-prompt-options.js.map +1 -1
- package/dist/esm/schemas/interfaces/modify-reminder-options.d.ts +12 -1
- package/dist/esm/schemas/interfaces/modify-reminder-options.js.map +1 -1
- package/dist/esm/schemas/interfaces/recurrence-rule.d.ts +1 -1
- 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 +1 -1
- package/dist/esm/schemas/interfaces/reminder.js.map +1 -1
- package/dist/esm/schemas/interfaces/reminders-list.d.ts +2 -2
- package/dist/esm/schemas/interfaces/reminders-list.js.map +1 -1
- 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/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/sub-definitions/calendar-access.d.ts +4 -4
- package/dist/esm/sub-definitions/calendar-access.js.map +1 -1
- package/dist/esm/sub-definitions/calendar-operations.d.ts +7 -7
- package/dist/esm/sub-definitions/calendar-operations.js.map +1 -1
- package/dist/esm/sub-definitions/event-operations.d.ts +10 -10
- package/dist/esm/sub-definitions/event-operations.js.map +1 -1
- package/dist/esm/sub-definitions/reminders-access.d.ts +1 -1
- package/dist/esm/sub-definitions/reminders-access.js.map +1 -1
- package/dist/esm/sub-definitions/reminders-operations.d.ts +10 -10
- package/dist/esm/sub-definitions/reminders-operations.js.map +1 -1
- package/dist/esm/web.d.ts +33 -32
- package/dist/esm/web.js +1 -1
- package/dist/esm/web.js.map +1 -1
- package/dist/plugin.cjs.js +1 -24
- package/dist/plugin.cjs.js.map +1 -1
- package/dist/plugin.js +1 -24
- package/dist/plugin.js.map +1 -1
- package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/CapacitorCalendarPlugin.swift +90 -71
- package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Implementation/CapacitorCalendar.swift +45 -63
- package/ios/Plugin/Info.plist +24 -0
- 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 +2 -2
- package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Inputs/ModifyEventInput.swift +63 -41
- package/ios/Plugin/Models/Structs/RecurrenceInput.swift +31 -0
- package/package.json +37 -45
- 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/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/CreateCalendarInput.swift +0 -0
- /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Inputs/DeleteCalendarInput.swift +0 -0
- /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Inputs/DeleteEventInput.swift +0 -0
- /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Inputs/DeleteEventWithPromptInput.swift +0 -0
- /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Inputs/DeleteEventsByIdInput.swift +0 -0
- /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Inputs/DeleteReminderInput.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/ModifyCalendarInput.swift +0 -0
- /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Inputs/ModifyEventWithPromptInput.swift +0 -0
- /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Inputs/ModifyReminderInput.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/CreateEventResult.swift +0 -0
- /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Models/Results/CreateEventWithPromptResult.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/ListEventsInRangeResult.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
- /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/PluginConfig.swift +0 -0
- /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/PluginError.swift +0 -0
- /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Utils/ImplementationHelper.swift +0 -0
- /package/ios/{Sources/CapacitorCalendarPlugin → Plugin}/Utils/UIColorFromHexExtension.swift +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { CalendarAccess } from
|
|
2
|
-
import type { CalendarOperations } from
|
|
3
|
-
import type { EventOperations } from
|
|
4
|
-
import type { RemindersAccess } from
|
|
5
|
-
import type { RemindersOperations } from
|
|
1
|
+
import type { CalendarAccess } from './sub-definitions/calendar-access';
|
|
2
|
+
import type { CalendarOperations } from './sub-definitions/calendar-operations';
|
|
3
|
+
import type { EventOperations } from './sub-definitions/event-operations';
|
|
4
|
+
import type { RemindersAccess } from './sub-definitions/reminders-access';
|
|
5
|
+
import type { RemindersOperations } from './sub-definitions/reminders-operations';
|
|
6
6
|
export interface CapacitorCalendarPlugin extends CalendarAccess, RemindersAccess, EventOperations, CalendarOperations, RemindersOperations {
|
|
7
7
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"definitions.js","sourceRoot":"","sources":["../../src/definitions.ts"],"names":[],"mappings":"","sourcesContent":["import type { CalendarAccess } from
|
|
1
|
+
{"version":3,"file":"definitions.js","sourceRoot":"","sources":["../../src/definitions.ts"],"names":[],"mappings":"","sourcesContent":["import type { CalendarAccess } from './sub-definitions/calendar-access';\nimport type { CalendarOperations } from './sub-definitions/calendar-operations';\nimport type { EventOperations } from './sub-definitions/event-operations';\nimport type { RemindersAccess } from './sub-definitions/reminders-access';\nimport type { RemindersOperations } from './sub-definitions/reminders-operations';\n\nexport interface CapacitorCalendarPlugin\n extends CalendarAccess, RemindersAccess, EventOperations, CalendarOperations, RemindersOperations {}\n"]}
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import { AttendeeRole } from
|
|
3
|
-
import { AttendeeStatus } from
|
|
4
|
-
import { AttendeeType } from
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
9
|
-
import
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import
|
|
13
|
-
import type {
|
|
14
|
-
import type {
|
|
15
|
-
import type {
|
|
16
|
-
import type {
|
|
17
|
-
import type {
|
|
18
|
-
import type {
|
|
19
|
-
import type {
|
|
20
|
-
import type {
|
|
21
|
-
import type {
|
|
22
|
-
import type {
|
|
23
|
-
import type {
|
|
24
|
-
import type {
|
|
25
|
-
import type {
|
|
26
|
-
import {
|
|
27
|
-
import type {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import type {
|
|
32
|
-
import type {
|
|
33
|
-
import type {
|
|
34
|
-
import type {
|
|
35
|
-
import type {
|
|
36
|
-
import type {
|
|
37
|
-
import type {
|
|
38
|
-
import type {
|
|
39
|
-
import {
|
|
40
|
-
import type {
|
|
41
|
-
import type {
|
|
42
|
-
import {
|
|
43
|
-
import type {
|
|
44
|
-
import type {
|
|
45
|
-
import type {
|
|
1
|
+
import type { CapacitorCalendarPlugin } from './definitions';
|
|
2
|
+
import { AttendeeRole } from './schemas/enums/attendee-role';
|
|
3
|
+
import { AttendeeStatus } from './schemas/enums/attendee-status';
|
|
4
|
+
import { AttendeeType } from './schemas/enums/attendee-type';
|
|
5
|
+
import { CalendarChooserDisplayStyle } from './schemas/enums/calendar-chooser-display-style';
|
|
6
|
+
import { CalendarPermissionScope } from './schemas/enums/calendar-permission-scope';
|
|
7
|
+
import { CalendarSourceType } from './schemas/enums/calendar-source-type';
|
|
8
|
+
import { CalendarType } from './schemas/enums/calendar-type';
|
|
9
|
+
import { EventAvailability } from './schemas/enums/event-availability';
|
|
10
|
+
import { EventSpan } from './schemas/enums/event-span';
|
|
11
|
+
import { EventStatus } from './schemas/enums/event-status';
|
|
12
|
+
import { ReminderRecurrenceFrequency } from './schemas/enums/reminder-recurrence-frequency';
|
|
13
|
+
import type { Calendar } from './schemas/interfaces/calendar';
|
|
14
|
+
import type { CalendarEvent } from './schemas/interfaces/calendar-event';
|
|
15
|
+
import type { CalendarSource } from './schemas/interfaces/calendar-source';
|
|
16
|
+
import type { CreateCalendarOptions } from './schemas/interfaces/create-calendar-options';
|
|
17
|
+
import type { CreateEventOptions } from './schemas/interfaces/create-event-options';
|
|
18
|
+
import type { CreateEventWithPromptOptions } from './schemas/interfaces/create-event-with-prompt-options';
|
|
19
|
+
import type { CreateReminderOptions } from './schemas/interfaces/create-reminder-options';
|
|
20
|
+
import type { DeleteCalendarOptions } from './schemas/interfaces/delete-calendar-options';
|
|
21
|
+
import type { DeleteEventOptions } from './schemas/interfaces/delete-event-options';
|
|
22
|
+
import type { DeleteEventWithPromptOptions } from './schemas/interfaces/delete-event-with-prompt-options';
|
|
23
|
+
import type { DeleteEventsByIdOptions } from './schemas/interfaces/delete-events-by-id-options';
|
|
24
|
+
import type { DeleteReminderOptions } from './schemas/interfaces/delete-reminder-options';
|
|
25
|
+
import type { DeleteReminderWithPromptOptions } from './schemas/interfaces/delete-reminder-with-prompt-options';
|
|
26
|
+
import type { DeleteRemindersByIdOptions } from './schemas/interfaces/delete-reminders-by-id-options';
|
|
27
|
+
import type { EventGuest } from './schemas/interfaces/event-guest';
|
|
28
|
+
import type { GetReminderByIdOptions } from './schemas/interfaces/get-reminder-by-id-options';
|
|
29
|
+
import type { GetRemindersFromListsOptions } from './schemas/interfaces/get-reminders-from-lists-options';
|
|
30
|
+
import type { ListEventsInRangeOptions } from './schemas/interfaces/list-events-in-range-options';
|
|
31
|
+
import type { ModifyCalendarOptions } from './schemas/interfaces/modify-calendar-options';
|
|
32
|
+
import type { ModifyEventOptions } from './schemas/interfaces/modify-event-options';
|
|
33
|
+
import type { ModifyEventWithPromptOptions } from './schemas/interfaces/modify-event-with-prompt-options';
|
|
34
|
+
import type { ModifyReminderOptions } from './schemas/interfaces/modify-reminder-options';
|
|
35
|
+
import type { OpenCalendarOptions } from './schemas/interfaces/open-calendar-options';
|
|
36
|
+
import type { RecurrenceRule } from './schemas/interfaces/recurrence-rule';
|
|
37
|
+
import type { Reminder } from './schemas/interfaces/reminder';
|
|
38
|
+
import type { ReminderRecurrenceRule } from './schemas/interfaces/reminder-recurrence-rule';
|
|
39
|
+
import type { RemindersList } from './schemas/interfaces/reminders-list';
|
|
40
|
+
import type { SelectCalendarsWithPromptOptions } from './schemas/interfaces/select-calendars-with-prompt-options';
|
|
41
|
+
import type { EventEditAction } from './schemas/types/event-edit-action';
|
|
42
|
+
import type { RecurrenceFrequency } from './schemas/types/recurrence-frequency';
|
|
43
|
+
import type { CheckAllPermissionsResult, RequestAllPermissionsResult } from './sub-definitions/calendar-access';
|
|
44
|
+
import type { DeleteEventsByIdResult } from './sub-definitions/event-operations';
|
|
45
|
+
import type { DeleteRemindersByIdResult } from './sub-definitions/reminders-operations';
|
|
46
46
|
declare const CapacitorCalendar: CapacitorCalendarPlugin;
|
|
47
|
-
export * from
|
|
47
|
+
export * from './definitions';
|
|
48
48
|
export type { CheckAllPermissionsResult, RequestAllPermissionsResult, CreateEventWithPromptOptions, ModifyEventWithPromptOptions, EventEditAction, CreateEventOptions, EventGuest, ModifyEventOptions, SelectCalendarsWithPromptOptions, Calendar, RemindersList, CalendarSource, OpenCalendarOptions, CreateCalendarOptions, DeleteCalendarOptions, ReminderRecurrenceRule, RecurrenceRule, CreateReminderOptions, DeleteRemindersByIdOptions, DeleteRemindersByIdResult, DeleteReminderOptions, ModifyReminderOptions, GetReminderByIdOptions, Reminder, GetRemindersFromListsOptions, DeleteEventsByIdOptions, DeleteEventsByIdResult, DeleteEventOptions, DeleteEventWithPromptOptions, ListEventsInRangeOptions, CalendarEvent, ModifyCalendarOptions, DeleteReminderWithPromptOptions, };
|
|
49
49
|
export { CalendarPermissionScope, EventAvailability, EventSpan, CalendarChooserDisplayStyle, CalendarType, CalendarSourceType, ReminderRecurrenceFrequency, RecurrenceFrequency, EventStatus, AttendeeRole, AttendeeType, AttendeeStatus, CapacitorCalendar, };
|
package/dist/esm/index.js
CHANGED
|
@@ -1,19 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import { ReminderRecurrenceFrequency } from
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
web: () => import("./web").then((m) => new m.CapacitorCalendarWeb()),
|
|
1
|
+
import { registerPlugin } from '@capacitor/core';
|
|
2
|
+
import { AttendeeRole } from './schemas/enums/attendee-role';
|
|
3
|
+
import { AttendeeStatus } from './schemas/enums/attendee-status';
|
|
4
|
+
import { AttendeeType } from './schemas/enums/attendee-type';
|
|
5
|
+
import { CalendarChooserDisplayStyle } from './schemas/enums/calendar-chooser-display-style';
|
|
6
|
+
import { CalendarPermissionScope } from './schemas/enums/calendar-permission-scope';
|
|
7
|
+
import { CalendarSourceType } from './schemas/enums/calendar-source-type';
|
|
8
|
+
import { CalendarType } from './schemas/enums/calendar-type';
|
|
9
|
+
import { EventAvailability } from './schemas/enums/event-availability';
|
|
10
|
+
import { EventSpan } from './schemas/enums/event-span';
|
|
11
|
+
import { EventStatus } from './schemas/enums/event-status';
|
|
12
|
+
import { ReminderRecurrenceFrequency } from './schemas/enums/reminder-recurrence-frequency';
|
|
13
|
+
const CapacitorCalendar = registerPlugin('CapacitorCalendar', {
|
|
14
|
+
web: () => import('./web').then((m) => new m.CapacitorCalendarWeb()),
|
|
16
15
|
});
|
|
17
|
-
export * from
|
|
18
|
-
export { CalendarPermissionScope, EventAvailability, EventSpan, CalendarChooserDisplayStyle, CalendarType, CalendarSourceType, ReminderRecurrenceFrequency,
|
|
16
|
+
export * from './definitions';
|
|
17
|
+
export { CalendarPermissionScope, EventAvailability, EventSpan, CalendarChooserDisplayStyle, CalendarType, CalendarSourceType, ReminderRecurrenceFrequency, EventStatus, AttendeeRole, AttendeeType, AttendeeStatus, CapacitorCalendar, };
|
|
19
18
|
//# sourceMappingURL=index.js.map
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAGjD,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACjE,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,2BAA2B,EAAE,MAAM,gDAAgD,CAAC;AAC7F,OAAO,EAAE,uBAAuB,EAAE,MAAM,2CAA2C,CAAC;AACpF,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAC1E,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AACvE,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,EAAE,2BAA2B,EAAE,MAAM,+CAA+C,CAAC;AAmC5F,MAAM,iBAAiB,GAAG,cAAc,CAA0B,mBAAmB,EAAE;IACrF,GAAG,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC,oBAAoB,EAAE,CAAC;CACrE,CAAC,CAAC;AAEH,cAAc,eAAe,CAAC;AAoC9B,OAAO,EACL,uBAAuB,EACvB,iBAAiB,EACjB,SAAS,EACT,2BAA2B,EAC3B,YAAY,EACZ,kBAAkB,EAClB,2BAA2B,EAE3B,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,cAAc,EACd,iBAAiB,GAClB,CAAC","sourcesContent":["import { registerPlugin } from '@capacitor/core';\n\nimport type { CapacitorCalendarPlugin } from './definitions';\nimport { AttendeeRole } from './schemas/enums/attendee-role';\nimport { AttendeeStatus } from './schemas/enums/attendee-status';\nimport { AttendeeType } from './schemas/enums/attendee-type';\nimport { CalendarChooserDisplayStyle } from './schemas/enums/calendar-chooser-display-style';\nimport { CalendarPermissionScope } from './schemas/enums/calendar-permission-scope';\nimport { CalendarSourceType } from './schemas/enums/calendar-source-type';\nimport { CalendarType } from './schemas/enums/calendar-type';\nimport { EventAvailability } from './schemas/enums/event-availability';\nimport { EventSpan } from './schemas/enums/event-span';\nimport { EventStatus } from './schemas/enums/event-status';\nimport { ReminderRecurrenceFrequency } from './schemas/enums/reminder-recurrence-frequency';\nimport type { Calendar } from './schemas/interfaces/calendar';\nimport type { CalendarEvent } from './schemas/interfaces/calendar-event';\nimport type { CalendarSource } from './schemas/interfaces/calendar-source';\nimport type { CreateCalendarOptions } from './schemas/interfaces/create-calendar-options';\nimport type { CreateEventOptions } from './schemas/interfaces/create-event-options';\nimport type { CreateEventWithPromptOptions } from './schemas/interfaces/create-event-with-prompt-options';\nimport type { CreateReminderOptions } from './schemas/interfaces/create-reminder-options';\nimport type { DeleteCalendarOptions } from './schemas/interfaces/delete-calendar-options';\nimport type { DeleteEventOptions } from './schemas/interfaces/delete-event-options';\nimport type { DeleteEventWithPromptOptions } from './schemas/interfaces/delete-event-with-prompt-options';\nimport type { DeleteEventsByIdOptions } from './schemas/interfaces/delete-events-by-id-options';\nimport type { DeleteReminderOptions } from './schemas/interfaces/delete-reminder-options';\nimport type { DeleteReminderWithPromptOptions } from './schemas/interfaces/delete-reminder-with-prompt-options';\nimport type { DeleteRemindersByIdOptions } from './schemas/interfaces/delete-reminders-by-id-options';\nimport type { EventGuest } from './schemas/interfaces/event-guest';\nimport type { GetReminderByIdOptions } from './schemas/interfaces/get-reminder-by-id-options';\nimport type { GetRemindersFromListsOptions } from './schemas/interfaces/get-reminders-from-lists-options';\nimport type { ListEventsInRangeOptions } from './schemas/interfaces/list-events-in-range-options';\nimport type { ModifyCalendarOptions } from './schemas/interfaces/modify-calendar-options';\nimport type { ModifyEventOptions } from './schemas/interfaces/modify-event-options';\nimport type { ModifyEventWithPromptOptions } from './schemas/interfaces/modify-event-with-prompt-options';\nimport type { ModifyReminderOptions } from './schemas/interfaces/modify-reminder-options';\nimport type { OpenCalendarOptions } from './schemas/interfaces/open-calendar-options';\nimport type { RecurrenceRule } from './schemas/interfaces/recurrence-rule';\nimport type { Reminder } from './schemas/interfaces/reminder';\nimport type { ReminderRecurrenceRule } from './schemas/interfaces/reminder-recurrence-rule';\nimport type { RemindersList } from './schemas/interfaces/reminders-list';\nimport type { SelectCalendarsWithPromptOptions } from './schemas/interfaces/select-calendars-with-prompt-options';\nimport type { EventEditAction } from './schemas/types/event-edit-action';\nimport type { RecurrenceFrequency } from './schemas/types/recurrence-frequency';\nimport type { CheckAllPermissionsResult, RequestAllPermissionsResult } from './sub-definitions/calendar-access';\nimport type { DeleteEventsByIdResult } from './sub-definitions/event-operations';\nimport type { DeleteRemindersByIdResult } from './sub-definitions/reminders-operations';\n\nconst CapacitorCalendar = registerPlugin<CapacitorCalendarPlugin>('CapacitorCalendar', {\n web: () => import('./web').then((m) => new m.CapacitorCalendarWeb()),\n});\n\nexport * from './definitions';\nexport type {\n CheckAllPermissionsResult,\n RequestAllPermissionsResult,\n CreateEventWithPromptOptions,\n ModifyEventWithPromptOptions,\n EventEditAction,\n CreateEventOptions,\n EventGuest,\n ModifyEventOptions,\n SelectCalendarsWithPromptOptions,\n Calendar,\n RemindersList,\n CalendarSource,\n OpenCalendarOptions,\n CreateCalendarOptions,\n DeleteCalendarOptions,\n ReminderRecurrenceRule,\n RecurrenceRule,\n CreateReminderOptions,\n DeleteRemindersByIdOptions,\n DeleteRemindersByIdResult,\n DeleteReminderOptions,\n ModifyReminderOptions,\n GetReminderByIdOptions,\n Reminder,\n GetRemindersFromListsOptions,\n DeleteEventsByIdOptions,\n DeleteEventsByIdResult,\n DeleteEventOptions,\n DeleteEventWithPromptOptions,\n ListEventsInRangeOptions,\n CalendarEvent,\n ModifyCalendarOptions,\n DeleteReminderWithPromptOptions,\n};\nexport {\n CalendarPermissionScope,\n EventAvailability,\n EventSpan,\n CalendarChooserDisplayStyle,\n CalendarType,\n CalendarSourceType,\n ReminderRecurrenceFrequency,\n RecurrenceFrequency,\n EventStatus,\n AttendeeRole,\n AttendeeType,\n AttendeeStatus,\n CapacitorCalendar,\n};\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"attendee-role.js","sourceRoot":"","sources":["../../../../src/schemas/enums/attendee-role.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,CAAN,IAAY,YA8CX;AA9CD,WAAY,YAAY;IACtB;;;OAGG;IACH,mCAAmB,CAAA;IACnB;;;OAGG;IACH,qCAAqB,CAAA;IACrB;;;OAGG;IACH,qCAAqB,CAAA;IACrB;;;OAGG;IACH,+BAAe,CAAA;IACf;;;OAGG;IACH,kDAAkC,CAAA;IAClC;;;OAGG;IACH,qCAAqB,CAAA;IACrB;;;OAGG;IACH,uCAAuB,CAAA;IACvB;;;OAGG;IACH,uCAAuB,CAAA;IACvB;;;OAGG;IACH,mCAAmB,CAAA;AACrB,CAAC,EA9CW,YAAY,KAAZ,YAAY,QA8CvB","sourcesContent":["/**\n * @since 7.1.0\n */\nexport enum AttendeeRole {\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n UNKNOWN =
|
|
1
|
+
{"version":3,"file":"attendee-role.js","sourceRoot":"","sources":["../../../../src/schemas/enums/attendee-role.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,CAAN,IAAY,YA8CX;AA9CD,WAAY,YAAY;IACtB;;;OAGG;IACH,mCAAmB,CAAA;IACnB;;;OAGG;IACH,qCAAqB,CAAA;IACrB;;;OAGG;IACH,qCAAqB,CAAA;IACrB;;;OAGG;IACH,+BAAe,CAAA;IACf;;;OAGG;IACH,kDAAkC,CAAA;IAClC;;;OAGG;IACH,qCAAqB,CAAA;IACrB;;;OAGG;IACH,uCAAuB,CAAA;IACvB;;;OAGG;IACH,uCAAuB,CAAA;IACvB;;;OAGG;IACH,mCAAmB,CAAA;AACrB,CAAC,EA9CW,YAAY,KAAZ,YAAY,QA8CvB","sourcesContent":["/**\n * @since 7.1.0\n */\nexport enum AttendeeRole {\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n UNKNOWN = 'unknown',\n /**\n * @platform iOS\n * @since 7.1.0\n */\n REQUIRED = 'required',\n /**\n * @platform iOS\n * @since 7.1.0\n */\n OPTIONAL = 'optional',\n /**\n * @platform iOS\n * @since 7.1.0\n */\n CHAIR = 'chair',\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n NON_PARTICIPANT = 'nonParticipant',\n /**\n * @platform Android\n * @since 7.1.0\n */\n ATTENDEE = 'attendee',\n /**\n * @platform Android\n * @since 7.1.0\n */\n ORGANIZER = 'organizer',\n /**\n * @platform Android\n * @since 7.1.0\n */\n PERFORMER = 'performer',\n /**\n * @platform Android\n * @since 7.1.0\n */\n SPEAKER = 'speaker',\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"attendee-status.js","sourceRoot":"","sources":["../../../../src/schemas/enums/attendee-status.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,CAAN,IAAY,cAmDX;AAnDD,WAAY,cAAc;IACxB;;;OAGG;IACH,+BAAa,CAAA;IACb;;;OAGG;IACH,uCAAqB,CAAA;IACrB;;;OAGG;IACH,uCAAqB,CAAA;IACrB;;;OAGG;IACH,qCAAmB,CAAA;IACnB;;;OAGG;IACH,qCAAmB,CAAA;IACnB;;;OAGG;IACH,qCAAmB,CAAA;IACnB;;;OAGG;IACH,yCAAuB,CAAA;IACvB;;;OAGG;IACH,yCAAuB,CAAA;IACvB;;;OAGG;IACH,yCAAuB,CAAA;IACvB;;;OAGG;IACH,0CAAwB,CAAA;AAC1B,CAAC,EAnDW,cAAc,KAAd,cAAc,QAmDzB","sourcesContent":["/**\n * @since 7.1.0\n */\nexport enum AttendeeStatus {\n /**\n * @platform Android\n * @since 7.1.0\n */\n NONE =
|
|
1
|
+
{"version":3,"file":"attendee-status.js","sourceRoot":"","sources":["../../../../src/schemas/enums/attendee-status.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,CAAN,IAAY,cAmDX;AAnDD,WAAY,cAAc;IACxB;;;OAGG;IACH,+BAAa,CAAA;IACb;;;OAGG;IACH,uCAAqB,CAAA;IACrB;;;OAGG;IACH,uCAAqB,CAAA;IACrB;;;OAGG;IACH,qCAAmB,CAAA;IACnB;;;OAGG;IACH,qCAAmB,CAAA;IACnB;;;OAGG;IACH,qCAAmB,CAAA;IACnB;;;OAGG;IACH,yCAAuB,CAAA;IACvB;;;OAGG;IACH,yCAAuB,CAAA;IACvB;;;OAGG;IACH,yCAAuB,CAAA;IACvB;;;OAGG;IACH,0CAAwB,CAAA;AAC1B,CAAC,EAnDW,cAAc,KAAd,cAAc,QAmDzB","sourcesContent":["/**\n * @since 7.1.0\n */\nexport enum AttendeeStatus {\n /**\n * @platform Android\n * @since 7.1.0\n */\n NONE = 'none',\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n ACCEPTED = 'accepted',\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n DECLINED = 'declined',\n /**\n * @platform Android\n * @since 7.1.0\n */\n INVITED = 'invited',\n /**\n * @platform iOS\n * @since 7.1.0\n */\n UNKNOWN = 'unknown',\n /**\n * @platform iOS\n * @since 7.1.0\n */\n PENDING = 'pending',\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n TENTATIVE = 'tentative',\n /**\n * @platform iOS\n * @since 7.1.0\n */\n DELEGATED = 'delegated',\n /**\n * @platform iOS\n * @since 7.1.0\n */\n COMPLETED = 'completed',\n /**\n * @platform iOS\n * @since 7.1.0\n */\n IN_PROCESS = 'inProcess',\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"attendee-type.js","sourceRoot":"","sources":["../../../../src/schemas/enums/attendee-type.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,CAAN,IAAY,YAyCX;AAzCD,WAAY,YAAY;IACtB;;;OAGG;IACH,mCAAmB,CAAA;IACnB;;;OAGG;IACH,iCAAiB,CAAA;IACjB;;;OAGG;IACH,6BAAa,CAAA;IACb;;;OAGG;IACH,qCAAqB,CAAA;IACrB;;;OAGG;IACH,+BAAe,CAAA;IACf;;;OAGG;IACH,qCAAqB,CAAA;IACrB;;;OAGG;IACH,6BAAa,CAAA;IACb;;;OAGG;IACH,qCAAqB,CAAA;AACvB,CAAC,EAzCW,YAAY,KAAZ,YAAY,QAyCvB","sourcesContent":["/**\n * @since 7.1.0\n */\nexport enum AttendeeType {\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n UNKNOWN =
|
|
1
|
+
{"version":3,"file":"attendee-type.js","sourceRoot":"","sources":["../../../../src/schemas/enums/attendee-type.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,CAAN,IAAY,YAyCX;AAzCD,WAAY,YAAY;IACtB;;;OAGG;IACH,mCAAmB,CAAA;IACnB;;;OAGG;IACH,iCAAiB,CAAA;IACjB;;;OAGG;IACH,6BAAa,CAAA;IACb;;;OAGG;IACH,qCAAqB,CAAA;IACrB;;;OAGG;IACH,+BAAe,CAAA;IACf;;;OAGG;IACH,qCAAqB,CAAA;IACrB;;;OAGG;IACH,6BAAa,CAAA;IACb;;;OAGG;IACH,qCAAqB,CAAA;AACvB,CAAC,EAzCW,YAAY,KAAZ,YAAY,QAyCvB","sourcesContent":["/**\n * @since 7.1.0\n */\nexport enum AttendeeType {\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n UNKNOWN = 'unknown',\n /**\n * @platform iOS\n * @since 7.1.0\n */\n PERSON = 'person',\n /**\n * @platform iOS\n * @since 7.1.0\n */\n ROOM = 'room',\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n RESOURCE = 'resource',\n /**\n * @platform iOS\n * @since 7.1.0\n */\n GROUP = 'group',\n /**\n * @platform Android\n * @since 7.1.0\n */\n REQUIRED = 'required',\n /**\n * @platform Android\n * @since 7.1.0\n */\n NONE = 'none',\n /**\n * @platform Android\n * @since 7.1.0\n */\n OPTIONAL = 'optional',\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"calendar-permission-scope.js","sourceRoot":"","sources":["../../../../src/schemas/enums/calendar-permission-scope.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,CAAN,IAAY,uBAsDX;AAtDD,WAAY,uBAAuB;IACjC;;;;;;;;;;;;OAYG;IACH,yDAA8B,CAAA;IAC9B;;;;;;;;;;OAUG;IACH,2DAAgC,CAAA;IAChC;;;;;;;;;;;;OAYG;IACH,2DAAgC,CAAA;IAChC;;;;;;;;;;;OAWG;IACH,6DAAkC,CAAA;AACpC,CAAC,EAtDW,uBAAuB,KAAvB,uBAAuB,QAsDlC","sourcesContent":["/**\n * Enum defining available calendar and reminders related permissions.\n *\n * @since 7.1.0\n */\nexport enum CalendarPermissionScope {\n /**\n * Permission required for reading calendar events.\n *\n * @permissions\n * | Platform | Required |\n * |-----------|---------------------|\n * | iOS 17+ | `NSCalendarsFullAccessUsageDescription` |\n * | iOS 13-16 | `NSCalendarsUsageDescription` |\n * | Android | `android.permission.READ_CALENDAR` |\n *\n * @platform Android, iOS\n * @since 7.1.0\n */\n READ_CALENDAR =
|
|
1
|
+
{"version":3,"file":"calendar-permission-scope.js","sourceRoot":"","sources":["../../../../src/schemas/enums/calendar-permission-scope.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,CAAN,IAAY,uBAsDX;AAtDD,WAAY,uBAAuB;IACjC;;;;;;;;;;;;OAYG;IACH,yDAA8B,CAAA;IAC9B;;;;;;;;;;OAUG;IACH,2DAAgC,CAAA;IAChC;;;;;;;;;;;;OAYG;IACH,2DAAgC,CAAA;IAChC;;;;;;;;;;;OAWG;IACH,6DAAkC,CAAA;AACpC,CAAC,EAtDW,uBAAuB,KAAvB,uBAAuB,QAsDlC","sourcesContent":["/**\n * Enum defining available calendar and reminders related permissions.\n *\n * @since 7.1.0\n */\nexport enum CalendarPermissionScope {\n /**\n * Permission required for reading calendar events.\n *\n * @permissions\n * | Platform | Required |\n * |-----------|---------------------|\n * | iOS 17+ | `NSCalendarsFullAccessUsageDescription` |\n * | iOS 13-16 | `NSCalendarsUsageDescription` |\n * | Android | `android.permission.READ_CALENDAR` |\n *\n * @platform Android, iOS\n * @since 7.1.0\n */\n READ_CALENDAR = 'readCalendar',\n /**\n * Permission required for reading reminders.\n *\n * @permissions\n * | Platform | Required |\n * |-----------|---------------------|\n * | iOS 17+ | `NSRemindersFullAccessUsageDescription` |\n * | iOS 10-16 | `NSRemindersUsageDescription` |\n * @platform iOS\n * @since 7.1.0\n */\n READ_REMINDERS = 'readReminders',\n /**\n * Permission required for adding or modifying calendar events.\n *\n * @permissions\n * | Platform | Required |\n * |-----------|---------------------|\n * | iOS 17+ | `NSCalendarsWriteOnlyAccessUsageDescription` |\n * | iOS 13-16 | `NSCalendarsUsageDescription` |\n * | Android | `android.permission.WRITE_CALENDAR` |\n *\n * @platform Android, iOS\n * @since 7.1.0\n */\n WRITE_CALENDAR = 'writeCalendar',\n /**\n * Permission required for adding or modifying reminders.\n *\n * @permissions\n * | Platform | Required |\n * |-----------|---------------------|\n * | iOS 17+ | `NSRemindersFullAccessUsageDescription` |\n * | iOS 13-16 | `NSRemindersUsageDescription` |\n *\n * @platform iOS\n * @since 7.1.0\n */\n WRITE_REMINDERS = 'writeReminders',\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"event-status.js","sourceRoot":"","sources":["../../../../src/schemas/enums/event-status.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,CAAN,IAAY,WAqBX;AArBD,WAAY,WAAW;IACrB;;;OAGG;IACH,4BAAa,CAAA;IACb;;;OAGG;IACH,sCAAuB,CAAA;IACvB;;;OAGG;IACH,sCAAuB,CAAA;IACvB;;;OAGG;IACH,oCAAqB,CAAA;AACvB,CAAC,EArBW,WAAW,KAAX,WAAW,QAqBtB","sourcesContent":["/**\n * @platform Android, iOS\n * @since 7.1.0\n */\nexport enum EventStatus {\n /**\n * @platform iOS\n * @since 7.1.0\n */\n NONE =
|
|
1
|
+
{"version":3,"file":"event-status.js","sourceRoot":"","sources":["../../../../src/schemas/enums/event-status.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,CAAN,IAAY,WAqBX;AArBD,WAAY,WAAW;IACrB;;;OAGG;IACH,4BAAa,CAAA;IACb;;;OAGG;IACH,sCAAuB,CAAA;IACvB;;;OAGG;IACH,sCAAuB,CAAA;IACvB;;;OAGG;IACH,oCAAqB,CAAA;AACvB,CAAC,EArBW,WAAW,KAAX,WAAW,QAqBtB","sourcesContent":["/**\n * @platform Android, iOS\n * @since 7.1.0\n */\nexport enum EventStatus {\n /**\n * @platform iOS\n * @since 7.1.0\n */\n NONE = 'none',\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n CONFIRMED = 'confirmed',\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n TENTATIVE = 'tentative',\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n CANCELED = 'canceled',\n}\n"]}
|
|
@@ -1,8 +1,8 @@
|
|
|
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
|
*/
|
|
@@ -43,6 +43,8 @@ export interface CalendarEvent {
|
|
|
43
43
|
*/
|
|
44
44
|
isAllDay: boolean;
|
|
45
45
|
/**
|
|
46
|
+
* Alert times in minutes relative to the event start.
|
|
47
|
+
*
|
|
46
48
|
* @platform Android, iOS
|
|
47
49
|
* @since 7.1.0
|
|
48
50
|
*/
|
|
@@ -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 * @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 * 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 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 +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 * @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 +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';\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 * @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"]}
|
|
@@ -1,60 +1,85 @@
|
|
|
1
|
-
import { EventAvailability } from
|
|
2
|
-
import type { EventGuest } from
|
|
1
|
+
import type { EventAvailability } from '../enums/event-availability';
|
|
2
|
+
import type { EventGuest } from './event-guest';
|
|
3
|
+
import type { EventRecurrenceRule } from './event-recurrence-rule';
|
|
3
4
|
/**
|
|
4
5
|
* @since 7.1.0
|
|
5
6
|
*/
|
|
6
7
|
export interface CreateEventOptions {
|
|
7
8
|
/**
|
|
9
|
+
* Alert times in minutes relative to the event start.
|
|
10
|
+
* Use negative numbers for alerts before the start, and positive numbers for alerts after the start.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* // -1440 -> 1 day before
|
|
14
|
+
* // -60 -> 1 hour before
|
|
15
|
+
* // 30 -> 30 minutes after
|
|
16
|
+
* [-1440, -60, 30]
|
|
17
|
+
*
|
|
8
18
|
* @platform Android, iOS
|
|
9
|
-
* @since
|
|
19
|
+
* @since 7.1.0
|
|
10
20
|
*/
|
|
11
|
-
|
|
21
|
+
alerts?: number[];
|
|
12
22
|
/**
|
|
13
|
-
*
|
|
14
|
-
*
|
|
23
|
+
* The event guests.
|
|
24
|
+
*
|
|
25
|
+
* @platform Android
|
|
26
|
+
* @since 7.1.0
|
|
15
27
|
*/
|
|
16
|
-
|
|
28
|
+
attendees?: EventGuest[];
|
|
17
29
|
/**
|
|
18
30
|
* @platform Android, iOS
|
|
19
|
-
* @since
|
|
31
|
+
* @since 7.1.0
|
|
20
32
|
*/
|
|
21
|
-
|
|
33
|
+
availability?: EventAvailability;
|
|
22
34
|
/**
|
|
23
|
-
*
|
|
24
35
|
* @platform Android, iOS
|
|
25
36
|
* @since 0.1.0
|
|
26
37
|
*/
|
|
27
|
-
|
|
38
|
+
calendarId?: string;
|
|
28
39
|
/**
|
|
29
|
-
* @
|
|
30
|
-
* @
|
|
40
|
+
* @example #6750A4
|
|
41
|
+
* @platform Android
|
|
42
|
+
* @since 7.1.0
|
|
31
43
|
*/
|
|
32
|
-
|
|
44
|
+
color?: string;
|
|
33
45
|
/**
|
|
34
|
-
*
|
|
35
|
-
*
|
|
46
|
+
* Whether to save immediately (`true`) or batch changes for later (`false`).
|
|
47
|
+
*
|
|
48
|
+
* @default true
|
|
49
|
+
* @platform iOS
|
|
50
|
+
* @see {@link CalendarOperations#commit}
|
|
51
|
+
* @since 7.1.0
|
|
36
52
|
*/
|
|
37
|
-
|
|
53
|
+
commit?: boolean;
|
|
38
54
|
/**
|
|
39
55
|
* @platform Android, iOS
|
|
40
56
|
* @since 7.1.0
|
|
41
57
|
*/
|
|
42
|
-
|
|
58
|
+
description?: string;
|
|
43
59
|
/**
|
|
44
|
-
*
|
|
60
|
+
* Duration of the event in RFC2445 format.
|
|
61
|
+
*
|
|
62
|
+
* @example P1D (1 day), P3W (3 weeks), P2DT4H30M (2 days, 4 hours, and 30 minutes).
|
|
63
|
+
* @platform Android
|
|
64
|
+
* @see {@link https://datatracker.ietf.org/doc/html/rfc2445}
|
|
65
|
+
* @since 7.1.0
|
|
66
|
+
*/
|
|
67
|
+
duration?: string;
|
|
68
|
+
/**
|
|
69
|
+
* @platform Android, iOS
|
|
45
70
|
* @since 0.1.0
|
|
46
71
|
*/
|
|
47
|
-
|
|
72
|
+
endDate?: number;
|
|
48
73
|
/**
|
|
49
74
|
* @platform Android, iOS
|
|
50
|
-
* @since
|
|
75
|
+
* @since 0.1.0
|
|
51
76
|
*/
|
|
52
|
-
|
|
77
|
+
isAllDay?: boolean;
|
|
53
78
|
/**
|
|
54
79
|
* @platform Android, iOS
|
|
55
|
-
* @since
|
|
80
|
+
* @since 0.1.0
|
|
56
81
|
*/
|
|
57
|
-
|
|
82
|
+
location?: string;
|
|
58
83
|
/**
|
|
59
84
|
* Email of the event organizer.
|
|
60
85
|
*
|
|
@@ -63,34 +88,26 @@ export interface CreateEventOptions {
|
|
|
63
88
|
*/
|
|
64
89
|
organizer?: string;
|
|
65
90
|
/**
|
|
66
|
-
*
|
|
67
|
-
*
|
|
68
|
-
* @
|
|
91
|
+
* Rules for creating a recurring event.
|
|
92
|
+
*
|
|
93
|
+
* @platform Android, iOS
|
|
94
|
+
* @since 7.3.0
|
|
69
95
|
*/
|
|
70
|
-
|
|
96
|
+
recurrence?: EventRecurrenceRule;
|
|
71
97
|
/**
|
|
72
|
-
* Duration of the event in RFC2445 format.
|
|
73
98
|
*
|
|
74
|
-
* @
|
|
75
|
-
* @
|
|
76
|
-
* @see {@link https://datatracker.ietf.org/doc/html/rfc2445}
|
|
77
|
-
* @since 7.1.0
|
|
99
|
+
* @platform Android, iOS
|
|
100
|
+
* @since 0.1.0
|
|
78
101
|
*/
|
|
79
|
-
|
|
102
|
+
startDate?: number;
|
|
80
103
|
/**
|
|
81
|
-
*
|
|
82
|
-
*
|
|
83
|
-
* @default true
|
|
84
|
-
* @platform iOS
|
|
85
|
-
* @see {@link CalendarOperations#commit}
|
|
86
|
-
* @since 7.1.0
|
|
104
|
+
* @platform Android, iOS
|
|
105
|
+
* @since 0.4.0
|
|
87
106
|
*/
|
|
88
|
-
|
|
107
|
+
title: string;
|
|
89
108
|
/**
|
|
90
|
-
*
|
|
91
|
-
*
|
|
92
|
-
* @platform Android
|
|
93
|
-
* @since 7.1.0
|
|
109
|
+
* @platform iOS
|
|
110
|
+
* @since 0.1.0
|
|
94
111
|
*/
|
|
95
|
-
|
|
112
|
+
url?: string;
|
|
96
113
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-event-options.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/create-event-options.ts"],"names":[],"mappings":"","sourcesContent":["import { EventAvailability } from
|
|
1
|
+
{"version":3,"file":"create-event-options.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/create-event-options.ts"],"names":[],"mappings":"","sourcesContent":["import type { EventAvailability } from '../enums/event-availability';\n\nimport type { EventGuest } from './event-guest';\nimport type { EventRecurrenceRule } from './event-recurrence-rule';\n\n/**\n * @since 7.1.0\n */\nexport interface CreateEventOptions {\n /**\n * Alert times in minutes relative to the event start.\n * Use negative numbers for alerts before the start, and positive numbers for alerts after the start.\n *\n * @example\n * // -1440 -> 1 day before\n * // -60 -> 1 hour before\n * // 30 -> 30 minutes after\n * [-1440, -60, 30]\n *\n * @platform Android, iOS\n * @since 7.1.0\n */\n alerts?: number[];\n /**\n * The event guests.\n *\n * @platform Android\n * @since 7.1.0\n */\n attendees?: EventGuest[];\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n availability?: EventAvailability;\n /**\n * @platform Android, iOS\n * @since 0.1.0\n */\n calendarId?: string;\n /**\n * @example #6750A4\n * @platform Android\n * @since 7.1.0\n */\n color?: string;\n /**\n * Whether to save immediately (`true`) or batch changes for later (`false`).\n *\n * @default true\n * @platform iOS\n * @see {@link CalendarOperations#commit}\n * @since 7.1.0\n */\n commit?: boolean;\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n description?: 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 * @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 0.1.0\n */\n location?: string;\n /**\n * Email of the event organizer.\n *\n * @platform Android\n * @since 7.1.0\n */\n organizer?: string;\n /**\n * Rules for creating a recurring event.\n *\n * @platform Android, iOS\n * @since 7.3.0\n */\n recurrence?: EventRecurrenceRule;\n /**\n *\n * @platform Android, iOS\n * @since 0.1.0\n */\n startDate?: number;\n /**\n * @platform Android, iOS\n * @since 0.4.0\n */\n title: string;\n /**\n * @platform iOS\n * @since 0.1.0\n */\n url?: string;\n}\n"]}
|