@everylanguage/shared-types 1.0.9 → 1.0.10

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 +134 -0
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.10",
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;
@@ -769,6 +834,7 @@ export type Database = {
769
834
  };
770
835
  media_files: {
771
836
  Row: {
837
+ audio_version_id: string | null;
772
838
  check_status: Database["public"]["Enums"]["check_status"] | null;
773
839
  created_at: string | null;
774
840
  created_by: string | null;
@@ -790,6 +856,7 @@ export type Database = {
790
856
  version: number | null;
791
857
  };
792
858
  Insert: {
859
+ audio_version_id?: string | null;
793
860
  check_status?: Database["public"]["Enums"]["check_status"] | null;
794
861
  created_at?: string | null;
795
862
  created_by?: string | null;
@@ -811,6 +878,7 @@ export type Database = {
811
878
  version?: number | null;
812
879
  };
813
880
  Update: {
881
+ audio_version_id?: string | null;
814
882
  check_status?: Database["public"]["Enums"]["check_status"] | null;
815
883
  created_at?: string | null;
816
884
  created_by?: string | null;
@@ -832,6 +900,13 @@ export type Database = {
832
900
  version?: number | null;
833
901
  };
834
902
  Relationships: [
903
+ {
904
+ foreignKeyName: "media_files_audio_version_id_fkey";
905
+ columns: ["audio_version_id"];
906
+ isOneToOne: false;
907
+ referencedRelation: "audio_versions";
908
+ referencedColumns: ["id"];
909
+ },
835
910
  {
836
911
  foreignKeyName: "media_files_created_by_fkey";
837
912
  columns: ["created_by"];
@@ -2258,6 +2333,7 @@ export type Database = {
2258
2333
  id: string;
2259
2334
  language_entity_id: string;
2260
2335
  name: string;
2336
+ project_id: string | null;
2261
2337
  text_version_source: Database["public"]["Enums"]["text_version_source"] | null;
2262
2338
  updated_at: string | null;
2263
2339
  };
@@ -2269,6 +2345,7 @@ export type Database = {
2269
2345
  id?: string;
2270
2346
  language_entity_id: string;
2271
2347
  name: string;
2348
+ project_id?: string | null;
2272
2349
  text_version_source?: Database["public"]["Enums"]["text_version_source"] | null;
2273
2350
  updated_at?: string | null;
2274
2351
  };
@@ -2280,6 +2357,7 @@ export type Database = {
2280
2357
  id?: string;
2281
2358
  language_entity_id?: string;
2282
2359
  name?: string;
2360
+ project_id?: string | null;
2283
2361
  text_version_source?: Database["public"]["Enums"]["text_version_source"] | null;
2284
2362
  updated_at?: string | null;
2285
2363
  };
@@ -2304,6 +2382,13 @@ export type Database = {
2304
2382
  isOneToOne: false;
2305
2383
  referencedRelation: "language_entities";
2306
2384
  referencedColumns: ["id"];
2385
+ },
2386
+ {
2387
+ foreignKeyName: "text_versions_project_id_fkey";
2388
+ columns: ["project_id"];
2389
+ isOneToOne: false;
2390
+ referencedRelation: "projects";
2391
+ referencedColumns: ["id"];
2307
2392
  }
2308
2393
  ];
2309
2394
  };
@@ -2582,6 +2667,55 @@ export type Database = {
2582
2667
  }
2583
2668
  ];
2584
2669
  };
2670
+ user_saved_versions: {
2671
+ Row: {
2672
+ audio_project_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
+ Insert: {
2680
+ audio_project_id?: string | null;
2681
+ created_at?: string | null;
2682
+ id?: string;
2683
+ text_version_id?: string | null;
2684
+ updated_at?: string | null;
2685
+ user_id: string;
2686
+ };
2687
+ Update: {
2688
+ audio_project_id?: string | null;
2689
+ created_at?: string | null;
2690
+ id?: string;
2691
+ text_version_id?: string | null;
2692
+ updated_at?: string | null;
2693
+ user_id?: string;
2694
+ };
2695
+ Relationships: [
2696
+ {
2697
+ foreignKeyName: "user_saved_versions_audio_project_id_fkey";
2698
+ columns: ["audio_project_id"];
2699
+ isOneToOne: false;
2700
+ referencedRelation: "projects";
2701
+ referencedColumns: ["id"];
2702
+ },
2703
+ {
2704
+ foreignKeyName: "user_saved_versions_text_version_id_fkey";
2705
+ columns: ["text_version_id"];
2706
+ isOneToOne: false;
2707
+ referencedRelation: "text_versions";
2708
+ referencedColumns: ["id"];
2709
+ },
2710
+ {
2711
+ foreignKeyName: "user_saved_versions_user_id_fkey";
2712
+ columns: ["user_id"];
2713
+ isOneToOne: false;
2714
+ referencedRelation: "users";
2715
+ referencedColumns: ["id"];
2716
+ }
2717
+ ];
2718
+ };
2585
2719
  users: {
2586
2720
  Row: {
2587
2721
  auth_uid: string;