@periskope/types 0.6.249 → 0.6.251
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 +181 -68
- package/dist/supabase.types.d.ts.map +1 -1
- package/dist/supabase.types.js +76 -0
- package/dist/types.d.ts +7 -3
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +4 -0
- package/mod_json_type.ps1 +108 -108
- package/mod_json_type.sh +22 -22
- package/package.json +19 -19
- package/src/index.ts +4 -4
- package/src/object.types.ts +100 -100
- package/src/rules.types.ts +2109 -2109
- package/src/supabase.types.ts +282 -160
- package/src/types.ts +1208 -1198
- package/tsconfig.json +18 -18
- package/update_package.ps1 +21 -21
- package/tsconfig.tsbuildinfo +0 -1
package/src/supabase.types.ts
CHANGED
|
@@ -1,31 +1,6 @@
|
|
|
1
1
|
export type Json = { [key: string]: any } | any
|
|
2
2
|
|
|
3
3
|
export type Database = {
|
|
4
|
-
graphql_public: {
|
|
5
|
-
Tables: {
|
|
6
|
-
[_ in never]: never
|
|
7
|
-
}
|
|
8
|
-
Views: {
|
|
9
|
-
[_ in never]: never
|
|
10
|
-
}
|
|
11
|
-
Functions: {
|
|
12
|
-
graphql: {
|
|
13
|
-
Args: {
|
|
14
|
-
operationName?: string
|
|
15
|
-
query?: string
|
|
16
|
-
variables?: Json
|
|
17
|
-
extensions?: Json
|
|
18
|
-
}
|
|
19
|
-
Returns: Json
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
Enums: {
|
|
23
|
-
[_ in never]: never
|
|
24
|
-
}
|
|
25
|
-
CompositeTypes: {
|
|
26
|
-
[_ in never]: never
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
4
|
internal: {
|
|
30
5
|
Tables: {
|
|
31
6
|
config: {
|
|
@@ -283,20 +258,6 @@ export type Database = {
|
|
|
283
258
|
trigger?: string
|
|
284
259
|
}
|
|
285
260
|
Relationships: [
|
|
286
|
-
{
|
|
287
|
-
foreignKeyName: "public_tbl_automation_rules_org_id_fkey"
|
|
288
|
-
columns: ["org_id"]
|
|
289
|
-
isOneToOne: false
|
|
290
|
-
referencedRelation: "tbl_org"
|
|
291
|
-
referencedColumns: ["org_id"]
|
|
292
|
-
},
|
|
293
|
-
{
|
|
294
|
-
foreignKeyName: "public_tbl_automation_rules_org_id_fkey"
|
|
295
|
-
columns: ["org_id"]
|
|
296
|
-
isOneToOne: false
|
|
297
|
-
referencedRelation: "view_org"
|
|
298
|
-
referencedColumns: ["org_id"]
|
|
299
|
-
},
|
|
300
261
|
{
|
|
301
262
|
foreignKeyName: "tbl_automation_rules_org_id_fkey"
|
|
302
263
|
columns: ["org_id"]
|
|
@@ -795,6 +756,7 @@ export type Database = {
|
|
|
795
756
|
body: string | null
|
|
796
757
|
chat_id: string | null
|
|
797
758
|
id: Json | null
|
|
759
|
+
metadata: Json | null
|
|
798
760
|
notification_id: string
|
|
799
761
|
org_id: string
|
|
800
762
|
org_phone: string
|
|
@@ -808,6 +770,7 @@ export type Database = {
|
|
|
808
770
|
body?: string | null
|
|
809
771
|
chat_id?: string | null
|
|
810
772
|
id?: Json | null
|
|
773
|
+
metadata?: Json | null
|
|
811
774
|
notification_id: string
|
|
812
775
|
org_id: string
|
|
813
776
|
org_phone: string
|
|
@@ -821,6 +784,7 @@ export type Database = {
|
|
|
821
784
|
body?: string | null
|
|
822
785
|
chat_id?: string | null
|
|
823
786
|
id?: Json | null
|
|
787
|
+
metadata?: Json | null
|
|
824
788
|
notification_id?: string
|
|
825
789
|
org_id?: string
|
|
826
790
|
org_phone?: string
|
|
@@ -1686,13 +1650,6 @@ export type Database = {
|
|
|
1686
1650
|
user_id?: string | null
|
|
1687
1651
|
}
|
|
1688
1652
|
Relationships: [
|
|
1689
|
-
{
|
|
1690
|
-
foreignKeyName: "tbl_org_members_fkey_auth_users"
|
|
1691
|
-
columns: ["user_id"]
|
|
1692
|
-
isOneToOne: false
|
|
1693
|
-
referencedRelation: "users"
|
|
1694
|
-
referencedColumns: ["id"]
|
|
1695
|
-
},
|
|
1696
1653
|
{
|
|
1697
1654
|
foreignKeyName: "tbl_org_members_fkey_tbl_org"
|
|
1698
1655
|
columns: ["org_id"]
|
|
@@ -1727,6 +1684,7 @@ export type Database = {
|
|
|
1727
1684
|
queue_status: Json | null
|
|
1728
1685
|
server_image: string | null
|
|
1729
1686
|
server_ip: string | null
|
|
1687
|
+
server_name: string | null
|
|
1730
1688
|
server_zone: string | null
|
|
1731
1689
|
updated_at: string | null
|
|
1732
1690
|
wa_state: string | null
|
|
@@ -1749,6 +1707,7 @@ export type Database = {
|
|
|
1749
1707
|
queue_status?: Json | null
|
|
1750
1708
|
server_image?: string | null
|
|
1751
1709
|
server_ip?: string | null
|
|
1710
|
+
server_name?: string | null
|
|
1752
1711
|
server_zone?: string | null
|
|
1753
1712
|
updated_at?: string | null
|
|
1754
1713
|
wa_state?: string | null
|
|
@@ -1771,6 +1730,7 @@ export type Database = {
|
|
|
1771
1730
|
queue_status?: Json | null
|
|
1772
1731
|
server_image?: string | null
|
|
1773
1732
|
server_ip?: string | null
|
|
1733
|
+
server_name?: string | null
|
|
1774
1734
|
server_zone?: string | null
|
|
1775
1735
|
updated_at?: string | null
|
|
1776
1736
|
wa_state?: string | null
|
|
@@ -2258,14 +2218,15 @@ export type Database = {
|
|
|
2258
2218
|
org_name: string | null
|
|
2259
2219
|
org_plan: Json | null
|
|
2260
2220
|
pending_days: number | null
|
|
2261
|
-
phone_limit:
|
|
2221
|
+
phone_limit: number | null
|
|
2262
2222
|
plan_id: string | null
|
|
2223
|
+
server_zone: string | null
|
|
2263
2224
|
stripe_customer_details: Json | null
|
|
2264
2225
|
stripe_customer_id: string | null
|
|
2265
2226
|
stripe_subscription_details: Json | null
|
|
2266
2227
|
subscription_status: string | null
|
|
2267
2228
|
support_link: string | null
|
|
2268
|
-
user_limit:
|
|
2229
|
+
user_limit: number | null
|
|
2269
2230
|
}
|
|
2270
2231
|
Insert: {
|
|
2271
2232
|
access_scopes?: never
|
|
@@ -2284,6 +2245,7 @@ export type Database = {
|
|
|
2284
2245
|
pending_days?: never
|
|
2285
2246
|
phone_limit?: never
|
|
2286
2247
|
plan_id?: never
|
|
2248
|
+
server_zone?: string | null
|
|
2287
2249
|
stripe_customer_details?: Json | null
|
|
2288
2250
|
stripe_customer_id?: string | null
|
|
2289
2251
|
stripe_subscription_details?: Json | null
|
|
@@ -2308,6 +2270,7 @@ export type Database = {
|
|
|
2308
2270
|
pending_days?: never
|
|
2309
2271
|
phone_limit?: never
|
|
2310
2272
|
plan_id?: never
|
|
2273
|
+
server_zone?: string | null
|
|
2311
2274
|
stripe_customer_details?: Json | null
|
|
2312
2275
|
stripe_customer_id?: string | null
|
|
2313
2276
|
stripe_subscription_details?: Json | null
|
|
@@ -2350,51 +2313,34 @@ export type Database = {
|
|
|
2350
2313
|
}
|
|
2351
2314
|
Functions: {
|
|
2352
2315
|
check_feature_flag_access: {
|
|
2353
|
-
Args: {
|
|
2354
|
-
org_id_input: string
|
|
2355
|
-
feature_input: string
|
|
2356
|
-
}
|
|
2316
|
+
Args: { org_id_input: string; feature_input: string }
|
|
2357
2317
|
Returns: boolean
|
|
2358
2318
|
}
|
|
2359
2319
|
custom_access_token_hook: {
|
|
2360
|
-
Args: {
|
|
2361
|
-
event: Json
|
|
2362
|
-
}
|
|
2320
|
+
Args: { event: Json }
|
|
2363
2321
|
Returns: Json
|
|
2364
2322
|
}
|
|
2365
2323
|
delete_org: {
|
|
2366
|
-
Args: {
|
|
2367
|
-
org_id_input: string
|
|
2368
|
-
}
|
|
2324
|
+
Args: { org_id_input: string }
|
|
2369
2325
|
Returns: Json
|
|
2370
2326
|
}
|
|
2371
2327
|
drop_partition: {
|
|
2372
|
-
Args: {
|
|
2373
|
-
org_id_input: string
|
|
2374
|
-
}
|
|
2328
|
+
Args: { org_id_input: string }
|
|
2375
2329
|
Returns: boolean
|
|
2376
2330
|
}
|
|
2377
2331
|
find_discrepancies: {
|
|
2378
|
-
Args: {
|
|
2379
|
-
p_org_id: string
|
|
2380
|
-
}
|
|
2332
|
+
Args: { p_org_id: string }
|
|
2381
2333
|
Returns: {
|
|
2382
2334
|
a_chat_id: string
|
|
2383
2335
|
discrepancy_count: number
|
|
2384
2336
|
}[]
|
|
2385
2337
|
}
|
|
2386
2338
|
gen_id: {
|
|
2387
|
-
Args: {
|
|
2388
|
-
prefix: string
|
|
2389
|
-
size?: number
|
|
2390
|
-
alphabet?: string
|
|
2391
|
-
}
|
|
2339
|
+
Args: { prefix: string; size?: number; alphabet?: string }
|
|
2392
2340
|
Returns: string
|
|
2393
2341
|
}
|
|
2394
2342
|
gen_ticket_id: {
|
|
2395
|
-
Args: {
|
|
2396
|
-
org_id_input: string
|
|
2397
|
-
}
|
|
2343
|
+
Args: { org_id_input: string }
|
|
2398
2344
|
Returns: string
|
|
2399
2345
|
}
|
|
2400
2346
|
generate_access_token: {
|
|
@@ -2416,10 +2362,7 @@ export type Database = {
|
|
|
2416
2362
|
Returns: Json
|
|
2417
2363
|
}
|
|
2418
2364
|
get_chat_labels_data: {
|
|
2419
|
-
Args: {
|
|
2420
|
-
org_id_input: string
|
|
2421
|
-
chat_ids_input?: string[]
|
|
2422
|
-
}
|
|
2365
|
+
Args: { org_id_input: string; chat_ids_input?: string[] }
|
|
2423
2366
|
Returns: Json[]
|
|
2424
2367
|
}
|
|
2425
2368
|
get_chat_rule_info: {
|
|
@@ -2473,10 +2416,7 @@ export type Database = {
|
|
|
2473
2416
|
Returns: Json
|
|
2474
2417
|
}
|
|
2475
2418
|
get_export_members_data: {
|
|
2476
|
-
Args: {
|
|
2477
|
-
org_id_input: string
|
|
2478
|
-
chat_id_input?: string[]
|
|
2479
|
-
}
|
|
2419
|
+
Args: { org_id_input: string; chat_id_input?: string[] }
|
|
2480
2420
|
Returns: Json
|
|
2481
2421
|
}
|
|
2482
2422
|
get_export_tickets_data: {
|
|
@@ -2491,9 +2431,7 @@ export type Database = {
|
|
|
2491
2431
|
Returns: Json
|
|
2492
2432
|
}
|
|
2493
2433
|
get_feature_flags: {
|
|
2494
|
-
Args: {
|
|
2495
|
-
org_id_input: string
|
|
2496
|
-
}
|
|
2434
|
+
Args: { org_id_input: string }
|
|
2497
2435
|
Returns: Json
|
|
2498
2436
|
}
|
|
2499
2437
|
get_formatted_cp_values: {
|
|
@@ -2505,9 +2443,7 @@ export type Database = {
|
|
|
2505
2443
|
Returns: Json
|
|
2506
2444
|
}
|
|
2507
2445
|
get_integration_data: {
|
|
2508
|
-
Args: {
|
|
2509
|
-
org_id_input?: string
|
|
2510
|
-
}
|
|
2446
|
+
Args: { org_id_input?: string }
|
|
2511
2447
|
Returns: Json
|
|
2512
2448
|
}
|
|
2513
2449
|
get_message_rule_info: {
|
|
@@ -2530,28 +2466,19 @@ export type Database = {
|
|
|
2530
2466
|
Returns: Json
|
|
2531
2467
|
}
|
|
2532
2468
|
get_old_credits: {
|
|
2533
|
-
Args: {
|
|
2534
|
-
org_id_input?: string
|
|
2535
|
-
}
|
|
2469
|
+
Args: { org_id_input?: string }
|
|
2536
2470
|
Returns: Json
|
|
2537
2471
|
}
|
|
2538
2472
|
get_org: {
|
|
2539
|
-
Args: {
|
|
2540
|
-
org_id_input?: string
|
|
2541
|
-
}
|
|
2473
|
+
Args: { org_id_input?: string }
|
|
2542
2474
|
Returns: Json
|
|
2543
2475
|
}
|
|
2544
2476
|
get_org_credits: {
|
|
2545
|
-
Args: {
|
|
2546
|
-
org_id_input?: string
|
|
2547
|
-
}
|
|
2477
|
+
Args: { org_id_input?: string }
|
|
2548
2478
|
Returns: Json
|
|
2549
2479
|
}
|
|
2550
2480
|
get_org_phones: {
|
|
2551
|
-
Args: {
|
|
2552
|
-
org_id_input?: string
|
|
2553
|
-
phone_id_input?: string
|
|
2554
|
-
}
|
|
2481
|
+
Args: { org_id_input?: string; phone_id_input?: string }
|
|
2555
2482
|
Returns: Json
|
|
2556
2483
|
}
|
|
2557
2484
|
get_reaction_rule_info: {
|
|
@@ -2616,10 +2543,7 @@ export type Database = {
|
|
|
2616
2543
|
Returns: string
|
|
2617
2544
|
}
|
|
2618
2545
|
refresh_chat_properties: {
|
|
2619
|
-
Args: {
|
|
2620
|
-
org_id_input: string
|
|
2621
|
-
chat_id_input?: string
|
|
2622
|
-
}
|
|
2546
|
+
Args: { org_id_input: string; chat_id_input?: string }
|
|
2623
2547
|
Returns: undefined
|
|
2624
2548
|
}
|
|
2625
2549
|
update_chat_properties: {
|
|
@@ -2754,11 +2678,7 @@ export type Database = {
|
|
|
2754
2678
|
Returns: undefined
|
|
2755
2679
|
}
|
|
2756
2680
|
update_org_metadata: {
|
|
2757
|
-
Args: {
|
|
2758
|
-
org_id_input: string
|
|
2759
|
-
key_input?: string
|
|
2760
|
-
value_input?: Json
|
|
2761
|
-
}
|
|
2681
|
+
Args: { org_id_input: string; key_input?: string; value_input?: Json }
|
|
2762
2682
|
Returns: undefined
|
|
2763
2683
|
}
|
|
2764
2684
|
update_rule_log_entry: {
|
|
@@ -2906,6 +2826,7 @@ export type Database = {
|
|
|
2906
2826
|
created_at: string | null
|
|
2907
2827
|
id: string
|
|
2908
2828
|
last_accessed_at: string | null
|
|
2829
|
+
level: number | null
|
|
2909
2830
|
metadata: Json | null
|
|
2910
2831
|
name: string | null
|
|
2911
2832
|
owner: string | null
|
|
@@ -2920,6 +2841,7 @@ export type Database = {
|
|
|
2920
2841
|
created_at?: string | null
|
|
2921
2842
|
id?: string
|
|
2922
2843
|
last_accessed_at?: string | null
|
|
2844
|
+
level?: number | null
|
|
2923
2845
|
metadata?: Json | null
|
|
2924
2846
|
name?: string | null
|
|
2925
2847
|
owner?: string | null
|
|
@@ -2934,6 +2856,7 @@ export type Database = {
|
|
|
2934
2856
|
created_at?: string | null
|
|
2935
2857
|
id?: string
|
|
2936
2858
|
last_accessed_at?: string | null
|
|
2859
|
+
level?: number | null
|
|
2937
2860
|
metadata?: Json | null
|
|
2938
2861
|
name?: string | null
|
|
2939
2862
|
owner?: string | null
|
|
@@ -2953,6 +2876,38 @@ export type Database = {
|
|
|
2953
2876
|
},
|
|
2954
2877
|
]
|
|
2955
2878
|
}
|
|
2879
|
+
prefixes: {
|
|
2880
|
+
Row: {
|
|
2881
|
+
bucket_id: string
|
|
2882
|
+
created_at: string | null
|
|
2883
|
+
level: number
|
|
2884
|
+
name: string
|
|
2885
|
+
updated_at: string | null
|
|
2886
|
+
}
|
|
2887
|
+
Insert: {
|
|
2888
|
+
bucket_id: string
|
|
2889
|
+
created_at?: string | null
|
|
2890
|
+
level?: number
|
|
2891
|
+
name: string
|
|
2892
|
+
updated_at?: string | null
|
|
2893
|
+
}
|
|
2894
|
+
Update: {
|
|
2895
|
+
bucket_id?: string
|
|
2896
|
+
created_at?: string | null
|
|
2897
|
+
level?: number
|
|
2898
|
+
name?: string
|
|
2899
|
+
updated_at?: string | null
|
|
2900
|
+
}
|
|
2901
|
+
Relationships: [
|
|
2902
|
+
{
|
|
2903
|
+
foreignKeyName: "prefixes_bucketId_fkey"
|
|
2904
|
+
columns: ["bucket_id"]
|
|
2905
|
+
isOneToOne: false
|
|
2906
|
+
referencedRelation: "buckets"
|
|
2907
|
+
referencedColumns: ["id"]
|
|
2908
|
+
},
|
|
2909
|
+
]
|
|
2910
|
+
}
|
|
2956
2911
|
s3_multipart_uploads: {
|
|
2957
2912
|
Row: {
|
|
2958
2913
|
bucket_id: string
|
|
@@ -3056,31 +3011,40 @@ export type Database = {
|
|
|
3056
3011
|
[_ in never]: never
|
|
3057
3012
|
}
|
|
3058
3013
|
Functions: {
|
|
3014
|
+
add_prefixes: {
|
|
3015
|
+
Args: { _bucket_id: string; _name: string }
|
|
3016
|
+
Returns: undefined
|
|
3017
|
+
}
|
|
3059
3018
|
can_insert_object: {
|
|
3060
|
-
Args: {
|
|
3061
|
-
bucketid: string
|
|
3062
|
-
name: string
|
|
3063
|
-
owner: string
|
|
3064
|
-
metadata: Json
|
|
3065
|
-
}
|
|
3019
|
+
Args: { bucketid: string; name: string; owner: string; metadata: Json }
|
|
3066
3020
|
Returns: undefined
|
|
3067
3021
|
}
|
|
3022
|
+
delete_prefix: {
|
|
3023
|
+
Args: { _bucket_id: string; _name: string }
|
|
3024
|
+
Returns: boolean
|
|
3025
|
+
}
|
|
3068
3026
|
extension: {
|
|
3069
|
-
Args: {
|
|
3070
|
-
name: string
|
|
3071
|
-
}
|
|
3027
|
+
Args: { name: string }
|
|
3072
3028
|
Returns: string
|
|
3073
3029
|
}
|
|
3074
3030
|
filename: {
|
|
3075
|
-
Args: {
|
|
3076
|
-
name: string
|
|
3077
|
-
}
|
|
3031
|
+
Args: { name: string }
|
|
3078
3032
|
Returns: string
|
|
3079
3033
|
}
|
|
3080
3034
|
foldername: {
|
|
3081
|
-
Args: {
|
|
3082
|
-
|
|
3083
|
-
|
|
3035
|
+
Args: { name: string }
|
|
3036
|
+
Returns: string[]
|
|
3037
|
+
}
|
|
3038
|
+
get_level: {
|
|
3039
|
+
Args: { name: string }
|
|
3040
|
+
Returns: number
|
|
3041
|
+
}
|
|
3042
|
+
get_prefix: {
|
|
3043
|
+
Args: { name: string }
|
|
3044
|
+
Returns: string
|
|
3045
|
+
}
|
|
3046
|
+
get_prefixes: {
|
|
3047
|
+
Args: { name: string }
|
|
3084
3048
|
Returns: string[]
|
|
3085
3049
|
}
|
|
3086
3050
|
get_size_by_bucket: {
|
|
@@ -3145,6 +3109,63 @@ export type Database = {
|
|
|
3145
3109
|
metadata: Json
|
|
3146
3110
|
}[]
|
|
3147
3111
|
}
|
|
3112
|
+
search_legacy_v1: {
|
|
3113
|
+
Args: {
|
|
3114
|
+
prefix: string
|
|
3115
|
+
bucketname: string
|
|
3116
|
+
limits?: number
|
|
3117
|
+
levels?: number
|
|
3118
|
+
offsets?: number
|
|
3119
|
+
search?: string
|
|
3120
|
+
sortcolumn?: string
|
|
3121
|
+
sortorder?: string
|
|
3122
|
+
}
|
|
3123
|
+
Returns: {
|
|
3124
|
+
name: string
|
|
3125
|
+
id: string
|
|
3126
|
+
updated_at: string
|
|
3127
|
+
created_at: string
|
|
3128
|
+
last_accessed_at: string
|
|
3129
|
+
metadata: Json
|
|
3130
|
+
}[]
|
|
3131
|
+
}
|
|
3132
|
+
search_v1_optimised: {
|
|
3133
|
+
Args: {
|
|
3134
|
+
prefix: string
|
|
3135
|
+
bucketname: string
|
|
3136
|
+
limits?: number
|
|
3137
|
+
levels?: number
|
|
3138
|
+
offsets?: number
|
|
3139
|
+
search?: string
|
|
3140
|
+
sortcolumn?: string
|
|
3141
|
+
sortorder?: string
|
|
3142
|
+
}
|
|
3143
|
+
Returns: {
|
|
3144
|
+
name: string
|
|
3145
|
+
id: string
|
|
3146
|
+
updated_at: string
|
|
3147
|
+
created_at: string
|
|
3148
|
+
last_accessed_at: string
|
|
3149
|
+
metadata: Json
|
|
3150
|
+
}[]
|
|
3151
|
+
}
|
|
3152
|
+
search_v2: {
|
|
3153
|
+
Args: {
|
|
3154
|
+
prefix: string
|
|
3155
|
+
bucket_name: string
|
|
3156
|
+
limits?: number
|
|
3157
|
+
levels?: number
|
|
3158
|
+
start_after?: string
|
|
3159
|
+
}
|
|
3160
|
+
Returns: {
|
|
3161
|
+
key: string
|
|
3162
|
+
name: string
|
|
3163
|
+
id: string
|
|
3164
|
+
updated_at: string
|
|
3165
|
+
created_at: string
|
|
3166
|
+
metadata: Json
|
|
3167
|
+
}[]
|
|
3168
|
+
}
|
|
3148
3169
|
}
|
|
3149
3170
|
Enums: {
|
|
3150
3171
|
[_ in never]: never
|
|
@@ -3155,27 +3176,29 @@ export type Database = {
|
|
|
3155
3176
|
}
|
|
3156
3177
|
}
|
|
3157
3178
|
|
|
3158
|
-
type
|
|
3179
|
+
type DefaultSchema = Database[Extract<keyof Database, "public">]
|
|
3159
3180
|
|
|
3160
3181
|
export type Tables<
|
|
3161
|
-
|
|
3162
|
-
| keyof (
|
|
3182
|
+
DefaultSchemaTableNameOrOptions extends
|
|
3183
|
+
| keyof (DefaultSchema["Tables"] & DefaultSchema["Views"])
|
|
3163
3184
|
| { schema: keyof Database },
|
|
3164
|
-
TableName extends
|
|
3165
|
-
|
|
3166
|
-
|
|
3185
|
+
TableName extends DefaultSchemaTableNameOrOptions extends {
|
|
3186
|
+
schema: keyof Database
|
|
3187
|
+
}
|
|
3188
|
+
? keyof (Database[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] &
|
|
3189
|
+
Database[DefaultSchemaTableNameOrOptions["schema"]]["Views"])
|
|
3167
3190
|
: never = never,
|
|
3168
|
-
> =
|
|
3169
|
-
? (Database[
|
|
3170
|
-
Database[
|
|
3191
|
+
> = DefaultSchemaTableNameOrOptions extends { schema: keyof Database }
|
|
3192
|
+
? (Database[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] &
|
|
3193
|
+
Database[DefaultSchemaTableNameOrOptions["schema"]]["Views"])[TableName] extends {
|
|
3171
3194
|
Row: infer R
|
|
3172
3195
|
}
|
|
3173
3196
|
? R
|
|
3174
3197
|
: never
|
|
3175
|
-
:
|
|
3176
|
-
|
|
3177
|
-
? (
|
|
3178
|
-
|
|
3198
|
+
: DefaultSchemaTableNameOrOptions extends keyof (DefaultSchema["Tables"] &
|
|
3199
|
+
DefaultSchema["Views"])
|
|
3200
|
+
? (DefaultSchema["Tables"] &
|
|
3201
|
+
DefaultSchema["Views"])[DefaultSchemaTableNameOrOptions] extends {
|
|
3179
3202
|
Row: infer R
|
|
3180
3203
|
}
|
|
3181
3204
|
? R
|
|
@@ -3183,20 +3206,22 @@ export type Tables<
|
|
|
3183
3206
|
: never
|
|
3184
3207
|
|
|
3185
3208
|
export type TablesInsert<
|
|
3186
|
-
|
|
3187
|
-
| keyof
|
|
3209
|
+
DefaultSchemaTableNameOrOptions extends
|
|
3210
|
+
| keyof DefaultSchema["Tables"]
|
|
3188
3211
|
| { schema: keyof Database },
|
|
3189
|
-
TableName extends
|
|
3190
|
-
|
|
3212
|
+
TableName extends DefaultSchemaTableNameOrOptions extends {
|
|
3213
|
+
schema: keyof Database
|
|
3214
|
+
}
|
|
3215
|
+
? keyof Database[DefaultSchemaTableNameOrOptions["schema"]]["Tables"]
|
|
3191
3216
|
: never = never,
|
|
3192
|
-
> =
|
|
3193
|
-
? Database[
|
|
3217
|
+
> = DefaultSchemaTableNameOrOptions extends { schema: keyof Database }
|
|
3218
|
+
? Database[DefaultSchemaTableNameOrOptions["schema"]]["Tables"][TableName] extends {
|
|
3194
3219
|
Insert: infer I
|
|
3195
3220
|
}
|
|
3196
3221
|
? I
|
|
3197
3222
|
: never
|
|
3198
|
-
:
|
|
3199
|
-
?
|
|
3223
|
+
: DefaultSchemaTableNameOrOptions extends keyof DefaultSchema["Tables"]
|
|
3224
|
+
? DefaultSchema["Tables"][DefaultSchemaTableNameOrOptions] extends {
|
|
3200
3225
|
Insert: infer I
|
|
3201
3226
|
}
|
|
3202
3227
|
? I
|
|
@@ -3204,20 +3229,22 @@ export type TablesInsert<
|
|
|
3204
3229
|
: never
|
|
3205
3230
|
|
|
3206
3231
|
export type TablesUpdate<
|
|
3207
|
-
|
|
3208
|
-
| keyof
|
|
3232
|
+
DefaultSchemaTableNameOrOptions extends
|
|
3233
|
+
| keyof DefaultSchema["Tables"]
|
|
3209
3234
|
| { schema: keyof Database },
|
|
3210
|
-
TableName extends
|
|
3211
|
-
|
|
3235
|
+
TableName extends DefaultSchemaTableNameOrOptions extends {
|
|
3236
|
+
schema: keyof Database
|
|
3237
|
+
}
|
|
3238
|
+
? keyof Database[DefaultSchemaTableNameOrOptions["schema"]]["Tables"]
|
|
3212
3239
|
: never = never,
|
|
3213
|
-
> =
|
|
3214
|
-
? Database[
|
|
3240
|
+
> = DefaultSchemaTableNameOrOptions extends { schema: keyof Database }
|
|
3241
|
+
? Database[DefaultSchemaTableNameOrOptions["schema"]]["Tables"][TableName] extends {
|
|
3215
3242
|
Update: infer U
|
|
3216
3243
|
}
|
|
3217
3244
|
? U
|
|
3218
3245
|
: never
|
|
3219
|
-
:
|
|
3220
|
-
?
|
|
3246
|
+
: DefaultSchemaTableNameOrOptions extends keyof DefaultSchema["Tables"]
|
|
3247
|
+
? DefaultSchema["Tables"][DefaultSchemaTableNameOrOptions] extends {
|
|
3221
3248
|
Update: infer U
|
|
3222
3249
|
}
|
|
3223
3250
|
? U
|
|
@@ -3225,14 +3252,109 @@ export type TablesUpdate<
|
|
|
3225
3252
|
: never
|
|
3226
3253
|
|
|
3227
3254
|
export type Enums<
|
|
3228
|
-
|
|
3229
|
-
| keyof
|
|
3255
|
+
DefaultSchemaEnumNameOrOptions extends
|
|
3256
|
+
| keyof DefaultSchema["Enums"]
|
|
3230
3257
|
| { schema: keyof Database },
|
|
3231
|
-
EnumName extends
|
|
3232
|
-
|
|
3258
|
+
EnumName extends DefaultSchemaEnumNameOrOptions extends {
|
|
3259
|
+
schema: keyof Database
|
|
3260
|
+
}
|
|
3261
|
+
? keyof Database[DefaultSchemaEnumNameOrOptions["schema"]]["Enums"]
|
|
3262
|
+
: never = never,
|
|
3263
|
+
> = DefaultSchemaEnumNameOrOptions extends { schema: keyof Database }
|
|
3264
|
+
? Database[DefaultSchemaEnumNameOrOptions["schema"]]["Enums"][EnumName]
|
|
3265
|
+
: DefaultSchemaEnumNameOrOptions extends keyof DefaultSchema["Enums"]
|
|
3266
|
+
? DefaultSchema["Enums"][DefaultSchemaEnumNameOrOptions]
|
|
3267
|
+
: never
|
|
3268
|
+
|
|
3269
|
+
export type CompositeTypes<
|
|
3270
|
+
PublicCompositeTypeNameOrOptions extends
|
|
3271
|
+
| keyof DefaultSchema["CompositeTypes"]
|
|
3272
|
+
| { schema: keyof Database },
|
|
3273
|
+
CompositeTypeName extends PublicCompositeTypeNameOrOptions extends {
|
|
3274
|
+
schema: keyof Database
|
|
3275
|
+
}
|
|
3276
|
+
? keyof Database[PublicCompositeTypeNameOrOptions["schema"]]["CompositeTypes"]
|
|
3233
3277
|
: never = never,
|
|
3234
|
-
> =
|
|
3235
|
-
? Database[
|
|
3236
|
-
:
|
|
3237
|
-
?
|
|
3278
|
+
> = PublicCompositeTypeNameOrOptions extends { schema: keyof Database }
|
|
3279
|
+
? Database[PublicCompositeTypeNameOrOptions["schema"]]["CompositeTypes"][CompositeTypeName]
|
|
3280
|
+
: PublicCompositeTypeNameOrOptions extends keyof DefaultSchema["CompositeTypes"]
|
|
3281
|
+
? DefaultSchema["CompositeTypes"][PublicCompositeTypeNameOrOptions]
|
|
3238
3282
|
: never
|
|
3283
|
+
|
|
3284
|
+
export const Constants = {
|
|
3285
|
+
internal: {
|
|
3286
|
+
Enums: {},
|
|
3287
|
+
},
|
|
3288
|
+
public: {
|
|
3289
|
+
Enums: {
|
|
3290
|
+
enum_broadcast_status: ["inprogress", "completed", "stopped", "expired"],
|
|
3291
|
+
enum_chat_colors: [
|
|
3292
|
+
"#B4876E",
|
|
3293
|
+
"#A5B337",
|
|
3294
|
+
"#06CF9C",
|
|
3295
|
+
"#25D366",
|
|
3296
|
+
"#02A698",
|
|
3297
|
+
"#7D9EF1",
|
|
3298
|
+
"#007BFC",
|
|
3299
|
+
"#5E47DE",
|
|
3300
|
+
"#7F66FF",
|
|
3301
|
+
"#9333EA",
|
|
3302
|
+
"#FA6533",
|
|
3303
|
+
"#C4532D",
|
|
3304
|
+
"#DC2626",
|
|
3305
|
+
"#FF2E74",
|
|
3306
|
+
"#DB2777",
|
|
3307
|
+
],
|
|
3308
|
+
enum_chat_tickets_status: ["open", "inprogress", "closed", "archived"],
|
|
3309
|
+
enum_credit_transaction_type: ["credit", "debit"],
|
|
3310
|
+
enum_integration_name: [
|
|
3311
|
+
"org.created",
|
|
3312
|
+
"org.updated",
|
|
3313
|
+
"org.member.created",
|
|
3314
|
+
"org.member.updated",
|
|
3315
|
+
"org.phone.created",
|
|
3316
|
+
"org.phone.connected",
|
|
3317
|
+
"org.phone.disconnected",
|
|
3318
|
+
"org.subscription.trial_will_end",
|
|
3319
|
+
"chat.created",
|
|
3320
|
+
"chat.updated",
|
|
3321
|
+
"chat.notification.created",
|
|
3322
|
+
"message.created",
|
|
3323
|
+
"message.updated",
|
|
3324
|
+
"message.deleted",
|
|
3325
|
+
"message.ack.updated",
|
|
3326
|
+
"reaction.created",
|
|
3327
|
+
"reaction.updated",
|
|
3328
|
+
"ticket.created",
|
|
3329
|
+
"ticket.updated",
|
|
3330
|
+
"ticket.deleted",
|
|
3331
|
+
"org.integrations.updated",
|
|
3332
|
+
"message.flagged",
|
|
3333
|
+
"message.unflagged",
|
|
3334
|
+
"chat.label.updated",
|
|
3335
|
+
"reaction.added",
|
|
3336
|
+
"message.ticket.attached",
|
|
3337
|
+
"org.phone.qr",
|
|
3338
|
+
],
|
|
3339
|
+
enum_integration_type: [
|
|
3340
|
+
"zapier",
|
|
3341
|
+
"pabbly",
|
|
3342
|
+
"api",
|
|
3343
|
+
"webhook",
|
|
3344
|
+
"hubspot",
|
|
3345
|
+
"freshdesk",
|
|
3346
|
+
"slack",
|
|
3347
|
+
"jira",
|
|
3348
|
+
"salesforce",
|
|
3349
|
+
"zohodesk",
|
|
3350
|
+
"gsheets",
|
|
3351
|
+
],
|
|
3352
|
+
enum_member_role: ["admin", "member"],
|
|
3353
|
+
},
|
|
3354
|
+
},
|
|
3355
|
+
storage: {
|
|
3356
|
+
Enums: {},
|
|
3357
|
+
},
|
|
3358
|
+
} as const
|
|
3359
|
+
|
|
3360
|
+
|