@ebarooni/capacitor-calendar 8.10.0 → 8.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +372 -156
- package/android/src/main/java/dev/barooni/capacitor/calendar/CapacitorCalendarPlugin.kt +55 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/PluginError.kt +4 -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 +184 -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/data/EventRecurrenceRule.kt +4 -3
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/GetEventByIdInput.kt +13 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/ListEventsInRangeInput.kt +5 -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/models/results/GetEventByIdResult.kt +15 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/ListEventsInRangeResult.kt +47 -43
- package/android/src/main/java/dev/barooni/capacitor/calendar/utils/ImplementationHelper.kt +123 -69
- package/dist/docs.json +1594 -989
- package/dist/esm/definitions.d.ts +2 -1
- package/dist/esm/definitions.js.map +1 -1
- package/dist/esm/index.d.ts +15 -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/delete-event-options.d.ts +2 -1
- package/dist/esm/schemas/interfaces/delete-event-options.js.map +1 -1
- package/dist/esm/schemas/interfaces/delete-event-with-prompt-options.d.ts +2 -1
- package/dist/esm/schemas/interfaces/delete-event-with-prompt-options.js.map +1 -1
- package/dist/esm/schemas/interfaces/get-event-by-id-options.d.ts +11 -0
- package/dist/esm/schemas/interfaces/get-event-by-id-options.js +2 -0
- package/dist/esm/schemas/interfaces/get-event-by-id-options.js.map +1 -0
- package/dist/esm/schemas/interfaces/get-event-by-id-result.d.ts +13 -0
- package/dist/esm/schemas/interfaces/get-event-by-id-result.js +2 -0
- package/dist/esm/schemas/interfaces/get-event-by-id-result.js.map +1 -0
- package/dist/esm/schemas/interfaces/list-events-in-range-options.d.ts +8 -0
- package/dist/esm/schemas/interfaces/list-events-in-range-options.js.map +1 -1
- package/dist/esm/schemas/interfaces/modify-event-options.d.ts +11 -0
- package/dist/esm/schemas/interfaces/modify-event-options.js.map +1 -1
- package/dist/esm/schemas/interfaces/modify-event-with-prompt-options.d.ts +10 -0
- package/dist/esm/schemas/interfaces/modify-event-with-prompt-options.js.map +1 -1
- 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/sub-definitions/event-operations.d.ts +33 -0
- package/dist/esm/sub-definitions/event-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 +7 -1
- package/dist/esm/web.js +21 -4
- package/dist/esm/web.js.map +1 -1
- package/dist/plugin.cjs.js +295 -72
- package/dist/plugin.cjs.js.map +1 -1
- package/dist/plugin.js +295 -72
- package/dist/plugin.js.map +1 -1
- package/ios/Plugin/CapacitorCalendarPlugin.swift +36 -1
- package/ios/Plugin/Implementation/CalendarChangeObserver.swift +259 -0
- package/ios/Plugin/Implementation/CapacitorCalendar.swift +56 -8
- package/ios/Plugin/Models/Inputs/CreateEventInput.swift +1 -1
- package/ios/Plugin/Models/Inputs/CreateEventWithPromptInput.swift +61 -70
- package/ios/Plugin/Models/Inputs/DeleteEventInput.swift +7 -0
- package/ios/Plugin/Models/Inputs/DeleteEventWithPromptInput.swift +7 -0
- 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/GetEventByIdInput.swift +16 -0
- package/ios/Plugin/Models/Inputs/GetReminderByIdInput.swift +1 -1
- package/ios/Plugin/Models/Inputs/ListEventsInRangeInput.swift +20 -0
- package/ios/Plugin/Models/Inputs/ModifyEventInput.swift +13 -23
- package/ios/Plugin/Models/Inputs/ModifyEventWithPromptInput.swift +10 -5
- package/ios/Plugin/Models/Inputs/ModifyReminderInput.swift +1 -1
- package/ios/Plugin/Models/Inputs/StartListeningInput.swift +26 -0
- package/ios/Plugin/Models/Inputs/UpdateRemindersListInput.swift +1 -1
- package/ios/Plugin/Models/Results/GetEventByIdResult.swift +27 -0
- package/ios/Plugin/Models/Structs/RecurrenceInput.swift +14 -0
- package/ios/Plugin/PluginConfig.swift +3 -0
- package/ios/Plugin/PluginError.swift +32 -3
- package/ios/Plugin/Utils/ImplementationHelper.swift +49 -32
- 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';
|
|
@@ -36,9 +39,12 @@ import type { DeleteRemindersByIdOptions } from './schemas/interfaces/delete-rem
|
|
|
36
39
|
import type { DeleteRemindersByIdResult } from './schemas/interfaces/delete-reminders-by-id-result';
|
|
37
40
|
import type { DeleteRemindersListOptions } from './schemas/interfaces/delete-reminders-list-options';
|
|
38
41
|
import type { EventGuest } from './schemas/interfaces/event-guest';
|
|
42
|
+
import type { EventRecurrenceRule } from './schemas/interfaces/event-recurrence-rule';
|
|
39
43
|
import type { FetchAllCalendarSourcesResult } from './schemas/interfaces/fetch-all-calendar-sources-result';
|
|
40
44
|
import type { GetDefaultCalendarOptions } from './schemas/interfaces/get-default-calendar-options';
|
|
41
45
|
import type { GetDefaultRemindersListResult } from './schemas/interfaces/get-default-reminders-list-result';
|
|
46
|
+
import type { GetEventByIdOptions } from './schemas/interfaces/get-event-by-id-options';
|
|
47
|
+
import type { GetEventByIdResult } from './schemas/interfaces/get-event-by-id-result';
|
|
42
48
|
import type { GetReminderByIdOptions } from './schemas/interfaces/get-reminder-by-id-options';
|
|
43
49
|
import type { GetReminderByIdResult } from './schemas/interfaces/get-reminder-by-id-result';
|
|
44
50
|
import type { GetRemindersFromListsOptions } from './schemas/interfaces/get-reminders-from-lists-options';
|
|
@@ -59,15 +65,22 @@ import type { RemindersList } from './schemas/interfaces/reminders-list';
|
|
|
59
65
|
import type { RequestPermissionOptions } from './schemas/interfaces/request-permission-options';
|
|
60
66
|
import type { SelectCalendarsWithPromptOptions } from './schemas/interfaces/select-calendars-with-prompt-options';
|
|
61
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';
|
|
62
70
|
import type { UpdateRemindersListOptions } from './schemas/interfaces/update-reminders-list-options';
|
|
63
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';
|
|
64
74
|
import type { EventEditAction } from './schemas/types/event-edit-action';
|
|
65
75
|
import type { RecurrenceFrequency } from './schemas/types/recurrence-frequency';
|
|
66
76
|
import type { SystemColorName } from './schemas/types/system-color-name';
|
|
67
77
|
import type { CheckAllPermissionsResult, RequestAllPermissionsResult } from './sub-definitions/calendar-access';
|
|
68
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';
|
|
69
81
|
import { downloadIcsFile } from './web/download-ics-file';
|
|
82
|
+
import { shareIcsFile } from './web/share-ics-file';
|
|
70
83
|
declare const CapacitorCalendar: CapacitorCalendarPlugin;
|
|
71
84
|
export * from './definitions';
|
|
72
|
-
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, FetchAllCalendarSourcesResult, GetDefaultCalendarOptions, GetDefaultRemindersListResult, GetReminderByIdOptions, GetReminderByIdResult, GetRemindersFromListsOptions, GetRemindersFromListsResult, GetRemindersListsResult, ListCalendarsResult, ListEventsInRangeOptions, ListEventsInRangeResult, ModifyCalendarOptions, ModifyEventOptions, ModifyEventWithPromptOptions, ModifyReminderOptions, OpenCalendarOptions, RecurrenceRule, Reminder, ReminderRecurrenceRule, RemindersList, RequestAllPermissionsResult, RequestPermissionOptions, SelectCalendarsWithPromptOptions, SelectCalendarsWithPromptResult, SystemColorName, UpdateRemindersListOptions, UpdateRemindersListResult, };
|
|
73
|
-
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;AAwD5F,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;AA0D9B,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 { 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 { 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 FetchAllCalendarSourcesResult,\n GetDefaultCalendarOptions,\n GetDefaultRemindersListResult,\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"]}
|
|
@@ -25,9 +25,10 @@ export interface DeleteEventOptions {
|
|
|
25
25
|
* The start time of the occurrence to delete, in milliseconds since the epoch.
|
|
26
26
|
* Use `startDate` from `listEventsInRange`.
|
|
27
27
|
* On Android, required for `THIS_EVENT` on recurring events. If omitted with `THIS_AND_FUTURE_EVENTS`, the whole series is deleted.
|
|
28
|
+
* On iOS, optional since 8.11.0. If omitted, the first occurrence of the series is the target.
|
|
28
29
|
*
|
|
29
30
|
* @example 1716153600000
|
|
30
|
-
* @platform Android
|
|
31
|
+
* @platform Android, iOS
|
|
31
32
|
* @since 8.3.0
|
|
32
33
|
*/
|
|
33
34
|
instanceDate?: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-event-options.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/delete-event-options.ts"],"names":[],"mappings":"","sourcesContent":["import type { EventSpan } from '../enums/event-span';\n\n/**\n * @since 7.1.0\n */\nexport interface DeleteEventOptions {\n /**\n * Whether to save the deletion to the event store immediately.\n * Pass `false` to batch multiple changes and commit them together using `CapacitorCalendar.commit()`, which is more efficient than committing each save individually.\n *\n * @example false\n * @default true\n * @platform iOS\n * @since 8.3.0\n */\n commit?: boolean;\n /**\n * The ID of the event to delete.\n *\n * @example '1234'\n * @platform Android, iOS\n * @since 7.1.0\n */\n id: string;\n /**\n * The start time of the occurrence to delete, in milliseconds since the epoch.\n * Use `startDate` from `listEventsInRange`.\n * On Android, required for `THIS_EVENT` on recurring events. If omitted with `THIS_AND_FUTURE_EVENTS`, the whole series is deleted.\n *\n * @example 1716153600000\n * @platform Android\n * @since 8.3.0\n */\n instanceDate?: number;\n /**\n * How much of a recurring series to delete.\n *\n * @example EventSpan.THIS_EVENT\n * @default EventSpan.THIS_EVENT\n * @platform Android, iOS\n * @since 7.1.0\n */\n span?: EventSpan;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"delete-event-options.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/delete-event-options.ts"],"names":[],"mappings":"","sourcesContent":["import type { EventSpan } from '../enums/event-span';\n\n/**\n * @since 7.1.0\n */\nexport interface DeleteEventOptions {\n /**\n * Whether to save the deletion to the event store immediately.\n * Pass `false` to batch multiple changes and commit them together using `CapacitorCalendar.commit()`, which is more efficient than committing each save individually.\n *\n * @example false\n * @default true\n * @platform iOS\n * @since 8.3.0\n */\n commit?: boolean;\n /**\n * The ID of the event to delete.\n *\n * @example '1234'\n * @platform Android, iOS\n * @since 7.1.0\n */\n id: string;\n /**\n * The start time of the occurrence to delete, in milliseconds since the epoch.\n * Use `startDate` from `listEventsInRange`.\n * On Android, required for `THIS_EVENT` on recurring events. If omitted with `THIS_AND_FUTURE_EVENTS`, the whole series is deleted.\n * On iOS, optional since 8.11.0. If omitted, the first occurrence of the series is the target.\n *\n * @example 1716153600000\n * @platform Android, iOS\n * @since 8.3.0\n */\n instanceDate?: number;\n /**\n * How much of a recurring series to delete.\n *\n * @example EventSpan.THIS_EVENT\n * @default EventSpan.THIS_EVENT\n * @platform Android, iOS\n * @since 7.1.0\n */\n span?: EventSpan;\n}\n"]}
|
|
@@ -41,9 +41,10 @@ export interface DeleteEventWithPromptOptions {
|
|
|
41
41
|
* The start time of the occurrence to delete, in milliseconds since the epoch.
|
|
42
42
|
* Use `startDate` from `listEventsInRange`.
|
|
43
43
|
* On Android, required for `THIS_EVENT` on recurring events. If omitted with `THIS_AND_FUTURE_EVENTS`, the whole series is deleted.
|
|
44
|
+
* On iOS, optional since 8.11.0. If omitted, the first occurrence of the series is the target.
|
|
44
45
|
*
|
|
45
46
|
* @example 1716153600000
|
|
46
|
-
* @platform Android
|
|
47
|
+
* @platform Android, iOS
|
|
47
48
|
* @since 8.3.0
|
|
48
49
|
*/
|
|
49
50
|
instanceDate?: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-event-with-prompt-options.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/delete-event-with-prompt-options.ts"],"names":[],"mappings":"","sourcesContent":["import type { EventSpan } from '../enums/event-span';\n\n/**\n * @since 7.1.0\n */\nexport interface DeleteEventWithPromptOptions {\n /**\n * Text to show on the cancel button.\n *\n * @default 'Cancel'\n * @platform Android, iOS\n * @since 7.1.0\n */\n cancelButtonText?: string;\n /**\n * Whether to save the deletion to the event store immediately.\n * Pass `false` to batch multiple changes and commit them together using `CapacitorCalendar.commit()`, which is more efficient than committing each save individually.\n *\n * @example false\n * @default true\n * @platform iOS\n * @since 8.3.0\n */\n commit?: boolean;\n /**\n * Text to show on the confirm button.\n *\n * @default 'Delete'\n * @platform Android, iOS\n * @since 7.1.0\n */\n confirmButtonText?: string;\n /**\n * The ID of the event to delete.\n *\n * @example '1234'\n * @platform Android, iOS\n * @since 7.1.0\n */\n id: string;\n /**\n * The start time of the occurrence to delete, in milliseconds since the epoch.\n * Use `startDate` from `listEventsInRange`.\n * On Android, required for `THIS_EVENT` on recurring events. If omitted with `THIS_AND_FUTURE_EVENTS`, the whole series is deleted.\n *\n * @example 1716153600000\n * @platform Android\n * @since 8.3.0\n */\n instanceDate?: number;\n /**\n * Message of the dialog.\n *\n * @platform Android, iOS\n * @since 7.1.0\n */\n message: string;\n /**\n * How much of a recurring series to delete.\n *\n * @example EventSpan.THIS_EVENT\n * @default EventSpan.THIS_EVENT\n * @platform Android, iOS\n * @since 7.1.0\n */\n span?: EventSpan;\n /**\n * Title of the dialog.\n *\n * @platform Android, iOS\n * @since 7.1.0\n */\n title: string;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"delete-event-with-prompt-options.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/delete-event-with-prompt-options.ts"],"names":[],"mappings":"","sourcesContent":["import type { EventSpan } from '../enums/event-span';\n\n/**\n * @since 7.1.0\n */\nexport interface DeleteEventWithPromptOptions {\n /**\n * Text to show on the cancel button.\n *\n * @default 'Cancel'\n * @platform Android, iOS\n * @since 7.1.0\n */\n cancelButtonText?: string;\n /**\n * Whether to save the deletion to the event store immediately.\n * Pass `false` to batch multiple changes and commit them together using `CapacitorCalendar.commit()`, which is more efficient than committing each save individually.\n *\n * @example false\n * @default true\n * @platform iOS\n * @since 8.3.0\n */\n commit?: boolean;\n /**\n * Text to show on the confirm button.\n *\n * @default 'Delete'\n * @platform Android, iOS\n * @since 7.1.0\n */\n confirmButtonText?: string;\n /**\n * The ID of the event to delete.\n *\n * @example '1234'\n * @platform Android, iOS\n * @since 7.1.0\n */\n id: string;\n /**\n * The start time of the occurrence to delete, in milliseconds since the epoch.\n * Use `startDate` from `listEventsInRange`.\n * On Android, required for `THIS_EVENT` on recurring events. If omitted with `THIS_AND_FUTURE_EVENTS`, the whole series is deleted.\n * On iOS, optional since 8.11.0. If omitted, the first occurrence of the series is the target.\n *\n * @example 1716153600000\n * @platform Android, iOS\n * @since 8.3.0\n */\n instanceDate?: number;\n /**\n * Message of the dialog.\n *\n * @platform Android, iOS\n * @since 7.1.0\n */\n message: string;\n /**\n * How much of a recurring series to delete.\n *\n * @example EventSpan.THIS_EVENT\n * @default EventSpan.THIS_EVENT\n * @platform Android, iOS\n * @since 7.1.0\n */\n span?: EventSpan;\n /**\n * Title of the dialog.\n *\n * @platform Android, iOS\n * @since 7.1.0\n */\n title: string;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-event-by-id-options.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/get-event-by-id-options.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * @since 8.11.0\n */\nexport interface GetEventByIdOptions {\n /**\n * The event id.\n *\n * @since 8.11.0\n */\n id: string;\n}\n"]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { CalendarEvent } from './calendar-event';
|
|
2
|
+
/**
|
|
3
|
+
* @since 8.11.0
|
|
4
|
+
*/
|
|
5
|
+
export interface GetEventByIdResult {
|
|
6
|
+
/**
|
|
7
|
+
* The event for the given id, or `null` when none exists.
|
|
8
|
+
*
|
|
9
|
+
* @platform Android, iOS
|
|
10
|
+
* @since 8.11.0
|
|
11
|
+
*/
|
|
12
|
+
event: CalendarEvent | null;
|
|
13
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-event-by-id-result.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/get-event-by-id-result.ts"],"names":[],"mappings":"","sourcesContent":["import type { CalendarEvent } from './calendar-event';\n\n/**\n * @since 8.11.0\n */\nexport interface GetEventByIdResult {\n /**\n * The event for the given id, or `null` when none exists.\n *\n * @platform Android, iOS\n * @since 8.11.0\n */\n event: CalendarEvent | null;\n}\n"]}
|
|
@@ -19,4 +19,12 @@ export interface ListEventsInRangeOptions {
|
|
|
19
19
|
* @since 7.1.0
|
|
20
20
|
*/
|
|
21
21
|
to: number;
|
|
22
|
+
/**
|
|
23
|
+
* Ids of the calendars to search. When omitted or empty, all calendars are searched.
|
|
24
|
+
* Rejects if an id does not match a calendar.
|
|
25
|
+
*
|
|
26
|
+
* @example ["1", "2"]
|
|
27
|
+
* @since 8.11.0
|
|
28
|
+
*/
|
|
29
|
+
calendarIds?: string[];
|
|
22
30
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-events-in-range-options.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/list-events-in-range-options.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * @since 7.1.0\n */\nexport interface ListEventsInRangeOptions {\n /**\n * The start of the range, in milliseconds since the epoch.\n * Events still in progress at this time are included.\n *\n * @example 1719792000000\n * @since 7.1.0\n */\n from: number;\n /**\n * The end of the range, in milliseconds since the epoch.\n * Events that begin at or after this time are typically excluded; prefer the\n * next day's start when querying a single calendar day.\n *\n * @example 1719878400000\n * @since 7.1.0\n */\n to: number;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"list-events-in-range-options.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/list-events-in-range-options.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * @since 7.1.0\n */\nexport interface ListEventsInRangeOptions {\n /**\n * The start of the range, in milliseconds since the epoch.\n * Events still in progress at this time are included.\n *\n * @example 1719792000000\n * @since 7.1.0\n */\n from: number;\n /**\n * The end of the range, in milliseconds since the epoch.\n * Events that begin at or after this time are typically excluded; prefer the\n * next day's start when querying a single calendar day.\n *\n * @example 1719878400000\n * @since 7.1.0\n */\n to: number;\n /**\n * Ids of the calendars to search. When omitted or empty, all calendars are searched.\n * Rejects if an id does not match a calendar.\n *\n * @example [\"1\", \"2\"]\n * @since 8.11.0\n */\n calendarIds?: string[];\n}\n"]}
|
|
@@ -69,6 +69,17 @@ export interface ModifyEventOptions {
|
|
|
69
69
|
* @since 7.1.0
|
|
70
70
|
*/
|
|
71
71
|
id: string;
|
|
72
|
+
/**
|
|
73
|
+
* The start time of the occurrence to modify, in milliseconds since the epoch.
|
|
74
|
+
* Use `startDate` from `listEventsInRange`.
|
|
75
|
+
* If omitted, the first occurrence of a recurring series is the target.
|
|
76
|
+
* The call rejects when `recurrence` is also set and `span` is `THIS_EVENT`. Use `THIS_AND_FUTURE_EVENTS` to change the rule from this occurrence.
|
|
77
|
+
*
|
|
78
|
+
* @example 1716153600000
|
|
79
|
+
* @platform iOS
|
|
80
|
+
* @since 8.11.0
|
|
81
|
+
*/
|
|
82
|
+
instanceDate?: number;
|
|
72
83
|
/**
|
|
73
84
|
* @platform Android, iOS
|
|
74
85
|
* @since 0.1.0
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"modify-event-options.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/modify-event-options.ts"],"names":[],"mappings":"","sourcesContent":["import type { EventAvailability } from '../enums/event-availability';\nimport type { EventSpan } from '../enums/event-span';\n\nimport type { EventGuest } from './event-guest';\nimport type { EventRecurrenceRule } from './event-recurrence-rule';\n\n/**\n * @since 7.1.0\n */\nexport interface ModifyEventOptions {\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 * @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 * The ID of the event to be modified.\n *\n * @platform Android, iOS\n * @since 7.1.0\n */\n id: string;\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 * Rules for creating a recurring event.\n *\n * @platform Android, iOS\n * @since 7.3.0\n */\n recurrence?: EventRecurrenceRule;\n /**\n * Email of the event organizer.\n *\n * @platform Android\n * @since 7.1.0\n */\n organizer?: string;\n /**\n * The span of modifications.\n *\n * @default EventSpan.THIS_EVENT\n * @platform iOS\n * @see 7.1.0\n */\n span?: EventSpan;\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":"modify-event-options.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/modify-event-options.ts"],"names":[],"mappings":"","sourcesContent":["import type { EventAvailability } from '../enums/event-availability';\nimport type { EventSpan } from '../enums/event-span';\n\nimport type { EventGuest } from './event-guest';\nimport type { EventRecurrenceRule } from './event-recurrence-rule';\n\n/**\n * @since 7.1.0\n */\nexport interface ModifyEventOptions {\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 * @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 * The ID of the event to be modified.\n *\n * @platform Android, iOS\n * @since 7.1.0\n */\n id: string;\n /**\n * The start time of the occurrence to modify, in milliseconds since the epoch.\n * Use `startDate` from `listEventsInRange`.\n * If omitted, the first occurrence of a recurring series is the target.\n * The call rejects when `recurrence` is also set and `span` is `THIS_EVENT`. Use `THIS_AND_FUTURE_EVENTS` to change the rule from this occurrence.\n *\n * @example 1716153600000\n * @platform iOS\n * @since 8.11.0\n */\n instanceDate?: 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 * Rules for creating a recurring event.\n *\n * @platform Android, iOS\n * @since 7.3.0\n */\n recurrence?: EventRecurrenceRule;\n /**\n * Email of the event organizer.\n *\n * @platform Android\n * @since 7.1.0\n */\n organizer?: string;\n /**\n * The span of modifications.\n *\n * @default EventSpan.THIS_EVENT\n * @platform iOS\n * @see 7.1.0\n */\n span?: EventSpan;\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"]}
|
|
@@ -46,6 +46,16 @@ export interface ModifyEventWithPromptOptions {
|
|
|
46
46
|
* @since 7.1.0
|
|
47
47
|
*/
|
|
48
48
|
id: string;
|
|
49
|
+
/**
|
|
50
|
+
* The start time of the occurrence to modify, in milliseconds since the epoch.
|
|
51
|
+
* Use `startDate` from `listEventsInRange`.
|
|
52
|
+
* If omitted, the first occurrence of a recurring series is the target.
|
|
53
|
+
*
|
|
54
|
+
* @example 1716153600000
|
|
55
|
+
* @platform iOS
|
|
56
|
+
* @since 8.11.0
|
|
57
|
+
*/
|
|
58
|
+
instanceDate?: number;
|
|
49
59
|
/**
|
|
50
60
|
* An array of emails to invite.
|
|
51
61
|
*
|