Skip to content

Commit

Permalink
update personalize type to accomodate string
Browse files Browse the repository at this point in the history
  • Loading branch information
ashika112 committed Aug 9, 2022
1 parent 763609b commit 9326beb
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/analytics/src/Providers/AWSKinesisProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ export class AWSKinesisProvider implements AnalyticsProvider {
* @param {Object} params - the params of an event
*/
public async record(params): Promise<boolean> {
debugger;
const credentials = await this._getCredentials();
if (!credentials) return Promise.resolve(false);

Expand Down
5 changes: 5 additions & 0 deletions packages/analytics/src/types/Providers/AWSKinesisProvider.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export interface KinesisAnalyticsEvent {
data: Blob | string;
partitionKey: string;
streamName: string;
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export interface PersonalizeAnalyticsEvent {
eventType?: 'Identify' | 'MediaAutoTrack';
eventType?: string;
userId?: string;
properties?: {
[key: string]: string;
Expand Down

0 comments on commit 9326beb

Please sign in to comment.