@periskope/types 0.6.110 → 0.6.112

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.
@@ -240,7 +240,6 @@ export type Database = {
240
240
  };
241
241
  tbl_chat_access: {
242
242
  Row: {
243
- active_phone: string | null;
244
243
  chat_id: string;
245
244
  email: string;
246
245
  has_access: boolean | null;
@@ -249,7 +248,6 @@ export type Database = {
249
248
  org_id: string;
250
249
  };
251
250
  Insert: {
252
- active_phone?: string | null;
253
251
  chat_id: string;
254
252
  email: string;
255
253
  has_access?: boolean | null;
@@ -258,7 +256,6 @@ export type Database = {
258
256
  org_id: string;
259
257
  };
260
258
  Update: {
261
- active_phone?: string | null;
262
259
  chat_id?: string;
263
260
  email?: string;
264
261
  has_access?: boolean | null;
@@ -692,7 +689,6 @@ export type Database = {
692
689
  closed_at: string | null;
693
690
  created_at: string;
694
691
  due_date: string | null;
695
- freshdesk_metadata: Json | null;
696
692
  hubspot_metadata: Json | null;
697
693
  is_deleted: boolean;
698
694
  label_ids: Json | null;
@@ -705,6 +701,7 @@ export type Database = {
705
701
  status: Database["public"]["Enums"]["enum_chat_tickets_status"] | null;
706
702
  subject: string;
707
703
  ticket_id: string;
704
+ ticket_metadata: Json | null;
708
705
  };
709
706
  Insert: {
710
707
  assigned_by?: string | null;
@@ -714,7 +711,6 @@ export type Database = {
714
711
  closed_at?: string | null;
715
712
  created_at?: string;
716
713
  due_date?: string | null;
717
- freshdesk_metadata?: Json | null;
718
714
  hubspot_metadata?: Json | null;
719
715
  is_deleted?: boolean;
720
716
  label_ids?: Json | null;
@@ -727,6 +723,7 @@ export type Database = {
727
723
  status?: Database["public"]["Enums"]["enum_chat_tickets_status"] | null;
728
724
  subject: string;
729
725
  ticket_id?: string;
726
+ ticket_metadata?: Json | null;
730
727
  };
731
728
  Update: {
732
729
  assigned_by?: string | null;
@@ -736,7 +733,6 @@ export type Database = {
736
733
  closed_at?: string | null;
737
734
  created_at?: string;
738
735
  due_date?: string | null;
739
- freshdesk_metadata?: Json | null;
740
736
  hubspot_metadata?: Json | null;
741
737
  is_deleted?: boolean;
742
738
  label_ids?: Json | null;
@@ -749,6 +745,7 @@ export type Database = {
749
745
  status?: Database["public"]["Enums"]["enum_chat_tickets_status"] | null;
750
746
  subject?: string;
751
747
  ticket_id?: string;
748
+ ticket_metadata?: Json | null;
752
749
  };
753
750
  Relationships: [
754
751
  {
@@ -1578,7 +1575,6 @@ export type Database = {
1578
1575
  is_enterprise: boolean | null;
1579
1576
  is_free_trial: boolean | null;
1580
1577
  is_hubspot_connected: boolean | null;
1581
- is_freshdesk_connected: boolean | null;
1582
1578
  org_id: string | null;
1583
1579
  org_image: string | null;
1584
1580
  org_metadata: Json | null;
@@ -1600,7 +1596,6 @@ export type Database = {
1600
1596
  is_enterprise?: never;
1601
1597
  is_free_trial?: never;
1602
1598
  is_hubspot_connected?: never;
1603
- is_freshdesk_connected?: never;
1604
1599
  org_id?: string | null;
1605
1600
  org_image?: string | null;
1606
1601
  org_metadata?: Json | null;
@@ -1622,7 +1617,6 @@ export type Database = {
1622
1617
  is_enterprise?: never;
1623
1618
  is_free_trial?: never;
1624
1619
  is_hubspot_connected?: never;
1625
- is_freshdesk_connected?: never;
1626
1620
  org_id?: string | null;
1627
1621
  org_image?: string | null;
1628
1622
  org_metadata?: Json | null;
@@ -1721,6 +1715,11 @@ export type Database = {
1721
1715
  contact_ids_input?: string[];
1722
1716
  with_name?: boolean;
1723
1717
  sync_phone_contacts?: boolean;
1718
+ search_input?: string;
1719
+ label_ids_input?: string[];
1720
+ is_internal_input?: boolean;
1721
+ page_number?: number;
1722
+ page_size?: number;
1724
1723
  };
1725
1724
  Returns: Json;
1726
1725
  };
@@ -1813,6 +1812,14 @@ export type Database = {
1813
1812
  Args: Record<PropertyKey, never>;
1814
1813
  Returns: Database["public"]["Enums"]["enum_member_role"];
1815
1814
  };
1815
+ update_custom_properties: {
1816
+ Args: {
1817
+ org_id_input: string;
1818
+ row_properties_map: Json;
1819
+ replace_properties?: boolean;
1820
+ };
1821
+ Returns: undefined;
1822
+ };
1816
1823
  update_labels: {
1817
1824
  Args: {
1818
1825
  org_id_input: string;
@@ -1827,8 +1834,8 @@ export type Database = {
1827
1834
  enum_broadcast_status: "inprogress" | "completed" | "stopped";
1828
1835
  enum_chat_colors: "#B4876E" | "#A5B337" | "#06CF9C" | "#25D366" | "#02A698" | "#7D9EF1" | "#007BFC" | "#5E47DE" | "#7F66FF" | "#9333EA" | "#FA6533" | "#C4532D" | "#DC2626" | "#FF2E74" | "#DB2777";
1829
1836
  enum_chat_tickets_status: "open" | "inprogress" | "closed" | "archived";
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";
1837
+ 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";
1838
+ enum_integration_type: "zapier" | "pabbly" | "api" | "webhook" | "hubspot" | "freshdesk" | "slack" | "jira" | "salesforce";
1832
1839
  enum_member_role: "admin" | "member";
1833
1840
  };
1834
1841
  CompositeTypes: {
package/dist/types.d.ts CHANGED
@@ -82,8 +82,6 @@ export type OrgType = OverrideProperties<Merge<Tables<'tbl_org'>, {
82
82
  is_enterprise: boolean;
83
83
  is_free_trial: boolean;
84
84
  is_hubspot_connected: boolean;
85
- is_freshdesk_connected: boolean;
86
- is_zohodesk_connected: boolean;
87
85
  access_scopes: AccessScopes;
88
86
  }>, {
89
87
  org_plan: OrgPlan<AllPlans | Enterprise>;
@@ -166,7 +164,6 @@ export type TicketType = OverrideProperties<Tables<'tbl_chat_tickets'>, {
166
164
  };
167
165
  object_data?: HubspotObjectDataType;
168
166
  } | null;
169
- freshdesk_metadata: Record<string, string>;
170
167
  close_ticket_metadata?: {
171
168
  closed_by: string;
172
169
  closed_at: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@periskope/types",
3
- "version": "0.6.110",
3
+ "version": "0.6.112",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/supabase.types.ts CHANGED
@@ -245,7 +245,6 @@ export type Database = {
245
245
  }
246
246
  tbl_chat_access: {
247
247
  Row: {
248
- active_phone: string | null
249
248
  chat_id: string
250
249
  email: string
251
250
  has_access: boolean | null
@@ -254,7 +253,6 @@ export type Database = {
254
253
  org_id: string
255
254
  }
256
255
  Insert: {
257
- active_phone?: string | null
258
256
  chat_id: string
259
257
  email: string
260
258
  has_access?: boolean | null
@@ -263,7 +261,6 @@ export type Database = {
263
261
  org_id: string
264
262
  }
265
263
  Update: {
266
- active_phone?: string | null
267
264
  chat_id?: string
268
265
  email?: string
269
266
  has_access?: boolean | null
@@ -697,7 +694,6 @@ export type Database = {
697
694
  closed_at: string | null
698
695
  created_at: string
699
696
  due_date: string | null
700
- freshdesk_metadata: Json | null
701
697
  hubspot_metadata: Json | null
702
698
  is_deleted: boolean
703
699
  label_ids: Json | null
@@ -710,6 +706,7 @@ export type Database = {
710
706
  status: Database["public"]["Enums"]["enum_chat_tickets_status"] | null
711
707
  subject: string
712
708
  ticket_id: string
709
+ ticket_metadata: Json | null
713
710
  }
714
711
  Insert: {
715
712
  assigned_by?: string | null
@@ -719,7 +716,6 @@ export type Database = {
719
716
  closed_at?: string | null
720
717
  created_at?: string
721
718
  due_date?: string | null
722
- freshdesk_metadata?: Json | null
723
719
  hubspot_metadata?: Json | null
724
720
  is_deleted?: boolean
725
721
  label_ids?: Json | null
@@ -734,6 +730,7 @@ export type Database = {
734
730
  | null
735
731
  subject: string
736
732
  ticket_id?: string
733
+ ticket_metadata?: Json | null
737
734
  }
738
735
  Update: {
739
736
  assigned_by?: string | null
@@ -743,7 +740,6 @@ export type Database = {
743
740
  closed_at?: string | null
744
741
  created_at?: string
745
742
  due_date?: string | null
746
- freshdesk_metadata?: Json | null
747
743
  hubspot_metadata?: Json | null
748
744
  is_deleted?: boolean
749
745
  label_ids?: Json | null
@@ -758,6 +754,7 @@ export type Database = {
758
754
  | null
759
755
  subject?: string
760
756
  ticket_id?: string
757
+ ticket_metadata?: Json | null
761
758
  }
762
759
  Relationships: [
763
760
  {
@@ -1584,74 +1581,71 @@ export type Database = {
1584
1581
  }
1585
1582
  view_org: {
1586
1583
  Row: {
1587
- access_scopes: Json | null;
1588
- created_at: string | null;
1589
- is_enterprise: boolean | null;
1590
- is_free_trial: boolean | null;
1591
- is_hubspot_connected: boolean | null;
1592
- is_freshdesk_connected: boolean | null;
1593
- org_id: string | null;
1594
- org_image: string | null;
1595
- org_metadata: Json | null;
1596
- org_name: string | null;
1597
- org_plan: Json | null;
1598
- pending_days: number | null;
1599
- phone_limit: string | null;
1600
- plan_id: string | null;
1601
- stripe_customer_details: Json | null;
1602
- stripe_customer_id: string | null;
1603
- stripe_subscription_details: Json | null;
1604
- subscription_status: string | null;
1605
- support_link: string | null;
1606
- user_limit: string | null;
1607
- };
1584
+ access_scopes: Json | null
1585
+ created_at: string | null
1586
+ is_enterprise: boolean | null
1587
+ is_free_trial: boolean | null
1588
+ is_hubspot_connected: boolean | null
1589
+ org_id: string | null
1590
+ org_image: string | null
1591
+ org_metadata: Json | null
1592
+ org_name: string | null
1593
+ org_plan: Json | null
1594
+ pending_days: number | null
1595
+ phone_limit: string | null
1596
+ plan_id: string | null
1597
+ stripe_customer_details: Json | null
1598
+ stripe_customer_id: string | null
1599
+ stripe_subscription_details: Json | null
1600
+ subscription_status: string | null
1601
+ support_link: string | null
1602
+ user_limit: string | null
1603
+ }
1608
1604
  Insert: {
1609
- access_scopes?: never;
1610
- created_at?: string | null;
1611
- is_enterprise?: never;
1612
- is_free_trial?: never;
1613
- is_hubspot_connected?: never;
1614
- is_freshdesk_connected?: never;
1615
- org_id?: string | null;
1616
- org_image?: string | null;
1617
- org_metadata?: Json | null;
1618
- org_name?: string | null;
1619
- org_plan?: Json | null;
1620
- pending_days?: never;
1621
- phone_limit?: never;
1622
- plan_id?: never;
1623
- stripe_customer_details?: Json | null;
1624
- stripe_customer_id?: string | null;
1625
- stripe_subscription_details?: Json | null;
1626
- subscription_status?: never;
1627
- support_link?: string | null;
1628
- user_limit?: never;
1629
- };
1605
+ access_scopes?: never
1606
+ created_at?: string | null
1607
+ is_enterprise?: never
1608
+ is_free_trial?: never
1609
+ is_hubspot_connected?: never
1610
+ org_id?: string | null
1611
+ org_image?: string | null
1612
+ org_metadata?: Json | null
1613
+ org_name?: string | null
1614
+ org_plan?: Json | null
1615
+ pending_days?: never
1616
+ phone_limit?: never
1617
+ plan_id?: never
1618
+ stripe_customer_details?: Json | null
1619
+ stripe_customer_id?: string | null
1620
+ stripe_subscription_details?: Json | null
1621
+ subscription_status?: never
1622
+ support_link?: string | null
1623
+ user_limit?: never
1624
+ }
1630
1625
  Update: {
1631
- access_scopes?: never;
1632
- created_at?: string | null;
1633
- is_enterprise?: never;
1634
- is_free_trial?: never;
1635
- is_hubspot_connected?: never;
1636
- is_freshdesk_connected?: never;
1637
- org_id?: string | null;
1638
- org_image?: string | null;
1639
- org_metadata?: Json | null;
1640
- org_name?: string | null;
1641
- org_plan?: Json | null;
1642
- pending_days?: never;
1643
- phone_limit?: never;
1644
- plan_id?: never;
1645
- stripe_customer_details?: Json | null;
1646
- stripe_customer_id?: string | null;
1647
- stripe_subscription_details?: Json | null;
1648
- subscription_status?: never;
1649
- support_link?: string | null;
1650
- user_limit?: never;
1651
- };
1652
- Relationships: [];
1653
- };
1654
- };
1626
+ access_scopes?: never
1627
+ created_at?: string | null
1628
+ is_enterprise?: never
1629
+ is_free_trial?: never
1630
+ is_hubspot_connected?: never
1631
+ org_id?: string | null
1632
+ org_image?: string | null
1633
+ org_metadata?: Json | null
1634
+ org_name?: string | null
1635
+ org_plan?: Json | null
1636
+ pending_days?: never
1637
+ phone_limit?: never
1638
+ plan_id?: never
1639
+ stripe_customer_details?: Json | null
1640
+ stripe_customer_id?: string | null
1641
+ stripe_subscription_details?: Json | null
1642
+ subscription_status?: never
1643
+ support_link?: string | null
1644
+ user_limit?: never
1645
+ }
1646
+ Relationships: []
1647
+ }
1648
+ }
1655
1649
  Functions: {
1656
1650
  create_partition: {
1657
1651
  Args: {
@@ -1732,6 +1726,11 @@ export type Database = {
1732
1726
  contact_ids_input?: string[]
1733
1727
  with_name?: boolean
1734
1728
  sync_phone_contacts?: boolean
1729
+ search_input?: string
1730
+ label_ids_input?: string[]
1731
+ is_internal_input?: boolean
1732
+ page_number?: number
1733
+ page_size?: number
1735
1734
  }
1736
1735
  Returns: Json
1737
1736
  }
@@ -1824,6 +1823,14 @@ export type Database = {
1824
1823
  Args: Record<PropertyKey, never>
1825
1824
  Returns: Database["public"]["Enums"]["enum_member_role"]
1826
1825
  }
1826
+ update_custom_properties: {
1827
+ Args: {
1828
+ org_id_input: string
1829
+ row_properties_map: Json
1830
+ replace_properties?: boolean
1831
+ }
1832
+ Returns: undefined
1833
+ }
1827
1834
  update_labels: {
1828
1835
  Args: {
1829
1836
  org_id_input: string
@@ -1874,7 +1881,6 @@ export type Database = {
1874
1881
  | "ticket.created"
1875
1882
  | "ticket.updated"
1876
1883
  | "ticket.deleted"
1877
- | "org.member.invited"
1878
1884
  enum_integration_type:
1879
1885
  | "zapier"
1880
1886
  | "pabbly"
@@ -1885,7 +1891,6 @@ export type Database = {
1885
1891
  | "slack"
1886
1892
  | "jira"
1887
1893
  | "salesforce"
1888
- | "zohodesk"
1889
1894
  enum_member_role: "admin" | "member"
1890
1895
  }
1891
1896
  CompositeTypes: {
@@ -2285,4 +2290,4 @@ export type Enums<
2285
2290
  ? PublicSchema["Enums"][PublicEnumNameOrOptions]
2286
2291
  : never
2287
2292
 
2288
-
2293
+
package/types.ts CHANGED
@@ -104,8 +104,6 @@ export type OrgType = OverrideProperties<
104
104
  is_enterprise: boolean;
105
105
  is_free_trial: boolean;
106
106
  is_hubspot_connected: boolean;
107
- is_freshdesk_connected: boolean;
108
- is_zohodesk_connected: boolean;
109
107
  access_scopes: AccessScopes;
110
108
  }
111
109
  >,
@@ -198,7 +196,6 @@ export type TicketType = OverrideProperties<
198
196
  };
199
197
  object_data?: HubspotObjectDataType;
200
198
  } | null;
201
- freshdesk_metadata: Record<string, string>;
202
199
  close_ticket_metadata?:
203
200
  | {
204
201
  closed_by: string;