Add comments for clarity in notification configuration types.

Signed-off-by: Henrik Edegård <henrik.edegard@fortnox.se>
This commit is contained in:
Henrik Edegård
2025-11-05 07:03:36 +00:00
parent 4918a6ffe6
commit b17383c34d
2 changed files with 39 additions and 0 deletions
+15
View File
@@ -33,6 +33,9 @@ export interface Config {
*/
defaultSettings?: {
channels?: {
/**
* Channel identifier (e.g., 'Web', 'Email')
*/
id: string;
/**
* Optional flag to enable/disable the channel by default.
@@ -42,10 +45,22 @@ export interface Config {
*/
enabled?: boolean;
origins?: {
/**
* Origin identifier (e.g., 'plugin:catalog', 'external:jenkins')
*/
id: string;
/**
* Whether notifications from this origin are enabled by default
*/
enabled: boolean;
topics?: {
/**
* Topic identifier (e.g., 'entity-refresh', 'build-failure')
*/
id: string;
/**
* Whether notifications for this topic are enabled by default
*/
enabled: boolean;
}[];
}[];