@revenuecat/purchases-typescript-internal 14.0.1 → 14.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/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/virtualCurrency.d.ts +36 -0
- package/dist/virtualCurrency.js +2 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -22,3 +22,4 @@ __exportStar(require("./purchasesConfiguration"), exports);
|
|
|
22
22
|
__exportStar(require("./callbackTypes"), exports);
|
|
23
23
|
__exportStar(require("./webRedemption"), exports);
|
|
24
24
|
__exportStar(require("./storefront"), exports);
|
|
25
|
+
__exportStar(require("./virtualCurrency"), exports);
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The VirtualCurrencies object contains all the virtual currencies associated to the user.
|
|
3
|
+
* @public
|
|
4
|
+
*/
|
|
5
|
+
export interface PurchasesVirtualCurrencies {
|
|
6
|
+
/**
|
|
7
|
+
* Map of all VirtualCurrency (`PurchasesVirtualCurrency`) objects keyed by virtual currency code.
|
|
8
|
+
*/
|
|
9
|
+
readonly all: {
|
|
10
|
+
[key: string]: PurchasesVirtualCurrency;
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* The VirtualCurrency object represents information about a virtual currency in the app.
|
|
15
|
+
* Use this object to access information about a virtual currency, such as its current balance.
|
|
16
|
+
*
|
|
17
|
+
* @public
|
|
18
|
+
*/
|
|
19
|
+
export interface PurchasesVirtualCurrency {
|
|
20
|
+
/**
|
|
21
|
+
* The virtual currency's balance.
|
|
22
|
+
*/
|
|
23
|
+
readonly balance: number;
|
|
24
|
+
/**
|
|
25
|
+
* The virtual currency's name.
|
|
26
|
+
*/
|
|
27
|
+
readonly name: string;
|
|
28
|
+
/**
|
|
29
|
+
* The virtual currency's code.
|
|
30
|
+
*/
|
|
31
|
+
readonly code: string;
|
|
32
|
+
/**
|
|
33
|
+
* The virtual currency'sdescription defined in the RevenueCat dashboard.
|
|
34
|
+
*/
|
|
35
|
+
readonly serverDescription: string | null;
|
|
36
|
+
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@revenuecat/purchases-typescript-internal",
|
|
3
3
|
"title": "Purchases typescript internal shared code",
|
|
4
|
-
"version": "14.0
|
|
4
|
+
"version": "14.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",
|