sentryAppWebhookRequest.tsx 495 B

12345678910111213141516171819
  1. import {SentryAppWebhookRequest as SentryAppWebhookRequestType} from 'sentry/types';
  2. export function SentryAppWebhookRequest(
  3. params: Partial<SentryAppWebhookRequestType> = {}
  4. ): SentryAppWebhookRequestType {
  5. return {
  6. webhookUrl: 'https://example.com/webhook',
  7. sentryAppSlug: 'sample-app',
  8. eventType: 'issue.assigned',
  9. date: '2019-09-25T23:54:54.440Z',
  10. organization: {
  11. slug: 'test-org',
  12. name: 'Test Org',
  13. },
  14. responseCode: 400,
  15. ...params,
  16. };
  17. }