@periskope/types 0.6.261 → 0.6.263
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 +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/supabase.types.d.ts +231 -104
- package/dist/supabase.types.d.ts.map +1 -1
- package/dist/supabase.types.js +76 -0
- package/dist/types.d.ts +0 -1
- package/dist/types.d.ts.map +1 -1
- package/dist/workflows.types.d.ts +307 -0
- package/dist/workflows.types.d.ts.map +1 -0
- package/dist/workflows.types.js +256 -0
- package/package.json +1 -1
- package/src/index.ts +1 -0
- package/src/supabase.types.ts +332 -196
- package/src/types.ts +3 -3
- package/src/workflows.types.ts +692 -0
- package/tsconfig.tsbuildinfo +1 -1
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;AACxB,cAAc,mBAAmB,CAAC"}
|
package/dist/index.js
CHANGED
package/dist/supabase.types.d.ts
CHANGED
|
@@ -2,31 +2,6 @@ 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
|
-
};
|
|
30
5
|
internal: {
|
|
31
6
|
Tables: {
|
|
32
7
|
config: {
|
|
@@ -213,45 +188,6 @@ export type Database = {
|
|
|
213
188
|
};
|
|
214
189
|
public: {
|
|
215
190
|
Tables: {
|
|
216
|
-
tbl_ai_contexts: {
|
|
217
|
-
Row: {
|
|
218
|
-
answer: string;
|
|
219
|
-
attachments: string[] | 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?: string[] | 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?: string[] | 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
|
-
};
|
|
255
191
|
tbl_api_logs: {
|
|
256
192
|
Row: {
|
|
257
193
|
org_id: string;
|
|
@@ -886,7 +822,6 @@ export type Database = {
|
|
|
886
822
|
};
|
|
887
823
|
tbl_chat_properties: {
|
|
888
824
|
Row: {
|
|
889
|
-
ai_metadata: Json | null;
|
|
890
825
|
assigned_to: string | null;
|
|
891
826
|
chat_access: Json | null;
|
|
892
827
|
chat_id: string;
|
|
@@ -906,7 +841,6 @@ export type Database = {
|
|
|
906
841
|
zohodesk_metadata: Json | null;
|
|
907
842
|
};
|
|
908
843
|
Insert: {
|
|
909
|
-
ai_metadata?: Json | null;
|
|
910
844
|
assigned_to?: string | null;
|
|
911
845
|
chat_access?: Json | null;
|
|
912
846
|
chat_id: string;
|
|
@@ -926,7 +860,6 @@ export type Database = {
|
|
|
926
860
|
zohodesk_metadata?: Json | null;
|
|
927
861
|
};
|
|
928
862
|
Update: {
|
|
929
|
-
ai_metadata?: Json | null;
|
|
930
863
|
assigned_to?: string | null;
|
|
931
864
|
chat_access?: Json | null;
|
|
932
865
|
chat_id?: string;
|
|
@@ -1200,6 +1133,7 @@ export type Database = {
|
|
|
1200
1133
|
is_my_contact: boolean | null;
|
|
1201
1134
|
is_user: boolean | null;
|
|
1202
1135
|
is_wa_contact: boolean | null;
|
|
1136
|
+
label_ids: Json;
|
|
1203
1137
|
name: string | null;
|
|
1204
1138
|
number: string | null;
|
|
1205
1139
|
org_id: string;
|
|
@@ -1228,6 +1162,7 @@ export type Database = {
|
|
|
1228
1162
|
is_my_contact?: boolean | null;
|
|
1229
1163
|
is_user?: boolean | null;
|
|
1230
1164
|
is_wa_contact?: boolean | null;
|
|
1165
|
+
label_ids?: Json;
|
|
1231
1166
|
name?: string | null;
|
|
1232
1167
|
number?: string | null;
|
|
1233
1168
|
org_id: string;
|
|
@@ -1256,6 +1191,7 @@ export type Database = {
|
|
|
1256
1191
|
is_my_contact?: boolean | null;
|
|
1257
1192
|
is_user?: boolean | null;
|
|
1258
1193
|
is_wa_contact?: boolean | null;
|
|
1194
|
+
label_ids?: Json;
|
|
1259
1195
|
name?: string | null;
|
|
1260
1196
|
number?: string | null;
|
|
1261
1197
|
org_id?: string;
|
|
@@ -1705,13 +1641,6 @@ export type Database = {
|
|
|
1705
1641
|
user_id?: string | null;
|
|
1706
1642
|
};
|
|
1707
1643
|
Relationships: [
|
|
1708
|
-
{
|
|
1709
|
-
foreignKeyName: "tbl_org_members_fkey_auth_users";
|
|
1710
|
-
columns: ["user_id"];
|
|
1711
|
-
isOneToOne: false;
|
|
1712
|
-
referencedRelation: "users";
|
|
1713
|
-
referencedColumns: ["id"];
|
|
1714
|
-
},
|
|
1715
1644
|
{
|
|
1716
1645
|
foreignKeyName: "tbl_org_members_fkey_tbl_org";
|
|
1717
1646
|
columns: ["org_id"];
|
|
@@ -1955,6 +1884,63 @@ export type Database = {
|
|
|
1955
1884
|
}
|
|
1956
1885
|
];
|
|
1957
1886
|
};
|
|
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
|
+
};
|
|
1958
1944
|
tbl_quick_replies: {
|
|
1959
1945
|
Row: {
|
|
1960
1946
|
command: string | null;
|
|
@@ -2233,7 +2219,6 @@ export type Database = {
|
|
|
2233
2219
|
view_chats: {
|
|
2234
2220
|
Row: {
|
|
2235
2221
|
add_members_admins_only: boolean | null;
|
|
2236
|
-
ai_metadata: Json | null;
|
|
2237
2222
|
assigned_to: string | null;
|
|
2238
2223
|
chat_access: Json | null;
|
|
2239
2224
|
chat_id: string | null;
|
|
@@ -2592,13 +2577,6 @@ export type Database = {
|
|
|
2592
2577
|
};
|
|
2593
2578
|
Returns: Json;
|
|
2594
2579
|
};
|
|
2595
|
-
get_relevant_context: {
|
|
2596
|
-
Args: {
|
|
2597
|
-
org_id_input: string;
|
|
2598
|
-
query_embedding_input: string;
|
|
2599
|
-
};
|
|
2600
|
-
Returns: Json;
|
|
2601
|
-
};
|
|
2602
2580
|
get_team_metrics_between_dates: {
|
|
2603
2581
|
Args: {
|
|
2604
2582
|
org_id_input: string;
|
|
@@ -2807,12 +2785,11 @@ export type Database = {
|
|
|
2807
2785
|
};
|
|
2808
2786
|
};
|
|
2809
2787
|
Enums: {
|
|
2810
|
-
enum_ai_context_type: "faq" | "document";
|
|
2811
2788
|
enum_broadcast_status: "inprogress" | "completed" | "stopped" | "expired";
|
|
2812
2789
|
enum_chat_colors: "#B4876E" | "#A5B337" | "#06CF9C" | "#25D366" | "#02A698" | "#7D9EF1" | "#007BFC" | "#5E47DE" | "#7F66FF" | "#9333EA" | "#FA6533" | "#C4532D" | "#DC2626" | "#FF2E74" | "#DB2777";
|
|
2813
2790
|
enum_chat_tickets_status: "open" | "inprogress" | "closed" | "archived";
|
|
2814
2791
|
enum_credit_transaction_type: "credit" | "debit";
|
|
2815
|
-
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.
|
|
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.updated" | "org.phone.connected" | "org.phone.disconnected" | "org.phone.qr";
|
|
2816
2793
|
enum_integration_type: "zapier" | "pabbly" | "api" | "webhook" | "hubspot" | "freshdesk" | "slack" | "jira" | "salesforce" | "zohodesk" | "gsheets";
|
|
2817
2794
|
enum_member_role: "admin" | "member";
|
|
2818
2795
|
};
|
|
@@ -2888,6 +2865,7 @@ export type Database = {
|
|
|
2888
2865
|
created_at: string | null;
|
|
2889
2866
|
id: string;
|
|
2890
2867
|
last_accessed_at: string | null;
|
|
2868
|
+
level: number | null;
|
|
2891
2869
|
metadata: Json | null;
|
|
2892
2870
|
name: string | null;
|
|
2893
2871
|
owner: string | null;
|
|
@@ -2902,6 +2880,7 @@ export type Database = {
|
|
|
2902
2880
|
created_at?: string | null;
|
|
2903
2881
|
id?: string;
|
|
2904
2882
|
last_accessed_at?: string | null;
|
|
2883
|
+
level?: number | null;
|
|
2905
2884
|
metadata?: Json | null;
|
|
2906
2885
|
name?: string | null;
|
|
2907
2886
|
owner?: string | null;
|
|
@@ -2916,6 +2895,7 @@ export type Database = {
|
|
|
2916
2895
|
created_at?: string | null;
|
|
2917
2896
|
id?: string;
|
|
2918
2897
|
last_accessed_at?: string | null;
|
|
2898
|
+
level?: number | null;
|
|
2919
2899
|
metadata?: Json | null;
|
|
2920
2900
|
name?: string | null;
|
|
2921
2901
|
owner?: string | null;
|
|
@@ -2935,6 +2915,38 @@ export type Database = {
|
|
|
2935
2915
|
}
|
|
2936
2916
|
];
|
|
2937
2917
|
};
|
|
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
|
+
};
|
|
2938
2950
|
s3_multipart_uploads: {
|
|
2939
2951
|
Row: {
|
|
2940
2952
|
bucket_id: string;
|
|
@@ -3038,6 +3050,13 @@ export type Database = {
|
|
|
3038
3050
|
[_ in never]: never;
|
|
3039
3051
|
};
|
|
3040
3052
|
Functions: {
|
|
3053
|
+
add_prefixes: {
|
|
3054
|
+
Args: {
|
|
3055
|
+
_bucket_id: string;
|
|
3056
|
+
_name: string;
|
|
3057
|
+
};
|
|
3058
|
+
Returns: undefined;
|
|
3059
|
+
};
|
|
3041
3060
|
can_insert_object: {
|
|
3042
3061
|
Args: {
|
|
3043
3062
|
bucketid: string;
|
|
@@ -3047,6 +3066,13 @@ export type Database = {
|
|
|
3047
3066
|
};
|
|
3048
3067
|
Returns: undefined;
|
|
3049
3068
|
};
|
|
3069
|
+
delete_prefix: {
|
|
3070
|
+
Args: {
|
|
3071
|
+
_bucket_id: string;
|
|
3072
|
+
_name: string;
|
|
3073
|
+
};
|
|
3074
|
+
Returns: boolean;
|
|
3075
|
+
};
|
|
3050
3076
|
extension: {
|
|
3051
3077
|
Args: {
|
|
3052
3078
|
name: string;
|
|
@@ -3065,6 +3091,24 @@ export type Database = {
|
|
|
3065
3091
|
};
|
|
3066
3092
|
Returns: string[];
|
|
3067
3093
|
};
|
|
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
|
+
};
|
|
3068
3112
|
get_size_by_bucket: {
|
|
3069
3113
|
Args: Record<PropertyKey, never>;
|
|
3070
3114
|
Returns: {
|
|
@@ -3127,6 +3171,63 @@ export type Database = {
|
|
|
3127
3171
|
metadata: Json;
|
|
3128
3172
|
}[];
|
|
3129
3173
|
};
|
|
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
|
+
};
|
|
3130
3231
|
};
|
|
3131
3232
|
Enums: {
|
|
3132
3233
|
[_ in never]: never;
|
|
@@ -3136,46 +3237,72 @@ export type Database = {
|
|
|
3136
3237
|
};
|
|
3137
3238
|
};
|
|
3138
3239
|
};
|
|
3139
|
-
type
|
|
3140
|
-
export type Tables<
|
|
3240
|
+
type DefaultSchema = Database[Extract<keyof Database, "public">];
|
|
3241
|
+
export type Tables<DefaultSchemaTableNameOrOptions extends keyof (DefaultSchema["Tables"] & DefaultSchema["Views"]) | {
|
|
3141
3242
|
schema: keyof Database;
|
|
3142
|
-
}, TableName extends
|
|
3243
|
+
}, TableName extends DefaultSchemaTableNameOrOptions extends {
|
|
3143
3244
|
schema: keyof Database;
|
|
3144
|
-
} ? keyof (Database[
|
|
3245
|
+
} ? keyof (Database[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] & Database[DefaultSchemaTableNameOrOptions["schema"]]["Views"]) : never = never> = DefaultSchemaTableNameOrOptions extends {
|
|
3145
3246
|
schema: keyof Database;
|
|
3146
|
-
} ? (Database[
|
|
3247
|
+
} ? (Database[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] & Database[DefaultSchemaTableNameOrOptions["schema"]]["Views"])[TableName] extends {
|
|
3147
3248
|
Row: infer R;
|
|
3148
|
-
} ? R : never :
|
|
3249
|
+
} ? R : never : DefaultSchemaTableNameOrOptions extends keyof (DefaultSchema["Tables"] & DefaultSchema["Views"]) ? (DefaultSchema["Tables"] & DefaultSchema["Views"])[DefaultSchemaTableNameOrOptions] extends {
|
|
3149
3250
|
Row: infer R;
|
|
3150
3251
|
} ? R : never : never;
|
|
3151
|
-
export type TablesInsert<
|
|
3252
|
+
export type TablesInsert<DefaultSchemaTableNameOrOptions extends keyof DefaultSchema["Tables"] | {
|
|
3152
3253
|
schema: keyof Database;
|
|
3153
|
-
}, TableName extends
|
|
3254
|
+
}, TableName extends DefaultSchemaTableNameOrOptions extends {
|
|
3154
3255
|
schema: keyof Database;
|
|
3155
|
-
} ? keyof Database[
|
|
3256
|
+
} ? keyof Database[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] : never = never> = DefaultSchemaTableNameOrOptions extends {
|
|
3156
3257
|
schema: keyof Database;
|
|
3157
|
-
} ? Database[
|
|
3258
|
+
} ? Database[DefaultSchemaTableNameOrOptions["schema"]]["Tables"][TableName] extends {
|
|
3158
3259
|
Insert: infer I;
|
|
3159
|
-
} ? I : never :
|
|
3260
|
+
} ? I : never : DefaultSchemaTableNameOrOptions extends keyof DefaultSchema["Tables"] ? DefaultSchema["Tables"][DefaultSchemaTableNameOrOptions] extends {
|
|
3160
3261
|
Insert: infer I;
|
|
3161
3262
|
} ? I : never : never;
|
|
3162
|
-
export type TablesUpdate<
|
|
3263
|
+
export type TablesUpdate<DefaultSchemaTableNameOrOptions extends keyof DefaultSchema["Tables"] | {
|
|
3163
3264
|
schema: keyof Database;
|
|
3164
|
-
}, TableName extends
|
|
3265
|
+
}, TableName extends DefaultSchemaTableNameOrOptions extends {
|
|
3165
3266
|
schema: keyof Database;
|
|
3166
|
-
} ? keyof Database[
|
|
3267
|
+
} ? keyof Database[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] : never = never> = DefaultSchemaTableNameOrOptions extends {
|
|
3167
3268
|
schema: keyof Database;
|
|
3168
|
-
} ? Database[
|
|
3269
|
+
} ? Database[DefaultSchemaTableNameOrOptions["schema"]]["Tables"][TableName] extends {
|
|
3169
3270
|
Update: infer U;
|
|
3170
|
-
} ? U : never :
|
|
3271
|
+
} ? U : never : DefaultSchemaTableNameOrOptions extends keyof DefaultSchema["Tables"] ? DefaultSchema["Tables"][DefaultSchemaTableNameOrOptions] extends {
|
|
3171
3272
|
Update: infer U;
|
|
3172
3273
|
} ? U : never : never;
|
|
3173
|
-
export type Enums<
|
|
3274
|
+
export type Enums<DefaultSchemaEnumNameOrOptions extends keyof DefaultSchema["Enums"] | {
|
|
3275
|
+
schema: keyof Database;
|
|
3276
|
+
}, EnumName extends DefaultSchemaEnumNameOrOptions extends {
|
|
3277
|
+
schema: keyof Database;
|
|
3278
|
+
} ? keyof Database[DefaultSchemaEnumNameOrOptions["schema"]]["Enums"] : never = never> = DefaultSchemaEnumNameOrOptions extends {
|
|
3174
3279
|
schema: keyof Database;
|
|
3175
|
-
}
|
|
3280
|
+
} ? Database[DefaultSchemaEnumNameOrOptions["schema"]]["Enums"][EnumName] : DefaultSchemaEnumNameOrOptions extends keyof DefaultSchema["Enums"] ? DefaultSchema["Enums"][DefaultSchemaEnumNameOrOptions] : never;
|
|
3281
|
+
export type CompositeTypes<PublicCompositeTypeNameOrOptions extends keyof DefaultSchema["CompositeTypes"] | {
|
|
3176
3282
|
schema: keyof Database;
|
|
3177
|
-
}
|
|
3283
|
+
}, CompositeTypeName extends PublicCompositeTypeNameOrOptions extends {
|
|
3178
3284
|
schema: keyof Database;
|
|
3179
|
-
} ? Database[
|
|
3285
|
+
} ? keyof Database[PublicCompositeTypeNameOrOptions["schema"]]["CompositeTypes"] : never = never> = PublicCompositeTypeNameOrOptions extends {
|
|
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
|
+
};
|
|
3180
3307
|
export {};
|
|
3181
3308
|
//# sourceMappingURL=supabase.types.d.ts.map
|