@everylanguage/shared-types 1.0.10 → 1.0.12

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 +91 -42
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everylanguage/shared-types",
3
- "version": "1.0.10",
3
+ "version": "1.0.12",
4
4
  "type": "module",
5
5
  "main": "types/database.js",
6
6
  "types": "types/database.d.ts",
@@ -407,7 +407,6 @@ export type Database = {
407
407
  created_by: string | null;
408
408
  id: string;
409
409
  name: string;
410
- remote_path: string;
411
410
  updated_at: string | null;
412
411
  };
413
412
  Insert: {
@@ -415,7 +414,6 @@ export type Database = {
415
414
  created_by?: string | null;
416
415
  id?: string;
417
416
  name: string;
418
- remote_path: string;
419
417
  updated_at?: string | null;
420
418
  };
421
419
  Update: {
@@ -423,7 +421,6 @@ export type Database = {
423
421
  created_by?: string | null;
424
422
  id?: string;
425
423
  name?: string;
426
- remote_path?: string;
427
424
  updated_at?: string | null;
428
425
  };
429
426
  Relationships: [
@@ -835,6 +832,7 @@ export type Database = {
835
832
  media_files: {
836
833
  Row: {
837
834
  audio_version_id: string | null;
835
+ chapter_id: string | null;
838
836
  check_status: Database["public"]["Enums"]["check_status"] | null;
839
837
  created_at: string | null;
840
838
  created_by: string | null;
@@ -845,9 +843,7 @@ export type Database = {
845
843
  id: string;
846
844
  is_bible_audio: boolean | null;
847
845
  language_entity_id: string;
848
- local_path: string | null;
849
846
  media_type: Database["public"]["Enums"]["media_type"];
850
- project_id: string | null;
851
847
  publish_status: Database["public"]["Enums"]["publish_status"] | null;
852
848
  remote_path: string | null;
853
849
  start_verse_id: string | null;
@@ -857,6 +853,7 @@ export type Database = {
857
853
  };
858
854
  Insert: {
859
855
  audio_version_id?: string | null;
856
+ chapter_id?: string | null;
860
857
  check_status?: Database["public"]["Enums"]["check_status"] | null;
861
858
  created_at?: string | null;
862
859
  created_by?: string | null;
@@ -867,9 +864,7 @@ export type Database = {
867
864
  id?: string;
868
865
  is_bible_audio?: boolean | null;
869
866
  language_entity_id: string;
870
- local_path?: string | null;
871
867
  media_type: Database["public"]["Enums"]["media_type"];
872
- project_id?: string | null;
873
868
  publish_status?: Database["public"]["Enums"]["publish_status"] | null;
874
869
  remote_path?: string | null;
875
870
  start_verse_id?: string | null;
@@ -879,6 +874,7 @@ export type Database = {
879
874
  };
880
875
  Update: {
881
876
  audio_version_id?: string | null;
877
+ chapter_id?: string | null;
882
878
  check_status?: Database["public"]["Enums"]["check_status"] | null;
883
879
  created_at?: string | null;
884
880
  created_by?: string | null;
@@ -889,9 +885,7 @@ export type Database = {
889
885
  id?: string;
890
886
  is_bible_audio?: boolean | null;
891
887
  language_entity_id?: string;
892
- local_path?: string | null;
893
888
  media_type?: Database["public"]["Enums"]["media_type"];
894
- project_id?: string | null;
895
889
  publish_status?: Database["public"]["Enums"]["publish_status"] | null;
896
890
  remote_path?: string | null;
897
891
  start_verse_id?: string | null;
@@ -907,6 +901,13 @@ export type Database = {
907
901
  referencedRelation: "audio_versions";
908
902
  referencedColumns: ["id"];
909
903
  },
904
+ {
905
+ foreignKeyName: "media_files_chapter_id_fkey";
906
+ columns: ["chapter_id"];
907
+ isOneToOne: false;
908
+ referencedRelation: "chapters";
909
+ referencedColumns: ["id"];
910
+ },
910
911
  {
911
912
  foreignKeyName: "media_files_created_by_fkey";
912
913
  columns: ["created_by"];
@@ -928,13 +929,6 @@ export type Database = {
928
929
  referencedRelation: "language_entities";
929
930
  referencedColumns: ["id"];
930
931
  },
931
- {
932
- foreignKeyName: "media_files_project_id_fkey";
933
- columns: ["project_id"];
934
- isOneToOne: false;
935
- referencedRelation: "projects";
936
- referencedColumns: ["id"];
937
- },
938
932
  {
939
933
  foreignKeyName: "media_files_start_verse_id_fkey";
940
934
  columns: ["start_verse_id"];
@@ -1052,7 +1046,6 @@ export type Database = {
1052
1046
  start_time_seconds: number;
1053
1047
  updated_at: string | null;
1054
1048
  verse_id: string;
1055
- verse_text_id: string | null;
1056
1049
  };
1057
1050
  Insert: {
1058
1051
  created_at?: string | null;
@@ -1064,7 +1057,6 @@ export type Database = {
1064
1057
  start_time_seconds: number;
1065
1058
  updated_at?: string | null;
1066
1059
  verse_id: string;
1067
- verse_text_id?: string | null;
1068
1060
  };
1069
1061
  Update: {
1070
1062
  created_at?: string | null;
@@ -1076,7 +1068,6 @@ export type Database = {
1076
1068
  start_time_seconds?: number;
1077
1069
  updated_at?: string | null;
1078
1070
  verse_id?: string;
1079
- verse_text_id?: string | null;
1080
1071
  };
1081
1072
  Relationships: [
1082
1073
  {
@@ -1099,13 +1090,6 @@ export type Database = {
1099
1090
  isOneToOne: false;
1100
1091
  referencedRelation: "verses";
1101
1092
  referencedColumns: ["id"];
1102
- },
1103
- {
1104
- foreignKeyName: "media_files_verses_verse_text_id_fkey";
1105
- columns: ["verse_text_id"];
1106
- isOneToOne: false;
1107
- referencedRelation: "verse_texts";
1108
- referencedColumns: ["id"];
1109
1093
  }
1110
1094
  ];
1111
1095
  };
@@ -2669,7 +2653,7 @@ export type Database = {
2669
2653
  };
2670
2654
  user_saved_versions: {
2671
2655
  Row: {
2672
- audio_project_id: string | null;
2656
+ audio_version_id: string | null;
2673
2657
  created_at: string | null;
2674
2658
  id: string;
2675
2659
  text_version_id: string | null;
@@ -2677,7 +2661,7 @@ export type Database = {
2677
2661
  user_id: string;
2678
2662
  };
2679
2663
  Insert: {
2680
- audio_project_id?: string | null;
2664
+ audio_version_id?: string | null;
2681
2665
  created_at?: string | null;
2682
2666
  id?: string;
2683
2667
  text_version_id?: string | null;
@@ -2685,7 +2669,7 @@ export type Database = {
2685
2669
  user_id: string;
2686
2670
  };
2687
2671
  Update: {
2688
- audio_project_id?: string | null;
2672
+ audio_version_id?: string | null;
2689
2673
  created_at?: string | null;
2690
2674
  id?: string;
2691
2675
  text_version_id?: string | null;
@@ -2694,10 +2678,10 @@ export type Database = {
2694
2678
  };
2695
2679
  Relationships: [
2696
2680
  {
2697
- foreignKeyName: "user_saved_versions_audio_project_id_fkey";
2698
- columns: ["audio_project_id"];
2681
+ foreignKeyName: "user_saved_versions_audio_version_id_fkey";
2682
+ columns: ["audio_version_id"];
2699
2683
  isOneToOne: false;
2700
- referencedRelation: "projects";
2684
+ referencedRelation: "audio_versions";
2701
2685
  referencedColumns: ["id"];
2702
2686
  },
2703
2687
  {
@@ -2781,6 +2765,77 @@ export type Database = {
2781
2765
  }
2782
2766
  ];
2783
2767
  };
2768
+ verse_feedback: {
2769
+ Row: {
2770
+ actioned: Database["public"]["Enums"]["feedback_actioned"];
2771
+ created_at: string | null;
2772
+ created_by: string | null;
2773
+ feedback_text: string | null;
2774
+ feedback_type: Database["public"]["Enums"]["feedback_type"];
2775
+ id: string;
2776
+ media_files_id: string;
2777
+ updated_at: string | null;
2778
+ updated_by: string | null;
2779
+ verse_id: string;
2780
+ version: number;
2781
+ };
2782
+ Insert: {
2783
+ actioned?: Database["public"]["Enums"]["feedback_actioned"];
2784
+ created_at?: string | null;
2785
+ created_by?: string | null;
2786
+ feedback_text?: string | null;
2787
+ feedback_type: Database["public"]["Enums"]["feedback_type"];
2788
+ id?: string;
2789
+ media_files_id: string;
2790
+ updated_at?: string | null;
2791
+ updated_by?: string | null;
2792
+ verse_id: string;
2793
+ version?: number;
2794
+ };
2795
+ Update: {
2796
+ actioned?: Database["public"]["Enums"]["feedback_actioned"];
2797
+ created_at?: string | null;
2798
+ created_by?: string | null;
2799
+ feedback_text?: string | null;
2800
+ feedback_type?: Database["public"]["Enums"]["feedback_type"];
2801
+ id?: string;
2802
+ media_files_id?: string;
2803
+ updated_at?: string | null;
2804
+ updated_by?: string | null;
2805
+ verse_id?: string;
2806
+ version?: number;
2807
+ };
2808
+ Relationships: [
2809
+ {
2810
+ foreignKeyName: "verse_feedback_created_by_fkey";
2811
+ columns: ["created_by"];
2812
+ isOneToOne: false;
2813
+ referencedRelation: "users";
2814
+ referencedColumns: ["id"];
2815
+ },
2816
+ {
2817
+ foreignKeyName: "verse_feedback_media_files_id_fkey";
2818
+ columns: ["media_files_id"];
2819
+ isOneToOne: false;
2820
+ referencedRelation: "media_files";
2821
+ referencedColumns: ["id"];
2822
+ },
2823
+ {
2824
+ foreignKeyName: "verse_feedback_updated_by_fkey";
2825
+ columns: ["updated_by"];
2826
+ isOneToOne: false;
2827
+ referencedRelation: "users";
2828
+ referencedColumns: ["id"];
2829
+ },
2830
+ {
2831
+ foreignKeyName: "verse_feedback_verse_id_fkey";
2832
+ columns: ["verse_id"];
2833
+ isOneToOne: false;
2834
+ referencedRelation: "verses";
2835
+ referencedColumns: ["id"];
2836
+ }
2837
+ ];
2838
+ };
2784
2839
  verse_listens: {
2785
2840
  Row: {
2786
2841
  anon_user_id: string;
@@ -2855,7 +2910,6 @@ export type Database = {
2855
2910
  created_by: string | null;
2856
2911
  deleted_at: string | null;
2857
2912
  id: string;
2858
- project_id: string | null;
2859
2913
  publish_status: Database["public"]["Enums"]["publish_status"];
2860
2914
  text_version_id: string | null;
2861
2915
  updated_at: string | null;
@@ -2868,7 +2922,6 @@ export type Database = {
2868
2922
  created_by?: string | null;
2869
2923
  deleted_at?: string | null;
2870
2924
  id?: string;
2871
- project_id?: string | null;
2872
2925
  publish_status?: Database["public"]["Enums"]["publish_status"];
2873
2926
  text_version_id?: string | null;
2874
2927
  updated_at?: string | null;
@@ -2881,7 +2934,6 @@ export type Database = {
2881
2934
  created_by?: string | null;
2882
2935
  deleted_at?: string | null;
2883
2936
  id?: string;
2884
- project_id?: string | null;
2885
2937
  publish_status?: Database["public"]["Enums"]["publish_status"];
2886
2938
  text_version_id?: string | null;
2887
2939
  updated_at?: string | null;
@@ -2897,13 +2949,6 @@ export type Database = {
2897
2949
  referencedRelation: "users";
2898
2950
  referencedColumns: ["id"];
2899
2951
  },
2900
- {
2901
- foreignKeyName: "verse_texts_project_id_fkey";
2902
- columns: ["project_id"];
2903
- isOneToOne: false;
2904
- referencedRelation: "projects";
2905
- referencedColumns: ["id"];
2906
- },
2907
2952
  {
2908
2953
  foreignKeyName: "verse_texts_text_version_id_fkey";
2909
2954
  columns: ["text_version_id"];
@@ -5754,6 +5799,8 @@ export type Database = {
5754
5799
  check_status: "pending" | "approved" | "rejected" | "requires_review";
5755
5800
  connectivity_type: "wifi" | "cellular" | "offline" | "unknown";
5756
5801
  contribution_status: "approved" | "not_approved";
5802
+ feedback_actioned: "pending" | "actioned" | "rejected";
5803
+ feedback_type: "approved" | "change_required";
5757
5804
  language_entity_level: "family" | "language" | "dialect" | "mother_tongue";
5758
5805
  media_type: "audio" | "video";
5759
5806
  platform_type: "ios" | "android" | "web" | "desktop";
@@ -5838,6 +5885,8 @@ export declare const Constants: {
5838
5885
  readonly check_status: readonly ["pending", "approved", "rejected", "requires_review"];
5839
5886
  readonly connectivity_type: readonly ["wifi", "cellular", "offline", "unknown"];
5840
5887
  readonly contribution_status: readonly ["approved", "not_approved"];
5888
+ readonly feedback_actioned: readonly ["pending", "actioned", "rejected"];
5889
+ readonly feedback_type: readonly ["approved", "change_required"];
5841
5890
  readonly language_entity_level: readonly ["family", "language", "dialect", "mother_tongue"];
5842
5891
  readonly media_type: readonly ["audio", "video"];
5843
5892
  readonly platform_type: readonly ["ios", "android", "web", "desktop"];