@everylanguage/shared-types 1.0.20 → 1.0.22
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.
- package/package.json +1 -2
- package/types/database.d.ts +1766 -1355
package/types/database.d.ts
CHANGED
|
@@ -35,38 +35,47 @@ export type Database = {
|
|
|
35
35
|
app_downloads: {
|
|
36
36
|
Row: {
|
|
37
37
|
app_version: string;
|
|
38
|
+
continent_code: string | null;
|
|
39
|
+
country_code: string | null;
|
|
38
40
|
device_id: string;
|
|
39
41
|
downloaded_at: string | null;
|
|
40
42
|
id: string;
|
|
41
|
-
location: unknown
|
|
43
|
+
location: unknown;
|
|
42
44
|
origin_share_id: string | null;
|
|
43
45
|
os: string | null;
|
|
44
46
|
os_version: string | null;
|
|
45
47
|
platform: Database["public"]["Enums"]["platform_type"];
|
|
48
|
+
region_code: string | null;
|
|
46
49
|
user_id: string | null;
|
|
47
50
|
};
|
|
48
51
|
Insert: {
|
|
49
52
|
app_version: string;
|
|
53
|
+
continent_code?: string | null;
|
|
54
|
+
country_code?: string | null;
|
|
50
55
|
device_id: string;
|
|
51
56
|
downloaded_at?: string | null;
|
|
52
57
|
id?: string;
|
|
53
|
-
location?: unknown
|
|
58
|
+
location?: unknown;
|
|
54
59
|
origin_share_id?: string | null;
|
|
55
60
|
os?: string | null;
|
|
56
61
|
os_version?: string | null;
|
|
57
62
|
platform: Database["public"]["Enums"]["platform_type"];
|
|
63
|
+
region_code?: string | null;
|
|
58
64
|
user_id?: string | null;
|
|
59
65
|
};
|
|
60
66
|
Update: {
|
|
61
67
|
app_version?: string;
|
|
68
|
+
continent_code?: string | null;
|
|
69
|
+
country_code?: string | null;
|
|
62
70
|
device_id?: string;
|
|
63
71
|
downloaded_at?: string | null;
|
|
64
72
|
id?: string;
|
|
65
|
-
location?: unknown
|
|
73
|
+
location?: unknown;
|
|
66
74
|
origin_share_id?: string | null;
|
|
67
75
|
os?: string | null;
|
|
68
76
|
os_version?: string | null;
|
|
69
77
|
platform?: Database["public"]["Enums"]["platform_type"];
|
|
78
|
+
region_code?: string | null;
|
|
70
79
|
user_id?: string | null;
|
|
71
80
|
};
|
|
72
81
|
Relationships: [
|
|
@@ -142,6 +151,13 @@ export type Database = {
|
|
|
142
151
|
referencedRelation: "language_entities";
|
|
143
152
|
referencedColumns: ["id"];
|
|
144
153
|
},
|
|
154
|
+
{
|
|
155
|
+
foreignKeyName: "audio_versions_project_id_fkey";
|
|
156
|
+
columns: ["project_id"];
|
|
157
|
+
isOneToOne: false;
|
|
158
|
+
referencedRelation: "project_financials";
|
|
159
|
+
referencedColumns: ["project_id"];
|
|
160
|
+
},
|
|
145
161
|
{
|
|
146
162
|
foreignKeyName: "audio_versions_project_id_fkey";
|
|
147
163
|
columns: ["project_id"];
|
|
@@ -154,54 +170,65 @@ export type Database = {
|
|
|
154
170
|
bases: {
|
|
155
171
|
Row: {
|
|
156
172
|
created_at: string | null;
|
|
173
|
+
created_by: string | null;
|
|
157
174
|
id: string;
|
|
158
|
-
location: unknown
|
|
175
|
+
location: unknown;
|
|
159
176
|
name: string;
|
|
160
177
|
region_id: string | null;
|
|
161
178
|
updated_at: string | null;
|
|
162
179
|
};
|
|
163
180
|
Insert: {
|
|
164
181
|
created_at?: string | null;
|
|
182
|
+
created_by?: string | null;
|
|
165
183
|
id?: string;
|
|
166
|
-
location?: unknown
|
|
184
|
+
location?: unknown;
|
|
167
185
|
name: string;
|
|
168
186
|
region_id?: string | null;
|
|
169
187
|
updated_at?: string | null;
|
|
170
188
|
};
|
|
171
189
|
Update: {
|
|
172
190
|
created_at?: string | null;
|
|
191
|
+
created_by?: string | null;
|
|
173
192
|
id?: string;
|
|
174
|
-
location?: unknown
|
|
193
|
+
location?: unknown;
|
|
175
194
|
name?: string;
|
|
176
195
|
region_id?: string | null;
|
|
177
196
|
updated_at?: string | null;
|
|
178
197
|
};
|
|
179
|
-
Relationships: [
|
|
198
|
+
Relationships: [
|
|
199
|
+
{
|
|
200
|
+
foreignKeyName: "bases_created_by_fkey";
|
|
201
|
+
columns: ["created_by"];
|
|
202
|
+
isOneToOne: false;
|
|
203
|
+
referencedRelation: "users";
|
|
204
|
+
referencedColumns: ["id"];
|
|
205
|
+
}
|
|
206
|
+
];
|
|
180
207
|
};
|
|
181
208
|
bases_teams: {
|
|
182
209
|
Row: {
|
|
210
|
+
assigned_at: string;
|
|
183
211
|
base_id: string;
|
|
184
|
-
created_at: string | null;
|
|
185
212
|
id: string;
|
|
186
213
|
role_id: string;
|
|
187
214
|
team_id: string;
|
|
188
|
-
|
|
215
|
+
unassigned_at: string | null;
|
|
189
216
|
};
|
|
190
217
|
Insert: {
|
|
218
|
+
assigned_at?: string;
|
|
191
219
|
base_id: string;
|
|
192
|
-
created_at?: string | null;
|
|
193
220
|
id?: string;
|
|
194
221
|
role_id: string;
|
|
195
222
|
team_id: string;
|
|
196
|
-
|
|
223
|
+
unassigned_at?: string | null;
|
|
197
224
|
};
|
|
198
225
|
Update: {
|
|
226
|
+
assigned_at?: string;
|
|
199
227
|
base_id?: string;
|
|
200
|
-
created_at?: string | null;
|
|
201
228
|
id?: string;
|
|
202
229
|
role_id?: string;
|
|
203
230
|
team_id?: string;
|
|
204
|
-
|
|
231
|
+
unassigned_at?: string | null;
|
|
205
232
|
};
|
|
206
233
|
Relationships: [
|
|
207
234
|
{
|
|
@@ -396,6 +423,133 @@ export type Database = {
|
|
|
396
423
|
}
|
|
397
424
|
];
|
|
398
425
|
};
|
|
426
|
+
contributions: {
|
|
427
|
+
Row: {
|
|
428
|
+
amount_cents: number;
|
|
429
|
+
created_at: string;
|
|
430
|
+
created_by: string | null;
|
|
431
|
+
currency_code: string;
|
|
432
|
+
fee_cents: number | null;
|
|
433
|
+
fee_covered_by_donor: boolean | null;
|
|
434
|
+
id: string;
|
|
435
|
+
kind: Database["public"]["Enums"]["contribution_kind"];
|
|
436
|
+
language_adoption_id: string | null;
|
|
437
|
+
occurred_at: string;
|
|
438
|
+
project_id: string | null;
|
|
439
|
+
sponsorship_id: string;
|
|
440
|
+
stripe_charge_id: string | null;
|
|
441
|
+
stripe_invoice_id: string | null;
|
|
442
|
+
stripe_payment_intent_id: string | null;
|
|
443
|
+
stripe_subscription_id: string | null;
|
|
444
|
+
};
|
|
445
|
+
Insert: {
|
|
446
|
+
amount_cents: number;
|
|
447
|
+
created_at?: string;
|
|
448
|
+
created_by?: string | null;
|
|
449
|
+
currency_code?: string;
|
|
450
|
+
fee_cents?: number | null;
|
|
451
|
+
fee_covered_by_donor?: boolean | null;
|
|
452
|
+
id?: string;
|
|
453
|
+
kind: Database["public"]["Enums"]["contribution_kind"];
|
|
454
|
+
language_adoption_id?: string | null;
|
|
455
|
+
occurred_at?: string;
|
|
456
|
+
project_id?: string | null;
|
|
457
|
+
sponsorship_id: string;
|
|
458
|
+
stripe_charge_id?: string | null;
|
|
459
|
+
stripe_invoice_id?: string | null;
|
|
460
|
+
stripe_payment_intent_id?: string | null;
|
|
461
|
+
stripe_subscription_id?: string | null;
|
|
462
|
+
};
|
|
463
|
+
Update: {
|
|
464
|
+
amount_cents?: number;
|
|
465
|
+
created_at?: string;
|
|
466
|
+
created_by?: string | null;
|
|
467
|
+
currency_code?: string;
|
|
468
|
+
fee_cents?: number | null;
|
|
469
|
+
fee_covered_by_donor?: boolean | null;
|
|
470
|
+
id?: string;
|
|
471
|
+
kind?: Database["public"]["Enums"]["contribution_kind"];
|
|
472
|
+
language_adoption_id?: string | null;
|
|
473
|
+
occurred_at?: string;
|
|
474
|
+
project_id?: string | null;
|
|
475
|
+
sponsorship_id?: string;
|
|
476
|
+
stripe_charge_id?: string | null;
|
|
477
|
+
stripe_invoice_id?: string | null;
|
|
478
|
+
stripe_payment_intent_id?: string | null;
|
|
479
|
+
stripe_subscription_id?: string | null;
|
|
480
|
+
};
|
|
481
|
+
Relationships: [
|
|
482
|
+
{
|
|
483
|
+
foreignKeyName: "contributions_created_by_fkey";
|
|
484
|
+
columns: ["created_by"];
|
|
485
|
+
isOneToOne: false;
|
|
486
|
+
referencedRelation: "users";
|
|
487
|
+
referencedColumns: ["id"];
|
|
488
|
+
},
|
|
489
|
+
{
|
|
490
|
+
foreignKeyName: "contributions_language_adoption_id_fkey";
|
|
491
|
+
columns: ["language_adoption_id"];
|
|
492
|
+
isOneToOne: false;
|
|
493
|
+
referencedRelation: "language_adoptions";
|
|
494
|
+
referencedColumns: ["id"];
|
|
495
|
+
},
|
|
496
|
+
{
|
|
497
|
+
foreignKeyName: "contributions_language_adoption_id_fkey";
|
|
498
|
+
columns: ["language_adoption_id"];
|
|
499
|
+
isOneToOne: false;
|
|
500
|
+
referencedRelation: "public_language_adoptions";
|
|
501
|
+
referencedColumns: ["id"];
|
|
502
|
+
},
|
|
503
|
+
{
|
|
504
|
+
foreignKeyName: "contributions_project_id_fkey";
|
|
505
|
+
columns: ["project_id"];
|
|
506
|
+
isOneToOne: false;
|
|
507
|
+
referencedRelation: "project_financials";
|
|
508
|
+
referencedColumns: ["project_id"];
|
|
509
|
+
},
|
|
510
|
+
{
|
|
511
|
+
foreignKeyName: "contributions_project_id_fkey";
|
|
512
|
+
columns: ["project_id"];
|
|
513
|
+
isOneToOne: false;
|
|
514
|
+
referencedRelation: "projects";
|
|
515
|
+
referencedColumns: ["id"];
|
|
516
|
+
},
|
|
517
|
+
{
|
|
518
|
+
foreignKeyName: "contributions_sponsorship_id_fkey";
|
|
519
|
+
columns: ["sponsorship_id"];
|
|
520
|
+
isOneToOne: false;
|
|
521
|
+
referencedRelation: "sponsorships";
|
|
522
|
+
referencedColumns: ["id"];
|
|
523
|
+
}
|
|
524
|
+
];
|
|
525
|
+
};
|
|
526
|
+
exchange_rates: {
|
|
527
|
+
Row: {
|
|
528
|
+
as_of_date: string;
|
|
529
|
+
base_currency: string;
|
|
530
|
+
fetched_at: string;
|
|
531
|
+
id: string;
|
|
532
|
+
provider: string;
|
|
533
|
+
rates: Json;
|
|
534
|
+
};
|
|
535
|
+
Insert: {
|
|
536
|
+
as_of_date: string;
|
|
537
|
+
base_currency?: string;
|
|
538
|
+
fetched_at?: string;
|
|
539
|
+
id?: string;
|
|
540
|
+
provider: string;
|
|
541
|
+
rates: Json;
|
|
542
|
+
};
|
|
543
|
+
Update: {
|
|
544
|
+
as_of_date?: string;
|
|
545
|
+
base_currency?: string;
|
|
546
|
+
fetched_at?: string;
|
|
547
|
+
id?: string;
|
|
548
|
+
provider?: string;
|
|
549
|
+
rates?: Json;
|
|
550
|
+
};
|
|
551
|
+
Relationships: [];
|
|
552
|
+
};
|
|
399
553
|
image_sets: {
|
|
400
554
|
Row: {
|
|
401
555
|
created_at: string | null;
|
|
@@ -494,6 +648,66 @@ export type Database = {
|
|
|
494
648
|
}
|
|
495
649
|
];
|
|
496
650
|
};
|
|
651
|
+
language_adoptions: {
|
|
652
|
+
Row: {
|
|
653
|
+
available_since: string | null;
|
|
654
|
+
created_at: string;
|
|
655
|
+
created_by: string | null;
|
|
656
|
+
currency_code: string;
|
|
657
|
+
deleted_at: string | null;
|
|
658
|
+
estimated_budget_cents: number;
|
|
659
|
+
id: string;
|
|
660
|
+
language_entity_id: string;
|
|
661
|
+
notes: string | null;
|
|
662
|
+
status: Database["public"]["Enums"]["adoption_status"];
|
|
663
|
+
translators_ready: boolean;
|
|
664
|
+
updated_at: string | null;
|
|
665
|
+
};
|
|
666
|
+
Insert: {
|
|
667
|
+
available_since?: string | null;
|
|
668
|
+
created_at?: string;
|
|
669
|
+
created_by?: string | null;
|
|
670
|
+
currency_code?: string;
|
|
671
|
+
deleted_at?: string | null;
|
|
672
|
+
estimated_budget_cents: number;
|
|
673
|
+
id?: string;
|
|
674
|
+
language_entity_id: string;
|
|
675
|
+
notes?: string | null;
|
|
676
|
+
status?: Database["public"]["Enums"]["adoption_status"];
|
|
677
|
+
translators_ready?: boolean;
|
|
678
|
+
updated_at?: string | null;
|
|
679
|
+
};
|
|
680
|
+
Update: {
|
|
681
|
+
available_since?: string | null;
|
|
682
|
+
created_at?: string;
|
|
683
|
+
created_by?: string | null;
|
|
684
|
+
currency_code?: string;
|
|
685
|
+
deleted_at?: string | null;
|
|
686
|
+
estimated_budget_cents?: number;
|
|
687
|
+
id?: string;
|
|
688
|
+
language_entity_id?: string;
|
|
689
|
+
notes?: string | null;
|
|
690
|
+
status?: Database["public"]["Enums"]["adoption_status"];
|
|
691
|
+
translators_ready?: boolean;
|
|
692
|
+
updated_at?: string | null;
|
|
693
|
+
};
|
|
694
|
+
Relationships: [
|
|
695
|
+
{
|
|
696
|
+
foreignKeyName: "language_adoptions_created_by_fkey";
|
|
697
|
+
columns: ["created_by"];
|
|
698
|
+
isOneToOne: false;
|
|
699
|
+
referencedRelation: "users";
|
|
700
|
+
referencedColumns: ["id"];
|
|
701
|
+
},
|
|
702
|
+
{
|
|
703
|
+
foreignKeyName: "language_adoptions_language_entity_id_fkey";
|
|
704
|
+
columns: ["language_entity_id"];
|
|
705
|
+
isOneToOne: false;
|
|
706
|
+
referencedRelation: "language_entities";
|
|
707
|
+
referencedColumns: ["id"];
|
|
708
|
+
}
|
|
709
|
+
];
|
|
710
|
+
};
|
|
497
711
|
language_aliases: {
|
|
498
712
|
Row: {
|
|
499
713
|
alias_name: string;
|
|
@@ -908,6 +1122,13 @@ export type Database = {
|
|
|
908
1122
|
version?: number | null;
|
|
909
1123
|
};
|
|
910
1124
|
Relationships: [
|
|
1125
|
+
{
|
|
1126
|
+
foreignKeyName: "media_files_audio_version_id_fkey";
|
|
1127
|
+
columns: ["audio_version_id"];
|
|
1128
|
+
isOneToOne: false;
|
|
1129
|
+
referencedRelation: "audio_version_progress_summary";
|
|
1130
|
+
referencedColumns: ["audio_version_id"];
|
|
1131
|
+
},
|
|
911
1132
|
{
|
|
912
1133
|
foreignKeyName: "media_files_audio_version_id_fkey";
|
|
913
1134
|
columns: ["audio_version_id"];
|
|
@@ -915,6 +1136,20 @@ export type Database = {
|
|
|
915
1136
|
referencedRelation: "audio_versions";
|
|
916
1137
|
referencedColumns: ["id"];
|
|
917
1138
|
},
|
|
1139
|
+
{
|
|
1140
|
+
foreignKeyName: "media_files_audio_version_id_fkey";
|
|
1141
|
+
columns: ["audio_version_id"];
|
|
1142
|
+
isOneToOne: false;
|
|
1143
|
+
referencedRelation: "language_entity_best_audio_version";
|
|
1144
|
+
referencedColumns: ["audio_version_id"];
|
|
1145
|
+
},
|
|
1146
|
+
{
|
|
1147
|
+
foreignKeyName: "media_files_audio_version_id_fkey";
|
|
1148
|
+
columns: ["audio_version_id"];
|
|
1149
|
+
isOneToOne: false;
|
|
1150
|
+
referencedRelation: "mv_audio_version_progress_summary";
|
|
1151
|
+
referencedColumns: ["audio_version_id"];
|
|
1152
|
+
},
|
|
918
1153
|
{
|
|
919
1154
|
foreignKeyName: "media_files_chapter_id_fkey";
|
|
920
1155
|
columns: ["chapter_id"];
|
|
@@ -1094,6 +1329,13 @@ export type Database = {
|
|
|
1094
1329
|
referencedRelation: "users";
|
|
1095
1330
|
referencedColumns: ["id"];
|
|
1096
1331
|
},
|
|
1332
|
+
{
|
|
1333
|
+
foreignKeyName: "media_files_verses_denormalized_audio_version_id_fkey";
|
|
1334
|
+
columns: ["denormalized_audio_version_id"];
|
|
1335
|
+
isOneToOne: false;
|
|
1336
|
+
referencedRelation: "audio_version_progress_summary";
|
|
1337
|
+
referencedColumns: ["audio_version_id"];
|
|
1338
|
+
},
|
|
1097
1339
|
{
|
|
1098
1340
|
foreignKeyName: "media_files_verses_denormalized_audio_version_id_fkey";
|
|
1099
1341
|
columns: ["denormalized_audio_version_id"];
|
|
@@ -1101,6 +1343,20 @@ export type Database = {
|
|
|
1101
1343
|
referencedRelation: "audio_versions";
|
|
1102
1344
|
referencedColumns: ["id"];
|
|
1103
1345
|
},
|
|
1346
|
+
{
|
|
1347
|
+
foreignKeyName: "media_files_verses_denormalized_audio_version_id_fkey";
|
|
1348
|
+
columns: ["denormalized_audio_version_id"];
|
|
1349
|
+
isOneToOne: false;
|
|
1350
|
+
referencedRelation: "language_entity_best_audio_version";
|
|
1351
|
+
referencedColumns: ["audio_version_id"];
|
|
1352
|
+
},
|
|
1353
|
+
{
|
|
1354
|
+
foreignKeyName: "media_files_verses_denormalized_audio_version_id_fkey";
|
|
1355
|
+
columns: ["denormalized_audio_version_id"];
|
|
1356
|
+
isOneToOne: false;
|
|
1357
|
+
referencedRelation: "mv_audio_version_progress_summary";
|
|
1358
|
+
referencedColumns: ["audio_version_id"];
|
|
1359
|
+
},
|
|
1104
1360
|
{
|
|
1105
1361
|
foreignKeyName: "media_files_verses_media_file_id_fkey";
|
|
1106
1362
|
columns: ["media_file_id"];
|
|
@@ -1117,121 +1373,238 @@ export type Database = {
|
|
|
1117
1373
|
}
|
|
1118
1374
|
];
|
|
1119
1375
|
};
|
|
1120
|
-
|
|
1376
|
+
partner_orgs: {
|
|
1121
1377
|
Row: {
|
|
1122
|
-
|
|
1123
|
-
created_at: string | null;
|
|
1378
|
+
created_at: string;
|
|
1124
1379
|
created_by: string | null;
|
|
1125
|
-
|
|
1380
|
+
description: string | null;
|
|
1126
1381
|
id: string;
|
|
1127
|
-
|
|
1382
|
+
name: string;
|
|
1128
1383
|
updated_at: string | null;
|
|
1129
1384
|
};
|
|
1130
1385
|
Insert: {
|
|
1131
|
-
|
|
1132
|
-
created_at?: string | null;
|
|
1386
|
+
created_at?: string;
|
|
1133
1387
|
created_by?: string | null;
|
|
1134
|
-
|
|
1388
|
+
description?: string | null;
|
|
1135
1389
|
id?: string;
|
|
1136
|
-
|
|
1390
|
+
name: string;
|
|
1137
1391
|
updated_at?: string | null;
|
|
1138
1392
|
};
|
|
1139
1393
|
Update: {
|
|
1140
|
-
|
|
1141
|
-
created_at?: string | null;
|
|
1394
|
+
created_at?: string;
|
|
1142
1395
|
created_by?: string | null;
|
|
1143
|
-
|
|
1396
|
+
description?: string | null;
|
|
1144
1397
|
id?: string;
|
|
1145
|
-
|
|
1398
|
+
name?: string;
|
|
1146
1399
|
updated_at?: string | null;
|
|
1147
1400
|
};
|
|
1148
1401
|
Relationships: [
|
|
1149
1402
|
{
|
|
1150
|
-
foreignKeyName: "
|
|
1151
|
-
columns: ["
|
|
1403
|
+
foreignKeyName: "partner_orgs_created_by_fkey";
|
|
1404
|
+
columns: ["created_by"];
|
|
1152
1405
|
isOneToOne: false;
|
|
1153
|
-
referencedRelation: "
|
|
1406
|
+
referencedRelation: "users";
|
|
1154
1407
|
referencedColumns: ["id"];
|
|
1155
|
-
}
|
|
1408
|
+
}
|
|
1409
|
+
];
|
|
1410
|
+
};
|
|
1411
|
+
partner_orgs_projects: {
|
|
1412
|
+
Row: {
|
|
1413
|
+
assigned_at: string;
|
|
1414
|
+
id: string;
|
|
1415
|
+
partner_org_id: string;
|
|
1416
|
+
project_id: string;
|
|
1417
|
+
unassigned_at: string | null;
|
|
1418
|
+
};
|
|
1419
|
+
Insert: {
|
|
1420
|
+
assigned_at?: string;
|
|
1421
|
+
id?: string;
|
|
1422
|
+
partner_org_id: string;
|
|
1423
|
+
project_id: string;
|
|
1424
|
+
unassigned_at?: string | null;
|
|
1425
|
+
};
|
|
1426
|
+
Update: {
|
|
1427
|
+
assigned_at?: string;
|
|
1428
|
+
id?: string;
|
|
1429
|
+
partner_org_id?: string;
|
|
1430
|
+
project_id?: string;
|
|
1431
|
+
unassigned_at?: string | null;
|
|
1432
|
+
};
|
|
1433
|
+
Relationships: [
|
|
1156
1434
|
{
|
|
1157
|
-
foreignKeyName: "
|
|
1158
|
-
columns: ["
|
|
1435
|
+
foreignKeyName: "partner_orgs_projects_partner_org_id_fkey";
|
|
1436
|
+
columns: ["partner_org_id"];
|
|
1159
1437
|
isOneToOne: false;
|
|
1160
|
-
referencedRelation: "
|
|
1438
|
+
referencedRelation: "partner_orgs";
|
|
1161
1439
|
referencedColumns: ["id"];
|
|
1162
1440
|
},
|
|
1163
1441
|
{
|
|
1164
|
-
foreignKeyName: "
|
|
1165
|
-
columns: ["
|
|
1442
|
+
foreignKeyName: "partner_orgs_projects_project_id_fkey";
|
|
1443
|
+
columns: ["project_id"];
|
|
1166
1444
|
isOneToOne: false;
|
|
1167
|
-
referencedRelation: "
|
|
1168
|
-
referencedColumns: ["
|
|
1445
|
+
referencedRelation: "project_financials";
|
|
1446
|
+
referencedColumns: ["project_id"];
|
|
1169
1447
|
},
|
|
1170
1448
|
{
|
|
1171
|
-
foreignKeyName: "
|
|
1172
|
-
columns: ["
|
|
1449
|
+
foreignKeyName: "partner_orgs_projects_project_id_fkey";
|
|
1450
|
+
columns: ["project_id"];
|
|
1173
1451
|
isOneToOne: false;
|
|
1174
|
-
referencedRelation: "
|
|
1452
|
+
referencedRelation: "projects";
|
|
1175
1453
|
referencedColumns: ["id"];
|
|
1176
1454
|
}
|
|
1177
1455
|
];
|
|
1178
1456
|
};
|
|
1179
|
-
|
|
1457
|
+
partner_wallet_transactions: {
|
|
1180
1458
|
Row: {
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
description: string;
|
|
1459
|
+
amount_cents: number;
|
|
1460
|
+
created_at: string;
|
|
1461
|
+
created_by: string | null;
|
|
1462
|
+
currency_code: string;
|
|
1186
1463
|
id: string;
|
|
1187
|
-
|
|
1188
|
-
|
|
1464
|
+
occurred_at: string;
|
|
1465
|
+
reference: string | null;
|
|
1466
|
+
tx_type: Database["public"]["Enums"]["wallet_tx_type"];
|
|
1467
|
+
wallet_id: string;
|
|
1189
1468
|
};
|
|
1190
1469
|
Insert: {
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
description: string;
|
|
1470
|
+
amount_cents: number;
|
|
1471
|
+
created_at?: string;
|
|
1472
|
+
created_by?: string | null;
|
|
1473
|
+
currency_code?: string;
|
|
1196
1474
|
id?: string;
|
|
1197
|
-
|
|
1198
|
-
|
|
1475
|
+
occurred_at?: string;
|
|
1476
|
+
reference?: string | null;
|
|
1477
|
+
tx_type: Database["public"]["Enums"]["wallet_tx_type"];
|
|
1478
|
+
wallet_id: string;
|
|
1199
1479
|
};
|
|
1200
1480
|
Update: {
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
description?: string;
|
|
1481
|
+
amount_cents?: number;
|
|
1482
|
+
created_at?: string;
|
|
1483
|
+
created_by?: string | null;
|
|
1484
|
+
currency_code?: string;
|
|
1206
1485
|
id?: string;
|
|
1207
|
-
|
|
1208
|
-
|
|
1486
|
+
occurred_at?: string;
|
|
1487
|
+
reference?: string | null;
|
|
1488
|
+
tx_type?: Database["public"]["Enums"]["wallet_tx_type"];
|
|
1489
|
+
wallet_id?: string;
|
|
1209
1490
|
};
|
|
1210
1491
|
Relationships: [
|
|
1211
1492
|
{
|
|
1212
|
-
foreignKeyName: "
|
|
1213
|
-
columns: ["
|
|
1493
|
+
foreignKeyName: "partner_wallet_transactions_created_by_fkey";
|
|
1494
|
+
columns: ["created_by"];
|
|
1214
1495
|
isOneToOne: false;
|
|
1215
|
-
referencedRelation: "
|
|
1496
|
+
referencedRelation: "users";
|
|
1497
|
+
referencedColumns: ["id"];
|
|
1498
|
+
},
|
|
1499
|
+
{
|
|
1500
|
+
foreignKeyName: "partner_wallet_transactions_wallet_id_fkey";
|
|
1501
|
+
columns: ["wallet_id"];
|
|
1502
|
+
isOneToOne: false;
|
|
1503
|
+
referencedRelation: "partner_wallets";
|
|
1216
1504
|
referencedColumns: ["id"];
|
|
1217
1505
|
}
|
|
1218
1506
|
];
|
|
1219
1507
|
};
|
|
1220
|
-
|
|
1508
|
+
partner_wallets: {
|
|
1221
1509
|
Row: {
|
|
1222
|
-
created_at: string
|
|
1223
|
-
created_by: string | null;
|
|
1224
|
-
custom_text: string | null;
|
|
1225
|
-
end_verse_id: string | null;
|
|
1510
|
+
created_at: string;
|
|
1226
1511
|
id: string;
|
|
1227
|
-
|
|
1228
|
-
playlist_id: string;
|
|
1229
|
-
playlist_item_type: Database["public"]["Enums"]["playlist_item_type"] | null;
|
|
1230
|
-
start_verse_id: string | null;
|
|
1231
|
-
updated_at: string | null;
|
|
1512
|
+
partner_org_id: string;
|
|
1232
1513
|
};
|
|
1233
1514
|
Insert: {
|
|
1234
|
-
created_at?: string
|
|
1515
|
+
created_at?: string;
|
|
1516
|
+
id?: string;
|
|
1517
|
+
partner_org_id: string;
|
|
1518
|
+
};
|
|
1519
|
+
Update: {
|
|
1520
|
+
created_at?: string;
|
|
1521
|
+
id?: string;
|
|
1522
|
+
partner_org_id?: string;
|
|
1523
|
+
};
|
|
1524
|
+
Relationships: [
|
|
1525
|
+
{
|
|
1526
|
+
foreignKeyName: "partner_wallets_partner_org_id_fkey";
|
|
1527
|
+
columns: ["partner_org_id"];
|
|
1528
|
+
isOneToOne: true;
|
|
1529
|
+
referencedRelation: "partner_orgs";
|
|
1530
|
+
referencedColumns: ["id"];
|
|
1531
|
+
}
|
|
1532
|
+
];
|
|
1533
|
+
};
|
|
1534
|
+
passages: {
|
|
1535
|
+
Row: {
|
|
1536
|
+
book_id: string;
|
|
1537
|
+
created_at: string | null;
|
|
1538
|
+
created_by: string | null;
|
|
1539
|
+
end_verse_id: string;
|
|
1540
|
+
id: string;
|
|
1541
|
+
start_verse_id: string;
|
|
1542
|
+
updated_at: string | null;
|
|
1543
|
+
};
|
|
1544
|
+
Insert: {
|
|
1545
|
+
book_id: string;
|
|
1546
|
+
created_at?: string | null;
|
|
1547
|
+
created_by?: string | null;
|
|
1548
|
+
end_verse_id: string;
|
|
1549
|
+
id?: string;
|
|
1550
|
+
start_verse_id: string;
|
|
1551
|
+
updated_at?: string | null;
|
|
1552
|
+
};
|
|
1553
|
+
Update: {
|
|
1554
|
+
book_id?: string;
|
|
1555
|
+
created_at?: string | null;
|
|
1556
|
+
created_by?: string | null;
|
|
1557
|
+
end_verse_id?: string;
|
|
1558
|
+
id?: string;
|
|
1559
|
+
start_verse_id?: string;
|
|
1560
|
+
updated_at?: string | null;
|
|
1561
|
+
};
|
|
1562
|
+
Relationships: [
|
|
1563
|
+
{
|
|
1564
|
+
foreignKeyName: "passages_book_id_fkey";
|
|
1565
|
+
columns: ["book_id"];
|
|
1566
|
+
isOneToOne: false;
|
|
1567
|
+
referencedRelation: "books";
|
|
1568
|
+
referencedColumns: ["id"];
|
|
1569
|
+
},
|
|
1570
|
+
{
|
|
1571
|
+
foreignKeyName: "passages_created_by_fkey";
|
|
1572
|
+
columns: ["created_by"];
|
|
1573
|
+
isOneToOne: false;
|
|
1574
|
+
referencedRelation: "users";
|
|
1575
|
+
referencedColumns: ["id"];
|
|
1576
|
+
},
|
|
1577
|
+
{
|
|
1578
|
+
foreignKeyName: "passages_end_verse_id_fkey";
|
|
1579
|
+
columns: ["end_verse_id"];
|
|
1580
|
+
isOneToOne: false;
|
|
1581
|
+
referencedRelation: "verses";
|
|
1582
|
+
referencedColumns: ["id"];
|
|
1583
|
+
},
|
|
1584
|
+
{
|
|
1585
|
+
foreignKeyName: "passages_start_verse_id_fkey";
|
|
1586
|
+
columns: ["start_verse_id"];
|
|
1587
|
+
isOneToOne: false;
|
|
1588
|
+
referencedRelation: "verses";
|
|
1589
|
+
referencedColumns: ["id"];
|
|
1590
|
+
}
|
|
1591
|
+
];
|
|
1592
|
+
};
|
|
1593
|
+
playlist_items: {
|
|
1594
|
+
Row: {
|
|
1595
|
+
created_at: string | null;
|
|
1596
|
+
created_by: string | null;
|
|
1597
|
+
custom_text: string | null;
|
|
1598
|
+
end_verse_id: string | null;
|
|
1599
|
+
id: string;
|
|
1600
|
+
order_index: number;
|
|
1601
|
+
playlist_id: string;
|
|
1602
|
+
playlist_item_type: Database["public"]["Enums"]["playlist_item_type"] | null;
|
|
1603
|
+
start_verse_id: string | null;
|
|
1604
|
+
updated_at: string | null;
|
|
1605
|
+
};
|
|
1606
|
+
Insert: {
|
|
1607
|
+
created_at?: string | null;
|
|
1235
1608
|
created_by?: string | null;
|
|
1236
1609
|
custom_text?: string | null;
|
|
1237
1610
|
end_verse_id?: string | null;
|
|
@@ -1330,15 +1703,211 @@ export type Database = {
|
|
|
1330
1703
|
}
|
|
1331
1704
|
];
|
|
1332
1705
|
};
|
|
1706
|
+
progress_refresh_queue: {
|
|
1707
|
+
Row: {
|
|
1708
|
+
enqueued_at: string | null;
|
|
1709
|
+
id: number;
|
|
1710
|
+
kind: string;
|
|
1711
|
+
version_id: string;
|
|
1712
|
+
};
|
|
1713
|
+
Insert: {
|
|
1714
|
+
enqueued_at?: string | null;
|
|
1715
|
+
id?: number;
|
|
1716
|
+
kind: string;
|
|
1717
|
+
version_id: string;
|
|
1718
|
+
};
|
|
1719
|
+
Update: {
|
|
1720
|
+
enqueued_at?: string | null;
|
|
1721
|
+
id?: number;
|
|
1722
|
+
kind?: string;
|
|
1723
|
+
version_id?: string;
|
|
1724
|
+
};
|
|
1725
|
+
Relationships: [];
|
|
1726
|
+
};
|
|
1727
|
+
project_budget_actual_costs: {
|
|
1728
|
+
Row: {
|
|
1729
|
+
amount_cents: number;
|
|
1730
|
+
category: Database["public"]["Enums"]["budget_item_category"];
|
|
1731
|
+
created_at: string;
|
|
1732
|
+
created_by: string | null;
|
|
1733
|
+
currency_code: string;
|
|
1734
|
+
fx_rate_used: number | null;
|
|
1735
|
+
id: string;
|
|
1736
|
+
note: string | null;
|
|
1737
|
+
occurred_at: string;
|
|
1738
|
+
project_id: string;
|
|
1739
|
+
receipt_url: string | null;
|
|
1740
|
+
reporting_usd_cents: number | null;
|
|
1741
|
+
};
|
|
1742
|
+
Insert: {
|
|
1743
|
+
amount_cents: number;
|
|
1744
|
+
category: Database["public"]["Enums"]["budget_item_category"];
|
|
1745
|
+
created_at?: string;
|
|
1746
|
+
created_by?: string | null;
|
|
1747
|
+
currency_code?: string;
|
|
1748
|
+
fx_rate_used?: number | null;
|
|
1749
|
+
id?: string;
|
|
1750
|
+
note?: string | null;
|
|
1751
|
+
occurred_at?: string;
|
|
1752
|
+
project_id: string;
|
|
1753
|
+
receipt_url?: string | null;
|
|
1754
|
+
reporting_usd_cents?: number | null;
|
|
1755
|
+
};
|
|
1756
|
+
Update: {
|
|
1757
|
+
amount_cents?: number;
|
|
1758
|
+
category?: Database["public"]["Enums"]["budget_item_category"];
|
|
1759
|
+
created_at?: string;
|
|
1760
|
+
created_by?: string | null;
|
|
1761
|
+
currency_code?: string;
|
|
1762
|
+
fx_rate_used?: number | null;
|
|
1763
|
+
id?: string;
|
|
1764
|
+
note?: string | null;
|
|
1765
|
+
occurred_at?: string;
|
|
1766
|
+
project_id?: string;
|
|
1767
|
+
receipt_url?: string | null;
|
|
1768
|
+
reporting_usd_cents?: number | null;
|
|
1769
|
+
};
|
|
1770
|
+
Relationships: [
|
|
1771
|
+
{
|
|
1772
|
+
foreignKeyName: "project_budget_actual_costs_created_by_fkey";
|
|
1773
|
+
columns: ["created_by"];
|
|
1774
|
+
isOneToOne: false;
|
|
1775
|
+
referencedRelation: "users";
|
|
1776
|
+
referencedColumns: ["id"];
|
|
1777
|
+
},
|
|
1778
|
+
{
|
|
1779
|
+
foreignKeyName: "project_budget_actual_costs_project_id_fkey";
|
|
1780
|
+
columns: ["project_id"];
|
|
1781
|
+
isOneToOne: false;
|
|
1782
|
+
referencedRelation: "project_financials";
|
|
1783
|
+
referencedColumns: ["project_id"];
|
|
1784
|
+
},
|
|
1785
|
+
{
|
|
1786
|
+
foreignKeyName: "project_budget_actual_costs_project_id_fkey";
|
|
1787
|
+
columns: ["project_id"];
|
|
1788
|
+
isOneToOne: false;
|
|
1789
|
+
referencedRelation: "projects";
|
|
1790
|
+
referencedColumns: ["id"];
|
|
1791
|
+
}
|
|
1792
|
+
];
|
|
1793
|
+
};
|
|
1794
|
+
project_budget_items: {
|
|
1795
|
+
Row: {
|
|
1796
|
+
amount_cents: number;
|
|
1797
|
+
category: Database["public"]["Enums"]["budget_item_category"];
|
|
1798
|
+
created_at: string;
|
|
1799
|
+
created_by: string | null;
|
|
1800
|
+
description: string | null;
|
|
1801
|
+
id: string;
|
|
1802
|
+
project_budget_id: string;
|
|
1803
|
+
};
|
|
1804
|
+
Insert: {
|
|
1805
|
+
amount_cents: number;
|
|
1806
|
+
category: Database["public"]["Enums"]["budget_item_category"];
|
|
1807
|
+
created_at?: string;
|
|
1808
|
+
created_by?: string | null;
|
|
1809
|
+
description?: string | null;
|
|
1810
|
+
id?: string;
|
|
1811
|
+
project_budget_id: string;
|
|
1812
|
+
};
|
|
1813
|
+
Update: {
|
|
1814
|
+
amount_cents?: number;
|
|
1815
|
+
category?: Database["public"]["Enums"]["budget_item_category"];
|
|
1816
|
+
created_at?: string;
|
|
1817
|
+
created_by?: string | null;
|
|
1818
|
+
description?: string | null;
|
|
1819
|
+
id?: string;
|
|
1820
|
+
project_budget_id?: string;
|
|
1821
|
+
};
|
|
1822
|
+
Relationships: [
|
|
1823
|
+
{
|
|
1824
|
+
foreignKeyName: "project_budget_items_created_by_fkey";
|
|
1825
|
+
columns: ["created_by"];
|
|
1826
|
+
isOneToOne: false;
|
|
1827
|
+
referencedRelation: "users";
|
|
1828
|
+
referencedColumns: ["id"];
|
|
1829
|
+
},
|
|
1830
|
+
{
|
|
1831
|
+
foreignKeyName: "project_budget_items_project_budget_id_fkey";
|
|
1832
|
+
columns: ["project_budget_id"];
|
|
1833
|
+
isOneToOne: false;
|
|
1834
|
+
referencedRelation: "project_budgets";
|
|
1835
|
+
referencedColumns: ["id"];
|
|
1836
|
+
}
|
|
1837
|
+
];
|
|
1838
|
+
};
|
|
1839
|
+
project_budgets: {
|
|
1840
|
+
Row: {
|
|
1841
|
+
created_at: string;
|
|
1842
|
+
created_by: string | null;
|
|
1843
|
+
currency_code: string;
|
|
1844
|
+
end_date: string | null;
|
|
1845
|
+
estimated_total_cents: number;
|
|
1846
|
+
id: string;
|
|
1847
|
+
notes: string | null;
|
|
1848
|
+
project_id: string;
|
|
1849
|
+
start_date: string | null;
|
|
1850
|
+
version: number;
|
|
1851
|
+
};
|
|
1852
|
+
Insert: {
|
|
1853
|
+
created_at?: string;
|
|
1854
|
+
created_by?: string | null;
|
|
1855
|
+
currency_code?: string;
|
|
1856
|
+
end_date?: string | null;
|
|
1857
|
+
estimated_total_cents: number;
|
|
1858
|
+
id?: string;
|
|
1859
|
+
notes?: string | null;
|
|
1860
|
+
project_id: string;
|
|
1861
|
+
start_date?: string | null;
|
|
1862
|
+
version: number;
|
|
1863
|
+
};
|
|
1864
|
+
Update: {
|
|
1865
|
+
created_at?: string;
|
|
1866
|
+
created_by?: string | null;
|
|
1867
|
+
currency_code?: string;
|
|
1868
|
+
end_date?: string | null;
|
|
1869
|
+
estimated_total_cents?: number;
|
|
1870
|
+
id?: string;
|
|
1871
|
+
notes?: string | null;
|
|
1872
|
+
project_id?: string;
|
|
1873
|
+
start_date?: string | null;
|
|
1874
|
+
version?: number;
|
|
1875
|
+
};
|
|
1876
|
+
Relationships: [
|
|
1877
|
+
{
|
|
1878
|
+
foreignKeyName: "project_budgets_created_by_fkey";
|
|
1879
|
+
columns: ["created_by"];
|
|
1880
|
+
isOneToOne: false;
|
|
1881
|
+
referencedRelation: "users";
|
|
1882
|
+
referencedColumns: ["id"];
|
|
1883
|
+
},
|
|
1884
|
+
{
|
|
1885
|
+
foreignKeyName: "project_budgets_project_id_fkey";
|
|
1886
|
+
columns: ["project_id"];
|
|
1887
|
+
isOneToOne: false;
|
|
1888
|
+
referencedRelation: "project_financials";
|
|
1889
|
+
referencedColumns: ["project_id"];
|
|
1890
|
+
},
|
|
1891
|
+
{
|
|
1892
|
+
foreignKeyName: "project_budgets_project_id_fkey";
|
|
1893
|
+
columns: ["project_id"];
|
|
1894
|
+
isOneToOne: false;
|
|
1895
|
+
referencedRelation: "projects";
|
|
1896
|
+
referencedColumns: ["id"];
|
|
1897
|
+
}
|
|
1898
|
+
];
|
|
1899
|
+
};
|
|
1333
1900
|
projects: {
|
|
1334
1901
|
Row: {
|
|
1335
1902
|
created_at: string | null;
|
|
1336
1903
|
created_by: string | null;
|
|
1337
1904
|
deleted_at: string | null;
|
|
1338
1905
|
description: string | null;
|
|
1906
|
+
funding_status: Database["public"]["Enums"]["funding_status"];
|
|
1339
1907
|
id: string;
|
|
1340
|
-
location: unknown
|
|
1908
|
+
location: unknown;
|
|
1341
1909
|
name: string;
|
|
1910
|
+
project_status: Database["public"]["Enums"]["project_status"];
|
|
1342
1911
|
region_id: string | null;
|
|
1343
1912
|
source_language_entity_id: string;
|
|
1344
1913
|
target_language_entity_id: string;
|
|
@@ -1349,9 +1918,11 @@ export type Database = {
|
|
|
1349
1918
|
created_by?: string | null;
|
|
1350
1919
|
deleted_at?: string | null;
|
|
1351
1920
|
description?: string | null;
|
|
1921
|
+
funding_status?: Database["public"]["Enums"]["funding_status"];
|
|
1352
1922
|
id?: string;
|
|
1353
|
-
location?: unknown
|
|
1923
|
+
location?: unknown;
|
|
1354
1924
|
name: string;
|
|
1925
|
+
project_status?: Database["public"]["Enums"]["project_status"];
|
|
1355
1926
|
region_id?: string | null;
|
|
1356
1927
|
source_language_entity_id: string;
|
|
1357
1928
|
target_language_entity_id: string;
|
|
@@ -1362,9 +1933,11 @@ export type Database = {
|
|
|
1362
1933
|
created_by?: string | null;
|
|
1363
1934
|
deleted_at?: string | null;
|
|
1364
1935
|
description?: string | null;
|
|
1936
|
+
funding_status?: Database["public"]["Enums"]["funding_status"];
|
|
1365
1937
|
id?: string;
|
|
1366
|
-
location?: unknown
|
|
1938
|
+
location?: unknown;
|
|
1367
1939
|
name?: string;
|
|
1940
|
+
project_status?: Database["public"]["Enums"]["project_status"];
|
|
1368
1941
|
region_id?: string | null;
|
|
1369
1942
|
source_language_entity_id?: string;
|
|
1370
1943
|
target_language_entity_id?: string;
|
|
@@ -1401,6 +1974,65 @@ export type Database = {
|
|
|
1401
1974
|
}
|
|
1402
1975
|
];
|
|
1403
1976
|
};
|
|
1977
|
+
projects_teams: {
|
|
1978
|
+
Row: {
|
|
1979
|
+
assigned_at: string;
|
|
1980
|
+
id: string;
|
|
1981
|
+
is_primary: boolean;
|
|
1982
|
+
project_id: string;
|
|
1983
|
+
project_role_id: string | null;
|
|
1984
|
+
team_id: string;
|
|
1985
|
+
unassigned_at: string | null;
|
|
1986
|
+
};
|
|
1987
|
+
Insert: {
|
|
1988
|
+
assigned_at?: string;
|
|
1989
|
+
id?: string;
|
|
1990
|
+
is_primary?: boolean;
|
|
1991
|
+
project_id: string;
|
|
1992
|
+
project_role_id?: string | null;
|
|
1993
|
+
team_id: string;
|
|
1994
|
+
unassigned_at?: string | null;
|
|
1995
|
+
};
|
|
1996
|
+
Update: {
|
|
1997
|
+
assigned_at?: string;
|
|
1998
|
+
id?: string;
|
|
1999
|
+
is_primary?: boolean;
|
|
2000
|
+
project_id?: string;
|
|
2001
|
+
project_role_id?: string | null;
|
|
2002
|
+
team_id?: string;
|
|
2003
|
+
unassigned_at?: string | null;
|
|
2004
|
+
};
|
|
2005
|
+
Relationships: [
|
|
2006
|
+
{
|
|
2007
|
+
foreignKeyName: "projects_teams_project_id_fkey";
|
|
2008
|
+
columns: ["project_id"];
|
|
2009
|
+
isOneToOne: false;
|
|
2010
|
+
referencedRelation: "project_financials";
|
|
2011
|
+
referencedColumns: ["project_id"];
|
|
2012
|
+
},
|
|
2013
|
+
{
|
|
2014
|
+
foreignKeyName: "projects_teams_project_id_fkey";
|
|
2015
|
+
columns: ["project_id"];
|
|
2016
|
+
isOneToOne: false;
|
|
2017
|
+
referencedRelation: "projects";
|
|
2018
|
+
referencedColumns: ["id"];
|
|
2019
|
+
},
|
|
2020
|
+
{
|
|
2021
|
+
foreignKeyName: "projects_teams_project_role_id_fkey";
|
|
2022
|
+
columns: ["project_role_id"];
|
|
2023
|
+
isOneToOne: false;
|
|
2024
|
+
referencedRelation: "roles";
|
|
2025
|
+
referencedColumns: ["id"];
|
|
2026
|
+
},
|
|
2027
|
+
{
|
|
2028
|
+
foreignKeyName: "projects_teams_team_id_fkey";
|
|
2029
|
+
columns: ["team_id"];
|
|
2030
|
+
isOneToOne: false;
|
|
2031
|
+
referencedRelation: "teams";
|
|
2032
|
+
referencedColumns: ["id"];
|
|
2033
|
+
}
|
|
2034
|
+
];
|
|
2035
|
+
};
|
|
1404
2036
|
region_aliases: {
|
|
1405
2037
|
Row: {
|
|
1406
2038
|
alias_name: string;
|
|
@@ -1588,7 +2220,14 @@ export type Database = {
|
|
|
1588
2220
|
};
|
|
1589
2221
|
regions: {
|
|
1590
2222
|
Row: {
|
|
1591
|
-
|
|
2223
|
+
bbox_max_lat: number | null;
|
|
2224
|
+
bbox_max_lon: number | null;
|
|
2225
|
+
bbox_min_lat: number | null;
|
|
2226
|
+
bbox_min_lon: number | null;
|
|
2227
|
+
boundary: unknown;
|
|
2228
|
+
boundary_simplified: unknown;
|
|
2229
|
+
center_lat: number | null;
|
|
2230
|
+
center_lon: number | null;
|
|
1592
2231
|
created_at: string | null;
|
|
1593
2232
|
deleted_at: string | null;
|
|
1594
2233
|
id: string;
|
|
@@ -1598,7 +2237,14 @@ export type Database = {
|
|
|
1598
2237
|
updated_at: string | null;
|
|
1599
2238
|
};
|
|
1600
2239
|
Insert: {
|
|
1601
|
-
|
|
2240
|
+
bbox_max_lat?: number | null;
|
|
2241
|
+
bbox_max_lon?: number | null;
|
|
2242
|
+
bbox_min_lat?: number | null;
|
|
2243
|
+
bbox_min_lon?: number | null;
|
|
2244
|
+
boundary?: unknown;
|
|
2245
|
+
boundary_simplified?: unknown;
|
|
2246
|
+
center_lat?: number | null;
|
|
2247
|
+
center_lon?: number | null;
|
|
1602
2248
|
created_at?: string | null;
|
|
1603
2249
|
deleted_at?: string | null;
|
|
1604
2250
|
id?: string;
|
|
@@ -1608,7 +2254,14 @@ export type Database = {
|
|
|
1608
2254
|
updated_at?: string | null;
|
|
1609
2255
|
};
|
|
1610
2256
|
Update: {
|
|
1611
|
-
|
|
2257
|
+
bbox_max_lat?: number | null;
|
|
2258
|
+
bbox_max_lon?: number | null;
|
|
2259
|
+
bbox_min_lat?: number | null;
|
|
2260
|
+
bbox_min_lon?: number | null;
|
|
2261
|
+
boundary?: unknown;
|
|
2262
|
+
boundary_simplified?: unknown;
|
|
2263
|
+
center_lat?: number | null;
|
|
2264
|
+
center_lon?: number | null;
|
|
1612
2265
|
created_at?: string | null;
|
|
1613
2266
|
deleted_at?: string | null;
|
|
1614
2267
|
id?: string;
|
|
@@ -1627,23 +2280,64 @@ export type Database = {
|
|
|
1627
2280
|
}
|
|
1628
2281
|
];
|
|
1629
2282
|
};
|
|
1630
|
-
|
|
2283
|
+
role_permissions: {
|
|
1631
2284
|
Row: {
|
|
1632
|
-
created_at: string
|
|
2285
|
+
created_at: string;
|
|
1633
2286
|
id: string;
|
|
1634
|
-
|
|
1635
|
-
|
|
2287
|
+
is_allowed: boolean;
|
|
2288
|
+
permission_key: Database["public"]["Enums"]["permission_key"];
|
|
2289
|
+
resource_type: Database["public"]["Enums"]["resource_type"];
|
|
2290
|
+
role_id: string;
|
|
1636
2291
|
};
|
|
1637
2292
|
Insert: {
|
|
1638
|
-
created_at?: string
|
|
2293
|
+
created_at?: string;
|
|
1639
2294
|
id?: string;
|
|
1640
|
-
|
|
1641
|
-
|
|
2295
|
+
is_allowed?: boolean;
|
|
2296
|
+
permission_key: Database["public"]["Enums"]["permission_key"];
|
|
2297
|
+
resource_type: Database["public"]["Enums"]["resource_type"];
|
|
2298
|
+
role_id: string;
|
|
2299
|
+
};
|
|
2300
|
+
Update: {
|
|
2301
|
+
created_at?: string;
|
|
2302
|
+
id?: string;
|
|
2303
|
+
is_allowed?: boolean;
|
|
2304
|
+
permission_key?: Database["public"]["Enums"]["permission_key"];
|
|
2305
|
+
resource_type?: Database["public"]["Enums"]["resource_type"];
|
|
2306
|
+
role_id?: string;
|
|
2307
|
+
};
|
|
2308
|
+
Relationships: [
|
|
2309
|
+
{
|
|
2310
|
+
foreignKeyName: "role_permissions_role_id_fkey";
|
|
2311
|
+
columns: ["role_id"];
|
|
2312
|
+
isOneToOne: false;
|
|
2313
|
+
referencedRelation: "roles";
|
|
2314
|
+
referencedColumns: ["id"];
|
|
2315
|
+
}
|
|
2316
|
+
];
|
|
2317
|
+
};
|
|
2318
|
+
roles: {
|
|
2319
|
+
Row: {
|
|
2320
|
+
created_at: string | null;
|
|
2321
|
+
id: string;
|
|
2322
|
+
name: string;
|
|
2323
|
+
resource_type: Database["public"]["Enums"]["resource_type"] | null;
|
|
2324
|
+
role_key: string | null;
|
|
2325
|
+
updated_at: string | null;
|
|
2326
|
+
};
|
|
2327
|
+
Insert: {
|
|
2328
|
+
created_at?: string | null;
|
|
2329
|
+
id?: string;
|
|
2330
|
+
name: string;
|
|
2331
|
+
resource_type?: Database["public"]["Enums"]["resource_type"] | null;
|
|
2332
|
+
role_key?: string | null;
|
|
2333
|
+
updated_at?: string | null;
|
|
1642
2334
|
};
|
|
1643
2335
|
Update: {
|
|
1644
2336
|
created_at?: string | null;
|
|
1645
2337
|
id?: string;
|
|
1646
2338
|
name?: string;
|
|
2339
|
+
resource_type?: Database["public"]["Enums"]["resource_type"] | null;
|
|
2340
|
+
role_key?: string | null;
|
|
1647
2341
|
updated_at?: string | null;
|
|
1648
2342
|
};
|
|
1649
2343
|
Relationships: [];
|
|
@@ -1802,6 +2496,13 @@ export type Database = {
|
|
|
1802
2496
|
referencedRelation: "verses";
|
|
1803
2497
|
referencedColumns: ["id"];
|
|
1804
2498
|
},
|
|
2499
|
+
{
|
|
2500
|
+
foreignKeyName: "sequences_project_id_fkey";
|
|
2501
|
+
columns: ["project_id"];
|
|
2502
|
+
isOneToOne: false;
|
|
2503
|
+
referencedRelation: "project_financials";
|
|
2504
|
+
referencedColumns: ["project_id"];
|
|
2505
|
+
},
|
|
1805
2506
|
{
|
|
1806
2507
|
foreignKeyName: "sequences_project_id_fkey";
|
|
1807
2508
|
columns: ["project_id"];
|
|
@@ -1985,7 +2686,7 @@ export type Database = {
|
|
|
1985
2686
|
country_code: string | null;
|
|
1986
2687
|
ended_at: string | null;
|
|
1987
2688
|
id: string;
|
|
1988
|
-
location: unknown
|
|
2689
|
+
location: unknown;
|
|
1989
2690
|
location_source: Database["public"]["Enums"]["location_source_type"] | null;
|
|
1990
2691
|
os: string | null;
|
|
1991
2692
|
os_version: string | null;
|
|
@@ -2002,7 +2703,7 @@ export type Database = {
|
|
|
2002
2703
|
country_code?: string | null;
|
|
2003
2704
|
ended_at?: string | null;
|
|
2004
2705
|
id?: string;
|
|
2005
|
-
location?: unknown
|
|
2706
|
+
location?: unknown;
|
|
2006
2707
|
location_source?: Database["public"]["Enums"]["location_source_type"] | null;
|
|
2007
2708
|
os?: string | null;
|
|
2008
2709
|
os_version?: string | null;
|
|
@@ -2019,7 +2720,7 @@ export type Database = {
|
|
|
2019
2720
|
country_code?: string | null;
|
|
2020
2721
|
ended_at?: string | null;
|
|
2021
2722
|
id?: string;
|
|
2022
|
-
location?: unknown
|
|
2723
|
+
location?: unknown;
|
|
2023
2724
|
location_source?: Database["public"]["Enums"]["location_source_type"] | null;
|
|
2024
2725
|
os?: string | null;
|
|
2025
2726
|
os_version?: string | null;
|
|
@@ -2050,7 +2751,7 @@ export type Database = {
|
|
|
2050
2751
|
created_at: string | null;
|
|
2051
2752
|
id: string;
|
|
2052
2753
|
opened_at: string | null;
|
|
2053
|
-
|
|
2754
|
+
parent_share_id: string | null;
|
|
2054
2755
|
session_id: string | null;
|
|
2055
2756
|
share_id: string;
|
|
2056
2757
|
user_id: string | null;
|
|
@@ -2059,7 +2760,7 @@ export type Database = {
|
|
|
2059
2760
|
created_at?: string | null;
|
|
2060
2761
|
id?: string;
|
|
2061
2762
|
opened_at?: string | null;
|
|
2062
|
-
|
|
2763
|
+
parent_share_id?: string | null;
|
|
2063
2764
|
session_id?: string | null;
|
|
2064
2765
|
share_id: string;
|
|
2065
2766
|
user_id?: string | null;
|
|
@@ -2068,19 +2769,12 @@ export type Database = {
|
|
|
2068
2769
|
created_at?: string | null;
|
|
2069
2770
|
id?: string;
|
|
2070
2771
|
opened_at?: string | null;
|
|
2071
|
-
|
|
2772
|
+
parent_share_id?: string | null;
|
|
2072
2773
|
session_id?: string | null;
|
|
2073
2774
|
share_id?: string;
|
|
2074
2775
|
user_id?: string | null;
|
|
2075
2776
|
};
|
|
2076
2777
|
Relationships: [
|
|
2077
|
-
{
|
|
2078
|
-
foreignKeyName: "share_opens_origin_share_id_fkey";
|
|
2079
|
-
columns: ["origin_share_id"];
|
|
2080
|
-
isOneToOne: false;
|
|
2081
|
-
referencedRelation: "shares";
|
|
2082
|
-
referencedColumns: ["id"];
|
|
2083
|
-
},
|
|
2084
2778
|
{
|
|
2085
2779
|
foreignKeyName: "share_opens_session_id_fkey";
|
|
2086
2780
|
columns: ["session_id"];
|
|
@@ -2088,13 +2782,6 @@ export type Database = {
|
|
|
2088
2782
|
referencedRelation: "sessions";
|
|
2089
2783
|
referencedColumns: ["id"];
|
|
2090
2784
|
},
|
|
2091
|
-
{
|
|
2092
|
-
foreignKeyName: "share_opens_share_id_fkey";
|
|
2093
|
-
columns: ["share_id"];
|
|
2094
|
-
isOneToOne: false;
|
|
2095
|
-
referencedRelation: "shares";
|
|
2096
|
-
referencedColumns: ["id"];
|
|
2097
|
-
},
|
|
2098
2785
|
{
|
|
2099
2786
|
foreignKeyName: "share_opens_user_id_fkey";
|
|
2100
2787
|
columns: ["user_id"];
|
|
@@ -2108,7 +2795,7 @@ export type Database = {
|
|
|
2108
2795
|
Row: {
|
|
2109
2796
|
id: string;
|
|
2110
2797
|
language_entity_id: string;
|
|
2111
|
-
|
|
2798
|
+
parent_share_id: string | null;
|
|
2112
2799
|
session_id: string;
|
|
2113
2800
|
share_entity_id: string;
|
|
2114
2801
|
share_entity_type: Database["public"]["Enums"]["share_entity_type"];
|
|
@@ -2118,7 +2805,7 @@ export type Database = {
|
|
|
2118
2805
|
Insert: {
|
|
2119
2806
|
id?: string;
|
|
2120
2807
|
language_entity_id: string;
|
|
2121
|
-
|
|
2808
|
+
parent_share_id?: string | null;
|
|
2122
2809
|
session_id: string;
|
|
2123
2810
|
share_entity_id: string;
|
|
2124
2811
|
share_entity_type: Database["public"]["Enums"]["share_entity_type"];
|
|
@@ -2128,7 +2815,7 @@ export type Database = {
|
|
|
2128
2815
|
Update: {
|
|
2129
2816
|
id?: string;
|
|
2130
2817
|
language_entity_id?: string;
|
|
2131
|
-
|
|
2818
|
+
parent_share_id?: string | null;
|
|
2132
2819
|
session_id?: string;
|
|
2133
2820
|
share_entity_id?: string;
|
|
2134
2821
|
share_entity_type?: Database["public"]["Enums"]["share_entity_type"];
|
|
@@ -2143,13 +2830,6 @@ export type Database = {
|
|
|
2143
2830
|
referencedRelation: "language_entities";
|
|
2144
2831
|
referencedColumns: ["id"];
|
|
2145
2832
|
},
|
|
2146
|
-
{
|
|
2147
|
-
foreignKeyName: "shares_origin_share_id_fkey";
|
|
2148
|
-
columns: ["origin_share_id"];
|
|
2149
|
-
isOneToOne: false;
|
|
2150
|
-
referencedRelation: "shares";
|
|
2151
|
-
referencedColumns: ["id"];
|
|
2152
|
-
},
|
|
2153
2833
|
{
|
|
2154
2834
|
foreignKeyName: "shares_session_id_fkey";
|
|
2155
2835
|
columns: ["session_id"];
|
|
@@ -2190,6 +2870,192 @@ export type Database = {
|
|
|
2190
2870
|
};
|
|
2191
2871
|
Relationships: [];
|
|
2192
2872
|
};
|
|
2873
|
+
sponsorship_allocations: {
|
|
2874
|
+
Row: {
|
|
2875
|
+
allocation_percent: number;
|
|
2876
|
+
created_at: string;
|
|
2877
|
+
created_by: string | null;
|
|
2878
|
+
effective_from: string;
|
|
2879
|
+
effective_to: string | null;
|
|
2880
|
+
id: string;
|
|
2881
|
+
project_id: string;
|
|
2882
|
+
sponsorship_id: string;
|
|
2883
|
+
};
|
|
2884
|
+
Insert: {
|
|
2885
|
+
allocation_percent: number;
|
|
2886
|
+
created_at?: string;
|
|
2887
|
+
created_by?: string | null;
|
|
2888
|
+
effective_from: string;
|
|
2889
|
+
effective_to?: string | null;
|
|
2890
|
+
id?: string;
|
|
2891
|
+
project_id: string;
|
|
2892
|
+
sponsorship_id: string;
|
|
2893
|
+
};
|
|
2894
|
+
Update: {
|
|
2895
|
+
allocation_percent?: number;
|
|
2896
|
+
created_at?: string;
|
|
2897
|
+
created_by?: string | null;
|
|
2898
|
+
effective_from?: string;
|
|
2899
|
+
effective_to?: string | null;
|
|
2900
|
+
id?: string;
|
|
2901
|
+
project_id?: string;
|
|
2902
|
+
sponsorship_id?: string;
|
|
2903
|
+
};
|
|
2904
|
+
Relationships: [
|
|
2905
|
+
{
|
|
2906
|
+
foreignKeyName: "sponsorship_allocations_created_by_fkey";
|
|
2907
|
+
columns: ["created_by"];
|
|
2908
|
+
isOneToOne: false;
|
|
2909
|
+
referencedRelation: "users";
|
|
2910
|
+
referencedColumns: ["id"];
|
|
2911
|
+
},
|
|
2912
|
+
{
|
|
2913
|
+
foreignKeyName: "sponsorship_allocations_project_id_fkey";
|
|
2914
|
+
columns: ["project_id"];
|
|
2915
|
+
isOneToOne: false;
|
|
2916
|
+
referencedRelation: "project_financials";
|
|
2917
|
+
referencedColumns: ["project_id"];
|
|
2918
|
+
},
|
|
2919
|
+
{
|
|
2920
|
+
foreignKeyName: "sponsorship_allocations_project_id_fkey";
|
|
2921
|
+
columns: ["project_id"];
|
|
2922
|
+
isOneToOne: false;
|
|
2923
|
+
referencedRelation: "projects";
|
|
2924
|
+
referencedColumns: ["id"];
|
|
2925
|
+
},
|
|
2926
|
+
{
|
|
2927
|
+
foreignKeyName: "sponsorship_allocations_sponsorship_id_fkey";
|
|
2928
|
+
columns: ["sponsorship_id"];
|
|
2929
|
+
isOneToOne: false;
|
|
2930
|
+
referencedRelation: "sponsorships";
|
|
2931
|
+
referencedColumns: ["id"];
|
|
2932
|
+
}
|
|
2933
|
+
];
|
|
2934
|
+
};
|
|
2935
|
+
sponsorships: {
|
|
2936
|
+
Row: {
|
|
2937
|
+
created_at: string;
|
|
2938
|
+
created_by: string | null;
|
|
2939
|
+
currency_code: string;
|
|
2940
|
+
id: string;
|
|
2941
|
+
language_adoption_id: string | null;
|
|
2942
|
+
partner_org_id: string;
|
|
2943
|
+
pledge_one_time_cents: number;
|
|
2944
|
+
pledge_recurring_cents: number;
|
|
2945
|
+
project_id: string | null;
|
|
2946
|
+
status: Database["public"]["Enums"]["sponsorship_status"];
|
|
2947
|
+
stripe_customer_id: string | null;
|
|
2948
|
+
stripe_payment_intent_id: string | null;
|
|
2949
|
+
stripe_price_id: string | null;
|
|
2950
|
+
stripe_subscription_id: string | null;
|
|
2951
|
+
updated_at: string | null;
|
|
2952
|
+
};
|
|
2953
|
+
Insert: {
|
|
2954
|
+
created_at?: string;
|
|
2955
|
+
created_by?: string | null;
|
|
2956
|
+
currency_code?: string;
|
|
2957
|
+
id?: string;
|
|
2958
|
+
language_adoption_id?: string | null;
|
|
2959
|
+
partner_org_id: string;
|
|
2960
|
+
pledge_one_time_cents?: number;
|
|
2961
|
+
pledge_recurring_cents?: number;
|
|
2962
|
+
project_id?: string | null;
|
|
2963
|
+
status?: Database["public"]["Enums"]["sponsorship_status"];
|
|
2964
|
+
stripe_customer_id?: string | null;
|
|
2965
|
+
stripe_payment_intent_id?: string | null;
|
|
2966
|
+
stripe_price_id?: string | null;
|
|
2967
|
+
stripe_subscription_id?: string | null;
|
|
2968
|
+
updated_at?: string | null;
|
|
2969
|
+
};
|
|
2970
|
+
Update: {
|
|
2971
|
+
created_at?: string;
|
|
2972
|
+
created_by?: string | null;
|
|
2973
|
+
currency_code?: string;
|
|
2974
|
+
id?: string;
|
|
2975
|
+
language_adoption_id?: string | null;
|
|
2976
|
+
partner_org_id?: string;
|
|
2977
|
+
pledge_one_time_cents?: number;
|
|
2978
|
+
pledge_recurring_cents?: number;
|
|
2979
|
+
project_id?: string | null;
|
|
2980
|
+
status?: Database["public"]["Enums"]["sponsorship_status"];
|
|
2981
|
+
stripe_customer_id?: string | null;
|
|
2982
|
+
stripe_payment_intent_id?: string | null;
|
|
2983
|
+
stripe_price_id?: string | null;
|
|
2984
|
+
stripe_subscription_id?: string | null;
|
|
2985
|
+
updated_at?: string | null;
|
|
2986
|
+
};
|
|
2987
|
+
Relationships: [
|
|
2988
|
+
{
|
|
2989
|
+
foreignKeyName: "sponsorships_created_by_fkey";
|
|
2990
|
+
columns: ["created_by"];
|
|
2991
|
+
isOneToOne: false;
|
|
2992
|
+
referencedRelation: "users";
|
|
2993
|
+
referencedColumns: ["id"];
|
|
2994
|
+
},
|
|
2995
|
+
{
|
|
2996
|
+
foreignKeyName: "sponsorships_language_adoption_id_fkey";
|
|
2997
|
+
columns: ["language_adoption_id"];
|
|
2998
|
+
isOneToOne: false;
|
|
2999
|
+
referencedRelation: "language_adoptions";
|
|
3000
|
+
referencedColumns: ["id"];
|
|
3001
|
+
},
|
|
3002
|
+
{
|
|
3003
|
+
foreignKeyName: "sponsorships_language_adoption_id_fkey";
|
|
3004
|
+
columns: ["language_adoption_id"];
|
|
3005
|
+
isOneToOne: false;
|
|
3006
|
+
referencedRelation: "public_language_adoptions";
|
|
3007
|
+
referencedColumns: ["id"];
|
|
3008
|
+
},
|
|
3009
|
+
{
|
|
3010
|
+
foreignKeyName: "sponsorships_partner_org_id_fkey";
|
|
3011
|
+
columns: ["partner_org_id"];
|
|
3012
|
+
isOneToOne: false;
|
|
3013
|
+
referencedRelation: "partner_orgs";
|
|
3014
|
+
referencedColumns: ["id"];
|
|
3015
|
+
},
|
|
3016
|
+
{
|
|
3017
|
+
foreignKeyName: "sponsorships_project_id_fkey";
|
|
3018
|
+
columns: ["project_id"];
|
|
3019
|
+
isOneToOne: false;
|
|
3020
|
+
referencedRelation: "project_financials";
|
|
3021
|
+
referencedColumns: ["project_id"];
|
|
3022
|
+
},
|
|
3023
|
+
{
|
|
3024
|
+
foreignKeyName: "sponsorships_project_id_fkey";
|
|
3025
|
+
columns: ["project_id"];
|
|
3026
|
+
isOneToOne: false;
|
|
3027
|
+
referencedRelation: "projects";
|
|
3028
|
+
referencedColumns: ["id"];
|
|
3029
|
+
}
|
|
3030
|
+
];
|
|
3031
|
+
};
|
|
3032
|
+
stripe_events: {
|
|
3033
|
+
Row: {
|
|
3034
|
+
error_message: string | null;
|
|
3035
|
+
id: string;
|
|
3036
|
+
payload: Json;
|
|
3037
|
+
processed_at: string | null;
|
|
3038
|
+
success: boolean | null;
|
|
3039
|
+
type: string;
|
|
3040
|
+
};
|
|
3041
|
+
Insert: {
|
|
3042
|
+
error_message?: string | null;
|
|
3043
|
+
id: string;
|
|
3044
|
+
payload: Json;
|
|
3045
|
+
processed_at?: string | null;
|
|
3046
|
+
success?: boolean | null;
|
|
3047
|
+
type: string;
|
|
3048
|
+
};
|
|
3049
|
+
Update: {
|
|
3050
|
+
error_message?: string | null;
|
|
3051
|
+
id?: string;
|
|
3052
|
+
payload?: Json;
|
|
3053
|
+
processed_at?: string | null;
|
|
3054
|
+
success?: boolean | null;
|
|
3055
|
+
type?: string;
|
|
3056
|
+
};
|
|
3057
|
+
Relationships: [];
|
|
3058
|
+
};
|
|
2193
3059
|
tags: {
|
|
2194
3060
|
Row: {
|
|
2195
3061
|
created_at: string | null;
|
|
@@ -2228,6 +3094,7 @@ export type Database = {
|
|
|
2228
3094
|
teams: {
|
|
2229
3095
|
Row: {
|
|
2230
3096
|
created_at: string | null;
|
|
3097
|
+
created_by: string | null;
|
|
2231
3098
|
id: string;
|
|
2232
3099
|
name: string;
|
|
2233
3100
|
type: string | null;
|
|
@@ -2235,6 +3102,7 @@ export type Database = {
|
|
|
2235
3102
|
};
|
|
2236
3103
|
Insert: {
|
|
2237
3104
|
created_at?: string | null;
|
|
3105
|
+
created_by?: string | null;
|
|
2238
3106
|
id?: string;
|
|
2239
3107
|
name: string;
|
|
2240
3108
|
type?: string | null;
|
|
@@ -2242,12 +3110,21 @@ export type Database = {
|
|
|
2242
3110
|
};
|
|
2243
3111
|
Update: {
|
|
2244
3112
|
created_at?: string | null;
|
|
3113
|
+
created_by?: string | null;
|
|
2245
3114
|
id?: string;
|
|
2246
3115
|
name?: string;
|
|
2247
3116
|
type?: string | null;
|
|
2248
3117
|
updated_at?: string | null;
|
|
2249
3118
|
};
|
|
2250
|
-
Relationships: [
|
|
3119
|
+
Relationships: [
|
|
3120
|
+
{
|
|
3121
|
+
foreignKeyName: "teams_created_by_fkey";
|
|
3122
|
+
columns: ["created_by"];
|
|
3123
|
+
isOneToOne: false;
|
|
3124
|
+
referencedRelation: "users";
|
|
3125
|
+
referencedColumns: ["id"];
|
|
3126
|
+
}
|
|
3127
|
+
];
|
|
2251
3128
|
};
|
|
2252
3129
|
text_versions: {
|
|
2253
3130
|
Row: {
|
|
@@ -2308,6 +3185,13 @@ export type Database = {
|
|
|
2308
3185
|
referencedRelation: "language_entities";
|
|
2309
3186
|
referencedColumns: ["id"];
|
|
2310
3187
|
},
|
|
3188
|
+
{
|
|
3189
|
+
foreignKeyName: "text_versions_project_id_fkey";
|
|
3190
|
+
columns: ["project_id"];
|
|
3191
|
+
isOneToOne: false;
|
|
3192
|
+
referencedRelation: "project_financials";
|
|
3193
|
+
referencedColumns: ["project_id"];
|
|
3194
|
+
},
|
|
2311
3195
|
{
|
|
2312
3196
|
foreignKeyName: "text_versions_project_id_fkey";
|
|
2313
3197
|
columns: ["project_id"];
|
|
@@ -2510,6 +3394,13 @@ export type Database = {
|
|
|
2510
3394
|
user_id?: string;
|
|
2511
3395
|
};
|
|
2512
3396
|
Relationships: [
|
|
3397
|
+
{
|
|
3398
|
+
foreignKeyName: "user_current_selections_selected_audio_version_fkey";
|
|
3399
|
+
columns: ["selected_audio_version"];
|
|
3400
|
+
isOneToOne: false;
|
|
3401
|
+
referencedRelation: "audio_version_progress_summary";
|
|
3402
|
+
referencedColumns: ["audio_version_id"];
|
|
3403
|
+
},
|
|
2513
3404
|
{
|
|
2514
3405
|
foreignKeyName: "user_current_selections_selected_audio_version_fkey";
|
|
2515
3406
|
columns: ["selected_audio_version"];
|
|
@@ -2517,6 +3408,41 @@ export type Database = {
|
|
|
2517
3408
|
referencedRelation: "audio_versions";
|
|
2518
3409
|
referencedColumns: ["id"];
|
|
2519
3410
|
},
|
|
3411
|
+
{
|
|
3412
|
+
foreignKeyName: "user_current_selections_selected_audio_version_fkey";
|
|
3413
|
+
columns: ["selected_audio_version"];
|
|
3414
|
+
isOneToOne: false;
|
|
3415
|
+
referencedRelation: "language_entity_best_audio_version";
|
|
3416
|
+
referencedColumns: ["audio_version_id"];
|
|
3417
|
+
},
|
|
3418
|
+
{
|
|
3419
|
+
foreignKeyName: "user_current_selections_selected_audio_version_fkey";
|
|
3420
|
+
columns: ["selected_audio_version"];
|
|
3421
|
+
isOneToOne: false;
|
|
3422
|
+
referencedRelation: "mv_audio_version_progress_summary";
|
|
3423
|
+
referencedColumns: ["audio_version_id"];
|
|
3424
|
+
},
|
|
3425
|
+
{
|
|
3426
|
+
foreignKeyName: "user_current_selections_selected_text_version_fkey";
|
|
3427
|
+
columns: ["selected_text_version"];
|
|
3428
|
+
isOneToOne: false;
|
|
3429
|
+
referencedRelation: "language_entity_best_text_version";
|
|
3430
|
+
referencedColumns: ["text_version_id"];
|
|
3431
|
+
},
|
|
3432
|
+
{
|
|
3433
|
+
foreignKeyName: "user_current_selections_selected_text_version_fkey";
|
|
3434
|
+
columns: ["selected_text_version"];
|
|
3435
|
+
isOneToOne: false;
|
|
3436
|
+
referencedRelation: "mv_text_version_progress_summary";
|
|
3437
|
+
referencedColumns: ["text_version_id"];
|
|
3438
|
+
},
|
|
3439
|
+
{
|
|
3440
|
+
foreignKeyName: "user_current_selections_selected_text_version_fkey";
|
|
3441
|
+
columns: ["selected_text_version"];
|
|
3442
|
+
isOneToOne: false;
|
|
3443
|
+
referencedRelation: "text_version_progress_summary";
|
|
3444
|
+
referencedColumns: ["text_version_id"];
|
|
3445
|
+
},
|
|
2520
3446
|
{
|
|
2521
3447
|
foreignKeyName: "user_current_selections_selected_text_version_fkey";
|
|
2522
3448
|
columns: ["selected_text_version"];
|
|
@@ -2685,6 +3611,13 @@ export type Database = {
|
|
|
2685
3611
|
user_id?: string;
|
|
2686
3612
|
};
|
|
2687
3613
|
Relationships: [
|
|
3614
|
+
{
|
|
3615
|
+
foreignKeyName: "user_saved_audio_versions_audio_version_id_fkey";
|
|
3616
|
+
columns: ["audio_version_id"];
|
|
3617
|
+
isOneToOne: false;
|
|
3618
|
+
referencedRelation: "audio_version_progress_summary";
|
|
3619
|
+
referencedColumns: ["audio_version_id"];
|
|
3620
|
+
},
|
|
2688
3621
|
{
|
|
2689
3622
|
foreignKeyName: "user_saved_audio_versions_audio_version_id_fkey";
|
|
2690
3623
|
columns: ["audio_version_id"];
|
|
@@ -2692,6 +3625,20 @@ export type Database = {
|
|
|
2692
3625
|
referencedRelation: "audio_versions";
|
|
2693
3626
|
referencedColumns: ["id"];
|
|
2694
3627
|
},
|
|
3628
|
+
{
|
|
3629
|
+
foreignKeyName: "user_saved_audio_versions_audio_version_id_fkey";
|
|
3630
|
+
columns: ["audio_version_id"];
|
|
3631
|
+
isOneToOne: false;
|
|
3632
|
+
referencedRelation: "language_entity_best_audio_version";
|
|
3633
|
+
referencedColumns: ["audio_version_id"];
|
|
3634
|
+
},
|
|
3635
|
+
{
|
|
3636
|
+
foreignKeyName: "user_saved_audio_versions_audio_version_id_fkey";
|
|
3637
|
+
columns: ["audio_version_id"];
|
|
3638
|
+
isOneToOne: false;
|
|
3639
|
+
referencedRelation: "mv_audio_version_progress_summary";
|
|
3640
|
+
referencedColumns: ["audio_version_id"];
|
|
3641
|
+
},
|
|
2695
3642
|
{
|
|
2696
3643
|
foreignKeyName: "user_saved_audio_versions_user_id_fkey";
|
|
2697
3644
|
columns: ["user_id"];
|
|
@@ -2763,6 +3710,27 @@ export type Database = {
|
|
|
2763
3710
|
user_id?: string;
|
|
2764
3711
|
};
|
|
2765
3712
|
Relationships: [
|
|
3713
|
+
{
|
|
3714
|
+
foreignKeyName: "user_saved_text_versions_text_version_id_fkey";
|
|
3715
|
+
columns: ["text_version_id"];
|
|
3716
|
+
isOneToOne: false;
|
|
3717
|
+
referencedRelation: "language_entity_best_text_version";
|
|
3718
|
+
referencedColumns: ["text_version_id"];
|
|
3719
|
+
},
|
|
3720
|
+
{
|
|
3721
|
+
foreignKeyName: "user_saved_text_versions_text_version_id_fkey";
|
|
3722
|
+
columns: ["text_version_id"];
|
|
3723
|
+
isOneToOne: false;
|
|
3724
|
+
referencedRelation: "mv_text_version_progress_summary";
|
|
3725
|
+
referencedColumns: ["text_version_id"];
|
|
3726
|
+
},
|
|
3727
|
+
{
|
|
3728
|
+
foreignKeyName: "user_saved_text_versions_text_version_id_fkey";
|
|
3729
|
+
columns: ["text_version_id"];
|
|
3730
|
+
isOneToOne: false;
|
|
3731
|
+
referencedRelation: "text_version_progress_summary";
|
|
3732
|
+
referencedColumns: ["text_version_id"];
|
|
3733
|
+
},
|
|
2766
3734
|
{
|
|
2767
3735
|
foreignKeyName: "user_saved_text_versions_text_version_id_fkey";
|
|
2768
3736
|
columns: ["text_version_id"];
|
|
@@ -2805,6 +3773,13 @@ export type Database = {
|
|
|
2805
3773
|
user_id?: string;
|
|
2806
3774
|
};
|
|
2807
3775
|
Relationships: [
|
|
3776
|
+
{
|
|
3777
|
+
foreignKeyName: "user_version_selections_current_audio_version_id_fkey";
|
|
3778
|
+
columns: ["current_audio_version_id"];
|
|
3779
|
+
isOneToOne: false;
|
|
3780
|
+
referencedRelation: "audio_version_progress_summary";
|
|
3781
|
+
referencedColumns: ["audio_version_id"];
|
|
3782
|
+
},
|
|
2808
3783
|
{
|
|
2809
3784
|
foreignKeyName: "user_version_selections_current_audio_version_id_fkey";
|
|
2810
3785
|
columns: ["current_audio_version_id"];
|
|
@@ -2812,16 +3787,51 @@ export type Database = {
|
|
|
2812
3787
|
referencedRelation: "audio_versions";
|
|
2813
3788
|
referencedColumns: ["id"];
|
|
2814
3789
|
},
|
|
3790
|
+
{
|
|
3791
|
+
foreignKeyName: "user_version_selections_current_audio_version_id_fkey";
|
|
3792
|
+
columns: ["current_audio_version_id"];
|
|
3793
|
+
isOneToOne: false;
|
|
3794
|
+
referencedRelation: "language_entity_best_audio_version";
|
|
3795
|
+
referencedColumns: ["audio_version_id"];
|
|
3796
|
+
},
|
|
3797
|
+
{
|
|
3798
|
+
foreignKeyName: "user_version_selections_current_audio_version_id_fkey";
|
|
3799
|
+
columns: ["current_audio_version_id"];
|
|
3800
|
+
isOneToOne: false;
|
|
3801
|
+
referencedRelation: "mv_audio_version_progress_summary";
|
|
3802
|
+
referencedColumns: ["audio_version_id"];
|
|
3803
|
+
},
|
|
2815
3804
|
{
|
|
2816
3805
|
foreignKeyName: "user_version_selections_current_text_version_id_fkey";
|
|
2817
3806
|
columns: ["current_text_version_id"];
|
|
2818
3807
|
isOneToOne: false;
|
|
2819
|
-
referencedRelation: "
|
|
2820
|
-
referencedColumns: ["
|
|
3808
|
+
referencedRelation: "language_entity_best_text_version";
|
|
3809
|
+
referencedColumns: ["text_version_id"];
|
|
2821
3810
|
},
|
|
2822
3811
|
{
|
|
2823
|
-
foreignKeyName: "
|
|
2824
|
-
columns: ["
|
|
3812
|
+
foreignKeyName: "user_version_selections_current_text_version_id_fkey";
|
|
3813
|
+
columns: ["current_text_version_id"];
|
|
3814
|
+
isOneToOne: false;
|
|
3815
|
+
referencedRelation: "mv_text_version_progress_summary";
|
|
3816
|
+
referencedColumns: ["text_version_id"];
|
|
3817
|
+
},
|
|
3818
|
+
{
|
|
3819
|
+
foreignKeyName: "user_version_selections_current_text_version_id_fkey";
|
|
3820
|
+
columns: ["current_text_version_id"];
|
|
3821
|
+
isOneToOne: false;
|
|
3822
|
+
referencedRelation: "text_version_progress_summary";
|
|
3823
|
+
referencedColumns: ["text_version_id"];
|
|
3824
|
+
},
|
|
3825
|
+
{
|
|
3826
|
+
foreignKeyName: "user_version_selections_current_text_version_id_fkey";
|
|
3827
|
+
columns: ["current_text_version_id"];
|
|
3828
|
+
isOneToOne: false;
|
|
3829
|
+
referencedRelation: "text_versions";
|
|
3830
|
+
referencedColumns: ["id"];
|
|
3831
|
+
},
|
|
3832
|
+
{
|
|
3833
|
+
foreignKeyName: "user_version_selections_user_id_fkey";
|
|
3834
|
+
columns: ["user_id"];
|
|
2825
3835
|
isOneToOne: true;
|
|
2826
3836
|
referencedRelation: "users";
|
|
2827
3837
|
referencedColumns: ["id"];
|
|
@@ -3043,6 +4053,27 @@ export type Database = {
|
|
|
3043
4053
|
referencedRelation: "users";
|
|
3044
4054
|
referencedColumns: ["id"];
|
|
3045
4055
|
},
|
|
4056
|
+
{
|
|
4057
|
+
foreignKeyName: "verse_texts_text_version_id_fkey";
|
|
4058
|
+
columns: ["text_version_id"];
|
|
4059
|
+
isOneToOne: false;
|
|
4060
|
+
referencedRelation: "language_entity_best_text_version";
|
|
4061
|
+
referencedColumns: ["text_version_id"];
|
|
4062
|
+
},
|
|
4063
|
+
{
|
|
4064
|
+
foreignKeyName: "verse_texts_text_version_id_fkey";
|
|
4065
|
+
columns: ["text_version_id"];
|
|
4066
|
+
isOneToOne: false;
|
|
4067
|
+
referencedRelation: "mv_text_version_progress_summary";
|
|
4068
|
+
referencedColumns: ["text_version_id"];
|
|
4069
|
+
},
|
|
4070
|
+
{
|
|
4071
|
+
foreignKeyName: "verse_texts_text_version_id_fkey";
|
|
4072
|
+
columns: ["text_version_id"];
|
|
4073
|
+
isOneToOne: false;
|
|
4074
|
+
referencedRelation: "text_version_progress_summary";
|
|
4075
|
+
referencedColumns: ["text_version_id"];
|
|
4076
|
+
},
|
|
3046
4077
|
{
|
|
3047
4078
|
foreignKeyName: "verse_texts_text_version_id_fkey";
|
|
3048
4079
|
columns: ["text_version_id"];
|
|
@@ -3096,13 +4127,28 @@ export type Database = {
|
|
|
3096
4127
|
};
|
|
3097
4128
|
};
|
|
3098
4129
|
Views: {
|
|
4130
|
+
audio_version_progress_summary: {
|
|
4131
|
+
Row: {
|
|
4132
|
+
audio_version_id: string | null;
|
|
4133
|
+
book_fraction: number | null;
|
|
4134
|
+
books_complete: number | null;
|
|
4135
|
+
chapter_fraction: number | null;
|
|
4136
|
+
chapters_with_audio: number | null;
|
|
4137
|
+
covered_verses: number | null;
|
|
4138
|
+
total_books: number | null;
|
|
4139
|
+
total_chapters: number | null;
|
|
4140
|
+
total_verses: number | null;
|
|
4141
|
+
verse_fraction: number | null;
|
|
4142
|
+
};
|
|
4143
|
+
Relationships: [];
|
|
4144
|
+
};
|
|
3099
4145
|
geography_columns: {
|
|
3100
4146
|
Row: {
|
|
3101
4147
|
coord_dimension: number | null;
|
|
3102
|
-
f_geography_column: unknown
|
|
3103
|
-
f_table_catalog: unknown
|
|
3104
|
-
f_table_name: unknown
|
|
3105
|
-
f_table_schema: unknown
|
|
4148
|
+
f_geography_column: unknown;
|
|
4149
|
+
f_table_catalog: unknown;
|
|
4150
|
+
f_table_name: unknown;
|
|
4151
|
+
f_table_schema: unknown;
|
|
3106
4152
|
srid: number | null;
|
|
3107
4153
|
type: string | null;
|
|
3108
4154
|
};
|
|
@@ -3111,82 +4157,218 @@ export type Database = {
|
|
|
3111
4157
|
geometry_columns: {
|
|
3112
4158
|
Row: {
|
|
3113
4159
|
coord_dimension: number | null;
|
|
3114
|
-
f_geometry_column: unknown
|
|
4160
|
+
f_geometry_column: unknown;
|
|
3115
4161
|
f_table_catalog: string | null;
|
|
3116
|
-
f_table_name: unknown
|
|
3117
|
-
f_table_schema: unknown
|
|
4162
|
+
f_table_name: unknown;
|
|
4163
|
+
f_table_schema: unknown;
|
|
3118
4164
|
srid: number | null;
|
|
3119
4165
|
type: string | null;
|
|
3120
4166
|
};
|
|
3121
4167
|
Insert: {
|
|
3122
4168
|
coord_dimension?: number | null;
|
|
3123
|
-
f_geometry_column?: unknown
|
|
4169
|
+
f_geometry_column?: unknown;
|
|
3124
4170
|
f_table_catalog?: string | null;
|
|
3125
|
-
f_table_name?: unknown
|
|
3126
|
-
f_table_schema?: unknown
|
|
4171
|
+
f_table_name?: unknown;
|
|
4172
|
+
f_table_schema?: unknown;
|
|
3127
4173
|
srid?: number | null;
|
|
3128
4174
|
type?: string | null;
|
|
3129
4175
|
};
|
|
3130
4176
|
Update: {
|
|
3131
4177
|
coord_dimension?: number | null;
|
|
3132
|
-
f_geometry_column?: unknown
|
|
4178
|
+
f_geometry_column?: unknown;
|
|
3133
4179
|
f_table_catalog?: string | null;
|
|
3134
|
-
f_table_name?: unknown
|
|
3135
|
-
f_table_schema?: unknown
|
|
4180
|
+
f_table_name?: unknown;
|
|
4181
|
+
f_table_schema?: unknown;
|
|
3136
4182
|
srid?: number | null;
|
|
3137
4183
|
type?: string | null;
|
|
3138
4184
|
};
|
|
3139
4185
|
Relationships: [];
|
|
3140
4186
|
};
|
|
3141
|
-
|
|
4187
|
+
language_entity_best_audio_version: {
|
|
3142
4188
|
Row: {
|
|
3143
|
-
|
|
3144
|
-
|
|
3145
|
-
created_by: string | null;
|
|
3146
|
-
end_verse_id: string | null;
|
|
3147
|
-
id: string | null;
|
|
3148
|
-
playlist_id: string | null;
|
|
3149
|
-
start_verse_id: string | null;
|
|
3150
|
-
updated_at: string | null;
|
|
4189
|
+
audio_version_id: string | null;
|
|
4190
|
+
language_entity_id: string | null;
|
|
3151
4191
|
};
|
|
3152
4192
|
Relationships: [
|
|
3153
4193
|
{
|
|
3154
|
-
foreignKeyName: "
|
|
3155
|
-
columns: ["
|
|
3156
|
-
isOneToOne: false;
|
|
3157
|
-
referencedRelation: "books";
|
|
3158
|
-
referencedColumns: ["id"];
|
|
3159
|
-
},
|
|
3160
|
-
{
|
|
3161
|
-
foreignKeyName: "passages_created_by_fkey";
|
|
3162
|
-
columns: ["created_by"];
|
|
3163
|
-
isOneToOne: false;
|
|
3164
|
-
referencedRelation: "users";
|
|
3165
|
-
referencedColumns: ["id"];
|
|
3166
|
-
},
|
|
3167
|
-
{
|
|
3168
|
-
foreignKeyName: "passages_end_verse_id_fkey";
|
|
3169
|
-
columns: ["end_verse_id"];
|
|
4194
|
+
foreignKeyName: "audio_versions_language_entity_id_fkey";
|
|
4195
|
+
columns: ["language_entity_id"];
|
|
3170
4196
|
isOneToOne: false;
|
|
3171
|
-
referencedRelation: "
|
|
4197
|
+
referencedRelation: "language_entities";
|
|
3172
4198
|
referencedColumns: ["id"];
|
|
3173
|
-
}
|
|
4199
|
+
}
|
|
4200
|
+
];
|
|
4201
|
+
};
|
|
4202
|
+
language_entity_best_text_version: {
|
|
4203
|
+
Row: {
|
|
4204
|
+
language_entity_id: string | null;
|
|
4205
|
+
text_version_id: string | null;
|
|
4206
|
+
};
|
|
4207
|
+
Relationships: [
|
|
3174
4208
|
{
|
|
3175
|
-
foreignKeyName: "
|
|
3176
|
-
columns: ["
|
|
4209
|
+
foreignKeyName: "text_versions_language_entity_id_fkey";
|
|
4210
|
+
columns: ["language_entity_id"];
|
|
3177
4211
|
isOneToOne: false;
|
|
3178
|
-
referencedRelation: "
|
|
4212
|
+
referencedRelation: "language_entities";
|
|
3179
4213
|
referencedColumns: ["id"];
|
|
3180
|
-
}
|
|
4214
|
+
}
|
|
4215
|
+
];
|
|
4216
|
+
};
|
|
4217
|
+
mv_audio_version_progress_summary: {
|
|
4218
|
+
Row: {
|
|
4219
|
+
audio_version_id: string | null;
|
|
4220
|
+
book_fraction: number | null;
|
|
4221
|
+
books_complete: number | null;
|
|
4222
|
+
chapter_fraction: number | null;
|
|
4223
|
+
chapters_with_audio: number | null;
|
|
4224
|
+
covered_verses: number | null;
|
|
4225
|
+
total_books: number | null;
|
|
4226
|
+
total_chapters: number | null;
|
|
4227
|
+
total_verses: number | null;
|
|
4228
|
+
verse_fraction: number | null;
|
|
4229
|
+
};
|
|
4230
|
+
Relationships: [];
|
|
4231
|
+
};
|
|
4232
|
+
mv_language_listens_stats: {
|
|
4233
|
+
Row: {
|
|
4234
|
+
country_code: string | null;
|
|
4235
|
+
downloads: number | null;
|
|
4236
|
+
language_entity_id: string | null;
|
|
4237
|
+
last_download_at: string | null;
|
|
4238
|
+
last_listened_at: string | null;
|
|
4239
|
+
popular_chapters: Json | null;
|
|
4240
|
+
region_id: string | null;
|
|
4241
|
+
total_listened_seconds: number | null;
|
|
4242
|
+
};
|
|
4243
|
+
Relationships: [];
|
|
4244
|
+
};
|
|
4245
|
+
mv_text_version_progress_summary: {
|
|
4246
|
+
Row: {
|
|
4247
|
+
book_fraction: number | null;
|
|
4248
|
+
books_complete: number | null;
|
|
4249
|
+
chapter_fraction: number | null;
|
|
4250
|
+
complete_chapters: number | null;
|
|
4251
|
+
covered_verses: number | null;
|
|
4252
|
+
text_version_id: string | null;
|
|
4253
|
+
total_books: number | null;
|
|
4254
|
+
total_chapters: number | null;
|
|
4255
|
+
total_verses: number | null;
|
|
4256
|
+
verse_fraction: number | null;
|
|
4257
|
+
};
|
|
4258
|
+
Relationships: [];
|
|
4259
|
+
};
|
|
4260
|
+
project_financials: {
|
|
4261
|
+
Row: {
|
|
4262
|
+
actual_spend_usd_cents: number | null;
|
|
4263
|
+
budget_currency_code: string | null;
|
|
4264
|
+
estimated_total_cents: number | null;
|
|
4265
|
+
estimated_total_usd_cents: number | null;
|
|
4266
|
+
funded_percent: number | null;
|
|
4267
|
+
funding_received_usd_cents: number | null;
|
|
4268
|
+
latest_budget_version: number | null;
|
|
4269
|
+
project_id: string | null;
|
|
4270
|
+
};
|
|
4271
|
+
Relationships: [];
|
|
4272
|
+
};
|
|
4273
|
+
public_language_adoptions: {
|
|
4274
|
+
Row: {
|
|
4275
|
+
available_since: string | null;
|
|
4276
|
+
currency_code: string | null;
|
|
4277
|
+
estimated_budget_cents: number | null;
|
|
4278
|
+
funding_received_usd_cents: number | null;
|
|
4279
|
+
id: string | null;
|
|
4280
|
+
language_entity_id: string | null;
|
|
4281
|
+
notes: string | null;
|
|
4282
|
+
status: Database["public"]["Enums"]["adoption_status"] | null;
|
|
4283
|
+
translators_ready: boolean | null;
|
|
4284
|
+
};
|
|
4285
|
+
Insert: {
|
|
4286
|
+
available_since?: string | null;
|
|
4287
|
+
currency_code?: string | null;
|
|
4288
|
+
estimated_budget_cents?: number | null;
|
|
4289
|
+
funding_received_usd_cents?: never;
|
|
4290
|
+
id?: string | null;
|
|
4291
|
+
language_entity_id?: string | null;
|
|
4292
|
+
notes?: string | null;
|
|
4293
|
+
status?: Database["public"]["Enums"]["adoption_status"] | null;
|
|
4294
|
+
translators_ready?: boolean | null;
|
|
4295
|
+
};
|
|
4296
|
+
Update: {
|
|
4297
|
+
available_since?: string | null;
|
|
4298
|
+
currency_code?: string | null;
|
|
4299
|
+
estimated_budget_cents?: number | null;
|
|
4300
|
+
funding_received_usd_cents?: never;
|
|
4301
|
+
id?: string | null;
|
|
4302
|
+
language_entity_id?: string | null;
|
|
4303
|
+
notes?: string | null;
|
|
4304
|
+
status?: Database["public"]["Enums"]["adoption_status"] | null;
|
|
4305
|
+
translators_ready?: boolean | null;
|
|
4306
|
+
};
|
|
4307
|
+
Relationships: [
|
|
3181
4308
|
{
|
|
3182
|
-
foreignKeyName: "
|
|
3183
|
-
columns: ["
|
|
4309
|
+
foreignKeyName: "language_adoptions_language_entity_id_fkey";
|
|
4310
|
+
columns: ["language_entity_id"];
|
|
3184
4311
|
isOneToOne: false;
|
|
3185
|
-
referencedRelation: "
|
|
4312
|
+
referencedRelation: "language_entities";
|
|
3186
4313
|
referencedColumns: ["id"];
|
|
3187
4314
|
}
|
|
3188
4315
|
];
|
|
3189
4316
|
};
|
|
4317
|
+
text_version_progress_summary: {
|
|
4318
|
+
Row: {
|
|
4319
|
+
book_fraction: number | null;
|
|
4320
|
+
books_complete: number | null;
|
|
4321
|
+
chapter_fraction: number | null;
|
|
4322
|
+
complete_chapters: number | null;
|
|
4323
|
+
covered_verses: number | null;
|
|
4324
|
+
text_version_id: string | null;
|
|
4325
|
+
total_books: number | null;
|
|
4326
|
+
total_chapters: number | null;
|
|
4327
|
+
total_verses: number | null;
|
|
4328
|
+
verse_fraction: number | null;
|
|
4329
|
+
};
|
|
4330
|
+
Relationships: [];
|
|
4331
|
+
};
|
|
4332
|
+
vw_country_language_listens_heatmap: {
|
|
4333
|
+
Row: {
|
|
4334
|
+
country_code: string | null;
|
|
4335
|
+
event_count: number | null;
|
|
4336
|
+
grid: unknown;
|
|
4337
|
+
language_entity_id: string | null;
|
|
4338
|
+
last_event_at: string | null;
|
|
4339
|
+
region_id: string | null;
|
|
4340
|
+
};
|
|
4341
|
+
Relationships: [];
|
|
4342
|
+
};
|
|
4343
|
+
vw_iso_country_to_region: {
|
|
4344
|
+
Row: {
|
|
4345
|
+
code: string | null;
|
|
4346
|
+
region_id: string | null;
|
|
4347
|
+
};
|
|
4348
|
+
Relationships: [];
|
|
4349
|
+
};
|
|
4350
|
+
vw_language_listens_heatmap: {
|
|
4351
|
+
Row: {
|
|
4352
|
+
event_count: number | null;
|
|
4353
|
+
grid: unknown;
|
|
4354
|
+
language_entity_id: string | null;
|
|
4355
|
+
last_event_at: string | null;
|
|
4356
|
+
};
|
|
4357
|
+
Relationships: [];
|
|
4358
|
+
};
|
|
4359
|
+
vw_language_listens_stats: {
|
|
4360
|
+
Row: {
|
|
4361
|
+
country_code: string | null;
|
|
4362
|
+
downloads: number | null;
|
|
4363
|
+
language_entity_id: string | null;
|
|
4364
|
+
last_download_at: string | null;
|
|
4365
|
+
last_listened_at: string | null;
|
|
4366
|
+
popular_chapters: Json | null;
|
|
4367
|
+
region_id: string | null;
|
|
4368
|
+
total_listened_seconds: number | null;
|
|
4369
|
+
};
|
|
4370
|
+
Relationships: [];
|
|
4371
|
+
};
|
|
3190
4372
|
};
|
|
3191
4373
|
Functions: {
|
|
3192
4374
|
_postgis_deprecate: {
|
|
@@ -3205,11 +4387,11 @@ export type Database = {
|
|
|
3205
4387
|
Returns: unknown;
|
|
3206
4388
|
};
|
|
3207
4389
|
_postgis_pgsql_version: {
|
|
3208
|
-
Args:
|
|
4390
|
+
Args: never;
|
|
3209
4391
|
Returns: string;
|
|
3210
4392
|
};
|
|
3211
4393
|
_postgis_scripts_pgsql_version: {
|
|
3212
|
-
Args:
|
|
4394
|
+
Args: never;
|
|
3213
4395
|
Returns: string;
|
|
3214
4396
|
};
|
|
3215
4397
|
_postgis_selectivity: {
|
|
@@ -3221,6 +4403,14 @@ export type Database = {
|
|
|
3221
4403
|
};
|
|
3222
4404
|
Returns: number;
|
|
3223
4405
|
};
|
|
4406
|
+
_postgis_stats: {
|
|
4407
|
+
Args: {
|
|
4408
|
+
""?: string;
|
|
4409
|
+
att_name: string;
|
|
4410
|
+
tbl: unknown;
|
|
4411
|
+
};
|
|
4412
|
+
Returns: string;
|
|
4413
|
+
};
|
|
3224
4414
|
_st_3dintersects: {
|
|
3225
4415
|
Args: {
|
|
3226
4416
|
geom1: unknown;
|
|
@@ -3228,12 +4418,6 @@ export type Database = {
|
|
|
3228
4418
|
};
|
|
3229
4419
|
Returns: boolean;
|
|
3230
4420
|
};
|
|
3231
|
-
_st_bestsrid: {
|
|
3232
|
-
Args: {
|
|
3233
|
-
"": unknown;
|
|
3234
|
-
};
|
|
3235
|
-
Returns: number;
|
|
3236
|
-
};
|
|
3237
4421
|
_st_contains: {
|
|
3238
4422
|
Args: {
|
|
3239
4423
|
geom1: unknown;
|
|
@@ -3252,7 +4436,10 @@ export type Database = {
|
|
|
3252
4436
|
Args: {
|
|
3253
4437
|
geog1: unknown;
|
|
3254
4438
|
geog2: unknown;
|
|
3255
|
-
}
|
|
4439
|
+
};
|
|
4440
|
+
Returns: boolean;
|
|
4441
|
+
} | {
|
|
4442
|
+
Args: {
|
|
3256
4443
|
geom1: unknown;
|
|
3257
4444
|
geom2: unknown;
|
|
3258
4445
|
};
|
|
@@ -3262,7 +4449,10 @@ export type Database = {
|
|
|
3262
4449
|
Args: {
|
|
3263
4450
|
geog1: unknown;
|
|
3264
4451
|
geog2: unknown;
|
|
3265
|
-
}
|
|
4452
|
+
};
|
|
4453
|
+
Returns: boolean;
|
|
4454
|
+
} | {
|
|
4455
|
+
Args: {
|
|
3266
4456
|
geom1: unknown;
|
|
3267
4457
|
geom2: unknown;
|
|
3268
4458
|
};
|
|
@@ -3333,12 +4523,6 @@ export type Database = {
|
|
|
3333
4523
|
};
|
|
3334
4524
|
Returns: boolean;
|
|
3335
4525
|
};
|
|
3336
|
-
_st_pointoutside: {
|
|
3337
|
-
Args: {
|
|
3338
|
-
"": unknown;
|
|
3339
|
-
};
|
|
3340
|
-
Returns: unknown;
|
|
3341
|
-
};
|
|
3342
4526
|
_st_sortablehash: {
|
|
3343
4527
|
Args: {
|
|
3344
4528
|
geom: unknown;
|
|
@@ -3376,143 +4560,115 @@ export type Database = {
|
|
|
3376
4560
|
};
|
|
3377
4561
|
addgeometrycolumn: {
|
|
3378
4562
|
Args: {
|
|
3379
|
-
catalog_name: string;
|
|
3380
4563
|
column_name: string;
|
|
3381
4564
|
new_dim: number;
|
|
3382
|
-
|
|
4565
|
+
new_srid: number;
|
|
3383
4566
|
new_type: string;
|
|
3384
4567
|
schema_name: string;
|
|
3385
4568
|
table_name: string;
|
|
3386
4569
|
use_typmod?: boolean;
|
|
3387
|
-
}
|
|
4570
|
+
};
|
|
4571
|
+
Returns: string;
|
|
4572
|
+
} | {
|
|
4573
|
+
Args: {
|
|
3388
4574
|
column_name: string;
|
|
3389
4575
|
new_dim: number;
|
|
3390
4576
|
new_srid: number;
|
|
3391
4577
|
new_type: string;
|
|
3392
|
-
schema_name: string;
|
|
3393
4578
|
table_name: string;
|
|
3394
4579
|
use_typmod?: boolean;
|
|
3395
|
-
}
|
|
4580
|
+
};
|
|
4581
|
+
Returns: string;
|
|
4582
|
+
} | {
|
|
4583
|
+
Args: {
|
|
4584
|
+
catalog_name: string;
|
|
3396
4585
|
column_name: string;
|
|
3397
4586
|
new_dim: number;
|
|
3398
|
-
|
|
4587
|
+
new_srid_in: number;
|
|
3399
4588
|
new_type: string;
|
|
4589
|
+
schema_name: string;
|
|
3400
4590
|
table_name: string;
|
|
3401
4591
|
use_typmod?: boolean;
|
|
3402
4592
|
};
|
|
3403
4593
|
Returns: string;
|
|
3404
4594
|
};
|
|
3405
|
-
|
|
3406
|
-
Args: {
|
|
3407
|
-
"": unknown;
|
|
3408
|
-
} | {
|
|
3409
|
-
"": unknown;
|
|
3410
|
-
};
|
|
3411
|
-
Returns: unknown;
|
|
3412
|
-
};
|
|
3413
|
-
box2d: {
|
|
3414
|
-
Args: {
|
|
3415
|
-
"": unknown;
|
|
3416
|
-
} | {
|
|
3417
|
-
"": unknown;
|
|
3418
|
-
};
|
|
3419
|
-
Returns: unknown;
|
|
3420
|
-
};
|
|
3421
|
-
box2d_in: {
|
|
3422
|
-
Args: {
|
|
3423
|
-
"": unknown;
|
|
3424
|
-
};
|
|
3425
|
-
Returns: unknown;
|
|
3426
|
-
};
|
|
3427
|
-
box2d_out: {
|
|
3428
|
-
Args: {
|
|
3429
|
-
"": unknown;
|
|
3430
|
-
};
|
|
3431
|
-
Returns: unknown;
|
|
3432
|
-
};
|
|
3433
|
-
box2df_in: {
|
|
3434
|
-
Args: {
|
|
3435
|
-
"": unknown;
|
|
3436
|
-
};
|
|
3437
|
-
Returns: unknown;
|
|
3438
|
-
};
|
|
3439
|
-
box2df_out: {
|
|
3440
|
-
Args: {
|
|
3441
|
-
"": unknown;
|
|
3442
|
-
};
|
|
3443
|
-
Returns: unknown;
|
|
3444
|
-
};
|
|
3445
|
-
box3d: {
|
|
3446
|
-
Args: {
|
|
3447
|
-
"": unknown;
|
|
3448
|
-
} | {
|
|
3449
|
-
"": unknown;
|
|
3450
|
-
};
|
|
3451
|
-
Returns: unknown;
|
|
3452
|
-
};
|
|
3453
|
-
box3d_in: {
|
|
3454
|
-
Args: {
|
|
3455
|
-
"": unknown;
|
|
3456
|
-
};
|
|
3457
|
-
Returns: unknown;
|
|
3458
|
-
};
|
|
3459
|
-
box3d_out: {
|
|
3460
|
-
Args: {
|
|
3461
|
-
"": unknown;
|
|
3462
|
-
};
|
|
3463
|
-
Returns: unknown;
|
|
3464
|
-
};
|
|
3465
|
-
box3dtobox: {
|
|
4595
|
+
convert_to_usd: {
|
|
3466
4596
|
Args: {
|
|
3467
|
-
|
|
4597
|
+
p_amount_cents: number;
|
|
4598
|
+
p_as_of_date: string;
|
|
4599
|
+
p_currency_code: string;
|
|
3468
4600
|
};
|
|
3469
|
-
Returns:
|
|
4601
|
+
Returns: number;
|
|
3470
4602
|
};
|
|
3471
|
-
|
|
4603
|
+
cp1252_softmap: {
|
|
3472
4604
|
Args: {
|
|
3473
|
-
|
|
3474
|
-
} | {
|
|
3475
|
-
"": unknown;
|
|
4605
|
+
input: string;
|
|
3476
4606
|
};
|
|
3477
4607
|
Returns: string;
|
|
3478
4608
|
};
|
|
3479
4609
|
disablelongtransactions: {
|
|
3480
|
-
Args:
|
|
4610
|
+
Args: never;
|
|
3481
4611
|
Returns: string;
|
|
3482
4612
|
};
|
|
4613
|
+
drain_progress_refresh_queue: {
|
|
4614
|
+
Args: never;
|
|
4615
|
+
Returns: {
|
|
4616
|
+
kind: string;
|
|
4617
|
+
version_id: string;
|
|
4618
|
+
}[];
|
|
4619
|
+
};
|
|
3483
4620
|
dropgeometrycolumn: {
|
|
3484
4621
|
Args: {
|
|
3485
|
-
catalog_name: string;
|
|
3486
4622
|
column_name: string;
|
|
3487
4623
|
schema_name: string;
|
|
3488
4624
|
table_name: string;
|
|
3489
|
-
}
|
|
4625
|
+
};
|
|
4626
|
+
Returns: string;
|
|
4627
|
+
} | {
|
|
4628
|
+
Args: {
|
|
3490
4629
|
column_name: string;
|
|
3491
|
-
schema_name: string;
|
|
3492
4630
|
table_name: string;
|
|
3493
|
-
}
|
|
4631
|
+
};
|
|
4632
|
+
Returns: string;
|
|
4633
|
+
} | {
|
|
4634
|
+
Args: {
|
|
4635
|
+
catalog_name: string;
|
|
3494
4636
|
column_name: string;
|
|
4637
|
+
schema_name: string;
|
|
3495
4638
|
table_name: string;
|
|
3496
4639
|
};
|
|
3497
4640
|
Returns: string;
|
|
3498
4641
|
};
|
|
3499
4642
|
dropgeometrytable: {
|
|
3500
4643
|
Args: {
|
|
3501
|
-
catalog_name: string;
|
|
3502
4644
|
schema_name: string;
|
|
3503
4645
|
table_name: string;
|
|
3504
|
-
}
|
|
3505
|
-
|
|
4646
|
+
};
|
|
4647
|
+
Returns: string;
|
|
4648
|
+
} | {
|
|
4649
|
+
Args: {
|
|
3506
4650
|
table_name: string;
|
|
3507
|
-
}
|
|
4651
|
+
};
|
|
4652
|
+
Returns: string;
|
|
4653
|
+
} | {
|
|
4654
|
+
Args: {
|
|
4655
|
+
catalog_name: string;
|
|
4656
|
+
schema_name: string;
|
|
3508
4657
|
table_name: string;
|
|
3509
4658
|
};
|
|
3510
4659
|
Returns: string;
|
|
3511
4660
|
};
|
|
3512
4661
|
enablelongtransactions: {
|
|
3513
|
-
Args:
|
|
4662
|
+
Args: never;
|
|
3514
4663
|
Returns: string;
|
|
3515
4664
|
};
|
|
4665
|
+
enqueue_progress_refresh: {
|
|
4666
|
+
Args: {
|
|
4667
|
+
kind_in: string;
|
|
4668
|
+
version_in: string;
|
|
4669
|
+
};
|
|
4670
|
+
Returns: undefined;
|
|
4671
|
+
};
|
|
3516
4672
|
equals: {
|
|
3517
4673
|
Args: {
|
|
3518
4674
|
geom1: unknown;
|
|
@@ -3520,106 +4676,30 @@ export type Database = {
|
|
|
3520
4676
|
};
|
|
3521
4677
|
Returns: boolean;
|
|
3522
4678
|
};
|
|
3523
|
-
|
|
4679
|
+
geometry: {
|
|
3524
4680
|
Args: {
|
|
3525
4681
|
"": string;
|
|
3526
|
-
} | {
|
|
3527
|
-
"": unknown;
|
|
3528
4682
|
};
|
|
3529
4683
|
Returns: unknown;
|
|
3530
4684
|
};
|
|
3531
|
-
|
|
4685
|
+
geometry_above: {
|
|
3532
4686
|
Args: {
|
|
3533
|
-
|
|
4687
|
+
geom1: unknown;
|
|
4688
|
+
geom2: unknown;
|
|
3534
4689
|
};
|
|
3535
4690
|
Returns: boolean;
|
|
3536
4691
|
};
|
|
3537
|
-
|
|
4692
|
+
geometry_below: {
|
|
3538
4693
|
Args: {
|
|
3539
|
-
|
|
4694
|
+
geom1: unknown;
|
|
4695
|
+
geom2: unknown;
|
|
3540
4696
|
};
|
|
3541
|
-
Returns:
|
|
4697
|
+
Returns: boolean;
|
|
3542
4698
|
};
|
|
3543
|
-
|
|
4699
|
+
geometry_cmp: {
|
|
3544
4700
|
Args: {
|
|
3545
|
-
|
|
3546
|
-
|
|
3547
|
-
Returns: unknown;
|
|
3548
|
-
};
|
|
3549
|
-
geography_out: {
|
|
3550
|
-
Args: {
|
|
3551
|
-
"": unknown;
|
|
3552
|
-
};
|
|
3553
|
-
Returns: unknown;
|
|
3554
|
-
};
|
|
3555
|
-
geography_send: {
|
|
3556
|
-
Args: {
|
|
3557
|
-
"": unknown;
|
|
3558
|
-
};
|
|
3559
|
-
Returns: string;
|
|
3560
|
-
};
|
|
3561
|
-
geography_spgist_compress_nd: {
|
|
3562
|
-
Args: {
|
|
3563
|
-
"": unknown;
|
|
3564
|
-
};
|
|
3565
|
-
Returns: unknown;
|
|
3566
|
-
};
|
|
3567
|
-
geography_typmod_in: {
|
|
3568
|
-
Args: {
|
|
3569
|
-
"": unknown[];
|
|
3570
|
-
};
|
|
3571
|
-
Returns: number;
|
|
3572
|
-
};
|
|
3573
|
-
geography_typmod_out: {
|
|
3574
|
-
Args: {
|
|
3575
|
-
"": number;
|
|
3576
|
-
};
|
|
3577
|
-
Returns: unknown;
|
|
3578
|
-
};
|
|
3579
|
-
geometry: {
|
|
3580
|
-
Args: {
|
|
3581
|
-
"": string;
|
|
3582
|
-
} | {
|
|
3583
|
-
"": string;
|
|
3584
|
-
} | {
|
|
3585
|
-
"": unknown;
|
|
3586
|
-
} | {
|
|
3587
|
-
"": unknown;
|
|
3588
|
-
} | {
|
|
3589
|
-
"": unknown;
|
|
3590
|
-
} | {
|
|
3591
|
-
"": unknown;
|
|
3592
|
-
} | {
|
|
3593
|
-
"": unknown;
|
|
3594
|
-
} | {
|
|
3595
|
-
"": unknown;
|
|
3596
|
-
};
|
|
3597
|
-
Returns: unknown;
|
|
3598
|
-
};
|
|
3599
|
-
geometry_above: {
|
|
3600
|
-
Args: {
|
|
3601
|
-
geom1: unknown;
|
|
3602
|
-
geom2: unknown;
|
|
3603
|
-
};
|
|
3604
|
-
Returns: boolean;
|
|
3605
|
-
};
|
|
3606
|
-
geometry_analyze: {
|
|
3607
|
-
Args: {
|
|
3608
|
-
"": unknown;
|
|
3609
|
-
};
|
|
3610
|
-
Returns: boolean;
|
|
3611
|
-
};
|
|
3612
|
-
geometry_below: {
|
|
3613
|
-
Args: {
|
|
3614
|
-
geom1: unknown;
|
|
3615
|
-
geom2: unknown;
|
|
3616
|
-
};
|
|
3617
|
-
Returns: boolean;
|
|
3618
|
-
};
|
|
3619
|
-
geometry_cmp: {
|
|
3620
|
-
Args: {
|
|
3621
|
-
geom1: unknown;
|
|
3622
|
-
geom2: unknown;
|
|
4701
|
+
geom1: unknown;
|
|
4702
|
+
geom2: unknown;
|
|
3623
4703
|
};
|
|
3624
4704
|
Returns: number;
|
|
3625
4705
|
};
|
|
@@ -3672,36 +4752,6 @@ export type Database = {
|
|
|
3672
4752
|
};
|
|
3673
4753
|
Returns: boolean;
|
|
3674
4754
|
};
|
|
3675
|
-
geometry_gist_compress_2d: {
|
|
3676
|
-
Args: {
|
|
3677
|
-
"": unknown;
|
|
3678
|
-
};
|
|
3679
|
-
Returns: unknown;
|
|
3680
|
-
};
|
|
3681
|
-
geometry_gist_compress_nd: {
|
|
3682
|
-
Args: {
|
|
3683
|
-
"": unknown;
|
|
3684
|
-
};
|
|
3685
|
-
Returns: unknown;
|
|
3686
|
-
};
|
|
3687
|
-
geometry_gist_decompress_2d: {
|
|
3688
|
-
Args: {
|
|
3689
|
-
"": unknown;
|
|
3690
|
-
};
|
|
3691
|
-
Returns: unknown;
|
|
3692
|
-
};
|
|
3693
|
-
geometry_gist_decompress_nd: {
|
|
3694
|
-
Args: {
|
|
3695
|
-
"": unknown;
|
|
3696
|
-
};
|
|
3697
|
-
Returns: unknown;
|
|
3698
|
-
};
|
|
3699
|
-
geometry_gist_sortsupport_2d: {
|
|
3700
|
-
Args: {
|
|
3701
|
-
"": unknown;
|
|
3702
|
-
};
|
|
3703
|
-
Returns: undefined;
|
|
3704
|
-
};
|
|
3705
4755
|
geometry_gt: {
|
|
3706
4756
|
Args: {
|
|
3707
4757
|
geom1: unknown;
|
|
@@ -3709,18 +4759,6 @@ export type Database = {
|
|
|
3709
4759
|
};
|
|
3710
4760
|
Returns: boolean;
|
|
3711
4761
|
};
|
|
3712
|
-
geometry_hash: {
|
|
3713
|
-
Args: {
|
|
3714
|
-
"": unknown;
|
|
3715
|
-
};
|
|
3716
|
-
Returns: number;
|
|
3717
|
-
};
|
|
3718
|
-
geometry_in: {
|
|
3719
|
-
Args: {
|
|
3720
|
-
"": unknown;
|
|
3721
|
-
};
|
|
3722
|
-
Returns: unknown;
|
|
3723
|
-
};
|
|
3724
4762
|
geometry_le: {
|
|
3725
4763
|
Args: {
|
|
3726
4764
|
geom1: unknown;
|
|
@@ -3742,12 +4780,6 @@ export type Database = {
|
|
|
3742
4780
|
};
|
|
3743
4781
|
Returns: boolean;
|
|
3744
4782
|
};
|
|
3745
|
-
geometry_out: {
|
|
3746
|
-
Args: {
|
|
3747
|
-
"": unknown;
|
|
3748
|
-
};
|
|
3749
|
-
Returns: unknown;
|
|
3750
|
-
};
|
|
3751
4783
|
geometry_overabove: {
|
|
3752
4784
|
Args: {
|
|
3753
4785
|
geom1: unknown;
|
|
@@ -3790,12 +4822,6 @@ export type Database = {
|
|
|
3790
4822
|
};
|
|
3791
4823
|
Returns: boolean;
|
|
3792
4824
|
};
|
|
3793
|
-
geometry_recv: {
|
|
3794
|
-
Args: {
|
|
3795
|
-
"": unknown;
|
|
3796
|
-
};
|
|
3797
|
-
Returns: unknown;
|
|
3798
|
-
};
|
|
3799
4825
|
geometry_right: {
|
|
3800
4826
|
Args: {
|
|
3801
4827
|
geom1: unknown;
|
|
@@ -3817,48 +4843,6 @@ export type Database = {
|
|
|
3817
4843
|
};
|
|
3818
4844
|
Returns: boolean;
|
|
3819
4845
|
};
|
|
3820
|
-
geometry_send: {
|
|
3821
|
-
Args: {
|
|
3822
|
-
"": unknown;
|
|
3823
|
-
};
|
|
3824
|
-
Returns: string;
|
|
3825
|
-
};
|
|
3826
|
-
geometry_sortsupport: {
|
|
3827
|
-
Args: {
|
|
3828
|
-
"": unknown;
|
|
3829
|
-
};
|
|
3830
|
-
Returns: undefined;
|
|
3831
|
-
};
|
|
3832
|
-
geometry_spgist_compress_2d: {
|
|
3833
|
-
Args: {
|
|
3834
|
-
"": unknown;
|
|
3835
|
-
};
|
|
3836
|
-
Returns: unknown;
|
|
3837
|
-
};
|
|
3838
|
-
geometry_spgist_compress_3d: {
|
|
3839
|
-
Args: {
|
|
3840
|
-
"": unknown;
|
|
3841
|
-
};
|
|
3842
|
-
Returns: unknown;
|
|
3843
|
-
};
|
|
3844
|
-
geometry_spgist_compress_nd: {
|
|
3845
|
-
Args: {
|
|
3846
|
-
"": unknown;
|
|
3847
|
-
};
|
|
3848
|
-
Returns: unknown;
|
|
3849
|
-
};
|
|
3850
|
-
geometry_typmod_in: {
|
|
3851
|
-
Args: {
|
|
3852
|
-
"": unknown[];
|
|
3853
|
-
};
|
|
3854
|
-
Returns: number;
|
|
3855
|
-
};
|
|
3856
|
-
geometry_typmod_out: {
|
|
3857
|
-
Args: {
|
|
3858
|
-
"": number;
|
|
3859
|
-
};
|
|
3860
|
-
Returns: unknown;
|
|
3861
|
-
};
|
|
3862
4846
|
geometry_within: {
|
|
3863
4847
|
Args: {
|
|
3864
4848
|
geom1: unknown;
|
|
@@ -3866,20 +4850,6 @@ export type Database = {
|
|
|
3866
4850
|
};
|
|
3867
4851
|
Returns: boolean;
|
|
3868
4852
|
};
|
|
3869
|
-
geometrytype: {
|
|
3870
|
-
Args: {
|
|
3871
|
-
"": unknown;
|
|
3872
|
-
} | {
|
|
3873
|
-
"": unknown;
|
|
3874
|
-
};
|
|
3875
|
-
Returns: string;
|
|
3876
|
-
};
|
|
3877
|
-
geomfromewkb: {
|
|
3878
|
-
Args: {
|
|
3879
|
-
"": string;
|
|
3880
|
-
};
|
|
3881
|
-
Returns: unknown;
|
|
3882
|
-
};
|
|
3883
4853
|
geomfromewkt: {
|
|
3884
4854
|
Args: {
|
|
3885
4855
|
"": string;
|
|
@@ -3889,11 +4859,21 @@ export type Database = {
|
|
|
3889
4859
|
get_chapter_global_order: {
|
|
3890
4860
|
Args: {
|
|
3891
4861
|
chapter_text_id: string;
|
|
3892
|
-
}
|
|
4862
|
+
};
|
|
4863
|
+
Returns: number;
|
|
4864
|
+
} | {
|
|
4865
|
+
Args: {
|
|
3893
4866
|
chapter_uuid: string;
|
|
3894
4867
|
};
|
|
3895
4868
|
Returns: number;
|
|
3896
4869
|
};
|
|
4870
|
+
get_country_code_from_point: {
|
|
4871
|
+
Args: {
|
|
4872
|
+
lat: number;
|
|
4873
|
+
lon: number;
|
|
4874
|
+
};
|
|
4875
|
+
Returns: string;
|
|
4876
|
+
};
|
|
3897
4877
|
get_language_entity_hierarchy: {
|
|
3898
4878
|
Args: {
|
|
3899
4879
|
entity_id: string;
|
|
@@ -3915,11 +4895,43 @@ export type Database = {
|
|
|
3915
4895
|
};
|
|
3916
4896
|
Returns: string;
|
|
3917
4897
|
};
|
|
3918
|
-
|
|
4898
|
+
get_region_bbox_by_id: {
|
|
3919
4899
|
Args: {
|
|
3920
|
-
|
|
4900
|
+
p_region_id: string;
|
|
3921
4901
|
};
|
|
3922
|
-
Returns:
|
|
4902
|
+
Returns: {
|
|
4903
|
+
center_lat: number;
|
|
4904
|
+
center_lon: number;
|
|
4905
|
+
id: string;
|
|
4906
|
+
level: Database["public"]["Enums"]["region_level"];
|
|
4907
|
+
max_lat: number;
|
|
4908
|
+
max_lon: number;
|
|
4909
|
+
min_lat: number;
|
|
4910
|
+
min_lon: number;
|
|
4911
|
+
name: string;
|
|
4912
|
+
parent_id: string;
|
|
4913
|
+
}[];
|
|
4914
|
+
};
|
|
4915
|
+
get_region_boundary_simplified_by_id: {
|
|
4916
|
+
Args: {
|
|
4917
|
+
p_region_id: string;
|
|
4918
|
+
p_tolerance?: number;
|
|
4919
|
+
};
|
|
4920
|
+
Returns: {
|
|
4921
|
+
boundary: unknown;
|
|
4922
|
+
}[];
|
|
4923
|
+
};
|
|
4924
|
+
get_region_header_and_properties_by_id: {
|
|
4925
|
+
Args: {
|
|
4926
|
+
p_region_id: string;
|
|
4927
|
+
};
|
|
4928
|
+
Returns: {
|
|
4929
|
+
id: string;
|
|
4930
|
+
level: Database["public"]["Enums"]["region_level"];
|
|
4931
|
+
name: string;
|
|
4932
|
+
parent_id: string;
|
|
4933
|
+
properties: Json;
|
|
4934
|
+
}[];
|
|
3923
4935
|
};
|
|
3924
4936
|
get_region_hierarchy: {
|
|
3925
4937
|
Args: {
|
|
@@ -3936,6 +4948,25 @@ export type Database = {
|
|
|
3936
4948
|
relationship_type: string;
|
|
3937
4949
|
}[];
|
|
3938
4950
|
};
|
|
4951
|
+
get_region_minimal_by_point: {
|
|
4952
|
+
Args: {
|
|
4953
|
+
lat: number;
|
|
4954
|
+
lon: number;
|
|
4955
|
+
lookup_level?: Database["public"]["Enums"]["region_level"];
|
|
4956
|
+
};
|
|
4957
|
+
Returns: {
|
|
4958
|
+
center_lat: number;
|
|
4959
|
+
center_lon: number;
|
|
4960
|
+
id: string;
|
|
4961
|
+
level: Database["public"]["Enums"]["region_level"];
|
|
4962
|
+
max_lat: number;
|
|
4963
|
+
max_lon: number;
|
|
4964
|
+
min_lat: number;
|
|
4965
|
+
min_lon: number;
|
|
4966
|
+
name: string;
|
|
4967
|
+
parent_id: string;
|
|
4968
|
+
}[];
|
|
4969
|
+
};
|
|
3939
4970
|
get_region_path: {
|
|
3940
4971
|
Args: {
|
|
3941
4972
|
region_id: string;
|
|
@@ -3945,172 +4976,66 @@ export type Database = {
|
|
|
3945
4976
|
get_verse_global_order: {
|
|
3946
4977
|
Args: {
|
|
3947
4978
|
verse_text_id: string;
|
|
3948
|
-
} | {
|
|
3949
|
-
verse_uuid: string;
|
|
3950
4979
|
};
|
|
3951
4980
|
Returns: number;
|
|
3952
|
-
}
|
|
3953
|
-
gettransactionid: {
|
|
3954
|
-
Args: Record<PropertyKey, never>;
|
|
3955
|
-
Returns: unknown;
|
|
3956
|
-
};
|
|
3957
|
-
gidx_in: {
|
|
3958
|
-
Args: {
|
|
3959
|
-
"": unknown;
|
|
3960
|
-
};
|
|
3961
|
-
Returns: unknown;
|
|
3962
|
-
};
|
|
3963
|
-
gidx_out: {
|
|
3964
|
-
Args: {
|
|
3965
|
-
"": unknown;
|
|
3966
|
-
};
|
|
3967
|
-
Returns: unknown;
|
|
3968
|
-
};
|
|
3969
|
-
gtrgm_compress: {
|
|
4981
|
+
} | {
|
|
3970
4982
|
Args: {
|
|
3971
|
-
|
|
3972
|
-
};
|
|
3973
|
-
Returns: unknown;
|
|
3974
|
-
};
|
|
3975
|
-
gtrgm_decompress: {
|
|
3976
|
-
Args: {
|
|
3977
|
-
"": unknown;
|
|
3978
|
-
};
|
|
3979
|
-
Returns: unknown;
|
|
3980
|
-
};
|
|
3981
|
-
gtrgm_in: {
|
|
3982
|
-
Args: {
|
|
3983
|
-
"": unknown;
|
|
3984
|
-
};
|
|
3985
|
-
Returns: unknown;
|
|
3986
|
-
};
|
|
3987
|
-
gtrgm_options: {
|
|
3988
|
-
Args: {
|
|
3989
|
-
"": unknown;
|
|
4983
|
+
verse_uuid: string;
|
|
3990
4984
|
};
|
|
3991
|
-
Returns:
|
|
4985
|
+
Returns: number;
|
|
3992
4986
|
};
|
|
3993
|
-
|
|
3994
|
-
Args:
|
|
3995
|
-
"": unknown;
|
|
3996
|
-
};
|
|
4987
|
+
gettransactionid: {
|
|
4988
|
+
Args: never;
|
|
3997
4989
|
Returns: unknown;
|
|
3998
4990
|
};
|
|
3999
|
-
|
|
4991
|
+
has_permission: {
|
|
4000
4992
|
Args: {
|
|
4001
|
-
""
|
|
4993
|
+
p_action: Database["public"]["Enums"]["permission_key"];
|
|
4994
|
+
p_resource_id: string;
|
|
4995
|
+
p_resource_type: Database["public"]["Enums"]["resource_type"];
|
|
4996
|
+
p_user_id: string;
|
|
4002
4997
|
};
|
|
4003
|
-
Returns:
|
|
4998
|
+
Returns: boolean;
|
|
4004
4999
|
};
|
|
4005
|
-
|
|
5000
|
+
list_languages_for_region: {
|
|
4006
5001
|
Args: {
|
|
4007
|
-
|
|
5002
|
+
p_include_descendants?: boolean;
|
|
5003
|
+
p_region_id: string;
|
|
4008
5004
|
};
|
|
4009
|
-
Returns:
|
|
5005
|
+
Returns: {
|
|
5006
|
+
id: string;
|
|
5007
|
+
level: Database["public"]["Enums"]["language_entity_level"];
|
|
5008
|
+
name: string;
|
|
5009
|
+
}[];
|
|
4010
5010
|
};
|
|
4011
5011
|
longtransactionsenabled: {
|
|
4012
|
-
Args:
|
|
5012
|
+
Args: never;
|
|
4013
5013
|
Returns: boolean;
|
|
4014
5014
|
};
|
|
4015
|
-
|
|
4016
|
-
Args: {
|
|
4017
|
-
"": unknown;
|
|
4018
|
-
};
|
|
4019
|
-
Returns: unknown;
|
|
4020
|
-
};
|
|
4021
|
-
pgis_asflatgeobuf_finalfn: {
|
|
4022
|
-
Args: {
|
|
4023
|
-
"": unknown;
|
|
4024
|
-
};
|
|
4025
|
-
Returns: string;
|
|
4026
|
-
};
|
|
4027
|
-
pgis_asgeobuf_finalfn: {
|
|
5015
|
+
mojibake_fix_hard: {
|
|
4028
5016
|
Args: {
|
|
4029
|
-
|
|
4030
|
-
};
|
|
4031
|
-
Returns: string;
|
|
4032
|
-
};
|
|
4033
|
-
pgis_asmvt_finalfn: {
|
|
4034
|
-
Args: {
|
|
4035
|
-
"": unknown;
|
|
5017
|
+
value: string;
|
|
4036
5018
|
};
|
|
4037
5019
|
Returns: string;
|
|
4038
5020
|
};
|
|
4039
|
-
|
|
5021
|
+
mojibake_fix_multi: {
|
|
4040
5022
|
Args: {
|
|
4041
|
-
|
|
5023
|
+
value: string;
|
|
4042
5024
|
};
|
|
4043
5025
|
Returns: string;
|
|
4044
5026
|
};
|
|
4045
|
-
|
|
4046
|
-
Args: {
|
|
4047
|
-
"": unknown;
|
|
4048
|
-
};
|
|
4049
|
-
Returns: unknown[];
|
|
4050
|
-
};
|
|
4051
|
-
pgis_geometry_clusterwithin_finalfn: {
|
|
4052
|
-
Args: {
|
|
4053
|
-
"": unknown;
|
|
4054
|
-
};
|
|
4055
|
-
Returns: unknown[];
|
|
4056
|
-
};
|
|
4057
|
-
pgis_geometry_collect_finalfn: {
|
|
4058
|
-
Args: {
|
|
4059
|
-
"": unknown;
|
|
4060
|
-
};
|
|
4061
|
-
Returns: unknown;
|
|
4062
|
-
};
|
|
4063
|
-
pgis_geometry_makeline_finalfn: {
|
|
4064
|
-
Args: {
|
|
4065
|
-
"": unknown;
|
|
4066
|
-
};
|
|
4067
|
-
Returns: unknown;
|
|
4068
|
-
};
|
|
4069
|
-
pgis_geometry_polygonize_finalfn: {
|
|
4070
|
-
Args: {
|
|
4071
|
-
"": unknown;
|
|
4072
|
-
};
|
|
4073
|
-
Returns: unknown;
|
|
4074
|
-
};
|
|
4075
|
-
pgis_geometry_union_parallel_finalfn: {
|
|
4076
|
-
Args: {
|
|
4077
|
-
"": unknown;
|
|
4078
|
-
};
|
|
4079
|
-
Returns: unknown;
|
|
4080
|
-
};
|
|
4081
|
-
pgis_geometry_union_parallel_serialfn: {
|
|
5027
|
+
populate_geometry_columns: {
|
|
4082
5028
|
Args: {
|
|
4083
|
-
|
|
5029
|
+
use_typmod?: boolean;
|
|
4084
5030
|
};
|
|
4085
5031
|
Returns: string;
|
|
4086
|
-
}
|
|
4087
|
-
point: {
|
|
4088
|
-
Args: {
|
|
4089
|
-
"": unknown;
|
|
4090
|
-
};
|
|
4091
|
-
Returns: unknown;
|
|
4092
|
-
};
|
|
4093
|
-
polygon: {
|
|
4094
|
-
Args: {
|
|
4095
|
-
"": unknown;
|
|
4096
|
-
};
|
|
4097
|
-
Returns: unknown;
|
|
4098
|
-
};
|
|
4099
|
-
populate_geometry_columns: {
|
|
5032
|
+
} | {
|
|
4100
5033
|
Args: {
|
|
4101
5034
|
tbl_oid: unknown;
|
|
4102
5035
|
use_typmod?: boolean;
|
|
4103
|
-
} | {
|
|
4104
|
-
use_typmod?: boolean;
|
|
4105
5036
|
};
|
|
4106
5037
|
Returns: number;
|
|
4107
5038
|
};
|
|
4108
|
-
postgis_addbbox: {
|
|
4109
|
-
Args: {
|
|
4110
|
-
"": unknown;
|
|
4111
|
-
};
|
|
4112
|
-
Returns: unknown;
|
|
4113
|
-
};
|
|
4114
5039
|
postgis_constraint_dims: {
|
|
4115
5040
|
Args: {
|
|
4116
5041
|
geomcolumn: string;
|
|
@@ -4135,100 +5060,64 @@ export type Database = {
|
|
|
4135
5060
|
};
|
|
4136
5061
|
Returns: string;
|
|
4137
5062
|
};
|
|
4138
|
-
postgis_dropbbox: {
|
|
4139
|
-
Args: {
|
|
4140
|
-
"": unknown;
|
|
4141
|
-
};
|
|
4142
|
-
Returns: unknown;
|
|
4143
|
-
};
|
|
4144
5063
|
postgis_extensions_upgrade: {
|
|
4145
|
-
Args:
|
|
5064
|
+
Args: never;
|
|
4146
5065
|
Returns: string;
|
|
4147
5066
|
};
|
|
4148
5067
|
postgis_full_version: {
|
|
4149
|
-
Args:
|
|
5068
|
+
Args: never;
|
|
4150
5069
|
Returns: string;
|
|
4151
5070
|
};
|
|
4152
|
-
postgis_geos_noop: {
|
|
4153
|
-
Args: {
|
|
4154
|
-
"": unknown;
|
|
4155
|
-
};
|
|
4156
|
-
Returns: unknown;
|
|
4157
|
-
};
|
|
4158
5071
|
postgis_geos_version: {
|
|
4159
|
-
Args:
|
|
5072
|
+
Args: never;
|
|
4160
5073
|
Returns: string;
|
|
4161
5074
|
};
|
|
4162
|
-
postgis_getbbox: {
|
|
4163
|
-
Args: {
|
|
4164
|
-
"": unknown;
|
|
4165
|
-
};
|
|
4166
|
-
Returns: unknown;
|
|
4167
|
-
};
|
|
4168
|
-
postgis_hasbbox: {
|
|
4169
|
-
Args: {
|
|
4170
|
-
"": unknown;
|
|
4171
|
-
};
|
|
4172
|
-
Returns: boolean;
|
|
4173
|
-
};
|
|
4174
|
-
postgis_index_supportfn: {
|
|
4175
|
-
Args: {
|
|
4176
|
-
"": unknown;
|
|
4177
|
-
};
|
|
4178
|
-
Returns: unknown;
|
|
4179
|
-
};
|
|
4180
5075
|
postgis_lib_build_date: {
|
|
4181
|
-
Args:
|
|
5076
|
+
Args: never;
|
|
4182
5077
|
Returns: string;
|
|
4183
5078
|
};
|
|
4184
5079
|
postgis_lib_revision: {
|
|
4185
|
-
Args:
|
|
5080
|
+
Args: never;
|
|
4186
5081
|
Returns: string;
|
|
4187
5082
|
};
|
|
4188
5083
|
postgis_lib_version: {
|
|
4189
|
-
Args:
|
|
5084
|
+
Args: never;
|
|
4190
5085
|
Returns: string;
|
|
4191
5086
|
};
|
|
4192
5087
|
postgis_libjson_version: {
|
|
4193
|
-
Args:
|
|
5088
|
+
Args: never;
|
|
4194
5089
|
Returns: string;
|
|
4195
5090
|
};
|
|
4196
5091
|
postgis_liblwgeom_version: {
|
|
4197
|
-
Args:
|
|
5092
|
+
Args: never;
|
|
4198
5093
|
Returns: string;
|
|
4199
5094
|
};
|
|
4200
5095
|
postgis_libprotobuf_version: {
|
|
4201
|
-
Args:
|
|
5096
|
+
Args: never;
|
|
4202
5097
|
Returns: string;
|
|
4203
5098
|
};
|
|
4204
5099
|
postgis_libxml_version: {
|
|
4205
|
-
Args:
|
|
5100
|
+
Args: never;
|
|
4206
5101
|
Returns: string;
|
|
4207
5102
|
};
|
|
4208
|
-
postgis_noop: {
|
|
4209
|
-
Args: {
|
|
4210
|
-
"": unknown;
|
|
4211
|
-
};
|
|
4212
|
-
Returns: unknown;
|
|
4213
|
-
};
|
|
4214
5103
|
postgis_proj_version: {
|
|
4215
|
-
Args:
|
|
5104
|
+
Args: never;
|
|
4216
5105
|
Returns: string;
|
|
4217
5106
|
};
|
|
4218
5107
|
postgis_scripts_build_date: {
|
|
4219
|
-
Args:
|
|
5108
|
+
Args: never;
|
|
4220
5109
|
Returns: string;
|
|
4221
5110
|
};
|
|
4222
5111
|
postgis_scripts_installed: {
|
|
4223
|
-
Args:
|
|
5112
|
+
Args: never;
|
|
4224
5113
|
Returns: string;
|
|
4225
5114
|
};
|
|
4226
5115
|
postgis_scripts_released: {
|
|
4227
|
-
Args:
|
|
5116
|
+
Args: never;
|
|
4228
5117
|
Returns: string;
|
|
4229
5118
|
};
|
|
4230
5119
|
postgis_svn_version: {
|
|
4231
|
-
Args:
|
|
5120
|
+
Args: never;
|
|
4232
5121
|
Returns: string;
|
|
4233
5122
|
};
|
|
4234
5123
|
postgis_type_name: {
|
|
@@ -4239,30 +5128,12 @@ export type Database = {
|
|
|
4239
5128
|
};
|
|
4240
5129
|
Returns: string;
|
|
4241
5130
|
};
|
|
4242
|
-
postgis_typmod_dims: {
|
|
4243
|
-
Args: {
|
|
4244
|
-
"": number;
|
|
4245
|
-
};
|
|
4246
|
-
Returns: number;
|
|
4247
|
-
};
|
|
4248
|
-
postgis_typmod_srid: {
|
|
4249
|
-
Args: {
|
|
4250
|
-
"": number;
|
|
4251
|
-
};
|
|
4252
|
-
Returns: number;
|
|
4253
|
-
};
|
|
4254
|
-
postgis_typmod_type: {
|
|
4255
|
-
Args: {
|
|
4256
|
-
"": number;
|
|
4257
|
-
};
|
|
4258
|
-
Returns: string;
|
|
4259
|
-
};
|
|
4260
5131
|
postgis_version: {
|
|
4261
|
-
Args:
|
|
5132
|
+
Args: never;
|
|
4262
5133
|
Returns: string;
|
|
4263
5134
|
};
|
|
4264
5135
|
postgis_wagyu_version: {
|
|
4265
|
-
Args:
|
|
5136
|
+
Args: never;
|
|
4266
5137
|
Returns: string;
|
|
4267
5138
|
};
|
|
4268
5139
|
recommend_language_versions: {
|
|
@@ -4289,7 +5160,25 @@ export type Database = {
|
|
|
4289
5160
|
}[];
|
|
4290
5161
|
};
|
|
4291
5162
|
refresh_all_global_orders: {
|
|
4292
|
-
Args:
|
|
5163
|
+
Args: never;
|
|
5164
|
+
Returns: undefined;
|
|
5165
|
+
};
|
|
5166
|
+
refresh_progress_materialized_views_concurrently: {
|
|
5167
|
+
Args: never;
|
|
5168
|
+
Returns: undefined;
|
|
5169
|
+
};
|
|
5170
|
+
refresh_progress_materialized_views_full: {
|
|
5171
|
+
Args: never;
|
|
5172
|
+
Returns: undefined;
|
|
5173
|
+
};
|
|
5174
|
+
refresh_progress_materialized_views_safe: {
|
|
5175
|
+
Args: never;
|
|
5176
|
+
Returns: undefined;
|
|
5177
|
+
};
|
|
5178
|
+
refresh_region_spatial_cache: {
|
|
5179
|
+
Args: {
|
|
5180
|
+
p_region_id: string;
|
|
5181
|
+
};
|
|
4293
5182
|
Returns: undefined;
|
|
4294
5183
|
};
|
|
4295
5184
|
search_language_aliases: {
|
|
@@ -4354,14 +5243,8 @@ export type Database = {
|
|
|
4354
5243
|
similarity_threshold_used: number;
|
|
4355
5244
|
}[];
|
|
4356
5245
|
};
|
|
4357
|
-
set_limit: {
|
|
4358
|
-
Args: {
|
|
4359
|
-
"": number;
|
|
4360
|
-
};
|
|
4361
|
-
Returns: number;
|
|
4362
|
-
};
|
|
4363
5246
|
show_limit: {
|
|
4364
|
-
Args:
|
|
5247
|
+
Args: never;
|
|
4365
5248
|
Returns: number;
|
|
4366
5249
|
};
|
|
4367
5250
|
show_trgm: {
|
|
@@ -4370,18 +5253,6 @@ export type Database = {
|
|
|
4370
5253
|
};
|
|
4371
5254
|
Returns: string[];
|
|
4372
5255
|
};
|
|
4373
|
-
spheroid_in: {
|
|
4374
|
-
Args: {
|
|
4375
|
-
"": unknown;
|
|
4376
|
-
};
|
|
4377
|
-
Returns: unknown;
|
|
4378
|
-
};
|
|
4379
|
-
spheroid_out: {
|
|
4380
|
-
Args: {
|
|
4381
|
-
"": unknown;
|
|
4382
|
-
};
|
|
4383
|
-
Returns: unknown;
|
|
4384
|
-
};
|
|
4385
5256
|
st_3dclosestpoint: {
|
|
4386
5257
|
Args: {
|
|
4387
5258
|
geom1: unknown;
|
|
@@ -4403,12 +5274,6 @@ export type Database = {
|
|
|
4403
5274
|
};
|
|
4404
5275
|
Returns: boolean;
|
|
4405
5276
|
};
|
|
4406
|
-
st_3dlength: {
|
|
4407
|
-
Args: {
|
|
4408
|
-
"": unknown;
|
|
4409
|
-
};
|
|
4410
|
-
Returns: number;
|
|
4411
|
-
};
|
|
4412
5277
|
st_3dlongestline: {
|
|
4413
5278
|
Args: {
|
|
4414
5279
|
geom1: unknown;
|
|
@@ -4430,12 +5295,6 @@ export type Database = {
|
|
|
4430
5295
|
};
|
|
4431
5296
|
Returns: number;
|
|
4432
5297
|
};
|
|
4433
|
-
st_3dperimeter: {
|
|
4434
|
-
Args: {
|
|
4435
|
-
"": unknown;
|
|
4436
|
-
};
|
|
4437
|
-
Returns: number;
|
|
4438
|
-
};
|
|
4439
5298
|
st_3dshortestline: {
|
|
4440
5299
|
Args: {
|
|
4441
5300
|
geom1: unknown;
|
|
@@ -4454,7 +5313,10 @@ export type Database = {
|
|
|
4454
5313
|
Args: {
|
|
4455
5314
|
line1: unknown;
|
|
4456
5315
|
line2: unknown;
|
|
4457
|
-
}
|
|
5316
|
+
};
|
|
5317
|
+
Returns: number;
|
|
5318
|
+
} | {
|
|
5319
|
+
Args: {
|
|
4458
5320
|
pt1: unknown;
|
|
4459
5321
|
pt2: unknown;
|
|
4460
5322
|
pt3: unknown;
|
|
@@ -4464,29 +5326,16 @@ export type Database = {
|
|
|
4464
5326
|
};
|
|
4465
5327
|
st_area: {
|
|
4466
5328
|
Args: {
|
|
4467
|
-
"": string;
|
|
4468
|
-
} | {
|
|
4469
|
-
"": unknown;
|
|
4470
|
-
} | {
|
|
4471
5329
|
geog: unknown;
|
|
4472
5330
|
use_spheroid?: boolean;
|
|
4473
5331
|
};
|
|
4474
5332
|
Returns: number;
|
|
4475
|
-
}
|
|
4476
|
-
st_area2d: {
|
|
5333
|
+
} | {
|
|
4477
5334
|
Args: {
|
|
4478
|
-
"":
|
|
5335
|
+
"": string;
|
|
4479
5336
|
};
|
|
4480
5337
|
Returns: number;
|
|
4481
5338
|
};
|
|
4482
|
-
st_asbinary: {
|
|
4483
|
-
Args: {
|
|
4484
|
-
"": unknown;
|
|
4485
|
-
} | {
|
|
4486
|
-
"": unknown;
|
|
4487
|
-
};
|
|
4488
|
-
Returns: string;
|
|
4489
|
-
};
|
|
4490
5339
|
st_asencodedpolyline: {
|
|
4491
5340
|
Args: {
|
|
4492
5341
|
geom: unknown;
|
|
@@ -4494,90 +5343,101 @@ export type Database = {
|
|
|
4494
5343
|
};
|
|
4495
5344
|
Returns: string;
|
|
4496
5345
|
};
|
|
4497
|
-
st_asewkb: {
|
|
4498
|
-
Args: {
|
|
4499
|
-
"": unknown;
|
|
4500
|
-
};
|
|
4501
|
-
Returns: string;
|
|
4502
|
-
};
|
|
4503
5346
|
st_asewkt: {
|
|
4504
5347
|
Args: {
|
|
4505
5348
|
"": string;
|
|
4506
|
-
} | {
|
|
4507
|
-
"": unknown;
|
|
4508
|
-
} | {
|
|
4509
|
-
"": unknown;
|
|
4510
5349
|
};
|
|
4511
5350
|
Returns: string;
|
|
4512
5351
|
};
|
|
4513
5352
|
st_asgeojson: {
|
|
4514
5353
|
Args: {
|
|
4515
|
-
|
|
4516
|
-
|
|
5354
|
+
geom_column?: string;
|
|
5355
|
+
maxdecimaldigits?: number;
|
|
5356
|
+
pretty_bool?: boolean;
|
|
5357
|
+
r: Record<string, unknown>;
|
|
5358
|
+
};
|
|
5359
|
+
Returns: string;
|
|
5360
|
+
} | {
|
|
5361
|
+
Args: {
|
|
5362
|
+
geom: unknown;
|
|
5363
|
+
maxdecimaldigits?: number;
|
|
5364
|
+
options?: number;
|
|
5365
|
+
};
|
|
5366
|
+
Returns: string;
|
|
5367
|
+
} | {
|
|
5368
|
+
Args: {
|
|
4517
5369
|
geog: unknown;
|
|
4518
5370
|
maxdecimaldigits?: number;
|
|
4519
5371
|
options?: number;
|
|
4520
|
-
}
|
|
5372
|
+
};
|
|
5373
|
+
Returns: string;
|
|
5374
|
+
} | {
|
|
5375
|
+
Args: {
|
|
5376
|
+
"": string;
|
|
5377
|
+
};
|
|
5378
|
+
Returns: string;
|
|
5379
|
+
};
|
|
5380
|
+
st_asgml: {
|
|
5381
|
+
Args: {
|
|
4521
5382
|
geom: unknown;
|
|
4522
5383
|
maxdecimaldigits?: number;
|
|
4523
5384
|
options?: number;
|
|
4524
|
-
} | {
|
|
4525
|
-
geom_column?: string;
|
|
4526
|
-
maxdecimaldigits?: number;
|
|
4527
|
-
pretty_bool?: boolean;
|
|
4528
|
-
r: Record<string, unknown>;
|
|
4529
5385
|
};
|
|
4530
5386
|
Returns: string;
|
|
4531
|
-
}
|
|
4532
|
-
st_asgml: {
|
|
5387
|
+
} | {
|
|
4533
5388
|
Args: {
|
|
4534
|
-
|
|
4535
|
-
} | {
|
|
4536
|
-
geog: unknown;
|
|
5389
|
+
geom: unknown;
|
|
4537
5390
|
id?: string;
|
|
4538
5391
|
maxdecimaldigits?: number;
|
|
4539
5392
|
nprefix?: string;
|
|
4540
5393
|
options?: number;
|
|
4541
|
-
|
|
5394
|
+
version: number;
|
|
5395
|
+
};
|
|
5396
|
+
Returns: string;
|
|
5397
|
+
} | {
|
|
5398
|
+
Args: {
|
|
4542
5399
|
geog: unknown;
|
|
4543
5400
|
id?: string;
|
|
4544
5401
|
maxdecimaldigits?: number;
|
|
4545
5402
|
nprefix?: string;
|
|
4546
5403
|
options?: number;
|
|
4547
5404
|
version: number;
|
|
4548
|
-
}
|
|
4549
|
-
|
|
5405
|
+
};
|
|
5406
|
+
Returns: string;
|
|
5407
|
+
} | {
|
|
5408
|
+
Args: {
|
|
5409
|
+
geog: unknown;
|
|
4550
5410
|
id?: string;
|
|
4551
5411
|
maxdecimaldigits?: number;
|
|
4552
5412
|
nprefix?: string;
|
|
4553
5413
|
options?: number;
|
|
4554
|
-
version: number;
|
|
4555
|
-
} | {
|
|
4556
|
-
geom: unknown;
|
|
4557
|
-
maxdecimaldigits?: number;
|
|
4558
|
-
options?: number;
|
|
4559
5414
|
};
|
|
4560
5415
|
Returns: string;
|
|
4561
|
-
}
|
|
4562
|
-
st_ashexewkb: {
|
|
5416
|
+
} | {
|
|
4563
5417
|
Args: {
|
|
4564
|
-
"":
|
|
5418
|
+
"": string;
|
|
4565
5419
|
};
|
|
4566
5420
|
Returns: string;
|
|
4567
5421
|
};
|
|
4568
5422
|
st_askml: {
|
|
4569
5423
|
Args: {
|
|
4570
|
-
|
|
4571
|
-
} | {
|
|
4572
|
-
geog: unknown;
|
|
5424
|
+
geom: unknown;
|
|
4573
5425
|
maxdecimaldigits?: number;
|
|
4574
5426
|
nprefix?: string;
|
|
4575
|
-
}
|
|
4576
|
-
|
|
5427
|
+
};
|
|
5428
|
+
Returns: string;
|
|
5429
|
+
} | {
|
|
5430
|
+
Args: {
|
|
5431
|
+
geog: unknown;
|
|
4577
5432
|
maxdecimaldigits?: number;
|
|
4578
5433
|
nprefix?: string;
|
|
4579
5434
|
};
|
|
4580
5435
|
Returns: string;
|
|
5436
|
+
} | {
|
|
5437
|
+
Args: {
|
|
5438
|
+
"": string;
|
|
5439
|
+
};
|
|
5440
|
+
Returns: string;
|
|
4581
5441
|
};
|
|
4582
5442
|
st_aslatlontext: {
|
|
4583
5443
|
Args: {
|
|
@@ -4605,25 +5465,27 @@ export type Database = {
|
|
|
4605
5465
|
};
|
|
4606
5466
|
st_assvg: {
|
|
4607
5467
|
Args: {
|
|
4608
|
-
|
|
4609
|
-
} | {
|
|
4610
|
-
geog: unknown;
|
|
5468
|
+
geom: unknown;
|
|
4611
5469
|
maxdecimaldigits?: number;
|
|
4612
5470
|
rel?: number;
|
|
4613
|
-
}
|
|
4614
|
-
|
|
5471
|
+
};
|
|
5472
|
+
Returns: string;
|
|
5473
|
+
} | {
|
|
5474
|
+
Args: {
|
|
5475
|
+
geog: unknown;
|
|
4615
5476
|
maxdecimaldigits?: number;
|
|
4616
5477
|
rel?: number;
|
|
4617
5478
|
};
|
|
4618
5479
|
Returns: string;
|
|
5480
|
+
} | {
|
|
5481
|
+
Args: {
|
|
5482
|
+
"": string;
|
|
5483
|
+
};
|
|
5484
|
+
Returns: string;
|
|
4619
5485
|
};
|
|
4620
5486
|
st_astext: {
|
|
4621
5487
|
Args: {
|
|
4622
5488
|
"": string;
|
|
4623
|
-
} | {
|
|
4624
|
-
"": unknown;
|
|
4625
|
-
} | {
|
|
4626
|
-
"": unknown;
|
|
4627
5489
|
};
|
|
4628
5490
|
Returns: string;
|
|
4629
5491
|
};
|
|
@@ -4636,7 +5498,10 @@ export type Database = {
|
|
|
4636
5498
|
prec_z?: number;
|
|
4637
5499
|
with_boxes?: boolean;
|
|
4638
5500
|
with_sizes?: boolean;
|
|
4639
|
-
}
|
|
5501
|
+
};
|
|
5502
|
+
Returns: string;
|
|
5503
|
+
} | {
|
|
5504
|
+
Args: {
|
|
4640
5505
|
geom: unknown;
|
|
4641
5506
|
prec?: number;
|
|
4642
5507
|
prec_m?: number;
|
|
@@ -4656,19 +5521,16 @@ export type Database = {
|
|
|
4656
5521
|
};
|
|
4657
5522
|
st_azimuth: {
|
|
4658
5523
|
Args: {
|
|
4659
|
-
geog1: unknown;
|
|
4660
|
-
geog2: unknown;
|
|
4661
|
-
} | {
|
|
4662
5524
|
geom1: unknown;
|
|
4663
5525
|
geom2: unknown;
|
|
4664
5526
|
};
|
|
4665
5527
|
Returns: number;
|
|
4666
|
-
}
|
|
4667
|
-
st_boundary: {
|
|
5528
|
+
} | {
|
|
4668
5529
|
Args: {
|
|
4669
|
-
|
|
5530
|
+
geog1: unknown;
|
|
5531
|
+
geog2: unknown;
|
|
4670
5532
|
};
|
|
4671
|
-
Returns:
|
|
5533
|
+
Returns: number;
|
|
4672
5534
|
};
|
|
4673
5535
|
st_boundingdiagonal: {
|
|
4674
5536
|
Args: {
|
|
@@ -4682,30 +5544,19 @@ export type Database = {
|
|
|
4682
5544
|
geom: unknown;
|
|
4683
5545
|
options?: string;
|
|
4684
5546
|
radius: number;
|
|
4685
|
-
} | {
|
|
4686
|
-
geom: unknown;
|
|
4687
|
-
quadsegs: number;
|
|
4688
|
-
radius: number;
|
|
4689
5547
|
};
|
|
4690
5548
|
Returns: unknown;
|
|
4691
|
-
}
|
|
4692
|
-
st_buildarea: {
|
|
5549
|
+
} | {
|
|
4693
5550
|
Args: {
|
|
4694
|
-
|
|
5551
|
+
geom: unknown;
|
|
5552
|
+
quadsegs: number;
|
|
5553
|
+
radius: number;
|
|
4695
5554
|
};
|
|
4696
5555
|
Returns: unknown;
|
|
4697
5556
|
};
|
|
4698
5557
|
st_centroid: {
|
|
4699
5558
|
Args: {
|
|
4700
5559
|
"": string;
|
|
4701
|
-
} | {
|
|
4702
|
-
"": unknown;
|
|
4703
|
-
};
|
|
4704
|
-
Returns: unknown;
|
|
4705
|
-
};
|
|
4706
|
-
st_cleangeometry: {
|
|
4707
|
-
Args: {
|
|
4708
|
-
"": unknown;
|
|
4709
5560
|
};
|
|
4710
5561
|
Returns: unknown;
|
|
4711
5562
|
};
|
|
@@ -4723,33 +5574,13 @@ export type Database = {
|
|
|
4723
5574
|
};
|
|
4724
5575
|
Returns: unknown;
|
|
4725
5576
|
};
|
|
4726
|
-
st_clusterintersecting: {
|
|
4727
|
-
Args: {
|
|
4728
|
-
"": unknown[];
|
|
4729
|
-
};
|
|
4730
|
-
Returns: unknown[];
|
|
4731
|
-
};
|
|
4732
5577
|
st_collect: {
|
|
4733
5578
|
Args: {
|
|
4734
|
-
"": unknown[];
|
|
4735
|
-
} | {
|
|
4736
5579
|
geom1: unknown;
|
|
4737
5580
|
geom2: unknown;
|
|
4738
5581
|
};
|
|
4739
5582
|
Returns: unknown;
|
|
4740
5583
|
};
|
|
4741
|
-
st_collectionextract: {
|
|
4742
|
-
Args: {
|
|
4743
|
-
"": unknown;
|
|
4744
|
-
};
|
|
4745
|
-
Returns: unknown;
|
|
4746
|
-
};
|
|
4747
|
-
st_collectionhomogenize: {
|
|
4748
|
-
Args: {
|
|
4749
|
-
"": unknown;
|
|
4750
|
-
};
|
|
4751
|
-
Returns: unknown;
|
|
4752
|
-
};
|
|
4753
5584
|
st_concavehull: {
|
|
4754
5585
|
Args: {
|
|
4755
5586
|
param_allow_holes?: boolean;
|
|
@@ -4772,12 +5603,6 @@ export type Database = {
|
|
|
4772
5603
|
};
|
|
4773
5604
|
Returns: boolean;
|
|
4774
5605
|
};
|
|
4775
|
-
st_convexhull: {
|
|
4776
|
-
Args: {
|
|
4777
|
-
"": unknown;
|
|
4778
|
-
};
|
|
4779
|
-
Returns: unknown;
|
|
4780
|
-
};
|
|
4781
5606
|
st_coorddim: {
|
|
4782
5607
|
Args: {
|
|
4783
5608
|
geometry: unknown;
|
|
@@ -4788,7 +5613,10 @@ export type Database = {
|
|
|
4788
5613
|
Args: {
|
|
4789
5614
|
geog1: unknown;
|
|
4790
5615
|
geog2: unknown;
|
|
4791
|
-
}
|
|
5616
|
+
};
|
|
5617
|
+
Returns: boolean;
|
|
5618
|
+
} | {
|
|
5619
|
+
Args: {
|
|
4792
5620
|
geom1: unknown;
|
|
4793
5621
|
geom2: unknown;
|
|
4794
5622
|
};
|
|
@@ -4798,7 +5626,10 @@ export type Database = {
|
|
|
4798
5626
|
Args: {
|
|
4799
5627
|
geog1: unknown;
|
|
4800
5628
|
geog2: unknown;
|
|
4801
|
-
}
|
|
5629
|
+
};
|
|
5630
|
+
Returns: boolean;
|
|
5631
|
+
} | {
|
|
5632
|
+
Args: {
|
|
4802
5633
|
geom1: unknown;
|
|
4803
5634
|
geom2: unknown;
|
|
4804
5635
|
};
|
|
@@ -4836,12 +5667,6 @@ export type Database = {
|
|
|
4836
5667
|
};
|
|
4837
5668
|
Returns: unknown;
|
|
4838
5669
|
};
|
|
4839
|
-
st_dimension: {
|
|
4840
|
-
Args: {
|
|
4841
|
-
"": unknown;
|
|
4842
|
-
};
|
|
4843
|
-
Returns: number;
|
|
4844
|
-
};
|
|
4845
5670
|
st_disjoint: {
|
|
4846
5671
|
Args: {
|
|
4847
5672
|
geom1: unknown;
|
|
@@ -4850,13 +5675,16 @@ export type Database = {
|
|
|
4850
5675
|
Returns: boolean;
|
|
4851
5676
|
};
|
|
4852
5677
|
st_distance: {
|
|
5678
|
+
Args: {
|
|
5679
|
+
geom1: unknown;
|
|
5680
|
+
geom2: unknown;
|
|
5681
|
+
};
|
|
5682
|
+
Returns: number;
|
|
5683
|
+
} | {
|
|
4853
5684
|
Args: {
|
|
4854
5685
|
geog1: unknown;
|
|
4855
5686
|
geog2: unknown;
|
|
4856
5687
|
use_spheroid?: boolean;
|
|
4857
|
-
} | {
|
|
4858
|
-
geom1: unknown;
|
|
4859
|
-
geom2: unknown;
|
|
4860
5688
|
};
|
|
4861
5689
|
Returns: number;
|
|
4862
5690
|
};
|
|
@@ -4864,7 +5692,10 @@ export type Database = {
|
|
|
4864
5692
|
Args: {
|
|
4865
5693
|
geom1: unknown;
|
|
4866
5694
|
geom2: unknown;
|
|
4867
|
-
}
|
|
5695
|
+
};
|
|
5696
|
+
Returns: number;
|
|
5697
|
+
} | {
|
|
5698
|
+
Args: {
|
|
4868
5699
|
geom1: unknown;
|
|
4869
5700
|
geom2: unknown;
|
|
4870
5701
|
radius: number;
|
|
@@ -4878,30 +5709,6 @@ export type Database = {
|
|
|
4878
5709
|
};
|
|
4879
5710
|
Returns: number;
|
|
4880
5711
|
};
|
|
4881
|
-
st_dump: {
|
|
4882
|
-
Args: {
|
|
4883
|
-
"": unknown;
|
|
4884
|
-
};
|
|
4885
|
-
Returns: Database["public"]["CompositeTypes"]["geometry_dump"][];
|
|
4886
|
-
};
|
|
4887
|
-
st_dumppoints: {
|
|
4888
|
-
Args: {
|
|
4889
|
-
"": unknown;
|
|
4890
|
-
};
|
|
4891
|
-
Returns: Database["public"]["CompositeTypes"]["geometry_dump"][];
|
|
4892
|
-
};
|
|
4893
|
-
st_dumprings: {
|
|
4894
|
-
Args: {
|
|
4895
|
-
"": unknown;
|
|
4896
|
-
};
|
|
4897
|
-
Returns: Database["public"]["CompositeTypes"]["geometry_dump"][];
|
|
4898
|
-
};
|
|
4899
|
-
st_dumpsegments: {
|
|
4900
|
-
Args: {
|
|
4901
|
-
"": unknown;
|
|
4902
|
-
};
|
|
4903
|
-
Returns: Database["public"]["CompositeTypes"]["geometry_dump"][];
|
|
4904
|
-
};
|
|
4905
5712
|
st_dwithin: {
|
|
4906
5713
|
Args: {
|
|
4907
5714
|
geog1: unknown;
|
|
@@ -4911,18 +5718,6 @@ export type Database = {
|
|
|
4911
5718
|
};
|
|
4912
5719
|
Returns: boolean;
|
|
4913
5720
|
};
|
|
4914
|
-
st_endpoint: {
|
|
4915
|
-
Args: {
|
|
4916
|
-
"": unknown;
|
|
4917
|
-
};
|
|
4918
|
-
Returns: unknown;
|
|
4919
|
-
};
|
|
4920
|
-
st_envelope: {
|
|
4921
|
-
Args: {
|
|
4922
|
-
"": unknown;
|
|
4923
|
-
};
|
|
4924
|
-
Returns: unknown;
|
|
4925
|
-
};
|
|
4926
5721
|
st_equals: {
|
|
4927
5722
|
Args: {
|
|
4928
5723
|
geom1: unknown;
|
|
@@ -4932,15 +5727,6 @@ export type Database = {
|
|
|
4932
5727
|
};
|
|
4933
5728
|
st_expand: {
|
|
4934
5729
|
Args: {
|
|
4935
|
-
box: unknown;
|
|
4936
|
-
dx: number;
|
|
4937
|
-
dy: number;
|
|
4938
|
-
} | {
|
|
4939
|
-
box: unknown;
|
|
4940
|
-
dx: number;
|
|
4941
|
-
dy: number;
|
|
4942
|
-
dz?: number;
|
|
4943
|
-
} | {
|
|
4944
5730
|
dm?: number;
|
|
4945
5731
|
dx: number;
|
|
4946
5732
|
dy: number;
|
|
@@ -4948,22 +5734,19 @@ export type Database = {
|
|
|
4948
5734
|
geom: unknown;
|
|
4949
5735
|
};
|
|
4950
5736
|
Returns: unknown;
|
|
4951
|
-
}
|
|
4952
|
-
st_exteriorring: {
|
|
4953
|
-
Args: {
|
|
4954
|
-
"": unknown;
|
|
4955
|
-
};
|
|
4956
|
-
Returns: unknown;
|
|
4957
|
-
};
|
|
4958
|
-
st_flipcoordinates: {
|
|
5737
|
+
} | {
|
|
4959
5738
|
Args: {
|
|
4960
|
-
|
|
5739
|
+
box: unknown;
|
|
5740
|
+
dx: number;
|
|
5741
|
+
dy: number;
|
|
5742
|
+
dz?: number;
|
|
4961
5743
|
};
|
|
4962
5744
|
Returns: unknown;
|
|
4963
|
-
}
|
|
4964
|
-
st_force2d: {
|
|
5745
|
+
} | {
|
|
4965
5746
|
Args: {
|
|
4966
|
-
|
|
5747
|
+
box: unknown;
|
|
5748
|
+
dx: number;
|
|
5749
|
+
dy: number;
|
|
4967
5750
|
};
|
|
4968
5751
|
Returns: unknown;
|
|
4969
5752
|
};
|
|
@@ -4996,60 +5779,21 @@ export type Database = {
|
|
|
4996
5779
|
};
|
|
4997
5780
|
Returns: unknown;
|
|
4998
5781
|
};
|
|
4999
|
-
st_forcecollection: {
|
|
5000
|
-
Args: {
|
|
5001
|
-
"": unknown;
|
|
5002
|
-
};
|
|
5003
|
-
Returns: unknown;
|
|
5004
|
-
};
|
|
5005
|
-
st_forcecurve: {
|
|
5006
|
-
Args: {
|
|
5007
|
-
"": unknown;
|
|
5008
|
-
};
|
|
5009
|
-
Returns: unknown;
|
|
5010
|
-
};
|
|
5011
|
-
st_forcepolygonccw: {
|
|
5012
|
-
Args: {
|
|
5013
|
-
"": unknown;
|
|
5014
|
-
};
|
|
5015
|
-
Returns: unknown;
|
|
5016
|
-
};
|
|
5017
|
-
st_forcepolygoncw: {
|
|
5018
|
-
Args: {
|
|
5019
|
-
"": unknown;
|
|
5020
|
-
};
|
|
5021
|
-
Returns: unknown;
|
|
5022
|
-
};
|
|
5023
|
-
st_forcerhr: {
|
|
5024
|
-
Args: {
|
|
5025
|
-
"": unknown;
|
|
5026
|
-
};
|
|
5027
|
-
Returns: unknown;
|
|
5028
|
-
};
|
|
5029
|
-
st_forcesfs: {
|
|
5030
|
-
Args: {
|
|
5031
|
-
"": unknown;
|
|
5032
|
-
};
|
|
5033
|
-
Returns: unknown;
|
|
5034
|
-
};
|
|
5035
5782
|
st_generatepoints: {
|
|
5036
5783
|
Args: {
|
|
5037
5784
|
area: unknown;
|
|
5038
5785
|
npoints: number;
|
|
5039
|
-
} | {
|
|
5040
|
-
area: unknown;
|
|
5041
|
-
npoints: number;
|
|
5042
5786
|
seed: number;
|
|
5043
5787
|
};
|
|
5044
5788
|
Returns: unknown;
|
|
5045
|
-
}
|
|
5046
|
-
st_geogfromtext: {
|
|
5789
|
+
} | {
|
|
5047
5790
|
Args: {
|
|
5048
|
-
|
|
5791
|
+
area: unknown;
|
|
5792
|
+
npoints: number;
|
|
5049
5793
|
};
|
|
5050
5794
|
Returns: unknown;
|
|
5051
5795
|
};
|
|
5052
|
-
|
|
5796
|
+
st_geogfromtext: {
|
|
5053
5797
|
Args: {
|
|
5054
5798
|
"": string;
|
|
5055
5799
|
};
|
|
@@ -5065,7 +5809,10 @@ export type Database = {
|
|
|
5065
5809
|
Args: {
|
|
5066
5810
|
geog: unknown;
|
|
5067
5811
|
maxchars?: number;
|
|
5068
|
-
}
|
|
5812
|
+
};
|
|
5813
|
+
Returns: string;
|
|
5814
|
+
} | {
|
|
5815
|
+
Args: {
|
|
5069
5816
|
geom: unknown;
|
|
5070
5817
|
maxchars?: number;
|
|
5071
5818
|
};
|
|
@@ -5077,12 +5824,6 @@ export type Database = {
|
|
|
5077
5824
|
};
|
|
5078
5825
|
Returns: unknown;
|
|
5079
5826
|
};
|
|
5080
|
-
st_geomcollfromwkb: {
|
|
5081
|
-
Args: {
|
|
5082
|
-
"": string;
|
|
5083
|
-
};
|
|
5084
|
-
Returns: unknown;
|
|
5085
|
-
};
|
|
5086
5827
|
st_geometricmedian: {
|
|
5087
5828
|
Args: {
|
|
5088
5829
|
fail_if_not_converged?: boolean;
|
|
@@ -5098,18 +5839,6 @@ export type Database = {
|
|
|
5098
5839
|
};
|
|
5099
5840
|
Returns: unknown;
|
|
5100
5841
|
};
|
|
5101
|
-
st_geometrytype: {
|
|
5102
|
-
Args: {
|
|
5103
|
-
"": unknown;
|
|
5104
|
-
};
|
|
5105
|
-
Returns: string;
|
|
5106
|
-
};
|
|
5107
|
-
st_geomfromewkb: {
|
|
5108
|
-
Args: {
|
|
5109
|
-
"": string;
|
|
5110
|
-
};
|
|
5111
|
-
Returns: unknown;
|
|
5112
|
-
};
|
|
5113
5842
|
st_geomfromewkt: {
|
|
5114
5843
|
Args: {
|
|
5115
5844
|
"": string;
|
|
@@ -5119,9 +5848,15 @@ export type Database = {
|
|
|
5119
5848
|
st_geomfromgeojson: {
|
|
5120
5849
|
Args: {
|
|
5121
5850
|
"": Json;
|
|
5122
|
-
}
|
|
5851
|
+
};
|
|
5852
|
+
Returns: unknown;
|
|
5853
|
+
} | {
|
|
5854
|
+
Args: {
|
|
5123
5855
|
"": Json;
|
|
5124
|
-
}
|
|
5856
|
+
};
|
|
5857
|
+
Returns: unknown;
|
|
5858
|
+
} | {
|
|
5859
|
+
Args: {
|
|
5125
5860
|
"": string;
|
|
5126
5861
|
};
|
|
5127
5862
|
Returns: unknown;
|
|
@@ -5150,18 +5885,6 @@ export type Database = {
|
|
|
5150
5885
|
};
|
|
5151
5886
|
Returns: unknown;
|
|
5152
5887
|
};
|
|
5153
|
-
st_geomfromtwkb: {
|
|
5154
|
-
Args: {
|
|
5155
|
-
"": string;
|
|
5156
|
-
};
|
|
5157
|
-
Returns: unknown;
|
|
5158
|
-
};
|
|
5159
|
-
st_geomfromwkb: {
|
|
5160
|
-
Args: {
|
|
5161
|
-
"": string;
|
|
5162
|
-
};
|
|
5163
|
-
Returns: unknown;
|
|
5164
|
-
};
|
|
5165
5888
|
st_gmltosql: {
|
|
5166
5889
|
Args: {
|
|
5167
5890
|
"": string;
|
|
@@ -5186,87 +5909,42 @@ export type Database = {
|
|
|
5186
5909
|
cell_i: number;
|
|
5187
5910
|
cell_j: number;
|
|
5188
5911
|
origin?: unknown;
|
|
5189
|
-
size: number;
|
|
5190
|
-
};
|
|
5191
|
-
Returns: unknown;
|
|
5192
|
-
};
|
|
5193
|
-
st_hexagongrid: {
|
|
5194
|
-
Args: {
|
|
5195
|
-
bounds: unknown;
|
|
5196
|
-
size: number;
|
|
5197
|
-
};
|
|
5198
|
-
Returns: Record<string, unknown>[];
|
|
5199
|
-
};
|
|
5200
|
-
st_interpolatepoint: {
|
|
5201
|
-
Args: {
|
|
5202
|
-
line: unknown;
|
|
5203
|
-
point: unknown;
|
|
5204
|
-
};
|
|
5205
|
-
Returns: number;
|
|
5206
|
-
};
|
|
5207
|
-
st_intersection: {
|
|
5208
|
-
Args: {
|
|
5209
|
-
geom1: unknown;
|
|
5210
|
-
geom2: unknown;
|
|
5211
|
-
gridsize?: number;
|
|
5212
|
-
};
|
|
5213
|
-
Returns: unknown;
|
|
5214
|
-
};
|
|
5215
|
-
st_intersects: {
|
|
5216
|
-
Args: {
|
|
5217
|
-
geog1: unknown;
|
|
5218
|
-
geog2: unknown;
|
|
5219
|
-
} | {
|
|
5220
|
-
geom1: unknown;
|
|
5221
|
-
geom2: unknown;
|
|
5222
|
-
};
|
|
5223
|
-
Returns: boolean;
|
|
5224
|
-
};
|
|
5225
|
-
st_isclosed: {
|
|
5226
|
-
Args: {
|
|
5227
|
-
"": unknown;
|
|
5228
|
-
};
|
|
5229
|
-
Returns: boolean;
|
|
5230
|
-
};
|
|
5231
|
-
st_iscollection: {
|
|
5232
|
-
Args: {
|
|
5233
|
-
"": unknown;
|
|
5234
|
-
};
|
|
5235
|
-
Returns: boolean;
|
|
5236
|
-
};
|
|
5237
|
-
st_isempty: {
|
|
5238
|
-
Args: {
|
|
5239
|
-
"": unknown;
|
|
5912
|
+
size: number;
|
|
5240
5913
|
};
|
|
5241
|
-
Returns:
|
|
5914
|
+
Returns: unknown;
|
|
5242
5915
|
};
|
|
5243
|
-
|
|
5916
|
+
st_hexagongrid: {
|
|
5244
5917
|
Args: {
|
|
5245
|
-
|
|
5918
|
+
bounds: unknown;
|
|
5919
|
+
size: number;
|
|
5246
5920
|
};
|
|
5247
|
-
Returns:
|
|
5921
|
+
Returns: Record<string, unknown>[];
|
|
5248
5922
|
};
|
|
5249
|
-
|
|
5923
|
+
st_interpolatepoint: {
|
|
5250
5924
|
Args: {
|
|
5251
|
-
|
|
5925
|
+
line: unknown;
|
|
5926
|
+
point: unknown;
|
|
5252
5927
|
};
|
|
5253
|
-
Returns:
|
|
5928
|
+
Returns: number;
|
|
5254
5929
|
};
|
|
5255
|
-
|
|
5930
|
+
st_intersection: {
|
|
5256
5931
|
Args: {
|
|
5257
|
-
|
|
5932
|
+
geom1: unknown;
|
|
5933
|
+
geom2: unknown;
|
|
5934
|
+
gridsize?: number;
|
|
5258
5935
|
};
|
|
5259
|
-
Returns:
|
|
5936
|
+
Returns: unknown;
|
|
5260
5937
|
};
|
|
5261
|
-
|
|
5938
|
+
st_intersects: {
|
|
5262
5939
|
Args: {
|
|
5263
|
-
|
|
5940
|
+
geom1: unknown;
|
|
5941
|
+
geom2: unknown;
|
|
5264
5942
|
};
|
|
5265
5943
|
Returns: boolean;
|
|
5266
|
-
}
|
|
5267
|
-
st_isvalid: {
|
|
5944
|
+
} | {
|
|
5268
5945
|
Args: {
|
|
5269
|
-
|
|
5946
|
+
geog1: unknown;
|
|
5947
|
+
geog2: unknown;
|
|
5270
5948
|
};
|
|
5271
5949
|
Returns: boolean;
|
|
5272
5950
|
};
|
|
@@ -5276,33 +5954,22 @@ export type Database = {
|
|
|
5276
5954
|
geom: unknown;
|
|
5277
5955
|
};
|
|
5278
5956
|
Returns: Database["public"]["CompositeTypes"]["valid_detail"];
|
|
5279
|
-
|
|
5280
|
-
|
|
5281
|
-
|
|
5282
|
-
|
|
5283
|
-
|
|
5284
|
-
Returns: string;
|
|
5285
|
-
};
|
|
5286
|
-
st_isvalidtrajectory: {
|
|
5287
|
-
Args: {
|
|
5288
|
-
"": unknown;
|
|
5957
|
+
SetofOptions: {
|
|
5958
|
+
from: "*";
|
|
5959
|
+
to: "valid_detail";
|
|
5960
|
+
isOneToOne: true;
|
|
5961
|
+
isSetofReturn: false;
|
|
5289
5962
|
};
|
|
5290
|
-
Returns: boolean;
|
|
5291
5963
|
};
|
|
5292
5964
|
st_length: {
|
|
5293
5965
|
Args: {
|
|
5294
|
-
"": string;
|
|
5295
|
-
} | {
|
|
5296
|
-
"": unknown;
|
|
5297
|
-
} | {
|
|
5298
5966
|
geog: unknown;
|
|
5299
5967
|
use_spheroid?: boolean;
|
|
5300
5968
|
};
|
|
5301
5969
|
Returns: number;
|
|
5302
|
-
}
|
|
5303
|
-
st_length2d: {
|
|
5970
|
+
} | {
|
|
5304
5971
|
Args: {
|
|
5305
|
-
"":
|
|
5972
|
+
"": string;
|
|
5306
5973
|
};
|
|
5307
5974
|
Returns: number;
|
|
5308
5975
|
};
|
|
@@ -5327,24 +5994,12 @@ export type Database = {
|
|
|
5327
5994
|
};
|
|
5328
5995
|
Returns: unknown;
|
|
5329
5996
|
};
|
|
5330
|
-
st_linefrommultipoint: {
|
|
5331
|
-
Args: {
|
|
5332
|
-
"": unknown;
|
|
5333
|
-
};
|
|
5334
|
-
Returns: unknown;
|
|
5335
|
-
};
|
|
5336
5997
|
st_linefromtext: {
|
|
5337
5998
|
Args: {
|
|
5338
5999
|
"": string;
|
|
5339
6000
|
};
|
|
5340
6001
|
Returns: unknown;
|
|
5341
6002
|
};
|
|
5342
|
-
st_linefromwkb: {
|
|
5343
|
-
Args: {
|
|
5344
|
-
"": string;
|
|
5345
|
-
};
|
|
5346
|
-
Returns: unknown;
|
|
5347
|
-
};
|
|
5348
6003
|
st_linelocatepoint: {
|
|
5349
6004
|
Args: {
|
|
5350
6005
|
geom1: unknown;
|
|
@@ -5352,18 +6007,6 @@ export type Database = {
|
|
|
5352
6007
|
};
|
|
5353
6008
|
Returns: number;
|
|
5354
6009
|
};
|
|
5355
|
-
st_linemerge: {
|
|
5356
|
-
Args: {
|
|
5357
|
-
"": unknown;
|
|
5358
|
-
};
|
|
5359
|
-
Returns: unknown;
|
|
5360
|
-
};
|
|
5361
|
-
st_linestringfromwkb: {
|
|
5362
|
-
Args: {
|
|
5363
|
-
"": string;
|
|
5364
|
-
};
|
|
5365
|
-
Returns: unknown;
|
|
5366
|
-
};
|
|
5367
6010
|
st_linetocurve: {
|
|
5368
6011
|
Args: {
|
|
5369
6012
|
geometry: unknown;
|
|
@@ -5402,12 +6045,6 @@ export type Database = {
|
|
|
5402
6045
|
};
|
|
5403
6046
|
Returns: unknown;
|
|
5404
6047
|
};
|
|
5405
|
-
st_m: {
|
|
5406
|
-
Args: {
|
|
5407
|
-
"": unknown;
|
|
5408
|
-
};
|
|
5409
|
-
Returns: number;
|
|
5410
|
-
};
|
|
5411
6048
|
st_makebox2d: {
|
|
5412
6049
|
Args: {
|
|
5413
6050
|
geom1: unknown;
|
|
@@ -5417,23 +6054,13 @@ export type Database = {
|
|
|
5417
6054
|
};
|
|
5418
6055
|
st_makeline: {
|
|
5419
6056
|
Args: {
|
|
5420
|
-
"": unknown[];
|
|
5421
|
-
} | {
|
|
5422
6057
|
geom1: unknown;
|
|
5423
6058
|
geom2: unknown;
|
|
5424
6059
|
};
|
|
5425
6060
|
Returns: unknown;
|
|
5426
6061
|
};
|
|
5427
|
-
st_makepolygon: {
|
|
5428
|
-
Args: {
|
|
5429
|
-
"": unknown;
|
|
5430
|
-
};
|
|
5431
|
-
Returns: unknown;
|
|
5432
|
-
};
|
|
5433
6062
|
st_makevalid: {
|
|
5434
6063
|
Args: {
|
|
5435
|
-
"": unknown;
|
|
5436
|
-
} | {
|
|
5437
6064
|
geom: unknown;
|
|
5438
6065
|
params: string;
|
|
5439
6066
|
};
|
|
@@ -5446,18 +6073,6 @@ export type Database = {
|
|
|
5446
6073
|
};
|
|
5447
6074
|
Returns: number;
|
|
5448
6075
|
};
|
|
5449
|
-
st_maximuminscribedcircle: {
|
|
5450
|
-
Args: {
|
|
5451
|
-
"": unknown;
|
|
5452
|
-
};
|
|
5453
|
-
Returns: Record<string, unknown>;
|
|
5454
|
-
};
|
|
5455
|
-
st_memsize: {
|
|
5456
|
-
Args: {
|
|
5457
|
-
"": unknown;
|
|
5458
|
-
};
|
|
5459
|
-
Returns: number;
|
|
5460
|
-
};
|
|
5461
6076
|
st_minimumboundingcircle: {
|
|
5462
6077
|
Args: {
|
|
5463
6078
|
inputgeom: unknown;
|
|
@@ -5465,72 +6080,24 @@ export type Database = {
|
|
|
5465
6080
|
};
|
|
5466
6081
|
Returns: unknown;
|
|
5467
6082
|
};
|
|
5468
|
-
st_minimumboundingradius: {
|
|
5469
|
-
Args: {
|
|
5470
|
-
"": unknown;
|
|
5471
|
-
};
|
|
5472
|
-
Returns: Record<string, unknown>;
|
|
5473
|
-
};
|
|
5474
|
-
st_minimumclearance: {
|
|
5475
|
-
Args: {
|
|
5476
|
-
"": unknown;
|
|
5477
|
-
};
|
|
5478
|
-
Returns: number;
|
|
5479
|
-
};
|
|
5480
|
-
st_minimumclearanceline: {
|
|
5481
|
-
Args: {
|
|
5482
|
-
"": unknown;
|
|
5483
|
-
};
|
|
5484
|
-
Returns: unknown;
|
|
5485
|
-
};
|
|
5486
6083
|
st_mlinefromtext: {
|
|
5487
6084
|
Args: {
|
|
5488
6085
|
"": string;
|
|
5489
6086
|
};
|
|
5490
6087
|
Returns: unknown;
|
|
5491
6088
|
};
|
|
5492
|
-
st_mlinefromwkb: {
|
|
5493
|
-
Args: {
|
|
5494
|
-
"": string;
|
|
5495
|
-
};
|
|
5496
|
-
Returns: unknown;
|
|
5497
|
-
};
|
|
5498
6089
|
st_mpointfromtext: {
|
|
5499
6090
|
Args: {
|
|
5500
6091
|
"": string;
|
|
5501
6092
|
};
|
|
5502
6093
|
Returns: unknown;
|
|
5503
6094
|
};
|
|
5504
|
-
st_mpointfromwkb: {
|
|
5505
|
-
Args: {
|
|
5506
|
-
"": string;
|
|
5507
|
-
};
|
|
5508
|
-
Returns: unknown;
|
|
5509
|
-
};
|
|
5510
6095
|
st_mpolyfromtext: {
|
|
5511
6096
|
Args: {
|
|
5512
6097
|
"": string;
|
|
5513
6098
|
};
|
|
5514
6099
|
Returns: unknown;
|
|
5515
6100
|
};
|
|
5516
|
-
st_mpolyfromwkb: {
|
|
5517
|
-
Args: {
|
|
5518
|
-
"": string;
|
|
5519
|
-
};
|
|
5520
|
-
Returns: unknown;
|
|
5521
|
-
};
|
|
5522
|
-
st_multi: {
|
|
5523
|
-
Args: {
|
|
5524
|
-
"": unknown;
|
|
5525
|
-
};
|
|
5526
|
-
Returns: unknown;
|
|
5527
|
-
};
|
|
5528
|
-
st_multilinefromwkb: {
|
|
5529
|
-
Args: {
|
|
5530
|
-
"": string;
|
|
5531
|
-
};
|
|
5532
|
-
Returns: unknown;
|
|
5533
|
-
};
|
|
5534
6101
|
st_multilinestringfromtext: {
|
|
5535
6102
|
Args: {
|
|
5536
6103
|
"": string;
|
|
@@ -5543,30 +6110,12 @@ export type Database = {
|
|
|
5543
6110
|
};
|
|
5544
6111
|
Returns: unknown;
|
|
5545
6112
|
};
|
|
5546
|
-
st_multipointfromwkb: {
|
|
5547
|
-
Args: {
|
|
5548
|
-
"": string;
|
|
5549
|
-
};
|
|
5550
|
-
Returns: unknown;
|
|
5551
|
-
};
|
|
5552
|
-
st_multipolyfromwkb: {
|
|
5553
|
-
Args: {
|
|
5554
|
-
"": string;
|
|
5555
|
-
};
|
|
5556
|
-
Returns: unknown;
|
|
5557
|
-
};
|
|
5558
6113
|
st_multipolygonfromtext: {
|
|
5559
6114
|
Args: {
|
|
5560
6115
|
"": string;
|
|
5561
6116
|
};
|
|
5562
6117
|
Returns: unknown;
|
|
5563
6118
|
};
|
|
5564
|
-
st_ndims: {
|
|
5565
|
-
Args: {
|
|
5566
|
-
"": unknown;
|
|
5567
|
-
};
|
|
5568
|
-
Returns: number;
|
|
5569
|
-
};
|
|
5570
6119
|
st_node: {
|
|
5571
6120
|
Args: {
|
|
5572
6121
|
g: unknown;
|
|
@@ -5579,48 +6128,6 @@ export type Database = {
|
|
|
5579
6128
|
};
|
|
5580
6129
|
Returns: unknown;
|
|
5581
6130
|
};
|
|
5582
|
-
st_npoints: {
|
|
5583
|
-
Args: {
|
|
5584
|
-
"": unknown;
|
|
5585
|
-
};
|
|
5586
|
-
Returns: number;
|
|
5587
|
-
};
|
|
5588
|
-
st_nrings: {
|
|
5589
|
-
Args: {
|
|
5590
|
-
"": unknown;
|
|
5591
|
-
};
|
|
5592
|
-
Returns: number;
|
|
5593
|
-
};
|
|
5594
|
-
st_numgeometries: {
|
|
5595
|
-
Args: {
|
|
5596
|
-
"": unknown;
|
|
5597
|
-
};
|
|
5598
|
-
Returns: number;
|
|
5599
|
-
};
|
|
5600
|
-
st_numinteriorring: {
|
|
5601
|
-
Args: {
|
|
5602
|
-
"": unknown;
|
|
5603
|
-
};
|
|
5604
|
-
Returns: number;
|
|
5605
|
-
};
|
|
5606
|
-
st_numinteriorrings: {
|
|
5607
|
-
Args: {
|
|
5608
|
-
"": unknown;
|
|
5609
|
-
};
|
|
5610
|
-
Returns: number;
|
|
5611
|
-
};
|
|
5612
|
-
st_numpatches: {
|
|
5613
|
-
Args: {
|
|
5614
|
-
"": unknown;
|
|
5615
|
-
};
|
|
5616
|
-
Returns: number;
|
|
5617
|
-
};
|
|
5618
|
-
st_numpoints: {
|
|
5619
|
-
Args: {
|
|
5620
|
-
"": unknown;
|
|
5621
|
-
};
|
|
5622
|
-
Returns: number;
|
|
5623
|
-
};
|
|
5624
6131
|
st_offsetcurve: {
|
|
5625
6132
|
Args: {
|
|
5626
6133
|
distance: number;
|
|
@@ -5636,12 +6143,6 @@ export type Database = {
|
|
|
5636
6143
|
};
|
|
5637
6144
|
Returns: boolean;
|
|
5638
6145
|
};
|
|
5639
|
-
st_orientedenvelope: {
|
|
5640
|
-
Args: {
|
|
5641
|
-
"": unknown;
|
|
5642
|
-
};
|
|
5643
|
-
Returns: unknown;
|
|
5644
|
-
};
|
|
5645
6146
|
st_overlaps: {
|
|
5646
6147
|
Args: {
|
|
5647
6148
|
geom1: unknown;
|
|
@@ -5651,31 +6152,17 @@ export type Database = {
|
|
|
5651
6152
|
};
|
|
5652
6153
|
st_perimeter: {
|
|
5653
6154
|
Args: {
|
|
5654
|
-
"": unknown;
|
|
5655
|
-
} | {
|
|
5656
6155
|
geog: unknown;
|
|
5657
6156
|
use_spheroid?: boolean;
|
|
5658
6157
|
};
|
|
5659
6158
|
Returns: number;
|
|
5660
6159
|
};
|
|
5661
|
-
st_perimeter2d: {
|
|
5662
|
-
Args: {
|
|
5663
|
-
"": unknown;
|
|
5664
|
-
};
|
|
5665
|
-
Returns: number;
|
|
5666
|
-
};
|
|
5667
6160
|
st_pointfromtext: {
|
|
5668
6161
|
Args: {
|
|
5669
6162
|
"": string;
|
|
5670
6163
|
};
|
|
5671
6164
|
Returns: unknown;
|
|
5672
6165
|
};
|
|
5673
|
-
st_pointfromwkb: {
|
|
5674
|
-
Args: {
|
|
5675
|
-
"": string;
|
|
5676
|
-
};
|
|
5677
|
-
Returns: unknown;
|
|
5678
|
-
};
|
|
5679
6166
|
st_pointm: {
|
|
5680
6167
|
Args: {
|
|
5681
6168
|
mcoordinate: number;
|
|
@@ -5685,18 +6172,6 @@ export type Database = {
|
|
|
5685
6172
|
};
|
|
5686
6173
|
Returns: unknown;
|
|
5687
6174
|
};
|
|
5688
|
-
st_pointonsurface: {
|
|
5689
|
-
Args: {
|
|
5690
|
-
"": unknown;
|
|
5691
|
-
};
|
|
5692
|
-
Returns: unknown;
|
|
5693
|
-
};
|
|
5694
|
-
st_points: {
|
|
5695
|
-
Args: {
|
|
5696
|
-
"": unknown;
|
|
5697
|
-
};
|
|
5698
|
-
Returns: unknown;
|
|
5699
|
-
};
|
|
5700
6175
|
st_pointz: {
|
|
5701
6176
|
Args: {
|
|
5702
6177
|
srid?: number;
|
|
@@ -5722,30 +6197,12 @@ export type Database = {
|
|
|
5722
6197
|
};
|
|
5723
6198
|
Returns: unknown;
|
|
5724
6199
|
};
|
|
5725
|
-
st_polyfromwkb: {
|
|
5726
|
-
Args: {
|
|
5727
|
-
"": string;
|
|
5728
|
-
};
|
|
5729
|
-
Returns: unknown;
|
|
5730
|
-
};
|
|
5731
6200
|
st_polygonfromtext: {
|
|
5732
6201
|
Args: {
|
|
5733
6202
|
"": string;
|
|
5734
6203
|
};
|
|
5735
6204
|
Returns: unknown;
|
|
5736
6205
|
};
|
|
5737
|
-
st_polygonfromwkb: {
|
|
5738
|
-
Args: {
|
|
5739
|
-
"": string;
|
|
5740
|
-
};
|
|
5741
|
-
Returns: unknown;
|
|
5742
|
-
};
|
|
5743
|
-
st_polygonize: {
|
|
5744
|
-
Args: {
|
|
5745
|
-
"": unknown[];
|
|
5746
|
-
};
|
|
5747
|
-
Returns: unknown;
|
|
5748
|
-
};
|
|
5749
6206
|
st_project: {
|
|
5750
6207
|
Args: {
|
|
5751
6208
|
azimuth: number;
|
|
@@ -5785,12 +6242,6 @@ export type Database = {
|
|
|
5785
6242
|
};
|
|
5786
6243
|
Returns: unknown;
|
|
5787
6244
|
};
|
|
5788
|
-
st_reverse: {
|
|
5789
|
-
Args: {
|
|
5790
|
-
"": unknown;
|
|
5791
|
-
};
|
|
5792
|
-
Returns: unknown;
|
|
5793
|
-
};
|
|
5794
6245
|
st_segmentize: {
|
|
5795
6246
|
Args: {
|
|
5796
6247
|
geog: unknown;
|
|
@@ -5802,7 +6253,10 @@ export type Database = {
|
|
|
5802
6253
|
Args: {
|
|
5803
6254
|
geog: unknown;
|
|
5804
6255
|
srid: number;
|
|
5805
|
-
}
|
|
6256
|
+
};
|
|
6257
|
+
Returns: unknown;
|
|
6258
|
+
} | {
|
|
6259
|
+
Args: {
|
|
5806
6260
|
geom: unknown;
|
|
5807
6261
|
srid: number;
|
|
5808
6262
|
};
|
|
@@ -5815,12 +6269,6 @@ export type Database = {
|
|
|
5815
6269
|
};
|
|
5816
6270
|
Returns: unknown;
|
|
5817
6271
|
};
|
|
5818
|
-
st_shiftlongitude: {
|
|
5819
|
-
Args: {
|
|
5820
|
-
"": unknown;
|
|
5821
|
-
};
|
|
5822
|
-
Returns: unknown;
|
|
5823
|
-
};
|
|
5824
6272
|
st_shortestline: {
|
|
5825
6273
|
Args: {
|
|
5826
6274
|
geom1: unknown;
|
|
@@ -5861,17 +6309,14 @@ export type Database = {
|
|
|
5861
6309
|
};
|
|
5862
6310
|
st_srid: {
|
|
5863
6311
|
Args: {
|
|
5864
|
-
geog: unknown;
|
|
5865
|
-
} | {
|
|
5866
6312
|
geom: unknown;
|
|
5867
6313
|
};
|
|
5868
6314
|
Returns: number;
|
|
5869
|
-
}
|
|
5870
|
-
st_startpoint: {
|
|
6315
|
+
} | {
|
|
5871
6316
|
Args: {
|
|
5872
|
-
|
|
6317
|
+
geog: unknown;
|
|
5873
6318
|
};
|
|
5874
|
-
Returns:
|
|
6319
|
+
Returns: number;
|
|
5875
6320
|
};
|
|
5876
6321
|
st_subdivide: {
|
|
5877
6322
|
Args: {
|
|
@@ -5881,14 +6326,6 @@ export type Database = {
|
|
|
5881
6326
|
};
|
|
5882
6327
|
Returns: unknown[];
|
|
5883
6328
|
};
|
|
5884
|
-
st_summary: {
|
|
5885
|
-
Args: {
|
|
5886
|
-
"": unknown;
|
|
5887
|
-
} | {
|
|
5888
|
-
"": unknown;
|
|
5889
|
-
};
|
|
5890
|
-
Returns: string;
|
|
5891
|
-
};
|
|
5892
6329
|
st_swapordinates: {
|
|
5893
6330
|
Args: {
|
|
5894
6331
|
geom: unknown;
|
|
@@ -5930,14 +6367,20 @@ export type Database = {
|
|
|
5930
6367
|
};
|
|
5931
6368
|
st_transform: {
|
|
5932
6369
|
Args: {
|
|
5933
|
-
from_proj: string;
|
|
5934
6370
|
geom: unknown;
|
|
5935
6371
|
to_proj: string;
|
|
5936
|
-
}
|
|
6372
|
+
};
|
|
6373
|
+
Returns: unknown;
|
|
6374
|
+
} | {
|
|
6375
|
+
Args: {
|
|
5937
6376
|
from_proj: string;
|
|
5938
6377
|
geom: unknown;
|
|
5939
6378
|
to_srid: number;
|
|
5940
|
-
}
|
|
6379
|
+
};
|
|
6380
|
+
Returns: unknown;
|
|
6381
|
+
} | {
|
|
6382
|
+
Args: {
|
|
6383
|
+
from_proj: string;
|
|
5941
6384
|
geom: unknown;
|
|
5942
6385
|
to_proj: string;
|
|
5943
6386
|
};
|
|
@@ -5951,14 +6394,15 @@ export type Database = {
|
|
|
5951
6394
|
};
|
|
5952
6395
|
st_union: {
|
|
5953
6396
|
Args: {
|
|
5954
|
-
"": unknown[];
|
|
5955
|
-
} | {
|
|
5956
6397
|
geom1: unknown;
|
|
5957
6398
|
geom2: unknown;
|
|
5958
|
-
|
|
6399
|
+
gridsize: number;
|
|
6400
|
+
};
|
|
6401
|
+
Returns: unknown;
|
|
6402
|
+
} | {
|
|
6403
|
+
Args: {
|
|
5959
6404
|
geom1: unknown;
|
|
5960
6405
|
geom2: unknown;
|
|
5961
|
-
gridsize: number;
|
|
5962
6406
|
};
|
|
5963
6407
|
Returns: unknown;
|
|
5964
6408
|
};
|
|
@@ -6005,69 +6449,15 @@ export type Database = {
|
|
|
6005
6449
|
};
|
|
6006
6450
|
Returns: unknown;
|
|
6007
6451
|
};
|
|
6008
|
-
|
|
6009
|
-
Args: {
|
|
6010
|
-
"": unknown;
|
|
6011
|
-
};
|
|
6012
|
-
Returns: number;
|
|
6013
|
-
};
|
|
6014
|
-
st_xmax: {
|
|
6015
|
-
Args: {
|
|
6016
|
-
"": unknown;
|
|
6017
|
-
};
|
|
6018
|
-
Returns: number;
|
|
6019
|
-
};
|
|
6020
|
-
st_xmin: {
|
|
6021
|
-
Args: {
|
|
6022
|
-
"": unknown;
|
|
6023
|
-
};
|
|
6024
|
-
Returns: number;
|
|
6025
|
-
};
|
|
6026
|
-
st_y: {
|
|
6027
|
-
Args: {
|
|
6028
|
-
"": unknown;
|
|
6029
|
-
};
|
|
6030
|
-
Returns: number;
|
|
6031
|
-
};
|
|
6032
|
-
st_ymax: {
|
|
6033
|
-
Args: {
|
|
6034
|
-
"": unknown;
|
|
6035
|
-
};
|
|
6036
|
-
Returns: number;
|
|
6037
|
-
};
|
|
6038
|
-
st_ymin: {
|
|
6039
|
-
Args: {
|
|
6040
|
-
"": unknown;
|
|
6041
|
-
};
|
|
6042
|
-
Returns: number;
|
|
6043
|
-
};
|
|
6044
|
-
st_z: {
|
|
6045
|
-
Args: {
|
|
6046
|
-
"": unknown;
|
|
6047
|
-
};
|
|
6048
|
-
Returns: number;
|
|
6049
|
-
};
|
|
6050
|
-
st_zmax: {
|
|
6051
|
-
Args: {
|
|
6052
|
-
"": unknown;
|
|
6053
|
-
};
|
|
6054
|
-
Returns: number;
|
|
6055
|
-
};
|
|
6056
|
-
st_zmflag: {
|
|
6057
|
-
Args: {
|
|
6058
|
-
"": unknown;
|
|
6059
|
-
};
|
|
6060
|
-
Returns: number;
|
|
6061
|
-
};
|
|
6062
|
-
st_zmin: {
|
|
6452
|
+
try_fix_mojibake: {
|
|
6063
6453
|
Args: {
|
|
6064
|
-
|
|
6454
|
+
value: string;
|
|
6065
6455
|
};
|
|
6066
|
-
Returns:
|
|
6456
|
+
Returns: string;
|
|
6067
6457
|
};
|
|
6068
|
-
|
|
6458
|
+
try_fix_mojibake_v2: {
|
|
6069
6459
|
Args: {
|
|
6070
|
-
|
|
6460
|
+
value: string;
|
|
6071
6461
|
};
|
|
6072
6462
|
Returns: string;
|
|
6073
6463
|
};
|
|
@@ -6091,7 +6481,10 @@ export type Database = {
|
|
|
6091
6481
|
Args: {
|
|
6092
6482
|
end_verse_text_id: string;
|
|
6093
6483
|
start_verse_text_id: string;
|
|
6094
|
-
}
|
|
6484
|
+
};
|
|
6485
|
+
Returns: boolean;
|
|
6486
|
+
} | {
|
|
6487
|
+
Args: {
|
|
6095
6488
|
end_verse_uuid: string;
|
|
6096
6489
|
start_verse_uuid: string;
|
|
6097
6490
|
};
|
|
@@ -6099,37 +6492,46 @@ export type Database = {
|
|
|
6099
6492
|
};
|
|
6100
6493
|
};
|
|
6101
6494
|
Enums: {
|
|
6495
|
+
adoption_status: "draft" | "available" | "on_hold" | "funded" | "archived";
|
|
6102
6496
|
bookmark_type: "passage";
|
|
6497
|
+
budget_item_category: "meals" | "housing" | "transport" | "equipment";
|
|
6103
6498
|
change_type: "create" | "update" | "delete";
|
|
6104
6499
|
check_status: "pending" | "approved" | "rejected" | "requires_review";
|
|
6105
6500
|
connectivity_type: "wifi" | "cellular" | "offline" | "unknown";
|
|
6501
|
+
contribution_kind: "one_time" | "subscription" | "bank_transfer" | "adjustment" | "refund";
|
|
6106
6502
|
contribution_status: "approved" | "not_approved";
|
|
6107
6503
|
feedback_actioned: "pending" | "actioned" | "rejected";
|
|
6108
6504
|
feedback_type: "approved" | "change_required";
|
|
6505
|
+
funding_status: "unfunded" | "partially_funded" | "fully_funded";
|
|
6109
6506
|
language_entity_level: "family" | "language" | "dialect" | "mother_tongue";
|
|
6110
6507
|
location_source_type: "device" | "ip" | "unknown";
|
|
6111
6508
|
media_type: "audio" | "video";
|
|
6509
|
+
permission_key: "system.admin" | "team.read" | "team.write" | "team.delete" | "team.invite" | "team.manage_roles" | "project.read" | "project.write" | "project.delete" | "project.invite" | "project.manage_roles" | "base.read" | "base.write" | "base.delete" | "base.manage_roles" | "partner.read" | "partner.manage_roles" | "budget.read" | "budget.write" | "contribution.read" | "contribution.write";
|
|
6112
6510
|
platform_type: "ios" | "android" | "web" | "desktop";
|
|
6113
6511
|
playlist_item_type: "passage" | "custom_text";
|
|
6512
|
+
project_status: "precreated" | "active" | "completed" | "cancelled";
|
|
6114
6513
|
publish_status: "pending" | "published" | "archived";
|
|
6115
6514
|
region_level: "continent" | "world_region" | "country" | "state" | "province" | "district" | "town" | "village";
|
|
6515
|
+
resource_type: "global" | "team" | "project" | "base" | "partner";
|
|
6116
6516
|
segment_type: "source" | "target";
|
|
6117
6517
|
share_entity_type: "app" | "chapter" | "playlist" | "verse" | "passage";
|
|
6518
|
+
sponsorship_status: "interest" | "pledged" | "active" | "paused" | "cancelled" | "completed";
|
|
6118
6519
|
target_type: "chapter" | "book" | "sermon" | "passage" | "verse" | "podcast" | "film_segment" | "audio_segment";
|
|
6119
6520
|
testament: "old" | "new";
|
|
6120
6521
|
text_version_source: "official_translation" | "ai_transcription" | "user_submitted";
|
|
6121
6522
|
upload_status: "pending" | "uploading" | "completed" | "failed";
|
|
6122
6523
|
version_filter_type: "audio_only" | "text_only" | "both_required" | "either";
|
|
6524
|
+
wallet_tx_type: "deposit" | "withdrawal" | "adjustment";
|
|
6123
6525
|
};
|
|
6124
6526
|
CompositeTypes: {
|
|
6125
6527
|
geometry_dump: {
|
|
6126
6528
|
path: number[] | null;
|
|
6127
|
-
geom: unknown
|
|
6529
|
+
geom: unknown;
|
|
6128
6530
|
};
|
|
6129
6531
|
valid_detail: {
|
|
6130
6532
|
valid: boolean | null;
|
|
6131
6533
|
reason: string | null;
|
|
6132
|
-
location: unknown
|
|
6534
|
+
location: unknown;
|
|
6133
6535
|
};
|
|
6134
6536
|
};
|
|
6135
6537
|
};
|
|
@@ -6189,27 +6591,36 @@ export declare const Constants: {
|
|
|
6189
6591
|
};
|
|
6190
6592
|
readonly public: {
|
|
6191
6593
|
readonly Enums: {
|
|
6594
|
+
readonly adoption_status: readonly ["draft", "available", "on_hold", "funded", "archived"];
|
|
6192
6595
|
readonly bookmark_type: readonly ["passage"];
|
|
6596
|
+
readonly budget_item_category: readonly ["meals", "housing", "transport", "equipment"];
|
|
6193
6597
|
readonly change_type: readonly ["create", "update", "delete"];
|
|
6194
6598
|
readonly check_status: readonly ["pending", "approved", "rejected", "requires_review"];
|
|
6195
6599
|
readonly connectivity_type: readonly ["wifi", "cellular", "offline", "unknown"];
|
|
6600
|
+
readonly contribution_kind: readonly ["one_time", "subscription", "bank_transfer", "adjustment", "refund"];
|
|
6196
6601
|
readonly contribution_status: readonly ["approved", "not_approved"];
|
|
6197
6602
|
readonly feedback_actioned: readonly ["pending", "actioned", "rejected"];
|
|
6198
6603
|
readonly feedback_type: readonly ["approved", "change_required"];
|
|
6604
|
+
readonly funding_status: readonly ["unfunded", "partially_funded", "fully_funded"];
|
|
6199
6605
|
readonly language_entity_level: readonly ["family", "language", "dialect", "mother_tongue"];
|
|
6200
6606
|
readonly location_source_type: readonly ["device", "ip", "unknown"];
|
|
6201
6607
|
readonly media_type: readonly ["audio", "video"];
|
|
6608
|
+
readonly permission_key: readonly ["system.admin", "team.read", "team.write", "team.delete", "team.invite", "team.manage_roles", "project.read", "project.write", "project.delete", "project.invite", "project.manage_roles", "base.read", "base.write", "base.delete", "base.manage_roles", "partner.read", "partner.manage_roles", "budget.read", "budget.write", "contribution.read", "contribution.write"];
|
|
6202
6609
|
readonly platform_type: readonly ["ios", "android", "web", "desktop"];
|
|
6203
6610
|
readonly playlist_item_type: readonly ["passage", "custom_text"];
|
|
6611
|
+
readonly project_status: readonly ["precreated", "active", "completed", "cancelled"];
|
|
6204
6612
|
readonly publish_status: readonly ["pending", "published", "archived"];
|
|
6205
6613
|
readonly region_level: readonly ["continent", "world_region", "country", "state", "province", "district", "town", "village"];
|
|
6614
|
+
readonly resource_type: readonly ["global", "team", "project", "base", "partner"];
|
|
6206
6615
|
readonly segment_type: readonly ["source", "target"];
|
|
6207
6616
|
readonly share_entity_type: readonly ["app", "chapter", "playlist", "verse", "passage"];
|
|
6617
|
+
readonly sponsorship_status: readonly ["interest", "pledged", "active", "paused", "cancelled", "completed"];
|
|
6208
6618
|
readonly target_type: readonly ["chapter", "book", "sermon", "passage", "verse", "podcast", "film_segment", "audio_segment"];
|
|
6209
6619
|
readonly testament: readonly ["old", "new"];
|
|
6210
6620
|
readonly text_version_source: readonly ["official_translation", "ai_transcription", "user_submitted"];
|
|
6211
6621
|
readonly upload_status: readonly ["pending", "uploading", "completed", "failed"];
|
|
6212
6622
|
readonly version_filter_type: readonly ["audio_only", "text_only", "both_required", "either"];
|
|
6623
|
+
readonly wallet_tx_type: readonly ["deposit", "withdrawal", "adjustment"];
|
|
6213
6624
|
};
|
|
6214
6625
|
};
|
|
6215
6626
|
};
|