@periskope/types 0.6.36 → 0.6.37

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.
@@ -39,7 +39,6 @@ export interface Database {
39
39
  org_id: string;
40
40
  performed_by: string | null;
41
41
  scheduled_at: string | null;
42
- status: string | null;
43
42
  };
44
43
  Insert: {
45
44
  broadcast_id?: string;
@@ -50,7 +49,6 @@ export interface Database {
50
49
  org_id?: string;
51
50
  performed_by?: string | null;
52
51
  scheduled_at?: string | null;
53
- status?: string | null;
54
52
  };
55
53
  Update: {
56
54
  broadcast_id?: string;
@@ -61,7 +59,6 @@ export interface Database {
61
59
  org_id?: string;
62
60
  performed_by?: string | null;
63
61
  scheduled_at?: string | null;
64
- status?: string | null;
65
62
  };
66
63
  Relationships: [
67
64
  {
@@ -876,6 +873,7 @@ export interface Database {
876
873
  chat_id: string | null;
877
874
  chat_image: string | null;
878
875
  chat_name: string | null;
876
+ chat_org_phones: string[] | null;
879
877
  chat_type: string | null;
880
878
  group_metadata: Json | null;
881
879
  has_access: boolean | null;
@@ -908,6 +906,47 @@ export interface Database {
908
906
  }
909
907
  ];
910
908
  };
909
+ view_contacts: {
910
+ Row: {
911
+ business_profile: Json | null;
912
+ chat_count: number | null;
913
+ chat_ids: string[] | null;
914
+ contact_color: Database["public"]["Enums"]["enum_chat_colors"] | null;
915
+ contact_id: string | null;
916
+ contact_image: string | null;
917
+ contact_name: string | null;
918
+ contact_type: string | null;
919
+ id: Json | null;
920
+ is_blocked: boolean | null;
921
+ is_business: boolean | null;
922
+ is_enterprise: boolean | null;
923
+ is_group: boolean | null;
924
+ is_internal: boolean | null;
925
+ is_me: boolean | null;
926
+ is_my_contact: boolean | null;
927
+ is_user: boolean | null;
928
+ is_wa_contact: boolean | null;
929
+ label_ids: Json | null;
930
+ last_updated_at: string | null;
931
+ name: string | null;
932
+ number: string | null;
933
+ org_id: string | null;
934
+ pushname: string | null;
935
+ short_name: string | null;
936
+ updated_at: string | null;
937
+ verified_level: number | null;
938
+ verified_name: string | null;
939
+ };
940
+ Relationships: [
941
+ {
942
+ foreignKeyName: "tbl_contacts_org_id_fkey";
943
+ columns: ["org_id"];
944
+ isOneToOne: false;
945
+ referencedRelation: "tbl_org";
946
+ referencedColumns: ["org_id"];
947
+ }
948
+ ];
949
+ };
911
950
  };
912
951
  Functions: {
913
952
  gen_id: {
@@ -929,6 +968,12 @@ export interface Database {
929
968
  };
930
969
  Returns: Json;
931
970
  };
971
+ get_chat_labels_data: {
972
+ Args: {
973
+ chat_ids_input?: string[];
974
+ };
975
+ Returns: unknown;
976
+ };
932
977
  get_chats: {
933
978
  Args: {
934
979
  chat_id_input?: string[];
@@ -950,6 +995,13 @@ export interface Database {
950
995
  };
951
996
  Returns: Json;
952
997
  };
998
+ get_export_chats_data: {
999
+ Args: {
1000
+ chat_ids: string[];
1001
+ org_id_input?: string;
1002
+ };
1003
+ Returns: Json;
1004
+ };
953
1005
  get_media: {
954
1006
  Args: {
955
1007
  filters?: Json;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@periskope/types",
3
- "version": "0.6.36",
3
+ "version": "0.6.37",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/supabase.types.ts CHANGED
@@ -38,7 +38,6 @@ export interface Database {
38
38
  org_id: string
39
39
  performed_by: string | null
40
40
  scheduled_at: string | null
41
- status: string | null
42
41
  }
43
42
  Insert: {
44
43
  broadcast_id?: string
@@ -49,7 +48,6 @@ export interface Database {
49
48
  org_id?: string
50
49
  performed_by?: string | null
51
50
  scheduled_at?: string | null
52
- status?: string | null
53
51
  }
54
52
  Update: {
55
53
  broadcast_id?: string
@@ -60,7 +58,6 @@ export interface Database {
60
58
  org_id?: string
61
59
  performed_by?: string | null
62
60
  scheduled_at?: string | null
63
- status?: string | null
64
61
  }
65
62
  Relationships: [
66
63
  {
@@ -879,6 +876,7 @@ export interface Database {
879
876
  chat_id: string | null
880
877
  chat_image: string | null
881
878
  chat_name: string | null
879
+ chat_org_phones: string[] | null
882
880
  chat_type: string | null
883
881
  group_metadata: Json | null
884
882
  has_access: boolean | null
@@ -911,6 +909,47 @@ export interface Database {
911
909
  }
912
910
  ]
913
911
  }
912
+ view_contacts: {
913
+ Row: {
914
+ business_profile: Json | null
915
+ chat_count: number | null
916
+ chat_ids: string[] | null
917
+ contact_color: Database["public"]["Enums"]["enum_chat_colors"] | null
918
+ contact_id: string | null
919
+ contact_image: string | null
920
+ contact_name: string | null
921
+ contact_type: string | null
922
+ id: Json | null
923
+ is_blocked: boolean | null
924
+ is_business: boolean | null
925
+ is_enterprise: boolean | null
926
+ is_group: boolean | null
927
+ is_internal: boolean | null
928
+ is_me: boolean | null
929
+ is_my_contact: boolean | null
930
+ is_user: boolean | null
931
+ is_wa_contact: boolean | null
932
+ label_ids: Json | null
933
+ last_updated_at: string | null
934
+ name: string | null
935
+ number: string | null
936
+ org_id: string | null
937
+ pushname: string | null
938
+ short_name: string | null
939
+ updated_at: string | null
940
+ verified_level: number | null
941
+ verified_name: string | null
942
+ }
943
+ Relationships: [
944
+ {
945
+ foreignKeyName: "tbl_contacts_org_id_fkey"
946
+ columns: ["org_id"]
947
+ isOneToOne: false
948
+ referencedRelation: "tbl_org"
949
+ referencedColumns: ["org_id"]
950
+ }
951
+ ]
952
+ }
914
953
  }
915
954
  Functions: {
916
955
  gen_id: {
@@ -932,6 +971,12 @@ export interface Database {
932
971
  }
933
972
  Returns: Json
934
973
  }
974
+ get_chat_labels_data: {
975
+ Args: {
976
+ chat_ids_input?: string[]
977
+ }
978
+ Returns: unknown
979
+ }
935
980
  get_chats: {
936
981
  Args: {
937
982
  chat_id_input?: string[]
@@ -953,6 +998,13 @@ export interface Database {
953
998
  }
954
999
  Returns: Json
955
1000
  }
1001
+ get_export_chats_data: {
1002
+ Args: {
1003
+ chat_ids: string[]
1004
+ org_id_input?: string
1005
+ }
1006
+ Returns: Json
1007
+ }
956
1008
  get_media: {
957
1009
  Args: {
958
1010
  filters?: Json