@everylanguage/shared-types 1.0.7 → 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 +187 -44
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@everylanguage/shared-types",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.8",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "types/database.js",
|
|
6
6
|
"types": "types/database.d.ts",
|
|
@@ -66,10 +66,12 @@
|
|
|
66
66
|
"dependencies": {
|
|
67
67
|
"@typescript-eslint/eslint-plugin": "^8.34.1",
|
|
68
68
|
"@typescript-eslint/parser": "^8.34.1",
|
|
69
|
+
"backblaze-b2": "^1.7.1",
|
|
69
70
|
"eslint": "^9.29.0",
|
|
70
71
|
"eslint-config-prettier": "^10.1.5",
|
|
71
72
|
"eslint-plugin-prettier": "^5.5.0",
|
|
72
73
|
"eslint-plugin-sql": "^3.2.2",
|
|
74
|
+
"form-data": "^4.0.3",
|
|
73
75
|
"husky": "^9.1.7",
|
|
74
76
|
"jest": "^30.0.2",
|
|
75
77
|
"lint-staged": "^16.1.2",
|
|
@@ -83,8 +85,10 @@
|
|
|
83
85
|
"@supabase/supabase-js": "^2.50.2",
|
|
84
86
|
"@types/jest": "^30.0.0",
|
|
85
87
|
"@types/node": "^24.0.7",
|
|
88
|
+
"@types/node-fetch": "^2.6.12",
|
|
86
89
|
"commitizen": "^4.3.1",
|
|
87
90
|
"cz-conventional-changelog": "^3.3.0",
|
|
91
|
+
"node-fetch": "^3.3.2",
|
|
88
92
|
"ts-jest": "^29.4.0"
|
|
89
93
|
}
|
|
90
94
|
}
|
package/types/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @everylanguage/shared-types
|
|
2
2
|
|
|
3
|
-
🎯 **Shared TypeScript types
|
|
3
|
+
🎯 **Shared TypeScript types**
|
|
4
4
|
|
|
5
5
|
This package contains automatically generated TypeScript types from our Supabase database schema, ensuring type safety across all applications in the EverlyLanguage ecosystem.
|
|
6
6
|
|
|
@@ -59,6 +59,6 @@ This package follows [Semantic Versioning](https://semver.org/):
|
|
|
59
59
|
|
|
60
60
|
## 🐛 Issues & Support
|
|
61
61
|
|
|
62
|
-
- **Backend Issues**: [Backend Repository](https://github.com/
|
|
63
|
-
- **Type Issues**: [Type-specific issues](https://github.com/
|
|
62
|
+
- **Backend Issues**: [Backend Repository](https://github.com/every-language/el-backend/issues)
|
|
63
|
+
- **Type Issues**: [Type-specific issues](https://github.com/every-language/el-backend/issues?q=label%3Atypes)
|
|
64
64
|
- **Application Integration**: Contact your respective app team
|
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;
|
|
@@ -172,7 +175,7 @@ export type Database = {
|
|
|
172
175
|
};
|
|
173
176
|
Insert: {
|
|
174
177
|
created_at?: string | null;
|
|
175
|
-
id
|
|
178
|
+
id: string;
|
|
176
179
|
name: string;
|
|
177
180
|
structure_notes?: string | null;
|
|
178
181
|
updated_at?: string | null;
|
|
@@ -201,7 +204,7 @@ export type Database = {
|
|
|
201
204
|
book_number: number;
|
|
202
205
|
created_at?: string | null;
|
|
203
206
|
global_order?: number | null;
|
|
204
|
-
id
|
|
207
|
+
id: string;
|
|
205
208
|
name: string;
|
|
206
209
|
updated_at?: string | null;
|
|
207
210
|
};
|
|
@@ -224,6 +227,74 @@ export type Database = {
|
|
|
224
227
|
}
|
|
225
228
|
];
|
|
226
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
|
+
};
|
|
227
298
|
chapters: {
|
|
228
299
|
Row: {
|
|
229
300
|
book_id: string;
|
|
@@ -239,7 +310,7 @@ export type Database = {
|
|
|
239
310
|
chapter_number: number;
|
|
240
311
|
created_at?: string | null;
|
|
241
312
|
global_order?: number | null;
|
|
242
|
-
id
|
|
313
|
+
id: string;
|
|
243
314
|
total_verses: number;
|
|
244
315
|
updated_at?: string | null;
|
|
245
316
|
};
|
|
@@ -608,14 +679,17 @@ export type Database = {
|
|
|
608
679
|
created_by: string | null;
|
|
609
680
|
deleted_at: string | null;
|
|
610
681
|
duration_seconds: number | null;
|
|
682
|
+
end_verse_id: string | null;
|
|
611
683
|
file_size: number | null;
|
|
612
684
|
id: string;
|
|
685
|
+
is_bible_audio: boolean | null;
|
|
613
686
|
language_entity_id: string;
|
|
614
687
|
local_path: string | null;
|
|
615
688
|
media_type: Database["public"]["Enums"]["media_type"];
|
|
616
689
|
project_id: string | null;
|
|
617
690
|
publish_status: Database["public"]["Enums"]["publish_status"] | null;
|
|
618
691
|
remote_path: string | null;
|
|
692
|
+
start_verse_id: string | null;
|
|
619
693
|
updated_at: string | null;
|
|
620
694
|
upload_status: Database["public"]["Enums"]["upload_status"] | null;
|
|
621
695
|
version: number | null;
|
|
@@ -626,14 +700,17 @@ export type Database = {
|
|
|
626
700
|
created_by?: string | null;
|
|
627
701
|
deleted_at?: string | null;
|
|
628
702
|
duration_seconds?: number | null;
|
|
703
|
+
end_verse_id?: string | null;
|
|
629
704
|
file_size?: number | null;
|
|
630
705
|
id?: string;
|
|
706
|
+
is_bible_audio?: boolean | null;
|
|
631
707
|
language_entity_id: string;
|
|
632
708
|
local_path?: string | null;
|
|
633
709
|
media_type: Database["public"]["Enums"]["media_type"];
|
|
634
710
|
project_id?: string | null;
|
|
635
711
|
publish_status?: Database["public"]["Enums"]["publish_status"] | null;
|
|
636
712
|
remote_path?: string | null;
|
|
713
|
+
start_verse_id?: string | null;
|
|
637
714
|
updated_at?: string | null;
|
|
638
715
|
upload_status?: Database["public"]["Enums"]["upload_status"] | null;
|
|
639
716
|
version?: number | null;
|
|
@@ -644,14 +721,17 @@ export type Database = {
|
|
|
644
721
|
created_by?: string | null;
|
|
645
722
|
deleted_at?: string | null;
|
|
646
723
|
duration_seconds?: number | null;
|
|
724
|
+
end_verse_id?: string | null;
|
|
647
725
|
file_size?: number | null;
|
|
648
726
|
id?: string;
|
|
727
|
+
is_bible_audio?: boolean | null;
|
|
649
728
|
language_entity_id?: string;
|
|
650
729
|
local_path?: string | null;
|
|
651
730
|
media_type?: Database["public"]["Enums"]["media_type"];
|
|
652
731
|
project_id?: string | null;
|
|
653
732
|
publish_status?: Database["public"]["Enums"]["publish_status"] | null;
|
|
654
733
|
remote_path?: string | null;
|
|
734
|
+
start_verse_id?: string | null;
|
|
655
735
|
updated_at?: string | null;
|
|
656
736
|
upload_status?: Database["public"]["Enums"]["upload_status"] | null;
|
|
657
737
|
version?: number | null;
|
|
@@ -664,6 +744,13 @@ export type Database = {
|
|
|
664
744
|
referencedRelation: "users";
|
|
665
745
|
referencedColumns: ["id"];
|
|
666
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
|
+
},
|
|
667
754
|
{
|
|
668
755
|
foreignKeyName: "media_files_language_entity_id_fkey";
|
|
669
756
|
columns: ["language_entity_id"];
|
|
@@ -677,6 +764,13 @@ export type Database = {
|
|
|
677
764
|
isOneToOne: false;
|
|
678
765
|
referencedRelation: "projects";
|
|
679
766
|
referencedColumns: ["id"];
|
|
767
|
+
},
|
|
768
|
+
{
|
|
769
|
+
foreignKeyName: "media_files_start_verse_id_fkey";
|
|
770
|
+
columns: ["start_verse_id"];
|
|
771
|
+
isOneToOne: false;
|
|
772
|
+
referencedRelation: "verses";
|
|
773
|
+
referencedColumns: ["id"];
|
|
680
774
|
}
|
|
681
775
|
];
|
|
682
776
|
};
|
|
@@ -735,7 +829,6 @@ export type Database = {
|
|
|
735
829
|
created_by: string | null;
|
|
736
830
|
deleted_at: string | null;
|
|
737
831
|
id: string;
|
|
738
|
-
is_bible_audio: boolean | null;
|
|
739
832
|
media_file_id: string;
|
|
740
833
|
target_id: string;
|
|
741
834
|
target_type: Database["public"]["Enums"]["target_type"];
|
|
@@ -746,7 +839,6 @@ export type Database = {
|
|
|
746
839
|
created_by?: string | null;
|
|
747
840
|
deleted_at?: string | null;
|
|
748
841
|
id?: string;
|
|
749
|
-
is_bible_audio?: boolean | null;
|
|
750
842
|
media_file_id: string;
|
|
751
843
|
target_id: string;
|
|
752
844
|
target_type: Database["public"]["Enums"]["target_type"];
|
|
@@ -757,7 +849,6 @@ export type Database = {
|
|
|
757
849
|
created_by?: string | null;
|
|
758
850
|
deleted_at?: string | null;
|
|
759
851
|
id?: string;
|
|
760
|
-
is_bible_audio?: boolean | null;
|
|
761
852
|
media_file_id?: string;
|
|
762
853
|
target_id?: string;
|
|
763
854
|
target_type?: Database["public"]["Enums"]["target_type"];
|
|
@@ -951,6 +1042,7 @@ export type Database = {
|
|
|
951
1042
|
playlist_groups: {
|
|
952
1043
|
Row: {
|
|
953
1044
|
created_at: string | null;
|
|
1045
|
+
created_by: string | null;
|
|
954
1046
|
description: string | null;
|
|
955
1047
|
id: string;
|
|
956
1048
|
title: string;
|
|
@@ -959,6 +1051,7 @@ export type Database = {
|
|
|
959
1051
|
};
|
|
960
1052
|
Insert: {
|
|
961
1053
|
created_at?: string | null;
|
|
1054
|
+
created_by?: string | null;
|
|
962
1055
|
description?: string | null;
|
|
963
1056
|
id?: string;
|
|
964
1057
|
title: string;
|
|
@@ -967,6 +1060,7 @@ export type Database = {
|
|
|
967
1060
|
};
|
|
968
1061
|
Update: {
|
|
969
1062
|
created_at?: string | null;
|
|
1063
|
+
created_by?: string | null;
|
|
970
1064
|
description?: string | null;
|
|
971
1065
|
id?: string;
|
|
972
1066
|
title?: string;
|
|
@@ -974,6 +1068,13 @@ export type Database = {
|
|
|
974
1068
|
user_id?: string;
|
|
975
1069
|
};
|
|
976
1070
|
Relationships: [
|
|
1071
|
+
{
|
|
1072
|
+
foreignKeyName: "playlist_groups_created_by_fkey";
|
|
1073
|
+
columns: ["created_by"];
|
|
1074
|
+
isOneToOne: false;
|
|
1075
|
+
referencedRelation: "users";
|
|
1076
|
+
referencedColumns: ["id"];
|
|
1077
|
+
},
|
|
977
1078
|
{
|
|
978
1079
|
foreignKeyName: "playlist_groups_user_id_fkey";
|
|
979
1080
|
columns: ["user_id"];
|
|
@@ -1131,6 +1232,7 @@ export type Database = {
|
|
|
1131
1232
|
projects: {
|
|
1132
1233
|
Row: {
|
|
1133
1234
|
created_at: string | null;
|
|
1235
|
+
created_by: string | null;
|
|
1134
1236
|
deleted_at: string | null;
|
|
1135
1237
|
description: string | null;
|
|
1136
1238
|
id: string;
|
|
@@ -1143,6 +1245,7 @@ export type Database = {
|
|
|
1143
1245
|
};
|
|
1144
1246
|
Insert: {
|
|
1145
1247
|
created_at?: string | null;
|
|
1248
|
+
created_by?: string | null;
|
|
1146
1249
|
deleted_at?: string | null;
|
|
1147
1250
|
description?: string | null;
|
|
1148
1251
|
id?: string;
|
|
@@ -1155,6 +1258,7 @@ export type Database = {
|
|
|
1155
1258
|
};
|
|
1156
1259
|
Update: {
|
|
1157
1260
|
created_at?: string | null;
|
|
1261
|
+
created_by?: string | null;
|
|
1158
1262
|
deleted_at?: string | null;
|
|
1159
1263
|
description?: string | null;
|
|
1160
1264
|
id?: string;
|
|
@@ -1166,6 +1270,13 @@ export type Database = {
|
|
|
1166
1270
|
updated_at?: string | null;
|
|
1167
1271
|
};
|
|
1168
1272
|
Relationships: [
|
|
1273
|
+
{
|
|
1274
|
+
foreignKeyName: "projects_created_by_fkey";
|
|
1275
|
+
columns: ["created_by"];
|
|
1276
|
+
isOneToOne: false;
|
|
1277
|
+
referencedRelation: "users";
|
|
1278
|
+
referencedColumns: ["id"];
|
|
1279
|
+
},
|
|
1169
1280
|
{
|
|
1170
1281
|
foreignKeyName: "projects_region_id_fkey";
|
|
1171
1282
|
columns: ["region_id"];
|
|
@@ -1480,7 +1591,6 @@ export type Database = {
|
|
|
1480
1591
|
created_by: string | null;
|
|
1481
1592
|
deleted_at: string | null;
|
|
1482
1593
|
id: string;
|
|
1483
|
-
is_bible_audio: boolean | null;
|
|
1484
1594
|
segment_id: string;
|
|
1485
1595
|
target_id: string;
|
|
1486
1596
|
target_type: Database["public"]["Enums"]["target_type"];
|
|
@@ -1491,7 +1601,6 @@ export type Database = {
|
|
|
1491
1601
|
created_by?: string | null;
|
|
1492
1602
|
deleted_at?: string | null;
|
|
1493
1603
|
id?: string;
|
|
1494
|
-
is_bible_audio?: boolean | null;
|
|
1495
1604
|
segment_id: string;
|
|
1496
1605
|
target_id: string;
|
|
1497
1606
|
target_type: Database["public"]["Enums"]["target_type"];
|
|
@@ -1502,7 +1611,6 @@ export type Database = {
|
|
|
1502
1611
|
created_by?: string | null;
|
|
1503
1612
|
deleted_at?: string | null;
|
|
1504
1613
|
id?: string;
|
|
1505
|
-
is_bible_audio?: boolean | null;
|
|
1506
1614
|
segment_id?: string;
|
|
1507
1615
|
target_id?: string;
|
|
1508
1616
|
target_type?: Database["public"]["Enums"]["target_type"];
|
|
@@ -1529,6 +1637,7 @@ export type Database = {
|
|
|
1529
1637
|
Row: {
|
|
1530
1638
|
book_id: string;
|
|
1531
1639
|
created_at: string | null;
|
|
1640
|
+
created_by: string | null;
|
|
1532
1641
|
deleted_at: string | null;
|
|
1533
1642
|
description: string | null;
|
|
1534
1643
|
end_verse_id: string | null;
|
|
@@ -1542,6 +1651,7 @@ export type Database = {
|
|
|
1542
1651
|
Insert: {
|
|
1543
1652
|
book_id: string;
|
|
1544
1653
|
created_at?: string | null;
|
|
1654
|
+
created_by?: string | null;
|
|
1545
1655
|
deleted_at?: string | null;
|
|
1546
1656
|
description?: string | null;
|
|
1547
1657
|
end_verse_id?: string | null;
|
|
@@ -1555,6 +1665,7 @@ export type Database = {
|
|
|
1555
1665
|
Update: {
|
|
1556
1666
|
book_id?: string;
|
|
1557
1667
|
created_at?: string | null;
|
|
1668
|
+
created_by?: string | null;
|
|
1558
1669
|
deleted_at?: string | null;
|
|
1559
1670
|
description?: string | null;
|
|
1560
1671
|
end_verse_id?: string | null;
|
|
@@ -1573,6 +1684,13 @@ export type Database = {
|
|
|
1573
1684
|
referencedRelation: "books";
|
|
1574
1685
|
referencedColumns: ["id"];
|
|
1575
1686
|
},
|
|
1687
|
+
{
|
|
1688
|
+
foreignKeyName: "sequences_created_by_fkey";
|
|
1689
|
+
columns: ["created_by"];
|
|
1690
|
+
isOneToOne: false;
|
|
1691
|
+
referencedRelation: "users";
|
|
1692
|
+
referencedColumns: ["id"];
|
|
1693
|
+
},
|
|
1576
1694
|
{
|
|
1577
1695
|
foreignKeyName: "sequences_end_verse_id_fkey";
|
|
1578
1696
|
columns: ["end_verse_id"];
|
|
@@ -1599,6 +1717,7 @@ export type Database = {
|
|
|
1599
1717
|
sequences_segments: {
|
|
1600
1718
|
Row: {
|
|
1601
1719
|
created_at: string | null;
|
|
1720
|
+
created_by: string | null;
|
|
1602
1721
|
id: string;
|
|
1603
1722
|
is_deleted: boolean | null;
|
|
1604
1723
|
is_numbered: boolean | null;
|
|
@@ -1610,6 +1729,7 @@ export type Database = {
|
|
|
1610
1729
|
};
|
|
1611
1730
|
Insert: {
|
|
1612
1731
|
created_at?: string | null;
|
|
1732
|
+
created_by?: string | null;
|
|
1613
1733
|
id?: string;
|
|
1614
1734
|
is_deleted?: boolean | null;
|
|
1615
1735
|
is_numbered?: boolean | null;
|
|
@@ -1621,6 +1741,7 @@ export type Database = {
|
|
|
1621
1741
|
};
|
|
1622
1742
|
Update: {
|
|
1623
1743
|
created_at?: string | null;
|
|
1744
|
+
created_by?: string | null;
|
|
1624
1745
|
id?: string;
|
|
1625
1746
|
is_deleted?: boolean | null;
|
|
1626
1747
|
is_numbered?: boolean | null;
|
|
@@ -1631,6 +1752,13 @@ export type Database = {
|
|
|
1631
1752
|
updated_at?: string | null;
|
|
1632
1753
|
};
|
|
1633
1754
|
Relationships: [
|
|
1755
|
+
{
|
|
1756
|
+
foreignKeyName: "sequences_segments_created_by_fkey";
|
|
1757
|
+
columns: ["created_by"];
|
|
1758
|
+
isOneToOne: false;
|
|
1759
|
+
referencedRelation: "users";
|
|
1760
|
+
referencedColumns: ["id"];
|
|
1761
|
+
},
|
|
1634
1762
|
{
|
|
1635
1763
|
foreignKeyName: "sequences_segments_segment_id_fkey";
|
|
1636
1764
|
columns: ["segment_id"];
|
|
@@ -1650,6 +1778,7 @@ export type Database = {
|
|
|
1650
1778
|
sequences_tags: {
|
|
1651
1779
|
Row: {
|
|
1652
1780
|
created_at: string | null;
|
|
1781
|
+
created_by: string | null;
|
|
1653
1782
|
id: string;
|
|
1654
1783
|
sequence_id: string;
|
|
1655
1784
|
tag_id: string;
|
|
@@ -1657,6 +1786,7 @@ export type Database = {
|
|
|
1657
1786
|
};
|
|
1658
1787
|
Insert: {
|
|
1659
1788
|
created_at?: string | null;
|
|
1789
|
+
created_by?: string | null;
|
|
1660
1790
|
id?: string;
|
|
1661
1791
|
sequence_id: string;
|
|
1662
1792
|
tag_id: string;
|
|
@@ -1664,12 +1794,20 @@ export type Database = {
|
|
|
1664
1794
|
};
|
|
1665
1795
|
Update: {
|
|
1666
1796
|
created_at?: string | null;
|
|
1797
|
+
created_by?: string | null;
|
|
1667
1798
|
id?: string;
|
|
1668
1799
|
sequence_id?: string;
|
|
1669
1800
|
tag_id?: string;
|
|
1670
1801
|
updated_at?: string | null;
|
|
1671
1802
|
};
|
|
1672
1803
|
Relationships: [
|
|
1804
|
+
{
|
|
1805
|
+
foreignKeyName: "sequences_tags_created_by_fkey";
|
|
1806
|
+
columns: ["created_by"];
|
|
1807
|
+
isOneToOne: false;
|
|
1808
|
+
referencedRelation: "users";
|
|
1809
|
+
referencedColumns: ["id"];
|
|
1810
|
+
},
|
|
1673
1811
|
{
|
|
1674
1812
|
foreignKeyName: "sequences_tags_sequence_id_fkey";
|
|
1675
1813
|
columns: ["sequence_id"];
|
|
@@ -1692,7 +1830,6 @@ export type Database = {
|
|
|
1692
1830
|
created_by: string | null;
|
|
1693
1831
|
deleted_at: string | null;
|
|
1694
1832
|
id: string;
|
|
1695
|
-
is_bible_audio: boolean | null;
|
|
1696
1833
|
sequence_id: string;
|
|
1697
1834
|
target_id: string;
|
|
1698
1835
|
target_type: Database["public"]["Enums"]["target_type"];
|
|
@@ -1703,7 +1840,6 @@ export type Database = {
|
|
|
1703
1840
|
created_by?: string | null;
|
|
1704
1841
|
deleted_at?: string | null;
|
|
1705
1842
|
id?: string;
|
|
1706
|
-
is_bible_audio?: boolean | null;
|
|
1707
1843
|
sequence_id: string;
|
|
1708
1844
|
target_id: string;
|
|
1709
1845
|
target_type: Database["public"]["Enums"]["target_type"];
|
|
@@ -1714,7 +1850,6 @@ export type Database = {
|
|
|
1714
1850
|
created_by?: string | null;
|
|
1715
1851
|
deleted_at?: string | null;
|
|
1716
1852
|
id?: string;
|
|
1717
|
-
is_bible_audio?: boolean | null;
|
|
1718
1853
|
sequence_id?: string;
|
|
1719
1854
|
target_id?: string;
|
|
1720
1855
|
target_type?: Database["public"]["Enums"]["target_type"];
|
|
@@ -2026,7 +2161,7 @@ export type Database = {
|
|
|
2026
2161
|
created_by: string | null;
|
|
2027
2162
|
deleted_at: string | null;
|
|
2028
2163
|
id: string;
|
|
2029
|
-
|
|
2164
|
+
language_entity_id: string;
|
|
2030
2165
|
name: string;
|
|
2031
2166
|
text_version_source: Database["public"]["Enums"]["text_version_source"] | null;
|
|
2032
2167
|
updated_at: string | null;
|
|
@@ -2037,7 +2172,7 @@ export type Database = {
|
|
|
2037
2172
|
created_by?: string | null;
|
|
2038
2173
|
deleted_at?: string | null;
|
|
2039
2174
|
id?: string;
|
|
2040
|
-
|
|
2175
|
+
language_entity_id: string;
|
|
2041
2176
|
name: string;
|
|
2042
2177
|
text_version_source?: Database["public"]["Enums"]["text_version_source"] | null;
|
|
2043
2178
|
updated_at?: string | null;
|
|
@@ -2048,7 +2183,7 @@ export type Database = {
|
|
|
2048
2183
|
created_by?: string | null;
|
|
2049
2184
|
deleted_at?: string | null;
|
|
2050
2185
|
id?: string;
|
|
2051
|
-
|
|
2186
|
+
language_entity_id?: string;
|
|
2052
2187
|
name?: string;
|
|
2053
2188
|
text_version_source?: Database["public"]["Enums"]["text_version_source"] | null;
|
|
2054
2189
|
updated_at?: string | null;
|
|
@@ -2069,8 +2204,8 @@ export type Database = {
|
|
|
2069
2204
|
referencedColumns: ["id"];
|
|
2070
2205
|
},
|
|
2071
2206
|
{
|
|
2072
|
-
foreignKeyName: "
|
|
2073
|
-
columns: ["
|
|
2207
|
+
foreignKeyName: "text_versions_language_entity_id_fkey";
|
|
2208
|
+
columns: ["language_entity_id"];
|
|
2074
2209
|
isOneToOne: false;
|
|
2075
2210
|
referencedRelation: "language_entities";
|
|
2076
2211
|
referencedColumns: ["id"];
|
|
@@ -2553,7 +2688,7 @@ export type Database = {
|
|
|
2553
2688
|
chapter_id: string;
|
|
2554
2689
|
created_at?: string | null;
|
|
2555
2690
|
global_order?: number | null;
|
|
2556
|
-
id
|
|
2691
|
+
id: string;
|
|
2557
2692
|
updated_at?: string | null;
|
|
2558
2693
|
verse_number: number;
|
|
2559
2694
|
};
|
|
@@ -3320,6 +3455,8 @@ export type Database = {
|
|
|
3320
3455
|
};
|
|
3321
3456
|
get_chapter_global_order: {
|
|
3322
3457
|
Args: {
|
|
3458
|
+
chapter_text_id: string;
|
|
3459
|
+
} | {
|
|
3323
3460
|
chapter_uuid: string;
|
|
3324
3461
|
};
|
|
3325
3462
|
Returns: number;
|
|
@@ -3344,6 +3481,8 @@ export type Database = {
|
|
|
3344
3481
|
};
|
|
3345
3482
|
get_verse_global_order: {
|
|
3346
3483
|
Args: {
|
|
3484
|
+
verse_text_id: string;
|
|
3485
|
+
} | {
|
|
3347
3486
|
verse_uuid: string;
|
|
3348
3487
|
};
|
|
3349
3488
|
Returns: number;
|
|
@@ -5356,6 +5495,9 @@ export type Database = {
|
|
|
5356
5495
|
};
|
|
5357
5496
|
validate_verse_range: {
|
|
5358
5497
|
Args: {
|
|
5498
|
+
start_verse_text_id: string;
|
|
5499
|
+
end_verse_text_id: string;
|
|
5500
|
+
} | {
|
|
5359
5501
|
start_verse_uuid: string;
|
|
5360
5502
|
end_verse_uuid: string;
|
|
5361
5503
|
};
|
|
@@ -5391,54 +5533,55 @@ export type Database = {
|
|
|
5391
5533
|
};
|
|
5392
5534
|
};
|
|
5393
5535
|
};
|
|
5394
|
-
type
|
|
5536
|
+
type DatabaseWithoutInternals = Omit<Database, "__InternalSupabase">;
|
|
5537
|
+
type DefaultSchema = DatabaseWithoutInternals[Extract<keyof Database, "public">];
|
|
5395
5538
|
export type Tables<DefaultSchemaTableNameOrOptions extends keyof (DefaultSchema["Tables"] & DefaultSchema["Views"]) | {
|
|
5396
|
-
schema: keyof
|
|
5539
|
+
schema: keyof DatabaseWithoutInternals;
|
|
5397
5540
|
}, TableName extends DefaultSchemaTableNameOrOptions extends {
|
|
5398
|
-
schema: keyof
|
|
5399
|
-
} ? keyof (
|
|
5400
|
-
schema: keyof
|
|
5401
|
-
} ? (
|
|
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 {
|
|
5402
5545
|
Row: infer R;
|
|
5403
5546
|
} ? R : never : DefaultSchemaTableNameOrOptions extends keyof (DefaultSchema["Tables"] & DefaultSchema["Views"]) ? (DefaultSchema["Tables"] & DefaultSchema["Views"])[DefaultSchemaTableNameOrOptions] extends {
|
|
5404
5547
|
Row: infer R;
|
|
5405
5548
|
} ? R : never : never;
|
|
5406
5549
|
export type TablesInsert<DefaultSchemaTableNameOrOptions extends keyof DefaultSchema["Tables"] | {
|
|
5407
|
-
schema: keyof
|
|
5550
|
+
schema: keyof DatabaseWithoutInternals;
|
|
5408
5551
|
}, TableName extends DefaultSchemaTableNameOrOptions extends {
|
|
5409
|
-
schema: keyof
|
|
5410
|
-
} ? keyof
|
|
5411
|
-
schema: keyof
|
|
5412
|
-
} ?
|
|
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 {
|
|
5413
5556
|
Insert: infer I;
|
|
5414
5557
|
} ? I : never : DefaultSchemaTableNameOrOptions extends keyof DefaultSchema["Tables"] ? DefaultSchema["Tables"][DefaultSchemaTableNameOrOptions] extends {
|
|
5415
5558
|
Insert: infer I;
|
|
5416
5559
|
} ? I : never : never;
|
|
5417
5560
|
export type TablesUpdate<DefaultSchemaTableNameOrOptions extends keyof DefaultSchema["Tables"] | {
|
|
5418
|
-
schema: keyof
|
|
5561
|
+
schema: keyof DatabaseWithoutInternals;
|
|
5419
5562
|
}, TableName extends DefaultSchemaTableNameOrOptions extends {
|
|
5420
|
-
schema: keyof
|
|
5421
|
-
} ? keyof
|
|
5422
|
-
schema: keyof
|
|
5423
|
-
} ?
|
|
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 {
|
|
5424
5567
|
Update: infer U;
|
|
5425
5568
|
} ? U : never : DefaultSchemaTableNameOrOptions extends keyof DefaultSchema["Tables"] ? DefaultSchema["Tables"][DefaultSchemaTableNameOrOptions] extends {
|
|
5426
5569
|
Update: infer U;
|
|
5427
5570
|
} ? U : never : never;
|
|
5428
5571
|
export type Enums<DefaultSchemaEnumNameOrOptions extends keyof DefaultSchema["Enums"] | {
|
|
5429
|
-
schema: keyof
|
|
5572
|
+
schema: keyof DatabaseWithoutInternals;
|
|
5430
5573
|
}, EnumName extends DefaultSchemaEnumNameOrOptions extends {
|
|
5431
|
-
schema: keyof
|
|
5432
|
-
} ? keyof
|
|
5433
|
-
schema: keyof
|
|
5434
|
-
} ?
|
|
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;
|
|
5435
5578
|
export type CompositeTypes<PublicCompositeTypeNameOrOptions extends keyof DefaultSchema["CompositeTypes"] | {
|
|
5436
|
-
schema: keyof
|
|
5579
|
+
schema: keyof DatabaseWithoutInternals;
|
|
5437
5580
|
}, CompositeTypeName extends PublicCompositeTypeNameOrOptions extends {
|
|
5438
|
-
schema: keyof
|
|
5439
|
-
} ? keyof
|
|
5440
|
-
schema: keyof
|
|
5441
|
-
} ?
|
|
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;
|
|
5442
5585
|
export declare const Constants: {
|
|
5443
5586
|
readonly graphql_public: {
|
|
5444
5587
|
readonly Enums: {};
|