affise-attribution-lib 1.6.2 → 1.6.3
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 +76 -18
- package/affise-attribution-native.podspec +1 -3
- package/android/build.gradle +1 -1
- package/android/src/main/java/com/affise/attribution/react/ResultWrapper.kt +11 -2
- package/lib/commonjs/Export.js +33 -0
- package/lib/commonjs/Export.js.map +1 -1
- package/lib/commonjs/events/custom/CustomId01Event.js +1 -2
- package/lib/commonjs/events/custom/CustomId01Event.js.map +1 -1
- package/lib/commonjs/events/custom/CustomId02Event.js +1 -2
- package/lib/commonjs/events/custom/CustomId02Event.js.map +1 -1
- package/lib/commonjs/events/custom/CustomId03Event.js +1 -2
- package/lib/commonjs/events/custom/CustomId03Event.js.map +1 -1
- package/lib/commonjs/events/custom/CustomId04Event.js +1 -2
- package/lib/commonjs/events/custom/CustomId04Event.js.map +1 -1
- package/lib/commonjs/events/custom/CustomId05Event.js +1 -2
- package/lib/commonjs/events/custom/CustomId05Event.js.map +1 -1
- package/lib/commonjs/events/custom/CustomId06Event.js +1 -2
- package/lib/commonjs/events/custom/CustomId06Event.js.map +1 -1
- package/lib/commonjs/events/custom/CustomId07Event.js +1 -2
- package/lib/commonjs/events/custom/CustomId07Event.js.map +1 -1
- package/lib/commonjs/events/custom/CustomId08Event.js +1 -2
- package/lib/commonjs/events/custom/CustomId08Event.js.map +1 -1
- package/lib/commonjs/events/custom/CustomId09Event.js +1 -2
- package/lib/commonjs/events/custom/CustomId09Event.js.map +1 -1
- package/lib/commonjs/events/custom/CustomId10Event.js +1 -2
- package/lib/commonjs/events/custom/CustomId10Event.js.map +1 -1
- package/lib/commonjs/events/custom/UserCustomEvent.js +26 -0
- package/lib/commonjs/events/custom/UserCustomEvent.js.map +1 -0
- package/lib/commonjs/events/custom/UserCustomSubscriptionEvent.js +20 -0
- package/lib/commonjs/events/custom/UserCustomSubscriptionEvent.js.map +1 -0
- package/lib/commonjs/index.js +7 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/native/AffiseApiMethod.js +1 -0
- package/lib/commonjs/native/AffiseApiMethod.js.map +1 -1
- package/lib/commonjs/native/AffiseNative.js +3 -0
- package/lib/commonjs/native/AffiseNative.js.map +1 -1
- package/lib/commonjs/parameters/ProviderType.js +106 -0
- package/lib/commonjs/parameters/ProviderType.js.map +1 -0
- package/lib/module/Export.js +3 -0
- package/lib/module/Export.js.map +1 -1
- package/lib/module/events/custom/CustomId01Event.js +1 -2
- package/lib/module/events/custom/CustomId01Event.js.map +1 -1
- package/lib/module/events/custom/CustomId02Event.js +1 -2
- package/lib/module/events/custom/CustomId02Event.js.map +1 -1
- package/lib/module/events/custom/CustomId03Event.js +1 -2
- package/lib/module/events/custom/CustomId03Event.js.map +1 -1
- package/lib/module/events/custom/CustomId04Event.js +1 -2
- package/lib/module/events/custom/CustomId04Event.js.map +1 -1
- package/lib/module/events/custom/CustomId05Event.js +1 -2
- package/lib/module/events/custom/CustomId05Event.js.map +1 -1
- package/lib/module/events/custom/CustomId06Event.js +1 -2
- package/lib/module/events/custom/CustomId06Event.js.map +1 -1
- package/lib/module/events/custom/CustomId07Event.js +1 -2
- package/lib/module/events/custom/CustomId07Event.js.map +1 -1
- package/lib/module/events/custom/CustomId08Event.js +1 -2
- package/lib/module/events/custom/CustomId08Event.js.map +1 -1
- package/lib/module/events/custom/CustomId09Event.js +1 -2
- package/lib/module/events/custom/CustomId09Event.js.map +1 -1
- package/lib/module/events/custom/CustomId10Event.js +1 -2
- package/lib/module/events/custom/CustomId10Event.js.map +1 -1
- package/lib/module/events/custom/UserCustomEvent.js +20 -0
- package/lib/module/events/custom/UserCustomEvent.js.map +1 -0
- package/lib/module/events/custom/UserCustomSubscriptionEvent.js +13 -0
- package/lib/module/events/custom/UserCustomSubscriptionEvent.js.map +1 -0
- package/lib/module/index.js +7 -0
- package/lib/module/index.js.map +1 -1
- package/lib/module/native/AffiseApiMethod.js +1 -0
- package/lib/module/native/AffiseApiMethod.js.map +1 -1
- package/lib/module/native/AffiseNative.js +3 -0
- package/lib/module/native/AffiseNative.js.map +1 -1
- package/lib/module/parameters/ProviderType.js +99 -0
- package/lib/module/parameters/ProviderType.js.map +1 -0
- package/lib/typescript/Export.d.ts +3 -0
- package/lib/typescript/Export.d.ts.map +1 -1
- package/lib/typescript/events/custom/CustomId01Event.d.ts +1 -2
- package/lib/typescript/events/custom/CustomId01Event.d.ts.map +1 -1
- package/lib/typescript/events/custom/CustomId02Event.d.ts +1 -2
- package/lib/typescript/events/custom/CustomId02Event.d.ts.map +1 -1
- package/lib/typescript/events/custom/CustomId03Event.d.ts +1 -2
- package/lib/typescript/events/custom/CustomId03Event.d.ts.map +1 -1
- package/lib/typescript/events/custom/CustomId04Event.d.ts +1 -2
- package/lib/typescript/events/custom/CustomId04Event.d.ts.map +1 -1
- package/lib/typescript/events/custom/CustomId05Event.d.ts +1 -2
- package/lib/typescript/events/custom/CustomId05Event.d.ts.map +1 -1
- package/lib/typescript/events/custom/CustomId06Event.d.ts +1 -2
- package/lib/typescript/events/custom/CustomId06Event.d.ts.map +1 -1
- package/lib/typescript/events/custom/CustomId07Event.d.ts +1 -2
- package/lib/typescript/events/custom/CustomId07Event.d.ts.map +1 -1
- package/lib/typescript/events/custom/CustomId08Event.d.ts +1 -2
- package/lib/typescript/events/custom/CustomId08Event.d.ts.map +1 -1
- package/lib/typescript/events/custom/CustomId09Event.d.ts +1 -2
- package/lib/typescript/events/custom/CustomId09Event.d.ts.map +1 -1
- package/lib/typescript/events/custom/CustomId10Event.d.ts +1 -2
- package/lib/typescript/events/custom/CustomId10Event.d.ts.map +1 -1
- package/lib/typescript/events/custom/UserCustomEvent.d.ts +16 -0
- package/lib/typescript/events/custom/UserCustomEvent.d.ts.map +1 -0
- package/lib/typescript/events/custom/UserCustomSubscriptionEvent.d.ts +10 -0
- package/lib/typescript/events/custom/UserCustomSubscriptionEvent.d.ts.map +1 -0
- package/lib/typescript/index.d.ts +4 -0
- package/lib/typescript/index.d.ts.map +1 -1
- 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/parameters/ProviderType.d.ts +98 -0
- package/lib/typescript/parameters/ProviderType.d.ts.map +1 -0
- package/package.json +1 -1
- package/src/Export.ts +5 -0
- package/src/events/custom/CustomId01Event.ts +1 -2
- package/src/events/custom/CustomId02Event.ts +1 -2
- package/src/events/custom/CustomId03Event.ts +1 -2
- package/src/events/custom/CustomId04Event.ts +1 -2
- package/src/events/custom/CustomId05Event.ts +1 -2
- package/src/events/custom/CustomId06Event.ts +1 -2
- package/src/events/custom/CustomId07Event.ts +1 -2
- package/src/events/custom/CustomId08Event.ts +1 -2
- package/src/events/custom/CustomId09Event.ts +1 -2
- package/src/events/custom/CustomId10Event.ts +1 -2
- package/src/events/custom/UserCustomEvent.ts +15 -0
- package/src/events/custom/UserCustomSubscriptionEvent.ts +12 -0
- package/src/{index.tsx → index.ts} +7 -0
- package/src/native/AffiseApiMethod.ts +1 -0
- package/src/native/AffiseNative.ts +4 -0
- package/src/parameters/ProviderType.ts +103 -0
|
@@ -112,6 +112,10 @@ export class AffiseNative extends NativeBase {
|
|
|
112
112
|
return this.nativeResult(AffiseApiMethod.GET_RANDOM_DEVICE_ID);
|
|
113
113
|
}
|
|
114
114
|
|
|
115
|
+
getProviders(): Promise<Record<string, any>> {
|
|
116
|
+
return this.nativeResult(AffiseApiMethod.GET_PROVIDERS);
|
|
117
|
+
}
|
|
118
|
+
|
|
115
119
|
registerAppForAdNetworkAttribution(completionHandler: ErrorCallback) {
|
|
116
120
|
this.nativeCallback(AffiseApiMethod.SKAD_REGISTER_ERROR_CALLBACK, completionHandler);
|
|
117
121
|
}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
export enum ProviderType {
|
|
2
|
+
AFFISE_APP_ID = "affise_app_id",
|
|
3
|
+
AFFISE_PKG_APP_NAME = "affise_pkg_app_name",
|
|
4
|
+
AFF_APP_NAME_DASHBOARD = "affise_app_name_dashboard",
|
|
5
|
+
APP_VERSION = "app_version",
|
|
6
|
+
APP_VERSION_RAW = "app_version_raw",
|
|
7
|
+
STORE = "store",
|
|
8
|
+
TRACKER_TOKEN = "tracker_token",
|
|
9
|
+
TRACKER_NAME = "tracker_name",
|
|
10
|
+
FIRST_TRACKER_TOKEN = "first_tracker_token",
|
|
11
|
+
FIRST_TRACKER_NAME = "first_tracker_name",
|
|
12
|
+
LAST_TRACKER_TOKEN = "last_tracker_token",
|
|
13
|
+
LAST_TRACKER_NAME = "last_tracker_name",
|
|
14
|
+
OUTDATED_TRACKER_TOKEN = "outdated_tracker_token",
|
|
15
|
+
INSTALLED_TIME = "installed_time",
|
|
16
|
+
FIRST_OPEN_TIME = "first_open_time",
|
|
17
|
+
INSTALLED_HOUR = "installed_hour",
|
|
18
|
+
FIRST_OPEN_HOUR = "first_open_hour",
|
|
19
|
+
INSTALL_FIRST_EVENT = "install_first_event",
|
|
20
|
+
INSTALL_BEGIN_TIME = "install_begin_time",
|
|
21
|
+
INSTALL_FINISH_TIME = "install_finish_time",
|
|
22
|
+
REFERRER_INSTALL_VERSION = "referrer_install_version",
|
|
23
|
+
REFERRAL_TIME = "referral_time",
|
|
24
|
+
REFERRER_CLICK_TIME = "referrer_click_time",
|
|
25
|
+
REFERRER_CLICK_TIME_SERVER = "referrer_click_time_server",
|
|
26
|
+
REFERRER_GOOGLE_PLAY_INSTANT = "referrer_google_play_instant",
|
|
27
|
+
CREATED_TIME = "created_time",
|
|
28
|
+
CREATED_TIME_MILLI = "created_time_milli",
|
|
29
|
+
CREATED_TIME_HOUR = "created_time_hour",
|
|
30
|
+
UNINSTALL_TIME = "uninstall_time",
|
|
31
|
+
REINSTALL_TIME = "reinstall_time",
|
|
32
|
+
LAST_SESSION_TIME = "last_session_time",
|
|
33
|
+
CPU_TYPE = "cpu_type",
|
|
34
|
+
HARDWARE_NAME = "hardware_name",
|
|
35
|
+
DEVICE_MANUFACTURER = "device_manufacturer",
|
|
36
|
+
DEEPLINK_CLICK = "deeplink_click",
|
|
37
|
+
DEVICE_ATLAS_ID = "device_atlas_id",
|
|
38
|
+
AFFISE_DEVICE_ID = "affise_device_id",
|
|
39
|
+
AFFISE_ALT_DEVICE_ID = "affise_alt_device_id",
|
|
40
|
+
ANDROID_ID = "android_id",
|
|
41
|
+
ANDROID_ID_MD5 = "android_id_md5",
|
|
42
|
+
REFTOKEN = "reftoken",
|
|
43
|
+
REFTOKENS = "reftokens",
|
|
44
|
+
REFERRER = "referrer",
|
|
45
|
+
USER_AGENT = "user_agent",
|
|
46
|
+
MCCODE = "mccode",
|
|
47
|
+
MNCODE = "mncode",
|
|
48
|
+
REGION = "region",
|
|
49
|
+
COUNTRY = "country",
|
|
50
|
+
LANGUAGE = "language",
|
|
51
|
+
DEVICE_NAME = "device_name",
|
|
52
|
+
DEVICE_TYPE = "device_type",
|
|
53
|
+
OS_NAME = "os_name",
|
|
54
|
+
PLATFORM = "platform",
|
|
55
|
+
SDK_PLATFORM = "sdk_platform",
|
|
56
|
+
API_LEVEL_OS = "api_level_os",
|
|
57
|
+
AFFISE_SDK_VERSION = "affise_sdk_version",
|
|
58
|
+
OS_VERSION = "os_version",
|
|
59
|
+
RANDOM_USER_ID = "random_user_id",
|
|
60
|
+
AFFISE_SDK_POS = "affise_sdk_pos",
|
|
61
|
+
TIMEZONE_DEV = "timezone_dev",
|
|
62
|
+
AFFISE_EVENT_NAME = "affise_event_name",
|
|
63
|
+
AFFISE_EVENT_TOKEN = "affise_event_token",
|
|
64
|
+
LAST_TIME_SESSION = "last_time_session",
|
|
65
|
+
TIME_SESSION = "time_session",
|
|
66
|
+
AFFISE_SESSION_COUNT = "affise_session_count",
|
|
67
|
+
LIFETIME_SESSION_COUNT = "lifetime_session_count",
|
|
68
|
+
AFFISE_DEEPLINK = "affise_deeplink",
|
|
69
|
+
AFFISE_PART_PARAM_NAME = "affise_part_param_name",
|
|
70
|
+
AFFISE_PART_PARAM_NAME_TOKEN = "affise_part_param_name_token",
|
|
71
|
+
AFFISE_APP_TOKEN = "affise_app_token",
|
|
72
|
+
LABEL = "label",
|
|
73
|
+
AFFISE_SDK_SECRET_ID = "affise_sdk_secret_id",
|
|
74
|
+
UUID = "uuid",
|
|
75
|
+
AFFISE_APP_OPENED = "affise_app_opened",
|
|
76
|
+
PUSHTOKEN = "pushtoken",
|
|
77
|
+
AFFISE_EVENTS_COUNT = "affise_events_count",
|
|
78
|
+
AFFISE_SDK_EVENTS_COUNT = "affise_sdk_events_count",
|
|
79
|
+
AFFISE_METRICS_EVENTS_COUNT = "affise_metrics_events_count",
|
|
80
|
+
AFFISE_INTERNAL_EVENTS_COUNT = "affise_internal_events_count",
|
|
81
|
+
IS_ROOTED = "is_rooted",
|
|
82
|
+
IS_EMULATOR = "is_emulator",
|
|
83
|
+
|
|
84
|
+
// advertising
|
|
85
|
+
GAID_ADID = "gaid_adid",
|
|
86
|
+
GAID_ADID_MD5 = "gaid_adid_md5",
|
|
87
|
+
OAID = "oaid",
|
|
88
|
+
OAID_MD5 = "oaid_md5",
|
|
89
|
+
ADID = "adid",
|
|
90
|
+
ALTSTR_ADID = "altstr_adid",
|
|
91
|
+
FIREOS_ADID = "fireos_adid",
|
|
92
|
+
COLOROS_ADID = "coloros_adid",
|
|
93
|
+
|
|
94
|
+
// network
|
|
95
|
+
MAC_SHA1 = "mac_sha1",
|
|
96
|
+
MAC_MD5 = "mac_md5",
|
|
97
|
+
CONNECTION_TYPE = "connection_type",
|
|
98
|
+
PROXY_IP_ADDRESS = "proxy_ip_address",
|
|
99
|
+
|
|
100
|
+
// phone
|
|
101
|
+
NETWORK_TYPE = "network_type",
|
|
102
|
+
ISP = "isp",
|
|
103
|
+
}
|