Skip to content

Commit

Permalink
fix: add event type (COR-3438) (#548)
Browse files Browse the repository at this point in the history
Add event type to libs
  • Loading branch information
amandasteinhauer committed Oct 7, 2024
1 parent 87eac81 commit 470794e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/base-types/src/node/utils/event.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import type { SlotMappings } from './mappings';
// BUILT IN EVENTS
export enum EventType {
INTENT = 'intent',
EVENT = 'event',
ALEXA = 'alexa',
}

Expand All @@ -22,6 +23,11 @@ export interface IntentEvent extends BaseEvent, SlotMappings {
intent: string;
}

export interface EventEvent extends BaseEvent {
type: EventType.EVENT;
event: string;
}

export interface AlexaEvent extends BaseEvent {
type: EventType.ALEXA;
intent: string;
Expand Down

0 comments on commit 470794e

Please sign in to comment.