Skip to content

Commit 7dff4d0

Browse files
Merge pull request #14 from pmu-tech/PPR-3116_add-new-promo-events
[PPR-3116]: Update EventName type to string
2 parents ab5e714 + 284e713 commit 7dff4d0

File tree

4 files changed

+8
-13
lines changed

4 files changed

+8
-13
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.7.3 (2025/08/25)
2+
3+
- Update EventName type to string
4+
15
## 0.7.1 / 0.7.2 (2024/09/20)
26

37
- fix includePropertiesInPrivacyModes for android,

README.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,7 @@ function privacyIncludeProperties(properties: [string], privacyModes?: string[],
8080
## Send events
8181

8282
```javascript
83-
export type ClickEvents = "click.action" | "click.navigation" | "click.download" | "click.exit";
84-
85-
export type PageEvents = "page.display" | "com.display";
86-
87-
export type EventName = ClickEvents | PageEvents;
83+
export type EventName = string;
8884
function sendEvent(eventName: EventName, params: Record<string, string>): void
8985
```
9086

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pmu-tech/react-native-piano-analytics",
3-
"version": "0.7.2",
3+
"version": "0.7.3",
44
"description": "Piano Analytics",
55
"main": "lib/commonjs/index",
66
"module": "lib/module/index",

src/types.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,5 @@ export type PrivacyMode =
44
| 'no-storage'
55
| 'no-consent'
66
| 'optout';
7-
export type ClickEvents =
8-
| 'click.action'
9-
| 'click.navigation'
10-
| 'click.download'
11-
| 'click.exit';
12-
export type PageEvents = 'page.display' | 'com.display';
13-
export type EventName = ClickEvents | PageEvents;
7+
8+
export type EventName = string;

0 commit comments

Comments
 (0)