@pgflow/core 0.0.0-array-map-steps-cd94242a-20251008042921 → 0.0.0-control-plane-a947cb71-20251121164755
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +25 -3
- package/dist/ATLAS.md +1 -1
- package/dist/CHANGELOG.md +102 -13
- package/dist/PgflowSqlClient.js +1 -1
- package/dist/README.md +25 -3
- package/dist/database-types.d.ts +246 -71
- package/dist/database-types.d.ts.map +1 -1
- package/dist/package.json +3 -4
- package/dist/supabase/migrations/20250429164909_pgflow_initial.sql +2 -2
- package/dist/supabase/migrations/20251006073122_pgflow_add_map_step_type.sql +24 -7
- package/dist/supabase/migrations/20251103222045_pgflow_fix_broadcast_order_and_timestamp_handling.sql +622 -0
- package/dist/supabase/migrations/20251104080523_pgflow_upgrade_pgmq_1_5_1.sql +93 -0
- package/dist/types.d.ts +2 -4
- package/dist/types.d.ts.map +1 -1
- package/package.json +4 -5
package/dist/database-types.d.ts
CHANGED
|
@@ -343,14 +343,14 @@ export type Database = {
|
|
|
343
343
|
Functions: {
|
|
344
344
|
add_step: {
|
|
345
345
|
Args: {
|
|
346
|
-
|
|
347
|
-
step_slug: string;
|
|
346
|
+
base_delay?: number;
|
|
348
347
|
deps_slugs?: string[];
|
|
348
|
+
flow_slug: string;
|
|
349
349
|
max_attempts?: number;
|
|
350
|
-
base_delay?: number;
|
|
351
|
-
timeout?: number;
|
|
352
350
|
start_delay?: number;
|
|
351
|
+
step_slug: string;
|
|
353
352
|
step_type?: string;
|
|
353
|
+
timeout?: number;
|
|
354
354
|
};
|
|
355
355
|
Returns: {
|
|
356
356
|
created_at: string;
|
|
@@ -364,11 +364,17 @@ export type Database = {
|
|
|
364
364
|
step_slug: string;
|
|
365
365
|
step_type: string;
|
|
366
366
|
};
|
|
367
|
+
SetofOptions: {
|
|
368
|
+
from: "*";
|
|
369
|
+
to: "steps";
|
|
370
|
+
isOneToOne: true;
|
|
371
|
+
isSetofReturn: false;
|
|
372
|
+
};
|
|
367
373
|
};
|
|
368
374
|
calculate_retry_delay: {
|
|
369
375
|
Args: {
|
|
370
|
-
base_delay: number;
|
|
371
376
|
attempts_count: number;
|
|
377
|
+
base_delay: number;
|
|
372
378
|
};
|
|
373
379
|
Returns: number;
|
|
374
380
|
};
|
|
@@ -380,10 +386,10 @@ export type Database = {
|
|
|
380
386
|
};
|
|
381
387
|
complete_task: {
|
|
382
388
|
Args: {
|
|
389
|
+
output: Json;
|
|
383
390
|
run_id: string;
|
|
384
391
|
step_slug: string;
|
|
385
392
|
task_index: number;
|
|
386
|
-
output: Json;
|
|
387
393
|
};
|
|
388
394
|
Returns: {
|
|
389
395
|
attempts_count: number;
|
|
@@ -401,12 +407,18 @@ export type Database = {
|
|
|
401
407
|
step_slug: string;
|
|
402
408
|
task_index: number;
|
|
403
409
|
}[];
|
|
410
|
+
SetofOptions: {
|
|
411
|
+
from: "*";
|
|
412
|
+
to: "step_tasks";
|
|
413
|
+
isOneToOne: false;
|
|
414
|
+
isSetofReturn: true;
|
|
415
|
+
};
|
|
404
416
|
};
|
|
405
417
|
create_flow: {
|
|
406
418
|
Args: {
|
|
419
|
+
base_delay?: number;
|
|
407
420
|
flow_slug: string;
|
|
408
421
|
max_attempts?: number;
|
|
409
|
-
base_delay?: number;
|
|
410
422
|
timeout?: number;
|
|
411
423
|
};
|
|
412
424
|
Returns: {
|
|
@@ -416,13 +428,19 @@ export type Database = {
|
|
|
416
428
|
opt_max_attempts: number;
|
|
417
429
|
opt_timeout: number;
|
|
418
430
|
};
|
|
431
|
+
SetofOptions: {
|
|
432
|
+
from: "*";
|
|
433
|
+
to: "flows";
|
|
434
|
+
isOneToOne: true;
|
|
435
|
+
isSetofReturn: false;
|
|
436
|
+
};
|
|
419
437
|
};
|
|
420
438
|
fail_task: {
|
|
421
439
|
Args: {
|
|
440
|
+
error_message: string;
|
|
422
441
|
run_id: string;
|
|
423
442
|
step_slug: string;
|
|
424
443
|
task_index: number;
|
|
425
|
-
error_message: string;
|
|
426
444
|
};
|
|
427
445
|
Returns: {
|
|
428
446
|
attempts_count: number;
|
|
@@ -440,6 +458,12 @@ export type Database = {
|
|
|
440
458
|
step_slug: string;
|
|
441
459
|
task_index: number;
|
|
442
460
|
}[];
|
|
461
|
+
SetofOptions: {
|
|
462
|
+
from: "*";
|
|
463
|
+
to: "step_tasks";
|
|
464
|
+
isOneToOne: false;
|
|
465
|
+
isSetofReturn: true;
|
|
466
|
+
};
|
|
443
467
|
};
|
|
444
468
|
get_run_with_states: {
|
|
445
469
|
Args: {
|
|
@@ -461,32 +485,34 @@ export type Database = {
|
|
|
461
485
|
};
|
|
462
486
|
poll_for_tasks: {
|
|
463
487
|
Args: {
|
|
464
|
-
queue_name: string;
|
|
465
|
-
vt: number;
|
|
466
|
-
qty: number;
|
|
467
488
|
max_poll_seconds?: number;
|
|
468
489
|
poll_interval_ms?: number;
|
|
469
|
-
|
|
470
|
-
Returns: Database["pgflow"]["CompositeTypes"]["step_task_record"][];
|
|
471
|
-
};
|
|
472
|
-
read_with_poll: {
|
|
473
|
-
Args: {
|
|
490
|
+
qty: number;
|
|
474
491
|
queue_name: string;
|
|
475
492
|
vt: number;
|
|
476
|
-
qty: number;
|
|
477
|
-
max_poll_seconds?: number;
|
|
478
|
-
poll_interval_ms?: number;
|
|
479
|
-
conditional?: Json;
|
|
480
493
|
};
|
|
481
|
-
Returns: Database["
|
|
494
|
+
Returns: Database["pgflow"]["CompositeTypes"]["step_task_record"][];
|
|
495
|
+
SetofOptions: {
|
|
496
|
+
from: "*";
|
|
497
|
+
to: "step_task_record";
|
|
498
|
+
isOneToOne: false;
|
|
499
|
+
isSetofReturn: true;
|
|
500
|
+
};
|
|
482
501
|
};
|
|
483
502
|
set_vt_batch: {
|
|
484
503
|
Args: {
|
|
485
|
-
queue_name: string;
|
|
486
504
|
msg_ids: number[];
|
|
505
|
+
queue_name: string;
|
|
487
506
|
vt_offsets: number[];
|
|
488
507
|
};
|
|
489
|
-
Returns:
|
|
508
|
+
Returns: {
|
|
509
|
+
enqueued_at: string;
|
|
510
|
+
headers: Json;
|
|
511
|
+
message: Json;
|
|
512
|
+
msg_id: number;
|
|
513
|
+
read_ct: number;
|
|
514
|
+
vt: string;
|
|
515
|
+
}[];
|
|
490
516
|
};
|
|
491
517
|
start_flow: {
|
|
492
518
|
Args: {
|
|
@@ -505,6 +531,12 @@ export type Database = {
|
|
|
505
531
|
started_at: string;
|
|
506
532
|
status: string;
|
|
507
533
|
}[];
|
|
534
|
+
SetofOptions: {
|
|
535
|
+
from: "*";
|
|
536
|
+
to: "runs";
|
|
537
|
+
isOneToOne: false;
|
|
538
|
+
isSetofReturn: true;
|
|
539
|
+
};
|
|
508
540
|
};
|
|
509
541
|
start_flow_with_states: {
|
|
510
542
|
Args: {
|
|
@@ -527,6 +559,12 @@ export type Database = {
|
|
|
527
559
|
worker_id: string;
|
|
528
560
|
};
|
|
529
561
|
Returns: Database["pgflow"]["CompositeTypes"]["step_task_record"][];
|
|
562
|
+
SetofOptions: {
|
|
563
|
+
from: "*";
|
|
564
|
+
to: "step_task_record";
|
|
565
|
+
isOneToOne: false;
|
|
566
|
+
isSetofReturn: true;
|
|
567
|
+
};
|
|
530
568
|
};
|
|
531
569
|
};
|
|
532
570
|
Enums: {
|
|
@@ -578,9 +616,15 @@ export type Database = {
|
|
|
578
616
|
Returns: boolean;
|
|
579
617
|
};
|
|
580
618
|
_ensure_pg_partman_installed: {
|
|
581
|
-
Args:
|
|
619
|
+
Args: never;
|
|
582
620
|
Returns: undefined;
|
|
583
621
|
};
|
|
622
|
+
_extension_exists: {
|
|
623
|
+
Args: {
|
|
624
|
+
extension_name: string;
|
|
625
|
+
};
|
|
626
|
+
Returns: boolean;
|
|
627
|
+
};
|
|
584
628
|
_get_partition_col: {
|
|
585
629
|
Args: {
|
|
586
630
|
partition_interval: string;
|
|
@@ -588,29 +632,32 @@ export type Database = {
|
|
|
588
632
|
Returns: string;
|
|
589
633
|
};
|
|
590
634
|
_get_pg_partman_major_version: {
|
|
591
|
-
Args:
|
|
635
|
+
Args: never;
|
|
592
636
|
Returns: number;
|
|
593
637
|
};
|
|
594
638
|
_get_pg_partman_schema: {
|
|
595
|
-
Args:
|
|
639
|
+
Args: never;
|
|
596
640
|
Returns: string;
|
|
597
641
|
};
|
|
598
642
|
archive: {
|
|
599
643
|
Args: {
|
|
600
|
-
queue_name: string;
|
|
601
644
|
msg_id: number;
|
|
602
|
-
} | {
|
|
603
645
|
queue_name: string;
|
|
604
|
-
msg_ids: number[];
|
|
605
646
|
};
|
|
606
647
|
Returns: boolean;
|
|
648
|
+
} | {
|
|
649
|
+
Args: {
|
|
650
|
+
msg_ids: number[];
|
|
651
|
+
queue_name: string;
|
|
652
|
+
};
|
|
653
|
+
Returns: number[];
|
|
607
654
|
};
|
|
608
655
|
convert_archive_partitioned: {
|
|
609
656
|
Args: {
|
|
610
|
-
|
|
657
|
+
leading_partition?: number;
|
|
611
658
|
partition_interval?: string;
|
|
612
659
|
retention_interval?: string;
|
|
613
|
-
|
|
660
|
+
table_name: string;
|
|
614
661
|
};
|
|
615
662
|
Returns: undefined;
|
|
616
663
|
};
|
|
@@ -628,8 +675,8 @@ export type Database = {
|
|
|
628
675
|
};
|
|
629
676
|
create_partitioned: {
|
|
630
677
|
Args: {
|
|
631
|
-
queue_name: string;
|
|
632
678
|
partition_interval?: string;
|
|
679
|
+
queue_name: string;
|
|
633
680
|
retention_interval?: string;
|
|
634
681
|
};
|
|
635
682
|
Returns: undefined;
|
|
@@ -642,13 +689,16 @@ export type Database = {
|
|
|
642
689
|
};
|
|
643
690
|
delete: {
|
|
644
691
|
Args: {
|
|
645
|
-
queue_name: string;
|
|
646
692
|
msg_id: number;
|
|
647
|
-
} | {
|
|
648
693
|
queue_name: string;
|
|
649
|
-
msg_ids: number[];
|
|
650
694
|
};
|
|
651
695
|
Returns: boolean;
|
|
696
|
+
} | {
|
|
697
|
+
Args: {
|
|
698
|
+
msg_ids: number[];
|
|
699
|
+
queue_name: string;
|
|
700
|
+
};
|
|
701
|
+
Returns: number[];
|
|
652
702
|
};
|
|
653
703
|
detach_archive: {
|
|
654
704
|
Args: {
|
|
@@ -661,33 +711,63 @@ export type Database = {
|
|
|
661
711
|
queue_name: string;
|
|
662
712
|
};
|
|
663
713
|
Returns: boolean;
|
|
714
|
+
} | {
|
|
715
|
+
Args: {
|
|
716
|
+
partitioned: boolean;
|
|
717
|
+
queue_name: string;
|
|
718
|
+
};
|
|
719
|
+
Returns: boolean;
|
|
664
720
|
};
|
|
665
721
|
format_table_name: {
|
|
666
722
|
Args: {
|
|
667
|
-
queue_name: string;
|
|
668
723
|
prefix: string;
|
|
724
|
+
queue_name: string;
|
|
669
725
|
};
|
|
670
726
|
Returns: string;
|
|
671
727
|
};
|
|
672
728
|
list_queues: {
|
|
673
|
-
Args:
|
|
729
|
+
Args: never;
|
|
674
730
|
Returns: Database["pgmq"]["CompositeTypes"]["queue_record"][];
|
|
731
|
+
SetofOptions: {
|
|
732
|
+
from: "*";
|
|
733
|
+
to: "queue_record";
|
|
734
|
+
isOneToOne: false;
|
|
735
|
+
isSetofReturn: true;
|
|
736
|
+
};
|
|
675
737
|
};
|
|
676
738
|
metrics: {
|
|
677
739
|
Args: {
|
|
678
740
|
queue_name: string;
|
|
679
741
|
};
|
|
680
742
|
Returns: Database["pgmq"]["CompositeTypes"]["metrics_result"];
|
|
743
|
+
SetofOptions: {
|
|
744
|
+
from: "*";
|
|
745
|
+
to: "metrics_result";
|
|
746
|
+
isOneToOne: true;
|
|
747
|
+
isSetofReturn: false;
|
|
748
|
+
};
|
|
681
749
|
};
|
|
682
750
|
metrics_all: {
|
|
683
|
-
Args:
|
|
751
|
+
Args: never;
|
|
684
752
|
Returns: Database["pgmq"]["CompositeTypes"]["metrics_result"][];
|
|
753
|
+
SetofOptions: {
|
|
754
|
+
from: "*";
|
|
755
|
+
to: "metrics_result";
|
|
756
|
+
isOneToOne: false;
|
|
757
|
+
isSetofReturn: true;
|
|
758
|
+
};
|
|
685
759
|
};
|
|
686
760
|
pop: {
|
|
687
761
|
Args: {
|
|
688
762
|
queue_name: string;
|
|
689
763
|
};
|
|
690
764
|
Returns: Database["pgmq"]["CompositeTypes"]["message_record"][];
|
|
765
|
+
SetofOptions: {
|
|
766
|
+
from: "*";
|
|
767
|
+
to: "message_record";
|
|
768
|
+
isOneToOne: false;
|
|
769
|
+
isSetofReturn: true;
|
|
770
|
+
};
|
|
691
771
|
};
|
|
692
772
|
purge_queue: {
|
|
693
773
|
Args: {
|
|
@@ -697,45 +777,137 @@ export type Database = {
|
|
|
697
777
|
};
|
|
698
778
|
read: {
|
|
699
779
|
Args: {
|
|
780
|
+
conditional?: Json;
|
|
781
|
+
qty: number;
|
|
700
782
|
queue_name: string;
|
|
701
783
|
vt: number;
|
|
702
|
-
qty: number;
|
|
703
784
|
};
|
|
704
785
|
Returns: Database["pgmq"]["CompositeTypes"]["message_record"][];
|
|
786
|
+
SetofOptions: {
|
|
787
|
+
from: "*";
|
|
788
|
+
to: "message_record";
|
|
789
|
+
isOneToOne: false;
|
|
790
|
+
isSetofReturn: true;
|
|
791
|
+
};
|
|
705
792
|
};
|
|
706
793
|
read_with_poll: {
|
|
707
794
|
Args: {
|
|
708
|
-
|
|
709
|
-
vt: number;
|
|
710
|
-
qty: number;
|
|
795
|
+
conditional?: Json;
|
|
711
796
|
max_poll_seconds?: number;
|
|
712
797
|
poll_interval_ms?: number;
|
|
798
|
+
qty: number;
|
|
799
|
+
queue_name: string;
|
|
800
|
+
vt: number;
|
|
713
801
|
};
|
|
714
802
|
Returns: Database["pgmq"]["CompositeTypes"]["message_record"][];
|
|
803
|
+
SetofOptions: {
|
|
804
|
+
from: "*";
|
|
805
|
+
to: "message_record";
|
|
806
|
+
isOneToOne: false;
|
|
807
|
+
isSetofReturn: true;
|
|
808
|
+
};
|
|
715
809
|
};
|
|
716
810
|
send: {
|
|
717
811
|
Args: {
|
|
812
|
+
delay: string;
|
|
813
|
+
headers: Json;
|
|
814
|
+
msg: Json;
|
|
815
|
+
queue_name: string;
|
|
816
|
+
};
|
|
817
|
+
Returns: number[];
|
|
818
|
+
} | {
|
|
819
|
+
Args: {
|
|
820
|
+
delay: string;
|
|
821
|
+
msg: Json;
|
|
822
|
+
queue_name: string;
|
|
823
|
+
};
|
|
824
|
+
Returns: number[];
|
|
825
|
+
} | {
|
|
826
|
+
Args: {
|
|
827
|
+
msg: Json;
|
|
718
828
|
queue_name: string;
|
|
829
|
+
};
|
|
830
|
+
Returns: number[];
|
|
831
|
+
} | {
|
|
832
|
+
Args: {
|
|
833
|
+
delay: number;
|
|
719
834
|
msg: Json;
|
|
720
|
-
|
|
835
|
+
queue_name: string;
|
|
836
|
+
};
|
|
837
|
+
Returns: number[];
|
|
838
|
+
} | {
|
|
839
|
+
Args: {
|
|
840
|
+
headers: Json;
|
|
841
|
+
msg: Json;
|
|
842
|
+
queue_name: string;
|
|
843
|
+
};
|
|
844
|
+
Returns: number[];
|
|
845
|
+
} | {
|
|
846
|
+
Args: {
|
|
847
|
+
delay: number;
|
|
848
|
+
headers: Json;
|
|
849
|
+
msg: Json;
|
|
850
|
+
queue_name: string;
|
|
721
851
|
};
|
|
722
852
|
Returns: number[];
|
|
723
853
|
};
|
|
724
854
|
send_batch: {
|
|
725
855
|
Args: {
|
|
856
|
+
delay: string;
|
|
857
|
+
headers: Json[];
|
|
858
|
+
msgs: Json[];
|
|
859
|
+
queue_name: string;
|
|
860
|
+
};
|
|
861
|
+
Returns: number[];
|
|
862
|
+
} | {
|
|
863
|
+
Args: {
|
|
864
|
+
delay: string;
|
|
865
|
+
msgs: Json[];
|
|
726
866
|
queue_name: string;
|
|
867
|
+
};
|
|
868
|
+
Returns: number[];
|
|
869
|
+
} | {
|
|
870
|
+
Args: {
|
|
727
871
|
msgs: Json[];
|
|
728
|
-
|
|
872
|
+
queue_name: string;
|
|
873
|
+
};
|
|
874
|
+
Returns: number[];
|
|
875
|
+
} | {
|
|
876
|
+
Args: {
|
|
877
|
+
delay: number;
|
|
878
|
+
msgs: Json[];
|
|
879
|
+
queue_name: string;
|
|
880
|
+
};
|
|
881
|
+
Returns: number[];
|
|
882
|
+
} | {
|
|
883
|
+
Args: {
|
|
884
|
+
headers: Json[];
|
|
885
|
+
msgs: Json[];
|
|
886
|
+
queue_name: string;
|
|
887
|
+
};
|
|
888
|
+
Returns: number[];
|
|
889
|
+
} | {
|
|
890
|
+
Args: {
|
|
891
|
+
delay: number;
|
|
892
|
+
headers: Json[];
|
|
893
|
+
msgs: Json[];
|
|
894
|
+
queue_name: string;
|
|
729
895
|
};
|
|
730
896
|
Returns: number[];
|
|
731
897
|
};
|
|
732
898
|
set_vt: {
|
|
733
899
|
Args: {
|
|
734
|
-
queue_name: string;
|
|
735
900
|
msg_id: number;
|
|
901
|
+
queue_name: string;
|
|
736
902
|
vt: number;
|
|
737
903
|
};
|
|
738
904
|
Returns: Database["pgmq"]["CompositeTypes"]["message_record"][];
|
|
905
|
+
SetofOptions: {
|
|
906
|
+
from: "*";
|
|
907
|
+
to: "message_record";
|
|
908
|
+
isOneToOne: false;
|
|
909
|
+
isSetofReturn: true;
|
|
910
|
+
};
|
|
739
911
|
};
|
|
740
912
|
validate_queue_name: {
|
|
741
913
|
Args: {
|
|
@@ -754,6 +926,7 @@ export type Database = {
|
|
|
754
926
|
enqueued_at: string | null;
|
|
755
927
|
vt: string | null;
|
|
756
928
|
message: Json | null;
|
|
929
|
+
headers: Json | null;
|
|
757
930
|
};
|
|
758
931
|
metrics_result: {
|
|
759
932
|
queue_name: string | null;
|
|
@@ -762,6 +935,7 @@ export type Database = {
|
|
|
762
935
|
oldest_msg_age_sec: number | null;
|
|
763
936
|
total_messages: number | null;
|
|
764
937
|
scrape_time: string | null;
|
|
938
|
+
queue_visible_length: number | null;
|
|
765
939
|
};
|
|
766
940
|
queue_record: {
|
|
767
941
|
queue_name: string | null;
|
|
@@ -772,54 +946,55 @@ export type Database = {
|
|
|
772
946
|
};
|
|
773
947
|
};
|
|
774
948
|
};
|
|
775
|
-
type
|
|
949
|
+
type DatabaseWithoutInternals = Omit<Database, "__InternalSupabase">;
|
|
950
|
+
type DefaultSchema = DatabaseWithoutInternals[Extract<keyof Database, "public">];
|
|
776
951
|
export type Tables<DefaultSchemaTableNameOrOptions extends keyof (DefaultSchema["Tables"] & DefaultSchema["Views"]) | {
|
|
777
|
-
schema: keyof
|
|
952
|
+
schema: keyof DatabaseWithoutInternals;
|
|
778
953
|
}, TableName extends DefaultSchemaTableNameOrOptions extends {
|
|
779
|
-
schema: keyof
|
|
780
|
-
} ? keyof (
|
|
781
|
-
schema: keyof
|
|
782
|
-
} ? (
|
|
954
|
+
schema: keyof DatabaseWithoutInternals;
|
|
955
|
+
} ? keyof (DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] & DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Views"]) : never = never> = DefaultSchemaTableNameOrOptions extends {
|
|
956
|
+
schema: keyof DatabaseWithoutInternals;
|
|
957
|
+
} ? (DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] & DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Views"])[TableName] extends {
|
|
783
958
|
Row: infer R;
|
|
784
959
|
} ? R : never : DefaultSchemaTableNameOrOptions extends keyof (DefaultSchema["Tables"] & DefaultSchema["Views"]) ? (DefaultSchema["Tables"] & DefaultSchema["Views"])[DefaultSchemaTableNameOrOptions] extends {
|
|
785
960
|
Row: infer R;
|
|
786
961
|
} ? R : never : never;
|
|
787
962
|
export type TablesInsert<DefaultSchemaTableNameOrOptions extends keyof DefaultSchema["Tables"] | {
|
|
788
|
-
schema: keyof
|
|
963
|
+
schema: keyof DatabaseWithoutInternals;
|
|
789
964
|
}, TableName extends DefaultSchemaTableNameOrOptions extends {
|
|
790
|
-
schema: keyof
|
|
791
|
-
} ? keyof
|
|
792
|
-
schema: keyof
|
|
793
|
-
} ?
|
|
965
|
+
schema: keyof DatabaseWithoutInternals;
|
|
966
|
+
} ? keyof DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] : never = never> = DefaultSchemaTableNameOrOptions extends {
|
|
967
|
+
schema: keyof DatabaseWithoutInternals;
|
|
968
|
+
} ? DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"][TableName] extends {
|
|
794
969
|
Insert: infer I;
|
|
795
970
|
} ? I : never : DefaultSchemaTableNameOrOptions extends keyof DefaultSchema["Tables"] ? DefaultSchema["Tables"][DefaultSchemaTableNameOrOptions] extends {
|
|
796
971
|
Insert: infer I;
|
|
797
972
|
} ? I : never : never;
|
|
798
973
|
export type TablesUpdate<DefaultSchemaTableNameOrOptions extends keyof DefaultSchema["Tables"] | {
|
|
799
|
-
schema: keyof
|
|
974
|
+
schema: keyof DatabaseWithoutInternals;
|
|
800
975
|
}, TableName extends DefaultSchemaTableNameOrOptions extends {
|
|
801
|
-
schema: keyof
|
|
802
|
-
} ? keyof
|
|
803
|
-
schema: keyof
|
|
804
|
-
} ?
|
|
976
|
+
schema: keyof DatabaseWithoutInternals;
|
|
977
|
+
} ? keyof DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] : never = never> = DefaultSchemaTableNameOrOptions extends {
|
|
978
|
+
schema: keyof DatabaseWithoutInternals;
|
|
979
|
+
} ? DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"][TableName] extends {
|
|
805
980
|
Update: infer U;
|
|
806
981
|
} ? U : never : DefaultSchemaTableNameOrOptions extends keyof DefaultSchema["Tables"] ? DefaultSchema["Tables"][DefaultSchemaTableNameOrOptions] extends {
|
|
807
982
|
Update: infer U;
|
|
808
983
|
} ? U : never : never;
|
|
809
984
|
export type Enums<DefaultSchemaEnumNameOrOptions extends keyof DefaultSchema["Enums"] | {
|
|
810
|
-
schema: keyof
|
|
985
|
+
schema: keyof DatabaseWithoutInternals;
|
|
811
986
|
}, EnumName extends DefaultSchemaEnumNameOrOptions extends {
|
|
812
|
-
schema: keyof
|
|
813
|
-
} ? keyof
|
|
814
|
-
schema: keyof
|
|
815
|
-
} ?
|
|
987
|
+
schema: keyof DatabaseWithoutInternals;
|
|
988
|
+
} ? keyof DatabaseWithoutInternals[DefaultSchemaEnumNameOrOptions["schema"]]["Enums"] : never = never> = DefaultSchemaEnumNameOrOptions extends {
|
|
989
|
+
schema: keyof DatabaseWithoutInternals;
|
|
990
|
+
} ? DatabaseWithoutInternals[DefaultSchemaEnumNameOrOptions["schema"]]["Enums"][EnumName] : DefaultSchemaEnumNameOrOptions extends keyof DefaultSchema["Enums"] ? DefaultSchema["Enums"][DefaultSchemaEnumNameOrOptions] : never;
|
|
816
991
|
export type CompositeTypes<PublicCompositeTypeNameOrOptions extends keyof DefaultSchema["CompositeTypes"] | {
|
|
817
|
-
schema: keyof
|
|
992
|
+
schema: keyof DatabaseWithoutInternals;
|
|
818
993
|
}, CompositeTypeName extends PublicCompositeTypeNameOrOptions extends {
|
|
819
|
-
schema: keyof
|
|
820
|
-
} ? keyof
|
|
821
|
-
schema: keyof
|
|
822
|
-
} ?
|
|
994
|
+
schema: keyof DatabaseWithoutInternals;
|
|
995
|
+
} ? keyof DatabaseWithoutInternals[PublicCompositeTypeNameOrOptions["schema"]]["CompositeTypes"] : never = never> = PublicCompositeTypeNameOrOptions extends {
|
|
996
|
+
schema: keyof DatabaseWithoutInternals;
|
|
997
|
+
} ? DatabaseWithoutInternals[PublicCompositeTypeNameOrOptions["schema"]]["CompositeTypes"][CompositeTypeName] : PublicCompositeTypeNameOrOptions extends keyof DefaultSchema["CompositeTypes"] ? DefaultSchema["CompositeTypes"][PublicCompositeTypeNameOrOptions] : never;
|
|
823
998
|
export declare const Constants: {
|
|
824
999
|
readonly pgflow: {
|
|
825
1000
|
readonly Enums: {};
|