Skip to content

Commit

Permalink
kinesis fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ashika112 committed Aug 9, 2022
1 parent 850788c commit 763609b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
9 changes: 7 additions & 2 deletions packages/analytics/src/Analytics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import {
AutoTrackPageViewOpts,
AutoTrackEventOpts,
PersonalizeAnalyticsEvent,
KinesisAnalyticsEvent,
} from './types';
import { PageViewTracker, EventTracker, SessionTracker } from './trackers';

Expand Down Expand Up @@ -236,7 +237,7 @@ export class AnalyticsClass {
* @param [provider] - name of the provider.
*/
public async record(
event: AnalyticsEvent | PersonalizeAnalyticsEvent,
event: AnalyticsEvent | PersonalizeAnalyticsEvent | KinesisAnalyticsEvent,
provider?: string
);
/**
Expand All @@ -253,7 +254,11 @@ export class AnalyticsClass {
metrics?: EventMetrics
);
public async record(
event: string | AnalyticsEvent | PersonalizeAnalyticsEvent,
event:
| string
| AnalyticsEvent
| PersonalizeAnalyticsEvent
| KinesisAnalyticsEvent,
providerOrAttributes?: string | EventAttributes,
metrics?: EventMetrics
) {
Expand Down
1 change: 1 addition & 0 deletions packages/analytics/src/types/Analytics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,3 +94,4 @@ export interface AnalyticsEvent {
}

export { PersonalizeAnalyticsEvent } from './Providers/AmazonPersonalizeProvider';
export { KinesisAnalyticsEvent } from './Providers/AWSKinesisProvider';

0 comments on commit 763609b

Please sign in to comment.