@periskope/types 0.6.150 → 0.6.151

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/index.d.ts CHANGED
@@ -1,3 +1,2 @@
1
- export * from './rules.types';
2
1
  export * from './supabase.types';
3
2
  export * from './types';
package/dist/index.js CHANGED
@@ -14,6 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./rules.types"), exports);
18
17
  __exportStar(require("./supabase.types"), exports);
19
18
  __exportStar(require("./types"), exports);
@@ -2272,6 +2272,7 @@ export type Database = {
2272
2272
  owner_id: string | null;
2273
2273
  path_tokens: string[] | null;
2274
2274
  updated_at: string | null;
2275
+ user_metadata: Json | null;
2275
2276
  version: string | null;
2276
2277
  };
2277
2278
  Insert: {
@@ -2285,6 +2286,7 @@ export type Database = {
2285
2286
  owner_id?: string | null;
2286
2287
  path_tokens?: string[] | null;
2287
2288
  updated_at?: string | null;
2289
+ user_metadata?: Json | null;
2288
2290
  version?: string | null;
2289
2291
  };
2290
2292
  Update: {
@@ -2298,6 +2300,7 @@ export type Database = {
2298
2300
  owner_id?: string | null;
2299
2301
  path_tokens?: string[] | null;
2300
2302
  updated_at?: string | null;
2303
+ user_metadata?: Json | null;
2301
2304
  version?: string | null;
2302
2305
  };
2303
2306
  Relationships: [
@@ -2319,6 +2322,7 @@ export type Database = {
2319
2322
  key: string;
2320
2323
  owner_id: string | null;
2321
2324
  upload_signature: string;
2325
+ user_metadata: Json | null;
2322
2326
  version: string;
2323
2327
  };
2324
2328
  Insert: {
@@ -2329,6 +2333,7 @@ export type Database = {
2329
2333
  key: string;
2330
2334
  owner_id?: string | null;
2331
2335
  upload_signature: string;
2336
+ user_metadata?: Json | null;
2332
2337
  version: string;
2333
2338
  };
2334
2339
  Update: {
@@ -2339,6 +2344,7 @@ export type Database = {
2339
2344
  key?: string;
2340
2345
  owner_id?: string | null;
2341
2346
  upload_signature?: string;
2347
+ user_metadata?: Json | null;
2342
2348
  version?: string;
2343
2349
  };
2344
2350
  Relationships: [
@@ -2475,6 +2481,10 @@ export type Database = {
2475
2481
  updated_at: string;
2476
2482
  }[];
2477
2483
  };
2484
+ operation: {
2485
+ Args: Record<PropertyKey, never>;
2486
+ Returns: string;
2487
+ };
2478
2488
  search: {
2479
2489
  Args: {
2480
2490
  prefix: string;
package/dist/types.d.ts CHANGED
@@ -136,6 +136,7 @@ export type ChatType = Merge<Tables<'view_chats'>, {
136
136
  is_archived?: boolean;
137
137
  is_pinned?: boolean;
138
138
  closed_at?: number;
139
+ common_chats?: string[];
139
140
  }>;
140
141
  export type MediaType = {
141
142
  path: string;
@@ -163,7 +164,7 @@ export type MessageType = Merge<OverrideProperties<Tables<'tbl_chat_messages'>,
163
164
  }>, {
164
165
  reactions?: ReactionType[];
165
166
  message_payload?: SingleMessagePayload;
166
- show_unread?: boolean;
167
+ show_unread?: number;
167
168
  highlight?: number;
168
169
  }>;
169
170
  export type MessageFlagType = {
@@ -244,6 +245,7 @@ export type BroadcastMessagePayload = SendMessageContent & {
244
245
  export type SingleMessagePayload = SendMessageContent & {
245
246
  chat_id: string;
246
247
  job_id?: string;
248
+ priority?: number;
247
249
  };
248
250
  export type MessageAttachmentFileTypes = 'image' | 'audio' | 'document' | 'video';
249
251
  export type AttachmentFileType = {
@@ -444,41 +446,4 @@ export type OrgCreditsType = {
444
446
  total_credits_used: number;
445
447
  next_renewal_date: string;
446
448
  };
447
- export type ChatRuleInfoType = Merge<Pick<Tables<'view_chats'>, 'assigned_to' | 'chat_id' | 'chat_name' | 'chat_type' | 'created_at' | 'group_description' | 'info_admins_only' | 'is_exited' | 'is_muted' | 'org_id' | 'org_phone' | 'chat_org_phones' | 'messages_admins_only' | 'custom_properties'>, {
448
- has_flagged_messages: boolean;
449
- labels: string[];
450
- members: string[];
451
- custom_properties: {
452
- [key: string]: string;
453
- } | null;
454
- }>;
455
- export type SenderRuleInfoType = Merge<Omit<Merge<Tables<'tbl_contacts'>, Tables<'tbl_chat_participants'>>, 'verified_name' | 'verified_level' | 'updated_at' | 'short_name' | 'pushname' | 'periskope_name' | 'org_phone' | 'number' | 'name' | 'label_ids' | 'is_wa_contact' | 'is_user' | 'is_my_contact' | 'is_me' | 'is_imported' | 'is_group' | 'is_blocked' | 'contact_color' | 'business_profile' | 'id' | 'contact_image' | 'contact_type' | 'chat_id'>, {
456
- is_internal: boolean;
457
- labels: string[] | null;
458
- }>;
459
- export type MessageRuleInfoType = {
460
- chat: ChatRuleInfoType;
461
- sender: SenderRuleInfoType;
462
- message: OverrideProperties<Omit<Tables<'tbl_chat_messages'>, 'vcards' | 'updated_at' | 'unique_id' | 'token' | 'to' | 'sent_message_id' | 'raw_data' | 'delivery_info' | 'poll_results' | 'poll_info' | 'order_id' | 'mentioned_ids' | 'media_key' | 'location' | 'links' | 'is_status' | 'is_starred' | 'is_gif' | 'is_forwarded' | 'is_ephemeral' | 'is_deleted' | 'fts' | 'quoted_message_id' | 'invite_v4' | 'id' | 'has_reaction' | 'has_media' | 'duration' | 'broadcast' | 'broadcast_id' | 'device_type' | 'forwarding_score' | 'from' | 'from_me' | 'message_ticket_id' | 'prev_body' | 'flag_response_time' | 'flag_metadata'>, {
463
- media: MediaType | null;
464
- }>;
465
- };
466
- export type ReactionRuleInfoType = {
467
- chat: ChatRuleInfoType;
468
- sender: SenderRuleInfoType;
469
- message: MessageRuleInfoType['message'];
470
- reaction: Pick<Tables<'tbl_chat_reactions'>, 'reaction' | 'sender_id' | 'message_id' | 'chat_id' | 'reaction_id'>;
471
- };
472
- export type TicketRuleInfoType = {
473
- chat: ChatRuleInfoType;
474
- sender: SenderRuleInfoType;
475
- ticket: Merge<Pick<Tables<'tbl_chat_tickets'>, 'org_id' | 'status' | 'chat_id' | 'subject' | 'assignee' | 'due_date' | 'priority' | 'raised_by' | 'ticket_id' | 'created_at' | 'is_deleted'>, {
476
- labels: string[] | null;
477
- custom_properties: {
478
- [key: string]: string;
479
- } | null;
480
- }>;
481
- message: MessageRuleInfoType['message'];
482
- };
483
- export type FeatureFlagReturnType = Record<string, boolean>;
484
449
  export {};
package/index.ts CHANGED
@@ -1,3 +1,3 @@
1
- export * from './rules.types';
2
1
  export * from './supabase.types';
3
2
  export * from './types';
3
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@periskope/types",
3
- "version": "0.6.150",
3
+ "version": "0.6.151",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/supabase.types.ts CHANGED
@@ -2332,6 +2332,7 @@ export type Database = {
2332
2332
  owner_id: string | null
2333
2333
  path_tokens: string[] | null
2334
2334
  updated_at: string | null
2335
+ user_metadata: Json | null
2335
2336
  version: string | null
2336
2337
  }
2337
2338
  Insert: {
@@ -2345,6 +2346,7 @@ export type Database = {
2345
2346
  owner_id?: string | null
2346
2347
  path_tokens?: string[] | null
2347
2348
  updated_at?: string | null
2349
+ user_metadata?: Json | null
2348
2350
  version?: string | null
2349
2351
  }
2350
2352
  Update: {
@@ -2358,6 +2360,7 @@ export type Database = {
2358
2360
  owner_id?: string | null
2359
2361
  path_tokens?: string[] | null
2360
2362
  updated_at?: string | null
2363
+ user_metadata?: Json | null
2361
2364
  version?: string | null
2362
2365
  }
2363
2366
  Relationships: [
@@ -2379,6 +2382,7 @@ export type Database = {
2379
2382
  key: string
2380
2383
  owner_id: string | null
2381
2384
  upload_signature: string
2385
+ user_metadata: Json | null
2382
2386
  version: string
2383
2387
  }
2384
2388
  Insert: {
@@ -2389,6 +2393,7 @@ export type Database = {
2389
2393
  key: string
2390
2394
  owner_id?: string | null
2391
2395
  upload_signature: string
2396
+ user_metadata?: Json | null
2392
2397
  version: string
2393
2398
  }
2394
2399
  Update: {
@@ -2399,6 +2404,7 @@ export type Database = {
2399
2404
  key?: string
2400
2405
  owner_id?: string | null
2401
2406
  upload_signature?: string
2407
+ user_metadata?: Json | null
2402
2408
  version?: string
2403
2409
  }
2404
2410
  Relationships: [
@@ -2535,6 +2541,10 @@ export type Database = {
2535
2541
  updated_at: string
2536
2542
  }[]
2537
2543
  }
2544
+ operation: {
2545
+ Args: Record<PropertyKey, never>
2546
+ Returns: string
2547
+ }
2538
2548
  search: {
2539
2549
  Args: {
2540
2550
  prefix: string
@@ -2647,4 +2657,4 @@ export type Enums<
2647
2657
  ? PublicSchema["Enums"][PublicEnumNameOrOptions]
2648
2658
  : never
2649
2659
 
2650
-
2660
+