mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-06 00:07:44 +01:00
9511e64027
https://linear.app/unleash/issue/2-1938/refactor-project-actions Refactors project actions to not include the project in the payload. Includes other misc scouting.
29 lines
566 B
TypeScript
29 lines
566 B
TypeScript
export interface IActionSet {
|
|
id: number;
|
|
enabled: boolean;
|
|
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;
|
|
}
|