add support heartbeat to couchdb-changes-stream
This commit is contained in:
@@ -1,11 +1,12 @@
|
||||
import type { BaseDocument } from "./BaseDocument";
|
||||
import type { PushSubscription } from "web-push";
|
||||
|
||||
export interface WebPushSubscriptionDocument extends BaseDocument {
|
||||
_id: string; // Формат: "web_push_subscription:<user_uuid>:<browser_uuid>"
|
||||
type: "web_push_subscription";
|
||||
user_uuid: string; // UUID пользователя, связанного с подпиской
|
||||
browser_uuid: string; // UUID браузера, связанного с подпиской
|
||||
subscription: PushSubscriptionJSON;
|
||||
subscription: PushSubscription;
|
||||
created_at: string; // Дата создания подписки в ISO формате
|
||||
updated_at?: string; // Дата последнего обновления подписки
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user