@periskope/types 0.6.113 → 0.6.115
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.
- package/dist/supabase.types.d.ts +24 -52
- package/dist/types.d.ts +13 -6
- package/dist/types.js +1 -0
- package/package.json +1 -1
- package/supabase.types.ts +23 -53
- package/types.ts +23 -22
package/dist/supabase.types.d.ts
CHANGED
|
@@ -238,41 +238,6 @@ export type Database = {
|
|
|
238
238
|
}
|
|
239
239
|
];
|
|
240
240
|
};
|
|
241
|
-
tbl_chat_access: {
|
|
242
|
-
Row: {
|
|
243
|
-
chat_id: string;
|
|
244
|
-
email: string;
|
|
245
|
-
has_access: boolean | null;
|
|
246
|
-
last_read_timestamp: string | null;
|
|
247
|
-
message_unread_count: number | null;
|
|
248
|
-
org_id: string;
|
|
249
|
-
};
|
|
250
|
-
Insert: {
|
|
251
|
-
chat_id: string;
|
|
252
|
-
email: string;
|
|
253
|
-
has_access?: boolean | null;
|
|
254
|
-
last_read_timestamp?: string | null;
|
|
255
|
-
message_unread_count?: number | null;
|
|
256
|
-
org_id: string;
|
|
257
|
-
};
|
|
258
|
-
Update: {
|
|
259
|
-
chat_id?: string;
|
|
260
|
-
email?: string;
|
|
261
|
-
has_access?: boolean | null;
|
|
262
|
-
last_read_timestamp?: string | null;
|
|
263
|
-
message_unread_count?: number | null;
|
|
264
|
-
org_id?: string;
|
|
265
|
-
};
|
|
266
|
-
Relationships: [
|
|
267
|
-
{
|
|
268
|
-
foreignKeyName: "tbl_chat_access_org_id_email_fkey";
|
|
269
|
-
columns: ["org_id", "email"];
|
|
270
|
-
isOneToOne: false;
|
|
271
|
-
referencedRelation: "tbl_org_members";
|
|
272
|
-
referencedColumns: ["org_id", "email"];
|
|
273
|
-
}
|
|
274
|
-
];
|
|
275
|
-
};
|
|
276
241
|
tbl_chat_logs: {
|
|
277
242
|
Row: {
|
|
278
243
|
action: string | null;
|
|
@@ -588,32 +553,41 @@ export type Database = {
|
|
|
588
553
|
tbl_chat_properties: {
|
|
589
554
|
Row: {
|
|
590
555
|
assigned_to: string | null;
|
|
556
|
+
chat_access: Json | null;
|
|
591
557
|
chat_id: string;
|
|
592
558
|
chat_org_phones: string[];
|
|
593
559
|
custom_properties: Json | null;
|
|
560
|
+
flag_count: Json | null;
|
|
594
561
|
hubspot_metadata: Json | null;
|
|
595
562
|
label_ids: Json | null;
|
|
596
563
|
org_id: string;
|
|
564
|
+
unread_count: Json | null;
|
|
597
565
|
updated_at: string | null;
|
|
598
566
|
};
|
|
599
567
|
Insert: {
|
|
600
568
|
assigned_to?: string | null;
|
|
569
|
+
chat_access?: Json | null;
|
|
601
570
|
chat_id: string;
|
|
602
571
|
chat_org_phones?: string[];
|
|
603
572
|
custom_properties?: Json | null;
|
|
573
|
+
flag_count?: Json | null;
|
|
604
574
|
hubspot_metadata?: Json | null;
|
|
605
575
|
label_ids?: Json | null;
|
|
606
576
|
org_id: string;
|
|
577
|
+
unread_count?: Json | null;
|
|
607
578
|
updated_at?: string | null;
|
|
608
579
|
};
|
|
609
580
|
Update: {
|
|
610
581
|
assigned_to?: string | null;
|
|
582
|
+
chat_access?: Json | null;
|
|
611
583
|
chat_id?: string;
|
|
612
584
|
chat_org_phones?: string[];
|
|
613
585
|
custom_properties?: Json | null;
|
|
586
|
+
flag_count?: Json | null;
|
|
614
587
|
hubspot_metadata?: Json | null;
|
|
615
588
|
label_ids?: Json | null;
|
|
616
589
|
org_id?: string;
|
|
590
|
+
unread_count?: Json | null;
|
|
617
591
|
updated_at?: string | null;
|
|
618
592
|
};
|
|
619
593
|
Relationships: [];
|
|
@@ -689,7 +663,6 @@ export type Database = {
|
|
|
689
663
|
closed_at: string | null;
|
|
690
664
|
created_at: string;
|
|
691
665
|
due_date: string | null;
|
|
692
|
-
freshdesk_metadata: Json | null;
|
|
693
666
|
hubspot_metadata: Json | null;
|
|
694
667
|
is_deleted: boolean;
|
|
695
668
|
label_ids: Json | null;
|
|
@@ -702,7 +675,7 @@ export type Database = {
|
|
|
702
675
|
status: Database["public"]["Enums"]["enum_chat_tickets_status"] | null;
|
|
703
676
|
subject: string;
|
|
704
677
|
ticket_id: string;
|
|
705
|
-
|
|
678
|
+
ticket_metadata: Json | null;
|
|
706
679
|
};
|
|
707
680
|
Insert: {
|
|
708
681
|
assigned_by?: string | null;
|
|
@@ -712,7 +685,6 @@ export type Database = {
|
|
|
712
685
|
closed_at?: string | null;
|
|
713
686
|
created_at?: string;
|
|
714
687
|
due_date?: string | null;
|
|
715
|
-
freshdesk_metadata?: Json | null;
|
|
716
688
|
hubspot_metadata?: Json | null;
|
|
717
689
|
is_deleted?: boolean;
|
|
718
690
|
label_ids?: Json | null;
|
|
@@ -725,7 +697,7 @@ export type Database = {
|
|
|
725
697
|
status?: Database["public"]["Enums"]["enum_chat_tickets_status"] | null;
|
|
726
698
|
subject: string;
|
|
727
699
|
ticket_id?: string;
|
|
728
|
-
|
|
700
|
+
ticket_metadata?: Json | null;
|
|
729
701
|
};
|
|
730
702
|
Update: {
|
|
731
703
|
assigned_by?: string | null;
|
|
@@ -735,7 +707,6 @@ export type Database = {
|
|
|
735
707
|
closed_at?: string | null;
|
|
736
708
|
created_at?: string;
|
|
737
709
|
due_date?: string | null;
|
|
738
|
-
freshdesk_metadata?: Json | null;
|
|
739
710
|
hubspot_metadata?: Json | null;
|
|
740
711
|
is_deleted?: boolean;
|
|
741
712
|
label_ids?: Json | null;
|
|
@@ -748,7 +719,7 @@ export type Database = {
|
|
|
748
719
|
status?: Database["public"]["Enums"]["enum_chat_tickets_status"] | null;
|
|
749
720
|
subject?: string;
|
|
750
721
|
ticket_id?: string;
|
|
751
|
-
|
|
722
|
+
ticket_metadata?: Json | null;
|
|
752
723
|
};
|
|
753
724
|
Relationships: [
|
|
754
725
|
{
|
|
@@ -775,7 +746,6 @@ export type Database = {
|
|
|
775
746
|
chat_name: string | null;
|
|
776
747
|
chat_type: string | null;
|
|
777
748
|
created_at: string;
|
|
778
|
-
flag_count: number;
|
|
779
749
|
group_metadata: Json | null;
|
|
780
750
|
id: Json | null;
|
|
781
751
|
invite_link: string | null;
|
|
@@ -800,7 +770,6 @@ export type Database = {
|
|
|
800
770
|
chat_name?: string | null;
|
|
801
771
|
chat_type?: string | null;
|
|
802
772
|
created_at?: string;
|
|
803
|
-
flag_count?: number;
|
|
804
773
|
group_metadata?: Json | null;
|
|
805
774
|
id?: Json | null;
|
|
806
775
|
invite_link?: string | null;
|
|
@@ -825,7 +794,6 @@ export type Database = {
|
|
|
825
794
|
chat_name?: string | null;
|
|
826
795
|
chat_type?: string | null;
|
|
827
796
|
created_at?: string;
|
|
828
|
-
flag_count?: number;
|
|
829
797
|
group_metadata?: Json | null;
|
|
830
798
|
id?: Json | null;
|
|
831
799
|
invite_link?: string | null;
|
|
@@ -1577,9 +1545,7 @@ export type Database = {
|
|
|
1577
1545
|
created_at: string | null;
|
|
1578
1546
|
is_enterprise: boolean | null;
|
|
1579
1547
|
is_free_trial: boolean | null;
|
|
1580
|
-
is_freshdesk_connected: boolean | null;
|
|
1581
1548
|
is_hubspot_connected: boolean | null;
|
|
1582
|
-
is_zohodesk_connected: boolean | null;
|
|
1583
1549
|
org_id: string | null;
|
|
1584
1550
|
org_image: string | null;
|
|
1585
1551
|
org_metadata: Json | null;
|
|
@@ -1600,9 +1566,7 @@ export type Database = {
|
|
|
1600
1566
|
created_at?: string | null;
|
|
1601
1567
|
is_enterprise?: never;
|
|
1602
1568
|
is_free_trial?: never;
|
|
1603
|
-
is_freshdesk_connected?: never;
|
|
1604
1569
|
is_hubspot_connected?: never;
|
|
1605
|
-
is_zohodesk_connected?: never;
|
|
1606
1570
|
org_id?: string | null;
|
|
1607
1571
|
org_image?: string | null;
|
|
1608
1572
|
org_metadata?: Json | null;
|
|
@@ -1623,9 +1587,7 @@ export type Database = {
|
|
|
1623
1587
|
created_at?: string | null;
|
|
1624
1588
|
is_enterprise?: never;
|
|
1625
1589
|
is_free_trial?: never;
|
|
1626
|
-
is_freshdesk_connected?: never;
|
|
1627
1590
|
is_hubspot_connected?: never;
|
|
1628
|
-
is_zohodesk_connected?: never;
|
|
1629
1591
|
org_id?: string | null;
|
|
1630
1592
|
org_image?: string | null;
|
|
1631
1593
|
org_metadata?: Json | null;
|
|
@@ -1820,6 +1782,16 @@ export type Database = {
|
|
|
1820
1782
|
Args: Record<PropertyKey, never>;
|
|
1821
1783
|
Returns: Database["public"]["Enums"]["enum_member_role"];
|
|
1822
1784
|
};
|
|
1785
|
+
update_chat_properties: {
|
|
1786
|
+
Args: {
|
|
1787
|
+
column_name: string;
|
|
1788
|
+
org_id_input: string;
|
|
1789
|
+
chat_id_input: string[];
|
|
1790
|
+
key_input: string;
|
|
1791
|
+
value_input: Json;
|
|
1792
|
+
};
|
|
1793
|
+
Returns: undefined;
|
|
1794
|
+
};
|
|
1823
1795
|
update_custom_properties: {
|
|
1824
1796
|
Args: {
|
|
1825
1797
|
org_id_input: string;
|
|
@@ -1842,8 +1814,8 @@ export type Database = {
|
|
|
1842
1814
|
enum_broadcast_status: "inprogress" | "completed" | "stopped";
|
|
1843
1815
|
enum_chat_colors: "#B4876E" | "#A5B337" | "#06CF9C" | "#25D366" | "#02A698" | "#7D9EF1" | "#007BFC" | "#5E47DE" | "#7F66FF" | "#9333EA" | "#FA6533" | "#C4532D" | "#DC2626" | "#FF2E74" | "#DB2777";
|
|
1844
1816
|
enum_chat_tickets_status: "open" | "inprogress" | "closed" | "archived";
|
|
1845
|
-
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"
|
|
1846
|
-
enum_integration_type: "zapier" | "pabbly" | "api" | "webhook" | "hubspot" | "freshdesk" | "slack" | "jira" | "salesforce"
|
|
1817
|
+
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";
|
|
1818
|
+
enum_integration_type: "zapier" | "pabbly" | "api" | "webhook" | "hubspot" | "freshdesk" | "slack" | "jira" | "salesforce";
|
|
1847
1819
|
enum_member_role: "admin" | "member";
|
|
1848
1820
|
};
|
|
1849
1821
|
CompositeTypes: {
|
package/dist/types.d.ts
CHANGED
|
@@ -82,8 +82,6 @@ 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;
|
|
87
85
|
access_scopes: AccessScopes;
|
|
88
86
|
}>, {
|
|
89
87
|
org_plan: OrgPlan<AllPlans | Enterprise>;
|
|
@@ -166,7 +164,6 @@ export type TicketType = OverrideProperties<Tables<'tbl_chat_tickets'>, {
|
|
|
166
164
|
};
|
|
167
165
|
object_data?: HubspotObjectDataType;
|
|
168
166
|
} | null;
|
|
169
|
-
freshdesk_metadata: Record<string, string>;
|
|
170
167
|
close_ticket_metadata?: {
|
|
171
168
|
closed_by: string;
|
|
172
169
|
closed_at: string;
|
|
@@ -180,16 +177,26 @@ export type ContactType = Merge<Tables<'tbl_contacts'>, {
|
|
|
180
177
|
}>;
|
|
181
178
|
export type ReactionType = Tables<'tbl_chat_reactions'>;
|
|
182
179
|
export type NotificationType = Tables<'tbl_chat_notifications'>;
|
|
183
|
-
export type ChatAccessType = Merge<
|
|
180
|
+
export type ChatAccessType = Merge<Tables<'tbl_org_members'>, {
|
|
181
|
+
has_access: boolean;
|
|
182
|
+
}>;
|
|
184
183
|
export declare const labelColors: string[];
|
|
185
184
|
export declare const enumChatColors: readonly ["#B4876E", "#A5B337", "#06CF9C", "#25D366", "#02A698", "#7D9EF1", "#007BFC", "#5E47DE", "#7F66FF", "#9333EA", "#FA6533", "#C4532D", "#DC2626", "#FF2E74", "#DB2777"];
|
|
186
|
-
export declare const SUPPORTED_TYPES: readonly ["chat", "sticker", "image", "video", "document", "vcard", "multi_vcard", "audio", "ptt", "poll_creation", "location"];
|
|
185
|
+
export declare const SUPPORTED_TYPES: readonly ["chat", "sticker", "image", "video", "document", "vcard", "multi_vcard", "audio", "ptt", "poll_creation", "location", "ciphertext"];
|
|
187
186
|
export type SendMessageContent = {
|
|
188
187
|
message_type?: (typeof SUPPORTED_TYPES)[number];
|
|
189
188
|
body?: string;
|
|
190
189
|
media?: MediaType;
|
|
191
190
|
contact_ids?: string[];
|
|
192
|
-
location?:
|
|
191
|
+
location?: {
|
|
192
|
+
latitute: string;
|
|
193
|
+
longitude: string;
|
|
194
|
+
options?: {
|
|
195
|
+
name?: string;
|
|
196
|
+
address?: string;
|
|
197
|
+
url?: string;
|
|
198
|
+
};
|
|
199
|
+
};
|
|
193
200
|
quoted_message_id?: string;
|
|
194
201
|
quoted_message_type?: 'reply' | 'forward' | 'reply_private';
|
|
195
202
|
broadcast_id?: string;
|
package/dist/types.js
CHANGED
package/package.json
CHANGED
package/supabase.types.ts
CHANGED
|
@@ -243,41 +243,6 @@ export type Database = {
|
|
|
243
243
|
},
|
|
244
244
|
]
|
|
245
245
|
}
|
|
246
|
-
tbl_chat_access: {
|
|
247
|
-
Row: {
|
|
248
|
-
chat_id: string
|
|
249
|
-
email: string
|
|
250
|
-
has_access: boolean | null
|
|
251
|
-
last_read_timestamp: string | null
|
|
252
|
-
message_unread_count: number | null
|
|
253
|
-
org_id: string
|
|
254
|
-
}
|
|
255
|
-
Insert: {
|
|
256
|
-
chat_id: string
|
|
257
|
-
email: string
|
|
258
|
-
has_access?: boolean | null
|
|
259
|
-
last_read_timestamp?: string | null
|
|
260
|
-
message_unread_count?: number | null
|
|
261
|
-
org_id: string
|
|
262
|
-
}
|
|
263
|
-
Update: {
|
|
264
|
-
chat_id?: string
|
|
265
|
-
email?: string
|
|
266
|
-
has_access?: boolean | null
|
|
267
|
-
last_read_timestamp?: string | null
|
|
268
|
-
message_unread_count?: number | null
|
|
269
|
-
org_id?: string
|
|
270
|
-
}
|
|
271
|
-
Relationships: [
|
|
272
|
-
{
|
|
273
|
-
foreignKeyName: "tbl_chat_access_org_id_email_fkey"
|
|
274
|
-
columns: ["org_id", "email"]
|
|
275
|
-
isOneToOne: false
|
|
276
|
-
referencedRelation: "tbl_org_members"
|
|
277
|
-
referencedColumns: ["org_id", "email"]
|
|
278
|
-
},
|
|
279
|
-
]
|
|
280
|
-
}
|
|
281
246
|
tbl_chat_logs: {
|
|
282
247
|
Row: {
|
|
283
248
|
action: string | null
|
|
@@ -593,32 +558,41 @@ export type Database = {
|
|
|
593
558
|
tbl_chat_properties: {
|
|
594
559
|
Row: {
|
|
595
560
|
assigned_to: string | null
|
|
561
|
+
chat_access: Json | null
|
|
596
562
|
chat_id: string
|
|
597
563
|
chat_org_phones: string[]
|
|
598
564
|
custom_properties: Json | null
|
|
565
|
+
flag_count: Json | null
|
|
599
566
|
hubspot_metadata: Json | null
|
|
600
567
|
label_ids: Json | null
|
|
601
568
|
org_id: string
|
|
569
|
+
unread_count: Json | null
|
|
602
570
|
updated_at: string | null
|
|
603
571
|
}
|
|
604
572
|
Insert: {
|
|
605
573
|
assigned_to?: string | null
|
|
574
|
+
chat_access?: Json | null
|
|
606
575
|
chat_id: string
|
|
607
576
|
chat_org_phones?: string[]
|
|
608
577
|
custom_properties?: Json | null
|
|
578
|
+
flag_count?: Json | null
|
|
609
579
|
hubspot_metadata?: Json | null
|
|
610
580
|
label_ids?: Json | null
|
|
611
581
|
org_id: string
|
|
582
|
+
unread_count?: Json | null
|
|
612
583
|
updated_at?: string | null
|
|
613
584
|
}
|
|
614
585
|
Update: {
|
|
615
586
|
assigned_to?: string | null
|
|
587
|
+
chat_access?: Json | null
|
|
616
588
|
chat_id?: string
|
|
617
589
|
chat_org_phones?: string[]
|
|
618
590
|
custom_properties?: Json | null
|
|
591
|
+
flag_count?: Json | null
|
|
619
592
|
hubspot_metadata?: Json | null
|
|
620
593
|
label_ids?: Json | null
|
|
621
594
|
org_id?: string
|
|
595
|
+
unread_count?: Json | null
|
|
622
596
|
updated_at?: string | null
|
|
623
597
|
}
|
|
624
598
|
Relationships: []
|
|
@@ -694,7 +668,6 @@ export type Database = {
|
|
|
694
668
|
closed_at: string | null
|
|
695
669
|
created_at: string
|
|
696
670
|
due_date: string | null
|
|
697
|
-
freshdesk_metadata: Json | null
|
|
698
671
|
hubspot_metadata: Json | null
|
|
699
672
|
is_deleted: boolean
|
|
700
673
|
label_ids: Json | null
|
|
@@ -707,7 +680,7 @@ export type Database = {
|
|
|
707
680
|
status: Database["public"]["Enums"]["enum_chat_tickets_status"] | null
|
|
708
681
|
subject: string
|
|
709
682
|
ticket_id: string
|
|
710
|
-
|
|
683
|
+
ticket_metadata: Json | null
|
|
711
684
|
}
|
|
712
685
|
Insert: {
|
|
713
686
|
assigned_by?: string | null
|
|
@@ -717,7 +690,6 @@ export type Database = {
|
|
|
717
690
|
closed_at?: string | null
|
|
718
691
|
created_at?: string
|
|
719
692
|
due_date?: string | null
|
|
720
|
-
freshdesk_metadata?: Json | null
|
|
721
693
|
hubspot_metadata?: Json | null
|
|
722
694
|
is_deleted?: boolean
|
|
723
695
|
label_ids?: Json | null
|
|
@@ -732,7 +704,7 @@ export type Database = {
|
|
|
732
704
|
| null
|
|
733
705
|
subject: string
|
|
734
706
|
ticket_id?: string
|
|
735
|
-
|
|
707
|
+
ticket_metadata?: Json | null
|
|
736
708
|
}
|
|
737
709
|
Update: {
|
|
738
710
|
assigned_by?: string | null
|
|
@@ -742,7 +714,6 @@ export type Database = {
|
|
|
742
714
|
closed_at?: string | null
|
|
743
715
|
created_at?: string
|
|
744
716
|
due_date?: string | null
|
|
745
|
-
freshdesk_metadata?: Json | null
|
|
746
717
|
hubspot_metadata?: Json | null
|
|
747
718
|
is_deleted?: boolean
|
|
748
719
|
label_ids?: Json | null
|
|
@@ -757,7 +728,7 @@ export type Database = {
|
|
|
757
728
|
| null
|
|
758
729
|
subject?: string
|
|
759
730
|
ticket_id?: string
|
|
760
|
-
|
|
731
|
+
ticket_metadata?: Json | null
|
|
761
732
|
}
|
|
762
733
|
Relationships: [
|
|
763
734
|
{
|
|
@@ -784,7 +755,6 @@ export type Database = {
|
|
|
784
755
|
chat_name: string | null
|
|
785
756
|
chat_type: string | null
|
|
786
757
|
created_at: string
|
|
787
|
-
flag_count: number
|
|
788
758
|
group_metadata: Json | null
|
|
789
759
|
id: Json | null
|
|
790
760
|
invite_link: string | null
|
|
@@ -809,7 +779,6 @@ export type Database = {
|
|
|
809
779
|
chat_name?: string | null
|
|
810
780
|
chat_type?: string | null
|
|
811
781
|
created_at?: string
|
|
812
|
-
flag_count?: number
|
|
813
782
|
group_metadata?: Json | null
|
|
814
783
|
id?: Json | null
|
|
815
784
|
invite_link?: string | null
|
|
@@ -834,7 +803,6 @@ export type Database = {
|
|
|
834
803
|
chat_name?: string | null
|
|
835
804
|
chat_type?: string | null
|
|
836
805
|
created_at?: string
|
|
837
|
-
flag_count?: number
|
|
838
806
|
group_metadata?: Json | null
|
|
839
807
|
id?: Json | null
|
|
840
808
|
invite_link?: string | null
|
|
@@ -1588,9 +1556,7 @@ export type Database = {
|
|
|
1588
1556
|
created_at: string | null
|
|
1589
1557
|
is_enterprise: boolean | null
|
|
1590
1558
|
is_free_trial: boolean | null
|
|
1591
|
-
is_freshdesk_connected: boolean | null
|
|
1592
1559
|
is_hubspot_connected: boolean | null
|
|
1593
|
-
is_zohodesk_connected: boolean | null
|
|
1594
1560
|
org_id: string | null
|
|
1595
1561
|
org_image: string | null
|
|
1596
1562
|
org_metadata: Json | null
|
|
@@ -1611,9 +1577,7 @@ export type Database = {
|
|
|
1611
1577
|
created_at?: string | null
|
|
1612
1578
|
is_enterprise?: never
|
|
1613
1579
|
is_free_trial?: never
|
|
1614
|
-
is_freshdesk_connected?: never
|
|
1615
1580
|
is_hubspot_connected?: never
|
|
1616
|
-
is_zohodesk_connected?: never
|
|
1617
1581
|
org_id?: string | null
|
|
1618
1582
|
org_image?: string | null
|
|
1619
1583
|
org_metadata?: Json | null
|
|
@@ -1634,9 +1598,7 @@ export type Database = {
|
|
|
1634
1598
|
created_at?: string | null
|
|
1635
1599
|
is_enterprise?: never
|
|
1636
1600
|
is_free_trial?: never
|
|
1637
|
-
is_freshdesk_connected?: never
|
|
1638
1601
|
is_hubspot_connected?: never
|
|
1639
|
-
is_zohodesk_connected?: never
|
|
1640
1602
|
org_id?: string | null
|
|
1641
1603
|
org_image?: string | null
|
|
1642
1604
|
org_metadata?: Json | null
|
|
@@ -1831,6 +1793,16 @@ export type Database = {
|
|
|
1831
1793
|
Args: Record<PropertyKey, never>
|
|
1832
1794
|
Returns: Database["public"]["Enums"]["enum_member_role"]
|
|
1833
1795
|
}
|
|
1796
|
+
update_chat_properties: {
|
|
1797
|
+
Args: {
|
|
1798
|
+
column_name: string
|
|
1799
|
+
org_id_input: string
|
|
1800
|
+
chat_id_input: string[]
|
|
1801
|
+
key_input: string
|
|
1802
|
+
value_input: Json
|
|
1803
|
+
}
|
|
1804
|
+
Returns: undefined
|
|
1805
|
+
}
|
|
1834
1806
|
update_custom_properties: {
|
|
1835
1807
|
Args: {
|
|
1836
1808
|
org_id_input: string
|
|
@@ -1889,7 +1861,6 @@ export type Database = {
|
|
|
1889
1861
|
| "ticket.created"
|
|
1890
1862
|
| "ticket.updated"
|
|
1891
1863
|
| "ticket.deleted"
|
|
1892
|
-
| "org.integrations.updated"
|
|
1893
1864
|
enum_integration_type:
|
|
1894
1865
|
| "zapier"
|
|
1895
1866
|
| "pabbly"
|
|
@@ -1900,7 +1871,6 @@ export type Database = {
|
|
|
1900
1871
|
| "slack"
|
|
1901
1872
|
| "jira"
|
|
1902
1873
|
| "salesforce"
|
|
1903
|
-
| "zohodesk"
|
|
1904
1874
|
enum_member_role: "admin" | "member"
|
|
1905
1875
|
}
|
|
1906
1876
|
CompositeTypes: {
|
|
@@ -2300,4 +2270,4 @@ export type Enums<
|
|
|
2300
2270
|
? PublicSchema["Enums"][PublicEnumNameOrOptions]
|
|
2301
2271
|
: never
|
|
2302
2272
|
|
|
2303
|
-
|
|
2273
|
+
|
package/types.ts
CHANGED
|
@@ -104,8 +104,6 @@ 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;
|
|
109
107
|
access_scopes: AccessScopes;
|
|
110
108
|
}
|
|
111
109
|
>,
|
|
@@ -198,7 +196,6 @@ export type TicketType = OverrideProperties<
|
|
|
198
196
|
};
|
|
199
197
|
object_data?: HubspotObjectDataType;
|
|
200
198
|
} | null;
|
|
201
|
-
freshdesk_metadata: Record<string, string>;
|
|
202
199
|
close_ticket_metadata?:
|
|
203
200
|
| {
|
|
204
201
|
closed_by: string;
|
|
@@ -222,8 +219,10 @@ export type ReactionType = Tables<'tbl_chat_reactions'>;
|
|
|
222
219
|
export type NotificationType = Tables<'tbl_chat_notifications'>;
|
|
223
220
|
|
|
224
221
|
export type ChatAccessType = Merge<
|
|
225
|
-
|
|
226
|
-
|
|
222
|
+
Tables<'tbl_org_members'>,
|
|
223
|
+
{
|
|
224
|
+
has_access: boolean;
|
|
225
|
+
}
|
|
227
226
|
>;
|
|
228
227
|
|
|
229
228
|
/* -------------------------------- CONSTANTS ------------------------------- */
|
|
@@ -268,6 +267,7 @@ export const SUPPORTED_TYPES = [
|
|
|
268
267
|
'ptt',
|
|
269
268
|
'poll_creation',
|
|
270
269
|
'location',
|
|
270
|
+
'ciphertext',
|
|
271
271
|
] as const;
|
|
272
272
|
|
|
273
273
|
export type SendMessageContent = {
|
|
@@ -275,7 +275,11 @@ export type SendMessageContent = {
|
|
|
275
275
|
body?: string;
|
|
276
276
|
media?: MediaType;
|
|
277
277
|
contact_ids?: string[];
|
|
278
|
-
location?:
|
|
278
|
+
location?: {
|
|
279
|
+
latitute: string;
|
|
280
|
+
longitude: string;
|
|
281
|
+
options?: { name?: string; address?: string; url?: string };
|
|
282
|
+
};
|
|
279
283
|
quoted_message_id?: string;
|
|
280
284
|
quoted_message_type?: 'reply' | 'forward' | 'reply_private';
|
|
281
285
|
broadcast_id?: string;
|
|
@@ -309,26 +313,23 @@ export type MessageAttachmentFileTypes =
|
|
|
309
313
|
| 'document'
|
|
310
314
|
| 'video';
|
|
311
315
|
|
|
316
|
+
export type AttachmentFileType = {
|
|
317
|
+
result: string;
|
|
318
|
+
file: File | null;
|
|
319
|
+
type: MessageAttachmentFileTypes;
|
|
320
|
+
localFileURL?: string;
|
|
321
|
+
};
|
|
312
322
|
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
323
|
+
export type AttachmentLinkType = {
|
|
324
|
+
link: {
|
|
325
|
+
url: string;
|
|
316
326
|
type: MessageAttachmentFileTypes;
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
export type AttachmentLinkType = {
|
|
321
|
-
link: {
|
|
322
|
-
url: string;
|
|
323
|
-
type: MessageAttachmentFileTypes;
|
|
324
|
-
name: string;
|
|
325
|
-
mimetype?: string;
|
|
326
|
-
};
|
|
327
|
+
name: string;
|
|
328
|
+
mimetype?: string;
|
|
327
329
|
};
|
|
330
|
+
};
|
|
328
331
|
|
|
329
|
-
export type AttachmentTypeProps =
|
|
330
|
-
| AttachmentFileType
|
|
331
|
-
| AttachmentLinkType
|
|
332
|
+
export type AttachmentTypeProps = AttachmentFileType | AttachmentLinkType;
|
|
332
333
|
|
|
333
334
|
/* -------------------------------- BROADCAST ------------------------------- */
|
|
334
335
|
|