// Generated by dts-bundle-generator v6.9.0 import { HttpService } from '@nestjs/axios'; import { ArgumentsHost, CallHandler, ExceptionFilter, ExecutionContext, HttpStatus, MiddlewareConsumer, NestInterceptor, NestMiddleware, NestModule } from '@nestjs/common'; import { Reflector } from '@nestjs/core'; import { AxiosRequestConfig, AxiosResponse } from 'axios'; import { Request, Response } from 'express'; import { Logger as BaseLogger, Params, PinoLogger } from 'nestjs-pino'; import { Span } from 'opentracing'; import { Observable } from 'rxjs'; export declare class ConfigModule { constructor(); static init(data: any): typeof ConfigModule; } export declare class Constants { static readonly PROD = "PROD"; static readonly QA = "QA"; static readonly SAND = "SAND"; static readonly DEV = "DEV"; static readonly LOCAL = "LOCAL"; } export declare class DateConversion { static convertDateComponentsToInt(year: number, month: number, day: number): number; static convertDateStringToInt(dateString: string): number; static convertUTCDateToInt(date: Date): number; static convertIntToDateComponents(intDate: number): Array; static convertIntToUTCDate(intDate: number): Date; static convertIntToDateString(intDate: number): string; private static pad; } export declare const DisableAutoLogging: () => import("@nestjs/common").CustomDecorator; export declare const EnableAutoLogging: () => import("@nestjs/common").CustomDecorator; export declare class LoggingInterceptor implements NestInterceptor { private reflector; constructor(reflector: Reflector); intercept(context: ExecutionContext, next: CallHandler): Promise>; } export declare type NonEmptyArray = [ T, ...T[] ]; export declare const isNonEmptyArray: (arr: T[]) => arr is NonEmptyArray; export declare class PackageConstants { static readonly ENV_SOURCE: string; } export interface ProtocolError { code: string; message: string; details?: any; } export declare enum ProtocolErrorCode { COMMON_ERROR = "CommonError", DUPLICATE_ENTRY = "DuplicateEntry", FORBIDDEN_EXCEPTION = "ForbiddenException", INTERNAL_SERVER_ERROR = "InternalServerError", INVALID_NODE_ENVIRONMENT = "InvalidNodeEnvironment", INVALID_TOKEN = "InvalidToken", MISSING_CONFIGURATION = "MissingConfiguration", MISSING_REQUEST_ID = "MissingRequestId", NOT_FOUND = "NotFound", NOT_IMPLEMENTED = "NotImplemented", PLUGIN_ERROR = "PluginError", TOO_MANY_FOUND = "TooManyFound", VALIDATION_EXCEPTION = "ValidationException", MISSING_AGENT_ID = "MissingAgentId", MISSING_DEVICE_DETAILS = "MissingDeviceDetails", MISSING_SPAN = "MissingSpan", NO_CITIZEN_FOUND = "NoCitizenFound", NOT_REGISTERED = "NotRegistered", RATE_LIMIT_CONFIGURATION = "RateLimitConfiguration", REGISTRY_CONNECTION_ERROR = "RegistryConnectionError", BIOANALYZER_SERVER_ERROR = "BioanalyzerServerError", FINGERPRINT_LOW_QUALITY = "FingerprintLowQuality", FINGERPRINT_MISSING_AMPUTATION = "FingerprintMissingAmputation", FINGERPRINT_MISSING_NOT_CAPTURED = "FingerprintMissingNotCaptured", FINGERPRINT_MISSING_UNABLE_TO_PRINT = "FingerprintMissingUnableToPrint", FINGERPRINT_NO_MATCH = "FingerprintNoMatch", INVALID_BACKEND_NAME = "InvalidBackendName", INVALID_BACKEND_OPERATION = "InvalidBackendOperation", INVALID_DATA_TYPE = "InvalidDataType", INVALID_FILTERS = "InvalidFilters", INVALID_IMAGE_ENCODING = "InvalidImageEncoding", INVALID_IMAGE_FORMAT = "InvalidImageFormat", INVALID_PARAMS = "InvalidParams", INVALID_POSITION = "InvalidPosition", INVALID_TEMPLATE_VERSION = "InvalidTemplateVersion", NO_PHONE_NUMBER = "NoPhoneNumber", OTP_EXPIRED = "OtpExpired", OTP_NO_MATCH = "OtpNoMatch", PHONE_NUMBER_NO_MATCH = "PhoneNumberNoMatch", SMS_SEND_FAILED = "SmsSendFailed", TOO_MANY_ATTEMPTS = "TooManyAttempts", AGENCY_GOVERNANCE = "AgencyGovernance", AGENT = "AGENT", AGENT_CALL_FAILED = "AgentCallFailed", CONNECTION_NOT_READY = "ConnectionNotReady", ISSUE_FAILED = "IssueFailed", NO_CRED_DEF = "NoCredDef", NO_CREDENTIAL_TO_REVOKE = "NoCredentialToRevoke", PROOF_FAILED_NO_RESPONSE = "ProofFailedNoResponse", PROOF_FAILED_UNFULFILLED = "ProofFailedUnfulfilled", PROOF_FAILED_VERIFICATION = "ProofFailedVerification", PROBLEM_REPORT = "ProblemReport", INVALID_DATE = "InvalidDate" } export declare class ProtocolExceptionFilter implements ExceptionFilter { private errorMessage; catch(exception: any, host: ArgumentsHost): void; } export declare class ProtocolException implements ProtocolError { code: string; message: string; details?: any; httpStatus: HttpStatus; constructor(code: string, message: string, details?: any, httpStatus?: HttpStatus); } export declare class ProtocolLoggerModule { } export declare class ProtocolLogger extends BaseLogger { protected readonly logger: PinoLogger; private readonly maxLogLength; constructor(logger: PinoLogger, params: Params); debug(message: any, ...optionalParams: any[]): void; log(message: any, ...optionalParams: any[]): void; info(message: any, ...optionalParams: any[]): void; warn(message: any, ...optionalParams: any[]): void; error(message: any, ...optionalParams: any[]): void; private truncateMessage; } export declare class ProtocolUtility { static delay(ms: number): Promise; static timeDelta(l: Date, r: Date): number; static retryForDuration(durationMS: number, waitBetweenMS: number, retryFunction: any): Promise; } export declare const LOWER_CASE_LETTERS = "abcdefghijklmnopqrstuvwxyz"; export declare const UPPER_CASE_LETTERS = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; export declare const ALL_LETTERS: string; export declare const NUMBERS = "0123456789"; export declare const ALPHANUMERIC: string; export declare const URL_SAFE = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-._~"; export declare const ASCII = "!\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~"; export declare const randomString: (length?: number, charset?: string) => string; export declare const randomHexString: (length?: number) => string; export declare const randomBase64String: (length?: number) => string; export declare class SecurityUtility { static hash32(value: string): string; } export declare const Trace: (target: any, propertyKey: string, descriptor: PropertyDescriptor) => void; export declare const initTracer: (serviceName: string) => any; export declare const traceware: (serviceName: string) => (req: any, res: any, next: any) => any; export declare enum HttpConstants { REQUEST_ID_HEADER = "x-request-id", REQUEST_ID = "reqid", JWT_AUTH_HEADER = "x-jwt-auth", FSP_ID_HEADER = "x-fsp-id", PING_RESPONSE = "pong", HEALTHZ_RESPONSE = "OK", JSON_LIMIT = "50mb" } export declare class ProtocolHttpService { private readonly http; private retryCount; private exponentialDelay; constructor(http: HttpService); requestWithoutRetry(config: AxiosRequestConfig): Promise; requestWithRetry(config: AxiosRequestConfig, retryCount?: number, exponentialDelay?: number): Promise; httpWithRetry(observable: Observable>, times: number, delay: number): Promise; private getMessage; private getDetails; } export declare class ProtocolHttpModule { } export declare class RequestContextMiddleware implements NestMiddleware { use(req: Request, res: Response, next: () => void): void; } export declare class RequestContextModule implements NestModule { constructor(); configure(consumer: MiddlewareConsumer): void; } export declare class RequestContext { static NSID: string; private requestId; private span; constructor(req: any); static requestId(throwError?: boolean): string; private static currentRequestContext; static withTraceHeaders(headers: any): any; static getSpan(): Span; static setSpan(span: any): void; } export {};