@revenuecat/purchases-typescript-internal-esm 20.15.0 → 21.1.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/customerInfo.d.ts +1 -1
- package/dist/enums.d.ts +29 -0
- package/dist/enums.js +30 -0
- package/dist/purchasesConfiguration.d.ts +10 -1
- package/package.json +1 -1
package/dist/customerInfo.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { VERIFICATION_RESULT } from "./enums";
|
|
|
3
3
|
* The supported stores for purchases.
|
|
4
4
|
* @public
|
|
5
5
|
*/
|
|
6
|
-
export type Store = "PLAY_STORE" | "APP_STORE" | "STRIPE" | "MAC_APP_STORE" | "PROMOTIONAL" | "AMAZON" | "RC_BILLING" | "EXTERNAL" | "PADDLE" | "TEST_STORE" | "GALAXY" | "UNKNOWN_STORE";
|
|
6
|
+
export type Store = "PLAY_STORE" | "APP_STORE" | "STRIPE" | "MAC_APP_STORE" | "PROMOTIONAL" | "AMAZON" | "RC_BILLING" | "EXTERNAL" | "PADDLE" | "TEST_STORE" | "GALAXY" | "ROKU" | "PAYPAL" | "UNKNOWN_STORE";
|
|
7
7
|
/**
|
|
8
8
|
* The supported ownership types for an entitlement.
|
|
9
9
|
* @public
|
package/dist/enums.d.ts
CHANGED
|
@@ -177,6 +177,35 @@ export declare enum PAYWALL_RESULT {
|
|
|
177
177
|
*/
|
|
178
178
|
RESTORED = "RESTORED"
|
|
179
179
|
}
|
|
180
|
+
/**
|
|
181
|
+
* Which device identifiers the SDK collects and sends on its own.
|
|
182
|
+
* `Purchases.collectDeviceIdentifiers` collects them in every mode.
|
|
183
|
+
* @public
|
|
184
|
+
*/
|
|
185
|
+
export declare enum DEVICE_IDENTIFIER_COLLECTION_MODE {
|
|
186
|
+
/**
|
|
187
|
+
* When setting the identifier for an attribution network, for example with `Purchases.setAdjustID` or
|
|
188
|
+
* `Purchases.setAppsflyerID`, the SDK also collects device identifiers like the IDFA, IDFV, Android advertising ID
|
|
189
|
+
* or IP, if available, and sends them to RevenueCat. Some attribution networks need them to attribute installs and
|
|
190
|
+
* re-installs. On iOS, the SDK also sends the IDFV in the `X-Apple-Device-Identifier` header of its requests.
|
|
191
|
+
*
|
|
192
|
+
* This is the default.
|
|
193
|
+
*/
|
|
194
|
+
AUTOMATIC = "AUTOMATIC",
|
|
195
|
+
/**
|
|
196
|
+
* iOS only: the SDK only sends the IDFV in the `X-Apple-Device-Identifier` header of its requests, and only
|
|
197
|
+
* collects device identifiers when calling `Purchases.collectDeviceIdentifiers`. Same as `MANUAL_ONLY` on Android.
|
|
198
|
+
*/
|
|
199
|
+
FUNCTIONAL = "FUNCTIONAL",
|
|
200
|
+
/**
|
|
201
|
+
* The SDK sends no device identifiers on its own, and only collects them when calling
|
|
202
|
+
* `Purchases.collectDeviceIdentifiers`.
|
|
203
|
+
*
|
|
204
|
+
* On iOS, StoreKit 1 purchases made with a StoreKit Configuration file fail in this mode: RevenueCat needs the
|
|
205
|
+
* `X-Apple-Device-Identifier` header to validate those receipts. Use `FUNCTIONAL` to keep sending it.
|
|
206
|
+
*/
|
|
207
|
+
MANUAL_ONLY = "MANUAL_ONLY"
|
|
208
|
+
}
|
|
180
209
|
/**
|
|
181
210
|
* Defines which version of StoreKit may be used
|
|
182
211
|
* @public
|
package/dist/enums.js
CHANGED
|
@@ -188,6 +188,36 @@ export var PAYWALL_RESULT;
|
|
|
188
188
|
*/
|
|
189
189
|
PAYWALL_RESULT["RESTORED"] = "RESTORED";
|
|
190
190
|
})(PAYWALL_RESULT || (PAYWALL_RESULT = {}));
|
|
191
|
+
/**
|
|
192
|
+
* Which device identifiers the SDK collects and sends on its own.
|
|
193
|
+
* `Purchases.collectDeviceIdentifiers` collects them in every mode.
|
|
194
|
+
* @public
|
|
195
|
+
*/
|
|
196
|
+
export var DEVICE_IDENTIFIER_COLLECTION_MODE;
|
|
197
|
+
(function (DEVICE_IDENTIFIER_COLLECTION_MODE) {
|
|
198
|
+
/**
|
|
199
|
+
* When setting the identifier for an attribution network, for example with `Purchases.setAdjustID` or
|
|
200
|
+
* `Purchases.setAppsflyerID`, the SDK also collects device identifiers like the IDFA, IDFV, Android advertising ID
|
|
201
|
+
* or IP, if available, and sends them to RevenueCat. Some attribution networks need them to attribute installs and
|
|
202
|
+
* re-installs. On iOS, the SDK also sends the IDFV in the `X-Apple-Device-Identifier` header of its requests.
|
|
203
|
+
*
|
|
204
|
+
* This is the default.
|
|
205
|
+
*/
|
|
206
|
+
DEVICE_IDENTIFIER_COLLECTION_MODE["AUTOMATIC"] = "AUTOMATIC";
|
|
207
|
+
/**
|
|
208
|
+
* iOS only: the SDK only sends the IDFV in the `X-Apple-Device-Identifier` header of its requests, and only
|
|
209
|
+
* collects device identifiers when calling `Purchases.collectDeviceIdentifiers`. Same as `MANUAL_ONLY` on Android.
|
|
210
|
+
*/
|
|
211
|
+
DEVICE_IDENTIFIER_COLLECTION_MODE["FUNCTIONAL"] = "FUNCTIONAL";
|
|
212
|
+
/**
|
|
213
|
+
* The SDK sends no device identifiers on its own, and only collects them when calling
|
|
214
|
+
* `Purchases.collectDeviceIdentifiers`.
|
|
215
|
+
*
|
|
216
|
+
* On iOS, StoreKit 1 purchases made with a StoreKit Configuration file fail in this mode: RevenueCat needs the
|
|
217
|
+
* `X-Apple-Device-Identifier` header to validate those receipts. Use `FUNCTIONAL` to keep sending it.
|
|
218
|
+
*/
|
|
219
|
+
DEVICE_IDENTIFIER_COLLECTION_MODE["MANUAL_ONLY"] = "MANUAL_ONLY";
|
|
220
|
+
})(DEVICE_IDENTIFIER_COLLECTION_MODE || (DEVICE_IDENTIFIER_COLLECTION_MODE = {}));
|
|
191
221
|
/**
|
|
192
222
|
* Defines which version of StoreKit may be used
|
|
193
223
|
* @public
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ENTITLEMENT_VERIFICATION_MODE, STOREKIT_VERSION, PurchasesAreCompletedBy } from "./enums";
|
|
1
|
+
import { DEVICE_IDENTIFIER_COLLECTION_MODE, ENTITLEMENT_VERIFICATION_MODE, STOREKIT_VERSION, PurchasesAreCompletedBy } from "./enums";
|
|
2
2
|
/**
|
|
3
3
|
* Holds parameters to initialize the SDK.
|
|
4
4
|
* @public
|
|
@@ -79,8 +79,17 @@ export interface PurchasesConfiguration {
|
|
|
79
79
|
* setting an attribution network ID AND the user has not limited ad tracking on their device.
|
|
80
80
|
*
|
|
81
81
|
* Default is enabled.
|
|
82
|
+
*
|
|
83
|
+
* @deprecated Use `deviceIdentifierCollectionMode`: `AUTOMATIC` for true, `FUNCTIONAL` for false.
|
|
82
84
|
*/
|
|
83
85
|
automaticDeviceIdentifierCollectionEnabled?: boolean;
|
|
86
|
+
/**
|
|
87
|
+
* Which device identifiers the SDK collects and sends on its own. See {@link DEVICE_IDENTIFIER_COLLECTION_MODE}.
|
|
88
|
+
* Takes precedence over `automaticDeviceIdentifierCollectionEnabled`.
|
|
89
|
+
*
|
|
90
|
+
* Default is `AUTOMATIC`.
|
|
91
|
+
*/
|
|
92
|
+
deviceIdentifierCollectionMode?: DEVICE_IDENTIFIER_COLLECTION_MODE;
|
|
84
93
|
/**
|
|
85
94
|
* Override the preferred UI locale for RevenueCat UI components at runtime. This affects both API requests and UI rendering.
|
|
86
95
|
* This will automatically clear the offerings cache and trigger a background refetch to get paywall templates with the correct localizations.
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@revenuecat/purchases-typescript-internal-esm",
|
|
3
3
|
"title": "Purchases typescript internal shared code",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "21.1.0",
|
|
5
5
|
"description": "Typescript code to be used by RevenueCat's hybrid SDKs. Not meant for external usage.",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|