@streamlayer/sdk-web-analytics 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/analytics.d.ts +3 -2
- package/lib/invitation.d.ts +1 -1
- package/lib/polls.d.ts +7 -7
- package/package.json +9 -9
package/lib/analytics.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ import { InvitationAnalytics } from './invitation';
|
|
|
6
6
|
import { InteractionsAnalytics } from './interactions';
|
|
7
7
|
import { NotificationsAnalytics } from './notifications';
|
|
8
8
|
import { PollsAnalytics } from './polls';
|
|
9
|
+
import { AllowedCases } from './constants';
|
|
9
10
|
import '@streamlayer/sdk-web-features';
|
|
10
11
|
type AnalyticsMessages = {
|
|
11
12
|
games?: PlainMessage<GamesMessage>;
|
|
@@ -40,8 +41,8 @@ export declare class Analytics {
|
|
|
40
41
|
constructor(instance: StreamLayerContext);
|
|
41
42
|
connect: () => void;
|
|
42
43
|
disconnect: () => void;
|
|
43
|
-
write: <T extends
|
|
44
|
-
writeCommon: <T extends
|
|
44
|
+
write: <T extends keyof typeof AllowedCases = "invitation" | "notification" | "interactions" | "games" | "eventOpened">(key: T, value: AnalyticsMessages[T]) => void;
|
|
45
|
+
writeCommon: <T extends keyof PlainMessage<CommonData> = "category" | "eventId" | "kind" | "screenOrientation" | "sessionId" | "overlaySessionId" | "topicId" | "topicType" | "parentTopicId" | "parentTopicType" | "participantsCount" | "routeMap" | "trackTimestamp" | "topicSubType" | "country">(key: T, value: PlainMessage<CommonData>[T]) => void;
|
|
45
46
|
onConnect: (cb: OnMountCb) => void;
|
|
46
47
|
private connectToSDK;
|
|
47
48
|
}
|
package/lib/invitation.d.ts
CHANGED
package/lib/polls.d.ts
CHANGED
|
@@ -8,17 +8,17 @@ export declare class PollsAnalytics {
|
|
|
8
8
|
private analytics;
|
|
9
9
|
constructor(analytics: Analytics);
|
|
10
10
|
received: ({ questionId, questionType }: {
|
|
11
|
-
questionId?: string
|
|
12
|
-
questionType?: QuestionType
|
|
11
|
+
questionId?: string;
|
|
12
|
+
questionType?: QuestionType;
|
|
13
13
|
}) => void;
|
|
14
14
|
opened: ({ questionId, questionType, questionOpenedFrom, }: {
|
|
15
|
-
questionId?: string
|
|
16
|
-
questionType?: QuestionType
|
|
17
|
-
questionOpenedFrom?: "
|
|
15
|
+
questionId?: string;
|
|
16
|
+
questionType?: QuestionType;
|
|
17
|
+
questionOpenedFrom?: "list" | "notification";
|
|
18
18
|
}) => void;
|
|
19
19
|
voted: ({ questionId, questionType }: {
|
|
20
|
-
questionId?: string
|
|
21
|
-
questionType?: QuestionType
|
|
20
|
+
questionId?: string;
|
|
21
|
+
questionType?: QuestionType;
|
|
22
22
|
}) => void;
|
|
23
23
|
onboardingPassed: () => void;
|
|
24
24
|
navigated: () => void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@streamlayer/sdk-web-analytics",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"typings": "./lib/index.d.ts",
|
|
@@ -9,16 +9,16 @@
|
|
|
9
9
|
"package.json"
|
|
10
10
|
],
|
|
11
11
|
"peerDependencies": {
|
|
12
|
-
"@bufbuild/protobuf": "^1.
|
|
12
|
+
"@bufbuild/protobuf": "^1.10.0",
|
|
13
13
|
"@connectrpc/connect": "^1.4.0",
|
|
14
14
|
"nanoid": "3.3.7",
|
|
15
|
-
"@streamlayer/sl-eslib": "^5.
|
|
16
|
-
"@streamlayer/sdk-web-api": "^1.
|
|
17
|
-
"@streamlayer/sdk-web-interfaces": "^1.0.
|
|
18
|
-
"@streamlayer/sdk-web-
|
|
19
|
-
"@streamlayer/sdk-web-
|
|
20
|
-
"@streamlayer/
|
|
21
|
-
"@streamlayer/
|
|
15
|
+
"@streamlayer/sl-eslib": "^5.104.1",
|
|
16
|
+
"@streamlayer/sdk-web-api": "^1.1.0",
|
|
17
|
+
"@streamlayer/sdk-web-interfaces": "^1.0.1",
|
|
18
|
+
"@streamlayer/sdk-web-logger": "^1.0.1",
|
|
19
|
+
"@streamlayer/sdk-web-features": "^1.0.1",
|
|
20
|
+
"@streamlayer/feature-gamification": "^1.1.0",
|
|
21
|
+
"@streamlayer/sdk-web-core": "^1.0.1"
|
|
22
22
|
},
|
|
23
23
|
"exports": {
|
|
24
24
|
".": {
|