@hobenakicoffee/libraries 1.14.0 → 1.16.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 +159 -0
package/package.json
CHANGED
package/src/types/supabase.ts
CHANGED
|
@@ -14,6 +14,7 @@ export type Database = {
|
|
|
14
14
|
counterparty_profile_id: string | null;
|
|
15
15
|
created_at: string;
|
|
16
16
|
id: string;
|
|
17
|
+
is_dismissed: boolean;
|
|
17
18
|
metadata: Json;
|
|
18
19
|
reference_id: string;
|
|
19
20
|
role: string;
|
|
@@ -27,6 +28,7 @@ export type Database = {
|
|
|
27
28
|
counterparty_profile_id?: string | null;
|
|
28
29
|
created_at?: string;
|
|
29
30
|
id?: string;
|
|
31
|
+
is_dismissed?: boolean;
|
|
30
32
|
metadata?: Json;
|
|
31
33
|
reference_id: string;
|
|
32
34
|
role: string;
|
|
@@ -40,6 +42,7 @@ export type Database = {
|
|
|
40
42
|
counterparty_profile_id?: string | null;
|
|
41
43
|
created_at?: string;
|
|
42
44
|
id?: string;
|
|
45
|
+
is_dismissed?: boolean;
|
|
43
46
|
metadata?: Json;
|
|
44
47
|
reference_id?: string;
|
|
45
48
|
role?: string;
|
|
@@ -370,6 +373,102 @@ export type Database = {
|
|
|
370
373
|
},
|
|
371
374
|
];
|
|
372
375
|
};
|
|
376
|
+
messages_2026_02: {
|
|
377
|
+
Row: {
|
|
378
|
+
content: string;
|
|
379
|
+
conversation_id: string;
|
|
380
|
+
created_at: string;
|
|
381
|
+
id: number;
|
|
382
|
+
sender_id: string;
|
|
383
|
+
};
|
|
384
|
+
Insert: {
|
|
385
|
+
content: string;
|
|
386
|
+
conversation_id: string;
|
|
387
|
+
created_at?: string;
|
|
388
|
+
id?: number;
|
|
389
|
+
sender_id: string;
|
|
390
|
+
};
|
|
391
|
+
Update: {
|
|
392
|
+
content?: string;
|
|
393
|
+
conversation_id?: string;
|
|
394
|
+
created_at?: string;
|
|
395
|
+
id?: number;
|
|
396
|
+
sender_id?: string;
|
|
397
|
+
};
|
|
398
|
+
Relationships: [];
|
|
399
|
+
};
|
|
400
|
+
messages_2026_03: {
|
|
401
|
+
Row: {
|
|
402
|
+
content: string;
|
|
403
|
+
conversation_id: string;
|
|
404
|
+
created_at: string;
|
|
405
|
+
id: number;
|
|
406
|
+
sender_id: string;
|
|
407
|
+
};
|
|
408
|
+
Insert: {
|
|
409
|
+
content: string;
|
|
410
|
+
conversation_id: string;
|
|
411
|
+
created_at?: string;
|
|
412
|
+
id?: number;
|
|
413
|
+
sender_id: string;
|
|
414
|
+
};
|
|
415
|
+
Update: {
|
|
416
|
+
content?: string;
|
|
417
|
+
conversation_id?: string;
|
|
418
|
+
created_at?: string;
|
|
419
|
+
id?: number;
|
|
420
|
+
sender_id?: string;
|
|
421
|
+
};
|
|
422
|
+
Relationships: [];
|
|
423
|
+
};
|
|
424
|
+
messages_2026_04: {
|
|
425
|
+
Row: {
|
|
426
|
+
content: string;
|
|
427
|
+
conversation_id: string;
|
|
428
|
+
created_at: string;
|
|
429
|
+
id: number;
|
|
430
|
+
sender_id: string;
|
|
431
|
+
};
|
|
432
|
+
Insert: {
|
|
433
|
+
content: string;
|
|
434
|
+
conversation_id: string;
|
|
435
|
+
created_at?: string;
|
|
436
|
+
id?: number;
|
|
437
|
+
sender_id: string;
|
|
438
|
+
};
|
|
439
|
+
Update: {
|
|
440
|
+
content?: string;
|
|
441
|
+
conversation_id?: string;
|
|
442
|
+
created_at?: string;
|
|
443
|
+
id?: number;
|
|
444
|
+
sender_id?: string;
|
|
445
|
+
};
|
|
446
|
+
Relationships: [];
|
|
447
|
+
};
|
|
448
|
+
messages_default: {
|
|
449
|
+
Row: {
|
|
450
|
+
content: string;
|
|
451
|
+
conversation_id: string;
|
|
452
|
+
created_at: string;
|
|
453
|
+
id: number;
|
|
454
|
+
sender_id: string;
|
|
455
|
+
};
|
|
456
|
+
Insert: {
|
|
457
|
+
content: string;
|
|
458
|
+
conversation_id: string;
|
|
459
|
+
created_at?: string;
|
|
460
|
+
id?: number;
|
|
461
|
+
sender_id: string;
|
|
462
|
+
};
|
|
463
|
+
Update: {
|
|
464
|
+
content?: string;
|
|
465
|
+
conversation_id?: string;
|
|
466
|
+
created_at?: string;
|
|
467
|
+
id?: number;
|
|
468
|
+
sender_id?: string;
|
|
469
|
+
};
|
|
470
|
+
Relationships: [];
|
|
471
|
+
};
|
|
373
472
|
payout_methods: {
|
|
374
473
|
Row: {
|
|
375
474
|
created_at: string;
|
|
@@ -485,6 +584,7 @@ export type Database = {
|
|
|
485
584
|
};
|
|
486
585
|
supporters: {
|
|
487
586
|
Row: {
|
|
587
|
+
conversation_id: string | null;
|
|
488
588
|
created_at: string;
|
|
489
589
|
creator_id: string;
|
|
490
590
|
first_supported_at: string | null;
|
|
@@ -504,6 +604,7 @@ export type Database = {
|
|
|
504
604
|
user_profile_id: string | null;
|
|
505
605
|
};
|
|
506
606
|
Insert: {
|
|
607
|
+
conversation_id?: string | null;
|
|
507
608
|
created_at?: string;
|
|
508
609
|
creator_id: string;
|
|
509
610
|
first_supported_at?: string | null;
|
|
@@ -523,6 +624,7 @@ export type Database = {
|
|
|
523
624
|
user_profile_id?: string | null;
|
|
524
625
|
};
|
|
525
626
|
Update: {
|
|
627
|
+
conversation_id?: string | null;
|
|
526
628
|
created_at?: string;
|
|
527
629
|
creator_id?: string;
|
|
528
630
|
first_supported_at?: string | null;
|
|
@@ -542,6 +644,13 @@ export type Database = {
|
|
|
542
644
|
user_profile_id?: string | null;
|
|
543
645
|
};
|
|
544
646
|
Relationships: [
|
|
647
|
+
{
|
|
648
|
+
foreignKeyName: "supporters_conversation_id_fkey";
|
|
649
|
+
columns: ["conversation_id"];
|
|
650
|
+
isOneToOne: false;
|
|
651
|
+
referencedRelation: "conversations";
|
|
652
|
+
referencedColumns: ["id"];
|
|
653
|
+
},
|
|
545
654
|
{
|
|
546
655
|
foreignKeyName: "supporters_creator_id_fkey";
|
|
547
656
|
columns: ["creator_id"];
|
|
@@ -794,10 +903,46 @@ export type Database = {
|
|
|
794
903
|
};
|
|
795
904
|
Returns: string;
|
|
796
905
|
};
|
|
906
|
+
create_next_month_partition: { Args: never; Returns: undefined };
|
|
797
907
|
custom_access_token_hook: { Args: { event: Json }; Returns: Json };
|
|
908
|
+
drop_old_partitions: { Args: never; Returns: undefined };
|
|
798
909
|
follow_user: { Args: { target_user_id: string }; Returns: undefined };
|
|
910
|
+
get_conversations: {
|
|
911
|
+
Args: { p_limit?: number; p_offset?: number };
|
|
912
|
+
Returns: {
|
|
913
|
+
id: string;
|
|
914
|
+
last_message_at: string;
|
|
915
|
+
last_message_preview: string;
|
|
916
|
+
name: string;
|
|
917
|
+
participants: Json;
|
|
918
|
+
type: string;
|
|
919
|
+
unread_count: number;
|
|
920
|
+
}[];
|
|
921
|
+
};
|
|
799
922
|
get_followers: { Args: { target_user_id: string }; Returns: string[] };
|
|
800
923
|
get_following: { Args: { target_user_id: string }; Returns: string[] };
|
|
924
|
+
get_messages: {
|
|
925
|
+
Args: {
|
|
926
|
+
p_conversation_id: string;
|
|
927
|
+
p_limit?: number;
|
|
928
|
+
p_offset?: number;
|
|
929
|
+
};
|
|
930
|
+
Returns: {
|
|
931
|
+
content: string;
|
|
932
|
+
conversation_id: string;
|
|
933
|
+
created_at: string;
|
|
934
|
+
id: number;
|
|
935
|
+
is_mine: boolean;
|
|
936
|
+
sender_avatar_url: string;
|
|
937
|
+
sender_display_name: string;
|
|
938
|
+
sender_id: string;
|
|
939
|
+
sender_username: string;
|
|
940
|
+
}[];
|
|
941
|
+
};
|
|
942
|
+
get_or_create_direct_conversation: {
|
|
943
|
+
Args: { p_recipient_id: string };
|
|
944
|
+
Returns: string;
|
|
945
|
+
};
|
|
801
946
|
get_popular_content: {
|
|
802
947
|
Args: { p_creator_id: string; p_from_date: string; p_to_date: string };
|
|
803
948
|
Returns: {
|
|
@@ -828,10 +973,24 @@ export type Database = {
|
|
|
828
973
|
is_admin: { Args: never; Returns: boolean };
|
|
829
974
|
is_following: { Args: { target_user_id: string }; Returns: boolean };
|
|
830
975
|
is_manager: { Args: { user_email: string }; Returns: boolean };
|
|
976
|
+
mark_conversation_as_read: {
|
|
977
|
+
Args: { p_conversation_id: string };
|
|
978
|
+
Returns: undefined;
|
|
979
|
+
};
|
|
831
980
|
request_withdrawal: {
|
|
832
981
|
Args: { p_amount: number; p_payout_method_id: string };
|
|
833
982
|
Returns: string;
|
|
834
983
|
};
|
|
984
|
+
send_message: {
|
|
985
|
+
Args: { p_content: string; p_conversation_id: string };
|
|
986
|
+
Returns: {
|
|
987
|
+
content: string;
|
|
988
|
+
conversation_id: string;
|
|
989
|
+
created_at: string;
|
|
990
|
+
id: number;
|
|
991
|
+
sender_id: string;
|
|
992
|
+
}[];
|
|
993
|
+
};
|
|
835
994
|
show_limit: { Args: never; Returns: number };
|
|
836
995
|
show_trgm: { Args: { "": string }; Returns: string[] };
|
|
837
996
|
toggle_follow: { Args: { target_user_id: string }; Returns: boolean };
|