@hobenakicoffee/libraries 1.21.1 → 1.22.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.21.1",
3
+ "version": "1.22.0",
4
4
  "type": "module",
5
5
  "types": "src/index.ts",
6
6
  "exports": {
@@ -84,6 +84,7 @@ export type Database = {
84
84
  id: string;
85
85
  is_monthly: boolean;
86
86
  message: string | null;
87
+ supporter_identity_hash: string | null;
87
88
  supporter_name: string | null;
88
89
  supporter_platform: string | null;
89
90
  supporter_profile_id: string | null;
@@ -97,6 +98,7 @@ export type Database = {
97
98
  id?: string;
98
99
  is_monthly?: boolean;
99
100
  message?: string | null;
101
+ supporter_identity_hash?: string | null;
100
102
  supporter_name?: string | null;
101
103
  supporter_platform?: string | null;
102
104
  supporter_profile_id?: string | null;
@@ -110,6 +112,7 @@ export type Database = {
110
112
  id?: string;
111
113
  is_monthly?: boolean;
112
114
  message?: string | null;
115
+ supporter_identity_hash?: string | null;
113
116
  supporter_name?: string | null;
114
117
  supporter_platform?: string | null;
115
118
  supporter_profile_id?: string | null;
@@ -1016,6 +1019,21 @@ export type Database = {
1016
1019
  unread_count: number;
1017
1020
  }[];
1018
1021
  };
1022
+ get_creator_coffee_gifts_stats: {
1023
+ Args: {
1024
+ p_creator_profile_id: string;
1025
+ p_from_date?: string;
1026
+ p_to_date?: string;
1027
+ };
1028
+ Returns: {
1029
+ total_coffees: number;
1030
+ total_coffees_change: number;
1031
+ total_earnings: number;
1032
+ total_earnings_change: number;
1033
+ unique_supporters: number;
1034
+ unique_supporters_change: number;
1035
+ }[];
1036
+ };
1019
1037
  get_followers: { Args: { target_user_id: string }; Returns: string[] };
1020
1038
  get_following: { Args: { target_user_id: string }; Returns: string[] };
1021
1039
  get_messages: {
@@ -1048,6 +1066,18 @@ export type Database = {
1048
1066
  total_amount: number;
1049
1067
  }[];
1050
1068
  };
1069
+ get_supporter_coffee_gifts_stats: {
1070
+ Args: {
1071
+ p_from_date: string;
1072
+ p_supporter_profile_id: string;
1073
+ p_to_date: string;
1074
+ };
1075
+ Returns: {
1076
+ coffees_gifted: number;
1077
+ creators_supported: number;
1078
+ total_spent: number;
1079
+ }[];
1080
+ };
1051
1081
  get_total_supports_count: {
1052
1082
  Args: { p_creator_id: string; p_from_date: string; p_to_date: string };
1053
1083
  Returns: number;