@ebarooni/capacitor-calendar 8.7.1 → 8.9.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 +202 -137
- package/android/src/main/java/dev/barooni/capacitor/calendar/CapacitorCalendarPlugin.kt +72 -25
- package/android/src/main/java/dev/barooni/capacitor/calendar/PluginError.kt +8 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/CreateEventWithPromptResult.kt +1 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/GetDefaultCalendarResult.kt +1 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/ListCalendarsResult.kt +1 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/utils/DeclarationCheck.kt +59 -0
- package/dist/docs.json +463 -81
- package/dist/esm/index.d.ts +7 -2
- package/dist/esm/index.js +2 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/schemas/enums/calendar-permission-scope.d.ts +1 -1
- package/dist/esm/schemas/enums/calendar-permission-scope.js +1 -1
- package/dist/esm/schemas/enums/calendar-permission-scope.js.map +1 -1
- package/dist/esm/schemas/enums/capacitor-calendar-error-code.d.ts +13 -0
- package/dist/esm/schemas/enums/capacitor-calendar-error-code.js +15 -0
- package/dist/esm/schemas/enums/capacitor-calendar-error-code.js.map +1 -0
- package/dist/esm/schemas/interfaces/calendar.d.ts +10 -2
- package/dist/esm/schemas/interfaces/calendar.js.map +1 -1
- package/dist/esm/schemas/interfaces/create-calendar-options.d.ts +6 -4
- package/dist/esm/schemas/interfaces/create-calendar-options.js.map +1 -1
- package/dist/esm/schemas/interfaces/create-event-options.d.ts +10 -1
- package/dist/esm/schemas/interfaces/create-event-options.js.map +1 -1
- package/dist/esm/schemas/interfaces/create-event-result.d.ts +0 -2
- package/dist/esm/schemas/interfaces/create-event-result.js.map +1 -1
- package/dist/esm/schemas/interfaces/create-event-with-prompt-options.d.ts +36 -10
- package/dist/esm/schemas/interfaces/create-event-with-prompt-options.js.map +1 -1
- package/dist/esm/schemas/interfaces/create-event-with-prompt-result.d.ts +10 -1
- package/dist/esm/schemas/interfaces/create-event-with-prompt-result.js.map +1 -1
- package/dist/esm/schemas/interfaces/create-reminder-options.d.ts +2 -0
- package/dist/esm/schemas/interfaces/create-reminder-options.js.map +1 -1
- package/dist/esm/schemas/interfaces/create-reminders-list-options.d.ts +12 -7
- package/dist/esm/schemas/interfaces/create-reminders-list-options.js.map +1 -1
- package/dist/esm/schemas/interfaces/delete-reminder-with-prompt-result.d.ts +12 -0
- package/dist/esm/schemas/interfaces/delete-reminder-with-prompt-result.js +2 -0
- package/dist/esm/schemas/interfaces/delete-reminder-with-prompt-result.js.map +1 -0
- package/dist/esm/schemas/interfaces/event-recurrence-rule.d.ts +9 -9
- package/dist/esm/schemas/interfaces/event-recurrence-rule.js.map +1 -1
- package/dist/esm/schemas/interfaces/get-default-reminders-list-result.d.ts +13 -0
- package/dist/esm/schemas/interfaces/get-default-reminders-list-result.js +2 -0
- package/dist/esm/schemas/interfaces/get-default-reminders-list-result.js.map +1 -0
- package/dist/esm/schemas/interfaces/get-reminders-lists-result.d.ts +13 -0
- package/dist/esm/schemas/interfaces/get-reminders-lists-result.js +2 -0
- package/dist/esm/schemas/interfaces/get-reminders-lists-result.js.map +1 -0
- package/dist/esm/schemas/interfaces/modify-calendar-options.d.ts +6 -2
- package/dist/esm/schemas/interfaces/modify-calendar-options.js.map +1 -1
- package/dist/esm/schemas/interfaces/modify-event-with-prompt-options.d.ts +77 -2
- package/dist/esm/schemas/interfaces/modify-event-with-prompt-options.js.map +1 -1
- package/dist/esm/schemas/interfaces/modify-reminder-options.d.ts +3 -0
- package/dist/esm/schemas/interfaces/modify-reminder-options.js.map +1 -1
- package/dist/esm/schemas/interfaces/reminder.d.ts +2 -0
- package/dist/esm/schemas/interfaces/reminder.js.map +1 -1
- package/dist/esm/schemas/interfaces/reminders-list.d.ts +6 -0
- package/dist/esm/schemas/interfaces/reminders-list.js.map +1 -1
- package/dist/esm/schemas/interfaces/update-reminders-list-options.d.ts +8 -5
- package/dist/esm/schemas/interfaces/update-reminders-list-options.js.map +1 -1
- package/dist/esm/schemas/types/system-color-name.d.ts +6 -0
- package/dist/esm/schemas/types/system-color-name.js +2 -0
- package/dist/esm/schemas/types/system-color-name.js.map +1 -0
- package/dist/esm/sub-definitions/event-operations.d.ts +7 -10
- package/dist/esm/sub-definitions/event-operations.js.map +1 -1
- package/dist/esm/sub-definitions/reminders-access.d.ts +1 -1
- package/dist/esm/sub-definitions/reminders-access.js.map +1 -1
- package/dist/esm/sub-definitions/reminders-operations.d.ts +41 -16
- package/dist/esm/sub-definitions/reminders-operations.js.map +1 -1
- package/dist/esm/web/ics.d.ts +8 -2
- package/dist/esm/web/ics.js +64 -22
- package/dist/esm/web/ics.js.map +1 -1
- package/dist/esm/web.d.ts +8 -15
- package/dist/esm/web.js +100 -5
- package/dist/esm/web.js.map +1 -1
- package/dist/plugin.cjs.js +180 -29
- package/dist/plugin.cjs.js.map +1 -1
- package/dist/plugin.js +180 -29
- package/dist/plugin.js.map +1 -1
- package/ios/Plugin/CapacitorCalendarPlugin.swift +68 -22
- package/ios/Plugin/Models/Inputs/CreateCalendarInput.swift +5 -2
- package/ios/Plugin/Models/Inputs/CreateRemindersListInput.swift +4 -18
- package/ios/Plugin/Models/Inputs/ModifyCalendarInput.swift +2 -2
- package/ios/Plugin/Models/Inputs/UpdateRemindersListInput.swift +4 -18
- package/ios/Plugin/Models/Results/CreateEventWithPromptResult.swift +1 -0
- package/ios/Plugin/PluginError.swift +13 -0
- package/ios/Plugin/Utils/DeclarationCheck.swift +63 -0
- package/ios/Plugin/Utils/ImplementationHelper.swift +44 -0
- package/ios/Plugin/Utils/UIColorFromHexExtension.swift +5 -0
- package/package.json +1 -1
package/dist/esm/index.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ import { CalendarChooserDisplayStyle } from './schemas/enums/calendar-chooser-di
|
|
|
6
6
|
import { CalendarPermissionScope } from './schemas/enums/calendar-permission-scope';
|
|
7
7
|
import { CalendarSourceType } from './schemas/enums/calendar-source-type';
|
|
8
8
|
import { CalendarType } from './schemas/enums/calendar-type';
|
|
9
|
+
import { CapacitorCalendarErrorCode } from './schemas/enums/capacitor-calendar-error-code';
|
|
9
10
|
import { EventAvailability } from './schemas/enums/event-availability';
|
|
10
11
|
import { EventSpan } from './schemas/enums/event-span';
|
|
11
12
|
import { EventStatus } from './schemas/enums/event-status';
|
|
@@ -30,16 +31,19 @@ import type { DeleteEventWithPromptOptions } from './schemas/interfaces/delete-e
|
|
|
30
31
|
import type { DeleteEventsByIdOptions } from './schemas/interfaces/delete-events-by-id-options';
|
|
31
32
|
import type { DeleteReminderOptions } from './schemas/interfaces/delete-reminder-options';
|
|
32
33
|
import type { DeleteReminderWithPromptOptions } from './schemas/interfaces/delete-reminder-with-prompt-options';
|
|
34
|
+
import type { DeleteReminderWithPromptResult } from './schemas/interfaces/delete-reminder-with-prompt-result';
|
|
33
35
|
import type { DeleteRemindersByIdOptions } from './schemas/interfaces/delete-reminders-by-id-options';
|
|
34
36
|
import type { DeleteRemindersByIdResult } from './schemas/interfaces/delete-reminders-by-id-result';
|
|
35
37
|
import type { DeleteRemindersListOptions } from './schemas/interfaces/delete-reminders-list-options';
|
|
36
38
|
import type { EventGuest } from './schemas/interfaces/event-guest';
|
|
37
39
|
import type { FetchAllCalendarSourcesResult } from './schemas/interfaces/fetch-all-calendar-sources-result';
|
|
38
40
|
import type { GetDefaultCalendarOptions } from './schemas/interfaces/get-default-calendar-options';
|
|
41
|
+
import type { GetDefaultRemindersListResult } from './schemas/interfaces/get-default-reminders-list-result';
|
|
39
42
|
import type { GetReminderByIdOptions } from './schemas/interfaces/get-reminder-by-id-options';
|
|
40
43
|
import type { GetReminderByIdResult } from './schemas/interfaces/get-reminder-by-id-result';
|
|
41
44
|
import type { GetRemindersFromListsOptions } from './schemas/interfaces/get-reminders-from-lists-options';
|
|
42
45
|
import type { GetRemindersFromListsResult } from './schemas/interfaces/get-reminders-from-lists-result';
|
|
46
|
+
import type { GetRemindersListsResult } from './schemas/interfaces/get-reminders-lists-result';
|
|
43
47
|
import type { ListCalendarsResult } from './schemas/interfaces/list-calendars-result';
|
|
44
48
|
import type { ListEventsInRangeOptions } from './schemas/interfaces/list-events-in-range-options';
|
|
45
49
|
import type { ListEventsInRangeResult } from './schemas/interfaces/list-events-in-range-result';
|
|
@@ -59,10 +63,11 @@ import type { UpdateRemindersListOptions } from './schemas/interfaces/update-rem
|
|
|
59
63
|
import type { UpdateRemindersListResult } from './schemas/interfaces/update-reminders-list-result';
|
|
60
64
|
import type { EventEditAction } from './schemas/types/event-edit-action';
|
|
61
65
|
import type { RecurrenceFrequency } from './schemas/types/recurrence-frequency';
|
|
66
|
+
import type { SystemColorName } from './schemas/types/system-color-name';
|
|
62
67
|
import type { CheckAllPermissionsResult, RequestAllPermissionsResult } from './sub-definitions/calendar-access';
|
|
63
68
|
import type { DeleteEventsByIdResult } from './sub-definitions/event-operations';
|
|
64
69
|
import { downloadIcsFile } from './web/download-ics-file';
|
|
65
70
|
declare const CapacitorCalendar: CapacitorCalendarPlugin;
|
|
66
71
|
export * from './definitions';
|
|
67
|
-
export type { Calendar, CalendarEvent, CalendarSource, CheckAllPermissionsResult, CheckPermissionOptions, CreateCalendarOptions, CreateCalendarResult, CreateEventOptions, CreateEventResult, CreateEventWithPromptOptions, CreateEventWithPromptResult, CreateReminderOptions, CreateReminderResult, CreateRemindersListOptions, CreateRemindersListResult, DeleteCalendarOptions, DeleteEventOptions, DeleteEventWithPromptOptions, DeleteEventsByIdOptions, DeleteEventsByIdResult, DeleteReminderOptions, DeleteReminderWithPromptOptions, DeleteRemindersByIdOptions, DeleteRemindersByIdResult, DeleteRemindersListOptions, EventEditAction, EventGuest, FetchAllCalendarSourcesResult, GetDefaultCalendarOptions, GetReminderByIdOptions, GetReminderByIdResult, GetRemindersFromListsOptions, GetRemindersFromListsResult, ListCalendarsResult, ListEventsInRangeOptions, ListEventsInRangeResult, ModifyCalendarOptions, ModifyEventOptions, ModifyEventWithPromptOptions, ModifyReminderOptions, OpenCalendarOptions, RecurrenceRule, Reminder, ReminderRecurrenceRule, RemindersList, RequestAllPermissionsResult, RequestPermissionOptions, SelectCalendarsWithPromptOptions, SelectCalendarsWithPromptResult, UpdateRemindersListOptions, UpdateRemindersListResult, };
|
|
68
|
-
export { CalendarPermissionScope, EventAvailability, EventSpan, CalendarChooserDisplayStyle, CalendarType, CalendarSourceType, ReminderRecurrenceFrequency, RecurrenceFrequency, EventStatus, AttendeeRole, AttendeeType, AttendeeStatus, CapacitorCalendar, downloadIcsFile, };
|
|
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, };
|
package/dist/esm/index.js
CHANGED
|
@@ -6,6 +6,7 @@ import { CalendarChooserDisplayStyle } from './schemas/enums/calendar-chooser-di
|
|
|
6
6
|
import { CalendarPermissionScope } from './schemas/enums/calendar-permission-scope';
|
|
7
7
|
import { CalendarSourceType } from './schemas/enums/calendar-source-type';
|
|
8
8
|
import { CalendarType } from './schemas/enums/calendar-type';
|
|
9
|
+
import { CapacitorCalendarErrorCode } from './schemas/enums/capacitor-calendar-error-code';
|
|
9
10
|
import { EventAvailability } from './schemas/enums/event-availability';
|
|
10
11
|
import { EventSpan } from './schemas/enums/event-span';
|
|
11
12
|
import { EventStatus } from './schemas/enums/event-status';
|
|
@@ -15,5 +16,5 @@ const CapacitorCalendar = registerPlugin('CapacitorCalendar', {
|
|
|
15
16
|
web: () => import('./web').then((m) => new m.CapacitorCalendarWeb()),
|
|
16
17
|
});
|
|
17
18
|
export * from './definitions';
|
|
18
|
-
export { CalendarPermissionScope, EventAvailability, EventSpan, CalendarChooserDisplayStyle, CalendarType, CalendarSourceType, ReminderRecurrenceFrequency, EventStatus, AttendeeRole, AttendeeType, AttendeeStatus, CapacitorCalendar, downloadIcsFile, };
|
|
19
|
+
export { CalendarPermissionScope, CapacitorCalendarErrorCode, EventAvailability, EventSpan, CalendarChooserDisplayStyle, CalendarType, CalendarSourceType, ReminderRecurrenceFrequency, EventStatus, AttendeeRole, AttendeeType, AttendeeStatus, CapacitorCalendar, downloadIcsFile, };
|
|
19
20
|
//# sourceMappingURL=index.js.map
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAGjD,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACjE,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,2BAA2B,EAAE,MAAM,gDAAgD,CAAC;AAC7F,OAAO,EAAE,uBAAuB,EAAE,MAAM,2CAA2C,CAAC;AACpF,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAC1E,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AACvE,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,EAAE,2BAA2B,EAAE,MAAM,+CAA+C,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAGjD,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACjE,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,2BAA2B,EAAE,MAAM,gDAAgD,CAAC;AAC7F,OAAO,EAAE,uBAAuB,EAAE,MAAM,2CAA2C,CAAC;AACpF,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAC1E,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,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"]}
|
|
@@ -29,7 +29,7 @@ export declare enum CalendarPermissionScope {
|
|
|
29
29
|
* | Platform | Required |
|
|
30
30
|
* |-----------|---------------------|
|
|
31
31
|
* | iOS 17+ | `NSRemindersFullAccessUsageDescription` |
|
|
32
|
-
* | iOS
|
|
32
|
+
* | iOS 13-16 | `NSRemindersUsageDescription` |
|
|
33
33
|
* @platform iOS
|
|
34
34
|
* @since 7.1.0
|
|
35
35
|
*/
|
|
@@ -30,7 +30,7 @@ export var CalendarPermissionScope;
|
|
|
30
30
|
* | Platform | Required |
|
|
31
31
|
* |-----------|---------------------|
|
|
32
32
|
* | iOS 17+ | `NSRemindersFullAccessUsageDescription` |
|
|
33
|
-
* | iOS
|
|
33
|
+
* | iOS 13-16 | `NSRemindersUsageDescription` |
|
|
34
34
|
* @platform iOS
|
|
35
35
|
* @since 7.1.0
|
|
36
36
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"calendar-permission-scope.js","sourceRoot":"","sources":["../../../../src/schemas/enums/calendar-permission-scope.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,CAAN,IAAY,uBA8DX;AA9DD,WAAY,uBAAuB;IACjC;;;;;;;;;;;;OAYG;IACH,yDAA8B,CAAA;IAC9B;;;;;;;;;;;;;;OAcG;IACH,2DAAgC,CAAA;IAChC;;;;;;;;;;;;OAYG;IACH,2DAAgC,CAAA;IAChC;;;;;;;;;;;;;;;OAeG;IACH,6DAAkC,CAAA;AACpC,CAAC,EA9DW,uBAAuB,KAAvB,uBAAuB,QA8DlC","sourcesContent":["/**\n * Enum defining available calendar and reminders related permissions.\n *\n * @since 7.1.0\n */\nexport enum CalendarPermissionScope {\n /**\n * Permission required for reading calendar events.\n *\n * @permissions\n * | Platform | Required |\n * |-----------|---------------------|\n * | iOS 17+ | `NSCalendarsFullAccessUsageDescription` |\n * | iOS 13-16 | `NSCalendarsUsageDescription` |\n * | Android | `android.permission.READ_CALENDAR` |\n *\n * @platform Android, iOS\n * @since 7.1.0\n */\n READ_CALENDAR = 'readCalendar',\n /**\n * Permission required for reading reminders.\n *\n * On Android, reminders are not supported. `checkPermission` and\n * `checkAllPermissions` return `\"prompt\"` for this scope.\n * `requestPermission` rejects with `Invalid scope.`.\n *\n * @permissions\n * | Platform | Required |\n * |-----------|---------------------|\n * | iOS 17+ | `NSRemindersFullAccessUsageDescription` |\n * | iOS
|
|
1
|
+
{"version":3,"file":"calendar-permission-scope.js","sourceRoot":"","sources":["../../../../src/schemas/enums/calendar-permission-scope.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,CAAN,IAAY,uBA8DX;AA9DD,WAAY,uBAAuB;IACjC;;;;;;;;;;;;OAYG;IACH,yDAA8B,CAAA;IAC9B;;;;;;;;;;;;;;OAcG;IACH,2DAAgC,CAAA;IAChC;;;;;;;;;;;;OAYG;IACH,2DAAgC,CAAA;IAChC;;;;;;;;;;;;;;;OAeG;IACH,6DAAkC,CAAA;AACpC,CAAC,EA9DW,uBAAuB,KAAvB,uBAAuB,QA8DlC","sourcesContent":["/**\n * Enum defining available calendar and reminders related permissions.\n *\n * @since 7.1.0\n */\nexport enum CalendarPermissionScope {\n /**\n * Permission required for reading calendar events.\n *\n * @permissions\n * | Platform | Required |\n * |-----------|---------------------|\n * | iOS 17+ | `NSCalendarsFullAccessUsageDescription` |\n * | iOS 13-16 | `NSCalendarsUsageDescription` |\n * | Android | `android.permission.READ_CALENDAR` |\n *\n * @platform Android, iOS\n * @since 7.1.0\n */\n READ_CALENDAR = 'readCalendar',\n /**\n * Permission required for reading reminders.\n *\n * On Android, reminders are not supported. `checkPermission` and\n * `checkAllPermissions` return `\"prompt\"` for this scope.\n * `requestPermission` rejects with `Invalid scope.`.\n *\n * @permissions\n * | Platform | Required |\n * |-----------|---------------------|\n * | iOS 17+ | `NSRemindersFullAccessUsageDescription` |\n * | iOS 13-16 | `NSRemindersUsageDescription` |\n * @platform iOS\n * @since 7.1.0\n */\n READ_REMINDERS = 'readReminders',\n /**\n * Permission required for adding or modifying calendar events.\n *\n * @permissions\n * | Platform | Required |\n * |-----------|---------------------|\n * | iOS 17+ | `NSCalendarsWriteOnlyAccessUsageDescription` |\n * | iOS 13-16 | `NSCalendarsUsageDescription` |\n * | Android | `android.permission.WRITE_CALENDAR` |\n *\n * @platform Android, iOS\n * @since 7.1.0\n */\n WRITE_CALENDAR = 'writeCalendar',\n /**\n * Permission required for adding or modifying reminders.\n *\n * On Android, reminders are not supported. `checkPermission` and\n * `checkAllPermissions` return `\"prompt\"` for this scope.\n * `requestPermission` rejects with `Invalid scope.`.\n *\n * @permissions\n * | Platform | Required |\n * |-----------|---------------------|\n * | iOS 17+ | `NSRemindersFullAccessUsageDescription` |\n * | iOS 13-16 | `NSRemindersUsageDescription` |\n *\n * @platform iOS\n * @since 7.1.0\n */\n WRITE_REMINDERS = 'writeReminders',\n}\n"]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Stable reject codes for CapacitorCalendar. Compare with `error.code`.
|
|
3
|
+
*
|
|
4
|
+
* @since 8.9.0
|
|
5
|
+
*/
|
|
6
|
+
export declare enum CapacitorCalendarErrorCode {
|
|
7
|
+
/**
|
|
8
|
+
* Missing Info.plist usage description or AndroidManifest permission declaration.
|
|
9
|
+
*
|
|
10
|
+
* @since 8.9.0
|
|
11
|
+
*/
|
|
12
|
+
MissingDeclaration = "EB-CLDR-0100"
|
|
13
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Stable reject codes for CapacitorCalendar. Compare with `error.code`.
|
|
3
|
+
*
|
|
4
|
+
* @since 8.9.0
|
|
5
|
+
*/
|
|
6
|
+
export var CapacitorCalendarErrorCode;
|
|
7
|
+
(function (CapacitorCalendarErrorCode) {
|
|
8
|
+
/**
|
|
9
|
+
* Missing Info.plist usage description or AndroidManifest permission declaration.
|
|
10
|
+
*
|
|
11
|
+
* @since 8.9.0
|
|
12
|
+
*/
|
|
13
|
+
CapacitorCalendarErrorCode["MissingDeclaration"] = "EB-CLDR-0100";
|
|
14
|
+
})(CapacitorCalendarErrorCode || (CapacitorCalendarErrorCode = {}));
|
|
15
|
+
//# sourceMappingURL=capacitor-calendar-error-code.js.map
|
|
@@ -0,0 +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,0BAOX;AAPD,WAAY,0BAA0B;IACpC;;;;OAIG;IACH,iEAAmC,CAAA;AACrC,CAAC,EAPW,0BAA0B,KAA1B,0BAA0B,QAOrC","sourcesContent":["/**\n * Stable reject codes for CapacitorCalendar. Compare with `error.code`.\n *\n * @since 8.9.0\n */\nexport enum CapacitorCalendarErrorCode {\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,4 +1,5 @@
|
|
|
1
1
|
import type { CalendarType } from '../enums/calendar-type';
|
|
2
|
+
import type { SystemColorName } from '../types/system-color-name';
|
|
2
3
|
import type { CalendarSource } from './calendar-source';
|
|
3
4
|
/**
|
|
4
5
|
* @since 7.1.0
|
|
@@ -25,10 +26,9 @@ export interface Calendar {
|
|
|
25
26
|
*/
|
|
26
27
|
internalTitle: string | null;
|
|
27
28
|
/**
|
|
28
|
-
*
|
|
29
|
+
* Hex color string, or null when none is available.
|
|
29
30
|
*
|
|
30
31
|
* Format: `#RRGGBB` when opaque; `#RRGGBBAA` when alpha is below fully opaque.
|
|
31
|
-
* May be `null` when the platform does not provide a color.
|
|
32
32
|
*
|
|
33
33
|
* @platform Android, iOS
|
|
34
34
|
* @example #0000FF
|
|
@@ -36,6 +36,14 @@ export interface Calendar {
|
|
|
36
36
|
* @since 7.1.0
|
|
37
37
|
*/
|
|
38
38
|
color: string | null;
|
|
39
|
+
/**
|
|
40
|
+
* Named color if the stored color matches one of the system colors;
|
|
41
|
+
* otherwise null. May be null in dark mode or for custom hex. Always null on Android.
|
|
42
|
+
*
|
|
43
|
+
* @platform Android, iOS
|
|
44
|
+
* @since 8.8.0
|
|
45
|
+
*/
|
|
46
|
+
colorName?: SystemColorName | null;
|
|
39
47
|
/**
|
|
40
48
|
* @platform iOS
|
|
41
49
|
* @since 7.1.0
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"calendar.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/calendar.ts"],"names":[],"mappings":"","sourcesContent":["import type { CalendarType } from '../enums/calendar-type';\n\nimport type { CalendarSource } from './calendar-source';\n\n/**\n * @since 7.1.0\n */\nexport interface Calendar {\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n id: string;\n /**\n * Display title of the calendar.\n * May be `null` when the platform does not provide a title.\n *\n * @platform Android, iOS\n * @since 7.1.0\n */\n title: string | null;\n /**\n * Internal name of the calendar (`CalendarContract.Calendars.NAME`).\n *\n * @platform Android\n * @since 7.1.0\n */\n internalTitle: string | null;\n /**\n *
|
|
1
|
+
{"version":3,"file":"calendar.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/calendar.ts"],"names":[],"mappings":"","sourcesContent":["import type { CalendarType } from '../enums/calendar-type';\nimport type { SystemColorName } from '../types/system-color-name';\n\nimport type { CalendarSource } from './calendar-source';\n\n/**\n * @since 7.1.0\n */\nexport interface Calendar {\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n id: string;\n /**\n * Display title of the calendar.\n * May be `null` when the platform does not provide a title.\n *\n * @platform Android, iOS\n * @since 7.1.0\n */\n title: string | null;\n /**\n * Internal name of the calendar (`CalendarContract.Calendars.NAME`).\n *\n * @platform Android\n * @since 7.1.0\n */\n internalTitle: string | null;\n /**\n * Hex color string, or null when none is available.\n *\n * Format: `#RRGGBB` when opaque; `#RRGGBBAA` when alpha is below fully opaque.\n *\n * @platform Android, iOS\n * @example #0000FF\n * @example #0000FF80\n * @since 7.1.0\n */\n color: string | null;\n /**\n * Named color if the stored color matches one of the system colors;\n * otherwise null. May be null in dark mode or for custom hex. Always null on Android.\n *\n * @platform Android, iOS\n * @since 8.8.0\n */\n colorName?: SystemColorName | null;\n /**\n * @platform iOS\n * @since 7.1.0\n */\n isImmutable: boolean | null;\n /**\n * @platform iOS\n * @since 7.1.0\n */\n allowsContentModifications: boolean | null;\n /**\n * @platform iOS\n * @since 7.1.0\n */\n type: CalendarType | null;\n /**\n * @platform iOS\n * @since 7.1.0\n */\n isSubscribed: boolean | null;\n /**\n * @platform iOS\n * @since 7.1.0\n */\n source: CalendarSource | null;\n /**\n * Indicates if the events from this calendar should be shown.\n *\n * @platform Android\n * @since 7.1.0\n */\n visible: boolean | null;\n /**\n * The account under which the calendar is registered.\n *\n * @platform Android\n * @since 7.1.0\n */\n accountName: string | null;\n /**\n * The owner of the calendar.\n *\n * @platform Android\n * @since 7.1.0\n */\n ownerAccount: string | null;\n /**\n * Maximum number of reminders allowed per event.\n *\n * @platform Android\n * @since 7.1.0\n */\n maxReminders: number | null;\n /**\n * @platform Android\n * @since 7.1.0\n */\n location: string | null;\n}\n"]}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { SystemColorName } from '../types/system-color-name';
|
|
1
2
|
/**
|
|
2
3
|
* @since 5.2.0
|
|
3
4
|
*/
|
|
@@ -8,16 +9,17 @@ export interface CreateCalendarOptions {
|
|
|
8
9
|
*/
|
|
9
10
|
title: string;
|
|
10
11
|
/**
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
12
|
+
* Named color (`blue`, …) or hex `#RRGGBB` / `#RRGGBBAA`.
|
|
13
|
+
* When omitted, Android and iOS use `#007AFF`.
|
|
14
|
+
* On Android, only hex is accepted; named colors reject with `Invalid color format.`
|
|
14
15
|
*
|
|
15
16
|
* @platform Android, iOS
|
|
17
|
+
* @example 'indigo'
|
|
16
18
|
* @example #007AFF
|
|
17
19
|
* @default #007AFF
|
|
18
20
|
* @since 5.2.0
|
|
19
21
|
*/
|
|
20
|
-
color?: string
|
|
22
|
+
color?: SystemColorName | `#${string}`;
|
|
21
23
|
/**
|
|
22
24
|
* The EventKit source (account) where the calendar should be created.
|
|
23
25
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-calendar-options.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/create-calendar-options.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * @since 5.2.0\n */\nexport interface CreateCalendarOptions {\n /**\n * @platform Android, iOS\n * @since 5.2.0\n */\n title: string;\n /**\n *
|
|
1
|
+
{"version":3,"file":"create-calendar-options.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/create-calendar-options.ts"],"names":[],"mappings":"","sourcesContent":["import type { SystemColorName } from '../types/system-color-name';\n\n/**\n * @since 5.2.0\n */\nexport interface CreateCalendarOptions {\n /**\n * @platform Android, iOS\n * @since 5.2.0\n */\n title: string;\n /**\n * Named color (`blue`, …) or hex `#RRGGBB` / `#RRGGBBAA`.\n * When omitted, Android and iOS use `#007AFF`.\n * On Android, only hex is accepted; named colors reject with `Invalid color format.`\n *\n * @platform Android, iOS\n * @example 'indigo'\n * @example #007AFF\n * @default #007AFF\n * @since 5.2.0\n */\n color?: SystemColorName | `#${string}`;\n /**\n * The EventKit source (account) where the calendar should be created.\n *\n * If provided, it must match an existing source from `fetchAllCalendarSources()`.\n * If omitted, iCloud is used when available, otherwise the local source.\n *\n * @platform iOS\n * @since 5.2.0\n */\n sourceId?: string;\n /**\n * The account under which the calendar is registered.\n * Required on Android. Typically an email address.\n *\n * @example plugin@example.com\n * @platform Android\n * @since 7.1.0\n */\n accountName?: string;\n /**\n * The owner of the calendar.\n * Required on Android. Typically an email address.\n *\n * @example plugin@example.com\n * @platform Android\n * @since 7.1.0\n */\n ownerAccount?: string;\n}\n"]}
|
|
@@ -26,6 +26,14 @@ export interface CreateEventOptions {
|
|
|
26
26
|
* @since 7.1.0
|
|
27
27
|
*/
|
|
28
28
|
attendees?: EventGuest[];
|
|
29
|
+
/**
|
|
30
|
+
* Start a browser download of the ICS file.
|
|
31
|
+
*
|
|
32
|
+
* @default false
|
|
33
|
+
* @platform Web
|
|
34
|
+
* @since 8.8.0
|
|
35
|
+
*/
|
|
36
|
+
autoDownloadIcsFile?: boolean;
|
|
29
37
|
/**
|
|
30
38
|
* @platform Android, iOS, Web
|
|
31
39
|
* @since 7.1.0
|
|
@@ -58,9 +66,10 @@ export interface CreateEventOptions {
|
|
|
58
66
|
description?: string;
|
|
59
67
|
/**
|
|
60
68
|
* Duration of the event in RFC2445 format.
|
|
69
|
+
* On Web, used when `endDate` is omitted; `endDate` wins if both are set.
|
|
61
70
|
*
|
|
62
71
|
* @example P1D (1 day), P3W (3 weeks), P2DT4H30M (2 days, 4 hours, and 30 minutes).
|
|
63
|
-
* @platform Android
|
|
72
|
+
* @platform Android, Web
|
|
64
73
|
* @see {@link https://datatracker.ietf.org/doc/html/rfc2445}
|
|
65
74
|
* @since 7.1.0
|
|
66
75
|
*/
|
|
@@ -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 * @platform Android, iOS, Web\n * @since 7.1.0\n */\n availability?: EventAvailability;\n /**\n * @platform Android, iOS\n * @since 0.1.0\n */\n calendarId?: string;\n /**\n * @example #6750A4\n * @platform Android\n * @since 7.1.0\n */\n color?: string;\n /**\n * Whether to save immediately (`true`) or batch changes for later (`false`).\n *\n * @default true\n * @platform iOS\n * @see {@link CalendarOperations#commit}\n * @since 7.1.0\n */\n commit?: boolean;\n /**\n * @platform Android, iOS, Web\n * @since 7.1.0\n */\n description?: string;\n /**\n * Duration of the event in RFC2445 format.\n *\n * @example P1D (1 day), P3W (3 weeks), P2DT4H30M (2 days, 4 hours, and 30 minutes).\n * @platform Android\n * @see {@link https://datatracker.ietf.org/doc/html/rfc2445}\n * @since 7.1.0\n */\n duration?: string;\n /**\n * @platform Android, iOS, Web\n * @since 0.1.0\n */\n endDate?: number;\n /**\n * Download filename for the `.ics` file.\n * When omitted, a name is derived from `title` (fallback `event.ics`).\n * If the value has no `.ics` extension, `.ics` is appended.\n *\n * @example 'team-standup.ics'\n * @platform Web\n * @since 8.5.0\n */\n icsFileName?: string;\n /**\n * @platform Android, iOS, Web\n * @since 0.1.0\n */\n isAllDay?: boolean;\n /**\n * @platform Android, iOS, Web\n * @since 0.1.0\n */\n location?: string;\n /**\n * Email of the event organizer.\n *\n * @platform Android, Web\n * @since 7.1.0\n */\n organizer?: string;\n /**\n * Rules for creating a recurring event.\n *\n * @platform Android, iOS, Web\n * @since 7.3.0\n */\n recurrence?: EventRecurrenceRule;\n /**\n * @platform Android, iOS, Web\n * @since 0.1.0\n */\n startDate?: number;\n /**\n * @platform Android, iOS, Web\n * @since 0.4.0\n */\n title: string;\n /**\n * @platform iOS, Web\n * @since 0.1.0\n */\n url?: string;\n}\n"]}
|
|
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"]}
|
|
@@ -5,8 +5,6 @@ export interface CreateEventResult {
|
|
|
5
5
|
/**
|
|
6
6
|
* An `.ics` file (`text/calendar`) with one `VEVENT`.
|
|
7
7
|
* Always `null` on Android and iOS.
|
|
8
|
-
* On Web, the plugin does not write to a calendar store or start a download;
|
|
9
|
-
* use `downloadIcsFile(...)` or pass the `File` to another API.
|
|
10
8
|
*
|
|
11
9
|
* @platform Web
|
|
12
10
|
* @since 8.5.0
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-event-result.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/create-event-result.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * @since 8.5.0\n */\nexport interface CreateEventResult {\n /**\n * An `.ics` file (`text/calendar`) with one `VEVENT`.\n * Always `null` on Android and iOS.\n
|
|
1
|
+
{"version":3,"file":"create-event-result.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/create-event-result.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * @since 8.5.0\n */\nexport interface CreateEventResult {\n /**\n * An `.ics` file (`text/calendar`) with one `VEVENT`.\n * Always `null` on Android and iOS.\n *\n * @platform Web\n * @since 8.5.0\n */\n ics: File | null;\n /**\n * The identifier of the created event.\n * Always `null` on Web.\n * Present on Android and iOS after a successful create.\n *\n * @platform Android, iOS\n * @since 0.4.0\n */\n id: string | null;\n}\n"]}
|
|
@@ -15,12 +15,20 @@ export interface CreateEventWithPromptOptions {
|
|
|
15
15
|
* // 30 -> 30 minutes after
|
|
16
16
|
* [-1440, -60, 30]
|
|
17
17
|
*
|
|
18
|
-
* @platform iOS
|
|
18
|
+
* @platform iOS, Web
|
|
19
19
|
* @since 7.1.0
|
|
20
20
|
*/
|
|
21
21
|
alerts?: number[];
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* Start a browser download of the ICS file.
|
|
24
|
+
*
|
|
25
|
+
* @default true
|
|
26
|
+
* @platform Web
|
|
27
|
+
* @since 8.8.0
|
|
28
|
+
*/
|
|
29
|
+
autoDownloadIcsFile?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* @platform Android, iOS, Web
|
|
24
32
|
* @since 7.1.0
|
|
25
33
|
*/
|
|
26
34
|
availability?: EventAvailability;
|
|
@@ -30,15 +38,25 @@ export interface CreateEventWithPromptOptions {
|
|
|
30
38
|
*/
|
|
31
39
|
calendarId?: string;
|
|
32
40
|
/**
|
|
33
|
-
* @platform Android, iOS
|
|
41
|
+
* @platform Android, iOS, Web
|
|
34
42
|
* @since 7.1.0
|
|
35
43
|
*/
|
|
36
44
|
description?: string;
|
|
37
45
|
/**
|
|
38
|
-
* @platform Android, iOS
|
|
46
|
+
* @platform Android, iOS, Web
|
|
39
47
|
* @since 0.1.0
|
|
40
48
|
*/
|
|
41
49
|
endDate?: number;
|
|
50
|
+
/**
|
|
51
|
+
* Download filename for the `.ics` file.
|
|
52
|
+
* When omitted, a name is derived from `title` (fallback `event.ics`).
|
|
53
|
+
* If the value has no `.ics` extension, `.ics` is appended.
|
|
54
|
+
*
|
|
55
|
+
* @example 'planning-session.ics'
|
|
56
|
+
* @platform Web
|
|
57
|
+
* @since 8.8.0
|
|
58
|
+
*/
|
|
59
|
+
icsFileName?: string;
|
|
42
60
|
/**
|
|
43
61
|
* An array of emails to invite.
|
|
44
62
|
*
|
|
@@ -47,34 +65,42 @@ export interface CreateEventWithPromptOptions {
|
|
|
47
65
|
*/
|
|
48
66
|
invitees?: string[];
|
|
49
67
|
/**
|
|
50
|
-
* @platform Android, iOS
|
|
68
|
+
* @platform Android, iOS, Web
|
|
51
69
|
* @since 0.1.0
|
|
52
70
|
*/
|
|
53
71
|
isAllDay?: boolean;
|
|
54
72
|
/**
|
|
55
|
-
* @platform Android, iOS
|
|
73
|
+
* @platform Android, iOS, Web
|
|
56
74
|
* @since 0.1.0
|
|
57
75
|
*/
|
|
58
76
|
location?: string;
|
|
77
|
+
/**
|
|
78
|
+
* Confirm dialog message.
|
|
79
|
+
* When omitted, the dialog uses the event title and time summary.
|
|
80
|
+
*
|
|
81
|
+
* @platform Web
|
|
82
|
+
* @since 8.8.0
|
|
83
|
+
*/
|
|
84
|
+
promptMessage?: string;
|
|
59
85
|
/**
|
|
60
86
|
* Rules for creating a recurring event.
|
|
61
87
|
*
|
|
62
|
-
* @platform Android, iOS
|
|
88
|
+
* @platform Android, iOS, Web
|
|
63
89
|
* @since 7.3.0
|
|
64
90
|
*/
|
|
65
91
|
recurrence?: EventRecurrenceRule;
|
|
66
92
|
/**
|
|
67
|
-
* @platform Android, iOS
|
|
93
|
+
* @platform Android, iOS, Web
|
|
68
94
|
* @since 0.1.0
|
|
69
95
|
*/
|
|
70
96
|
startDate?: number;
|
|
71
97
|
/**
|
|
72
|
-
* @platform Android, iOS
|
|
98
|
+
* @platform Android, iOS, Web
|
|
73
99
|
* @since 0.1.0
|
|
74
100
|
*/
|
|
75
101
|
title?: string;
|
|
76
102
|
/**
|
|
77
|
-
* @platform iOS
|
|
103
|
+
* @platform iOS, Web
|
|
78
104
|
* @since 0.1.0
|
|
79
105
|
*/
|
|
80
106
|
url?: string;
|
|
@@ -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\n * @since 7.1.0\n */\n alerts?: number[];\n /**\n * @platform Android, iOS\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\n * @since 7.1.0\n */\n description?: string;\n /**\n * @platform Android, iOS\n * @since 0.1.0\n */\n endDate?: number;\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\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 * @platform Android, iOS\n * @since 0.1.0\n */\n startDate?: number;\n /**\n * @platform Android, iOS\n * @since 0.1.0\n */\n title?: string;\n /**\n * @platform iOS\n * @since 0.1.0\n */\n url?: string;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"create-event-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"]}
|
|
@@ -2,9 +2,18 @@
|
|
|
2
2
|
* @since 8.5.0
|
|
3
3
|
*/
|
|
4
4
|
export interface CreateEventWithPromptResult {
|
|
5
|
+
/**
|
|
6
|
+
* An `.ics` file (`text/calendar`) with one `VEVENT`.
|
|
7
|
+
* Always `null` on Android and iOS.
|
|
8
|
+
* On Web, set when the user confirms; `null` when the user cancels.
|
|
9
|
+
*
|
|
10
|
+
* @platform Web
|
|
11
|
+
* @since 8.8.0
|
|
12
|
+
*/
|
|
13
|
+
ics: File | null;
|
|
5
14
|
/**
|
|
6
15
|
* The identifier of the created event.
|
|
7
|
-
* Always `null` on Android.
|
|
16
|
+
* Always `null` on Android and Web.
|
|
8
17
|
* Present on iOS when the user saves.
|
|
9
18
|
*
|
|
10
19
|
* @platform Android, iOS
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-event-with-prompt-result.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/create-event-with-prompt-result.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * @since 8.5.0\n */\nexport interface CreateEventWithPromptResult {\n /**\n * The identifier of the created event.\n * Always `null` on Android.\n * Present on iOS when the user saves.\n *\n * @platform Android, iOS\n * @since 0.1.0\n */\n id: string | null;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"create-event-with-prompt-result.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/create-event-with-prompt-result.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * @since 8.5.0\n */\nexport interface CreateEventWithPromptResult {\n /**\n * An `.ics` file (`text/calendar`) with one `VEVENT`.\n * Always `null` on Android and iOS.\n * On Web, set when the user confirms; `null` when the user cancels.\n *\n * @platform Web\n * @since 8.8.0\n */\n ics: File | null;\n /**\n * The identifier of the created event.\n * Always `null` on Android and Web.\n * Present on iOS when the user saves.\n *\n * @platform Android, iOS\n * @since 0.1.0\n */\n id: string | null;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-reminder-options.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/create-reminder-options.ts"],"names":[],"mappings":"","sourcesContent":["import type { RecurrenceRule } from './recurrence-rule';\n\n/**\n * @since 7.1.0\n */\nexport interface CreateReminderOptions {\n /**\n * Alert times in minutes relative to the reminder start.\n * Use negative numbers for alerts before the start, and positive numbers for alerts after the start.\n *\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 * @since 7.1.0\n */\n alerts?: number[];\n /**\n * Whether to save immediately (`true`) or batch changes for later (`false`).\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 * @default true\n * @platform iOS\n * @see {@link CalendarOperations#commit}\n * @since 8.7.0\n */\n commit?: boolean;\n /**\n * @since 7.1.0\n */\n completionDate?: number;\n /**\n * When the reminder should be completed, in milliseconds since the epoch.\n * On iOS, if `startDate` is omitted, it is set to this value.\n *\n * @since 7.1.0\n */\n dueDate?: number;\n /**\n * @since 7.1.0\n */\n isCompleted?: boolean;\n /**\n * @since 7.1.0\n */\n listId?: string;\n /**\n * @since 7.1.0\n */\n location?: string;\n /**\n * @since 7.1.0\n */\n notes?: string;\n /**\n * @since 7.1.0\n */\n priority?: number;\n /**\n * @platform iOS\n * @since 7.1.0\n */\n recurrence?: RecurrenceRule;\n /**\n * When the reminder starts, in milliseconds since the epoch.\n * Relative `alerts` use this date.\n *\n * @since 7.1.0\n */\n startDate?: number;\n /**\n * @since 7.1.0\n */\n title: string;\n /**\n * @since 7.1.0\n */\n url?: string;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"create-reminder-options.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/create-reminder-options.ts"],"names":[],"mappings":"","sourcesContent":["import type { RecurrenceRule } from './recurrence-rule';\n\n/**\n * @since 7.1.0\n */\nexport interface CreateReminderOptions {\n /**\n * Alert times in minutes relative to the reminder start.\n * Use negative numbers for alerts before the start, and positive numbers for alerts after the start.\n *\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 * @since 7.1.0\n */\n alerts?: number[];\n /**\n * Whether to save immediately (`true`) or batch changes for later (`false`).\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 * @default true\n * @platform iOS\n * @see {@link CalendarOperations#commit}\n * @since 8.7.0\n */\n commit?: boolean;\n /**\n * @since 7.1.0\n */\n completionDate?: number;\n /**\n * When the reminder should be completed, in milliseconds since the epoch.\n * On iOS, if `startDate` is omitted, it is set to this value.\n *\n * @since 7.1.0\n */\n dueDate?: number;\n /**\n * @since 7.1.0\n */\n isCompleted?: boolean;\n /**\n * @since 7.1.0\n */\n listId?: string;\n /**\n * @since 7.1.0\n */\n location?: string;\n /**\n * @since 7.1.0\n */\n notes?: string;\n /**\n * Priority: `0` none, `1` highest through `9` lowest.\n *\n * @since 7.1.0\n */\n priority?: number;\n /**\n * @platform iOS\n * @since 7.1.0\n */\n recurrence?: RecurrenceRule;\n /**\n * When the reminder starts, in milliseconds since the epoch.\n * Relative `alerts` use this date.\n *\n * @since 7.1.0\n */\n startDate?: number;\n /**\n * @since 7.1.0\n */\n title: string;\n /**\n * @since 7.1.0\n */\n url?: string;\n}\n"]}
|
|
@@ -1,29 +1,34 @@
|
|
|
1
|
+
import type { SystemColorName } from '../types/system-color-name';
|
|
1
2
|
/**
|
|
2
3
|
* @since 8.1.0
|
|
3
4
|
*/
|
|
4
5
|
export interface CreateRemindersListOptions {
|
|
5
6
|
/**
|
|
6
|
-
*
|
|
7
|
+
* Named color (`blue`, …) or hex `#RRGGBB` / `#RRGGBBAA`.
|
|
8
|
+
* When omitted, the platform chooses the list color.
|
|
7
9
|
*
|
|
8
10
|
* @example 'indigo'
|
|
9
|
-
* @
|
|
11
|
+
* @example #007AFF
|
|
10
12
|
* @platform iOS
|
|
11
13
|
* @since 8.1.0
|
|
12
14
|
*/
|
|
13
|
-
color?:
|
|
15
|
+
color?: SystemColorName | `#${string}`;
|
|
14
16
|
/**
|
|
15
|
-
* Whether to save the list
|
|
16
|
-
* Pass `false` to batch
|
|
17
|
+
* Whether to save the list immediately.
|
|
18
|
+
* Pass `false` to batch changes and commit them with `CapacitorCalendar.commit()`.
|
|
17
19
|
*
|
|
18
20
|
* @example false
|
|
19
21
|
* @default true
|
|
20
22
|
* @platform iOS
|
|
23
|
+
* @see {@link CalendarOperations#commit}
|
|
21
24
|
* @since 8.1.0
|
|
22
25
|
*/
|
|
23
26
|
commit?: boolean;
|
|
24
27
|
/**
|
|
25
|
-
* The
|
|
26
|
-
*
|
|
28
|
+
* The calendar source (account) where the list should be created.
|
|
29
|
+
*
|
|
30
|
+
* If provided, it should match a source from `fetchAllCalendarSources()`.
|
|
31
|
+
* If omitted or unmatched, iCloud is used when available, otherwise the local source.
|
|
27
32
|
*
|
|
28
33
|
* @example 'A1234567-ABCD-EFGH-IJKL-MNOPQRSTUVWX'
|
|
29
34
|
* @platform iOS
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-reminders-list-options.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/create-reminders-list-options.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * @since 8.1.0\n */\nexport interface CreateRemindersListOptions {\n /**\n *
|
|
1
|
+
{"version":3,"file":"create-reminders-list-options.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/create-reminders-list-options.ts"],"names":[],"mappings":"","sourcesContent":["import type { SystemColorName } from '../types/system-color-name';\n\n/**\n * @since 8.1.0\n */\nexport interface CreateRemindersListOptions {\n /**\n * Named color (`blue`, …) or hex `#RRGGBB` / `#RRGGBBAA`.\n * When omitted, the platform chooses the list color.\n *\n * @example 'indigo'\n * @example #007AFF\n * @platform iOS\n * @since 8.1.0\n */\n color?: SystemColorName | `#${string}`;\n /**\n * Whether to save the list immediately.\n * Pass `false` to batch changes and commit them with `CapacitorCalendar.commit()`.\n *\n * @example false\n * @default true\n * @platform iOS\n * @see {@link CalendarOperations#commit}\n * @since 8.1.0\n */\n commit?: boolean;\n /**\n * The calendar source (account) where the list should be created.\n *\n * If provided, it should match a source from `fetchAllCalendarSources()`.\n * If omitted or unmatched, iCloud is used when available, otherwise the local source.\n *\n * @example 'A1234567-ABCD-EFGH-IJKL-MNOPQRSTUVWX'\n * @platform iOS\n * @since 8.1.0\n */\n sourceId?: string;\n /**\n * The title of the list.\n *\n * @example 'Groceries'\n * @platform iOS\n * @since 8.1.0\n */\n title: string;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-reminder-with-prompt-result.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/delete-reminder-with-prompt-result.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * @since 7.2.0\n */\nexport interface DeleteReminderWithPromptResult {\n /**\n * Whether the user confirmed deletion.\n *\n * @platform iOS\n * @since 7.2.0\n */\n deleted: boolean;\n}\n"]}
|