@apillon/sdk
Version:
▶◀ Apillon SDK for NodeJS ▶◀
28 lines • 1.03 kB
TypeScript
import { ApillonModule } from '../../lib/apillon';
import { IApillonList } from '../../types/apillon';
import { IWebsiteFilters, ShortUrl } from '../../types/hosting';
import { HostingWebsite } from './hosting-website';
export declare class Hosting extends ApillonModule {
/**
* Base API url for hosting.
*/
private API_PREFIX;
/**
* List all websites
* @param {IWebsiteFilters} params Query filters for listing websites
* @returns A list of HostingWebsite instances.
*/
listWebsites(params?: IWebsiteFilters): Promise<IApillonList<HostingWebsite>>;
/**
* @param uuid Unique website identifier.
* @returns An empty instance of HostingWebsite.
*/
website(uuid: string): HostingWebsite;
/**
* Generate a short link for a given target URL
* @param {string} targetUrl - The targer URL to generate a shortened URL for
* @returns {ShortUrl}
*/
generateShortUrl(targetUrl: string): Promise<ShortUrl>;
}
//# sourceMappingURL=hosting.d.ts.map