@hobenakicoffee/libraries 5.0.0 → 5.2.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 +59 -11
package/package.json
CHANGED
package/src/types/supabase.ts
CHANGED
|
@@ -2462,12 +2462,13 @@ export type Database = {
|
|
|
2462
2462
|
fee: number;
|
|
2463
2463
|
id: string;
|
|
2464
2464
|
net_amount: number;
|
|
2465
|
-
payout_method_id: string;
|
|
2465
|
+
payout_method_id: string | null;
|
|
2466
2466
|
payout_snapshot: Json | null;
|
|
2467
2467
|
processed_at: string | null;
|
|
2468
2468
|
profile_id: string;
|
|
2469
2469
|
requested_at: string;
|
|
2470
2470
|
status: Database["public"]["Enums"]["withdrawal_status"];
|
|
2471
|
+
superseded_by: string | null;
|
|
2471
2472
|
wallet_id: string;
|
|
2472
2473
|
};
|
|
2473
2474
|
Insert: {
|
|
@@ -2478,12 +2479,13 @@ export type Database = {
|
|
|
2478
2479
|
fee?: number;
|
|
2479
2480
|
id?: string;
|
|
2480
2481
|
net_amount: number;
|
|
2481
|
-
payout_method_id
|
|
2482
|
+
payout_method_id?: string | null;
|
|
2482
2483
|
payout_snapshot?: Json | null;
|
|
2483
2484
|
processed_at?: string | null;
|
|
2484
2485
|
profile_id: string;
|
|
2485
2486
|
requested_at?: string;
|
|
2486
2487
|
status?: Database["public"]["Enums"]["withdrawal_status"];
|
|
2488
|
+
superseded_by?: string | null;
|
|
2487
2489
|
wallet_id: string;
|
|
2488
2490
|
};
|
|
2489
2491
|
Update: {
|
|
@@ -2494,12 +2496,13 @@ export type Database = {
|
|
|
2494
2496
|
fee?: number;
|
|
2495
2497
|
id?: string;
|
|
2496
2498
|
net_amount?: number;
|
|
2497
|
-
payout_method_id?: string;
|
|
2499
|
+
payout_method_id?: string | null;
|
|
2498
2500
|
payout_snapshot?: Json | null;
|
|
2499
2501
|
processed_at?: string | null;
|
|
2500
2502
|
profile_id?: string;
|
|
2501
2503
|
requested_at?: string;
|
|
2502
2504
|
status?: Database["public"]["Enums"]["withdrawal_status"];
|
|
2505
|
+
superseded_by?: string | null;
|
|
2503
2506
|
wallet_id?: string;
|
|
2504
2507
|
};
|
|
2505
2508
|
Relationships: [
|
|
@@ -2517,6 +2520,13 @@ export type Database = {
|
|
|
2517
2520
|
referencedRelation: "profiles";
|
|
2518
2521
|
referencedColumns: ["id"];
|
|
2519
2522
|
},
|
|
2523
|
+
{
|
|
2524
|
+
foreignKeyName: "withdrawal_requests_superseded_by_fkey";
|
|
2525
|
+
columns: ["superseded_by"];
|
|
2526
|
+
isOneToOne: false;
|
|
2527
|
+
referencedRelation: "withdrawal_requests";
|
|
2528
|
+
referencedColumns: ["id"];
|
|
2529
|
+
},
|
|
2520
2530
|
{
|
|
2521
2531
|
foreignKeyName: "withdrawal_requests_wallet_id_fkey";
|
|
2522
2532
|
columns: ["wallet_id"];
|
|
@@ -2896,6 +2906,24 @@ export type Database = {
|
|
|
2896
2906
|
recipient_name: string;
|
|
2897
2907
|
}[];
|
|
2898
2908
|
};
|
|
2909
|
+
get_withdrawal_requests_page: {
|
|
2910
|
+
Args: { p_cursor_requested_at?: string; p_limit?: number };
|
|
2911
|
+
Returns: {
|
|
2912
|
+
amount: number;
|
|
2913
|
+
completed_at: string;
|
|
2914
|
+
failure_reason: string;
|
|
2915
|
+
fee: number;
|
|
2916
|
+
id: string;
|
|
2917
|
+
net_amount: number;
|
|
2918
|
+
payout_method_id: string;
|
|
2919
|
+
payout_snapshot: Json;
|
|
2920
|
+
processed_at: string;
|
|
2921
|
+
profile_id: string;
|
|
2922
|
+
requested_at: string;
|
|
2923
|
+
status: Database["public"]["Enums"]["withdrawal_status"];
|
|
2924
|
+
wallet_id: string;
|
|
2925
|
+
}[];
|
|
2926
|
+
};
|
|
2899
2927
|
gift_newsletter_post: {
|
|
2900
2928
|
Args: {
|
|
2901
2929
|
p_expires_at?: string;
|
|
@@ -3001,14 +3029,26 @@ export type Database = {
|
|
|
3001
3029
|
};
|
|
3002
3030
|
Returns: Json;
|
|
3003
3031
|
};
|
|
3004
|
-
process_withdrawal:
|
|
3005
|
-
|
|
3006
|
-
|
|
3007
|
-
|
|
3008
|
-
|
|
3009
|
-
|
|
3010
|
-
|
|
3011
|
-
|
|
3032
|
+
process_withdrawal:
|
|
3033
|
+
| {
|
|
3034
|
+
Args: {
|
|
3035
|
+
p_admin_note?: string;
|
|
3036
|
+
p_failure_reason?: string;
|
|
3037
|
+
p_new_status: Database["public"]["Enums"]["withdrawal_status"];
|
|
3038
|
+
p_withdrawal_id: string;
|
|
3039
|
+
};
|
|
3040
|
+
Returns: Json;
|
|
3041
|
+
}
|
|
3042
|
+
| {
|
|
3043
|
+
Args: {
|
|
3044
|
+
p_admin_note?: string;
|
|
3045
|
+
p_failure_reason?: string;
|
|
3046
|
+
p_fee?: number;
|
|
3047
|
+
p_new_status: Database["public"]["Enums"]["withdrawal_status"];
|
|
3048
|
+
p_withdrawal_id: string;
|
|
3049
|
+
};
|
|
3050
|
+
Returns: Json;
|
|
3051
|
+
};
|
|
3012
3052
|
purchase_newsletter_membership: {
|
|
3013
3053
|
Args: {
|
|
3014
3054
|
p_buyer_name: string;
|
|
@@ -3071,6 +3111,14 @@ export type Database = {
|
|
|
3071
3111
|
Args: { p_amount: number; p_payout_method_id: string };
|
|
3072
3112
|
Returns: string;
|
|
3073
3113
|
};
|
|
3114
|
+
retry_withdrawal: {
|
|
3115
|
+
Args: {
|
|
3116
|
+
p_amount?: number;
|
|
3117
|
+
p_payout_method_id?: string;
|
|
3118
|
+
p_withdrawal_id: string;
|
|
3119
|
+
};
|
|
3120
|
+
Returns: string;
|
|
3121
|
+
};
|
|
3074
3122
|
send_message: {
|
|
3075
3123
|
Args: { p_content: string; p_conversation_id: string };
|
|
3076
3124
|
Returns: {
|