From 9c9157b6a59d08fb3e65ca18a07832646eb2b6d5 Mon Sep 17 00:00:00 2001 From: markuczy <129275100+markuczy@users.noreply.github.com> Date: Wed, 23 Oct 2024 09:03:50 +0200 Subject: [PATCH] feat: NavigatedEvent type created (#555) --- 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 }