@ebarooni/capacitor-calendar 8.4.0 → 8.6.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.
Files changed (42) hide show
  1. package/README.md +179 -241
  2. package/android/src/main/java/dev/barooni/capacitor/calendar/implementation/CapacitorCalendar.kt +82 -0
  3. package/android/src/main/java/dev/barooni/capacitor/calendar/models/data/CalendarEvent.kt +4 -0
  4. package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/CreateEventResult.kt +1 -0
  5. package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/ListEventsInRangeResult.kt +4 -0
  6. package/dist/docs.json +380 -156
  7. package/dist/esm/index.d.ts +6 -2
  8. package/dist/esm/index.js +2 -1
  9. package/dist/esm/index.js.map +1 -1
  10. package/dist/esm/schemas/interfaces/calendar-event.d.ts +140 -67
  11. package/dist/esm/schemas/interfaces/calendar-event.js.map +1 -1
  12. package/dist/esm/schemas/interfaces/create-event-options.d.ts +22 -13
  13. package/dist/esm/schemas/interfaces/create-event-options.js.map +1 -1
  14. package/dist/esm/schemas/interfaces/create-event-result.d.ts +24 -0
  15. package/dist/esm/schemas/interfaces/create-event-result.js +2 -0
  16. package/dist/esm/schemas/interfaces/create-event-result.js.map +1 -0
  17. package/dist/esm/schemas/interfaces/create-event-with-prompt-result.d.ts +14 -0
  18. package/dist/esm/schemas/interfaces/create-event-with-prompt-result.js +2 -0
  19. package/dist/esm/schemas/interfaces/create-event-with-prompt-result.js.map +1 -0
  20. package/dist/esm/schemas/interfaces/list-events-in-range-result.d.ts +13 -0
  21. package/dist/esm/schemas/interfaces/list-events-in-range-result.js +2 -0
  22. package/dist/esm/schemas/interfaces/list-events-in-range-result.js.map +1 -0
  23. package/dist/esm/sub-definitions/event-operations.d.ts +22 -12
  24. package/dist/esm/sub-definitions/event-operations.js.map +1 -1
  25. package/dist/esm/web/download-ics-file.d.ts +18 -0
  26. package/dist/esm/web/download-ics-file.js +33 -0
  27. package/dist/esm/web/download-ics-file.js.map +1 -0
  28. package/dist/esm/web/ics.d.ts +21 -0
  29. package/dist/esm/web/ics.js +252 -0
  30. package/dist/esm/web/ics.js.map +1 -0
  31. package/dist/esm/web.d.ts +6 -10
  32. package/dist/esm/web.js +13 -2
  33. package/dist/esm/web.js.map +1 -1
  34. package/dist/plugin.cjs.js +297 -2
  35. package/dist/plugin.cjs.js.map +1 -1
  36. package/dist/plugin.js +297 -2
  37. package/dist/plugin.js.map +1 -1
  38. package/ios/Plugin/Implementation/CapacitorCalendar.swift +1 -1
  39. package/ios/Plugin/Models/Results/CreateEventResult.swift +1 -0
  40. package/ios/Plugin/Models/Results/ListEventsInRangeResult.swift +15 -2
  41. package/ios/Plugin/Utils/ImplementationHelper.swift +47 -3
  42. package/package.json +3 -3
@@ -17,7 +17,9 @@ import type { CheckPermissionOptions } from './schemas/interfaces/check-permissi
17
17
  import type { CreateCalendarOptions } from './schemas/interfaces/create-calendar-options';
18
18
  import type { CreateCalendarResult } from './schemas/interfaces/create-calendar-result';
19
19
  import type { CreateEventOptions } from './schemas/interfaces/create-event-options';
20
+ import type { CreateEventResult } from './schemas/interfaces/create-event-result';
20
21
  import type { CreateEventWithPromptOptions } from './schemas/interfaces/create-event-with-prompt-options';
22
+ import type { CreateEventWithPromptResult } from './schemas/interfaces/create-event-with-prompt-result';
21
23
  import type { CreateReminderOptions } from './schemas/interfaces/create-reminder-options';
22
24
  import type { CreateRemindersListOptions } from './schemas/interfaces/create-reminders-list-options';
23
25
  import type { CreateRemindersListResult } from './schemas/interfaces/create-reminders-list-result';
@@ -36,6 +38,7 @@ import type { GetReminderByIdOptions } from './schemas/interfaces/get-reminder-b
36
38
  import type { GetRemindersFromListsOptions } from './schemas/interfaces/get-reminders-from-lists-options';
37
39
  import type { ListCalendarsResult } from './schemas/interfaces/list-calendars-result';
38
40
  import type { ListEventsInRangeOptions } from './schemas/interfaces/list-events-in-range-options';
41
+ import type { ListEventsInRangeResult } from './schemas/interfaces/list-events-in-range-result';
39
42
  import type { ModifyCalendarOptions } from './schemas/interfaces/modify-calendar-options';
40
43
  import type { ModifyEventOptions } from './schemas/interfaces/modify-event-options';
41
44
  import type { ModifyEventWithPromptOptions } from './schemas/interfaces/modify-event-with-prompt-options';
@@ -55,7 +58,8 @@ import type { RecurrenceFrequency } from './schemas/types/recurrence-frequency';
55
58
  import type { CheckAllPermissionsResult, RequestAllPermissionsResult } from './sub-definitions/calendar-access';
56
59
  import type { DeleteEventsByIdResult } from './sub-definitions/event-operations';
57
60
  import type { DeleteRemindersByIdResult } from './sub-definitions/reminders-operations';
61
+ import { downloadIcsFile } from './web/download-ics-file';
58
62
  declare const CapacitorCalendar: CapacitorCalendarPlugin;
59
63
  export * from './definitions';
60
- export type { Calendar, CalendarEvent, CalendarSource, CheckAllPermissionsResult, CheckPermissionOptions, CreateCalendarOptions, CreateCalendarResult, CreateEventOptions, CreateEventWithPromptOptions, 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, };
61
- export { CalendarPermissionScope, EventAvailability, EventSpan, CalendarChooserDisplayStyle, CalendarType, CalendarSourceType, ReminderRecurrenceFrequency, RecurrenceFrequency, EventStatus, AttendeeRole, AttendeeType, AttendeeStatus, CapacitorCalendar, };
64
+ 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, ListEventsInRangeResult, ModifyCalendarOptions, ModifyEventOptions, ModifyEventWithPromptOptions, ModifyReminderOptions, OpenCalendarOptions, RecurrenceRule, Reminder, ReminderRecurrenceRule, RemindersList, RequestAllPermissionsResult, RequestPermissionOptions, SelectCalendarsWithPromptOptions, SelectCalendarsWithPromptResult, UpdateRemindersListOptions, UpdateRemindersListResult, };
65
+ 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
@@ -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;AA+C5F,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;AAgD9B,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 { 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 { CreateEventWithPromptOptions } from './schemas/interfaces/create-event-with-prompt-options';\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';\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 CreateEventWithPromptOptions,\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};\n"]}
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;AAiD5F,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;AAmD9B,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 { ListEventsInRangeResult } from './schemas/interfaces/list-events-in-range-result';\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 ListEventsInRangeResult,\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"]}
@@ -8,146 +8,219 @@ import type { EventStatus } from '../enums/event-status';
8
8
  */
9
9
  export interface CalendarEvent {
10
10
  /**
11
+ * Alert times in minutes relative to the event start.
12
+ *
11
13
  * @platform Android, iOS
12
14
  * @since 7.1.0
13
15
  */
14
- id: string;
15
- /**
16
- * @platform Android, iOS
17
- * @since 7.1.0
18
- */
19
- title: string;
16
+ alerts: number[];
20
17
  /**
21
18
  * @platform Android, iOS
22
19
  * @since 7.1.0
23
20
  */
24
- calendarId: string | null;
21
+ attendees: {
22
+ /**
23
+ * @platform Android
24
+ * @since 7.1.0
25
+ */
26
+ email: string | null;
27
+ /**
28
+ * @platform Android, iOS
29
+ * @since 7.1.0
30
+ */
31
+ name: string | null;
32
+ /**
33
+ * Equivalent to ATTENDEE_RELATIONSHIP on Android.
34
+ * Equivalent to EKParticipantRole on iOS.
35
+ *
36
+ * @platform Android, iOS
37
+ * @since 7.1.0
38
+ */
39
+ role: AttendeeRole | null;
40
+ /**
41
+ * Equivalent to ATTENDEE_STATUS on Android.
42
+ * Equivalent to EKParticipantStatus on iOS.
43
+ *
44
+ * @platform Android, iOS
45
+ * @since 7.1.0
46
+ */
47
+ status: AttendeeStatus | null;
48
+ /**
49
+ * Equivalent to ATTENDEE_TYPE on Android.
50
+ * Equivalent to EKParticipantType on iOS.
51
+ *
52
+ * @platform Android, iOS
53
+ * @since 7.1.0
54
+ */
55
+ type: AttendeeType | null;
56
+ }[];
25
57
  /**
26
58
  * @platform Android, iOS
27
59
  * @since 7.1.0
28
60
  */
29
- location: string | null;
61
+ availability: EventAvailability | null;
30
62
  /**
31
- * @platform Android, iOS
63
+ * @platform iOS
64
+ * @see {@link https://developer.apple.com/documentation/eventkit/ekevent/birthdaycontactidentifier}
32
65
  * @since 7.1.0
33
66
  */
34
- startDate: number;
67
+ birthdayContactIdentifier: string | null;
35
68
  /**
36
69
  * @platform Android, iOS
37
70
  * @since 7.1.0
38
71
  */
39
- endDate: number;
72
+ calendarId: string | null;
40
73
  /**
41
- * @platform Android, iOS
42
- * @since 7.1.0
74
+ * A stable external id for this calendar item.
75
+ *
76
+ * On iOS this is set when the system provides it. On Android and web it is
77
+ * always `null`. Use `masterId` on Android for the series master id.
78
+ *
79
+ * Do not treat this field as the same as `masterId`.
80
+ * They identify different things on different platforms.
81
+ *
82
+ * For non-detached occurrences of a series, this value is shared across
83
+ * those occurrences. On one device, `id` is often already shared for them.
84
+ * This field is mainly useful as a stable id across devices.
85
+ *
86
+ * Detached exceptions usually get a new identifier.
87
+ * You cannot find the original series from this value.
88
+ * Use `isDetached` and `isPartOfSeries` instead.
89
+ * Do not pass this value where the plugin expects an event `id`.
90
+ *
91
+ * @example "1A2B3C4D-...."
92
+ * @platform iOS
93
+ * @see {@link https://developer.apple.com/documentation/eventkit/ekcalendaritem/calendaritemexternalidentifier}
94
+ * @since 8.6.0
43
95
  */
44
- isAllDay: boolean;
96
+ calendarItemExternalIdentifier: string | null;
45
97
  /**
46
- * Alert times in minutes relative to the event start.
47
- *
48
98
  * @platform Android, iOS
49
99
  * @since 7.1.0
50
100
  */
51
- alerts: number[];
101
+ color: string | null;
52
102
  /**
53
103
  * @platform iOS
54
104
  * @since 7.1.0
55
105
  */
56
- url: string | null;
106
+ creationDate: number | null;
57
107
  /**
58
108
  * @platform Android, iOS
59
109
  * @since 7.1.0
60
110
  */
61
111
  description: string | null;
62
112
  /**
63
- * @platform Android, iOS
113
+ * @platform Android
64
114
  * @since 7.1.0
65
115
  */
66
- availability: EventAvailability | null;
116
+ duration: string | null;
67
117
  /**
68
118
  * @platform Android, iOS
69
119
  * @since 7.1.0
70
120
  */
71
- organizer: string | null;
121
+ endDate: number;
72
122
  /**
73
123
  * @platform Android, iOS
74
124
  * @since 7.1.0
75
125
  */
76
- color: string | null;
126
+ id: string;
77
127
  /**
78
- * @platform Android
128
+ * @platform Android, iOS
79
129
  * @since 7.1.0
80
130
  */
81
- duration: string | null;
131
+ isAllDay: boolean;
82
132
  /**
83
133
  * @platform iOS
84
134
  * @since 7.1.0
85
135
  */
86
136
  isDetached: boolean | null;
137
+ /**
138
+ * Whether this event belongs to a recurring series.
139
+ *
140
+ * `true` for series occurrences and detached exceptions.
141
+ * `false` for one-off events.
142
+ *
143
+ * Detached exceptions also set `isDetached` (iOS only).
144
+ *
145
+ * @example true
146
+ * @platform Android, iOS
147
+ * @since 8.6.0
148
+ */
149
+ isPartOfSeries: boolean;
87
150
  /**
88
151
  * @platform iOS
89
- * @see {@link https://developer.apple.com/documentation/eventkit/ekevent/birthdaycontactidentifier}
90
152
  * @since 7.1.0
91
153
  */
92
- birthdayContactIdentifier: string | null;
154
+ lastModifiedDate: number | null;
93
155
  /**
94
156
  * @platform Android, iOS
95
157
  * @since 7.1.0
96
158
  */
97
- status: EventStatus | null;
159
+ location: string | null;
98
160
  /**
99
- * @platform iOS
161
+ * The id of the series master for this listed occurrence.
162
+ *
163
+ * On Android this is always a string. On iOS and web it is always `null`.
164
+ * iOS has no public master event id. Use `calendarItemExternalIdentifier`
165
+ * on iOS instead.
166
+ *
167
+ * Do not treat this field as the same as `calendarItemExternalIdentifier`.
168
+ * They identify different things on different platforms.
169
+ *
170
+ * If this row is the master or a one-shot event, `masterId` equals `id`.
171
+ * If this row is an exception, `id` is the exception and `masterId` is the
172
+ * series master.
173
+ *
174
+ * To modify or delete the whole series, pass `masterId` as the `id` option.
175
+ * You still need `span` and `instanceDate` when those APIs require them.
176
+ *
177
+ * In rare sync cases, an exception may temporarily report `masterId` equal
178
+ * to `id` until the platform links it to the series master.
179
+ *
180
+ * @example "42"
181
+ * @platform Android
182
+ * @since 8.6.0
183
+ */
184
+ masterId: string | null;
185
+ /**
186
+ * @platform Android, iOS
100
187
  * @since 7.1.0
101
188
  */
102
- creationDate: number | null;
189
+ organizer: string | null;
103
190
  /**
104
- * @platform iOS
191
+ * Start time of the recurring series, in milliseconds since the epoch.
192
+ *
193
+ * Equals `startDate` for one-off events. On iOS, equals `startDate` when
194
+ * the series start is not available for a detached exception.
195
+ *
196
+ * @example 1719792000000
197
+ * @platform Android, iOS
198
+ * @since 8.6.0
199
+ */
200
+ seriesStartDate: number;
201
+ /**
202
+ * @platform Android, iOS
105
203
  * @since 7.1.0
106
204
  */
107
- lastModifiedDate: number | null;
205
+ startDate: number;
108
206
  /**
109
207
  * @platform Android, iOS
110
208
  * @since 7.1.0
111
209
  */
112
- attendees: {
113
- /**
114
- * @platform Android
115
- * @since 7.1.0
116
- */
117
- email: string | null;
118
- /**
119
- * @platform Android, iOS
120
- * @since 7.1.0
121
- */
122
- name: string | null;
123
- /**
124
- * Equivalent to ATTENDEE_RELATIONSHIP on Android.
125
- * Equivalent to EKParticipantRole on iOS.
126
- *
127
- * @platform Android, iOS
128
- * @since 7.1.0
129
- */
130
- role: AttendeeRole | null;
131
- /**
132
- * Equivalent to ATTENDEE_STATUS on Android.
133
- * Equivalent to EKParticipantStatus on iOS.
134
- *
135
- * @platform Android, iOS
136
- * @since 7.1.0
137
- */
138
- status: AttendeeStatus | null;
139
- /**
140
- * Equivalent to ATTENDEE_TYPE on Android.
141
- * Equivalent to EKParticipantType on iOS.
142
- *
143
- * @platform Android, iOS
144
- * @since 7.1.0
145
- */
146
- type: AttendeeType | null;
147
- }[];
210
+ status: EventStatus | null;
148
211
  /**
149
212
  * @platform Android, iOS
150
213
  * @since 7.1.0
151
214
  */
152
215
  timezone: string | null;
216
+ /**
217
+ * @platform Android, iOS
218
+ * @since 7.1.0
219
+ */
220
+ title: string;
221
+ /**
222
+ * @platform iOS
223
+ * @since 7.1.0
224
+ */
225
+ url: string | null;
153
226
  }
@@ -1 +1 @@
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
+ {"version":3,"file":"calendar-event.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/calendar-event.ts"],"names":[],"mappings":"","sourcesContent":["import type { AttendeeRole } from '../enums/attendee-role';\nimport type { AttendeeStatus } from '../enums/attendee-status';\nimport type { AttendeeType } from '../enums/attendee-type';\nimport type { EventAvailability } from '../enums/event-availability';\nimport type { EventStatus } from '../enums/event-status';\n\n/**\n * @since 7.1.0\n */\nexport interface CalendarEvent {\n /**\n * Alert times in minutes relative to the event start.\n *\n * @platform Android, iOS\n * @since 7.1.0\n */\n alerts: number[];\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n attendees: {\n /**\n * @platform Android\n * @since 7.1.0\n */\n email: string | null;\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n name: string | null;\n /**\n * Equivalent to ATTENDEE_RELATIONSHIP on Android.\n * Equivalent to EKParticipantRole on iOS.\n *\n * @platform Android, iOS\n * @since 7.1.0\n */\n role: AttendeeRole | null;\n /**\n * Equivalent to ATTENDEE_STATUS on Android.\n * Equivalent to EKParticipantStatus on iOS.\n *\n * @platform Android, iOS\n * @since 7.1.0\n */\n status: AttendeeStatus | null;\n /**\n * Equivalent to ATTENDEE_TYPE on Android.\n * Equivalent to EKParticipantType on iOS.\n *\n * @platform Android, iOS\n * @since 7.1.0\n */\n type: AttendeeType | null;\n }[];\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n availability: EventAvailability | null;\n /**\n * @platform iOS\n * @see {@link https://developer.apple.com/documentation/eventkit/ekevent/birthdaycontactidentifier}\n * @since 7.1.0\n */\n birthdayContactIdentifier: string | null;\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n calendarId: string | null;\n /**\n * A stable external id for this calendar item.\n *\n * On iOS this is set when the system provides it. On Android and web it is\n * always `null`. Use `masterId` on Android for the series master id.\n *\n * Do not treat this field as the same as `masterId`.\n * They identify different things on different platforms.\n *\n * For non-detached occurrences of a series, this value is shared across\n * those occurrences. On one device, `id` is often already shared for them.\n * This field is mainly useful as a stable id across devices.\n *\n * Detached exceptions usually get a new identifier.\n * You cannot find the original series from this value.\n * Use `isDetached` and `isPartOfSeries` instead.\n * Do not pass this value where the plugin expects an event `id`.\n *\n * @example \"1A2B3C4D-....\"\n * @platform iOS\n * @see {@link https://developer.apple.com/documentation/eventkit/ekcalendaritem/calendaritemexternalidentifier}\n * @since 8.6.0\n */\n calendarItemExternalIdentifier: string | null;\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n color: string | null;\n /**\n * @platform iOS\n * @since 7.1.0\n */\n creationDate: number | null;\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n description: string | null;\n /**\n * @platform Android\n * @since 7.1.0\n */\n duration: string | null;\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n endDate: number;\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n id: string;\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n isAllDay: boolean;\n /**\n * @platform iOS\n * @since 7.1.0\n */\n isDetached: boolean | null;\n /**\n * Whether this event belongs to a recurring series.\n *\n * `true` for series occurrences and detached exceptions.\n * `false` for one-off events.\n *\n * Detached exceptions also set `isDetached` (iOS only).\n *\n * @example true\n * @platform Android, iOS\n * @since 8.6.0\n */\n isPartOfSeries: boolean;\n /**\n * @platform iOS\n * @since 7.1.0\n */\n lastModifiedDate: number | null;\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n location: string | null;\n /**\n * The id of the series master for this listed occurrence.\n *\n * On Android this is always a string. On iOS and web it is always `null`.\n * iOS has no public master event id. Use `calendarItemExternalIdentifier`\n * on iOS instead.\n *\n * Do not treat this field as the same as `calendarItemExternalIdentifier`.\n * They identify different things on different platforms.\n *\n * If this row is the master or a one-shot event, `masterId` equals `id`.\n * If this row is an exception, `id` is the exception and `masterId` is the\n * series master.\n *\n * To modify or delete the whole series, pass `masterId` as the `id` option.\n * You still need `span` and `instanceDate` when those APIs require them.\n *\n * In rare sync cases, an exception may temporarily report `masterId` equal\n * to `id` until the platform links it to the series master.\n *\n * @example \"42\"\n * @platform Android\n * @since 8.6.0\n */\n masterId: string | null;\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n organizer: string | null;\n /**\n * Start time of the recurring series, in milliseconds since the epoch.\n *\n * Equals `startDate` for one-off events. On iOS, equals `startDate` when\n * the series start is not available for a detached exception.\n *\n * @example 1719792000000\n * @platform Android, iOS\n * @since 8.6.0\n */\n seriesStartDate: number;\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n startDate: number;\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n status: EventStatus | null;\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n timezone: string | null;\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n title: string;\n /**\n * @platform iOS\n * @since 7.1.0\n */\n url: string | null;\n}\n"]}
@@ -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
- * @platform Android, iOS
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 *\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"]}
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,24 @@
1
+ /**
2
+ * @since 8.5.0
3
+ */
4
+ export interface CreateEventResult {
5
+ /**
6
+ * An `.ics` file (`text/calendar`) with one `VEVENT`.
7
+ * Always `null` on Android and iOS.
8
+ * On Web, the plugin does not write to a calendar store or start a download;
9
+ * use `downloadIcsFile(...)` or pass the `File` to another API.
10
+ *
11
+ * @platform Web
12
+ * @since 8.5.0
13
+ */
14
+ ics: File | null;
15
+ /**
16
+ * The identifier of the created event.
17
+ * Always `null` on Web.
18
+ * Present on Android and iOS after a successful create.
19
+ *
20
+ * @platform Android, iOS
21
+ * @since 0.4.0
22
+ */
23
+ id: string | null;
24
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=create-event-result.js.map
@@ -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 * Always `null` on Android and iOS.\n * 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 | null;\n /**\n * The identifier of the created event.\n * Always `null` on Web.\n * Present on Android and iOS after a successful create.\n *\n * @platform Android, iOS\n * @since 0.4.0\n */\n id: string | null;\n}\n"]}
@@ -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,2 @@
1
+ export {};
2
+ //# sourceMappingURL=create-event-with-prompt-result.js.map
@@ -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"]}
@@ -0,0 +1,13 @@
1
+ import type { CalendarEvent } from './calendar-event';
2
+ /**
3
+ * @since 8.6.0
4
+ */
5
+ export interface ListEventsInRangeResult {
6
+ /**
7
+ * Events that overlap the requested range.
8
+ *
9
+ * @platform Android, iOS
10
+ * @since 8.6.0
11
+ */
12
+ result: CalendarEvent[];
13
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=list-events-in-range-result.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-events-in-range-result.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/list-events-in-range-result.ts"],"names":[],"mappings":"","sourcesContent":["import type { CalendarEvent } from './calendar-event';\n\n/**\n * @since 8.6.0\n */\nexport interface ListEventsInRangeResult {\n /**\n * Events that overlap the requested range.\n *\n * @platform Android, iOS\n * @since 8.6.0\n */\n result: CalendarEvent[];\n}\n"]}