@hobenakicoffee/libraries 1.26.0 → 1.28.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/package.json +1 -1
- package/src/types/supabase.ts +34 -0
package/package.json
CHANGED
package/src/types/supabase.ts
CHANGED
|
@@ -1678,6 +1678,36 @@ export type Database = {
|
|
|
1678
1678
|
Args: { p_creator_id: string; p_from_date: string; p_to_date: string };
|
|
1679
1679
|
Returns: number;
|
|
1680
1680
|
};
|
|
1681
|
+
get_transaction_service_breakdown: {
|
|
1682
|
+
Args: {
|
|
1683
|
+
p_direction?: Database["public"]["Enums"]["transaction_direction_enum"];
|
|
1684
|
+
p_from?: string;
|
|
1685
|
+
p_to?: string;
|
|
1686
|
+
};
|
|
1687
|
+
Returns: {
|
|
1688
|
+
percentage: number;
|
|
1689
|
+
service_type: string;
|
|
1690
|
+
total_amount: number;
|
|
1691
|
+
transaction_count: number;
|
|
1692
|
+
}[];
|
|
1693
|
+
};
|
|
1694
|
+
get_transaction_stats: {
|
|
1695
|
+
Args: { p_from?: string; p_to?: string };
|
|
1696
|
+
Returns: {
|
|
1697
|
+
earned_change: number;
|
|
1698
|
+
earned_one_time: number;
|
|
1699
|
+
earned_subscription: number;
|
|
1700
|
+
earned_total: number;
|
|
1701
|
+
pending_in: number;
|
|
1702
|
+
pending_in_change: number;
|
|
1703
|
+
pending_out: number;
|
|
1704
|
+
pending_out_change: number;
|
|
1705
|
+
spent_change: number;
|
|
1706
|
+
spent_one_time: number;
|
|
1707
|
+
spent_subscription: number;
|
|
1708
|
+
spent_total: number;
|
|
1709
|
+
}[];
|
|
1710
|
+
};
|
|
1681
1711
|
gift_newsletter_post: {
|
|
1682
1712
|
Args: {
|
|
1683
1713
|
p_expires_at?: string;
|
|
@@ -1722,6 +1752,10 @@ export type Database = {
|
|
|
1722
1752
|
Args: { p_post_id: string };
|
|
1723
1753
|
Returns: undefined;
|
|
1724
1754
|
};
|
|
1755
|
+
record_newsletter_post_view: {
|
|
1756
|
+
Args: { p_post_id: string };
|
|
1757
|
+
Returns: undefined;
|
|
1758
|
+
};
|
|
1725
1759
|
request_withdrawal: {
|
|
1726
1760
|
Args: { p_amount: number; p_payout_method_id: string };
|
|
1727
1761
|
Returns: string;
|