UNPKG

@citrineos/data

Version:

The OCPP data module which includes all persistence layer implementation.

25 lines (24 loc) 1.06 kB
import { SequelizeRepository } from './Base.js'; import type { BootstrapConfig } from '@citrineos/base'; import { Sequelize } from 'sequelize-typescript'; import type { ILogObj } from 'tslog'; import { Logger } from 'tslog'; import { AsyncJobStatus } from '../model/index.js'; export declare class SequelizeAsyncJobStatusRepository extends SequelizeRepository<AsyncJobStatus> { constructor(config: BootstrapConfig, logger?: Logger<ILogObj>, sequelizeInstance?: Sequelize); createAsyncJobStatus(asyncJobStatus: AsyncJobStatus): Promise<AsyncJobStatus>; updateAsyncJobStatus(updateData: { jobId: string; paginationParams?: any; totalObjects?: number; finishedAt?: Date; stoppedAt?: Date | null; stopScheduled?: boolean; isFailed?: boolean; }): Promise<AsyncJobStatus>; readByJobId(jobId: string): Promise<AsyncJobStatus | undefined>; findAllByQuery(query: { where: any; }): Promise<AsyncJobStatus[]>; deleteByJobId(jobId: string): Promise<AsyncJobStatus | undefined>; }