@revenuecat/purchases-js 1.62.1 → 1.63.1

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.
@@ -859,11 +859,14 @@ export declare const PAYWALL_COMPONENT_TYPES: {
859
859
  readonly PACKAGE: "package";
860
860
  readonly PACKAGE_SELECTION_SHEET: "package_selection_sheet";
861
861
  readonly PURCHASE_BUTTON: "purchase_button";
862
+ readonly WALLET_BUTTON: "wallet_button";
862
863
  };
863
864
 
864
865
  /**
865
866
  * A paywall control interaction, as passed to `PaywallListener.onInteraction`. Keys that do not apply
866
867
  * are omitted.
868
+ *
869
+ * See https://rev.cat/paywall-interaction-events for what each component type sends.
867
870
  * @public
868
871
  */
869
872
  export declare interface PaywallInteractionEvent {
@@ -1612,6 +1615,7 @@ export declare class Purchases {
1612
1615
  /* Excluded from this release type: eventsTracker */
1613
1616
  /* Excluded from this release type: _platformInfo */
1614
1617
  /* Excluded from this release type: inMemoryCache */
1618
+ /* Excluded from this release type: offeringsRequests */
1615
1619
  /* Excluded from this release type: cachedCurrentOffering */
1616
1620
  /* Excluded from this release type: stripeBillingQuickPurchaseState */
1617
1621
  /* Excluded from this release type: stripeBillingQuickPurchasePreparation */
@@ -1692,6 +1696,13 @@ export declare class Purchases {
1692
1696
  * @param params - The parameters object to customise the offerings fetch. Check {@link GetOfferingsParams}
1693
1697
  */
1694
1698
  getOfferings(params?: GetOfferingsParams): Promise<Offerings>;
1699
+ /**
1700
+ * Invalidates the cached offerings response for the current user.
1701
+ * The next call to {@link Purchases.getOfferings} or
1702
+ * {@link Purchases.getCurrentOfferingForPlacement} will fetch the latest
1703
+ * offerings from the network.
1704
+ */
1705
+ invalidateOfferingsCache(): void;
1695
1706
  /**
1696
1707
  * Tracks an impression for a custom paywall.
1697
1708
  *
@@ -1713,6 +1724,9 @@ export declare class Purchases {
1713
1724
  * @param params - The parameters object to customise the offerings fetch. Check {@link GetOfferingsParams}
1714
1725
  */
1715
1726
  getCurrentOfferingForPlacement(placementIdentifier: string, params?: GetOfferingsParams): Promise<Offering | null>;
1727
+ private getOfferingsResponse;
1728
+ private clearOfferingsCache;
1729
+ private invalidateRequestDataCaches;
1716
1730
  private findOfferingById;
1717
1731
  private getAllOfferings;
1718
1732
  private fetchProductsForOfferings;