@hobenakicoffee/libraries 1.27.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hobenakicoffee/libraries",
3
- "version": "1.27.0",
3
+ "version": "1.28.0",
4
4
  "type": "module",
5
5
  "types": "src/index.ts",
6
6
  "exports": {
@@ -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;