react-native-google-mobile-ads 8.1.1 → 8.1.2

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 (237) hide show
  1. package/android/src/main/java/io/invertase/googlemobileads/ReactNativeGoogleMobileAdsAdHelper.kt +17 -42
  2. package/lib/commonjs/AdEventType.js +1 -4
  3. package/lib/commonjs/AdEventType.js.map +1 -1
  4. package/lib/commonjs/AdsConsent.js +2 -25
  5. package/lib/commonjs/AdsConsent.js.map +1 -1
  6. package/lib/commonjs/AdsConsentDebugGeography.js +0 -3
  7. package/lib/commonjs/AdsConsentDebugGeography.js.map +1 -1
  8. package/lib/commonjs/AdsConsentPurposes.js +1 -4
  9. package/lib/commonjs/AdsConsentPurposes.js.map +1 -1
  10. package/lib/commonjs/AdsConsentSpecialFeatures.js +1 -4
  11. package/lib/commonjs/AdsConsentSpecialFeatures.js.map +1 -1
  12. package/lib/commonjs/AdsConsentStatus.js +0 -3
  13. package/lib/commonjs/AdsConsentStatus.js.map +1 -1
  14. package/lib/commonjs/BannerAdSize.js +1 -4
  15. package/lib/commonjs/BannerAdSize.js.map +1 -1
  16. package/lib/commonjs/GAMAdEventType.js +1 -4
  17. package/lib/commonjs/GAMAdEventType.js.map +1 -1
  18. package/lib/commonjs/MaxAdContentRating.js +1 -4
  19. package/lib/commonjs/MaxAdContentRating.js.map +1 -1
  20. package/lib/commonjs/MobileAds.js +0 -14
  21. package/lib/commonjs/MobileAds.js.map +1 -1
  22. package/lib/commonjs/RewardedAdEventType.js +1 -4
  23. package/lib/commonjs/RewardedAdEventType.js.map +1 -1
  24. package/lib/commonjs/TestIds.js +1 -2
  25. package/lib/commonjs/TestIds.js.map +1 -1
  26. package/lib/commonjs/ads/AppOpenAd.js +0 -14
  27. package/lib/commonjs/ads/AppOpenAd.js.map +1 -1
  28. package/lib/commonjs/ads/BannerAd.js +1 -6
  29. package/lib/commonjs/ads/BannerAd.js.map +1 -1
  30. package/lib/commonjs/ads/BaseAd.js +1 -20
  31. package/lib/commonjs/ads/BaseAd.js.map +1 -1
  32. package/lib/commonjs/ads/GAMBannerAd.js +1 -14
  33. package/lib/commonjs/ads/GAMBannerAd.js.map +1 -1
  34. package/lib/commonjs/ads/GAMInterstitialAd.js +0 -6
  35. package/lib/commonjs/ads/GAMInterstitialAd.js.map +1 -1
  36. package/lib/commonjs/ads/InterstitialAd.js +0 -14
  37. package/lib/commonjs/ads/InterstitialAd.js.map +1 -1
  38. package/lib/commonjs/ads/MobileAd.js +2 -55
  39. package/lib/commonjs/ads/MobileAd.js.map +1 -1
  40. package/lib/commonjs/ads/RewardedAd.js +0 -16
  41. package/lib/commonjs/ads/RewardedAd.js.map +1 -1
  42. package/lib/commonjs/ads/RewardedInterstitialAd.js +0 -16
  43. package/lib/commonjs/ads/RewardedInterstitialAd.js.map +1 -1
  44. package/lib/commonjs/common/Base64.js +4 -23
  45. package/lib/commonjs/common/Base64.js.map +1 -1
  46. package/lib/commonjs/common/MutatableParams.js +2 -12
  47. package/lib/commonjs/common/MutatableParams.js.map +1 -1
  48. package/lib/commonjs/common/ReferenceBase.js +2 -10
  49. package/lib/commonjs/common/ReferenceBase.js.map +1 -1
  50. package/lib/commonjs/common/deeps.js +1 -17
  51. package/lib/commonjs/common/deeps.js.map +1 -1
  52. package/lib/commonjs/common/id.js +7 -17
  53. package/lib/commonjs/common/id.js.map +1 -1
  54. package/lib/commonjs/common/index.js +2 -34
  55. package/lib/commonjs/common/index.js.map +1 -1
  56. package/lib/commonjs/common/path.js +9 -28
  57. package/lib/commonjs/common/path.js.map +1 -1
  58. package/lib/commonjs/common/promise.js +1 -7
  59. package/lib/commonjs/common/promise.js.map +1 -1
  60. package/lib/commonjs/common/serialize.js +4 -8
  61. package/lib/commonjs/common/serialize.js.map +1 -1
  62. package/lib/commonjs/common/validate.js +17 -44
  63. package/lib/commonjs/common/validate.js.map +1 -1
  64. package/lib/commonjs/declarations.d.js.map +1 -1
  65. package/lib/commonjs/hooks/useAppOpenAd.js +0 -6
  66. package/lib/commonjs/hooks/useAppOpenAd.js.map +1 -1
  67. package/lib/commonjs/hooks/useFullScreenAd.js +5 -16
  68. package/lib/commonjs/hooks/useFullScreenAd.js.map +1 -1
  69. package/lib/commonjs/hooks/useInterstitialAd.js +0 -6
  70. package/lib/commonjs/hooks/useInterstitialAd.js.map +1 -1
  71. package/lib/commonjs/hooks/useRewardedAd.js +0 -6
  72. package/lib/commonjs/hooks/useRewardedAd.js.map +1 -1
  73. package/lib/commonjs/hooks/useRewardedInterstitialAd.js +0 -6
  74. package/lib/commonjs/hooks/useRewardedInterstitialAd.js.map +1 -1
  75. package/lib/commonjs/index.js +1 -29
  76. package/lib/commonjs/index.js.map +1 -1
  77. package/lib/commonjs/internal/GoogleMobileAdsNativeEventEmitter.js +8 -20
  78. package/lib/commonjs/internal/GoogleMobileAdsNativeEventEmitter.js.map +1 -1
  79. package/lib/commonjs/internal/Module.js +2 -18
  80. package/lib/commonjs/internal/Module.js.map +1 -1
  81. package/lib/commonjs/internal/NativeError.js +2 -13
  82. package/lib/commonjs/internal/NativeError.js.map +1 -1
  83. package/lib/commonjs/internal/SharedEventEmitter.js +2 -3
  84. package/lib/commonjs/internal/SharedEventEmitter.js.map +1 -1
  85. package/lib/commonjs/internal/constants.js +1 -1
  86. package/lib/commonjs/internal/constants.js.map +1 -1
  87. package/lib/commonjs/internal/index.js +0 -5
  88. package/lib/commonjs/internal/index.js.map +1 -1
  89. package/lib/commonjs/internal/registry/nativeModule.js +13 -44
  90. package/lib/commonjs/internal/registry/nativeModule.js.map +1 -1
  91. package/lib/commonjs/types/AdEventListener.js.map +1 -1
  92. package/lib/commonjs/types/AdEventsListener.js.map +1 -1
  93. package/lib/commonjs/types/AdShowOptions.js.map +1 -1
  94. package/lib/commonjs/types/AdStates.js.map +1 -1
  95. package/lib/commonjs/types/AdapterStatus.js +3 -6
  96. package/lib/commonjs/types/AdapterStatus.js.map +1 -1
  97. package/lib/commonjs/types/AdsConsent.interface.js.map +1 -1
  98. package/lib/commonjs/types/AppEvent.js.map +1 -1
  99. package/lib/commonjs/types/BannerAdProps.js.map +1 -1
  100. package/lib/commonjs/types/GoogleMobileAdsNativeModule.js.map +1 -1
  101. package/lib/commonjs/types/MobileAd.interface.js.map +1 -1
  102. package/lib/commonjs/types/MobileAdsModule.interface.js.map +1 -1
  103. package/lib/commonjs/types/Module.interface.js.map +1 -1
  104. package/lib/commonjs/types/RequestConfiguration.js.map +1 -1
  105. package/lib/commonjs/types/RequestOptions.js.map +1 -1
  106. package/lib/commonjs/types/RewardedAdReward.js.map +1 -1
  107. package/lib/commonjs/types/index.js +0 -22
  108. package/lib/commonjs/types/index.js.map +1 -1
  109. package/lib/commonjs/validateAdRequestConfiguration.js +1 -13
  110. package/lib/commonjs/validateAdRequestConfiguration.js.map +1 -1
  111. package/lib/commonjs/validateAdRequestOptions.js +1 -29
  112. package/lib/commonjs/validateAdRequestOptions.js.map +1 -1
  113. package/lib/commonjs/validateAdShowOptions.js +1 -7
  114. package/lib/commonjs/validateAdShowOptions.js.map +1 -1
  115. package/lib/commonjs/version.js +1 -1
  116. package/lib/commonjs/version.js.map +1 -1
  117. package/lib/module/AdEventType.js +1 -1
  118. package/lib/module/AdEventType.js.map +1 -1
  119. package/lib/module/AdsConsent.js +2 -18
  120. package/lib/module/AdsConsent.js.map +1 -1
  121. package/lib/module/AdsConsentDebugGeography.js +0 -1
  122. package/lib/module/AdsConsentDebugGeography.js.map +1 -1
  123. package/lib/module/AdsConsentPurposes.js +1 -1
  124. package/lib/module/AdsConsentPurposes.js.map +1 -1
  125. package/lib/module/AdsConsentSpecialFeatures.js +1 -1
  126. package/lib/module/AdsConsentSpecialFeatures.js.map +1 -1
  127. package/lib/module/AdsConsentStatus.js +0 -1
  128. package/lib/module/AdsConsentStatus.js.map +1 -1
  129. package/lib/module/BannerAdSize.js +1 -1
  130. package/lib/module/BannerAdSize.js.map +1 -1
  131. package/lib/module/GAMAdEventType.js +1 -1
  132. package/lib/module/GAMAdEventType.js.map +1 -1
  133. package/lib/module/MaxAdContentRating.js +1 -1
  134. package/lib/module/MaxAdContentRating.js.map +1 -1
  135. package/lib/module/MobileAds.js +0 -8
  136. package/lib/module/MobileAds.js.map +1 -1
  137. package/lib/module/RewardedAdEventType.js +1 -1
  138. package/lib/module/RewardedAdEventType.js.map +1 -1
  139. package/lib/module/TestIds.js +1 -0
  140. package/lib/module/TestIds.js.map +1 -1
  141. package/lib/module/ads/AppOpenAd.js +1 -8
  142. package/lib/module/ads/AppOpenAd.js.map +1 -1
  143. package/lib/module/ads/BannerAd.js +2 -2
  144. package/lib/module/ads/BannerAd.js.map +1 -1
  145. package/lib/module/ads/BaseAd.js +1 -9
  146. package/lib/module/ads/BaseAd.js.map +1 -1
  147. package/lib/module/ads/GAMBannerAd.js +2 -7
  148. package/lib/module/ads/GAMBannerAd.js.map +1 -1
  149. package/lib/module/ads/GAMInterstitialAd.js +0 -3
  150. package/lib/module/ads/GAMInterstitialAd.js.map +1 -1
  151. package/lib/module/ads/InterstitialAd.js +1 -9
  152. package/lib/module/ads/InterstitialAd.js.map +1 -1
  153. package/lib/module/ads/MobileAd.js +3 -47
  154. package/lib/module/ads/MobileAd.js.map +1 -1
  155. package/lib/module/ads/RewardedAd.js +1 -10
  156. package/lib/module/ads/RewardedAd.js.map +1 -1
  157. package/lib/module/ads/RewardedInterstitialAd.js +1 -10
  158. package/lib/module/ads/RewardedInterstitialAd.js.map +1 -1
  159. package/lib/module/common/Base64.js +4 -17
  160. package/lib/module/common/Base64.js.map +1 -1
  161. package/lib/module/common/MutatableParams.js +3 -9
  162. package/lib/module/common/MutatableParams.js.map +1 -1
  163. package/lib/module/common/ReferenceBase.js +2 -8
  164. package/lib/module/common/ReferenceBase.js.map +1 -1
  165. package/lib/module/common/deeps.js +3 -15
  166. package/lib/module/common/deeps.js.map +1 -1
  167. package/lib/module/common/id.js +7 -16
  168. package/lib/module/common/id.js.map +1 -1
  169. package/lib/module/common/index.js +2 -11
  170. package/lib/module/common/index.js.map +1 -1
  171. package/lib/module/common/path.js +9 -19
  172. package/lib/module/common/path.js.map +1 -1
  173. package/lib/module/common/promise.js +3 -5
  174. package/lib/module/common/promise.js.map +1 -1
  175. package/lib/module/common/serialize.js +4 -4
  176. package/lib/module/common/serialize.js.map +1 -1
  177. package/lib/module/common/validate.js +17 -24
  178. package/lib/module/common/validate.js.map +1 -1
  179. package/lib/module/declarations.d.js.map +1 -1
  180. package/lib/module/hooks/useAppOpenAd.js +2 -1
  181. package/lib/module/hooks/useAppOpenAd.js.map +1 -1
  182. package/lib/module/hooks/useFullScreenAd.js +5 -11
  183. package/lib/module/hooks/useFullScreenAd.js.map +1 -1
  184. package/lib/module/hooks/useInterstitialAd.js +2 -1
  185. package/lib/module/hooks/useInterstitialAd.js.map +1 -1
  186. package/lib/module/hooks/useRewardedAd.js +2 -1
  187. package/lib/module/hooks/useRewardedAd.js.map +1 -1
  188. package/lib/module/hooks/useRewardedInterstitialAd.js +2 -1
  189. package/lib/module/hooks/useRewardedInterstitialAd.js.map +1 -1
  190. package/lib/module/index.js +3 -1
  191. package/lib/module/index.js.map +1 -1
  192. package/lib/module/internal/GoogleMobileAdsNativeEventEmitter.js +9 -18
  193. package/lib/module/internal/GoogleMobileAdsNativeEventEmitter.js.map +1 -1
  194. package/lib/module/internal/Module.js +3 -13
  195. package/lib/module/internal/Module.js.map +1 -1
  196. package/lib/module/internal/NativeError.js +2 -11
  197. package/lib/module/internal/NativeError.js.map +1 -1
  198. package/lib/module/internal/SharedEventEmitter.js +1 -0
  199. package/lib/module/internal/SharedEventEmitter.js.map +1 -1
  200. package/lib/module/internal/constants.js +1 -0
  201. package/lib/module/internal/constants.js.map +1 -1
  202. package/lib/module/internal/index.js +1 -0
  203. package/lib/module/internal/index.js.map +1 -1
  204. package/lib/module/internal/registry/nativeModule.js +13 -35
  205. package/lib/module/internal/registry/nativeModule.js.map +1 -1
  206. package/lib/module/types/AdEventListener.js.map +1 -1
  207. package/lib/module/types/AdEventsListener.js.map +1 -1
  208. package/lib/module/types/AdShowOptions.js.map +1 -1
  209. package/lib/module/types/AdStates.js.map +1 -1
  210. package/lib/module/types/AdapterStatus.js +1 -1
  211. package/lib/module/types/AdapterStatus.js.map +1 -1
  212. package/lib/module/types/AdsConsent.interface.js.map +1 -1
  213. package/lib/module/types/AppEvent.js.map +1 -1
  214. package/lib/module/types/BannerAdProps.js.map +1 -1
  215. package/lib/module/types/GoogleMobileAdsNativeModule.js.map +1 -1
  216. package/lib/module/types/MobileAd.interface.js.map +1 -1
  217. package/lib/module/types/MobileAdsModule.interface.js.map +1 -1
  218. package/lib/module/types/Module.interface.js.map +1 -1
  219. package/lib/module/types/RequestConfiguration.js.map +1 -1
  220. package/lib/module/types/RequestOptions.js.map +1 -1
  221. package/lib/module/types/RewardedAdReward.js.map +1 -1
  222. package/lib/module/types/index.js +1 -0
  223. package/lib/module/types/index.js.map +1 -1
  224. package/lib/module/validateAdRequestConfiguration.js +1 -10
  225. package/lib/module/validateAdRequestConfiguration.js.map +1 -1
  226. package/lib/module/validateAdRequestOptions.js +1 -27
  227. package/lib/module/validateAdRequestOptions.js.map +1 -1
  228. package/lib/module/validateAdShowOptions.js +1 -5
  229. package/lib/module/validateAdShowOptions.js.map +1 -1
  230. package/lib/module/version.js +1 -1
  231. package/lib/module/version.js.map +1 -1
  232. package/lib/typescript/common/Base64.d.ts +0 -1
  233. package/lib/typescript/index.d.ts +1 -1
  234. package/lib/typescript/version.d.ts +1 -1
  235. package/package.json +34 -29
  236. package/src/internal/registry/nativeModule.ts +2 -0
  237. package/src/version.ts +1 -1
@@ -1 +1 @@
1
- {"version":3,"sources":["validateAdRequestConfiguration.ts"],"names":["validateAdRequestConfiguration","requestConfiguration","out","Error","maxAdContentRating","MaxAdContentRating","G","PG","T","MA","tagForChildDirectedTreatment","tagForUnderAgeOfConsent","testDeviceIdentifiers"],"mappings":";;;;;;;AAiBA;;AACA;;AAlBA;AACA;AACA;AACA;AACA;AACA;AACA;AAC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KAAJ,CAAU,sEAAV,CAAN;AACD;;AAEDD,IAAAA,GAAG,CAACU,qBAAJ,GAA4BX,oBAAoB,CAACW,qBAAjD;AACD;;AAED,SAAOV,GAAP;AACD","sourcesContent":["/*\n * Copyright (c) 2016-present Invertase Limited & Contributors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this library except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n */\n\nimport { isPropertySet, isArray, isBoolean, isObject } from './common';\nimport { MaxAdContentRating } from './MaxAdContentRating';\nimport { RequestConfiguration } from './types/RequestConfiguration';\n\nexport function validateAdRequestConfiguration(requestConfiguration: RequestConfiguration) {\n const out: RequestConfiguration = {};\n\n if (!isObject(requestConfiguration)) {\n throw new Error(\"'requestConfiguration' expected an object value\");\n }\n\n if (requestConfiguration.maxAdContentRating) {\n if (\n requestConfiguration.maxAdContentRating !== MaxAdContentRating.G &&\n requestConfiguration.maxAdContentRating !== MaxAdContentRating.PG &&\n requestConfiguration.maxAdContentRating !== MaxAdContentRating.T &&\n requestConfiguration.maxAdContentRating !== MaxAdContentRating.MA\n ) {\n throw new Error(\n \"'requestConfiguration.maxAdContentRating' expected on of MaxAdContentRating.G, MaxAdContentRating.PG, MaxAdContentRating.T or MaxAdContentRating.MA\",\n );\n }\n\n out.maxAdContentRating = requestConfiguration.maxAdContentRating;\n }\n\n if (isPropertySet(requestConfiguration, 'tagForChildDirectedTreatment')) {\n if (!isBoolean(requestConfiguration.tagForChildDirectedTreatment)) {\n throw new Error(\n \"'requestConfiguration.tagForChildDirectedTreatment' expected a boolean value\",\n );\n }\n\n out.tagForChildDirectedTreatment = requestConfiguration.tagForChildDirectedTreatment;\n }\n\n if (isPropertySet(requestConfiguration, 'tagForUnderAgeOfConsent')) {\n if (!isBoolean(requestConfiguration.tagForUnderAgeOfConsent)) {\n throw new Error(\"'requestConfiguration.tagForUnderAgeOfConsent' expected a boolean value\");\n }\n\n out.tagForUnderAgeOfConsent = requestConfiguration.tagForUnderAgeOfConsent;\n }\n\n if (isPropertySet(requestConfiguration, 'testDeviceIdentifiers')) {\n if (!isArray(requestConfiguration.testDeviceIdentifiers)) {\n throw new Error(\"'requestConfiguration.testDeviceIdentifiers' expected an array value\");\n }\n\n out.testDeviceIdentifiers = requestConfiguration.testDeviceIdentifiers;\n }\n\n return out;\n}\n"]}
1
+ {"version":3,"names":["validateAdRequestConfiguration","requestConfiguration","out","isObject","Error","maxAdContentRating","MaxAdContentRating","G","PG","T","MA","isPropertySet","isBoolean","tagForChildDirectedTreatment","tagForUnderAgeOfConsent","isArray","testDeviceIdentifiers"],"sources":["validateAdRequestConfiguration.ts"],"sourcesContent":["/*\n * Copyright (c) 2016-present Invertase Limited & Contributors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this library except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n */\n\nimport { isPropertySet, isArray, isBoolean, isObject } from './common';\nimport { MaxAdContentRating } from './MaxAdContentRating';\nimport { RequestConfiguration } from './types/RequestConfiguration';\n\nexport function validateAdRequestConfiguration(requestConfiguration: RequestConfiguration) {\n const out: RequestConfiguration = {};\n\n if (!isObject(requestConfiguration)) {\n throw new Error(\"'requestConfiguration' expected an object value\");\n }\n\n if (requestConfiguration.maxAdContentRating) {\n if (\n requestConfiguration.maxAdContentRating !== MaxAdContentRating.G &&\n requestConfiguration.maxAdContentRating !== MaxAdContentRating.PG &&\n requestConfiguration.maxAdContentRating !== MaxAdContentRating.T &&\n requestConfiguration.maxAdContentRating !== MaxAdContentRating.MA\n ) {\n throw new Error(\n \"'requestConfiguration.maxAdContentRating' expected on of MaxAdContentRating.G, MaxAdContentRating.PG, MaxAdContentRating.T or MaxAdContentRating.MA\",\n );\n }\n\n out.maxAdContentRating = requestConfiguration.maxAdContentRating;\n }\n\n if (isPropertySet(requestConfiguration, 'tagForChildDirectedTreatment')) {\n if (!isBoolean(requestConfiguration.tagForChildDirectedTreatment)) {\n throw new Error(\n \"'requestConfiguration.tagForChildDirectedTreatment' expected a boolean value\",\n );\n }\n\n out.tagForChildDirectedTreatment = requestConfiguration.tagForChildDirectedTreatment;\n }\n\n if (isPropertySet(requestConfiguration, 'tagForUnderAgeOfConsent')) {\n if (!isBoolean(requestConfiguration.tagForUnderAgeOfConsent)) {\n throw new Error(\"'requestConfiguration.tagForUnderAgeOfConsent' expected a boolean value\");\n }\n\n out.tagForUnderAgeOfConsent = requestConfiguration.tagForUnderAgeOfConsent;\n }\n\n if (isPropertySet(requestConfiguration, 'testDeviceIdentifiers')) {\n if (!isArray(requestConfiguration.testDeviceIdentifiers)) {\n throw new Error(\"'requestConfiguration.testDeviceIdentifiers' expected an array value\");\n }\n\n out.testDeviceIdentifiers = requestConfiguration.testDeviceIdentifiers;\n }\n\n return out;\n}\n"],"mappings":";;;;;;AAiBA;AACA;AAlBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAMO,SAASA,8BAA8B,CAACC,oBAA0C,EAAE;EACzF,MAAMC,GAAyB,GAAG,CAAC,CAAC;EAEpC,IAAI,CAAC,IAAAC,gBAAQ,EAACF,oBAAoB,CAAC,EAAE;IACnC,MAAM,IAAIG,KAAK,CAAC,iDAAiD,CAAC;EACpE;EAEA,IAAIH,oBAAoB,CAACI,kBAAkB,EAAE;IAC3C,IACEJ,oBAAoB,CAACI,kBAAkB,KAAKC,sCAAkB,CAACC,CAAC,IAChEN,oBAAoB,CAACI,kBAAkB,KAAKC,sCAAkB,CAACE,EAAE,IACjEP,oBAAoB,CAACI,kBAAkB,KAAKC,sCAAkB,CAACG,CAAC,IAChER,oBAAoB,CAACI,kBAAkB,KAAKC,sCAAkB,CAACI,EAAE,EACjE;MACA,MAAM,IAAIN,KAAK,CACb,qJAAqJ,CACtJ;IACH;IAEAF,GAAG,CAACG,kBAAkB,GAAGJ,oBAAoB,CAACI,kBAAkB;EAClE;EAEA,IAAI,IAAAM,qBAAa,EAACV,oBAAoB,EAAE,8BAA8B,CAAC,EAAE;IACvE,IAAI,CAAC,IAAAW,iBAAS,EAACX,oBAAoB,CAACY,4BAA4B,CAAC,EAAE;MACjE,MAAM,IAAIT,KAAK,CACb,8EAA8E,CAC/E;IACH;IAEAF,GAAG,CAACW,4BAA4B,GAAGZ,oBAAoB,CAACY,4BAA4B;EACtF;EAEA,IAAI,IAAAF,qBAAa,EAACV,oBAAoB,EAAE,yBAAyB,CAAC,EAAE;IAClE,IAAI,CAAC,IAAAW,iBAAS,EAACX,oBAAoB,CAACa,uBAAuB,CAAC,EAAE;MAC5D,MAAM,IAAIV,KAAK,CAAC,yEAAyE,CAAC;IAC5F;IAEAF,GAAG,CAACY,uBAAuB,GAAGb,oBAAoB,CAACa,uBAAuB;EAC5E;EAEA,IAAI,IAAAH,qBAAa,EAACV,oBAAoB,EAAE,uBAAuB,CAAC,EAAE;IAChE,IAAI,CAAC,IAAAc,eAAO,EAACd,oBAAoB,CAACe,qBAAqB,CAAC,EAAE;MACxD,MAAM,IAAIZ,KAAK,CAAC,sEAAsE,CAAC;IACzF;IAEAF,GAAG,CAACc,qBAAqB,GAAGf,oBAAoB,CAACe,qBAAqB;EACxE;EAEA,OAAOd,GAAG;AACZ"}
@@ -4,9 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.validateAdRequestOptions = validateAdRequestOptions;
7
-
8
7
  var _common = require("./common");
9
-
10
8
  /*
11
9
  * Copyright (c) 2016-present Invertase Limited & Contributors
12
10
  *
@@ -23,114 +21,88 @@ var _common = require("./common");
23
21
  * limitations under the License.
24
22
  *
25
23
  */
24
+
26
25
  function validateAdRequestOptions(options) {
27
26
  const out = {};
28
-
29
27
  if ((0, _common.isUndefined)(options)) {
30
28
  return out;
31
29
  }
32
-
33
30
  if (!(0, _common.isObject)(options)) {
34
31
  throw new Error("'options' expected an object value");
35
32
  }
36
-
37
33
  if ((0, _common.isPropertySet)(options, 'requestNonPersonalizedAdsOnly')) {
38
34
  if (!(0, _common.isBoolean)(options.requestNonPersonalizedAdsOnly)) {
39
35
  throw new Error("'options.requestNonPersonalizedAdsOnly' expected a boolean value");
40
36
  }
41
-
42
37
  out.requestNonPersonalizedAdsOnly = options.requestNonPersonalizedAdsOnly;
43
38
  }
44
-
45
39
  if (options.networkExtras) {
46
40
  if (!(0, _common.isObject)(options.networkExtras)) {
47
41
  throw new Error("'options.networkExtras' expected an object of key/value pairs");
48
42
  }
49
-
50
43
  Object.entries(options.networkExtras).forEach(_ref => {
51
44
  let [key, value] = _ref;
52
-
53
45
  if (!(0, _common.isString)(value)) {
54
46
  throw new Error(`'options.networkExtras' expected a string value for object key "${key}"`);
55
47
  }
56
48
  });
57
49
  out.networkExtras = options.networkExtras;
58
50
  }
59
-
60
51
  if (options.keywords) {
61
52
  if (!(0, _common.isArray)(options.keywords)) {
62
53
  throw new Error("'options.keywords' expected an array containing string values");
63
54
  }
64
-
65
55
  for (let i = 0; i < options.keywords.length; i++) {
66
56
  const keyword = options.keywords[i];
67
-
68
57
  if (!(0, _common.isString)(keyword)) {
69
58
  throw new Error("'options.keywords' expected an array containing string values");
70
59
  }
71
60
  }
72
-
73
61
  out.keywords = options.keywords;
74
62
  }
75
-
76
63
  if (options.contentUrl) {
77
64
  if (!(0, _common.isString)(options.contentUrl)) {
78
65
  throw new Error("'options.contentUrl' expected a string value");
79
66
  }
80
-
81
67
  if (!(0, _common.isValidUrl)(options.contentUrl)) {
82
68
  throw new Error("'options.contentUrl' expected a valid HTTP or HTTPS url.");
83
69
  }
84
-
85
70
  if (options.contentUrl.length > 512) {
86
71
  throw new Error("'options.contentUrl' maximum length of a content URL is 512 characters.");
87
72
  }
88
-
89
73
  out.contentUrl = options.contentUrl;
90
74
  }
91
-
92
75
  if (options.requestAgent) {
93
76
  if (!(0, _common.isString)(options.requestAgent)) {
94
77
  throw new Error("'options.requestAgent' expected a string value");
95
78
  }
96
-
97
79
  out.requestAgent = options.requestAgent;
98
80
  }
99
-
100
81
  if (options.serverSideVerificationOptions) {
101
82
  if (!(0, _common.isObject)(options.serverSideVerificationOptions)) {
102
83
  throw new Error("'options.serverSideVerificationOptions' expected an object of key/value pairs");
103
84
  }
104
-
105
85
  const ssvOptions = options.serverSideVerificationOptions;
106
-
107
86
  if (ssvOptions.userId && !(0, _common.isString)(ssvOptions.userId)) {
108
87
  throw new Error("'options.serverSideVerificationOptions.userId' expected a string value");
109
88
  }
110
-
111
89
  if (ssvOptions.customData && !(0, _common.isString)(ssvOptions.customData)) {
112
90
  throw new Error("'options.serverSideVerificationOptions.customData' expected a string value");
113
91
  }
114
-
115
92
  out.serverSideVerificationOptions = options.serverSideVerificationOptions;
116
93
  }
117
-
118
94
  if (options.customTargeting) {
119
95
  if (!(0, _common.isObject)(options.customTargeting)) {
120
96
  throw new Error("'options.customTargeting' expected an object of key/value pairs");
121
97
  }
122
-
123
98
  out.customTargeting = options.customTargeting;
124
99
  }
125
-
126
100
  if (options.publisherProvidedId) {
127
101
  if (!(0, _common.isString)(options.publisherProvidedId)) {
128
102
  throw new Error("'options.publisherProvidedId' expected a string value");
129
103
  }
130
-
131
104
  out.publisherProvidedId = options.publisherProvidedId;
132
105
  }
133
-
134
106
  return out;
135
107
  }
136
108
  //# sourceMappingURL=validateAdRequestOptions.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["validateAdRequestOptions.ts"],"names":["validateAdRequestOptions","options","out","Error","requestNonPersonalizedAdsOnly","networkExtras","Object","entries","forEach","key","value","keywords","i","length","keyword","contentUrl","requestAgent","serverSideVerificationOptions","ssvOptions","userId","customData","customTargeting","publisherProvidedId"],"mappings":";;;;;;;AAiBA;;AAjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAaO,SAASA,wBAAT,CAAkCC,OAAlC,EAA4D;AACjE,QAAMC,GAAmB,GAAG,EAA5B;;AAEA,MAAI,yBAAYD,OAAZ,CAAJ,EAA0B;AACxB,WAAOC,GAAP;AACD;;AAED,MAAI,CAAC,sBAASD,OAAT,CAAL,EAAwB;AACtB,UAAM,IAAIE,KAAJ,CAAU,oCAAV,CAAN;AACD;;AAED,MAAI,2BAAcF,OAAd,EAAuB,+BAAvB,CAAJ,EAA6D;AAC3D,QAAI,CAAC,uBAAUA,OAAO,CAACG,6BAAlB,CAAL,EAAuD;AACrD,YAAM,IAAID,KAAJ,CAAU,kEAAV,CAAN;AACD;;AAEDD,IAAAA,GAAG,CAACE,6BAAJ,GAAoCH,OAAO,CAACG,6BAA5C;AACD;;AAED,MAAIH,OAAO,CAACI,aAAZ,EAA2B;AACzB,QAAI,CAAC,sBAASJ,OAAO,CAACI,aAAjB,CAAL,EAAsC;AACpC,YAAM,IAAIF,KAAJ,CAAU,+DAAV,CAAN;AACD;;AAEDG,IAAAA,MAAM,CAACC,OAAP,CAAeN,OAAO,CAACI,aAAvB,EAAsCG,OAAtC,CAA8C,QAAkB;AAAA,UAAjB,CAACC,GAAD,EAAMC,KAAN,CAAiB;;AAC9D,UAAI,CAAC,sBAASA,KAAT,CAAL,EAAsB;AACpB,cAAM,IAAIP,KAAJ,CAAW,mEAAkEM,GAAI,GAAjF,CAAN;AACD;AACF,KAJD;AAMAP,IAAAA,GAAG,CAACG,aAAJ,GAAoBJ,OAAO,CAACI,aAA5B;AACD;;AAED,MAAIJ,OAAO,CAACU,QAAZ,EAAsB;AACpB,QAAI,CAAC,qBAAQV,OAAO,CAACU,Q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AAGD;;AAED,UAAMe,UAAU,GAAGjB,OAAO,CAACgB,6BAA3B;;AAEA,QAAIC,UAAU,CAACC,MAAX,IAAqB,CAAC,sBAASD,UAAU,CAACC,MAApB,CAA1B,EAAuD;AACrD,YAAM,IAAIhB,KAAJ,CAAU,wEAAV,CAAN;AACD;;AAED,QAAIe,UAAU,CAACE,UAAX,IAAyB,CAAC,sBAASF,UAAU,CAACE,UAApB,CAA9B,EAA+D;AAC7D,YAAM,IAAIjB,KAAJ,CAAU,4EAAV,CAAN;AACD;;AAEDD,IAAAA,GAAG,CAACe,6BAAJ,GAAoChB,OAAO,CAACgB,6BAA5C;AACD;;AAED,MAAIhB,OAAO,CAACoB,eAAZ,EAA6B;AAC3B,QAAI,CAAC,sBAASpB,OAAO,CAACoB,eAAjB,CAAL,EAAwC;AACtC,YAAM,IAAIlB,KAAJ,CAAU,iEAAV,CAAN;AACD;;AACDD,IAAAA,GAAG,CAACmB,eAAJ,GAAsBpB,OAAO,CAACoB,eAA9B;AACD;;AAED,MAAIpB,OAAO,CAACqB,mBAAZ,EAAiC;AAC/B,QAAI,CAAC,sBAASrB,OAAO,CAACqB,mBAAjB,CAAL,EAA4C;AAC1C,YAAM,IAAInB,KAAJ,CAAU,uDAAV,CAAN;AACD;;AACDD,IAAAA,GAAG,CAACoB,mBAAJ,GAA0BrB,OAAO,CAACqB,mBAAlC;AACD;;AAED,SAAOpB,GAAP;AACD","sourcesContent":["/*\n * Copyright (c) 2016-present Invertase Limited & Contributors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this library except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n */\n\nimport {\n isPropertySet,\n isArray,\n isBoolean,\n isObject,\n isString,\n isUndefined,\n isValidUrl,\n} from './common';\nimport { RequestOptions } from './types/RequestOptions';\n\nexport function validateAdRequestOptions(options?: RequestOptions) {\n const out: RequestOptions = {};\n\n if (isUndefined(options)) {\n return out;\n }\n\n if (!isObject(options)) {\n throw new Error(\"'options' expected an object value\");\n }\n\n if (isPropertySet(options, 'requestNonPersonalizedAdsOnly')) {\n if (!isBoolean(options.requestNonPersonalizedAdsOnly)) {\n throw new Error(\"'options.requestNonPersonalizedAdsOnly' expected a boolean value\");\n }\n\n out.requestNonPersonalizedAdsOnly = options.requestNonPersonalizedAdsOnly;\n }\n\n if (options.networkExtras) {\n if (!isObject(options.networkExtras)) {\n throw new Error(\"'options.networkExtras' expected an object of key/value pairs\");\n }\n\n Object.entries(options.networkExtras).forEach(([key, value]) => {\n if (!isString(value)) {\n throw new Error(`'options.networkExtras' expected a string value for object key \"${key}\"`);\n }\n });\n\n out.networkExtras = options.networkExtras;\n }\n\n if (options.keywords) {\n if (!isArray(options.keywords)) {\n throw new Error(\"'options.keywords' expected an array containing string values\");\n }\n\n for (let i = 0; i < options.keywords.length; i++) {\n const keyword = options.keywords[i];\n\n if (!isString(keyword)) {\n throw new Error(\"'options.keywords' expected an array containing string values\");\n }\n }\n\n out.keywords = options.keywords;\n }\n\n if (options.contentUrl) {\n if (!isString(options.contentUrl)) {\n throw new Error(\"'options.contentUrl' expected a string value\");\n }\n\n if (!isValidUrl(options.contentUrl)) {\n throw new Error(\"'options.contentUrl' expected a valid HTTP or HTTPS url.\");\n }\n\n if (options.contentUrl.length > 512) {\n throw new Error(\"'options.contentUrl' maximum length of a content URL is 512 characters.\");\n }\n\n out.contentUrl = options.contentUrl;\n }\n\n if (options.requestAgent) {\n if (!isString(options.requestAgent)) {\n throw new Error(\"'options.requestAgent' expected a string value\");\n }\n\n out.requestAgent = options.requestAgent;\n }\n\n if (options.serverSideVerificationOptions) {\n if (!isObject(options.serverSideVerificationOptions)) {\n throw new Error(\n \"'options.serverSideVerificationOptions' expected an object of key/value pairs\",\n );\n }\n\n const ssvOptions = options.serverSideVerificationOptions;\n\n if (ssvOptions.userId && !isString(ssvOptions.userId)) {\n throw new Error(\"'options.serverSideVerificationOptions.userId' expected a string value\");\n }\n\n if (ssvOptions.customData && !isString(ssvOptions.customData)) {\n throw new Error(\"'options.serverSideVerificationOptions.customData' expected a string value\");\n }\n\n out.serverSideVerificationOptions = options.serverSideVerificationOptions;\n }\n\n if (options.customTargeting) {\n if (!isObject(options.customTargeting)) {\n throw new Error(\"'options.customTargeting' expected an object of key/value pairs\");\n }\n out.customTargeting = options.customTargeting;\n }\n\n if (options.publisherProvidedId) {\n if (!isString(options.publisherProvidedId)) {\n throw new Error(\"'options.publisherProvidedId' expected a string value\");\n }\n out.publisherProvidedId = options.publisherProvidedId;\n }\n\n return out;\n}\n"]}
1
+ {"version":3,"names":["validateAdRequestOptions","options","out","isUndefined","isObject","Error","isPropertySet","isBoolean","requestNonPersonalizedAdsOnly","networkExtras","Object","entries","forEach","key","value","isString","keywords","isArray","i","length","keyword","contentUrl","isValidUrl","requestAgent","serverSideVerificationOptions","ssvOptions","userId","customData","customTargeting","publisherProvidedId"],"sources":["validateAdRequestOptions.ts"],"sourcesContent":["/*\n * Copyright (c) 2016-present Invertase Limited & Contributors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this library except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n */\n\nimport {\n isPropertySet,\n isArray,\n isBoolean,\n isObject,\n isString,\n isUndefined,\n isValidUrl,\n} from './common';\nimport { RequestOptions } from './types/RequestOptions';\n\nexport function validateAdRequestOptions(options?: RequestOptions) {\n const out: RequestOptions = {};\n\n if (isUndefined(options)) {\n return out;\n }\n\n if (!isObject(options)) {\n throw new Error(\"'options' expected an object value\");\n }\n\n if (isPropertySet(options, 'requestNonPersonalizedAdsOnly')) {\n if (!isBoolean(options.requestNonPersonalizedAdsOnly)) {\n throw new Error(\"'options.requestNonPersonalizedAdsOnly' expected a boolean value\");\n }\n\n out.requestNonPersonalizedAdsOnly = options.requestNonPersonalizedAdsOnly;\n }\n\n if (options.networkExtras) {\n if (!isObject(options.networkExtras)) {\n throw new Error(\"'options.networkExtras' expected an object of key/value pairs\");\n }\n\n Object.entries(options.networkExtras).forEach(([key, value]) => {\n if (!isString(value)) {\n throw new Error(`'options.networkExtras' expected a string value for object key \"${key}\"`);\n }\n });\n\n out.networkExtras = options.networkExtras;\n }\n\n if (options.keywords) {\n if (!isArray(options.keywords)) {\n throw new Error(\"'options.keywords' expected an array containing string values\");\n }\n\n for (let i = 0; i < options.keywords.length; i++) {\n const keyword = options.keywords[i];\n\n if (!isString(keyword)) {\n throw new Error(\"'options.keywords' expected an array containing string values\");\n }\n }\n\n out.keywords = options.keywords;\n }\n\n if (options.contentUrl) {\n if (!isString(options.contentUrl)) {\n throw new Error(\"'options.contentUrl' expected a string value\");\n }\n\n if (!isValidUrl(options.contentUrl)) {\n throw new Error(\"'options.contentUrl' expected a valid HTTP or HTTPS url.\");\n }\n\n if (options.contentUrl.length > 512) {\n throw new Error(\"'options.contentUrl' maximum length of a content URL is 512 characters.\");\n }\n\n out.contentUrl = options.contentUrl;\n }\n\n if (options.requestAgent) {\n if (!isString(options.requestAgent)) {\n throw new Error(\"'options.requestAgent' expected a string value\");\n }\n\n out.requestAgent = options.requestAgent;\n }\n\n if (options.serverSideVerificationOptions) {\n if (!isObject(options.serverSideVerificationOptions)) {\n throw new Error(\n \"'options.serverSideVerificationOptions' expected an object of key/value pairs\",\n );\n }\n\n const ssvOptions = options.serverSideVerificationOptions;\n\n if (ssvOptions.userId && !isString(ssvOptions.userId)) {\n throw new Error(\"'options.serverSideVerificationOptions.userId' expected a string value\");\n }\n\n if (ssvOptions.customData && !isString(ssvOptions.customData)) {\n throw new Error(\"'options.serverSideVerificationOptions.customData' expected a string value\");\n }\n\n out.serverSideVerificationOptions = options.serverSideVerificationOptions;\n }\n\n if (options.customTargeting) {\n if (!isObject(options.customTargeting)) {\n throw new Error(\"'options.customTargeting' expected an object of key/value pairs\");\n }\n out.customTargeting = options.customTargeting;\n }\n\n if (options.publisherProvidedId) {\n if (!isString(options.publisherProvidedId)) {\n throw new Error(\"'options.publisherProvidedId' expected a string value\");\n }\n out.publisherProvidedId = options.publisherProvidedId;\n }\n\n return out;\n}\n"],"mappings":";;;;;;AAiBA;AAjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAaO,SAASA,wBAAwB,CAACC,OAAwB,EAAE;EACjE,MAAMC,GAAmB,GAAG,CAAC,CAAC;EAE9B,IAAI,IAAAC,mBAAW,EAACF,OAAO,CAAC,EAAE;IACxB,OAAOC,GAAG;EACZ;EAEA,IAAI,CAAC,IAAAE,gBAAQ,EAACH,OAAO,CAAC,EAAE;IACtB,MAAM,IAAII,KAAK,CAAC,oCAAoC,CAAC;EACvD;EAEA,IAAI,IAAAC,qBAAa,EAACL,OAAO,EAAE,+BAA+B,CAAC,EAAE;IAC3D,IAAI,CAAC,IAAAM,iBAAS,EAACN,OAAO,CAACO,6BAA6B,CAAC,EAAE;MACrD,MAAM,IAAIH,KAAK,CAAC,kEAAkE,CAAC;IACrF;IAEAH,GAAG,CAACM,6BAA6B,GAAGP,OAAO,CAACO,6BAA6B;EAC3E;EAEA,IAAIP,OAAO,CAACQ,aAAa,EAAE;IACzB,IAAI,CAAC,IAAAL,gBAAQ,EAACH,OAAO,CAACQ,aAAa,CAAC,EAAE;MACpC,MAAM,IAAIJ,KAAK,CAAC,+DAA+D,CAAC;IAClF;IAEAK,MAAM,CAACC,OAAO,CAACV,OAAO,CAACQ,aAAa,CAAC,CAACG,OAAO,CAAC,QAAkB;MAAA,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,OAAO,CAAC4B,mBAAmB;EACvD;EAEA,OAAO3B,GAAG;AACZ"}
@@ -4,9 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.validateAdShowOptions = validateAdShowOptions;
7
-
8
7
  var _common = require("./common");
9
-
10
8
  /*
11
9
  * Copyright (c) 2016-present Invertase Limited & Contributors
12
10
  *
@@ -23,25 +21,21 @@ var _common = require("./common");
23
21
  * limitations under the License.
24
22
  *
25
23
  */
24
+
26
25
  function validateAdShowOptions(options) {
27
26
  const out = {};
28
-
29
27
  if ((0, _common.isUndefined)(options)) {
30
28
  return out;
31
29
  }
32
-
33
30
  if (!(0, _common.isObject)(options)) {
34
31
  throw new Error("'options' expected an object value");
35
32
  }
36
-
37
33
  if ((0, _common.isPropertySet)(options, 'immersiveModeEnabled')) {
38
34
  if (!(0, _common.isBoolean)(options.immersiveModeEnabled)) {
39
35
  throw new Error("'options.immersiveModeEnabled' expected a boolean value");
40
36
  }
41
-
42
37
  out.immersiveModeEnabled = options.immersiveModeEnabled;
43
38
  }
44
-
45
39
  return out;
46
40
  }
47
41
  //# sourceMappingURL=validateAdShowOptions.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["validateAdShowOptions.ts"],"names":["validateAdShowOptions","options","out","Error","immersiveModeEnabled"],"mappings":";;;;;;;AAiBA;;AAjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAKO,SAASA,qBAAT,CAA+BC,OAA/B,EAAwD;AAC7D,QAAMC,GAAkB,GAAG,EAA3B;;AAEA,MAAI,yBAAYD,OAAZ,CAAJ,EAA0B;AACxB,WAAOC,GAAP;AACD;;AAED,MAAI,CAAC,sBAASD,OAAT,CAAL,EAAwB;AACtB,UAAM,IAAIE,KAAJ,CAAU,oCAAV,CAAN;AACD;;AAED,MAAI,2BAAcF,OAAd,EAAuB,sBAAvB,CAAJ,EAAoD;AAClD,QAAI,CAAC,uBAAUA,OAAO,CAACG,oBAAlB,CAAL,EAA8C;AAC5C,YAAM,IAAID,KAAJ,CAAU,yDAAV,CAAN;AACD;;AAEDD,IAAAA,GAAG,CAACE,oBAAJ,GAA2BH,OAAO,CAACG,oBAAnC;AACD;;AAED,SAAOF,GAAP;AACD","sourcesContent":["/*\n * Copyright (c) 2016-present Invertase Limited & Contributors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this library except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n */\n\nimport { isPropertySet, isBoolean, isObject, isUndefined } from './common';\nimport { AdShowOptions } from './types/AdShowOptions';\n\nexport function validateAdShowOptions(options?: AdShowOptions) {\n const out: AdShowOptions = {};\n\n if (isUndefined(options)) {\n return out;\n }\n\n if (!isObject(options)) {\n throw new Error(\"'options' expected an object value\");\n }\n\n if (isPropertySet(options, 'immersiveModeEnabled')) {\n if (!isBoolean(options.immersiveModeEnabled)) {\n throw new Error(\"'options.immersiveModeEnabled' expected a boolean value\");\n }\n\n out.immersiveModeEnabled = options.immersiveModeEnabled;\n }\n\n return out;\n}\n"]}
1
+ {"version":3,"names":["validateAdShowOptions","options","out","isUndefined","isObject","Error","isPropertySet","isBoolean","immersiveModeEnabled"],"sources":["validateAdShowOptions.ts"],"sourcesContent":["/*\n * Copyright (c) 2016-present Invertase Limited & Contributors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this library except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n */\n\nimport { isPropertySet, isBoolean, isObject, isUndefined } from './common';\nimport { AdShowOptions } from './types/AdShowOptions';\n\nexport function validateAdShowOptions(options?: AdShowOptions) {\n const out: AdShowOptions = {};\n\n if (isUndefined(options)) {\n return out;\n }\n\n if (!isObject(options)) {\n throw new Error(\"'options' expected an object value\");\n }\n\n if (isPropertySet(options, 'immersiveModeEnabled')) {\n if (!isBoolean(options.immersiveModeEnabled)) {\n throw new Error(\"'options.immersiveModeEnabled' expected a boolean value\");\n }\n\n out.immersiveModeEnabled = options.immersiveModeEnabled;\n }\n\n return out;\n}\n"],"mappings":";;;;;;AAiBA;AAjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAKO,SAASA,qBAAqB,CAACC,OAAuB,EAAE;EAC7D,MAAMC,GAAkB,GAAG,CAAC,CAAC;EAE7B,IAAI,IAAAC,mBAAW,EAACF,OAAO,CAAC,EAAE;IACxB,OAAOC,GAAG;EACZ;EAEA,IAAI,CAAC,IAAAE,gBAAQ,EAACH,OAAO,CAAC,EAAE;IACtB,MAAM,IAAII,KAAK,CAAC,oCAAoC,CAAC;EACvD;EAEA,IAAI,IAAAC,qBAAa,EAACL,OAAO,EAAE,sBAAsB,CAAC,EAAE;IAClD,IAAI,CAAC,IAAAM,iBAAS,EAACN,OAAO,CAACO,oBAAoB,CAAC,EAAE;MAC5C,MAAM,IAAIH,KAAK,CAAC,yDAAyD,CAAC;IAC5E;IAEAH,GAAG,CAACM,oBAAoB,GAAGP,OAAO,CAACO,oBAAoB;EACzD;EAEA,OAAON,GAAG;AACZ"}
@@ -5,6 +5,6 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.version = void 0;
7
7
  // Generated by genversion.
8
- const version = '8.1.1';
8
+ const version = '8.1.2';
9
9
  exports.version = version;
10
10
  //# sourceMappingURL=version.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["version.ts"],"names":["version"],"mappings":";;;;;;AAAA;AACO,MAAMA,OAAO,GAAG,OAAhB","sourcesContent":["// Generated by genversion.\nexport const version = '8.1.1';\n"]}
1
+ {"version":3,"names":["version"],"sources":["version.ts"],"sourcesContent":["// Generated by genversion.\nexport const version = '8.1.2';\n"],"mappings":";;;;;;AAAA;AACO,MAAMA,OAAO,GAAG,OAAO;AAAC"}
@@ -14,8 +14,8 @@
14
14
  * limitations under the License.
15
15
  *
16
16
  */
17
- export let AdEventType;
18
17
 
18
+ export let AdEventType;
19
19
  (function (AdEventType) {
20
20
  AdEventType["LOADED"] = "loaded";
21
21
  AdEventType["ERROR"] = "error";
@@ -1 +1 @@
1
- {"version":3,"sources":["AdEventType.ts"],"names":["AdEventType"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA,WAAYA,WAAZ;;WAAYA,W;AAAAA,EAAAA,W;AAAAA,EAAAA,W;AAAAA,EAAAA,W;AAAAA,EAAAA,W;AAAAA,EAAAA,W;GAAAA,W,KAAAA,W","sourcesContent":["/*\n * Copyright (c) 2016-present Invertase Limited & Contributors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this library except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n */\n\nexport enum AdEventType {\n /**\n * When an ad has loaded. At this point, the ad is ready to be shown to the user.\n *\n * #### Example\n *\n * ```js\n * import { AdEventType } from 'react-native-google-mobile-ads';\n *\n * advert.addEventListener(AdEventType.LOADED, () => {\n * advert.show();\n * });\n * ```\n */\n LOADED = 'loaded',\n\n /**\n * The ad has thrown an error. See the error parameter the listener callback for more information.\n *\n * #### Example\n *\n * ```js\n * import { AdEventType } from 'react-native-google-mobile-ads';\n *\n * advert.addEventListener(AdEventType.ERROR, (error) => {\n * console.log('Ad error:', error);\n * });\n * ```\n */\n ERROR = 'error',\n\n /**\n * The ad opened and is currently visible to the user. This event is fired after the `show()`\n * method has been called.\n */\n OPENED = 'opened',\n\n /**\n * The user clicked the advert.\n */\n CLICKED = 'clicked',\n\n /**\n * The user closed the ad and has returned back to your application.\n */\n CLOSED = 'closed',\n}\n"]}
1
+ {"version":3,"names":["AdEventType"],"sources":["AdEventType.ts"],"sourcesContent":["/*\n * Copyright (c) 2016-present Invertase Limited & Contributors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this library except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n */\n\nexport enum AdEventType {\n /**\n * When an ad has loaded. At this point, the ad is ready to be shown to the user.\n *\n * #### Example\n *\n * ```js\n * import { AdEventType } from 'react-native-google-mobile-ads';\n *\n * advert.addEventListener(AdEventType.LOADED, () => {\n * advert.show();\n * });\n * ```\n */\n LOADED = 'loaded',\n\n /**\n * The ad has thrown an error. See the error parameter the listener callback for more information.\n *\n * #### Example\n *\n * ```js\n * import { AdEventType } from 'react-native-google-mobile-ads';\n *\n * advert.addEventListener(AdEventType.ERROR, (error) => {\n * console.log('Ad error:', error);\n * });\n * ```\n */\n ERROR = 'error',\n\n /**\n * The ad opened and is currently visible to the user. This event is fired after the `show()`\n * method has been called.\n */\n OPENED = 'opened',\n\n /**\n * The user clicked the advert.\n */\n CLICKED = 'clicked',\n\n /**\n * The user closed the ad and has returned back to your application.\n */\n CLOSED = 'closed',\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,WAAYA,WAAW;AA8CtB,WA9CWA,WAAW;EAAXA,WAAW;EAAXA,WAAW;EAAXA,WAAW;EAAXA,WAAW;EAAXA,WAAW;AAAA,GAAXA,WAAW,KAAXA,WAAW"}
@@ -14,6 +14,7 @@
14
14
  * limitations under the License.
15
15
  *
16
16
  */
17
+
17
18
  import { TCModel, TCString } from '@iabtcf/core';
18
19
  import { NativeModules } from 'react-native';
19
20
  import { AdsConsentDebugGeography } from './AdsConsentDebugGeography';
@@ -24,68 +25,52 @@ const native = NativeModules.RNGoogleMobileAdsConsentModule;
24
25
  export const AdsConsent = {
25
26
  requestInfoUpdate() {
26
27
  let options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
27
-
28
28
  if (!isObject(options)) {
29
29
  throw new Error("AdsConsent.requestInfoUpdate(*) 'options' expected an object value.");
30
30
  }
31
-
32
31
  if (isPropertySet(options, 'debugGeography') && options.debugGeography !== AdsConsentDebugGeography.DISABLED && options.debugGeography !== AdsConsentDebugGeography.EEA && options.debugGeography !== AdsConsentDebugGeography.NOT_EEA) {
33
32
  throw new Error("AdsConsent.requestInfoUpdate(*) 'options.debugGeography' expected one of AdsConsentDebugGeography.DISABLED, AdsConsentDebugGeography.EEA or AdsConsentDebugGeography.NOT_EEA.");
34
33
  }
35
-
36
34
  if (isPropertySet(options, 'tagForUnderAgeOfConsent') && !isBoolean(options.tagForUnderAgeOfConsent)) {
37
35
  throw new Error("AdsConsent.requestInfoUpdate(*) 'options.tagForUnderAgeOfConsent' expected a boolean value.");
38
36
  }
39
-
40
37
  if (isPropertySet(options, 'testDeviceIdentifiers')) {
41
38
  if (!isArray(options.testDeviceIdentifiers)) {
42
39
  throw new Error("AdsConsent.requestInfoUpdate(*) 'options.testDeviceIdentifiers' expected an array of string values.");
43
40
  }
44
-
45
- for (const deviceId of (_options$testDeviceId = options.testDeviceIdentifiers) !== null && _options$testDeviceId !== void 0 ? _options$testDeviceId : []) {
46
- var _options$testDeviceId;
47
-
41
+ for (const deviceId of options.testDeviceIdentifiers ?? []) {
48
42
  if (!isString(deviceId)) {
49
43
  throw new Error("AdsConsent.requestInfoUpdate(*) 'options.testDeviceIdentifiers' expected an array of string values.");
50
44
  }
51
45
  }
52
46
  }
53
-
54
47
  return native.requestInfoUpdate(options);
55
48
  },
56
-
57
49
  showForm() {
58
50
  return native.showForm();
59
51
  },
60
-
61
52
  reset() {
62
53
  return native.reset();
63
54
  },
64
-
65
55
  getTCString() {
66
56
  return native.getTCString();
67
57
  },
68
-
69
58
  async getTCModel() {
70
59
  const tcString = await native.getTCString();
71
60
  return TCString.decode(tcString);
72
61
  },
73
-
74
62
  async getUserChoices() {
75
63
  const tcString = await native.getTCString();
76
64
  let tcModel;
77
-
78
65
  try {
79
66
  tcModel = TCString.decode(tcString);
80
67
  } catch (e) {
81
68
  tcModel = new TCModel();
82
-
83
69
  if (__DEV__) {
84
70
  // eslint-disable-next-line no-console
85
71
  console.warn(`Failed to decode tcString ${tcString}:`, e);
86
72
  }
87
73
  }
88
-
89
74
  return {
90
75
  activelyScanDeviceCharacteristicsForIdentification: tcModel.specialFeatureOptins.has(AdsConsentSpecialFeatures.ACTIVELY_SCAN_DEVICE_CHARACTERISTICS_FOR_IDENTIFICATION),
91
76
  applyMarketResearchToGenerateAudienceInsights: tcModel.purposeConsents.has(AdsConsentPurposes.APPLY_MARKET_RESEARCH_TO_GENERATE_AUDIENCE_INSIGHTS),
@@ -101,6 +86,5 @@ export const AdsConsent = {
101
86
  usePreciseGeolocationData: tcModel.specialFeatureOptins.has(AdsConsentSpecialFeatures.USE_PRECISE_GEOLOCATION_DATA)
102
87
  };
103
88
  }
104
-
105
89
  };
106
90
  //# sourceMappingURL=AdsConsent.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["AdsConsent.ts"],"names":["TCModel","TCString","NativeModules","AdsConsentDebugGeography","AdsConsentPurposes","AdsConsentSpecialFeatures","isPropertySet","isArray","isBoolean","isObject","isString","native","RNGoogleMobileAdsConsentModule","AdsConsent","requestInfoUpdate","options","Error","debugGeography","DISABLED","EEA","NOT_EEA","tagForUnderAgeOfConsent","testDeviceIdentifiers","deviceId","showForm","reset","getTCString","getTCModel","tcString","decode","getUserChoices","tcModel","e","__DEV__","console","warn","activelyScanDeviceCharacteristicsForIdentification","specialFeatureOptins","has","ACTIVELY_SCAN_DEVICE_CHARACTERISTICS_FOR_IDENTIFICATION","applyMarketResearchToGenerateAudienceInsights","purposeConsents","APPLY_MARKET_RESEARCH_TO_GENERATE_AUDIENCE_INSIGHTS","createAPersonalisedAdsProfile","CREATE_A_PERSONALISED_ADS_PROFILE","createAPersonalisedContentProfile","developAndImproveProducts","DEVELOP_AND_IMPROVE_PRODUCTS","measureAdPerformance","MEASURE_AD_PERFORMANCE","measureContentPerformance","MEASURE_CONTENT_PERFORMANCE","selectBasicAds","SELECT_BASIC_ADS","selectPersonalisedAds","SELECT_PERSONALISED_ADS","selectPersonalisedContent","SELECT_PERSONALISED_CONTENT","storeAndAccessInformationOnDevice","STORE_AND_ACCESS_INFORMATION_ON_DEVICE","usePreciseGeolocationData","USE_PRECISE_GEOLOCATION_DATA"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA,SAASA,OAAT,EAAkBC,QAAlB,QAAkC,cAAlC;AACA,SAASC,aAAT,QAA8B,cAA9B;AACA,SAASC,wBAAT,QAAyC,4BAAzC;AACA,SAASC,kBAAT,QAAmC,sBAAnC;AACA,SAASC,yBAAT,QAA0C,6BAA1C;AACA,SAASC,aAAT,EAAwBC,OAAxB,EAAiCC,SAAjC,EAA4CC,QAA5C,EAAsDC,QAAtD,QAAsE,UAAtE;AASA,MAAMC,MAAM,GAAGT,aAAa,CAACU,8BAA7B;AAEA,OAAO,MAAMC,UAA+B,GAAG;AAC7CC,EAAAA,iBAAiB,GAA+D;AAAA,QAA9D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EnB,OAAO,CAACU,eAAR,CAAwBH,GAAxB,CACzBlC,kBAAkB,CAAC+C,2BADM,CAjBtB;AAoBLC,MAAAA,cAAc,EAAErB,OAAO,CAACU,eAAR,CAAwBH,GAAxB,CAA4BlC,kBAAkB,CAACiD,gBAA/C,CApBX;AAqBLC,MAAAA,qBAAqB,EAAEvB,OAAO,CAACU,eAAR,CAAwBH,GAAxB,CACrBlC,kBAAkB,CAACmD,uBADE,CArBlB;AAwBLC,MAAAA,yBAAyB,EAAEzB,OAAO,CAACU,eAAR,CAAwBH,GAAxB,CACzBlC,kBAAkB,CAACqD,2BADM,CAxBtB;AA2BLC,MAAAA,iCAAiC,EAAE3B,OAAO,CAACU,eAAR,CAAwBH,GAAxB,CACjClC,kBAAkB,CAACuD,sCADc,CA3B9B;AA8BLC,MAAAA,yBAAyB,EAAE7B,OAAO,CAACM,oBAAR,CAA6BC,GAA7B,CACzBjC,yBAAyB,CAACwD,4BADD;AA9BtB,KAAP;AAkCD;;AAhH4C,CAAxC","sourcesContent":["/*\n * Copyright (c) 2016-present Invertase Limited & Contributors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this library except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n */\n\nimport { TCModel, TCString } from '@iabtcf/core';\nimport { NativeModules } from 'react-native';\nimport { AdsConsentDebugGeography } from './AdsConsentDebugGeography';\nimport { AdsConsentPurposes } from './AdsConsentPurposes';\nimport { AdsConsentSpecialFeatures } from './AdsConsentSpecialFeatures';\nimport { isPropertySet, isArray, isBoolean, isObject, isString } from './common';\nimport {\n AdsConsentFormResult,\n AdsConsentInfo,\n AdsConsentInfoOptions,\n AdsConsentInterface,\n AdsConsentUserChoices,\n} from './types/AdsConsent.interface';\n\nconst native = NativeModules.RNGoogleMobileAdsConsentModule;\n\nexport const AdsConsent: AdsConsentInterface = {\n requestInfoUpdate(options: AdsConsentInfoOptions = {}): Promise<AdsConsentInfo> {\n if (!isObject(options)) {\n throw new Error(\"AdsConsent.requestInfoUpdate(*) 'options' expected an object value.\");\n }\n\n if (\n isPropertySet(options, 'debugGeography') &&\n options.debugGeography !== AdsConsentDebugGeography.DISABLED &&\n options.debugGeography !== AdsConsentDebugGeography.EEA &&\n options.debugGeography !== AdsConsentDebugGeography.NOT_EEA\n ) {\n throw new Error(\n \"AdsConsent.requestInfoUpdate(*) 'options.debugGeography' expected one of AdsConsentDebugGeography.DISABLED, AdsConsentDebugGeography.EEA or AdsConsentDebugGeography.NOT_EEA.\",\n );\n }\n\n if (\n isPropertySet(options, 'tagForUnderAgeOfConsent') &&\n !isBoolean(options.tagForUnderAgeOfConsent)\n ) {\n throw new Error(\n \"AdsConsent.requestInfoUpdate(*) 'options.tagForUnderAgeOfConsent' expected a boolean value.\",\n );\n }\n\n if (isPropertySet(options, 'testDeviceIdentifiers')) {\n if (!isArray(options.testDeviceIdentifiers)) {\n throw new Error(\n \"AdsConsent.requestInfoUpdate(*) 'options.testDeviceIdentifiers' expected an array of string values.\",\n );\n }\n\n for (const deviceId of options.testDeviceIdentifiers ?? []) {\n if (!isString(deviceId)) {\n throw new Error(\n \"AdsConsent.requestInfoUpdate(*) 'options.testDeviceIdentifiers' expected an array of string values.\",\n );\n }\n }\n }\n\n return native.requestInfoUpdate(options);\n },\n\n showForm(): Promise<AdsConsentFormResult> {\n return native.showForm();\n },\n\n reset(): void {\n return native.reset();\n },\n\n getTCString(): Promise<string> {\n return native.getTCString();\n },\n\n async getTCModel(): Promise<TCModel> {\n const tcString = await native.getTCString();\n return TCString.decode(tcString);\n },\n\n async getUserChoices(): Promise<AdsConsentUserChoices> {\n const tcString = await native.getTCString();\n\n let tcModel: TCModel;\n\n try {\n tcModel = TCString.decode(tcString);\n } catch (e) {\n tcModel = new TCModel();\n\n if (__DEV__) {\n // eslint-disable-next-line no-console\n console.warn(`Failed to decode tcString ${tcString}:`, e);\n }\n }\n\n return {\n activelyScanDeviceCharacteristicsForIdentification: tcModel.specialFeatureOptins.has(\n AdsConsentSpecialFeatures.ACTIVELY_SCAN_DEVICE_CHARACTERISTICS_FOR_IDENTIFICATION,\n ),\n applyMarketResearchToGenerateAudienceInsights: tcModel.purposeConsents.has(\n AdsConsentPurposes.APPLY_MARKET_RESEARCH_TO_GENERATE_AUDIENCE_INSIGHTS,\n ),\n createAPersonalisedAdsProfile: tcModel.purposeConsents.has(\n AdsConsentPurposes.CREATE_A_PERSONALISED_ADS_PROFILE,\n ),\n createAPersonalisedContentProfile: tcModel.purposeConsents.has(\n AdsConsentPurposes.CREATE_A_PERSONALISED_ADS_PROFILE,\n ),\n developAndImproveProducts: tcModel.purposeConsents.has(\n AdsConsentPurposes.DEVELOP_AND_IMPROVE_PRODUCTS,\n ),\n measureAdPerformance: tcModel.purposeConsents.has(AdsConsentPurposes.MEASURE_AD_PERFORMANCE),\n measureContentPerformance: tcModel.purposeConsents.has(\n AdsConsentPurposes.MEASURE_CONTENT_PERFORMANCE,\n ),\n selectBasicAds: tcModel.purposeConsents.has(AdsConsentPurposes.SELECT_BASIC_ADS),\n selectPersonalisedAds: tcModel.purposeConsents.has(\n AdsConsentPurposes.SELECT_PERSONALISED_ADS,\n ),\n selectPersonalisedContent: tcModel.purposeConsents.has(\n AdsConsentPurposes.SELECT_PERSONALISED_CONTENT,\n ),\n storeAndAccessInformationOnDevice: tcModel.purposeConsents.has(\n AdsConsentPurposes.STORE_AND_ACCESS_INFORMATION_ON_DEVICE,\n ),\n usePreciseGeolocationData: tcModel.specialFeatureOptins.has(\n AdsConsentSpecialFeatures.USE_PRECISE_GEOLOCATION_DATA,\n ),\n };\n },\n};\n"]}
1
+ {"version":3,"names":["TCModel","TCString","NativeModules","AdsConsentDebugGeography","AdsConsentPurposes","AdsConsentSpecialFeatures","isPropertySet","isArray","isBoolean","isObject","isString","native","RNGoogleMobileAdsConsentModule","AdsConsent","requestInfoUpdate","options","Error","debugGeography","DISABLED","EEA","NOT_EEA","tagForUnderAgeOfConsent","testDeviceIdentifiers","deviceId","showForm","reset","getTCString","getTCModel","tcString","decode","getUserChoices","tcModel","e","__DEV__","console","warn","activelyScanDeviceCharacteristicsForIdentification","specialFeatureOptins","has","ACTIVELY_SCAN_DEVICE_CHARACTERISTICS_FOR_IDENTIFICATION","applyMarketResearchToGenerateAudienceInsights","purposeConsents","APPLY_MARKET_RESEARCH_TO_GENERATE_AUDIENCE_INSIGHTS","createAPersonalisedAdsProfile","CREATE_A_PERSONALISED_ADS_PROFILE","createAPersonalisedContentProfile","developAndImproveProducts","DEVELOP_AND_IMPROVE_PRODUCTS","measureAdPerformance","MEASURE_AD_PERFORMANCE","measureContentPerformance","MEASURE_CONTENT_PERFORMANCE","selectBasicAds","SELECT_BASIC_ADS","selectPersonalisedAds","SELECT_PERSONALISED_ADS","selectPersonalisedContent","SELECT_PERSONALISED_CONTENT","storeAndAccessInformationOnDevice","STORE_AND_ACCESS_INFORMATION_ON_DEVICE","usePreciseGeolocationData","USE_PRECISE_GEOLOCATION_DATA"],"sources":["AdsConsent.ts"],"sourcesContent":["/*\n * Copyright (c) 2016-present Invertase Limited & Contributors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this library except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n */\n\nimport { TCModel, TCString } from '@iabtcf/core';\nimport { NativeModules } from 'react-native';\nimport { AdsConsentDebugGeography } from './AdsConsentDebugGeography';\nimport { AdsConsentPurposes } from './AdsConsentPurposes';\nimport { AdsConsentSpecialFeatures } from './AdsConsentSpecialFeatures';\nimport { isPropertySet, isArray, isBoolean, isObject, isString } from './common';\nimport {\n AdsConsentFormResult,\n AdsConsentInfo,\n AdsConsentInfoOptions,\n AdsConsentInterface,\n AdsConsentUserChoices,\n} from './types/AdsConsent.interface';\n\nconst native = NativeModules.RNGoogleMobileAdsConsentModule;\n\nexport const AdsConsent: AdsConsentInterface = {\n requestInfoUpdate(options: AdsConsentInfoOptions = {}): Promise<AdsConsentInfo> {\n if (!isObject(options)) {\n throw new Error(\"AdsConsent.requestInfoUpdate(*) 'options' expected an object value.\");\n }\n\n if (\n isPropertySet(options, 'debugGeography') &&\n options.debugGeography !== AdsConsentDebugGeography.DISABLED &&\n options.debugGeography !== AdsConsentDebugGeography.EEA &&\n options.debugGeography !== AdsConsentDebugGeography.NOT_EEA\n ) {\n throw new Error(\n \"AdsConsent.requestInfoUpdate(*) 'options.debugGeography' expected one of AdsConsentDebugGeography.DISABLED, AdsConsentDebugGeography.EEA or AdsConsentDebugGeography.NOT_EEA.\",\n );\n }\n\n if (\n isPropertySet(options, 'tagForUnderAgeOfConsent') &&\n !isBoolean(options.tagForUnderAgeOfConsent)\n ) {\n throw new Error(\n \"AdsConsent.requestInfoUpdate(*) 'options.tagForUnderAgeOfConsent' expected a boolean value.\",\n );\n }\n\n if (isPropertySet(options, 'testDeviceIdentifiers')) {\n if (!isArray(options.testDeviceIdentifiers)) {\n throw new Error(\n \"AdsConsent.requestInfoUpdate(*) 'options.testDeviceIdentifiers' expected an array of string values.\",\n );\n }\n\n for (const deviceId of options.testDeviceIdentifiers ?? []) {\n if (!isString(deviceId)) {\n throw new Error(\n \"AdsConsent.requestInfoUpdate(*) 'options.testDeviceIdentifiers' expected an array of string values.\",\n );\n }\n }\n }\n\n return native.requestInfoUpdate(options);\n },\n\n showForm(): Promise<AdsConsentFormResult> {\n return native.showForm();\n },\n\n reset(): void {\n return native.reset();\n },\n\n getTCString(): Promise<string> {\n return native.getTCString();\n },\n\n async getTCModel(): Promise<TCModel> {\n const tcString = await native.getTCString();\n return TCString.decode(tcString);\n },\n\n async getUserChoices(): Promise<AdsConsentUserChoices> {\n const tcString = await native.getTCString();\n\n let tcModel: TCModel;\n\n try {\n tcModel = TCString.decode(tcString);\n } catch (e) {\n tcModel = new TCModel();\n\n if (__DEV__) {\n // eslint-disable-next-line no-console\n console.warn(`Failed to decode tcString ${tcString}:`, e);\n }\n }\n\n return {\n activelyScanDeviceCharacteristicsForIdentification: tcModel.specialFeatureOptins.has(\n AdsConsentSpecialFeatures.ACTIVELY_SCAN_DEVICE_CHARACTERISTICS_FOR_IDENTIFICATION,\n ),\n applyMarketResearchToGenerateAudienceInsights: tcModel.purposeConsents.has(\n AdsConsentPurposes.APPLY_MARKET_RESEARCH_TO_GENERATE_AUDIENCE_INSIGHTS,\n ),\n createAPersonalisedAdsProfile: tcModel.purposeConsents.has(\n AdsConsentPurposes.CREATE_A_PERSONALISED_ADS_PROFILE,\n ),\n createAPersonalisedContentProfile: tcModel.purposeConsents.has(\n AdsConsentPurposes.CREATE_A_PERSONALISED_ADS_PROFILE,\n ),\n developAndImproveProducts: tcModel.purposeConsents.has(\n AdsConsentPurposes.DEVELOP_AND_IMPROVE_PRODUCTS,\n ),\n measureAdPerformance: tcModel.purposeConsents.has(AdsConsentPurposes.MEASURE_AD_PERFORMANCE),\n measureContentPerformance: tcModel.purposeConsents.has(\n AdsConsentPurposes.MEASURE_CONTENT_PERFORMANCE,\n ),\n selectBasicAds: tcModel.purposeConsents.has(AdsConsentPurposes.SELECT_BASIC_ADS),\n selectPersonalisedAds: tcModel.purposeConsents.has(\n AdsConsentPurposes.SELECT_PERSONALISED_ADS,\n ),\n selectPersonalisedContent: tcModel.purposeConsents.has(\n AdsConsentPurposes.SELECT_PERSONALISED_CONTENT,\n ),\n storeAndAccessInformationOnDevice: tcModel.purposeConsents.has(\n AdsConsentPurposes.STORE_AND_ACCESS_INFORMATION_ON_DEVICE,\n ),\n usePreciseGeolocationData: tcModel.spec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vE;MACDC,6BAA6B,EAAEZ,OAAO,CAACU,eAAe,CAACH,GAAG,CACxDlC,kBAAkB,CAACwC,iCAAiC,CACrD;MACDC,iCAAiC,EAAEd,OAAO,CAACU,eAAe,CAACH,GAAG,CAC5DlC,kBAAkB,CAACwC,iCAAiC,CACrD;MACDE,yBAAyB,EAAEf,OAAO,CAACU,eAAe,CAACH,GAAG,CACpDlC,kBAAkB,CAAC2C,4BAA4B,CAChD;MACDC,oBAAoB,EAAEjB,OAAO,CAACU,eAAe,CAACH,GAAG,CAAClC,kBAAkB,CAAC6C,sBAAsB,CAAC;MAC5FC,yBAAyB,EAAEnB,OAAO,CAACU,eAAe,CAACH,GAAG,CACpDlC,kBAAkB,CAAC+C,2BAA2B,CAC/C;MACDC,cAAc,EAAErB,OAAO,CAACU,eAAe,CAACH,GAAG,CAAClC,kBAAkB,CAACiD,gBAAgB,CAAC;MAChFC,qBAAqB,EAAEvB,OAAO,CAACU,eAAe,CAACH,GAAG,CAChDlC,kBAAkB,CAACmD,uBAAuB,CAC3C;MACDC,yBAAyB,EAAEzB,OAAO,CAACU,eAAe,CAACH,GAAG,CACpDlC,kBAAkB,CAACqD,2BAA2B,CAC/C;MACDC,iCAAiC,EAAE3B,OAAO,CAACU,eAAe,CAACH,GAAG,CAC5DlC,kBAAkB,CAACuD,sCAAsC,CAC1D;MACDC,yBAAyB,EAAE7B,OAAO,CAACM,oBAAoB,CAACC,GAAG,CACzDjC,yBAAyB,CAACwD,4BAA4B;IAE1D,CAAC;EACH;AACF,CAAC"}
@@ -21,7 +21,6 @@
21
21
  * Used to set a mock location when testing the `AdsConsent` helper.
22
22
  */
23
23
  export let AdsConsentDebugGeography;
24
-
25
24
  (function (AdsConsentDebugGeography) {
26
25
  AdsConsentDebugGeography[AdsConsentDebugGeography["DISABLED"] = 0] = "DISABLED";
27
26
  AdsConsentDebugGeography[AdsConsentDebugGeography["EEA"] = 1] = "EEA";
@@ -1 +1 @@
1
- {"version":3,"sources":["AdsConsentDebugGeography.ts"],"names":["AdsConsentDebugGeography"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,WAAYA,wBAAZ;;WAAYA,wB;AAAAA,EAAAA,wB,CAAAA,wB;AAAAA,EAAAA,wB,CAAAA,wB;AAAAA,EAAAA,wB,CAAAA,wB;GAAAA,wB,KAAAA,wB","sourcesContent":["/*\n * Copyright (c) 2016-present Invertase Limited & Contributors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this library except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n */\n\n/**\n * AdsConsentDebugGeography enum.\n *\n * Used to set a mock location when testing the `AdsConsent` helper.\n */\nexport enum AdsConsentDebugGeography {\n /**\n * Disable any debug geography.\n */\n DISABLED = 0,\n\n /**\n * Sets the location to within the EEA.\n */\n EEA = 1,\n\n /**\n * Sets the location to outside of the EEA.\n */\n NOT_EEA = 2,\n}\n"]}
1
+ {"version":3,"names":["AdsConsentDebugGeography"],"sources":["AdsConsentDebugGeography.ts"],"sourcesContent":["/*\n * Copyright (c) 2016-present Invertase Limited & Contributors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this library except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n */\n\n/**\n * AdsConsentDebugGeography enum.\n *\n * Used to set a mock location when testing the `AdsConsent` helper.\n */\nexport enum AdsConsentDebugGeography {\n /**\n * Disable any debug geography.\n */\n DISABLED = 0,\n\n /**\n * Sets the location to within the EEA.\n */\n EEA = 1,\n\n /**\n * Sets the location to outside of the EEA.\n */\n NOT_EEA = 2,\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,WAAYA,wBAAwB;AAenC,WAfWA,wBAAwB;EAAxBA,wBAAwB,CAAxBA,wBAAwB;EAAxBA,wBAAwB,CAAxBA,wBAAwB;EAAxBA,wBAAwB,CAAxBA,wBAAwB;AAAA,GAAxBA,wBAAwB,KAAxBA,wBAAwB"}
@@ -22,8 +22,8 @@
22
22
  * https://github.com/InteractiveAdvertisingBureau/GDPR-Transparency-and-Consent-Framework
23
23
  *
24
24
  */
25
- export let AdsConsentPurposes;
26
25
 
26
+ export let AdsConsentPurposes;
27
27
  (function (AdsConsentPurposes) {
28
28
  AdsConsentPurposes[AdsConsentPurposes["STORE_AND_ACCESS_INFORMATION_ON_DEVICE"] = 1] = "STORE_AND_ACCESS_INFORMATION_ON_DEVICE";
29
29
  AdsConsentPurposes[AdsConsentPurposes["SELECT_BASIC_ADS"] = 2] = "SELECT_BASIC_ADS";
@@ -1 +1 @@
1
- {"version":3,"sources":["AdsConsentPurposes.ts"],"names":["AdsConsentPurposes"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA,WAAYA,kBAAZ;;WAAYA,kB;AAAAA,EAAAA,kB,CAAAA,kB;AAAAA,EAAAA,kB,CAAAA,kB;AAAAA,EAAAA,kB,CAAAA,kB;AAAAA,EAAAA,kB,CAAAA,kB;AAAAA,EAAAA,kB,CAAAA,kB;AAAAA,EAAAA,kB,CAAAA,kB;AAAAA,EAAAA,kB,CAAAA,kB;AAAAA,EAAAA,kB,CAAAA,kB;AAAAA,EAAAA,kB,CAAAA,kB;AAAAA,EAAAA,kB,CAAAA,kB;GAAAA,kB,KAAAA,kB","sourcesContent":["/*\n * Copyright (c) 2016-present Invertase Limited & Contributors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this library except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n *\n *\n *\n * The definitions in this document are copied from IAB's global vendor list.\n *\n * https://vendor-list.consensu.org/v2/vendor-list.json\n * https://github.com/InteractiveAdvertisingBureau/GDPR-Transparency-and-Consent-Framework\n *\n */\n\nexport enum AdsConsentPurposes {\n /**\n * Cookies, device identifiers, or other information can be stored or\n * accessed on your device for the purposes presented to you.\n *\n * Vendors can:\n * - Store and access information on the device such as cookies\n * and device identifiers presented to a user.\n */\n STORE_AND_ACCESS_INFORMATION_ON_DEVICE = 1,\n\n /**\n * Ads can be shown to you based on the content you’re viewing,\n * the app you’re using, your approximate location, or your device type.\n *\n * To do basic ad selection vendors can:\n * - Use real-time information about the context in which the ad will be shown,\n * to show the ad, including information about the content and the device, such as:\n * device type and capabilities, user agent, URL, IP address\n * - Use a user’s non-precise geolocation data\n * - Control the frequency of ads shown to a user.\n * - Sequence the order in which ads are shown to a user.\n * - Prevent an ad from serving in an unsuitable editorial (brand-unsafe) context\n *\n * Vendors cannot:\n * - Create a personalised ads profile using this information for the selection of\n * future ads without a separate legal basis to create a personalised ads profile.\n * - N.B. Non-precise means only an approximate location involving at least a radius\n * of 500 meters is permitted.\n */\n SELECT_BASIC_ADS = 2,\n\n /**\n * A profile can be built about you and your interests to show you personalised ads\n * that are relevant to you.\n *\n * To create a personalised ads profile vendors can:\n * - Collect information about a user, including a user's activity, interests,\n * demographic information, or location, to create or edit a user profile for use\n * in personalised advertising.\n * - Combine this information with other information previously collected,\n * including from across websites and apps, to create or edit a user profile\n * for use in personalised advertising.\n */\n CREATE_A_PERSONALISED_ADS_PROFILE = 3,\n\n /**\n * Personalised ads can be shown to you based on a profile about you.\n *\n * To select personalised ads vendors can:\n * - Select personalised ads based on a user profile or other historical user data,\n * including a user’s prior activity, interests, visits to sites or apps, location,\n * or demographic information.\n */\n SELECT_PERSONALISED_ADS = 4,\n\n /**\n * A profile can be built about you and your interests to show you personalised content\n * that is relevant to you.\n *\n * To create a personalised content profile vendors can:\n * - Collect information about a user, including a user's activity, interests, visits to\n * sites or apps, demographic information, or location, to create or edit a user profile\n * for personalising content.\n * - Combine this information with other information previously collected,\n * including from across websites and apps, to create or edit a user profile for use\n * in personalising content.\n */\n CREATE_A_PERSONALISED_CONTENT_PROFILE = 5,\n\n /**\n * Personalised content can be shown to you based on a profile about you.\n *\n * To select personalised content vendors can:\n * - Select personalised content based on a user profile or other historical user data,\n * including a user’s prior activity, interests, visits to sites or apps, location,\n * or demographic information.\n */\n SELECT_PERSONALISED_CONTENT = 6,\n\n /**\n * The performance and effectiveness of ads that you see or interact with can be measured.\n *\n * To measure ad performance vendors can:\n * - Measure whether and how ads were delivered to and interacted with by a user\n * - Provide reporting about ads including their effectiveness and performance\n * - Provide reporting about users who interacted with ads using data observed during\n * the course of the user's interaction with that ad\n * - Provide reporting to publishers about the ads displayed on their property\n * - Measure whether an ad is serving in a suitable editorial environment (brand-safe) context\n * - Determine the percentage of the ad that had the opportunity to be seen and\n * the duration of that opportunity\n * - Combine this information with other information previously collected,\n * including from across websites and apps\n *\n * Vendors cannot:\n * - Apply panel- or similarly-derived audience insights data to ad measurement data\n * without a Legal Basis to apply market research to generate audience insights (Purpose 9)\n */\n MEASURE_AD_PERFORMANCE = 7,\n\n /**\n * The performance and effectiveness of content that you see or interact with can be measured.\n *\n * To measure content performance vendors can:\n * - Measure and report on how content was delivered to and interacted with by users.\n * - Provide reporting, using directly measurable or known information, about users who\n * interacted with the content\n * - Combine this information with other information previously collected,\n * including from across websites and apps.\n *\n * Vendors cannot:\n * - Measure whether and how ads (including native ads) were delivered to and\n * interacted with by a user.\n * - Apply panel- or similarly derived audience insights data to ad measurement\n * data without a Legal Basis to apply market research to generate audience insights (Purpose 9)\n */\n MEASURE_CONTENT_PERFORMANCE = 8,\n\n /**\n * Market research can be used to learn more about the audiences who visit sites/apps and view ads.\n *\n * To apply market research to generate audience insights vendors can:\n * - Provide aggregate reporting to advertisers or their representatives about\n * the audiences reached by their ads, through panel-based and similarly derived insights.\n * - Provide aggregate reporting to publishers about the audiences that were served or\n * interacted with content and/or ads on their property by applying\n * panel-based and similarly derived insights.\n * - Associate offline data with an online user for the purposes of\n * market research to generate audience insights if vendors have declared to match and\n * combine offline data sources (Feature 1)\n * - Combine this information with other information previously collected including from\n * across websites and apps.\n *\n * Vendors cannot:\n * - Measure the performance and effectiveness of ads that a specific user was served or\n * interacted with, without a Legal Basis to measure ad performance.\n * - Measure which content a specific user was served and how they interacted with it,\n * without a Legal Basis to measure content performance.\n */\n APPLY_MARKET_RESEARCH_TO_GENERATE_AUDIENCE_INSIGHTS = 9,\n\n /**\n * Your data can be used to improve existing systems and software,\n * and to develop new products\n *\n * To develop new products and improve products vendors can:\n * - Use information to improve their existing products with new features and\n * to develop new products\n * - Create new models and algorithms through machine learning\n *\n * Vendors cannot:\n * - Conduct any other data processing operation allowed under\n * a different purpose under this purpose\n */\n DEVELOP_AND_IMPROVE_PRODUCTS = 10,\n}\n"]}
1
+ {"version":3,"names":["AdsConsentPurposes"],"sources":["AdsConsentPurposes.ts"],"sourcesContent":["/*\n * Copyright (c) 2016-present Invertase Limited & Contributors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this library except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n *\n *\n *\n * The definitions in this document are copied from IAB's global vendor list.\n *\n * https://vendor-list.consensu.org/v2/vendor-list.json\n * https://github.com/InteractiveAdvertisingBureau/GDPR-Transparency-and-Consent-Framework\n *\n */\n\nexport enum AdsConsentPurposes {\n /**\n * Cookies, device identifiers, or other information can be stored or\n * accessed on your device for the purposes presented to you.\n *\n * Vendors can:\n * - Store and access information on the device such as cookies\n * and device identifiers presented to a user.\n */\n STORE_AND_ACCESS_INFORMATION_ON_DEVICE = 1,\n\n /**\n * Ads can be shown to you based on the content you’re viewing,\n * the app you’re using, your approximate location, or your device type.\n *\n * To do basic ad selection vendors can:\n * - Use real-time information about the context in which the ad will be shown,\n * to show the ad, including information about the content and the device, such as:\n * device type and capabilities, user agent, URL, IP address\n * - Use a user’s non-precise geolocation data\n * - Control the frequency of ads shown to a user.\n * - Sequence the order in which ads are shown to a user.\n * - Prevent an ad from serving in an unsuitable editorial (brand-unsafe) context\n *\n * Vendors cannot:\n * - Create a personalised ads profile using this information for the selection of\n * future ads without a separate legal basis to create a personalised ads profile.\n * - N.B. Non-precise means only an approximate location involving at least a radius\n * of 500 meters is permitted.\n */\n SELECT_BASIC_ADS = 2,\n\n /**\n * A profile can be built about you and your interests to show you personalised ads\n * that are relevant to you.\n *\n * To create a personalised ads profile vendors can:\n * - Collect information about a user, including a user's activity, interests,\n * demographic information, or location, to create or edit a user profile for use\n * in personalised advertising.\n * - Combine this information with other information previously collected,\n * including from across websites and apps, to create or edit a user profile\n * for use in personalised advertising.\n */\n CREATE_A_PERSONALISED_ADS_PROFILE = 3,\n\n /**\n * Personalised ads can be shown to you based on a profile about you.\n *\n * To select personalised ads vendors can:\n * - Select personalised ads based on a user profile or other historical user data,\n * including a user’s prior activity, interests, visits to sites or apps, location,\n * or demographic information.\n */\n SELECT_PERSONALISED_ADS = 4,\n\n /**\n * A profile can be built about you and your interests to show you personalised content\n * that is relevant to you.\n *\n * To create a personalised content profile vendors can:\n * - Collect information about a user, including a user's activity, interests, visits to\n * sites or apps, demographic information, or location, to create or edit a user profile\n * for personalising content.\n * - Combine this information with other information previously collected,\n * including from across websites and apps, to create or edit a user profile for use\n * in personalising content.\n */\n CREATE_A_PERSONALISED_CONTENT_PROFILE = 5,\n\n /**\n * Personalised content can be shown to you based on a profile about you.\n *\n * To select personalised content vendors can:\n * - Select personalised content based on a user profile or other historical user data,\n * including a user’s prior activity, interests, visits to sites or apps, location,\n * or demographic information.\n */\n SELECT_PERSONALISED_CONTENT = 6,\n\n /**\n * The performance and effectiveness of ads that you see or interact with can be measured.\n *\n * To measure ad performance vendors can:\n * - Measure whether and how ads were delivered to and interacted with by a user\n * - Provide reporting about ads including their effectiveness and performance\n * - Provide reporting about users who interacted with ads using data observed during\n * the course of the user's interaction with that ad\n * - Provide reporting to publishers about the ads displayed on their property\n * - Measure whether an ad is serving in a suitable editorial environment (brand-safe) context\n * - Determine the percentage of the ad that had the opportunity to be seen and\n * the duration of that opportunity\n * - Combine this information with other information previously collected,\n * including from across websites and apps\n *\n * Vendors cannot:\n * - Apply panel- or similarly-derived audience insights data to ad measurement data\n * without a Legal Basis to apply market research to generate audience insights (Purpose 9)\n */\n MEASURE_AD_PERFORMANCE = 7,\n\n /**\n * The performance and effectiveness of content that you see or interact with can be measured.\n *\n * To measure content performance vendors can:\n * - Measure and report on how content was delivered to and interacted with by users.\n * - Provide reporting, using directly measurable or known information, about users who\n * interacted with the content\n * - Combine this information with other information previously collected,\n * including from across websites and apps.\n *\n * Vendors cannot:\n * - Measure whether and how ads (including native ads) were delivered to and\n * interacted with by a user.\n * - Apply panel- or similarly derived audience insights data to ad measurement\n * data without a Legal Basis to apply market research to generate audience insights (Purpose 9)\n */\n MEASURE_CONTENT_PERFORMANCE = 8,\n\n /**\n * Market research can be used to learn more about the audiences who visit sites/apps and view ads.\n *\n * To apply market research to generate audience insights vendors can:\n * - Provide aggregate reporting to advertisers or their representatives about\n * the audiences reached by their ads, through panel-based and similarly derived insights.\n * - Provide aggregate reporting to publishers about the audiences that were served or\n * interacted with content and/or ads on their property by applying\n * panel-based and similarly derived insights.\n * - Associate offline data with an online user for the purposes of\n * market research to generate audience insights if vendors have declared to match and\n * combine offline data sources (Feature 1)\n * - Combine this information with other information previously collected including from\n * across websites and apps.\n *\n * Vendors cannot:\n * - Measure the performance and effectiveness of ads that a specific user was served or\n * interacted with, without a Legal Basis to measure ad performance.\n * - Measure which content a specific user was served and how they interacted with it,\n * without a Legal Basis to measure content performance.\n */\n APPLY_MARKET_RESEARCH_TO_GENERATE_AUDIENCE_INSIGHTS = 9,\n\n /**\n * Your data can be used to improve existing systems and software,\n * and to develop new products\n *\n * To develop new products and improve products vendors can:\n * - Use information to improve their existing products with new features and\n * to develop new products\n * - Create new models and algorithms through machine learning\n *\n * Vendors cannot:\n * - Conduct any other data processing operation allowed under\n * a different purpose under this purpose\n */\n DEVELOP_AND_IMPROVE_PRODUCTS = 10,\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,WAAYA,kBAAkB;AA4J7B,WA5JWA,kBAAkB;EAAlBA,kBAAkB,CAAlBA,kBAAkB;EAAlBA,kBAAkB,CAAlBA,kBAAkB;EAAlBA,kBAAkB,CAAlBA,kBAAkB;EAAlBA,kBAAkB,CAAlBA,kBAAkB;EAAlBA,kBAAkB,CAAlBA,kBAAkB;EAAlBA,kBAAkB,CAAlBA,kBAAkB;EAAlBA,kBAAkB,CAAlBA,kBAAkB;EAAlBA,kBAAkB,CAAlBA,kBAAkB;EAAlBA,kBAAkB,CAAlBA,kBAAkB;EAAlBA,kBAAkB,CAAlBA,kBAAkB;AAAA,GAAlBA,kBAAkB,KAAlBA,kBAAkB"}
@@ -22,8 +22,8 @@
22
22
  * https://github.com/InteractiveAdvertisingBureau/GDPR-Transparency-and-Consent-Framework
23
23
  *
24
24
  */
25
- export let AdsConsentSpecialFeatures;
26
25
 
26
+ export let AdsConsentSpecialFeatures;
27
27
  (function (AdsConsentSpecialFeatures) {
28
28
  AdsConsentSpecialFeatures[AdsConsentSpecialFeatures["USE_PRECISE_GEOLOCATION_DATA"] = 1] = "USE_PRECISE_GEOLOCATION_DATA";
29
29
  AdsConsentSpecialFeatures[AdsConsentSpecialFeatures["ACTIVELY_SCAN_DEVICE_CHARACTERISTICS_FOR_IDENTIFICATION"] = 2] = "ACTIVELY_SCAN_DEVICE_CHARACTERISTICS_FOR_IDENTIFICATION";
@@ -1 +1 @@
1
- {"version":3,"sources":["AdsConsentSpecialFeatures.ts"],"names":["AdsConsentSpecialFeatures"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA,WAAYA,yBAAZ;;WAAYA,yB;AAAAA,EAAAA,yB,CAAAA,yB;AAAAA,EAAAA,yB,CAAAA,yB;GAAAA,yB,KAAAA,yB","sourcesContent":["/*\n * Copyright (c) 2016-present Invertase Limited & Contributors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this library except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n *\n *\n *\n * The definitions in this document are copied from IAB's global vendor list.\n *\n * https://vendor-list.consensu.org/v2/vendor-list.json\n * https://github.com/InteractiveAdvertisingBureau/GDPR-Transparency-and-Consent-Framework\n *\n */\n\nexport enum AdsConsentSpecialFeatures {\n /**\n * Your precise geolocation data can be used in support of one or more purposes.\n * This means your location can be accurate to within several meters.\n *\n * Vendors can:\n * - Collect and process precise geolocation data in support of one or more purposes.\n * - Precise geolocation means that there are no restrictions on the precision of\n * a user's location; this can be accurate to within several meters.\n */\n USE_PRECISE_GEOLOCATION_DATA = 1,\n\n /**\n * Your device can be identified based on a scan of your device's\n * unique combination of characteristics.\n *\n * Vendors can:\n * - Create an identifier using data collected via actively scanning a device for\n * specific characteristics, e.g. installed fonts or screen resolution.\n * - Use such an identifier to re-identify a device.\n */\n ACTIVELY_SCAN_DEVICE_CHARACTERISTICS_FOR_IDENTIFICATION = 2,\n}\n"]}
1
+ {"version":3,"names":["AdsConsentSpecialFeatures"],"sources":["AdsConsentSpecialFeatures.ts"],"sourcesContent":["/*\n * Copyright (c) 2016-present Invertase Limited & Contributors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this library except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n *\n *\n *\n * The definitions in this document are copied from IAB's global vendor list.\n *\n * https://vendor-list.consensu.org/v2/vendor-list.json\n * https://github.com/InteractiveAdvertisingBureau/GDPR-Transparency-and-Consent-Framework\n *\n */\n\nexport enum AdsConsentSpecialFeatures {\n /**\n * Your precise geolocation data can be used in support of one or more purposes.\n * This means your location can be accurate to within several meters.\n *\n * Vendors can:\n * - Collect and process precise geolocation data in support of one or more purposes.\n * - Precise geolocation means that there are no restrictions on the precision of\n * a user's location; this can be accurate to within several meters.\n */\n USE_PRECISE_GEOLOCATION_DATA = 1,\n\n /**\n * Your device can be identified based on a scan of your device's\n * unique combination of characteristics.\n *\n * Vendors can:\n * - Create an identifier using data collected via actively scanning a device for\n * specific characteristics, e.g. installed fonts or screen resolution.\n * - Use such an identifier to re-identify a device.\n */\n ACTIVELY_SCAN_DEVICE_CHARACTERISTICS_FOR_IDENTIFICATION = 2,\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,WAAYA,yBAAyB;AAsBpC,WAtBWA,yBAAyB;EAAzBA,yBAAyB,CAAzBA,yBAAyB;EAAzBA,yBAAyB,CAAzBA,yBAAyB;AAAA,GAAzBA,yBAAyB,KAAzBA,yBAAyB"}
@@ -19,7 +19,6 @@
19
19
  * AdsConsentStatus enum.
20
20
  */
21
21
  export let AdsConsentStatus;
22
-
23
22
  (function (AdsConsentStatus) {
24
23
  AdsConsentStatus["UNKNOWN"] = "UNKNOWN";
25
24
  AdsConsentStatus["REQUIRED"] = "REQUIRED";
@@ -1 +1 @@
1
- {"version":3,"sources":["AdsConsentStatus.ts"],"names":["AdsConsentStatus"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAYA,gBAAZ;;WAAYA,gB;AAAAA,EAAAA,gB;AAAAA,EAAAA,gB;AAAAA,EAAAA,gB;AAAAA,EAAAA,gB;GAAAA,gB,KAAAA,gB","sourcesContent":["/*\n * Copyright (c) 2016-present Invertase Limited & Contributors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this library except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n */\n\n/**\n * AdsConsentStatus enum.\n */\nexport enum AdsConsentStatus {\n /**\n * Unknown consent status, AdsConsent.requestInfoUpdate needs to be called to update it.\n */\n UNKNOWN = 'UNKNOWN',\n\n /**\n * User consent required but not yet obtained.\n */\n REQUIRED = 'REQUIRED',\n\n /**\n * User consent not required.\n */\n NOT_REQUIRED = 'NOT_REQUIRED',\n\n /**\n * User consent already obtained.\n */\n OBTAINED = 'OBTAINED',\n}\n"]}
1
+ {"version":3,"names":["AdsConsentStatus"],"sources":["AdsConsentStatus.ts"],"sourcesContent":["/*\n * Copyright (c) 2016-present Invertase Limited & Contributors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this library except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n */\n\n/**\n * AdsConsentStatus enum.\n */\nexport enum AdsConsentStatus {\n /**\n * Unknown consent status, AdsConsent.requestInfoUpdate needs to be called to update it.\n */\n UNKNOWN = 'UNKNOWN',\n\n /**\n * User consent required but not yet obtained.\n */\n REQUIRED = 'REQUIRED',\n\n /**\n * User consent not required.\n */\n NOT_REQUIRED = 'NOT_REQUIRED',\n\n /**\n * User consent already obtained.\n */\n OBTAINED = 'OBTAINED',\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAYA,gBAAgB;AAoB3B,WApBWA,gBAAgB;EAAhBA,gBAAgB;EAAhBA,gBAAgB;EAAhBA,gBAAgB;EAAhBA,gBAAgB;AAAA,GAAhBA,gBAAgB,KAAhBA,gBAAgB"}
@@ -15,8 +15,8 @@
15
15
  *
16
16
  *
17
17
  */
18
- export let BannerAdSize;
19
18
 
19
+ export let BannerAdSize;
20
20
  (function (BannerAdSize) {
21
21
  BannerAdSize["BANNER"] = "BANNER";
22
22
  BannerAdSize["FULL_BANNER"] = "FULL_BANNER";
@@ -1 +1 @@
1
- {"version":3,"sources":["BannerAdSize.ts"],"names":["BannerAdSize"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA,WAAYA,YAAZ;;WAAYA,Y;AAAAA,EAAAA,Y;AAAAA,EAAAA,Y;AAAAA,EAAAA,Y;AAAAA,EAAAA,Y;AAAAA,EAAAA,Y;AAAAA,EAAAA,Y;AAAAA,EAAAA,Y;AAAAA,EAAAA,Y;AAAAA,EAAAA,Y;AAAAA,EAAAA,Y;GAAAA,Y,KAAAA,Y","sourcesContent":["/*\n * Copyright (c) 2016-present Invertase Limited & Contributors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this library except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n *\n */\n\nexport enum BannerAdSize {\n /**\n * Mobile Marketing Association (MMA) banner ad size (320x50 density-independent pixels).\n */\n BANNER = 'BANNER',\n\n /**\n * Interactive Advertising Bureau (IAB) full banner ad size (468x60 density-independent pixels).\n */\n FULL_BANNER = 'FULL_BANNER',\n\n /**\n * Large banner ad size (320x100 density-independent pixels).\n */\n LARGE_BANNER = 'LARGE_BANNER',\n\n /**\n * Interactive Advertising Bureau (IAB) leaderboard ad size (728x90 density-independent pixels).\n */\n LEADERBOARD = 'LEADERBOARD',\n\n /**\n * Interactive Advertising Bureau (IAB) medium rectangle ad size (300x250 density-independent pixels).\n */\n MEDIUM_RECTANGLE = 'MEDIUM_RECTANGLE',\n\n /**\n * @deprecated Use `ANCHORED_ADAPTIVE_BANNER` instead.\n */\n ADAPTIVE_BANNER = 'ADAPTIVE_BANNER',\n\n /**\n * A (next generation) dynamically sized banner that is full-width and auto-height.\n */\n ANCHORED_ADAPTIVE_BANNER = 'ANCHORED_ADAPTIVE_BANNER',\n\n /**\n * Inline adaptive banners are larger, taller banners compared to anchored adaptive banners. They are of variable height, and can be as tall as the device screen.\n * They are intended to be placed in scrolling content.\n */\n INLINE_ADAPTIVE_BANNER = 'INLINE_ADAPTIVE_BANNER',\n\n /**\n * A dynamically sized banner that matches its parent's width and expands/contracts its height to match the ad's content after loading completes.\n */\n FLUID = 'FLUID',\n\n /**\n * IAB wide skyscraper ad size (160x600 density-independent pixels). This size is currently not supported by the Google Mobile Ads network; this is intended for mediation ad networks only.\n */\n WIDE_SKYSCRAPER = 'WIDE_SKYSCRAPER',\n}\n"]}
1
+ {"version":3,"names":["BannerAdSize"],"sources":["BannerAdSize.ts"],"sourcesContent":["/*\n * Copyright (c) 2016-present Invertase Limited & Contributors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this library except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n *\n */\n\nexport enum BannerAdSize {\n /**\n * Mobile Marketing Association (MMA) banner ad size (320x50 density-independent pixels).\n */\n BANNER = 'BANNER',\n\n /**\n * Interactive Advertising Bureau (IAB) full banner ad size (468x60 density-independent pixels).\n */\n FULL_BANNER = 'FULL_BANNER',\n\n /**\n * Large banner ad size (320x100 density-independent pixels).\n */\n LARGE_BANNER = 'LARGE_BANNER',\n\n /**\n * Interactive Advertising Bureau (IAB) leaderboard ad size (728x90 density-independent pixels).\n */\n LEADERBOARD = 'LEADERBOARD',\n\n /**\n * Interactive Advertising Bureau (IAB) medium rectangle ad size (300x250 density-independent pixels).\n */\n MEDIUM_RECTANGLE = 'MEDIUM_RECTANGLE',\n\n /**\n * @deprecated Use `ANCHORED_ADAPTIVE_BANNER` instead.\n */\n ADAPTIVE_BANNER = 'ADAPTIVE_BANNER',\n\n /**\n * A (next generation) dynamically sized banner that is full-width and auto-height.\n */\n ANCHORED_ADAPTIVE_BANNER = 'ANCHORED_ADAPTIVE_BANNER',\n\n /**\n * Inline adaptive banners are larger, taller banners compared to anchored adaptive banners. They are of variable height, and can be as tall as the device screen.\n * They are intended to be placed in scrolling content.\n */\n INLINE_ADAPTIVE_BANNER = 'INLINE_ADAPTIVE_BANNER',\n\n /**\n * A dynamically sized banner that matches its parent's width and expands/contracts its height to match the ad's content after loading completes.\n */\n FLUID = 'FLUID',\n\n /**\n * IAB wide skyscraper ad size (160x600 density-independent pixels). This size is currently not supported by the Google Mobile Ads network; this is intended for mediation ad networks only.\n */\n WIDE_SKYSCRAPER = 'WIDE_SKYSCRAPER',\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,WAAYA,YAAY;AAmDvB,WAnDWA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;AAAA,GAAZA,YAAY,KAAZA,YAAY"}
@@ -14,8 +14,8 @@
14
14
  * limitations under the License.
15
15
  *
16
16
  */
17
- export let GAMAdEventType;
18
17
 
18
+ export let GAMAdEventType;
19
19
  (function (GAMAdEventType) {
20
20
  GAMAdEventType["APP_EVENT"] = "app_event";
21
21
  })(GAMAdEventType || (GAMAdEventType = {}));
@@ -1 +1 @@
1
- {"version":3,"sources":["GAMAdEventType.ts"],"names":["GAMAdEventType"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA,WAAYA,cAAZ;;WAAYA,c;AAAAA,EAAAA,c;GAAAA,c,KAAAA,c","sourcesContent":["/*\n * Copyright (c) 2016-present Invertase Limited & Contributors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this library except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n */\n\nexport enum GAMAdEventType {\n /**\n * An event fired when the ad received Ad Manager specific app event.\n *\n * The app event contains a `name` and `data`. `data` could be undefeined.\n *\n * #### Example\n *\n * ```js\n * import { GAMAdEventType } from 'react-native-google-mobile-ads';\n *\n * interstitialAd.onAdEvent((type, error, data) => {\n * if (type === GAMAdEventType.APP_EVENT) {\n * console.log(`Received app event: ${data.name} with data: ${data.data}`);\n * }\n * });\n * ```\n */\n APP_EVENT = 'app_event',\n}\n"]}
1
+ {"version":3,"names":["GAMAdEventType"],"sources":["GAMAdEventType.ts"],"sourcesContent":["/*\n * Copyright (c) 2016-present Invertase Limited & Contributors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this library except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n */\n\nexport enum GAMAdEventType {\n /**\n * An event fired when the ad received Ad Manager specific app event.\n *\n * The app event contains a `name` and `data`. `data` could be undefeined.\n *\n * #### Example\n *\n * ```js\n * import { GAMAdEventType } from 'react-native-google-mobile-ads';\n *\n * interstitialAd.onAdEvent((type, error, data) => {\n * if (type === GAMAdEventType.APP_EVENT) {\n * console.log(`Received app event: ${data.name} with data: ${data.data}`);\n * }\n * });\n * ```\n */\n APP_EVENT = 'app_event',\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,WAAYA,cAAc;AAmBzB,WAnBWA,cAAc;EAAdA,cAAc;AAAA,GAAdA,cAAc,KAAdA,cAAc"}
@@ -14,8 +14,8 @@
14
14
  * limitations under the License.
15
15
  *
16
16
  */
17
- export let MaxAdContentRating;
18
17
 
18
+ export let MaxAdContentRating;
19
19
  (function (MaxAdContentRating) {
20
20
  MaxAdContentRating["G"] = "G";
21
21
  MaxAdContentRating["PG"] = "PG";
@@ -1 +1 @@
1
- {"version":3,"sources":["MaxAdContentRating.ts"],"names":["MaxAdContentRating"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA,WAAYA,kBAAZ;;WAAYA,kB;AAAAA,EAAAA,kB;AAAAA,EAAAA,kB;AAAAA,EAAAA,kB;AAAAA,EAAAA,kB;GAAAA,kB,KAAAA,kB","sourcesContent":["/*\n * Copyright (c) 2016-present Invertase Limited & Contributors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this library except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n */\n\nexport enum MaxAdContentRating {\n /**\n * \"General audiences.\" Content suitable for all audiences, including families and children.\n */\n G = 'G',\n\n /**\n * \"Parental guidance.\" Content suitable for most audiences with parental guidance, including topics like non-realistic, cartoonish violence.\n */\n PG = 'PG',\n\n /**\n * T: \"Teen.\" Content suitable for teen and older audiences, including topics such as general health, social networks, scary imagery, and fight sports.\n */\n T = 'T',\n\n /**\n * \"Mature audiences.\" Content suitable only for mature audiences; includes topics such as alcohol, gambling, sexual content, and weapons.\n */\n MA = 'MA',\n}\n"]}
1
+ {"version":3,"names":["MaxAdContentRating"],"sources":["MaxAdContentRating.ts"],"sourcesContent":["/*\n * Copyright (c) 2016-present Invertase Limited & Contributors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this library except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n */\n\nexport enum MaxAdContentRating {\n /**\n * \"General audiences.\" Content suitable for all audiences, including families and children.\n */\n G = 'G',\n\n /**\n * \"Parental guidance.\" Content suitable for most audiences with parental guidance, including topics like non-realistic, cartoonish violence.\n */\n PG = 'PG',\n\n /**\n * T: \"Teen.\" Content suitable for teen and older audiences, including topics such as general health, social networks, scary imagery, and fight sports.\n */\n T = 'T',\n\n /**\n * \"Mature audiences.\" Content suitable only for mature audiences; includes topics such as alcohol, gambling, sexual content, and weapons.\n */\n MA = 'MA',\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,WAAYA,kBAAkB;AAoB7B,WApBWA,kBAAkB;EAAlBA,kBAAkB;EAAlBA,kBAAkB;EAAlBA,kBAAkB;EAAlBA,kBAAkB;AAAA,GAAlBA,kBAAkB,KAAlBA,kBAAkB"}