1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-10-18 20:09:08 +02:00
unleash.unleash/frontend/src/interfaces/addons.ts
Christopher Kolstad 4c5eb20e09 Task/filter addon by project and environment (#1133)
* feat: add project and environments filters for addons

Co-authored-by: Simon Hornby <liquidwicked64@gmail.com>
2022-07-14 12:55:37 +02:00

44 lines
921 B
TypeScript

import { ITagType } from './tags';
export interface IAddon {
provider: string;
parameters: Record<string, any>;
id: number;
events: string[];
projects?: string[];
environments?: string[];
enabled: boolean;
description: string;
}
export interface IAddonProvider {
description: string;
displayName: string;
documentationUrl: string;
events: string[];
name: string;
parameters: IAddonProviderParams[];
tagTypes: ITagType[];
}
export interface IAddonProviderParams {
name: string;
displayName: string;
type: string;
required: boolean;
sensitive: boolean;
placeholder?: string;
description?: string;
}
export interface IAddonConfig {
provider: string;
parameters: Record<string, any>;
id: number;
events: string[];
projects?: string[];
environments?: string[];
enabled: boolean;
description: string;
}