@periskope/types 0.6.108 → 0.6.110

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.
@@ -318,18 +318,18 @@ export type Database = {
318
318
  };
319
319
  Relationships: [
320
320
  {
321
- foreignKeyName: 'tbl_chat_logs_org_id_fkey';
322
- columns: ['org_id'];
321
+ foreignKeyName: "tbl_chat_logs_org_id_fkey";
322
+ columns: ["org_id"];
323
323
  isOneToOne: false;
324
- referencedRelation: 'tbl_org';
325
- referencedColumns: ['org_id'];
324
+ referencedRelation: "tbl_org";
325
+ referencedColumns: ["org_id"];
326
326
  },
327
327
  {
328
- foreignKeyName: 'tbl_chat_logs_org_id_fkey';
329
- columns: ['org_id'];
328
+ foreignKeyName: "tbl_chat_logs_org_id_fkey";
329
+ columns: ["org_id"];
330
330
  isOneToOne: false;
331
- referencedRelation: 'view_org';
332
- referencedColumns: ['org_id'];
331
+ referencedRelation: "view_org";
332
+ referencedColumns: ["org_id"];
333
333
  }
334
334
  ];
335
335
  };
@@ -346,6 +346,7 @@ export type Database = {
346
346
  duration: string | null;
347
347
  flag_metadata: Json | null;
348
348
  flag_response_time: number | null;
349
+ flag_status: boolean | null;
349
350
  forwarding_score: number | null;
350
351
  from: string | null;
351
352
  from_me: boolean | null;
@@ -397,6 +398,7 @@ export type Database = {
397
398
  duration?: string | null;
398
399
  flag_metadata?: Json | null;
399
400
  flag_response_time?: number | null;
401
+ flag_status?: boolean | null;
400
402
  forwarding_score?: number | null;
401
403
  from?: string | null;
402
404
  from_me?: boolean | null;
@@ -448,6 +450,7 @@ export type Database = {
448
450
  duration?: string | null;
449
451
  flag_metadata?: Json | null;
450
452
  flag_response_time?: number | null;
453
+ flag_status?: boolean | null;
451
454
  forwarding_score?: number | null;
452
455
  from?: string | null;
453
456
  from_me?: boolean | null;
@@ -489,11 +492,11 @@ export type Database = {
489
492
  };
490
493
  Relationships: [
491
494
  {
492
- foreignKeyName: 'tbl_chat_messages_fkey_tbl_org_phones';
493
- columns: ['org_phone', 'org_id'];
495
+ foreignKeyName: "tbl_chat_messages_fkey_tbl_org_phones";
496
+ columns: ["org_phone", "org_id"];
494
497
  isOneToOne: false;
495
- referencedRelation: 'tbl_org_phones';
496
- referencedColumns: ['org_phone', 'org_id'];
498
+ referencedRelation: "tbl_org_phones";
499
+ referencedColumns: ["org_phone", "org_id"];
497
500
  }
498
501
  ];
499
502
  };
@@ -587,28 +590,34 @@ export type Database = {
587
590
  };
588
591
  tbl_chat_properties: {
589
592
  Row: {
593
+ assigned_to: string | null;
590
594
  chat_id: string;
595
+ chat_org_phones: string[];
591
596
  custom_properties: Json | null;
592
- flag_count: number;
593
597
  hubspot_metadata: Json | null;
594
598
  label_ids: Json | null;
595
599
  org_id: string;
600
+ updated_at: string | null;
596
601
  };
597
602
  Insert: {
603
+ assigned_to?: string | null;
598
604
  chat_id: string;
605
+ chat_org_phones?: string[];
599
606
  custom_properties?: Json | null;
600
- flag_count?: number;
601
607
  hubspot_metadata?: Json | null;
602
608
  label_ids?: Json | null;
603
609
  org_id: string;
610
+ updated_at?: string | null;
604
611
  };
605
612
  Update: {
613
+ assigned_to?: string | null;
606
614
  chat_id?: string;
615
+ chat_org_phones?: string[];
607
616
  custom_properties?: Json | null;
608
- flag_count?: number;
609
617
  hubspot_metadata?: Json | null;
610
618
  label_ids?: Json | null;
611
619
  org_id?: string;
620
+ updated_at?: string | null;
612
621
  };
613
622
  Relationships: [];
614
623
  };
@@ -766,6 +775,7 @@ export type Database = {
766
775
  chat_name: string | null;
767
776
  chat_type: string | null;
768
777
  created_at: string;
778
+ flag_count: number;
769
779
  group_metadata: Json | null;
770
780
  id: Json | null;
771
781
  invite_link: string | null;
@@ -790,6 +800,7 @@ export type Database = {
790
800
  chat_name?: string | null;
791
801
  chat_type?: string | null;
792
802
  created_at?: string;
803
+ flag_count?: number;
793
804
  group_metadata?: Json | null;
794
805
  id?: Json | null;
795
806
  invite_link?: string | null;
@@ -814,6 +825,7 @@ export type Database = {
814
825
  chat_name?: string | null;
815
826
  chat_type?: string | null;
816
827
  created_at?: string;
828
+ flag_count?: number;
817
829
  group_metadata?: Json | null;
818
830
  id?: Json | null;
819
831
  invite_link?: string | null;
@@ -844,7 +856,7 @@ export type Database = {
844
856
  tbl_contacts: {
845
857
  Row: {
846
858
  business_profile: Json | null;
847
- contact_color: Database['public']['Enums']['enum_chat_colors'] | null;
859
+ contact_color: Database["public"]["Enums"]["enum_chat_colors"] | null;
848
860
  contact_id: string;
849
861
  contact_image: string | null;
850
862
  contact_name: string | null;
@@ -872,7 +884,7 @@ export type Database = {
872
884
  };
873
885
  Insert: {
874
886
  business_profile?: Json | null;
875
- contact_color?: Database['public']['Enums']['enum_chat_colors'] | null;
887
+ contact_color?: Database["public"]["Enums"]["enum_chat_colors"] | null;
876
888
  contact_id: string;
877
889
  contact_image?: string | null;
878
890
  contact_name?: string | null;
@@ -900,7 +912,7 @@ export type Database = {
900
912
  };
901
913
  Update: {
902
914
  business_profile?: Json | null;
903
- contact_color?: Database['public']['Enums']['enum_chat_colors'] | null;
915
+ contact_color?: Database["public"]["Enums"]["enum_chat_colors"] | null;
904
916
  contact_id?: string;
905
917
  contact_image?: string | null;
906
918
  contact_name?: string | null;
@@ -1514,23 +1526,24 @@ export type Database = {
1514
1526
  };
1515
1527
  Relationships: [
1516
1528
  {
1517
- foreignKeyName: 'tbl_chat_logs_org_id_fkey';
1518
- columns: ['org_id'];
1529
+ foreignKeyName: "tbl_chat_logs_org_id_fkey";
1530
+ columns: ["org_id"];
1519
1531
  isOneToOne: false;
1520
- referencedRelation: 'tbl_org';
1521
- referencedColumns: ['org_id'];
1532
+ referencedRelation: "tbl_org";
1533
+ referencedColumns: ["org_id"];
1522
1534
  },
1523
1535
  {
1524
- foreignKeyName: 'tbl_chat_logs_org_id_fkey';
1525
- columns: ['org_id'];
1536
+ foreignKeyName: "tbl_chat_logs_org_id_fkey";
1537
+ columns: ["org_id"];
1526
1538
  isOneToOne: false;
1527
- referencedRelation: 'view_org';
1528
- referencedColumns: ['org_id'];
1539
+ referencedRelation: "view_org";
1540
+ referencedColumns: ["org_id"];
1529
1541
  }
1530
1542
  ];
1531
1543
  };
1532
1544
  view_chats: {
1533
1545
  Row: {
1546
+ assigned_to: string | null;
1534
1547
  chat_access: Json | null;
1535
1548
  chat_id: string | null;
1536
1549
  chat_image: string | null;
@@ -1690,6 +1703,7 @@ export type Database = {
1690
1703
  org_id_input: string;
1691
1704
  chat_id_input?: string[];
1692
1705
  with_members?: boolean;
1706
+ last_updated_at?: string;
1693
1707
  };
1694
1708
  Returns: Json;
1695
1709
  };
@@ -1813,8 +1827,8 @@ export type Database = {
1813
1827
  enum_broadcast_status: "inprogress" | "completed" | "stopped";
1814
1828
  enum_chat_colors: "#B4876E" | "#A5B337" | "#06CF9C" | "#25D366" | "#02A698" | "#7D9EF1" | "#007BFC" | "#5E47DE" | "#7F66FF" | "#9333EA" | "#FA6533" | "#C4532D" | "#DC2626" | "#FF2E74" | "#DB2777";
1815
1829
  enum_chat_tickets_status: "open" | "inprogress" | "closed" | "archived";
1816
- enum_integration_name: 'org.created' | 'org.updated' | 'org.member.created' | 'org.member.updated' | 'org.phone.created' | 'org.phone.connected' | 'org.phone.disconnected' | 'org.subscription.trial_will_end' | 'chat.created' | 'chat.updated' | 'chat.notification.created' | 'message.created' | 'message.updated' | 'message.deleted' | 'message.ack.updated' | 'reaction.created' | 'reaction.updated' | 'ticket.created' | 'ticket.updated' | 'ticket.deleted';
1817
- enum_integration_type: "zapier" | "pabbly" | "api" | "webhook" | "hubspot" | "freshdesk" | "slack" | "jira" | "salesforce";
1830
+ enum_integration_name: "org.created" | "org.updated" | "org.member.created" | "org.member.updated" | "org.phone.created" | "org.phone.connected" | "org.phone.disconnected" | "org.subscription.trial_will_end" | "chat.created" | "chat.updated" | "chat.notification.created" | "message.created" | "message.updated" | "message.deleted" | "message.ack.updated" | "reaction.created" | "reaction.updated" | "ticket.created" | "ticket.updated" | "ticket.deleted" | "org.member.invited";
1831
+ enum_integration_type: "zapier" | "pabbly" | "api" | "webhook" | "hubspot" | "freshdesk" | "slack" | "jira" | "salesforce" | "zohodesk";
1818
1832
  enum_member_role: "admin" | "member";
1819
1833
  };
1820
1834
  CompositeTypes: {
@@ -2098,6 +2112,10 @@ export type Database = {
2098
2112
  updated_at: string;
2099
2113
  }[];
2100
2114
  };
2115
+ operation: {
2116
+ Args: Record<PropertyKey, never>;
2117
+ Returns: string;
2118
+ };
2101
2119
  search: {
2102
2120
  Args: {
2103
2121
  prefix: string;
package/dist/types.d.ts CHANGED
@@ -1,12 +1,6 @@
1
- import { Chat, Location } from '@periskope/whatsapp-web.js';
2
1
  import type { default as _Stripe } from 'stripe';
3
2
  import { Merge, OverrideProperties } from 'type-fest';
4
3
  import { Tables } from './supabase.types';
5
- export type WhatsappChat = Chat & {
6
- groupMetadata?: any;
7
- pinned?: boolean;
8
- invite_link?: string;
9
- };
10
4
  export declare enum AllPlans {
11
5
  FREE_TRIAL = "free-trial",
12
6
  ENTERPRISE = "enterprise",
@@ -89,6 +83,7 @@ export type OrgType = OverrideProperties<Merge<Tables<'tbl_org'>, {
89
83
  is_free_trial: boolean;
90
84
  is_hubspot_connected: boolean;
91
85
  is_freshdesk_connected: boolean;
86
+ is_zohodesk_connected: boolean;
92
87
  access_scopes: AccessScopes;
93
88
  }>, {
94
89
  org_plan: OrgPlan<AllPlans | Enterprise>;
@@ -125,6 +120,9 @@ export type ChatType = Merge<Tables<'view_chats'>, {
125
120
  [key: string]: number;
126
121
  };
127
122
  active_phone: string | null;
123
+ flag_count_map?: {
124
+ [key: string]: number;
125
+ };
128
126
  }>;
129
127
  export type MediaType = {
130
128
  path: string;
@@ -218,6 +216,7 @@ export type AttachmentFileType = {
218
216
  result: string;
219
217
  file: File | null;
220
218
  type: MessageAttachmentFileTypes;
219
+ localFileURL?: string;
221
220
  };
222
221
  export type AttachmentLinkType = {
223
222
  link: {
package/dist/types.js CHANGED
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.IntegrationLogType = exports.SUPPORTED_TYPES = exports.enumChatColors = exports.labelColors = exports.AllPlans = void 0;
4
+ /* ----------------------------- TYPE SHORTHANDS ---------------------------- */
4
5
  /* ------------------------------ PERISKOPE TYPES ------------------------------ */
5
6
  var AllPlans;
6
7
  (function (AllPlans) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@periskope/types",
3
- "version": "0.6.108",
3
+ "version": "0.6.110",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",