12345678910111213141516171819202122232425262728293031323334353637383940 |
- import {Image as ImageFixture} from 'sentry-fixture/image';
- import {
- type Entry as TEntry,
- type EntryDebugMeta as TEntryDebugMeta,
- type EntryRequest as TEntryRequest,
- EntryType,
- } from 'sentry/types';
- export function EventEntry(params = {}): TEntry {
- return {
- type: EntryType.MESSAGE,
- data: {
- formatted: 'Blocked script',
- },
- ...params,
- };
- }
- export function EntryRequest(params: Partial<TEntryRequest> = {}): TEntryRequest {
- return {
- type: EntryType.REQUEST,
- data: {
- apiTarget: null,
- method: 'GET',
- url: '/index',
- },
- ...params,
- };
- }
- export function EntryDebugMeta(params: Partial<TEntryDebugMeta> = {}): TEntryDebugMeta {
- return {
- type: EntryType.DEBUGMETA,
- data: {
- images: [ImageFixture()],
- },
- ...params,
- };
- }
|