1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-06 00:07:44 +01:00
unleash.unleash/frontend/src/interfaces/action.ts

28 lines
544 B
TypeScript
Raw Normal View History

export interface IActionSet {
id: number;
name: string;
project: string;
actorId: number;
match: IMatch;
actions: IAction[];
createdAt: string;
createdByUserId: number;
}
type MatchSource = 'incoming-webhook';
export interface IMatch {
source: MatchSource;
sourceId: number;
payload: Record<string, unknown>;
}
export interface IAction {
id: number;
action: string;
sortOrder: number;
executionParams: Record<string, unknown>;
createdAt: string;
createdByUserId: number;
}