react-native-test-adx 0.1.9 → 0.1.11

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.
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
 
3
3
  import { AdaxonClient } from "./core/AdaxonClient.js";
4
- import { CREATIVE_CLICK_EVENT, CREATIVE_VIEW_EVENT, MEDIATION_PROVIDER, RECOMMENDATION_EVENT_TYPE } from "./config/ApiConstants.js";
4
+ import { CREATIVE_CLICK_EVENT, CREATIVE_VIEW_EVENT, DEFAULT_EVENT_TYPE, MEDIATION_PROVIDER, RECOMMENDATION_EVENT_TYPE } from "./config/ApiConstants.js";
5
5
  import { dismissInterstitial, dismissOfferBrowser, presentInterstitial, presentOfferBrowser } from "./components/InterstitialAd.js";
6
6
  import { AdaxonSdkError } from "./errors/AdaxonSdkError.js";
7
7
  import { detectReactNativePlatform, reactNativeAppInfoReader, reactNativeDeviceReader, reactNativeNetworkInfoReader, reactNativeNetworkStatusReader, reactNativeUrlOpener } from "./platform/reactNative.js";
@@ -57,7 +57,10 @@ export class AdaxonSdk {
57
57
  return this.requireClient().processPendingEvents();
58
58
  }
59
59
  async logEvent(eventName, values = {}, options = {}) {
60
- return this.track(eventName, normalizeEventValues(values), options);
60
+ return this.track(eventName, normalizeEventValues(values), {
61
+ eventType: DEFAULT_EVENT_TYPE,
62
+ ...options
63
+ });
61
64
  }
62
65
  async trackPurchase(params, options = {}) {
63
66
  return this.logEvent(AdxEvent.PURCHASE, buildPurchaseProperties(params), options);
@@ -8,6 +8,7 @@ export const BASE_URL = 'https://mts-tracking.mobupps.com';
8
8
  export const EVENT_TRACKING_PATH = '/event/tracking';
9
9
  export const RECOMMENDATIONS_PATH = '/api/mts/recommendations';
10
10
  export const CLICK_TRACKING_PATH = '/click/tracking';
11
+ export const DEFAULT_EVENT_TYPE = 'event';
11
12
  export const RECOMMENDATION_EVENT_TYPE = 'recommendation';
12
13
  export const RECOMMENDATION_REQUEST_EVENT = 'recommendation_request';
13
14
  export const RECOMMENDATION_RESPONSE_EVENT = 'recommendation_response';
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
 
3
3
  /** Keep in sync with package.json "version" (published npm packages ship lib/ only). */
4
- export const SDK_VERSION = '0.1.9';
4
+ export const SDK_VERSION = '0.1.11';
@@ -4,6 +4,7 @@ export declare const BASE_URL = "https://mts-tracking.mobupps.com";
4
4
  export declare const EVENT_TRACKING_PATH = "/event/tracking";
5
5
  export declare const RECOMMENDATIONS_PATH = "/api/mts/recommendations";
6
6
  export declare const CLICK_TRACKING_PATH = "/click/tracking";
7
+ export declare const DEFAULT_EVENT_TYPE = "event";
7
8
  export declare const RECOMMENDATION_EVENT_TYPE = "recommendation";
8
9
  export declare const RECOMMENDATION_REQUEST_EVENT = "recommendation_request";
9
10
  export declare const RECOMMENDATION_RESPONSE_EVENT = "recommendation_response";
@@ -1,3 +1,3 @@
1
1
  /** Keep in sync with package.json "version" (published npm packages ship lib/ only). */
2
- export declare const SDK_VERSION = "0.1.9";
2
+ export declare const SDK_VERSION = "0.1.11";
3
3
  //# sourceMappingURL=sdkVersion.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-test-adx",
3
- "version": "0.1.9",
3
+ "version": "0.1.11",
4
4
  "description": "Adaxon React Native / Expo SDK for event tracking and offer recommendations.",
5
5
  "main": "./lib/module/index.js",
6
6
  "types": "./lib/typescript/src/index.d.ts",