mirror of
https://github.com/outline/outline.git
synced 2026-06-13 11:25:03 +03:00
bf45e97641
* Update types * fix circular dep * type imports * lint type imports and --fix
27 lines
636 B
TypeScript
27 lines
636 B
TypeScript
import type { IssueSource } from "@shared/schema";
|
|
import type {
|
|
IntegrationType,
|
|
IssueTrackerIntegrationService,
|
|
} from "@shared/types";
|
|
import type { Integration } from "@server/models";
|
|
|
|
export abstract class BaseIssueProvider {
|
|
service: IssueTrackerIntegrationService;
|
|
|
|
constructor(service: IssueTrackerIntegrationService) {
|
|
this.service = service;
|
|
}
|
|
|
|
abstract fetchSources(
|
|
integration: Integration<IntegrationType.Embed>
|
|
): Promise<IssueSource[]>;
|
|
|
|
abstract handleWebhook({
|
|
payload,
|
|
headers,
|
|
}: {
|
|
payload: Record<string, unknown>;
|
|
headers: Record<string, unknown>;
|
|
}): Promise<void>;
|
|
}
|