/** * Copyright (c) 2022 Gitpod GmbH. All rights reserved. * Licensed under the GNU Affero General Public License (AGPL). * See License.AGPL.txt in the project root for license information. */ import { WebhookEvent } from "@gitpod/gitpod-protocol"; export const WebhookEventDB = Symbol("WebhookEventDB"); export interface WebhookEventDB { createEvent(parts: Omit): Promise; updateEvent(id: string, update: Partial): Promise; findByCloneUrl(cloneUrl: string, limit?: number): Promise; deleteOldEvents(ageInDays: number, limit?: number): Promise; }