@periskope/types 0.6.30 → 0.6.31

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.
@@ -307,6 +307,7 @@ export interface Database {
307
307
  recipientids: string[] | null;
308
308
  timestamp: string | null;
309
309
  type: string | null;
310
+ unique_id: string | null;
310
311
  };
311
312
  Insert: {
312
313
  author?: string | null;
@@ -319,6 +320,7 @@ export interface Database {
319
320
  recipientids?: string[] | null;
320
321
  timestamp?: string | null;
321
322
  type?: string | null;
323
+ unique_id?: string | null;
322
324
  };
323
325
  Update: {
324
326
  author?: string | null;
@@ -331,6 +333,7 @@ export interface Database {
331
333
  recipientids?: string[] | null;
332
334
  timestamp?: string | null;
333
335
  type?: string | null;
336
+ unique_id?: string | null;
334
337
  };
335
338
  Relationships: [
336
339
  {
package/dist/types.d.ts CHANGED
@@ -78,3 +78,10 @@ export type BroadcastLogType = Tables<'view_broadcast_logs'> & {
78
78
  delivered_count: number | null;
79
79
  };
80
80
  };
81
+ export type ChatParticipantOperation = {
82
+ participant_ids: string[];
83
+ operation_type: 'ADD' | 'REMOVE' | 'PROMOTE' | 'DEMOTE';
84
+ };
85
+ export type ChatParticipantOperationPayload = ChatParticipantOperation & {
86
+ chat_ids: string[];
87
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@periskope/types",
3
- "version": "0.6.30",
3
+ "version": "0.6.31",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/supabase.types.ts CHANGED
@@ -306,6 +306,7 @@ export interface Database {
306
306
  recipientids: string[] | null
307
307
  timestamp: string | null
308
308
  type: string | null
309
+ unique_id: string | null
309
310
  }
310
311
  Insert: {
311
312
  author?: string | null
@@ -318,6 +319,7 @@ export interface Database {
318
319
  recipientids?: string[] | null
319
320
  timestamp?: string | null
320
321
  type?: string | null
322
+ unique_id?: string | null
321
323
  }
322
324
  Update: {
323
325
  author?: string | null
@@ -330,6 +332,7 @@ export interface Database {
330
332
  recipientids?: string[] | null
331
333
  timestamp?: string | null
332
334
  type?: string | null
335
+ unique_id?: string | null
333
336
  }
334
337
  Relationships: [
335
338
  {
package/types.ts CHANGED
@@ -149,4 +149,16 @@ export type BroadcastLogType = Tables<'view_broadcast_logs'> & {
149
149
  delivery_info: MessageInfo | null,
150
150
  delivered_count: number | null
151
151
  },
152
- }
152
+ }
153
+
154
+
155
+ /* ----------------------- CHAT PARTICIPANT OPERATION ----------------------- */
156
+
157
+ export type ChatParticipantOperation = {
158
+ participant_ids: string[];
159
+ operation_type: 'ADD' | 'REMOVE' | 'PROMOTE' | 'DEMOTE';
160
+ };
161
+
162
+ export type ChatParticipantOperationPayload = ChatParticipantOperation & {
163
+ chat_ids: string[];
164
+ };