@periskope/types 0.6.101 → 0.6.104

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.
@@ -349,6 +349,7 @@ export type Database = {
349
349
  forwarding_score: number | null;
350
350
  from: string | null;
351
351
  from_me: boolean | null;
352
+ fts: unknown | null;
352
353
  has_media: boolean | null;
353
354
  has_quoted_msg: boolean | null;
354
355
  has_reaction: boolean | null;
@@ -399,6 +400,7 @@ export type Database = {
399
400
  forwarding_score?: number | null;
400
401
  from?: string | null;
401
402
  from_me?: boolean | null;
403
+ fts?: unknown | null;
402
404
  has_media?: boolean | null;
403
405
  has_quoted_msg?: boolean | null;
404
406
  has_reaction?: boolean | null;
@@ -449,6 +451,7 @@ export type Database = {
449
451
  forwarding_score?: number | null;
450
452
  from?: string | null;
451
453
  from_me?: boolean | null;
454
+ fts?: unknown | null;
452
455
  has_media?: boolean | null;
453
456
  has_quoted_msg?: boolean | null;
454
457
  has_reaction?: boolean | null;
@@ -486,7 +489,7 @@ export type Database = {
486
489
  };
487
490
  Relationships: [
488
491
  {
489
- foreignKeyName: 'tbl_chat_messages_parent_fkey_tbl_org_phones';
492
+ foreignKeyName: 'tbl_chat_messages_fkey_tbl_org_phones';
490
493
  columns: ['org_phone', 'org_id'];
491
494
  isOneToOne: false;
492
495
  referencedRelation: 'tbl_org_phones';
@@ -494,312 +497,6 @@ export type Database = {
494
497
  }
495
498
  ];
496
499
  };
497
- tbl_chat_messages_2997dd64_89bf_48d3_9a22_b314fca017e5: {
498
- Row: {
499
- ack: string | null;
500
- author: string | null;
501
- body: string | null;
502
- broadcast: boolean | null;
503
- broadcast_id: string | null;
504
- chat_id: string | null;
505
- delivery_info: Json | null;
506
- device_type: string | null;
507
- duration: string | null;
508
- flag_metadata: Json | null;
509
- flag_response_time: number | null;
510
- forwarding_score: number | null;
511
- from: string | null;
512
- from_me: boolean | null;
513
- has_media: boolean | null;
514
- has_quoted_msg: boolean | null;
515
- has_reaction: boolean | null;
516
- id: Json | null;
517
- invite_v4: Json | null;
518
- is_deleted: boolean | null;
519
- is_ephemeral: boolean | null;
520
- is_forwarded: boolean | null;
521
- is_gif: boolean | null;
522
- is_starred: boolean | null;
523
- is_status: boolean | null;
524
- links: Json | null;
525
- location: Json | null;
526
- media: Json | null;
527
- media_key: string | null;
528
- mentioned_ids: string[] | null;
529
- message_id: string;
530
- message_ticket_id: string | null;
531
- message_type: string | null;
532
- order_id: string | null;
533
- org_id: string;
534
- org_phone: string;
535
- performed_by: string | null;
536
- prev_body: string | null;
537
- quoted_message_id: string | null;
538
- raw_data: Json | null;
539
- sender_phone: string | null;
540
- sent_message_id: string | null;
541
- timestamp: string | null;
542
- to: string | null;
543
- token: string | null;
544
- unique_id: string | null;
545
- updated_at: string | null;
546
- vcards: string[] | null;
547
- };
548
- Insert: {
549
- ack?: string | null;
550
- author?: string | null;
551
- body?: string | null;
552
- broadcast?: boolean | null;
553
- broadcast_id?: string | null;
554
- chat_id?: string | null;
555
- delivery_info?: Json | null;
556
- device_type?: string | null;
557
- duration?: string | null;
558
- flag_metadata?: Json | null;
559
- flag_response_time?: number | null;
560
- forwarding_score?: number | null;
561
- from?: string | null;
562
- from_me?: boolean | null;
563
- has_media?: boolean | null;
564
- has_quoted_msg?: boolean | null;
565
- has_reaction?: boolean | null;
566
- id?: Json | null;
567
- invite_v4?: Json | null;
568
- is_deleted?: boolean | null;
569
- is_ephemeral?: boolean | null;
570
- is_forwarded?: boolean | null;
571
- is_gif?: boolean | null;
572
- is_starred?: boolean | null;
573
- is_status?: boolean | null;
574
- links?: Json | null;
575
- location?: Json | null;
576
- media?: Json | null;
577
- media_key?: string | null;
578
- mentioned_ids?: string[] | null;
579
- message_id: string;
580
- message_ticket_id?: string | null;
581
- message_type?: string | null;
582
- order_id?: string | null;
583
- org_id: string;
584
- org_phone: string;
585
- performed_by?: string | null;
586
- prev_body?: string | null;
587
- quoted_message_id?: string | null;
588
- raw_data?: Json | null;
589
- sender_phone?: string | null;
590
- sent_message_id?: string | null;
591
- timestamp?: string | null;
592
- to?: string | null;
593
- token?: string | null;
594
- unique_id?: string | null;
595
- updated_at?: string | null;
596
- vcards?: string[] | null;
597
- };
598
- Update: {
599
- ack?: string | null;
600
- author?: string | null;
601
- body?: string | null;
602
- broadcast?: boolean | null;
603
- broadcast_id?: string | null;
604
- chat_id?: string | null;
605
- delivery_info?: Json | null;
606
- device_type?: string | null;
607
- duration?: string | null;
608
- flag_metadata?: Json | null;
609
- flag_response_time?: number | null;
610
- forwarding_score?: number | null;
611
- from?: string | null;
612
- from_me?: boolean | null;
613
- has_media?: boolean | null;
614
- has_quoted_msg?: boolean | null;
615
- has_reaction?: boolean | null;
616
- id?: Json | null;
617
- invite_v4?: Json | null;
618
- is_deleted?: boolean | null;
619
- is_ephemeral?: boolean | null;
620
- is_forwarded?: boolean | null;
621
- is_gif?: boolean | null;
622
- is_starred?: boolean | null;
623
- is_status?: boolean | null;
624
- links?: Json | null;
625
- location?: Json | null;
626
- media?: Json | null;
627
- media_key?: string | null;
628
- mentioned_ids?: string[] | null;
629
- message_id?: string;
630
- message_ticket_id?: string | null;
631
- message_type?: string | null;
632
- order_id?: string | null;
633
- org_id?: string;
634
- org_phone?: string;
635
- performed_by?: string | null;
636
- prev_body?: string | null;
637
- quoted_message_id?: string | null;
638
- raw_data?: Json | null;
639
- sender_phone?: string | null;
640
- sent_message_id?: string | null;
641
- timestamp?: string | null;
642
- to?: string | null;
643
- token?: string | null;
644
- unique_id?: string | null;
645
- updated_at?: string | null;
646
- vcards?: string[] | null;
647
- };
648
- Relationships: [];
649
- };
650
- tbl_chat_messages_default: {
651
- Row: {
652
- ack: string | null;
653
- author: string | null;
654
- body: string | null;
655
- broadcast: boolean | null;
656
- broadcast_id: string | null;
657
- chat_id: string | null;
658
- delivery_info: Json | null;
659
- device_type: string | null;
660
- duration: string | null;
661
- flag_metadata: Json | null;
662
- flag_response_time: number | null;
663
- forwarding_score: number | null;
664
- from: string | null;
665
- from_me: boolean | null;
666
- has_media: boolean | null;
667
- has_quoted_msg: boolean | null;
668
- has_reaction: boolean | null;
669
- id: Json | null;
670
- invite_v4: Json | null;
671
- is_deleted: boolean | null;
672
- is_ephemeral: boolean | null;
673
- is_forwarded: boolean | null;
674
- is_gif: boolean | null;
675
- is_starred: boolean | null;
676
- is_status: boolean | null;
677
- links: Json | null;
678
- location: Json | null;
679
- media: Json | null;
680
- media_key: string | null;
681
- mentioned_ids: string[] | null;
682
- message_id: string;
683
- message_ticket_id: string | null;
684
- message_type: string | null;
685
- order_id: string | null;
686
- org_id: string;
687
- org_phone: string;
688
- performed_by: string | null;
689
- prev_body: string | null;
690
- quoted_message_id: string | null;
691
- raw_data: Json | null;
692
- sender_phone: string | null;
693
- sent_message_id: string | null;
694
- timestamp: string | null;
695
- to: string | null;
696
- token: string | null;
697
- unique_id: string | null;
698
- updated_at: string | null;
699
- vcards: string[] | null;
700
- };
701
- Insert: {
702
- ack?: string | null;
703
- author?: string | null;
704
- body?: string | null;
705
- broadcast?: boolean | null;
706
- broadcast_id?: string | null;
707
- chat_id?: string | null;
708
- delivery_info?: Json | null;
709
- device_type?: string | null;
710
- duration?: string | null;
711
- flag_metadata?: Json | null;
712
- flag_response_time?: number | null;
713
- forwarding_score?: number | null;
714
- from?: string | null;
715
- from_me?: boolean | null;
716
- has_media?: boolean | null;
717
- has_quoted_msg?: boolean | null;
718
- has_reaction?: boolean | null;
719
- id?: Json | null;
720
- invite_v4?: Json | null;
721
- is_deleted?: boolean | null;
722
- is_ephemeral?: boolean | null;
723
- is_forwarded?: boolean | null;
724
- is_gif?: boolean | null;
725
- is_starred?: boolean | null;
726
- is_status?: boolean | null;
727
- links?: Json | null;
728
- location?: Json | null;
729
- media?: Json | null;
730
- media_key?: string | null;
731
- mentioned_ids?: string[] | null;
732
- message_id: string;
733
- message_ticket_id?: string | null;
734
- message_type?: string | null;
735
- order_id?: string | null;
736
- org_id: string;
737
- org_phone: string;
738
- performed_by?: string | null;
739
- prev_body?: string | null;
740
- quoted_message_id?: string | null;
741
- raw_data?: Json | null;
742
- sender_phone?: string | null;
743
- sent_message_id?: string | null;
744
- timestamp?: string | null;
745
- to?: string | null;
746
- token?: string | null;
747
- unique_id?: string | null;
748
- updated_at?: string | null;
749
- vcards?: string[] | null;
750
- };
751
- Update: {
752
- ack?: string | null;
753
- author?: string | null;
754
- body?: string | null;
755
- broadcast?: boolean | null;
756
- broadcast_id?: string | null;
757
- chat_id?: string | null;
758
- delivery_info?: Json | null;
759
- device_type?: string | null;
760
- duration?: string | null;
761
- flag_metadata?: Json | null;
762
- flag_response_time?: number | null;
763
- forwarding_score?: number | null;
764
- from?: string | null;
765
- from_me?: boolean | null;
766
- has_media?: boolean | null;
767
- has_quoted_msg?: boolean | null;
768
- has_reaction?: boolean | null;
769
- id?: Json | null;
770
- invite_v4?: Json | null;
771
- is_deleted?: boolean | null;
772
- is_ephemeral?: boolean | null;
773
- is_forwarded?: boolean | null;
774
- is_gif?: boolean | null;
775
- is_starred?: boolean | null;
776
- is_status?: boolean | null;
777
- links?: Json | null;
778
- location?: Json | null;
779
- media?: Json | null;
780
- media_key?: string | null;
781
- mentioned_ids?: string[] | null;
782
- message_id?: string;
783
- message_ticket_id?: string | null;
784
- message_type?: string | null;
785
- order_id?: string | null;
786
- org_id?: string;
787
- org_phone?: string;
788
- performed_by?: string | null;
789
- prev_body?: string | null;
790
- quoted_message_id?: string | null;
791
- raw_data?: Json | null;
792
- sender_phone?: string | null;
793
- sent_message_id?: string | null;
794
- timestamp?: string | null;
795
- to?: string | null;
796
- token?: string | null;
797
- unique_id?: string | null;
798
- updated_at?: string | null;
799
- vcards?: string[] | null;
800
- };
801
- Relationships: [];
802
- };
803
500
  tbl_chat_notifications: {
804
501
  Row: {
805
502
  author: string | null;
@@ -1166,6 +863,7 @@ export type Database = {
1166
863
  name: string | null;
1167
864
  number: string | null;
1168
865
  org_id: string;
866
+ periskope_name: string | null;
1169
867
  pushname: string | null;
1170
868
  short_name: string | null;
1171
869
  updated_at: string | null;
@@ -1193,6 +891,7 @@ export type Database = {
1193
891
  name?: string | null;
1194
892
  number?: string | null;
1195
893
  org_id: string;
894
+ periskope_name?: string | null;
1196
895
  pushname?: string | null;
1197
896
  short_name?: string | null;
1198
897
  updated_at?: string | null;
@@ -1220,6 +919,7 @@ export type Database = {
1220
919
  name?: string | null;
1221
920
  number?: string | null;
1222
921
  org_id?: string;
922
+ periskope_name?: string | null;
1223
923
  pushname?: string | null;
1224
924
  short_name?: string | null;
1225
925
  updated_at?: string | null;
@@ -1701,21 +1401,21 @@ export type Database = {
1701
1401
  command: string | null;
1702
1402
  created_at: string;
1703
1403
  message_payload: Json | null;
1704
- org_id: string | null;
1404
+ org_id: string;
1705
1405
  reply_id: string;
1706
1406
  };
1707
1407
  Insert: {
1708
1408
  command?: string | null;
1709
1409
  created_at?: string;
1710
1410
  message_payload?: Json | null;
1711
- org_id?: string | null;
1411
+ org_id: string;
1712
1412
  reply_id?: string;
1713
1413
  };
1714
1414
  Update: {
1715
1415
  command?: string | null;
1716
1416
  created_at?: string;
1717
1417
  message_payload?: Json | null;
1718
- org_id?: string | null;
1418
+ org_id?: string;
1719
1419
  reply_id?: string;
1720
1420
  };
1721
1421
  Relationships: [
@@ -1831,11 +1531,11 @@ export type Database = {
1831
1531
  };
1832
1532
  view_chats: {
1833
1533
  Row: {
1834
- active_phone: string | null;
1835
1534
  chat_access: Json | null;
1836
1535
  chat_id: string | null;
1837
1536
  chat_image: string | null;
1838
1537
  chat_name: string | null;
1538
+ chat_org_phones: string[] | null;
1839
1539
  chat_type: string | null;
1840
1540
  created_at: string | null;
1841
1541
  custom_properties: Json | null;
@@ -2069,6 +1769,17 @@ export type Database = {
2069
1769
  };
2070
1770
  Returns: Json;
2071
1771
  };
1772
+ get_universal_search_result: {
1773
+ Args: {
1774
+ search_category_input: string;
1775
+ search_query_input: string;
1776
+ org_id_input: string;
1777
+ };
1778
+ Returns: {
1779
+ category: string;
1780
+ result: Json;
1781
+ }[];
1782
+ };
2072
1783
  image_path: {
2073
1784
  Args: {
2074
1785
  path_input?: string;
package/dist/types.d.ts CHANGED
@@ -62,8 +62,6 @@ export type OrgMetadata = {
62
62
  ticket_prefix: string;
63
63
  referralSource?: string;
64
64
  surveyData?: MicrosurveyData;
65
- onboarding: Record<string, boolean>;
66
- onboarding_completed_at: Date | null;
67
65
  preferences?: OrgPreferences;
68
66
  hubspot_pipelines?: {
69
67
  id: string;
@@ -122,6 +120,10 @@ export type ChatType = Merge<Tables<'view_chats'>, {
122
120
  } | null;
123
121
  info_admins_only: boolean;
124
122
  messages_admins_only: boolean;
123
+ unread_count?: {
124
+ [key: string]: number;
125
+ };
126
+ active_phone: string | null;
125
127
  }>;
126
128
  export type MediaType = {
127
129
  path: string;
@@ -170,7 +172,7 @@ export type TicketType = OverrideProperties<Tables<'tbl_chat_tickets'>, {
170
172
  closed_at: string;
171
173
  closed_message?: string | null;
172
174
  send_reply_message_id?: string | null;
173
- } | null;
175
+ } | any;
174
176
  }>;
175
177
  export type ContactType = Merge<Tables<'tbl_contacts'>, {
176
178
  chats: ChatType[] | null;
@@ -301,6 +303,7 @@ export type TicketInfoType = {
301
303
  };
302
304
  export declare enum IntegrationLogType {
303
305
  NEW_CHAT = "chat.created",
306
+ NEW_CHAT_NOTIFICATION = "chat.notification.created",
304
307
  NEW_MESSAGE = "message.created",
305
308
  MESSAGE_UPDATED = "message.updated",
306
309
  MESSAGE_DELETED = "message.deleted",
package/dist/types.js CHANGED
@@ -57,6 +57,7 @@ exports.SUPPORTED_TYPES = [
57
57
  var IntegrationLogType;
58
58
  (function (IntegrationLogType) {
59
59
  IntegrationLogType["NEW_CHAT"] = "chat.created";
60
+ IntegrationLogType["NEW_CHAT_NOTIFICATION"] = "chat.notification.created";
60
61
  IntegrationLogType["NEW_MESSAGE"] = "message.created";
61
62
  IntegrationLogType["MESSAGE_UPDATED"] = "message.updated";
62
63
  IntegrationLogType["MESSAGE_DELETED"] = "message.deleted";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@periskope/types",
3
- "version": "0.6.101",
3
+ "version": "0.6.104",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",