@everylanguage/shared-types 1.0.16 → 1.0.17

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 +249 -260
@@ -15,10 +15,10 @@ export type Database = {
15
15
  Functions: {
16
16
  graphql: {
17
17
  Args: {
18
+ extensions?: Json;
18
19
  operationName?: string;
19
20
  query?: string;
20
21
  variables?: Json;
21
- extensions?: Json;
22
22
  };
23
23
  Returns: Json;
24
24
  };
@@ -35,47 +35,44 @@ export type Database = {
35
35
  app_downloads: {
36
36
  Row: {
37
37
  app_version: string;
38
- created_at: string | null;
39
38
  device_id: string;
39
+ downloaded_at: string | null;
40
40
  id: string;
41
- installed_at: string | null;
42
41
  location: unknown | null;
42
+ origin_share_id: string | null;
43
43
  os: string | null;
44
44
  os_version: string | null;
45
45
  platform: Database["public"]["Enums"]["platform_type"];
46
- source_share_id: string | null;
47
46
  user_id: string | null;
48
47
  };
49
48
  Insert: {
50
49
  app_version: string;
51
- created_at?: string | null;
52
50
  device_id: string;
51
+ downloaded_at?: string | null;
53
52
  id?: string;
54
- installed_at?: string | null;
55
53
  location?: unknown | null;
54
+ origin_share_id?: string | null;
56
55
  os?: string | null;
57
56
  os_version?: string | null;
58
57
  platform: Database["public"]["Enums"]["platform_type"];
59
- source_share_id?: string | null;
60
58
  user_id?: string | null;
61
59
  };
62
60
  Update: {
63
61
  app_version?: string;
64
- created_at?: string | null;
65
62
  device_id?: string;
63
+ downloaded_at?: string | null;
66
64
  id?: string;
67
- installed_at?: string | null;
68
65
  location?: unknown | null;
66
+ origin_share_id?: string | null;
69
67
  os?: string | null;
70
68
  os_version?: string | null;
71
69
  platform?: Database["public"]["Enums"]["platform_type"];
72
- source_share_id?: string | null;
73
70
  user_id?: string | null;
74
71
  };
75
72
  Relationships: [
76
73
  {
77
- foreignKeyName: "app_downloads_source_share_id_fkey";
78
- columns: ["source_share_id"];
74
+ foreignKeyName: "app_downloads_origin_share_id_fkey";
75
+ columns: ["origin_share_id"];
79
76
  isOneToOne: false;
80
77
  referencedRelation: "shares";
81
78
  referencedColumns: ["id"];
@@ -298,37 +295,28 @@ export type Database = {
298
295
  chapter_listens: {
299
296
  Row: {
300
297
  chapter_id: string;
301
- connectivity: Database["public"]["Enums"]["connectivity_type"] | null;
302
- created_at: string | null;
303
- device_id: string;
304
298
  id: string;
305
299
  language_entity_id: string;
306
300
  listened_at: string | null;
307
- location: unknown | null;
301
+ origin_share_id: string | null;
308
302
  session_id: string;
309
303
  user_id: string | null;
310
304
  };
311
305
  Insert: {
312
306
  chapter_id: string;
313
- connectivity?: Database["public"]["Enums"]["connectivity_type"] | null;
314
- created_at?: string | null;
315
- device_id: string;
316
307
  id?: string;
317
308
  language_entity_id: string;
318
309
  listened_at?: string | null;
319
- location?: unknown | null;
310
+ origin_share_id?: string | null;
320
311
  session_id: string;
321
312
  user_id?: string | null;
322
313
  };
323
314
  Update: {
324
315
  chapter_id?: string;
325
- connectivity?: Database["public"]["Enums"]["connectivity_type"] | null;
326
- created_at?: string | null;
327
- device_id?: string;
328
316
  id?: string;
329
317
  language_entity_id?: string;
330
318
  listened_at?: string | null;
331
- location?: unknown | null;
319
+ origin_share_id?: string | null;
332
320
  session_id?: string;
333
321
  user_id?: string | null;
334
322
  };
@@ -347,6 +335,13 @@ export type Database = {
347
335
  referencedRelation: "language_entities";
348
336
  referencedColumns: ["id"];
349
337
  },
338
+ {
339
+ foreignKeyName: "chapter_listens_origin_share_id_fkey";
340
+ columns: ["origin_share_id"];
341
+ isOneToOne: false;
342
+ referencedRelation: "shares";
343
+ referencedColumns: ["id"];
344
+ },
350
345
  {
351
346
  foreignKeyName: "chapter_listens_session_id_fkey";
352
347
  columns: ["session_id"];
@@ -439,9 +434,11 @@ export type Database = {
439
434
  created_by: string | null;
440
435
  deleted_at: string | null;
441
436
  id: string;
437
+ object_key: string | null;
442
438
  publish_status: Database["public"]["Enums"]["publish_status"];
443
439
  remote_path: string;
444
440
  set_id: string | null;
441
+ storage_provider: string | null;
445
442
  target_id: string;
446
443
  target_type: Database["public"]["Enums"]["target_type"];
447
444
  updated_at: string | null;
@@ -452,9 +449,11 @@ export type Database = {
452
449
  created_by?: string | null;
453
450
  deleted_at?: string | null;
454
451
  id?: string;
452
+ object_key?: string | null;
455
453
  publish_status?: Database["public"]["Enums"]["publish_status"];
456
454
  remote_path: string;
457
455
  set_id?: string | null;
456
+ storage_provider?: string | null;
458
457
  target_id: string;
459
458
  target_type: Database["public"]["Enums"]["target_type"];
460
459
  updated_at?: string | null;
@@ -465,9 +464,11 @@ export type Database = {
465
464
  created_by?: string | null;
466
465
  deleted_at?: string | null;
467
466
  id?: string;
467
+ object_key?: string | null;
468
468
  publish_status?: Database["public"]["Enums"]["publish_status"];
469
469
  remote_path?: string;
470
470
  set_id?: string | null;
471
+ storage_provider?: string | null;
471
472
  target_id?: string;
472
473
  target_type?: Database["public"]["Enums"]["target_type"];
473
474
  updated_at?: string | null;
@@ -760,46 +761,37 @@ export type Database = {
760
761
  };
761
762
  media_file_listens: {
762
763
  Row: {
763
- connectivity: Database["public"]["Enums"]["connectivity_type"] | null;
764
- created_at: string | null;
765
- device_id: string;
766
764
  duration_seconds: number;
767
765
  id: string;
768
766
  language_entity_id: string;
769
767
  listened_at: string | null;
770
- location: unknown | null;
771
768
  media_file_id: string;
769
+ origin_share_id: string | null;
772
770
  position_seconds: number;
773
771
  session_id: string;
774
- user_id: string;
772
+ user_id: string | null;
775
773
  };
776
774
  Insert: {
777
- connectivity?: Database["public"]["Enums"]["connectivity_type"] | null;
778
- created_at?: string | null;
779
- device_id: string;
780
775
  duration_seconds: number;
781
776
  id?: string;
782
777
  language_entity_id: string;
783
778
  listened_at?: string | null;
784
- location?: unknown | null;
785
779
  media_file_id: string;
780
+ origin_share_id?: string | null;
786
781
  position_seconds: number;
787
782
  session_id: string;
788
- user_id: string;
783
+ user_id?: string | null;
789
784
  };
790
785
  Update: {
791
- connectivity?: Database["public"]["Enums"]["connectivity_type"] | null;
792
- created_at?: string | null;
793
- device_id?: string;
794
786
  duration_seconds?: number;
795
787
  id?: string;
796
788
  language_entity_id?: string;
797
789
  listened_at?: string | null;
798
- location?: unknown | null;
799
790
  media_file_id?: string;
791
+ origin_share_id?: string | null;
800
792
  position_seconds?: number;
801
793
  session_id?: string;
802
- user_id?: string;
794
+ user_id?: string | null;
803
795
  };
804
796
  Relationships: [
805
797
  {
@@ -816,6 +808,13 @@ export type Database = {
816
808
  referencedRelation: "media_files";
817
809
  referencedColumns: ["id"];
818
810
  },
811
+ {
812
+ foreignKeyName: "media_file_listens_origin_share_id_fkey";
813
+ columns: ["origin_share_id"];
814
+ isOneToOne: false;
815
+ referencedRelation: "shares";
816
+ referencedColumns: ["id"];
817
+ },
819
818
  {
820
819
  foreignKeyName: "media_file_listens_session_id_fkey";
821
820
  columns: ["session_id"];
@@ -847,9 +846,11 @@ export type Database = {
847
846
  is_bible_audio: boolean | null;
848
847
  language_entity_id: string;
849
848
  media_type: Database["public"]["Enums"]["media_type"];
849
+ object_key: string | null;
850
850
  publish_status: Database["public"]["Enums"]["publish_status"] | null;
851
851
  remote_path: string | null;
852
852
  start_verse_id: string | null;
853
+ storage_provider: string | null;
853
854
  updated_at: string | null;
854
855
  upload_status: Database["public"]["Enums"]["upload_status"] | null;
855
856
  version: number | null;
@@ -868,9 +869,11 @@ export type Database = {
868
869
  is_bible_audio?: boolean | null;
869
870
  language_entity_id: string;
870
871
  media_type: Database["public"]["Enums"]["media_type"];
872
+ object_key?: string | null;
871
873
  publish_status?: Database["public"]["Enums"]["publish_status"] | null;
872
874
  remote_path?: string | null;
873
875
  start_verse_id?: string | null;
876
+ storage_provider?: string | null;
874
877
  updated_at?: string | null;
875
878
  upload_status?: Database["public"]["Enums"]["upload_status"] | null;
876
879
  version?: number | null;
@@ -889,9 +892,11 @@ export type Database = {
889
892
  is_bible_audio?: boolean | null;
890
893
  language_entity_id?: string;
891
894
  media_type?: Database["public"]["Enums"]["media_type"];
895
+ object_key?: string | null;
892
896
  publish_status?: Database["public"]["Enums"]["publish_status"] | null;
893
897
  remote_path?: string | null;
894
898
  start_verse_id?: string | null;
899
+ storage_provider?: string | null;
895
900
  updated_at?: string | null;
896
901
  upload_status?: Database["public"]["Enums"]["upload_status"] | null;
897
902
  version?: number | null;
@@ -1210,31 +1215,37 @@ export type Database = {
1210
1215
  Row: {
1211
1216
  created_at: string | null;
1212
1217
  created_by: string | null;
1218
+ custom_text: string | null;
1219
+ end_verse_id: string | null;
1213
1220
  id: string;
1214
1221
  order_index: number;
1215
1222
  playlist_id: string;
1216
- target_id: string;
1217
- target_type: Database["public"]["Enums"]["target_type"];
1223
+ playlist_item_type: Database["public"]["Enums"]["playlist_item_type"] | null;
1224
+ start_verse_id: string | null;
1218
1225
  updated_at: string | null;
1219
1226
  };
1220
1227
  Insert: {
1221
1228
  created_at?: string | null;
1222
1229
  created_by?: string | null;
1230
+ custom_text?: string | null;
1231
+ end_verse_id?: string | null;
1223
1232
  id?: string;
1224
1233
  order_index: number;
1225
1234
  playlist_id: string;
1226
- target_id: string;
1227
- target_type: Database["public"]["Enums"]["target_type"];
1235
+ playlist_item_type?: Database["public"]["Enums"]["playlist_item_type"] | null;
1236
+ start_verse_id?: string | null;
1228
1237
  updated_at?: string | null;
1229
1238
  };
1230
1239
  Update: {
1231
1240
  created_at?: string | null;
1232
1241
  created_by?: string | null;
1242
+ custom_text?: string | null;
1243
+ end_verse_id?: string | null;
1233
1244
  id?: string;
1234
1245
  order_index?: number;
1235
1246
  playlist_id?: string;
1236
- target_id?: string;
1237
- target_type?: Database["public"]["Enums"]["target_type"];
1247
+ playlist_item_type?: Database["public"]["Enums"]["playlist_item_type"] | null;
1248
+ start_verse_id?: string | null;
1238
1249
  updated_at?: string | null;
1239
1250
  };
1240
1251
  Relationships: [
@@ -1245,12 +1256,26 @@ export type Database = {
1245
1256
  referencedRelation: "users";
1246
1257
  referencedColumns: ["id"];
1247
1258
  },
1259
+ {
1260
+ foreignKeyName: "playlist_items_end_verse_id_fkey";
1261
+ columns: ["end_verse_id"];
1262
+ isOneToOne: false;
1263
+ referencedRelation: "verses";
1264
+ referencedColumns: ["id"];
1265
+ },
1248
1266
  {
1249
1267
  foreignKeyName: "playlist_items_playlist_id_fkey";
1250
1268
  columns: ["playlist_id"];
1251
1269
  isOneToOne: false;
1252
1270
  referencedRelation: "playlists";
1253
1271
  referencedColumns: ["id"];
1272
+ },
1273
+ {
1274
+ foreignKeyName: "playlist_items_start_verse_id_fkey";
1275
+ columns: ["start_verse_id"];
1276
+ isOneToOne: false;
1277
+ referencedRelation: "verses";
1278
+ referencedColumns: ["id"];
1254
1279
  }
1255
1280
  ];
1256
1281
  };
@@ -1947,48 +1972,64 @@ export type Database = {
1947
1972
  };
1948
1973
  sessions: {
1949
1974
  Row: {
1975
+ app_download_id: string | null;
1950
1976
  app_version: string;
1951
1977
  connectivity: Database["public"]["Enums"]["connectivity_type"] | null;
1952
- created_at: string | null;
1953
- device_id: string;
1978
+ continent_code: string | null;
1979
+ country_code: string | null;
1954
1980
  ended_at: string | null;
1955
1981
  id: string;
1956
1982
  location: unknown | null;
1983
+ location_source: Database["public"]["Enums"]["location_source_type"] | null;
1957
1984
  os: string | null;
1958
1985
  os_version: string | null;
1959
1986
  platform: Database["public"]["Enums"]["platform_type"];
1987
+ region_code: string | null;
1960
1988
  started_at: string | null;
1961
- user_id: string;
1989
+ user_id: string | null;
1962
1990
  };
1963
1991
  Insert: {
1992
+ app_download_id?: string | null;
1964
1993
  app_version: string;
1965
1994
  connectivity?: Database["public"]["Enums"]["connectivity_type"] | null;
1966
- created_at?: string | null;
1967
- device_id: string;
1995
+ continent_code?: string | null;
1996
+ country_code?: string | null;
1968
1997
  ended_at?: string | null;
1969
1998
  id?: string;
1970
1999
  location?: unknown | null;
2000
+ location_source?: Database["public"]["Enums"]["location_source_type"] | null;
1971
2001
  os?: string | null;
1972
2002
  os_version?: string | null;
1973
2003
  platform: Database["public"]["Enums"]["platform_type"];
2004
+ region_code?: string | null;
1974
2005
  started_at?: string | null;
1975
- user_id: string;
2006
+ user_id?: string | null;
1976
2007
  };
1977
2008
  Update: {
2009
+ app_download_id?: string | null;
1978
2010
  app_version?: string;
1979
2011
  connectivity?: Database["public"]["Enums"]["connectivity_type"] | null;
1980
- created_at?: string | null;
1981
- device_id?: string;
2012
+ continent_code?: string | null;
2013
+ country_code?: string | null;
1982
2014
  ended_at?: string | null;
1983
2015
  id?: string;
1984
2016
  location?: unknown | null;
2017
+ location_source?: Database["public"]["Enums"]["location_source_type"] | null;
1985
2018
  os?: string | null;
1986
2019
  os_version?: string | null;
1987
2020
  platform?: Database["public"]["Enums"]["platform_type"];
2021
+ region_code?: string | null;
1988
2022
  started_at?: string | null;
1989
- user_id?: string;
2023
+ user_id?: string | null;
1990
2024
  };
1991
2025
  Relationships: [
2026
+ {
2027
+ foreignKeyName: "sessions_app_download_id_fkey";
2028
+ columns: ["app_download_id"];
2029
+ isOneToOne: false;
2030
+ referencedRelation: "app_downloads";
2031
+ referencedColumns: ["id"];
2032
+ },
1992
2033
  {
1993
2034
  foreignKeyName: "sessions_user_id_fkey";
1994
2035
  columns: ["user_id"];
@@ -2001,10 +2042,7 @@ export type Database = {
2001
2042
  share_opens: {
2002
2043
  Row: {
2003
2044
  created_at: string | null;
2004
- device_id: string | null;
2005
2045
  id: string;
2006
- language_entity_id: string;
2007
- location: unknown | null;
2008
2046
  opened_at: string | null;
2009
2047
  origin_share_id: string | null;
2010
2048
  session_id: string | null;
@@ -2013,10 +2051,7 @@ export type Database = {
2013
2051
  };
2014
2052
  Insert: {
2015
2053
  created_at?: string | null;
2016
- device_id?: string | null;
2017
2054
  id?: string;
2018
- language_entity_id: string;
2019
- location?: unknown | null;
2020
2055
  opened_at?: string | null;
2021
2056
  origin_share_id?: string | null;
2022
2057
  session_id?: string | null;
@@ -2025,10 +2060,7 @@ export type Database = {
2025
2060
  };
2026
2061
  Update: {
2027
2062
  created_at?: string | null;
2028
- device_id?: string | null;
2029
2063
  id?: string;
2030
- language_entity_id?: string;
2031
- location?: unknown | null;
2032
2064
  opened_at?: string | null;
2033
2065
  origin_share_id?: string | null;
2034
2066
  session_id?: string | null;
@@ -2036,13 +2068,6 @@ export type Database = {
2036
2068
  user_id?: string | null;
2037
2069
  };
2038
2070
  Relationships: [
2039
- {
2040
- foreignKeyName: "share_opens_language_entity_id_fkey";
2041
- columns: ["language_entity_id"];
2042
- isOneToOne: false;
2043
- referencedRelation: "language_entities";
2044
- referencedColumns: ["id"];
2045
- },
2046
2071
  {
2047
2072
  foreignKeyName: "share_opens_origin_share_id_fkey";
2048
2073
  columns: ["origin_share_id"];
@@ -2075,43 +2100,34 @@ export type Database = {
2075
2100
  };
2076
2101
  shares: {
2077
2102
  Row: {
2078
- created_at: string | null;
2079
- device_id: string;
2080
2103
  id: string;
2081
2104
  language_entity_id: string;
2082
- location: unknown | null;
2083
2105
  origin_share_id: string | null;
2084
2106
  session_id: string;
2085
2107
  share_entity_id: string;
2086
2108
  share_entity_type: Database["public"]["Enums"]["share_entity_type"];
2087
2109
  shared_at: string | null;
2088
- user_id: string;
2110
+ user_id: string | null;
2089
2111
  };
2090
2112
  Insert: {
2091
- created_at?: string | null;
2092
- device_id: string;
2093
2113
  id?: string;
2094
2114
  language_entity_id: string;
2095
- location?: unknown | null;
2096
2115
  origin_share_id?: string | null;
2097
2116
  session_id: string;
2098
2117
  share_entity_id: string;
2099
2118
  share_entity_type: Database["public"]["Enums"]["share_entity_type"];
2100
2119
  shared_at?: string | null;
2101
- user_id: string;
2120
+ user_id?: string | null;
2102
2121
  };
2103
2122
  Update: {
2104
- created_at?: string | null;
2105
- device_id?: string;
2106
2123
  id?: string;
2107
2124
  language_entity_id?: string;
2108
- location?: unknown | null;
2109
2125
  origin_share_id?: string | null;
2110
2126
  session_id?: string;
2111
2127
  share_entity_id?: string;
2112
2128
  share_entity_type?: Database["public"]["Enums"]["share_entity_type"];
2113
2129
  shared_at?: string | null;
2114
- user_id?: string;
2130
+ user_id?: string | null;
2115
2131
  };
2116
2132
  Relationships: [
2117
2133
  {
@@ -2343,34 +2359,37 @@ export type Database = {
2343
2359
  user_bookmarks: {
2344
2360
  Row: {
2345
2361
  bookmark_folder_id: string | null;
2362
+ bookmark_type: Database["public"]["Enums"]["bookmark_type"] | null;
2346
2363
  color: string | null;
2347
2364
  created_at: string | null;
2365
+ end_verse_id: string | null;
2348
2366
  id: string;
2349
2367
  note: string | null;
2350
- target_id: string;
2351
- target_type: Database["public"]["Enums"]["target_type"];
2368
+ start_verse_id: string | null;
2352
2369
  updated_at: string | null;
2353
2370
  user_id: string;
2354
2371
  };
2355
2372
  Insert: {
2356
2373
  bookmark_folder_id?: string | null;
2374
+ bookmark_type?: Database["public"]["Enums"]["bookmark_type"] | null;
2357
2375
  color?: string | null;
2358
2376
  created_at?: string | null;
2377
+ end_verse_id?: string | null;
2359
2378
  id?: string;
2360
2379
  note?: string | null;
2361
- target_id: string;
2362
- target_type: Database["public"]["Enums"]["target_type"];
2380
+ start_verse_id?: string | null;
2363
2381
  updated_at?: string | null;
2364
2382
  user_id: string;
2365
2383
  };
2366
2384
  Update: {
2367
2385
  bookmark_folder_id?: string | null;
2386
+ bookmark_type?: Database["public"]["Enums"]["bookmark_type"] | null;
2368
2387
  color?: string | null;
2369
2388
  created_at?: string | null;
2389
+ end_verse_id?: string | null;
2370
2390
  id?: string;
2371
2391
  note?: string | null;
2372
- target_id?: string;
2373
- target_type?: Database["public"]["Enums"]["target_type"];
2392
+ start_verse_id?: string | null;
2374
2393
  updated_at?: string | null;
2375
2394
  user_id?: string;
2376
2395
  };
@@ -2382,6 +2401,20 @@ export type Database = {
2382
2401
  referencedRelation: "user_bookmark_folders";
2383
2402
  referencedColumns: ["id"];
2384
2403
  },
2404
+ {
2405
+ foreignKeyName: "user_bookmarks_end_verse_id_fkey";
2406
+ columns: ["end_verse_id"];
2407
+ isOneToOne: false;
2408
+ referencedRelation: "verses";
2409
+ referencedColumns: ["id"];
2410
+ },
2411
+ {
2412
+ foreignKeyName: "user_bookmarks_start_verse_id_fkey";
2413
+ columns: ["start_verse_id"];
2414
+ isOneToOne: false;
2415
+ referencedRelation: "verses";
2416
+ referencedColumns: ["id"];
2417
+ },
2385
2418
  {
2386
2419
  foreignKeyName: "user_bookmarks_user_id_fkey";
2387
2420
  columns: ["user_id"];
@@ -2494,41 +2527,6 @@ export type Database = {
2494
2527
  }
2495
2528
  ];
2496
2529
  };
2497
- user_custom_texts: {
2498
- Row: {
2499
- created_at: string | null;
2500
- created_by: string;
2501
- formatting: Json | null;
2502
- id: string;
2503
- text: string;
2504
- updated_at: string | null;
2505
- };
2506
- Insert: {
2507
- created_at?: string | null;
2508
- created_by: string;
2509
- formatting?: Json | null;
2510
- id?: string;
2511
- text: string;
2512
- updated_at?: string | null;
2513
- };
2514
- Update: {
2515
- created_at?: string | null;
2516
- created_by?: string;
2517
- formatting?: Json | null;
2518
- id?: string;
2519
- text?: string;
2520
- updated_at?: string | null;
2521
- };
2522
- Relationships: [
2523
- {
2524
- foreignKeyName: "user_custom_texts_created_by_fkey";
2525
- columns: ["created_by"];
2526
- isOneToOne: false;
2527
- referencedRelation: "users";
2528
- referencedColumns: ["id"];
2529
- }
2530
- ];
2531
- };
2532
2530
  user_playlist_groups: {
2533
2531
  Row: {
2534
2532
  created_at: string | null;
@@ -2568,8 +2566,6 @@ export type Database = {
2568
2566
  Row: {
2569
2567
  created_at: string | null;
2570
2568
  id: string;
2571
- image_id: string | null;
2572
- name: string;
2573
2569
  playlist_id: string;
2574
2570
  updated_at: string | null;
2575
2571
  user_id: string;
@@ -2578,8 +2574,6 @@ export type Database = {
2578
2574
  Insert: {
2579
2575
  created_at?: string | null;
2580
2576
  id?: string;
2581
- image_id?: string | null;
2582
- name: string;
2583
2577
  playlist_id: string;
2584
2578
  updated_at?: string | null;
2585
2579
  user_id: string;
@@ -2588,21 +2582,12 @@ export type Database = {
2588
2582
  Update: {
2589
2583
  created_at?: string | null;
2590
2584
  id?: string;
2591
- image_id?: string | null;
2592
- name?: string;
2593
2585
  playlist_id?: string;
2594
2586
  updated_at?: string | null;
2595
2587
  user_id?: string;
2596
2588
  user_playlist_group_id?: string | null;
2597
2589
  };
2598
2590
  Relationships: [
2599
- {
2600
- foreignKeyName: "user_playlists_image_id_fkey";
2601
- columns: ["image_id"];
2602
- isOneToOne: false;
2603
- referencedRelation: "images";
2604
- referencedColumns: ["id"];
2605
- },
2606
2591
  {
2607
2592
  foreignKeyName: "user_playlists_playlist_id_fkey";
2608
2593
  columns: ["playlist_id"];
@@ -2943,39 +2928,30 @@ export type Database = {
2943
2928
  };
2944
2929
  verse_listens: {
2945
2930
  Row: {
2946
- connectivity: Database["public"]["Enums"]["connectivity_type"] | null;
2947
- created_at: string | null;
2948
- device_id: string;
2949
2931
  id: string;
2950
2932
  language_entity_id: string;
2951
2933
  listened_at: string | null;
2952
- location: unknown | null;
2934
+ origin_share_id: string | null;
2953
2935
  session_id: string;
2954
- user_id: string;
2936
+ user_id: string | null;
2955
2937
  verse_id: string;
2956
2938
  };
2957
2939
  Insert: {
2958
- connectivity?: Database["public"]["Enums"]["connectivity_type"] | null;
2959
- created_at?: string | null;
2960
- device_id: string;
2961
2940
  id?: string;
2962
2941
  language_entity_id: string;
2963
2942
  listened_at?: string | null;
2964
- location?: unknown | null;
2943
+ origin_share_id?: string | null;
2965
2944
  session_id: string;
2966
- user_id: string;
2945
+ user_id?: string | null;
2967
2946
  verse_id: string;
2968
2947
  };
2969
2948
  Update: {
2970
- connectivity?: Database["public"]["Enums"]["connectivity_type"] | null;
2971
- created_at?: string | null;
2972
- device_id?: string;
2973
2949
  id?: string;
2974
2950
  language_entity_id?: string;
2975
2951
  listened_at?: string | null;
2976
- location?: unknown | null;
2952
+ origin_share_id?: string | null;
2977
2953
  session_id?: string;
2978
- user_id?: string;
2954
+ user_id?: string | null;
2979
2955
  verse_id?: string;
2980
2956
  };
2981
2957
  Relationships: [
@@ -2986,6 +2962,13 @@ export type Database = {
2986
2962
  referencedRelation: "language_entities";
2987
2963
  referencedColumns: ["id"];
2988
2964
  },
2965
+ {
2966
+ foreignKeyName: "verse_listens_origin_share_id_fkey";
2967
+ columns: ["origin_share_id"];
2968
+ isOneToOne: false;
2969
+ referencedRelation: "shares";
2970
+ referencedColumns: ["id"];
2971
+ },
2989
2972
  {
2990
2973
  foreignKeyName: "verse_listens_session_id_fkey";
2991
2974
  columns: ["session_id"];
@@ -3202,16 +3185,16 @@ export type Database = {
3202
3185
  Functions: {
3203
3186
  _postgis_deprecate: {
3204
3187
  Args: {
3205
- oldname: string;
3206
3188
  newname: string;
3189
+ oldname: string;
3207
3190
  version: string;
3208
3191
  };
3209
3192
  Returns: undefined;
3210
3193
  };
3211
3194
  _postgis_index_extent: {
3212
3195
  Args: {
3213
- tbl: unknown;
3214
3196
  col: string;
3197
+ tbl: unknown;
3215
3198
  };
3216
3199
  Returns: unknown;
3217
3200
  };
@@ -3225,10 +3208,10 @@ export type Database = {
3225
3208
  };
3226
3209
  _postgis_selectivity: {
3227
3210
  Args: {
3228
- tbl: unknown;
3229
3211
  att_name: string;
3230
3212
  geom: unknown;
3231
3213
  mode?: string;
3214
+ tbl: unknown;
3232
3215
  };
3233
3216
  Returns: number;
3234
3217
  };
@@ -3365,10 +3348,10 @@ export type Database = {
3365
3348
  };
3366
3349
  _st_voronoi: {
3367
3350
  Args: {
3368
- g1: unknown;
3369
3351
  clip?: unknown;
3370
- tolerance?: number;
3352
+ g1: unknown;
3371
3353
  return_polygons?: boolean;
3354
+ tolerance?: number;
3372
3355
  };
3373
3356
  Returns: unknown;
3374
3357
  };
@@ -3388,27 +3371,27 @@ export type Database = {
3388
3371
  addgeometrycolumn: {
3389
3372
  Args: {
3390
3373
  catalog_name: string;
3391
- schema_name: string;
3392
- table_name: string;
3393
3374
  column_name: string;
3375
+ new_dim: number;
3394
3376
  new_srid_in: number;
3395
3377
  new_type: string;
3396
- new_dim: number;
3397
- use_typmod?: boolean;
3398
- } | {
3399
3378
  schema_name: string;
3400
3379
  table_name: string;
3380
+ use_typmod?: boolean;
3381
+ } | {
3401
3382
  column_name: string;
3383
+ new_dim: number;
3402
3384
  new_srid: number;
3403
3385
  new_type: string;
3404
- new_dim: number;
3386
+ schema_name: string;
3387
+ table_name: string;
3405
3388
  use_typmod?: boolean;
3406
3389
  } | {
3407
- table_name: string;
3408
3390
  column_name: string;
3391
+ new_dim: number;
3409
3392
  new_srid: number;
3410
3393
  new_type: string;
3411
- new_dim: number;
3394
+ table_name: string;
3412
3395
  use_typmod?: boolean;
3413
3396
  };
3414
3397
  Returns: string;
@@ -3494,16 +3477,16 @@ export type Database = {
3494
3477
  dropgeometrycolumn: {
3495
3478
  Args: {
3496
3479
  catalog_name: string;
3480
+ column_name: string;
3497
3481
  schema_name: string;
3498
3482
  table_name: string;
3499
- column_name: string;
3500
3483
  } | {
3484
+ column_name: string;
3501
3485
  schema_name: string;
3502
3486
  table_name: string;
3503
- column_name: string;
3504
3487
  } | {
3505
- table_name: string;
3506
3488
  column_name: string;
3489
+ table_name: string;
3507
3490
  };
3508
3491
  Returns: string;
3509
3492
  };
@@ -3908,16 +3891,16 @@ export type Database = {
3908
3891
  get_language_entity_hierarchy: {
3909
3892
  Args: {
3910
3893
  entity_id: string;
3911
- generations_up?: number;
3912
3894
  generations_down?: number;
3895
+ generations_up?: number;
3913
3896
  };
3914
3897
  Returns: {
3898
+ generation_distance: number;
3915
3899
  hierarchy_entity_id: string;
3916
- hierarchy_entity_name: string;
3917
3900
  hierarchy_entity_level: string;
3901
+ hierarchy_entity_name: string;
3918
3902
  hierarchy_parent_id: string;
3919
3903
  relationship_type: string;
3920
- generation_distance: number;
3921
3904
  }[];
3922
3905
  };
3923
3906
  get_language_entity_path: {
@@ -3934,17 +3917,17 @@ export type Database = {
3934
3917
  };
3935
3918
  get_region_hierarchy: {
3936
3919
  Args: {
3937
- region_id: string;
3938
- generations_up?: number;
3939
3920
  generations_down?: number;
3921
+ generations_up?: number;
3922
+ region_id: string;
3940
3923
  };
3941
3924
  Returns: {
3925
+ generation_distance: number;
3926
+ hierarchy_parent_id: string;
3942
3927
  hierarchy_region_id: string;
3943
- hierarchy_region_name: string;
3944
3928
  hierarchy_region_level: string;
3945
- hierarchy_parent_id: string;
3929
+ hierarchy_region_name: string;
3946
3930
  relationship_type: string;
3947
- generation_distance: number;
3948
3931
  }[];
3949
3932
  };
3950
3933
  get_region_path: {
@@ -4124,25 +4107,25 @@ export type Database = {
4124
4107
  };
4125
4108
  postgis_constraint_dims: {
4126
4109
  Args: {
4110
+ geomcolumn: string;
4127
4111
  geomschema: string;
4128
4112
  geomtable: string;
4129
- geomcolumn: string;
4130
4113
  };
4131
4114
  Returns: number;
4132
4115
  };
4133
4116
  postgis_constraint_srid: {
4134
4117
  Args: {
4118
+ geomcolumn: string;
4135
4119
  geomschema: string;
4136
4120
  geomtable: string;
4137
- geomcolumn: string;
4138
4121
  };
4139
4122
  Returns: number;
4140
4123
  };
4141
4124
  postgis_constraint_type: {
4142
4125
  Args: {
4126
+ geomcolumn: string;
4143
4127
  geomschema: string;
4144
4128
  geomtable: string;
4145
- geomcolumn: string;
4146
4129
  };
4147
4130
  Returns: string;
4148
4131
  };
@@ -4244,8 +4227,8 @@ export type Database = {
4244
4227
  };
4245
4228
  postgis_type_name: {
4246
4229
  Args: {
4247
- geomname: string;
4248
4230
  coord_dimension: number;
4231
+ geomname: string;
4249
4232
  use_new_name?: boolean;
4250
4233
  };
4251
4234
  Returns: string;
@@ -4282,64 +4265,64 @@ export type Database = {
4282
4265
  };
4283
4266
  search_language_aliases: {
4284
4267
  Args: {
4285
- search_query: string;
4268
+ include_regions?: boolean;
4286
4269
  max_results?: number;
4287
4270
  min_similarity?: number;
4288
- include_regions?: boolean;
4271
+ search_query: string;
4289
4272
  };
4290
4273
  Returns: {
4291
- similarity_threshold_used: number;
4292
4274
  alias_id: string;
4293
4275
  alias_name: string;
4294
4276
  alias_similarity_score: number;
4295
4277
  entity_id: string;
4296
- entity_name: string;
4297
4278
  entity_level: string;
4279
+ entity_name: string;
4298
4280
  entity_parent_id: string;
4299
4281
  regions: Json;
4282
+ similarity_threshold_used: number;
4300
4283
  }[];
4301
4284
  };
4302
4285
  search_language_aliases_with_versions: {
4303
4286
  Args: {
4304
- search_query: string;
4305
4287
  filter_type?: Database["public"]["Enums"]["version_filter_type"];
4288
+ include_regions?: boolean;
4306
4289
  max_results?: number;
4307
4290
  min_similarity?: number;
4308
- include_regions?: boolean;
4291
+ search_query: string;
4309
4292
  };
4310
4293
  Returns: {
4311
- similarity_threshold_used: number;
4312
4294
  alias_id: string;
4313
4295
  alias_name: string;
4314
4296
  alias_similarity_score: number;
4297
+ audio_version_count: number;
4298
+ audio_versions: Json;
4315
4299
  entity_id: string;
4316
- entity_name: string;
4317
4300
  entity_level: string;
4301
+ entity_name: string;
4318
4302
  entity_parent_id: string;
4319
4303
  regions: Json;
4320
- audio_version_count: number;
4304
+ similarity_threshold_used: number;
4321
4305
  text_version_count: number;
4322
- audio_versions: Json;
4323
4306
  text_versions: Json;
4324
4307
  }[];
4325
4308
  };
4326
4309
  search_region_aliases: {
4327
4310
  Args: {
4328
- search_query: string;
4311
+ include_languages?: boolean;
4329
4312
  max_results?: number;
4330
4313
  min_similarity?: number;
4331
- include_languages?: boolean;
4314
+ search_query: string;
4332
4315
  };
4333
4316
  Returns: {
4334
- similarity_threshold_used: number;
4335
4317
  alias_id: string;
4336
4318
  alias_name: string;
4337
4319
  alias_similarity_score: number;
4320
+ languages: Json;
4338
4321
  region_id: string;
4339
- region_name: string;
4340
4322
  region_level: string;
4323
+ region_name: string;
4341
4324
  region_parent_id: string;
4342
- languages: Json;
4325
+ similarity_threshold_used: number;
4343
4326
  }[];
4344
4327
  };
4345
4328
  set_limit: {
@@ -4510,10 +4493,10 @@ export type Database = {
4510
4493
  maxdecimaldigits?: number;
4511
4494
  options?: number;
4512
4495
  } | {
4513
- r: Record<string, unknown>;
4514
4496
  geom_column?: string;
4515
4497
  maxdecimaldigits?: number;
4516
4498
  pretty_bool?: boolean;
4499
+ r: Record<string, unknown>;
4517
4500
  };
4518
4501
  Returns: string;
4519
4502
  };
@@ -4522,28 +4505,28 @@ export type Database = {
4522
4505
  "": string;
4523
4506
  } | {
4524
4507
  geog: unknown;
4525
- maxdecimaldigits?: number;
4526
- options?: number;
4527
- nprefix?: string;
4528
4508
  id?: string;
4529
- } | {
4530
- geom: unknown;
4531
4509
  maxdecimaldigits?: number;
4510
+ nprefix?: string;
4532
4511
  options?: number;
4533
4512
  } | {
4534
- version: number;
4535
4513
  geog: unknown;
4514
+ id?: string;
4536
4515
  maxdecimaldigits?: number;
4537
- options?: number;
4538
4516
  nprefix?: string;
4539
- id?: string;
4517
+ options?: number;
4518
+ version: number;
4540
4519
  } | {
4520
+ geom: unknown;
4521
+ id?: string;
4522
+ maxdecimaldigits?: number;
4523
+ nprefix?: string;
4524
+ options?: number;
4541
4525
  version: number;
4526
+ } | {
4542
4527
  geom: unknown;
4543
4528
  maxdecimaldigits?: number;
4544
4529
  options?: number;
4545
- nprefix?: string;
4546
- id?: string;
4547
4530
  };
4548
4531
  Returns: string;
4549
4532
  };
@@ -4576,18 +4559,18 @@ export type Database = {
4576
4559
  };
4577
4560
  st_asmarc21: {
4578
4561
  Args: {
4579
- geom: unknown;
4580
4562
  format?: string;
4563
+ geom: unknown;
4581
4564
  };
4582
4565
  Returns: string;
4583
4566
  };
4584
4567
  st_asmvtgeom: {
4585
4568
  Args: {
4586
- geom: unknown;
4587
4569
  bounds: unknown;
4588
- extent?: number;
4589
4570
  buffer?: number;
4590
4571
  clip_geom?: boolean;
4572
+ extent?: number;
4573
+ geom: unknown;
4591
4574
  };
4592
4575
  Returns: unknown;
4593
4576
  };
@@ -4596,12 +4579,12 @@ export type Database = {
4596
4579
  "": string;
4597
4580
  } | {
4598
4581
  geog: unknown;
4599
- rel?: number;
4600
4582
  maxdecimaldigits?: number;
4583
+ rel?: number;
4601
4584
  } | {
4602
4585
  geom: unknown;
4603
- rel?: number;
4604
4586
  maxdecimaldigits?: number;
4587
+ rel?: number;
4605
4588
  };
4606
4589
  Returns: string;
4607
4590
  };
@@ -4620,17 +4603,17 @@ export type Database = {
4620
4603
  geom: unknown[];
4621
4604
  ids: number[];
4622
4605
  prec?: number;
4623
- prec_z?: number;
4624
4606
  prec_m?: number;
4625
- with_sizes?: boolean;
4607
+ prec_z?: number;
4626
4608
  with_boxes?: boolean;
4609
+ with_sizes?: boolean;
4627
4610
  } | {
4628
4611
  geom: unknown;
4629
4612
  prec?: number;
4630
- prec_z?: number;
4631
4613
  prec_m?: number;
4632
- with_sizes?: boolean;
4614
+ prec_z?: number;
4633
4615
  with_boxes?: boolean;
4616
+ with_sizes?: boolean;
4634
4617
  };
4635
4618
  Returns: string;
4636
4619
  };
@@ -4660,20 +4643,20 @@ export type Database = {
4660
4643
  };
4661
4644
  st_boundingdiagonal: {
4662
4645
  Args: {
4663
- geom: unknown;
4664
4646
  fits?: boolean;
4647
+ geom: unknown;
4665
4648
  };
4666
4649
  Returns: unknown;
4667
4650
  };
4668
4651
  st_buffer: {
4669
4652
  Args: {
4670
4653
  geom: unknown;
4671
- radius: number;
4672
4654
  options?: string;
4655
+ radius: number;
4673
4656
  } | {
4674
4657
  geom: unknown;
4675
- radius: number;
4676
4658
  quadsegs: number;
4659
+ radius: number;
4677
4660
  };
4678
4661
  Returns: unknown;
4679
4662
  };
@@ -4699,8 +4682,8 @@ export type Database = {
4699
4682
  };
4700
4683
  st_clipbybox2d: {
4701
4684
  Args: {
4702
- geom: unknown;
4703
4685
  box: unknown;
4686
+ geom: unknown;
4704
4687
  };
4705
4688
  Returns: unknown;
4706
4689
  };
@@ -4740,9 +4723,9 @@ export type Database = {
4740
4723
  };
4741
4724
  st_concavehull: {
4742
4725
  Args: {
4726
+ param_allow_holes?: boolean;
4743
4727
  param_geom: unknown;
4744
4728
  param_pctconvex: number;
4745
- param_allow_holes?: boolean;
4746
4729
  };
4747
4730
  Returns: unknown;
4748
4731
  };
@@ -4801,18 +4784,18 @@ export type Database = {
4801
4784
  };
4802
4785
  st_curvetoline: {
4803
4786
  Args: {
4787
+ flags?: number;
4804
4788
  geom: unknown;
4805
4789
  tol?: number;
4806
4790
  toltype?: number;
4807
- flags?: number;
4808
4791
  };
4809
4792
  Returns: unknown;
4810
4793
  };
4811
4794
  st_delaunaytriangles: {
4812
4795
  Args: {
4796
+ flags?: number;
4813
4797
  g1: unknown;
4814
4798
  tolerance?: number;
4815
- flags?: number;
4816
4799
  };
4817
4800
  Returns: unknown;
4818
4801
  };
@@ -4929,11 +4912,11 @@ export type Database = {
4929
4912
  dy: number;
4930
4913
  dz?: number;
4931
4914
  } | {
4932
- geom: unknown;
4915
+ dm?: number;
4933
4916
  dx: number;
4934
4917
  dy: number;
4935
4918
  dz?: number;
4936
- dm?: number;
4919
+ geom: unknown;
4937
4920
  };
4938
4921
  Returns: unknown;
4939
4922
  };
@@ -4979,8 +4962,8 @@ export type Database = {
4979
4962
  st_force4d: {
4980
4963
  Args: {
4981
4964
  geom: unknown;
4982
- zvalue?: number;
4983
4965
  mvalue?: number;
4966
+ zvalue?: number;
4984
4967
  };
4985
4968
  Returns: unknown;
4986
4969
  };
@@ -5073,10 +5056,10 @@ export type Database = {
5073
5056
  };
5074
5057
  st_geometricmedian: {
5075
5058
  Args: {
5059
+ fail_if_not_converged?: boolean;
5076
5060
  g: unknown;
5077
- tolerance?: number;
5078
5061
  max_iter?: number;
5079
- fail_if_not_converged?: boolean;
5062
+ tolerance?: number;
5080
5063
  };
5081
5064
  Returns: unknown;
5082
5065
  };
@@ -5171,17 +5154,17 @@ export type Database = {
5171
5154
  };
5172
5155
  st_hexagon: {
5173
5156
  Args: {
5174
- size: number;
5175
5157
  cell_i: number;
5176
5158
  cell_j: number;
5177
5159
  origin?: unknown;
5160
+ size: number;
5178
5161
  };
5179
5162
  Returns: unknown;
5180
5163
  };
5181
5164
  st_hexagongrid: {
5182
5165
  Args: {
5183
- size: number;
5184
5166
  bounds: unknown;
5167
+ size: number;
5185
5168
  };
5186
5169
  Returns: Record<string, unknown>[];
5187
5170
  };
@@ -5260,8 +5243,8 @@ export type Database = {
5260
5243
  };
5261
5244
  st_isvaliddetail: {
5262
5245
  Args: {
5263
- geom: unknown;
5264
5246
  flags?: number;
5247
+ geom: unknown;
5265
5248
  };
5266
5249
  Returns: Database["public"]["CompositeTypes"]["valid_detail"];
5267
5250
  };
@@ -5296,8 +5279,8 @@ export type Database = {
5296
5279
  };
5297
5280
  st_letters: {
5298
5281
  Args: {
5299
- letters: string;
5300
5282
  font?: Json;
5283
+ letters: string;
5301
5284
  };
5302
5285
  Returns: unknown;
5303
5286
  };
@@ -5310,8 +5293,8 @@ export type Database = {
5310
5293
  };
5311
5294
  st_linefromencodedpolyline: {
5312
5295
  Args: {
5313
- txtin: string;
5314
5296
  nprecision?: number;
5297
+ txtin: string;
5315
5298
  };
5316
5299
  Returns: unknown;
5317
5300
  };
@@ -5361,24 +5344,24 @@ export type Database = {
5361
5344
  st_locatealong: {
5362
5345
  Args: {
5363
5346
  geometry: unknown;
5364
- measure: number;
5365
5347
  leftrightoffset?: number;
5348
+ measure: number;
5366
5349
  };
5367
5350
  Returns: unknown;
5368
5351
  };
5369
5352
  st_locatebetween: {
5370
5353
  Args: {
5371
- geometry: unknown;
5372
5354
  frommeasure: number;
5373
- tomeasure: number;
5355
+ geometry: unknown;
5374
5356
  leftrightoffset?: number;
5357
+ tomeasure: number;
5375
5358
  };
5376
5359
  Returns: unknown;
5377
5360
  };
5378
5361
  st_locatebetweenelevations: {
5379
5362
  Args: {
5380
- geometry: unknown;
5381
5363
  fromelevation: number;
5364
+ geometry: unknown;
5382
5365
  toelevation: number;
5383
5366
  };
5384
5367
  Returns: unknown;
@@ -5611,8 +5594,8 @@ export type Database = {
5611
5594
  };
5612
5595
  st_offsetcurve: {
5613
5596
  Args: {
5614
- line: unknown;
5615
5597
  distance: number;
5598
+ line: unknown;
5616
5599
  params?: string;
5617
5600
  };
5618
5601
  Returns: unknown;
@@ -5666,10 +5649,10 @@ export type Database = {
5666
5649
  };
5667
5650
  st_pointm: {
5668
5651
  Args: {
5669
- xcoordinate: number;
5670
- ycoordinate: number;
5671
5652
  mcoordinate: number;
5672
5653
  srid?: number;
5654
+ xcoordinate: number;
5655
+ ycoordinate: number;
5673
5656
  };
5674
5657
  Returns: unknown;
5675
5658
  };
@@ -5687,20 +5670,20 @@ export type Database = {
5687
5670
  };
5688
5671
  st_pointz: {
5689
5672
  Args: {
5673
+ srid?: number;
5690
5674
  xcoordinate: number;
5691
5675
  ycoordinate: number;
5692
5676
  zcoordinate: number;
5693
- srid?: number;
5694
5677
  };
5695
5678
  Returns: unknown;
5696
5679
  };
5697
5680
  st_pointzm: {
5698
5681
  Args: {
5682
+ mcoordinate: number;
5683
+ srid?: number;
5699
5684
  xcoordinate: number;
5700
5685
  ycoordinate: number;
5701
5686
  zcoordinate: number;
5702
- mcoordinate: number;
5703
- srid?: number;
5704
5687
  };
5705
5688
  Returns: unknown;
5706
5689
  };
@@ -5736,19 +5719,19 @@ export type Database = {
5736
5719
  };
5737
5720
  st_project: {
5738
5721
  Args: {
5739
- geog: unknown;
5740
- distance: number;
5741
5722
  azimuth: number;
5723
+ distance: number;
5724
+ geog: unknown;
5742
5725
  };
5743
5726
  Returns: unknown;
5744
5727
  };
5745
5728
  st_quantizecoordinates: {
5746
5729
  Args: {
5747
5730
  g: unknown;
5731
+ prec_m?: number;
5748
5732
  prec_x: number;
5749
5733
  prec_y?: number;
5750
5734
  prec_z?: number;
5751
- prec_m?: number;
5752
5735
  };
5753
5736
  Returns: unknown;
5754
5737
  };
@@ -5819,8 +5802,8 @@ export type Database = {
5819
5802
  st_simplifypolygonhull: {
5820
5803
  Args: {
5821
5804
  geom: unknown;
5822
- vertex_fraction: number;
5823
5805
  is_outer?: boolean;
5806
+ vertex_fraction: number;
5824
5807
  };
5825
5808
  Returns: unknown;
5826
5809
  };
@@ -5833,17 +5816,17 @@ export type Database = {
5833
5816
  };
5834
5817
  st_square: {
5835
5818
  Args: {
5836
- size: number;
5837
5819
  cell_i: number;
5838
5820
  cell_j: number;
5839
5821
  origin?: unknown;
5822
+ size: number;
5840
5823
  };
5841
5824
  Returns: unknown;
5842
5825
  };
5843
5826
  st_squaregrid: {
5844
5827
  Args: {
5845
- size: number;
5846
5828
  bounds: unknown;
5829
+ size: number;
5847
5830
  };
5848
5831
  Returns: Record<string, unknown>[];
5849
5832
  };
@@ -5864,8 +5847,8 @@ export type Database = {
5864
5847
  st_subdivide: {
5865
5848
  Args: {
5866
5849
  geom: unknown;
5867
- maxvertices?: number;
5868
5850
  gridsize?: number;
5851
+ maxvertices?: number;
5869
5852
  };
5870
5853
  Returns: unknown[];
5871
5854
  };
@@ -5901,11 +5884,11 @@ export type Database = {
5901
5884
  };
5902
5885
  st_tileenvelope: {
5903
5886
  Args: {
5904
- zoom: number;
5905
- x: number;
5906
- y: number;
5907
5887
  bounds?: unknown;
5908
5888
  margin?: number;
5889
+ x: number;
5890
+ y: number;
5891
+ zoom: number;
5909
5892
  };
5910
5893
  Returns: unknown;
5911
5894
  };
@@ -5918,12 +5901,12 @@ export type Database = {
5918
5901
  };
5919
5902
  st_transform: {
5920
5903
  Args: {
5921
- geom: unknown;
5922
5904
  from_proj: string;
5905
+ geom: unknown;
5923
5906
  to_proj: string;
5924
5907
  } | {
5925
- geom: unknown;
5926
5908
  from_proj: string;
5909
+ geom: unknown;
5927
5910
  to_srid: number;
5928
5911
  } | {
5929
5912
  geom: unknown;
@@ -5952,17 +5935,17 @@ export type Database = {
5952
5935
  };
5953
5936
  st_voronoilines: {
5954
5937
  Args: {
5938
+ extend_to?: unknown;
5955
5939
  g1: unknown;
5956
5940
  tolerance?: number;
5957
- extend_to?: unknown;
5958
5941
  };
5959
5942
  Returns: unknown;
5960
5943
  };
5961
5944
  st_voronoipolygons: {
5962
5945
  Args: {
5946
+ extend_to?: unknown;
5963
5947
  g1: unknown;
5964
5948
  tolerance?: number;
5965
- extend_to?: unknown;
5966
5949
  };
5967
5950
  Returns: unknown;
5968
5951
  };
@@ -5988,8 +5971,8 @@ export type Database = {
5988
5971
  st_wrapx: {
5989
5972
  Args: {
5990
5973
  geom: unknown;
5991
- wrap: number;
5992
5974
  move: number;
5975
+ wrap: number;
5993
5976
  };
5994
5977
  Returns: unknown;
5995
5978
  };
@@ -6068,25 +6051,26 @@ export type Database = {
6068
6051
  updategeometrysrid: {
6069
6052
  Args: {
6070
6053
  catalogn_name: string;
6071
- schema_name: string;
6072
- table_name: string;
6073
6054
  column_name: string;
6074
6055
  new_srid_in: number;
6056
+ schema_name: string;
6057
+ table_name: string;
6075
6058
  };
6076
6059
  Returns: string;
6077
6060
  };
6078
6061
  validate_verse_range: {
6079
6062
  Args: {
6080
- start_verse_text_id: string;
6081
6063
  end_verse_text_id: string;
6064
+ start_verse_text_id: string;
6082
6065
  } | {
6083
- start_verse_uuid: string;
6084
6066
  end_verse_uuid: string;
6067
+ start_verse_uuid: string;
6085
6068
  };
6086
6069
  Returns: boolean;
6087
6070
  };
6088
6071
  };
6089
6072
  Enums: {
6073
+ bookmark_type: "passage";
6090
6074
  change_type: "create" | "update" | "delete";
6091
6075
  check_status: "pending" | "approved" | "rejected" | "requires_review";
6092
6076
  connectivity_type: "wifi" | "cellular" | "offline" | "unknown";
@@ -6094,8 +6078,10 @@ export type Database = {
6094
6078
  feedback_actioned: "pending" | "actioned" | "rejected";
6095
6079
  feedback_type: "approved" | "change_required";
6096
6080
  language_entity_level: "family" | "language" | "dialect" | "mother_tongue";
6081
+ location_source_type: "device" | "ip" | "unknown";
6097
6082
  media_type: "audio" | "video";
6098
6083
  platform_type: "ios" | "android" | "web" | "desktop";
6084
+ playlist_item_type: "passage" | "custom_text";
6099
6085
  publish_status: "pending" | "published" | "archived";
6100
6086
  region_level: "continent" | "world_region" | "country" | "state" | "province" | "district" | "town" | "village";
6101
6087
  segment_type: "source" | "target";
@@ -6174,6 +6160,7 @@ export declare const Constants: {
6174
6160
  };
6175
6161
  readonly public: {
6176
6162
  readonly Enums: {
6163
+ readonly bookmark_type: readonly ["passage"];
6177
6164
  readonly change_type: readonly ["create", "update", "delete"];
6178
6165
  readonly check_status: readonly ["pending", "approved", "rejected", "requires_review"];
6179
6166
  readonly connectivity_type: readonly ["wifi", "cellular", "offline", "unknown"];
@@ -6181,8 +6168,10 @@ export declare const Constants: {
6181
6168
  readonly feedback_actioned: readonly ["pending", "actioned", "rejected"];
6182
6169
  readonly feedback_type: readonly ["approved", "change_required"];
6183
6170
  readonly language_entity_level: readonly ["family", "language", "dialect", "mother_tongue"];
6171
+ readonly location_source_type: readonly ["device", "ip", "unknown"];
6184
6172
  readonly media_type: readonly ["audio", "video"];
6185
6173
  readonly platform_type: readonly ["ios", "android", "web", "desktop"];
6174
+ readonly playlist_item_type: readonly ["passage", "custom_text"];
6186
6175
  readonly publish_status: readonly ["pending", "published", "archived"];
6187
6176
  readonly region_level: readonly ["continent", "world_region", "country", "state", "province", "district", "town", "village"];
6188
6177
  readonly segment_type: readonly ["source", "target"];