github.com/argoproj/argo-cd/v2@v2.10.9/ui/src/app/shared/services/notification-service.ts (about)

     1  import {NotificationChunk} from '../models';
     2  import requests from './requests';
     3  
     4  export class NotificationService {
     5      public listServices(): Promise<NotificationChunk[]> {
     6          return requests.get('/notifications/services').then(res => res.body.items || []);
     7      }
     8  
     9      public listTriggers(): Promise<NotificationChunk[]> {
    10          return requests.get('/notifications/triggers').then(res => res.body.items || []);
    11      }
    12  }