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