@hobenakicoffee/libraries 1.14.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.14.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;
@@ -794,10 +890,42 @@ export type Database = {
794
890
  };
795
891
  Returns: string;
796
892
  };
893
+ create_next_month_partition: { Args: never; Returns: undefined };
797
894
  custom_access_token_hook: { Args: { event: Json }; Returns: Json };
895
+ drop_old_partitions: { Args: never; Returns: undefined };
798
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
+ };
799
909
  get_followers: { Args: { target_user_id: string }; Returns: string[] };
800
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
+ };
801
929
  get_popular_content: {
802
930
  Args: { p_creator_id: string; p_from_date: string; p_to_date: string };
803
931
  Returns: {
@@ -828,10 +956,24 @@ export type Database = {
828
956
  is_admin: { Args: never; Returns: boolean };
829
957
  is_following: { Args: { target_user_id: string }; Returns: boolean };
830
958
  is_manager: { Args: { user_email: string }; Returns: boolean };
959
+ mark_conversation_as_read: {
960
+ Args: { p_conversation_id: string };
961
+ Returns: undefined;
962
+ };
831
963
  request_withdrawal: {
832
964
  Args: { p_amount: number; p_payout_method_id: string };
833
965
  Returns: string;
834
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
+ };
835
977
  show_limit: { Args: never; Returns: number };
836
978
  show_trgm: { Args: { "": string }; Returns: string[] };
837
979
  toggle_follow: { Args: { target_user_id: string }; Returns: boolean };