@glissandoo/lib 1.104.19 → 1.104.21
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/models/Evento/types.d.ts +25 -0
- package/models/Evento/types.js +27 -1
- package/package.json +2 -2
- package/types/supabase/generated.d.ts +65 -520
- package/types/supabase/generated.js +0 -6
- package/types/supabase/generated.ts +80 -500
|
@@ -1,30 +1,10 @@
|
|
|
1
1
|
export type Json = string | number | boolean | null | { [key: string]: Json | undefined } | Json[];
|
|
2
2
|
|
|
3
3
|
export type Database = {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
Views: {
|
|
9
|
-
[_ in never]: never;
|
|
10
|
-
};
|
|
11
|
-
Functions: {
|
|
12
|
-
graphql: {
|
|
13
|
-
Args: {
|
|
14
|
-
operationName?: string;
|
|
15
|
-
query?: string;
|
|
16
|
-
variables?: Json;
|
|
17
|
-
extensions?: Json;
|
|
18
|
-
};
|
|
19
|
-
Returns: Json;
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
Enums: {
|
|
23
|
-
[_ in never]: never;
|
|
24
|
-
};
|
|
25
|
-
CompositeTypes: {
|
|
26
|
-
[_ in never]: never;
|
|
27
|
-
};
|
|
4
|
+
// Allows to automatically instantiate createClient with right options
|
|
5
|
+
// instead of createClient<Database, { PostgrestVersion: 'XX' }>(URL, KEY)
|
|
6
|
+
__InternalSupabase: {
|
|
7
|
+
PostgrestVersion: '12.2.3 (519615d)';
|
|
28
8
|
};
|
|
29
9
|
public: {
|
|
30
10
|
Tables: {
|
|
@@ -33,7 +13,7 @@ export type Database = {
|
|
|
33
13
|
activeInvitationLink: boolean;
|
|
34
14
|
coverURL: string | null;
|
|
35
15
|
createdAt: string;
|
|
36
|
-
createdOn: Database['public']['Enums']['created_on'];
|
|
16
|
+
createdOn: Database['public']['Enums']['created_on'] | null;
|
|
37
17
|
datetime: string;
|
|
38
18
|
datetimeEnd: string;
|
|
39
19
|
deletedAt: string | null;
|
|
@@ -79,7 +59,7 @@ export type Database = {
|
|
|
79
59
|
activeInvitationLink: boolean;
|
|
80
60
|
coverURL?: string | null;
|
|
81
61
|
createdAt?: string;
|
|
82
|
-
createdOn
|
|
62
|
+
createdOn?: Database['public']['Enums']['created_on'] | null;
|
|
83
63
|
datetime: string;
|
|
84
64
|
datetimeEnd: string;
|
|
85
65
|
deletedAt?: string | null;
|
|
@@ -125,7 +105,7 @@ export type Database = {
|
|
|
125
105
|
activeInvitationLink?: boolean;
|
|
126
106
|
coverURL?: string | null;
|
|
127
107
|
createdAt?: string;
|
|
128
|
-
createdOn?: Database['public']['Enums']['created_on'];
|
|
108
|
+
createdOn?: Database['public']['Enums']['created_on'] | null;
|
|
129
109
|
datetime?: string;
|
|
130
110
|
datetimeEnd?: string;
|
|
131
111
|
deletedAt?: string | null;
|
|
@@ -177,6 +157,39 @@ export type Database = {
|
|
|
177
157
|
}
|
|
178
158
|
];
|
|
179
159
|
};
|
|
160
|
+
event_history: {
|
|
161
|
+
Row: {
|
|
162
|
+
action: string;
|
|
163
|
+
created_at: string;
|
|
164
|
+
event_id: string;
|
|
165
|
+
group_id: string;
|
|
166
|
+
id: number;
|
|
167
|
+
prev_value: Json | null;
|
|
168
|
+
user_id: string;
|
|
169
|
+
value: Json | null;
|
|
170
|
+
};
|
|
171
|
+
Insert: {
|
|
172
|
+
action: string;
|
|
173
|
+
created_at: string;
|
|
174
|
+
event_id: string;
|
|
175
|
+
group_id: string;
|
|
176
|
+
id?: number;
|
|
177
|
+
prev_value?: Json | null;
|
|
178
|
+
user_id: string;
|
|
179
|
+
value?: Json | null;
|
|
180
|
+
};
|
|
181
|
+
Update: {
|
|
182
|
+
action?: string;
|
|
183
|
+
created_at?: string;
|
|
184
|
+
event_id?: string;
|
|
185
|
+
group_id?: string;
|
|
186
|
+
id?: number;
|
|
187
|
+
prev_value?: Json | null;
|
|
188
|
+
user_id?: string;
|
|
189
|
+
value?: Json | null;
|
|
190
|
+
};
|
|
191
|
+
Relationships: [];
|
|
192
|
+
};
|
|
180
193
|
group: {
|
|
181
194
|
Row: {
|
|
182
195
|
activeInvitationLink: boolean;
|
|
@@ -411,29 +424,6 @@ export type Database = {
|
|
|
411
424
|
}
|
|
412
425
|
];
|
|
413
426
|
};
|
|
414
|
-
event_history: {
|
|
415
|
-
Row: {
|
|
416
|
-
id: string;
|
|
417
|
-
event_id: string;
|
|
418
|
-
user_id: string;
|
|
419
|
-
group_id: string;
|
|
420
|
-
action: string;
|
|
421
|
-
created_at: string;
|
|
422
|
-
value: Record<string, unknown> | null;
|
|
423
|
-
prev_value: Record<string, unknown> | null;
|
|
424
|
-
};
|
|
425
|
-
Insert: {
|
|
426
|
-
event_id: string;
|
|
427
|
-
user_id: string;
|
|
428
|
-
group_id: string;
|
|
429
|
-
action: string;
|
|
430
|
-
created_at: string;
|
|
431
|
-
value: Record<string, unknown> | null;
|
|
432
|
-
prev_value: Record<string, unknown> | null;
|
|
433
|
-
};
|
|
434
|
-
|
|
435
|
-
Relationships: [];
|
|
436
|
-
};
|
|
437
427
|
};
|
|
438
428
|
Views: {
|
|
439
429
|
[_ in never]: never;
|
|
@@ -458,439 +448,27 @@ export type Database = {
|
|
|
458
448
|
};
|
|
459
449
|
};
|
|
460
450
|
};
|
|
461
|
-
storage: {
|
|
462
|
-
Tables: {
|
|
463
|
-
buckets: {
|
|
464
|
-
Row: {
|
|
465
|
-
allowed_mime_types: string[] | null;
|
|
466
|
-
avif_autodetection: boolean | null;
|
|
467
|
-
created_at: string | null;
|
|
468
|
-
file_size_limit: number | null;
|
|
469
|
-
id: string;
|
|
470
|
-
name: string;
|
|
471
|
-
owner: string | null;
|
|
472
|
-
owner_id: string | null;
|
|
473
|
-
public: boolean | null;
|
|
474
|
-
updated_at: string | null;
|
|
475
|
-
};
|
|
476
|
-
Insert: {
|
|
477
|
-
allowed_mime_types?: string[] | null;
|
|
478
|
-
avif_autodetection?: boolean | null;
|
|
479
|
-
created_at?: string | null;
|
|
480
|
-
file_size_limit?: number | null;
|
|
481
|
-
id: string;
|
|
482
|
-
name: string;
|
|
483
|
-
owner?: string | null;
|
|
484
|
-
owner_id?: string | null;
|
|
485
|
-
public?: boolean | null;
|
|
486
|
-
updated_at?: string | null;
|
|
487
|
-
};
|
|
488
|
-
Update: {
|
|
489
|
-
allowed_mime_types?: string[] | null;
|
|
490
|
-
avif_autodetection?: boolean | null;
|
|
491
|
-
created_at?: string | null;
|
|
492
|
-
file_size_limit?: number | null;
|
|
493
|
-
id?: string;
|
|
494
|
-
name?: string;
|
|
495
|
-
owner?: string | null;
|
|
496
|
-
owner_id?: string | null;
|
|
497
|
-
public?: boolean | null;
|
|
498
|
-
updated_at?: string | null;
|
|
499
|
-
};
|
|
500
|
-
Relationships: [];
|
|
501
|
-
};
|
|
502
|
-
migrations: {
|
|
503
|
-
Row: {
|
|
504
|
-
executed_at: string | null;
|
|
505
|
-
hash: string;
|
|
506
|
-
id: number;
|
|
507
|
-
name: string;
|
|
508
|
-
};
|
|
509
|
-
Insert: {
|
|
510
|
-
executed_at?: string | null;
|
|
511
|
-
hash: string;
|
|
512
|
-
id: number;
|
|
513
|
-
name: string;
|
|
514
|
-
};
|
|
515
|
-
Update: {
|
|
516
|
-
executed_at?: string | null;
|
|
517
|
-
hash?: string;
|
|
518
|
-
id?: number;
|
|
519
|
-
name?: string;
|
|
520
|
-
};
|
|
521
|
-
Relationships: [];
|
|
522
|
-
};
|
|
523
|
-
objects: {
|
|
524
|
-
Row: {
|
|
525
|
-
bucket_id: string | null;
|
|
526
|
-
created_at: string | null;
|
|
527
|
-
id: string;
|
|
528
|
-
last_accessed_at: string | null;
|
|
529
|
-
level: number | null;
|
|
530
|
-
metadata: Json | null;
|
|
531
|
-
name: string | null;
|
|
532
|
-
owner: string | null;
|
|
533
|
-
owner_id: string | null;
|
|
534
|
-
path_tokens: string[] | null;
|
|
535
|
-
updated_at: string | null;
|
|
536
|
-
user_metadata: Json | null;
|
|
537
|
-
version: string | null;
|
|
538
|
-
};
|
|
539
|
-
Insert: {
|
|
540
|
-
bucket_id?: string | null;
|
|
541
|
-
created_at?: string | null;
|
|
542
|
-
id?: string;
|
|
543
|
-
last_accessed_at?: string | null;
|
|
544
|
-
level?: number | null;
|
|
545
|
-
metadata?: Json | null;
|
|
546
|
-
name?: string | null;
|
|
547
|
-
owner?: string | null;
|
|
548
|
-
owner_id?: string | null;
|
|
549
|
-
path_tokens?: string[] | null;
|
|
550
|
-
updated_at?: string | null;
|
|
551
|
-
user_metadata?: Json | null;
|
|
552
|
-
version?: string | null;
|
|
553
|
-
};
|
|
554
|
-
Update: {
|
|
555
|
-
bucket_id?: string | null;
|
|
556
|
-
created_at?: string | null;
|
|
557
|
-
id?: string;
|
|
558
|
-
last_accessed_at?: string | null;
|
|
559
|
-
level?: number | null;
|
|
560
|
-
metadata?: Json | null;
|
|
561
|
-
name?: string | null;
|
|
562
|
-
owner?: string | null;
|
|
563
|
-
owner_id?: string | null;
|
|
564
|
-
path_tokens?: string[] | null;
|
|
565
|
-
updated_at?: string | null;
|
|
566
|
-
user_metadata?: Json | null;
|
|
567
|
-
version?: string | null;
|
|
568
|
-
};
|
|
569
|
-
Relationships: [
|
|
570
|
-
{
|
|
571
|
-
foreignKeyName: 'objects_bucketId_fkey';
|
|
572
|
-
columns: ['bucket_id'];
|
|
573
|
-
isOneToOne: false;
|
|
574
|
-
referencedRelation: 'buckets';
|
|
575
|
-
referencedColumns: ['id'];
|
|
576
|
-
}
|
|
577
|
-
];
|
|
578
|
-
};
|
|
579
|
-
prefixes: {
|
|
580
|
-
Row: {
|
|
581
|
-
bucket_id: string;
|
|
582
|
-
created_at: string | null;
|
|
583
|
-
level: number;
|
|
584
|
-
name: string;
|
|
585
|
-
updated_at: string | null;
|
|
586
|
-
};
|
|
587
|
-
Insert: {
|
|
588
|
-
bucket_id: string;
|
|
589
|
-
created_at?: string | null;
|
|
590
|
-
level?: number;
|
|
591
|
-
name: string;
|
|
592
|
-
updated_at?: string | null;
|
|
593
|
-
};
|
|
594
|
-
Update: {
|
|
595
|
-
bucket_id?: string;
|
|
596
|
-
created_at?: string | null;
|
|
597
|
-
level?: number;
|
|
598
|
-
name?: string;
|
|
599
|
-
updated_at?: string | null;
|
|
600
|
-
};
|
|
601
|
-
Relationships: [
|
|
602
|
-
{
|
|
603
|
-
foreignKeyName: 'prefixes_bucketId_fkey';
|
|
604
|
-
columns: ['bucket_id'];
|
|
605
|
-
isOneToOne: false;
|
|
606
|
-
referencedRelation: 'buckets';
|
|
607
|
-
referencedColumns: ['id'];
|
|
608
|
-
}
|
|
609
|
-
];
|
|
610
|
-
};
|
|
611
|
-
s3_multipart_uploads: {
|
|
612
|
-
Row: {
|
|
613
|
-
bucket_id: string;
|
|
614
|
-
created_at: string;
|
|
615
|
-
id: string;
|
|
616
|
-
in_progress_size: number;
|
|
617
|
-
key: string;
|
|
618
|
-
owner_id: string | null;
|
|
619
|
-
upload_signature: string;
|
|
620
|
-
user_metadata: Json | null;
|
|
621
|
-
version: string;
|
|
622
|
-
};
|
|
623
|
-
Insert: {
|
|
624
|
-
bucket_id: string;
|
|
625
|
-
created_at?: string;
|
|
626
|
-
id: string;
|
|
627
|
-
in_progress_size?: number;
|
|
628
|
-
key: string;
|
|
629
|
-
owner_id?: string | null;
|
|
630
|
-
upload_signature: string;
|
|
631
|
-
user_metadata?: Json | null;
|
|
632
|
-
version: string;
|
|
633
|
-
};
|
|
634
|
-
Update: {
|
|
635
|
-
bucket_id?: string;
|
|
636
|
-
created_at?: string;
|
|
637
|
-
id?: string;
|
|
638
|
-
in_progress_size?: number;
|
|
639
|
-
key?: string;
|
|
640
|
-
owner_id?: string | null;
|
|
641
|
-
upload_signature?: string;
|
|
642
|
-
user_metadata?: Json | null;
|
|
643
|
-
version?: string;
|
|
644
|
-
};
|
|
645
|
-
Relationships: [
|
|
646
|
-
{
|
|
647
|
-
foreignKeyName: 's3_multipart_uploads_bucket_id_fkey';
|
|
648
|
-
columns: ['bucket_id'];
|
|
649
|
-
isOneToOne: false;
|
|
650
|
-
referencedRelation: 'buckets';
|
|
651
|
-
referencedColumns: ['id'];
|
|
652
|
-
}
|
|
653
|
-
];
|
|
654
|
-
};
|
|
655
|
-
s3_multipart_uploads_parts: {
|
|
656
|
-
Row: {
|
|
657
|
-
bucket_id: string;
|
|
658
|
-
created_at: string;
|
|
659
|
-
etag: string;
|
|
660
|
-
id: string;
|
|
661
|
-
key: string;
|
|
662
|
-
owner_id: string | null;
|
|
663
|
-
part_number: number;
|
|
664
|
-
size: number;
|
|
665
|
-
upload_id: string;
|
|
666
|
-
version: string;
|
|
667
|
-
};
|
|
668
|
-
Insert: {
|
|
669
|
-
bucket_id: string;
|
|
670
|
-
created_at?: string;
|
|
671
|
-
etag: string;
|
|
672
|
-
id?: string;
|
|
673
|
-
key: string;
|
|
674
|
-
owner_id?: string | null;
|
|
675
|
-
part_number: number;
|
|
676
|
-
size?: number;
|
|
677
|
-
upload_id: string;
|
|
678
|
-
version: string;
|
|
679
|
-
};
|
|
680
|
-
Update: {
|
|
681
|
-
bucket_id?: string;
|
|
682
|
-
created_at?: string;
|
|
683
|
-
etag?: string;
|
|
684
|
-
id?: string;
|
|
685
|
-
key?: string;
|
|
686
|
-
owner_id?: string | null;
|
|
687
|
-
part_number?: number;
|
|
688
|
-
size?: number;
|
|
689
|
-
upload_id?: string;
|
|
690
|
-
version?: string;
|
|
691
|
-
};
|
|
692
|
-
Relationships: [
|
|
693
|
-
{
|
|
694
|
-
foreignKeyName: 's3_multipart_uploads_parts_bucket_id_fkey';
|
|
695
|
-
columns: ['bucket_id'];
|
|
696
|
-
isOneToOne: false;
|
|
697
|
-
referencedRelation: 'buckets';
|
|
698
|
-
referencedColumns: ['id'];
|
|
699
|
-
},
|
|
700
|
-
{
|
|
701
|
-
foreignKeyName: 's3_multipart_uploads_parts_upload_id_fkey';
|
|
702
|
-
columns: ['upload_id'];
|
|
703
|
-
isOneToOne: false;
|
|
704
|
-
referencedRelation: 's3_multipart_uploads';
|
|
705
|
-
referencedColumns: ['id'];
|
|
706
|
-
}
|
|
707
|
-
];
|
|
708
|
-
};
|
|
709
|
-
};
|
|
710
|
-
Views: {
|
|
711
|
-
[_ in never]: never;
|
|
712
|
-
};
|
|
713
|
-
Functions: {
|
|
714
|
-
add_prefixes: {
|
|
715
|
-
Args: { _bucket_id: string; _name: string };
|
|
716
|
-
Returns: undefined;
|
|
717
|
-
};
|
|
718
|
-
can_insert_object: {
|
|
719
|
-
Args: { bucketid: string; name: string; owner: string; metadata: Json };
|
|
720
|
-
Returns: undefined;
|
|
721
|
-
};
|
|
722
|
-
delete_prefix: {
|
|
723
|
-
Args: { _bucket_id: string; _name: string };
|
|
724
|
-
Returns: boolean;
|
|
725
|
-
};
|
|
726
|
-
extension: {
|
|
727
|
-
Args: { name: string };
|
|
728
|
-
Returns: string;
|
|
729
|
-
};
|
|
730
|
-
filename: {
|
|
731
|
-
Args: { name: string };
|
|
732
|
-
Returns: string;
|
|
733
|
-
};
|
|
734
|
-
foldername: {
|
|
735
|
-
Args: { name: string };
|
|
736
|
-
Returns: string[];
|
|
737
|
-
};
|
|
738
|
-
get_level: {
|
|
739
|
-
Args: { name: string };
|
|
740
|
-
Returns: number;
|
|
741
|
-
};
|
|
742
|
-
get_prefix: {
|
|
743
|
-
Args: { name: string };
|
|
744
|
-
Returns: string;
|
|
745
|
-
};
|
|
746
|
-
get_prefixes: {
|
|
747
|
-
Args: { name: string };
|
|
748
|
-
Returns: string[];
|
|
749
|
-
};
|
|
750
|
-
get_size_by_bucket: {
|
|
751
|
-
Args: Record<PropertyKey, never>;
|
|
752
|
-
Returns: {
|
|
753
|
-
size: number;
|
|
754
|
-
bucket_id: string;
|
|
755
|
-
}[];
|
|
756
|
-
};
|
|
757
|
-
list_multipart_uploads_with_delimiter: {
|
|
758
|
-
Args: {
|
|
759
|
-
bucket_id: string;
|
|
760
|
-
prefix_param: string;
|
|
761
|
-
delimiter_param: string;
|
|
762
|
-
max_keys?: number;
|
|
763
|
-
next_key_token?: string;
|
|
764
|
-
next_upload_token?: string;
|
|
765
|
-
};
|
|
766
|
-
Returns: {
|
|
767
|
-
key: string;
|
|
768
|
-
id: string;
|
|
769
|
-
created_at: string;
|
|
770
|
-
}[];
|
|
771
|
-
};
|
|
772
|
-
list_objects_with_delimiter: {
|
|
773
|
-
Args: {
|
|
774
|
-
bucket_id: string;
|
|
775
|
-
prefix_param: string;
|
|
776
|
-
delimiter_param: string;
|
|
777
|
-
max_keys?: number;
|
|
778
|
-
start_after?: string;
|
|
779
|
-
next_token?: string;
|
|
780
|
-
};
|
|
781
|
-
Returns: {
|
|
782
|
-
name: string;
|
|
783
|
-
id: string;
|
|
784
|
-
metadata: Json;
|
|
785
|
-
updated_at: string;
|
|
786
|
-
}[];
|
|
787
|
-
};
|
|
788
|
-
operation: {
|
|
789
|
-
Args: Record<PropertyKey, never>;
|
|
790
|
-
Returns: string;
|
|
791
|
-
};
|
|
792
|
-
search: {
|
|
793
|
-
Args: {
|
|
794
|
-
prefix: string;
|
|
795
|
-
bucketname: string;
|
|
796
|
-
limits?: number;
|
|
797
|
-
levels?: number;
|
|
798
|
-
offsets?: number;
|
|
799
|
-
search?: string;
|
|
800
|
-
sortcolumn?: string;
|
|
801
|
-
sortorder?: string;
|
|
802
|
-
};
|
|
803
|
-
Returns: {
|
|
804
|
-
name: string;
|
|
805
|
-
id: string;
|
|
806
|
-
updated_at: string;
|
|
807
|
-
created_at: string;
|
|
808
|
-
last_accessed_at: string;
|
|
809
|
-
metadata: Json;
|
|
810
|
-
}[];
|
|
811
|
-
};
|
|
812
|
-
search_legacy_v1: {
|
|
813
|
-
Args: {
|
|
814
|
-
prefix: string;
|
|
815
|
-
bucketname: string;
|
|
816
|
-
limits?: number;
|
|
817
|
-
levels?: number;
|
|
818
|
-
offsets?: number;
|
|
819
|
-
search?: string;
|
|
820
|
-
sortcolumn?: string;
|
|
821
|
-
sortorder?: string;
|
|
822
|
-
};
|
|
823
|
-
Returns: {
|
|
824
|
-
name: string;
|
|
825
|
-
id: string;
|
|
826
|
-
updated_at: string;
|
|
827
|
-
created_at: string;
|
|
828
|
-
last_accessed_at: string;
|
|
829
|
-
metadata: Json;
|
|
830
|
-
}[];
|
|
831
|
-
};
|
|
832
|
-
search_v1_optimised: {
|
|
833
|
-
Args: {
|
|
834
|
-
prefix: string;
|
|
835
|
-
bucketname: string;
|
|
836
|
-
limits?: number;
|
|
837
|
-
levels?: number;
|
|
838
|
-
offsets?: number;
|
|
839
|
-
search?: string;
|
|
840
|
-
sortcolumn?: string;
|
|
841
|
-
sortorder?: string;
|
|
842
|
-
};
|
|
843
|
-
Returns: {
|
|
844
|
-
name: string;
|
|
845
|
-
id: string;
|
|
846
|
-
updated_at: string;
|
|
847
|
-
created_at: string;
|
|
848
|
-
last_accessed_at: string;
|
|
849
|
-
metadata: Json;
|
|
850
|
-
}[];
|
|
851
|
-
};
|
|
852
|
-
search_v2: {
|
|
853
|
-
Args: {
|
|
854
|
-
prefix: string;
|
|
855
|
-
bucket_name: string;
|
|
856
|
-
limits?: number;
|
|
857
|
-
levels?: number;
|
|
858
|
-
start_after?: string;
|
|
859
|
-
};
|
|
860
|
-
Returns: {
|
|
861
|
-
key: string;
|
|
862
|
-
name: string;
|
|
863
|
-
id: string;
|
|
864
|
-
updated_at: string;
|
|
865
|
-
created_at: string;
|
|
866
|
-
metadata: Json;
|
|
867
|
-
}[];
|
|
868
|
-
};
|
|
869
|
-
};
|
|
870
|
-
Enums: {
|
|
871
|
-
[_ in never]: never;
|
|
872
|
-
};
|
|
873
|
-
CompositeTypes: {
|
|
874
|
-
[_ in never]: never;
|
|
875
|
-
};
|
|
876
|
-
};
|
|
877
451
|
};
|
|
878
452
|
|
|
879
|
-
type
|
|
453
|
+
type DatabaseWithoutInternals = Omit<Database, '__InternalSupabase'>;
|
|
454
|
+
|
|
455
|
+
type DefaultSchema = DatabaseWithoutInternals[Extract<keyof Database, 'public'>];
|
|
880
456
|
|
|
881
457
|
export type Tables<
|
|
882
458
|
DefaultSchemaTableNameOrOptions extends
|
|
883
459
|
| keyof (DefaultSchema['Tables'] & DefaultSchema['Views'])
|
|
884
|
-
| { schema: keyof
|
|
460
|
+
| { schema: keyof DatabaseWithoutInternals },
|
|
885
461
|
TableName extends DefaultSchemaTableNameOrOptions extends {
|
|
886
|
-
schema: keyof
|
|
462
|
+
schema: keyof DatabaseWithoutInternals;
|
|
887
463
|
}
|
|
888
|
-
? keyof (
|
|
889
|
-
|
|
464
|
+
? keyof (DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions['schema']]['Tables'] &
|
|
465
|
+
DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions['schema']]['Views'])
|
|
890
466
|
: never = never
|
|
891
|
-
> = DefaultSchemaTableNameOrOptions extends {
|
|
892
|
-
|
|
893
|
-
|
|
467
|
+
> = DefaultSchemaTableNameOrOptions extends {
|
|
468
|
+
schema: keyof DatabaseWithoutInternals;
|
|
469
|
+
}
|
|
470
|
+
? (DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions['schema']]['Tables'] &
|
|
471
|
+
DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions['schema']]['Views'])[TableName] extends {
|
|
894
472
|
Row: infer R;
|
|
895
473
|
}
|
|
896
474
|
? R
|
|
@@ -907,14 +485,16 @@ export type Tables<
|
|
|
907
485
|
export type TablesInsert<
|
|
908
486
|
DefaultSchemaTableNameOrOptions extends
|
|
909
487
|
| keyof DefaultSchema['Tables']
|
|
910
|
-
| { schema: keyof
|
|
488
|
+
| { schema: keyof DatabaseWithoutInternals },
|
|
911
489
|
TableName extends DefaultSchemaTableNameOrOptions extends {
|
|
912
|
-
schema: keyof
|
|
490
|
+
schema: keyof DatabaseWithoutInternals;
|
|
913
491
|
}
|
|
914
|
-
? keyof
|
|
492
|
+
? keyof DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions['schema']]['Tables']
|
|
915
493
|
: never = never
|
|
916
|
-
> = DefaultSchemaTableNameOrOptions extends {
|
|
917
|
-
|
|
494
|
+
> = DefaultSchemaTableNameOrOptions extends {
|
|
495
|
+
schema: keyof DatabaseWithoutInternals;
|
|
496
|
+
}
|
|
497
|
+
? DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions['schema']]['Tables'][TableName] extends {
|
|
918
498
|
Insert: infer I;
|
|
919
499
|
}
|
|
920
500
|
? I
|
|
@@ -930,14 +510,16 @@ export type TablesInsert<
|
|
|
930
510
|
export type TablesUpdate<
|
|
931
511
|
DefaultSchemaTableNameOrOptions extends
|
|
932
512
|
| keyof DefaultSchema['Tables']
|
|
933
|
-
| { schema: keyof
|
|
513
|
+
| { schema: keyof DatabaseWithoutInternals },
|
|
934
514
|
TableName extends DefaultSchemaTableNameOrOptions extends {
|
|
935
|
-
schema: keyof
|
|
515
|
+
schema: keyof DatabaseWithoutInternals;
|
|
936
516
|
}
|
|
937
|
-
? keyof
|
|
517
|
+
? keyof DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions['schema']]['Tables']
|
|
938
518
|
: never = never
|
|
939
|
-
> = DefaultSchemaTableNameOrOptions extends {
|
|
940
|
-
|
|
519
|
+
> = DefaultSchemaTableNameOrOptions extends {
|
|
520
|
+
schema: keyof DatabaseWithoutInternals;
|
|
521
|
+
}
|
|
522
|
+
? DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions['schema']]['Tables'][TableName] extends {
|
|
941
523
|
Update: infer U;
|
|
942
524
|
}
|
|
943
525
|
? U
|
|
@@ -953,14 +535,16 @@ export type TablesUpdate<
|
|
|
953
535
|
export type Enums<
|
|
954
536
|
DefaultSchemaEnumNameOrOptions extends
|
|
955
537
|
| keyof DefaultSchema['Enums']
|
|
956
|
-
| { schema: keyof
|
|
538
|
+
| { schema: keyof DatabaseWithoutInternals },
|
|
957
539
|
EnumName extends DefaultSchemaEnumNameOrOptions extends {
|
|
958
|
-
schema: keyof
|
|
540
|
+
schema: keyof DatabaseWithoutInternals;
|
|
959
541
|
}
|
|
960
|
-
? keyof
|
|
542
|
+
? keyof DatabaseWithoutInternals[DefaultSchemaEnumNameOrOptions['schema']]['Enums']
|
|
961
543
|
: never = never
|
|
962
|
-
> = DefaultSchemaEnumNameOrOptions extends {
|
|
963
|
-
|
|
544
|
+
> = DefaultSchemaEnumNameOrOptions extends {
|
|
545
|
+
schema: keyof DatabaseWithoutInternals;
|
|
546
|
+
}
|
|
547
|
+
? DatabaseWithoutInternals[DefaultSchemaEnumNameOrOptions['schema']]['Enums'][EnumName]
|
|
964
548
|
: DefaultSchemaEnumNameOrOptions extends keyof DefaultSchema['Enums']
|
|
965
549
|
? DefaultSchema['Enums'][DefaultSchemaEnumNameOrOptions]
|
|
966
550
|
: never;
|
|
@@ -968,22 +552,21 @@ export type Enums<
|
|
|
968
552
|
export type CompositeTypes<
|
|
969
553
|
PublicCompositeTypeNameOrOptions extends
|
|
970
554
|
| keyof DefaultSchema['CompositeTypes']
|
|
971
|
-
| { schema: keyof
|
|
555
|
+
| { schema: keyof DatabaseWithoutInternals },
|
|
972
556
|
CompositeTypeName extends PublicCompositeTypeNameOrOptions extends {
|
|
973
|
-
schema: keyof
|
|
557
|
+
schema: keyof DatabaseWithoutInternals;
|
|
974
558
|
}
|
|
975
|
-
? keyof
|
|
559
|
+
? keyof DatabaseWithoutInternals[PublicCompositeTypeNameOrOptions['schema']]['CompositeTypes']
|
|
976
560
|
: never = never
|
|
977
|
-
> = PublicCompositeTypeNameOrOptions extends {
|
|
978
|
-
|
|
561
|
+
> = PublicCompositeTypeNameOrOptions extends {
|
|
562
|
+
schema: keyof DatabaseWithoutInternals;
|
|
563
|
+
}
|
|
564
|
+
? DatabaseWithoutInternals[PublicCompositeTypeNameOrOptions['schema']]['CompositeTypes'][CompositeTypeName]
|
|
979
565
|
: PublicCompositeTypeNameOrOptions extends keyof DefaultSchema['CompositeTypes']
|
|
980
566
|
? DefaultSchema['CompositeTypes'][PublicCompositeTypeNameOrOptions]
|
|
981
567
|
: never;
|
|
982
568
|
|
|
983
569
|
export const Constants = {
|
|
984
|
-
graphql_public: {
|
|
985
|
-
Enums: {},
|
|
986
|
-
},
|
|
987
570
|
public: {
|
|
988
571
|
Enums: {
|
|
989
572
|
created_on: ['app', 'dashboard', 'auth', 'web'],
|
|
@@ -996,7 +579,4 @@ export const Constants = {
|
|
|
996
579
|
social_network: ['facebook', 'twitter', 'instagram', 'youtube'],
|
|
997
580
|
},
|
|
998
581
|
},
|
|
999
|
-
storage: {
|
|
1000
|
-
Enums: {},
|
|
1001
|
-
},
|
|
1002
582
|
} as const;
|