From d46c48e326b561c7530b22d04ba947ae4c006e21 Mon Sep 17 00:00:00 2001 From: Fenris Wolf Date: Mon, 14 Oct 2024 19:06:33 +0200 Subject: [PATCH] =?UTF-8?q?[mod]=20datenmodell:link=20zu=20local=5Fresourc?= =?UTF-8?q?e=5Fevent=20hinzugef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/api/actions/calendar_event_add.ts | 4 ++++ source/api/actions/calendar_event_change.ts | 4 ++++ source/api/actions/calendar_event_get.ts | 4 ++++ source/api/actions/events.ts | 4 ++++ source/database.ts | 2 +- source/repositories/resource.ts | 2 ++ source/services/calendar.ts | 7 +++++++ source/types.ts | 5 +++++ 8 files changed, 31 insertions(+), 1 deletion(-) diff --git a/source/api/actions/calendar_event_add.ts b/source/api/actions/calendar_event_add.ts index 434d062..df4c00e 100644 --- a/source/api/actions/calendar_event_add.ts +++ b/source/api/actions/calendar_event_add.ts @@ -42,6 +42,10 @@ namespace _zeitbild.api "type": "string", "nullable": true, }, + "link": { + "type": "string", + "nullable": true, + }, "description": { "type": "string", "nullable": true, diff --git a/source/api/actions/calendar_event_change.ts b/source/api/actions/calendar_event_change.ts index 4529021..42ec2d3 100644 --- a/source/api/actions/calendar_event_change.ts +++ b/source/api/actions/calendar_event_change.ts @@ -42,6 +42,10 @@ namespace _zeitbild.api "type": "string", "nullable": true, }, + "link": { + "type": "string", + "nullable": true, + }, "description": { "type": "string", "nullable": true, diff --git a/source/api/actions/calendar_event_get.ts b/source/api/actions/calendar_event_get.ts index 0cfbe94..34427a7 100644 --- a/source/api/actions/calendar_event_get.ts +++ b/source/api/actions/calendar_event_get.ts @@ -42,6 +42,10 @@ namespace _zeitbild.api "type": "string", "nullable": true, }, + "link": { + "type": "string", + "nullable": true, + }, "description": { "type": "string", "nullable": true, diff --git a/source/api/actions/events.ts b/source/api/actions/events.ts index 5e9ec64..49130b6 100644 --- a/source/api/actions/events.ts +++ b/source/api/actions/events.ts @@ -101,6 +101,10 @@ namespace _zeitbild.api "type": "string", "nullable": true, }, + "link": { + "type": "string", + "nullable": true, + }, "description": { "type": "string", "nullable": true, diff --git a/source/database.ts b/source/database.ts index 020d70d..057d925 100644 --- a/source/database.ts +++ b/source/database.ts @@ -5,7 +5,7 @@ namespace _zeitbild.database /** */ const _compatible_revisions : Array = [ - "r2", + "r3", ]; diff --git a/source/repositories/resource.ts b/source/repositories/resource.ts index 7b7ffe8..7a1b871 100644 --- a/source/repositories/resource.ts +++ b/source/repositories/resource.ts @@ -226,6 +226,7 @@ namespace _zeitbild.repository.resource encode_datetime(stuff.event.end) ), "location": stuff.event.location, + "link": stuff.event.link, "description": stuff.event.description, } } @@ -280,6 +281,7 @@ namespace _zeitbild.repository.resource decode_datetime(row["end"]) ), "location": row["location"], + "link": row["link"], "description": row["description"], } }; diff --git a/source/services/calendar.ts b/source/services/calendar.ts index b292755..d661e13 100644 --- a/source/services/calendar.ts +++ b/source/services/calendar.ts @@ -382,6 +382,13 @@ namespace _zeitbild.service.calendar : null ), + "link": ( + (vevent.url !== undefined) + ? + vevent.url + : + null + ), "description": ( (vevent.description !== undefined) ? diff --git a/source/types.ts b/source/types.ts index 91baee5..f827584 100644 --- a/source/types.ts +++ b/source/types.ts @@ -46,6 +46,11 @@ namespace _zeitbild | string ); + link : ( + null + | + string + ); description : ( null |