@wepublish/api
Version:
API core for we.publish.
19 lines (18 loc) • 946 B
TypeScript
import { PrismaClient } from '@prisma/client';
import { ImageFetcherService, MediaAdapterService } from "../../../../image-api/src";
import { Cache } from 'cache-manager';
import { EventFromSource } from './events-import.model';
import { CreateEventParams, EventsProvider, ImportedEventParams } from './events-import.service';
export declare class AgendaBaselService implements EventsProvider {
private cacheManager;
private prisma;
private mediaAdapter;
private imageFetcher;
constructor(cacheManager: Cache, prisma: PrismaClient, mediaAdapter: MediaAdapterService, imageFetcher: ImageFetcherService);
readonly name = "AgendaBasel";
readonly url = "https://www.agendabasel.ch/xmlexport/kzexport-basel.xml";
private getEvents;
importedEvents(): Promise<EventFromSource[]>;
importedEvent({ id }: ImportedEventParams): Promise<EventFromSource>;
createEvent({ id }: CreateEventParams): Promise<string>;
}