@curatedotfun/masa-source
Version:
Masa source plugin for curatedotfun
15 lines (14 loc) • 760 B
TypeScript
import { IPlatformSearchService, LastProcessedState } from "@curatedotfun/types";
import { MasaClient, MasaSearchResult } from "../../masa-client";
import { TwitterQueryOptionsOutput, TwitterPlatformState } from "./types";
export type ServiceTweet = MasaSearchResult;
export declare class TwitterSearchService implements IPlatformSearchService<ServiceTweet, TwitterQueryOptionsOutput, TwitterPlatformState> {
private masaClient;
constructor(masaClient: MasaClient);
initialize(): Promise<void>;
search(platformOptions: TwitterQueryOptionsOutput, currentState: LastProcessedState<TwitterPlatformState> | null): Promise<{
items: ServiceTweet[];
nextStateData: TwitterPlatformState | null;
}>;
shutdown(): Promise<void>;
}