UNPKG

@63pokupki/nodejs-common

Version:
69 lines (68 loc) 1.86 kB
import { ErrorSys } from '@63pokupki/components'; import { Knex } from 'knex'; import { AAContext } from '@63pokupki/server'; import { UserSys } from './UserSys'; import { ResponseSys } from './ResponseSys'; import { LogicSys } from './LogicSys'; import { CacheSys } from './CacheSys'; import { AccessSys } from './AccessSys'; import { RedisSys } from './RedisSys'; import { CryptAlgT } from '../Helpers/CryptoH'; import { JwtAlgT } from '../Helpers/JwtH'; import { MqClientSys } from '@63pokupki/mq'; import { MonitoringSys } from '@63pokupki/monitoring.lib'; export declare class P63Context extends AAContext { method: string; msg?: string; common: { env: string; oldCoreURL: string; nameApp: string; errorMute: boolean; hook_url_auth: string; host_public: string; port: number; }; auth: { algorithm: string; secret: string; }; srv: { keyPool: string[]; ipPool: string[]; jwt: { jwtKey: string; algorithm: JwtAlgT; exp: number; }; cry: { key: string; algorithm: CryptAlgT; }; }; sys: { apikey: string; srvkey: string; bAuth: boolean; bSrv: boolean; bCache?: boolean; errorSys: ErrorSys; userSys: UserSys; responseSys: ResponseSys; logicSys: LogicSys; cacheSys: CacheSys; accessSys: AccessSys; monitoringSys: MonitoringSys; }; infrastructure: { mysql: Knex; redis: RedisSys; mqError?: MqClientSys; }; } export declare const devReq: any; /** * Инициализация MainRequest для консольных запросов * @param conf */ export declare function initMainRequest(conf: any): P63Context;