@forklaunch/implementation-billing-base 0.1.14 → 0.1.16
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/lib/schemas/billingPortal.schema.d.ts +21 -25
- package/lib/schemas/checkoutSession.schema.d.ts +10 -10
- package/lib/schemas/paymentLink.schema.d.ts +29 -19
- package/lib/schemas/plan.schema.d.ts +21 -19
- package/lib/schemas/subscription.schema.d.ts +32 -40
- package/lib/schemas/typebox/billingPortal.schema.d.ts +20 -40
- package/lib/schemas/typebox/checkoutSession.schema.d.ts +8 -16
- package/lib/schemas/typebox/paymentLink.schema.d.ts +20 -28
- package/lib/schemas/typebox/plan.schema.d.ts +20 -28
- package/lib/schemas/typebox/subscription.schema.d.ts +32 -64
- package/lib/schemas/zod/billingPortal.schema.d.ts +22 -10
- package/lib/schemas/zod/checkoutSession.schema.d.ts +12 -4
- package/lib/schemas/zod/paymentLink.schema.d.ts +22 -10
- package/lib/schemas/zod/plan.schema.d.ts +22 -10
- package/lib/schemas/zod/subscription.schema.d.ts +32 -16
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +7 -7
|
@@ -4,7 +4,7 @@ export declare const CreatePaymentLinkSchema: <
|
|
|
4
4
|
>(
|
|
5
5
|
CurrencyEnum: T
|
|
6
6
|
) => {
|
|
7
|
-
amount: import('zod').ZodNumber
|
|
7
|
+
amount: import('zod').ZodEffects<import('zod').ZodNumber, number, unknown>;
|
|
8
8
|
currency: import('zod').ZodUnion<
|
|
9
9
|
[{ [K in keyof T]: import('zod').ZodLiteral<T[K]> }[keyof T]]
|
|
10
10
|
>;
|
|
@@ -22,7 +22,9 @@ export declare const UpdatePaymentLinkSchema: ({
|
|
|
22
22
|
CurrencyEnum: T
|
|
23
23
|
) => {
|
|
24
24
|
id: import('zod').ZodString;
|
|
25
|
-
amount: import('zod').ZodOptional<
|
|
25
|
+
amount: import('zod').ZodOptional<
|
|
26
|
+
import('zod').ZodEffects<import('zod').ZodNumber, number, unknown>
|
|
27
|
+
>;
|
|
26
28
|
currency: import('zod').ZodOptional<
|
|
27
29
|
import('zod').ZodUnion<
|
|
28
30
|
[{ [K in keyof T]: import('zod').ZodLiteral<T[K]> }[keyof T]]
|
|
@@ -42,7 +44,7 @@ export declare const PaymentLinkSchema: ({
|
|
|
42
44
|
CurrencyEnum: T
|
|
43
45
|
) => {
|
|
44
46
|
id: import('zod').ZodString;
|
|
45
|
-
amount: import('zod').ZodNumber
|
|
47
|
+
amount: import('zod').ZodEffects<import('zod').ZodNumber, number, unknown>;
|
|
46
48
|
currency: import('zod').ZodUnion<
|
|
47
49
|
[{ [K in keyof T]: import('zod').ZodLiteral<T[K]> }[keyof T]]
|
|
48
50
|
>;
|
|
@@ -51,8 +53,12 @@ export declare const PaymentLinkSchema: ({
|
|
|
51
53
|
successRedirectUri: import('zod').ZodString;
|
|
52
54
|
cancelRedirectUri: import('zod').ZodString;
|
|
53
55
|
extraFields: import('zod').ZodOptional<import('zod').ZodUnknown>;
|
|
54
|
-
createdAt: import('zod').ZodOptional<
|
|
55
|
-
|
|
56
|
+
createdAt: import('zod').ZodOptional<
|
|
57
|
+
import('zod').ZodEffects<import('zod').ZodDate, Date, unknown>
|
|
58
|
+
>;
|
|
59
|
+
updatedAt: import('zod').ZodOptional<
|
|
60
|
+
import('zod').ZodEffects<import('zod').ZodDate, Date, unknown>
|
|
61
|
+
>;
|
|
56
62
|
};
|
|
57
63
|
export declare const BasePaymentLinkServiceSchemas: (options: {
|
|
58
64
|
uuidId: boolean;
|
|
@@ -60,7 +66,7 @@ export declare const BasePaymentLinkServiceSchemas: (options: {
|
|
|
60
66
|
CreatePaymentLinkSchema: <T extends Record<string, LiteralSchema>>(
|
|
61
67
|
CurrencyEnum: T
|
|
62
68
|
) => {
|
|
63
|
-
amount: import('zod').ZodNumber
|
|
69
|
+
amount: import('zod').ZodEffects<import('zod').ZodNumber, number, unknown>;
|
|
64
70
|
currency: import('zod').ZodUnion<
|
|
65
71
|
[{ [K in keyof T]: import('zod').ZodLiteral<T[K]> }[keyof T]]
|
|
66
72
|
>;
|
|
@@ -74,7 +80,9 @@ export declare const BasePaymentLinkServiceSchemas: (options: {
|
|
|
74
80
|
CurrencyEnum: T
|
|
75
81
|
) => {
|
|
76
82
|
id: import('zod').ZodString;
|
|
77
|
-
amount: import('zod').ZodOptional<
|
|
83
|
+
amount: import('zod').ZodOptional<
|
|
84
|
+
import('zod').ZodEffects<import('zod').ZodNumber, number, unknown>
|
|
85
|
+
>;
|
|
78
86
|
currency: import('zod').ZodOptional<
|
|
79
87
|
import('zod').ZodUnion<
|
|
80
88
|
[{ [K in keyof T]: import('zod').ZodLiteral<T[K]> }[keyof T]]
|
|
@@ -90,7 +98,7 @@ export declare const BasePaymentLinkServiceSchemas: (options: {
|
|
|
90
98
|
CurrencyEnum: T
|
|
91
99
|
) => {
|
|
92
100
|
id: import('zod').ZodString;
|
|
93
|
-
amount: import('zod').ZodNumber
|
|
101
|
+
amount: import('zod').ZodEffects<import('zod').ZodNumber, number, unknown>;
|
|
94
102
|
currency: import('zod').ZodUnion<
|
|
95
103
|
[{ [K in keyof T]: import('zod').ZodLiteral<T[K]> }[keyof T]]
|
|
96
104
|
>;
|
|
@@ -99,8 +107,12 @@ export declare const BasePaymentLinkServiceSchemas: (options: {
|
|
|
99
107
|
successRedirectUri: import('zod').ZodString;
|
|
100
108
|
cancelRedirectUri: import('zod').ZodString;
|
|
101
109
|
extraFields: import('zod').ZodOptional<import('zod').ZodUnknown>;
|
|
102
|
-
createdAt: import('zod').ZodOptional<
|
|
103
|
-
|
|
110
|
+
createdAt: import('zod').ZodOptional<
|
|
111
|
+
import('zod').ZodEffects<import('zod').ZodDate, Date, unknown>
|
|
112
|
+
>;
|
|
113
|
+
updatedAt: import('zod').ZodOptional<
|
|
114
|
+
import('zod').ZodEffects<import('zod').ZodDate, Date, unknown>
|
|
115
|
+
>;
|
|
104
116
|
};
|
|
105
117
|
};
|
|
106
118
|
//# sourceMappingURL=paymentLink.schema.d.ts.map
|
|
@@ -8,7 +8,7 @@ export declare const CreatePlanSchema: <
|
|
|
8
8
|
) => {
|
|
9
9
|
name: import('zod').ZodString;
|
|
10
10
|
description: import('zod').ZodOptional<import('zod').ZodString>;
|
|
11
|
-
price: import('zod').ZodNumber
|
|
11
|
+
price: import('zod').ZodEffects<import('zod').ZodNumber, number, unknown>;
|
|
12
12
|
cadence: import('zod').ZodUnion<
|
|
13
13
|
[{ [K in keyof T]: import('zod').ZodLiteral<T[K]> }[keyof T]]
|
|
14
14
|
>;
|
|
@@ -36,7 +36,9 @@ export declare const UpdatePlanSchema: ({
|
|
|
36
36
|
id: import('zod').ZodString;
|
|
37
37
|
name: import('zod').ZodOptional<import('zod').ZodString>;
|
|
38
38
|
description: import('zod').ZodOptional<import('zod').ZodString>;
|
|
39
|
-
price: import('zod').ZodOptional<
|
|
39
|
+
price: import('zod').ZodOptional<
|
|
40
|
+
import('zod').ZodEffects<import('zod').ZodNumber, number, unknown>
|
|
41
|
+
>;
|
|
40
42
|
cadence: import('zod').ZodOptional<
|
|
41
43
|
import('zod').ZodUnion<
|
|
42
44
|
[{ [K in keyof T]: import('zod').ZodLiteral<T[K]> }[keyof T]]
|
|
@@ -70,7 +72,7 @@ export declare const PlanSchema: ({
|
|
|
70
72
|
id: import('zod').ZodString;
|
|
71
73
|
name: import('zod').ZodString;
|
|
72
74
|
description: import('zod').ZodOptional<import('zod').ZodString>;
|
|
73
|
-
price: import('zod').ZodNumber
|
|
75
|
+
price: import('zod').ZodEffects<import('zod').ZodNumber, number, unknown>;
|
|
74
76
|
cadence: import('zod').ZodUnion<
|
|
75
77
|
[{ [K in keyof T]: import('zod').ZodLiteral<T[K]> }[keyof T]]
|
|
76
78
|
>;
|
|
@@ -85,8 +87,12 @@ export declare const PlanSchema: ({
|
|
|
85
87
|
>
|
|
86
88
|
>;
|
|
87
89
|
active: import('zod').ZodEffects<import('zod').ZodBoolean, boolean, unknown>;
|
|
88
|
-
createdAt: import('zod').ZodOptional<
|
|
89
|
-
|
|
90
|
+
createdAt: import('zod').ZodOptional<
|
|
91
|
+
import('zod').ZodEffects<import('zod').ZodDate, Date, unknown>
|
|
92
|
+
>;
|
|
93
|
+
updatedAt: import('zod').ZodOptional<
|
|
94
|
+
import('zod').ZodEffects<import('zod').ZodDate, Date, unknown>
|
|
95
|
+
>;
|
|
90
96
|
};
|
|
91
97
|
export declare const BasePlanServiceSchemas: (options: {
|
|
92
98
|
uuidId: boolean;
|
|
@@ -100,7 +106,7 @@ export declare const BasePlanServiceSchemas: (options: {
|
|
|
100
106
|
) => {
|
|
101
107
|
name: import('zod').ZodString;
|
|
102
108
|
description: import('zod').ZodOptional<import('zod').ZodString>;
|
|
103
|
-
price: import('zod').ZodNumber
|
|
109
|
+
price: import('zod').ZodEffects<import('zod').ZodNumber, number, unknown>;
|
|
104
110
|
cadence: import('zod').ZodUnion<
|
|
105
111
|
[{ [K in keyof T]: import('zod').ZodLiteral<T[K]> }[keyof T]]
|
|
106
112
|
>;
|
|
@@ -128,7 +134,9 @@ export declare const BasePlanServiceSchemas: (options: {
|
|
|
128
134
|
id: import('zod').ZodString;
|
|
129
135
|
name: import('zod').ZodOptional<import('zod').ZodString>;
|
|
130
136
|
description: import('zod').ZodOptional<import('zod').ZodString>;
|
|
131
|
-
price: import('zod').ZodOptional<
|
|
137
|
+
price: import('zod').ZodOptional<
|
|
138
|
+
import('zod').ZodEffects<import('zod').ZodNumber, number, unknown>
|
|
139
|
+
>;
|
|
132
140
|
cadence: import('zod').ZodOptional<
|
|
133
141
|
import('zod').ZodUnion<
|
|
134
142
|
[{ [K in keyof T]: import('zod').ZodLiteral<T[K]> }[keyof T]]
|
|
@@ -158,7 +166,7 @@ export declare const BasePlanServiceSchemas: (options: {
|
|
|
158
166
|
id: import('zod').ZodString;
|
|
159
167
|
name: import('zod').ZodString;
|
|
160
168
|
description: import('zod').ZodOptional<import('zod').ZodString>;
|
|
161
|
-
price: import('zod').ZodNumber
|
|
169
|
+
price: import('zod').ZodEffects<import('zod').ZodNumber, number, unknown>;
|
|
162
170
|
cadence: import('zod').ZodUnion<
|
|
163
171
|
[{ [K in keyof T]: import('zod').ZodLiteral<T[K]> }[keyof T]]
|
|
164
172
|
>;
|
|
@@ -177,8 +185,12 @@ export declare const BasePlanServiceSchemas: (options: {
|
|
|
177
185
|
boolean,
|
|
178
186
|
unknown
|
|
179
187
|
>;
|
|
180
|
-
createdAt: import('zod').ZodOptional<
|
|
181
|
-
|
|
188
|
+
createdAt: import('zod').ZodOptional<
|
|
189
|
+
import('zod').ZodEffects<import('zod').ZodDate, Date, unknown>
|
|
190
|
+
>;
|
|
191
|
+
updatedAt: import('zod').ZodOptional<
|
|
192
|
+
import('zod').ZodEffects<import('zod').ZodDate, Date, unknown>
|
|
193
|
+
>;
|
|
182
194
|
};
|
|
183
195
|
};
|
|
184
196
|
//# sourceMappingURL=plan.schema.d.ts.map
|
|
@@ -14,8 +14,8 @@ export declare const CreateSubscriptionSchema: <
|
|
|
14
14
|
description: import('zod').ZodOptional<import('zod').ZodString>;
|
|
15
15
|
active: import('zod').ZodEffects<import('zod').ZodBoolean, boolean, unknown>;
|
|
16
16
|
externalId: import('zod').ZodString;
|
|
17
|
-
startDate: import('zod').ZodDate
|
|
18
|
-
endDate: import('zod').ZodDate
|
|
17
|
+
startDate: import('zod').ZodEffects<import('zod').ZodDate, Date, unknown>;
|
|
18
|
+
endDate: import('zod').ZodEffects<import('zod').ZodDate, Date, unknown>;
|
|
19
19
|
status: import('zod').ZodString;
|
|
20
20
|
billingProvider: import('zod').ZodOptional<
|
|
21
21
|
import('zod').ZodUnion<
|
|
@@ -48,8 +48,12 @@ export declare const UpdateSubscriptionSchema: ({
|
|
|
48
48
|
import('zod').ZodEffects<import('zod').ZodBoolean, boolean, unknown>
|
|
49
49
|
>;
|
|
50
50
|
externalId: import('zod').ZodOptional<import('zod').ZodString>;
|
|
51
|
-
startDate: import('zod').ZodOptional<
|
|
52
|
-
|
|
51
|
+
startDate: import('zod').ZodOptional<
|
|
52
|
+
import('zod').ZodEffects<import('zod').ZodDate, Date, unknown>
|
|
53
|
+
>;
|
|
54
|
+
endDate: import('zod').ZodOptional<
|
|
55
|
+
import('zod').ZodEffects<import('zod').ZodDate, Date, unknown>
|
|
56
|
+
>;
|
|
53
57
|
status: import('zod').ZodOptional<import('zod').ZodString>;
|
|
54
58
|
billingProvider: import('zod').ZodOptional<
|
|
55
59
|
import('zod').ZodUnion<
|
|
@@ -78,8 +82,8 @@ export declare const SubscriptionSchema: ({
|
|
|
78
82
|
description: import('zod').ZodOptional<import('zod').ZodString>;
|
|
79
83
|
active: import('zod').ZodEffects<import('zod').ZodBoolean, boolean, unknown>;
|
|
80
84
|
externalId: import('zod').ZodString;
|
|
81
|
-
startDate: import('zod').ZodDate
|
|
82
|
-
endDate: import('zod').ZodDate
|
|
85
|
+
startDate: import('zod').ZodEffects<import('zod').ZodDate, Date, unknown>;
|
|
86
|
+
endDate: import('zod').ZodEffects<import('zod').ZodDate, Date, unknown>;
|
|
83
87
|
status: import('zod').ZodString;
|
|
84
88
|
billingProvider: import('zod').ZodOptional<
|
|
85
89
|
import('zod').ZodUnion<
|
|
@@ -87,8 +91,12 @@ export declare const SubscriptionSchema: ({
|
|
|
87
91
|
>
|
|
88
92
|
>;
|
|
89
93
|
extraFields: import('zod').ZodOptional<import('zod').ZodUnknown>;
|
|
90
|
-
createdAt: import('zod').ZodOptional<
|
|
91
|
-
|
|
94
|
+
createdAt: import('zod').ZodOptional<
|
|
95
|
+
import('zod').ZodEffects<import('zod').ZodDate, Date, unknown>
|
|
96
|
+
>;
|
|
97
|
+
updatedAt: import('zod').ZodOptional<
|
|
98
|
+
import('zod').ZodEffects<import('zod').ZodDate, Date, unknown>
|
|
99
|
+
>;
|
|
92
100
|
};
|
|
93
101
|
export declare const BaseSubscriptionServiceSchemas: (options: {
|
|
94
102
|
uuidId: boolean;
|
|
@@ -112,8 +120,8 @@ export declare const BaseSubscriptionServiceSchemas: (options: {
|
|
|
112
120
|
unknown
|
|
113
121
|
>;
|
|
114
122
|
externalId: import('zod').ZodString;
|
|
115
|
-
startDate: import('zod').ZodDate
|
|
116
|
-
endDate: import('zod').ZodDate
|
|
123
|
+
startDate: import('zod').ZodEffects<import('zod').ZodDate, Date, unknown>;
|
|
124
|
+
endDate: import('zod').ZodEffects<import('zod').ZodDate, Date, unknown>;
|
|
117
125
|
status: import('zod').ZodString;
|
|
118
126
|
billingProvider: import('zod').ZodOptional<
|
|
119
127
|
import('zod').ZodUnion<
|
|
@@ -142,8 +150,12 @@ export declare const BaseSubscriptionServiceSchemas: (options: {
|
|
|
142
150
|
import('zod').ZodEffects<import('zod').ZodBoolean, boolean, unknown>
|
|
143
151
|
>;
|
|
144
152
|
externalId: import('zod').ZodOptional<import('zod').ZodString>;
|
|
145
|
-
startDate: import('zod').ZodOptional<
|
|
146
|
-
|
|
153
|
+
startDate: import('zod').ZodOptional<
|
|
154
|
+
import('zod').ZodEffects<import('zod').ZodDate, Date, unknown>
|
|
155
|
+
>;
|
|
156
|
+
endDate: import('zod').ZodOptional<
|
|
157
|
+
import('zod').ZodEffects<import('zod').ZodDate, Date, unknown>
|
|
158
|
+
>;
|
|
147
159
|
status: import('zod').ZodOptional<import('zod').ZodString>;
|
|
148
160
|
billingProvider: import('zod').ZodOptional<
|
|
149
161
|
import('zod').ZodUnion<
|
|
@@ -172,8 +184,8 @@ export declare const BaseSubscriptionServiceSchemas: (options: {
|
|
|
172
184
|
unknown
|
|
173
185
|
>;
|
|
174
186
|
externalId: import('zod').ZodString;
|
|
175
|
-
startDate: import('zod').ZodDate
|
|
176
|
-
endDate: import('zod').ZodDate
|
|
187
|
+
startDate: import('zod').ZodEffects<import('zod').ZodDate, Date, unknown>;
|
|
188
|
+
endDate: import('zod').ZodEffects<import('zod').ZodDate, Date, unknown>;
|
|
177
189
|
status: import('zod').ZodString;
|
|
178
190
|
billingProvider: import('zod').ZodOptional<
|
|
179
191
|
import('zod').ZodUnion<
|
|
@@ -181,8 +193,12 @@ export declare const BaseSubscriptionServiceSchemas: (options: {
|
|
|
181
193
|
>
|
|
182
194
|
>;
|
|
183
195
|
extraFields: import('zod').ZodOptional<import('zod').ZodUnknown>;
|
|
184
|
-
createdAt: import('zod').ZodOptional<
|
|
185
|
-
|
|
196
|
+
createdAt: import('zod').ZodOptional<
|
|
197
|
+
import('zod').ZodEffects<import('zod').ZodDate, Date, unknown>
|
|
198
|
+
>;
|
|
199
|
+
updatedAt: import('zod').ZodOptional<
|
|
200
|
+
import('zod').ZodEffects<import('zod').ZodDate, Date, unknown>
|
|
201
|
+
>;
|
|
186
202
|
};
|
|
187
203
|
};
|
|
188
204
|
//# sourceMappingURL=subscription.schema.d.ts.map
|