@hobenakicoffee/libraries 5.0.0 → 5.1.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": "5.0.0",
3
+ "version": "5.1.0",
4
4
  "type": "module",
5
5
  "types": "src/index.ts",
6
6
  "repository": {
@@ -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: string;
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;
@@ -3004,6 +3032,7 @@ export type Database = {
3004
3032
  process_withdrawal: {
3005
3033
  Args: {
3006
3034
  p_admin_note?: string;
3035
+ p_failure_reason?: string;
3007
3036
  p_new_status: Database["public"]["Enums"]["withdrawal_status"];
3008
3037
  p_withdrawal_id: string;
3009
3038
  };
@@ -3071,6 +3100,14 @@ export type Database = {
3071
3100
  Args: { p_amount: number; p_payout_method_id: string };
3072
3101
  Returns: string;
3073
3102
  };
3103
+ retry_withdrawal: {
3104
+ Args: {
3105
+ p_amount?: number;
3106
+ p_payout_method_id?: string;
3107
+ p_withdrawal_id: string;
3108
+ };
3109
+ Returns: string;
3110
+ };
3074
3111
  send_message: {
3075
3112
  Args: { p_content: string; p_conversation_id: string };
3076
3113
  Returns: {