@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.
- package/dist/supabase.types.d.ts +143 -18
- package/dist/supabase.types.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/supabase.types.ts +148 -89
- package/tsconfig.tsbuildinfo +1 -1
package/src/supabase.types.ts
CHANGED
|
@@ -259,14 +259,14 @@ export type Database = {
|
|
|
259
259
|
}
|
|
260
260
|
Relationships: [
|
|
261
261
|
{
|
|
262
|
-
foreignKeyName: "
|
|
262
|
+
foreignKeyName: "tbl_automation_rules_org_id_fkey"
|
|
263
263
|
columns: ["org_id"]
|
|
264
264
|
isOneToOne: false
|
|
265
265
|
referencedRelation: "tbl_org"
|
|
266
266
|
referencedColumns: ["org_id"]
|
|
267
267
|
},
|
|
268
268
|
{
|
|
269
|
-
foreignKeyName: "
|
|
269
|
+
foreignKeyName: "tbl_automation_rules_org_id_fkey"
|
|
270
270
|
columns: ["org_id"]
|
|
271
271
|
isOneToOne: false
|
|
272
272
|
referencedRelation: "view_org"
|
|
@@ -567,7 +567,7 @@ export type Database = {
|
|
|
567
567
|
raw_data: Json | null
|
|
568
568
|
sender_phone: string | null
|
|
569
569
|
sent_message_id: string | null
|
|
570
|
-
timestamp: string
|
|
570
|
+
timestamp: string | null
|
|
571
571
|
to: string | null
|
|
572
572
|
token: string | null
|
|
573
573
|
unique_id: string | null
|
|
@@ -621,7 +621,7 @@ export type Database = {
|
|
|
621
621
|
raw_data?: Json | null
|
|
622
622
|
sender_phone?: string | null
|
|
623
623
|
sent_message_id?: string | null
|
|
624
|
-
timestamp
|
|
624
|
+
timestamp?: string | null
|
|
625
625
|
to?: string | null
|
|
626
626
|
token?: string | null
|
|
627
627
|
unique_id?: string | null
|
|
@@ -675,7 +675,7 @@ export type Database = {
|
|
|
675
675
|
raw_data?: Json | null
|
|
676
676
|
sender_phone?: string | null
|
|
677
677
|
sent_message_id?: string | null
|
|
678
|
-
timestamp?: string
|
|
678
|
+
timestamp?: string | null
|
|
679
679
|
to?: string | null
|
|
680
680
|
token?: string | null
|
|
681
681
|
unique_id?: string | null
|
|
@@ -839,7 +839,6 @@ export type Database = {
|
|
|
839
839
|
label_ids: Json | null
|
|
840
840
|
latest_message_timestamp: string | null
|
|
841
841
|
org_id: string
|
|
842
|
-
unread_count: Json | null
|
|
843
842
|
updated_at: string | null
|
|
844
843
|
zohodesk_metadata: Json | null
|
|
845
844
|
}
|
|
@@ -859,7 +858,6 @@ export type Database = {
|
|
|
859
858
|
label_ids?: Json | null
|
|
860
859
|
latest_message_timestamp?: string | null
|
|
861
860
|
org_id: string
|
|
862
|
-
unread_count?: Json | null
|
|
863
861
|
updated_at?: string | null
|
|
864
862
|
zohodesk_metadata?: Json | null
|
|
865
863
|
}
|
|
@@ -879,7 +877,6 @@ export type Database = {
|
|
|
879
877
|
label_ids?: Json | null
|
|
880
878
|
latest_message_timestamp?: string | null
|
|
881
879
|
org_id?: string
|
|
882
|
-
unread_count?: Json | null
|
|
883
880
|
updated_at?: string | null
|
|
884
881
|
zohodesk_metadata?: Json | null
|
|
885
882
|
}
|
|
@@ -1592,7 +1589,7 @@ export type Database = {
|
|
|
1592
1589
|
invited_at: string | null
|
|
1593
1590
|
invited_by: string | null
|
|
1594
1591
|
is_active: boolean
|
|
1595
|
-
is_online: boolean
|
|
1592
|
+
is_online: boolean | null
|
|
1596
1593
|
is_owner: boolean | null
|
|
1597
1594
|
label_ids: string[] | null
|
|
1598
1595
|
member_color: Database["public"]["Enums"]["enum_chat_colors"]
|
|
@@ -1611,7 +1608,7 @@ export type Database = {
|
|
|
1611
1608
|
invited_at?: string | null
|
|
1612
1609
|
invited_by?: string | null
|
|
1613
1610
|
is_active?: boolean
|
|
1614
|
-
is_online?: boolean
|
|
1611
|
+
is_online?: boolean | null
|
|
1615
1612
|
is_owner?: boolean | null
|
|
1616
1613
|
label_ids?: string[] | null
|
|
1617
1614
|
member_color?: Database["public"]["Enums"]["enum_chat_colors"]
|
|
@@ -1630,7 +1627,7 @@ export type Database = {
|
|
|
1630
1627
|
invited_at?: string | null
|
|
1631
1628
|
invited_by?: string | null
|
|
1632
1629
|
is_active?: boolean
|
|
1633
|
-
is_online?: boolean
|
|
1630
|
+
is_online?: boolean | null
|
|
1634
1631
|
is_owner?: boolean | null
|
|
1635
1632
|
label_ids?: string[] | null
|
|
1636
1633
|
member_color?: Database["public"]["Enums"]["enum_chat_colors"]
|
|
@@ -1667,7 +1664,6 @@ export type Database = {
|
|
|
1667
1664
|
is_browser_open: boolean
|
|
1668
1665
|
is_ready: boolean | null
|
|
1669
1666
|
label_ids: Json | null
|
|
1670
|
-
legacy_version: boolean | null
|
|
1671
1667
|
library: string | null
|
|
1672
1668
|
org_id: string
|
|
1673
1669
|
org_phone: string | null
|
|
@@ -1679,7 +1675,7 @@ export type Database = {
|
|
|
1679
1675
|
queue_status: Json | null
|
|
1680
1676
|
server_image: string | null
|
|
1681
1677
|
server_ip: string | null
|
|
1682
|
-
|
|
1678
|
+
server_zone: string | null
|
|
1683
1679
|
updated_at: string | null
|
|
1684
1680
|
wa_state: string | null
|
|
1685
1681
|
wa_version: string | null
|
|
@@ -1690,7 +1686,6 @@ export type Database = {
|
|
|
1690
1686
|
is_browser_open?: boolean
|
|
1691
1687
|
is_ready?: boolean | null
|
|
1692
1688
|
label_ids?: Json | null
|
|
1693
|
-
legacy_version?: boolean | null
|
|
1694
1689
|
library?: string | null
|
|
1695
1690
|
org_id: string
|
|
1696
1691
|
org_phone?: string | null
|
|
@@ -1702,7 +1697,7 @@ export type Database = {
|
|
|
1702
1697
|
queue_status?: Json | null
|
|
1703
1698
|
server_image?: string | null
|
|
1704
1699
|
server_ip?: string | null
|
|
1705
|
-
|
|
1700
|
+
server_zone?: string | null
|
|
1706
1701
|
updated_at?: string | null
|
|
1707
1702
|
wa_state?: string | null
|
|
1708
1703
|
wa_version?: string | null
|
|
@@ -1713,7 +1708,6 @@ export type Database = {
|
|
|
1713
1708
|
is_browser_open?: boolean
|
|
1714
1709
|
is_ready?: boolean | null
|
|
1715
1710
|
label_ids?: Json | null
|
|
1716
|
-
legacy_version?: boolean | null
|
|
1717
1711
|
library?: string | null
|
|
1718
1712
|
org_id?: string
|
|
1719
1713
|
org_phone?: string | null
|
|
@@ -1725,7 +1719,7 @@ export type Database = {
|
|
|
1725
1719
|
queue_status?: Json | null
|
|
1726
1720
|
server_image?: string | null
|
|
1727
1721
|
server_ip?: string | null
|
|
1728
|
-
|
|
1722
|
+
server_zone?: string | null
|
|
1729
1723
|
updated_at?: string | null
|
|
1730
1724
|
wa_state?: string | null
|
|
1731
1725
|
wa_version?: string | null
|
|
@@ -2304,51 +2298,34 @@ export type Database = {
|
|
|
2304
2298
|
}
|
|
2305
2299
|
Functions: {
|
|
2306
2300
|
check_feature_flag_access: {
|
|
2307
|
-
Args: {
|
|
2308
|
-
org_id_input: string
|
|
2309
|
-
feature_input: string
|
|
2310
|
-
}
|
|
2301
|
+
Args: { org_id_input: string; feature_input: string }
|
|
2311
2302
|
Returns: boolean
|
|
2312
2303
|
}
|
|
2313
2304
|
custom_access_token_hook: {
|
|
2314
|
-
Args: {
|
|
2315
|
-
event: Json
|
|
2316
|
-
}
|
|
2305
|
+
Args: { event: Json }
|
|
2317
2306
|
Returns: Json
|
|
2318
2307
|
}
|
|
2319
2308
|
delete_org: {
|
|
2320
|
-
Args: {
|
|
2321
|
-
org_id_input: string
|
|
2322
|
-
}
|
|
2309
|
+
Args: { org_id_input: string }
|
|
2323
2310
|
Returns: Json
|
|
2324
2311
|
}
|
|
2325
2312
|
drop_partition: {
|
|
2326
|
-
Args: {
|
|
2327
|
-
org_id_input: string
|
|
2328
|
-
}
|
|
2313
|
+
Args: { org_id_input: string }
|
|
2329
2314
|
Returns: boolean
|
|
2330
2315
|
}
|
|
2331
2316
|
find_discrepancies: {
|
|
2332
|
-
Args: {
|
|
2333
|
-
p_org_id: string
|
|
2334
|
-
}
|
|
2317
|
+
Args: { p_org_id: string }
|
|
2335
2318
|
Returns: {
|
|
2336
2319
|
a_chat_id: string
|
|
2337
2320
|
discrepancy_count: number
|
|
2338
2321
|
}[]
|
|
2339
2322
|
}
|
|
2340
2323
|
gen_id: {
|
|
2341
|
-
Args: {
|
|
2342
|
-
prefix: string
|
|
2343
|
-
size?: number
|
|
2344
|
-
alphabet?: string
|
|
2345
|
-
}
|
|
2324
|
+
Args: { prefix: string; size?: number; alphabet?: string }
|
|
2346
2325
|
Returns: string
|
|
2347
2326
|
}
|
|
2348
2327
|
gen_ticket_id: {
|
|
2349
|
-
Args: {
|
|
2350
|
-
org_id_input: string
|
|
2351
|
-
}
|
|
2328
|
+
Args: { org_id_input: string }
|
|
2352
2329
|
Returns: string
|
|
2353
2330
|
}
|
|
2354
2331
|
generate_access_token: {
|
|
@@ -2370,10 +2347,7 @@ export type Database = {
|
|
|
2370
2347
|
Returns: Json
|
|
2371
2348
|
}
|
|
2372
2349
|
get_chat_labels_data: {
|
|
2373
|
-
Args: {
|
|
2374
|
-
org_id_input: string
|
|
2375
|
-
chat_ids_input?: string[]
|
|
2376
|
-
}
|
|
2350
|
+
Args: { org_id_input: string; chat_ids_input?: string[] }
|
|
2377
2351
|
Returns: Json[]
|
|
2378
2352
|
}
|
|
2379
2353
|
get_chat_rule_info: {
|
|
@@ -2427,10 +2401,7 @@ export type Database = {
|
|
|
2427
2401
|
Returns: Json
|
|
2428
2402
|
}
|
|
2429
2403
|
get_export_members_data: {
|
|
2430
|
-
Args: {
|
|
2431
|
-
org_id_input: string
|
|
2432
|
-
chat_id_input?: string[]
|
|
2433
|
-
}
|
|
2404
|
+
Args: { org_id_input: string; chat_id_input?: string[] }
|
|
2434
2405
|
Returns: Json
|
|
2435
2406
|
}
|
|
2436
2407
|
get_export_tickets_data: {
|
|
@@ -2445,9 +2416,7 @@ export type Database = {
|
|
|
2445
2416
|
Returns: Json
|
|
2446
2417
|
}
|
|
2447
2418
|
get_feature_flags: {
|
|
2448
|
-
Args: {
|
|
2449
|
-
org_id_input: string
|
|
2450
|
-
}
|
|
2419
|
+
Args: { org_id_input: string }
|
|
2451
2420
|
Returns: Json
|
|
2452
2421
|
}
|
|
2453
2422
|
get_formatted_cp_values: {
|
|
@@ -2459,9 +2428,7 @@ export type Database = {
|
|
|
2459
2428
|
Returns: Json
|
|
2460
2429
|
}
|
|
2461
2430
|
get_integration_data: {
|
|
2462
|
-
Args: {
|
|
2463
|
-
org_id_input?: string
|
|
2464
|
-
}
|
|
2431
|
+
Args: { org_id_input?: string }
|
|
2465
2432
|
Returns: Json
|
|
2466
2433
|
}
|
|
2467
2434
|
get_message_rule_info: {
|
|
@@ -2484,28 +2451,19 @@ export type Database = {
|
|
|
2484
2451
|
Returns: Json
|
|
2485
2452
|
}
|
|
2486
2453
|
get_old_credits: {
|
|
2487
|
-
Args: {
|
|
2488
|
-
org_id_input?: string
|
|
2489
|
-
}
|
|
2454
|
+
Args: { org_id_input?: string }
|
|
2490
2455
|
Returns: Json
|
|
2491
2456
|
}
|
|
2492
2457
|
get_org: {
|
|
2493
|
-
Args: {
|
|
2494
|
-
org_id_input?: string
|
|
2495
|
-
}
|
|
2458
|
+
Args: { org_id_input?: string }
|
|
2496
2459
|
Returns: Json
|
|
2497
2460
|
}
|
|
2498
2461
|
get_org_credits: {
|
|
2499
|
-
Args: {
|
|
2500
|
-
org_id_input?: string
|
|
2501
|
-
}
|
|
2462
|
+
Args: { org_id_input?: string }
|
|
2502
2463
|
Returns: Json
|
|
2503
2464
|
}
|
|
2504
2465
|
get_org_phones: {
|
|
2505
|
-
Args: {
|
|
2506
|
-
org_id_input?: string
|
|
2507
|
-
phone_id_input?: string
|
|
2508
|
-
}
|
|
2466
|
+
Args: { org_id_input?: string; phone_id_input?: string }
|
|
2509
2467
|
Returns: Json
|
|
2510
2468
|
}
|
|
2511
2469
|
get_reaction_rule_info: {
|
|
@@ -2569,6 +2527,10 @@ export type Database = {
|
|
|
2569
2527
|
Args: Record<PropertyKey, never>
|
|
2570
2528
|
Returns: string
|
|
2571
2529
|
}
|
|
2530
|
+
refresh_chat_properties: {
|
|
2531
|
+
Args: { org_id_input: string; chat_id_input?: string }
|
|
2532
|
+
Returns: undefined
|
|
2533
|
+
}
|
|
2572
2534
|
update_chat_properties: {
|
|
2573
2535
|
Args: {
|
|
2574
2536
|
column_name: string
|
|
@@ -2683,7 +2645,7 @@ export type Database = {
|
|
|
2683
2645
|
raw_data: Json | null
|
|
2684
2646
|
sender_phone: string | null
|
|
2685
2647
|
sent_message_id: string | null
|
|
2686
|
-
timestamp: string
|
|
2648
|
+
timestamp: string | null
|
|
2687
2649
|
to: string | null
|
|
2688
2650
|
token: string | null
|
|
2689
2651
|
unique_id: string | null
|
|
@@ -2701,11 +2663,7 @@ export type Database = {
|
|
|
2701
2663
|
Returns: undefined
|
|
2702
2664
|
}
|
|
2703
2665
|
update_org_metadata: {
|
|
2704
|
-
Args: {
|
|
2705
|
-
org_id_input: string
|
|
2706
|
-
key_input?: string
|
|
2707
|
-
value_input?: Json
|
|
2708
|
-
}
|
|
2666
|
+
Args: { org_id_input: string; key_input?: string; value_input?: Json }
|
|
2709
2667
|
Returns: undefined
|
|
2710
2668
|
}
|
|
2711
2669
|
update_rule_log_entry: {
|
|
@@ -2852,6 +2810,7 @@ export type Database = {
|
|
|
2852
2810
|
created_at: string | null
|
|
2853
2811
|
id: string
|
|
2854
2812
|
last_accessed_at: string | null
|
|
2813
|
+
level: number | null
|
|
2855
2814
|
metadata: Json | null
|
|
2856
2815
|
name: string | null
|
|
2857
2816
|
owner: string | null
|
|
@@ -2866,6 +2825,7 @@ export type Database = {
|
|
|
2866
2825
|
created_at?: string | null
|
|
2867
2826
|
id?: string
|
|
2868
2827
|
last_accessed_at?: string | null
|
|
2828
|
+
level?: number | null
|
|
2869
2829
|
metadata?: Json | null
|
|
2870
2830
|
name?: string | null
|
|
2871
2831
|
owner?: string | null
|
|
@@ -2880,6 +2840,7 @@ export type Database = {
|
|
|
2880
2840
|
created_at?: string | null
|
|
2881
2841
|
id?: string
|
|
2882
2842
|
last_accessed_at?: string | null
|
|
2843
|
+
level?: number | null
|
|
2883
2844
|
metadata?: Json | null
|
|
2884
2845
|
name?: string | null
|
|
2885
2846
|
owner?: string | null
|
|
@@ -2899,6 +2860,38 @@ export type Database = {
|
|
|
2899
2860
|
},
|
|
2900
2861
|
]
|
|
2901
2862
|
}
|
|
2863
|
+
prefixes: {
|
|
2864
|
+
Row: {
|
|
2865
|
+
bucket_id: string
|
|
2866
|
+
created_at: string | null
|
|
2867
|
+
level: number
|
|
2868
|
+
name: string
|
|
2869
|
+
updated_at: string | null
|
|
2870
|
+
}
|
|
2871
|
+
Insert: {
|
|
2872
|
+
bucket_id: string
|
|
2873
|
+
created_at?: string | null
|
|
2874
|
+
level?: number
|
|
2875
|
+
name: string
|
|
2876
|
+
updated_at?: string | null
|
|
2877
|
+
}
|
|
2878
|
+
Update: {
|
|
2879
|
+
bucket_id?: string
|
|
2880
|
+
created_at?: string | null
|
|
2881
|
+
level?: number
|
|
2882
|
+
name?: string
|
|
2883
|
+
updated_at?: string | null
|
|
2884
|
+
}
|
|
2885
|
+
Relationships: [
|
|
2886
|
+
{
|
|
2887
|
+
foreignKeyName: "prefixes_bucketId_fkey"
|
|
2888
|
+
columns: ["bucket_id"]
|
|
2889
|
+
isOneToOne: false
|
|
2890
|
+
referencedRelation: "buckets"
|
|
2891
|
+
referencedColumns: ["id"]
|
|
2892
|
+
},
|
|
2893
|
+
]
|
|
2894
|
+
}
|
|
2902
2895
|
s3_multipart_uploads: {
|
|
2903
2896
|
Row: {
|
|
2904
2897
|
bucket_id: string
|
|
@@ -3002,31 +2995,40 @@ export type Database = {
|
|
|
3002
2995
|
[_ in never]: never
|
|
3003
2996
|
}
|
|
3004
2997
|
Functions: {
|
|
2998
|
+
add_prefixes: {
|
|
2999
|
+
Args: { _bucket_id: string; _name: string }
|
|
3000
|
+
Returns: undefined
|
|
3001
|
+
}
|
|
3005
3002
|
can_insert_object: {
|
|
3006
|
-
Args: {
|
|
3007
|
-
bucketid: string
|
|
3008
|
-
name: string
|
|
3009
|
-
owner: string
|
|
3010
|
-
metadata: Json
|
|
3011
|
-
}
|
|
3003
|
+
Args: { bucketid: string; name: string; owner: string; metadata: Json }
|
|
3012
3004
|
Returns: undefined
|
|
3013
3005
|
}
|
|
3006
|
+
delete_prefix: {
|
|
3007
|
+
Args: { _bucket_id: string; _name: string }
|
|
3008
|
+
Returns: boolean
|
|
3009
|
+
}
|
|
3014
3010
|
extension: {
|
|
3015
|
-
Args: {
|
|
3016
|
-
name: string
|
|
3017
|
-
}
|
|
3011
|
+
Args: { name: string }
|
|
3018
3012
|
Returns: string
|
|
3019
3013
|
}
|
|
3020
3014
|
filename: {
|
|
3021
|
-
Args: {
|
|
3022
|
-
name: string
|
|
3023
|
-
}
|
|
3015
|
+
Args: { name: string }
|
|
3024
3016
|
Returns: string
|
|
3025
3017
|
}
|
|
3026
3018
|
foldername: {
|
|
3027
|
-
Args: {
|
|
3028
|
-
|
|
3029
|
-
|
|
3019
|
+
Args: { name: string }
|
|
3020
|
+
Returns: string[]
|
|
3021
|
+
}
|
|
3022
|
+
get_level: {
|
|
3023
|
+
Args: { name: string }
|
|
3024
|
+
Returns: number
|
|
3025
|
+
}
|
|
3026
|
+
get_prefix: {
|
|
3027
|
+
Args: { name: string }
|
|
3028
|
+
Returns: string
|
|
3029
|
+
}
|
|
3030
|
+
get_prefixes: {
|
|
3031
|
+
Args: { name: string }
|
|
3030
3032
|
Returns: string[]
|
|
3031
3033
|
}
|
|
3032
3034
|
get_size_by_bucket: {
|
|
@@ -3091,6 +3093,63 @@ export type Database = {
|
|
|
3091
3093
|
metadata: Json
|
|
3092
3094
|
}[]
|
|
3093
3095
|
}
|
|
3096
|
+
search_legacy_v1: {
|
|
3097
|
+
Args: {
|
|
3098
|
+
prefix: string
|
|
3099
|
+
bucketname: string
|
|
3100
|
+
limits?: number
|
|
3101
|
+
levels?: number
|
|
3102
|
+
offsets?: number
|
|
3103
|
+
search?: string
|
|
3104
|
+
sortcolumn?: string
|
|
3105
|
+
sortorder?: string
|
|
3106
|
+
}
|
|
3107
|
+
Returns: {
|
|
3108
|
+
name: string
|
|
3109
|
+
id: string
|
|
3110
|
+
updated_at: string
|
|
3111
|
+
created_at: string
|
|
3112
|
+
last_accessed_at: string
|
|
3113
|
+
metadata: Json
|
|
3114
|
+
}[]
|
|
3115
|
+
}
|
|
3116
|
+
search_v1_optimised: {
|
|
3117
|
+
Args: {
|
|
3118
|
+
prefix: string
|
|
3119
|
+
bucketname: string
|
|
3120
|
+
limits?: number
|
|
3121
|
+
levels?: number
|
|
3122
|
+
offsets?: number
|
|
3123
|
+
search?: string
|
|
3124
|
+
sortcolumn?: string
|
|
3125
|
+
sortorder?: string
|
|
3126
|
+
}
|
|
3127
|
+
Returns: {
|
|
3128
|
+
name: string
|
|
3129
|
+
id: string
|
|
3130
|
+
updated_at: string
|
|
3131
|
+
created_at: string
|
|
3132
|
+
last_accessed_at: string
|
|
3133
|
+
metadata: Json
|
|
3134
|
+
}[]
|
|
3135
|
+
}
|
|
3136
|
+
search_v2: {
|
|
3137
|
+
Args: {
|
|
3138
|
+
prefix: string
|
|
3139
|
+
bucket_name: string
|
|
3140
|
+
limits?: number
|
|
3141
|
+
levels?: number
|
|
3142
|
+
start_after?: string
|
|
3143
|
+
}
|
|
3144
|
+
Returns: {
|
|
3145
|
+
key: string
|
|
3146
|
+
name: string
|
|
3147
|
+
id: string
|
|
3148
|
+
updated_at: string
|
|
3149
|
+
created_at: string
|
|
3150
|
+
metadata: Json
|
|
3151
|
+
}[]
|
|
3152
|
+
}
|
|
3094
3153
|
}
|
|
3095
3154
|
Enums: {
|
|
3096
3155
|
[_ in never]: never
|