@qonversion/react-native-sdk 10.0.0-RC1

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 (290) hide show
  1. package/README.md +129 -0
  2. package/android/build.gradle +92 -0
  3. package/android/gradle.properties +6 -0
  4. package/android/src/main/AndroidManifest.xml +2 -0
  5. package/android/src/main/java/com/qonversion/reactnativesdk/EntitiesConverter.kt +135 -0
  6. package/android/src/main/java/com/qonversion/reactnativesdk/NoCodesModule.kt +76 -0
  7. package/android/src/main/java/com/qonversion/reactnativesdk/QonversionModule.kt +278 -0
  8. package/android/src/main/java/com/qonversion/reactnativesdk/QonversionPackage.kt +43 -0
  9. package/android/src/main/java/com/qonversion/reactnativesdk/Utils.kt +32 -0
  10. package/ios/RNNoCodes.h +5 -0
  11. package/ios/RNNoCodes.mm +61 -0
  12. package/ios/RNNoCodesImpl.swift +69 -0
  13. package/ios/RNQonversion.h +5 -0
  14. package/ios/RNQonversion.mm +189 -0
  15. package/ios/RNQonversionImpl.swift +250 -0
  16. package/ios/qonversion-react-native-sdk-Bridging-Header.h +6 -0
  17. package/lib/module/NoCodes.js +32 -0
  18. package/lib/module/NoCodes.js.map +1 -0
  19. package/lib/module/NoCodesApi.js +2 -0
  20. package/lib/module/NoCodesApi.js.map +1 -0
  21. package/lib/module/NoCodesConfig.js +10 -0
  22. package/lib/module/NoCodesConfig.js.map +1 -0
  23. package/lib/module/NoCodesConfigBuilder.js +35 -0
  24. package/lib/module/NoCodesConfigBuilder.js.map +1 -0
  25. package/lib/module/Qonversion.js +35 -0
  26. package/lib/module/Qonversion.js.map +1 -0
  27. package/lib/module/QonversionApi.js +4 -0
  28. package/lib/module/QonversionApi.js.map +1 -0
  29. package/lib/module/QonversionConfig.js +16 -0
  30. package/lib/module/QonversionConfig.js.map +1 -0
  31. package/lib/module/QonversionConfigBuilder.js +90 -0
  32. package/lib/module/QonversionConfigBuilder.js.map +1 -0
  33. package/lib/module/dto/Entitlement.js +24 -0
  34. package/lib/module/dto/Entitlement.js.map +1 -0
  35. package/lib/module/dto/EntitlementsUpdateListener.js +4 -0
  36. package/lib/module/dto/EntitlementsUpdateListener.js.map +1 -0
  37. package/lib/module/dto/Experiment.js +11 -0
  38. package/lib/module/dto/Experiment.js.map +1 -0
  39. package/lib/module/dto/ExperimentGroup.js +11 -0
  40. package/lib/module/dto/ExperimentGroup.js.map +1 -0
  41. package/lib/module/dto/IntroEligibility.js +9 -0
  42. package/lib/module/dto/IntroEligibility.js.map +1 -0
  43. package/lib/module/dto/NoCodesAction.js +11 -0
  44. package/lib/module/dto/NoCodesAction.js.map +1 -0
  45. package/lib/module/dto/NoCodesError.js +13 -0
  46. package/lib/module/dto/NoCodesError.js.map +1 -0
  47. package/lib/module/dto/NoCodesListener.js +4 -0
  48. package/lib/module/dto/NoCodesListener.js.map +1 -0
  49. package/lib/module/dto/Offering.js +14 -0
  50. package/lib/module/dto/Offering.js.map +1 -0
  51. package/lib/module/dto/Offerings.js +13 -0
  52. package/lib/module/dto/Offerings.js.map +1 -0
  53. package/lib/module/dto/Product.js +114 -0
  54. package/lib/module/dto/Product.js.map +1 -0
  55. package/lib/module/dto/PromoPurchasesListener.js +4 -0
  56. package/lib/module/dto/PromoPurchasesListener.js.map +1 -0
  57. package/lib/module/dto/PromotionalOffer.js +10 -0
  58. package/lib/module/dto/PromotionalOffer.js.map +1 -0
  59. package/lib/module/dto/PurchaseModel.js +26 -0
  60. package/lib/module/dto/PurchaseModel.js.map +1 -0
  61. package/lib/module/dto/PurchaseOptions.js +15 -0
  62. package/lib/module/dto/PurchaseOptions.js.map +1 -0
  63. package/lib/module/dto/PurchaseOptionsBuilder.js +117 -0
  64. package/lib/module/dto/PurchaseOptionsBuilder.js.map +1 -0
  65. package/lib/module/dto/PurchaseUpdateModel.js +32 -0
  66. package/lib/module/dto/PurchaseUpdateModel.js.map +1 -0
  67. package/lib/module/dto/QonversionError.js +15 -0
  68. package/lib/module/dto/QonversionError.js.map +1 -0
  69. package/lib/module/dto/RemoteConfig.js +11 -0
  70. package/lib/module/dto/RemoteConfig.js.map +1 -0
  71. package/lib/module/dto/RemoteConfigList.js +18 -0
  72. package/lib/module/dto/RemoteConfigList.js.map +1 -0
  73. package/lib/module/dto/RemoteConfigurationSource.js +13 -0
  74. package/lib/module/dto/RemoteConfigurationSource.js.map +1 -0
  75. package/lib/module/dto/ScreenPresentationConfig.js +22 -0
  76. package/lib/module/dto/ScreenPresentationConfig.js.map +1 -0
  77. package/lib/module/dto/SubscriptionPeriod.js +26 -0
  78. package/lib/module/dto/SubscriptionPeriod.js.map +1 -0
  79. package/lib/module/dto/Transaction.js +18 -0
  80. package/lib/module/dto/Transaction.js.map +1 -0
  81. package/lib/module/dto/User.js +10 -0
  82. package/lib/module/dto/User.js.map +1 -0
  83. package/lib/module/dto/UserProperties.js +71 -0
  84. package/lib/module/dto/UserProperties.js.map +1 -0
  85. package/lib/module/dto/UserProperty.js +17 -0
  86. package/lib/module/dto/UserProperty.js.map +1 -0
  87. package/lib/module/dto/enums.js +425 -0
  88. package/lib/module/dto/enums.js.map +1 -0
  89. package/lib/module/dto/storeProducts/ProductInAppDetails.js +16 -0
  90. package/lib/module/dto/storeProducts/ProductInAppDetails.js.map +1 -0
  91. package/lib/module/dto/storeProducts/ProductInstallmentPlanDetails.js +25 -0
  92. package/lib/module/dto/storeProducts/ProductInstallmentPlanDetails.js.map +1 -0
  93. package/lib/module/dto/storeProducts/ProductOfferDetails.js +76 -0
  94. package/lib/module/dto/storeProducts/ProductOfferDetails.js.map +1 -0
  95. package/lib/module/dto/storeProducts/ProductPrice.js +37 -0
  96. package/lib/module/dto/storeProducts/ProductPrice.js.map +1 -0
  97. package/lib/module/dto/storeProducts/ProductPricingPhase.js +52 -0
  98. package/lib/module/dto/storeProducts/ProductPricingPhase.js.map +1 -0
  99. package/lib/module/dto/storeProducts/ProductStoreDetails.js +114 -0
  100. package/lib/module/dto/storeProducts/ProductStoreDetails.js.map +1 -0
  101. package/lib/module/dto/storeProducts/SKPaymentDiscount.js +13 -0
  102. package/lib/module/dto/storeProducts/SKPaymentDiscount.js.map +1 -0
  103. package/lib/module/dto/storeProducts/SKProduct.js +22 -0
  104. package/lib/module/dto/storeProducts/SKProduct.js.map +1 -0
  105. package/lib/module/dto/storeProducts/SKProductDiscount.js +16 -0
  106. package/lib/module/dto/storeProducts/SKProductDiscount.js.map +1 -0
  107. package/lib/module/dto/storeProducts/SKSubscriptionPeriod.js +10 -0
  108. package/lib/module/dto/storeProducts/SKSubscriptionPeriod.js.map +1 -0
  109. package/lib/module/dto/storeProducts/SkuDetails.js +30 -0
  110. package/lib/module/dto/storeProducts/SkuDetails.js.map +1 -0
  111. package/lib/module/index.js +40 -0
  112. package/lib/module/index.js.map +1 -0
  113. package/lib/module/internal/Mapper.js +676 -0
  114. package/lib/module/internal/Mapper.js.map +1 -0
  115. package/lib/module/internal/NoCodesInternal.js +70 -0
  116. package/lib/module/internal/NoCodesInternal.js.map +1 -0
  117. package/lib/module/internal/QonversionInternal.js +237 -0
  118. package/lib/module/internal/QonversionInternal.js.map +1 -0
  119. package/lib/module/internal/specs/NativeNoCodesModule.js +5 -0
  120. package/lib/module/internal/specs/NativeNoCodesModule.js.map +1 -0
  121. package/lib/module/internal/specs/NativeQonversionModule.js +5 -0
  122. package/lib/module/internal/specs/NativeQonversionModule.js.map +1 -0
  123. package/lib/module/internal/utils.js +10 -0
  124. package/lib/module/internal/utils.js.map +1 -0
  125. package/lib/module/package.json +1 -0
  126. package/lib/typescript/package.json +1 -0
  127. package/lib/typescript/src/NoCodes.d.ts +23 -0
  128. package/lib/typescript/src/NoCodes.d.ts.map +1 -0
  129. package/lib/typescript/src/NoCodesApi.d.ts +20 -0
  130. package/lib/typescript/src/NoCodesApi.d.ts.map +1 -0
  131. package/lib/typescript/src/NoCodesConfig.d.ts +8 -0
  132. package/lib/typescript/src/NoCodesConfig.d.ts.map +1 -0
  133. package/lib/typescript/src/NoCodesConfigBuilder.d.ts +26 -0
  134. package/lib/typescript/src/NoCodesConfigBuilder.d.ts.map +1 -0
  135. package/lib/typescript/src/Qonversion.d.ts +26 -0
  136. package/lib/typescript/src/Qonversion.d.ts.map +1 -0
  137. package/lib/typescript/src/QonversionApi.d.ts +285 -0
  138. package/lib/typescript/src/QonversionApi.d.ts.map +1 -0
  139. package/lib/typescript/src/QonversionConfig.d.ts +14 -0
  140. package/lib/typescript/src/QonversionConfig.d.ts.map +1 -0
  141. package/lib/typescript/src/QonversionConfigBuilder.d.ts +65 -0
  142. package/lib/typescript/src/QonversionConfigBuilder.d.ts.map +1 -0
  143. package/lib/typescript/src/dto/Entitlement.d.ts +22 -0
  144. package/lib/typescript/src/dto/Entitlement.d.ts.map +1 -0
  145. package/lib/typescript/src/dto/EntitlementsUpdateListener.d.ts +10 -0
  146. package/lib/typescript/src/dto/EntitlementsUpdateListener.d.ts.map +1 -0
  147. package/lib/typescript/src/dto/Experiment.d.ts +9 -0
  148. package/lib/typescript/src/dto/Experiment.d.ts.map +1 -0
  149. package/lib/typescript/src/dto/ExperimentGroup.d.ts +9 -0
  150. package/lib/typescript/src/dto/ExperimentGroup.d.ts.map +1 -0
  151. package/lib/typescript/src/dto/IntroEligibility.d.ts +7 -0
  152. package/lib/typescript/src/dto/IntroEligibility.d.ts.map +1 -0
  153. package/lib/typescript/src/dto/NoCodesAction.d.ts +10 -0
  154. package/lib/typescript/src/dto/NoCodesAction.d.ts.map +1 -0
  155. package/lib/typescript/src/dto/NoCodesError.d.ts +12 -0
  156. package/lib/typescript/src/dto/NoCodesError.d.ts.map +1 -0
  157. package/lib/typescript/src/dto/NoCodesListener.d.ts +34 -0
  158. package/lib/typescript/src/dto/NoCodesListener.d.ts.map +1 -0
  159. package/lib/typescript/src/dto/Offering.d.ts +11 -0
  160. package/lib/typescript/src/dto/Offering.d.ts.map +1 -0
  161. package/lib/typescript/src/dto/Offerings.d.ts +9 -0
  162. package/lib/typescript/src/dto/Offerings.d.ts.map +1 -0
  163. package/lib/typescript/src/dto/Product.d.ts +95 -0
  164. package/lib/typescript/src/dto/Product.d.ts.map +1 -0
  165. package/lib/typescript/src/dto/PromoPurchasesListener.d.ts +12 -0
  166. package/lib/typescript/src/dto/PromoPurchasesListener.d.ts.map +1 -0
  167. package/lib/typescript/src/dto/PromotionalOffer.d.ts +9 -0
  168. package/lib/typescript/src/dto/PromotionalOffer.d.ts.map +1 -0
  169. package/lib/typescript/src/dto/PurchaseModel.d.ts +19 -0
  170. package/lib/typescript/src/dto/PurchaseModel.d.ts.map +1 -0
  171. package/lib/typescript/src/dto/PurchaseOptions.d.ts +15 -0
  172. package/lib/typescript/src/dto/PurchaseOptions.d.ts.map +1 -0
  173. package/lib/typescript/src/dto/PurchaseOptionsBuilder.d.ts +84 -0
  174. package/lib/typescript/src/dto/PurchaseOptionsBuilder.d.ts.map +1 -0
  175. package/lib/typescript/src/dto/PurchaseUpdateModel.d.ts +25 -0
  176. package/lib/typescript/src/dto/PurchaseUpdateModel.d.ts.map +1 -0
  177. package/lib/typescript/src/dto/QonversionError.d.ts +11 -0
  178. package/lib/typescript/src/dto/QonversionError.d.ts.map +1 -0
  179. package/lib/typescript/src/dto/RemoteConfig.d.ts +10 -0
  180. package/lib/typescript/src/dto/RemoteConfig.d.ts.map +1 -0
  181. package/lib/typescript/src/dto/RemoteConfigList.d.ts +10 -0
  182. package/lib/typescript/src/dto/RemoteConfigList.d.ts.map +1 -0
  183. package/lib/typescript/src/dto/RemoteConfigurationSource.d.ts +11 -0
  184. package/lib/typescript/src/dto/RemoteConfigurationSource.d.ts.map +1 -0
  185. package/lib/typescript/src/dto/ScreenPresentationConfig.d.ts +18 -0
  186. package/lib/typescript/src/dto/ScreenPresentationConfig.d.ts.map +1 -0
  187. package/lib/typescript/src/dto/SubscriptionPeriod.d.ts +21 -0
  188. package/lib/typescript/src/dto/SubscriptionPeriod.d.ts.map +1 -0
  189. package/lib/typescript/src/dto/Transaction.d.ts +16 -0
  190. package/lib/typescript/src/dto/Transaction.d.ts.map +1 -0
  191. package/lib/typescript/src/dto/User.d.ts +7 -0
  192. package/lib/typescript/src/dto/User.d.ts.map +1 -0
  193. package/lib/typescript/src/dto/UserProperties.d.ts +49 -0
  194. package/lib/typescript/src/dto/UserProperties.d.ts.map +1 -0
  195. package/lib/typescript/src/dto/UserProperty.d.ts +13 -0
  196. package/lib/typescript/src/dto/UserProperty.d.ts.map +1 -0
  197. package/lib/typescript/src/dto/enums.d.ts +343 -0
  198. package/lib/typescript/src/dto/enums.d.ts.map +1 -0
  199. package/lib/typescript/src/dto/storeProducts/ProductInAppDetails.d.ts +13 -0
  200. package/lib/typescript/src/dto/storeProducts/ProductInAppDetails.d.ts.map +1 -0
  201. package/lib/typescript/src/dto/storeProducts/ProductInstallmentPlanDetails.d.ts +20 -0
  202. package/lib/typescript/src/dto/storeProducts/ProductInstallmentPlanDetails.d.ts.map +1 -0
  203. package/lib/typescript/src/dto/storeProducts/ProductOfferDetails.d.ts +63 -0
  204. package/lib/typescript/src/dto/storeProducts/ProductOfferDetails.d.ts.map +1 -0
  205. package/lib/typescript/src/dto/storeProducts/ProductPrice.d.ts +29 -0
  206. package/lib/typescript/src/dto/storeProducts/ProductPrice.d.ts.map +1 -0
  207. package/lib/typescript/src/dto/storeProducts/ProductPricingPhase.d.ts +44 -0
  208. package/lib/typescript/src/dto/storeProducts/ProductPricingPhase.d.ts.map +1 -0
  209. package/lib/typescript/src/dto/storeProducts/ProductStoreDetails.d.ts +97 -0
  210. package/lib/typescript/src/dto/storeProducts/ProductStoreDetails.d.ts.map +1 -0
  211. package/lib/typescript/src/dto/storeProducts/SKPaymentDiscount.d.ts +10 -0
  212. package/lib/typescript/src/dto/storeProducts/SKPaymentDiscount.d.ts.map +1 -0
  213. package/lib/typescript/src/dto/storeProducts/SKProduct.d.ts +21 -0
  214. package/lib/typescript/src/dto/storeProducts/SKProduct.d.ts.map +1 -0
  215. package/lib/typescript/src/dto/storeProducts/SKProductDiscount.d.ts +15 -0
  216. package/lib/typescript/src/dto/storeProducts/SKProductDiscount.d.ts.map +1 -0
  217. package/lib/typescript/src/dto/storeProducts/SKSubscriptionPeriod.d.ts +8 -0
  218. package/lib/typescript/src/dto/storeProducts/SKSubscriptionPeriod.d.ts.map +1 -0
  219. package/lib/typescript/src/dto/storeProducts/SkuDetails.d.ts +27 -0
  220. package/lib/typescript/src/dto/storeProducts/SkuDetails.d.ts.map +1 -0
  221. package/lib/typescript/src/index.d.ts +41 -0
  222. package/lib/typescript/src/index.d.ts.map +1 -0
  223. package/lib/typescript/src/internal/Mapper.d.ts +312 -0
  224. package/lib/typescript/src/internal/Mapper.d.ts.map +1 -0
  225. package/lib/typescript/src/internal/NoCodesInternal.d.ts +14 -0
  226. package/lib/typescript/src/internal/NoCodesInternal.d.ts.map +1 -0
  227. package/lib/typescript/src/internal/QonversionInternal.d.ts +60 -0
  228. package/lib/typescript/src/internal/QonversionInternal.d.ts.map +1 -0
  229. package/lib/typescript/src/internal/specs/NativeNoCodesModule.d.ts +17 -0
  230. package/lib/typescript/src/internal/specs/NativeNoCodesModule.d.ts.map +1 -0
  231. package/lib/typescript/src/internal/specs/NativeQonversionModule.d.ts +56 -0
  232. package/lib/typescript/src/internal/specs/NativeQonversionModule.d.ts.map +1 -0
  233. package/lib/typescript/src/internal/utils.d.ts +3 -0
  234. package/lib/typescript/src/internal/utils.d.ts.map +1 -0
  235. package/package.json +151 -0
  236. package/qonversion-react-native-sdk.podspec +21 -0
  237. package/src/NoCodes.ts +37 -0
  238. package/src/NoCodesApi.ts +22 -0
  239. package/src/NoCodesConfig.ts +16 -0
  240. package/src/NoCodesConfigBuilder.ts +40 -0
  241. package/src/Qonversion.ts +40 -0
  242. package/src/QonversionApi.ts +318 -0
  243. package/src/QonversionConfig.ts +32 -0
  244. package/src/QonversionConfigBuilder.ts +102 -0
  245. package/src/dto/Entitlement.ts +57 -0
  246. package/src/dto/EntitlementsUpdateListener.ts +11 -0
  247. package/src/dto/Experiment.ts +15 -0
  248. package/src/dto/ExperimentGroup.ts +15 -0
  249. package/src/dto/IntroEligibility.ts +11 -0
  250. package/src/dto/NoCodesAction.ts +21 -0
  251. package/src/dto/NoCodesError.ts +26 -0
  252. package/src/dto/NoCodesListener.ts +39 -0
  253. package/src/dto/Offering.ts +20 -0
  254. package/src/dto/Offerings.ts +17 -0
  255. package/src/dto/Product.ts +159 -0
  256. package/src/dto/PromoPurchasesListener.ts +13 -0
  257. package/src/dto/PromotionalOffer.ts +17 -0
  258. package/src/dto/PurchaseModel.ts +29 -0
  259. package/src/dto/PurchaseOptions.ts +33 -0
  260. package/src/dto/PurchaseOptionsBuilder.ts +127 -0
  261. package/src/dto/PurchaseUpdateModel.ts +43 -0
  262. package/src/dto/QonversionError.ts +24 -0
  263. package/src/dto/RemoteConfig.ts +16 -0
  264. package/src/dto/RemoteConfigList.ts +23 -0
  265. package/src/dto/RemoteConfigurationSource.ts +26 -0
  266. package/src/dto/ScreenPresentationConfig.ts +24 -0
  267. package/src/dto/SubscriptionPeriod.ts +33 -0
  268. package/src/dto/Transaction.ts +40 -0
  269. package/src/dto/User.ts +11 -0
  270. package/src/dto/UserProperties.ts +78 -0
  271. package/src/dto/UserProperty.ts +21 -0
  272. package/src/dto/enums.ts +389 -0
  273. package/src/dto/storeProducts/ProductInAppDetails.ts +17 -0
  274. package/src/dto/storeProducts/ProductInstallmentPlanDetails.ts +28 -0
  275. package/src/dto/storeProducts/ProductOfferDetails.ts +102 -0
  276. package/src/dto/storeProducts/ProductPrice.ts +46 -0
  277. package/src/dto/storeProducts/ProductPricingPhase.ts +71 -0
  278. package/src/dto/storeProducts/ProductStoreDetails.ts +151 -0
  279. package/src/dto/storeProducts/SKPaymentDiscount.ts +23 -0
  280. package/src/dto/storeProducts/SKProduct.ts +53 -0
  281. package/src/dto/storeProducts/SKProductDiscount.ts +38 -0
  282. package/src/dto/storeProducts/SKSubscriptionPeriod.ts +13 -0
  283. package/src/dto/storeProducts/SkuDetails.ts +68 -0
  284. package/src/index.ts +43 -0
  285. package/src/internal/Mapper.ts +1221 -0
  286. package/src/internal/NoCodesInternal.ts +84 -0
  287. package/src/internal/QonversionInternal.ts +370 -0
  288. package/src/internal/specs/NativeNoCodesModule.ts +20 -0
  289. package/src/internal/specs/NativeQonversionModule.ts +74 -0
  290. package/src/internal/utils.ts +9 -0
@@ -0,0 +1,21 @@
1
+ import SKProductDiscount from "./SKProductDiscount";
2
+ import SKSubscriptionPeriod from "./SKSubscriptionPeriod";
3
+ declare class SKProduct {
4
+ localizedDescription?: string;
5
+ localizedTitle?: string;
6
+ price: string;
7
+ localeIdentifier?: string;
8
+ productIdentifier?: string;
9
+ isDownloadable: boolean;
10
+ downloadContentVersion?: string;
11
+ downloadContentLengths?: Array<number>;
12
+ subscriptionPeriod?: SKSubscriptionPeriod;
13
+ productDiscount?: SKProductDiscount;
14
+ discounts?: Array<SKProductDiscount>;
15
+ subscriptionGroupIdentifier?: string;
16
+ isFamilyShareable?: boolean;
17
+ currencyCode: string;
18
+ constructor(localizedDescription: string | undefined, localizedTitle: string | undefined, price: string, localeIdentifier: string | undefined, productIdentifier: string | undefined, isDownloadable: boolean, downloadContentVersion: string | undefined, downloadContentLengths: number[] | undefined, subscriptionPeriod: SKSubscriptionPeriod | undefined, productDiscount: SKProductDiscount | undefined, discounts: SKProductDiscount[] | undefined, subscriptionGroupIdentifier: string | undefined, isFamilyShareable: boolean | undefined, currencyCode: string);
19
+ }
20
+ export default SKProduct;
21
+ //# sourceMappingURL=SKProduct.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SKProduct.d.ts","sourceRoot":"","sources":["../../../../../src/dto/storeProducts/SKProduct.ts"],"names":[],"mappings":"AAAA,OAAO,iBAAiB,MAAM,qBAAqB,CAAC;AACpD,OAAO,oBAAoB,MAAM,wBAAwB,CAAC;AAE1D,cAAM,SAAS;IACb,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,cAAc,EAAE,OAAO,CAAC;IACxB,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,sBAAsB,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACvC,kBAAkB,CAAC,EAAE,oBAAoB,CAAC;IAC1C,eAAe,CAAC,EAAE,iBAAiB,CAAC;IACpC,SAAS,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,CAAC;IACrC,2BAA2B,CAAC,EAAE,MAAM,CAAC;IACrC,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,YAAY,EAAE,MAAM,CAAC;gBAGnB,oBAAoB,EAAE,MAAM,GAAG,SAAS,EACxC,cAAc,EAAE,MAAM,GAAG,SAAS,EAClC,KAAK,EAAE,MAAM,EACb,gBAAgB,EAAE,MAAM,GAAG,SAAS,EACpC,iBAAiB,EAAE,MAAM,GAAG,SAAS,EACrC,cAAc,EAAE,OAAO,EACvB,sBAAsB,EAAE,MAAM,GAAG,SAAS,EAC1C,sBAAsB,EAAE,MAAM,EAAE,GAAG,SAAS,EAC5C,kBAAkB,EAAE,oBAAoB,GAAG,SAAS,EACpD,eAAe,EAAE,iBAAiB,GAAG,SAAS,EAC9C,SAAS,EAAE,iBAAiB,EAAE,GAAG,SAAS,EAC1C,2BAA2B,EAAE,MAAM,GAAG,SAAS,EAC/C,iBAAiB,EAAE,OAAO,GAAG,SAAS,EACtC,YAAY,EAAE,MAAM;CAiBvB;AAED,eAAe,SAAS,CAAC"}
@@ -0,0 +1,15 @@
1
+ import type { SKProductDiscountPaymentModes, SKProductDiscountTypes } from "../enums";
2
+ import SKSubscriptionPeriod from "./SKSubscriptionPeriod";
3
+ declare class SKProductDiscount {
4
+ price: string;
5
+ localeIdentifier?: string;
6
+ numberOfPeriods: number;
7
+ subscriptionPeriod?: SKSubscriptionPeriod;
8
+ paymentMode: SKProductDiscountPaymentModes;
9
+ identifier?: string;
10
+ type: SKProductDiscountTypes;
11
+ currencySymbol: string;
12
+ constructor(price: string, localeIdentifier: string | undefined, numberOfPeriods: number, subscriptionPeriod: SKSubscriptionPeriod | undefined, paymentMode: SKProductDiscountPaymentModes, identifier: string | undefined, type: SKProductDiscountTypes, currencySymbol: string);
13
+ }
14
+ export default SKProductDiscount;
15
+ //# sourceMappingURL=SKProductDiscount.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SKProductDiscount.d.ts","sourceRoot":"","sources":["../../../../../src/dto/storeProducts/SKProductDiscount.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,6BAA6B,EAC7B,sBAAsB,EACvB,MAAM,UAAU,CAAC;AAClB,OAAO,oBAAoB,MAAM,wBAAwB,CAAC;AAE1D,cAAM,iBAAiB;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,eAAe,EAAE,MAAM,CAAC;IACxB,kBAAkB,CAAC,EAAE,oBAAoB,CAAC;IAC1C,WAAW,EAAE,6BAA6B,CAAC;IAC3C,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,sBAAsB,CAAC;IAC7B,cAAc,EAAE,MAAM,CAAC;gBAGrB,KAAK,EAAE,MAAM,EACb,gBAAgB,EAAE,MAAM,GAAG,SAAS,EACpC,eAAe,EAAE,MAAM,EACvB,kBAAkB,EAAE,oBAAoB,GAAG,SAAS,EACpD,WAAW,EAAE,6BAA6B,EAC1C,UAAU,EAAE,MAAM,GAAG,SAAS,EAC9B,IAAI,EAAE,sBAAsB,EAC5B,cAAc,EAAE,MAAM;CAWzB;AAED,eAAe,iBAAiB,CAAC"}
@@ -0,0 +1,8 @@
1
+ import type { SKPeriodUnits } from "../enums";
2
+ declare class SKSubscriptionPeriod {
3
+ numberOfUnits: number;
4
+ unit: SKPeriodUnits;
5
+ constructor(numberOfUnits: number, unit: SKPeriodUnits);
6
+ }
7
+ export default SKSubscriptionPeriod;
8
+ //# sourceMappingURL=SKSubscriptionPeriod.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SKSubscriptionPeriod.d.ts","sourceRoot":"","sources":["../../../../../src/dto/storeProducts/SKSubscriptionPeriod.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAE9C,cAAM,oBAAoB;IACxB,aAAa,EAAE,MAAM,CAAC;IACtB,IAAI,EAAE,aAAa,CAAC;gBAER,aAAa,EAAE,MAAM,EAAE,IAAI,EAAE,aAAa;CAIvD;AAED,eAAe,oBAAoB,CAAC"}
@@ -0,0 +1,27 @@
1
+ /**
2
+ * @deprecated
3
+ */
4
+ declare class SkuDetails {
5
+ description: string;
6
+ freeTrialPeriod: string;
7
+ iconUrl: string;
8
+ introductoryPrice: string;
9
+ introductoryPriceAmountMicros: number;
10
+ introductoryPriceCycles: number;
11
+ introductoryPricePeriod: string;
12
+ originalJson: string;
13
+ originalPrice: string;
14
+ originalPriceAmountMicros: number;
15
+ price: string;
16
+ priceAmountMicros: number;
17
+ priceCurrencyCode: string;
18
+ sku: string;
19
+ subscriptionPeriod: string;
20
+ title: string;
21
+ type: string;
22
+ hashCode: number;
23
+ toString: string;
24
+ constructor(description: string, freeTrialPeriod: string, iconUrl: string, introductoryPrice: string, introductoryPriceAmountMicros: number, introductoryPriceCycles: number, introductoryPricePeriod: string, originalJson: string, originalPrice: string, originalPriceAmountMicros: number, price: string, priceAmountMicros: number, priceCurrencyCode: string, sku: string, subscriptionPeriod: string, title: string, type: string, hashCode: number, toString: string);
25
+ }
26
+ export default SkuDetails;
27
+ //# sourceMappingURL=SkuDetails.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SkuDetails.d.ts","sourceRoot":"","sources":["../../../../../src/dto/storeProducts/SkuDetails.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,cAAM,UAAU;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,eAAe,EAAE,MAAM,CAAC;IACxB,OAAO,EAAE,MAAM,CAAC;IAChB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,6BAA6B,EAAE,MAAM,CAAC;IACtC,uBAAuB,EAAE,MAAM,CAAC;IAChC,uBAAuB,EAAE,MAAM,CAAC;IAChC,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,MAAM,CAAC;IACtB,yBAAyB,EAAE,MAAM,CAAC;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,iBAAiB,EAAE,MAAM,CAAC;IAC1B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,GAAG,EAAE,MAAM,CAAC;IACZ,kBAAkB,EAAE,MAAM,CAAC;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;gBAGf,WAAW,EAAE,MAAM,EACnB,eAAe,EAAE,MAAM,EACvB,OAAO,EAAE,MAAM,EACf,iBAAiB,EAAE,MAAM,EACzB,6BAA6B,EAAE,MAAM,EACrC,uBAAuB,EAAE,MAAM,EAC/B,uBAAuB,EAAE,MAAM,EAC/B,YAAY,EAAE,MAAM,EACpB,aAAa,EAAE,MAAM,EACrB,yBAAyB,EAAE,MAAM,EACjC,KAAK,EAAE,MAAM,EACb,iBAAiB,EAAE,MAAM,EACzB,iBAAiB,EAAE,MAAM,EACzB,GAAG,EAAE,MAAM,EACX,kBAAkB,EAAE,MAAM,EAC1B,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,MAAM;CAsBnB;AAED,eAAe,UAAU,CAAC"}
@@ -0,0 +1,41 @@
1
+ export { default } from './Qonversion';
2
+ export type { QonversionApi } from './QonversionApi';
3
+ export { default as QonversionConfig } from './QonversionConfig';
4
+ export { default as QonversionConfigBuilder } from './QonversionConfigBuilder';
5
+ export type { EntitlementsUpdateListener } from './dto/EntitlementsUpdateListener';
6
+ export * from './dto/enums';
7
+ export { default as IntroEligibility } from './dto/IntroEligibility';
8
+ export { default as Offering } from './dto/Offering';
9
+ export { default as Offerings } from './dto/Offerings';
10
+ export { default as Entitlement } from './dto/Entitlement';
11
+ export { default as Product } from './dto/Product';
12
+ export { default as PurchaseModel } from './dto/PurchaseModel';
13
+ export { default as PurchaseUpdateModel } from './dto/PurchaseUpdateModel';
14
+ export type { PromoPurchasesListener } from './dto/PromoPurchasesListener';
15
+ export { default as RemoteConfig } from './dto/RemoteConfig';
16
+ export { default as RemoteConfigList } from './dto/RemoteConfigList';
17
+ export { default as SubscriptionPeriod } from './dto/SubscriptionPeriod';
18
+ export { default as QonversionError } from './dto/QonversionError';
19
+ export { default as User } from './dto/User';
20
+ export { default as UserProperty } from './dto/UserProperty';
21
+ export { default as UserProperties } from './dto/UserProperties';
22
+ export { default as ProductInAppDetails } from './dto/storeProducts/ProductInAppDetails';
23
+ export { default as ProductInstallmentPlanDetails } from './dto/storeProducts/ProductInstallmentPlanDetails';
24
+ export { default as ProductOfferDetails } from './dto/storeProducts/ProductOfferDetails';
25
+ export { default as ProductPrice } from './dto/storeProducts/ProductPrice';
26
+ export { default as ProductPricingPhase } from './dto/storeProducts/ProductPricingPhase';
27
+ export { default as ProductStoreDetails } from './dto/storeProducts/ProductStoreDetails';
28
+ export { default as SKProduct } from './dto/storeProducts/SKProduct';
29
+ export { default as SKProductDiscount } from './dto/storeProducts/SKProductDiscount';
30
+ export { default as SKSubscriptionPeriod } from './dto/storeProducts/SKSubscriptionPeriod';
31
+ export { default as SkuDetails } from './dto/storeProducts/SkuDetails';
32
+ export { default as PurchaseOptionsBuilder } from './dto/PurchaseOptionsBuilder';
33
+ export { default as PurchaseOptions } from './dto/PurchaseOptionsBuilder';
34
+ export { default as ScreenPresentationConfig } from './dto/ScreenPresentationConfig';
35
+ export { default as NoCodes } from './NoCodes';
36
+ export type { default as NoCodesApi } from './NoCodesApi';
37
+ export { default as NoCodesConfig } from './NoCodesConfig';
38
+ export { default as NoCodesConfigBuilder } from './NoCodesConfigBuilder';
39
+ export type { NoCodesListener } from './dto/NoCodesListener';
40
+ export { default as NoCodesAction } from './dto/NoCodesAction';
41
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,YAAY,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACjE,OAAO,EAAE,OAAO,IAAI,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAE/E,YAAY,EAAE,0BAA0B,EAAE,MAAM,kCAAkC,CAAC;AACnF,cAAc,aAAa,CAAC;AAC5B,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AACrE,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,iBAAiB,CAAC;AACvD,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAC3D,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAC/D,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAC3E,YAAY,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AAC3E,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAC7D,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AACrE,OAAO,EAAE,OAAO,IAAI,k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,cAAc,CAAC;AAC1D,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAC3D,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AACzE,YAAY,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,qBAAqB,CAAC"}
@@ -0,0 +1,312 @@
1
+ import { EntitlementGrantType, EntitlementSource, ExperimentGroupType, IntroEligibilityStatus, OfferingTag, PricingPhaseRecurrenceMode, PricingPhaseType, ProductType, QonversionErrorCode, RemoteConfigurationAssignmentType, RemoteConfigurationSourceType, SKPeriodUnit, SKProductDiscountPaymentMode, SKProductDiscountType, SubscriptionPeriodUnit, TransactionEnvironment, TransactionOwnershipType, TransactionType, UserPropertyKey, NoCodesErrorCode, ActionType } from "../dto/enums";
2
+ import IntroEligibility from "../dto/IntroEligibility";
3
+ import Offering from "../dto/Offering";
4
+ import Offerings from "../dto/Offerings";
5
+ import Entitlement from "../dto/Entitlement";
6
+ import Product from "../dto/Product";
7
+ import SKProduct from "../dto/storeProducts/SKProduct";
8
+ import SKProductDiscount from "../dto/storeProducts/SKProductDiscount";
9
+ import SKSubscriptionPeriod from "../dto/storeProducts/SKSubscriptionPeriod";
10
+ import SkuDetails from "../dto/storeProducts/SkuDetails";
11
+ import User from '../dto/User';
12
+ import ScreenPresentationConfig from '../dto/ScreenPresentationConfig';
13
+ import SubscriptionPeriod from "../dto/SubscriptionPeriod";
14
+ import RemoteConfig from "../dto/RemoteConfig";
15
+ import RemoteConfigList from '../dto/RemoteConfigList';
16
+ import UserProperties from '../dto/UserProperties';
17
+ import Transaction from "../dto/Transaction";
18
+ import ProductStoreDetails from "../dto/storeProducts/ProductStoreDetails";
19
+ import ProductOfferDetails from "../dto/storeProducts/ProductOfferDetails";
20
+ import ProductInAppDetails from "../dto/storeProducts/ProductInAppDetails";
21
+ import ProductPrice from "../dto/storeProducts/ProductPrice";
22
+ import ProductPricingPhase from "../dto/storeProducts/ProductPricingPhase";
23
+ import ProductInstallmentPlanDetails from '../dto/storeProducts/ProductInstallmentPlanDetails';
24
+ import PromotionalOffer from '../dto/PromotionalOffer';
25
+ import SKPaymentDiscount from '../dto/storeProducts/SKPaymentDiscount';
26
+ import NoCodesAction from '../dto/NoCodesAction';
27
+ import QonversionError from '../dto/QonversionError';
28
+ import NoCodesError from '../dto/NoCodesError';
29
+ export type QProduct = {
30
+ id: string;
31
+ storeId: string;
32
+ basePlanId?: string | null;
33
+ type: string;
34
+ subscriptionPeriod?: QSubscriptionPeriod | null;
35
+ trialPeriod?: QSubscriptionPeriod | null;
36
+ skuDetails?: QSkuDetails | null;
37
+ storeDetails?: QProductStoreDetails;
38
+ skProduct?: QSKProduct | null;
39
+ prettyPrice?: string | null;
40
+ offeringId?: string | null;
41
+ };
42
+ type QProductStoreDetails = {
43
+ basePlanId?: string | null;
44
+ productId: string;
45
+ name: string;
46
+ title: string;
47
+ description: string;
48
+ subscriptionOfferDetails?: QProductOfferDetails[] | null;
49
+ defaultSubscriptionOfferDetails?: QProductOfferDetails | null;
50
+ basePlanSubscriptionOfferDetails?: QProductOfferDetails | null;
51
+ inAppOfferDetails?: QProductInAppDetails | null;
52
+ hasTrialOffer: boolean;
53
+ hasIntroOffer: boolean;
54
+ hasTrialOrIntroOffer: boolean;
55
+ productType: string;
56
+ isInApp: boolean;
57
+ isSubscription: boolean;
58
+ isPrepaid: boolean;
59
+ isInstallment: boolean;
60
+ };
61
+ type QSubscriptionPeriod = {
62
+ unitCount: number;
63
+ unit: string;
64
+ iso: string;
65
+ };
66
+ type QProductPricingPhase = {
67
+ price: QProductPrice;
68
+ billingPeriod: QSubscriptionPeriod;
69
+ billingCycleCount: number;
70
+ recurrenceMode: string;
71
+ type: string;
72
+ isTrial: boolean;
73
+ isIntro: boolean;
74
+ isBasePlan: boolean;
75
+ };
76
+ type QProductInstallmentPlanDetails = {
77
+ commitmentPaymentsCount: number;
78
+ subsequentCommitmentPaymentsCount: number;
79
+ };
80
+ export type QPromotionalOffer = {
81
+ productDiscount: QProductDiscount;
82
+ paymentDiscount: QPaymentDiscount;
83
+ };
84
+ type QProductOfferDetails = {
85
+ basePlanId: string;
86
+ offerId?: string | null;
87
+ offerToken: string;
88
+ tags: string[];
89
+ pricingPhases: QProductPricingPhase[];
90
+ basePlan?: QProductPricingPhase | null;
91
+ installmentPlanDetails?: QProductInstallmentPlanDetails | null;
92
+ trialPhase?: QProductPricingPhase | null;
93
+ introPhase: QProductPricingPhase | null;
94
+ hasTrial: boolean;
95
+ hasIntro: boolean;
96
+ hasTrialOrIntro: boolean;
97
+ };
98
+ type QProductPrice = {
99
+ priceAmountMicros: number;
100
+ priceCurrencyCode: string;
101
+ formattedPrice: string;
102
+ isFree: boolean;
103
+ currencySymbol: string;
104
+ };
105
+ type QProductInAppDetails = {
106
+ price: QProductPrice;
107
+ };
108
+ type QSkuDetails = {
109
+ description: string;
110
+ freeTrialPeriod: string;
111
+ iconUrl: string;
112
+ introductoryPrice: string;
113
+ introductoryPriceAmountMicros: number;
114
+ introductoryPriceCycles: number;
115
+ introductoryPricePeriod: string;
116
+ originalJson: string;
117
+ originalPrice: string;
118
+ originalPriceAmountMicros: number;
119
+ price: string;
120
+ priceAmountMicros: number;
121
+ priceCurrencyCode: string;
122
+ sku: string;
123
+ subscriptionPeriod: string;
124
+ title: string;
125
+ type: string;
126
+ hashCode: number;
127
+ toString: string;
128
+ };
129
+ type QSKProduct = {
130
+ subscriptionPeriod: null | QSKSubscriptionPeriod;
131
+ introductoryPrice: QProductDiscount | null;
132
+ discounts: Array<QProductDiscount> | null;
133
+ localizedDescription: string | undefined;
134
+ localizedTitle: string | undefined;
135
+ price: string;
136
+ priceLocale: QLocale;
137
+ productIdentifier: string | undefined;
138
+ isDownloadable: boolean | undefined;
139
+ downloadContentVersion: string | undefined;
140
+ downloadContentLengths: number[] | undefined;
141
+ productDiscount: SKProductDiscount | undefined;
142
+ subscriptionGroupIdentifier: string | undefined;
143
+ isFamilyShareable: boolean | undefined;
144
+ };
145
+ type QSKSubscriptionPeriod = {
146
+ numberOfUnits: number;
147
+ unit: keyof typeof SKPeriodUnit;
148
+ };
149
+ type QProductDiscount = {
150
+ subscriptionPeriod: null | QSKSubscriptionPeriod;
151
+ price: string;
152
+ numberOfPeriods: number;
153
+ paymentMode: keyof typeof SKProductDiscountPaymentMode;
154
+ identifier?: string;
155
+ type: keyof typeof SKProductDiscountType;
156
+ priceLocale: QLocale;
157
+ };
158
+ type QPaymentDiscount = {
159
+ identifier: string;
160
+ keyIdentifier: string;
161
+ nonce: string;
162
+ signature: string;
163
+ timestamp: number;
164
+ };
165
+ type QLocale = {
166
+ currencySymbol: string | null;
167
+ currencyCode: string | null;
168
+ localeIdentifier: string;
169
+ };
170
+ export type QEntitlement = {
171
+ id: string;
172
+ productId: string;
173
+ active: boolean;
174
+ renewState: string;
175
+ source: string;
176
+ startedTimestamp: number;
177
+ expirationTimestamp: number;
178
+ renewsCount: number;
179
+ trialStartTimestamp: number;
180
+ firstPurchaseTimestamp: number;
181
+ lastPurchaseTimestamp: number;
182
+ lastActivatedOfferCode: string;
183
+ grantType: string;
184
+ autoRenewDisableTimestamp: number;
185
+ transactions?: Array<QTransaction>;
186
+ };
187
+ type QTransaction = {
188
+ originalTransactionId: string;
189
+ transactionId: string;
190
+ offerCode: string;
191
+ transactionTimestamp: number;
192
+ expirationTimestamp: number;
193
+ transactionRevocationTimestamp: number;
194
+ environment: string;
195
+ ownershipType: string;
196
+ type: string;
197
+ promoOfferId: string;
198
+ };
199
+ export type QOfferings = {
200
+ availableOfferings?: Array<QOffering>;
201
+ main: QOffering;
202
+ };
203
+ type QOffering = {
204
+ id: string;
205
+ tag: keyof typeof OfferingTag;
206
+ products: Array<QProduct>;
207
+ };
208
+ export type QEligibilityInfo = {
209
+ status: "non_intro_or_trial_product" | "intro_or_trial_eligible" | "intro_or_trial_ineligible";
210
+ };
211
+ export type QUser = {
212
+ qonversionId: string;
213
+ identityId?: string | null;
214
+ };
215
+ export type QRemoteConfig = {
216
+ payload: Record<string, Object>;
217
+ experiment?: QExperiment | null;
218
+ source: QRemoteConfigurationSource;
219
+ };
220
+ export type QRemoteConfigList = {
221
+ remoteConfigs: Array<QRemoteConfig>;
222
+ };
223
+ type QRemoteConfigurationSource = {
224
+ id: string;
225
+ name: string;
226
+ type: string;
227
+ assignmentType: string;
228
+ contextKey: string | null | undefined;
229
+ };
230
+ type QExperiment = {
231
+ id: string;
232
+ name: string;
233
+ group: QExperimentGroup;
234
+ };
235
+ type QExperimentGroup = {
236
+ id: string;
237
+ name: string;
238
+ type: string;
239
+ };
240
+ type QUserProperty = {
241
+ key: string;
242
+ value: string;
243
+ };
244
+ export type QUserProperties = {
245
+ properties: QUserProperty[];
246
+ };
247
+ type QQonversionError = {
248
+ code: string | undefined;
249
+ description: string | null | undefined;
250
+ additionalMessage: string | null | undefined;
251
+ domain: string | null | undefined;
252
+ };
253
+ export type QNoCodeAction = {
254
+ type: ActionType;
255
+ parameters: Map<string, string | undefined>;
256
+ error: QNoCodesError | undefined;
257
+ };
258
+ export type QNoCodesError = QQonversionError & {
259
+ qonversionError?: QQonversionError | null;
260
+ };
261
+ export type QNoCodeScreenInfo = {
262
+ screenId: string;
263
+ };
264
+ declare class Mapper {
265
+ static convertPromoOffer(promoOffer: QPromotionalOffer | null | undefined): PromotionalOffer | null;
266
+ static convertEntitlements(entitlements: Record<string, QEntitlement> | null | undefined): Map<string, Entitlement>;
267
+ static convertTransaction(transaction: QTransaction): Transaction;
268
+ static convertTransactionType(typeKey: string): TransactionType;
269
+ static convertTransactionOwnershipType(ownershipTypeKey: string): TransactionOwnershipType;
270
+ static convertTransactionEnvironment(envKey: string): TransactionEnvironment;
271
+ static convertEntitlementSource(sourceKey: string): EntitlementSource;
272
+ static convertEntitlementGrantType(typeKey: string): EntitlementGrantType;
273
+ static convertDefinedUserPropertyKey(sourceKey: string): UserPropertyKey;
274
+ static convertUserProperties(properties: QUserProperties): UserProperties;
275
+ static convertProducts(products: Record<string, QProduct> | null | undefined): Map<string, Product>;
276
+ static convertProduct(product: QProduct): Product;
277
+ static convertOfferings(offerings: QOfferings | null | undefined): Offerings | null;
278
+ static convertOffering(offering: QOffering): Offering;
279
+ static convertSkuDetails(skuDetails: QSkuDetails): SkuDetails;
280
+ static convertProductType(productType: string): ProductType;
281
+ static convertSubscriptionPeriod(productPeriod: QSubscriptionPeriod | null | undefined): SubscriptionPeriod | null;
282
+ static convertSubscriptionPeriodUnit(unit: string): SubscriptionPeriodUnit;
283
+ static convertProductPricingPhase(pricingPhase: QProductPricingPhase | null | undefined): ProductPricingPhase | null;
284
+ static convertPrisingPhaseRecurrenceMode(recurrenceMode: string): PricingPhaseRecurrenceMode;
285
+ static convertPrisingPhaseType(type: string): PricingPhaseType;
286
+ static convertProductInstallmentPlanDetails(installmentPlanDetails: QProductInstallmentPlanDetails | null | undefined): ProductInstallmentPlanDetails | null;
287
+ static convertProductOfferDetails(offerDetails: QProductOfferDetails): ProductOfferDetails;
288
+ static convertInAppOfferDetails(inAppOfferDetails: QProductInAppDetails): ProductInAppDetails;
289
+ static convertProductPrice(productPrice: QProductPrice): ProductPrice;
290
+ static convertProductStoreDetails(productStoreDetails: QProductStoreDetails): ProductStoreDetails;
291
+ static convertSKProduct(skProduct: QSKProduct): SKProduct;
292
+ static convertSKSubscriptionPeriod(subscriptionPeriod: QSKSubscriptionPeriod): SKSubscriptionPeriod;
293
+ static convertPaymentDiscount(discount: QPaymentDiscount): SKPaymentDiscount;
294
+ static convertProductDiscount(discount: QProductDiscount): SKProductDiscount;
295
+ static convertDiscounts(discounts: Array<QProductDiscount>): SKProductDiscount[];
296
+ static convertEligibility(eligibilityMap: Record<string, QEligibilityInfo> | null | undefined): Map<string, IntroEligibility>;
297
+ static convertEligibilityStatus(status: string): IntroEligibilityStatus;
298
+ static convertUserInfo(user: QUser): User;
299
+ static convertRemoteConfig(remoteConfig: QRemoteConfig): RemoteConfig;
300
+ static convertRemoteConfigList(remoteConfigList: QRemoteConfigList): RemoteConfigList;
301
+ static convertRemoteConfigurationSourceType(type: String): RemoteConfigurationSourceType;
302
+ static convertRemoteConfigurationAssignmentType(type: String): RemoteConfigurationAssignmentType;
303
+ static convertGroupType(type: String): ExperimentGroupType;
304
+ static convertAction(payload: QNoCodeAction): NoCodesAction;
305
+ static convertNoCodesError(payload: QNoCodesError | undefined): NoCodesError | undefined;
306
+ static convertQonversionError(payload: QQonversionError | undefined): QonversionError | undefined;
307
+ static convertScreenPresentationConfig(config: ScreenPresentationConfig): Object;
308
+ static convertNoCodesErrorCode(code: string | undefined): NoCodesErrorCode;
309
+ static convertQonversionErrorCode(code: string | undefined): QonversionErrorCode;
310
+ }
311
+ export default Mapper;
312
+ //# sourceMappingURL=Mapper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Mapper.d.ts","sourceRoot":"","sources":["../../../../src/internal/Mapper.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EAEpB,iBAAiB,EACjB,mBAAmB,EACnB,sBAAsB,EACtB,WAAW,EACX,0BAA0B,EAC1B,gBAAgB,EAChB,WAAW,EACX,mBAAmB,EACnB,iCAAiC,EACjC,6BAA6B,EAC7B,YAAY,EACZ,4BAA4B,EAC5B,qBAAqB,EACrB,sBAAsB,EACtB,sBAAsB,EACtB,wBAAwB,EACxB,eAAe,EACf,eAAe,EACf,gBAAgB,EAChB,UAAU,EACX,MAAM,cAAc,CAAC;AACtB,OAAO,gBAAgB,MAAM,yBAAyB,CAAC;AACvD,OAAO,QAAQ,MAAM,iBAAiB,CAAC;AACvC,OAAO,SAAS,MAAM,kBAAkB,CAAC;AACzC,OAAO,WAAW,MAAM,oBAAoB,CAAC;AAC7C,OAAO,OAAO,MAAM,gBAAgB,CAAC;AACrC,OAAO,SAAS,MAAM,gCAAgC,CAAC;AACvD,OAAO,iBAAiB,MAAM,wCAAwC,CAAC;AACvE,OAAO,oBAAoB,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K,GAAG,IAAI;IAIzC,MAAM,CAAC,mBAAmB,CAAC,YAAY,EAAE,aAAa,GAAG,YAAY;IAsBrE,MAAM,CAAC,uBAAuB,CAAC,gBAAgB,EAAE,iBAAiB,GAAG,gBAAgB;IAKrF,MAAM,CAAC,oCAAoC,CAAC,IAAI,EAAE,MAAM,GAAG,6BAA6B;IAaxF,MAAM,CAAC,wCAAwC,CAAC,IAAI,EAAE,MAAM,GAAG,iCAAiC;IAWhG,MAAM,CAAC,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,mBAAmB;IAW1D,MAAM,CAAC,aAAa,CAClB,OAAO,EAAE,aAAa,GACrB,aAAa;IAQhB,MAAM,CAAC,mBAAmB,CACxB,OAAO,EAAE,aAAa,GAAG,SAAS,GACjC,YAAY,GAAG,SAAS;IAc3B,MAAM,CAAC,sBAAsB,CAC3B,OAAO,EAAE,gBAAgB,GAAG,SAAS,GACpC,eAAe,GAAG,SAAS;IAY9B,MAAM,CAAC,+BAA+B,CAAC,MAAM,EAAE,wBAAwB,GAAG,MAAM;IAOhF,MAAM,CAAC,uBAAuB,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,gBAAgB;IA+B1E,MAAM,CAAC,0BAA0B,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,mBAAmB;CAgDjF;AAED,eAAe,MAAM,CAAC"}
@@ -0,0 +1,14 @@
1
+ import type NoCodesApi from "../NoCodesApi";
2
+ import NoCodesConfig from "../NoCodesConfig";
3
+ import type { NoCodesListener } from '../dto/NoCodesListener';
4
+ import ScreenPresentationConfig from '../dto/ScreenPresentationConfig';
5
+ export default class NoCodesInternal implements NoCodesApi {
6
+ private noCodesListener;
7
+ constructor(config: NoCodesConfig);
8
+ setScreenPresentationConfig(config: ScreenPresentationConfig, contextKey?: string): Promise<void>;
9
+ showScreen(contextKey: string): Promise<void>;
10
+ close(): Promise<void>;
11
+ private noCodeEventHandler;
12
+ setNoCodesListener(listener: NoCodesListener): void;
13
+ }
14
+ //# sourceMappingURL=NoCodesInternal.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NoCodesInternal.d.ts","sourceRoot":"","sources":["../../../../src/internal/NoCodesInternal.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,UAAU,MAAM,eAAe,CAAC;AAC5C,OAAO,aAAa,MAAM,kBAAkB,CAAC;AAE7C,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,wBAAwB,CAAC;AAC5D,OAAO,wBAAwB,MAAM,iCAAiC,CAAC;AAavE,MAAM,CAAC,OAAO,OAAO,eAAgB,YAAW,UAAU;IACxD,OAAO,CAAC,eAAe,CAAgC;gBAE3C,MAAM,EAAE,aAAa;IAQ3B,2BAA2B,CAAC,MAAM,EAAE,wBAAwB,EAAE,UAAU,CAAC,EAAE,MAAM;IAKjF,UAAU,CAAC,UAAU,EAAE,MAAM;IAI7B,KAAK;IAIX,OAAO,CAAC,kBAAkB,CAkCzB;IAED,kBAAkB,CAAC,QAAQ,EAAE,eAAe;CAM7C"}
@@ -0,0 +1,60 @@
1
+ import { AttributionProvider, UserPropertyKey } from "../dto/enums";
2
+ import IntroEligibility from "../dto/IntroEligibility";
3
+ import Offerings from "../dto/Offerings";
4
+ import Entitlement from "../dto/Entitlement";
5
+ import Product from "../dto/Product";
6
+ import type { EntitlementsUpdateListener } from '../dto/EntitlementsUpdateListener';
7
+ import type { PromoPurchasesListener } from '../dto/PromoPurchasesListener';
8
+ import User from '../dto/User';
9
+ import PurchaseOptions from '../dto/PurchaseOptions';
10
+ import SKProductDiscount from '../dto/storeProducts/SKProductDiscount';
11
+ import type { QonversionApi } from '../QonversionApi';
12
+ import QonversionConfig from '../QonversionConfig';
13
+ import RemoteConfig from "../dto/RemoteConfig";
14
+ import UserProperties from '../dto/UserProperties';
15
+ import PurchaseModel from '../dto/PurchaseModel';
16
+ import PurchaseUpdateModel from '../dto/PurchaseUpdateModel';
17
+ import { RemoteConfigList } from '../index';
18
+ import PromotionalOffer from '../dto/PromotionalOffer';
19
+ export declare const sdkVersion = "10.0.0-RC1";
20
+ export declare const sdkSource = "rn";
21
+ export default class QonversionInternal implements QonversionApi {
22
+ private entitlementsUpdateListener;
23
+ private promoPurchasesDelegate;
24
+ constructor(qonversionConfig: QonversionConfig);
25
+ syncHistoricalData(): void;
26
+ syncStoreKit2Purchases(): void;
27
+ isFallbackFileAccessible(): Promise<boolean>;
28
+ getPromotionalOffer(product: Product, discount: SKProductDiscount): Promise<PromotionalOffer | null>;
29
+ purchaseProduct(product: Product, options: PurchaseOptions | undefined): Promise<Map<string, Entitlement>>;
30
+ purchase(purchaseModel: PurchaseModel): Promise<Map<string, Entitlement>>;
31
+ updatePurchase(purchaseUpdateModel: PurchaseUpdateModel): Promise<Map<string, Entitlement> | null>;
32
+ products(): Promise<Map<string, Product>>;
33
+ offerings(): Promise<Offerings | null>;
34
+ checkTrialIntroEligibility(ids: string[]): Promise<Map<string, IntroEligibility>>;
35
+ checkEntitlements(): Promise<Map<string, Entitlement>>;
36
+ restore(): Promise<Map<string, Entitlement>>;
37
+ syncPurchases(): void;
38
+ identify(userId: string): Promise<User>;
39
+ logout(): void;
40
+ userInfo(): Promise<User>;
41
+ attribution(data: Object, provider: AttributionProvider): void;
42
+ setUserProperty(property: UserPropertyKey, value: string): void;
43
+ setCustomUserProperty(property: string, value: string): void;
44
+ userProperties(): Promise<UserProperties>;
45
+ collectAdvertisingId(): void;
46
+ collectAppleSearchAdsAttribution(): void;
47
+ presentCodeRedemptionSheet(): void;
48
+ remoteConfig(contextKey: string | undefined): Promise<RemoteConfig>;
49
+ remoteConfigList(): Promise<RemoteConfigList>;
50
+ remoteConfigListForContextKeys(contextKeys: string[], includeEmptyContextKey: boolean): Promise<RemoteConfigList>;
51
+ attachUserToExperiment(experimentId: string, groupId: string): Promise<void>;
52
+ detachUserFromExperiment(experimentId: string): Promise<void>;
53
+ attachUserToRemoteConfiguration(remoteConfigurationId: string): Promise<void>;
54
+ detachUserFromRemoteConfiguration(remoteConfigurationId: string): Promise<void>;
55
+ private entitlementsUpdatedEventHandler;
56
+ private promoPurchaseReceivedEventHandler;
57
+ setEntitlementsUpdateListener(listener: EntitlementsUpdateListener): void;
58
+ setPromoPurchasesDelegate(delegate: PromoPurchasesListener): void;
59
+ }
60
+ //# sourceMappingURL=QonversionInternal.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QonversionInternal.d.ts","sourceRoot":"","sources":["../../../../src/internal/QonversionInternal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,mBAAmB,EAAuB,eAAe,EAAC,MAAM,cAAc,CAAC;AACvF,OAAO,gBAAgB,MAAM,yBAAyB,CAAC;AAGvD,OAAO,SAAS,MAAM,kBAAkB,CAAC;AACzC,OAAO,WAAW,MAAM,oBAAoB,CAAC;AAC7C,OAAO,OAAO,MAAM,gBAAgB,CAAC;AAErC,OAAO,KAAK,EAAC,0BAA0B,EAAC,MAAM,mCAAmC,CAAC;AAClF,OAAO,KAAK,EAAC,sBAAsB,EAAC,MAAM,+BAA+B,CAAC;AAC1E,OAAO,IAAI,MAAM,aAAa,CAAC;AAC/B,OAAO,eAAe,MAAM,wBAAwB,CAAC;AACrD,OAAO,iBAAiB,MAAM,wCAAwC,CAAC;AACvE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,gBAAgB,MAAM,qBAAqB,CAAC;AACnD,OAAO,YAAY,MAAM,qBAAqB,CAAC;AAC/C,OAAO,cAAc,MAAM,uBAAuB,CAAC;AACnD,OAAO,aAAa,MAAM,sBAAsB,CAAC;AACjD,OAAO,mBAAmB,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAC,gBAAgB,EAAC,MAAM,UAAU,CAAC;AAE1C,OAAO,gBAAgB,MAAM,yBAAyB,CAAC;AAIvD,eAAO,MAAM,UAAU,eAAe,CAAC;AACvC,eAAO,MAAM,SAAS,OAAO,CAAC;AAE9B,MAAM,CAAC,OAAO,OAAO,kBAAm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EAAE,mBAAmB;IAIvD,eAAe,CAAC,QAAQ,EAAE,eAAe,EAAE,KAAK,EAAE,MAAM;IAUxD,qBAAqB,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM;IAI/C,cAAc,IAAI,OAAO,CAAC,cAAc,CAAC;IAO/C,oBAAoB;IAMpB,gCAAgC;IAMhC,0BAA0B;IAMpB,YAAY,CAAC,UAAU,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAAC,YAAY,CAAC;IAOnE,gBAAgB,IAAI,OAAO,CAAC,gBAAgB,CAAC;IAO7C,8BAA8B,CAAC,WAAW,EAAE,MAAM,EAAE,EAAE,sBAAsB,EAAE,OAAO,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAOjH,sBAAsB,CAAC,YAAY,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAK5E,wBAAwB,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAK7D,+BAA+B,CAAC,qBAAqB,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAK7E,iCAAiC,CAAC,qBAAqB,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAKrF,OAAO,CAAC,+BAA+B,CAGtC;IAED,OAAO,CAAC,iCAAiC,CAOxC;IAED,6BAA6B,CAAC,QAAQ,EAAE,0BAA0B;IAQlE,yBAAyB,CAAC,QAAQ,EAAE,sBAAsB;CAW3D"}
@@ -0,0 +1,17 @@
1
+ import type { TurboModule } from 'react-native';
2
+ import type { EventEmitter } from 'react-native/Libraries/Types/CodegenTypes';
3
+ import type { QNoCodeAction, QNoCodesError, QNoCodeScreenInfo } from '../Mapper';
4
+ export type NoCodeEvent = {
5
+ name: string;
6
+ payload: QNoCodeAction | QNoCodesError | QNoCodeScreenInfo | undefined;
7
+ };
8
+ export interface Spec extends TurboModule {
9
+ initialize(projectKey: string, source: string, version: string): void;
10
+ setScreenPresentationConfig(configData: Object, contextKey?: string): Promise<boolean>;
11
+ showScreen(contextKey: string): Promise<boolean>;
12
+ close(): Promise<boolean>;
13
+ readonly onNoCodeEvent: EventEmitter<NoCodeEvent>;
14
+ }
15
+ declare const _default: Spec;
16
+ export default _default;
17
+ //# sourceMappingURL=NativeNoCodesModule.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NativeNoCodesModule.d.ts","sourceRoot":"","sources":["../../../../../src/internal/specs/NativeNoCodesModule.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAEhD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2CAA2C,CAAC;AAC9E,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAEjF,MAAM,MAAM,WAAW,GAAG;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,aAAa,GAAG,aAAa,GAAG,iBAAiB,GAAG,SAAS,CAAC;CACxE,CAAC;AAEF,MAAM,WAAW,IAAK,SAAQ,WAAW;IACvC,UAAU,CAAC,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACtE,2BAA2B,CAAC,UAAU,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IACvF,UAAU,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IACjD,KAAK,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC;IAE1B,QAAQ,CAAC,aAAa,EAAE,YAAY,CAAC,WAAW,CAAC,CAAC;CACnD;;AAED,wBAAmE"}