affise-attribution-lib 1.6.34 → 1.6.35
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 +42 -13
- package/affise-attribution-native.podspec +1 -1
- package/android/build.gradle +1 -1
- package/lib/commonjs/Export.js +4 -4
- package/lib/commonjs/debug/AffiseDebug.js +49 -0
- package/lib/commonjs/debug/AffiseDebug.js.map +1 -0
- package/lib/commonjs/debug/AffiseDebugApi.js +6 -0
- package/lib/commonjs/debug/AffiseDebugApi.js.map +1 -0
- package/lib/commonjs/debug/internal.js +28 -0
- package/lib/commonjs/debug/internal.js.map +1 -0
- package/lib/commonjs/index.js +14 -138
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/module/AffiseModules.js +2 -0
- package/lib/commonjs/module/AffiseModules.js.map +1 -1
- package/lib/commonjs/module/appsflyer/AffiseAppsFlyer.js +26 -0
- package/lib/commonjs/module/appsflyer/AffiseAppsFlyer.js.map +1 -0
- package/lib/commonjs/module/appsflyer/AffiseModuleAppsFlyerApi.js +2 -0
- package/lib/commonjs/module/appsflyer/AffiseModuleAppsFlyerApi.js.map +1 -0
- package/lib/commonjs/module/attribution/AffiseAndroid.js +30 -0
- package/lib/commonjs/module/attribution/AffiseAndroid.js.map +1 -0
- package/lib/commonjs/module/attribution/AffiseAndroidApi.js +2 -0
- package/lib/commonjs/module/attribution/AffiseAndroidApi.js.map +1 -0
- package/lib/commonjs/module/attribution/AffiseIos.js +50 -0
- package/lib/commonjs/module/attribution/AffiseIos.js.map +1 -0
- package/lib/commonjs/module/attribution/AffiseIosApi.js +6 -0
- package/lib/commonjs/module/attribution/AffiseIosApi.js.map +1 -0
- package/lib/commonjs/module/attribution/AffiseModule.js +81 -0
- package/lib/commonjs/module/attribution/AffiseModule.js.map +1 -0
- package/lib/commonjs/module/attribution/AffiseModuleApi.js +6 -0
- package/lib/commonjs/module/attribution/AffiseModuleApi.js.map +1 -0
- package/lib/commonjs/module/internal.js +72 -0
- package/lib/commonjs/module/internal.js.map +1 -0
- package/lib/commonjs/module/link/AffiseLink.js +26 -0
- package/lib/commonjs/module/link/AffiseLink.js.map +1 -0
- package/lib/commonjs/module/link/AffiseModuleLinkApi.js +6 -0
- package/lib/commonjs/module/link/AffiseModuleLinkApi.js.map +1 -0
- package/lib/commonjs/module/subscription/AffiseModuleSubscriptionApi.js +6 -0
- package/lib/commonjs/module/subscription/AffiseModuleSubscriptionApi.js.map +1 -0
- package/lib/commonjs/module/subscription/AffiseSubscription.js +36 -0
- package/lib/commonjs/module/subscription/AffiseSubscription.js.map +1 -0
- package/lib/commonjs/native/AffiseApiMethod.js +1 -0
- package/lib/commonjs/native/AffiseApiMethod.js.map +1 -1
- package/lib/commonjs/native/AffiseNative.js +9 -0
- package/lib/commonjs/native/AffiseNative.js.map +1 -1
- package/lib/commonjs/native/data/DataName.js +2 -0
- package/lib/commonjs/native/data/DataName.js.map +1 -1
- package/lib/commonjs/parameters/ProviderType.js +1 -0
- package/lib/commonjs/parameters/ProviderType.js.map +1 -1
- package/lib/commonjs/settings/AffiseSettings.js +6 -4
- package/lib/commonjs/settings/AffiseSettings.js.map +1 -1
- package/lib/commonjs/settings/AffiseSettingsApi.js +6 -0
- package/lib/commonjs/settings/AffiseSettingsApi.js.map +1 -0
- package/lib/module/Export.js +1 -1
- package/lib/module/Export.js.map +1 -1
- package/lib/module/debug/AffiseDebug.js +42 -0
- package/lib/module/debug/AffiseDebug.js.map +1 -0
- package/lib/module/debug/AffiseDebugApi.js +2 -0
- package/lib/module/debug/AffiseDebugApi.js.map +1 -0
- package/lib/module/debug/internal.js +3 -0
- package/lib/module/debug/internal.js.map +1 -0
- package/lib/module/index.js +14 -139
- package/lib/module/index.js.map +1 -1
- package/lib/module/module/AffiseModules.js +2 -0
- package/lib/module/module/AffiseModules.js.map +1 -1
- package/lib/module/module/appsflyer/AffiseAppsFlyer.js +19 -0
- package/lib/module/module/appsflyer/AffiseAppsFlyer.js.map +1 -0
- package/lib/module/module/appsflyer/AffiseModuleAppsFlyerApi.js +2 -0
- package/lib/module/module/appsflyer/AffiseModuleAppsFlyerApi.js.map +1 -0
- package/lib/module/module/attribution/AffiseAndroid.js +23 -0
- package/lib/module/module/attribution/AffiseAndroid.js.map +1 -0
- package/lib/module/module/attribution/AffiseAndroidApi.js +2 -0
- package/lib/module/module/attribution/AffiseAndroidApi.js.map +1 -0
- package/lib/module/module/attribution/AffiseIos.js +43 -0
- package/lib/module/module/attribution/AffiseIos.js.map +1 -0
- package/lib/module/module/attribution/AffiseIosApi.js +2 -0
- package/lib/module/module/attribution/AffiseIosApi.js.map +1 -0
- package/lib/module/module/attribution/AffiseModule.js +74 -0
- package/lib/module/module/attribution/AffiseModule.js.map +1 -0
- package/lib/module/module/attribution/AffiseModuleApi.js +2 -0
- package/lib/module/module/attribution/AffiseModuleApi.js.map +1 -0
- package/lib/module/module/internal.js +7 -0
- package/lib/module/module/internal.js.map +1 -0
- package/lib/module/module/link/AffiseLink.js +19 -0
- package/lib/module/module/link/AffiseLink.js.map +1 -0
- package/lib/module/module/link/AffiseModuleLinkApi.js +2 -0
- package/lib/module/module/link/AffiseModuleLinkApi.js.map +1 -0
- package/lib/module/module/subscription/AffiseModuleSubscriptionApi.js +2 -0
- package/lib/module/module/subscription/AffiseModuleSubscriptionApi.js.map +1 -0
- package/lib/module/module/subscription/AffiseSubscription.js +29 -0
- package/lib/module/module/subscription/AffiseSubscription.js.map +1 -0
- package/lib/module/native/AffiseApiMethod.js +1 -0
- package/lib/module/native/AffiseApiMethod.js.map +1 -1
- package/lib/module/native/AffiseNative.js +9 -0
- package/lib/module/native/AffiseNative.js.map +1 -1
- package/lib/module/native/data/DataName.js +2 -0
- package/lib/module/native/data/DataName.js.map +1 -1
- package/lib/module/parameters/ProviderType.js +1 -0
- package/lib/module/parameters/ProviderType.js.map +1 -1
- package/lib/module/settings/AffiseSettings.js +7 -5
- package/lib/module/settings/AffiseSettings.js.map +1 -1
- package/lib/module/settings/AffiseSettingsApi.js +2 -0
- package/lib/module/settings/AffiseSettingsApi.js.map +1 -0
- package/lib/typescript/Export.d.ts +1 -1
- package/lib/typescript/Export.d.ts.map +1 -1
- package/lib/typescript/debug/AffiseDebug.d.ts +29 -0
- package/lib/typescript/debug/AffiseDebug.d.ts.map +1 -0
- package/lib/typescript/debug/AffiseDebugApi.d.ts +25 -0
- package/lib/typescript/debug/AffiseDebugApi.d.ts.map +1 -0
- package/lib/typescript/debug/internal.d.ts +3 -0
- package/lib/typescript/debug/internal.d.ts.map +1 -0
- package/lib/typescript/index.d.ts +10 -93
- package/lib/typescript/index.d.ts.map +1 -1
- package/lib/typescript/module/AffiseModules.d.ts +2 -0
- package/lib/typescript/module/AffiseModules.d.ts.map +1 -1
- package/lib/typescript/module/appsflyer/AffiseAppsFlyer.d.ts +13 -0
- package/lib/typescript/module/appsflyer/AffiseAppsFlyer.d.ts.map +1 -0
- package/lib/typescript/module/appsflyer/AffiseModuleAppsFlyerApi.d.ts +9 -0
- package/lib/typescript/module/appsflyer/AffiseModuleAppsFlyerApi.d.ts.map +1 -0
- package/lib/typescript/module/attribution/AffiseAndroid.d.ts +12 -0
- package/lib/typescript/module/attribution/AffiseAndroid.d.ts.map +1 -0
- package/lib/typescript/module/attribution/AffiseAndroidApi.d.ts +8 -0
- package/lib/typescript/module/attribution/AffiseAndroidApi.d.ts.map +1 -0
- package/lib/typescript/module/attribution/AffiseIos.d.ts +29 -0
- package/lib/typescript/module/attribution/AffiseIos.d.ts.map +1 -0
- package/lib/typescript/module/attribution/AffiseIosApi.d.ts +25 -0
- package/lib/typescript/module/attribution/AffiseIosApi.d.ts.map +1 -0
- package/lib/typescript/module/attribution/AffiseModule.d.ts +58 -0
- package/lib/typescript/module/attribution/AffiseModule.d.ts.map +1 -0
- package/lib/typescript/module/attribution/AffiseModuleApi.d.ts +54 -0
- package/lib/typescript/module/attribution/AffiseModuleApi.d.ts.map +1 -0
- package/lib/typescript/module/internal.d.ts +7 -0
- package/lib/typescript/module/internal.d.ts.map +1 -0
- package/lib/typescript/module/link/AffiseLink.d.ts +14 -0
- package/lib/typescript/module/link/AffiseLink.d.ts.map +1 -0
- package/lib/typescript/module/link/AffiseModuleLinkApi.d.ts +10 -0
- package/lib/typescript/module/link/AffiseModuleLinkApi.d.ts.map +1 -0
- package/lib/typescript/module/subscription/AffiseModuleSubscriptionApi.d.ts +21 -0
- package/lib/typescript/module/subscription/AffiseModuleSubscriptionApi.d.ts.map +1 -0
- package/lib/typescript/module/subscription/AffiseSubscription.d.ts +25 -0
- package/lib/typescript/module/subscription/AffiseSubscription.d.ts.map +1 -0
- package/lib/typescript/native/AffiseApiMethod.d.ts +1 -0
- package/lib/typescript/native/AffiseApiMethod.d.ts.map +1 -1
- package/lib/typescript/native/AffiseNative.d.ts +1 -0
- package/lib/typescript/native/AffiseNative.d.ts.map +1 -1
- package/lib/typescript/native/data/DataName.d.ts +2 -0
- package/lib/typescript/native/data/DataName.d.ts.map +1 -1
- package/lib/typescript/parameters/ProviderType.d.ts +1 -0
- package/lib/typescript/parameters/ProviderType.d.ts.map +1 -1
- package/lib/typescript/settings/AffiseSettings.d.ts +14 -11
- package/lib/typescript/settings/AffiseSettings.d.ts.map +1 -1
- package/lib/typescript/settings/AffiseSettingsApi.d.ts +67 -0
- package/lib/typescript/settings/AffiseSettingsApi.d.ts.map +1 -0
- package/package.json +1 -1
- package/src/Export.ts +3 -3
- package/src/debug/AffiseDebug.ts +45 -0
- package/src/debug/AffiseDebugApi.ts +29 -0
- package/src/debug/internal.ts +2 -0
- package/src/index.ts +29 -152
- package/src/module/AffiseModules.ts +2 -0
- package/src/module/appsflyer/AffiseAppsFlyer.ts +19 -0
- package/src/module/appsflyer/AffiseModuleAppsFlyerApi.ts +8 -0
- package/src/module/attribution/AffiseAndroid.ts +25 -0
- package/src/module/attribution/AffiseAndroidApi.ts +8 -0
- package/src/module/attribution/AffiseIos.ts +48 -0
- package/src/module/attribution/AffiseIosApi.ts +28 -0
- package/src/module/attribution/AffiseModule.ts +86 -0
- package/src/module/attribution/AffiseModuleApi.ts +61 -0
- package/src/module/internal.ts +8 -0
- package/src/module/link/AffiseLink.ts +20 -0
- package/src/module/link/AffiseModuleLinkApi.ts +10 -0
- package/src/module/subscription/AffiseModuleSubscriptionApi.ts +22 -0
- package/src/module/subscription/AffiseSubscription.ts +34 -0
- package/src/native/AffiseApiMethod.ts +2 -0
- package/src/native/AffiseNative.ts +9 -0
- package/src/native/data/DataName.ts +3 -0
- package/src/parameters/ProviderType.ts +3 -0
- package/src/settings/AffiseSettings.ts +18 -15
- package/src/settings/AffiseSettingsApi.ts +84 -0
package/lib/module/index.js
CHANGED
|
@@ -2,8 +2,9 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
|
|
|
2
2
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
3
3
|
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
4
4
|
import { AffiseNative } from "./native/AffiseNative";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
5
|
+
import { AffiseSettings } from "./settings/AffiseSettings";
|
|
6
|
+
import { AffiseDebug } from "./debug/internal";
|
|
7
|
+
import { AffiseModule, AffiseIos, AffiseAndroid } from "./module/internal";
|
|
7
8
|
export * from "./Export";
|
|
8
9
|
|
|
9
10
|
/**
|
|
@@ -22,11 +23,11 @@ export class Affise {
|
|
|
22
23
|
affiseAppId,
|
|
23
24
|
secretKey
|
|
24
25
|
} = _ref;
|
|
25
|
-
return new AffiseSettings(affiseAppId, secretKey);
|
|
26
|
+
return new AffiseSettings(this.native, affiseAppId, secretKey);
|
|
26
27
|
}
|
|
27
28
|
|
|
28
29
|
/**
|
|
29
|
-
* Use Affise.settings({affiseAppId, secretKey}).start()
|
|
30
|
+
* @deprecated Use Affise.settings({affiseAppId, secretKey}).start()
|
|
30
31
|
* @param initProperties
|
|
31
32
|
*/
|
|
32
33
|
static start(initProperties) {
|
|
@@ -140,7 +141,7 @@ export class Affise {
|
|
|
140
141
|
* @param callback status response
|
|
141
142
|
*/
|
|
142
143
|
static getStatus(module, callback) {
|
|
143
|
-
|
|
144
|
+
this.module.getStatus(module, callback);
|
|
144
145
|
}
|
|
145
146
|
|
|
146
147
|
/**
|
|
@@ -149,7 +150,7 @@ export class Affise {
|
|
|
149
150
|
* @param module module name
|
|
150
151
|
*/
|
|
151
152
|
static moduleStart(module) {
|
|
152
|
-
return
|
|
153
|
+
return this.module.moduleStart(module);
|
|
153
154
|
}
|
|
154
155
|
|
|
155
156
|
/**
|
|
@@ -157,7 +158,7 @@ export class Affise {
|
|
|
157
158
|
* Get installed modules
|
|
158
159
|
*/
|
|
159
160
|
static getModulesInstalled() {
|
|
160
|
-
return
|
|
161
|
+
return this.module.getModulesInstalled();
|
|
161
162
|
}
|
|
162
163
|
|
|
163
164
|
/**
|
|
@@ -223,7 +224,7 @@ export class Affise {
|
|
|
223
224
|
* Get referrer on server
|
|
224
225
|
*/
|
|
225
226
|
static getReferrerOnServer(callback) {
|
|
226
|
-
|
|
227
|
+
this.getDeferredDeeplink(callback);
|
|
227
228
|
}
|
|
228
229
|
|
|
229
230
|
/**
|
|
@@ -231,7 +232,7 @@ export class Affise {
|
|
|
231
232
|
* Get referrer on server value
|
|
232
233
|
*/
|
|
233
234
|
static getReferrerOnServerValue(key, callback) {
|
|
234
|
-
|
|
235
|
+
this.getDeferredDeeplinkValue(key, callback);
|
|
235
236
|
}
|
|
236
237
|
|
|
237
238
|
/**
|
|
@@ -259,134 +260,8 @@ export class Affise {
|
|
|
259
260
|
// }
|
|
260
261
|
}
|
|
261
262
|
_defineProperty(Affise, "native", new AffiseNative());
|
|
262
|
-
_defineProperty(Affise, "android",
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
static forget(userData) {
|
|
267
|
-
Affise.native.forget(userData);
|
|
268
|
-
}
|
|
269
|
-
static crashApplication() {
|
|
270
|
-
Affise.native.crashApplication();
|
|
271
|
-
}
|
|
272
|
-
});
|
|
273
|
-
_defineProperty(Affise, "ios", class {
|
|
274
|
-
/**
|
|
275
|
-
* SKAd register app
|
|
276
|
-
*/
|
|
277
|
-
static registerAppForAdNetworkAttribution(completionHandler) {
|
|
278
|
-
if (Platform.OS !== 'ios') return;
|
|
279
|
-
Affise.native.registerAppForAdNetworkAttribution(completionHandler);
|
|
280
|
-
}
|
|
281
|
-
|
|
282
|
-
/**
|
|
283
|
-
* SKAd updatePostbackConversionValue
|
|
284
|
-
*/
|
|
285
|
-
static updatePostbackConversionValue(fineValue, coarseValue, completionHandler) {
|
|
286
|
-
if (Platform.OS !== 'ios') return;
|
|
287
|
-
Affise.native.updatePostbackConversionValue(fineValue, coarseValue, completionHandler);
|
|
288
|
-
}
|
|
289
|
-
|
|
290
|
-
/**
|
|
291
|
-
* @deprecated use Affise.getDeferredDeeplink(callback)
|
|
292
|
-
* Get referrer on server
|
|
293
|
-
*/
|
|
294
|
-
static getReferrerOnServer(callback) {
|
|
295
|
-
Affise.native.getDeferredDeeplink(callback);
|
|
296
|
-
}
|
|
297
|
-
|
|
298
|
-
/**
|
|
299
|
-
* @deprecated use Affise.getDeferredDeeplinkValue(key, callback)
|
|
300
|
-
* Get referrer on server value
|
|
301
|
-
*/
|
|
302
|
-
static getReferrerOnServerValue(key, callback) {
|
|
303
|
-
Affise.native.getDeferredDeeplinkValue(key, callback);
|
|
304
|
-
}
|
|
305
|
-
});
|
|
306
|
-
_defineProperty(Affise, "module", class {
|
|
307
|
-
/**
|
|
308
|
-
* Get module status
|
|
309
|
-
* @param module module name
|
|
310
|
-
* @param callback status response
|
|
311
|
-
*/
|
|
312
|
-
static getStatus(module, callback) {
|
|
313
|
-
Affise.native.getStatus(module, callback);
|
|
314
|
-
}
|
|
315
|
-
|
|
316
|
-
/**
|
|
317
|
-
* Manual module start
|
|
318
|
-
* @param module module name
|
|
319
|
-
*/
|
|
320
|
-
static moduleStart(module) {
|
|
321
|
-
return Affise.native.moduleStart(module);
|
|
322
|
-
}
|
|
323
|
-
|
|
324
|
-
/**
|
|
325
|
-
* Get installed modules
|
|
326
|
-
*/
|
|
327
|
-
static getModulesInstalled() {
|
|
328
|
-
return Affise.native.getModulesInstalled();
|
|
329
|
-
}
|
|
330
|
-
|
|
331
|
-
/**
|
|
332
|
-
* Module Link url Resolve
|
|
333
|
-
* @param url url
|
|
334
|
-
* @param callback redirected url
|
|
335
|
-
*/
|
|
336
|
-
static linkResolve(url, callback) {
|
|
337
|
-
Affise.native.linkResolve(url, callback);
|
|
338
|
-
}
|
|
339
|
-
|
|
340
|
-
/**
|
|
341
|
-
* Module subscription fetchProducts
|
|
342
|
-
* @param ids list of product ids
|
|
343
|
-
* @param callback result callback
|
|
344
|
-
*/
|
|
345
|
-
static fetchProducts(ids, callback) {
|
|
346
|
-
Affise.native.fetchProducts(ids, callback);
|
|
347
|
-
}
|
|
348
|
-
|
|
349
|
-
/**
|
|
350
|
-
* Module subscription purchase
|
|
351
|
-
* @param product product
|
|
352
|
-
* @param type product type
|
|
353
|
-
* @param callback result callback
|
|
354
|
-
*/
|
|
355
|
-
static purchase(product, type, callback) {
|
|
356
|
-
Affise.native.purchase(product, type, callback);
|
|
357
|
-
}
|
|
358
|
-
});
|
|
359
|
-
_defineProperty(Affise, "debug", class {
|
|
360
|
-
/**
|
|
361
|
-
* Won't work on Production
|
|
362
|
-
*
|
|
363
|
-
* Validate credentials
|
|
364
|
-
*/
|
|
365
|
-
static validate(callback) {
|
|
366
|
-
Affise.native.validate(callback);
|
|
367
|
-
}
|
|
368
|
-
|
|
369
|
-
/**
|
|
370
|
-
* Won't work on Production
|
|
371
|
-
*
|
|
372
|
-
* Show request/response data
|
|
373
|
-
*/
|
|
374
|
-
static network(callback) {
|
|
375
|
-
Affise.native.network(callback);
|
|
376
|
-
}
|
|
377
|
-
|
|
378
|
-
/**
|
|
379
|
-
* Debug get version of flutter library
|
|
380
|
-
*/
|
|
381
|
-
static version() {
|
|
382
|
-
return "1.6.34";
|
|
383
|
-
}
|
|
384
|
-
|
|
385
|
-
/**
|
|
386
|
-
* Debug get version of native library Android/iOS
|
|
387
|
-
*/
|
|
388
|
-
static versionNative() {
|
|
389
|
-
return Affise.native.versionNative();
|
|
390
|
-
}
|
|
391
|
-
});
|
|
263
|
+
_defineProperty(Affise, "android", new AffiseAndroid(Affise.native));
|
|
264
|
+
_defineProperty(Affise, "ios", new AffiseIos(Affise.native));
|
|
265
|
+
_defineProperty(Affise, "module", new AffiseModule(Affise.native));
|
|
266
|
+
_defineProperty(Affise, "debug", new AffiseDebug(Affise.native));
|
|
392
267
|
//# sourceMappingURL=index.js.map
|
package/lib/module/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["AffiseNative","
|
|
1
|
+
{"version":3,"names":["AffiseNative","AffiseSettings","AffiseDebug","AffiseModule","AffiseIos","AffiseAndroid","Affise","settings","affiseAppId","secretKey","native","start","initProperties","init","isInitialized","sendEvent","event","sendEventNow","success","failed","addPushToken","pushToken","registerDeeplinkCallback","callback","setSecretKey","setOfflineModeEnabled","enabled","isOfflineModeEnabled","setBackgroundTrackingEnabled","isBackgroundTrackingEnabled","setTrackingEnabled","isTrackingEnabled","getStatus","module","moduleStart","getModulesInstalled","getRandomUserId","getRandomDeviceId","getProviders","isFirstRun","getReferrer","getReferrerUrl","getReferrerValue","key","getReferrerUrlValue","getReferrerOnServer","getDeferredDeeplink","getReferrerOnServerValue","getDeferredDeeplinkValue"],"sourceRoot":"../../src","sources":["index.ts"],"mappings":";;;AAaA,SAASA,YAAY,QAAQ,uBAAuB;AACpD,SAASC,cAAc,QAAQ,2BAA2B;AAE1D,SACIC,WAAW,QAER,kBAAkB;AACzB,SAEIC,YAAY,EACZC,SAAS,EAETC,aAAa,QAEV,mB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AgB,EAAEpB,QAA0B,EAAE;IAC1E,IAAI,CAACb,MAAM,CAACsC,wBAAwB,CAACL,GAAG,EAAEpB,QAAQ,CAAC;EACvD;;EAEA;AACJ;AACA;AACA;AACA;AACA;EACI;EACA;EACA;AAQJ;AAAC,gBAhQYjB,MAAM,YAES,IAAIN,YAAY,EAAE;AAAA,gBAFjCM,MAAM,aA0PoB,IAAID,aAAa,CA1P3CC,MAAM,CA0P2CI,MAAM,CAAC;AAAA,gBA1PxDJ,MAAM,SA2PY,IAAIF,SAAS,CA3P/BE,MAAM,CA2P+BI,MAAM,CAAC;AAAA,gBA3P5CJ,MAAM,YA6PkB,IAAIH,YAAY,CA7PxCG,MAAM,CA6PwCI,MAAM,CAAC;AAAA,gBA7PrDJ,MAAM,WA+PgB,IAAIJ,WAAW,CA/PrCI,MAAM,CA+PqCI,MAAM,CAAC"}
|
|
@@ -2,7 +2,9 @@ export let AffiseModules;
|
|
|
2
2
|
(function (AffiseModules) {
|
|
3
3
|
AffiseModules["ADVERTISING"] = "Advertising";
|
|
4
4
|
AffiseModules["ANDROIDID"] = "AndroidId";
|
|
5
|
+
AffiseModules["APPSFLYER"] = "AppsFlyer";
|
|
5
6
|
AffiseModules["LINK"] = "Link";
|
|
7
|
+
AffiseModules["META"] = "Meta";
|
|
6
8
|
AffiseModules["NETWORK"] = "Network";
|
|
7
9
|
AffiseModules["PERSISTENT"] = "Persistent";
|
|
8
10
|
AffiseModules["PHONE"] = "Phone";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["AffiseModules"],"sourceRoot":"../../src","sources":["AffiseModules.ts"],"mappings":"AAAA,WAAYA,aAAa;
|
|
1
|
+
{"version":3,"names":["AffiseModules"],"sourceRoot":"../../src","sources":["AffiseModules.ts"],"mappings":"AAAA,WAAYA,aAAa;AAaxB,WAbWA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;AAAA,GAAbA,aAAa,KAAbA,aAAa"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
2
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
3
|
+
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
4
|
+
export class AffiseAppsFlyer {
|
|
5
|
+
constructor(native) {
|
|
6
|
+
_defineProperty(this, "native", void 0);
|
|
7
|
+
this.native = native;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Send Appflyer event data to affise
|
|
12
|
+
* @param eventName event name
|
|
13
|
+
* @param eventValues event data
|
|
14
|
+
*/
|
|
15
|
+
logEvent(eventName, eventValues) {
|
|
16
|
+
this.native.logEvent(eventName, eventValues);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=AffiseAppsFlyer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["AffiseAppsFlyer","constructor","native","logEvent","eventName","eventValues"],"sourceRoot":"../../src","sources":["AffiseAppsFlyer.ts"],"mappings":";;;AAGA,OAAO,MAAMA,eAAe,CAAqC;EAG7DC,WAAW,CAACC,MAAoB,EAAE;IAAA;IAC9B,IAAI,CAACA,MAAM,GAAGA,MAAM;EACxB;;EAEA;AACJ;AACA;AACA;AACA;EACIC,QAAQ,CAACC,SAAiB,EAAEC,WAAgC,EAAE;IAC1D,IAAI,CAACH,MAAM,CAACC,QAAQ,CAACC,SAAS,EAAEC,WAAW,CAAC;EAChD;AACJ"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../src","sources":["AffiseModuleAppsFlyerApi.ts"],"mappings":""}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
2
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
3
|
+
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
4
|
+
import { Platform } from "react-native";
|
|
5
|
+
export class AffiseAndroid {
|
|
6
|
+
constructor(native) {
|
|
7
|
+
_defineProperty(this, "native", void 0);
|
|
8
|
+
this.native = native;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Erases all user data from mobile and sends [GDPREvent]
|
|
13
|
+
*/
|
|
14
|
+
forget(userData) {
|
|
15
|
+
if (Platform.OS !== 'android') return;
|
|
16
|
+
this.native.forget(userData);
|
|
17
|
+
}
|
|
18
|
+
crashApplication() {
|
|
19
|
+
if (Platform.OS !== 'android') return;
|
|
20
|
+
this.native.crashApplication();
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=AffiseAndroid.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Platform","AffiseAndroid","constructor","native","forget","userData","OS","crashApplication"],"sourceRoot":"../../src","sources":["AffiseAndroid.ts"],"mappings":";;;AAAA,SAASA,QAAQ,QAAQ,cAAc;AAIvC,OAAO,MAAMC,aAAa,CAA6B;EAInDC,WAAW,CAACC,MAAoB,EAAE;IAAA;IAC9B,IAAI,CAACA,MAAM,GAAGA,MAAM;EACxB;;EAEA;AACJ;AACA;EACIC,MAAM,CAACC,QAAgB,EAAE;IACrB,IAAIL,QAAQ,CAACM,EAAE,KAAK,SAAS,EAAE;IAC/B,IAAI,CAACH,MAAM,CAACC,MAAM,CAACC,QAAQ,CAAC;EAChC;EAEAE,gBAAgB,GAAG;IACf,IAAIP,QAAQ,CAACM,EAAE,KAAK,SAAS,EAAE;IAC/B,IAAI,CAACH,MAAM,CAACI,gBAAgB,EAAE;EAClC;AACJ"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../src","sources":["AffiseAndroidApi.ts"],"mappings":""}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
2
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
3
|
+
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
4
|
+
import { Platform } from "react-native";
|
|
5
|
+
export class AffiseIos {
|
|
6
|
+
constructor(native) {
|
|
7
|
+
_defineProperty(this, "native", void 0);
|
|
8
|
+
this.native = native;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* SKAd register app
|
|
13
|
+
*/
|
|
14
|
+
registerAppForAdNetworkAttribution(completionHandler) {
|
|
15
|
+
if (Platform.OS !== 'ios') return;
|
|
16
|
+
this.native.registerAppForAdNetworkAttribution(completionHandler);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* SKAd updatePostbackConversionValue
|
|
21
|
+
*/
|
|
22
|
+
updatePostbackConversionValue(fineValue, coarseValue, completionHandler) {
|
|
23
|
+
if (Platform.OS !== 'ios') return;
|
|
24
|
+
this.native.updatePostbackConversionValue(fineValue, coarseValue, completionHandler);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* @deprecated use Affise.getDeferredDeeplink(callback)
|
|
29
|
+
* Get referrer on server
|
|
30
|
+
*/
|
|
31
|
+
getReferrerOnServer(callback) {
|
|
32
|
+
this.native.getDeferredDeeplink(callback);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* @deprecated use Affise.getDeferredDeeplinkValue(key, callback)
|
|
37
|
+
* Get referrer on server value
|
|
38
|
+
*/
|
|
39
|
+
getReferrerOnServerValue(key, callback) {
|
|
40
|
+
this.native.getDeferredDeeplinkValue(key, callback);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
//# sourceMappingURL=AffiseIos.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Platform","AffiseIos","constructor","native","registerAppForAdNetworkAttribution","completionHandler","OS","updatePostbackConversionValue","fineValue","coarseValue","getReferrerOnServer","callback","getDeferredDeeplink","getReferrerOnServerValue","key","getDeferredDeeplinkValue"],"sourceRoot":"../../src","sources":["AffiseIos.ts"],"mappings":";;;AAAA,SAASA,QAAQ,QAAQ,cAAc;AAQvC,OAAO,MAAMC,SAAS,CAAyB;EAI3CC,WAAW,CAACC,MAAoB,EAAE;IAAA;IAC9B,IAAI,CAACA,MAAM,GAAGA,MAAM;EACxB;;EAEA;AACJ;AACA;EACIC,kCAAkC,CAACC,iBAAgC,EAAE;IACjE,IAAIL,QAAQ,CAACM,EAAE,KAAK,KAAK,EAAE;IAC3B,IAAI,CAACH,MAAM,CAACC,kCAAkC,CAACC,iBAAiB,CAAC;EACrE;;EAEA;AACJ;AACA;EACIE,6BAA6B,CAACC,SAAiB,EAAEC,WAAwB,EAAEJ,iBAAgC,EAAE;IACzG,IAAIL,QAAQ,CAACM,EAAE,KAAK,KAAK,EAAE;IAC3B,IAAI,CAACH,MAAM,CAACI,6BAA6B,CAACC,SAAS,EAAEC,WAAW,EAAEJ,iBAAiB,CAAC;EACxF;;EAEA;AACJ;AACA;AACA;EACIK,mBAAmB,CAACC,QAA0B,EAAE;IAC5C,IAAI,CAACR,MAAM,CAACS,mBAAmB,CAACD,QAAQ,CAAC;EAC7C;;EAEA;AACJ;AACA;AACA;EACIE,wBAAwB,CAACC,GAAgB,EAAEH,QAA0B,EAAE;IACnE,IAAI,CAACR,MAAM,CAACY,wBAAwB,CAACD,GAAG,EAAEH,QAAQ,CAAC;EACvD;AACJ"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../src","sources":["AffiseIosApi.ts"],"mappings":""}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
2
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
3
|
+
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
4
|
+
import { AffiseLink } from "../link/AffiseLink";
|
|
5
|
+
import { AffiseSubscription } from "../subscription/AffiseSubscription";
|
|
6
|
+
import { AffiseAppsFlyer } from "../appsflyer/AffiseAppsFlyer";
|
|
7
|
+
export class AffiseModule {
|
|
8
|
+
constructor(native) {
|
|
9
|
+
_defineProperty(this, "native", void 0);
|
|
10
|
+
_defineProperty(this, "appsFlyer", void 0);
|
|
11
|
+
_defineProperty(this, "link", void 0);
|
|
12
|
+
_defineProperty(this, "subscription", void 0);
|
|
13
|
+
this.native = native;
|
|
14
|
+
this.appsFlyer = new AffiseAppsFlyer(native);
|
|
15
|
+
this.link = new AffiseLink(native);
|
|
16
|
+
this.subscription = new AffiseSubscription(native);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Get module status
|
|
21
|
+
* @param module module name
|
|
22
|
+
* @param callback status response
|
|
23
|
+
*/
|
|
24
|
+
getStatus(module, callback) {
|
|
25
|
+
this.native.getStatus(module, callback);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Manual module start
|
|
30
|
+
* @param module module name
|
|
31
|
+
*/
|
|
32
|
+
moduleStart(module) {
|
|
33
|
+
return this.native.moduleStart(module);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Get installed modules
|
|
38
|
+
*/
|
|
39
|
+
getModulesInstalled() {
|
|
40
|
+
return this.native.getModulesInstalled();
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* @deprecated use Affise.module.link.resolve(url, callback)
|
|
45
|
+
* Module Link url Resolve
|
|
46
|
+
* @param url url
|
|
47
|
+
* @param callback redirected url
|
|
48
|
+
*/
|
|
49
|
+
linkResolve(url, callback) {
|
|
50
|
+
this.link.resolve(url, callback);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* @deprecated use Affise.module.subscription.fetchProducts(ids, callback)
|
|
55
|
+
* Module subscription fetchProducts
|
|
56
|
+
* @param ids list of product ids
|
|
57
|
+
* @param callback result callback
|
|
58
|
+
*/
|
|
59
|
+
fetchProducts(ids, callback) {
|
|
60
|
+
this.subscription.fetchProducts(ids, callback);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* @deprecated use Affise.module.subscription.purchase(product, type, callback)
|
|
65
|
+
* Module subscription purchase
|
|
66
|
+
* @param product product
|
|
67
|
+
* @param type product type
|
|
68
|
+
* @param callback result callback
|
|
69
|
+
*/
|
|
70
|
+
purchase(product, type, callback) {
|
|
71
|
+
this.subscription.purchase(product, type, callback);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
//# sourceMappingURL=AffiseModule.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["AffiseLink","AffiseSubscription","AffiseAppsFlyer","AffiseModule","constructor","native","appsFlyer","link","subscription","getStatus","module","callback","moduleStart","getModulesInstalled","linkResolve","url","resolve","fetchProducts","ids","purchase","product","type"],"sourceRoot":"../../src","sources":["AffiseModule.ts"],"mappings":";;;AASA,SAASA,UAAU,QAAO,oBAAoB;AAG9C,SAASC,kBAAkB,QAAQ,oCAAoC;AAEvE,SAASC,eAAe,QAAQ,8BAA8B;AAG9D,OAAO,MAAMC,YAAY,CAA4B;EAOjDC,WAAW,CAACC,MAAoB,EAAE;IAAA;IAAA;IAAA;IAAA;IAC9B,IAAI,CAACA,MAAM,GAAGA,MAAM;IACpB,IAAI,CAACC,SAAS,GAAG,IAAIJ,eAAe,CAACG,MAAM,CAAC;IAC5C,IAAI,CAACE,IAAI,GAAG,IAAIP,UAAU,CAACK,MAAM,CAAC;IAClC,IAAI,CAACG,YAAY,GAAG,IAAIP,kBAAkB,CAACI,MAAM,CAAC;EACtD;;EAEA;AACJ;AACA;AACA;AACA;EACII,SAAS,CAACC,MAAqB,EAAEC,QAA4B,EAAE;IAC3D,IAAI,CAACN,MAAM,CAACI,SAAS,CAACC,MAAM,EAAEC,QAAQ,CAAC;EAC3C;;EAEA;AACJ;AACA;AACA;EACIC,WAAW,CAACF,MAAqB,EAAoB;IACjD,OAAO,IAAI,CAACL,MAAM,CAACO,WAAW,CAACF,MAAM,CAAC;EAC1C;;EAEA;AACJ;AACA;EACIG,mBAAmB,GAA6B;IAC5C,OAAO,IAAI,CAACR,MAAM,CAACQ,mBAAmB,EAAE;EAC5C;;EAEA;AACJ;AACA;AACA;AACA;AACA;EACIC,WAAW,CAACC,GAAW,EAAEJ,QAA4B,EAAE;IACnD,IAAI,CAACJ,IAAI,CAACS,OAAO,CAACD,GAAG,EAAEJ,QAAQ,CAAC;EACpC;;EAEA;AACJ;AACA;AACA;AACA;AACA;EACIM,aAAa,CAACC,GAAa,EAAEP,QAAoD,EAAE;IAC/E,IAAI,CAACH,YAAY,CAACS,aAAa,CAACC,GAAG,EAAEP,QAAQ,CAAC;EAClD;;EAEA;AACJ;AACA;AACA;AACA;AACA;AACA;EACIQ,QAAQ,CAACC,OAAsB,EAAEC,IAAuB,EAAEV,QAAmD,EAAE;IAC3G,IAAI,CAACH,YAAY,CAACW,QAAQ,CAACC,OAAO,EAAEC,IAAI,EAAEV,QAAQ,CAAC;EACvD;AACJ"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../src","sources":["AffiseModuleApi.ts"],"mappings":""}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from "./attribution/AffiseModule";
|
|
2
|
+
export * from "./attribution/AffiseModuleApi";
|
|
3
|
+
export * from "./attribution/AffiseIos";
|
|
4
|
+
export * from "./attribution/AffiseIosApi";
|
|
5
|
+
export * from "./attribution/AffiseAndroid";
|
|
6
|
+
export * from "./attribution/AffiseAndroidApi";
|
|
7
|
+
//# sourceMappingURL=internal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../src","sources":["internal.ts"],"mappings":"AAAA,cAAc,4BAA4B;AAC1C,cAAc,+BAA+B;AAE7C,cAAc,yBAAyB;AACvC,cAAc,4BAA4B;AAE1C,cAAc,6BAA6B;AAC3C,cAAc,gCAAgC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
2
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
3
|
+
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
4
|
+
export class AffiseLink {
|
|
5
|
+
constructor(native) {
|
|
6
|
+
_defineProperty(this, "native", void 0);
|
|
7
|
+
this.native = native;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Module Link url Resolve
|
|
12
|
+
* @param url url
|
|
13
|
+
* @param callback redirected url
|
|
14
|
+
*/
|
|
15
|
+
resolve(url, callback) {
|
|
16
|
+
this.native.linkResolve(url, callback);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=AffiseLink.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["AffiseLink","constructor","native","resolve","url","callback","linkResolve"],"sourceRoot":"../../src","sources":["AffiseLink.ts"],"mappings":";;;AAIA,OAAO,MAAMA,UAAU,CAAgC;EAGnDC,WAAW,CAACC,MAAoB,EAAE;IAAA;IAC9B,IAAI,CAACA,MAAM,GAAGA,MAAM;EACxB;;EAEA;AACJ;AACA;AACA;AACA;EACIC,OAAO,CAACC,GAAW,EAAEC,QAA4B,EAAQ;IACrD,IAAI,CAACH,MAAM,CAACI,WAAW,CAACF,GAAG,EAAEC,QAAQ,CAAC;EAC1C;AACH"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../src","sources":["AffiseModuleLinkApi.ts"],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../src","sources":["AffiseModuleSubscriptionApi.ts"],"mappings":""}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
2
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
3
|
+
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
4
|
+
export class AffiseSubscription {
|
|
5
|
+
constructor(native) {
|
|
6
|
+
_defineProperty(this, "native", void 0);
|
|
7
|
+
this.native = native;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Module subscription fetchProducts
|
|
12
|
+
* @param ids list of product ids
|
|
13
|
+
* @param callback result callback
|
|
14
|
+
*/
|
|
15
|
+
fetchProducts(ids, callback) {
|
|
16
|
+
this.native.fetchProducts(ids, callback);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Module subscription purchase
|
|
21
|
+
* @param product product
|
|
22
|
+
* @param type product type
|
|
23
|
+
* @param callback result callback
|
|
24
|
+
*/
|
|
25
|
+
purchase(product, type, callback) {
|
|
26
|
+
this.native.purchase(product, type, callback);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=AffiseSubscription.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["AffiseSubscription","constructor","native","fetchProducts","ids","callback","purchase","product","type"],"sourceRoot":"../../src","sources":["AffiseSubscription.ts"],"mappings":";;;AAQA,OAAO,MAAMA,kBAAkB,CAAwC;EAGnEC,WAAW,CAACC,MAAoB,EAAE;IAAA;IAC9B,IAAI,CAACA,MAAM,GAAGA,MAAM;EACxB;;EAEA;AACJ;AACA;AACA;AACA;EACIC,aAAa,CAACC,GAAa,EAAEC,QAAoD,EAAE;IAC/E,IAAI,CAACH,MAAM,CAACC,aAAa,CAACC,GAAG,EAAEC,QAAQ,CAAC;EAC5C;;EAEA;AACJ;AACA;AACA;AACA;AACA;EACIC,QAAQ,CAACC,OAAsB,EAAEC,IAAuB,EAAEH,QAAmD,EAAE;IAC3G,IAAI,CAACH,MAAM,CAACI,QAAQ,CAACC,OAAO,EAAEC,IAAI,EAAEH,QAAQ,CAAC;EACjD;AACJ"}
|
|
@@ -40,6 +40,7 @@ export let AffiseApiMethod; ////////////////////////////////////////
|
|
|
40
40
|
AffiseApiMethod["MODULE_START"] = "module_start";
|
|
41
41
|
AffiseApiMethod["GET_MODULES_INSTALLED"] = "get_modules_installed";
|
|
42
42
|
AffiseApiMethod["GET_STATUS_CALLBACK"] = "get_status_callback";
|
|
43
|
+
AffiseApiMethod["MODULE_APPSFLYER_LOG_EVENT"] = "module_appsflyer_log_event";
|
|
43
44
|
AffiseApiMethod["MODULE_LINK_LINK_RESOLVE_CALLBACK"] = "module_link_link_resolve_callback";
|
|
44
45
|
AffiseApiMethod["MODULE_SUBS_FETCH_PRODUCTS_CALLBACK"] = "module_subs_fetch_products_callback";
|
|
45
46
|
AffiseApiMethod["MODULE_SUBS_PURCHASE_CALLBACK"] = "module_subs_purchase_callback";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["getEnumFromString","AffiseApiMethod","apiMethodFrom","name"],"sourceRoot":"../../src","sources":["AffiseApiMethod.ts"],"mappings":"AAAA,SAAQA,iBAAiB,QAAO,oBAAoB;AAEpD,WAAYC,eAAe,
|
|
1
|
+
{"version":3,"names":["getEnumFromString","AffiseApiMethod","apiMethodFrom","name"],"sourceRoot":"../../src","sources":["AffiseApiMethod.ts"],"mappings":"AAAA,SAAQA,iBAAiB,QAAO,oBAAoB;AAEpD,WAAYC,eAAe,EAqDvB;AACA;AACA;AACH,WAxDWA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;AAAA,GAAfA,eAAe,KAAfA,eAAe;AA0D3B,OAAO,SAASC,aAAa,CAACC,IAAmB,EAA0B;EACvE,IAAIA,IAAI,IAAI,IAAI,EAAE,OAAO,IAAI;EAC7B,OAAOH,iBAAiB,CAACC,eAAe,EAAEE,IAAI,CAAC;AACnD"}
|
|
@@ -143,6 +143,15 @@ export class AffiseNative extends NativeBase {
|
|
|
143
143
|
data[DataName.TYPE] = type;
|
|
144
144
|
this.nativeCallbackOnce(AffiseApiMethod.MODULE_SUBS_PURCHASE_CALLBACK, callback, data);
|
|
145
145
|
}
|
|
146
|
+
|
|
147
|
+
// AppsFlyer
|
|
148
|
+
logEvent(eventName, eventValues) {
|
|
149
|
+
const data = {
|
|
150
|
+
[DataName.EVENT_NAME]: eventName,
|
|
151
|
+
[DataName.EVENT_VALUES]: eventValues
|
|
152
|
+
};
|
|
153
|
+
this.native(AffiseApiMethod.MODULE_APPSFLYER_LOG_EVENT, data);
|
|
154
|
+
}
|
|
146
155
|
////////////////////////////////////////
|
|
147
156
|
// modules
|
|
148
157
|
////////////////////////////////////////
|