@ebarooni/capacitor-calendar 8.3.0 → 8.5.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 +225 -97
- package/android/src/main/java/dev/barooni/capacitor/calendar/CapacitorCalendarPlugin.kt +42 -7
- package/android/src/main/java/dev/barooni/capacitor/calendar/PluginError.kt +31 -21
- package/android/src/main/java/dev/barooni/capacitor/calendar/implementation/CapacitorCalendar.kt +59 -15
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/CheckPermissionInput.kt +0 -4
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/CreateCalendarInput.kt +3 -1
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/DeleteCalendarInput.kt +4 -1
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/GetDefaultCalendarInput.kt +9 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/ModifyCalendarInput.kt +10 -1
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/RequestPermissionInput.kt +3 -5
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/CheckAllPermissionsResult.kt +3 -2
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/RequestAllPermissionsResult.kt +1 -1
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/templates/PluginCompletion.kt +8 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/utils/ImplementationHelper.kt +68 -31
- package/dist/docs.json +562 -70
- package/dist/esm/index.d.ts +12 -2
- package/dist/esm/index.js +2 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/schemas/enums/calendar-permission-scope.d.ts +8 -0
- package/dist/esm/schemas/enums/calendar-permission-scope.js +8 -0
- package/dist/esm/schemas/enums/calendar-permission-scope.js.map +1 -1
- package/dist/esm/schemas/interfaces/calendar-source.d.ts +3 -0
- package/dist/esm/schemas/interfaces/calendar-source.js.map +1 -1
- package/dist/esm/schemas/interfaces/calendar.d.ts +12 -2
- package/dist/esm/schemas/interfaces/calendar.js.map +1 -1
- package/dist/esm/schemas/interfaces/check-permission-options.d.ts +19 -0
- package/dist/esm/schemas/interfaces/check-permission-options.js +2 -0
- package/dist/esm/schemas/interfaces/check-permission-options.js.map +1 -0
- package/dist/esm/schemas/interfaces/create-calendar-options.d.ts +16 -5
- package/dist/esm/schemas/interfaces/create-calendar-options.js.map +1 -1
- package/dist/esm/schemas/interfaces/create-calendar-result.d.ts +12 -0
- package/dist/esm/schemas/interfaces/create-calendar-result.js +2 -0
- package/dist/esm/schemas/interfaces/create-calendar-result.js.map +1 -0
- package/dist/esm/schemas/interfaces/create-event-options.d.ts +22 -13
- package/dist/esm/schemas/interfaces/create-event-options.js.map +1 -1
- package/dist/esm/schemas/interfaces/create-event-result.d.ts +23 -0
- package/dist/esm/schemas/interfaces/create-event-result.js +2 -0
- package/dist/esm/schemas/interfaces/create-event-result.js.map +1 -0
- package/dist/esm/schemas/interfaces/create-event-with-prompt-result.d.ts +14 -0
- package/dist/esm/schemas/interfaces/create-event-with-prompt-result.js +2 -0
- package/dist/esm/schemas/interfaces/create-event-with-prompt-result.js.map +1 -0
- package/dist/esm/schemas/interfaces/delete-calendar-options.d.ts +1 -0
- package/dist/esm/schemas/interfaces/delete-calendar-options.js.map +1 -1
- package/dist/esm/schemas/interfaces/fetch-all-calendar-sources-result.d.ts +13 -0
- package/dist/esm/schemas/interfaces/fetch-all-calendar-sources-result.js +2 -0
- package/dist/esm/schemas/interfaces/fetch-all-calendar-sources-result.js.map +1 -0
- package/dist/esm/schemas/interfaces/get-default-calendar-options.d.ts +13 -0
- package/dist/esm/schemas/interfaces/get-default-calendar-options.js +2 -0
- package/dist/esm/schemas/interfaces/get-default-calendar-options.js.map +1 -0
- package/dist/esm/schemas/interfaces/list-calendars-result.d.ts +13 -0
- package/dist/esm/schemas/interfaces/list-calendars-result.js +2 -0
- package/dist/esm/schemas/interfaces/list-calendars-result.js.map +1 -0
- package/dist/esm/schemas/interfaces/list-events-in-range-options.d.ts +7 -2
- package/dist/esm/schemas/interfaces/list-events-in-range-options.js.map +1 -1
- package/dist/esm/schemas/interfaces/modify-calendar-options.d.ts +8 -1
- package/dist/esm/schemas/interfaces/modify-calendar-options.js.map +1 -1
- package/dist/esm/schemas/interfaces/open-calendar-options.d.ts +5 -1
- package/dist/esm/schemas/interfaces/open-calendar-options.js.map +1 -1
- package/dist/esm/schemas/interfaces/request-permission-options.d.ts +16 -0
- package/dist/esm/schemas/interfaces/request-permission-options.js +2 -0
- package/dist/esm/schemas/interfaces/request-permission-options.js.map +1 -0
- package/dist/esm/schemas/interfaces/select-calendars-with-prompt-result.d.ts +14 -0
- package/dist/esm/schemas/interfaces/select-calendars-with-prompt-result.js +2 -0
- package/dist/esm/schemas/interfaces/select-calendars-with-prompt-result.js.map +1 -0
- package/dist/esm/sub-definitions/calendar-access.d.ts +22 -10
- package/dist/esm/sub-definitions/calendar-access.js.map +1 -1
- package/dist/esm/sub-definitions/calendar-operations.d.ts +61 -14
- package/dist/esm/sub-definitions/calendar-operations.js.map +1 -1
- package/dist/esm/sub-definitions/event-operations.d.ts +35 -9
- package/dist/esm/sub-definitions/event-operations.js.map +1 -1
- package/dist/esm/sub-definitions/reminders-access.d.ts +4 -0
- package/dist/esm/sub-definitions/reminders-access.js.map +1 -1
- package/dist/esm/web/download-ics-file.d.ts +18 -0
- package/dist/esm/web/download-ics-file.js +33 -0
- package/dist/esm/web/download-ics-file.js.map +1 -0
- package/dist/esm/web/ics.d.ts +21 -0
- package/dist/esm/web/ics.js +252 -0
- package/dist/esm/web/ics.js.map +1 -0
- package/dist/esm/web.d.ts +19 -27
- package/dist/esm/web.js +14 -3
- package/dist/esm/web.js.map +1 -1
- package/dist/plugin.cjs.js +306 -3
- package/dist/plugin.cjs.js.map +1 -1
- package/dist/plugin.js +306 -3
- package/dist/plugin.js.map +1 -1
- package/ios/Plugin/CapacitorCalendarPlugin.swift +19 -16
- package/ios/Plugin/Implementation/CapacitorCalendar.swift +64 -34
- package/ios/Plugin/Models/Inputs/CreateCalendarInput.swift +4 -5
- package/ios/Plugin/Models/Inputs/DeleteCalendarInput.swift +1 -1
- package/ios/Plugin/Models/Inputs/GetDefaultCalendarInput.swift +13 -0
- package/ios/Plugin/Models/Inputs/ModifyCalendarInput.swift +4 -1
- package/ios/Plugin/PluginError.swift +68 -56
- package/ios/Plugin/Utils/ImplementationHelper.swift +15 -12
- package/package.json +1 -1
package/dist/esm/index.d.ts
CHANGED
|
@@ -13,9 +13,13 @@ import { ReminderRecurrenceFrequency } from './schemas/enums/reminder-recurrence
|
|
|
13
13
|
import type { Calendar } from './schemas/interfaces/calendar';
|
|
14
14
|
import type { CalendarEvent } from './schemas/interfaces/calendar-event';
|
|
15
15
|
import type { CalendarSource } from './schemas/interfaces/calendar-source';
|
|
16
|
+
import type { CheckPermissionOptions } from './schemas/interfaces/check-permission-options';
|
|
16
17
|
import type { CreateCalendarOptions } from './schemas/interfaces/create-calendar-options';
|
|
18
|
+
import type { CreateCalendarResult } from './schemas/interfaces/create-calendar-result';
|
|
17
19
|
import type { CreateEventOptions } from './schemas/interfaces/create-event-options';
|
|
20
|
+
import type { CreateEventResult } from './schemas/interfaces/create-event-result';
|
|
18
21
|
import type { CreateEventWithPromptOptions } from './schemas/interfaces/create-event-with-prompt-options';
|
|
22
|
+
import type { CreateEventWithPromptResult } from './schemas/interfaces/create-event-with-prompt-result';
|
|
19
23
|
import type { CreateReminderOptions } from './schemas/interfaces/create-reminder-options';
|
|
20
24
|
import type { CreateRemindersListOptions } from './schemas/interfaces/create-reminders-list-options';
|
|
21
25
|
import type { CreateRemindersListResult } from './schemas/interfaces/create-reminders-list-result';
|
|
@@ -28,8 +32,11 @@ import type { DeleteReminderWithPromptOptions } from './schemas/interfaces/delet
|
|
|
28
32
|
import type { DeleteRemindersByIdOptions } from './schemas/interfaces/delete-reminders-by-id-options';
|
|
29
33
|
import type { DeleteRemindersListOptions } from './schemas/interfaces/delete-reminders-list-options';
|
|
30
34
|
import type { EventGuest } from './schemas/interfaces/event-guest';
|
|
35
|
+
import type { FetchAllCalendarSourcesResult } from './schemas/interfaces/fetch-all-calendar-sources-result';
|
|
36
|
+
import type { GetDefaultCalendarOptions } from './schemas/interfaces/get-default-calendar-options';
|
|
31
37
|
import type { GetReminderByIdOptions } from './schemas/interfaces/get-reminder-by-id-options';
|
|
32
38
|
import type { GetRemindersFromListsOptions } from './schemas/interfaces/get-reminders-from-lists-options';
|
|
39
|
+
import type { ListCalendarsResult } from './schemas/interfaces/list-calendars-result';
|
|
33
40
|
import type { ListEventsInRangeOptions } from './schemas/interfaces/list-events-in-range-options';
|
|
34
41
|
import type { ModifyCalendarOptions } from './schemas/interfaces/modify-calendar-options';
|
|
35
42
|
import type { ModifyEventOptions } from './schemas/interfaces/modify-event-options';
|
|
@@ -40,7 +47,9 @@ import type { RecurrenceRule } from './schemas/interfaces/recurrence-rule';
|
|
|
40
47
|
import type { Reminder } from './schemas/interfaces/reminder';
|
|
41
48
|
import type { ReminderRecurrenceRule } from './schemas/interfaces/reminder-recurrence-rule';
|
|
42
49
|
import type { RemindersList } from './schemas/interfaces/reminders-list';
|
|
50
|
+
import type { RequestPermissionOptions } from './schemas/interfaces/request-permission-options';
|
|
43
51
|
import type { SelectCalendarsWithPromptOptions } from './schemas/interfaces/select-calendars-with-prompt-options';
|
|
52
|
+
import type { SelectCalendarsWithPromptResult } from './schemas/interfaces/select-calendars-with-prompt-result';
|
|
44
53
|
import type { UpdateRemindersListOptions } from './schemas/interfaces/update-reminders-list-options';
|
|
45
54
|
import type { UpdateRemindersListResult } from './schemas/interfaces/update-reminders-list-result';
|
|
46
55
|
import type { EventEditAction } from './schemas/types/event-edit-action';
|
|
@@ -48,7 +57,8 @@ import type { RecurrenceFrequency } from './schemas/types/recurrence-frequency';
|
|
|
48
57
|
import type { CheckAllPermissionsResult, RequestAllPermissionsResult } from './sub-definitions/calendar-access';
|
|
49
58
|
import type { DeleteEventsByIdResult } from './sub-definitions/event-operations';
|
|
50
59
|
import type { DeleteRemindersByIdResult } from './sub-definitions/reminders-operations';
|
|
60
|
+
import { downloadIcsFile } from './web/download-ics-file';
|
|
51
61
|
declare const CapacitorCalendar: CapacitorCalendarPlugin;
|
|
52
62
|
export * from './definitions';
|
|
53
|
-
export type {
|
|
54
|
-
export { CalendarPermissionScope, EventAvailability, EventSpan, CalendarChooserDisplayStyle, CalendarType, CalendarSourceType, ReminderRecurrenceFrequency, RecurrenceFrequency, EventStatus, AttendeeRole, AttendeeType, AttendeeStatus, CapacitorCalendar, };
|
|
63
|
+
export type { Calendar, CalendarEvent, CalendarSource, CheckAllPermissionsResult, CheckPermissionOptions, CreateCalendarOptions, CreateCalendarResult, CreateEventOptions, CreateEventResult, CreateEventWithPromptOptions, CreateEventWithPromptResult, CreateReminderOptions, CreateRemindersListOptions, CreateRemindersListResult, DeleteCalendarOptions, DeleteEventOptions, DeleteEventWithPromptOptions, DeleteEventsByIdOptions, DeleteEventsByIdResult, DeleteReminderOptions, DeleteReminderWithPromptOptions, DeleteRemindersByIdOptions, DeleteRemindersByIdResult, DeleteRemindersListOptions, EventEditAction, EventGuest, FetchAllCalendarSourcesResult, GetDefaultCalendarOptions, GetReminderByIdOptions, GetRemindersFromListsOptions, ListCalendarsResult, ListEventsInRangeOptions, ModifyCalendarOptions, ModifyEventOptions, ModifyEventWithPromptOptions, ModifyReminderOptions, OpenCalendarOptions, RecurrenceRule, Reminder, ReminderRecurrenceRule, RemindersList, RequestAllPermissionsResult, RequestPermissionOptions, SelectCalendarsWithPromptOptions, SelectCalendarsWithPromptResult, UpdateRemindersListOptions, UpdateRemindersListResult, };
|
|
64
|
+
export { CalendarPermissionScope, EventAvailability, EventSpan, CalendarChooserDisplayStyle, CalendarType, CalendarSourceType, ReminderRecurrenceFrequency, RecurrenceFrequency, EventStatus, AttendeeRole, AttendeeType, AttendeeStatus, CapacitorCalendar, downloadIcsFile, };
|
package/dist/esm/index.js
CHANGED
|
@@ -10,9 +10,10 @@ import { EventAvailability } from './schemas/enums/event-availability';
|
|
|
10
10
|
import { EventSpan } from './schemas/enums/event-span';
|
|
11
11
|
import { EventStatus } from './schemas/enums/event-status';
|
|
12
12
|
import { ReminderRecurrenceFrequency } from './schemas/enums/reminder-recurrence-frequency';
|
|
13
|
+
import { downloadIcsFile } from './web/download-ics-file';
|
|
13
14
|
const CapacitorCalendar = registerPlugin('CapacitorCalendar', {
|
|
14
15
|
web: () => import('./web').then((m) => new m.CapacitorCalendarWeb()),
|
|
15
16
|
});
|
|
16
17
|
export * from './definitions';
|
|
17
|
-
export { CalendarPermissionScope, EventAvailability, EventSpan, CalendarChooserDisplayStyle, CalendarType, CalendarSourceType, ReminderRecurrenceFrequency, EventStatus, AttendeeRole, AttendeeType, AttendeeStatus, CapacitorCalendar, };
|
|
18
|
+
export { CalendarPermissionScope, EventAvailability, EventSpan, CalendarChooserDisplayStyle, CalendarType, CalendarSourceType, ReminderRecurrenceFrequency, EventStatus, AttendeeRole, AttendeeType, AttendeeStatus, CapacitorCalendar, downloadIcsFile, };
|
|
18
19
|
//# 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":"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;
|
|
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;AAgD5F,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE1D,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;AAkD9B,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,EACjB,eAAe,GAChB,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 { CheckPermissionOptions } from './schemas/interfaces/check-permission-options';\nimport type { CreateCalendarOptions } from './schemas/interfaces/create-calendar-options';\nimport type { CreateCalendarResult } from './schemas/interfaces/create-calendar-result';\nimport type { CreateEventOptions } from './schemas/interfaces/create-event-options';\nimport type { CreateEventResult } from './schemas/interfaces/create-event-result';\nimport type { CreateEventWithPromptOptions } from './schemas/interfaces/create-event-with-prompt-options';\nimport type { CreateEventWithPromptResult } from './schemas/interfaces/create-event-with-prompt-result';\nimport type { CreateReminderOptions } from './schemas/interfaces/create-reminder-options';\nimport type { CreateRemindersListOptions } from './schemas/interfaces/create-reminders-list-options';\nimport type { CreateRemindersListResult } from './schemas/interfaces/create-reminders-list-result';\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 { DeleteRemindersListOptions } from './schemas/interfaces/delete-reminders-list-options';\nimport type { EventGuest } from './schemas/interfaces/event-guest';\nimport type { FetchAllCalendarSourcesResult } from './schemas/interfaces/fetch-all-calendar-sources-result';\nimport type { GetDefaultCalendarOptions } from './schemas/interfaces/get-default-calendar-options';\nimport type { GetReminderByIdOptions } from './schemas/interfaces/get-reminder-by-id-options';\nimport type { GetRemindersFromListsOptions } from './schemas/interfaces/get-reminders-from-lists-options';\nimport type { ListCalendarsResult } from './schemas/interfaces/list-calendars-result';\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 { RequestPermissionOptions } from './schemas/interfaces/request-permission-options';\nimport type { SelectCalendarsWithPromptOptions } from './schemas/interfaces/select-calendars-with-prompt-options';\nimport type { SelectCalendarsWithPromptResult } from './schemas/interfaces/select-calendars-with-prompt-result';\nimport type { UpdateRemindersListOptions } from './schemas/interfaces/update-reminders-list-options';\nimport type { UpdateRemindersListResult } from './schemas/interfaces/update-reminders-list-result';\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';\nimport { downloadIcsFile } from './web/download-ics-file';\n\nconst CapacitorCalendar = registerPlugin<CapacitorCalendarPlugin>('CapacitorCalendar', {\n web: () => import('./web').then((m) => new m.CapacitorCalendarWeb()),\n});\n\nexport * from './definitions';\nexport type {\n Calendar,\n CalendarEvent,\n CalendarSource,\n CheckAllPermissionsResult,\n CheckPermissionOptions,\n CreateCalendarOptions,\n CreateCalendarResult,\n CreateEventOptions,\n CreateEventResult,\n CreateEventWithPromptOptions,\n CreateEventWithPromptResult,\n CreateReminderOptions,\n CreateRemindersListOptions,\n CreateRemindersListResult,\n DeleteCalendarOptions,\n DeleteEventOptions,\n DeleteEventWithPromptOptions,\n DeleteEventsByIdOptions,\n DeleteEventsByIdResult,\n DeleteReminderOptions,\n DeleteReminderWithPromptOptions,\n DeleteRemindersByIdOptions,\n DeleteRemindersByIdResult,\n DeleteRemindersListOptions,\n EventEditAction,\n EventGuest,\n FetchAllCalendarSourcesResult,\n GetDefaultCalendarOptions,\n GetReminderByIdOptions,\n GetRemindersFromListsOptions,\n ListCalendarsResult,\n ListEventsInRangeOptions,\n ModifyCalendarOptions,\n ModifyEventOptions,\n ModifyEventWithPromptOptions,\n ModifyReminderOptions,\n OpenCalendarOptions,\n RecurrenceRule,\n Reminder,\n ReminderRecurrenceRule,\n RemindersList,\n RequestAllPermissionsResult,\n RequestPermissionOptions,\n SelectCalendarsWithPromptOptions,\n SelectCalendarsWithPromptResult,\n UpdateRemindersListOptions,\n UpdateRemindersListResult,\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 downloadIcsFile,\n};\n"]}
|
|
@@ -21,6 +21,10 @@ export declare enum CalendarPermissionScope {
|
|
|
21
21
|
/**
|
|
22
22
|
* Permission required for reading reminders.
|
|
23
23
|
*
|
|
24
|
+
* On Android, reminders are not supported. `checkPermission` and
|
|
25
|
+
* `checkAllPermissions` return `"prompt"` for this scope.
|
|
26
|
+
* `requestPermission` rejects with `Invalid scope.`.
|
|
27
|
+
*
|
|
24
28
|
* @permissions
|
|
25
29
|
* | Platform | Required |
|
|
26
30
|
* |-----------|---------------------|
|
|
@@ -47,6 +51,10 @@ export declare enum CalendarPermissionScope {
|
|
|
47
51
|
/**
|
|
48
52
|
* Permission required for adding or modifying reminders.
|
|
49
53
|
*
|
|
54
|
+
* On Android, reminders are not supported. `checkPermission` and
|
|
55
|
+
* `checkAllPermissions` return `"prompt"` for this scope.
|
|
56
|
+
* `requestPermission` rejects with `Invalid scope.`.
|
|
57
|
+
*
|
|
50
58
|
* @permissions
|
|
51
59
|
* | Platform | Required |
|
|
52
60
|
* |-----------|---------------------|
|
|
@@ -22,6 +22,10 @@ export var CalendarPermissionScope;
|
|
|
22
22
|
/**
|
|
23
23
|
* Permission required for reading reminders.
|
|
24
24
|
*
|
|
25
|
+
* On Android, reminders are not supported. `checkPermission` and
|
|
26
|
+
* `checkAllPermissions` return `"prompt"` for this scope.
|
|
27
|
+
* `requestPermission` rejects with `Invalid scope.`.
|
|
28
|
+
*
|
|
25
29
|
* @permissions
|
|
26
30
|
* | Platform | Required |
|
|
27
31
|
* |-----------|---------------------|
|
|
@@ -48,6 +52,10 @@ export var CalendarPermissionScope;
|
|
|
48
52
|
/**
|
|
49
53
|
* Permission required for adding or modifying reminders.
|
|
50
54
|
*
|
|
55
|
+
* On Android, reminders are not supported. `checkPermission` and
|
|
56
|
+
* `checkAllPermissions` return `"prompt"` for this scope.
|
|
57
|
+
* `requestPermission` rejects with `Invalid scope.`.
|
|
58
|
+
*
|
|
51
59
|
* @permissions
|
|
52
60
|
* | Platform | Required |
|
|
53
61
|
* |-----------|---------------------|
|
|
@@ -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,
|
|
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,uBA8DX;AA9DD,WAAY,uBAAuB;IACjC;;;;;;;;;;;;OAYG;IACH,yDAA8B,CAAA;IAC9B;;;;;;;;;;;;;;OAcG;IACH,2DAAgC,CAAA;IAChC;;;;;;;;;;;;OAYG;IACH,2DAAgC,CAAA;IAChC;;;;;;;;;;;;;;;OAeG;IACH,6DAAkC,CAAA;AACpC,CAAC,EA9DW,uBAAuB,KAAvB,uBAAuB,QA8DlC","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 * On Android, reminders are not supported. `checkPermission` and\n * `checkAllPermissions` return `\"prompt\"` for this scope.\n * `requestPermission` rejects with `Invalid scope.`.\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 * On Android, reminders are not supported. `checkPermission` and\n * `checkAllPermissions` return `\"prompt\"` for this scope.\n * `requestPermission` rejects with `Invalid scope.`.\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"]}
|
|
@@ -4,14 +4,17 @@ import type { CalendarSourceType } from '../enums/calendar-source-type';
|
|
|
4
4
|
*/
|
|
5
5
|
export interface CalendarSource {
|
|
6
6
|
/**
|
|
7
|
+
* @platform iOS
|
|
7
8
|
* @since 7.1.0
|
|
8
9
|
*/
|
|
9
10
|
type: CalendarSourceType;
|
|
10
11
|
/**
|
|
12
|
+
* @platform iOS
|
|
11
13
|
* @since 7.1.0
|
|
12
14
|
*/
|
|
13
15
|
id: string;
|
|
14
16
|
/**
|
|
17
|
+
* @platform iOS
|
|
15
18
|
* @since 7.1.0
|
|
16
19
|
*/
|
|
17
20
|
title: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"calendar-source.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/calendar-source.ts"],"names":[],"mappings":"","sourcesContent":["import 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
|
+
{"version":3,"file":"calendar-source.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/calendar-source.ts"],"names":[],"mappings":"","sourcesContent":["import type { CalendarSourceType } from '../enums/calendar-source-type';\n\n/**\n * @since 7.1.0\n */\nexport interface CalendarSource {\n /**\n * @platform iOS\n * @since 7.1.0\n */\n type: CalendarSourceType;\n /**\n * @platform iOS\n * @since 7.1.0\n */\n id: string;\n /**\n * @platform iOS\n * @since 7.1.0\n */\n title: string;\n}\n"]}
|
|
@@ -10,10 +10,13 @@ export interface Calendar {
|
|
|
10
10
|
*/
|
|
11
11
|
id: string;
|
|
12
12
|
/**
|
|
13
|
+
* Display title of the calendar.
|
|
14
|
+
* May be `null` when the platform does not provide a title.
|
|
15
|
+
*
|
|
13
16
|
* @platform Android, iOS
|
|
14
17
|
* @since 7.1.0
|
|
15
18
|
*/
|
|
16
|
-
title: string;
|
|
19
|
+
title: string | null;
|
|
17
20
|
/**
|
|
18
21
|
* Internal name of the calendar (`CalendarContract.Calendars.NAME`).
|
|
19
22
|
*
|
|
@@ -22,10 +25,17 @@ export interface Calendar {
|
|
|
22
25
|
*/
|
|
23
26
|
internalTitle: string | null;
|
|
24
27
|
/**
|
|
28
|
+
* Calendar color as a hex string.
|
|
29
|
+
*
|
|
30
|
+
* Format: `#RRGGBB` when opaque; `#RRGGBBAA` when alpha is below fully opaque.
|
|
31
|
+
* May be `null` when the platform does not provide a color.
|
|
32
|
+
*
|
|
25
33
|
* @platform Android, iOS
|
|
34
|
+
* @example #0000FF
|
|
35
|
+
* @example #0000FF80
|
|
26
36
|
* @since 7.1.0
|
|
27
37
|
*/
|
|
28
|
-
color: string;
|
|
38
|
+
color: string | null;
|
|
29
39
|
/**
|
|
30
40
|
* @platform iOS
|
|
31
41
|
* @since 7.1.0
|
|
@@ -1 +1 @@
|
|
|
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
|
+
{"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 * Display title of the calendar.\n * May be `null` when the platform does not provide a title.\n *\n * @platform Android, iOS\n * @since 7.1.0\n */\n title: string | null;\n /**\n * Internal name of the calendar (`CalendarContract.Calendars.NAME`).\n *\n * @platform Android\n * @since 7.1.0\n */\n internalTitle: string | null;\n /**\n * Calendar color as a hex string.\n *\n * Format: `#RRGGBB` when opaque; `#RRGGBBAA` when alpha is below fully opaque.\n * May be `null` when the platform does not provide a color.\n *\n * @platform Android, iOS\n * @example #0000FF\n * @example #0000FF80\n * @since 7.1.0\n */\n color: string | null;\n /**\n * @platform iOS\n * @since 7.1.0\n */\n isImmutable: boolean | null;\n /**\n * @platform iOS\n * @since 7.1.0\n */\n allowsContentModifications: boolean | null;\n /**\n * @platform iOS\n * @since 7.1.0\n */\n type: CalendarType | null;\n /**\n * @platform iOS\n * @since 7.1.0\n */\n isSubscribed: boolean | null;\n /**\n * @platform iOS\n * @since 7.1.0\n */\n source: CalendarSource | null;\n /**\n * Indicates if the events from this calendar should be shown.\n *\n * @platform Android\n * @since 7.1.0\n */\n visible: boolean | null;\n /**\n * The account under which the calendar is registered.\n *\n * @platform Android\n * @since 7.1.0\n */\n accountName: string | null;\n /**\n * The owner of the calendar.\n *\n * @platform Android\n * @since 7.1.0\n */\n ownerAccount: string | null;\n /**\n * Maximum number of reminders allowed per event.\n *\n * @platform Android\n * @since 7.1.0\n */\n maxReminders: number | null;\n /**\n * @platform Android\n * @since 7.1.0\n */\n location: string | null;\n}\n"]}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { CalendarPermissionScope } from '../enums/calendar-permission-scope';
|
|
2
|
+
/**
|
|
3
|
+
* Options for {@link CalendarAccess#checkPermission}.
|
|
4
|
+
*
|
|
5
|
+
* @since 8.3.1
|
|
6
|
+
*/
|
|
7
|
+
export interface CheckPermissionOptions {
|
|
8
|
+
/**
|
|
9
|
+
* The permission scope to check.
|
|
10
|
+
*
|
|
11
|
+
* On Android, `readReminders` and `writeReminders` resolve to `"prompt"`
|
|
12
|
+
* (reminders are not supported on Android).
|
|
13
|
+
*
|
|
14
|
+
* @example CalendarPermissionScope.READ_CALENDAR
|
|
15
|
+
* @platform Android, iOS
|
|
16
|
+
* @since 8.3.1
|
|
17
|
+
*/
|
|
18
|
+
scope: CalendarPermissionScope;
|
|
19
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"check-permission-options.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/check-permission-options.ts"],"names":[],"mappings":"","sourcesContent":["import type { CalendarPermissionScope } from '../enums/calendar-permission-scope';\n\n/**\n * Options for {@link CalendarAccess#checkPermission}.\n *\n * @since 8.3.1\n */\nexport interface CheckPermissionOptions {\n /**\n * The permission scope to check.\n *\n * On Android, `readReminders` and `writeReminders` resolve to `\"prompt\"`\n * (reminders are not supported on Android).\n *\n * @example CalendarPermissionScope.READ_CALENDAR\n * @platform Android, iOS\n * @since 8.3.1\n */\n scope: CalendarPermissionScope;\n}\n"]}
|
|
@@ -8,29 +8,40 @@ export interface CreateCalendarOptions {
|
|
|
8
8
|
*/
|
|
9
9
|
title: string;
|
|
10
10
|
/**
|
|
11
|
-
* The color of the calendar
|
|
12
|
-
*
|
|
11
|
+
* The color of the calendar as `#RRGGBB` or `#RRGGBBAA`.
|
|
12
|
+
*
|
|
13
|
+
* When omitted, Android and iOS use `#007AFF` (light-mode iOS system blue).
|
|
13
14
|
*
|
|
14
15
|
* @platform Android, iOS
|
|
15
|
-
* @example #
|
|
16
|
+
* @example #007AFF
|
|
17
|
+
* @default #007AFF
|
|
16
18
|
* @since 5.2.0
|
|
17
19
|
*/
|
|
18
20
|
color?: string;
|
|
19
21
|
/**
|
|
22
|
+
* The EventKit source (account) where the calendar should be created.
|
|
23
|
+
*
|
|
24
|
+
* If provided, it must match an existing source from `fetchAllCalendarSources()`.
|
|
25
|
+
* If omitted, iCloud is used when available, otherwise the local source.
|
|
26
|
+
*
|
|
20
27
|
* @platform iOS
|
|
21
28
|
* @since 5.2.0
|
|
22
29
|
*/
|
|
23
30
|
sourceId?: string;
|
|
24
31
|
/**
|
|
25
|
-
*
|
|
32
|
+
* The account under which the calendar is registered.
|
|
33
|
+
* Required on Android. Typically an email address.
|
|
26
34
|
*
|
|
35
|
+
* @example plugin@example.com
|
|
27
36
|
* @platform Android
|
|
28
37
|
* @since 7.1.0
|
|
29
38
|
*/
|
|
30
39
|
accountName?: string;
|
|
31
40
|
/**
|
|
32
|
-
*
|
|
41
|
+
* The owner of the calendar.
|
|
42
|
+
* Required on Android. Typically an email address.
|
|
33
43
|
*
|
|
44
|
+
* @example plugin@example.com
|
|
34
45
|
* @platform Android
|
|
35
46
|
* @since 7.1.0
|
|
36
47
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-calendar-options.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/create-calendar-options.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * @since 5.2.0\n */\nexport interface CreateCalendarOptions {\n /**\n * @platform Android, iOS\n * @since 5.2.0\n */\n title: string;\n /**\n * The color of the calendar
|
|
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 as `#RRGGBB` or `#RRGGBBAA`.\n *\n * When omitted, Android and iOS use `#007AFF` (light-mode iOS system blue).\n *\n * @platform Android, iOS\n * @example #007AFF\n * @default #007AFF\n * @since 5.2.0\n */\n color?: string;\n /**\n * The EventKit source (account) where the calendar should be created.\n *\n * If provided, it must match an existing source from `fetchAllCalendarSources()`.\n * If omitted, iCloud is used when available, otherwise the local source.\n *\n * @platform iOS\n * @since 5.2.0\n */\n sourceId?: string;\n /**\n * The account under which the calendar is registered.\n * Required on Android. Typically an email address.\n *\n * @example plugin@example.com\n * @platform Android\n * @since 7.1.0\n */\n accountName?: string;\n /**\n * The owner of the calendar.\n * Required on Android. Typically an email address.\n *\n * @example plugin@example.com\n * @platform Android\n * @since 7.1.0\n */\n ownerAccount?: string;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-calendar-result.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/create-calendar-result.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * @since 8.4.0\n */\nexport interface CreateCalendarResult {\n /**\n * Identifier of the newly created calendar.\n *\n * @platform Android, iOS\n * @since 8.4.0\n */\n id: string;\n}\n"]}
|
|
@@ -15,19 +15,19 @@ export interface CreateEventOptions {
|
|
|
15
15
|
* // 30 -> 30 minutes after
|
|
16
16
|
* [-1440, -60, 30]
|
|
17
17
|
*
|
|
18
|
-
* @platform Android, iOS
|
|
18
|
+
* @platform Android, iOS, Web
|
|
19
19
|
* @since 7.1.0
|
|
20
20
|
*/
|
|
21
21
|
alerts?: number[];
|
|
22
22
|
/**
|
|
23
23
|
* The event guests.
|
|
24
24
|
*
|
|
25
|
-
* @platform Android
|
|
25
|
+
* @platform Android, Web
|
|
26
26
|
* @since 7.1.0
|
|
27
27
|
*/
|
|
28
28
|
attendees?: EventGuest[];
|
|
29
29
|
/**
|
|
30
|
-
* @platform Android, iOS
|
|
30
|
+
* @platform Android, iOS, Web
|
|
31
31
|
* @since 7.1.0
|
|
32
32
|
*/
|
|
33
33
|
availability?: EventAvailability;
|
|
@@ -52,7 +52,7 @@ export interface CreateEventOptions {
|
|
|
52
52
|
*/
|
|
53
53
|
commit?: boolean;
|
|
54
54
|
/**
|
|
55
|
-
* @platform Android, iOS
|
|
55
|
+
* @platform Android, iOS, Web
|
|
56
56
|
* @since 7.1.0
|
|
57
57
|
*/
|
|
58
58
|
description?: string;
|
|
@@ -66,47 +66,56 @@ export interface CreateEventOptions {
|
|
|
66
66
|
*/
|
|
67
67
|
duration?: string;
|
|
68
68
|
/**
|
|
69
|
-
* @platform Android, iOS
|
|
69
|
+
* @platform Android, iOS, Web
|
|
70
70
|
* @since 0.1.0
|
|
71
71
|
*/
|
|
72
72
|
endDate?: number;
|
|
73
73
|
/**
|
|
74
|
-
*
|
|
74
|
+
* Download filename for the `.ics` file.
|
|
75
|
+
* When omitted, a name is derived from `title` (fallback `event.ics`).
|
|
76
|
+
* If the value has no `.ics` extension, `.ics` is appended.
|
|
77
|
+
*
|
|
78
|
+
* @example 'team-standup.ics'
|
|
79
|
+
* @platform Web
|
|
80
|
+
* @since 8.5.0
|
|
81
|
+
*/
|
|
82
|
+
icsFileName?: string;
|
|
83
|
+
/**
|
|
84
|
+
* @platform Android, iOS, Web
|
|
75
85
|
* @since 0.1.0
|
|
76
86
|
*/
|
|
77
87
|
isAllDay?: boolean;
|
|
78
88
|
/**
|
|
79
|
-
* @platform Android, iOS
|
|
89
|
+
* @platform Android, iOS, Web
|
|
80
90
|
* @since 0.1.0
|
|
81
91
|
*/
|
|
82
92
|
location?: string;
|
|
83
93
|
/**
|
|
84
94
|
* Email of the event organizer.
|
|
85
95
|
*
|
|
86
|
-
* @platform Android
|
|
96
|
+
* @platform Android, Web
|
|
87
97
|
* @since 7.1.0
|
|
88
98
|
*/
|
|
89
99
|
organizer?: string;
|
|
90
100
|
/**
|
|
91
101
|
* Rules for creating a recurring event.
|
|
92
102
|
*
|
|
93
|
-
* @platform Android, iOS
|
|
103
|
+
* @platform Android, iOS, Web
|
|
94
104
|
* @since 7.3.0
|
|
95
105
|
*/
|
|
96
106
|
recurrence?: EventRecurrenceRule;
|
|
97
107
|
/**
|
|
98
|
-
*
|
|
99
|
-
* @platform Android, iOS
|
|
108
|
+
* @platform Android, iOS, Web
|
|
100
109
|
* @since 0.1.0
|
|
101
110
|
*/
|
|
102
111
|
startDate?: number;
|
|
103
112
|
/**
|
|
104
|
-
* @platform Android, iOS
|
|
113
|
+
* @platform Android, iOS, Web
|
|
105
114
|
* @since 0.4.0
|
|
106
115
|
*/
|
|
107
116
|
title: string;
|
|
108
117
|
/**
|
|
109
|
-
* @platform iOS
|
|
118
|
+
* @platform iOS, Web
|
|
110
119
|
* @since 0.1.0
|
|
111
120
|
*/
|
|
112
121
|
url?: string;
|
|
@@ -1 +1 @@
|
|
|
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
|
|
1
|
+
{"version":3,"file":"create-event-options.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/create-event-options.ts"],"names":[],"mappings":"","sourcesContent":["import type { EventAvailability } from '../enums/event-availability';\n\nimport type { EventGuest } from './event-guest';\nimport type { EventRecurrenceRule } from './event-recurrence-rule';\n\n/**\n * @since 7.1.0\n */\nexport interface CreateEventOptions {\n /**\n * Alert times in minutes relative to the event start.\n * Use negative numbers for alerts before the start, and positive numbers for alerts after the start.\n *\n * @example\n * // -1440 -> 1 day before\n * // -60 -> 1 hour before\n * // 30 -> 30 minutes after\n * [-1440, -60, 30]\n *\n * @platform Android, iOS, Web\n * @since 7.1.0\n */\n alerts?: number[];\n /**\n * The event guests.\n *\n * @platform Android, Web\n * @since 7.1.0\n */\n attendees?: EventGuest[];\n /**\n * @platform Android, iOS, Web\n * @since 7.1.0\n */\n availability?: EventAvailability;\n /**\n * @platform Android, iOS\n * @since 0.1.0\n */\n calendarId?: string;\n /**\n * @example #6750A4\n * @platform Android\n * @since 7.1.0\n */\n color?: string;\n /**\n * Whether to save immediately (`true`) or batch changes for later (`false`).\n *\n * @default true\n * @platform iOS\n * @see {@link CalendarOperations#commit}\n * @since 7.1.0\n */\n commit?: boolean;\n /**\n * @platform Android, iOS, Web\n * @since 7.1.0\n */\n description?: string;\n /**\n * Duration of the event in RFC2445 format.\n *\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, Web\n * @since 0.1.0\n */\n endDate?: number;\n /**\n * Download filename for the `.ics` file.\n * When omitted, a name is derived from `title` (fallback `event.ics`).\n * If the value has no `.ics` extension, `.ics` is appended.\n *\n * @example 'team-standup.ics'\n * @platform Web\n * @since 8.5.0\n */\n icsFileName?: string;\n /**\n * @platform Android, iOS, Web\n * @since 0.1.0\n */\n isAllDay?: boolean;\n /**\n * @platform Android, iOS, Web\n * @since 0.1.0\n */\n location?: string;\n /**\n * Email of the event organizer.\n *\n * @platform Android, Web\n * @since 7.1.0\n */\n organizer?: string;\n /**\n * Rules for creating a recurring event.\n *\n * @platform Android, iOS, Web\n * @since 7.3.0\n */\n recurrence?: EventRecurrenceRule;\n /**\n * @platform Android, iOS, Web\n * @since 0.1.0\n */\n startDate?: number;\n /**\n * @platform Android, iOS, Web\n * @since 0.4.0\n */\n title: string;\n /**\n * @platform iOS, Web\n * @since 0.1.0\n */\n url?: string;\n}\n"]}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @since 8.5.0
|
|
3
|
+
*/
|
|
4
|
+
export interface CreateEventResult {
|
|
5
|
+
/**
|
|
6
|
+
* An `.ics` file (`text/calendar`) with one `VEVENT`.
|
|
7
|
+
* Present only on Web. The plugin does not write to a calendar store or start a download;
|
|
8
|
+
* use `downloadIcsFile(...)` or pass the `File` to another API.
|
|
9
|
+
*
|
|
10
|
+
* @platform Web
|
|
11
|
+
* @since 8.5.0
|
|
12
|
+
*/
|
|
13
|
+
ics?: File;
|
|
14
|
+
/**
|
|
15
|
+
* The identifier of the created event.
|
|
16
|
+
* Always `null` on Web.
|
|
17
|
+
* Present on Android and iOS after a successful create.
|
|
18
|
+
*
|
|
19
|
+
* @platform Android, iOS
|
|
20
|
+
* @since 0.4.0
|
|
21
|
+
*/
|
|
22
|
+
id: string | null;
|
|
23
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-event-result.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/create-event-result.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * @since 8.5.0\n */\nexport interface CreateEventResult {\n /**\n * An `.ics` file (`text/calendar`) with one `VEVENT`.\n * Present only on Web. The plugin does not write to a calendar store or start a download;\n * use `downloadIcsFile(...)` or pass the `File` to another API.\n *\n * @platform Web\n * @since 8.5.0\n */\n ics?: File;\n /**\n * The identifier of the created event.\n * Always `null` on Web.\n * Present on Android and iOS after a successful create.\n *\n * @platform Android, iOS\n * @since 0.4.0\n */\n id: string | null;\n}\n"]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @since 8.5.0
|
|
3
|
+
*/
|
|
4
|
+
export interface CreateEventWithPromptResult {
|
|
5
|
+
/**
|
|
6
|
+
* The identifier of the created event.
|
|
7
|
+
* Always `null` on Android.
|
|
8
|
+
* Present on iOS when the user saves.
|
|
9
|
+
*
|
|
10
|
+
* @platform Android, iOS
|
|
11
|
+
* @since 0.1.0
|
|
12
|
+
*/
|
|
13
|
+
id: string | null;
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-event-with-prompt-result.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/create-event-with-prompt-result.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * @since 8.5.0\n */\nexport interface CreateEventWithPromptResult {\n /**\n * The identifier of the created event.\n * Always `null` on Android.\n * Present on iOS when the user saves.\n *\n * @platform Android, iOS\n * @since 0.1.0\n */\n id: string | null;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-calendar-options.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/delete-calendar-options.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * @since 7.1.0\n */\nexport interface DeleteCalendarOptions {\n /**\n * @since 7.1.0\n */\n id: string;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"delete-calendar-options.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/delete-calendar-options.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * @since 7.1.0\n */\nexport interface DeleteCalendarOptions {\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n id: string;\n}\n"]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { CalendarSource } from './calendar-source';
|
|
2
|
+
/**
|
|
3
|
+
* @since 8.4.0
|
|
4
|
+
*/
|
|
5
|
+
export interface FetchAllCalendarSourcesResult {
|
|
6
|
+
/**
|
|
7
|
+
* All calendar sources (accounts) known to EventKit.
|
|
8
|
+
*
|
|
9
|
+
* @platform iOS
|
|
10
|
+
* @since 8.4.0
|
|
11
|
+
*/
|
|
12
|
+
result: CalendarSource[];
|
|
13
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fetch-all-calendar-sources-result.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/fetch-all-calendar-sources-result.ts"],"names":[],"mappings":"","sourcesContent":["import type { CalendarSource } from './calendar-source';\n\n/**\n * @since 8.4.0\n */\nexport interface FetchAllCalendarSourcesResult {\n /**\n * All calendar sources (accounts) known to EventKit.\n *\n * @platform iOS\n * @since 8.4.0\n */\n result: CalendarSource[];\n}\n"]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @since 8.4.0
|
|
3
|
+
*/
|
|
4
|
+
export interface GetDefaultCalendarOptions {
|
|
5
|
+
/**
|
|
6
|
+
* When there is no system default calendar, use the first available calendar.
|
|
7
|
+
*
|
|
8
|
+
* @default false
|
|
9
|
+
* @platform Android, iOS
|
|
10
|
+
* @since 8.4.0
|
|
11
|
+
*/
|
|
12
|
+
useFallbackCalendar?: boolean;
|
|
13
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-default-calendar-options.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/get-default-calendar-options.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * @since 8.4.0\n */\nexport interface GetDefaultCalendarOptions {\n /**\n * When there is no system default calendar, use the first available calendar.\n *\n * @default false\n * @platform Android, iOS\n * @since 8.4.0\n */\n useFallbackCalendar?: boolean;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-calendars-result.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/list-calendars-result.ts"],"names":[],"mappings":"","sourcesContent":["import type { Calendar } from './calendar';\n\n/**\n * @since 8.4.0\n */\nexport interface ListCalendarsResult {\n /**\n * All available calendars.\n *\n * @platform Android, iOS\n * @since 8.4.0\n */\n result: Calendar[];\n}\n"]}
|