@revenuecat/purchases-js 1.40.0 → 1.41.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 +17 -1
- package/dist/Purchases.es.js +11514 -11276
- package/dist/Purchases.umd.js +67 -60
- package/package.json +1 -1
- package/dist/index-DuKHkfLn.js +0 -92
package/dist/Purchases.es.d.ts
CHANGED
|
@@ -6,6 +6,8 @@ import { UIConfig } from '@revenuecat/purchases-ui-js';
|
|
|
6
6
|
import { WalletButtonRender } from '@revenuecat/purchases-ui-js';
|
|
7
7
|
import { WalletButtonTheme } from '@revenuecat/purchases-ui-js';
|
|
8
8
|
|
|
9
|
+
/* Excluded from this release type: AttributionMetadata */
|
|
10
|
+
|
|
9
11
|
declare enum BackendErrorCode {
|
|
10
12
|
BackendInvalidPlatform = 7000,
|
|
11
13
|
BackendInvalidEmail = 7012,
|
|
@@ -323,6 +325,7 @@ export declare interface FlagsConfig {
|
|
|
323
325
|
* - `"configuration"`: Preloaded when the SDK is configured (default).
|
|
324
326
|
* - `"purchase_start"`: Loaded on demand when a purchase is started.
|
|
325
327
|
* @defaultValue "configuration"
|
|
328
|
+
* @deprecated we always load stripe only when needed
|
|
326
329
|
*/
|
|
327
330
|
storeLoadTime?: StoreLoadTime;
|
|
328
331
|
}
|
|
@@ -379,6 +382,12 @@ export declare interface IdentifyResult {
|
|
|
379
382
|
readonly wasCreated: boolean;
|
|
380
383
|
}
|
|
381
384
|
|
|
385
|
+
declare type JsonPrimitive = string | number | boolean | null;
|
|
386
|
+
|
|
387
|
+
declare type JsonValue = JsonPrimitive | JsonValue[] | {
|
|
388
|
+
[key: string]: JsonValue;
|
|
389
|
+
};
|
|
390
|
+
|
|
382
391
|
declare class LocaleTranslations {
|
|
383
392
|
readonly labels: Record<string, string>;
|
|
384
393
|
readonly localeKey: string;
|
|
@@ -537,6 +546,10 @@ export declare enum LogLevel {
|
|
|
537
546
|
Verbose = 5
|
|
538
547
|
}
|
|
539
548
|
|
|
549
|
+
/* Excluded from this release type: MetaCanonicalAttributionMetadata */
|
|
550
|
+
|
|
551
|
+
/* Excluded from this release type: MetaCapiAttributionMetadata */
|
|
552
|
+
|
|
540
553
|
/**
|
|
541
554
|
* Represents a possible option to purchase a non-subscription product.
|
|
542
555
|
* @public
|
|
@@ -1222,6 +1235,7 @@ export declare interface PurchaseParams {
|
|
|
1222
1235
|
*/
|
|
1223
1236
|
customerEmail?: string;
|
|
1224
1237
|
/* Excluded from this release type: workflowPurchaseContext */
|
|
1238
|
+
/* Excluded from this release type: attributionMetadata */
|
|
1225
1239
|
/* Excluded from this release type: paywallId */
|
|
1226
1240
|
/**
|
|
1227
1241
|
* The locale to use for the purchase flow. If not specified, English will be used
|
|
@@ -1268,6 +1282,8 @@ export declare interface PurchaseParams {
|
|
|
1268
1282
|
/* Excluded from this release type: termsAndConditionsUrl */
|
|
1269
1283
|
}
|
|
1270
1284
|
|
|
1285
|
+
/* Excluded from this release type: PurchaseResponseAttributionMetadata */
|
|
1286
|
+
|
|
1271
1287
|
/**
|
|
1272
1288
|
* Represents the result of a purchase operation.
|
|
1273
1289
|
* @public
|
|
@@ -1391,7 +1407,6 @@ export declare class Purchases {
|
|
|
1391
1407
|
*/
|
|
1392
1408
|
getCurrentOfferingForPlacement(placementIdentifier: string, params?: GetOfferingsParams): Promise<Offering | null>;
|
|
1393
1409
|
private getAllOfferings;
|
|
1394
|
-
/* Excluded from this release type: _getProductWithDiscountCode */
|
|
1395
1410
|
/**
|
|
1396
1411
|
* Convenience method to check whether a user is entitled to a specific
|
|
1397
1412
|
* entitlement. This will use {@link Purchases.getCustomerInfo} under the hood.
|
|
@@ -1858,6 +1873,7 @@ export declare class Purchases {
|
|
|
1858
1873
|
* - `"configuration"`: The store module is preloaded when the SDK is configured.
|
|
1859
1874
|
* - `"purchase_start"`: The store module is loaded on demand when a purchase is started.
|
|
1860
1875
|
* @public
|
|
1876
|
+
* @deprecated we always load stripe only when needed
|
|
1861
1877
|
*/
|
|
1862
1878
|
export declare type StoreLoadTime = "configuration" | "purchase_start";
|
|
1863
1879
|
|