@capgo/cli 4.4.5 → 4.5.0
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/.vscode/settings.json +43 -2
- package/CHANGELOG.md +7 -0
- package/bun.lockb +0 -0
- package/dist/index.js +30780 -30057
- package/eslint.config.js +8 -1
- package/package.json +29 -37
- package/src/api/update.ts +1 -1
- package/src/bundle/upload.ts +4 -8
- package/src/channel/add.ts +3 -2
- package/src/channel/set.ts +1 -0
- package/src/types/supabase.types.ts +697 -324
- package/src/utils.ts +0 -18
- package/.eslintignore +0 -4
|
@@ -7,31 +7,6 @@ export type Json =
|
|
|
7
7
|
| Json[]
|
|
8
8
|
|
|
9
9
|
export interface Database {
|
|
10
|
-
graphql_public: {
|
|
11
|
-
Tables: {
|
|
12
|
-
[_ in never]: never
|
|
13
|
-
}
|
|
14
|
-
Views: {
|
|
15
|
-
[_ in never]: never
|
|
16
|
-
}
|
|
17
|
-
Functions: {
|
|
18
|
-
graphql: {
|
|
19
|
-
Args: {
|
|
20
|
-
operationName?: string
|
|
21
|
-
query?: string
|
|
22
|
-
variables?: Json
|
|
23
|
-
extensions?: Json
|
|
24
|
-
}
|
|
25
|
-
Returns: Json
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
Enums: {
|
|
29
|
-
[_ in never]: never
|
|
30
|
-
}
|
|
31
|
-
CompositeTypes: {
|
|
32
|
-
[_ in never]: never
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
10
|
public: {
|
|
36
11
|
Tables: {
|
|
37
12
|
apikeys: {
|
|
@@ -69,47 +44,71 @@ export interface Database {
|
|
|
69
44
|
},
|
|
70
45
|
]
|
|
71
46
|
}
|
|
72
|
-
|
|
47
|
+
app_stats: {
|
|
73
48
|
Row: {
|
|
74
49
|
app_id: string
|
|
75
50
|
bandwidth: number
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
51
|
+
channels: number
|
|
52
|
+
created_at: string | null
|
|
53
|
+
date_id: string
|
|
54
|
+
devices: number
|
|
55
|
+
devices_real: number
|
|
56
|
+
mlu: number
|
|
57
|
+
mlu_real: number
|
|
58
|
+
shared: number
|
|
59
|
+
updated_at: string | null
|
|
60
|
+
user_id: string
|
|
61
|
+
version_size: number
|
|
62
|
+
versions: number
|
|
85
63
|
}
|
|
86
64
|
Insert: {
|
|
87
65
|
app_id: string
|
|
88
66
|
bandwidth?: number
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
67
|
+
channels?: number
|
|
68
|
+
created_at?: string | null
|
|
69
|
+
date_id?: string
|
|
70
|
+
devices?: number
|
|
71
|
+
devices_real?: number
|
|
72
|
+
mlu?: number
|
|
73
|
+
mlu_real?: number
|
|
74
|
+
shared?: number
|
|
75
|
+
updated_at?: string | null
|
|
76
|
+
user_id: string
|
|
77
|
+
version_size?: number
|
|
78
|
+
versions?: number
|
|
98
79
|
}
|
|
99
80
|
Update: {
|
|
100
81
|
app_id?: string
|
|
101
82
|
bandwidth?: number
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
83
|
+
channels?: number
|
|
84
|
+
created_at?: string | null
|
|
85
|
+
date_id?: string
|
|
86
|
+
devices?: number
|
|
87
|
+
devices_real?: number
|
|
88
|
+
mlu?: number
|
|
89
|
+
mlu_real?: number
|
|
90
|
+
shared?: number
|
|
91
|
+
updated_at?: string | null
|
|
92
|
+
user_id?: string
|
|
93
|
+
version_size?: number
|
|
94
|
+
versions?: number
|
|
111
95
|
}
|
|
112
|
-
Relationships: [
|
|
96
|
+
Relationships: [
|
|
97
|
+
{
|
|
98
|
+
foreignKeyName: 'app_stats_app_id_fkey'
|
|
99
|
+
columns: ['app_id']
|
|
100
|
+
isOneToOne: false
|
|
101
|
+
referencedRelation: 'apps'
|
|
102
|
+
referencedColumns: ['app_id']
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
foreignKeyName: 'app_stats_user_id_fkey'
|
|
106
|
+
columns: ['user_id']
|
|
107
|
+
isOneToOne: false
|
|
108
|
+
referencedRelation: 'users'
|
|
109
|
+
referencedColumns: ['id']
|
|
110
|
+
},
|
|
111
|
+
]
|
|
113
112
|
}
|
|
114
113
|
app_versions: {
|
|
115
114
|
Row: {
|
|
@@ -252,12 +251,11 @@ export interface Database {
|
|
|
252
251
|
app_id: string
|
|
253
252
|
created_at: string | null
|
|
254
253
|
icon_url: string
|
|
255
|
-
id:
|
|
254
|
+
id: string | null
|
|
256
255
|
last_version: string | null
|
|
257
256
|
name: string | null
|
|
258
257
|
owner_org: string
|
|
259
258
|
retention: number
|
|
260
|
-
tmp_id: string | null
|
|
261
259
|
updated_at: string | null
|
|
262
260
|
user_id: string | null
|
|
263
261
|
}
|
|
@@ -265,12 +263,11 @@ export interface Database {
|
|
|
265
263
|
app_id: string
|
|
266
264
|
created_at?: string | null
|
|
267
265
|
icon_url: string
|
|
268
|
-
id?:
|
|
266
|
+
id?: string | null
|
|
269
267
|
last_version?: string | null
|
|
270
268
|
name?: string | null
|
|
271
269
|
owner_org: string
|
|
272
270
|
retention?: number
|
|
273
|
-
tmp_id?: string | null
|
|
274
271
|
updated_at?: string | null
|
|
275
272
|
user_id?: string | null
|
|
276
273
|
}
|
|
@@ -278,12 +275,11 @@ export interface Database {
|
|
|
278
275
|
app_id?: string
|
|
279
276
|
created_at?: string | null
|
|
280
277
|
icon_url?: string
|
|
281
|
-
id?:
|
|
278
|
+
id?: string | null
|
|
282
279
|
last_version?: string | null
|
|
283
280
|
name?: string | null
|
|
284
281
|
owner_org?: string
|
|
285
282
|
retention?: number
|
|
286
|
-
tmp_id?: string | null
|
|
287
283
|
updated_at?: string | null
|
|
288
284
|
user_id?: string | null
|
|
289
285
|
}
|
|
@@ -304,6 +300,30 @@ export interface Database {
|
|
|
304
300
|
},
|
|
305
301
|
]
|
|
306
302
|
}
|
|
303
|
+
bandwidth_usage: {
|
|
304
|
+
Row: {
|
|
305
|
+
app_id: string
|
|
306
|
+
device_id: string
|
|
307
|
+
file_size: number
|
|
308
|
+
id: number
|
|
309
|
+
timestamp: string
|
|
310
|
+
}
|
|
311
|
+
Insert: {
|
|
312
|
+
app_id: string
|
|
313
|
+
device_id: string
|
|
314
|
+
file_size: number
|
|
315
|
+
id?: number
|
|
316
|
+
timestamp?: string
|
|
317
|
+
}
|
|
318
|
+
Update: {
|
|
319
|
+
app_id?: string
|
|
320
|
+
device_id?: string
|
|
321
|
+
file_size?: number
|
|
322
|
+
id?: number
|
|
323
|
+
timestamp?: string
|
|
324
|
+
}
|
|
325
|
+
Relationships: []
|
|
326
|
+
}
|
|
307
327
|
channel_devices: {
|
|
308
328
|
Row: {
|
|
309
329
|
app_id: string
|
|
@@ -457,6 +477,222 @@ export interface Database {
|
|
|
457
477
|
},
|
|
458
478
|
]
|
|
459
479
|
}
|
|
480
|
+
clickhouse_app_usage_parm: {
|
|
481
|
+
Row: {
|
|
482
|
+
_app_list: string | null
|
|
483
|
+
_end_date: string | null
|
|
484
|
+
_start_date: string | null
|
|
485
|
+
app_id: string | null
|
|
486
|
+
bandwidth: number | null
|
|
487
|
+
date: string | null
|
|
488
|
+
fail: number | null
|
|
489
|
+
get: number | null
|
|
490
|
+
install: number | null
|
|
491
|
+
mau: number | null
|
|
492
|
+
storage_added: number | null
|
|
493
|
+
storage_deleted: number | null
|
|
494
|
+
uninstall: number | null
|
|
495
|
+
}
|
|
496
|
+
Insert: {
|
|
497
|
+
_app_list?: string | null
|
|
498
|
+
_end_date?: string | null
|
|
499
|
+
_start_date?: string | null
|
|
500
|
+
app_id?: string | null
|
|
501
|
+
bandwidth?: number | null
|
|
502
|
+
date?: string | null
|
|
503
|
+
fail?: number | null
|
|
504
|
+
get?: number | null
|
|
505
|
+
install?: number | null
|
|
506
|
+
mau?: number | null
|
|
507
|
+
storage_added?: number | null
|
|
508
|
+
storage_deleted?: number | null
|
|
509
|
+
uninstall?: number | null
|
|
510
|
+
}
|
|
511
|
+
Update: {
|
|
512
|
+
_app_list?: string | null
|
|
513
|
+
_end_date?: string | null
|
|
514
|
+
_start_date?: string | null
|
|
515
|
+
app_id?: string | null
|
|
516
|
+
bandwidth?: number | null
|
|
517
|
+
date?: string | null
|
|
518
|
+
fail?: number | null
|
|
519
|
+
get?: number | null
|
|
520
|
+
install?: number | null
|
|
521
|
+
mau?: number | null
|
|
522
|
+
storage_added?: number | null
|
|
523
|
+
storage_deleted?: number | null
|
|
524
|
+
uninstall?: number | null
|
|
525
|
+
}
|
|
526
|
+
Relationships: []
|
|
527
|
+
}
|
|
528
|
+
clickhouse_devices: {
|
|
529
|
+
Row: {
|
|
530
|
+
app_id: string | null
|
|
531
|
+
created_at: string | null
|
|
532
|
+
custom_id: string | null
|
|
533
|
+
device_id: string | null
|
|
534
|
+
is_emulator: boolean | null
|
|
535
|
+
is_prod: boolean | null
|
|
536
|
+
os_version: string | null
|
|
537
|
+
platform: string | null
|
|
538
|
+
plugin_version: string | null
|
|
539
|
+
updated_at: string | null
|
|
540
|
+
version: number | null
|
|
541
|
+
version_build: string | null
|
|
542
|
+
}
|
|
543
|
+
Insert: {
|
|
544
|
+
app_id?: string | null
|
|
545
|
+
created_at?: string | null
|
|
546
|
+
custom_id?: string | null
|
|
547
|
+
device_id?: string | null
|
|
548
|
+
is_emulator?: boolean | null
|
|
549
|
+
is_prod?: boolean | null
|
|
550
|
+
os_version?: string | null
|
|
551
|
+
platform?: string | null
|
|
552
|
+
plugin_version?: string | null
|
|
553
|
+
updated_at?: string | null
|
|
554
|
+
version?: number | null
|
|
555
|
+
version_build?: string | null
|
|
556
|
+
}
|
|
557
|
+
Update: {
|
|
558
|
+
app_id?: string | null
|
|
559
|
+
created_at?: string | null
|
|
560
|
+
custom_id?: string | null
|
|
561
|
+
device_id?: string | null
|
|
562
|
+
is_emulator?: boolean | null
|
|
563
|
+
is_prod?: boolean | null
|
|
564
|
+
os_version?: string | null
|
|
565
|
+
platform?: string | null
|
|
566
|
+
plugin_version?: string | null
|
|
567
|
+
updated_at?: string | null
|
|
568
|
+
version?: number | null
|
|
569
|
+
version_build?: string | null
|
|
570
|
+
}
|
|
571
|
+
Relationships: []
|
|
572
|
+
}
|
|
573
|
+
clickhouse_logs: {
|
|
574
|
+
Row: {
|
|
575
|
+
action: string | null
|
|
576
|
+
app_id: string | null
|
|
577
|
+
created_at: string | null
|
|
578
|
+
device_id: string | null
|
|
579
|
+
platform: string | null
|
|
580
|
+
version: number | null
|
|
581
|
+
version_build: string | null
|
|
582
|
+
}
|
|
583
|
+
Insert: {
|
|
584
|
+
action?: string | null
|
|
585
|
+
app_id?: string | null
|
|
586
|
+
created_at?: string | null
|
|
587
|
+
device_id?: string | null
|
|
588
|
+
platform?: string | null
|
|
589
|
+
version?: number | null
|
|
590
|
+
version_build?: string | null
|
|
591
|
+
}
|
|
592
|
+
Update: {
|
|
593
|
+
action?: string | null
|
|
594
|
+
app_id?: string | null
|
|
595
|
+
created_at?: string | null
|
|
596
|
+
device_id?: string | null
|
|
597
|
+
platform?: string | null
|
|
598
|
+
version?: number | null
|
|
599
|
+
version_build?: string | null
|
|
600
|
+
}
|
|
601
|
+
Relationships: []
|
|
602
|
+
}
|
|
603
|
+
daily_bandwidth: {
|
|
604
|
+
Row: {
|
|
605
|
+
app_id: string
|
|
606
|
+
bandwidth: number
|
|
607
|
+
date: string
|
|
608
|
+
id: number
|
|
609
|
+
}
|
|
610
|
+
Insert: {
|
|
611
|
+
app_id: string
|
|
612
|
+
bandwidth: number
|
|
613
|
+
date: string
|
|
614
|
+
id?: number
|
|
615
|
+
}
|
|
616
|
+
Update: {
|
|
617
|
+
app_id?: string
|
|
618
|
+
bandwidth?: number
|
|
619
|
+
date?: string
|
|
620
|
+
id?: number
|
|
621
|
+
}
|
|
622
|
+
Relationships: []
|
|
623
|
+
}
|
|
624
|
+
daily_mau: {
|
|
625
|
+
Row: {
|
|
626
|
+
app_id: string
|
|
627
|
+
date: string
|
|
628
|
+
id: number
|
|
629
|
+
mau: number
|
|
630
|
+
}
|
|
631
|
+
Insert: {
|
|
632
|
+
app_id: string
|
|
633
|
+
date: string
|
|
634
|
+
id?: number
|
|
635
|
+
mau: number
|
|
636
|
+
}
|
|
637
|
+
Update: {
|
|
638
|
+
app_id?: string
|
|
639
|
+
date?: string
|
|
640
|
+
id?: number
|
|
641
|
+
mau?: number
|
|
642
|
+
}
|
|
643
|
+
Relationships: []
|
|
644
|
+
}
|
|
645
|
+
daily_storage: {
|
|
646
|
+
Row: {
|
|
647
|
+
app_id: string
|
|
648
|
+
date: string
|
|
649
|
+
id: number
|
|
650
|
+
storage: number
|
|
651
|
+
}
|
|
652
|
+
Insert: {
|
|
653
|
+
app_id: string
|
|
654
|
+
date: string
|
|
655
|
+
id?: number
|
|
656
|
+
storage: number
|
|
657
|
+
}
|
|
658
|
+
Update: {
|
|
659
|
+
app_id?: string
|
|
660
|
+
date?: string
|
|
661
|
+
id?: number
|
|
662
|
+
storage?: number
|
|
663
|
+
}
|
|
664
|
+
Relationships: []
|
|
665
|
+
}
|
|
666
|
+
daily_version: {
|
|
667
|
+
Row: {
|
|
668
|
+
app_id: string
|
|
669
|
+
date: string
|
|
670
|
+
fail: number | null
|
|
671
|
+
get: number | null
|
|
672
|
+
install: number | null
|
|
673
|
+
uninstall: number | null
|
|
674
|
+
version_id: number
|
|
675
|
+
}
|
|
676
|
+
Insert: {
|
|
677
|
+
app_id: string
|
|
678
|
+
date: string
|
|
679
|
+
fail?: number | null
|
|
680
|
+
get?: number | null
|
|
681
|
+
install?: number | null
|
|
682
|
+
uninstall?: number | null
|
|
683
|
+
version_id: number
|
|
684
|
+
}
|
|
685
|
+
Update: {
|
|
686
|
+
app_id?: string
|
|
687
|
+
date?: string
|
|
688
|
+
fail?: number | null
|
|
689
|
+
get?: number | null
|
|
690
|
+
install?: number | null
|
|
691
|
+
uninstall?: number | null
|
|
692
|
+
version_id?: number
|
|
693
|
+
}
|
|
694
|
+
Relationships: []
|
|
695
|
+
}
|
|
460
696
|
deleted_account: {
|
|
461
697
|
Row: {
|
|
462
698
|
created_at: string | null
|
|
@@ -465,7 +701,7 @@ export interface Database {
|
|
|
465
701
|
}
|
|
466
702
|
Insert: {
|
|
467
703
|
created_at?: string | null
|
|
468
|
-
email
|
|
704
|
+
email?: string
|
|
469
705
|
id?: string
|
|
470
706
|
}
|
|
471
707
|
Update: {
|
|
@@ -475,6 +711,27 @@ export interface Database {
|
|
|
475
711
|
}
|
|
476
712
|
Relationships: []
|
|
477
713
|
}
|
|
714
|
+
device_usage: {
|
|
715
|
+
Row: {
|
|
716
|
+
app_id: string
|
|
717
|
+
device_id: string
|
|
718
|
+
id: number
|
|
719
|
+
timestamp: string
|
|
720
|
+
}
|
|
721
|
+
Insert: {
|
|
722
|
+
app_id: string
|
|
723
|
+
device_id: string
|
|
724
|
+
id?: number
|
|
725
|
+
timestamp?: string
|
|
726
|
+
}
|
|
727
|
+
Update: {
|
|
728
|
+
app_id?: string
|
|
729
|
+
device_id?: string
|
|
730
|
+
id?: number
|
|
731
|
+
timestamp?: string
|
|
732
|
+
}
|
|
733
|
+
Relationships: []
|
|
734
|
+
}
|
|
478
735
|
devices: {
|
|
479
736
|
Row: {
|
|
480
737
|
app_id: string
|
|
@@ -665,34 +922,37 @@ export interface Database {
|
|
|
665
922
|
notifications: {
|
|
666
923
|
Row: {
|
|
667
924
|
created_at: string | null
|
|
668
|
-
|
|
925
|
+
event: string
|
|
669
926
|
last_send_at: string
|
|
927
|
+
owner_org: string
|
|
670
928
|
total_send: number
|
|
929
|
+
uniq_id: string
|
|
671
930
|
updated_at: string | null
|
|
672
|
-
user_id: string
|
|
673
931
|
}
|
|
674
932
|
Insert: {
|
|
675
933
|
created_at?: string | null
|
|
676
|
-
|
|
934
|
+
event: string
|
|
677
935
|
last_send_at?: string
|
|
936
|
+
owner_org: string
|
|
678
937
|
total_send?: number
|
|
938
|
+
uniq_id: string
|
|
679
939
|
updated_at?: string | null
|
|
680
|
-
user_id: string
|
|
681
940
|
}
|
|
682
941
|
Update: {
|
|
683
942
|
created_at?: string | null
|
|
684
|
-
|
|
943
|
+
event?: string
|
|
685
944
|
last_send_at?: string
|
|
945
|
+
owner_org?: string
|
|
686
946
|
total_send?: number
|
|
947
|
+
uniq_id?: string
|
|
687
948
|
updated_at?: string | null
|
|
688
|
-
user_id?: string
|
|
689
949
|
}
|
|
690
950
|
Relationships: [
|
|
691
951
|
{
|
|
692
|
-
foreignKeyName: '
|
|
693
|
-
columns: ['
|
|
952
|
+
foreignKeyName: 'owner_org_id_fkey'
|
|
953
|
+
columns: ['owner_org']
|
|
694
954
|
isOneToOne: false
|
|
695
|
-
referencedRelation: '
|
|
955
|
+
referencedRelation: 'orgs'
|
|
696
956
|
referencedColumns: ['id']
|
|
697
957
|
},
|
|
698
958
|
]
|
|
@@ -809,11 +1069,8 @@ export interface Database {
|
|
|
809
1069
|
}
|
|
810
1070
|
plans: {
|
|
811
1071
|
Row: {
|
|
812
|
-
abtest: boolean
|
|
813
|
-
app: number
|
|
814
1072
|
bandwidth: number
|
|
815
1073
|
bandwidth_unit: number | null
|
|
816
|
-
channel: number
|
|
817
1074
|
created_at: string
|
|
818
1075
|
description: string
|
|
819
1076
|
id: string
|
|
@@ -828,21 +1085,14 @@ export interface Database {
|
|
|
828
1085
|
price_m_storage_id: string | null
|
|
829
1086
|
price_y: number
|
|
830
1087
|
price_y_id: string
|
|
831
|
-
progressive_deploy: boolean
|
|
832
|
-
shared: number
|
|
833
1088
|
storage: number
|
|
834
1089
|
storage_unit: number | null
|
|
835
1090
|
stripe_id: string
|
|
836
|
-
update: number
|
|
837
1091
|
updated_at: string
|
|
838
|
-
version: number
|
|
839
1092
|
}
|
|
840
1093
|
Insert: {
|
|
841
|
-
abtest?: boolean
|
|
842
|
-
app?: number
|
|
843
1094
|
bandwidth: number
|
|
844
1095
|
bandwidth_unit?: number | null
|
|
845
|
-
channel?: number
|
|
846
1096
|
created_at?: string
|
|
847
1097
|
description?: string
|
|
848
1098
|
id?: string
|
|
@@ -857,21 +1107,14 @@ export interface Database {
|
|
|
857
1107
|
price_m_storage_id?: string | null
|
|
858
1108
|
price_y?: number
|
|
859
1109
|
price_y_id: string
|
|
860
|
-
progressive_deploy?: boolean
|
|
861
|
-
shared?: number
|
|
862
1110
|
storage: number
|
|
863
1111
|
storage_unit?: number | null
|
|
864
1112
|
stripe_id?: string
|
|
865
|
-
update?: number
|
|
866
1113
|
updated_at?: string
|
|
867
|
-
version?: number
|
|
868
1114
|
}
|
|
869
1115
|
Update: {
|
|
870
|
-
abtest?: boolean
|
|
871
|
-
app?: number
|
|
872
1116
|
bandwidth?: number
|
|
873
1117
|
bandwidth_unit?: number | null
|
|
874
|
-
channel?: number
|
|
875
1118
|
created_at?: string
|
|
876
1119
|
description?: string
|
|
877
1120
|
id?: string
|
|
@@ -886,14 +1129,10 @@ export interface Database {
|
|
|
886
1129
|
price_m_storage_id?: string | null
|
|
887
1130
|
price_y?: number
|
|
888
1131
|
price_y_id?: string
|
|
889
|
-
progressive_deploy?: boolean
|
|
890
|
-
shared?: number
|
|
891
1132
|
storage?: number
|
|
892
1133
|
storage_unit?: number | null
|
|
893
1134
|
stripe_id?: string
|
|
894
|
-
update?: number
|
|
895
1135
|
updated_at?: string
|
|
896
|
-
version?: number
|
|
897
1136
|
}
|
|
898
1137
|
Relationships: []
|
|
899
1138
|
}
|
|
@@ -927,19 +1166,43 @@ export interface Database {
|
|
|
927
1166
|
}
|
|
928
1167
|
Relationships: []
|
|
929
1168
|
}
|
|
930
|
-
|
|
1169
|
+
storage_usage: {
|
|
931
1170
|
Row: {
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
1171
|
+
app_id: string
|
|
1172
|
+
device_id: string
|
|
1173
|
+
file_size: number
|
|
1174
|
+
id: number
|
|
1175
|
+
timestamp: string
|
|
1176
|
+
}
|
|
1177
|
+
Insert: {
|
|
1178
|
+
app_id: string
|
|
1179
|
+
device_id: string
|
|
1180
|
+
file_size: number
|
|
1181
|
+
id?: number
|
|
1182
|
+
timestamp?: string
|
|
1183
|
+
}
|
|
1184
|
+
Update: {
|
|
1185
|
+
app_id?: string
|
|
1186
|
+
device_id?: string
|
|
1187
|
+
file_size?: number
|
|
1188
|
+
id?: number
|
|
1189
|
+
timestamp?: string
|
|
1190
|
+
}
|
|
1191
|
+
Relationships: []
|
|
1192
|
+
}
|
|
1193
|
+
stripe_info: {
|
|
1194
|
+
Row: {
|
|
1195
|
+
created_at: string
|
|
1196
|
+
customer_id: string
|
|
1197
|
+
is_good_plan: boolean | null
|
|
1198
|
+
plan_usage: number | null
|
|
1199
|
+
price_id: string | null
|
|
1200
|
+
product_id: string
|
|
1201
|
+
status: Database['public']['Enums']['stripe_status'] | null
|
|
1202
|
+
subscription_anchor_end: string
|
|
1203
|
+
subscription_anchor_start: string
|
|
1204
|
+
subscription_id: string | null
|
|
1205
|
+
subscription_metered: Json
|
|
943
1206
|
trial_at: string
|
|
944
1207
|
updated_at: string
|
|
945
1208
|
}
|
|
@@ -1046,6 +1309,48 @@ export interface Database {
|
|
|
1046
1309
|
},
|
|
1047
1310
|
]
|
|
1048
1311
|
}
|
|
1312
|
+
version_meta: {
|
|
1313
|
+
Row: {
|
|
1314
|
+
app_id: string
|
|
1315
|
+
size: number
|
|
1316
|
+
timestamp: string
|
|
1317
|
+
version_id: number
|
|
1318
|
+
}
|
|
1319
|
+
Insert: {
|
|
1320
|
+
app_id: string
|
|
1321
|
+
size: number
|
|
1322
|
+
timestamp?: string
|
|
1323
|
+
version_id: number
|
|
1324
|
+
}
|
|
1325
|
+
Update: {
|
|
1326
|
+
app_id?: string
|
|
1327
|
+
size?: number
|
|
1328
|
+
timestamp?: string
|
|
1329
|
+
version_id?: number
|
|
1330
|
+
}
|
|
1331
|
+
Relationships: []
|
|
1332
|
+
}
|
|
1333
|
+
version_usage: {
|
|
1334
|
+
Row: {
|
|
1335
|
+
action: string
|
|
1336
|
+
app_id: string
|
|
1337
|
+
timestamp: string
|
|
1338
|
+
version_id: number
|
|
1339
|
+
}
|
|
1340
|
+
Insert: {
|
|
1341
|
+
action: string
|
|
1342
|
+
app_id: string
|
|
1343
|
+
timestamp?: string
|
|
1344
|
+
version_id: number
|
|
1345
|
+
}
|
|
1346
|
+
Update: {
|
|
1347
|
+
action?: string
|
|
1348
|
+
app_id?: string
|
|
1349
|
+
timestamp?: string
|
|
1350
|
+
version_id?: number
|
|
1351
|
+
}
|
|
1352
|
+
Relationships: []
|
|
1353
|
+
}
|
|
1049
1354
|
workers: {
|
|
1050
1355
|
Row: {
|
|
1051
1356
|
id: number
|
|
@@ -1072,6 +1377,14 @@ export interface Database {
|
|
|
1072
1377
|
}
|
|
1073
1378
|
Returns: string
|
|
1074
1379
|
}
|
|
1380
|
+
calculate_cycle_usage: {
|
|
1381
|
+
Args: Record<PropertyKey, never>
|
|
1382
|
+
Returns: undefined
|
|
1383
|
+
}
|
|
1384
|
+
calculate_daily_app_usage: {
|
|
1385
|
+
Args: Record<PropertyKey, never>
|
|
1386
|
+
Returns: undefined
|
|
1387
|
+
}
|
|
1075
1388
|
check_min_rights:
|
|
1076
1389
|
| {
|
|
1077
1390
|
Args: {
|
|
@@ -1137,6 +1450,10 @@ export interface Database {
|
|
|
1137
1450
|
Args: Record<PropertyKey, never>
|
|
1138
1451
|
Returns: number
|
|
1139
1452
|
}
|
|
1453
|
+
count_all_paying: {
|
|
1454
|
+
Args: Record<PropertyKey, never>
|
|
1455
|
+
Returns: number
|
|
1456
|
+
}
|
|
1140
1457
|
count_all_plans: {
|
|
1141
1458
|
Args: Record<PropertyKey, never>
|
|
1142
1459
|
Returns: {
|
|
@@ -1155,6 +1472,17 @@ export interface Database {
|
|
|
1155
1472
|
Args: Record<PropertyKey, never>
|
|
1156
1473
|
Returns: number
|
|
1157
1474
|
}
|
|
1475
|
+
create_partitions: {
|
|
1476
|
+
Args: {
|
|
1477
|
+
start_date: string
|
|
1478
|
+
num_years: number
|
|
1479
|
+
}
|
|
1480
|
+
Returns: undefined
|
|
1481
|
+
}
|
|
1482
|
+
delete_failed_jobs: {
|
|
1483
|
+
Args: Record<PropertyKey, never>
|
|
1484
|
+
Returns: undefined
|
|
1485
|
+
}
|
|
1158
1486
|
delete_user: {
|
|
1159
1487
|
Args: Record<PropertyKey, never>
|
|
1160
1488
|
Returns: undefined
|
|
@@ -1201,6 +1529,41 @@ export interface Database {
|
|
|
1201
1529
|
Args: Record<PropertyKey, never>
|
|
1202
1530
|
Returns: string
|
|
1203
1531
|
}
|
|
1532
|
+
get_app_metrics:
|
|
1533
|
+
| {
|
|
1534
|
+
Args: {
|
|
1535
|
+
org_id: string
|
|
1536
|
+
}
|
|
1537
|
+
Returns: {
|
|
1538
|
+
app_id: string
|
|
1539
|
+
date: string
|
|
1540
|
+
mau: number
|
|
1541
|
+
storage: number
|
|
1542
|
+
bandwidth: number
|
|
1543
|
+
get: number
|
|
1544
|
+
fail: number
|
|
1545
|
+
install: number
|
|
1546
|
+
uninstall: number
|
|
1547
|
+
}[]
|
|
1548
|
+
}
|
|
1549
|
+
| {
|
|
1550
|
+
Args: {
|
|
1551
|
+
org_id: string
|
|
1552
|
+
start_date: string
|
|
1553
|
+
end_date: string
|
|
1554
|
+
}
|
|
1555
|
+
Returns: {
|
|
1556
|
+
app_id: string
|
|
1557
|
+
date: string
|
|
1558
|
+
mau: number
|
|
1559
|
+
storage: number
|
|
1560
|
+
bandwidth: number
|
|
1561
|
+
get: number
|
|
1562
|
+
fail: number
|
|
1563
|
+
install: number
|
|
1564
|
+
uninstall: number
|
|
1565
|
+
}[]
|
|
1566
|
+
}
|
|
1204
1567
|
get_app_versions: {
|
|
1205
1568
|
Args: {
|
|
1206
1569
|
appid: string
|
|
@@ -1209,6 +1572,10 @@ export interface Database {
|
|
|
1209
1572
|
}
|
|
1210
1573
|
Returns: number
|
|
1211
1574
|
}
|
|
1575
|
+
get_cloudflare_function_url: {
|
|
1576
|
+
Args: Record<PropertyKey, never>
|
|
1577
|
+
Returns: string
|
|
1578
|
+
}
|
|
1212
1579
|
get_current_plan_max:
|
|
1213
1580
|
| {
|
|
1214
1581
|
Args: Record<PropertyKey, never>
|
|
@@ -1288,10 +1655,39 @@ export interface Database {
|
|
|
1288
1655
|
}
|
|
1289
1656
|
Returns: number
|
|
1290
1657
|
}
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1658
|
+
get_global_metrics:
|
|
1659
|
+
| {
|
|
1660
|
+
Args: {
|
|
1661
|
+
org_id: string
|
|
1662
|
+
}
|
|
1663
|
+
Returns: {
|
|
1664
|
+
date: string
|
|
1665
|
+
mau: number
|
|
1666
|
+
storage: number
|
|
1667
|
+
bandwidth: number
|
|
1668
|
+
get: number
|
|
1669
|
+
fail: number
|
|
1670
|
+
install: number
|
|
1671
|
+
uninstall: number
|
|
1672
|
+
}[]
|
|
1673
|
+
}
|
|
1674
|
+
| {
|
|
1675
|
+
Args: {
|
|
1676
|
+
org_id: string
|
|
1677
|
+
start_date: string
|
|
1678
|
+
end_date: string
|
|
1679
|
+
}
|
|
1680
|
+
Returns: {
|
|
1681
|
+
date: string
|
|
1682
|
+
mau: number
|
|
1683
|
+
storage: number
|
|
1684
|
+
bandwidth: number
|
|
1685
|
+
get: number
|
|
1686
|
+
fail: number
|
|
1687
|
+
install: number
|
|
1688
|
+
uninstall: number
|
|
1689
|
+
}[]
|
|
1690
|
+
}
|
|
1295
1691
|
get_identity:
|
|
1296
1692
|
| {
|
|
1297
1693
|
Args: Record<PropertyKey, never>
|
|
@@ -1309,13 +1705,25 @@ export interface Database {
|
|
|
1309
1705
|
}
|
|
1310
1706
|
Returns: string
|
|
1311
1707
|
}
|
|
1708
|
+
get_infos: {
|
|
1709
|
+
Args: {
|
|
1710
|
+
appid: string
|
|
1711
|
+
deviceid: string
|
|
1712
|
+
versionname: string
|
|
1713
|
+
}
|
|
1714
|
+
Returns: {
|
|
1715
|
+
current_version_id: number
|
|
1716
|
+
versiondata: Json
|
|
1717
|
+
channel: Json
|
|
1718
|
+
}[]
|
|
1719
|
+
}
|
|
1312
1720
|
get_max_plan:
|
|
1313
1721
|
| {
|
|
1314
1722
|
Args: Record<PropertyKey, never>
|
|
1315
1723
|
Returns: {
|
|
1316
1724
|
mau: number
|
|
1317
|
-
storage: number
|
|
1318
1725
|
bandwidth: number
|
|
1726
|
+
storage: number
|
|
1319
1727
|
}[]
|
|
1320
1728
|
}
|
|
1321
1729
|
| {
|
|
@@ -1335,10 +1743,14 @@ export interface Database {
|
|
|
1335
1743
|
}
|
|
1336
1744
|
| {
|
|
1337
1745
|
Args: {
|
|
1338
|
-
|
|
1746
|
+
orgid: string
|
|
1339
1747
|
}
|
|
1340
1748
|
Returns: Database['public']['CompositeTypes']['stats_table']
|
|
1341
1749
|
}
|
|
1750
|
+
get_netlify_function_url: {
|
|
1751
|
+
Args: Record<PropertyKey, never>
|
|
1752
|
+
Returns: string
|
|
1753
|
+
}
|
|
1342
1754
|
get_org_members: {
|
|
1343
1755
|
Args: {
|
|
1344
1756
|
guild_id: string
|
|
@@ -1358,18 +1770,6 @@ export interface Database {
|
|
|
1358
1770
|
}
|
|
1359
1771
|
Returns: string
|
|
1360
1772
|
}
|
|
1361
|
-
get_orgs_v2: {
|
|
1362
|
-
Args: {
|
|
1363
|
-
userid: string
|
|
1364
|
-
}
|
|
1365
|
-
Returns: {
|
|
1366
|
-
gid: string
|
|
1367
|
-
created_by: string
|
|
1368
|
-
logo: string
|
|
1369
|
-
name: string
|
|
1370
|
-
role: string
|
|
1371
|
-
}[]
|
|
1372
|
-
}
|
|
1373
1773
|
get_orgs_v3: {
|
|
1374
1774
|
Args: {
|
|
1375
1775
|
userid: string
|
|
@@ -1462,16 +1862,36 @@ export interface Database {
|
|
|
1462
1862
|
management_email: string
|
|
1463
1863
|
}[]
|
|
1464
1864
|
}
|
|
1465
|
-
get_plan_usage_percent:
|
|
1865
|
+
get_plan_usage_percent: {
|
|
1866
|
+
Args: {
|
|
1867
|
+
userid: string
|
|
1868
|
+
}
|
|
1869
|
+
Returns: number
|
|
1870
|
+
}
|
|
1871
|
+
get_plan_usage_percent_detailed:
|
|
1466
1872
|
| {
|
|
1467
|
-
Args:
|
|
1468
|
-
|
|
1873
|
+
Args: {
|
|
1874
|
+
orgid: string
|
|
1875
|
+
}
|
|
1876
|
+
Returns: {
|
|
1877
|
+
total_percent: number
|
|
1878
|
+
mau_percent: number
|
|
1879
|
+
bandwidth_percent: number
|
|
1880
|
+
storage_percent: number
|
|
1881
|
+
}[]
|
|
1469
1882
|
}
|
|
1470
1883
|
| {
|
|
1471
1884
|
Args: {
|
|
1472
|
-
|
|
1885
|
+
orgid: string
|
|
1886
|
+
cycle_start: string
|
|
1887
|
+
cycle_end: string
|
|
1473
1888
|
}
|
|
1474
|
-
Returns:
|
|
1889
|
+
Returns: {
|
|
1890
|
+
total_percent: number
|
|
1891
|
+
mau_percent: number
|
|
1892
|
+
bandwidth_percent: number
|
|
1893
|
+
storage_percent: number
|
|
1894
|
+
}[]
|
|
1475
1895
|
}
|
|
1476
1896
|
get_plan_usage_percent_org: {
|
|
1477
1897
|
Args: {
|
|
@@ -1500,6 +1920,37 @@ export interface Database {
|
|
|
1500
1920
|
}
|
|
1501
1921
|
Returns: number
|
|
1502
1922
|
}
|
|
1923
|
+
get_total_metrics:
|
|
1924
|
+
| {
|
|
1925
|
+
Args: {
|
|
1926
|
+
org_id: string
|
|
1927
|
+
}
|
|
1928
|
+
Returns: {
|
|
1929
|
+
mau: number
|
|
1930
|
+
storage: number
|
|
1931
|
+
bandwidth: number
|
|
1932
|
+
get: number
|
|
1933
|
+
fail: number
|
|
1934
|
+
install: number
|
|
1935
|
+
uninstall: number
|
|
1936
|
+
}[]
|
|
1937
|
+
}
|
|
1938
|
+
| {
|
|
1939
|
+
Args: {
|
|
1940
|
+
org_id: string
|
|
1941
|
+
start_date: string
|
|
1942
|
+
end_date: string
|
|
1943
|
+
}
|
|
1944
|
+
Returns: {
|
|
1945
|
+
mau: number
|
|
1946
|
+
storage: number
|
|
1947
|
+
bandwidth: number
|
|
1948
|
+
get: number
|
|
1949
|
+
fail: number
|
|
1950
|
+
install: number
|
|
1951
|
+
uninstall: number
|
|
1952
|
+
}[]
|
|
1953
|
+
}
|
|
1503
1954
|
get_total_stats_v5: {
|
|
1504
1955
|
Args: {
|
|
1505
1956
|
userid: string
|
|
@@ -1525,12 +1976,25 @@ export interface Database {
|
|
|
1525
1976
|
Args: Record<PropertyKey, never>
|
|
1526
1977
|
Returns: number
|
|
1527
1978
|
}
|
|
1979
|
+
| {
|
|
1980
|
+
Args: {
|
|
1981
|
+
appid: string
|
|
1982
|
+
}
|
|
1983
|
+
Returns: number
|
|
1984
|
+
}
|
|
1528
1985
|
| {
|
|
1529
1986
|
Args: {
|
|
1530
1987
|
userid: string
|
|
1531
1988
|
}
|
|
1532
1989
|
Returns: number
|
|
1533
1990
|
}
|
|
1991
|
+
| {
|
|
1992
|
+
Args: {
|
|
1993
|
+
userid: string
|
|
1994
|
+
appid: string
|
|
1995
|
+
}
|
|
1996
|
+
Returns: number
|
|
1997
|
+
}
|
|
1534
1998
|
get_total_storage_size_org: {
|
|
1535
1999
|
Args: {
|
|
1536
2000
|
org_id: string
|
|
@@ -1744,23 +2208,18 @@ export interface Database {
|
|
|
1744
2208
|
}
|
|
1745
2209
|
Returns: boolean
|
|
1746
2210
|
}
|
|
1747
|
-
is_free_usage:
|
|
1748
|
-
| {
|
|
1749
|
-
Args: Record<PropertyKey, never>
|
|
1750
|
-
Returns: boolean
|
|
1751
|
-
}
|
|
1752
|
-
| {
|
|
1753
|
-
Args: {
|
|
1754
|
-
userid: string
|
|
1755
|
-
}
|
|
1756
|
-
Returns: boolean
|
|
1757
|
-
}
|
|
1758
2211
|
is_good_plan_v5: {
|
|
1759
2212
|
Args: {
|
|
1760
2213
|
userid: string
|
|
1761
2214
|
}
|
|
1762
2215
|
Returns: boolean
|
|
1763
2216
|
}
|
|
2217
|
+
is_good_plan_v5_org: {
|
|
2218
|
+
Args: {
|
|
2219
|
+
orgid: string
|
|
2220
|
+
}
|
|
2221
|
+
Returns: boolean
|
|
2222
|
+
}
|
|
1764
2223
|
is_member_of_org: {
|
|
1765
2224
|
Args: {
|
|
1766
2225
|
user_id: string
|
|
@@ -1785,6 +2244,12 @@ export interface Database {
|
|
|
1785
2244
|
}
|
|
1786
2245
|
Returns: boolean
|
|
1787
2246
|
}
|
|
2247
|
+
is_onboarded_org: {
|
|
2248
|
+
Args: {
|
|
2249
|
+
orgid: string
|
|
2250
|
+
}
|
|
2251
|
+
Returns: boolean
|
|
2252
|
+
}
|
|
1788
2253
|
is_onboarding_needed:
|
|
1789
2254
|
| {
|
|
1790
2255
|
Args: Record<PropertyKey, never>
|
|
@@ -1858,41 +2323,125 @@ export interface Database {
|
|
|
1858
2323
|
Args: Record<PropertyKey, never>
|
|
1859
2324
|
Returns: string
|
|
1860
2325
|
}
|
|
2326
|
+
post_replication_sql:
|
|
2327
|
+
| {
|
|
2328
|
+
Args: {
|
|
2329
|
+
sql_query: string
|
|
2330
|
+
}
|
|
2331
|
+
Returns: undefined
|
|
2332
|
+
}
|
|
2333
|
+
| {
|
|
2334
|
+
Args: {
|
|
2335
|
+
sql_query: string
|
|
2336
|
+
params: string[]
|
|
2337
|
+
}
|
|
2338
|
+
Returns: undefined
|
|
2339
|
+
}
|
|
2340
|
+
process_cron_stats_jobs: {
|
|
2341
|
+
Args: Record<PropertyKey, never>
|
|
2342
|
+
Returns: undefined
|
|
2343
|
+
}
|
|
1861
2344
|
process_current_jobs_if_unlocked: {
|
|
1862
2345
|
Args: Record<PropertyKey, never>
|
|
1863
2346
|
Returns: number[]
|
|
1864
2347
|
}
|
|
2348
|
+
process_free_trial_expired: {
|
|
2349
|
+
Args: Record<PropertyKey, never>
|
|
2350
|
+
Returns: undefined
|
|
2351
|
+
}
|
|
1865
2352
|
process_requested_jobs: {
|
|
1866
2353
|
Args: Record<PropertyKey, never>
|
|
1867
2354
|
Returns: undefined
|
|
1868
2355
|
}
|
|
1869
|
-
|
|
2356
|
+
process_subscribed_orgs: {
|
|
2357
|
+
Args: Record<PropertyKey, never>
|
|
2358
|
+
Returns: undefined
|
|
2359
|
+
}
|
|
2360
|
+
read_bandwidth_usage: {
|
|
1870
2361
|
Args: {
|
|
1871
|
-
|
|
1872
|
-
|
|
2362
|
+
p_app_id: string
|
|
2363
|
+
p_period_start: string
|
|
2364
|
+
p_period_end: string
|
|
1873
2365
|
}
|
|
1874
|
-
Returns:
|
|
2366
|
+
Returns: {
|
|
2367
|
+
date: string
|
|
2368
|
+
bandwidth: number
|
|
2369
|
+
app_id: string
|
|
2370
|
+
}[]
|
|
2371
|
+
}
|
|
2372
|
+
read_device_usage: {
|
|
2373
|
+
Args: {
|
|
2374
|
+
p_app_id: string
|
|
2375
|
+
p_period_start: string
|
|
2376
|
+
p_period_end: string
|
|
2377
|
+
}
|
|
2378
|
+
Returns: {
|
|
2379
|
+
date: string
|
|
2380
|
+
mau: number
|
|
2381
|
+
app_id: string
|
|
2382
|
+
}[]
|
|
2383
|
+
}
|
|
2384
|
+
read_storage_usage: {
|
|
2385
|
+
Args: {
|
|
2386
|
+
p_app_id: string
|
|
2387
|
+
p_period_start: string
|
|
2388
|
+
p_period_end: string
|
|
2389
|
+
}
|
|
2390
|
+
Returns: {
|
|
2391
|
+
app_id: string
|
|
2392
|
+
date: string
|
|
2393
|
+
storage: number
|
|
2394
|
+
}[]
|
|
2395
|
+
}
|
|
2396
|
+
read_version_usage: {
|
|
2397
|
+
Args: {
|
|
2398
|
+
p_app_id: string
|
|
2399
|
+
p_period_start: string
|
|
2400
|
+
p_period_end: string
|
|
2401
|
+
}
|
|
2402
|
+
Returns: {
|
|
2403
|
+
app_id: string
|
|
2404
|
+
version_id: number
|
|
2405
|
+
date: string
|
|
2406
|
+
get: number
|
|
2407
|
+
fail: number
|
|
2408
|
+
install: number
|
|
2409
|
+
uninstall: number
|
|
2410
|
+
}[]
|
|
1875
2411
|
}
|
|
1876
2412
|
reset_and_seed_data: {
|
|
1877
2413
|
Args: Record<PropertyKey, never>
|
|
1878
2414
|
Returns: undefined
|
|
1879
2415
|
}
|
|
1880
|
-
|
|
2416
|
+
reset_and_seed_stats_data: {
|
|
1881
2417
|
Args: Record<PropertyKey, never>
|
|
1882
2418
|
Returns: undefined
|
|
1883
2419
|
}
|
|
1884
|
-
|
|
2420
|
+
retry_failed_jobs: {
|
|
1885
2421
|
Args: Record<PropertyKey, never>
|
|
1886
2422
|
Returns: undefined
|
|
1887
2423
|
}
|
|
2424
|
+
update_app_usage:
|
|
2425
|
+
| {
|
|
2426
|
+
Args: Record<PropertyKey, never>
|
|
2427
|
+
Returns: undefined
|
|
2428
|
+
}
|
|
2429
|
+
| {
|
|
2430
|
+
Args: {
|
|
2431
|
+
minutes_interval: number
|
|
2432
|
+
}
|
|
2433
|
+
Returns: undefined
|
|
2434
|
+
}
|
|
1888
2435
|
verify_mfa: {
|
|
1889
2436
|
Args: Record<PropertyKey, never>
|
|
1890
2437
|
Returns: boolean
|
|
1891
2438
|
}
|
|
1892
2439
|
}
|
|
1893
2440
|
Enums: {
|
|
1894
|
-
|
|
2441
|
+
app_mode: 'prod' | 'dev' | 'livereload'
|
|
2442
|
+
disable_update: 'major' | 'minor' | 'patch' | 'version_number' | 'none'
|
|
1895
2443
|
key_mode: 'read' | 'write' | 'all' | 'upload'
|
|
2444
|
+
pay_as_you_go_type: 'base' | 'units'
|
|
1896
2445
|
platform_os: 'ios' | 'android'
|
|
1897
2446
|
queue_job_status: 'inserted' | 'requested' | 'failed'
|
|
1898
2447
|
stripe_status:
|
|
@@ -1902,7 +2451,7 @@ export interface Database {
|
|
|
1902
2451
|
| 'failed'
|
|
1903
2452
|
| 'deleted'
|
|
1904
2453
|
| 'canceled'
|
|
1905
|
-
usage_mode: '
|
|
2454
|
+
usage_mode: '5min' | 'day' | 'month' | 'cycle' | 'last_saved'
|
|
1906
2455
|
user_min_right:
|
|
1907
2456
|
| 'invite_read'
|
|
1908
2457
|
| 'invite_upload'
|
|
@@ -1917,6 +2466,9 @@ export interface Database {
|
|
|
1917
2466
|
user_role: 'read' | 'upload' | 'write' | 'admin'
|
|
1918
2467
|
}
|
|
1919
2468
|
CompositeTypes: {
|
|
2469
|
+
match_plan: {
|
|
2470
|
+
name: string | null
|
|
2471
|
+
}
|
|
1920
2472
|
orgs_table: {
|
|
1921
2473
|
id: string | null
|
|
1922
2474
|
created_by: string | null
|
|
@@ -1939,185 +2491,6 @@ export interface Database {
|
|
|
1939
2491
|
}
|
|
1940
2492
|
}
|
|
1941
2493
|
}
|
|
1942
|
-
storage: {
|
|
1943
|
-
Tables: {
|
|
1944
|
-
buckets: {
|
|
1945
|
-
Row: {
|
|
1946
|
-
allowed_mime_types: string[] | null
|
|
1947
|
-
avif_autodetection: boolean | null
|
|
1948
|
-
created_at: string | null
|
|
1949
|
-
file_size_limit: number | null
|
|
1950
|
-
id: string
|
|
1951
|
-
name: string
|
|
1952
|
-
owner: string | null
|
|
1953
|
-
owner_id: string | null
|
|
1954
|
-
public: boolean | null
|
|
1955
|
-
updated_at: string | null
|
|
1956
|
-
}
|
|
1957
|
-
Insert: {
|
|
1958
|
-
allowed_mime_types?: string[] | null
|
|
1959
|
-
avif_autodetection?: boolean | null
|
|
1960
|
-
created_at?: string | null
|
|
1961
|
-
file_size_limit?: number | null
|
|
1962
|
-
id: string
|
|
1963
|
-
name: string
|
|
1964
|
-
owner?: string | null
|
|
1965
|
-
owner_id?: string | null
|
|
1966
|
-
public?: boolean | null
|
|
1967
|
-
updated_at?: string | null
|
|
1968
|
-
}
|
|
1969
|
-
Update: {
|
|
1970
|
-
allowed_mime_types?: string[] | null
|
|
1971
|
-
avif_autodetection?: boolean | null
|
|
1972
|
-
created_at?: string | null
|
|
1973
|
-
file_size_limit?: number | null
|
|
1974
|
-
id?: string
|
|
1975
|
-
name?: string
|
|
1976
|
-
owner?: string | null
|
|
1977
|
-
owner_id?: string | null
|
|
1978
|
-
public?: boolean | null
|
|
1979
|
-
updated_at?: string | null
|
|
1980
|
-
}
|
|
1981
|
-
Relationships: []
|
|
1982
|
-
}
|
|
1983
|
-
migrations: {
|
|
1984
|
-
Row: {
|
|
1985
|
-
executed_at: string | null
|
|
1986
|
-
hash: string
|
|
1987
|
-
id: number
|
|
1988
|
-
name: string
|
|
1989
|
-
}
|
|
1990
|
-
Insert: {
|
|
1991
|
-
executed_at?: string | null
|
|
1992
|
-
hash: string
|
|
1993
|
-
id: number
|
|
1994
|
-
name: string
|
|
1995
|
-
}
|
|
1996
|
-
Update: {
|
|
1997
|
-
executed_at?: string | null
|
|
1998
|
-
hash?: string
|
|
1999
|
-
id?: number
|
|
2000
|
-
name?: string
|
|
2001
|
-
}
|
|
2002
|
-
Relationships: []
|
|
2003
|
-
}
|
|
2004
|
-
objects: {
|
|
2005
|
-
Row: {
|
|
2006
|
-
bucket_id: string | null
|
|
2007
|
-
created_at: string | null
|
|
2008
|
-
id: string
|
|
2009
|
-
last_accessed_at: string | null
|
|
2010
|
-
metadata: Json | null
|
|
2011
|
-
name: string | null
|
|
2012
|
-
owner: string | null
|
|
2013
|
-
owner_id: string | null
|
|
2014
|
-
path_tokens: string[] | null
|
|
2015
|
-
updated_at: string | null
|
|
2016
|
-
version: string | null
|
|
2017
|
-
}
|
|
2018
|
-
Insert: {
|
|
2019
|
-
bucket_id?: string | null
|
|
2020
|
-
created_at?: string | null
|
|
2021
|
-
id?: string
|
|
2022
|
-
last_accessed_at?: string | null
|
|
2023
|
-
metadata?: Json | null
|
|
2024
|
-
name?: string | null
|
|
2025
|
-
owner?: string | null
|
|
2026
|
-
owner_id?: string | null
|
|
2027
|
-
path_tokens?: string[] | null
|
|
2028
|
-
updated_at?: string | null
|
|
2029
|
-
version?: string | null
|
|
2030
|
-
}
|
|
2031
|
-
Update: {
|
|
2032
|
-
bucket_id?: string | null
|
|
2033
|
-
created_at?: string | null
|
|
2034
|
-
id?: string
|
|
2035
|
-
last_accessed_at?: string | null
|
|
2036
|
-
metadata?: Json | null
|
|
2037
|
-
name?: string | null
|
|
2038
|
-
owner?: string | null
|
|
2039
|
-
owner_id?: string | null
|
|
2040
|
-
path_tokens?: string[] | null
|
|
2041
|
-
updated_at?: string | null
|
|
2042
|
-
version?: string | null
|
|
2043
|
-
}
|
|
2044
|
-
Relationships: [
|
|
2045
|
-
{
|
|
2046
|
-
foreignKeyName: 'objects_bucketId_fkey'
|
|
2047
|
-
columns: ['bucket_id']
|
|
2048
|
-
isOneToOne: false
|
|
2049
|
-
referencedRelation: 'buckets'
|
|
2050
|
-
referencedColumns: ['id']
|
|
2051
|
-
},
|
|
2052
|
-
]
|
|
2053
|
-
}
|
|
2054
|
-
}
|
|
2055
|
-
Views: {
|
|
2056
|
-
[_ in never]: never
|
|
2057
|
-
}
|
|
2058
|
-
Functions: {
|
|
2059
|
-
can_insert_object: {
|
|
2060
|
-
Args: {
|
|
2061
|
-
bucketid: string
|
|
2062
|
-
name: string
|
|
2063
|
-
owner: string
|
|
2064
|
-
metadata: Json
|
|
2065
|
-
}
|
|
2066
|
-
Returns: undefined
|
|
2067
|
-
}
|
|
2068
|
-
extension: {
|
|
2069
|
-
Args: {
|
|
2070
|
-
name: string
|
|
2071
|
-
}
|
|
2072
|
-
Returns: string
|
|
2073
|
-
}
|
|
2074
|
-
filename: {
|
|
2075
|
-
Args: {
|
|
2076
|
-
name: string
|
|
2077
|
-
}
|
|
2078
|
-
Returns: string
|
|
2079
|
-
}
|
|
2080
|
-
foldername: {
|
|
2081
|
-
Args: {
|
|
2082
|
-
name: string
|
|
2083
|
-
}
|
|
2084
|
-
Returns: string[]
|
|
2085
|
-
}
|
|
2086
|
-
get_size_by_bucket: {
|
|
2087
|
-
Args: Record<PropertyKey, never>
|
|
2088
|
-
Returns: {
|
|
2089
|
-
size: number
|
|
2090
|
-
bucket_id: string
|
|
2091
|
-
}[]
|
|
2092
|
-
}
|
|
2093
|
-
search: {
|
|
2094
|
-
Args: {
|
|
2095
|
-
prefix: string
|
|
2096
|
-
bucketname: string
|
|
2097
|
-
limits?: number
|
|
2098
|
-
levels?: number
|
|
2099
|
-
offsets?: number
|
|
2100
|
-
search?: string
|
|
2101
|
-
sortcolumn?: string
|
|
2102
|
-
sortorder?: string
|
|
2103
|
-
}
|
|
2104
|
-
Returns: {
|
|
2105
|
-
name: string
|
|
2106
|
-
id: string
|
|
2107
|
-
updated_at: string
|
|
2108
|
-
created_at: string
|
|
2109
|
-
last_accessed_at: string
|
|
2110
|
-
metadata: Json
|
|
2111
|
-
}[]
|
|
2112
|
-
}
|
|
2113
|
-
}
|
|
2114
|
-
Enums: {
|
|
2115
|
-
[_ in never]: never
|
|
2116
|
-
}
|
|
2117
|
-
CompositeTypes: {
|
|
2118
|
-
[_ in never]: never
|
|
2119
|
-
}
|
|
2120
|
-
}
|
|
2121
2494
|
}
|
|
2122
2495
|
|
|
2123
2496
|
type PublicSchema = Database[Extract<keyof Database, 'public'>]
|