@capgo/cli 7.18.5 → 8.0.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/dist/package.json +1 -1
- package/dist/src/api/channels.d.ts +560 -122
- package/dist/src/api/channels.d.ts.map +1 -1
- package/dist/src/api/versions.d.ts.map +1 -1
- package/dist/src/bundle/list.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 +2 -0
- package/dist/src/organisation/list.d.ts.map +1 -1
- package/dist/src/sdk.js +1 -1
- package/dist/src/types/supabase.types.d.ts +283 -62
- package/dist/src/types/supabase.types.d.ts.map +1 -1
- package/dist/src/types/supabase.types.js +2 -0
- package/dist/src/types/supabase.types.js.map +1 -1
- package/dist/src/utils.d.ts +280 -61
- package/dist/src/utils.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -51,6 +51,41 @@ export type Database = {
|
|
|
51
51
|
}
|
|
52
52
|
];
|
|
53
53
|
};
|
|
54
|
+
app_metrics_cache: {
|
|
55
|
+
Row: {
|
|
56
|
+
cached_at: string;
|
|
57
|
+
end_date: string;
|
|
58
|
+
id: number;
|
|
59
|
+
org_id: string;
|
|
60
|
+
response: Json;
|
|
61
|
+
start_date: string;
|
|
62
|
+
};
|
|
63
|
+
Insert: {
|
|
64
|
+
cached_at?: string;
|
|
65
|
+
end_date: string;
|
|
66
|
+
id?: number;
|
|
67
|
+
org_id: string;
|
|
68
|
+
response: Json;
|
|
69
|
+
start_date: string;
|
|
70
|
+
};
|
|
71
|
+
Update: {
|
|
72
|
+
cached_at?: string;
|
|
73
|
+
end_date?: string;
|
|
74
|
+
id?: number;
|
|
75
|
+
org_id?: string;
|
|
76
|
+
response?: Json;
|
|
77
|
+
start_date?: string;
|
|
78
|
+
};
|
|
79
|
+
Relationships: [
|
|
80
|
+
{
|
|
81
|
+
foreignKeyName: "app_metrics_cache_org_id_fkey";
|
|
82
|
+
columns: ["org_id"];
|
|
83
|
+
isOneToOne: false;
|
|
84
|
+
referencedRelation: "orgs";
|
|
85
|
+
referencedColumns: ["id"];
|
|
86
|
+
}
|
|
87
|
+
];
|
|
88
|
+
};
|
|
54
89
|
app_versions: {
|
|
55
90
|
Row: {
|
|
56
91
|
app_id: string;
|
|
@@ -637,18 +672,21 @@ export type Database = {
|
|
|
637
672
|
app_id: string;
|
|
638
673
|
device_id: string;
|
|
639
674
|
id: number;
|
|
675
|
+
org_id: string;
|
|
640
676
|
timestamp: string;
|
|
641
677
|
};
|
|
642
678
|
Insert: {
|
|
643
679
|
app_id: string;
|
|
644
680
|
device_id: string;
|
|
645
681
|
id?: number;
|
|
682
|
+
org_id: string;
|
|
646
683
|
timestamp?: string;
|
|
647
684
|
};
|
|
648
685
|
Update: {
|
|
649
686
|
app_id?: string;
|
|
650
687
|
device_id?: string;
|
|
651
688
|
id?: number;
|
|
689
|
+
org_id?: string;
|
|
652
690
|
timestamp?: string;
|
|
653
691
|
};
|
|
654
692
|
Relationships: [];
|
|
@@ -665,8 +703,9 @@ export type Database = {
|
|
|
665
703
|
platform: Database["public"]["Enums"]["platform_os"];
|
|
666
704
|
plugin_version: string;
|
|
667
705
|
updated_at: string;
|
|
668
|
-
version: number;
|
|
706
|
+
version: number | null;
|
|
669
707
|
version_build: string | null;
|
|
708
|
+
version_name: string;
|
|
670
709
|
};
|
|
671
710
|
Insert: {
|
|
672
711
|
app_id: string;
|
|
@@ -679,8 +718,9 @@ export type Database = {
|
|
|
679
718
|
platform: Database["public"]["Enums"]["platform_os"];
|
|
680
719
|
plugin_version?: string;
|
|
681
720
|
updated_at: string;
|
|
682
|
-
version
|
|
721
|
+
version?: number | null;
|
|
683
722
|
version_build?: string | null;
|
|
723
|
+
version_name?: string;
|
|
684
724
|
};
|
|
685
725
|
Update: {
|
|
686
726
|
app_id?: string;
|
|
@@ -693,8 +733,9 @@ export type Database = {
|
|
|
693
733
|
platform?: Database["public"]["Enums"]["platform_os"];
|
|
694
734
|
plugin_version?: string;
|
|
695
735
|
updated_at?: string;
|
|
696
|
-
version?: number;
|
|
736
|
+
version?: number | null;
|
|
697
737
|
version_build?: string | null;
|
|
738
|
+
version_name?: string;
|
|
698
739
|
};
|
|
699
740
|
Relationships: [];
|
|
700
741
|
};
|
|
@@ -702,6 +743,7 @@ export type Database = {
|
|
|
702
743
|
Row: {
|
|
703
744
|
apps: number;
|
|
704
745
|
apps_active: number | null;
|
|
746
|
+
bundle_storage_gb: number;
|
|
705
747
|
created_at: string | null;
|
|
706
748
|
date_id: string;
|
|
707
749
|
devices_last_month: number | null;
|
|
@@ -715,6 +757,7 @@ export type Database = {
|
|
|
715
757
|
plan_payg: number | null;
|
|
716
758
|
plan_solo: number | null;
|
|
717
759
|
plan_team: number | null;
|
|
760
|
+
registers_today: number;
|
|
718
761
|
stars: number;
|
|
719
762
|
success_rate: number | null;
|
|
720
763
|
trial: number | null;
|
|
@@ -727,6 +770,7 @@ export type Database = {
|
|
|
727
770
|
Insert: {
|
|
728
771
|
apps: number;
|
|
729
772
|
apps_active?: number | null;
|
|
773
|
+
bundle_storage_gb?: number;
|
|
730
774
|
created_at?: string | null;
|
|
731
775
|
date_id: string;
|
|
732
776
|
devices_last_month?: number | null;
|
|
@@ -740,6 +784,7 @@ export type Database = {
|
|
|
740
784
|
plan_payg?: number | null;
|
|
741
785
|
plan_solo?: number | null;
|
|
742
786
|
plan_team?: number | null;
|
|
787
|
+
registers_today?: number;
|
|
743
788
|
stars: number;
|
|
744
789
|
success_rate?: number | null;
|
|
745
790
|
trial?: number | null;
|
|
@@ -752,6 +797,7 @@ export type Database = {
|
|
|
752
797
|
Update: {
|
|
753
798
|
apps?: number;
|
|
754
799
|
apps_active?: number | null;
|
|
800
|
+
bundle_storage_gb?: number;
|
|
755
801
|
created_at?: string | null;
|
|
756
802
|
date_id?: string;
|
|
757
803
|
devices_last_month?: number | null;
|
|
@@ -765,6 +811,7 @@ export type Database = {
|
|
|
765
811
|
plan_payg?: number | null;
|
|
766
812
|
plan_solo?: number | null;
|
|
767
813
|
plan_team?: number | null;
|
|
814
|
+
registers_today?: number;
|
|
768
815
|
stars?: number;
|
|
769
816
|
success_rate?: number | null;
|
|
770
817
|
trial?: number | null;
|
|
@@ -920,6 +967,7 @@ export type Database = {
|
|
|
920
967
|
logo: string | null;
|
|
921
968
|
management_email: string;
|
|
922
969
|
name: string;
|
|
970
|
+
stats_updated_at: string | null;
|
|
923
971
|
updated_at: string | null;
|
|
924
972
|
};
|
|
925
973
|
Insert: {
|
|
@@ -930,6 +978,7 @@ export type Database = {
|
|
|
930
978
|
logo?: string | null;
|
|
931
979
|
management_email: string;
|
|
932
980
|
name: string;
|
|
981
|
+
stats_updated_at?: string | null;
|
|
933
982
|
updated_at?: string | null;
|
|
934
983
|
};
|
|
935
984
|
Update: {
|
|
@@ -940,6 +989,7 @@ export type Database = {
|
|
|
940
989
|
logo?: string | null;
|
|
941
990
|
management_email?: string;
|
|
942
991
|
name?: string;
|
|
992
|
+
stats_updated_at?: string | null;
|
|
943
993
|
updated_at?: string | null;
|
|
944
994
|
};
|
|
945
995
|
Relationships: [
|
|
@@ -1035,7 +1085,7 @@ export type Database = {
|
|
|
1035
1085
|
created_at: string;
|
|
1036
1086
|
device_id: string;
|
|
1037
1087
|
id: number;
|
|
1038
|
-
|
|
1088
|
+
version_name: string;
|
|
1039
1089
|
};
|
|
1040
1090
|
Insert: {
|
|
1041
1091
|
action: Database["public"]["Enums"]["stats_action"];
|
|
@@ -1043,7 +1093,7 @@ export type Database = {
|
|
|
1043
1093
|
created_at: string;
|
|
1044
1094
|
device_id: string;
|
|
1045
1095
|
id?: never;
|
|
1046
|
-
|
|
1096
|
+
version_name?: string;
|
|
1047
1097
|
};
|
|
1048
1098
|
Update: {
|
|
1049
1099
|
action?: Database["public"]["Enums"]["stats_action"];
|
|
@@ -1051,7 +1101,7 @@ export type Database = {
|
|
|
1051
1101
|
created_at?: string;
|
|
1052
1102
|
device_id?: string;
|
|
1053
1103
|
id?: never;
|
|
1054
|
-
|
|
1104
|
+
version_name?: string;
|
|
1055
1105
|
};
|
|
1056
1106
|
Relationships: [];
|
|
1057
1107
|
};
|
|
@@ -1088,6 +1138,7 @@ export type Database = {
|
|
|
1088
1138
|
id: number;
|
|
1089
1139
|
is_good_plan: boolean | null;
|
|
1090
1140
|
mau_exceeded: boolean | null;
|
|
1141
|
+
plan_calculated_at: string | null;
|
|
1091
1142
|
plan_usage: number | null;
|
|
1092
1143
|
price_id: string | null;
|
|
1093
1144
|
product_id: string;
|
|
@@ -1108,6 +1159,7 @@ export type Database = {
|
|
|
1108
1159
|
id?: number;
|
|
1109
1160
|
is_good_plan?: boolean | null;
|
|
1110
1161
|
mau_exceeded?: boolean | null;
|
|
1162
|
+
plan_calculated_at?: string | null;
|
|
1111
1163
|
plan_usage?: number | null;
|
|
1112
1164
|
price_id?: string | null;
|
|
1113
1165
|
product_id: string;
|
|
@@ -1128,6 +1180,7 @@ export type Database = {
|
|
|
1128
1180
|
id?: number;
|
|
1129
1181
|
is_good_plan?: boolean | null;
|
|
1130
1182
|
mau_exceeded?: boolean | null;
|
|
1183
|
+
plan_calculated_at?: string | null;
|
|
1131
1184
|
plan_usage?: number | null;
|
|
1132
1185
|
price_id?: string | null;
|
|
1133
1186
|
product_id?: string;
|
|
@@ -1333,7 +1386,10 @@ export type Database = {
|
|
|
1333
1386
|
channel_id: number;
|
|
1334
1387
|
min_right: Database["public"]["Enums"]["user_min_right"];
|
|
1335
1388
|
org_id: string;
|
|
1336
|
-
}
|
|
1389
|
+
};
|
|
1390
|
+
Returns: boolean;
|
|
1391
|
+
} | {
|
|
1392
|
+
Args: {
|
|
1337
1393
|
app_id: string;
|
|
1338
1394
|
channel_id: number;
|
|
1339
1395
|
min_right: Database["public"]["Enums"]["user_min_right"];
|
|
@@ -1349,11 +1405,11 @@ export type Database = {
|
|
|
1349
1405
|
Returns: number;
|
|
1350
1406
|
};
|
|
1351
1407
|
cleanup_frequent_job_details: {
|
|
1352
|
-
Args:
|
|
1408
|
+
Args: never;
|
|
1353
1409
|
Returns: undefined;
|
|
1354
1410
|
};
|
|
1355
1411
|
cleanup_queue_messages: {
|
|
1356
|
-
Args:
|
|
1412
|
+
Args: never;
|
|
1357
1413
|
Returns: undefined;
|
|
1358
1414
|
};
|
|
1359
1415
|
convert_bytes_to_gb: {
|
|
@@ -1394,22 +1450,22 @@ export type Database = {
|
|
|
1394
1450
|
Returns: number;
|
|
1395
1451
|
};
|
|
1396
1452
|
count_all_need_upgrade: {
|
|
1397
|
-
Args:
|
|
1453
|
+
Args: never;
|
|
1398
1454
|
Returns: number;
|
|
1399
1455
|
};
|
|
1400
1456
|
count_all_onboarded: {
|
|
1401
|
-
Args:
|
|
1457
|
+
Args: never;
|
|
1402
1458
|
Returns: number;
|
|
1403
1459
|
};
|
|
1404
1460
|
count_all_plans_v2: {
|
|
1405
|
-
Args:
|
|
1461
|
+
Args: never;
|
|
1406
1462
|
Returns: {
|
|
1407
1463
|
count: number;
|
|
1408
1464
|
plan_name: string;
|
|
1409
1465
|
}[];
|
|
1410
1466
|
};
|
|
1411
1467
|
delete_accounts_marked_for_deletion: {
|
|
1412
|
-
Args:
|
|
1468
|
+
Args: never;
|
|
1413
1469
|
Returns: {
|
|
1414
1470
|
deleted_count: number;
|
|
1415
1471
|
deleted_user_ids: string[];
|
|
@@ -1422,11 +1478,11 @@ export type Database = {
|
|
|
1422
1478
|
Returns: undefined;
|
|
1423
1479
|
};
|
|
1424
1480
|
delete_old_deleted_apps: {
|
|
1425
|
-
Args:
|
|
1481
|
+
Args: never;
|
|
1426
1482
|
Returns: undefined;
|
|
1427
1483
|
};
|
|
1428
1484
|
delete_user: {
|
|
1429
|
-
Args:
|
|
1485
|
+
Args: never;
|
|
1430
1486
|
Returns: undefined;
|
|
1431
1487
|
};
|
|
1432
1488
|
exist_app_v2: {
|
|
@@ -1437,10 +1493,13 @@ export type Database = {
|
|
|
1437
1493
|
};
|
|
1438
1494
|
exist_app_versions: {
|
|
1439
1495
|
Args: {
|
|
1440
|
-
apikey: string;
|
|
1441
1496
|
appid: string;
|
|
1442
1497
|
name_version: string;
|
|
1443
|
-
}
|
|
1498
|
+
};
|
|
1499
|
+
Returns: boolean;
|
|
1500
|
+
} | {
|
|
1501
|
+
Args: {
|
|
1502
|
+
apikey: string;
|
|
1444
1503
|
appid: string;
|
|
1445
1504
|
name_version: string;
|
|
1446
1505
|
};
|
|
@@ -1471,19 +1530,15 @@ export type Database = {
|
|
|
1471
1530
|
Returns: string;
|
|
1472
1531
|
};
|
|
1473
1532
|
get_apikey: {
|
|
1474
|
-
Args:
|
|
1533
|
+
Args: never;
|
|
1475
1534
|
Returns: string;
|
|
1476
1535
|
};
|
|
1477
1536
|
get_apikey_header: {
|
|
1478
|
-
Args:
|
|
1537
|
+
Args: never;
|
|
1479
1538
|
Returns: string;
|
|
1480
1539
|
};
|
|
1481
1540
|
get_app_metrics: {
|
|
1482
1541
|
Args: {
|
|
1483
|
-
end_date: string;
|
|
1484
|
-
org_id: string;
|
|
1485
|
-
start_date: string;
|
|
1486
|
-
} | {
|
|
1487
1542
|
org_id: string;
|
|
1488
1543
|
};
|
|
1489
1544
|
Returns: {
|
|
@@ -1497,6 +1552,23 @@ export type Database = {
|
|
|
1497
1552
|
storage: number;
|
|
1498
1553
|
uninstall: number;
|
|
1499
1554
|
}[];
|
|
1555
|
+
} | {
|
|
1556
|
+
Args: {
|
|
1557
|
+
p_end_date: string;
|
|
1558
|
+
p_org_id: string;
|
|
1559
|
+
p_start_date: string;
|
|
1560
|
+
};
|
|
1561
|
+
Returns: {
|
|
1562
|
+
app_id: string;
|
|
1563
|
+
bandwidth: number;
|
|
1564
|
+
date: string;
|
|
1565
|
+
fail: number;
|
|
1566
|
+
get: number;
|
|
1567
|
+
install: number;
|
|
1568
|
+
mau: number;
|
|
1569
|
+
storage: number;
|
|
1570
|
+
uninstall: number;
|
|
1571
|
+
}[];
|
|
1500
1572
|
};
|
|
1501
1573
|
get_app_versions: {
|
|
1502
1574
|
Args: {
|
|
@@ -1523,7 +1595,7 @@ export type Database = {
|
|
|
1523
1595
|
Returns: string;
|
|
1524
1596
|
};
|
|
1525
1597
|
get_customer_counts: {
|
|
1526
|
-
Args:
|
|
1598
|
+
Args: never;
|
|
1527
1599
|
Returns: {
|
|
1528
1600
|
monthly: number;
|
|
1529
1601
|
total: number;
|
|
@@ -1539,21 +1611,37 @@ export type Database = {
|
|
|
1539
1611
|
subscription_anchor_start: string;
|
|
1540
1612
|
}[];
|
|
1541
1613
|
};
|
|
1614
|
+
get_d1_sync_url: {
|
|
1615
|
+
Args: never;
|
|
1616
|
+
Returns: string;
|
|
1617
|
+
};
|
|
1542
1618
|
get_d1_webhook_signature: {
|
|
1543
|
-
Args:
|
|
1619
|
+
Args: never;
|
|
1544
1620
|
Returns: string;
|
|
1545
1621
|
};
|
|
1546
1622
|
get_db_url: {
|
|
1547
|
-
Args:
|
|
1623
|
+
Args: never;
|
|
1548
1624
|
Returns: string;
|
|
1549
1625
|
};
|
|
1550
1626
|
get_global_metrics: {
|
|
1627
|
+
Args: {
|
|
1628
|
+
org_id: string;
|
|
1629
|
+
};
|
|
1630
|
+
Returns: {
|
|
1631
|
+
bandwidth: number;
|
|
1632
|
+
date: string;
|
|
1633
|
+
fail: number;
|
|
1634
|
+
get: number;
|
|
1635
|
+
install: number;
|
|
1636
|
+
mau: number;
|
|
1637
|
+
storage: number;
|
|
1638
|
+
uninstall: number;
|
|
1639
|
+
}[];
|
|
1640
|
+
} | {
|
|
1551
1641
|
Args: {
|
|
1552
1642
|
end_date: string;
|
|
1553
1643
|
org_id: string;
|
|
1554
1644
|
start_date: string;
|
|
1555
|
-
} | {
|
|
1556
|
-
org_id: string;
|
|
1557
1645
|
};
|
|
1558
1646
|
Returns: {
|
|
1559
1647
|
bandwidth: number;
|
|
@@ -1567,7 +1655,10 @@ export type Database = {
|
|
|
1567
1655
|
}[];
|
|
1568
1656
|
};
|
|
1569
1657
|
get_identity: {
|
|
1570
|
-
Args:
|
|
1658
|
+
Args: never;
|
|
1659
|
+
Returns: string;
|
|
1660
|
+
} | {
|
|
1661
|
+
Args: {
|
|
1571
1662
|
keymode: Database["public"]["Enums"]["key_mode"][];
|
|
1572
1663
|
};
|
|
1573
1664
|
Returns: string;
|
|
@@ -1604,10 +1695,25 @@ export type Database = {
|
|
|
1604
1695
|
}[];
|
|
1605
1696
|
};
|
|
1606
1697
|
get_metered_usage: {
|
|
1607
|
-
Args:
|
|
1698
|
+
Args: {
|
|
1608
1699
|
orgid: string;
|
|
1609
1700
|
};
|
|
1610
1701
|
Returns: Database["public"]["CompositeTypes"]["stats_table"];
|
|
1702
|
+
SetofOptions: {
|
|
1703
|
+
from: "*";
|
|
1704
|
+
to: "stats_table";
|
|
1705
|
+
isOneToOne: true;
|
|
1706
|
+
isSetofReturn: false;
|
|
1707
|
+
};
|
|
1708
|
+
} | {
|
|
1709
|
+
Args: never;
|
|
1710
|
+
Returns: Database["public"]["CompositeTypes"]["stats_table"];
|
|
1711
|
+
SetofOptions: {
|
|
1712
|
+
from: "*";
|
|
1713
|
+
to: "stats_table";
|
|
1714
|
+
isOneToOne: true;
|
|
1715
|
+
isSetofReturn: false;
|
|
1716
|
+
};
|
|
1611
1717
|
};
|
|
1612
1718
|
get_next_cron_time: {
|
|
1613
1719
|
Args: {
|
|
@@ -1624,11 +1730,15 @@ export type Database = {
|
|
|
1624
1730
|
};
|
|
1625
1731
|
Returns: number;
|
|
1626
1732
|
};
|
|
1733
|
+
get_next_stats_update_date: {
|
|
1734
|
+
Args: {
|
|
1735
|
+
org: string;
|
|
1736
|
+
};
|
|
1737
|
+
Returns: string;
|
|
1738
|
+
};
|
|
1627
1739
|
get_org_members: {
|
|
1628
1740
|
Args: {
|
|
1629
1741
|
guild_id: string;
|
|
1630
|
-
} | {
|
|
1631
|
-
guild_id: string;
|
|
1632
1742
|
user_id: string;
|
|
1633
1743
|
};
|
|
1634
1744
|
Returns: {
|
|
@@ -1639,6 +1749,18 @@ export type Database = {
|
|
|
1639
1749
|
role: Database["public"]["Enums"]["user_min_right"];
|
|
1640
1750
|
uid: string;
|
|
1641
1751
|
}[];
|
|
1752
|
+
} | {
|
|
1753
|
+
Args: {
|
|
1754
|
+
guild_id: string;
|
|
1755
|
+
};
|
|
1756
|
+
Returns: {
|
|
1757
|
+
aid: number;
|
|
1758
|
+
email: string;
|
|
1759
|
+
image_url: string;
|
|
1760
|
+
is_tmp: boolean;
|
|
1761
|
+
role: Database["public"]["Enums"]["user_min_right"];
|
|
1762
|
+
uid: string;
|
|
1763
|
+
}[];
|
|
1642
1764
|
};
|
|
1643
1765
|
get_org_owner_id: {
|
|
1644
1766
|
Args: {
|
|
@@ -1662,7 +1784,27 @@ export type Database = {
|
|
|
1662
1784
|
Returns: Json[];
|
|
1663
1785
|
};
|
|
1664
1786
|
get_orgs_v6: {
|
|
1665
|
-
Args:
|
|
1787
|
+
Args: never;
|
|
1788
|
+
Returns: {
|
|
1789
|
+
app_count: number;
|
|
1790
|
+
can_use_more: boolean;
|
|
1791
|
+
created_by: string;
|
|
1792
|
+
gid: string;
|
|
1793
|
+
is_canceled: boolean;
|
|
1794
|
+
is_yearly: boolean;
|
|
1795
|
+
logo: string;
|
|
1796
|
+
management_email: string;
|
|
1797
|
+
name: string;
|
|
1798
|
+
next_stats_update_at: string;
|
|
1799
|
+
paying: boolean;
|
|
1800
|
+
role: string;
|
|
1801
|
+
stats_updated_at: string;
|
|
1802
|
+
subscription_end: string;
|
|
1803
|
+
subscription_start: string;
|
|
1804
|
+
trial_left: number;
|
|
1805
|
+
}[];
|
|
1806
|
+
} | {
|
|
1807
|
+
Args: {
|
|
1666
1808
|
userid: string;
|
|
1667
1809
|
};
|
|
1668
1810
|
Returns: {
|
|
@@ -1675,20 +1817,30 @@ export type Database = {
|
|
|
1675
1817
|
logo: string;
|
|
1676
1818
|
management_email: string;
|
|
1677
1819
|
name: string;
|
|
1820
|
+
next_stats_update_at: string;
|
|
1678
1821
|
paying: boolean;
|
|
1679
1822
|
role: string;
|
|
1823
|
+
stats_updated_at: string;
|
|
1680
1824
|
subscription_end: string;
|
|
1681
1825
|
subscription_start: string;
|
|
1682
1826
|
trial_left: number;
|
|
1683
1827
|
}[];
|
|
1684
1828
|
};
|
|
1685
1829
|
get_plan_usage_percent_detailed: {
|
|
1830
|
+
Args: {
|
|
1831
|
+
orgid: string;
|
|
1832
|
+
};
|
|
1833
|
+
Returns: {
|
|
1834
|
+
bandwidth_percent: number;
|
|
1835
|
+
mau_percent: number;
|
|
1836
|
+
storage_percent: number;
|
|
1837
|
+
total_percent: number;
|
|
1838
|
+
}[];
|
|
1839
|
+
} | {
|
|
1686
1840
|
Args: {
|
|
1687
1841
|
cycle_end: string;
|
|
1688
1842
|
cycle_start: string;
|
|
1689
1843
|
orgid: string;
|
|
1690
|
-
} | {
|
|
1691
|
-
orgid: string;
|
|
1692
1844
|
};
|
|
1693
1845
|
Returns: {
|
|
1694
1846
|
bandwidth_percent: number;
|
|
@@ -1698,7 +1850,7 @@ export type Database = {
|
|
|
1698
1850
|
}[];
|
|
1699
1851
|
};
|
|
1700
1852
|
get_process_cron_stats_job_info: {
|
|
1701
|
-
Args:
|
|
1853
|
+
Args: never;
|
|
1702
1854
|
Returns: {
|
|
1703
1855
|
last_run: string;
|
|
1704
1856
|
next_run: string;
|
|
@@ -1712,12 +1864,23 @@ export type Database = {
|
|
|
1712
1864
|
Returns: number;
|
|
1713
1865
|
};
|
|
1714
1866
|
get_total_metrics: {
|
|
1867
|
+
Args: {
|
|
1868
|
+
org_id: string;
|
|
1869
|
+
};
|
|
1870
|
+
Returns: {
|
|
1871
|
+
bandwidth: number;
|
|
1872
|
+
fail: number;
|
|
1873
|
+
get: number;
|
|
1874
|
+
install: number;
|
|
1875
|
+
mau: number;
|
|
1876
|
+
storage: number;
|
|
1877
|
+
uninstall: number;
|
|
1878
|
+
}[];
|
|
1879
|
+
} | {
|
|
1715
1880
|
Args: {
|
|
1716
1881
|
end_date: string;
|
|
1717
1882
|
org_id: string;
|
|
1718
1883
|
start_date: string;
|
|
1719
|
-
} | {
|
|
1720
|
-
org_id: string;
|
|
1721
1884
|
};
|
|
1722
1885
|
Returns: {
|
|
1723
1886
|
bandwidth: number;
|
|
@@ -1736,7 +1899,7 @@ export type Database = {
|
|
|
1736
1899
|
Returns: number;
|
|
1737
1900
|
};
|
|
1738
1901
|
get_update_stats: {
|
|
1739
|
-
Args:
|
|
1902
|
+
Args: never;
|
|
1740
1903
|
Returns: {
|
|
1741
1904
|
app_id: string;
|
|
1742
1905
|
failed: number;
|
|
@@ -1749,11 +1912,14 @@ export type Database = {
|
|
|
1749
1912
|
get_user_id: {
|
|
1750
1913
|
Args: {
|
|
1751
1914
|
apikey: string;
|
|
1752
|
-
} | {
|
|
1753
|
-
apikey: string;
|
|
1754
1915
|
app_id: string;
|
|
1755
1916
|
};
|
|
1756
1917
|
Returns: string;
|
|
1918
|
+
} | {
|
|
1919
|
+
Args: {
|
|
1920
|
+
apikey: string;
|
|
1921
|
+
};
|
|
1922
|
+
Returns: string;
|
|
1757
1923
|
};
|
|
1758
1924
|
get_user_main_org_id: {
|
|
1759
1925
|
Args: {
|
|
@@ -1768,7 +1934,7 @@ export type Database = {
|
|
|
1768
1934
|
Returns: string;
|
|
1769
1935
|
};
|
|
1770
1936
|
get_versions_with_no_metadata: {
|
|
1771
|
-
Args:
|
|
1937
|
+
Args: never;
|
|
1772
1938
|
Returns: {
|
|
1773
1939
|
app_id: string;
|
|
1774
1940
|
checksum: string | null;
|
|
@@ -1789,6 +1955,12 @@ export type Database = {
|
|
|
1789
1955
|
updated_at: string | null;
|
|
1790
1956
|
user_id: string | null;
|
|
1791
1957
|
}[];
|
|
1958
|
+
SetofOptions: {
|
|
1959
|
+
from: "*";
|
|
1960
|
+
to: "app_versions";
|
|
1961
|
+
isOneToOne: false;
|
|
1962
|
+
isSetofReturn: true;
|
|
1963
|
+
};
|
|
1792
1964
|
};
|
|
1793
1965
|
get_weekly_stats: {
|
|
1794
1966
|
Args: {
|
|
@@ -1839,10 +2011,13 @@ export type Database = {
|
|
|
1839
2011
|
Returns: boolean;
|
|
1840
2012
|
};
|
|
1841
2013
|
is_admin: {
|
|
1842
|
-
Args:
|
|
2014
|
+
Args: {
|
|
1843
2015
|
userid: string;
|
|
1844
2016
|
};
|
|
1845
2017
|
Returns: boolean;
|
|
2018
|
+
} | {
|
|
2019
|
+
Args: never;
|
|
2020
|
+
Returns: boolean;
|
|
1846
2021
|
};
|
|
1847
2022
|
is_allowed_action: {
|
|
1848
2023
|
Args: {
|
|
@@ -1867,10 +2042,13 @@ export type Database = {
|
|
|
1867
2042
|
is_allowed_capgkey: {
|
|
1868
2043
|
Args: {
|
|
1869
2044
|
apikey: string;
|
|
1870
|
-
app_id: string;
|
|
1871
2045
|
keymode: Database["public"]["Enums"]["key_mode"][];
|
|
1872
|
-
}
|
|
2046
|
+
};
|
|
2047
|
+
Returns: boolean;
|
|
2048
|
+
} | {
|
|
2049
|
+
Args: {
|
|
1873
2050
|
apikey: string;
|
|
2051
|
+
app_id: string;
|
|
1874
2052
|
keymode: Database["public"]["Enums"]["key_mode"][];
|
|
1875
2053
|
};
|
|
1876
2054
|
Returns: boolean;
|
|
@@ -1879,13 +2057,19 @@ export type Database = {
|
|
|
1879
2057
|
Args: {
|
|
1880
2058
|
apikey: string;
|
|
1881
2059
|
appid: string;
|
|
1882
|
-
}
|
|
1883
|
-
|
|
1884
|
-
|
|
2060
|
+
};
|
|
2061
|
+
Returns: boolean;
|
|
2062
|
+
} | {
|
|
2063
|
+
Args: {
|
|
1885
2064
|
appid: string;
|
|
1886
2065
|
userid: string;
|
|
1887
2066
|
};
|
|
1888
2067
|
Returns: boolean;
|
|
2068
|
+
} | {
|
|
2069
|
+
Args: {
|
|
2070
|
+
appid: string;
|
|
2071
|
+
};
|
|
2072
|
+
Returns: boolean;
|
|
1889
2073
|
};
|
|
1890
2074
|
is_bandwidth_exceeded_by_org: {
|
|
1891
2075
|
Args: {
|
|
@@ -2001,7 +2185,7 @@ export type Database = {
|
|
|
2001
2185
|
Returns: string;
|
|
2002
2186
|
};
|
|
2003
2187
|
one_month_ahead: {
|
|
2004
|
-
Args:
|
|
2188
|
+
Args: never;
|
|
2005
2189
|
Returns: string;
|
|
2006
2190
|
};
|
|
2007
2191
|
parse_cron_field: {
|
|
@@ -2026,41 +2210,53 @@ export type Database = {
|
|
|
2026
2210
|
Returns: undefined;
|
|
2027
2211
|
};
|
|
2028
2212
|
process_admin_stats: {
|
|
2029
|
-
Args:
|
|
2213
|
+
Args: never;
|
|
2030
2214
|
Returns: undefined;
|
|
2031
2215
|
};
|
|
2032
2216
|
process_cron_stats_jobs: {
|
|
2033
|
-
Args:
|
|
2217
|
+
Args: never;
|
|
2218
|
+
Returns: undefined;
|
|
2219
|
+
};
|
|
2220
|
+
process_cron_sync_sub_jobs: {
|
|
2221
|
+
Args: never;
|
|
2034
2222
|
Returns: undefined;
|
|
2035
2223
|
};
|
|
2036
2224
|
process_d1_replication_batch: {
|
|
2037
|
-
Args:
|
|
2225
|
+
Args: never;
|
|
2038
2226
|
Returns: undefined;
|
|
2039
2227
|
};
|
|
2040
2228
|
process_failed_uploads: {
|
|
2041
|
-
Args:
|
|
2229
|
+
Args: never;
|
|
2042
2230
|
Returns: undefined;
|
|
2043
2231
|
};
|
|
2044
2232
|
process_free_trial_expired: {
|
|
2045
|
-
Args:
|
|
2233
|
+
Args: never;
|
|
2046
2234
|
Returns: undefined;
|
|
2047
2235
|
};
|
|
2048
2236
|
process_function_queue: {
|
|
2049
2237
|
Args: {
|
|
2238
|
+
batch_size?: number;
|
|
2050
2239
|
queue_name: string;
|
|
2051
2240
|
};
|
|
2052
2241
|
Returns: number;
|
|
2053
2242
|
};
|
|
2054
2243
|
process_stats_email_monthly: {
|
|
2055
|
-
Args:
|
|
2244
|
+
Args: never;
|
|
2056
2245
|
Returns: undefined;
|
|
2057
2246
|
};
|
|
2058
2247
|
process_stats_email_weekly: {
|
|
2059
|
-
Args:
|
|
2248
|
+
Args: never;
|
|
2060
2249
|
Returns: undefined;
|
|
2061
2250
|
};
|
|
2062
2251
|
process_subscribed_orgs: {
|
|
2063
|
-
Args:
|
|
2252
|
+
Args: never;
|
|
2253
|
+
Returns: undefined;
|
|
2254
|
+
};
|
|
2255
|
+
queue_cron_stat_org_for_org: {
|
|
2256
|
+
Args: {
|
|
2257
|
+
customer_id: string;
|
|
2258
|
+
org_id: string;
|
|
2259
|
+
};
|
|
2064
2260
|
Returns: undefined;
|
|
2065
2261
|
};
|
|
2066
2262
|
read_bandwidth_usage: {
|
|
@@ -2116,7 +2312,7 @@ export type Database = {
|
|
|
2116
2312
|
}[];
|
|
2117
2313
|
};
|
|
2118
2314
|
remove_old_jobs: {
|
|
2119
|
-
Args:
|
|
2315
|
+
Args: never;
|
|
2120
2316
|
Returns: undefined;
|
|
2121
2317
|
};
|
|
2122
2318
|
rescind_invitation: {
|
|
@@ -2126,6 +2322,27 @@ export type Database = {
|
|
|
2126
2322
|
};
|
|
2127
2323
|
Returns: string;
|
|
2128
2324
|
};
|
|
2325
|
+
seed_get_app_metrics_caches: {
|
|
2326
|
+
Args: {
|
|
2327
|
+
p_end_date: string;
|
|
2328
|
+
p_org_id: string;
|
|
2329
|
+
p_start_date: string;
|
|
2330
|
+
};
|
|
2331
|
+
Returns: {
|
|
2332
|
+
cached_at: string;
|
|
2333
|
+
end_date: string;
|
|
2334
|
+
id: number;
|
|
2335
|
+
org_id: string;
|
|
2336
|
+
response: Json;
|
|
2337
|
+
start_date: string;
|
|
2338
|
+
};
|
|
2339
|
+
SetofOptions: {
|
|
2340
|
+
from: "*";
|
|
2341
|
+
to: "app_metrics_cache";
|
|
2342
|
+
isOneToOne: true;
|
|
2343
|
+
isSetofReturn: false;
|
|
2344
|
+
};
|
|
2345
|
+
};
|
|
2129
2346
|
set_bandwidth_exceeded_by_org: {
|
|
2130
2347
|
Args: {
|
|
2131
2348
|
disabled: boolean;
|
|
@@ -2147,6 +2364,10 @@ export type Database = {
|
|
|
2147
2364
|
};
|
|
2148
2365
|
Returns: undefined;
|
|
2149
2366
|
};
|
|
2367
|
+
total_bundle_storage_bytes: {
|
|
2368
|
+
Args: never;
|
|
2369
|
+
Returns: number;
|
|
2370
|
+
};
|
|
2150
2371
|
transfer_app: {
|
|
2151
2372
|
Args: {
|
|
2152
2373
|
p_app_id: string;
|
|
@@ -2167,7 +2388,7 @@ export type Database = {
|
|
|
2167
2388
|
Returns: Database["public"]["Enums"]["user_min_right"];
|
|
2168
2389
|
};
|
|
2169
2390
|
update_app_versions_retention: {
|
|
2170
|
-
Args:
|
|
2391
|
+
Args: never;
|
|
2171
2392
|
Returns: undefined;
|
|
2172
2393
|
};
|
|
2173
2394
|
upsert_version_meta: {
|
|
@@ -2179,7 +2400,7 @@ export type Database = {
|
|
|
2179
2400
|
Returns: boolean;
|
|
2180
2401
|
};
|
|
2181
2402
|
verify_mfa: {
|
|
2182
|
-
Args:
|
|
2403
|
+
Args: never;
|
|
2183
2404
|
Returns: boolean;
|
|
2184
2405
|
};
|
|
2185
2406
|
};
|
|
@@ -2190,7 +2411,7 @@ export type Database = {
|
|
|
2190
2411
|
key_mode: "read" | "write" | "all" | "upload";
|
|
2191
2412
|
pay_as_you_go_type: "base" | "units";
|
|
2192
2413
|
platform_os: "ios" | "android";
|
|
2193
|
-
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";
|
|
2414
|
+
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";
|
|
2194
2415
|
stripe_status: "created" | "succeeded" | "updated" | "failed" | "deleted" | "canceled";
|
|
2195
2416
|
usage_mode: "5min" | "day" | "month" | "cycle" | "last_saved";
|
|
2196
2417
|
user_min_right: "invite_read" | "invite_upload" | "invite_write" | "invite_admin" | "invite_super_admin" | "read" | "upload" | "write" | "admin" | "super_admin";
|
|
@@ -2292,7 +2513,7 @@ export declare const Constants: {
|
|
|
2292
2513
|
readonly key_mode: readonly ["read", "write", "all", "upload"];
|
|
2293
2514
|
readonly pay_as_you_go_type: readonly ["base", "units"];
|
|
2294
2515
|
readonly platform_os: readonly ["ios", "android"];
|
|
2295
|
-
readonly stats_action: readonly ["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"];
|
|
2516
|
+
readonly stats_action: readonly ["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"];
|
|
2296
2517
|
readonly stripe_status: readonly ["created", "succeeded", "updated", "failed", "deleted", "canceled"];
|
|
2297
2518
|
readonly usage_mode: readonly ["5min", "day", "month", "cycle", "last_saved"];
|
|
2298
2519
|
readonly user_min_right: readonly ["invite_read", "invite_upload", "invite_write", "invite_admin", "invite_super_admin", "read", "upload", "write", "admin", "super_admin"];
|