@lunora/react 1.0.0-alpha.107 → 1.0.0-alpha.109
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/payment.d.mts +10 -0
- package/dist/payment.d.ts +10 -0
- package/package.json +3 -3
package/dist/payment.d.mts
CHANGED
|
@@ -20,6 +20,16 @@ interface Subscription {
|
|
|
20
20
|
readonly currentPeriodStart?: number;
|
|
21
21
|
readonly id: string;
|
|
22
22
|
readonly priceId: string;
|
|
23
|
+
/**
|
|
24
|
+
* EVERY price/product id the subscription bills, not just the primary one. A Stripe
|
|
25
|
+
* subscription can carry an add-on or a metered price alongside the base plan, and a
|
|
26
|
+
* customer paying for one is entitled to it — so entitlements test membership here.
|
|
27
|
+
*
|
|
28
|
+
* Optional because the webhook path and any pre-existing stored row carry only
|
|
29
|
+
* `priceId`; absent reads as `[priceId]`, which is exactly right for the single-item
|
|
30
|
+
* case every other provider has.
|
|
31
|
+
*/
|
|
32
|
+
readonly priceIds?: ReadonlyArray<string>;
|
|
23
33
|
readonly provider: ProviderId;
|
|
24
34
|
readonly quantity: number;
|
|
25
35
|
readonly referenceId: string;
|
package/dist/payment.d.ts
CHANGED
|
@@ -20,6 +20,16 @@ interface Subscription {
|
|
|
20
20
|
readonly currentPeriodStart?: number;
|
|
21
21
|
readonly id: string;
|
|
22
22
|
readonly priceId: string;
|
|
23
|
+
/**
|
|
24
|
+
* EVERY price/product id the subscription bills, not just the primary one. A Stripe
|
|
25
|
+
* subscription can carry an add-on or a metered price alongside the base plan, and a
|
|
26
|
+
* customer paying for one is entitled to it — so entitlements test membership here.
|
|
27
|
+
*
|
|
28
|
+
* Optional because the webhook path and any pre-existing stored row carry only
|
|
29
|
+
* `priceId`; absent reads as `[priceId]`, which is exactly right for the single-item
|
|
30
|
+
* case every other provider has.
|
|
31
|
+
*/
|
|
32
|
+
readonly priceIds?: ReadonlyArray<string>;
|
|
23
33
|
readonly provider: ProviderId;
|
|
24
34
|
readonly quantity: number;
|
|
25
35
|
readonly referenceId: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lunora/react",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.109",
|
|
4
4
|
"description": "React hooks for Lunora: useQuery, useMutation, useSubscription, and useAuth",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cloudflare",
|
|
@@ -57,9 +57,9 @@
|
|
|
57
57
|
"access": "public"
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
|
-
"@lunora/client": "1.0.0-alpha.
|
|
60
|
+
"@lunora/client": "1.0.0-alpha.104",
|
|
61
61
|
"@lunora/errors": "1.0.0-alpha.36",
|
|
62
|
-
"@lunora/ratelimit": "1.0.0-alpha.
|
|
62
|
+
"@lunora/ratelimit": "1.0.0-alpha.58",
|
|
63
63
|
"@visulima/storage-client": "1.0.3"
|
|
64
64
|
},
|
|
65
65
|
"peerDependencies": {
|