@periskope/types 0.6.29 → 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.
@@ -185,6 +185,7 @@ export interface Database {
185
185
  timestamp: string | null;
186
186
  to: string | null;
187
187
  token: string | null;
188
+ unique_id: string | null;
188
189
  updated_at: string | null;
189
190
  vcards: string[] | null;
190
191
  };
@@ -232,6 +233,7 @@ export interface Database {
232
233
  timestamp?: string | null;
233
234
  to?: string | null;
234
235
  token?: string | null;
236
+ unique_id?: string | null;
235
237
  updated_at?: string | null;
236
238
  vcards?: string[] | null;
237
239
  };
@@ -279,6 +281,7 @@ export interface Database {
279
281
  timestamp?: string | null;
280
282
  to?: string | null;
281
283
  token?: string | null;
284
+ unique_id?: string | null;
282
285
  updated_at?: string | null;
283
286
  vcards?: string[] | null;
284
287
  };
@@ -304,6 +307,7 @@ export interface Database {
304
307
  recipientids: string[] | null;
305
308
  timestamp: string | null;
306
309
  type: string | null;
310
+ unique_id: string | null;
307
311
  };
308
312
  Insert: {
309
313
  author?: string | null;
@@ -316,6 +320,7 @@ export interface Database {
316
320
  recipientids?: string[] | null;
317
321
  timestamp?: string | null;
318
322
  type?: string | null;
323
+ unique_id?: string | null;
319
324
  };
320
325
  Update: {
321
326
  author?: string | null;
@@ -328,6 +333,7 @@ export interface Database {
328
333
  recipientids?: string[] | null;
329
334
  timestamp?: string | null;
330
335
  type?: string | null;
336
+ unique_id?: string | null;
331
337
  };
332
338
  Relationships: [
333
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.29",
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
@@ -184,6 +184,7 @@ export interface Database {
184
184
  timestamp: string | null
185
185
  to: string | null
186
186
  token: string | null
187
+ unique_id: string | null
187
188
  updated_at: string | null
188
189
  vcards: string[] | null
189
190
  }
@@ -231,6 +232,7 @@ export interface Database {
231
232
  timestamp?: string | null
232
233
  to?: string | null
233
234
  token?: string | null
235
+ unique_id?: string | null
234
236
  updated_at?: string | null
235
237
  vcards?: string[] | null
236
238
  }
@@ -278,6 +280,7 @@ export interface Database {
278
280
  timestamp?: string | null
279
281
  to?: string | null
280
282
  token?: string | null
283
+ unique_id?: string | null
281
284
  updated_at?: string | null
282
285
  vcards?: string[] | null
283
286
  }
@@ -303,6 +306,7 @@ export interface Database {
303
306
  recipientids: string[] | null
304
307
  timestamp: string | null
305
308
  type: string | null
309
+ unique_id: string | null
306
310
  }
307
311
  Insert: {
308
312
  author?: string | null
@@ -315,6 +319,7 @@ export interface Database {
315
319
  recipientids?: string[] | null
316
320
  timestamp?: string | null
317
321
  type?: string | null
322
+ unique_id?: string | null
318
323
  }
319
324
  Update: {
320
325
  author?: string | null
@@ -327,6 +332,7 @@ export interface Database {
327
332
  recipientids?: string[] | null
328
333
  timestamp?: string | null
329
334
  type?: string | null
335
+ unique_id?: string | null
330
336
  }
331
337
  Relationships: [
332
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
+ };