@everylanguage/shared-types 1.0.6 → 1.0.8
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/package.json +5 -1
- package/types/README.md +3 -3
- package/types/database.d.ts +1707 -203
package/types/database.d.ts
CHANGED
|
@@ -2,6 +2,9 @@ export type Json = string | number | boolean | null | {
|
|
|
2
2
|
[key: string]: Json | undefined;
|
|
3
3
|
} | Json[];
|
|
4
4
|
export type Database = {
|
|
5
|
+
__InternalSupabase: {
|
|
6
|
+
PostgrestVersion: "12.2.3 (519615d)";
|
|
7
|
+
};
|
|
5
8
|
graphql_public: {
|
|
6
9
|
Tables: {
|
|
7
10
|
[_ in never]: never;
|
|
@@ -162,6 +165,174 @@ export type Database = {
|
|
|
162
165
|
}
|
|
163
166
|
];
|
|
164
167
|
};
|
|
168
|
+
bible_versions: {
|
|
169
|
+
Row: {
|
|
170
|
+
created_at: string | null;
|
|
171
|
+
id: string;
|
|
172
|
+
name: string;
|
|
173
|
+
structure_notes: string | null;
|
|
174
|
+
updated_at: string | null;
|
|
175
|
+
};
|
|
176
|
+
Insert: {
|
|
177
|
+
created_at?: string | null;
|
|
178
|
+
id: string;
|
|
179
|
+
name: string;
|
|
180
|
+
structure_notes?: string | null;
|
|
181
|
+
updated_at?: string | null;
|
|
182
|
+
};
|
|
183
|
+
Update: {
|
|
184
|
+
created_at?: string | null;
|
|
185
|
+
id?: string;
|
|
186
|
+
name?: string;
|
|
187
|
+
structure_notes?: string | null;
|
|
188
|
+
updated_at?: string | null;
|
|
189
|
+
};
|
|
190
|
+
Relationships: [];
|
|
191
|
+
};
|
|
192
|
+
books: {
|
|
193
|
+
Row: {
|
|
194
|
+
bible_version_id: string;
|
|
195
|
+
book_number: number;
|
|
196
|
+
created_at: string | null;
|
|
197
|
+
global_order: number | null;
|
|
198
|
+
id: string;
|
|
199
|
+
name: string;
|
|
200
|
+
updated_at: string | null;
|
|
201
|
+
};
|
|
202
|
+
Insert: {
|
|
203
|
+
bible_version_id: string;
|
|
204
|
+
book_number: number;
|
|
205
|
+
created_at?: string | null;
|
|
206
|
+
global_order?: number | null;
|
|
207
|
+
id: string;
|
|
208
|
+
name: string;
|
|
209
|
+
updated_at?: string | null;
|
|
210
|
+
};
|
|
211
|
+
Update: {
|
|
212
|
+
bible_version_id?: string;
|
|
213
|
+
book_number?: number;
|
|
214
|
+
created_at?: string | null;
|
|
215
|
+
global_order?: number | null;
|
|
216
|
+
id?: string;
|
|
217
|
+
name?: string;
|
|
218
|
+
updated_at?: string | null;
|
|
219
|
+
};
|
|
220
|
+
Relationships: [
|
|
221
|
+
{
|
|
222
|
+
foreignKeyName: "books_bible_version_id_fkey";
|
|
223
|
+
columns: ["bible_version_id"];
|
|
224
|
+
isOneToOne: false;
|
|
225
|
+
referencedRelation: "bible_versions";
|
|
226
|
+
referencedColumns: ["id"];
|
|
227
|
+
}
|
|
228
|
+
];
|
|
229
|
+
};
|
|
230
|
+
chapter_listens: {
|
|
231
|
+
Row: {
|
|
232
|
+
anon_user_id: string;
|
|
233
|
+
chapter_id: string;
|
|
234
|
+
connectivity: Database["public"]["Enums"]["connectivity_type"] | null;
|
|
235
|
+
created_at: string | null;
|
|
236
|
+
device_id: string;
|
|
237
|
+
id: string;
|
|
238
|
+
language_entity_id: string;
|
|
239
|
+
listened_at: string | null;
|
|
240
|
+
location: unknown | null;
|
|
241
|
+
session_id: string;
|
|
242
|
+
};
|
|
243
|
+
Insert: {
|
|
244
|
+
anon_user_id: string;
|
|
245
|
+
chapter_id: string;
|
|
246
|
+
connectivity?: Database["public"]["Enums"]["connectivity_type"] | null;
|
|
247
|
+
created_at?: string | null;
|
|
248
|
+
device_id: string;
|
|
249
|
+
id?: string;
|
|
250
|
+
language_entity_id: string;
|
|
251
|
+
listened_at?: string | null;
|
|
252
|
+
location?: unknown | null;
|
|
253
|
+
session_id: string;
|
|
254
|
+
};
|
|
255
|
+
Update: {
|
|
256
|
+
anon_user_id?: string;
|
|
257
|
+
chapter_id?: string;
|
|
258
|
+
connectivity?: Database["public"]["Enums"]["connectivity_type"] | null;
|
|
259
|
+
created_at?: string | null;
|
|
260
|
+
device_id?: string;
|
|
261
|
+
id?: string;
|
|
262
|
+
language_entity_id?: string;
|
|
263
|
+
listened_at?: string | null;
|
|
264
|
+
location?: unknown | null;
|
|
265
|
+
session_id?: string;
|
|
266
|
+
};
|
|
267
|
+
Relationships: [
|
|
268
|
+
{
|
|
269
|
+
foreignKeyName: "chapter_listens_anon_user_id_fkey";
|
|
270
|
+
columns: ["anon_user_id"];
|
|
271
|
+
isOneToOne: false;
|
|
272
|
+
referencedRelation: "users_anon";
|
|
273
|
+
referencedColumns: ["id"];
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
foreignKeyName: "chapter_listens_chapter_id_fkey";
|
|
277
|
+
columns: ["chapter_id"];
|
|
278
|
+
isOneToOne: false;
|
|
279
|
+
referencedRelation: "chapters";
|
|
280
|
+
referencedColumns: ["id"];
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
foreignKeyName: "chapter_listens_language_entity_id_fkey";
|
|
284
|
+
columns: ["language_entity_id"];
|
|
285
|
+
isOneToOne: false;
|
|
286
|
+
referencedRelation: "language_entities";
|
|
287
|
+
referencedColumns: ["id"];
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
foreignKeyName: "chapter_listens_session_id_fkey";
|
|
291
|
+
columns: ["session_id"];
|
|
292
|
+
isOneToOne: false;
|
|
293
|
+
referencedRelation: "sessions";
|
|
294
|
+
referencedColumns: ["id"];
|
|
295
|
+
}
|
|
296
|
+
];
|
|
297
|
+
};
|
|
298
|
+
chapters: {
|
|
299
|
+
Row: {
|
|
300
|
+
book_id: string;
|
|
301
|
+
chapter_number: number;
|
|
302
|
+
created_at: string | null;
|
|
303
|
+
global_order: number | null;
|
|
304
|
+
id: string;
|
|
305
|
+
total_verses: number;
|
|
306
|
+
updated_at: string | null;
|
|
307
|
+
};
|
|
308
|
+
Insert: {
|
|
309
|
+
book_id: string;
|
|
310
|
+
chapter_number: number;
|
|
311
|
+
created_at?: string | null;
|
|
312
|
+
global_order?: number | null;
|
|
313
|
+
id: string;
|
|
314
|
+
total_verses: number;
|
|
315
|
+
updated_at?: string | null;
|
|
316
|
+
};
|
|
317
|
+
Update: {
|
|
318
|
+
book_id?: string;
|
|
319
|
+
chapter_number?: number;
|
|
320
|
+
created_at?: string | null;
|
|
321
|
+
global_order?: number | null;
|
|
322
|
+
id?: string;
|
|
323
|
+
total_verses?: number;
|
|
324
|
+
updated_at?: string | null;
|
|
325
|
+
};
|
|
326
|
+
Relationships: [
|
|
327
|
+
{
|
|
328
|
+
foreignKeyName: "chapters_book_id_fkey";
|
|
329
|
+
columns: ["book_id"];
|
|
330
|
+
isOneToOne: false;
|
|
331
|
+
referencedRelation: "books";
|
|
332
|
+
referencedColumns: ["id"];
|
|
333
|
+
}
|
|
334
|
+
];
|
|
335
|
+
};
|
|
165
336
|
language_aliases: {
|
|
166
337
|
Row: {
|
|
167
338
|
alias_name: string;
|
|
@@ -485,6 +656,13 @@ export type Database = {
|
|
|
485
656
|
referencedRelation: "language_entities";
|
|
486
657
|
referencedColumns: ["id"];
|
|
487
658
|
},
|
|
659
|
+
{
|
|
660
|
+
foreignKeyName: "media_file_listens_media_file_id_fkey";
|
|
661
|
+
columns: ["media_file_id"];
|
|
662
|
+
isOneToOne: false;
|
|
663
|
+
referencedRelation: "media_files";
|
|
664
|
+
referencedColumns: ["id"];
|
|
665
|
+
},
|
|
488
666
|
{
|
|
489
667
|
foreignKeyName: "media_file_listens_session_id_fkey";
|
|
490
668
|
columns: ["session_id"];
|
|
@@ -494,135 +672,722 @@ export type Database = {
|
|
|
494
672
|
}
|
|
495
673
|
];
|
|
496
674
|
};
|
|
497
|
-
|
|
675
|
+
media_files: {
|
|
498
676
|
Row: {
|
|
499
|
-
|
|
500
|
-
context_id: string | null;
|
|
501
|
-
context_type: string;
|
|
677
|
+
check_status: Database["public"]["Enums"]["check_status"] | null;
|
|
502
678
|
created_at: string | null;
|
|
503
|
-
|
|
679
|
+
created_by: string | null;
|
|
680
|
+
deleted_at: string | null;
|
|
681
|
+
duration_seconds: number | null;
|
|
682
|
+
end_verse_id: string | null;
|
|
683
|
+
file_size: number | null;
|
|
504
684
|
id: string;
|
|
505
|
-
|
|
685
|
+
is_bible_audio: boolean | null;
|
|
686
|
+
language_entity_id: string;
|
|
687
|
+
local_path: string | null;
|
|
688
|
+
media_type: Database["public"]["Enums"]["media_type"];
|
|
689
|
+
project_id: string | null;
|
|
690
|
+
publish_status: Database["public"]["Enums"]["publish_status"] | null;
|
|
691
|
+
remote_path: string | null;
|
|
692
|
+
start_verse_id: string | null;
|
|
506
693
|
updated_at: string | null;
|
|
694
|
+
upload_status: Database["public"]["Enums"]["upload_status"] | null;
|
|
695
|
+
version: number | null;
|
|
507
696
|
};
|
|
508
697
|
Insert: {
|
|
509
|
-
|
|
510
|
-
context_id?: string | null;
|
|
511
|
-
context_type: string;
|
|
698
|
+
check_status?: Database["public"]["Enums"]["check_status"] | null;
|
|
512
699
|
created_at?: string | null;
|
|
513
|
-
|
|
700
|
+
created_by?: string | null;
|
|
701
|
+
deleted_at?: string | null;
|
|
702
|
+
duration_seconds?: number | null;
|
|
703
|
+
end_verse_id?: string | null;
|
|
704
|
+
file_size?: number | null;
|
|
514
705
|
id?: string;
|
|
515
|
-
|
|
706
|
+
is_bible_audio?: boolean | null;
|
|
707
|
+
language_entity_id: string;
|
|
708
|
+
local_path?: string | null;
|
|
709
|
+
media_type: Database["public"]["Enums"]["media_type"];
|
|
710
|
+
project_id?: string | null;
|
|
711
|
+
publish_status?: Database["public"]["Enums"]["publish_status"] | null;
|
|
712
|
+
remote_path?: string | null;
|
|
713
|
+
start_verse_id?: string | null;
|
|
516
714
|
updated_at?: string | null;
|
|
715
|
+
upload_status?: Database["public"]["Enums"]["upload_status"] | null;
|
|
716
|
+
version?: number | null;
|
|
517
717
|
};
|
|
518
718
|
Update: {
|
|
519
|
-
|
|
520
|
-
context_id?: string | null;
|
|
521
|
-
context_type?: string;
|
|
719
|
+
check_status?: Database["public"]["Enums"]["check_status"] | null;
|
|
522
720
|
created_at?: string | null;
|
|
523
|
-
|
|
721
|
+
created_by?: string | null;
|
|
722
|
+
deleted_at?: string | null;
|
|
723
|
+
duration_seconds?: number | null;
|
|
724
|
+
end_verse_id?: string | null;
|
|
725
|
+
file_size?: number | null;
|
|
524
726
|
id?: string;
|
|
525
|
-
|
|
727
|
+
is_bible_audio?: boolean | null;
|
|
728
|
+
language_entity_id?: string;
|
|
729
|
+
local_path?: string | null;
|
|
730
|
+
media_type?: Database["public"]["Enums"]["media_type"];
|
|
731
|
+
project_id?: string | null;
|
|
732
|
+
publish_status?: Database["public"]["Enums"]["publish_status"] | null;
|
|
733
|
+
remote_path?: string | null;
|
|
734
|
+
start_verse_id?: string | null;
|
|
526
735
|
updated_at?: string | null;
|
|
736
|
+
upload_status?: Database["public"]["Enums"]["upload_status"] | null;
|
|
737
|
+
version?: number | null;
|
|
527
738
|
};
|
|
528
739
|
Relationships: [
|
|
529
740
|
{
|
|
530
|
-
foreignKeyName: "
|
|
531
|
-
columns: ["
|
|
741
|
+
foreignKeyName: "media_files_created_by_fkey";
|
|
742
|
+
columns: ["created_by"];
|
|
532
743
|
isOneToOne: false;
|
|
533
|
-
referencedRelation: "
|
|
744
|
+
referencedRelation: "users";
|
|
745
|
+
referencedColumns: ["id"];
|
|
746
|
+
},
|
|
747
|
+
{
|
|
748
|
+
foreignKeyName: "media_files_end_verse_id_fkey";
|
|
749
|
+
columns: ["end_verse_id"];
|
|
750
|
+
isOneToOne: false;
|
|
751
|
+
referencedRelation: "verses";
|
|
752
|
+
referencedColumns: ["id"];
|
|
753
|
+
},
|
|
754
|
+
{
|
|
755
|
+
foreignKeyName: "media_files_language_entity_id_fkey";
|
|
756
|
+
columns: ["language_entity_id"];
|
|
757
|
+
isOneToOne: false;
|
|
758
|
+
referencedRelation: "language_entities";
|
|
759
|
+
referencedColumns: ["id"];
|
|
760
|
+
},
|
|
761
|
+
{
|
|
762
|
+
foreignKeyName: "media_files_project_id_fkey";
|
|
763
|
+
columns: ["project_id"];
|
|
764
|
+
isOneToOne: false;
|
|
765
|
+
referencedRelation: "projects";
|
|
766
|
+
referencedColumns: ["id"];
|
|
767
|
+
},
|
|
768
|
+
{
|
|
769
|
+
foreignKeyName: "media_files_start_verse_id_fkey";
|
|
770
|
+
columns: ["start_verse_id"];
|
|
771
|
+
isOneToOne: false;
|
|
772
|
+
referencedRelation: "verses";
|
|
534
773
|
referencedColumns: ["id"];
|
|
535
774
|
}
|
|
536
775
|
];
|
|
537
776
|
};
|
|
538
|
-
|
|
777
|
+
media_files_tags: {
|
|
539
778
|
Row: {
|
|
540
|
-
alias_name: string;
|
|
541
779
|
created_at: string | null;
|
|
542
|
-
|
|
780
|
+
created_by: string | null;
|
|
543
781
|
id: string;
|
|
544
|
-
|
|
782
|
+
media_file_id: string;
|
|
783
|
+
tag_id: string;
|
|
784
|
+
updated_at: string | null;
|
|
545
785
|
};
|
|
546
786
|
Insert: {
|
|
547
|
-
alias_name: string;
|
|
548
787
|
created_at?: string | null;
|
|
549
|
-
|
|
788
|
+
created_by?: string | null;
|
|
550
789
|
id?: string;
|
|
551
|
-
|
|
790
|
+
media_file_id: string;
|
|
791
|
+
tag_id: string;
|
|
792
|
+
updated_at?: string | null;
|
|
552
793
|
};
|
|
553
794
|
Update: {
|
|
554
|
-
alias_name?: string;
|
|
555
795
|
created_at?: string | null;
|
|
556
|
-
|
|
796
|
+
created_by?: string | null;
|
|
557
797
|
id?: string;
|
|
558
|
-
|
|
798
|
+
media_file_id?: string;
|
|
799
|
+
tag_id?: string;
|
|
800
|
+
updated_at?: string | null;
|
|
559
801
|
};
|
|
560
802
|
Relationships: [
|
|
561
803
|
{
|
|
562
|
-
foreignKeyName: "
|
|
563
|
-
columns: ["
|
|
804
|
+
foreignKeyName: "media_files_tags_created_by_fkey";
|
|
805
|
+
columns: ["created_by"];
|
|
564
806
|
isOneToOne: false;
|
|
565
|
-
referencedRelation: "
|
|
807
|
+
referencedRelation: "users";
|
|
808
|
+
referencedColumns: ["id"];
|
|
809
|
+
},
|
|
810
|
+
{
|
|
811
|
+
foreignKeyName: "media_files_tags_media_file_id_fkey";
|
|
812
|
+
columns: ["media_file_id"];
|
|
813
|
+
isOneToOne: false;
|
|
814
|
+
referencedRelation: "media_files";
|
|
815
|
+
referencedColumns: ["id"];
|
|
816
|
+
},
|
|
817
|
+
{
|
|
818
|
+
foreignKeyName: "media_files_tags_tag_id_fkey";
|
|
819
|
+
columns: ["tag_id"];
|
|
820
|
+
isOneToOne: false;
|
|
821
|
+
referencedRelation: "tags";
|
|
566
822
|
referencedColumns: ["id"];
|
|
567
823
|
}
|
|
568
824
|
];
|
|
569
825
|
};
|
|
570
|
-
|
|
826
|
+
media_files_targets: {
|
|
571
827
|
Row: {
|
|
572
828
|
created_at: string | null;
|
|
829
|
+
created_by: string | null;
|
|
573
830
|
deleted_at: string | null;
|
|
574
831
|
id: string;
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
832
|
+
media_file_id: string;
|
|
833
|
+
target_id: string;
|
|
834
|
+
target_type: Database["public"]["Enums"]["target_type"];
|
|
835
|
+
updated_at: string | null;
|
|
578
836
|
};
|
|
579
837
|
Insert: {
|
|
580
838
|
created_at?: string | null;
|
|
839
|
+
created_by?: string | null;
|
|
581
840
|
deleted_at?: string | null;
|
|
582
841
|
id?: string;
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
842
|
+
media_file_id: string;
|
|
843
|
+
target_id: string;
|
|
844
|
+
target_type: Database["public"]["Enums"]["target_type"];
|
|
845
|
+
updated_at?: string | null;
|
|
586
846
|
};
|
|
587
847
|
Update: {
|
|
588
848
|
created_at?: string | null;
|
|
849
|
+
created_by?: string | null;
|
|
589
850
|
deleted_at?: string | null;
|
|
590
851
|
id?: string;
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
852
|
+
media_file_id?: string;
|
|
853
|
+
target_id?: string;
|
|
854
|
+
target_type?: Database["public"]["Enums"]["target_type"];
|
|
855
|
+
updated_at?: string | null;
|
|
594
856
|
};
|
|
595
857
|
Relationships: [
|
|
596
858
|
{
|
|
597
|
-
foreignKeyName: "
|
|
598
|
-
columns: ["
|
|
859
|
+
foreignKeyName: "media_files_targets_created_by_fkey";
|
|
860
|
+
columns: ["created_by"];
|
|
599
861
|
isOneToOne: false;
|
|
600
|
-
referencedRelation: "
|
|
862
|
+
referencedRelation: "users";
|
|
863
|
+
referencedColumns: ["id"];
|
|
864
|
+
},
|
|
865
|
+
{
|
|
866
|
+
foreignKeyName: "media_files_targets_media_file_id_fkey";
|
|
867
|
+
columns: ["media_file_id"];
|
|
868
|
+
isOneToOne: false;
|
|
869
|
+
referencedRelation: "media_files";
|
|
601
870
|
referencedColumns: ["id"];
|
|
602
871
|
}
|
|
603
872
|
];
|
|
604
873
|
};
|
|
605
|
-
|
|
874
|
+
media_files_verses: {
|
|
606
875
|
Row: {
|
|
607
876
|
created_at: string | null;
|
|
608
877
|
created_by: string | null;
|
|
609
878
|
deleted_at: string | null;
|
|
610
|
-
|
|
879
|
+
duration_seconds: number;
|
|
611
880
|
id: string;
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
881
|
+
media_file_id: string;
|
|
882
|
+
start_time_seconds: number;
|
|
883
|
+
updated_at: string | null;
|
|
884
|
+
verse_id: string;
|
|
885
|
+
verse_text_id: string | null;
|
|
616
886
|
};
|
|
617
887
|
Insert: {
|
|
618
888
|
created_at?: string | null;
|
|
619
889
|
created_by?: string | null;
|
|
620
890
|
deleted_at?: string | null;
|
|
621
|
-
|
|
891
|
+
duration_seconds: number;
|
|
622
892
|
id?: string;
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
893
|
+
media_file_id: string;
|
|
894
|
+
start_time_seconds: number;
|
|
895
|
+
updated_at?: string | null;
|
|
896
|
+
verse_id: string;
|
|
897
|
+
verse_text_id?: string | null;
|
|
898
|
+
};
|
|
899
|
+
Update: {
|
|
900
|
+
created_at?: string | null;
|
|
901
|
+
created_by?: string | null;
|
|
902
|
+
deleted_at?: string | null;
|
|
903
|
+
duration_seconds?: number;
|
|
904
|
+
id?: string;
|
|
905
|
+
media_file_id?: string;
|
|
906
|
+
start_time_seconds?: number;
|
|
907
|
+
updated_at?: string | null;
|
|
908
|
+
verse_id?: string;
|
|
909
|
+
verse_text_id?: string | null;
|
|
910
|
+
};
|
|
911
|
+
Relationships: [
|
|
912
|
+
{
|
|
913
|
+
foreignKeyName: "media_files_verses_created_by_fkey";
|
|
914
|
+
columns: ["created_by"];
|
|
915
|
+
isOneToOne: false;
|
|
916
|
+
referencedRelation: "users";
|
|
917
|
+
referencedColumns: ["id"];
|
|
918
|
+
},
|
|
919
|
+
{
|
|
920
|
+
foreignKeyName: "media_files_verses_media_file_id_fkey";
|
|
921
|
+
columns: ["media_file_id"];
|
|
922
|
+
isOneToOne: false;
|
|
923
|
+
referencedRelation: "media_files";
|
|
924
|
+
referencedColumns: ["id"];
|
|
925
|
+
},
|
|
926
|
+
{
|
|
927
|
+
foreignKeyName: "media_files_verses_verse_id_fkey";
|
|
928
|
+
columns: ["verse_id"];
|
|
929
|
+
isOneToOne: false;
|
|
930
|
+
referencedRelation: "verses";
|
|
931
|
+
referencedColumns: ["id"];
|
|
932
|
+
},
|
|
933
|
+
{
|
|
934
|
+
foreignKeyName: "media_files_verses_verse_text_id_fkey";
|
|
935
|
+
columns: ["verse_text_id"];
|
|
936
|
+
isOneToOne: false;
|
|
937
|
+
referencedRelation: "verse_texts";
|
|
938
|
+
referencedColumns: ["id"];
|
|
939
|
+
}
|
|
940
|
+
];
|
|
941
|
+
};
|
|
942
|
+
passages: {
|
|
943
|
+
Row: {
|
|
944
|
+
book_id: string;
|
|
945
|
+
created_at: string | null;
|
|
946
|
+
created_by: string | null;
|
|
947
|
+
end_verse_id: string;
|
|
948
|
+
id: string;
|
|
949
|
+
start_verse_id: string;
|
|
950
|
+
updated_at: string | null;
|
|
951
|
+
};
|
|
952
|
+
Insert: {
|
|
953
|
+
book_id: string;
|
|
954
|
+
created_at?: string | null;
|
|
955
|
+
created_by?: string | null;
|
|
956
|
+
end_verse_id: string;
|
|
957
|
+
id?: string;
|
|
958
|
+
start_verse_id: string;
|
|
959
|
+
updated_at?: string | null;
|
|
960
|
+
};
|
|
961
|
+
Update: {
|
|
962
|
+
book_id?: string;
|
|
963
|
+
created_at?: string | null;
|
|
964
|
+
created_by?: string | null;
|
|
965
|
+
end_verse_id?: string;
|
|
966
|
+
id?: string;
|
|
967
|
+
start_verse_id?: string;
|
|
968
|
+
updated_at?: string | null;
|
|
969
|
+
};
|
|
970
|
+
Relationships: [
|
|
971
|
+
{
|
|
972
|
+
foreignKeyName: "passages_book_id_fkey";
|
|
973
|
+
columns: ["book_id"];
|
|
974
|
+
isOneToOne: false;
|
|
975
|
+
referencedRelation: "books";
|
|
976
|
+
referencedColumns: ["id"];
|
|
977
|
+
},
|
|
978
|
+
{
|
|
979
|
+
foreignKeyName: "passages_created_by_fkey";
|
|
980
|
+
columns: ["created_by"];
|
|
981
|
+
isOneToOne: false;
|
|
982
|
+
referencedRelation: "users";
|
|
983
|
+
referencedColumns: ["id"];
|
|
984
|
+
},
|
|
985
|
+
{
|
|
986
|
+
foreignKeyName: "passages_end_verse_id_fkey";
|
|
987
|
+
columns: ["end_verse_id"];
|
|
988
|
+
isOneToOne: false;
|
|
989
|
+
referencedRelation: "verses";
|
|
990
|
+
referencedColumns: ["id"];
|
|
991
|
+
},
|
|
992
|
+
{
|
|
993
|
+
foreignKeyName: "passages_start_verse_id_fkey";
|
|
994
|
+
columns: ["start_verse_id"];
|
|
995
|
+
isOneToOne: false;
|
|
996
|
+
referencedRelation: "verses";
|
|
997
|
+
referencedColumns: ["id"];
|
|
998
|
+
}
|
|
999
|
+
];
|
|
1000
|
+
};
|
|
1001
|
+
permissions: {
|
|
1002
|
+
Row: {
|
|
1003
|
+
allow_deny: boolean;
|
|
1004
|
+
context_id: string | null;
|
|
1005
|
+
context_type: string;
|
|
1006
|
+
created_at: string | null;
|
|
1007
|
+
description: string;
|
|
1008
|
+
id: string;
|
|
1009
|
+
role_id: string;
|
|
1010
|
+
updated_at: string | null;
|
|
1011
|
+
};
|
|
1012
|
+
Insert: {
|
|
1013
|
+
allow_deny?: boolean;
|
|
1014
|
+
context_id?: string | null;
|
|
1015
|
+
context_type: string;
|
|
1016
|
+
created_at?: string | null;
|
|
1017
|
+
description: string;
|
|
1018
|
+
id?: string;
|
|
1019
|
+
role_id: string;
|
|
1020
|
+
updated_at?: string | null;
|
|
1021
|
+
};
|
|
1022
|
+
Update: {
|
|
1023
|
+
allow_deny?: boolean;
|
|
1024
|
+
context_id?: string | null;
|
|
1025
|
+
context_type?: string;
|
|
1026
|
+
created_at?: string | null;
|
|
1027
|
+
description?: string;
|
|
1028
|
+
id?: string;
|
|
1029
|
+
role_id?: string;
|
|
1030
|
+
updated_at?: string | null;
|
|
1031
|
+
};
|
|
1032
|
+
Relationships: [
|
|
1033
|
+
{
|
|
1034
|
+
foreignKeyName: "permissions_role_id_fkey";
|
|
1035
|
+
columns: ["role_id"];
|
|
1036
|
+
isOneToOne: false;
|
|
1037
|
+
referencedRelation: "roles";
|
|
1038
|
+
referencedColumns: ["id"];
|
|
1039
|
+
}
|
|
1040
|
+
];
|
|
1041
|
+
};
|
|
1042
|
+
playlist_groups: {
|
|
1043
|
+
Row: {
|
|
1044
|
+
created_at: string | null;
|
|
1045
|
+
created_by: string | null;
|
|
1046
|
+
description: string | null;
|
|
1047
|
+
id: string;
|
|
1048
|
+
title: string;
|
|
1049
|
+
updated_at: string | null;
|
|
1050
|
+
user_id: string;
|
|
1051
|
+
};
|
|
1052
|
+
Insert: {
|
|
1053
|
+
created_at?: string | null;
|
|
1054
|
+
created_by?: string | null;
|
|
1055
|
+
description?: string | null;
|
|
1056
|
+
id?: string;
|
|
1057
|
+
title: string;
|
|
1058
|
+
updated_at?: string | null;
|
|
1059
|
+
user_id: string;
|
|
1060
|
+
};
|
|
1061
|
+
Update: {
|
|
1062
|
+
created_at?: string | null;
|
|
1063
|
+
created_by?: string | null;
|
|
1064
|
+
description?: string | null;
|
|
1065
|
+
id?: string;
|
|
1066
|
+
title?: string;
|
|
1067
|
+
updated_at?: string | null;
|
|
1068
|
+
user_id?: string;
|
|
1069
|
+
};
|
|
1070
|
+
Relationships: [
|
|
1071
|
+
{
|
|
1072
|
+
foreignKeyName: "playlist_groups_created_by_fkey";
|
|
1073
|
+
columns: ["created_by"];
|
|
1074
|
+
isOneToOne: false;
|
|
1075
|
+
referencedRelation: "users";
|
|
1076
|
+
referencedColumns: ["id"];
|
|
1077
|
+
},
|
|
1078
|
+
{
|
|
1079
|
+
foreignKeyName: "playlist_groups_user_id_fkey";
|
|
1080
|
+
columns: ["user_id"];
|
|
1081
|
+
isOneToOne: false;
|
|
1082
|
+
referencedRelation: "users";
|
|
1083
|
+
referencedColumns: ["id"];
|
|
1084
|
+
}
|
|
1085
|
+
];
|
|
1086
|
+
};
|
|
1087
|
+
playlist_items: {
|
|
1088
|
+
Row: {
|
|
1089
|
+
created_at: string | null;
|
|
1090
|
+
created_by: string | null;
|
|
1091
|
+
id: string;
|
|
1092
|
+
order_index: number;
|
|
1093
|
+
playlist_id: string;
|
|
1094
|
+
target_id: string;
|
|
1095
|
+
target_type: Database["public"]["Enums"]["target_type"];
|
|
1096
|
+
updated_at: string | null;
|
|
1097
|
+
};
|
|
1098
|
+
Insert: {
|
|
1099
|
+
created_at?: string | null;
|
|
1100
|
+
created_by?: string | null;
|
|
1101
|
+
id?: string;
|
|
1102
|
+
order_index: number;
|
|
1103
|
+
playlist_id: string;
|
|
1104
|
+
target_id: string;
|
|
1105
|
+
target_type: Database["public"]["Enums"]["target_type"];
|
|
1106
|
+
updated_at?: string | null;
|
|
1107
|
+
};
|
|
1108
|
+
Update: {
|
|
1109
|
+
created_at?: string | null;
|
|
1110
|
+
created_by?: string | null;
|
|
1111
|
+
id?: string;
|
|
1112
|
+
order_index?: number;
|
|
1113
|
+
playlist_id?: string;
|
|
1114
|
+
target_id?: string;
|
|
1115
|
+
target_type?: Database["public"]["Enums"]["target_type"];
|
|
1116
|
+
updated_at?: string | null;
|
|
1117
|
+
};
|
|
1118
|
+
Relationships: [
|
|
1119
|
+
{
|
|
1120
|
+
foreignKeyName: "playlist_items_created_by_fkey";
|
|
1121
|
+
columns: ["created_by"];
|
|
1122
|
+
isOneToOne: false;
|
|
1123
|
+
referencedRelation: "users";
|
|
1124
|
+
referencedColumns: ["id"];
|
|
1125
|
+
},
|
|
1126
|
+
{
|
|
1127
|
+
foreignKeyName: "playlist_items_playlist_id_fkey";
|
|
1128
|
+
columns: ["playlist_id"];
|
|
1129
|
+
isOneToOne: false;
|
|
1130
|
+
referencedRelation: "playlists";
|
|
1131
|
+
referencedColumns: ["id"];
|
|
1132
|
+
}
|
|
1133
|
+
];
|
|
1134
|
+
};
|
|
1135
|
+
playlists: {
|
|
1136
|
+
Row: {
|
|
1137
|
+
created_at: string | null;
|
|
1138
|
+
created_by: string | null;
|
|
1139
|
+
description: string | null;
|
|
1140
|
+
id: string;
|
|
1141
|
+
title: string;
|
|
1142
|
+
updated_at: string | null;
|
|
1143
|
+
user_id: string;
|
|
1144
|
+
};
|
|
1145
|
+
Insert: {
|
|
1146
|
+
created_at?: string | null;
|
|
1147
|
+
created_by?: string | null;
|
|
1148
|
+
description?: string | null;
|
|
1149
|
+
id?: string;
|
|
1150
|
+
title: string;
|
|
1151
|
+
updated_at?: string | null;
|
|
1152
|
+
user_id: string;
|
|
1153
|
+
};
|
|
1154
|
+
Update: {
|
|
1155
|
+
created_at?: string | null;
|
|
1156
|
+
created_by?: string | null;
|
|
1157
|
+
description?: string | null;
|
|
1158
|
+
id?: string;
|
|
1159
|
+
title?: string;
|
|
1160
|
+
updated_at?: string | null;
|
|
1161
|
+
user_id?: string;
|
|
1162
|
+
};
|
|
1163
|
+
Relationships: [
|
|
1164
|
+
{
|
|
1165
|
+
foreignKeyName: "playlists_created_by_fkey";
|
|
1166
|
+
columns: ["created_by"];
|
|
1167
|
+
isOneToOne: false;
|
|
1168
|
+
referencedRelation: "users";
|
|
1169
|
+
referencedColumns: ["id"];
|
|
1170
|
+
},
|
|
1171
|
+
{
|
|
1172
|
+
foreignKeyName: "playlists_user_id_fkey";
|
|
1173
|
+
columns: ["user_id"];
|
|
1174
|
+
isOneToOne: false;
|
|
1175
|
+
referencedRelation: "users";
|
|
1176
|
+
referencedColumns: ["id"];
|
|
1177
|
+
}
|
|
1178
|
+
];
|
|
1179
|
+
};
|
|
1180
|
+
playlists_playlist_groups: {
|
|
1181
|
+
Row: {
|
|
1182
|
+
created_at: string | null;
|
|
1183
|
+
created_by: string | null;
|
|
1184
|
+
id: string;
|
|
1185
|
+
index: number;
|
|
1186
|
+
playlist_group_id: string;
|
|
1187
|
+
playlist_id: string;
|
|
1188
|
+
updated_at: string | null;
|
|
1189
|
+
};
|
|
1190
|
+
Insert: {
|
|
1191
|
+
created_at?: string | null;
|
|
1192
|
+
created_by?: string | null;
|
|
1193
|
+
id?: string;
|
|
1194
|
+
index: number;
|
|
1195
|
+
playlist_group_id: string;
|
|
1196
|
+
playlist_id: string;
|
|
1197
|
+
updated_at?: string | null;
|
|
1198
|
+
};
|
|
1199
|
+
Update: {
|
|
1200
|
+
created_at?: string | null;
|
|
1201
|
+
created_by?: string | null;
|
|
1202
|
+
id?: string;
|
|
1203
|
+
index?: number;
|
|
1204
|
+
playlist_group_id?: string;
|
|
1205
|
+
playlist_id?: string;
|
|
1206
|
+
updated_at?: string | null;
|
|
1207
|
+
};
|
|
1208
|
+
Relationships: [
|
|
1209
|
+
{
|
|
1210
|
+
foreignKeyName: "playlists_playlist_groups_created_by_fkey";
|
|
1211
|
+
columns: ["created_by"];
|
|
1212
|
+
isOneToOne: false;
|
|
1213
|
+
referencedRelation: "users";
|
|
1214
|
+
referencedColumns: ["id"];
|
|
1215
|
+
},
|
|
1216
|
+
{
|
|
1217
|
+
foreignKeyName: "playlists_playlist_groups_playlist_group_id_fkey";
|
|
1218
|
+
columns: ["playlist_group_id"];
|
|
1219
|
+
isOneToOne: false;
|
|
1220
|
+
referencedRelation: "playlist_groups";
|
|
1221
|
+
referencedColumns: ["id"];
|
|
1222
|
+
},
|
|
1223
|
+
{
|
|
1224
|
+
foreignKeyName: "playlists_playlist_groups_playlist_id_fkey";
|
|
1225
|
+
columns: ["playlist_id"];
|
|
1226
|
+
isOneToOne: false;
|
|
1227
|
+
referencedRelation: "playlists";
|
|
1228
|
+
referencedColumns: ["id"];
|
|
1229
|
+
}
|
|
1230
|
+
];
|
|
1231
|
+
};
|
|
1232
|
+
projects: {
|
|
1233
|
+
Row: {
|
|
1234
|
+
created_at: string | null;
|
|
1235
|
+
created_by: string | null;
|
|
1236
|
+
deleted_at: string | null;
|
|
1237
|
+
description: string | null;
|
|
1238
|
+
id: string;
|
|
1239
|
+
location: unknown | null;
|
|
1240
|
+
name: string;
|
|
1241
|
+
region_id: string | null;
|
|
1242
|
+
source_language_entity_id: string;
|
|
1243
|
+
target_language_entity_id: string;
|
|
1244
|
+
updated_at: string | null;
|
|
1245
|
+
};
|
|
1246
|
+
Insert: {
|
|
1247
|
+
created_at?: string | null;
|
|
1248
|
+
created_by?: string | null;
|
|
1249
|
+
deleted_at?: string | null;
|
|
1250
|
+
description?: string | null;
|
|
1251
|
+
id?: string;
|
|
1252
|
+
location?: unknown | null;
|
|
1253
|
+
name: string;
|
|
1254
|
+
region_id?: string | null;
|
|
1255
|
+
source_language_entity_id: string;
|
|
1256
|
+
target_language_entity_id: string;
|
|
1257
|
+
updated_at?: string | null;
|
|
1258
|
+
};
|
|
1259
|
+
Update: {
|
|
1260
|
+
created_at?: string | null;
|
|
1261
|
+
created_by?: string | null;
|
|
1262
|
+
deleted_at?: string | null;
|
|
1263
|
+
description?: string | null;
|
|
1264
|
+
id?: string;
|
|
1265
|
+
location?: unknown | null;
|
|
1266
|
+
name?: string;
|
|
1267
|
+
region_id?: string | null;
|
|
1268
|
+
source_language_entity_id?: string;
|
|
1269
|
+
target_language_entity_id?: string;
|
|
1270
|
+
updated_at?: string | null;
|
|
1271
|
+
};
|
|
1272
|
+
Relationships: [
|
|
1273
|
+
{
|
|
1274
|
+
foreignKeyName: "projects_created_by_fkey";
|
|
1275
|
+
columns: ["created_by"];
|
|
1276
|
+
isOneToOne: false;
|
|
1277
|
+
referencedRelation: "users";
|
|
1278
|
+
referencedColumns: ["id"];
|
|
1279
|
+
},
|
|
1280
|
+
{
|
|
1281
|
+
foreignKeyName: "projects_region_id_fkey";
|
|
1282
|
+
columns: ["region_id"];
|
|
1283
|
+
isOneToOne: false;
|
|
1284
|
+
referencedRelation: "regions";
|
|
1285
|
+
referencedColumns: ["id"];
|
|
1286
|
+
},
|
|
1287
|
+
{
|
|
1288
|
+
foreignKeyName: "projects_source_language_entity_id_fkey";
|
|
1289
|
+
columns: ["source_language_entity_id"];
|
|
1290
|
+
isOneToOne: false;
|
|
1291
|
+
referencedRelation: "language_entities";
|
|
1292
|
+
referencedColumns: ["id"];
|
|
1293
|
+
},
|
|
1294
|
+
{
|
|
1295
|
+
foreignKeyName: "projects_target_language_entity_id_fkey";
|
|
1296
|
+
columns: ["target_language_entity_id"];
|
|
1297
|
+
isOneToOne: false;
|
|
1298
|
+
referencedRelation: "language_entities";
|
|
1299
|
+
referencedColumns: ["id"];
|
|
1300
|
+
}
|
|
1301
|
+
];
|
|
1302
|
+
};
|
|
1303
|
+
region_aliases: {
|
|
1304
|
+
Row: {
|
|
1305
|
+
alias_name: string;
|
|
1306
|
+
created_at: string | null;
|
|
1307
|
+
deleted_at: string | null;
|
|
1308
|
+
id: string;
|
|
1309
|
+
region_id: string;
|
|
1310
|
+
};
|
|
1311
|
+
Insert: {
|
|
1312
|
+
alias_name: string;
|
|
1313
|
+
created_at?: string | null;
|
|
1314
|
+
deleted_at?: string | null;
|
|
1315
|
+
id?: string;
|
|
1316
|
+
region_id: string;
|
|
1317
|
+
};
|
|
1318
|
+
Update: {
|
|
1319
|
+
alias_name?: string;
|
|
1320
|
+
created_at?: string | null;
|
|
1321
|
+
deleted_at?: string | null;
|
|
1322
|
+
id?: string;
|
|
1323
|
+
region_id?: string;
|
|
1324
|
+
};
|
|
1325
|
+
Relationships: [
|
|
1326
|
+
{
|
|
1327
|
+
foreignKeyName: "region_aliases_region_id_fkey";
|
|
1328
|
+
columns: ["region_id"];
|
|
1329
|
+
isOneToOne: false;
|
|
1330
|
+
referencedRelation: "regions";
|
|
1331
|
+
referencedColumns: ["id"];
|
|
1332
|
+
}
|
|
1333
|
+
];
|
|
1334
|
+
};
|
|
1335
|
+
region_properties: {
|
|
1336
|
+
Row: {
|
|
1337
|
+
created_at: string | null;
|
|
1338
|
+
deleted_at: string | null;
|
|
1339
|
+
id: string;
|
|
1340
|
+
key: string;
|
|
1341
|
+
region_id: string;
|
|
1342
|
+
value: string;
|
|
1343
|
+
};
|
|
1344
|
+
Insert: {
|
|
1345
|
+
created_at?: string | null;
|
|
1346
|
+
deleted_at?: string | null;
|
|
1347
|
+
id?: string;
|
|
1348
|
+
key: string;
|
|
1349
|
+
region_id: string;
|
|
1350
|
+
value: string;
|
|
1351
|
+
};
|
|
1352
|
+
Update: {
|
|
1353
|
+
created_at?: string | null;
|
|
1354
|
+
deleted_at?: string | null;
|
|
1355
|
+
id?: string;
|
|
1356
|
+
key?: string;
|
|
1357
|
+
region_id?: string;
|
|
1358
|
+
value?: string;
|
|
1359
|
+
};
|
|
1360
|
+
Relationships: [
|
|
1361
|
+
{
|
|
1362
|
+
foreignKeyName: "region_properties_region_id_fkey";
|
|
1363
|
+
columns: ["region_id"];
|
|
1364
|
+
isOneToOne: false;
|
|
1365
|
+
referencedRelation: "regions";
|
|
1366
|
+
referencedColumns: ["id"];
|
|
1367
|
+
}
|
|
1368
|
+
];
|
|
1369
|
+
};
|
|
1370
|
+
region_sources: {
|
|
1371
|
+
Row: {
|
|
1372
|
+
created_at: string | null;
|
|
1373
|
+
created_by: string | null;
|
|
1374
|
+
deleted_at: string | null;
|
|
1375
|
+
external_id: string | null;
|
|
1376
|
+
id: string;
|
|
1377
|
+
is_external: boolean;
|
|
1378
|
+
region_id: string;
|
|
1379
|
+
source: string;
|
|
1380
|
+
version: string | null;
|
|
1381
|
+
};
|
|
1382
|
+
Insert: {
|
|
1383
|
+
created_at?: string | null;
|
|
1384
|
+
created_by?: string | null;
|
|
1385
|
+
deleted_at?: string | null;
|
|
1386
|
+
external_id?: string | null;
|
|
1387
|
+
id?: string;
|
|
1388
|
+
is_external?: boolean;
|
|
1389
|
+
region_id: string;
|
|
1390
|
+
source: string;
|
|
626
1391
|
version?: string | null;
|
|
627
1392
|
};
|
|
628
1393
|
Update: {
|
|
@@ -645,139 +1410,467 @@ export type Database = {
|
|
|
645
1410
|
referencedColumns: ["id"];
|
|
646
1411
|
},
|
|
647
1412
|
{
|
|
648
|
-
foreignKeyName: "region_sources_region_id_fkey";
|
|
649
|
-
columns: ["region_id"];
|
|
1413
|
+
foreignKeyName: "region_sources_region_id_fkey";
|
|
1414
|
+
columns: ["region_id"];
|
|
1415
|
+
isOneToOne: false;
|
|
1416
|
+
referencedRelation: "regions";
|
|
1417
|
+
referencedColumns: ["id"];
|
|
1418
|
+
}
|
|
1419
|
+
];
|
|
1420
|
+
};
|
|
1421
|
+
region_versions: {
|
|
1422
|
+
Row: {
|
|
1423
|
+
change_type: Database["public"]["Enums"]["change_type"];
|
|
1424
|
+
changed_at: string | null;
|
|
1425
|
+
changed_by: string;
|
|
1426
|
+
id: string;
|
|
1427
|
+
level: Database["public"]["Enums"]["region_level"];
|
|
1428
|
+
name: string;
|
|
1429
|
+
parent_id: string | null;
|
|
1430
|
+
region_id: string;
|
|
1431
|
+
reviewed_at: string | null;
|
|
1432
|
+
reviewed_by: string | null;
|
|
1433
|
+
version: number;
|
|
1434
|
+
};
|
|
1435
|
+
Insert: {
|
|
1436
|
+
change_type: Database["public"]["Enums"]["change_type"];
|
|
1437
|
+
changed_at?: string | null;
|
|
1438
|
+
changed_by: string;
|
|
1439
|
+
id?: string;
|
|
1440
|
+
level: Database["public"]["Enums"]["region_level"];
|
|
1441
|
+
name: string;
|
|
1442
|
+
parent_id?: string | null;
|
|
1443
|
+
region_id: string;
|
|
1444
|
+
reviewed_at?: string | null;
|
|
1445
|
+
reviewed_by?: string | null;
|
|
1446
|
+
version: number;
|
|
1447
|
+
};
|
|
1448
|
+
Update: {
|
|
1449
|
+
change_type?: Database["public"]["Enums"]["change_type"];
|
|
1450
|
+
changed_at?: string | null;
|
|
1451
|
+
changed_by?: string;
|
|
1452
|
+
id?: string;
|
|
1453
|
+
level?: Database["public"]["Enums"]["region_level"];
|
|
1454
|
+
name?: string;
|
|
1455
|
+
parent_id?: string | null;
|
|
1456
|
+
region_id?: string;
|
|
1457
|
+
reviewed_at?: string | null;
|
|
1458
|
+
reviewed_by?: string | null;
|
|
1459
|
+
version?: number;
|
|
1460
|
+
};
|
|
1461
|
+
Relationships: [
|
|
1462
|
+
{
|
|
1463
|
+
foreignKeyName: "region_versions_changed_by_fkey";
|
|
1464
|
+
columns: ["changed_by"];
|
|
1465
|
+
isOneToOne: false;
|
|
1466
|
+
referencedRelation: "users";
|
|
1467
|
+
referencedColumns: ["id"];
|
|
1468
|
+
},
|
|
1469
|
+
{
|
|
1470
|
+
foreignKeyName: "region_versions_region_id_fkey";
|
|
1471
|
+
columns: ["region_id"];
|
|
1472
|
+
isOneToOne: false;
|
|
1473
|
+
referencedRelation: "regions";
|
|
1474
|
+
referencedColumns: ["id"];
|
|
1475
|
+
},
|
|
1476
|
+
{
|
|
1477
|
+
foreignKeyName: "region_versions_reviewed_by_fkey";
|
|
1478
|
+
columns: ["reviewed_by"];
|
|
1479
|
+
isOneToOne: false;
|
|
1480
|
+
referencedRelation: "users";
|
|
1481
|
+
referencedColumns: ["id"];
|
|
1482
|
+
}
|
|
1483
|
+
];
|
|
1484
|
+
};
|
|
1485
|
+
regions: {
|
|
1486
|
+
Row: {
|
|
1487
|
+
boundary: unknown | null;
|
|
1488
|
+
created_at: string | null;
|
|
1489
|
+
deleted_at: string | null;
|
|
1490
|
+
id: string;
|
|
1491
|
+
level: Database["public"]["Enums"]["region_level"];
|
|
1492
|
+
name: string;
|
|
1493
|
+
parent_id: string | null;
|
|
1494
|
+
updated_at: string | null;
|
|
1495
|
+
};
|
|
1496
|
+
Insert: {
|
|
1497
|
+
boundary?: unknown | null;
|
|
1498
|
+
created_at?: string | null;
|
|
1499
|
+
deleted_at?: string | null;
|
|
1500
|
+
id?: string;
|
|
1501
|
+
level: Database["public"]["Enums"]["region_level"];
|
|
1502
|
+
name: string;
|
|
1503
|
+
parent_id?: string | null;
|
|
1504
|
+
updated_at?: string | null;
|
|
1505
|
+
};
|
|
1506
|
+
Update: {
|
|
1507
|
+
boundary?: unknown | null;
|
|
1508
|
+
created_at?: string | null;
|
|
1509
|
+
deleted_at?: string | null;
|
|
1510
|
+
id?: string;
|
|
1511
|
+
level?: Database["public"]["Enums"]["region_level"];
|
|
1512
|
+
name?: string;
|
|
1513
|
+
parent_id?: string | null;
|
|
1514
|
+
updated_at?: string | null;
|
|
1515
|
+
};
|
|
1516
|
+
Relationships: [
|
|
1517
|
+
{
|
|
1518
|
+
foreignKeyName: "regions_parent_id_fkey";
|
|
1519
|
+
columns: ["parent_id"];
|
|
1520
|
+
isOneToOne: false;
|
|
1521
|
+
referencedRelation: "regions";
|
|
1522
|
+
referencedColumns: ["id"];
|
|
1523
|
+
}
|
|
1524
|
+
];
|
|
1525
|
+
};
|
|
1526
|
+
roles: {
|
|
1527
|
+
Row: {
|
|
1528
|
+
created_at: string | null;
|
|
1529
|
+
id: string;
|
|
1530
|
+
name: string;
|
|
1531
|
+
updated_at: string | null;
|
|
1532
|
+
};
|
|
1533
|
+
Insert: {
|
|
1534
|
+
created_at?: string | null;
|
|
1535
|
+
id?: string;
|
|
1536
|
+
name: string;
|
|
1537
|
+
updated_at?: string | null;
|
|
1538
|
+
};
|
|
1539
|
+
Update: {
|
|
1540
|
+
created_at?: string | null;
|
|
1541
|
+
id?: string;
|
|
1542
|
+
name?: string;
|
|
1543
|
+
updated_at?: string | null;
|
|
1544
|
+
};
|
|
1545
|
+
Relationships: [];
|
|
1546
|
+
};
|
|
1547
|
+
segments: {
|
|
1548
|
+
Row: {
|
|
1549
|
+
created_at: string | null;
|
|
1550
|
+
created_by: string | null;
|
|
1551
|
+
deleted_at: string | null;
|
|
1552
|
+
id: string;
|
|
1553
|
+
local_path: string | null;
|
|
1554
|
+
remote_path: string | null;
|
|
1555
|
+
type: Database["public"]["Enums"]["segment_type"];
|
|
1556
|
+
updated_at: string | null;
|
|
1557
|
+
};
|
|
1558
|
+
Insert: {
|
|
1559
|
+
created_at?: string | null;
|
|
1560
|
+
created_by?: string | null;
|
|
1561
|
+
deleted_at?: string | null;
|
|
1562
|
+
id?: string;
|
|
1563
|
+
local_path?: string | null;
|
|
1564
|
+
remote_path?: string | null;
|
|
1565
|
+
type: Database["public"]["Enums"]["segment_type"];
|
|
1566
|
+
updated_at?: string | null;
|
|
1567
|
+
};
|
|
1568
|
+
Update: {
|
|
1569
|
+
created_at?: string | null;
|
|
1570
|
+
created_by?: string | null;
|
|
1571
|
+
deleted_at?: string | null;
|
|
1572
|
+
id?: string;
|
|
1573
|
+
local_path?: string | null;
|
|
1574
|
+
remote_path?: string | null;
|
|
1575
|
+
type?: Database["public"]["Enums"]["segment_type"];
|
|
1576
|
+
updated_at?: string | null;
|
|
1577
|
+
};
|
|
1578
|
+
Relationships: [
|
|
1579
|
+
{
|
|
1580
|
+
foreignKeyName: "segments_created_by_fkey";
|
|
1581
|
+
columns: ["created_by"];
|
|
1582
|
+
isOneToOne: false;
|
|
1583
|
+
referencedRelation: "users";
|
|
1584
|
+
referencedColumns: ["id"];
|
|
1585
|
+
}
|
|
1586
|
+
];
|
|
1587
|
+
};
|
|
1588
|
+
segments_targets: {
|
|
1589
|
+
Row: {
|
|
1590
|
+
created_at: string | null;
|
|
1591
|
+
created_by: string | null;
|
|
1592
|
+
deleted_at: string | null;
|
|
1593
|
+
id: string;
|
|
1594
|
+
segment_id: string;
|
|
1595
|
+
target_id: string;
|
|
1596
|
+
target_type: Database["public"]["Enums"]["target_type"];
|
|
1597
|
+
updated_at: string | null;
|
|
1598
|
+
};
|
|
1599
|
+
Insert: {
|
|
1600
|
+
created_at?: string | null;
|
|
1601
|
+
created_by?: string | null;
|
|
1602
|
+
deleted_at?: string | null;
|
|
1603
|
+
id?: string;
|
|
1604
|
+
segment_id: string;
|
|
1605
|
+
target_id: string;
|
|
1606
|
+
target_type: Database["public"]["Enums"]["target_type"];
|
|
1607
|
+
updated_at?: string | null;
|
|
1608
|
+
};
|
|
1609
|
+
Update: {
|
|
1610
|
+
created_at?: string | null;
|
|
1611
|
+
created_by?: string | null;
|
|
1612
|
+
deleted_at?: string | null;
|
|
1613
|
+
id?: string;
|
|
1614
|
+
segment_id?: string;
|
|
1615
|
+
target_id?: string;
|
|
1616
|
+
target_type?: Database["public"]["Enums"]["target_type"];
|
|
1617
|
+
updated_at?: string | null;
|
|
1618
|
+
};
|
|
1619
|
+
Relationships: [
|
|
1620
|
+
{
|
|
1621
|
+
foreignKeyName: "segments_targets_created_by_fkey";
|
|
1622
|
+
columns: ["created_by"];
|
|
1623
|
+
isOneToOne: false;
|
|
1624
|
+
referencedRelation: "users";
|
|
1625
|
+
referencedColumns: ["id"];
|
|
1626
|
+
},
|
|
1627
|
+
{
|
|
1628
|
+
foreignKeyName: "segments_targets_segment_id_fkey";
|
|
1629
|
+
columns: ["segment_id"];
|
|
1630
|
+
isOneToOne: false;
|
|
1631
|
+
referencedRelation: "segments";
|
|
1632
|
+
referencedColumns: ["id"];
|
|
1633
|
+
}
|
|
1634
|
+
];
|
|
1635
|
+
};
|
|
1636
|
+
sequences: {
|
|
1637
|
+
Row: {
|
|
1638
|
+
book_id: string;
|
|
1639
|
+
created_at: string | null;
|
|
1640
|
+
created_by: string | null;
|
|
1641
|
+
deleted_at: string | null;
|
|
1642
|
+
description: string | null;
|
|
1643
|
+
end_verse_id: string | null;
|
|
1644
|
+
id: string;
|
|
1645
|
+
is_bible_audio: boolean | null;
|
|
1646
|
+
name: string;
|
|
1647
|
+
project_id: string;
|
|
1648
|
+
start_verse_id: string | null;
|
|
1649
|
+
updated_at: string | null;
|
|
1650
|
+
};
|
|
1651
|
+
Insert: {
|
|
1652
|
+
book_id: string;
|
|
1653
|
+
created_at?: string | null;
|
|
1654
|
+
created_by?: string | null;
|
|
1655
|
+
deleted_at?: string | null;
|
|
1656
|
+
description?: string | null;
|
|
1657
|
+
end_verse_id?: string | null;
|
|
1658
|
+
id?: string;
|
|
1659
|
+
is_bible_audio?: boolean | null;
|
|
1660
|
+
name: string;
|
|
1661
|
+
project_id: string;
|
|
1662
|
+
start_verse_id?: string | null;
|
|
1663
|
+
updated_at?: string | null;
|
|
1664
|
+
};
|
|
1665
|
+
Update: {
|
|
1666
|
+
book_id?: string;
|
|
1667
|
+
created_at?: string | null;
|
|
1668
|
+
created_by?: string | null;
|
|
1669
|
+
deleted_at?: string | null;
|
|
1670
|
+
description?: string | null;
|
|
1671
|
+
end_verse_id?: string | null;
|
|
1672
|
+
id?: string;
|
|
1673
|
+
is_bible_audio?: boolean | null;
|
|
1674
|
+
name?: string;
|
|
1675
|
+
project_id?: string;
|
|
1676
|
+
start_verse_id?: string | null;
|
|
1677
|
+
updated_at?: string | null;
|
|
1678
|
+
};
|
|
1679
|
+
Relationships: [
|
|
1680
|
+
{
|
|
1681
|
+
foreignKeyName: "sequences_book_id_fkey";
|
|
1682
|
+
columns: ["book_id"];
|
|
1683
|
+
isOneToOne: false;
|
|
1684
|
+
referencedRelation: "books";
|
|
1685
|
+
referencedColumns: ["id"];
|
|
1686
|
+
},
|
|
1687
|
+
{
|
|
1688
|
+
foreignKeyName: "sequences_created_by_fkey";
|
|
1689
|
+
columns: ["created_by"];
|
|
1690
|
+
isOneToOne: false;
|
|
1691
|
+
referencedRelation: "users";
|
|
1692
|
+
referencedColumns: ["id"];
|
|
1693
|
+
},
|
|
1694
|
+
{
|
|
1695
|
+
foreignKeyName: "sequences_end_verse_id_fkey";
|
|
1696
|
+
columns: ["end_verse_id"];
|
|
1697
|
+
isOneToOne: false;
|
|
1698
|
+
referencedRelation: "verses";
|
|
1699
|
+
referencedColumns: ["id"];
|
|
1700
|
+
},
|
|
1701
|
+
{
|
|
1702
|
+
foreignKeyName: "sequences_project_id_fkey";
|
|
1703
|
+
columns: ["project_id"];
|
|
1704
|
+
isOneToOne: false;
|
|
1705
|
+
referencedRelation: "projects";
|
|
1706
|
+
referencedColumns: ["id"];
|
|
1707
|
+
},
|
|
1708
|
+
{
|
|
1709
|
+
foreignKeyName: "sequences_start_verse_id_fkey";
|
|
1710
|
+
columns: ["start_verse_id"];
|
|
650
1711
|
isOneToOne: false;
|
|
651
|
-
referencedRelation: "
|
|
1712
|
+
referencedRelation: "verses";
|
|
652
1713
|
referencedColumns: ["id"];
|
|
653
1714
|
}
|
|
654
1715
|
];
|
|
655
1716
|
};
|
|
656
|
-
|
|
1717
|
+
sequences_segments: {
|
|
657
1718
|
Row: {
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
changed_by: string;
|
|
1719
|
+
created_at: string | null;
|
|
1720
|
+
created_by: string | null;
|
|
661
1721
|
id: string;
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
1722
|
+
is_deleted: boolean | null;
|
|
1723
|
+
is_numbered: boolean | null;
|
|
1724
|
+
segment_color: string | null;
|
|
1725
|
+
segment_id: string;
|
|
1726
|
+
segment_index: number;
|
|
1727
|
+
sequence_id: string;
|
|
1728
|
+
updated_at: string | null;
|
|
669
1729
|
};
|
|
670
1730
|
Insert: {
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
changed_by: string;
|
|
1731
|
+
created_at?: string | null;
|
|
1732
|
+
created_by?: string | null;
|
|
674
1733
|
id?: string;
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
1734
|
+
is_deleted?: boolean | null;
|
|
1735
|
+
is_numbered?: boolean | null;
|
|
1736
|
+
segment_color?: string | null;
|
|
1737
|
+
segment_id: string;
|
|
1738
|
+
segment_index: number;
|
|
1739
|
+
sequence_id: string;
|
|
1740
|
+
updated_at?: string | null;
|
|
682
1741
|
};
|
|
683
1742
|
Update: {
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
changed_by?: string;
|
|
1743
|
+
created_at?: string | null;
|
|
1744
|
+
created_by?: string | null;
|
|
687
1745
|
id?: string;
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
1746
|
+
is_deleted?: boolean | null;
|
|
1747
|
+
is_numbered?: boolean | null;
|
|
1748
|
+
segment_color?: string | null;
|
|
1749
|
+
segment_id?: string;
|
|
1750
|
+
segment_index?: number;
|
|
1751
|
+
sequence_id?: string;
|
|
1752
|
+
updated_at?: string | null;
|
|
695
1753
|
};
|
|
696
1754
|
Relationships: [
|
|
697
1755
|
{
|
|
698
|
-
foreignKeyName: "
|
|
699
|
-
columns: ["
|
|
1756
|
+
foreignKeyName: "sequences_segments_created_by_fkey";
|
|
1757
|
+
columns: ["created_by"];
|
|
700
1758
|
isOneToOne: false;
|
|
701
1759
|
referencedRelation: "users";
|
|
702
1760
|
referencedColumns: ["id"];
|
|
703
1761
|
},
|
|
704
1762
|
{
|
|
705
|
-
foreignKeyName: "
|
|
706
|
-
columns: ["
|
|
1763
|
+
foreignKeyName: "sequences_segments_segment_id_fkey";
|
|
1764
|
+
columns: ["segment_id"];
|
|
707
1765
|
isOneToOne: false;
|
|
708
|
-
referencedRelation: "
|
|
1766
|
+
referencedRelation: "segments";
|
|
709
1767
|
referencedColumns: ["id"];
|
|
710
1768
|
},
|
|
711
1769
|
{
|
|
712
|
-
foreignKeyName: "
|
|
713
|
-
columns: ["
|
|
1770
|
+
foreignKeyName: "sequences_segments_sequence_id_fkey";
|
|
1771
|
+
columns: ["sequence_id"];
|
|
714
1772
|
isOneToOne: false;
|
|
715
|
-
referencedRelation: "
|
|
1773
|
+
referencedRelation: "sequences";
|
|
716
1774
|
referencedColumns: ["id"];
|
|
717
1775
|
}
|
|
718
1776
|
];
|
|
719
1777
|
};
|
|
720
|
-
|
|
1778
|
+
sequences_tags: {
|
|
721
1779
|
Row: {
|
|
722
|
-
boundary: unknown | null;
|
|
723
1780
|
created_at: string | null;
|
|
724
|
-
|
|
1781
|
+
created_by: string | null;
|
|
725
1782
|
id: string;
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
parent_id: string | null;
|
|
1783
|
+
sequence_id: string;
|
|
1784
|
+
tag_id: string;
|
|
729
1785
|
updated_at: string | null;
|
|
730
1786
|
};
|
|
731
1787
|
Insert: {
|
|
732
|
-
boundary?: unknown | null;
|
|
733
1788
|
created_at?: string | null;
|
|
734
|
-
|
|
1789
|
+
created_by?: string | null;
|
|
735
1790
|
id?: string;
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
parent_id?: string | null;
|
|
1791
|
+
sequence_id: string;
|
|
1792
|
+
tag_id: string;
|
|
739
1793
|
updated_at?: string | null;
|
|
740
1794
|
};
|
|
741
1795
|
Update: {
|
|
742
|
-
boundary?: unknown | null;
|
|
743
1796
|
created_at?: string | null;
|
|
744
|
-
|
|
1797
|
+
created_by?: string | null;
|
|
745
1798
|
id?: string;
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
parent_id?: string | null;
|
|
1799
|
+
sequence_id?: string;
|
|
1800
|
+
tag_id?: string;
|
|
749
1801
|
updated_at?: string | null;
|
|
750
1802
|
};
|
|
751
1803
|
Relationships: [
|
|
752
1804
|
{
|
|
753
|
-
foreignKeyName: "
|
|
754
|
-
columns: ["
|
|
1805
|
+
foreignKeyName: "sequences_tags_created_by_fkey";
|
|
1806
|
+
columns: ["created_by"];
|
|
755
1807
|
isOneToOne: false;
|
|
756
|
-
referencedRelation: "
|
|
1808
|
+
referencedRelation: "users";
|
|
1809
|
+
referencedColumns: ["id"];
|
|
1810
|
+
},
|
|
1811
|
+
{
|
|
1812
|
+
foreignKeyName: "sequences_tags_sequence_id_fkey";
|
|
1813
|
+
columns: ["sequence_id"];
|
|
1814
|
+
isOneToOne: false;
|
|
1815
|
+
referencedRelation: "sequences";
|
|
1816
|
+
referencedColumns: ["id"];
|
|
1817
|
+
},
|
|
1818
|
+
{
|
|
1819
|
+
foreignKeyName: "sequences_tags_tag_id_fkey";
|
|
1820
|
+
columns: ["tag_id"];
|
|
1821
|
+
isOneToOne: false;
|
|
1822
|
+
referencedRelation: "tags";
|
|
757
1823
|
referencedColumns: ["id"];
|
|
758
1824
|
}
|
|
759
1825
|
];
|
|
760
1826
|
};
|
|
761
|
-
|
|
1827
|
+
sequences_targets: {
|
|
762
1828
|
Row: {
|
|
763
1829
|
created_at: string | null;
|
|
1830
|
+
created_by: string | null;
|
|
1831
|
+
deleted_at: string | null;
|
|
764
1832
|
id: string;
|
|
765
|
-
|
|
1833
|
+
sequence_id: string;
|
|
1834
|
+
target_id: string;
|
|
1835
|
+
target_type: Database["public"]["Enums"]["target_type"];
|
|
766
1836
|
updated_at: string | null;
|
|
767
1837
|
};
|
|
768
1838
|
Insert: {
|
|
769
1839
|
created_at?: string | null;
|
|
1840
|
+
created_by?: string | null;
|
|
1841
|
+
deleted_at?: string | null;
|
|
770
1842
|
id?: string;
|
|
771
|
-
|
|
1843
|
+
sequence_id: string;
|
|
1844
|
+
target_id: string;
|
|
1845
|
+
target_type: Database["public"]["Enums"]["target_type"];
|
|
772
1846
|
updated_at?: string | null;
|
|
773
1847
|
};
|
|
774
1848
|
Update: {
|
|
775
1849
|
created_at?: string | null;
|
|
1850
|
+
created_by?: string | null;
|
|
1851
|
+
deleted_at?: string | null;
|
|
776
1852
|
id?: string;
|
|
777
|
-
|
|
1853
|
+
sequence_id?: string;
|
|
1854
|
+
target_id?: string;
|
|
1855
|
+
target_type?: Database["public"]["Enums"]["target_type"];
|
|
778
1856
|
updated_at?: string | null;
|
|
779
1857
|
};
|
|
780
|
-
Relationships: [
|
|
1858
|
+
Relationships: [
|
|
1859
|
+
{
|
|
1860
|
+
foreignKeyName: "sequences_targets_created_by_fkey";
|
|
1861
|
+
columns: ["created_by"];
|
|
1862
|
+
isOneToOne: false;
|
|
1863
|
+
referencedRelation: "users";
|
|
1864
|
+
referencedColumns: ["id"];
|
|
1865
|
+
},
|
|
1866
|
+
{
|
|
1867
|
+
foreignKeyName: "sequences_targets_sequence_id_fkey";
|
|
1868
|
+
columns: ["sequence_id"];
|
|
1869
|
+
isOneToOne: false;
|
|
1870
|
+
referencedRelation: "sequences";
|
|
1871
|
+
referencedColumns: ["id"];
|
|
1872
|
+
}
|
|
1873
|
+
];
|
|
781
1874
|
};
|
|
782
1875
|
sessions: {
|
|
783
1876
|
Row: {
|
|
@@ -924,107 +2017,296 @@ export type Database = {
|
|
|
924
2017
|
Insert: {
|
|
925
2018
|
anon_user_id: string;
|
|
926
2019
|
created_at?: string | null;
|
|
927
|
-
device_id: string;
|
|
2020
|
+
device_id: string;
|
|
2021
|
+
id?: string;
|
|
2022
|
+
language_entity_id: string;
|
|
2023
|
+
location?: unknown | null;
|
|
2024
|
+
origin_share_id?: string | null;
|
|
2025
|
+
session_id: string;
|
|
2026
|
+
share_entity_id: string;
|
|
2027
|
+
share_entity_type: Database["public"]["Enums"]["share_entity_type"];
|
|
2028
|
+
shared_at?: string | null;
|
|
2029
|
+
};
|
|
2030
|
+
Update: {
|
|
2031
|
+
anon_user_id?: string;
|
|
2032
|
+
created_at?: string | null;
|
|
2033
|
+
device_id?: string;
|
|
2034
|
+
id?: string;
|
|
2035
|
+
language_entity_id?: string;
|
|
2036
|
+
location?: unknown | null;
|
|
2037
|
+
origin_share_id?: string | null;
|
|
2038
|
+
session_id?: string;
|
|
2039
|
+
share_entity_id?: string;
|
|
2040
|
+
share_entity_type?: Database["public"]["Enums"]["share_entity_type"];
|
|
2041
|
+
shared_at?: string | null;
|
|
2042
|
+
};
|
|
2043
|
+
Relationships: [
|
|
2044
|
+
{
|
|
2045
|
+
foreignKeyName: "shares_anon_user_id_fkey";
|
|
2046
|
+
columns: ["anon_user_id"];
|
|
2047
|
+
isOneToOne: false;
|
|
2048
|
+
referencedRelation: "users_anon";
|
|
2049
|
+
referencedColumns: ["id"];
|
|
2050
|
+
},
|
|
2051
|
+
{
|
|
2052
|
+
foreignKeyName: "shares_language_entity_id_fkey";
|
|
2053
|
+
columns: ["language_entity_id"];
|
|
2054
|
+
isOneToOne: false;
|
|
2055
|
+
referencedRelation: "language_entities";
|
|
2056
|
+
referencedColumns: ["id"];
|
|
2057
|
+
},
|
|
2058
|
+
{
|
|
2059
|
+
foreignKeyName: "shares_origin_share_id_fkey";
|
|
2060
|
+
columns: ["origin_share_id"];
|
|
2061
|
+
isOneToOne: false;
|
|
2062
|
+
referencedRelation: "shares";
|
|
2063
|
+
referencedColumns: ["id"];
|
|
2064
|
+
},
|
|
2065
|
+
{
|
|
2066
|
+
foreignKeyName: "shares_session_id_fkey";
|
|
2067
|
+
columns: ["session_id"];
|
|
2068
|
+
isOneToOne: false;
|
|
2069
|
+
referencedRelation: "sessions";
|
|
2070
|
+
referencedColumns: ["id"];
|
|
2071
|
+
}
|
|
2072
|
+
];
|
|
2073
|
+
};
|
|
2074
|
+
spatial_ref_sys: {
|
|
2075
|
+
Row: {
|
|
2076
|
+
auth_name: string | null;
|
|
2077
|
+
auth_srid: number | null;
|
|
2078
|
+
proj4text: string | null;
|
|
2079
|
+
srid: number;
|
|
2080
|
+
srtext: string | null;
|
|
2081
|
+
};
|
|
2082
|
+
Insert: {
|
|
2083
|
+
auth_name?: string | null;
|
|
2084
|
+
auth_srid?: number | null;
|
|
2085
|
+
proj4text?: string | null;
|
|
2086
|
+
srid: number;
|
|
2087
|
+
srtext?: string | null;
|
|
2088
|
+
};
|
|
2089
|
+
Update: {
|
|
2090
|
+
auth_name?: string | null;
|
|
2091
|
+
auth_srid?: number | null;
|
|
2092
|
+
proj4text?: string | null;
|
|
2093
|
+
srid?: number;
|
|
2094
|
+
srtext?: string | null;
|
|
2095
|
+
};
|
|
2096
|
+
Relationships: [];
|
|
2097
|
+
};
|
|
2098
|
+
tags: {
|
|
2099
|
+
Row: {
|
|
2100
|
+
created_at: string | null;
|
|
2101
|
+
created_by: string | null;
|
|
2102
|
+
id: string;
|
|
2103
|
+
key: string;
|
|
2104
|
+
updated_at: string | null;
|
|
2105
|
+
value: string;
|
|
2106
|
+
};
|
|
2107
|
+
Insert: {
|
|
2108
|
+
created_at?: string | null;
|
|
2109
|
+
created_by?: string | null;
|
|
2110
|
+
id?: string;
|
|
2111
|
+
key: string;
|
|
2112
|
+
updated_at?: string | null;
|
|
2113
|
+
value: string;
|
|
2114
|
+
};
|
|
2115
|
+
Update: {
|
|
2116
|
+
created_at?: string | null;
|
|
2117
|
+
created_by?: string | null;
|
|
2118
|
+
id?: string;
|
|
2119
|
+
key?: string;
|
|
2120
|
+
updated_at?: string | null;
|
|
2121
|
+
value?: string;
|
|
2122
|
+
};
|
|
2123
|
+
Relationships: [
|
|
2124
|
+
{
|
|
2125
|
+
foreignKeyName: "tags_created_by_fkey";
|
|
2126
|
+
columns: ["created_by"];
|
|
2127
|
+
isOneToOne: false;
|
|
2128
|
+
referencedRelation: "users";
|
|
2129
|
+
referencedColumns: ["id"];
|
|
2130
|
+
}
|
|
2131
|
+
];
|
|
2132
|
+
};
|
|
2133
|
+
teams: {
|
|
2134
|
+
Row: {
|
|
2135
|
+
created_at: string | null;
|
|
2136
|
+
id: string;
|
|
2137
|
+
name: string;
|
|
2138
|
+
type: string | null;
|
|
2139
|
+
updated_at: string | null;
|
|
2140
|
+
};
|
|
2141
|
+
Insert: {
|
|
2142
|
+
created_at?: string | null;
|
|
2143
|
+
id?: string;
|
|
2144
|
+
name: string;
|
|
2145
|
+
type?: string | null;
|
|
2146
|
+
updated_at?: string | null;
|
|
2147
|
+
};
|
|
2148
|
+
Update: {
|
|
2149
|
+
created_at?: string | null;
|
|
2150
|
+
id?: string;
|
|
2151
|
+
name?: string;
|
|
2152
|
+
type?: string | null;
|
|
2153
|
+
updated_at?: string | null;
|
|
2154
|
+
};
|
|
2155
|
+
Relationships: [];
|
|
2156
|
+
};
|
|
2157
|
+
text_versions: {
|
|
2158
|
+
Row: {
|
|
2159
|
+
bible_version_id: string;
|
|
2160
|
+
created_at: string | null;
|
|
2161
|
+
created_by: string | null;
|
|
2162
|
+
deleted_at: string | null;
|
|
2163
|
+
id: string;
|
|
2164
|
+
language_entity_id: string;
|
|
2165
|
+
name: string;
|
|
2166
|
+
text_version_source: Database["public"]["Enums"]["text_version_source"] | null;
|
|
2167
|
+
updated_at: string | null;
|
|
2168
|
+
};
|
|
2169
|
+
Insert: {
|
|
2170
|
+
bible_version_id: string;
|
|
2171
|
+
created_at?: string | null;
|
|
2172
|
+
created_by?: string | null;
|
|
2173
|
+
deleted_at?: string | null;
|
|
928
2174
|
id?: string;
|
|
929
2175
|
language_entity_id: string;
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
share_entity_id: string;
|
|
934
|
-
share_entity_type: Database["public"]["Enums"]["share_entity_type"];
|
|
935
|
-
shared_at?: string | null;
|
|
2176
|
+
name: string;
|
|
2177
|
+
text_version_source?: Database["public"]["Enums"]["text_version_source"] | null;
|
|
2178
|
+
updated_at?: string | null;
|
|
936
2179
|
};
|
|
937
2180
|
Update: {
|
|
938
|
-
|
|
2181
|
+
bible_version_id?: string;
|
|
939
2182
|
created_at?: string | null;
|
|
940
|
-
|
|
2183
|
+
created_by?: string | null;
|
|
2184
|
+
deleted_at?: string | null;
|
|
941
2185
|
id?: string;
|
|
942
2186
|
language_entity_id?: string;
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
share_entity_id?: string;
|
|
947
|
-
share_entity_type?: Database["public"]["Enums"]["share_entity_type"];
|
|
948
|
-
shared_at?: string | null;
|
|
2187
|
+
name?: string;
|
|
2188
|
+
text_version_source?: Database["public"]["Enums"]["text_version_source"] | null;
|
|
2189
|
+
updated_at?: string | null;
|
|
949
2190
|
};
|
|
950
2191
|
Relationships: [
|
|
951
2192
|
{
|
|
952
|
-
foreignKeyName: "
|
|
953
|
-
columns: ["
|
|
954
|
-
isOneToOne: false;
|
|
955
|
-
referencedRelation: "users_anon";
|
|
956
|
-
referencedColumns: ["id"];
|
|
957
|
-
},
|
|
958
|
-
{
|
|
959
|
-
foreignKeyName: "shares_language_entity_id_fkey";
|
|
960
|
-
columns: ["language_entity_id"];
|
|
2193
|
+
foreignKeyName: "text_versions_bible_version_id_fkey";
|
|
2194
|
+
columns: ["bible_version_id"];
|
|
961
2195
|
isOneToOne: false;
|
|
962
|
-
referencedRelation: "
|
|
2196
|
+
referencedRelation: "bible_versions";
|
|
963
2197
|
referencedColumns: ["id"];
|
|
964
2198
|
},
|
|
965
2199
|
{
|
|
966
|
-
foreignKeyName: "
|
|
967
|
-
columns: ["
|
|
2200
|
+
foreignKeyName: "text_versions_created_by_fkey";
|
|
2201
|
+
columns: ["created_by"];
|
|
968
2202
|
isOneToOne: false;
|
|
969
|
-
referencedRelation: "
|
|
2203
|
+
referencedRelation: "users";
|
|
970
2204
|
referencedColumns: ["id"];
|
|
971
2205
|
},
|
|
972
2206
|
{
|
|
973
|
-
foreignKeyName: "
|
|
974
|
-
columns: ["
|
|
2207
|
+
foreignKeyName: "text_versions_language_entity_id_fkey";
|
|
2208
|
+
columns: ["language_entity_id"];
|
|
975
2209
|
isOneToOne: false;
|
|
976
|
-
referencedRelation: "
|
|
2210
|
+
referencedRelation: "language_entities";
|
|
977
2211
|
referencedColumns: ["id"];
|
|
978
2212
|
}
|
|
979
2213
|
];
|
|
980
2214
|
};
|
|
981
|
-
|
|
2215
|
+
user_bookmark_folders: {
|
|
982
2216
|
Row: {
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
2217
|
+
color: string | null;
|
|
2218
|
+
created_at: string | null;
|
|
2219
|
+
id: string;
|
|
2220
|
+
name: string;
|
|
2221
|
+
parent_folder_id: string | null;
|
|
2222
|
+
updated_at: string | null;
|
|
2223
|
+
user_id: string;
|
|
988
2224
|
};
|
|
989
2225
|
Insert: {
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
2226
|
+
color?: string | null;
|
|
2227
|
+
created_at?: string | null;
|
|
2228
|
+
id?: string;
|
|
2229
|
+
name: string;
|
|
2230
|
+
parent_folder_id?: string | null;
|
|
2231
|
+
updated_at?: string | null;
|
|
2232
|
+
user_id: string;
|
|
995
2233
|
};
|
|
996
2234
|
Update: {
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
2235
|
+
color?: string | null;
|
|
2236
|
+
created_at?: string | null;
|
|
2237
|
+
id?: string;
|
|
2238
|
+
name?: string;
|
|
2239
|
+
parent_folder_id?: string | null;
|
|
2240
|
+
updated_at?: string | null;
|
|
2241
|
+
user_id?: string;
|
|
1002
2242
|
};
|
|
1003
|
-
Relationships: [
|
|
2243
|
+
Relationships: [
|
|
2244
|
+
{
|
|
2245
|
+
foreignKeyName: "user_bookmark_folders_parent_folder_id_fkey";
|
|
2246
|
+
columns: ["parent_folder_id"];
|
|
2247
|
+
isOneToOne: false;
|
|
2248
|
+
referencedRelation: "user_bookmark_folders";
|
|
2249
|
+
referencedColumns: ["id"];
|
|
2250
|
+
},
|
|
2251
|
+
{
|
|
2252
|
+
foreignKeyName: "user_bookmark_folders_user_id_fkey";
|
|
2253
|
+
columns: ["user_id"];
|
|
2254
|
+
isOneToOne: false;
|
|
2255
|
+
referencedRelation: "users";
|
|
2256
|
+
referencedColumns: ["id"];
|
|
2257
|
+
}
|
|
2258
|
+
];
|
|
1004
2259
|
};
|
|
1005
|
-
|
|
2260
|
+
user_bookmarks: {
|
|
1006
2261
|
Row: {
|
|
2262
|
+
bookmark_folder_id: string | null;
|
|
2263
|
+
color: string | null;
|
|
1007
2264
|
created_at: string | null;
|
|
1008
2265
|
id: string;
|
|
1009
|
-
|
|
1010
|
-
|
|
2266
|
+
note: string | null;
|
|
2267
|
+
target_id: string;
|
|
2268
|
+
target_type: Database["public"]["Enums"]["target_type"];
|
|
1011
2269
|
updated_at: string | null;
|
|
2270
|
+
user_id: string;
|
|
1012
2271
|
};
|
|
1013
2272
|
Insert: {
|
|
2273
|
+
bookmark_folder_id?: string | null;
|
|
2274
|
+
color?: string | null;
|
|
1014
2275
|
created_at?: string | null;
|
|
1015
2276
|
id?: string;
|
|
1016
|
-
|
|
1017
|
-
|
|
2277
|
+
note?: string | null;
|
|
2278
|
+
target_id: string;
|
|
2279
|
+
target_type: Database["public"]["Enums"]["target_type"];
|
|
1018
2280
|
updated_at?: string | null;
|
|
2281
|
+
user_id: string;
|
|
1019
2282
|
};
|
|
1020
2283
|
Update: {
|
|
2284
|
+
bookmark_folder_id?: string | null;
|
|
2285
|
+
color?: string | null;
|
|
1021
2286
|
created_at?: string | null;
|
|
1022
2287
|
id?: string;
|
|
1023
|
-
|
|
1024
|
-
|
|
2288
|
+
note?: string | null;
|
|
2289
|
+
target_id?: string;
|
|
2290
|
+
target_type?: Database["public"]["Enums"]["target_type"];
|
|
1025
2291
|
updated_at?: string | null;
|
|
2292
|
+
user_id?: string;
|
|
1026
2293
|
};
|
|
1027
|
-
Relationships: [
|
|
2294
|
+
Relationships: [
|
|
2295
|
+
{
|
|
2296
|
+
foreignKeyName: "user_bookmarks_bookmark_folder_id_fkey";
|
|
2297
|
+
columns: ["bookmark_folder_id"];
|
|
2298
|
+
isOneToOne: false;
|
|
2299
|
+
referencedRelation: "user_bookmark_folders";
|
|
2300
|
+
referencedColumns: ["id"];
|
|
2301
|
+
},
|
|
2302
|
+
{
|
|
2303
|
+
foreignKeyName: "user_bookmarks_user_id_fkey";
|
|
2304
|
+
columns: ["user_id"];
|
|
2305
|
+
isOneToOne: false;
|
|
2306
|
+
referencedRelation: "users";
|
|
2307
|
+
referencedColumns: ["id"];
|
|
2308
|
+
}
|
|
2309
|
+
];
|
|
1028
2310
|
};
|
|
1029
2311
|
user_contributions: {
|
|
1030
2312
|
Row: {
|
|
@@ -1080,6 +2362,86 @@ export type Database = {
|
|
|
1080
2362
|
}
|
|
1081
2363
|
];
|
|
1082
2364
|
};
|
|
2365
|
+
user_custom_texts: {
|
|
2366
|
+
Row: {
|
|
2367
|
+
created_at: string | null;
|
|
2368
|
+
created_by: string;
|
|
2369
|
+
formatting: Json | null;
|
|
2370
|
+
id: string;
|
|
2371
|
+
text: string;
|
|
2372
|
+
updated_at: string | null;
|
|
2373
|
+
};
|
|
2374
|
+
Insert: {
|
|
2375
|
+
created_at?: string | null;
|
|
2376
|
+
created_by: string;
|
|
2377
|
+
formatting?: Json | null;
|
|
2378
|
+
id?: string;
|
|
2379
|
+
text: string;
|
|
2380
|
+
updated_at?: string | null;
|
|
2381
|
+
};
|
|
2382
|
+
Update: {
|
|
2383
|
+
created_at?: string | null;
|
|
2384
|
+
created_by?: string;
|
|
2385
|
+
formatting?: Json | null;
|
|
2386
|
+
id?: string;
|
|
2387
|
+
text?: string;
|
|
2388
|
+
updated_at?: string | null;
|
|
2389
|
+
};
|
|
2390
|
+
Relationships: [
|
|
2391
|
+
{
|
|
2392
|
+
foreignKeyName: "user_custom_texts_created_by_fkey";
|
|
2393
|
+
columns: ["created_by"];
|
|
2394
|
+
isOneToOne: false;
|
|
2395
|
+
referencedRelation: "users";
|
|
2396
|
+
referencedColumns: ["id"];
|
|
2397
|
+
}
|
|
2398
|
+
];
|
|
2399
|
+
};
|
|
2400
|
+
user_positions: {
|
|
2401
|
+
Row: {
|
|
2402
|
+
bookmark_folder_id: string | null;
|
|
2403
|
+
created_at: string | null;
|
|
2404
|
+
id: string;
|
|
2405
|
+
target_id: string;
|
|
2406
|
+
target_type: Database["public"]["Enums"]["target_type"];
|
|
2407
|
+
updated_at: string | null;
|
|
2408
|
+
user_id: string;
|
|
2409
|
+
};
|
|
2410
|
+
Insert: {
|
|
2411
|
+
bookmark_folder_id?: string | null;
|
|
2412
|
+
created_at?: string | null;
|
|
2413
|
+
id?: string;
|
|
2414
|
+
target_id: string;
|
|
2415
|
+
target_type: Database["public"]["Enums"]["target_type"];
|
|
2416
|
+
updated_at?: string | null;
|
|
2417
|
+
user_id: string;
|
|
2418
|
+
};
|
|
2419
|
+
Update: {
|
|
2420
|
+
bookmark_folder_id?: string | null;
|
|
2421
|
+
created_at?: string | null;
|
|
2422
|
+
id?: string;
|
|
2423
|
+
target_id?: string;
|
|
2424
|
+
target_type?: Database["public"]["Enums"]["target_type"];
|
|
2425
|
+
updated_at?: string | null;
|
|
2426
|
+
user_id?: string;
|
|
2427
|
+
};
|
|
2428
|
+
Relationships: [
|
|
2429
|
+
{
|
|
2430
|
+
foreignKeyName: "user_positions_bookmark_folder_id_fkey";
|
|
2431
|
+
columns: ["bookmark_folder_id"];
|
|
2432
|
+
isOneToOne: false;
|
|
2433
|
+
referencedRelation: "user_bookmark_folders";
|
|
2434
|
+
referencedColumns: ["id"];
|
|
2435
|
+
},
|
|
2436
|
+
{
|
|
2437
|
+
foreignKeyName: "user_positions_user_id_fkey";
|
|
2438
|
+
columns: ["user_id"];
|
|
2439
|
+
isOneToOne: false;
|
|
2440
|
+
referencedRelation: "users";
|
|
2441
|
+
referencedColumns: ["id"];
|
|
2442
|
+
}
|
|
2443
|
+
];
|
|
2444
|
+
};
|
|
1083
2445
|
user_roles: {
|
|
1084
2446
|
Row: {
|
|
1085
2447
|
context_id: string | null;
|
|
@@ -1248,6 +2610,103 @@ export type Database = {
|
|
|
1248
2610
|
isOneToOne: false;
|
|
1249
2611
|
referencedRelation: "sessions";
|
|
1250
2612
|
referencedColumns: ["id"];
|
|
2613
|
+
},
|
|
2614
|
+
{
|
|
2615
|
+
foreignKeyName: "verse_listens_verse_id_fkey";
|
|
2616
|
+
columns: ["verse_id"];
|
|
2617
|
+
isOneToOne: false;
|
|
2618
|
+
referencedRelation: "verses";
|
|
2619
|
+
referencedColumns: ["id"];
|
|
2620
|
+
}
|
|
2621
|
+
];
|
|
2622
|
+
};
|
|
2623
|
+
verse_texts: {
|
|
2624
|
+
Row: {
|
|
2625
|
+
created_at: string | null;
|
|
2626
|
+
created_by: string | null;
|
|
2627
|
+
deleted_at: string | null;
|
|
2628
|
+
id: string;
|
|
2629
|
+
text_version_id: string;
|
|
2630
|
+
updated_at: string | null;
|
|
2631
|
+
verse_id: string;
|
|
2632
|
+
verse_text: string;
|
|
2633
|
+
};
|
|
2634
|
+
Insert: {
|
|
2635
|
+
created_at?: string | null;
|
|
2636
|
+
created_by?: string | null;
|
|
2637
|
+
deleted_at?: string | null;
|
|
2638
|
+
id?: string;
|
|
2639
|
+
text_version_id: string;
|
|
2640
|
+
updated_at?: string | null;
|
|
2641
|
+
verse_id: string;
|
|
2642
|
+
verse_text: string;
|
|
2643
|
+
};
|
|
2644
|
+
Update: {
|
|
2645
|
+
created_at?: string | null;
|
|
2646
|
+
created_by?: string | null;
|
|
2647
|
+
deleted_at?: string | null;
|
|
2648
|
+
id?: string;
|
|
2649
|
+
text_version_id?: string;
|
|
2650
|
+
updated_at?: string | null;
|
|
2651
|
+
verse_id?: string;
|
|
2652
|
+
verse_text?: string;
|
|
2653
|
+
};
|
|
2654
|
+
Relationships: [
|
|
2655
|
+
{
|
|
2656
|
+
foreignKeyName: "verse_texts_created_by_fkey";
|
|
2657
|
+
columns: ["created_by"];
|
|
2658
|
+
isOneToOne: false;
|
|
2659
|
+
referencedRelation: "users";
|
|
2660
|
+
referencedColumns: ["id"];
|
|
2661
|
+
},
|
|
2662
|
+
{
|
|
2663
|
+
foreignKeyName: "verse_texts_text_version_id_fkey";
|
|
2664
|
+
columns: ["text_version_id"];
|
|
2665
|
+
isOneToOne: false;
|
|
2666
|
+
referencedRelation: "text_versions";
|
|
2667
|
+
referencedColumns: ["id"];
|
|
2668
|
+
},
|
|
2669
|
+
{
|
|
2670
|
+
foreignKeyName: "verse_texts_verse_id_fkey";
|
|
2671
|
+
columns: ["verse_id"];
|
|
2672
|
+
isOneToOne: false;
|
|
2673
|
+
referencedRelation: "verses";
|
|
2674
|
+
referencedColumns: ["id"];
|
|
2675
|
+
}
|
|
2676
|
+
];
|
|
2677
|
+
};
|
|
2678
|
+
verses: {
|
|
2679
|
+
Row: {
|
|
2680
|
+
chapter_id: string;
|
|
2681
|
+
created_at: string | null;
|
|
2682
|
+
global_order: number | null;
|
|
2683
|
+
id: string;
|
|
2684
|
+
updated_at: string | null;
|
|
2685
|
+
verse_number: number;
|
|
2686
|
+
};
|
|
2687
|
+
Insert: {
|
|
2688
|
+
chapter_id: string;
|
|
2689
|
+
created_at?: string | null;
|
|
2690
|
+
global_order?: number | null;
|
|
2691
|
+
id: string;
|
|
2692
|
+
updated_at?: string | null;
|
|
2693
|
+
verse_number: number;
|
|
2694
|
+
};
|
|
2695
|
+
Update: {
|
|
2696
|
+
chapter_id?: string;
|
|
2697
|
+
created_at?: string | null;
|
|
2698
|
+
global_order?: number | null;
|
|
2699
|
+
id?: string;
|
|
2700
|
+
updated_at?: string | null;
|
|
2701
|
+
verse_number?: number;
|
|
2702
|
+
};
|
|
2703
|
+
Relationships: [
|
|
2704
|
+
{
|
|
2705
|
+
foreignKeyName: "verses_chapter_id_fkey";
|
|
2706
|
+
columns: ["chapter_id"];
|
|
2707
|
+
isOneToOne: false;
|
|
2708
|
+
referencedRelation: "chapters";
|
|
2709
|
+
referencedColumns: ["id"];
|
|
1251
2710
|
}
|
|
1252
2711
|
];
|
|
1253
2712
|
};
|
|
@@ -1994,6 +3453,14 @@ export type Database = {
|
|
|
1994
3453
|
};
|
|
1995
3454
|
Returns: unknown;
|
|
1996
3455
|
};
|
|
3456
|
+
get_chapter_global_order: {
|
|
3457
|
+
Args: {
|
|
3458
|
+
chapter_text_id: string;
|
|
3459
|
+
} | {
|
|
3460
|
+
chapter_uuid: string;
|
|
3461
|
+
};
|
|
3462
|
+
Returns: number;
|
|
3463
|
+
};
|
|
1997
3464
|
get_language_entity_path: {
|
|
1998
3465
|
Args: {
|
|
1999
3466
|
entity_id: string;
|
|
@@ -2012,6 +3479,14 @@ export type Database = {
|
|
|
2012
3479
|
};
|
|
2013
3480
|
Returns: string;
|
|
2014
3481
|
};
|
|
3482
|
+
get_verse_global_order: {
|
|
3483
|
+
Args: {
|
|
3484
|
+
verse_text_id: string;
|
|
3485
|
+
} | {
|
|
3486
|
+
verse_uuid: string;
|
|
3487
|
+
};
|
|
3488
|
+
Returns: number;
|
|
3489
|
+
};
|
|
2015
3490
|
gettransactionid: {
|
|
2016
3491
|
Args: Record<PropertyKey, never>;
|
|
2017
3492
|
Returns: unknown;
|
|
@@ -2297,6 +3772,10 @@ export type Database = {
|
|
|
2297
3772
|
Args: Record<PropertyKey, never>;
|
|
2298
3773
|
Returns: string;
|
|
2299
3774
|
};
|
|
3775
|
+
refresh_all_global_orders: {
|
|
3776
|
+
Args: Record<PropertyKey, never>;
|
|
3777
|
+
Returns: undefined;
|
|
3778
|
+
};
|
|
2300
3779
|
spheroid_in: {
|
|
2301
3780
|
Args: {
|
|
2302
3781
|
"": unknown;
|
|
@@ -4014,15 +5493,32 @@ export type Database = {
|
|
|
4014
5493
|
};
|
|
4015
5494
|
Returns: string;
|
|
4016
5495
|
};
|
|
5496
|
+
validate_verse_range: {
|
|
5497
|
+
Args: {
|
|
5498
|
+
start_verse_text_id: string;
|
|
5499
|
+
end_verse_text_id: string;
|
|
5500
|
+
} | {
|
|
5501
|
+
start_verse_uuid: string;
|
|
5502
|
+
end_verse_uuid: string;
|
|
5503
|
+
};
|
|
5504
|
+
Returns: boolean;
|
|
5505
|
+
};
|
|
4017
5506
|
};
|
|
4018
5507
|
Enums: {
|
|
4019
5508
|
change_type: "create" | "update" | "delete";
|
|
5509
|
+
check_status: "pending" | "approved" | "rejected" | "requires_review";
|
|
4020
5510
|
connectivity_type: "wifi" | "cellular" | "offline" | "unknown";
|
|
4021
5511
|
contribution_status: "approved" | "not_approved";
|
|
4022
5512
|
language_entity_level: "family" | "language" | "dialect" | "mother_tongue";
|
|
5513
|
+
media_type: "audio" | "video";
|
|
4023
5514
|
platform_type: "ios" | "android" | "web" | "desktop";
|
|
5515
|
+
publish_status: "pending" | "published" | "archived";
|
|
4024
5516
|
region_level: "continent" | "world_region" | "country" | "state" | "province" | "district" | "town" | "village";
|
|
5517
|
+
segment_type: "source" | "target";
|
|
4025
5518
|
share_entity_type: "app" | "chapter" | "playlist" | "verse" | "passage";
|
|
5519
|
+
target_type: "chapter" | "book" | "sermon" | "passage" | "verse" | "podcast" | "film_segment" | "audio_segment";
|
|
5520
|
+
text_version_source: "official_translation" | "ai_transcription" | "user_submitted";
|
|
5521
|
+
upload_status: "pending" | "uploading" | "completed" | "failed";
|
|
4026
5522
|
};
|
|
4027
5523
|
CompositeTypes: {
|
|
4028
5524
|
geometry_dump: {
|
|
@@ -4037,54 +5533,55 @@ export type Database = {
|
|
|
4037
5533
|
};
|
|
4038
5534
|
};
|
|
4039
5535
|
};
|
|
4040
|
-
type
|
|
5536
|
+
type DatabaseWithoutInternals = Omit<Database, "__InternalSupabase">;
|
|
5537
|
+
type DefaultSchema = DatabaseWithoutInternals[Extract<keyof Database, "public">];
|
|
4041
5538
|
export type Tables<DefaultSchemaTableNameOrOptions extends keyof (DefaultSchema["Tables"] & DefaultSchema["Views"]) | {
|
|
4042
|
-
schema: keyof
|
|
5539
|
+
schema: keyof DatabaseWithoutInternals;
|
|
4043
5540
|
}, TableName extends DefaultSchemaTableNameOrOptions extends {
|
|
4044
|
-
schema: keyof
|
|
4045
|
-
} ? keyof (
|
|
4046
|
-
schema: keyof
|
|
4047
|
-
} ? (
|
|
5541
|
+
schema: keyof DatabaseWithoutInternals;
|
|
5542
|
+
} ? keyof (DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] & DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Views"]) : never = never> = DefaultSchemaTableNameOrOptions extends {
|
|
5543
|
+
schema: keyof DatabaseWithoutInternals;
|
|
5544
|
+
} ? (DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] & DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Views"])[TableName] extends {
|
|
4048
5545
|
Row: infer R;
|
|
4049
5546
|
} ? R : never : DefaultSchemaTableNameOrOptions extends keyof (DefaultSchema["Tables"] & DefaultSchema["Views"]) ? (DefaultSchema["Tables"] & DefaultSchema["Views"])[DefaultSchemaTableNameOrOptions] extends {
|
|
4050
5547
|
Row: infer R;
|
|
4051
5548
|
} ? R : never : never;
|
|
4052
5549
|
export type TablesInsert<DefaultSchemaTableNameOrOptions extends keyof DefaultSchema["Tables"] | {
|
|
4053
|
-
schema: keyof
|
|
5550
|
+
schema: keyof DatabaseWithoutInternals;
|
|
4054
5551
|
}, TableName extends DefaultSchemaTableNameOrOptions extends {
|
|
4055
|
-
schema: keyof
|
|
4056
|
-
} ? keyof
|
|
4057
|
-
schema: keyof
|
|
4058
|
-
} ?
|
|
5552
|
+
schema: keyof DatabaseWithoutInternals;
|
|
5553
|
+
} ? keyof DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] : never = never> = DefaultSchemaTableNameOrOptions extends {
|
|
5554
|
+
schema: keyof DatabaseWithoutInternals;
|
|
5555
|
+
} ? DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"][TableName] extends {
|
|
4059
5556
|
Insert: infer I;
|
|
4060
5557
|
} ? I : never : DefaultSchemaTableNameOrOptions extends keyof DefaultSchema["Tables"] ? DefaultSchema["Tables"][DefaultSchemaTableNameOrOptions] extends {
|
|
4061
5558
|
Insert: infer I;
|
|
4062
5559
|
} ? I : never : never;
|
|
4063
5560
|
export type TablesUpdate<DefaultSchemaTableNameOrOptions extends keyof DefaultSchema["Tables"] | {
|
|
4064
|
-
schema: keyof
|
|
5561
|
+
schema: keyof DatabaseWithoutInternals;
|
|
4065
5562
|
}, TableName extends DefaultSchemaTableNameOrOptions extends {
|
|
4066
|
-
schema: keyof
|
|
4067
|
-
} ? keyof
|
|
4068
|
-
schema: keyof
|
|
4069
|
-
} ?
|
|
5563
|
+
schema: keyof DatabaseWithoutInternals;
|
|
5564
|
+
} ? keyof DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] : never = never> = DefaultSchemaTableNameOrOptions extends {
|
|
5565
|
+
schema: keyof DatabaseWithoutInternals;
|
|
5566
|
+
} ? DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"][TableName] extends {
|
|
4070
5567
|
Update: infer U;
|
|
4071
5568
|
} ? U : never : DefaultSchemaTableNameOrOptions extends keyof DefaultSchema["Tables"] ? DefaultSchema["Tables"][DefaultSchemaTableNameOrOptions] extends {
|
|
4072
5569
|
Update: infer U;
|
|
4073
5570
|
} ? U : never : never;
|
|
4074
5571
|
export type Enums<DefaultSchemaEnumNameOrOptions extends keyof DefaultSchema["Enums"] | {
|
|
4075
|
-
schema: keyof
|
|
5572
|
+
schema: keyof DatabaseWithoutInternals;
|
|
4076
5573
|
}, EnumName extends DefaultSchemaEnumNameOrOptions extends {
|
|
4077
|
-
schema: keyof
|
|
4078
|
-
} ? keyof
|
|
4079
|
-
schema: keyof
|
|
4080
|
-
} ?
|
|
5574
|
+
schema: keyof DatabaseWithoutInternals;
|
|
5575
|
+
} ? keyof DatabaseWithoutInternals[DefaultSchemaEnumNameOrOptions["schema"]]["Enums"] : never = never> = DefaultSchemaEnumNameOrOptions extends {
|
|
5576
|
+
schema: keyof DatabaseWithoutInternals;
|
|
5577
|
+
} ? DatabaseWithoutInternals[DefaultSchemaEnumNameOrOptions["schema"]]["Enums"][EnumName] : DefaultSchemaEnumNameOrOptions extends keyof DefaultSchema["Enums"] ? DefaultSchema["Enums"][DefaultSchemaEnumNameOrOptions] : never;
|
|
4081
5578
|
export type CompositeTypes<PublicCompositeTypeNameOrOptions extends keyof DefaultSchema["CompositeTypes"] | {
|
|
4082
|
-
schema: keyof
|
|
5579
|
+
schema: keyof DatabaseWithoutInternals;
|
|
4083
5580
|
}, CompositeTypeName extends PublicCompositeTypeNameOrOptions extends {
|
|
4084
|
-
schema: keyof
|
|
4085
|
-
} ? keyof
|
|
4086
|
-
schema: keyof
|
|
4087
|
-
} ?
|
|
5581
|
+
schema: keyof DatabaseWithoutInternals;
|
|
5582
|
+
} ? keyof DatabaseWithoutInternals[PublicCompositeTypeNameOrOptions["schema"]]["CompositeTypes"] : never = never> = PublicCompositeTypeNameOrOptions extends {
|
|
5583
|
+
schema: keyof DatabaseWithoutInternals;
|
|
5584
|
+
} ? DatabaseWithoutInternals[PublicCompositeTypeNameOrOptions["schema"]]["CompositeTypes"][CompositeTypeName] : PublicCompositeTypeNameOrOptions extends keyof DefaultSchema["CompositeTypes"] ? DefaultSchema["CompositeTypes"][PublicCompositeTypeNameOrOptions] : never;
|
|
4088
5585
|
export declare const Constants: {
|
|
4089
5586
|
readonly graphql_public: {
|
|
4090
5587
|
readonly Enums: {};
|
|
@@ -4092,12 +5589,19 @@ export declare const Constants: {
|
|
|
4092
5589
|
readonly public: {
|
|
4093
5590
|
readonly Enums: {
|
|
4094
5591
|
readonly change_type: readonly ["create", "update", "delete"];
|
|
5592
|
+
readonly check_status: readonly ["pending", "approved", "rejected", "requires_review"];
|
|
4095
5593
|
readonly connectivity_type: readonly ["wifi", "cellular", "offline", "unknown"];
|
|
4096
5594
|
readonly contribution_status: readonly ["approved", "not_approved"];
|
|
4097
5595
|
readonly language_entity_level: readonly ["family", "language", "dialect", "mother_tongue"];
|
|
5596
|
+
readonly media_type: readonly ["audio", "video"];
|
|
4098
5597
|
readonly platform_type: readonly ["ios", "android", "web", "desktop"];
|
|
5598
|
+
readonly publish_status: readonly ["pending", "published", "archived"];
|
|
4099
5599
|
readonly region_level: readonly ["continent", "world_region", "country", "state", "province", "district", "town", "village"];
|
|
5600
|
+
readonly segment_type: readonly ["source", "target"];
|
|
4100
5601
|
readonly share_entity_type: readonly ["app", "chapter", "playlist", "verse", "passage"];
|
|
5602
|
+
readonly target_type: readonly ["chapter", "book", "sermon", "passage", "verse", "podcast", "film_segment", "audio_segment"];
|
|
5603
|
+
readonly text_version_source: readonly ["official_translation", "ai_transcription", "user_submitted"];
|
|
5604
|
+
readonly upload_status: readonly ["pending", "uploading", "completed", "failed"];
|
|
4101
5605
|
};
|
|
4102
5606
|
};
|
|
4103
5607
|
};
|