@lilianaa/nordigen-node
Version:
Nordigen official API client for Node.js
15 lines (13 loc) • 955 B
TypeScript
import { AcceptEuaData, CreateEuaData, RetrieveAllEuAsForAnEndUserData, RetrieveAllEuAsForAnEndUserParams, RetrieveEuaByIdData } from '../generated.js';
import { AgreementAcceptPraams as AgreementAcceptParams, AgreementCreateParams } from '../types/agreement.js';
import { HasDetail, WithClient } from '../types/client.js';
export declare class AgreementApi {
private readonly endpoint;
private readonly client;
constructor({ client }: WithClient);
createAgreement({ institutionId, maxHistoricalDays, accessValidForDays, accessScope, }: AgreementCreateParams): Promise<CreateEuaData>;
getAgreements({ limit, offset }?: RetrieveAllEuAsForAnEndUserParams): Promise<RetrieveAllEuAsForAnEndUserData>;
getAgreementById(agreementId: string): Promise<RetrieveEuaByIdData>;
deleteAgreement(agreementId: string): Promise<HasDetail>;
acceptAgreement({ agreementId, ip, userAgent }: AgreementAcceptParams): Promise<AcceptEuaData>;
}