import type { DownloadBundle, DownloadFileParams, QueuedProcess, } from "@lokalise/node-api"; import type { LogLevel } from "kliedz"; import type yauzl from "yauzl"; import type { ProcessDownloadFileParams } from "../../../lib/interfaces/index.js"; import { LokaliseDownload } from "../../../lib/services/LokaliseDownload.js"; // Public morozov export class FakeLokaliseDownload extends LokaliseDownload { public async getTranslationsBundle( downloadFileParams: DownloadFileParams, ): Promise { return await super.getTranslationsBundle(downloadFileParams); } public async getTranslationsBundleAsync( downloadFileParams: DownloadFileParams, ): Promise { return await super.getTranslationsBundleAsync(downloadFileParams); } public async downloadZip( url: string, downloadTimeout?: number | undefined, ): Promise { return await super.downloadZip(url, downloadTimeout); } public async unpackZip( zipFilePath: string, outputDir: string, ): Promise { return await super.unpackZip(zipFilePath, outputDir); } public async pollProcesses( processes: QueuedProcess[], initialWaitTime: number, maxWaitTime: number, ): Promise { return await super.pollProcesses(processes, initialWaitTime, maxWaitTime); } public async pollAsyncDownload( downloadProcess: QueuedProcess, initialWait: number, maxWait: number, ): Promise { return super.pollAsyncDownload(downloadProcess, initialWait, maxWait); } public logMsg(level: LogLevel, ...args: unknown[]): void { super.logMsg(level, ...args); } public async fetchBundleURLAsync( downloadFileParams: DownloadFileParams, processParams: Required, ): Promise { return super.fetchBundleURLAsync(downloadFileParams, processParams); } public processZipEntryPath(outputDir: string, entryFilename: string): string { return super.processZipEntryPath(outputDir, entryFilename); } public async handleZipEntry( entry: yauzl.Entry, zipfile: yauzl.ZipFile, outputDir: string, ): Promise { return super.handleZipEntry(entry, zipfile, outputDir); } public async fetchZipResponse( bundleURL: URL, signal: AbortSignal | undefined, downloadTimeout: number, ): Promise { return super.fetchZipResponse(bundleURL, signal, downloadTimeout); } public buildTempZipPath(): string { return super.buildTempZipPath(); } }