@periskope/types 0.6.47 → 0.6.49
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.
|
@@ -1 +1,19 @@
|
|
|
1
|
-
export declare const TableColumns:
|
|
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"];
|
|
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"];
|
|
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"];
|
|
19
|
+
};
|
package/dist/supabase.columns.js
CHANGED
|
@@ -179,7 +179,10 @@ exports.TableColumns = {
|
|
|
179
179
|
"org_name",
|
|
180
180
|
"support_link",
|
|
181
181
|
"org_metadata",
|
|
182
|
-
"org_plan"
|
|
182
|
+
"org_plan",
|
|
183
|
+
"stripe_customer_details",
|
|
184
|
+
"stripe_customer_id",
|
|
185
|
+
"stripe_subscription_details"
|
|
183
186
|
],
|
|
184
187
|
"tbl_org_labels": [
|
|
185
188
|
"label_id",
|
package/package.json
CHANGED
|
@@ -45,11 +45,11 @@ fetchNonGeneratedColumns().then((tables) => {
|
|
|
45
45
|
{}
|
|
46
46
|
);
|
|
47
47
|
|
|
48
|
-
const tsContent = `export const TableColumns
|
|
48
|
+
const tsContent = `export const TableColumns = ${JSON.stringify(
|
|
49
49
|
tableColumns,
|
|
50
50
|
null,
|
|
51
51
|
2
|
|
52
|
-
)};`;
|
|
52
|
+
)} as const;`;
|
|
53
53
|
|
|
54
54
|
fs.writeFileSync(outputFile, tsContent, 'utf8'); // Write the TS content to file
|
|
55
55
|
});
|
package/supabase.columns.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export const TableColumns
|
|
1
|
+
export const TableColumns = {
|
|
2
2
|
"tbl_broadcast_messages": [
|
|
3
3
|
"broadcast_id",
|
|
4
4
|
"created_at",
|
|
@@ -176,7 +176,10 @@ export const TableColumns: Record<string, string[]> = {
|
|
|
176
176
|
"org_name",
|
|
177
177
|
"support_link",
|
|
178
178
|
"org_metadata",
|
|
179
|
-
"org_plan"
|
|
179
|
+
"org_plan",
|
|
180
|
+
"stripe_customer_details",
|
|
181
|
+
"stripe_customer_id",
|
|
182
|
+
"stripe_subscription_details"
|
|
180
183
|
],
|
|
181
184
|
"tbl_org_labels": [
|
|
182
185
|
"label_id",
|
|
@@ -276,4 +279,4 @@ export const TableColumns: Record<string, string[]> = {
|
|
|
276
279
|
"chat_org_phones",
|
|
277
280
|
"active_phone"
|
|
278
281
|
]
|
|
279
|
-
};
|
|
282
|
+
} as const;
|