Files
sentinel/fixtures/js-stubs/sentryAppWebhookRequest.tsx
2024-02-15 17:01:50 +00:00

20 lines
463 B
TypeScript

import {SentryAppWebhookRequest} from 'sentry/types';
export function SentryAppWebhookRequestFixture(
params: Partial<SentryAppWebhookRequest> = {}
): SentryAppWebhookRequest {
return {
webhookUrl: 'https://example.com/webhook',
sentryAppSlug: 'sample-app',
eventType: 'issue.assigned',
date: '2019-09-25T23:54:54.440Z',
organization: {
slug: 'test-org',
name: 'Test Org',
},
responseCode: 400,
...params,
};
}