UNPKG

swipelime-client-node

Version:

swipelime-client-node is the official swipelime Node.js client library

16 lines (15 loc) 624 B
import { ServiceHandler } from '../ServiceHandler'; import { TaskType, TaskStatus } from '../types'; export default abstract class Task { protected readonly _serviceHandler: ServiceHandler; protected readonly _id: string; protected readonly taskType: TaskType; protected readonly data: Record<string, any>; readonly status: TaskStatus; readonly dateCreated: Date; readonly dateLastRun: Date | undefined; readonly retries: number | undefined; readonly timestampReceived: number; get id(): string; constructor(doc: any, serviceHandler: ServiceHandler, timestampReceived: number); }