@revenuecat/purchases-typescript-internal 5.6.0 → 5.6.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/customerInfo.d.ts +40 -6
- package/dist/offerings.d.ts +7 -2
- package/package.json +1 -1
package/dist/customerInfo.d.ts
CHANGED
|
@@ -19,18 +19,31 @@ export interface PurchasesEntitlementInfo {
|
|
|
19
19
|
*/
|
|
20
20
|
readonly periodType: string;
|
|
21
21
|
/**
|
|
22
|
-
* The latest purchase or renewal date for the entitlement.
|
|
22
|
+
* The latest purchase or renewal date for the entitlement in ISO8601 format.
|
|
23
23
|
*/
|
|
24
24
|
readonly latestPurchaseDate: string;
|
|
25
25
|
/**
|
|
26
|
-
* The
|
|
26
|
+
* The latest purchase or renewal date for the entitlement in milliseconds.
|
|
27
|
+
*/
|
|
28
|
+
readonly latestPurchaseDateMillis: number;
|
|
29
|
+
/**
|
|
30
|
+
* The first date this entitlement was purchased in ISO8601 format.
|
|
27
31
|
*/
|
|
28
32
|
readonly originalPurchaseDate: string;
|
|
29
33
|
/**
|
|
30
|
-
* The
|
|
31
|
-
|
|
34
|
+
* The first date this entitlement was purchased in milliseconds.
|
|
35
|
+
*/
|
|
36
|
+
readonly originalPurchaseDateMillis: number;
|
|
37
|
+
/**
|
|
38
|
+
* The expiration date for the entitlement in ISO8601, can be `null` for lifetime access.
|
|
39
|
+
* If the `periodType` is `trial`, this is the trial expiration date.
|
|
32
40
|
*/
|
|
33
41
|
readonly expirationDate: string | null;
|
|
42
|
+
/**
|
|
43
|
+
* The expiration date for the entitlement in milliseconds, can be `null` for lifetime access.
|
|
44
|
+
* If the `periodType` is `trial`, this is the trial expiration date.
|
|
45
|
+
*/
|
|
46
|
+
readonly expirationDateMillis: number | null;
|
|
34
47
|
/**
|
|
35
48
|
* The store where this entitlement was unlocked from.
|
|
36
49
|
*/
|
|
@@ -44,17 +57,38 @@ export interface PurchasesEntitlementInfo {
|
|
|
44
57
|
*/
|
|
45
58
|
readonly isSandbox: boolean;
|
|
46
59
|
/**
|
|
47
|
-
* The date an unsubscribe was detected. Can be `null`.
|
|
60
|
+
* The date an unsubscribe was detected in ISO8601 format. Can be `null`.
|
|
48
61
|
*
|
|
49
62
|
* @note: Entitlement may still be active even if user has unsubscribed. Check the `isActive` property.
|
|
50
63
|
*/
|
|
51
64
|
readonly unsubscribeDetectedAt: string | null;
|
|
52
65
|
/**
|
|
53
|
-
* The date
|
|
66
|
+
* The date an unsubscribe was detected in milliseconds. Can be `null`.
|
|
67
|
+
*
|
|
68
|
+
* @note: Entitlement may still be active even if user has unsubscribed. Check the `isActive` property.
|
|
69
|
+
*/
|
|
70
|
+
readonly unsubscribeDetectedAtMillis: number | null;
|
|
71
|
+
/**
|
|
72
|
+
* The date a billing issue was detected in ISO8601 format. Can be `null` if there is no billing issue or an
|
|
73
|
+
* issue has been resolved
|
|
54
74
|
*
|
|
55
75
|
* @note: Entitlement may still be active even if there is a billing issue. Check the `isActive` property.
|
|
56
76
|
*/
|
|
57
77
|
readonly billingIssueDetectedAt: string | null;
|
|
78
|
+
/**
|
|
79
|
+
* The date a billing issue was detected in milliseconds. Can be `null` if there is no billing issue or an
|
|
80
|
+
* issue has been resolved
|
|
81
|
+
*
|
|
82
|
+
* @note: Entitlement may still be active even if there is a billing issue. Check the `isActive` property.
|
|
83
|
+
*/
|
|
84
|
+
readonly billingIssueDetectedAtMillis: number | null;
|
|
85
|
+
/**
|
|
86
|
+
* Supported ownership types for an entitlement.
|
|
87
|
+
* PURCHASED if the purchase was made directly by this user.
|
|
88
|
+
* FAMILY_SHARED if the purchase has been shared to this user by a family member.
|
|
89
|
+
* UNKNOWN if the purchase has no or an unknown ownership type.
|
|
90
|
+
*/
|
|
91
|
+
readonly ownershipType: "FAMILY_SHARED" | "PURCHASED" | "UNKNOWN";
|
|
58
92
|
}
|
|
59
93
|
/**
|
|
60
94
|
* Contains all the entitlements associated to the user.
|
package/dist/offerings.d.ts
CHANGED
|
@@ -222,9 +222,14 @@ export interface PurchasesOffering {
|
|
|
222
222
|
*/
|
|
223
223
|
readonly serverDescription: string;
|
|
224
224
|
/**
|
|
225
|
-
* Offering metadata defined in RevenueCat dashboard.
|
|
225
|
+
* Offering metadata defined in RevenueCat dashboard. To access values, you need
|
|
226
|
+
* to check the type beforehand. For example:
|
|
227
|
+
* const my_unknown_value: unknown = offering.metadata['my_key'];
|
|
228
|
+
* const my_string_value: string | undefined = typeof(my_unknown_value) === 'string' ? my_unknown_value : undefined;
|
|
226
229
|
*/
|
|
227
|
-
readonly metadata:
|
|
230
|
+
readonly metadata: {
|
|
231
|
+
[key: string]: unknown;
|
|
232
|
+
};
|
|
228
233
|
/**
|
|
229
234
|
* Array of `Package` objects available for purchase.
|
|
230
235
|
*/
|
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": "5.6.
|
|
4
|
+
"version": "5.6.1",
|
|
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",
|