@revenuecat/purchases-js 1.21.0 → 1.22.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.
@@ -698,6 +698,17 @@ export declare enum PackageType {
698
698
  Weekly = "$rc_weekly"
699
699
  }
700
700
 
701
+ /**
702
+ * Represents the result of a purchase operation initiated from a paywall.
703
+ * @public
704
+ */
705
+ export declare interface PaywallPurchaseResult extends PurchaseResult {
706
+ /**
707
+ * The package selected by the customer while interacting with the paywall.
708
+ */
709
+ selectedPackage: Package;
710
+ }
711
+
701
712
  /**
702
713
  * Represents a period of time.
703
714
  * @public
@@ -1203,7 +1214,7 @@ export declare class Purchases {
1203
1214
  * @param paywallParams - The parameters object to customise the paywall render. Check {@link PresentPaywallParams}
1204
1215
  * @returns Promise<PurchaseResult>
1205
1216
  */
1206
- presentPaywall(paywallParams: PresentPaywallParams): Promise<PurchaseResult>;
1217
+ presentPaywall(paywallParams: PresentPaywallParams): Promise<PaywallPurchaseResult>;
1207
1218
  /**
1208
1219
  * Fetch the configured offerings for this user. You can configure these
1209
1220
  * in the RevenueCat dashboard.