@ebarooni/capacitor-calendar 8.10.0 → 8.11.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 (54) hide show
  1. package/README.md +94 -54
  2. package/android/src/main/java/dev/barooni/capacitor/calendar/CapacitorCalendarPlugin.kt +18 -0
  3. package/android/src/main/java/dev/barooni/capacitor/calendar/PluginError.kt +4 -0
  4. package/android/src/main/java/dev/barooni/capacitor/calendar/implementation/CapacitorCalendar.kt +128 -2
  5. package/android/src/main/java/dev/barooni/capacitor/calendar/models/data/EventRecurrenceRule.kt +4 -3
  6. package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/GetEventByIdInput.kt +13 -0
  7. package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/ListEventsInRangeInput.kt +5 -0
  8. package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/GetEventByIdResult.kt +15 -0
  9. package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/ListEventsInRangeResult.kt +47 -43
  10. package/android/src/main/java/dev/barooni/capacitor/calendar/utils/ImplementationHelper.kt +35 -2
  11. package/dist/docs.json +204 -6
  12. package/dist/esm/index.d.ts +4 -1
  13. package/dist/esm/index.js.map +1 -1
  14. package/dist/esm/schemas/interfaces/delete-event-options.d.ts +2 -1
  15. package/dist/esm/schemas/interfaces/delete-event-options.js.map +1 -1
  16. package/dist/esm/schemas/interfaces/delete-event-with-prompt-options.d.ts +2 -1
  17. package/dist/esm/schemas/interfaces/delete-event-with-prompt-options.js.map +1 -1
  18. package/dist/esm/schemas/interfaces/get-event-by-id-options.d.ts +11 -0
  19. package/dist/esm/schemas/interfaces/get-event-by-id-options.js +2 -0
  20. package/dist/esm/schemas/interfaces/get-event-by-id-options.js.map +1 -0
  21. package/dist/esm/schemas/interfaces/get-event-by-id-result.d.ts +13 -0
  22. package/dist/esm/schemas/interfaces/get-event-by-id-result.js +2 -0
  23. package/dist/esm/schemas/interfaces/get-event-by-id-result.js.map +1 -0
  24. package/dist/esm/schemas/interfaces/list-events-in-range-options.d.ts +8 -0
  25. package/dist/esm/schemas/interfaces/list-events-in-range-options.js.map +1 -1
  26. package/dist/esm/schemas/interfaces/modify-event-options.d.ts +11 -0
  27. package/dist/esm/schemas/interfaces/modify-event-options.js.map +1 -1
  28. package/dist/esm/schemas/interfaces/modify-event-with-prompt-options.d.ts +10 -0
  29. package/dist/esm/schemas/interfaces/modify-event-with-prompt-options.js.map +1 -1
  30. package/dist/esm/sub-definitions/event-operations.d.ts +33 -0
  31. package/dist/esm/sub-definitions/event-operations.js.map +1 -1
  32. package/dist/esm/web.d.ts +3 -0
  33. package/dist/esm/web.js +3 -0
  34. package/dist/esm/web.js.map +1 -1
  35. package/dist/plugin.cjs.js +3 -0
  36. package/dist/plugin.cjs.js.map +1 -1
  37. package/dist/plugin.js +3 -0
  38. package/dist/plugin.js.map +1 -1
  39. package/ios/Plugin/CapacitorCalendarPlugin.swift +17 -1
  40. package/ios/Plugin/Implementation/CapacitorCalendar.swift +41 -7
  41. package/ios/Plugin/Models/Inputs/CreateEventInput.swift +1 -1
  42. package/ios/Plugin/Models/Inputs/CreateEventWithPromptInput.swift +61 -70
  43. package/ios/Plugin/Models/Inputs/DeleteEventInput.swift +7 -0
  44. package/ios/Plugin/Models/Inputs/DeleteEventWithPromptInput.swift +7 -0
  45. package/ios/Plugin/Models/Inputs/GetEventByIdInput.swift +16 -0
  46. package/ios/Plugin/Models/Inputs/ListEventsInRangeInput.swift +20 -0
  47. package/ios/Plugin/Models/Inputs/ModifyEventInput.swift +13 -23
  48. package/ios/Plugin/Models/Inputs/ModifyEventWithPromptInput.swift +10 -5
  49. package/ios/Plugin/Models/Results/GetEventByIdResult.swift +27 -0
  50. package/ios/Plugin/Models/Structs/RecurrenceInput.swift +14 -0
  51. package/ios/Plugin/PluginConfig.swift +1 -0
  52. package/ios/Plugin/PluginError.swift +7 -0
  53. package/ios/Plugin/Utils/ImplementationHelper.swift +33 -2
  54. package/package.json +1 -1
@@ -12,51 +12,55 @@ data class ListEventsInRangeResult(
12
12
  val result = JSObject()
13
13
  val array = JSArray()
14
14
  events.forEach { event ->
15
- val obj = JSObject()
16
- obj.put("id", event.id)
17
- obj.put("masterId", event.masterId)
18
- obj.put("title", event.title)
19
- obj.put("calendarId", event.calendarId)
20
- obj.put("calendarItemExternalIdentifier", event.calendarItemExternalIdentifier)
21
- obj.put("location", event.location)
22
- obj.put("startDate", event.startDate)
23
- obj.put("seriesStartDate", event.seriesStartDate)
24
- obj.put("endDate", event.endDate)
25
- obj.put("isAllDay", event.isAllDay)
26
- event.alerts.let { alerts ->
27
- val alertsJSArray = JSArray()
28
- alerts.forEach { alert -> alertsJSArray.put(alert) }
29
- obj.put("alerts", alertsJSArray)
30
- }
31
- obj.put("url", event.url)
32
- obj.put("description", event.description)
33
- obj.put("availability", event.availability)
34
- obj.put("organizer", event.organizer)
35
- obj.put("color", event.color)
36
- obj.put("duration", event.duration)
37
- obj.put("isDetached", event.isDetached)
38
- obj.put("isPartOfSeries", event.isPartOfSeries)
39
- obj.put("birthdayContactIdentifier", event.birthdayContactIdentifier)
40
- obj.put("status", event.status)
41
- obj.put("creationDate", event.creationDate)
42
- obj.put("lastModifiedDate", event.lastModifiedDate)
43
- event.attendees.let { attendees ->
44
- val attendeesJSArray = JSArray()
45
- attendees.forEach { attendee ->
46
- val attendeeObj = JSObject()
47
- attendeeObj.put("email", attendee.email)
48
- attendeeObj.put("name", attendee.name)
49
- attendeeObj.put("role", attendee.relationship)
50
- attendeeObj.put("status", attendee.status)
51
- attendeeObj.put("type", attendee.type)
52
- attendeesJSArray.put(attendeeObj)
53
- }
54
- obj.put("attendees", attendeesJSArray)
55
- }
56
- obj.put("timezone", event.timezone)
57
- array.put(obj)
15
+ array.put(event.toJSObject())
58
16
  }
59
17
  result.put("result", array)
60
18
  return result
61
19
  }
62
20
  }
21
+
22
+ internal fun CalendarEvent.toJSObject(): JSObject {
23
+ val obj = JSObject()
24
+ obj.put("id", id)
25
+ obj.put("masterId", masterId)
26
+ obj.put("title", title)
27
+ obj.put("calendarId", calendarId)
28
+ obj.put("calendarItemExternalIdentifier", calendarItemExternalIdentifier)
29
+ obj.put("location", location)
30
+ obj.put("startDate", startDate)
31
+ obj.put("seriesStartDate", seriesStartDate)
32
+ obj.put("endDate", endDate)
33
+ obj.put("isAllDay", isAllDay)
34
+ alerts.let { alerts ->
35
+ val alertsJSArray = JSArray()
36
+ alerts.forEach { alert -> alertsJSArray.put(alert) }
37
+ obj.put("alerts", alertsJSArray)
38
+ }
39
+ obj.put("url", url)
40
+ obj.put("description", description)
41
+ obj.put("availability", availability)
42
+ obj.put("organizer", organizer)
43
+ obj.put("color", color)
44
+ obj.put("duration", duration)
45
+ obj.put("isDetached", isDetached)
46
+ obj.put("isPartOfSeries", isPartOfSeries)
47
+ obj.put("birthdayContactIdentifier", birthdayContactIdentifier)
48
+ obj.put("status", status)
49
+ obj.put("creationDate", creationDate)
50
+ obj.put("lastModifiedDate", lastModifiedDate)
51
+ attendees.let { attendees ->
52
+ val attendeesJSArray = JSArray()
53
+ attendees.forEach { attendee ->
54
+ val attendeeObj = JSObject()
55
+ attendeeObj.put("email", attendee.email)
56
+ attendeeObj.put("name", attendee.name)
57
+ attendeeObj.put("role", attendee.relationship)
58
+ attendeeObj.put("status", attendee.status)
59
+ attendeeObj.put("type", attendee.type)
60
+ attendeesJSArray.put(attendeeObj)
61
+ }
62
+ obj.put("attendees", attendeesJSArray)
63
+ }
64
+ obj.put("timezone", timezone)
65
+ return obj
66
+ }
@@ -87,6 +87,21 @@ class ImplementationHelper {
87
87
  return Pair(start, exclusiveEnd)
88
88
  }
89
89
 
90
+ /**
91
+ * Throws [PluginError.EventNotFound] when no event row has this id.
92
+ */
93
+ fun ensureEventExists(
94
+ cr: ContentResolver,
95
+ eventId: Long,
96
+ ) {
97
+ val uri = ContentUris.withAppendedId(CalendarContract.Events.CONTENT_URI, eventId)
98
+ val projection = arrayOf(CalendarContract.Events._ID)
99
+ val exists = cr.query(uri, projection, null, null, null)?.use { cursor -> cursor.moveToFirst() } ?: false
100
+ if (!exists) {
101
+ throw PluginError.EventNotFound
102
+ }
103
+ }
104
+
90
105
  /**
91
106
  * Reads [CalendarContract.Events.ALL_DAY] for an existing event.
92
107
  * Throws [PluginError.EventNotFound] when the row is missing or unreadable,
@@ -121,9 +136,12 @@ class ImplementationHelper {
121
136
  return list
122
137
  }
123
138
 
124
- fun jsArrayToLongArray(array: JSArray): List<Long> {
139
+ fun jsArrayToLongArray(
140
+ array: JSArray,
141
+ error: PluginError = PluginError.InvalidEventId,
142
+ ): List<Long> {
125
143
  val list = array.toList<String>()
126
- return list.map { it.toLongOrNull() ?: throw PluginError.InvalidEventId }
144
+ return list.map { it.toLongOrNull() ?: throw error }
127
145
  }
128
146
 
129
147
  fun hexToColorInt(hex: String?): Int? {
@@ -801,6 +819,21 @@ class ImplementationHelper {
801
819
  }
802
820
  }
803
821
 
822
+ fun durationToMillis(duration: String): Long {
823
+ val match =
824
+ Regex("^P(?:(\\d+)W)?(?:(\\d+)D)?(?:T(?:(\\d+)H)?(?:(\\d+)M)?(?:(\\d+)S)?)?$").matchEntire(duration.trim())
825
+ ?: return 0L
826
+ val (weeks, days, hours, minutes, seconds) = match.destructured
827
+
828
+ fun part(value: String) = value.toLongOrNull() ?: 0L
829
+ return (
830
+ (part(weeks) * 7 + part(days)) * 24 * 3600 +
831
+ part(hours) * 3600 +
832
+ part(minutes) * 60 +
833
+ part(seconds)
834
+ ) * 1000
835
+ }
836
+
804
837
  fun mapAttendeeRelationship(relationship: Int): String =
805
838
  when (relationship) {
806
839
  CalendarContract.Attendees.RELATIONSHIP_ATTENDEE -> "attendee"
package/dist/docs.json CHANGED
@@ -271,6 +271,14 @@
271
271
  "name": "example",
272
272
  "text": "const options = {\n title: 'Test event',\n startDate: Date.now(),\n}\nawait CapacitorCalendar.createEventWithPrompt(options)"
273
273
  },
274
+ {
275
+ "name": "throws",
276
+ "text": "{Error} `Frequency must be provided.` — when `recurrence` is set without `frequency` (Android, iOS)."
277
+ },
278
+ {
279
+ "name": "throws",
280
+ "text": "{Error} `Invalid frequency.` — when `recurrence.frequency` is not a supported value (Android, iOS)."
281
+ },
274
282
  {
275
283
  "name": "platform",
276
284
  "text": "Android, iOS, Web"
@@ -303,6 +311,18 @@
303
311
  "name": "example",
304
312
  "text": "const options = {\n id: 'EVENT_ID',\n title: 'New title',\n}\nawait CapacitorCalendar.modifyEventWithPrompt(options);"
305
313
  },
314
+ {
315
+ "name": "throws",
316
+ "text": "{Error} `Event not found.` — when no event exists for `id`, or no occurrence starts at `instanceDate` (iOS)."
317
+ },
318
+ {
319
+ "name": "throws",
320
+ "text": "{Error} `Frequency must be provided.` — when `recurrence` is set without `frequency`."
321
+ },
322
+ {
323
+ "name": "throws",
324
+ "text": "{Error} `Invalid frequency.` — when `recurrence.frequency` is not a supported value."
325
+ },
306
326
  {
307
327
  "name": "platform",
308
328
  "text": "Android, iOS"
@@ -335,6 +355,14 @@
335
355
  "name": "example",
336
356
  "text": "const { id, ics } = await CapacitorCalendar.createEvent({\n title: 'Team standup',\n startDate: Date.now(),\n icsFileName: 'team-standup.ics',\n autoDownloadIcsFile: true,\n});"
337
357
  },
358
+ {
359
+ "name": "throws",
360
+ "text": "{Error} `Frequency must be provided.` — when `recurrence` is set without `frequency` (Android, iOS)."
361
+ },
362
+ {
363
+ "name": "throws",
364
+ "text": "{Error} `Invalid frequency.` — when `recurrence.frequency` is not a supported value (Android, iOS)."
365
+ },
338
366
  {
339
367
  "name": "platform",
340
368
  "text": "Android, iOS, Web"
@@ -363,6 +391,22 @@
363
391
  ],
364
392
  "returns": "Promise<void>",
365
393
  "tags": [
394
+ {
395
+ "name": "throws",
396
+ "text": "{Error} `Event not found.` — when no event exists for `id`, or no occurrence starts at `instanceDate` (iOS)."
397
+ },
398
+ {
399
+ "name": "throws",
400
+ "text": "{Error} `Frequency must be provided.` — when `recurrence` is set without `frequency`."
401
+ },
402
+ {
403
+ "name": "throws",
404
+ "text": "{Error} `Invalid frequency.` — when `recurrence.frequency` is not a supported value."
405
+ },
406
+ {
407
+ "name": "throws",
408
+ "text": "{Error} `Recurrence cannot be changed for a single occurrence. Use THIS_AND_FUTURE_EVENTS.` — when `recurrence` is set with `instanceDate` and `THIS_EVENT` on a recurring event (iOS)."
409
+ },
366
410
  {
367
411
  "name": "platform",
368
412
  "text": "Android, iOS"
@@ -372,7 +416,7 @@
372
416
  "text": "6.6.0"
373
417
  }
374
418
  ],
375
- "docs": "Modifies an event.",
419
+ "docs": "Modifies an event.\nFields that you omit keep their current values.",
376
420
  "complexTypes": [
377
421
  "ModifyEventOptions"
378
422
  ],
@@ -422,6 +466,10 @@
422
466
  ],
423
467
  "returns": "Promise<void>",
424
468
  "tags": [
469
+ {
470
+ "name": "throws",
471
+ "text": "{Error} `Event not found.` — when no event exists for `id`, or no occurrence starts at `instanceDate` (iOS)."
472
+ },
425
473
  {
426
474
  "name": "platform",
427
475
  "text": "Android, iOS"
@@ -449,6 +497,10 @@
449
497
  ],
450
498
  "returns": "Promise<{ deleted: boolean; }>",
451
499
  "tags": [
500
+ {
501
+ "name": "throws",
502
+ "text": "{Error} `Event not found.` — when no event exists for `id`, or no occurrence starts at `instanceDate` (iOS)."
503
+ },
452
504
  {
453
505
  "name": "platform",
454
506
  "text": "Android, iOS"
@@ -489,13 +541,45 @@
489
541
  "text": "0.10.0"
490
542
  }
491
543
  ],
492
- "docs": "Retrieves events that overlap a date range.\n\nAn event is included when its time interval intersects `[from, to]`, including\nmulti-day events that span the range without starting or ending inside it.",
544
+ "docs": "Retrieves events that overlap a date range.\n\nAn event is included when its time interval intersects `[from, to]`, including\nmulti-day events that span the range without starting or ending inside it.\nPass `calendarIds` to search only some calendars.",
493
545
  "complexTypes": [
494
546
  "ListEventsInRangeResult",
495
547
  "ListEventsInRangeOptions"
496
548
  ],
497
549
  "slug": "listeventsinrange"
498
550
  },
551
+ {
552
+ "name": "getEventById",
553
+ "signature": "(options: GetEventByIdOptions) => Promise<GetEventByIdResult>",
554
+ "parameters": [
555
+ {
556
+ "name": "options",
557
+ "docs": "",
558
+ "type": "GetEventByIdOptions"
559
+ }
560
+ ],
561
+ "returns": "Promise<GetEventByIdResult>",
562
+ "tags": [
563
+ {
564
+ "name": "example",
565
+ "text": "const { event } = await CapacitorCalendar.getEventById({ id: eventId });"
566
+ },
567
+ {
568
+ "name": "platform",
569
+ "text": "Android, iOS"
570
+ },
571
+ {
572
+ "name": "since",
573
+ "text": "8.11.0"
574
+ }
575
+ ],
576
+ "docs": "Retrieves an event by id.\n\nFor a recurring event, the result is the first occurrence on iOS and the series master on Android.",
577
+ "complexTypes": [
578
+ "GetEventByIdResult",
579
+ "GetEventByIdOptions"
580
+ ],
581
+ "slug": "geteventbyid"
582
+ },
499
583
  {
500
584
  "name": "commit",
501
585
  "signature": "() => Promise<void>",
@@ -1948,6 +2032,26 @@
1948
2032
  "complexTypes": [],
1949
2033
  "type": "string"
1950
2034
  },
2035
+ {
2036
+ "name": "instanceDate",
2037
+ "tags": [
2038
+ {
2039
+ "text": "1716153600000",
2040
+ "name": "example"
2041
+ },
2042
+ {
2043
+ "text": "iOS",
2044
+ "name": "platform"
2045
+ },
2046
+ {
2047
+ "text": "8.11.0",
2048
+ "name": "since"
2049
+ }
2050
+ ],
2051
+ "docs": "The start time of the occurrence to modify, in milliseconds since the epoch.\nUse `startDate` from `listEventsInRange`.\nIf omitted, the first occurrence of a recurring series is the target.",
2052
+ "complexTypes": [],
2053
+ "type": "number | undefined"
2054
+ },
1951
2055
  {
1952
2056
  "name": "invitees",
1953
2057
  "tags": [
@@ -2678,6 +2782,26 @@
2678
2782
  "complexTypes": [],
2679
2783
  "type": "string"
2680
2784
  },
2785
+ {
2786
+ "name": "instanceDate",
2787
+ "tags": [
2788
+ {
2789
+ "text": "1716153600000",
2790
+ "name": "example"
2791
+ },
2792
+ {
2793
+ "text": "iOS",
2794
+ "name": "platform"
2795
+ },
2796
+ {
2797
+ "text": "8.11.0",
2798
+ "name": "since"
2799
+ }
2800
+ ],
2801
+ "docs": "The start time of the occurrence to modify, in milliseconds since the epoch.\nUse `startDate` from `listEventsInRange`.\nIf omitted, the first occurrence of a recurring series is the target.\nThe call rejects when `recurrence` is also set and `span` is `THIS_EVENT`. Use `THIS_AND_FUTURE_EVENTS` to change the rule from this occurrence.",
2802
+ "complexTypes": [],
2803
+ "type": "number | undefined"
2804
+ },
2681
2805
  {
2682
2806
  "name": "isAllDay",
2683
2807
  "tags": [
@@ -2994,7 +3118,7 @@
2994
3118
  "name": "example"
2995
3119
  },
2996
3120
  {
2997
- "text": "Android",
3121
+ "text": "Android, iOS",
2998
3122
  "name": "platform"
2999
3123
  },
3000
3124
  {
@@ -3002,7 +3126,7 @@
3002
3126
  "name": "since"
3003
3127
  }
3004
3128
  ],
3005
- "docs": "The start time of the occurrence to delete, in milliseconds since the epoch.\nUse `startDate` from `listEventsInRange`.\nOn Android, required for `THIS_EVENT` on recurring events. If omitted with `THIS_AND_FUTURE_EVENTS`, the whole series is deleted.",
3129
+ "docs": "The start time of the occurrence to delete, in milliseconds since the epoch.\nUse `startDate` from `listEventsInRange`.\nOn Android, required for `THIS_EVENT` on recurring events. If omitted with `THIS_AND_FUTURE_EVENTS`, the whole series is deleted.\nOn iOS, optional since 8.11.0. If omitted, the first occurrence of the series is the target.",
3006
3130
  "complexTypes": [],
3007
3131
  "type": "number | undefined"
3008
3132
  },
@@ -3138,7 +3262,7 @@
3138
3262
  "name": "example"
3139
3263
  },
3140
3264
  {
3141
- "text": "Android",
3265
+ "text": "Android, iOS",
3142
3266
  "name": "platform"
3143
3267
  },
3144
3268
  {
@@ -3146,7 +3270,7 @@
3146
3270
  "name": "since"
3147
3271
  }
3148
3272
  ],
3149
- "docs": "The start time of the occurrence to delete, in milliseconds since the epoch.\nUse `startDate` from `listEventsInRange`.\nOn Android, required for `THIS_EVENT` on recurring events. If omitted with `THIS_AND_FUTURE_EVENTS`, the whole series is deleted.",
3273
+ "docs": "The start time of the occurrence to delete, in milliseconds since the epoch.\nUse `startDate` from `listEventsInRange`.\nOn Android, required for `THIS_EVENT` on recurring events. If omitted with `THIS_AND_FUTURE_EVENTS`, the whole series is deleted.\nOn iOS, optional since 8.11.0. If omitted, the first occurrence of the series is the target.",
3150
3274
  "complexTypes": [],
3151
3275
  "type": "number | undefined"
3152
3276
  },
@@ -3739,6 +3863,80 @@
3739
3863
  "docs": "The end of the range, in milliseconds since the epoch.\nEvents that begin at or after this time are typically excluded; prefer the\nnext day's start when querying a single calendar day.",
3740
3864
  "complexTypes": [],
3741
3865
  "type": "number"
3866
+ },
3867
+ {
3868
+ "name": "calendarIds",
3869
+ "tags": [
3870
+ {
3871
+ "text": "[\"1\", \"2\"]",
3872
+ "name": "example"
3873
+ },
3874
+ {
3875
+ "text": "8.11.0",
3876
+ "name": "since"
3877
+ }
3878
+ ],
3879
+ "docs": "Ids of the calendars to search. When omitted or empty, all calendars are searched.\nRejects if an id does not match a calendar.",
3880
+ "complexTypes": [],
3881
+ "type": "string[] | undefined"
3882
+ }
3883
+ ]
3884
+ },
3885
+ {
3886
+ "name": "GetEventByIdResult",
3887
+ "slug": "geteventbyidresult",
3888
+ "docs": "",
3889
+ "tags": [
3890
+ {
3891
+ "text": "8.11.0",
3892
+ "name": "since"
3893
+ }
3894
+ ],
3895
+ "methods": [],
3896
+ "properties": [
3897
+ {
3898
+ "name": "event",
3899
+ "tags": [
3900
+ {
3901
+ "text": "Android, iOS",
3902
+ "name": "platform"
3903
+ },
3904
+ {
3905
+ "text": "8.11.0",
3906
+ "name": "since"
3907
+ }
3908
+ ],
3909
+ "docs": "The event for the given id, or `null` when none exists.",
3910
+ "complexTypes": [
3911
+ "CalendarEvent"
3912
+ ],
3913
+ "type": "CalendarEvent | null"
3914
+ }
3915
+ ]
3916
+ },
3917
+ {
3918
+ "name": "GetEventByIdOptions",
3919
+ "slug": "geteventbyidoptions",
3920
+ "docs": "",
3921
+ "tags": [
3922
+ {
3923
+ "text": "8.11.0",
3924
+ "name": "since"
3925
+ }
3926
+ ],
3927
+ "methods": [],
3928
+ "properties": [
3929
+ {
3930
+ "name": "id",
3931
+ "tags": [
3932
+ {
3933
+ "text": "8.11.0",
3934
+ "name": "since"
3935
+ }
3936
+ ],
3937
+ "docs": "The event id.",
3938
+ "complexTypes": [],
3939
+ "type": "string"
3742
3940
  }
3743
3941
  ]
3744
3942
  },
@@ -36,9 +36,12 @@ import type { DeleteRemindersByIdOptions } from './schemas/interfaces/delete-rem
36
36
  import type { DeleteRemindersByIdResult } from './schemas/interfaces/delete-reminders-by-id-result';
37
37
  import type { DeleteRemindersListOptions } from './schemas/interfaces/delete-reminders-list-options';
38
38
  import type { EventGuest } from './schemas/interfaces/event-guest';
39
+ import type { EventRecurrenceRule } from './schemas/interfaces/event-recurrence-rule';
39
40
  import type { FetchAllCalendarSourcesResult } from './schemas/interfaces/fetch-all-calendar-sources-result';
40
41
  import type { GetDefaultCalendarOptions } from './schemas/interfaces/get-default-calendar-options';
41
42
  import type { GetDefaultRemindersListResult } from './schemas/interfaces/get-default-reminders-list-result';
43
+ import type { GetEventByIdOptions } from './schemas/interfaces/get-event-by-id-options';
44
+ import type { GetEventByIdResult } from './schemas/interfaces/get-event-by-id-result';
42
45
  import type { GetReminderByIdOptions } from './schemas/interfaces/get-reminder-by-id-options';
43
46
  import type { GetReminderByIdResult } from './schemas/interfaces/get-reminder-by-id-result';
44
47
  import type { GetRemindersFromListsOptions } from './schemas/interfaces/get-reminders-from-lists-options';
@@ -69,5 +72,5 @@ import type { DeleteEventsByIdResult } from './sub-definitions/event-operations'
69
72
  import { downloadIcsFile } from './web/download-ics-file';
70
73
  declare const CapacitorCalendar: CapacitorCalendarPlugin;
71
74
  export * from './definitions';
72
- export type { Calendar, CalendarEvent, CalendarSource, CheckAllPermissionsResult, CheckPermissionOptions, CreateCalendarOptions, CreateCalendarResult, CreateEventOptions, CreateEventResult, CreateEventWithPromptOptions, CreateEventWithPromptResult, CreateReminderOptions, CreateReminderResult, CreateRemindersListOptions, CreateRemindersListResult, DeleteCalendarOptions, DeleteEventOptions, DeleteEventWithPromptOptions, DeleteEventsByIdOptions, DeleteEventsByIdResult, DeleteReminderOptions, DeleteReminderWithPromptOptions, DeleteReminderWithPromptResult, DeleteRemindersByIdOptions, DeleteRemindersByIdResult, DeleteRemindersListOptions, EventEditAction, EventGuest, FetchAllCalendarSourcesResult, GetDefaultCalendarOptions, GetDefaultRemindersListResult, GetReminderByIdOptions, GetReminderByIdResult, GetRemindersFromListsOptions, GetRemindersFromListsResult, GetRemindersListsResult, ListCalendarsResult, ListEventsInRangeOptions, ListEventsInRangeResult, ModifyCalendarOptions, ModifyEventOptions, ModifyEventWithPromptOptions, ModifyReminderOptions, OpenCalendarOptions, RecurrenceRule, Reminder, ReminderRecurrenceRule, RemindersList, RequestAllPermissionsResult, RequestPermissionOptions, SelectCalendarsWithPromptOptions, SelectCalendarsWithPromptResult, SystemColorName, UpdateRemindersListOptions, UpdateRemindersListResult, };
75
+ export type { Calendar, CalendarEvent, CalendarSource, CheckAllPermissionsResult, CheckPermissionOptions, CreateCalendarOptions, CreateCalendarResult, CreateEventOptions, CreateEventResult, CreateEventWithPromptOptions, CreateEventWithPromptResult, CreateReminderOptions, CreateReminderResult, CreateRemindersListOptions, CreateRemindersListResult, DeleteCalendarOptions, DeleteEventOptions, DeleteEventWithPromptOptions, DeleteEventsByIdOptions, DeleteEventsByIdResult, DeleteReminderOptions, DeleteReminderWithPromptOptions, DeleteReminderWithPromptResult, DeleteRemindersByIdOptions, DeleteRemindersByIdResult, DeleteRemindersListOptions, EventEditAction, EventGuest, EventRecurrenceRule, FetchAllCalendarSourcesResult, GetDefaultCalendarOptions, GetDefaultRemindersListResult, GetEventByIdOptions, GetEventByIdResult, GetReminderByIdOptions, GetReminderByIdResult, GetRemindersFromListsOptions, GetRemindersFromListsResult, GetRemindersListsResult, ListCalendarsResult, ListEventsInRangeOptions, ListEventsInRangeResult, ModifyCalendarOptions, ModifyEventOptions, ModifyEventWithPromptOptions, ModifyReminderOptions, OpenCalendarOptions, RecurrenceRule, Reminder, ReminderRecurrenceRule, RemindersList, RequestAllPermissionsResult, RequestPermissionOptions, SelectCalendarsWithPromptOptions, SelectCalendarsWithPromptResult, SystemColorName, UpdateRemindersListOptions, UpdateRemindersListResult, };
73
76
  export { CalendarPermissionScope, CapacitorCalendarErrorCode, EventAvailability, EventSpan, CalendarChooserDisplayStyle, CalendarType, CalendarSourceType, ReminderRecurrenceFrequency, RecurrenceFrequency, EventStatus, AttendeeRole, AttendeeType, AttendeeStatus, CapacitorCalendar, downloadIcsFile, };
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAGjD,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACjE,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,2BAA2B,EAAE,MAAM,gDAAgD,CAAC;AAC7F,OAAO,EAAE,uBAAuB,EAAE,MAAM,2CAA2C,CAAC;AACpF,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAC1E,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,0BAA0B,EAAE,MAAM,+CAA+C,CAAC;AAC3F,OAAO,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AACvE,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,EAAE,2BAA2B,EAAE,MAAM,+CAA+C,CAAC;AAwD5F,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE1D,MAAM,iBAAiB,GAAG,cAAc,CAA0B,mBAAmB,EAAE;IACrF,GAAG,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC,oBAAoB,EAAE,CAAC;CACrE,CAAC,CAAC;AAEH,cAAc,eAAe,CAAC;AA0D9B,OAAO,EACL,uBAAuB,EACvB,0BAA0B,EAC1B,iBAAiB,EACjB,SAAS,EACT,2BAA2B,EAC3B,YAAY,EACZ,kBAAkB,EAClB,2BAA2B,EAE3B,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,cAAc,EACd,iBAAiB,EACjB,eAAe,GAChB,CAAC","sourcesContent":["import { registerPlugin } from '@capacitor/core';\n\nimport type { CapacitorCalendarPlugin } from './definitions';\nimport { AttendeeRole } from './schemas/enums/attendee-role';\nimport { AttendeeStatus } from './schemas/enums/attendee-status';\nimport { AttendeeType } from './schemas/enums/attendee-type';\nimport { CalendarChooserDisplayStyle } from './schemas/enums/calendar-chooser-display-style';\nimport { CalendarPermissionScope } from './schemas/enums/calendar-permission-scope';\nimport { CalendarSourceType } from './schemas/enums/calendar-source-type';\nimport { CalendarType } from './schemas/enums/calendar-type';\nimport { CapacitorCalendarErrorCode } from './schemas/enums/capacitor-calendar-error-code';\nimport { EventAvailability } from './schemas/enums/event-availability';\nimport { EventSpan } from './schemas/enums/event-span';\nimport { EventStatus } from './schemas/enums/event-status';\nimport { ReminderRecurrenceFrequency } from './schemas/enums/reminder-recurrence-frequency';\nimport type { Calendar } from './schemas/interfaces/calendar';\nimport type { CalendarEvent } from './schemas/interfaces/calendar-event';\nimport type { CalendarSource } from './schemas/interfaces/calendar-source';\nimport type { CheckPermissionOptions } from './schemas/interfaces/check-permission-options';\nimport type { CreateCalendarOptions } from './schemas/interfaces/create-calendar-options';\nimport type { CreateCalendarResult } from './schemas/interfaces/create-calendar-result';\nimport type { CreateEventOptions } from './schemas/interfaces/create-event-options';\nimport type { CreateEventResult } from './schemas/interfaces/create-event-result';\nimport type { CreateEventWithPromptOptions } from './schemas/interfaces/create-event-with-prompt-options';\nimport type { CreateEventWithPromptResult } from './schemas/interfaces/create-event-with-prompt-result';\nimport type { CreateReminderOptions } from './schemas/interfaces/create-reminder-options';\nimport type { CreateReminderResult } from './schemas/interfaces/create-reminder-result';\nimport type { CreateRemindersListOptions } from './schemas/interfaces/create-reminders-list-options';\nimport type { CreateRemindersListResult } from './schemas/interfaces/create-reminders-list-result';\nimport type { DeleteCalendarOptions } from './schemas/interfaces/delete-calendar-options';\nimport type { DeleteEventOptions } from './schemas/interfaces/delete-event-options';\nimport type { DeleteEventWithPromptOptions } from './schemas/interfaces/delete-event-with-prompt-options';\nimport type { DeleteEventsByIdOptions } from './schemas/interfaces/delete-events-by-id-options';\nimport type { DeleteReminderOptions } from './schemas/interfaces/delete-reminder-options';\nimport type { DeleteReminderWithPromptOptions } from './schemas/interfaces/delete-reminder-with-prompt-options';\nimport type { DeleteReminderWithPromptResult } from './schemas/interfaces/delete-reminder-with-prompt-result';\nimport type { DeleteRemindersByIdOptions } from './schemas/interfaces/delete-reminders-by-id-options';\nimport type { DeleteRemindersByIdResult } from './schemas/interfaces/delete-reminders-by-id-result';\nimport type { DeleteRemindersListOptions } from './schemas/interfaces/delete-reminders-list-options';\nimport type { EventGuest } from './schemas/interfaces/event-guest';\nimport type { FetchAllCalendarSourcesResult } from './schemas/interfaces/fetch-all-calendar-sources-result';\nimport type { GetDefaultCalendarOptions } from './schemas/interfaces/get-default-calendar-options';\nimport type { GetDefaultRemindersListResult } from './schemas/interfaces/get-default-reminders-list-result';\nimport type { GetReminderByIdOptions } from './schemas/interfaces/get-reminder-by-id-options';\nimport type { GetReminderByIdResult } from './schemas/interfaces/get-reminder-by-id-result';\nimport type { GetRemindersFromListsOptions } from './schemas/interfaces/get-reminders-from-lists-options';\nimport type { GetRemindersFromListsResult } from './schemas/interfaces/get-reminders-from-lists-result';\nimport type { GetRemindersListsResult } from './schemas/interfaces/get-reminders-lists-result';\nimport type { ListCalendarsResult } from './schemas/interfaces/list-calendars-result';\nimport type { ListEventsInRangeOptions } from './schemas/interfaces/list-events-in-range-options';\nimport type { ListEventsInRangeResult } from './schemas/interfaces/list-events-in-range-result';\nimport type { ModifyCalendarOptions } from './schemas/interfaces/modify-calendar-options';\nimport type { ModifyEventOptions } from './schemas/interfaces/modify-event-options';\nimport type { ModifyEventWithPromptOptions } from './schemas/interfaces/modify-event-with-prompt-options';\nimport type { ModifyReminderOptions } from './schemas/interfaces/modify-reminder-options';\nimport type { OpenCalendarOptions } from './schemas/interfaces/open-calendar-options';\nimport type { RecurrenceRule } from './schemas/interfaces/recurrence-rule';\nimport type { Reminder } from './schemas/interfaces/reminder';\nimport type { ReminderRecurrenceRule } from './schemas/interfaces/reminder-recurrence-rule';\nimport type { RemindersList } from './schemas/interfaces/reminders-list';\nimport type { RequestPermissionOptions } from './schemas/interfaces/request-permission-options';\nimport type { SelectCalendarsWithPromptOptions } from './schemas/interfaces/select-calendars-with-prompt-options';\nimport type { SelectCalendarsWithPromptResult } from './schemas/interfaces/select-calendars-with-prompt-result';\nimport type { UpdateRemindersListOptions } from './schemas/interfaces/update-reminders-list-options';\nimport type { UpdateRemindersListResult } from './schemas/interfaces/update-reminders-list-result';\nimport type { EventEditAction } from './schemas/types/event-edit-action';\nimport type { RecurrenceFrequency } from './schemas/types/recurrence-frequency';\nimport type { SystemColorName } from './schemas/types/system-color-name';\nimport type { CheckAllPermissionsResult, RequestAllPermissionsResult } from './sub-definitions/calendar-access';\nimport type { DeleteEventsByIdResult } from './sub-definitions/event-operations';\nimport { downloadIcsFile } from './web/download-ics-file';\n\nconst CapacitorCalendar = registerPlugin<CapacitorCalendarPlugin>('CapacitorCalendar', {\n web: () => import('./web').then((m) => new m.CapacitorCalendarWeb()),\n});\n\nexport * from './definitions';\nexport type {\n Calendar,\n CalendarEvent,\n CalendarSource,\n CheckAllPermissionsResult,\n CheckPermissionOptions,\n CreateCalendarOptions,\n CreateCalendarResult,\n CreateEventOptions,\n CreateEventResult,\n CreateEventWithPromptOptions,\n CreateEventWithPromptResult,\n CreateReminderOptions,\n CreateReminderResult,\n CreateRemindersListOptions,\n CreateRemindersListResult,\n DeleteCalendarOptions,\n DeleteEventOptions,\n DeleteEventWithPromptOptions,\n DeleteEventsByIdOptions,\n DeleteEventsByIdResult,\n DeleteReminderOptions,\n DeleteReminderWithPromptOptions,\n DeleteReminderWithPromptResult,\n DeleteRemindersByIdOptions,\n DeleteRemindersByIdResult,\n DeleteRemindersListOptions,\n EventEditAction,\n EventGuest,\n FetchAllCalendarSourcesResult,\n GetDefaultCalendarOptions,\n GetDefaultRemindersListResult,\n GetReminderByIdOptions,\n GetReminderByIdResult,\n GetRemindersFromListsOptions,\n GetRemindersFromListsResult,\n GetRemindersListsResult,\n ListCalendarsResult,\n ListEventsInRangeOptions,\n ListEventsInRangeResult,\n ModifyCalendarOptions,\n ModifyEventOptions,\n ModifyEventWithPromptOptions,\n ModifyReminderOptions,\n OpenCalendarOptions,\n RecurrenceRule,\n Reminder,\n ReminderRecurrenceRule,\n RemindersList,\n RequestAllPermissionsResult,\n RequestPermissionOptions,\n SelectCalendarsWithPromptOptions,\n SelectCalendarsWithPromptResult,\n SystemColorName,\n UpdateRemindersListOptions,\n UpdateRemindersListResult,\n};\nexport {\n CalendarPermissionScope,\n CapacitorCalendarErrorCode,\n EventAvailability,\n EventSpan,\n CalendarChooserDisplayStyle,\n CalendarType,\n CalendarSourceType,\n ReminderRecurrenceFrequency,\n RecurrenceFrequency,\n EventStatus,\n AttendeeRole,\n AttendeeType,\n AttendeeStatus,\n CapacitorCalendar,\n downloadIcsFile,\n};\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAGjD,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACjE,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,2BAA2B,EAAE,MAAM,gDAAgD,CAAC;AAC7F,OAAO,EAAE,uBAAuB,EAAE,MAAM,2CAA2C,CAAC;AACpF,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAC1E,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,0BAA0B,EAAE,MAAM,+CAA+C,CAAC;AAC3F,OAAO,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AACvE,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,EAAE,2BAA2B,EAAE,MAAM,+CAA+C,CAAC;AA2D5F,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE1D,MAAM,iBAAiB,GAAG,cAAc,CAA0B,mBAAmB,EAAE;IACrF,GAAG,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC,oBAAoB,EAAE,CAAC;CACrE,CAAC,CAAC;AAEH,cAAc,eAAe,CAAC;AA6D9B,OAAO,EACL,uBAAuB,EACvB,0BAA0B,EAC1B,iBAAiB,EACjB,SAAS,EACT,2BAA2B,EAC3B,YAAY,EACZ,kBAAkB,EAClB,2BAA2B,EAE3B,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,cAAc,EACd,iBAAiB,EACjB,eAAe,GAChB,CAAC","sourcesContent":["import { registerPlugin } from '@capacitor/core';\n\nimport type { CapacitorCalendarPlugin } from './definitions';\nimport { AttendeeRole } from './schemas/enums/attendee-role';\nimport { AttendeeStatus } from './schemas/enums/attendee-status';\nimport { AttendeeType } from './schemas/enums/attendee-type';\nimport { CalendarChooserDisplayStyle } from './schemas/enums/calendar-chooser-display-style';\nimport { CalendarPermissionScope } from './schemas/enums/calendar-permission-scope';\nimport { CalendarSourceType } from './schemas/enums/calendar-source-type';\nimport { CalendarType } from './schemas/enums/calendar-type';\nimport { CapacitorCalendarErrorCode } from './schemas/enums/capacitor-calendar-error-code';\nimport { EventAvailability } from './schemas/enums/event-availability';\nimport { EventSpan } from './schemas/enums/event-span';\nimport { EventStatus } from './schemas/enums/event-status';\nimport { ReminderRecurrenceFrequency } from './schemas/enums/reminder-recurrence-frequency';\nimport type { Calendar } from './schemas/interfaces/calendar';\nimport type { CalendarEvent } from './schemas/interfaces/calendar-event';\nimport type { CalendarSource } from './schemas/interfaces/calendar-source';\nimport type { CheckPermissionOptions } from './schemas/interfaces/check-permission-options';\nimport type { CreateCalendarOptions } from './schemas/interfaces/create-calendar-options';\nimport type { CreateCalendarResult } from './schemas/interfaces/create-calendar-result';\nimport type { CreateEventOptions } from './schemas/interfaces/create-event-options';\nimport type { CreateEventResult } from './schemas/interfaces/create-event-result';\nimport type { CreateEventWithPromptOptions } from './schemas/interfaces/create-event-with-prompt-options';\nimport type { CreateEventWithPromptResult } from './schemas/interfaces/create-event-with-prompt-result';\nimport type { CreateReminderOptions } from './schemas/interfaces/create-reminder-options';\nimport type { CreateReminderResult } from './schemas/interfaces/create-reminder-result';\nimport type { CreateRemindersListOptions } from './schemas/interfaces/create-reminders-list-options';\nimport type { CreateRemindersListResult } from './schemas/interfaces/create-reminders-list-result';\nimport type { DeleteCalendarOptions } from './schemas/interfaces/delete-calendar-options';\nimport type { DeleteEventOptions } from './schemas/interfaces/delete-event-options';\nimport type { DeleteEventWithPromptOptions } from './schemas/interfaces/delete-event-with-prompt-options';\nimport type { DeleteEventsByIdOptions } from './schemas/interfaces/delete-events-by-id-options';\nimport type { DeleteReminderOptions } from './schemas/interfaces/delete-reminder-options';\nimport type { DeleteReminderWithPromptOptions } from './schemas/interfaces/delete-reminder-with-prompt-options';\nimport type { DeleteReminderWithPromptResult } from './schemas/interfaces/delete-reminder-with-prompt-result';\nimport type { DeleteRemindersByIdOptions } from './schemas/interfaces/delete-reminders-by-id-options';\nimport type { DeleteRemindersByIdResult } from './schemas/interfaces/delete-reminders-by-id-result';\nimport type { DeleteRemindersListOptions } from './schemas/interfaces/delete-reminders-list-options';\nimport type { EventGuest } from './schemas/interfaces/event-guest';\nimport type { EventRecurrenceRule } from './schemas/interfaces/event-recurrence-rule';\nimport type { FetchAllCalendarSourcesResult } from './schemas/interfaces/fetch-all-calendar-sources-result';\nimport type { GetDefaultCalendarOptions } from './schemas/interfaces/get-default-calendar-options';\nimport type { GetDefaultRemindersListResult } from './schemas/interfaces/get-default-reminders-list-result';\nimport type { GetEventByIdOptions } from './schemas/interfaces/get-event-by-id-options';\nimport type { GetEventByIdResult } from './schemas/interfaces/get-event-by-id-result';\nimport type { GetReminderByIdOptions } from './schemas/interfaces/get-reminder-by-id-options';\nimport type { GetReminderByIdResult } from './schemas/interfaces/get-reminder-by-id-result';\nimport type { GetRemindersFromListsOptions } from './schemas/interfaces/get-reminders-from-lists-options';\nimport type { GetRemindersFromListsResult } from './schemas/interfaces/get-reminders-from-lists-result';\nimport type { GetRemindersListsResult } from './schemas/interfaces/get-reminders-lists-result';\nimport type { ListCalendarsResult } from './schemas/interfaces/list-calendars-result';\nimport type { ListEventsInRangeOptions } from './schemas/interfaces/list-events-in-range-options';\nimport type { ListEventsInRangeResult } from './schemas/interfaces/list-events-in-range-result';\nimport type { ModifyCalendarOptions } from './schemas/interfaces/modify-calendar-options';\nimport type { ModifyEventOptions } from './schemas/interfaces/modify-event-options';\nimport type { ModifyEventWithPromptOptions } from './schemas/interfaces/modify-event-with-prompt-options';\nimport type { ModifyReminderOptions } from './schemas/interfaces/modify-reminder-options';\nimport type { OpenCalendarOptions } from './schemas/interfaces/open-calendar-options';\nimport type { RecurrenceRule } from './schemas/interfaces/recurrence-rule';\nimport type { Reminder } from './schemas/interfaces/reminder';\nimport type { ReminderRecurrenceRule } from './schemas/interfaces/reminder-recurrence-rule';\nimport type { RemindersList } from './schemas/interfaces/reminders-list';\nimport type { RequestPermissionOptions } from './schemas/interfaces/request-permission-options';\nimport type { SelectCalendarsWithPromptOptions } from './schemas/interfaces/select-calendars-with-prompt-options';\nimport type { SelectCalendarsWithPromptResult } from './schemas/interfaces/select-calendars-with-prompt-result';\nimport type { UpdateRemindersListOptions } from './schemas/interfaces/update-reminders-list-options';\nimport type { UpdateRemindersListResult } from './schemas/interfaces/update-reminders-list-result';\nimport type { EventEditAction } from './schemas/types/event-edit-action';\nimport type { RecurrenceFrequency } from './schemas/types/recurrence-frequency';\nimport type { SystemColorName } from './schemas/types/system-color-name';\nimport type { CheckAllPermissionsResult, RequestAllPermissionsResult } from './sub-definitions/calendar-access';\nimport type { DeleteEventsByIdResult } from './sub-definitions/event-operations';\nimport { downloadIcsFile } from './web/download-ics-file';\n\nconst CapacitorCalendar = registerPlugin<CapacitorCalendarPlugin>('CapacitorCalendar', {\n web: () => import('./web').then((m) => new m.CapacitorCalendarWeb()),\n});\n\nexport * from './definitions';\nexport type {\n Calendar,\n CalendarEvent,\n CalendarSource,\n CheckAllPermissionsResult,\n CheckPermissionOptions,\n CreateCalendarOptions,\n CreateCalendarResult,\n CreateEventOptions,\n CreateEventResult,\n CreateEventWithPromptOptions,\n CreateEventWithPromptResult,\n CreateReminderOptions,\n CreateReminderResult,\n CreateRemindersListOptions,\n CreateRemindersListResult,\n DeleteCalendarOptions,\n DeleteEventOptions,\n DeleteEventWithPromptOptions,\n DeleteEventsByIdOptions,\n DeleteEventsByIdResult,\n DeleteReminderOptions,\n DeleteReminderWithPromptOptions,\n DeleteReminderWithPromptResult,\n DeleteRemindersByIdOptions,\n DeleteRemindersByIdResult,\n DeleteRemindersListOptions,\n EventEditAction,\n EventGuest,\n EventRecurrenceRule,\n FetchAllCalendarSourcesResult,\n GetDefaultCalendarOptions,\n GetDefaultRemindersListResult,\n GetEventByIdOptions,\n GetEventByIdResult,\n GetReminderByIdOptions,\n GetReminderByIdResult,\n GetRemindersFromListsOptions,\n GetRemindersFromListsResult,\n GetRemindersListsResult,\n ListCalendarsResult,\n ListEventsInRangeOptions,\n ListEventsInRangeResult,\n ModifyCalendarOptions,\n ModifyEventOptions,\n ModifyEventWithPromptOptions,\n ModifyReminderOptions,\n OpenCalendarOptions,\n RecurrenceRule,\n Reminder,\n ReminderRecurrenceRule,\n RemindersList,\n RequestAllPermissionsResult,\n RequestPermissionOptions,\n SelectCalendarsWithPromptOptions,\n SelectCalendarsWithPromptResult,\n SystemColorName,\n UpdateRemindersListOptions,\n UpdateRemindersListResult,\n};\nexport {\n CalendarPermissionScope,\n CapacitorCalendarErrorCode,\n EventAvailability,\n EventSpan,\n CalendarChooserDisplayStyle,\n CalendarType,\n CalendarSourceType,\n ReminderRecurrenceFrequency,\n RecurrenceFrequency,\n EventStatus,\n AttendeeRole,\n AttendeeType,\n AttendeeStatus,\n CapacitorCalendar,\n downloadIcsFile,\n};\n"]}
@@ -25,9 +25,10 @@ export interface DeleteEventOptions {
25
25
  * The start time of the occurrence to delete, in milliseconds since the epoch.
26
26
  * Use `startDate` from `listEventsInRange`.
27
27
  * On Android, required for `THIS_EVENT` on recurring events. If omitted with `THIS_AND_FUTURE_EVENTS`, the whole series is deleted.
28
+ * On iOS, optional since 8.11.0. If omitted, the first occurrence of the series is the target.
28
29
  *
29
30
  * @example 1716153600000
30
- * @platform Android
31
+ * @platform Android, iOS
31
32
  * @since 8.3.0
32
33
  */
33
34
  instanceDate?: number;
@@ -1 +1 @@
1
- {"version":3,"file":"delete-event-options.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/delete-event-options.ts"],"names":[],"mappings":"","sourcesContent":["import type { EventSpan } from '../enums/event-span';\n\n/**\n * @since 7.1.0\n */\nexport interface DeleteEventOptions {\n /**\n * Whether to save the deletion to the event store immediately.\n * Pass `false` to batch multiple changes and commit them together using `CapacitorCalendar.commit()`, which is more efficient than committing each save individually.\n *\n * @example false\n * @default true\n * @platform iOS\n * @since 8.3.0\n */\n commit?: boolean;\n /**\n * The ID of the event to delete.\n *\n * @example '1234'\n * @platform Android, iOS\n * @since 7.1.0\n */\n id: string;\n /**\n * The start time of the occurrence to delete, in milliseconds since the epoch.\n * Use `startDate` from `listEventsInRange`.\n * On Android, required for `THIS_EVENT` on recurring events. If omitted with `THIS_AND_FUTURE_EVENTS`, the whole series is deleted.\n *\n * @example 1716153600000\n * @platform Android\n * @since 8.3.0\n */\n instanceDate?: number;\n /**\n * How much of a recurring series to delete.\n *\n * @example EventSpan.THIS_EVENT\n * @default EventSpan.THIS_EVENT\n * @platform Android, iOS\n * @since 7.1.0\n */\n span?: EventSpan;\n}\n"]}
1
+ {"version":3,"file":"delete-event-options.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/delete-event-options.ts"],"names":[],"mappings":"","sourcesContent":["import type { EventSpan } from '../enums/event-span';\n\n/**\n * @since 7.1.0\n */\nexport interface DeleteEventOptions {\n /**\n * Whether to save the deletion to the event store immediately.\n * Pass `false` to batch multiple changes and commit them together using `CapacitorCalendar.commit()`, which is more efficient than committing each save individually.\n *\n * @example false\n * @default true\n * @platform iOS\n * @since 8.3.0\n */\n commit?: boolean;\n /**\n * The ID of the event to delete.\n *\n * @example '1234'\n * @platform Android, iOS\n * @since 7.1.0\n */\n id: string;\n /**\n * The start time of the occurrence to delete, in milliseconds since the epoch.\n * Use `startDate` from `listEventsInRange`.\n * On Android, required for `THIS_EVENT` on recurring events. If omitted with `THIS_AND_FUTURE_EVENTS`, the whole series is deleted.\n * On iOS, optional since 8.11.0. If omitted, the first occurrence of the series is the target.\n *\n * @example 1716153600000\n * @platform Android, iOS\n * @since 8.3.0\n */\n instanceDate?: number;\n /**\n * How much of a recurring series to delete.\n *\n * @example EventSpan.THIS_EVENT\n * @default EventSpan.THIS_EVENT\n * @platform Android, iOS\n * @since 7.1.0\n */\n span?: EventSpan;\n}\n"]}
@@ -41,9 +41,10 @@ export interface DeleteEventWithPromptOptions {
41
41
  * The start time of the occurrence to delete, in milliseconds since the epoch.
42
42
  * Use `startDate` from `listEventsInRange`.
43
43
  * On Android, required for `THIS_EVENT` on recurring events. If omitted with `THIS_AND_FUTURE_EVENTS`, the whole series is deleted.
44
+ * On iOS, optional since 8.11.0. If omitted, the first occurrence of the series is the target.
44
45
  *
45
46
  * @example 1716153600000
46
- * @platform Android
47
+ * @platform Android, iOS
47
48
  * @since 8.3.0
48
49
  */
49
50
  instanceDate?: number;
@@ -1 +1 @@
1
- {"version":3,"file":"delete-event-with-prompt-options.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/delete-event-with-prompt-options.ts"],"names":[],"mappings":"","sourcesContent":["import type { EventSpan } from '../enums/event-span';\n\n/**\n * @since 7.1.0\n */\nexport interface DeleteEventWithPromptOptions {\n /**\n * Text to show on the cancel button.\n *\n * @default 'Cancel'\n * @platform Android, iOS\n * @since 7.1.0\n */\n cancelButtonText?: string;\n /**\n * Whether to save the deletion to the event store immediately.\n * Pass `false` to batch multiple changes and commit them together using `CapacitorCalendar.commit()`, which is more efficient than committing each save individually.\n *\n * @example false\n * @default true\n * @platform iOS\n * @since 8.3.0\n */\n commit?: boolean;\n /**\n * Text to show on the confirm button.\n *\n * @default 'Delete'\n * @platform Android, iOS\n * @since 7.1.0\n */\n confirmButtonText?: string;\n /**\n * The ID of the event to delete.\n *\n * @example '1234'\n * @platform Android, iOS\n * @since 7.1.0\n */\n id: string;\n /**\n * The start time of the occurrence to delete, in milliseconds since the epoch.\n * Use `startDate` from `listEventsInRange`.\n * On Android, required for `THIS_EVENT` on recurring events. If omitted with `THIS_AND_FUTURE_EVENTS`, the whole series is deleted.\n *\n * @example 1716153600000\n * @platform Android\n * @since 8.3.0\n */\n instanceDate?: number;\n /**\n * Message of the dialog.\n *\n * @platform Android, iOS\n * @since 7.1.0\n */\n message: string;\n /**\n * How much of a recurring series to delete.\n *\n * @example EventSpan.THIS_EVENT\n * @default EventSpan.THIS_EVENT\n * @platform Android, iOS\n * @since 7.1.0\n */\n span?: EventSpan;\n /**\n * Title of the dialog.\n *\n * @platform Android, iOS\n * @since 7.1.0\n */\n title: string;\n}\n"]}
1
+ {"version":3,"file":"delete-event-with-prompt-options.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/delete-event-with-prompt-options.ts"],"names":[],"mappings":"","sourcesContent":["import type { EventSpan } from '../enums/event-span';\n\n/**\n * @since 7.1.0\n */\nexport interface DeleteEventWithPromptOptions {\n /**\n * Text to show on the cancel button.\n *\n * @default 'Cancel'\n * @platform Android, iOS\n * @since 7.1.0\n */\n cancelButtonText?: string;\n /**\n * Whether to save the deletion to the event store immediately.\n * Pass `false` to batch multiple changes and commit them together using `CapacitorCalendar.commit()`, which is more efficient than committing each save individually.\n *\n * @example false\n * @default true\n * @platform iOS\n * @since 8.3.0\n */\n commit?: boolean;\n /**\n * Text to show on the confirm button.\n *\n * @default 'Delete'\n * @platform Android, iOS\n * @since 7.1.0\n */\n confirmButtonText?: string;\n /**\n * The ID of the event to delete.\n *\n * @example '1234'\n * @platform Android, iOS\n * @since 7.1.0\n */\n id: string;\n /**\n * The start time of the occurrence to delete, in milliseconds since the epoch.\n * Use `startDate` from `listEventsInRange`.\n * On Android, required for `THIS_EVENT` on recurring events. If omitted with `THIS_AND_FUTURE_EVENTS`, the whole series is deleted.\n * On iOS, optional since 8.11.0. If omitted, the first occurrence of the series is the target.\n *\n * @example 1716153600000\n * @platform Android, iOS\n * @since 8.3.0\n */\n instanceDate?: number;\n /**\n * Message of the dialog.\n *\n * @platform Android, iOS\n * @since 7.1.0\n */\n message: string;\n /**\n * How much of a recurring series to delete.\n *\n * @example EventSpan.THIS_EVENT\n * @default EventSpan.THIS_EVENT\n * @platform Android, iOS\n * @since 7.1.0\n */\n span?: EventSpan;\n /**\n * Title of the dialog.\n *\n * @platform Android, iOS\n * @since 7.1.0\n */\n title: string;\n}\n"]}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * @since 8.11.0
3
+ */
4
+ export interface GetEventByIdOptions {
5
+ /**
6
+ * The event id.
7
+ *
8
+ * @since 8.11.0
9
+ */
10
+ id: string;
11
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=get-event-by-id-options.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-event-by-id-options.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/get-event-by-id-options.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * @since 8.11.0\n */\nexport interface GetEventByIdOptions {\n /**\n * The event id.\n *\n * @since 8.11.0\n */\n id: string;\n}\n"]}
@@ -0,0 +1,13 @@
1
+ import type { CalendarEvent } from './calendar-event';
2
+ /**
3
+ * @since 8.11.0
4
+ */
5
+ export interface GetEventByIdResult {
6
+ /**
7
+ * The event for the given id, or `null` when none exists.
8
+ *
9
+ * @platform Android, iOS
10
+ * @since 8.11.0
11
+ */
12
+ event: CalendarEvent | null;
13
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=get-event-by-id-result.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-event-by-id-result.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/get-event-by-id-result.ts"],"names":[],"mappings":"","sourcesContent":["import type { CalendarEvent } from './calendar-event';\n\n/**\n * @since 8.11.0\n */\nexport interface GetEventByIdResult {\n /**\n * The event for the given id, or `null` when none exists.\n *\n * @platform Android, iOS\n * @since 8.11.0\n */\n event: CalendarEvent | null;\n}\n"]}