@periskope/types 0.6.49 → 0.6.51

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.
@@ -15,5 +15,5 @@ export declare const TableColumns: {
15
15
  readonly tbl_org_phones: readonly ["org_id", "org_phone", "created_at", "updated_at", "wa_state", "phone_id", "qr_code", "phone_image", "phone_name", "server_ip"];
16
16
  readonly view_broadcast_logs: readonly ["broadcast_id", "org_id", "message_payload", "created_at", "total_chats", "sent_chats", "failed_chats", "total_member_count", "delivered_member_count", "read_member_count", "completed_at", "scheduled_at", "performed_by", "delivery_percentage", "read_percentage"];
17
17
  readonly view_chat_messages: readonly ["message_id", "org_id", "ack", "author", "body", "from_me", "invite_v4", "links", "location", "mentioned_ids", "message_type", "vcards", "chat_id", "timestamp", "org_phone", "broadcast_id", "is_deleted", "media", "performed_by", "prev_body", "quoted_message_id", "sender_phone", "sent_message_id", "delivery_info", "updated_at", "message_ticket_id", "unique_id"];
18
- readonly view_chats: readonly ["org_id", "chat_id", "org_phone", "chat_image", "invite_link", "label_ids", "updated_at", "chat_name", "latest_message", "message_unread_count", "member_count", "chat_type", "chat_access", "has_access", "last_read_timestamp", "chat_org_phones", "active_phone"];
18
+ readonly view_chats: readonly ["org_id", "chat_id", "org_phone", "chat_image", "invite_link", "label_ids", "updated_at", "chat_name", "latest_message", "message_unread_count", "member_count", "chat_type", "chat_access", "has_access", "last_read_timestamp", "chat_org_phones", "active_phone", "group_description"];
19
19
  };
@@ -280,6 +280,7 @@ exports.TableColumns = {
280
280
  "has_access",
281
281
  "last_read_timestamp",
282
282
  "chat_org_phones",
283
- "active_phone"
283
+ "active_phone",
284
+ "group_description"
284
285
  ]
285
286
  };
@@ -682,6 +682,9 @@ export interface Database {
682
682
  org_metadata: Json | null;
683
683
  org_name: string | null;
684
684
  org_plan: Json | null;
685
+ stripe_customer_details: Json | null;
686
+ stripe_customer_id: string | null;
687
+ stripe_subscription_details: Json | null;
685
688
  support_link: string | null;
686
689
  };
687
690
  Insert: {
@@ -691,6 +694,9 @@ export interface Database {
691
694
  org_metadata?: Json | null;
692
695
  org_name?: string | null;
693
696
  org_plan?: Json | null;
697
+ stripe_customer_details?: Json | null;
698
+ stripe_customer_id?: string | null;
699
+ stripe_subscription_details?: Json | null;
694
700
  support_link?: string | null;
695
701
  };
696
702
  Update: {
@@ -700,6 +706,9 @@ export interface Database {
700
706
  org_metadata?: Json | null;
701
707
  org_name?: string | null;
702
708
  org_plan?: Json | null;
709
+ stripe_customer_details?: Json | null;
710
+ stripe_customer_id?: string | null;
711
+ stripe_subscription_details?: Json | null;
703
712
  support_link?: string | null;
704
713
  };
705
714
  Relationships: [];
@@ -932,6 +941,7 @@ export interface Database {
932
941
  chat_name: string | null;
933
942
  chat_org_phones: string[] | null;
934
943
  chat_type: string | null;
944
+ group_description: string | null;
935
945
  has_access: boolean | null;
936
946
  invite_link: string | null;
937
947
  label_ids: Json | null;
@@ -997,6 +1007,13 @@ export interface Database {
997
1007
  };
998
1008
  Returns: Json;
999
1009
  };
1010
+ get_dashboard_statistics: {
1011
+ Args: {
1012
+ type_input?: string;
1013
+ interval_input?: unknown;
1014
+ };
1015
+ Returns: Json;
1016
+ };
1000
1017
  get_export_chats_data: {
1001
1018
  Args: {
1002
1019
  chat_ids: string[];
package/dist/types.d.ts CHANGED
@@ -100,3 +100,13 @@ export type ChatParticipantOperation = {
100
100
  export type ChatParticipantOperationPayload = ChatParticipantOperation & {
101
101
  chat_ids: string[];
102
102
  };
103
+ export type PhoneRealtimeChannel = {
104
+ loading: boolean;
105
+ state: string;
106
+ ready: boolean;
107
+ sync: boolean;
108
+ percent: number | null;
109
+ message?: string;
110
+ error?: string;
111
+ presence_ref?: string;
112
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@periskope/types",
3
- "version": "0.6.49",
3
+ "version": "0.6.51",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -277,6 +277,7 @@ export const TableColumns = {
277
277
  "has_access",
278
278
  "last_read_timestamp",
279
279
  "chat_org_phones",
280
- "active_phone"
280
+ "active_phone",
281
+ "group_description"
281
282
  ]
282
283
  } as const;
package/supabase.types.ts CHANGED
@@ -685,6 +685,9 @@ export interface Database {
685
685
  org_metadata: Json | null
686
686
  org_name: string | null
687
687
  org_plan: Json | null
688
+ stripe_customer_details: Json | null
689
+ stripe_customer_id: string | null
690
+ stripe_subscription_details: Json | null
688
691
  support_link: string | null
689
692
  }
690
693
  Insert: {
@@ -694,6 +697,9 @@ export interface Database {
694
697
  org_metadata?: Json | null
695
698
  org_name?: string | null
696
699
  org_plan?: Json | null
700
+ stripe_customer_details?: Json | null
701
+ stripe_customer_id?: string | null
702
+ stripe_subscription_details?: Json | null
697
703
  support_link?: string | null
698
704
  }
699
705
  Update: {
@@ -703,6 +709,9 @@ export interface Database {
703
709
  org_metadata?: Json | null
704
710
  org_name?: string | null
705
711
  org_plan?: Json | null
712
+ stripe_customer_details?: Json | null
713
+ stripe_customer_id?: string | null
714
+ stripe_subscription_details?: Json | null
706
715
  support_link?: string | null
707
716
  }
708
717
  Relationships: []
@@ -935,6 +944,7 @@ export interface Database {
935
944
  chat_name: string | null
936
945
  chat_org_phones: string[] | null
937
946
  chat_type: string | null
947
+ group_description: string | null
938
948
  has_access: boolean | null
939
949
  invite_link: string | null
940
950
  label_ids: Json | null
@@ -1000,6 +1010,13 @@ export interface Database {
1000
1010
  }
1001
1011
  Returns: Json
1002
1012
  }
1013
+ get_dashboard_statistics: {
1014
+ Args: {
1015
+ type_input?: string
1016
+ interval_input?: unknown
1017
+ }
1018
+ Returns: Json
1019
+ }
1003
1020
  get_export_chats_data: {
1004
1021
  Args: {
1005
1022
  chat_ids: string[]
package/types.ts CHANGED
@@ -180,4 +180,18 @@ export type ChatParticipantOperation = {
180
180
 
181
181
  export type ChatParticipantOperationPayload = ChatParticipantOperation & {
182
182
  chat_ids: string[];
183
- };
183
+ };
184
+
185
+
186
+ /* -------------------------------- REALTIME -------------------------------- */
187
+
188
+ export type PhoneRealtimeChannel = {
189
+ loading: boolean;
190
+ state: string;
191
+ ready: boolean;
192
+ sync: boolean;
193
+ percent: number | null;
194
+ message?: string;
195
+ error?: string;
196
+ presence_ref?: string;
197
+ }