From 049e1ce0e9b262720d7aa26620fa8051dcade0a1 Mon Sep 17 00:00:00 2001 From: markuczy Date: Tue, 22 Oct 2024 13:55:37 +0200 Subject: [PATCH] feat: NavigatedEvent type created --- libs/integration-interface/src/index.ts | 1 + .../src/lib/topics/events/v1/navigated-event-type.ts | 3 +++ .../src/lib/topics/events/v1/topic-event-type.ts | 4 +++- 3 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 libs/integration-interface/src/lib/topics/events/v1/navigated-event-type.ts diff --git a/libs/integration-interface/src/index.ts b/libs/integration-interface/src/index.ts index 2d617036..95be328d 100644 --- a/libs/integration-interface/src/index.ts +++ b/libs/integration-interface/src/index.ts @@ -38,4 +38,5 @@ export * from './lib/topics/permissions-rpc/v1/permissions-rpc.model' export * from './lib/topics/events/v1/events-topic' export * from './lib/topics/events/v1/topic-event-type' +export * from './lib/topics/events/v1/navigated-event-type' export * from './lib/topics/events/v1/navigated-event-payload' diff --git a/libs/integration-interface/src/lib/topics/events/v1/navigated-event-type.ts b/libs/integration-interface/src/lib/topics/events/v1/navigated-event-type.ts new file mode 100644 index 00000000..2b11cc41 --- /dev/null +++ b/libs/integration-interface/src/lib/topics/events/v1/navigated-event-type.ts @@ -0,0 +1,3 @@ +import { NavigatedEventPayload } from './navigated-event-payload' + +export type NavigatedEvent = { type: 'navigated'; payload: NavigatedEventPayload } diff --git a/libs/integration-interface/src/lib/topics/events/v1/topic-event-type.ts b/libs/integration-interface/src/lib/topics/events/v1/topic-event-type.ts index 47ee692e..640fc0f4 100644 --- a/libs/integration-interface/src/lib/topics/events/v1/topic-event-type.ts +++ b/libs/integration-interface/src/lib/topics/events/v1/topic-event-type.ts @@ -1 +1,3 @@ -export type TopicEventType = { type: string; payload?: unknown | undefined } +import { NavigatedEvent } from './navigated-event-type' + +export type TopicEventType = NavigatedEvent | { type: string; payload?: unknown | undefined }