snowplow/snowplow-javascript-tracker

View on GitHub
plugins/browser-plugin-event-specifications/src/utils.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { EVENT_SPECIFICATION_SCHEMA } from './schemata';

export function createEventSpecificationContext(eventSpecificationId: string) {
  return {
    schema: EVENT_SPECIFICATION_SCHEMA,
    data: {
      id: eventSpecificationId,
    },
  };
}