@periskope/types 0.6.379 → 0.6.380
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/.turbo/daemon/2a480df21ee2b3e0-turbo.log.2025-07-29 +1 -0
- package/dist/supabase.types.d.ts +45 -288
- package/dist/supabase.types.d.ts.map +1 -1
- package/dist/supabase.types.js +2 -3
- package/dist/types.d.ts +83 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/supabase.types.ts +47 -281
- package/src/types.ts +89 -2
- package/tsconfig.tsbuildinfo +1 -1
package/src/supabase.types.ts
CHANGED
|
@@ -984,6 +984,7 @@ export type Database = {
|
|
|
984
984
|
snooze_metadata: Json | null
|
|
985
985
|
updated_at: string | null
|
|
986
986
|
zohodesk_metadata: Json | null
|
|
987
|
+
zohocrm_metadata: Json | null
|
|
987
988
|
}
|
|
988
989
|
Insert: {
|
|
989
990
|
ai_metadata?: Json | null
|
|
@@ -1008,6 +1009,7 @@ export type Database = {
|
|
|
1008
1009
|
snooze_metadata?: Json | null
|
|
1009
1010
|
updated_at?: string | null
|
|
1010
1011
|
zohodesk_metadata?: Json | null
|
|
1012
|
+
zohocrm_metadata?: Json | null
|
|
1011
1013
|
}
|
|
1012
1014
|
Update: {
|
|
1013
1015
|
ai_metadata?: Json | null
|
|
@@ -1032,6 +1034,7 @@ export type Database = {
|
|
|
1032
1034
|
snooze_metadata?: Json | null
|
|
1033
1035
|
updated_at?: string | null
|
|
1034
1036
|
zohodesk_metadata?: Json | null
|
|
1037
|
+
zohocrm_metadata?: Json | null
|
|
1035
1038
|
}
|
|
1036
1039
|
Relationships: []
|
|
1037
1040
|
}
|
|
@@ -2549,6 +2552,7 @@ export type Database = {
|
|
|
2549
2552
|
is_hubspot_connected: boolean | null
|
|
2550
2553
|
is_platform: boolean | null
|
|
2551
2554
|
is_zohodesk_connected: boolean | null
|
|
2555
|
+
is_zohocrm_connected: boolean | null
|
|
2552
2556
|
org_alias: string | null
|
|
2553
2557
|
org_id: string | null
|
|
2554
2558
|
org_image: string | null
|
|
@@ -2581,6 +2585,7 @@ export type Database = {
|
|
|
2581
2585
|
is_hubspot_connected?: never
|
|
2582
2586
|
is_platform?: boolean | null
|
|
2583
2587
|
is_zohodesk_connected?: never
|
|
2588
|
+
is_zohocrm_connected?: never
|
|
2584
2589
|
org_alias?: string | null
|
|
2585
2590
|
org_id?: string | null
|
|
2586
2591
|
org_image?: string | null
|
|
@@ -2613,6 +2618,7 @@ export type Database = {
|
|
|
2613
2618
|
is_hubspot_connected?: never
|
|
2614
2619
|
is_platform?: boolean | null
|
|
2615
2620
|
is_zohodesk_connected?: never
|
|
2621
|
+
is_zohocrm_connected?: never
|
|
2616
2622
|
org_alias?: string | null
|
|
2617
2623
|
org_id?: string | null
|
|
2618
2624
|
org_image?: string | null
|
|
@@ -3206,6 +3212,7 @@ export type Database = {
|
|
|
3206
3212
|
| "jira"
|
|
3207
3213
|
| "salesforce"
|
|
3208
3214
|
| "zohodesk"
|
|
3215
|
+
| "zohocrm"
|
|
3209
3216
|
| "gsheets"
|
|
3210
3217
|
enum_member_role: "admin" | "member"
|
|
3211
3218
|
}
|
|
@@ -3226,7 +3233,6 @@ export type Database = {
|
|
|
3226
3233
|
owner: string | null
|
|
3227
3234
|
owner_id: string | null
|
|
3228
3235
|
public: boolean | null
|
|
3229
|
-
type: Database["storage"]["Enums"]["buckettype"]
|
|
3230
3236
|
updated_at: string | null
|
|
3231
3237
|
}
|
|
3232
3238
|
Insert: {
|
|
@@ -3239,7 +3245,6 @@ export type Database = {
|
|
|
3239
3245
|
owner?: string | null
|
|
3240
3246
|
owner_id?: string | null
|
|
3241
3247
|
public?: boolean | null
|
|
3242
|
-
type?: Database["storage"]["Enums"]["buckettype"]
|
|
3243
3248
|
updated_at?: string | null
|
|
3244
3249
|
}
|
|
3245
3250
|
Update: {
|
|
@@ -3252,112 +3257,10 @@ export type Database = {
|
|
|
3252
3257
|
owner?: string | null
|
|
3253
3258
|
owner_id?: string | null
|
|
3254
3259
|
public?: boolean | null
|
|
3255
|
-
type?: Database["storage"]["Enums"]["buckettype"]
|
|
3256
3260
|
updated_at?: string | null
|
|
3257
3261
|
}
|
|
3258
3262
|
Relationships: []
|
|
3259
3263
|
}
|
|
3260
|
-
buckets_analytics: {
|
|
3261
|
-
Row: {
|
|
3262
|
-
created_at: string
|
|
3263
|
-
format: string
|
|
3264
|
-
id: string
|
|
3265
|
-
type: Database["storage"]["Enums"]["buckettype"]
|
|
3266
|
-
updated_at: string
|
|
3267
|
-
}
|
|
3268
|
-
Insert: {
|
|
3269
|
-
created_at?: string
|
|
3270
|
-
format?: string
|
|
3271
|
-
id: string
|
|
3272
|
-
type?: Database["storage"]["Enums"]["buckettype"]
|
|
3273
|
-
updated_at?: string
|
|
3274
|
-
}
|
|
3275
|
-
Update: {
|
|
3276
|
-
created_at?: string
|
|
3277
|
-
format?: string
|
|
3278
|
-
id?: string
|
|
3279
|
-
type?: Database["storage"]["Enums"]["buckettype"]
|
|
3280
|
-
updated_at?: string
|
|
3281
|
-
}
|
|
3282
|
-
Relationships: []
|
|
3283
|
-
}
|
|
3284
|
-
iceberg_namespaces: {
|
|
3285
|
-
Row: {
|
|
3286
|
-
bucket_id: string
|
|
3287
|
-
created_at: string
|
|
3288
|
-
id: string
|
|
3289
|
-
name: string
|
|
3290
|
-
updated_at: string
|
|
3291
|
-
}
|
|
3292
|
-
Insert: {
|
|
3293
|
-
bucket_id: string
|
|
3294
|
-
created_at?: string
|
|
3295
|
-
id?: string
|
|
3296
|
-
name: string
|
|
3297
|
-
updated_at?: string
|
|
3298
|
-
}
|
|
3299
|
-
Update: {
|
|
3300
|
-
bucket_id?: string
|
|
3301
|
-
created_at?: string
|
|
3302
|
-
id?: string
|
|
3303
|
-
name?: string
|
|
3304
|
-
updated_at?: string
|
|
3305
|
-
}
|
|
3306
|
-
Relationships: [
|
|
3307
|
-
{
|
|
3308
|
-
foreignKeyName: "iceberg_namespaces_bucket_id_fkey"
|
|
3309
|
-
columns: ["bucket_id"]
|
|
3310
|
-
isOneToOne: false
|
|
3311
|
-
referencedRelation: "buckets_analytics"
|
|
3312
|
-
referencedColumns: ["id"]
|
|
3313
|
-
},
|
|
3314
|
-
]
|
|
3315
|
-
}
|
|
3316
|
-
iceberg_tables: {
|
|
3317
|
-
Row: {
|
|
3318
|
-
bucket_id: string
|
|
3319
|
-
created_at: string
|
|
3320
|
-
id: string
|
|
3321
|
-
location: string
|
|
3322
|
-
name: string
|
|
3323
|
-
namespace_id: string
|
|
3324
|
-
updated_at: string
|
|
3325
|
-
}
|
|
3326
|
-
Insert: {
|
|
3327
|
-
bucket_id: string
|
|
3328
|
-
created_at?: string
|
|
3329
|
-
id?: string
|
|
3330
|
-
location: string
|
|
3331
|
-
name: string
|
|
3332
|
-
namespace_id: string
|
|
3333
|
-
updated_at?: string
|
|
3334
|
-
}
|
|
3335
|
-
Update: {
|
|
3336
|
-
bucket_id?: string
|
|
3337
|
-
created_at?: string
|
|
3338
|
-
id?: string
|
|
3339
|
-
location?: string
|
|
3340
|
-
name?: string
|
|
3341
|
-
namespace_id?: string
|
|
3342
|
-
updated_at?: string
|
|
3343
|
-
}
|
|
3344
|
-
Relationships: [
|
|
3345
|
-
{
|
|
3346
|
-
foreignKeyName: "iceberg_tables_bucket_id_fkey"
|
|
3347
|
-
columns: ["bucket_id"]
|
|
3348
|
-
isOneToOne: false
|
|
3349
|
-
referencedRelation: "buckets_analytics"
|
|
3350
|
-
referencedColumns: ["id"]
|
|
3351
|
-
},
|
|
3352
|
-
{
|
|
3353
|
-
foreignKeyName: "iceberg_tables_namespace_id_fkey"
|
|
3354
|
-
columns: ["namespace_id"]
|
|
3355
|
-
isOneToOne: false
|
|
3356
|
-
referencedRelation: "iceberg_namespaces"
|
|
3357
|
-
referencedColumns: ["id"]
|
|
3358
|
-
},
|
|
3359
|
-
]
|
|
3360
|
-
}
|
|
3361
3264
|
migrations: {
|
|
3362
3265
|
Row: {
|
|
3363
3266
|
executed_at: string | null
|
|
@@ -3385,7 +3288,6 @@ export type Database = {
|
|
|
3385
3288
|
created_at: string | null
|
|
3386
3289
|
id: string
|
|
3387
3290
|
last_accessed_at: string | null
|
|
3388
|
-
level: number | null
|
|
3389
3291
|
metadata: Json | null
|
|
3390
3292
|
name: string | null
|
|
3391
3293
|
owner: string | null
|
|
@@ -3400,7 +3302,6 @@ export type Database = {
|
|
|
3400
3302
|
created_at?: string | null
|
|
3401
3303
|
id?: string
|
|
3402
3304
|
last_accessed_at?: string | null
|
|
3403
|
-
level?: number | null
|
|
3404
3305
|
metadata?: Json | null
|
|
3405
3306
|
name?: string | null
|
|
3406
3307
|
owner?: string | null
|
|
@@ -3415,7 +3316,6 @@ export type Database = {
|
|
|
3415
3316
|
created_at?: string | null
|
|
3416
3317
|
id?: string
|
|
3417
3318
|
last_accessed_at?: string | null
|
|
3418
|
-
level?: number | null
|
|
3419
3319
|
metadata?: Json | null
|
|
3420
3320
|
name?: string | null
|
|
3421
3321
|
owner?: string | null
|
|
@@ -3435,38 +3335,6 @@ export type Database = {
|
|
|
3435
3335
|
},
|
|
3436
3336
|
]
|
|
3437
3337
|
}
|
|
3438
|
-
prefixes: {
|
|
3439
|
-
Row: {
|
|
3440
|
-
bucket_id: string
|
|
3441
|
-
created_at: string | null
|
|
3442
|
-
level: number
|
|
3443
|
-
name: string
|
|
3444
|
-
updated_at: string | null
|
|
3445
|
-
}
|
|
3446
|
-
Insert: {
|
|
3447
|
-
bucket_id: string
|
|
3448
|
-
created_at?: string | null
|
|
3449
|
-
level?: number
|
|
3450
|
-
name: string
|
|
3451
|
-
updated_at?: string | null
|
|
3452
|
-
}
|
|
3453
|
-
Update: {
|
|
3454
|
-
bucket_id?: string
|
|
3455
|
-
created_at?: string | null
|
|
3456
|
-
level?: number
|
|
3457
|
-
name?: string
|
|
3458
|
-
updated_at?: string | null
|
|
3459
|
-
}
|
|
3460
|
-
Relationships: [
|
|
3461
|
-
{
|
|
3462
|
-
foreignKeyName: "prefixes_bucketId_fkey"
|
|
3463
|
-
columns: ["bucket_id"]
|
|
3464
|
-
isOneToOne: false
|
|
3465
|
-
referencedRelation: "buckets"
|
|
3466
|
-
referencedColumns: ["id"]
|
|
3467
|
-
},
|
|
3468
|
-
]
|
|
3469
|
-
}
|
|
3470
3338
|
s3_multipart_uploads: {
|
|
3471
3339
|
Row: {
|
|
3472
3340
|
bucket_id: string
|
|
@@ -3570,22 +3438,10 @@ export type Database = {
|
|
|
3570
3438
|
[_ in never]: never
|
|
3571
3439
|
}
|
|
3572
3440
|
Functions: {
|
|
3573
|
-
add_prefixes: {
|
|
3574
|
-
Args: { _bucket_id: string; _name: string }
|
|
3575
|
-
Returns: undefined
|
|
3576
|
-
}
|
|
3577
3441
|
can_insert_object: {
|
|
3578
|
-
Args: { bucketid: string;
|
|
3442
|
+
Args: { bucketid: string; name: string; owner: string; metadata: Json }
|
|
3579
3443
|
Returns: undefined
|
|
3580
3444
|
}
|
|
3581
|
-
delete_leaf_prefixes: {
|
|
3582
|
-
Args: { bucket_ids: string[]; names: string[] }
|
|
3583
|
-
Returns: undefined
|
|
3584
|
-
}
|
|
3585
|
-
delete_prefix: {
|
|
3586
|
-
Args: { _bucket_id: string; _name: string }
|
|
3587
|
-
Returns: boolean
|
|
3588
|
-
}
|
|
3589
3445
|
extension: {
|
|
3590
3446
|
Args: { name: string }
|
|
3591
3447
|
Returns: string
|
|
@@ -3598,148 +3454,71 @@ export type Database = {
|
|
|
3598
3454
|
Args: { name: string }
|
|
3599
3455
|
Returns: string[]
|
|
3600
3456
|
}
|
|
3601
|
-
get_level: {
|
|
3602
|
-
Args: { name: string }
|
|
3603
|
-
Returns: number
|
|
3604
|
-
}
|
|
3605
|
-
get_prefix: {
|
|
3606
|
-
Args: { name: string }
|
|
3607
|
-
Returns: string
|
|
3608
|
-
}
|
|
3609
|
-
get_prefixes: {
|
|
3610
|
-
Args: { name: string }
|
|
3611
|
-
Returns: string[]
|
|
3612
|
-
}
|
|
3613
3457
|
get_size_by_bucket: {
|
|
3614
3458
|
Args: Record<PropertyKey, never>
|
|
3615
3459
|
Returns: {
|
|
3616
|
-
bucket_id: string
|
|
3617
3460
|
size: number
|
|
3461
|
+
bucket_id: string
|
|
3618
3462
|
}[]
|
|
3619
3463
|
}
|
|
3620
3464
|
list_multipart_uploads_with_delimiter: {
|
|
3621
3465
|
Args: {
|
|
3622
3466
|
bucket_id: string
|
|
3467
|
+
prefix_param: string
|
|
3623
3468
|
delimiter_param: string
|
|
3624
3469
|
max_keys?: number
|
|
3625
3470
|
next_key_token?: string
|
|
3626
3471
|
next_upload_token?: string
|
|
3627
|
-
prefix_param: string
|
|
3628
3472
|
}
|
|
3629
3473
|
Returns: {
|
|
3630
|
-
created_at: string
|
|
3631
|
-
id: string
|
|
3632
3474
|
key: string
|
|
3475
|
+
id: string
|
|
3476
|
+
created_at: string
|
|
3633
3477
|
}[]
|
|
3634
3478
|
}
|
|
3635
3479
|
list_objects_with_delimiter: {
|
|
3636
3480
|
Args: {
|
|
3637
3481
|
bucket_id: string
|
|
3482
|
+
prefix_param: string
|
|
3638
3483
|
delimiter_param: string
|
|
3639
3484
|
max_keys?: number
|
|
3640
|
-
next_token?: string
|
|
3641
|
-
prefix_param: string
|
|
3642
3485
|
start_after?: string
|
|
3486
|
+
next_token?: string
|
|
3643
3487
|
}
|
|
3644
3488
|
Returns: {
|
|
3489
|
+
name: string
|
|
3645
3490
|
id: string
|
|
3646
3491
|
metadata: Json
|
|
3647
|
-
name: string
|
|
3648
3492
|
updated_at: string
|
|
3649
3493
|
}[]
|
|
3650
3494
|
}
|
|
3651
|
-
lock_top_prefixes: {
|
|
3652
|
-
Args: { bucket_ids: string[]; names: string[] }
|
|
3653
|
-
Returns: undefined
|
|
3654
|
-
}
|
|
3655
3495
|
operation: {
|
|
3656
3496
|
Args: Record<PropertyKey, never>
|
|
3657
3497
|
Returns: string
|
|
3658
3498
|
}
|
|
3659
3499
|
search: {
|
|
3660
3500
|
Args: {
|
|
3661
|
-
bucketname: string
|
|
3662
|
-
levels?: number
|
|
3663
|
-
limits?: number
|
|
3664
|
-
offsets?: number
|
|
3665
3501
|
prefix: string
|
|
3666
|
-
search?: string
|
|
3667
|
-
sortcolumn?: string
|
|
3668
|
-
sortorder?: string
|
|
3669
|
-
}
|
|
3670
|
-
Returns: {
|
|
3671
|
-
created_at: string
|
|
3672
|
-
id: string
|
|
3673
|
-
last_accessed_at: string
|
|
3674
|
-
metadata: Json
|
|
3675
|
-
name: string
|
|
3676
|
-
updated_at: string
|
|
3677
|
-
}[]
|
|
3678
|
-
}
|
|
3679
|
-
search_legacy_v1: {
|
|
3680
|
-
Args: {
|
|
3681
3502
|
bucketname: string
|
|
3682
|
-
levels?: number
|
|
3683
3503
|
limits?: number
|
|
3684
|
-
offsets?: number
|
|
3685
|
-
prefix: string
|
|
3686
|
-
search?: string
|
|
3687
|
-
sortcolumn?: string
|
|
3688
|
-
sortorder?: string
|
|
3689
|
-
}
|
|
3690
|
-
Returns: {
|
|
3691
|
-
created_at: string
|
|
3692
|
-
id: string
|
|
3693
|
-
last_accessed_at: string
|
|
3694
|
-
metadata: Json
|
|
3695
|
-
name: string
|
|
3696
|
-
updated_at: string
|
|
3697
|
-
}[]
|
|
3698
|
-
}
|
|
3699
|
-
search_v1_optimised: {
|
|
3700
|
-
Args: {
|
|
3701
|
-
bucketname: string
|
|
3702
3504
|
levels?: number
|
|
3703
|
-
limits?: number
|
|
3704
3505
|
offsets?: number
|
|
3705
|
-
prefix: string
|
|
3706
3506
|
search?: string
|
|
3707
3507
|
sortcolumn?: string
|
|
3708
3508
|
sortorder?: string
|
|
3709
3509
|
}
|
|
3710
3510
|
Returns: {
|
|
3711
|
-
created_at: string
|
|
3712
|
-
id: string
|
|
3713
|
-
last_accessed_at: string
|
|
3714
|
-
metadata: Json
|
|
3715
3511
|
name: string
|
|
3512
|
+
id: string
|
|
3716
3513
|
updated_at: string
|
|
3717
|
-
}[]
|
|
3718
|
-
}
|
|
3719
|
-
search_v2: {
|
|
3720
|
-
Args: {
|
|
3721
|
-
bucket_name: string
|
|
3722
|
-
levels?: number
|
|
3723
|
-
limits?: number
|
|
3724
|
-
prefix: string
|
|
3725
|
-
sort_column?: string
|
|
3726
|
-
sort_column_after?: string
|
|
3727
|
-
sort_order?: string
|
|
3728
|
-
start_after?: string
|
|
3729
|
-
}
|
|
3730
|
-
Returns: {
|
|
3731
3514
|
created_at: string
|
|
3732
|
-
id: string
|
|
3733
|
-
key: string
|
|
3734
3515
|
last_accessed_at: string
|
|
3735
3516
|
metadata: Json
|
|
3736
|
-
name: string
|
|
3737
|
-
updated_at: string
|
|
3738
3517
|
}[]
|
|
3739
3518
|
}
|
|
3740
3519
|
}
|
|
3741
3520
|
Enums: {
|
|
3742
|
-
|
|
3521
|
+
[_ in never]: never
|
|
3743
3522
|
}
|
|
3744
3523
|
CompositeTypes: {
|
|
3745
3524
|
[_ in never]: never
|
|
@@ -3747,25 +3526,21 @@ export type Database = {
|
|
|
3747
3526
|
}
|
|
3748
3527
|
}
|
|
3749
3528
|
|
|
3750
|
-
type
|
|
3751
|
-
|
|
3752
|
-
type DefaultSchema = DatabaseWithoutInternals[Extract<keyof Database, "public">]
|
|
3529
|
+
type DefaultSchema = Database[Extract<keyof Database, "public">]
|
|
3753
3530
|
|
|
3754
3531
|
export type Tables<
|
|
3755
3532
|
DefaultSchemaTableNameOrOptions extends
|
|
3756
3533
|
| keyof (DefaultSchema["Tables"] & DefaultSchema["Views"])
|
|
3757
|
-
| { schema: keyof
|
|
3534
|
+
| { schema: keyof Database },
|
|
3758
3535
|
TableName extends DefaultSchemaTableNameOrOptions extends {
|
|
3759
|
-
schema: keyof
|
|
3536
|
+
schema: keyof Database
|
|
3760
3537
|
}
|
|
3761
|
-
? keyof (
|
|
3762
|
-
|
|
3538
|
+
? keyof (Database[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] &
|
|
3539
|
+
Database[DefaultSchemaTableNameOrOptions["schema"]]["Views"])
|
|
3763
3540
|
: never = never,
|
|
3764
|
-
> = DefaultSchemaTableNameOrOptions extends {
|
|
3765
|
-
schema
|
|
3766
|
-
|
|
3767
|
-
? (DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] &
|
|
3768
|
-
DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Views"])[TableName] extends {
|
|
3541
|
+
> = DefaultSchemaTableNameOrOptions extends { schema: keyof Database }
|
|
3542
|
+
? (Database[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] &
|
|
3543
|
+
Database[DefaultSchemaTableNameOrOptions["schema"]]["Views"])[TableName] extends {
|
|
3769
3544
|
Row: infer R
|
|
3770
3545
|
}
|
|
3771
3546
|
? R
|
|
@@ -3783,16 +3558,14 @@ export type Tables<
|
|
|
3783
3558
|
export type TablesInsert<
|
|
3784
3559
|
DefaultSchemaTableNameOrOptions extends
|
|
3785
3560
|
| keyof DefaultSchema["Tables"]
|
|
3786
|
-
| { schema: keyof
|
|
3561
|
+
| { schema: keyof Database },
|
|
3787
3562
|
TableName extends DefaultSchemaTableNameOrOptions extends {
|
|
3788
|
-
schema: keyof
|
|
3563
|
+
schema: keyof Database
|
|
3789
3564
|
}
|
|
3790
|
-
? keyof
|
|
3565
|
+
? keyof Database[DefaultSchemaTableNameOrOptions["schema"]]["Tables"]
|
|
3791
3566
|
: never = never,
|
|
3792
|
-
> = DefaultSchemaTableNameOrOptions extends {
|
|
3793
|
-
schema
|
|
3794
|
-
}
|
|
3795
|
-
? DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"][TableName] extends {
|
|
3567
|
+
> = DefaultSchemaTableNameOrOptions extends { schema: keyof Database }
|
|
3568
|
+
? Database[DefaultSchemaTableNameOrOptions["schema"]]["Tables"][TableName] extends {
|
|
3796
3569
|
Insert: infer I
|
|
3797
3570
|
}
|
|
3798
3571
|
? I
|
|
@@ -3808,16 +3581,14 @@ export type TablesInsert<
|
|
|
3808
3581
|
export type TablesUpdate<
|
|
3809
3582
|
DefaultSchemaTableNameOrOptions extends
|
|
3810
3583
|
| keyof DefaultSchema["Tables"]
|
|
3811
|
-
| { schema: keyof
|
|
3584
|
+
| { schema: keyof Database },
|
|
3812
3585
|
TableName extends DefaultSchemaTableNameOrOptions extends {
|
|
3813
|
-
schema: keyof
|
|
3586
|
+
schema: keyof Database
|
|
3814
3587
|
}
|
|
3815
|
-
? keyof
|
|
3588
|
+
? keyof Database[DefaultSchemaTableNameOrOptions["schema"]]["Tables"]
|
|
3816
3589
|
: never = never,
|
|
3817
|
-
> = DefaultSchemaTableNameOrOptions extends {
|
|
3818
|
-
schema
|
|
3819
|
-
}
|
|
3820
|
-
? DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"][TableName] extends {
|
|
3590
|
+
> = DefaultSchemaTableNameOrOptions extends { schema: keyof Database }
|
|
3591
|
+
? Database[DefaultSchemaTableNameOrOptions["schema"]]["Tables"][TableName] extends {
|
|
3821
3592
|
Update: infer U
|
|
3822
3593
|
}
|
|
3823
3594
|
? U
|
|
@@ -3833,16 +3604,14 @@ export type TablesUpdate<
|
|
|
3833
3604
|
export type Enums<
|
|
3834
3605
|
DefaultSchemaEnumNameOrOptions extends
|
|
3835
3606
|
| keyof DefaultSchema["Enums"]
|
|
3836
|
-
| { schema: keyof
|
|
3607
|
+
| { schema: keyof Database },
|
|
3837
3608
|
EnumName extends DefaultSchemaEnumNameOrOptions extends {
|
|
3838
|
-
schema: keyof
|
|
3609
|
+
schema: keyof Database
|
|
3839
3610
|
}
|
|
3840
|
-
? keyof
|
|
3611
|
+
? keyof Database[DefaultSchemaEnumNameOrOptions["schema"]]["Enums"]
|
|
3841
3612
|
: never = never,
|
|
3842
|
-
> = DefaultSchemaEnumNameOrOptions extends {
|
|
3843
|
-
schema
|
|
3844
|
-
}
|
|
3845
|
-
? DatabaseWithoutInternals[DefaultSchemaEnumNameOrOptions["schema"]]["Enums"][EnumName]
|
|
3613
|
+
> = DefaultSchemaEnumNameOrOptions extends { schema: keyof Database }
|
|
3614
|
+
? Database[DefaultSchemaEnumNameOrOptions["schema"]]["Enums"][EnumName]
|
|
3846
3615
|
: DefaultSchemaEnumNameOrOptions extends keyof DefaultSchema["Enums"]
|
|
3847
3616
|
? DefaultSchema["Enums"][DefaultSchemaEnumNameOrOptions]
|
|
3848
3617
|
: never
|
|
@@ -3850,16 +3619,14 @@ export type Enums<
|
|
|
3850
3619
|
export type CompositeTypes<
|
|
3851
3620
|
PublicCompositeTypeNameOrOptions extends
|
|
3852
3621
|
| keyof DefaultSchema["CompositeTypes"]
|
|
3853
|
-
| { schema: keyof
|
|
3622
|
+
| { schema: keyof Database },
|
|
3854
3623
|
CompositeTypeName extends PublicCompositeTypeNameOrOptions extends {
|
|
3855
|
-
schema: keyof
|
|
3624
|
+
schema: keyof Database
|
|
3856
3625
|
}
|
|
3857
|
-
? keyof
|
|
3626
|
+
? keyof Database[PublicCompositeTypeNameOrOptions["schema"]]["CompositeTypes"]
|
|
3858
3627
|
: never = never,
|
|
3859
|
-
> = PublicCompositeTypeNameOrOptions extends {
|
|
3860
|
-
schema
|
|
3861
|
-
}
|
|
3862
|
-
? DatabaseWithoutInternals[PublicCompositeTypeNameOrOptions["schema"]]["CompositeTypes"][CompositeTypeName]
|
|
3628
|
+
> = PublicCompositeTypeNameOrOptions extends { schema: keyof Database }
|
|
3629
|
+
? Database[PublicCompositeTypeNameOrOptions["schema"]]["CompositeTypes"][CompositeTypeName]
|
|
3863
3630
|
: PublicCompositeTypeNameOrOptions extends keyof DefaultSchema["CompositeTypes"]
|
|
3864
3631
|
? DefaultSchema["CompositeTypes"][PublicCompositeTypeNameOrOptions]
|
|
3865
3632
|
: never
|
|
@@ -3934,15 +3701,14 @@ export const Constants = {
|
|
|
3934
3701
|
"jira",
|
|
3935
3702
|
"salesforce",
|
|
3936
3703
|
"zohodesk",
|
|
3704
|
+
"zohocrm",
|
|
3937
3705
|
"gsheets",
|
|
3938
3706
|
],
|
|
3939
3707
|
enum_member_role: ["admin", "member"],
|
|
3940
3708
|
},
|
|
3941
3709
|
},
|
|
3942
3710
|
storage: {
|
|
3943
|
-
Enums: {
|
|
3944
|
-
buckettype: ["STANDARD", "ANALYTICS"],
|
|
3945
|
-
},
|
|
3711
|
+
Enums: {},
|
|
3946
3712
|
},
|
|
3947
3713
|
} as const
|
|
3948
3714
|
|
package/src/types.ts
CHANGED
|
@@ -48,7 +48,7 @@ export type OrgPlanEnterprise = {
|
|
|
48
48
|
cancelled_at?: number;
|
|
49
49
|
cancel_schedule_created_at?: number;
|
|
50
50
|
subscription_status?: string;
|
|
51
|
-
discounts?: Subscription.Discount[]
|
|
51
|
+
discounts?: Subscription.Discount[];
|
|
52
52
|
};
|
|
53
53
|
|
|
54
54
|
export type OrgPlanNonEnterprise = {
|
|
@@ -68,7 +68,7 @@ export type OrgPlanNonEnterprise = {
|
|
|
68
68
|
cancelled_at?: number;
|
|
69
69
|
cancel_schedule_created_at?: number;
|
|
70
70
|
subscription_status?: string;
|
|
71
|
-
discounts?: Subscription.Discount[]
|
|
71
|
+
discounts?: Subscription.Discount[];
|
|
72
72
|
};
|
|
73
73
|
|
|
74
74
|
export type OrgPlan<T extends AllPlans | Enterprise> = T extends Enterprise
|
|
@@ -105,6 +105,8 @@ export type OrgPreferencesValue = {
|
|
|
105
105
|
}[OrgPreferenceKey];
|
|
106
106
|
|
|
107
107
|
export type OrgAISettings = {
|
|
108
|
+
is_ai_agent_enabled?: boolean;
|
|
109
|
+
is_ai_agent_default_on?: boolean;
|
|
108
110
|
ai_nickname?: string;
|
|
109
111
|
confidence_score?: string;
|
|
110
112
|
company_overview?: string;
|
|
@@ -315,6 +317,7 @@ export type OrgType = OverrideProperties<
|
|
|
315
317
|
is_hubspot_connected: boolean;
|
|
316
318
|
is_freshdesk_connected: boolean;
|
|
317
319
|
is_zohodesk_connected: boolean;
|
|
320
|
+
is_zohocrm_connected: boolean;
|
|
318
321
|
access_scopes: AccessScopes;
|
|
319
322
|
rules: Rule[];
|
|
320
323
|
phone_limit: number;
|
|
@@ -370,6 +373,7 @@ export type ChatType = Merge<
|
|
|
370
373
|
common_chats?: string[];
|
|
371
374
|
freshdesk_metadata?: Record<string, any>;
|
|
372
375
|
zohodesk_metadata?: Record<string, any>;
|
|
376
|
+
zohocrm_metadata?: Record<string,any>;
|
|
373
377
|
pinned_messages?: {
|
|
374
378
|
message_id: string;
|
|
375
379
|
pinned_at: number;
|
|
@@ -1617,3 +1621,86 @@ export type ZohodeskIntegrationTokenType = OverrideProperties<
|
|
|
1617
1621
|
};
|
|
1618
1622
|
}
|
|
1619
1623
|
>;
|
|
1624
|
+
|
|
1625
|
+
export type ZohoCrmIntegrationTokenType = OverrideProperties<
|
|
1626
|
+
Tables<'tbl_integration_tokens'>,
|
|
1627
|
+
{
|
|
1628
|
+
type: 'zohocrm';
|
|
1629
|
+
token_metadata: {
|
|
1630
|
+
access_token: string;
|
|
1631
|
+
refresh_token: string;
|
|
1632
|
+
scope: string;
|
|
1633
|
+
api_domain: string;
|
|
1634
|
+
token_type: string;
|
|
1635
|
+
expires_in: number;
|
|
1636
|
+
domain_extension: string;
|
|
1637
|
+
authDomain: string;
|
|
1638
|
+
integration_org_id: string;
|
|
1639
|
+
chat_messages_auto_logging?: boolean;
|
|
1640
|
+
auto_create_entity?: 'contact' | 'account' | 'lead' | 'none';
|
|
1641
|
+
org_details: {
|
|
1642
|
+
id: string;
|
|
1643
|
+
name: string;
|
|
1644
|
+
currency: string;
|
|
1645
|
+
time_zone: string;
|
|
1646
|
+
currency_symbol: string;
|
|
1647
|
+
currency_locale: string;
|
|
1648
|
+
website: string;
|
|
1649
|
+
description: string | null;
|
|
1650
|
+
phone: string | null;
|
|
1651
|
+
mobile: string | null;
|
|
1652
|
+
fax: string | null;
|
|
1653
|
+
street: string;
|
|
1654
|
+
city: string;
|
|
1655
|
+
state: string;
|
|
1656
|
+
zip: string;
|
|
1657
|
+
country: string;
|
|
1658
|
+
logo_url: string;
|
|
1659
|
+
is_sandbox: boolean;
|
|
1660
|
+
is_admin_in_org: boolean;
|
|
1661
|
+
employee_count: number;
|
|
1662
|
+
primary_contact: string;
|
|
1663
|
+
};
|
|
1664
|
+
modules: Array<{
|
|
1665
|
+
id: string;
|
|
1666
|
+
name: string;
|
|
1667
|
+
api_name: string;
|
|
1668
|
+
singular_label: string;
|
|
1669
|
+
plural_label: string;
|
|
1670
|
+
is_custom: boolean;
|
|
1671
|
+
is_creatable: boolean;
|
|
1672
|
+
is_editable: boolean;
|
|
1673
|
+
is_deletable: boolean;
|
|
1674
|
+
is_webform_supported: boolean;
|
|
1675
|
+
sequence_number: number;
|
|
1676
|
+
fields: Array<{
|
|
1677
|
+
id: string;
|
|
1678
|
+
name: string;
|
|
1679
|
+
api_name: string;
|
|
1680
|
+
data_type: string;
|
|
1681
|
+
required: boolean;
|
|
1682
|
+
is_custom: boolean;
|
|
1683
|
+
is_editable: boolean;
|
|
1684
|
+
is_creatable: boolean;
|
|
1685
|
+
is_webform_supported: boolean;
|
|
1686
|
+
length: number;
|
|
1687
|
+
decimal_places: number | null;
|
|
1688
|
+
default_value: string | null;
|
|
1689
|
+
picklist_values: Array<{
|
|
1690
|
+
display_value: string;
|
|
1691
|
+
actual_value: string;
|
|
1692
|
+
}> | null;
|
|
1693
|
+
}>;
|
|
1694
|
+
}>;
|
|
1695
|
+
webhooks?: {
|
|
1696
|
+
id: string;
|
|
1697
|
+
url: string;
|
|
1698
|
+
name: string;
|
|
1699
|
+
events: string[];
|
|
1700
|
+
is_active: boolean;
|
|
1701
|
+
created_time: string;
|
|
1702
|
+
modified_time: string;
|
|
1703
|
+
};
|
|
1704
|
+
};
|
|
1705
|
+
}
|
|
1706
|
+
>;
|