Allow bookmarks in periodic query notification

This commit is contained in:
eikek
2022-01-10 14:25:20 +01:00
parent ccb4df5bd7
commit 699cf091e6
19 changed files with 497 additions and 82 deletions

View File

@ -8037,12 +8037,12 @@ extraSchemas:
PeriodicQuerySettings:
description: |
Settings for the periodc-query task.
Settings for the periodc-query task. At least one of `query` and
`bookmark` is required!
required:
- id
- enabled
- channel
- query
- schedule
properties:
id:
@ -8065,6 +8065,10 @@ extraSchemas:
query:
type: string
format: itemquery
bookmark:
type: string
description: |
Name or ID of bookmark to use.
PeriodicDueItemsSettings:
description: |

View File

@ -21,7 +21,8 @@ final case class PeriodicQuerySettings(
summary: Option[String],
enabled: Boolean,
channel: NotificationChannel,
query: ItemQuery,
query: Option[ItemQuery],
bookmark: Option[String],
schedule: CalEvent
) {}