@periskope/types 0.6.308 → 0.6.310
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/rules.types.d.ts +47 -19
- package/dist/rules.types.d.ts.map +1 -1
- package/dist/rules.types.js +51 -0
- package/dist/supabase.types.d.ts +39 -184
- package/dist/supabase.types.d.ts.map +1 -1
- package/dist/types.d.ts +205 -8
- package/dist/types.d.ts.map +1 -1
- 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 +2304 -2210
- package/src/supabase.types.ts +3538 -3538
- package/src/types.ts +1511 -1510
- package/src/workflows.types.ts +955 -955
- package/tsconfig.json +37 -37
- package/tsconfig.tsbuildinfo +1 -1
- package/update_package.ps1 +21 -21
package/dist/supabase.types.d.ts
CHANGED
|
@@ -1129,6 +1129,7 @@ export type Database = {
|
|
|
1129
1129
|
chat_type: string | null;
|
|
1130
1130
|
created_at: string;
|
|
1131
1131
|
created_by: string | null;
|
|
1132
|
+
flag_count: number | null;
|
|
1132
1133
|
group_metadata: Json | null;
|
|
1133
1134
|
id: Json | null;
|
|
1134
1135
|
initiated_by: string | null;
|
|
@@ -1158,6 +1159,7 @@ export type Database = {
|
|
|
1158
1159
|
chat_type?: string | null;
|
|
1159
1160
|
created_at?: string;
|
|
1160
1161
|
created_by?: string | null;
|
|
1162
|
+
flag_count?: number | null;
|
|
1161
1163
|
group_metadata?: Json | null;
|
|
1162
1164
|
id?: Json | null;
|
|
1163
1165
|
initiated_by?: string | null;
|
|
@@ -1187,6 +1189,7 @@ export type Database = {
|
|
|
1187
1189
|
chat_type?: string | null;
|
|
1188
1190
|
created_at?: string;
|
|
1189
1191
|
created_by?: string | null;
|
|
1192
|
+
flag_count?: number | null;
|
|
1190
1193
|
group_metadata?: Json | null;
|
|
1191
1194
|
id?: Json | null;
|
|
1192
1195
|
initiated_by?: string | null;
|
|
@@ -2379,6 +2382,7 @@ export type Database = {
|
|
|
2379
2382
|
closed_at: number | null;
|
|
2380
2383
|
created_at: string | null;
|
|
2381
2384
|
custom_properties: Json | null;
|
|
2385
|
+
flag_count: number | null;
|
|
2382
2386
|
flag_count_map: Json | null;
|
|
2383
2387
|
freshdesk_metadata: Json | null;
|
|
2384
2388
|
group_description: string | null;
|
|
@@ -2536,17 +2540,35 @@ export type Database = {
|
|
|
2536
2540
|
};
|
|
2537
2541
|
Returns: boolean;
|
|
2538
2542
|
};
|
|
2543
|
+
compute_chat_access: {
|
|
2544
|
+
Args: {
|
|
2545
|
+
org_id_input: string;
|
|
2546
|
+
chat_id_input?: string;
|
|
2547
|
+
};
|
|
2548
|
+
Returns: {
|
|
2549
|
+
result_chat_id: string;
|
|
2550
|
+
new_chat_access: Json;
|
|
2551
|
+
}[];
|
|
2552
|
+
};
|
|
2539
2553
|
custom_access_token_hook: {
|
|
2540
2554
|
Args: {
|
|
2541
2555
|
event: Json;
|
|
2542
2556
|
};
|
|
2543
2557
|
Returns: Json;
|
|
2544
2558
|
};
|
|
2545
|
-
|
|
2559
|
+
delete_org_data_in_batches: {
|
|
2546
2560
|
Args: {
|
|
2547
2561
|
org_id_input: string;
|
|
2562
|
+
table_names_input: string[];
|
|
2563
|
+
batch_size_input: number;
|
|
2564
|
+
loop_size_input: number;
|
|
2548
2565
|
};
|
|
2549
|
-
Returns:
|
|
2566
|
+
Returns: {
|
|
2567
|
+
deleted_org_id: string;
|
|
2568
|
+
table_name: string;
|
|
2569
|
+
total_deleted_rows: number;
|
|
2570
|
+
remaining_rows: number;
|
|
2571
|
+
}[];
|
|
2550
2572
|
};
|
|
2551
2573
|
gen_id: {
|
|
2552
2574
|
Args: {
|
|
@@ -2629,33 +2651,6 @@ export type Database = {
|
|
|
2629
2651
|
};
|
|
2630
2652
|
Returns: Json;
|
|
2631
2653
|
};
|
|
2632
|
-
get_communities: {
|
|
2633
|
-
Args: {
|
|
2634
|
-
org_id_input: string;
|
|
2635
|
-
community_id_input?: string[];
|
|
2636
|
-
with_members?: boolean;
|
|
2637
|
-
last_updated_at?: string;
|
|
2638
|
-
batch_limit?: number;
|
|
2639
|
-
batch_offset?: number;
|
|
2640
|
-
};
|
|
2641
|
-
Returns: Json;
|
|
2642
|
-
};
|
|
2643
|
-
get_community_groups: {
|
|
2644
|
-
Args: {
|
|
2645
|
-
community_id_input: string;
|
|
2646
|
-
org_id_input: string;
|
|
2647
|
-
org_phone_input: string;
|
|
2648
|
-
};
|
|
2649
|
-
Returns: Json;
|
|
2650
|
-
};
|
|
2651
|
-
get_community_members: {
|
|
2652
|
-
Args: {
|
|
2653
|
-
community_id_input: string;
|
|
2654
|
-
org_id_input: string;
|
|
2655
|
-
org_phone_input: string;
|
|
2656
|
-
};
|
|
2657
|
-
Returns: Json;
|
|
2658
|
-
};
|
|
2659
2654
|
get_contacts: {
|
|
2660
2655
|
Args: {
|
|
2661
2656
|
org_id_input: string;
|
|
@@ -2676,6 +2671,8 @@ export type Database = {
|
|
|
2676
2671
|
chat_type_input?: string;
|
|
2677
2672
|
start_date_input?: string;
|
|
2678
2673
|
end_date_input?: string;
|
|
2674
|
+
limit_input?: number;
|
|
2675
|
+
offset_input?: number;
|
|
2679
2676
|
};
|
|
2680
2677
|
Returns: Json;
|
|
2681
2678
|
};
|
|
@@ -2683,6 +2680,8 @@ export type Database = {
|
|
|
2683
2680
|
Args: {
|
|
2684
2681
|
org_id_input: string;
|
|
2685
2682
|
chat_id_input?: string[];
|
|
2683
|
+
offset_input?: number;
|
|
2684
|
+
limit_input?: number;
|
|
2686
2685
|
};
|
|
2687
2686
|
Returns: Json;
|
|
2688
2687
|
};
|
|
@@ -2694,6 +2693,8 @@ export type Database = {
|
|
|
2694
2693
|
end_date_input?: string;
|
|
2695
2694
|
status_input?: Database["public"]["Enums"]["enum_chat_tickets_status"];
|
|
2696
2695
|
priority_input?: number;
|
|
2696
|
+
offset_input?: number;
|
|
2697
|
+
limit_input?: number;
|
|
2697
2698
|
};
|
|
2698
2699
|
Returns: Json;
|
|
2699
2700
|
};
|
|
@@ -2705,7 +2706,7 @@ export type Database = {
|
|
|
2705
2706
|
};
|
|
2706
2707
|
get_formatted_cp_values: {
|
|
2707
2708
|
Args: {
|
|
2708
|
-
org_id_input
|
|
2709
|
+
org_id_input: string;
|
|
2709
2710
|
custom_properties_value_input?: Json;
|
|
2710
2711
|
cp_type?: string;
|
|
2711
2712
|
rules_format?: boolean;
|
|
@@ -2747,12 +2748,6 @@ export type Database = {
|
|
|
2747
2748
|
};
|
|
2748
2749
|
Returns: Json;
|
|
2749
2750
|
};
|
|
2750
|
-
get_old_credits: {
|
|
2751
|
-
Args: {
|
|
2752
|
-
org_id_input?: string;
|
|
2753
|
-
};
|
|
2754
|
-
Returns: Json;
|
|
2755
|
-
};
|
|
2756
2751
|
get_org: {
|
|
2757
2752
|
Args: {
|
|
2758
2753
|
org_id_input?: string;
|
|
@@ -2794,10 +2789,7 @@ export type Database = {
|
|
|
2794
2789
|
Args: {
|
|
2795
2790
|
org_id_input: string;
|
|
2796
2791
|
query_embedding_input: string;
|
|
2797
|
-
|
|
2798
|
-
org_id_input: string;
|
|
2799
|
-
query_embedding_input: string;
|
|
2800
|
-
confidence_score_input: number;
|
|
2792
|
+
confidence_score_input?: number;
|
|
2801
2793
|
};
|
|
2802
2794
|
Returns: Json;
|
|
2803
2795
|
};
|
|
@@ -2810,15 +2802,6 @@ export type Database = {
|
|
|
2810
2802
|
};
|
|
2811
2803
|
Returns: Json;
|
|
2812
2804
|
};
|
|
2813
|
-
get_team_metrics_between_dates: {
|
|
2814
|
-
Args: {
|
|
2815
|
-
org_id_input: string;
|
|
2816
|
-
start_date: string;
|
|
2817
|
-
end_date: string;
|
|
2818
|
-
chat_id_input?: string[];
|
|
2819
|
-
};
|
|
2820
|
-
Returns: Json;
|
|
2821
|
-
};
|
|
2822
2805
|
get_ticket_info: {
|
|
2823
2806
|
Args: {
|
|
2824
2807
|
ticket_id_input?: string;
|
|
@@ -2838,16 +2821,15 @@ export type Database = {
|
|
|
2838
2821
|
};
|
|
2839
2822
|
Returns: Json;
|
|
2840
2823
|
};
|
|
2841
|
-
|
|
2824
|
+
get_tickets: {
|
|
2842
2825
|
Args: {
|
|
2843
|
-
search_category_input: string;
|
|
2844
|
-
search_query_input: string;
|
|
2845
2826
|
org_id_input: string;
|
|
2827
|
+
ticket_id_input?: string[];
|
|
2828
|
+
last_updated_at?: string;
|
|
2829
|
+
batch_limit?: number;
|
|
2830
|
+
batch_offset?: number;
|
|
2846
2831
|
};
|
|
2847
|
-
Returns:
|
|
2848
|
-
category: string;
|
|
2849
|
-
result: Json;
|
|
2850
|
-
}[];
|
|
2832
|
+
Returns: Json;
|
|
2851
2833
|
};
|
|
2852
2834
|
list_org_from_user: {
|
|
2853
2835
|
Args: Record<PropertyKey, never>;
|
|
@@ -2857,10 +2839,6 @@ export type Database = {
|
|
|
2857
2839
|
Args: Record<PropertyKey, never>;
|
|
2858
2840
|
Returns: Database["public"]["Enums"]["enum_member_role"];
|
|
2859
2841
|
};
|
|
2860
|
-
notify_org_tasks: {
|
|
2861
|
-
Args: Record<PropertyKey, never>;
|
|
2862
|
-
Returns: string;
|
|
2863
|
-
};
|
|
2864
2842
|
refresh_chat_properties: {
|
|
2865
2843
|
Args: {
|
|
2866
2844
|
org_id_input: string;
|
|
@@ -2895,6 +2873,7 @@ export type Database = {
|
|
|
2895
2873
|
chat_type: string | null;
|
|
2896
2874
|
created_at: string;
|
|
2897
2875
|
created_by: string | null;
|
|
2876
|
+
flag_count: number | null;
|
|
2898
2877
|
group_metadata: Json | null;
|
|
2899
2878
|
id: Json | null;
|
|
2900
2879
|
initiated_by: string | null;
|
|
@@ -3113,7 +3092,6 @@ export type Database = {
|
|
|
3113
3092
|
created_at: string | null;
|
|
3114
3093
|
id: string;
|
|
3115
3094
|
last_accessed_at: string | null;
|
|
3116
|
-
level: number | null;
|
|
3117
3095
|
metadata: Json | null;
|
|
3118
3096
|
name: string | null;
|
|
3119
3097
|
owner: string | null;
|
|
@@ -3128,7 +3106,6 @@ export type Database = {
|
|
|
3128
3106
|
created_at?: string | null;
|
|
3129
3107
|
id?: string;
|
|
3130
3108
|
last_accessed_at?: string | null;
|
|
3131
|
-
level?: number | null;
|
|
3132
3109
|
metadata?: Json | null;
|
|
3133
3110
|
name?: string | null;
|
|
3134
3111
|
owner?: string | null;
|
|
@@ -3143,7 +3120,6 @@ export type Database = {
|
|
|
3143
3120
|
created_at?: string | null;
|
|
3144
3121
|
id?: string;
|
|
3145
3122
|
last_accessed_at?: string | null;
|
|
3146
|
-
level?: number | null;
|
|
3147
3123
|
metadata?: Json | null;
|
|
3148
3124
|
name?: string | null;
|
|
3149
3125
|
owner?: string | null;
|
|
@@ -3163,38 +3139,6 @@ export type Database = {
|
|
|
3163
3139
|
}
|
|
3164
3140
|
];
|
|
3165
3141
|
};
|
|
3166
|
-
prefixes: {
|
|
3167
|
-
Row: {
|
|
3168
|
-
bucket_id: string;
|
|
3169
|
-
created_at: string | null;
|
|
3170
|
-
level: number;
|
|
3171
|
-
name: string;
|
|
3172
|
-
updated_at: string | null;
|
|
3173
|
-
};
|
|
3174
|
-
Insert: {
|
|
3175
|
-
bucket_id: string;
|
|
3176
|
-
created_at?: string | null;
|
|
3177
|
-
level?: number;
|
|
3178
|
-
name: string;
|
|
3179
|
-
updated_at?: string | null;
|
|
3180
|
-
};
|
|
3181
|
-
Update: {
|
|
3182
|
-
bucket_id?: string;
|
|
3183
|
-
created_at?: string | null;
|
|
3184
|
-
level?: number;
|
|
3185
|
-
name?: string;
|
|
3186
|
-
updated_at?: string | null;
|
|
3187
|
-
};
|
|
3188
|
-
Relationships: [
|
|
3189
|
-
{
|
|
3190
|
-
foreignKeyName: "prefixes_bucketId_fkey";
|
|
3191
|
-
columns: ["bucket_id"];
|
|
3192
|
-
isOneToOne: false;
|
|
3193
|
-
referencedRelation: "buckets";
|
|
3194
|
-
referencedColumns: ["id"];
|
|
3195
|
-
}
|
|
3196
|
-
];
|
|
3197
|
-
};
|
|
3198
3142
|
s3_multipart_uploads: {
|
|
3199
3143
|
Row: {
|
|
3200
3144
|
bucket_id: string;
|
|
@@ -3298,13 +3242,6 @@ export type Database = {
|
|
|
3298
3242
|
[_ in never]: never;
|
|
3299
3243
|
};
|
|
3300
3244
|
Functions: {
|
|
3301
|
-
add_prefixes: {
|
|
3302
|
-
Args: {
|
|
3303
|
-
_bucket_id: string;
|
|
3304
|
-
_name: string;
|
|
3305
|
-
};
|
|
3306
|
-
Returns: undefined;
|
|
3307
|
-
};
|
|
3308
3245
|
can_insert_object: {
|
|
3309
3246
|
Args: {
|
|
3310
3247
|
bucketid: string;
|
|
@@ -3314,13 +3251,6 @@ export type Database = {
|
|
|
3314
3251
|
};
|
|
3315
3252
|
Returns: undefined;
|
|
3316
3253
|
};
|
|
3317
|
-
delete_prefix: {
|
|
3318
|
-
Args: {
|
|
3319
|
-
_bucket_id: string;
|
|
3320
|
-
_name: string;
|
|
3321
|
-
};
|
|
3322
|
-
Returns: boolean;
|
|
3323
|
-
};
|
|
3324
3254
|
extension: {
|
|
3325
3255
|
Args: {
|
|
3326
3256
|
name: string;
|
|
@@ -3339,24 +3269,6 @@ export type Database = {
|
|
|
3339
3269
|
};
|
|
3340
3270
|
Returns: string[];
|
|
3341
3271
|
};
|
|
3342
|
-
get_level: {
|
|
3343
|
-
Args: {
|
|
3344
|
-
name: string;
|
|
3345
|
-
};
|
|
3346
|
-
Returns: number;
|
|
3347
|
-
};
|
|
3348
|
-
get_prefix: {
|
|
3349
|
-
Args: {
|
|
3350
|
-
name: string;
|
|
3351
|
-
};
|
|
3352
|
-
Returns: string;
|
|
3353
|
-
};
|
|
3354
|
-
get_prefixes: {
|
|
3355
|
-
Args: {
|
|
3356
|
-
name: string;
|
|
3357
|
-
};
|
|
3358
|
-
Returns: string[];
|
|
3359
|
-
};
|
|
3360
3272
|
get_size_by_bucket: {
|
|
3361
3273
|
Args: Record<PropertyKey, never>;
|
|
3362
3274
|
Returns: {
|
|
@@ -3419,63 +3331,6 @@ export type Database = {
|
|
|
3419
3331
|
metadata: Json;
|
|
3420
3332
|
}[];
|
|
3421
3333
|
};
|
|
3422
|
-
search_legacy_v1: {
|
|
3423
|
-
Args: {
|
|
3424
|
-
prefix: string;
|
|
3425
|
-
bucketname: string;
|
|
3426
|
-
limits?: number;
|
|
3427
|
-
levels?: number;
|
|
3428
|
-
offsets?: number;
|
|
3429
|
-
search?: string;
|
|
3430
|
-
sortcolumn?: string;
|
|
3431
|
-
sortorder?: string;
|
|
3432
|
-
};
|
|
3433
|
-
Returns: {
|
|
3434
|
-
name: string;
|
|
3435
|
-
id: string;
|
|
3436
|
-
updated_at: string;
|
|
3437
|
-
created_at: string;
|
|
3438
|
-
last_accessed_at: string;
|
|
3439
|
-
metadata: Json;
|
|
3440
|
-
}[];
|
|
3441
|
-
};
|
|
3442
|
-
search_v1_optimised: {
|
|
3443
|
-
Args: {
|
|
3444
|
-
prefix: string;
|
|
3445
|
-
bucketname: string;
|
|
3446
|
-
limits?: number;
|
|
3447
|
-
levels?: number;
|
|
3448
|
-
offsets?: number;
|
|
3449
|
-
search?: string;
|
|
3450
|
-
sortcolumn?: string;
|
|
3451
|
-
sortorder?: string;
|
|
3452
|
-
};
|
|
3453
|
-
Returns: {
|
|
3454
|
-
name: string;
|
|
3455
|
-
id: string;
|
|
3456
|
-
updated_at: string;
|
|
3457
|
-
created_at: string;
|
|
3458
|
-
last_accessed_at: string;
|
|
3459
|
-
metadata: Json;
|
|
3460
|
-
}[];
|
|
3461
|
-
};
|
|
3462
|
-
search_v2: {
|
|
3463
|
-
Args: {
|
|
3464
|
-
prefix: string;
|
|
3465
|
-
bucket_name: string;
|
|
3466
|
-
limits?: number;
|
|
3467
|
-
levels?: number;
|
|
3468
|
-
start_after?: string;
|
|
3469
|
-
};
|
|
3470
|
-
Returns: {
|
|
3471
|
-
key: string;
|
|
3472
|
-
name: string;
|
|
3473
|
-
id: string;
|
|
3474
|
-
updated_at: string;
|
|
3475
|
-
created_at: string;
|
|
3476
|
-
metadata: Json;
|
|
3477
|
-
}[];
|
|
3478
|
-
};
|
|
3479
3334
|
};
|
|
3480
3335
|
Enums: {
|
|
3481
3336
|
[_ in never]: never;
|