UNPKG

@spotinst/spinnaker-deck

Version:

Spinnaker-Deck service, forked with support to Spotinst

22 lines (18 loc) 524 B
import { REST } from 'core/api/ApiService'; export interface INotificationParameter { name: string; defaultValue: string; type: string; label: string; description: string; } export interface INotificationTypeMetadata { notificationType: string; parameters: INotificationParameter[]; uiType: 'BASIC' | 'CUSTOM'; } export class NotificationService { public static getNotificationTypeMetadata(): PromiseLike<INotificationTypeMetadata[]> { return REST('/notifications/metadata').useCache().get(); } }