@periskope/types 0.6.36 → 0.6.38

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
  {
@@ -846,6 +843,7 @@ export interface Database {
846
843
  Row: {
847
844
  broadcast_id: string | null;
848
845
  completed_at: string | null;
846
+ created_at: string | null;
849
847
  delivered_member_count: number | null;
850
848
  delivery_percentage: number | null;
851
849
  failed_chats: number | null;
@@ -876,6 +874,7 @@ export interface Database {
876
874
  chat_id: string | null;
877
875
  chat_image: string | null;
878
876
  chat_name: string | null;
877
+ chat_org_phones: string[] | null;
879
878
  chat_type: string | null;
880
879
  group_metadata: Json | null;
881
880
  has_access: boolean | null;
@@ -908,6 +907,47 @@ export interface Database {
908
907
  }
909
908
  ];
910
909
  };
910
+ view_contacts: {
911
+ Row: {
912
+ business_profile: Json | null;
913
+ chat_count: number | null;
914
+ chat_ids: string[] | null;
915
+ contact_color: Database["public"]["Enums"]["enum_chat_colors"] | null;
916
+ contact_id: string | null;
917
+ contact_image: string | null;
918
+ contact_name: string | null;
919
+ contact_type: string | null;
920
+ id: Json | null;
921
+ is_blocked: boolean | null;
922
+ is_business: boolean | null;
923
+ is_enterprise: boolean | null;
924
+ is_group: boolean | null;
925
+ is_internal: boolean | null;
926
+ is_me: boolean | null;
927
+ is_my_contact: boolean | null;
928
+ is_user: boolean | null;
929
+ is_wa_contact: boolean | null;
930
+ label_ids: Json | null;
931
+ last_updated_at: string | null;
932
+ name: string | null;
933
+ number: string | null;
934
+ org_id: string | null;
935
+ pushname: string | null;
936
+ short_name: string | null;
937
+ updated_at: string | null;
938
+ verified_level: number | null;
939
+ verified_name: string | null;
940
+ };
941
+ Relationships: [
942
+ {
943
+ foreignKeyName: "tbl_contacts_org_id_fkey";
944
+ columns: ["org_id"];
945
+ isOneToOne: false;
946
+ referencedRelation: "tbl_org";
947
+ referencedColumns: ["org_id"];
948
+ }
949
+ ];
950
+ };
911
951
  };
912
952
  Functions: {
913
953
  gen_id: {
@@ -929,6 +969,12 @@ export interface Database {
929
969
  };
930
970
  Returns: Json;
931
971
  };
972
+ get_chat_labels_data: {
973
+ Args: {
974
+ chat_ids_input?: string[];
975
+ };
976
+ Returns: unknown;
977
+ };
932
978
  get_chats: {
933
979
  Args: {
934
980
  chat_id_input?: string[];
@@ -950,6 +996,13 @@ export interface Database {
950
996
  };
951
997
  Returns: Json;
952
998
  };
999
+ get_export_chats_data: {
1000
+ Args: {
1001
+ chat_ids: string[];
1002
+ org_id_input?: string;
1003
+ };
1004
+ Returns: Json;
1005
+ };
953
1006
  get_media: {
954
1007
  Args: {
955
1008
  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.38",
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
  {
@@ -849,6 +846,7 @@ export interface Database {
849
846
  Row: {
850
847
  broadcast_id: string | null
851
848
  completed_at: string | null
849
+ created_at: string | null
852
850
  delivered_member_count: number | null
853
851
  delivery_percentage: number | null
854
852
  failed_chats: number | null
@@ -879,6 +877,7 @@ export interface Database {
879
877
  chat_id: string | null
880
878
  chat_image: string | null
881
879
  chat_name: string | null
880
+ chat_org_phones: string[] | null
882
881
  chat_type: string | null
883
882
  group_metadata: Json | null
884
883
  has_access: boolean | null
@@ -911,6 +910,47 @@ export interface Database {
911
910
  }
912
911
  ]
913
912
  }
913
+ view_contacts: {
914
+ Row: {
915
+ business_profile: Json | null
916
+ chat_count: number | null
917
+ chat_ids: string[] | null
918
+ contact_color: Database["public"]["Enums"]["enum_chat_colors"] | null
919
+ contact_id: string | null
920
+ contact_image: string | null
921
+ contact_name: string | null
922
+ contact_type: string | null
923
+ id: Json | null
924
+ is_blocked: boolean | null
925
+ is_business: boolean | null
926
+ is_enterprise: boolean | null
927
+ is_group: boolean | null
928
+ is_internal: boolean | null
929
+ is_me: boolean | null
930
+ is_my_contact: boolean | null
931
+ is_user: boolean | null
932
+ is_wa_contact: boolean | null
933
+ label_ids: Json | null
934
+ last_updated_at: string | null
935
+ name: string | null
936
+ number: string | null
937
+ org_id: string | null
938
+ pushname: string | null
939
+ short_name: string | null
940
+ updated_at: string | null
941
+ verified_level: number | null
942
+ verified_name: string | null
943
+ }
944
+ Relationships: [
945
+ {
946
+ foreignKeyName: "tbl_contacts_org_id_fkey"
947
+ columns: ["org_id"]
948
+ isOneToOne: false
949
+ referencedRelation: "tbl_org"
950
+ referencedColumns: ["org_id"]
951
+ }
952
+ ]
953
+ }
914
954
  }
915
955
  Functions: {
916
956
  gen_id: {
@@ -932,6 +972,12 @@ export interface Database {
932
972
  }
933
973
  Returns: Json
934
974
  }
975
+ get_chat_labels_data: {
976
+ Args: {
977
+ chat_ids_input?: string[]
978
+ }
979
+ Returns: unknown
980
+ }
935
981
  get_chats: {
936
982
  Args: {
937
983
  chat_id_input?: string[]
@@ -953,6 +999,13 @@ export interface Database {
953
999
  }
954
1000
  Returns: Json
955
1001
  }
1002
+ get_export_chats_data: {
1003
+ Args: {
1004
+ chat_ids: string[]
1005
+ org_id_input?: string
1006
+ }
1007
+ Returns: Json
1008
+ }
956
1009
  get_media: {
957
1010
  Args: {
958
1011
  filters?: Json