@hobenakicoffee/libraries 1.15.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hobenakicoffee/libraries",
3
- "version": "1.15.0",
3
+ "version": "1.16.0",
4
4
  "type": "module",
5
5
  "types": "src/index.ts",
6
6
  "exports": {
@@ -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;
@@ -581,6 +584,7 @@ export type Database = {
581
584
  };
582
585
  supporters: {
583
586
  Row: {
587
+ conversation_id: string | null;
584
588
  created_at: string;
585
589
  creator_id: string;
586
590
  first_supported_at: string | null;
@@ -600,6 +604,7 @@ export type Database = {
600
604
  user_profile_id: string | null;
601
605
  };
602
606
  Insert: {
607
+ conversation_id?: string | null;
603
608
  created_at?: string;
604
609
  creator_id: string;
605
610
  first_supported_at?: string | null;
@@ -619,6 +624,7 @@ export type Database = {
619
624
  user_profile_id?: string | null;
620
625
  };
621
626
  Update: {
627
+ conversation_id?: string | null;
622
628
  created_at?: string;
623
629
  creator_id?: string;
624
630
  first_supported_at?: string | null;
@@ -638,6 +644,13 @@ export type Database = {
638
644
  user_profile_id?: string | null;
639
645
  };
640
646
  Relationships: [
647
+ {
648
+ foreignKeyName: "supporters_conversation_id_fkey";
649
+ columns: ["conversation_id"];
650
+ isOneToOne: false;
651
+ referencedRelation: "conversations";
652
+ referencedColumns: ["id"];
653
+ },
641
654
  {
642
655
  foreignKeyName: "supporters_creator_id_fkey";
643
656
  columns: ["creator_id"];
@@ -926,6 +939,10 @@ export type Database = {
926
939
  sender_username: string;
927
940
  }[];
928
941
  };
942
+ get_or_create_direct_conversation: {
943
+ Args: { p_recipient_id: string };
944
+ Returns: string;
945
+ };
929
946
  get_popular_content: {
930
947
  Args: { p_creator_id: string; p_from_date: string; p_to_date: string };
931
948
  Returns: {