@hobenakicoffee/libraries 1.15.0 → 1.17.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 +29 -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;
|
|
@@ -516,13 +519,17 @@ export type Database = {
|
|
|
516
519
|
bio: string | null;
|
|
517
520
|
created_at: string | null;
|
|
518
521
|
display_name: string | null;
|
|
522
|
+
first_service_name: string | null;
|
|
519
523
|
follower_count: number | null;
|
|
520
524
|
following_count: number | null;
|
|
521
525
|
full_name: string | null;
|
|
526
|
+
has_first_service: boolean | null;
|
|
522
527
|
has_wallet_balance: boolean | null;
|
|
523
528
|
id: string;
|
|
524
529
|
is_page_active: boolean | null;
|
|
525
530
|
layout: Json | null;
|
|
531
|
+
onboarding_completed_at: string | null;
|
|
532
|
+
onboarding_step: number | null;
|
|
526
533
|
page_slug: string;
|
|
527
534
|
role: Database["public"]["Enums"]["user_role"];
|
|
528
535
|
social_links: Json | null;
|
|
@@ -539,13 +546,17 @@ export type Database = {
|
|
|
539
546
|
bio?: string | null;
|
|
540
547
|
created_at?: string | null;
|
|
541
548
|
display_name?: string | null;
|
|
549
|
+
first_service_name?: string | null;
|
|
542
550
|
follower_count?: number | null;
|
|
543
551
|
following_count?: number | null;
|
|
544
552
|
full_name?: string | null;
|
|
553
|
+
has_first_service?: boolean | null;
|
|
545
554
|
has_wallet_balance?: boolean | null;
|
|
546
555
|
id: string;
|
|
547
556
|
is_page_active?: boolean | null;
|
|
548
557
|
layout?: Json | null;
|
|
558
|
+
onboarding_completed_at?: string | null;
|
|
559
|
+
onboarding_step?: number | null;
|
|
549
560
|
page_slug: string;
|
|
550
561
|
role?: Database["public"]["Enums"]["user_role"];
|
|
551
562
|
social_links?: Json | null;
|
|
@@ -562,13 +573,17 @@ export type Database = {
|
|
|
562
573
|
bio?: string | null;
|
|
563
574
|
created_at?: string | null;
|
|
564
575
|
display_name?: string | null;
|
|
576
|
+
first_service_name?: string | null;
|
|
565
577
|
follower_count?: number | null;
|
|
566
578
|
following_count?: number | null;
|
|
567
579
|
full_name?: string | null;
|
|
580
|
+
has_first_service?: boolean | null;
|
|
568
581
|
has_wallet_balance?: boolean | null;
|
|
569
582
|
id?: string;
|
|
570
583
|
is_page_active?: boolean | null;
|
|
571
584
|
layout?: Json | null;
|
|
585
|
+
onboarding_completed_at?: string | null;
|
|
586
|
+
onboarding_step?: number | null;
|
|
572
587
|
page_slug?: string;
|
|
573
588
|
role?: Database["public"]["Enums"]["user_role"];
|
|
574
589
|
social_links?: Json | null;
|
|
@@ -581,6 +596,7 @@ export type Database = {
|
|
|
581
596
|
};
|
|
582
597
|
supporters: {
|
|
583
598
|
Row: {
|
|
599
|
+
conversation_id: string | null;
|
|
584
600
|
created_at: string;
|
|
585
601
|
creator_id: string;
|
|
586
602
|
first_supported_at: string | null;
|
|
@@ -600,6 +616,7 @@ export type Database = {
|
|
|
600
616
|
user_profile_id: string | null;
|
|
601
617
|
};
|
|
602
618
|
Insert: {
|
|
619
|
+
conversation_id?: string | null;
|
|
603
620
|
created_at?: string;
|
|
604
621
|
creator_id: string;
|
|
605
622
|
first_supported_at?: string | null;
|
|
@@ -619,6 +636,7 @@ export type Database = {
|
|
|
619
636
|
user_profile_id?: string | null;
|
|
620
637
|
};
|
|
621
638
|
Update: {
|
|
639
|
+
conversation_id?: string | null;
|
|
622
640
|
created_at?: string;
|
|
623
641
|
creator_id?: string;
|
|
624
642
|
first_supported_at?: string | null;
|
|
@@ -638,6 +656,13 @@ export type Database = {
|
|
|
638
656
|
user_profile_id?: string | null;
|
|
639
657
|
};
|
|
640
658
|
Relationships: [
|
|
659
|
+
{
|
|
660
|
+
foreignKeyName: "supporters_conversation_id_fkey";
|
|
661
|
+
columns: ["conversation_id"];
|
|
662
|
+
isOneToOne: false;
|
|
663
|
+
referencedRelation: "conversations";
|
|
664
|
+
referencedColumns: ["id"];
|
|
665
|
+
},
|
|
641
666
|
{
|
|
642
667
|
foreignKeyName: "supporters_creator_id_fkey";
|
|
643
668
|
columns: ["creator_id"];
|
|
@@ -926,6 +951,10 @@ export type Database = {
|
|
|
926
951
|
sender_username: string;
|
|
927
952
|
}[];
|
|
928
953
|
};
|
|
954
|
+
get_or_create_direct_conversation: {
|
|
955
|
+
Args: { p_recipient_id: string };
|
|
956
|
+
Returns: string;
|
|
957
|
+
};
|
|
929
958
|
get_popular_content: {
|
|
930
959
|
Args: { p_creator_id: string; p_from_date: string; p_to_date: string };
|
|
931
960
|
Returns: {
|