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