@revenuecat/purchases-js 1.51.0 → 1.51.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.
- package/dist/Purchases.es.d.ts +16 -3
- package/dist/Purchases.es.js +4668 -4672
- package/dist/Purchases.umd.js +69 -64
- package/package.json +1 -1
package/dist/Purchases.es.d.ts
CHANGED
|
@@ -72,8 +72,6 @@ declare interface BuildVariablesPerPackageOptions {
|
|
|
72
72
|
translator?: Translator;
|
|
73
73
|
}
|
|
74
74
|
|
|
75
|
-
/* Excluded from this release type: ChangeProductParams */
|
|
76
|
-
|
|
77
75
|
/**
|
|
78
76
|
* Type containing all information regarding the customer.
|
|
79
77
|
* @public
|
|
@@ -1245,6 +1243,8 @@ export declare interface Product {
|
|
|
1245
1243
|
/* Excluded from this release type: discountPhase */
|
|
1246
1244
|
}
|
|
1247
1245
|
|
|
1246
|
+
/* Excluded from this release type: ProductChangeInfo */
|
|
1247
|
+
|
|
1248
1248
|
/* Excluded from this release type: ProductChangeResult */
|
|
1249
1249
|
|
|
1250
1250
|
/**
|
|
@@ -1404,6 +1404,7 @@ export declare interface PurchaseParams {
|
|
|
1404
1404
|
* Link to the terms and conditions that should be shown in the checkout footer.
|
|
1405
1405
|
*/
|
|
1406
1406
|
termsAndConditionsUrl?: string;
|
|
1407
|
+
/* Excluded from this release type: productChangeInfo */
|
|
1407
1408
|
}
|
|
1408
1409
|
|
|
1409
1410
|
/* Excluded from this release type: PurchaseResponseAttributionMetadata */
|
|
@@ -1430,6 +1431,7 @@ export declare interface PurchaseResult {
|
|
|
1430
1431
|
*/
|
|
1431
1432
|
readonly storeTransaction: StoreTransaction;
|
|
1432
1433
|
/* Excluded from this release type: attributionMetadata */
|
|
1434
|
+
/* Excluded from this release type: productChange */
|
|
1433
1435
|
}
|
|
1434
1436
|
|
|
1435
1437
|
/**
|
|
@@ -1444,6 +1446,7 @@ export declare class Purchases {
|
|
|
1444
1446
|
/* Excluded from this release type: _brandingInfo */
|
|
1445
1447
|
/* Excluded from this release type: _loadingResourcesPromise */
|
|
1446
1448
|
/* Excluded from this release type: _flags */
|
|
1449
|
+
/* Excluded from this release type: _subscriberToken */
|
|
1447
1450
|
/* Excluded from this release type: _context */
|
|
1448
1451
|
/* Excluded from this release type: backend */
|
|
1449
1452
|
/* Excluded from this release type: purchaseOperationHelper */
|
|
@@ -1569,6 +1572,10 @@ export declare class Purchases {
|
|
|
1569
1572
|
* package from {@link Purchases.getOfferings}. This method will present the purchase
|
|
1570
1573
|
* form on your site, using the given HTML element as the mount point, if
|
|
1571
1574
|
* provided, or as a modal if not.
|
|
1575
|
+
*
|
|
1576
|
+
* When {@link PurchaseParams.productChangeInfo} is set, presents upgrade-mode
|
|
1577
|
+
* checkout for an existing RC Billing subscription instead of a new purchase.
|
|
1578
|
+
*
|
|
1572
1579
|
* @param params - The parameters object to customise the purchase flow. Check {@link PurchaseParams}
|
|
1573
1580
|
* @returns a Promise for the customer and redemption info after the purchase is completed successfully.
|
|
1574
1581
|
* @throws {@link PurchasesError} if there is an error while performing the purchase. If the {@link PurchasesError.errorCode} is {@link ErrorCode.UserCancelledError}, the user cancelled the purchase.
|
|
@@ -1629,7 +1636,12 @@ export declare class Purchases {
|
|
|
1629
1636
|
* @experimental
|
|
1630
1637
|
*/
|
|
1631
1638
|
identifyUser(appUserId: string): Promise<IdentifyResult>;
|
|
1632
|
-
|
|
1639
|
+
/**
|
|
1640
|
+
* Presents upgrade-mode checkout to change the customer's Web Billing
|
|
1641
|
+
* subscription to {@link PurchaseParams.rcPackage}'s product along a
|
|
1642
|
+
* configured product change path.
|
|
1643
|
+
*/
|
|
1644
|
+
private productChangePurchase;
|
|
1633
1645
|
/**
|
|
1634
1646
|
* Rejects anything shaped like a RevenueCat API key so a secret or public
|
|
1635
1647
|
* key is never sent (or exposed) where a subscriber token belongs.
|
|
@@ -1728,6 +1740,7 @@ export declare class Purchases {
|
|
|
1728
1740
|
* Advanced functionality configuration {@link FlagsConfig}.
|
|
1729
1741
|
*/
|
|
1730
1742
|
flags?: FlagsConfig;
|
|
1743
|
+
/* Excluded from this release type: subscriberToken */
|
|
1731
1744
|
/* Excluded from this release type: context */
|
|
1732
1745
|
/* Excluded from this release type: trace_id */
|
|
1733
1746
|
}
|