@revenuecat/purchases-js 0.9.0 → 0.10.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 +19 -1
- package/dist/Purchases.es.js +1263 -1128
- package/dist/Purchases.umd.js +13 -5
- package/dist/style.css +1 -1
- package/package.json +3 -2
package/dist/Purchases.es.d.ts
CHANGED
|
@@ -180,6 +180,11 @@ export declare interface GetOfferingsParams {
|
|
|
180
180
|
* If not specified, the default currency will be used.
|
|
181
181
|
*/
|
|
182
182
|
readonly currency?: string;
|
|
183
|
+
/**
|
|
184
|
+
* The identifier of the offering to fetch.
|
|
185
|
+
* Can be a string identifier or one of the predefined keywords.
|
|
186
|
+
*/
|
|
187
|
+
readonly offeringIdentifier?: string | OfferingKeyword;
|
|
183
188
|
}
|
|
184
189
|
|
|
185
190
|
/**
|
|
@@ -301,6 +306,16 @@ export declare interface Offering {
|
|
|
301
306
|
readonly weekly: Package | null;
|
|
302
307
|
}
|
|
303
308
|
|
|
309
|
+
/**
|
|
310
|
+
* Keywords for identifying specific offerings in the {@link Purchases.getOfferings} method.
|
|
311
|
+
*/
|
|
312
|
+
export declare enum OfferingKeyword {
|
|
313
|
+
/**
|
|
314
|
+
* The current offering.
|
|
315
|
+
*/
|
|
316
|
+
Current = "current"
|
|
317
|
+
}
|
|
318
|
+
|
|
304
319
|
/**
|
|
305
320
|
* This class contains all the offerings configured in RevenueCat dashboard.
|
|
306
321
|
* For more info see https://docs.revenuecat.com/docs/entitlements
|
|
@@ -308,13 +323,15 @@ export declare interface Offering {
|
|
|
308
323
|
*/
|
|
309
324
|
export declare interface Offerings {
|
|
310
325
|
/**
|
|
311
|
-
* Dictionary
|
|
326
|
+
* Dictionary containing all {@link Offering} objects, keyed by their identifier.
|
|
312
327
|
*/
|
|
313
328
|
readonly all: {
|
|
314
329
|
[offeringId: string]: Offering;
|
|
315
330
|
};
|
|
316
331
|
/**
|
|
317
332
|
* Current offering configured in the RevenueCat dashboard.
|
|
333
|
+
* It can be `null` if no current offering is configured or if a specific offering
|
|
334
|
+
* was requested that is not the current one.
|
|
318
335
|
*/
|
|
319
336
|
readonly current: Offering | null;
|
|
320
337
|
}
|
|
@@ -663,6 +680,7 @@ export declare class Purchases {
|
|
|
663
680
|
/**
|
|
664
681
|
* Fetch the configured offerings for this user. You can configure these
|
|
665
682
|
* in the RevenueCat dashboard.
|
|
683
|
+
* @param params - The parameters object to customise the offerings fetch. Check {@link GetOfferingsParams}
|
|
666
684
|
*/
|
|
667
685
|
getOfferings(params?: GetOfferingsParams): Promise<Offerings>;
|
|
668
686
|
/**
|