mirror of
https://github.com/xunleii/silverbullet-icalendar.git
synced 2026-03-15 03:55:22 +00:00
Add 'iCalendar: Clear All Events' command to completely remove all indexed calendar events and cache. Useful for maintenance and troubleshooting. Co-Authored-By: Claude <noreply@anthropic.com> Signed-off-by: Alexandre Nicolaie <xunleii@users.noreply.github.com>
48 lines
1.0 KiB
YAML
48 lines
1.0 KiB
YAML
name: icalendar
|
|
requiredPermissions:
|
|
- fetch
|
|
functions:
|
|
syncCalendars:
|
|
path: ./icalendar.ts:syncCalendars
|
|
command:
|
|
name: "iCalendar: Sync"
|
|
priority: -1
|
|
events:
|
|
- editor:init
|
|
forceSync:
|
|
path: ./icalendar.ts:forceSync
|
|
command:
|
|
name: "iCalendar: Force Sync"
|
|
priority: -1
|
|
clearCache:
|
|
path: ./icalendar.ts:clearCache
|
|
command:
|
|
name: "iCalendar: Clear All Events"
|
|
priority: -1
|
|
showVersion:
|
|
path: ./icalendar.ts:showVersion
|
|
command:
|
|
name: "iCalendar: Version"
|
|
priority: -2
|
|
config:
|
|
schema.config.properties.icalendar:
|
|
type: object
|
|
required:
|
|
- sources
|
|
properties:
|
|
sources:
|
|
type: array
|
|
minItems: 1
|
|
items:
|
|
type: object
|
|
required:
|
|
- url
|
|
properties:
|
|
url:
|
|
type: string
|
|
name:
|
|
type: string
|
|
cacheDuration:
|
|
type: number
|
|
description: "Interval between two calendar synchronizations (default: 21600 = 6 hours)"
|