@ebarooni/capacitor-calendar 8.11.0 → 8.12.1
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 +280 -104
- package/android/src/main/java/dev/barooni/capacitor/calendar/CapacitorCalendarPlugin.kt +37 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/implementation/CalendarChangeObserver.kt +181 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/implementation/CapacitorCalendar.kt +58 -8
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/data/EventDeleteInfo.kt +6 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/StartListeningInput.kt +20 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/utils/ImplementationHelper.kt +88 -67
- package/dist/docs.json +1383 -976
- package/dist/esm/definitions.d.ts +2 -1
- package/dist/esm/definitions.js.map +1 -1
- package/dist/esm/index.d.ts +12 -2
- package/dist/esm/index.js +4 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/schemas/enums/capacitor-calendar-error-code.d.ts +2 -2
- package/dist/esm/schemas/enums/capacitor-calendar-error-code.js +2 -2
- package/dist/esm/schemas/enums/capacitor-calendar-error-code.js.map +1 -1
- package/dist/esm/schemas/interfaces/calendar-changed-event.d.ts +52 -0
- package/dist/esm/schemas/interfaces/calendar-changed-event.js +2 -0
- package/dist/esm/schemas/interfaces/calendar-changed-event.js.map +1 -0
- package/dist/esm/schemas/interfaces/calendar-links.d.ts +32 -0
- package/dist/esm/schemas/interfaces/calendar-links.js +2 -0
- package/dist/esm/schemas/interfaces/calendar-links.js.map +1 -0
- package/dist/esm/schemas/interfaces/create-event-options.d.ts +18 -0
- package/dist/esm/schemas/interfaces/create-event-options.js.map +1 -1
- package/dist/esm/schemas/interfaces/create-event-with-prompt-options.d.ts +9 -0
- package/dist/esm/schemas/interfaces/create-event-with-prompt-options.js.map +1 -1
- package/dist/esm/schemas/interfaces/create-ics-file-options.d.ts +20 -0
- package/dist/esm/schemas/interfaces/create-ics-file-options.js +2 -0
- package/dist/esm/schemas/interfaces/create-ics-file-options.js.map +1 -0
- package/dist/esm/schemas/interfaces/open-calendar-options.d.ts +9 -0
- package/dist/esm/schemas/interfaces/open-calendar-options.js.map +1 -1
- package/dist/esm/schemas/interfaces/share-ics-file-options.d.ts +17 -0
- package/dist/esm/schemas/interfaces/share-ics-file-options.js +2 -0
- package/dist/esm/schemas/interfaces/share-ics-file-options.js.map +1 -0
- package/dist/esm/schemas/interfaces/start-listening-options.d.ts +46 -0
- package/dist/esm/schemas/interfaces/start-listening-options.js +2 -0
- package/dist/esm/schemas/interfaces/start-listening-options.js.map +1 -0
- package/dist/esm/schemas/types/calendar-day-view-provider.d.ts +7 -0
- package/dist/esm/schemas/types/calendar-day-view-provider.js +2 -0
- package/dist/esm/schemas/types/calendar-day-view-provider.js.map +1 -0
- package/dist/esm/schemas/types/calendar-link-provider.d.ts +6 -0
- package/dist/esm/schemas/types/calendar-link-provider.js +2 -0
- package/dist/esm/schemas/types/calendar-link-provider.js.map +1 -0
- package/dist/esm/sub-definitions/calendar-listening.d.ts +49 -0
- package/dist/esm/sub-definitions/calendar-listening.js +2 -0
- package/dist/esm/sub-definitions/calendar-listening.js.map +1 -0
- package/dist/esm/sub-definitions/calendar-operations.d.ts +2 -1
- package/dist/esm/sub-definitions/calendar-operations.js.map +1 -1
- package/dist/esm/web/calendar-links.d.ts +26 -0
- package/dist/esm/web/calendar-links.js +114 -0
- package/dist/esm/web/calendar-links.js.map +1 -0
- package/dist/esm/web/create-ics-file.d.ts +21 -0
- package/dist/esm/web/create-ics-file.js +30 -0
- package/dist/esm/web/create-ics-file.js.map +1 -0
- package/dist/esm/web/ics.d.ts +11 -0
- package/dist/esm/web/ics.js +48 -32
- package/dist/esm/web/ics.js.map +1 -1
- package/dist/esm/web/share-ics-file.d.ts +21 -0
- package/dist/esm/web/share-ics-file.js +46 -0
- package/dist/esm/web/share-ics-file.js.map +1 -0
- package/dist/esm/web.d.ts +4 -1
- package/dist/esm/web.js +18 -4
- package/dist/esm/web.js.map +1 -1
- package/dist/plugin.cjs.js +292 -72
- package/dist/plugin.cjs.js.map +1 -1
- package/dist/plugin.js +292 -72
- package/dist/plugin.js.map +1 -1
- package/ios/Plugin/CapacitorCalendarPlugin.swift +19 -0
- package/ios/Plugin/Implementation/CalendarChangeObserver.swift +259 -0
- package/ios/Plugin/Implementation/CapacitorCalendar.swift +15 -1
- package/ios/Plugin/Models/Inputs/DeleteReminderInput.swift +1 -1
- package/ios/Plugin/Models/Inputs/DeleteReminderWithPromptInput.swift +1 -1
- package/ios/Plugin/Models/Inputs/DeleteRemindersListInput.swift +1 -1
- package/ios/Plugin/Models/Inputs/GetReminderByIdInput.swift +1 -1
- package/ios/Plugin/Models/Inputs/ModifyReminderInput.swift +14 -9
- package/ios/Plugin/Models/Inputs/StartListeningInput.swift +26 -0
- package/ios/Plugin/Models/Inputs/UpdateRemindersListInput.swift +1 -1
- package/ios/Plugin/PluginConfig.swift +2 -0
- package/ios/Plugin/PluginError.swift +25 -3
- package/ios/Plugin/Utils/ImplementationHelper.swift +16 -30
- package/ios/Plugin/Utils/PluginCallRejecter.swift +13 -0
- package/package.json +1 -1
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type { CalendarAccess } from './sub-definitions/calendar-access';
|
|
2
|
+
import type { CalendarListening } from './sub-definitions/calendar-listening';
|
|
2
3
|
import type { CalendarOperations } from './sub-definitions/calendar-operations';
|
|
3
4
|
import type { EventOperations } from './sub-definitions/event-operations';
|
|
4
5
|
import type { RemindersAccess } from './sub-definitions/reminders-access';
|
|
5
6
|
import type { RemindersOperations } from './sub-definitions/reminders-operations';
|
|
6
|
-
export interface CapacitorCalendarPlugin extends CalendarAccess, RemindersAccess, EventOperations, CalendarOperations, RemindersOperations {
|
|
7
|
+
export interface CapacitorCalendarPlugin extends CalendarAccess, CalendarListening, RemindersAccess, EventOperations, CalendarOperations, RemindersOperations {
|
|
7
8
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"definitions.js","sourceRoot":"","sources":["../../src/definitions.ts"],"names":[],"mappings":"","sourcesContent":["import type { CalendarAccess } from './sub-definitions/calendar-access';\nimport type { CalendarOperations } from './sub-definitions/calendar-operations';\nimport type { EventOperations } from './sub-definitions/event-operations';\nimport type { RemindersAccess } from './sub-definitions/reminders-access';\nimport type { RemindersOperations } from './sub-definitions/reminders-operations';\n\nexport interface CapacitorCalendarPlugin\n extends
|
|
1
|
+
{"version":3,"file":"definitions.js","sourceRoot":"","sources":["../../src/definitions.ts"],"names":[],"mappings":"","sourcesContent":["import type { CalendarAccess } from './sub-definitions/calendar-access';\nimport type { CalendarListening } from './sub-definitions/calendar-listening';\nimport type { CalendarOperations } from './sub-definitions/calendar-operations';\nimport type { EventOperations } from './sub-definitions/event-operations';\nimport type { RemindersAccess } from './sub-definitions/reminders-access';\nimport type { RemindersOperations } from './sub-definitions/reminders-operations';\n\nexport interface CapacitorCalendarPlugin\n extends\n CalendarAccess,\n CalendarListening,\n RemindersAccess,\n EventOperations,\n CalendarOperations,\n RemindersOperations {}\n"]}
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -12,7 +12,9 @@ import { EventSpan } from './schemas/enums/event-span';
|
|
|
12
12
|
import { EventStatus } from './schemas/enums/event-status';
|
|
13
13
|
import { ReminderRecurrenceFrequency } from './schemas/enums/reminder-recurrence-frequency';
|
|
14
14
|
import type { Calendar } from './schemas/interfaces/calendar';
|
|
15
|
+
import type { CalendarChangedEvent } from './schemas/interfaces/calendar-changed-event';
|
|
15
16
|
import type { CalendarEvent } from './schemas/interfaces/calendar-event';
|
|
17
|
+
import type { CalendarLinks } from './schemas/interfaces/calendar-links';
|
|
16
18
|
import type { CalendarSource } from './schemas/interfaces/calendar-source';
|
|
17
19
|
import type { CheckPermissionOptions } from './schemas/interfaces/check-permission-options';
|
|
18
20
|
import type { CreateCalendarOptions } from './schemas/interfaces/create-calendar-options';
|
|
@@ -21,6 +23,7 @@ import type { CreateEventOptions } from './schemas/interfaces/create-event-optio
|
|
|
21
23
|
import type { CreateEventResult } from './schemas/interfaces/create-event-result';
|
|
22
24
|
import type { CreateEventWithPromptOptions } from './schemas/interfaces/create-event-with-prompt-options';
|
|
23
25
|
import type { CreateEventWithPromptResult } from './schemas/interfaces/create-event-with-prompt-result';
|
|
26
|
+
import type { CreateIcsFileOptions } from './schemas/interfaces/create-ics-file-options';
|
|
24
27
|
import type { CreateReminderOptions } from './schemas/interfaces/create-reminder-options';
|
|
25
28
|
import type { CreateReminderResult } from './schemas/interfaces/create-reminder-result';
|
|
26
29
|
import type { CreateRemindersListOptions } from './schemas/interfaces/create-reminders-list-options';
|
|
@@ -62,15 +65,22 @@ import type { RemindersList } from './schemas/interfaces/reminders-list';
|
|
|
62
65
|
import type { RequestPermissionOptions } from './schemas/interfaces/request-permission-options';
|
|
63
66
|
import type { SelectCalendarsWithPromptOptions } from './schemas/interfaces/select-calendars-with-prompt-options';
|
|
64
67
|
import type { SelectCalendarsWithPromptResult } from './schemas/interfaces/select-calendars-with-prompt-result';
|
|
68
|
+
import type { ShareIcsFileOptions } from './schemas/interfaces/share-ics-file-options';
|
|
69
|
+
import type { StartListeningOptions } from './schemas/interfaces/start-listening-options';
|
|
65
70
|
import type { UpdateRemindersListOptions } from './schemas/interfaces/update-reminders-list-options';
|
|
66
71
|
import type { UpdateRemindersListResult } from './schemas/interfaces/update-reminders-list-result';
|
|
72
|
+
import type { CalendarDayViewProvider } from './schemas/types/calendar-day-view-provider';
|
|
73
|
+
import type { CalendarLinkProvider } from './schemas/types/calendar-link-provider';
|
|
67
74
|
import type { EventEditAction } from './schemas/types/event-edit-action';
|
|
68
75
|
import type { RecurrenceFrequency } from './schemas/types/recurrence-frequency';
|
|
69
76
|
import type { SystemColorName } from './schemas/types/system-color-name';
|
|
70
77
|
import type { CheckAllPermissionsResult, RequestAllPermissionsResult } from './sub-definitions/calendar-access';
|
|
71
78
|
import type { DeleteEventsByIdResult } from './sub-definitions/event-operations';
|
|
79
|
+
import { getCalendarDayLink, getCalendarLinks } from './web/calendar-links';
|
|
80
|
+
import { createIcsFile } from './web/create-ics-file';
|
|
72
81
|
import { downloadIcsFile } from './web/download-ics-file';
|
|
82
|
+
import { shareIcsFile } from './web/share-ics-file';
|
|
73
83
|
declare const CapacitorCalendar: CapacitorCalendarPlugin;
|
|
74
84
|
export * from './definitions';
|
|
75
|
-
export type { Calendar, CalendarEvent, CalendarSource, CheckAllPermissionsResult, CheckPermissionOptions, CreateCalendarOptions, CreateCalendarResult, CreateEventOptions, CreateEventResult, CreateEventWithPromptOptions, CreateEventWithPromptResult, CreateReminderOptions, CreateReminderResult, CreateRemindersListOptions, CreateRemindersListResult, DeleteCalendarOptions, DeleteEventOptions, DeleteEventWithPromptOptions, DeleteEventsByIdOptions, DeleteEventsByIdResult, DeleteReminderOptions, DeleteReminderWithPromptOptions, DeleteReminderWithPromptResult, DeleteRemindersByIdOptions, DeleteRemindersByIdResult, DeleteRemindersListOptions, EventEditAction, EventGuest, EventRecurrenceRule, FetchAllCalendarSourcesResult, GetDefaultCalendarOptions, GetDefaultRemindersListResult, GetEventByIdOptions, GetEventByIdResult, GetReminderByIdOptions, GetReminderByIdResult, GetRemindersFromListsOptions, GetRemindersFromListsResult, GetRemindersListsResult, ListCalendarsResult, ListEventsInRangeOptions, ListEventsInRangeResult, ModifyCalendarOptions, ModifyEventOptions, ModifyEventWithPromptOptions, ModifyReminderOptions, OpenCalendarOptions, RecurrenceRule, Reminder, ReminderRecurrenceRule, RemindersList, RequestAllPermissionsResult, RequestPermissionOptions, SelectCalendarsWithPromptOptions, SelectCalendarsWithPromptResult, SystemColorName, UpdateRemindersListOptions, UpdateRemindersListResult, };
|
|
76
|
-
export { CalendarPermissionScope, CapacitorCalendarErrorCode, EventAvailability, EventSpan, CalendarChooserDisplayStyle, CalendarType, CalendarSourceType, ReminderRecurrenceFrequency, RecurrenceFrequency, EventStatus, AttendeeRole, AttendeeType, AttendeeStatus, CapacitorCalendar, downloadIcsFile, };
|
|
85
|
+
export type { Calendar, CalendarChangedEvent, CalendarDayViewProvider, CalendarEvent, CalendarLinkProvider, CalendarLinks, CalendarSource, CheckAllPermissionsResult, CheckPermissionOptions, CreateCalendarOptions, CreateCalendarResult, CreateEventOptions, CreateEventResult, CreateEventWithPromptOptions, CreateEventWithPromptResult, CreateIcsFileOptions, CreateReminderOptions, CreateReminderResult, CreateRemindersListOptions, CreateRemindersListResult, DeleteCalendarOptions, DeleteEventOptions, DeleteEventWithPromptOptions, DeleteEventsByIdOptions, DeleteEventsByIdResult, DeleteReminderOptions, DeleteReminderWithPromptOptions, DeleteReminderWithPromptResult, DeleteRemindersByIdOptions, DeleteRemindersByIdResult, DeleteRemindersListOptions, EventEditAction, EventGuest, EventRecurrenceRule, FetchAllCalendarSourcesResult, GetDefaultCalendarOptions, GetDefaultRemindersListResult, GetEventByIdOptions, GetEventByIdResult, GetReminderByIdOptions, GetReminderByIdResult, GetRemindersFromListsOptions, GetRemindersFromListsResult, GetRemindersListsResult, ListCalendarsResult, ListEventsInRangeOptions, ListEventsInRangeResult, ModifyCalendarOptions, ModifyEventOptions, ModifyEventWithPromptOptions, ModifyReminderOptions, OpenCalendarOptions, RecurrenceRule, Reminder, ReminderRecurrenceRule, RemindersList, RequestAllPermissionsResult, RequestPermissionOptions, SelectCalendarsWithPromptOptions, SelectCalendarsWithPromptResult, ShareIcsFileOptions, StartListeningOptions, SystemColorName, UpdateRemindersListOptions, UpdateRemindersListResult, };
|
|
86
|
+
export { CalendarPermissionScope, CapacitorCalendarErrorCode, EventAvailability, EventSpan, CalendarChooserDisplayStyle, CalendarType, CalendarSourceType, ReminderRecurrenceFrequency, RecurrenceFrequency, EventStatus, AttendeeRole, AttendeeType, AttendeeStatus, CapacitorCalendar, downloadIcsFile, createIcsFile, getCalendarLinks, getCalendarDayLink, shareIcsFile, };
|
package/dist/esm/index.js
CHANGED
|
@@ -11,10 +11,13 @@ import { EventAvailability } from './schemas/enums/event-availability';
|
|
|
11
11
|
import { EventSpan } from './schemas/enums/event-span';
|
|
12
12
|
import { EventStatus } from './schemas/enums/event-status';
|
|
13
13
|
import { ReminderRecurrenceFrequency } from './schemas/enums/reminder-recurrence-frequency';
|
|
14
|
+
import { getCalendarDayLink, getCalendarLinks } from './web/calendar-links';
|
|
15
|
+
import { createIcsFile } from './web/create-ics-file';
|
|
14
16
|
import { downloadIcsFile } from './web/download-ics-file';
|
|
17
|
+
import { shareIcsFile } from './web/share-ics-file';
|
|
15
18
|
const CapacitorCalendar = registerPlugin('CapacitorCalendar', {
|
|
16
19
|
web: () => import('./web').then((m) => new m.CapacitorCalendarWeb()),
|
|
17
20
|
});
|
|
18
21
|
export * from './definitions';
|
|
19
|
-
export { CalendarPermissionScope, CapacitorCalendarErrorCode, EventAvailability, EventSpan, CalendarChooserDisplayStyle, CalendarType, CalendarSourceType, ReminderRecurrenceFrequency, EventStatus, AttendeeRole, AttendeeType, AttendeeStatus, CapacitorCalendar, downloadIcsFile, };
|
|
22
|
+
export { CalendarPermissionScope, CapacitorCalendarErrorCode, EventAvailability, EventSpan, CalendarChooserDisplayStyle, CalendarType, CalendarSourceType, ReminderRecurrenceFrequency, EventStatus, AttendeeRole, AttendeeType, AttendeeStatus, CapacitorCalendar, downloadIcsFile, createIcsFile, getCalendarLinks, getCalendarDayLink, shareIcsFile, };
|
|
20
23
|
//# 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,0BAA0B,EAAE,MAAM,+CAA+C,CAAC;AAC3F,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;AA2D5F,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;AA6D9B,OAAO,EACL,uBAAuB,EACvB,0BAA0B,EAC1B,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 { CapacitorCalendarErrorCode } from './schemas/enums/capacitor-calendar-error-code';\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 { CreateReminderResult } from './schemas/interfaces/create-reminder-result';\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 { DeleteReminderWithPromptResult } from './schemas/interfaces/delete-reminder-with-prompt-result';\nimport type { DeleteRemindersByIdOptions } from './schemas/interfaces/delete-reminders-by-id-options';\nimport type { DeleteRemindersByIdResult } from './schemas/interfaces/delete-reminders-by-id-result';\nimport type { DeleteRemindersListOptions } from './schemas/interfaces/delete-reminders-list-options';\nimport type { EventGuest } from './schemas/interfaces/event-guest';\nimport type { EventRecurrenceRule } from './schemas/interfaces/event-recurrence-rule';\nimport type { FetchAllCalendarSourcesResult } from './schemas/interfaces/fetch-all-calendar-sources-result';\nimport type { GetDefaultCalendarOptions } from './schemas/interfaces/get-default-calendar-options';\nimport type { GetDefaultRemindersListResult } from './schemas/interfaces/get-default-reminders-list-result';\nimport type { GetEventByIdOptions } from './schemas/interfaces/get-event-by-id-options';\nimport type { GetEventByIdResult } from './schemas/interfaces/get-event-by-id-result';\nimport type { GetReminderByIdOptions } from './schemas/interfaces/get-reminder-by-id-options';\nimport type { GetReminderByIdResult } from './schemas/interfaces/get-reminder-by-id-result';\nimport type { GetRemindersFromListsOptions } from './schemas/interfaces/get-reminders-from-lists-options';\nimport type { GetRemindersFromListsResult } from './schemas/interfaces/get-reminders-from-lists-result';\nimport type { GetRemindersListsResult } from './schemas/interfaces/get-reminders-lists-result';\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 { SystemColorName } from './schemas/types/system-color-name';\nimport type { CheckAllPermissionsResult, RequestAllPermissionsResult } from './sub-definitions/calendar-access';\nimport type { DeleteEventsByIdResult } from './sub-definitions/event-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 CreateReminderResult,\n CreateRemindersListOptions,\n CreateRemindersListResult,\n DeleteCalendarOptions,\n DeleteEventOptions,\n DeleteEventWithPromptOptions,\n DeleteEventsByIdOptions,\n DeleteEventsByIdResult,\n DeleteReminderOptions,\n DeleteReminderWithPromptOptions,\n DeleteReminderWithPromptResult,\n DeleteRemindersByIdOptions,\n DeleteRemindersByIdResult,\n DeleteRemindersListOptions,\n EventEditAction,\n EventGuest,\n EventRecurrenceRule,\n FetchAllCalendarSourcesResult,\n GetDefaultCalendarOptions,\n GetDefaultRemindersListResult,\n GetEventByIdOptions,\n GetEventByIdResult,\n GetReminderByIdOptions,\n GetReminderByIdResult,\n GetRemindersFromListsOptions,\n GetRemindersFromListsResult,\n GetRemindersListsResult,\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 SystemColorName,\n UpdateRemindersListOptions,\n UpdateRemindersListResult,\n};\nexport {\n CalendarPermissionScope,\n CapacitorCalendarErrorCode,\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"]}
|
|
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,0BAA0B,EAAE,MAAM,+CAA+C,CAAC;AAC3F,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;AAkE5F,OAAO,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAC5E,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAEpD,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;AAoE9B,OAAO,EACL,uBAAuB,EACvB,0BAA0B,EAC1B,iBAAiB,EACjB,SAAS,EACT,2BAA2B,EAC3B,YAAY,EACZ,kBAAkB,EAClB,2BAA2B,EAE3B,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,cAAc,EACd,iBAAiB,EACjB,eAAe,EACf,aAAa,EACb,gBAAgB,EAChB,kBAAkB,EAClB,YAAY,GACb,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 { CapacitorCalendarErrorCode } from './schemas/enums/capacitor-calendar-error-code';\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 { CalendarChangedEvent } from './schemas/interfaces/calendar-changed-event';\nimport type { CalendarEvent } from './schemas/interfaces/calendar-event';\nimport type { CalendarLinks } from './schemas/interfaces/calendar-links';\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 { CreateIcsFileOptions } from './schemas/interfaces/create-ics-file-options';\nimport type { CreateReminderOptions } from './schemas/interfaces/create-reminder-options';\nimport type { CreateReminderResult } from './schemas/interfaces/create-reminder-result';\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 { DeleteReminderWithPromptResult } from './schemas/interfaces/delete-reminder-with-prompt-result';\nimport type { DeleteRemindersByIdOptions } from './schemas/interfaces/delete-reminders-by-id-options';\nimport type { DeleteRemindersByIdResult } from './schemas/interfaces/delete-reminders-by-id-result';\nimport type { DeleteRemindersListOptions } from './schemas/interfaces/delete-reminders-list-options';\nimport type { EventGuest } from './schemas/interfaces/event-guest';\nimport type { EventRecurrenceRule } from './schemas/interfaces/event-recurrence-rule';\nimport type { FetchAllCalendarSourcesResult } from './schemas/interfaces/fetch-all-calendar-sources-result';\nimport type { GetDefaultCalendarOptions } from './schemas/interfaces/get-default-calendar-options';\nimport type { GetDefaultRemindersListResult } from './schemas/interfaces/get-default-reminders-list-result';\nimport type { GetEventByIdOptions } from './schemas/interfaces/get-event-by-id-options';\nimport type { GetEventByIdResult } from './schemas/interfaces/get-event-by-id-result';\nimport type { GetReminderByIdOptions } from './schemas/interfaces/get-reminder-by-id-options';\nimport type { GetReminderByIdResult } from './schemas/interfaces/get-reminder-by-id-result';\nimport type { GetRemindersFromListsOptions } from './schemas/interfaces/get-reminders-from-lists-options';\nimport type { GetRemindersFromListsResult } from './schemas/interfaces/get-reminders-from-lists-result';\nimport type { GetRemindersListsResult } from './schemas/interfaces/get-reminders-lists-result';\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 { ShareIcsFileOptions } from './schemas/interfaces/share-ics-file-options';\nimport type { StartListeningOptions } from './schemas/interfaces/start-listening-options';\nimport type { UpdateRemindersListOptions } from './schemas/interfaces/update-reminders-list-options';\nimport type { UpdateRemindersListResult } from './schemas/interfaces/update-reminders-list-result';\nimport type { CalendarDayViewProvider } from './schemas/types/calendar-day-view-provider';\nimport type { CalendarLinkProvider } from './schemas/types/calendar-link-provider';\nimport type { EventEditAction } from './schemas/types/event-edit-action';\nimport type { RecurrenceFrequency } from './schemas/types/recurrence-frequency';\nimport type { SystemColorName } from './schemas/types/system-color-name';\nimport type { CheckAllPermissionsResult, RequestAllPermissionsResult } from './sub-definitions/calendar-access';\nimport type { DeleteEventsByIdResult } from './sub-definitions/event-operations';\nimport { getCalendarDayLink, getCalendarLinks } from './web/calendar-links';\nimport { createIcsFile } from './web/create-ics-file';\nimport { downloadIcsFile } from './web/download-ics-file';\nimport { shareIcsFile } from './web/share-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 CalendarChangedEvent,\n CalendarDayViewProvider,\n CalendarEvent,\n CalendarLinkProvider,\n CalendarLinks,\n CalendarSource,\n CheckAllPermissionsResult,\n CheckPermissionOptions,\n CreateCalendarOptions,\n CreateCalendarResult,\n CreateEventOptions,\n CreateEventResult,\n CreateEventWithPromptOptions,\n CreateEventWithPromptResult,\n CreateIcsFileOptions,\n CreateReminderOptions,\n CreateReminderResult,\n CreateRemindersListOptions,\n CreateRemindersListResult,\n DeleteCalendarOptions,\n DeleteEventOptions,\n DeleteEventWithPromptOptions,\n DeleteEventsByIdOptions,\n DeleteEventsByIdResult,\n DeleteReminderOptions,\n DeleteReminderWithPromptOptions,\n DeleteReminderWithPromptResult,\n DeleteRemindersByIdOptions,\n DeleteRemindersByIdResult,\n DeleteRemindersListOptions,\n EventEditAction,\n EventGuest,\n EventRecurrenceRule,\n FetchAllCalendarSourcesResult,\n GetDefaultCalendarOptions,\n GetDefaultRemindersListResult,\n GetEventByIdOptions,\n GetEventByIdResult,\n GetReminderByIdOptions,\n GetReminderByIdResult,\n GetRemindersFromListsOptions,\n GetRemindersFromListsResult,\n GetRemindersListsResult,\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 ShareIcsFileOptions,\n StartListeningOptions,\n SystemColorName,\n UpdateRemindersListOptions,\n UpdateRemindersListResult,\n};\nexport {\n CalendarPermissionScope,\n CapacitorCalendarErrorCode,\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 createIcsFile,\n getCalendarLinks,\n getCalendarDayLink,\n shareIcsFile,\n};\n"]}
|
|
@@ -23,14 +23,14 @@ export declare enum CapacitorCalendarErrorCode {
|
|
|
23
23
|
*/
|
|
24
24
|
IoError = "EB-CLDR-0004",
|
|
25
25
|
/**
|
|
26
|
-
* The device cannot open the calendar UI, reminders UI, or target URL.
|
|
26
|
+
* The device cannot open the calendar UI, reminders UI, or target URL. Also used on iOS for a missing view controller and a calendar chooser that is already open.
|
|
27
27
|
*
|
|
28
28
|
* @since 8.10.0
|
|
29
29
|
*/
|
|
30
30
|
NotSupported = "EB-CLDR-0005",
|
|
31
31
|
/**
|
|
32
32
|
* Calendar access was denied.
|
|
33
|
-
* On Android, calendar operations that fail with a permission error reject with this code. Permission check and request APIs still resolve `"denied"` on Android and iOS.
|
|
33
|
+
* On Android and iOS, calendar operations that fail with a permission error reject with this code. Permission check and request APIs still resolve `"denied"` on Android and iOS.
|
|
34
34
|
*
|
|
35
35
|
* @since 8.10.0
|
|
36
36
|
*/
|
|
@@ -24,14 +24,14 @@ export var CapacitorCalendarErrorCode;
|
|
|
24
24
|
*/
|
|
25
25
|
CapacitorCalendarErrorCode["IoError"] = "EB-CLDR-0004";
|
|
26
26
|
/**
|
|
27
|
-
* The device cannot open the calendar UI, reminders UI, or target URL.
|
|
27
|
+
* The device cannot open the calendar UI, reminders UI, or target URL. Also used on iOS for a missing view controller and a calendar chooser that is already open.
|
|
28
28
|
*
|
|
29
29
|
* @since 8.10.0
|
|
30
30
|
*/
|
|
31
31
|
CapacitorCalendarErrorCode["NotSupported"] = "EB-CLDR-0005";
|
|
32
32
|
/**
|
|
33
33
|
* Calendar access was denied.
|
|
34
|
-
* On Android, calendar operations that fail with a permission error reject with this code. Permission check and request APIs still resolve `"denied"` on Android and iOS.
|
|
34
|
+
* On Android and iOS, calendar operations that fail with a permission error reject with this code. Permission check and request APIs still resolve `"denied"` on Android and iOS.
|
|
35
35
|
*
|
|
36
36
|
* @since 8.10.0
|
|
37
37
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"capacitor-calendar-error-code.js","sourceRoot":"","sources":["../../../../src/schemas/enums/capacitor-calendar-error-code.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,CAAN,IAAY,0BA2CX;AA3CD,WAAY,0BAA0B;IACpC;;;;OAIG;IACH,8DAAgC,CAAA;IAEhC;;;;OAIG;IACH,uDAAyB,CAAA;IAEzB;;;;OAIG;IACH,sDAAwB,CAAA;IAExB;;;;OAIG;IACH,2DAA6B,CAAA;IAE7B;;;;;OAKG;IACH,+DAAiC,CAAA;IAEjC;;;;OAIG;IACH,iEAAmC,CAAA;AACrC,CAAC,EA3CW,0BAA0B,KAA1B,0BAA0B,QA2CrC","sourcesContent":["/**\n * Stable reject codes for CapacitorCalendar. Compare with `error.code`.\n *\n * @since 8.9.0\n */\nexport enum CapacitorCalendarErrorCode {\n /**\n * Missing or invalid method arguments.\n *\n * @since 8.10.0\n */\n InvalidArgument = 'EB-CLDR-0001',\n\n /**\n * Requested calendar, event, list, reminder, or calendar source was not found.\n *\n * @since 8.10.0\n */\n NotFound = 'EB-CLDR-0002',\n\n /**\n * A calendar store read or write failed.\n *\n * @since 8.10.0\n */\n IoError = 'EB-CLDR-0004',\n\n /**\n * The device cannot open the calendar UI, reminders UI, or target URL.\n *\n * @since 8.10.0\n */\n NotSupported = 'EB-CLDR-0005',\n\n /**\n * Calendar access was denied.\n * On Android, calendar operations that fail with a permission error reject with this code. Permission check and request APIs still resolve `\"denied\"` on Android and iOS.\n *\n * @since 8.10.0\n */\n PermissionDenied = 'EB-CLDR-0020',\n\n /**\n * Missing Info.plist usage description or AndroidManifest permission declaration.\n *\n * @since 8.9.0\n */\n MissingDeclaration = 'EB-CLDR-0100',\n}\n"]}
|
|
1
|
+
{"version":3,"file":"capacitor-calendar-error-code.js","sourceRoot":"","sources":["../../../../src/schemas/enums/capacitor-calendar-error-code.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,CAAN,IAAY,0BA2CX;AA3CD,WAAY,0BAA0B;IACpC;;;;OAIG;IACH,8DAAgC,CAAA;IAEhC;;;;OAIG;IACH,uDAAyB,CAAA;IAEzB;;;;OAIG;IACH,sDAAwB,CAAA;IAExB;;;;OAIG;IACH,2DAA6B,CAAA;IAE7B;;;;;OAKG;IACH,+DAAiC,CAAA;IAEjC;;;;OAIG;IACH,iEAAmC,CAAA;AACrC,CAAC,EA3CW,0BAA0B,KAA1B,0BAA0B,QA2CrC","sourcesContent":["/**\n * Stable reject codes for CapacitorCalendar. Compare with `error.code`.\n *\n * @since 8.9.0\n */\nexport enum CapacitorCalendarErrorCode {\n /**\n * Missing or invalid method arguments.\n *\n * @since 8.10.0\n */\n InvalidArgument = 'EB-CLDR-0001',\n\n /**\n * Requested calendar, event, list, reminder, or calendar source was not found.\n *\n * @since 8.10.0\n */\n NotFound = 'EB-CLDR-0002',\n\n /**\n * A calendar store read or write failed.\n *\n * @since 8.10.0\n */\n IoError = 'EB-CLDR-0004',\n\n /**\n * The device cannot open the calendar UI, reminders UI, or target URL. Also used on iOS for a missing view controller and a calendar chooser that is already open.\n *\n * @since 8.10.0\n */\n NotSupported = 'EB-CLDR-0005',\n\n /**\n * Calendar access was denied.\n * On Android and iOS, calendar operations that fail with a permission error reject with this code. Permission check and request APIs still resolve `\"denied\"` on Android and iOS.\n *\n * @since 8.10.0\n */\n PermissionDenied = 'EB-CLDR-0020',\n\n /**\n * Missing Info.plist usage description or AndroidManifest permission declaration.\n *\n * @since 8.9.0\n */\n MissingDeclaration = 'EB-CLDR-0100',\n}\n"]}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import type { CalendarEvent } from './calendar-event';
|
|
2
|
+
/**
|
|
3
|
+
* Sent to `calendarChanged` listeners. Only fields that have a change are present.
|
|
4
|
+
*
|
|
5
|
+
* @since 8.12.0
|
|
6
|
+
*/
|
|
7
|
+
export interface CalendarChangedEvent {
|
|
8
|
+
/**
|
|
9
|
+
* Events that are new in the watched window.
|
|
10
|
+
* Not present when `includeEvents` is `false`.
|
|
11
|
+
*
|
|
12
|
+
* @since 8.12.0
|
|
13
|
+
*/
|
|
14
|
+
created?: CalendarEvent[];
|
|
15
|
+
/**
|
|
16
|
+
* Events in the watched window that changed. A moved event is listed here, with its new `startDate`.
|
|
17
|
+
* Not present when `includeEvents` is `false`.
|
|
18
|
+
*
|
|
19
|
+
* @since 8.12.0
|
|
20
|
+
*/
|
|
21
|
+
updated?: CalendarEvent[];
|
|
22
|
+
/**
|
|
23
|
+
* Ids of events that were deleted or left the watched window.
|
|
24
|
+
*
|
|
25
|
+
* @since 8.12.0
|
|
26
|
+
*/
|
|
27
|
+
deletedIds?: string[];
|
|
28
|
+
/**
|
|
29
|
+
* `true` when a calendar was added, removed or edited.
|
|
30
|
+
*
|
|
31
|
+
* @since 8.12.0
|
|
32
|
+
*/
|
|
33
|
+
calendarsChanged?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* `true` when reminders probably changed. This is a signal only. No reminders are sent.
|
|
36
|
+
* Best effort. It is set only when `includeReminders` is `true`, reminders access is granted and no event or calendar change was found.
|
|
37
|
+
* It is never set on Android.
|
|
38
|
+
*
|
|
39
|
+
* @platform iOS
|
|
40
|
+
* @since 8.12.0
|
|
41
|
+
*/
|
|
42
|
+
remindersChanged?: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* `true` when the lists above are complete for the watched window.
|
|
45
|
+
* `false` when something changed but the change could not be found, or when an occurrence of a repeating event
|
|
46
|
+
* was removed from the window while the series stays (its id is not in `deletedIds`).
|
|
47
|
+
* Then read the data again with `listEventsInRange`.
|
|
48
|
+
*
|
|
49
|
+
* @since 8.12.0
|
|
50
|
+
*/
|
|
51
|
+
precise: boolean;
|
|
52
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"calendar-changed-event.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/calendar-changed-event.ts"],"names":[],"mappings":"","sourcesContent":["import type { CalendarEvent } from './calendar-event';\n\n/**\n * Sent to `calendarChanged` listeners. Only fields that have a change are present.\n *\n * @since 8.12.0\n */\nexport interface CalendarChangedEvent {\n /**\n * Events that are new in the watched window.\n * Not present when `includeEvents` is `false`.\n *\n * @since 8.12.0\n */\n created?: CalendarEvent[];\n /**\n * Events in the watched window that changed. A moved event is listed here, with its new `startDate`.\n * Not present when `includeEvents` is `false`.\n *\n * @since 8.12.0\n */\n updated?: CalendarEvent[];\n /**\n * Ids of events that were deleted or left the watched window.\n *\n * @since 8.12.0\n */\n deletedIds?: string[];\n /**\n * `true` when a calendar was added, removed or edited.\n *\n * @since 8.12.0\n */\n calendarsChanged?: boolean;\n /**\n * `true` when reminders probably changed. This is a signal only. No reminders are sent.\n * Best effort. It is set only when `includeReminders` is `true`, reminders access is granted and no event or calendar change was found.\n * It is never set on Android.\n *\n * @platform iOS\n * @since 8.12.0\n */\n remindersChanged?: boolean;\n /**\n * `true` when the lists above are complete for the watched window.\n * `false` when something changed but the change could not be found, or when an occurrence of a repeating event\n * was removed from the window while the series stays (its id is not in `deletedIds`).\n * Then read the data again with `listEventsInRange`.\n *\n * @since 8.12.0\n */\n precise: boolean;\n}\n"]}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Links that open a web calendar with a new event already filled in.
|
|
3
|
+
*
|
|
4
|
+
* @since 8.12.0
|
|
5
|
+
*/
|
|
6
|
+
export interface CalendarLinks {
|
|
7
|
+
/**
|
|
8
|
+
* Google Calendar.
|
|
9
|
+
* Supports recurrence and guests.
|
|
10
|
+
*
|
|
11
|
+
* @since 8.12.0
|
|
12
|
+
*/
|
|
13
|
+
google: string;
|
|
14
|
+
/**
|
|
15
|
+
* Outlook.com (personal accounts).
|
|
16
|
+
*
|
|
17
|
+
* @since 8.12.0
|
|
18
|
+
*/
|
|
19
|
+
outlook: string;
|
|
20
|
+
/**
|
|
21
|
+
* Outlook on Microsoft 365 (work and school accounts).
|
|
22
|
+
*
|
|
23
|
+
* @since 8.12.0
|
|
24
|
+
*/
|
|
25
|
+
office365: string;
|
|
26
|
+
/**
|
|
27
|
+
* Yahoo Calendar.
|
|
28
|
+
*
|
|
29
|
+
* @since 8.12.0
|
|
30
|
+
*/
|
|
31
|
+
yahoo: string;
|
|
32
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"calendar-links.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/calendar-links.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * Links that open a web calendar with a new event already filled in.\n *\n * @since 8.12.0\n */\nexport interface CalendarLinks {\n /**\n * Google Calendar.\n * Supports recurrence and guests.\n *\n * @since 8.12.0\n */\n google: string;\n /**\n * Outlook.com (personal accounts).\n *\n * @since 8.12.0\n */\n outlook: string;\n /**\n * Outlook on Microsoft 365 (work and school accounts).\n *\n * @since 8.12.0\n */\n office365: string;\n /**\n * Yahoo Calendar.\n *\n * @since 8.12.0\n */\n yahoo: string;\n}\n"]}
|
|
@@ -113,6 +113,15 @@ export interface CreateEventOptions {
|
|
|
113
113
|
* @since 7.3.0
|
|
114
114
|
*/
|
|
115
115
|
recurrence?: EventRecurrenceRule;
|
|
116
|
+
/**
|
|
117
|
+
* Sequence number of the event in the `.ics` file.
|
|
118
|
+
* Raise it each time you re-issue the same `uid`, so calendar apps update the event.
|
|
119
|
+
* Calendar apps ignore a lower number for the same `uid`.
|
|
120
|
+
*
|
|
121
|
+
* @platform Web
|
|
122
|
+
* @since 8.12.0
|
|
123
|
+
*/
|
|
124
|
+
sequence?: number;
|
|
116
125
|
/**
|
|
117
126
|
* @platform Android, iOS, Web
|
|
118
127
|
* @since 0.1.0
|
|
@@ -123,6 +132,15 @@ export interface CreateEventOptions {
|
|
|
123
132
|
* @since 0.4.0
|
|
124
133
|
*/
|
|
125
134
|
title: string;
|
|
135
|
+
/**
|
|
136
|
+
* Stable id of the event in the `.ics` file.
|
|
137
|
+
* When omitted, a new random id is made for each file.
|
|
138
|
+
* Reuse the same `uid` with a higher `sequence` to update or cancel an event that the user imported before.
|
|
139
|
+
*
|
|
140
|
+
* @platform Web
|
|
141
|
+
* @since 8.12.0
|
|
142
|
+
*/
|
|
143
|
+
uid?: string;
|
|
126
144
|
/**
|
|
127
145
|
* @platform iOS, Web
|
|
128
146
|
* @since 0.1.0
|
|
@@ -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, 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 * Start a browser download of the ICS file.\n *\n * @default false\n * @platform Web\n * @since 8.8.0\n */\n autoDownloadIcsFile?: boolean;\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 * On Web, used when `endDate` is omitted; `endDate` wins if both are set.\n *\n * @example P1D (1 day), P3W (3 weeks), P2DT4H30M (2 days, 4 hours, and 30 minutes).\n * @platform Android, Web\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"]}
|
|
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 * Start a browser download of the ICS file.\n *\n * @default false\n * @platform Web\n * @since 8.8.0\n */\n autoDownloadIcsFile?: boolean;\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 * On Web, used when `endDate` is omitted; `endDate` wins if both are set.\n *\n * @example P1D (1 day), P3W (3 weeks), P2DT4H30M (2 days, 4 hours, and 30 minutes).\n * @platform Android, Web\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 * Sequence number of the event in the `.ics` file.\n * Raise it each time you re-issue the same `uid`, so calendar apps update the event.\n * Calendar apps ignore a lower number for the same `uid`.\n *\n * @platform Web\n * @since 8.12.0\n */\n sequence?: number;\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 * Stable id of the event in the `.ics` file.\n * When omitted, a new random id is made for each file.\n * Reuse the same `uid` with a higher `sequence` to update or cancel an event that the user imported before.\n *\n * @platform Web\n * @since 8.12.0\n */\n uid?: string;\n /**\n * @platform iOS, Web\n * @since 0.1.0\n */\n url?: string;\n}\n"]}
|
|
@@ -82,6 +82,15 @@ export interface CreateEventWithPromptOptions {
|
|
|
82
82
|
* @since 8.8.0
|
|
83
83
|
*/
|
|
84
84
|
promptMessage?: string;
|
|
85
|
+
/**
|
|
86
|
+
* Skip the confirm dialog and build the `.ics` file at once.
|
|
87
|
+
* Use it when the browser blocks `window.confirm` (for example in some iframes), or when you show your own prompt.
|
|
88
|
+
*
|
|
89
|
+
* @default false
|
|
90
|
+
* @platform Web
|
|
91
|
+
* @since 8.12.0
|
|
92
|
+
*/
|
|
93
|
+
skipPrompt?: boolean;
|
|
85
94
|
/**
|
|
86
95
|
* Rules for creating a recurring event.
|
|
87
96
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-event-with-prompt-options.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/create-event-with-prompt-options.ts"],"names":[],"mappings":"","sourcesContent":["import type { EventAvailability } from '../enums/event-availability';\n\nimport type { EventRecurrenceRule } from './event-recurrence-rule';\n\n/**\n * @since 7.1.0\n */\nexport interface CreateEventWithPromptOptions {\n /**\n * Alert times in minutes relative to the event start.\n * Use negative numbers for reminders before the start, and positive numbers for reminders after the start.\n * On iOS only 2 alerts are supported.\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 iOS, Web\n * @since 7.1.0\n */\n alerts?: number[];\n /**\n * Start a browser download of the ICS file.\n *\n * @default true\n * @platform Web\n * @since 8.8.0\n */\n autoDownloadIcsFile?: boolean;\n /**\n * @platform Android, iOS, Web\n * @since 7.1.0\n */\n availability?: EventAvailability;\n /**\n * @platform iOS\n * @since 0.1.0\n */\n calendarId?: string;\n /**\n * @platform Android, iOS, Web\n * @since 7.1.0\n */\n description?: 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 'planning-session.ics'\n * @platform Web\n * @since 8.8.0\n */\n icsFileName?: string;\n /**\n * An array of emails to invite.\n *\n * @platform Android\n * @since 7.1.0\n */\n invitees?: 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 * Confirm dialog message.\n * When omitted, the dialog uses the event title and time summary.\n *\n * @platform Web\n * @since 8.8.0\n */\n promptMessage?: 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.1.0\n */\n title?: string;\n /**\n * @platform iOS, Web\n * @since 0.1.0\n */\n url?: string;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"create-event-with-prompt-options.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/create-event-with-prompt-options.ts"],"names":[],"mappings":"","sourcesContent":["import type { EventAvailability } from '../enums/event-availability';\n\nimport type { EventRecurrenceRule } from './event-recurrence-rule';\n\n/**\n * @since 7.1.0\n */\nexport interface CreateEventWithPromptOptions {\n /**\n * Alert times in minutes relative to the event start.\n * Use negative numbers for reminders before the start, and positive numbers for reminders after the start.\n * On iOS only 2 alerts are supported.\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 iOS, Web\n * @since 7.1.0\n */\n alerts?: number[];\n /**\n * Start a browser download of the ICS file.\n *\n * @default true\n * @platform Web\n * @since 8.8.0\n */\n autoDownloadIcsFile?: boolean;\n /**\n * @platform Android, iOS, Web\n * @since 7.1.0\n */\n availability?: EventAvailability;\n /**\n * @platform iOS\n * @since 0.1.0\n */\n calendarId?: string;\n /**\n * @platform Android, iOS, Web\n * @since 7.1.0\n */\n description?: 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 'planning-session.ics'\n * @platform Web\n * @since 8.8.0\n */\n icsFileName?: string;\n /**\n * An array of emails to invite.\n *\n * @platform Android\n * @since 7.1.0\n */\n invitees?: 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 * Confirm dialog message.\n * When omitted, the dialog uses the event title and time summary.\n *\n * @platform Web\n * @since 8.8.0\n */\n promptMessage?: string;\n /**\n * Skip the confirm dialog and build the `.ics` file at once.\n * Use it when the browser blocks `window.confirm` (for example in some iframes), or when you show your own prompt.\n *\n * @default false\n * @platform Web\n * @since 8.12.0\n */\n skipPrompt?: boolean;\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.1.0\n */\n title?: string;\n /**\n * @platform iOS, Web\n * @since 0.1.0\n */\n url?: string;\n}\n"]}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @since 8.12.0
|
|
3
|
+
*/
|
|
4
|
+
export interface CreateIcsFileOptions {
|
|
5
|
+
/**
|
|
6
|
+
* File name. When omitted, the name comes from the first event (`icsFileName` or `title`).
|
|
7
|
+
* `.ics` is appended when missing.
|
|
8
|
+
*
|
|
9
|
+
* @since 8.12.0
|
|
10
|
+
*/
|
|
11
|
+
fileName?: string;
|
|
12
|
+
/**
|
|
13
|
+
* `PUBLISH` adds or updates events. `CANCEL` tells calendar apps to remove events that have the same `uid`.
|
|
14
|
+
* For `CANCEL`, set the same `uid` as in the file you made before.
|
|
15
|
+
*
|
|
16
|
+
* @default 'PUBLISH'
|
|
17
|
+
* @since 8.12.0
|
|
18
|
+
*/
|
|
19
|
+
method?: 'PUBLISH' | 'CANCEL';
|
|
20
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-ics-file-options.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/create-ics-file-options.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * @since 8.12.0\n */\nexport interface CreateIcsFileOptions {\n /**\n * File name. When omitted, the name comes from the first event (`icsFileName` or `title`).\n * `.ics` is appended when missing.\n *\n * @since 8.12.0\n */\n fileName?: string;\n /**\n * `PUBLISH` adds or updates events. `CANCEL` tells calendar apps to remove events that have the same `uid`.\n * For `CANCEL`, set the same `uid` as in the file you made before.\n *\n * @default 'PUBLISH'\n * @since 8.12.0\n */\n method?: 'PUBLISH' | 'CANCEL';\n}\n"]}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { CalendarDayViewProvider } from '../types/calendar-day-view-provider';
|
|
1
2
|
/**
|
|
2
3
|
* @since 7.1.0
|
|
3
4
|
*/
|
|
@@ -11,4 +12,12 @@ export interface OpenCalendarOptions {
|
|
|
11
12
|
* @since 7.1.0
|
|
12
13
|
*/
|
|
13
14
|
date?: number;
|
|
15
|
+
/**
|
|
16
|
+
* Web calendar to open in a new browser tab, at the day of `date`.
|
|
17
|
+
* Without it, `openCalendar` rejects on Web, because browsers cannot open a calendar app.
|
|
18
|
+
*
|
|
19
|
+
* @platform Web
|
|
20
|
+
* @since 8.12.0
|
|
21
|
+
*/
|
|
22
|
+
provider?: CalendarDayViewProvider;
|
|
14
23
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"open-calendar-options.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/open-calendar-options.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * @since 7.1.0\n */\nexport interface OpenCalendarOptions {\n /**\n * The date to open the calendar at, in milliseconds since the epoch.\n *\n * @example Date.now()\n * @default Date.now()\n * @platform Android, iOS\n * @since 7.1.0\n */\n date?: number;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"open-calendar-options.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/open-calendar-options.ts"],"names":[],"mappings":"","sourcesContent":["import type { CalendarDayViewProvider } from '../types/calendar-day-view-provider';\n\n/**\n * @since 7.1.0\n */\nexport interface OpenCalendarOptions {\n /**\n * The date to open the calendar at, in milliseconds since the epoch.\n *\n * @example Date.now()\n * @default Date.now()\n * @platform Android, iOS\n * @since 7.1.0\n */\n date?: number;\n /**\n * Web calendar to open in a new browser tab, at the day of `date`.\n * Without it, `openCalendar` rejects on Web, because browsers cannot open a calendar app.\n *\n * @platform Web\n * @since 8.12.0\n */\n provider?: CalendarDayViewProvider;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"share-ics-file-options.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/share-ics-file-options.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * @since 8.12.0\n */\nexport interface ShareIcsFileOptions {\n /**\n * Text for the share sheet.\n *\n * @since 8.12.0\n */\n text?: string;\n /**\n * Title for the share sheet.\n *\n * @since 8.12.0\n */\n title?: string;\n}\n"]}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @since 8.12.0
|
|
3
|
+
*/
|
|
4
|
+
export interface StartListeningOptions {
|
|
5
|
+
/**
|
|
6
|
+
* The start of the window to watch, in milliseconds since the epoch.
|
|
7
|
+
* Events still in progress at this time are watched.
|
|
8
|
+
*
|
|
9
|
+
* @example 1719792000000
|
|
10
|
+
* @since 8.12.0
|
|
11
|
+
*/
|
|
12
|
+
from: number;
|
|
13
|
+
/**
|
|
14
|
+
* The end of the window to watch, in milliseconds since the epoch.
|
|
15
|
+
* Use a window of a few months. A large window makes each check slower.
|
|
16
|
+
*
|
|
17
|
+
* @example 1722470400000
|
|
18
|
+
* @since 8.12.0
|
|
19
|
+
*/
|
|
20
|
+
to: number;
|
|
21
|
+
/**
|
|
22
|
+
* Ids of the calendars whose events are watched. When omitted or empty, all calendars are watched.
|
|
23
|
+
* Rejects if an id does not match a calendar.
|
|
24
|
+
*
|
|
25
|
+
* @example ["1", "2"]
|
|
26
|
+
* @since 8.12.0
|
|
27
|
+
*/
|
|
28
|
+
calendarIds?: string[];
|
|
29
|
+
/**
|
|
30
|
+
* Whether `created` and `updated` hold the full events. Defaults to `true`.
|
|
31
|
+
* When `false`, those fields are omitted. `precise` is then `false` when events were created or updated.
|
|
32
|
+
*
|
|
33
|
+
* @default true
|
|
34
|
+
* @since 8.12.0
|
|
35
|
+
*/
|
|
36
|
+
includeEvents?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Whether to report reminder changes with `remindersChanged`. Defaults to `false`.
|
|
39
|
+
* Needs reminders access. No reminders are sent, only a signal.
|
|
40
|
+
*
|
|
41
|
+
* @default false
|
|
42
|
+
* @platform iOS
|
|
43
|
+
* @since 8.12.0
|
|
44
|
+
*/
|
|
45
|
+
includeReminders?: boolean;
|
|
46
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"start-listening-options.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/start-listening-options.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * @since 8.12.0\n */\nexport interface StartListeningOptions {\n /**\n * The start of the window to watch, in milliseconds since the epoch.\n * Events still in progress at this time are watched.\n *\n * @example 1719792000000\n * @since 8.12.0\n */\n from: number;\n /**\n * The end of the window to watch, in milliseconds since the epoch.\n * Use a window of a few months. A large window makes each check slower.\n *\n * @example 1722470400000\n * @since 8.12.0\n */\n to: number;\n /**\n * Ids of the calendars whose events are watched. When omitted or empty, all calendars are watched.\n * Rejects if an id does not match a calendar.\n *\n * @example [\"1\", \"2\"]\n * @since 8.12.0\n */\n calendarIds?: string[];\n /**\n * Whether `created` and `updated` hold the full events. Defaults to `true`.\n * When `false`, those fields are omitted. `precise` is then `false` when events were created or updated.\n *\n * @default true\n * @since 8.12.0\n */\n includeEvents?: boolean;\n /**\n * Whether to report reminder changes with `remindersChanged`. Defaults to `false`.\n * Needs reminders access. No reminders are sent, only a signal.\n *\n * @default false\n * @platform iOS\n * @since 8.12.0\n */\n includeReminders?: boolean;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"calendar-day-view-provider.js","sourceRoot":"","sources":["../../../../src/schemas/types/calendar-day-view-provider.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * Web calendar services that `openCalendar` can open at a day view.\n * Yahoo Calendar has no day view link.\n *\n * @since 8.12.0\n */\nexport type CalendarDayViewProvider = 'google' | 'outlook' | 'office365';\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"calendar-link-provider.js","sourceRoot":"","sources":["../../../../src/schemas/types/calendar-link-provider.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * Web calendar services that `getCalendarLinks` can build a link for.\n *\n * @since 8.12.0\n */\nexport type CalendarLinkProvider = 'google' | 'outlook' | 'office365' | 'yahoo';\n"]}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import type { PluginListenerHandle } from '@capacitor/core';
|
|
2
|
+
import type { CalendarChangedEvent } from '../schemas/interfaces/calendar-changed-event';
|
|
3
|
+
import type { StartListeningOptions } from '../schemas/interfaces/start-listening-options';
|
|
4
|
+
export interface CalendarListening {
|
|
5
|
+
/**
|
|
6
|
+
* Starts to watch the calendar for changes in a time window.
|
|
7
|
+
* Call `addListener('calendarChanged', ...)` to receive them.
|
|
8
|
+
* A new call replaces the previous window.
|
|
9
|
+
* The plugin reads the window once as a baseline. It then compares the window after each change.
|
|
10
|
+
* Changes made by this plugin also trigger the listener.
|
|
11
|
+
* Changes made while the app is stopped are not sent.
|
|
12
|
+
* Needs calendar read access.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* const handle = await CapacitorCalendar.addListener('calendarChanged', (change) => {
|
|
16
|
+
* console.log(change.created, change.updated, change.deletedIds);
|
|
17
|
+
* });
|
|
18
|
+
* await CapacitorCalendar.startListening({ from: Date.now(), to: Date.now() + 30 * 24 * 60 * 60 * 1000 });
|
|
19
|
+
*
|
|
20
|
+
* @throws {Error} `From date must be provided.` — when `from` is missing.
|
|
21
|
+
* @throws {Error} `To date must be provided.` — when `to` is missing.
|
|
22
|
+
* @throws {Error} `Calendar not found.` — when a `calendarIds` entry does not match a calendar.
|
|
23
|
+
*
|
|
24
|
+
* @platform Android, iOS
|
|
25
|
+
* @since 8.12.0
|
|
26
|
+
*/
|
|
27
|
+
startListening(options: StartListeningOptions): Promise<void>;
|
|
28
|
+
/**
|
|
29
|
+
* Stops to watch the calendar. Does nothing when no watch is active.
|
|
30
|
+
* Listeners stay registered. Remove them with their handle or `removeAllListeners`.
|
|
31
|
+
*
|
|
32
|
+
* @platform Android, iOS
|
|
33
|
+
* @since 8.12.0
|
|
34
|
+
*/
|
|
35
|
+
stopListening(): Promise<void>;
|
|
36
|
+
/**
|
|
37
|
+
* Adds a listener for calendar changes. Call `startListening` to start the events.
|
|
38
|
+
*
|
|
39
|
+
* @platform Android, iOS
|
|
40
|
+
* @since 8.12.0
|
|
41
|
+
*/
|
|
42
|
+
addListener(eventName: 'calendarChanged', listenerFunc: (event: CalendarChangedEvent) => void): Promise<PluginListenerHandle>;
|
|
43
|
+
/**
|
|
44
|
+
* Removes all listeners of this plugin.
|
|
45
|
+
*
|
|
46
|
+
* @since 8.12.0
|
|
47
|
+
*/
|
|
48
|
+
removeAllListeners(): Promise<void>;
|
|
49
|
+
}
|