@ebarooni/capacitor-calendar 6.7.2 → 7.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (255) hide show
  1. package/EbarooniCapacitorCalendar.podspec +2 -2
  2. package/Package.swift +28 -0
  3. package/README.md +1197 -119
  4. package/android/build.gradle +8 -7
  5. package/android/src/main/java/dev/barooni/capacitor/calendar/CapacitorCalendarPlugin.kt +267 -317
  6. package/android/src/main/java/dev/barooni/capacitor/calendar/PluginError.kt +47 -0
  7. package/android/src/main/java/dev/barooni/capacitor/calendar/implementation/CapacitorCalendar.kt +348 -0
  8. package/android/src/main/java/dev/barooni/capacitor/calendar/models/data/CalendarEvent.kt +25 -0
  9. package/android/src/main/java/dev/barooni/capacitor/calendar/models/data/CalendarInfo.kt +14 -0
  10. package/android/src/main/java/dev/barooni/capacitor/calendar/models/data/EventGuest.kt +9 -0
  11. package/android/src/main/java/dev/barooni/capacitor/calendar/models/enums/CalendarPermissionScope.kt +15 -0
  12. package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/CheckPermissionInput.kt +20 -0
  13. package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/CreateCalendarInput.kt +18 -0
  14. package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/CreateEventInput.kt +27 -0
  15. package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/CreateEventWithPromptInput.kt +36 -0
  16. package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/DeleteCalendarInput.kt +10 -0
  17. package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/DeleteEventInput.kt +10 -0
  18. package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/DeleteEventWithPromptInput.kt +14 -0
  19. package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/DeleteEventsByIdInput.kt +11 -0
  20. package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/ListEventsInRangeInput.kt +14 -0
  21. package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/ModifyEvent.kt +25 -0
  22. package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/ModifyEventWithPromptInput.kt +37 -0
  23. package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/OpenCalendarInput.kt +10 -0
  24. package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/RequestAllPermissionsInput.kt +9 -0
  25. package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/RequestPermissionInput.kt +40 -0
  26. package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/CheckAllPermissionsResult.kt +17 -0
  27. package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/CheckPermissionResult.kt +15 -0
  28. package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/CreateCalendarResult.kt +21 -0
  29. package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/CreateEventResult.kt +21 -0
  30. package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/CreateEventWithPromptResult.kt +12 -0
  31. package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/DeleteEventWithPromptResult.kt +14 -0
  32. package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/DeleteEventsByIdResult.kt +27 -0
  33. package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/GetDefaultCalendarResult.kt +34 -0
  34. package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/ListCalendarsResult.kt +39 -0
  35. package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/ListEventsInRangeResult.kt +58 -0
  36. package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/ModifyEventWithPromptResult.kt +12 -0
  37. package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/RequestAllPermissionsResult.kt +30 -0
  38. package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/RequestPermissionResult.kt +42 -0
  39. package/android/src/main/java/dev/barooni/capacitor/calendar/models/templates/JSResult.kt +7 -0
  40. package/android/src/main/java/dev/barooni/capacitor/calendar/utils/ImplementationHelper.kt +387 -0
  41. package/dist/docs.json +3808 -1126
  42. package/dist/esm/definitions.d.ts +6 -759
  43. package/dist/esm/definitions.js.map +1 -1
  44. package/dist/esm/index.d.ts +40 -12
  45. package/dist/esm/index.js +11 -6
  46. package/dist/esm/index.js.map +1 -1
  47. package/dist/esm/schemas/enums/attendee-role.d.ts +50 -0
  48. package/dist/esm/schemas/enums/attendee-role.js +52 -0
  49. package/dist/esm/schemas/enums/attendee-role.js.map +1 -0
  50. package/dist/esm/schemas/enums/attendee-status.d.ts +55 -0
  51. package/dist/esm/schemas/enums/attendee-status.js +57 -0
  52. package/dist/esm/schemas/enums/attendee-status.js.map +1 -0
  53. package/dist/esm/schemas/enums/attendee-type.d.ts +45 -0
  54. package/dist/esm/schemas/enums/attendee-type.js +47 -0
  55. package/dist/esm/schemas/enums/attendee-type.js.map +1 -0
  56. package/dist/esm/schemas/enums/calendar-chooser-display-style.d.ts +3 -6
  57. package/dist/esm/schemas/enums/calendar-chooser-display-style.js +3 -6
  58. package/dist/esm/schemas/enums/calendar-chooser-display-style.js.map +1 -1
  59. package/dist/esm/schemas/enums/calendar-permission-scope.d.ts +60 -0
  60. package/dist/esm/schemas/enums/calendar-permission-scope.js +62 -0
  61. package/dist/esm/schemas/enums/calendar-permission-scope.js.map +1 -0
  62. package/dist/esm/schemas/enums/calendar-source-type.d.ts +7 -16
  63. package/dist/esm/schemas/enums/calendar-source-type.js +7 -16
  64. package/dist/esm/schemas/enums/calendar-source-type.js.map +1 -1
  65. package/dist/esm/schemas/enums/calendar-type.d.ts +6 -9
  66. package/dist/esm/schemas/enums/calendar-type.js +6 -9
  67. package/dist/esm/schemas/enums/calendar-type.js.map +1 -1
  68. package/dist/esm/schemas/enums/event-availability.d.ts +30 -0
  69. package/dist/esm/schemas/enums/event-availability.js +32 -0
  70. package/dist/esm/schemas/enums/event-availability.js.map +1 -0
  71. package/dist/esm/schemas/enums/event-span.d.ts +3 -6
  72. package/dist/esm/schemas/enums/event-span.js +3 -6
  73. package/dist/esm/schemas/enums/event-span.js.map +1 -1
  74. package/dist/esm/schemas/enums/event-status.d.ts +26 -0
  75. package/dist/esm/schemas/enums/event-status.js +28 -0
  76. package/dist/esm/schemas/enums/event-status.js.map +1 -0
  77. package/dist/esm/schemas/enums/recurrence-frequency.d.ts +21 -0
  78. package/dist/esm/schemas/enums/recurrence-frequency.js +23 -0
  79. package/dist/esm/schemas/enums/recurrence-frequency.js.map +1 -0
  80. package/dist/esm/schemas/enums/reminder-recurrence-frequency.d.ts +5 -8
  81. package/dist/esm/schemas/enums/reminder-recurrence-frequency.js +5 -8
  82. package/dist/esm/schemas/enums/reminder-recurrence-frequency.js.map +1 -1
  83. package/dist/esm/schemas/interfaces/calendar-event.d.ts +116 -48
  84. package/dist/esm/schemas/interfaces/calendar-event.js.map +1 -1
  85. package/dist/esm/schemas/interfaces/calendar-source.d.ts +10 -7
  86. package/dist/esm/schemas/interfaces/calendar-source.js.map +1 -1
  87. package/dist/esm/schemas/interfaces/calendar.d.ts +59 -25
  88. package/dist/esm/schemas/interfaces/calendar.js.map +1 -1
  89. package/dist/esm/schemas/interfaces/create-calendar-options.d.ts +38 -0
  90. package/dist/esm/schemas/interfaces/create-calendar-options.js +2 -0
  91. package/dist/esm/schemas/interfaces/create-calendar-options.js.map +1 -0
  92. package/dist/esm/schemas/interfaces/create-event-options.d.ts +96 -0
  93. package/dist/esm/schemas/interfaces/create-event-options.js +2 -0
  94. package/dist/esm/schemas/interfaces/create-event-options.js.map +1 -0
  95. package/dist/esm/schemas/interfaces/create-event-with-prompt-options.d.ts +70 -0
  96. package/dist/esm/schemas/interfaces/create-event-with-prompt-options.js +2 -0
  97. package/dist/esm/schemas/interfaces/create-event-with-prompt-options.js.map +1 -0
  98. package/dist/esm/schemas/interfaces/create-reminder-options.d.ts +54 -0
  99. package/dist/esm/schemas/interfaces/create-reminder-options.js +2 -0
  100. package/dist/esm/schemas/interfaces/create-reminder-options.js.map +1 -0
  101. package/dist/esm/schemas/interfaces/delete-calendar-options.d.ts +9 -0
  102. package/dist/esm/schemas/interfaces/delete-calendar-options.js +2 -0
  103. package/dist/esm/schemas/interfaces/delete-calendar-options.js.map +1 -0
  104. package/dist/esm/schemas/interfaces/delete-event-options.d.ts +18 -0
  105. package/dist/esm/schemas/interfaces/delete-event-options.js +2 -0
  106. package/dist/esm/schemas/interfaces/delete-event-options.js.map +1 -0
  107. package/dist/esm/schemas/interfaces/delete-event-with-prompt-options.d.ts +48 -0
  108. package/dist/esm/schemas/interfaces/delete-event-with-prompt-options.js +2 -0
  109. package/dist/esm/schemas/interfaces/delete-event-with-prompt-options.js.map +1 -0
  110. package/dist/esm/schemas/interfaces/delete-events-by-id-options.d.ts +18 -0
  111. package/dist/esm/schemas/interfaces/delete-events-by-id-options.js +2 -0
  112. package/dist/esm/schemas/interfaces/delete-events-by-id-options.js.map +1 -0
  113. package/dist/esm/schemas/interfaces/delete-reminder-options.d.ts +9 -0
  114. package/dist/esm/schemas/interfaces/delete-reminder-options.js +2 -0
  115. package/dist/esm/schemas/interfaces/delete-reminder-options.js.map +1 -0
  116. package/dist/esm/schemas/interfaces/delete-reminders-by-id-options.d.ts +9 -0
  117. package/dist/esm/schemas/interfaces/delete-reminders-by-id-options.js +2 -0
  118. package/dist/esm/schemas/interfaces/delete-reminders-by-id-options.js.map +1 -0
  119. package/dist/esm/schemas/interfaces/event-guest.d.ts +13 -0
  120. package/dist/esm/schemas/interfaces/event-guest.js +2 -0
  121. package/dist/esm/schemas/interfaces/event-guest.js.map +1 -0
  122. package/dist/esm/schemas/interfaces/get-reminder-by-id-options.d.ts +6 -0
  123. package/dist/esm/schemas/interfaces/get-reminder-by-id-options.js +2 -0
  124. package/dist/esm/schemas/interfaces/get-reminder-by-id-options.js.map +1 -0
  125. package/dist/esm/schemas/interfaces/get-reminders-from-lists-options.d.ts +9 -0
  126. package/dist/esm/schemas/interfaces/get-reminders-from-lists-options.js +2 -0
  127. package/dist/esm/schemas/interfaces/get-reminders-from-lists-options.js.map +1 -0
  128. package/dist/esm/schemas/interfaces/list-events-in-range-options.d.ts +17 -0
  129. package/dist/esm/schemas/interfaces/list-events-in-range-options.js +2 -0
  130. package/dist/esm/schemas/interfaces/list-events-in-range-options.js.map +1 -0
  131. package/dist/esm/schemas/interfaces/modify-event-options.d.ts +103 -0
  132. package/dist/esm/schemas/interfaces/modify-event-options.js +2 -0
  133. package/dist/esm/schemas/interfaces/modify-event-options.js.map +1 -0
  134. package/dist/esm/schemas/interfaces/modify-event-with-prompt-options.d.ts +13 -0
  135. package/dist/esm/schemas/interfaces/modify-event-with-prompt-options.js +2 -0
  136. package/dist/esm/schemas/interfaces/modify-event-with-prompt-options.js.map +1 -0
  137. package/dist/esm/schemas/interfaces/modify-reminder-options.d.ts +58 -0
  138. package/dist/esm/schemas/interfaces/modify-reminder-options.js +2 -0
  139. package/dist/esm/schemas/interfaces/modify-reminder-options.js.map +1 -0
  140. package/dist/esm/schemas/interfaces/open-calendar-options.d.ts +10 -0
  141. package/dist/esm/schemas/interfaces/open-calendar-options.js +2 -0
  142. package/dist/esm/schemas/interfaces/open-calendar-options.js.map +1 -0
  143. package/dist/esm/schemas/interfaces/recurrence-rule.d.ts +22 -0
  144. package/dist/esm/schemas/interfaces/recurrence-rule.js +2 -0
  145. package/dist/esm/schemas/interfaces/recurrence-rule.js.map +1 -0
  146. package/dist/esm/schemas/interfaces/reminder-recurrence-rule.d.ts +7 -25
  147. package/dist/esm/schemas/interfaces/reminder-recurrence-rule.js.map +1 -1
  148. package/dist/esm/schemas/interfaces/reminder.d.ts +29 -38
  149. package/dist/esm/schemas/interfaces/reminder.js.map +1 -1
  150. package/dist/esm/schemas/interfaces/reminders-list.d.ts +5 -3
  151. package/dist/esm/schemas/interfaces/reminders-list.js.map +1 -1
  152. package/dist/esm/schemas/interfaces/select-calendars-with-prompt-options.d.ts +18 -0
  153. package/dist/esm/schemas/interfaces/select-calendars-with-prompt-options.js +2 -0
  154. package/dist/esm/schemas/interfaces/select-calendars-with-prompt-options.js.map +1 -0
  155. package/dist/esm/schemas/types/event-edit-action.d.ts +4 -0
  156. package/dist/esm/schemas/types/event-edit-action.js +2 -0
  157. package/dist/esm/schemas/types/event-edit-action.js.map +1 -0
  158. package/dist/esm/sub-definitions/calendar-access.d.ts +114 -0
  159. package/dist/esm/sub-definitions/calendar-access.js +2 -0
  160. package/dist/esm/sub-definitions/calendar-access.js.map +1 -0
  161. package/dist/esm/sub-definitions/calendar-operations.d.ts +77 -0
  162. package/dist/esm/sub-definitions/calendar-operations.js +2 -0
  163. package/dist/esm/sub-definitions/calendar-operations.js.map +1 -0
  164. package/dist/esm/sub-definitions/event-operations.d.ts +111 -0
  165. package/dist/esm/sub-definitions/event-operations.js +2 -0
  166. package/dist/esm/sub-definitions/event-operations.js.map +1 -0
  167. package/dist/esm/sub-definitions/reminders-access.d.ts +22 -0
  168. package/dist/esm/sub-definitions/reminders-access.js +2 -0
  169. package/dist/esm/sub-definitions/reminders-access.js.map +1 -0
  170. package/dist/esm/sub-definitions/reminders-operations.d.ts +110 -0
  171. package/dist/esm/sub-definitions/reminders-operations.js +2 -0
  172. package/dist/esm/sub-definitions/reminders-operations.js.map +1 -0
  173. package/dist/esm/web.d.ts +86 -151
  174. package/dist/esm/web.js +67 -49
  175. package/dist/esm/web.js.map +1 -1
  176. package/dist/plugin.cjs.js +392 -172
  177. package/dist/plugin.cjs.js.map +1 -1
  178. package/dist/plugin.js +392 -172
  179. package/dist/plugin.js.map +1 -1
  180. package/ios/Sources/CapacitorCalendarPlugin/CapacitorCalendarPlugin.swift +348 -0
  181. package/ios/Sources/CapacitorCalendarPlugin/Implementation/CapacitorCalendar.swift +554 -0
  182. package/ios/Sources/CapacitorCalendarPlugin/Models/Enums/CAPPermissionState.swift +6 -0
  183. package/ios/Sources/CapacitorCalendarPlugin/Models/Enums/CalendarPermissionScope.swift +6 -0
  184. package/ios/Sources/CapacitorCalendarPlugin/Models/Enums/EventEditAction.swift +20 -0
  185. package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/CheckPermissionInput.swift +19 -0
  186. package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/CreateCalendarInput.swift +32 -0
  187. package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/CreateEventInput.swift +61 -0
  188. package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/CreateEventWithPromptInput.swift +89 -0
  189. package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/CreateReminderInput.swift +116 -0
  190. package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/DeleteCalendarInput.swift +16 -0
  191. package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/DeleteEventInput.swift +27 -0
  192. package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/DeleteEventWithPromptInput.swift +57 -0
  193. package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/DeleteEventsByIdInput.swift +27 -0
  194. package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/DeleteReminderInput.swift +16 -0
  195. package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/DeleteRemindersByIdInput.swift +16 -0
  196. package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/GetReminderByIdInput.swift +16 -0
  197. package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/GetRemindersFromListsInput.swift +24 -0
  198. package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/ListEventsInRangeInput.swift +25 -0
  199. package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/ModifyEventInput.swift +117 -0
  200. package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/ModifyEventWithPromptInput.swift +83 -0
  201. package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/ModifyReminderInput.swift +118 -0
  202. package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/OpenCalendarInput.swift +17 -0
  203. package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/RequestPermissionInput.swift +19 -0
  204. package/ios/Sources/CapacitorCalendarPlugin/Models/Inputs/SelectCalendarsWithPromptInput.swift +32 -0
  205. package/ios/Sources/CapacitorCalendarPlugin/Models/Results/CheckAllPermissionsResult.swift +15 -0
  206. package/ios/Sources/CapacitorCalendarPlugin/Models/Results/CheckPermissionResult.swift +16 -0
  207. package/ios/Sources/CapacitorCalendarPlugin/Models/Results/CreateCalendarResult.swift +18 -0
  208. package/ios/Sources/CapacitorCalendarPlugin/Models/Results/CreateEventResult.swift +18 -0
  209. package/ios/Sources/CapacitorCalendarPlugin/Models/Results/CreateEventWithPromptResult.swift +15 -0
  210. package/ios/Sources/CapacitorCalendarPlugin/Models/Results/CreateReminderResult.swift +16 -0
  211. package/ios/Sources/CapacitorCalendarPlugin/Models/Results/DeleteEventWithPromptResult.swift +15 -0
  212. package/ios/Sources/CapacitorCalendarPlugin/Models/Results/DeleteEventsByIdResult.swift +23 -0
  213. package/ios/Sources/CapacitorCalendarPlugin/Models/Results/DeleteRemindersByIdResult.swift +23 -0
  214. package/ios/Sources/CapacitorCalendarPlugin/Models/Results/FetchAllCalendarSourcesResult.swift +16 -0
  215. package/ios/Sources/CapacitorCalendarPlugin/Models/Results/GetDefaultCalendarResult.swift +16 -0
  216. package/ios/Sources/CapacitorCalendarPlugin/Models/Results/GetReminderByIdResult.swift +20 -0
  217. package/ios/Sources/CapacitorCalendarPlugin/Models/Results/GetRemindersFromListsResult.swift +16 -0
  218. package/ios/Sources/CapacitorCalendarPlugin/Models/Results/ListCalendarsResult.swift +16 -0
  219. package/ios/Sources/CapacitorCalendarPlugin/Models/Results/ListEventsInRangeResult.swift +16 -0
  220. package/ios/Sources/CapacitorCalendarPlugin/Models/Results/ModifyEventWithPromptResult.swift +16 -0
  221. package/ios/Sources/CapacitorCalendarPlugin/Models/Results/RequestAllPermissionsResult.swift +20 -0
  222. package/ios/Sources/CapacitorCalendarPlugin/Models/Results/RequestPermissionResult.swift +15 -0
  223. package/ios/Sources/CapacitorCalendarPlugin/Models/Results/SelectCalendarsWithPromptResult.swift +16 -0
  224. package/ios/Sources/CapacitorCalendarPlugin/Models/Templates/JSResult.swift +5 -0
  225. package/ios/Sources/CapacitorCalendarPlugin/PluginConfig.swift +42 -0
  226. package/ios/Sources/CapacitorCalendarPlugin/PluginError.swift +87 -0
  227. package/ios/Sources/CapacitorCalendarPlugin/Utils/ImplementationHelper.swift +361 -0
  228. package/ios/Sources/CapacitorCalendarPlugin/Utils/UIColorFromHexExtension.swift +32 -0
  229. package/ios/Tests/CapacitorCalendarPluginTests/CapacitorCalendarPluginTests.swift +15 -0
  230. package/package.json +68 -72
  231. package/android/src/main/java/dev/barooni/capacitor/calendar/CapacitorCalendar.kt +0 -358
  232. package/assets/images/text-logo.png +0 -0
  233. package/dist/esm/schemas/enums/calendar-chooser-selection-style.d.ts +0 -16
  234. package/dist/esm/schemas/enums/calendar-chooser-selection-style.js +0 -18
  235. package/dist/esm/schemas/enums/calendar-chooser-selection-style.js.map +0 -1
  236. package/dist/esm/schemas/enums/plugin-permission.d.ts +0 -58
  237. package/dist/esm/schemas/enums/plugin-permission.js +0 -60
  238. package/dist/esm/schemas/enums/plugin-permission.js.map +0 -1
  239. package/dist/esm/schemas/interfaces/plugin-permissions-map.d.ts +0 -4
  240. package/dist/esm/schemas/interfaces/plugin-permissions-map.js +0 -2
  241. package/dist/esm/schemas/interfaces/plugin-permissions-map.js.map +0 -1
  242. package/ios/Plugin/CapacitorCalendar.swift +0 -635
  243. package/ios/Plugin/CapacitorCalendarPlugin.h +0 -10
  244. package/ios/Plugin/CapacitorCalendarPlugin.m +0 -36
  245. package/ios/Plugin/CapacitorCalendarPlugin.swift +0 -648
  246. package/ios/Plugin/CapacitorCalendarPluginError.swift +0 -22
  247. package/ios/Plugin/CapacitorReminders.swift +0 -456
  248. package/ios/Plugin/EventCreationParameters.swift +0 -22
  249. package/ios/Plugin/EventDeleteResults.swift +0 -14
  250. package/ios/Plugin/Info.plist +0 -24
  251. package/ios/Plugin/PermissionState.swift +0 -16
  252. package/ios/Plugin/RecurrenceParameters.swift +0 -15
  253. package/ios/Plugin/ReminderCreationParameters.swift +0 -23
  254. package/ios/Plugin/UIColorExtensions.swift +0 -28
  255. /package/{LICENSE.txt → LICENSE} +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reminders-operations.js","sourceRoot":"","sources":["../../../src/sub-definitions/reminders-operations.ts"],"names":[],"mappings":"","sourcesContent":["import type { CalendarSource } from \"../schemas/interfaces/calendar-source\";\nimport type { CreateReminderOptions } from \"../schemas/interfaces/create-reminder-options\";\nimport type { DeleteReminderOptions } from \"../schemas/interfaces/delete-reminder-options\";\nimport type { DeleteRemindersByIdOptions } from \"../schemas/interfaces/delete-reminders-by-id-options\";\nimport type { GetReminderByIdOptions } from \"../schemas/interfaces/get-reminder-by-id-options\";\nimport type { GetRemindersFromListsOptions } from \"../schemas/interfaces/get-reminders-from-lists-options\";\nimport type { ModifyReminderOptions } from \"../schemas/interfaces/modify-reminder-options\";\nimport type { Reminder } from \"../schemas/interfaces/reminder\";\nimport type { RemindersList } from \"../schemas/interfaces/reminders-list\";\n\nexport interface RemindersOperations {\n /**\n * Retrieves a list of calendar sources.\n *\n * @deprecated Duplicates {@link CalendarOperations#fetchAllCalendarSources}\n * @platform iOS\n * @since 6.6.0\n */\n fetchAllRemindersSources(): Promise<{ result: CalendarSource[] }>;\n /**\n * Opens the reminders app.\n *\n * @platform iOS\n * @since 7.1.0\n */\n openReminders(): Promise<void>;\n /**\n * Retrieves the default reminders list.\n *\n * @platform iOS\n * @since 7.1.0\n */\n getDefaultRemindersList(): Promise<{ result: RemindersList | null }>;\n /**\n * Retrieves all available reminders lists.\n *\n * @platform iOS\n * @since 7.1.0\n */\n getRemindersLists(): Promise<{ result: RemindersList[] }>;\n /**\n * Creates a reminder.\n *\n * @platform iOS\n * @since 0.5.0\n */\n createReminder(options: CreateReminderOptions): Promise<{ id: string }>;\n /**\n * Deletes multiple reminders.\n *\n * @deprecated Use `deleteReminder(...)`.\n * @platform iOS\n * @since 5.3.0\n */\n deleteRemindersById(\n options: DeleteRemindersByIdOptions,\n ): Promise<{ result: DeleteRemindersByIdResult }>;\n /**\n * Deletes a reminder.\n *\n * @platform iOS\n * @since 7.1.0\n */\n deleteReminder(options: DeleteReminderOptions): Promise<void>;\n /**\n * Modifies a reminder.\n *\n * @platform iOS\n * @since 6.7.0\n */\n modifyReminder(options: ModifyReminderOptions): Promise<void>;\n /**\n * Retrieve a reminder by ID.\n *\n * @platform iOS\n * @since 7.1.0\n */\n getReminderById(\n options: GetReminderByIdOptions,\n ): Promise<{ result: Reminder | null }>;\n /**\n * Retrieves reminders from multiple lists.\n *\n * @platform iOS\n * @since 5.3.0\n */\n getRemindersFromLists(\n options: GetRemindersFromListsOptions,\n ): Promise<{ result: Reminder[] }>;\n}\n\n/**\n * @since 7.1.0\n */\nexport interface DeleteRemindersByIdResult {\n /**\n * @since 7.1.0\n */\n deleted: string[];\n /**\n * @since 7.1.0\n */\n failed: string[];\n}\n"]}
package/dist/esm/web.d.ts CHANGED
@@ -1,188 +1,123 @@
1
+ import { CheckAllPermissionsResult, RequestAllPermissionsResult } from "./sub-definitions/calendar-access";
1
2
  import { PermissionState, WebPlugin } from "@capacitor/core";
2
- import { CapacitorCalendarPlugin } from "./definitions";
3
- import { PluginPermission } from "./schemas/enums/plugin-permission";
4
- import { ReminderRecurrenceRule } from "./schemas/interfaces/reminder-recurrence-rule";
5
- import { EventSpan } from "./schemas/enums/event-span";
6
3
  import type { Calendar } from "./schemas/interfaces/calendar";
7
- import type { RemindersList } from "./schemas/interfaces/reminders-list";
8
- import type { PluginPermissionsMap } from "./schemas/interfaces/plugin-permissions-map";
9
4
  import type { CalendarEvent } from "./schemas/interfaces/calendar-event";
10
- import type { Reminder } from "./schemas/interfaces/reminder";
5
+ import { CalendarPermissionScope } from "./schemas/enums/calendar-permission-scope";
11
6
  import type { CalendarSource } from "./schemas/interfaces/calendar-source";
7
+ import type { CapacitorCalendarPlugin } from "./definitions";
8
+ import type { CreateCalendarOptions } from "./schemas/interfaces/create-calendar-options";
9
+ import type { CreateEventOptions } from "./schemas/interfaces/create-event-options";
10
+ import type { CreateEventWithPromptOptions } from "./schemas/interfaces/create-event-with-prompt-options";
11
+ import type { CreateReminderOptions } from "./schemas/interfaces/create-reminder-options";
12
+ import type { DeleteCalendarOptions } from "./schemas/interfaces/delete-calendar-options";
13
+ import type { DeleteEventOptions } from "./schemas/interfaces/delete-event-options";
14
+ import type { DeleteEventWithPromptOptions } from "./schemas/interfaces/delete-event-with-prompt-options";
15
+ import type { DeleteEventsByIdOptions } from "./schemas/interfaces/delete-events-by-id-options";
16
+ import type { DeleteEventsByIdResult } from "./sub-definitions/event-operations";
17
+ import type { DeleteReminderOptions } from "./schemas/interfaces/delete-reminder-options";
18
+ import type { DeleteRemindersByIdOptions } from "./schemas/interfaces/delete-reminders-by-id-options";
19
+ import type { DeleteRemindersByIdResult } from "./sub-definitions/reminders-operations";
20
+ import type { EventEditAction } from "./schemas/types/event-edit-action";
21
+ import type { GetReminderByIdOptions } from "./schemas/interfaces/get-reminder-by-id-options";
22
+ import type { GetRemindersFromListsOptions } from "./schemas/interfaces/get-reminders-from-lists-options";
23
+ import type { ListEventsInRangeOptions } from "./schemas/interfaces/list-events-in-range-options";
24
+ import type { ModifyEventOptions } from "./schemas/interfaces/modify-event-options";
25
+ import type { ModifyEventWithPromptOptions } from "./schemas/interfaces/modify-event-with-prompt-options";
26
+ import type { ModifyReminderOptions } from "./schemas/interfaces/modify-reminder-options";
27
+ import type { OpenCalendarOptions } from "./schemas/interfaces/open-calendar-options";
28
+ import type { Reminder } from "./schemas/interfaces/reminder";
29
+ import type { RemindersList } from "./schemas/interfaces/reminders-list";
30
+ import type { SelectCalendarsWithPromptOptions } from "./schemas/interfaces/select-calendars-with-prompt-options";
12
31
  export declare class CapacitorCalendarWeb extends WebPlugin implements CapacitorCalendarPlugin {
13
32
  checkPermission(_options: {
14
- alias: PluginPermission;
33
+ scope: CalendarPermissionScope;
15
34
  }): Promise<{
16
35
  result: PermissionState;
17
36
  }>;
18
- checkAllPermissions(): Promise<PluginPermissionsMap>;
37
+ checkAllPermissions(): Promise<{
38
+ result: CheckAllPermissionsResult;
39
+ }>;
19
40
  requestPermission(_options: {
20
- alias: PluginPermission;
41
+ scope: CalendarPermissionScope;
21
42
  }): Promise<{
22
43
  result: PermissionState;
23
44
  }>;
24
- requestAllPermissions(): Promise<PluginPermissionsMap>;
25
- createEventWithPrompt(_options: {
26
- title: string;
27
- calendarId?: string;
28
- location?: string;
29
- startDate?: number;
30
- endDate?: number;
31
- isAllDay?: boolean;
32
- alertOffsetInMinutes?: number | number[];
33
- url?: string;
34
- notes?: string;
35
- eventIdOptional?: boolean;
36
- }): Promise<{
37
- result: string[];
45
+ requestAllPermissions(): Promise<{
46
+ result: RequestAllPermissionsResult;
47
+ }>;
48
+ requestWriteOnlyCalendarAccess(): Promise<{
49
+ result: PermissionState;
50
+ }>;
51
+ requestReadOnlyCalendarAccess(): Promise<{
52
+ result: PermissionState;
38
53
  }>;
39
- selectCalendarsWithPrompt(): Promise<{
54
+ requestFullCalendarAccess(): Promise<{
55
+ result: PermissionState;
56
+ }>;
57
+ requestFullRemindersAccess(): Promise<{
58
+ result: PermissionState;
59
+ }>;
60
+ createEventWithPrompt(_options: CreateEventWithPromptOptions): Promise<{
61
+ id: string | null;
62
+ }>;
63
+ modifyEventWithPrompt(_options: ModifyEventWithPromptOptions): Promise<{
64
+ result: EventEditAction | null;
65
+ }>;
66
+ createEvent(_options: CreateEventOptions): Promise<{
67
+ id: string;
68
+ }>;
69
+ commit(): Promise<void>;
70
+ modifyEvent(_options: ModifyEventOptions): Promise<void>;
71
+ selectCalendarsWithPrompt(_options?: SelectCalendarsWithPromptOptions): Promise<{
40
72
  result: Calendar[];
41
73
  }>;
74
+ fetchAllCalendarSources(): Promise<{
75
+ result: CalendarSource[];
76
+ }>;
42
77
  listCalendars(): Promise<{
43
78
  result: Calendar[];
44
79
  }>;
80
+ fetchAllRemindersSources(): Promise<{
81
+ result: CalendarSource[];
82
+ }>;
45
83
  getDefaultCalendar(): Promise<{
46
84
  result: Calendar | null;
47
85
  }>;
48
- createEvent(_options: {
49
- title: string;
50
- calendarId?: string;
51
- location?: string;
52
- startDate?: number;
53
- endDate?: number;
54
- isAllDay?: boolean;
55
- alertOffsetInMinutes?: number | number[];
56
- url?: string;
57
- notes?: string;
58
- }): Promise<{
59
- result: string;
60
- }>;
61
- createReminder(_options: {
62
- title: string;
63
- listId?: string;
64
- priority?: number;
65
- isCompleted?: boolean;
66
- startDate?: number;
67
- dueDate?: number;
68
- completionDate?: number;
69
- notes?: string;
70
- url?: string;
71
- location?: string;
72
- recurrence?: ReminderRecurrenceRule;
73
- }): Promise<{
74
- result: string;
75
- }>;
76
86
  getDefaultRemindersList(): Promise<{
77
- result: RemindersList;
87
+ result: RemindersList | null;
78
88
  }>;
89
+ openReminders(): Promise<void>;
79
90
  getRemindersLists(): Promise<{
80
91
  result: RemindersList[];
81
92
  }>;
82
- openCalendar(_options: {
83
- date?: number;
84
- }): Promise<void>;
85
- openReminders(): Promise<void>;
86
- listEventsInRange(_options: {
87
- startDate: number;
88
- endDate: number;
89
- }): Promise<{
90
- result: CalendarEvent[];
91
- }>;
92
- deleteEventsById(_options: {
93
- ids: string[];
94
- }): Promise<{
95
- result: {
96
- deleted: string[];
97
- failed: string[];
98
- };
99
- }>;
100
- createCalendar(_options: {
101
- title: string;
102
- color?: string;
103
- sourceId?: string;
104
- }): Promise<{
105
- result: string;
106
- }>;
107
- deleteCalendar(_options: {
93
+ openCalendar(_options: OpenCalendarOptions): Promise<void>;
94
+ createCalendar(_options: CreateCalendarOptions): Promise<{
108
95
  id: string;
109
- }): Promise<void>;
110
- getRemindersFromLists(_options?: {
111
- listIds: string[];
112
- }): Promise<{
113
- result: Reminder[];
114
96
  }>;
115
- deleteRemindersById(_options: {
116
- ids: string[];
117
- }): Promise<{
118
- result: {
119
- deleted: string[];
120
- failed: string[];
121
- };
97
+ deleteCalendar(_options: DeleteCalendarOptions): Promise<void>;
98
+ createReminder(_options: CreateReminderOptions): Promise<{
99
+ id: string;
122
100
  }>;
123
- requestWriteOnlyCalendarAccess(): Promise<{
124
- result: PermissionState;
101
+ deleteRemindersById(_options: DeleteRemindersByIdOptions): Promise<{
102
+ result: DeleteRemindersByIdResult;
125
103
  }>;
126
- requestReadOnlyCalendarAccess(): Promise<{
127
- result: PermissionState;
104
+ deleteReminder(_options: DeleteReminderOptions): Promise<void>;
105
+ modifyReminder(_options: ModifyReminderOptions): Promise<void>;
106
+ getReminderById(_options: GetReminderByIdOptions): Promise<{
107
+ result: Reminder | null;
128
108
  }>;
129
- requestFullCalendarAccess(): Promise<{
130
- result: PermissionState;
109
+ getRemindersFromLists(_options: GetRemindersFromListsOptions): Promise<{
110
+ result: Reminder[];
131
111
  }>;
132
- requestFullRemindersAccess(): Promise<{
133
- result: PermissionState;
112
+ deleteEventsById(_options: DeleteEventsByIdOptions): Promise<{
113
+ result: DeleteEventsByIdResult;
134
114
  }>;
135
- modifyEventWithPrompt(_options: {
136
- id: string;
137
- update?: {
138
- title?: string;
139
- calendarId?: string;
140
- location?: string;
141
- startDate?: number;
142
- endDate?: number;
143
- isAllDay?: boolean;
144
- alertOffsetInMinutes?: number | number[];
145
- url?: string;
146
- notes?: string;
147
- };
148
- }): Promise<{
149
- result: string[];
115
+ deleteEvent(_options: DeleteEventOptions): Promise<void>;
116
+ deleteEventWithPrompt(_options: DeleteEventWithPromptOptions): Promise<{
117
+ deleted: boolean;
150
118
  }>;
151
- modifyEvent(_options: {
152
- id: string;
153
- span?: EventSpan;
154
- update: {
155
- title?: string;
156
- calendarId?: string;
157
- location?: string;
158
- startDate?: number;
159
- endDate?: number;
160
- isAllDay?: boolean;
161
- alertOffsetInMinutes?: number | number[];
162
- url?: string;
163
- notes?: string;
164
- };
165
- }): Promise<void>;
166
- fetchAllCalendarSources(): Promise<{
167
- result: CalendarSource[];
168
- }>;
169
- fetchAllRemindersSources(): Promise<{
170
- result: CalendarSource[];
119
+ listEventsInRange(_options: ListEventsInRangeOptions): Promise<{
120
+ result: CalendarEvent[];
171
121
  }>;
172
- modifyReminder(_options: {
173
- id: string;
174
- update: {
175
- title?: string;
176
- listId?: string;
177
- priority?: number;
178
- isCompleted?: boolean;
179
- startDate?: number;
180
- dueDate?: number;
181
- completionDate?: number;
182
- notes?: string;
183
- url?: string;
184
- location?: string;
185
- recurrence?: ReminderRecurrenceRule;
186
- };
187
- }): Promise<void>;
122
+ private throwUnimplemented;
188
123
  }
package/dist/esm/web.js CHANGED
@@ -1,91 +1,109 @@
1
1
  import { WebPlugin } from "@capacitor/core";
2
2
  export class CapacitorCalendarWeb extends WebPlugin {
3
3
  checkPermission(_options) {
4
- throw this.unimplemented(`${this.checkPermission.name} is not implemented on the web`);
4
+ return this.throwUnimplemented(this.checkPermission.name);
5
5
  }
6
6
  checkAllPermissions() {
7
- throw this.unimplemented(`${this.checkAllPermissions.name} is not implemented on the web`);
7
+ return this.throwUnimplemented(this.checkAllPermissions.name);
8
8
  }
9
9
  requestPermission(_options) {
10
- throw this.unimplemented(`${this.requestPermission.name} is not implemented on the web`);
10
+ return this.throwUnimplemented(this.requestPermission.name);
11
11
  }
12
12
  requestAllPermissions() {
13
- throw this.unimplemented(`${this.requestAllPermissions.name} is not implemented on the web`);
13
+ return this.throwUnimplemented(this.requestAllPermissions.name);
14
14
  }
15
- createEventWithPrompt(_options) {
16
- throw this.unimplemented(`${this.createEventWithPrompt.name} is not implemented on the web`);
15
+ requestWriteOnlyCalendarAccess() {
16
+ return this.throwUnimplemented(this.requestWriteOnlyCalendarAccess.name);
17
17
  }
18
- selectCalendarsWithPrompt() {
19
- throw this.unimplemented(`${this.selectCalendarsWithPrompt.name} is not implemented on the web`);
18
+ requestReadOnlyCalendarAccess() {
19
+ return this.throwUnimplemented(this.requestReadOnlyCalendarAccess.name);
20
20
  }
21
- listCalendars() {
22
- throw this.unimplemented(`${this.listCalendars.name} is not implemented on the web`);
21
+ requestFullCalendarAccess() {
22
+ return this.throwUnimplemented(this.requestFullCalendarAccess.name);
23
23
  }
24
- getDefaultCalendar() {
25
- throw this.unimplemented(`${this.getDefaultCalendar.name} is not implemented on the web`);
24
+ requestFullRemindersAccess() {
25
+ return this.throwUnimplemented(this.requestFullRemindersAccess.name);
26
+ }
27
+ createEventWithPrompt(_options) {
28
+ return this.throwUnimplemented(this.createEventWithPrompt.name);
29
+ }
30
+ modifyEventWithPrompt(_options) {
31
+ return this.throwUnimplemented(this.modifyEventWithPrompt.name);
26
32
  }
27
33
  createEvent(_options) {
28
- throw this.unimplemented(`${this.createEvent.name} is not implemented on the web`);
34
+ return this.throwUnimplemented(this.createEvent.name);
29
35
  }
30
- createReminder(_options) {
31
- throw this.unimplemented(`${this.createReminder.name} is not implemented on the web`);
36
+ commit() {
37
+ return this.throwUnimplemented(this.commit.name);
32
38
  }
33
- getDefaultRemindersList() {
34
- throw this.unimplemented(`${this.getDefaultRemindersList.name} is not implemented on the web`);
39
+ modifyEvent(_options) {
40
+ return this.throwUnimplemented(this.modifyEvent.name);
35
41
  }
36
- getRemindersLists() {
37
- throw this.unimplemented(`${this.getRemindersLists.name} is not implemented on the web`);
42
+ selectCalendarsWithPrompt(_options) {
43
+ return this.throwUnimplemented(this.selectCalendarsWithPrompt.name);
38
44
  }
39
- openCalendar(_options) {
40
- throw this.unimplemented(`${this.openCalendar.name} is not implemented on the web`);
45
+ fetchAllCalendarSources() {
46
+ return this.throwUnimplemented(this.fetchAllCalendarSources.name);
47
+ }
48
+ listCalendars() {
49
+ return this.throwUnimplemented(this.listCalendars.name);
50
+ }
51
+ fetchAllRemindersSources() {
52
+ return this.throwUnimplemented(this.fetchAllRemindersSources.name);
53
+ }
54
+ getDefaultCalendar() {
55
+ return this.throwUnimplemented(this.getDefaultCalendar.name);
56
+ }
57
+ getDefaultRemindersList() {
58
+ return this.throwUnimplemented(this.getDefaultRemindersList.name);
41
59
  }
42
60
  openReminders() {
43
- throw this.unimplemented(`${this.openReminders.name} is not implemented on the web`);
61
+ return this.throwUnimplemented(this.openReminders.name);
44
62
  }
45
- listEventsInRange(_options) {
46
- throw this.unimplemented(`${this.listEventsInRange.name} is not implemented on the web`);
63
+ getRemindersLists() {
64
+ return this.throwUnimplemented(this.getRemindersLists.name);
47
65
  }
48
- deleteEventsById(_options) {
49
- throw this.unimplemented(`${this.deleteEventsById.name} is not implemented on the web`);
66
+ openCalendar(_options) {
67
+ return this.throwUnimplemented(this.openCalendar.name);
50
68
  }
51
69
  createCalendar(_options) {
52
- throw this.unimplemented(`${this.createCalendar.name} is not implemented on the web`);
70
+ return this.throwUnimplemented(this.createCalendar.name);
53
71
  }
54
72
  deleteCalendar(_options) {
55
- throw this.unimplemented(`${this.deleteCalendar.name} is not implemented on the web`);
73
+ return this.throwUnimplemented(this.deleteCalendar.name);
56
74
  }
57
- getRemindersFromLists(_options) {
58
- throw this.unimplemented(`${this.getRemindersFromLists.name} is not implemented on the web`);
75
+ createReminder(_options) {
76
+ return this.throwUnimplemented(this.createReminder.name);
59
77
  }
60
78
  deleteRemindersById(_options) {
61
- throw this.unimplemented(`${this.deleteRemindersById.name} is not implemented on the web`);
79
+ return this.throwUnimplemented(this.deleteRemindersById.name);
62
80
  }
63
- requestWriteOnlyCalendarAccess() {
64
- throw this.unimplemented(`${this.requestWriteOnlyCalendarAccess.name} is not implemented on the web`);
81
+ deleteReminder(_options) {
82
+ return this.throwUnimplemented(this.deleteReminder.name);
65
83
  }
66
- requestReadOnlyCalendarAccess() {
67
- throw this.unimplemented(`${this.requestReadOnlyCalendarAccess.name} is not implemented on the web`);
84
+ modifyReminder(_options) {
85
+ return this.throwUnimplemented(this.modifyReminder.name);
68
86
  }
69
- requestFullCalendarAccess() {
70
- throw this.unimplemented(`${this.requestFullCalendarAccess.name} is not implemented on the web`);
87
+ getReminderById(_options) {
88
+ return this.throwUnimplemented(this.getReminderById.name);
71
89
  }
72
- requestFullRemindersAccess() {
73
- throw this.unimplemented(`${this.requestFullRemindersAccess.name} is not implemented on the web`);
90
+ getRemindersFromLists(_options) {
91
+ return this.throwUnimplemented(this.getRemindersFromLists.name);
74
92
  }
75
- modifyEventWithPrompt(_options) {
76
- throw this.unimplemented(`${this.modifyEventWithPrompt.name} is not implemented on the web`);
93
+ deleteEventsById(_options) {
94
+ return this.throwUnimplemented(this.deleteEventsById.name);
77
95
  }
78
- modifyEvent(_options) {
79
- throw this.unimplemented(`${this.modifyEvent.name} is not implemented on the web`);
96
+ deleteEvent(_options) {
97
+ return this.throwUnimplemented(this.deleteEvent.name);
80
98
  }
81
- fetchAllCalendarSources() {
82
- throw this.unimplemented(`${this.fetchAllCalendarSources.name} is not implemented on the web`);
99
+ deleteEventWithPrompt(_options) {
100
+ return this.throwUnimplemented(this.deleteEventWithPrompt.name);
83
101
  }
84
- fetchAllRemindersSources() {
85
- throw this.unimplemented(`${this.fetchAllRemindersSources.name} is not implemented on the web`);
102
+ listEventsInRange(_options) {
103
+ return this.throwUnimplemented(this.listEventsInRange.name);
86
104
  }
87
- modifyReminder(_options) {
88
- throw this.unimplemented(`${this.modifyReminder.name} is not implemented on the web`);
105
+ throwUnimplemented(methodName) {
106
+ return Promise.reject(this.unimplemented(`${methodName} is not implemented on the web.`));
89
107
  }
90
108
  }
91
109
  //# sourceMappingURL=web.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"web.js","sourceRoot":"","sources":["../../src/web.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAY7D,MAAM,OAAO,oBACX,SAAQ,SAAS;IAGV,eAAe,CAAC,QAEtB;QACC,MAAM,IAAI,CAAC,aAAa,CACtB,GAAG,IAAI,CAAC,eAAe,CAAC,IAAI,gCAAgC,CAC7D,CAAC;IACJ,CAAC;IAEM,mBAAmB;QACxB,MAAM,IAAI,CAAC,aAAa,CACtB,GAAG,IAAI,CAAC,mBAAmB,CAAC,IAAI,gCAAgC,CACjE,CAAC;IACJ,CAAC;IAEM,iBAAiB,CAAC,QAExB;QACC,M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AAC,6BAA6B,CAAC,IAAI,gCAAgC,CAC3E,CAAC;IACJ,CAAC;IAEM,yBAAyB;QAC9B,MAAM,IAAI,CAAC,aAAa,CACtB,GAAG,IAAI,CAAC,yBAAyB,CAAC,IAAI,gCAAgC,CACvE,CAAC;IACJ,CAAC;IAEM,0BAA0B;QAC/B,MAAM,IAAI,CAAC,aAAa,CACtB,GAAG,IAAI,CAAC,0BAA0B,CAAC,IAAI,gCAAgC,CACxE,CAAC;IACJ,CAAC;IAEM,qBAAqB,CAAC,QAa5B;QACC,MAAM,IAAI,CAAC,aAAa,CACtB,GAAG,IAAI,CAAC,qBAAqB,CAAC,IAAI,gCAAgC,CACnE,CAAC;IACJ,CAAC;IAEM,WAAW,CAAC,QAclB;QACC,MAAM,IAAI,CAAC,aAAa,CACtB,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,gCAAgC,CACzD,CAAC;IACJ,CAAC;IAEM,uBAAuB;QAC5B,MAAM,IAAI,CAAC,aAAa,CACtB,GAAG,IAAI,CAAC,uBAAuB,CAAC,IAAI,gCAAgC,CACrE,CAAC;IACJ,CAAC;IAEM,wBAAwB;QAC7B,MAAM,IAAI,CAAC,aAAa,CACtB,GAAG,IAAI,CAAC,wBAAwB,CAAC,IAAI,gCAAgC,CACtE,CAAC;IACJ,CAAC;IAED,cAAc,CAAC,QAed;QACC,MAAM,IAAI,CAAC,aAAa,CACtB,GAAG,IAAI,CAAC,cAAc,CAAC,IAAI,gCAAgC,CAC5D,CAAC;IACJ,CAAC;CACF","sourcesContent":["import { PermissionState, WebPlugin } from \"@capacitor/core\";\nimport { CapacitorCalendarPlugin } from \"./definitions\";\nimport { PluginPermission } from \"./schemas/enums/plugin-permission\";\nimport { ReminderRecurrenceRule } from \"./schemas/interfaces/reminder-recurrence-rule\";\nimport { EventSpan } from \"./schemas/enums/event-span\";\nimport type { Calendar } from \"./schemas/interfaces/calendar\";\nimport type { RemindersList } from \"./schemas/interfaces/reminders-list\";\nimport type { PluginPermissionsMap } from \"./schemas/interfaces/plugin-permissions-map\";\nimport type { CalendarEvent } from \"./schemas/interfaces/calendar-event\";\nimport type { Reminder } from \"./schemas/interfaces/reminder\";\nimport type { CalendarSource } from \"./schemas/interfaces/calendar-source\";\n\nexport class CapacitorCalendarWeb\n extends WebPlugin\n implements CapacitorCalendarPlugin\n{\n public checkPermission(_options: {\n alias: PluginPermission;\n }): Promise<{ result: PermissionState }> {\n throw this.unimplemented(\n `${this.checkPermission.name} is not implemented on the web`,\n );\n }\n\n public checkAllPermissions(): Promise<PluginPermissionsMap> {\n throw this.unimplemented(\n `${this.checkAllPermissions.name} is not implemented on the web`,\n );\n }\n\n public requestPermission(_options: {\n alias: PluginPermission;\n }): Promise<{ result: PermissionState }> {\n throw this.unimplemented(\n `${this.requestPermission.name} is not implemented on the web`,\n );\n }\n\n public requestAllPermissions(): Promise<PluginPermissionsMap> {\n throw this.unimplemented(\n `${this.requestAllPermissions.name} is not implemented on the web`,\n );\n }\n\n public createEventWithPrompt(_options: {\n title: string;\n calendarId?: string;\n location?: string;\n startDate?: number;\n endDate?: number;\n isAllDay?: boolean;\n alertOffsetInMinutes?: number | number[];\n url?: string;\n notes?: string;\n eventIdOptional?: boolean;\n }): Promise<{ result: string[] }> {\n throw this.unimplemented(\n `${this.createEventWithPrompt.name} is not implemented on the web`,\n );\n }\n\n public selectCalendarsWithPrompt(): Promise<{ result: Calendar[] }> {\n throw this.unimplemented(\n `${this.selectCalendarsWithPrompt.name} is not implemented on the web`,\n );\n }\n\n public listCalendars(): Promise<{ result: Calendar[] }> {\n throw this.unimplemented(\n `${this.listCalendars.name} is not implemented on the web`,\n );\n }\n\n public getDefaultCalendar(): Promise<{ result: Calendar | null }> {\n throw this.unimplemented(\n `${this.getDefaultCalendar.name} is not implemented on the web`,\n );\n }\n\n public createEvent(_options: {\n title: string;\n calendarId?: string;\n location?: string;\n startDate?: number;\n endDate?: number;\n isAllDay?: boolean;\n alertOffsetInMinutes?: number | number[];\n url?: string;\n notes?: string;\n }): Promise<{\n result: string;\n }> {\n throw this.unimplemented(\n `${this.createEvent.name} is not implemented on the web`,\n );\n }\n\n public createReminder(_options: {\n title: string;\n listId?: string;\n priority?: number;\n isCompleted?: boolean;\n startDate?: number;\n dueDate?: number;\n completionDate?: number;\n notes?: string;\n url?: string;\n location?: string;\n recurrence?: ReminderRecurrenceRule;\n }): Promise<{ result: string }> {\n throw this.unimplemented(\n `${this.createReminder.name} is not implemented on the web`,\n );\n }\n\n public getDefaultRemindersList(): Promise<{ result: RemindersList }> {\n throw this.unimplemented(\n `${this.getDefaultRemindersList.name} is not implemented on the web`,\n );\n }\n\n public getRemindersLists(): Promise<{ result: RemindersList[] }> {\n throw this.unimplemented(\n `${this.getRemindersLists.name} is not implemented on the web`,\n );\n }\n\n public openCalendar(_options: { date?: number }): Promise<void> {\n throw this.unimplemented(\n `${this.openCalendar.name} is not implemented on the web`,\n );\n }\n\n public openReminders(): Promise<void> {\n throw this.unimplemented(\n `${this.openReminders.name} is not implemented on the web`,\n );\n }\n\n public listEventsInRange(_options: {\n startDate: number;\n endDate: number;\n }): Promise<{ result: CalendarEvent[] }> {\n throw this.unimplemented(\n `${this.listEventsInRange.name} is not implemented on the web`,\n );\n }\n\n public deleteEventsById(_options: { ids: string[] }): Promise<{\n result: { deleted: string[]; failed: string[] };\n }> {\n throw this.unimplemented(\n `${this.deleteEventsById.name} is not implemented on the web`,\n );\n }\n\n public createCalendar(_options: {\n title: string;\n color?: string;\n sourceId?: string;\n }): Promise<{ result: string }> {\n throw this.unimplemented(\n `${this.createCalendar.name} is not implemented on the web`,\n );\n }\n\n public deleteCalendar(_options: { id: string }): Promise<void> {\n throw this.unimplemented(\n `${this.deleteCalendar.name} is not implemented on the web`,\n );\n }\n\n public getRemindersFromLists(_options?: {\n listIds: string[];\n }): Promise<{ result: Reminder[] }> {\n throw this.unimplemented(\n `${this.getRemindersFromLists.name} is not implemented on the web`,\n );\n }\n\n public deleteRemindersById(_options: {\n ids: string[];\n }): Promise<{ result: { deleted: string[]; failed: string[] } }> {\n throw this.unimplemented(\n `${this.deleteRemindersById.name} is not implemented on the web`,\n );\n }\n\n public requestWriteOnlyCalendarAccess(): Promise<{\n result: PermissionState;\n }> {\n throw this.unimplemented(\n `${this.requestWriteOnlyCalendarAccess.name} is not implemented on the web`,\n );\n }\n\n public requestReadOnlyCalendarAccess(): Promise<{ result: PermissionState }> {\n throw this.unimplemented(\n `${this.requestReadOnlyCalendarAccess.name} is not implemented on the web`,\n );\n }\n\n public requestFullCalendarAccess(): Promise<{ result: PermissionState }> {\n throw this.unimplemented(\n `${this.requestFullCalendarAccess.name} is not implemented on the web`,\n );\n }\n\n public requestFullRemindersAccess(): Promise<{ result: PermissionState }> {\n throw this.unimplemented(\n `${this.requestFullRemindersAccess.name} is not implemented on the web`,\n );\n }\n\n public modifyEventWithPrompt(_options: {\n id: string;\n update?: {\n title?: string;\n calendarId?: string;\n location?: string;\n startDate?: number;\n endDate?: number;\n isAllDay?: boolean;\n alertOffsetInMinutes?: number | number[];\n url?: string;\n notes?: string;\n };\n }): Promise<{ result: string[] }> {\n throw this.unimplemented(\n `${this.modifyEventWithPrompt.name} is not implemented on the web`,\n );\n }\n\n public modifyEvent(_options: {\n id: string;\n span?: EventSpan;\n update: {\n title?: string;\n calendarId?: string;\n location?: string;\n startDate?: number;\n endDate?: number;\n isAllDay?: boolean;\n alertOffsetInMinutes?: number | number[];\n url?: string;\n notes?: string;\n };\n }): Promise<void> {\n throw this.unimplemented(\n `${this.modifyEvent.name} is not implemented on the web`,\n );\n }\n\n public fetchAllCalendarSources(): Promise<{ result: CalendarSource[] }> {\n throw this.unimplemented(\n `${this.fetchAllCalendarSources.name} is not implemented on the web`,\n );\n }\n\n public fetchAllRemindersSources(): Promise<{ result: CalendarSource[] }> {\n throw this.unimplemented(\n `${this.fetchAllRemindersSources.name} is not implemented on the web`,\n );\n }\n\n modifyReminder(_options: {\n id: string;\n update: {\n title?: string;\n listId?: string;\n priority?: number;\n isCompleted?: boolean;\n startDate?: number;\n dueDate?: number;\n completionDate?: number;\n notes?: string;\n url?: string;\n location?: string;\n recurrence?: ReminderRecurrenceRule;\n };\n }): Promise<void> {\n throw this.unimplemented(\n `${this.modifyReminder.name} is not implemented on the web`,\n );\n }\n}\n"]}
1
+ {"version":3,"file":"web.js","sourceRoot":"","sources":["../../src/web.ts"],"names":[],"mappings":"AAIA,OAAO,EAAmB,SAAS,EAAE,MAAM,iBAAiB,CAAC;AA8B7D,MAAM,OAAO,oBACX,SAAQ,SAAS;IAGV,eAAe,CAAC,QAEtB;QACC,OAAO,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC;IAC5D,CAAC;IAEM,mBAAmB;QACxB,OAAO,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,mBAAmB,CAAC,IAAI,CAAC,CAAC;IAChE,CAAC;IAEM,iBAAiB,CAAC,QAExB;QACC,OAAO,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC;IAC9D,CAAC;IAEM,qBAAqB;QAG1B,OAAO,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,qBAAqB,CAAC,IAAI,CAAC,CAAC;IAClE,CAAC;IAEM,8BAA8B;QAGnC,OAAO,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,8BAA8B,CAAC,IAAI,CAAC,CAAC;IAC3E,CAAC;IAEM,6BAA6B;QAClC,OAAO,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,6BAA6B,CAAC,IAAI,CAAC,CAAC;IAC1E,CAAC;IAEM,yBAAyB;QAC9B,OAAO,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,yBAAyB,CAAC,IAAI,CAAC,CAAC;IACtE,CAAC;IAEM,0BAA0B;QAC/B,OAAO,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,0BAA0B,CAAC,IAAI,CAAC,CAAC;IACvE,CAAC;IAE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AsC;QAEtC,OAAO,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,qBAAqB,CAAC,IAAI,CAAC,CAAC;IAClE,CAAC;IAEM,gBAAgB,CAAC,QAAiC;QAGvD,OAAO,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC;IAC7D,CAAC;IAEM,WAAW,CAAC,QAA4B;QAC7C,OAAO,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;IACxD,CAAC;IAEM,qBAAqB,CAC1B,QAAsC;QAEtC,OAAO,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,qBAAqB,CAAC,IAAI,CAAC,CAAC;IAClE,CAAC;IAEM,iBAAiB,CACtB,QAAkC;QAElC,OAAO,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC;IAC9D,CAAC;IAEO,kBAAkB,CAAI,UAAkB;QAC9C,OAAO,OAAO,CAAC,MAAM,CACnB,IAAI,CAAC,aAAa,CAAC,GAAG,UAAU,iCAAiC,CAAC,CACnE,CAAC;IACJ,CAAC;CACF","sourcesContent":["import {\n CheckAllPermissionsResult,\n RequestAllPermissionsResult,\n} from \"./sub-definitions/calendar-access\";\nimport { PermissionState, WebPlugin } from \"@capacitor/core\";\nimport type { Calendar } from \"./schemas/interfaces/calendar\";\nimport type { CalendarEvent } from \"./schemas/interfaces/calendar-event\";\nimport { CalendarPermissionScope } from \"./schemas/enums/calendar-permission-scope\";\nimport type { CalendarSource } from \"./schemas/interfaces/calendar-source\";\nimport type { CapacitorCalendarPlugin } from \"./definitions\";\nimport type { CreateCalendarOptions } from \"./schemas/interfaces/create-calendar-options\";\nimport type { CreateEventOptions } from \"./schemas/interfaces/create-event-options\";\nimport type { CreateEventWithPromptOptions } from \"./schemas/interfaces/create-event-with-prompt-options\";\nimport type { CreateReminderOptions } from \"./schemas/interfaces/create-reminder-options\";\nimport type { DeleteCalendarOptions } from \"./schemas/interfaces/delete-calendar-options\";\nimport type { DeleteEventOptions } from \"./schemas/interfaces/delete-event-options\";\nimport type { DeleteEventWithPromptOptions } from \"./schemas/interfaces/delete-event-with-prompt-options\";\nimport type { DeleteEventsByIdOptions } from \"./schemas/interfaces/delete-events-by-id-options\";\nimport type { DeleteEventsByIdResult } from \"./sub-definitions/event-operations\";\nimport type { DeleteReminderOptions } from \"./schemas/interfaces/delete-reminder-options\";\nimport type { DeleteRemindersByIdOptions } from \"./schemas/interfaces/delete-reminders-by-id-options\";\nimport type { DeleteRemindersByIdResult } from \"./sub-definitions/reminders-operations\";\nimport type { EventEditAction } from \"./schemas/types/event-edit-action\";\nimport type { GetReminderByIdOptions } from \"./schemas/interfaces/get-reminder-by-id-options\";\nimport type { GetRemindersFromListsOptions } from \"./schemas/interfaces/get-reminders-from-lists-options\";\nimport type { ListEventsInRangeOptions } from \"./schemas/interfaces/list-events-in-range-options\";\nimport type { ModifyEventOptions } from \"./schemas/interfaces/modify-event-options\";\nimport type { ModifyEventWithPromptOptions } from \"./schemas/interfaces/modify-event-with-prompt-options\";\nimport type { ModifyReminderOptions } from \"./schemas/interfaces/modify-reminder-options\";\nimport type { OpenCalendarOptions } from \"./schemas/interfaces/open-calendar-options\";\nimport type { Reminder } from \"./schemas/interfaces/reminder\";\nimport type { RemindersList } from \"./schemas/interfaces/reminders-list\";\nimport type { SelectCalendarsWithPromptOptions } from \"./schemas/interfaces/select-calendars-with-prompt-options\";\n\nexport class CapacitorCalendarWeb\n extends WebPlugin\n implements CapacitorCalendarPlugin\n{\n public checkPermission(_options: {\n scope: CalendarPermissionScope;\n }): Promise<{ result: PermissionState }> {\n return this.throwUnimplemented(this.checkPermission.name);\n }\n\n public checkAllPermissions(): Promise<{ result: CheckAllPermissionsResult }> {\n return this.throwUnimplemented(this.checkAllPermissions.name);\n }\n\n public requestPermission(_options: {\n scope: CalendarPermissionScope;\n }): Promise<{ result: PermissionState }> {\n return this.throwUnimplemented(this.requestPermission.name);\n }\n\n public requestAllPermissions(): Promise<{\n result: RequestAllPermissionsResult;\n }> {\n return this.throwUnimplemented(this.requestAllPermissions.name);\n }\n\n public requestWriteOnlyCalendarAccess(): Promise<{\n result: PermissionState;\n }> {\n return this.throwUnimplemented(this.requestWriteOnlyCalendarAccess.name);\n }\n\n public requestReadOnlyCalendarAccess(): Promise<{ result: PermissionState }> {\n return this.throwUnimplemented(this.requestReadOnlyCalendarAccess.name);\n }\n\n public requestFullCalendarAccess(): Promise<{ result: PermissionState }> {\n return this.throwUnimplemented(this.requestFullCalendarAccess.name);\n }\n\n public requestFullRemindersAccess(): Promise<{ result: PermissionState }> {\n return this.throwUnimplemented(this.requestFullRemindersAccess.name);\n }\n\n public createEventWithPrompt(\n _options: CreateEventWithPromptOptions,\n ): Promise<{ id: string | null }> {\n return this.throwUnimplemented(this.createEventWithPrompt.name);\n }\n\n public modifyEventWithPrompt(\n _options: ModifyEventWithPromptOptions,\n ): Promise<{ result: EventEditAction | null }> {\n return this.throwUnimplemented(this.modifyEventWithPrompt.name);\n }\n\n public createEvent(_options: CreateEventOptions): Promise<{\n id: string;\n }> {\n return this.throwUnimplemented(this.createEvent.name);\n }\n\n public commit(): Promise<void> {\n return this.throwUnimplemented(this.commit.name);\n }\n\n public modifyEvent(_options: ModifyEventOptions): Promise<void> {\n return this.throwUnimplemented(this.modifyEvent.name);\n }\n\n public selectCalendarsWithPrompt(\n _options?: SelectCalendarsWithPromptOptions,\n ): Promise<{ result: Calendar[] }> {\n return this.throwUnimplemented(this.selectCalendarsWithPrompt.name);\n }\n\n public fetchAllCalendarSources(): Promise<{ result: CalendarSource[] }> {\n return this.throwUnimplemented(this.fetchAllCalendarSources.name);\n }\n\n public listCalendars(): Promise<{ result: Calendar[] }> {\n return this.throwUnimplemented(this.listCalendars.name);\n }\n\n public fetchAllRemindersSources(): Promise<{ result: CalendarSource[] }> {\n return this.throwUnimplemented(this.fetchAllRemindersSources.name);\n }\n\n public getDefaultCalendar(): Promise<{ result: Calendar | null }> {\n return this.throwUnimplemented(this.getDefaultCalendar.name);\n }\n\n public getDefaultRemindersList(): Promise<{ result: RemindersList | null }> {\n return this.throwUnimplemented(this.getDefaultRemindersList.name);\n }\n\n public openReminders(): Promise<void> {\n return this.throwUnimplemented(this.openReminders.name);\n }\n\n public getRemindersLists(): Promise<{ result: RemindersList[] }> {\n return this.throwUnimplemented(this.getRemindersLists.name);\n }\n\n public openCalendar(_options: OpenCalendarOptions): Promise<void> {\n return this.throwUnimplemented(this.openCalendar.name);\n }\n\n public createCalendar(\n _options: CreateCalendarOptions,\n ): Promise<{ id: string }> {\n return this.throwUnimplemented(this.createCalendar.name);\n }\n\n public deleteCalendar(_options: DeleteCalendarOptions): Promise<void> {\n return this.throwUnimplemented(this.deleteCalendar.name);\n }\n\n public createReminder(\n _options: CreateReminderOptions,\n ): Promise<{ id: string }> {\n return this.throwUnimplemented(this.createReminder.name);\n }\n\n public deleteRemindersById(\n _options: DeleteRemindersByIdOptions,\n ): Promise<{ result: DeleteRemindersByIdResult }> {\n return this.throwUnimplemented(this.deleteRemindersById.name);\n }\n\n public deleteReminder(_options: DeleteReminderOptions): Promise<void> {\n return this.throwUnimplemented(this.deleteReminder.name);\n }\n\n public modifyReminder(_options: ModifyReminderOptions): Promise<void> {\n return this.throwUnimplemented(this.modifyReminder.name);\n }\n\n public getReminderById(\n _options: GetReminderByIdOptions,\n ): Promise<{ result: Reminder | null }> {\n return this.throwUnimplemented(this.getReminderById.name);\n }\n\n public getRemindersFromLists(\n _options: GetRemindersFromListsOptions,\n ): Promise<{ result: Reminder[] }> {\n return this.throwUnimplemented(this.getRemindersFromLists.name);\n }\n\n public deleteEventsById(_options: DeleteEventsByIdOptions): Promise<{\n result: DeleteEventsByIdResult;\n }> {\n return this.throwUnimplemented(this.deleteEventsById.name);\n }\n\n public deleteEvent(_options: DeleteEventOptions): Promise<void> {\n return this.throwUnimplemented(this.deleteEvent.name);\n }\n\n public deleteEventWithPrompt(\n _options: DeleteEventWithPromptOptions,\n ): Promise<{ deleted: boolean }> {\n return this.throwUnimplemented(this.deleteEventWithPrompt.name);\n }\n\n public listEventsInRange(\n _options: ListEventsInRangeOptions,\n ): Promise<{ result: CalendarEvent[] }> {\n return this.throwUnimplemented(this.listEventsInRange.name);\n }\n\n private throwUnimplemented<T>(methodName: string): Promise<T> {\n return Promise.reject(\n this.unimplemented(`${methodName} is not implemented on the web.`),\n );\n }\n}\n"]}