@forklaunch/implementation-billing-base 0.3.2 → 0.3.4

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.
@@ -0,0 +1,1202 @@
1
+ import * as _forklaunch_internal from '@forklaunch/internal';
2
+ import * as zod from 'zod';
3
+ import * as _sinclair_typebox from '@sinclair/typebox';
4
+ import * as _forklaunch_validator from '@forklaunch/validator';
5
+
6
+ declare const BaseBillingPortalServiceSchemas: <
7
+ SchemaValidator extends _forklaunch_validator.AnySchemaValidator
8
+ >(
9
+ options: {
10
+ uuidId: boolean;
11
+ } & {
12
+ validator: SchemaValidator;
13
+ }
14
+ ) => _forklaunch_internal.SchemasByValidator<
15
+ SchemaValidator,
16
+ (options: { uuidId: boolean }) => {
17
+ 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>;
31
+ };
32
+ 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>;
48
+ };
49
+ 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
+ >;
88
+ };
89
+ },
90
+ (options: { uuidId: boolean }) => {
91
+ 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>;
96
+ };
97
+ 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>;
102
+ };
103
+ 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>>;
111
+ };
112
+ }
113
+ >;
114
+
115
+ declare const BaseCheckoutSessionServiceSchemas: <
116
+ SchemaValidator extends _forklaunch_validator.AnySchemaValidator
117
+ >(
118
+ options: {
119
+ uuidId: boolean;
120
+ } & {
121
+ 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>;
160
+ };
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>;
212
+ };
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
+ >;
280
+ };
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>;
307
+ };
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>;
339
+ };
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>>;
367
+ };
368
+ }
369
+ >;
370
+
371
+ declare const BasePaymentLinkServiceSchemas: <
372
+ SchemaValidator extends _forklaunch_validator.AnySchemaValidator
373
+ >(
374
+ options: {
375
+ uuidId: boolean;
376
+ } & {
377
+ 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>;
416
+ };
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>;
468
+ };
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
+ >;
532
+ };
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>;
556
+ };
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>;
585
+ };
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>>;
610
+ };
611
+ }
612
+ >;
613
+
614
+ declare const BasePlanServiceSchemas: <
615
+ SchemaValidator extends _forklaunch_validator.AnySchemaValidator
616
+ >(
617
+ options: {
618
+ uuidId: boolean;
619
+ } & {
620
+ 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>;
671
+ };
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>;
735
+ };
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
+ >;
815
+ };
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>;
845
+ };
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>;
876
+ };
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>>;
907
+ };
908
+ }
909
+ >;
910
+
911
+ declare const BaseSubscriptionServiceSchemas: <
912
+ SchemaValidator extends _forklaunch_validator.AnySchemaValidator
913
+ >(
914
+ options: {
915
+ uuidId: boolean;
916
+ } & {
917
+ 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>;
971
+ };
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>;
1032
+ };
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
+ >;
1111
+ };
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>;
1138
+ };
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>;
1164
+ };
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>>;
1192
+ };
1193
+ }
1194
+ >;
1195
+
1196
+ export {
1197
+ BaseBillingPortalServiceSchemas,
1198
+ BaseCheckoutSessionServiceSchemas,
1199
+ BasePaymentLinkServiceSchemas,
1200
+ BasePlanServiceSchemas,
1201
+ BaseSubscriptionServiceSchemas
1202
+ };