A modern and easy to use dashboard. 80+ integrations. 20K+ icons built in. Authentication out of the box. No YAML, drag and drop configuration.
export interface TracearrSource {
integrationId: string;
integrationName: string;
}
export type SourcedTracearrItem<T extends { id: string }> = T &
TracearrSource & {
key: string;
};
export const attachTracearrSource = <T extends { id: string }>(
items: readonly T[],
source: TracearrSource,
): SourcedTracearrItem<T>[] =>
items.map((item) => ({
...item,
...source,
key: `${source.integrationId}:${item.id}`,
}));