@revenuecat/purchases-js 1.53.1 → 1.55.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 +40 -2
- package/dist/Purchases.es.js +7455 -7287
- package/dist/Purchases.umd.js +69 -69
- package/package.json +1 -9
package/dist/Purchases.es.d.ts
CHANGED
|
@@ -134,6 +134,20 @@ export declare interface CustomerInfo {
|
|
|
134
134
|
};
|
|
135
135
|
}
|
|
136
136
|
|
|
137
|
+
/**
|
|
138
|
+
* Parameters for tracking an impression of a custom paywall.
|
|
139
|
+
*
|
|
140
|
+
* Pass the offering used to render the paywall to include its offering,
|
|
141
|
+
* placement, and targeting attribution in the event.
|
|
142
|
+
* @public
|
|
143
|
+
*/
|
|
144
|
+
export declare interface CustomPaywallImpressionParams {
|
|
145
|
+
/** An optional identifier for the custom paywall shown to the customer. */
|
|
146
|
+
paywallId?: string;
|
|
147
|
+
/** The offering used to render the custom paywall. */
|
|
148
|
+
offering?: Offering;
|
|
149
|
+
}
|
|
150
|
+
|
|
137
151
|
/**
|
|
138
152
|
* Custom translations to be used in the purchase flow.
|
|
139
153
|
* This class allows you to override the default translations used in the purchase flow.
|
|
@@ -539,6 +553,8 @@ declare enum LocalizationKeys {
|
|
|
539
553
|
PlanCardNew = "plan_card.new",
|
|
540
554
|
RefundForUnusedTimeTitle = "refund_for_unused_time.title",
|
|
541
555
|
RefundForUnusedTimeMessage = "refund_for_unused_time.message",
|
|
556
|
+
CreditForUnusedTimeTitle = "credit_for_unused_time.title",
|
|
557
|
+
CreditForUnusedTimeMessage = "credit_for_unused_time.message",
|
|
542
558
|
UpgradeConfirmPageTitle = "upgrade_confirm_page.title",
|
|
543
559
|
UpgradeConfirmPageSubtitleImmediate = "upgrade_confirm_page.subtitle_immediate",
|
|
544
560
|
UpgradeConfirmPageSubtitleDeferred = "upgrade_confirm_page.subtitle_deferred",
|
|
@@ -1424,7 +1440,9 @@ export declare interface PurchaseParams {
|
|
|
1424
1440
|
showDiscountCodeField?: boolean;
|
|
1425
1441
|
/**
|
|
1426
1442
|
* @experimental
|
|
1427
|
-
* Initial discount code to
|
|
1443
|
+
* Initial discount code to apply at checkout.
|
|
1444
|
+
* For Web Billing this is displayed as applied in the checkout UI.
|
|
1445
|
+
* For Paddle this is passed to Paddle Checkout as `discountCode`.
|
|
1428
1446
|
* This is useful when the code originated outside of the checkout UI,
|
|
1429
1447
|
* for example from a URL parameter.
|
|
1430
1448
|
*/
|
|
@@ -1501,6 +1519,7 @@ export declare class Purchases {
|
|
|
1501
1519
|
/* Excluded from this release type: eventsTracker */
|
|
1502
1520
|
/* Excluded from this release type: _platformInfo */
|
|
1503
1521
|
/* Excluded from this release type: inMemoryCache */
|
|
1522
|
+
/* Excluded from this release type: cachedCurrentOffering */
|
|
1504
1523
|
/* Excluded from this release type: instance */
|
|
1505
1524
|
/**
|
|
1506
1525
|
* Set the log level. Logs of the given level and below will be printed
|
|
@@ -1576,6 +1595,20 @@ export declare class Purchases {
|
|
|
1576
1595
|
* @param params - The parameters object to customise the offerings fetch. Check {@link GetOfferingsParams}
|
|
1577
1596
|
*/
|
|
1578
1597
|
getOfferings(params?: GetOfferingsParams): Promise<Offerings>;
|
|
1598
|
+
/**
|
|
1599
|
+
* Tracks an impression for a custom paywall.
|
|
1600
|
+
*
|
|
1601
|
+
* Pass the offering used to render the paywall to preserve placement and
|
|
1602
|
+
* targeting attribution. When no offering is passed, the most recently
|
|
1603
|
+
* fetched current offering is used if available.
|
|
1604
|
+
*
|
|
1605
|
+
* Each call creates a separate impression event. Call this once per
|
|
1606
|
+
* paywall presentation and avoid lifecycle callbacks that may run
|
|
1607
|
+
* multiple times for the same display.
|
|
1608
|
+
*
|
|
1609
|
+
* @param params Parameters for the custom paywall impression event.
|
|
1610
|
+
*/
|
|
1611
|
+
trackCustomPaywallImpression(params?: CustomPaywallImpressionParams): void;
|
|
1579
1612
|
/**
|
|
1580
1613
|
* Retrieves a specific offering by a placement identifier.
|
|
1581
1614
|
* For more info see https://www.revenuecat.com/docs/tools/targeting
|
|
@@ -2079,7 +2112,12 @@ export declare class Purchases {
|
|
|
2079
2112
|
/**
|
|
2080
2113
|
* The Tenjin ID of the customer.
|
|
2081
2114
|
*/
|
|
2082
|
-
TenjinId = "$tenjinId"
|
|
2115
|
+
TenjinId = "$tenjinId",
|
|
2116
|
+
/**
|
|
2117
|
+
* The Singular Device ID (SDID) of the customer, generated by the Singular SDK.
|
|
2118
|
+
* Required by Singular's Event Endpoint V2.
|
|
2119
|
+
*/
|
|
2120
|
+
SingularDeviceId = "$singularDeviceId"
|
|
2083
2121
|
}
|
|
2084
2122
|
|
|
2085
2123
|
declare type SDKEventContextSource = "sdk" | "wpl" | string;
|