@revenuecat/purchases-js 1.41.0 → 1.41.2
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 -0
- package/dist/Purchases.es.js +8844 -8703
- package/dist/Purchases.umd.js +95 -88
- package/package.json +2 -2
- 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
|
|
@@ -1857,6 +1873,7 @@ export declare class Purchases {
|
|
|
1857
1873
|
* - `"configuration"`: The store module is preloaded when the SDK is configured.
|
|
1858
1874
|
* - `"purchase_start"`: The store module is loaded on demand when a purchase is started.
|
|
1859
1875
|
* @public
|
|
1876
|
+
* @deprecated we always load stripe only when needed
|
|
1860
1877
|
*/
|
|
1861
1878
|
export declare type StoreLoadTime = "configuration" | "purchase_start";
|
|
1862
1879
|
|