Skip to content

Commit

Permalink
Add missing types from API
Browse files Browse the repository at this point in the history
  • Loading branch information
greg-el committed Dec 13, 2023
1 parent e51386e commit 6976260
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
9 changes: 6 additions & 3 deletions api-docs/docs/browser-tracker/browser-tracker.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -215,9 +215,6 @@ export interface EnableAnonymousTrackingConfiguration {
stateStorageStrategy?: StateStorageStrategy;
}

// Warning: (ae-forgotten-export) The symbol "GetBatch" needs to be exported by the entry point index.module.d.ts
// Warning: (ae-forgotten-export) The symbol "PostBatch" needs to be exported by the entry point index.module.d.ts
//
// @public
export type EventBatch = GetBatch | PostBatch;

Expand All @@ -240,6 +237,9 @@ export interface FlushBufferConfiguration {
newBufferSize?: number;
}

// @public
export type GetBatch = string[];

// @public
export function newSession(trackers?: Array<string>): void;

Expand All @@ -258,6 +258,9 @@ export interface PageViewEvent {
// @public (undocumented)
export type Platform = "web" | "mob" | "pc" | "srv" | "app" | "tv" | "cnsl" | "iot";

// @public
export type PostBatch = Record<string, unknown>[];

// @public
export function preservePageViewId(trackers?: Array<string>): void;

Expand Down
4 changes: 4 additions & 0 deletions trackers/browser-tracker/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ import {
ClientSession,
RequestFailure,
EventBatch,
GetBatch,
PostBatch,
} from '@snowplow/browser-tracker-core';
import { version } from '@snowplow/tracker-core';

Expand Down Expand Up @@ -85,6 +87,8 @@ export {
ClientSession,
RequestFailure,
EventBatch,
GetBatch,
PostBatch,
};
export { version };
export * from './api';

0 comments on commit 6976260

Please sign in to comment.