@airplanegobrr/jackett-api
Version:
An api for 'Jackett' server requests
14 lines (13 loc) • 837 B
TypeScript
import { IJackettApiUrlModel } from "../model/jackett-api-url.model";
import { IJackettUrlSetting } from "../model/jackett-settings.model";
export declare class Commons {
static buildUrl(path: IJackettApiUrlModel, connectSetting: IJackettUrlSetting, data?: any): any;
/**
* Replaces placeholders in input string with matching params from data object.
*
* @param input string to replace its placeholders with data. Each placeholder should have a prefix & suffix of "%". Ex. "%PLACEHOLDER%"
* @param data Object that contains the source of data to fill the placeholders on the input string. Each parameter key should have a prefix & suffix of "%". Ex. "%PLACEHOLDER%"
* @return input Parsed string of the input & data.
*/
static buildPlaceHolders(input: string, data: any): string;
}