mirror of
https://github.com/Unleash/unleash.git
synced 2024-12-28 00:06:53 +01:00
4c5eb20e09
* feat: add project and environments filters for addons Co-authored-by: Simon Hornby <liquidwicked64@gmail.com>
44 lines
921 B
TypeScript
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;
|
|
}
|