@citrineos/data
Version:
The OCPP data module which includes all persistence layer implementation.
15 lines (14 loc) • 869 B
TypeScript
import type { BootstrapConfig } from '@citrineos/base';
import { SequelizeRepository } from './Base.js';
import { Sequelize } from 'sequelize-typescript';
import type { ILogObj } from 'tslog';
import { Logger } from 'tslog';
import { ServerNetworkProfile } from '../model/index.js';
import type { IServerNetworkProfileRepository } from '../../../interfaces/index.js';
export declare class SequelizeServerNetworkProfileRepository extends SequelizeRepository<ServerNetworkProfile> implements IServerNetworkProfileRepository {
constructor(config: BootstrapConfig, logger?: Logger<ILogObj>, sequelizeInstance?: Sequelize);
/**
* Finds or creates a ServerNetworkProfile by id, updates its fields, saves, and returns the instance.
*/
upsertServerNetworkProfile(websocketServerConfig: any, maxCallLengthSeconds: number): Promise<ServerNetworkProfile>;
}