forked from snowplow/snowplow-javascript-tracker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.ts
More file actions
16 lines (13 loc) · 676 Bytes
/
Copy pathindex.ts
File metadata and controls
16 lines (13 loc) · 676 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import { PayloadBuilder } from '@snowplow/tracker-core';
import { snowplowMediaPluginIntegration } from './snowplow-media-plugin';
export type AvailablePlugins = 'SnowplowMediaPlugin';
export type Integration = {
/**
* Find a matching event for the integration with a plugin and an event specification id map.
* The returned string should match what we expect as key coming from the configuration object on this specific plugin integration.
*/
detectMatchingEvent: (payloadBuilder: PayloadBuilder) => string | undefined;
};
export const integrations: Record<AvailablePlugins, Integration> = {
SnowplowMediaPlugin: snowplowMediaPluginIntegration,
} as const;