@ebarooni/capacitor-calendar 6.7.2 → 7.0.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 (34) hide show
  1. package/EbarooniCapacitorCalendar.podspec +2 -2
  2. package/Package.swift +28 -0
  3. package/README.md +690 -98
  4. package/android/build.gradle +8 -7
  5. package/dist/docs.json +47 -22
  6. package/dist/esm/schemas/enums/plugin-permission.js.map +1 -1
  7. package/dist/esm/schemas/interfaces/plugin-permissions-map.d.ts +2 -4
  8. package/dist/esm/schemas/interfaces/plugin-permissions-map.js.map +1 -1
  9. package/dist/esm/schemas/interfaces/reminder-recurrence-rule.d.ts +1 -1
  10. package/dist/esm/schemas/interfaces/reminder-recurrence-rule.js.map +1 -1
  11. package/dist/esm/schemas/interfaces/reminder.d.ts +1 -1
  12. package/dist/esm/schemas/interfaces/reminder.js.map +1 -1
  13. package/dist/esm/schemas/interfaces/reminders-list.d.ts +2 -3
  14. package/dist/esm/schemas/interfaces/reminders-list.js.map +1 -1
  15. package/dist/plugin.cjs.js.map +1 -1
  16. package/dist/plugin.js.map +1 -1
  17. package/ios/{Plugin → Sources/CapacitorCalendarPlugin}/CapacitorCalendarPlugin.swift +35 -6
  18. package/ios/{Plugin → Sources/CapacitorCalendarPlugin}/CapacitorCalendarPluginError.swift +0 -8
  19. package/ios/{Plugin → Sources/CapacitorCalendarPlugin}/CapacitorReminders.swift +0 -8
  20. package/ios/{Plugin → Sources/CapacitorCalendarPlugin}/EventCreationParameters.swift +0 -8
  21. package/ios/Sources/CapacitorCalendarPlugin/EventDeleteResults.swift +6 -0
  22. package/ios/{Plugin → Sources/CapacitorCalendarPlugin}/PermissionState.swift +0 -8
  23. package/ios/Sources/CapacitorCalendarPlugin/RecurrenceParameters.swift +7 -0
  24. package/ios/{Plugin → Sources/CapacitorCalendarPlugin}/ReminderCreationParameters.swift +0 -8
  25. package/ios/{Plugin → Sources/CapacitorCalendarPlugin}/UIColorExtensions.swift +0 -8
  26. package/ios/Tests/CapacitorCalendarPluginTests/CapacitorCalendarPluginTests.swift +15 -0
  27. package/package.json +23 -26
  28. package/assets/images/text-logo.png +0 -0
  29. package/ios/Plugin/CapacitorCalendarPlugin.h +0 -10
  30. package/ios/Plugin/CapacitorCalendarPlugin.m +0 -36
  31. package/ios/Plugin/EventDeleteResults.swift +0 -14
  32. package/ios/Plugin/Info.plist +0 -24
  33. package/ios/Plugin/RecurrenceParameters.swift +0 -15
  34. /package/ios/{Plugin → Sources/CapacitorCalendarPlugin}/CapacitorCalendar.swift +0 -0
@@ -3,18 +3,19 @@ ext {
3
3
  androidxAppCompatVersion = project.hasProperty('androidxAppCompatVersion') ? rootProject.ext.androidxAppCompatVersion : '1.7.0'
4
4
  androidxJunitVersion = project.hasProperty('androidxJunitVersion') ? rootProject.ext.androidxJunitVersion : '1.2.1'
5
5
  androidxEspressoCoreVersion = project.hasProperty('androidxEspressoCoreVersion') ? rootProject.ext.androidxEspressoCoreVersion : '3.6.1'
6
+ coreKtxVersion = project.hasProperty('coreKtxVersion') ? rootProject.ext.coreKtxVersion : '1.15.0'
6
7
  }
7
8
 
8
9
  buildscript {
9
10
  ext {
10
- kotlin_version = '1.9.23'
11
+ kotlin_version = '1.9.25'
11
12
  }
12
13
  repositories {
13
14
  google()
14
15
  mavenCentral()
15
16
  }
16
17
  dependencies {
17
- classpath 'com.android.tools.build:gradle:8.7.0'
18
+ classpath 'com.android.tools.build:gradle:8.7.2'
18
19
  classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
19
20
  }
20
21
  }
@@ -26,7 +27,7 @@ android {
26
27
  namespace "dev.barooni.capacitor.calendar"
27
28
  compileSdk project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 35
28
29
  defaultConfig {
29
- minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 24
30
+ minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 23
30
31
  targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 35
31
32
  versionCode 1
32
33
  versionName "1.0"
@@ -42,11 +43,11 @@ android {
42
43
  abortOnError false
43
44
  }
44
45
  compileOptions {
45
- sourceCompatibility JavaVersion.VERSION_17
46
- targetCompatibility JavaVersion.VERSION_17
46
+ sourceCompatibility JavaVersion.VERSION_21
47
+ targetCompatibility JavaVersion.VERSION_21
47
48
  }
48
49
  kotlinOptions {
49
- jvmTarget = '17'
50
+ jvmTarget = '21'
50
51
  }
51
52
  }
52
53
 
@@ -60,7 +61,7 @@ dependencies {
60
61
  implementation fileTree(dir: 'libs', include: ['*.jar'])
61
62
  implementation project(':capacitor-android')
62
63
  implementation "androidx.appcompat:appcompat:$androidxAppCompatVersion"
63
- implementation 'androidx.core:core-ktx:1.15.0'
64
+ implementation "androidx.core:core-ktx:$coreKtxVersion"
64
65
  testImplementation "junit:junit:$junitVersion"
65
66
  androidTestImplementation "androidx.test.ext:junit:$androidxJunitVersion"
66
67
  androidTestImplementation "androidx.test.espresso:espresso-core:$androidxEspressoCoreVersion"
package/dist/docs.json CHANGED
@@ -359,7 +359,7 @@
359
359
  "name": "getDefaultRemindersList",
360
360
  "signature": "() => Promise<{ result: RemindersList; }>",
361
361
  "parameters": [],
362
- "returns": "Promise<{ result: RemindersList; }>",
362
+ "returns": "Promise<{ result: Calendar; }>",
363
363
  "tags": [
364
364
  {
365
365
  "name": "async"
@@ -387,7 +387,7 @@
387
387
  "name": "getRemindersLists",
388
388
  "signature": "() => Promise<{ result: RemindersList[]; }>",
389
389
  "parameters": [],
390
- "returns": "Promise<{ result: RemindersList[]; }>",
390
+ "returns": "Promise<{ result: Calendar[]; }>",
391
391
  "tags": [
392
392
  {
393
393
  "name": "async"
@@ -1133,14 +1133,6 @@
1133
1133
  "properties": []
1134
1134
  },
1135
1135
  "interfaces": [
1136
- {
1137
- "name": "PluginPermissionsMap",
1138
- "slug": "pluginpermissionsmap",
1139
- "docs": "",
1140
- "tags": [],
1141
- "methods": [],
1142
- "properties": []
1143
- },
1144
1136
  {
1145
1137
  "name": "Calendar",
1146
1138
  "slug": "calendar",
@@ -1343,14 +1335,6 @@
1343
1335
  }
1344
1336
  ]
1345
1337
  },
1346
- {
1347
- "name": "RemindersList",
1348
- "slug": "reminderslist",
1349
- "docs": "",
1350
- "tags": [],
1351
- "methods": [],
1352
- "properties": []
1353
- },
1354
1338
  {
1355
1339
  "name": "ReminderRecurrenceRule",
1356
1340
  "slug": "reminderrecurrencerule",
@@ -1848,7 +1832,7 @@
1848
1832
  "members": [
1849
1833
  {
1850
1834
  "name": "READ_CALENDAR",
1851
- "value": "'readCalendar'",
1835
+ "value": "\"readCalendar\"",
1852
1836
  "tags": [
1853
1837
  {
1854
1838
  "text": "iOS, Android",
@@ -1863,7 +1847,7 @@
1863
1847
  },
1864
1848
  {
1865
1849
  "name": "WRITE_CALENDAR",
1866
- "value": "'writeCalendar'",
1850
+ "value": "\"writeCalendar\"",
1867
1851
  "tags": [
1868
1852
  {
1869
1853
  "text": "iOS, Android",
@@ -1878,7 +1862,7 @@
1878
1862
  },
1879
1863
  {
1880
1864
  "name": "READ_REMINDERS",
1881
- "value": "'readReminders'",
1865
+ "value": "\"readReminders\"",
1882
1866
  "tags": [
1883
1867
  {
1884
1868
  "text": "iOS",
@@ -1893,7 +1877,7 @@
1893
1877
  },
1894
1878
  {
1895
1879
  "name": "WRITE_REMINDERS",
1896
- "value": "'writeReminders'",
1880
+ "value": "\"writeReminders\"",
1897
1881
  "tags": [
1898
1882
  {
1899
1883
  "text": "iOS",
@@ -2073,6 +2057,47 @@
2073
2057
  "complexTypes": []
2074
2058
  }
2075
2059
  ]
2060
+ },
2061
+ {
2062
+ "name": "PluginPermissionsMap",
2063
+ "slug": "pluginpermissionsmap",
2064
+ "docs": "",
2065
+ "types": [
2066
+ {
2067
+ "text": "Record<string, PermissionState>",
2068
+ "complexTypes": [
2069
+ "Record",
2070
+ "PermissionState"
2071
+ ]
2072
+ }
2073
+ ]
2074
+ },
2075
+ {
2076
+ "name": "Record",
2077
+ "slug": "record",
2078
+ "docs": "Construct a type with a set of properties K of type T",
2079
+ "types": [
2080
+ {
2081
+ "text": "{\r\n [P in K]: T;\r\n}",
2082
+ "complexTypes": [
2083
+ "K",
2084
+ "T"
2085
+ ]
2086
+ }
2087
+ ]
2088
+ },
2089
+ {
2090
+ "name": "RemindersList",
2091
+ "slug": "reminderslist",
2092
+ "docs": "",
2093
+ "types": [
2094
+ {
2095
+ "text": "Calendar",
2096
+ "complexTypes": [
2097
+ "Calendar"
2098
+ ]
2099
+ }
2100
+ ]
2076
2101
  }
2077
2102
  ],
2078
2103
  "pluginConfigs": []
@@ -1 +1 @@
1
- {"version":3,"file":"plugin-permission.js","sourceRoot":"","sources":["../../../../src/schemas/enums/plugin-permission.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,CAAN,IAAY,gBAsDX;AAtDD,WAAY,gBAAgB;IAC1B;;;;;;;;;;;OAWG;IACH,kDAA8B,CAAA;IAE9B;;;;;;;;;;;OAWG;IACH,oDAAgC,CAAA;IAEhC;;;;;;;;;;OAUG;IACH,oDAAgC,CAAA;IAEhC;;;;;;;;;;OAUG;IACH,sDAAkC,CAAA;AACpC,CAAC,EAtDW,gBAAgB,KAAhB,gBAAgB,QAsD3B","sourcesContent":["/**\n * Enum representing the available runtime permissions for the plugin.\n *\n * @enum PluginPermission\n * @platform iOS, Android\n */\nexport enum PluginPermission {\n /**\n * Represents the permission state for reading calendar.\n *\n * @platform iOS, Android\n * @permissions\n * <h3>Manifest Permissions:</h3>\n * <ul>\n * <li><strong>iOS 17 &le;:</strong> NSCalendarsFullAccessUsageDescription</li>\n * <li><strong>13 &le; iOS &le; 16:</strong> NSCalendarsUsageDescription</li>\n * <li><strong>Android:</strong> android.permission.READ_CALENDAR</li>\n * </ul>\n */\n READ_CALENDAR = 'readCalendar',\n\n /**\n * Represents the permission state for writing calendar.\n *\n * @platform iOS, Android\n * @permissions\n * <h3>Manifest Permissions:</h3>\n * <ul>\n * <li><strong>iOS 17 &le;:</strong> NSCalendarsWriteOnlyAccessUsageDescription</li>\n * <li><strong>13 &le; iOS &le; 16:</strong> NSCalendarsUsageDescription</li>\n * <li><strong>Android:</strong> android.permission.WRITE_CALENDAR</li>\n * </ul>\n */\n WRITE_CALENDAR = 'writeCalendar',\n\n /**\n * Represents the permission state for reading reminders.\n *\n * @platform iOS\n * @permissions\n * <h3>Manifest Permissions:</h3>\n * <ul>\n * <li><strong>iOS 17 &le;:</strong> NSRemindersFullAccessUsageDescription</li>\n * <li><strong>10 &le; iOS &le; 16:</strong> NSRemindersUsageDescription</li>\n * </ul>\n */\n READ_REMINDERS = 'readReminders',\n\n /**\n * Represents the permission state for writing reminders.\n *\n * @platform iOS\n * @permissions\n * <h3>Manifest Permissions:</h3>\n * <ul>\n * <li><strong>iOS 17 &le;:</strong> NSRemindersFullAccessUsageDescription</li>\n * <li><strong>13 &le; iOS &le; 16:</strong> NSRemindersUsageDescription</li>\n * </ul>\n */\n WRITE_REMINDERS = 'writeReminders',\n}\n"]}
1
+ {"version":3,"file":"plugin-permission.js","sourceRoot":"","sources":["../../../../src/schemas/enums/plugin-permission.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,CAAN,IAAY,gBAsDX;AAtDD,WAAY,gBAAgB;IAC1B;;;;;;;;;;;OAWG;IACH,kDAA8B,CAAA;IAE9B;;;;;;;;;;;OAWG;IACH,oDAAgC,CAAA;IAEhC;;;;;;;;;;OAUG;IACH,oDAAgC,CAAA;IAEhC;;;;;;;;;;OAUG;IACH,sDAAkC,CAAA;AACpC,CAAC,EAtDW,gBAAgB,KAAhB,gBAAgB,QAsD3B","sourcesContent":["/**\n * Enum representing the available runtime permissions for the plugin.\n *\n * @enum PluginPermission\n * @platform iOS, Android\n */\nexport enum PluginPermission {\n /**\n * Represents the permission state for reading calendar.\n *\n * @platform iOS, Android\n * @permissions\n * <h3>Manifest Permissions:</h3>\n * <ul>\n * <li><strong>iOS 17 &le;:</strong> NSCalendarsFullAccessUsageDescription</li>\n * <li><strong>13 &le; iOS &le; 16:</strong> NSCalendarsUsageDescription</li>\n * <li><strong>Android:</strong> android.permission.READ_CALENDAR</li>\n * </ul>\n */\n READ_CALENDAR = \"readCalendar\",\n\n /**\n * Represents the permission state for writing calendar.\n *\n * @platform iOS, Android\n * @permissions\n * <h3>Manifest Permissions:</h3>\n * <ul>\n * <li><strong>iOS 17 &le;:</strong> NSCalendarsWriteOnlyAccessUsageDescription</li>\n * <li><strong>13 &le; iOS &le; 16:</strong> NSCalendarsUsageDescription</li>\n * <li><strong>Android:</strong> android.permission.WRITE_CALENDAR</li>\n * </ul>\n */\n WRITE_CALENDAR = \"writeCalendar\",\n\n /**\n * Represents the permission state for reading reminders.\n *\n * @platform iOS\n * @permissions\n * <h3>Manifest Permissions:</h3>\n * <ul>\n * <li><strong>iOS 17 &le;:</strong> NSRemindersFullAccessUsageDescription</li>\n * <li><strong>10 &le; iOS &le; 16:</strong> NSRemindersUsageDescription</li>\n * </ul>\n */\n READ_REMINDERS = \"readReminders\",\n\n /**\n * Represents the permission state for writing reminders.\n *\n * @platform iOS\n * @permissions\n * <h3>Manifest Permissions:</h3>\n * <ul>\n * <li><strong>iOS 17 &le;:</strong> NSRemindersFullAccessUsageDescription</li>\n * <li><strong>13 &le; iOS &le; 16:</strong> NSRemindersUsageDescription</li>\n * </ul>\n */\n WRITE_REMINDERS = \"writeReminders\",\n}\n"]}
@@ -1,4 +1,2 @@
1
- import type { PermissionState } from '@capacitor/core';
2
- export interface PluginPermissionsMap {
3
- [permission: string]: PermissionState;
4
- }
1
+ import type { PermissionState } from "@capacitor/core";
2
+ export declare type PluginPermissionsMap = Record<string, PermissionState>;
@@ -1 +1 @@
1
- {"version":3,"file":"plugin-permissions-map.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/plugin-permissions-map.ts"],"names":[],"mappings":"","sourcesContent":["import type { PermissionState } from '@capacitor/core';\n\nexport interface PluginPermissionsMap {\n [permission: string]: PermissionState;\n}\n"]}
1
+ {"version":3,"file":"plugin-permissions-map.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/plugin-permissions-map.ts"],"names":[],"mappings":"","sourcesContent":["import type { PermissionState } from \"@capacitor/core\";\n\nexport type PluginPermissionsMap = Record<string, PermissionState>;\n"]}
@@ -1,4 +1,4 @@
1
- import { ReminderRecurrenceFrequency } from '../enums/reminder-recurrence-frequency';
1
+ import { ReminderRecurrenceFrequency } from "../enums/reminder-recurrence-frequency";
2
2
  export interface ReminderRecurrenceRule {
3
3
  /**
4
4
  * How frequent should the reminder repeat.
@@ -1 +1 @@
1
- {"version":3,"file":"reminder-recurrence-rule.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/reminder-recurrence-rule.ts"],"names":[],"mappings":"","sourcesContent":["import { ReminderRecurrenceFrequency } from '../enums/reminder-recurrence-frequency';\n\nexport interface ReminderRecurrenceRule {\n /**\n * How frequent should the reminder repeat.\n *\n * @example\n * // if frequency is set to weekly, the reminder will repeat on a weekly basis.\n * const rules: ReminderRecurrenceRule = {\n * frequency: ReminderRecurrenceFrequency.WEEKLY,\n * interval: 1,\n * }\n */\n frequency: ReminderRecurrenceFrequency;\n\n /**\n * The interval should be a number greater than 0. For values lower than 1 the method will throw an error.\n *\n * @example\n * // if interval is set to 2 and frequency is set to daily, the reminder will repeat every 2 days.\n * const rules: ReminderRecurrenceRule = {\n * frequency: ReminderRecurrenceFrequency.DAILY,\n * interval: 2,\n * }\n */\n interval: number;\n\n /**\n * When provided, the reminder will stop repeating at the given time.\n *\n * @example\n * const rules: ReminderRecurrenceRule = {\n * frequency: ReminderRecurrenceFrequency.MONTHLY,\n * interval: 10,\n * end: Date.now()\n * }\n */\n end?: number;\n}\n"]}
1
+ {"version":3,"file":"reminder-recurrence-rule.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/reminder-recurrence-rule.ts"],"names":[],"mappings":"","sourcesContent":["import { ReminderRecurrenceFrequency } from \"../enums/reminder-recurrence-frequency\";\n\nexport interface ReminderRecurrenceRule {\n /**\n * How frequent should the reminder repeat.\n *\n * @example\n * // if frequency is set to weekly, the reminder will repeat on a weekly basis.\n * const rules: ReminderRecurrenceRule = {\n * frequency: ReminderRecurrenceFrequency.WEEKLY,\n * interval: 1,\n * }\n */\n frequency: ReminderRecurrenceFrequency;\n\n /**\n * The interval should be a number greater than 0. For values lower than 1 the method will throw an error.\n *\n * @example\n * // if interval is set to 2 and frequency is set to daily, the reminder will repeat every 2 days.\n * const rules: ReminderRecurrenceRule = {\n * frequency: ReminderRecurrenceFrequency.DAILY,\n * interval: 2,\n * }\n */\n interval: number;\n\n /**\n * When provided, the reminder will stop repeating at the given time.\n *\n * @example\n * const rules: ReminderRecurrenceRule = {\n * frequency: ReminderRecurrenceFrequency.MONTHLY,\n * interval: 10,\n * end: Date.now()\n * }\n */\n end?: number;\n}\n"]}
@@ -1,4 +1,4 @@
1
- import { ReminderRecurrenceRule } from './reminder-recurrence-rule';
1
+ import { ReminderRecurrenceRule } from "./reminder-recurrence-rule";
2
2
  /**
3
3
  * Represents a reminder in a reminders list.
4
4
  *
@@ -1 +1 @@
1
- {"version":3,"file":"reminder.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/reminder.ts"],"names":[],"mappings":"","sourcesContent":["import { ReminderRecurrenceRule } from './reminder-recurrence-rule';\n\n/**\n * Represents a reminder in a reminders list.\n *\n * @interface Reminder\n * @property {string} id The unique identifier of the reminder.\n * @property {string} title The title or name of the reminder. (Optional)\n * @property {string} listId The list that the reminder belongs to. (Optional)\n * @property {boolean} isCompleted Whether the reminder is completed already or not.\n * @property {number} priority The priority of the reminder. (Optional)\n * @property {string} notes The notes of the reminder. (Optional)\n * @property {string} url The url of the reminder. (Optional)\n * @property {number} startDate The start date of the reminder. (Optional)\n * @property {number} dueDate The due date of the reminder. (Optional)\n * @property {number} completionDate The completion date of the reminder. (Optional)\n * @property {ReminderRecurrenceRule[]} recurrence The recurrence rules of the reminder. (Optional)\n */\nexport interface Reminder {\n /**\n * @platform iOS\n */\n id: string;\n\n /**\n * @platform iOS\n */\n title?: string;\n\n /**\n * @platform iOS\n */\n listId?: string;\n\n /**\n * @platform iOS\n */\n isCompleted?: boolean;\n\n /**\n * @platform iOS\n */\n priority?: number;\n\n /**\n * @platform iOS\n */\n notes?: string;\n\n /**\n * @platform iOS\n */\n location?: string;\n\n /**\n * @platform iOS\n */\n url?: string;\n\n /**\n * @platform iOS\n */\n startDate?: number;\n\n /**\n * @platform iOS\n */\n dueDate?: number;\n\n /**\n * @platform iOS\n */\n completionDate?: number;\n\n /**\n * @platform iOS\n */\n recurrence?: ReminderRecurrenceRule[];\n}\n"]}
1
+ {"version":3,"file":"reminder.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/reminder.ts"],"names":[],"mappings":"","sourcesContent":["import { ReminderRecurrenceRule } from \"./reminder-recurrence-rule\";\n\n/**\n * Represents a reminder in a reminders list.\n *\n * @interface Reminder\n * @property {string} id The unique identifier of the reminder.\n * @property {string} title The title or name of the reminder. (Optional)\n * @property {string} listId The list that the reminder belongs to. (Optional)\n * @property {boolean} isCompleted Whether the reminder is completed already or not.\n * @property {number} priority The priority of the reminder. (Optional)\n * @property {string} notes The notes of the reminder. (Optional)\n * @property {string} url The url of the reminder. (Optional)\n * @property {number} startDate The start date of the reminder. (Optional)\n * @property {number} dueDate The due date of the reminder. (Optional)\n * @property {number} completionDate The completion date of the reminder. (Optional)\n * @property {ReminderRecurrenceRule[]} recurrence The recurrence rules of the reminder. (Optional)\n */\nexport interface Reminder {\n /**\n * @platform iOS\n */\n id: string;\n\n /**\n * @platform iOS\n */\n title?: string;\n\n /**\n * @platform iOS\n */\n listId?: string;\n\n /**\n * @platform iOS\n */\n isCompleted?: boolean;\n\n /**\n * @platform iOS\n */\n priority?: number;\n\n /**\n * @platform iOS\n */\n notes?: string;\n\n /**\n * @platform iOS\n */\n location?: string;\n\n /**\n * @platform iOS\n */\n url?: string;\n\n /**\n * @platform iOS\n */\n startDate?: number;\n\n /**\n * @platform iOS\n */\n dueDate?: number;\n\n /**\n * @platform iOS\n */\n completionDate?: number;\n\n /**\n * @platform iOS\n */\n recurrence?: ReminderRecurrenceRule[];\n}\n"]}
@@ -1,3 +1,2 @@
1
- import { Calendar } from './calendar';
2
- export interface RemindersList extends Calendar {
3
- }
1
+ import { Calendar } from "./calendar";
2
+ export declare type RemindersList = Calendar;
@@ -1 +1 @@
1
- {"version":3,"file":"reminders-list.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/reminders-list.ts"],"names":[],"mappings":"","sourcesContent":["import { Calendar } from './calendar';\n\nexport interface RemindersList extends Calendar {}\n"]}
1
+ {"version":3,"file":"reminders-list.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/reminders-list.ts"],"names":[],"mappings":"","sourcesContent":["import { Calendar } from \"./calendar\";\n\nexport type RemindersList = Calendar;\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.cjs.js","sources":["esm/schemas/enums/calendar-chooser-display-style.js","esm/schemas/enums/calendar-chooser-selection-style.js","esm/schemas/enums/plugin-permission.js","esm/schemas/enums/reminder-recurrence-frequency.js","esm/schemas/enums/event-span.js","esm/schemas/enums/calendar-source-type.js","esm/schemas/enums/calendar-type.js","esm/index.js","esm/web.js"],"sourcesContent":["/**\n * Enum representing the display styles for the calendar chooser.\n *\n * @enum CalendarChooserDisplayStyle\n * @platform iOS\n */\nexport var CalendarChooserDisplayStyle;\n(function (CalendarChooserDisplayStyle) {\n /**\n * Display all calendars available for selection.\n */\n CalendarChooserDisplayStyle[CalendarChooserDisplayStyle[\"ALL_CALENDARS\"] = 0] = \"ALL_CALENDARS\";\n /**\n * Display only writable calendars available for selection.\n */\n CalendarChooserDisplayStyle[CalendarChooserDisplayStyle[\"WRITABLE_CALENDARS_ONLY\"] = 1] = \"WRITABLE_CALENDARS_ONLY\";\n})(CalendarChooserDisplayStyle || (CalendarChooserDisplayStyle = {}));\n//# sourceMappingURL=calendar-chooser-display-style.js.map","/**\n * Enum representing the selection style for the calendar chooser.\n *\n * @enum CalendarChooserSelectionStyle\n * @platform iOS\n */\nexport var CalendarChooserSelectionStyle;\n(function (CalendarChooserSelectionStyle) {\n /**\n * Allows only a single selection in the calendar chooser.\n */\n CalendarChooserSelectionStyle[CalendarChooserSelectionStyle[\"SINGLE\"] = 0] = \"SINGLE\";\n /**\n * Allows multiple selections in the calendar chooser.\n */\n CalendarChooserSelectionStyle[CalendarChooserSelectionStyle[\"MULTIPLE\"] = 1] = \"MULTIPLE\";\n})(CalendarChooserSelectionStyle || (CalendarChooserSelectionStyle = {}));\n//# sourceMappingURL=calendar-chooser-selection-style.js.map","/**\n * Enum representing the available runtime permissions for the plugin.\n *\n * @enum PluginPermission\n * @platform iOS, Android\n */\nexport var PluginPermission;\n(function (PluginPermission) {\n /**\n * Represents the permission state for reading calendar.\n *\n * @platform iOS, Android\n * @permissions\n * <h3>Manifest Permissions:</h3>\n * <ul>\n * <li><strong>iOS 17 &le;:</strong> NSCalendarsFullAccessUsageDescription</li>\n * <li><strong>13 &le; iOS &le; 16:</strong> NSCalendarsUsageDescription</li>\n * <li><strong>Android:</strong> android.permission.READ_CALENDAR</li>\n * </ul>\n */\n PluginPermission[\"READ_CALENDAR\"] = \"readCalendar\";\n /**\n * Represents the permission state for writing calendar.\n *\n * @platform iOS, Android\n * @permissions\n * <h3>Manifest Permissions:</h3>\n * <ul>\n * <li><strong>iOS 17 &le;:</strong> NSCalendarsWriteOnlyAccessUsageDescription</li>\n * <li><strong>13 &le; iOS &le; 16:</strong> NSCalendarsUsageDescription</li>\n * <li><strong>Android:</strong> android.permission.WRITE_CALENDAR</li>\n * </ul>\n */\n PluginPermission[\"WRITE_CALENDAR\"] = \"writeCalendar\";\n /**\n * Represents the permission state for reading reminders.\n *\n * @platform iOS\n * @permissions\n * <h3>Manifest Permissions:</h3>\n * <ul>\n * <li><strong>iOS 17 &le;:</strong> NSRemindersFullAccessUsageDescription</li>\n * <li><strong>10 &le; iOS &le; 16:</strong> NSRemindersUsageDescription</li>\n * </ul>\n */\n PluginPermission[\"READ_REMINDERS\"] = \"readReminders\";\n /**\n * Represents the permission state for writing reminders.\n *\n * @platform iOS\n * @permissions\n * <h3>Manifest Permissions:</h3>\n * <ul>\n * <li><strong>iOS 17 &le;:</strong> NSRemindersFullAccessUsageDescription</li>\n * <li><strong>13 &le; iOS &le; 16:</strong> NSRemindersUsageDescription</li>\n * </ul>\n */\n PluginPermission[\"WRITE_REMINDERS\"] = \"writeReminders\";\n})(PluginPermission || (PluginPermission = {}));\n//# sourceMappingURL=plugin-permission.js.map","/**\n * Enum representing the repeating frequency of the reminder.\n *\n * @enum ReminderRecurrenceFrequency\n * @platform iOS\n */\nexport var ReminderRecurrenceFrequency;\n(function (ReminderRecurrenceFrequency) {\n /**\n * The reminder repeats on a daily basis\n */\n ReminderRecurrenceFrequency[ReminderRecurrenceFrequency[\"DAILY\"] = 0] = \"DAILY\";\n /**\n * The reminder repeats on a weekly basis\n */\n ReminderRecurrenceFrequency[ReminderRecurrenceFrequency[\"WEEKLY\"] = 1] = \"WEEKLY\";\n /**\n * The reminder repeats on a monthly basis\n */\n ReminderRecurrenceFrequency[ReminderRecurrenceFrequency[\"MONTHLY\"] = 2] = \"MONTHLY\";\n /**\n * The reminder repeats on a yearly basis\n */\n ReminderRecurrenceFrequency[ReminderRecurrenceFrequency[\"YEARLY\"] = 3] = \"YEARLY\";\n})(ReminderRecurrenceFrequency || (ReminderRecurrenceFrequency = {}));\n//# sourceMappingURL=reminder-recurrence-frequency.js.map","/**\n * Enum representing the span of modifications.\n *\n * @enum EventSpan\n * @platform iOS\n */\nexport var EventSpan;\n(function (EventSpan) {\n /**\n * The modifications should only be applied to this event.\n */\n EventSpan[EventSpan[\"THIS_EVENT\"] = 0] = \"THIS_EVENT\";\n /**\n * The modifications to this event should also be applied to the future instances of this event.\n */\n EventSpan[EventSpan[\"THIS_AND_FUTURE_EVENTS\"] = 1] = \"THIS_AND_FUTURE_EVENTS\";\n})(EventSpan || (EventSpan = {}));\n//# sourceMappingURL=event-span.js.map","/**\n * Represents the different types of sources from which calendars can originate.\n *\n * @enum CalendarSourceType\n * @platform iOS\n */\nexport var CalendarSourceType;\n(function (CalendarSourceType) {\n /**\n * Calendars that are stored locally on the device. These calendars are not\n * synced with any external service.\n */\n CalendarSourceType[CalendarSourceType[\"LOCAL\"] = 0] = \"LOCAL\";\n /**\n * Calendars that are associated with an Exchange server. Exchange is a\n * popular calendar and email service used by many enterprises.\n */\n CalendarSourceType[CalendarSourceType[\"EXCHANGE\"] = 1] = \"EXCHANGE\";\n /**\n * Calendars that use the CalDAV protocol for synchronization.\n * This includes calendars from services like Google Calendar and Yahoo Calendar.\n */\n CalendarSourceType[CalendarSourceType[\"CAL_DAV\"] = 2] = \"CAL_DAV\";\n /**\n * Calendars that were previously associated with MobileMe, Apple's cloud\n * service before iCloud. This source type is largely obsolete now.\n */\n CalendarSourceType[CalendarSourceType[\"MOBILE_ME\"] = 3] = \"MOBILE_ME\";\n /**\n * Calendars that the user has subscribed to. These are read-only calendars\n * that can be added by subscribing to a calendar URL.\n */\n CalendarSourceType[CalendarSourceType[\"SUBSCRIBED\"] = 4] = \"SUBSCRIBED\";\n /**\n * The built-in Birthdays calendar, which shows birthdays of contacts from the user's address book.\n * This calendar is typically read-only and is managed by the system.\n */\n CalendarSourceType[CalendarSourceType[\"BIRTHDAYS\"] = 5] = \"BIRTHDAYS\";\n})(CalendarSourceType || (CalendarSourceType = {}));\n//# sourceMappingURL=calendar-source-type.js.map","/**\n * An enum representing the type of calendar.\n *\n * @enum CalendarType\n * @platform iOS\n */\nexport var CalendarType;\n(function (CalendarType) {\n /**\n * This calendar is sync'd from either Mobile Me or tethered.\n */\n CalendarType[CalendarType[\"LOCAL\"] = 0] = \"LOCAL\";\n /**\n * This calendar is from a CalDAV server.\n */\n CalendarType[CalendarType[\"CAL_DAV\"] = 1] = \"CAL_DAV\";\n /**\n * This calendar comes from an Exchange server.\n */\n CalendarType[CalendarType[\"EXCHANGE\"] = 2] = \"EXCHANGE\";\n /**\n * This is a locally subscribed calendar.\n */\n CalendarType[CalendarType[\"SUBSCRIPTION\"] = 3] = \"SUBSCRIPTION\";\n /**\n * This is the built-in birthday calendar.\n */\n CalendarType[CalendarType[\"BIRTHDAY\"] = 4] = \"BIRTHDAY\";\n})(CalendarType || (CalendarType = {}));\n//# sourceMappingURL=calendar-type.js.map","import { registerPlugin } from \"@capacitor/core\";\nimport { CalendarChooserDisplayStyle } from \"./schemas/enums/calendar-chooser-display-style\";\nimport { CalendarChooserSelectionStyle } from \"./schemas/enums/calendar-chooser-selection-style\";\nimport { PluginPermission } from \"./schemas/enums/plugin-permission\";\nimport { ReminderRecurrenceFrequency } from \"./schemas/enums/reminder-recurrence-frequency\";\nimport { EventSpan } from \"./schemas/enums/event-span\";\nimport { CalendarSourceType } from \"./schemas/enums/calendar-source-type\";\nimport { CalendarType } from \"./schemas/enums/calendar-type\";\nconst CapacitorCalendar = registerPlugin(\"CapacitorCalendar\", {\n web: () => import(\"./web\").then((m) => new m.CapacitorCalendarWeb()),\n});\nexport * from \"./definitions\";\nexport { CalendarChooserSelectionStyle, CalendarChooserDisplayStyle, PluginPermission, ReminderRecurrenceFrequency, EventSpan, CalendarSourceType, CalendarType, CapacitorCalendar, };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from \"@capacitor/core\";\nexport class CapacitorCalendarWeb extends WebPlugin {\n checkPermission(_options) {\n throw this.unimplemented(`${this.checkPermission.name} is not implemented on the web`);\n }\n checkAllPermissions() {\n throw this.unimplemented(`${this.checkAllPermissions.name} is not implemented on the web`);\n }\n requestPermission(_options) {\n throw this.unimplemented(`${this.requestPermission.name} is not implemented on the web`);\n }\n requestAllPermissions() {\n throw this.unimplemented(`${this.requestAllPermissions.name} is not implemented on the web`);\n }\n createEventWithPrompt(_options) {\n throw this.unimplemented(`${this.createEventWithPrompt.name} is not implemented on the web`);\n }\n selectCalendarsWithPrompt() {\n throw this.unimplemented(`${this.selectCalendarsWithPrompt.name} is not implemented on the web`);\n }\n listCalendars() {\n throw this.unimplemented(`${this.listCalendars.name} is not implemented on the web`);\n }\n getDefaultCalendar() {\n throw this.unimplemented(`${this.getDefaultCalendar.name} is not implemented on the web`);\n }\n createEvent(_options) {\n throw this.unimplemented(`${this.createEvent.name} is not implemented on the web`);\n }\n createReminder(_options) {\n throw this.unimplemented(`${this.createReminder.name} is not implemented on the web`);\n }\n getDefaultRemindersList() {\n throw this.unimplemented(`${this.getDefaultRemindersList.name} is not implemented on the web`);\n }\n getRemindersLists() {\n throw this.unimplemented(`${this.getRemindersLists.name} is not implemented on the web`);\n }\n openCalendar(_options) {\n throw this.unimplemented(`${this.openCalendar.name} is not implemented on the web`);\n }\n openReminders() {\n throw this.unimplemented(`${this.openReminders.name} is not implemented on the web`);\n }\n listEventsInRange(_options) {\n throw this.unimplemented(`${this.listEventsInRange.name} is not implemented on the web`);\n }\n deleteEventsById(_options) {\n throw this.unimplemented(`${this.deleteEventsById.name} is not implemented on the web`);\n }\n createCalendar(_options) {\n throw this.unimplemented(`${this.createCalendar.name} is not implemented on the web`);\n }\n deleteCalendar(_options) {\n throw this.unimplemented(`${this.deleteCalendar.name} is not implemented on the web`);\n }\n getRemindersFromLists(_options) {\n throw this.unimplemented(`${this.getRemindersFromLists.name} is not implemented on the web`);\n }\n deleteRemindersById(_options) {\n throw this.unimplemented(`${this.deleteRemindersById.name} is not implemented on the web`);\n }\n requestWriteOnlyCalendarAccess() {\n throw this.unimplemented(`${this.requestWriteOnlyCalendarAccess.name} is not implemented on the web`);\n }\n requestReadOnlyCalendarAccess() {\n throw this.unimplemented(`${this.requestReadOnlyCalendarAccess.name} is not implemented on the web`);\n }\n requestFullCalendarAccess() {\n throw this.unimplemented(`${this.requestFullCalendarAccess.name} is not implemented on the web`);\n }\n requestFullRemindersAccess() {\n throw this.unimplemented(`${this.requestFullRemindersAccess.name} is not implemented on the web`);\n }\n modifyEventWithPrompt(_options) {\n throw this.unimplemented(`${this.modifyEventWithPrompt.name} is not implemented on the web`);\n }\n modifyEvent(_options) {\n throw this.unimplemented(`${this.modifyEvent.name} is not implemented on the web`);\n }\n fetchAllCalendarSources() {\n throw this.unimplemented(`${this.fetchAllCalendarSources.name} is not implemented on the web`);\n }\n fetchAllRemindersSources() {\n throw this.unimplemented(`${this.fetchAllRemindersSources.name} is not implemented on the web`);\n }\n modifyReminder(_options) {\n throw this.unimplemented(`${this.modifyReminder.name} is not implemented on the web`);\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["CalendarChooserDisplayStyle","CalendarChooserSelectionStyle","PluginPermission","ReminderRecurrenceFrequency","EventSpan","CalendarSourceType","CalendarType","registerPlugin","WebPlugin"],"mappings":";;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACWA,6CAA4B;AACvC,CAAC,UAAU,2BAA2B,EAAE;AACxC;AACA;AACA;AACA,IAAI,2BAA2B,CAAC,2BAA2B,CAAC,eAAe,CAAC,GAAG,CAAC,CAAC,GAAG,eAAe,CAAC;AACpG;AACA;AACA;AACA,IAAI,2BAA2B,CAAC,2BAA2B,CAAC,yBAAyB,CAAC,GAAG,CAAC,CAAC,GAAG,yBAAyB,CAAC;AACxH,CAAC,EAAEA,mCAA2B,KAAKA,mCAA2B,GAAG,EAAE,CAAC,CAAC;;AChBrE;AACA;AACA;AACA;AACA;AACA;AACWC,+CAA8B;AACzC,CAAC,UAAU,6BAA6B,EAAE;AAC1C;AACA;AACA;AACA,IAAI,6BAA6B,CAAC,6BAA6B,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,GAAG,QAAQ,CAAC;AAC1F;AACA;AACA;AACA,IAAI,6BAA6B,CAAC,6BAA6B,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,GAAG,UAAU,CAAC;AAC9F,CAAC,EAAEA,qCAA6B,KAAKA,qCAA6B,GAAG,EAAE,CAAC,CAAC;;AChBzE;AACA;AACA;AACA;AACA;AACA;AACWC,kCA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CAAC;AAC3F,KAAK;AACL,IAAI,uBAAuB,GAAG;AAC9B,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,CAAC,EAAE,IAAI,CAAC,uBAAuB,CAAC,IAAI,CAAC,8BAA8B,CAAC,CAAC,CAAC;AACvG,KAAK;AACL,IAAI,wBAAwB,GAAG;AAC/B,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,CAAC,EAAE,IAAI,CAAC,wBAAwB,CAAC,IAAI,CAAC,8BAA8B,CAAC,CAAC,CAAC;AACxG,KAAK;AACL,IAAI,cAAc,CAAC,QAAQ,EAAE;AAC7B,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,CAAC,EAAE,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,8BAA8B,CAAC,CAAC,CAAC;AAC9F,KAAK;AACL;;;;;;;;;"}
1
+ {"version":3,"file":"plugin.cjs.js","sources":["esm/schemas/enums/calendar-chooser-display-style.js","esm/schemas/enums/calendar-chooser-selection-style.js","esm/schemas/enums/plugin-permission.js","esm/schemas/enums/reminder-recurrence-frequency.js","esm/schemas/enums/event-span.js","esm/schemas/enums/calendar-source-type.js","esm/schemas/enums/calendar-type.js","esm/index.js","esm/web.js"],"sourcesContent":["/**\n * Enum representing the display styles for the calendar chooser.\n *\n * @enum CalendarChooserDisplayStyle\n * @platform iOS\n */\nexport var CalendarChooserDisplayStyle;\n(function (CalendarChooserDisplayStyle) {\n /**\n * Display all calendars available for selection.\n */\n CalendarChooserDisplayStyle[CalendarChooserDisplayStyle[\"ALL_CALENDARS\"] = 0] = \"ALL_CALENDARS\";\n /**\n * Display only writable calendars available for selection.\n */\n CalendarChooserDisplayStyle[CalendarChooserDisplayStyle[\"WRITABLE_CALENDARS_ONLY\"] = 1] = \"WRITABLE_CALENDARS_ONLY\";\n})(CalendarChooserDisplayStyle || (CalendarChooserDisplayStyle = {}));\n//# sourceMappingURL=calendar-chooser-display-style.js.map","/**\n * Enum representing the selection style for the calendar chooser.\n *\n * @enum CalendarChooserSelectionStyle\n * @platform iOS\n */\nexport var CalendarChooserSelectionStyle;\n(function (CalendarChooserSelectionStyle) {\n /**\n * Allows only a single selection in the calendar chooser.\n */\n CalendarChooserSelectionStyle[CalendarChooserSelectionStyle[\"SINGLE\"] = 0] = \"SINGLE\";\n /**\n * Allows multiple selections in the calendar chooser.\n */\n CalendarChooserSelectionStyle[CalendarChooserSelectionStyle[\"MULTIPLE\"] = 1] = \"MULTIPLE\";\n})(CalendarChooserSelectionStyle || (CalendarChooserSelectionStyle = {}));\n//# sourceMappingURL=calendar-chooser-selection-style.js.map","/**\n * Enum representing the available runtime permissions for the plugin.\n *\n * @enum PluginPermission\n * @platform iOS, Android\n */\nexport var PluginPermission;\n(function (PluginPermission) {\n /**\n * Represents the permission state for reading calendar.\n *\n * @platform iOS, Android\n * @permissions\n * <h3>Manifest Permissions:</h3>\n * <ul>\n * <li><strong>iOS 17 &le;:</strong> NSCalendarsFullAccessUsageDescription</li>\n * <li><strong>13 &le; iOS &le; 16:</strong> NSCalendarsUsageDescription</li>\n * <li><strong>Android:</strong> android.permission.READ_CALENDAR</li>\n * </ul>\n */\n PluginPermission[\"READ_CALENDAR\"] = \"readCalendar\";\n /**\n * Represents the permission state for writing calendar.\n *\n * @platform iOS, Android\n * @permissions\n * <h3>Manifest Permissions:</h3>\n * <ul>\n * <li><strong>iOS 17 &le;:</strong> NSCalendarsWriteOnlyAccessUsageDescription</li>\n * <li><strong>13 &le; iOS &le; 16:</strong> NSCalendarsUsageDescription</li>\n * <li><strong>Android:</strong> android.permission.WRITE_CALENDAR</li>\n * </ul>\n */\n PluginPermission[\"WRITE_CALENDAR\"] = \"writeCalendar\";\n /**\n * Represents the permission state for reading reminders.\n *\n * @platform iOS\n * @permissions\n * <h3>Manifest Permissions:</h3>\n * <ul>\n * <li><strong>iOS 17 &le;:</strong> NSRemindersFullAccessUsageDescription</li>\n * <li><strong>10 &le; iOS &le; 16:</strong> NSRemindersUsageDescription</li>\n * </ul>\n */\n PluginPermission[\"READ_REMINDERS\"] = \"readReminders\";\n /**\n * Represents the permission state for writing reminders.\n *\n * @platform iOS\n * @permissions\n * <h3>Manifest Permissions:</h3>\n * <ul>\n * <li><strong>iOS 17 &le;:</strong> NSRemindersFullAccessUsageDescription</li>\n * <li><strong>13 &le; iOS &le; 16:</strong> NSRemindersUsageDescription</li>\n * </ul>\n */\n PluginPermission[\"WRITE_REMINDERS\"] = \"writeReminders\";\n})(PluginPermission || (PluginPermission = {}));\n//# sourceMappingURL=plugin-permission.js.map","/**\n * Enum representing the repeating frequency of the reminder.\n *\n * @enum ReminderRecurrenceFrequency\n * @platform iOS\n */\nexport var ReminderRecurrenceFrequency;\n(function (ReminderRecurrenceFrequency) {\n /**\n * The reminder repeats on a daily basis\n */\n ReminderRecurrenceFrequency[ReminderRecurrenceFrequency[\"DAILY\"] = 0] = \"DAILY\";\n /**\n * The reminder repeats on a weekly basis\n */\n ReminderRecurrenceFrequency[ReminderRecurrenceFrequency[\"WEEKLY\"] = 1] = \"WEEKLY\";\n /**\n * The reminder repeats on a monthly basis\n */\n ReminderRecurrenceFrequency[ReminderRecurrenceFrequency[\"MONTHLY\"] = 2] = \"MONTHLY\";\n /**\n * The reminder repeats on a yearly basis\n */\n ReminderRecurrenceFrequency[ReminderRecurrenceFrequency[\"YEARLY\"] = 3] = \"YEARLY\";\n})(ReminderRecurrenceFrequency || (ReminderRecurrenceFrequency = {}));\n//# sourceMappingURL=reminder-recurrence-frequency.js.map","/**\n * Enum representing the span of modifications.\n *\n * @enum EventSpan\n * @platform iOS\n */\nexport var EventSpan;\n(function (EventSpan) {\n /**\n * The modifications should only be applied to this event.\n */\n EventSpan[EventSpan[\"THIS_EVENT\"] = 0] = \"THIS_EVENT\";\n /**\n * The modifications to this event should also be applied to the future instances of this event.\n */\n EventSpan[EventSpan[\"THIS_AND_FUTURE_EVENTS\"] = 1] = \"THIS_AND_FUTURE_EVENTS\";\n})(EventSpan || (EventSpan = {}));\n//# sourceMappingURL=event-span.js.map","/**\n * Represents the different types of sources from which calendars can originate.\n *\n * @enum CalendarSourceType\n * @platform iOS\n */\nexport var CalendarSourceType;\n(function (CalendarSourceType) {\n /**\n * Calendars that are stored locally on the device. These calendars are not\n * synced with any external service.\n */\n CalendarSourceType[CalendarSourceType[\"LOCAL\"] = 0] = \"LOCAL\";\n /**\n * Calendars that are associated with an Exchange server. Exchange is a\n * popular calendar and email service used by many enterprises.\n */\n CalendarSourceType[CalendarSourceType[\"EXCHANGE\"] = 1] = \"EXCHANGE\";\n /**\n * Calendars that use the CalDAV protocol for synchronization.\n * This includes calendars from services like Google Calendar and Yahoo Calendar.\n */\n CalendarSourceType[CalendarSourceType[\"CAL_DAV\"] = 2] = \"CAL_DAV\";\n /**\n * Calendars that were previously associated with MobileMe, Apple's cloud\n * service before iCloud. This source type is largely obsolete now.\n */\n CalendarSourceType[CalendarSourceType[\"MOBILE_ME\"] = 3] = \"MOBILE_ME\";\n /**\n * Calendars that the user has subscribed to. These are read-only calendars\n * that can be added by subscribing to a calendar URL.\n */\n CalendarSourceType[CalendarSourceType[\"SUBSCRIBED\"] = 4] = \"SUBSCRIBED\";\n /**\n * The built-in Birthdays calendar, which shows birthdays of contacts from the user's address book.\n * This calendar is typically read-only and is managed by the system.\n */\n CalendarSourceType[CalendarSourceType[\"BIRTHDAYS\"] = 5] = \"BIRTHDAYS\";\n})(CalendarSourceType || (CalendarSourceType = {}));\n//# sourceMappingURL=calendar-source-type.js.map","/**\n * An enum representing the type of calendar.\n *\n * @enum CalendarType\n * @platform iOS\n */\nexport var CalendarType;\n(function (CalendarType) {\n /**\n * This calendar is sync'd from either Mobile Me or tethered.\n */\n CalendarType[CalendarType[\"LOCAL\"] = 0] = \"LOCAL\";\n /**\n * This calendar is from a CalDAV server.\n */\n CalendarType[CalendarType[\"CAL_DAV\"] = 1] = \"CAL_DAV\";\n /**\n * This calendar comes from an Exchange server.\n */\n CalendarType[CalendarType[\"EXCHANGE\"] = 2] = \"EXCHANGE\";\n /**\n * This is a locally subscribed calendar.\n */\n CalendarType[CalendarType[\"SUBSCRIPTION\"] = 3] = \"SUBSCRIPTION\";\n /**\n * This is the built-in birthday calendar.\n */\n CalendarType[CalendarType[\"BIRTHDAY\"] = 4] = \"BIRTHDAY\";\n})(CalendarType || (CalendarType = {}));\n//# sourceMappingURL=calendar-type.js.map","import { registerPlugin } from \"@capacitor/core\";\nimport { CalendarChooserDisplayStyle } from \"./schemas/enums/calendar-chooser-display-style\";\nimport { CalendarChooserSelectionStyle } from \"./schemas/enums/calendar-chooser-selection-style\";\nimport { PluginPermission } from \"./schemas/enums/plugin-permission\";\nimport { ReminderRecurrenceFrequency } from \"./schemas/enums/reminder-recurrence-frequency\";\nimport { EventSpan } from \"./schemas/enums/event-span\";\nimport { CalendarSourceType } from \"./schemas/enums/calendar-source-type\";\nimport { CalendarType } from \"./schemas/enums/calendar-type\";\nconst CapacitorCalendar = registerPlugin(\"CapacitorCalendar\", {\n web: () => import(\"./web\").then((m) => new m.CapacitorCalendarWeb()),\n});\nexport * from \"./definitions\";\nexport { CalendarChooserSelectionStyle, CalendarChooserDisplayStyle, PluginPermission, ReminderRecurrenceFrequency, EventSpan, CalendarSourceType, CalendarType, CapacitorCalendar, };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from \"@capacitor/core\";\nexport class CapacitorCalendarWeb extends WebPlugin {\n checkPermission(_options) {\n throw this.unimplemented(`${this.checkPermission.name} is not implemented on the web`);\n }\n checkAllPermissions() {\n throw this.unimplemented(`${this.checkAllPermissions.name} is not implemented on the web`);\n }\n requestPermission(_options) {\n throw this.unimplemented(`${this.requestPermission.name} is not implemented on the web`);\n }\n requestAllPermissions() {\n throw this.unimplemented(`${this.requestAllPermissions.name} is not implemented on the web`);\n }\n createEventWithPrompt(_options) {\n throw this.unimplemented(`${this.createEventWithPrompt.name} is not implemented on the web`);\n }\n selectCalendarsWithPrompt() {\n throw this.unimplemented(`${this.selectCalendarsWithPrompt.name} is not implemented on the web`);\n }\n listCalendars() {\n throw this.unimplemented(`${this.listCalendars.name} is not implemented on the web`);\n }\n getDefaultCalendar() {\n throw this.unimplemented(`${this.getDefaultCalendar.name} is not implemented on the web`);\n }\n createEvent(_options) {\n throw this.unimplemented(`${this.createEvent.name} is not implemented on the web`);\n }\n createReminder(_options) {\n throw this.unimplemented(`${this.createReminder.name} is not implemented on the web`);\n }\n getDefaultRemindersList() {\n throw this.unimplemented(`${this.getDefaultRemindersList.name} is not implemented on the web`);\n }\n getRemindersLists() {\n throw this.unimplemented(`${this.getRemindersLists.name} is not implemented on the web`);\n }\n openCalendar(_options) {\n throw this.unimplemented(`${this.openCalendar.name} is not implemented on the web`);\n }\n openReminders() {\n throw this.unimplemented(`${this.openReminders.name} is not implemented on the web`);\n }\n listEventsInRange(_options) {\n throw this.unimplemented(`${this.listEventsInRange.name} is not implemented on the web`);\n }\n deleteEventsById(_options) {\n throw this.unimplemented(`${this.deleteEventsById.name} is not implemented on the web`);\n }\n createCalendar(_options) {\n throw this.unimplemented(`${this.createCalendar.name} is not implemented on the web`);\n }\n deleteCalendar(_options) {\n throw this.unimplemented(`${this.deleteCalendar.name} is not implemented on the web`);\n }\n getRemindersFromLists(_options) {\n throw this.unimplemented(`${this.getRemindersFromLists.name} is not implemented on the web`);\n }\n deleteRemindersById(_options) {\n throw this.unimplemented(`${this.deleteRemindersById.name} is not implemented on the web`);\n }\n requestWriteOnlyCalendarAccess() {\n throw this.unimplemented(`${this.requestWriteOnlyCalendarAccess.name} is not implemented on the web`);\n }\n requestReadOnlyCalendarAccess() {\n throw this.unimplemented(`${this.requestReadOnlyCalendarAccess.name} is not implemented on the web`);\n }\n requestFullCalendarAccess() {\n throw this.unimplemented(`${this.requestFullCalendarAccess.name} is not implemented on the web`);\n }\n requestFullRemindersAccess() {\n throw this.unimplemented(`${this.requestFullRemindersAccess.name} is not implemented on the web`);\n }\n modifyEventWithPrompt(_options) {\n throw this.unimplemented(`${this.modifyEventWithPrompt.name} is not implemented on the web`);\n }\n modifyEvent(_options) {\n throw this.unimplemented(`${this.modifyEvent.name} is not implemented on the web`);\n }\n fetchAllCalendarSources() {\n throw this.unimplemented(`${this.fetchAllCalendarSources.name} is not implemented on the web`);\n }\n fetchAllRemindersSources() {\n throw this.unimplemented(`${this.fetchAllRemindersSources.name} is not implemented on the web`);\n }\n modifyReminder(_options) {\n throw this.unimplemented(`${this.modifyReminder.name} is not implemented on the web`);\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["CalendarChooserDisplayStyle","CalendarChooserSelectionStyle","PluginPermission","ReminderRecurrenceFrequency","EventSpan","CalendarSourceType","CalendarType","registerPlugin","WebPlugin"],"mappings":";;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACWA;AACX,CAAC,UAAU,2BAA2B,EAAE;AACxC;AACA;AACA;AACA,IAAI,2BAA2B,CAAC,2BAA2B,CAAC,eAAe,CAAC,GAAG,CAAC,CAAC,GAAG,eAAe;AACnG;AACA;AACA;AACA,IAAI,2BAA2B,CAAC,2BAA2B,CAAC,yBAAyB,CAAC,GAAG,CAAC,CAAC,GAAG,yBAAyB;AACvH,CAAC,EAAEA,mCAA2B,KAAKA,mCAA2B,GAAG,EAAE,CAAC,CAAC;;AChBrE;AACA;AACA;AACA;AACA;AACA;AACWC;AACX,CAAC,UAAU,6BAA6B,EAAE;AAC1C;AACA;AACA;AACA,IAAI,6BAA6B,CAAC,6BAA6B,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,GAAG,QAAQ;AACzF;AACA;AACA;AACA,IAAI,6BAA6B,CAAC,6BAA6B,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,GAAG,UAAU;AAC7F,CAAC,EAAEA,qCAA6B,KAAKA,qCAA6B,GAAG,EAAE,CAAC,CAAC;;AChBzE;AACA;AACA;AACA;AACA;AACA;AACWC;AACX,CAAC,UAAU,gBAAgB,EAAE;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI,gBAAgB,CAAC,e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AAI,CAAC,8BAA8B,CAAC,CAAC;AAC5G;AACA,IAAI,yBAAyB,GAAG;AAChC,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,CAAC,EAAE,IAAI,CAAC,yBAAyB,CAAC,IAAI,CAAC,8BAA8B,CAAC,CAAC;AACxG;AACA,IAAI,0BAA0B,GAAG;AACjC,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,CAAC,EAAE,IAAI,CAAC,0BAA0B,CAAC,IAAI,CAAC,8BAA8B,CAAC,CAAC;AACzG;AACA,IAAI,qBAAqB,CAAC,QAAQ,EAAE;AACpC,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,CAAC,EAAE,IAAI,CAAC,qBAAqB,CAAC,IAAI,CAAC,8BAA8B,CAAC,CAAC;AACpG;AACA,IAAI,WAAW,CAAC,QAAQ,EAAE;AAC1B,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,CAAC,EAAE,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,8BAA8B,CAAC,CAAC;AAC1F;AACA,IAAI,uBAAuB,GAAG;AAC9B,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,CAAC,EAAE,IAAI,CAAC,uBAAuB,CAAC,IAAI,CAAC,8BAA8B,CAAC,CAAC;AACtG;AACA,IAAI,wBAAwB,GAAG;AAC/B,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,CAAC,EAAE,IAAI,CAAC,wBAAwB,CAAC,IAAI,CAAC,8BAA8B,CAAC,CAAC;AACvG;AACA,IAAI,cAAc,CAAC,QAAQ,EAAE;AAC7B,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,CAAC,EAAE,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,8BAA8B,CAAC,CAAC;AAC7F;AACA;;;;;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.js","sources":["esm/schemas/enums/calendar-chooser-display-style.js","esm/schemas/enums/calendar-chooser-selection-style.js","esm/schemas/enums/plugin-permission.js","esm/schemas/enums/reminder-recurrence-frequency.js","esm/schemas/enums/event-span.js","esm/schemas/enums/calendar-source-type.js","esm/schemas/enums/calendar-type.js","esm/index.js","esm/web.js"],"sourcesContent":["/**\n * Enum representing the display styles for the calendar chooser.\n *\n * @enum CalendarChooserDisplayStyle\n * @platform iOS\n */\nexport var CalendarChooserDisplayStyle;\n(function (CalendarChooserDisplayStyle) {\n /**\n * Display all calendars available for selection.\n */\n CalendarChooserDisplayStyle[CalendarChooserDisplayStyle[\"ALL_CALENDARS\"] = 0] = \"ALL_CALENDARS\";\n /**\n * Display only writable calendars available for selection.\n */\n CalendarChooserDisplayStyle[CalendarChooserDisplayStyle[\"WRITABLE_CALENDARS_ONLY\"] = 1] = \"WRITABLE_CALENDARS_ONLY\";\n})(CalendarChooserDisplayStyle || (CalendarChooserDisplayStyle = {}));\n//# sourceMappingURL=calendar-chooser-display-style.js.map","/**\n * Enum representing the selection style for the calendar chooser.\n *\n * @enum CalendarChooserSelectionStyle\n * @platform iOS\n */\nexport var CalendarChooserSelectionStyle;\n(function (CalendarChooserSelectionStyle) {\n /**\n * Allows only a single selection in the calendar chooser.\n */\n CalendarChooserSelectionStyle[CalendarChooserSelectionStyle[\"SINGLE\"] = 0] = \"SINGLE\";\n /**\n * Allows multiple selections in the calendar chooser.\n */\n CalendarChooserSelectionStyle[CalendarChooserSelectionStyle[\"MULTIPLE\"] = 1] = \"MULTIPLE\";\n})(CalendarChooserSelectionStyle || (CalendarChooserSelectionStyle = {}));\n//# sourceMappingURL=calendar-chooser-selection-style.js.map","/**\n * Enum representing the available runtime permissions for the plugin.\n *\n * @enum PluginPermission\n * @platform iOS, Android\n */\nexport var PluginPermission;\n(function (PluginPermission) {\n /**\n * Represents the permission state for reading calendar.\n *\n * @platform iOS, Android\n * @permissions\n * <h3>Manifest Permissions:</h3>\n * <ul>\n * <li><strong>iOS 17 &le;:</strong> NSCalendarsFullAccessUsageDescription</li>\n * <li><strong>13 &le; iOS &le; 16:</strong> NSCalendarsUsageDescription</li>\n * <li><strong>Android:</strong> android.permission.READ_CALENDAR</li>\n * </ul>\n */\n PluginPermission[\"READ_CALENDAR\"] = \"readCalendar\";\n /**\n * Represents the permission state for writing calendar.\n *\n * @platform iOS, Android\n * @permissions\n * <h3>Manifest Permissions:</h3>\n * <ul>\n * <li><strong>iOS 17 &le;:</strong> NSCalendarsWriteOnlyAccessUsageDescription</li>\n * <li><strong>13 &le; iOS &le; 16:</strong> NSCalendarsUsageDescription</li>\n * <li><strong>Android:</strong> android.permission.WRITE_CALENDAR</li>\n * </ul>\n */\n PluginPermission[\"WRITE_CALENDAR\"] = \"writeCalendar\";\n /**\n * Represents the permission state for reading reminders.\n *\n * @platform iOS\n * @permissions\n * <h3>Manifest Permissions:</h3>\n * <ul>\n * <li><strong>iOS 17 &le;:</strong> NSRemindersFullAccessUsageDescription</li>\n * <li><strong>10 &le; iOS &le; 16:</strong> NSRemindersUsageDescription</li>\n * </ul>\n */\n PluginPermission[\"READ_REMINDERS\"] = \"readReminders\";\n /**\n * Represents the permission state for writing reminders.\n *\n * @platform iOS\n * @permissions\n * <h3>Manifest Permissions:</h3>\n * <ul>\n * <li><strong>iOS 17 &le;:</strong> NSRemindersFullAccessUsageDescription</li>\n * <li><strong>13 &le; iOS &le; 16:</strong> NSRemindersUsageDescription</li>\n * </ul>\n */\n PluginPermission[\"WRITE_REMINDERS\"] = \"writeReminders\";\n})(PluginPermission || (PluginPermission = {}));\n//# sourceMappingURL=plugin-permission.js.map","/**\n * Enum representing the repeating frequency of the reminder.\n *\n * @enum ReminderRecurrenceFrequency\n * @platform iOS\n */\nexport var ReminderRecurrenceFrequency;\n(function (ReminderRecurrenceFrequency) {\n /**\n * The reminder repeats on a daily basis\n */\n ReminderRecurrenceFrequency[ReminderRecurrenceFrequency[\"DAILY\"] = 0] = \"DAILY\";\n /**\n * The reminder repeats on a weekly basis\n */\n ReminderRecurrenceFrequency[ReminderRecurrenceFrequency[\"WEEKLY\"] = 1] = \"WEEKLY\";\n /**\n * The reminder repeats on a monthly basis\n */\n ReminderRecurrenceFrequency[ReminderRecurrenceFrequency[\"MONTHLY\"] = 2] = \"MONTHLY\";\n /**\n * The reminder repeats on a yearly basis\n */\n ReminderRecurrenceFrequency[ReminderRecurrenceFrequency[\"YEARLY\"] = 3] = \"YEARLY\";\n})(ReminderRecurrenceFrequency || (ReminderRecurrenceFrequency = {}));\n//# sourceMappingURL=reminder-recurrence-frequency.js.map","/**\n * Enum representing the span of modifications.\n *\n * @enum EventSpan\n * @platform iOS\n */\nexport var EventSpan;\n(function (EventSpan) {\n /**\n * The modifications should only be applied to this event.\n */\n EventSpan[EventSpan[\"THIS_EVENT\"] = 0] = \"THIS_EVENT\";\n /**\n * The modifications to this event should also be applied to the future instances of this event.\n */\n EventSpan[EventSpan[\"THIS_AND_FUTURE_EVENTS\"] = 1] = \"THIS_AND_FUTURE_EVENTS\";\n})(EventSpan || (EventSpan = {}));\n//# sourceMappingURL=event-span.js.map","/**\n * Represents the different types of sources from which calendars can originate.\n *\n * @enum CalendarSourceType\n * @platform iOS\n */\nexport var CalendarSourceType;\n(function (CalendarSourceType) {\n /**\n * Calendars that are stored locally on the device. These calendars are not\n * synced with any external service.\n */\n CalendarSourceType[CalendarSourceType[\"LOCAL\"] = 0] = \"LOCAL\";\n /**\n * Calendars that are associated with an Exchange server. Exchange is a\n * popular calendar and email service used by many enterprises.\n */\n CalendarSourceType[CalendarSourceType[\"EXCHANGE\"] = 1] = \"EXCHANGE\";\n /**\n * Calendars that use the CalDAV protocol for synchronization.\n * This includes calendars from services like Google Calendar and Yahoo Calendar.\n */\n CalendarSourceType[CalendarSourceType[\"CAL_DAV\"] = 2] = \"CAL_DAV\";\n /**\n * Calendars that were previously associated with MobileMe, Apple's cloud\n * service before iCloud. This source type is largely obsolete now.\n */\n CalendarSourceType[CalendarSourceType[\"MOBILE_ME\"] = 3] = \"MOBILE_ME\";\n /**\n * Calendars that the user has subscribed to. These are read-only calendars\n * that can be added by subscribing to a calendar URL.\n */\n CalendarSourceType[CalendarSourceType[\"SUBSCRIBED\"] = 4] = \"SUBSCRIBED\";\n /**\n * The built-in Birthdays calendar, which shows birthdays of contacts from the user's address book.\n * This calendar is typically read-only and is managed by the system.\n */\n CalendarSourceType[CalendarSourceType[\"BIRTHDAYS\"] = 5] = \"BIRTHDAYS\";\n})(CalendarSourceType || (CalendarSourceType = {}));\n//# sourceMappingURL=calendar-source-type.js.map","/**\n * An enum representing the type of calendar.\n *\n * @enum CalendarType\n * @platform iOS\n */\nexport var CalendarType;\n(function (CalendarType) {\n /**\n * This calendar is sync'd from either Mobile Me or tethered.\n */\n CalendarType[CalendarType[\"LOCAL\"] = 0] = \"LOCAL\";\n /**\n * This calendar is from a CalDAV server.\n */\n CalendarType[CalendarType[\"CAL_DAV\"] = 1] = \"CAL_DAV\";\n /**\n * This calendar comes from an Exchange server.\n */\n CalendarType[CalendarType[\"EXCHANGE\"] = 2] = \"EXCHANGE\";\n /**\n * This is a locally subscribed calendar.\n */\n CalendarType[CalendarType[\"SUBSCRIPTION\"] = 3] = \"SUBSCRIPTION\";\n /**\n * This is the built-in birthday calendar.\n */\n CalendarType[CalendarType[\"BIRTHDAY\"] = 4] = \"BIRTHDAY\";\n})(CalendarType || (CalendarType = {}));\n//# sourceMappingURL=calendar-type.js.map","import { registerPlugin } from \"@capacitor/core\";\nimport { CalendarChooserDisplayStyle } from \"./schemas/enums/calendar-chooser-display-style\";\nimport { CalendarChooserSelectionStyle } from \"./schemas/enums/calendar-chooser-selection-style\";\nimport { PluginPermission } from \"./schemas/enums/plugin-permission\";\nimport { ReminderRecurrenceFrequency } from \"./schemas/enums/reminder-recurrence-frequency\";\nimport { EventSpan } from \"./schemas/enums/event-span\";\nimport { CalendarSourceType } from \"./schemas/enums/calendar-source-type\";\nimport { CalendarType } from \"./schemas/enums/calendar-type\";\nconst CapacitorCalendar = registerPlugin(\"CapacitorCalendar\", {\n web: () => import(\"./web\").then((m) => new m.CapacitorCalendarWeb()),\n});\nexport * from \"./definitions\";\nexport { CalendarChooserSelectionStyle, CalendarChooserDisplayStyle, PluginPermission, ReminderRecurrenceFrequency, EventSpan, CalendarSourceType, CalendarType, CapacitorCalendar, };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from \"@capacitor/core\";\nexport class CapacitorCalendarWeb extends WebPlugin {\n checkPermission(_options) {\n throw this.unimplemented(`${this.checkPermission.name} is not implemented on the web`);\n }\n checkAllPermissions() {\n throw this.unimplemented(`${this.checkAllPermissions.name} is not implemented on the web`);\n }\n requestPermission(_options) {\n throw this.unimplemented(`${this.requestPermission.name} is not implemented on the web`);\n }\n requestAllPermissions() {\n throw this.unimplemented(`${this.requestAllPermissions.name} is not implemented on the web`);\n }\n createEventWithPrompt(_options) {\n throw this.unimplemented(`${this.createEventWithPrompt.name} is not implemented on the web`);\n }\n selectCalendarsWithPrompt() {\n throw this.unimplemented(`${this.selectCalendarsWithPrompt.name} is not implemented on the web`);\n }\n listCalendars() {\n throw this.unimplemented(`${this.listCalendars.name} is not implemented on the web`);\n }\n getDefaultCalendar() {\n throw this.unimplemented(`${this.getDefaultCalendar.name} is not implemented on the web`);\n }\n createEvent(_options) {\n throw this.unimplemented(`${this.createEvent.name} is not implemented on the web`);\n }\n createReminder(_options) {\n throw this.unimplemented(`${this.createReminder.name} is not implemented on the web`);\n }\n getDefaultRemindersList() {\n throw this.unimplemented(`${this.getDefaultRemindersList.name} is not implemented on the web`);\n }\n getRemindersLists() {\n throw this.unimplemented(`${this.getRemindersLists.name} is not implemented on the web`);\n }\n openCalendar(_options) {\n throw this.unimplemented(`${this.openCalendar.name} is not implemented on the web`);\n }\n openReminders() {\n throw this.unimplemented(`${this.openReminders.name} is not implemented on the web`);\n }\n listEventsInRange(_options) {\n throw this.unimplemented(`${this.listEventsInRange.name} is not implemented on the web`);\n }\n deleteEventsById(_options) {\n throw this.unimplemented(`${this.deleteEventsById.name} is not implemented on the web`);\n }\n createCalendar(_options) {\n throw this.unimplemented(`${this.createCalendar.name} is not implemented on the web`);\n }\n deleteCalendar(_options) {\n throw this.unimplemented(`${this.deleteCalendar.name} is not implemented on the web`);\n }\n getRemindersFromLists(_options) {\n throw this.unimplemented(`${this.getRemindersFromLists.name} is not implemented on the web`);\n }\n deleteRemindersById(_options) {\n throw this.unimplemented(`${this.deleteRemindersById.name} is not implemented on the web`);\n }\n requestWriteOnlyCalendarAccess() {\n throw this.unimplemented(`${this.requestWriteOnlyCalendarAccess.name} is not implemented on the web`);\n }\n requestReadOnlyCalendarAccess() {\n throw this.unimplemented(`${this.requestReadOnlyCalendarAccess.name} is not implemented on the web`);\n }\n requestFullCalendarAccess() {\n throw this.unimplemented(`${this.requestFullCalendarAccess.name} is not implemented on the web`);\n }\n requestFullRemindersAccess() {\n throw this.unimplemented(`${this.requestFullRemindersAccess.name} is not implemented on the web`);\n }\n modifyEventWithPrompt(_options) {\n throw this.unimplemented(`${this.modifyEventWithPrompt.name} is not implemented on the web`);\n }\n modifyEvent(_options) {\n throw this.unimplemented(`${this.modifyEvent.name} is not implemented on the web`);\n }\n fetchAllCalendarSources() {\n throw this.unimplemented(`${this.fetchAllCalendarSources.name} is not implemented on the web`);\n }\n fetchAllRemindersSources() {\n throw this.unimplemented(`${this.fetchAllRemindersSources.name} is not implemented on the web`);\n }\n modifyReminder(_options) {\n throw this.unimplemented(`${this.modifyReminder.name} is not implemented on the web`);\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["CalendarChooserDisplayStyle","CalendarChooserSelectionStyle","PluginPermission","ReminderRecurrenceFrequency","EventSpan","CalendarSourceType","CalendarType","registerPlugin","WebPlugin"],"mappings":";;;IAAA;IACA;IACA;IACA;IACA;IACA;AACWA,iDAA4B;IACvC,CAAC,UAAU,2BAA2B,EAAE;IACxC;IACA;IACA;IACA,IAAI,2BAA2B,CAAC,2BAA2B,CAAC,eAAe,CAAC,GAAG,CAAC,CAAC,GAAG,eAAe,CAAC;IACpG;IACA;IACA;IACA,IAAI,2BAA2B,CAAC,2BAA2B,C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AI,CAAC,8BAA8B,CAAC,CAAC,CAAC;IACzG,KAAK;IACL,IAAI,0BAA0B,GAAG;IACjC,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,CAAC,EAAE,IAAI,CAAC,0BAA0B,CAAC,IAAI,CAAC,8BAA8B,CAAC,CAAC,CAAC;IAC1G,KAAK;IACL,IAAI,qBAAqB,CAAC,QAAQ,EAAE;IACpC,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,CAAC,EAAE,IAAI,CAAC,qBAAqB,CAAC,IAAI,CAAC,8BAA8B,CAAC,CAAC,CAAC;IACrG,KAAK;IACL,IAAI,WAAW,CAAC,QAAQ,EAAE;IAC1B,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,CAAC,EAAE,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,8BAA8B,CAAC,CAAC,CAAC;IAC3F,KAAK;IACL,IAAI,uBAAuB,GAAG;IAC9B,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,CAAC,EAAE,IAAI,CAAC,uBAAuB,CAAC,IAAI,CAAC,8BAA8B,CAAC,CAAC,CAAC;IACvG,KAAK;IACL,IAAI,wBAAwB,GAAG;IAC/B,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,CAAC,EAAE,IAAI,CAAC,wBAAwB,CAAC,IAAI,CAAC,8BAA8B,CAAC,CAAC,CAAC;IACxG,KAAK;IACL,IAAI,cAAc,CAAC,QAAQ,EAAE;IAC7B,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,CAAC,EAAE,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,8BAA8B,CAAC,CAAC,CAAC;IAC9F,KAAK;IACL;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"plugin.js","sources":["esm/schemas/enums/calendar-chooser-display-style.js","esm/schemas/enums/calendar-chooser-selection-style.js","esm/schemas/enums/plugin-permission.js","esm/schemas/enums/reminder-recurrence-frequency.js","esm/schemas/enums/event-span.js","esm/schemas/enums/calendar-source-type.js","esm/schemas/enums/calendar-type.js","esm/index.js","esm/web.js"],"sourcesContent":["/**\n * Enum representing the display styles for the calendar chooser.\n *\n * @enum CalendarChooserDisplayStyle\n * @platform iOS\n */\nexport var CalendarChooserDisplayStyle;\n(function (CalendarChooserDisplayStyle) {\n /**\n * Display all calendars available for selection.\n */\n CalendarChooserDisplayStyle[CalendarChooserDisplayStyle[\"ALL_CALENDARS\"] = 0] = \"ALL_CALENDARS\";\n /**\n * Display only writable calendars available for selection.\n */\n CalendarChooserDisplayStyle[CalendarChooserDisplayStyle[\"WRITABLE_CALENDARS_ONLY\"] = 1] = \"WRITABLE_CALENDARS_ONLY\";\n})(CalendarChooserDisplayStyle || (CalendarChooserDisplayStyle = {}));\n//# sourceMappingURL=calendar-chooser-display-style.js.map","/**\n * Enum representing the selection style for the calendar chooser.\n *\n * @enum CalendarChooserSelectionStyle\n * @platform iOS\n */\nexport var CalendarChooserSelectionStyle;\n(function (CalendarChooserSelectionStyle) {\n /**\n * Allows only a single selection in the calendar chooser.\n */\n CalendarChooserSelectionStyle[CalendarChooserSelectionStyle[\"SINGLE\"] = 0] = \"SINGLE\";\n /**\n * Allows multiple selections in the calendar chooser.\n */\n CalendarChooserSelectionStyle[CalendarChooserSelectionStyle[\"MULTIPLE\"] = 1] = \"MULTIPLE\";\n})(CalendarChooserSelectionStyle || (CalendarChooserSelectionStyle = {}));\n//# sourceMappingURL=calendar-chooser-selection-style.js.map","/**\n * Enum representing the available runtime permissions for the plugin.\n *\n * @enum PluginPermission\n * @platform iOS, Android\n */\nexport var PluginPermission;\n(function (PluginPermission) {\n /**\n * Represents the permission state for reading calendar.\n *\n * @platform iOS, Android\n * @permissions\n * <h3>Manifest Permissions:</h3>\n * <ul>\n * <li><strong>iOS 17 &le;:</strong> NSCalendarsFullAccessUsageDescription</li>\n * <li><strong>13 &le; iOS &le; 16:</strong> NSCalendarsUsageDescription</li>\n * <li><strong>Android:</strong> android.permission.READ_CALENDAR</li>\n * </ul>\n */\n PluginPermission[\"READ_CALENDAR\"] = \"readCalendar\";\n /**\n * Represents the permission state for writing calendar.\n *\n * @platform iOS, Android\n * @permissions\n * <h3>Manifest Permissions:</h3>\n * <ul>\n * <li><strong>iOS 17 &le;:</strong> NSCalendarsWriteOnlyAccessUsageDescription</li>\n * <li><strong>13 &le; iOS &le; 16:</strong> NSCalendarsUsageDescription</li>\n * <li><strong>Android:</strong> android.permission.WRITE_CALENDAR</li>\n * </ul>\n */\n PluginPermission[\"WRITE_CALENDAR\"] = \"writeCalendar\";\n /**\n * Represents the permission state for reading reminders.\n *\n * @platform iOS\n * @permissions\n * <h3>Manifest Permissions:</h3>\n * <ul>\n * <li><strong>iOS 17 &le;:</strong> NSRemindersFullAccessUsageDescription</li>\n * <li><strong>10 &le; iOS &le; 16:</strong> NSRemindersUsageDescription</li>\n * </ul>\n */\n PluginPermission[\"READ_REMINDERS\"] = \"readReminders\";\n /**\n * Represents the permission state for writing reminders.\n *\n * @platform iOS\n * @permissions\n * <h3>Manifest Permissions:</h3>\n * <ul>\n * <li><strong>iOS 17 &le;:</strong> NSRemindersFullAccessUsageDescription</li>\n * <li><strong>13 &le; iOS &le; 16:</strong> NSRemindersUsageDescription</li>\n * </ul>\n */\n PluginPermission[\"WRITE_REMINDERS\"] = \"writeReminders\";\n})(PluginPermission || (PluginPermission = {}));\n//# sourceMappingURL=plugin-permission.js.map","/**\n * Enum representing the repeating frequency of the reminder.\n *\n * @enum ReminderRecurrenceFrequency\n * @platform iOS\n */\nexport var ReminderRecurrenceFrequency;\n(function (ReminderRecurrenceFrequency) {\n /**\n * The reminder repeats on a daily basis\n */\n ReminderRecurrenceFrequency[ReminderRecurrenceFrequency[\"DAILY\"] = 0] = \"DAILY\";\n /**\n * The reminder repeats on a weekly basis\n */\n ReminderRecurrenceFrequency[ReminderRecurrenceFrequency[\"WEEKLY\"] = 1] = \"WEEKLY\";\n /**\n * The reminder repeats on a monthly basis\n */\n ReminderRecurrenceFrequency[ReminderRecurrenceFrequency[\"MONTHLY\"] = 2] = \"MONTHLY\";\n /**\n * The reminder repeats on a yearly basis\n */\n ReminderRecurrenceFrequency[ReminderRecurrenceFrequency[\"YEARLY\"] = 3] = \"YEARLY\";\n})(ReminderRecurrenceFrequency || (ReminderRecurrenceFrequency = {}));\n//# sourceMappingURL=reminder-recurrence-frequency.js.map","/**\n * Enum representing the span of modifications.\n *\n * @enum EventSpan\n * @platform iOS\n */\nexport var EventSpan;\n(function (EventSpan) {\n /**\n * The modifications should only be applied to this event.\n */\n EventSpan[EventSpan[\"THIS_EVENT\"] = 0] = \"THIS_EVENT\";\n /**\n * The modifications to this event should also be applied to the future instances of this event.\n */\n EventSpan[EventSpan[\"THIS_AND_FUTURE_EVENTS\"] = 1] = \"THIS_AND_FUTURE_EVENTS\";\n})(EventSpan || (EventSpan = {}));\n//# sourceMappingURL=event-span.js.map","/**\n * Represents the different types of sources from which calendars can originate.\n *\n * @enum CalendarSourceType\n * @platform iOS\n */\nexport var CalendarSourceType;\n(function (CalendarSourceType) {\n /**\n * Calendars that are stored locally on the device. These calendars are not\n * synced with any external service.\n */\n CalendarSourceType[CalendarSourceType[\"LOCAL\"] = 0] = \"LOCAL\";\n /**\n * Calendars that are associated with an Exchange server. Exchange is a\n * popular calendar and email service used by many enterprises.\n */\n CalendarSourceType[CalendarSourceType[\"EXCHANGE\"] = 1] = \"EXCHANGE\";\n /**\n * Calendars that use the CalDAV protocol for synchronization.\n * This includes calendars from services like Google Calendar and Yahoo Calendar.\n */\n CalendarSourceType[CalendarSourceType[\"CAL_DAV\"] = 2] = \"CAL_DAV\";\n /**\n * Calendars that were previously associated with MobileMe, Apple's cloud\n * service before iCloud. This source type is largely obsolete now.\n */\n CalendarSourceType[CalendarSourceType[\"MOBILE_ME\"] = 3] = \"MOBILE_ME\";\n /**\n * Calendars that the user has subscribed to. These are read-only calendars\n * that can be added by subscribing to a calendar URL.\n */\n CalendarSourceType[CalendarSourceType[\"SUBSCRIBED\"] = 4] = \"SUBSCRIBED\";\n /**\n * The built-in Birthdays calendar, which shows birthdays of contacts from the user's address book.\n * This calendar is typically read-only and is managed by the system.\n */\n CalendarSourceType[CalendarSourceType[\"BIRTHDAYS\"] = 5] = \"BIRTHDAYS\";\n})(CalendarSourceType || (CalendarSourceType = {}));\n//# sourceMappingURL=calendar-source-type.js.map","/**\n * An enum representing the type of calendar.\n *\n * @enum CalendarType\n * @platform iOS\n */\nexport var CalendarType;\n(function (CalendarType) {\n /**\n * This calendar is sync'd from either Mobile Me or tethered.\n */\n CalendarType[CalendarType[\"LOCAL\"] = 0] = \"LOCAL\";\n /**\n * This calendar is from a CalDAV server.\n */\n CalendarType[CalendarType[\"CAL_DAV\"] = 1] = \"CAL_DAV\";\n /**\n * This calendar comes from an Exchange server.\n */\n CalendarType[CalendarType[\"EXCHANGE\"] = 2] = \"EXCHANGE\";\n /**\n * This is a locally subscribed calendar.\n */\n CalendarType[CalendarType[\"SUBSCRIPTION\"] = 3] = \"SUBSCRIPTION\";\n /**\n * This is the built-in birthday calendar.\n */\n CalendarType[CalendarType[\"BIRTHDAY\"] = 4] = \"BIRTHDAY\";\n})(CalendarType || (CalendarType = {}));\n//# sourceMappingURL=calendar-type.js.map","import { registerPlugin } from \"@capacitor/core\";\nimport { CalendarChooserDisplayStyle } from \"./schemas/enums/calendar-chooser-display-style\";\nimport { CalendarChooserSelectionStyle } from \"./schemas/enums/calendar-chooser-selection-style\";\nimport { PluginPermission } from \"./schemas/enums/plugin-permission\";\nimport { ReminderRecurrenceFrequency } from \"./schemas/enums/reminder-recurrence-frequency\";\nimport { EventSpan } from \"./schemas/enums/event-span\";\nimport { CalendarSourceType } from \"./schemas/enums/calendar-source-type\";\nimport { CalendarType } from \"./schemas/enums/calendar-type\";\nconst CapacitorCalendar = registerPlugin(\"CapacitorCalendar\", {\n web: () => import(\"./web\").then((m) => new m.CapacitorCalendarWeb()),\n});\nexport * from \"./definitions\";\nexport { CalendarChooserSelectionStyle, CalendarChooserDisplayStyle, PluginPermission, ReminderRecurrenceFrequency, EventSpan, CalendarSourceType, CalendarType, CapacitorCalendar, };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from \"@capacitor/core\";\nexport class CapacitorCalendarWeb extends WebPlugin {\n checkPermission(_options) {\n throw this.unimplemented(`${this.checkPermission.name} is not implemented on the web`);\n }\n checkAllPermissions() {\n throw this.unimplemented(`${this.checkAllPermissions.name} is not implemented on the web`);\n }\n requestPermission(_options) {\n throw this.unimplemented(`${this.requestPermission.name} is not implemented on the web`);\n }\n requestAllPermissions() {\n throw this.unimplemented(`${this.requestAllPermissions.name} is not implemented on the web`);\n }\n createEventWithPrompt(_options) {\n throw this.unimplemented(`${this.createEventWithPrompt.name} is not implemented on the web`);\n }\n selectCalendarsWithPrompt() {\n throw this.unimplemented(`${this.selectCalendarsWithPrompt.name} is not implemented on the web`);\n }\n listCalendars() {\n throw this.unimplemented(`${this.listCalendars.name} is not implemented on the web`);\n }\n getDefaultCalendar() {\n throw this.unimplemented(`${this.getDefaultCalendar.name} is not implemented on the web`);\n }\n createEvent(_options) {\n throw this.unimplemented(`${this.createEvent.name} is not implemented on the web`);\n }\n createReminder(_options) {\n throw this.unimplemented(`${this.createReminder.name} is not implemented on the web`);\n }\n getDefaultRemindersList() {\n throw this.unimplemented(`${this.getDefaultRemindersList.name} is not implemented on the web`);\n }\n getRemindersLists() {\n throw this.unimplemented(`${this.getRemindersLists.name} is not implemented on the web`);\n }\n openCalendar(_options) {\n throw this.unimplemented(`${this.openCalendar.name} is not implemented on the web`);\n }\n openReminders() {\n throw this.unimplemented(`${this.openReminders.name} is not implemented on the web`);\n }\n listEventsInRange(_options) {\n throw this.unimplemented(`${this.listEventsInRange.name} is not implemented on the web`);\n }\n deleteEventsById(_options) {\n throw this.unimplemented(`${this.deleteEventsById.name} is not implemented on the web`);\n }\n createCalendar(_options) {\n throw this.unimplemented(`${this.createCalendar.name} is not implemented on the web`);\n }\n deleteCalendar(_options) {\n throw this.unimplemented(`${this.deleteCalendar.name} is not implemented on the web`);\n }\n getRemindersFromLists(_options) {\n throw this.unimplemented(`${this.getRemindersFromLists.name} is not implemented on the web`);\n }\n deleteRemindersById(_options) {\n throw this.unimplemented(`${this.deleteRemindersById.name} is not implemented on the web`);\n }\n requestWriteOnlyCalendarAccess() {\n throw this.unimplemented(`${this.requestWriteOnlyCalendarAccess.name} is not implemented on the web`);\n }\n requestReadOnlyCalendarAccess() {\n throw this.unimplemented(`${this.requestReadOnlyCalendarAccess.name} is not implemented on the web`);\n }\n requestFullCalendarAccess() {\n throw this.unimplemented(`${this.requestFullCalendarAccess.name} is not implemented on the web`);\n }\n requestFullRemindersAccess() {\n throw this.unimplemented(`${this.requestFullRemindersAccess.name} is not implemented on the web`);\n }\n modifyEventWithPrompt(_options) {\n throw this.unimplemented(`${this.modifyEventWithPrompt.name} is not implemented on the web`);\n }\n modifyEvent(_options) {\n throw this.unimplemented(`${this.modifyEvent.name} is not implemented on the web`);\n }\n fetchAllCalendarSources() {\n throw this.unimplemented(`${this.fetchAllCalendarSources.name} is not implemented on the web`);\n }\n fetchAllRemindersSources() {\n throw this.unimplemented(`${this.fetchAllRemindersSources.name} is not implemented on the web`);\n }\n modifyReminder(_options) {\n throw this.unimplemented(`${this.modifyReminder.name} is not implemented on the web`);\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["CalendarChooserDisplayStyle","CalendarChooserSelectionStyle","PluginPermission","ReminderRecurrenceFrequency","EventSpan","CalendarSourceType","CalendarType","registerPlugin","WebPlugin"],"mappings":";;;IAAA;IACA;IACA;IACA;IACA;IACA;AACWA;IACX,CAAC,UAAU,2BAA2B,EAAE;IACxC;IACA;IACA;IACA,IAAI,2BAA2B,CAAC,2BAA2B,CAAC,eAAe,CAAC,GAAG,CAAC,CAAC,GAAG,eAAe;IACnG;IACA;IACA;IACA,IAAI,2BAA2B,CAAC,2BAA2B,CAAC,yBAAyB,CAAC,GAAG,CAAC,CAAC,GAAG,yBAAyB;IACvH,CAAC,EAAEA,mCAA2B,KAAK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AAa,CAAC,CAAC,EAAE,IAAI,CAAC,uBAAuB,CAAC,IAAI,CAAC,8BAA8B,CAAC,CAAC;IACtG;IACA,IAAI,wBAAwB,GAAG;IAC/B,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,CAAC,EAAE,IAAI,CAAC,wBAAwB,CAAC,IAAI,CAAC,8BAA8B,CAAC,CAAC;IACvG;IACA,IAAI,cAAc,CAAC,QAAQ,EAAE;IAC7B,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,CAAC,EAAE,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,8BAA8B,CAAC,CAAC;IAC7F;IACA;;;;;;;;;;;;;;;"}
@@ -1,13 +1,42 @@
1
1
  import Foundation
2
- import EventKit
3
2
  import Capacitor
3
+ import EventKit
4
4
 
5
- /**
6
- * Please read the Capacitor iOS Plugin Development Guide
7
- * here: https://capacitorjs.com/docs/plugins/ios
8
- */
9
5
  @objc(CapacitorCalendarPlugin)
10
- public class CapacitorCalendarPlugin: CAPPlugin {
6
+ public class CapacitorCalendarPlugin: CAPPlugin, CAPBridgedPlugin {
7
+ public let identifier = "CapacitorCalendarPlugin"
8
+ public let jsName = "CapacitorCalendar"
9
+ public let pluginMethods: [CAPPluginMethod] = [
10
+ CAPPluginMethod(name: "createEventWithPrompt", returnType: CAPPluginReturnPromise),
11
+ CAPPluginMethod(name: "checkPermission", returnType: CAPPluginReturnPromise),
12
+ CAPPluginMethod(name: "checkAllPermissions", returnType: CAPPluginReturnPromise),
13
+ CAPPluginMethod(name: "requestPermission", returnType: CAPPluginReturnPromise),
14
+ CAPPluginMethod(name: "requestAllPermissions", returnType: CAPPluginReturnPromise),
15
+ CAPPluginMethod(name: "selectCalendarsWithPrompt", returnType: CAPPluginReturnPromise),
16
+ CAPPluginMethod(name: "listCalendars", returnType: CAPPluginReturnPromise),
17
+ CAPPluginMethod(name: "getDefaultCalendar", returnType: CAPPluginReturnPromise),
18
+ CAPPluginMethod(name: "createEvent", returnType: CAPPluginReturnPromise),
19
+ CAPPluginMethod(name: "getDefaultRemindersList", returnType: CAPPluginReturnPromise),
20
+ CAPPluginMethod(name: "getRemindersLists", returnType: CAPPluginReturnPromise),
21
+ CAPPluginMethod(name: "createReminder", returnType: CAPPluginReturnPromise),
22
+ CAPPluginMethod(name: "openCalendar", returnType: CAPPluginReturnPromise),
23
+ CAPPluginMethod(name: "openReminders", returnType: CAPPluginReturnPromise),
24
+ CAPPluginMethod(name: "listEventsInRange", returnType: CAPPluginReturnPromise),
25
+ CAPPluginMethod(name: "deleteEventsById", returnType: CAPPluginReturnPromise),
26
+ CAPPluginMethod(name: "createCalendar", returnType: CAPPluginReturnPromise),
27
+ CAPPluginMethod(name: "deleteCalendar", returnType: CAPPluginReturnPromise),
28
+ CAPPluginMethod(name: "getRemindersFromLists", returnType: CAPPluginReturnPromise),
29
+ CAPPluginMethod(name: "deleteRemindersById", returnType: CAPPluginReturnPromise),
30
+ CAPPluginMethod(name: "requestWriteOnlyCalendarAccess", returnType: CAPPluginReturnPromise),
31
+ CAPPluginMethod(name: "requestFullCalendarAccess", returnType: CAPPluginReturnPromise),
32
+ CAPPluginMethod(name: "requestFullRemindersAccess", returnType: CAPPluginReturnPromise),
33
+ CAPPluginMethod(name: "requestReadOnlyCalendarAccess", returnType: CAPPluginReturnPromise),
34
+ CAPPluginMethod(name: "modifyEventWithPrompt", returnType: CAPPluginReturnPromise),
35
+ CAPPluginMethod(name: "modifyEvent", returnType: CAPPluginReturnPromise),
36
+ CAPPluginMethod(name: "fetchAllCalendarSources", returnType: CAPPluginReturnPromise),
37
+ CAPPluginMethod(name: "fetchAllRemindersSources", returnType: CAPPluginReturnPromise),
38
+ CAPPluginMethod(name: "modifyReminder", returnType: CAPPluginReturnPromise)
39
+ ]
11
40
  private let eventStore = EKEventStore()
12
41
  private lazy var calendar = CapacitorCalendar(bridge: self.bridge, eventStore: self.eventStore)
13
42
  private lazy var reminders = CapacitorReminders(eventStore: self.eventStore)
@@ -1,11 +1,3 @@
1
- //
2
- // PermissionError.swift
3
- // Plugin
4
- //
5
- // Created by Ehsan Barooni on 27.02.24.
6
- // Copyright © 2024 Max Lynch. All rights reserved.
7
- //
8
-
9
1
  import Foundation
10
2
 
11
3
  public enum CapacitorCalendarPluginError: Error {
@@ -1,11 +1,3 @@
1
- //
2
- // CapacitorReminders.swift
3
- // Plugin
4
- //
5
- // Created by Ehsan Barooni on 15.03.24.
6
- // Copyright © 2024 Max Lynch. All rights reserved.
7
- //
8
-
9
1
  import Foundation
10
2
  import EventKit
11
3
  import UIKit
@@ -1,11 +1,3 @@
1
- //
2
- // EventCreationParameters.swift
3
- // Plugin
4
- //
5
- // Created by Ehsan Barooni on 22.03.24.
6
- // Copyright © 2024 Max Lynch. All rights reserved.
7
- //
8
-
9
1
  import Foundation
10
2
 
11
3
  public struct EventCreationParameters {
@@ -0,0 +1,6 @@
1
+ import Foundation
2
+
3
+ public struct EventDeleteResults {
4
+ var deleted: [String]
5
+ var failed: [String]
6
+ }
@@ -1,11 +1,3 @@
1
- //
2
- // PermissionState.swift
3
- // Plugin
4
- //
5
- // Created by Ehsan Barooni on 28.02.24.
6
- // Copyright © 2024 Max Lynch. All rights reserved.
7
- //
8
-
9
1
  import Foundation
10
2
 
11
3
  public enum PermissionState: String {
@@ -0,0 +1,7 @@
1
+ import Foundation
2
+
3
+ struct RecurrenceParameters {
4
+ let frequency: Int
5
+ let interval: Int
6
+ let end: Double?
7
+ }
@@ -1,11 +1,3 @@
1
- //
2
- // ReminderCreationParameters.swift
3
- // Plugin
4
- //
5
- // Created by Ehsan Barooni on 22.03.24.
6
- // Copyright © 2024 Max Lynch. All rights reserved.
7
- //
8
-
9
1
  import Foundation
10
2
 
11
3
  public struct ReminderCreationParameters {