sentryAppWebhookRequest.ts 481 B

12345678910111213141516171819
  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. name: 'Test Org',
  13. },
  14. responseCode: 400,
  15. ...params,
  16. };
  17. }