@periskope/types 0.6.119 → 0.6.121

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.
@@ -62,6 +62,63 @@ export type Database = {
62
62
  };
63
63
  Relationships: [];
64
64
  };
65
+ tbl_automation_rules: {
66
+ Row: {
67
+ actions: Json;
68
+ conditions: Json;
69
+ created_at: string;
70
+ id: number;
71
+ is_active: boolean;
72
+ last_updated_at: string;
73
+ last_updated_by: string;
74
+ org_id: string;
75
+ rule_description: string | null;
76
+ rule_name: string;
77
+ trigger: string;
78
+ };
79
+ Insert: {
80
+ actions: Json;
81
+ conditions: Json;
82
+ created_at?: string;
83
+ id?: number;
84
+ is_active?: boolean;
85
+ last_updated_at?: string;
86
+ last_updated_by: string;
87
+ org_id: string;
88
+ rule_description?: string | null;
89
+ rule_name: string;
90
+ trigger: string;
91
+ };
92
+ Update: {
93
+ actions?: Json;
94
+ conditions?: Json;
95
+ created_at?: string;
96
+ id?: number;
97
+ is_active?: boolean;
98
+ last_updated_at?: string;
99
+ last_updated_by?: string;
100
+ org_id?: string;
101
+ rule_description?: string | null;
102
+ rule_name?: string;
103
+ trigger?: string;
104
+ };
105
+ Relationships: [
106
+ {
107
+ foreignKeyName: "public_tbl_automation_rules_org_id_fkey";
108
+ columns: ["org_id"];
109
+ isOneToOne: false;
110
+ referencedRelation: "tbl_org";
111
+ referencedColumns: ["org_id"];
112
+ },
113
+ {
114
+ foreignKeyName: "public_tbl_automation_rules_org_id_fkey";
115
+ columns: ["org_id"];
116
+ isOneToOne: false;
117
+ referencedRelation: "view_org";
118
+ referencedColumns: ["org_id"];
119
+ }
120
+ ];
121
+ };
65
122
  tbl_broadcast_logs: {
66
123
  Row: {
67
124
  broadcast_id: string;
@@ -238,6 +295,41 @@ export type Database = {
238
295
  }
239
296
  ];
240
297
  };
298
+ tbl_chat_access: {
299
+ Row: {
300
+ chat_id: string;
301
+ email: string;
302
+ has_access: boolean | null;
303
+ last_read_timestamp: string | null;
304
+ message_unread_count: number | null;
305
+ org_id: string;
306
+ };
307
+ Insert: {
308
+ chat_id: string;
309
+ email: string;
310
+ has_access?: boolean | null;
311
+ last_read_timestamp?: string | null;
312
+ message_unread_count?: number | null;
313
+ org_id: string;
314
+ };
315
+ Update: {
316
+ chat_id?: string;
317
+ email?: string;
318
+ has_access?: boolean | null;
319
+ last_read_timestamp?: string | null;
320
+ message_unread_count?: number | null;
321
+ org_id?: string;
322
+ };
323
+ Relationships: [
324
+ {
325
+ foreignKeyName: "tbl_chat_access_org_id_email_fkey";
326
+ columns: ["org_id", "email"];
327
+ isOneToOne: false;
328
+ referencedRelation: "tbl_org_members";
329
+ referencedColumns: ["org_id", "email"];
330
+ }
331
+ ];
332
+ };
241
333
  tbl_chat_logs: {
242
334
  Row: {
243
335
  action: string | null;
@@ -560,7 +652,7 @@ export type Database = {
560
652
  chat_id: string;
561
653
  chat_org_phones: string[];
562
654
  custom_properties: Json | null;
563
- flag_count: Json | null;
655
+ flag_count_map: Json | null;
564
656
  hubspot_metadata: Json | null;
565
657
  label_ids: Json | null;
566
658
  org_id: string;
@@ -573,7 +665,7 @@ export type Database = {
573
665
  chat_id: string;
574
666
  chat_org_phones?: string[];
575
667
  custom_properties?: Json | null;
576
- flag_count?: Json | null;
668
+ flag_count_map?: Json | null;
577
669
  hubspot_metadata?: Json | null;
578
670
  label_ids?: Json | null;
579
671
  org_id: string;
@@ -586,7 +678,7 @@ export type Database = {
586
678
  chat_id?: string;
587
679
  chat_org_phones?: string[];
588
680
  custom_properties?: Json | null;
589
- flag_count?: Json | null;
681
+ flag_count_map?: Json | null;
590
682
  hubspot_metadata?: Json | null;
591
683
  label_ids?: Json | null;
592
684
  org_id?: string;
@@ -666,6 +758,7 @@ export type Database = {
666
758
  closed_at: string | null;
667
759
  created_at: string;
668
760
  due_date: string | null;
761
+ freshdesk_metadata: Json | null;
669
762
  hubspot_metadata: Json | null;
670
763
  is_deleted: boolean;
671
764
  label_ids: Json | null;
@@ -678,7 +771,7 @@ export type Database = {
678
771
  status: Database["public"]["Enums"]["enum_chat_tickets_status"] | null;
679
772
  subject: string;
680
773
  ticket_id: string;
681
- ticket_metadata: Json | null;
774
+ zohodesk_metadata: Json | null;
682
775
  };
683
776
  Insert: {
684
777
  assigned_by?: string | null;
@@ -688,6 +781,7 @@ export type Database = {
688
781
  closed_at?: string | null;
689
782
  created_at?: string;
690
783
  due_date?: string | null;
784
+ freshdesk_metadata?: Json | null;
691
785
  hubspot_metadata?: Json | null;
692
786
  is_deleted?: boolean;
693
787
  label_ids?: Json | null;
@@ -700,7 +794,7 @@ export type Database = {
700
794
  status?: Database["public"]["Enums"]["enum_chat_tickets_status"] | null;
701
795
  subject: string;
702
796
  ticket_id?: string;
703
- ticket_metadata?: Json | null;
797
+ zohodesk_metadata?: Json | null;
704
798
  };
705
799
  Update: {
706
800
  assigned_by?: string | null;
@@ -710,6 +804,7 @@ export type Database = {
710
804
  closed_at?: string | null;
711
805
  created_at?: string;
712
806
  due_date?: string | null;
807
+ freshdesk_metadata?: Json | null;
713
808
  hubspot_metadata?: Json | null;
714
809
  is_deleted?: boolean;
715
810
  label_ids?: Json | null;
@@ -722,7 +817,7 @@ export type Database = {
722
817
  status?: Database["public"]["Enums"]["enum_chat_tickets_status"] | null;
723
818
  subject?: string;
724
819
  ticket_id?: string;
725
- ticket_metadata?: Json | null;
820
+ zohodesk_metadata?: Json | null;
726
821
  };
727
822
  Relationships: [
728
823
  {
@@ -749,6 +844,7 @@ export type Database = {
749
844
  chat_name: string | null;
750
845
  chat_type: string | null;
751
846
  created_at: string;
847
+ flag_count: number;
752
848
  group_metadata: Json | null;
753
849
  id: Json | null;
754
850
  invite_link: string | null;
@@ -773,6 +869,7 @@ export type Database = {
773
869
  chat_name?: string | null;
774
870
  chat_type?: string | null;
775
871
  created_at?: string;
872
+ flag_count?: number;
776
873
  group_metadata?: Json | null;
777
874
  id?: Json | null;
778
875
  invite_link?: string | null;
@@ -797,6 +894,7 @@ export type Database = {
797
894
  chat_name?: string | null;
798
895
  chat_type?: string | null;
799
896
  created_at?: string;
897
+ flag_count?: number;
800
898
  group_metadata?: Json | null;
801
899
  id?: Json | null;
802
900
  invite_link?: string | null;
@@ -837,6 +935,7 @@ export type Database = {
837
935
  is_business: boolean | null;
838
936
  is_enterprise: boolean | null;
839
937
  is_group: boolean | null;
938
+ is_imported: boolean | null;
840
939
  is_internal: boolean | null;
841
940
  is_me: boolean | null;
842
941
  is_my_contact: boolean | null;
@@ -865,6 +964,7 @@ export type Database = {
865
964
  is_business?: boolean | null;
866
965
  is_enterprise?: boolean | null;
867
966
  is_group?: boolean | null;
967
+ is_imported?: boolean | null;
868
968
  is_internal?: boolean | null;
869
969
  is_me?: boolean | null;
870
970
  is_my_contact?: boolean | null;
@@ -893,6 +993,7 @@ export type Database = {
893
993
  is_business?: boolean | null;
894
994
  is_enterprise?: boolean | null;
895
995
  is_group?: boolean | null;
996
+ is_imported?: boolean | null;
896
997
  is_internal?: boolean | null;
897
998
  is_me?: boolean | null;
898
999
  is_my_contact?: boolean | null;
@@ -1524,6 +1625,7 @@ export type Database = {
1524
1625
  created_at: string | null;
1525
1626
  custom_properties: Json | null;
1526
1627
  flag_count: number | null;
1628
+ flag_count_map: Json | null;
1527
1629
  group_description: string | null;
1528
1630
  hubspot_metadata: Json | null;
1529
1631
  info_admins_only: boolean | null;
@@ -1548,7 +1650,9 @@ export type Database = {
1548
1650
  created_at: string | null;
1549
1651
  is_enterprise: boolean | null;
1550
1652
  is_free_trial: boolean | null;
1653
+ is_freshdesk_connected: boolean | null;
1551
1654
  is_hubspot_connected: boolean | null;
1655
+ is_zohodesk_connected: boolean | null;
1552
1656
  org_id: string | null;
1553
1657
  org_image: string | null;
1554
1658
  org_metadata: Json | null;
@@ -1569,7 +1673,9 @@ export type Database = {
1569
1673
  created_at?: string | null;
1570
1674
  is_enterprise?: never;
1571
1675
  is_free_trial?: never;
1676
+ is_freshdesk_connected?: never;
1572
1677
  is_hubspot_connected?: never;
1678
+ is_zohodesk_connected?: never;
1573
1679
  org_id?: string | null;
1574
1680
  org_image?: string | null;
1575
1681
  org_metadata?: Json | null;
@@ -1590,7 +1696,9 @@ export type Database = {
1590
1696
  created_at?: string | null;
1591
1697
  is_enterprise?: never;
1592
1698
  is_free_trial?: never;
1699
+ is_freshdesk_connected?: never;
1593
1700
  is_hubspot_connected?: never;
1701
+ is_zohodesk_connected?: never;
1594
1702
  org_id?: string | null;
1595
1703
  org_image?: string | null;
1596
1704
  org_metadata?: Json | null;
@@ -1696,15 +1804,6 @@ export type Database = {
1696
1804
  };
1697
1805
  Returns: Json;
1698
1806
  };
1699
- get_dashboard_statistics_between_dates: {
1700
- Args: {
1701
- org_id_input: string;
1702
- start_date: string;
1703
- end_date: string;
1704
- chat_id_input?: string[];
1705
- };
1706
- Returns: Json;
1707
- };
1708
1807
  get_export_chats_data: {
1709
1808
  Args: {
1710
1809
  org_id_input: string;
@@ -1817,8 +1916,8 @@ export type Database = {
1817
1916
  enum_broadcast_status: "inprogress" | "completed" | "stopped";
1818
1917
  enum_chat_colors: "#B4876E" | "#A5B337" | "#06CF9C" | "#25D366" | "#02A698" | "#7D9EF1" | "#007BFC" | "#5E47DE" | "#7F66FF" | "#9333EA" | "#FA6533" | "#C4532D" | "#DC2626" | "#FF2E74" | "#DB2777";
1819
1918
  enum_chat_tickets_status: "open" | "inprogress" | "closed" | "archived";
1820
- enum_integration_name: "org.created" | "org.updated" | "org.member.created" | "org.member.updated" | "org.phone.created" | "org.phone.connected" | "org.phone.disconnected" | "org.subscription.trial_will_end" | "chat.created" | "chat.updated" | "chat.notification.created" | "message.created" | "message.updated" | "message.deleted" | "message.ack.updated" | "reaction.created" | "reaction.updated" | "ticket.created" | "ticket.updated" | "ticket.deleted";
1821
- enum_integration_type: "zapier" | "pabbly" | "api" | "webhook" | "hubspot" | "freshdesk" | "slack" | "jira" | "salesforce";
1919
+ enum_integration_name: "org.created" | "org.updated" | "org.member.created" | "org.member.updated" | "org.phone.created" | "org.phone.connected" | "org.phone.disconnected" | "org.subscription.trial_will_end" | "chat.created" | "chat.updated" | "chat.notification.created" | "message.created" | "message.updated" | "message.deleted" | "message.ack.updated" | "reaction.created" | "reaction.updated" | "ticket.created" | "ticket.updated" | "ticket.deleted" | "org.integrations.updated";
1920
+ enum_integration_type: "zapier" | "pabbly" | "api" | "webhook" | "hubspot" | "freshdesk" | "slack" | "jira" | "salesforce" | "zohodesk";
1822
1921
  enum_member_role: "admin" | "member";
1823
1922
  };
1824
1923
  CompositeTypes: {
@@ -2102,10 +2201,6 @@ export type Database = {
2102
2201
  updated_at: string;
2103
2202
  }[];
2104
2203
  };
2105
- operation: {
2106
- Args: Record<PropertyKey, never>;
2107
- Returns: string;
2108
- };
2109
2204
  search: {
2110
2205
  Args: {
2111
2206
  prefix: string;
package/dist/types.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import type { default as _Stripe } from 'stripe';
2
2
  import { Merge, OverrideProperties } from 'type-fest';
3
- import { Tables } from './supabase.types';
3
+ import { Tables, TablesUpdate } from './supabase.types';
4
4
  export declare enum AllPlans {
5
5
  FREE_TRIAL = "free-trial",
6
6
  ENTERPRISE = "enterprise",
@@ -82,6 +82,8 @@ export type OrgType = OverrideProperties<Merge<Tables<'tbl_org'>, {
82
82
  is_enterprise: boolean;
83
83
  is_free_trial: boolean;
84
84
  is_hubspot_connected: boolean;
85
+ is_freshdesk_connected: boolean;
86
+ is_zohodesk_connected: boolean;
85
87
  access_scopes: AccessScopes;
86
88
  }>, {
87
89
  org_plan: OrgPlan<AllPlans | Enterprise>;
@@ -164,6 +166,7 @@ export type TicketType = OverrideProperties<Tables<'tbl_chat_tickets'>, {
164
166
  };
165
167
  object_data?: HubspotObjectDataType;
166
168
  } | null;
169
+ freshdesk_metadata: Record<string, string>;
167
170
  close_ticket_metadata?: {
168
171
  closed_by: string;
169
172
  closed_at: string;
@@ -177,8 +180,9 @@ export type ContactType = Merge<Tables<'tbl_contacts'>, {
177
180
  }>;
178
181
  export type ReactionType = Tables<'tbl_chat_reactions'>;
179
182
  export type NotificationType = Tables<'tbl_chat_notifications'>;
180
- export type ChatAccessType = Merge<Tables<'tbl_org_members'>, {
181
- has_access: boolean;
183
+ export type ChatAccessType = Merge<TablesUpdate<'tbl_org_members'>, {
184
+ has_access?: boolean;
185
+ email: string | null;
182
186
  }>;
183
187
  export declare const labelColors: string[];
184
188
  export declare const enumChatColors: readonly ["#B4876E", "#A5B337", "#06CF9C", "#25D366", "#02A698", "#7D9EF1", "#007BFC", "#5E47DE", "#7F66FF", "#9333EA", "#FA6533", "#C4532D", "#DC2626", "#FF2E74", "#DB2777"];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@periskope/types",
3
- "version": "0.6.119",
3
+ "version": "0.6.121",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/supabase.types.ts CHANGED
@@ -61,6 +61,63 @@ export type Database = {
61
61
  }
62
62
  Relationships: []
63
63
  }
64
+ tbl_automation_rules: {
65
+ Row: {
66
+ actions: Json
67
+ conditions: Json
68
+ created_at: string
69
+ id: number
70
+ is_active: boolean
71
+ last_updated_at: string
72
+ last_updated_by: string
73
+ org_id: string
74
+ rule_description: string | null
75
+ rule_name: string
76
+ trigger: string
77
+ }
78
+ Insert: {
79
+ actions: Json
80
+ conditions: Json
81
+ created_at?: string
82
+ id?: number
83
+ is_active?: boolean
84
+ last_updated_at?: string
85
+ last_updated_by: string
86
+ org_id: string
87
+ rule_description?: string | null
88
+ rule_name: string
89
+ trigger: string
90
+ }
91
+ Update: {
92
+ actions?: Json
93
+ conditions?: Json
94
+ created_at?: string
95
+ id?: number
96
+ is_active?: boolean
97
+ last_updated_at?: string
98
+ last_updated_by?: string
99
+ org_id?: string
100
+ rule_description?: string | null
101
+ rule_name?: string
102
+ trigger?: string
103
+ }
104
+ Relationships: [
105
+ {
106
+ foreignKeyName: "public_tbl_automation_rules_org_id_fkey"
107
+ columns: ["org_id"]
108
+ isOneToOne: false
109
+ referencedRelation: "tbl_org"
110
+ referencedColumns: ["org_id"]
111
+ },
112
+ {
113
+ foreignKeyName: "public_tbl_automation_rules_org_id_fkey"
114
+ columns: ["org_id"]
115
+ isOneToOne: false
116
+ referencedRelation: "view_org"
117
+ referencedColumns: ["org_id"]
118
+ },
119
+ ]
120
+ }
64
121
  tbl_broadcast_logs: {
65
122
  Row: {
66
123
  broadcast_id: string
@@ -243,6 +300,41 @@ export type Database = {
243
300
  },
244
301
  ]
245
302
  }
303
+ tbl_chat_access: {
304
+ Row: {
305
+ chat_id: string
306
+ email: string
307
+ has_access: boolean | null
308
+ last_read_timestamp: string | null
309
+ message_unread_count: number | null
310
+ org_id: string
311
+ }
312
+ Insert: {
313
+ chat_id: string
314
+ email: string
315
+ has_access?: boolean | null
316
+ last_read_timestamp?: string | null
317
+ message_unread_count?: number | null
318
+ org_id: string
319
+ }
320
+ Update: {
321
+ chat_id?: string
322
+ email?: string
323
+ has_access?: boolean | null
324
+ last_read_timestamp?: string | null
325
+ message_unread_count?: number | null
326
+ org_id?: string
327
+ }
328
+ Relationships: [
329
+ {
330
+ foreignKeyName: "tbl_chat_access_org_id_email_fkey"
331
+ columns: ["org_id", "email"]
332
+ isOneToOne: false
333
+ referencedRelation: "tbl_org_members"
334
+ referencedColumns: ["org_id", "email"]
335
+ },
336
+ ]
337
+ }
246
338
  tbl_chat_logs: {
247
339
  Row: {
248
340
  action: string | null
@@ -565,7 +657,7 @@ export type Database = {
565
657
  chat_id: string
566
658
  chat_org_phones: string[]
567
659
  custom_properties: Json | null
568
- flag_count: Json | null
660
+ flag_count_map: Json | null
569
661
  hubspot_metadata: Json | null
570
662
  label_ids: Json | null
571
663
  org_id: string
@@ -578,7 +670,7 @@ export type Database = {
578
670
  chat_id: string
579
671
  chat_org_phones?: string[]
580
672
  custom_properties?: Json | null
581
- flag_count?: Json | null
673
+ flag_count_map?: Json | null
582
674
  hubspot_metadata?: Json | null
583
675
  label_ids?: Json | null
584
676
  org_id: string
@@ -591,7 +683,7 @@ export type Database = {
591
683
  chat_id?: string
592
684
  chat_org_phones?: string[]
593
685
  custom_properties?: Json | null
594
- flag_count?: Json | null
686
+ flag_count_map?: Json | null
595
687
  hubspot_metadata?: Json | null
596
688
  label_ids?: Json | null
597
689
  org_id?: string
@@ -671,6 +763,7 @@ export type Database = {
671
763
  closed_at: string | null
672
764
  created_at: string
673
765
  due_date: string | null
766
+ freshdesk_metadata: Json | null
674
767
  hubspot_metadata: Json | null
675
768
  is_deleted: boolean
676
769
  label_ids: Json | null
@@ -683,7 +776,7 @@ export type Database = {
683
776
  status: Database["public"]["Enums"]["enum_chat_tickets_status"] | null
684
777
  subject: string
685
778
  ticket_id: string
686
- ticket_metadata: Json | null
779
+ zohodesk_metadata: Json | null
687
780
  }
688
781
  Insert: {
689
782
  assigned_by?: string | null
@@ -693,6 +786,7 @@ export type Database = {
693
786
  closed_at?: string | null
694
787
  created_at?: string
695
788
  due_date?: string | null
789
+ freshdesk_metadata?: Json | null
696
790
  hubspot_metadata?: Json | null
697
791
  is_deleted?: boolean
698
792
  label_ids?: Json | null
@@ -707,7 +801,7 @@ export type Database = {
707
801
  | null
708
802
  subject: string
709
803
  ticket_id?: string
710
- ticket_metadata?: Json | null
804
+ zohodesk_metadata?: Json | null
711
805
  }
712
806
  Update: {
713
807
  assigned_by?: string | null
@@ -717,6 +811,7 @@ export type Database = {
717
811
  closed_at?: string | null
718
812
  created_at?: string
719
813
  due_date?: string | null
814
+ freshdesk_metadata?: Json | null
720
815
  hubspot_metadata?: Json | null
721
816
  is_deleted?: boolean
722
817
  label_ids?: Json | null
@@ -731,7 +826,7 @@ export type Database = {
731
826
  | null
732
827
  subject?: string
733
828
  ticket_id?: string
734
- ticket_metadata?: Json | null
829
+ zohodesk_metadata?: Json | null
735
830
  }
736
831
  Relationships: [
737
832
  {
@@ -758,6 +853,7 @@ export type Database = {
758
853
  chat_name: string | null
759
854
  chat_type: string | null
760
855
  created_at: string
856
+ flag_count: number
761
857
  group_metadata: Json | null
762
858
  id: Json | null
763
859
  invite_link: string | null
@@ -782,6 +878,7 @@ export type Database = {
782
878
  chat_name?: string | null
783
879
  chat_type?: string | null
784
880
  created_at?: string
881
+ flag_count?: number
785
882
  group_metadata?: Json | null
786
883
  id?: Json | null
787
884
  invite_link?: string | null
@@ -806,6 +903,7 @@ export type Database = {
806
903
  chat_name?: string | null
807
904
  chat_type?: string | null
808
905
  created_at?: string
906
+ flag_count?: number
809
907
  group_metadata?: Json | null
810
908
  id?: Json | null
811
909
  invite_link?: string | null
@@ -846,6 +944,7 @@ export type Database = {
846
944
  is_business: boolean | null
847
945
  is_enterprise: boolean | null
848
946
  is_group: boolean | null
947
+ is_imported: boolean | null
849
948
  is_internal: boolean | null
850
949
  is_me: boolean | null
851
950
  is_my_contact: boolean | null
@@ -874,6 +973,7 @@ export type Database = {
874
973
  is_business?: boolean | null
875
974
  is_enterprise?: boolean | null
876
975
  is_group?: boolean | null
976
+ is_imported?: boolean | null
877
977
  is_internal?: boolean | null
878
978
  is_me?: boolean | null
879
979
  is_my_contact?: boolean | null
@@ -902,6 +1002,7 @@ export type Database = {
902
1002
  is_business?: boolean | null
903
1003
  is_enterprise?: boolean | null
904
1004
  is_group?: boolean | null
1005
+ is_imported?: boolean | null
905
1006
  is_internal?: boolean | null
906
1007
  is_me?: boolean | null
907
1008
  is_my_contact?: boolean | null
@@ -1535,6 +1636,7 @@ export type Database = {
1535
1636
  created_at: string | null
1536
1637
  custom_properties: Json | null
1537
1638
  flag_count: number | null
1639
+ flag_count_map: Json | null
1538
1640
  group_description: string | null
1539
1641
  hubspot_metadata: Json | null
1540
1642
  info_admins_only: boolean | null
@@ -1559,7 +1661,9 @@ export type Database = {
1559
1661
  created_at: string | null
1560
1662
  is_enterprise: boolean | null
1561
1663
  is_free_trial: boolean | null
1664
+ is_freshdesk_connected: boolean | null
1562
1665
  is_hubspot_connected: boolean | null
1666
+ is_zohodesk_connected: boolean | null
1563
1667
  org_id: string | null
1564
1668
  org_image: string | null
1565
1669
  org_metadata: Json | null
@@ -1580,7 +1684,9 @@ export type Database = {
1580
1684
  created_at?: string | null
1581
1685
  is_enterprise?: never
1582
1686
  is_free_trial?: never
1687
+ is_freshdesk_connected?: never
1583
1688
  is_hubspot_connected?: never
1689
+ is_zohodesk_connected?: never
1584
1690
  org_id?: string | null
1585
1691
  org_image?: string | null
1586
1692
  org_metadata?: Json | null
@@ -1601,7 +1707,9 @@ export type Database = {
1601
1707
  created_at?: string | null
1602
1708
  is_enterprise?: never
1603
1709
  is_free_trial?: never
1710
+ is_freshdesk_connected?: never
1604
1711
  is_hubspot_connected?: never
1712
+ is_zohodesk_connected?: never
1605
1713
  org_id?: string | null
1606
1714
  org_image?: string | null
1607
1715
  org_metadata?: Json | null
@@ -1707,15 +1815,6 @@ export type Database = {
1707
1815
  }
1708
1816
  Returns: Json
1709
1817
  }
1710
- get_dashboard_statistics_between_dates: {
1711
- Args: {
1712
- org_id_input: string
1713
- start_date: string
1714
- end_date: string
1715
- chat_id_input?: string[]
1716
- }
1717
- Returns: Json
1718
- }
1719
1818
  get_export_chats_data: {
1720
1819
  Args: {
1721
1820
  org_id_input: string
@@ -1864,6 +1963,7 @@ export type Database = {
1864
1963
  | "ticket.created"
1865
1964
  | "ticket.updated"
1866
1965
  | "ticket.deleted"
1966
+ | "org.integrations.updated"
1867
1967
  enum_integration_type:
1868
1968
  | "zapier"
1869
1969
  | "pabbly"
@@ -1874,6 +1974,7 @@ export type Database = {
1874
1974
  | "slack"
1875
1975
  | "jira"
1876
1976
  | "salesforce"
1977
+ | "zohodesk"
1877
1978
  enum_member_role: "admin" | "member"
1878
1979
  }
1879
1980
  CompositeTypes: {
@@ -2157,10 +2258,6 @@ export type Database = {
2157
2258
  updated_at: string
2158
2259
  }[]
2159
2260
  }
2160
- operation: {
2161
- Args: Record<PropertyKey, never>
2162
- Returns: string
2163
- }
2164
2261
  search: {
2165
2262
  Args: {
2166
2263
  prefix: string
package/types.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import type { default as _Stripe } from 'stripe';
2
2
  import { Merge, OverrideProperties } from 'type-fest';
3
- import { Tables } from './supabase.types';
3
+ import { Tables, TablesUpdate } from './supabase.types';
4
4
 
5
5
  /* ----------------------------- TYPE SHORTHANDS ---------------------------- */
6
6
 
@@ -104,6 +104,8 @@ export type OrgType = OverrideProperties<
104
104
  is_enterprise: boolean;
105
105
  is_free_trial: boolean;
106
106
  is_hubspot_connected: boolean;
107
+ is_freshdesk_connected: boolean;
108
+ is_zohodesk_connected: boolean;
107
109
  access_scopes: AccessScopes;
108
110
  }
109
111
  >,
@@ -196,6 +198,7 @@ export type TicketType = OverrideProperties<
196
198
  };
197
199
  object_data?: HubspotObjectDataType;
198
200
  } | null;
201
+ freshdesk_metadata: Record<string, string>;
199
202
  close_ticket_metadata?:
200
203
  | {
201
204
  closed_by: string;
@@ -219,9 +222,10 @@ export type ReactionType = Tables<'tbl_chat_reactions'>;
219
222
  export type NotificationType = Tables<'tbl_chat_notifications'>;
220
223
 
221
224
  export type ChatAccessType = Merge<
222
- Tables<'tbl_org_members'>,
225
+ TablesUpdate<'tbl_org_members'>,
223
226
  {
224
- has_access: boolean;
227
+ has_access?: boolean;
228
+ email: string | null;
225
229
  }
226
230
  >;
227
231