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