Skip to content

Commit 38f6591

Browse files
committed
Update build files
1 parent ba7cad7 commit 38f6591

8 files changed

Lines changed: 22 additions & 13 deletions

File tree

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
export interface IAnalyticsPayload {
2+
roomId: string;
3+
category: string;
4+
action: string;
5+
eventType: string;
6+
timestamp: string;
7+
properties?: Record<string, any>;
8+
tabId?: string;
9+
}
110
/**
211
* Provides an accessor to push data for Analytics.
312
*/
@@ -6,9 +15,8 @@ export interface IAnalytics {
615
* Sends event data to server for Analytics
716
*
817
* @param roomId the roomId of the Room
9-
* @param event the event name
1018
* @param data the analytics data for the event
1119
* @return true
1220
*/
13-
sendEvent(roomId: string, event: string, data?: object): Promise<boolean>;
21+
sendEvent(roomId: string, data: IAnalyticsPayload): Promise<boolean>;
1422
}

definition/accessors/IAnalytics.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

server/accessors/Analytics.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import { IAnalytics } from '../../definition/accessors';
1+
import { IAnalytics, IAnalyticsPayload } from '../../definition/accessors';
22
import { AnalyticsBridge } from '../bridges/AnalyticsBridge';
33
export declare class Analytics implements IAnalytics {
44
private analyticsBridge;
55
private appId;
66
constructor(analyticsBridge: AnalyticsBridge, appId: string);
7-
sendEvent(roomId: string, event: string, data?: object): Promise<boolean>;
7+
sendEvent(roomId: string, data: IAnalyticsPayload): Promise<boolean>;
88
}

server/accessors/Analytics.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

server/accessors/Analytics.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1+
import { IAnalyticsPayload } from '../../definition/accessors';
12
import { BaseBridge } from './BaseBridge';
23
export declare abstract class AnalyticsBridge extends BaseBridge {
3-
doSendEvent(appId: string, roomId: string, event: string, data?: object): Promise<boolean>;
4-
protected abstract sendEvent(appId: string, roomId: string, event: string, data?: object): Promise<boolean>;
4+
doSendEvent(roomId: string, data: IAnalyticsPayload, appId: string): Promise<boolean>;
5+
protected abstract sendEvent(roomId: string, data: IAnalyticsPayload, appId: string): Promise<boolean>;
56
private hasAnalyticsPermission;
67
}

server/bridges/AnalyticsBridge.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

server/bridges/AnalyticsBridge.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)