notificationActions.tsx 845 B

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