@forklaunch/implementation-billing-stripe 1.1.23 → 1.1.24
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.
|
@@ -32,9 +32,8 @@ export const CreateSubscriptionSchema = <
|
|
|
32
32
|
endDate: optional(date),
|
|
33
33
|
status: string,
|
|
34
34
|
billingProvider: enum_(BillingProviderEnum),
|
|
35
|
-
stripeFields:
|
|
36
|
-
Omit<StripeSubscriptionCreateParams, SubscriptionOmissions
|
|
37
|
-
>()
|
|
35
|
+
stripeFields:
|
|
36
|
+
type<Omit<StripeSubscriptionCreateParams, SubscriptionOmissions>>()
|
|
38
37
|
});
|
|
39
38
|
|
|
40
39
|
export const UpdateSubscriptionSchema = <
|
|
@@ -27,11 +27,12 @@ import { PlanCadenceEnum } from '../enum/planCadence.enum';
|
|
|
27
27
|
// `StripeBillingPortalSessionCreateParams` / `StripeCheckoutSessionCreateParams`.
|
|
28
28
|
// Derive them from the actual method signatures, which are reachable and
|
|
29
29
|
// won't break if stripe rearranges its internal file layout again.
|
|
30
|
-
type UnwrapStripeResponse<T> =
|
|
31
|
-
|
|
32
|
-
?
|
|
33
|
-
|
|
34
|
-
|
|
30
|
+
type UnwrapStripeResponse<T> =
|
|
31
|
+
T extends Promise<infer R>
|
|
32
|
+
? R extends { lastResponse?: unknown }
|
|
33
|
+
? Omit<R, 'lastResponse'>
|
|
34
|
+
: R
|
|
35
|
+
: never;
|
|
35
36
|
|
|
36
37
|
// Use `interface ... extends ...` instead of `type ... = ...` so the names
|
|
37
38
|
// survive declaration emit. Pure type aliases get expanded back to their
|
|
@@ -41,13 +42,21 @@ type UnwrapStripeResponse<T> = T extends Promise<infer R>
|
|
|
41
42
|
// intentional — we're solely re-naming the supertype.
|
|
42
43
|
/* eslint-disable @typescript-eslint/no-empty-object-type */
|
|
43
44
|
export interface StripeBillingPortalSessionCreateParams
|
|
44
|
-
extends NonNullable<
|
|
45
|
+
extends NonNullable<
|
|
46
|
+
Parameters<Stripe['billingPortal']['sessions']['create']>[0]
|
|
47
|
+
> {}
|
|
45
48
|
export interface StripeBillingPortalSession
|
|
46
|
-
extends UnwrapStripeResponse<
|
|
49
|
+
extends UnwrapStripeResponse<
|
|
50
|
+
ReturnType<Stripe['billingPortal']['sessions']['create']>
|
|
51
|
+
> {}
|
|
47
52
|
export interface StripeCheckoutSessionCreateParams
|
|
48
|
-
extends NonNullable<
|
|
53
|
+
extends NonNullable<
|
|
54
|
+
Parameters<Stripe['checkout']['sessions']['create']>[0]
|
|
55
|
+
> {}
|
|
49
56
|
export interface StripeCheckoutSession
|
|
50
|
-
extends UnwrapStripeResponse<
|
|
57
|
+
extends UnwrapStripeResponse<
|
|
58
|
+
ReturnType<Stripe['checkout']['sessions']['create']>
|
|
59
|
+
> {}
|
|
51
60
|
export interface StripePaymentLinkCreateParams
|
|
52
61
|
extends NonNullable<Parameters<Stripe['paymentLinks']['create']>[0]> {}
|
|
53
62
|
export interface StripePaymentLinkUpdateParams
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forklaunch/implementation-billing-stripe",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.24",
|
|
4
4
|
"description": "Stripe implementation for forklaunch billing",
|
|
5
5
|
"homepage": "https://github.com/forklaunch/forklaunch-js#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -42,20 +42,20 @@
|
|
|
42
42
|
"lib/**"
|
|
43
43
|
],
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@forklaunch/common": "^1.2.
|
|
46
|
-
"@forklaunch/core": "^1.
|
|
47
|
-
"@forklaunch/internal": "^1.2.
|
|
48
|
-
"@forklaunch/validator": "^1.2.
|
|
45
|
+
"@forklaunch/common": "^1.2.16",
|
|
46
|
+
"@forklaunch/core": "^1.5.0",
|
|
47
|
+
"@forklaunch/internal": "^1.2.16",
|
|
48
|
+
"@forklaunch/validator": "^1.2.16",
|
|
49
49
|
"@mikro-orm/core": "7.0.9",
|
|
50
50
|
"@sinclair/typebox": "^0.34.49",
|
|
51
51
|
"ajv": "^8.18.0",
|
|
52
|
-
"stripe": "^22.0.
|
|
52
|
+
"stripe": "^22.0.1",
|
|
53
53
|
"zod": "^4.3.6",
|
|
54
|
-
"@forklaunch/implementation-billing-base": "1.0.
|
|
55
|
-
"@forklaunch/interfaces-billing": "1.0.
|
|
54
|
+
"@forklaunch/implementation-billing-base": "1.0.24",
|
|
55
|
+
"@forklaunch/interfaces-billing": "1.0.23"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
|
-
"@typescript/native-preview": "7.0.0-dev.
|
|
58
|
+
"@typescript/native-preview": "7.0.0-dev.20260408.1",
|
|
59
59
|
"depcheck": "^1.4.7",
|
|
60
60
|
"prettier": "^3.8.1",
|
|
61
61
|
"typedoc": "^0.28.18"
|