@periskope/types 0.6.263 → 0.6.264
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/index.d.ts +0 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -1
- package/dist/supabase.types.d.ts +107 -231
- package/dist/supabase.types.d.ts.map +1 -1
- package/dist/supabase.types.js +0 -76
- package/dist/types.d.ts +1 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +0 -1
- package/src/supabase.types.ts +199 -332
- package/src/types.ts +3 -3
- package/tsconfig.tsbuildinfo +1 -1
- package/dist/workflows.types.d.ts +0 -307
- package/dist/workflows.types.d.ts.map +0 -1
- package/dist/workflows.types.js +0 -256
- package/src/workflows.types.ts +0 -692
package/dist/index.d.ts
CHANGED
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,SAAS,CAAC
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,SAAS,CAAC"}
|
package/dist/index.js
CHANGED
package/dist/supabase.types.d.ts
CHANGED
|
@@ -2,6 +2,31 @@ export type Json = {
|
|
|
2
2
|
[key: string]: any;
|
|
3
3
|
} | any;
|
|
4
4
|
export type Database = {
|
|
5
|
+
graphql_public: {
|
|
6
|
+
Tables: {
|
|
7
|
+
[_ in never]: never;
|
|
8
|
+
};
|
|
9
|
+
Views: {
|
|
10
|
+
[_ in never]: never;
|
|
11
|
+
};
|
|
12
|
+
Functions: {
|
|
13
|
+
graphql: {
|
|
14
|
+
Args: {
|
|
15
|
+
operationName?: string;
|
|
16
|
+
query?: string;
|
|
17
|
+
variables?: Json;
|
|
18
|
+
extensions?: Json;
|
|
19
|
+
};
|
|
20
|
+
Returns: Json;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
Enums: {
|
|
24
|
+
[_ in never]: never;
|
|
25
|
+
};
|
|
26
|
+
CompositeTypes: {
|
|
27
|
+
[_ in never]: never;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
5
30
|
internal: {
|
|
6
31
|
Tables: {
|
|
7
32
|
config: {
|
|
@@ -188,6 +213,45 @@ export type Database = {
|
|
|
188
213
|
};
|
|
189
214
|
public: {
|
|
190
215
|
Tables: {
|
|
216
|
+
tbl_ai_contexts: {
|
|
217
|
+
Row: {
|
|
218
|
+
answer: string;
|
|
219
|
+
attachments: Json | null;
|
|
220
|
+
context_id: string;
|
|
221
|
+
created_at: string | null;
|
|
222
|
+
document_id: string | null;
|
|
223
|
+
embedding: string;
|
|
224
|
+
metadata: Json | null;
|
|
225
|
+
org_id: string;
|
|
226
|
+
question: string;
|
|
227
|
+
type: Database["public"]["Enums"]["enum_ai_context_type"] | null;
|
|
228
|
+
};
|
|
229
|
+
Insert: {
|
|
230
|
+
answer: string;
|
|
231
|
+
attachments?: Json | null;
|
|
232
|
+
context_id?: string;
|
|
233
|
+
created_at?: string | null;
|
|
234
|
+
document_id?: string | null;
|
|
235
|
+
embedding: string;
|
|
236
|
+
metadata?: Json | null;
|
|
237
|
+
org_id: string;
|
|
238
|
+
question: string;
|
|
239
|
+
type?: Database["public"]["Enums"]["enum_ai_context_type"] | null;
|
|
240
|
+
};
|
|
241
|
+
Update: {
|
|
242
|
+
answer?: string;
|
|
243
|
+
attachments?: Json | null;
|
|
244
|
+
context_id?: string;
|
|
245
|
+
created_at?: string | null;
|
|
246
|
+
document_id?: string | null;
|
|
247
|
+
embedding?: string;
|
|
248
|
+
metadata?: Json | null;
|
|
249
|
+
org_id?: string;
|
|
250
|
+
question?: string;
|
|
251
|
+
type?: Database["public"]["Enums"]["enum_ai_context_type"] | null;
|
|
252
|
+
};
|
|
253
|
+
Relationships: [];
|
|
254
|
+
};
|
|
191
255
|
tbl_api_logs: {
|
|
192
256
|
Row: {
|
|
193
257
|
org_id: string;
|
|
@@ -822,6 +886,7 @@ export type Database = {
|
|
|
822
886
|
};
|
|
823
887
|
tbl_chat_properties: {
|
|
824
888
|
Row: {
|
|
889
|
+
ai_metadata: Json | null;
|
|
825
890
|
assigned_to: string | null;
|
|
826
891
|
chat_access: Json | null;
|
|
827
892
|
chat_id: string;
|
|
@@ -841,6 +906,7 @@ export type Database = {
|
|
|
841
906
|
zohodesk_metadata: Json | null;
|
|
842
907
|
};
|
|
843
908
|
Insert: {
|
|
909
|
+
ai_metadata?: Json | null;
|
|
844
910
|
assigned_to?: string | null;
|
|
845
911
|
chat_access?: Json | null;
|
|
846
912
|
chat_id: string;
|
|
@@ -860,6 +926,7 @@ export type Database = {
|
|
|
860
926
|
zohodesk_metadata?: Json | null;
|
|
861
927
|
};
|
|
862
928
|
Update: {
|
|
929
|
+
ai_metadata?: Json | null;
|
|
863
930
|
assigned_to?: string | null;
|
|
864
931
|
chat_access?: Json | null;
|
|
865
932
|
chat_id?: string;
|
|
@@ -1133,7 +1200,7 @@ export type Database = {
|
|
|
1133
1200
|
is_my_contact: boolean | null;
|
|
1134
1201
|
is_user: boolean | null;
|
|
1135
1202
|
is_wa_contact: boolean | null;
|
|
1136
|
-
label_ids: Json;
|
|
1203
|
+
label_ids: Json | null;
|
|
1137
1204
|
name: string | null;
|
|
1138
1205
|
number: string | null;
|
|
1139
1206
|
org_id: string;
|
|
@@ -1162,7 +1229,7 @@ export type Database = {
|
|
|
1162
1229
|
is_my_contact?: boolean | null;
|
|
1163
1230
|
is_user?: boolean | null;
|
|
1164
1231
|
is_wa_contact?: boolean | null;
|
|
1165
|
-
label_ids?: Json;
|
|
1232
|
+
label_ids?: Json | null;
|
|
1166
1233
|
name?: string | null;
|
|
1167
1234
|
number?: string | null;
|
|
1168
1235
|
org_id: string;
|
|
@@ -1191,7 +1258,7 @@ export type Database = {
|
|
|
1191
1258
|
is_my_contact?: boolean | null;
|
|
1192
1259
|
is_user?: boolean | null;
|
|
1193
1260
|
is_wa_contact?: boolean | null;
|
|
1194
|
-
label_ids?: Json;
|
|
1261
|
+
label_ids?: Json | null;
|
|
1195
1262
|
name?: string | null;
|
|
1196
1263
|
number?: string | null;
|
|
1197
1264
|
org_id?: string;
|
|
@@ -1641,6 +1708,13 @@ export type Database = {
|
|
|
1641
1708
|
user_id?: string | null;
|
|
1642
1709
|
};
|
|
1643
1710
|
Relationships: [
|
|
1711
|
+
{
|
|
1712
|
+
foreignKeyName: "tbl_org_members_fkey_auth_users";
|
|
1713
|
+
columns: ["user_id"];
|
|
1714
|
+
isOneToOne: false;
|
|
1715
|
+
referencedRelation: "users";
|
|
1716
|
+
referencedColumns: ["id"];
|
|
1717
|
+
},
|
|
1644
1718
|
{
|
|
1645
1719
|
foreignKeyName: "tbl_org_members_fkey_tbl_org";
|
|
1646
1720
|
columns: ["org_id"];
|
|
@@ -1884,63 +1958,6 @@ export type Database = {
|
|
|
1884
1958
|
}
|
|
1885
1959
|
];
|
|
1886
1960
|
};
|
|
1887
|
-
tbl_org_workflows: {
|
|
1888
|
-
Row: {
|
|
1889
|
-
actions: Json;
|
|
1890
|
-
created_at: string;
|
|
1891
|
-
deleted_at: string | null;
|
|
1892
|
-
id: string;
|
|
1893
|
-
is_active: boolean;
|
|
1894
|
-
name: string;
|
|
1895
|
-
org_id: string;
|
|
1896
|
-
trigger: string;
|
|
1897
|
-
trigger_metadata: Json;
|
|
1898
|
-
updated_at: string;
|
|
1899
|
-
updated_by: string;
|
|
1900
|
-
};
|
|
1901
|
-
Insert: {
|
|
1902
|
-
actions?: Json;
|
|
1903
|
-
created_at?: string;
|
|
1904
|
-
deleted_at?: string | null;
|
|
1905
|
-
id?: string;
|
|
1906
|
-
is_active?: boolean;
|
|
1907
|
-
name: string;
|
|
1908
|
-
org_id: string;
|
|
1909
|
-
trigger: string;
|
|
1910
|
-
trigger_metadata?: Json;
|
|
1911
|
-
updated_at?: string;
|
|
1912
|
-
updated_by: string;
|
|
1913
|
-
};
|
|
1914
|
-
Update: {
|
|
1915
|
-
actions?: Json;
|
|
1916
|
-
created_at?: string;
|
|
1917
|
-
deleted_at?: string | null;
|
|
1918
|
-
id?: string;
|
|
1919
|
-
is_active?: boolean;
|
|
1920
|
-
name?: string;
|
|
1921
|
-
org_id?: string;
|
|
1922
|
-
trigger?: string;
|
|
1923
|
-
trigger_metadata?: Json;
|
|
1924
|
-
updated_at?: string;
|
|
1925
|
-
updated_by?: string;
|
|
1926
|
-
};
|
|
1927
|
-
Relationships: [
|
|
1928
|
-
{
|
|
1929
|
-
foreignKeyName: "tbl_org_workflows_org_id_fkey";
|
|
1930
|
-
columns: ["org_id"];
|
|
1931
|
-
isOneToOne: false;
|
|
1932
|
-
referencedRelation: "tbl_org";
|
|
1933
|
-
referencedColumns: ["org_id"];
|
|
1934
|
-
},
|
|
1935
|
-
{
|
|
1936
|
-
foreignKeyName: "tbl_org_workflows_org_id_fkey";
|
|
1937
|
-
columns: ["org_id"];
|
|
1938
|
-
isOneToOne: false;
|
|
1939
|
-
referencedRelation: "view_org";
|
|
1940
|
-
referencedColumns: ["org_id"];
|
|
1941
|
-
}
|
|
1942
|
-
];
|
|
1943
|
-
};
|
|
1944
1961
|
tbl_quick_replies: {
|
|
1945
1962
|
Row: {
|
|
1946
1963
|
command: string | null;
|
|
@@ -2219,6 +2236,7 @@ export type Database = {
|
|
|
2219
2236
|
view_chats: {
|
|
2220
2237
|
Row: {
|
|
2221
2238
|
add_members_admins_only: boolean | null;
|
|
2239
|
+
ai_metadata: Json | null;
|
|
2222
2240
|
assigned_to: string | null;
|
|
2223
2241
|
chat_access: Json | null;
|
|
2224
2242
|
chat_id: string | null;
|
|
@@ -2577,6 +2595,13 @@ export type Database = {
|
|
|
2577
2595
|
};
|
|
2578
2596
|
Returns: Json;
|
|
2579
2597
|
};
|
|
2598
|
+
get_relevant_context: {
|
|
2599
|
+
Args: {
|
|
2600
|
+
org_id_input: string;
|
|
2601
|
+
query_embedding_input: string;
|
|
2602
|
+
};
|
|
2603
|
+
Returns: Json;
|
|
2604
|
+
};
|
|
2580
2605
|
get_team_metrics_between_dates: {
|
|
2581
2606
|
Args: {
|
|
2582
2607
|
org_id_input: string;
|
|
@@ -2785,11 +2810,12 @@ export type Database = {
|
|
|
2785
2810
|
};
|
|
2786
2811
|
};
|
|
2787
2812
|
Enums: {
|
|
2813
|
+
enum_ai_context_type: "faq" | "document";
|
|
2788
2814
|
enum_broadcast_status: "inprogress" | "completed" | "stopped" | "expired";
|
|
2789
2815
|
enum_chat_colors: "#B4876E" | "#A5B337" | "#06CF9C" | "#25D366" | "#02A698" | "#7D9EF1" | "#007BFC" | "#5E47DE" | "#7F66FF" | "#9333EA" | "#FA6533" | "#C4532D" | "#DC2626" | "#FF2E74" | "#DB2777";
|
|
2790
2816
|
enum_chat_tickets_status: "open" | "inprogress" | "closed" | "archived";
|
|
2791
2817
|
enum_credit_transaction_type: "credit" | "debit";
|
|
2792
|
-
enum_integration_name: "org.created" | "org.updated" | "org.member.created" | "org.member.updated" | "org.subscription.trial_will_end" | "chat.created" | "chat.updated" | "chat.notification.created" | "message.created" | "message.updated" | "message.deleted" | "message.ack.updated" | "reaction.created" | "reaction.updated" | "ticket.created" | "ticket.updated" | "ticket.deleted" | "org.integrations.updated" | "message.flagged" | "message.unflagged" | "chat.label.updated" | "reaction.added" | "message.ticket.attached" | "org.phone.created" | "org.phone.
|
|
2818
|
+
enum_integration_name: "org.created" | "org.updated" | "org.member.created" | "org.member.updated" | "org.subscription.trial_will_end" | "chat.created" | "chat.updated" | "chat.notification.created" | "message.created" | "message.updated" | "message.deleted" | "message.ack.updated" | "reaction.created" | "reaction.updated" | "ticket.created" | "ticket.updated" | "ticket.deleted" | "org.integrations.updated" | "message.flagged" | "message.unflagged" | "chat.label.updated" | "reaction.added" | "message.ticket.attached" | "org.phone.created" | "org.phone.connected" | "org.phone.disconnected" | "org.phone.qr" | "org.phone.updated";
|
|
2793
2819
|
enum_integration_type: "zapier" | "pabbly" | "api" | "webhook" | "hubspot" | "freshdesk" | "slack" | "jira" | "salesforce" | "zohodesk" | "gsheets";
|
|
2794
2820
|
enum_member_role: "admin" | "member";
|
|
2795
2821
|
};
|
|
@@ -2865,7 +2891,6 @@ export type Database = {
|
|
|
2865
2891
|
created_at: string | null;
|
|
2866
2892
|
id: string;
|
|
2867
2893
|
last_accessed_at: string | null;
|
|
2868
|
-
level: number | null;
|
|
2869
2894
|
metadata: Json | null;
|
|
2870
2895
|
name: string | null;
|
|
2871
2896
|
owner: string | null;
|
|
@@ -2880,7 +2905,6 @@ export type Database = {
|
|
|
2880
2905
|
created_at?: string | null;
|
|
2881
2906
|
id?: string;
|
|
2882
2907
|
last_accessed_at?: string | null;
|
|
2883
|
-
level?: number | null;
|
|
2884
2908
|
metadata?: Json | null;
|
|
2885
2909
|
name?: string | null;
|
|
2886
2910
|
owner?: string | null;
|
|
@@ -2895,7 +2919,6 @@ export type Database = {
|
|
|
2895
2919
|
created_at?: string | null;
|
|
2896
2920
|
id?: string;
|
|
2897
2921
|
last_accessed_at?: string | null;
|
|
2898
|
-
level?: number | null;
|
|
2899
2922
|
metadata?: Json | null;
|
|
2900
2923
|
name?: string | null;
|
|
2901
2924
|
owner?: string | null;
|
|
@@ -2915,38 +2938,6 @@ export type Database = {
|
|
|
2915
2938
|
}
|
|
2916
2939
|
];
|
|
2917
2940
|
};
|
|
2918
|
-
prefixes: {
|
|
2919
|
-
Row: {
|
|
2920
|
-
bucket_id: string;
|
|
2921
|
-
created_at: string | null;
|
|
2922
|
-
level: number;
|
|
2923
|
-
name: string;
|
|
2924
|
-
updated_at: string | null;
|
|
2925
|
-
};
|
|
2926
|
-
Insert: {
|
|
2927
|
-
bucket_id: string;
|
|
2928
|
-
created_at?: string | null;
|
|
2929
|
-
level?: number;
|
|
2930
|
-
name: string;
|
|
2931
|
-
updated_at?: string | null;
|
|
2932
|
-
};
|
|
2933
|
-
Update: {
|
|
2934
|
-
bucket_id?: string;
|
|
2935
|
-
created_at?: string | null;
|
|
2936
|
-
level?: number;
|
|
2937
|
-
name?: string;
|
|
2938
|
-
updated_at?: string | null;
|
|
2939
|
-
};
|
|
2940
|
-
Relationships: [
|
|
2941
|
-
{
|
|
2942
|
-
foreignKeyName: "prefixes_bucketId_fkey";
|
|
2943
|
-
columns: ["bucket_id"];
|
|
2944
|
-
isOneToOne: false;
|
|
2945
|
-
referencedRelation: "buckets";
|
|
2946
|
-
referencedColumns: ["id"];
|
|
2947
|
-
}
|
|
2948
|
-
];
|
|
2949
|
-
};
|
|
2950
2941
|
s3_multipart_uploads: {
|
|
2951
2942
|
Row: {
|
|
2952
2943
|
bucket_id: string;
|
|
@@ -3050,13 +3041,6 @@ export type Database = {
|
|
|
3050
3041
|
[_ in never]: never;
|
|
3051
3042
|
};
|
|
3052
3043
|
Functions: {
|
|
3053
|
-
add_prefixes: {
|
|
3054
|
-
Args: {
|
|
3055
|
-
_bucket_id: string;
|
|
3056
|
-
_name: string;
|
|
3057
|
-
};
|
|
3058
|
-
Returns: undefined;
|
|
3059
|
-
};
|
|
3060
3044
|
can_insert_object: {
|
|
3061
3045
|
Args: {
|
|
3062
3046
|
bucketid: string;
|
|
@@ -3066,13 +3050,6 @@ export type Database = {
|
|
|
3066
3050
|
};
|
|
3067
3051
|
Returns: undefined;
|
|
3068
3052
|
};
|
|
3069
|
-
delete_prefix: {
|
|
3070
|
-
Args: {
|
|
3071
|
-
_bucket_id: string;
|
|
3072
|
-
_name: string;
|
|
3073
|
-
};
|
|
3074
|
-
Returns: boolean;
|
|
3075
|
-
};
|
|
3076
3053
|
extension: {
|
|
3077
3054
|
Args: {
|
|
3078
3055
|
name: string;
|
|
@@ -3091,24 +3068,6 @@ export type Database = {
|
|
|
3091
3068
|
};
|
|
3092
3069
|
Returns: string[];
|
|
3093
3070
|
};
|
|
3094
|
-
get_level: {
|
|
3095
|
-
Args: {
|
|
3096
|
-
name: string;
|
|
3097
|
-
};
|
|
3098
|
-
Returns: number;
|
|
3099
|
-
};
|
|
3100
|
-
get_prefix: {
|
|
3101
|
-
Args: {
|
|
3102
|
-
name: string;
|
|
3103
|
-
};
|
|
3104
|
-
Returns: string;
|
|
3105
|
-
};
|
|
3106
|
-
get_prefixes: {
|
|
3107
|
-
Args: {
|
|
3108
|
-
name: string;
|
|
3109
|
-
};
|
|
3110
|
-
Returns: string[];
|
|
3111
|
-
};
|
|
3112
3071
|
get_size_by_bucket: {
|
|
3113
3072
|
Args: Record<PropertyKey, never>;
|
|
3114
3073
|
Returns: {
|
|
@@ -3171,63 +3130,6 @@ export type Database = {
|
|
|
3171
3130
|
metadata: Json;
|
|
3172
3131
|
}[];
|
|
3173
3132
|
};
|
|
3174
|
-
search_legacy_v1: {
|
|
3175
|
-
Args: {
|
|
3176
|
-
prefix: string;
|
|
3177
|
-
bucketname: string;
|
|
3178
|
-
limits?: number;
|
|
3179
|
-
levels?: number;
|
|
3180
|
-
offsets?: number;
|
|
3181
|
-
search?: string;
|
|
3182
|
-
sortcolumn?: string;
|
|
3183
|
-
sortorder?: string;
|
|
3184
|
-
};
|
|
3185
|
-
Returns: {
|
|
3186
|
-
name: string;
|
|
3187
|
-
id: string;
|
|
3188
|
-
updated_at: string;
|
|
3189
|
-
created_at: string;
|
|
3190
|
-
last_accessed_at: string;
|
|
3191
|
-
metadata: Json;
|
|
3192
|
-
}[];
|
|
3193
|
-
};
|
|
3194
|
-
search_v1_optimised: {
|
|
3195
|
-
Args: {
|
|
3196
|
-
prefix: string;
|
|
3197
|
-
bucketname: string;
|
|
3198
|
-
limits?: number;
|
|
3199
|
-
levels?: number;
|
|
3200
|
-
offsets?: number;
|
|
3201
|
-
search?: string;
|
|
3202
|
-
sortcolumn?: string;
|
|
3203
|
-
sortorder?: string;
|
|
3204
|
-
};
|
|
3205
|
-
Returns: {
|
|
3206
|
-
name: string;
|
|
3207
|
-
id: string;
|
|
3208
|
-
updated_at: string;
|
|
3209
|
-
created_at: string;
|
|
3210
|
-
last_accessed_at: string;
|
|
3211
|
-
metadata: Json;
|
|
3212
|
-
}[];
|
|
3213
|
-
};
|
|
3214
|
-
search_v2: {
|
|
3215
|
-
Args: {
|
|
3216
|
-
prefix: string;
|
|
3217
|
-
bucket_name: string;
|
|
3218
|
-
limits?: number;
|
|
3219
|
-
levels?: number;
|
|
3220
|
-
start_after?: string;
|
|
3221
|
-
};
|
|
3222
|
-
Returns: {
|
|
3223
|
-
key: string;
|
|
3224
|
-
name: string;
|
|
3225
|
-
id: string;
|
|
3226
|
-
updated_at: string;
|
|
3227
|
-
created_at: string;
|
|
3228
|
-
metadata: Json;
|
|
3229
|
-
}[];
|
|
3230
|
-
};
|
|
3231
3133
|
};
|
|
3232
3134
|
Enums: {
|
|
3233
3135
|
[_ in never]: never;
|
|
@@ -3237,72 +3139,46 @@ export type Database = {
|
|
|
3237
3139
|
};
|
|
3238
3140
|
};
|
|
3239
3141
|
};
|
|
3240
|
-
type
|
|
3241
|
-
export type Tables<
|
|
3142
|
+
type PublicSchema = Database[Extract<keyof Database, "public">];
|
|
3143
|
+
export type Tables<PublicTableNameOrOptions extends keyof (PublicSchema["Tables"] & PublicSchema["Views"]) | {
|
|
3242
3144
|
schema: keyof Database;
|
|
3243
|
-
}, TableName extends
|
|
3145
|
+
}, TableName extends PublicTableNameOrOptions extends {
|
|
3244
3146
|
schema: keyof Database;
|
|
3245
|
-
} ? keyof (Database[
|
|
3147
|
+
} ? keyof (Database[PublicTableNameOrOptions["schema"]]["Tables"] & Database[PublicTableNameOrOptions["schema"]]["Views"]) : never = never> = PublicTableNameOrOptions extends {
|
|
3246
3148
|
schema: keyof Database;
|
|
3247
|
-
} ? (Database[
|
|
3149
|
+
} ? (Database[PublicTableNameOrOptions["schema"]]["Tables"] & Database[PublicTableNameOrOptions["schema"]]["Views"])[TableName] extends {
|
|
3248
3150
|
Row: infer R;
|
|
3249
|
-
} ? R : never :
|
|
3151
|
+
} ? R : never : PublicTableNameOrOptions extends keyof (PublicSchema["Tables"] & PublicSchema["Views"]) ? (PublicSchema["Tables"] & PublicSchema["Views"])[PublicTableNameOrOptions] extends {
|
|
3250
3152
|
Row: infer R;
|
|
3251
3153
|
} ? R : never : never;
|
|
3252
|
-
export type TablesInsert<
|
|
3154
|
+
export type TablesInsert<PublicTableNameOrOptions extends keyof PublicSchema["Tables"] | {
|
|
3253
3155
|
schema: keyof Database;
|
|
3254
|
-
}, TableName extends
|
|
3156
|
+
}, TableName extends PublicTableNameOrOptions extends {
|
|
3255
3157
|
schema: keyof Database;
|
|
3256
|
-
} ? keyof Database[
|
|
3158
|
+
} ? keyof Database[PublicTableNameOrOptions["schema"]]["Tables"] : never = never> = PublicTableNameOrOptions extends {
|
|
3257
3159
|
schema: keyof Database;
|
|
3258
|
-
} ? Database[
|
|
3160
|
+
} ? Database[PublicTableNameOrOptions["schema"]]["Tables"][TableName] extends {
|
|
3259
3161
|
Insert: infer I;
|
|
3260
|
-
} ? I : never :
|
|
3162
|
+
} ? I : never : PublicTableNameOrOptions extends keyof PublicSchema["Tables"] ? PublicSchema["Tables"][PublicTableNameOrOptions] extends {
|
|
3261
3163
|
Insert: infer I;
|
|
3262
3164
|
} ? I : never : never;
|
|
3263
|
-
export type TablesUpdate<
|
|
3165
|
+
export type TablesUpdate<PublicTableNameOrOptions extends keyof PublicSchema["Tables"] | {
|
|
3264
3166
|
schema: keyof Database;
|
|
3265
|
-
}, TableName extends
|
|
3167
|
+
}, TableName extends PublicTableNameOrOptions extends {
|
|
3266
3168
|
schema: keyof Database;
|
|
3267
|
-
} ? keyof Database[
|
|
3169
|
+
} ? keyof Database[PublicTableNameOrOptions["schema"]]["Tables"] : never = never> = PublicTableNameOrOptions extends {
|
|
3268
3170
|
schema: keyof Database;
|
|
3269
|
-
} ? Database[
|
|
3171
|
+
} ? Database[PublicTableNameOrOptions["schema"]]["Tables"][TableName] extends {
|
|
3270
3172
|
Update: infer U;
|
|
3271
|
-
} ? U : never :
|
|
3173
|
+
} ? U : never : PublicTableNameOrOptions extends keyof PublicSchema["Tables"] ? PublicSchema["Tables"][PublicTableNameOrOptions] extends {
|
|
3272
3174
|
Update: infer U;
|
|
3273
3175
|
} ? U : never : never;
|
|
3274
|
-
export type Enums<
|
|
3275
|
-
schema: keyof Database;
|
|
3276
|
-
}, EnumName extends DefaultSchemaEnumNameOrOptions extends {
|
|
3277
|
-
schema: keyof Database;
|
|
3278
|
-
} ? keyof Database[DefaultSchemaEnumNameOrOptions["schema"]]["Enums"] : never = never> = DefaultSchemaEnumNameOrOptions extends {
|
|
3176
|
+
export type Enums<PublicEnumNameOrOptions extends keyof PublicSchema["Enums"] | {
|
|
3279
3177
|
schema: keyof Database;
|
|
3280
|
-
}
|
|
3281
|
-
export type CompositeTypes<PublicCompositeTypeNameOrOptions extends keyof DefaultSchema["CompositeTypes"] | {
|
|
3178
|
+
}, EnumName extends PublicEnumNameOrOptions extends {
|
|
3282
3179
|
schema: keyof Database;
|
|
3283
|
-
}
|
|
3180
|
+
} ? keyof Database[PublicEnumNameOrOptions["schema"]]["Enums"] : never = never> = PublicEnumNameOrOptions extends {
|
|
3284
3181
|
schema: keyof Database;
|
|
3285
|
-
} ?
|
|
3286
|
-
schema: keyof Database;
|
|
3287
|
-
} ? Database[PublicCompositeTypeNameOrOptions["schema"]]["CompositeTypes"][CompositeTypeName] : PublicCompositeTypeNameOrOptions extends keyof DefaultSchema["CompositeTypes"] ? DefaultSchema["CompositeTypes"][PublicCompositeTypeNameOrOptions] : never;
|
|
3288
|
-
export declare const Constants: {
|
|
3289
|
-
readonly internal: {
|
|
3290
|
-
readonly Enums: {};
|
|
3291
|
-
};
|
|
3292
|
-
readonly public: {
|
|
3293
|
-
readonly Enums: {
|
|
3294
|
-
readonly enum_broadcast_status: readonly ["inprogress", "completed", "stopped", "expired"];
|
|
3295
|
-
readonly enum_chat_colors: readonly ["#B4876E", "#A5B337", "#06CF9C", "#25D366", "#02A698", "#7D9EF1", "#007BFC", "#5E47DE", "#7F66FF", "#9333EA", "#FA6533", "#C4532D", "#DC2626", "#FF2E74", "#DB2777"];
|
|
3296
|
-
readonly enum_chat_tickets_status: readonly ["open", "inprogress", "closed", "archived"];
|
|
3297
|
-
readonly enum_credit_transaction_type: readonly ["credit", "debit"];
|
|
3298
|
-
readonly enum_integration_name: readonly ["org.created", "org.updated", "org.member.created", "org.member.updated", "org.phone.created", "org.phone.connected", "org.phone.disconnected", "org.subscription.trial_will_end", "chat.created", "chat.updated", "chat.notification.created", "message.created", "message.updated", "message.deleted", "message.ack.updated", "reaction.created", "reaction.updated", "ticket.created", "ticket.updated", "ticket.deleted", "org.integrations.updated", "message.flagged", "message.unflagged", "chat.label.updated", "reaction.added", "message.ticket.attached", "org.phone.qr"];
|
|
3299
|
-
readonly enum_integration_type: readonly ["zapier", "pabbly", "api", "webhook", "hubspot", "freshdesk", "slack", "jira", "salesforce", "zohodesk", "gsheets"];
|
|
3300
|
-
readonly enum_member_role: readonly ["admin", "member"];
|
|
3301
|
-
};
|
|
3302
|
-
};
|
|
3303
|
-
readonly storage: {
|
|
3304
|
-
readonly Enums: {};
|
|
3305
|
-
};
|
|
3306
|
-
};
|
|
3182
|
+
} ? Database[PublicEnumNameOrOptions["schema"]]["Enums"][EnumName] : PublicEnumNameOrOptions extends keyof PublicSchema["Enums"] ? PublicSchema["Enums"][PublicEnumNameOrOptions] : never;
|
|
3307
3183
|
export {};
|
|
3308
3184
|
//# sourceMappingURL=supabase.types.d.ts.map
|