@ebarooni/capacitor-calendar 8.4.0 → 8.5.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 +46 -26
- package/dist/docs.json +123 -19
- package/dist/esm/index.d.ts +5 -2
- package/dist/esm/index.js +2 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/schemas/interfaces/create-event-options.d.ts +22 -13
- package/dist/esm/schemas/interfaces/create-event-options.js.map +1 -1
- package/dist/esm/schemas/interfaces/create-event-result.d.ts +23 -0
- package/dist/esm/schemas/interfaces/create-event-result.js +2 -0
- package/dist/esm/schemas/interfaces/create-event-result.js.map +1 -0
- package/dist/esm/schemas/interfaces/create-event-with-prompt-result.d.ts +14 -0
- package/dist/esm/schemas/interfaces/create-event-with-prompt-result.js +2 -0
- package/dist/esm/schemas/interfaces/create-event-with-prompt-result.js.map +1 -0
- package/dist/esm/sub-definitions/event-operations.d.ts +20 -8
- package/dist/esm/sub-definitions/event-operations.js.map +1 -1
- package/dist/esm/web/download-ics-file.d.ts +18 -0
- package/dist/esm/web/download-ics-file.js +33 -0
- package/dist/esm/web/download-ics-file.js.map +1 -0
- package/dist/esm/web/ics.d.ts +21 -0
- package/dist/esm/web/ics.js +252 -0
- package/dist/esm/web/ics.js.map +1 -0
- package/dist/esm/web.d.ts +4 -6
- package/dist/esm/web.js +13 -2
- package/dist/esm/web.js.map +1 -1
- package/dist/plugin.cjs.js +297 -2
- package/dist/plugin.cjs.js.map +1 -1
- package/dist/plugin.js +297 -2
- package/dist/plugin.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -37,7 +37,7 @@ Full-featured Capacitor plugin for native calendar and reminders access. Manage
|
|
|
37
37
|
|
|
38
38
|
- **iOS** — Full support (including Reminders and advanced features)
|
|
39
39
|
- **Android** — Strong support for all core calendar features
|
|
40
|
-
- **Web** —
|
|
40
|
+
- **Web** — Partial support (create event)
|
|
41
41
|
|
|
42
42
|
## Why this plugin?
|
|
43
43
|
|
|
@@ -51,7 +51,7 @@ Full-featured Capacitor plugin for native calendar and reminders access. Manage
|
|
|
51
51
|
`@ebarooni/capacitor-calendar` ships an official [MCP](https://modelcontextprotocol.io) server so AI coding assistants can work with the plugin accurately.
|
|
52
52
|
|
|
53
53
|
```bash
|
|
54
|
-
docker run --rm -d --name capacitor-calendar-mcp -p 8080:8080 ghcr.io/ebarooni/capacitor-calendar-mcp:1.
|
|
54
|
+
docker run --rm -d --name capacitor-calendar-mcp -p 8080:8080 ghcr.io/ebarooni/capacitor-calendar-mcp:1.1.0
|
|
55
55
|
```
|
|
56
56
|
|
|
57
57
|
See [`mcp/README.md`](mcp/README.md) for client configuration and full details.
|
|
@@ -449,18 +449,18 @@ A grant covers both `readReminders` and `writeReminders`.
|
|
|
449
449
|
### createEventWithPrompt(...)
|
|
450
450
|
|
|
451
451
|
```typescript
|
|
452
|
-
createEventWithPrompt(options?: CreateEventWithPromptOptions | undefined) => Promise<
|
|
452
|
+
createEventWithPrompt(options?: CreateEventWithPromptOptions | undefined) => Promise<CreateEventWithPromptResult>
|
|
453
453
|
```
|
|
454
454
|
|
|
455
455
|
Opens the system calendar interface to create a new event.
|
|
456
|
-
On Android always returns `null`.
|
|
456
|
+
On Android always returns `null` for `id`.
|
|
457
457
|
Fetch the events to find the ID of the newly created event.
|
|
458
458
|
|
|
459
459
|
| Param | Type |
|
|
460
460
|
| ------------- | ------------------------------------------------------------------------------------- |
|
|
461
461
|
| **`options`** | <code><a href="#createeventwithpromptoptions">CreateEventWithPromptOptions</a></code> |
|
|
462
462
|
|
|
463
|
-
**Returns:** <code>Promise<
|
|
463
|
+
**Returns:** <code>Promise<<a href="#createeventwithpromptresult">CreateEventWithPromptResult</a>></code>
|
|
464
464
|
|
|
465
465
|
**Since:** 0.1.0
|
|
466
466
|
|
|
@@ -494,20 +494,24 @@ On Android always returns `null`.
|
|
|
494
494
|
### createEvent(...)
|
|
495
495
|
|
|
496
496
|
```typescript
|
|
497
|
-
createEvent(options: CreateEventOptions) => Promise<
|
|
497
|
+
createEvent(options: CreateEventOptions) => Promise<CreateEventResult>
|
|
498
498
|
```
|
|
499
499
|
|
|
500
500
|
Creates an event in the calendar.
|
|
501
|
+
On Android and iOS, inserts into the system calendar and returns its `id`.
|
|
502
|
+
On Web, there is no system calendar store: builds an `.ics` `File` as `ics`.
|
|
503
|
+
The app must download or open that file (for example with `downloadIcsFile(...)`);
|
|
504
|
+
this method does not trigger a download.
|
|
501
505
|
|
|
502
506
|
| Param | Type |
|
|
503
507
|
| ------------- | ----------------------------------------------------------------- |
|
|
504
508
|
| **`options`** | <code><a href="#createeventoptions">CreateEventOptions</a></code> |
|
|
505
509
|
|
|
506
|
-
**Returns:** <code>Promise<
|
|
510
|
+
**Returns:** <code>Promise<<a href="#createeventresult">CreateEventResult</a>></code>
|
|
507
511
|
|
|
508
512
|
**Since:** 0.4.0
|
|
509
513
|
|
|
510
|
-
**Platform:** iOS,
|
|
514
|
+
**Platform:** Android, iOS, Web
|
|
511
515
|
|
|
512
516
|
--------------------
|
|
513
517
|
|
|
@@ -1102,6 +1106,13 @@ Options for {@link CalendarAccess#requestPermission}.
|
|
|
1102
1106
|
| **`scope`** | <code><a href="#calendarpermissionscope">CalendarPermissionScope</a></code> | The permission scope to request. | 8.3.1 | Android, iOS |
|
|
1103
1107
|
|
|
1104
1108
|
|
|
1109
|
+
#### CreateEventWithPromptResult
|
|
1110
|
+
|
|
1111
|
+
| Prop | Type | Description | Since | Platform |
|
|
1112
|
+
| -------- | --------------------------- | -------------------------------------------------------------------------------------------------- | ----- | ------------ |
|
|
1113
|
+
| **`id`** | <code>string \| null</code> | The identifier of the created event. Always `null` on Android. Present on iOS when the user saves. | 0.1.0 | Android, iOS |
|
|
1114
|
+
|
|
1115
|
+
|
|
1105
1116
|
#### CreateEventWithPromptOptions
|
|
1106
1117
|
|
|
1107
1118
|
| Prop | Type | Description | Since | Platform |
|
|
@@ -1154,26 +1165,35 @@ Options for {@link CalendarAccess#requestPermission}.
|
|
|
1154
1165
|
| **`id`** | <code>string</code> | The ID of the event to be modified. | 7.1.0 | Android, iOS |
|
|
1155
1166
|
|
|
1156
1167
|
|
|
1168
|
+
#### CreateEventResult
|
|
1169
|
+
|
|
1170
|
+
| Prop | Type | Description | Since | Platform |
|
|
1171
|
+
| --------- | --------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----- | ------------ |
|
|
1172
|
+
| **`ics`** | <code>File</code> | An `.ics` file (`text/calendar`) with one `VEVENT`. Present only on Web. The plugin does not write to a calendar store or start a download; use `downloadIcsFile(...)` or pass the `File` to another API. | 8.5.0 | Web |
|
|
1173
|
+
| **`id`** | <code>string \| null</code> | The identifier of the created event. Always `null` on Web. Present on Android and iOS after a successful create. | 0.4.0 | Android, iOS |
|
|
1174
|
+
|
|
1175
|
+
|
|
1157
1176
|
#### CreateEventOptions
|
|
1158
1177
|
|
|
1159
|
-
| Prop | Type | Description
|
|
1160
|
-
| ------------------ | ------------------------------------------------------------------- |
|
|
1161
|
-
| **`alerts`** | <code>number[]</code> | Alert times in minutes relative to the event start. Use negative numbers for alerts before the start, and positive numbers for alerts after the start.
|
|
1162
|
-
| **`attendees`** | <code>EventGuest[]</code> | The event guests.
|
|
1163
|
-
| **`availability`** | <code><a href="#eventavailability">EventAvailability</a></code> |
|
|
1164
|
-
| **`calendarId`** | <code>string</code> |
|
|
1165
|
-
| **`color`** | <code>string</code> |
|
|
1166
|
-
| **`commit`** | <code>boolean</code> | Whether to save immediately (`true`) or batch changes for later (`false`).
|
|
1167
|
-
| **`description`** | <code>string</code> |
|
|
1168
|
-
| **`duration`** | <code>string</code> | Duration of the event in RFC2445 format.
|
|
1169
|
-
| **`endDate`** | <code>number</code> |
|
|
1170
|
-
| **`
|
|
1171
|
-
| **`
|
|
1172
|
-
| **`
|
|
1173
|
-
| **`
|
|
1174
|
-
| **`
|
|
1175
|
-
| **`
|
|
1176
|
-
| **`
|
|
1178
|
+
| Prop | Type | Description | Default | Since | Platform |
|
|
1179
|
+
| ------------------ | ------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------- | ----- | ----------------- |
|
|
1180
|
+
| **`alerts`** | <code>number[]</code> | Alert times in minutes relative to the event start. Use negative numbers for alerts before the start, and positive numbers for alerts after the start. | | 7.1.0 | Android, iOS, Web |
|
|
1181
|
+
| **`attendees`** | <code>EventGuest[]</code> | The event guests. | | 7.1.0 | Android, Web |
|
|
1182
|
+
| **`availability`** | <code><a href="#eventavailability">EventAvailability</a></code> | | | 7.1.0 | Android, iOS, Web |
|
|
1183
|
+
| **`calendarId`** | <code>string</code> | | | 0.1.0 | Android, iOS |
|
|
1184
|
+
| **`color`** | <code>string</code> | | | 7.1.0 | Android |
|
|
1185
|
+
| **`commit`** | <code>boolean</code> | Whether to save immediately (`true`) or batch changes for later (`false`). | <code>true</code> | 7.1.0 | iOS |
|
|
1186
|
+
| **`description`** | <code>string</code> | | | 7.1.0 | Android, iOS, Web |
|
|
1187
|
+
| **`duration`** | <code>string</code> | Duration of the event in RFC2445 format. | | 7.1.0 | Android |
|
|
1188
|
+
| **`endDate`** | <code>number</code> | | | 0.1.0 | Android, iOS, Web |
|
|
1189
|
+
| **`icsFileName`** | <code>string</code> | Download filename for the `.ics` file. When omitted, a name is derived from `title` (fallback `event.ics`). If the value has no `.ics` extension, `.ics` is appended. | | 8.5.0 | Web |
|
|
1190
|
+
| **`isAllDay`** | <code>boolean</code> | | | 0.1.0 | Android, iOS, Web |
|
|
1191
|
+
| **`location`** | <code>string</code> | | | 0.1.0 | Android, iOS, Web |
|
|
1192
|
+
| **`organizer`** | <code>string</code> | Email of the event organizer. | | 7.1.0 | Android, Web |
|
|
1193
|
+
| **`recurrence`** | <code><a href="#eventrecurrencerule">EventRecurrenceRule</a></code> | Rules for creating a recurring event. | | 7.3.0 | Android, iOS, Web |
|
|
1194
|
+
| **`startDate`** | <code>number</code> | | | 0.1.0 | Android, iOS, Web |
|
|
1195
|
+
| **`title`** | <code>string</code> | | | 0.4.0 | Android, iOS, Web |
|
|
1196
|
+
| **`url`** | <code>string</code> | | | 0.1.0 | iOS, Web |
|
|
1177
1197
|
|
|
1178
1198
|
|
|
1179
1199
|
#### EventGuest
|
package/dist/docs.json
CHANGED
|
@@ -257,7 +257,7 @@
|
|
|
257
257
|
},
|
|
258
258
|
{
|
|
259
259
|
"name": "createEventWithPrompt",
|
|
260
|
-
"signature": "(options?: CreateEventWithPromptOptions | undefined) => Promise<
|
|
260
|
+
"signature": "(options?: CreateEventWithPromptOptions | undefined) => Promise<CreateEventWithPromptResult>",
|
|
261
261
|
"parameters": [
|
|
262
262
|
{
|
|
263
263
|
"name": "options",
|
|
@@ -265,7 +265,7 @@
|
|
|
265
265
|
"type": "CreateEventWithPromptOptions | undefined"
|
|
266
266
|
}
|
|
267
267
|
],
|
|
268
|
-
"returns": "Promise<
|
|
268
|
+
"returns": "Promise<CreateEventWithPromptResult>",
|
|
269
269
|
"tags": [
|
|
270
270
|
{
|
|
271
271
|
"name": "example",
|
|
@@ -280,8 +280,9 @@
|
|
|
280
280
|
"text": "0.1.0"
|
|
281
281
|
}
|
|
282
282
|
],
|
|
283
|
-
"docs": "Opens the system calendar interface to create a new event.\nOn Android always returns `null`.\nFetch the events to find the ID of the newly created event.",
|
|
283
|
+
"docs": "Opens the system calendar interface to create a new event.\nOn Android always returns `null` for `id`.\nFetch the events to find the ID of the newly created event.",
|
|
284
284
|
"complexTypes": [
|
|
285
|
+
"CreateEventWithPromptResult",
|
|
285
286
|
"CreateEventWithPromptOptions"
|
|
286
287
|
],
|
|
287
288
|
"slug": "createeventwithprompt"
|
|
@@ -320,7 +321,7 @@
|
|
|
320
321
|
},
|
|
321
322
|
{
|
|
322
323
|
"name": "createEvent",
|
|
323
|
-
"signature": "(options: CreateEventOptions) => Promise<
|
|
324
|
+
"signature": "(options: CreateEventOptions) => Promise<CreateEventResult>",
|
|
324
325
|
"parameters": [
|
|
325
326
|
{
|
|
326
327
|
"name": "options",
|
|
@@ -328,19 +329,24 @@
|
|
|
328
329
|
"type": "CreateEventOptions"
|
|
329
330
|
}
|
|
330
331
|
],
|
|
331
|
-
"returns": "Promise<
|
|
332
|
+
"returns": "Promise<CreateEventResult>",
|
|
332
333
|
"tags": [
|
|
334
|
+
{
|
|
335
|
+
"name": "example",
|
|
336
|
+
"text": "const { id, ics } = await CapacitorCalendar.createEvent({\n title: 'Team standup',\n startDate: Date.now(),\n icsFileName: 'team-standup.ics',\n});\nif (ics) {\n await downloadIcsFile(ics);\n}"
|
|
337
|
+
},
|
|
333
338
|
{
|
|
334
339
|
"name": "platform",
|
|
335
|
-
"text": "iOS,
|
|
340
|
+
"text": "Android, iOS, Web"
|
|
336
341
|
},
|
|
337
342
|
{
|
|
338
343
|
"name": "since",
|
|
339
344
|
"text": "0.4.0"
|
|
340
345
|
}
|
|
341
346
|
],
|
|
342
|
-
"docs": "Creates an event in the calendar.",
|
|
347
|
+
"docs": "Creates an event in the calendar.\nOn Android and iOS, inserts into the system calendar and returns its `id`.\nOn Web, there is no system calendar store: builds an `.ics` `File` as `ics`.\nThe app must download or open that file (for example with `downloadIcsFile(...)`);\nthis method does not trigger a download.",
|
|
343
348
|
"complexTypes": [
|
|
349
|
+
"CreateEventResult",
|
|
344
350
|
"CreateEventOptions"
|
|
345
351
|
],
|
|
346
352
|
"slug": "createevent"
|
|
@@ -1225,6 +1231,36 @@
|
|
|
1225
1231
|
}
|
|
1226
1232
|
]
|
|
1227
1233
|
},
|
|
1234
|
+
{
|
|
1235
|
+
"name": "CreateEventWithPromptResult",
|
|
1236
|
+
"slug": "createeventwithpromptresult",
|
|
1237
|
+
"docs": "",
|
|
1238
|
+
"tags": [
|
|
1239
|
+
{
|
|
1240
|
+
"text": "8.5.0",
|
|
1241
|
+
"name": "since"
|
|
1242
|
+
}
|
|
1243
|
+
],
|
|
1244
|
+
"methods": [],
|
|
1245
|
+
"properties": [
|
|
1246
|
+
{
|
|
1247
|
+
"name": "id",
|
|
1248
|
+
"tags": [
|
|
1249
|
+
{
|
|
1250
|
+
"text": "Android, iOS",
|
|
1251
|
+
"name": "platform"
|
|
1252
|
+
},
|
|
1253
|
+
{
|
|
1254
|
+
"text": "0.1.0",
|
|
1255
|
+
"name": "since"
|
|
1256
|
+
}
|
|
1257
|
+
],
|
|
1258
|
+
"docs": "The identifier of the created event.\nAlways `null` on Android.\nPresent on iOS when the user saves.",
|
|
1259
|
+
"complexTypes": [],
|
|
1260
|
+
"type": "string | null"
|
|
1261
|
+
}
|
|
1262
|
+
]
|
|
1263
|
+
},
|
|
1228
1264
|
{
|
|
1229
1265
|
"name": "CreateEventWithPromptOptions",
|
|
1230
1266
|
"slug": "createeventwithpromptoptions",
|
|
@@ -1864,6 +1900,54 @@
|
|
|
1864
1900
|
}
|
|
1865
1901
|
]
|
|
1866
1902
|
},
|
|
1903
|
+
{
|
|
1904
|
+
"name": "CreateEventResult",
|
|
1905
|
+
"slug": "createeventresult",
|
|
1906
|
+
"docs": "",
|
|
1907
|
+
"tags": [
|
|
1908
|
+
{
|
|
1909
|
+
"text": "8.5.0",
|
|
1910
|
+
"name": "since"
|
|
1911
|
+
}
|
|
1912
|
+
],
|
|
1913
|
+
"methods": [],
|
|
1914
|
+
"properties": [
|
|
1915
|
+
{
|
|
1916
|
+
"name": "ics",
|
|
1917
|
+
"tags": [
|
|
1918
|
+
{
|
|
1919
|
+
"text": "Web",
|
|
1920
|
+
"name": "platform"
|
|
1921
|
+
},
|
|
1922
|
+
{
|
|
1923
|
+
"text": "8.5.0",
|
|
1924
|
+
"name": "since"
|
|
1925
|
+
}
|
|
1926
|
+
],
|
|
1927
|
+
"docs": "An `.ics` file (`text/calendar`) with one `VEVENT`.\nPresent only on Web. The plugin does not write to a calendar store or start a download;\nuse `downloadIcsFile(...)` or pass the `File` to another API.",
|
|
1928
|
+
"complexTypes": [
|
|
1929
|
+
"File"
|
|
1930
|
+
],
|
|
1931
|
+
"type": "File"
|
|
1932
|
+
},
|
|
1933
|
+
{
|
|
1934
|
+
"name": "id",
|
|
1935
|
+
"tags": [
|
|
1936
|
+
{
|
|
1937
|
+
"text": "Android, iOS",
|
|
1938
|
+
"name": "platform"
|
|
1939
|
+
},
|
|
1940
|
+
{
|
|
1941
|
+
"text": "0.4.0",
|
|
1942
|
+
"name": "since"
|
|
1943
|
+
}
|
|
1944
|
+
],
|
|
1945
|
+
"docs": "The identifier of the created event.\nAlways `null` on Web.\nPresent on Android and iOS after a successful create.",
|
|
1946
|
+
"complexTypes": [],
|
|
1947
|
+
"type": "string | null"
|
|
1948
|
+
}
|
|
1949
|
+
]
|
|
1950
|
+
},
|
|
1867
1951
|
{
|
|
1868
1952
|
"name": "CreateEventOptions",
|
|
1869
1953
|
"slug": "createeventoptions",
|
|
@@ -1884,7 +1968,7 @@
|
|
|
1884
1968
|
"name": "example"
|
|
1885
1969
|
},
|
|
1886
1970
|
{
|
|
1887
|
-
"text": "Android, iOS",
|
|
1971
|
+
"text": "Android, iOS, Web",
|
|
1888
1972
|
"name": "platform"
|
|
1889
1973
|
},
|
|
1890
1974
|
{
|
|
@@ -1900,7 +1984,7 @@
|
|
|
1900
1984
|
"name": "attendees",
|
|
1901
1985
|
"tags": [
|
|
1902
1986
|
{
|
|
1903
|
-
"text": "Android",
|
|
1987
|
+
"text": "Android, Web",
|
|
1904
1988
|
"name": "platform"
|
|
1905
1989
|
},
|
|
1906
1990
|
{
|
|
@@ -1918,7 +2002,7 @@
|
|
|
1918
2002
|
"name": "availability",
|
|
1919
2003
|
"tags": [
|
|
1920
2004
|
{
|
|
1921
|
-
"text": "Android, iOS",
|
|
2005
|
+
"text": "Android, iOS, Web",
|
|
1922
2006
|
"name": "platform"
|
|
1923
2007
|
},
|
|
1924
2008
|
{
|
|
@@ -2000,7 +2084,7 @@
|
|
|
2000
2084
|
"name": "description",
|
|
2001
2085
|
"tags": [
|
|
2002
2086
|
{
|
|
2003
|
-
"text": "Android, iOS",
|
|
2087
|
+
"text": "Android, iOS, Web",
|
|
2004
2088
|
"name": "platform"
|
|
2005
2089
|
},
|
|
2006
2090
|
{
|
|
@@ -2044,7 +2128,7 @@
|
|
|
2044
2128
|
"name": "endDate",
|
|
2045
2129
|
"tags": [
|
|
2046
2130
|
{
|
|
2047
|
-
"text": "Android, iOS",
|
|
2131
|
+
"text": "Android, iOS, Web",
|
|
2048
2132
|
"name": "platform"
|
|
2049
2133
|
},
|
|
2050
2134
|
{
|
|
@@ -2056,11 +2140,31 @@
|
|
|
2056
2140
|
"complexTypes": [],
|
|
2057
2141
|
"type": "number | undefined"
|
|
2058
2142
|
},
|
|
2143
|
+
{
|
|
2144
|
+
"name": "icsFileName",
|
|
2145
|
+
"tags": [
|
|
2146
|
+
{
|
|
2147
|
+
"text": "'team-standup.ics'",
|
|
2148
|
+
"name": "example"
|
|
2149
|
+
},
|
|
2150
|
+
{
|
|
2151
|
+
"text": "Web",
|
|
2152
|
+
"name": "platform"
|
|
2153
|
+
},
|
|
2154
|
+
{
|
|
2155
|
+
"text": "8.5.0",
|
|
2156
|
+
"name": "since"
|
|
2157
|
+
}
|
|
2158
|
+
],
|
|
2159
|
+
"docs": "Download filename for the `.ics` file.\nWhen omitted, a name is derived from `title` (fallback `event.ics`).\nIf the value has no `.ics` extension, `.ics` is appended.",
|
|
2160
|
+
"complexTypes": [],
|
|
2161
|
+
"type": "string | undefined"
|
|
2162
|
+
},
|
|
2059
2163
|
{
|
|
2060
2164
|
"name": "isAllDay",
|
|
2061
2165
|
"tags": [
|
|
2062
2166
|
{
|
|
2063
|
-
"text": "Android, iOS",
|
|
2167
|
+
"text": "Android, iOS, Web",
|
|
2064
2168
|
"name": "platform"
|
|
2065
2169
|
},
|
|
2066
2170
|
{
|
|
@@ -2076,7 +2180,7 @@
|
|
|
2076
2180
|
"name": "location",
|
|
2077
2181
|
"tags": [
|
|
2078
2182
|
{
|
|
2079
|
-
"text": "Android, iOS",
|
|
2183
|
+
"text": "Android, iOS, Web",
|
|
2080
2184
|
"name": "platform"
|
|
2081
2185
|
},
|
|
2082
2186
|
{
|
|
@@ -2092,7 +2196,7 @@
|
|
|
2092
2196
|
"name": "organizer",
|
|
2093
2197
|
"tags": [
|
|
2094
2198
|
{
|
|
2095
|
-
"text": "Android",
|
|
2199
|
+
"text": "Android, Web",
|
|
2096
2200
|
"name": "platform"
|
|
2097
2201
|
},
|
|
2098
2202
|
{
|
|
@@ -2108,7 +2212,7 @@
|
|
|
2108
2212
|
"name": "recurrence",
|
|
2109
2213
|
"tags": [
|
|
2110
2214
|
{
|
|
2111
|
-
"text": "Android, iOS",
|
|
2215
|
+
"text": "Android, iOS, Web",
|
|
2112
2216
|
"name": "platform"
|
|
2113
2217
|
},
|
|
2114
2218
|
{
|
|
@@ -2126,7 +2230,7 @@
|
|
|
2126
2230
|
"name": "startDate",
|
|
2127
2231
|
"tags": [
|
|
2128
2232
|
{
|
|
2129
|
-
"text": "Android, iOS",
|
|
2233
|
+
"text": "Android, iOS, Web",
|
|
2130
2234
|
"name": "platform"
|
|
2131
2235
|
},
|
|
2132
2236
|
{
|
|
@@ -2142,7 +2246,7 @@
|
|
|
2142
2246
|
"name": "title",
|
|
2143
2247
|
"tags": [
|
|
2144
2248
|
{
|
|
2145
|
-
"text": "Android, iOS",
|
|
2249
|
+
"text": "Android, iOS, Web",
|
|
2146
2250
|
"name": "platform"
|
|
2147
2251
|
},
|
|
2148
2252
|
{
|
|
@@ -2158,7 +2262,7 @@
|
|
|
2158
2262
|
"name": "url",
|
|
2159
2263
|
"tags": [
|
|
2160
2264
|
{
|
|
2161
|
-
"text": "iOS",
|
|
2265
|
+
"text": "iOS, Web",
|
|
2162
2266
|
"name": "platform"
|
|
2163
2267
|
},
|
|
2164
2268
|
{
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -17,7 +17,9 @@ import type { CheckPermissionOptions } from './schemas/interfaces/check-permissi
|
|
|
17
17
|
import type { CreateCalendarOptions } from './schemas/interfaces/create-calendar-options';
|
|
18
18
|
import type { CreateCalendarResult } from './schemas/interfaces/create-calendar-result';
|
|
19
19
|
import type { CreateEventOptions } from './schemas/interfaces/create-event-options';
|
|
20
|
+
import type { CreateEventResult } from './schemas/interfaces/create-event-result';
|
|
20
21
|
import type { CreateEventWithPromptOptions } from './schemas/interfaces/create-event-with-prompt-options';
|
|
22
|
+
import type { CreateEventWithPromptResult } from './schemas/interfaces/create-event-with-prompt-result';
|
|
21
23
|
import type { CreateReminderOptions } from './schemas/interfaces/create-reminder-options';
|
|
22
24
|
import type { CreateRemindersListOptions } from './schemas/interfaces/create-reminders-list-options';
|
|
23
25
|
import type { CreateRemindersListResult } from './schemas/interfaces/create-reminders-list-result';
|
|
@@ -55,7 +57,8 @@ import type { RecurrenceFrequency } from './schemas/types/recurrence-frequency';
|
|
|
55
57
|
import type { CheckAllPermissionsResult, RequestAllPermissionsResult } from './sub-definitions/calendar-access';
|
|
56
58
|
import type { DeleteEventsByIdResult } from './sub-definitions/event-operations';
|
|
57
59
|
import type { DeleteRemindersByIdResult } from './sub-definitions/reminders-operations';
|
|
60
|
+
import { downloadIcsFile } from './web/download-ics-file';
|
|
58
61
|
declare const CapacitorCalendar: CapacitorCalendarPlugin;
|
|
59
62
|
export * from './definitions';
|
|
60
|
-
export type { Calendar, CalendarEvent, CalendarSource, CheckAllPermissionsResult, CheckPermissionOptions, CreateCalendarOptions, CreateCalendarResult, CreateEventOptions, CreateEventWithPromptOptions, CreateReminderOptions, CreateRemindersListOptions, CreateRemindersListResult, DeleteCalendarOptions, DeleteEventOptions, DeleteEventWithPromptOptions, DeleteEventsByIdOptions, DeleteEventsByIdResult, DeleteReminderOptions, DeleteReminderWithPromptOptions, DeleteRemindersByIdOptions, DeleteRemindersByIdResult, DeleteRemindersListOptions, EventEditAction, EventGuest, FetchAllCalendarSourcesResult, GetDefaultCalendarOptions, GetReminderByIdOptions, GetRemindersFromListsOptions, ListCalendarsResult, ListEventsInRangeOptions, ModifyCalendarOptions, ModifyEventOptions, ModifyEventWithPromptOptions, ModifyReminderOptions, OpenCalendarOptions, RecurrenceRule, Reminder, ReminderRecurrenceRule, RemindersList, RequestAllPermissionsResult, RequestPermissionOptions, SelectCalendarsWithPromptOptions, SelectCalendarsWithPromptResult, UpdateRemindersListOptions, UpdateRemindersListResult, };
|
|
61
|
-
export { CalendarPermissionScope, EventAvailability, EventSpan, CalendarChooserDisplayStyle, CalendarType, CalendarSourceType, ReminderRecurrenceFrequency, RecurrenceFrequency, EventStatus, AttendeeRole, AttendeeType, AttendeeStatus, CapacitorCalendar, };
|
|
63
|
+
export type { Calendar, CalendarEvent, CalendarSource, CheckAllPermissionsResult, CheckPermissionOptions, CreateCalendarOptions, CreateCalendarResult, CreateEventOptions, CreateEventResult, CreateEventWithPromptOptions, CreateEventWithPromptResult, CreateReminderOptions, CreateRemindersListOptions, CreateRemindersListResult, DeleteCalendarOptions, DeleteEventOptions, DeleteEventWithPromptOptions, DeleteEventsByIdOptions, DeleteEventsByIdResult, DeleteReminderOptions, DeleteReminderWithPromptOptions, DeleteRemindersByIdOptions, DeleteRemindersByIdResult, DeleteRemindersListOptions, EventEditAction, EventGuest, FetchAllCalendarSourcesResult, GetDefaultCalendarOptions, GetReminderByIdOptions, GetRemindersFromListsOptions, ListCalendarsResult, ListEventsInRangeOptions, ModifyCalendarOptions, ModifyEventOptions, ModifyEventWithPromptOptions, ModifyReminderOptions, OpenCalendarOptions, RecurrenceRule, Reminder, ReminderRecurrenceRule, RemindersList, RequestAllPermissionsResult, RequestPermissionOptions, SelectCalendarsWithPromptOptions, SelectCalendarsWithPromptResult, UpdateRemindersListOptions, UpdateRemindersListResult, };
|
|
64
|
+
export { CalendarPermissionScope, EventAvailability, EventSpan, CalendarChooserDisplayStyle, CalendarType, CalendarSourceType, ReminderRecurrenceFrequency, RecurrenceFrequency, EventStatus, AttendeeRole, AttendeeType, AttendeeStatus, CapacitorCalendar, downloadIcsFile, };
|
package/dist/esm/index.js
CHANGED
|
@@ -10,9 +10,10 @@ import { EventAvailability } from './schemas/enums/event-availability';
|
|
|
10
10
|
import { EventSpan } from './schemas/enums/event-span';
|
|
11
11
|
import { EventStatus } from './schemas/enums/event-status';
|
|
12
12
|
import { ReminderRecurrenceFrequency } from './schemas/enums/reminder-recurrence-frequency';
|
|
13
|
+
import { downloadIcsFile } from './web/download-ics-file';
|
|
13
14
|
const CapacitorCalendar = registerPlugin('CapacitorCalendar', {
|
|
14
15
|
web: () => import('./web').then((m) => new m.CapacitorCalendarWeb()),
|
|
15
16
|
});
|
|
16
17
|
export * from './definitions';
|
|
17
|
-
export { CalendarPermissionScope, EventAvailability, EventSpan, CalendarChooserDisplayStyle, CalendarType, CalendarSourceType, ReminderRecurrenceFrequency, EventStatus, AttendeeRole, AttendeeType, AttendeeStatus, CapacitorCalendar, };
|
|
18
|
+
export { CalendarPermissionScope, EventAvailability, EventSpan, CalendarChooserDisplayStyle, CalendarType, CalendarSourceType, ReminderRecurrenceFrequency, EventStatus, AttendeeRole, AttendeeType, AttendeeStatus, CapacitorCalendar, downloadIcsFile, };
|
|
18
19
|
//# sourceMappingURL=index.js.map
|
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;AAgD5F,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE1D,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;AAkD9B,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,EACjB,eAAe,GAChB,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 { CheckPermissionOptions } from './schemas/interfaces/check-permission-options';\nimport type { CreateCalendarOptions } from './schemas/interfaces/create-calendar-options';\nimport type { CreateCalendarResult } from './schemas/interfaces/create-calendar-result';\nimport type { CreateEventOptions } from './schemas/interfaces/create-event-options';\nimport type { CreateEventResult } from './schemas/interfaces/create-event-result';\nimport type { CreateEventWithPromptOptions } from './schemas/interfaces/create-event-with-prompt-options';\nimport type { CreateEventWithPromptResult } from './schemas/interfaces/create-event-with-prompt-result';\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 { FetchAllCalendarSourcesResult } from './schemas/interfaces/fetch-all-calendar-sources-result';\nimport type { GetDefaultCalendarOptions } from './schemas/interfaces/get-default-calendar-options';\nimport type { GetReminderByIdOptions } from './schemas/interfaces/get-reminder-by-id-options';\nimport type { GetRemindersFromListsOptions } from './schemas/interfaces/get-reminders-from-lists-options';\nimport type { ListCalendarsResult } from './schemas/interfaces/list-calendars-result';\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 { RequestPermissionOptions } from './schemas/interfaces/request-permission-options';\nimport type { SelectCalendarsWithPromptOptions } from './schemas/interfaces/select-calendars-with-prompt-options';\nimport type { SelectCalendarsWithPromptResult } from './schemas/interfaces/select-calendars-with-prompt-result';\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';\nimport { downloadIcsFile } from './web/download-ics-file';\n\nconst CapacitorCalendar = registerPlugin<CapacitorCalendarPlugin>('CapacitorCalendar', {\n web: () => import('./web').then((m) => new m.CapacitorCalendarWeb()),\n});\n\nexport * from './definitions';\nexport type {\n Calendar,\n CalendarEvent,\n CalendarSource,\n CheckAllPermissionsResult,\n CheckPermissionOptions,\n CreateCalendarOptions,\n CreateCalendarResult,\n CreateEventOptions,\n CreateEventResult,\n CreateEventWithPromptOptions,\n CreateEventWithPromptResult,\n CreateReminderOptions,\n CreateRemindersListOptions,\n CreateRemindersListResult,\n DeleteCalendarOptions,\n DeleteEventOptions,\n DeleteEventWithPromptOptions,\n DeleteEventsByIdOptions,\n DeleteEventsByIdResult,\n DeleteReminderOptions,\n DeleteReminderWithPromptOptions,\n DeleteRemindersByIdOptions,\n DeleteRemindersByIdResult,\n DeleteRemindersListOptions,\n EventEditAction,\n EventGuest,\n FetchAllCalendarSourcesResult,\n GetDefaultCalendarOptions,\n GetReminderByIdOptions,\n GetRemindersFromListsOptions,\n ListCalendarsResult,\n ListEventsInRangeOptions,\n ModifyCalendarOptions,\n ModifyEventOptions,\n ModifyEventWithPromptOptions,\n ModifyReminderOptions,\n OpenCalendarOptions,\n RecurrenceRule,\n Reminder,\n ReminderRecurrenceRule,\n RemindersList,\n RequestAllPermissionsResult,\n RequestPermissionOptions,\n SelectCalendarsWithPromptOptions,\n SelectCalendarsWithPromptResult,\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 downloadIcsFile,\n};\n"]}
|
|
@@ -15,19 +15,19 @@ export interface CreateEventOptions {
|
|
|
15
15
|
* // 30 -> 30 minutes after
|
|
16
16
|
* [-1440, -60, 30]
|
|
17
17
|
*
|
|
18
|
-
* @platform Android, iOS
|
|
18
|
+
* @platform Android, iOS, Web
|
|
19
19
|
* @since 7.1.0
|
|
20
20
|
*/
|
|
21
21
|
alerts?: number[];
|
|
22
22
|
/**
|
|
23
23
|
* The event guests.
|
|
24
24
|
*
|
|
25
|
-
* @platform Android
|
|
25
|
+
* @platform Android, Web
|
|
26
26
|
* @since 7.1.0
|
|
27
27
|
*/
|
|
28
28
|
attendees?: EventGuest[];
|
|
29
29
|
/**
|
|
30
|
-
* @platform Android, iOS
|
|
30
|
+
* @platform Android, iOS, Web
|
|
31
31
|
* @since 7.1.0
|
|
32
32
|
*/
|
|
33
33
|
availability?: EventAvailability;
|
|
@@ -52,7 +52,7 @@ export interface CreateEventOptions {
|
|
|
52
52
|
*/
|
|
53
53
|
commit?: boolean;
|
|
54
54
|
/**
|
|
55
|
-
* @platform Android, iOS
|
|
55
|
+
* @platform Android, iOS, Web
|
|
56
56
|
* @since 7.1.0
|
|
57
57
|
*/
|
|
58
58
|
description?: string;
|
|
@@ -66,47 +66,56 @@ export interface CreateEventOptions {
|
|
|
66
66
|
*/
|
|
67
67
|
duration?: string;
|
|
68
68
|
/**
|
|
69
|
-
* @platform Android, iOS
|
|
69
|
+
* @platform Android, iOS, Web
|
|
70
70
|
* @since 0.1.0
|
|
71
71
|
*/
|
|
72
72
|
endDate?: number;
|
|
73
73
|
/**
|
|
74
|
-
*
|
|
74
|
+
* Download filename for the `.ics` file.
|
|
75
|
+
* When omitted, a name is derived from `title` (fallback `event.ics`).
|
|
76
|
+
* If the value has no `.ics` extension, `.ics` is appended.
|
|
77
|
+
*
|
|
78
|
+
* @example 'team-standup.ics'
|
|
79
|
+
* @platform Web
|
|
80
|
+
* @since 8.5.0
|
|
81
|
+
*/
|
|
82
|
+
icsFileName?: string;
|
|
83
|
+
/**
|
|
84
|
+
* @platform Android, iOS, Web
|
|
75
85
|
* @since 0.1.0
|
|
76
86
|
*/
|
|
77
87
|
isAllDay?: boolean;
|
|
78
88
|
/**
|
|
79
|
-
* @platform Android, iOS
|
|
89
|
+
* @platform Android, iOS, Web
|
|
80
90
|
* @since 0.1.0
|
|
81
91
|
*/
|
|
82
92
|
location?: string;
|
|
83
93
|
/**
|
|
84
94
|
* Email of the event organizer.
|
|
85
95
|
*
|
|
86
|
-
* @platform Android
|
|
96
|
+
* @platform Android, Web
|
|
87
97
|
* @since 7.1.0
|
|
88
98
|
*/
|
|
89
99
|
organizer?: string;
|
|
90
100
|
/**
|
|
91
101
|
* Rules for creating a recurring event.
|
|
92
102
|
*
|
|
93
|
-
* @platform Android, iOS
|
|
103
|
+
* @platform Android, iOS, Web
|
|
94
104
|
* @since 7.3.0
|
|
95
105
|
*/
|
|
96
106
|
recurrence?: EventRecurrenceRule;
|
|
97
107
|
/**
|
|
98
|
-
*
|
|
99
|
-
* @platform Android, iOS
|
|
108
|
+
* @platform Android, iOS, Web
|
|
100
109
|
* @since 0.1.0
|
|
101
110
|
*/
|
|
102
111
|
startDate?: number;
|
|
103
112
|
/**
|
|
104
|
-
* @platform Android, iOS
|
|
113
|
+
* @platform Android, iOS, Web
|
|
105
114
|
* @since 0.4.0
|
|
106
115
|
*/
|
|
107
116
|
title: string;
|
|
108
117
|
/**
|
|
109
|
-
* @platform iOS
|
|
118
|
+
* @platform iOS, Web
|
|
110
119
|
* @since 0.1.0
|
|
111
120
|
*/
|
|
112
121
|
url?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-event-options.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/create-event-options.ts"],"names":[],"mappings":"","sourcesContent":["import type { EventAvailability } from '../enums/event-availability';\n\nimport type { EventGuest } from './event-guest';\nimport type { EventRecurrenceRule } from './event-recurrence-rule';\n\n/**\n * @since 7.1.0\n */\nexport interface CreateEventOptions {\n /**\n * Alert times in minutes relative to the event start.\n * Use negative numbers for alerts before the start, and positive numbers for alerts after the start.\n *\n * @example\n * // -1440 -> 1 day before\n * // -60 -> 1 hour before\n * // 30 -> 30 minutes after\n * [-1440, -60, 30]\n *\n * @platform Android, iOS\n * @since 7.1.0\n */\n alerts?: number[];\n /**\n * The event guests.\n *\n * @platform Android\n * @since 7.1.0\n */\n attendees?: EventGuest[];\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n availability?: EventAvailability;\n /**\n * @platform Android, iOS\n * @since 0.1.0\n */\n calendarId?: string;\n /**\n * @example #6750A4\n * @platform Android\n * @since 7.1.0\n */\n color?: string;\n /**\n * Whether to save immediately (`true`) or batch changes for later (`false`).\n *\n * @default true\n * @platform iOS\n * @see {@link CalendarOperations#commit}\n * @since 7.1.0\n */\n commit?: boolean;\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n description?: string;\n /**\n * Duration of the event in RFC2445 format.\n *\n * @example P1D (1 day), P3W (3 weeks), P2DT4H30M (2 days, 4 hours, and 30 minutes).\n * @platform Android\n * @see {@link https://datatracker.ietf.org/doc/html/rfc2445}\n * @since 7.1.0\n */\n duration?: string;\n /**\n * @platform Android, iOS\n * @since 0.1.0\n */\n endDate?: number;\n /**\n * @platform Android, iOS\n * @since 0.1.0\n */\n isAllDay?: boolean;\n /**\n * @platform Android, iOS\n * @since 0.1.0\n */\n location?: string;\n /**\n * Email of the event organizer.\n *\n * @platform Android\n * @since 7.1.0\n */\n organizer?: string;\n /**\n * Rules for creating a recurring event.\n *\n * @platform Android, iOS\n * @since 7.3.0\n */\n recurrence?: EventRecurrenceRule;\n /**\n
|
|
1
|
+
{"version":3,"file":"create-event-options.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/create-event-options.ts"],"names":[],"mappings":"","sourcesContent":["import type { EventAvailability } from '../enums/event-availability';\n\nimport type { EventGuest } from './event-guest';\nimport type { EventRecurrenceRule } from './event-recurrence-rule';\n\n/**\n * @since 7.1.0\n */\nexport interface CreateEventOptions {\n /**\n * Alert times in minutes relative to the event start.\n * Use negative numbers for alerts before the start, and positive numbers for alerts after the start.\n *\n * @example\n * // -1440 -> 1 day before\n * // -60 -> 1 hour before\n * // 30 -> 30 minutes after\n * [-1440, -60, 30]\n *\n * @platform Android, iOS, Web\n * @since 7.1.0\n */\n alerts?: number[];\n /**\n * The event guests.\n *\n * @platform Android, Web\n * @since 7.1.0\n */\n attendees?: EventGuest[];\n /**\n * @platform Android, iOS, Web\n * @since 7.1.0\n */\n availability?: EventAvailability;\n /**\n * @platform Android, iOS\n * @since 0.1.0\n */\n calendarId?: string;\n /**\n * @example #6750A4\n * @platform Android\n * @since 7.1.0\n */\n color?: string;\n /**\n * Whether to save immediately (`true`) or batch changes for later (`false`).\n *\n * @default true\n * @platform iOS\n * @see {@link CalendarOperations#commit}\n * @since 7.1.0\n */\n commit?: boolean;\n /**\n * @platform Android, iOS, Web\n * @since 7.1.0\n */\n description?: string;\n /**\n * Duration of the event in RFC2445 format.\n *\n * @example P1D (1 day), P3W (3 weeks), P2DT4H30M (2 days, 4 hours, and 30 minutes).\n * @platform Android\n * @see {@link https://datatracker.ietf.org/doc/html/rfc2445}\n * @since 7.1.0\n */\n duration?: string;\n /**\n * @platform Android, iOS, Web\n * @since 0.1.0\n */\n endDate?: number;\n /**\n * Download filename for the `.ics` file.\n * When omitted, a name is derived from `title` (fallback `event.ics`).\n * If the value has no `.ics` extension, `.ics` is appended.\n *\n * @example 'team-standup.ics'\n * @platform Web\n * @since 8.5.0\n */\n icsFileName?: string;\n /**\n * @platform Android, iOS, Web\n * @since 0.1.0\n */\n isAllDay?: boolean;\n /**\n * @platform Android, iOS, Web\n * @since 0.1.0\n */\n location?: string;\n /**\n * Email of the event organizer.\n *\n * @platform Android, Web\n * @since 7.1.0\n */\n organizer?: string;\n /**\n * Rules for creating a recurring event.\n *\n * @platform Android, iOS, Web\n * @since 7.3.0\n */\n recurrence?: EventRecurrenceRule;\n /**\n * @platform Android, iOS, Web\n * @since 0.1.0\n */\n startDate?: number;\n /**\n * @platform Android, iOS, Web\n * @since 0.4.0\n */\n title: string;\n /**\n * @platform iOS, Web\n * @since 0.1.0\n */\n url?: string;\n}\n"]}
|