@ebarooni/capacitor-calendar 8.5.0 → 8.7.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.
Files changed (61) hide show
  1. package/README.md +224 -280
  2. package/android/src/main/java/dev/barooni/capacitor/calendar/implementation/CapacitorCalendar.kt +82 -0
  3. package/android/src/main/java/dev/barooni/capacitor/calendar/models/data/CalendarEvent.kt +4 -0
  4. package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/CreateEventResult.kt +1 -0
  5. package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/ListEventsInRangeResult.kt +4 -0
  6. package/dist/docs.json +547 -220
  7. package/dist/esm/index.d.ts +6 -2
  8. package/dist/esm/index.js.map +1 -1
  9. package/dist/esm/schemas/enums/reminder-recurrence-frequency.d.ts +5 -5
  10. package/dist/esm/schemas/enums/reminder-recurrence-frequency.js +5 -5
  11. package/dist/esm/schemas/enums/reminder-recurrence-frequency.js.map +1 -1
  12. package/dist/esm/schemas/interfaces/calendar-event.d.ts +140 -67
  13. package/dist/esm/schemas/interfaces/calendar-event.js.map +1 -1
  14. package/dist/esm/schemas/interfaces/create-event-result.d.ts +3 -2
  15. package/dist/esm/schemas/interfaces/create-event-result.js.map +1 -1
  16. package/dist/esm/schemas/interfaces/create-reminder-options.d.ts +39 -20
  17. package/dist/esm/schemas/interfaces/create-reminder-options.js.map +1 -1
  18. package/dist/esm/schemas/interfaces/create-reminder-result.d.ts +12 -0
  19. package/dist/esm/schemas/interfaces/create-reminder-result.js +2 -0
  20. package/dist/esm/schemas/interfaces/create-reminder-result.js.map +1 -0
  21. package/dist/esm/schemas/interfaces/delete-reminder-options.d.ts +10 -0
  22. package/dist/esm/schemas/interfaces/delete-reminder-options.js.map +1 -1
  23. package/dist/esm/schemas/interfaces/delete-reminders-by-id-result.d.ts +13 -0
  24. package/dist/esm/schemas/interfaces/delete-reminders-by-id-result.js +2 -0
  25. package/dist/esm/schemas/interfaces/delete-reminders-by-id-result.js.map +1 -0
  26. package/dist/esm/schemas/interfaces/get-reminder-by-id-result.d.ts +13 -0
  27. package/dist/esm/schemas/interfaces/get-reminder-by-id-result.js +2 -0
  28. package/dist/esm/schemas/interfaces/get-reminder-by-id-result.js.map +1 -0
  29. package/dist/esm/schemas/interfaces/get-reminders-from-lists-result.d.ts +13 -0
  30. package/dist/esm/schemas/interfaces/get-reminders-from-lists-result.js +2 -0
  31. package/dist/esm/schemas/interfaces/get-reminders-from-lists-result.js.map +1 -0
  32. package/dist/esm/schemas/interfaces/list-events-in-range-result.d.ts +13 -0
  33. package/dist/esm/schemas/interfaces/list-events-in-range-result.js +2 -0
  34. package/dist/esm/schemas/interfaces/list-events-in-range-result.js.map +1 -0
  35. package/dist/esm/schemas/interfaces/modify-reminder-options.d.ts +72 -22
  36. package/dist/esm/schemas/interfaces/modify-reminder-options.js.map +1 -1
  37. package/dist/esm/schemas/interfaces/recurrence-rule.d.ts +7 -1
  38. package/dist/esm/schemas/interfaces/recurrence-rule.js.map +1 -1
  39. package/dist/esm/schemas/interfaces/reminder.d.ts +1 -0
  40. package/dist/esm/schemas/interfaces/reminder.js.map +1 -1
  41. package/dist/esm/sub-definitions/event-operations.d.ts +2 -4
  42. package/dist/esm/sub-definitions/event-operations.js.map +1 -1
  43. package/dist/esm/sub-definitions/reminders-operations.d.ts +7 -23
  44. package/dist/esm/sub-definitions/reminders-operations.js.map +1 -1
  45. package/dist/esm/web.d.ts +9 -15
  46. package/dist/esm/web.js.map +1 -1
  47. package/dist/plugin.cjs.js +5 -5
  48. package/dist/plugin.cjs.js.map +1 -1
  49. package/dist/plugin.js +5 -5
  50. package/dist/plugin.js.map +1 -1
  51. package/ios/Plugin/Implementation/CapacitorCalendar.swift +40 -22
  52. package/ios/Plugin/Models/Inputs/CreateEventWithPromptInput.swift +3 -3
  53. package/ios/Plugin/Models/Inputs/CreateReminderInput.swift +14 -4
  54. package/ios/Plugin/Models/Inputs/DeleteReminderInput.swift +7 -1
  55. package/ios/Plugin/Models/Inputs/ModifyReminderInput.swift +66 -5
  56. package/ios/Plugin/Models/Results/CreateEventResult.swift +1 -0
  57. package/ios/Plugin/Models/Results/ListEventsInRangeResult.swift +15 -2
  58. package/ios/Plugin/Models/Structs/RecurrenceInput.swift +10 -0
  59. package/ios/Plugin/PluginError.swift +3 -0
  60. package/ios/Plugin/Utils/ImplementationHelper.swift +74 -10
  61. package/package.json +3 -3
@@ -1 +1 @@
1
- {"version":3,"file":"delete-reminder-options.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/delete-reminder-options.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * @since 7.1.0\n */\nexport interface DeleteReminderOptions {\n /**\n * @since 7.1.0\n */\n id: string;\n}\n"]}
1
+ {"version":3,"file":"delete-reminder-options.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/delete-reminder-options.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * @since 7.1.0\n */\nexport interface DeleteReminderOptions {\n /**\n * Whether to save immediately (`true`) or batch changes for later (`false`).\n * Pass `false` to batch multiple changes and commit them together using `CapacitorCalendar.commit()`, which is more efficient than committing each save individually.\n *\n * @default true\n * @platform iOS\n * @see {@link CalendarOperations#commit}\n * @since 8.7.0\n */\n commit?: boolean;\n /**\n * @since 7.1.0\n */\n id: string;\n}\n"]}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * @since 7.1.0
3
+ */
4
+ export interface DeleteRemindersByIdResult {
5
+ /**
6
+ * @since 7.1.0
7
+ */
8
+ deleted: string[];
9
+ /**
10
+ * @since 7.1.0
11
+ */
12
+ failed: string[];
13
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=delete-reminders-by-id-result.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delete-reminders-by-id-result.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/delete-reminders-by-id-result.ts"],"names":[],"mappings":"","sourcesContent":["/**\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"]}
@@ -0,0 +1,13 @@
1
+ import type { Reminder } from './reminder';
2
+ /**
3
+ * @since 7.1.0
4
+ */
5
+ export interface GetReminderByIdResult {
6
+ /**
7
+ * The reminder for the given id, or `null` when none exists.
8
+ *
9
+ * @platform iOS
10
+ * @since 7.1.0
11
+ */
12
+ result: Reminder | null;
13
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=get-reminder-by-id-result.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-reminder-by-id-result.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/get-reminder-by-id-result.ts"],"names":[],"mappings":"","sourcesContent":["import type { Reminder } from './reminder';\n\n/**\n * @since 7.1.0\n */\nexport interface GetReminderByIdResult {\n /**\n * The reminder for the given id, or `null` when none exists.\n *\n * @platform iOS\n * @since 7.1.0\n */\n result: Reminder | null;\n}\n"]}
@@ -0,0 +1,13 @@
1
+ import type { Reminder } from './reminder';
2
+ /**
3
+ * @since 5.3.0
4
+ */
5
+ export interface GetRemindersFromListsResult {
6
+ /**
7
+ * Reminders from the requested lists.
8
+ *
9
+ * @platform iOS
10
+ * @since 5.3.0
11
+ */
12
+ result: Reminder[];
13
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=get-reminders-from-lists-result.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-reminders-from-lists-result.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/get-reminders-from-lists-result.ts"],"names":[],"mappings":"","sourcesContent":["import type { Reminder } from './reminder';\n\n/**\n * @since 5.3.0\n */\nexport interface GetRemindersFromListsResult {\n /**\n * Reminders from the requested lists.\n *\n * @platform iOS\n * @since 5.3.0\n */\n result: Reminder[];\n}\n"]}
@@ -0,0 +1,13 @@
1
+ import type { CalendarEvent } from './calendar-event';
2
+ /**
3
+ * @since 8.6.0
4
+ */
5
+ export interface ListEventsInRangeResult {
6
+ /**
7
+ * Events that overlap the requested range.
8
+ *
9
+ * @platform Android, iOS
10
+ * @since 8.6.0
11
+ */
12
+ result: CalendarEvent[];
13
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=list-events-in-range-result.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-events-in-range-result.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/list-events-in-range-result.ts"],"names":[],"mappings":"","sourcesContent":["import type { CalendarEvent } from './calendar-event';\n\n/**\n * @since 8.6.0\n */\nexport interface ListEventsInRangeResult {\n /**\n * Events that overlap the requested range.\n *\n * @platform Android, iOS\n * @since 8.6.0\n */\n result: CalendarEvent[];\n}\n"]}
@@ -4,21 +4,58 @@ import type { RecurrenceRule } from './recurrence-rule';
4
4
  */
5
5
  export interface ModifyReminderOptions {
6
6
  /**
7
+ * Alert times in minutes relative to the reminder start.
8
+ * Use negative numbers for alerts before the start, and positive numbers for alerts after the start.
9
+ * Omit or pass `undefined` to leave existing alerts unchanged.
10
+ * Pass `null` or an empty array `[]` to clear alerts.
11
+ * On iOS, when both `startDate` and `dueDate` are cleared in the same call, alerts are cleared even if `alerts` is set.
12
+ * When clearing dates across separate batched calls, pass `alerts: null` or `[]` explicitly.
13
+ *
14
+ * On iOS only 2 alerts are supported.
15
+ *
16
+ * @example
17
+ * // -1440 -> 1 day before
18
+ * // -60 -> 1 hour before
19
+ * // 30 -> 30 minutes after
20
+ * [-1440, -60, 30]
21
+ *
7
22
  * @since 7.1.0
8
23
  */
9
- id: string;
24
+ alerts?: number[] | null;
25
+ /**
26
+ * Whether to save immediately (`true`) or batch changes for later (`false`).
27
+ * Pass `false` to batch multiple changes and commit them together using `CapacitorCalendar.commit()`, which is more efficient than committing each save individually.
28
+ *
29
+ * @default true
30
+ * @platform iOS
31
+ * @see {@link CalendarOperations#commit}
32
+ * @since 8.7.0
33
+ */
34
+ commit?: boolean;
10
35
  /**
36
+ * When the reminder was completed, in milliseconds since the epoch.
37
+ * Omit or pass `undefined` to leave the existing value unchanged.
38
+ * Since 8.7.0, pass `null` to clear.
39
+ * Clearing this date does not mark the reminder incomplete; set `isCompleted` to `false` for that.
40
+ *
11
41
  * @since 7.1.0
12
42
  */
13
- title?: string;
43
+ completionDate?: number | null;
14
44
  /**
45
+ * When the reminder is due, in milliseconds since the epoch.
46
+ * On iOS, if `startDate` is omitted and the reminder has no start, it is set to this value.
47
+ * Omit or pass `undefined` to leave the existing value unchanged.
48
+ * Since 8.7.0, pass `null` to clear.
49
+ * Clearing only `dueDate` leaves an existing start unchanged (including a start previously copied from due).
50
+ * Pass `startDate: null` together with `dueDate: null` to remove scheduling.
51
+ *
15
52
  * @since 7.1.0
16
53
  */
17
- listId?: string;
54
+ dueDate?: number | null;
18
55
  /**
19
56
  * @since 7.1.0
20
57
  */
21
- priority?: number;
58
+ id: string;
22
59
  /**
23
60
  * @since 7.1.0
24
61
  */
@@ -26,44 +63,57 @@ export interface ModifyReminderOptions {
26
63
  /**
27
64
  * @since 7.1.0
28
65
  */
29
- startDate?: number;
66
+ listId?: string;
30
67
  /**
68
+ * Location for the reminder.
69
+ * Omit or pass `undefined` to leave the existing value unchanged.
70
+ * Since 8.7.0, pass `null` to clear.
71
+ *
31
72
  * @since 7.1.0
32
73
  */
33
- dueDate?: number;
74
+ location?: string | null;
34
75
  /**
76
+ * Notes for the reminder.
77
+ * Omit or pass `undefined` to leave the existing value unchanged.
78
+ * Since 8.7.0, pass `null` to clear.
79
+ *
35
80
  * @since 7.1.0
36
81
  */
37
- completionDate?: number;
82
+ notes?: string | null;
38
83
  /**
39
84
  * @since 7.1.0
40
85
  */
41
- notes?: string;
86
+ priority?: number;
42
87
  /**
88
+ * Recurrence rule for the reminder.
89
+ * Omit or pass `undefined` to leave the existing value unchanged.
90
+ * Since 8.7.0, pass `null` to clear.
91
+ *
92
+ * @platform iOS
43
93
  * @since 7.1.0
44
94
  */
45
- url?: string;
95
+ recurrence?: RecurrenceRule | null;
46
96
  /**
97
+ * When the reminder starts, in milliseconds since the epoch.
98
+ * Relative `alerts` use this date.
99
+ * Omit or pass `undefined` to leave the existing value unchanged.
100
+ * Since 8.7.0, pass `null` to clear.
101
+ * If a due date remains, clearing start sets start to the due date (it does not keep the previous start).
102
+ * Pass `dueDate: null` as well to remove scheduling.
103
+ *
47
104
  * @since 7.1.0
48
105
  */
49
- location?: string;
106
+ startDate?: number | null;
50
107
  /**
51
108
  * @since 7.1.0
52
109
  */
53
- recurrence?: RecurrenceRule;
110
+ title?: string;
54
111
  /**
55
- * Alert times in minutes relative to the reminder start.
56
- * Use negative numbers for alerts before the start, and positive numbers for alerts after the start.
57
- *
58
- * On iOS only 2 alerts are supported.
59
- *
60
- * @example
61
- * // -1440 -> 1 day before
62
- * // -60 -> 1 hour before
63
- * // 30 -> 30 minutes after
64
- * [-1440, -60, 30]
112
+ * URL associated with the reminder.
113
+ * Omit or pass `undefined` to leave the existing value unchanged.
114
+ * Since 8.7.0, pass `null` to clear.
65
115
  *
66
116
  * @since 7.1.0
67
117
  */
68
- alerts?: number[];
118
+ url?: string | null;
69
119
  }
@@ -1 +1 @@
1
- {"version":3,"file":"modify-reminder-options.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/modify-reminder-options.ts"],"names":[],"mappings":"","sourcesContent":["import type { RecurrenceRule } from './recurrence-rule';\n\n/**\n * @since 7.1.0\n */\nexport interface ModifyReminderOptions {\n /**\n * @since 7.1.0\n */\n id: string;\n /**\n * @since 7.1.0\n */\n title?: string;\n /**\n * @since 7.1.0\n */\n listId?: string;\n /**\n * @since 7.1.0\n */\n priority?: number;\n /**\n * @since 7.1.0\n */\n isCompleted?: boolean;\n /**\n * @since 7.1.0\n */\n startDate?: number;\n /**\n * @since 7.1.0\n */\n dueDate?: number;\n /**\n * @since 7.1.0\n */\n completionDate?: number;\n /**\n * @since 7.1.0\n */\n notes?: string;\n /**\n * @since 7.1.0\n */\n url?: string;\n /**\n * @since 7.1.0\n */\n location?: string;\n /**\n * @since 7.1.0\n */\n recurrence?: RecurrenceRule;\n /**\n * Alert times in minutes relative to the reminder start.\n * Use negative numbers for alerts before the start, and positive numbers for alerts after the start.\n *\n * On iOS only 2 alerts are supported.\n *\n * @example\n * // -1440 -> 1 day before\n * // -60 -> 1 hour before\n * // 30 -> 30 minutes after\n * [-1440, -60, 30]\n *\n * @since 7.1.0\n */\n alerts?: number[];\n}\n"]}
1
+ {"version":3,"file":"modify-reminder-options.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/modify-reminder-options.ts"],"names":[],"mappings":"","sourcesContent":["import type { RecurrenceRule } from './recurrence-rule';\n\n/**\n * @since 7.1.0\n */\nexport interface ModifyReminderOptions {\n /**\n * Alert times in minutes relative to the reminder start.\n * Use negative numbers for alerts before the start, and positive numbers for alerts after the start.\n * Omit or pass `undefined` to leave existing alerts unchanged.\n * Pass `null` or an empty array `[]` to clear alerts.\n * On iOS, when both `startDate` and `dueDate` are cleared in the same call, alerts are cleared even if `alerts` is set.\n * When clearing dates across separate batched calls, pass `alerts: null` or `[]` explicitly.\n *\n * On iOS only 2 alerts are supported.\n *\n * @example\n * // -1440 -> 1 day before\n * // -60 -> 1 hour before\n * // 30 -> 30 minutes after\n * [-1440, -60, 30]\n *\n * @since 7.1.0\n */\n alerts?: number[] | null;\n /**\n * Whether to save immediately (`true`) or batch changes for later (`false`).\n * Pass `false` to batch multiple changes and commit them together using `CapacitorCalendar.commit()`, which is more efficient than committing each save individually.\n *\n * @default true\n * @platform iOS\n * @see {@link CalendarOperations#commit}\n * @since 8.7.0\n */\n commit?: boolean;\n /**\n * When the reminder was completed, in milliseconds since the epoch.\n * Omit or pass `undefined` to leave the existing value unchanged.\n * Since 8.7.0, pass `null` to clear.\n * Clearing this date does not mark the reminder incomplete; set `isCompleted` to `false` for that.\n *\n * @since 7.1.0\n */\n completionDate?: number | null;\n /**\n * When the reminder is due, in milliseconds since the epoch.\n * On iOS, if `startDate` is omitted and the reminder has no start, it is set to this value.\n * Omit or pass `undefined` to leave the existing value unchanged.\n * Since 8.7.0, pass `null` to clear.\n * Clearing only `dueDate` leaves an existing start unchanged (including a start previously copied from due).\n * Pass `startDate: null` together with `dueDate: null` to remove scheduling.\n *\n * @since 7.1.0\n */\n dueDate?: number | null;\n /**\n * @since 7.1.0\n */\n id: string;\n /**\n * @since 7.1.0\n */\n isCompleted?: boolean;\n /**\n * @since 7.1.0\n */\n listId?: string;\n /**\n * Location for the reminder.\n * Omit or pass `undefined` to leave the existing value unchanged.\n * Since 8.7.0, pass `null` to clear.\n *\n * @since 7.1.0\n */\n location?: string | null;\n /**\n * Notes for the reminder.\n * Omit or pass `undefined` to leave the existing value unchanged.\n * Since 8.7.0, pass `null` to clear.\n *\n * @since 7.1.0\n */\n notes?: string | null;\n /**\n * @since 7.1.0\n */\n priority?: number;\n /**\n * Recurrence rule for the reminder.\n * Omit or pass `undefined` to leave the existing value unchanged.\n * Since 8.7.0, pass `null` to clear.\n *\n * @platform iOS\n * @since 7.1.0\n */\n recurrence?: RecurrenceRule | null;\n /**\n * When the reminder starts, in milliseconds since the epoch.\n * Relative `alerts` use this date.\n * Omit or pass `undefined` to leave the existing value unchanged.\n * Since 8.7.0, pass `null` to clear.\n * If a due date remains, clearing start sets start to the due date (it does not keep the previous start).\n * Pass `dueDate: null` as well to remove scheduling.\n *\n * @since 7.1.0\n */\n startDate?: number | null;\n /**\n * @since 7.1.0\n */\n title?: string;\n /**\n * URL associated with the reminder.\n * Omit or pass `undefined` to leave the existing value unchanged.\n * Since 8.7.0, pass `null` to clear.\n *\n * @since 7.1.0\n */\n url?: string | null;\n}\n"]}
@@ -4,18 +4,24 @@ import type { RecurrenceFrequency } from '../types/recurrence-frequency';
4
4
  */
5
5
  export interface RecurrenceRule {
6
6
  /**
7
+ * How often the reminder repeats.
8
+ *
9
+ * @example 'weekly'
10
+ * @platform iOS
7
11
  * @since 7.1.0
8
12
  */
9
13
  frequency: RecurrenceFrequency;
10
14
  /**
11
15
  * How often it repeats (e.g. 1 for every occurrence, 2 for every second occurrence).
12
16
  *
17
+ * @platform iOS
13
18
  * @since 7.1.0
14
19
  */
15
20
  interval: number;
16
21
  /**
17
- * Timestamp of when the recurrence ends.
22
+ * End of the recurrence series as a Unix timestamp in milliseconds.
18
23
  *
24
+ * @platform iOS
19
25
  * @since 7.1.0
20
26
  */
21
27
  end?: number;
@@ -1 +1 @@
1
- {"version":3,"file":"recurrence-rule.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/recurrence-rule.ts"],"names":[],"mappings":"","sourcesContent":["import type { RecurrenceFrequency } from '../types/recurrence-frequency';\n\n/**\n * @since 7.1.0\n */\nexport interface RecurrenceRule {\n /**\n * @since 7.1.0\n */\n frequency: RecurrenceFrequency;\n /**\n * How often it repeats (e.g. 1 for every occurrence, 2 for every second occurrence).\n *\n * @since 7.1.0\n */\n interval: number;\n /**\n * Timestamp of when the recurrence ends.\n *\n * @since 7.1.0\n */\n end?: number;\n}\n"]}
1
+ {"version":3,"file":"recurrence-rule.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/recurrence-rule.ts"],"names":[],"mappings":"","sourcesContent":["import type { RecurrenceFrequency } from '../types/recurrence-frequency';\n\n/**\n * @since 7.1.0\n */\nexport interface RecurrenceRule {\n /**\n * How often the reminder repeats.\n *\n * @example 'weekly'\n * @platform iOS\n * @since 7.1.0\n */\n frequency: RecurrenceFrequency;\n /**\n * How often it repeats (e.g. 1 for every occurrence, 2 for every second occurrence).\n *\n * @platform iOS\n * @since 7.1.0\n */\n interval: number;\n /**\n * End of the recurrence series as a Unix timestamp in milliseconds.\n *\n * @platform iOS\n * @since 7.1.0\n */\n end?: number;\n}\n"]}
@@ -48,6 +48,7 @@ export interface Reminder {
48
48
  */
49
49
  completionDate: number | null;
50
50
  /**
51
+ * @platform iOS
51
52
  * @since 7.1.0
52
53
  */
53
54
  recurrence: RecurrenceRule[];
@@ -1 +1 @@
1
- {"version":3,"file":"reminder.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/reminder.ts"],"names":[],"mappings":"","sourcesContent":["import type { RecurrenceRule } from './recurrence-rule';\n\n/**\n * @since 7.1.0\n */\nexport interface Reminder {\n /**\n * @since 7.1.0\n */\n id: string;\n /**\n * @since 7.1.0\n */\n title: string | null;\n /**\n * @since 7.1.0\n */\n listId: string | null;\n /**\n * @since 7.1.0\n */\n isCompleted: boolean;\n /**\n * @since 7.1.0\n */\n priority: number | null;\n /**\n * @since 7.1.0\n */\n notes: string | null;\n /**\n * @since 7.1.0\n */\n location: string | null;\n /**\n * @since 7.1.0\n */\n url: string | null;\n /**\n * @since 7.1.0\n */\n startDate: number | null;\n /**\n * @since 7.1.0\n */\n dueDate: number | null;\n /**\n * @since 7.1.0\n */\n completionDate: number | null;\n /**\n * @since 7.1.0\n */\n recurrence: RecurrenceRule[];\n /**\n * @since 7.1.0\n */\n alerts: number[];\n}\n"]}
1
+ {"version":3,"file":"reminder.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/reminder.ts"],"names":[],"mappings":"","sourcesContent":["import type { RecurrenceRule } from './recurrence-rule';\n\n/**\n * @since 7.1.0\n */\nexport interface Reminder {\n /**\n * @since 7.1.0\n */\n id: string;\n /**\n * @since 7.1.0\n */\n title: string | null;\n /**\n * @since 7.1.0\n */\n listId: string | null;\n /**\n * @since 7.1.0\n */\n isCompleted: boolean;\n /**\n * @since 7.1.0\n */\n priority: number | null;\n /**\n * @since 7.1.0\n */\n notes: string | null;\n /**\n * @since 7.1.0\n */\n location: string | null;\n /**\n * @since 7.1.0\n */\n url: string | null;\n /**\n * @since 7.1.0\n */\n startDate: number | null;\n /**\n * @since 7.1.0\n */\n dueDate: number | null;\n /**\n * @since 7.1.0\n */\n completionDate: number | null;\n /**\n * @platform iOS\n * @since 7.1.0\n */\n recurrence: RecurrenceRule[];\n /**\n * @since 7.1.0\n */\n alerts: number[];\n}\n"]}
@@ -1,4 +1,3 @@
1
- import type { CalendarEvent } from '../schemas/interfaces/calendar-event';
2
1
  import type { CreateEventOptions } from '../schemas/interfaces/create-event-options';
3
2
  import type { CreateEventResult } from '../schemas/interfaces/create-event-result';
4
3
  import type { CreateEventWithPromptOptions } from '../schemas/interfaces/create-event-with-prompt-options';
@@ -7,6 +6,7 @@ import type { DeleteEventOptions } from '../schemas/interfaces/delete-event-opti
7
6
  import type { DeleteEventWithPromptOptions } from '../schemas/interfaces/delete-event-with-prompt-options';
8
7
  import type { DeleteEventsByIdOptions } from '../schemas/interfaces/delete-events-by-id-options';
9
8
  import type { ListEventsInRangeOptions } from '../schemas/interfaces/list-events-in-range-options';
9
+ import type { ListEventsInRangeResult } from '../schemas/interfaces/list-events-in-range-result';
10
10
  import type { ModifyEventOptions } from '../schemas/interfaces/modify-event-options';
11
11
  import type { ModifyEventWithPromptOptions } from '../schemas/interfaces/modify-event-with-prompt-options';
12
12
  import type { EventEditAction } from '../schemas/types/event-edit-action';
@@ -118,9 +118,7 @@ export interface EventOperations {
118
118
  * @platform Android, iOS
119
119
  * @since 0.10.0
120
120
  */
121
- listEventsInRange(options: ListEventsInRangeOptions): Promise<{
122
- result: CalendarEvent[];
123
- }>;
121
+ listEventsInRange(options: ListEventsInRangeOptions): Promise<ListEventsInRangeResult>;
124
122
  }
125
123
  /**
126
124
  * @since 7.1.0
@@ -1 +1 @@
1
- {"version":3,"file":"event-operations.js","sourceRoot":"","sources":["../../../src/sub-definitions/event-operations.ts"],"names":[],"mappings":"","sourcesContent":["import type { CalendarEvent } from '../schemas/interfaces/calendar-event';\nimport type { CreateEventOptions } from '../schemas/interfaces/create-event-options';\nimport type { CreateEventResult } from '../schemas/interfaces/create-event-result';\nimport type { CreateEventWithPromptOptions } from '../schemas/interfaces/create-event-with-prompt-options';\nimport type { CreateEventWithPromptResult } from '../schemas/interfaces/create-event-with-prompt-result';\nimport type { 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 { ListEventsInRangeOptions } from '../schemas/interfaces/list-events-in-range-options';\nimport type { ModifyEventOptions } from '../schemas/interfaces/modify-event-options';\nimport type { ModifyEventWithPromptOptions } from '../schemas/interfaces/modify-event-with-prompt-options';\nimport type { EventEditAction } from '../schemas/types/event-edit-action';\n\nexport interface EventOperations {\n /**\n * Opens the system calendar interface to create a new event.\n * On Android always returns `null` for `id`.\n * Fetch the events to find the ID of the newly created event.\n *\n * @example\n * const options = {\n * title: 'Test event',\n * startDate: Date.now(),\n * }\n * await CapacitorCalendar.createEventWithPrompt(options)\n *\n * @platform Android, iOS\n * @since 0.1.0\n */\n createEventWithPrompt(options?: CreateEventWithPromptOptions): Promise<CreateEventWithPromptResult>;\n /**\n * Opens a system calendar interface to modify an event.\n * On Android always returns `null`.\n *\n * @example\n * const options = {\n * id: 'EVENT_ID',\n * title: 'New title',\n * }\n * await CapacitorCalendar.modifyEventWithPrompt(options);\n *\n * @platform Android, iOS\n * @since 6.6.0\n */\n modifyEventWithPrompt(options: ModifyEventWithPromptOptions): Promise<{ result: EventEditAction | null }>;\n /**\n * Creates an event in the calendar.\n * On Android and iOS, inserts into the system calendar and returns its `id`.\n * On Web, there is no system calendar store: builds an `.ics` `File` as `ics`.\n * The app must download or open that file (for example with `downloadIcsFile(...)`);\n * this method does not trigger a download.\n *\n * @example\n * const { id, ics } = await CapacitorCalendar.createEvent({\n * title: 'Team standup',\n * startDate: Date.now(),\n * icsFileName: 'team-standup.ics',\n * });\n * if (ics) {\n * await downloadIcsFile(ics);\n * }\n *\n * @platform Android, iOS, Web\n * @since 0.4.0\n */\n createEvent(options: CreateEventOptions): Promise<CreateEventResult>;\n /**\n * Modifies an event.\n *\n * @platform Android, iOS\n * @since 6.6.0\n */\n modifyEvent(options: ModifyEventOptions): Promise<void>;\n /**\n * Deletes multiple events.\n *\n * @deprecated Use `deleteEvent(...)`.\n * @platform Android, iOS\n * @since 0.11.0\n */\n deleteEventsById(options: DeleteEventsByIdOptions): Promise<{ result: DeleteEventsByIdResult }>;\n /**\n * Deletes an event.\n *\n * @platform Android, iOS\n * @since 7.1.0\n */\n deleteEvent(options: DeleteEventOptions): Promise<void>;\n /**\n * Opens a dialog to delete an event.\n *\n * @platform Android, iOS\n * @since 7.1.0\n */\n deleteEventWithPrompt(options: DeleteEventWithPromptOptions): Promise<{ deleted: boolean }>;\n /**\n * Retrieves events that overlap a date range.\n *\n * An event is included when its time interval intersects `[from, to]`, including\n * multi-day events that span the range without starting or ending inside it.\n *\n * @example\n * const startOfDay = new Date();\n * startOfDay.setHours(0, 0, 0, 0);\n * const startOfNextDay = new Date(startOfDay);\n * startOfNextDay.setDate(startOfNextDay.getDate() + 1);\n *\n * const { result } = await CapacitorCalendar.listEventsInRange({\n * from: startOfDay.getTime(),\n * to: startOfNextDay.getTime(),\n * });\n *\n * @platform Android, iOS\n * @since 0.10.0\n */\n listEventsInRange(options: ListEventsInRangeOptions): Promise<{ result: CalendarEvent[] }>;\n}\n\n/**\n * @since 7.1.0\n */\nexport interface DeleteEventsByIdResult {\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":"event-operations.js","sourceRoot":"","sources":["../../../src/sub-definitions/event-operations.ts"],"names":[],"mappings":"","sourcesContent":["import type { CreateEventOptions } from '../schemas/interfaces/create-event-options';\nimport type { CreateEventResult } from '../schemas/interfaces/create-event-result';\nimport type { CreateEventWithPromptOptions } from '../schemas/interfaces/create-event-with-prompt-options';\nimport type { CreateEventWithPromptResult } from '../schemas/interfaces/create-event-with-prompt-result';\nimport type { 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 { ListEventsInRangeOptions } from '../schemas/interfaces/list-events-in-range-options';\nimport type { ListEventsInRangeResult } from '../schemas/interfaces/list-events-in-range-result';\nimport type { ModifyEventOptions } from '../schemas/interfaces/modify-event-options';\nimport type { ModifyEventWithPromptOptions } from '../schemas/interfaces/modify-event-with-prompt-options';\nimport type { EventEditAction } from '../schemas/types/event-edit-action';\n\nexport interface EventOperations {\n /**\n * Opens the system calendar interface to create a new event.\n * On Android always returns `null` for `id`.\n * Fetch the events to find the ID of the newly created event.\n *\n * @example\n * const options = {\n * title: 'Test event',\n * startDate: Date.now(),\n * }\n * await CapacitorCalendar.createEventWithPrompt(options)\n *\n * @platform Android, iOS\n * @since 0.1.0\n */\n createEventWithPrompt(options?: CreateEventWithPromptOptions): Promise<CreateEventWithPromptResult>;\n /**\n * Opens a system calendar interface to modify an event.\n * On Android always returns `null`.\n *\n * @example\n * const options = {\n * id: 'EVENT_ID',\n * title: 'New title',\n * }\n * await CapacitorCalendar.modifyEventWithPrompt(options);\n *\n * @platform Android, iOS\n * @since 6.6.0\n */\n modifyEventWithPrompt(options: ModifyEventWithPromptOptions): Promise<{ result: EventEditAction | null }>;\n /**\n * Creates an event in the calendar.\n * On Android and iOS, inserts into the system calendar and returns its `id`.\n * On Web, there is no system calendar store: builds an `.ics` `File` as `ics`.\n * The app must download or open that file (for example with `downloadIcsFile(...)`);\n * this method does not trigger a download.\n *\n * @example\n * const { id, ics } = await CapacitorCalendar.createEvent({\n * title: 'Team standup',\n * startDate: Date.now(),\n * icsFileName: 'team-standup.ics',\n * });\n * if (ics) {\n * await downloadIcsFile(ics);\n * }\n *\n * @platform Android, iOS, Web\n * @since 0.4.0\n */\n createEvent(options: CreateEventOptions): Promise<CreateEventResult>;\n /**\n * Modifies an event.\n *\n * @platform Android, iOS\n * @since 6.6.0\n */\n modifyEvent(options: ModifyEventOptions): Promise<void>;\n /**\n * Deletes multiple events.\n *\n * @deprecated Use `deleteEvent(...)`.\n * @platform Android, iOS\n * @since 0.11.0\n */\n deleteEventsById(options: DeleteEventsByIdOptions): Promise<{ result: DeleteEventsByIdResult }>;\n /**\n * Deletes an event.\n *\n * @platform Android, iOS\n * @since 7.1.0\n */\n deleteEvent(options: DeleteEventOptions): Promise<void>;\n /**\n * Opens a dialog to delete an event.\n *\n * @platform Android, iOS\n * @since 7.1.0\n */\n deleteEventWithPrompt(options: DeleteEventWithPromptOptions): Promise<{ deleted: boolean }>;\n /**\n * Retrieves events that overlap a date range.\n *\n * An event is included when its time interval intersects `[from, to]`, including\n * multi-day events that span the range without starting or ending inside it.\n *\n * @example\n * const startOfDay = new Date();\n * startOfDay.setHours(0, 0, 0, 0);\n * const startOfNextDay = new Date(startOfDay);\n * startOfNextDay.setDate(startOfNextDay.getDate() + 1);\n *\n * const { result } = await CapacitorCalendar.listEventsInRange({\n * from: startOfDay.getTime(),\n * to: startOfNextDay.getTime(),\n * });\n *\n * @platform Android, iOS\n * @since 0.10.0\n */\n listEventsInRange(options: ListEventsInRangeOptions): Promise<ListEventsInRangeResult>;\n}\n\n/**\n * @since 7.1.0\n */\nexport interface DeleteEventsByIdResult {\n /**\n * @since 7.1.0\n */\n deleted: string[];\n /**\n * @since 7.1.0\n */\n failed: string[];\n}\n"]}
@@ -1,15 +1,18 @@
1
1
  import type { CalendarSource } from '../schemas/interfaces/calendar-source';
2
2
  import type { CreateReminderOptions } from '../schemas/interfaces/create-reminder-options';
3
+ import type { CreateReminderResult } from '../schemas/interfaces/create-reminder-result';
3
4
  import type { CreateRemindersListOptions } from '../schemas/interfaces/create-reminders-list-options';
4
5
  import type { CreateRemindersListResult } from '../schemas/interfaces/create-reminders-list-result';
5
6
  import type { DeleteReminderOptions } from '../schemas/interfaces/delete-reminder-options';
6
7
  import type { DeleteReminderWithPromptOptions } from '../schemas/interfaces/delete-reminder-with-prompt-options';
7
8
  import type { DeleteRemindersByIdOptions } from '../schemas/interfaces/delete-reminders-by-id-options';
9
+ import type { DeleteRemindersByIdResult } from '../schemas/interfaces/delete-reminders-by-id-result';
8
10
  import type { DeleteRemindersListOptions } from '../schemas/interfaces/delete-reminders-list-options';
9
11
  import type { GetReminderByIdOptions } from '../schemas/interfaces/get-reminder-by-id-options';
12
+ import type { GetReminderByIdResult } from '../schemas/interfaces/get-reminder-by-id-result';
10
13
  import type { GetRemindersFromListsOptions } from '../schemas/interfaces/get-reminders-from-lists-options';
14
+ import type { GetRemindersFromListsResult } from '../schemas/interfaces/get-reminders-from-lists-result';
11
15
  import type { ModifyReminderOptions } from '../schemas/interfaces/modify-reminder-options';
12
- import type { Reminder } from '../schemas/interfaces/reminder';
13
16
  import type { RemindersList } from '../schemas/interfaces/reminders-list';
14
17
  import type { UpdateRemindersListOptions } from '../schemas/interfaces/update-reminders-list-options';
15
18
  import type { UpdateRemindersListResult } from '../schemas/interfaces/update-reminders-list-result';
@@ -69,9 +72,7 @@ export interface RemindersOperations {
69
72
  * @platform iOS
70
73
  * @since 0.5.0
71
74
  */
72
- createReminder(options: CreateReminderOptions): Promise<{
73
- id: string;
74
- }>;
75
+ createReminder(options: CreateReminderOptions): Promise<CreateReminderResult>;
75
76
  /**
76
77
  * Deletes multiple reminders.
77
78
  *
@@ -102,18 +103,14 @@ export interface RemindersOperations {
102
103
  * @platform iOS
103
104
  * @since 7.1.0
104
105
  */
105
- getReminderById(options: GetReminderByIdOptions): Promise<{
106
- result: Reminder | null;
107
- }>;
106
+ getReminderById(options: GetReminderByIdOptions): Promise<GetReminderByIdResult>;
108
107
  /**
109
108
  * Retrieves reminders from multiple lists.
110
109
  *
111
110
  * @platform iOS
112
111
  * @since 5.3.0
113
112
  */
114
- getRemindersFromLists(options: GetRemindersFromListsOptions): Promise<{
115
- result: Reminder[];
116
- }>;
113
+ getRemindersFromLists(options: GetRemindersFromListsOptions): Promise<GetRemindersFromListsResult>;
117
114
  /**
118
115
  * Opens a dialog to delete a reminder.
119
116
  *
@@ -131,16 +128,3 @@ export interface RemindersOperations {
131
128
  */
132
129
  updateRemindersList(options: UpdateRemindersListOptions): Promise<UpdateRemindersListResult>;
133
130
  }
134
- /**
135
- * @since 7.1.0
136
- */
137
- export interface DeleteRemindersByIdResult {
138
- /**
139
- * @since 7.1.0
140
- */
141
- deleted: string[];
142
- /**
143
- * @since 7.1.0
144
- */
145
- failed: string[];
146
- }
@@ -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 { 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"]}
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 { CreateReminderResult } from '../schemas/interfaces/create-reminder-result';\nimport type { CreateRemindersListOptions } from '../schemas/interfaces/create-reminders-list-options';\nimport type { CreateRemindersListResult } from '../schemas/interfaces/create-reminders-list-result';\nimport type { 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 { DeleteRemindersByIdResult } from '../schemas/interfaces/delete-reminders-by-id-result';\nimport type { DeleteRemindersListOptions } from '../schemas/interfaces/delete-reminders-list-options';\nimport type { GetReminderByIdOptions } from '../schemas/interfaces/get-reminder-by-id-options';\nimport type { GetReminderByIdResult } from '../schemas/interfaces/get-reminder-by-id-result';\nimport type { GetRemindersFromListsOptions } from '../schemas/interfaces/get-reminders-from-lists-options';\nimport type { GetRemindersFromListsResult } from '../schemas/interfaces/get-reminders-from-lists-result';\nimport type { ModifyReminderOptions } from '../schemas/interfaces/modify-reminder-options';\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<CreateReminderResult>;\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<GetReminderByIdResult>;\n /**\n * Retrieves reminders from multiple lists.\n *\n * @platform iOS\n * @since 5.3.0\n */\n getRemindersFromLists(options: GetRemindersFromListsOptions): Promise<GetRemindersFromListsResult>;\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"]}
package/dist/esm/web.d.ts CHANGED
@@ -2,7 +2,6 @@ import type { PermissionState } from '@capacitor/core';
2
2
  import { WebPlugin } from '@capacitor/core';
3
3
  import type { CapacitorCalendarPlugin } from './definitions';
4
4
  import type { Calendar } from './schemas/interfaces/calendar';
5
- import type { CalendarEvent } from './schemas/interfaces/calendar-event';
6
5
  import type { CalendarSource } from './schemas/interfaces/calendar-source';
7
6
  import type { CheckPermissionOptions } from './schemas/interfaces/check-permission-options';
8
7
  import type { CreateCalendarOptions } from './schemas/interfaces/create-calendar-options';
@@ -12,6 +11,7 @@ import type { CreateEventResult } from './schemas/interfaces/create-event-result
12
11
  import type { CreateEventWithPromptOptions } from './schemas/interfaces/create-event-with-prompt-options';
13
12
  import type { CreateEventWithPromptResult } from './schemas/interfaces/create-event-with-prompt-result';
14
13
  import type { CreateReminderOptions } from './schemas/interfaces/create-reminder-options';
14
+ import type { CreateReminderResult } from './schemas/interfaces/create-reminder-result';
15
15
  import type { CreateRemindersListOptions } from './schemas/interfaces/create-reminders-list-options';
16
16
  import type { CreateRemindersListResult } from './schemas/interfaces/create-reminders-list-result';
17
17
  import type { DeleteCalendarOptions } from './schemas/interfaces/delete-calendar-options';
@@ -21,19 +21,22 @@ import type { DeleteEventsByIdOptions } from './schemas/interfaces/delete-events
21
21
  import type { DeleteReminderOptions } from './schemas/interfaces/delete-reminder-options';
22
22
  import type { DeleteReminderWithPromptOptions } from './schemas/interfaces/delete-reminder-with-prompt-options';
23
23
  import type { DeleteRemindersByIdOptions } from './schemas/interfaces/delete-reminders-by-id-options';
24
+ import type { DeleteRemindersByIdResult } from './schemas/interfaces/delete-reminders-by-id-result';
24
25
  import type { DeleteRemindersListOptions } from './schemas/interfaces/delete-reminders-list-options';
25
26
  import type { FetchAllCalendarSourcesResult } from './schemas/interfaces/fetch-all-calendar-sources-result';
26
27
  import type { GetDefaultCalendarOptions } from './schemas/interfaces/get-default-calendar-options';
27
28
  import type { GetReminderByIdOptions } from './schemas/interfaces/get-reminder-by-id-options';
29
+ import type { GetReminderByIdResult } from './schemas/interfaces/get-reminder-by-id-result';
28
30
  import type { GetRemindersFromListsOptions } from './schemas/interfaces/get-reminders-from-lists-options';
31
+ import type { GetRemindersFromListsResult } from './schemas/interfaces/get-reminders-from-lists-result';
29
32
  import type { ListCalendarsResult } from './schemas/interfaces/list-calendars-result';
30
33
  import type { ListEventsInRangeOptions } from './schemas/interfaces/list-events-in-range-options';
34
+ import type { ListEventsInRangeResult } from './schemas/interfaces/list-events-in-range-result';
31
35
  import type { ModifyCalendarOptions } from './schemas/interfaces/modify-calendar-options';
32
36
  import type { ModifyEventOptions } from './schemas/interfaces/modify-event-options';
33
37
  import type { ModifyEventWithPromptOptions } from './schemas/interfaces/modify-event-with-prompt-options';
34
38
  import type { ModifyReminderOptions } from './schemas/interfaces/modify-reminder-options';
35
39
  import type { OpenCalendarOptions } from './schemas/interfaces/open-calendar-options';
36
- import type { Reminder } from './schemas/interfaces/reminder';
37
40
  import type { RemindersList } from './schemas/interfaces/reminders-list';
38
41
  import type { RequestPermissionOptions } from './schemas/interfaces/request-permission-options';
39
42
  import type { SelectCalendarsWithPromptOptions } from './schemas/interfaces/select-calendars-with-prompt-options';
@@ -43,7 +46,6 @@ import type { UpdateRemindersListResult } from './schemas/interfaces/update-remi
43
46
  import type { EventEditAction } from './schemas/types/event-edit-action';
44
47
  import type { CheckAllPermissionsResult, RequestAllPermissionsResult } from './sub-definitions/calendar-access';
45
48
  import type { DeleteEventsByIdResult } from './sub-definitions/event-operations';
46
- import type { DeleteRemindersByIdResult } from './sub-definitions/reminders-operations';
47
49
  export declare class CapacitorCalendarWeb extends WebPlugin implements CapacitorCalendarPlugin {
48
50
  checkPermission(_options: CheckPermissionOptions): Promise<{
49
51
  result: PermissionState;
@@ -97,20 +99,14 @@ export declare class CapacitorCalendarWeb extends WebPlugin implements Capacitor
97
99
  openCalendar(_options?: OpenCalendarOptions): Promise<void>;
98
100
  createCalendar(_options: CreateCalendarOptions): Promise<CreateCalendarResult>;
99
101
  deleteCalendar(_options: DeleteCalendarOptions): Promise<void>;
100
- createReminder(_options: CreateReminderOptions): Promise<{
101
- id: string;
102
- }>;
102
+ createReminder(_options: CreateReminderOptions): Promise<CreateReminderResult>;
103
103
  deleteRemindersById(_options: DeleteRemindersByIdOptions): Promise<{
104
104
  result: DeleteRemindersByIdResult;
105
105
  }>;
106
106
  deleteReminder(_options: DeleteReminderOptions): Promise<void>;
107
107
  modifyReminder(_options: ModifyReminderOptions): Promise<void>;
108
- getReminderById(_options: GetReminderByIdOptions): Promise<{
109
- result: Reminder | null;
110
- }>;
111
- getRemindersFromLists(_options: GetRemindersFromListsOptions): Promise<{
112
- result: Reminder[];
113
- }>;
108
+ getReminderById(_options: GetReminderByIdOptions): Promise<GetReminderByIdResult>;
109
+ getRemindersFromLists(_options: GetRemindersFromListsOptions): Promise<GetRemindersFromListsResult>;
114
110
  deleteEventsById(_options: DeleteEventsByIdOptions): Promise<{
115
111
  result: DeleteEventsByIdResult;
116
112
  }>;
@@ -118,9 +114,7 @@ export declare class CapacitorCalendarWeb extends WebPlugin implements Capacitor
118
114
  deleteEventWithPrompt(_options: DeleteEventWithPromptOptions): Promise<{
119
115
  deleted: boolean;
120
116
  }>;
121
- listEventsInRange(_options: ListEventsInRangeOptions): Promise<{
122
- result: CalendarEvent[];
123
- }>;
117
+ listEventsInRange(_options: ListEventsInRangeOptions): Promise<ListEventsInRangeResult>;
124
118
  modifyCalendar(_options: ModifyCalendarOptions): Promise<void>;
125
119
  deleteReminderWithPrompt(_options: DeleteReminderWithPromptOptions): Promise<{
126
120
  deleted: boolean;