notificationActions.tsx 797 B

12345678910111213141516171819202122232425262728293031323334
  1. export enum NotificationActionService {
  2. EMAIL = 'email',
  3. PAGERDUTY = 'pagerduty',
  4. SLACK = 'slack',
  5. MSTEAMS = 'msteams',
  6. SENTRY_APP = 'sentry_app',
  7. SENTRY_NOTIFICATION = 'sentry_notification',
  8. }
  9. export type NotificationAction = {
  10. id: number;
  11. integrationId: number | null;
  12. organizationId: number;
  13. projects: number[];
  14. sentryAppId: number | null;
  15. serviceType: string;
  16. targetDisplay: string;
  17. targetIdentifier: string;
  18. targetType: string;
  19. triggerType: string;
  20. };
  21. export type AvailableNotificationAction = {
  22. action: {
  23. serviceType: string;
  24. targetType: string;
  25. triggerType: string;
  26. integrationId?: number;
  27. integrationName?: string;
  28. targetDisplay?: string;
  29. targetIdentifier?: string;
  30. };
  31. requires: {description: string; name: string}[];
  32. };