@hobenakicoffee/libraries 1.13.0 → 1.14.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 +19 -0
package/package.json
CHANGED
package/src/types/supabase.ts
CHANGED
|
@@ -490,8 +490,10 @@ export type Database = {
|
|
|
490
490
|
first_supported_at: string | null;
|
|
491
491
|
id: string;
|
|
492
492
|
identity_hash: string;
|
|
493
|
+
is_monthly: boolean;
|
|
493
494
|
last_supported_at: string | null;
|
|
494
495
|
last_supported_service: string | null;
|
|
496
|
+
metadata: Json;
|
|
495
497
|
name: string;
|
|
496
498
|
social_platform:
|
|
497
499
|
| Database["public"]["Enums"]["supporter_platform_enum"]
|
|
@@ -507,8 +509,10 @@ export type Database = {
|
|
|
507
509
|
first_supported_at?: string | null;
|
|
508
510
|
id?: string;
|
|
509
511
|
identity_hash: string;
|
|
512
|
+
is_monthly?: boolean;
|
|
510
513
|
last_supported_at?: string | null;
|
|
511
514
|
last_supported_service?: string | null;
|
|
515
|
+
metadata?: Json;
|
|
512
516
|
name: string;
|
|
513
517
|
social_platform?:
|
|
514
518
|
| Database["public"]["Enums"]["supporter_platform_enum"]
|
|
@@ -524,8 +528,10 @@ export type Database = {
|
|
|
524
528
|
first_supported_at?: string | null;
|
|
525
529
|
id?: string;
|
|
526
530
|
identity_hash?: string;
|
|
531
|
+
is_monthly?: boolean;
|
|
527
532
|
last_supported_at?: string | null;
|
|
528
533
|
last_supported_service?: string | null;
|
|
534
|
+
metadata?: Json;
|
|
529
535
|
name?: string;
|
|
530
536
|
social_platform?:
|
|
531
537
|
| Database["public"]["Enums"]["supporter_platform_enum"]
|
|
@@ -792,6 +798,18 @@ export type Database = {
|
|
|
792
798
|
follow_user: { Args: { target_user_id: string }; Returns: undefined };
|
|
793
799
|
get_followers: { Args: { target_user_id: string }; Returns: string[] };
|
|
794
800
|
get_following: { Args: { target_user_id: string }; Returns: string[] };
|
|
801
|
+
get_popular_content: {
|
|
802
|
+
Args: { p_creator_id: string; p_from_date: string; p_to_date: string };
|
|
803
|
+
Returns: {
|
|
804
|
+
service: string;
|
|
805
|
+
support_count: number;
|
|
806
|
+
total_amount: number;
|
|
807
|
+
}[];
|
|
808
|
+
};
|
|
809
|
+
get_total_supports_count: {
|
|
810
|
+
Args: { p_creator_id: string; p_from_date: string; p_to_date: string };
|
|
811
|
+
Returns: number;
|
|
812
|
+
};
|
|
795
813
|
handle_successful_payment: {
|
|
796
814
|
Args: {
|
|
797
815
|
p_amount: number;
|
|
@@ -823,6 +841,7 @@ export type Database = {
|
|
|
823
841
|
p_amount?: number;
|
|
824
842
|
p_creator_id: string;
|
|
825
843
|
p_identity_hash: string;
|
|
844
|
+
p_metadata?: Json;
|
|
826
845
|
p_name: string;
|
|
827
846
|
p_service_type?: string;
|
|
828
847
|
p_social_platform?: Database["public"]["Enums"]["supporter_platform_enum"];
|