@capgo/cli 7.20.1 → 7.20.2
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/dist/index.js +7 -7
- package/dist/package.json +1 -1
- package/dist/src/api/channels.d.ts +1130 -136
- package/dist/src/api/channels.d.ts.map +1 -1
- package/dist/src/api/versions.d.ts.map +1 -1
- package/dist/src/app/list.d.ts +2 -0
- package/dist/src/app/list.d.ts.map +1 -1
- package/dist/src/bundle/list.d.ts.map +1 -1
- package/dist/src/bundle/upload.d.ts +1 -1
- package/dist/src/bundle/upload.d.ts.map +1 -1
- package/dist/src/channel/add.d.ts.map +1 -1
- package/dist/src/organisation/add.d.ts +1 -0
- package/dist/src/organisation/add.d.ts.map +1 -1
- package/dist/src/organisation/list.d.ts +5 -0
- package/dist/src/organisation/list.d.ts.map +1 -1
- package/dist/src/sdk.js +3 -3
- package/dist/src/types/supabase.types.d.ts +584 -69
- package/dist/src/types/supabase.types.d.ts.map +1 -1
- package/dist/src/utils.d.ts +568 -79
- package/dist/src/utils.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -100,6 +100,39 @@ export declare function findChannelDevices(supabase: SupabaseClient<Database>, a
|
|
|
100
100
|
referencedColumns: ["id"];
|
|
101
101
|
}];
|
|
102
102
|
};
|
|
103
|
+
app_metrics_cache: {
|
|
104
|
+
Row: {
|
|
105
|
+
cached_at: string;
|
|
106
|
+
end_date: string;
|
|
107
|
+
id: number;
|
|
108
|
+
org_id: string;
|
|
109
|
+
response: import("../types/supabase.types").Json;
|
|
110
|
+
start_date: string;
|
|
111
|
+
};
|
|
112
|
+
Insert: {
|
|
113
|
+
cached_at?: string;
|
|
114
|
+
end_date: string;
|
|
115
|
+
id?: number;
|
|
116
|
+
org_id: string;
|
|
117
|
+
response: import("../types/supabase.types").Json;
|
|
118
|
+
start_date: string;
|
|
119
|
+
};
|
|
120
|
+
Update: {
|
|
121
|
+
cached_at?: string;
|
|
122
|
+
end_date?: string;
|
|
123
|
+
id?: number;
|
|
124
|
+
org_id?: string;
|
|
125
|
+
response?: import("../types/supabase.types").Json;
|
|
126
|
+
start_date?: string;
|
|
127
|
+
};
|
|
128
|
+
Relationships: [{
|
|
129
|
+
foreignKeyName: "app_metrics_cache_org_id_fkey";
|
|
130
|
+
columns: ["org_id"];
|
|
131
|
+
isOneToOne: false;
|
|
132
|
+
referencedRelation: "orgs";
|
|
133
|
+
referencedColumns: ["id"];
|
|
134
|
+
}];
|
|
135
|
+
};
|
|
103
136
|
app_versions: {
|
|
104
137
|
Row: {
|
|
105
138
|
app_id: string;
|
|
@@ -226,11 +259,13 @@ export declare function findChannelDevices(supabase: SupabaseClient<Database>, a
|
|
|
226
259
|
apps: {
|
|
227
260
|
Row: {
|
|
228
261
|
app_id: string;
|
|
262
|
+
channel_device_count: number;
|
|
229
263
|
created_at: string | null;
|
|
230
264
|
default_upload_channel: string;
|
|
231
265
|
icon_url: string;
|
|
232
266
|
id: string | null;
|
|
233
267
|
last_version: string | null;
|
|
268
|
+
manifest_bundle_count: number;
|
|
234
269
|
name: string | null;
|
|
235
270
|
owner_org: string;
|
|
236
271
|
retention: number;
|
|
@@ -240,11 +275,13 @@ export declare function findChannelDevices(supabase: SupabaseClient<Database>, a
|
|
|
240
275
|
};
|
|
241
276
|
Insert: {
|
|
242
277
|
app_id: string;
|
|
278
|
+
channel_device_count?: number;
|
|
243
279
|
created_at?: string | null;
|
|
244
280
|
default_upload_channel?: string;
|
|
245
281
|
icon_url: string;
|
|
246
282
|
id?: string | null;
|
|
247
283
|
last_version?: string | null;
|
|
284
|
+
manifest_bundle_count?: number;
|
|
248
285
|
name?: string | null;
|
|
249
286
|
owner_org: string;
|
|
250
287
|
retention?: number;
|
|
@@ -254,11 +291,13 @@ export declare function findChannelDevices(supabase: SupabaseClient<Database>, a
|
|
|
254
291
|
};
|
|
255
292
|
Update: {
|
|
256
293
|
app_id?: string;
|
|
294
|
+
channel_device_count?: number;
|
|
257
295
|
created_at?: string | null;
|
|
258
296
|
default_upload_channel?: string;
|
|
259
297
|
icon_url?: string;
|
|
260
298
|
id?: string | null;
|
|
261
299
|
last_version?: string | null;
|
|
300
|
+
manifest_bundle_count?: number;
|
|
262
301
|
name?: string | null;
|
|
263
302
|
owner_org?: string;
|
|
264
303
|
retention?: number;
|
|
@@ -308,10 +347,10 @@ export declare function findChannelDevices(supabase: SupabaseClient<Database>, a
|
|
|
308
347
|
Row: {
|
|
309
348
|
created_at: string;
|
|
310
349
|
id: number;
|
|
350
|
+
org_id: string | null;
|
|
311
351
|
price_per_unit: number;
|
|
312
352
|
step_max: number;
|
|
313
353
|
step_min: number;
|
|
314
|
-
stripe_id: string | null;
|
|
315
354
|
type: string;
|
|
316
355
|
unit_factor: number;
|
|
317
356
|
updated_at: string;
|
|
@@ -319,10 +358,10 @@ export declare function findChannelDevices(supabase: SupabaseClient<Database>, a
|
|
|
319
358
|
Insert: {
|
|
320
359
|
created_at?: string;
|
|
321
360
|
id?: number;
|
|
361
|
+
org_id?: string | null;
|
|
322
362
|
price_per_unit: number;
|
|
323
363
|
step_max: number;
|
|
324
364
|
step_min: number;
|
|
325
|
-
stripe_id?: string | null;
|
|
326
365
|
type: string;
|
|
327
366
|
unit_factor?: number;
|
|
328
367
|
updated_at?: string;
|
|
@@ -330,15 +369,21 @@ export declare function findChannelDevices(supabase: SupabaseClient<Database>, a
|
|
|
330
369
|
Update: {
|
|
331
370
|
created_at?: string;
|
|
332
371
|
id?: number;
|
|
372
|
+
org_id?: string | null;
|
|
333
373
|
price_per_unit?: number;
|
|
334
374
|
step_max?: number;
|
|
335
375
|
step_min?: number;
|
|
336
|
-
stripe_id?: string | null;
|
|
337
376
|
type?: string;
|
|
338
377
|
unit_factor?: number;
|
|
339
378
|
updated_at?: string;
|
|
340
379
|
};
|
|
341
|
-
Relationships: [
|
|
380
|
+
Relationships: [{
|
|
381
|
+
foreignKeyName: "capgo_credits_steps_org_id_fkey";
|
|
382
|
+
columns: ["org_id"];
|
|
383
|
+
isOneToOne: false;
|
|
384
|
+
referencedRelation: "orgs";
|
|
385
|
+
referencedColumns: ["id"];
|
|
386
|
+
}];
|
|
342
387
|
};
|
|
343
388
|
channel_devices: {
|
|
344
389
|
Row: {
|
|
@@ -663,18 +708,21 @@ export declare function findChannelDevices(supabase: SupabaseClient<Database>, a
|
|
|
663
708
|
app_id: string;
|
|
664
709
|
device_id: string;
|
|
665
710
|
id: number;
|
|
711
|
+
org_id: string;
|
|
666
712
|
timestamp: string;
|
|
667
713
|
};
|
|
668
714
|
Insert: {
|
|
669
715
|
app_id: string;
|
|
670
716
|
device_id: string;
|
|
671
717
|
id?: number;
|
|
718
|
+
org_id: string;
|
|
672
719
|
timestamp?: string;
|
|
673
720
|
};
|
|
674
721
|
Update: {
|
|
675
722
|
app_id?: string;
|
|
676
723
|
device_id?: string;
|
|
677
724
|
id?: number;
|
|
725
|
+
org_id?: string;
|
|
678
726
|
timestamp?: string;
|
|
679
727
|
};
|
|
680
728
|
Relationships: [];
|
|
@@ -683,6 +731,7 @@ export declare function findChannelDevices(supabase: SupabaseClient<Database>, a
|
|
|
683
731
|
Row: {
|
|
684
732
|
app_id: string;
|
|
685
733
|
custom_id: string;
|
|
734
|
+
default_channel: string | null;
|
|
686
735
|
device_id: string;
|
|
687
736
|
id: number;
|
|
688
737
|
is_emulator: boolean | null;
|
|
@@ -691,12 +740,14 @@ export declare function findChannelDevices(supabase: SupabaseClient<Database>, a
|
|
|
691
740
|
platform: Database["public"]["Enums"]["platform_os"];
|
|
692
741
|
plugin_version: string;
|
|
693
742
|
updated_at: string;
|
|
694
|
-
version: number;
|
|
743
|
+
version: number | null;
|
|
695
744
|
version_build: string | null;
|
|
745
|
+
version_name: string;
|
|
696
746
|
};
|
|
697
747
|
Insert: {
|
|
698
748
|
app_id: string;
|
|
699
749
|
custom_id?: string;
|
|
750
|
+
default_channel?: string | null;
|
|
700
751
|
device_id: string;
|
|
701
752
|
id?: never;
|
|
702
753
|
is_emulator?: boolean | null;
|
|
@@ -705,12 +756,14 @@ export declare function findChannelDevices(supabase: SupabaseClient<Database>, a
|
|
|
705
756
|
platform: Database["public"]["Enums"]["platform_os"];
|
|
706
757
|
plugin_version?: string;
|
|
707
758
|
updated_at: string;
|
|
708
|
-
version
|
|
759
|
+
version?: number | null;
|
|
709
760
|
version_build?: string | null;
|
|
761
|
+
version_name?: string;
|
|
710
762
|
};
|
|
711
763
|
Update: {
|
|
712
764
|
app_id?: string;
|
|
713
765
|
custom_id?: string;
|
|
766
|
+
default_channel?: string | null;
|
|
714
767
|
device_id?: string;
|
|
715
768
|
id?: never;
|
|
716
769
|
is_emulator?: boolean | null;
|
|
@@ -719,8 +772,9 @@ export declare function findChannelDevices(supabase: SupabaseClient<Database>, a
|
|
|
719
772
|
platform?: Database["public"]["Enums"]["platform_os"];
|
|
720
773
|
plugin_version?: string;
|
|
721
774
|
updated_at?: string;
|
|
722
|
-
version?: number;
|
|
775
|
+
version?: number | null;
|
|
723
776
|
version_build?: string | null;
|
|
777
|
+
version_name?: string;
|
|
724
778
|
};
|
|
725
779
|
Relationships: [];
|
|
726
780
|
};
|
|
@@ -728,6 +782,7 @@ export declare function findChannelDevices(supabase: SupabaseClient<Database>, a
|
|
|
728
782
|
Row: {
|
|
729
783
|
apps: number;
|
|
730
784
|
apps_active: number | null;
|
|
785
|
+
bundle_storage_gb: number;
|
|
731
786
|
created_at: string | null;
|
|
732
787
|
date_id: string;
|
|
733
788
|
devices_last_month: number | null;
|
|
@@ -741,6 +796,7 @@ export declare function findChannelDevices(supabase: SupabaseClient<Database>, a
|
|
|
741
796
|
plan_payg: number | null;
|
|
742
797
|
plan_solo: number | null;
|
|
743
798
|
plan_team: number | null;
|
|
799
|
+
registers_today: number;
|
|
744
800
|
stars: number;
|
|
745
801
|
success_rate: number | null;
|
|
746
802
|
trial: number | null;
|
|
@@ -753,6 +809,7 @@ export declare function findChannelDevices(supabase: SupabaseClient<Database>, a
|
|
|
753
809
|
Insert: {
|
|
754
810
|
apps: number;
|
|
755
811
|
apps_active?: number | null;
|
|
812
|
+
bundle_storage_gb?: number;
|
|
756
813
|
created_at?: string | null;
|
|
757
814
|
date_id: string;
|
|
758
815
|
devices_last_month?: number | null;
|
|
@@ -766,6 +823,7 @@ export declare function findChannelDevices(supabase: SupabaseClient<Database>, a
|
|
|
766
823
|
plan_payg?: number | null;
|
|
767
824
|
plan_solo?: number | null;
|
|
768
825
|
plan_team?: number | null;
|
|
826
|
+
registers_today?: number;
|
|
769
827
|
stars: number;
|
|
770
828
|
success_rate?: number | null;
|
|
771
829
|
trial?: number | null;
|
|
@@ -778,6 +836,7 @@ export declare function findChannelDevices(supabase: SupabaseClient<Database>, a
|
|
|
778
836
|
Update: {
|
|
779
837
|
apps?: number;
|
|
780
838
|
apps_active?: number | null;
|
|
839
|
+
bundle_storage_gb?: number;
|
|
781
840
|
created_at?: string | null;
|
|
782
841
|
date_id?: string;
|
|
783
842
|
devices_last_month?: number | null;
|
|
@@ -791,6 +850,7 @@ export declare function findChannelDevices(supabase: SupabaseClient<Database>, a
|
|
|
791
850
|
plan_payg?: number | null;
|
|
792
851
|
plan_solo?: number | null;
|
|
793
852
|
plan_team?: number | null;
|
|
853
|
+
registers_today?: number;
|
|
794
854
|
stars?: number;
|
|
795
855
|
success_rate?: number | null;
|
|
796
856
|
trial?: number | null;
|
|
@@ -937,6 +997,7 @@ export declare function findChannelDevices(supabase: SupabaseClient<Database>, a
|
|
|
937
997
|
logo: string | null;
|
|
938
998
|
management_email: string;
|
|
939
999
|
name: string;
|
|
1000
|
+
stats_updated_at: string | null;
|
|
940
1001
|
updated_at: string | null;
|
|
941
1002
|
};
|
|
942
1003
|
Insert: {
|
|
@@ -947,6 +1008,7 @@ export declare function findChannelDevices(supabase: SupabaseClient<Database>, a
|
|
|
947
1008
|
logo?: string | null;
|
|
948
1009
|
management_email: string;
|
|
949
1010
|
name: string;
|
|
1011
|
+
stats_updated_at?: string | null;
|
|
950
1012
|
updated_at?: string | null;
|
|
951
1013
|
};
|
|
952
1014
|
Update: {
|
|
@@ -957,6 +1019,7 @@ export declare function findChannelDevices(supabase: SupabaseClient<Database>, a
|
|
|
957
1019
|
logo?: string | null;
|
|
958
1020
|
management_email?: string;
|
|
959
1021
|
name?: string;
|
|
1022
|
+
stats_updated_at?: string | null;
|
|
960
1023
|
updated_at?: string | null;
|
|
961
1024
|
};
|
|
962
1025
|
Relationships: [{
|
|
@@ -1049,7 +1112,7 @@ export declare function findChannelDevices(supabase: SupabaseClient<Database>, a
|
|
|
1049
1112
|
created_at: string;
|
|
1050
1113
|
device_id: string;
|
|
1051
1114
|
id: number;
|
|
1052
|
-
|
|
1115
|
+
version_name: string;
|
|
1053
1116
|
};
|
|
1054
1117
|
Insert: {
|
|
1055
1118
|
action: Database["public"]["Enums"]["stats_action"];
|
|
@@ -1057,7 +1120,7 @@ export declare function findChannelDevices(supabase: SupabaseClient<Database>, a
|
|
|
1057
1120
|
created_at: string;
|
|
1058
1121
|
device_id: string;
|
|
1059
1122
|
id?: never;
|
|
1060
|
-
|
|
1123
|
+
version_name?: string;
|
|
1061
1124
|
};
|
|
1062
1125
|
Update: {
|
|
1063
1126
|
action?: Database["public"]["Enums"]["stats_action"];
|
|
@@ -1065,7 +1128,7 @@ export declare function findChannelDevices(supabase: SupabaseClient<Database>, a
|
|
|
1065
1128
|
created_at?: string;
|
|
1066
1129
|
device_id?: string;
|
|
1067
1130
|
id?: never;
|
|
1068
|
-
|
|
1131
|
+
version_name?: string;
|
|
1069
1132
|
};
|
|
1070
1133
|
Relationships: [];
|
|
1071
1134
|
};
|
|
@@ -1102,6 +1165,7 @@ export declare function findChannelDevices(supabase: SupabaseClient<Database>, a
|
|
|
1102
1165
|
id: number;
|
|
1103
1166
|
is_good_plan: boolean | null;
|
|
1104
1167
|
mau_exceeded: boolean | null;
|
|
1168
|
+
plan_calculated_at: string | null;
|
|
1105
1169
|
plan_usage: number | null;
|
|
1106
1170
|
price_id: string | null;
|
|
1107
1171
|
product_id: string;
|
|
@@ -1122,6 +1186,7 @@ export declare function findChannelDevices(supabase: SupabaseClient<Database>, a
|
|
|
1122
1186
|
id?: number;
|
|
1123
1187
|
is_good_plan?: boolean | null;
|
|
1124
1188
|
mau_exceeded?: boolean | null;
|
|
1189
|
+
plan_calculated_at?: string | null;
|
|
1125
1190
|
plan_usage?: number | null;
|
|
1126
1191
|
price_id?: string | null;
|
|
1127
1192
|
product_id: string;
|
|
@@ -1142,6 +1207,7 @@ export declare function findChannelDevices(supabase: SupabaseClient<Database>, a
|
|
|
1142
1207
|
id?: number;
|
|
1143
1208
|
is_good_plan?: boolean | null;
|
|
1144
1209
|
mau_exceeded?: boolean | null;
|
|
1210
|
+
plan_calculated_at?: string | null;
|
|
1145
1211
|
plan_usage?: number | null;
|
|
1146
1212
|
price_id?: string | null;
|
|
1147
1213
|
product_id?: string;
|
|
@@ -1240,6 +1306,198 @@ export declare function findChannelDevices(supabase: SupabaseClient<Database>, a
|
|
|
1240
1306
|
referencedColumns: ["id"];
|
|
1241
1307
|
}];
|
|
1242
1308
|
};
|
|
1309
|
+
usage_credit_consumptions: {
|
|
1310
|
+
Row: {
|
|
1311
|
+
applied_at: string;
|
|
1312
|
+
credits_used: number;
|
|
1313
|
+
grant_id: string;
|
|
1314
|
+
id: number;
|
|
1315
|
+
metric: Database["public"]["Enums"]["credit_metric_type"];
|
|
1316
|
+
org_id: string;
|
|
1317
|
+
overage_event_id: string | null;
|
|
1318
|
+
};
|
|
1319
|
+
Insert: {
|
|
1320
|
+
applied_at?: string;
|
|
1321
|
+
credits_used: number;
|
|
1322
|
+
grant_id: string;
|
|
1323
|
+
id?: number;
|
|
1324
|
+
metric: Database["public"]["Enums"]["credit_metric_type"];
|
|
1325
|
+
org_id: string;
|
|
1326
|
+
overage_event_id?: string | null;
|
|
1327
|
+
};
|
|
1328
|
+
Update: {
|
|
1329
|
+
applied_at?: string;
|
|
1330
|
+
credits_used?: number;
|
|
1331
|
+
grant_id?: string;
|
|
1332
|
+
id?: number;
|
|
1333
|
+
metric?: Database["public"]["Enums"]["credit_metric_type"];
|
|
1334
|
+
org_id?: string;
|
|
1335
|
+
overage_event_id?: string | null;
|
|
1336
|
+
};
|
|
1337
|
+
Relationships: [{
|
|
1338
|
+
foreignKeyName: "usage_credit_consumptions_grant_id_fkey";
|
|
1339
|
+
columns: ["grant_id"];
|
|
1340
|
+
isOneToOne: false;
|
|
1341
|
+
referencedRelation: "usage_credit_grants";
|
|
1342
|
+
referencedColumns: ["id"];
|
|
1343
|
+
}, {
|
|
1344
|
+
foreignKeyName: "usage_credit_consumptions_org_id_fkey";
|
|
1345
|
+
columns: ["org_id"];
|
|
1346
|
+
isOneToOne: false;
|
|
1347
|
+
referencedRelation: "orgs";
|
|
1348
|
+
referencedColumns: ["id"];
|
|
1349
|
+
}, {
|
|
1350
|
+
foreignKeyName: "usage_credit_consumptions_overage_event_id_fkey";
|
|
1351
|
+
columns: ["overage_event_id"];
|
|
1352
|
+
isOneToOne: false;
|
|
1353
|
+
referencedRelation: "usage_overage_events";
|
|
1354
|
+
referencedColumns: ["id"];
|
|
1355
|
+
}];
|
|
1356
|
+
};
|
|
1357
|
+
usage_credit_grants: {
|
|
1358
|
+
Row: {
|
|
1359
|
+
credits_consumed: number;
|
|
1360
|
+
credits_total: number;
|
|
1361
|
+
expires_at: string;
|
|
1362
|
+
granted_at: string;
|
|
1363
|
+
id: string;
|
|
1364
|
+
notes: string | null;
|
|
1365
|
+
org_id: string;
|
|
1366
|
+
source: string;
|
|
1367
|
+
source_ref: import("../types/supabase.types").Json | null;
|
|
1368
|
+
};
|
|
1369
|
+
Insert: {
|
|
1370
|
+
credits_consumed?: number;
|
|
1371
|
+
credits_total: number;
|
|
1372
|
+
expires_at?: string;
|
|
1373
|
+
granted_at?: string;
|
|
1374
|
+
id?: string;
|
|
1375
|
+
notes?: string | null;
|
|
1376
|
+
org_id: string;
|
|
1377
|
+
source?: string;
|
|
1378
|
+
source_ref?: import("../types/supabase.types").Json | null;
|
|
1379
|
+
};
|
|
1380
|
+
Update: {
|
|
1381
|
+
credits_consumed?: number;
|
|
1382
|
+
credits_total?: number;
|
|
1383
|
+
expires_at?: string;
|
|
1384
|
+
granted_at?: string;
|
|
1385
|
+
id?: string;
|
|
1386
|
+
notes?: string | null;
|
|
1387
|
+
org_id?: string;
|
|
1388
|
+
source?: string;
|
|
1389
|
+
source_ref?: import("../types/supabase.types").Json | null;
|
|
1390
|
+
};
|
|
1391
|
+
Relationships: [{
|
|
1392
|
+
foreignKeyName: "usage_credit_grants_org_id_fkey";
|
|
1393
|
+
columns: ["org_id"];
|
|
1394
|
+
isOneToOne: false;
|
|
1395
|
+
referencedRelation: "orgs";
|
|
1396
|
+
referencedColumns: ["id"];
|
|
1397
|
+
}];
|
|
1398
|
+
};
|
|
1399
|
+
usage_credit_transactions: {
|
|
1400
|
+
Row: {
|
|
1401
|
+
amount: number;
|
|
1402
|
+
balance_after: number | null;
|
|
1403
|
+
description: string | null;
|
|
1404
|
+
grant_id: string | null;
|
|
1405
|
+
id: number;
|
|
1406
|
+
occurred_at: string;
|
|
1407
|
+
org_id: string;
|
|
1408
|
+
source_ref: import("../types/supabase.types").Json | null;
|
|
1409
|
+
transaction_type: Database["public"]["Enums"]["credit_transaction_type"];
|
|
1410
|
+
};
|
|
1411
|
+
Insert: {
|
|
1412
|
+
amount: number;
|
|
1413
|
+
balance_after?: number | null;
|
|
1414
|
+
description?: string | null;
|
|
1415
|
+
grant_id?: string | null;
|
|
1416
|
+
id?: number;
|
|
1417
|
+
occurred_at?: string;
|
|
1418
|
+
org_id: string;
|
|
1419
|
+
source_ref?: import("../types/supabase.types").Json | null;
|
|
1420
|
+
transaction_type: Database["public"]["Enums"]["credit_transaction_type"];
|
|
1421
|
+
};
|
|
1422
|
+
Update: {
|
|
1423
|
+
amount?: number;
|
|
1424
|
+
balance_after?: number | null;
|
|
1425
|
+
description?: string | null;
|
|
1426
|
+
grant_id?: string | null;
|
|
1427
|
+
id?: number;
|
|
1428
|
+
occurred_at?: string;
|
|
1429
|
+
org_id?: string;
|
|
1430
|
+
source_ref?: import("../types/supabase.types").Json | null;
|
|
1431
|
+
transaction_type?: Database["public"]["Enums"]["credit_transaction_type"];
|
|
1432
|
+
};
|
|
1433
|
+
Relationships: [{
|
|
1434
|
+
foreignKeyName: "usage_credit_transactions_grant_id_fkey";
|
|
1435
|
+
columns: ["grant_id"];
|
|
1436
|
+
isOneToOne: false;
|
|
1437
|
+
referencedRelation: "usage_credit_grants";
|
|
1438
|
+
referencedColumns: ["id"];
|
|
1439
|
+
}, {
|
|
1440
|
+
foreignKeyName: "usage_credit_transactions_org_id_fkey";
|
|
1441
|
+
columns: ["org_id"];
|
|
1442
|
+
isOneToOne: false;
|
|
1443
|
+
referencedRelation: "orgs";
|
|
1444
|
+
referencedColumns: ["id"];
|
|
1445
|
+
}];
|
|
1446
|
+
};
|
|
1447
|
+
usage_overage_events: {
|
|
1448
|
+
Row: {
|
|
1449
|
+
billing_cycle_end: string | null;
|
|
1450
|
+
billing_cycle_start: string | null;
|
|
1451
|
+
created_at: string;
|
|
1452
|
+
credit_step_id: number | null;
|
|
1453
|
+
credits_debited: number;
|
|
1454
|
+
credits_estimated: number;
|
|
1455
|
+
details: import("../types/supabase.types").Json | null;
|
|
1456
|
+
id: string;
|
|
1457
|
+
metric: Database["public"]["Enums"]["credit_metric_type"];
|
|
1458
|
+
org_id: string;
|
|
1459
|
+
overage_amount: number;
|
|
1460
|
+
};
|
|
1461
|
+
Insert: {
|
|
1462
|
+
billing_cycle_end?: string | null;
|
|
1463
|
+
billing_cycle_start?: string | null;
|
|
1464
|
+
created_at?: string;
|
|
1465
|
+
credit_step_id?: number | null;
|
|
1466
|
+
credits_debited?: number;
|
|
1467
|
+
credits_estimated: number;
|
|
1468
|
+
details?: import("../types/supabase.types").Json | null;
|
|
1469
|
+
id?: string;
|
|
1470
|
+
metric: Database["public"]["Enums"]["credit_metric_type"];
|
|
1471
|
+
org_id: string;
|
|
1472
|
+
overage_amount: number;
|
|
1473
|
+
};
|
|
1474
|
+
Update: {
|
|
1475
|
+
billing_cycle_end?: string | null;
|
|
1476
|
+
billing_cycle_start?: string | null;
|
|
1477
|
+
created_at?: string;
|
|
1478
|
+
credit_step_id?: number | null;
|
|
1479
|
+
credits_debited?: number;
|
|
1480
|
+
credits_estimated?: number;
|
|
1481
|
+
details?: import("../types/supabase.types").Json | null;
|
|
1482
|
+
id?: string;
|
|
1483
|
+
metric?: Database["public"]["Enums"]["credit_metric_type"];
|
|
1484
|
+
org_id?: string;
|
|
1485
|
+
overage_amount?: number;
|
|
1486
|
+
};
|
|
1487
|
+
Relationships: [{
|
|
1488
|
+
foreignKeyName: "usage_overage_events_credit_step_id_fkey";
|
|
1489
|
+
columns: ["credit_step_id"];
|
|
1490
|
+
isOneToOne: false;
|
|
1491
|
+
referencedRelation: "capgo_credits_steps";
|
|
1492
|
+
referencedColumns: ["id"];
|
|
1493
|
+
}, {
|
|
1494
|
+
foreignKeyName: "usage_overage_events_org_id_fkey";
|
|
1495
|
+
columns: ["org_id"];
|
|
1496
|
+
isOneToOne: false;
|
|
1497
|
+
referencedRelation: "orgs";
|
|
1498
|
+
referencedColumns: ["id"];
|
|
1499
|
+
}];
|
|
1500
|
+
};
|
|
1243
1501
|
users: {
|
|
1244
1502
|
Row: {
|
|
1245
1503
|
ban_time: string | null;
|
|
@@ -1325,7 +1583,23 @@ export declare function findChannelDevices(supabase: SupabaseClient<Database>, a
|
|
|
1325
1583
|
Relationships: [];
|
|
1326
1584
|
};
|
|
1327
1585
|
};
|
|
1328
|
-
Views: {
|
|
1586
|
+
Views: {
|
|
1587
|
+
usage_credit_balances: {
|
|
1588
|
+
Row: {
|
|
1589
|
+
available_credits: number | null;
|
|
1590
|
+
next_expiration: string | null;
|
|
1591
|
+
org_id: string | null;
|
|
1592
|
+
total_credits: number | null;
|
|
1593
|
+
};
|
|
1594
|
+
Relationships: [{
|
|
1595
|
+
foreignKeyName: "usage_credit_grants_org_id_fkey";
|
|
1596
|
+
columns: ["org_id"];
|
|
1597
|
+
isOneToOne: false;
|
|
1598
|
+
referencedRelation: "orgs";
|
|
1599
|
+
referencedColumns: ["id"];
|
|
1600
|
+
}];
|
|
1601
|
+
};
|
|
1602
|
+
};
|
|
1329
1603
|
Functions: {
|
|
1330
1604
|
accept_invitation_to_org: {
|
|
1331
1605
|
Args: {
|
|
@@ -1333,13 +1607,47 @@ export declare function findChannelDevices(supabase: SupabaseClient<Database>, a
|
|
|
1333
1607
|
};
|
|
1334
1608
|
Returns: string;
|
|
1335
1609
|
};
|
|
1610
|
+
apply_usage_overage: {
|
|
1611
|
+
Args: {
|
|
1612
|
+
p_billing_cycle_end: string;
|
|
1613
|
+
p_billing_cycle_start: string;
|
|
1614
|
+
p_details?: import("../types/supabase.types").Json;
|
|
1615
|
+
p_metric: Database["public"]["Enums"]["credit_metric_type"];
|
|
1616
|
+
p_org_id: string;
|
|
1617
|
+
p_overage_amount: number;
|
|
1618
|
+
};
|
|
1619
|
+
Returns: {
|
|
1620
|
+
credit_step_id: number;
|
|
1621
|
+
credits_applied: number;
|
|
1622
|
+
credits_remaining: number;
|
|
1623
|
+
credits_required: number;
|
|
1624
|
+
overage_amount: number;
|
|
1625
|
+
overage_covered: number;
|
|
1626
|
+
overage_event_id: string;
|
|
1627
|
+
overage_unpaid: number;
|
|
1628
|
+
}[];
|
|
1629
|
+
};
|
|
1630
|
+
calculate_credit_cost: {
|
|
1631
|
+
Args: {
|
|
1632
|
+
p_metric: Database["public"]["Enums"]["credit_metric_type"];
|
|
1633
|
+
p_overage_amount: number;
|
|
1634
|
+
};
|
|
1635
|
+
Returns: {
|
|
1636
|
+
credit_cost_per_unit: number;
|
|
1637
|
+
credit_step_id: number;
|
|
1638
|
+
credits_required: number;
|
|
1639
|
+
}[];
|
|
1640
|
+
};
|
|
1336
1641
|
check_min_rights: {
|
|
1337
1642
|
Args: {
|
|
1338
1643
|
app_id: string;
|
|
1339
1644
|
channel_id: number;
|
|
1340
1645
|
min_right: Database["public"]["Enums"]["user_min_right"];
|
|
1341
1646
|
org_id: string;
|
|
1342
|
-
}
|
|
1647
|
+
};
|
|
1648
|
+
Returns: boolean;
|
|
1649
|
+
} | {
|
|
1650
|
+
Args: {
|
|
1343
1651
|
app_id: string;
|
|
1344
1652
|
channel_id: number;
|
|
1345
1653
|
min_right: Database["public"]["Enums"]["user_min_right"];
|
|
@@ -1355,22 +1663,22 @@ export declare function findChannelDevices(supabase: SupabaseClient<Database>, a
|
|
|
1355
1663
|
Returns: number;
|
|
1356
1664
|
};
|
|
1357
1665
|
cleanup_frequent_job_details: {
|
|
1358
|
-
Args:
|
|
1666
|
+
Args: never;
|
|
1359
1667
|
Returns: undefined;
|
|
1360
1668
|
};
|
|
1361
1669
|
cleanup_queue_messages: {
|
|
1362
|
-
Args:
|
|
1670
|
+
Args: never;
|
|
1363
1671
|
Returns: undefined;
|
|
1364
1672
|
};
|
|
1365
1673
|
convert_bytes_to_gb: {
|
|
1366
1674
|
Args: {
|
|
1367
|
-
|
|
1675
|
+
bytes_value: number;
|
|
1368
1676
|
};
|
|
1369
1677
|
Returns: number;
|
|
1370
1678
|
};
|
|
1371
1679
|
convert_bytes_to_mb: {
|
|
1372
1680
|
Args: {
|
|
1373
|
-
|
|
1681
|
+
bytes_value: number;
|
|
1374
1682
|
};
|
|
1375
1683
|
Returns: number;
|
|
1376
1684
|
};
|
|
@@ -1400,22 +1708,22 @@ export declare function findChannelDevices(supabase: SupabaseClient<Database>, a
|
|
|
1400
1708
|
Returns: number;
|
|
1401
1709
|
};
|
|
1402
1710
|
count_all_need_upgrade: {
|
|
1403
|
-
Args:
|
|
1711
|
+
Args: never;
|
|
1404
1712
|
Returns: number;
|
|
1405
1713
|
};
|
|
1406
1714
|
count_all_onboarded: {
|
|
1407
|
-
Args:
|
|
1715
|
+
Args: never;
|
|
1408
1716
|
Returns: number;
|
|
1409
1717
|
};
|
|
1410
1718
|
count_all_plans_v2: {
|
|
1411
|
-
Args:
|
|
1719
|
+
Args: never;
|
|
1412
1720
|
Returns: {
|
|
1413
1721
|
count: number;
|
|
1414
1722
|
plan_name: string;
|
|
1415
1723
|
}[];
|
|
1416
1724
|
};
|
|
1417
1725
|
delete_accounts_marked_for_deletion: {
|
|
1418
|
-
Args:
|
|
1726
|
+
Args: never;
|
|
1419
1727
|
Returns: {
|
|
1420
1728
|
deleted_count: number;
|
|
1421
1729
|
deleted_user_ids: string[];
|
|
@@ -1428,11 +1736,11 @@ export declare function findChannelDevices(supabase: SupabaseClient<Database>, a
|
|
|
1428
1736
|
Returns: undefined;
|
|
1429
1737
|
};
|
|
1430
1738
|
delete_old_deleted_apps: {
|
|
1431
|
-
Args:
|
|
1739
|
+
Args: never;
|
|
1432
1740
|
Returns: undefined;
|
|
1433
1741
|
};
|
|
1434
1742
|
delete_user: {
|
|
1435
|
-
Args:
|
|
1743
|
+
Args: never;
|
|
1436
1744
|
Returns: undefined;
|
|
1437
1745
|
};
|
|
1438
1746
|
exist_app_v2: {
|
|
@@ -1443,15 +1751,22 @@ export declare function findChannelDevices(supabase: SupabaseClient<Database>, a
|
|
|
1443
1751
|
};
|
|
1444
1752
|
exist_app_versions: {
|
|
1445
1753
|
Args: {
|
|
1446
|
-
apikey: string;
|
|
1447
1754
|
appid: string;
|
|
1448
1755
|
name_version: string;
|
|
1449
|
-
}
|
|
1756
|
+
};
|
|
1757
|
+
Returns: boolean;
|
|
1758
|
+
} | {
|
|
1759
|
+
Args: {
|
|
1760
|
+
apikey: string;
|
|
1450
1761
|
appid: string;
|
|
1451
1762
|
name_version: string;
|
|
1452
1763
|
};
|
|
1453
1764
|
Returns: boolean;
|
|
1454
1765
|
};
|
|
1766
|
+
expire_usage_credits: {
|
|
1767
|
+
Args: never;
|
|
1768
|
+
Returns: number;
|
|
1769
|
+
};
|
|
1455
1770
|
find_best_plan_v3: {
|
|
1456
1771
|
Args: {
|
|
1457
1772
|
bandwidth: number;
|
|
@@ -1477,19 +1792,15 @@ export declare function findChannelDevices(supabase: SupabaseClient<Database>, a
|
|
|
1477
1792
|
Returns: string;
|
|
1478
1793
|
};
|
|
1479
1794
|
get_apikey: {
|
|
1480
|
-
Args:
|
|
1795
|
+
Args: never;
|
|
1481
1796
|
Returns: string;
|
|
1482
1797
|
};
|
|
1483
1798
|
get_apikey_header: {
|
|
1484
|
-
Args:
|
|
1799
|
+
Args: never;
|
|
1485
1800
|
Returns: string;
|
|
1486
1801
|
};
|
|
1487
1802
|
get_app_metrics: {
|
|
1488
1803
|
Args: {
|
|
1489
|
-
end_date: string;
|
|
1490
|
-
org_id: string;
|
|
1491
|
-
start_date: string;
|
|
1492
|
-
} | {
|
|
1493
1804
|
org_id: string;
|
|
1494
1805
|
};
|
|
1495
1806
|
Returns: {
|
|
@@ -1503,6 +1814,23 @@ export declare function findChannelDevices(supabase: SupabaseClient<Database>, a
|
|
|
1503
1814
|
storage: number;
|
|
1504
1815
|
uninstall: number;
|
|
1505
1816
|
}[];
|
|
1817
|
+
} | {
|
|
1818
|
+
Args: {
|
|
1819
|
+
p_end_date: string;
|
|
1820
|
+
p_org_id: string;
|
|
1821
|
+
p_start_date: string;
|
|
1822
|
+
};
|
|
1823
|
+
Returns: {
|
|
1824
|
+
app_id: string;
|
|
1825
|
+
bandwidth: number;
|
|
1826
|
+
date: string;
|
|
1827
|
+
fail: number;
|
|
1828
|
+
get: number;
|
|
1829
|
+
install: number;
|
|
1830
|
+
mau: number;
|
|
1831
|
+
storage: number;
|
|
1832
|
+
uninstall: number;
|
|
1833
|
+
}[];
|
|
1506
1834
|
};
|
|
1507
1835
|
get_app_versions: {
|
|
1508
1836
|
Args: {
|
|
@@ -1529,7 +1857,7 @@ export declare function findChannelDevices(supabase: SupabaseClient<Database>, a
|
|
|
1529
1857
|
Returns: string;
|
|
1530
1858
|
};
|
|
1531
1859
|
get_customer_counts: {
|
|
1532
|
-
Args:
|
|
1860
|
+
Args: never;
|
|
1533
1861
|
Returns: {
|
|
1534
1862
|
monthly: number;
|
|
1535
1863
|
total: number;
|
|
@@ -1545,21 +1873,37 @@ export declare function findChannelDevices(supabase: SupabaseClient<Database>, a
|
|
|
1545
1873
|
subscription_anchor_start: string;
|
|
1546
1874
|
}[];
|
|
1547
1875
|
};
|
|
1876
|
+
get_d1_sync_url: {
|
|
1877
|
+
Args: never;
|
|
1878
|
+
Returns: string;
|
|
1879
|
+
};
|
|
1548
1880
|
get_d1_webhook_signature: {
|
|
1549
|
-
Args:
|
|
1881
|
+
Args: never;
|
|
1550
1882
|
Returns: string;
|
|
1551
1883
|
};
|
|
1552
1884
|
get_db_url: {
|
|
1553
|
-
Args:
|
|
1885
|
+
Args: never;
|
|
1554
1886
|
Returns: string;
|
|
1555
1887
|
};
|
|
1556
1888
|
get_global_metrics: {
|
|
1889
|
+
Args: {
|
|
1890
|
+
org_id: string;
|
|
1891
|
+
};
|
|
1892
|
+
Returns: {
|
|
1893
|
+
bandwidth: number;
|
|
1894
|
+
date: string;
|
|
1895
|
+
fail: number;
|
|
1896
|
+
get: number;
|
|
1897
|
+
install: number;
|
|
1898
|
+
mau: number;
|
|
1899
|
+
storage: number;
|
|
1900
|
+
uninstall: number;
|
|
1901
|
+
}[];
|
|
1902
|
+
} | {
|
|
1557
1903
|
Args: {
|
|
1558
1904
|
end_date: string;
|
|
1559
1905
|
org_id: string;
|
|
1560
1906
|
start_date: string;
|
|
1561
|
-
} | {
|
|
1562
|
-
org_id: string;
|
|
1563
1907
|
};
|
|
1564
1908
|
Returns: {
|
|
1565
1909
|
bandwidth: number;
|
|
@@ -1573,7 +1917,10 @@ export declare function findChannelDevices(supabase: SupabaseClient<Database>, a
|
|
|
1573
1917
|
}[];
|
|
1574
1918
|
};
|
|
1575
1919
|
get_identity: {
|
|
1576
|
-
Args:
|
|
1920
|
+
Args: never;
|
|
1921
|
+
Returns: string;
|
|
1922
|
+
} | {
|
|
1923
|
+
Args: {
|
|
1577
1924
|
keymode: Database["public"]["Enums"]["key_mode"][];
|
|
1578
1925
|
};
|
|
1579
1926
|
Returns: string;
|
|
@@ -1610,10 +1957,25 @@ export declare function findChannelDevices(supabase: SupabaseClient<Database>, a
|
|
|
1610
1957
|
}[];
|
|
1611
1958
|
};
|
|
1612
1959
|
get_metered_usage: {
|
|
1613
|
-
Args:
|
|
1960
|
+
Args: {
|
|
1614
1961
|
orgid: string;
|
|
1615
1962
|
};
|
|
1616
1963
|
Returns: Database["public"]["CompositeTypes"]["stats_table"];
|
|
1964
|
+
SetofOptions: {
|
|
1965
|
+
from: "*";
|
|
1966
|
+
to: "stats_table";
|
|
1967
|
+
isOneToOne: true;
|
|
1968
|
+
isSetofReturn: false;
|
|
1969
|
+
};
|
|
1970
|
+
} | {
|
|
1971
|
+
Args: never;
|
|
1972
|
+
Returns: Database["public"]["CompositeTypes"]["stats_table"];
|
|
1973
|
+
SetofOptions: {
|
|
1974
|
+
from: "*";
|
|
1975
|
+
to: "stats_table";
|
|
1976
|
+
isOneToOne: true;
|
|
1977
|
+
isSetofReturn: false;
|
|
1978
|
+
};
|
|
1617
1979
|
};
|
|
1618
1980
|
get_next_cron_time: {
|
|
1619
1981
|
Args: {
|
|
@@ -1630,11 +1992,15 @@ export declare function findChannelDevices(supabase: SupabaseClient<Database>, a
|
|
|
1630
1992
|
};
|
|
1631
1993
|
Returns: number;
|
|
1632
1994
|
};
|
|
1995
|
+
get_next_stats_update_date: {
|
|
1996
|
+
Args: {
|
|
1997
|
+
org: string;
|
|
1998
|
+
};
|
|
1999
|
+
Returns: string;
|
|
2000
|
+
};
|
|
1633
2001
|
get_org_members: {
|
|
1634
2002
|
Args: {
|
|
1635
2003
|
guild_id: string;
|
|
1636
|
-
} | {
|
|
1637
|
-
guild_id: string;
|
|
1638
2004
|
user_id: string;
|
|
1639
2005
|
};
|
|
1640
2006
|
Returns: {
|
|
@@ -1645,6 +2011,18 @@ export declare function findChannelDevices(supabase: SupabaseClient<Database>, a
|
|
|
1645
2011
|
role: Database["public"]["Enums"]["user_min_right"];
|
|
1646
2012
|
uid: string;
|
|
1647
2013
|
}[];
|
|
2014
|
+
} | {
|
|
2015
|
+
Args: {
|
|
2016
|
+
guild_id: string;
|
|
2017
|
+
};
|
|
2018
|
+
Returns: {
|
|
2019
|
+
aid: number;
|
|
2020
|
+
email: string;
|
|
2021
|
+
image_url: string;
|
|
2022
|
+
is_tmp: boolean;
|
|
2023
|
+
role: Database["public"]["Enums"]["user_min_right"];
|
|
2024
|
+
uid: string;
|
|
2025
|
+
}[];
|
|
1648
2026
|
};
|
|
1649
2027
|
get_org_owner_id: {
|
|
1650
2028
|
Args: {
|
|
@@ -1668,33 +2046,69 @@ export declare function findChannelDevices(supabase: SupabaseClient<Database>, a
|
|
|
1668
2046
|
Returns: import("../types/supabase.types").Json[];
|
|
1669
2047
|
};
|
|
1670
2048
|
get_orgs_v6: {
|
|
1671
|
-
Args:
|
|
2049
|
+
Args: never;
|
|
2050
|
+
Returns: {
|
|
2051
|
+
app_count: number;
|
|
2052
|
+
can_use_more: boolean;
|
|
2053
|
+
created_by: string;
|
|
2054
|
+
credit_available: number;
|
|
2055
|
+
credit_next_expiration: string;
|
|
2056
|
+
credit_total: number;
|
|
2057
|
+
gid: string;
|
|
2058
|
+
is_canceled: boolean;
|
|
2059
|
+
is_yearly: boolean;
|
|
2060
|
+
logo: string;
|
|
2061
|
+
management_email: string;
|
|
2062
|
+
name: string;
|
|
2063
|
+
next_stats_update_at: string;
|
|
2064
|
+
paying: boolean;
|
|
2065
|
+
role: string;
|
|
2066
|
+
stats_updated_at: string;
|
|
2067
|
+
subscription_end: string;
|
|
2068
|
+
subscription_start: string;
|
|
2069
|
+
trial_left: number;
|
|
2070
|
+
}[];
|
|
2071
|
+
} | {
|
|
2072
|
+
Args: {
|
|
1672
2073
|
userid: string;
|
|
1673
2074
|
};
|
|
1674
2075
|
Returns: {
|
|
1675
2076
|
app_count: number;
|
|
1676
2077
|
can_use_more: boolean;
|
|
1677
2078
|
created_by: string;
|
|
2079
|
+
credit_available: number;
|
|
2080
|
+
credit_next_expiration: string;
|
|
2081
|
+
credit_total: number;
|
|
1678
2082
|
gid: string;
|
|
1679
2083
|
is_canceled: boolean;
|
|
1680
2084
|
is_yearly: boolean;
|
|
1681
2085
|
logo: string;
|
|
1682
2086
|
management_email: string;
|
|
1683
2087
|
name: string;
|
|
2088
|
+
next_stats_update_at: string;
|
|
1684
2089
|
paying: boolean;
|
|
1685
2090
|
role: string;
|
|
2091
|
+
stats_updated_at: string;
|
|
1686
2092
|
subscription_end: string;
|
|
1687
2093
|
subscription_start: string;
|
|
1688
2094
|
trial_left: number;
|
|
1689
2095
|
}[];
|
|
1690
2096
|
};
|
|
1691
2097
|
get_plan_usage_percent_detailed: {
|
|
2098
|
+
Args: {
|
|
2099
|
+
orgid: string;
|
|
2100
|
+
};
|
|
2101
|
+
Returns: {
|
|
2102
|
+
bandwidth_percent: number;
|
|
2103
|
+
mau_percent: number;
|
|
2104
|
+
storage_percent: number;
|
|
2105
|
+
total_percent: number;
|
|
2106
|
+
}[];
|
|
2107
|
+
} | {
|
|
1692
2108
|
Args: {
|
|
1693
2109
|
cycle_end: string;
|
|
1694
2110
|
cycle_start: string;
|
|
1695
2111
|
orgid: string;
|
|
1696
|
-
} | {
|
|
1697
|
-
orgid: string;
|
|
1698
2112
|
};
|
|
1699
2113
|
Returns: {
|
|
1700
2114
|
bandwidth_percent: number;
|
|
@@ -1704,7 +2118,7 @@ export declare function findChannelDevices(supabase: SupabaseClient<Database>, a
|
|
|
1704
2118
|
}[];
|
|
1705
2119
|
};
|
|
1706
2120
|
get_process_cron_stats_job_info: {
|
|
1707
|
-
Args:
|
|
2121
|
+
Args: never;
|
|
1708
2122
|
Returns: {
|
|
1709
2123
|
last_run: string;
|
|
1710
2124
|
next_run: string;
|
|
@@ -1718,12 +2132,23 @@ export declare function findChannelDevices(supabase: SupabaseClient<Database>, a
|
|
|
1718
2132
|
Returns: number;
|
|
1719
2133
|
};
|
|
1720
2134
|
get_total_metrics: {
|
|
2135
|
+
Args: {
|
|
2136
|
+
org_id: string;
|
|
2137
|
+
};
|
|
2138
|
+
Returns: {
|
|
2139
|
+
bandwidth: number;
|
|
2140
|
+
fail: number;
|
|
2141
|
+
get: number;
|
|
2142
|
+
install: number;
|
|
2143
|
+
mau: number;
|
|
2144
|
+
storage: number;
|
|
2145
|
+
uninstall: number;
|
|
2146
|
+
}[];
|
|
2147
|
+
} | {
|
|
1721
2148
|
Args: {
|
|
1722
2149
|
end_date: string;
|
|
1723
2150
|
org_id: string;
|
|
1724
2151
|
start_date: string;
|
|
1725
|
-
} | {
|
|
1726
|
-
org_id: string;
|
|
1727
2152
|
};
|
|
1728
2153
|
Returns: {
|
|
1729
2154
|
bandwidth: number;
|
|
@@ -1742,7 +2167,7 @@ export declare function findChannelDevices(supabase: SupabaseClient<Database>, a
|
|
|
1742
2167
|
Returns: number;
|
|
1743
2168
|
};
|
|
1744
2169
|
get_update_stats: {
|
|
1745
|
-
Args:
|
|
2170
|
+
Args: never;
|
|
1746
2171
|
Returns: {
|
|
1747
2172
|
app_id: string;
|
|
1748
2173
|
failed: number;
|
|
@@ -1755,11 +2180,14 @@ export declare function findChannelDevices(supabase: SupabaseClient<Database>, a
|
|
|
1755
2180
|
get_user_id: {
|
|
1756
2181
|
Args: {
|
|
1757
2182
|
apikey: string;
|
|
1758
|
-
} | {
|
|
1759
|
-
apikey: string;
|
|
1760
2183
|
app_id: string;
|
|
1761
2184
|
};
|
|
1762
2185
|
Returns: string;
|
|
2186
|
+
} | {
|
|
2187
|
+
Args: {
|
|
2188
|
+
apikey: string;
|
|
2189
|
+
};
|
|
2190
|
+
Returns: string;
|
|
1763
2191
|
};
|
|
1764
2192
|
get_user_main_org_id: {
|
|
1765
2193
|
Args: {
|
|
@@ -1774,7 +2202,7 @@ export declare function findChannelDevices(supabase: SupabaseClient<Database>, a
|
|
|
1774
2202
|
Returns: string;
|
|
1775
2203
|
};
|
|
1776
2204
|
get_versions_with_no_metadata: {
|
|
1777
|
-
Args:
|
|
2205
|
+
Args: never;
|
|
1778
2206
|
Returns: {
|
|
1779
2207
|
app_id: string;
|
|
1780
2208
|
checksum: string | null;
|
|
@@ -1795,6 +2223,12 @@ export declare function findChannelDevices(supabase: SupabaseClient<Database>, a
|
|
|
1795
2223
|
updated_at: string | null;
|
|
1796
2224
|
user_id: string | null;
|
|
1797
2225
|
}[];
|
|
2226
|
+
SetofOptions: {
|
|
2227
|
+
from: "*";
|
|
2228
|
+
to: "app_versions";
|
|
2229
|
+
isOneToOne: false;
|
|
2230
|
+
isSetofReturn: true;
|
|
2231
|
+
};
|
|
1798
2232
|
};
|
|
1799
2233
|
get_weekly_stats: {
|
|
1800
2234
|
Args: {
|
|
@@ -1845,10 +2279,13 @@ export declare function findChannelDevices(supabase: SupabaseClient<Database>, a
|
|
|
1845
2279
|
Returns: boolean;
|
|
1846
2280
|
};
|
|
1847
2281
|
is_admin: {
|
|
1848
|
-
Args:
|
|
2282
|
+
Args: {
|
|
1849
2283
|
userid: string;
|
|
1850
2284
|
};
|
|
1851
2285
|
Returns: boolean;
|
|
2286
|
+
} | {
|
|
2287
|
+
Args: never;
|
|
2288
|
+
Returns: boolean;
|
|
1852
2289
|
};
|
|
1853
2290
|
is_allowed_action: {
|
|
1854
2291
|
Args: {
|
|
@@ -1873,10 +2310,13 @@ export declare function findChannelDevices(supabase: SupabaseClient<Database>, a
|
|
|
1873
2310
|
is_allowed_capgkey: {
|
|
1874
2311
|
Args: {
|
|
1875
2312
|
apikey: string;
|
|
1876
|
-
app_id: string;
|
|
1877
2313
|
keymode: Database["public"]["Enums"]["key_mode"][];
|
|
1878
|
-
}
|
|
2314
|
+
};
|
|
2315
|
+
Returns: boolean;
|
|
2316
|
+
} | {
|
|
2317
|
+
Args: {
|
|
1879
2318
|
apikey: string;
|
|
2319
|
+
app_id: string;
|
|
1880
2320
|
keymode: Database["public"]["Enums"]["key_mode"][];
|
|
1881
2321
|
};
|
|
1882
2322
|
Returns: boolean;
|
|
@@ -1885,13 +2325,19 @@ export declare function findChannelDevices(supabase: SupabaseClient<Database>, a
|
|
|
1885
2325
|
Args: {
|
|
1886
2326
|
apikey: string;
|
|
1887
2327
|
appid: string;
|
|
1888
|
-
}
|
|
1889
|
-
|
|
1890
|
-
|
|
2328
|
+
};
|
|
2329
|
+
Returns: boolean;
|
|
2330
|
+
} | {
|
|
2331
|
+
Args: {
|
|
1891
2332
|
appid: string;
|
|
1892
2333
|
userid: string;
|
|
1893
2334
|
};
|
|
1894
2335
|
Returns: boolean;
|
|
2336
|
+
} | {
|
|
2337
|
+
Args: {
|
|
2338
|
+
appid: string;
|
|
2339
|
+
};
|
|
2340
|
+
Returns: boolean;
|
|
1895
2341
|
};
|
|
1896
2342
|
is_bandwidth_exceeded_by_org: {
|
|
1897
2343
|
Args: {
|
|
@@ -2007,7 +2453,7 @@ export declare function findChannelDevices(supabase: SupabaseClient<Database>, a
|
|
|
2007
2453
|
Returns: string;
|
|
2008
2454
|
};
|
|
2009
2455
|
one_month_ahead: {
|
|
2010
|
-
Args:
|
|
2456
|
+
Args: never;
|
|
2011
2457
|
Returns: string;
|
|
2012
2458
|
};
|
|
2013
2459
|
parse_cron_field: {
|
|
@@ -2032,41 +2478,65 @@ export declare function findChannelDevices(supabase: SupabaseClient<Database>, a
|
|
|
2032
2478
|
Returns: undefined;
|
|
2033
2479
|
};
|
|
2034
2480
|
process_admin_stats: {
|
|
2035
|
-
Args:
|
|
2481
|
+
Args: never;
|
|
2036
2482
|
Returns: undefined;
|
|
2037
2483
|
};
|
|
2484
|
+
process_channel_device_counts_queue: {
|
|
2485
|
+
Args: {
|
|
2486
|
+
batch_size?: number;
|
|
2487
|
+
};
|
|
2488
|
+
Returns: number;
|
|
2489
|
+
};
|
|
2038
2490
|
process_cron_stats_jobs: {
|
|
2039
|
-
Args:
|
|
2491
|
+
Args: never;
|
|
2492
|
+
Returns: undefined;
|
|
2493
|
+
};
|
|
2494
|
+
process_cron_sync_sub_jobs: {
|
|
2495
|
+
Args: never;
|
|
2040
2496
|
Returns: undefined;
|
|
2041
2497
|
};
|
|
2042
2498
|
process_d1_replication_batch: {
|
|
2043
|
-
Args:
|
|
2499
|
+
Args: never;
|
|
2044
2500
|
Returns: undefined;
|
|
2045
2501
|
};
|
|
2046
2502
|
process_failed_uploads: {
|
|
2047
|
-
Args:
|
|
2503
|
+
Args: never;
|
|
2048
2504
|
Returns: undefined;
|
|
2049
2505
|
};
|
|
2050
2506
|
process_free_trial_expired: {
|
|
2051
|
-
Args:
|
|
2507
|
+
Args: never;
|
|
2052
2508
|
Returns: undefined;
|
|
2053
2509
|
};
|
|
2054
2510
|
process_function_queue: {
|
|
2055
2511
|
Args: {
|
|
2512
|
+
batch_size?: number;
|
|
2056
2513
|
queue_name: string;
|
|
2057
2514
|
};
|
|
2058
2515
|
Returns: number;
|
|
2059
2516
|
};
|
|
2517
|
+
process_manifest_bundle_counts_queue: {
|
|
2518
|
+
Args: {
|
|
2519
|
+
batch_size?: number;
|
|
2520
|
+
};
|
|
2521
|
+
Returns: number;
|
|
2522
|
+
};
|
|
2060
2523
|
process_stats_email_monthly: {
|
|
2061
|
-
Args:
|
|
2524
|
+
Args: never;
|
|
2062
2525
|
Returns: undefined;
|
|
2063
2526
|
};
|
|
2064
2527
|
process_stats_email_weekly: {
|
|
2065
|
-
Args:
|
|
2528
|
+
Args: never;
|
|
2066
2529
|
Returns: undefined;
|
|
2067
2530
|
};
|
|
2068
2531
|
process_subscribed_orgs: {
|
|
2069
|
-
Args:
|
|
2532
|
+
Args: never;
|
|
2533
|
+
Returns: undefined;
|
|
2534
|
+
};
|
|
2535
|
+
queue_cron_stat_org_for_org: {
|
|
2536
|
+
Args: {
|
|
2537
|
+
customer_id: string;
|
|
2538
|
+
org_id: string;
|
|
2539
|
+
};
|
|
2070
2540
|
Returns: undefined;
|
|
2071
2541
|
};
|
|
2072
2542
|
read_bandwidth_usage: {
|
|
@@ -2122,7 +2592,7 @@ export declare function findChannelDevices(supabase: SupabaseClient<Database>, a
|
|
|
2122
2592
|
}[];
|
|
2123
2593
|
};
|
|
2124
2594
|
remove_old_jobs: {
|
|
2125
|
-
Args:
|
|
2595
|
+
Args: never;
|
|
2126
2596
|
Returns: undefined;
|
|
2127
2597
|
};
|
|
2128
2598
|
rescind_invitation: {
|
|
@@ -2132,6 +2602,27 @@ export declare function findChannelDevices(supabase: SupabaseClient<Database>, a
|
|
|
2132
2602
|
};
|
|
2133
2603
|
Returns: string;
|
|
2134
2604
|
};
|
|
2605
|
+
seed_get_app_metrics_caches: {
|
|
2606
|
+
Args: {
|
|
2607
|
+
p_end_date: string;
|
|
2608
|
+
p_org_id: string;
|
|
2609
|
+
p_start_date: string;
|
|
2610
|
+
};
|
|
2611
|
+
Returns: {
|
|
2612
|
+
cached_at: string;
|
|
2613
|
+
end_date: string;
|
|
2614
|
+
id: number;
|
|
2615
|
+
org_id: string;
|
|
2616
|
+
response: import("../types/supabase.types").Json;
|
|
2617
|
+
start_date: string;
|
|
2618
|
+
};
|
|
2619
|
+
SetofOptions: {
|
|
2620
|
+
from: "*";
|
|
2621
|
+
to: "app_metrics_cache";
|
|
2622
|
+
isOneToOne: true;
|
|
2623
|
+
isSetofReturn: false;
|
|
2624
|
+
};
|
|
2625
|
+
};
|
|
2135
2626
|
set_bandwidth_exceeded_by_org: {
|
|
2136
2627
|
Args: {
|
|
2137
2628
|
disabled: boolean;
|
|
@@ -2153,6 +2644,10 @@ export declare function findChannelDevices(supabase: SupabaseClient<Database>, a
|
|
|
2153
2644
|
};
|
|
2154
2645
|
Returns: undefined;
|
|
2155
2646
|
};
|
|
2647
|
+
total_bundle_storage_bytes: {
|
|
2648
|
+
Args: never;
|
|
2649
|
+
Returns: number;
|
|
2650
|
+
};
|
|
2156
2651
|
transfer_app: {
|
|
2157
2652
|
Args: {
|
|
2158
2653
|
p_app_id: string;
|
|
@@ -2173,7 +2668,7 @@ export declare function findChannelDevices(supabase: SupabaseClient<Database>, a
|
|
|
2173
2668
|
Returns: Database["public"]["Enums"]["user_min_right"];
|
|
2174
2669
|
};
|
|
2175
2670
|
update_app_versions_retention: {
|
|
2176
|
-
Args:
|
|
2671
|
+
Args: never;
|
|
2177
2672
|
Returns: undefined;
|
|
2178
2673
|
};
|
|
2179
2674
|
upsert_version_meta: {
|
|
@@ -2185,18 +2680,20 @@ export declare function findChannelDevices(supabase: SupabaseClient<Database>, a
|
|
|
2185
2680
|
Returns: boolean;
|
|
2186
2681
|
};
|
|
2187
2682
|
verify_mfa: {
|
|
2188
|
-
Args:
|
|
2683
|
+
Args: never;
|
|
2189
2684
|
Returns: boolean;
|
|
2190
2685
|
};
|
|
2191
2686
|
};
|
|
2192
2687
|
Enums: {
|
|
2193
2688
|
action_type: "mau" | "storage" | "bandwidth";
|
|
2194
2689
|
app_mode: "prod" | "dev" | "livereload";
|
|
2690
|
+
credit_metric_type: "mau" | "bandwidth" | "storage";
|
|
2691
|
+
credit_transaction_type: "grant" | "purchase" | "manual_grant" | "deduction" | "expiry" | "refund";
|
|
2195
2692
|
disable_update: "major" | "minor" | "patch" | "version_number" | "none";
|
|
2196
2693
|
key_mode: "read" | "write" | "all" | "upload";
|
|
2197
2694
|
pay_as_you_go_type: "base" | "units";
|
|
2198
2695
|
platform_os: "ios" | "android";
|
|
2199
|
-
stats_action: "delete" | "reset" | "set" | "get" | "set_fail" | "update_fail" | "download_fail" | "windows_path_fail" | "canonical_path_fail" | "directory_path_fail" | "unzip_fail" | "low_mem_fail" | "download_10" | "download_20" | "download_30" | "download_40" | "download_50" | "download_60" | "download_70" | "download_80" | "download_90" | "download_complete" | "decrypt_fail" | "app_moved_to_foreground" | "app_moved_to_background" | "uninstall" | "needPlanUpgrade" | "missingBundle" | "noNew" | "disablePlatformIos" | "disablePlatformAndroid" | "disableAutoUpdateToMajor" | "cannotUpdateViaPrivateChannel" | "disableAutoUpdateToMinor" | "disableAutoUpdateToPatch" | "channelMisconfigured" | "disableAutoUpdateMetadata" | "disableAutoUpdateUnderNative" | "disableDevBuild" | "disableEmulator" | "cannotGetBundle" | "checksum_fail" | "NoChannelOrOverride" | "setChannel" | "getChannel" | "rateLimited" | "disableAutoUpdate" | "InvalidIp";
|
|
2696
|
+
stats_action: "delete" | "reset" | "set" | "get" | "set_fail" | "update_fail" | "download_fail" | "windows_path_fail" | "canonical_path_fail" | "directory_path_fail" | "unzip_fail" | "low_mem_fail" | "download_10" | "download_20" | "download_30" | "download_40" | "download_50" | "download_60" | "download_70" | "download_80" | "download_90" | "download_complete" | "decrypt_fail" | "app_moved_to_foreground" | "app_moved_to_background" | "uninstall" | "needPlanUpgrade" | "missingBundle" | "noNew" | "disablePlatformIos" | "disablePlatformAndroid" | "disableAutoUpdateToMajor" | "cannotUpdateViaPrivateChannel" | "disableAutoUpdateToMinor" | "disableAutoUpdateToPatch" | "channelMisconfigured" | "disableAutoUpdateMetadata" | "disableAutoUpdateUnderNative" | "disableDevBuild" | "disableEmulator" | "cannotGetBundle" | "checksum_fail" | "NoChannelOrOverride" | "setChannel" | "getChannel" | "rateLimited" | "disableAutoUpdate" | "ping" | "InvalidIp" | "blocked_by_server_url" | "download_manifest_start" | "download_manifest_complete" | "download_zip_start" | "download_zip_complete" | "download_manifest_file_fail" | "download_manifest_checksum_fail" | "download_manifest_brotli_fail" | "backend_refusal";
|
|
2200
2697
|
stripe_status: "created" | "succeeded" | "updated" | "failed" | "deleted" | "canceled";
|
|
2201
2698
|
usage_mode: "5min" | "day" | "month" | "cycle" | "last_saved";
|
|
2202
2699
|
user_min_right: "invite_read" | "invite_upload" | "invite_write" | "invite_admin" | "invite_super_admin" | "read" | "upload" | "write" | "admin" | "super_admin";
|
|
@@ -2313,6 +2810,39 @@ export declare function delChannelDevices(supabase: SupabaseClient<Database>, ap
|
|
|
2313
2810
|
referencedColumns: ["id"];
|
|
2314
2811
|
}];
|
|
2315
2812
|
};
|
|
2813
|
+
app_metrics_cache: {
|
|
2814
|
+
Row: {
|
|
2815
|
+
cached_at: string;
|
|
2816
|
+
end_date: string;
|
|
2817
|
+
id: number;
|
|
2818
|
+
org_id: string;
|
|
2819
|
+
response: import("../types/supabase.types").Json;
|
|
2820
|
+
start_date: string;
|
|
2821
|
+
};
|
|
2822
|
+
Insert: {
|
|
2823
|
+
cached_at?: string;
|
|
2824
|
+
end_date: string;
|
|
2825
|
+
id?: number;
|
|
2826
|
+
org_id: string;
|
|
2827
|
+
response: import("../types/supabase.types").Json;
|
|
2828
|
+
start_date: string;
|
|
2829
|
+
};
|
|
2830
|
+
Update: {
|
|
2831
|
+
cached_at?: string;
|
|
2832
|
+
end_date?: string;
|
|
2833
|
+
id?: number;
|
|
2834
|
+
org_id?: string;
|
|
2835
|
+
response?: import("../types/supabase.types").Json;
|
|
2836
|
+
start_date?: string;
|
|
2837
|
+
};
|
|
2838
|
+
Relationships: [{
|
|
2839
|
+
foreignKeyName: "app_metrics_cache_org_id_fkey";
|
|
2840
|
+
columns: ["org_id"];
|
|
2841
|
+
isOneToOne: false;
|
|
2842
|
+
referencedRelation: "orgs";
|
|
2843
|
+
referencedColumns: ["id"];
|
|
2844
|
+
}];
|
|
2845
|
+
};
|
|
2316
2846
|
app_versions: {
|
|
2317
2847
|
Row: {
|
|
2318
2848
|
app_id: string;
|
|
@@ -2439,11 +2969,13 @@ export declare function delChannelDevices(supabase: SupabaseClient<Database>, ap
|
|
|
2439
2969
|
apps: {
|
|
2440
2970
|
Row: {
|
|
2441
2971
|
app_id: string;
|
|
2972
|
+
channel_device_count: number;
|
|
2442
2973
|
created_at: string | null;
|
|
2443
2974
|
default_upload_channel: string;
|
|
2444
2975
|
icon_url: string;
|
|
2445
2976
|
id: string | null;
|
|
2446
2977
|
last_version: string | null;
|
|
2978
|
+
manifest_bundle_count: number;
|
|
2447
2979
|
name: string | null;
|
|
2448
2980
|
owner_org: string;
|
|
2449
2981
|
retention: number;
|
|
@@ -2453,11 +2985,13 @@ export declare function delChannelDevices(supabase: SupabaseClient<Database>, ap
|
|
|
2453
2985
|
};
|
|
2454
2986
|
Insert: {
|
|
2455
2987
|
app_id: string;
|
|
2988
|
+
channel_device_count?: number;
|
|
2456
2989
|
created_at?: string | null;
|
|
2457
2990
|
default_upload_channel?: string;
|
|
2458
2991
|
icon_url: string;
|
|
2459
2992
|
id?: string | null;
|
|
2460
2993
|
last_version?: string | null;
|
|
2994
|
+
manifest_bundle_count?: number;
|
|
2461
2995
|
name?: string | null;
|
|
2462
2996
|
owner_org: string;
|
|
2463
2997
|
retention?: number;
|
|
@@ -2467,11 +3001,13 @@ export declare function delChannelDevices(supabase: SupabaseClient<Database>, ap
|
|
|
2467
3001
|
};
|
|
2468
3002
|
Update: {
|
|
2469
3003
|
app_id?: string;
|
|
3004
|
+
channel_device_count?: number;
|
|
2470
3005
|
created_at?: string | null;
|
|
2471
3006
|
default_upload_channel?: string;
|
|
2472
3007
|
icon_url?: string;
|
|
2473
3008
|
id?: string | null;
|
|
2474
3009
|
last_version?: string | null;
|
|
3010
|
+
manifest_bundle_count?: number;
|
|
2475
3011
|
name?: string | null;
|
|
2476
3012
|
owner_org?: string;
|
|
2477
3013
|
retention?: number;
|
|
@@ -2521,10 +3057,10 @@ export declare function delChannelDevices(supabase: SupabaseClient<Database>, ap
|
|
|
2521
3057
|
Row: {
|
|
2522
3058
|
created_at: string;
|
|
2523
3059
|
id: number;
|
|
3060
|
+
org_id: string | null;
|
|
2524
3061
|
price_per_unit: number;
|
|
2525
3062
|
step_max: number;
|
|
2526
3063
|
step_min: number;
|
|
2527
|
-
stripe_id: string | null;
|
|
2528
3064
|
type: string;
|
|
2529
3065
|
unit_factor: number;
|
|
2530
3066
|
updated_at: string;
|
|
@@ -2532,10 +3068,10 @@ export declare function delChannelDevices(supabase: SupabaseClient<Database>, ap
|
|
|
2532
3068
|
Insert: {
|
|
2533
3069
|
created_at?: string;
|
|
2534
3070
|
id?: number;
|
|
3071
|
+
org_id?: string | null;
|
|
2535
3072
|
price_per_unit: number;
|
|
2536
3073
|
step_max: number;
|
|
2537
3074
|
step_min: number;
|
|
2538
|
-
stripe_id?: string | null;
|
|
2539
3075
|
type: string;
|
|
2540
3076
|
unit_factor?: number;
|
|
2541
3077
|
updated_at?: string;
|
|
@@ -2543,15 +3079,21 @@ export declare function delChannelDevices(supabase: SupabaseClient<Database>, ap
|
|
|
2543
3079
|
Update: {
|
|
2544
3080
|
created_at?: string;
|
|
2545
3081
|
id?: number;
|
|
3082
|
+
org_id?: string | null;
|
|
2546
3083
|
price_per_unit?: number;
|
|
2547
3084
|
step_max?: number;
|
|
2548
3085
|
step_min?: number;
|
|
2549
|
-
stripe_id?: string | null;
|
|
2550
3086
|
type?: string;
|
|
2551
3087
|
unit_factor?: number;
|
|
2552
3088
|
updated_at?: string;
|
|
2553
3089
|
};
|
|
2554
|
-
Relationships: [
|
|
3090
|
+
Relationships: [{
|
|
3091
|
+
foreignKeyName: "capgo_credits_steps_org_id_fkey";
|
|
3092
|
+
columns: ["org_id"];
|
|
3093
|
+
isOneToOne: false;
|
|
3094
|
+
referencedRelation: "orgs";
|
|
3095
|
+
referencedColumns: ["id"];
|
|
3096
|
+
}];
|
|
2555
3097
|
};
|
|
2556
3098
|
channel_devices: {
|
|
2557
3099
|
Row: {
|
|
@@ -2876,18 +3418,21 @@ export declare function delChannelDevices(supabase: SupabaseClient<Database>, ap
|
|
|
2876
3418
|
app_id: string;
|
|
2877
3419
|
device_id: string;
|
|
2878
3420
|
id: number;
|
|
3421
|
+
org_id: string;
|
|
2879
3422
|
timestamp: string;
|
|
2880
3423
|
};
|
|
2881
3424
|
Insert: {
|
|
2882
3425
|
app_id: string;
|
|
2883
3426
|
device_id: string;
|
|
2884
3427
|
id?: number;
|
|
3428
|
+
org_id: string;
|
|
2885
3429
|
timestamp?: string;
|
|
2886
3430
|
};
|
|
2887
3431
|
Update: {
|
|
2888
3432
|
app_id?: string;
|
|
2889
3433
|
device_id?: string;
|
|
2890
3434
|
id?: number;
|
|
3435
|
+
org_id?: string;
|
|
2891
3436
|
timestamp?: string;
|
|
2892
3437
|
};
|
|
2893
3438
|
Relationships: [];
|
|
@@ -2896,6 +3441,7 @@ export declare function delChannelDevices(supabase: SupabaseClient<Database>, ap
|
|
|
2896
3441
|
Row: {
|
|
2897
3442
|
app_id: string;
|
|
2898
3443
|
custom_id: string;
|
|
3444
|
+
default_channel: string | null;
|
|
2899
3445
|
device_id: string;
|
|
2900
3446
|
id: number;
|
|
2901
3447
|
is_emulator: boolean | null;
|
|
@@ -2904,12 +3450,14 @@ export declare function delChannelDevices(supabase: SupabaseClient<Database>, ap
|
|
|
2904
3450
|
platform: Database["public"]["Enums"]["platform_os"];
|
|
2905
3451
|
plugin_version: string;
|
|
2906
3452
|
updated_at: string;
|
|
2907
|
-
version: number;
|
|
3453
|
+
version: number | null;
|
|
2908
3454
|
version_build: string | null;
|
|
3455
|
+
version_name: string;
|
|
2909
3456
|
};
|
|
2910
3457
|
Insert: {
|
|
2911
3458
|
app_id: string;
|
|
2912
3459
|
custom_id?: string;
|
|
3460
|
+
default_channel?: string | null;
|
|
2913
3461
|
device_id: string;
|
|
2914
3462
|
id?: never;
|
|
2915
3463
|
is_emulator?: boolean | null;
|
|
@@ -2918,12 +3466,14 @@ export declare function delChannelDevices(supabase: SupabaseClient<Database>, ap
|
|
|
2918
3466
|
platform: Database["public"]["Enums"]["platform_os"];
|
|
2919
3467
|
plugin_version?: string;
|
|
2920
3468
|
updated_at: string;
|
|
2921
|
-
version
|
|
3469
|
+
version?: number | null;
|
|
2922
3470
|
version_build?: string | null;
|
|
3471
|
+
version_name?: string;
|
|
2923
3472
|
};
|
|
2924
3473
|
Update: {
|
|
2925
3474
|
app_id?: string;
|
|
2926
3475
|
custom_id?: string;
|
|
3476
|
+
default_channel?: string | null;
|
|
2927
3477
|
device_id?: string;
|
|
2928
3478
|
id?: never;
|
|
2929
3479
|
is_emulator?: boolean | null;
|
|
@@ -2932,8 +3482,9 @@ export declare function delChannelDevices(supabase: SupabaseClient<Database>, ap
|
|
|
2932
3482
|
platform?: Database["public"]["Enums"]["platform_os"];
|
|
2933
3483
|
plugin_version?: string;
|
|
2934
3484
|
updated_at?: string;
|
|
2935
|
-
version?: number;
|
|
3485
|
+
version?: number | null;
|
|
2936
3486
|
version_build?: string | null;
|
|
3487
|
+
version_name?: string;
|
|
2937
3488
|
};
|
|
2938
3489
|
Relationships: [];
|
|
2939
3490
|
};
|
|
@@ -2941,6 +3492,7 @@ export declare function delChannelDevices(supabase: SupabaseClient<Database>, ap
|
|
|
2941
3492
|
Row: {
|
|
2942
3493
|
apps: number;
|
|
2943
3494
|
apps_active: number | null;
|
|
3495
|
+
bundle_storage_gb: number;
|
|
2944
3496
|
created_at: string | null;
|
|
2945
3497
|
date_id: string;
|
|
2946
3498
|
devices_last_month: number | null;
|
|
@@ -2954,6 +3506,7 @@ export declare function delChannelDevices(supabase: SupabaseClient<Database>, ap
|
|
|
2954
3506
|
plan_payg: number | null;
|
|
2955
3507
|
plan_solo: number | null;
|
|
2956
3508
|
plan_team: number | null;
|
|
3509
|
+
registers_today: number;
|
|
2957
3510
|
stars: number;
|
|
2958
3511
|
success_rate: number | null;
|
|
2959
3512
|
trial: number | null;
|
|
@@ -2966,6 +3519,7 @@ export declare function delChannelDevices(supabase: SupabaseClient<Database>, ap
|
|
|
2966
3519
|
Insert: {
|
|
2967
3520
|
apps: number;
|
|
2968
3521
|
apps_active?: number | null;
|
|
3522
|
+
bundle_storage_gb?: number;
|
|
2969
3523
|
created_at?: string | null;
|
|
2970
3524
|
date_id: string;
|
|
2971
3525
|
devices_last_month?: number | null;
|
|
@@ -2979,6 +3533,7 @@ export declare function delChannelDevices(supabase: SupabaseClient<Database>, ap
|
|
|
2979
3533
|
plan_payg?: number | null;
|
|
2980
3534
|
plan_solo?: number | null;
|
|
2981
3535
|
plan_team?: number | null;
|
|
3536
|
+
registers_today?: number;
|
|
2982
3537
|
stars: number;
|
|
2983
3538
|
success_rate?: number | null;
|
|
2984
3539
|
trial?: number | null;
|
|
@@ -2991,6 +3546,7 @@ export declare function delChannelDevices(supabase: SupabaseClient<Database>, ap
|
|
|
2991
3546
|
Update: {
|
|
2992
3547
|
apps?: number;
|
|
2993
3548
|
apps_active?: number | null;
|
|
3549
|
+
bundle_storage_gb?: number;
|
|
2994
3550
|
created_at?: string | null;
|
|
2995
3551
|
date_id?: string;
|
|
2996
3552
|
devices_last_month?: number | null;
|
|
@@ -3004,6 +3560,7 @@ export declare function delChannelDevices(supabase: SupabaseClient<Database>, ap
|
|
|
3004
3560
|
plan_payg?: number | null;
|
|
3005
3561
|
plan_solo?: number | null;
|
|
3006
3562
|
plan_team?: number | null;
|
|
3563
|
+
registers_today?: number;
|
|
3007
3564
|
stars?: number;
|
|
3008
3565
|
success_rate?: number | null;
|
|
3009
3566
|
trial?: number | null;
|
|
@@ -3150,6 +3707,7 @@ export declare function delChannelDevices(supabase: SupabaseClient<Database>, ap
|
|
|
3150
3707
|
logo: string | null;
|
|
3151
3708
|
management_email: string;
|
|
3152
3709
|
name: string;
|
|
3710
|
+
stats_updated_at: string | null;
|
|
3153
3711
|
updated_at: string | null;
|
|
3154
3712
|
};
|
|
3155
3713
|
Insert: {
|
|
@@ -3160,6 +3718,7 @@ export declare function delChannelDevices(supabase: SupabaseClient<Database>, ap
|
|
|
3160
3718
|
logo?: string | null;
|
|
3161
3719
|
management_email: string;
|
|
3162
3720
|
name: string;
|
|
3721
|
+
stats_updated_at?: string | null;
|
|
3163
3722
|
updated_at?: string | null;
|
|
3164
3723
|
};
|
|
3165
3724
|
Update: {
|
|
@@ -3170,6 +3729,7 @@ export declare function delChannelDevices(supabase: SupabaseClient<Database>, ap
|
|
|
3170
3729
|
logo?: string | null;
|
|
3171
3730
|
management_email?: string;
|
|
3172
3731
|
name?: string;
|
|
3732
|
+
stats_updated_at?: string | null;
|
|
3173
3733
|
updated_at?: string | null;
|
|
3174
3734
|
};
|
|
3175
3735
|
Relationships: [{
|
|
@@ -3262,7 +3822,7 @@ export declare function delChannelDevices(supabase: SupabaseClient<Database>, ap
|
|
|
3262
3822
|
created_at: string;
|
|
3263
3823
|
device_id: string;
|
|
3264
3824
|
id: number;
|
|
3265
|
-
|
|
3825
|
+
version_name: string;
|
|
3266
3826
|
};
|
|
3267
3827
|
Insert: {
|
|
3268
3828
|
action: Database["public"]["Enums"]["stats_action"];
|
|
@@ -3270,7 +3830,7 @@ export declare function delChannelDevices(supabase: SupabaseClient<Database>, ap
|
|
|
3270
3830
|
created_at: string;
|
|
3271
3831
|
device_id: string;
|
|
3272
3832
|
id?: never;
|
|
3273
|
-
|
|
3833
|
+
version_name?: string;
|
|
3274
3834
|
};
|
|
3275
3835
|
Update: {
|
|
3276
3836
|
action?: Database["public"]["Enums"]["stats_action"];
|
|
@@ -3278,7 +3838,7 @@ export declare function delChannelDevices(supabase: SupabaseClient<Database>, ap
|
|
|
3278
3838
|
created_at?: string;
|
|
3279
3839
|
device_id?: string;
|
|
3280
3840
|
id?: never;
|
|
3281
|
-
|
|
3841
|
+
version_name?: string;
|
|
3282
3842
|
};
|
|
3283
3843
|
Relationships: [];
|
|
3284
3844
|
};
|
|
@@ -3315,6 +3875,7 @@ export declare function delChannelDevices(supabase: SupabaseClient<Database>, ap
|
|
|
3315
3875
|
id: number;
|
|
3316
3876
|
is_good_plan: boolean | null;
|
|
3317
3877
|
mau_exceeded: boolean | null;
|
|
3878
|
+
plan_calculated_at: string | null;
|
|
3318
3879
|
plan_usage: number | null;
|
|
3319
3880
|
price_id: string | null;
|
|
3320
3881
|
product_id: string;
|
|
@@ -3335,6 +3896,7 @@ export declare function delChannelDevices(supabase: SupabaseClient<Database>, ap
|
|
|
3335
3896
|
id?: number;
|
|
3336
3897
|
is_good_plan?: boolean | null;
|
|
3337
3898
|
mau_exceeded?: boolean | null;
|
|
3899
|
+
plan_calculated_at?: string | null;
|
|
3338
3900
|
plan_usage?: number | null;
|
|
3339
3901
|
price_id?: string | null;
|
|
3340
3902
|
product_id: string;
|
|
@@ -3355,6 +3917,7 @@ export declare function delChannelDevices(supabase: SupabaseClient<Database>, ap
|
|
|
3355
3917
|
id?: number;
|
|
3356
3918
|
is_good_plan?: boolean | null;
|
|
3357
3919
|
mau_exceeded?: boolean | null;
|
|
3920
|
+
plan_calculated_at?: string | null;
|
|
3358
3921
|
plan_usage?: number | null;
|
|
3359
3922
|
price_id?: string | null;
|
|
3360
3923
|
product_id?: string;
|
|
@@ -3453,6 +4016,198 @@ export declare function delChannelDevices(supabase: SupabaseClient<Database>, ap
|
|
|
3453
4016
|
referencedColumns: ["id"];
|
|
3454
4017
|
}];
|
|
3455
4018
|
};
|
|
4019
|
+
usage_credit_consumptions: {
|
|
4020
|
+
Row: {
|
|
4021
|
+
applied_at: string;
|
|
4022
|
+
credits_used: number;
|
|
4023
|
+
grant_id: string;
|
|
4024
|
+
id: number;
|
|
4025
|
+
metric: Database["public"]["Enums"]["credit_metric_type"];
|
|
4026
|
+
org_id: string;
|
|
4027
|
+
overage_event_id: string | null;
|
|
4028
|
+
};
|
|
4029
|
+
Insert: {
|
|
4030
|
+
applied_at?: string;
|
|
4031
|
+
credits_used: number;
|
|
4032
|
+
grant_id: string;
|
|
4033
|
+
id?: number;
|
|
4034
|
+
metric: Database["public"]["Enums"]["credit_metric_type"];
|
|
4035
|
+
org_id: string;
|
|
4036
|
+
overage_event_id?: string | null;
|
|
4037
|
+
};
|
|
4038
|
+
Update: {
|
|
4039
|
+
applied_at?: string;
|
|
4040
|
+
credits_used?: number;
|
|
4041
|
+
grant_id?: string;
|
|
4042
|
+
id?: number;
|
|
4043
|
+
metric?: Database["public"]["Enums"]["credit_metric_type"];
|
|
4044
|
+
org_id?: string;
|
|
4045
|
+
overage_event_id?: string | null;
|
|
4046
|
+
};
|
|
4047
|
+
Relationships: [{
|
|
4048
|
+
foreignKeyName: "usage_credit_consumptions_grant_id_fkey";
|
|
4049
|
+
columns: ["grant_id"];
|
|
4050
|
+
isOneToOne: false;
|
|
4051
|
+
referencedRelation: "usage_credit_grants";
|
|
4052
|
+
referencedColumns: ["id"];
|
|
4053
|
+
}, {
|
|
4054
|
+
foreignKeyName: "usage_credit_consumptions_org_id_fkey";
|
|
4055
|
+
columns: ["org_id"];
|
|
4056
|
+
isOneToOne: false;
|
|
4057
|
+
referencedRelation: "orgs";
|
|
4058
|
+
referencedColumns: ["id"];
|
|
4059
|
+
}, {
|
|
4060
|
+
foreignKeyName: "usage_credit_consumptions_overage_event_id_fkey";
|
|
4061
|
+
columns: ["overage_event_id"];
|
|
4062
|
+
isOneToOne: false;
|
|
4063
|
+
referencedRelation: "usage_overage_events";
|
|
4064
|
+
referencedColumns: ["id"];
|
|
4065
|
+
}];
|
|
4066
|
+
};
|
|
4067
|
+
usage_credit_grants: {
|
|
4068
|
+
Row: {
|
|
4069
|
+
credits_consumed: number;
|
|
4070
|
+
credits_total: number;
|
|
4071
|
+
expires_at: string;
|
|
4072
|
+
granted_at: string;
|
|
4073
|
+
id: string;
|
|
4074
|
+
notes: string | null;
|
|
4075
|
+
org_id: string;
|
|
4076
|
+
source: string;
|
|
4077
|
+
source_ref: import("../types/supabase.types").Json | null;
|
|
4078
|
+
};
|
|
4079
|
+
Insert: {
|
|
4080
|
+
credits_consumed?: number;
|
|
4081
|
+
credits_total: number;
|
|
4082
|
+
expires_at?: string;
|
|
4083
|
+
granted_at?: string;
|
|
4084
|
+
id?: string;
|
|
4085
|
+
notes?: string | null;
|
|
4086
|
+
org_id: string;
|
|
4087
|
+
source?: string;
|
|
4088
|
+
source_ref?: import("../types/supabase.types").Json | null;
|
|
4089
|
+
};
|
|
4090
|
+
Update: {
|
|
4091
|
+
credits_consumed?: number;
|
|
4092
|
+
credits_total?: number;
|
|
4093
|
+
expires_at?: string;
|
|
4094
|
+
granted_at?: string;
|
|
4095
|
+
id?: string;
|
|
4096
|
+
notes?: string | null;
|
|
4097
|
+
org_id?: string;
|
|
4098
|
+
source?: string;
|
|
4099
|
+
source_ref?: import("../types/supabase.types").Json | null;
|
|
4100
|
+
};
|
|
4101
|
+
Relationships: [{
|
|
4102
|
+
foreignKeyName: "usage_credit_grants_org_id_fkey";
|
|
4103
|
+
columns: ["org_id"];
|
|
4104
|
+
isOneToOne: false;
|
|
4105
|
+
referencedRelation: "orgs";
|
|
4106
|
+
referencedColumns: ["id"];
|
|
4107
|
+
}];
|
|
4108
|
+
};
|
|
4109
|
+
usage_credit_transactions: {
|
|
4110
|
+
Row: {
|
|
4111
|
+
amount: number;
|
|
4112
|
+
balance_after: number | null;
|
|
4113
|
+
description: string | null;
|
|
4114
|
+
grant_id: string | null;
|
|
4115
|
+
id: number;
|
|
4116
|
+
occurred_at: string;
|
|
4117
|
+
org_id: string;
|
|
4118
|
+
source_ref: import("../types/supabase.types").Json | null;
|
|
4119
|
+
transaction_type: Database["public"]["Enums"]["credit_transaction_type"];
|
|
4120
|
+
};
|
|
4121
|
+
Insert: {
|
|
4122
|
+
amount: number;
|
|
4123
|
+
balance_after?: number | null;
|
|
4124
|
+
description?: string | null;
|
|
4125
|
+
grant_id?: string | null;
|
|
4126
|
+
id?: number;
|
|
4127
|
+
occurred_at?: string;
|
|
4128
|
+
org_id: string;
|
|
4129
|
+
source_ref?: import("../types/supabase.types").Json | null;
|
|
4130
|
+
transaction_type: Database["public"]["Enums"]["credit_transaction_type"];
|
|
4131
|
+
};
|
|
4132
|
+
Update: {
|
|
4133
|
+
amount?: number;
|
|
4134
|
+
balance_after?: number | null;
|
|
4135
|
+
description?: string | null;
|
|
4136
|
+
grant_id?: string | null;
|
|
4137
|
+
id?: number;
|
|
4138
|
+
occurred_at?: string;
|
|
4139
|
+
org_id?: string;
|
|
4140
|
+
source_ref?: import("../types/supabase.types").Json | null;
|
|
4141
|
+
transaction_type?: Database["public"]["Enums"]["credit_transaction_type"];
|
|
4142
|
+
};
|
|
4143
|
+
Relationships: [{
|
|
4144
|
+
foreignKeyName: "usage_credit_transactions_grant_id_fkey";
|
|
4145
|
+
columns: ["grant_id"];
|
|
4146
|
+
isOneToOne: false;
|
|
4147
|
+
referencedRelation: "usage_credit_grants";
|
|
4148
|
+
referencedColumns: ["id"];
|
|
4149
|
+
}, {
|
|
4150
|
+
foreignKeyName: "usage_credit_transactions_org_id_fkey";
|
|
4151
|
+
columns: ["org_id"];
|
|
4152
|
+
isOneToOne: false;
|
|
4153
|
+
referencedRelation: "orgs";
|
|
4154
|
+
referencedColumns: ["id"];
|
|
4155
|
+
}];
|
|
4156
|
+
};
|
|
4157
|
+
usage_overage_events: {
|
|
4158
|
+
Row: {
|
|
4159
|
+
billing_cycle_end: string | null;
|
|
4160
|
+
billing_cycle_start: string | null;
|
|
4161
|
+
created_at: string;
|
|
4162
|
+
credit_step_id: number | null;
|
|
4163
|
+
credits_debited: number;
|
|
4164
|
+
credits_estimated: number;
|
|
4165
|
+
details: import("../types/supabase.types").Json | null;
|
|
4166
|
+
id: string;
|
|
4167
|
+
metric: Database["public"]["Enums"]["credit_metric_type"];
|
|
4168
|
+
org_id: string;
|
|
4169
|
+
overage_amount: number;
|
|
4170
|
+
};
|
|
4171
|
+
Insert: {
|
|
4172
|
+
billing_cycle_end?: string | null;
|
|
4173
|
+
billing_cycle_start?: string | null;
|
|
4174
|
+
created_at?: string;
|
|
4175
|
+
credit_step_id?: number | null;
|
|
4176
|
+
credits_debited?: number;
|
|
4177
|
+
credits_estimated: number;
|
|
4178
|
+
details?: import("../types/supabase.types").Json | null;
|
|
4179
|
+
id?: string;
|
|
4180
|
+
metric: Database["public"]["Enums"]["credit_metric_type"];
|
|
4181
|
+
org_id: string;
|
|
4182
|
+
overage_amount: number;
|
|
4183
|
+
};
|
|
4184
|
+
Update: {
|
|
4185
|
+
billing_cycle_end?: string | null;
|
|
4186
|
+
billing_cycle_start?: string | null;
|
|
4187
|
+
created_at?: string;
|
|
4188
|
+
credit_step_id?: number | null;
|
|
4189
|
+
credits_debited?: number;
|
|
4190
|
+
credits_estimated?: number;
|
|
4191
|
+
details?: import("../types/supabase.types").Json | null;
|
|
4192
|
+
id?: string;
|
|
4193
|
+
metric?: Database["public"]["Enums"]["credit_metric_type"];
|
|
4194
|
+
org_id?: string;
|
|
4195
|
+
overage_amount?: number;
|
|
4196
|
+
};
|
|
4197
|
+
Relationships: [{
|
|
4198
|
+
foreignKeyName: "usage_overage_events_credit_step_id_fkey";
|
|
4199
|
+
columns: ["credit_step_id"];
|
|
4200
|
+
isOneToOne: false;
|
|
4201
|
+
referencedRelation: "capgo_credits_steps";
|
|
4202
|
+
referencedColumns: ["id"];
|
|
4203
|
+
}, {
|
|
4204
|
+
foreignKeyName: "usage_overage_events_org_id_fkey";
|
|
4205
|
+
columns: ["org_id"];
|
|
4206
|
+
isOneToOne: false;
|
|
4207
|
+
referencedRelation: "orgs";
|
|
4208
|
+
referencedColumns: ["id"];
|
|
4209
|
+
}];
|
|
4210
|
+
};
|
|
3456
4211
|
users: {
|
|
3457
4212
|
Row: {
|
|
3458
4213
|
ban_time: string | null;
|
|
@@ -3538,7 +4293,23 @@ export declare function delChannelDevices(supabase: SupabaseClient<Database>, ap
|
|
|
3538
4293
|
Relationships: [];
|
|
3539
4294
|
};
|
|
3540
4295
|
};
|
|
3541
|
-
Views: {
|
|
4296
|
+
Views: {
|
|
4297
|
+
usage_credit_balances: {
|
|
4298
|
+
Row: {
|
|
4299
|
+
available_credits: number | null;
|
|
4300
|
+
next_expiration: string | null;
|
|
4301
|
+
org_id: string | null;
|
|
4302
|
+
total_credits: number | null;
|
|
4303
|
+
};
|
|
4304
|
+
Relationships: [{
|
|
4305
|
+
foreignKeyName: "usage_credit_grants_org_id_fkey";
|
|
4306
|
+
columns: ["org_id"];
|
|
4307
|
+
isOneToOne: false;
|
|
4308
|
+
referencedRelation: "orgs";
|
|
4309
|
+
referencedColumns: ["id"];
|
|
4310
|
+
}];
|
|
4311
|
+
};
|
|
4312
|
+
};
|
|
3542
4313
|
Functions: {
|
|
3543
4314
|
accept_invitation_to_org: {
|
|
3544
4315
|
Args: {
|
|
@@ -3546,13 +4317,47 @@ export declare function delChannelDevices(supabase: SupabaseClient<Database>, ap
|
|
|
3546
4317
|
};
|
|
3547
4318
|
Returns: string;
|
|
3548
4319
|
};
|
|
4320
|
+
apply_usage_overage: {
|
|
4321
|
+
Args: {
|
|
4322
|
+
p_billing_cycle_end: string;
|
|
4323
|
+
p_billing_cycle_start: string;
|
|
4324
|
+
p_details?: import("../types/supabase.types").Json;
|
|
4325
|
+
p_metric: Database["public"]["Enums"]["credit_metric_type"];
|
|
4326
|
+
p_org_id: string;
|
|
4327
|
+
p_overage_amount: number;
|
|
4328
|
+
};
|
|
4329
|
+
Returns: {
|
|
4330
|
+
credit_step_id: number;
|
|
4331
|
+
credits_applied: number;
|
|
4332
|
+
credits_remaining: number;
|
|
4333
|
+
credits_required: number;
|
|
4334
|
+
overage_amount: number;
|
|
4335
|
+
overage_covered: number;
|
|
4336
|
+
overage_event_id: string;
|
|
4337
|
+
overage_unpaid: number;
|
|
4338
|
+
}[];
|
|
4339
|
+
};
|
|
4340
|
+
calculate_credit_cost: {
|
|
4341
|
+
Args: {
|
|
4342
|
+
p_metric: Database["public"]["Enums"]["credit_metric_type"];
|
|
4343
|
+
p_overage_amount: number;
|
|
4344
|
+
};
|
|
4345
|
+
Returns: {
|
|
4346
|
+
credit_cost_per_unit: number;
|
|
4347
|
+
credit_step_id: number;
|
|
4348
|
+
credits_required: number;
|
|
4349
|
+
}[];
|
|
4350
|
+
};
|
|
3549
4351
|
check_min_rights: {
|
|
3550
4352
|
Args: {
|
|
3551
4353
|
app_id: string;
|
|
3552
4354
|
channel_id: number;
|
|
3553
4355
|
min_right: Database["public"]["Enums"]["user_min_right"];
|
|
3554
4356
|
org_id: string;
|
|
3555
|
-
}
|
|
4357
|
+
};
|
|
4358
|
+
Returns: boolean;
|
|
4359
|
+
} | {
|
|
4360
|
+
Args: {
|
|
3556
4361
|
app_id: string;
|
|
3557
4362
|
channel_id: number;
|
|
3558
4363
|
min_right: Database["public"]["Enums"]["user_min_right"];
|
|
@@ -3568,22 +4373,22 @@ export declare function delChannelDevices(supabase: SupabaseClient<Database>, ap
|
|
|
3568
4373
|
Returns: number;
|
|
3569
4374
|
};
|
|
3570
4375
|
cleanup_frequent_job_details: {
|
|
3571
|
-
Args:
|
|
4376
|
+
Args: never;
|
|
3572
4377
|
Returns: undefined;
|
|
3573
4378
|
};
|
|
3574
4379
|
cleanup_queue_messages: {
|
|
3575
|
-
Args:
|
|
4380
|
+
Args: never;
|
|
3576
4381
|
Returns: undefined;
|
|
3577
4382
|
};
|
|
3578
4383
|
convert_bytes_to_gb: {
|
|
3579
4384
|
Args: {
|
|
3580
|
-
|
|
4385
|
+
bytes_value: number;
|
|
3581
4386
|
};
|
|
3582
4387
|
Returns: number;
|
|
3583
4388
|
};
|
|
3584
4389
|
convert_bytes_to_mb: {
|
|
3585
4390
|
Args: {
|
|
3586
|
-
|
|
4391
|
+
bytes_value: number;
|
|
3587
4392
|
};
|
|
3588
4393
|
Returns: number;
|
|
3589
4394
|
};
|
|
@@ -3613,22 +4418,22 @@ export declare function delChannelDevices(supabase: SupabaseClient<Database>, ap
|
|
|
3613
4418
|
Returns: number;
|
|
3614
4419
|
};
|
|
3615
4420
|
count_all_need_upgrade: {
|
|
3616
|
-
Args:
|
|
4421
|
+
Args: never;
|
|
3617
4422
|
Returns: number;
|
|
3618
4423
|
};
|
|
3619
4424
|
count_all_onboarded: {
|
|
3620
|
-
Args:
|
|
4425
|
+
Args: never;
|
|
3621
4426
|
Returns: number;
|
|
3622
4427
|
};
|
|
3623
4428
|
count_all_plans_v2: {
|
|
3624
|
-
Args:
|
|
4429
|
+
Args: never;
|
|
3625
4430
|
Returns: {
|
|
3626
4431
|
count: number;
|
|
3627
4432
|
plan_name: string;
|
|
3628
4433
|
}[];
|
|
3629
4434
|
};
|
|
3630
4435
|
delete_accounts_marked_for_deletion: {
|
|
3631
|
-
Args:
|
|
4436
|
+
Args: never;
|
|
3632
4437
|
Returns: {
|
|
3633
4438
|
deleted_count: number;
|
|
3634
4439
|
deleted_user_ids: string[];
|
|
@@ -3641,11 +4446,11 @@ export declare function delChannelDevices(supabase: SupabaseClient<Database>, ap
|
|
|
3641
4446
|
Returns: undefined;
|
|
3642
4447
|
};
|
|
3643
4448
|
delete_old_deleted_apps: {
|
|
3644
|
-
Args:
|
|
4449
|
+
Args: never;
|
|
3645
4450
|
Returns: undefined;
|
|
3646
4451
|
};
|
|
3647
4452
|
delete_user: {
|
|
3648
|
-
Args:
|
|
4453
|
+
Args: never;
|
|
3649
4454
|
Returns: undefined;
|
|
3650
4455
|
};
|
|
3651
4456
|
exist_app_v2: {
|
|
@@ -3656,15 +4461,22 @@ export declare function delChannelDevices(supabase: SupabaseClient<Database>, ap
|
|
|
3656
4461
|
};
|
|
3657
4462
|
exist_app_versions: {
|
|
3658
4463
|
Args: {
|
|
3659
|
-
apikey: string;
|
|
3660
4464
|
appid: string;
|
|
3661
4465
|
name_version: string;
|
|
3662
|
-
}
|
|
4466
|
+
};
|
|
4467
|
+
Returns: boolean;
|
|
4468
|
+
} | {
|
|
4469
|
+
Args: {
|
|
4470
|
+
apikey: string;
|
|
3663
4471
|
appid: string;
|
|
3664
4472
|
name_version: string;
|
|
3665
4473
|
};
|
|
3666
4474
|
Returns: boolean;
|
|
3667
4475
|
};
|
|
4476
|
+
expire_usage_credits: {
|
|
4477
|
+
Args: never;
|
|
4478
|
+
Returns: number;
|
|
4479
|
+
};
|
|
3668
4480
|
find_best_plan_v3: {
|
|
3669
4481
|
Args: {
|
|
3670
4482
|
bandwidth: number;
|
|
@@ -3690,19 +4502,15 @@ export declare function delChannelDevices(supabase: SupabaseClient<Database>, ap
|
|
|
3690
4502
|
Returns: string;
|
|
3691
4503
|
};
|
|
3692
4504
|
get_apikey: {
|
|
3693
|
-
Args:
|
|
4505
|
+
Args: never;
|
|
3694
4506
|
Returns: string;
|
|
3695
4507
|
};
|
|
3696
4508
|
get_apikey_header: {
|
|
3697
|
-
Args:
|
|
4509
|
+
Args: never;
|
|
3698
4510
|
Returns: string;
|
|
3699
4511
|
};
|
|
3700
4512
|
get_app_metrics: {
|
|
3701
4513
|
Args: {
|
|
3702
|
-
end_date: string;
|
|
3703
|
-
org_id: string;
|
|
3704
|
-
start_date: string;
|
|
3705
|
-
} | {
|
|
3706
4514
|
org_id: string;
|
|
3707
4515
|
};
|
|
3708
4516
|
Returns: {
|
|
@@ -3716,6 +4524,23 @@ export declare function delChannelDevices(supabase: SupabaseClient<Database>, ap
|
|
|
3716
4524
|
storage: number;
|
|
3717
4525
|
uninstall: number;
|
|
3718
4526
|
}[];
|
|
4527
|
+
} | {
|
|
4528
|
+
Args: {
|
|
4529
|
+
p_end_date: string;
|
|
4530
|
+
p_org_id: string;
|
|
4531
|
+
p_start_date: string;
|
|
4532
|
+
};
|
|
4533
|
+
Returns: {
|
|
4534
|
+
app_id: string;
|
|
4535
|
+
bandwidth: number;
|
|
4536
|
+
date: string;
|
|
4537
|
+
fail: number;
|
|
4538
|
+
get: number;
|
|
4539
|
+
install: number;
|
|
4540
|
+
mau: number;
|
|
4541
|
+
storage: number;
|
|
4542
|
+
uninstall: number;
|
|
4543
|
+
}[];
|
|
3719
4544
|
};
|
|
3720
4545
|
get_app_versions: {
|
|
3721
4546
|
Args: {
|
|
@@ -3742,7 +4567,7 @@ export declare function delChannelDevices(supabase: SupabaseClient<Database>, ap
|
|
|
3742
4567
|
Returns: string;
|
|
3743
4568
|
};
|
|
3744
4569
|
get_customer_counts: {
|
|
3745
|
-
Args:
|
|
4570
|
+
Args: never;
|
|
3746
4571
|
Returns: {
|
|
3747
4572
|
monthly: number;
|
|
3748
4573
|
total: number;
|
|
@@ -3758,21 +4583,37 @@ export declare function delChannelDevices(supabase: SupabaseClient<Database>, ap
|
|
|
3758
4583
|
subscription_anchor_start: string;
|
|
3759
4584
|
}[];
|
|
3760
4585
|
};
|
|
4586
|
+
get_d1_sync_url: {
|
|
4587
|
+
Args: never;
|
|
4588
|
+
Returns: string;
|
|
4589
|
+
};
|
|
3761
4590
|
get_d1_webhook_signature: {
|
|
3762
|
-
Args:
|
|
4591
|
+
Args: never;
|
|
3763
4592
|
Returns: string;
|
|
3764
4593
|
};
|
|
3765
4594
|
get_db_url: {
|
|
3766
|
-
Args:
|
|
4595
|
+
Args: never;
|
|
3767
4596
|
Returns: string;
|
|
3768
4597
|
};
|
|
3769
4598
|
get_global_metrics: {
|
|
4599
|
+
Args: {
|
|
4600
|
+
org_id: string;
|
|
4601
|
+
};
|
|
4602
|
+
Returns: {
|
|
4603
|
+
bandwidth: number;
|
|
4604
|
+
date: string;
|
|
4605
|
+
fail: number;
|
|
4606
|
+
get: number;
|
|
4607
|
+
install: number;
|
|
4608
|
+
mau: number;
|
|
4609
|
+
storage: number;
|
|
4610
|
+
uninstall: number;
|
|
4611
|
+
}[];
|
|
4612
|
+
} | {
|
|
3770
4613
|
Args: {
|
|
3771
4614
|
end_date: string;
|
|
3772
4615
|
org_id: string;
|
|
3773
4616
|
start_date: string;
|
|
3774
|
-
} | {
|
|
3775
|
-
org_id: string;
|
|
3776
4617
|
};
|
|
3777
4618
|
Returns: {
|
|
3778
4619
|
bandwidth: number;
|
|
@@ -3786,7 +4627,10 @@ export declare function delChannelDevices(supabase: SupabaseClient<Database>, ap
|
|
|
3786
4627
|
}[];
|
|
3787
4628
|
};
|
|
3788
4629
|
get_identity: {
|
|
3789
|
-
Args:
|
|
4630
|
+
Args: never;
|
|
4631
|
+
Returns: string;
|
|
4632
|
+
} | {
|
|
4633
|
+
Args: {
|
|
3790
4634
|
keymode: Database["public"]["Enums"]["key_mode"][];
|
|
3791
4635
|
};
|
|
3792
4636
|
Returns: string;
|
|
@@ -3823,10 +4667,25 @@ export declare function delChannelDevices(supabase: SupabaseClient<Database>, ap
|
|
|
3823
4667
|
}[];
|
|
3824
4668
|
};
|
|
3825
4669
|
get_metered_usage: {
|
|
3826
|
-
Args:
|
|
4670
|
+
Args: {
|
|
3827
4671
|
orgid: string;
|
|
3828
4672
|
};
|
|
3829
4673
|
Returns: Database["public"]["CompositeTypes"]["stats_table"];
|
|
4674
|
+
SetofOptions: {
|
|
4675
|
+
from: "*";
|
|
4676
|
+
to: "stats_table";
|
|
4677
|
+
isOneToOne: true;
|
|
4678
|
+
isSetofReturn: false;
|
|
4679
|
+
};
|
|
4680
|
+
} | {
|
|
4681
|
+
Args: never;
|
|
4682
|
+
Returns: Database["public"]["CompositeTypes"]["stats_table"];
|
|
4683
|
+
SetofOptions: {
|
|
4684
|
+
from: "*";
|
|
4685
|
+
to: "stats_table";
|
|
4686
|
+
isOneToOne: true;
|
|
4687
|
+
isSetofReturn: false;
|
|
4688
|
+
};
|
|
3830
4689
|
};
|
|
3831
4690
|
get_next_cron_time: {
|
|
3832
4691
|
Args: {
|
|
@@ -3843,11 +4702,15 @@ export declare function delChannelDevices(supabase: SupabaseClient<Database>, ap
|
|
|
3843
4702
|
};
|
|
3844
4703
|
Returns: number;
|
|
3845
4704
|
};
|
|
4705
|
+
get_next_stats_update_date: {
|
|
4706
|
+
Args: {
|
|
4707
|
+
org: string;
|
|
4708
|
+
};
|
|
4709
|
+
Returns: string;
|
|
4710
|
+
};
|
|
3846
4711
|
get_org_members: {
|
|
3847
4712
|
Args: {
|
|
3848
4713
|
guild_id: string;
|
|
3849
|
-
} | {
|
|
3850
|
-
guild_id: string;
|
|
3851
4714
|
user_id: string;
|
|
3852
4715
|
};
|
|
3853
4716
|
Returns: {
|
|
@@ -3858,6 +4721,18 @@ export declare function delChannelDevices(supabase: SupabaseClient<Database>, ap
|
|
|
3858
4721
|
role: Database["public"]["Enums"]["user_min_right"];
|
|
3859
4722
|
uid: string;
|
|
3860
4723
|
}[];
|
|
4724
|
+
} | {
|
|
4725
|
+
Args: {
|
|
4726
|
+
guild_id: string;
|
|
4727
|
+
};
|
|
4728
|
+
Returns: {
|
|
4729
|
+
aid: number;
|
|
4730
|
+
email: string;
|
|
4731
|
+
image_url: string;
|
|
4732
|
+
is_tmp: boolean;
|
|
4733
|
+
role: Database["public"]["Enums"]["user_min_right"];
|
|
4734
|
+
uid: string;
|
|
4735
|
+
}[];
|
|
3861
4736
|
};
|
|
3862
4737
|
get_org_owner_id: {
|
|
3863
4738
|
Args: {
|
|
@@ -3881,33 +4756,69 @@ export declare function delChannelDevices(supabase: SupabaseClient<Database>, ap
|
|
|
3881
4756
|
Returns: import("../types/supabase.types").Json[];
|
|
3882
4757
|
};
|
|
3883
4758
|
get_orgs_v6: {
|
|
3884
|
-
Args:
|
|
4759
|
+
Args: never;
|
|
4760
|
+
Returns: {
|
|
4761
|
+
app_count: number;
|
|
4762
|
+
can_use_more: boolean;
|
|
4763
|
+
created_by: string;
|
|
4764
|
+
credit_available: number;
|
|
4765
|
+
credit_next_expiration: string;
|
|
4766
|
+
credit_total: number;
|
|
4767
|
+
gid: string;
|
|
4768
|
+
is_canceled: boolean;
|
|
4769
|
+
is_yearly: boolean;
|
|
4770
|
+
logo: string;
|
|
4771
|
+
management_email: string;
|
|
4772
|
+
name: string;
|
|
4773
|
+
next_stats_update_at: string;
|
|
4774
|
+
paying: boolean;
|
|
4775
|
+
role: string;
|
|
4776
|
+
stats_updated_at: string;
|
|
4777
|
+
subscription_end: string;
|
|
4778
|
+
subscription_start: string;
|
|
4779
|
+
trial_left: number;
|
|
4780
|
+
}[];
|
|
4781
|
+
} | {
|
|
4782
|
+
Args: {
|
|
3885
4783
|
userid: string;
|
|
3886
4784
|
};
|
|
3887
4785
|
Returns: {
|
|
3888
4786
|
app_count: number;
|
|
3889
4787
|
can_use_more: boolean;
|
|
3890
4788
|
created_by: string;
|
|
4789
|
+
credit_available: number;
|
|
4790
|
+
credit_next_expiration: string;
|
|
4791
|
+
credit_total: number;
|
|
3891
4792
|
gid: string;
|
|
3892
4793
|
is_canceled: boolean;
|
|
3893
4794
|
is_yearly: boolean;
|
|
3894
4795
|
logo: string;
|
|
3895
4796
|
management_email: string;
|
|
3896
4797
|
name: string;
|
|
4798
|
+
next_stats_update_at: string;
|
|
3897
4799
|
paying: boolean;
|
|
3898
4800
|
role: string;
|
|
4801
|
+
stats_updated_at: string;
|
|
3899
4802
|
subscription_end: string;
|
|
3900
4803
|
subscription_start: string;
|
|
3901
4804
|
trial_left: number;
|
|
3902
4805
|
}[];
|
|
3903
4806
|
};
|
|
3904
4807
|
get_plan_usage_percent_detailed: {
|
|
4808
|
+
Args: {
|
|
4809
|
+
orgid: string;
|
|
4810
|
+
};
|
|
4811
|
+
Returns: {
|
|
4812
|
+
bandwidth_percent: number;
|
|
4813
|
+
mau_percent: number;
|
|
4814
|
+
storage_percent: number;
|
|
4815
|
+
total_percent: number;
|
|
4816
|
+
}[];
|
|
4817
|
+
} | {
|
|
3905
4818
|
Args: {
|
|
3906
4819
|
cycle_end: string;
|
|
3907
4820
|
cycle_start: string;
|
|
3908
4821
|
orgid: string;
|
|
3909
|
-
} | {
|
|
3910
|
-
orgid: string;
|
|
3911
4822
|
};
|
|
3912
4823
|
Returns: {
|
|
3913
4824
|
bandwidth_percent: number;
|
|
@@ -3917,7 +4828,7 @@ export declare function delChannelDevices(supabase: SupabaseClient<Database>, ap
|
|
|
3917
4828
|
}[];
|
|
3918
4829
|
};
|
|
3919
4830
|
get_process_cron_stats_job_info: {
|
|
3920
|
-
Args:
|
|
4831
|
+
Args: never;
|
|
3921
4832
|
Returns: {
|
|
3922
4833
|
last_run: string;
|
|
3923
4834
|
next_run: string;
|
|
@@ -3931,12 +4842,23 @@ export declare function delChannelDevices(supabase: SupabaseClient<Database>, ap
|
|
|
3931
4842
|
Returns: number;
|
|
3932
4843
|
};
|
|
3933
4844
|
get_total_metrics: {
|
|
4845
|
+
Args: {
|
|
4846
|
+
org_id: string;
|
|
4847
|
+
};
|
|
4848
|
+
Returns: {
|
|
4849
|
+
bandwidth: number;
|
|
4850
|
+
fail: number;
|
|
4851
|
+
get: number;
|
|
4852
|
+
install: number;
|
|
4853
|
+
mau: number;
|
|
4854
|
+
storage: number;
|
|
4855
|
+
uninstall: number;
|
|
4856
|
+
}[];
|
|
4857
|
+
} | {
|
|
3934
4858
|
Args: {
|
|
3935
4859
|
end_date: string;
|
|
3936
4860
|
org_id: string;
|
|
3937
4861
|
start_date: string;
|
|
3938
|
-
} | {
|
|
3939
|
-
org_id: string;
|
|
3940
4862
|
};
|
|
3941
4863
|
Returns: {
|
|
3942
4864
|
bandwidth: number;
|
|
@@ -3955,7 +4877,7 @@ export declare function delChannelDevices(supabase: SupabaseClient<Database>, ap
|
|
|
3955
4877
|
Returns: number;
|
|
3956
4878
|
};
|
|
3957
4879
|
get_update_stats: {
|
|
3958
|
-
Args:
|
|
4880
|
+
Args: never;
|
|
3959
4881
|
Returns: {
|
|
3960
4882
|
app_id: string;
|
|
3961
4883
|
failed: number;
|
|
@@ -3968,11 +4890,14 @@ export declare function delChannelDevices(supabase: SupabaseClient<Database>, ap
|
|
|
3968
4890
|
get_user_id: {
|
|
3969
4891
|
Args: {
|
|
3970
4892
|
apikey: string;
|
|
3971
|
-
} | {
|
|
3972
|
-
apikey: string;
|
|
3973
4893
|
app_id: string;
|
|
3974
4894
|
};
|
|
3975
4895
|
Returns: string;
|
|
4896
|
+
} | {
|
|
4897
|
+
Args: {
|
|
4898
|
+
apikey: string;
|
|
4899
|
+
};
|
|
4900
|
+
Returns: string;
|
|
3976
4901
|
};
|
|
3977
4902
|
get_user_main_org_id: {
|
|
3978
4903
|
Args: {
|
|
@@ -3987,7 +4912,7 @@ export declare function delChannelDevices(supabase: SupabaseClient<Database>, ap
|
|
|
3987
4912
|
Returns: string;
|
|
3988
4913
|
};
|
|
3989
4914
|
get_versions_with_no_metadata: {
|
|
3990
|
-
Args:
|
|
4915
|
+
Args: never;
|
|
3991
4916
|
Returns: {
|
|
3992
4917
|
app_id: string;
|
|
3993
4918
|
checksum: string | null;
|
|
@@ -4008,6 +4933,12 @@ export declare function delChannelDevices(supabase: SupabaseClient<Database>, ap
|
|
|
4008
4933
|
updated_at: string | null;
|
|
4009
4934
|
user_id: string | null;
|
|
4010
4935
|
}[];
|
|
4936
|
+
SetofOptions: {
|
|
4937
|
+
from: "*";
|
|
4938
|
+
to: "app_versions";
|
|
4939
|
+
isOneToOne: false;
|
|
4940
|
+
isSetofReturn: true;
|
|
4941
|
+
};
|
|
4011
4942
|
};
|
|
4012
4943
|
get_weekly_stats: {
|
|
4013
4944
|
Args: {
|
|
@@ -4058,10 +4989,13 @@ export declare function delChannelDevices(supabase: SupabaseClient<Database>, ap
|
|
|
4058
4989
|
Returns: boolean;
|
|
4059
4990
|
};
|
|
4060
4991
|
is_admin: {
|
|
4061
|
-
Args:
|
|
4992
|
+
Args: {
|
|
4062
4993
|
userid: string;
|
|
4063
4994
|
};
|
|
4064
4995
|
Returns: boolean;
|
|
4996
|
+
} | {
|
|
4997
|
+
Args: never;
|
|
4998
|
+
Returns: boolean;
|
|
4065
4999
|
};
|
|
4066
5000
|
is_allowed_action: {
|
|
4067
5001
|
Args: {
|
|
@@ -4086,10 +5020,13 @@ export declare function delChannelDevices(supabase: SupabaseClient<Database>, ap
|
|
|
4086
5020
|
is_allowed_capgkey: {
|
|
4087
5021
|
Args: {
|
|
4088
5022
|
apikey: string;
|
|
4089
|
-
app_id: string;
|
|
4090
5023
|
keymode: Database["public"]["Enums"]["key_mode"][];
|
|
4091
|
-
}
|
|
5024
|
+
};
|
|
5025
|
+
Returns: boolean;
|
|
5026
|
+
} | {
|
|
5027
|
+
Args: {
|
|
4092
5028
|
apikey: string;
|
|
5029
|
+
app_id: string;
|
|
4093
5030
|
keymode: Database["public"]["Enums"]["key_mode"][];
|
|
4094
5031
|
};
|
|
4095
5032
|
Returns: boolean;
|
|
@@ -4098,13 +5035,19 @@ export declare function delChannelDevices(supabase: SupabaseClient<Database>, ap
|
|
|
4098
5035
|
Args: {
|
|
4099
5036
|
apikey: string;
|
|
4100
5037
|
appid: string;
|
|
4101
|
-
}
|
|
4102
|
-
|
|
4103
|
-
|
|
5038
|
+
};
|
|
5039
|
+
Returns: boolean;
|
|
5040
|
+
} | {
|
|
5041
|
+
Args: {
|
|
4104
5042
|
appid: string;
|
|
4105
5043
|
userid: string;
|
|
4106
5044
|
};
|
|
4107
5045
|
Returns: boolean;
|
|
5046
|
+
} | {
|
|
5047
|
+
Args: {
|
|
5048
|
+
appid: string;
|
|
5049
|
+
};
|
|
5050
|
+
Returns: boolean;
|
|
4108
5051
|
};
|
|
4109
5052
|
is_bandwidth_exceeded_by_org: {
|
|
4110
5053
|
Args: {
|
|
@@ -4220,7 +5163,7 @@ export declare function delChannelDevices(supabase: SupabaseClient<Database>, ap
|
|
|
4220
5163
|
Returns: string;
|
|
4221
5164
|
};
|
|
4222
5165
|
one_month_ahead: {
|
|
4223
|
-
Args:
|
|
5166
|
+
Args: never;
|
|
4224
5167
|
Returns: string;
|
|
4225
5168
|
};
|
|
4226
5169
|
parse_cron_field: {
|
|
@@ -4245,41 +5188,65 @@ export declare function delChannelDevices(supabase: SupabaseClient<Database>, ap
|
|
|
4245
5188
|
Returns: undefined;
|
|
4246
5189
|
};
|
|
4247
5190
|
process_admin_stats: {
|
|
4248
|
-
Args:
|
|
5191
|
+
Args: never;
|
|
4249
5192
|
Returns: undefined;
|
|
4250
5193
|
};
|
|
5194
|
+
process_channel_device_counts_queue: {
|
|
5195
|
+
Args: {
|
|
5196
|
+
batch_size?: number;
|
|
5197
|
+
};
|
|
5198
|
+
Returns: number;
|
|
5199
|
+
};
|
|
4251
5200
|
process_cron_stats_jobs: {
|
|
4252
|
-
Args:
|
|
5201
|
+
Args: never;
|
|
5202
|
+
Returns: undefined;
|
|
5203
|
+
};
|
|
5204
|
+
process_cron_sync_sub_jobs: {
|
|
5205
|
+
Args: never;
|
|
4253
5206
|
Returns: undefined;
|
|
4254
5207
|
};
|
|
4255
5208
|
process_d1_replication_batch: {
|
|
4256
|
-
Args:
|
|
5209
|
+
Args: never;
|
|
4257
5210
|
Returns: undefined;
|
|
4258
5211
|
};
|
|
4259
5212
|
process_failed_uploads: {
|
|
4260
|
-
Args:
|
|
5213
|
+
Args: never;
|
|
4261
5214
|
Returns: undefined;
|
|
4262
5215
|
};
|
|
4263
5216
|
process_free_trial_expired: {
|
|
4264
|
-
Args:
|
|
5217
|
+
Args: never;
|
|
4265
5218
|
Returns: undefined;
|
|
4266
5219
|
};
|
|
4267
5220
|
process_function_queue: {
|
|
4268
5221
|
Args: {
|
|
5222
|
+
batch_size?: number;
|
|
4269
5223
|
queue_name: string;
|
|
4270
5224
|
};
|
|
4271
5225
|
Returns: number;
|
|
4272
5226
|
};
|
|
5227
|
+
process_manifest_bundle_counts_queue: {
|
|
5228
|
+
Args: {
|
|
5229
|
+
batch_size?: number;
|
|
5230
|
+
};
|
|
5231
|
+
Returns: number;
|
|
5232
|
+
};
|
|
4273
5233
|
process_stats_email_monthly: {
|
|
4274
|
-
Args:
|
|
5234
|
+
Args: never;
|
|
4275
5235
|
Returns: undefined;
|
|
4276
5236
|
};
|
|
4277
5237
|
process_stats_email_weekly: {
|
|
4278
|
-
Args:
|
|
5238
|
+
Args: never;
|
|
4279
5239
|
Returns: undefined;
|
|
4280
5240
|
};
|
|
4281
5241
|
process_subscribed_orgs: {
|
|
4282
|
-
Args:
|
|
5242
|
+
Args: never;
|
|
5243
|
+
Returns: undefined;
|
|
5244
|
+
};
|
|
5245
|
+
queue_cron_stat_org_for_org: {
|
|
5246
|
+
Args: {
|
|
5247
|
+
customer_id: string;
|
|
5248
|
+
org_id: string;
|
|
5249
|
+
};
|
|
4283
5250
|
Returns: undefined;
|
|
4284
5251
|
};
|
|
4285
5252
|
read_bandwidth_usage: {
|
|
@@ -4335,7 +5302,7 @@ export declare function delChannelDevices(supabase: SupabaseClient<Database>, ap
|
|
|
4335
5302
|
}[];
|
|
4336
5303
|
};
|
|
4337
5304
|
remove_old_jobs: {
|
|
4338
|
-
Args:
|
|
5305
|
+
Args: never;
|
|
4339
5306
|
Returns: undefined;
|
|
4340
5307
|
};
|
|
4341
5308
|
rescind_invitation: {
|
|
@@ -4345,6 +5312,27 @@ export declare function delChannelDevices(supabase: SupabaseClient<Database>, ap
|
|
|
4345
5312
|
};
|
|
4346
5313
|
Returns: string;
|
|
4347
5314
|
};
|
|
5315
|
+
seed_get_app_metrics_caches: {
|
|
5316
|
+
Args: {
|
|
5317
|
+
p_end_date: string;
|
|
5318
|
+
p_org_id: string;
|
|
5319
|
+
p_start_date: string;
|
|
5320
|
+
};
|
|
5321
|
+
Returns: {
|
|
5322
|
+
cached_at: string;
|
|
5323
|
+
end_date: string;
|
|
5324
|
+
id: number;
|
|
5325
|
+
org_id: string;
|
|
5326
|
+
response: import("../types/supabase.types").Json;
|
|
5327
|
+
start_date: string;
|
|
5328
|
+
};
|
|
5329
|
+
SetofOptions: {
|
|
5330
|
+
from: "*";
|
|
5331
|
+
to: "app_metrics_cache";
|
|
5332
|
+
isOneToOne: true;
|
|
5333
|
+
isSetofReturn: false;
|
|
5334
|
+
};
|
|
5335
|
+
};
|
|
4348
5336
|
set_bandwidth_exceeded_by_org: {
|
|
4349
5337
|
Args: {
|
|
4350
5338
|
disabled: boolean;
|
|
@@ -4366,6 +5354,10 @@ export declare function delChannelDevices(supabase: SupabaseClient<Database>, ap
|
|
|
4366
5354
|
};
|
|
4367
5355
|
Returns: undefined;
|
|
4368
5356
|
};
|
|
5357
|
+
total_bundle_storage_bytes: {
|
|
5358
|
+
Args: never;
|
|
5359
|
+
Returns: number;
|
|
5360
|
+
};
|
|
4369
5361
|
transfer_app: {
|
|
4370
5362
|
Args: {
|
|
4371
5363
|
p_app_id: string;
|
|
@@ -4386,7 +5378,7 @@ export declare function delChannelDevices(supabase: SupabaseClient<Database>, ap
|
|
|
4386
5378
|
Returns: Database["public"]["Enums"]["user_min_right"];
|
|
4387
5379
|
};
|
|
4388
5380
|
update_app_versions_retention: {
|
|
4389
|
-
Args:
|
|
5381
|
+
Args: never;
|
|
4390
5382
|
Returns: undefined;
|
|
4391
5383
|
};
|
|
4392
5384
|
upsert_version_meta: {
|
|
@@ -4398,18 +5390,20 @@ export declare function delChannelDevices(supabase: SupabaseClient<Database>, ap
|
|
|
4398
5390
|
Returns: boolean;
|
|
4399
5391
|
};
|
|
4400
5392
|
verify_mfa: {
|
|
4401
|
-
Args:
|
|
5393
|
+
Args: never;
|
|
4402
5394
|
Returns: boolean;
|
|
4403
5395
|
};
|
|
4404
5396
|
};
|
|
4405
5397
|
Enums: {
|
|
4406
5398
|
action_type: "mau" | "storage" | "bandwidth";
|
|
4407
5399
|
app_mode: "prod" | "dev" | "livereload";
|
|
5400
|
+
credit_metric_type: "mau" | "bandwidth" | "storage";
|
|
5401
|
+
credit_transaction_type: "grant" | "purchase" | "manual_grant" | "deduction" | "expiry" | "refund";
|
|
4408
5402
|
disable_update: "major" | "minor" | "patch" | "version_number" | "none";
|
|
4409
5403
|
key_mode: "read" | "write" | "all" | "upload";
|
|
4410
5404
|
pay_as_you_go_type: "base" | "units";
|
|
4411
5405
|
platform_os: "ios" | "android";
|
|
4412
|
-
stats_action: "delete" | "reset" | "set" | "get" | "set_fail" | "update_fail" | "download_fail" | "windows_path_fail" | "canonical_path_fail" | "directory_path_fail" | "unzip_fail" | "low_mem_fail" | "download_10" | "download_20" | "download_30" | "download_40" | "download_50" | "download_60" | "download_70" | "download_80" | "download_90" | "download_complete" | "decrypt_fail" | "app_moved_to_foreground" | "app_moved_to_background" | "uninstall" | "needPlanUpgrade" | "missingBundle" | "noNew" | "disablePlatformIos" | "disablePlatformAndroid" | "disableAutoUpdateToMajor" | "cannotUpdateViaPrivateChannel" | "disableAutoUpdateToMinor" | "disableAutoUpdateToPatch" | "channelMisconfigured" | "disableAutoUpdateMetadata" | "disableAutoUpdateUnderNative" | "disableDevBuild" | "disableEmulator" | "cannotGetBundle" | "checksum_fail" | "NoChannelOrOverride" | "setChannel" | "getChannel" | "rateLimited" | "disableAutoUpdate" | "InvalidIp";
|
|
5406
|
+
stats_action: "delete" | "reset" | "set" | "get" | "set_fail" | "update_fail" | "download_fail" | "windows_path_fail" | "canonical_path_fail" | "directory_path_fail" | "unzip_fail" | "low_mem_fail" | "download_10" | "download_20" | "download_30" | "download_40" | "download_50" | "download_60" | "download_70" | "download_80" | "download_90" | "download_complete" | "decrypt_fail" | "app_moved_to_foreground" | "app_moved_to_background" | "uninstall" | "needPlanUpgrade" | "missingBundle" | "noNew" | "disablePlatformIos" | "disablePlatformAndroid" | "disableAutoUpdateToMajor" | "cannotUpdateViaPrivateChannel" | "disableAutoUpdateToMinor" | "disableAutoUpdateToPatch" | "channelMisconfigured" | "disableAutoUpdateMetadata" | "disableAutoUpdateUnderNative" | "disableDevBuild" | "disableEmulator" | "cannotGetBundle" | "checksum_fail" | "NoChannelOrOverride" | "setChannel" | "getChannel" | "rateLimited" | "disableAutoUpdate" | "ping" | "InvalidIp" | "blocked_by_server_url" | "download_manifest_start" | "download_manifest_complete" | "download_zip_start" | "download_zip_complete" | "download_manifest_file_fail" | "download_manifest_checksum_fail" | "download_manifest_brotli_fail" | "backend_refusal";
|
|
4413
5407
|
stripe_status: "created" | "succeeded" | "updated" | "failed" | "deleted" | "canceled";
|
|
4414
5408
|
usage_mode: "5min" | "day" | "month" | "cycle" | "last_saved";
|
|
4415
5409
|
user_min_right: "invite_read" | "invite_upload" | "invite_write" | "invite_admin" | "invite_super_admin" | "read" | "upload" | "write" | "admin" | "super_admin";
|