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 { return { type: EntryType.REQUEST, data: { apiTarget: null, method: 'GET', url: '/index', }, ...params, }; } export function EntryDebugMeta(params: Partial = {}): TEntryDebugMeta { return { type: EntryType.DEBUGMETA, data: { images: [ImageFixture()], }, ...params, }; }