notificationActions.tsx 822 B

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