mapp-intelligence-reactnative-plugin 1.0.0 → 1.0.2
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/README.md +31 -7
- package/android/gradle.properties +3 -3
- package/android/src/main/java/com/mappinteligenceplugin/mapper/Util.kt +12 -4
- package/lib/commonjs/Converters.js +1 -1
- package/lib/commonjs/Converters.js.map +1 -1
- package/lib/commonjs/GlobalErrorHandler.js +2 -6
- package/lib/commonjs/GlobalErrorHandler.js.map +1 -1
- package/lib/commonjs/MappIntelligencePlugin.js +298 -0
- package/lib/commonjs/MappIntelligencePlugin.js.map +1 -0
- package/lib/commonjs/UseWebTracking.js +7 -11
- package/lib/commonjs/UseWebTracking.js.map +1 -1
- package/lib/commonjs/index.js +49 -378
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/promiseRejectionHandler.js.map +1 -1
- package/lib/module/Converters.js +1 -1
- package/lib/module/Converters.js.map +1 -1
- package/lib/module/GlobalErrorHandler.js +2 -6
- package/lib/module/GlobalErrorHandler.js.map +1 -1
- package/lib/module/MappIntelligencePlugin.js +292 -0
- package/lib/module/MappIntelligencePlugin.js.map +1 -0
- package/lib/module/UseWebTracking.js +6 -10
- package/lib/module/UseWebTracking.js.map +1 -1
- package/lib/module/index.js +5 -319
- package/lib/module/index.js.map +1 -1
- package/lib/module/promiseRejectionHandler.js.map +1 -1
- package/lib/typescript/src/Converters.d.ts +1 -1
- package/lib/typescript/src/Converters.d.ts.map +1 -1
- package/lib/typescript/src/DataTypes.d.ts +6 -6
- package/lib/typescript/src/DataTypes.d.ts.map +1 -1
- package/lib/typescript/src/GlobalErrorHandler.d.ts.map +1 -1
- package/lib/typescript/src/MappIntelligencePlugin.d.ts +201 -0
- package/lib/typescript/src/MappIntelligencePlugin.d.ts.map +1 -0
- package/lib/typescript/src/UseWebTracking.d.ts +2 -2
- package/lib/typescript/src/UseWebTracking.d.ts.map +1 -1
- package/lib/typescript/src/index.d.ts +5 -199
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/mapp-intelligence-reactnative-plugin.podspec +1 -1
- package/package.json +28 -24
- package/src/Converters.tsx +6 -6
- package/src/GlobalErrorHandler.tsx +3 -6
- package/src/MappIntelligencePlugin.tsx +394 -0
- package/src/UseWebTracking.tsx +13 -15
- package/src/index.tsx +5 -409
package/lib/module/index.js
CHANGED
|
@@ -1,321 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
ios: "- You have run 'pod install'\n",
|
|
5
|
-
default: ''
|
|
6
|
-
}) + '- You rebuilt the app after installing the package\n' + '- You are not using Expo Go\n';
|
|
7
|
-
export const MappIntelligencePlugin = NativeModules.MappinteligencePlugin ? NativeModules.MappinteligencePlugin : new Proxy({}, {
|
|
8
|
-
get() {
|
|
9
|
-
throw new Error(LINKING_ERROR);
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* Builds plugin with a provided configuration. After this method finishes, plugin is ready for use.
|
|
15
|
-
* @returns result if method executed succesfully or not
|
|
16
|
-
*/
|
|
17
|
-
export const build = () => {
|
|
18
|
-
console.log('build');
|
|
19
|
-
return MappIntelligencePlugin.build();
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* Initialize plugin with a provided trackIds and domain
|
|
24
|
-
* @param trackIDs array of trackIds
|
|
25
|
-
* @param domain tracking domain url
|
|
26
|
-
* @returns result if method executed succesfully or not
|
|
27
|
-
*/
|
|
28
|
-
export const initWithConfiguration = (trackIDs, domain) => {
|
|
29
|
-
console.log('initWithConfiguration');
|
|
30
|
-
return MappIntelligencePlugin.initWithConfiguration(trackIDs, domain);
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* Set log level to define what will be logged to the console
|
|
35
|
-
* @param level log level
|
|
36
|
-
* @returns result if method executed succesfully or not
|
|
37
|
-
*/
|
|
38
|
-
export const setLogLevel = level => {
|
|
39
|
-
console.log('setLogLevel - ' + level.valueOf());
|
|
40
|
-
return MappIntelligencePlugin.setLogLevel(level.valueOf());
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
* Set exception log level
|
|
45
|
-
* @param level one of the predefined exception types
|
|
46
|
-
* @returns result if method executed succesfully or not
|
|
47
|
-
*/
|
|
48
|
-
export const setExceptionLogLevel = level => {
|
|
49
|
-
return MappIntelligencePlugin.setExceptionLogLevel(level);
|
|
50
|
-
};
|
|
51
|
-
|
|
52
|
-
/**
|
|
53
|
-
* Sets interval in minutes, for periodic job to execute and send tracked requests to a server
|
|
54
|
-
* @param interval number in minutes. The minimum is 15, limited by Android specification for a worker.
|
|
55
|
-
* @returns result if method executed succesfully or not
|
|
56
|
-
*/
|
|
57
|
-
export const setRequestInterval = interval => {
|
|
58
|
-
console.log('setRequestInterval');
|
|
59
|
-
return MappIntelligencePlugin.setRequestInterval(interval);
|
|
60
|
-
};
|
|
61
|
-
|
|
62
|
-
/**
|
|
63
|
-
* If sets to true, request will be send in a batch (multiple records in single network call);
|
|
64
|
-
* Otherwise records are sent one record by one network call.
|
|
65
|
-
* @param enabled speciffy if batch is enabled or disabled
|
|
66
|
-
* @returns result if method executed succesfully or not
|
|
67
|
-
*/
|
|
68
|
-
export const setBatchSupportEnabled = enabled => {
|
|
69
|
-
console.log('setBatchSupportEnabled');
|
|
70
|
-
return MappIntelligencePlugin.setBatchSupportEnabled(enabled);
|
|
71
|
-
};
|
|
72
|
-
|
|
73
|
-
/**
|
|
74
|
-
* iOS Only - Enable sending data while application is in a background state
|
|
75
|
-
* @param enabled
|
|
76
|
-
* @returns result if method executed succesfully or not
|
|
77
|
-
*/
|
|
78
|
-
export const setEnableBackgroundSendout = enabled => {
|
|
79
|
-
console.log('setEnableBackgroundSendout');
|
|
80
|
-
return MappIntelligencePlugin.setEnableBackgroundSendout(enabled);
|
|
81
|
-
};
|
|
82
|
-
|
|
83
|
-
/**
|
|
84
|
-
* Set number of track records to send in a sigle batch request
|
|
85
|
-
* @param size number of track records
|
|
86
|
-
* @returns result if method executed succesfully or not
|
|
87
|
-
*/
|
|
88
|
-
export const setBatchSupportSize = size => {
|
|
89
|
-
console.log('setBatchSupportSize');
|
|
90
|
-
return MappIntelligencePlugin.setBatchSupportSize(size);
|
|
91
|
-
};
|
|
92
|
-
|
|
93
|
-
/**
|
|
94
|
-
* Requests are buffered in a queue before sending. This option set size of the queue.
|
|
95
|
-
* @param numberOfRequsts size of a queue for buffering requests
|
|
96
|
-
* @returns result if method executed succesfully or not
|
|
97
|
-
*/
|
|
98
|
-
export const setRequestPerQueue = numberOfRequsts => {
|
|
99
|
-
console.log('setRequestPerQueue');
|
|
100
|
-
return MappIntelligencePlugin.setRequestPerQueue(numberOfRequsts);
|
|
101
|
-
};
|
|
102
|
-
|
|
103
|
-
/**
|
|
104
|
-
* Control if migration should be applied from a previos SDK version.
|
|
105
|
-
* @param migrate true to apply migration on the initialization process; otherwise false
|
|
106
|
-
* @returns result if method executed succesfully or not
|
|
107
|
-
*/
|
|
108
|
-
export const setShouldMigrate = migrate => {
|
|
109
|
-
console.log('setShouldMigrate');
|
|
110
|
-
return MappIntelligencePlugin.setShouldMigrate(migrate);
|
|
111
|
-
};
|
|
112
|
-
|
|
113
|
-
/**
|
|
114
|
-
* Based on the result of the user's conset to allow personalized tracking or not,
|
|
115
|
-
* enable anonymous tracking when no consent. If enabled, everId will be deleted (and not generated until anonymous tracking is enabled)
|
|
116
|
-
* @param anonymous true to enable anonymous tracking; false to disable it.
|
|
117
|
-
* @returns result if method executed succesfully or not
|
|
118
|
-
*/
|
|
119
|
-
export const setAnonymousTracking = anonymous => {
|
|
120
|
-
console.log('setAnonymousTracking');
|
|
121
|
-
return MappIntelligencePlugin.setAnonymousTracking(anonymous);
|
|
122
|
-
};
|
|
123
|
-
|
|
124
|
-
/**
|
|
125
|
-
* Send application version as parameter in every request
|
|
126
|
-
* @param flag - true to set sending application version in every request; otherwise false.
|
|
127
|
-
* @returns result if method executed succesfully or not
|
|
128
|
-
*/
|
|
129
|
-
export const setSendAppVersionInEveryRequest = flag => {
|
|
130
|
-
console.log('setSendAppVersionInEveryRequest');
|
|
131
|
-
return MappIntelligencePlugin.setSendAppVersionInEveryRequest(flag);
|
|
132
|
-
};
|
|
133
|
-
|
|
134
|
-
/**
|
|
135
|
-
* To enable user matching between Engage and Intelligence system
|
|
136
|
-
* @param enabled true to enable user matching; false to disable it.
|
|
137
|
-
* @returns result if method executed succesfully or not
|
|
138
|
-
*/
|
|
139
|
-
export const setEnableUserMatching = enabled => {
|
|
140
|
-
console.log('setEnableUserMatching');
|
|
141
|
-
return MappIntelligencePlugin.setEnableUserMatching(enabled);
|
|
142
|
-
};
|
|
143
|
-
|
|
144
|
-
/**
|
|
145
|
-
* Track single page by page name
|
|
146
|
-
* @param pageTitle page name for tracking
|
|
147
|
-
* @returns result if method executed succesfully or not
|
|
148
|
-
*/
|
|
149
|
-
export const trackPage = pageTitle => {
|
|
150
|
-
console.log('trackPage');
|
|
151
|
-
return MappIntelligencePlugin.trackPage(pageTitle);
|
|
152
|
-
};
|
|
153
|
-
|
|
154
|
-
/**
|
|
155
|
-
* Detailed page tracking with additional parameters that can be set to track
|
|
156
|
-
* @param pageTitle - name of the page
|
|
157
|
-
* @param pageParameters - parameters for the page
|
|
158
|
-
* @param sessionParamters - parameters for the current session
|
|
159
|
-
* @param userCategories - predefined user categories
|
|
160
|
-
* @param ecommerceParameters - predefined eCommerce parameters
|
|
161
|
-
* @param campaignParameters - predefined campaign parameters
|
|
162
|
-
* @returns result if method executed succesfully or not
|
|
163
|
-
*/
|
|
164
|
-
export const trackCustomPage = (pageTitle, pageParameters, sessionParamters, userCategories, ecommerceParameters, campaignParameters) => {
|
|
165
|
-
console.log('trackCustomPage');
|
|
166
|
-
return MappIntelligencePlugin.trackCustomPage(pageTitle, convertPageParameters(pageParameters), convertSessionParamters(sessionParamters), convertUserCategories(userCategories), convertEcommerceParameters(ecommerceParameters), convertCampaignParameters(campaignParameters));
|
|
167
|
-
};
|
|
168
|
-
|
|
169
|
-
/**
|
|
170
|
-
* Custom page tracking with option to track some custom parameters
|
|
171
|
-
* @param pageTitle - name of the page
|
|
172
|
-
* @param pageParameters - custom parameters that can be tracked
|
|
173
|
-
* @returns result if method executed succesfully or not
|
|
174
|
-
*/
|
|
175
|
-
export const trackPageWithCustomData = (pageTitle, pageParameters) => {
|
|
176
|
-
console.log('trackPageWithCustomData');
|
|
177
|
-
const params = pageParameters?.entries();
|
|
178
|
-
const data = params != null ? Object.fromEntries(params) : {};
|
|
179
|
-
return MappIntelligencePlugin.trackPageWithCustomData(data, pageTitle);
|
|
180
|
-
};
|
|
181
|
-
|
|
182
|
-
/**
|
|
183
|
-
* Track user action
|
|
184
|
-
* @param name - action name
|
|
185
|
-
* @param eventParameters - predefined event parameters
|
|
186
|
-
* @param sessionParamters - predefined session parameters
|
|
187
|
-
* @param userCategories - predefined user categories
|
|
188
|
-
* @param ecommerceParameters - predefined ecommerce parameters
|
|
189
|
-
* @param campaignParameters - predefined campaign parameters
|
|
190
|
-
* @returns result if method executed succesfully or not
|
|
191
|
-
*/
|
|
192
|
-
export const trackAction = (name, eventParameters, sessionParamters, userCategories, ecommerceParameters, campaignParameters) => {
|
|
193
|
-
console.log('trackAction');
|
|
194
|
-
return MappIntelligencePlugin.trackAction(name, convertEventParameters(eventParameters), convertSessionParamters(sessionParamters), convertUserCategories(userCategories), convertEcommerceParameters(ecommerceParameters), convertCampaignParameters(campaignParameters));
|
|
195
|
-
};
|
|
196
|
-
|
|
197
|
-
/**
|
|
198
|
-
* Track URL's with included deeplinks, media parameters
|
|
199
|
-
* @param url single url that can contain some query parameters for tracking
|
|
200
|
-
* @param mediaCode media code to track
|
|
201
|
-
* @returns result if method executed succesfully or not
|
|
202
|
-
*/
|
|
203
|
-
export const trackUrl = (url, mediaCode) => {
|
|
204
|
-
return MappIntelligencePlugin.trackUrl(url, mediaCode);
|
|
205
|
-
};
|
|
206
|
-
|
|
207
|
-
/**
|
|
208
|
-
* Track video or audio events - starting, playing, pausing/stoping, ending of playing
|
|
209
|
-
* @param mediaEvent predefined events to track
|
|
210
|
-
* @returns result if method executed succesfully or not
|
|
211
|
-
*/
|
|
212
|
-
export const trackMedia = mediaEvent => {
|
|
213
|
-
console.log('Execute MediaEvent');
|
|
214
|
-
return MappIntelligencePlugin.trackMedia(convertMediaEvent(mediaEvent));
|
|
215
|
-
};
|
|
216
|
-
|
|
217
|
-
/**
|
|
218
|
-
* Record data about handled exceptions
|
|
219
|
-
* @param e caught exception
|
|
220
|
-
* @param stackTrace stack trace of the caught exception
|
|
221
|
-
* @returns result if method executed succesfully or not
|
|
222
|
-
*/
|
|
223
|
-
export const trackException = (e, stackTrace) => {
|
|
224
|
-
return MappIntelligencePlugin.trackException(e.name, e.message?.slice(0, 1000), stackTrace?.slice(0, 1000));
|
|
225
|
-
};
|
|
226
|
-
|
|
227
|
-
/**
|
|
228
|
-
* Record data about handled exception
|
|
229
|
-
* @param name name or type of the exception if can be obtained
|
|
230
|
-
* @param message message of the current caught exception
|
|
231
|
-
* @param stackTrace stack trace of the caught exception
|
|
232
|
-
* @returns result if method executed succesfully or not
|
|
233
|
-
*/
|
|
234
|
-
export const trackExceptionWithName = (name, message, stackTrace) => {
|
|
235
|
-
return MappIntelligencePlugin.trackException(name, message.slice(0, 1000), stackTrace?.slice(0, 1000));
|
|
236
|
-
};
|
|
237
|
-
|
|
238
|
-
/**
|
|
239
|
-
* Set unique everId as identifier for a single device/user
|
|
240
|
-
* @param everId unique identifier in the tracking system
|
|
241
|
-
* @returns result if method executed succesfully or not
|
|
242
|
-
*/
|
|
243
|
-
export const setEverId = everId => {
|
|
244
|
-
console.log('setEverId');
|
|
245
|
-
return MappIntelligencePlugin.setEverId(everId);
|
|
246
|
-
};
|
|
247
|
-
|
|
248
|
-
/**
|
|
249
|
-
* Returns current everId of a device
|
|
250
|
-
* @returns everId
|
|
251
|
-
*/
|
|
252
|
-
export const getEverId = () => {
|
|
253
|
-
return MappIntelligencePlugin.getEverId();
|
|
254
|
-
};
|
|
255
|
-
|
|
256
|
-
/**
|
|
257
|
-
* Check if plugin is initialized and ready to use
|
|
258
|
-
* @returns true if plugin is ready to use; false otherwise.
|
|
259
|
-
*/
|
|
260
|
-
export const isInitialized = () => {
|
|
261
|
-
return MappIntelligencePlugin.isInitialized();
|
|
262
|
-
};
|
|
263
|
-
|
|
264
|
-
/**
|
|
265
|
-
* Temporary sessionId is used when anonymous tracking is enabled to provide
|
|
266
|
-
* anonymous tracking of a single session
|
|
267
|
-
* @param sessionId unique session identifier
|
|
268
|
-
* @returns result if method executed succesfully or not
|
|
269
|
-
*/
|
|
270
|
-
export const setTemporarySessionId = sessionId => {
|
|
271
|
-
console.log('setTemporarySessionId');
|
|
272
|
-
return MappIntelligencePlugin.setTemporarySessionId(sessionId);
|
|
273
|
-
};
|
|
274
|
-
|
|
275
|
-
/**
|
|
276
|
-
* In some cases, it is necessary to exclude users completely from tracking.
|
|
277
|
-
* For this purpose, the SDK provides an opt-out option.
|
|
278
|
-
* Internally, calling this method will delete all current tracking data cached in the database (if sendCurrentData is set to false), cancel the sending of requests, terminate the WorkManager, and disable all incoming tracking requests.
|
|
279
|
-
* @param sendData true to send recorded data before opt-out
|
|
280
|
-
* @returns result if method executed succesfully or not
|
|
281
|
-
*/
|
|
282
|
-
export const optOut = sendData => {
|
|
283
|
-
return MappIntelligencePlugin.optOut(sendData);
|
|
284
|
-
};
|
|
285
|
-
|
|
286
|
-
/**
|
|
287
|
-
* Disables opt-out, and resets tracking to enabled.
|
|
288
|
-
* @param sendData true to send recorded data before opt-in
|
|
289
|
-
* @returns result if method executed succesfully or not
|
|
290
|
-
*/
|
|
291
|
-
export const optIn = sendData => {
|
|
292
|
-
return MappIntelligencePlugin.optIn(sendData);
|
|
293
|
-
};
|
|
294
|
-
|
|
295
|
-
/**
|
|
296
|
-
* Reset all webtrekk configuration. After this, new init with settings must be called before using plugin.
|
|
297
|
-
* @returns result if method executed succesfully or not
|
|
298
|
-
*/
|
|
299
|
-
export const reset = () => {
|
|
300
|
-
return MappIntelligencePlugin.reset();
|
|
301
|
-
};
|
|
302
|
-
|
|
303
|
-
/**
|
|
304
|
-
* When called, data will be immediately sent.
|
|
305
|
-
* The request will then be deleted from the database, cleaning it.
|
|
306
|
-
* Please note that the application must be started and visible to use this method.
|
|
307
|
-
* @returns result if method executed succesfully or not
|
|
308
|
-
*/
|
|
309
|
-
export const sendRequestsAndClean = () => {
|
|
310
|
-
return MappIntelligencePlugin.sendRequestsAndClean();
|
|
311
|
-
};
|
|
312
|
-
|
|
313
|
-
/**
|
|
314
|
-
* Get active configuration of the native SDK and returns it as a string
|
|
315
|
-
* @returns string representation of the active configuration
|
|
316
|
-
*/
|
|
317
|
-
export const printCurrentConfig = () => {
|
|
318
|
-
return MappIntelligencePlugin.getCurrentConfig();
|
|
319
|
-
};
|
|
1
|
+
export { MappIntelligencePlugin } from './MappIntelligencePlugin';
|
|
2
|
+
export * from './Converters';
|
|
3
|
+
export * from './DataTypes';
|
|
320
4
|
export * from './GlobalErrorHandler';
|
|
5
|
+
export { useWebTracking } from './UseWebTracking';
|
|
6
|
+
export * from './promiseRejectionHandler';
|
|
321
7
|
//# sourceMappingURL=index.js.map
|
package/lib/module/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["MappIntelligencePlugin","useWebTracking"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":"AAAA,SAASA,sBAAsB,QAAQ,0BAA0B;AACjE,cAAc,cAAc;AAC5B,cAAc,aAAa;AAC3B,cAAc,sBAAsB;AACpC,SAASC,cAAc,QAAQ,kBAAkB;AACjD,cAAc,2BAA2B","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["polyfillGlobal","require","Promise","tracking","defaultHandler","id","error","undefined","message","stack","stringValue","Object","prototype","toString","call","Error","JSON","stringify","warning","console","warn","handler","getUnhandledPromiseRejectionTracker","setUnhandledPromiseRejectionTracker","tracker","enable","allRejections","onUnhandled"],"sourceRoot":"../../src","sources":["promiseRejectionHandler.tsx"],"mappings":"AAAA,YAAY;;AAEZ,MAAM;EACJA;AACF,CAAC,GAAGC,OAAO,CAAC,oDAAoD,CAAC;AACjE,MAAMC,OAAO,GAAGD,OAAO,CAAC,qCAAqC,CAAC;AAE9DA,OAAO,CAAC,2BAA2B,CAAC;AACpCA,OAAO,CAAC,8BAA8B,CAAC;AAEvC,MAAME,QAAQ,GAAGF,OAAO,CAAC,yCAAyC,CAAC;;AAEnE;AACA,MAAMG,cAAc,GAAGA,CAACC,EAAE,EAAEC,KAAK,KAAK;EACpCA,KAAK,GAAGA,KAAK,KAAKC,SAAS,GAAG,CAAC,CAAC,GAAGD,KAAK;EACxC,IAAIE,OAAO;EACX,IAAIC,KAAK;EAET,MAAMC,WAAW,GAAGC,MAAM,CAACC,SAAS,CAACC,QAAQ,CAACC,IAAI,CAACR,KAAK,CAAC;EACzD,IAAII,WAAW,KAAK,gBAAgB,EAAE;IACpCF,OAAO,GAAGO,KAAK,CAACH,SAAS,CAACC,QAAQ,CAACC,IAAI,CAACR,KAAK,CAAC;IAC9CG,KAAK,GAAGH,KAAK,CAACG,KAAK;EACrB,CAAC,MAAM;IACL,IAAI;MACFD,OAAO,GAAGP,OAAO,CAAC,eAAe,CAAC,CAACK,KAAK,CAAC;IAC3C,CAAC,CAAC,MAAM;MACNE,OAAO,GAAG,OAAOF,KAAK,KAAK,QAAQ,GAAGA,KAAK,GAAGU,IAAI,CAACC,SAAS,CAACX,KAAK,CAAC;IACrE;EACF;EAEA,MAAMY,OAAO,
|
|
1
|
+
{"version":3,"names":["polyfillGlobal","require","Promise","tracking","defaultHandler","id","error","undefined","message","stack","stringValue","Object","prototype","toString","call","Error","JSON","stringify","warning","console","warn","handler","getUnhandledPromiseRejectionTracker","setUnhandledPromiseRejectionTracker","tracker","enable","allRejections","onUnhandled"],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,OAAO,MAAME,mCAAmC,GAAIC,OAAO,IAAK;EAC9DH,OAAO,GAAGG,OAAO;EAEjBxB,cAAc,CAAC,SAAS,EAAE,MAAM;IAC9BG,QAAQ,CAACsB,MAAM,CAAC;MACdC,aAAa,EAAE,IAAI;MACnBC,WAAW,EAAEH;IACf,CAAC,CAAC;IAEF,OAAOtB,OAAO;EAChB,CAAC,CAAC;AACJ,CAAC","ignoreList":[]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { UserCategories, PageParameters, SessionParameters, EcommerceParameters, CampaignParameters, EventParameters, MediaParameteres, MediaEvent } from './DataTypes';
|
|
2
2
|
export declare function convertUserCategories(userCategories?: UserCategories | null): Object | null;
|
|
3
3
|
export declare function convertPageParameters(pageParameters?: PageParameters | null): Object | null;
|
|
4
4
|
export declare function convertSessionParamters(sessionParamaters?: SessionParameters | null): Object | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Converters.d.ts","sourceRoot":"","sources":["../../../src/Converters.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,
|
|
1
|
+
{"version":3,"file":"Converters.d.ts","sourceRoot":"","sources":["../../../src/Converters.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,cAAc,EACd,cAAc,EACd,iBAAiB,EACjB,mBAAmB,EACnB,kBAAkB,EAClB,eAAe,EACf,gBAAgB,EAChB,UAAU,EACX,MAAM,aAAa,CAAC;AAGrB,wBAAgB,qBAAqB,CAAC,cAAc,CAAC,EAAE,cAAc,GAAG,IAAI,iBA8B3E;AAED,wBAAgB,qBAAqB,CACnC,cAAc,CAAC,EAAE,cAAc,GAAG,IAAI,GACrC,MAAM,GAAG,IAAI,CAgBf;AAED,wBAAgB,uBAAuB,CACrC,iBAAiB,CAAC,EAAE,iBAAiB,GAAG,IAAI,GAC3C,MAAM,GAAG,IAAI,CAOf;AAED,wBAAgB,0BAA0B,CACxC,mBAAmB,CAAC,EAAE,mBAAmB,GAAG,IAAI,GAC/C,MAAM,GAAG,IAAI,CAiDf;AAED,wBAAgB,yBAAyB,CACvC,kBAAkB,CAAC,EAAE,kBAAkB,GAAG,IAAI,GAC7C,MAAM,GAAG,IAAI,CAiBf;AAED,wBAAgB,sBAAsB,CACpC,KAAK,CAAC,EAAE,eAAe,GAAG,IAAI,GAC7B,MAAM,GAAG,IAAI,CAef;AAED,wBAAgB,sBAAsB,CACpC,UAAU,CAAC,EAAE,gBAAgB,GAAG,IAAI,GACnC,MAAM,GAAG,IAAI,CAoBf;AAED,wBAAgB,iBAAiB,CAC/B,UAAU,CAAC,EAAE,UAAU,GAAG,IAAI,GAC7B,MAAM,GAAG,IAAI,CAwBf"}
|
|
@@ -139,12 +139,12 @@ export declare enum MediaAction {
|
|
|
139
139
|
eof = "eof"
|
|
140
140
|
}
|
|
141
141
|
export declare enum LogLevel {
|
|
142
|
-
all = 1
|
|
143
|
-
debug = 2
|
|
144
|
-
warning = 3
|
|
145
|
-
error = 4
|
|
146
|
-
fault = 5
|
|
147
|
-
info = 6
|
|
142
|
+
all = 1,
|
|
143
|
+
debug = 2,
|
|
144
|
+
warning = 3,
|
|
145
|
+
error = 4,
|
|
146
|
+
fault = 5,
|
|
147
|
+
info = 6,
|
|
148
148
|
none = 7
|
|
149
149
|
}
|
|
150
150
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataTypes.d.ts","sourceRoot":"","sources":["../../../src/DataTypes.tsx"],"names":[],"mappings":"AAAA,UAAU,qBAAqB;IAC7B,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,MAAM,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI,CAAC;IACpC,UAAU,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI,CAAC;CACzC;AACD,MAAM,MAAM,cAAc,GAAG,QAAQ,CAAC,qBAAqB,CAAC,CAAC;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[],"mappings":"
|
|
1
|
+
{"version":3,"file":"GlobalErrorHandler.d.ts","sourceRoot":"","sources":["../../../src/GlobalErrorHandler.tsx"],"names":[],"mappings":"AAQA,MAAM,MAAM,kBAAkB,GAAG,CAC/B,KAAK,EAAE,GAAG,EACV,OAAO,EAAE,OAAO,GAAG,SAAS,KACzB,IAAI,CAAC;AAgBV,eAAO,MAAM,qBAAqB,wBACX,KAAK,WAAW,OAAO,KAAK,EAAE,qCACrC,kBAAkB,KAC/B,IAwBF,CAAC"}
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
import type { LogLevel, ExceptionType, PageParameters, SessionParameters, UserCategories, EcommerceParameters, CampaignParameters, EventParameters, MediaEvent } from './DataTypes';
|
|
2
|
+
export declare const MappIntelligencePlugin: {
|
|
3
|
+
/**
|
|
4
|
+
* Builds plugin with a provided configuration. After this method finishes, plugin is ready for use.
|
|
5
|
+
* @returns result if method executed succesfully or not
|
|
6
|
+
*/
|
|
7
|
+
build: () => Promise<number>;
|
|
8
|
+
/**
|
|
9
|
+
* Initialize plugin with a provided trackIds and domain
|
|
10
|
+
* @param trackIDs array of trackIds
|
|
11
|
+
* @param domain tracking domain url
|
|
12
|
+
* @returns result if method executed succesfully or not
|
|
13
|
+
*/
|
|
14
|
+
initWithConfiguration: (trackIDs: number[], domain: string) => Promise<number>;
|
|
15
|
+
/**
|
|
16
|
+
* Set log level to define what will be logged to the console
|
|
17
|
+
* @param level log level
|
|
18
|
+
* @returns result if method executed succesfully or not
|
|
19
|
+
*/
|
|
20
|
+
setLogLevel: (level: LogLevel) => Promise<number>;
|
|
21
|
+
/**
|
|
22
|
+
* Set exception log level
|
|
23
|
+
* @param level one of the predefined exception types
|
|
24
|
+
* @returns result if method executed succesfully or not
|
|
25
|
+
*/
|
|
26
|
+
setExceptionLogLevel: (level: ExceptionType) => Promise<number>;
|
|
27
|
+
/**
|
|
28
|
+
* Sets interval in minutes, for periodic job to execute and send tracked requests to a server
|
|
29
|
+
* @param interval number in minutes. The minimum is 15, limited by Android specification for a worker.
|
|
30
|
+
* @returns result if method executed succesfully or not
|
|
31
|
+
*/
|
|
32
|
+
setRequestInterval: (interval: number) => Promise<number>;
|
|
33
|
+
/**
|
|
34
|
+
* If sets to true, request will be send in a batch (multiple records in single network call);
|
|
35
|
+
* Otherwise records are sent one record by one network call.
|
|
36
|
+
* @param enabled speciffy if batch is enabled or disabled
|
|
37
|
+
* @returns result if method executed succesfully or not
|
|
38
|
+
*/
|
|
39
|
+
setBatchSupportEnabled: (enabled: boolean) => Promise<number>;
|
|
40
|
+
/**
|
|
41
|
+
* iOS Only - Enable sending data while application is in a background state
|
|
42
|
+
* @param enabled
|
|
43
|
+
* @returns result if method executed succesfully or not
|
|
44
|
+
*/
|
|
45
|
+
setEnableBackgroundSendout: (enabled: boolean) => Promise<number>;
|
|
46
|
+
/**
|
|
47
|
+
* Set number of track records to send in a sigle batch request
|
|
48
|
+
* @param size number of track records
|
|
49
|
+
* @returns result if method executed succesfully or not
|
|
50
|
+
*/
|
|
51
|
+
setBatchSupportSize: (size: number) => Promise<number>;
|
|
52
|
+
/**
|
|
53
|
+
* Requests are buffered in a queue before sending. This option set size of the queue.
|
|
54
|
+
* @param numberOfRequsts size of a queue for buffering requests
|
|
55
|
+
* @returns result if method executed succesfully or not
|
|
56
|
+
*/
|
|
57
|
+
setRequestPerQueue: (numberOfRequsts: number) => Promise<number>;
|
|
58
|
+
/**
|
|
59
|
+
* Control if migration should be applied from a previos SDK version.
|
|
60
|
+
* @param migrate true to apply migration on the initialization process; otherwise false
|
|
61
|
+
* @returns result if method executed succesfully or not
|
|
62
|
+
*/
|
|
63
|
+
setShouldMigrate: (migrate: boolean) => Promise<number>;
|
|
64
|
+
/**
|
|
65
|
+
* Based on the result of the user's conset to allow personalized tracking or not,
|
|
66
|
+
* enable anonymous tracking when no consent. If enabled, everId will be deleted (and not generated until anonymous tracking is enabled)
|
|
67
|
+
* @param anonymous true to enable anonymous tracking; false to disable it.
|
|
68
|
+
* @returns result if method executed succesfully or not
|
|
69
|
+
*/
|
|
70
|
+
setAnonymousTracking: (anonymous: boolean) => Promise<number>;
|
|
71
|
+
/**
|
|
72
|
+
* Send application version as parameter in every request
|
|
73
|
+
* @param flag - true to set sending application version in every request; otherwise false.
|
|
74
|
+
* @returns result if method executed succesfully or not
|
|
75
|
+
*/
|
|
76
|
+
setSendAppVersionInEveryRequest: (flag: boolean) => Promise<number>;
|
|
77
|
+
/**
|
|
78
|
+
* To enable user matching between Engage and Intelligence system
|
|
79
|
+
* @param enabled true to enable user matching; false to disable it.
|
|
80
|
+
* @returns result if method executed succesfully or not
|
|
81
|
+
*/
|
|
82
|
+
setEnableUserMatching: (enabled: boolean) => Promise<number>;
|
|
83
|
+
/**
|
|
84
|
+
* Track single page by page name
|
|
85
|
+
* @param pageTitle page name for tracking
|
|
86
|
+
* @returns result if method executed succesfully or not
|
|
87
|
+
*/
|
|
88
|
+
trackPage: (pageTitle: string) => Promise<number>;
|
|
89
|
+
/**
|
|
90
|
+
* Detailed page tracking with additional parameters that can be set to track
|
|
91
|
+
* @param pageTitle - name of the page
|
|
92
|
+
* @param pageParameters - parameters for the page
|
|
93
|
+
* @param sessionParamters - parameters for the current session
|
|
94
|
+
* @param userCategories - predefined user categories
|
|
95
|
+
* @param ecommerceParameters - predefined eCommerce parameters
|
|
96
|
+
* @param campaignParameters - predefined campaign parameters
|
|
97
|
+
* @returns result if method executed succesfully or not
|
|
98
|
+
*/
|
|
99
|
+
trackCustomPage: (pageTitle: string, pageParameters?: PageParameters | null, sessionParamters?: SessionParameters | null, userCategories?: UserCategories | null, ecommerceParameters?: EcommerceParameters | null, campaignParameters?: CampaignParameters | null) => Promise<number>;
|
|
100
|
+
/**
|
|
101
|
+
* Custom page tracking with option to track some custom parameters
|
|
102
|
+
* @param pageTitle - name of the page
|
|
103
|
+
* @param pageParameters - custom parameters that can be tracked
|
|
104
|
+
* @returns result if method executed succesfully or not
|
|
105
|
+
*/
|
|
106
|
+
trackPageWithCustomData: (pageTitle: string, pageParameters: Map<string, string> | null) => Promise<number>;
|
|
107
|
+
/**
|
|
108
|
+
* Track user action
|
|
109
|
+
* @param name - action name
|
|
110
|
+
* @param eventParameters - predefined event parameters
|
|
111
|
+
* @param sessionParamters - predefined session parameters
|
|
112
|
+
* @param userCategories - predefined user categories
|
|
113
|
+
* @param ecommerceParameters - predefined ecommerce parameters
|
|
114
|
+
* @param campaignParameters - predefined campaign parameters
|
|
115
|
+
* @returns result if method executed succesfully or not
|
|
116
|
+
*/
|
|
117
|
+
trackAction: (name: string, eventParameters?: EventParameters | null, sessionParamters?: SessionParameters | null, userCategories?: UserCategories | null, ecommerceParameters?: EcommerceParameters | null, campaignParameters?: CampaignParameters | null) => Promise<number>;
|
|
118
|
+
/**
|
|
119
|
+
* Track URL's with included deeplinks, media parameters
|
|
120
|
+
* @param url single url that can contain some query parameters for tracking
|
|
121
|
+
* @param mediaCode media code to track
|
|
122
|
+
* @returns result if method executed succesfully or not
|
|
123
|
+
*/
|
|
124
|
+
trackUrl: (url: string, mediaCode?: string | null) => Promise<number>;
|
|
125
|
+
/**
|
|
126
|
+
* Track video or audio events - starting, playing, pausing/stoping, ending of playing
|
|
127
|
+
* @param mediaEvent predefined events to track
|
|
128
|
+
* @returns result if method executed succesfully or not
|
|
129
|
+
*/
|
|
130
|
+
trackMedia: (mediaEvent: MediaEvent) => Promise<number>;
|
|
131
|
+
/**
|
|
132
|
+
* Record data about handled exceptions
|
|
133
|
+
* @param e caught exception
|
|
134
|
+
* @param stackTrace stack trace of the caught exception
|
|
135
|
+
* @returns result if method executed succesfully or not
|
|
136
|
+
*/
|
|
137
|
+
trackException: (e: Error, stackTrace?: string | null) => Promise<number>;
|
|
138
|
+
/**
|
|
139
|
+
* Record data about handled exception
|
|
140
|
+
* @param name name or type of the exception if can be obtained
|
|
141
|
+
* @param message message of the current caught exception
|
|
142
|
+
* @param stackTrace stack trace of the caught exception
|
|
143
|
+
* @returns result if method executed succesfully or not
|
|
144
|
+
*/
|
|
145
|
+
trackExceptionWithName: (name: string, message: string, stackTrace?: string | null) => Promise<number>;
|
|
146
|
+
/**
|
|
147
|
+
* Set unique everId as identifier for a single device/user
|
|
148
|
+
* @param everId unique identifier in the tracking system
|
|
149
|
+
* @returns result if method executed succesfully or not
|
|
150
|
+
*/
|
|
151
|
+
setEverId: (everId?: String | null) => Promise<number>;
|
|
152
|
+
/**
|
|
153
|
+
* Returns current everId of a device
|
|
154
|
+
* @returns everId
|
|
155
|
+
*/
|
|
156
|
+
getEverId: () => Promise<string>;
|
|
157
|
+
/**
|
|
158
|
+
* Check if plugin is initialized and ready to use
|
|
159
|
+
* @returns true if plugin is ready to use; false otherwise.
|
|
160
|
+
*/
|
|
161
|
+
isInitialized: () => Promise<boolean>;
|
|
162
|
+
/**
|
|
163
|
+
* Temporary sessionId is used when anonymous tracking is enabled to provide
|
|
164
|
+
* anonymous tracking of a single session
|
|
165
|
+
* @param sessionId unique session identifier
|
|
166
|
+
* @returns result if method executed succesfully or not
|
|
167
|
+
*/
|
|
168
|
+
setTemporarySessionId: (sessionId?: String | null) => Promise<number>;
|
|
169
|
+
/**
|
|
170
|
+
* In some cases, it is necessary to exclude users completely from tracking.
|
|
171
|
+
* For this purpose, the SDK provides an opt-out option.
|
|
172
|
+
* Internally, calling this method will delete all current tracking data cached in the database (if sendCurrentData is set to false), cancel the sending of requests, terminate the WorkManager, and disable all incoming tracking requests.
|
|
173
|
+
* @param sendData true to send recorded data before opt-out
|
|
174
|
+
* @returns result if method executed succesfully or not
|
|
175
|
+
*/
|
|
176
|
+
optOut: (sendData: boolean) => Promise<number>;
|
|
177
|
+
/**
|
|
178
|
+
* Disables opt-out, and resets tracking to enabled.
|
|
179
|
+
* @param sendData true to send recorded data before opt-in
|
|
180
|
+
* @returns result if method executed succesfully or not
|
|
181
|
+
*/
|
|
182
|
+
optIn: (sendData: boolean) => Promise<number>;
|
|
183
|
+
/**
|
|
184
|
+
* Reset all webtrekk configuration. After this, new init with settings must be called before using plugin.
|
|
185
|
+
* @returns result if method executed succesfully or not
|
|
186
|
+
*/
|
|
187
|
+
reset: () => Promise<number>;
|
|
188
|
+
/**
|
|
189
|
+
* When called, data will be immediately sent.
|
|
190
|
+
* The request will then be deleted from the database, cleaning it.
|
|
191
|
+
* Please note that the application must be started and visible to use this method.
|
|
192
|
+
* @returns result if method executed succesfully or not
|
|
193
|
+
*/
|
|
194
|
+
sendRequestsAndClean: () => Promise<number>;
|
|
195
|
+
/**
|
|
196
|
+
* Get active configuration of the native SDK and returns it as a string
|
|
197
|
+
* @returns string representation of the active configuration
|
|
198
|
+
*/
|
|
199
|
+
printCurrentConfig: () => Promise<string>;
|
|
200
|
+
};
|
|
201
|
+
//# sourceMappingURL=MappIntelligencePlugin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MappIntelligencePlugin.d.ts","sourceRoot":"","sources":["../../../src/MappIntelligencePlugin.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EACV,QAAQ,EACR,aAAa,EACb,cAAc,EACd,iBAAiB,EACjB,cAAc,EACd,mBAAmB,EACnB,kBAAkB,EAClB,eAAe,EACf,UAAU,EACX,MAAM,aAAa,CAAC;AAmBrB,eAAO,MAAM,sBAAsB;IACjC;;;OAGG;iBACQ,QAAQ,MAAM,CAAC;IAK1B;;;;;OAKG;sCAES,MAAM,EAAE,UACV,MAAM,KACb,QAAQ,MAAM,CAAC;IAKlB;;;;OAIG;yBACkB,QAAQ,KAAG,QAAQ,MAAM,CAAC;IAK/C;;;;OAIG;kCAC2B,aAAa,KAAG,QAAQ,MAAM,CAAC;IAI7D;;;;OAIG;mCAC4B,MAAM,KAAG,QAAQ,MAAM,CAAC;IAKvD;;;;;OAKG;sCAC+B,OAAO,KAAG,QAAQ,MAAM,CAAC;IAK3D;;;;OAIG;0CACmC,OAAO,KAAG,QAAQ,MAAM,CAAC;IAK/D;;;;OAIG;gCACyB,MAAM,KAAG,QAAQ,MAAM,CAAC;IAK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AAM,CAAC;IAI9B;;;OAGG;yBACgB,QAAQ,OAAO,CAAC;IAInC;;;;;OAKG;wCACiC,MAAM,GAAG,IAAI,KAAG,QAAQ,MAAM,CAAC;IAKnE;;;;;;OAMG;uBACgB,OAAO,KAAG,QAAQ,MAAM,CAAC;IAI5C;;;;OAIG;sBACe,OAAO,KAAG,QAAQ,MAAM,CAAC;IAI3C;;;OAGG;iBACQ,QAAQ,MAAM,CAAC;IAI1B;;;;;OAKG;gCACuB,QAAQ,MAAM,CAAC;IAIzC;;;OAGG;8BACqB,QAAQ,MAAM,CAAC;CAGxC,CAAC"}
|
|
@@ -3,11 +3,11 @@ import type { WebViewMessageEvent } from 'react-native-webview';
|
|
|
3
3
|
import { WebView } from 'react-native-webview';
|
|
4
4
|
type OnMessage = (data: any) => void;
|
|
5
5
|
type OnLoad = () => void;
|
|
6
|
-
declare const useWebTracking: (onMessage?: OnMessage | null, onLoad?: OnLoad | null) => {
|
|
6
|
+
export declare const useWebTracking: (onMessage?: OnMessage | null, onLoad?: OnLoad | null) => {
|
|
7
7
|
webViewRef: import("react").RefObject<WebView<{}>>;
|
|
8
8
|
handleMessage: (event: WebViewMessageEvent) => void;
|
|
9
9
|
handleLoad: () => void;
|
|
10
10
|
getInjectedJavaScript: (script?: string | undefined | null) => string;
|
|
11
11
|
};
|
|
12
|
-
export
|
|
12
|
+
export {};
|
|
13
13
|
//# sourceMappingURL=UseWebTracking.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UseWebTracking.d.ts","sourceRoot":"","sources":["../../../src/UseWebTracking.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"UseWebTracking.d.ts","sourceRoot":"","sources":["../../../src/UseWebTracking.tsx"],"names":[],"mappings":";AAEA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAwB/C,KAAK,SAAS,GAAG,CAAC,IAAI,EAAE,GAAG,KAAK,IAAI,CAAC;AAErC,KAAK,MAAM,GAAG,MAAM,IAAI,CAAC;AAEzB,eAAO,MAAM,cAAc,eACb,SAAS,GAAG,IAAI,WACnB,MAAM,GAAG,IAAI;;;;qCA2FkB,MAAM,GAAG,SAAS,GAAG,IAAI;CAQlE,CAAC"}
|