@ebarooni/capacitor-calendar 7.0.0 → 7.2.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 (254) hide show
  1. package/README.md +863 -315
  2. package/android/src/main/java/dev/barooni/capacitor/calendar/CapacitorCalendarPlugin.kt +283 -316
  3. package/android/src/main/java/dev/barooni/capacitor/calendar/PluginError.kt +49 -0
  4. package/android/src/main/java/dev/barooni/capacitor/calendar/implementation/CapacitorCalendar.kt +363 -0
  5. package/android/src/main/java/dev/barooni/capacitor/calendar/models/data/CalendarEvent.kt +25 -0
  6. package/android/src/main/java/dev/barooni/capacitor/calendar/models/data/CalendarInfo.kt +14 -0
  7. package/android/src/main/java/dev/barooni/capacitor/calendar/models/data/EventGuest.kt +9 -0
  8. package/android/src/main/java/dev/barooni/capacitor/calendar/models/enums/CalendarPermissionScope.kt +15 -0
  9. package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/CheckPermissionInput.kt +20 -0
  10. package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/CreateCalendarInput.kt +18 -0
  11. package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/CreateEventInput.kt +27 -0
  12. package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/CreateEventWithPromptInput.kt +36 -0
  13. package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/DeleteCalendarInput.kt +10 -0
  14. package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/DeleteEventInput.kt +10 -0
  15. package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/DeleteEventWithPromptInput.kt +14 -0
  16. package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/DeleteEventsByIdInput.kt +11 -0
  17. package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/ListEventsInRangeInput.kt +14 -0
  18. package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/ModifyCalendarInput.kt +13 -0
  19. package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/ModifyEvent.kt +25 -0
  20. package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/ModifyEventWithPromptInput.kt +37 -0
  21. package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/OpenCalendarInput.kt +10 -0
  22. package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/RequestAllPermissionsInput.kt +9 -0
  23. package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/RequestPermissionInput.kt +40 -0
  24. package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/CheckAllPermissionsResult.kt +17 -0
  25. package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/CheckPermissionResult.kt +15 -0
  26. package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/CreateCalendarResult.kt +21 -0
  27. package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/CreateEventResult.kt +21 -0
  28. package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/CreateEventWithPromptResult.kt +12 -0
  29. package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/DeleteEventWithPromptResult.kt +14 -0
  30. package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/DeleteEventsByIdResult.kt +27 -0
  31. package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/GetDefaultCalendarResult.kt +34 -0
  32. package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/ListCalendarsResult.kt +39 -0
  33. package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/ListEventsInRangeResult.kt +58 -0
  34. package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/ModifyEventWithPromptResult.kt +12 -0
  35. package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/RequestAllPermissionsResult.kt +30 -0
  36. package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/RequestPermissionResult.kt +42 -0
  37. package/android/src/main/java/dev/barooni/capacitor/calendar/models/templates/JSResult.kt +7 -0
  38. package/android/src/main/java/dev/barooni/capacitor/calendar/utils/ImplementationHelper.kt +387 -0
  39. package/dist/docs.json +3966 -1107
  40. package/dist/esm/definitions.d.ts +6 -759
  41. package/dist/esm/definitions.js.map +1 -1
  42. package/dist/esm/index.d.ts +42 -12
  43. package/dist/esm/index.js +11 -6
  44. package/dist/esm/index.js.map +1 -1
  45. package/dist/esm/schemas/enums/attendee-role.d.ts +50 -0
  46. package/dist/esm/schemas/enums/attendee-role.js +52 -0
  47. package/dist/esm/schemas/enums/attendee-role.js.map +1 -0
  48. package/dist/esm/schemas/enums/attendee-status.d.ts +55 -0
  49. package/dist/esm/schemas/enums/attendee-status.js +57 -0
  50. package/dist/esm/schemas/enums/attendee-status.js.map +1 -0
  51. package/dist/esm/schemas/enums/attendee-type.d.ts +45 -0
  52. package/dist/esm/schemas/enums/attendee-type.js +47 -0
  53. package/dist/esm/schemas/enums/attendee-type.js.map +1 -0
  54. package/dist/esm/schemas/enums/calendar-chooser-display-style.d.ts +3 -6
  55. package/dist/esm/schemas/enums/calendar-chooser-display-style.js +3 -6
  56. package/dist/esm/schemas/enums/calendar-chooser-display-style.js.map +1 -1
  57. package/dist/esm/schemas/enums/calendar-permission-scope.d.ts +60 -0
  58. package/dist/esm/schemas/enums/calendar-permission-scope.js +62 -0
  59. package/dist/esm/schemas/enums/calendar-permission-scope.js.map +1 -0
  60. package/dist/esm/schemas/enums/calendar-source-type.d.ts +7 -16
  61. package/dist/esm/schemas/enums/calendar-source-type.js +7 -16
  62. package/dist/esm/schemas/enums/calendar-source-type.js.map +1 -1
  63. package/dist/esm/schemas/enums/calendar-type.d.ts +6 -9
  64. package/dist/esm/schemas/enums/calendar-type.js +6 -9
  65. package/dist/esm/schemas/enums/calendar-type.js.map +1 -1
  66. package/dist/esm/schemas/enums/event-availability.d.ts +30 -0
  67. package/dist/esm/schemas/enums/event-availability.js +32 -0
  68. package/dist/esm/schemas/enums/event-availability.js.map +1 -0
  69. package/dist/esm/schemas/enums/event-span.d.ts +3 -6
  70. package/dist/esm/schemas/enums/event-span.js +3 -6
  71. package/dist/esm/schemas/enums/event-span.js.map +1 -1
  72. package/dist/esm/schemas/enums/event-status.d.ts +26 -0
  73. package/dist/esm/schemas/enums/event-status.js +28 -0
  74. package/dist/esm/schemas/enums/event-status.js.map +1 -0
  75. package/dist/esm/schemas/enums/recurrence-frequency.d.ts +21 -0
  76. package/dist/esm/schemas/enums/recurrence-frequency.js +23 -0
  77. package/dist/esm/schemas/enums/recurrence-frequency.js.map +1 -0
  78. package/dist/esm/schemas/enums/reminder-recurrence-frequency.d.ts +5 -8
  79. package/dist/esm/schemas/enums/reminder-recurrence-frequency.js +5 -8
  80. package/dist/esm/schemas/enums/reminder-recurrence-frequency.js.map +1 -1
  81. package/dist/esm/schemas/interfaces/calendar-event.d.ts +116 -48
  82. package/dist/esm/schemas/interfaces/calendar-event.js.map +1 -1
  83. package/dist/esm/schemas/interfaces/calendar-source.d.ts +10 -7
  84. package/dist/esm/schemas/interfaces/calendar-source.js.map +1 -1
  85. package/dist/esm/schemas/interfaces/calendar.d.ts +59 -25
  86. package/dist/esm/schemas/interfaces/calendar.js.map +1 -1
  87. package/dist/esm/schemas/interfaces/create-calendar-options.d.ts +38 -0
  88. package/dist/esm/schemas/interfaces/create-calendar-options.js +2 -0
  89. package/dist/esm/schemas/interfaces/create-calendar-options.js.map +1 -0
  90. package/dist/esm/schemas/interfaces/create-event-options.d.ts +96 -0
  91. package/dist/esm/schemas/interfaces/create-event-options.js +2 -0
  92. package/dist/esm/schemas/interfaces/create-event-options.js.map +1 -0
  93. package/dist/esm/schemas/interfaces/create-event-with-prompt-options.d.ts +70 -0
  94. package/dist/esm/schemas/interfaces/create-event-with-prompt-options.js +2 -0
  95. package/dist/esm/schemas/interfaces/create-event-with-prompt-options.js.map +1 -0
  96. package/dist/esm/schemas/interfaces/create-reminder-options.d.ts +54 -0
  97. package/dist/esm/schemas/interfaces/create-reminder-options.js +2 -0
  98. package/dist/esm/schemas/interfaces/create-reminder-options.js.map +1 -0
  99. package/dist/esm/schemas/interfaces/delete-calendar-options.d.ts +9 -0
  100. package/dist/esm/schemas/interfaces/delete-calendar-options.js +2 -0
  101. package/dist/esm/schemas/interfaces/delete-calendar-options.js.map +1 -0
  102. package/dist/esm/schemas/interfaces/delete-event-options.d.ts +18 -0
  103. package/dist/esm/schemas/interfaces/delete-event-options.js +2 -0
  104. package/dist/esm/schemas/interfaces/delete-event-options.js.map +1 -0
  105. package/dist/esm/schemas/interfaces/delete-event-with-prompt-options.d.ts +48 -0
  106. package/dist/esm/schemas/interfaces/delete-event-with-prompt-options.js +2 -0
  107. package/dist/esm/schemas/interfaces/delete-event-with-prompt-options.js.map +1 -0
  108. package/dist/esm/schemas/interfaces/delete-events-by-id-options.d.ts +18 -0
  109. package/dist/esm/schemas/interfaces/delete-events-by-id-options.js +2 -0
  110. package/dist/esm/schemas/interfaces/delete-events-by-id-options.js.map +1 -0
  111. package/dist/esm/schemas/interfaces/delete-reminder-options.d.ts +9 -0
  112. package/dist/esm/schemas/interfaces/delete-reminder-options.js +2 -0
  113. package/dist/esm/schemas/interfaces/delete-reminder-options.js.map +1 -0
  114. package/dist/esm/schemas/interfaces/delete-reminder-with-prompt-options.d.ts +35 -0
  115. package/dist/esm/schemas/interfaces/delete-reminder-with-prompt-options.js +2 -0
  116. package/dist/esm/schemas/interfaces/delete-reminder-with-prompt-options.js.map +1 -0
  117. package/dist/esm/schemas/interfaces/delete-reminders-by-id-options.d.ts +9 -0
  118. package/dist/esm/schemas/interfaces/delete-reminders-by-id-options.js +2 -0
  119. package/dist/esm/schemas/interfaces/delete-reminders-by-id-options.js.map +1 -0
  120. package/dist/esm/schemas/interfaces/event-guest.d.ts +13 -0
  121. package/dist/esm/schemas/interfaces/event-guest.js +2 -0
  122. package/dist/esm/schemas/interfaces/event-guest.js.map +1 -0
  123. package/dist/esm/schemas/interfaces/get-reminder-by-id-options.d.ts +6 -0
  124. package/dist/esm/schemas/interfaces/get-reminder-by-id-options.js +2 -0
  125. package/dist/esm/schemas/interfaces/get-reminder-by-id-options.js.map +1 -0
  126. package/dist/esm/schemas/interfaces/get-reminders-from-lists-options.d.ts +9 -0
  127. package/dist/esm/schemas/interfaces/get-reminders-from-lists-options.js +2 -0
  128. package/dist/esm/schemas/interfaces/get-reminders-from-lists-options.js.map +1 -0
  129. package/dist/esm/schemas/interfaces/list-events-in-range-options.d.ts +17 -0
  130. package/dist/esm/schemas/interfaces/list-events-in-range-options.js +2 -0
  131. package/dist/esm/schemas/interfaces/list-events-in-range-options.js.map +1 -0
  132. package/dist/esm/schemas/interfaces/modify-calendar-options.d.ts +21 -0
  133. package/dist/esm/schemas/interfaces/modify-calendar-options.js +2 -0
  134. package/dist/esm/schemas/interfaces/modify-calendar-options.js.map +1 -0
  135. package/dist/esm/schemas/interfaces/modify-event-options.d.ts +103 -0
  136. package/dist/esm/schemas/interfaces/modify-event-options.js +2 -0
  137. package/dist/esm/schemas/interfaces/modify-event-options.js.map +1 -0
  138. package/dist/esm/schemas/interfaces/modify-event-with-prompt-options.d.ts +13 -0
  139. package/dist/esm/schemas/interfaces/modify-event-with-prompt-options.js +2 -0
  140. package/dist/esm/schemas/interfaces/modify-event-with-prompt-options.js.map +1 -0
  141. package/dist/esm/schemas/interfaces/modify-reminder-options.d.ts +58 -0
  142. package/dist/esm/schemas/interfaces/modify-reminder-options.js +2 -0
  143. package/dist/esm/schemas/interfaces/modify-reminder-options.js.map +1 -0
  144. package/dist/esm/schemas/interfaces/open-calendar-options.d.ts +10 -0
  145. package/dist/esm/schemas/interfaces/open-calendar-options.js +2 -0
  146. package/dist/esm/schemas/interfaces/open-calendar-options.js.map +1 -0
  147. package/dist/esm/schemas/interfaces/recurrence-rule.d.ts +22 -0
  148. package/dist/esm/schemas/interfaces/recurrence-rule.js +2 -0
  149. package/dist/esm/schemas/interfaces/recurrence-rule.js.map +1 -0
  150. package/dist/esm/schemas/interfaces/reminder-recurrence-rule.d.ts +6 -24
  151. package/dist/esm/schemas/interfaces/reminder-recurrence-rule.js.map +1 -1
  152. package/dist/esm/schemas/interfaces/reminder.d.ts +29 -38
  153. package/dist/esm/schemas/interfaces/reminder.js.map +1 -1
  154. package/dist/esm/schemas/interfaces/reminders-list.d.ts +3 -0
  155. package/dist/esm/schemas/interfaces/reminders-list.js.map +1 -1
  156. package/dist/esm/schemas/interfaces/select-calendars-with-prompt-options.d.ts +18 -0
  157. package/dist/esm/schemas/interfaces/select-calendars-with-prompt-options.js +2 -0
  158. package/dist/esm/schemas/interfaces/select-calendars-with-prompt-options.js.map +1 -0
  159. package/dist/esm/schemas/types/event-edit-action.d.ts +4 -0
  160. package/dist/esm/schemas/types/event-edit-action.js +2 -0
  161. package/dist/esm/schemas/types/event-edit-action.js.map +1 -0
  162. package/dist/esm/sub-definitions/calendar-access.d.ts +114 -0
  163. package/dist/esm/sub-definitions/calendar-access.js +2 -0
  164. package/dist/esm/sub-definitions/calendar-access.js.map +1 -0
  165. package/dist/esm/sub-definitions/calendar-operations.d.ts +85 -0
  166. package/dist/esm/sub-definitions/calendar-operations.js +2 -0
  167. package/dist/esm/sub-definitions/calendar-operations.js.map +1 -0
  168. package/dist/esm/sub-definitions/event-operations.d.ts +111 -0
  169. package/dist/esm/sub-definitions/event-operations.js +2 -0
  170. package/dist/esm/sub-definitions/event-operations.js.map +1 -0
  171. package/dist/esm/sub-definitions/reminders-access.d.ts +22 -0
  172. package/dist/esm/sub-definitions/reminders-access.js +2 -0
  173. package/dist/esm/sub-definitions/reminders-access.js.map +1 -0
  174. package/dist/esm/sub-definitions/reminders-operations.d.ts +120 -0
  175. package/dist/esm/sub-definitions/reminders-operations.js +2 -0
  176. package/dist/esm/sub-definitions/reminders-operations.js.map +1 -0
  177. package/dist/esm/web.d.ts +91 -150
  178. package/dist/esm/web.js +73 -49
  179. package/dist/esm/web.js.map +1 -1
  180. package/dist/plugin.cjs.js +398 -172
  181. package/dist/plugin.cjs.js.map +1 -1
  182. package/dist/plugin.js +398 -172
  183. package/dist/plugin.js.map +1 -1
  184. package/ios/Sources/CapacitorCalendarPlugin/CapacitorCalendarPlugin.swift +225 -528
  185. package/ios/Sources/CapacitorCalendarPlugin/Implementation/CapacitorCalendar.swift +596 -0
  186. package/ios/Sources/CapacitorCalendarPlugin/{PermissionState.swift → Models/Enums/CAPPermissionState.swift} +1 -3
  187. package/ios/Sources/CapacitorCalendarPlugin/Models/Enums/CalendarPermissionScope.swift +6 -0
  188. package/ios/Sources/CapacitorCalendarPlugin/Models/Enums/EventEditAction.swift +20 -0
  189. package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/CheckPermissionInput.swift +19 -0
  190. package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/CreateCalendarInput.swift +32 -0
  191. package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/CreateEventInput.swift +61 -0
  192. package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/CreateEventWithPromptInput.swift +89 -0
  193. package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/CreateReminderInput.swift +116 -0
  194. package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/DeleteCalendarInput.swift +16 -0
  195. package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/DeleteEventInput.swift +27 -0
  196. package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/DeleteEventWithPromptInput.swift +57 -0
  197. package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/DeleteEventsByIdInput.swift +27 -0
  198. package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/DeleteReminderInput.swift +16 -0
  199. package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/DeleteReminderWithPromptInput.swift +46 -0
  200. package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/DeleteRemindersByIdInput.swift +16 -0
  201. package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/GetReminderByIdInput.swift +16 -0
  202. package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/GetRemindersFromListsInput.swift +24 -0
  203. package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/ListEventsInRangeInput.swift +25 -0
  204. package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/ModifyCalendarInput.swift +32 -0
  205. package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/ModifyEventInput.swift +117 -0
  206. package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/ModifyEventWithPromptInput.swift +83 -0
  207. package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/ModifyReminderInput.swift +118 -0
  208. package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/OpenCalendarInput.swift +17 -0
  209. package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/RequestPermissionInput.swift +19 -0
  210. package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/SelectCalendarsWithPromptInput.swift +32 -0
  211. package/ios/Sources/CapacitorCalendarPlugin/Models/Results/CheckAllPermissionsResult.swift +15 -0
  212. package/ios/Sources/CapacitorCalendarPlugin/Models/Results/CheckPermissionResult.swift +16 -0
  213. package/ios/Sources/CapacitorCalendarPlugin/Models/Results/CreateCalendarResult.swift +18 -0
  214. package/ios/Sources/CapacitorCalendarPlugin/Models/Results/CreateEventResult.swift +18 -0
  215. package/ios/Sources/CapacitorCalendarPlugin/Models/Results/CreateEventWithPromptResult.swift +15 -0
  216. package/ios/Sources/CapacitorCalendarPlugin/Models/Results/CreateReminderResult.swift +16 -0
  217. package/ios/Sources/CapacitorCalendarPlugin/Models/Results/DeleteEventWithPromptResult.swift +15 -0
  218. package/ios/Sources/CapacitorCalendarPlugin/Models/Results/DeleteEventsByIdResult.swift +23 -0
  219. package/ios/Sources/CapacitorCalendarPlugin/Models/Results/DeleteRemindersByIdResult.swift +23 -0
  220. package/ios/Sources/CapacitorCalendarPlugin/Models/Results/FetchAllCalendarSourcesResult.swift +16 -0
  221. package/ios/Sources/CapacitorCalendarPlugin/Models/Results/GetDefaultCalendarResult.swift +16 -0
  222. package/ios/Sources/CapacitorCalendarPlugin/Models/Results/GetReminderByIdResult.swift +20 -0
  223. package/ios/Sources/CapacitorCalendarPlugin/Models/Results/GetRemindersFromListsResult.swift +16 -0
  224. package/ios/Sources/CapacitorCalendarPlugin/Models/Results/ListCalendarsResult.swift +16 -0
  225. package/ios/Sources/CapacitorCalendarPlugin/Models/Results/ListEventsInRangeResult.swift +16 -0
  226. package/ios/Sources/CapacitorCalendarPlugin/Models/Results/ModifyEventWithPromptResult.swift +16 -0
  227. package/ios/Sources/CapacitorCalendarPlugin/Models/Results/RequestAllPermissionsResult.swift +20 -0
  228. package/ios/Sources/CapacitorCalendarPlugin/Models/Results/RequestPermissionResult.swift +15 -0
  229. package/ios/Sources/CapacitorCalendarPlugin/Models/Results/SelectCalendarsWithPromptResult.swift +16 -0
  230. package/ios/Sources/CapacitorCalendarPlugin/Models/Templates/JSResult.swift +5 -0
  231. package/ios/Sources/CapacitorCalendarPlugin/PluginConfig.swift +44 -0
  232. package/ios/Sources/CapacitorCalendarPlugin/PluginError.swift +87 -0
  233. package/ios/Sources/CapacitorCalendarPlugin/Utils/ImplementationHelper.swift +361 -0
  234. package/ios/Sources/CapacitorCalendarPlugin/Utils/UIColorFromHexExtension.swift +32 -0
  235. package/package.json +58 -59
  236. package/android/src/main/java/dev/barooni/capacitor/calendar/CapacitorCalendar.kt +0 -358
  237. package/dist/esm/schemas/enums/calendar-chooser-selection-style.d.ts +0 -16
  238. package/dist/esm/schemas/enums/calendar-chooser-selection-style.js +0 -18
  239. package/dist/esm/schemas/enums/calendar-chooser-selection-style.js.map +0 -1
  240. package/dist/esm/schemas/enums/plugin-permission.d.ts +0 -58
  241. package/dist/esm/schemas/enums/plugin-permission.js +0 -60
  242. package/dist/esm/schemas/enums/plugin-permission.js.map +0 -1
  243. package/dist/esm/schemas/interfaces/plugin-permissions-map.d.ts +0 -2
  244. package/dist/esm/schemas/interfaces/plugin-permissions-map.js +0 -2
  245. package/dist/esm/schemas/interfaces/plugin-permissions-map.js.map +0 -1
  246. package/ios/Sources/CapacitorCalendarPlugin/CapacitorCalendar.swift +0 -635
  247. package/ios/Sources/CapacitorCalendarPlugin/CapacitorCalendarPluginError.swift +0 -14
  248. package/ios/Sources/CapacitorCalendarPlugin/CapacitorReminders.swift +0 -448
  249. package/ios/Sources/CapacitorCalendarPlugin/EventCreationParameters.swift +0 -14
  250. package/ios/Sources/CapacitorCalendarPlugin/EventDeleteResults.swift +0 -6
  251. package/ios/Sources/CapacitorCalendarPlugin/RecurrenceParameters.swift +0 -7
  252. package/ios/Sources/CapacitorCalendarPlugin/ReminderCreationParameters.swift +0 -15
  253. package/ios/Sources/CapacitorCalendarPlugin/UIColorExtensions.swift +0 -20
  254. /package/{LICENSE.txt → LICENSE} +0 -0
package/dist/plugin.js CHANGED
@@ -2,306 +2,532 @@ var capacitorCapacitorCalendar = (function (exports, core) {
2
2
  'use strict';
3
3
 
4
4
  /**
5
- * Enum representing the display styles for the calendar chooser.
6
- *
7
- * @enum CalendarChooserDisplayStyle
8
- * @platform iOS
5
+ * @since 7.1.0
9
6
  */
10
- exports.CalendarChooserDisplayStyle = void 0;
11
- (function (CalendarChooserDisplayStyle) {
7
+ exports.AttendeeRole = void 0;
8
+ (function (AttendeeRole) {
12
9
  /**
13
- * Display all calendars available for selection.
10
+ * @platform Android, iOS
11
+ * @since 7.1.0
14
12
  */
15
- CalendarChooserDisplayStyle[CalendarChooserDisplayStyle["ALL_CALENDARS"] = 0] = "ALL_CALENDARS";
13
+ AttendeeRole["UNKNOWN"] = "unknown";
16
14
  /**
17
- * Display only writable calendars available for selection.
15
+ * @platform iOS
16
+ * @since 7.1.0
18
17
  */
19
- CalendarChooserDisplayStyle[CalendarChooserDisplayStyle["WRITABLE_CALENDARS_ONLY"] = 1] = "WRITABLE_CALENDARS_ONLY";
20
- })(exports.CalendarChooserDisplayStyle || (exports.CalendarChooserDisplayStyle = {}));
21
-
22
- /**
23
- * Enum representing the selection style for the calendar chooser.
24
- *
25
- * @enum CalendarChooserSelectionStyle
26
- * @platform iOS
27
- */
28
- exports.CalendarChooserSelectionStyle = void 0;
29
- (function (CalendarChooserSelectionStyle) {
18
+ AttendeeRole["REQUIRED"] = "required";
19
+ /**
20
+ * @platform iOS
21
+ * @since 7.1.0
22
+ */
23
+ AttendeeRole["OPTIONAL"] = "optional";
30
24
  /**
31
- * Allows only a single selection in the calendar chooser.
25
+ * @platform iOS
26
+ * @since 7.1.0
27
+ */
28
+ AttendeeRole["CHAIR"] = "chair";
29
+ /**
30
+ * @platform Android, iOS
31
+ * @since 7.1.0
32
+ */
33
+ AttendeeRole["NON_PARTICIPANT"] = "nonParticipant";
34
+ /**
35
+ * @platform Android
36
+ * @since 7.1.0
37
+ */
38
+ AttendeeRole["ATTENDEE"] = "attendee";
39
+ /**
40
+ * @platform Android
41
+ * @since 7.1.0
32
42
  */
33
- CalendarChooserSelectionStyle[CalendarChooserSelectionStyle["SINGLE"] = 0] = "SINGLE";
43
+ AttendeeRole["ORGANIZER"] = "organizer";
34
44
  /**
35
- * Allows multiple selections in the calendar chooser.
45
+ * @platform Android
46
+ * @since 7.1.0
36
47
  */
37
- CalendarChooserSelectionStyle[CalendarChooserSelectionStyle["MULTIPLE"] = 1] = "MULTIPLE";
38
- })(exports.CalendarChooserSelectionStyle || (exports.CalendarChooserSelectionStyle = {}));
48
+ AttendeeRole["PERFORMER"] = "performer";
49
+ /**
50
+ * @platform Android
51
+ * @since 7.1.0
52
+ */
53
+ AttendeeRole["SPEAKER"] = "speaker";
54
+ })(exports.AttendeeRole || (exports.AttendeeRole = {}));
39
55
 
40
56
  /**
41
- * Enum representing the available runtime permissions for the plugin.
42
- *
43
- * @enum PluginPermission
44
- * @platform iOS, Android
57
+ * @since 7.1.0
45
58
  */
46
- exports.PluginPermission = void 0;
47
- (function (PluginPermission) {
59
+ exports.AttendeeStatus = void 0;
60
+ (function (AttendeeStatus) {
48
61
  /**
49
- * Represents the permission state for reading calendar.
50
- *
51
- * @platform iOS, Android
52
- * @permissions
53
- * <h3>Manifest Permissions:</h3>
54
- * <ul>
55
- * <li><strong>iOS 17 &le;:</strong> NSCalendarsFullAccessUsageDescription</li>
56
- * <li><strong>13 &le; iOS &le; 16:</strong> NSCalendarsUsageDescription</li>
57
- * <li><strong>Android:</strong> android.permission.READ_CALENDAR</li>
58
- * </ul>
62
+ * @platform Android
63
+ * @since 7.1.0
59
64
  */
60
- PluginPermission["READ_CALENDAR"] = "readCalendar";
65
+ AttendeeStatus["NONE"] = "none";
61
66
  /**
62
- * Represents the permission state for writing calendar.
63
- *
64
- * @platform iOS, Android
65
- * @permissions
66
- * <h3>Manifest Permissions:</h3>
67
- * <ul>
68
- * <li><strong>iOS 17 &le;:</strong> NSCalendarsWriteOnlyAccessUsageDescription</li>
69
- * <li><strong>13 &le; iOS &le; 16:</strong> NSCalendarsUsageDescription</li>
70
- * <li><strong>Android:</strong> android.permission.WRITE_CALENDAR</li>
71
- * </ul>
67
+ * @platform Android, iOS
68
+ * @since 7.1.0
72
69
  */
73
- PluginPermission["WRITE_CALENDAR"] = "writeCalendar";
70
+ AttendeeStatus["ACCEPTED"] = "accepted";
71
+ /**
72
+ * @platform Android, iOS
73
+ * @since 7.1.0
74
+ */
75
+ AttendeeStatus["DECLINED"] = "declined";
76
+ /**
77
+ * @platform Android
78
+ * @since 7.1.0
79
+ */
80
+ AttendeeStatus["INVITED"] = "invited";
74
81
  /**
75
- * Represents the permission state for reading reminders.
76
- *
77
82
  * @platform iOS
78
- * @permissions
79
- * <h3>Manifest Permissions:</h3>
80
- * <ul>
81
- * <li><strong>iOS 17 &le;:</strong> NSRemindersFullAccessUsageDescription</li>
82
- * <li><strong>10 &le; iOS &le; 16:</strong> NSRemindersUsageDescription</li>
83
- * </ul>
83
+ * @since 7.1.0
84
84
  */
85
- PluginPermission["READ_REMINDERS"] = "readReminders";
85
+ AttendeeStatus["UNKNOWN"] = "unknown";
86
86
  /**
87
- * Represents the permission state for writing reminders.
88
- *
89
87
  * @platform iOS
90
- * @permissions
91
- * <h3>Manifest Permissions:</h3>
92
- * <ul>
93
- * <li><strong>iOS 17 &le;:</strong> NSRemindersFullAccessUsageDescription</li>
94
- * <li><strong>13 &le; iOS &le; 16:</strong> NSRemindersUsageDescription</li>
95
- * </ul>
96
- */
97
- PluginPermission["WRITE_REMINDERS"] = "writeReminders";
98
- })(exports.PluginPermission || (exports.PluginPermission = {}));
88
+ * @since 7.1.0
89
+ */
90
+ AttendeeStatus["PENDING"] = "pending";
91
+ /**
92
+ * @platform Android, iOS
93
+ * @since 7.1.0
94
+ */
95
+ AttendeeStatus["TENTATIVE"] = "tentative";
96
+ /**
97
+ * @platform iOS
98
+ * @since 7.1.0
99
+ */
100
+ AttendeeStatus["DELEGATED"] = "delegated";
101
+ /**
102
+ * @platform iOS
103
+ * @since 7.1.0
104
+ */
105
+ AttendeeStatus["COMPLETED"] = "completed";
106
+ /**
107
+ * @platform iOS
108
+ * @since 7.1.0
109
+ */
110
+ AttendeeStatus["IN_PROCESS"] = "inProcess";
111
+ })(exports.AttendeeStatus || (exports.AttendeeStatus = {}));
99
112
 
100
113
  /**
101
- * Enum representing the repeating frequency of the reminder.
102
- *
103
- * @enum ReminderRecurrenceFrequency
104
- * @platform iOS
114
+ * @since 7.1.0
105
115
  */
106
- exports.ReminderRecurrenceFrequency = void 0;
107
- (function (ReminderRecurrenceFrequency) {
116
+ exports.AttendeeType = void 0;
117
+ (function (AttendeeType) {
108
118
  /**
109
- * The reminder repeats on a daily basis
119
+ * @platform Android, iOS
120
+ * @since 7.1.0
110
121
  */
111
- ReminderRecurrenceFrequency[ReminderRecurrenceFrequency["DAILY"] = 0] = "DAILY";
122
+ AttendeeType["UNKNOWN"] = "unknown";
112
123
  /**
113
- * The reminder repeats on a weekly basis
124
+ * @platform iOS
125
+ * @since 7.1.0
114
126
  */
115
- ReminderRecurrenceFrequency[ReminderRecurrenceFrequency["WEEKLY"] = 1] = "WEEKLY";
127
+ AttendeeType["PERSON"] = "person";
116
128
  /**
117
- * The reminder repeats on a monthly basis
129
+ * @platform iOS
130
+ * @since 7.1.0
118
131
  */
119
- ReminderRecurrenceFrequency[ReminderRecurrenceFrequency["MONTHLY"] = 2] = "MONTHLY";
132
+ AttendeeType["ROOM"] = "room";
120
133
  /**
121
- * The reminder repeats on a yearly basis
134
+ * @platform Android, iOS
135
+ * @since 7.1.0
122
136
  */
123
- ReminderRecurrenceFrequency[ReminderRecurrenceFrequency["YEARLY"] = 3] = "YEARLY";
124
- })(exports.ReminderRecurrenceFrequency || (exports.ReminderRecurrenceFrequency = {}));
137
+ AttendeeType["RESOURCE"] = "resource";
138
+ /**
139
+ * @platform iOS
140
+ * @since 7.1.0
141
+ */
142
+ AttendeeType["GROUP"] = "group";
143
+ /**
144
+ * @platform Android
145
+ * @since 7.1.0
146
+ */
147
+ AttendeeType["REQUIRED"] = "required";
148
+ /**
149
+ * @platform Android
150
+ * @since 7.1.0
151
+ */
152
+ AttendeeType["NONE"] = "none";
153
+ /**
154
+ * @platform Android
155
+ * @since 7.1.0
156
+ */
157
+ AttendeeType["OPTIONAL"] = "optional";
158
+ })(exports.AttendeeType || (exports.AttendeeType = {}));
125
159
 
126
160
  /**
127
- * Enum representing the span of modifications.
128
- *
129
- * @enum EventSpan
130
- * @platform iOS
161
+ * @since 0.2.0
131
162
  */
132
- exports.EventSpan = void 0;
133
- (function (EventSpan) {
163
+ exports.CalendarChooserDisplayStyle = void 0;
164
+ (function (CalendarChooserDisplayStyle) {
134
165
  /**
135
- * The modifications should only be applied to this event.
166
+ * @since 0.2.0
136
167
  */
137
- EventSpan[EventSpan["THIS_EVENT"] = 0] = "THIS_EVENT";
168
+ CalendarChooserDisplayStyle[CalendarChooserDisplayStyle["ALL_CALENDARS"] = 0] = "ALL_CALENDARS";
138
169
  /**
139
- * The modifications to this event should also be applied to the future instances of this event.
170
+ * @since 0.2.0
140
171
  */
141
- EventSpan[EventSpan["THIS_AND_FUTURE_EVENTS"] = 1] = "THIS_AND_FUTURE_EVENTS";
142
- })(exports.EventSpan || (exports.EventSpan = {}));
172
+ CalendarChooserDisplayStyle[CalendarChooserDisplayStyle["WRITABLE_CALENDARS_ONLY"] = 1] = "WRITABLE_CALENDARS_ONLY";
173
+ })(exports.CalendarChooserDisplayStyle || (exports.CalendarChooserDisplayStyle = {}));
143
174
 
144
175
  /**
145
- * Represents the different types of sources from which calendars can originate.
176
+ * Enum defining available calendar and reminders related permissions.
146
177
  *
147
- * @enum CalendarSourceType
148
- * @platform iOS
178
+ * @since 7.1.0
179
+ */
180
+ exports.CalendarPermissionScope = void 0;
181
+ (function (CalendarPermissionScope) {
182
+ /**
183
+ * Permission required for reading calendar events.
184
+ *
185
+ * @permissions
186
+ * | Platform | Required |
187
+ * |-----------|---------------------|
188
+ * | iOS 17+ | `NSCalendarsFullAccessUsageDescription` |
189
+ * | iOS 13-16 | `NSCalendarsUsageDescription` |
190
+ * | Android | `android.permission.READ_CALENDAR` |
191
+ *
192
+ * @platform Android, iOS
193
+ * @since 7.1.0
194
+ */
195
+ CalendarPermissionScope["READ_CALENDAR"] = "readCalendar";
196
+ /**
197
+ * Permission required for reading reminders.
198
+ *
199
+ * @permissions
200
+ * | Platform | Required |
201
+ * |-----------|---------------------|
202
+ * | iOS 17+ | `NSRemindersFullAccessUsageDescription` |
203
+ * | iOS 10-16 | `NSRemindersUsageDescription` |
204
+ * @platform iOS
205
+ * @since 7.1.0
206
+ */
207
+ CalendarPermissionScope["READ_REMINDERS"] = "readReminders";
208
+ /**
209
+ * Permission required for adding or modifying calendar events.
210
+ *
211
+ * @permissions
212
+ * | Platform | Required |
213
+ * |-----------|---------------------|
214
+ * | iOS 17+ | `NSCalendarsWriteOnlyAccessUsageDescription` |
215
+ * | iOS 13-16 | `NSCalendarsUsageDescription` |
216
+ * | Android | `android.permission.WRITE_CALENDAR` |
217
+ *
218
+ * @platform Android, iOS
219
+ * @since 7.1.0
220
+ */
221
+ CalendarPermissionScope["WRITE_CALENDAR"] = "writeCalendar";
222
+ /**
223
+ * Permission required for adding or modifying reminders.
224
+ *
225
+ * @permissions
226
+ * | Platform | Required |
227
+ * |-----------|---------------------|
228
+ * | iOS 17+ | `NSRemindersFullAccessUsageDescription` |
229
+ * | iOS 13-16 | `NSRemindersUsageDescription` |
230
+ *
231
+ * @platform iOS
232
+ * @since 7.1.0
233
+ */
234
+ CalendarPermissionScope["WRITE_REMINDERS"] = "writeReminders";
235
+ })(exports.CalendarPermissionScope || (exports.CalendarPermissionScope = {}));
236
+
237
+ /**
238
+ * @since 7.1.0
149
239
  */
150
240
  exports.CalendarSourceType = void 0;
151
241
  (function (CalendarSourceType) {
152
242
  /**
153
- * Calendars that are stored locally on the device. These calendars are not
154
- * synced with any external service.
243
+ * @since 7.1.0
155
244
  */
156
245
  CalendarSourceType[CalendarSourceType["LOCAL"] = 0] = "LOCAL";
157
246
  /**
158
- * Calendars that are associated with an Exchange server. Exchange is a
159
- * popular calendar and email service used by many enterprises.
247
+ * @since 7.1.0
160
248
  */
161
249
  CalendarSourceType[CalendarSourceType["EXCHANGE"] = 1] = "EXCHANGE";
162
250
  /**
163
- * Calendars that use the CalDAV protocol for synchronization.
164
- * This includes calendars from services like Google Calendar and Yahoo Calendar.
251
+ * @since 7.1.0
165
252
  */
166
253
  CalendarSourceType[CalendarSourceType["CAL_DAV"] = 2] = "CAL_DAV";
167
254
  /**
168
- * Calendars that were previously associated with MobileMe, Apple's cloud
169
- * service before iCloud. This source type is largely obsolete now.
255
+ * @since 7.1.0
170
256
  */
171
257
  CalendarSourceType[CalendarSourceType["MOBILE_ME"] = 3] = "MOBILE_ME";
172
258
  /**
173
- * Calendars that the user has subscribed to. These are read-only calendars
174
- * that can be added by subscribing to a calendar URL.
259
+ * @since 7.1.0
175
260
  */
176
261
  CalendarSourceType[CalendarSourceType["SUBSCRIBED"] = 4] = "SUBSCRIBED";
177
262
  /**
178
- * The built-in Birthdays calendar, which shows birthdays of contacts from the user's address book.
179
- * This calendar is typically read-only and is managed by the system.
263
+ * @since 7.1.0
180
264
  */
181
265
  CalendarSourceType[CalendarSourceType["BIRTHDAYS"] = 5] = "BIRTHDAYS";
182
266
  })(exports.CalendarSourceType || (exports.CalendarSourceType = {}));
183
267
 
184
268
  /**
185
- * An enum representing the type of calendar.
186
- *
187
- * @enum CalendarType
188
- * @platform iOS
269
+ * @since 7.1.0
189
270
  */
190
271
  exports.CalendarType = void 0;
191
272
  (function (CalendarType) {
192
273
  /**
193
- * This calendar is sync'd from either Mobile Me or tethered.
274
+ * @since 7.1.0
194
275
  */
195
276
  CalendarType[CalendarType["LOCAL"] = 0] = "LOCAL";
196
277
  /**
197
- * This calendar is from a CalDAV server.
278
+ * @since 7.1.0
198
279
  */
199
280
  CalendarType[CalendarType["CAL_DAV"] = 1] = "CAL_DAV";
200
281
  /**
201
- * This calendar comes from an Exchange server.
282
+ * @since 7.1.0
202
283
  */
203
284
  CalendarType[CalendarType["EXCHANGE"] = 2] = "EXCHANGE";
204
285
  /**
205
- * This is a locally subscribed calendar.
286
+ * @since 7.1.0
206
287
  */
207
288
  CalendarType[CalendarType["SUBSCRIPTION"] = 3] = "SUBSCRIPTION";
208
289
  /**
209
- * This is the built-in birthday calendar.
290
+ * @since 7.1.0
210
291
  */
211
292
  CalendarType[CalendarType["BIRTHDAY"] = 4] = "BIRTHDAY";
212
293
  })(exports.CalendarType || (exports.CalendarType = {}));
213
294
 
295
+ /**
296
+ * @since 7.1.0
297
+ */
298
+ exports.EventAvailability = void 0;
299
+ (function (EventAvailability) {
300
+ /**
301
+ * @platform iOS
302
+ * @since 7.1.0
303
+ */
304
+ EventAvailability[EventAvailability["NOT_SUPPORTED"] = -1] = "NOT_SUPPORTED";
305
+ /**
306
+ * @platform Android, iOS
307
+ * @since 7.1.0
308
+ */
309
+ EventAvailability[EventAvailability["BUSY"] = 0] = "BUSY";
310
+ /**
311
+ * @platform Android, iOS
312
+ * @since 7.1.0
313
+ */
314
+ EventAvailability[EventAvailability["FREE"] = 1] = "FREE";
315
+ /**
316
+ * @platform Android, iOS
317
+ * @since 7.1.0
318
+ */
319
+ EventAvailability[EventAvailability["TENTATIVE"] = 2] = "TENTATIVE";
320
+ /**
321
+ * @platform iOS
322
+ * @since 7.1.0
323
+ */
324
+ EventAvailability[EventAvailability["UNAVAILABLE"] = 3] = "UNAVAILABLE";
325
+ })(exports.EventAvailability || (exports.EventAvailability = {}));
326
+
327
+ /**
328
+ * @since 7.1.0
329
+ */
330
+ exports.EventSpan = void 0;
331
+ (function (EventSpan) {
332
+ /**
333
+ * @since 7.1.0
334
+ */
335
+ EventSpan[EventSpan["THIS_EVENT"] = 0] = "THIS_EVENT";
336
+ /**
337
+ * @since 7.1.0
338
+ */
339
+ EventSpan[EventSpan["THIS_AND_FUTURE_EVENTS"] = 1] = "THIS_AND_FUTURE_EVENTS";
340
+ })(exports.EventSpan || (exports.EventSpan = {}));
341
+
342
+ /**
343
+ * @platform Android, iOS
344
+ * @since 7.1.0
345
+ */
346
+ exports.EventStatus = void 0;
347
+ (function (EventStatus) {
348
+ /**
349
+ * @platform iOS
350
+ * @since 7.1.0
351
+ */
352
+ EventStatus["NONE"] = "none";
353
+ /**
354
+ * @platform Android, iOS
355
+ * @since 7.1.0
356
+ */
357
+ EventStatus["CONFIRMED"] = "confirmed";
358
+ /**
359
+ * @platform Android, iOS
360
+ * @since 7.1.0
361
+ */
362
+ EventStatus["TENTATIVE"] = "tentative";
363
+ /**
364
+ * @platform Android, iOS
365
+ * @since 7.1.0
366
+ */
367
+ EventStatus["CANCELED"] = "canceled";
368
+ })(exports.EventStatus || (exports.EventStatus = {}));
369
+
370
+ /**
371
+ * @since 7.1.0
372
+ */
373
+ exports.RecurrenceFrequency = void 0;
374
+ (function (RecurrenceFrequency) {
375
+ /**
376
+ * @since 7.1.0
377
+ */
378
+ RecurrenceFrequency[RecurrenceFrequency["DAILY"] = 0] = "DAILY";
379
+ /**
380
+ * @since 7.1.0
381
+ */
382
+ RecurrenceFrequency[RecurrenceFrequency["WEEKLY"] = 1] = "WEEKLY";
383
+ /**
384
+ * @since 7.1.0
385
+ */
386
+ RecurrenceFrequency[RecurrenceFrequency["MONTHLY"] = 2] = "MONTHLY";
387
+ /**
388
+ * @since 7.1.0
389
+ */
390
+ RecurrenceFrequency[RecurrenceFrequency["YEARLY"] = 3] = "YEARLY";
391
+ })(exports.RecurrenceFrequency || (exports.RecurrenceFrequency = {}));
392
+
393
+ /**
394
+ * @deprecated Use `RecurrenceFrequency`.
395
+ */
396
+ exports.ReminderRecurrenceFrequency = void 0;
397
+ (function (ReminderRecurrenceFrequency) {
398
+ /**
399
+ * @deprecated Use `RecurrenceFrequency.DAILY`.
400
+ */
401
+ ReminderRecurrenceFrequency[ReminderRecurrenceFrequency["DAILY"] = 0] = "DAILY";
402
+ /**
403
+ * @deprecated Use `RecurrenceFrequency.WEEKLY`.
404
+ */
405
+ ReminderRecurrenceFrequency[ReminderRecurrenceFrequency["WEEKLY"] = 1] = "WEEKLY";
406
+ /**
407
+ * @deprecated Use `RecurrenceFrequency.MONTHLY`.
408
+ */
409
+ ReminderRecurrenceFrequency[ReminderRecurrenceFrequency["MONTHLY"] = 2] = "MONTHLY";
410
+ /**
411
+ * @deprecated Use `RecurrenceFrequency.YEARLY`.
412
+ */
413
+ ReminderRecurrenceFrequency[ReminderRecurrenceFrequency["YEARLY"] = 3] = "YEARLY";
414
+ })(exports.ReminderRecurrenceFrequency || (exports.ReminderRecurrenceFrequency = {}));
415
+
214
416
  const CapacitorCalendar = core.registerPlugin("CapacitorCalendar", {
215
417
  web: () => Promise.resolve().then(function () { return web; }).then((m) => new m.CapacitorCalendarWeb()),
216
418
  });
217
419
 
218
420
  class CapacitorCalendarWeb extends core.WebPlugin {
219
421
  checkPermission(_options) {
220
- throw this.unimplemented(`${this.checkPermission.name} is not implemented on the web`);
422
+ return this.throwUnimplemented(this.checkPermission.name);
221
423
  }
222
424
  checkAllPermissions() {
223
- throw this.unimplemented(`${this.checkAllPermissions.name} is not implemented on the web`);
425
+ return this.throwUnimplemented(this.checkAllPermissions.name);
224
426
  }
225
427
  requestPermission(_options) {
226
- throw this.unimplemented(`${this.requestPermission.name} is not implemented on the web`);
428
+ return this.throwUnimplemented(this.requestPermission.name);
227
429
  }
228
430
  requestAllPermissions() {
229
- throw this.unimplemented(`${this.requestAllPermissions.name} is not implemented on the web`);
431
+ return this.throwUnimplemented(this.requestAllPermissions.name);
230
432
  }
231
- createEventWithPrompt(_options) {
232
- throw this.unimplemented(`${this.createEventWithPrompt.name} is not implemented on the web`);
433
+ requestWriteOnlyCalendarAccess() {
434
+ return this.throwUnimplemented(this.requestWriteOnlyCalendarAccess.name);
233
435
  }
234
- selectCalendarsWithPrompt() {
235
- throw this.unimplemented(`${this.selectCalendarsWithPrompt.name} is not implemented on the web`);
436
+ requestReadOnlyCalendarAccess() {
437
+ return this.throwUnimplemented(this.requestReadOnlyCalendarAccess.name);
236
438
  }
237
- listCalendars() {
238
- throw this.unimplemented(`${this.listCalendars.name} is not implemented on the web`);
439
+ requestFullCalendarAccess() {
440
+ return this.throwUnimplemented(this.requestFullCalendarAccess.name);
239
441
  }
240
- getDefaultCalendar() {
241
- throw this.unimplemented(`${this.getDefaultCalendar.name} is not implemented on the web`);
442
+ requestFullRemindersAccess() {
443
+ return this.throwUnimplemented(this.requestFullRemindersAccess.name);
444
+ }
445
+ createEventWithPrompt(_options) {
446
+ return this.throwUnimplemented(this.createEventWithPrompt.name);
447
+ }
448
+ modifyEventWithPrompt(_options) {
449
+ return this.throwUnimplemented(this.modifyEventWithPrompt.name);
242
450
  }
243
451
  createEvent(_options) {
244
- throw this.unimplemented(`${this.createEvent.name} is not implemented on the web`);
452
+ return this.throwUnimplemented(this.createEvent.name);
245
453
  }
246
- createReminder(_options) {
247
- throw this.unimplemented(`${this.createReminder.name} is not implemented on the web`);
454
+ commit() {
455
+ return this.throwUnimplemented(this.commit.name);
248
456
  }
249
- getDefaultRemindersList() {
250
- throw this.unimplemented(`${this.getDefaultRemindersList.name} is not implemented on the web`);
457
+ modifyEvent(_options) {
458
+ return this.throwUnimplemented(this.modifyEvent.name);
251
459
  }
252
- getRemindersLists() {
253
- throw this.unimplemented(`${this.getRemindersLists.name} is not implemented on the web`);
460
+ selectCalendarsWithPrompt(_options) {
461
+ return this.throwUnimplemented(this.selectCalendarsWithPrompt.name);
254
462
  }
255
- openCalendar(_options) {
256
- throw this.unimplemented(`${this.openCalendar.name} is not implemented on the web`);
463
+ fetchAllCalendarSources() {
464
+ return this.throwUnimplemented(this.fetchAllCalendarSources.name);
465
+ }
466
+ listCalendars() {
467
+ return this.throwUnimplemented(this.listCalendars.name);
468
+ }
469
+ fetchAllRemindersSources() {
470
+ return this.throwUnimplemented(this.fetchAllRemindersSources.name);
471
+ }
472
+ getDefaultCalendar() {
473
+ return this.throwUnimplemented(this.getDefaultCalendar.name);
474
+ }
475
+ getDefaultRemindersList() {
476
+ return this.throwUnimplemented(this.getDefaultRemindersList.name);
257
477
  }
258
478
  openReminders() {
259
- throw this.unimplemented(`${this.openReminders.name} is not implemented on the web`);
479
+ return this.throwUnimplemented(this.openReminders.name);
260
480
  }
261
- listEventsInRange(_options) {
262
- throw this.unimplemented(`${this.listEventsInRange.name} is not implemented on the web`);
481
+ getRemindersLists() {
482
+ return this.throwUnimplemented(this.getRemindersLists.name);
263
483
  }
264
- deleteEventsById(_options) {
265
- throw this.unimplemented(`${this.deleteEventsById.name} is not implemented on the web`);
484
+ openCalendar(_options) {
485
+ return this.throwUnimplemented(this.openCalendar.name);
266
486
  }
267
487
  createCalendar(_options) {
268
- throw this.unimplemented(`${this.createCalendar.name} is not implemented on the web`);
488
+ return this.throwUnimplemented(this.createCalendar.name);
269
489
  }
270
490
  deleteCalendar(_options) {
271
- throw this.unimplemented(`${this.deleteCalendar.name} is not implemented on the web`);
491
+ return this.throwUnimplemented(this.deleteCalendar.name);
272
492
  }
273
- getRemindersFromLists(_options) {
274
- throw this.unimplemented(`${this.getRemindersFromLists.name} is not implemented on the web`);
493
+ createReminder(_options) {
494
+ return this.throwUnimplemented(this.createReminder.name);
275
495
  }
276
496
  deleteRemindersById(_options) {
277
- throw this.unimplemented(`${this.deleteRemindersById.name} is not implemented on the web`);
497
+ return this.throwUnimplemented(this.deleteRemindersById.name);
278
498
  }
279
- requestWriteOnlyCalendarAccess() {
280
- throw this.unimplemented(`${this.requestWriteOnlyCalendarAccess.name} is not implemented on the web`);
499
+ deleteReminder(_options) {
500
+ return this.throwUnimplemented(this.deleteReminder.name);
281
501
  }
282
- requestReadOnlyCalendarAccess() {
283
- throw this.unimplemented(`${this.requestReadOnlyCalendarAccess.name} is not implemented on the web`);
502
+ modifyReminder(_options) {
503
+ return this.throwUnimplemented(this.modifyReminder.name);
284
504
  }
285
- requestFullCalendarAccess() {
286
- throw this.unimplemented(`${this.requestFullCalendarAccess.name} is not implemented on the web`);
505
+ getReminderById(_options) {
506
+ return this.throwUnimplemented(this.getReminderById.name);
287
507
  }
288
- requestFullRemindersAccess() {
289
- throw this.unimplemented(`${this.requestFullRemindersAccess.name} is not implemented on the web`);
508
+ getRemindersFromLists(_options) {
509
+ return this.throwUnimplemented(this.getRemindersFromLists.name);
290
510
  }
291
- modifyEventWithPrompt(_options) {
292
- throw this.unimplemented(`${this.modifyEventWithPrompt.name} is not implemented on the web`);
511
+ deleteEventsById(_options) {
512
+ return this.throwUnimplemented(this.deleteEventsById.name);
293
513
  }
294
- modifyEvent(_options) {
295
- throw this.unimplemented(`${this.modifyEvent.name} is not implemented on the web`);
514
+ deleteEvent(_options) {
515
+ return this.throwUnimplemented(this.deleteEvent.name);
296
516
  }
297
- fetchAllCalendarSources() {
298
- throw this.unimplemented(`${this.fetchAllCalendarSources.name} is not implemented on the web`);
517
+ deleteEventWithPrompt(_options) {
518
+ return this.throwUnimplemented(this.deleteEventWithPrompt.name);
299
519
  }
300
- fetchAllRemindersSources() {
301
- throw this.unimplemented(`${this.fetchAllRemindersSources.name} is not implemented on the web`);
520
+ listEventsInRange(_options) {
521
+ return this.throwUnimplemented(this.listEventsInRange.name);
302
522
  }
303
- modifyReminder(_options) {
304
- throw this.unimplemented(`${this.modifyReminder.name} is not implemented on the web`);
523
+ modifyCalendar(_options) {
524
+ return this.throwUnimplemented(this.modifyCalendar.name);
525
+ }
526
+ deleteReminderWithPrompt(_options) {
527
+ return this.throwUnimplemented(this.deleteReminderWithPrompt.name);
528
+ }
529
+ throwUnimplemented(methodName) {
530
+ return Promise.reject(this.unimplemented(`${methodName} is not implemented on the web.`));
305
531
  }
306
532
  }
307
533