@adshift/react-native-plugin 3.0.0 → 3.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (176) hide show
  1. package/AdShiftReactNativePlugin.podspec +20 -4
  2. package/CHANGELOG.md +30 -17
  3. package/README.md +55 -47
  4. package/android/build.gradle +2 -3
  5. package/android/consumer-rules.pro +2 -21
  6. package/android/src/main/AndroidManifest.xml +1 -1
  7. package/android/src/main/java/com/adshift/reactnativeplugin/ActivityIntents.kt +307 -0
  8. package/android/src/main/java/com/adshift/reactnativeplugin/AdShiftReactNativePluginModule.kt +83 -157
  9. package/android/src/test/java/com/adshift/reactnativeplugin/ConsentSnapshotTest.kt +0 -20
  10. package/android/src/test/java/com/adshift/reactnativeplugin/DeepLinkDeliveryTest.kt +0 -4
  11. package/android/src/test/java/com/adshift/reactnativeplugin/InitializeOrderingTest.kt +37 -5
  12. package/android/src/test/java/com/adshift/reactnativeplugin/IntentLinkDedupTest.kt +0 -5
  13. package/android/src/test/java/com/adshift/reactnativeplugin/LaunchIntentForwardingTest.kt +7 -26
  14. package/android/src/test/java/com/adshift/reactnativeplugin/LaunchLinkRecordTest.kt +420 -0
  15. package/android/src/test/java/com/adshift/reactnativeplugin/ModuleTestSupport.kt +93 -34
  16. package/android/src/test/java/com/adshift/reactnativeplugin/StartVerdictTest.kt +0 -4
  17. package/ios/AdShiftReactNativePlugin.h +0 -12
  18. package/ios/AdShiftReactNativePlugin.mm +2 -14
  19. package/ios/AdShiftReactNativePluginHelper.swift +14 -73
  20. package/ios/Core/BridgeRules.swift +24 -29
  21. package/lib/commonjs/Adshift.js +78 -285
  22. package/lib/commonjs/Adshift.js.map +1 -1
  23. package/lib/commonjs/NativeAdShiftReactNativePlugin.js +2 -11
  24. package/lib/commonjs/NativeAdShiftReactNativePlugin.js.map +1 -1
  25. package/lib/commonjs/index.js.map +1 -1
  26. package/lib/commonjs/jest/index.js +4 -18
  27. package/lib/commonjs/jest/index.js.map +1 -1
  28. package/lib/commonjs/nativeSdkVersions.js +4 -6
  29. package/lib/commonjs/nativeSdkVersions.js.map +1 -1
  30. package/lib/commonjs/types/AdshiftAdRevenue.js +0 -24
  31. package/lib/commonjs/types/AdshiftAdRevenue.js.map +1 -1
  32. package/lib/commonjs/types/AdshiftConfig.js +3 -24
  33. package/lib/commonjs/types/AdshiftConfig.js.map +1 -1
  34. package/lib/commonjs/types/AdshiftConsent.js +9 -45
  35. package/lib/commonjs/types/AdshiftConsent.js.map +1 -1
  36. package/lib/commonjs/types/AdshiftConsentSnapshot.js +5 -24
  37. package/lib/commonjs/types/AdshiftConsentSnapshot.js.map +1 -1
  38. package/lib/commonjs/types/AdshiftDeepLink.js +3 -30
  39. package/lib/commonjs/types/AdshiftDeepLink.js.map +1 -1
  40. package/lib/commonjs/types/AdshiftError.js +7 -27
  41. package/lib/commonjs/types/AdshiftError.js.map +1 -1
  42. package/lib/commonjs/types/AdshiftEventParam.js +4 -38
  43. package/lib/commonjs/types/AdshiftEventParam.js.map +1 -1
  44. package/lib/commonjs/types/AdshiftEventType.js +1 -39
  45. package/lib/commonjs/types/AdshiftEventType.js.map +1 -1
  46. package/lib/commonjs/types/AdshiftThirdPartySharing.js +7 -38
  47. package/lib/commonjs/types/AdshiftThirdPartySharing.js.map +1 -1
  48. package/lib/commonjs/version.js +1 -1
  49. package/lib/module/Adshift.js +78 -285
  50. package/lib/module/Adshift.js.map +1 -1
  51. package/lib/module/NativeAdShiftReactNativePlugin.js +2 -12
  52. package/lib/module/NativeAdShiftReactNativePlugin.js.map +1 -1
  53. package/lib/module/index.js +1 -46
  54. package/lib/module/index.js.map +1 -1
  55. package/lib/module/jest/index.js +4 -18
  56. package/lib/module/jest/index.js.map +1 -1
  57. package/lib/module/nativeSdkVersions.js +4 -6
  58. package/lib/module/nativeSdkVersions.js.map +1 -1
  59. package/lib/module/types/AdshiftAdRevenue.js +0 -24
  60. package/lib/module/types/AdshiftAdRevenue.js.map +1 -1
  61. package/lib/module/types/AdshiftConfig.js +3 -24
  62. package/lib/module/types/AdshiftConfig.js.map +1 -1
  63. package/lib/module/types/AdshiftConsent.js +9 -45
  64. package/lib/module/types/AdshiftConsent.js.map +1 -1
  65. package/lib/module/types/AdshiftConsentSnapshot.js +5 -24
  66. package/lib/module/types/AdshiftConsentSnapshot.js.map +1 -1
  67. package/lib/module/types/AdshiftDeepLink.js +3 -31
  68. package/lib/module/types/AdshiftDeepLink.js.map +1 -1
  69. package/lib/module/types/AdshiftError.js +7 -28
  70. package/lib/module/types/AdshiftError.js.map +1 -1
  71. package/lib/module/types/AdshiftEventParam.js +4 -38
  72. package/lib/module/types/AdshiftEventParam.js.map +1 -1
  73. package/lib/module/types/AdshiftEventType.js +1 -39
  74. package/lib/module/types/AdshiftEventType.js.map +1 -1
  75. package/lib/module/types/AdshiftThirdPartySharing.js +7 -38
  76. package/lib/module/types/AdshiftThirdPartySharing.js.map +1 -1
  77. package/lib/module/version.js +1 -1
  78. package/lib/typescript/commonjs/src/Adshift.d.ts +61 -185
  79. package/lib/typescript/commonjs/src/Adshift.d.ts.map +1 -1
  80. package/lib/typescript/commonjs/src/NativeAdShiftReactNativePlugin.d.ts +10 -36
  81. package/lib/typescript/commonjs/src/NativeAdShiftReactNativePlugin.d.ts.map +1 -1
  82. package/lib/typescript/commonjs/src/index.d.ts +0 -32
  83. package/lib/typescript/commonjs/src/index.d.ts.map +1 -1
  84. package/lib/typescript/commonjs/src/jest/index.d.ts +6 -20
  85. package/lib/typescript/commonjs/src/jest/index.d.ts.map +1 -1
  86. package/lib/typescript/commonjs/src/nativeSdkVersions.d.ts +4 -6
  87. package/lib/typescript/commonjs/src/nativeSdkVersions.d.ts.map +1 -1
  88. package/lib/typescript/commonjs/src/types/AdshiftAdRevenue.d.ts +0 -24
  89. package/lib/typescript/commonjs/src/types/AdshiftAdRevenue.d.ts.map +1 -1
  90. package/lib/typescript/commonjs/src/types/AdshiftConfig.d.ts +10 -37
  91. package/lib/typescript/commonjs/src/types/AdshiftConfig.d.ts.map +1 -1
  92. package/lib/typescript/commonjs/src/types/AdshiftConsent.d.ts +9 -49
  93. package/lib/typescript/commonjs/src/types/AdshiftConsent.d.ts.map +1 -1
  94. package/lib/typescript/commonjs/src/types/AdshiftConsentSnapshot.d.ts +10 -28
  95. package/lib/typescript/commonjs/src/types/AdshiftConsentSnapshot.d.ts.map +1 -1
  96. package/lib/typescript/commonjs/src/types/AdshiftDeepLink.d.ts +6 -34
  97. package/lib/typescript/commonjs/src/types/AdshiftDeepLink.d.ts.map +1 -1
  98. package/lib/typescript/commonjs/src/types/AdshiftError.d.ts +7 -26
  99. package/lib/typescript/commonjs/src/types/AdshiftError.d.ts.map +1 -1
  100. package/lib/typescript/commonjs/src/types/AdshiftEventParam.d.ts +3 -19
  101. package/lib/typescript/commonjs/src/types/AdshiftEventParam.d.ts.map +1 -1
  102. package/lib/typescript/commonjs/src/types/AdshiftEventType.d.ts +1 -23
  103. package/lib/typescript/commonjs/src/types/AdshiftEventType.d.ts.map +1 -1
  104. package/lib/typescript/commonjs/src/types/AdshiftThirdPartySharing.d.ts +7 -38
  105. package/lib/typescript/commonjs/src/types/AdshiftThirdPartySharing.d.ts.map +1 -1
  106. package/lib/typescript/commonjs/src/version.d.ts +1 -1
  107. package/lib/typescript/module/src/Adshift.d.ts +61 -185
  108. package/lib/typescript/module/src/Adshift.d.ts.map +1 -1
  109. package/lib/typescript/module/src/NativeAdShiftReactNativePlugin.d.ts +10 -36
  110. package/lib/typescript/module/src/NativeAdShiftReactNativePlugin.d.ts.map +1 -1
  111. package/lib/typescript/module/src/index.d.ts +0 -32
  112. package/lib/typescript/module/src/index.d.ts.map +1 -1
  113. package/lib/typescript/module/src/jest/index.d.ts +6 -20
  114. package/lib/typescript/module/src/jest/index.d.ts.map +1 -1
  115. package/lib/typescript/module/src/nativeSdkVersions.d.ts +4 -6
  116. package/lib/typescript/module/src/nativeSdkVersions.d.ts.map +1 -1
  117. package/lib/typescript/module/src/types/AdshiftAdRevenue.d.ts +0 -24
  118. package/lib/typescript/module/src/types/AdshiftAdRevenue.d.ts.map +1 -1
  119. package/lib/typescript/module/src/types/AdshiftConfig.d.ts +10 -37
  120. package/lib/typescript/module/src/types/AdshiftConfig.d.ts.map +1 -1
  121. package/lib/typescript/module/src/types/AdshiftConsent.d.ts +9 -49
  122. package/lib/typescript/module/src/types/AdshiftConsent.d.ts.map +1 -1
  123. package/lib/typescript/module/src/types/AdshiftConsentSnapshot.d.ts +10 -28
  124. package/lib/typescript/module/src/types/AdshiftConsentSnapshot.d.ts.map +1 -1
  125. package/lib/typescript/module/src/types/AdshiftDeepLink.d.ts +6 -34
  126. package/lib/typescript/module/src/types/AdshiftDeepLink.d.ts.map +1 -1
  127. package/lib/typescript/module/src/types/AdshiftError.d.ts +7 -26
  128. package/lib/typescript/module/src/types/AdshiftError.d.ts.map +1 -1
  129. package/lib/typescript/module/src/types/AdshiftEventParam.d.ts +3 -19
  130. package/lib/typescript/module/src/types/AdshiftEventParam.d.ts.map +1 -1
  131. package/lib/typescript/module/src/types/AdshiftEventType.d.ts +1 -23
  132. package/lib/typescript/module/src/types/AdshiftEventType.d.ts.map +1 -1
  133. package/lib/typescript/module/src/types/AdshiftThirdPartySharing.d.ts +7 -38
  134. package/lib/typescript/module/src/types/AdshiftThirdPartySharing.d.ts.map +1 -1
  135. package/lib/typescript/module/src/version.d.ts +1 -1
  136. package/package.json +11 -1
  137. package/src/Adshift.ts +82 -286
  138. package/src/NativeAdShiftReactNativePlugin.ts +10 -48
  139. package/src/index.tsx +1 -44
  140. package/src/jest/index.ts +6 -20
  141. package/src/nativeSdkVersions.ts +4 -6
  142. package/src/types/AdshiftAdRevenue.ts +0 -24
  143. package/src/types/AdshiftConfig.ts +11 -54
  144. package/src/types/AdshiftConsent.ts +9 -49
  145. package/src/types/AdshiftConsentSnapshot.ts +11 -38
  146. package/src/types/AdshiftDeepLink.ts +6 -34
  147. package/src/types/AdshiftError.ts +7 -26
  148. package/src/types/AdshiftEventParam.ts +4 -38
  149. package/src/types/AdshiftEventType.ts +1 -39
  150. package/src/types/AdshiftThirdPartySharing.ts +7 -38
  151. package/src/version.ts +1 -1
  152. package/vendor/ios/AdshiftSDK.files.json +30 -0
  153. package/vendor/ios/AdshiftSDK.xcframework/Info.plist +44 -0
  154. package/vendor/ios/AdshiftSDK.xcframework/ios-arm64/AdshiftSDK.framework/AdshiftSDK +0 -0
  155. package/vendor/ios/AdshiftSDK.xcframework/ios-arm64/AdshiftSDK.framework/Headers/AdshiftSDK-Swift.h +315 -0
  156. package/vendor/ios/AdshiftSDK.xcframework/ios-arm64/AdshiftSDK.framework/Info.plist +0 -0
  157. package/vendor/ios/AdshiftSDK.xcframework/ios-arm64/AdshiftSDK.framework/Modules/AdshiftSDK.swiftmodule/arm64-apple-ios.abi.json +18729 -0
  158. package/vendor/ios/AdshiftSDK.xcframework/ios-arm64/AdshiftSDK.framework/Modules/AdshiftSDK.swiftmodule/arm64-apple-ios.private.swiftinterface +414 -0
  159. package/vendor/ios/AdshiftSDK.xcframework/ios-arm64/AdshiftSDK.framework/Modules/AdshiftSDK.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  160. package/vendor/ios/AdshiftSDK.xcframework/ios-arm64/AdshiftSDK.framework/Modules/AdshiftSDK.swiftmodule/arm64-apple-ios.swiftinterface +414 -0
  161. package/vendor/ios/AdshiftSDK.xcframework/ios-arm64/AdshiftSDK.framework/Modules/module.modulemap +4 -0
  162. package/vendor/ios/AdshiftSDK.xcframework/ios-arm64/AdshiftSDK.framework/PrivacyInfo.xcprivacy +132 -0
  163. package/vendor/ios/AdshiftSDK.xcframework/ios-arm64_x86_64-simulator/AdshiftSDK.framework/AdshiftSDK +0 -0
  164. package/vendor/ios/AdshiftSDK.xcframework/ios-arm64_x86_64-simulator/AdshiftSDK.framework/Headers/AdshiftSDK-Swift.h +626 -0
  165. package/vendor/ios/AdshiftSDK.xcframework/ios-arm64_x86_64-simulator/AdshiftSDK.framework/Info.plist +0 -0
  166. package/vendor/ios/AdshiftSDK.xcframework/ios-arm64_x86_64-simulator/AdshiftSDK.framework/Modules/AdshiftSDK.swiftmodule/arm64-apple-ios-simulator.abi.json +18729 -0
  167. package/vendor/ios/AdshiftSDK.xcframework/ios-arm64_x86_64-simulator/AdshiftSDK.framework/Modules/AdshiftSDK.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +414 -0
  168. package/vendor/ios/AdshiftSDK.xcframework/ios-arm64_x86_64-simulator/AdshiftSDK.framework/Modules/AdshiftSDK.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
  169. package/vendor/ios/AdshiftSDK.xcframework/ios-arm64_x86_64-simulator/AdshiftSDK.framework/Modules/AdshiftSDK.swiftmodule/arm64-apple-ios-simulator.swiftinterface +414 -0
  170. package/vendor/ios/AdshiftSDK.xcframework/ios-arm64_x86_64-simulator/AdshiftSDK.framework/Modules/AdshiftSDK.swiftmodule/x86_64-apple-ios-simulator.abi.json +18729 -0
  171. package/vendor/ios/AdshiftSDK.xcframework/ios-arm64_x86_64-simulator/AdshiftSDK.framework/Modules/AdshiftSDK.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +414 -0
  172. package/vendor/ios/AdshiftSDK.xcframework/ios-arm64_x86_64-simulator/AdshiftSDK.framework/Modules/AdshiftSDK.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
  173. package/vendor/ios/AdshiftSDK.xcframework/ios-arm64_x86_64-simulator/AdshiftSDK.framework/Modules/AdshiftSDK.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +414 -0
  174. package/vendor/ios/AdshiftSDK.xcframework/ios-arm64_x86_64-simulator/AdshiftSDK.framework/Modules/module.modulemap +4 -0
  175. package/vendor/ios/AdshiftSDK.xcframework/ios-arm64_x86_64-simulator/AdshiftSDK.framework/PrivacyInfo.xcprivacy +132 -0
  176. package/android/src/main/java/com/adshift/reactnativeplugin/RestoredIntents.kt +0 -64
@@ -1 +1 @@
1
- {"version":3,"names":["AdshiftDeepLinkStatus","exports","AdshiftDeepLinkSource","SOURCES","Set","Object","values","SUB_KEYS","AdshiftDeepLink","found","options","result","deepLink","isDeferred","status","Found","deepLinkValue","undefined","params","isFirstSession","source","clickId","matchGuaranteed","key","value","notFound","NotFound","error","message","Error","errorMessage","fromMap","map","readParams","readStatus","deep_link_value","has","length","forEach","index","sub","out","count","raw","entries","String","deepLinkToMap"],"sourceRoot":"../../../src","sources":["types/AdshiftDeepLink.ts"],"mappings":";;;;;;;AAAA;AACA;AACA;AAFA,IAGYA,qBAAqB,GAAAC,OAAA,CAAAD,qBAAA,0BAArBA,qBAAqB;EAC/B;EADUA,qBAAqB;EAI/B;EAJUA,qBAAqB;EAO/B;EAPUA,qBAAqB;EAAA,OAArBA,qBAAqB;AAAA;AAWjC;AACA;AACA;AAFA,IAGYE,qBAAqB,GAAAD,OAAA,CAAAC,qBAAA,0BAArBA,qBAAqB;EAC/B;EADUA,qBAAqB;EAI/B;EAJUA,qBAAqB;EAO/B;EAPUA,qBAAqB;EAU/B;EAVUA,qBAAqB;EAa/B;EAbUA,qBAAqB;EAgB/B;EAhBUA,qBAAqB;EAmB/B;EAnBUA,qBAAqB;EAsB/B;EAtBUA,qBAAqB;EAyB/B;EAzBUA,qBAAqB;EAAA,OAArBA,qBAAqB;AAAA;AA6BjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAgEA,MAAMC,OAAO,GAAG,IAAIC,GAAG,CAASC,MAAM,CAACC,MAAM,CAACJ,qBAAqB,CAAC,CAAC;AAErE,MAAMK,QAAQ,GAAG,CACf,cAAc,EACd,cAAc,EACd,cAAc,EACd,cAAc,EACd,cAAc,CACN;;AAEV;AACA;AACA;AACO,MAAMC,eAAe,GAAAP,OAAA,CAAAO,eAAA,GAAG;EAC7BC,KAAKA,CAACC,OAcL,EAAmB;IAClB,MAAMC,MAAuB,GAAG;MAC9BC,QAAQ,EAAEF,OAAO,CAACE,QAAQ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ACA;AACA;AACA;AACA;AACO,SAAS6B,aAAaA,CAC3BlC,QAAyB,EACA;EACzB,MAAMoB,GAA4B,GAAG;IACnCnB,UAAU,EAAED,QAAQ,CAACC,UAAU;IAC/BC,MAAM,EAAEF,QAAQ,CAACE;EACnB,CAAC;EACD,KAAK,MAAM,CAACS,GAAG,EAAEC,KAAK,CAAC,IAAInB,MAAM,CAACuC,OAAO,CAAChC,QAAQ,CAAC,EAAE;IACnD,IAAIY,KAAK,KAAKP,SAAS,IAAI,EAAEM,GAAG,IAAIS,GAAG,CAAC,EAAE;MACxCA,GAAG,CAACT,GAAG,CAAC,GAAGC,KAAK;IAClB;EACF;EACA,OAAOQ,GAAG;AACZ","ignoreList":[]}
1
+ {"version":3,"names":["AdshiftDeepLinkStatus","exports","AdshiftDeepLinkSource","SOURCES","Set","Object","values","SUB_KEYS","AdshiftDeepLink","found","options","result","deepLink","isDeferred","status","Found","deepLinkValue","undefined","params","isFirstSession","source","clickId","matchGuaranteed","key","value","notFound","NotFound","error","message","Error","errorMessage","fromMap","map","readParams","readStatus","deep_link_value","has","length","forEach","index","sub","out","count","raw","entries","String","deepLinkToMap"],"sourceRoot":"../../../src","sources":["types/AdshiftDeepLink.ts"],"mappings":";;;;;;;IAAYA,qBAAqB,GAAAC,OAAA,CAAAD,qBAAA,0BAArBA,qBAAqB;EAC/B;EADUA,qBAAqB;EAI/B;EAJUA,qBAAqB;EAO/B;EAPUA,qBAAqB;EAAA,OAArBA,qBAAqB;AAAA;AAAA,IAWrBE,qBAAqB,GAAAD,OAAA,CAAAC,qBAAA,0BAArBA,qBAAqB;EAC/B;EADUA,qBAAqB;EAI/B;EAJUA,qBAAqB;EAO/B;EAPUA,qBAAqB;EAU/B;EAVUA,qBAAqB;EAa/B;EAbUA,qBAAqB;EAgB/B;EAhBUA,qBAAqB;EAmB/B;EAnBUA,qBAAqB;EAsB/B;EAtBUA,qBAAqB;EAyB/B;EAzBUA,qBAAqB;EAAA,OAArBA,qBAAqB;AAAA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EAAEoB,GAAG,CAAC,IAAItC,MAAM,CAACuC,OAAO,CAACpB,KAAgC,CAAC,EAAE;IACzE,IAAImB,GAAG,KAAK,IAAI,IAAIA,GAAG,KAAK1B,SAAS,EAAE;IACvCwB,GAAG,CAAClB,GAAG,CAAC,GAAG,OAAOoB,GAAG,KAAK,QAAQ,GAAGA,GAAG,GAAGE,MAAM,CAACF,GAAG,CAAC;IACtDD,KAAK,EAAE;EACT;EACA,OAAOA,KAAK,GAAG,CAAC,GAAGD,GAAG,GAAGxB,SAAS;AACpC;;AAEA;AACO,SAAS6B,aAAaA,CAC3BlC,QAAyB,EACA;EACzB,MAAMoB,GAA4B,GAAG;IACnCnB,UAAU,EAAED,QAAQ,CAACC,UAAU;IAC/BC,MAAM,EAAEF,QAAQ,CAACE;EACnB,CAAC;EACD,KAAK,MAAM,CAACS,GAAG,EAAEC,KAAK,CAAC,IAAInB,MAAM,CAACuC,OAAO,CAAChC,QAAQ,CAAC,EAAE;IACnD,IAAIY,KAAK,KAAKP,SAAS,IAAI,EAAEM,GAAG,IAAIS,GAAG,CAAC,EAAE;MACxCA,GAAG,CAACT,GAAG,CAAC,GAAGC,KAAK;IAClB;EACF;EACA,OAAOQ,GAAG;AACZ","ignoreList":[]}
@@ -7,10 +7,7 @@ exports.AdshiftErrorCode = void 0;
7
7
  exports.createAdshiftError = createAdshiftError;
8
8
  exports.isAdshiftError = isAdshiftError;
9
9
  exports.toAdshiftError = toAdshiftError;
10
- /**
11
- * Platform-neutral error codes used by every rejected promise and by
12
- * `StartResult.errorCode`.
13
- */
10
+ /** Codes of every rejected promise and of `StartResult.errorCode`. */
14
11
  let AdshiftErrorCode = exports.AdshiftErrorCode = /*#__PURE__*/function (AdshiftErrorCode) {
15
12
  /** `Adshift.initialize()` has not been called. */
16
13
  AdshiftErrorCode["NotInitialized"] = "NOT_INITIALIZED";
@@ -18,9 +15,9 @@ let AdshiftErrorCode = exports.AdshiftErrorCode = /*#__PURE__*/function (Adshift
18
15
  AdshiftErrorCode["NotStarted"] = "NOT_STARTED";
19
16
  /** The API key was rejected by the AdShift backend. */
20
17
  AdshiftErrorCode["InvalidApiKey"] = "INVALID_API_KEY";
21
- /** Tracking is disabled for this app on the AdShift side. */
18
+ /** Tracking is turned off for this device. */
22
19
  AdshiftErrorCode["OptedOut"] = "OPTED_OUT";
23
- /** The event queue is full; the call was not accepted. */
20
+ /** Too many calls are queued; this one was not accepted. */
24
21
  AdshiftErrorCode["QueueFull"] = "QUEUE_FULL";
25
22
  /** A parameter failed validation. */
26
23
  AdshiftErrorCode["InvalidArgument"] = "INVALID_ARGUMENT";
@@ -28,29 +25,13 @@ let AdshiftErrorCode = exports.AdshiftErrorCode = /*#__PURE__*/function (Adshift
28
25
  AdshiftErrorCode["Unknown"] = "UNKNOWN";
29
26
  return AdshiftErrorCode;
30
27
  }({});
31
- /**
32
- * Platform-specific details attached to an `AdshiftError`.
33
- */
34
- /**
35
- * Error thrown or rejected by the AdShift plugin.
36
- *
37
- * `code` is always one of `AdshiftErrorCode`; the original native code, when
38
- * there is one, is available in `userInfo.nativeCode`.
39
- */
28
+ /** `code` is always an `AdshiftErrorCode`; a native code is in `userInfo`. */
40
29
  const CODES = new Set(Object.values(AdshiftErrorCode));
41
-
42
- /**
43
- * Type guard for errors produced by the plugin.
44
- */
45
30
  function isAdshiftError(error) {
46
31
  return typeof error === 'object' && error !== null && typeof error.code === 'string' && CODES.has(error.code);
47
32
  }
48
33
 
49
- /**
50
- * Builds an `AdshiftError` from a code and message.
51
- *
52
- * @internal
53
- */
34
+ /** @internal */
54
35
  function createAdshiftError(code, message, userInfo = {}) {
55
36
  const error = new Error(message);
56
37
  error.name = 'AdshiftError';
@@ -60,9 +41,8 @@ function createAdshiftError(code, message, userInfo = {}) {
60
41
  }
61
42
 
62
43
  /**
63
- * Normalises a promise rejection coming from the native module into an
64
- * `AdshiftError`. Native modules reject with `{ code, message, userInfo }`.
65
- *
44
+ * Native modules reject with `{ code, message, userInfo }`; a code outside
45
+ * `AdshiftErrorCode` becomes `UNKNOWN`, kept as `nativeCode`.
66
46
  * @internal
67
47
  */
68
48
  function toAdshiftError(error) {
@@ -1 +1 @@
1
- {"version":3,"names":["AdshiftErrorCode","exports","CODES","Set","Object","values","isAdshiftError","error","code","has","createAdshiftError","message","userInfo","Error","name","toAdshiftError","raw","info","nativeCode","nativeDomain","undefined","Unknown"],"sourceRoot":"../../../src","sources":["types/AdshiftError.ts"],"mappings":";;;;;;;;;AAAA;AACA;AACA;AACA;AAHA,IAIYA,gBAAgB,GAAAC,OAAA,CAAAD,gBAAA,0BAAhBA,gBAAgB;EAC1B;EADUA,gBAAgB;EAG1B;EAHUA,gBAAgB;EAK1B;EALUA,gBAAgB;EAO1B;EAPUA,gBAAgB;EAS1B;EATUA,gBAAgB;EAW1B;EAXUA,gBAAgB;EAa1B;EAbUA,gBAAgB;EAAA,OAAhBA,gBAAgB;AAAA;AAiB5B;AACA;AACA;AAQA;AACA;AACA;AACA;AACA;AACA;AAMA,MAAME,KAAK,GAAG,IAAIC,GAAG,CAASC,MAAM,CAACC,MAAM,CAACL,gBAAgB,CAAC,CAAC;;AAE9D;AACA;AACA;AACO,SAASM,cAAcA,CAACC,KAAc,EAAyB;EACpE,OACE,OAAOA,KAAK,KAAK,QAAQ,IACzBA,KAAK,KAAK,IAAI,IACd,OAAQA,KAAK,CAAwBC,IAAI,KAAK,QAAQ,IACtDN,KAAK,CAACO,GAAG,CAAEF,KAAK,CAAsBC,IAAI,CAAC;AAE/C;;AAEA;AACA;AACA;AACA;AACA;AACO,SAASE,kBAAkBA,CAChCF,IAAsB,EACtBG,OAAe,EACfC,QAA0B,GAAG,CAAC,CAAC,EACjB;EACd,MAAML,KAAK,GAAG,IAAIM,KAAK,CAACF,OAAO,CAAiB;EAChDJ,KAAK,CAACO,IAAI,GAAG,cAAc;EAC3BP,KAAK,CAACC,IAAI,GAAGA,IAAI;EACjBD,KAAK,CAACK,QAAQ,GAAGA,QAAQ;EACzB,OAAOL,KAAK;AACd;;AAEA;AACA;AACA;AACA;AACA;AACA;AACO,SAASQ,cAAcA,CAACR,KAAc,EAAgB;EAC3D,IAAID,cAAc,CAACC,KAAK,CAAC,EAAE;IACzB,IAAI,CAACA,KAAK,CAACK,QAAQ,EAAE;MACnBL,KAAK,CAACK,QAAQ,GAAG,CAAC,CAAC;IACrB;IACA,OAAOL,KAAK;EACd;EACA,MAAMS,GAAG,GAAGT,KAIJ;EACR,MAAMI,OAAO,GACX,OAAOK,GAAG,EAAEL,OAAO,KAAK,QAAQ,GAAGK,GAAG,CAACL,OAAO,GAAG,eAAe;EAClE,MAAMM,IAAsB,GAAG,CAAC,CAAC;EACjC,MAAMC,UAAU,GAAGF,GAAG,EAAEJ,QAAQ,EAAEM,UAAU;EAC5C,IAAI,OAAOA,UAAU,KAAK,QAAQ,IAAI,OAAOA,UAAU,KAAK,QAAQ,EAAE;IACpED,IAAI,CAACC,UAAU,GAAGA,UAAU;EAC9B;EACA,MAAMC,YAAY,GAAGH,GAAG,EAAEJ,QAAQ,EAAEO,YAAY;EAChD,IAAI,OAAOA,YAAY,KAAK,QAAQ,EAAE;IACpCF,IAAI,CAACE,YAAY,GAAGA,YAAY;EAClC;EACA,IAAIF,IAAI,CAACC,UAAU,KAAKE,SAAS,IAAI,OAAOJ,GAAG,EAAER,IAAI,KAAK,QAAQ,EAAE;IAClES,IAAI,CAACC,UAAU,GAAGF,GAAG,CAACR,IAAI;EAC5B;EACA,OAAOE,kBAAkB,CAACV,gBAAgB,CAACqB,OAAO,EAAEV,OAAO,EAAEM,IAAI,CAAC;AACpE","ignoreList":[]}
1
+ {"version":3,"names":["AdshiftErrorCode","exports","CODES","Set","Object","values","isAdshiftError","error","code","has","createAdshiftError","message","userInfo","Error","name","toAdshiftError","raw","info","nativeCode","nativeDomain","undefined","Unknown"],"sourceRoot":"../../../src","sources":["types/AdshiftError.ts"],"mappings":";;;;;;;;;AAAA;AAAA,IACYA,gBAAgB,GAAAC,OAAA,CAAAD,gBAAA,0B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AAEJ,QAAQ,EAAEM,UAAU;EAC5C,IAAI,OAAOA,UAAU,KAAK,QAAQ,IAAI,OAAOA,UAAU,KAAK,QAAQ,EAAE;IACpED,IAAI,CAACC,UAAU,GAAGA,UAAU;EAC9B;EACA,MAAMC,YAAY,GAAGH,GAAG,EAAEJ,QAAQ,EAAEO,YAAY;EAChD,IAAI,OAAOA,YAAY,KAAK,QAAQ,EAAE;IACpCF,IAAI,CAACE,YAAY,GAAGA,YAAY;EAClC;EACA,IAAIF,IAAI,CAACC,UAAU,KAAKE,SAAS,IAAI,OAAOJ,GAAG,EAAER,IAAI,KAAK,QAAQ,EAAE;IAClES,IAAI,CAACC,UAAU,GAAGF,GAAG,CAACR,IAAI;EAC5B;EACA,OAAOE,kBAAkB,CAACV,gBAAgB,CAACqB,OAAO,EAAEV,OAAO,EAAEM,IAAI,CAAC;AACpE","ignoreList":[]}
@@ -6,26 +6,11 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.AdshiftEventParam = void 0;
7
7
  exports.getAllEventParams = getAllEventParams;
8
8
  /**
9
- * Standard parameter names for the `values` passed to `Adshift.trackEvent()`.
10
- *
11
- * Reports aggregate these names. Any other key is kept with the event as a
12
- * custom parameter, so a misspelled or invented name is stored but never
13
- * counted — use the constants for anything a report has to add up, revenue
14
- * above all.
15
- *
16
- * @example
17
- * ```typescript
18
- * await Adshift.trackEvent(AdshiftEventType.Purchase, {
19
- * [AdshiftEventParam.Revenue]: 9.99,
20
- * [AdshiftEventParam.Currency]: 'USD',
21
- * [AdshiftEventParam.ContentId]: 'SKU123',
22
- * size: 'XL', // custom parameters are fine alongside them
23
- * });
24
- * ```
9
+ * Standard names for `trackEvent()` values. Reports add up only these; any
10
+ * other key is kept as a custom parameter and never counted, so use the
11
+ * constants for revenue above all.
25
12
  */
26
13
  const AdshiftEventParam = exports.AdshiftEventParam = {
27
- // ============ Commerce ============
28
-
29
14
  Price: 'as_price',
30
15
  /** The number reports read as revenue. Always pair it with `Currency`. */
31
16
  Revenue: 'as_revenue',
@@ -40,8 +25,6 @@ const AdshiftEventParam = exports.AdshiftEventParam = {
40
25
  CouponCode: 'as_coupon_code',
41
26
  PaymentInfoAvailable: 'as_payment_info_available',
42
27
  Validated: 'as_validated',
43
- // ============ Content ============
44
-
45
28
  ContentType: 'as_content_type',
46
29
  ContentId: 'as_content_id',
47
30
  ContentList: 'as_content_list',
@@ -49,13 +32,9 @@ const AdshiftEventParam = exports.AdshiftEventParam = {
49
32
  Class: 'as_class',
50
33
  Description: 'as_description',
51
34
  SearchString: 'as_search_string',
52
- // ============ Ratings and reviews ============
53
-
54
35
  RatingValue: 'as_rating_value',
55
36
  MaxRatingValue: 'as_max_rating_value',
56
37
  ReviewText: 'as_review_text',
57
- // ============ User and progress ============
58
-
59
38
  CustomerUserId: 'as_customer_user_id',
60
39
  RegistrationMethod: 'as_registration_method',
61
40
  Level: 'as_level',
@@ -64,15 +43,11 @@ const AdshiftEventParam = exports.AdshiftEventParam = {
64
43
  TutorialId: 'as_tutorial_id',
65
44
  AchievementId: 'as_achievement_id',
66
45
  VirtualCurrencyName: 'as_virtual_currency_name',
67
- // ============ App and links ============
68
-
69
46
  DeepLink: 'as_deep_link',
70
47
  OldVersion: 'as_old_version',
71
48
  NewVersion: 'as_new_version',
72
49
  Channel: 'as_channel',
73
50
  TouchObj: 'as_touch_obj',
74
- // ============ Dates and places ============
75
-
76
51
  DateA: 'as_date_a',
77
52
  DateB: 'as_date_b',
78
53
  EventStart: 'as_event_start',
@@ -85,8 +60,6 @@ const AdshiftEventParam = exports.AdshiftEventParam = {
85
60
  DestinationA: 'as_destination_a',
86
61
  DestinationB: 'as_destination_b',
87
62
  DestinationList: 'as_destination_list',
88
- // ============ Travel ============
89
-
90
63
  DepartingDepartureDate: 'as_departing_departure_date',
91
64
  ReturningDepartureDate: 'as_returning_departure_date',
92
65
  DepartingArrivalDate: 'as_departing_arrival_date',
@@ -105,8 +78,6 @@ const AdshiftEventParam = exports.AdshiftEventParam = {
105
78
  PreferredPriceRange: 'as_preferred_price_range',
106
79
  PreferredNeighborhoods: 'as_preferred_neighborhoods',
107
80
  PreferredNumStops: 'as_preferred_num_stops',
108
- // ============ Free-form slots ============
109
-
110
81
  Param1: 'as_param_1',
111
82
  Param2: 'as_param_2',
112
83
  Param3: 'as_param_3',
@@ -117,10 +88,8 @@ const AdshiftEventParam = exports.AdshiftEventParam = {
117
88
  Param8: 'as_param_8',
118
89
  Param9: 'as_param_9',
119
90
  Param10: 'as_param_10',
120
- // ============ Ad revenue ============
121
91
  // `logAdRevenue()` fills Revenue, Currency, AdRevenueSource and
122
- // AdRevenueNetworkName from its own arguments and drops them from
123
- // `additionalParameters`. The rest below are yours to pass.
92
+ // AdRevenueNetworkName itself and drops them from `additionalParameters`.
124
93
 
125
94
  AdRevenueSource: 'as_adrev_source',
126
95
  AdRevenueNetworkName: 'as_adrev_network_name',
@@ -131,9 +100,6 @@ const AdshiftEventParam = exports.AdshiftEventParam = {
131
100
  AdRevenueAdUnitId: 'as_adrev_ad_unit_id',
132
101
  AdRevenuePrecision: 'as_adrev_precision'
133
102
  };
134
- /**
135
- * Returns all standard parameter names as an array.
136
- */
137
103
  function getAllEventParams() {
138
104
  return Object.values(AdshiftEventParam);
139
105
  }
@@ -1 +1 @@
1
- {"version":3,"names":["AdshiftEventParam","exports","Price","Revenue","ProjectedRevenue","Currency","Quantity","ReceiptId","OrderId","CouponCode","PaymentInfoAvailable","Validated","ContentType","ContentId","ContentList","Content","Class","Description","SearchString","RatingValue","MaxRatingValue","ReviewText","CustomerUserId","RegistrationMethod","Level","Score","Success","TutorialId","AchievementId","VirtualCurrencyName","DeepLink","OldVersion","NewVersion","Channel","TouchObj","DateA","DateB","EventStart","EventEnd","Latitude","Longitude","City","Region","Country","DestinationA","DestinationB","DestinationList","DepartingDepartureDate","ReturningDepartureDate","DepartingArrivalDate","ReturningArrivalDate","TravelStart","TravelEnd","SuggestedDestinations","SuggestedHotels","NumAdults","NumChildren","NumInfants","UserScore","HotelScore","PurchaseCurrency","PreferredStarRatings","PreferredPriceRange","PreferredNeighborhoods","PreferredNumStops","Param1","Param2","Param3","Param4","Param5","Param6","Param7","Param8","Param9","Param10","AdRevenueSource","AdRevenueNetworkName","AdRevenueMediatedNetworkName","AdRevenueAdType","AdRevenueAdSize","AdRevenuePlacementId","AdRevenueAdUnitId","AdRevenuePrecision","getAllEventParams","Object","values"],"sourceRoot":"../../../src","sources":["types/AdshiftEventParam.ts"],"mappings":";;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,MAAMA,iBAAiB,GAAAC,OAAA,CAAAD,iBAAA,GAAG;EAC/B;;EAEAE,KAAK,EAAE,UAAU;EAEjB;EACAC,OAAO,EAAE,YAAY;EAErB;EACAC,gBAAgB,EAAE,sBAAsB;EAExC;EACAC,QAAQ,EAAE,aAAa;EAEvBC,QAAQ,EAAE,aAAa;EAEvBC,SAAS,EAAE,eAAe;EAE1B;EACAC,OAAO,EAAE,aAAa;EAEtBC,UAAU,EAAE,gBAAgB;EAE5BC,oBAAoB,EAAE,2BAA2B;EAEjDC,SAAS,EAAE,cAAc;EAEzB;;EAEAC,WAAW,EAAE,iBAAiB;EAE9BC,SAAS,EAAE,eAAe;EAE1BC,WAAW,EAAE,iBAAiB;EAE9BC,OAAO,EAAE,YAAY;EAErBC,KAAK,EAAE,UAAU;EAEjBC,WAAW,EAAE,gBAAgB;EAE7BC,YAAY,EAAE,kBAAkB;EAEhC;;EAEAC,WAAW,EAAE,iBAAiB;EAE9BC,cAAc,EAAE,qBAAqB;EAErCC,UAAU,EAAE,gBAAgB;EAE5B;;EAEAC,cAAc,EAAE,qBAAqB;EAErCC,kBAAkB,EAAE,wBAAwB;EAE5CC,KAAK,EAAE,UAAU;EAEjBC,KAAK,EAAE,UAAU;EAEjBC,OAAO,EAAE,YAAY;EAErBC,UAAU,EAAE,gBAAgB;EAE5BC,aAAa,EAAE,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EAAE,YAAY;EAEpBC,MAAM,EAAE,YAAY;EAEpBC,MAAM,EAAE,YAAY;EAEpBC,OAAO,EAAE,aAAa;EAEtB;EACA;EACA;EACA;;EAEAC,eAAe,EAAE,iBAAiB;EAElCC,oBAAoB,EAAE,uBAAuB;EAE7CC,4BAA4B,EAAE,gCAAgC;EAE9DC,eAAe,EAAE,kBAAkB;EAEnCC,eAAe,EAAE,kBAAkB;EAEnCC,oBAAoB,EAAE,uBAAuB;EAE7CC,iBAAiB,EAAE,qBAAqB;EAExCC,kBAAkB,EAAE;AACtB,CAAU;AAKV;AACA;AACA;AACO,SAASC,iBAAiBA,CAAA,EAA6B;EAC5D,OAAOC,MAAM,CAACC,MAAM,CAACrF,iBAAiB,CAAC;AACzC","ignoreList":[]}
1
+ {"version":3,"names":["AdshiftEventParam","exports","Price","Revenue","ProjectedRevenue","Currency","Quantity","ReceiptId","OrderId","CouponCode","PaymentInfoAvailable","Validated","ContentType","ContentId","ContentList","Content","Class","Description","SearchString","RatingValue","MaxRatingValue","ReviewText","CustomerUserId","RegistrationMethod","Level","Score","Success","TutorialId","AchievementId","VirtualCurrencyName","DeepLink","OldVersion","NewVersion","Channel","TouchObj","DateA","DateB","EventStart","EventEnd","Latitude","Longitude","City","Region","Country","DestinationA","DestinationB","DestinationList","DepartingDepartureDate","ReturningDepartureDate","DepartingArrivalDate","ReturningArrivalDate","TravelStart","TravelEnd","SuggestedDestinations","SuggestedHotels","NumAdults","NumChildren","NumInfants","UserScore","HotelScore","PurchaseCurrency","PreferredStarRatings","PreferredPriceRange","PreferredNeighborhoods","PreferredNumStops","Param1","Param2","Param3","Param4","Param5","Param6","Param7","Param8","Param9","Param10","AdRevenueSource","AdRevenueNetworkName","AdRevenueMediatedNetworkName","AdRevenueAdType","AdRevenueAdSize","AdRevenuePlacementId","AdRevenueAdUnitId","AdRevenuePrecision","getAllEventParams","Object","values"],"sourceRoot":"../../../src","sources":["types/AdshiftEventParam.ts"],"mappings":";;;;;;;AAAA;A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iB,CAAC;AACzC","ignoreList":[]}
@@ -5,29 +5,8 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.AdshiftEventType = void 0;
7
7
  exports.getAllEventTypes = getAllEventTypes;
8
- /**
9
- * Predefined event types for AdShift SDK.
10
- *
11
- * Use these constants for consistent event naming across your app.
12
- *
13
- * Pair them with `AdshiftEventParam` for the values.
14
- *
15
- * @example
16
- * ```typescript
17
- * await Adshift.trackEvent(AdshiftEventType.AddToCart, {
18
- * [AdshiftEventParam.ContentId]: 'SKU123',
19
- * [AdshiftEventParam.Price]: 29.99,
20
- * });
21
- * ```
22
- *
23
- * You can also use custom event names as strings:
24
- * ```typescript
25
- * await Adshift.trackEvent('custom_event_name');
26
- * ```
27
- */
8
+ /** Standard event names; any other name is tracked as a custom event. */
28
9
  const AdshiftEventType = exports.AdshiftEventType = {
29
- // ============ E-commerce Events ============
30
-
31
10
  AddToCart: 'as_add_to_cart',
32
11
  AddToWishList: 'as_add_to_wishlist',
33
12
  AddPaymentInfo: 'as_add_payment_info',
@@ -36,52 +15,35 @@ const AdshiftEventType = exports.AdshiftEventType = {
36
15
  ContentView: 'as_content_view',
37
16
  ListView: 'as_list_view',
38
17
  Search: 'as_search',
39
- // ============ User Lifecycle Events ============
40
-
41
18
  CompleteRegistration: 'as_complete_registration',
42
19
  Login: 'as_login',
43
20
  TutorialCompletion: 'as_tutorial_completion',
44
21
  Subscribe: 'as_subscribe',
45
22
  StartTrial: 'as_start_trial',
46
- // ============ Gaming Events ============
47
-
48
23
  LevelAchieved: 'as_level_achieved',
49
24
  AchievementUnlocked: 'as_achievement_unlocked',
50
25
  /** Note the plural in the value; the key is singular for compatibility. */
51
26
  SpentCredit: 'as_spent_credits',
52
- // ============ Engagement Events ============
53
-
54
27
  Rate: 'as_rate',
55
28
  Share: 'as_share',
56
29
  Invite: 'as_invite',
57
30
  ReEngage: 'as_re_engage',
58
31
  Update: 'as_update',
59
32
  OpenedFromPushNotification: 'as_opened_from_push_notification',
60
- // ============ Travel Events ============
61
-
62
33
  TravelBooking: 'as_travel_booking',
63
- // ============ Ad Events ============
64
-
65
34
  AdClick: 'as_ad_click',
66
35
  AdView: 'as_ad_view',
67
36
  /** Ad revenue impression. Prefer `Adshift.logAdRevenue()`. */
68
37
  AdRevenue: 'as_ad_revenue',
69
- // ============ Location Events ============
70
-
71
38
  /** Region or place the user moved to, as your own values. */
72
39
  LocationChanged: 'as_location_changed',
73
40
  /** Latitude and longitude. Send only what your privacy notice covers. */
74
41
  LocationCoordinates: 'as_location_coordinates',
75
- // ============ Other Events ============
76
-
77
42
  /** Your order identifier, for matching purchases with your own records. */
78
43
  OrderId: 'as_order_id',
79
44
  /** Segment the user belongs to, for audience reporting. */
80
45
  CustomerSegment: 'as_customer_segment'
81
46
  };
82
- /**
83
- * Returns all predefined event types as an array.
84
- */
85
47
  function getAllEventTypes() {
86
48
  return Object.values(AdshiftEventType);
87
49
  }
@@ -1 +1 @@
1
- {"version":3,"names":["AdshiftEventType","exports","AddToCart","AddToWishList","AddPaymentInfo","InitiatedCheckout","Purchase","ContentView","ListView","Search","CompleteRegistration","Login","TutorialCompletion","Subscribe","StartTrial","LevelAchieved","AchievementUnlocked","SpentCredit","Rate","Share","Invite","ReEngage","Update","OpenedFromPushNotification","TravelBooking","AdClick","AdView","AdRevenue","LocationChanged","LocationCoordinates","OrderId","CustomerSegment","getAllEventTypes","Object","values"],"sourceRoot":"../../../src","sources":["types/AdshiftEventType.ts"],"mappings":";;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,MAAMA,gBAAgB,GAAAC,OAAA,CAAAD,gBAAA,GAAG;EAC9B;;EAEAE,SAAS,EAAE,gBAAgB;EAE3BC,aAAa,EAAE,oBAAoB;EAEnCC,cAAc,EAAE,qBAAqB;EAErCC,iBAAiB,EAAE,uBAAuB;EAE1CC,QAAQ,EAAE,aAAa;EAEvBC,WAAW,EAAE,iBAAiB;EAE9BC,QAAQ,EAAE,cAAc;EAExBC,MAAM,EAAE,WAAW;EAEnB;;EAEAC,oBAAoB,EAAE,0BAA0B;EAEhDC,KAAK,EAAE,UAAU;EAEjBC,kBAAkB,EAAE,wBAAwB;EAE5CC,SAAS,EAAE,cAAc;EAEzBC,UAAU,EAAE,gBAAgB;EAE5B;;EAEAC,aAAa,EAAE,mBAAmB;EAElCC,mBAAmB,EAAE,yBAAyB;EAE9C;EACAC,WAAW,EAAE,kBAAkB;EAE/B;;EAEAC,IAAI,EAAE,SAAS;EAEfC,KAAK,EAAE,UAAU;EAEjBC,MAAM,EAAE,WAAW;EAEnBC,QAAQ,EAAE,cAAc;EAExBC,MAAM,EAAE,WAAW;EAEnBC,0BAA0B,EAAE,kCAAkC;EAE9D;;EAEAC,aAAa,EAAE,mBAAmB;EAElC;;EAEAC,OAAO,EAAE,aAAa;EAEtBC,MAAM,EAAE,YAAY;EAEpB;EACAC,SAAS,EAAE,eAAe;EAE1B;;EAEA;EACAC,eAAe,EAAE,qBAAqB;EAEtC;EACAC,mBAAmB,EAAE,yBAAyB;EAE9C;;EAEA;EACAC,OAAO,EAAE,aAAa;EAEtB;EACAC,eAAe,EAAE;AACnB,CAAU;AAKV;AACA;AACA;AACO,SAASC,gBAAgBA,CAAA,EAA4B;EAC1D,OAAOC,MAAM,CAACC,MAAM,CAAClC,gBAAgB,CAAC;AACxC","ignoreList":[]}
1
+ {"version":3,"names":["AdshiftEventType","exports","AddToCart","AddToWishList","AddPaymentInfo","InitiatedCheckout","Purchase","ContentView","ListView","Search","CompleteRegistration","Login","TutorialCompletion","Subscribe","StartTrial","LevelAchieved","AchievementUnlocked","SpentCredit","Rate","Share","Invite","ReEngage","Update","OpenedFromPushNotification","TravelBooking","AdClick","AdView","AdRevenue","LocationChanged","LocationCoordinates","OrderId","CustomerSegment","getAllEventTypes","Object","values"],"sourceRoot":"../../../src","sources":["types/AdshiftEventType.ts"],"mappings":";;;;;;;AAAA;AACO,MAAMA,gBAAgB,GAAAC,OAAA,CAAAD,gBAAA,GAAG;EAC9BE,SAAS,EAAE,gBAAgB;EAE3BC,aAAa,EAAE,oBAAoB;EAEnCC,cAAc,EAAE,qBAAqB;EAErCC,iBAAiB,EAAE,uBAAuB;EAE1CC,QAAQ,EAAE,aAAa;EAEvBC,WAAW,EAAE,iBAAiB;EAE9BC,QAAQ,EAAE,cAAc;EAExBC,MAAM,EAAE,WAAW;EAEnBC,oBAAoB,EAAE,0BAA0B;EAEhDC,KAAK,EAAE,UAAU;EAEjBC,kBAAkB,EAAE,wBAAwB;EAE5CC,SAAS,EAAE,cAAc;EAEzBC,UAAU,EAAE,gBAAgB;EAE5BC,aAAa,EAAE,mBAAmB;EAElCC,mBAAmB,EAAE,yBAAyB;EAE9C;EACAC,WAAW,EAAE,kBAAkB;EAE/BC,IAAI,EAAE,SAAS;EAEfC,KAAK,EAAE,UAAU;EAEjBC,MAAM,EAAE,WAAW;EAEnBC,QAAQ,EAAE,cAAc;EAExBC,MAAM,EAAE,WAAW;EAEnBC,0BAA0B,EAAE,kCAAkC;EAE9DC,aAAa,EAAE,mBAAmB;EAElCC,OAAO,EAAE,aAAa;EAEtBC,MAAM,EAAE,YAAY;EAEpB;EACAC,SAAS,EAAE,eAAe;EAE1B;EACAC,eAAe,EAAE,qBAAqB;EAEtC;EACAC,mBAAmB,EAAE,yBAAyB;EAE9C;EACAC,OAAO,EAAE,aAAa;EAEtB;EACAC,eAAe,EAAE;AACnB,CAAU;AAKH,SAASC,gBAAgBA,CAAA,EAA4B;EAC1D,OAAOC,MAAM,CAACC,MAAM,CAAClC,gBAAgB,CAAC;AACxC","ignoreList":[]}
@@ -6,35 +6,12 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.AdshiftThirdPartySharing = void 0;
7
7
  exports.thirdPartySharingToMap = thirdPartySharingToMap;
8
8
  /**
9
- * What the app says about passing this user's data on to someone else.
10
- *
11
- * A separate question from {@link AdshiftConsent}, and one with the opposite
12
- * default. Consent under GDPR must be affirmative, so a flag nobody set counts
13
- * as no consent. Here nothing said means sharing is allowed — which is why this
14
- * is not a fourth flag on the consent object: folding the two together would
15
- * make one of them wrong.
16
- *
17
- * The three states live in the calls rather than in a nullable field. Never
18
- * calling `Adshift.setThirdPartySharing()` leaves the question unanswered,
19
- * `Adshift.clearThirdPartySharing()` returns to unanswered, and the value here
20
- * is the answer itself.
21
- *
22
- * An object rather than a bare `boolean` so a field can be added later without
23
- * breaking callers.
24
- *
25
- * @example
26
- * ```typescript
27
- * // The user asked not to have their data passed on
28
- * Adshift.setThirdPartySharing(AdshiftThirdPartySharing.optedOut());
29
- *
30
- * // The user was asked and did not opt out
31
- * Adshift.setThirdPartySharing(AdshiftThirdPartySharing.allowed());
32
- * ```
9
+ * The user's answer on passing their data on to advertising partners. Unlike
10
+ * consent, no answer means allowed. Until `Adshift.setThirdPartySharing()` is
11
+ * called, or after `clearThirdPartySharing()`, the question is unanswered.
33
12
  */
34
13
 
35
- /**
36
- * Helper functions for creating `AdshiftThirdPartySharing` objects.
37
- */
14
+ /** Builds `AdshiftThirdPartySharing` values. */
38
15
  const AdshiftThirdPartySharing = exports.AdshiftThirdPartySharing = {
39
16
  /** The user asked not to have their data passed on. */
40
17
  optedOut() {
@@ -43,12 +20,8 @@ const AdshiftThirdPartySharing = exports.AdshiftThirdPartySharing = {
43
20
  };
44
21
  },
45
22
  /**
46
- * The user did not ask to be excluded.
47
- *
48
- * Only worth sending when the app has actually asked. Setting this at startup
49
- * as a default is the one mistake to avoid here: a CMP answer arriving later
50
- * cannot be undone for events already sent, and the declaration is recorded
51
- * as the app's own rather than as the absence of one.
23
+ * The user was asked and did not opt out. Not a default for startup: a later
24
+ * answer cannot correct events already sent.
52
25
  */
53
26
  allowed() {
54
27
  return {
@@ -57,11 +30,7 @@ const AdshiftThirdPartySharing = exports.AdshiftThirdPartySharing = {
57
30
  }
58
31
  };
59
32
 
60
- /**
61
- * Converts `AdshiftThirdPartySharing` to a plain object for the native bridge.
62
- *
63
- * @internal
64
- */
33
+ /** @internal */
65
34
  function thirdPartySharingToMap(sharing) {
66
35
  return {
67
36
  optOut: sharing.optOut === true
@@ -1 +1 @@
1
- {"version":3,"names":["AdshiftThirdPartySharing","exports","optedOut","optOut","allowed","thirdPartySharingToMap","sharing"],"sourceRoot":"../../../src","sources":["types/AdshiftThirdPartySharing.ts"],"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;AACA;AACA;;AAMA;AACA;AACA;AACO,MAAMA,wBAAwB,GAAAC,OAAA,CAAAD,wBAAA,GAAG;EACtC;EACAE,QAAQA,CAAA,EAA6B;IACnC,OAAO;MAAEC,MAAM,EAAE;IAAK,CAAC;EACzB,CAAC;EAED;AACF;AACA;AACA;AACA;AACA;AACA;AACA;EACEC,OAAOA,CAAA,EAA6B;IAClC,OAAO;MAAED,MAAM,EAAE;IAAM,CAAC;EAC1B;AACF,CAAC;;AAED;AACA;AACA;AACA;AACA;AACO,SAASE,sBAAsBA,CACpCC,OAAiC,EACR;EACzB,OAAO;IAAEH,MAAM,EAAEG,OAAO,CAACH,MAAM,KAAK;EAAK,CAAC;AAC5C","ignoreList":[]}
1
+ {"version":3,"names":["AdshiftThirdPartySharing","exports","optedOut","optOut","allowed","thirdPartySharingToMap","sharing"],"sourceRoot":"../../../src","sources":["types/AdshiftThirdPartySharing.ts"],"mappings":";;;;;;;AAAA;AACA;AACA;AACA;AACA;;AAMA;AACO,MAAMA,wBAAwB,GAAAC,OAAA,CAAAD,wBAAA,GAAG;EACtC;EACAE,QAAQA,CAAA,EAA6B;IACnC,OAAO;MAAEC,MAAM,EAAE;IAAK,CAAC;EACzB,CAAC;EAED;AACF;AACA;AACA;EACEC,OAAOA,CAAA,EAA6B;IAClC,OAAO;MAAED,MAAM,EAAE;IAAM,CAAC;EAC1B;AACF,CAAC;;AAED;AACO,SAASE,sBAAsBA,CACpCC,OAAiC,EACR;EACzB,OAAO;IAAEH,MAAM,EAAEG,OAAO,CAACH,MAAM,KAAK;EAAK,CAAC;AAC5C","ignoreList":[]}
@@ -5,5 +5,5 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.PLUGIN_VERSION = void 0;
7
7
  // Generated by scripts/write-version.js from package.json. Do not edit.
8
- const PLUGIN_VERSION = exports.PLUGIN_VERSION = '3.0.0';
8
+ const PLUGIN_VERSION = exports.PLUGIN_VERSION = '3.1.0';
9
9
  //# sourceMappingURL=version.js.map