@stratacommerce/stripe-connect 0.0.0-stage → 0.1.0

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,1110 @@
1
+ export declare const connectSchema: import("drizzle-orm/pg-core").PgSchema<"ext_stripe_connect">;
2
+ export declare const enrollments: import("drizzle-orm/pg-core").PgTableWithColumns<{
3
+ name: "enrollments";
4
+ schema: "ext_stripe_connect";
5
+ columns: {
6
+ id: import("drizzle-orm/pg-core").PgColumn<{
7
+ name: "id";
8
+ tableName: "enrollments";
9
+ dataType: "string";
10
+ columnType: "PgUUID";
11
+ data: string;
12
+ driverParam: string;
13
+ notNull: true;
14
+ hasDefault: false;
15
+ isPrimaryKey: true;
16
+ isAutoincrement: false;
17
+ hasRuntimeDefault: false;
18
+ enumValues: undefined;
19
+ baseColumn: never;
20
+ identity: undefined;
21
+ generated: undefined;
22
+ }, {}, {}>;
23
+ linkId: import("drizzle-orm/pg-core").PgColumn<{
24
+ name: "link_id";
25
+ tableName: "enrollments";
26
+ dataType: "string";
27
+ columnType: "PgUUID";
28
+ data: string;
29
+ driverParam: string;
30
+ notNull: true;
31
+ hasDefault: false;
32
+ isPrimaryKey: false;
33
+ isAutoincrement: false;
34
+ hasRuntimeDefault: false;
35
+ enumValues: undefined;
36
+ baseColumn: never;
37
+ identity: undefined;
38
+ generated: undefined;
39
+ }, {}, {}>;
40
+ scope: import("drizzle-orm/pg-core").PgColumn<{
41
+ name: "scope";
42
+ tableName: "enrollments";
43
+ dataType: "json";
44
+ columnType: "PgJsonb";
45
+ data: {
46
+ livemode: boolean;
47
+ hubEnvironmentId: string;
48
+ generation: number;
49
+ linkId: string;
50
+ hubOrigin: string;
51
+ hubAccountId: string;
52
+ hubStoreId: string;
53
+ paymentBindingId: string;
54
+ platformId: string;
55
+ stripeAccountId: string;
56
+ contextId: string;
57
+ environmentRole: "development" | "staging" | "production";
58
+ };
59
+ driverParam: unknown;
60
+ notNull: true;
61
+ hasDefault: false;
62
+ isPrimaryKey: false;
63
+ isAutoincrement: false;
64
+ hasRuntimeDefault: false;
65
+ enumValues: undefined;
66
+ baseColumn: never;
67
+ identity: undefined;
68
+ generated: undefined;
69
+ }, {}, {
70
+ $type: {
71
+ livemode: boolean;
72
+ hubEnvironmentId: string;
73
+ generation: number;
74
+ linkId: string;
75
+ hubOrigin: string;
76
+ hubAccountId: string;
77
+ hubStoreId: string;
78
+ paymentBindingId: string;
79
+ platformId: string;
80
+ stripeAccountId: string;
81
+ contextId: string;
82
+ environmentRole: "development" | "staging" | "production";
83
+ };
84
+ }>;
85
+ policy: import("drizzle-orm/pg-core").PgColumn<{
86
+ name: "policy";
87
+ tableName: "enrollments";
88
+ dataType: "json";
89
+ columnType: "PgJsonb";
90
+ data: {
91
+ id: string;
92
+ termsVersion: string;
93
+ revenueShareBps: number;
94
+ feeBase: "stripe_collected_gross";
95
+ rounding: "floor";
96
+ refundPolicy: "proportional_after_success";
97
+ disputePolicy: "return_on_final_loss";
98
+ };
99
+ driverParam: unknown;
100
+ notNull: true;
101
+ hasDefault: false;
102
+ isPrimaryKey: false;
103
+ isAutoincrement: false;
104
+ hasRuntimeDefault: false;
105
+ enumValues: undefined;
106
+ baseColumn: never;
107
+ identity: undefined;
108
+ generated: undefined;
109
+ }, {}, {
110
+ $type: {
111
+ id: string;
112
+ termsVersion: string;
113
+ revenueShareBps: number;
114
+ feeBase: "stripe_collected_gross";
115
+ rounding: "floor";
116
+ refundPolicy: "proportional_after_success";
117
+ disputePolicy: "return_on_final_loss";
118
+ };
119
+ }>;
120
+ state: import("drizzle-orm/pg-core").PgColumn<{
121
+ name: "state";
122
+ tableName: "enrollments";
123
+ dataType: "string";
124
+ columnType: "PgText";
125
+ data: "pending" | "disabled" | "approved" | "active" | "revoked";
126
+ driverParam: string;
127
+ notNull: true;
128
+ hasDefault: false;
129
+ isPrimaryKey: false;
130
+ isAutoincrement: false;
131
+ hasRuntimeDefault: false;
132
+ enumValues: [string, ...string[]];
133
+ baseColumn: never;
134
+ identity: undefined;
135
+ generated: undefined;
136
+ }, {}, {
137
+ $type: "pending" | "disabled" | "approved" | "active" | "revoked";
138
+ }>;
139
+ nonceHash: import("drizzle-orm/pg-core").PgColumn<{
140
+ name: "nonce_hash";
141
+ tableName: "enrollments";
142
+ dataType: "string";
143
+ columnType: "PgText";
144
+ data: string;
145
+ driverParam: string;
146
+ notNull: true;
147
+ hasDefault: false;
148
+ isPrimaryKey: false;
149
+ isAutoincrement: false;
150
+ hasRuntimeDefault: false;
151
+ enumValues: [string, ...string[]];
152
+ baseColumn: never;
153
+ identity: undefined;
154
+ generated: undefined;
155
+ }, {}, {}>;
156
+ expiresAt: import("drizzle-orm/pg-core").PgColumn<{
157
+ name: "expires_at";
158
+ tableName: "enrollments";
159
+ dataType: "date";
160
+ columnType: "PgTimestamp";
161
+ data: Date;
162
+ driverParam: string;
163
+ notNull: true;
164
+ hasDefault: false;
165
+ isPrimaryKey: false;
166
+ isAutoincrement: false;
167
+ hasRuntimeDefault: false;
168
+ enumValues: undefined;
169
+ baseColumn: never;
170
+ identity: undefined;
171
+ generated: undefined;
172
+ }, {}, {}>;
173
+ tokenBox: import("drizzle-orm/pg-core").PgColumn<{
174
+ name: "token_box";
175
+ tableName: "enrollments";
176
+ dataType: "string";
177
+ columnType: "PgText";
178
+ data: string;
179
+ driverParam: string;
180
+ notNull: false;
181
+ hasDefault: false;
182
+ isPrimaryKey: false;
183
+ isAutoincrement: false;
184
+ hasRuntimeDefault: false;
185
+ enumValues: [string, ...string[]];
186
+ baseColumn: never;
187
+ identity: undefined;
188
+ generated: undefined;
189
+ }, {}, {}>;
190
+ publicKeys: import("drizzle-orm/pg-core").PgColumn<{
191
+ name: "public_keys";
192
+ tableName: "enrollments";
193
+ dataType: "json";
194
+ columnType: "PgJsonb";
195
+ data: Record<string, string>;
196
+ driverParam: unknown;
197
+ notNull: true;
198
+ hasDefault: true;
199
+ isPrimaryKey: false;
200
+ isAutoincrement: false;
201
+ hasRuntimeDefault: false;
202
+ enumValues: undefined;
203
+ baseColumn: never;
204
+ identity: undefined;
205
+ generated: undefined;
206
+ }, {}, {
207
+ $type: Record<string, string>;
208
+ }>;
209
+ recoveryBindingIds: import("drizzle-orm/pg-core").PgColumn<{
210
+ name: "recovery_binding_ids";
211
+ tableName: "enrollments";
212
+ dataType: "json";
213
+ columnType: "PgJsonb";
214
+ data: string[];
215
+ driverParam: unknown;
216
+ notNull: true;
217
+ hasDefault: true;
218
+ isPrimaryKey: false;
219
+ isAutoincrement: false;
220
+ hasRuntimeDefault: false;
221
+ enumValues: undefined;
222
+ baseColumn: never;
223
+ identity: undefined;
224
+ generated: undefined;
225
+ }, {}, {
226
+ $type: string[];
227
+ }>;
228
+ approvedBy: import("drizzle-orm/pg-core").PgColumn<{
229
+ name: "approved_by";
230
+ tableName: "enrollments";
231
+ dataType: "string";
232
+ columnType: "PgUUID";
233
+ data: string;
234
+ driverParam: string;
235
+ notNull: false;
236
+ hasDefault: false;
237
+ isPrimaryKey: false;
238
+ isAutoincrement: false;
239
+ hasRuntimeDefault: false;
240
+ enumValues: undefined;
241
+ baseColumn: never;
242
+ identity: undefined;
243
+ generated: undefined;
244
+ }, {}, {}>;
245
+ approvedAt: import("drizzle-orm/pg-core").PgColumn<{
246
+ name: "approved_at";
247
+ tableName: "enrollments";
248
+ dataType: "date";
249
+ columnType: "PgTimestamp";
250
+ data: Date;
251
+ driverParam: string;
252
+ notNull: false;
253
+ hasDefault: false;
254
+ isPrimaryKey: false;
255
+ isAutoincrement: false;
256
+ hasRuntimeDefault: false;
257
+ enumValues: undefined;
258
+ baseColumn: never;
259
+ identity: undefined;
260
+ generated: undefined;
261
+ }, {}, {}>;
262
+ createdAt: import("drizzle-orm/pg-core").PgColumn<{
263
+ name: "created_at";
264
+ tableName: "enrollments";
265
+ dataType: "date";
266
+ columnType: "PgTimestamp";
267
+ data: Date;
268
+ driverParam: string;
269
+ notNull: true;
270
+ hasDefault: true;
271
+ isPrimaryKey: false;
272
+ isAutoincrement: false;
273
+ hasRuntimeDefault: false;
274
+ enumValues: undefined;
275
+ baseColumn: never;
276
+ identity: undefined;
277
+ generated: undefined;
278
+ }, {}, {}>;
279
+ };
280
+ dialect: "pg";
281
+ }>;
282
+ export declare const receipts: import("drizzle-orm/pg-core").PgTableWithColumns<{
283
+ name: "receipts";
284
+ schema: "ext_stripe_connect";
285
+ columns: {
286
+ deliveryId: import("drizzle-orm/pg-core").PgColumn<{
287
+ name: "delivery_id";
288
+ tableName: "receipts";
289
+ dataType: "string";
290
+ columnType: "PgUUID";
291
+ data: string;
292
+ driverParam: string;
293
+ notNull: true;
294
+ hasDefault: false;
295
+ isPrimaryKey: true;
296
+ isAutoincrement: false;
297
+ hasRuntimeDefault: false;
298
+ enumValues: undefined;
299
+ baseColumn: never;
300
+ identity: undefined;
301
+ generated: undefined;
302
+ }, {}, {}>;
303
+ originalBindingId: import("drizzle-orm/pg-core").PgColumn<{
304
+ name: "original_binding_id";
305
+ tableName: "receipts";
306
+ dataType: "string";
307
+ columnType: "PgUUID";
308
+ data: string;
309
+ driverParam: string;
310
+ notNull: true;
311
+ hasDefault: false;
312
+ isPrimaryKey: false;
313
+ isAutoincrement: false;
314
+ hasRuntimeDefault: false;
315
+ enumValues: undefined;
316
+ baseColumn: never;
317
+ identity: undefined;
318
+ generated: undefined;
319
+ }, {}, {}>;
320
+ recipientBindingId: import("drizzle-orm/pg-core").PgColumn<{
321
+ name: "recipient_binding_id";
322
+ tableName: "receipts";
323
+ dataType: "string";
324
+ columnType: "PgUUID";
325
+ data: string;
326
+ driverParam: string;
327
+ notNull: true;
328
+ hasDefault: false;
329
+ isPrimaryKey: false;
330
+ isAutoincrement: false;
331
+ hasRuntimeDefault: false;
332
+ enumValues: undefined;
333
+ baseColumn: never;
334
+ identity: undefined;
335
+ generated: undefined;
336
+ }, {}, {}>;
337
+ fact: import("drizzle-orm/pg-core").PgColumn<{
338
+ name: "fact";
339
+ tableName: "receipts";
340
+ dataType: "json";
341
+ columnType: "PgJsonb";
342
+ data: {
343
+ status: "succeeded";
344
+ currency: string;
345
+ kind: "capture";
346
+ attemptId: string;
347
+ orderReference: string;
348
+ amountMinor: number;
349
+ scope: {
350
+ livemode: boolean;
351
+ hubEnvironmentId: string;
352
+ generation: number;
353
+ linkId: string;
354
+ hubOrigin: string;
355
+ hubAccountId: string;
356
+ hubStoreId: string;
357
+ paymentBindingId: string;
358
+ platformId: string;
359
+ stripeAccountId: string;
360
+ contextId: string;
361
+ environmentRole: "development" | "staging" | "production";
362
+ };
363
+ paymentIntentId: string;
364
+ factVersion: number;
365
+ objectId: string;
366
+ chargeId?: string | undefined;
367
+ balance?: {
368
+ id: string;
369
+ currency: string;
370
+ amountMinor: number;
371
+ feeMinor: number;
372
+ netMinor: number;
373
+ } | null | undefined;
374
+ } | {
375
+ status: "unknown" | "pending" | "requires_action" | "succeeded" | "failed" | "canceled";
376
+ currency: string;
377
+ kind: "refund";
378
+ operationId: string | null;
379
+ attemptId: string;
380
+ orderReference: string;
381
+ amountMinor: number;
382
+ scope: {
383
+ livemode: boolean;
384
+ hubEnvironmentId: string;
385
+ generation: number;
386
+ linkId: string;
387
+ hubOrigin: string;
388
+ hubAccountId: string;
389
+ hubStoreId: string;
390
+ paymentBindingId: string;
391
+ platformId: string;
392
+ stripeAccountId: string;
393
+ contextId: string;
394
+ environmentRole: "development" | "staging" | "production";
395
+ };
396
+ paymentIntentId: string;
397
+ factVersion: number;
398
+ objectId: string;
399
+ } | {
400
+ status: string;
401
+ currency: string;
402
+ kind: "dispute";
403
+ attemptId: string;
404
+ orderReference: string;
405
+ amountMinor: number;
406
+ scope: {
407
+ livemode: boolean;
408
+ hubEnvironmentId: string;
409
+ generation: number;
410
+ linkId: string;
411
+ hubOrigin: string;
412
+ hubAccountId: string;
413
+ hubStoreId: string;
414
+ paymentBindingId: string;
415
+ platformId: string;
416
+ stripeAccountId: string;
417
+ contextId: string;
418
+ environmentRole: "development" | "staging" | "production";
419
+ };
420
+ paymentIntentId: string;
421
+ factVersion: number;
422
+ objectId: string;
423
+ lostPrincipalMinor: number;
424
+ heldPrincipalMinor: number;
425
+ deadline: number | null;
426
+ } | {
427
+ currency: string;
428
+ kind: "application_fee";
429
+ attemptId: string;
430
+ orderReference: string;
431
+ amountMinor: number;
432
+ scope: {
433
+ livemode: boolean;
434
+ hubEnvironmentId: string;
435
+ generation: number;
436
+ linkId: string;
437
+ hubOrigin: string;
438
+ hubAccountId: string;
439
+ hubStoreId: string;
440
+ paymentBindingId: string;
441
+ platformId: string;
442
+ stripeAccountId: string;
443
+ contextId: string;
444
+ environmentRole: "development" | "staging" | "production";
445
+ };
446
+ paymentIntentId: string;
447
+ factVersion: number;
448
+ objectId: string;
449
+ refundedMinor: number;
450
+ balanceTransactionId: string | null;
451
+ } | {
452
+ currency: string;
453
+ kind: "fee_refund";
454
+ attemptId: string;
455
+ orderReference: string;
456
+ amountMinor: number;
457
+ scope: {
458
+ livemode: boolean;
459
+ hubEnvironmentId: string;
460
+ generation: number;
461
+ linkId: string;
462
+ hubOrigin: string;
463
+ hubAccountId: string;
464
+ hubStoreId: string;
465
+ paymentBindingId: string;
466
+ platformId: string;
467
+ stripeAccountId: string;
468
+ contextId: string;
469
+ environmentRole: "development" | "staging" | "production";
470
+ };
471
+ paymentIntentId: string;
472
+ factVersion: number;
473
+ objectId: string;
474
+ balanceTransactionId: string | null;
475
+ applicationFeeId: string;
476
+ };
477
+ driverParam: unknown;
478
+ notNull: true;
479
+ hasDefault: false;
480
+ isPrimaryKey: false;
481
+ isAutoincrement: false;
482
+ hasRuntimeDefault: false;
483
+ enumValues: undefined;
484
+ baseColumn: never;
485
+ identity: undefined;
486
+ generated: undefined;
487
+ }, {}, {
488
+ $type: {
489
+ status: "succeeded";
490
+ currency: string;
491
+ kind: "capture";
492
+ attemptId: string;
493
+ orderReference: string;
494
+ amountMinor: number;
495
+ scope: {
496
+ livemode: boolean;
497
+ hubEnvironmentId: string;
498
+ generation: number;
499
+ linkId: string;
500
+ hubOrigin: string;
501
+ hubAccountId: string;
502
+ hubStoreId: string;
503
+ paymentBindingId: string;
504
+ platformId: string;
505
+ stripeAccountId: string;
506
+ contextId: string;
507
+ environmentRole: "development" | "staging" | "production";
508
+ };
509
+ paymentIntentId: string;
510
+ factVersion: number;
511
+ objectId: string;
512
+ chargeId?: string | undefined;
513
+ balance?: {
514
+ id: string;
515
+ currency: string;
516
+ amountMinor: number;
517
+ feeMinor: number;
518
+ netMinor: number;
519
+ } | null | undefined;
520
+ } | {
521
+ status: "unknown" | "pending" | "requires_action" | "succeeded" | "failed" | "canceled";
522
+ currency: string;
523
+ kind: "refund";
524
+ operationId: string | null;
525
+ attemptId: string;
526
+ orderReference: string;
527
+ amountMinor: number;
528
+ scope: {
529
+ livemode: boolean;
530
+ hubEnvironmentId: string;
531
+ generation: number;
532
+ linkId: string;
533
+ hubOrigin: string;
534
+ hubAccountId: string;
535
+ hubStoreId: string;
536
+ paymentBindingId: string;
537
+ platformId: string;
538
+ stripeAccountId: string;
539
+ contextId: string;
540
+ environmentRole: "development" | "staging" | "production";
541
+ };
542
+ paymentIntentId: string;
543
+ factVersion: number;
544
+ objectId: string;
545
+ } | {
546
+ status: string;
547
+ currency: string;
548
+ kind: "dispute";
549
+ attemptId: string;
550
+ orderReference: string;
551
+ amountMinor: number;
552
+ scope: {
553
+ livemode: boolean;
554
+ hubEnvironmentId: string;
555
+ generation: number;
556
+ linkId: string;
557
+ hubOrigin: string;
558
+ hubAccountId: string;
559
+ hubStoreId: string;
560
+ paymentBindingId: string;
561
+ platformId: string;
562
+ stripeAccountId: string;
563
+ contextId: string;
564
+ environmentRole: "development" | "staging" | "production";
565
+ };
566
+ paymentIntentId: string;
567
+ factVersion: number;
568
+ objectId: string;
569
+ lostPrincipalMinor: number;
570
+ heldPrincipalMinor: number;
571
+ deadline: number | null;
572
+ } | {
573
+ currency: string;
574
+ kind: "application_fee";
575
+ attemptId: string;
576
+ orderReference: string;
577
+ amountMinor: number;
578
+ scope: {
579
+ livemode: boolean;
580
+ hubEnvironmentId: string;
581
+ generation: number;
582
+ linkId: string;
583
+ hubOrigin: string;
584
+ hubAccountId: string;
585
+ hubStoreId: string;
586
+ paymentBindingId: string;
587
+ platformId: string;
588
+ stripeAccountId: string;
589
+ contextId: string;
590
+ environmentRole: "development" | "staging" | "production";
591
+ };
592
+ paymentIntentId: string;
593
+ factVersion: number;
594
+ objectId: string;
595
+ refundedMinor: number;
596
+ balanceTransactionId: string | null;
597
+ } | {
598
+ currency: string;
599
+ kind: "fee_refund";
600
+ attemptId: string;
601
+ orderReference: string;
602
+ amountMinor: number;
603
+ scope: {
604
+ livemode: boolean;
605
+ hubEnvironmentId: string;
606
+ generation: number;
607
+ linkId: string;
608
+ hubOrigin: string;
609
+ hubAccountId: string;
610
+ hubStoreId: string;
611
+ paymentBindingId: string;
612
+ platformId: string;
613
+ stripeAccountId: string;
614
+ contextId: string;
615
+ environmentRole: "development" | "staging" | "production";
616
+ };
617
+ paymentIntentId: string;
618
+ factVersion: number;
619
+ objectId: string;
620
+ balanceTransactionId: string | null;
621
+ applicationFeeId: string;
622
+ };
623
+ }>;
624
+ state: import("drizzle-orm/pg-core").PgColumn<{
625
+ name: "state";
626
+ tableName: "receipts";
627
+ dataType: "string";
628
+ columnType: "PgText";
629
+ data: "pending" | "projected";
630
+ driverParam: string;
631
+ notNull: true;
632
+ hasDefault: true;
633
+ isPrimaryKey: false;
634
+ isAutoincrement: false;
635
+ hasRuntimeDefault: false;
636
+ enumValues: [string, ...string[]];
637
+ baseColumn: never;
638
+ identity: undefined;
639
+ generated: undefined;
640
+ }, {}, {
641
+ $type: "pending" | "projected";
642
+ }>;
643
+ errorCode: import("drizzle-orm/pg-core").PgColumn<{
644
+ name: "error_code";
645
+ tableName: "receipts";
646
+ dataType: "string";
647
+ columnType: "PgText";
648
+ data: string;
649
+ driverParam: string;
650
+ notNull: false;
651
+ hasDefault: false;
652
+ isPrimaryKey: false;
653
+ isAutoincrement: false;
654
+ hasRuntimeDefault: false;
655
+ enumValues: [string, ...string[]];
656
+ baseColumn: never;
657
+ identity: undefined;
658
+ generated: undefined;
659
+ }, {}, {}>;
660
+ nextAttemptAt: import("drizzle-orm/pg-core").PgColumn<{
661
+ name: "next_attempt_at";
662
+ tableName: "receipts";
663
+ dataType: "date";
664
+ columnType: "PgTimestamp";
665
+ data: Date;
666
+ driverParam: string;
667
+ notNull: true;
668
+ hasDefault: true;
669
+ isPrimaryKey: false;
670
+ isAutoincrement: false;
671
+ hasRuntimeDefault: false;
672
+ enumValues: undefined;
673
+ baseColumn: never;
674
+ identity: undefined;
675
+ generated: undefined;
676
+ }, {}, {}>;
677
+ createdAt: import("drizzle-orm/pg-core").PgColumn<{
678
+ name: "created_at";
679
+ tableName: "receipts";
680
+ dataType: "date";
681
+ columnType: "PgTimestamp";
682
+ data: Date;
683
+ driverParam: string;
684
+ notNull: true;
685
+ hasDefault: true;
686
+ isPrimaryKey: false;
687
+ isAutoincrement: false;
688
+ hasRuntimeDefault: false;
689
+ enumValues: undefined;
690
+ baseColumn: never;
691
+ identity: undefined;
692
+ generated: undefined;
693
+ }, {}, {}>;
694
+ };
695
+ dialect: "pg";
696
+ }>;
697
+ export declare const financialFacts: import("drizzle-orm/pg-core").PgTableWithColumns<{
698
+ name: "financial_facts";
699
+ schema: "ext_stripe_connect";
700
+ columns: {
701
+ id: import("drizzle-orm/pg-core").PgColumn<{
702
+ name: "id";
703
+ tableName: "financial_facts";
704
+ dataType: "string";
705
+ columnType: "PgUUID";
706
+ data: string;
707
+ driverParam: string;
708
+ notNull: true;
709
+ hasDefault: true;
710
+ isPrimaryKey: true;
711
+ isAutoincrement: false;
712
+ hasRuntimeDefault: false;
713
+ enumValues: undefined;
714
+ baseColumn: never;
715
+ identity: undefined;
716
+ generated: undefined;
717
+ }, {}, {}>;
718
+ originalBindingId: import("drizzle-orm/pg-core").PgColumn<{
719
+ name: "original_binding_id";
720
+ tableName: "financial_facts";
721
+ dataType: "string";
722
+ columnType: "PgUUID";
723
+ data: string;
724
+ driverParam: string;
725
+ notNull: true;
726
+ hasDefault: false;
727
+ isPrimaryKey: false;
728
+ isAutoincrement: false;
729
+ hasRuntimeDefault: false;
730
+ enumValues: undefined;
731
+ baseColumn: never;
732
+ identity: undefined;
733
+ generated: undefined;
734
+ }, {}, {}>;
735
+ paymentIntentId: import("drizzle-orm/pg-core").PgColumn<{
736
+ name: "payment_intent_id";
737
+ tableName: "financial_facts";
738
+ dataType: "string";
739
+ columnType: "PgText";
740
+ data: string;
741
+ driverParam: string;
742
+ notNull: true;
743
+ hasDefault: false;
744
+ isPrimaryKey: false;
745
+ isAutoincrement: false;
746
+ hasRuntimeDefault: false;
747
+ enumValues: [string, ...string[]];
748
+ baseColumn: never;
749
+ identity: undefined;
750
+ generated: undefined;
751
+ }, {}, {}>;
752
+ kind: import("drizzle-orm/pg-core").PgColumn<{
753
+ name: "kind";
754
+ tableName: "financial_facts";
755
+ dataType: "string";
756
+ columnType: "PgText";
757
+ data: string;
758
+ driverParam: string;
759
+ notNull: true;
760
+ hasDefault: false;
761
+ isPrimaryKey: false;
762
+ isAutoincrement: false;
763
+ hasRuntimeDefault: false;
764
+ enumValues: [string, ...string[]];
765
+ baseColumn: never;
766
+ identity: undefined;
767
+ generated: undefined;
768
+ }, {}, {}>;
769
+ objectId: import("drizzle-orm/pg-core").PgColumn<{
770
+ name: "object_id";
771
+ tableName: "financial_facts";
772
+ dataType: "string";
773
+ columnType: "PgText";
774
+ data: string;
775
+ driverParam: string;
776
+ notNull: true;
777
+ hasDefault: false;
778
+ isPrimaryKey: false;
779
+ isAutoincrement: false;
780
+ hasRuntimeDefault: false;
781
+ enumValues: [string, ...string[]];
782
+ baseColumn: never;
783
+ identity: undefined;
784
+ generated: undefined;
785
+ }, {}, {}>;
786
+ version: import("drizzle-orm/pg-core").PgColumn<{
787
+ name: "version";
788
+ tableName: "financial_facts";
789
+ dataType: "number";
790
+ columnType: "PgInteger";
791
+ data: number;
792
+ driverParam: string | number;
793
+ notNull: true;
794
+ hasDefault: false;
795
+ isPrimaryKey: false;
796
+ isAutoincrement: false;
797
+ hasRuntimeDefault: false;
798
+ enumValues: undefined;
799
+ baseColumn: never;
800
+ identity: undefined;
801
+ generated: undefined;
802
+ }, {}, {}>;
803
+ fact: import("drizzle-orm/pg-core").PgColumn<{
804
+ name: "fact";
805
+ tableName: "financial_facts";
806
+ dataType: "json";
807
+ columnType: "PgJsonb";
808
+ data: {
809
+ status: "succeeded";
810
+ currency: string;
811
+ kind: "capture";
812
+ attemptId: string;
813
+ orderReference: string;
814
+ amountMinor: number;
815
+ scope: {
816
+ livemode: boolean;
817
+ hubEnvironmentId: string;
818
+ generation: number;
819
+ linkId: string;
820
+ hubOrigin: string;
821
+ hubAccountId: string;
822
+ hubStoreId: string;
823
+ paymentBindingId: string;
824
+ platformId: string;
825
+ stripeAccountId: string;
826
+ contextId: string;
827
+ environmentRole: "development" | "staging" | "production";
828
+ };
829
+ paymentIntentId: string;
830
+ factVersion: number;
831
+ objectId: string;
832
+ chargeId?: string | undefined;
833
+ balance?: {
834
+ id: string;
835
+ currency: string;
836
+ amountMinor: number;
837
+ feeMinor: number;
838
+ netMinor: number;
839
+ } | null | undefined;
840
+ } | {
841
+ status: "unknown" | "pending" | "requires_action" | "succeeded" | "failed" | "canceled";
842
+ currency: string;
843
+ kind: "refund";
844
+ operationId: string | null;
845
+ attemptId: string;
846
+ orderReference: string;
847
+ amountMinor: number;
848
+ scope: {
849
+ livemode: boolean;
850
+ hubEnvironmentId: string;
851
+ generation: number;
852
+ linkId: string;
853
+ hubOrigin: string;
854
+ hubAccountId: string;
855
+ hubStoreId: string;
856
+ paymentBindingId: string;
857
+ platformId: string;
858
+ stripeAccountId: string;
859
+ contextId: string;
860
+ environmentRole: "development" | "staging" | "production";
861
+ };
862
+ paymentIntentId: string;
863
+ factVersion: number;
864
+ objectId: string;
865
+ } | {
866
+ status: string;
867
+ currency: string;
868
+ kind: "dispute";
869
+ attemptId: string;
870
+ orderReference: string;
871
+ amountMinor: number;
872
+ scope: {
873
+ livemode: boolean;
874
+ hubEnvironmentId: string;
875
+ generation: number;
876
+ linkId: string;
877
+ hubOrigin: string;
878
+ hubAccountId: string;
879
+ hubStoreId: string;
880
+ paymentBindingId: string;
881
+ platformId: string;
882
+ stripeAccountId: string;
883
+ contextId: string;
884
+ environmentRole: "development" | "staging" | "production";
885
+ };
886
+ paymentIntentId: string;
887
+ factVersion: number;
888
+ objectId: string;
889
+ lostPrincipalMinor: number;
890
+ heldPrincipalMinor: number;
891
+ deadline: number | null;
892
+ } | {
893
+ currency: string;
894
+ kind: "application_fee";
895
+ attemptId: string;
896
+ orderReference: string;
897
+ amountMinor: number;
898
+ scope: {
899
+ livemode: boolean;
900
+ hubEnvironmentId: string;
901
+ generation: number;
902
+ linkId: string;
903
+ hubOrigin: string;
904
+ hubAccountId: string;
905
+ hubStoreId: string;
906
+ paymentBindingId: string;
907
+ platformId: string;
908
+ stripeAccountId: string;
909
+ contextId: string;
910
+ environmentRole: "development" | "staging" | "production";
911
+ };
912
+ paymentIntentId: string;
913
+ factVersion: number;
914
+ objectId: string;
915
+ refundedMinor: number;
916
+ balanceTransactionId: string | null;
917
+ } | {
918
+ currency: string;
919
+ kind: "fee_refund";
920
+ attemptId: string;
921
+ orderReference: string;
922
+ amountMinor: number;
923
+ scope: {
924
+ livemode: boolean;
925
+ hubEnvironmentId: string;
926
+ generation: number;
927
+ linkId: string;
928
+ hubOrigin: string;
929
+ hubAccountId: string;
930
+ hubStoreId: string;
931
+ paymentBindingId: string;
932
+ platformId: string;
933
+ stripeAccountId: string;
934
+ contextId: string;
935
+ environmentRole: "development" | "staging" | "production";
936
+ };
937
+ paymentIntentId: string;
938
+ factVersion: number;
939
+ objectId: string;
940
+ balanceTransactionId: string | null;
941
+ applicationFeeId: string;
942
+ };
943
+ driverParam: unknown;
944
+ notNull: true;
945
+ hasDefault: false;
946
+ isPrimaryKey: false;
947
+ isAutoincrement: false;
948
+ hasRuntimeDefault: false;
949
+ enumValues: undefined;
950
+ baseColumn: never;
951
+ identity: undefined;
952
+ generated: undefined;
953
+ }, {}, {
954
+ $type: {
955
+ status: "succeeded";
956
+ currency: string;
957
+ kind: "capture";
958
+ attemptId: string;
959
+ orderReference: string;
960
+ amountMinor: number;
961
+ scope: {
962
+ livemode: boolean;
963
+ hubEnvironmentId: string;
964
+ generation: number;
965
+ linkId: string;
966
+ hubOrigin: string;
967
+ hubAccountId: string;
968
+ hubStoreId: string;
969
+ paymentBindingId: string;
970
+ platformId: string;
971
+ stripeAccountId: string;
972
+ contextId: string;
973
+ environmentRole: "development" | "staging" | "production";
974
+ };
975
+ paymentIntentId: string;
976
+ factVersion: number;
977
+ objectId: string;
978
+ chargeId?: string | undefined;
979
+ balance?: {
980
+ id: string;
981
+ currency: string;
982
+ amountMinor: number;
983
+ feeMinor: number;
984
+ netMinor: number;
985
+ } | null | undefined;
986
+ } | {
987
+ status: "unknown" | "pending" | "requires_action" | "succeeded" | "failed" | "canceled";
988
+ currency: string;
989
+ kind: "refund";
990
+ operationId: string | null;
991
+ attemptId: string;
992
+ orderReference: string;
993
+ amountMinor: number;
994
+ scope: {
995
+ livemode: boolean;
996
+ hubEnvironmentId: string;
997
+ generation: number;
998
+ linkId: string;
999
+ hubOrigin: string;
1000
+ hubAccountId: string;
1001
+ hubStoreId: string;
1002
+ paymentBindingId: string;
1003
+ platformId: string;
1004
+ stripeAccountId: string;
1005
+ contextId: string;
1006
+ environmentRole: "development" | "staging" | "production";
1007
+ };
1008
+ paymentIntentId: string;
1009
+ factVersion: number;
1010
+ objectId: string;
1011
+ } | {
1012
+ status: string;
1013
+ currency: string;
1014
+ kind: "dispute";
1015
+ attemptId: string;
1016
+ orderReference: string;
1017
+ amountMinor: number;
1018
+ scope: {
1019
+ livemode: boolean;
1020
+ hubEnvironmentId: string;
1021
+ generation: number;
1022
+ linkId: string;
1023
+ hubOrigin: string;
1024
+ hubAccountId: string;
1025
+ hubStoreId: string;
1026
+ paymentBindingId: string;
1027
+ platformId: string;
1028
+ stripeAccountId: string;
1029
+ contextId: string;
1030
+ environmentRole: "development" | "staging" | "production";
1031
+ };
1032
+ paymentIntentId: string;
1033
+ factVersion: number;
1034
+ objectId: string;
1035
+ lostPrincipalMinor: number;
1036
+ heldPrincipalMinor: number;
1037
+ deadline: number | null;
1038
+ } | {
1039
+ currency: string;
1040
+ kind: "application_fee";
1041
+ attemptId: string;
1042
+ orderReference: string;
1043
+ amountMinor: number;
1044
+ scope: {
1045
+ livemode: boolean;
1046
+ hubEnvironmentId: string;
1047
+ generation: number;
1048
+ linkId: string;
1049
+ hubOrigin: string;
1050
+ hubAccountId: string;
1051
+ hubStoreId: string;
1052
+ paymentBindingId: string;
1053
+ platformId: string;
1054
+ stripeAccountId: string;
1055
+ contextId: string;
1056
+ environmentRole: "development" | "staging" | "production";
1057
+ };
1058
+ paymentIntentId: string;
1059
+ factVersion: number;
1060
+ objectId: string;
1061
+ refundedMinor: number;
1062
+ balanceTransactionId: string | null;
1063
+ } | {
1064
+ currency: string;
1065
+ kind: "fee_refund";
1066
+ attemptId: string;
1067
+ orderReference: string;
1068
+ amountMinor: number;
1069
+ scope: {
1070
+ livemode: boolean;
1071
+ hubEnvironmentId: string;
1072
+ generation: number;
1073
+ linkId: string;
1074
+ hubOrigin: string;
1075
+ hubAccountId: string;
1076
+ hubStoreId: string;
1077
+ paymentBindingId: string;
1078
+ platformId: string;
1079
+ stripeAccountId: string;
1080
+ contextId: string;
1081
+ environmentRole: "development" | "staging" | "production";
1082
+ };
1083
+ paymentIntentId: string;
1084
+ factVersion: number;
1085
+ objectId: string;
1086
+ balanceTransactionId: string | null;
1087
+ applicationFeeId: string;
1088
+ };
1089
+ }>;
1090
+ createdAt: import("drizzle-orm/pg-core").PgColumn<{
1091
+ name: "created_at";
1092
+ tableName: "financial_facts";
1093
+ dataType: "date";
1094
+ columnType: "PgTimestamp";
1095
+ data: Date;
1096
+ driverParam: string;
1097
+ notNull: true;
1098
+ hasDefault: true;
1099
+ isPrimaryKey: false;
1100
+ isAutoincrement: false;
1101
+ hasRuntimeDefault: false;
1102
+ enumValues: undefined;
1103
+ baseColumn: never;
1104
+ identity: undefined;
1105
+ generated: undefined;
1106
+ }, {}, {}>;
1107
+ };
1108
+ dialect: "pg";
1109
+ }>;
1110
+ export type Enrollment = typeof enrollments.$inferSelect;