@inngageregistry/inngage-react 3.2.0 → 3.2.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/package.json +1 -1
- package/src/Inngage.ts +5 -19
- package/src/index.d.ts +2 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inngageregistry/inngage-react",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.1",
|
|
4
4
|
"description": "Inngage Plugin for React Native applications for marketing campaign optimization using Push Notification.",
|
|
5
5
|
"main": "src/index.ts",
|
|
6
6
|
"types": "src/index.d.ts",
|
package/src/Inngage.ts
CHANGED
|
@@ -71,27 +71,11 @@ interface SubscriptionProps {
|
|
|
71
71
|
email?: string
|
|
72
72
|
}
|
|
73
73
|
|
|
74
|
-
interface SendEventProps {
|
|
75
|
-
newEventRequest: {
|
|
76
|
-
app_token: string,
|
|
77
|
-
identifier: string,
|
|
78
|
-
event_name: string,
|
|
79
|
-
conversion_event: boolean,
|
|
80
|
-
conversion_value: number,
|
|
81
|
-
conversion_notid: string,
|
|
82
|
-
event_values: {
|
|
83
|
-
nome_promo: string,
|
|
84
|
-
categoria: string,
|
|
85
|
-
foto_promo: string,
|
|
86
|
-
redirect_link: string
|
|
87
|
-
}
|
|
88
|
-
},
|
|
89
|
-
}
|
|
90
|
-
|
|
91
74
|
interface SendEventProps {
|
|
92
75
|
appToken: string,
|
|
93
|
-
identifier: string,
|
|
94
76
|
eventName: string,
|
|
77
|
+
identifier?: string,
|
|
78
|
+
registration?: string,
|
|
95
79
|
conversionEvent?: boolean,
|
|
96
80
|
conversionValue?: number,
|
|
97
81
|
conversionNotId?: string,
|
|
@@ -164,8 +148,9 @@ const Inngage = {
|
|
|
164
148
|
|
|
165
149
|
SendEvent: async ({
|
|
166
150
|
appToken,
|
|
167
|
-
identifier,
|
|
168
151
|
eventName,
|
|
152
|
+
identifier,
|
|
153
|
+
registration,
|
|
169
154
|
conversionEvent,
|
|
170
155
|
conversionValue,
|
|
171
156
|
conversionNotId,
|
|
@@ -176,6 +161,7 @@ const Inngage = {
|
|
|
176
161
|
newEventRequest: {
|
|
177
162
|
app_token: appToken,
|
|
178
163
|
identifier: identifier,
|
|
164
|
+
registration: registration,
|
|
179
165
|
event_name: eventName,
|
|
180
166
|
conversion_event: conversionEvent ?? false,
|
|
181
167
|
conversion_value: conversionValue ?? 0,
|
package/src/index.d.ts
CHANGED
|
@@ -18,8 +18,9 @@ interface SubscriptionProps {
|
|
|
18
18
|
|
|
19
19
|
interface SendEventProps {
|
|
20
20
|
appToken: string,
|
|
21
|
-
identifier: string,
|
|
22
21
|
eventName: string,
|
|
22
|
+
identifier?: string,
|
|
23
|
+
registration?: string,
|
|
23
24
|
conversionEvent?: boolean,
|
|
24
25
|
conversionValue?: number,
|
|
25
26
|
conversionNotId?: string,
|