@tyrads.com/tyrads-sdk 3.3.4 → 4.0.0-beta.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 (429) 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/premium-widgets/components/active_offers_button.js.map +1 -0
  61. package/lib/commonjs/acmo/modules/{dashboard → premium-widgets}/components/custom_card.js +1 -2
  62. package/lib/commonjs/acmo/modules/premium-widgets/components/custom_card.js.map +1 -0
  63. package/lib/commonjs/acmo/modules/{dashboard → premium-widgets}/components/custom_scroller.js +20 -11
  64. package/lib/commonjs/acmo/modules/premium-widgets/components/custom_scroller.js.map +1 -0
  65. package/lib/commonjs/acmo/modules/premium-widgets/components/custom_shimmer.js.map +1 -0
  66. package/lib/commonjs/acmo/modules/{dashboard → premium-widgets}/components/offer_card.js +12 -12
  67. package/lib/commonjs/acmo/modules/premium-widgets/components/offer_card.js.map +1 -0
  68. package/lib/commonjs/acmo/modules/{dashboard → premium-widgets}/components/offer_list_item.js +3 -3
  69. package/lib/commonjs/acmo/modules/premium-widgets/components/offer_list_item.js.map +1 -0
  70. package/lib/commonjs/acmo/modules/premium-widgets/components/premium_empty_widget.js.map +1 -0
  71. package/lib/commonjs/acmo/modules/premium-widgets/components/premium_header.js.map +1 -0
  72. package/lib/commonjs/acmo/modules/{dashboard → premium-widgets}/components/premium_loading.js +3 -3
  73. package/lib/commonjs/acmo/modules/premium-widgets/components/premium_loading.js.map +1 -0
  74. package/lib/commonjs/acmo/modules/premium-widgets/controller.js +30 -0
  75. package/lib/commonjs/acmo/modules/premium-widgets/controller.js.map +1 -0
  76. package/lib/commonjs/acmo/modules/{dashboard/top_offers.js → premium-widgets/premium_offers_widget.js} +67 -30
  77. package/lib/commonjs/acmo/modules/premium-widgets/premium_offers_widget.js.map +1 -0
  78. package/lib/commonjs/acmo/modules/premium-widgets/premium_offers_widget_wrapper.js +49 -0
  79. package/lib/commonjs/acmo/modules/premium-widgets/premium_offers_widget_wrapper.js.map +1 -0
  80. package/lib/commonjs/acmo/modules/premium-widgets/repository.js +103 -0
  81. package/lib/commonjs/acmo/modules/premium-widgets/repository.js.map +1 -0
  82. package/lib/commonjs/acmo/modules/push-notifications/apns-manager.js +227 -0
  83. package/lib/commonjs/acmo/modules/push-notifications/apns-manager.js.map +1 -0
  84. package/lib/commonjs/acmo/modules/push-notifications/fcm-manager.js +148 -0
  85. package/lib/commonjs/acmo/modules/push-notifications/fcm-manager.js.map +1 -0
  86. package/lib/commonjs/acmo_config.js +6 -5
  87. package/lib/commonjs/acmo_config.js.map +1 -1
  88. package/lib/commonjs/assets/images/alarm-clock.png +0 -0
  89. package/lib/commonjs/assets/images/circle-x.png +0 -0
  90. package/lib/commonjs/assets/images/coin.png +0 -0
  91. package/lib/commonjs/index.js +33 -106
  92. package/lib/commonjs/index.js.map +1 -1
  93. package/lib/module/acmo/core/components/countdown-timer.js +42 -0
  94. package/lib/module/acmo/core/components/countdown-timer.js.map +1 -0
  95. package/lib/module/acmo/core/components/snap-carousel.js +81 -0
  96. package/lib/module/acmo/core/components/snap-carousel.js.map +1 -0
  97. package/lib/module/acmo/core/constants/api-endpoints.js +14 -0
  98. package/lib/module/acmo/core/constants/api-endpoints.js.map +1 -0
  99. package/lib/module/acmo/core/helpers/colors.js +15 -0
  100. package/lib/module/acmo/core/helpers/colors.js.map +1 -0
  101. package/lib/module/acmo/core/helpers/logger.js +14 -0
  102. package/lib/module/acmo/core/helpers/logger.js.map +1 -0
  103. package/lib/module/acmo/core/helpers/patches.js +7 -0
  104. package/lib/module/acmo/core/helpers/patches.js.map +1 -0
  105. package/lib/module/acmo/core/network/http-client.js +86 -0
  106. package/lib/module/acmo/core/network/http-client.js.map +1 -0
  107. package/lib/module/acmo/core/network/network-common.js +106 -0
  108. package/lib/module/acmo/core/network/network-common.js.map +1 -0
  109. package/lib/module/acmo/core/services/localization_service.js +7 -13
  110. package/lib/module/acmo/core/services/localization_service.js.map +1 -1
  111. package/lib/module/acmo/core/types/activated-campaings.d.js +2 -0
  112. package/lib/module/acmo/core/types/activated-campaings.d.js.map +1 -0
  113. package/lib/module/acmo/core/tyrads-sdk-core.js +197 -0
  114. package/lib/module/acmo/core/tyrads-sdk-core.js.map +1 -0
  115. package/lib/module/acmo/modules/inapp-notifications/components/gradient_card.js +92 -0
  116. package/lib/module/acmo/modules/inapp-notifications/components/gradient_card.js.map +1 -0
  117. package/lib/module/acmo/modules/inapp-notifications/components/modal-wrapper.js +49 -0
  118. package/lib/module/acmo/modules/inapp-notifications/components/modal-wrapper.js.map +1 -0
  119. package/lib/module/acmo/modules/inapp-notifications/controller.js +136 -0
  120. package/lib/module/acmo/modules/inapp-notifications/controller.js.map +1 -0
  121. package/lib/module/acmo/modules/inapp-notifications/currency-sales/currency-sales-notif.js +176 -0
  122. package/lib/module/acmo/modules/inapp-notifications/currency-sales/currency-sales-notif.js.map +1 -0
  123. package/lib/module/acmo/modules/inapp-notifications/inapp-notification-host.js +32 -0
  124. package/lib/module/acmo/modules/inapp-notifications/inapp-notification-host.js.map +1 -0
  125. package/lib/module/acmo/modules/inapp-notifications/inapp-notification-manager.js +35 -0
  126. package/lib/module/acmo/modules/inapp-notifications/inapp-notification-manager.js.map +1 -0
  127. package/lib/module/acmo/modules/inapp-notifications/limited-time-offer/components/limited-time-offer-card.js +200 -0
  128. package/lib/module/acmo/modules/inapp-notifications/limited-time-offer/components/limited-time-offer-card.js.map +1 -0
  129. package/lib/module/acmo/modules/inapp-notifications/limited-time-offer/limited-time-notif.js +149 -0
  130. package/lib/module/acmo/modules/inapp-notifications/limited-time-offer/limited-time-notif.js.map +1 -0
  131. package/lib/module/acmo/modules/inapp-notifications/repository.js +47 -0
  132. package/lib/module/acmo/modules/inapp-notifications/repository.js.map +1 -0
  133. package/lib/module/acmo/modules/inapp-notifications/tyrads-global-host.js +32 -0
  134. package/lib/module/acmo/modules/inapp-notifications/tyrads-global-host.js.map +1 -0
  135. package/lib/module/acmo/modules/premium-widgets/components/active_offers_button.js.map +1 -0
  136. package/lib/module/acmo/modules/{dashboard → premium-widgets}/components/custom_card.js +1 -2
  137. package/lib/module/acmo/modules/premium-widgets/components/custom_card.js.map +1 -0
  138. package/lib/module/acmo/modules/{dashboard → premium-widgets}/components/custom_scroller.js +20 -11
  139. package/lib/module/acmo/modules/premium-widgets/components/custom_scroller.js.map +1 -0
  140. package/lib/module/acmo/modules/premium-widgets/components/custom_shimmer.js.map +1 -0
  141. package/lib/module/acmo/modules/{dashboard → premium-widgets}/components/offer_card.js +12 -12
  142. package/lib/module/acmo/modules/premium-widgets/components/offer_card.js.map +1 -0
  143. package/lib/module/acmo/modules/{dashboard → premium-widgets}/components/offer_list_item.js +3 -3
  144. package/lib/module/acmo/modules/premium-widgets/components/offer_list_item.js.map +1 -0
  145. package/lib/module/acmo/modules/premium-widgets/components/premium_empty_widget.js.map +1 -0
  146. package/lib/module/acmo/modules/premium-widgets/components/premium_header.js.map +1 -0
  147. package/lib/module/acmo/modules/{dashboard → premium-widgets}/components/premium_loading.js +1 -1
  148. package/lib/module/acmo/modules/premium-widgets/components/premium_loading.js.map +1 -0
  149. package/lib/module/acmo/modules/premium-widgets/controller.js +25 -0
  150. package/lib/module/acmo/modules/premium-widgets/controller.js.map +1 -0
  151. package/lib/module/acmo/modules/{dashboard/top_offers.js → premium-widgets/premium_offers_widget.js} +69 -32
  152. package/lib/module/acmo/modules/premium-widgets/premium_offers_widget.js.map +1 -0
  153. package/lib/module/acmo/modules/premium-widgets/premium_offers_widget_wrapper.js +41 -0
  154. package/lib/module/acmo/modules/premium-widgets/premium_offers_widget_wrapper.js.map +1 -0
  155. package/lib/module/acmo/modules/premium-widgets/repository.js +98 -0
  156. package/lib/module/acmo/modules/premium-widgets/repository.js.map +1 -0
  157. package/lib/module/acmo/modules/push-notifications/apns-manager.js +222 -0
  158. package/lib/module/acmo/modules/push-notifications/apns-manager.js.map +1 -0
  159. package/lib/module/acmo/modules/push-notifications/fcm-manager.js +143 -0
  160. package/lib/module/acmo/modules/push-notifications/fcm-manager.js.map +1 -0
  161. package/lib/module/acmo_config.js +6 -5
  162. package/lib/module/acmo_config.js.map +1 -1
  163. package/lib/module/assets/images/alarm-clock.png +0 -0
  164. package/lib/module/assets/images/circle-x.png +0 -0
  165. package/lib/module/assets/images/coin.png +0 -0
  166. package/lib/module/index.js +16 -106
  167. package/lib/module/index.js.map +1 -1
  168. package/lib/typescript/commonjs/src/acmo/core/components/countdown-timer.d.ts +8 -0
  169. package/lib/typescript/commonjs/src/acmo/core/components/countdown-timer.d.ts.map +1 -0
  170. package/lib/typescript/commonjs/src/acmo/core/components/snap-carousel.d.ts +26 -0
  171. package/lib/typescript/commonjs/src/acmo/core/components/snap-carousel.d.ts.map +1 -0
  172. package/lib/typescript/commonjs/src/acmo/core/constants/api-endpoints.d.ts +12 -0
  173. package/lib/typescript/commonjs/src/acmo/core/constants/api-endpoints.d.ts.map +1 -0
  174. package/lib/typescript/commonjs/src/acmo/core/helpers/colors.d.ts +2 -0
  175. package/lib/typescript/commonjs/src/acmo/core/helpers/colors.d.ts.map +1 -0
  176. package/lib/typescript/commonjs/src/acmo/core/helpers/logger.d.ts +6 -0
  177. package/lib/typescript/commonjs/src/acmo/core/helpers/logger.d.ts.map +1 -0
  178. package/lib/typescript/commonjs/src/acmo/core/network/http-client.d.ts +28 -0
  179. package/lib/typescript/commonjs/src/acmo/core/network/http-client.d.ts.map +1 -0
  180. package/lib/typescript/commonjs/src/acmo/core/network/network-common.d.ts +13 -0
  181. package/lib/typescript/commonjs/src/acmo/core/network/network-common.d.ts.map +1 -0
  182. package/lib/typescript/commonjs/src/acmo/core/services/localization_service.d.ts +0 -1
  183. package/lib/typescript/commonjs/src/acmo/core/services/localization_service.d.ts.map +1 -1
  184. package/lib/typescript/commonjs/src/acmo/core/types/external_types.d.ts +5 -0
  185. package/lib/typescript/commonjs/src/acmo/core/types/external_types.d.ts.map +1 -1
  186. package/lib/typescript/commonjs/src/acmo/core/tyrads-sdk-core.d.ts +46 -0
  187. package/lib/typescript/commonjs/src/acmo/core/tyrads-sdk-core.d.ts.map +1 -0
  188. package/lib/typescript/commonjs/src/acmo/modules/inapp-notifications/components/gradient_card.d.ts +17 -0
  189. package/lib/typescript/commonjs/src/acmo/modules/inapp-notifications/components/gradient_card.d.ts.map +1 -0
  190. package/lib/typescript/commonjs/src/acmo/modules/inapp-notifications/components/modal-wrapper.d.ts +10 -0
  191. package/lib/typescript/commonjs/src/acmo/modules/inapp-notifications/components/modal-wrapper.d.ts.map +1 -0
  192. package/lib/typescript/commonjs/src/acmo/modules/inapp-notifications/controller.d.ts +22 -0
  193. package/lib/typescript/commonjs/src/acmo/modules/inapp-notifications/controller.d.ts.map +1 -0
  194. package/lib/typescript/commonjs/src/acmo/modules/inapp-notifications/currency-sales/currency-sales-notif.d.ts +6 -0
  195. package/lib/typescript/commonjs/src/acmo/modules/inapp-notifications/currency-sales/currency-sales-notif.d.ts.map +1 -0
  196. package/lib/typescript/commonjs/src/acmo/modules/inapp-notifications/inapp-notification-host.d.ts +7 -0
  197. package/lib/typescript/commonjs/src/acmo/modules/inapp-notifications/inapp-notification-host.d.ts.map +1 -0
  198. package/lib/typescript/commonjs/src/acmo/modules/inapp-notifications/inapp-notification-manager.d.ts +14 -0
  199. package/lib/typescript/commonjs/src/acmo/modules/inapp-notifications/inapp-notification-manager.d.ts.map +1 -0
  200. package/lib/typescript/commonjs/src/acmo/modules/inapp-notifications/limited-time-offer/components/limited-time-offer-card.d.ts +4 -0
  201. package/lib/typescript/commonjs/src/acmo/modules/inapp-notifications/limited-time-offer/components/limited-time-offer-card.d.ts.map +1 -0
  202. package/lib/typescript/commonjs/src/acmo/modules/inapp-notifications/limited-time-offer/limited-time-notif.d.ts +7 -0
  203. package/lib/typescript/commonjs/src/acmo/modules/inapp-notifications/limited-time-offer/limited-time-notif.d.ts.map +1 -0
  204. package/lib/typescript/commonjs/src/acmo/modules/inapp-notifications/repository.d.ts +8 -0
  205. package/lib/typescript/commonjs/src/acmo/modules/inapp-notifications/repository.d.ts.map +1 -0
  206. package/lib/typescript/commonjs/src/acmo/modules/inapp-notifications/tyrads-global-host.d.ts +6 -0
  207. package/lib/typescript/commonjs/src/acmo/modules/inapp-notifications/tyrads-global-host.d.ts.map +1 -0
  208. package/lib/typescript/commonjs/src/acmo/modules/premium-widgets/components/active_offers_button.d.ts.map +1 -0
  209. package/lib/typescript/commonjs/src/acmo/modules/premium-widgets/components/custom_card.d.ts.map +1 -0
  210. package/lib/typescript/{module/src/acmo/modules/dashboard → commonjs/src/acmo/modules/premium-widgets}/components/custom_scroller.d.ts +3 -0
  211. package/lib/typescript/commonjs/src/acmo/modules/premium-widgets/components/custom_scroller.d.ts.map +1 -0
  212. package/lib/typescript/commonjs/src/acmo/modules/premium-widgets/components/custom_shimmer.d.ts.map +1 -0
  213. package/lib/typescript/commonjs/src/acmo/modules/premium-widgets/components/offer_card.d.ts.map +1 -0
  214. package/lib/typescript/commonjs/src/acmo/modules/premium-widgets/components/offer_list_item.d.ts.map +1 -0
  215. package/lib/typescript/commonjs/src/acmo/modules/premium-widgets/components/premium_empty_widget.d.ts.map +1 -0
  216. package/lib/typescript/commonjs/src/acmo/modules/premium-widgets/components/premium_header.d.ts.map +1 -0
  217. package/lib/typescript/{module/src/acmo/modules/dashboard → commonjs/src/acmo/modules/premium-widgets}/components/premium_loading.d.ts +1 -1
  218. package/lib/typescript/commonjs/src/acmo/modules/premium-widgets/components/premium_loading.d.ts.map +1 -0
  219. package/lib/typescript/commonjs/src/acmo/modules/premium-widgets/controller.d.ts +14 -0
  220. package/lib/typescript/commonjs/src/acmo/modules/premium-widgets/controller.d.ts.map +1 -0
  221. package/lib/typescript/commonjs/src/acmo/modules/{dashboard/top_offers.d.ts → premium-widgets/premium_offers_widget.d.ts} +3 -3
  222. package/lib/typescript/commonjs/src/acmo/modules/premium-widgets/premium_offers_widget.d.ts.map +1 -0
  223. package/lib/typescript/commonjs/src/acmo/modules/premium-widgets/premium_offers_widget_wrapper.d.ts +9 -0
  224. package/lib/typescript/commonjs/src/acmo/modules/premium-widgets/premium_offers_widget_wrapper.d.ts.map +1 -0
  225. package/lib/typescript/commonjs/src/acmo/modules/premium-widgets/repository.d.ts +13 -0
  226. package/lib/typescript/commonjs/src/acmo/modules/premium-widgets/repository.d.ts.map +1 -0
  227. package/lib/typescript/commonjs/src/acmo/modules/push-notifications/apns-manager.d.ts +40 -0
  228. package/lib/typescript/commonjs/src/acmo/modules/push-notifications/apns-manager.d.ts.map +1 -0
  229. package/lib/typescript/commonjs/src/acmo/modules/push-notifications/fcm-manager.d.ts +32 -0
  230. package/lib/typescript/commonjs/src/acmo/modules/push-notifications/fcm-manager.d.ts.map +1 -0
  231. package/lib/typescript/commonjs/src/acmo_config.d.ts +1 -0
  232. package/lib/typescript/commonjs/src/acmo_config.d.ts.map +1 -1
  233. package/lib/typescript/commonjs/src/index.d.ts +5 -11
  234. package/lib/typescript/commonjs/src/index.d.ts.map +1 -1
  235. package/lib/typescript/module/src/acmo/core/components/countdown-timer.d.ts +8 -0
  236. package/lib/typescript/module/src/acmo/core/components/countdown-timer.d.ts.map +1 -0
  237. package/lib/typescript/module/src/acmo/core/components/snap-carousel.d.ts +26 -0
  238. package/lib/typescript/module/src/acmo/core/components/snap-carousel.d.ts.map +1 -0
  239. package/lib/typescript/module/src/acmo/core/constants/api-endpoints.d.ts +12 -0
  240. package/lib/typescript/module/src/acmo/core/constants/api-endpoints.d.ts.map +1 -0
  241. package/lib/typescript/module/src/acmo/core/helpers/colors.d.ts +2 -0
  242. package/lib/typescript/module/src/acmo/core/helpers/colors.d.ts.map +1 -0
  243. package/lib/typescript/module/src/acmo/core/helpers/logger.d.ts +6 -0
  244. package/lib/typescript/module/src/acmo/core/helpers/logger.d.ts.map +1 -0
  245. package/lib/typescript/module/src/acmo/core/network/http-client.d.ts +28 -0
  246. package/lib/typescript/module/src/acmo/core/network/http-client.d.ts.map +1 -0
  247. package/lib/typescript/module/src/acmo/core/network/network-common.d.ts +13 -0
  248. package/lib/typescript/module/src/acmo/core/network/network-common.d.ts.map +1 -0
  249. package/lib/typescript/module/src/acmo/core/services/localization_service.d.ts +0 -1
  250. package/lib/typescript/module/src/acmo/core/services/localization_service.d.ts.map +1 -1
  251. package/lib/typescript/module/src/acmo/core/types/external_types.d.ts +5 -0
  252. package/lib/typescript/module/src/acmo/core/types/external_types.d.ts.map +1 -1
  253. package/lib/typescript/module/src/acmo/core/tyrads-sdk-core.d.ts +46 -0
  254. package/lib/typescript/module/src/acmo/core/tyrads-sdk-core.d.ts.map +1 -0
  255. package/lib/typescript/module/src/acmo/modules/inapp-notifications/components/gradient_card.d.ts +17 -0
  256. package/lib/typescript/module/src/acmo/modules/inapp-notifications/components/gradient_card.d.ts.map +1 -0
  257. package/lib/typescript/module/src/acmo/modules/inapp-notifications/components/modal-wrapper.d.ts +10 -0
  258. package/lib/typescript/module/src/acmo/modules/inapp-notifications/components/modal-wrapper.d.ts.map +1 -0
  259. package/lib/typescript/module/src/acmo/modules/inapp-notifications/controller.d.ts +22 -0
  260. package/lib/typescript/module/src/acmo/modules/inapp-notifications/controller.d.ts.map +1 -0
  261. package/lib/typescript/module/src/acmo/modules/inapp-notifications/currency-sales/currency-sales-notif.d.ts +6 -0
  262. package/lib/typescript/module/src/acmo/modules/inapp-notifications/currency-sales/currency-sales-notif.d.ts.map +1 -0
  263. package/lib/typescript/module/src/acmo/modules/inapp-notifications/inapp-notification-host.d.ts +7 -0
  264. package/lib/typescript/module/src/acmo/modules/inapp-notifications/inapp-notification-host.d.ts.map +1 -0
  265. package/lib/typescript/module/src/acmo/modules/inapp-notifications/inapp-notification-manager.d.ts +14 -0
  266. package/lib/typescript/module/src/acmo/modules/inapp-notifications/inapp-notification-manager.d.ts.map +1 -0
  267. package/lib/typescript/module/src/acmo/modules/inapp-notifications/limited-time-offer/components/limited-time-offer-card.d.ts +4 -0
  268. package/lib/typescript/module/src/acmo/modules/inapp-notifications/limited-time-offer/components/limited-time-offer-card.d.ts.map +1 -0
  269. package/lib/typescript/module/src/acmo/modules/inapp-notifications/limited-time-offer/limited-time-notif.d.ts +7 -0
  270. package/lib/typescript/module/src/acmo/modules/inapp-notifications/limited-time-offer/limited-time-notif.d.ts.map +1 -0
  271. package/lib/typescript/module/src/acmo/modules/inapp-notifications/repository.d.ts +8 -0
  272. package/lib/typescript/module/src/acmo/modules/inapp-notifications/repository.d.ts.map +1 -0
  273. package/lib/typescript/module/src/acmo/modules/inapp-notifications/tyrads-global-host.d.ts +6 -0
  274. package/lib/typescript/module/src/acmo/modules/inapp-notifications/tyrads-global-host.d.ts.map +1 -0
  275. package/lib/typescript/module/src/acmo/modules/premium-widgets/components/active_offers_button.d.ts.map +1 -0
  276. package/lib/typescript/module/src/acmo/modules/premium-widgets/components/custom_card.d.ts.map +1 -0
  277. package/lib/typescript/{commonjs/src/acmo/modules/dashboard → module/src/acmo/modules/premium-widgets}/components/custom_scroller.d.ts +3 -0
  278. package/lib/typescript/module/src/acmo/modules/premium-widgets/components/custom_scroller.d.ts.map +1 -0
  279. package/lib/typescript/module/src/acmo/modules/premium-widgets/components/custom_shimmer.d.ts.map +1 -0
  280. package/lib/typescript/module/src/acmo/modules/premium-widgets/components/offer_card.d.ts.map +1 -0
  281. package/lib/typescript/module/src/acmo/modules/premium-widgets/components/offer_list_item.d.ts.map +1 -0
  282. package/lib/typescript/module/src/acmo/modules/premium-widgets/components/premium_empty_widget.d.ts.map +1 -0
  283. package/lib/typescript/module/src/acmo/modules/premium-widgets/components/premium_header.d.ts.map +1 -0
  284. package/lib/typescript/{commonjs/src/acmo/modules/dashboard → module/src/acmo/modules/premium-widgets}/components/premium_loading.d.ts +1 -1
  285. package/lib/typescript/module/src/acmo/modules/premium-widgets/components/premium_loading.d.ts.map +1 -0
  286. package/lib/typescript/module/src/acmo/modules/premium-widgets/controller.d.ts +14 -0
  287. package/lib/typescript/module/src/acmo/modules/premium-widgets/controller.d.ts.map +1 -0
  288. package/lib/typescript/module/src/acmo/modules/{dashboard/top_offers.d.ts → premium-widgets/premium_offers_widget.d.ts} +3 -3
  289. package/lib/typescript/module/src/acmo/modules/premium-widgets/premium_offers_widget.d.ts.map +1 -0
  290. package/lib/typescript/module/src/acmo/modules/premium-widgets/premium_offers_widget_wrapper.d.ts +9 -0
  291. package/lib/typescript/module/src/acmo/modules/premium-widgets/premium_offers_widget_wrapper.d.ts.map +1 -0
  292. package/lib/typescript/module/src/acmo/modules/premium-widgets/repository.d.ts +13 -0
  293. package/lib/typescript/module/src/acmo/modules/premium-widgets/repository.d.ts.map +1 -0
  294. package/lib/typescript/module/src/acmo/modules/push-notifications/apns-manager.d.ts +40 -0
  295. package/lib/typescript/module/src/acmo/modules/push-notifications/apns-manager.d.ts.map +1 -0
  296. package/lib/typescript/module/src/acmo/modules/push-notifications/fcm-manager.d.ts +32 -0
  297. package/lib/typescript/module/src/acmo/modules/push-notifications/fcm-manager.d.ts.map +1 -0
  298. package/lib/typescript/module/src/acmo_config.d.ts +1 -0
  299. package/lib/typescript/module/src/acmo_config.d.ts.map +1 -1
  300. package/lib/typescript/module/src/index.d.ts +5 -11
  301. package/lib/typescript/module/src/index.d.ts.map +1 -1
  302. package/package.json +5 -3
  303. package/readme.md +27 -14
  304. package/src/acmo/core/components/countdown-timer.tsx +52 -0
  305. package/src/acmo/core/components/snap-carousel.tsx +106 -0
  306. package/src/acmo/core/constants/api-endpoints.ts +12 -0
  307. package/src/acmo/core/helpers/colors.ts +16 -0
  308. package/src/acmo/core/helpers/logger.ts +11 -0
  309. package/src/acmo/core/helpers/patches.js +6 -0
  310. package/src/acmo/core/network/http-client.ts +89 -0
  311. package/src/acmo/core/network/network-common.ts +128 -0
  312. package/src/acmo/core/services/localization_service.ts +7 -14
  313. package/src/acmo/core/types/activated-campaings.d.ts +101 -0
  314. package/src/acmo/core/types/external_types.ts +7 -1
  315. package/src/acmo/core/types/types.d.ts +112 -76
  316. package/src/acmo/core/tyrads-sdk-core.tsx +256 -0
  317. package/src/acmo/modules/inapp-notifications/components/gradient_card.tsx +87 -0
  318. package/src/acmo/modules/inapp-notifications/components/modal-wrapper.tsx +59 -0
  319. package/src/acmo/modules/inapp-notifications/controller.ts +183 -0
  320. package/src/acmo/modules/inapp-notifications/currency-sales/currency-sales-notif.tsx +164 -0
  321. package/src/acmo/modules/inapp-notifications/inapp-notification-host.tsx +32 -0
  322. package/src/acmo/modules/inapp-notifications/inapp-notification-manager.ts +40 -0
  323. package/src/acmo/modules/inapp-notifications/limited-time-offer/components/limited-time-offer-card.tsx +188 -0
  324. package/src/acmo/modules/inapp-notifications/limited-time-offer/limited-time-notif.tsx +149 -0
  325. package/src/acmo/modules/inapp-notifications/repository.ts +49 -0
  326. package/src/acmo/modules/inapp-notifications/tyrads-global-host.tsx +25 -0
  327. package/src/acmo/modules/{dashboard → premium-widgets}/components/custom_card.tsx +1 -2
  328. package/src/acmo/modules/{dashboard → premium-widgets}/components/custom_scroller.tsx +24 -10
  329. package/src/acmo/modules/{dashboard → premium-widgets}/components/offer_card.tsx +11 -11
  330. package/src/acmo/modules/{dashboard → premium-widgets}/components/offer_list_item.tsx +3 -3
  331. package/src/acmo/modules/{dashboard → premium-widgets}/components/premium_loading.tsx +1 -1
  332. package/src/acmo/modules/premium-widgets/controller.ts +39 -0
  333. package/src/acmo/modules/{dashboard/top_offers.tsx → premium-widgets/premium_offers_widget.tsx} +67 -45
  334. package/src/acmo/modules/premium-widgets/premium_offers_widget_wrapper.tsx +39 -0
  335. package/src/acmo/modules/premium-widgets/repository.ts +107 -0
  336. package/src/acmo/modules/push-notifications/apns-manager.ts +254 -0
  337. package/src/acmo/modules/push-notifications/fcm-manager.ts +162 -0
  338. package/src/acmo_config.ts +6 -5
  339. package/src/assets/images/alarm-clock.png +0 -0
  340. package/src/assets/images/circle-x.png +0 -0
  341. package/src/assets/images/coin.png +0 -0
  342. package/src/index.tsx +19 -127
  343. package/ios/Tyrads/user/AcmoUserUpdatePage.swift +0 -302
  344. package/ios/Tyrads/user/AcmoUsersUpdateController.swift +0 -26
  345. package/ios/Tyrads/user/Repository.swift +0 -89
  346. package/lib/commonjs/acmo/core/helpers/native_methods.js +0 -48
  347. package/lib/commonjs/acmo/core/helpers/native_methods.js.map +0 -1
  348. package/lib/commonjs/acmo/modules/dashboard/components/active_offers_button.js.map +0 -1
  349. package/lib/commonjs/acmo/modules/dashboard/components/custom_card.js.map +0 -1
  350. package/lib/commonjs/acmo/modules/dashboard/components/custom_scroller.js.map +0 -1
  351. package/lib/commonjs/acmo/modules/dashboard/components/custom_shimmer.js.map +0 -1
  352. package/lib/commonjs/acmo/modules/dashboard/components/offer_card.js.map +0 -1
  353. package/lib/commonjs/acmo/modules/dashboard/components/offer_list_item.js.map +0 -1
  354. package/lib/commonjs/acmo/modules/dashboard/components/premium_empty_widget.js.map +0 -1
  355. package/lib/commonjs/acmo/modules/dashboard/components/premium_header.js.map +0 -1
  356. package/lib/commonjs/acmo/modules/dashboard/components/premium_loading.js.map +0 -1
  357. package/lib/commonjs/acmo/modules/dashboard/repository.js +0 -147
  358. package/lib/commonjs/acmo/modules/dashboard/repository.js.map +0 -1
  359. package/lib/commonjs/acmo/modules/dashboard/top_offers.js.map +0 -1
  360. package/lib/module/acmo/core/helpers/native_methods.js +0 -44
  361. package/lib/module/acmo/core/helpers/native_methods.js.map +0 -1
  362. package/lib/module/acmo/modules/dashboard/components/active_offers_button.js.map +0 -1
  363. package/lib/module/acmo/modules/dashboard/components/custom_card.js.map +0 -1
  364. package/lib/module/acmo/modules/dashboard/components/custom_scroller.js.map +0 -1
  365. package/lib/module/acmo/modules/dashboard/components/custom_shimmer.js.map +0 -1
  366. package/lib/module/acmo/modules/dashboard/components/offer_card.js.map +0 -1
  367. package/lib/module/acmo/modules/dashboard/components/offer_list_item.js.map +0 -1
  368. package/lib/module/acmo/modules/dashboard/components/premium_empty_widget.js.map +0 -1
  369. package/lib/module/acmo/modules/dashboard/components/premium_header.js.map +0 -1
  370. package/lib/module/acmo/modules/dashboard/components/premium_loading.js.map +0 -1
  371. package/lib/module/acmo/modules/dashboard/repository.js +0 -140
  372. package/lib/module/acmo/modules/dashboard/repository.js.map +0 -1
  373. package/lib/module/acmo/modules/dashboard/top_offers.js.map +0 -1
  374. package/lib/typescript/commonjs/src/acmo/core/helpers/native_methods.d.ts +0 -10
  375. package/lib/typescript/commonjs/src/acmo/core/helpers/native_methods.d.ts.map +0 -1
  376. package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/active_offers_button.d.ts.map +0 -1
  377. package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/custom_card.d.ts.map +0 -1
  378. package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/custom_scroller.d.ts.map +0 -1
  379. package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/custom_shimmer.d.ts.map +0 -1
  380. package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/offer_card.d.ts.map +0 -1
  381. package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/offer_list_item.d.ts.map +0 -1
  382. package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/premium_empty_widget.d.ts.map +0 -1
  383. package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/premium_header.d.ts.map +0 -1
  384. package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/premium_loading.d.ts.map +0 -1
  385. package/lib/typescript/commonjs/src/acmo/modules/dashboard/repository.d.ts +0 -3
  386. package/lib/typescript/commonjs/src/acmo/modules/dashboard/repository.d.ts.map +0 -1
  387. package/lib/typescript/commonjs/src/acmo/modules/dashboard/top_offers.d.ts.map +0 -1
  388. package/lib/typescript/module/src/acmo/core/helpers/native_methods.d.ts +0 -10
  389. package/lib/typescript/module/src/acmo/core/helpers/native_methods.d.ts.map +0 -1
  390. package/lib/typescript/module/src/acmo/modules/dashboard/components/active_offers_button.d.ts.map +0 -1
  391. package/lib/typescript/module/src/acmo/modules/dashboard/components/custom_card.d.ts.map +0 -1
  392. package/lib/typescript/module/src/acmo/modules/dashboard/components/custom_scroller.d.ts.map +0 -1
  393. package/lib/typescript/module/src/acmo/modules/dashboard/components/custom_shimmer.d.ts.map +0 -1
  394. package/lib/typescript/module/src/acmo/modules/dashboard/components/offer_card.d.ts.map +0 -1
  395. package/lib/typescript/module/src/acmo/modules/dashboard/components/offer_list_item.d.ts.map +0 -1
  396. package/lib/typescript/module/src/acmo/modules/dashboard/components/premium_empty_widget.d.ts.map +0 -1
  397. package/lib/typescript/module/src/acmo/modules/dashboard/components/premium_header.d.ts.map +0 -1
  398. package/lib/typescript/module/src/acmo/modules/dashboard/components/premium_loading.d.ts.map +0 -1
  399. package/lib/typescript/module/src/acmo/modules/dashboard/repository.d.ts +0 -3
  400. package/lib/typescript/module/src/acmo/modules/dashboard/repository.d.ts.map +0 -1
  401. package/lib/typescript/module/src/acmo/modules/dashboard/top_offers.d.ts.map +0 -1
  402. package/src/acmo/core/helpers/native_methods.ts +0 -59
  403. package/src/acmo/modules/dashboard/repository.ts +0 -170
  404. /package/lib/commonjs/acmo/modules/{dashboard → premium-widgets}/components/active_offers_button.js +0 -0
  405. /package/lib/commonjs/acmo/modules/{dashboard → premium-widgets}/components/custom_shimmer.js +0 -0
  406. /package/lib/commonjs/acmo/modules/{dashboard → premium-widgets}/components/premium_empty_widget.js +0 -0
  407. /package/lib/commonjs/acmo/modules/{dashboard → premium-widgets}/components/premium_header.js +0 -0
  408. /package/lib/module/acmo/modules/{dashboard → premium-widgets}/components/active_offers_button.js +0 -0
  409. /package/lib/module/acmo/modules/{dashboard → premium-widgets}/components/custom_shimmer.js +0 -0
  410. /package/lib/module/acmo/modules/{dashboard → premium-widgets}/components/premium_empty_widget.js +0 -0
  411. /package/lib/module/acmo/modules/{dashboard → premium-widgets}/components/premium_header.js +0 -0
  412. /package/lib/typescript/commonjs/src/acmo/modules/{dashboard → premium-widgets}/components/active_offers_button.d.ts +0 -0
  413. /package/lib/typescript/commonjs/src/acmo/modules/{dashboard → premium-widgets}/components/custom_card.d.ts +0 -0
  414. /package/lib/typescript/commonjs/src/acmo/modules/{dashboard → premium-widgets}/components/custom_shimmer.d.ts +0 -0
  415. /package/lib/typescript/commonjs/src/acmo/modules/{dashboard → premium-widgets}/components/offer_card.d.ts +0 -0
  416. /package/lib/typescript/commonjs/src/acmo/modules/{dashboard → premium-widgets}/components/offer_list_item.d.ts +0 -0
  417. /package/lib/typescript/commonjs/src/acmo/modules/{dashboard → premium-widgets}/components/premium_empty_widget.d.ts +0 -0
  418. /package/lib/typescript/commonjs/src/acmo/modules/{dashboard → premium-widgets}/components/premium_header.d.ts +0 -0
  419. /package/lib/typescript/module/src/acmo/modules/{dashboard → premium-widgets}/components/active_offers_button.d.ts +0 -0
  420. /package/lib/typescript/module/src/acmo/modules/{dashboard → premium-widgets}/components/custom_card.d.ts +0 -0
  421. /package/lib/typescript/module/src/acmo/modules/{dashboard → premium-widgets}/components/custom_shimmer.d.ts +0 -0
  422. /package/lib/typescript/module/src/acmo/modules/{dashboard → premium-widgets}/components/offer_card.d.ts +0 -0
  423. /package/lib/typescript/module/src/acmo/modules/{dashboard → premium-widgets}/components/offer_list_item.d.ts +0 -0
  424. /package/lib/typescript/module/src/acmo/modules/{dashboard → premium-widgets}/components/premium_empty_widget.d.ts +0 -0
  425. /package/lib/typescript/module/src/acmo/modules/{dashboard → premium-widgets}/components/premium_header.d.ts +0 -0
  426. /package/src/acmo/modules/{dashboard → premium-widgets}/components/active_offers_button.tsx +0 -0
  427. /package/src/acmo/modules/{dashboard → premium-widgets}/components/custom_shimmer.tsx +0 -0
  428. /package/src/acmo/modules/{dashboard → premium-widgets}/components/premium_empty_widget.tsx +0 -0
  429. /package/src/acmo/modules/{dashboard → premium-widgets}/components/premium_header.tsx +0 -0
@@ -5,9 +5,25 @@ import React
5
5
 
6
6
 
7
7
  @objc(TyradsSdk)
8
- class TyradsSdk: RCTEventEmitter {
8
+ class TyradsSdk: RCTEventEmitter , APNsNotificationListener{
9
+
10
+ class PassthroughRootView: RCTRootView {
11
+ override func hitTest(_ point: CGPoint, with event: UIEvent?) -> UIView? {
12
+ return super.hitTest(point, with: event)
13
+ }
14
+ }
15
+
16
+ private var pushEventSink: RCTResponseSenderBlock?
17
+ private var notificationViewController: UIViewController? = nil
18
+ private var notificationView: UIView? = nil
19
+ private var notificationWindow: UIWindow? = nil
9
20
 
10
21
  private var cancellable: AnyCancellable?
22
+
23
+ override init() {
24
+ super.init()
25
+ APNsNotificationReceiver.shared.setListener(self)
26
+ }
11
27
 
12
28
  override func startObserving() {
13
29
  cancellable = Tyrads.instance.languagePublisher
@@ -19,18 +35,41 @@ class TyradsSdk: RCTEventEmitter {
19
35
  override func stopObserving() {
20
36
  cancellable?.cancel()
21
37
  cancellable = nil
38
+ APNsNotificationReceiver.shared.clearAll()
39
+ }
40
+
41
+ func onNotificationReceived(userInfo: [AnyHashable : Any]) {
42
+ sendEvent(withName: "PushNotificationEvent", body: [
43
+ "type": "received",
44
+ "data": userInfo
45
+ ])
46
+ }
47
+
48
+ func onNotificationClicked(identifier: String, userInfo: [AnyHashable : Any]) {
49
+ sendEvent(withName: "PushNotificationEvent", body: [
50
+ "type": "clicked",
51
+ "id": identifier,
52
+ "data": userInfo
53
+ ])
54
+ }
55
+
56
+ func onNotificationDismissed(identifier: String) {
57
+ sendEvent(withName: "PushNotificationEvent", body: [
58
+ "type": "dismissed",
59
+ "id": identifier
60
+ ])
22
61
  }
23
62
 
24
63
  override func supportedEvents() -> [String]! {
25
- return ["LanguageChanged"]
64
+ return ["LanguageChanged", "PushNotificationEvent"]
26
65
  }
27
66
 
28
67
  @objc
29
- func `init`(_ apiKey: String, secretKey: String, encKey: String? = nil, engagementId: String? = nil, resolver resolve: @escaping RCTPromiseResolveBlock, rejecter reject: @escaping RCTPromiseRejectBlock) {
68
+ func `init`(_ apiKey: String, secretKey: String, encKey: String? = nil, engagementId: String? = nil, placementId: String? = nil, resolver resolve: @escaping RCTPromiseResolveBlock, rejecter reject: @escaping RCTPromiseRejectBlock) {
30
69
  NSLog("TyradsModule: init called with apiKey: \(apiKey) and secretKey: \(secretKey)")
31
70
  Task {
32
71
  do{
33
- let locale = await Tyrads.instance.configure(apiKey: apiKey, secretKey: secretKey, encKey: encKey, engagementId: engagementId)
72
+ let locale = await Tyrads.instance.configure(apiKey: apiKey, secretKey: secretKey, encKey: encKey, engagementId: engagementId, placementId: placementId)
34
73
  let result: [String: Any] = [
35
74
  "success": true,
36
75
  "languageCode": locale
@@ -91,6 +130,14 @@ class TyradsSdk: RCTEventEmitter {
91
130
  resolve(nil)
92
131
  }
93
132
  }
133
+
134
+ @objc(preloadOffers:resolver:rejecter:)
135
+ func preloadOffers(_ route: String?, resolver resolve: @escaping RCTPromiseResolveBlock, rejecter reject: @escaping RCTPromiseRejectBlock) {
136
+ Task { @MainActor in
137
+ Tyrads.instance.preloadOffers(route: route)
138
+ resolve(nil)
139
+ }
140
+ }
94
141
 
95
142
  @objc(changeLanguage:resolver:rejecter:)
96
143
  func changeLanguage(_ lang: String, resolver resolve: @escaping RCTPromiseResolveBlock, rejecter reject: @escaping RCTPromiseRejectBlock) {
@@ -143,5 +190,75 @@ class TyradsSdk: RCTEventEmitter {
143
190
  resolver(result)
144
191
  }
145
192
  }
193
+
194
+ // APNs
195
+ @objc(pushRequestPermission:rejecter:)
196
+ func pushRequestPermission(_ resolve: @escaping RCTPromiseResolveBlock, rejecter reject: @escaping RCTPromiseRejectBlock) {
197
+ APNsNotificationManager.shared.requestPermission { success in
198
+ resolve(success)
199
+ }
200
+ }
201
+
202
+ @objc(pushGetApnsToken:rejecter:)
203
+ func pushGetApnsToken(_ resolve: @escaping RCTPromiseResolveBlock, rejecter reject: @escaping RCTPromiseRejectBlock) {
204
+ APNsNotificationManager.shared.getToken { token in
205
+ resolve(token)
206
+ }
207
+ }
208
+
209
+ @objc
210
+ func showInAppNotification() {
211
+ print("TyradsSdk: showInAppNotification called")
212
+ DispatchQueue.main.async {
213
+ guard let bridge = self.bridge else {
214
+ print("TyradsSdk: ERROR - Bridge not available")
215
+ return
216
+ }
217
+ print("TyradsSdk: Bridge bundle URL: \(bridge.bundleURL?.absoluteString ?? "nil")")
218
+ self.notificationView?.removeFromSuperview()
219
+ self.notificationView = nil
220
+ self.notificationWindow?.isHidden = true
221
+ self.notificationWindow = nil
222
+
223
+ let frame = UIScreen.main.bounds
224
+ let window: UIWindow
225
+ if #available(iOS 13.0, *), let windowScene = UIApplication.shared.connectedScenes.first as? UIWindowScene {
226
+ window = UIWindow(windowScene: windowScene)
227
+ } else {
228
+ window = UIWindow(frame: frame)
229
+ }
230
+ window.windowLevel = .alert + 1
231
+ window.frame = frame
232
+ window.backgroundColor = .clear
233
+
234
+ let rootView = PassthroughRootView(
235
+ bridge: bridge,
236
+ moduleName: "TyradsSdkExample",
237
+ initialProperties: nil
238
+ )
239
+
240
+ rootView.backgroundColor = .yellow
241
+ rootView.frame = frame
242
+ let vc = UIViewController()
243
+ vc.view = rootView
244
+ window.rootViewController = vc
245
+
246
+ self.notificationView = rootView
247
+ self.notificationWindow = window
248
+ window.isHidden = false
249
+ print("TyradsSdk: Notification window is now visible (isHidden = false)")
250
+ }
251
+ }
252
+
253
+ @objc
254
+ func dismissInAppNotification() {
255
+ print("TyradsSdk: dismissInAppNotification called")
256
+ DispatchQueue.main.async {
257
+ self.notificationView?.removeFromSuperview()
258
+ self.notificationView = nil
259
+ self.notificationWindow?.isHidden = true
260
+ self.notificationWindow = nil
261
+ }
262
+ }
146
263
 
147
264
  }
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.CountdownTimer = void 0;
7
+ var _react = _interopRequireWildcard(require("react"));
8
+ var _reactNative = require("react-native");
9
+ var _jsxRuntime = require("react/jsx-runtime");
10
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
11
+ const CountdownTimer = ({
12
+ duration,
13
+ style
14
+ }) => {
15
+ const [timeLeft, setTimeLeft] = (0, _react.useState)(duration);
16
+ const intervalRef = (0, _react.useRef)();
17
+ (0, _react.useEffect)(() => {
18
+ intervalRef.current = setInterval(() => {
19
+ setTimeLeft(prev => {
20
+ if (prev <= 1) {
21
+ clearInterval(intervalRef.current);
22
+ return 0;
23
+ }
24
+ return prev - 1;
25
+ });
26
+ }, 1000);
27
+ return () => clearInterval(intervalRef.current);
28
+ }, []);
29
+ const formatTime = seconds => {
30
+ if (seconds <= 0) return '00:00:00';
31
+ const days = Math.floor(seconds / 86400);
32
+ const hours = Math.floor(seconds % 86400 / 3600);
33
+ const minutes = Math.floor(seconds % 3600 / 60);
34
+ const secs = seconds % 60;
35
+ const pad = num => num.toString().padStart(2, '0');
36
+ if (days > 0) {
37
+ return `${pad(days)} d ${pad(hours)} h`;
38
+ } else {
39
+ return `${pad(hours)}:${pad(minutes)}:${pad(secs)}`;
40
+ }
41
+ };
42
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
43
+ style: style,
44
+ children: formatTime(timeLeft)
45
+ });
46
+ };
47
+ exports.CountdownTimer = CountdownTimer;
48
+ //# sourceMappingURL=countdown-timer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","CountdownTimer","duration","style","timeLeft","setTimeLeft","useState","intervalRef","useRef","useEffect","current","setInterval","prev","clearInterval","formatTime","seconds","days","Math","floor","hours","minutes","secs","pad","num","toString","padStart","jsx","Text","children","exports"],"sourceRoot":"../../../../../src","sources":["acmo/core/components/countdown-timer.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAAoC,IAAAE,WAAA,GAAAF,OAAA;AAAA,SAAAD,wBAAAI,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAN,uBAAA,YAAAA,CAAAI,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAQ,CAAA,MAAAF,CAAA,GAAAL,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAG,CAAA,CAAAK,GAAA,CAAAX,CAAA,UAAAM,CAAA,CAAAM,GAAA,CAAAZ,CAAA,GAAAM,CAAA,CAAAO,GAAA,CAAAb,CAAA,EAAAQ,CAAA,gBAAAP,CAAA,IAAAD,CAAA,gBAAAC,CAAA,OAAAa,cAAA,CAAAC,IAAA,CAAAf,CAAA,EAAAC,CAAA,OAAAM,CAAA,IAAAD,CAAA,GAAAU,MAAA,CAAAC,cAAA,KAAAD,MAAA,CAAAE,wBAAA,CAAAlB,CAAA,EAAAC,CAAA,OAAAM,CAAA,CAAAK,GAAA,IAAAL,CAAA,CAAAM,GAAA,IAAAP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C;IAE5D,IAAIT,IAAI,GAAG,CAAC,EAAE;MACZ,OAAO,GAAGM,GAAG,CAACN,IAAI,CAAC,MAAMM,GAAG,CAACH,KAAK,CAAC,IAAI;IACzC,CAAC,MAAM;MACL,OAAO,GAAGG,GAAG,CAACH,KAAK,CAAC,IAAIG,GAAG,CAACF,OAAO,CAAC,IAAIE,GAAG,CAACD,IAAI,CAAC,EAAE;IACrD;EACF,CAAC;EAED,oBACI,IAAAxC,WAAA,CAAA6C,GAAA,EAAC9C,YAAA,CAAA+C,IAAI;IAACxB,KAAK,EAAEA,KAAM;IAAAyB,QAAA,EAChBd,UAAU,CAACV,QAAQ;EAAC,CACjB,CAAC;AAEb,CAAC;AAACyB,OAAA,CAAA5B,cAAA,GAAAA,cAAA","ignoreList":[]}
@@ -0,0 +1,86 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ require("../helpers/patches.js");
8
+ var _react = _interopRequireWildcard(require("react"));
9
+ var _reactNative = require("react-native");
10
+ var _reactNativeSnapCarousel = _interopRequireWildcard(require("react-native-snap-carousel"));
11
+ var _jsxRuntime = require("react/jsx-runtime");
12
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
13
+ const {
14
+ width: screenWidth
15
+ } = _reactNative.Dimensions.get("window");
16
+ const SnapCarousel = ({
17
+ data,
18
+ renderItem,
19
+ sliderWidth = screenWidth,
20
+ itemWidth = screenWidth * 0.75,
21
+ showPagination = true,
22
+ onSnapToItem = () => {},
23
+ inactiveSlideScale = 1,
24
+ inactiveSlideOpacity = 0.99,
25
+ activeSlideAlignment = "center",
26
+ containerStyle,
27
+ paginationContainerStyle,
28
+ dotStyle,
29
+ inActiveDotStyle,
30
+ inActiveDotScale = 0.95,
31
+ loop = false,
32
+ autoplay = false,
33
+ autoPlayDelay = 5000,
34
+ ...rest
35
+ }) => {
36
+ const carouselRef = (0, _react.useRef)(null);
37
+ const [activeIndex, setActiveIndex] = (0, _react.useState)(0);
38
+ const sidePadding = (sliderWidth - itemWidth) / 2;
39
+ const safeData = data || [];
40
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
41
+ style: [containerStyle],
42
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSnapCarousel.default, {
43
+ ref: carouselRef,
44
+ data: safeData,
45
+ renderItem: renderItem,
46
+ sliderWidth: sliderWidth,
47
+ itemWidth: itemWidth,
48
+ inactiveSlideScale: inactiveSlideScale,
49
+ inactiveSlideOpacity: inactiveSlideOpacity,
50
+ activeSlideAlignment: activeSlideAlignment,
51
+ onSnapToItem: index => {
52
+ setActiveIndex(index);
53
+ onSnapToItem(index);
54
+ },
55
+ contentContainerCustomStyle: {
56
+ paddingHorizontal: sidePadding
57
+ },
58
+ loop: loop,
59
+ autoplay: autoplay,
60
+ autoplayDelay: autoPlayDelay,
61
+ ...rest
62
+ }), showPagination && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSnapCarousel.Pagination, {
63
+ dotsLength: safeData.length,
64
+ activeDotIndex: activeIndex,
65
+ dotStyle: [styles.dot, dotStyle],
66
+ inactiveDotOpacity: 0.3,
67
+ inactiveDotStyle: [inActiveDotStyle],
68
+ inactiveDotScale: inActiveDotScale,
69
+ dotContainerStyle: [{
70
+ marginHorizontal: 4,
71
+ marginBottom: 0
72
+ }],
73
+ containerStyle: paginationContainerStyle
74
+ })]
75
+ });
76
+ };
77
+ const styles = _reactNative.StyleSheet.create({
78
+ dot: {
79
+ width: 8,
80
+ height: 8,
81
+ borderRadius: 4,
82
+ backgroundColor: "#fff"
83
+ }
84
+ });
85
+ var _default = exports.default = SnapCarousel;
86
+ //# sourceMappingURL=snap-carousel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["require","_react","_interopRequireWildcard","_reactNative","_reactNativeSnapCarousel","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","width","screenWidth","Dimensions","SnapCarousel","data","renderItem","sliderWidth","itemWidth","showPagination","onSnapToItem","inactiveSlideScale","inactiveSlideOpacity","activeSlideAlignment","containerStyle","paginationContainerStyle","dotStyle","inActiveDotStyle","inActiveDotScale","loop","autoplay","autoPlayDelay","rest","carouselRef","useRef","activeIndex","setActiveIndex","useState","sidePadding","safeData","jsxs","View","style","children","jsx","ref","index","contentContainerCustomStyle","paddingHorizontal","autoplayDelay","Pagination","dotsLength","length","activeDotIndex","styles","dot","inactiveDotOpacity","inactiveDotStyle","inactiveDotScale","dotContainerStyle","marginHorizontal","marginBottom","StyleSheet","create","height","borderRadius","backgroundColor","_default","exports"],"sourceRoot":"../../../../../src","sources":["acmo/core/components/snap-carousel.tsx"],"mappings":";;;;;;AAAAA,OAAA;AAEA,IAAAC,MAAA,GAAAC,uBAAA,CAAAF,OAAA;AACA,IAAAG,YAAA,GAAAH,OAAA;AACA,IAAAI,wBAAA,GAAAF,uBAAA,CAAAF,OAAA;AAAkE,IAAAK,WAAA,GAAAL,OAAA;AAAA,SAAAE,wBAAAI,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAN,uBAAA,YAAAA,CAAAI,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CA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MACxBC,gBAAgB,EAAE,CAAC9B,gBAAgB,CAAE;MACrC+B,gBAAgB,EAAE9B,gBAAiB;MACnC+B,iBAAiB,EAAE,CAAC;QAAEC,gBAAgB,EAAE,CAAC;QAAGC,YAAY,EAAE;MAAC,CAAC,CAAE;MAC9DrC,cAAc,EAAEC;IAAyB,CAC1C,CACF;EAAA,CACG,CAAC;AAEX,CAAC;AAED,MAAM6B,MAAM,GAAGQ,uBAAU,CAACC,MAAM,CAAC;EAC/BR,GAAG,EAAE;IACH5C,KAAK,EAAE,CAAC;IACRqD,MAAM,EAAE,CAAC;IACTC,YAAY,EAAE,CAAC;IACfC,eAAe,EAAE;EACnB;AACF,CAAC,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAlE,OAAA,GAEYY,YAAY","ignoreList":[]}
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ class AcmoAPIEndpoints {
8
+ static TARGETED_CAMPAIGNS = "campaigns";
9
+ static ACTIVE_CAMPAIGNS = "campaigns/activated";
10
+ static SUMMARY = "campaigns/activated/summary";
11
+ static ENGAGEMENT = "account/engagement";
12
+ static USER_ACTIVITIES = "account/activity";
13
+ static ACTIVATE_CAMPAIGN = id => `campaigns/${id}/activate`;
14
+ static TRANSLATIONS = locale => `translations/${locale}`;
15
+ static TRANSLATIONS_VERSION = "translations/version";
16
+ }
17
+ var _default = exports.default = AcmoAPIEndpoints;
18
+ //# sourceMappingURL=api-endpoints.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["AcmoAPIEndpoints","TARGETED_CAMPAIGNS","ACTIVE_CAMPAIGNS","SUMMARY","ENGAGEMENT","USER_ACTIVITIES","ACTIVATE_CAMPAIGN","id","TRANSLATIONS","locale","TRANSLATIONS_VERSION","_default","exports","default"],"sourceRoot":"../../../../../src","sources":["acmo/core/constants/api-endpoints.ts"],"mappings":";;;;;;AAAA,MAAMA,gBAAgB,CAAC;EACrB,OAAuBC,kBAAkB,GAAG,WAAW;EACvD,OAAuBC,gBAAgB,GAAG,qBAAqB;EAC/D,OAAuBC,OAAO,GAAG,6BAA6B;EAC9D,OAAuBC,UAAU,GAAG,oBAAoB;EACxD,OAAuBC,eAAe,GAAG,kBAAkB;EAC3D,OAAuBC,iBAAiB,GAAIC,EAAU,IAAK,aAAaA,EAAE,WAAW;EACrF,OAAuBC,YAAY,GAAIC,MAAc,IAAK,gBAAgBA,MAAM,EAAE;EAClF,OAAuBC,oBAAoB,GAAG,sBAAsB;AACtE;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAEcb,gBAAgB","ignoreList":[]}
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.getContrastColor = void 0;
7
+ const getContrastColor = hexColor => {
8
+ if (!hexColor) return 'white';
9
+ let hex = hexColor.replace('#', '');
10
+ if (hex.length === 3) {
11
+ hex = hex.split('').map(char => char + char).join('');
12
+ }
13
+ const r = parseInt(hex.substring(0, 2), 16);
14
+ const g = parseInt(hex.substring(2, 4), 16);
15
+ const b = parseInt(hex.substring(4, 6), 16);
16
+ const yiq = (r * 299 + g * 587 + b * 114) / 1000;
17
+ return yiq >= 128 ? 'black' : 'white';
18
+ };
19
+ exports.getContrastColor = getContrastColor;
20
+ //# sourceMappingURL=colors.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["getContrastColor","hexColor","hex","replace","length","split","map","char","join","r","parseInt","substring","g","b","yiq","exports"],"sourceRoot":"../../../../../src","sources":["acmo/core/helpers/colors.ts"],"mappings":";;;;;;AAAO,MAAMA,gBAAgB,GAAIC,QAAmC,IAAa;EAC/E,IAAI,CAACA,QAAQ,EAAE,OAAO,OAAO;EAE7B,IAAIC,GAAG,GAAGD,QAAQ,CAACE,OAAO,CAAC,GAAG,EAAE,EAAE,CAAC;EAEnC,IAAID,GAAG,CAACE,MAAM,KAAK,CAAC,EAAE;IACpBF,GAAG,GAAGA,GAAG,CAACG,KAAK,CAAC,EAAE,CAAC,CAACC,GAAG,CAACC,IAAI,IAAIA,IAAI,GAAGA,IAAI,CAAC,CAACC,IAAI,CAAC,EAAE,CAAC;EACvD;EAEA,MAAMC,CAAC,GAAGC,QAAQ,CAACR,GAAG,CAACS,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC;EAC3C,MAAMC,CAAC,GAAGF,QAAQ,CAACR,GAAG,CAACS,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC;EAC3C,MAAME,CAAC,GAAGH,QAAQ,CAACR,GAAG,CAACS,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC;EAC3C,MAAMG,GAAG,GAAG,CAAEL,CAAC,GAAG,GAAG,GAAKG,CAAC,GAAG,GAAI,GAAIC,CAAC,GAAG,GAAI,IAAI,IAAI;EAEtD,OAAQC,GAAG,IAAI,GAAG,GAAI,OAAO,GAAG,OAAO;AACzC,CAAC;AAACC,OAAA,CAAAf,gBAAA,GAAAA,gBAAA","ignoreList":[]}
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.Logger = void 0;
7
+ const Logger = exports.Logger = {
8
+ log: (...args) => {
9
+ if (__DEV__) console.log(...args);
10
+ },
11
+ warn: (...args) => {
12
+ if (__DEV__) console.warn(...args);
13
+ },
14
+ error: (...args) => {
15
+ if (__DEV__) console.error(...args);
16
+ }
17
+ };
18
+ //# sourceMappingURL=logger.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["Logger","exports","log","args","__DEV__","console","warn","error"],"sourceRoot":"../../../../../src","sources":["acmo/core/helpers/logger.ts"],"mappings":";;;;;;AAAO,MAAMA,MAAM,GAAAC,OAAA,CAAAD,MAAA,GAAG;EACpBE,GAAG,EAAEA,CAAC,GAAGC,IAAW,KAAK;IACvB,IAAIC,OAAO,EAAEC,OAAO,CAACH,GAAG,CAAC,GAAGC,IAAI,CAAC;EACnC,CAAC;EACDG,IAAI,EAAEA,CAAC,GAAGH,IAAW,KAAK;IACxB,IAAIC,OAAO,EAAEC,OAAO,CAACC,IAAI,CAAC,GAAGH,IAAI,CAAC;EACpC,CAAC;EACDI,KAAK,EAAEA,CAAC,GAAGJ,IAAW,KAAK;IACzB,IAAIC,OAAO,EAAEC,OAAO,CAACE,KAAK,CAAC,GAAGJ,IAAI,CAAC;EACrC;AACF,CAAC","ignoreList":[]}
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+
3
+ var _reactNative = require("react-native");
4
+ if (typeof _reactNative.View.propTypes === 'undefined') {
5
+ _reactNative.View.propTypes = {};
6
+ }
7
+ //# sourceMappingURL=patches.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_reactNative","require","View","propTypes"],"sourceRoot":"../../../../../src","sources":["acmo/core/helpers/patches.js"],"mappings":";;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAEA,IAAI,OAAOC,iBAAI,CAACC,SAAS,KAAK,WAAW,EAAE;EACzCD,iBAAI,CAACC,SAAS,GAAG,CAAC,CAAC;AACrB","ignoreList":[]}
@@ -0,0 +1,91 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.http = void 0;
7
+ var _axios = _interopRequireDefault(require("axios"));
8
+ var _networkCommon = _interopRequireDefault(require("./network-common.js"));
9
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
10
+ class HttpClient {
11
+ handleError(error) {
12
+ if (_axios.default.isAxiosError(error)) {
13
+ const status = error.response?.status;
14
+ const data = error.response?.data;
15
+ if (!error.response) {
16
+ return {
17
+ type: 'network',
18
+ message: 'Network error or no response from server'
19
+ };
20
+ }
21
+ if (error.code === 'ECONNABORTED') {
22
+ return {
23
+ type: 'timeout',
24
+ message: 'Request timed out'
25
+ };
26
+ }
27
+ return {
28
+ type: 'server',
29
+ status,
30
+ data,
31
+ message: error.message
32
+ };
33
+ }
34
+ return {
35
+ type: 'unknown',
36
+ message: String(error)
37
+ };
38
+ }
39
+ async get(url, params) {
40
+ const api = _networkCommon.default.getInstance().getAxios();
41
+ try {
42
+ const response = await api.get(url, {
43
+ params: params ?? {}
44
+ });
45
+ return {
46
+ status: response.status,
47
+ data: response.data
48
+ };
49
+ } catch (error) {
50
+ throw this.handleError(error);
51
+ }
52
+ }
53
+ async post(url, data, config) {
54
+ const api = _networkCommon.default.getInstance().getAxios();
55
+ try {
56
+ const response = await api.post(url, data, config);
57
+ return {
58
+ status: response.status,
59
+ data: response.data
60
+ };
61
+ } catch (error) {
62
+ throw this.handleError(error);
63
+ }
64
+ }
65
+ async put(url, data, config) {
66
+ const api = _networkCommon.default.getInstance().getAxios();
67
+ try {
68
+ const response = await api.put(url, data, config);
69
+ return {
70
+ status: response.status,
71
+ data: response.data
72
+ };
73
+ } catch (error) {
74
+ throw this.handleError(error);
75
+ }
76
+ }
77
+ async delete(url, config) {
78
+ const api = _networkCommon.default.getInstance().getAxios();
79
+ try {
80
+ const response = await api.delete(url, config);
81
+ return {
82
+ status: response.status,
83
+ data: response.data
84
+ };
85
+ } catch (error) {
86
+ throw this.handleError(error);
87
+ }
88
+ }
89
+ }
90
+ const http = exports.http = new HttpClient();
91
+ //# sourceMappingURL=http-client.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_axios","_interopRequireDefault","require","_networkCommon","e","__esModule","default","HttpClient","handleError","error","axios","isAxiosError","status","response","data","type","message","code","String","get","url","params","api","NetworkCommon","getInstance","getAxios","post","config","put","delete","http","exports"],"sourceRoot":"../../../../../src","sources":["acmo/core/network/http-client.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,cAAA,GAAAF,sBAAA,CAAAC,OAAA;AAA6C,SAAAD,uBAAAG,CAAA,WAA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E;MACd,MAAM,IAAI,CAACD,WAAW,CAACC,KAAK,CAAC;IAC/B;EACF;AACF;AAEO,MAAMqB,IAAI,GAAAC,OAAA,CAAAD,IAAA,GAAG,IAAIvB,UAAU,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,111 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _axios = _interopRequireDefault(require("axios"));
8
+ var _acmo_config = require("../../../acmo_config.js");
9
+ var _logger = require("../helpers/logger.js");
10
+ var _tyradsSdkCore = _interopRequireDefault(require("../tyrads-sdk-core.js"));
11
+ var _storage = require("../storage/storage.js");
12
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
13
+ const BASE_URL = _acmo_config.AcmoConfig.BASE_URL;
14
+ class NetworkCommon {
15
+ axiosInstance = null;
16
+ constructor() {}
17
+ static getInstance() {
18
+ if (!NetworkCommon.instance) {
19
+ NetworkCommon.instance = new NetworkCommon();
20
+ }
21
+ return NetworkCommon.instance;
22
+ }
23
+ async init() {
24
+ if (this.axiosInstance) return;
25
+ this.axiosInstance = _axios.default.create({
26
+ baseURL: BASE_URL,
27
+ timeout: 10000,
28
+ headers: {
29
+ 'Content-Type': 'application/json',
30
+ Accept: 'application/json'
31
+ }
32
+ });
33
+ this.addInterceptors();
34
+ }
35
+ logSafe(title, data) {
36
+ if (!__DEV__) return;
37
+ try {
38
+ console.group(title);
39
+ console.log(JSON.stringify(data, null, 2));
40
+ console.groupEnd();
41
+ } catch {
42
+ console.log(title, data);
43
+ }
44
+ }
45
+ addInterceptors() {
46
+ if (!this.axiosInstance) return;
47
+ this.axiosInstance.interceptors.request.use(async config => {
48
+ const apiKey = _tyradsSdkCore.default.apiKey;
49
+ const apiSecret = _tyradsSdkCore.default.apiSecret;
50
+ const sdkPlatform = _acmo_config.AcmoConfig.SDK_PLATFORM;
51
+ const sdkVersion = _acmo_config.AcmoConfig.SDK_VERSION;
52
+ let userId = _tyradsSdkCore.default.userId;
53
+ if (!userId) {
54
+ userId = (await (0, _storage.getData)('xUserId')) || '';
55
+ }
56
+ config.headers['X-API-Key'] = apiKey;
57
+ config.headers['X-API-Secret'] = apiSecret;
58
+ config.headers['X-User-ID'] = userId;
59
+ config.headers['X-SDK-Platform'] = sdkPlatform;
60
+ config.headers['X-SDK-Version'] = sdkVersion;
61
+ if (__DEV__) {
62
+ this.logSafe('HTTP REQUEST', {
63
+ timestamp: new Date().toISOString(),
64
+ method: config.method?.toUpperCase(),
65
+ url: `${config.baseURL}${config.url}`,
66
+ headers: {
67
+ ...config.headers,
68
+ 'X-API-Key': '***',
69
+ 'X-API-Secret': '***'
70
+ },
71
+ body: config.data
72
+ });
73
+ }
74
+ return config;
75
+ }, error => {
76
+ _logger.Logger.error('Request Interceptor Error:', error);
77
+ return Promise.reject(error);
78
+ });
79
+ this.axiosInstance.interceptors.response.use(response => {
80
+ if (__DEV__) {
81
+ this.logSafe('HTTP RESPONSE', {
82
+ timestamp: new Date().toISOString(),
83
+ status: response.status,
84
+ url: response.config.url,
85
+ data: response.data
86
+ });
87
+ }
88
+ return response;
89
+ }, error => {
90
+ if (__DEV__) {
91
+ this.logSafe('HTTP ERROR', {
92
+ timestamp: new Date().toISOString(),
93
+ isAxiosError: _axios.default.isAxiosError(error),
94
+ status: error.response?.status,
95
+ url: error.config?.url,
96
+ message: error.message,
97
+ responseData: error.response?.data
98
+ });
99
+ }
100
+ return Promise.reject(error);
101
+ });
102
+ }
103
+ getAxios() {
104
+ if (!this.axiosInstance) {
105
+ throw new Error('NetworkCommon not initialized. Call init() first.');
106
+ }
107
+ return this.axiosInstance;
108
+ }
109
+ }
110
+ var _default = exports.default = NetworkCommon;
111
+ //# sourceMappingURL=network-common.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_axios","_interopRequireDefault","require","_acmo_config","_logger","_tyradsSdkCore","_storage","e","__esModule","default","BASE_URL","AcmoConfig","NetworkCommon","axiosInstance","constructor","getInstance","instance","init","axios","create","baseURL","timeout","headers","Accept","addInterceptors","logSafe","title","data","__DEV__","console","group","log","JSON","stringify","groupEnd","interceptors","request","use","config","apiKey","TyradsSdkCore","apiSecret","sdkPlatform","SDK_PLATFORM","sdkVersion","SDK_VERSION","userId","getData","timestamp","Date","toISOString","method","toUpperCase","url","body","error","Logger","Promise","reject","response","status","isAxiosError","message","responseData","getAxios","Error","_default","exports"],"sourceRoot":"../../../../../src","sources":["acmo/core/network/network-common.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,OAAA,GAAAF,OAAA;AACA,IAAAG,cAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,QAAA,GAAAJ,OAAA;AAA6C,SAAAD,uBAAAM,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAE7C,MAAMG,QAAQ,GAAGC,uBAAU,CAACD,QAAQ;AAEpC,MAAME,aAAa,CAAC;EAEVC,aAAa,GAAyB,IAAI;EAE1CC,WAAWA,CAAA,EAAG,CAAE;EAGxB,OAAcC,WAAWA,CAAA,EAAkB;IACzC,IAAI,CAACH,aAAa,CAACI,QAAQ,EAAE;MAC3BJ,aAAa,CAACI,QAAQ,GAAG,IAAIJ,aAAa,CAAC,CAAC;IAC9C;IACA,OAAOA,aAAa,CAACI,QAAQ;EAC/B;EAEA,MAAaC,IAAIA,CAAA,EAAkB;IACjC,IAAI,IAAI,CAACJ,aAAa,EAAE;IAExB,IAAI,CAACA,aAAa,GAAGK,cAAK,CAACC,MAAM,CAAC;MAChCC,OAAO,EAAEV,QAAQ;MACjBW,OAAO,EAAE,KAAK;MACdC,OAAO,EAAE;QACP,cAAc,EAAE,kBAAkB;QAClCC,MAAM,EAAE;MACV;IACF,CAAC,CAAC;IAEF,IAAI,CAACC,eAAe,CAAC,CA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