@periskope/types 0.6.65 → 0.6.66

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.
@@ -160,7 +160,6 @@ export type Database = {
160
160
  forwarding_score: number | null;
161
161
  from: string | null;
162
162
  from_me: boolean | null;
163
- frt_timestamp: string | null;
164
163
  has_media: boolean | null;
165
164
  has_quoted_msg: boolean | null;
166
165
  has_reaction: boolean | null;
@@ -168,7 +167,6 @@ export type Database = {
168
167
  invite_v4: Json | null;
169
168
  is_deleted: boolean | null;
170
169
  is_ephemeral: boolean | null;
171
- is_flagged: boolean | null;
172
170
  is_forwarded: boolean | null;
173
171
  is_gif: boolean | null;
174
172
  is_starred: boolean | null;
@@ -210,7 +208,6 @@ export type Database = {
210
208
  forwarding_score?: number | null;
211
209
  from?: string | null;
212
210
  from_me?: boolean | null;
213
- frt_timestamp?: string | null;
214
211
  has_media?: boolean | null;
215
212
  has_quoted_msg?: boolean | null;
216
213
  has_reaction?: boolean | null;
@@ -218,7 +215,6 @@ export type Database = {
218
215
  invite_v4?: Json | null;
219
216
  is_deleted?: boolean | null;
220
217
  is_ephemeral?: boolean | null;
221
- is_flagged?: boolean | null;
222
218
  is_forwarded?: boolean | null;
223
219
  is_gif?: boolean | null;
224
220
  is_starred?: boolean | null;
@@ -260,7 +256,6 @@ export type Database = {
260
256
  forwarding_score?: number | null;
261
257
  from?: string | null;
262
258
  from_me?: boolean | null;
263
- frt_timestamp?: string | null;
264
259
  has_media?: boolean | null;
265
260
  has_quoted_msg?: boolean | null;
266
261
  has_reaction?: boolean | null;
@@ -268,7 +263,6 @@ export type Database = {
268
263
  invite_v4?: Json | null;
269
264
  is_deleted?: boolean | null;
270
265
  is_ephemeral?: boolean | null;
271
- is_flagged?: boolean | null;
272
266
  is_forwarded?: boolean | null;
273
267
  is_gif?: boolean | null;
274
268
  is_starred?: boolean | null;
@@ -739,6 +733,38 @@ export type Database = {
739
733
  }
740
734
  ];
741
735
  };
736
+ tbl_flagged_messages: {
737
+ Row: {
738
+ org_id: string;
739
+ response_id: string | null;
740
+ response_timestamp: string | null;
741
+ response_type: string | null;
742
+ unique_id: string;
743
+ };
744
+ Insert: {
745
+ org_id: string;
746
+ response_id?: string | null;
747
+ response_timestamp?: string | null;
748
+ response_type?: string | null;
749
+ unique_id: string;
750
+ };
751
+ Update: {
752
+ org_id?: string;
753
+ response_id?: string | null;
754
+ response_timestamp?: string | null;
755
+ response_type?: string | null;
756
+ unique_id?: string;
757
+ };
758
+ Relationships: [
759
+ {
760
+ foreignKeyName: "tbl_flagged_messages_org_id_fkey";
761
+ columns: ["org_id"];
762
+ isOneToOne: false;
763
+ referencedRelation: "tbl_org";
764
+ referencedColumns: ["org_id"];
765
+ }
766
+ ];
767
+ };
742
768
  tbl_integration_hooks: {
743
769
  Row: {
744
770
  hook_url: string;
@@ -874,6 +900,7 @@ export type Database = {
874
900
  tbl_org: {
875
901
  Row: {
876
902
  created_at: string;
903
+ is_subscription_active: boolean | null;
877
904
  org_id: string;
878
905
  org_image: string | null;
879
906
  org_metadata: Json | null;
@@ -882,10 +909,12 @@ export type Database = {
882
909
  stripe_customer_details: Json | null;
883
910
  stripe_customer_id: string | null;
884
911
  stripe_subscription_details: Json | null;
912
+ subscription_status: string | null;
885
913
  support_link: string | null;
886
914
  };
887
915
  Insert: {
888
916
  created_at?: string;
917
+ is_subscription_active?: boolean | null;
889
918
  org_id?: string;
890
919
  org_image?: string | null;
891
920
  org_metadata?: Json | null;
@@ -894,10 +923,12 @@ export type Database = {
894
923
  stripe_customer_details?: Json | null;
895
924
  stripe_customer_id?: string | null;
896
925
  stripe_subscription_details?: Json | null;
926
+ subscription_status?: string | null;
897
927
  support_link?: string | null;
898
928
  };
899
929
  Update: {
900
930
  created_at?: string;
931
+ is_subscription_active?: boolean | null;
901
932
  org_id?: string;
902
933
  org_image?: string | null;
903
934
  org_metadata?: Json | null;
@@ -906,6 +937,7 @@ export type Database = {
906
937
  stripe_customer_details?: Json | null;
907
938
  stripe_customer_id?: string | null;
908
939
  stripe_subscription_details?: Json | null;
940
+ subscription_status?: string | null;
909
941
  support_link?: string | null;
910
942
  };
911
943
  Relationships: [];
@@ -1237,6 +1269,13 @@ export type Database = {
1237
1269
  };
1238
1270
  Returns: Json;
1239
1271
  };
1272
+ get_org_phones: {
1273
+ Args: {
1274
+ org_id_input?: string;
1275
+ phone_id_input?: string;
1276
+ };
1277
+ Returns: Json;
1278
+ };
1240
1279
  get_ticket_info: {
1241
1280
  Args: {
1242
1281
  ticket_id_input?: string;
package/dist/types.d.ts CHANGED
@@ -158,6 +158,7 @@ export type TicketLogType = OverrideProperties<Tables<'tbl_integration_logs'>, {
158
158
  integration_name: IntegrationLogType.NEW_TICKET;
159
159
  metadata: {
160
160
  ticket_id: string;
161
+ name: string;
161
162
  };
162
163
  }>;
163
164
  export type IntegrationLogDetailsType = TicketLogType;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@periskope/types",
3
- "version": "0.6.65",
3
+ "version": "0.6.66",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/supabase.types.ts CHANGED
@@ -159,7 +159,6 @@ export type Database = {
159
159
  forwarding_score: number | null
160
160
  from: string | null
161
161
  from_me: boolean | null
162
- frt_timestamp: string | null
163
162
  has_media: boolean | null
164
163
  has_quoted_msg: boolean | null
165
164
  has_reaction: boolean | null
@@ -167,7 +166,6 @@ export type Database = {
167
166
  invite_v4: Json | null
168
167
  is_deleted: boolean | null
169
168
  is_ephemeral: boolean | null
170
- is_flagged: boolean | null
171
169
  is_forwarded: boolean | null
172
170
  is_gif: boolean | null
173
171
  is_starred: boolean | null
@@ -209,7 +207,6 @@ export type Database = {
209
207
  forwarding_score?: number | null
210
208
  from?: string | null
211
209
  from_me?: boolean | null
212
- frt_timestamp?: string | null
213
210
  has_media?: boolean | null
214
211
  has_quoted_msg?: boolean | null
215
212
  has_reaction?: boolean | null
@@ -217,7 +214,6 @@ export type Database = {
217
214
  invite_v4?: Json | null
218
215
  is_deleted?: boolean | null
219
216
  is_ephemeral?: boolean | null
220
- is_flagged?: boolean | null
221
217
  is_forwarded?: boolean | null
222
218
  is_gif?: boolean | null
223
219
  is_starred?: boolean | null
@@ -259,7 +255,6 @@ export type Database = {
259
255
  forwarding_score?: number | null
260
256
  from?: string | null
261
257
  from_me?: boolean | null
262
- frt_timestamp?: string | null
263
258
  has_media?: boolean | null
264
259
  has_quoted_msg?: boolean | null
265
260
  has_reaction?: boolean | null
@@ -267,7 +262,6 @@ export type Database = {
267
262
  invite_v4?: Json | null
268
263
  is_deleted?: boolean | null
269
264
  is_ephemeral?: boolean | null
270
- is_flagged?: boolean | null
271
265
  is_forwarded?: boolean | null
272
266
  is_gif?: boolean | null
273
267
  is_starred?: boolean | null
@@ -742,6 +736,38 @@ export type Database = {
742
736
  },
743
737
  ]
744
738
  }
739
+ tbl_flagged_messages: {
740
+ Row: {
741
+ org_id: string
742
+ response_id: string | null
743
+ response_timestamp: string | null
744
+ response_type: string | null
745
+ unique_id: string
746
+ }
747
+ Insert: {
748
+ org_id: string
749
+ response_id?: string | null
750
+ response_timestamp?: string | null
751
+ response_type?: string | null
752
+ unique_id: string
753
+ }
754
+ Update: {
755
+ org_id?: string
756
+ response_id?: string | null
757
+ response_timestamp?: string | null
758
+ response_type?: string | null
759
+ unique_id?: string
760
+ }
761
+ Relationships: [
762
+ {
763
+ foreignKeyName: "tbl_flagged_messages_org_id_fkey"
764
+ columns: ["org_id"]
765
+ isOneToOne: false
766
+ referencedRelation: "tbl_org"
767
+ referencedColumns: ["org_id"]
768
+ },
769
+ ]
770
+ }
745
771
  tbl_integration_hooks: {
746
772
  Row: {
747
773
  hook_url: string
@@ -877,6 +903,7 @@ export type Database = {
877
903
  tbl_org: {
878
904
  Row: {
879
905
  created_at: string
906
+ is_subscription_active: boolean | null
880
907
  org_id: string
881
908
  org_image: string | null
882
909
  org_metadata: Json | null
@@ -885,10 +912,12 @@ export type Database = {
885
912
  stripe_customer_details: Json | null
886
913
  stripe_customer_id: string | null
887
914
  stripe_subscription_details: Json | null
915
+ subscription_status: string | null
888
916
  support_link: string | null
889
917
  }
890
918
  Insert: {
891
919
  created_at?: string
920
+ is_subscription_active?: boolean | null
892
921
  org_id?: string
893
922
  org_image?: string | null
894
923
  org_metadata?: Json | null
@@ -897,10 +926,12 @@ export type Database = {
897
926
  stripe_customer_details?: Json | null
898
927
  stripe_customer_id?: string | null
899
928
  stripe_subscription_details?: Json | null
929
+ subscription_status?: string | null
900
930
  support_link?: string | null
901
931
  }
902
932
  Update: {
903
933
  created_at?: string
934
+ is_subscription_active?: boolean | null
904
935
  org_id?: string
905
936
  org_image?: string | null
906
937
  org_metadata?: Json | null
@@ -909,6 +940,7 @@ export type Database = {
909
940
  stripe_customer_details?: Json | null
910
941
  stripe_customer_id?: string | null
911
942
  stripe_subscription_details?: Json | null
943
+ subscription_status?: string | null
912
944
  support_link?: string | null
913
945
  }
914
946
  Relationships: []
@@ -1240,6 +1272,13 @@ export type Database = {
1240
1272
  }
1241
1273
  Returns: Json
1242
1274
  }
1275
+ get_org_phones: {
1276
+ Args: {
1277
+ org_id_input?: string
1278
+ phone_id_input?: string
1279
+ }
1280
+ Returns: Json
1281
+ }
1243
1282
  get_ticket_info: {
1244
1283
  Args: {
1245
1284
  ticket_id_input?: string
package/types.ts CHANGED
@@ -262,6 +262,7 @@ export type TicketLogType = OverrideProperties<Tables<'tbl_integration_logs'>, {
262
262
  integration_name: IntegrationLogType.NEW_TICKET;
263
263
  metadata: {
264
264
  ticket_id: string;
265
+ name: string;
265
266
  };
266
267
  }>;
267
268