@periskope/types 0.6.66 → 0.6.67

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.
@@ -111,8 +111,6 @@ export type Database = {
111
111
  chat_id: string;
112
112
  email: string;
113
113
  has_access: boolean | null;
114
- is_archived: boolean;
115
- is_muted: boolean;
116
114
  last_read_timestamp: string | null;
117
115
  org_id: string;
118
116
  };
@@ -121,8 +119,6 @@ export type Database = {
121
119
  chat_id: string;
122
120
  email: string;
123
121
  has_access?: boolean | null;
124
- is_archived?: boolean;
125
- is_muted?: boolean;
126
122
  last_read_timestamp?: string | null;
127
123
  org_id: string;
128
124
  };
@@ -131,8 +127,6 @@ export type Database = {
131
127
  chat_id?: string;
132
128
  email?: string;
133
129
  has_access?: boolean | null;
134
- is_archived?: boolean;
135
- is_muted?: boolean;
136
130
  last_read_timestamp?: string | null;
137
131
  org_id?: string;
138
132
  };
@@ -735,6 +729,7 @@ export type Database = {
735
729
  };
736
730
  tbl_flagged_messages: {
737
731
  Row: {
732
+ chat_id: string | null;
738
733
  org_id: string;
739
734
  response_id: string | null;
740
735
  response_timestamp: string | null;
@@ -742,6 +737,7 @@ export type Database = {
742
737
  unique_id: string;
743
738
  };
744
739
  Insert: {
740
+ chat_id?: string | null;
745
741
  org_id: string;
746
742
  response_id?: string | null;
747
743
  response_timestamp?: string | null;
@@ -749,6 +745,7 @@ export type Database = {
749
745
  unique_id: string;
750
746
  };
751
747
  Update: {
748
+ chat_id?: string | null;
752
749
  org_id?: string;
753
750
  response_id?: string | null;
754
751
  response_timestamp?: string | null;
@@ -984,10 +981,12 @@ export type Database = {
984
981
  invited_at: string | null;
985
982
  invited_by: string | null;
986
983
  is_active: boolean;
984
+ label_ids: string[] | null;
987
985
  member_color: Database["public"]["Enums"]["enum_chat_colors"];
988
986
  member_image: string | null;
989
987
  member_name: string | null;
990
988
  org_id: string;
989
+ org_phones: string[] | null;
991
990
  role: Database["public"]["Enums"]["enum_member_role"];
992
991
  user_id: string | null;
993
992
  };
@@ -997,10 +996,12 @@ export type Database = {
997
996
  invited_at?: string | null;
998
997
  invited_by?: string | null;
999
998
  is_active?: boolean;
999
+ label_ids?: string[] | null;
1000
1000
  member_color?: Database["public"]["Enums"]["enum_chat_colors"];
1001
1001
  member_image?: string | null;
1002
1002
  member_name?: string | null;
1003
1003
  org_id: string;
1004
+ org_phones?: string[] | null;
1004
1005
  role?: Database["public"]["Enums"]["enum_member_role"];
1005
1006
  user_id?: string | null;
1006
1007
  };
@@ -1010,10 +1011,12 @@ export type Database = {
1010
1011
  invited_at?: string | null;
1011
1012
  invited_by?: string | null;
1012
1013
  is_active?: boolean;
1014
+ label_ids?: string[] | null;
1013
1015
  member_color?: Database["public"]["Enums"]["enum_chat_colors"];
1014
1016
  member_image?: string | null;
1015
1017
  member_name?: string | null;
1016
1018
  org_id?: string;
1019
+ org_phones?: string[] | null;
1017
1020
  role?: Database["public"]["Enums"]["enum_member_role"];
1018
1021
  user_id?: string | null;
1019
1022
  };
@@ -1044,10 +1047,12 @@ export type Database = {
1044
1047
  phone_id: string;
1045
1048
  phone_image: string | null;
1046
1049
  phone_name: string | null;
1050
+ phone_state: Json | null;
1047
1051
  qr_code: string | null;
1048
1052
  server_ip: string | null;
1049
1053
  updated_at: string | null;
1050
1054
  wa_state: string | null;
1055
+ wa_version: string | null;
1051
1056
  };
1052
1057
  Insert: {
1053
1058
  created_at?: string;
@@ -1058,10 +1063,12 @@ export type Database = {
1058
1063
  phone_id?: string;
1059
1064
  phone_image?: string | null;
1060
1065
  phone_name?: string | null;
1066
+ phone_state?: Json | null;
1061
1067
  qr_code?: string | null;
1062
1068
  server_ip?: string | null;
1063
1069
  updated_at?: string | null;
1064
1070
  wa_state?: string | null;
1071
+ wa_version?: string | null;
1065
1072
  };
1066
1073
  Update: {
1067
1074
  created_at?: string;
@@ -1072,10 +1079,12 @@ export type Database = {
1072
1079
  phone_id?: string;
1073
1080
  phone_image?: string | null;
1074
1081
  phone_name?: string | null;
1082
+ phone_state?: Json | null;
1075
1083
  qr_code?: string | null;
1076
1084
  server_ip?: string | null;
1077
1085
  updated_at?: string | null;
1078
1086
  wa_state?: string | null;
1087
+ wa_version?: string | null;
1079
1088
  };
1080
1089
  Relationships: [
1081
1090
  {
package/dist/types.d.ts CHANGED
@@ -144,15 +144,13 @@ export type StripeSubscription = _Stripe.Subscription;
144
144
  export type StripeCustomer = _Stripe.Customer;
145
145
  export type StripeCoupon = _Stripe.Coupon;
146
146
  export type StripePrice = _Stripe.Price;
147
- export type PhoneRealtimeChannel = {
147
+ export type PhoneStateType = {
148
148
  loading: boolean;
149
149
  state: string;
150
- ready: boolean;
151
- sync: boolean;
150
+ sync: number;
152
151
  percent: number | null;
153
152
  message?: string;
154
153
  error?: string;
155
- presence_ref?: string;
156
154
  };
157
155
  export type TicketLogType = OverrideProperties<Tables<'tbl_integration_logs'>, {
158
156
  integration_name: IntegrationLogType.NEW_TICKET;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@periskope/types",
3
- "version": "0.6.66",
3
+ "version": "0.6.67",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/supabase.types.ts CHANGED
@@ -110,8 +110,6 @@ export type Database = {
110
110
  chat_id: string
111
111
  email: string
112
112
  has_access: boolean | null
113
- is_archived: boolean
114
- is_muted: boolean
115
113
  last_read_timestamp: string | null
116
114
  org_id: string
117
115
  }
@@ -120,8 +118,6 @@ export type Database = {
120
118
  chat_id: string
121
119
  email: string
122
120
  has_access?: boolean | null
123
- is_archived?: boolean
124
- is_muted?: boolean
125
121
  last_read_timestamp?: string | null
126
122
  org_id: string
127
123
  }
@@ -130,8 +126,6 @@ export type Database = {
130
126
  chat_id?: string
131
127
  email?: string
132
128
  has_access?: boolean | null
133
- is_archived?: boolean
134
- is_muted?: boolean
135
129
  last_read_timestamp?: string | null
136
130
  org_id?: string
137
131
  }
@@ -738,6 +732,7 @@ export type Database = {
738
732
  }
739
733
  tbl_flagged_messages: {
740
734
  Row: {
735
+ chat_id: string | null
741
736
  org_id: string
742
737
  response_id: string | null
743
738
  response_timestamp: string | null
@@ -745,6 +740,7 @@ export type Database = {
745
740
  unique_id: string
746
741
  }
747
742
  Insert: {
743
+ chat_id?: string | null
748
744
  org_id: string
749
745
  response_id?: string | null
750
746
  response_timestamp?: string | null
@@ -752,6 +748,7 @@ export type Database = {
752
748
  unique_id: string
753
749
  }
754
750
  Update: {
751
+ chat_id?: string | null
755
752
  org_id?: string
756
753
  response_id?: string | null
757
754
  response_timestamp?: string | null
@@ -987,10 +984,12 @@ export type Database = {
987
984
  invited_at: string | null
988
985
  invited_by: string | null
989
986
  is_active: boolean
987
+ label_ids: string[] | null
990
988
  member_color: Database["public"]["Enums"]["enum_chat_colors"]
991
989
  member_image: string | null
992
990
  member_name: string | null
993
991
  org_id: string
992
+ org_phones: string[] | null
994
993
  role: Database["public"]["Enums"]["enum_member_role"]
995
994
  user_id: string | null
996
995
  }
@@ -1000,10 +999,12 @@ export type Database = {
1000
999
  invited_at?: string | null
1001
1000
  invited_by?: string | null
1002
1001
  is_active?: boolean
1002
+ label_ids?: string[] | null
1003
1003
  member_color?: Database["public"]["Enums"]["enum_chat_colors"]
1004
1004
  member_image?: string | null
1005
1005
  member_name?: string | null
1006
1006
  org_id: string
1007
+ org_phones?: string[] | null
1007
1008
  role?: Database["public"]["Enums"]["enum_member_role"]
1008
1009
  user_id?: string | null
1009
1010
  }
@@ -1013,10 +1014,12 @@ export type Database = {
1013
1014
  invited_at?: string | null
1014
1015
  invited_by?: string | null
1015
1016
  is_active?: boolean
1017
+ label_ids?: string[] | null
1016
1018
  member_color?: Database["public"]["Enums"]["enum_chat_colors"]
1017
1019
  member_image?: string | null
1018
1020
  member_name?: string | null
1019
1021
  org_id?: string
1022
+ org_phones?: string[] | null
1020
1023
  role?: Database["public"]["Enums"]["enum_member_role"]
1021
1024
  user_id?: string | null
1022
1025
  }
@@ -1047,10 +1050,12 @@ export type Database = {
1047
1050
  phone_id: string
1048
1051
  phone_image: string | null
1049
1052
  phone_name: string | null
1053
+ phone_state: Json | null
1050
1054
  qr_code: string | null
1051
1055
  server_ip: string | null
1052
1056
  updated_at: string | null
1053
1057
  wa_state: string | null
1058
+ wa_version: string | null
1054
1059
  }
1055
1060
  Insert: {
1056
1061
  created_at?: string
@@ -1061,10 +1066,12 @@ export type Database = {
1061
1066
  phone_id?: string
1062
1067
  phone_image?: string | null
1063
1068
  phone_name?: string | null
1069
+ phone_state?: Json | null
1064
1070
  qr_code?: string | null
1065
1071
  server_ip?: string | null
1066
1072
  updated_at?: string | null
1067
1073
  wa_state?: string | null
1074
+ wa_version?: string | null
1068
1075
  }
1069
1076
  Update: {
1070
1077
  created_at?: string
@@ -1075,10 +1082,12 @@ export type Database = {
1075
1082
  phone_id?: string
1076
1083
  phone_image?: string | null
1077
1084
  phone_name?: string | null
1085
+ phone_state?: Json | null
1078
1086
  qr_code?: string | null
1079
1087
  server_ip?: string | null
1080
1088
  updated_at?: string | null
1081
1089
  wa_state?: string | null
1090
+ wa_version?: string | null
1082
1091
  }
1083
1092
  Relationships: [
1084
1093
  {
package/types.ts CHANGED
@@ -244,15 +244,13 @@ export type StripePrice = _Stripe.Price;
244
244
 
245
245
  /* -------------------------------- REALTIME -------------------------------- */
246
246
 
247
- export type PhoneRealtimeChannel = {
247
+ export type PhoneStateType = {
248
248
  loading: boolean;
249
249
  state: string;
250
- ready: boolean;
251
- sync: boolean;
250
+ sync: number;
252
251
  percent: number | null;
253
252
  message?: string;
254
253
  error?: string;
255
- presence_ref?: string;
256
254
  };
257
255
 
258
256
  /* ------------------------------- INTEGRATIONS ----------------------------- */