@periskope/types 0.6.246 → 0.6.248

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.
@@ -260,14 +260,14 @@ export type Database = {
260
260
  };
261
261
  Relationships: [
262
262
  {
263
- foreignKeyName: "public_tbl_automation_rules_org_id_fkey";
263
+ foreignKeyName: "tbl_automation_rules_org_id_fkey";
264
264
  columns: ["org_id"];
265
265
  isOneToOne: false;
266
266
  referencedRelation: "tbl_org";
267
267
  referencedColumns: ["org_id"];
268
268
  },
269
269
  {
270
- foreignKeyName: "public_tbl_automation_rules_org_id_fkey";
270
+ foreignKeyName: "tbl_automation_rules_org_id_fkey";
271
271
  columns: ["org_id"];
272
272
  isOneToOne: false;
273
273
  referencedRelation: "view_org";
@@ -562,7 +562,7 @@ export type Database = {
562
562
  raw_data: Json | null;
563
563
  sender_phone: string | null;
564
564
  sent_message_id: string | null;
565
- timestamp: string;
565
+ timestamp: string | null;
566
566
  to: string | null;
567
567
  token: string | null;
568
568
  unique_id: string | null;
@@ -616,7 +616,7 @@ export type Database = {
616
616
  raw_data?: Json | null;
617
617
  sender_phone?: string | null;
618
618
  sent_message_id?: string | null;
619
- timestamp: string;
619
+ timestamp?: string | null;
620
620
  to?: string | null;
621
621
  token?: string | null;
622
622
  unique_id?: string | null;
@@ -670,7 +670,7 @@ export type Database = {
670
670
  raw_data?: Json | null;
671
671
  sender_phone?: string | null;
672
672
  sent_message_id?: string | null;
673
- timestamp?: string;
673
+ timestamp?: string | null;
674
674
  to?: string | null;
675
675
  token?: string | null;
676
676
  unique_id?: string | null;
@@ -834,7 +834,6 @@ export type Database = {
834
834
  label_ids: Json | null;
835
835
  latest_message_timestamp: string | null;
836
836
  org_id: string;
837
- unread_count: Json | null;
838
837
  updated_at: string | null;
839
838
  zohodesk_metadata: Json | null;
840
839
  };
@@ -854,7 +853,6 @@ export type Database = {
854
853
  label_ids?: Json | null;
855
854
  latest_message_timestamp?: string | null;
856
855
  org_id: string;
857
- unread_count?: Json | null;
858
856
  updated_at?: string | null;
859
857
  zohodesk_metadata?: Json | null;
860
858
  };
@@ -874,7 +872,6 @@ export type Database = {
874
872
  label_ids?: Json | null;
875
873
  latest_message_timestamp?: string | null;
876
874
  org_id?: string;
877
- unread_count?: Json | null;
878
875
  updated_at?: string | null;
879
876
  zohodesk_metadata?: Json | null;
880
877
  };
@@ -1583,7 +1580,7 @@ export type Database = {
1583
1580
  invited_at: string | null;
1584
1581
  invited_by: string | null;
1585
1582
  is_active: boolean;
1586
- is_online: boolean;
1583
+ is_online: boolean | null;
1587
1584
  is_owner: boolean | null;
1588
1585
  label_ids: string[] | null;
1589
1586
  member_color: Database["public"]["Enums"]["enum_chat_colors"];
@@ -1602,7 +1599,7 @@ export type Database = {
1602
1599
  invited_at?: string | null;
1603
1600
  invited_by?: string | null;
1604
1601
  is_active?: boolean;
1605
- is_online?: boolean;
1602
+ is_online?: boolean | null;
1606
1603
  is_owner?: boolean | null;
1607
1604
  label_ids?: string[] | null;
1608
1605
  member_color?: Database["public"]["Enums"]["enum_chat_colors"];
@@ -1621,7 +1618,7 @@ export type Database = {
1621
1618
  invited_at?: string | null;
1622
1619
  invited_by?: string | null;
1623
1620
  is_active?: boolean;
1624
- is_online?: boolean;
1621
+ is_online?: boolean | null;
1625
1622
  is_owner?: boolean | null;
1626
1623
  label_ids?: string[] | null;
1627
1624
  member_color?: Database["public"]["Enums"]["enum_chat_colors"];
@@ -1658,7 +1655,6 @@ export type Database = {
1658
1655
  is_browser_open: boolean;
1659
1656
  is_ready: boolean | null;
1660
1657
  label_ids: Json | null;
1661
- legacy_version: boolean | null;
1662
1658
  library: string | null;
1663
1659
  org_id: string;
1664
1660
  org_phone: string | null;
@@ -1670,7 +1666,7 @@ export type Database = {
1670
1666
  queue_status: Json | null;
1671
1667
  server_image: string | null;
1672
1668
  server_ip: string | null;
1673
- soft_restart: boolean;
1669
+ server_zone: string | null;
1674
1670
  updated_at: string | null;
1675
1671
  wa_state: string | null;
1676
1672
  wa_version: string | null;
@@ -1681,7 +1677,6 @@ export type Database = {
1681
1677
  is_browser_open?: boolean;
1682
1678
  is_ready?: boolean | null;
1683
1679
  label_ids?: Json | null;
1684
- legacy_version?: boolean | null;
1685
1680
  library?: string | null;
1686
1681
  org_id: string;
1687
1682
  org_phone?: string | null;
@@ -1693,7 +1688,7 @@ export type Database = {
1693
1688
  queue_status?: Json | null;
1694
1689
  server_image?: string | null;
1695
1690
  server_ip?: string | null;
1696
- soft_restart?: boolean;
1691
+ server_zone?: string | null;
1697
1692
  updated_at?: string | null;
1698
1693
  wa_state?: string | null;
1699
1694
  wa_version?: string | null;
@@ -1704,7 +1699,6 @@ export type Database = {
1704
1699
  is_browser_open?: boolean;
1705
1700
  is_ready?: boolean | null;
1706
1701
  label_ids?: Json | null;
1707
- legacy_version?: boolean | null;
1708
1702
  library?: string | null;
1709
1703
  org_id?: string;
1710
1704
  org_phone?: string | null;
@@ -1716,7 +1710,7 @@ export type Database = {
1716
1710
  queue_status?: Json | null;
1717
1711
  server_image?: string | null;
1718
1712
  server_ip?: string | null;
1719
- soft_restart?: boolean;
1713
+ server_zone?: string | null;
1720
1714
  updated_at?: string | null;
1721
1715
  wa_state?: string | null;
1722
1716
  wa_version?: string | null;
@@ -2558,6 +2552,13 @@ export type Database = {
2558
2552
  Args: Record<PropertyKey, never>;
2559
2553
  Returns: string;
2560
2554
  };
2555
+ refresh_chat_properties: {
2556
+ Args: {
2557
+ org_id_input: string;
2558
+ chat_id_input?: string;
2559
+ };
2560
+ Returns: undefined;
2561
+ };
2561
2562
  update_chat_properties: {
2562
2563
  Args: {
2563
2564
  column_name: string;
@@ -2672,7 +2673,7 @@ export type Database = {
2672
2673
  raw_data: Json | null;
2673
2674
  sender_phone: string | null;
2674
2675
  sent_message_id: string | null;
2675
- timestamp: string;
2676
+ timestamp: string | null;
2676
2677
  to: string | null;
2677
2678
  token: string | null;
2678
2679
  unique_id: string | null;
@@ -2789,6 +2790,7 @@ export type Database = {
2789
2790
  created_at: string | null;
2790
2791
  id: string;
2791
2792
  last_accessed_at: string | null;
2793
+ level: number | null;
2792
2794
  metadata: Json | null;
2793
2795
  name: string | null;
2794
2796
  owner: string | null;
@@ -2803,6 +2805,7 @@ export type Database = {
2803
2805
  created_at?: string | null;
2804
2806
  id?: string;
2805
2807
  last_accessed_at?: string | null;
2808
+ level?: number | null;
2806
2809
  metadata?: Json | null;
2807
2810
  name?: string | null;
2808
2811
  owner?: string | null;
@@ -2817,6 +2820,7 @@ export type Database = {
2817
2820
  created_at?: string | null;
2818
2821
  id?: string;
2819
2822
  last_accessed_at?: string | null;
2823
+ level?: number | null;
2820
2824
  metadata?: Json | null;
2821
2825
  name?: string | null;
2822
2826
  owner?: string | null;
@@ -2836,6 +2840,38 @@ export type Database = {
2836
2840
  }
2837
2841
  ];
2838
2842
  };
2843
+ prefixes: {
2844
+ Row: {
2845
+ bucket_id: string;
2846
+ created_at: string | null;
2847
+ level: number;
2848
+ name: string;
2849
+ updated_at: string | null;
2850
+ };
2851
+ Insert: {
2852
+ bucket_id: string;
2853
+ created_at?: string | null;
2854
+ level?: number;
2855
+ name: string;
2856
+ updated_at?: string | null;
2857
+ };
2858
+ Update: {
2859
+ bucket_id?: string;
2860
+ created_at?: string | null;
2861
+ level?: number;
2862
+ name?: string;
2863
+ updated_at?: string | null;
2864
+ };
2865
+ Relationships: [
2866
+ {
2867
+ foreignKeyName: "prefixes_bucketId_fkey";
2868
+ columns: ["bucket_id"];
2869
+ isOneToOne: false;
2870
+ referencedRelation: "buckets";
2871
+ referencedColumns: ["id"];
2872
+ }
2873
+ ];
2874
+ };
2839
2875
  s3_multipart_uploads: {
2840
2876
  Row: {
2841
2877
  bucket_id: string;
@@ -2939,6 +2975,13 @@ export type Database = {
2939
2975
  [_ in never]: never;
2940
2976
  };
2941
2977
  Functions: {
2978
+ add_prefixes: {
2979
+ Args: {
2980
+ _bucket_id: string;
2981
+ _name: string;
2982
+ };
2983
+ Returns: undefined;
2984
+ };
2942
2985
  can_insert_object: {
2943
2986
  Args: {
2944
2987
  bucketid: string;
@@ -2948,6 +2991,13 @@ export type Database = {
2948
2991
  };
2949
2992
  Returns: undefined;
2950
2993
  };
2994
+ delete_prefix: {
2995
+ Args: {
2996
+ _bucket_id: string;
2997
+ _name: string;
2998
+ };
2999
+ Returns: boolean;
3000
+ };
2951
3001
  extension: {
2952
3002
  Args: {
2953
3003
  name: string;
@@ -2966,6 +3016,24 @@ export type Database = {
2966
3016
  };
2967
3017
  Returns: string[];
2968
3018
  };
3019
+ get_level: {
3020
+ Args: {
3021
+ name: string;
3022
+ };
3023
+ Returns: number;
3024
+ };
3025
+ get_prefix: {
3026
+ Args: {
3027
+ name: string;
3028
+ };
3029
+ Returns: string;
3030
+ };
3031
+ get_prefixes: {
3032
+ Args: {
3033
+ name: string;
3034
+ };
3035
+ Returns: string[];
3036
+ };
2969
3037
  get_size_by_bucket: {
2970
3038
  Args: Record<PropertyKey, never>;
2971
3039
  Returns: {
@@ -3028,6 +3096,63 @@ export type Database = {
3028
3096
  metadata: Json;
3029
3097
  }[];
3030
3098
  };
3099
+ search_legacy_v1: {
3100
+ Args: {
3101
+ prefix: string;
3102
+ bucketname: string;
3103
+ limits?: number;
3104
+ levels?: number;
3105
+ offsets?: number;
3106
+ search?: string;
3107
+ sortcolumn?: string;
3108
+ sortorder?: string;
3109
+ };
3110
+ Returns: {
3111
+ name: string;
3112
+ id: string;
3113
+ updated_at: string;
3114
+ created_at: string;
3115
+ last_accessed_at: string;
3116
+ metadata: Json;
3117
+ }[];
3118
+ };
3119
+ search_v1_optimised: {
3120
+ Args: {
3121
+ prefix: string;
3122
+ bucketname: string;
3123
+ limits?: number;
3124
+ levels?: number;
3125
+ offsets?: number;
3126
+ search?: string;
3127
+ sortcolumn?: string;
3128
+ sortorder?: string;
3129
+ };
3130
+ Returns: {
3131
+ name: string;
3132
+ id: string;
3133
+ updated_at: string;
3134
+ created_at: string;
3135
+ last_accessed_at: string;
3136
+ metadata: Json;
3137
+ }[];
3138
+ };
3139
+ search_v2: {
3140
+ Args: {
3141
+ prefix: string;
3142
+ bucket_name: string;
3143
+ limits?: number;
3144
+ levels?: number;
3145
+ start_after?: string;
3146
+ };
3147
+ Returns: {
3148
+ key: string;
3149
+ name: string;
3150
+ id: string;
3151
+ updated_at: string;
3152
+ created_at: string;
3153
+ metadata: Json;
3154
+ }[];
3155
+ };
3031
3156
  };
3032
3157
  Enums: {
3033
3158
  [_ in never]: never;