/**
 * This service builds API clients.
 */ import nodeFetch from "node-fetch" ; import { APIClient } from "../clients/api" ; import { IApiClientFactoryInterface } from "./IApiClientFactory" ; export default class ApiClientFactory implements IApiClientFactoryInterface { private readonly apiClient ! : ReturnType < APIClient > ; constructor ( apiKey , apiUrl , fetchApi = nodeFetch as any ) { this . apiClient = APIClient ( apiUrl , apiKey , fetchApi ) ; } /**
     * {@inheritDoc}
     */ public getClient ( ) { return this . apiClient ; } }