sentryAppWebhookRequest.ts 496 B

1234567891011121314151617181920
  1. import type {SentryAppWebhookRequest} from 'sentry/types/integrations';
  2. export function SentryAppWebhookRequestFixture(
  3. params: Partial<SentryAppWebhookRequest> = {}
  4. ): SentryAppWebhookRequest {
  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. id: '1',
  13. name: 'Test Org',
  14. },
  15. responseCode: 400,
  16. ...params,
  17. };
  18. }