@periskope/types 0.6.84 → 0.6.85
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 +21 -50
- package/dist/types.d.ts +7 -0
- package/package.json +1 -1
- package/supabase.types.ts +1887 -1918
- package/types.ts +17 -0
package/types.ts
CHANGED
|
@@ -111,6 +111,10 @@ export type ChatType = Merge<
|
|
|
111
111
|
}
|
|
112
112
|
>;
|
|
113
113
|
|
|
114
|
+
/* -------------------------------------------------------------------------- */
|
|
115
|
+
/* MESSAGE */
|
|
116
|
+
/* -------------------------------------------------------------------------- */
|
|
117
|
+
|
|
114
118
|
export type MediaType = {
|
|
115
119
|
path: string;
|
|
116
120
|
mimetype?: string;
|
|
@@ -129,8 +133,20 @@ export type MessageType = OverrideProperties<
|
|
|
129
133
|
chat_id: string;
|
|
130
134
|
message_type: (typeof SUPPORTED_TYPES)[number];
|
|
131
135
|
media: MediaType | null;
|
|
136
|
+
flag_metadata: MessageFlagType | null;
|
|
132
137
|
}
|
|
133
138
|
>;
|
|
139
|
+
|
|
140
|
+
export type MessageFlagType = {
|
|
141
|
+
status: boolean;
|
|
142
|
+
response_type?: 'message' | 'reaction' | 'ticket';
|
|
143
|
+
response_id?: string;
|
|
144
|
+
response_timestamp?: string;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
/* -------------------------------------------------------------------------- */
|
|
149
|
+
|
|
134
150
|
export type TicketType = OverrideProperties<
|
|
135
151
|
Tables<'tbl_chat_tickets'>,
|
|
136
152
|
{
|
|
@@ -399,3 +415,4 @@ export type UserPreferences = {
|
|
|
399
415
|
right_sidepanel_open: boolean;
|
|
400
416
|
sync_wa_unread_count: boolean;
|
|
401
417
|
};
|
|
418
|
+
|