25 lines
650 B
TypeScript
25 lines
650 B
TypeScript
import type { JsonValue } from "@prisma/client/runtime/client";
|
|
import type { Topic } from "./topic.js";
|
|
|
|
export class PushSubscriptionDto {
|
|
id!: string;
|
|
endpoint!: string;
|
|
expirationTime!: number | null;
|
|
keys!: {
|
|
p256dh: string;
|
|
auth: string;
|
|
};
|
|
topic!: "TEST";
|
|
topicConfiguration!: JsonValue | null;
|
|
clientId!: string;
|
|
}
|
|
|
|
export class PushSubscriptionCreateArgs /* implements Omit<PushSubscriptionDto, "id">*/ {
|
|
endpoint!: string;
|
|
expirationTime!: number | null;
|
|
keys!: { p256dh: string; auth: string };
|
|
topic!: Topic;
|
|
topicConfiguration!: string | null;
|
|
clientId!: string;
|
|
}
|