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.
Files changed (124) hide show
  1. package/README.md +76 -18
  2. package/affise-attribution-native.podspec +1 -3
  3. package/android/build.gradle +1 -1
  4. package/android/src/main/java/com/affise/attribution/react/ResultWrapper.kt +11 -2
  5. package/lib/commonjs/Export.js +33 -0
  6. package/lib/commonjs/Export.js.map +1 -1
  7. package/lib/commonjs/events/custom/CustomId01Event.js +1 -2
  8. package/lib/commonjs/events/custom/CustomId01Event.js.map +1 -1
  9. package/lib/commonjs/events/custom/CustomId02Event.js +1 -2
  10. package/lib/commonjs/events/custom/CustomId02Event.js.map +1 -1
  11. package/lib/commonjs/events/custom/CustomId03Event.js +1 -2
  12. package/lib/commonjs/events/custom/CustomId03Event.js.map +1 -1
  13. package/lib/commonjs/events/custom/CustomId04Event.js +1 -2
  14. package/lib/commonjs/events/custom/CustomId04Event.js.map +1 -1
  15. package/lib/commonjs/events/custom/CustomId05Event.js +1 -2
  16. package/lib/commonjs/events/custom/CustomId05Event.js.map +1 -1
  17. package/lib/commonjs/events/custom/CustomId06Event.js +1 -2
  18. package/lib/commonjs/events/custom/CustomId06Event.js.map +1 -1
  19. package/lib/commonjs/events/custom/CustomId07Event.js +1 -2
  20. package/lib/commonjs/events/custom/CustomId07Event.js.map +1 -1
  21. package/lib/commonjs/events/custom/CustomId08Event.js +1 -2
  22. package/lib/commonjs/events/custom/CustomId08Event.js.map +1 -1
  23. package/lib/commonjs/events/custom/CustomId09Event.js +1 -2
  24. package/lib/commonjs/events/custom/CustomId09Event.js.map +1 -1
  25. package/lib/commonjs/events/custom/CustomId10Event.js +1 -2
  26. package/lib/commonjs/events/custom/CustomId10Event.js.map +1 -1
  27. package/lib/commonjs/events/custom/UserCustomEvent.js +26 -0
  28. package/lib/commonjs/events/custom/UserCustomEvent.js.map +1 -0
  29. package/lib/commonjs/events/custom/UserCustomSubscriptionEvent.js +20 -0
  30. package/lib/commonjs/events/custom/UserCustomSubscriptionEvent.js.map +1 -0
  31. package/lib/commonjs/index.js +7 -0
  32. package/lib/commonjs/index.js.map +1 -1
  33. package/lib/commonjs/native/AffiseApiMethod.js +1 -0
  34. package/lib/commonjs/native/AffiseApiMethod.js.map +1 -1
  35. package/lib/commonjs/native/AffiseNative.js +3 -0
  36. package/lib/commonjs/native/AffiseNative.js.map +1 -1
  37. package/lib/commonjs/parameters/ProviderType.js +106 -0
  38. package/lib/commonjs/parameters/ProviderType.js.map +1 -0
  39. package/lib/module/Export.js +3 -0
  40. package/lib/module/Export.js.map +1 -1
  41. package/lib/module/events/custom/CustomId01Event.js +1 -2
  42. package/lib/module/events/custom/CustomId01Event.js.map +1 -1
  43. package/lib/module/events/custom/CustomId02Event.js +1 -2
  44. package/lib/module/events/custom/CustomId02Event.js.map +1 -1
  45. package/lib/module/events/custom/CustomId03Event.js +1 -2
  46. package/lib/module/events/custom/CustomId03Event.js.map +1 -1
  47. package/lib/module/events/custom/CustomId04Event.js +1 -2
  48. package/lib/module/events/custom/CustomId04Event.js.map +1 -1
  49. package/lib/module/events/custom/CustomId05Event.js +1 -2
  50. package/lib/module/events/custom/CustomId05Event.js.map +1 -1
  51. package/lib/module/events/custom/CustomId06Event.js +1 -2
  52. package/lib/module/events/custom/CustomId06Event.js.map +1 -1
  53. package/lib/module/events/custom/CustomId07Event.js +1 -2
  54. package/lib/module/events/custom/CustomId07Event.js.map +1 -1
  55. package/lib/module/events/custom/CustomId08Event.js +1 -2
  56. package/lib/module/events/custom/CustomId08Event.js.map +1 -1
  57. package/lib/module/events/custom/CustomId09Event.js +1 -2
  58. package/lib/module/events/custom/CustomId09Event.js.map +1 -1
  59. package/lib/module/events/custom/CustomId10Event.js +1 -2
  60. package/lib/module/events/custom/CustomId10Event.js.map +1 -1
  61. package/lib/module/events/custom/UserCustomEvent.js +20 -0
  62. package/lib/module/events/custom/UserCustomEvent.js.map +1 -0
  63. package/lib/module/events/custom/UserCustomSubscriptionEvent.js +13 -0
  64. package/lib/module/events/custom/UserCustomSubscriptionEvent.js.map +1 -0
  65. package/lib/module/index.js +7 -0
  66. package/lib/module/index.js.map +1 -1
  67. package/lib/module/native/AffiseApiMethod.js +1 -0
  68. package/lib/module/native/AffiseApiMethod.js.map +1 -1
  69. package/lib/module/native/AffiseNative.js +3 -0
  70. package/lib/module/native/AffiseNative.js.map +1 -1
  71. package/lib/module/parameters/ProviderType.js +99 -0
  72. package/lib/module/parameters/ProviderType.js.map +1 -0
  73. package/lib/typescript/Export.d.ts +3 -0
  74. package/lib/typescript/Export.d.ts.map +1 -1
  75. package/lib/typescript/events/custom/CustomId01Event.d.ts +1 -2
  76. package/lib/typescript/events/custom/CustomId01Event.d.ts.map +1 -1
  77. package/lib/typescript/events/custom/CustomId02Event.d.ts +1 -2
  78. package/lib/typescript/events/custom/CustomId02Event.d.ts.map +1 -1
  79. package/lib/typescript/events/custom/CustomId03Event.d.ts +1 -2
  80. package/lib/typescript/events/custom/CustomId03Event.d.ts.map +1 -1
  81. package/lib/typescript/events/custom/CustomId04Event.d.ts +1 -2
  82. package/lib/typescript/events/custom/CustomId04Event.d.ts.map +1 -1
  83. package/lib/typescript/events/custom/CustomId05Event.d.ts +1 -2
  84. package/lib/typescript/events/custom/CustomId05Event.d.ts.map +1 -1
  85. package/lib/typescript/events/custom/CustomId06Event.d.ts +1 -2
  86. package/lib/typescript/events/custom/CustomId06Event.d.ts.map +1 -1
  87. package/lib/typescript/events/custom/CustomId07Event.d.ts +1 -2
  88. package/lib/typescript/events/custom/CustomId07Event.d.ts.map +1 -1
  89. package/lib/typescript/events/custom/CustomId08Event.d.ts +1 -2
  90. package/lib/typescript/events/custom/CustomId08Event.d.ts.map +1 -1
  91. package/lib/typescript/events/custom/CustomId09Event.d.ts +1 -2
  92. package/lib/typescript/events/custom/CustomId09Event.d.ts.map +1 -1
  93. package/lib/typescript/events/custom/CustomId10Event.d.ts +1 -2
  94. package/lib/typescript/events/custom/CustomId10Event.d.ts.map +1 -1
  95. package/lib/typescript/events/custom/UserCustomEvent.d.ts +16 -0
  96. package/lib/typescript/events/custom/UserCustomEvent.d.ts.map +1 -0
  97. package/lib/typescript/events/custom/UserCustomSubscriptionEvent.d.ts +10 -0
  98. package/lib/typescript/events/custom/UserCustomSubscriptionEvent.d.ts.map +1 -0
  99. package/lib/typescript/index.d.ts +4 -0
  100. package/lib/typescript/index.d.ts.map +1 -1
  101. package/lib/typescript/native/AffiseApiMethod.d.ts +1 -0
  102. package/lib/typescript/native/AffiseApiMethod.d.ts.map +1 -1
  103. package/lib/typescript/native/AffiseNative.d.ts +1 -0
  104. package/lib/typescript/native/AffiseNative.d.ts.map +1 -1
  105. package/lib/typescript/parameters/ProviderType.d.ts +98 -0
  106. package/lib/typescript/parameters/ProviderType.d.ts.map +1 -0
  107. package/package.json +1 -1
  108. package/src/Export.ts +5 -0
  109. package/src/events/custom/CustomId01Event.ts +1 -2
  110. package/src/events/custom/CustomId02Event.ts +1 -2
  111. package/src/events/custom/CustomId03Event.ts +1 -2
  112. package/src/events/custom/CustomId04Event.ts +1 -2
  113. package/src/events/custom/CustomId05Event.ts +1 -2
  114. package/src/events/custom/CustomId06Event.ts +1 -2
  115. package/src/events/custom/CustomId07Event.ts +1 -2
  116. package/src/events/custom/CustomId08Event.ts +1 -2
  117. package/src/events/custom/CustomId09Event.ts +1 -2
  118. package/src/events/custom/CustomId10Event.ts +1 -2
  119. package/src/events/custom/UserCustomEvent.ts +15 -0
  120. package/src/events/custom/UserCustomSubscriptionEvent.ts +12 -0
  121. package/src/{index.tsx → index.ts} +7 -0
  122. package/src/native/AffiseApiMethod.ts +1 -0
  123. package/src/native/AffiseNative.ts +4 -0
  124. 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
+ }