@revenuecat/purchases-js 0.4.0 → 0.5.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 +35 -0
- package/dist/Purchases.es.js +724 -691
- package/dist/Purchases.umd.js +4 -4
- package/dist/style.css +1 -1
- package/package.json +2 -2
package/dist/Purchases.es.d.ts
CHANGED
|
@@ -394,6 +394,21 @@ export declare enum PeriodUnit {
|
|
|
394
394
|
Day = "day"
|
|
395
395
|
}
|
|
396
396
|
|
|
397
|
+
/**
|
|
398
|
+
* Contains data about the context in which an offering was presented.
|
|
399
|
+
* @public
|
|
400
|
+
*/
|
|
401
|
+
export declare interface PresentedOfferingContext {
|
|
402
|
+
/**
|
|
403
|
+
* The identifier of the offering used to obtain this object.
|
|
404
|
+
*/
|
|
405
|
+
readonly offeringIdentifier: string;
|
|
406
|
+
/**
|
|
407
|
+
* The targeting context used to obtain this object.
|
|
408
|
+
*/
|
|
409
|
+
readonly targetingContext: TargetingContext | null;
|
|
410
|
+
}
|
|
411
|
+
|
|
397
412
|
/**
|
|
398
413
|
* Price information for a product.
|
|
399
414
|
* @public
|
|
@@ -475,8 +490,13 @@ export declare interface Product {
|
|
|
475
490
|
readonly normalPeriodDuration: string | null;
|
|
476
491
|
/**
|
|
477
492
|
* The offering ID used to obtain this product.
|
|
493
|
+
* @deprecated - Use {@link Product.presentedOfferingContext} instead.
|
|
478
494
|
*/
|
|
479
495
|
readonly presentedOfferingIdentifier: string;
|
|
496
|
+
/**
|
|
497
|
+
* The context from which this product was obtained.
|
|
498
|
+
*/
|
|
499
|
+
readonly presentedOfferingContext: PresentedOfferingContext;
|
|
480
500
|
/**
|
|
481
501
|
* The default subscription option for this product. Null if no subscription
|
|
482
502
|
* options are available like in the case of consumables and non-consumables.
|
|
@@ -686,6 +706,21 @@ export declare class Purchases {
|
|
|
686
706
|
readonly trial: PricingPhase | null;
|
|
687
707
|
}
|
|
688
708
|
|
|
709
|
+
/**
|
|
710
|
+
* Contains information about the targeting context used to obtain an object.
|
|
711
|
+
* @public
|
|
712
|
+
*/
|
|
713
|
+
export declare interface TargetingContext {
|
|
714
|
+
/**
|
|
715
|
+
* The rule id from the targeting used to obtain this object.
|
|
716
|
+
*/
|
|
717
|
+
readonly ruleId: string;
|
|
718
|
+
/**
|
|
719
|
+
* The revision of the targeting used to obtain this object.
|
|
720
|
+
*/
|
|
721
|
+
readonly revision: number;
|
|
722
|
+
}
|
|
723
|
+
|
|
689
724
|
/**
|
|
690
725
|
* Error indicating that the SDK was accessed before it was initialized.
|
|
691
726
|
* @public
|