@spotinst/spinnaker-deck
Version:
Spinnaker-Deck service, forked with support to Spotinst
22 lines (18 loc) • 524 B
text/typescript
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();
}
}