@everylanguage/shared-types 1.0.9 → 1.0.11

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/types/database.d.ts +144 -36
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everylanguage/shared-types",
3
- "version": "1.0.9",
3
+ "version": "1.0.11",
4
4
  "type": "module",
5
5
  "main": "types/database.js",
6
6
  "types": "types/database.d.ts",
@@ -89,6 +89,71 @@ export type Database = {
89
89
  }
90
90
  ];
91
91
  };
92
+ audio_versions: {
93
+ Row: {
94
+ bible_version_id: string;
95
+ created_at: string | null;
96
+ created_by: string | null;
97
+ deleted_at: string | null;
98
+ id: string;
99
+ language_entity_id: string;
100
+ name: string;
101
+ project_id: string | null;
102
+ updated_at: string | null;
103
+ };
104
+ Insert: {
105
+ bible_version_id: string;
106
+ created_at?: string | null;
107
+ created_by?: string | null;
108
+ deleted_at?: string | null;
109
+ id?: string;
110
+ language_entity_id: string;
111
+ name: string;
112
+ project_id?: string | null;
113
+ updated_at?: string | null;
114
+ };
115
+ Update: {
116
+ bible_version_id?: string;
117
+ created_at?: string | null;
118
+ created_by?: string | null;
119
+ deleted_at?: string | null;
120
+ id?: string;
121
+ language_entity_id?: string;
122
+ name?: string;
123
+ project_id?: string | null;
124
+ updated_at?: string | null;
125
+ };
126
+ Relationships: [
127
+ {
128
+ foreignKeyName: "audio_versions_bible_version_id_fkey";
129
+ columns: ["bible_version_id"];
130
+ isOneToOne: false;
131
+ referencedRelation: "bible_versions";
132
+ referencedColumns: ["id"];
133
+ },
134
+ {
135
+ foreignKeyName: "audio_versions_created_by_fkey";
136
+ columns: ["created_by"];
137
+ isOneToOne: false;
138
+ referencedRelation: "users";
139
+ referencedColumns: ["id"];
140
+ },
141
+ {
142
+ foreignKeyName: "audio_versions_language_entity_id_fkey";
143
+ columns: ["language_entity_id"];
144
+ isOneToOne: false;
145
+ referencedRelation: "language_entities";
146
+ referencedColumns: ["id"];
147
+ },
148
+ {
149
+ foreignKeyName: "audio_versions_project_id_fkey";
150
+ columns: ["project_id"];
151
+ isOneToOne: false;
152
+ referencedRelation: "projects";
153
+ referencedColumns: ["id"];
154
+ }
155
+ ];
156
+ };
92
157
  bases: {
93
158
  Row: {
94
159
  created_at: string | null;
@@ -342,7 +407,6 @@ export type Database = {
342
407
  created_by: string | null;
343
408
  id: string;
344
409
  name: string;
345
- remote_path: string;
346
410
  updated_at: string | null;
347
411
  };
348
412
  Insert: {
@@ -350,7 +414,6 @@ export type Database = {
350
414
  created_by?: string | null;
351
415
  id?: string;
352
416
  name: string;
353
- remote_path: string;
354
417
  updated_at?: string | null;
355
418
  };
356
419
  Update: {
@@ -358,7 +421,6 @@ export type Database = {
358
421
  created_by?: string | null;
359
422
  id?: string;
360
423
  name?: string;
361
- remote_path?: string;
362
424
  updated_at?: string | null;
363
425
  };
364
426
  Relationships: [
@@ -769,6 +831,8 @@ export type Database = {
769
831
  };
770
832
  media_files: {
771
833
  Row: {
834
+ audio_version_id: string | null;
835
+ chapter_id: string | null;
772
836
  check_status: Database["public"]["Enums"]["check_status"] | null;
773
837
  created_at: string | null;
774
838
  created_by: string | null;
@@ -779,9 +843,7 @@ export type Database = {
779
843
  id: string;
780
844
  is_bible_audio: boolean | null;
781
845
  language_entity_id: string;
782
- local_path: string | null;
783
846
  media_type: Database["public"]["Enums"]["media_type"];
784
- project_id: string | null;
785
847
  publish_status: Database["public"]["Enums"]["publish_status"] | null;
786
848
  remote_path: string | null;
787
849
  start_verse_id: string | null;
@@ -790,6 +852,8 @@ export type Database = {
790
852
  version: number | null;
791
853
  };
792
854
  Insert: {
855
+ audio_version_id?: string | null;
856
+ chapter_id?: string | null;
793
857
  check_status?: Database["public"]["Enums"]["check_status"] | null;
794
858
  created_at?: string | null;
795
859
  created_by?: string | null;
@@ -800,9 +864,7 @@ export type Database = {
800
864
  id?: string;
801
865
  is_bible_audio?: boolean | null;
802
866
  language_entity_id: string;
803
- local_path?: string | null;
804
867
  media_type: Database["public"]["Enums"]["media_type"];
805
- project_id?: string | null;
806
868
  publish_status?: Database["public"]["Enums"]["publish_status"] | null;
807
869
  remote_path?: string | null;
808
870
  start_verse_id?: string | null;
@@ -811,6 +873,8 @@ export type Database = {
811
873
  version?: number | null;
812
874
  };
813
875
  Update: {
876
+ audio_version_id?: string | null;
877
+ chapter_id?: string | null;
814
878
  check_status?: Database["public"]["Enums"]["check_status"] | null;
815
879
  created_at?: string | null;
816
880
  created_by?: string | null;
@@ -821,9 +885,7 @@ export type Database = {
821
885
  id?: string;
822
886
  is_bible_audio?: boolean | null;
823
887
  language_entity_id?: string;
824
- local_path?: string | null;
825
888
  media_type?: Database["public"]["Enums"]["media_type"];
826
- project_id?: string | null;
827
889
  publish_status?: Database["public"]["Enums"]["publish_status"] | null;
828
890
  remote_path?: string | null;
829
891
  start_verse_id?: string | null;
@@ -832,6 +894,20 @@ export type Database = {
832
894
  version?: number | null;
833
895
  };
834
896
  Relationships: [
897
+ {
898
+ foreignKeyName: "media_files_audio_version_id_fkey";
899
+ columns: ["audio_version_id"];
900
+ isOneToOne: false;
901
+ referencedRelation: "audio_versions";
902
+ referencedColumns: ["id"];
903
+ },
904
+ {
905
+ foreignKeyName: "media_files_chapter_id_fkey";
906
+ columns: ["chapter_id"];
907
+ isOneToOne: false;
908
+ referencedRelation: "chapters";
909
+ referencedColumns: ["id"];
910
+ },
835
911
  {
836
912
  foreignKeyName: "media_files_created_by_fkey";
837
913
  columns: ["created_by"];
@@ -853,13 +929,6 @@ export type Database = {
853
929
  referencedRelation: "language_entities";
854
930
  referencedColumns: ["id"];
855
931
  },
856
- {
857
- foreignKeyName: "media_files_project_id_fkey";
858
- columns: ["project_id"];
859
- isOneToOne: false;
860
- referencedRelation: "projects";
861
- referencedColumns: ["id"];
862
- },
863
932
  {
864
933
  foreignKeyName: "media_files_start_verse_id_fkey";
865
934
  columns: ["start_verse_id"];
@@ -977,7 +1046,6 @@ export type Database = {
977
1046
  start_time_seconds: number;
978
1047
  updated_at: string | null;
979
1048
  verse_id: string;
980
- verse_text_id: string | null;
981
1049
  };
982
1050
  Insert: {
983
1051
  created_at?: string | null;
@@ -989,7 +1057,6 @@ export type Database = {
989
1057
  start_time_seconds: number;
990
1058
  updated_at?: string | null;
991
1059
  verse_id: string;
992
- verse_text_id?: string | null;
993
1060
  };
994
1061
  Update: {
995
1062
  created_at?: string | null;
@@ -1001,7 +1068,6 @@ export type Database = {
1001
1068
  start_time_seconds?: number;
1002
1069
  updated_at?: string | null;
1003
1070
  verse_id?: string;
1004
- verse_text_id?: string | null;
1005
1071
  };
1006
1072
  Relationships: [
1007
1073
  {
@@ -1024,13 +1090,6 @@ export type Database = {
1024
1090
  isOneToOne: false;
1025
1091
  referencedRelation: "verses";
1026
1092
  referencedColumns: ["id"];
1027
- },
1028
- {
1029
- foreignKeyName: "media_files_verses_verse_text_id_fkey";
1030
- columns: ["verse_text_id"];
1031
- isOneToOne: false;
1032
- referencedRelation: "verse_texts";
1033
- referencedColumns: ["id"];
1034
1093
  }
1035
1094
  ];
1036
1095
  };
@@ -2258,6 +2317,7 @@ export type Database = {
2258
2317
  id: string;
2259
2318
  language_entity_id: string;
2260
2319
  name: string;
2320
+ project_id: string | null;
2261
2321
  text_version_source: Database["public"]["Enums"]["text_version_source"] | null;
2262
2322
  updated_at: string | null;
2263
2323
  };
@@ -2269,6 +2329,7 @@ export type Database = {
2269
2329
  id?: string;
2270
2330
  language_entity_id: string;
2271
2331
  name: string;
2332
+ project_id?: string | null;
2272
2333
  text_version_source?: Database["public"]["Enums"]["text_version_source"] | null;
2273
2334
  updated_at?: string | null;
2274
2335
  };
@@ -2280,6 +2341,7 @@ export type Database = {
2280
2341
  id?: string;
2281
2342
  language_entity_id?: string;
2282
2343
  name?: string;
2344
+ project_id?: string | null;
2283
2345
  text_version_source?: Database["public"]["Enums"]["text_version_source"] | null;
2284
2346
  updated_at?: string | null;
2285
2347
  };
@@ -2304,6 +2366,13 @@ export type Database = {
2304
2366
  isOneToOne: false;
2305
2367
  referencedRelation: "language_entities";
2306
2368
  referencedColumns: ["id"];
2369
+ },
2370
+ {
2371
+ foreignKeyName: "text_versions_project_id_fkey";
2372
+ columns: ["project_id"];
2373
+ isOneToOne: false;
2374
+ referencedRelation: "projects";
2375
+ referencedColumns: ["id"];
2307
2376
  }
2308
2377
  ];
2309
2378
  };
@@ -2582,6 +2651,55 @@ export type Database = {
2582
2651
  }
2583
2652
  ];
2584
2653
  };
2654
+ user_saved_versions: {
2655
+ Row: {
2656
+ audio_version_id: string | null;
2657
+ created_at: string | null;
2658
+ id: string;
2659
+ text_version_id: string | null;
2660
+ updated_at: string | null;
2661
+ user_id: string;
2662
+ };
2663
+ Insert: {
2664
+ audio_version_id?: string | null;
2665
+ created_at?: string | null;
2666
+ id?: string;
2667
+ text_version_id?: string | null;
2668
+ updated_at?: string | null;
2669
+ user_id: string;
2670
+ };
2671
+ Update: {
2672
+ audio_version_id?: string | null;
2673
+ created_at?: string | null;
2674
+ id?: string;
2675
+ text_version_id?: string | null;
2676
+ updated_at?: string | null;
2677
+ user_id?: string;
2678
+ };
2679
+ Relationships: [
2680
+ {
2681
+ foreignKeyName: "user_saved_versions_audio_version_id_fkey";
2682
+ columns: ["audio_version_id"];
2683
+ isOneToOne: false;
2684
+ referencedRelation: "audio_versions";
2685
+ referencedColumns: ["id"];
2686
+ },
2687
+ {
2688
+ foreignKeyName: "user_saved_versions_text_version_id_fkey";
2689
+ columns: ["text_version_id"];
2690
+ isOneToOne: false;
2691
+ referencedRelation: "text_versions";
2692
+ referencedColumns: ["id"];
2693
+ },
2694
+ {
2695
+ foreignKeyName: "user_saved_versions_user_id_fkey";
2696
+ columns: ["user_id"];
2697
+ isOneToOne: false;
2698
+ referencedRelation: "users";
2699
+ referencedColumns: ["id"];
2700
+ }
2701
+ ];
2702
+ };
2585
2703
  users: {
2586
2704
  Row: {
2587
2705
  auth_uid: string;
@@ -2721,7 +2839,6 @@ export type Database = {
2721
2839
  created_by: string | null;
2722
2840
  deleted_at: string | null;
2723
2841
  id: string;
2724
- project_id: string | null;
2725
2842
  publish_status: Database["public"]["Enums"]["publish_status"];
2726
2843
  text_version_id: string | null;
2727
2844
  updated_at: string | null;
@@ -2734,7 +2851,6 @@ export type Database = {
2734
2851
  created_by?: string | null;
2735
2852
  deleted_at?: string | null;
2736
2853
  id?: string;
2737
- project_id?: string | null;
2738
2854
  publish_status?: Database["public"]["Enums"]["publish_status"];
2739
2855
  text_version_id?: string | null;
2740
2856
  updated_at?: string | null;
@@ -2747,7 +2863,6 @@ export type Database = {
2747
2863
  created_by?: string | null;
2748
2864
  deleted_at?: string | null;
2749
2865
  id?: string;
2750
- project_id?: string | null;
2751
2866
  publish_status?: Database["public"]["Enums"]["publish_status"];
2752
2867
  text_version_id?: string | null;
2753
2868
  updated_at?: string | null;
@@ -2763,13 +2878,6 @@ export type Database = {
2763
2878
  referencedRelation: "users";
2764
2879
  referencedColumns: ["id"];
2765
2880
  },
2766
- {
2767
- foreignKeyName: "verse_texts_project_id_fkey";
2768
- columns: ["project_id"];
2769
- isOneToOne: false;
2770
- referencedRelation: "projects";
2771
- referencedColumns: ["id"];
2772
- },
2773
2881
  {
2774
2882
  foreignKeyName: "verse_texts_text_version_id_fkey";
2775
2883
  columns: ["text_version_id"];