@periskope/types 0.6.427 → 0.6.428
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 +244 -0
- package/dist/supabase.types.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/supabase.types.ts +241 -0
package/dist/supabase.types.d.ts
CHANGED
|
@@ -25,6 +25,24 @@ export type Database = {
|
|
|
25
25
|
};
|
|
26
26
|
Relationships: [];
|
|
27
27
|
};
|
|
28
|
+
org_feature_flags_cache: {
|
|
29
|
+
Row: {
|
|
30
|
+
computed_at: string;
|
|
31
|
+
feature_flags: Json;
|
|
32
|
+
org_id: string;
|
|
33
|
+
};
|
|
34
|
+
Insert: {
|
|
35
|
+
computed_at?: string;
|
|
36
|
+
feature_flags?: Json;
|
|
37
|
+
org_id: string;
|
|
38
|
+
};
|
|
39
|
+
Update: {
|
|
40
|
+
computed_at?: string;
|
|
41
|
+
feature_flags?: Json;
|
|
42
|
+
org_id?: string;
|
|
43
|
+
};
|
|
44
|
+
Relationships: [];
|
|
45
|
+
};
|
|
28
46
|
org_phone_logs: {
|
|
29
47
|
Row: {
|
|
30
48
|
connection_history: Json | null;
|
|
@@ -793,6 +811,13 @@ export type Database = {
|
|
|
793
811
|
isOneToOne: false;
|
|
794
812
|
referencedRelation: "view_org";
|
|
795
813
|
referencedColumns: ["org_id"];
|
|
814
|
+
},
|
|
815
|
+
{
|
|
816
|
+
foreignKeyName: "tbl_automation_rules_org_id_fkey";
|
|
817
|
+
columns: ["org_id"];
|
|
818
|
+
isOneToOne: false;
|
|
819
|
+
referencedRelation: "view_org_all";
|
|
820
|
+
referencedColumns: ["org_id"];
|
|
796
821
|
}
|
|
797
822
|
];
|
|
798
823
|
};
|
|
@@ -870,6 +895,13 @@ export type Database = {
|
|
|
870
895
|
isOneToOne: false;
|
|
871
896
|
referencedRelation: "view_org";
|
|
872
897
|
referencedColumns: ["org_id"];
|
|
898
|
+
},
|
|
899
|
+
{
|
|
900
|
+
foreignKeyName: "tbl_broadcast_logs_org_id_fkey";
|
|
901
|
+
columns: ["org_id"];
|
|
902
|
+
isOneToOne: false;
|
|
903
|
+
referencedRelation: "view_org_all";
|
|
904
|
+
referencedColumns: ["org_id"];
|
|
873
905
|
}
|
|
874
906
|
];
|
|
875
907
|
};
|
|
@@ -930,6 +962,13 @@ export type Database = {
|
|
|
930
962
|
isOneToOne: false;
|
|
931
963
|
referencedRelation: "view_org";
|
|
932
964
|
referencedColumns: ["org_id"];
|
|
965
|
+
},
|
|
966
|
+
{
|
|
967
|
+
foreignKeyName: "tbl_broadcast_messages_org_id_fkey";
|
|
968
|
+
columns: ["org_id"];
|
|
969
|
+
isOneToOne: false;
|
|
970
|
+
referencedRelation: "view_org_all";
|
|
971
|
+
referencedColumns: ["org_id"];
|
|
933
972
|
}
|
|
934
973
|
];
|
|
935
974
|
};
|
|
@@ -975,6 +1014,13 @@ export type Database = {
|
|
|
975
1014
|
isOneToOne: false;
|
|
976
1015
|
referencedRelation: "view_org";
|
|
977
1016
|
referencedColumns: ["org_id"];
|
|
1017
|
+
},
|
|
1018
|
+
{
|
|
1019
|
+
foreignKeyName: "tbl_broadcast_templates_org_id_fkey";
|
|
1020
|
+
columns: ["org_id"];
|
|
1021
|
+
isOneToOne: false;
|
|
1022
|
+
referencedRelation: "view_org_all";
|
|
1023
|
+
referencedColumns: ["org_id"];
|
|
978
1024
|
}
|
|
979
1025
|
];
|
|
980
1026
|
};
|
|
@@ -1032,6 +1078,13 @@ export type Database = {
|
|
|
1032
1078
|
isOneToOne: false;
|
|
1033
1079
|
referencedRelation: "view_org";
|
|
1034
1080
|
referencedColumns: ["org_id"];
|
|
1081
|
+
},
|
|
1082
|
+
{
|
|
1083
|
+
foreignKeyName: "tbl_chat_logs_org_id_fkey";
|
|
1084
|
+
columns: ["org_id"];
|
|
1085
|
+
isOneToOne: false;
|
|
1086
|
+
referencedRelation: "view_org_all";
|
|
1087
|
+
referencedColumns: ["org_id"];
|
|
1035
1088
|
}
|
|
1036
1089
|
];
|
|
1037
1090
|
};
|
|
@@ -1581,6 +1634,13 @@ export type Database = {
|
|
|
1581
1634
|
isOneToOne: false;
|
|
1582
1635
|
referencedRelation: "view_org";
|
|
1583
1636
|
referencedColumns: ["org_id"];
|
|
1637
|
+
},
|
|
1638
|
+
{
|
|
1639
|
+
foreignKeyName: "tbl_chat_tickets_org_id_fkey";
|
|
1640
|
+
columns: ["org_id"];
|
|
1641
|
+
isOneToOne: false;
|
|
1642
|
+
referencedRelation: "view_org_all";
|
|
1643
|
+
referencedColumns: ["org_id"];
|
|
1584
1644
|
}
|
|
1585
1645
|
];
|
|
1586
1646
|
};
|
|
@@ -1785,6 +1845,13 @@ export type Database = {
|
|
|
1785
1845
|
isOneToOne: false;
|
|
1786
1846
|
referencedRelation: "view_org";
|
|
1787
1847
|
referencedColumns: ["org_id"];
|
|
1848
|
+
},
|
|
1849
|
+
{
|
|
1850
|
+
foreignKeyName: "tbl_contacts_org_id_fkey";
|
|
1851
|
+
columns: ["org_id"];
|
|
1852
|
+
isOneToOne: false;
|
|
1853
|
+
referencedRelation: "view_org_all";
|
|
1854
|
+
referencedColumns: ["org_id"];
|
|
1788
1855
|
}
|
|
1789
1856
|
];
|
|
1790
1857
|
};
|
|
@@ -1839,6 +1906,13 @@ export type Database = {
|
|
|
1839
1906
|
isOneToOne: false;
|
|
1840
1907
|
referencedRelation: "view_org";
|
|
1841
1908
|
referencedColumns: ["org_id"];
|
|
1909
|
+
},
|
|
1910
|
+
{
|
|
1911
|
+
foreignKeyName: "tbl_custom_properties_org_id_fkey";
|
|
1912
|
+
columns: ["org_id"];
|
|
1913
|
+
isOneToOne: false;
|
|
1914
|
+
referencedRelation: "view_org_all";
|
|
1915
|
+
referencedColumns: ["org_id"];
|
|
1842
1916
|
}
|
|
1843
1917
|
];
|
|
1844
1918
|
};
|
|
@@ -1896,6 +1970,13 @@ export type Database = {
|
|
|
1896
1970
|
isOneToOne: false;
|
|
1897
1971
|
referencedRelation: "view_org";
|
|
1898
1972
|
referencedColumns: ["org_id"];
|
|
1973
|
+
},
|
|
1974
|
+
{
|
|
1975
|
+
foreignKeyName: "tbl_group_templates_org_id_fkey";
|
|
1976
|
+
columns: ["org_id"];
|
|
1977
|
+
isOneToOne: false;
|
|
1978
|
+
referencedRelation: "view_org_all";
|
|
1979
|
+
referencedColumns: ["org_id"];
|
|
1899
1980
|
}
|
|
1900
1981
|
];
|
|
1901
1982
|
};
|
|
@@ -1953,6 +2034,13 @@ export type Database = {
|
|
|
1953
2034
|
isOneToOne: false;
|
|
1954
2035
|
referencedRelation: "view_org";
|
|
1955
2036
|
referencedColumns: ["org_id"];
|
|
2037
|
+
},
|
|
2038
|
+
{
|
|
2039
|
+
foreignKeyName: "tbl_integration_hooks_org_id_fkey";
|
|
2040
|
+
columns: ["org_id"];
|
|
2041
|
+
isOneToOne: false;
|
|
2042
|
+
referencedRelation: "view_org_all";
|
|
2043
|
+
referencedColumns: ["org_id"];
|
|
1956
2044
|
}
|
|
1957
2045
|
];
|
|
1958
2046
|
};
|
|
@@ -2004,6 +2092,13 @@ export type Database = {
|
|
|
2004
2092
|
isOneToOne: false;
|
|
2005
2093
|
referencedRelation: "view_org";
|
|
2006
2094
|
referencedColumns: ["org_id"];
|
|
2095
|
+
},
|
|
2096
|
+
{
|
|
2097
|
+
foreignKeyName: "tbl_integration_logs_org_id_fkey";
|
|
2098
|
+
columns: ["org_id"];
|
|
2099
|
+
isOneToOne: false;
|
|
2100
|
+
referencedRelation: "view_org_all";
|
|
2101
|
+
referencedColumns: ["org_id"];
|
|
2007
2102
|
}
|
|
2008
2103
|
];
|
|
2009
2104
|
};
|
|
@@ -2058,6 +2153,13 @@ export type Database = {
|
|
|
2058
2153
|
isOneToOne: false;
|
|
2059
2154
|
referencedRelation: "view_org";
|
|
2060
2155
|
referencedColumns: ["org_id"];
|
|
2156
|
+
},
|
|
2157
|
+
{
|
|
2158
|
+
foreignKeyName: "public_tbl_integration_tokens_org_id_fkey";
|
|
2159
|
+
columns: ["org_id"];
|
|
2160
|
+
isOneToOne: false;
|
|
2161
|
+
referencedRelation: "view_org_all";
|
|
2162
|
+
referencedColumns: ["org_id"];
|
|
2061
2163
|
}
|
|
2062
2164
|
];
|
|
2063
2165
|
};
|
|
@@ -2160,6 +2262,13 @@ export type Database = {
|
|
|
2160
2262
|
isOneToOne: false;
|
|
2161
2263
|
referencedRelation: "view_org";
|
|
2162
2264
|
referencedColumns: ["org_id"];
|
|
2265
|
+
},
|
|
2266
|
+
{
|
|
2267
|
+
foreignKeyName: "tbl_org_labels_org_id_fkey";
|
|
2268
|
+
columns: ["org_id"];
|
|
2269
|
+
isOneToOne: false;
|
|
2270
|
+
referencedRelation: "view_org_all";
|
|
2271
|
+
referencedColumns: ["org_id"];
|
|
2163
2272
|
}
|
|
2164
2273
|
];
|
|
2165
2274
|
};
|
|
@@ -2235,6 +2344,13 @@ export type Database = {
|
|
|
2235
2344
|
isOneToOne: false;
|
|
2236
2345
|
referencedRelation: "view_org";
|
|
2237
2346
|
referencedColumns: ["org_id"];
|
|
2347
|
+
},
|
|
2348
|
+
{
|
|
2349
|
+
foreignKeyName: "tbl_org_members_fkey_tbl_org";
|
|
2350
|
+
columns: ["org_id"];
|
|
2351
|
+
isOneToOne: false;
|
|
2352
|
+
referencedRelation: "view_org_all";
|
|
2353
|
+
referencedColumns: ["org_id"];
|
|
2238
2354
|
}
|
|
2239
2355
|
];
|
|
2240
2356
|
};
|
|
@@ -2329,6 +2445,13 @@ export type Database = {
|
|
|
2329
2445
|
referencedRelation: "view_org";
|
|
2330
2446
|
referencedColumns: ["org_id"];
|
|
2331
2447
|
},
|
|
2448
|
+
{
|
|
2449
|
+
foreignKeyName: "tbl_org_phones_fkey_tbl_org";
|
|
2450
|
+
columns: ["org_id"];
|
|
2451
|
+
isOneToOne: false;
|
|
2452
|
+
referencedRelation: "view_org_all";
|
|
2453
|
+
referencedColumns: ["org_id"];
|
|
2454
|
+
},
|
|
2332
2455
|
{
|
|
2333
2456
|
foreignKeyName: "tbl_org_phones_org_id_fkey";
|
|
2334
2457
|
columns: ["org_id"];
|
|
@@ -2342,6 +2465,13 @@ export type Database = {
|
|
|
2342
2465
|
isOneToOne: false;
|
|
2343
2466
|
referencedRelation: "view_org";
|
|
2344
2467
|
referencedColumns: ["org_id"];
|
|
2468
|
+
},
|
|
2469
|
+
{
|
|
2470
|
+
foreignKeyName: "tbl_org_phones_org_id_fkey";
|
|
2471
|
+
columns: ["org_id"];
|
|
2472
|
+
isOneToOne: false;
|
|
2473
|
+
referencedRelation: "view_org_all";
|
|
2474
|
+
referencedColumns: ["org_id"];
|
|
2345
2475
|
}
|
|
2346
2476
|
];
|
|
2347
2477
|
};
|
|
@@ -2420,6 +2550,13 @@ export type Database = {
|
|
|
2420
2550
|
isOneToOne: false;
|
|
2421
2551
|
referencedRelation: "view_org";
|
|
2422
2552
|
referencedColumns: ["org_id"];
|
|
2553
|
+
},
|
|
2554
|
+
{
|
|
2555
|
+
foreignKeyName: "tbl_org_task_org_id_fkey";
|
|
2556
|
+
columns: ["org_id"];
|
|
2557
|
+
isOneToOne: false;
|
|
2558
|
+
referencedRelation: "view_org_all";
|
|
2559
|
+
referencedColumns: ["org_id"];
|
|
2423
2560
|
}
|
|
2424
2561
|
];
|
|
2425
2562
|
};
|
|
@@ -2468,6 +2605,13 @@ export type Database = {
|
|
|
2468
2605
|
isOneToOne: false;
|
|
2469
2606
|
referencedRelation: "view_org";
|
|
2470
2607
|
referencedColumns: ["org_id"];
|
|
2608
|
+
},
|
|
2609
|
+
{
|
|
2610
|
+
foreignKeyName: "tbl_org_transactions_org_id_fkey";
|
|
2611
|
+
columns: ["org_id"];
|
|
2612
|
+
isOneToOne: false;
|
|
2613
|
+
referencedRelation: "view_org_all";
|
|
2614
|
+
referencedColumns: ["org_id"];
|
|
2471
2615
|
}
|
|
2472
2616
|
];
|
|
2473
2617
|
};
|
|
@@ -2525,6 +2669,13 @@ export type Database = {
|
|
|
2525
2669
|
isOneToOne: false;
|
|
2526
2670
|
referencedRelation: "view_org";
|
|
2527
2671
|
referencedColumns: ["org_id"];
|
|
2672
|
+
},
|
|
2673
|
+
{
|
|
2674
|
+
foreignKeyName: "tbl_org_workflows_org_id_fkey";
|
|
2675
|
+
columns: ["org_id"];
|
|
2676
|
+
isOneToOne: false;
|
|
2677
|
+
referencedRelation: "view_org_all";
|
|
2678
|
+
referencedColumns: ["org_id"];
|
|
2528
2679
|
}
|
|
2529
2680
|
];
|
|
2530
2681
|
};
|
|
@@ -2567,6 +2718,13 @@ export type Database = {
|
|
|
2567
2718
|
isOneToOne: false;
|
|
2568
2719
|
referencedRelation: "view_org";
|
|
2569
2720
|
referencedColumns: ["org_id"];
|
|
2721
|
+
},
|
|
2722
|
+
{
|
|
2723
|
+
foreignKeyName: "tbl_quick_replies_org_id_fkey";
|
|
2724
|
+
columns: ["org_id"];
|
|
2725
|
+
isOneToOne: false;
|
|
2726
|
+
referencedRelation: "view_org_all";
|
|
2727
|
+
referencedColumns: ["org_id"];
|
|
2570
2728
|
}
|
|
2571
2729
|
];
|
|
2572
2730
|
};
|
|
@@ -2624,6 +2782,13 @@ export type Database = {
|
|
|
2624
2782
|
isOneToOne: false;
|
|
2625
2783
|
referencedRelation: "view_org";
|
|
2626
2784
|
referencedColumns: ["org_id"];
|
|
2785
|
+
},
|
|
2786
|
+
{
|
|
2787
|
+
foreignKeyName: "tbl_recurring_messages_org_id_fkey";
|
|
2788
|
+
columns: ["org_id"];
|
|
2789
|
+
isOneToOne: false;
|
|
2790
|
+
referencedRelation: "view_org_all";
|
|
2791
|
+
referencedColumns: ["org_id"];
|
|
2627
2792
|
}
|
|
2628
2793
|
];
|
|
2629
2794
|
};
|
|
@@ -2675,6 +2840,13 @@ export type Database = {
|
|
|
2675
2840
|
isOneToOne: false;
|
|
2676
2841
|
referencedRelation: "view_org";
|
|
2677
2842
|
referencedColumns: ["org_id"];
|
|
2843
|
+
},
|
|
2844
|
+
{
|
|
2845
|
+
foreignKeyName: "tbl_rules_logs_org_id_fkey";
|
|
2846
|
+
columns: ["org_id"];
|
|
2847
|
+
isOneToOne: false;
|
|
2848
|
+
referencedRelation: "view_org_all";
|
|
2849
|
+
referencedColumns: ["org_id"];
|
|
2678
2850
|
}
|
|
2679
2851
|
];
|
|
2680
2852
|
};
|
|
@@ -2726,6 +2898,13 @@ export type Database = {
|
|
|
2726
2898
|
isOneToOne: false;
|
|
2727
2899
|
referencedRelation: "view_org";
|
|
2728
2900
|
referencedColumns: ["org_id"];
|
|
2901
|
+
},
|
|
2902
|
+
{
|
|
2903
|
+
foreignKeyName: "tbl_scheduled_message_logs_org_id_fkey";
|
|
2904
|
+
columns: ["org_id"];
|
|
2905
|
+
isOneToOne: false;
|
|
2906
|
+
referencedRelation: "view_org_all";
|
|
2907
|
+
referencedColumns: ["org_id"];
|
|
2729
2908
|
}
|
|
2730
2909
|
];
|
|
2731
2910
|
};
|
|
@@ -2853,6 +3032,13 @@ export type Database = {
|
|
|
2853
3032
|
isOneToOne: false;
|
|
2854
3033
|
referencedRelation: "view_org";
|
|
2855
3034
|
referencedColumns: ["org_id"];
|
|
3035
|
+
},
|
|
3036
|
+
{
|
|
3037
|
+
foreignKeyName: "tbl_broadcast_messages_org_id_fkey";
|
|
3038
|
+
columns: ["org_id"];
|
|
3039
|
+
isOneToOne: false;
|
|
3040
|
+
referencedRelation: "view_org_all";
|
|
3041
|
+
referencedColumns: ["org_id"];
|
|
2856
3042
|
}
|
|
2857
3043
|
];
|
|
2858
3044
|
};
|
|
@@ -2884,6 +3070,13 @@ export type Database = {
|
|
|
2884
3070
|
isOneToOne: false;
|
|
2885
3071
|
referencedRelation: "view_org";
|
|
2886
3072
|
referencedColumns: ["org_id"];
|
|
3073
|
+
},
|
|
3074
|
+
{
|
|
3075
|
+
foreignKeyName: "tbl_chat_logs_org_id_fkey";
|
|
3076
|
+
columns: ["org_id"];
|
|
3077
|
+
isOneToOne: false;
|
|
3078
|
+
referencedRelation: "view_org_all";
|
|
3079
|
+
referencedColumns: ["org_id"];
|
|
2887
3080
|
}
|
|
2888
3081
|
];
|
|
2889
3082
|
};
|
|
@@ -3038,6 +3231,43 @@ export type Database = {
|
|
|
3038
3231
|
};
|
|
3039
3232
|
Relationships: [];
|
|
3040
3233
|
};
|
|
3234
|
+
view_org_all: {
|
|
3235
|
+
Row: {
|
|
3236
|
+
access_scopes: Json | null;
|
|
3237
|
+
additional_phone_limit: number | null;
|
|
3238
|
+
additional_user_limit: number | null;
|
|
3239
|
+
ai_settings: Json | null;
|
|
3240
|
+
allocated_phone_limit: number | null;
|
|
3241
|
+
allocated_user_limit: number | null;
|
|
3242
|
+
created_at: string | null;
|
|
3243
|
+
hubspot_tokens: Json | null;
|
|
3244
|
+
is_enterprise: boolean | null;
|
|
3245
|
+
is_free_trial: boolean | null;
|
|
3246
|
+
is_freshdesk_connected: boolean | null;
|
|
3247
|
+
is_hubspot_connected: boolean | null;
|
|
3248
|
+
is_platform: boolean | null;
|
|
3249
|
+
is_zohocrm_connected: boolean | null;
|
|
3250
|
+
is_zohodesk_connected: boolean | null;
|
|
3251
|
+
org_alias: string | null;
|
|
3252
|
+
org_id: string | null;
|
|
3253
|
+
org_image: string | null;
|
|
3254
|
+
org_metadata: Json | null;
|
|
3255
|
+
org_name: string | null;
|
|
3256
|
+
org_plan: Json | null;
|
|
3257
|
+
parent_org_id: string | null;
|
|
3258
|
+
pending_days: number | null;
|
|
3259
|
+
phone_limit: number | null;
|
|
3260
|
+
plan_id: string | null;
|
|
3261
|
+
server_zone: string | null;
|
|
3262
|
+
stripe_customer_details: Json | null;
|
|
3263
|
+
stripe_customer_id: string | null;
|
|
3264
|
+
stripe_subscription_details: Json | null;
|
|
3265
|
+
subscription_status: string | null;
|
|
3266
|
+
support_link: string | null;
|
|
3267
|
+
user_limit: number | null;
|
|
3268
|
+
};
|
|
3269
|
+
Relationships: [];
|
|
3270
|
+
};
|
|
3041
3271
|
view_scheduled_logs: {
|
|
3042
3272
|
Row: {
|
|
3043
3273
|
chat_id: string | null;
|
|
@@ -3065,6 +3295,13 @@ export type Database = {
|
|
|
3065
3295
|
isOneToOne: false;
|
|
3066
3296
|
referencedRelation: "view_org";
|
|
3067
3297
|
referencedColumns: ["org_id"];
|
|
3298
|
+
},
|
|
3299
|
+
{
|
|
3300
|
+
foreignKeyName: "tbl_recurring_messages_org_id_fkey";
|
|
3301
|
+
columns: ["org_id"];
|
|
3302
|
+
isOneToOne: false;
|
|
3303
|
+
referencedRelation: "view_org_all";
|
|
3304
|
+
referencedColumns: ["org_id"];
|
|
3068
3305
|
}
|
|
3069
3306
|
];
|
|
3070
3307
|
};
|
|
@@ -3228,6 +3465,13 @@ export type Database = {
|
|
|
3228
3465
|
};
|
|
3229
3466
|
Returns: Json;
|
|
3230
3467
|
};
|
|
3468
|
+
get_counts: {
|
|
3469
|
+
Args: {
|
|
3470
|
+
org_id_input: string;
|
|
3471
|
+
sync_wa_unread_count?: boolean;
|
|
3472
|
+
};
|
|
3473
|
+
Returns: Json;
|
|
3474
|
+
};
|
|
3231
3475
|
get_export_chats_data: {
|
|
3232
3476
|
Args: {
|
|
3233
3477
|
chat_id_input?: string[];
|