@ebarooni/capacitor-calendar 8.0.2 → 8.1.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 CHANGED
@@ -1,28 +1,55 @@
1
- <p align="center">
2
- <img src="assets/images/text-logo.png" alt="capacitor-calendar-logo" height="136"/>
3
- <br>
4
- <em>A capacitor plugin for managing calendar events on iOS and Android, with reminders support on iOS.</em>
5
- </p>
1
+ # @ebarooni/capacitor-calendar
6
2
 
7
- <p align="center">
3
+ <p>
8
4
  <img src="https://img.shields.io/maintenance/yes/2026?style=flat-square" />
9
5
  <a href="https://www.npmjs.com/package/@ebarooni/capacitor-calendar">
10
6
  <img src="https://img.shields.io/npm/l/@ebarooni/capacitor-calendar?style=flat-square" />
11
7
  </a>
12
- <br>
13
8
  <a href="https://www.npmjs.com/package/@ebarooni/capacitor-calendar">
14
9
  <img src="https://img.shields.io/npm/dw/@ebarooni/capacitor-calendar?style=flat-square" />
15
10
  </a>
16
11
  <a href="https://www.npmjs.com/package/@ebarooni/capacitor-calendar">
17
12
  <img src="https://img.shields.io/npm/v/@ebarooni/capacitor-calendar?style=flat-square" />
18
13
  </a>
14
+ <a href="https://capacitorjs.com/">
15
+ <img src="https://img.shields.io/badge/Capacitor-8.x-119EFF.svg?style=flat-square" />
16
+ </a>
19
17
  </p>
20
18
 
19
+ ![capacitor-calendar-logo](assets/images/text-logo.png)
20
+
21
+ Full-featured Capacitor plugin for native calendar and reminders access. Manage permissions, create, modify, and delete events and reminders programmatically or via the native UI, query events within a given time period, and list all available calendars.
22
+
23
+ ## Core Features
24
+
25
+ - ✅ **Events** – Create, update, delete, and list events in a date range
26
+ - ✅ **Native Prompts** – Built-in system dialogs for creating, editing, and deleting events
27
+ - ✅ **Permissions** – Granular control (full access, write-only, read-only)
28
+ - ✅ **Calendars** – List calendars, get default, create, modify, and delete custom calendars
29
+ - ✅ **Open Calendar App** – Launch the native Calendar app directly
30
+ - 📅 **Reminders** – Full create, read, update, delete support _(iOS only)_
31
+ - 🔍 **Advanced iOS Features** – Calendar sources, calendar selection prompts, default reminders list
32
+
33
+ ## Supported Platforms
34
+
35
+ - **iOS** — Full support (including Reminders and advanced features)
36
+ - **Android** — Strong support for all core calendar features
37
+ - **Web** — Not supported (Capacitor stub only - calls will fail)
38
+
39
+ ## Why this plugin?
40
+
41
+ - **Original and established.** Available since Capacitor 5, this plugin has been around longer than the alternatives and has matured over time.
42
+ - **Actively maintained by the original author.** Updates, bug fixes, and new features are driven by someone who is deeply familiar with the codebase and committed to keeping it healthy.
43
+ - **Fast support.** Questions, bug reports, and integration help are handled promptly.
44
+ - **Reduced vendor risk.** Relying on a single plugin provider for all your needs is a liability. Choosing specialized, independent maintainers keeps your stack resilient.
45
+
21
46
  ## Table of Contents
22
47
 
23
48
  - [Installation](#installation)
24
49
  - [Demo](#demo)
25
50
  - [Setup](#setup)
51
+ - [Quick Start](#quick-start)
52
+ - [Usage Examples](#usage-examples)
26
53
  - [Documentation](#documentation)
27
54
  - [Changelog](#changelog)
28
55
  - [API](#api)
@@ -44,25 +71,150 @@ npx cap sync
44
71
 
45
72
  ## Setup
46
73
 
47
- This plugin requires additional platform-specific configuration. Follow the official guides:
74
+ This plugin works with native calendar APIs, so you'll need to configure permissions on each platform before requesting access at runtime.
75
+
76
+ ### Android
77
+
78
+ Add these permissions to `android/app/src/main/AndroidManifest.xml`:
79
+
80
+ ```xml
81
+ <uses-permission android:name="android.permission.READ_CALENDAR" />
82
+ <uses-permission android:name="android.permission.WRITE_CALENDAR" />
83
+ ```
84
+
85
+ Don't forget to request the matching runtime permissions before reading from or writing to the calendar.
86
+
87
+ ### iOS
88
+
89
+ Add the appropriate usage description keys to `ios/App/App/Info.plist`. Starting with iOS 17, Apple requires separate keys for write-only and full calendar access.
90
+
91
+ ```xml
92
+ <key>NSCalendarsUsageDescription</key>
93
+ <string>This app needs access to your calendar.</string>
94
+
95
+ <key>NSCalendarsWriteOnlyAccessUsageDescription</key>
96
+ <string>This app needs permission to create calendar events.</string>
97
+
98
+ <key>NSCalendarsFullAccessUsageDescription</key>
99
+ <string>This app needs permission to read and manage your calendar events.</string>
100
+
101
+ <key>NSRemindersUsageDescription</key>
102
+ <string>This app needs access to your reminders.</string>
103
+
104
+ <key>NSRemindersFullAccessUsageDescription</key>
105
+ <string>This app needs permission to read and manage your reminders.</string>
106
+ ```
107
+
108
+ > [!IMPORTANT]
109
+ > Only include the keys your app actually needs. If you're only creating events, you can safely omit the full access and reminders entries.
110
+
111
+ ### Official References
48
112
 
49
113
  - **iOS:** [Migrating to the Latest Calendar Access Levels](https://developer.apple.com/documentation/technotes/tn3152-migrating-to-the-latest-calendar-access-levels)
50
114
  - **Android:** [Calendar Provider User Permissions](https://developer.android.com/identity/providers/calendar-provider#manifest)
51
115
 
116
+ ## Quick Start
117
+
118
+ Here's a simple example to get you up and running quickly:
119
+
120
+ ```typescript
121
+ import { CapacitorCalendar } from '@ebarooni/capacitor-calendar';
122
+
123
+ const { result } = await CapacitorCalendar.requestFullCalendarAccess();
124
+
125
+ if (result !== 'granted') {
126
+ throw new Error('Calendar permission denied');
127
+ }
128
+
129
+ // Create an event starting in 1 hour, lasting 1 hour
130
+ const startDate = Date.now() + 60 * 60 * 1000;
131
+ const endDate = startDate + 60 * 60 * 1000;
132
+
133
+ const { id } = await CapacitorCalendar.createEvent({
134
+ title: 'Product review',
135
+ location: 'Office',
136
+ startDate,
137
+ endDate,
138
+ description: 'Created with @ebarooni/capacitor-calendar',
139
+ });
140
+
141
+ console.log('Event created with ID:', id);
142
+ ```
143
+
144
+ > [!NOTE]
145
+ > Dates are expected as Unix timestamps in milliseconds.
146
+
147
+ ## Usage Examples
148
+
149
+ ### Open the native event editor
150
+
151
+ Use the system calendar UI to let users create or edit events:
152
+
153
+ ```typescript
154
+ await CapacitorCalendar.createEventWithPrompt({
155
+ title: 'Planning session',
156
+ location: 'Office',
157
+ startDate: Date.now() + 24 * 60 * 60 * 1000, // tomorrow
158
+ endDate: Date.now() + 25 * 60 * 60 * 1000,
159
+ });
160
+ ```
161
+
162
+ > [!NOTE]
163
+ > On Android, this method always returns null. If you need the event ID, call `listEventsInRange(...)` afterward.
164
+
165
+ ### List upcoming events
166
+
167
+ ```typescript
168
+ const now = Date.now();
169
+ const oneWeekLater = now + 7 * 24 * 60 * 60 * 1000;
170
+
171
+ const { result: events } = await CapacitorCalendar.listEventsInRange({
172
+ from: now,
173
+ to: oneWeekLater,
174
+ });
175
+
176
+ console.log('Upcoming events:', events);
177
+ ```
178
+
179
+ ### Working with Calendars
180
+
181
+ ```typescript
182
+ // Get all calendars and default calendar
183
+ const { result: calendars } = await CapacitorCalendar.listCalendars();
184
+ const { result: defaultCalendar } = await CapacitorCalendar.getDefaultCalendar();
185
+
186
+ // Use default or fall back to first calendar
187
+ const targetCalendarId = defaultCalendar?.id ?? calendars[0]?.id;
188
+ ```
189
+
190
+ > [!NOTE]
191
+ > On iOS you can also use `selectCalendarsWithPrompt()` to let the user pick calendars via the native interface.
192
+
193
+ ### Create a Reminder (iOS only)
194
+
195
+ ```typescript
196
+ const { result } = await CapacitorCalendar.requestFullRemindersAccess();
197
+
198
+ if (result === 'granted') {
199
+ await CapacitorCalendar.createReminder({
200
+ title: 'Send launch notes',
201
+ dueDate: Date.now() + 2 * 24 * 60 * 60 * 1000,
202
+ notes: 'Created with @ebarooni/capacitor-calendar',
203
+ });
204
+ }
205
+ ```
206
+
52
207
  ## Documentation
53
208
 
54
- For comprehensive usage examples, detailed explanations, and API references, check out:
209
+ The full documentation is generated from TypeScript definitions and is available online:
55
210
 
56
- - **[Online documentation](https://ebarooni.github.io/capacitor-calendar/)**
57
- - **[Type definitions & examples](src/definitions.ts)**
211
+ - **[Complete Documentation](https://ebarooni.github.io/capacitor-calendar/)** — Guides, examples, and full API reference (recommended)
212
+ - **[Source Definitions](src/definitions.ts)** — The TypeScript source used to generate the docs
58
213
 
59
214
  ## Changelog
60
215
 
61
216
  See [CHANGELOG.md](CHANGELOG.md) for the latest updates and release history.
62
217
 
63
- > [!NOTE]
64
- > Version 7.1.0 introduces breaking changes.
65
-
66
218
  ## API
67
219
 
68
220
  <docgen-index>
@@ -92,6 +244,7 @@ See [CHANGELOG.md](CHANGELOG.md) for the latest updates and release history.
92
244
  * [`createCalendar(...)`](#createcalendar)
93
245
  * [`deleteCalendar(...)`](#deletecalendar)
94
246
  * [`modifyCalendar(...)`](#modifycalendar)
247
+ * [`createRemindersList(...)`](#createreminderslist)
95
248
  * [`fetchAllRemindersSources()`](#fetchallreminderssources)
96
249
  * [`openReminders()`](#openreminders)
97
250
  * [`getDefaultRemindersList()`](#getdefaultreminderslist)
@@ -588,6 +741,27 @@ Modifies a calendar with options.
588
741
  --------------------
589
742
 
590
743
 
744
+ ### createRemindersList(...)
745
+
746
+ ```typescript
747
+ createRemindersList(options: CreateRemindersListOptions) => Promise<CreateRemindersListResult>
748
+ ```
749
+
750
+ Creates a new reminders list.
751
+
752
+ | Param | Type |
753
+ | ------------- | --------------------------------------------------------------------------------- |
754
+ | **`options`** | <code><a href="#createreminderslistoptions">CreateRemindersListOptions</a></code> |
755
+
756
+ **Returns:** <code>Promise&lt;<a href="#createreminderslistresult">CreateRemindersListResult</a>&gt;</code>
757
+
758
+ **Since:** 8.1.0
759
+
760
+ **Platform:** iOS
761
+
762
+ --------------------
763
+
764
+
591
765
  ### fetchAllRemindersSources()
592
766
 
593
767
  ```typescript
@@ -1047,6 +1221,23 @@ Opens a dialog to delete a reminder.
1047
1221
  | **`color`** | <code>string</code> | 7.2.0 | Android, iOS |
1048
1222
 
1049
1223
 
1224
+ #### CreateRemindersListResult
1225
+
1226
+ | Prop | Type | Description | Since | Platform |
1227
+ | -------- | ------------------- | ----------------------------------------------- | ----- | -------- |
1228
+ | **`id`** | <code>string</code> | Identifier of the newly created reminders list. | 8.1.0 | iOS |
1229
+
1230
+
1231
+ #### CreateRemindersListOptions
1232
+
1233
+ | Prop | Type | Description | Default | Since | Platform |
1234
+ | -------------- | -------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------- | ----- | -------- |
1235
+ | **`color`** | <code>'blue' \| 'brown' \| 'gray' \| 'green' \| 'indigo' \| 'orange' \| 'pink' \| 'purple' \| 'red' \| 'teal' \| 'yellow'</code> | The color of the list. | <code>'blue'</code> | 8.1.0 | iOS |
1236
+ | **`commit`** | <code>boolean</code> | Whether to save the list to the event store immediately. Pass `false` to batch multiple changes and commit them together using `CapacitorCalendar.commit()`, which is more efficient than committing each save individually. | <code>true</code> | 8.1.0 | iOS |
1237
+ | **`sourceId`** | <code>string</code> | The EKSource identifier (account) where the list should be created. If left undefined, iCloud will be used if available, otherwise falls back to local. | | 8.1.0 | iOS |
1238
+ | **`title`** | <code>string</code> | The title of the list. | | 8.1.0 | iOS |
1239
+
1240
+
1050
1241
  #### CreateReminderOptions
1051
1242
 
1052
1243
  | Prop | Type | Description | Since |
@@ -80,6 +80,11 @@ class CapacitorCalendarPlugin : Plugin() {
80
80
  }
81
81
  }
82
82
 
83
+ @PluginMethod
84
+ fun createRemindersList(call: PluginCall) {
85
+ call.unimplemented(PluginError.Unimplemented(::createRemindersList.name).message)
86
+ }
87
+
83
88
  @PluginMethod
84
89
  fun requestPermission(call: PluginCall) {
85
90
  try {
package/dist/docs.json CHANGED
@@ -680,6 +680,34 @@
680
680
  ],
681
681
  "slug": "modifycalendar"
682
682
  },
683
+ {
684
+ "name": "createRemindersList",
685
+ "signature": "(options: CreateRemindersListOptions) => Promise<CreateRemindersListResult>",
686
+ "parameters": [
687
+ {
688
+ "name": "options",
689
+ "docs": "",
690
+ "type": "CreateRemindersListOptions"
691
+ }
692
+ ],
693
+ "returns": "Promise<CreateRemindersListResult>",
694
+ "tags": [
695
+ {
696
+ "name": "platform",
697
+ "text": "iOS"
698
+ },
699
+ {
700
+ "name": "since",
701
+ "text": "8.1.0"
702
+ }
703
+ ],
704
+ "docs": "Creates a new reminders list.",
705
+ "complexTypes": [
706
+ "CreateRemindersListResult",
707
+ "CreateRemindersListOptions"
708
+ ],
709
+ "slug": "createreminderslist"
710
+ },
683
711
  {
684
712
  "name": "fetchAllRemindersSources",
685
713
  "signature": "() => Promise<{ result: CalendarSource[]; }>",
@@ -3489,6 +3517,146 @@
3489
3517
  }
3490
3518
  ]
3491
3519
  },
3520
+ {
3521
+ "name": "CreateRemindersListResult",
3522
+ "slug": "createreminderslistresult",
3523
+ "docs": "",
3524
+ "tags": [
3525
+ {
3526
+ "text": "iOS",
3527
+ "name": "platform"
3528
+ },
3529
+ {
3530
+ "text": "8.1.0",
3531
+ "name": "since"
3532
+ }
3533
+ ],
3534
+ "methods": [],
3535
+ "properties": [
3536
+ {
3537
+ "name": "id",
3538
+ "tags": [
3539
+ {
3540
+ "text": "iOS",
3541
+ "name": "platform"
3542
+ },
3543
+ {
3544
+ "text": "8.1.0",
3545
+ "name": "since"
3546
+ }
3547
+ ],
3548
+ "docs": "Identifier of the newly created reminders list.",
3549
+ "complexTypes": [],
3550
+ "type": "string"
3551
+ }
3552
+ ]
3553
+ },
3554
+ {
3555
+ "name": "CreateRemindersListOptions",
3556
+ "slug": "createreminderslistoptions",
3557
+ "docs": "",
3558
+ "tags": [
3559
+ {
3560
+ "text": "iOS",
3561
+ "name": "platform"
3562
+ },
3563
+ {
3564
+ "text": "8.1.0",
3565
+ "name": "since"
3566
+ }
3567
+ ],
3568
+ "methods": [],
3569
+ "properties": [
3570
+ {
3571
+ "name": "color",
3572
+ "tags": [
3573
+ {
3574
+ "text": "'indigo'",
3575
+ "name": "example"
3576
+ },
3577
+ {
3578
+ "text": "'blue'",
3579
+ "name": "default"
3580
+ },
3581
+ {
3582
+ "text": "iOS",
3583
+ "name": "platform"
3584
+ },
3585
+ {
3586
+ "text": "8.1.0",
3587
+ "name": "since"
3588
+ }
3589
+ ],
3590
+ "docs": "The color of the list.",
3591
+ "complexTypes": [],
3592
+ "type": "'blue' | 'brown' | 'gray' | 'green' | 'indigo' | 'orange' | 'pink' | 'purple' | 'red' | 'teal' | 'yellow' | undefined"
3593
+ },
3594
+ {
3595
+ "name": "commit",
3596
+ "tags": [
3597
+ {
3598
+ "text": "false",
3599
+ "name": "example"
3600
+ },
3601
+ {
3602
+ "text": "true",
3603
+ "name": "default"
3604
+ },
3605
+ {
3606
+ "text": "iOS",
3607
+ "name": "platform"
3608
+ },
3609
+ {
3610
+ "text": "8.1.0",
3611
+ "name": "since"
3612
+ }
3613
+ ],
3614
+ "docs": "Whether to save the list to the event store immediately.\nPass `false` to batch multiple changes and commit them together using `CapacitorCalendar.commit()`, which is more efficient than committing each save individually.",
3615
+ "complexTypes": [],
3616
+ "type": "boolean | undefined"
3617
+ },
3618
+ {
3619
+ "name": "sourceId",
3620
+ "tags": [
3621
+ {
3622
+ "text": "'A1234567-ABCD-EFGH-IJKL-MNOPQRSTUVWX'",
3623
+ "name": "example"
3624
+ },
3625
+ {
3626
+ "text": "iOS",
3627
+ "name": "platform"
3628
+ },
3629
+ {
3630
+ "text": "8.1.0",
3631
+ "name": "since"
3632
+ }
3633
+ ],
3634
+ "docs": "The EKSource identifier (account) where the list should be created.\nIf left undefined, iCloud will be used if available, otherwise falls back to local.",
3635
+ "complexTypes": [],
3636
+ "type": "string | undefined"
3637
+ },
3638
+ {
3639
+ "name": "title",
3640
+ "tags": [
3641
+ {
3642
+ "text": "'Groceries'",
3643
+ "name": "example"
3644
+ },
3645
+ {
3646
+ "text": "iOS",
3647
+ "name": "platform"
3648
+ },
3649
+ {
3650
+ "text": "8.1.0",
3651
+ "name": "since"
3652
+ }
3653
+ ],
3654
+ "docs": "The title of the list.",
3655
+ "complexTypes": [],
3656
+ "type": "string"
3657
+ }
3658
+ ]
3659
+ },
3492
3660
  {
3493
3661
  "name": "CreateReminderOptions",
3494
3662
  "slug": "createreminderoptions",
@@ -17,6 +17,8 @@ import type { CreateCalendarOptions } from './schemas/interfaces/create-calendar
17
17
  import type { CreateEventOptions } from './schemas/interfaces/create-event-options';
18
18
  import type { CreateEventWithPromptOptions } from './schemas/interfaces/create-event-with-prompt-options';
19
19
  import type { CreateReminderOptions } from './schemas/interfaces/create-reminder-options';
20
+ import type { CreateRemindersListOptions } from './schemas/interfaces/create-reminders-list-options';
21
+ import type { CreateRemindersListResult } from './schemas/interfaces/create-reminders-list-result';
20
22
  import type { DeleteCalendarOptions } from './schemas/interfaces/delete-calendar-options';
21
23
  import type { DeleteEventOptions } from './schemas/interfaces/delete-event-options';
22
24
  import type { DeleteEventWithPromptOptions } from './schemas/interfaces/delete-event-with-prompt-options';
@@ -45,5 +47,5 @@ import type { DeleteEventsByIdResult } from './sub-definitions/event-operations'
45
47
  import type { DeleteRemindersByIdResult } from './sub-definitions/reminders-operations';
46
48
  declare const CapacitorCalendar: CapacitorCalendarPlugin;
47
49
  export * from './definitions';
48
- export type { CheckAllPermissionsResult, RequestAllPermissionsResult, CreateEventWithPromptOptions, ModifyEventWithPromptOptions, EventEditAction, CreateEventOptions, EventGuest, ModifyEventOptions, SelectCalendarsWithPromptOptions, Calendar, RemindersList, CalendarSource, OpenCalendarOptions, CreateCalendarOptions, DeleteCalendarOptions, ReminderRecurrenceRule, RecurrenceRule, CreateReminderOptions, DeleteRemindersByIdOptions, DeleteRemindersByIdResult, DeleteReminderOptions, ModifyReminderOptions, GetReminderByIdOptions, Reminder, GetRemindersFromListsOptions, DeleteEventsByIdOptions, DeleteEventsByIdResult, DeleteEventOptions, DeleteEventWithPromptOptions, ListEventsInRangeOptions, CalendarEvent, ModifyCalendarOptions, DeleteReminderWithPromptOptions, };
50
+ export type { CheckAllPermissionsResult, CreateRemindersListOptions, CreateRemindersListResult, RequestAllPermissionsResult, CreateEventWithPromptOptions, ModifyEventWithPromptOptions, EventEditAction, CreateEventOptions, EventGuest, ModifyEventOptions, SelectCalendarsWithPromptOptions, Calendar, RemindersList, CalendarSource, OpenCalendarOptions, CreateCalendarOptions, DeleteCalendarOptions, ReminderRecurrenceRule, RecurrenceRule, CreateReminderOptions, DeleteRemindersByIdOptions, DeleteRemindersByIdResult, DeleteReminderOptions, ModifyReminderOptions, GetReminderByIdOptions, Reminder, GetRemindersFromListsOptions, DeleteEventsByIdOptions, DeleteEventsByIdResult, DeleteEventOptions, DeleteEventWithPromptOptions, ListEventsInRangeOptions, CalendarEvent, ModifyCalendarOptions, DeleteReminderWithPromptOptions, };
49
51
  export { CalendarPermissionScope, EventAvailability, EventSpan, CalendarChooserDisplayStyle, CalendarType, CalendarSourceType, ReminderRecurrenceFrequency, RecurrenceFrequency, EventStatus, AttendeeRole, AttendeeType, AttendeeStatus, CapacitorCalendar, };
@@ -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;AAmC5F,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;AAoC9B,OAAO,EACL,uBAAuB,EACvB,iBAAiB,EACjB,SAAS,EACT,2BAA2B,EAC3B,YAAY,EACZ,kBAAkB,EAClB,2BAA2B,EAE3B,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,cAAc,EACd,iBAAiB,GAClB,CAAC","sourcesContent":["import { registerPlugin } from '@capacitor/core';\n\nimport type { CapacitorCalendarPlugin } from './definitions';\nimport { AttendeeRole } from './schemas/enums/attendee-role';\nimport { AttendeeStatus } from './schemas/enums/attendee-status';\nimport { AttendeeType } from './schemas/enums/attendee-type';\nimport { CalendarChooserDisplayStyle } from './schemas/enums/calendar-chooser-display-style';\nimport { CalendarPermissionScope } from './schemas/enums/calendar-permission-scope';\nimport { CalendarSourceType } from './schemas/enums/calendar-source-type';\nimport { CalendarType } from './schemas/enums/calendar-type';\nimport { EventAvailability } from './schemas/enums/event-availability';\nimport { EventSpan } from './schemas/enums/event-span';\nimport { EventStatus } from './schemas/enums/event-status';\nimport { ReminderRecurrenceFrequency } from './schemas/enums/reminder-recurrence-frequency';\nimport type { Calendar } from './schemas/interfaces/calendar';\nimport type { CalendarEvent } from './schemas/interfaces/calendar-event';\nimport type { CalendarSource } from './schemas/interfaces/calendar-source';\nimport type { CreateCalendarOptions } from './schemas/interfaces/create-calendar-options';\nimport type { CreateEventOptions } from './schemas/interfaces/create-event-options';\nimport type { CreateEventWithPromptOptions } from './schemas/interfaces/create-event-with-prompt-options';\nimport type { CreateReminderOptions } from './schemas/interfaces/create-reminder-options';\nimport type { DeleteCalendarOptions } from './schemas/interfaces/delete-calendar-options';\nimport type { DeleteEventOptions } from './schemas/interfaces/delete-event-options';\nimport type { DeleteEventWithPromptOptions } from './schemas/interfaces/delete-event-with-prompt-options';\nimport type { DeleteEventsByIdOptions } from './schemas/interfaces/delete-events-by-id-options';\nimport type { DeleteReminderOptions } from './schemas/interfaces/delete-reminder-options';\nimport type { DeleteReminderWithPromptOptions } from './schemas/interfaces/delete-reminder-with-prompt-options';\nimport type { DeleteRemindersByIdOptions } from './schemas/interfaces/delete-reminders-by-id-options';\nimport type { EventGuest } from './schemas/interfaces/event-guest';\nimport type { GetReminderByIdOptions } from './schemas/interfaces/get-reminder-by-id-options';\nimport type { GetRemindersFromListsOptions } from './schemas/interfaces/get-reminders-from-lists-options';\nimport type { ListEventsInRangeOptions } from './schemas/interfaces/list-events-in-range-options';\nimport type { ModifyCalendarOptions } from './schemas/interfaces/modify-calendar-options';\nimport type { ModifyEventOptions } from './schemas/interfaces/modify-event-options';\nimport type { ModifyEventWithPromptOptions } from './schemas/interfaces/modify-event-with-prompt-options';\nimport type { ModifyReminderOptions } from './schemas/interfaces/modify-reminder-options';\nimport type { OpenCalendarOptions } from './schemas/interfaces/open-calendar-options';\nimport type { RecurrenceRule } from './schemas/interfaces/recurrence-rule';\nimport type { Reminder } from './schemas/interfaces/reminder';\nimport type { ReminderRecurrenceRule } from './schemas/interfaces/reminder-recurrence-rule';\nimport type { RemindersList } from './schemas/interfaces/reminders-list';\nimport type { SelectCalendarsWithPromptOptions } from './schemas/interfaces/select-calendars-with-prompt-options';\nimport type { EventEditAction } from './schemas/types/event-edit-action';\nimport type { RecurrenceFrequency } from './schemas/types/recurrence-frequency';\nimport type { CheckAllPermissionsResult, RequestAllPermissionsResult } from './sub-definitions/calendar-access';\nimport type { DeleteEventsByIdResult } from './sub-definitions/event-operations';\nimport type { DeleteRemindersByIdResult } from './sub-definitions/reminders-operations';\n\nconst CapacitorCalendar = registerPlugin<CapacitorCalendarPlugin>('CapacitorCalendar', {\n web: () => import('./web').then((m) => new m.CapacitorCalendarWeb()),\n});\n\nexport * from './definitions';\nexport type {\n CheckAllPermissionsResult,\n RequestAllPermissionsResult,\n CreateEventWithPromptOptions,\n ModifyEventWithPromptOptions,\n EventEditAction,\n CreateEventOptions,\n EventGuest,\n ModifyEventOptions,\n SelectCalendarsWithPromptOptions,\n Calendar,\n RemindersList,\n CalendarSource,\n OpenCalendarOptions,\n CreateCalendarOptions,\n DeleteCalendarOptions,\n ReminderRecurrenceRule,\n RecurrenceRule,\n CreateReminderOptions,\n DeleteRemindersByIdOptions,\n DeleteRemindersByIdResult,\n DeleteReminderOptions,\n ModifyReminderOptions,\n GetReminderByIdOptions,\n Reminder,\n GetRemindersFromListsOptions,\n DeleteEventsByIdOptions,\n DeleteEventsByIdResult,\n DeleteEventOptions,\n DeleteEventWithPromptOptions,\n ListEventsInRangeOptions,\n CalendarEvent,\n ModifyCalendarOptions,\n DeleteReminderWithPromptOptions,\n};\nexport {\n CalendarPermissionScope,\n EventAvailability,\n EventSpan,\n CalendarChooserDisplayStyle,\n CalendarType,\n CalendarSourceType,\n ReminderRecurrenceFrequency,\n RecurrenceFrequency,\n EventStatus,\n AttendeeRole,\n AttendeeType,\n AttendeeStatus,\n CapacitorCalendar,\n};\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAGjD,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACjE,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,2BAA2B,EAAE,MAAM,gDAAgD,CAAC;AAC7F,OAAO,EAAE,uBAAuB,EAAE,MAAM,2CAA2C,CAAC;AACpF,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAC1E,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AACvE,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,EAAE,2BAA2B,EAAE,MAAM,+CAA+C,CAAC;AAqC5F,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;AAsC9B,OAAO,EACL,uBAAuB,EACvB,iBAAiB,EACjB,SAAS,EACT,2BAA2B,EAC3B,YAAY,EACZ,kBAAkB,EAClB,2BAA2B,EAE3B,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,cAAc,EACd,iBAAiB,GAClB,CAAC","sourcesContent":["import { registerPlugin } from '@capacitor/core';\n\nimport type { CapacitorCalendarPlugin } from './definitions';\nimport { AttendeeRole } from './schemas/enums/attendee-role';\nimport { AttendeeStatus } from './schemas/enums/attendee-status';\nimport { AttendeeType } from './schemas/enums/attendee-type';\nimport { CalendarChooserDisplayStyle } from './schemas/enums/calendar-chooser-display-style';\nimport { CalendarPermissionScope } from './schemas/enums/calendar-permission-scope';\nimport { CalendarSourceType } from './schemas/enums/calendar-source-type';\nimport { CalendarType } from './schemas/enums/calendar-type';\nimport { EventAvailability } from './schemas/enums/event-availability';\nimport { EventSpan } from './schemas/enums/event-span';\nimport { EventStatus } from './schemas/enums/event-status';\nimport { ReminderRecurrenceFrequency } from './schemas/enums/reminder-recurrence-frequency';\nimport type { Calendar } from './schemas/interfaces/calendar';\nimport type { CalendarEvent } from './schemas/interfaces/calendar-event';\nimport type { CalendarSource } from './schemas/interfaces/calendar-source';\nimport type { CreateCalendarOptions } from './schemas/interfaces/create-calendar-options';\nimport type { CreateEventOptions } from './schemas/interfaces/create-event-options';\nimport type { CreateEventWithPromptOptions } from './schemas/interfaces/create-event-with-prompt-options';\nimport type { CreateReminderOptions } from './schemas/interfaces/create-reminder-options';\nimport type { CreateRemindersListOptions } from './schemas/interfaces/create-reminders-list-options';\nimport type { CreateRemindersListResult } from './schemas/interfaces/create-reminders-list-result';\nimport type { DeleteCalendarOptions } from './schemas/interfaces/delete-calendar-options';\nimport type { DeleteEventOptions } from './schemas/interfaces/delete-event-options';\nimport type { DeleteEventWithPromptOptions } from './schemas/interfaces/delete-event-with-prompt-options';\nimport type { DeleteEventsByIdOptions } from './schemas/interfaces/delete-events-by-id-options';\nimport type { DeleteReminderOptions } from './schemas/interfaces/delete-reminder-options';\nimport type { DeleteReminderWithPromptOptions } from './schemas/interfaces/delete-reminder-with-prompt-options';\nimport type { DeleteRemindersByIdOptions } from './schemas/interfaces/delete-reminders-by-id-options';\nimport type { EventGuest } from './schemas/interfaces/event-guest';\nimport type { GetReminderByIdOptions } from './schemas/interfaces/get-reminder-by-id-options';\nimport type { GetRemindersFromListsOptions } from './schemas/interfaces/get-reminders-from-lists-options';\nimport type { ListEventsInRangeOptions } from './schemas/interfaces/list-events-in-range-options';\nimport type { ModifyCalendarOptions } from './schemas/interfaces/modify-calendar-options';\nimport type { ModifyEventOptions } from './schemas/interfaces/modify-event-options';\nimport type { ModifyEventWithPromptOptions } from './schemas/interfaces/modify-event-with-prompt-options';\nimport type { ModifyReminderOptions } from './schemas/interfaces/modify-reminder-options';\nimport type { OpenCalendarOptions } from './schemas/interfaces/open-calendar-options';\nimport type { RecurrenceRule } from './schemas/interfaces/recurrence-rule';\nimport type { Reminder } from './schemas/interfaces/reminder';\nimport type { ReminderRecurrenceRule } from './schemas/interfaces/reminder-recurrence-rule';\nimport type { RemindersList } from './schemas/interfaces/reminders-list';\nimport type { SelectCalendarsWithPromptOptions } from './schemas/interfaces/select-calendars-with-prompt-options';\nimport type { EventEditAction } from './schemas/types/event-edit-action';\nimport type { RecurrenceFrequency } from './schemas/types/recurrence-frequency';\nimport type { CheckAllPermissionsResult, RequestAllPermissionsResult } from './sub-definitions/calendar-access';\nimport type { DeleteEventsByIdResult } from './sub-definitions/event-operations';\nimport type { DeleteRemindersByIdResult } from './sub-definitions/reminders-operations';\n\nconst CapacitorCalendar = registerPlugin<CapacitorCalendarPlugin>('CapacitorCalendar', {\n web: () => import('./web').then((m) => new m.CapacitorCalendarWeb()),\n});\n\nexport * from './definitions';\nexport type {\n CheckAllPermissionsResult,\n CreateRemindersListOptions,\n CreateRemindersListResult,\n RequestAllPermissionsResult,\n CreateEventWithPromptOptions,\n ModifyEventWithPromptOptions,\n EventEditAction,\n CreateEventOptions,\n EventGuest,\n ModifyEventOptions,\n SelectCalendarsWithPromptOptions,\n Calendar,\n RemindersList,\n CalendarSource,\n OpenCalendarOptions,\n CreateCalendarOptions,\n DeleteCalendarOptions,\n ReminderRecurrenceRule,\n RecurrenceRule,\n CreateReminderOptions,\n DeleteRemindersByIdOptions,\n DeleteRemindersByIdResult,\n DeleteReminderOptions,\n ModifyReminderOptions,\n GetReminderByIdOptions,\n Reminder,\n GetRemindersFromListsOptions,\n DeleteEventsByIdOptions,\n DeleteEventsByIdResult,\n DeleteEventOptions,\n DeleteEventWithPromptOptions,\n ListEventsInRangeOptions,\n CalendarEvent,\n ModifyCalendarOptions,\n DeleteReminderWithPromptOptions,\n};\nexport {\n CalendarPermissionScope,\n EventAvailability,\n EventSpan,\n CalendarChooserDisplayStyle,\n CalendarType,\n CalendarSourceType,\n ReminderRecurrenceFrequency,\n RecurrenceFrequency,\n EventStatus,\n AttendeeRole,\n AttendeeType,\n AttendeeStatus,\n CapacitorCalendar,\n};\n"]}
@@ -0,0 +1,42 @@
1
+ /**
2
+ * @platform iOS
3
+ * @since 8.1.0
4
+ */
5
+ export interface CreateRemindersListOptions {
6
+ /**
7
+ * The color of the list.
8
+ *
9
+ * @example 'indigo'
10
+ * @default 'blue'
11
+ * @platform iOS
12
+ * @since 8.1.0
13
+ */
14
+ color?: 'blue' | 'brown' | 'gray' | 'green' | 'indigo' | 'orange' | 'pink' | 'purple' | 'red' | 'teal' | 'yellow';
15
+ /**
16
+ * Whether to save the list to the event store immediately.
17
+ * Pass `false` to batch multiple changes and commit them together using `CapacitorCalendar.commit()`, which is more efficient than committing each save individually.
18
+ *
19
+ * @example false
20
+ * @default true
21
+ * @platform iOS
22
+ * @since 8.1.0
23
+ */
24
+ commit?: boolean;
25
+ /**
26
+ * The EKSource identifier (account) where the list should be created.
27
+ * If left undefined, iCloud will be used if available, otherwise falls back to local.
28
+ *
29
+ * @example 'A1234567-ABCD-EFGH-IJKL-MNOPQRSTUVWX'
30
+ * @platform iOS
31
+ * @since 8.1.0
32
+ */
33
+ sourceId?: string;
34
+ /**
35
+ * The title of the list.
36
+ *
37
+ * @example 'Groceries'
38
+ * @platform iOS
39
+ * @since 8.1.0
40
+ */
41
+ title: string;
42
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=create-reminders-list-options.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-reminders-list-options.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/create-reminders-list-options.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * @platform iOS\n * @since 8.1.0\n */\nexport interface CreateRemindersListOptions {\n /**\n * The color of the list.\n *\n * @example 'indigo'\n * @default 'blue'\n * @platform iOS\n * @since 8.1.0\n */\n color?: 'blue' | 'brown' | 'gray' | 'green' | 'indigo' | 'orange' | 'pink' | 'purple' | 'red' | 'teal' | 'yellow';\n /**\n * Whether to save the list 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.1.0\n */\n commit?: boolean;\n /**\n * The EKSource identifier (account) where the list should be created.\n * If left undefined, iCloud will be used if available, otherwise falls back to local.\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,13 @@
1
+ /**
2
+ * @platform iOS
3
+ * @since 8.1.0
4
+ */
5
+ export interface CreateRemindersListResult {
6
+ /**
7
+ * Identifier of the newly created reminders list.
8
+ *
9
+ * @platform iOS
10
+ * @since 8.1.0
11
+ */
12
+ id: string;
13
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=create-reminders-list-result.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-reminders-list-result.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/create-reminders-list-result.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * @platform iOS\n * @since 8.1.0\n */\nexport interface CreateRemindersListResult {\n /**\n * Identifier of the newly created reminders list.\n *\n * @platform iOS\n * @since 8.1.0\n */\n id: string;\n}\n"]}
@@ -1,5 +1,7 @@
1
1
  import type { CalendarSource } from '../schemas/interfaces/calendar-source';
2
2
  import type { CreateReminderOptions } from '../schemas/interfaces/create-reminder-options';
3
+ import type { CreateRemindersListOptions } from '../schemas/interfaces/create-reminders-list-options';
4
+ import type { CreateRemindersListResult } from '../schemas/interfaces/create-reminders-list-result';
3
5
  import type { DeleteReminderOptions } from '../schemas/interfaces/delete-reminder-options';
4
6
  import type { DeleteReminderWithPromptOptions } from '../schemas/interfaces/delete-reminder-with-prompt-options';
5
7
  import type { DeleteRemindersByIdOptions } from '../schemas/interfaces/delete-reminders-by-id-options';
@@ -9,6 +11,13 @@ import type { ModifyReminderOptions } from '../schemas/interfaces/modify-reminde
9
11
  import type { Reminder } from '../schemas/interfaces/reminder';
10
12
  import type { RemindersList } from '../schemas/interfaces/reminders-list';
11
13
  export interface RemindersOperations {
14
+ /**
15
+ * Creates a new reminders list.
16
+ *
17
+ * @platform iOS
18
+ * @since 8.1.0
19
+ */
20
+ createRemindersList(options: CreateRemindersListOptions): Promise<CreateRemindersListResult>;
12
21
  /**
13
22
  * Retrieves a list of calendar sources.
14
23
  *
@@ -1 +1 @@
1
- {"version":3,"file":"reminders-operations.js","sourceRoot":"","sources":["../../../src/sub-definitions/reminders-operations.ts"],"names":[],"mappings":"","sourcesContent":["import type { CalendarSource } from '../schemas/interfaces/calendar-source';\nimport type { CreateReminderOptions } from '../schemas/interfaces/create-reminder-options';\nimport type { DeleteReminderOptions } from '../schemas/interfaces/delete-reminder-options';\nimport type { DeleteReminderWithPromptOptions } from '../schemas/interfaces/delete-reminder-with-prompt-options';\nimport type { DeleteRemindersByIdOptions } from '../schemas/interfaces/delete-reminders-by-id-options';\nimport type { GetReminderByIdOptions } from '../schemas/interfaces/get-reminder-by-id-options';\nimport type { GetRemindersFromListsOptions } from '../schemas/interfaces/get-reminders-from-lists-options';\nimport type { ModifyReminderOptions } from '../schemas/interfaces/modify-reminder-options';\nimport type { Reminder } from '../schemas/interfaces/reminder';\nimport type { RemindersList } from '../schemas/interfaces/reminders-list';\n\nexport interface RemindersOperations {\n /**\n * Retrieves a list of calendar sources.\n *\n * @deprecated Duplicates {@link CalendarOperations#fetchAllCalendarSources}\n * @platform iOS\n * @since 6.6.0\n */\n fetchAllRemindersSources(): Promise<{ result: CalendarSource[] }>;\n /**\n * Opens the reminders app.\n *\n * @platform iOS\n * @since 7.1.0\n */\n openReminders(): Promise<void>;\n /**\n * Retrieves the default reminders list.\n *\n * @platform iOS\n * @since 7.1.0\n */\n getDefaultRemindersList(): Promise<{ result: RemindersList | null }>;\n /**\n * Retrieves all available reminders lists.\n *\n * @platform iOS\n * @since 7.1.0\n */\n getRemindersLists(): Promise<{ result: RemindersList[] }>;\n /**\n * Creates a reminder.\n *\n * @platform iOS\n * @since 0.5.0\n */\n createReminder(options: CreateReminderOptions): Promise<{ id: string }>;\n /**\n * Deletes multiple reminders.\n *\n * @deprecated Use `deleteReminder(...)`.\n * @platform iOS\n * @since 5.3.0\n */\n deleteRemindersById(options: DeleteRemindersByIdOptions): Promise<{ result: DeleteRemindersByIdResult }>;\n /**\n * Deletes a reminder.\n *\n * @platform iOS\n * @since 7.1.0\n */\n deleteReminder(options: DeleteReminderOptions): Promise<void>;\n /**\n * Modifies a reminder.\n *\n * @platform iOS\n * @since 6.7.0\n */\n modifyReminder(options: ModifyReminderOptions): Promise<void>;\n /**\n * Retrieve a reminder by ID.\n *\n * @platform iOS\n * @since 7.1.0\n */\n getReminderById(options: GetReminderByIdOptions): Promise<{ result: Reminder | null }>;\n /**\n * Retrieves reminders from multiple lists.\n *\n * @platform iOS\n * @since 5.3.0\n */\n getRemindersFromLists(options: GetRemindersFromListsOptions): Promise<{ result: Reminder[] }>;\n /**\n * Opens a dialog to delete a reminder.\n *\n * @platform iOS\n * @since 7.2.0\n */\n deleteReminderWithPrompt(options: DeleteReminderWithPromptOptions): Promise<{ deleted: boolean }>;\n}\n\n/**\n * @since 7.1.0\n */\nexport interface DeleteRemindersByIdResult {\n /**\n * @since 7.1.0\n */\n deleted: string[];\n /**\n * @since 7.1.0\n */\n failed: string[];\n}\n"]}
1
+ {"version":3,"file":"reminders-operations.js","sourceRoot":"","sources":["../../../src/sub-definitions/reminders-operations.ts"],"names":[],"mappings":"","sourcesContent":["import type { CalendarSource } from '../schemas/interfaces/calendar-source';\nimport type { CreateReminderOptions } from '../schemas/interfaces/create-reminder-options';\nimport type { CreateRemindersListOptions } from '../schemas/interfaces/create-reminders-list-options';\nimport type { CreateRemindersListResult } from '../schemas/interfaces/create-reminders-list-result';\nimport type { DeleteReminderOptions } from '../schemas/interfaces/delete-reminder-options';\nimport type { DeleteReminderWithPromptOptions } from '../schemas/interfaces/delete-reminder-with-prompt-options';\nimport type { DeleteRemindersByIdOptions } from '../schemas/interfaces/delete-reminders-by-id-options';\nimport type { GetReminderByIdOptions } from '../schemas/interfaces/get-reminder-by-id-options';\nimport type { GetRemindersFromListsOptions } from '../schemas/interfaces/get-reminders-from-lists-options';\nimport type { ModifyReminderOptions } from '../schemas/interfaces/modify-reminder-options';\nimport type { Reminder } from '../schemas/interfaces/reminder';\nimport type { RemindersList } from '../schemas/interfaces/reminders-list';\n\nexport interface RemindersOperations {\n /**\n * Creates a new reminders list.\n *\n * @platform iOS\n * @since 8.1.0\n */\n createRemindersList(options: CreateRemindersListOptions): Promise<CreateRemindersListResult>;\n /**\n * Retrieves a list of calendar sources.\n *\n * @deprecated Duplicates {@link CalendarOperations#fetchAllCalendarSources}\n * @platform iOS\n * @since 6.6.0\n */\n fetchAllRemindersSources(): Promise<{ result: CalendarSource[] }>;\n /**\n * Opens the reminders app.\n *\n * @platform iOS\n * @since 7.1.0\n */\n openReminders(): Promise<void>;\n /**\n * Retrieves the default reminders list.\n *\n * @platform iOS\n * @since 7.1.0\n */\n getDefaultRemindersList(): Promise<{ result: RemindersList | null }>;\n /**\n * Retrieves all available reminders lists.\n *\n * @platform iOS\n * @since 7.1.0\n */\n getRemindersLists(): Promise<{ result: RemindersList[] }>;\n /**\n * Creates a reminder.\n *\n * @platform iOS\n * @since 0.5.0\n */\n createReminder(options: CreateReminderOptions): Promise<{ id: string }>;\n /**\n * Deletes multiple reminders.\n *\n * @deprecated Use `deleteReminder(...)`.\n * @platform iOS\n * @since 5.3.0\n */\n deleteRemindersById(options: DeleteRemindersByIdOptions): Promise<{ result: DeleteRemindersByIdResult }>;\n /**\n * Deletes a reminder.\n *\n * @platform iOS\n * @since 7.1.0\n */\n deleteReminder(options: DeleteReminderOptions): Promise<void>;\n /**\n * Modifies a reminder.\n *\n * @platform iOS\n * @since 6.7.0\n */\n modifyReminder(options: ModifyReminderOptions): Promise<void>;\n /**\n * Retrieve a reminder by ID.\n *\n * @platform iOS\n * @since 7.1.0\n */\n getReminderById(options: GetReminderByIdOptions): Promise<{ result: Reminder | null }>;\n /**\n * Retrieves reminders from multiple lists.\n *\n * @platform iOS\n * @since 5.3.0\n */\n getRemindersFromLists(options: GetRemindersFromListsOptions): Promise<{ result: Reminder[] }>;\n /**\n * Opens a dialog to delete a reminder.\n *\n * @platform iOS\n * @since 7.2.0\n */\n deleteReminderWithPrompt(options: DeleteReminderWithPromptOptions): Promise<{ deleted: boolean }>;\n}\n\n/**\n * @since 7.1.0\n */\nexport interface DeleteRemindersByIdResult {\n /**\n * @since 7.1.0\n */\n deleted: string[];\n /**\n * @since 7.1.0\n */\n failed: string[];\n}\n"]}