@periskope/types 0.6.114 → 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 +19 -38
- package/dist/types.d.ts +12 -2
- package/dist/types.js +1 -1
- package/package.json +1 -1
- package/supabase.types.ts +2272 -2291
- package/types.ts +23 -20
package/types.ts
CHANGED
|
@@ -219,8 +219,10 @@ export type ReactionType = Tables<'tbl_chat_reactions'>;
|
|
|
219
219
|
export type NotificationType = Tables<'tbl_chat_notifications'>;
|
|
220
220
|
|
|
221
221
|
export type ChatAccessType = Merge<
|
|
222
|
-
|
|
223
|
-
|
|
222
|
+
Tables<'tbl_org_members'>,
|
|
223
|
+
{
|
|
224
|
+
has_access: boolean;
|
|
225
|
+
}
|
|
224
226
|
>;
|
|
225
227
|
|
|
226
228
|
/* -------------------------------- CONSTANTS ------------------------------- */
|
|
@@ -265,7 +267,7 @@ export const SUPPORTED_TYPES = [
|
|
|
265
267
|
'ptt',
|
|
266
268
|
'poll_creation',
|
|
267
269
|
'location',
|
|
268
|
-
'ciphertext'
|
|
270
|
+
'ciphertext',
|
|
269
271
|
] as const;
|
|
270
272
|
|
|
271
273
|
export type SendMessageContent = {
|
|
@@ -273,7 +275,11 @@ export type SendMessageContent = {
|
|
|
273
275
|
body?: string;
|
|
274
276
|
media?: MediaType;
|
|
275
277
|
contact_ids?: string[];
|
|
276
|
-
location?:
|
|
278
|
+
location?: {
|
|
279
|
+
latitute: string;
|
|
280
|
+
longitude: string;
|
|
281
|
+
options?: { name?: string; address?: string; url?: string };
|
|
282
|
+
};
|
|
277
283
|
quoted_message_id?: string;
|
|
278
284
|
quoted_message_type?: 'reply' | 'forward' | 'reply_private';
|
|
279
285
|
broadcast_id?: string;
|
|
@@ -307,26 +313,23 @@ export type MessageAttachmentFileTypes =
|
|
|
307
313
|
| 'document'
|
|
308
314
|
| 'video';
|
|
309
315
|
|
|
316
|
+
export type AttachmentFileType = {
|
|
317
|
+
result: string;
|
|
318
|
+
file: File | null;
|
|
319
|
+
type: MessageAttachmentFileTypes;
|
|
320
|
+
localFileURL?: string;
|
|
321
|
+
};
|
|
310
322
|
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
323
|
+
export type AttachmentLinkType = {
|
|
324
|
+
link: {
|
|
325
|
+
url: string;
|
|
314
326
|
type: MessageAttachmentFileTypes;
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
export type AttachmentLinkType = {
|
|
319
|
-
link: {
|
|
320
|
-
url: string;
|
|
321
|
-
type: MessageAttachmentFileTypes;
|
|
322
|
-
name: string;
|
|
323
|
-
mimetype?: string;
|
|
324
|
-
};
|
|
327
|
+
name: string;
|
|
328
|
+
mimetype?: string;
|
|
325
329
|
};
|
|
330
|
+
};
|
|
326
331
|
|
|
327
|
-
export type AttachmentTypeProps =
|
|
328
|
-
| AttachmentFileType
|
|
329
|
-
| AttachmentLinkType
|
|
332
|
+
export type AttachmentTypeProps = AttachmentFileType | AttachmentLinkType;
|
|
330
333
|
|
|
331
334
|
/* -------------------------------- BROADCAST ------------------------------- */
|
|
332
335
|
|