@tyrads.com/tyrads-sdk 3.3.4 → 4.0.0

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 (436) hide show
  1. package/android/build.gradle +1 -1
  2. package/android/src/main/java/com/tyradssdk/TyradsSdkModule.kt +161 -19
  3. package/ios/Tyrads/AcmoConfig.swift +1 -1
  4. package/ios/Tyrads/InitModel.swift +29 -15
  5. package/ios/Tyrads/Tyrads.swift +332 -274
  6. package/ios/Tyrads/WebViewController.swift +10 -17
  7. package/ios/Tyrads/core/models/TyradsUserInfo.swift +2 -0
  8. package/ios/Tyrads/core/utils/AcmoKeyNames.swift +1 -0
  9. package/ios/Tyrads/helpers/device_details.swift +122 -2
  10. package/ios/Tyrads/pushNotifications/APNsAppDelegateProxy.swift +37 -0
  11. package/ios/Tyrads/pushNotifications/APNsNotificationListener.swift +14 -0
  12. package/ios/Tyrads/pushNotifications/APNsNotificationManager.swift +68 -0
  13. package/ios/Tyrads/pushNotifications/APNsNotificationReceiver.swift +77 -0
  14. package/ios/Tyrads/pushNotifications/TyradsAPNsSwizzler.mm +179 -0
  15. package/ios/TyradsSdk-Bridging-Header.h +3 -0
  16. package/ios/TyradsSdk.mm +12 -1
  17. package/ios/TyradsSdk.swift +121 -4
  18. package/lib/commonjs/acmo/core/components/countdown-timer.js +48 -0
  19. package/lib/commonjs/acmo/core/components/countdown-timer.js.map +1 -0
  20. package/lib/commonjs/acmo/core/components/snap-carousel.js +86 -0
  21. package/lib/commonjs/acmo/core/components/snap-carousel.js.map +1 -0
  22. package/lib/commonjs/acmo/core/constants/api-endpoints.js +18 -0
  23. package/lib/commonjs/acmo/core/constants/api-endpoints.js.map +1 -0
  24. package/lib/commonjs/acmo/core/helpers/colors.js +20 -0
  25. package/lib/commonjs/acmo/core/helpers/colors.js.map +1 -0
  26. package/lib/commonjs/acmo/core/helpers/logger.js +18 -0
  27. package/lib/commonjs/acmo/core/helpers/logger.js.map +1 -0
  28. package/lib/commonjs/acmo/core/helpers/patches.js +7 -0
  29. package/lib/commonjs/acmo/core/helpers/patches.js.map +1 -0
  30. package/lib/commonjs/acmo/core/network/http-client.js +91 -0
  31. package/lib/commonjs/acmo/core/network/http-client.js.map +1 -0
  32. package/lib/commonjs/acmo/core/network/network-common.js +111 -0
  33. package/lib/commonjs/acmo/core/network/network-common.js.map +1 -0
  34. package/lib/commonjs/acmo/core/services/localization_service.js +7 -13
  35. package/lib/commonjs/acmo/core/services/localization_service.js.map +1 -1
  36. package/lib/commonjs/acmo/core/types/activated-campaings.d.js +2 -0
  37. package/lib/commonjs/acmo/core/types/activated-campaings.d.js.map +1 -0
  38. package/lib/commonjs/acmo/core/tyrads-sdk-core.js +203 -0
  39. package/lib/commonjs/acmo/core/tyrads-sdk-core.js.map +1 -0
  40. package/lib/commonjs/acmo/modules/inapp-notifications/components/gradient_card.js +98 -0
  41. package/lib/commonjs/acmo/modules/inapp-notifications/components/gradient_card.js.map +1 -0
  42. package/lib/commonjs/acmo/modules/inapp-notifications/components/modal-wrapper.js +55 -0
  43. package/lib/commonjs/acmo/modules/inapp-notifications/components/modal-wrapper.js.map +1 -0
  44. package/lib/commonjs/acmo/modules/inapp-notifications/controller.js +141 -0
  45. package/lib/commonjs/acmo/modules/inapp-notifications/controller.js.map +1 -0
  46. package/lib/commonjs/acmo/modules/inapp-notifications/currency-sales/currency-sales-notif.js +183 -0
  47. package/lib/commonjs/acmo/modules/inapp-notifications/currency-sales/currency-sales-notif.js.map +1 -0
  48. package/lib/commonjs/acmo/modules/inapp-notifications/inapp-notification-host.js +37 -0
  49. package/lib/commonjs/acmo/modules/inapp-notifications/inapp-notification-host.js.map +1 -0
  50. package/lib/commonjs/acmo/modules/inapp-notifications/inapp-notification-manager.js +39 -0
  51. package/lib/commonjs/acmo/modules/inapp-notifications/inapp-notification-manager.js.map +1 -0
  52. package/lib/commonjs/acmo/modules/inapp-notifications/limited-time-offer/components/limited-time-offer-card.js +206 -0
  53. package/lib/commonjs/acmo/modules/inapp-notifications/limited-time-offer/components/limited-time-offer-card.js.map +1 -0
  54. package/lib/commonjs/acmo/modules/inapp-notifications/limited-time-offer/limited-time-notif.js +155 -0
  55. package/lib/commonjs/acmo/modules/inapp-notifications/limited-time-offer/limited-time-notif.js.map +1 -0
  56. package/lib/commonjs/acmo/modules/inapp-notifications/repository.js +52 -0
  57. package/lib/commonjs/acmo/modules/inapp-notifications/repository.js.map +1 -0
  58. package/lib/commonjs/acmo/modules/inapp-notifications/tyrads-global-host.js +37 -0
  59. package/lib/commonjs/acmo/modules/inapp-notifications/tyrads-global-host.js.map +1 -0
  60. package/lib/commonjs/acmo/modules/localization/localization_context.js +15 -2
  61. package/lib/commonjs/acmo/modules/localization/localization_context.js.map +1 -1
  62. package/lib/commonjs/acmo/modules/premium-widgets/components/active_offers_button.js.map +1 -0
  63. package/lib/commonjs/acmo/modules/{dashboard → premium-widgets}/components/custom_card.js +1 -2
  64. package/lib/commonjs/acmo/modules/premium-widgets/components/custom_card.js.map +1 -0
  65. package/lib/commonjs/acmo/modules/{dashboard → premium-widgets}/components/custom_scroller.js +20 -11
  66. package/lib/commonjs/acmo/modules/premium-widgets/components/custom_scroller.js.map +1 -0
  67. package/lib/commonjs/acmo/modules/premium-widgets/components/custom_shimmer.js.map +1 -0
  68. package/lib/commonjs/acmo/modules/{dashboard → premium-widgets}/components/offer_card.js +12 -12
  69. package/lib/commonjs/acmo/modules/premium-widgets/components/offer_card.js.map +1 -0
  70. package/lib/commonjs/acmo/modules/{dashboard → premium-widgets}/components/offer_list_item.js +3 -3
  71. package/lib/commonjs/acmo/modules/premium-widgets/components/offer_list_item.js.map +1 -0
  72. package/lib/commonjs/acmo/modules/premium-widgets/components/premium_empty_widget.js.map +1 -0
  73. package/lib/commonjs/acmo/modules/premium-widgets/components/premium_header.js.map +1 -0
  74. package/lib/commonjs/acmo/modules/{dashboard → premium-widgets}/components/premium_loading.js +3 -3
  75. package/lib/commonjs/acmo/modules/premium-widgets/components/premium_loading.js.map +1 -0
  76. package/lib/commonjs/acmo/modules/premium-widgets/controller.js +30 -0
  77. package/lib/commonjs/acmo/modules/premium-widgets/controller.js.map +1 -0
  78. package/lib/commonjs/acmo/modules/{dashboard/top_offers.js → premium-widgets/premium_offers_widget.js} +67 -30
  79. package/lib/commonjs/acmo/modules/premium-widgets/premium_offers_widget.js.map +1 -0
  80. package/lib/commonjs/acmo/modules/premium-widgets/premium_offers_widget_wrapper.js +49 -0
  81. package/lib/commonjs/acmo/modules/premium-widgets/premium_offers_widget_wrapper.js.map +1 -0
  82. package/lib/commonjs/acmo/modules/premium-widgets/repository.js +103 -0
  83. package/lib/commonjs/acmo/modules/premium-widgets/repository.js.map +1 -0
  84. package/lib/commonjs/acmo/modules/push-notifications/apns-manager.js +227 -0
  85. package/lib/commonjs/acmo/modules/push-notifications/apns-manager.js.map +1 -0
  86. package/lib/commonjs/acmo/modules/push-notifications/fcm-manager.js +148 -0
  87. package/lib/commonjs/acmo/modules/push-notifications/fcm-manager.js.map +1 -0
  88. package/lib/commonjs/acmo_config.js +6 -5
  89. package/lib/commonjs/acmo_config.js.map +1 -1
  90. package/lib/commonjs/assets/images/alarm-clock.png +0 -0
  91. package/lib/commonjs/assets/images/circle-x.png +0 -0
  92. package/lib/commonjs/assets/images/coin.png +0 -0
  93. package/lib/commonjs/index.js +33 -106
  94. package/lib/commonjs/index.js.map +1 -1
  95. package/lib/module/acmo/core/components/countdown-timer.js +42 -0
  96. package/lib/module/acmo/core/components/countdown-timer.js.map +1 -0
  97. package/lib/module/acmo/core/components/snap-carousel.js +81 -0
  98. package/lib/module/acmo/core/components/snap-carousel.js.map +1 -0
  99. package/lib/module/acmo/core/constants/api-endpoints.js +14 -0
  100. package/lib/module/acmo/core/constants/api-endpoints.js.map +1 -0
  101. package/lib/module/acmo/core/helpers/colors.js +15 -0
  102. package/lib/module/acmo/core/helpers/colors.js.map +1 -0
  103. package/lib/module/acmo/core/helpers/logger.js +14 -0
  104. package/lib/module/acmo/core/helpers/logger.js.map +1 -0
  105. package/lib/module/acmo/core/helpers/patches.js +7 -0
  106. package/lib/module/acmo/core/helpers/patches.js.map +1 -0
  107. package/lib/module/acmo/core/network/http-client.js +86 -0
  108. package/lib/module/acmo/core/network/http-client.js.map +1 -0
  109. package/lib/module/acmo/core/network/network-common.js +106 -0
  110. package/lib/module/acmo/core/network/network-common.js.map +1 -0
  111. package/lib/module/acmo/core/services/localization_service.js +7 -13
  112. package/lib/module/acmo/core/services/localization_service.js.map +1 -1
  113. package/lib/module/acmo/core/types/activated-campaings.d.js +2 -0
  114. package/lib/module/acmo/core/types/activated-campaings.d.js.map +1 -0
  115. package/lib/module/acmo/core/tyrads-sdk-core.js +197 -0
  116. package/lib/module/acmo/core/tyrads-sdk-core.js.map +1 -0
  117. package/lib/module/acmo/modules/inapp-notifications/components/gradient_card.js +92 -0
  118. package/lib/module/acmo/modules/inapp-notifications/components/gradient_card.js.map +1 -0
  119. package/lib/module/acmo/modules/inapp-notifications/components/modal-wrapper.js +49 -0
  120. package/lib/module/acmo/modules/inapp-notifications/components/modal-wrapper.js.map +1 -0
  121. package/lib/module/acmo/modules/inapp-notifications/controller.js +136 -0
  122. package/lib/module/acmo/modules/inapp-notifications/controller.js.map +1 -0
  123. package/lib/module/acmo/modules/inapp-notifications/currency-sales/currency-sales-notif.js +176 -0
  124. package/lib/module/acmo/modules/inapp-notifications/currency-sales/currency-sales-notif.js.map +1 -0
  125. package/lib/module/acmo/modules/inapp-notifications/inapp-notification-host.js +32 -0
  126. package/lib/module/acmo/modules/inapp-notifications/inapp-notification-host.js.map +1 -0
  127. package/lib/module/acmo/modules/inapp-notifications/inapp-notification-manager.js +35 -0
  128. package/lib/module/acmo/modules/inapp-notifications/inapp-notification-manager.js.map +1 -0
  129. package/lib/module/acmo/modules/inapp-notifications/limited-time-offer/components/limited-time-offer-card.js +200 -0
  130. package/lib/module/acmo/modules/inapp-notifications/limited-time-offer/components/limited-time-offer-card.js.map +1 -0
  131. package/lib/module/acmo/modules/inapp-notifications/limited-time-offer/limited-time-notif.js +149 -0
  132. package/lib/module/acmo/modules/inapp-notifications/limited-time-offer/limited-time-notif.js.map +1 -0
  133. package/lib/module/acmo/modules/inapp-notifications/repository.js +47 -0
  134. package/lib/module/acmo/modules/inapp-notifications/repository.js.map +1 -0
  135. package/lib/module/acmo/modules/inapp-notifications/tyrads-global-host.js +32 -0
  136. package/lib/module/acmo/modules/inapp-notifications/tyrads-global-host.js.map +1 -0
  137. package/lib/module/acmo/modules/localization/localization_context.js +15 -2
  138. package/lib/module/acmo/modules/localization/localization_context.js.map +1 -1
  139. package/lib/module/acmo/modules/premium-widgets/components/active_offers_button.js.map +1 -0
  140. package/lib/module/acmo/modules/{dashboard → premium-widgets}/components/custom_card.js +1 -2
  141. package/lib/module/acmo/modules/premium-widgets/components/custom_card.js.map +1 -0
  142. package/lib/module/acmo/modules/{dashboard → premium-widgets}/components/custom_scroller.js +20 -11
  143. package/lib/module/acmo/modules/premium-widgets/components/custom_scroller.js.map +1 -0
  144. package/lib/module/acmo/modules/premium-widgets/components/custom_shimmer.js.map +1 -0
  145. package/lib/module/acmo/modules/{dashboard → premium-widgets}/components/offer_card.js +12 -12
  146. package/lib/module/acmo/modules/premium-widgets/components/offer_card.js.map +1 -0
  147. package/lib/module/acmo/modules/{dashboard → premium-widgets}/components/offer_list_item.js +3 -3
  148. package/lib/module/acmo/modules/premium-widgets/components/offer_list_item.js.map +1 -0
  149. package/lib/module/acmo/modules/premium-widgets/components/premium_empty_widget.js.map +1 -0
  150. package/lib/module/acmo/modules/premium-widgets/components/premium_header.js.map +1 -0
  151. package/lib/module/acmo/modules/{dashboard → premium-widgets}/components/premium_loading.js +1 -1
  152. package/lib/module/acmo/modules/premium-widgets/components/premium_loading.js.map +1 -0
  153. package/lib/module/acmo/modules/premium-widgets/controller.js +25 -0
  154. package/lib/module/acmo/modules/premium-widgets/controller.js.map +1 -0
  155. package/lib/module/acmo/modules/{dashboard/top_offers.js → premium-widgets/premium_offers_widget.js} +69 -32
  156. package/lib/module/acmo/modules/premium-widgets/premium_offers_widget.js.map +1 -0
  157. package/lib/module/acmo/modules/premium-widgets/premium_offers_widget_wrapper.js +41 -0
  158. package/lib/module/acmo/modules/premium-widgets/premium_offers_widget_wrapper.js.map +1 -0
  159. package/lib/module/acmo/modules/premium-widgets/repository.js +98 -0
  160. package/lib/module/acmo/modules/premium-widgets/repository.js.map +1 -0
  161. package/lib/module/acmo/modules/push-notifications/apns-manager.js +222 -0
  162. package/lib/module/acmo/modules/push-notifications/apns-manager.js.map +1 -0
  163. package/lib/module/acmo/modules/push-notifications/fcm-manager.js +143 -0
  164. package/lib/module/acmo/modules/push-notifications/fcm-manager.js.map +1 -0
  165. package/lib/module/acmo_config.js +6 -5
  166. package/lib/module/acmo_config.js.map +1 -1
  167. package/lib/module/assets/images/alarm-clock.png +0 -0
  168. package/lib/module/assets/images/circle-x.png +0 -0
  169. package/lib/module/assets/images/coin.png +0 -0
  170. package/lib/module/index.js +16 -106
  171. package/lib/module/index.js.map +1 -1
  172. package/lib/typescript/commonjs/src/acmo/core/components/countdown-timer.d.ts +8 -0
  173. package/lib/typescript/commonjs/src/acmo/core/components/countdown-timer.d.ts.map +1 -0
  174. package/lib/typescript/commonjs/src/acmo/core/components/snap-carousel.d.ts +26 -0
  175. package/lib/typescript/commonjs/src/acmo/core/components/snap-carousel.d.ts.map +1 -0
  176. package/lib/typescript/commonjs/src/acmo/core/constants/api-endpoints.d.ts +12 -0
  177. package/lib/typescript/commonjs/src/acmo/core/constants/api-endpoints.d.ts.map +1 -0
  178. package/lib/typescript/commonjs/src/acmo/core/helpers/colors.d.ts +2 -0
  179. package/lib/typescript/commonjs/src/acmo/core/helpers/colors.d.ts.map +1 -0
  180. package/lib/typescript/commonjs/src/acmo/core/helpers/logger.d.ts +6 -0
  181. package/lib/typescript/commonjs/src/acmo/core/helpers/logger.d.ts.map +1 -0
  182. package/lib/typescript/commonjs/src/acmo/core/network/http-client.d.ts +28 -0
  183. package/lib/typescript/commonjs/src/acmo/core/network/http-client.d.ts.map +1 -0
  184. package/lib/typescript/commonjs/src/acmo/core/network/network-common.d.ts +13 -0
  185. package/lib/typescript/commonjs/src/acmo/core/network/network-common.d.ts.map +1 -0
  186. package/lib/typescript/commonjs/src/acmo/core/services/localization_service.d.ts +0 -1
  187. package/lib/typescript/commonjs/src/acmo/core/services/localization_service.d.ts.map +1 -1
  188. package/lib/typescript/commonjs/src/acmo/core/types/external_types.d.ts +5 -0
  189. package/lib/typescript/commonjs/src/acmo/core/types/external_types.d.ts.map +1 -1
  190. package/lib/typescript/commonjs/src/acmo/core/tyrads-sdk-core.d.ts +46 -0
  191. package/lib/typescript/commonjs/src/acmo/core/tyrads-sdk-core.d.ts.map +1 -0
  192. package/lib/typescript/commonjs/src/acmo/modules/inapp-notifications/components/gradient_card.d.ts +17 -0
  193. package/lib/typescript/commonjs/src/acmo/modules/inapp-notifications/components/gradient_card.d.ts.map +1 -0
  194. package/lib/typescript/commonjs/src/acmo/modules/inapp-notifications/components/modal-wrapper.d.ts +10 -0
  195. package/lib/typescript/commonjs/src/acmo/modules/inapp-notifications/components/modal-wrapper.d.ts.map +1 -0
  196. package/lib/typescript/commonjs/src/acmo/modules/inapp-notifications/controller.d.ts +22 -0
  197. package/lib/typescript/commonjs/src/acmo/modules/inapp-notifications/controller.d.ts.map +1 -0
  198. package/lib/typescript/commonjs/src/acmo/modules/inapp-notifications/currency-sales/currency-sales-notif.d.ts +6 -0
  199. package/lib/typescript/commonjs/src/acmo/modules/inapp-notifications/currency-sales/currency-sales-notif.d.ts.map +1 -0
  200. package/lib/typescript/commonjs/src/acmo/modules/inapp-notifications/inapp-notification-host.d.ts +7 -0
  201. package/lib/typescript/commonjs/src/acmo/modules/inapp-notifications/inapp-notification-host.d.ts.map +1 -0
  202. package/lib/typescript/commonjs/src/acmo/modules/inapp-notifications/inapp-notification-manager.d.ts +14 -0
  203. package/lib/typescript/commonjs/src/acmo/modules/inapp-notifications/inapp-notification-manager.d.ts.map +1 -0
  204. package/lib/typescript/commonjs/src/acmo/modules/inapp-notifications/limited-time-offer/components/limited-time-offer-card.d.ts +4 -0
  205. package/lib/typescript/commonjs/src/acmo/modules/inapp-notifications/limited-time-offer/components/limited-time-offer-card.d.ts.map +1 -0
  206. package/lib/typescript/commonjs/src/acmo/modules/inapp-notifications/limited-time-offer/limited-time-notif.d.ts +7 -0
  207. package/lib/typescript/commonjs/src/acmo/modules/inapp-notifications/limited-time-offer/limited-time-notif.d.ts.map +1 -0
  208. package/lib/typescript/commonjs/src/acmo/modules/inapp-notifications/repository.d.ts +8 -0
  209. package/lib/typescript/commonjs/src/acmo/modules/inapp-notifications/repository.d.ts.map +1 -0
  210. package/lib/typescript/commonjs/src/acmo/modules/inapp-notifications/tyrads-global-host.d.ts +6 -0
  211. package/lib/typescript/commonjs/src/acmo/modules/inapp-notifications/tyrads-global-host.d.ts.map +1 -0
  212. package/lib/typescript/commonjs/src/acmo/modules/localization/localization_context.d.ts.map +1 -1
  213. package/lib/typescript/commonjs/src/acmo/modules/premium-widgets/components/active_offers_button.d.ts.map +1 -0
  214. package/lib/typescript/commonjs/src/acmo/modules/premium-widgets/components/custom_card.d.ts.map +1 -0
  215. package/lib/typescript/{module/src/acmo/modules/dashboard → commonjs/src/acmo/modules/premium-widgets}/components/custom_scroller.d.ts +3 -0
  216. package/lib/typescript/commonjs/src/acmo/modules/premium-widgets/components/custom_scroller.d.ts.map +1 -0
  217. package/lib/typescript/commonjs/src/acmo/modules/premium-widgets/components/custom_shimmer.d.ts.map +1 -0
  218. package/lib/typescript/commonjs/src/acmo/modules/premium-widgets/components/offer_card.d.ts.map +1 -0
  219. package/lib/typescript/commonjs/src/acmo/modules/premium-widgets/components/offer_list_item.d.ts.map +1 -0
  220. package/lib/typescript/commonjs/src/acmo/modules/premium-widgets/components/premium_empty_widget.d.ts.map +1 -0
  221. package/lib/typescript/commonjs/src/acmo/modules/premium-widgets/components/premium_header.d.ts.map +1 -0
  222. package/lib/typescript/{module/src/acmo/modules/dashboard → commonjs/src/acmo/modules/premium-widgets}/components/premium_loading.d.ts +1 -1
  223. package/lib/typescript/commonjs/src/acmo/modules/premium-widgets/components/premium_loading.d.ts.map +1 -0
  224. package/lib/typescript/commonjs/src/acmo/modules/premium-widgets/controller.d.ts +14 -0
  225. package/lib/typescript/commonjs/src/acmo/modules/premium-widgets/controller.d.ts.map +1 -0
  226. package/lib/typescript/commonjs/src/acmo/modules/{dashboard/top_offers.d.ts → premium-widgets/premium_offers_widget.d.ts} +3 -3
  227. package/lib/typescript/commonjs/src/acmo/modules/premium-widgets/premium_offers_widget.d.ts.map +1 -0
  228. package/lib/typescript/commonjs/src/acmo/modules/premium-widgets/premium_offers_widget_wrapper.d.ts +9 -0
  229. package/lib/typescript/commonjs/src/acmo/modules/premium-widgets/premium_offers_widget_wrapper.d.ts.map +1 -0
  230. package/lib/typescript/commonjs/src/acmo/modules/premium-widgets/repository.d.ts +13 -0
  231. package/lib/typescript/commonjs/src/acmo/modules/premium-widgets/repository.d.ts.map +1 -0
  232. package/lib/typescript/commonjs/src/acmo/modules/push-notifications/apns-manager.d.ts +40 -0
  233. package/lib/typescript/commonjs/src/acmo/modules/push-notifications/apns-manager.d.ts.map +1 -0
  234. package/lib/typescript/commonjs/src/acmo/modules/push-notifications/fcm-manager.d.ts +32 -0
  235. package/lib/typescript/commonjs/src/acmo/modules/push-notifications/fcm-manager.d.ts.map +1 -0
  236. package/lib/typescript/commonjs/src/acmo_config.d.ts +1 -0
  237. package/lib/typescript/commonjs/src/acmo_config.d.ts.map +1 -1
  238. package/lib/typescript/commonjs/src/index.d.ts +5 -11
  239. package/lib/typescript/commonjs/src/index.d.ts.map +1 -1
  240. package/lib/typescript/module/src/acmo/core/components/countdown-timer.d.ts +8 -0
  241. package/lib/typescript/module/src/acmo/core/components/countdown-timer.d.ts.map +1 -0
  242. package/lib/typescript/module/src/acmo/core/components/snap-carousel.d.ts +26 -0
  243. package/lib/typescript/module/src/acmo/core/components/snap-carousel.d.ts.map +1 -0
  244. package/lib/typescript/module/src/acmo/core/constants/api-endpoints.d.ts +12 -0
  245. package/lib/typescript/module/src/acmo/core/constants/api-endpoints.d.ts.map +1 -0
  246. package/lib/typescript/module/src/acmo/core/helpers/colors.d.ts +2 -0
  247. package/lib/typescript/module/src/acmo/core/helpers/colors.d.ts.map +1 -0
  248. package/lib/typescript/module/src/acmo/core/helpers/logger.d.ts +6 -0
  249. package/lib/typescript/module/src/acmo/core/helpers/logger.d.ts.map +1 -0
  250. package/lib/typescript/module/src/acmo/core/network/http-client.d.ts +28 -0
  251. package/lib/typescript/module/src/acmo/core/network/http-client.d.ts.map +1 -0
  252. package/lib/typescript/module/src/acmo/core/network/network-common.d.ts +13 -0
  253. package/lib/typescript/module/src/acmo/core/network/network-common.d.ts.map +1 -0
  254. package/lib/typescript/module/src/acmo/core/services/localization_service.d.ts +0 -1
  255. package/lib/typescript/module/src/acmo/core/services/localization_service.d.ts.map +1 -1
  256. package/lib/typescript/module/src/acmo/core/types/external_types.d.ts +5 -0
  257. package/lib/typescript/module/src/acmo/core/types/external_types.d.ts.map +1 -1
  258. package/lib/typescript/module/src/acmo/core/tyrads-sdk-core.d.ts +46 -0
  259. package/lib/typescript/module/src/acmo/core/tyrads-sdk-core.d.ts.map +1 -0
  260. package/lib/typescript/module/src/acmo/modules/inapp-notifications/components/gradient_card.d.ts +17 -0
  261. package/lib/typescript/module/src/acmo/modules/inapp-notifications/components/gradient_card.d.ts.map +1 -0
  262. package/lib/typescript/module/src/acmo/modules/inapp-notifications/components/modal-wrapper.d.ts +10 -0
  263. package/lib/typescript/module/src/acmo/modules/inapp-notifications/components/modal-wrapper.d.ts.map +1 -0
  264. package/lib/typescript/module/src/acmo/modules/inapp-notifications/controller.d.ts +22 -0
  265. package/lib/typescript/module/src/acmo/modules/inapp-notifications/controller.d.ts.map +1 -0
  266. package/lib/typescript/module/src/acmo/modules/inapp-notifications/currency-sales/currency-sales-notif.d.ts +6 -0
  267. package/lib/typescript/module/src/acmo/modules/inapp-notifications/currency-sales/currency-sales-notif.d.ts.map +1 -0
  268. package/lib/typescript/module/src/acmo/modules/inapp-notifications/inapp-notification-host.d.ts +7 -0
  269. package/lib/typescript/module/src/acmo/modules/inapp-notifications/inapp-notification-host.d.ts.map +1 -0
  270. package/lib/typescript/module/src/acmo/modules/inapp-notifications/inapp-notification-manager.d.ts +14 -0
  271. package/lib/typescript/module/src/acmo/modules/inapp-notifications/inapp-notification-manager.d.ts.map +1 -0
  272. package/lib/typescript/module/src/acmo/modules/inapp-notifications/limited-time-offer/components/limited-time-offer-card.d.ts +4 -0
  273. package/lib/typescript/module/src/acmo/modules/inapp-notifications/limited-time-offer/components/limited-time-offer-card.d.ts.map +1 -0
  274. package/lib/typescript/module/src/acmo/modules/inapp-notifications/limited-time-offer/limited-time-notif.d.ts +7 -0
  275. package/lib/typescript/module/src/acmo/modules/inapp-notifications/limited-time-offer/limited-time-notif.d.ts.map +1 -0
  276. package/lib/typescript/module/src/acmo/modules/inapp-notifications/repository.d.ts +8 -0
  277. package/lib/typescript/module/src/acmo/modules/inapp-notifications/repository.d.ts.map +1 -0
  278. package/lib/typescript/module/src/acmo/modules/inapp-notifications/tyrads-global-host.d.ts +6 -0
  279. package/lib/typescript/module/src/acmo/modules/inapp-notifications/tyrads-global-host.d.ts.map +1 -0
  280. package/lib/typescript/module/src/acmo/modules/localization/localization_context.d.ts.map +1 -1
  281. package/lib/typescript/module/src/acmo/modules/premium-widgets/components/active_offers_button.d.ts.map +1 -0
  282. package/lib/typescript/module/src/acmo/modules/premium-widgets/components/custom_card.d.ts.map +1 -0
  283. package/lib/typescript/{commonjs/src/acmo/modules/dashboard → module/src/acmo/modules/premium-widgets}/components/custom_scroller.d.ts +3 -0
  284. package/lib/typescript/module/src/acmo/modules/premium-widgets/components/custom_scroller.d.ts.map +1 -0
  285. package/lib/typescript/module/src/acmo/modules/premium-widgets/components/custom_shimmer.d.ts.map +1 -0
  286. package/lib/typescript/module/src/acmo/modules/premium-widgets/components/offer_card.d.ts.map +1 -0
  287. package/lib/typescript/module/src/acmo/modules/premium-widgets/components/offer_list_item.d.ts.map +1 -0
  288. package/lib/typescript/module/src/acmo/modules/premium-widgets/components/premium_empty_widget.d.ts.map +1 -0
  289. package/lib/typescript/module/src/acmo/modules/premium-widgets/components/premium_header.d.ts.map +1 -0
  290. package/lib/typescript/{commonjs/src/acmo/modules/dashboard → module/src/acmo/modules/premium-widgets}/components/premium_loading.d.ts +1 -1
  291. package/lib/typescript/module/src/acmo/modules/premium-widgets/components/premium_loading.d.ts.map +1 -0
  292. package/lib/typescript/module/src/acmo/modules/premium-widgets/controller.d.ts +14 -0
  293. package/lib/typescript/module/src/acmo/modules/premium-widgets/controller.d.ts.map +1 -0
  294. package/lib/typescript/module/src/acmo/modules/{dashboard/top_offers.d.ts → premium-widgets/premium_offers_widget.d.ts} +3 -3
  295. package/lib/typescript/module/src/acmo/modules/premium-widgets/premium_offers_widget.d.ts.map +1 -0
  296. package/lib/typescript/module/src/acmo/modules/premium-widgets/premium_offers_widget_wrapper.d.ts +9 -0
  297. package/lib/typescript/module/src/acmo/modules/premium-widgets/premium_offers_widget_wrapper.d.ts.map +1 -0
  298. package/lib/typescript/module/src/acmo/modules/premium-widgets/repository.d.ts +13 -0
  299. package/lib/typescript/module/src/acmo/modules/premium-widgets/repository.d.ts.map +1 -0
  300. package/lib/typescript/module/src/acmo/modules/push-notifications/apns-manager.d.ts +40 -0
  301. package/lib/typescript/module/src/acmo/modules/push-notifications/apns-manager.d.ts.map +1 -0
  302. package/lib/typescript/module/src/acmo/modules/push-notifications/fcm-manager.d.ts +32 -0
  303. package/lib/typescript/module/src/acmo/modules/push-notifications/fcm-manager.d.ts.map +1 -0
  304. package/lib/typescript/module/src/acmo_config.d.ts +1 -0
  305. package/lib/typescript/module/src/acmo_config.d.ts.map +1 -1
  306. package/lib/typescript/module/src/index.d.ts +5 -11
  307. package/lib/typescript/module/src/index.d.ts.map +1 -1
  308. package/package.json +5 -3
  309. package/readme.md +27 -14
  310. package/src/acmo/core/components/countdown-timer.tsx +52 -0
  311. package/src/acmo/core/components/snap-carousel.tsx +106 -0
  312. package/src/acmo/core/constants/api-endpoints.ts +12 -0
  313. package/src/acmo/core/helpers/colors.ts +16 -0
  314. package/src/acmo/core/helpers/logger.ts +11 -0
  315. package/src/acmo/core/helpers/patches.js +6 -0
  316. package/src/acmo/core/network/http-client.ts +89 -0
  317. package/src/acmo/core/network/network-common.ts +128 -0
  318. package/src/acmo/core/services/localization_service.ts +7 -14
  319. package/src/acmo/core/types/activated-campaings.d.ts +101 -0
  320. package/src/acmo/core/types/external_types.ts +7 -1
  321. package/src/acmo/core/types/types.d.ts +112 -76
  322. package/src/acmo/core/tyrads-sdk-core.tsx +258 -0
  323. package/src/acmo/modules/inapp-notifications/components/gradient_card.tsx +87 -0
  324. package/src/acmo/modules/inapp-notifications/components/modal-wrapper.tsx +59 -0
  325. package/src/acmo/modules/inapp-notifications/controller.ts +183 -0
  326. package/src/acmo/modules/inapp-notifications/currency-sales/currency-sales-notif.tsx +164 -0
  327. package/src/acmo/modules/inapp-notifications/inapp-notification-host.tsx +32 -0
  328. package/src/acmo/modules/inapp-notifications/inapp-notification-manager.ts +40 -0
  329. package/src/acmo/modules/inapp-notifications/limited-time-offer/components/limited-time-offer-card.tsx +188 -0
  330. package/src/acmo/modules/inapp-notifications/limited-time-offer/limited-time-notif.tsx +149 -0
  331. package/src/acmo/modules/inapp-notifications/repository.ts +49 -0
  332. package/src/acmo/modules/inapp-notifications/tyrads-global-host.tsx +25 -0
  333. package/src/acmo/modules/localization/localization_context.tsx +15 -2
  334. package/src/acmo/modules/{dashboard → premium-widgets}/components/custom_card.tsx +1 -2
  335. package/src/acmo/modules/{dashboard → premium-widgets}/components/custom_scroller.tsx +24 -10
  336. package/src/acmo/modules/{dashboard → premium-widgets}/components/offer_card.tsx +11 -11
  337. package/src/acmo/modules/{dashboard → premium-widgets}/components/offer_list_item.tsx +3 -3
  338. package/src/acmo/modules/{dashboard → premium-widgets}/components/premium_loading.tsx +1 -1
  339. package/src/acmo/modules/premium-widgets/controller.ts +39 -0
  340. package/src/acmo/modules/{dashboard/top_offers.tsx → premium-widgets/premium_offers_widget.tsx} +67 -45
  341. package/src/acmo/modules/premium-widgets/premium_offers_widget_wrapper.tsx +39 -0
  342. package/src/acmo/modules/premium-widgets/repository.ts +107 -0
  343. package/src/acmo/modules/push-notifications/apns-manager.ts +254 -0
  344. package/src/acmo/modules/push-notifications/fcm-manager.ts +162 -0
  345. package/src/acmo_config.ts +6 -5
  346. package/src/assets/images/alarm-clock.png +0 -0
  347. package/src/assets/images/circle-x.png +0 -0
  348. package/src/assets/images/coin.png +0 -0
  349. package/src/index.tsx +19 -127
  350. package/ios/Tyrads/user/AcmoUserUpdatePage.swift +0 -302
  351. package/ios/Tyrads/user/AcmoUsersUpdateController.swift +0 -26
  352. package/ios/Tyrads/user/Repository.swift +0 -89
  353. package/lib/commonjs/acmo/core/helpers/native_methods.js +0 -48
  354. package/lib/commonjs/acmo/core/helpers/native_methods.js.map +0 -1
  355. package/lib/commonjs/acmo/modules/dashboard/components/active_offers_button.js.map +0 -1
  356. package/lib/commonjs/acmo/modules/dashboard/components/custom_card.js.map +0 -1
  357. package/lib/commonjs/acmo/modules/dashboard/components/custom_scroller.js.map +0 -1
  358. package/lib/commonjs/acmo/modules/dashboard/components/custom_shimmer.js.map +0 -1
  359. package/lib/commonjs/acmo/modules/dashboard/components/offer_card.js.map +0 -1
  360. package/lib/commonjs/acmo/modules/dashboard/components/offer_list_item.js.map +0 -1
  361. package/lib/commonjs/acmo/modules/dashboard/components/premium_empty_widget.js.map +0 -1
  362. package/lib/commonjs/acmo/modules/dashboard/components/premium_header.js.map +0 -1
  363. package/lib/commonjs/acmo/modules/dashboard/components/premium_loading.js.map +0 -1
  364. package/lib/commonjs/acmo/modules/dashboard/repository.js +0 -147
  365. package/lib/commonjs/acmo/modules/dashboard/repository.js.map +0 -1
  366. package/lib/commonjs/acmo/modules/dashboard/top_offers.js.map +0 -1
  367. package/lib/module/acmo/core/helpers/native_methods.js +0 -44
  368. package/lib/module/acmo/core/helpers/native_methods.js.map +0 -1
  369. package/lib/module/acmo/modules/dashboard/components/active_offers_button.js.map +0 -1
  370. package/lib/module/acmo/modules/dashboard/components/custom_card.js.map +0 -1
  371. package/lib/module/acmo/modules/dashboard/components/custom_scroller.js.map +0 -1
  372. package/lib/module/acmo/modules/dashboard/components/custom_shimmer.js.map +0 -1
  373. package/lib/module/acmo/modules/dashboard/components/offer_card.js.map +0 -1
  374. package/lib/module/acmo/modules/dashboard/components/offer_list_item.js.map +0 -1
  375. package/lib/module/acmo/modules/dashboard/components/premium_empty_widget.js.map +0 -1
  376. package/lib/module/acmo/modules/dashboard/components/premium_header.js.map +0 -1
  377. package/lib/module/acmo/modules/dashboard/components/premium_loading.js.map +0 -1
  378. package/lib/module/acmo/modules/dashboard/repository.js +0 -140
  379. package/lib/module/acmo/modules/dashboard/repository.js.map +0 -1
  380. package/lib/module/acmo/modules/dashboard/top_offers.js.map +0 -1
  381. package/lib/typescript/commonjs/src/acmo/core/helpers/native_methods.d.ts +0 -10
  382. package/lib/typescript/commonjs/src/acmo/core/helpers/native_methods.d.ts.map +0 -1
  383. package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/active_offers_button.d.ts.map +0 -1
  384. package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/custom_card.d.ts.map +0 -1
  385. package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/custom_scroller.d.ts.map +0 -1
  386. package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/custom_shimmer.d.ts.map +0 -1
  387. package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/offer_card.d.ts.map +0 -1
  388. package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/offer_list_item.d.ts.map +0 -1
  389. package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/premium_empty_widget.d.ts.map +0 -1
  390. package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/premium_header.d.ts.map +0 -1
  391. package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/premium_loading.d.ts.map +0 -1
  392. package/lib/typescript/commonjs/src/acmo/modules/dashboard/repository.d.ts +0 -3
  393. package/lib/typescript/commonjs/src/acmo/modules/dashboard/repository.d.ts.map +0 -1
  394. package/lib/typescript/commonjs/src/acmo/modules/dashboard/top_offers.d.ts.map +0 -1
  395. package/lib/typescript/module/src/acmo/core/helpers/native_methods.d.ts +0 -10
  396. package/lib/typescript/module/src/acmo/core/helpers/native_methods.d.ts.map +0 -1
  397. package/lib/typescript/module/src/acmo/modules/dashboard/components/active_offers_button.d.ts.map +0 -1
  398. package/lib/typescript/module/src/acmo/modules/dashboard/components/custom_card.d.ts.map +0 -1
  399. package/lib/typescript/module/src/acmo/modules/dashboard/components/custom_scroller.d.ts.map +0 -1
  400. package/lib/typescript/module/src/acmo/modules/dashboard/components/custom_shimmer.d.ts.map +0 -1
  401. package/lib/typescript/module/src/acmo/modules/dashboard/components/offer_card.d.ts.map +0 -1
  402. package/lib/typescript/module/src/acmo/modules/dashboard/components/offer_list_item.d.ts.map +0 -1
  403. package/lib/typescript/module/src/acmo/modules/dashboard/components/premium_empty_widget.d.ts.map +0 -1
  404. package/lib/typescript/module/src/acmo/modules/dashboard/components/premium_header.d.ts.map +0 -1
  405. package/lib/typescript/module/src/acmo/modules/dashboard/components/premium_loading.d.ts.map +0 -1
  406. package/lib/typescript/module/src/acmo/modules/dashboard/repository.d.ts +0 -3
  407. package/lib/typescript/module/src/acmo/modules/dashboard/repository.d.ts.map +0 -1
  408. package/lib/typescript/module/src/acmo/modules/dashboard/top_offers.d.ts.map +0 -1
  409. package/src/acmo/core/helpers/native_methods.ts +0 -59
  410. package/src/acmo/modules/dashboard/repository.ts +0 -170
  411. /package/lib/commonjs/acmo/modules/{dashboard → premium-widgets}/components/active_offers_button.js +0 -0
  412. /package/lib/commonjs/acmo/modules/{dashboard → premium-widgets}/components/custom_shimmer.js +0 -0
  413. /package/lib/commonjs/acmo/modules/{dashboard → premium-widgets}/components/premium_empty_widget.js +0 -0
  414. /package/lib/commonjs/acmo/modules/{dashboard → premium-widgets}/components/premium_header.js +0 -0
  415. /package/lib/module/acmo/modules/{dashboard → premium-widgets}/components/active_offers_button.js +0 -0
  416. /package/lib/module/acmo/modules/{dashboard → premium-widgets}/components/custom_shimmer.js +0 -0
  417. /package/lib/module/acmo/modules/{dashboard → premium-widgets}/components/premium_empty_widget.js +0 -0
  418. /package/lib/module/acmo/modules/{dashboard → premium-widgets}/components/premium_header.js +0 -0
  419. /package/lib/typescript/commonjs/src/acmo/modules/{dashboard → premium-widgets}/components/active_offers_button.d.ts +0 -0
  420. /package/lib/typescript/commonjs/src/acmo/modules/{dashboard → premium-widgets}/components/custom_card.d.ts +0 -0
  421. /package/lib/typescript/commonjs/src/acmo/modules/{dashboard → premium-widgets}/components/custom_shimmer.d.ts +0 -0
  422. /package/lib/typescript/commonjs/src/acmo/modules/{dashboard → premium-widgets}/components/offer_card.d.ts +0 -0
  423. /package/lib/typescript/commonjs/src/acmo/modules/{dashboard → premium-widgets}/components/offer_list_item.d.ts +0 -0
  424. /package/lib/typescript/commonjs/src/acmo/modules/{dashboard → premium-widgets}/components/premium_empty_widget.d.ts +0 -0
  425. /package/lib/typescript/commonjs/src/acmo/modules/{dashboard → premium-widgets}/components/premium_header.d.ts +0 -0
  426. /package/lib/typescript/module/src/acmo/modules/{dashboard → premium-widgets}/components/active_offers_button.d.ts +0 -0
  427. /package/lib/typescript/module/src/acmo/modules/{dashboard → premium-widgets}/components/custom_card.d.ts +0 -0
  428. /package/lib/typescript/module/src/acmo/modules/{dashboard → premium-widgets}/components/custom_shimmer.d.ts +0 -0
  429. /package/lib/typescript/module/src/acmo/modules/{dashboard → premium-widgets}/components/offer_card.d.ts +0 -0
  430. /package/lib/typescript/module/src/acmo/modules/{dashboard → premium-widgets}/components/offer_list_item.d.ts +0 -0
  431. /package/lib/typescript/module/src/acmo/modules/{dashboard → premium-widgets}/components/premium_empty_widget.d.ts +0 -0
  432. /package/lib/typescript/module/src/acmo/modules/{dashboard → premium-widgets}/components/premium_header.d.ts +0 -0
  433. /package/src/acmo/modules/{dashboard → premium-widgets}/components/active_offers_button.tsx +0 -0
  434. /package/src/acmo/modules/{dashboard → premium-widgets}/components/custom_shimmer.tsx +0 -0
  435. /package/src/acmo/modules/{dashboard → premium-widgets}/components/premium_empty_widget.tsx +0 -0
  436. /package/src/acmo/modules/{dashboard → premium-widgets}/components/premium_header.tsx +0 -0
@@ -0,0 +1,143 @@
1
+ "use strict";
2
+
3
+ import { Platform } from 'react-native';
4
+ import TyradsSdkCoreMethods from "../../core/tyrads-sdk-core.js";
5
+ class FcmManager {
6
+ pushEventSubscriptions = [];
7
+ initialized = false;
8
+ isLoggedIn = false;
9
+ pendingEvent = null;
10
+ constructor() {}
11
+ static getInstance() {
12
+ if (!FcmManager.instance) {
13
+ FcmManager.instance = new FcmManager();
14
+ }
15
+ return FcmManager.instance;
16
+ }
17
+ setLoggedIn(status) {
18
+ this.isLoggedIn = status;
19
+ if (this.isLoggedIn && this.pendingEvent) {
20
+ const {
21
+ identifier,
22
+ userInfo
23
+ } = this.pendingEvent;
24
+ this.pendingEvent = null;
25
+ this._onNotificationClicked(identifier, userInfo);
26
+ }
27
+ }
28
+ async init() {
29
+ if (Platform.OS !== 'android') {
30
+ console.log('FCM is only available on Android');
31
+ return;
32
+ }
33
+ if (this.initialized) {
34
+ return;
35
+ }
36
+ try {
37
+ this._setupPushEventListeners();
38
+ this.initialized = true;
39
+ } catch (error) {
40
+ console.error('Failed to initialize FCM manager:', error);
41
+ }
42
+ }
43
+ _setupPushEventListeners() {
44
+ const subscription = TyradsSdkCoreMethods.addPushNotificationListener(event => {
45
+ console.log('Push event:', event);
46
+ const eventParsed = typeof event === 'string' ? JSON.parse(event) : event;
47
+ this._handlePushEvent(eventParsed);
48
+ });
49
+ this.pushEventSubscriptions.push(subscription);
50
+ }
51
+ _handlePushEvent(event) {
52
+ switch (event.type) {
53
+ case 'received':
54
+ this._onNotificationReceived(event.data);
55
+ break;
56
+ case 'clicked':
57
+ this._onNotificationClicked(event.id, event.data);
58
+ break;
59
+ case 'dismissed':
60
+ this._onNotificationDismissed(event.id);
61
+ break;
62
+ }
63
+ }
64
+ _onNotificationReceived(userInfo) {
65
+ console.log('Notification received:', userInfo);
66
+ this.emit('notificationReceived', userInfo);
67
+ }
68
+ async _onNotificationClicked(identifier, userInfo) {
69
+ console.log('Notification clicked:', identifier, userInfo);
70
+ const deepLink = userInfo['deepLink'];
71
+ if (!this.isLoggedIn && deepLink) {
72
+ this.pendingEvent = {
73
+ identifier,
74
+ userInfo
75
+ };
76
+ this.emit('notificationClicked', {
77
+ identifier,
78
+ userInfo
79
+ });
80
+ return;
81
+ }
82
+ this.emit('notificationClicked', {
83
+ identifier,
84
+ userInfo
85
+ });
86
+ if (deepLink != null && deepLink != '') {
87
+ setTimeout(() => {
88
+ TyradsSdkCoreMethods.showOffers({
89
+ route: deepLink,
90
+ launchMode: 2
91
+ }).catch(err => {
92
+ console.error('Failed to show offers from notification click:', err);
93
+ });
94
+ }, 500);
95
+ }
96
+ }
97
+ _onNotificationDismissed(identifier) {
98
+ console.log('Notification dismissed:', identifier);
99
+ this.emit('notificationDismissed', identifier);
100
+ }
101
+ listeners = new Map();
102
+ on(event, callback) {
103
+ if (!this.listeners.has(event)) {
104
+ this.listeners.set(event, []);
105
+ }
106
+ this.listeners.get(event).push(callback);
107
+ }
108
+ off(event, callback) {
109
+ const callbacks = this.listeners.get(event);
110
+ if (callbacks) {
111
+ const index = callbacks.indexOf(callback);
112
+ if (index > -1) {
113
+ callbacks.splice(index, 1);
114
+ }
115
+ }
116
+ }
117
+ emit(event, data) {
118
+ const callbacks = this.listeners.get(event);
119
+ if (callbacks) {
120
+ callbacks.forEach(callback => {
121
+ try {
122
+ callback(data);
123
+ } catch (error) {
124
+ console.error(`Error in ${event} listener:`, error);
125
+ }
126
+ });
127
+ }
128
+ }
129
+ addPushEventHandler(callback) {
130
+ return TyradsSdkCoreMethods.addPushNotificationListener(callback);
131
+ }
132
+ dispose() {
133
+ this.pushEventSubscriptions.forEach(subscription => {
134
+ subscription.remove();
135
+ });
136
+ this.pushEventSubscriptions = [];
137
+ this.listeners.clear();
138
+ this.initialized = false;
139
+ }
140
+ }
141
+ export default FcmManager.getInstance();
142
+ export { FcmManager };
143
+ //# sourceMappingURL=fcm-manager.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["Platform","TyradsSdkCoreMethods","FcmManager","pushEventSubscriptions","initialized","isLoggedIn","pendingEvent","constructor","getInstance","instance","setLoggedIn","status","identifier","userInfo","_onNotificationClicked","init","OS","console","log","_setupPushEventListeners","error","subscription","addPushNotificationListener","event","eventParsed","JSON","parse","_handlePushEvent","push","type","_onNotificationReceived","data","id","_onNotificationDismissed","emit","deepLink","setTimeout","showOffers","route","launchMode","catch","err","listeners","Map","on","callback","has","set","get","off","callbacks","index","indexOf","splice","forEach","addPushEventHandler","dispose","remove","clear"],"sourceRoot":"../../../../../src","sources":["acmo/modules/push-notifications/fcm-manager.ts"],"mappings":";;AAAA,SAASA,QAAQ,QAAQ,cAAc;AACvC,OAAOC,oBAAoB,MAAM,+BAA4B;AAU7D,MAAMC,UAAU,CAAC;EAEPC,sBAAsB,GAAU,EAAE;EAElCC,WAAW,GAAG,KAAK;EACnBC,UAAU,GAAG,KAAK;EAClBC,YAAY,GAAiD,IAAI;EAEjEC,WAAWA,CAAA,EAAG,CAAE;EAExB,OAAOC,WAAWA,CAAA,EAAe;IAC/B,IAAI,CAACN,UAAU,CAACO,QAAQ,EAAE;MACxBP,UAAU,CAACO,QAAQ,GAAG,IAAIP,UAAU,CAAC,CAAC;IACxC;IACA,OAAOA,UAAU,CAACO,QAAQ;EAC5B;EAEAC,WAAWA,CAACC,MAAe,EAAQ;IACjC,IAAI,CAACN,UAAU,GAAGM,MAAM;IACxB,IAAI,IAAI,CAACN,UAAU,IAAI,IAAI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CAACmD,OAAO,CAACjC,YAAY,IAAI;MAClDA,YAAY,CAACoC,MAAM,CAAC,CAAC;IACvB,CAAC,CAAC;IACF,IAAI,CAACtD,sBAAsB,GAAG,EAAE;IAChC,IAAI,CAACuC,SAAS,CAACgB,KAAK,CAAC,CAAC;IACtB,IAAI,CAACtD,WAAW,GAAG,KAAK;EAC1B;AACF;AAEA,eAAeF,UAAU,CAACM,WAAW,CAAC,CAAC;AAEvC,SAASN,UAAU","ignoreList":[]}
@@ -1,11 +1,12 @@
1
1
  "use strict";
2
2
 
3
3
  export class AcmoConfig {
4
- static API_VERSION = "3.0";
5
- static MAJOR_VERSION = "3";
6
- static MINOR_VERSION = "3";
7
- static PATCH_VERSION = "2";
8
- static BUILD_VERSION = "2";
4
+ static API_VERSION = "4.0";
5
+ static BASE_URL = `https://api.tyrads.com/v${this.API_VERSION}/`;
6
+ static MAJOR_VERSION = "4";
7
+ static MINOR_VERSION = "0";
8
+ static PATCH_VERSION = "0";
9
+ static BUILD_VERSION = "1";
9
10
  static SDK_PLATFORM = "React Native";
10
11
  static SDK_VERSION = `${this.MAJOR_VERSION}.${this.MINOR_VERSION}.${this.PATCH_VERSION}-${this.BUILD_VERSION}`;
11
12
  }
@@ -1 +1 @@
1
- {"version":3,"names":["AcmoConfig","API_VERSION","MAJOR_VERSION","MINOR_VERSION","PATCH_VERSION","BUILD_VERSION","SDK_PLATFORM","SDK_VERSION"],"sourceRoot":"../../src","sources":["acmo_config.ts"],"mappings":";;AAAA,OAAO,MAAMA,UAAU,CAAC;EACtB,OAAcC,WAAW,GAAG,KAAK;EACjC,OAAcC,aAAa,GAAG,GAAG;EACjC,OAAcC,aAAa,GAAG,GAAG;EACjC,OAAcC,aAAa,GAAG,GAAG;EACjC,OAAcC,aAAa,GAAG,GAAG;EACjC,OAAcC,YAAY,GAAG,cAAc;EAC3C,OAAcC,WAAW,GAAG,GAAG,IAAI,CAACL,aAAa,IAAI,IAAI,CAACC,aAAa,IAAI,IAAI,CAACC,aAAa,IAAI,IAAI,CAACC,aAAa,EAAE;AACvH","ignoreList":[]}
1
+ {"version":3,"names":["AcmoConfig","API_VERSION","BASE_URL","MAJOR_VERSION","MINOR_VERSION","PATCH_VERSION","BUILD_VERSION","SDK_PLATFORM","SDK_VERSION"],"sourceRoot":"../../src","sources":["acmo_config.ts"],"mappings":";;AAAA,OAAO,MAAMA,UAAU,CAAC;EACtB,OAAcC,WAAW,GAAG,KAAK;EACjC,OAAcC,QAAQ,GAAG,2BAA2B,IAAI,CAACD,WAAW,GAAG;EACvE,OAAcE,aAAa,GAAG,GAAG;EACjC,OAAcC,aAAa,GAAG,GAAG;EACjC,OAAcC,aAAa,GAAG,GAAG;EACjC,OAAcC,aAAa,GAAG,GAAG;EACjC,OAAcC,YAAY,GAAG,cAAc;EAC3C,OAAcC,WAAW,GAAG,GAAG,IAAI,CAACL,aAAa,IAAI,IAAI,CAACC,aAAa,IAAI,IAAI,CAACC,aAAa,IAAI,IAAI,CAACC,aAAa,EAAE;AACvH","ignoreList":[]}
@@ -1,124 +1,34 @@
1
1
  "use strict";
2
2
 
3
- import { NativeEventEmitter, NativeModules, Platform, View } from 'react-native';
4
- import TopOffers, { PremiumWidgetStyles } from "./acmo/modules/dashboard/top_offers.js";
5
- import { saveData } from "./acmo/core/storage/storage.js";
6
- import Localization from "./acmo/core/services/localization_service.js";
7
- import { changeProviderLanguage, LocalizationProvider, updateProviderLanguage } from "./acmo/modules/localization/localization_context.js";
8
- import PremiumWidgetsLoading from "./acmo/modules/dashboard/components/premium_loading.js";
9
- import TyradsNativeMethods from "./acmo/core/helpers/native_methods.js";
3
+ import { AppRegistry } from 'react-native';
4
+ import TyradsSdkCore from "./acmo/core/tyrads-sdk-core.js";
5
+ import TyradsGlobalHost from "./acmo/modules/inapp-notifications/tyrads-global-host.js";
10
6
  import { jsx as _jsx } from "react/jsx-runtime";
11
- // const TyradsSdkComposeView = requireNativeComponent('TyradsSdkComposeView');
12
-
13
- const LINKING_ERROR = `The package 'tyrads-sdk' doesn't seem to be linked. Make sure: \n\n` + Platform.select({
14
- ios: "- You have run 'pod install'\n",
15
- default: ''
16
- }) + '- You rebuilt the app after installing the package\n' + '- You are not using Expo Go\n';
17
- const TyradsSdk = NativeModules.TyradsSdk ? NativeModules.TyradsSdk : new Proxy({}, {
18
- get() {
19
- throw new Error(LINKING_ERROR);
20
- }
21
- });
22
- const tyradsEmitter = new NativeEventEmitter(TyradsSdk);
23
- let languageChangedSubscription = null;
7
+ AppRegistry.setWrapperComponentProvider(() => props => /*#__PURE__*/_jsx(TyradsGlobalHost, {
8
+ ...props
9
+ }));
10
+ export { PremiumWidgetStyles } from "./acmo/modules/premium-widgets/premium_offers_widget.js";
11
+ export { PremiumOffersWidget, PremiumOffersWidgetLoading } from "./acmo/modules/premium-widgets/premium_offers_widget_wrapper.js";
24
12
  const Tyrads = {
25
- init: async (apiKey, apiSecret, encKey, engagementId, mediaSourceInfo, userInfo) => {
26
- TyradsNativeMethods.setSDKVersion();
27
- if (mediaSourceInfo) {
28
- TyradsNativeMethods.setMediaSourceInfo(mediaSourceInfo);
29
- }
30
- if (userInfo) {
31
- TyradsNativeMethods.setUserInfo(userInfo);
32
- }
33
- const data = await TyradsSdk.init(apiKey, apiSecret, encKey, engagementId);
34
- await saveData("credentials", {
35
- 'X-API-Key': apiKey,
36
- 'X-API-Secret': apiSecret
37
- });
38
- let languageCode = "en";
39
- try {
40
- const parsed = typeof data === "string" ? JSON.parse(data) : data;
41
- if (parsed?.languageCode) {
42
- languageCode = parsed.languageCode;
43
- }
44
- } catch {}
45
- TyradsSdk.startObserving();
46
- languageChangedSubscription?.remove();
47
- languageChangedSubscription = tyradsEmitter.addListener('LanguageChanged', async lang => {
48
- console.log('LanguageChanged event from Android SDK:', lang);
49
- await changeProviderLanguage(lang);
50
- });
51
- await saveData("language", languageCode);
52
- await Localization.getInstance().init(languageCode);
53
- await updateProviderLanguage(languageCode);
54
- return data;
13
+ init: async (apiKey, apiSecret, encKey, engagementId, placementId, mediaSourceInfo, userInfo, config) => {
14
+ return await TyradsSdkCore.init(apiKey, apiSecret, encKey, engagementId, placementId, mediaSourceInfo, userInfo, config);
55
15
  },
56
16
  loginUser: async userId => {
57
- try {
58
- const data = await TyradsSdk.loginUser(userId);
59
- if (typeof data === "object") {
60
- await saveData('apiHeaders', JSON.stringify(data));
61
- await saveData('language', data.languageCode);
62
- } else if (typeof data === "string") {
63
- await saveData('apiHeaders', data);
64
- await saveData('language', JSON.parse(data).languageCode);
65
- }
66
- return data;
67
- } catch (err) {
68
- return null;
69
- }
17
+ return await TyradsSdkCore.loginUser(userId);
70
18
  },
71
19
  showOffers: async ({
72
20
  launchMode = 3,
73
21
  route,
74
22
  campaignID
75
23
  } = {}) => {
76
- if (Platform.OS === 'ios') {
77
- if (campaignID == null) {
78
- return await TyradsSdk.showOffers(launchMode, route);
79
- }
80
- return await TyradsSdk.showOfferDetails(launchMode, route, campaignID);
81
- } else {
82
- if (campaignID == null) {
83
- return await TyradsSdk.showOffers(route);
84
- }
85
- return await TyradsSdk.showOfferDetails(route, campaignID);
86
- }
87
- },
88
- topPremiumOffers: ({
89
- widgetStyle,
90
- launchMode = 2
91
- } = {}) => {
92
- const handleNavigation = (route, campaignID) => {
93
- Tyrads.showOffers({
94
- route: route,
95
- campaignID: campaignID,
96
- launchMode: launchMode
97
- });
98
- };
99
- return /*#__PURE__*/_jsx(LocalizationProvider, {
100
- children: /*#__PURE__*/_jsx(View, {
101
- style: {
102
- flex: 1,
103
- justifyContent: 'center',
104
- alignItems: 'center'
105
- },
106
- children: /*#__PURE__*/_jsx(TopOffers, {
107
- widgetStyle: widgetStyle,
108
- onNavigate: handleNavigation
109
- })
110
- })
111
- });
112
- },
113
- topPremiumOffersLoading: ({
114
- widgetStyle = PremiumWidgetStyles.list
115
- }) => {
116
- return /*#__PURE__*/_jsx(PremiumWidgetsLoading, {
117
- widgetStyle: widgetStyle
24
+ return await TyradsSdkCore.showOffers({
25
+ launchMode,
26
+ route,
27
+ campaignID
118
28
  });
119
29
  },
120
30
  changeLanguage: async lang => {
121
- return await TyradsSdk.changeLanguage(lang);
31
+ return await TyradsSdkCore.changeLanguage(lang);
122
32
  }
123
33
  };
124
34
  export default Tyrads;
@@ -1 +1 @@
1
- {"version":3,"names":["NativeEventEmitter","NativeModules","Platform","View","TopOffers","PremiumWidgetStyles","saveData","Localization","changeProviderLanguage","LocalizationProvider","updateProviderLanguage","PremiumWidgetsLoading","TyradsNativeMethods","jsx","_jsx","LINKING_ERROR","select","ios","default","TyradsSdk","Proxy","get","Error","tyradsEmitter","languageChangedSubscription","Tyrads","init","apiKey","apiSecret","encKey","engagementId","mediaSourceInfo","userInfo","setSDKVersion","setMediaSourceInfo","setUserInfo","data","languageCode","parsed","JSON","parse","startObserving","remove","addListener","lang","console","log","getInstance","loginUser","userId","stringify","err","showOffers","launchMode","route","campaignID","OS","showOfferDetails","topPremiumOffers","widgetStyle","handleNavigation","children","style","flex","justifyContent","alignItems","onNavigate","topPremiumOffersLoading","list","changeLanguage"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;AAAA,SAASA,kBAAkB,EAAEC,aAAa,EAAEC,QAAQ,EAAEC,IAAI,QAAS,cAAc;AAEjF,OAAOC,SAAS,IAAIC,mBAAmB,QAAQ,wCAAqC;AACpF,SAASC,QAAQ,QAAQ,gCAA6B;AACtD,OAAOC,YAAY,MAAM,8CAA2C;AACpE,SAASC,sBAAsB,EAAEC,oBAAoB,EAAEC,sBAAsB,QAAQ,qDAAkD;AACvI,OAAOC,qBAAqB,MAAM,wDAAqD;AACvF,OAAOC,mBAAmB,MAAM,uCAAoC;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAIrE;;AAGA,MAAMC,aAAa,GACjB,qEAAqE,GACrEb,QAAQ,CAACc,MAAM,CAAC;EAAEC,GAAG,EAAE,gCAAgC;EAAEC,OAAO,EAAE;AAAG,CAAC,CAAC,GACvE,sDAAsD,GACtD,+BAA+B;AAEjC,MAAMC,SAAS,GAAGlB,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,MAAM","ignoreList":[]}
1
+ {"version":3,"names":["AppRegistry","TyradsSdkCore","TyradsGlobalHost","jsx","_jsx","setWrapperComponentProvider","props","PremiumWidgetStyles","PremiumOffersWidget","PremiumOffersWidgetLoading","Tyrads","init","apiKey","apiSecret","encKey","engagementId","placementId","mediaSourceInfo","userInfo","config","loginUser","userId","showOffers","launchMode","route","campaignID","changeLanguage","lang"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;AAAA,SAASA,WAAW,QAAQ,cAAc;AAC1C,OAAOC,aAAa,MAAM,gCAA6B;AACvD,OAAOC,gBAAgB,MAAM,0DAAuD;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAGrFJ,WAAW,CAACK,2BAA2B,CAAC,MAAOC,KAAK,iBAClDF,IAAA,CAACF,gBAAgB;EAAA,GAAKI;AAAK,CAAG,CAC/B,CAAC;AAGF,SAASC,mBAAmB,QAAQ,yDAAsD;AAC1F,SAASC,mBAAmB,EAAEC,0BAA0B,QAAQ,iEAA8D;AAE9H,MAAMC,MAAM,GAAG;EACbC,IAAI,EAAE,MAAAA,CAAOC,MAAc,EAAEC,SAAiB,EAAEC,MAAe,EAAEC,YAAqB,EAAEC,WAAoB,EAAEC,eAAuC,EAAEC,QAAyB,EAAEC,MAAqB,KAAK;IAC1M,OAAO,MAAMlB,aAAa,CAACU,IAAI,CAACC,MAAM,EAAEC,SAAS,EAAEC,MAAM,EAAEC,YAAY,EAAEC,WAAW,EAAEC,eAAe,EAAEC,QAAQ,EAAEC,MAAM,CAAC;EAC1H,CAAC;EAEDC,SAAS,EAAE,MAAOC,MAAc,IAAK;IACnC,OAAO,MAAMpB,aAAa,CAACmB,SAAS,CAACC,MAAM,CAAC;EAC9C,CAAC;EAEDC,UAAU,EAAE,MAAAA,CAAO;IACjBC,UAAU,GAAG,CAAC;IACdC,KAAK;IACLC;EACmE,CAAC,GAAG,CAAC,CAAC,KAAK;IAC9E,OAAO,MAAMxB,aAAa,CAACqB,UAAU,CAAC;MAAEC,UAAU;MAAEC,KAAK;MAAEC;IAAW,CAAC,CAAC;EAC1E,CAAC;EAGDC,cAAc,EAAE,MAAOC,IAAY,IAAK;IACtC,OAAO,MAAM1B,aAAa,CAACyB,cAAc,CAACC,IAAI,CAAC;EACjD;AACF,CAAC;AAGD,eAAejB,MAAM","ignoreList":[]}
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ interface CountdownTimerProps {
3
+ duration: number;
4
+ style?: any;
5
+ }
6
+ export declare const CountdownTimer: React.FC<CountdownTimerProps>;
7
+ export {};
8
+ //# sourceMappingURL=countdown-timer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"countdown-timer.d.ts","sourceRoot":"","sources":["../../../../../../../src/acmo/core/components/countdown-timer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAG3D,UAAU,mBAAmB;IAC3B,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,GAAG,CAAC;CACb;AAED,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CA2CxD,CAAC"}
@@ -0,0 +1,26 @@
1
+ import '../helpers/patches';
2
+ import React from "react";
3
+ import { type ViewStyle } from "react-native";
4
+ interface SnapCarouselProps {
5
+ data: any[];
6
+ renderItem: ({ item, index }: any) => JSX.Element;
7
+ sliderWidth?: number;
8
+ itemWidth?: number;
9
+ showPagination?: boolean;
10
+ onSnapToItem?: (index: number) => void;
11
+ inactiveSlideScale?: number;
12
+ inactiveSlideOpacity?: number;
13
+ activeSlideAlignment?: "start" | "center" | "end";
14
+ containerStyle?: ViewStyle;
15
+ paginationContainerStyle?: ViewStyle;
16
+ dotStyle?: ViewStyle;
17
+ inActiveDotStyle?: ViewStyle;
18
+ inActiveDotScale?: number;
19
+ loop?: boolean;
20
+ autoplay?: boolean;
21
+ autoPlayDelay?: number;
22
+ [key: string]: any;
23
+ }
24
+ declare const SnapCarousel: React.FC<SnapCarouselProps>;
25
+ export default SnapCarousel;
26
+ //# sourceMappingURL=snap-carousel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"snap-carousel.d.ts","sourceRoot":"","sources":["../../../../../../../src/acmo/core/components/snap-carousel.tsx"],"names":[],"mappings":"AAAA,OAAO,oBAAoB,CAAA;AAE3B,OAAO,KAA2B,MAAM,OAAO,CAAC;AAChD,OAAO,EAAgC,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAG5E,UAAU,iBAAiB;IACzB,IAAI,EAAE,GAAG,EAAE,CAAC;IACZ,UAAU,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,GAAG,KAAK,GAAG,CAAC,OAAO,CAAC;IAClD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,oBAAoB,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAC;IAClD,cAAc,CAAC,EAAE,SAAS,CAAC;IAC3B,wBAAwB,CAAC,EAAE,SAAS,CAAC;IACrC,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,gBAAgB,CAAC,EAAE,SAAS,CAAC;IAC7B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;AAID,QAAA,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAiE7C,CAAC;AAWF,eAAe,YAAY,CAAC"}
@@ -0,0 +1,12 @@
1
+ declare class AcmoAPIEndpoints {
2
+ static readonly TARGETED_CAMPAIGNS = "campaigns";
3
+ static readonly ACTIVE_CAMPAIGNS = "campaigns/activated";
4
+ static readonly SUMMARY = "campaigns/activated/summary";
5
+ static readonly ENGAGEMENT = "account/engagement";
6
+ static readonly USER_ACTIVITIES = "account/activity";
7
+ static readonly ACTIVATE_CAMPAIGN: (id: number) => string;
8
+ static readonly TRANSLATIONS: (locale: string) => string;
9
+ static readonly TRANSLATIONS_VERSION = "translations/version";
10
+ }
11
+ export default AcmoAPIEndpoints;
12
+ //# sourceMappingURL=api-endpoints.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api-endpoints.d.ts","sourceRoot":"","sources":["../../../../../../../src/acmo/core/constants/api-endpoints.ts"],"names":[],"mappings":"AAAA,cAAM,gBAAgB;IACpB,gBAAuB,kBAAkB,eAAe;IACxD,gBAAuB,gBAAgB,yBAAyB;IAChE,gBAAuB,OAAO,iCAAiC;IAC/D,gBAAuB,UAAU,wBAAwB;IACzD,gBAAuB,eAAe,sBAAsB;IAC5D,gBAAuB,iBAAiB,GAAI,IAAI,MAAM,YAAgC;IACtF,gBAAuB,YAAY,GAAI,QAAQ,MAAM,YAA8B;IACnF,gBAAuB,oBAAoB,0BAA0B;CACtE;AAED,eAAe,gBAAgB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const getContrastColor: (hexColor: string | null | undefined) => string;
2
+ //# sourceMappingURL=colors.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"colors.d.ts","sourceRoot":"","sources":["../../../../../../../src/acmo/core/helpers/colors.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,GAAI,UAAU,MAAM,GAAG,IAAI,GAAG,SAAS,KAAG,MAetE,CAAC"}
@@ -0,0 +1,6 @@
1
+ export declare const Logger: {
2
+ log: (...args: any[]) => void;
3
+ warn: (...args: any[]) => void;
4
+ error: (...args: any[]) => void;
5
+ };
6
+ //# sourceMappingURL=logger.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../../../../../../src/acmo/core/helpers/logger.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;mBACF,GAAG,EAAE;oBAGJ,GAAG,EAAE;qBAGJ,GAAG,EAAE;CAGvB,CAAC"}
@@ -0,0 +1,28 @@
1
+ export type HttpError = {
2
+ type: "network" | "server" | "timeout" | "unknown";
3
+ status?: number;
4
+ data?: any;
5
+ message: string;
6
+ };
7
+ declare class HttpClient {
8
+ private handleError;
9
+ get(url: string, params?: any): Promise<{
10
+ status: number;
11
+ data: any;
12
+ }>;
13
+ post(url: string, data?: any, config?: any): Promise<{
14
+ status: number;
15
+ data: any;
16
+ }>;
17
+ put(url: string, data?: any, config?: any): Promise<{
18
+ status: number;
19
+ data: any;
20
+ }>;
21
+ delete(url: string, config?: any): Promise<{
22
+ status: number;
23
+ data: any;
24
+ }>;
25
+ }
26
+ export declare const http: HttpClient;
27
+ export {};
28
+ //# sourceMappingURL=http-client.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"http-client.d.ts","sourceRoot":"","sources":["../../../../../../../src/acmo/core/network/http-client.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,SAAS,GAAG;IACtB,IAAI,EAAE,SAAS,GAAG,QAAQ,GAAG,SAAS,GAAG,SAAS,CAAC;IACnD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,GAAG,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,cAAM,UAAU;IACd,OAAO,CAAC,WAAW;IAiCb,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,GAAG;;;;IAY7B,IAAI,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,GAAG,EAAE,MAAM,CAAC,EAAE,GAAG;;;;IAU1C,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,GAAG,EAAE,MAAM,CAAC,EAAE,GAAG;;;;IAUzC,MAAM,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,GAAG;;;;CASvC;AAED,eAAO,MAAM,IAAI,YAAmB,CAAC"}
@@ -0,0 +1,13 @@
1
+ import { type AxiosInstance } from 'axios';
2
+ declare class NetworkCommon {
3
+ private static instance;
4
+ private axiosInstance;
5
+ private constructor();
6
+ static getInstance(): NetworkCommon;
7
+ init(): Promise<void>;
8
+ private logSafe;
9
+ private addInterceptors;
10
+ getAxios(): AxiosInstance;
11
+ }
12
+ export default NetworkCommon;
13
+ //# sourceMappingURL=network-common.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"network-common.d.ts","sourceRoot":"","sources":["../../../../../../../src/acmo/core/network/network-common.ts"],"names":[],"mappings":"AAAA,OAAc,EAAE,KAAK,aAAa,EAAc,MAAM,OAAO,CAAC;AAQ9D,cAAM,aAAa;IACjB,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAgB;IACvC,OAAO,CAAC,aAAa,CAA8B;IAEnD,OAAO;WAGO,WAAW,IAAI,aAAa;IAO7B,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAelC,OAAO,CAAC,OAAO;IAYf,OAAO,CAAC,eAAe;IAsEhB,QAAQ,IAAI,aAAa;CAMjC;AAED,eAAe,aAAa,CAAC"}
@@ -6,7 +6,6 @@ declare class LocalizationService {
6
6
  private readonly fallbackLocale;
7
7
  private constructor();
8
8
  static getInstance(): LocalizationService;
9
- private static getHeadersFromStorage;
10
9
  init(locale: string): Promise<void>;
11
10
  private loadTranslations;
12
11
  private fetchTranslations;
@@ -1 +1 @@
1
- {"version":3,"file":"localization_service.d.ts","sourceRoot":"","sources":["../../../../../../../src/acmo/core/services/localization_service.ts"],"names":[],"mappings":"AAgBA,cAAM,mBAAmB;IACvB,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAsB;IAC7C,OAAO,CAAC,KAAK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 +18,10 @@ export interface TyradsUserInfo {
18
18
  email?: string;
19
19
  phoneNumber?: string;
20
20
  userGroup?: string;
21
+ age?: number;
22
+ gender?: number;
23
+ }
24
+ export interface TyradsConfig {
25
+ skipInitialPages: boolean | false;
21
26
  }
22
27
  //# sourceMappingURL=external_types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"external_types.d.ts","sourceRoot":"","sources":["../../../../../../../src/acmo/core/types/external_types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,qBAAqB;IACpC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,cAAc;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB"}
1
+ {"version":3,"file":"external_types.d.ts","sourceRoot":"","sources":["../../../../../../../src/acmo/core/types/external_types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,qBAAqB;IACpC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,cAAc;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,YAAY;IAC3B,gBAAgB,EAAE,OAAO,GAAG,KAAK,CAAC;CACnC"}
@@ -0,0 +1,46 @@
1
+ import type { TyradsConfig, TyradsMediaSourceInfo, TyradsUserInfo } from "./types/external_types";
2
+ export interface PushNotificationEvent {
3
+ type: 'received' | 'clicked' | 'dismissed';
4
+ id?: string;
5
+ data?: any;
6
+ }
7
+ export type PushNotificationCallback = (event: PushNotificationEvent) => void;
8
+ export declare class TyradsSdkCore {
9
+ private static instance;
10
+ private tyradsEmitter;
11
+ private languageChangedSubscription;
12
+ private constructor();
13
+ static getInstance(): TyradsSdkCore;
14
+ userId: string;
15
+ apiKey: string;
16
+ apiSecret: string;
17
+ encKey?: string;
18
+ engagementId?: string;
19
+ placementId?: string;
20
+ premiumColor?: string;
21
+ mainColor?: string;
22
+ currentLanguage: string;
23
+ init(apiKey: string, apiSecret: string, encKey?: string, engagementId?: string, placementId?: string, mediaSourceInfo?: TyradsMediaSourceInfo, userInfo?: TyradsUserInfo, config?: TyradsConfig): Promise<any>;
24
+ loginUser(userId: string): Promise<any>;
25
+ showOffers({ launchMode, route, campaignID, }?: {
26
+ launchMode?: number;
27
+ route?: string;
28
+ campaignID?: number | null;
29
+ }): Promise<any>;
30
+ changeLanguage(lang: string): Promise<any>;
31
+ preloadOffers(route?: string): Promise<void>;
32
+ setSDKVersion(): void;
33
+ setMediaSourceInfo(mediaSourceInfo: TyradsMediaSourceInfo): void;
34
+ setUserInfo(userInfo: TyradsUserInfo): void;
35
+ isPrivacyAccepted(): Promise<any>;
36
+ checkOnboardingProcess(): Promise<boolean>;
37
+ requestPushPermission(): Promise<boolean>;
38
+ getApnsToken(): Promise<string | null>;
39
+ addPushNotificationListener(callback: PushNotificationCallback): import("react-native").EmitterSubscription;
40
+ startObserving(): void;
41
+ stopObserving(): void;
42
+ dismissInAppNotification(): void;
43
+ }
44
+ declare const _default: TyradsSdkCore;
45
+ export default _default;
46
+ //# sourceMappingURL=tyrads-sdk-core.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tyrads-sdk-core.d.ts","sourceRoot":"","sources":["../../../../../../src/acmo/core/tyrads-sdk-core.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,qBAAqB,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AA0BlG,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE,UAAU,GAAG,SAAS,GAAG,WAAW,CAAC;IAC3C,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,GAAG,CAAC;CACZ;AAED,MAAM,MAAM,wBAAwB,GAAG,CAAC,KAAK,EAAE,qBAAqB,KAAK,IAAI,CAAC;AAE9E,qBAAa,aAAa;IACxB,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAgB;IACvC,OAAO,CAAC,aAAa,CAAqB;IAC1C,OAAO,CAAC,2BAA2B,CAAa;IAEhD,OAAO;WAIO,WAAW,IAAI,aAAa;IAMnC,MAAM,EAAE,MAAM,CAAM;IACpB,MA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5
+ gradientColors?: (string | number)[];
6
+ gradientStart?: {
7
+ x: number;
8
+ y: number;
9
+ };
10
+ gradientEnd?: {
11
+ x: number;
12
+ y: number;
13
+ };
14
+ }
15
+ export declare const CardGradient: React.FC<CardGradientProps>;
16
+ export {};
17
+ //# sourceMappingURL=gradient_card.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gradient_card.d.ts","sourceRoot":"","sources":["../../../../../../../../src/acmo/modules/inapp-notifications/components/gradient_card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,UAAU,iBAAiB;IACzB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,cAAc,CAAC,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,CAAC;IACrC,aAAa,CAAC,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACzC,WAAW,CAAC,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CACxC;AAED,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAoCpD,CAAC"}
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ interface CardAlertProps {
3
+ visible: boolean;
4
+ onClose: () => void;
5
+ children?: React.ReactNode;
6
+ useModal?: boolean;
7
+ }
8
+ export declare const CardAlert: React.FC<CardAlertProps>;
9
+ export {};
10
+ //# sourceMappingURL=modal-wrapper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"modal-wrapper.d.ts","sourceRoot":"","sources":["../../../../../../../../src/acmo/modules/inapp-notifications/components/modal-wrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,UAAU,cAAc;IACtB,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CA6B9C,CAAC"}
@@ -0,0 +1,22 @@
1
+ declare class InAppNotificationController {
2
+ private static instance;
3
+ private constructor();
4
+ static getInstance(): InAppNotificationController;
5
+ currencySales: CurrencySales | null;
6
+ limitedTimeEvents: Array<ActivatedCampaign> | null;
7
+ private listeners;
8
+ addListener(listener: () => void): () => void;
9
+ private notifyListeners;
10
+ private getUserId;
11
+ private getCurrencySalesKey;
12
+ private getLimitedTimeOffersKey;
13
+ private getTodayDateString;
14
+ markCurrencySalesAsShown(): Promise<void>;
15
+ markLimitedTimeOffersAsShown(): Promise<void>;
16
+ init(): Promise<boolean>;
17
+ private filterLimitedOffersWithEvents;
18
+ showCountdown(event: LimitedTimeEvent): boolean;
19
+ getFinalStatusString(event: LimitedTimeEvent): 'Completed' | 'Rejected' | '';
20
+ }
21
+ export default InAppNotificationController;
22
+ //# sourceMappingURL=controller.d.ts.map