@hobenakicoffee/libraries 4.6.0 → 4.8.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/index.ts +18 -0
- package/src/types/supabase.ts +17 -0
package/package.json
CHANGED
package/src/types/index.ts
CHANGED
|
@@ -8,6 +8,16 @@ export type TransactionMetadata = {
|
|
|
8
8
|
count?: number;
|
|
9
9
|
};
|
|
10
10
|
|
|
11
|
+
export type ActivityType =
|
|
12
|
+
| "category_approved"
|
|
13
|
+
| "category_rejected"
|
|
14
|
+
| "product_approved"
|
|
15
|
+
| "product_rejected"
|
|
16
|
+
| "post_gifted"
|
|
17
|
+
| "post_gift_sent"
|
|
18
|
+
| "post_approved"
|
|
19
|
+
| "post_rejected";
|
|
20
|
+
|
|
11
21
|
export type ActivityMetadata = {
|
|
12
22
|
type?: string;
|
|
13
23
|
amount?: number;
|
|
@@ -37,7 +47,15 @@ export type ActivityMetadata = {
|
|
|
37
47
|
plan_name?: string;
|
|
38
48
|
service_type?: string;
|
|
39
49
|
billing_cycle?: string;
|
|
50
|
+
activity_type?: ActivityType;
|
|
40
51
|
period_end?: string;
|
|
52
|
+
rejection_reason?: string;
|
|
53
|
+
category_id?: string;
|
|
54
|
+
category_name?: string;
|
|
55
|
+
grant_id?: string;
|
|
56
|
+
gift_message?: string;
|
|
57
|
+
product_id?: string;
|
|
58
|
+
product_title?: string;
|
|
41
59
|
action?: "follow" | "unfollow";
|
|
42
60
|
};
|
|
43
61
|
|
package/src/types/supabase.ts
CHANGED
|
@@ -2766,6 +2766,15 @@ export type Database = {
|
|
|
2766
2766
|
Args: { p_order_item_id: string };
|
|
2767
2767
|
Returns: Json;
|
|
2768
2768
|
};
|
|
2769
|
+
moderate_user: {
|
|
2770
|
+
Args: {
|
|
2771
|
+
p_allow_gifting?: boolean;
|
|
2772
|
+
p_allow_subs?: boolean;
|
|
2773
|
+
p_is_page_active?: boolean;
|
|
2774
|
+
p_user_id: string;
|
|
2775
|
+
};
|
|
2776
|
+
Returns: Json;
|
|
2777
|
+
};
|
|
2769
2778
|
perform_coffee_gift: {
|
|
2770
2779
|
Args: {
|
|
2771
2780
|
p_amount: number;
|
|
@@ -2805,6 +2814,14 @@ export type Database = {
|
|
|
2805
2814
|
};
|
|
2806
2815
|
Returns: Json;
|
|
2807
2816
|
};
|
|
2817
|
+
process_withdrawal: {
|
|
2818
|
+
Args: {
|
|
2819
|
+
p_admin_note?: string;
|
|
2820
|
+
p_new_status: Database["public"]["Enums"]["withdrawal_status"];
|
|
2821
|
+
p_withdrawal_id: string;
|
|
2822
|
+
};
|
|
2823
|
+
Returns: Json;
|
|
2824
|
+
};
|
|
2808
2825
|
purchase_newsletter_membership: {
|
|
2809
2826
|
Args: {
|
|
2810
2827
|
p_buyer_name: string;
|