@hobenakicoffee/libraries 1.13.0 → 1.15.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.13.0",
3
+ "version": "1.15.0",
4
4
  "type": "module",
5
5
  "types": "src/index.ts",
6
6
  "exports": {
@@ -370,6 +370,102 @@ export type Database = {
370
370
  },
371
371
  ];
372
372
  };
373
+ messages_2026_02: {
374
+ Row: {
375
+ content: string;
376
+ conversation_id: string;
377
+ created_at: string;
378
+ id: number;
379
+ sender_id: string;
380
+ };
381
+ Insert: {
382
+ content: string;
383
+ conversation_id: string;
384
+ created_at?: string;
385
+ id?: number;
386
+ sender_id: string;
387
+ };
388
+ Update: {
389
+ content?: string;
390
+ conversation_id?: string;
391
+ created_at?: string;
392
+ id?: number;
393
+ sender_id?: string;
394
+ };
395
+ Relationships: [];
396
+ };
397
+ messages_2026_03: {
398
+ Row: {
399
+ content: string;
400
+ conversation_id: string;
401
+ created_at: string;
402
+ id: number;
403
+ sender_id: string;
404
+ };
405
+ Insert: {
406
+ content: string;
407
+ conversation_id: string;
408
+ created_at?: string;
409
+ id?: number;
410
+ sender_id: string;
411
+ };
412
+ Update: {
413
+ content?: string;
414
+ conversation_id?: string;
415
+ created_at?: string;
416
+ id?: number;
417
+ sender_id?: string;
418
+ };
419
+ Relationships: [];
420
+ };
421
+ messages_2026_04: {
422
+ Row: {
423
+ content: string;
424
+ conversation_id: string;
425
+ created_at: string;
426
+ id: number;
427
+ sender_id: string;
428
+ };
429
+ Insert: {
430
+ content: string;
431
+ conversation_id: string;
432
+ created_at?: string;
433
+ id?: number;
434
+ sender_id: string;
435
+ };
436
+ Update: {
437
+ content?: string;
438
+ conversation_id?: string;
439
+ created_at?: string;
440
+ id?: number;
441
+ sender_id?: string;
442
+ };
443
+ Relationships: [];
444
+ };
445
+ messages_default: {
446
+ Row: {
447
+ content: string;
448
+ conversation_id: string;
449
+ created_at: string;
450
+ id: number;
451
+ sender_id: string;
452
+ };
453
+ Insert: {
454
+ content: string;
455
+ conversation_id: string;
456
+ created_at?: string;
457
+ id?: number;
458
+ sender_id: string;
459
+ };
460
+ Update: {
461
+ content?: string;
462
+ conversation_id?: string;
463
+ created_at?: string;
464
+ id?: number;
465
+ sender_id?: string;
466
+ };
467
+ Relationships: [];
468
+ };
373
469
  payout_methods: {
374
470
  Row: {
375
471
  created_at: string;
@@ -490,8 +586,10 @@ export type Database = {
490
586
  first_supported_at: string | null;
491
587
  id: string;
492
588
  identity_hash: string;
589
+ is_monthly: boolean;
493
590
  last_supported_at: string | null;
494
591
  last_supported_service: string | null;
592
+ metadata: Json;
495
593
  name: string;
496
594
  social_platform:
497
595
  | Database["public"]["Enums"]["supporter_platform_enum"]
@@ -507,8 +605,10 @@ export type Database = {
507
605
  first_supported_at?: string | null;
508
606
  id?: string;
509
607
  identity_hash: string;
608
+ is_monthly?: boolean;
510
609
  last_supported_at?: string | null;
511
610
  last_supported_service?: string | null;
611
+ metadata?: Json;
512
612
  name: string;
513
613
  social_platform?:
514
614
  | Database["public"]["Enums"]["supporter_platform_enum"]
@@ -524,8 +624,10 @@ export type Database = {
524
624
  first_supported_at?: string | null;
525
625
  id?: string;
526
626
  identity_hash?: string;
627
+ is_monthly?: boolean;
527
628
  last_supported_at?: string | null;
528
629
  last_supported_service?: string | null;
630
+ metadata?: Json;
529
631
  name?: string;
530
632
  social_platform?:
531
633
  | Database["public"]["Enums"]["supporter_platform_enum"]
@@ -788,10 +890,54 @@ export type Database = {
788
890
  };
789
891
  Returns: string;
790
892
  };
893
+ create_next_month_partition: { Args: never; Returns: undefined };
791
894
  custom_access_token_hook: { Args: { event: Json }; Returns: Json };
895
+ drop_old_partitions: { Args: never; Returns: undefined };
792
896
  follow_user: { Args: { target_user_id: string }; Returns: undefined };
897
+ get_conversations: {
898
+ Args: { p_limit?: number; p_offset?: number };
899
+ Returns: {
900
+ id: string;
901
+ last_message_at: string;
902
+ last_message_preview: string;
903
+ name: string;
904
+ participants: Json;
905
+ type: string;
906
+ unread_count: number;
907
+ }[];
908
+ };
793
909
  get_followers: { Args: { target_user_id: string }; Returns: string[] };
794
910
  get_following: { Args: { target_user_id: string }; Returns: string[] };
911
+ get_messages: {
912
+ Args: {
913
+ p_conversation_id: string;
914
+ p_limit?: number;
915
+ p_offset?: number;
916
+ };
917
+ Returns: {
918
+ content: string;
919
+ conversation_id: string;
920
+ created_at: string;
921
+ id: number;
922
+ is_mine: boolean;
923
+ sender_avatar_url: string;
924
+ sender_display_name: string;
925
+ sender_id: string;
926
+ sender_username: string;
927
+ }[];
928
+ };
929
+ get_popular_content: {
930
+ Args: { p_creator_id: string; p_from_date: string; p_to_date: string };
931
+ Returns: {
932
+ service: string;
933
+ support_count: number;
934
+ total_amount: number;
935
+ }[];
936
+ };
937
+ get_total_supports_count: {
938
+ Args: { p_creator_id: string; p_from_date: string; p_to_date: string };
939
+ Returns: number;
940
+ };
795
941
  handle_successful_payment: {
796
942
  Args: {
797
943
  p_amount: number;
@@ -810,10 +956,24 @@ export type Database = {
810
956
  is_admin: { Args: never; Returns: boolean };
811
957
  is_following: { Args: { target_user_id: string }; Returns: boolean };
812
958
  is_manager: { Args: { user_email: string }; Returns: boolean };
959
+ mark_conversation_as_read: {
960
+ Args: { p_conversation_id: string };
961
+ Returns: undefined;
962
+ };
813
963
  request_withdrawal: {
814
964
  Args: { p_amount: number; p_payout_method_id: string };
815
965
  Returns: string;
816
966
  };
967
+ send_message: {
968
+ Args: { p_content: string; p_conversation_id: string };
969
+ Returns: {
970
+ content: string;
971
+ conversation_id: string;
972
+ created_at: string;
973
+ id: number;
974
+ sender_id: string;
975
+ }[];
976
+ };
817
977
  show_limit: { Args: never; Returns: number };
818
978
  show_trgm: { Args: { "": string }; Returns: string[] };
819
979
  toggle_follow: { Args: { target_user_id: string }; Returns: boolean };
@@ -823,6 +983,7 @@ export type Database = {
823
983
  p_amount?: number;
824
984
  p_creator_id: string;
825
985
  p_identity_hash: string;
986
+ p_metadata?: Json;
826
987
  p_name: string;
827
988
  p_service_type?: string;
828
989
  p_social_platform?: Database["public"]["Enums"]["supporter_platform_enum"];