@everylanguage/shared-types 1.0.16 → 1.0.18

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 +4 -2
  2. package/types/database.d.ts +249 -266
@@ -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,10 @@ 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
- remote_path: string;
444
439
  set_id: string | null;
440
+ storage_provider: string | null;
445
441
  target_id: string;
446
442
  target_type: Database["public"]["Enums"]["target_type"];
447
443
  updated_at: string | null;
@@ -452,9 +448,10 @@ export type Database = {
452
448
  created_by?: string | null;
453
449
  deleted_at?: string | null;
454
450
  id?: string;
451
+ object_key?: string | null;
455
452
  publish_status?: Database["public"]["Enums"]["publish_status"];
456
- remote_path: string;
457
453
  set_id?: string | null;
454
+ storage_provider?: string | null;
458
455
  target_id: string;
459
456
  target_type: Database["public"]["Enums"]["target_type"];
460
457
  updated_at?: string | null;
@@ -465,9 +462,10 @@ export type Database = {
465
462
  created_by?: string | null;
466
463
  deleted_at?: string | null;
467
464
  id?: string;
465
+ object_key?: string | null;
468
466
  publish_status?: Database["public"]["Enums"]["publish_status"];
469
- remote_path?: string;
470
467
  set_id?: string | null;
468
+ storage_provider?: string | null;
471
469
  target_id?: string;
472
470
  target_type?: Database["public"]["Enums"]["target_type"];
473
471
  updated_at?: string | null;
@@ -760,46 +758,37 @@ export type Database = {
760
758
  };
761
759
  media_file_listens: {
762
760
  Row: {
763
- connectivity: Database["public"]["Enums"]["connectivity_type"] | null;
764
- created_at: string | null;
765
- device_id: string;
766
761
  duration_seconds: number;
767
762
  id: string;
768
763
  language_entity_id: string;
769
764
  listened_at: string | null;
770
- location: unknown | null;
771
765
  media_file_id: string;
766
+ origin_share_id: string | null;
772
767
  position_seconds: number;
773
768
  session_id: string;
774
- user_id: string;
769
+ user_id: string | null;
775
770
  };
776
771
  Insert: {
777
- connectivity?: Database["public"]["Enums"]["connectivity_type"] | null;
778
- created_at?: string | null;
779
- device_id: string;
780
772
  duration_seconds: number;
781
773
  id?: string;
782
774
  language_entity_id: string;
783
775
  listened_at?: string | null;
784
- location?: unknown | null;
785
776
  media_file_id: string;
777
+ origin_share_id?: string | null;
786
778
  position_seconds: number;
787
779
  session_id: string;
788
- user_id: string;
780
+ user_id?: string | null;
789
781
  };
790
782
  Update: {
791
- connectivity?: Database["public"]["Enums"]["connectivity_type"] | null;
792
- created_at?: string | null;
793
- device_id?: string;
794
783
  duration_seconds?: number;
795
784
  id?: string;
796
785
  language_entity_id?: string;
797
786
  listened_at?: string | null;
798
- location?: unknown | null;
799
787
  media_file_id?: string;
788
+ origin_share_id?: string | null;
800
789
  position_seconds?: number;
801
790
  session_id?: string;
802
- user_id?: string;
791
+ user_id?: string | null;
803
792
  };
804
793
  Relationships: [
805
794
  {
@@ -816,6 +805,13 @@ export type Database = {
816
805
  referencedRelation: "media_files";
817
806
  referencedColumns: ["id"];
818
807
  },
808
+ {
809
+ foreignKeyName: "media_file_listens_origin_share_id_fkey";
810
+ columns: ["origin_share_id"];
811
+ isOneToOne: false;
812
+ referencedRelation: "shares";
813
+ referencedColumns: ["id"];
814
+ },
819
815
  {
820
816
  foreignKeyName: "media_file_listens_session_id_fkey";
821
817
  columns: ["session_id"];
@@ -847,9 +843,10 @@ export type Database = {
847
843
  is_bible_audio: boolean | null;
848
844
  language_entity_id: string;
849
845
  media_type: Database["public"]["Enums"]["media_type"];
846
+ object_key: string | null;
850
847
  publish_status: Database["public"]["Enums"]["publish_status"] | null;
851
- remote_path: string | null;
852
848
  start_verse_id: string | null;
849
+ storage_provider: string | null;
853
850
  updated_at: string | null;
854
851
  upload_status: Database["public"]["Enums"]["upload_status"] | null;
855
852
  version: number | null;
@@ -868,9 +865,10 @@ export type Database = {
868
865
  is_bible_audio?: boolean | null;
869
866
  language_entity_id: string;
870
867
  media_type: Database["public"]["Enums"]["media_type"];
868
+ object_key?: string | null;
871
869
  publish_status?: Database["public"]["Enums"]["publish_status"] | null;
872
- remote_path?: string | null;
873
870
  start_verse_id?: string | null;
871
+ storage_provider?: string | null;
874
872
  updated_at?: string | null;
875
873
  upload_status?: Database["public"]["Enums"]["upload_status"] | null;
876
874
  version?: number | null;
@@ -889,9 +887,10 @@ export type Database = {
889
887
  is_bible_audio?: boolean | null;
890
888
  language_entity_id?: string;
891
889
  media_type?: Database["public"]["Enums"]["media_type"];
890
+ object_key?: string | null;
892
891
  publish_status?: Database["public"]["Enums"]["publish_status"] | null;
893
- remote_path?: string | null;
894
892
  start_verse_id?: string | null;
893
+ storage_provider?: string | null;
895
894
  updated_at?: string | null;
896
895
  upload_status?: Database["public"]["Enums"]["upload_status"] | null;
897
896
  version?: number | null;
@@ -1210,31 +1209,37 @@ export type Database = {
1210
1209
  Row: {
1211
1210
  created_at: string | null;
1212
1211
  created_by: string | null;
1212
+ custom_text: string | null;
1213
+ end_verse_id: string | null;
1213
1214
  id: string;
1214
1215
  order_index: number;
1215
1216
  playlist_id: string;
1216
- target_id: string;
1217
- target_type: Database["public"]["Enums"]["target_type"];
1217
+ playlist_item_type: Database["public"]["Enums"]["playlist_item_type"] | null;
1218
+ start_verse_id: string | null;
1218
1219
  updated_at: string | null;
1219
1220
  };
1220
1221
  Insert: {
1221
1222
  created_at?: string | null;
1222
1223
  created_by?: string | null;
1224
+ custom_text?: string | null;
1225
+ end_verse_id?: string | null;
1223
1226
  id?: string;
1224
1227
  order_index: number;
1225
1228
  playlist_id: string;
1226
- target_id: string;
1227
- target_type: Database["public"]["Enums"]["target_type"];
1229
+ playlist_item_type?: Database["public"]["Enums"]["playlist_item_type"] | null;
1230
+ start_verse_id?: string | null;
1228
1231
  updated_at?: string | null;
1229
1232
  };
1230
1233
  Update: {
1231
1234
  created_at?: string | null;
1232
1235
  created_by?: string | null;
1236
+ custom_text?: string | null;
1237
+ end_verse_id?: string | null;
1233
1238
  id?: string;
1234
1239
  order_index?: number;
1235
1240
  playlist_id?: string;
1236
- target_id?: string;
1237
- target_type?: Database["public"]["Enums"]["target_type"];
1241
+ playlist_item_type?: Database["public"]["Enums"]["playlist_item_type"] | null;
1242
+ start_verse_id?: string | null;
1238
1243
  updated_at?: string | null;
1239
1244
  };
1240
1245
  Relationships: [
@@ -1245,12 +1250,26 @@ export type Database = {
1245
1250
  referencedRelation: "users";
1246
1251
  referencedColumns: ["id"];
1247
1252
  },
1253
+ {
1254
+ foreignKeyName: "playlist_items_end_verse_id_fkey";
1255
+ columns: ["end_verse_id"];
1256
+ isOneToOne: false;
1257
+ referencedRelation: "verses";
1258
+ referencedColumns: ["id"];
1259
+ },
1248
1260
  {
1249
1261
  foreignKeyName: "playlist_items_playlist_id_fkey";
1250
1262
  columns: ["playlist_id"];
1251
1263
  isOneToOne: false;
1252
1264
  referencedRelation: "playlists";
1253
1265
  referencedColumns: ["id"];
1266
+ },
1267
+ {
1268
+ foreignKeyName: "playlist_items_start_verse_id_fkey";
1269
+ columns: ["start_verse_id"];
1270
+ isOneToOne: false;
1271
+ referencedRelation: "verses";
1272
+ referencedColumns: ["id"];
1254
1273
  }
1255
1274
  ];
1256
1275
  };
@@ -1947,48 +1966,64 @@ export type Database = {
1947
1966
  };
1948
1967
  sessions: {
1949
1968
  Row: {
1969
+ app_download_id: string | null;
1950
1970
  app_version: string;
1951
1971
  connectivity: Database["public"]["Enums"]["connectivity_type"] | null;
1952
- created_at: string | null;
1953
- device_id: string;
1972
+ continent_code: string | null;
1973
+ country_code: string | null;
1954
1974
  ended_at: string | null;
1955
1975
  id: string;
1956
1976
  location: unknown | null;
1977
+ location_source: Database["public"]["Enums"]["location_source_type"] | null;
1957
1978
  os: string | null;
1958
1979
  os_version: string | null;
1959
1980
  platform: Database["public"]["Enums"]["platform_type"];
1981
+ region_code: string | null;
1960
1982
  started_at: string | null;
1961
- user_id: string;
1983
+ user_id: string | null;
1962
1984
  };
1963
1985
  Insert: {
1986
+ app_download_id?: string | null;
1964
1987
  app_version: string;
1965
1988
  connectivity?: Database["public"]["Enums"]["connectivity_type"] | null;
1966
- created_at?: string | null;
1967
- device_id: string;
1989
+ continent_code?: string | null;
1990
+ country_code?: string | null;
1968
1991
  ended_at?: string | null;
1969
1992
  id?: string;
1970
1993
  location?: unknown | null;
1994
+ location_source?: Database["public"]["Enums"]["location_source_type"] | null;
1971
1995
  os?: string | null;
1972
1996
  os_version?: string | null;
1973
1997
  platform: Database["public"]["Enums"]["platform_type"];
1998
+ region_code?: string | null;
1974
1999
  started_at?: string | null;
1975
- user_id: string;
2000
+ user_id?: string | null;
1976
2001
  };
1977
2002
  Update: {
2003
+ app_download_id?: string | null;
1978
2004
  app_version?: string;
1979
2005
  connectivity?: Database["public"]["Enums"]["connectivity_type"] | null;
1980
- created_at?: string | null;
1981
- device_id?: string;
2006
+ continent_code?: string | null;
2007
+ country_code?: string | null;
1982
2008
  ended_at?: string | null;
1983
2009
  id?: string;
1984
2010
  location?: unknown | null;
2011
+ location_source?: Database["public"]["Enums"]["location_source_type"] | null;
1985
2012
  os?: string | null;
1986
2013
  os_version?: string | null;
1987
2014
  platform?: Database["public"]["Enums"]["platform_type"];
2015
+ region_code?: string | null;
1988
2016
  started_at?: string | null;
1989
- user_id?: string;
2017
+ user_id?: string | null;
1990
2018
  };
1991
2019
  Relationships: [
2020
+ {
2021
+ foreignKeyName: "sessions_app_download_id_fkey";
2022
+ columns: ["app_download_id"];
2023
+ isOneToOne: false;
2024
+ referencedRelation: "app_downloads";
2025
+ referencedColumns: ["id"];
2026
+ },
1992
2027
  {
1993
2028
  foreignKeyName: "sessions_user_id_fkey";
1994
2029
  columns: ["user_id"];
@@ -2001,10 +2036,7 @@ export type Database = {
2001
2036
  share_opens: {
2002
2037
  Row: {
2003
2038
  created_at: string | null;
2004
- device_id: string | null;
2005
2039
  id: string;
2006
- language_entity_id: string;
2007
- location: unknown | null;
2008
2040
  opened_at: string | null;
2009
2041
  origin_share_id: string | null;
2010
2042
  session_id: string | null;
@@ -2013,10 +2045,7 @@ export type Database = {
2013
2045
  };
2014
2046
  Insert: {
2015
2047
  created_at?: string | null;
2016
- device_id?: string | null;
2017
2048
  id?: string;
2018
- language_entity_id: string;
2019
- location?: unknown | null;
2020
2049
  opened_at?: string | null;
2021
2050
  origin_share_id?: string | null;
2022
2051
  session_id?: string | null;
@@ -2025,10 +2054,7 @@ export type Database = {
2025
2054
  };
2026
2055
  Update: {
2027
2056
  created_at?: string | null;
2028
- device_id?: string | null;
2029
2057
  id?: string;
2030
- language_entity_id?: string;
2031
- location?: unknown | null;
2032
2058
  opened_at?: string | null;
2033
2059
  origin_share_id?: string | null;
2034
2060
  session_id?: string | null;
@@ -2036,13 +2062,6 @@ export type Database = {
2036
2062
  user_id?: string | null;
2037
2063
  };
2038
2064
  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
2065
  {
2047
2066
  foreignKeyName: "share_opens_origin_share_id_fkey";
2048
2067
  columns: ["origin_share_id"];
@@ -2075,43 +2094,34 @@ export type Database = {
2075
2094
  };
2076
2095
  shares: {
2077
2096
  Row: {
2078
- created_at: string | null;
2079
- device_id: string;
2080
2097
  id: string;
2081
2098
  language_entity_id: string;
2082
- location: unknown | null;
2083
2099
  origin_share_id: string | null;
2084
2100
  session_id: string;
2085
2101
  share_entity_id: string;
2086
2102
  share_entity_type: Database["public"]["Enums"]["share_entity_type"];
2087
2103
  shared_at: string | null;
2088
- user_id: string;
2104
+ user_id: string | null;
2089
2105
  };
2090
2106
  Insert: {
2091
- created_at?: string | null;
2092
- device_id: string;
2093
2107
  id?: string;
2094
2108
  language_entity_id: string;
2095
- location?: unknown | null;
2096
2109
  origin_share_id?: string | null;
2097
2110
  session_id: string;
2098
2111
  share_entity_id: string;
2099
2112
  share_entity_type: Database["public"]["Enums"]["share_entity_type"];
2100
2113
  shared_at?: string | null;
2101
- user_id: string;
2114
+ user_id?: string | null;
2102
2115
  };
2103
2116
  Update: {
2104
- created_at?: string | null;
2105
- device_id?: string;
2106
2117
  id?: string;
2107
2118
  language_entity_id?: string;
2108
- location?: unknown | null;
2109
2119
  origin_share_id?: string | null;
2110
2120
  session_id?: string;
2111
2121
  share_entity_id?: string;
2112
2122
  share_entity_type?: Database["public"]["Enums"]["share_entity_type"];
2113
2123
  shared_at?: string | null;
2114
- user_id?: string;
2124
+ user_id?: string | null;
2115
2125
  };
2116
2126
  Relationships: [
2117
2127
  {
@@ -2343,34 +2353,37 @@ export type Database = {
2343
2353
  user_bookmarks: {
2344
2354
  Row: {
2345
2355
  bookmark_folder_id: string | null;
2356
+ bookmark_type: Database["public"]["Enums"]["bookmark_type"] | null;
2346
2357
  color: string | null;
2347
2358
  created_at: string | null;
2359
+ end_verse_id: string | null;
2348
2360
  id: string;
2349
2361
  note: string | null;
2350
- target_id: string;
2351
- target_type: Database["public"]["Enums"]["target_type"];
2362
+ start_verse_id: string | null;
2352
2363
  updated_at: string | null;
2353
2364
  user_id: string;
2354
2365
  };
2355
2366
  Insert: {
2356
2367
  bookmark_folder_id?: string | null;
2368
+ bookmark_type?: Database["public"]["Enums"]["bookmark_type"] | null;
2357
2369
  color?: string | null;
2358
2370
  created_at?: string | null;
2371
+ end_verse_id?: string | null;
2359
2372
  id?: string;
2360
2373
  note?: string | null;
2361
- target_id: string;
2362
- target_type: Database["public"]["Enums"]["target_type"];
2374
+ start_verse_id?: string | null;
2363
2375
  updated_at?: string | null;
2364
2376
  user_id: string;
2365
2377
  };
2366
2378
  Update: {
2367
2379
  bookmark_folder_id?: string | null;
2380
+ bookmark_type?: Database["public"]["Enums"]["bookmark_type"] | null;
2368
2381
  color?: string | null;
2369
2382
  created_at?: string | null;
2383
+ end_verse_id?: string | null;
2370
2384
  id?: string;
2371
2385
  note?: string | null;
2372
- target_id?: string;
2373
- target_type?: Database["public"]["Enums"]["target_type"];
2386
+ start_verse_id?: string | null;
2374
2387
  updated_at?: string | null;
2375
2388
  user_id?: string;
2376
2389
  };
@@ -2382,6 +2395,20 @@ export type Database = {
2382
2395
  referencedRelation: "user_bookmark_folders";
2383
2396
  referencedColumns: ["id"];
2384
2397
  },
2398
+ {
2399
+ foreignKeyName: "user_bookmarks_end_verse_id_fkey";
2400
+ columns: ["end_verse_id"];
2401
+ isOneToOne: false;
2402
+ referencedRelation: "verses";
2403
+ referencedColumns: ["id"];
2404
+ },
2405
+ {
2406
+ foreignKeyName: "user_bookmarks_start_verse_id_fkey";
2407
+ columns: ["start_verse_id"];
2408
+ isOneToOne: false;
2409
+ referencedRelation: "verses";
2410
+ referencedColumns: ["id"];
2411
+ },
2385
2412
  {
2386
2413
  foreignKeyName: "user_bookmarks_user_id_fkey";
2387
2414
  columns: ["user_id"];
@@ -2494,41 +2521,6 @@ export type Database = {
2494
2521
  }
2495
2522
  ];
2496
2523
  };
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
2524
  user_playlist_groups: {
2533
2525
  Row: {
2534
2526
  created_at: string | null;
@@ -2568,8 +2560,6 @@ export type Database = {
2568
2560
  Row: {
2569
2561
  created_at: string | null;
2570
2562
  id: string;
2571
- image_id: string | null;
2572
- name: string;
2573
2563
  playlist_id: string;
2574
2564
  updated_at: string | null;
2575
2565
  user_id: string;
@@ -2578,8 +2568,6 @@ export type Database = {
2578
2568
  Insert: {
2579
2569
  created_at?: string | null;
2580
2570
  id?: string;
2581
- image_id?: string | null;
2582
- name: string;
2583
2571
  playlist_id: string;
2584
2572
  updated_at?: string | null;
2585
2573
  user_id: string;
@@ -2588,21 +2576,12 @@ export type Database = {
2588
2576
  Update: {
2589
2577
  created_at?: string | null;
2590
2578
  id?: string;
2591
- image_id?: string | null;
2592
- name?: string;
2593
2579
  playlist_id?: string;
2594
2580
  updated_at?: string | null;
2595
2581
  user_id?: string;
2596
2582
  user_playlist_group_id?: string | null;
2597
2583
  };
2598
2584
  Relationships: [
2599
- {
2600
- foreignKeyName: "user_playlists_image_id_fkey";
2601
- columns: ["image_id"];
2602
- isOneToOne: false;
2603
- referencedRelation: "images";
2604
- referencedColumns: ["id"];
2605
- },
2606
2585
  {
2607
2586
  foreignKeyName: "user_playlists_playlist_id_fkey";
2608
2587
  columns: ["playlist_id"];
@@ -2943,39 +2922,30 @@ export type Database = {
2943
2922
  };
2944
2923
  verse_listens: {
2945
2924
  Row: {
2946
- connectivity: Database["public"]["Enums"]["connectivity_type"] | null;
2947
- created_at: string | null;
2948
- device_id: string;
2949
2925
  id: string;
2950
2926
  language_entity_id: string;
2951
2927
  listened_at: string | null;
2952
- location: unknown | null;
2928
+ origin_share_id: string | null;
2953
2929
  session_id: string;
2954
- user_id: string;
2930
+ user_id: string | null;
2955
2931
  verse_id: string;
2956
2932
  };
2957
2933
  Insert: {
2958
- connectivity?: Database["public"]["Enums"]["connectivity_type"] | null;
2959
- created_at?: string | null;
2960
- device_id: string;
2961
2934
  id?: string;
2962
2935
  language_entity_id: string;
2963
2936
  listened_at?: string | null;
2964
- location?: unknown | null;
2937
+ origin_share_id?: string | null;
2965
2938
  session_id: string;
2966
- user_id: string;
2939
+ user_id?: string | null;
2967
2940
  verse_id: string;
2968
2941
  };
2969
2942
  Update: {
2970
- connectivity?: Database["public"]["Enums"]["connectivity_type"] | null;
2971
- created_at?: string | null;
2972
- device_id?: string;
2973
2943
  id?: string;
2974
2944
  language_entity_id?: string;
2975
2945
  listened_at?: string | null;
2976
- location?: unknown | null;
2946
+ origin_share_id?: string | null;
2977
2947
  session_id?: string;
2978
- user_id?: string;
2948
+ user_id?: string | null;
2979
2949
  verse_id?: string;
2980
2950
  };
2981
2951
  Relationships: [
@@ -2986,6 +2956,13 @@ export type Database = {
2986
2956
  referencedRelation: "language_entities";
2987
2957
  referencedColumns: ["id"];
2988
2958
  },
2959
+ {
2960
+ foreignKeyName: "verse_listens_origin_share_id_fkey";
2961
+ columns: ["origin_share_id"];
2962
+ isOneToOne: false;
2963
+ referencedRelation: "shares";
2964
+ referencedColumns: ["id"];
2965
+ },
2989
2966
  {
2990
2967
  foreignKeyName: "verse_listens_session_id_fkey";
2991
2968
  columns: ["session_id"];
@@ -3202,16 +3179,16 @@ export type Database = {
3202
3179
  Functions: {
3203
3180
  _postgis_deprecate: {
3204
3181
  Args: {
3205
- oldname: string;
3206
3182
  newname: string;
3183
+ oldname: string;
3207
3184
  version: string;
3208
3185
  };
3209
3186
  Returns: undefined;
3210
3187
  };
3211
3188
  _postgis_index_extent: {
3212
3189
  Args: {
3213
- tbl: unknown;
3214
3190
  col: string;
3191
+ tbl: unknown;
3215
3192
  };
3216
3193
  Returns: unknown;
3217
3194
  };
@@ -3225,10 +3202,10 @@ export type Database = {
3225
3202
  };
3226
3203
  _postgis_selectivity: {
3227
3204
  Args: {
3228
- tbl: unknown;
3229
3205
  att_name: string;
3230
3206
  geom: unknown;
3231
3207
  mode?: string;
3208
+ tbl: unknown;
3232
3209
  };
3233
3210
  Returns: number;
3234
3211
  };
@@ -3365,10 +3342,10 @@ export type Database = {
3365
3342
  };
3366
3343
  _st_voronoi: {
3367
3344
  Args: {
3368
- g1: unknown;
3369
3345
  clip?: unknown;
3370
- tolerance?: number;
3346
+ g1: unknown;
3371
3347
  return_polygons?: boolean;
3348
+ tolerance?: number;
3372
3349
  };
3373
3350
  Returns: unknown;
3374
3351
  };
@@ -3388,27 +3365,27 @@ export type Database = {
3388
3365
  addgeometrycolumn: {
3389
3366
  Args: {
3390
3367
  catalog_name: string;
3391
- schema_name: string;
3392
- table_name: string;
3393
3368
  column_name: string;
3369
+ new_dim: number;
3394
3370
  new_srid_in: number;
3395
3371
  new_type: string;
3396
- new_dim: number;
3397
- use_typmod?: boolean;
3398
- } | {
3399
3372
  schema_name: string;
3400
3373
  table_name: string;
3374
+ use_typmod?: boolean;
3375
+ } | {
3401
3376
  column_name: string;
3377
+ new_dim: number;
3402
3378
  new_srid: number;
3403
3379
  new_type: string;
3404
- new_dim: number;
3380
+ schema_name: string;
3381
+ table_name: string;
3405
3382
  use_typmod?: boolean;
3406
3383
  } | {
3407
- table_name: string;
3408
3384
  column_name: string;
3385
+ new_dim: number;
3409
3386
  new_srid: number;
3410
3387
  new_type: string;
3411
- new_dim: number;
3388
+ table_name: string;
3412
3389
  use_typmod?: boolean;
3413
3390
  };
3414
3391
  Returns: string;
@@ -3494,16 +3471,16 @@ export type Database = {
3494
3471
  dropgeometrycolumn: {
3495
3472
  Args: {
3496
3473
  catalog_name: string;
3474
+ column_name: string;
3497
3475
  schema_name: string;
3498
3476
  table_name: string;
3499
- column_name: string;
3500
3477
  } | {
3478
+ column_name: string;
3501
3479
  schema_name: string;
3502
3480
  table_name: string;
3503
- column_name: string;
3504
3481
  } | {
3505
- table_name: string;
3506
3482
  column_name: string;
3483
+ table_name: string;
3507
3484
  };
3508
3485
  Returns: string;
3509
3486
  };
@@ -3908,16 +3885,16 @@ export type Database = {
3908
3885
  get_language_entity_hierarchy: {
3909
3886
  Args: {
3910
3887
  entity_id: string;
3911
- generations_up?: number;
3912
3888
  generations_down?: number;
3889
+ generations_up?: number;
3913
3890
  };
3914
3891
  Returns: {
3892
+ generation_distance: number;
3915
3893
  hierarchy_entity_id: string;
3916
- hierarchy_entity_name: string;
3917
3894
  hierarchy_entity_level: string;
3895
+ hierarchy_entity_name: string;
3918
3896
  hierarchy_parent_id: string;
3919
3897
  relationship_type: string;
3920
- generation_distance: number;
3921
3898
  }[];
3922
3899
  };
3923
3900
  get_language_entity_path: {
@@ -3934,17 +3911,17 @@ export type Database = {
3934
3911
  };
3935
3912
  get_region_hierarchy: {
3936
3913
  Args: {
3937
- region_id: string;
3938
- generations_up?: number;
3939
3914
  generations_down?: number;
3915
+ generations_up?: number;
3916
+ region_id: string;
3940
3917
  };
3941
3918
  Returns: {
3919
+ generation_distance: number;
3920
+ hierarchy_parent_id: string;
3942
3921
  hierarchy_region_id: string;
3943
- hierarchy_region_name: string;
3944
3922
  hierarchy_region_level: string;
3945
- hierarchy_parent_id: string;
3923
+ hierarchy_region_name: string;
3946
3924
  relationship_type: string;
3947
- generation_distance: number;
3948
3925
  }[];
3949
3926
  };
3950
3927
  get_region_path: {
@@ -4124,25 +4101,25 @@ export type Database = {
4124
4101
  };
4125
4102
  postgis_constraint_dims: {
4126
4103
  Args: {
4104
+ geomcolumn: string;
4127
4105
  geomschema: string;
4128
4106
  geomtable: string;
4129
- geomcolumn: string;
4130
4107
  };
4131
4108
  Returns: number;
4132
4109
  };
4133
4110
  postgis_constraint_srid: {
4134
4111
  Args: {
4112
+ geomcolumn: string;
4135
4113
  geomschema: string;
4136
4114
  geomtable: string;
4137
- geomcolumn: string;
4138
4115
  };
4139
4116
  Returns: number;
4140
4117
  };
4141
4118
  postgis_constraint_type: {
4142
4119
  Args: {
4120
+ geomcolumn: string;
4143
4121
  geomschema: string;
4144
4122
  geomtable: string;
4145
- geomcolumn: string;
4146
4123
  };
4147
4124
  Returns: string;
4148
4125
  };
@@ -4244,8 +4221,8 @@ export type Database = {
4244
4221
  };
4245
4222
  postgis_type_name: {
4246
4223
  Args: {
4247
- geomname: string;
4248
4224
  coord_dimension: number;
4225
+ geomname: string;
4249
4226
  use_new_name?: boolean;
4250
4227
  };
4251
4228
  Returns: string;
@@ -4282,64 +4259,64 @@ export type Database = {
4282
4259
  };
4283
4260
  search_language_aliases: {
4284
4261
  Args: {
4285
- search_query: string;
4262
+ include_regions?: boolean;
4286
4263
  max_results?: number;
4287
4264
  min_similarity?: number;
4288
- include_regions?: boolean;
4265
+ search_query: string;
4289
4266
  };
4290
4267
  Returns: {
4291
- similarity_threshold_used: number;
4292
4268
  alias_id: string;
4293
4269
  alias_name: string;
4294
4270
  alias_similarity_score: number;
4295
4271
  entity_id: string;
4296
- entity_name: string;
4297
4272
  entity_level: string;
4273
+ entity_name: string;
4298
4274
  entity_parent_id: string;
4299
4275
  regions: Json;
4276
+ similarity_threshold_used: number;
4300
4277
  }[];
4301
4278
  };
4302
4279
  search_language_aliases_with_versions: {
4303
4280
  Args: {
4304
- search_query: string;
4305
4281
  filter_type?: Database["public"]["Enums"]["version_filter_type"];
4282
+ include_regions?: boolean;
4306
4283
  max_results?: number;
4307
4284
  min_similarity?: number;
4308
- include_regions?: boolean;
4285
+ search_query: string;
4309
4286
  };
4310
4287
  Returns: {
4311
- similarity_threshold_used: number;
4312
4288
  alias_id: string;
4313
4289
  alias_name: string;
4314
4290
  alias_similarity_score: number;
4291
+ audio_version_count: number;
4292
+ audio_versions: Json;
4315
4293
  entity_id: string;
4316
- entity_name: string;
4317
4294
  entity_level: string;
4295
+ entity_name: string;
4318
4296
  entity_parent_id: string;
4319
4297
  regions: Json;
4320
- audio_version_count: number;
4298
+ similarity_threshold_used: number;
4321
4299
  text_version_count: number;
4322
- audio_versions: Json;
4323
4300
  text_versions: Json;
4324
4301
  }[];
4325
4302
  };
4326
4303
  search_region_aliases: {
4327
4304
  Args: {
4328
- search_query: string;
4305
+ include_languages?: boolean;
4329
4306
  max_results?: number;
4330
4307
  min_similarity?: number;
4331
- include_languages?: boolean;
4308
+ search_query: string;
4332
4309
  };
4333
4310
  Returns: {
4334
- similarity_threshold_used: number;
4335
4311
  alias_id: string;
4336
4312
  alias_name: string;
4337
4313
  alias_similarity_score: number;
4314
+ languages: Json;
4338
4315
  region_id: string;
4339
- region_name: string;
4340
4316
  region_level: string;
4317
+ region_name: string;
4341
4318
  region_parent_id: string;
4342
- languages: Json;
4319
+ similarity_threshold_used: number;
4343
4320
  }[];
4344
4321
  };
4345
4322
  set_limit: {
@@ -4510,10 +4487,10 @@ export type Database = {
4510
4487
  maxdecimaldigits?: number;
4511
4488
  options?: number;
4512
4489
  } | {
4513
- r: Record<string, unknown>;
4514
4490
  geom_column?: string;
4515
4491
  maxdecimaldigits?: number;
4516
4492
  pretty_bool?: boolean;
4493
+ r: Record<string, unknown>;
4517
4494
  };
4518
4495
  Returns: string;
4519
4496
  };
@@ -4522,28 +4499,28 @@ export type Database = {
4522
4499
  "": string;
4523
4500
  } | {
4524
4501
  geog: unknown;
4525
- maxdecimaldigits?: number;
4526
- options?: number;
4527
- nprefix?: string;
4528
4502
  id?: string;
4529
- } | {
4530
- geom: unknown;
4531
4503
  maxdecimaldigits?: number;
4504
+ nprefix?: string;
4532
4505
  options?: number;
4533
4506
  } | {
4534
- version: number;
4535
4507
  geog: unknown;
4508
+ id?: string;
4536
4509
  maxdecimaldigits?: number;
4537
- options?: number;
4538
4510
  nprefix?: string;
4539
- id?: string;
4511
+ options?: number;
4512
+ version: number;
4540
4513
  } | {
4514
+ geom: unknown;
4515
+ id?: string;
4516
+ maxdecimaldigits?: number;
4517
+ nprefix?: string;
4518
+ options?: number;
4541
4519
  version: number;
4520
+ } | {
4542
4521
  geom: unknown;
4543
4522
  maxdecimaldigits?: number;
4544
4523
  options?: number;
4545
- nprefix?: string;
4546
- id?: string;
4547
4524
  };
4548
4525
  Returns: string;
4549
4526
  };
@@ -4576,18 +4553,18 @@ export type Database = {
4576
4553
  };
4577
4554
  st_asmarc21: {
4578
4555
  Args: {
4579
- geom: unknown;
4580
4556
  format?: string;
4557
+ geom: unknown;
4581
4558
  };
4582
4559
  Returns: string;
4583
4560
  };
4584
4561
  st_asmvtgeom: {
4585
4562
  Args: {
4586
- geom: unknown;
4587
4563
  bounds: unknown;
4588
- extent?: number;
4589
4564
  buffer?: number;
4590
4565
  clip_geom?: boolean;
4566
+ extent?: number;
4567
+ geom: unknown;
4591
4568
  };
4592
4569
  Returns: unknown;
4593
4570
  };
@@ -4596,12 +4573,12 @@ export type Database = {
4596
4573
  "": string;
4597
4574
  } | {
4598
4575
  geog: unknown;
4599
- rel?: number;
4600
4576
  maxdecimaldigits?: number;
4577
+ rel?: number;
4601
4578
  } | {
4602
4579
  geom: unknown;
4603
- rel?: number;
4604
4580
  maxdecimaldigits?: number;
4581
+ rel?: number;
4605
4582
  };
4606
4583
  Returns: string;
4607
4584
  };
@@ -4620,17 +4597,17 @@ export type Database = {
4620
4597
  geom: unknown[];
4621
4598
  ids: number[];
4622
4599
  prec?: number;
4623
- prec_z?: number;
4624
4600
  prec_m?: number;
4625
- with_sizes?: boolean;
4601
+ prec_z?: number;
4626
4602
  with_boxes?: boolean;
4603
+ with_sizes?: boolean;
4627
4604
  } | {
4628
4605
  geom: unknown;
4629
4606
  prec?: number;
4630
- prec_z?: number;
4631
4607
  prec_m?: number;
4632
- with_sizes?: boolean;
4608
+ prec_z?: number;
4633
4609
  with_boxes?: boolean;
4610
+ with_sizes?: boolean;
4634
4611
  };
4635
4612
  Returns: string;
4636
4613
  };
@@ -4660,20 +4637,20 @@ export type Database = {
4660
4637
  };
4661
4638
  st_boundingdiagonal: {
4662
4639
  Args: {
4663
- geom: unknown;
4664
4640
  fits?: boolean;
4641
+ geom: unknown;
4665
4642
  };
4666
4643
  Returns: unknown;
4667
4644
  };
4668
4645
  st_buffer: {
4669
4646
  Args: {
4670
4647
  geom: unknown;
4671
- radius: number;
4672
4648
  options?: string;
4649
+ radius: number;
4673
4650
  } | {
4674
4651
  geom: unknown;
4675
- radius: number;
4676
4652
  quadsegs: number;
4653
+ radius: number;
4677
4654
  };
4678
4655
  Returns: unknown;
4679
4656
  };
@@ -4699,8 +4676,8 @@ export type Database = {
4699
4676
  };
4700
4677
  st_clipbybox2d: {
4701
4678
  Args: {
4702
- geom: unknown;
4703
4679
  box: unknown;
4680
+ geom: unknown;
4704
4681
  };
4705
4682
  Returns: unknown;
4706
4683
  };
@@ -4740,9 +4717,9 @@ export type Database = {
4740
4717
  };
4741
4718
  st_concavehull: {
4742
4719
  Args: {
4720
+ param_allow_holes?: boolean;
4743
4721
  param_geom: unknown;
4744
4722
  param_pctconvex: number;
4745
- param_allow_holes?: boolean;
4746
4723
  };
4747
4724
  Returns: unknown;
4748
4725
  };
@@ -4801,18 +4778,18 @@ export type Database = {
4801
4778
  };
4802
4779
  st_curvetoline: {
4803
4780
  Args: {
4781
+ flags?: number;
4804
4782
  geom: unknown;
4805
4783
  tol?: number;
4806
4784
  toltype?: number;
4807
- flags?: number;
4808
4785
  };
4809
4786
  Returns: unknown;
4810
4787
  };
4811
4788
  st_delaunaytriangles: {
4812
4789
  Args: {
4790
+ flags?: number;
4813
4791
  g1: unknown;
4814
4792
  tolerance?: number;
4815
- flags?: number;
4816
4793
  };
4817
4794
  Returns: unknown;
4818
4795
  };
@@ -4929,11 +4906,11 @@ export type Database = {
4929
4906
  dy: number;
4930
4907
  dz?: number;
4931
4908
  } | {
4932
- geom: unknown;
4909
+ dm?: number;
4933
4910
  dx: number;
4934
4911
  dy: number;
4935
4912
  dz?: number;
4936
- dm?: number;
4913
+ geom: unknown;
4937
4914
  };
4938
4915
  Returns: unknown;
4939
4916
  };
@@ -4979,8 +4956,8 @@ export type Database = {
4979
4956
  st_force4d: {
4980
4957
  Args: {
4981
4958
  geom: unknown;
4982
- zvalue?: number;
4983
4959
  mvalue?: number;
4960
+ zvalue?: number;
4984
4961
  };
4985
4962
  Returns: unknown;
4986
4963
  };
@@ -5073,10 +5050,10 @@ export type Database = {
5073
5050
  };
5074
5051
  st_geometricmedian: {
5075
5052
  Args: {
5053
+ fail_if_not_converged?: boolean;
5076
5054
  g: unknown;
5077
- tolerance?: number;
5078
5055
  max_iter?: number;
5079
- fail_if_not_converged?: boolean;
5056
+ tolerance?: number;
5080
5057
  };
5081
5058
  Returns: unknown;
5082
5059
  };
@@ -5171,17 +5148,17 @@ export type Database = {
5171
5148
  };
5172
5149
  st_hexagon: {
5173
5150
  Args: {
5174
- size: number;
5175
5151
  cell_i: number;
5176
5152
  cell_j: number;
5177
5153
  origin?: unknown;
5154
+ size: number;
5178
5155
  };
5179
5156
  Returns: unknown;
5180
5157
  };
5181
5158
  st_hexagongrid: {
5182
5159
  Args: {
5183
- size: number;
5184
5160
  bounds: unknown;
5161
+ size: number;
5185
5162
  };
5186
5163
  Returns: Record<string, unknown>[];
5187
5164
  };
@@ -5260,8 +5237,8 @@ export type Database = {
5260
5237
  };
5261
5238
  st_isvaliddetail: {
5262
5239
  Args: {
5263
- geom: unknown;
5264
5240
  flags?: number;
5241
+ geom: unknown;
5265
5242
  };
5266
5243
  Returns: Database["public"]["CompositeTypes"]["valid_detail"];
5267
5244
  };
@@ -5296,8 +5273,8 @@ export type Database = {
5296
5273
  };
5297
5274
  st_letters: {
5298
5275
  Args: {
5299
- letters: string;
5300
5276
  font?: Json;
5277
+ letters: string;
5301
5278
  };
5302
5279
  Returns: unknown;
5303
5280
  };
@@ -5310,8 +5287,8 @@ export type Database = {
5310
5287
  };
5311
5288
  st_linefromencodedpolyline: {
5312
5289
  Args: {
5313
- txtin: string;
5314
5290
  nprecision?: number;
5291
+ txtin: string;
5315
5292
  };
5316
5293
  Returns: unknown;
5317
5294
  };
@@ -5361,24 +5338,24 @@ export type Database = {
5361
5338
  st_locatealong: {
5362
5339
  Args: {
5363
5340
  geometry: unknown;
5364
- measure: number;
5365
5341
  leftrightoffset?: number;
5342
+ measure: number;
5366
5343
  };
5367
5344
  Returns: unknown;
5368
5345
  };
5369
5346
  st_locatebetween: {
5370
5347
  Args: {
5371
- geometry: unknown;
5372
5348
  frommeasure: number;
5373
- tomeasure: number;
5349
+ geometry: unknown;
5374
5350
  leftrightoffset?: number;
5351
+ tomeasure: number;
5375
5352
  };
5376
5353
  Returns: unknown;
5377
5354
  };
5378
5355
  st_locatebetweenelevations: {
5379
5356
  Args: {
5380
- geometry: unknown;
5381
5357
  fromelevation: number;
5358
+ geometry: unknown;
5382
5359
  toelevation: number;
5383
5360
  };
5384
5361
  Returns: unknown;
@@ -5611,8 +5588,8 @@ export type Database = {
5611
5588
  };
5612
5589
  st_offsetcurve: {
5613
5590
  Args: {
5614
- line: unknown;
5615
5591
  distance: number;
5592
+ line: unknown;
5616
5593
  params?: string;
5617
5594
  };
5618
5595
  Returns: unknown;
@@ -5666,10 +5643,10 @@ export type Database = {
5666
5643
  };
5667
5644
  st_pointm: {
5668
5645
  Args: {
5669
- xcoordinate: number;
5670
- ycoordinate: number;
5671
5646
  mcoordinate: number;
5672
5647
  srid?: number;
5648
+ xcoordinate: number;
5649
+ ycoordinate: number;
5673
5650
  };
5674
5651
  Returns: unknown;
5675
5652
  };
@@ -5687,20 +5664,20 @@ export type Database = {
5687
5664
  };
5688
5665
  st_pointz: {
5689
5666
  Args: {
5667
+ srid?: number;
5690
5668
  xcoordinate: number;
5691
5669
  ycoordinate: number;
5692
5670
  zcoordinate: number;
5693
- srid?: number;
5694
5671
  };
5695
5672
  Returns: unknown;
5696
5673
  };
5697
5674
  st_pointzm: {
5698
5675
  Args: {
5676
+ mcoordinate: number;
5677
+ srid?: number;
5699
5678
  xcoordinate: number;
5700
5679
  ycoordinate: number;
5701
5680
  zcoordinate: number;
5702
- mcoordinate: number;
5703
- srid?: number;
5704
5681
  };
5705
5682
  Returns: unknown;
5706
5683
  };
@@ -5736,19 +5713,19 @@ export type Database = {
5736
5713
  };
5737
5714
  st_project: {
5738
5715
  Args: {
5739
- geog: unknown;
5740
- distance: number;
5741
5716
  azimuth: number;
5717
+ distance: number;
5718
+ geog: unknown;
5742
5719
  };
5743
5720
  Returns: unknown;
5744
5721
  };
5745
5722
  st_quantizecoordinates: {
5746
5723
  Args: {
5747
5724
  g: unknown;
5725
+ prec_m?: number;
5748
5726
  prec_x: number;
5749
5727
  prec_y?: number;
5750
5728
  prec_z?: number;
5751
- prec_m?: number;
5752
5729
  };
5753
5730
  Returns: unknown;
5754
5731
  };
@@ -5819,8 +5796,8 @@ export type Database = {
5819
5796
  st_simplifypolygonhull: {
5820
5797
  Args: {
5821
5798
  geom: unknown;
5822
- vertex_fraction: number;
5823
5799
  is_outer?: boolean;
5800
+ vertex_fraction: number;
5824
5801
  };
5825
5802
  Returns: unknown;
5826
5803
  };
@@ -5833,17 +5810,17 @@ export type Database = {
5833
5810
  };
5834
5811
  st_square: {
5835
5812
  Args: {
5836
- size: number;
5837
5813
  cell_i: number;
5838
5814
  cell_j: number;
5839
5815
  origin?: unknown;
5816
+ size: number;
5840
5817
  };
5841
5818
  Returns: unknown;
5842
5819
  };
5843
5820
  st_squaregrid: {
5844
5821
  Args: {
5845
- size: number;
5846
5822
  bounds: unknown;
5823
+ size: number;
5847
5824
  };
5848
5825
  Returns: Record<string, unknown>[];
5849
5826
  };
@@ -5864,8 +5841,8 @@ export type Database = {
5864
5841
  st_subdivide: {
5865
5842
  Args: {
5866
5843
  geom: unknown;
5867
- maxvertices?: number;
5868
5844
  gridsize?: number;
5845
+ maxvertices?: number;
5869
5846
  };
5870
5847
  Returns: unknown[];
5871
5848
  };
@@ -5901,11 +5878,11 @@ export type Database = {
5901
5878
  };
5902
5879
  st_tileenvelope: {
5903
5880
  Args: {
5904
- zoom: number;
5905
- x: number;
5906
- y: number;
5907
5881
  bounds?: unknown;
5908
5882
  margin?: number;
5883
+ x: number;
5884
+ y: number;
5885
+ zoom: number;
5909
5886
  };
5910
5887
  Returns: unknown;
5911
5888
  };
@@ -5918,12 +5895,12 @@ export type Database = {
5918
5895
  };
5919
5896
  st_transform: {
5920
5897
  Args: {
5921
- geom: unknown;
5922
5898
  from_proj: string;
5899
+ geom: unknown;
5923
5900
  to_proj: string;
5924
5901
  } | {
5925
- geom: unknown;
5926
5902
  from_proj: string;
5903
+ geom: unknown;
5927
5904
  to_srid: number;
5928
5905
  } | {
5929
5906
  geom: unknown;
@@ -5952,17 +5929,17 @@ export type Database = {
5952
5929
  };
5953
5930
  st_voronoilines: {
5954
5931
  Args: {
5932
+ extend_to?: unknown;
5955
5933
  g1: unknown;
5956
5934
  tolerance?: number;
5957
- extend_to?: unknown;
5958
5935
  };
5959
5936
  Returns: unknown;
5960
5937
  };
5961
5938
  st_voronoipolygons: {
5962
5939
  Args: {
5940
+ extend_to?: unknown;
5963
5941
  g1: unknown;
5964
5942
  tolerance?: number;
5965
- extend_to?: unknown;
5966
5943
  };
5967
5944
  Returns: unknown;
5968
5945
  };
@@ -5988,8 +5965,8 @@ export type Database = {
5988
5965
  st_wrapx: {
5989
5966
  Args: {
5990
5967
  geom: unknown;
5991
- wrap: number;
5992
5968
  move: number;
5969
+ wrap: number;
5993
5970
  };
5994
5971
  Returns: unknown;
5995
5972
  };
@@ -6068,25 +6045,26 @@ export type Database = {
6068
6045
  updategeometrysrid: {
6069
6046
  Args: {
6070
6047
  catalogn_name: string;
6071
- schema_name: string;
6072
- table_name: string;
6073
6048
  column_name: string;
6074
6049
  new_srid_in: number;
6050
+ schema_name: string;
6051
+ table_name: string;
6075
6052
  };
6076
6053
  Returns: string;
6077
6054
  };
6078
6055
  validate_verse_range: {
6079
6056
  Args: {
6080
- start_verse_text_id: string;
6081
6057
  end_verse_text_id: string;
6058
+ start_verse_text_id: string;
6082
6059
  } | {
6083
- start_verse_uuid: string;
6084
6060
  end_verse_uuid: string;
6061
+ start_verse_uuid: string;
6085
6062
  };
6086
6063
  Returns: boolean;
6087
6064
  };
6088
6065
  };
6089
6066
  Enums: {
6067
+ bookmark_type: "passage";
6090
6068
  change_type: "create" | "update" | "delete";
6091
6069
  check_status: "pending" | "approved" | "rejected" | "requires_review";
6092
6070
  connectivity_type: "wifi" | "cellular" | "offline" | "unknown";
@@ -6094,8 +6072,10 @@ export type Database = {
6094
6072
  feedback_actioned: "pending" | "actioned" | "rejected";
6095
6073
  feedback_type: "approved" | "change_required";
6096
6074
  language_entity_level: "family" | "language" | "dialect" | "mother_tongue";
6075
+ location_source_type: "device" | "ip" | "unknown";
6097
6076
  media_type: "audio" | "video";
6098
6077
  platform_type: "ios" | "android" | "web" | "desktop";
6078
+ playlist_item_type: "passage" | "custom_text";
6099
6079
  publish_status: "pending" | "published" | "archived";
6100
6080
  region_level: "continent" | "world_region" | "country" | "state" | "province" | "district" | "town" | "village";
6101
6081
  segment_type: "source" | "target";
@@ -6174,6 +6154,7 @@ export declare const Constants: {
6174
6154
  };
6175
6155
  readonly public: {
6176
6156
  readonly Enums: {
6157
+ readonly bookmark_type: readonly ["passage"];
6177
6158
  readonly change_type: readonly ["create", "update", "delete"];
6178
6159
  readonly check_status: readonly ["pending", "approved", "rejected", "requires_review"];
6179
6160
  readonly connectivity_type: readonly ["wifi", "cellular", "offline", "unknown"];
@@ -6181,8 +6162,10 @@ export declare const Constants: {
6181
6162
  readonly feedback_actioned: readonly ["pending", "actioned", "rejected"];
6182
6163
  readonly feedback_type: readonly ["approved", "change_required"];
6183
6164
  readonly language_entity_level: readonly ["family", "language", "dialect", "mother_tongue"];
6165
+ readonly location_source_type: readonly ["device", "ip", "unknown"];
6184
6166
  readonly media_type: readonly ["audio", "video"];
6185
6167
  readonly platform_type: readonly ["ios", "android", "web", "desktop"];
6168
+ readonly playlist_item_type: readonly ["passage", "custom_text"];
6186
6169
  readonly publish_status: readonly ["pending", "published", "archived"];
6187
6170
  readonly region_level: readonly ["continent", "world_region", "country", "state", "province", "district", "town", "village"];
6188
6171
  readonly segment_type: readonly ["source", "target"];