@periskope/types 0.6.16 → 0.6.17

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.
@@ -374,7 +374,22 @@ export interface Database {
374
374
  org_id?: string;
375
375
  org_phone?: string;
376
376
  };
377
- Relationships: [];
377
+ Relationships: [
378
+ {
379
+ foreignKeyName: "tbl_chat_participants_fkey_tbl_chats";
380
+ columns: ["org_id", "org_phone", "chat_id"];
381
+ isOneToOne: false;
382
+ referencedRelation: "tbl_chats";
383
+ referencedColumns: ["org_id", "org_phone", "chat_id"];
384
+ },
385
+ {
386
+ foreignKeyName: "tbl_chat_participants_fkey_tbl_chats";
387
+ columns: ["org_id", "org_phone", "chat_id"];
388
+ isOneToOne: false;
389
+ referencedRelation: "view_chats";
390
+ referencedColumns: ["org_id", "org_phone", "chat_id"];
391
+ }
392
+ ];
378
393
  };
379
394
  tbl_chat_reactions: {
380
395
  Row: {
@@ -492,11 +507,11 @@ export interface Database {
492
507
  };
493
508
  Relationships: [
494
509
  {
495
- foreignKeyName: "tbl_chats_org_id_fkey";
496
- columns: ["org_id"];
510
+ foreignKeyName: "tbl_chats_fkey_tbl_org_phones";
511
+ columns: ["org_phone", "org_id"];
497
512
  isOneToOne: false;
498
- referencedRelation: "tbl_org";
499
- referencedColumns: ["org_id"];
513
+ referencedRelation: "tbl_org_phones";
514
+ referencedColumns: ["org_phone", "org_id"];
500
515
  }
501
516
  ];
502
517
  };
@@ -705,7 +720,7 @@ export interface Database {
705
720
  tbl_org_phones: {
706
721
  Row: {
707
722
  created_at: string;
708
- is_ready: boolean;
723
+ is_ready: boolean | null;
709
724
  org_id: string;
710
725
  org_phone: string | null;
711
726
  phone_id: string;
@@ -718,7 +733,7 @@ export interface Database {
718
733
  };
719
734
  Insert: {
720
735
  created_at?: string;
721
- is_ready?: boolean;
736
+ is_ready?: boolean | null;
722
737
  org_id: string;
723
738
  org_phone?: string | null;
724
739
  phone_id?: string;
@@ -731,7 +746,7 @@ export interface Database {
731
746
  };
732
747
  Update: {
733
748
  created_at?: string;
734
- is_ready?: boolean;
749
+ is_ready?: boolean | null;
735
750
  org_id?: string;
736
751
  org_phone?: string | null;
737
752
  phone_id?: string;
@@ -760,6 +775,7 @@ export interface Database {
760
775
  chat_access: Json | null;
761
776
  chat_id: string | null;
762
777
  chat_image: string | null;
778
+ chat_name: string | null;
763
779
  chat_type: string | null;
764
780
  group_metadata: Json | null;
765
781
  has_access: boolean | null;
@@ -784,11 +800,11 @@ export interface Database {
784
800
  };
785
801
  Relationships: [
786
802
  {
787
- foreignKeyName: "tbl_chats_org_id_fkey";
788
- columns: ["org_id"];
803
+ foreignKeyName: "tbl_chats_fkey_tbl_org_phones";
804
+ columns: ["org_phone", "org_id"];
789
805
  isOneToOne: false;
790
- referencedRelation: "tbl_org";
791
- referencedColumns: ["org_id"];
806
+ referencedRelation: "tbl_org_phones";
807
+ referencedColumns: ["org_phone", "org_id"];
792
808
  }
793
809
  ];
794
810
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@periskope/types",
3
- "version": "0.6.16",
3
+ "version": "0.6.17",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/supabase.types.ts CHANGED
@@ -373,7 +373,22 @@ export interface Database {
373
373
  org_id?: string
374
374
  org_phone?: string
375
375
  }
376
- Relationships: []
376
+ Relationships: [
377
+ {
378
+ foreignKeyName: "tbl_chat_participants_fkey_tbl_chats"
379
+ columns: ["org_id", "org_phone", "chat_id"]
380
+ isOneToOne: false
381
+ referencedRelation: "tbl_chats"
382
+ referencedColumns: ["org_id", "org_phone", "chat_id"]
383
+ },
384
+ {
385
+ foreignKeyName: "tbl_chat_participants_fkey_tbl_chats"
386
+ columns: ["org_id", "org_phone", "chat_id"]
387
+ isOneToOne: false
388
+ referencedRelation: "view_chats"
389
+ referencedColumns: ["org_id", "org_phone", "chat_id"]
390
+ }
391
+ ]
377
392
  }
378
393
  tbl_chat_reactions: {
379
394
  Row: {
@@ -491,11 +506,11 @@ export interface Database {
491
506
  }
492
507
  Relationships: [
493
508
  {
494
- foreignKeyName: "tbl_chats_org_id_fkey"
495
- columns: ["org_id"]
509
+ foreignKeyName: "tbl_chats_fkey_tbl_org_phones"
510
+ columns: ["org_phone", "org_id"]
496
511
  isOneToOne: false
497
- referencedRelation: "tbl_org"
498
- referencedColumns: ["org_id"]
512
+ referencedRelation: "tbl_org_phones"
513
+ referencedColumns: ["org_phone", "org_id"]
499
514
  }
500
515
  ]
501
516
  }
@@ -704,7 +719,7 @@ export interface Database {
704
719
  tbl_org_phones: {
705
720
  Row: {
706
721
  created_at: string
707
- is_ready: boolean
722
+ is_ready: boolean | null
708
723
  org_id: string
709
724
  org_phone: string | null
710
725
  phone_id: string
@@ -717,7 +732,7 @@ export interface Database {
717
732
  }
718
733
  Insert: {
719
734
  created_at?: string
720
- is_ready?: boolean
735
+ is_ready?: boolean | null
721
736
  org_id: string
722
737
  org_phone?: string | null
723
738
  phone_id?: string
@@ -730,7 +745,7 @@ export interface Database {
730
745
  }
731
746
  Update: {
732
747
  created_at?: string
733
- is_ready?: boolean
748
+ is_ready?: boolean | null
734
749
  org_id?: string
735
750
  org_phone?: string | null
736
751
  phone_id?: string
@@ -759,6 +774,7 @@ export interface Database {
759
774
  chat_access: Json | null
760
775
  chat_id: string | null
761
776
  chat_image: string | null
777
+ chat_name: string | null
762
778
  chat_type: string | null
763
779
  group_metadata: Json | null
764
780
  has_access: boolean | null
@@ -783,11 +799,11 @@ export interface Database {
783
799
  }
784
800
  Relationships: [
785
801
  {
786
- foreignKeyName: "tbl_chats_org_id_fkey"
787
- columns: ["org_id"]
802
+ foreignKeyName: "tbl_chats_fkey_tbl_org_phones"
803
+ columns: ["org_phone", "org_id"]
788
804
  isOneToOne: false
789
- referencedRelation: "tbl_org"
790
- referencedColumns: ["org_id"]
805
+ referencedRelation: "tbl_org_phones"
806
+ referencedColumns: ["org_phone", "org_id"]
791
807
  }
792
808
  ]
793
809
  }