@ebarooni/capacitor-calendar 8.1.0 → 8.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +68 -1
- package/android/src/main/java/dev/barooni/capacitor/calendar/CapacitorCalendarPlugin.kt +10 -0
- package/dist/docs.json +237 -8
- package/dist/esm/index.d.ts +4 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/schemas/interfaces/create-reminders-list-options.d.ts +0 -1
- package/dist/esm/schemas/interfaces/create-reminders-list-options.js.map +1 -1
- package/dist/esm/schemas/interfaces/create-reminders-list-result.d.ts +0 -1
- package/dist/esm/schemas/interfaces/create-reminders-list-result.js.map +1 -1
- package/dist/esm/schemas/interfaces/delete-reminders-list-options.d.ts +23 -0
- package/dist/esm/schemas/interfaces/delete-reminders-list-options.js +2 -0
- package/dist/esm/schemas/interfaces/delete-reminders-list-options.js.map +1 -0
- package/dist/esm/schemas/interfaces/update-reminders-list-options.d.ts +40 -0
- package/dist/esm/schemas/interfaces/update-reminders-list-options.js +2 -0
- package/dist/esm/schemas/interfaces/update-reminders-list-options.js.map +1 -0
- package/dist/esm/schemas/interfaces/update-reminders-list-result.d.ts +12 -0
- package/dist/esm/schemas/interfaces/update-reminders-list-result.js +2 -0
- package/dist/esm/schemas/interfaces/update-reminders-list-result.js.map +1 -0
- package/dist/esm/sub-definitions/reminders-operations.d.ts +17 -0
- package/dist/esm/sub-definitions/reminders-operations.js.map +1 -1
- package/dist/esm/web.d.ts +5 -0
- package/dist/esm/web.js +6 -0
- package/dist/esm/web.js.map +1 -1
- package/dist/plugin.cjs.js +6 -0
- package/dist/plugin.cjs.js.map +1 -1
- package/dist/plugin.js +6 -0
- package/dist/plugin.js.map +1 -1
- package/ios/Plugin/CapacitorCalendarPlugin.swift +30 -0
- package/ios/Plugin/Implementation/CapacitorCalendar.swift +39 -0
- package/ios/Plugin/Models/Inputs/DeleteRemindersListInput.swift +22 -0
- package/ios/Plugin/Models/Inputs/UpdateRemindersListInput.swift +55 -0
- package/ios/Plugin/Models/Results/UpdateRemindersListResult.swift +15 -0
- package/ios/Plugin/PluginConfig.swift +3 -1
- package/ios/Plugin/PluginError.swift +3 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -154,7 +154,7 @@ Use the system calendar UI to let users create or edit events:
|
|
|
154
154
|
await CapacitorCalendar.createEventWithPrompt({
|
|
155
155
|
title: 'Planning session',
|
|
156
156
|
location: 'Office',
|
|
157
|
-
startDate: Date.now() + 24 * 60 * 60 * 1000,
|
|
157
|
+
startDate: Date.now() + 24 * 60 * 60 * 1000,
|
|
158
158
|
endDate: Date.now() + 25 * 60 * 60 * 1000,
|
|
159
159
|
});
|
|
160
160
|
```
|
|
@@ -245,6 +245,7 @@ See [CHANGELOG.md](CHANGELOG.md) for the latest updates and release history.
|
|
|
245
245
|
* [`deleteCalendar(...)`](#deletecalendar)
|
|
246
246
|
* [`modifyCalendar(...)`](#modifycalendar)
|
|
247
247
|
* [`createRemindersList(...)`](#createreminderslist)
|
|
248
|
+
* [`deleteRemindersList(...)`](#deletereminderslist)
|
|
248
249
|
* [`fetchAllRemindersSources()`](#fetchallreminderssources)
|
|
249
250
|
* [`openReminders()`](#openreminders)
|
|
250
251
|
* [`getDefaultRemindersList()`](#getdefaultreminderslist)
|
|
@@ -256,6 +257,7 @@ See [CHANGELOG.md](CHANGELOG.md) for the latest updates and release history.
|
|
|
256
257
|
* [`getReminderById(...)`](#getreminderbyid)
|
|
257
258
|
* [`getRemindersFromLists(...)`](#getremindersfromlists)
|
|
258
259
|
* [`deleteReminderWithPrompt(...)`](#deletereminderwithprompt)
|
|
260
|
+
* [`updateRemindersList(...)`](#updatereminderslist)
|
|
259
261
|
* [Interfaces](#interfaces)
|
|
260
262
|
* [Type Aliases](#type-aliases)
|
|
261
263
|
* [Enums](#enums)
|
|
@@ -762,6 +764,25 @@ Creates a new reminders list.
|
|
|
762
764
|
--------------------
|
|
763
765
|
|
|
764
766
|
|
|
767
|
+
### deleteRemindersList(...)
|
|
768
|
+
|
|
769
|
+
```typescript
|
|
770
|
+
deleteRemindersList(options: DeleteRemindersListOptions) => Promise<void>
|
|
771
|
+
```
|
|
772
|
+
|
|
773
|
+
Deletes a reminders list.
|
|
774
|
+
|
|
775
|
+
| Param | Type |
|
|
776
|
+
| ------------- | --------------------------------------------------------------------------------- |
|
|
777
|
+
| **`options`** | <code><a href="#deletereminderslistoptions">DeleteRemindersListOptions</a></code> |
|
|
778
|
+
|
|
779
|
+
**Since:** 8.2.0
|
|
780
|
+
|
|
781
|
+
**Platform:** iOS
|
|
782
|
+
|
|
783
|
+
--------------------
|
|
784
|
+
|
|
785
|
+
|
|
765
786
|
### fetchAllRemindersSources()
|
|
766
787
|
|
|
767
788
|
```typescript
|
|
@@ -971,6 +992,27 @@ Opens a dialog to delete a reminder.
|
|
|
971
992
|
--------------------
|
|
972
993
|
|
|
973
994
|
|
|
995
|
+
### updateRemindersList(...)
|
|
996
|
+
|
|
997
|
+
```typescript
|
|
998
|
+
updateRemindersList(options: UpdateRemindersListOptions) => Promise<UpdateRemindersListResult>
|
|
999
|
+
```
|
|
1000
|
+
|
|
1001
|
+
Update a reminders list with options.
|
|
1002
|
+
|
|
1003
|
+
| Param | Type |
|
|
1004
|
+
| ------------- | --------------------------------------------------------------------------------- |
|
|
1005
|
+
| **`options`** | <code><a href="#updatereminderslistoptions">UpdateRemindersListOptions</a></code> |
|
|
1006
|
+
|
|
1007
|
+
**Returns:** <code>Promise<<a href="#updatereminderslistresult">UpdateRemindersListResult</a>></code>
|
|
1008
|
+
|
|
1009
|
+
**Since:** 8.2.0
|
|
1010
|
+
|
|
1011
|
+
**Platform:** iOS
|
|
1012
|
+
|
|
1013
|
+
--------------------
|
|
1014
|
+
|
|
1015
|
+
|
|
974
1016
|
### Interfaces
|
|
975
1017
|
|
|
976
1018
|
|
|
@@ -1238,6 +1280,14 @@ Opens a dialog to delete a reminder.
|
|
|
1238
1280
|
| **`title`** | <code>string</code> | The title of the list. | | 8.1.0 | iOS |
|
|
1239
1281
|
|
|
1240
1282
|
|
|
1283
|
+
#### DeleteRemindersListOptions
|
|
1284
|
+
|
|
1285
|
+
| Prop | Type | Description | Default | Since | Platform |
|
|
1286
|
+
| ------------ | -------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------- | ----- | -------- |
|
|
1287
|
+
| **`commit`** | <code>boolean</code> | Whether to save the deletion to the event store immediately. Pass `false` to batch multiple changes and commit them together using `CapacitorCalendar.commit()`, which is more efficient than committing each save individually. | <code>true</code> | 8.2.0 | iOS |
|
|
1288
|
+
| **`id`** | <code>string</code> | Identifier of the reminders list to delete. | | 8.2.0 | iOS |
|
|
1289
|
+
|
|
1290
|
+
|
|
1241
1291
|
#### CreateReminderOptions
|
|
1242
1292
|
|
|
1243
1293
|
| Prop | Type | Description | Since |
|
|
@@ -1350,6 +1400,23 @@ Opens a dialog to delete a reminder.
|
|
|
1350
1400
|
| **`cancelButtonText`** | <code>string</code> | Text to show on the cancel button. | <code>'Cancel'</code> | 7.2.0 |
|
|
1351
1401
|
|
|
1352
1402
|
|
|
1403
|
+
#### UpdateRemindersListResult
|
|
1404
|
+
|
|
1405
|
+
| Prop | Type | Description | Since | Platform |
|
|
1406
|
+
| -------- | ------------------- | ----------------------------------------- | ----- | -------- |
|
|
1407
|
+
| **`id`** | <code>string</code> | Identifier of the updated reminders list. | 8.2.0 | iOS |
|
|
1408
|
+
|
|
1409
|
+
|
|
1410
|
+
#### UpdateRemindersListOptions
|
|
1411
|
+
|
|
1412
|
+
| Prop | Type | Description | Default | Since | Platform |
|
|
1413
|
+
| ------------ | -------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------- | ----- | -------- |
|
|
1414
|
+
| **`color`** | <code>'blue' \| 'brown' \| 'gray' \| 'green' \| 'indigo' \| 'orange' \| 'pink' \| 'purple' \| 'red' \| 'teal' \| 'yellow'</code> | The new color of the list. If omitted, the color is left unchanged. | | 8.1.0 | iOS |
|
|
1415
|
+
| **`commit`** | <code>boolean</code> | Whether to save the update to the event store immediately. Pass `false` to batch multiple changes and commit them together using `eventStore.commit()`, which is more efficient than committing each save individually. | <code>true</code> | 8.2.0 | iOS |
|
|
1416
|
+
| **`id`** | <code>string</code> | The identifier of the list to update. | | 8.2.0 | iOS |
|
|
1417
|
+
| **`title`** | <code>string</code> | The new title of the list. If omitted, the title is left unchanged. | | 8.2.0 | iOS |
|
|
1418
|
+
|
|
1419
|
+
|
|
1353
1420
|
### Type Aliases
|
|
1354
1421
|
|
|
1355
1422
|
|
|
@@ -85,6 +85,11 @@ class CapacitorCalendarPlugin : Plugin() {
|
|
|
85
85
|
call.unimplemented(PluginError.Unimplemented(::createRemindersList.name).message)
|
|
86
86
|
}
|
|
87
87
|
|
|
88
|
+
@PluginMethod
|
|
89
|
+
fun deleteRemindersList(call: PluginCall) {
|
|
90
|
+
call.unimplemented(PluginError.Unimplemented(::deleteRemindersList.name).message)
|
|
91
|
+
}
|
|
92
|
+
|
|
88
93
|
@PluginMethod
|
|
89
94
|
fun requestPermission(call: PluginCall) {
|
|
90
95
|
try {
|
|
@@ -445,4 +450,9 @@ class CapacitorCalendarPlugin : Plugin() {
|
|
|
445
450
|
fun deleteReminderWithPrompt(call: PluginCall) {
|
|
446
451
|
call.unimplemented(PluginError.Unimplemented(::deleteReminderWithPrompt.name).message)
|
|
447
452
|
}
|
|
453
|
+
|
|
454
|
+
@PluginMethod
|
|
455
|
+
fun updateRemindersList(call: PluginCall) {
|
|
456
|
+
call.unimplemented(PluginError.Unimplemented(::updateRemindersList.name).message)
|
|
457
|
+
}
|
|
448
458
|
}
|
package/dist/docs.json
CHANGED
|
@@ -708,6 +708,33 @@
|
|
|
708
708
|
],
|
|
709
709
|
"slug": "createreminderslist"
|
|
710
710
|
},
|
|
711
|
+
{
|
|
712
|
+
"name": "deleteRemindersList",
|
|
713
|
+
"signature": "(options: DeleteRemindersListOptions) => Promise<void>",
|
|
714
|
+
"parameters": [
|
|
715
|
+
{
|
|
716
|
+
"name": "options",
|
|
717
|
+
"docs": "",
|
|
718
|
+
"type": "DeleteRemindersListOptions"
|
|
719
|
+
}
|
|
720
|
+
],
|
|
721
|
+
"returns": "Promise<void>",
|
|
722
|
+
"tags": [
|
|
723
|
+
{
|
|
724
|
+
"name": "platform",
|
|
725
|
+
"text": "iOS"
|
|
726
|
+
},
|
|
727
|
+
{
|
|
728
|
+
"name": "since",
|
|
729
|
+
"text": "8.2.0"
|
|
730
|
+
}
|
|
731
|
+
],
|
|
732
|
+
"docs": "Deletes a reminders list.",
|
|
733
|
+
"complexTypes": [
|
|
734
|
+
"DeleteRemindersListOptions"
|
|
735
|
+
],
|
|
736
|
+
"slug": "deletereminderslist"
|
|
737
|
+
},
|
|
711
738
|
{
|
|
712
739
|
"name": "fetchAllRemindersSources",
|
|
713
740
|
"signature": "() => Promise<{ result: CalendarSource[]; }>",
|
|
@@ -989,6 +1016,34 @@
|
|
|
989
1016
|
"DeleteReminderWithPromptOptions"
|
|
990
1017
|
],
|
|
991
1018
|
"slug": "deletereminderwithprompt"
|
|
1019
|
+
},
|
|
1020
|
+
{
|
|
1021
|
+
"name": "updateRemindersList",
|
|
1022
|
+
"signature": "(options: UpdateRemindersListOptions) => Promise<UpdateRemindersListResult>",
|
|
1023
|
+
"parameters": [
|
|
1024
|
+
{
|
|
1025
|
+
"name": "options",
|
|
1026
|
+
"docs": "",
|
|
1027
|
+
"type": "UpdateRemindersListOptions"
|
|
1028
|
+
}
|
|
1029
|
+
],
|
|
1030
|
+
"returns": "Promise<UpdateRemindersListResult>",
|
|
1031
|
+
"tags": [
|
|
1032
|
+
{
|
|
1033
|
+
"name": "platform",
|
|
1034
|
+
"text": "iOS"
|
|
1035
|
+
},
|
|
1036
|
+
{
|
|
1037
|
+
"name": "since",
|
|
1038
|
+
"text": "8.2.0"
|
|
1039
|
+
}
|
|
1040
|
+
],
|
|
1041
|
+
"docs": "Update a reminders list with options.",
|
|
1042
|
+
"complexTypes": [
|
|
1043
|
+
"UpdateRemindersListResult",
|
|
1044
|
+
"UpdateRemindersListOptions"
|
|
1045
|
+
],
|
|
1046
|
+
"slug": "updatereminderslist"
|
|
992
1047
|
}
|
|
993
1048
|
],
|
|
994
1049
|
"properties": []
|
|
@@ -3522,10 +3577,6 @@
|
|
|
3522
3577
|
"slug": "createreminderslistresult",
|
|
3523
3578
|
"docs": "",
|
|
3524
3579
|
"tags": [
|
|
3525
|
-
{
|
|
3526
|
-
"text": "iOS",
|
|
3527
|
-
"name": "platform"
|
|
3528
|
-
},
|
|
3529
3580
|
{
|
|
3530
3581
|
"text": "8.1.0",
|
|
3531
3582
|
"name": "since"
|
|
@@ -3556,10 +3607,6 @@
|
|
|
3556
3607
|
"slug": "createreminderslistoptions",
|
|
3557
3608
|
"docs": "",
|
|
3558
3609
|
"tags": [
|
|
3559
|
-
{
|
|
3560
|
-
"text": "iOS",
|
|
3561
|
-
"name": "platform"
|
|
3562
|
-
},
|
|
3563
3610
|
{
|
|
3564
3611
|
"text": "8.1.0",
|
|
3565
3612
|
"name": "since"
|
|
@@ -3657,6 +3704,64 @@
|
|
|
3657
3704
|
}
|
|
3658
3705
|
]
|
|
3659
3706
|
},
|
|
3707
|
+
{
|
|
3708
|
+
"name": "DeleteRemindersListOptions",
|
|
3709
|
+
"slug": "deletereminderslistoptions",
|
|
3710
|
+
"docs": "",
|
|
3711
|
+
"tags": [
|
|
3712
|
+
{
|
|
3713
|
+
"text": "8.2.0",
|
|
3714
|
+
"name": "since"
|
|
3715
|
+
}
|
|
3716
|
+
],
|
|
3717
|
+
"methods": [],
|
|
3718
|
+
"properties": [
|
|
3719
|
+
{
|
|
3720
|
+
"name": "commit",
|
|
3721
|
+
"tags": [
|
|
3722
|
+
{
|
|
3723
|
+
"text": "false",
|
|
3724
|
+
"name": "example"
|
|
3725
|
+
},
|
|
3726
|
+
{
|
|
3727
|
+
"text": "true",
|
|
3728
|
+
"name": "default"
|
|
3729
|
+
},
|
|
3730
|
+
{
|
|
3731
|
+
"text": "iOS",
|
|
3732
|
+
"name": "platform"
|
|
3733
|
+
},
|
|
3734
|
+
{
|
|
3735
|
+
"text": "8.2.0",
|
|
3736
|
+
"name": "since"
|
|
3737
|
+
}
|
|
3738
|
+
],
|
|
3739
|
+
"docs": "Whether to save the deletion to the event store immediately.\nPass `false` to batch multiple changes and commit them together using `CapacitorCalendar.commit()`, which is more efficient than committing each save individually.",
|
|
3740
|
+
"complexTypes": [],
|
|
3741
|
+
"type": "boolean | undefined"
|
|
3742
|
+
},
|
|
3743
|
+
{
|
|
3744
|
+
"name": "id",
|
|
3745
|
+
"tags": [
|
|
3746
|
+
{
|
|
3747
|
+
"text": "'A1234567-ABCD-EFGH-IJKL-MNOPQRSTUVWX'",
|
|
3748
|
+
"name": "example"
|
|
3749
|
+
},
|
|
3750
|
+
{
|
|
3751
|
+
"text": "iOS",
|
|
3752
|
+
"name": "platform"
|
|
3753
|
+
},
|
|
3754
|
+
{
|
|
3755
|
+
"text": "8.2.0",
|
|
3756
|
+
"name": "since"
|
|
3757
|
+
}
|
|
3758
|
+
],
|
|
3759
|
+
"docs": "Identifier of the reminders list to delete.",
|
|
3760
|
+
"complexTypes": [],
|
|
3761
|
+
"type": "string"
|
|
3762
|
+
}
|
|
3763
|
+
]
|
|
3764
|
+
},
|
|
3660
3765
|
{
|
|
3661
3766
|
"name": "CreateReminderOptions",
|
|
3662
3767
|
"slug": "createreminderoptions",
|
|
@@ -4439,6 +4544,130 @@
|
|
|
4439
4544
|
"type": "string | undefined"
|
|
4440
4545
|
}
|
|
4441
4546
|
]
|
|
4547
|
+
},
|
|
4548
|
+
{
|
|
4549
|
+
"name": "UpdateRemindersListResult",
|
|
4550
|
+
"slug": "updatereminderslistresult",
|
|
4551
|
+
"docs": "",
|
|
4552
|
+
"tags": [
|
|
4553
|
+
{
|
|
4554
|
+
"text": "8.2.0",
|
|
4555
|
+
"name": "since"
|
|
4556
|
+
}
|
|
4557
|
+
],
|
|
4558
|
+
"methods": [],
|
|
4559
|
+
"properties": [
|
|
4560
|
+
{
|
|
4561
|
+
"name": "id",
|
|
4562
|
+
"tags": [
|
|
4563
|
+
{
|
|
4564
|
+
"text": "iOS",
|
|
4565
|
+
"name": "platform"
|
|
4566
|
+
},
|
|
4567
|
+
{
|
|
4568
|
+
"text": "8.2.0",
|
|
4569
|
+
"name": "since"
|
|
4570
|
+
}
|
|
4571
|
+
],
|
|
4572
|
+
"docs": "Identifier of the updated reminders list.",
|
|
4573
|
+
"complexTypes": [],
|
|
4574
|
+
"type": "string"
|
|
4575
|
+
}
|
|
4576
|
+
]
|
|
4577
|
+
},
|
|
4578
|
+
{
|
|
4579
|
+
"name": "UpdateRemindersListOptions",
|
|
4580
|
+
"slug": "updatereminderslistoptions",
|
|
4581
|
+
"docs": "",
|
|
4582
|
+
"tags": [
|
|
4583
|
+
{
|
|
4584
|
+
"text": "8.2.0",
|
|
4585
|
+
"name": "since"
|
|
4586
|
+
}
|
|
4587
|
+
],
|
|
4588
|
+
"methods": [],
|
|
4589
|
+
"properties": [
|
|
4590
|
+
{
|
|
4591
|
+
"name": "color",
|
|
4592
|
+
"tags": [
|
|
4593
|
+
{
|
|
4594
|
+
"text": "'indigo'",
|
|
4595
|
+
"name": "example"
|
|
4596
|
+
},
|
|
4597
|
+
{
|
|
4598
|
+
"text": "iOS",
|
|
4599
|
+
"name": "platform"
|
|
4600
|
+
},
|
|
4601
|
+
{
|
|
4602
|
+
"text": "8.1.0",
|
|
4603
|
+
"name": "since"
|
|
4604
|
+
}
|
|
4605
|
+
],
|
|
4606
|
+
"docs": "The new color of the list.\nIf omitted, the color is left unchanged.",
|
|
4607
|
+
"complexTypes": [],
|
|
4608
|
+
"type": "'blue' | 'brown' | 'gray' | 'green' | 'indigo' | 'orange' | 'pink' | 'purple' | 'red' | 'teal' | 'yellow' | undefined"
|
|
4609
|
+
},
|
|
4610
|
+
{
|
|
4611
|
+
"name": "commit",
|
|
4612
|
+
"tags": [
|
|
4613
|
+
{
|
|
4614
|
+
"text": "true",
|
|
4615
|
+
"name": "default"
|
|
4616
|
+
},
|
|
4617
|
+
{
|
|
4618
|
+
"text": "iOS",
|
|
4619
|
+
"name": "platform"
|
|
4620
|
+
},
|
|
4621
|
+
{
|
|
4622
|
+
"text": "8.2.0",
|
|
4623
|
+
"name": "since"
|
|
4624
|
+
}
|
|
4625
|
+
],
|
|
4626
|
+
"docs": "Whether to save the update to the event store immediately.\nPass `false` to batch multiple changes and commit them together using `eventStore.commit()`, which is more efficient than committing each save individually.",
|
|
4627
|
+
"complexTypes": [],
|
|
4628
|
+
"type": "boolean | undefined"
|
|
4629
|
+
},
|
|
4630
|
+
{
|
|
4631
|
+
"name": "id",
|
|
4632
|
+
"tags": [
|
|
4633
|
+
{
|
|
4634
|
+
"text": "'A1234567-ABCD-EFGH-IJKL-MNOPQRSTUVWX'",
|
|
4635
|
+
"name": "example"
|
|
4636
|
+
},
|
|
4637
|
+
{
|
|
4638
|
+
"text": "iOS",
|
|
4639
|
+
"name": "platform"
|
|
4640
|
+
},
|
|
4641
|
+
{
|
|
4642
|
+
"text": "8.2.0",
|
|
4643
|
+
"name": "since"
|
|
4644
|
+
}
|
|
4645
|
+
],
|
|
4646
|
+
"docs": "The identifier of the list to update.",
|
|
4647
|
+
"complexTypes": [],
|
|
4648
|
+
"type": "string"
|
|
4649
|
+
},
|
|
4650
|
+
{
|
|
4651
|
+
"name": "title",
|
|
4652
|
+
"tags": [
|
|
4653
|
+
{
|
|
4654
|
+
"text": "'Groceries'",
|
|
4655
|
+
"name": "example"
|
|
4656
|
+
},
|
|
4657
|
+
{
|
|
4658
|
+
"text": "iOS",
|
|
4659
|
+
"name": "platform"
|
|
4660
|
+
},
|
|
4661
|
+
{
|
|
4662
|
+
"text": "8.2.0",
|
|
4663
|
+
"name": "since"
|
|
4664
|
+
}
|
|
4665
|
+
],
|
|
4666
|
+
"docs": "The new title of the list.\nIf omitted, the title is left unchanged.",
|
|
4667
|
+
"complexTypes": [],
|
|
4668
|
+
"type": "string | undefined"
|
|
4669
|
+
}
|
|
4670
|
+
]
|
|
4442
4671
|
}
|
|
4443
4672
|
],
|
|
4444
4673
|
"enums": [
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -26,6 +26,7 @@ import type { DeleteEventsByIdOptions } from './schemas/interfaces/delete-events
|
|
|
26
26
|
import type { DeleteReminderOptions } from './schemas/interfaces/delete-reminder-options';
|
|
27
27
|
import type { DeleteReminderWithPromptOptions } from './schemas/interfaces/delete-reminder-with-prompt-options';
|
|
28
28
|
import type { DeleteRemindersByIdOptions } from './schemas/interfaces/delete-reminders-by-id-options';
|
|
29
|
+
import type { DeleteRemindersListOptions } from './schemas/interfaces/delete-reminders-list-options';
|
|
29
30
|
import type { EventGuest } from './schemas/interfaces/event-guest';
|
|
30
31
|
import type { GetReminderByIdOptions } from './schemas/interfaces/get-reminder-by-id-options';
|
|
31
32
|
import type { GetRemindersFromListsOptions } from './schemas/interfaces/get-reminders-from-lists-options';
|
|
@@ -40,6 +41,8 @@ import type { Reminder } from './schemas/interfaces/reminder';
|
|
|
40
41
|
import type { ReminderRecurrenceRule } from './schemas/interfaces/reminder-recurrence-rule';
|
|
41
42
|
import type { RemindersList } from './schemas/interfaces/reminders-list';
|
|
42
43
|
import type { SelectCalendarsWithPromptOptions } from './schemas/interfaces/select-calendars-with-prompt-options';
|
|
44
|
+
import type { UpdateRemindersListOptions } from './schemas/interfaces/update-reminders-list-options';
|
|
45
|
+
import type { UpdateRemindersListResult } from './schemas/interfaces/update-reminders-list-result';
|
|
43
46
|
import type { EventEditAction } from './schemas/types/event-edit-action';
|
|
44
47
|
import type { RecurrenceFrequency } from './schemas/types/recurrence-frequency';
|
|
45
48
|
import type { CheckAllPermissionsResult, RequestAllPermissionsResult } from './sub-definitions/calendar-access';
|
|
@@ -47,5 +50,5 @@ import type { DeleteEventsByIdResult } from './sub-definitions/event-operations'
|
|
|
47
50
|
import type { DeleteRemindersByIdResult } from './sub-definitions/reminders-operations';
|
|
48
51
|
declare const CapacitorCalendar: CapacitorCalendarPlugin;
|
|
49
52
|
export * from './definitions';
|
|
50
|
-
export type { CheckAllPermissionsResult, CreateRemindersListOptions, CreateRemindersListResult, RequestAllPermissionsResult, CreateEventWithPromptOptions, ModifyEventWithPromptOptions, EventEditAction, CreateEventOptions, EventGuest, ModifyEventOptions, SelectCalendarsWithPromptOptions, Calendar, RemindersList, CalendarSource, OpenCalendarOptions, CreateCalendarOptions, DeleteCalendarOptions, ReminderRecurrenceRule, RecurrenceRule, CreateReminderOptions, DeleteRemindersByIdOptions, DeleteRemindersByIdResult, DeleteReminderOptions, ModifyReminderOptions, GetReminderByIdOptions, Reminder, GetRemindersFromListsOptions, DeleteEventsByIdOptions, DeleteEventsByIdResult, DeleteEventOptions, DeleteEventWithPromptOptions, ListEventsInRangeOptions, CalendarEvent, ModifyCalendarOptions, DeleteReminderWithPromptOptions, };
|
|
53
|
+
export type { CheckAllPermissionsResult, CreateRemindersListOptions, CreateRemindersListResult, DeleteRemindersListOptions, RequestAllPermissionsResult, CreateEventWithPromptOptions, ModifyEventWithPromptOptions, EventEditAction, CreateEventOptions, EventGuest, ModifyEventOptions, SelectCalendarsWithPromptOptions, Calendar, RemindersList, CalendarSource, OpenCalendarOptions, CreateCalendarOptions, DeleteCalendarOptions, ReminderRecurrenceRule, RecurrenceRule, CreateReminderOptions, DeleteRemindersByIdOptions, DeleteRemindersByIdResult, DeleteReminderOptions, ModifyReminderOptions, GetReminderByIdOptions, Reminder, GetRemindersFromListsOptions, DeleteEventsByIdOptions, DeleteEventsByIdResult, DeleteEventOptions, DeleteEventWithPromptOptions, ListEventsInRangeOptions, CalendarEvent, ModifyCalendarOptions, DeleteReminderWithPromptOptions, UpdateRemindersListOptions, UpdateRemindersListResult, };
|
|
51
54
|
export { CalendarPermissionScope, EventAvailability, EventSpan, CalendarChooserDisplayStyle, CalendarType, CalendarSourceType, ReminderRecurrenceFrequency, RecurrenceFrequency, EventStatus, AttendeeRole, AttendeeType, AttendeeStatus, CapacitorCalendar, };
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAGjD,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACjE,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,2BAA2B,EAAE,MAAM,gDAAgD,CAAC;AAC7F,OAAO,EAAE,uBAAuB,EAAE,MAAM,2CAA2C,CAAC;AACpF,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAC1E,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AACvE,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,EAAE,2BAA2B,EAAE,MAAM,+CAA+C,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAGjD,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACjE,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,2BAA2B,EAAE,MAAM,gDAAgD,CAAC;AAC7F,OAAO,EAAE,uBAAuB,EAAE,MAAM,2CAA2C,CAAC;AACpF,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAC1E,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AACvE,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,EAAE,2BAA2B,EAAE,MAAM,+CAA+C,CAAC;AAwC5F,MAAM,iBAAiB,GAAG,cAAc,CAA0B,mBAAmB,EAAE;IACrF,GAAG,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC,oBAAoB,EAAE,CAAC;CACrE,CAAC,CAAC;AAEH,cAAc,eAAe,CAAC;AAyC9B,OAAO,EACL,uBAAuB,EACvB,iBAAiB,EACjB,SAAS,EACT,2BAA2B,EAC3B,YAAY,EACZ,kBAAkB,EAClB,2BAA2B,EAE3B,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,cAAc,EACd,iBAAiB,GAClB,CAAC","sourcesContent":["import { registerPlugin } from '@capacitor/core';\n\nimport type { CapacitorCalendarPlugin } from './definitions';\nimport { AttendeeRole } from './schemas/enums/attendee-role';\nimport { AttendeeStatus } from './schemas/enums/attendee-status';\nimport { AttendeeType } from './schemas/enums/attendee-type';\nimport { CalendarChooserDisplayStyle } from './schemas/enums/calendar-chooser-display-style';\nimport { CalendarPermissionScope } from './schemas/enums/calendar-permission-scope';\nimport { CalendarSourceType } from './schemas/enums/calendar-source-type';\nimport { CalendarType } from './schemas/enums/calendar-type';\nimport { EventAvailability } from './schemas/enums/event-availability';\nimport { EventSpan } from './schemas/enums/event-span';\nimport { EventStatus } from './schemas/enums/event-status';\nimport { ReminderRecurrenceFrequency } from './schemas/enums/reminder-recurrence-frequency';\nimport type { Calendar } from './schemas/interfaces/calendar';\nimport type { CalendarEvent } from './schemas/interfaces/calendar-event';\nimport type { CalendarSource } from './schemas/interfaces/calendar-source';\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 { CreateRemindersListOptions } from './schemas/interfaces/create-reminders-list-options';\nimport type { CreateRemindersListResult } from './schemas/interfaces/create-reminders-list-result';\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 { DeleteReminderOptions } from './schemas/interfaces/delete-reminder-options';\nimport type { DeleteReminderWithPromptOptions } from './schemas/interfaces/delete-reminder-with-prompt-options';\nimport type { DeleteRemindersByIdOptions } from './schemas/interfaces/delete-reminders-by-id-options';\nimport type { DeleteRemindersListOptions } from './schemas/interfaces/delete-reminders-list-options';\nimport type { EventGuest } from './schemas/interfaces/event-guest';\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 { ModifyCalendarOptions } from './schemas/interfaces/modify-calendar-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 { RecurrenceRule } from './schemas/interfaces/recurrence-rule';\nimport type { Reminder } from './schemas/interfaces/reminder';\nimport type { ReminderRecurrenceRule } from './schemas/interfaces/reminder-recurrence-rule';\nimport type { RemindersList } from './schemas/interfaces/reminders-list';\nimport type { SelectCalendarsWithPromptOptions } from './schemas/interfaces/select-calendars-with-prompt-options';\nimport type { UpdateRemindersListOptions } from './schemas/interfaces/update-reminders-list-options';\nimport type { UpdateRemindersListResult } from './schemas/interfaces/update-reminders-list-result';\nimport type { EventEditAction } from './schemas/types/event-edit-action';\nimport type { RecurrenceFrequency } from './schemas/types/recurrence-frequency';\nimport type { CheckAllPermissionsResult, RequestAllPermissionsResult } from './sub-definitions/calendar-access';\nimport type { DeleteEventsByIdResult } from './sub-definitions/event-operations';\nimport type { DeleteRemindersByIdResult } from './sub-definitions/reminders-operations';\n\nconst CapacitorCalendar = registerPlugin<CapacitorCalendarPlugin>('CapacitorCalendar', {\n web: () => import('./web').then((m) => new m.CapacitorCalendarWeb()),\n});\n\nexport * from './definitions';\nexport type {\n CheckAllPermissionsResult,\n CreateRemindersListOptions,\n CreateRemindersListResult,\n DeleteRemindersListOptions,\n RequestAllPermissionsResult,\n CreateEventWithPromptOptions,\n ModifyEventWithPromptOptions,\n EventEditAction,\n CreateEventOptions,\n EventGuest,\n ModifyEventOptions,\n SelectCalendarsWithPromptOptions,\n Calendar,\n RemindersList,\n CalendarSource,\n OpenCalendarOptions,\n CreateCalendarOptions,\n DeleteCalendarOptions,\n ReminderRecurrenceRule,\n RecurrenceRule,\n CreateReminderOptions,\n DeleteRemindersByIdOptions,\n DeleteRemindersByIdResult,\n DeleteReminderOptions,\n ModifyReminderOptions,\n GetReminderByIdOptions,\n Reminder,\n GetRemindersFromListsOptions,\n DeleteEventsByIdOptions,\n DeleteEventsByIdResult,\n DeleteEventOptions,\n DeleteEventWithPromptOptions,\n ListEventsInRangeOptions,\n CalendarEvent,\n ModifyCalendarOptions,\n DeleteReminderWithPromptOptions,\n UpdateRemindersListOptions,\n UpdateRemindersListResult,\n};\nexport {\n CalendarPermissionScope,\n EventAvailability,\n EventSpan,\n CalendarChooserDisplayStyle,\n CalendarType,\n CalendarSourceType,\n ReminderRecurrenceFrequency,\n RecurrenceFrequency,\n EventStatus,\n AttendeeRole,\n AttendeeType,\n AttendeeStatus,\n CapacitorCalendar,\n};\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-reminders-list-options.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/create-reminders-list-options.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * @
|
|
1
|
+
{"version":3,"file":"create-reminders-list-options.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/create-reminders-list-options.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * @since 8.1.0\n */\nexport interface CreateRemindersListOptions {\n /**\n * The color of the list.\n *\n * @example 'indigo'\n * @default 'blue'\n * @platform iOS\n * @since 8.1.0\n */\n color?: 'blue' | 'brown' | 'gray' | 'green' | 'indigo' | 'orange' | 'pink' | 'purple' | 'red' | 'teal' | 'yellow';\n /**\n * Whether to save the list to the event store immediately.\n * Pass `false` to batch multiple changes and commit them together using `CapacitorCalendar.commit()`, which is more efficient than committing each save individually.\n *\n * @example false\n * @default true\n * @platform iOS\n * @since 8.1.0\n */\n commit?: boolean;\n /**\n * The EKSource identifier (account) where the list should be created.\n * If left undefined, iCloud will be used if available, otherwise falls back to local.\n *\n * @example 'A1234567-ABCD-EFGH-IJKL-MNOPQRSTUVWX'\n * @platform iOS\n * @since 8.1.0\n */\n sourceId?: string;\n /**\n * The title of the list.\n *\n * @example 'Groceries'\n * @platform iOS\n * @since 8.1.0\n */\n title: string;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-reminders-list-result.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/create-reminders-list-result.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * @
|
|
1
|
+
{"version":3,"file":"create-reminders-list-result.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/create-reminders-list-result.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * @since 8.1.0\n */\nexport interface CreateRemindersListResult {\n /**\n * Identifier of the newly created reminders list.\n *\n * @platform iOS\n * @since 8.1.0\n */\n id: string;\n}\n"]}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @since 8.2.0
|
|
3
|
+
*/
|
|
4
|
+
export interface DeleteRemindersListOptions {
|
|
5
|
+
/**
|
|
6
|
+
* Whether to save the deletion to the event store immediately.
|
|
7
|
+
* Pass `false` to batch multiple changes and commit them together using `CapacitorCalendar.commit()`, which is more efficient than committing each save individually.
|
|
8
|
+
*
|
|
9
|
+
* @example false
|
|
10
|
+
* @default true
|
|
11
|
+
* @platform iOS
|
|
12
|
+
* @since 8.2.0
|
|
13
|
+
*/
|
|
14
|
+
commit?: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Identifier of the reminders list to delete.
|
|
17
|
+
*
|
|
18
|
+
* @example 'A1234567-ABCD-EFGH-IJKL-MNOPQRSTUVWX'
|
|
19
|
+
* @platform iOS
|
|
20
|
+
* @since 8.2.0
|
|
21
|
+
*/
|
|
22
|
+
id: string;
|
|
23
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-reminders-list-options.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/delete-reminders-list-options.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * @since 8.2.0\n */\nexport interface DeleteRemindersListOptions {\n /**\n * Whether to save the deletion to the event store immediately.\n * Pass `false` to batch multiple changes and commit them together using `CapacitorCalendar.commit()`, which is more efficient than committing each save individually.\n *\n * @example false\n * @default true\n * @platform iOS\n * @since 8.2.0\n */\n commit?: boolean;\n /**\n * Identifier of the reminders list to delete.\n *\n * @example 'A1234567-ABCD-EFGH-IJKL-MNOPQRSTUVWX'\n * @platform iOS\n * @since 8.2.0\n */\n id: string;\n}\n"]}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @since 8.2.0
|
|
3
|
+
*/
|
|
4
|
+
export interface UpdateRemindersListOptions {
|
|
5
|
+
/**
|
|
6
|
+
* The new color of the list.
|
|
7
|
+
* If omitted, the color is left unchanged.
|
|
8
|
+
*
|
|
9
|
+
* @example 'indigo'
|
|
10
|
+
* @platform iOS
|
|
11
|
+
* @since 8.1.0
|
|
12
|
+
*/
|
|
13
|
+
color?: 'blue' | 'brown' | 'gray' | 'green' | 'indigo' | 'orange' | 'pink' | 'purple' | 'red' | 'teal' | 'yellow';
|
|
14
|
+
/**
|
|
15
|
+
* Whether to save the update to the event store immediately.
|
|
16
|
+
* Pass `false` to batch multiple changes and commit them together using `eventStore.commit()`, which is more efficient than committing each save individually.
|
|
17
|
+
*
|
|
18
|
+
* @default true
|
|
19
|
+
* @platform iOS
|
|
20
|
+
* @since 8.2.0
|
|
21
|
+
*/
|
|
22
|
+
commit?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* The identifier of the list to update.
|
|
25
|
+
*
|
|
26
|
+
* @example 'A1234567-ABCD-EFGH-IJKL-MNOPQRSTUVWX'
|
|
27
|
+
* @platform iOS
|
|
28
|
+
* @since 8.2.0
|
|
29
|
+
*/
|
|
30
|
+
id: string;
|
|
31
|
+
/**
|
|
32
|
+
* The new title of the list.
|
|
33
|
+
* If omitted, the title is left unchanged.
|
|
34
|
+
*
|
|
35
|
+
* @example 'Groceries'
|
|
36
|
+
* @platform iOS
|
|
37
|
+
* @since 8.2.0
|
|
38
|
+
*/
|
|
39
|
+
title?: string;
|
|
40
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-reminders-list-options.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/update-reminders-list-options.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * @since 8.2.0\n */\nexport interface UpdateRemindersListOptions {\n /**\n * The new color of the list.\n * If omitted, the color is left unchanged.\n *\n * @example 'indigo'\n * @platform iOS\n * @since 8.1.0\n */\n color?: 'blue' | 'brown' | 'gray' | 'green' | 'indigo' | 'orange' | 'pink' | 'purple' | 'red' | 'teal' | 'yellow';\n /**\n * Whether to save the update to the event store immediately.\n * Pass `false` to batch multiple changes and commit them together using `eventStore.commit()`, which is more efficient than committing each save individually.\n *\n * @default true\n * @platform iOS\n * @since 8.2.0\n */\n commit?: boolean;\n /**\n * The identifier of the list to update.\n *\n * @example 'A1234567-ABCD-EFGH-IJKL-MNOPQRSTUVWX'\n * @platform iOS\n * @since 8.2.0\n */\n id: string;\n /**\n * The new title of the list.\n * If omitted, the title is left unchanged.\n *\n * @example 'Groceries'\n * @platform iOS\n * @since 8.2.0\n */\n title?: string;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-reminders-list-result.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/update-reminders-list-result.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * @since 8.2.0\n */\nexport interface UpdateRemindersListResult {\n /**\n * Identifier of the updated reminders list.\n *\n * @platform iOS\n * @since 8.2.0\n */\n id: string;\n}\n"]}
|