@ebarooni/capacitor-calendar 8.1.0 → 8.3.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 +108 -23
- package/android/src/main/java/dev/barooni/capacitor/calendar/CapacitorCalendarPlugin.kt +10 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/PluginError.kt +4 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/implementation/CapacitorCalendar.kt +29 -6
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/data/EventDeleteInfo.kt +8 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/enums/EventSpan.kt +13 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/DeleteEventInput.kt +4 -1
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/DeleteEventWithPromptInput.kt +4 -1
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/DeleteEventsByIdInput.kt +2 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/utils/ImplementationHelper.kt +272 -4
- package/dist/docs.json +414 -45
- package/dist/esm/index.d.ts +4 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/schemas/enums/event-span.d.ts +4 -0
- package/dist/esm/schemas/enums/event-span.js +4 -0
- package/dist/esm/schemas/enums/event-span.js.map +1 -1
- package/dist/esm/schemas/interfaces/create-reminders-list-options.d.ts +0 -1
- package/dist/esm/schemas/interfaces/create-reminders-list-options.js.map +1 -1
- package/dist/esm/schemas/interfaces/create-reminders-list-result.d.ts +0 -1
- package/dist/esm/schemas/interfaces/create-reminders-list-result.js.map +1 -1
- package/dist/esm/schemas/interfaces/delete-event-options.d.ts +28 -3
- package/dist/esm/schemas/interfaces/delete-event-options.js.map +1 -1
- package/dist/esm/schemas/interfaces/delete-event-with-prompt-options.d.ts +38 -13
- package/dist/esm/schemas/interfaces/delete-event-with-prompt-options.js.map +1 -1
- package/dist/esm/schemas/interfaces/delete-events-by-id-options.d.ts +15 -3
- package/dist/esm/schemas/interfaces/delete-events-by-id-options.js.map +1 -1
- package/dist/esm/schemas/interfaces/delete-reminders-list-options.d.ts +23 -0
- package/dist/esm/schemas/interfaces/delete-reminders-list-options.js +2 -0
- package/dist/esm/schemas/interfaces/delete-reminders-list-options.js.map +1 -0
- package/dist/esm/schemas/interfaces/update-reminders-list-options.d.ts +40 -0
- package/dist/esm/schemas/interfaces/update-reminders-list-options.js +2 -0
- package/dist/esm/schemas/interfaces/update-reminders-list-options.js.map +1 -0
- package/dist/esm/schemas/interfaces/update-reminders-list-result.d.ts +12 -0
- package/dist/esm/schemas/interfaces/update-reminders-list-result.js +2 -0
- package/dist/esm/schemas/interfaces/update-reminders-list-result.js.map +1 -0
- package/dist/esm/sub-definitions/calendar-operations.d.ts +1 -1
- package/dist/esm/sub-definitions/calendar-operations.js.map +1 -1
- package/dist/esm/sub-definitions/reminders-operations.d.ts +17 -0
- package/dist/esm/sub-definitions/reminders-operations.js.map +1 -1
- package/dist/esm/web.d.ts +5 -0
- package/dist/esm/web.js +6 -0
- package/dist/esm/web.js.map +1 -1
- package/dist/plugin.cjs.js +10 -0
- package/dist/plugin.cjs.js.map +1 -1
- package/dist/plugin.js +10 -0
- package/dist/plugin.js.map +1 -1
- package/ios/Plugin/CapacitorCalendarPlugin.swift +30 -0
- package/ios/Plugin/Implementation/CapacitorCalendar.swift +42 -3
- package/ios/Plugin/Models/Enums/EventSpan.swift +8 -0
- package/ios/Plugin/Models/Inputs/DeleteEventInput.swift +9 -4
- package/ios/Plugin/Models/Inputs/DeleteEventWithPromptInput.swift +9 -4
- package/ios/Plugin/Models/Inputs/DeleteEventsByIdInput.swift +9 -4
- package/ios/Plugin/Models/Inputs/DeleteRemindersListInput.swift +22 -0
- package/ios/Plugin/Models/Inputs/UpdateRemindersListInput.swift +55 -0
- package/ios/Plugin/Models/Results/UpdateRemindersListResult.swift +15 -0
- package/ios/Plugin/PluginConfig.swift +3 -1
- package/ios/Plugin/PluginError.swift +3 -0
- package/ios/Plugin/Utils/ImplementationHelper.swift +7 -2
- package/package.json +1 -1
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,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;AAwC5F,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;AAyC9B,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 { DeleteRemindersListOptions } from './schemas/interfaces/delete-reminders-list-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 { UpdateRemindersListOptions } from './schemas/interfaces/update-reminders-list-options';\nimport type { UpdateRemindersListResult } from './schemas/interfaces/update-reminders-list-result';\nimport type { EventEditAction } from './schemas/types/event-edit-action';\nimport type { RecurrenceFrequency } from './schemas/types/recurrence-frequency';\nimport type { CheckAllPermissionsResult, RequestAllPermissionsResult } from './sub-definitions/calendar-access';\nimport type { DeleteEventsByIdResult } from './sub-definitions/event-operations';\nimport type { DeleteRemindersByIdResult } from './sub-definitions/reminders-operations';\n\nconst CapacitorCalendar = registerPlugin<CapacitorCalendarPlugin>('CapacitorCalendar', {\n web: () => import('./web').then((m) => new m.CapacitorCalendarWeb()),\n});\n\nexport * from './definitions';\nexport type {\n CheckAllPermissionsResult,\n CreateRemindersListOptions,\n CreateRemindersListResult,\n DeleteRemindersListOptions,\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 UpdateRemindersListOptions,\n UpdateRemindersListResult,\n};\nexport {\n CalendarPermissionScope,\n EventAvailability,\n EventSpan,\n CalendarChooserDisplayStyle,\n CalendarType,\n CalendarSourceType,\n ReminderRecurrenceFrequency,\n RecurrenceFrequency,\n EventStatus,\n AttendeeRole,\n AttendeeType,\n AttendeeStatus,\n CapacitorCalendar,\n};\n"]}
|
|
@@ -3,10 +3,14 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export declare enum EventSpan {
|
|
5
5
|
/**
|
|
6
|
+
* Only the identified event or occurrence.
|
|
7
|
+
*
|
|
6
8
|
* @since 7.1.0
|
|
7
9
|
*/
|
|
8
10
|
THIS_EVENT = 0,
|
|
9
11
|
/**
|
|
12
|
+
* The identified occurrence and future occurrences in the series.
|
|
13
|
+
*
|
|
10
14
|
* @since 7.1.0
|
|
11
15
|
*/
|
|
12
16
|
THIS_AND_FUTURE_EVENTS = 1
|
|
@@ -4,10 +4,14 @@
|
|
|
4
4
|
export var EventSpan;
|
|
5
5
|
(function (EventSpan) {
|
|
6
6
|
/**
|
|
7
|
+
* Only the identified event or occurrence.
|
|
8
|
+
*
|
|
7
9
|
* @since 7.1.0
|
|
8
10
|
*/
|
|
9
11
|
EventSpan[EventSpan["THIS_EVENT"] = 0] = "THIS_EVENT";
|
|
10
12
|
/**
|
|
13
|
+
* The identified occurrence and future occurrences in the series.
|
|
14
|
+
*
|
|
11
15
|
* @since 7.1.0
|
|
12
16
|
*/
|
|
13
17
|
EventSpan[EventSpan["THIS_AND_FUTURE_EVENTS"] = 1] = "THIS_AND_FUTURE_EVENTS";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"event-span.js","sourceRoot":"","sources":["../../../../src/schemas/enums/event-span.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,CAAN,IAAY,
|
|
1
|
+
{"version":3,"file":"event-span.js","sourceRoot":"","sources":["../../../../src/schemas/enums/event-span.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,CAAN,IAAY,SAaX;AAbD,WAAY,SAAS;IACnB;;;;OAIG;IACH,qDAAU,CAAA;IACV;;;;OAIG;IACH,6EAAsB,CAAA;AACxB,CAAC,EAbW,SAAS,KAAT,SAAS,QAapB","sourcesContent":["/**\n * @since 7.1.0\n */\nexport enum EventSpan {\n /**\n * Only the identified event or occurrence.\n *\n * @since 7.1.0\n */\n THIS_EVENT,\n /**\n * The identified occurrence and future occurrences in the series.\n *\n * @since 7.1.0\n */\n THIS_AND_FUTURE_EVENTS,\n}\n"]}
|
|
@@ -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 * @
|
|
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 * 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"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-reminders-list-result.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/create-reminders-list-result.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * @
|
|
1
|
+
{"version":3,"file":"create-reminders-list-result.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/create-reminders-list-result.ts"],"names":[],"mappings":"","sourcesContent":["/**\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"]}
|
|
@@ -4,15 +4,40 @@ import type { EventSpan } from '../enums/event-span';
|
|
|
4
4
|
*/
|
|
5
5
|
export interface DeleteEventOptions {
|
|
6
6
|
/**
|
|
7
|
+
* Whether to save the deletion to the event store immediately.
|
|
8
|
+
* Pass `false` to batch multiple changes and commit them together using `CapacitorCalendar.commit()`, which is more efficient than committing each save individually.
|
|
9
|
+
*
|
|
10
|
+
* @example false
|
|
11
|
+
* @default true
|
|
12
|
+
* @platform iOS
|
|
13
|
+
* @since 8.3.0
|
|
14
|
+
*/
|
|
15
|
+
commit?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* The ID of the event to delete.
|
|
18
|
+
*
|
|
19
|
+
* @example '1234'
|
|
20
|
+
* @platform Android, iOS
|
|
7
21
|
* @since 7.1.0
|
|
8
22
|
*/
|
|
9
23
|
id: string;
|
|
10
24
|
/**
|
|
11
|
-
* The
|
|
25
|
+
* The start time of the occurrence to delete, in milliseconds since the epoch.
|
|
26
|
+
* Use `startDate` from `listEventsInRange`.
|
|
27
|
+
* On Android, required for `THIS_EVENT` on recurring events. If omitted with `THIS_AND_FUTURE_EVENTS`, the whole series is deleted.
|
|
12
28
|
*
|
|
29
|
+
* @example 1716153600000
|
|
30
|
+
* @platform Android
|
|
31
|
+
* @since 8.3.0
|
|
32
|
+
*/
|
|
33
|
+
instanceDate?: number;
|
|
34
|
+
/**
|
|
35
|
+
* How much of a recurring series to delete.
|
|
36
|
+
*
|
|
37
|
+
* @example EventSpan.THIS_EVENT
|
|
13
38
|
* @default EventSpan.THIS_EVENT
|
|
14
|
-
* @platform iOS
|
|
15
|
-
* @
|
|
39
|
+
* @platform Android, iOS
|
|
40
|
+
* @since 7.1.0
|
|
16
41
|
*/
|
|
17
42
|
span?: EventSpan;
|
|
18
43
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-event-options.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/delete-event-options.ts"],"names":[],"mappings":"","sourcesContent":["import type { EventSpan } from '../enums/event-span';\n\n/**\n * @since 7.1.0\n */\nexport interface DeleteEventOptions {\n /**\n * @since 7.1.0\n */\n id: string;\n /**\n * The
|
|
1
|
+
{"version":3,"file":"delete-event-options.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/delete-event-options.ts"],"names":[],"mappings":"","sourcesContent":["import type { EventSpan } from '../enums/event-span';\n\n/**\n * @since 7.1.0\n */\nexport interface DeleteEventOptions {\n /**\n * Whether to save the deletion to the event store immediately.\n * Pass `false` to batch multiple changes and commit them together using `CapacitorCalendar.commit()`, which is more efficient than committing each save individually.\n *\n * @example false\n * @default true\n * @platform iOS\n * @since 8.3.0\n */\n commit?: boolean;\n /**\n * The ID of the event to delete.\n *\n * @example '1234'\n * @platform Android, iOS\n * @since 7.1.0\n */\n id: string;\n /**\n * The start time of the occurrence to delete, in milliseconds since the epoch.\n * Use `startDate` from `listEventsInRange`.\n * On Android, required for `THIS_EVENT` on recurring events. If omitted with `THIS_AND_FUTURE_EVENTS`, the whole series is deleted.\n *\n * @example 1716153600000\n * @platform Android\n * @since 8.3.0\n */\n instanceDate?: number;\n /**\n * How much of a recurring series to delete.\n *\n * @example EventSpan.THIS_EVENT\n * @default EventSpan.THIS_EVENT\n * @platform Android, iOS\n * @since 7.1.0\n */\n span?: EventSpan;\n}\n"]}
|
|
@@ -4,24 +4,49 @@ import type { EventSpan } from '../enums/event-span';
|
|
|
4
4
|
*/
|
|
5
5
|
export interface DeleteEventWithPromptOptions {
|
|
6
6
|
/**
|
|
7
|
+
* Text to show on the cancel button.
|
|
8
|
+
*
|
|
9
|
+
* @default 'Cancel'
|
|
10
|
+
* @platform Android, iOS
|
|
7
11
|
* @since 7.1.0
|
|
8
12
|
*/
|
|
9
|
-
|
|
13
|
+
cancelButtonText?: string;
|
|
10
14
|
/**
|
|
11
|
-
*
|
|
15
|
+
* Whether to save the deletion to the event store immediately.
|
|
16
|
+
* Pass `false` to batch multiple changes and commit them together using `CapacitorCalendar.commit()`, which is more efficient than committing each save individually.
|
|
12
17
|
*
|
|
13
|
-
* @
|
|
18
|
+
* @example false
|
|
19
|
+
* @default true
|
|
14
20
|
* @platform iOS
|
|
15
|
-
* @
|
|
21
|
+
* @since 8.3.0
|
|
16
22
|
*/
|
|
17
|
-
|
|
23
|
+
commit?: boolean;
|
|
18
24
|
/**
|
|
19
|
-
*
|
|
25
|
+
* Text to show on the confirm button.
|
|
20
26
|
*
|
|
27
|
+
* @default 'Delete'
|
|
21
28
|
* @platform Android, iOS
|
|
22
29
|
* @since 7.1.0
|
|
23
30
|
*/
|
|
24
|
-
|
|
31
|
+
confirmButtonText?: string;
|
|
32
|
+
/**
|
|
33
|
+
* The ID of the event to delete.
|
|
34
|
+
*
|
|
35
|
+
* @example '1234'
|
|
36
|
+
* @platform Android, iOS
|
|
37
|
+
* @since 7.1.0
|
|
38
|
+
*/
|
|
39
|
+
id: string;
|
|
40
|
+
/**
|
|
41
|
+
* The start time of the occurrence to delete, in milliseconds since the epoch.
|
|
42
|
+
* Use `startDate` from `listEventsInRange`.
|
|
43
|
+
* On Android, required for `THIS_EVENT` on recurring events. If omitted with `THIS_AND_FUTURE_EVENTS`, the whole series is deleted.
|
|
44
|
+
*
|
|
45
|
+
* @example 1716153600000
|
|
46
|
+
* @platform Android
|
|
47
|
+
* @since 8.3.0
|
|
48
|
+
*/
|
|
49
|
+
instanceDate?: number;
|
|
25
50
|
/**
|
|
26
51
|
* Message of the dialog.
|
|
27
52
|
*
|
|
@@ -30,19 +55,19 @@ export interface DeleteEventWithPromptOptions {
|
|
|
30
55
|
*/
|
|
31
56
|
message: string;
|
|
32
57
|
/**
|
|
33
|
-
*
|
|
58
|
+
* How much of a recurring series to delete.
|
|
34
59
|
*
|
|
35
|
-
* @
|
|
60
|
+
* @example EventSpan.THIS_EVENT
|
|
61
|
+
* @default EventSpan.THIS_EVENT
|
|
36
62
|
* @platform Android, iOS
|
|
37
63
|
* @since 7.1.0
|
|
38
64
|
*/
|
|
39
|
-
|
|
65
|
+
span?: EventSpan;
|
|
40
66
|
/**
|
|
41
|
-
*
|
|
67
|
+
* Title of the dialog.
|
|
42
68
|
*
|
|
43
|
-
* @default 'Cancel'
|
|
44
69
|
* @platform Android, iOS
|
|
45
70
|
* @since 7.1.0
|
|
46
71
|
*/
|
|
47
|
-
|
|
72
|
+
title: string;
|
|
48
73
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-event-with-prompt-options.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/delete-event-with-prompt-options.ts"],"names":[],"mappings":"","sourcesContent":["import type { EventSpan } from '../enums/event-span';\n\n/**\n * @since 7.1.0\n */\nexport interface DeleteEventWithPromptOptions {\n /**\n * @since 7.1.0\n */\n
|
|
1
|
+
{"version":3,"file":"delete-event-with-prompt-options.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/delete-event-with-prompt-options.ts"],"names":[],"mappings":"","sourcesContent":["import type { EventSpan } from '../enums/event-span';\n\n/**\n * @since 7.1.0\n */\nexport interface DeleteEventWithPromptOptions {\n /**\n * Text to show on the cancel button.\n *\n * @default 'Cancel'\n * @platform Android, iOS\n * @since 7.1.0\n */\n cancelButtonText?: string;\n /**\n * Whether to save the deletion to the event store immediately.\n * Pass `false` to batch multiple changes and commit them together using `CapacitorCalendar.commit()`, which is more efficient than committing each save individually.\n *\n * @example false\n * @default true\n * @platform iOS\n * @since 8.3.0\n */\n commit?: boolean;\n /**\n * Text to show on the confirm button.\n *\n * @default 'Delete'\n * @platform Android, iOS\n * @since 7.1.0\n */\n confirmButtonText?: string;\n /**\n * The ID of the event to delete.\n *\n * @example '1234'\n * @platform Android, iOS\n * @since 7.1.0\n */\n id: string;\n /**\n * The start time of the occurrence to delete, in milliseconds since the epoch.\n * Use `startDate` from `listEventsInRange`.\n * On Android, required for `THIS_EVENT` on recurring events. If omitted with `THIS_AND_FUTURE_EVENTS`, the whole series is deleted.\n *\n * @example 1716153600000\n * @platform Android\n * @since 8.3.0\n */\n instanceDate?: number;\n /**\n * Message of the dialog.\n *\n * @platform Android, iOS\n * @since 7.1.0\n */\n message: string;\n /**\n * How much of a recurring series to delete.\n *\n * @example EventSpan.THIS_EVENT\n * @default EventSpan.THIS_EVENT\n * @platform Android, iOS\n * @since 7.1.0\n */\n span?: EventSpan;\n /**\n * Title of the dialog.\n *\n * @platform Android, iOS\n * @since 7.1.0\n */\n title: string;\n}\n"]}
|
|
@@ -3,16 +3,28 @@ import type { EventSpan } from '../enums/event-span';
|
|
|
3
3
|
* @since 7.1.0
|
|
4
4
|
*/
|
|
5
5
|
export interface DeleteEventsByIdOptions {
|
|
6
|
+
/**
|
|
7
|
+
* Whether to save the deletion to the event store immediately.
|
|
8
|
+
* Pass `false` to batch multiple changes and commit them together using `CapacitorCalendar.commit()`, which is more efficient than committing each save individually.
|
|
9
|
+
*
|
|
10
|
+
* @example false
|
|
11
|
+
* @default true
|
|
12
|
+
* @platform iOS
|
|
13
|
+
* @since 8.3.0
|
|
14
|
+
*/
|
|
15
|
+
commit?: boolean;
|
|
6
16
|
/**
|
|
7
17
|
* @since 7.1.0
|
|
8
18
|
*/
|
|
9
19
|
ids: string[];
|
|
10
20
|
/**
|
|
11
|
-
*
|
|
21
|
+
* How much of a recurring series to delete.
|
|
22
|
+
* On Android, `THIS_EVENT` cannot target a single recurring occurrence here — use `deleteEvent` with `instanceDate`. Those ids are reported in `failed`.
|
|
12
23
|
*
|
|
24
|
+
* @example EventSpan.THIS_EVENT
|
|
13
25
|
* @default EventSpan.THIS_EVENT
|
|
14
|
-
* @platform iOS
|
|
15
|
-
* @
|
|
26
|
+
* @platform Android, iOS
|
|
27
|
+
* @since 7.1.0
|
|
16
28
|
*/
|
|
17
29
|
span?: EventSpan;
|
|
18
30
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-events-by-id-options.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/delete-events-by-id-options.ts"],"names":[],"mappings":"","sourcesContent":["import type { EventSpan } from '../enums/event-span';\n\n/**\n * @since 7.1.0\n */\nexport interface DeleteEventsByIdOptions {\n /**\n * @since 7.1.0\n */\n ids: string[];\n /**\n *
|
|
1
|
+
{"version":3,"file":"delete-events-by-id-options.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/delete-events-by-id-options.ts"],"names":[],"mappings":"","sourcesContent":["import type { EventSpan } from '../enums/event-span';\n\n/**\n * @since 7.1.0\n */\nexport interface DeleteEventsByIdOptions {\n /**\n * Whether to save the deletion to the event store immediately.\n * Pass `false` to batch multiple changes and commit them together using `CapacitorCalendar.commit()`, which is more efficient than committing each save individually.\n *\n * @example false\n * @default true\n * @platform iOS\n * @since 8.3.0\n */\n commit?: boolean;\n /**\n * @since 7.1.0\n */\n ids: string[];\n /**\n * How much of a recurring series to delete.\n * On Android, `THIS_EVENT` cannot target a single recurring occurrence here — use `deleteEvent` with `instanceDate`. Those ids are reported in `failed`.\n *\n * @example EventSpan.THIS_EVENT\n * @default EventSpan.THIS_EVENT\n * @platform Android, iOS\n * @since 7.1.0\n */\n span?: EventSpan;\n}\n"]}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @since 8.2.0
|
|
3
|
+
*/
|
|
4
|
+
export interface DeleteRemindersListOptions {
|
|
5
|
+
/**
|
|
6
|
+
* Whether to save the deletion to the event store immediately.
|
|
7
|
+
* Pass `false` to batch multiple changes and commit them together using `CapacitorCalendar.commit()`, which is more efficient than committing each save individually.
|
|
8
|
+
*
|
|
9
|
+
* @example false
|
|
10
|
+
* @default true
|
|
11
|
+
* @platform iOS
|
|
12
|
+
* @since 8.2.0
|
|
13
|
+
*/
|
|
14
|
+
commit?: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Identifier of the reminders list to delete.
|
|
17
|
+
*
|
|
18
|
+
* @example 'A1234567-ABCD-EFGH-IJKL-MNOPQRSTUVWX'
|
|
19
|
+
* @platform iOS
|
|
20
|
+
* @since 8.2.0
|
|
21
|
+
*/
|
|
22
|
+
id: string;
|
|
23
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-reminders-list-options.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/delete-reminders-list-options.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * @since 8.2.0\n */\nexport interface DeleteRemindersListOptions {\n /**\n * Whether to save the deletion to the event store immediately.\n * Pass `false` to batch multiple changes and commit them together using `CapacitorCalendar.commit()`, which is more efficient than committing each save individually.\n *\n * @example false\n * @default true\n * @platform iOS\n * @since 8.2.0\n */\n commit?: boolean;\n /**\n * Identifier of the reminders list to delete.\n *\n * @example 'A1234567-ABCD-EFGH-IJKL-MNOPQRSTUVWX'\n * @platform iOS\n * @since 8.2.0\n */\n id: string;\n}\n"]}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @since 8.2.0
|
|
3
|
+
*/
|
|
4
|
+
export interface UpdateRemindersListOptions {
|
|
5
|
+
/**
|
|
6
|
+
* The new color of the list.
|
|
7
|
+
* If omitted, the color is left unchanged.
|
|
8
|
+
*
|
|
9
|
+
* @example 'indigo'
|
|
10
|
+
* @platform iOS
|
|
11
|
+
* @since 8.1.0
|
|
12
|
+
*/
|
|
13
|
+
color?: 'blue' | 'brown' | 'gray' | 'green' | 'indigo' | 'orange' | 'pink' | 'purple' | 'red' | 'teal' | 'yellow';
|
|
14
|
+
/**
|
|
15
|
+
* Whether to save the update to the event store immediately.
|
|
16
|
+
* Pass `false` to batch multiple changes and commit them together using `eventStore.commit()`, which is more efficient than committing each save individually.
|
|
17
|
+
*
|
|
18
|
+
* @default true
|
|
19
|
+
* @platform iOS
|
|
20
|
+
* @since 8.2.0
|
|
21
|
+
*/
|
|
22
|
+
commit?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* The identifier of the list to update.
|
|
25
|
+
*
|
|
26
|
+
* @example 'A1234567-ABCD-EFGH-IJKL-MNOPQRSTUVWX'
|
|
27
|
+
* @platform iOS
|
|
28
|
+
* @since 8.2.0
|
|
29
|
+
*/
|
|
30
|
+
id: string;
|
|
31
|
+
/**
|
|
32
|
+
* The new title of the list.
|
|
33
|
+
* If omitted, the title is left unchanged.
|
|
34
|
+
*
|
|
35
|
+
* @example 'Groceries'
|
|
36
|
+
* @platform iOS
|
|
37
|
+
* @since 8.2.0
|
|
38
|
+
*/
|
|
39
|
+
title?: string;
|
|
40
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-reminders-list-options.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/update-reminders-list-options.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * @since 8.2.0\n */\nexport interface UpdateRemindersListOptions {\n /**\n * The new color of the list.\n * If omitted, the color is left unchanged.\n *\n * @example 'indigo'\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 update to the event store immediately.\n * Pass `false` to batch multiple changes and commit them together using `eventStore.commit()`, which is more efficient than committing each save individually.\n *\n * @default true\n * @platform iOS\n * @since 8.2.0\n */\n commit?: boolean;\n /**\n * The identifier of the list to update.\n *\n * @example 'A1234567-ABCD-EFGH-IJKL-MNOPQRSTUVWX'\n * @platform iOS\n * @since 8.2.0\n */\n id: string;\n /**\n * The new title of the list.\n * If omitted, the title is left unchanged.\n *\n * @example 'Groceries'\n * @platform iOS\n * @since 8.2.0\n */\n title?: string;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-reminders-list-result.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/update-reminders-list-result.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * @since 8.2.0\n */\nexport interface UpdateRemindersListResult {\n /**\n * Identifier of the updated reminders list.\n *\n * @platform iOS\n * @since 8.2.0\n */\n id: string;\n}\n"]}
|
|
@@ -7,7 +7,7 @@ import type { OpenCalendarOptions } from '../schemas/interfaces/open-calendar-op
|
|
|
7
7
|
import type { SelectCalendarsWithPromptOptions } from '../schemas/interfaces/select-calendars-with-prompt-options';
|
|
8
8
|
export interface CalendarOperations {
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Saves pending calendar changes.
|
|
11
11
|
*
|
|
12
12
|
* @platform iOS
|
|
13
13
|
* @since 7.1.0
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"calendar-operations.js","sourceRoot":"","sources":["../../../src/sub-definitions/calendar-operations.ts"],"names":[],"mappings":"","sourcesContent":["import type { Calendar } from '../schemas/interfaces/calendar';\nimport type { CalendarSource } from '../schemas/interfaces/calendar-source';\nimport type { CreateCalendarOptions } from '../schemas/interfaces/create-calendar-options';\nimport type { DeleteCalendarOptions } from '../schemas/interfaces/delete-calendar-options';\nimport type { ModifyCalendarOptions } from '../schemas/interfaces/modify-calendar-options';\nimport type { OpenCalendarOptions } from '../schemas/interfaces/open-calendar-options';\nimport type { SelectCalendarsWithPromptOptions } from '../schemas/interfaces/select-calendars-with-prompt-options';\n\nexport interface CalendarOperations {\n /**\n *
|
|
1
|
+
{"version":3,"file":"calendar-operations.js","sourceRoot":"","sources":["../../../src/sub-definitions/calendar-operations.ts"],"names":[],"mappings":"","sourcesContent":["import type { Calendar } from '../schemas/interfaces/calendar';\nimport type { CalendarSource } from '../schemas/interfaces/calendar-source';\nimport type { CreateCalendarOptions } from '../schemas/interfaces/create-calendar-options';\nimport type { DeleteCalendarOptions } from '../schemas/interfaces/delete-calendar-options';\nimport type { ModifyCalendarOptions } from '../schemas/interfaces/modify-calendar-options';\nimport type { OpenCalendarOptions } from '../schemas/interfaces/open-calendar-options';\nimport type { SelectCalendarsWithPromptOptions } from '../schemas/interfaces/select-calendars-with-prompt-options';\n\nexport interface CalendarOperations {\n /**\n * Saves pending calendar changes.\n *\n * @platform iOS\n * @since 7.1.0\n */\n commit(): Promise<void>;\n /**\n * Opens a system interface to choose one or multiple calendars.\n *\n * @platform iOS\n * @since 0.2.0\n */\n selectCalendarsWithPrompt(options?: SelectCalendarsWithPromptOptions): Promise<{ result: Calendar[] }>;\n /**\n * Retrieves a list of calendar sources.\n *\n * @platform iOS\n * @since 6.6.0\n */\n fetchAllCalendarSources(): Promise<{ result: CalendarSource[] }>;\n /**\n * Retrieves a list of all available calendars.\n *\n * @platform Android, iOS\n * @since 7.1.0\n */\n listCalendars(): Promise<{ result: Calendar[] }>;\n /**\n * Retrieves the default calendar.\n *\n * @platform Android, iOS\n * @since 0.3.0\n */\n getDefaultCalendar(): Promise<{ result: Calendar | null }>;\n /**\n * Opens the calendar app.\n *\n * @example\n * CapacitorCalendar.openCalendar({ date: Date.now() });\n *\n * @platform Android, iOS\n * @since 7.1.0\n */\n openCalendar(options?: OpenCalendarOptions): Promise<void>;\n /**\n * Creates a calendar.\n *\n * @platform Android, iOS\n * @since 5.2.0\n */\n createCalendar(options: CreateCalendarOptions): Promise<{ id: string }>;\n /**\n * Deletes a calendar by id.\n *\n * @platform Android, iOS\n * @since 5.2.0\n */\n deleteCalendar(options: DeleteCalendarOptions): Promise<void>;\n /**\n * Modifies a calendar with options.\n *\n * @platform Android, iOS\n * @since 7.2.0\n */\n modifyCalendar(options: ModifyCalendarOptions): Promise<void>;\n}\n"]}
|
|
@@ -5,11 +5,14 @@ import type { CreateRemindersListResult } from '../schemas/interfaces/create-rem
|
|
|
5
5
|
import type { DeleteReminderOptions } from '../schemas/interfaces/delete-reminder-options';
|
|
6
6
|
import type { DeleteReminderWithPromptOptions } from '../schemas/interfaces/delete-reminder-with-prompt-options';
|
|
7
7
|
import type { DeleteRemindersByIdOptions } from '../schemas/interfaces/delete-reminders-by-id-options';
|
|
8
|
+
import type { DeleteRemindersListOptions } from '../schemas/interfaces/delete-reminders-list-options';
|
|
8
9
|
import type { GetReminderByIdOptions } from '../schemas/interfaces/get-reminder-by-id-options';
|
|
9
10
|
import type { GetRemindersFromListsOptions } from '../schemas/interfaces/get-reminders-from-lists-options';
|
|
10
11
|
import type { ModifyReminderOptions } from '../schemas/interfaces/modify-reminder-options';
|
|
11
12
|
import type { Reminder } from '../schemas/interfaces/reminder';
|
|
12
13
|
import type { RemindersList } from '../schemas/interfaces/reminders-list';
|
|
14
|
+
import type { UpdateRemindersListOptions } from '../schemas/interfaces/update-reminders-list-options';
|
|
15
|
+
import type { UpdateRemindersListResult } from '../schemas/interfaces/update-reminders-list-result';
|
|
13
16
|
export interface RemindersOperations {
|
|
14
17
|
/**
|
|
15
18
|
* Creates a new reminders list.
|
|
@@ -18,6 +21,13 @@ export interface RemindersOperations {
|
|
|
18
21
|
* @since 8.1.0
|
|
19
22
|
*/
|
|
20
23
|
createRemindersList(options: CreateRemindersListOptions): Promise<CreateRemindersListResult>;
|
|
24
|
+
/**
|
|
25
|
+
* Deletes a reminders list.
|
|
26
|
+
*
|
|
27
|
+
* @platform iOS
|
|
28
|
+
* @since 8.2.0
|
|
29
|
+
*/
|
|
30
|
+
deleteRemindersList(options: DeleteRemindersListOptions): Promise<void>;
|
|
21
31
|
/**
|
|
22
32
|
* Retrieves a list of calendar sources.
|
|
23
33
|
*
|
|
@@ -113,6 +123,13 @@ export interface RemindersOperations {
|
|
|
113
123
|
deleteReminderWithPrompt(options: DeleteReminderWithPromptOptions): Promise<{
|
|
114
124
|
deleted: boolean;
|
|
115
125
|
}>;
|
|
126
|
+
/**
|
|
127
|
+
* Update a reminders list with options.
|
|
128
|
+
*
|
|
129
|
+
* @platform iOS
|
|
130
|
+
* @since 8.2.0
|
|
131
|
+
*/
|
|
132
|
+
updateRemindersList(options: UpdateRemindersListOptions): Promise<UpdateRemindersListResult>;
|
|
116
133
|
}
|
|
117
134
|
/**
|
|
118
135
|
* @since 7.1.0
|
|
@@ -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 { 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"]}
|
|
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 { DeleteRemindersListOptions } from '../schemas/interfaces/delete-reminders-list-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';\nimport type { UpdateRemindersListOptions } from '../schemas/interfaces/update-reminders-list-options';\nimport type { UpdateRemindersListResult } from '../schemas/interfaces/update-reminders-list-result';\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 * Deletes a reminders list.\n *\n * @platform iOS\n * @since 8.2.0\n */\n deleteRemindersList(options: DeleteRemindersListOptions): Promise<void>;\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 * Update a reminders list with options.\n *\n * @platform iOS\n * @since 8.2.0\n */\n updateRemindersList(options: UpdateRemindersListOptions): Promise<UpdateRemindersListResult>;\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"]}
|
package/dist/esm/web.d.ts
CHANGED
|
@@ -18,6 +18,7 @@ import type { DeleteEventsByIdOptions } from './schemas/interfaces/delete-events
|
|
|
18
18
|
import type { DeleteReminderOptions } from './schemas/interfaces/delete-reminder-options';
|
|
19
19
|
import type { DeleteReminderWithPromptOptions } from './schemas/interfaces/delete-reminder-with-prompt-options';
|
|
20
20
|
import type { DeleteRemindersByIdOptions } from './schemas/interfaces/delete-reminders-by-id-options';
|
|
21
|
+
import type { DeleteRemindersListOptions } from './schemas/interfaces/delete-reminders-list-options';
|
|
21
22
|
import type { GetReminderByIdOptions } from './schemas/interfaces/get-reminder-by-id-options';
|
|
22
23
|
import type { GetRemindersFromListsOptions } from './schemas/interfaces/get-reminders-from-lists-options';
|
|
23
24
|
import type { ListEventsInRangeOptions } from './schemas/interfaces/list-events-in-range-options';
|
|
@@ -29,6 +30,8 @@ import type { OpenCalendarOptions } from './schemas/interfaces/open-calendar-opt
|
|
|
29
30
|
import type { Reminder } from './schemas/interfaces/reminder';
|
|
30
31
|
import type { RemindersList } from './schemas/interfaces/reminders-list';
|
|
31
32
|
import type { SelectCalendarsWithPromptOptions } from './schemas/interfaces/select-calendars-with-prompt-options';
|
|
33
|
+
import type { UpdateRemindersListOptions } from './schemas/interfaces/update-reminders-list-options';
|
|
34
|
+
import type { UpdateRemindersListResult } from './schemas/interfaces/update-reminders-list-result';
|
|
32
35
|
import type { EventEditAction } from './schemas/types/event-edit-action';
|
|
33
36
|
import type { CheckAllPermissionsResult, RequestAllPermissionsResult } from './sub-definitions/calendar-access';
|
|
34
37
|
import type { DeleteEventsByIdResult } from './sub-definitions/event-operations';
|
|
@@ -48,6 +51,7 @@ export declare class CapacitorCalendarWeb extends WebPlugin implements Capacitor
|
|
|
48
51
|
result: PermissionState;
|
|
49
52
|
}>;
|
|
50
53
|
createRemindersList(_options: CreateRemindersListOptions): Promise<CreateRemindersListResult>;
|
|
54
|
+
deleteRemindersList(_options: DeleteRemindersListOptions): Promise<void>;
|
|
51
55
|
requestAllPermissions(): Promise<{
|
|
52
56
|
result: RequestAllPermissionsResult;
|
|
53
57
|
}>;
|
|
@@ -129,5 +133,6 @@ export declare class CapacitorCalendarWeb extends WebPlugin implements Capacitor
|
|
|
129
133
|
deleteReminderWithPrompt(_options: DeleteReminderWithPromptOptions): Promise<{
|
|
130
134
|
deleted: boolean;
|
|
131
135
|
}>;
|
|
136
|
+
updateRemindersList(_options: UpdateRemindersListOptions): Promise<UpdateRemindersListResult>;
|
|
132
137
|
private throwUnimplemented;
|
|
133
138
|
}
|
package/dist/esm/web.js
CHANGED
|
@@ -12,6 +12,9 @@ export class CapacitorCalendarWeb extends WebPlugin {
|
|
|
12
12
|
createRemindersList(_options) {
|
|
13
13
|
return this.throwUnimplemented(this.createRemindersList.name);
|
|
14
14
|
}
|
|
15
|
+
deleteRemindersList(_options) {
|
|
16
|
+
return this.throwUnimplemented(this.deleteRemindersList.name);
|
|
17
|
+
}
|
|
15
18
|
requestAllPermissions() {
|
|
16
19
|
return this.throwUnimplemented(this.requestAllPermissions.name);
|
|
17
20
|
}
|
|
@@ -111,6 +114,9 @@ export class CapacitorCalendarWeb extends WebPlugin {
|
|
|
111
114
|
deleteReminderWithPrompt(_options) {
|
|
112
115
|
return this.throwUnimplemented(this.deleteReminderWithPrompt.name);
|
|
113
116
|
}
|
|
117
|
+
updateRemindersList(_options) {
|
|
118
|
+
return this.throwUnimplemented(this.updateRemindersList.name);
|
|
119
|
+
}
|
|
114
120
|
throwUnimplemented(methodName) {
|
|
115
121
|
return Promise.reject(this.unimplemented(`${methodName} is not implemented on the web.`));
|
|
116
122
|
}
|