@periskope/types 0.6.188 → 0.6.189
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 +1 -0
- package/dist/rules.types.js +1 -0
- package/dist/supabase.columns.d.ts +19 -0
- package/dist/supabase.columns.js +290 -0
- package/dist/supabase.types.d.ts +142 -14
- package/index.ts +3 -3
- package/mod_json_type.ps1 +108 -108
- package/mod_json_type.sh +22 -22
- package/package.json +1 -1
- package/rules.types.ts +1889 -1887
- package/supabase.types.ts +3136 -3098
- package/tsconfig.json +105 -105
- package/types.ts +964 -964
- package/update_package.ps1 +21 -21
package/dist/rules.types.d.ts
CHANGED
|
@@ -296,6 +296,7 @@ export declare const ActionNameMap: Record<Action['type'], {
|
|
|
296
296
|
required: boolean;
|
|
297
297
|
description?: string;
|
|
298
298
|
}>;
|
|
299
|
+
info?: string;
|
|
299
300
|
validTriggers: Rule['trigger'][];
|
|
300
301
|
}>;
|
|
301
302
|
type editorVariablesList = 'chat.assigned_to' | 'chat.chat_id' | 'chat.chat_name' | 'chat.chat_type' | 'chat.org_phone' | 'chat.org_id' | 'chat.group_description' | 'ticket.assignee' | 'ticket.due_date' | 'ticket.priority' | 'ticket.status' | 'ticket.subject' | 'ticket.ticket_id' | 'ticket.raised_by' | 'ticket.created_at' | 'sender.is_internal' | 'sender.is_admin' | 'sender.contact_name' | 'sender.contact_id' | 'reaction.sender_id' | 'reaction.reaction' | 'message.message_id' | 'message.timestamp' | 'message.sender_phone' | 'message.message_type' | 'message.media' | 'message.body';
|
package/dist/rules.types.js
CHANGED
|
@@ -922,6 +922,7 @@ exports.ActionNameMap = {
|
|
|
922
922
|
close_ticket: {
|
|
923
923
|
title: 'Close Ticket',
|
|
924
924
|
description: 'Close a ticket',
|
|
925
|
+
info: 'This action will close the ticket. This doesn\'t check for mandatory ticket custom properties.',
|
|
925
926
|
inputs: {
|
|
926
927
|
closing_note: {
|
|
927
928
|
id: 'closing_note',
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare const TableColumns: {
|
|
2
|
+
readonly tbl_broadcast_messages: readonly ["broadcast_id", "created_at", "chat_ids", "scheduled_at", "org_id", "message_payload", "completed_at", "performed_by"];
|
|
3
|
+
readonly tbl_broadcast_templates: readonly ["template_id", "created_at", "template_name", "org_id", "updated_at", "message_payload"];
|
|
4
|
+
readonly tbl_chat_access: readonly ["org_id", "email", "chat_id", "has_access", "last_read_timestamp", "active_phone"];
|
|
5
|
+
readonly tbl_chat_messages: readonly ["message_id", "org_id", "ack", "author", "body", "broadcast", "device_type", "duration", "forwarding_score", "from", "from_me", "has_media", "has_quoted_msg", "has_reaction", "id", "invite_v4", "is_ephemeral", "is_forwarded", "is_gif", "is_starred", "is_status", "links", "location", "media_key", "mentioned_ids", "order_id", "raw_data", "to", "token", "message_type", "vcards", "chat_id", "timestamp", "org_phone", "broadcast_id", "is_deleted", "media", "performed_by", "prev_body", "quoted_message_id", "sent_message_id", "delivery_info", "updated_at", "message_ticket_id"];
|
|
6
|
+
readonly tbl_chat_notifications: readonly ["org_id", "notification_id", "chat_id", "author", "body", "id", "recipientids", "type", "timestamp", "org_phone"];
|
|
7
|
+
readonly tbl_chat_participants: readonly ["org_id", "chat_id", "contact_id", "id", "is_admin", "is_super_admin", "org_phone"];
|
|
8
|
+
readonly tbl_chat_reactions: readonly ["org_id", "message_id", "ack", "id", "orphan", "reaction", "read", "reaction_id", "timestamp", "msg_id", "orphan_reason", "sender_id", "org_phone"];
|
|
9
|
+
readonly tbl_chat_tickets: readonly ["created_at", "ticket_id", "subject", "status", "assignee", "assigned_by", "chat_id", "due_date", "org_id", "label_ids", "quoted_message_id", "raised_by", "priority", "last_updated_at", "is_deleted"];
|
|
10
|
+
readonly tbl_chats: readonly ["org_id", "chat_id", "archived", "id", "is_group", "is_muted", "is_read_only", "mute_expiration", "name", "pinned", "unread_count", "group_metadata", "chat_image", "timestamp", "invite_link", "org_phone", "label_ids", "updated_at"];
|
|
11
|
+
readonly tbl_contacts: readonly ["org_id", "contact_id", "id", "number", "is_business", "is_enterprise", "name", "pushname", "short_name", "contact_type", "is_me", "is_user", "is_group", "is_wa_contact", "is_my_contact", "is_blocked", "contact_image", "contact_color", "business_profile", "verified_name", "is_internal", "label_ids", "verified_level", "updated_at"];
|
|
12
|
+
readonly tbl_org: readonly ["org_id", "created_at", "org_image", "org_name", "support_link", "org_metadata", "org_plan", "stripe_customer_details", "stripe_customer_id", "stripe_subscription_details"];
|
|
13
|
+
readonly tbl_org_labels: readonly ["label_id", "created_at", "org_id", "name", "color", "type"];
|
|
14
|
+
readonly tbl_org_members: readonly ["created_at", "email", "user_id", "invited_at", "invited_by", "org_id", "role", "member_image", "member_name", "is_active", "member_color"];
|
|
15
|
+
readonly tbl_org_phones: readonly ["org_id", "org_phone", "created_at", "updated_at", "wa_state", "phone_id", "qr_code", "phone_image", "phone_name", "server_ip"];
|
|
16
|
+
readonly view_broadcast_logs: readonly ["broadcast_id", "org_id", "message_payload", "created_at", "total_chats", "sent_chats", "failed_chats", "total_member_count", "delivered_member_count", "read_member_count", "completed_at", "scheduled_at", "performed_by", "delivery_percentage", "read_percentage"];
|
|
17
|
+
readonly view_chat_messages: readonly ["message_id", "org_id", "ack", "author", "body", "from_me", "invite_v4", "links", "location", "mentioned_ids", "message_type", "vcards", "chat_id", "timestamp", "org_phone", "broadcast_id", "is_deleted", "media", "performed_by", "prev_body", "quoted_message_id", "sender_phone", "sent_message_id", "delivery_info", "updated_at", "message_ticket_id", "unique_id", "is_gif", "is_forwarded", "is_starred"];
|
|
18
|
+
readonly view_chats: readonly ["org_id", "chat_id", "org_phone", "chat_image", "invite_link", "label_ids", "updated_at", "chat_name", "latest_message", "message_unread_count", "member_count", "chat_type", "chat_access", "has_access", "last_read_timestamp", "chat_org_phones", "active_phone", "group_description"];
|
|
19
|
+
};
|
|
@@ -0,0 +1,290 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TableColumns = void 0;
|
|
4
|
+
exports.TableColumns = {
|
|
5
|
+
"tbl_broadcast_messages": [
|
|
6
|
+
"broadcast_id",
|
|
7
|
+
"created_at",
|
|
8
|
+
"chat_ids",
|
|
9
|
+
"scheduled_at",
|
|
10
|
+
"org_id",
|
|
11
|
+
"message_payload",
|
|
12
|
+
"completed_at",
|
|
13
|
+
"performed_by"
|
|
14
|
+
],
|
|
15
|
+
"tbl_broadcast_templates": [
|
|
16
|
+
"template_id",
|
|
17
|
+
"created_at",
|
|
18
|
+
"template_name",
|
|
19
|
+
"org_id",
|
|
20
|
+
"updated_at",
|
|
21
|
+
"message_payload"
|
|
22
|
+
],
|
|
23
|
+
"tbl_chat_access": [
|
|
24
|
+
"org_id",
|
|
25
|
+
"email",
|
|
26
|
+
"chat_id",
|
|
27
|
+
"has_access",
|
|
28
|
+
"last_read_timestamp",
|
|
29
|
+
"active_phone"
|
|
30
|
+
],
|
|
31
|
+
"tbl_chat_messages": [
|
|
32
|
+
"message_id",
|
|
33
|
+
"org_id",
|
|
34
|
+
"ack",
|
|
35
|
+
"author",
|
|
36
|
+
"body",
|
|
37
|
+
"broadcast",
|
|
38
|
+
"device_type",
|
|
39
|
+
"duration",
|
|
40
|
+
"forwarding_score",
|
|
41
|
+
"from",
|
|
42
|
+
"from_me",
|
|
43
|
+
"has_media",
|
|
44
|
+
"has_quoted_msg",
|
|
45
|
+
"has_reaction",
|
|
46
|
+
"id",
|
|
47
|
+
"invite_v4",
|
|
48
|
+
"is_ephemeral",
|
|
49
|
+
"is_forwarded",
|
|
50
|
+
"is_gif",
|
|
51
|
+
"is_starred",
|
|
52
|
+
"is_status",
|
|
53
|
+
"links",
|
|
54
|
+
"location",
|
|
55
|
+
"media_key",
|
|
56
|
+
"mentioned_ids",
|
|
57
|
+
"order_id",
|
|
58
|
+
"raw_data",
|
|
59
|
+
"to",
|
|
60
|
+
"token",
|
|
61
|
+
"message_type",
|
|
62
|
+
"vcards",
|
|
63
|
+
"chat_id",
|
|
64
|
+
"timestamp",
|
|
65
|
+
"org_phone",
|
|
66
|
+
"broadcast_id",
|
|
67
|
+
"is_deleted",
|
|
68
|
+
"media",
|
|
69
|
+
"performed_by",
|
|
70
|
+
"prev_body",
|
|
71
|
+
"quoted_message_id",
|
|
72
|
+
"sent_message_id",
|
|
73
|
+
"delivery_info",
|
|
74
|
+
"updated_at",
|
|
75
|
+
"message_ticket_id"
|
|
76
|
+
],
|
|
77
|
+
"tbl_chat_notifications": [
|
|
78
|
+
"org_id",
|
|
79
|
+
"notification_id",
|
|
80
|
+
"chat_id",
|
|
81
|
+
"author",
|
|
82
|
+
"body",
|
|
83
|
+
"id",
|
|
84
|
+
"recipientids",
|
|
85
|
+
"type",
|
|
86
|
+
"timestamp",
|
|
87
|
+
"org_phone"
|
|
88
|
+
],
|
|
89
|
+
"tbl_chat_participants": [
|
|
90
|
+
"org_id",
|
|
91
|
+
"chat_id",
|
|
92
|
+
"contact_id",
|
|
93
|
+
"id",
|
|
94
|
+
"is_admin",
|
|
95
|
+
"is_super_admin",
|
|
96
|
+
"org_phone"
|
|
97
|
+
],
|
|
98
|
+
"tbl_chat_reactions": [
|
|
99
|
+
"org_id",
|
|
100
|
+
"message_id",
|
|
101
|
+
"ack",
|
|
102
|
+
"id",
|
|
103
|
+
"orphan",
|
|
104
|
+
"reaction",
|
|
105
|
+
"read",
|
|
106
|
+
"reaction_id",
|
|
107
|
+
"timestamp",
|
|
108
|
+
"msg_id",
|
|
109
|
+
"orphan_reason",
|
|
110
|
+
"sender_id",
|
|
111
|
+
"org_phone"
|
|
112
|
+
],
|
|
113
|
+
"tbl_chat_tickets": [
|
|
114
|
+
"created_at",
|
|
115
|
+
"ticket_id",
|
|
116
|
+
"subject",
|
|
117
|
+
"status",
|
|
118
|
+
"assignee",
|
|
119
|
+
"assigned_by",
|
|
120
|
+
"chat_id",
|
|
121
|
+
"due_date",
|
|
122
|
+
"org_id",
|
|
123
|
+
"label_ids",
|
|
124
|
+
"quoted_message_id",
|
|
125
|
+
"raised_by",
|
|
126
|
+
"priority",
|
|
127
|
+
"last_updated_at",
|
|
128
|
+
"is_deleted"
|
|
129
|
+
],
|
|
130
|
+
"tbl_chats": [
|
|
131
|
+
"org_id",
|
|
132
|
+
"chat_id",
|
|
133
|
+
"archived",
|
|
134
|
+
"id",
|
|
135
|
+
"is_group",
|
|
136
|
+
"is_muted",
|
|
137
|
+
"is_read_only",
|
|
138
|
+
"mute_expiration",
|
|
139
|
+
"name",
|
|
140
|
+
"pinned",
|
|
141
|
+
"unread_count",
|
|
142
|
+
"group_metadata",
|
|
143
|
+
"chat_image",
|
|
144
|
+
"timestamp",
|
|
145
|
+
"invite_link",
|
|
146
|
+
"org_phone",
|
|
147
|
+
"label_ids",
|
|
148
|
+
"updated_at"
|
|
149
|
+
],
|
|
150
|
+
"tbl_contacts": [
|
|
151
|
+
"org_id",
|
|
152
|
+
"contact_id",
|
|
153
|
+
"id",
|
|
154
|
+
"number",
|
|
155
|
+
"is_business",
|
|
156
|
+
"is_enterprise",
|
|
157
|
+
"name",
|
|
158
|
+
"pushname",
|
|
159
|
+
"short_name",
|
|
160
|
+
"contact_type",
|
|
161
|
+
"is_me",
|
|
162
|
+
"is_user",
|
|
163
|
+
"is_group",
|
|
164
|
+
"is_wa_contact",
|
|
165
|
+
"is_my_contact",
|
|
166
|
+
"is_blocked",
|
|
167
|
+
"contact_image",
|
|
168
|
+
"contact_color",
|
|
169
|
+
"business_profile",
|
|
170
|
+
"verified_name",
|
|
171
|
+
"is_internal",
|
|
172
|
+
"label_ids",
|
|
173
|
+
"verified_level",
|
|
174
|
+
"updated_at"
|
|
175
|
+
],
|
|
176
|
+
"tbl_org": [
|
|
177
|
+
"org_id",
|
|
178
|
+
"created_at",
|
|
179
|
+
"org_image",
|
|
180
|
+
"org_name",
|
|
181
|
+
"support_link",
|
|
182
|
+
"org_metadata",
|
|
183
|
+
"org_plan",
|
|
184
|
+
"stripe_customer_details",
|
|
185
|
+
"stripe_customer_id",
|
|
186
|
+
"stripe_subscription_details"
|
|
187
|
+
],
|
|
188
|
+
"tbl_org_labels": [
|
|
189
|
+
"label_id",
|
|
190
|
+
"created_at",
|
|
191
|
+
"org_id",
|
|
192
|
+
"name",
|
|
193
|
+
"color",
|
|
194
|
+
"type"
|
|
195
|
+
],
|
|
196
|
+
"tbl_org_members": [
|
|
197
|
+
"created_at",
|
|
198
|
+
"email",
|
|
199
|
+
"user_id",
|
|
200
|
+
"invited_at",
|
|
201
|
+
"invited_by",
|
|
202
|
+
"org_id",
|
|
203
|
+
"role",
|
|
204
|
+
"member_image",
|
|
205
|
+
"member_name",
|
|
206
|
+
"is_active",
|
|
207
|
+
"member_color"
|
|
208
|
+
],
|
|
209
|
+
"tbl_org_phones": [
|
|
210
|
+
"org_id",
|
|
211
|
+
"org_phone",
|
|
212
|
+
"created_at",
|
|
213
|
+
"updated_at",
|
|
214
|
+
"wa_state",
|
|
215
|
+
"phone_id",
|
|
216
|
+
"qr_code",
|
|
217
|
+
"phone_image",
|
|
218
|
+
"phone_name",
|
|
219
|
+
"server_ip"
|
|
220
|
+
],
|
|
221
|
+
"view_broadcast_logs": [
|
|
222
|
+
"broadcast_id",
|
|
223
|
+
"org_id",
|
|
224
|
+
"message_payload",
|
|
225
|
+
"created_at",
|
|
226
|
+
"total_chats",
|
|
227
|
+
"sent_chats",
|
|
228
|
+
"failed_chats",
|
|
229
|
+
"total_member_count",
|
|
230
|
+
"delivered_member_count",
|
|
231
|
+
"read_member_count",
|
|
232
|
+
"completed_at",
|
|
233
|
+
"scheduled_at",
|
|
234
|
+
"performed_by",
|
|
235
|
+
"delivery_percentage",
|
|
236
|
+
"read_percentage"
|
|
237
|
+
],
|
|
238
|
+
"view_chat_messages": [
|
|
239
|
+
"message_id",
|
|
240
|
+
"org_id",
|
|
241
|
+
"ack",
|
|
242
|
+
"author",
|
|
243
|
+
"body",
|
|
244
|
+
"from_me",
|
|
245
|
+
"invite_v4",
|
|
246
|
+
"links",
|
|
247
|
+
"location",
|
|
248
|
+
"mentioned_ids",
|
|
249
|
+
"message_type",
|
|
250
|
+
"vcards",
|
|
251
|
+
"chat_id",
|
|
252
|
+
"timestamp",
|
|
253
|
+
"org_phone",
|
|
254
|
+
"broadcast_id",
|
|
255
|
+
"is_deleted",
|
|
256
|
+
"media",
|
|
257
|
+
"performed_by",
|
|
258
|
+
"prev_body",
|
|
259
|
+
"quoted_message_id",
|
|
260
|
+
"sender_phone",
|
|
261
|
+
"sent_message_id",
|
|
262
|
+
"delivery_info",
|
|
263
|
+
"updated_at",
|
|
264
|
+
"message_ticket_id",
|
|
265
|
+
"unique_id",
|
|
266
|
+
"is_gif",
|
|
267
|
+
"is_forwarded",
|
|
268
|
+
"is_starred"
|
|
269
|
+
],
|
|
270
|
+
"view_chats": [
|
|
271
|
+
"org_id",
|
|
272
|
+
"chat_id",
|
|
273
|
+
"org_phone",
|
|
274
|
+
"chat_image",
|
|
275
|
+
"invite_link",
|
|
276
|
+
"label_ids",
|
|
277
|
+
"updated_at",
|
|
278
|
+
"chat_name",
|
|
279
|
+
"latest_message",
|
|
280
|
+
"message_unread_count",
|
|
281
|
+
"member_count",
|
|
282
|
+
"chat_type",
|
|
283
|
+
"chat_access",
|
|
284
|
+
"has_access",
|
|
285
|
+
"last_read_timestamp",
|
|
286
|
+
"chat_org_phones",
|
|
287
|
+
"active_phone",
|
|
288
|
+
"group_description"
|
|
289
|
+
]
|
|
290
|
+
};
|
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,48 @@ export type Database = {
|
|
|
188
213
|
};
|
|
189
214
|
public: {
|
|
190
215
|
Tables: {
|
|
216
|
+
return_data: {
|
|
217
|
+
Row: {
|
|
218
|
+
json_agg: Json | null;
|
|
219
|
+
};
|
|
220
|
+
Insert: {
|
|
221
|
+
json_agg?: Json | null;
|
|
222
|
+
};
|
|
223
|
+
Update: {
|
|
224
|
+
json_agg?: Json | null;
|
|
225
|
+
};
|
|
226
|
+
Relationships: [];
|
|
227
|
+
};
|
|
228
|
+
tbl_ai_contexts: {
|
|
229
|
+
Row: {
|
|
230
|
+
answer: string;
|
|
231
|
+
attachments: string[] | null;
|
|
232
|
+
created_at: string | null;
|
|
233
|
+
embedding: string;
|
|
234
|
+
id: string;
|
|
235
|
+
org_id: string;
|
|
236
|
+
question: string;
|
|
237
|
+
};
|
|
238
|
+
Insert: {
|
|
239
|
+
answer: string;
|
|
240
|
+
attachments?: string[] | null;
|
|
241
|
+
created_at?: string | null;
|
|
242
|
+
embedding: string;
|
|
243
|
+
id?: string;
|
|
244
|
+
org_id: string;
|
|
245
|
+
question: string;
|
|
246
|
+
};
|
|
247
|
+
Update: {
|
|
248
|
+
answer?: string;
|
|
249
|
+
attachments?: string[] | null;
|
|
250
|
+
created_at?: string | null;
|
|
251
|
+
embedding?: string;
|
|
252
|
+
id?: string;
|
|
253
|
+
org_id?: string;
|
|
254
|
+
question?: string;
|
|
255
|
+
};
|
|
256
|
+
Relationships: [];
|
|
257
|
+
};
|
|
191
258
|
tbl_api_logs: {
|
|
192
259
|
Row: {
|
|
193
260
|
org_id: string;
|
|
@@ -819,6 +886,7 @@ export type Database = {
|
|
|
819
886
|
};
|
|
820
887
|
tbl_chat_properties: {
|
|
821
888
|
Row: {
|
|
889
|
+
ai_metadata: Json | null;
|
|
822
890
|
assigned_to: string | null;
|
|
823
891
|
chat_access: Json | null;
|
|
824
892
|
chat_id: string;
|
|
@@ -839,6 +907,7 @@ export type Database = {
|
|
|
839
907
|
zohodesk_metadata: Json | null;
|
|
840
908
|
};
|
|
841
909
|
Insert: {
|
|
910
|
+
ai_metadata?: Json | null;
|
|
842
911
|
assigned_to?: string | null;
|
|
843
912
|
chat_access?: Json | null;
|
|
844
913
|
chat_id: string;
|
|
@@ -859,6 +928,7 @@ export type Database = {
|
|
|
859
928
|
zohodesk_metadata?: Json | null;
|
|
860
929
|
};
|
|
861
930
|
Update: {
|
|
931
|
+
ai_metadata?: Json | null;
|
|
862
932
|
assigned_to?: string | null;
|
|
863
933
|
chat_access?: Json | null;
|
|
864
934
|
chat_id?: string;
|
|
@@ -1217,6 +1287,7 @@ export type Database = {
|
|
|
1217
1287
|
Row: {
|
|
1218
1288
|
created_at: string;
|
|
1219
1289
|
created_by: string | null;
|
|
1290
|
+
is_required: boolean;
|
|
1220
1291
|
org_id: string | null;
|
|
1221
1292
|
property_id: string;
|
|
1222
1293
|
property_name: string;
|
|
@@ -1227,6 +1298,7 @@ export type Database = {
|
|
|
1227
1298
|
Insert: {
|
|
1228
1299
|
created_at?: string;
|
|
1229
1300
|
created_by?: string | null;
|
|
1301
|
+
is_required?: boolean;
|
|
1230
1302
|
org_id?: string | null;
|
|
1231
1303
|
property_id?: string;
|
|
1232
1304
|
property_name: string;
|
|
@@ -1237,6 +1309,7 @@ export type Database = {
|
|
|
1237
1309
|
Update: {
|
|
1238
1310
|
created_at?: string;
|
|
1239
1311
|
created_by?: string | null;
|
|
1312
|
+
is_required?: boolean;
|
|
1240
1313
|
org_id?: string | null;
|
|
1241
1314
|
property_id?: string;
|
|
1242
1315
|
property_name?: string;
|
|
@@ -1557,6 +1630,13 @@ export type Database = {
|
|
|
1557
1630
|
user_id?: string | null;
|
|
1558
1631
|
};
|
|
1559
1632
|
Relationships: [
|
|
1633
|
+
{
|
|
1634
|
+
foreignKeyName: "tbl_org_members_fkey_auth_users";
|
|
1635
|
+
columns: ["user_id"];
|
|
1636
|
+
isOneToOne: false;
|
|
1637
|
+
referencedRelation: "users";
|
|
1638
|
+
referencedColumns: ["id"];
|
|
1639
|
+
},
|
|
1560
1640
|
{
|
|
1561
1641
|
foreignKeyName: "tbl_org_members_fkey_tbl_org";
|
|
1562
1642
|
columns: ["org_id"];
|
|
@@ -2392,6 +2472,13 @@ export type Database = {
|
|
|
2392
2472
|
};
|
|
2393
2473
|
Returns: Json;
|
|
2394
2474
|
};
|
|
2475
|
+
get_export_members_data: {
|
|
2476
|
+
Args: {
|
|
2477
|
+
org_id_input: string;
|
|
2478
|
+
chat_id_input?: string[];
|
|
2479
|
+
};
|
|
2480
|
+
Returns: Json;
|
|
2481
|
+
};
|
|
2395
2482
|
get_export_tickets_data: {
|
|
2396
2483
|
Args: {
|
|
2397
2484
|
org_id_input: string;
|
|
@@ -2464,6 +2551,13 @@ export type Database = {
|
|
|
2464
2551
|
};
|
|
2465
2552
|
Returns: Json;
|
|
2466
2553
|
};
|
|
2554
|
+
get_relevant_context: {
|
|
2555
|
+
Args: {
|
|
2556
|
+
org_id_input: string;
|
|
2557
|
+
query_embedding_input: string;
|
|
2558
|
+
};
|
|
2559
|
+
Returns: Json;
|
|
2560
|
+
};
|
|
2467
2561
|
get_team_metrics_between_dates: {
|
|
2468
2562
|
Args: {
|
|
2469
2563
|
org_id_input: string;
|
|
@@ -2502,6 +2596,18 @@ export type Database = {
|
|
|
2502
2596
|
result: Json;
|
|
2503
2597
|
}[];
|
|
2504
2598
|
};
|
|
2599
|
+
hnswhandler: {
|
|
2600
|
+
Args: {
|
|
2601
|
+
"": unknown;
|
|
2602
|
+
};
|
|
2603
|
+
Returns: unknown;
|
|
2604
|
+
};
|
|
2605
|
+
ivfflathandler: {
|
|
2606
|
+
Args: {
|
|
2607
|
+
"": unknown;
|
|
2608
|
+
};
|
|
2609
|
+
Returns: unknown;
|
|
2610
|
+
};
|
|
2505
2611
|
list_org_from_user: {
|
|
2506
2612
|
Args: Record<PropertyKey, never>;
|
|
2507
2613
|
Returns: string[];
|
|
@@ -2607,6 +2713,42 @@ export type Database = {
|
|
|
2607
2713
|
};
|
|
2608
2714
|
Returns: undefined;
|
|
2609
2715
|
};
|
|
2716
|
+
vector_avg: {
|
|
2717
|
+
Args: {
|
|
2718
|
+
"": number[];
|
|
2719
|
+
};
|
|
2720
|
+
Returns: string;
|
|
2721
|
+
};
|
|
2722
|
+
vector_dims: {
|
|
2723
|
+
Args: {
|
|
2724
|
+
"": string;
|
|
2725
|
+
};
|
|
2726
|
+
Returns: number;
|
|
2727
|
+
};
|
|
2728
|
+
vector_norm: {
|
|
2729
|
+
Args: {
|
|
2730
|
+
"": string;
|
|
2731
|
+
};
|
|
2732
|
+
Returns: number;
|
|
2733
|
+
};
|
|
2734
|
+
vector_out: {
|
|
2735
|
+
Args: {
|
|
2736
|
+
"": string;
|
|
2737
|
+
};
|
|
2738
|
+
Returns: unknown;
|
|
2739
|
+
};
|
|
2740
|
+
vector_send: {
|
|
2741
|
+
Args: {
|
|
2742
|
+
"": string;
|
|
2743
|
+
};
|
|
2744
|
+
Returns: string;
|
|
2745
|
+
};
|
|
2746
|
+
vector_typmod_in: {
|
|
2747
|
+
Args: {
|
|
2748
|
+
"": unknown[];
|
|
2749
|
+
};
|
|
2750
|
+
Returns: number;
|
|
2751
|
+
};
|
|
2610
2752
|
};
|
|
2611
2753
|
Enums: {
|
|
2612
2754
|
enum_broadcast_status: "inprogress" | "completed" | "stopped" | "expired";
|
|
@@ -2742,7 +2884,6 @@ export type Database = {
|
|
|
2742
2884
|
key: string;
|
|
2743
2885
|
owner_id: string | null;
|
|
2744
2886
|
upload_signature: string;
|
|
2745
|
-
user_metadata: Json | null;
|
|
2746
2887
|
version: string;
|
|
2747
2888
|
};
|
|
2748
2889
|
Insert: {
|
|
@@ -2753,7 +2894,6 @@ export type Database = {
|
|
|
2753
2894
|
key: string;
|
|
2754
2895
|
owner_id?: string | null;
|
|
2755
2896
|
upload_signature: string;
|
|
2756
|
-
user_metadata?: Json | null;
|
|
2757
2897
|
version: string;
|
|
2758
2898
|
};
|
|
2759
2899
|
Update: {
|
|
@@ -2764,7 +2904,6 @@ export type Database = {
|
|
|
2764
2904
|
key?: string;
|
|
2765
2905
|
owner_id?: string | null;
|
|
2766
2906
|
upload_signature?: string;
|
|
2767
|
-
user_metadata?: Json | null;
|
|
2768
2907
|
version?: string;
|
|
2769
2908
|
};
|
|
2770
2909
|
Relationships: [
|
|
@@ -2901,10 +3040,6 @@ export type Database = {
|
|
|
2901
3040
|
updated_at: string;
|
|
2902
3041
|
}[];
|
|
2903
3042
|
};
|
|
2904
|
-
operation: {
|
|
2905
|
-
Args: Record<PropertyKey, never>;
|
|
2906
|
-
Returns: string;
|
|
2907
|
-
};
|
|
2908
3043
|
search: {
|
|
2909
3044
|
Args: {
|
|
2910
3045
|
prefix: string;
|
|
@@ -2975,11 +3110,4 @@ export type Enums<PublicEnumNameOrOptions extends keyof PublicSchema["Enums"] |
|
|
|
2975
3110
|
} ? keyof Database[PublicEnumNameOrOptions["schema"]]["Enums"] : never = never> = PublicEnumNameOrOptions extends {
|
|
2976
3111
|
schema: keyof Database;
|
|
2977
3112
|
} ? Database[PublicEnumNameOrOptions["schema"]]["Enums"][EnumName] : PublicEnumNameOrOptions extends keyof PublicSchema["Enums"] ? PublicSchema["Enums"][PublicEnumNameOrOptions] : never;
|
|
2978
|
-
export type CompositeTypes<PublicCompositeTypeNameOrOptions extends keyof PublicSchema["CompositeTypes"] | {
|
|
2979
|
-
schema: keyof Database;
|
|
2980
|
-
}, CompositeTypeName extends PublicCompositeTypeNameOrOptions extends {
|
|
2981
|
-
schema: keyof Database;
|
|
2982
|
-
} ? keyof Database[PublicCompositeTypeNameOrOptions["schema"]]["CompositeTypes"] : never = never> = PublicCompositeTypeNameOrOptions extends {
|
|
2983
|
-
schema: keyof Database;
|
|
2984
|
-
} ? Database[PublicCompositeTypeNameOrOptions["schema"]]["CompositeTypes"][CompositeTypeName] : PublicCompositeTypeNameOrOptions extends keyof PublicSchema["CompositeTypes"] ? PublicSchema["CompositeTypes"][PublicCompositeTypeNameOrOptions] : never;
|
|
2985
3113
|
export {};
|
package/index.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './rules.types';
|
|
2
|
-
export * from './supabase.types';
|
|
3
|
-
export * from './types';
|
|
1
|
+
export * from './rules.types';
|
|
2
|
+
export * from './supabase.types';
|
|
3
|
+
export * from './types';
|