@ebarooni/capacitor-calendar 6.7.2 → 7.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (255) hide show
  1. package/EbarooniCapacitorCalendar.podspec +2 -2
  2. package/Package.swift +28 -0
  3. package/README.md +1197 -119
  4. package/android/build.gradle +8 -7
  5. package/android/src/main/java/dev/barooni/capacitor/calendar/CapacitorCalendarPlugin.kt +267 -317
  6. package/android/src/main/java/dev/barooni/capacitor/calendar/PluginError.kt +47 -0
  7. package/android/src/main/java/dev/barooni/capacitor/calendar/implementation/CapacitorCalendar.kt +348 -0
  8. package/android/src/main/java/dev/barooni/capacitor/calendar/models/data/CalendarEvent.kt +25 -0
  9. package/android/src/main/java/dev/barooni/capacitor/calendar/models/data/CalendarInfo.kt +14 -0
  10. package/android/src/main/java/dev/barooni/capacitor/calendar/models/data/EventGuest.kt +9 -0
  11. package/android/src/main/java/dev/barooni/capacitor/calendar/models/enums/CalendarPermissionScope.kt +15 -0
  12. package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/CheckPermissionInput.kt +20 -0
  13. package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/CreateCalendarInput.kt +18 -0
  14. package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/CreateEventInput.kt +27 -0
  15. package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/CreateEventWithPromptInput.kt +36 -0
  16. package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/DeleteCalendarInput.kt +10 -0
  17. package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/DeleteEventInput.kt +10 -0
  18. package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/DeleteEventWithPromptInput.kt +14 -0
  19. package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/DeleteEventsByIdInput.kt +11 -0
  20. package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/ListEventsInRangeInput.kt +14 -0
  21. package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/ModifyEvent.kt +25 -0
  22. package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/ModifyEventWithPromptInput.kt +37 -0
  23. package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/OpenCalendarInput.kt +10 -0
  24. package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/RequestAllPermissionsInput.kt +9 -0
  25. package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/RequestPermissionInput.kt +40 -0
  26. package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/CheckAllPermissionsResult.kt +17 -0
  27. package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/CheckPermissionResult.kt +15 -0
  28. package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/CreateCalendarResult.kt +21 -0
  29. package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/CreateEventResult.kt +21 -0
  30. package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/CreateEventWithPromptResult.kt +12 -0
  31. package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/DeleteEventWithPromptResult.kt +14 -0
  32. package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/DeleteEventsByIdResult.kt +27 -0
  33. package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/GetDefaultCalendarResult.kt +34 -0
  34. package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/ListCalendarsResult.kt +39 -0
  35. package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/ListEventsInRangeResult.kt +58 -0
  36. package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/ModifyEventWithPromptResult.kt +12 -0
  37. package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/RequestAllPermissionsResult.kt +30 -0
  38. package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/RequestPermissionResult.kt +42 -0
  39. package/android/src/main/java/dev/barooni/capacitor/calendar/models/templates/JSResult.kt +7 -0
  40. package/android/src/main/java/dev/barooni/capacitor/calendar/utils/ImplementationHelper.kt +387 -0
  41. package/dist/docs.json +3808 -1126
  42. package/dist/esm/definitions.d.ts +6 -759
  43. package/dist/esm/definitions.js.map +1 -1
  44. package/dist/esm/index.d.ts +40 -12
  45. package/dist/esm/index.js +11 -6
  46. package/dist/esm/index.js.map +1 -1
  47. package/dist/esm/schemas/enums/attendee-role.d.ts +50 -0
  48. package/dist/esm/schemas/enums/attendee-role.js +52 -0
  49. package/dist/esm/schemas/enums/attendee-role.js.map +1 -0
  50. package/dist/esm/schemas/enums/attendee-status.d.ts +55 -0
  51. package/dist/esm/schemas/enums/attendee-status.js +57 -0
  52. package/dist/esm/schemas/enums/attendee-status.js.map +1 -0
  53. package/dist/esm/schemas/enums/attendee-type.d.ts +45 -0
  54. package/dist/esm/schemas/enums/attendee-type.js +47 -0
  55. package/dist/esm/schemas/enums/attendee-type.js.map +1 -0
  56. package/dist/esm/schemas/enums/calendar-chooser-display-style.d.ts +3 -6
  57. package/dist/esm/schemas/enums/calendar-chooser-display-style.js +3 -6
  58. package/dist/esm/schemas/enums/calendar-chooser-display-style.js.map +1 -1
  59. package/dist/esm/schemas/enums/calendar-permission-scope.d.ts +60 -0
  60. package/dist/esm/schemas/enums/calendar-permission-scope.js +62 -0
  61. package/dist/esm/schemas/enums/calendar-permission-scope.js.map +1 -0
  62. package/dist/esm/schemas/enums/calendar-source-type.d.ts +7 -16
  63. package/dist/esm/schemas/enums/calendar-source-type.js +7 -16
  64. package/dist/esm/schemas/enums/calendar-source-type.js.map +1 -1
  65. package/dist/esm/schemas/enums/calendar-type.d.ts +6 -9
  66. package/dist/esm/schemas/enums/calendar-type.js +6 -9
  67. package/dist/esm/schemas/enums/calendar-type.js.map +1 -1
  68. package/dist/esm/schemas/enums/event-availability.d.ts +30 -0
  69. package/dist/esm/schemas/enums/event-availability.js +32 -0
  70. package/dist/esm/schemas/enums/event-availability.js.map +1 -0
  71. package/dist/esm/schemas/enums/event-span.d.ts +3 -6
  72. package/dist/esm/schemas/enums/event-span.js +3 -6
  73. package/dist/esm/schemas/enums/event-span.js.map +1 -1
  74. package/dist/esm/schemas/enums/event-status.d.ts +26 -0
  75. package/dist/esm/schemas/enums/event-status.js +28 -0
  76. package/dist/esm/schemas/enums/event-status.js.map +1 -0
  77. package/dist/esm/schemas/enums/recurrence-frequency.d.ts +21 -0
  78. package/dist/esm/schemas/enums/recurrence-frequency.js +23 -0
  79. package/dist/esm/schemas/enums/recurrence-frequency.js.map +1 -0
  80. package/dist/esm/schemas/enums/reminder-recurrence-frequency.d.ts +5 -8
  81. package/dist/esm/schemas/enums/reminder-recurrence-frequency.js +5 -8
  82. package/dist/esm/schemas/enums/reminder-recurrence-frequency.js.map +1 -1
  83. package/dist/esm/schemas/interfaces/calendar-event.d.ts +116 -48
  84. package/dist/esm/schemas/interfaces/calendar-event.js.map +1 -1
  85. package/dist/esm/schemas/interfaces/calendar-source.d.ts +10 -7
  86. package/dist/esm/schemas/interfaces/calendar-source.js.map +1 -1
  87. package/dist/esm/schemas/interfaces/calendar.d.ts +59 -25
  88. package/dist/esm/schemas/interfaces/calendar.js.map +1 -1
  89. package/dist/esm/schemas/interfaces/create-calendar-options.d.ts +38 -0
  90. package/dist/esm/schemas/interfaces/create-calendar-options.js +2 -0
  91. package/dist/esm/schemas/interfaces/create-calendar-options.js.map +1 -0
  92. package/dist/esm/schemas/interfaces/create-event-options.d.ts +96 -0
  93. package/dist/esm/schemas/interfaces/create-event-options.js +2 -0
  94. package/dist/esm/schemas/interfaces/create-event-options.js.map +1 -0
  95. package/dist/esm/schemas/interfaces/create-event-with-prompt-options.d.ts +70 -0
  96. package/dist/esm/schemas/interfaces/create-event-with-prompt-options.js +2 -0
  97. package/dist/esm/schemas/interfaces/create-event-with-prompt-options.js.map +1 -0
  98. package/dist/esm/schemas/interfaces/create-reminder-options.d.ts +54 -0
  99. package/dist/esm/schemas/interfaces/create-reminder-options.js +2 -0
  100. package/dist/esm/schemas/interfaces/create-reminder-options.js.map +1 -0
  101. package/dist/esm/schemas/interfaces/delete-calendar-options.d.ts +9 -0
  102. package/dist/esm/schemas/interfaces/delete-calendar-options.js +2 -0
  103. package/dist/esm/schemas/interfaces/delete-calendar-options.js.map +1 -0
  104. package/dist/esm/schemas/interfaces/delete-event-options.d.ts +18 -0
  105. package/dist/esm/schemas/interfaces/delete-event-options.js +2 -0
  106. package/dist/esm/schemas/interfaces/delete-event-options.js.map +1 -0
  107. package/dist/esm/schemas/interfaces/delete-event-with-prompt-options.d.ts +48 -0
  108. package/dist/esm/schemas/interfaces/delete-event-with-prompt-options.js +2 -0
  109. package/dist/esm/schemas/interfaces/delete-event-with-prompt-options.js.map +1 -0
  110. package/dist/esm/schemas/interfaces/delete-events-by-id-options.d.ts +18 -0
  111. package/dist/esm/schemas/interfaces/delete-events-by-id-options.js +2 -0
  112. package/dist/esm/schemas/interfaces/delete-events-by-id-options.js.map +1 -0
  113. package/dist/esm/schemas/interfaces/delete-reminder-options.d.ts +9 -0
  114. package/dist/esm/schemas/interfaces/delete-reminder-options.js +2 -0
  115. package/dist/esm/schemas/interfaces/delete-reminder-options.js.map +1 -0
  116. package/dist/esm/schemas/interfaces/delete-reminders-by-id-options.d.ts +9 -0
  117. package/dist/esm/schemas/interfaces/delete-reminders-by-id-options.js +2 -0
  118. package/dist/esm/schemas/interfaces/delete-reminders-by-id-options.js.map +1 -0
  119. package/dist/esm/schemas/interfaces/event-guest.d.ts +13 -0
  120. package/dist/esm/schemas/interfaces/event-guest.js +2 -0
  121. package/dist/esm/schemas/interfaces/event-guest.js.map +1 -0
  122. package/dist/esm/schemas/interfaces/get-reminder-by-id-options.d.ts +6 -0
  123. package/dist/esm/schemas/interfaces/get-reminder-by-id-options.js +2 -0
  124. package/dist/esm/schemas/interfaces/get-reminder-by-id-options.js.map +1 -0
  125. package/dist/esm/schemas/interfaces/get-reminders-from-lists-options.d.ts +9 -0
  126. package/dist/esm/schemas/interfaces/get-reminders-from-lists-options.js +2 -0
  127. package/dist/esm/schemas/interfaces/get-reminders-from-lists-options.js.map +1 -0
  128. package/dist/esm/schemas/interfaces/list-events-in-range-options.d.ts +17 -0
  129. package/dist/esm/schemas/interfaces/list-events-in-range-options.js +2 -0
  130. package/dist/esm/schemas/interfaces/list-events-in-range-options.js.map +1 -0
  131. package/dist/esm/schemas/interfaces/modify-event-options.d.ts +103 -0
  132. package/dist/esm/schemas/interfaces/modify-event-options.js +2 -0
  133. package/dist/esm/schemas/interfaces/modify-event-options.js.map +1 -0
  134. package/dist/esm/schemas/interfaces/modify-event-with-prompt-options.d.ts +13 -0
  135. package/dist/esm/schemas/interfaces/modify-event-with-prompt-options.js +2 -0
  136. package/dist/esm/schemas/interfaces/modify-event-with-prompt-options.js.map +1 -0
  137. package/dist/esm/schemas/interfaces/modify-reminder-options.d.ts +58 -0
  138. package/dist/esm/schemas/interfaces/modify-reminder-options.js +2 -0
  139. package/dist/esm/schemas/interfaces/modify-reminder-options.js.map +1 -0
  140. package/dist/esm/schemas/interfaces/open-calendar-options.d.ts +10 -0
  141. package/dist/esm/schemas/interfaces/open-calendar-options.js +2 -0
  142. package/dist/esm/schemas/interfaces/open-calendar-options.js.map +1 -0
  143. package/dist/esm/schemas/interfaces/recurrence-rule.d.ts +22 -0
  144. package/dist/esm/schemas/interfaces/recurrence-rule.js +2 -0
  145. package/dist/esm/schemas/interfaces/recurrence-rule.js.map +1 -0
  146. package/dist/esm/schemas/interfaces/reminder-recurrence-rule.d.ts +7 -25
  147. package/dist/esm/schemas/interfaces/reminder-recurrence-rule.js.map +1 -1
  148. package/dist/esm/schemas/interfaces/reminder.d.ts +29 -38
  149. package/dist/esm/schemas/interfaces/reminder.js.map +1 -1
  150. package/dist/esm/schemas/interfaces/reminders-list.d.ts +5 -3
  151. package/dist/esm/schemas/interfaces/reminders-list.js.map +1 -1
  152. package/dist/esm/schemas/interfaces/select-calendars-with-prompt-options.d.ts +18 -0
  153. package/dist/esm/schemas/interfaces/select-calendars-with-prompt-options.js +2 -0
  154. package/dist/esm/schemas/interfaces/select-calendars-with-prompt-options.js.map +1 -0
  155. package/dist/esm/schemas/types/event-edit-action.d.ts +4 -0
  156. package/dist/esm/schemas/types/event-edit-action.js +2 -0
  157. package/dist/esm/schemas/types/event-edit-action.js.map +1 -0
  158. package/dist/esm/sub-definitions/calendar-access.d.ts +114 -0
  159. package/dist/esm/sub-definitions/calendar-access.js +2 -0
  160. package/dist/esm/sub-definitions/calendar-access.js.map +1 -0
  161. package/dist/esm/sub-definitions/calendar-operations.d.ts +77 -0
  162. package/dist/esm/sub-definitions/calendar-operations.js +2 -0
  163. package/dist/esm/sub-definitions/calendar-operations.js.map +1 -0
  164. package/dist/esm/sub-definitions/event-operations.d.ts +111 -0
  165. package/dist/esm/sub-definitions/event-operations.js +2 -0
  166. package/dist/esm/sub-definitions/event-operations.js.map +1 -0
  167. package/dist/esm/sub-definitions/reminders-access.d.ts +22 -0
  168. package/dist/esm/sub-definitions/reminders-access.js +2 -0
  169. package/dist/esm/sub-definitions/reminders-access.js.map +1 -0
  170. package/dist/esm/sub-definitions/reminders-operations.d.ts +110 -0
  171. package/dist/esm/sub-definitions/reminders-operations.js +2 -0
  172. package/dist/esm/sub-definitions/reminders-operations.js.map +1 -0
  173. package/dist/esm/web.d.ts +86 -151
  174. package/dist/esm/web.js +67 -49
  175. package/dist/esm/web.js.map +1 -1
  176. package/dist/plugin.cjs.js +392 -172
  177. package/dist/plugin.cjs.js.map +1 -1
  178. package/dist/plugin.js +392 -172
  179. package/dist/plugin.js.map +1 -1
  180. package/ios/Sources/CapacitorCalendarPlugin/CapacitorCalendarPlugin.swift +348 -0
  181. package/ios/Sources/CapacitorCalendarPlugin/Implementation/CapacitorCalendar.swift +554 -0
  182. package/ios/Sources/CapacitorCalendarPlugin/Models/Enums/CAPPermissionState.swift +6 -0
  183. package/ios/Sources/CapacitorCalendarPlugin/Models/Enums/CalendarPermissionScope.swift +6 -0
  184. package/ios/Sources/CapacitorCalendarPlugin/Models/Enums/EventEditAction.swift +20 -0
  185. package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/CheckPermissionInput.swift +19 -0
  186. package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/CreateCalendarInput.swift +32 -0
  187. package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/CreateEventInput.swift +61 -0
  188. package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/CreateEventWithPromptInput.swift +89 -0
  189. package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/CreateReminderInput.swift +116 -0
  190. package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/DeleteCalendarInput.swift +16 -0
  191. package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/DeleteEventInput.swift +27 -0
  192. package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/DeleteEventWithPromptInput.swift +57 -0
  193. package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/DeleteEventsByIdInput.swift +27 -0
  194. package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/DeleteReminderInput.swift +16 -0
  195. package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/DeleteRemindersByIdInput.swift +16 -0
  196. package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/GetReminderByIdInput.swift +16 -0
  197. package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/GetRemindersFromListsInput.swift +24 -0
  198. package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/ListEventsInRangeInput.swift +25 -0
  199. package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/ModifyEventInput.swift +117 -0
  200. package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/ModifyEventWithPromptInput.swift +83 -0
  201. package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/ModifyReminderInput.swift +118 -0
  202. package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/OpenCalendarInput.swift +17 -0
  203. package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/RequestPermissionInput.swift +19 -0
  204. package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/SelectCalendarsWithPromptInput.swift +32 -0
  205. package/ios/Sources/CapacitorCalendarPlugin/Models/Results/CheckAllPermissionsResult.swift +15 -0
  206. package/ios/Sources/CapacitorCalendarPlugin/Models/Results/CheckPermissionResult.swift +16 -0
  207. package/ios/Sources/CapacitorCalendarPlugin/Models/Results/CreateCalendarResult.swift +18 -0
  208. package/ios/Sources/CapacitorCalendarPlugin/Models/Results/CreateEventResult.swift +18 -0
  209. package/ios/Sources/CapacitorCalendarPlugin/Models/Results/CreateEventWithPromptResult.swift +15 -0
  210. package/ios/Sources/CapacitorCalendarPlugin/Models/Results/CreateReminderResult.swift +16 -0
  211. package/ios/Sources/CapacitorCalendarPlugin/Models/Results/DeleteEventWithPromptResult.swift +15 -0
  212. package/ios/Sources/CapacitorCalendarPlugin/Models/Results/DeleteEventsByIdResult.swift +23 -0
  213. package/ios/Sources/CapacitorCalendarPlugin/Models/Results/DeleteRemindersByIdResult.swift +23 -0
  214. package/ios/Sources/CapacitorCalendarPlugin/Models/Results/FetchAllCalendarSourcesResult.swift +16 -0
  215. package/ios/Sources/CapacitorCalendarPlugin/Models/Results/GetDefaultCalendarResult.swift +16 -0
  216. package/ios/Sources/CapacitorCalendarPlugin/Models/Results/GetReminderByIdResult.swift +20 -0
  217. package/ios/Sources/CapacitorCalendarPlugin/Models/Results/GetRemindersFromListsResult.swift +16 -0
  218. package/ios/Sources/CapacitorCalendarPlugin/Models/Results/ListCalendarsResult.swift +16 -0
  219. package/ios/Sources/CapacitorCalendarPlugin/Models/Results/ListEventsInRangeResult.swift +16 -0
  220. package/ios/Sources/CapacitorCalendarPlugin/Models/Results/ModifyEventWithPromptResult.swift +16 -0
  221. package/ios/Sources/CapacitorCalendarPlugin/Models/Results/RequestAllPermissionsResult.swift +20 -0
  222. package/ios/Sources/CapacitorCalendarPlugin/Models/Results/RequestPermissionResult.swift +15 -0
  223. package/ios/Sources/CapacitorCalendarPlugin/Models/Results/SelectCalendarsWithPromptResult.swift +16 -0
  224. package/ios/Sources/CapacitorCalendarPlugin/Models/Templates/JSResult.swift +5 -0
  225. package/ios/Sources/CapacitorCalendarPlugin/PluginConfig.swift +42 -0
  226. package/ios/Sources/CapacitorCalendarPlugin/PluginError.swift +87 -0
  227. package/ios/Sources/CapacitorCalendarPlugin/Utils/ImplementationHelper.swift +361 -0
  228. package/ios/Sources/CapacitorCalendarPlugin/Utils/UIColorFromHexExtension.swift +32 -0
  229. package/ios/Tests/CapacitorCalendarPluginTests/CapacitorCalendarPluginTests.swift +15 -0
  230. package/package.json +68 -72
  231. package/android/src/main/java/dev/barooni/capacitor/calendar/CapacitorCalendar.kt +0 -358
  232. package/assets/images/text-logo.png +0 -0
  233. package/dist/esm/schemas/enums/calendar-chooser-selection-style.d.ts +0 -16
  234. package/dist/esm/schemas/enums/calendar-chooser-selection-style.js +0 -18
  235. package/dist/esm/schemas/enums/calendar-chooser-selection-style.js.map +0 -1
  236. package/dist/esm/schemas/enums/plugin-permission.d.ts +0 -58
  237. package/dist/esm/schemas/enums/plugin-permission.js +0 -60
  238. package/dist/esm/schemas/enums/plugin-permission.js.map +0 -1
  239. package/dist/esm/schemas/interfaces/plugin-permissions-map.d.ts +0 -4
  240. package/dist/esm/schemas/interfaces/plugin-permissions-map.js +0 -2
  241. package/dist/esm/schemas/interfaces/plugin-permissions-map.js.map +0 -1
  242. package/ios/Plugin/CapacitorCalendar.swift +0 -635
  243. package/ios/Plugin/CapacitorCalendarPlugin.h +0 -10
  244. package/ios/Plugin/CapacitorCalendarPlugin.m +0 -36
  245. package/ios/Plugin/CapacitorCalendarPlugin.swift +0 -648
  246. package/ios/Plugin/CapacitorCalendarPluginError.swift +0 -22
  247. package/ios/Plugin/CapacitorReminders.swift +0 -456
  248. package/ios/Plugin/EventCreationParameters.swift +0 -22
  249. package/ios/Plugin/EventDeleteResults.swift +0 -14
  250. package/ios/Plugin/Info.plist +0 -24
  251. package/ios/Plugin/PermissionState.swift +0 -16
  252. package/ios/Plugin/RecurrenceParameters.swift +0 -15
  253. package/ios/Plugin/ReminderCreationParameters.swift +0 -23
  254. package/ios/Plugin/UIColorExtensions.swift +0 -28
  255. /package/{LICENSE.txt → LICENSE} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.js","sources":["esm/schemas/enums/calendar-chooser-display-style.js","esm/schemas/enums/calendar-chooser-selection-style.js","esm/schemas/enums/plugin-permission.js","esm/schemas/enums/reminder-recurrence-frequency.js","esm/schemas/enums/event-span.js","esm/schemas/enums/calendar-source-type.js","esm/schemas/enums/calendar-type.js","esm/index.js","esm/web.js"],"sourcesContent":["/**\n * Enum representing the display styles for the calendar chooser.\n *\n * @enum CalendarChooserDisplayStyle\n * @platform iOS\n */\nexport var CalendarChooserDisplayStyle;\n(function (CalendarChooserDisplayStyle) {\n /**\n * Display all calendars available for selection.\n */\n CalendarChooserDisplayStyle[CalendarChooserDisplayStyle[\"ALL_CALENDARS\"] = 0] = \"ALL_CALENDARS\";\n /**\n * Display only writable calendars available for selection.\n */\n CalendarChooserDisplayStyle[CalendarChooserDisplayStyle[\"WRITABLE_CALENDARS_ONLY\"] = 1] = \"WRITABLE_CALENDARS_ONLY\";\n})(CalendarChooserDisplayStyle || (CalendarChooserDisplayStyle = {}));\n//# sourceMappingURL=calendar-chooser-display-style.js.map","/**\n * Enum representing the selection style for the calendar chooser.\n *\n * @enum CalendarChooserSelectionStyle\n * @platform iOS\n */\nexport var CalendarChooserSelectionStyle;\n(function (CalendarChooserSelectionStyle) {\n /**\n * Allows only a single selection in the calendar chooser.\n */\n CalendarChooserSelectionStyle[CalendarChooserSelectionStyle[\"SINGLE\"] = 0] = \"SINGLE\";\n /**\n * Allows multiple selections in the calendar chooser.\n */\n CalendarChooserSelectionStyle[CalendarChooserSelectionStyle[\"MULTIPLE\"] = 1] = \"MULTIPLE\";\n})(CalendarChooserSelectionStyle || (CalendarChooserSelectionStyle = {}));\n//# sourceMappingURL=calendar-chooser-selection-style.js.map","/**\n * Enum representing the available runtime permissions for the plugin.\n *\n * @enum PluginPermission\n * @platform iOS, Android\n */\nexport var PluginPermission;\n(function (PluginPermission) {\n /**\n * Represents the permission state for reading calendar.\n *\n * @platform iOS, Android\n * @permissions\n * <h3>Manifest Permissions:</h3>\n * <ul>\n * <li><strong>iOS 17 &le;:</strong> NSCalendarsFullAccessUsageDescription</li>\n * <li><strong>13 &le; iOS &le; 16:</strong> NSCalendarsUsageDescription</li>\n * <li><strong>Android:</strong> android.permission.READ_CALENDAR</li>\n * </ul>\n */\n PluginPermission[\"READ_CALENDAR\"] = \"readCalendar\";\n /**\n * Represents the permission state for writing calendar.\n *\n * @platform iOS, Android\n * @permissions\n * <h3>Manifest Permissions:</h3>\n * <ul>\n * <li><strong>iOS 17 &le;:</strong> NSCalendarsWriteOnlyAccessUsageDescription</li>\n * <li><strong>13 &le; iOS &le; 16:</strong> NSCalendarsUsageDescription</li>\n * <li><strong>Android:</strong> android.permission.WRITE_CALENDAR</li>\n * </ul>\n */\n PluginPermission[\"WRITE_CALENDAR\"] = \"writeCalendar\";\n /**\n * Represents the permission state for reading reminders.\n *\n * @platform iOS\n * @permissions\n * <h3>Manifest Permissions:</h3>\n * <ul>\n * <li><strong>iOS 17 &le;:</strong> NSRemindersFullAccessUsageDescription</li>\n * <li><strong>10 &le; iOS &le; 16:</strong> NSRemindersUsageDescription</li>\n * </ul>\n */\n PluginPermission[\"READ_REMINDERS\"] = \"readReminders\";\n /**\n * Represents the permission state for writing reminders.\n *\n * @platform iOS\n * @permissions\n * <h3>Manifest Permissions:</h3>\n * <ul>\n * <li><strong>iOS 17 &le;:</strong> NSRemindersFullAccessUsageDescription</li>\n * <li><strong>13 &le; iOS &le; 16:</strong> NSRemindersUsageDescription</li>\n * </ul>\n */\n PluginPermission[\"WRITE_REMINDERS\"] = \"writeReminders\";\n})(PluginPermission || (PluginPermission = {}));\n//# sourceMappingURL=plugin-permission.js.map","/**\n * Enum representing the repeating frequency of the reminder.\n *\n * @enum ReminderRecurrenceFrequency\n * @platform iOS\n */\nexport var ReminderRecurrenceFrequency;\n(function (ReminderRecurrenceFrequency) {\n /**\n * The reminder repeats on a daily basis\n */\n ReminderRecurrenceFrequency[ReminderRecurrenceFrequency[\"DAILY\"] = 0] = \"DAILY\";\n /**\n * The reminder repeats on a weekly basis\n */\n ReminderRecurrenceFrequency[ReminderRecurrenceFrequency[\"WEEKLY\"] = 1] = \"WEEKLY\";\n /**\n * The reminder repeats on a monthly basis\n */\n ReminderRecurrenceFrequency[ReminderRecurrenceFrequency[\"MONTHLY\"] = 2] = \"MONTHLY\";\n /**\n * The reminder repeats on a yearly basis\n */\n ReminderRecurrenceFrequency[ReminderRecurrenceFrequency[\"YEARLY\"] = 3] = \"YEARLY\";\n})(ReminderRecurrenceFrequency || (ReminderRecurrenceFrequency = {}));\n//# sourceMappingURL=reminder-recurrence-frequency.js.map","/**\n * Enum representing the span of modifications.\n *\n * @enum EventSpan\n * @platform iOS\n */\nexport var EventSpan;\n(function (EventSpan) {\n /**\n * The modifications should only be applied to this event.\n */\n EventSpan[EventSpan[\"THIS_EVENT\"] = 0] = \"THIS_EVENT\";\n /**\n * The modifications to this event should also be applied to the future instances of this event.\n */\n EventSpan[EventSpan[\"THIS_AND_FUTURE_EVENTS\"] = 1] = \"THIS_AND_FUTURE_EVENTS\";\n})(EventSpan || (EventSpan = {}));\n//# sourceMappingURL=event-span.js.map","/**\n * Represents the different types of sources from which calendars can originate.\n *\n * @enum CalendarSourceType\n * @platform iOS\n */\nexport var CalendarSourceType;\n(function (CalendarSourceType) {\n /**\n * Calendars that are stored locally on the device. These calendars are not\n * synced with any external service.\n */\n CalendarSourceType[CalendarSourceType[\"LOCAL\"] = 0] = \"LOCAL\";\n /**\n * Calendars that are associated with an Exchange server. Exchange is a\n * popular calendar and email service used by many enterprises.\n */\n CalendarSourceType[CalendarSourceType[\"EXCHANGE\"] = 1] = \"EXCHANGE\";\n /**\n * Calendars that use the CalDAV protocol for synchronization.\n * This includes calendars from services like Google Calendar and Yahoo Calendar.\n */\n CalendarSourceType[CalendarSourceType[\"CAL_DAV\"] = 2] = \"CAL_DAV\";\n /**\n * Calendars that were previously associated with MobileMe, Apple's cloud\n * service before iCloud. This source type is largely obsolete now.\n */\n CalendarSourceType[CalendarSourceType[\"MOBILE_ME\"] = 3] = \"MOBILE_ME\";\n /**\n * Calendars that the user has subscribed to. These are read-only calendars\n * that can be added by subscribing to a calendar URL.\n */\n CalendarSourceType[CalendarSourceType[\"SUBSCRIBED\"] = 4] = \"SUBSCRIBED\";\n /**\n * The built-in Birthdays calendar, which shows birthdays of contacts from the user's address book.\n * This calendar is typically read-only and is managed by the system.\n */\n CalendarSourceType[CalendarSourceType[\"BIRTHDAYS\"] = 5] = \"BIRTHDAYS\";\n})(CalendarSourceType || (CalendarSourceType = {}));\n//# sourceMappingURL=calendar-source-type.js.map","/**\n * An enum representing the type of calendar.\n *\n * @enum CalendarType\n * @platform iOS\n */\nexport var CalendarType;\n(function (CalendarType) {\n /**\n * This calendar is sync'd from either Mobile Me or tethered.\n */\n CalendarType[CalendarType[\"LOCAL\"] = 0] = \"LOCAL\";\n /**\n * This calendar is from a CalDAV server.\n */\n CalendarType[CalendarType[\"CAL_DAV\"] = 1] = \"CAL_DAV\";\n /**\n * This calendar comes from an Exchange server.\n */\n CalendarType[CalendarType[\"EXCHANGE\"] = 2] = \"EXCHANGE\";\n /**\n * This is a locally subscribed calendar.\n */\n CalendarType[CalendarType[\"SUBSCRIPTION\"] = 3] = \"SUBSCRIPTION\";\n /**\n * This is the built-in birthday calendar.\n */\n CalendarType[CalendarType[\"BIRTHDAY\"] = 4] = \"BIRTHDAY\";\n})(CalendarType || (CalendarType = {}));\n//# sourceMappingURL=calendar-type.js.map","import { registerPlugin } from \"@capacitor/core\";\nimport { CalendarChooserDisplayStyle } from \"./schemas/enums/calendar-chooser-display-style\";\nimport { CalendarChooserSelectionStyle } from \"./schemas/enums/calendar-chooser-selection-style\";\nimport { PluginPermission } from \"./schemas/enums/plugin-permission\";\nimport { ReminderRecurrenceFrequency } from \"./schemas/enums/reminder-recurrence-frequency\";\nimport { EventSpan } from \"./schemas/enums/event-span\";\nimport { CalendarSourceType } from \"./schemas/enums/calendar-source-type\";\nimport { CalendarType } from \"./schemas/enums/calendar-type\";\nconst CapacitorCalendar = registerPlugin(\"CapacitorCalendar\", {\n web: () => import(\"./web\").then((m) => new m.CapacitorCalendarWeb()),\n});\nexport * from \"./definitions\";\nexport { CalendarChooserSelectionStyle, CalendarChooserDisplayStyle, PluginPermission, ReminderRecurrenceFrequency, EventSpan, CalendarSourceType, CalendarType, CapacitorCalendar, };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from \"@capacitor/core\";\nexport class CapacitorCalendarWeb extends WebPlugin {\n checkPermission(_options) {\n throw this.unimplemented(`${this.checkPermission.name} is not implemented on the web`);\n }\n checkAllPermissions() {\n throw this.unimplemented(`${this.checkAllPermissions.name} is not implemented on the web`);\n }\n requestPermission(_options) {\n throw this.unimplemented(`${this.requestPermission.name} is not implemented on the web`);\n }\n requestAllPermissions() {\n throw this.unimplemented(`${this.requestAllPermissions.name} is not implemented on the web`);\n }\n createEventWithPrompt(_options) {\n throw this.unimplemented(`${this.createEventWithPrompt.name} is not implemented on the web`);\n }\n selectCalendarsWithPrompt() {\n throw this.unimplemented(`${this.selectCalendarsWithPrompt.name} is not implemented on the web`);\n }\n listCalendars() {\n throw this.unimplemented(`${this.listCalendars.name} is not implemented on the web`);\n }\n getDefaultCalendar() {\n throw this.unimplemented(`${this.getDefaultCalendar.name} is not implemented on the web`);\n }\n createEvent(_options) {\n throw this.unimplemented(`${this.createEvent.name} is not implemented on the web`);\n }\n createReminder(_options) {\n throw this.unimplemented(`${this.createReminder.name} is not implemented on the web`);\n }\n getDefaultRemindersList() {\n throw this.unimplemented(`${this.getDefaultRemindersList.name} is not implemented on the web`);\n }\n getRemindersLists() {\n throw this.unimplemented(`${this.getRemindersLists.name} is not implemented on the web`);\n }\n openCalendar(_options) {\n throw this.unimplemented(`${this.openCalendar.name} is not implemented on the web`);\n }\n openReminders() {\n throw this.unimplemented(`${this.openReminders.name} is not implemented on the web`);\n }\n listEventsInRange(_options) {\n throw this.unimplemented(`${this.listEventsInRange.name} is not implemented on the web`);\n }\n deleteEventsById(_options) {\n throw this.unimplemented(`${this.deleteEventsById.name} is not implemented on the web`);\n }\n createCalendar(_options) {\n throw this.unimplemented(`${this.createCalendar.name} is not implemented on the web`);\n }\n deleteCalendar(_options) {\n throw this.unimplemented(`${this.deleteCalendar.name} is not implemented on the web`);\n }\n getRemindersFromLists(_options) {\n throw this.unimplemented(`${this.getRemindersFromLists.name} is not implemented on the web`);\n }\n deleteRemindersById(_options) {\n throw this.unimplemented(`${this.deleteRemindersById.name} is not implemented on the web`);\n }\n requestWriteOnlyCalendarAccess() {\n throw this.unimplemented(`${this.requestWriteOnlyCalendarAccess.name} is not implemented on the web`);\n }\n requestReadOnlyCalendarAccess() {\n throw this.unimplemented(`${this.requestReadOnlyCalendarAccess.name} is not implemented on the web`);\n }\n requestFullCalendarAccess() {\n throw this.unimplemented(`${this.requestFullCalendarAccess.name} is not implemented on the web`);\n }\n requestFullRemindersAccess() {\n throw this.unimplemented(`${this.requestFullRemindersAccess.name} is not implemented on the web`);\n }\n modifyEventWithPrompt(_options) {\n throw this.unimplemented(`${this.modifyEventWithPrompt.name} is not implemented on the web`);\n }\n modifyEvent(_options) {\n throw this.unimplemented(`${this.modifyEvent.name} is not implemented on the web`);\n }\n fetchAllCalendarSources() {\n throw this.unimplemented(`${this.fetchAllCalendarSources.name} is not implemented on the web`);\n }\n fetchAllRemindersSources() {\n throw this.unimplemented(`${this.fetchAllRemindersSources.name} is not implemented on the web`);\n }\n modifyReminder(_options) {\n throw this.unimplemented(`${this.modifyReminder.name} is not implemented on the web`);\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["CalendarChooserDisplayStyle","CalendarChooserSelectionStyle","PluginPermission","ReminderRecurrenceFrequency","EventSpan","CalendarSourceType","CalendarType","registerPlugin","WebPlugin"],"mappings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A8B,CAAC,CAAC,CAAC;IAC9F,KAAK;IACL;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"plugin.js","sources":["esm/schemas/enums/attendee-role.js","esm/schemas/enums/attendee-status.js","esm/schemas/enums/attendee-type.js","esm/schemas/enums/calendar-chooser-display-style.js","esm/schemas/enums/calendar-permission-scope.js","esm/schemas/enums/calendar-source-type.js","esm/schemas/enums/calendar-type.js","esm/schemas/enums/event-availability.js","esm/schemas/enums/event-span.js","esm/schemas/enums/event-status.js","esm/schemas/enums/recurrence-frequency.js","esm/schemas/enums/reminder-recurrence-frequency.js","esm/index.js","esm/web.js"],"sourcesContent":["/**\n * @since 7.1.0\n */\nexport var AttendeeRole;\n(function (AttendeeRole) {\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n AttendeeRole[\"UNKNOWN\"] = \"unknown\";\n /**\n * @platform iOS\n * @since 7.1.0\n */\n AttendeeRole[\"REQUIRED\"] = \"required\";\n /**\n * @platform iOS\n * @since 7.1.0\n */\n AttendeeRole[\"OPTIONAL\"] = \"optional\";\n /**\n * @platform iOS\n * @since 7.1.0\n */\n AttendeeRole[\"CHAIR\"] = \"chair\";\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n AttendeeRole[\"NON_PARTICIPANT\"] = \"nonParticipant\";\n /**\n * @platform Android\n * @since 7.1.0\n */\n AttendeeRole[\"ATTENDEE\"] = \"attendee\";\n /**\n * @platform Android\n * @since 7.1.0\n */\n AttendeeRole[\"ORGANIZER\"] = \"organizer\";\n /**\n * @platform Android\n * @since 7.1.0\n */\n AttendeeRole[\"PERFORMER\"] = \"performer\";\n /**\n * @platform Android\n * @since 7.1.0\n */\n AttendeeRole[\"SPEAKER\"] = \"speaker\";\n})(AttendeeRole || (AttendeeRole = {}));\n//# sourceMappingURL=attendee-role.js.map","/**\n * @since 7.1.0\n */\nexport var AttendeeStatus;\n(function (AttendeeStatus) {\n /**\n * @platform Android\n * @since 7.1.0\n */\n AttendeeStatus[\"NONE\"] = \"none\";\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n AttendeeStatus[\"ACCEPTED\"] = \"accepted\";\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n AttendeeStatus[\"DECLINED\"] = \"declined\";\n /**\n * @platform Android\n * @since 7.1.0\n */\n AttendeeStatus[\"INVITED\"] = \"invited\";\n /**\n * @platform iOS\n * @since 7.1.0\n */\n AttendeeStatus[\"UNKNOWN\"] = \"unknown\";\n /**\n * @platform iOS\n * @since 7.1.0\n */\n AttendeeStatus[\"PENDING\"] = \"pending\";\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n AttendeeStatus[\"TENTATIVE\"] = \"tentative\";\n /**\n * @platform iOS\n * @since 7.1.0\n */\n AttendeeStatus[\"DELEGATED\"] = \"delegated\";\n /**\n * @platform iOS\n * @since 7.1.0\n */\n AttendeeStatus[\"COMPLETED\"] = \"completed\";\n /**\n * @platform iOS\n * @since 7.1.0\n */\n AttendeeStatus[\"IN_PROCESS\"] = \"inProcess\";\n})(AttendeeStatus || (AttendeeStatus = {}));\n//# sourceMappingURL=attendee-status.js.map","/**\n * @since 7.1.0\n */\nexport var AttendeeType;\n(function (AttendeeType) {\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n AttendeeType[\"UNKNOWN\"] = \"unknown\";\n /**\n * @platform iOS\n * @since 7.1.0\n */\n AttendeeType[\"PERSON\"] = \"person\";\n /**\n * @platform iOS\n * @since 7.1.0\n */\n AttendeeType[\"ROOM\"] = \"room\";\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n AttendeeType[\"RESOURCE\"] = \"resource\";\n /**\n * @platform iOS\n * @since 7.1.0\n */\n AttendeeType[\"GROUP\"] = \"group\";\n /**\n * @platform Android\n * @since 7.1.0\n */\n AttendeeType[\"REQUIRED\"] = \"required\";\n /**\n * @platform Android\n * @since 7.1.0\n */\n AttendeeType[\"NONE\"] = \"none\";\n /**\n * @platform Android\n * @since 7.1.0\n */\n AttendeeType[\"OPTIONAL\"] = \"optional\";\n})(AttendeeType || (AttendeeType = {}));\n//# sourceMappingURL=attendee-type.js.map","/**\n * @since 0.2.0\n */\nexport var CalendarChooserDisplayStyle;\n(function (CalendarChooserDisplayStyle) {\n /**\n * @since 0.2.0\n */\n CalendarChooserDisplayStyle[CalendarChooserDisplayStyle[\"ALL_CALENDARS\"] = 0] = \"ALL_CALENDARS\";\n /**\n * @since 0.2.0\n */\n CalendarChooserDisplayStyle[CalendarChooserDisplayStyle[\"WRITABLE_CALENDARS_ONLY\"] = 1] = \"WRITABLE_CALENDARS_ONLY\";\n})(CalendarChooserDisplayStyle || (CalendarChooserDisplayStyle = {}));\n//# sourceMappingURL=calendar-chooser-display-style.js.map","/**\n * Enum defining available calendar and reminders related permissions.\n *\n * @since 7.1.0\n */\nexport var CalendarPermissionScope;\n(function (CalendarPermissionScope) {\n /**\n * Permission required for reading calendar events.\n *\n * @permissions\n * | Platform | Required |\n * |-----------|---------------------|\n * | iOS 17+ | `NSCalendarsFullAccessUsageDescription` |\n * | iOS 13-16 | `NSCalendarsUsageDescription` |\n * | Android | `android.permission.READ_CALENDAR` |\n *\n * @platform Android, iOS\n * @since 7.1.0\n */\n CalendarPermissionScope[\"READ_CALENDAR\"] = \"readCalendar\";\n /**\n * Permission required for reading reminders.\n *\n * @permissions\n * | Platform | Required |\n * |-----------|---------------------|\n * | iOS 17+ | `NSRemindersFullAccessUsageDescription` |\n * | iOS 10-16 | `NSRemindersUsageDescription` |\n * @platform iOS\n * @since 7.1.0\n */\n CalendarPermissionScope[\"READ_REMINDERS\"] = \"readReminders\";\n /**\n * Permission required for adding or modifying calendar events.\n *\n * @permissions\n * | Platform | Required |\n * |-----------|---------------------|\n * | iOS 17+ | `NSCalendarsWriteOnlyAccessUsageDescription` |\n * | iOS 13-16 | `NSCalendarsUsageDescription` |\n * | Android | `android.permission.WRITE_CALENDAR` |\n *\n * @platform Android, iOS\n * @since 7.1.0\n */\n CalendarPermissionScope[\"WRITE_CALENDAR\"] = \"writeCalendar\";\n /**\n * Permission required for adding or modifying reminders.\n *\n * @permissions\n * | Platform | Required |\n * |-----------|---------------------|\n * | iOS 17+ | `NSRemindersFullAccessUsageDescription` |\n * | iOS 13-16 | `NSRemindersUsageDescription` |\n *\n * @platform iOS\n * @since 7.1.0\n */\n CalendarPermissionScope[\"WRITE_REMINDERS\"] = \"writeReminders\";\n})(CalendarPermissionScope || (CalendarPermissionScope = {}));\n//# sourceMappingURL=calendar-permission-scope.js.map","/**\n * @since 7.1.0\n */\nexport var CalendarSourceType;\n(function (CalendarSourceType) {\n /**\n * @since 7.1.0\n */\n CalendarSourceType[CalendarSourceType[\"LOCAL\"] = 0] = \"LOCAL\";\n /**\n * @since 7.1.0\n */\n CalendarSourceType[CalendarSourceType[\"EXCHANGE\"] = 1] = \"EXCHANGE\";\n /**\n * @since 7.1.0\n */\n CalendarSourceType[CalendarSourceType[\"CAL_DAV\"] = 2] = \"CAL_DAV\";\n /**\n * @since 7.1.0\n */\n CalendarSourceType[CalendarSourceType[\"MOBILE_ME\"] = 3] = \"MOBILE_ME\";\n /**\n * @since 7.1.0\n */\n CalendarSourceType[CalendarSourceType[\"SUBSCRIBED\"] = 4] = \"SUBSCRIBED\";\n /**\n * @since 7.1.0\n */\n CalendarSourceType[CalendarSourceType[\"BIRTHDAYS\"] = 5] = \"BIRTHDAYS\";\n})(CalendarSourceType || (CalendarSourceType = {}));\n//# sourceMappingURL=calendar-source-type.js.map","/**\n * @since 7.1.0\n */\nexport var CalendarType;\n(function (CalendarType) {\n /**\n * @since 7.1.0\n */\n CalendarType[CalendarType[\"LOCAL\"] = 0] = \"LOCAL\";\n /**\n * @since 7.1.0\n */\n CalendarType[CalendarType[\"CAL_DAV\"] = 1] = \"CAL_DAV\";\n /**\n * @since 7.1.0\n */\n CalendarType[CalendarType[\"EXCHANGE\"] = 2] = \"EXCHANGE\";\n /**\n * @since 7.1.0\n */\n CalendarType[CalendarType[\"SUBSCRIPTION\"] = 3] = \"SUBSCRIPTION\";\n /**\n * @since 7.1.0\n */\n CalendarType[CalendarType[\"BIRTHDAY\"] = 4] = \"BIRTHDAY\";\n})(CalendarType || (CalendarType = {}));\n//# sourceMappingURL=calendar-type.js.map","/**\n * @since 7.1.0\n */\nexport var EventAvailability;\n(function (EventAvailability) {\n /**\n * @platform iOS\n * @since 7.1.0\n */\n EventAvailability[EventAvailability[\"NOT_SUPPORTED\"] = -1] = \"NOT_SUPPORTED\";\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n EventAvailability[EventAvailability[\"BUSY\"] = 0] = \"BUSY\";\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n EventAvailability[EventAvailability[\"FREE\"] = 1] = \"FREE\";\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n EventAvailability[EventAvailability[\"TENTATIVE\"] = 2] = \"TENTATIVE\";\n /**\n * @platform iOS\n * @since 7.1.0\n */\n EventAvailability[EventAvailability[\"UNAVAILABLE\"] = 3] = \"UNAVAILABLE\";\n})(EventAvailability || (EventAvailability = {}));\n//# sourceMappingURL=event-availability.js.map","/**\n * @since 7.1.0\n */\nexport var EventSpan;\n(function (EventSpan) {\n /**\n * @since 7.1.0\n */\n EventSpan[EventSpan[\"THIS_EVENT\"] = 0] = \"THIS_EVENT\";\n /**\n * @since 7.1.0\n */\n EventSpan[EventSpan[\"THIS_AND_FUTURE_EVENTS\"] = 1] = \"THIS_AND_FUTURE_EVENTS\";\n})(EventSpan || (EventSpan = {}));\n//# sourceMappingURL=event-span.js.map","/**\n * @platform Android, iOS\n * @since 7.1.0\n */\nexport var EventStatus;\n(function (EventStatus) {\n /**\n * @platform iOS\n * @since 7.1.0\n */\n EventStatus[\"NONE\"] = \"none\";\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n EventStatus[\"CONFIRMED\"] = \"confirmed\";\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n EventStatus[\"TENTATIVE\"] = \"tentative\";\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n EventStatus[\"CANCELED\"] = \"canceled\";\n})(EventStatus || (EventStatus = {}));\n//# sourceMappingURL=event-status.js.map","/**\n * @since 7.1.0\n */\nexport var RecurrenceFrequency;\n(function (RecurrenceFrequency) {\n /**\n * @since 7.1.0\n */\n RecurrenceFrequency[RecurrenceFrequency[\"DAILY\"] = 0] = \"DAILY\";\n /**\n * @since 7.1.0\n */\n RecurrenceFrequency[RecurrenceFrequency[\"WEEKLY\"] = 1] = \"WEEKLY\";\n /**\n * @since 7.1.0\n */\n RecurrenceFrequency[RecurrenceFrequency[\"MONTHLY\"] = 2] = \"MONTHLY\";\n /**\n * @since 7.1.0\n */\n RecurrenceFrequency[RecurrenceFrequency[\"YEARLY\"] = 3] = \"YEARLY\";\n})(RecurrenceFrequency || (RecurrenceFrequency = {}));\n//# sourceMappingURL=recurrence-frequency.js.map","/**\n * @deprecated Use `RecurrenceFrequency`.\n */\nexport var ReminderRecurrenceFrequency;\n(function (ReminderRecurrenceFrequency) {\n /**\n * @deprecated Use `RecurrenceFrequency.DAILY`.\n */\n ReminderRecurrenceFrequency[ReminderRecurrenceFrequency[\"DAILY\"] = 0] = \"DAILY\";\n /**\n * @deprecated Use `RecurrenceFrequency.WEEKLY`.\n */\n ReminderRecurrenceFrequency[ReminderRecurrenceFrequency[\"WEEKLY\"] = 1] = \"WEEKLY\";\n /**\n * @deprecated Use `RecurrenceFrequency.MONTHLY`.\n */\n ReminderRecurrenceFrequency[ReminderRecurrenceFrequency[\"MONTHLY\"] = 2] = \"MONTHLY\";\n /**\n * @deprecated Use `RecurrenceFrequency.YEARLY`.\n */\n ReminderRecurrenceFrequency[ReminderRecurrenceFrequency[\"YEARLY\"] = 3] = \"YEARLY\";\n})(ReminderRecurrenceFrequency || (ReminderRecurrenceFrequency = {}));\n//# sourceMappingURL=reminder-recurrence-frequency.js.map","import { AttendeeRole } from \"./schemas/enums/attendee-role\";\nimport { AttendeeStatus } from \"./schemas/enums/attendee-status\";\nimport { AttendeeType } from \"./schemas/enums/attendee-type\";\nimport { CalendarChooserDisplayStyle } from \"./schemas/enums/calendar-chooser-display-style\";\nimport { CalendarPermissionScope } from \"./schemas/enums/calendar-permission-scope\";\nimport { CalendarSourceType } from \"./schemas/enums/calendar-source-type\";\nimport { CalendarType } from \"./schemas/enums/calendar-type\";\nimport { EventAvailability } from \"./schemas/enums/event-availability\";\nimport { EventSpan } from \"./schemas/enums/event-span\";\nimport { EventStatus } from \"./schemas/enums/event-status\";\nimport { RecurrenceFrequency } from \"./schemas/enums/recurrence-frequency\";\nimport { ReminderRecurrenceFrequency } from \"./schemas/enums/reminder-recurrence-frequency\";\nimport { registerPlugin } from \"@capacitor/core\";\nconst CapacitorCalendar = registerPlugin(\"CapacitorCalendar\", {\n web: () => import(\"./web\").then((m) => new m.CapacitorCalendarWeb()),\n});\nexport * from \"./definitions\";\nexport { CalendarPermissionScope, EventAvailability, EventSpan, CalendarChooserDisplayStyle, CalendarType, CalendarSourceType, ReminderRecurrenceFrequency, RecurrenceFrequency, EventStatus, AttendeeRole, AttendeeType, AttendeeStatus, CapacitorCalendar, };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from \"@capacitor/core\";\nexport class CapacitorCalendarWeb extends WebPlugin {\n checkPermission(_options) {\n return this.throwUnimplemented(this.checkPermission.name);\n }\n checkAllPermissions() {\n return this.throwUnimplemented(this.checkAllPermissions.name);\n }\n requestPermission(_options) {\n return this.throwUnimplemented(this.requestPermission.name);\n }\n requestAllPermissions() {\n return this.throwUnimplemented(this.requestAllPermissions.name);\n }\n requestWriteOnlyCalendarAccess() {\n return this.throwUnimplemented(this.requestWriteOnlyCalendarAccess.name);\n }\n requestReadOnlyCalendarAccess() {\n return this.throwUnimplemented(this.requestReadOnlyCalendarAccess.name);\n }\n requestFullCalendarAccess() {\n return this.throwUnimplemented(this.requestFullCalendarAccess.name);\n }\n requestFullRemindersAccess() {\n return this.throwUnimplemented(this.requestFullRemindersAccess.name);\n }\n createEventWithPrompt(_options) {\n return this.throwUnimplemented(this.createEventWithPrompt.name);\n }\n modifyEventWithPrompt(_options) {\n return this.throwUnimplemented(this.modifyEventWithPrompt.name);\n }\n createEvent(_options) {\n return this.throwUnimplemented(this.createEvent.name);\n }\n commit() {\n return this.throwUnimplemented(this.commit.name);\n }\n modifyEvent(_options) {\n return this.throwUnimplemented(this.modifyEvent.name);\n }\n selectCalendarsWithPrompt(_options) {\n return this.throwUnimplemented(this.selectCalendarsWithPrompt.name);\n }\n fetchAllCalendarSources() {\n return this.throwUnimplemented(this.fetchAllCalendarSources.name);\n }\n listCalendars() {\n return this.throwUnimplemented(this.listCalendars.name);\n }\n fetchAllRemindersSources() {\n return this.throwUnimplemented(this.fetchAllRemindersSources.name);\n }\n getDefaultCalendar() {\n return this.throwUnimplemented(this.getDefaultCalendar.name);\n }\n getDefaultRemindersList() {\n return this.throwUnimplemented(this.getDefaultRemindersList.name);\n }\n openReminders() {\n return this.throwUnimplemented(this.openReminders.name);\n }\n getRemindersLists() {\n return this.throwUnimplemented(this.getRemindersLists.name);\n }\n openCalendar(_options) {\n return this.throwUnimplemented(this.openCalendar.name);\n }\n createCalendar(_options) {\n return this.throwUnimplemented(this.createCalendar.name);\n }\n deleteCalendar(_options) {\n return this.throwUnimplemented(this.deleteCalendar.name);\n }\n createReminder(_options) {\n return this.throwUnimplemented(this.createReminder.name);\n }\n deleteRemindersById(_options) {\n return this.throwUnimplemented(this.deleteRemindersById.name);\n }\n deleteReminder(_options) {\n return this.throwUnimplemented(this.deleteReminder.name);\n }\n modifyReminder(_options) {\n return this.throwUnimplemented(this.modifyReminder.name);\n }\n getReminderById(_options) {\n return this.throwUnimplemented(this.getReminderById.name);\n }\n getRemindersFromLists(_options) {\n return this.throwUnimplemented(this.getRemindersFromLists.name);\n }\n deleteEventsById(_options) {\n return this.throwUnimplemented(this.deleteEventsById.name);\n }\n deleteEvent(_options) {\n return this.throwUnimplemented(this.deleteEvent.name);\n }\n deleteEventWithPrompt(_options) {\n return this.throwUnimplemented(this.deleteEventWithPrompt.name);\n }\n listEventsInRange(_options) {\n return this.throwUnimplemented(this.listEventsInRange.name);\n }\n throwUnimplemented(methodName) {\n return Promise.reject(this.unimplemented(`${methodName} is not implemented on the web.`));\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["AttendeeRole","AttendeeStatus","AttendeeType","CalendarChooserDisplayStyle","CalendarPermissionScope","CalendarSourceType","CalendarType","EventAvailability","EventSpan","EventStatus","RecurrenceFrequency","ReminderRecurrenceFrequency","registerPlugin","WebPlugin"],"mappings":";;;IAAA;IACA;IACA;AACWA;IACX,CAAC,UAAU,YAAY,EAAE;IACzB;IACA;IACA;IACA;IACA,IAAI,YAAY,CAAC,SAAS,CAAC,GAAG,SAAS;IACvC;IACA;IACA;IACA;IACA,IAAI,YAAY,CAAC,UAAU,CAAC,GAAG,UAAU;IACzC;IACA;IACA;IACA;IACA,IAAI,YAAY,CAAC,UAAU,CAAC,GAAG,UAAU;IACzC;IACA;IACA;IACA;IACA,IAAI,YAAY,CAAC,OAAO,CAAC,GAAG,OAAO;IACnC;IACA;IACA;IACA;IACA,IAAI,YAAY,CAAC,iBAAiB,CAAC,GAAG,gBAAgB;IACtD;IACA;IACA;IACA;IACA,IAAI,YAAY,CAAC,UAAU,CAAC,GAAG,UAAU;IACzC;IACA;IACA;IACA;IACA,IAAI,YAAY,CAAC,WAAW,CAAC,GAAG,WAAW;IAC3C;IACA;IACA;IACA;IACA,IAAI,YAAY,CAAC,WAAW,CAAC,GAAG,WAAW;IAC3C;IACA;IACA;IACA;IACA,IAAI,YAAY,CAAC,SAAS,CAAC,GAAG,SAAS;IACvC,CAAC,EAAEA,oBAAY,KAAKA,oBAAY,GAAG,EAAE,CAAC,CAAC;;IClDvC;IACA;IACA;AACWC;IACX,CAAC,UAAU,cAAc,EAAE;IAC3B;IACA;IACA;IACA;IACA,IAAI,cAAc,CAAC,MAAM,CAAC,GAAG,MAAM;IACnC;IACA;IACA;IACA;IACA,IAAI,cAAc,CAAC,UAAU,CAA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AAC;IAClE;IACA,IAAI,WAAW,CAAC,QAAQ,EAAE;IAC1B,QAAQ,OAAO,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC;IAC7D;IACA,IAAI,qBAAqB,CAAC,QAAQ,EAAE;IACpC,QAAQ,OAAO,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,qBAAqB,CAAC,IAAI,CAAC;IACvE;IACA,IAAI,iBAAiB,CAAC,QAAQ,EAAE;IAChC,QAAQ,OAAO,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC;IACnE;IACA,IAAI,kBAAkB,CAAC,UAAU,EAAE;IACnC,QAAQ,OAAO,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,EAAE,UAAU,CAAC,+BAA+B,CAAC,CAAC,CAAC;IACjG;IACA;;;;;;;;;;;;;;;"}
@@ -0,0 +1,348 @@
1
+ import Capacitor
2
+ import EventKit
3
+
4
+ @objc(CapacitorCalendarPlugin)
5
+ public class CapacitorCalendarPlugin: CAPPlugin, CAPBridgedPlugin {
6
+ public let identifier = PluginConfig.identifier
7
+ public let jsName = PluginConfig.jsName
8
+ public let pluginMethods = PluginConfig.methods
9
+ private lazy var implementation = CapacitorCalendar(plugin: self)
10
+
11
+ @objc public func checkPermission(_ call: CAPPluginCall) {
12
+ do {
13
+ let input = try CheckPermissionInput(call: call)
14
+ let result = try implementation.checkPermission(input: input)
15
+ call.resolve(result.toJSON())
16
+ } catch let error {
17
+ call.reject(error.localizedDescription)
18
+ }
19
+ }
20
+
21
+ @objc public func checkAllPermissions(_ call: CAPPluginCall) {
22
+ do {
23
+ let result = try implementation.checkAllPermissions()
24
+ call.resolve(result.toJSON())
25
+ } catch let error {
26
+ call.reject(error.localizedDescription)
27
+ }
28
+ }
29
+
30
+ @objc public func requestPermission(_ call: CAPPluginCall) {
31
+ Task {
32
+ do {
33
+ let input = try RequestPermissionInput(call: call)
34
+ let result = try await implementation.requestionPermission(input: input)
35
+ call.resolve(result.toJSON())
36
+ } catch let error {
37
+ call.reject(error.localizedDescription)
38
+ }
39
+ }
40
+ }
41
+
42
+ @objc public func requestAllPermissions(_ call: CAPPluginCall) {
43
+ Task {
44
+ do {
45
+ let result = try await implementation.requestAllPermissions()
46
+ call.resolve(result.toJSON())
47
+ } catch let error {
48
+ call.reject(error.localizedDescription)
49
+ }
50
+ }
51
+ }
52
+
53
+ @objc public func requestWriteOnlyCalendarAccess(_ call: CAPPluginCall) {
54
+ Task {
55
+ do {
56
+ let result = try await implementation.requestWriteOnlyCalendarAccess()
57
+ call.resolve(result.toJSON())
58
+ } catch let error {
59
+ call.reject(error.localizedDescription)
60
+ }
61
+ }
62
+ }
63
+
64
+ @objc public func requestReadOnlyCalendarAccess(_ call: CAPPluginCall) {
65
+ call.unimplemented(PluginError.unimplemented(#function).localizedDescription)
66
+ }
67
+
68
+ @objc public func requestFullCalendarAccess(_ call: CAPPluginCall) {
69
+ Task {
70
+ do {
71
+ let result = try await implementation.requestFullCalendarAccess()
72
+ call.resolve(result.toJSON())
73
+ } catch let error {
74
+ call.reject(error.localizedDescription)
75
+ }
76
+ }
77
+ }
78
+
79
+ @objc public func requestFullRemindersAccess(_ call: CAPPluginCall) {
80
+ Task {
81
+ do {
82
+ let result = try await implementation.requestFullRemindersAccess()
83
+ call.resolve(result.toJSON())
84
+ } catch let error {
85
+ call.reject(error.localizedDescription)
86
+ }
87
+ }
88
+ }
89
+
90
+ @objc public func createEventWithPrompt(_ call: CAPPluginCall) {
91
+ Task {
92
+ do {
93
+ let input = CreateEventWithPromptInput(call: call)
94
+ let result = try await implementation.createEventWithPrompt(with: input)
95
+ call.resolve(result.toJSON())
96
+ } catch let error {
97
+ call.reject(error.localizedDescription)
98
+ }
99
+ }
100
+ }
101
+
102
+ @objc public func modifyEventWithPrompt(_ call: CAPPluginCall) {
103
+ Task {
104
+ do {
105
+ let input = try ModifyEventWithPromptInput(call: call)
106
+ let result = try await implementation.modifyEventWithPrompt(input: input)
107
+ call.resolve(result.toJSON())
108
+ } catch let error {
109
+ call.reject(error.localizedDescription)
110
+ }
111
+ }
112
+ }
113
+
114
+ @objc public func createEvent(_ call: CAPPluginCall) {
115
+ do {
116
+ let input = try CreateEventInput(call: call)
117
+ let result = try implementation.createEvent(input: input)
118
+ call.resolve(result.toJSON())
119
+ } catch let error {
120
+ call.reject(error.localizedDescription)
121
+ }
122
+ }
123
+
124
+ @objc public func commit(_ call: CAPPluginCall) {
125
+ do {
126
+ try implementation.commit()
127
+ call.resolve()
128
+ } catch let error {
129
+ call.reject(error.localizedDescription)
130
+ }
131
+ }
132
+
133
+ @objc public func modifyEvent(_ call: CAPPluginCall) {
134
+ do {
135
+ let input: ModifyEventInput = try ModifyEventInput(call: call)
136
+ try implementation.modifyEvent(input: input)
137
+ call.resolve()
138
+ } catch let error {
139
+ call.reject(error.localizedDescription)
140
+ }
141
+ }
142
+
143
+ @objc public func selectCalendarsWithPrompt(_ call: CAPPluginCall) {
144
+ Task {
145
+ do {
146
+ let input = SelectCalendarsWithPromptInput(call: call)
147
+ let result = try await implementation.selectCalendarsWithPrompt(input: input)
148
+ call.resolve(result.toJSON())
149
+ } catch let error {
150
+ call.reject(error.localizedDescription)
151
+ }
152
+ }
153
+ }
154
+
155
+ @objc public func fetchAllCalendarSources(_ call: CAPPluginCall) {
156
+ do {
157
+ call.resolve(try implementation.fetchAllCalendarSources().toJSON())
158
+ } catch let error {
159
+ call.reject(error.localizedDescription)
160
+ }
161
+ }
162
+
163
+ @objc public func listCalendars(_ call: CAPPluginCall) {
164
+ do {
165
+ call.resolve(try implementation.listCalendars().toJSON())
166
+ } catch let error {
167
+ call.reject(error.localizedDescription)
168
+ }
169
+ }
170
+
171
+ @objc public func fetchAllRemindersSources(_ call: CAPPluginCall) {
172
+ fetchAllCalendarSources(call)
173
+ }
174
+
175
+ @objc public func openReminders(_ call: CAPPluginCall) {
176
+ Task {
177
+ do {
178
+ try await implementation.openReminders()
179
+ call.resolve()
180
+ } catch let error {
181
+ call.reject(error.localizedDescription)
182
+ }
183
+ }
184
+ }
185
+
186
+ @objc public func getDefaultCalendar(_ call: CAPPluginCall) {
187
+ do {
188
+ let result = try implementation.getDefaultCalendar()
189
+ call.resolve(result.toJSON())
190
+ } catch let error {
191
+ call.reject(error.localizedDescription)
192
+ }
193
+ }
194
+
195
+ @objc public func getDefaultRemindersList(_ call: CAPPluginCall) {
196
+ do {
197
+ let result = try implementation.getDefaultRemindersList()
198
+ call.resolve(result.toJSON())
199
+ } catch let error {
200
+ call.reject(error.localizedDescription)
201
+ }
202
+ }
203
+
204
+ @objc public func getRemindersLists(_ call: CAPPluginCall) {
205
+ do {
206
+ let result = try implementation.getRemindersLists()
207
+ call.resolve(result.toJSON())
208
+ } catch let error {
209
+ call.reject(error.localizedDescription)
210
+ }
211
+ }
212
+
213
+ @objc public func openCalendar(_ call: CAPPluginCall) {
214
+ Task {
215
+ do {
216
+ let input = OpenCalendarInput(call: call)
217
+ try await implementation.openCalendar(input: input)
218
+ call.resolve()
219
+ } catch let error {
220
+ call.reject(error.localizedDescription)
221
+ }
222
+ }
223
+ }
224
+
225
+ @objc public func createCalendar(_ call: CAPPluginCall) {
226
+ do {
227
+ let input = try CreateCalendarInput(call: call)
228
+ let result = try implementation.createCalendar(input: input)
229
+ call.resolve(result.toJSON())
230
+ } catch let error {
231
+ call.reject(error.localizedDescription)
232
+ }
233
+ }
234
+
235
+ @objc public func deleteCalendar(_ call: CAPPluginCall) {
236
+ do {
237
+ let input = try DeleteCalendarInput(call: call)
238
+ try implementation.deleteCalendar(input: input)
239
+ call.resolve()
240
+ } catch let error {
241
+ call.reject(error.localizedDescription)
242
+ }
243
+ }
244
+
245
+ @objc public func createReminder(_ call: CAPPluginCall) {
246
+ do {
247
+ let input = try CreateReminderInput(call: call)
248
+ let result = try implementation.createReminder(input: input)
249
+ call.resolve(result.toJSON())
250
+ } catch let error {
251
+ call.reject(error.localizedDescription)
252
+ }
253
+ }
254
+
255
+ @objc public func deleteRemindersById(_ call: CAPPluginCall) {
256
+ do {
257
+ let input = try DeleteRemindersByIdInput(call: call)
258
+ let result = try implementation.deleteRemindersById(input)
259
+ call.resolve(result.toJSON())
260
+ } catch let error {
261
+ call.reject(error.localizedDescription)
262
+ }
263
+ }
264
+
265
+ @objc public func deleteReminder(_ call: CAPPluginCall) {
266
+ do {
267
+ let input = try DeleteReminderInput(call: call)
268
+ try implementation.deleteReminder(input)
269
+ call.resolve()
270
+ } catch let error {
271
+ call.reject(error.localizedDescription)
272
+ }
273
+ }
274
+
275
+ @objc public func modifyReminder(_ call: CAPPluginCall) {
276
+ do {
277
+ let input = try ModifyReminderInput(call: call)
278
+ try implementation.modifyReminder(input)
279
+ call.resolve()
280
+ } catch let error {
281
+ call.reject(error.localizedDescription)
282
+ }
283
+ }
284
+
285
+ @objc public func getReminderById(_ call: CAPPluginCall) {
286
+ do {
287
+ let input = try GetReminderByIdInput(call: call)
288
+ let result = try implementation.getReminderById(input)
289
+ call.resolve(result.toJSON())
290
+ } catch let error {
291
+ call.reject(error.localizedDescription)
292
+ }
293
+ }
294
+
295
+ @objc public func getRemindersFromLists(_ call: CAPPluginCall) {
296
+ Task {
297
+ do {
298
+ let input = try GetRemindersFromListsInput(call: call)
299
+ let result = try await implementation.getRemindersFromLists(input)
300
+ call.resolve(result.toJSON())
301
+ } catch let error {
302
+ call.reject(error.localizedDescription)
303
+ }
304
+ }
305
+ }
306
+
307
+ @objc public func deleteEventsById(_ call: CAPPluginCall) {
308
+ do {
309
+ let input = try DeleteEventsByIdInput(call: call)
310
+ let result = try implementation.deleteEventsById(input)
311
+ call.resolve(result.toJSON())
312
+ } catch let error {
313
+ call.reject(error.localizedDescription)
314
+ }
315
+ }
316
+
317
+ @objc public func deleteEvent(_ call: CAPPluginCall) {
318
+ do {
319
+ let input = try DeleteEventInput(call: call)
320
+ try implementation.deleteEvent(input)
321
+ call.resolve()
322
+ } catch let error {
323
+ call.reject(error.localizedDescription)
324
+ }
325
+ }
326
+
327
+ @objc public func deleteEventWithPrompt(_ call: CAPPluginCall) {
328
+ Task {
329
+ do {
330
+ let input = try DeleteEventWithPromptInput(call: call)
331
+ let result = try await implementation.deleteEventWithPrompt(input)
332
+ call.resolve(result.toJSON())
333
+ } catch let error {
334
+ call.reject(error.localizedDescription)
335
+ }
336
+ }
337
+ }
338
+
339
+ @objc public func listEventsInRange(_ call: CAPPluginCall) {
340
+ do {
341
+ let input = try ListEventsInRangeInput(call: call)
342
+ let result = try implementation.listEventsInRange(input)
343
+ call.resolve(result.toJSON())
344
+ } catch let error {
345
+ call.reject(error.localizedDescription)
346
+ }
347
+ }
348
+ }