@forklaunch/implementation-billing-base 0.3.4 → 0.3.5

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.
@@ -3,1200 +3,390 @@ import * as zod from 'zod';
3
3
  import * as _sinclair_typebox from '@sinclair/typebox';
4
4
  import * as _forklaunch_validator from '@forklaunch/validator';
5
5
 
6
- declare const BaseBillingPortalServiceSchemas: <
7
- SchemaValidator extends _forklaunch_validator.AnySchemaValidator
8
- >(
9
- options: {
6
+ declare const BaseBillingPortalServiceSchemas: <SchemaValidator extends _forklaunch_validator.AnySchemaValidator>(options: {
10
7
  uuidId: boolean;
11
- } & {
8
+ } & {
12
9
  validator: SchemaValidator;
13
- }
14
- ) => _forklaunch_internal.SchemasByValidator<
15
- SchemaValidator,
16
- (options: { uuidId: boolean }) => {
10
+ }) => _forklaunch_internal.SchemasByValidator<SchemaValidator, (options: {
11
+ uuidId: boolean;
12
+ }) => {
17
13
  CreateBillingPortalSchema: {
18
- customerId: _sinclair_typebox.TString;
19
- expiresAt: _sinclair_typebox.TTransform<
20
- _sinclair_typebox.TUnion<
21
- [
22
- _sinclair_typebox.TString,
23
- _sinclair_typebox.TNumber,
24
- _sinclair_typebox.TDate
25
- ]
26
- >,
27
- Date
28
- >;
29
- uri: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
30
- providerFields: _sinclair_typebox.TOptional<_sinclair_typebox.TUnknown>;
14
+ customerId: _sinclair_typebox.TString;
15
+ expiresAt: _sinclair_typebox.TTransform<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber, _sinclair_typebox.TDate]>, Date>;
16
+ uri: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
17
+ providerFields: _sinclair_typebox.TOptional<_sinclair_typebox.TUnknown>;
31
18
  };
32
19
  UpdateBillingPortalSchema: {
33
- id: _sinclair_typebox.TString;
34
- uri: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
35
- expiresAt: _sinclair_typebox.TOptional<
36
- _sinclair_typebox.TTransform<
37
- _sinclair_typebox.TUnion<
38
- [
39
- _sinclair_typebox.TString,
40
- _sinclair_typebox.TNumber,
41
- _sinclair_typebox.TDate
42
- ]
43
- >,
44
- Date
45
- >
46
- >;
47
- providerFields: _sinclair_typebox.TOptional<_sinclair_typebox.TUnknown>;
20
+ id: _sinclair_typebox.TString;
21
+ uri: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
22
+ expiresAt: _sinclair_typebox.TOptional<_sinclair_typebox.TTransform<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber, _sinclair_typebox.TDate]>, Date>>;
23
+ providerFields: _sinclair_typebox.TOptional<_sinclair_typebox.TUnknown>;
48
24
  };
49
25
  BillingPortalSchema: {
50
- id: _sinclair_typebox.TString;
51
- customerId: _sinclair_typebox.TString;
52
- uri: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
53
- expiresAt: _sinclair_typebox.TTransform<
54
- _sinclair_typebox.TUnion<
55
- [
56
- _sinclair_typebox.TString,
57
- _sinclair_typebox.TNumber,
58
- _sinclair_typebox.TDate
59
- ]
60
- >,
61
- Date
62
- >;
63
- providerFields: _sinclair_typebox.TOptional<_sinclair_typebox.TUnknown>;
64
- createdAt: _sinclair_typebox.TOptional<
65
- _sinclair_typebox.TTransform<
66
- _sinclair_typebox.TUnion<
67
- [
68
- _sinclair_typebox.TString,
69
- _sinclair_typebox.TNumber,
70
- _sinclair_typebox.TDate
71
- ]
72
- >,
73
- Date
74
- >
75
- >;
76
- updatedAt: _sinclair_typebox.TOptional<
77
- _sinclair_typebox.TTransform<
78
- _sinclair_typebox.TUnion<
79
- [
80
- _sinclair_typebox.TString,
81
- _sinclair_typebox.TNumber,
82
- _sinclair_typebox.TDate
83
- ]
84
- >,
85
- Date
86
- >
87
- >;
26
+ id: _sinclair_typebox.TString;
27
+ customerId: _sinclair_typebox.TString;
28
+ uri: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
29
+ expiresAt: _sinclair_typebox.TTransform<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber, _sinclair_typebox.TDate]>, Date>;
30
+ providerFields: _sinclair_typebox.TOptional<_sinclair_typebox.TUnknown>;
31
+ createdAt: _sinclair_typebox.TOptional<_sinclair_typebox.TTransform<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber, _sinclair_typebox.TDate]>, Date>>;
32
+ updatedAt: _sinclair_typebox.TOptional<_sinclair_typebox.TTransform<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber, _sinclair_typebox.TDate]>, Date>>;
88
33
  };
89
- },
90
- (options: { uuidId: boolean }) => {
34
+ }, (options: {
35
+ uuidId: boolean;
36
+ }) => {
91
37
  CreateBillingPortalSchema: {
92
- customerId: zod.ZodString;
93
- expiresAt: zod.ZodEffects<zod.ZodDate, Date, unknown>;
94
- uri: zod.ZodOptional<zod.ZodString>;
95
- providerFields: zod.ZodOptional<zod.ZodUnknown>;
38
+ customerId: zod.ZodString;
39
+ expiresAt: zod.ZodEffects<zod.ZodDate, Date, unknown>;
40
+ uri: zod.ZodOptional<zod.ZodString>;
41
+ providerFields: zod.ZodOptional<zod.ZodUnknown>;
96
42
  };
97
43
  UpdateBillingPortalSchema: {
98
- id: zod.ZodString;
99
- uri: zod.ZodOptional<zod.ZodString>;
100
- expiresAt: zod.ZodOptional<zod.ZodEffects<zod.ZodDate, Date, unknown>>;
101
- providerFields: zod.ZodOptional<zod.ZodUnknown>;
44
+ id: zod.ZodString;
45
+ uri: zod.ZodOptional<zod.ZodString>;
46
+ expiresAt: zod.ZodOptional<zod.ZodEffects<zod.ZodDate, Date, unknown>>;
47
+ providerFields: zod.ZodOptional<zod.ZodUnknown>;
102
48
  };
103
49
  BillingPortalSchema: {
104
- id: zod.ZodString;
105
- customerId: zod.ZodString;
106
- uri: zod.ZodOptional<zod.ZodString>;
107
- expiresAt: zod.ZodEffects<zod.ZodDate, Date, unknown>;
108
- providerFields: zod.ZodOptional<zod.ZodUnknown>;
109
- createdAt: zod.ZodOptional<zod.ZodEffects<zod.ZodDate, Date, unknown>>;
110
- updatedAt: zod.ZodOptional<zod.ZodEffects<zod.ZodDate, Date, unknown>>;
50
+ id: zod.ZodString;
51
+ customerId: zod.ZodString;
52
+ uri: zod.ZodOptional<zod.ZodString>;
53
+ expiresAt: zod.ZodEffects<zod.ZodDate, Date, unknown>;
54
+ providerFields: zod.ZodOptional<zod.ZodUnknown>;
55
+ createdAt: zod.ZodOptional<zod.ZodEffects<zod.ZodDate, Date, unknown>>;
56
+ updatedAt: zod.ZodOptional<zod.ZodEffects<zod.ZodDate, Date, unknown>>;
111
57
  };
112
- }
113
- >;
58
+ }>;
114
59
 
115
- declare const BaseCheckoutSessionServiceSchemas: <
116
- SchemaValidator extends _forklaunch_validator.AnySchemaValidator
117
- >(
118
- options: {
60
+ declare const BaseCheckoutSessionServiceSchemas: <SchemaValidator extends _forklaunch_validator.AnySchemaValidator>(options: {
119
61
  uuidId: boolean;
120
- } & {
62
+ } & {
121
63
  validator: SchemaValidator;
122
- }
123
- ) => _forklaunch_internal.SchemasByValidator<
124
- SchemaValidator,
125
- (options: { uuidId: boolean }) => {
126
- CreateCheckoutSessionSchema: <
127
- T extends Record<string, _forklaunch_validator.LiteralSchema>,
128
- U extends Record<string, _forklaunch_validator.LiteralSchema>,
129
- V extends Record<string, _forklaunch_validator.LiteralSchema>
130
- >(
131
- PaymentMethodEnum: T,
132
- CurrencyEnum: U,
133
- StatusEnum: V
134
- ) => {
135
- customerId: _sinclair_typebox.TString;
136
- paymentMethods: _sinclair_typebox.TArray<
137
- _sinclair_typebox.TUnion<
138
- [{ [K in keyof T]: _sinclair_typebox.TLiteral<T[K]> }[keyof T]]
139
- >
140
- >;
141
- currency: _sinclair_typebox.TUnion<
142
- [{ [K_1 in keyof U]: _sinclair_typebox.TLiteral<U[K_1]> }[keyof U]]
143
- >;
144
- successRedirectUri: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
145
- cancelRedirectUri: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
146
- expiresAt: _sinclair_typebox.TTransform<
147
- _sinclair_typebox.TUnion<
148
- [
149
- _sinclair_typebox.TString,
150
- _sinclair_typebox.TNumber,
151
- _sinclair_typebox.TDate
152
- ]
153
- >,
154
- Date
155
- >;
156
- status: _sinclair_typebox.TUnion<
157
- [{ [K_2 in keyof V]: _sinclair_typebox.TLiteral<V[K_2]> }[keyof V]]
158
- >;
159
- providerFields: _sinclair_typebox.TOptional<_sinclair_typebox.TUnknown>;
64
+ }) => _forklaunch_internal.SchemasByValidator<SchemaValidator, (options: {
65
+ uuidId: boolean;
66
+ }) => {
67
+ CreateCheckoutSessionSchema: <T extends Record<string, _forklaunch_validator.LiteralSchema>, U extends Record<string, _forklaunch_validator.LiteralSchema>, V extends Record<string, _forklaunch_validator.LiteralSchema>>(PaymentMethodEnum: T, CurrencyEnum: U, StatusEnum: V) => {
68
+ customerId: _sinclair_typebox.TString;
69
+ paymentMethods: _sinclair_typebox.TArray<_sinclair_typebox.TUnion<[{ [K in keyof T]: _sinclair_typebox.TLiteral<T[K]>; }[keyof T]]>>;
70
+ currency: _sinclair_typebox.TUnion<[{ [K_1 in keyof U]: _sinclair_typebox.TLiteral<U[K_1]>; }[keyof U]]>;
71
+ successRedirectUri: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
72
+ cancelRedirectUri: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
73
+ expiresAt: _sinclair_typebox.TTransform<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber, _sinclair_typebox.TDate]>, Date>;
74
+ status: _sinclair_typebox.TUnion<[{ [K_2 in keyof V]: _sinclair_typebox.TLiteral<V[K_2]>; }[keyof V]]>;
75
+ providerFields: _sinclair_typebox.TOptional<_sinclair_typebox.TUnknown>;
160
76
  };
161
- UpdateCheckoutSessionSchema: <
162
- T extends Record<string, _forklaunch_validator.LiteralSchema>,
163
- U_1 extends Record<string, _forklaunch_validator.LiteralSchema>,
164
- V_1 extends Record<string, _forklaunch_validator.LiteralSchema>
165
- >(
166
- PaymentMethodEnum: T,
167
- CurrencyEnum: U_1,
168
- StatusEnum: V_1
169
- ) => {
170
- id: _sinclair_typebox.TString;
171
- customerId: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
172
- paymentMethods: _sinclair_typebox.TOptional<
173
- _sinclair_typebox.TArray<
174
- _sinclair_typebox.TUnion<
175
- [{ [K in keyof T]: _sinclair_typebox.TLiteral<T[K]> }[keyof T]]
176
- >
177
- >
178
- >;
179
- currency: _sinclair_typebox.TOptional<
180
- _sinclair_typebox.TUnion<
181
- [
182
- {
183
- [K_1 in keyof U_1]: _sinclair_typebox.TLiteral<U_1[K_1]>;
184
- }[keyof U_1]
185
- ]
186
- >
187
- >;
188
- successRedirectUri: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
189
- cancelRedirectUri: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
190
- expiresAt: _sinclair_typebox.TOptional<
191
- _sinclair_typebox.TTransform<
192
- _sinclair_typebox.TUnion<
193
- [
194
- _sinclair_typebox.TString,
195
- _sinclair_typebox.TNumber,
196
- _sinclair_typebox.TDate
197
- ]
198
- >,
199
- Date
200
- >
201
- >;
202
- status: _sinclair_typebox.TOptional<
203
- _sinclair_typebox.TUnion<
204
- [
205
- {
206
- [K_2 in keyof V_1]: _sinclair_typebox.TLiteral<V_1[K_2]>;
207
- }[keyof V_1]
208
- ]
209
- >
210
- >;
211
- providerFields: _sinclair_typebox.TOptional<_sinclair_typebox.TUnknown>;
77
+ UpdateCheckoutSessionSchema: <T extends Record<string, _forklaunch_validator.LiteralSchema>, U_1 extends Record<string, _forklaunch_validator.LiteralSchema>, V_1 extends Record<string, _forklaunch_validator.LiteralSchema>>(PaymentMethodEnum: T, CurrencyEnum: U_1, StatusEnum: V_1) => {
78
+ id: _sinclair_typebox.TString;
79
+ customerId: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
80
+ paymentMethods: _sinclair_typebox.TOptional<_sinclair_typebox.TArray<_sinclair_typebox.TUnion<[{ [K in keyof T]: _sinclair_typebox.TLiteral<T[K]>; }[keyof T]]>>>;
81
+ currency: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[{ [K_1 in keyof U_1]: _sinclair_typebox.TLiteral<U_1[K_1]>; }[keyof U_1]]>>;
82
+ successRedirectUri: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
83
+ cancelRedirectUri: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
84
+ expiresAt: _sinclair_typebox.TOptional<_sinclair_typebox.TTransform<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber, _sinclair_typebox.TDate]>, Date>>;
85
+ status: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[{ [K_2 in keyof V_1]: _sinclair_typebox.TLiteral<V_1[K_2]>; }[keyof V_1]]>>;
86
+ providerFields: _sinclair_typebox.TOptional<_sinclair_typebox.TUnknown>;
212
87
  };
213
- CheckoutSessionSchema: <
214
- T extends Record<string, _forklaunch_validator.LiteralSchema>,
215
- U_2 extends Record<string, _forklaunch_validator.LiteralSchema>,
216
- V_2 extends Record<string, _forklaunch_validator.LiteralSchema>
217
- >(
218
- PaymentMethodEnum: T,
219
- CurrencyEnum: U_2,
220
- StatusEnum: V_2
221
- ) => {
222
- id: _sinclair_typebox.TString;
223
- customerId: _sinclair_typebox.TString;
224
- paymentMethods: _sinclair_typebox.TArray<
225
- _sinclair_typebox.TUnion<
226
- [{ [K in keyof T]: _sinclair_typebox.TLiteral<T[K]> }[keyof T]]
227
- >
228
- >;
229
- currency: _sinclair_typebox.TUnion<
230
- [
231
- {
232
- [K_1 in keyof U_2]: _sinclair_typebox.TLiteral<U_2[K_1]>;
233
- }[keyof U_2]
234
- ]
235
- >;
236
- successRedirectUri: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
237
- cancelRedirectUri: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
238
- expiresAt: _sinclair_typebox.TTransform<
239
- _sinclair_typebox.TUnion<
240
- [
241
- _sinclair_typebox.TString,
242
- _sinclair_typebox.TNumber,
243
- _sinclair_typebox.TDate
244
- ]
245
- >,
246
- Date
247
- >;
248
- status: _sinclair_typebox.TUnion<
249
- [
250
- {
251
- [K_2 in keyof V_2]: _sinclair_typebox.TLiteral<V_2[K_2]>;
252
- }[keyof V_2]
253
- ]
254
- >;
255
- providerFields: _sinclair_typebox.TOptional<_sinclair_typebox.TUnknown>;
256
- createdAt: _sinclair_typebox.TOptional<
257
- _sinclair_typebox.TTransform<
258
- _sinclair_typebox.TUnion<
259
- [
260
- _sinclair_typebox.TString,
261
- _sinclair_typebox.TNumber,
262
- _sinclair_typebox.TDate
263
- ]
264
- >,
265
- Date
266
- >
267
- >;
268
- updatedAt: _sinclair_typebox.TOptional<
269
- _sinclair_typebox.TTransform<
270
- _sinclair_typebox.TUnion<
271
- [
272
- _sinclair_typebox.TString,
273
- _sinclair_typebox.TNumber,
274
- _sinclair_typebox.TDate
275
- ]
276
- >,
277
- Date
278
- >
279
- >;
88
+ CheckoutSessionSchema: <T extends Record<string, _forklaunch_validator.LiteralSchema>, U_2 extends Record<string, _forklaunch_validator.LiteralSchema>, V_2 extends Record<string, _forklaunch_validator.LiteralSchema>>(PaymentMethodEnum: T, CurrencyEnum: U_2, StatusEnum: V_2) => {
89
+ id: _sinclair_typebox.TString;
90
+ customerId: _sinclair_typebox.TString;
91
+ paymentMethods: _sinclair_typebox.TArray<_sinclair_typebox.TUnion<[{ [K in keyof T]: _sinclair_typebox.TLiteral<T[K]>; }[keyof T]]>>;
92
+ currency: _sinclair_typebox.TUnion<[{ [K_1 in keyof U_2]: _sinclair_typebox.TLiteral<U_2[K_1]>; }[keyof U_2]]>;
93
+ successRedirectUri: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
94
+ cancelRedirectUri: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
95
+ expiresAt: _sinclair_typebox.TTransform<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber, _sinclair_typebox.TDate]>, Date>;
96
+ status: _sinclair_typebox.TUnion<[{ [K_2 in keyof V_2]: _sinclair_typebox.TLiteral<V_2[K_2]>; }[keyof V_2]]>;
97
+ providerFields: _sinclair_typebox.TOptional<_sinclair_typebox.TUnknown>;
98
+ createdAt: _sinclair_typebox.TOptional<_sinclair_typebox.TTransform<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber, _sinclair_typebox.TDate]>, Date>>;
99
+ updatedAt: _sinclair_typebox.TOptional<_sinclair_typebox.TTransform<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber, _sinclair_typebox.TDate]>, Date>>;
280
100
  };
281
- },
282
- (options: { uuidId: boolean }) => {
283
- CreateCheckoutSessionSchema: <
284
- T extends Record<string, _forklaunch_validator.LiteralSchema>,
285
- U_3 extends Record<string, _forklaunch_validator.LiteralSchema>,
286
- V_3 extends Record<string, _forklaunch_validator.LiteralSchema>
287
- >(
288
- PaymentMethodEnum: T,
289
- CurrencyEnum: V_3,
290
- StatusEnum: U_3
291
- ) => {
292
- customerId: zod.ZodString;
293
- paymentMethods: zod.ZodArray<
294
- zod.ZodUnion<[{ [K in keyof T]: zod.ZodLiteral<T[K]> }[keyof T]]>,
295
- 'many'
296
- >;
297
- currency: zod.ZodUnion<
298
- [{ [K_1 in keyof V_3]: zod.ZodLiteral<V_3[K_1]> }[keyof V_3]]
299
- >;
300
- successRedirectUri: zod.ZodOptional<zod.ZodString>;
301
- cancelRedirectUri: zod.ZodOptional<zod.ZodString>;
302
- expiresAt: zod.ZodEffects<zod.ZodDate, Date, unknown>;
303
- status: zod.ZodUnion<
304
- [{ [K_2 in keyof U_3]: zod.ZodLiteral<U_3[K_2]> }[keyof U_3]]
305
- >;
306
- providerFields: zod.ZodOptional<zod.ZodUnknown>;
101
+ }, (options: {
102
+ uuidId: boolean;
103
+ }) => {
104
+ CreateCheckoutSessionSchema: <T extends Record<string, _forklaunch_validator.LiteralSchema>, U_3 extends Record<string, _forklaunch_validator.LiteralSchema>, V_3 extends Record<string, _forklaunch_validator.LiteralSchema>>(PaymentMethodEnum: T, CurrencyEnum: V_3, StatusEnum: U_3) => {
105
+ customerId: zod.ZodString;
106
+ paymentMethods: zod.ZodArray<zod.ZodUnion<[{ [K in keyof T]: zod.ZodLiteral<T[K]>; }[keyof T]]>, "many">;
107
+ currency: zod.ZodUnion<[{ [K_1 in keyof V_3]: zod.ZodLiteral<V_3[K_1]>; }[keyof V_3]]>;
108
+ successRedirectUri: zod.ZodOptional<zod.ZodString>;
109
+ cancelRedirectUri: zod.ZodOptional<zod.ZodString>;
110
+ expiresAt: zod.ZodEffects<zod.ZodDate, Date, unknown>;
111
+ status: zod.ZodUnion<[{ [K_2 in keyof U_3]: zod.ZodLiteral<U_3[K_2]>; }[keyof U_3]]>;
112
+ providerFields: zod.ZodOptional<zod.ZodUnknown>;
307
113
  };
308
- UpdateCheckoutSessionSchema: <
309
- T extends Record<string, _forklaunch_validator.LiteralSchema>,
310
- U_4 extends Record<string, _forklaunch_validator.LiteralSchema>,
311
- V_4 extends Record<string, _forklaunch_validator.LiteralSchema>
312
- >(
313
- PaymentMethodEnum: T,
314
- CurrencyEnum: U_4,
315
- StatusEnum: V_4
316
- ) => {
317
- id: zod.ZodString;
318
- customerId: zod.ZodOptional<zod.ZodString>;
319
- paymentMethods: zod.ZodOptional<
320
- zod.ZodArray<
321
- zod.ZodUnion<[{ [K in keyof T]: zod.ZodLiteral<T[K]> }[keyof T]]>,
322
- 'many'
323
- >
324
- >;
325
- currency: zod.ZodOptional<
326
- zod.ZodUnion<
327
- [{ [K_1 in keyof U_4]: zod.ZodLiteral<U_4[K_1]> }[keyof U_4]]
328
- >
329
- >;
330
- successRedirectUri: zod.ZodOptional<zod.ZodString>;
331
- cancelRedirectUri: zod.ZodOptional<zod.ZodString>;
332
- expiresAt: zod.ZodOptional<zod.ZodEffects<zod.ZodDate, Date, unknown>>;
333
- status: zod.ZodOptional<
334
- zod.ZodUnion<
335
- [{ [K_2 in keyof V_4]: zod.ZodLiteral<V_4[K_2]> }[keyof V_4]]
336
- >
337
- >;
338
- providerFields: zod.ZodOptional<zod.ZodUnknown>;
114
+ UpdateCheckoutSessionSchema: <T extends Record<string, _forklaunch_validator.LiteralSchema>, U_4 extends Record<string, _forklaunch_validator.LiteralSchema>, V_4 extends Record<string, _forklaunch_validator.LiteralSchema>>(PaymentMethodEnum: T, CurrencyEnum: U_4, StatusEnum: V_4) => {
115
+ id: zod.ZodString;
116
+ customerId: zod.ZodOptional<zod.ZodString>;
117
+ paymentMethods: zod.ZodOptional<zod.ZodArray<zod.ZodUnion<[{ [K in keyof T]: zod.ZodLiteral<T[K]>; }[keyof T]]>, "many">>;
118
+ currency: zod.ZodOptional<zod.ZodUnion<[{ [K_1 in keyof U_4]: zod.ZodLiteral<U_4[K_1]>; }[keyof U_4]]>>;
119
+ successRedirectUri: zod.ZodOptional<zod.ZodString>;
120
+ cancelRedirectUri: zod.ZodOptional<zod.ZodString>;
121
+ expiresAt: zod.ZodOptional<zod.ZodEffects<zod.ZodDate, Date, unknown>>;
122
+ status: zod.ZodOptional<zod.ZodUnion<[{ [K_2 in keyof V_4]: zod.ZodLiteral<V_4[K_2]>; }[keyof V_4]]>>;
123
+ providerFields: zod.ZodOptional<zod.ZodUnknown>;
339
124
  };
340
- CheckoutSessionSchema: <
341
- T extends Record<string, _forklaunch_validator.LiteralSchema>,
342
- U_5 extends Record<string, _forklaunch_validator.LiteralSchema>,
343
- V_5 extends Record<string, _forklaunch_validator.LiteralSchema>
344
- >(
345
- PaymentMethodEnum: T,
346
- CurrencyEnum: U_5,
347
- StatusEnum: V_5
348
- ) => {
349
- id: zod.ZodString;
350
- customerId: zod.ZodString;
351
- paymentMethods: zod.ZodArray<
352
- zod.ZodUnion<[{ [K in keyof T]: zod.ZodLiteral<T[K]> }[keyof T]]>,
353
- 'many'
354
- >;
355
- currency: zod.ZodUnion<
356
- [{ [K_1 in keyof U_5]: zod.ZodLiteral<U_5[K_1]> }[keyof U_5]]
357
- >;
358
- successRedirectUri: zod.ZodOptional<zod.ZodString>;
359
- cancelRedirectUri: zod.ZodOptional<zod.ZodString>;
360
- expiresAt: zod.ZodEffects<zod.ZodDate, Date, unknown>;
361
- status: zod.ZodUnion<
362
- [{ [K_2 in keyof V_5]: zod.ZodLiteral<V_5[K_2]> }[keyof V_5]]
363
- >;
364
- providerFields: zod.ZodOptional<zod.ZodUnknown>;
365
- createdAt: zod.ZodOptional<zod.ZodEffects<zod.ZodDate, Date, unknown>>;
366
- updatedAt: zod.ZodOptional<zod.ZodEffects<zod.ZodDate, Date, unknown>>;
125
+ CheckoutSessionSchema: <T extends Record<string, _forklaunch_validator.LiteralSchema>, U_5 extends Record<string, _forklaunch_validator.LiteralSchema>, V_5 extends Record<string, _forklaunch_validator.LiteralSchema>>(PaymentMethodEnum: T, CurrencyEnum: U_5, StatusEnum: V_5) => {
126
+ id: zod.ZodString;
127
+ customerId: zod.ZodString;
128
+ paymentMethods: zod.ZodArray<zod.ZodUnion<[{ [K in keyof T]: zod.ZodLiteral<T[K]>; }[keyof T]]>, "many">;
129
+ currency: zod.ZodUnion<[{ [K_1 in keyof U_5]: zod.ZodLiteral<U_5[K_1]>; }[keyof U_5]]>;
130
+ successRedirectUri: zod.ZodOptional<zod.ZodString>;
131
+ cancelRedirectUri: zod.ZodOptional<zod.ZodString>;
132
+ expiresAt: zod.ZodEffects<zod.ZodDate, Date, unknown>;
133
+ status: zod.ZodUnion<[{ [K_2 in keyof V_5]: zod.ZodLiteral<V_5[K_2]>; }[keyof V_5]]>;
134
+ providerFields: zod.ZodOptional<zod.ZodUnknown>;
135
+ createdAt: zod.ZodOptional<zod.ZodEffects<zod.ZodDate, Date, unknown>>;
136
+ updatedAt: zod.ZodOptional<zod.ZodEffects<zod.ZodDate, Date, unknown>>;
367
137
  };
368
- }
369
- >;
138
+ }>;
370
139
 
371
- declare const BasePaymentLinkServiceSchemas: <
372
- SchemaValidator extends _forklaunch_validator.AnySchemaValidator
373
- >(
374
- options: {
140
+ declare const BasePaymentLinkServiceSchemas: <SchemaValidator extends _forklaunch_validator.AnySchemaValidator>(options: {
375
141
  uuidId: boolean;
376
- } & {
142
+ } & {
377
143
  validator: SchemaValidator;
378
- }
379
- ) => _forklaunch_internal.SchemasByValidator<
380
- SchemaValidator,
381
- (options: { uuidId: boolean }) => {
382
- CreatePaymentLinkSchema: <
383
- T extends Record<string, _forklaunch_validator.LiteralSchema>,
384
- U extends Record<string, _forklaunch_validator.LiteralSchema>,
385
- V extends Record<string, _forklaunch_validator.LiteralSchema>
386
- >(
387
- PaymentMethodEnum: T,
388
- CurrencyEnum: U,
389
- StatusEnum: V
390
- ) => {
391
- amount: _sinclair_typebox.TTransform<
392
- _sinclair_typebox.TUnion<
393
- [
394
- _sinclair_typebox.TNumber,
395
- _sinclair_typebox.TString,
396
- _sinclair_typebox.TBoolean,
397
- _sinclair_typebox.TNull,
398
- _sinclair_typebox.TBigInt,
399
- _sinclair_typebox.TDate
400
- ]
401
- >,
402
- number
403
- >;
404
- paymentMethods: _sinclair_typebox.TArray<
405
- _sinclair_typebox.TUnion<
406
- [{ [K in keyof T]: _sinclair_typebox.TLiteral<T[K]> }[keyof T]]
407
- >
408
- >;
409
- currency: _sinclair_typebox.TUnion<
410
- [{ [K_1 in keyof U]: _sinclair_typebox.TLiteral<U[K_1]> }[keyof U]]
411
- >;
412
- status: _sinclair_typebox.TUnion<
413
- [{ [K_2 in keyof V]: _sinclair_typebox.TLiteral<V[K_2]> }[keyof V]]
414
- >;
415
- providerFields: _sinclair_typebox.TOptional<_sinclair_typebox.TUnknown>;
144
+ }) => _forklaunch_internal.SchemasByValidator<SchemaValidator, (options: {
145
+ uuidId: boolean;
146
+ }) => {
147
+ CreatePaymentLinkSchema: <T extends Record<string, _forklaunch_validator.LiteralSchema>, U extends Record<string, _forklaunch_validator.LiteralSchema>, V extends Record<string, _forklaunch_validator.LiteralSchema>>(PaymentMethodEnum: T, CurrencyEnum: U, StatusEnum: V) => {
148
+ amount: _sinclair_typebox.TTransform<_sinclair_typebox.TUnion<[_sinclair_typebox.TNumber, _sinclair_typebox.TString, _sinclair_typebox.TBoolean, _sinclair_typebox.TNull, _sinclair_typebox.TBigInt, _sinclair_typebox.TDate]>, number>;
149
+ paymentMethods: _sinclair_typebox.TArray<_sinclair_typebox.TUnion<[{ [K in keyof T]: _sinclair_typebox.TLiteral<T[K]>; }[keyof T]]>>;
150
+ currency: _sinclair_typebox.TUnion<[{ [K_1 in keyof U]: _sinclair_typebox.TLiteral<U[K_1]>; }[keyof U]]>;
151
+ status: _sinclair_typebox.TUnion<[{ [K_2 in keyof V]: _sinclair_typebox.TLiteral<V[K_2]>; }[keyof V]]>;
152
+ providerFields: _sinclair_typebox.TOptional<_sinclair_typebox.TUnknown>;
416
153
  };
417
- UpdatePaymentLinkSchema: <
418
- T extends Record<string, _forklaunch_validator.LiteralSchema>,
419
- U_1 extends Record<string, _forklaunch_validator.LiteralSchema>,
420
- V_1 extends Record<string, _forklaunch_validator.LiteralSchema>
421
- >(
422
- PaymentMethodEnum: T,
423
- CurrencyEnum: U_1,
424
- StatusEnum: V_1
425
- ) => {
426
- id: _sinclair_typebox.TString;
427
- amount: _sinclair_typebox.TOptional<
428
- _sinclair_typebox.TTransform<
429
- _sinclair_typebox.TUnion<
430
- [
431
- _sinclair_typebox.TNumber,
432
- _sinclair_typebox.TString,
433
- _sinclair_typebox.TBoolean,
434
- _sinclair_typebox.TNull,
435
- _sinclair_typebox.TBigInt,
436
- _sinclair_typebox.TDate
437
- ]
438
- >,
439
- number
440
- >
441
- >;
442
- paymentMethods: _sinclair_typebox.TOptional<
443
- _sinclair_typebox.TArray<
444
- _sinclair_typebox.TUnion<
445
- [{ [K in keyof T]: _sinclair_typebox.TLiteral<T[K]> }[keyof T]]
446
- >
447
- >
448
- >;
449
- currency: _sinclair_typebox.TOptional<
450
- _sinclair_typebox.TUnion<
451
- [
452
- {
453
- [K_1 in keyof U_1]: _sinclair_typebox.TLiteral<U_1[K_1]>;
454
- }[keyof U_1]
455
- ]
456
- >
457
- >;
458
- status: _sinclair_typebox.TOptional<
459
- _sinclair_typebox.TUnion<
460
- [
461
- {
462
- [K_2 in keyof V_1]: _sinclair_typebox.TLiteral<V_1[K_2]>;
463
- }[keyof V_1]
464
- ]
465
- >
466
- >;
467
- providerFields: _sinclair_typebox.TOptional<_sinclair_typebox.TUnknown>;
154
+ UpdatePaymentLinkSchema: <T extends Record<string, _forklaunch_validator.LiteralSchema>, U_1 extends Record<string, _forklaunch_validator.LiteralSchema>, V_1 extends Record<string, _forklaunch_validator.LiteralSchema>>(PaymentMethodEnum: T, CurrencyEnum: U_1, StatusEnum: V_1) => {
155
+ id: _sinclair_typebox.TString;
156
+ amount: _sinclair_typebox.TOptional<_sinclair_typebox.TTransform<_sinclair_typebox.TUnion<[_sinclair_typebox.TNumber, _sinclair_typebox.TString, _sinclair_typebox.TBoolean, _sinclair_typebox.TNull, _sinclair_typebox.TBigInt, _sinclair_typebox.TDate]>, number>>;
157
+ paymentMethods: _sinclair_typebox.TOptional<_sinclair_typebox.TArray<_sinclair_typebox.TUnion<[{ [K in keyof T]: _sinclair_typebox.TLiteral<T[K]>; }[keyof T]]>>>;
158
+ currency: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[{ [K_1 in keyof U_1]: _sinclair_typebox.TLiteral<U_1[K_1]>; }[keyof U_1]]>>;
159
+ status: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[{ [K_2 in keyof V_1]: _sinclair_typebox.TLiteral<V_1[K_2]>; }[keyof V_1]]>>;
160
+ providerFields: _sinclair_typebox.TOptional<_sinclair_typebox.TUnknown>;
468
161
  };
469
- PaymentLinkSchema: <
470
- T extends Record<string, _forklaunch_validator.LiteralSchema>,
471
- U_2 extends Record<string, _forklaunch_validator.LiteralSchema>,
472
- V_2 extends Record<string, _forklaunch_validator.LiteralSchema>
473
- >(
474
- PaymentMethodEnum: T,
475
- CurrencyEnum: U_2,
476
- StatusEnum: V_2
477
- ) => {
478
- id: _sinclair_typebox.TString;
479
- amount: _sinclair_typebox.TTransform<
480
- _sinclair_typebox.TUnion<
481
- [
482
- _sinclair_typebox.TNumber,
483
- _sinclair_typebox.TString,
484
- _sinclair_typebox.TBoolean,
485
- _sinclair_typebox.TNull,
486
- _sinclair_typebox.TBigInt,
487
- _sinclair_typebox.TDate
488
- ]
489
- >,
490
- number
491
- >;
492
- currency: _sinclair_typebox.TUnion<
493
- [{ [K in keyof U_2]: _sinclair_typebox.TLiteral<U_2[K]> }[keyof U_2]]
494
- >;
495
- paymentMethods: _sinclair_typebox.TArray<
496
- _sinclair_typebox.TUnion<
497
- [{ [K_1 in keyof T]: _sinclair_typebox.TLiteral<T[K_1]> }[keyof T]]
498
- >
499
- >;
500
- status: _sinclair_typebox.TUnion<
501
- [
502
- {
503
- [K_2 in keyof V_2]: _sinclair_typebox.TLiteral<V_2[K_2]>;
504
- }[keyof V_2]
505
- ]
506
- >;
507
- providerFields: _sinclair_typebox.TOptional<_sinclair_typebox.TUnknown>;
508
- createdAt: _sinclair_typebox.TOptional<
509
- _sinclair_typebox.TTransform<
510
- _sinclair_typebox.TUnion<
511
- [
512
- _sinclair_typebox.TString,
513
- _sinclair_typebox.TNumber,
514
- _sinclair_typebox.TDate
515
- ]
516
- >,
517
- Date
518
- >
519
- >;
520
- updatedAt: _sinclair_typebox.TOptional<
521
- _sinclair_typebox.TTransform<
522
- _sinclair_typebox.TUnion<
523
- [
524
- _sinclair_typebox.TString,
525
- _sinclair_typebox.TNumber,
526
- _sinclair_typebox.TDate
527
- ]
528
- >,
529
- Date
530
- >
531
- >;
162
+ PaymentLinkSchema: <T extends Record<string, _forklaunch_validator.LiteralSchema>, U_2 extends Record<string, _forklaunch_validator.LiteralSchema>, V_2 extends Record<string, _forklaunch_validator.LiteralSchema>>(PaymentMethodEnum: T, CurrencyEnum: U_2, StatusEnum: V_2) => {
163
+ id: _sinclair_typebox.TString;
164
+ amount: _sinclair_typebox.TTransform<_sinclair_typebox.TUnion<[_sinclair_typebox.TNumber, _sinclair_typebox.TString, _sinclair_typebox.TBoolean, _sinclair_typebox.TNull, _sinclair_typebox.TBigInt, _sinclair_typebox.TDate]>, number>;
165
+ currency: _sinclair_typebox.TUnion<[{ [K in keyof U_2]: _sinclair_typebox.TLiteral<U_2[K]>; }[keyof U_2]]>;
166
+ paymentMethods: _sinclair_typebox.TArray<_sinclair_typebox.TUnion<[{ [K_1 in keyof T]: _sinclair_typebox.TLiteral<T[K_1]>; }[keyof T]]>>;
167
+ status: _sinclair_typebox.TUnion<[{ [K_2 in keyof V_2]: _sinclair_typebox.TLiteral<V_2[K_2]>; }[keyof V_2]]>;
168
+ providerFields: _sinclair_typebox.TOptional<_sinclair_typebox.TUnknown>;
169
+ createdAt: _sinclair_typebox.TOptional<_sinclair_typebox.TTransform<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber, _sinclair_typebox.TDate]>, Date>>;
170
+ updatedAt: _sinclair_typebox.TOptional<_sinclair_typebox.TTransform<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber, _sinclair_typebox.TDate]>, Date>>;
532
171
  };
533
- },
534
- (options: { uuidId: boolean }) => {
535
- CreatePaymentLinkSchema: <
536
- T extends Record<string, _forklaunch_validator.LiteralSchema>,
537
- U_3 extends Record<string, _forklaunch_validator.LiteralSchema>,
538
- V_3 extends Record<string, _forklaunch_validator.LiteralSchema>
539
- >(
540
- PaymentMethodEnum: T,
541
- CurrencyEnum: U_3,
542
- StatusEnum: V_3
543
- ) => {
544
- amount: zod.ZodEffects<zod.ZodNumber, number, unknown>;
545
- paymentMethods: zod.ZodArray<
546
- zod.ZodUnion<[{ [K in keyof T]: zod.ZodLiteral<T[K]> }[keyof T]]>,
547
- 'many'
548
- >;
549
- currency: zod.ZodUnion<
550
- [{ [K_1 in keyof U_3]: zod.ZodLiteral<U_3[K_1]> }[keyof U_3]]
551
- >;
552
- status: zod.ZodUnion<
553
- [{ [K_2 in keyof V_3]: zod.ZodLiteral<V_3[K_2]> }[keyof V_3]]
554
- >;
555
- providerFields: zod.ZodOptional<zod.ZodUnknown>;
172
+ }, (options: {
173
+ uuidId: boolean;
174
+ }) => {
175
+ CreatePaymentLinkSchema: <T extends Record<string, _forklaunch_validator.LiteralSchema>, U_3 extends Record<string, _forklaunch_validator.LiteralSchema>, V_3 extends Record<string, _forklaunch_validator.LiteralSchema>>(PaymentMethodEnum: T, CurrencyEnum: U_3, StatusEnum: V_3) => {
176
+ amount: zod.ZodEffects<zod.ZodNumber, number, unknown>;
177
+ paymentMethods: zod.ZodArray<zod.ZodUnion<[{ [K in keyof T]: zod.ZodLiteral<T[K]>; }[keyof T]]>, "many">;
178
+ currency: zod.ZodUnion<[{ [K_1 in keyof U_3]: zod.ZodLiteral<U_3[K_1]>; }[keyof U_3]]>;
179
+ status: zod.ZodUnion<[{ [K_2 in keyof V_3]: zod.ZodLiteral<V_3[K_2]>; }[keyof V_3]]>;
180
+ providerFields: zod.ZodOptional<zod.ZodUnknown>;
556
181
  };
557
- UpdatePaymentLinkSchema: <
558
- T extends Record<string, _forklaunch_validator.LiteralSchema>,
559
- U_4 extends Record<string, _forklaunch_validator.LiteralSchema>,
560
- V_4 extends Record<string, _forklaunch_validator.LiteralSchema>
561
- >(
562
- PaymentMethodEnum: T,
563
- CurrencyEnum: U_4,
564
- StatusEnum: V_4
565
- ) => {
566
- id: zod.ZodString;
567
- amount: zod.ZodOptional<zod.ZodEffects<zod.ZodNumber, number, unknown>>;
568
- paymentMethods: zod.ZodOptional<
569
- zod.ZodArray<
570
- zod.ZodUnion<[{ [K in keyof T]: zod.ZodLiteral<T[K]> }[keyof T]]>,
571
- 'many'
572
- >
573
- >;
574
- currency: zod.ZodOptional<
575
- zod.ZodUnion<
576
- [{ [K_1 in keyof U_4]: zod.ZodLiteral<U_4[K_1]> }[keyof U_4]]
577
- >
578
- >;
579
- status: zod.ZodOptional<
580
- zod.ZodUnion<
581
- [{ [K_2 in keyof V_4]: zod.ZodLiteral<V_4[K_2]> }[keyof V_4]]
582
- >
583
- >;
584
- providerFields: zod.ZodOptional<zod.ZodUnknown>;
182
+ UpdatePaymentLinkSchema: <T extends Record<string, _forklaunch_validator.LiteralSchema>, U_4 extends Record<string, _forklaunch_validator.LiteralSchema>, V_4 extends Record<string, _forklaunch_validator.LiteralSchema>>(PaymentMethodEnum: T, CurrencyEnum: U_4, StatusEnum: V_4) => {
183
+ id: zod.ZodString;
184
+ amount: zod.ZodOptional<zod.ZodEffects<zod.ZodNumber, number, unknown>>;
185
+ paymentMethods: zod.ZodOptional<zod.ZodArray<zod.ZodUnion<[{ [K in keyof T]: zod.ZodLiteral<T[K]>; }[keyof T]]>, "many">>;
186
+ currency: zod.ZodOptional<zod.ZodUnion<[{ [K_1 in keyof U_4]: zod.ZodLiteral<U_4[K_1]>; }[keyof U_4]]>>;
187
+ status: zod.ZodOptional<zod.ZodUnion<[{ [K_2 in keyof V_4]: zod.ZodLiteral<V_4[K_2]>; }[keyof V_4]]>>;
188
+ providerFields: zod.ZodOptional<zod.ZodUnknown>;
585
189
  };
586
- PaymentLinkSchema: <
587
- T extends Record<string, _forklaunch_validator.LiteralSchema>,
588
- U_5 extends Record<string, _forklaunch_validator.LiteralSchema>,
589
- V_5 extends Record<string, _forklaunch_validator.LiteralSchema>
590
- >(
591
- PaymentMethodEnum: T,
592
- CurrencyEnum: U_5,
593
- StatusEnum: V_5
594
- ) => {
595
- id: zod.ZodString;
596
- amount: zod.ZodEffects<zod.ZodNumber, number, unknown>;
597
- paymentMethods: zod.ZodArray<
598
- zod.ZodUnion<[{ [K in keyof T]: zod.ZodLiteral<T[K]> }[keyof T]]>,
599
- 'many'
600
- >;
601
- currency: zod.ZodUnion<
602
- [{ [K_1 in keyof U_5]: zod.ZodLiteral<U_5[K_1]> }[keyof U_5]]
603
- >;
604
- status: zod.ZodUnion<
605
- [{ [K_2 in keyof V_5]: zod.ZodLiteral<V_5[K_2]> }[keyof V_5]]
606
- >;
607
- providerFields: zod.ZodOptional<zod.ZodUnknown>;
608
- createdAt: zod.ZodOptional<zod.ZodEffects<zod.ZodDate, Date, unknown>>;
609
- updatedAt: zod.ZodOptional<zod.ZodEffects<zod.ZodDate, Date, unknown>>;
190
+ PaymentLinkSchema: <T extends Record<string, _forklaunch_validator.LiteralSchema>, U_5 extends Record<string, _forklaunch_validator.LiteralSchema>, V_5 extends Record<string, _forklaunch_validator.LiteralSchema>>(PaymentMethodEnum: T, CurrencyEnum: U_5, StatusEnum: V_5) => {
191
+ id: zod.ZodString;
192
+ amount: zod.ZodEffects<zod.ZodNumber, number, unknown>;
193
+ paymentMethods: zod.ZodArray<zod.ZodUnion<[{ [K in keyof T]: zod.ZodLiteral<T[K]>; }[keyof T]]>, "many">;
194
+ currency: zod.ZodUnion<[{ [K_1 in keyof U_5]: zod.ZodLiteral<U_5[K_1]>; }[keyof U_5]]>;
195
+ status: zod.ZodUnion<[{ [K_2 in keyof V_5]: zod.ZodLiteral<V_5[K_2]>; }[keyof V_5]]>;
196
+ providerFields: zod.ZodOptional<zod.ZodUnknown>;
197
+ createdAt: zod.ZodOptional<zod.ZodEffects<zod.ZodDate, Date, unknown>>;
198
+ updatedAt: zod.ZodOptional<zod.ZodEffects<zod.ZodDate, Date, unknown>>;
610
199
  };
611
- }
612
- >;
200
+ }>;
613
201
 
614
- declare const BasePlanServiceSchemas: <
615
- SchemaValidator extends _forklaunch_validator.AnySchemaValidator
616
- >(
617
- options: {
202
+ declare const BasePlanServiceSchemas: <SchemaValidator extends _forklaunch_validator.AnySchemaValidator>(options: {
618
203
  uuidId: boolean;
619
- } & {
204
+ } & {
620
205
  validator: SchemaValidator;
621
- }
622
- ) => _forklaunch_internal.SchemasByValidator<
623
- SchemaValidator,
624
- (options: { uuidId: boolean }) => {
625
- CreatePlanSchema: <
626
- T extends Record<string, _forklaunch_validator.LiteralSchema>,
627
- U extends Record<string, _forklaunch_validator.LiteralSchema>,
628
- V extends Record<string, _forklaunch_validator.LiteralSchema>
629
- >(
630
- PlanCadenceEnum: T,
631
- CurrencyEnum: U,
632
- BillingProviderEnum: V
633
- ) => {
634
- name: _sinclair_typebox.TString;
635
- description: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
636
- price: _sinclair_typebox.TTransform<
637
- _sinclair_typebox.TUnion<
638
- [
639
- _sinclair_typebox.TNumber,
640
- _sinclair_typebox.TString,
641
- _sinclair_typebox.TBoolean,
642
- _sinclair_typebox.TNull,
643
- _sinclair_typebox.TBigInt,
644
- _sinclair_typebox.TDate
645
- ]
646
- >,
647
- number
648
- >;
649
- cadence: _sinclair_typebox.TUnion<
650
- [{ [K in keyof T]: _sinclair_typebox.TLiteral<T[K]> }[keyof T]]
651
- >;
652
- currency: _sinclair_typebox.TUnion<
653
- [{ [K_1 in keyof U]: _sinclair_typebox.TLiteral<U[K_1]> }[keyof U]]
654
- >;
655
- features: _sinclair_typebox.TOptional<
656
- _sinclair_typebox.TArray<_sinclair_typebox.TString>
657
- >;
658
- externalId: _sinclair_typebox.TString;
659
- billingProvider: _sinclair_typebox.TOptional<
660
- _sinclair_typebox.TUnion<
661
- [{ [K_2 in keyof V]: _sinclair_typebox.TLiteral<V[K_2]> }[keyof V]]
662
- >
663
- >;
664
- active: _sinclair_typebox.TTransform<
665
- _sinclair_typebox.TUnion<
666
- [_sinclair_typebox.TBoolean, _sinclair_typebox.TString]
667
- >,
668
- boolean
669
- >;
670
- providerFields: _sinclair_typebox.TOptional<_sinclair_typebox.TUnknown>;
206
+ }) => _forklaunch_internal.SchemasByValidator<SchemaValidator, (options: {
207
+ uuidId: boolean;
208
+ }) => {
209
+ CreatePlanSchema: <T extends Record<string, _forklaunch_validator.LiteralSchema>, U extends Record<string, _forklaunch_validator.LiteralSchema>, V extends Record<string, _forklaunch_validator.LiteralSchema>>(PlanCadenceEnum: T, CurrencyEnum: U, BillingProviderEnum: V) => {
210
+ name: _sinclair_typebox.TString;
211
+ description: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
212
+ price: _sinclair_typebox.TTransform<_sinclair_typebox.TUnion<[_sinclair_typebox.TNumber, _sinclair_typebox.TString, _sinclair_typebox.TBoolean, _sinclair_typebox.TNull, _sinclair_typebox.TBigInt, _sinclair_typebox.TDate]>, number>;
213
+ cadence: _sinclair_typebox.TUnion<[{ [K in keyof T]: _sinclair_typebox.TLiteral<T[K]>; }[keyof T]]>;
214
+ currency: _sinclair_typebox.TUnion<[{ [K_1 in keyof U]: _sinclair_typebox.TLiteral<U[K_1]>; }[keyof U]]>;
215
+ features: _sinclair_typebox.TOptional<_sinclair_typebox.TArray<_sinclair_typebox.TString>>;
216
+ externalId: _sinclair_typebox.TString;
217
+ billingProvider: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[{ [K_2 in keyof V]: _sinclair_typebox.TLiteral<V[K_2]>; }[keyof V]]>>;
218
+ active: _sinclair_typebox.TTransform<_sinclair_typebox.TUnion<[_sinclair_typebox.TBoolean, _sinclair_typebox.TString]>, boolean>;
219
+ providerFields: _sinclair_typebox.TOptional<_sinclair_typebox.TUnknown>;
671
220
  };
672
- UpdatePlanSchema: <
673
- T extends Record<string, _forklaunch_validator.LiteralSchema>,
674
- U_1 extends Record<string, _forklaunch_validator.LiteralSchema>,
675
- V_1 extends Record<string, _forklaunch_validator.LiteralSchema>
676
- >(
677
- PlanCadenceEnum: T,
678
- CurrencyEnum: U_1,
679
- BillingProviderEnum: V_1
680
- ) => {
681
- id: _sinclair_typebox.TString;
682
- name: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
683
- description: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
684
- price: _sinclair_typebox.TOptional<
685
- _sinclair_typebox.TTransform<
686
- _sinclair_typebox.TUnion<
687
- [
688
- _sinclair_typebox.TNumber,
689
- _sinclair_typebox.TString,
690
- _sinclair_typebox.TBoolean,
691
- _sinclair_typebox.TNull,
692
- _sinclair_typebox.TBigInt,
693
- _sinclair_typebox.TDate
694
- ]
695
- >,
696
- number
697
- >
698
- >;
699
- cadence: _sinclair_typebox.TOptional<
700
- _sinclair_typebox.TUnion<
701
- [{ [K in keyof T]: _sinclair_typebox.TLiteral<T[K]> }[keyof T]]
702
- >
703
- >;
704
- currency: _sinclair_typebox.TOptional<
705
- _sinclair_typebox.TUnion<
706
- [
707
- {
708
- [K_1 in keyof U_1]: _sinclair_typebox.TLiteral<U_1[K_1]>;
709
- }[keyof U_1]
710
- ]
711
- >
712
- >;
713
- features: _sinclair_typebox.TOptional<
714
- _sinclair_typebox.TArray<_sinclair_typebox.TString>
715
- >;
716
- externalId: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
717
- billingProvider: _sinclair_typebox.TOptional<
718
- _sinclair_typebox.TUnion<
719
- [
720
- {
721
- [K_2 in keyof V_1]: _sinclair_typebox.TLiteral<V_1[K_2]>;
722
- }[keyof V_1]
723
- ]
724
- >
725
- >;
726
- active: _sinclair_typebox.TOptional<
727
- _sinclair_typebox.TTransform<
728
- _sinclair_typebox.TUnion<
729
- [_sinclair_typebox.TBoolean, _sinclair_typebox.TString]
730
- >,
731
- boolean
732
- >
733
- >;
734
- providerFields: _sinclair_typebox.TOptional<_sinclair_typebox.TUnknown>;
221
+ UpdatePlanSchema: <T extends Record<string, _forklaunch_validator.LiteralSchema>, U_1 extends Record<string, _forklaunch_validator.LiteralSchema>, V_1 extends Record<string, _forklaunch_validator.LiteralSchema>>(PlanCadenceEnum: T, CurrencyEnum: U_1, BillingProviderEnum: V_1) => {
222
+ id: _sinclair_typebox.TString;
223
+ name: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
224
+ description: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
225
+ price: _sinclair_typebox.TOptional<_sinclair_typebox.TTransform<_sinclair_typebox.TUnion<[_sinclair_typebox.TNumber, _sinclair_typebox.TString, _sinclair_typebox.TBoolean, _sinclair_typebox.TNull, _sinclair_typebox.TBigInt, _sinclair_typebox.TDate]>, number>>;
226
+ cadence: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[{ [K in keyof T]: _sinclair_typebox.TLiteral<T[K]>; }[keyof T]]>>;
227
+ currency: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[{ [K_1 in keyof U_1]: _sinclair_typebox.TLiteral<U_1[K_1]>; }[keyof U_1]]>>;
228
+ features: _sinclair_typebox.TOptional<_sinclair_typebox.TArray<_sinclair_typebox.TString>>;
229
+ externalId: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
230
+ billingProvider: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[{ [K_2 in keyof V_1]: _sinclair_typebox.TLiteral<V_1[K_2]>; }[keyof V_1]]>>;
231
+ active: _sinclair_typebox.TOptional<_sinclair_typebox.TTransform<_sinclair_typebox.TUnion<[_sinclair_typebox.TBoolean, _sinclair_typebox.TString]>, boolean>>;
232
+ providerFields: _sinclair_typebox.TOptional<_sinclair_typebox.TUnknown>;
735
233
  };
736
- PlanSchema: <
737
- T extends Record<string, _forklaunch_validator.LiteralSchema>,
738
- U_2 extends Record<string, _forklaunch_validator.LiteralSchema>,
739
- V_2 extends Record<string, _forklaunch_validator.LiteralSchema>
740
- >(
741
- PlanCadenceEnum: T,
742
- CurrencyEnum: U_2,
743
- BillingProviderEnum: V_2
744
- ) => {
745
- id: _sinclair_typebox.TString;
746
- name: _sinclair_typebox.TString;
747
- description: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
748
- price: _sinclair_typebox.TTransform<
749
- _sinclair_typebox.TUnion<
750
- [
751
- _sinclair_typebox.TNumber,
752
- _sinclair_typebox.TString,
753
- _sinclair_typebox.TBoolean,
754
- _sinclair_typebox.TNull,
755
- _sinclair_typebox.TBigInt,
756
- _sinclair_typebox.TDate
757
- ]
758
- >,
759
- number
760
- >;
761
- cadence: _sinclair_typebox.TUnion<
762
- [{ [K in keyof T]: _sinclair_typebox.TLiteral<T[K]> }[keyof T]]
763
- >;
764
- currency: _sinclair_typebox.TUnion<
765
- [
766
- {
767
- [K_1 in keyof U_2]: _sinclair_typebox.TLiteral<U_2[K_1]>;
768
- }[keyof U_2]
769
- ]
770
- >;
771
- features: _sinclair_typebox.TOptional<
772
- _sinclair_typebox.TArray<_sinclair_typebox.TString>
773
- >;
774
- externalId: _sinclair_typebox.TString;
775
- billingProvider: _sinclair_typebox.TOptional<
776
- _sinclair_typebox.TUnion<
777
- [
778
- {
779
- [K_2 in keyof V_2]: _sinclair_typebox.TLiteral<V_2[K_2]>;
780
- }[keyof V_2]
781
- ]
782
- >
783
- >;
784
- active: _sinclair_typebox.TTransform<
785
- _sinclair_typebox.TUnion<
786
- [_sinclair_typebox.TBoolean, _sinclair_typebox.TString]
787
- >,
788
- boolean
789
- >;
790
- providerFields: _sinclair_typebox.TOptional<_sinclair_typebox.TUnknown>;
791
- createdAt: _sinclair_typebox.TOptional<
792
- _sinclair_typebox.TTransform<
793
- _sinclair_typebox.TUnion<
794
- [
795
- _sinclair_typebox.TString,
796
- _sinclair_typebox.TNumber,
797
- _sinclair_typebox.TDate
798
- ]
799
- >,
800
- Date
801
- >
802
- >;
803
- updatedAt: _sinclair_typebox.TOptional<
804
- _sinclair_typebox.TTransform<
805
- _sinclair_typebox.TUnion<
806
- [
807
- _sinclair_typebox.TString,
808
- _sinclair_typebox.TNumber,
809
- _sinclair_typebox.TDate
810
- ]
811
- >,
812
- Date
813
- >
814
- >;
234
+ PlanSchema: <T extends Record<string, _forklaunch_validator.LiteralSchema>, U_2 extends Record<string, _forklaunch_validator.LiteralSchema>, V_2 extends Record<string, _forklaunch_validator.LiteralSchema>>(PlanCadenceEnum: T, CurrencyEnum: U_2, BillingProviderEnum: V_2) => {
235
+ id: _sinclair_typebox.TString;
236
+ name: _sinclair_typebox.TString;
237
+ description: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
238
+ price: _sinclair_typebox.TTransform<_sinclair_typebox.TUnion<[_sinclair_typebox.TNumber, _sinclair_typebox.TString, _sinclair_typebox.TBoolean, _sinclair_typebox.TNull, _sinclair_typebox.TBigInt, _sinclair_typebox.TDate]>, number>;
239
+ cadence: _sinclair_typebox.TUnion<[{ [K in keyof T]: _sinclair_typebox.TLiteral<T[K]>; }[keyof T]]>;
240
+ currency: _sinclair_typebox.TUnion<[{ [K_1 in keyof U_2]: _sinclair_typebox.TLiteral<U_2[K_1]>; }[keyof U_2]]>;
241
+ features: _sinclair_typebox.TOptional<_sinclair_typebox.TArray<_sinclair_typebox.TString>>;
242
+ externalId: _sinclair_typebox.TString;
243
+ billingProvider: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[{ [K_2 in keyof V_2]: _sinclair_typebox.TLiteral<V_2[K_2]>; }[keyof V_2]]>>;
244
+ active: _sinclair_typebox.TTransform<_sinclair_typebox.TUnion<[_sinclair_typebox.TBoolean, _sinclair_typebox.TString]>, boolean>;
245
+ providerFields: _sinclair_typebox.TOptional<_sinclair_typebox.TUnknown>;
246
+ createdAt: _sinclair_typebox.TOptional<_sinclair_typebox.TTransform<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber, _sinclair_typebox.TDate]>, Date>>;
247
+ updatedAt: _sinclair_typebox.TOptional<_sinclair_typebox.TTransform<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber, _sinclair_typebox.TDate]>, Date>>;
815
248
  };
816
- },
817
- (options: { uuidId: boolean }) => {
818
- CreatePlanSchema: <
819
- T extends Record<string, _forklaunch_validator.LiteralSchema>,
820
- U_3 extends Record<string, _forklaunch_validator.LiteralSchema>,
821
- V_3 extends Record<string, _forklaunch_validator.LiteralSchema>
822
- >(
823
- PlanCadenceEnum: T,
824
- CurrencyEnum: U_3,
825
- BillingProviderEnum: V_3
826
- ) => {
827
- name: zod.ZodString;
828
- description: zod.ZodOptional<zod.ZodString>;
829
- price: zod.ZodEffects<zod.ZodNumber, number, unknown>;
830
- cadence: zod.ZodUnion<
831
- [{ [K in keyof T]: zod.ZodLiteral<T[K]> }[keyof T]]
832
- >;
833
- currency: zod.ZodUnion<
834
- [{ [K_1 in keyof U_3]: zod.ZodLiteral<U_3[K_1]> }[keyof U_3]]
835
- >;
836
- features: zod.ZodOptional<zod.ZodArray<zod.ZodString, 'many'>>;
837
- externalId: zod.ZodString;
838
- billingProvider: zod.ZodOptional<
839
- zod.ZodUnion<
840
- [{ [K_2 in keyof V_3]: zod.ZodLiteral<V_3[K_2]> }[keyof V_3]]
841
- >
842
- >;
843
- active: zod.ZodEffects<zod.ZodBoolean, boolean, unknown>;
844
- providerFields: zod.ZodOptional<zod.ZodUnknown>;
249
+ }, (options: {
250
+ uuidId: boolean;
251
+ }) => {
252
+ CreatePlanSchema: <T extends Record<string, _forklaunch_validator.LiteralSchema>, U_3 extends Record<string, _forklaunch_validator.LiteralSchema>, V_3 extends Record<string, _forklaunch_validator.LiteralSchema>>(PlanCadenceEnum: T, CurrencyEnum: U_3, BillingProviderEnum: V_3) => {
253
+ name: zod.ZodString;
254
+ description: zod.ZodOptional<zod.ZodString>;
255
+ price: zod.ZodEffects<zod.ZodNumber, number, unknown>;
256
+ cadence: zod.ZodUnion<[{ [K in keyof T]: zod.ZodLiteral<T[K]>; }[keyof T]]>;
257
+ currency: zod.ZodUnion<[{ [K_1 in keyof U_3]: zod.ZodLiteral<U_3[K_1]>; }[keyof U_3]]>;
258
+ features: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
259
+ externalId: zod.ZodString;
260
+ billingProvider: zod.ZodOptional<zod.ZodUnion<[{ [K_2 in keyof V_3]: zod.ZodLiteral<V_3[K_2]>; }[keyof V_3]]>>;
261
+ active: zod.ZodEffects<zod.ZodBoolean, boolean, unknown>;
262
+ providerFields: zod.ZodOptional<zod.ZodUnknown>;
845
263
  };
846
- UpdatePlanSchema: <
847
- T extends Record<string, _forklaunch_validator.LiteralSchema>,
848
- U_4 extends Record<string, _forklaunch_validator.LiteralSchema>,
849
- V_4 extends Record<string, _forklaunch_validator.LiteralSchema>
850
- >(
851
- PlanCadenceEnum: T,
852
- CurrencyEnum: U_4,
853
- BillingProviderEnum: V_4
854
- ) => {
855
- id: zod.ZodString;
856
- name: zod.ZodOptional<zod.ZodString>;
857
- description: zod.ZodOptional<zod.ZodString>;
858
- price: zod.ZodOptional<zod.ZodEffects<zod.ZodNumber, number, unknown>>;
859
- cadence: zod.ZodOptional<
860
- zod.ZodUnion<[{ [K in keyof T]: zod.ZodLiteral<T[K]> }[keyof T]]>
861
- >;
862
- currency: zod.ZodOptional<
863
- zod.ZodUnion<
864
- [{ [K_1 in keyof U_4]: zod.ZodLiteral<U_4[K_1]> }[keyof U_4]]
865
- >
866
- >;
867
- features: zod.ZodOptional<zod.ZodArray<zod.ZodString, 'many'>>;
868
- externalId: zod.ZodOptional<zod.ZodString>;
869
- billingProvider: zod.ZodOptional<
870
- zod.ZodUnion<
871
- [{ [K_2 in keyof V_4]: zod.ZodLiteral<V_4[K_2]> }[keyof V_4]]
872
- >
873
- >;
874
- active: zod.ZodOptional<zod.ZodEffects<zod.ZodBoolean, boolean, unknown>>;
875
- providerFields: zod.ZodOptional<zod.ZodUnknown>;
264
+ UpdatePlanSchema: <T extends Record<string, _forklaunch_validator.LiteralSchema>, U_4 extends Record<string, _forklaunch_validator.LiteralSchema>, V_4 extends Record<string, _forklaunch_validator.LiteralSchema>>(PlanCadenceEnum: T, CurrencyEnum: U_4, BillingProviderEnum: V_4) => {
265
+ id: zod.ZodString;
266
+ name: zod.ZodOptional<zod.ZodString>;
267
+ description: zod.ZodOptional<zod.ZodString>;
268
+ price: zod.ZodOptional<zod.ZodEffects<zod.ZodNumber, number, unknown>>;
269
+ cadence: zod.ZodOptional<zod.ZodUnion<[{ [K in keyof T]: zod.ZodLiteral<T[K]>; }[keyof T]]>>;
270
+ currency: zod.ZodOptional<zod.ZodUnion<[{ [K_1 in keyof U_4]: zod.ZodLiteral<U_4[K_1]>; }[keyof U_4]]>>;
271
+ features: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
272
+ externalId: zod.ZodOptional<zod.ZodString>;
273
+ billingProvider: zod.ZodOptional<zod.ZodUnion<[{ [K_2 in keyof V_4]: zod.ZodLiteral<V_4[K_2]>; }[keyof V_4]]>>;
274
+ active: zod.ZodOptional<zod.ZodEffects<zod.ZodBoolean, boolean, unknown>>;
275
+ providerFields: zod.ZodOptional<zod.ZodUnknown>;
876
276
  };
877
- PlanSchema: <
878
- T extends Record<string, _forklaunch_validator.LiteralSchema>,
879
- U_5 extends Record<string, _forklaunch_validator.LiteralSchema>,
880
- V_5 extends Record<string, _forklaunch_validator.LiteralSchema>
881
- >(
882
- PlanCadenceEnum: T,
883
- CurrencyEnum: U_5,
884
- BillingProviderEnum: V_5
885
- ) => {
886
- id: zod.ZodString;
887
- name: zod.ZodString;
888
- description: zod.ZodOptional<zod.ZodString>;
889
- price: zod.ZodEffects<zod.ZodNumber, number, unknown>;
890
- cadence: zod.ZodUnion<
891
- [{ [K in keyof T]: zod.ZodLiteral<T[K]> }[keyof T]]
892
- >;
893
- currency: zod.ZodUnion<
894
- [{ [K_1 in keyof U_5]: zod.ZodLiteral<U_5[K_1]> }[keyof U_5]]
895
- >;
896
- features: zod.ZodOptional<zod.ZodArray<zod.ZodString, 'many'>>;
897
- externalId: zod.ZodString;
898
- billingProvider: zod.ZodOptional<
899
- zod.ZodUnion<
900
- [{ [K_2 in keyof V_5]: zod.ZodLiteral<V_5[K_2]> }[keyof V_5]]
901
- >
902
- >;
903
- active: zod.ZodEffects<zod.ZodBoolean, boolean, unknown>;
904
- providerFields: zod.ZodOptional<zod.ZodUnknown>;
905
- createdAt: zod.ZodOptional<zod.ZodEffects<zod.ZodDate, Date, unknown>>;
906
- updatedAt: zod.ZodOptional<zod.ZodEffects<zod.ZodDate, Date, unknown>>;
277
+ PlanSchema: <T extends Record<string, _forklaunch_validator.LiteralSchema>, U_5 extends Record<string, _forklaunch_validator.LiteralSchema>, V_5 extends Record<string, _forklaunch_validator.LiteralSchema>>(PlanCadenceEnum: T, CurrencyEnum: U_5, BillingProviderEnum: V_5) => {
278
+ id: zod.ZodString;
279
+ name: zod.ZodString;
280
+ description: zod.ZodOptional<zod.ZodString>;
281
+ price: zod.ZodEffects<zod.ZodNumber, number, unknown>;
282
+ cadence: zod.ZodUnion<[{ [K in keyof T]: zod.ZodLiteral<T[K]>; }[keyof T]]>;
283
+ currency: zod.ZodUnion<[{ [K_1 in keyof U_5]: zod.ZodLiteral<U_5[K_1]>; }[keyof U_5]]>;
284
+ features: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
285
+ externalId: zod.ZodString;
286
+ billingProvider: zod.ZodOptional<zod.ZodUnion<[{ [K_2 in keyof V_5]: zod.ZodLiteral<V_5[K_2]>; }[keyof V_5]]>>;
287
+ active: zod.ZodEffects<zod.ZodBoolean, boolean, unknown>;
288
+ providerFields: zod.ZodOptional<zod.ZodUnknown>;
289
+ createdAt: zod.ZodOptional<zod.ZodEffects<zod.ZodDate, Date, unknown>>;
290
+ updatedAt: zod.ZodOptional<zod.ZodEffects<zod.ZodDate, Date, unknown>>;
907
291
  };
908
- }
909
- >;
292
+ }>;
910
293
 
911
- declare const BaseSubscriptionServiceSchemas: <
912
- SchemaValidator extends _forklaunch_validator.AnySchemaValidator
913
- >(
914
- options: {
294
+ declare const BaseSubscriptionServiceSchemas: <SchemaValidator extends _forklaunch_validator.AnySchemaValidator>(options: {
915
295
  uuidId: boolean;
916
- } & {
296
+ } & {
917
297
  validator: SchemaValidator;
918
- }
919
- ) => _forklaunch_internal.SchemasByValidator<
920
- SchemaValidator,
921
- (options: { uuidId: boolean }) => {
922
- CreateSubscriptionSchema: <
923
- T extends Record<string, _forklaunch_validator.LiteralSchema>,
924
- U extends Record<string, _forklaunch_validator.LiteralSchema>
925
- >(
926
- PartyEnum: T,
927
- BillingProviderEnum: U
928
- ) => {
929
- partyId: _sinclair_typebox.TString;
930
- partyType: _sinclair_typebox.TUnion<
931
- [{ [K in keyof T]: _sinclair_typebox.TLiteral<T[K]> }[keyof T]]
932
- >;
933
- productId: _sinclair_typebox.TString;
934
- description: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
935
- active: _sinclair_typebox.TTransform<
936
- _sinclair_typebox.TUnion<
937
- [_sinclair_typebox.TBoolean, _sinclair_typebox.TString]
938
- >,
939
- boolean
940
- >;
941
- externalId: _sinclair_typebox.TString;
942
- startDate: _sinclair_typebox.TTransform<
943
- _sinclair_typebox.TUnion<
944
- [
945
- _sinclair_typebox.TString,
946
- _sinclair_typebox.TNumber,
947
- _sinclair_typebox.TDate
948
- ]
949
- >,
950
- Date
951
- >;
952
- endDate: _sinclair_typebox.TOptional<
953
- _sinclair_typebox.TTransform<
954
- _sinclair_typebox.TUnion<
955
- [
956
- _sinclair_typebox.TString,
957
- _sinclair_typebox.TNumber,
958
- _sinclair_typebox.TDate
959
- ]
960
- >,
961
- Date
962
- >
963
- >;
964
- status: _sinclair_typebox.TString;
965
- billingProvider: _sinclair_typebox.TOptional<
966
- _sinclair_typebox.TUnion<
967
- [{ [K_1 in keyof U]: _sinclair_typebox.TLiteral<U[K_1]> }[keyof U]]
968
- >
969
- >;
970
- providerFields: _sinclair_typebox.TOptional<_sinclair_typebox.TUnknown>;
298
+ }) => _forklaunch_internal.SchemasByValidator<SchemaValidator, (options: {
299
+ uuidId: boolean;
300
+ }) => {
301
+ CreateSubscriptionSchema: <T extends Record<string, _forklaunch_validator.LiteralSchema>, U extends Record<string, _forklaunch_validator.LiteralSchema>>(PartyEnum: T, BillingProviderEnum: U) => {
302
+ partyId: _sinclair_typebox.TString;
303
+ partyType: _sinclair_typebox.TUnion<[{ [K in keyof T]: _sinclair_typebox.TLiteral<T[K]>; }[keyof T]]>;
304
+ productId: _sinclair_typebox.TString;
305
+ description: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
306
+ active: _sinclair_typebox.TTransform<_sinclair_typebox.TUnion<[_sinclair_typebox.TBoolean, _sinclair_typebox.TString]>, boolean>;
307
+ externalId: _sinclair_typebox.TString;
308
+ startDate: _sinclair_typebox.TTransform<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber, _sinclair_typebox.TDate]>, Date>;
309
+ endDate: _sinclair_typebox.TOptional<_sinclair_typebox.TTransform<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber, _sinclair_typebox.TDate]>, Date>>;
310
+ status: _sinclair_typebox.TString;
311
+ billingProvider: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[{ [K_1 in keyof U]: _sinclair_typebox.TLiteral<U[K_1]>; }[keyof U]]>>;
312
+ providerFields: _sinclair_typebox.TOptional<_sinclair_typebox.TUnknown>;
971
313
  };
972
- UpdateSubscriptionSchema: <
973
- T extends Record<string, _forklaunch_validator.LiteralSchema>,
974
- U_1 extends Record<string, _forklaunch_validator.LiteralSchema>
975
- >(
976
- PartyEnum: T,
977
- BillingProviderEnum: U_1
978
- ) => {
979
- id: _sinclair_typebox.TString;
980
- partyId: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
981
- partyType: _sinclair_typebox.TOptional<
982
- _sinclair_typebox.TUnion<
983
- [{ [K in keyof T]: _sinclair_typebox.TLiteral<T[K]> }[keyof T]]
984
- >
985
- >;
986
- productId: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
987
- description: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
988
- active: _sinclair_typebox.TOptional<
989
- _sinclair_typebox.TTransform<
990
- _sinclair_typebox.TUnion<
991
- [_sinclair_typebox.TBoolean, _sinclair_typebox.TString]
992
- >,
993
- boolean
994
- >
995
- >;
996
- externalId: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
997
- startDate: _sinclair_typebox.TOptional<
998
- _sinclair_typebox.TTransform<
999
- _sinclair_typebox.TUnion<
1000
- [
1001
- _sinclair_typebox.TString,
1002
- _sinclair_typebox.TNumber,
1003
- _sinclair_typebox.TDate
1004
- ]
1005
- >,
1006
- Date
1007
- >
1008
- >;
1009
- endDate: _sinclair_typebox.TOptional<
1010
- _sinclair_typebox.TTransform<
1011
- _sinclair_typebox.TUnion<
1012
- [
1013
- _sinclair_typebox.TString,
1014
- _sinclair_typebox.TNumber,
1015
- _sinclair_typebox.TDate
1016
- ]
1017
- >,
1018
- Date
1019
- >
1020
- >;
1021
- status: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
1022
- billingProvider: _sinclair_typebox.TOptional<
1023
- _sinclair_typebox.TUnion<
1024
- [
1025
- {
1026
- [K_1 in keyof U_1]: _sinclair_typebox.TLiteral<U_1[K_1]>;
1027
- }[keyof U_1]
1028
- ]
1029
- >
1030
- >;
1031
- providerFields: _sinclair_typebox.TOptional<_sinclair_typebox.TUnknown>;
314
+ UpdateSubscriptionSchema: <T extends Record<string, _forklaunch_validator.LiteralSchema>, U_1 extends Record<string, _forklaunch_validator.LiteralSchema>>(PartyEnum: T, BillingProviderEnum: U_1) => {
315
+ id: _sinclair_typebox.TString;
316
+ partyId: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
317
+ partyType: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[{ [K in keyof T]: _sinclair_typebox.TLiteral<T[K]>; }[keyof T]]>>;
318
+ productId: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
319
+ description: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
320
+ active: _sinclair_typebox.TOptional<_sinclair_typebox.TTransform<_sinclair_typebox.TUnion<[_sinclair_typebox.TBoolean, _sinclair_typebox.TString]>, boolean>>;
321
+ externalId: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
322
+ startDate: _sinclair_typebox.TOptional<_sinclair_typebox.TTransform<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber, _sinclair_typebox.TDate]>, Date>>;
323
+ endDate: _sinclair_typebox.TOptional<_sinclair_typebox.TTransform<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber, _sinclair_typebox.TDate]>, Date>>;
324
+ status: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
325
+ billingProvider: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[{ [K_1 in keyof U_1]: _sinclair_typebox.TLiteral<U_1[K_1]>; }[keyof U_1]]>>;
326
+ providerFields: _sinclair_typebox.TOptional<_sinclair_typebox.TUnknown>;
1032
327
  };
1033
- SubscriptionSchema: <
1034
- T extends Record<string, _forklaunch_validator.LiteralSchema>,
1035
- U_2 extends Record<string, _forklaunch_validator.LiteralSchema>
1036
- >(
1037
- PartyEnum: T,
1038
- BillingProviderEnum: U_2
1039
- ) => {
1040
- id: _sinclair_typebox.TString;
1041
- partyId: _sinclair_typebox.TString;
1042
- partyType: _sinclair_typebox.TUnion<
1043
- [{ [K in keyof T]: _sinclair_typebox.TLiteral<T[K]> }[keyof T]]
1044
- >;
1045
- productId: _sinclair_typebox.TString;
1046
- description: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
1047
- active: _sinclair_typebox.TTransform<
1048
- _sinclair_typebox.TUnion<
1049
- [_sinclair_typebox.TBoolean, _sinclair_typebox.TString]
1050
- >,
1051
- boolean
1052
- >;
1053
- externalId: _sinclair_typebox.TString;
1054
- startDate: _sinclair_typebox.TTransform<
1055
- _sinclair_typebox.TUnion<
1056
- [
1057
- _sinclair_typebox.TString,
1058
- _sinclair_typebox.TNumber,
1059
- _sinclair_typebox.TDate
1060
- ]
1061
- >,
1062
- Date
1063
- >;
1064
- endDate: _sinclair_typebox.TOptional<
1065
- _sinclair_typebox.TTransform<
1066
- _sinclair_typebox.TUnion<
1067
- [
1068
- _sinclair_typebox.TString,
1069
- _sinclair_typebox.TNumber,
1070
- _sinclair_typebox.TDate
1071
- ]
1072
- >,
1073
- Date
1074
- >
1075
- >;
1076
- status: _sinclair_typebox.TString;
1077
- billingProvider: _sinclair_typebox.TOptional<
1078
- _sinclair_typebox.TUnion<
1079
- [
1080
- {
1081
- [K_1 in keyof U_2]: _sinclair_typebox.TLiteral<U_2[K_1]>;
1082
- }[keyof U_2]
1083
- ]
1084
- >
1085
- >;
1086
- providerFields: _sinclair_typebox.TOptional<_sinclair_typebox.TUnknown>;
1087
- createdAt: _sinclair_typebox.TOptional<
1088
- _sinclair_typebox.TTransform<
1089
- _sinclair_typebox.TUnion<
1090
- [
1091
- _sinclair_typebox.TString,
1092
- _sinclair_typebox.TNumber,
1093
- _sinclair_typebox.TDate
1094
- ]
1095
- >,
1096
- Date
1097
- >
1098
- >;
1099
- updatedAt: _sinclair_typebox.TOptional<
1100
- _sinclair_typebox.TTransform<
1101
- _sinclair_typebox.TUnion<
1102
- [
1103
- _sinclair_typebox.TString,
1104
- _sinclair_typebox.TNumber,
1105
- _sinclair_typebox.TDate
1106
- ]
1107
- >,
1108
- Date
1109
- >
1110
- >;
328
+ SubscriptionSchema: <T extends Record<string, _forklaunch_validator.LiteralSchema>, U_2 extends Record<string, _forklaunch_validator.LiteralSchema>>(PartyEnum: T, BillingProviderEnum: U_2) => {
329
+ id: _sinclair_typebox.TString;
330
+ partyId: _sinclair_typebox.TString;
331
+ partyType: _sinclair_typebox.TUnion<[{ [K in keyof T]: _sinclair_typebox.TLiteral<T[K]>; }[keyof T]]>;
332
+ productId: _sinclair_typebox.TString;
333
+ description: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
334
+ active: _sinclair_typebox.TTransform<_sinclair_typebox.TUnion<[_sinclair_typebox.TBoolean, _sinclair_typebox.TString]>, boolean>;
335
+ externalId: _sinclair_typebox.TString;
336
+ startDate: _sinclair_typebox.TTransform<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber, _sinclair_typebox.TDate]>, Date>;
337
+ endDate: _sinclair_typebox.TOptional<_sinclair_typebox.TTransform<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber, _sinclair_typebox.TDate]>, Date>>;
338
+ status: _sinclair_typebox.TString;
339
+ billingProvider: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[{ [K_1 in keyof U_2]: _sinclair_typebox.TLiteral<U_2[K_1]>; }[keyof U_2]]>>;
340
+ providerFields: _sinclair_typebox.TOptional<_sinclair_typebox.TUnknown>;
341
+ createdAt: _sinclair_typebox.TOptional<_sinclair_typebox.TTransform<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber, _sinclair_typebox.TDate]>, Date>>;
342
+ updatedAt: _sinclair_typebox.TOptional<_sinclair_typebox.TTransform<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber, _sinclair_typebox.TDate]>, Date>>;
1111
343
  };
1112
- },
1113
- (options: { uuidId: boolean }) => {
1114
- CreateSubscriptionSchema: <
1115
- T extends Record<string, _forklaunch_validator.LiteralSchema>,
1116
- U_3 extends Record<string, _forklaunch_validator.LiteralSchema>
1117
- >(
1118
- PartyEnum: T,
1119
- BillingProviderEnum: U_3
1120
- ) => {
1121
- partyId: zod.ZodString;
1122
- partyType: zod.ZodUnion<
1123
- [{ [K in keyof T]: zod.ZodLiteral<T[K]> }[keyof T]]
1124
- >;
1125
- productId: zod.ZodString;
1126
- description: zod.ZodOptional<zod.ZodString>;
1127
- active: zod.ZodEffects<zod.ZodBoolean, boolean, unknown>;
1128
- externalId: zod.ZodString;
1129
- startDate: zod.ZodEffects<zod.ZodDate, Date, unknown>;
1130
- endDate: zod.ZodOptional<zod.ZodEffects<zod.ZodDate, Date, unknown>>;
1131
- status: zod.ZodString;
1132
- billingProvider: zod.ZodOptional<
1133
- zod.ZodUnion<
1134
- [{ [K_1 in keyof U_3]: zod.ZodLiteral<U_3[K_1]> }[keyof U_3]]
1135
- >
1136
- >;
1137
- providerFields: zod.ZodOptional<zod.ZodUnknown>;
344
+ }, (options: {
345
+ uuidId: boolean;
346
+ }) => {
347
+ CreateSubscriptionSchema: <T extends Record<string, _forklaunch_validator.LiteralSchema>, U_3 extends Record<string, _forklaunch_validator.LiteralSchema>>(PartyEnum: T, BillingProviderEnum: U_3) => {
348
+ partyId: zod.ZodString;
349
+ partyType: zod.ZodUnion<[{ [K in keyof T]: zod.ZodLiteral<T[K]>; }[keyof T]]>;
350
+ productId: zod.ZodString;
351
+ description: zod.ZodOptional<zod.ZodString>;
352
+ active: zod.ZodEffects<zod.ZodBoolean, boolean, unknown>;
353
+ externalId: zod.ZodString;
354
+ startDate: zod.ZodEffects<zod.ZodDate, Date, unknown>;
355
+ endDate: zod.ZodOptional<zod.ZodEffects<zod.ZodDate, Date, unknown>>;
356
+ status: zod.ZodString;
357
+ billingProvider: zod.ZodOptional<zod.ZodUnion<[{ [K_1 in keyof U_3]: zod.ZodLiteral<U_3[K_1]>; }[keyof U_3]]>>;
358
+ providerFields: zod.ZodOptional<zod.ZodUnknown>;
1138
359
  };
1139
- UpdateSubscriptionSchema: <
1140
- T extends Record<string, _forklaunch_validator.LiteralSchema>,
1141
- U_4 extends Record<string, _forklaunch_validator.LiteralSchema>
1142
- >(
1143
- PartyEnum: T,
1144
- BillingProviderEnum: U_4
1145
- ) => {
1146
- id: zod.ZodString;
1147
- partyId: zod.ZodOptional<zod.ZodString>;
1148
- partyType: zod.ZodOptional<
1149
- zod.ZodUnion<[{ [K in keyof T]: zod.ZodLiteral<T[K]> }[keyof T]]>
1150
- >;
1151
- productId: zod.ZodOptional<zod.ZodString>;
1152
- description: zod.ZodOptional<zod.ZodString>;
1153
- active: zod.ZodOptional<zod.ZodEffects<zod.ZodBoolean, boolean, unknown>>;
1154
- externalId: zod.ZodOptional<zod.ZodString>;
1155
- startDate: zod.ZodOptional<zod.ZodEffects<zod.ZodDate, Date, unknown>>;
1156
- endDate: zod.ZodOptional<zod.ZodEffects<zod.ZodDate, Date, unknown>>;
1157
- status: zod.ZodOptional<zod.ZodString>;
1158
- billingProvider: zod.ZodOptional<
1159
- zod.ZodUnion<
1160
- [{ [K_1 in keyof U_4]: zod.ZodLiteral<U_4[K_1]> }[keyof U_4]]
1161
- >
1162
- >;
1163
- providerFields: zod.ZodOptional<zod.ZodUnknown>;
360
+ UpdateSubscriptionSchema: <T extends Record<string, _forklaunch_validator.LiteralSchema>, U_4 extends Record<string, _forklaunch_validator.LiteralSchema>>(PartyEnum: T, BillingProviderEnum: U_4) => {
361
+ id: zod.ZodString;
362
+ partyId: zod.ZodOptional<zod.ZodString>;
363
+ partyType: zod.ZodOptional<zod.ZodUnion<[{ [K in keyof T]: zod.ZodLiteral<T[K]>; }[keyof T]]>>;
364
+ productId: zod.ZodOptional<zod.ZodString>;
365
+ description: zod.ZodOptional<zod.ZodString>;
366
+ active: zod.ZodOptional<zod.ZodEffects<zod.ZodBoolean, boolean, unknown>>;
367
+ externalId: zod.ZodOptional<zod.ZodString>;
368
+ startDate: zod.ZodOptional<zod.ZodEffects<zod.ZodDate, Date, unknown>>;
369
+ endDate: zod.ZodOptional<zod.ZodEffects<zod.ZodDate, Date, unknown>>;
370
+ status: zod.ZodOptional<zod.ZodString>;
371
+ billingProvider: zod.ZodOptional<zod.ZodUnion<[{ [K_1 in keyof U_4]: zod.ZodLiteral<U_4[K_1]>; }[keyof U_4]]>>;
372
+ providerFields: zod.ZodOptional<zod.ZodUnknown>;
1164
373
  };
1165
- SubscriptionSchema: <
1166
- T extends Record<string, _forklaunch_validator.LiteralSchema>,
1167
- U_5 extends Record<string, _forklaunch_validator.LiteralSchema>
1168
- >(
1169
- PartyEnum: T,
1170
- BillingProviderEnum: U_5
1171
- ) => {
1172
- id: zod.ZodString;
1173
- partyId: zod.ZodString;
1174
- partyType: zod.ZodUnion<
1175
- [{ [K in keyof T]: zod.ZodLiteral<T[K]> }[keyof T]]
1176
- >;
1177
- productId: zod.ZodString;
1178
- description: zod.ZodOptional<zod.ZodString>;
1179
- active: zod.ZodEffects<zod.ZodBoolean, boolean, unknown>;
1180
- externalId: zod.ZodString;
1181
- startDate: zod.ZodEffects<zod.ZodDate, Date, unknown>;
1182
- endDate: zod.ZodOptional<zod.ZodEffects<zod.ZodDate, Date, unknown>>;
1183
- status: zod.ZodString;
1184
- billingProvider: zod.ZodOptional<
1185
- zod.ZodUnion<
1186
- [{ [K_1 in keyof U_5]: zod.ZodLiteral<U_5[K_1]> }[keyof U_5]]
1187
- >
1188
- >;
1189
- providerFields: zod.ZodOptional<zod.ZodUnknown>;
1190
- createdAt: zod.ZodOptional<zod.ZodEffects<zod.ZodDate, Date, unknown>>;
1191
- updatedAt: zod.ZodOptional<zod.ZodEffects<zod.ZodDate, Date, unknown>>;
374
+ SubscriptionSchema: <T extends Record<string, _forklaunch_validator.LiteralSchema>, U_5 extends Record<string, _forklaunch_validator.LiteralSchema>>(PartyEnum: T, BillingProviderEnum: U_5) => {
375
+ id: zod.ZodString;
376
+ partyId: zod.ZodString;
377
+ partyType: zod.ZodUnion<[{ [K in keyof T]: zod.ZodLiteral<T[K]>; }[keyof T]]>;
378
+ productId: zod.ZodString;
379
+ description: zod.ZodOptional<zod.ZodString>;
380
+ active: zod.ZodEffects<zod.ZodBoolean, boolean, unknown>;
381
+ externalId: zod.ZodString;
382
+ startDate: zod.ZodEffects<zod.ZodDate, Date, unknown>;
383
+ endDate: zod.ZodOptional<zod.ZodEffects<zod.ZodDate, Date, unknown>>;
384
+ status: zod.ZodString;
385
+ billingProvider: zod.ZodOptional<zod.ZodUnion<[{ [K_1 in keyof U_5]: zod.ZodLiteral<U_5[K_1]>; }[keyof U_5]]>>;
386
+ providerFields: zod.ZodOptional<zod.ZodUnknown>;
387
+ createdAt: zod.ZodOptional<zod.ZodEffects<zod.ZodDate, Date, unknown>>;
388
+ updatedAt: zod.ZodOptional<zod.ZodEffects<zod.ZodDate, Date, unknown>>;
1192
389
  };
1193
- }
1194
- >;
390
+ }>;
1195
391
 
1196
- export {
1197
- BaseBillingPortalServiceSchemas,
1198
- BaseCheckoutSessionServiceSchemas,
1199
- BasePaymentLinkServiceSchemas,
1200
- BasePlanServiceSchemas,
1201
- BaseSubscriptionServiceSchemas
1202
- };
392
+ export { BaseBillingPortalServiceSchemas, BaseCheckoutSessionServiceSchemas, BasePaymentLinkServiceSchemas, BasePlanServiceSchemas, BaseSubscriptionServiceSchemas };