UNPKG

@affinidi/common-check-widget-backend-lib

Version:

An common-check-widget-backend-lib used to development backend for common-check-widget-frontend

22 lines (21 loc) 974 B
export declare abstract class EndpointServiceBase { apiEndpoint: string; apiKey: string; errorCode: string; privateKeyFile: string; secretPassphrase: string; requestID: string; options: any; errors: any; constructor(apiEndpoint: string, apiKey: string, errorCode: string, privateKeyFile: string, secretPassphrase: string, requestID: string); retrieveApiKey(): string; fillOptions(options: any): void; callAPIEndpoint(): Promise<any>; getErrorMessage(errorObj?: any): any; decrypt(data: any): string; generatePayloadJson(flightNumber: string, flightDate: string, firstName: string, lastName: string, dateOfBirth: string, passport: string, nationality: string): string; generateHashFromData(dataToSign: any): Promise<string>; generateJWTFromDataHash(dataToSign: any): Promise<string>; generateJWTFromData(dataToSign: any): Promise<string>; compare(tokenExpected: any, tokenCompared: any): boolean; }