@selldone/sdk-storefront
Version:
A TypeScript SDK to connect to your shop and build a fully functional storefront and website by simply developing a frontend web application. All backend operations are seamlessly managed by the serverless Selldone solution.
92 lines (91 loc) • 3.54 kB
TypeScript
/**
* Provides utility methods to retrieve setup configurations and meta values from the document head.
*/
export declare class SetupService {
/**
* Retrieves the content value of a meta tag by its name attribute.
* @param name - The name attribute of the meta tag.
* @param default_val - The default value to return if the meta tag is not found.
* @returns The content value of the meta tag or the default value.
*/
static GetMetaValue<T extends string | null>(name: string, default_val?: T): T | string;
static PWAVersion(): string | null;
/**
* Retrieves the main service's full URL.
* @returns The full URL of the main service (e.g., https://selldone.com).
*/
static MainServiceUrl(language?: string | null): string;
static GetApiSubdomain(subdomain: string): string | null;
static ShopsDomain(): string | null;
static EchoServer(): string | null;
static EchoPort(): string | null;
/**
* Retrieves the local service's country code.
* @returns The local service's country code (e.g., IR).
*/
static LocalServiceCountry(): string | null;
static SelldoneIframe(): string;
/**
* Retrieves the default language code.
* @returns The default language code.
*/
static DefaultLanguageCode(): string | null;
static DefaultCurrency(): string | null;
static DefaultCountry(): string | null;
static Contacts(): object | null;
static Socials(): object | null;
/**
* Selldone Footer HTML.
* @constructor
*/
static FooterExtraHtml(): string | undefined;
/**
* Retrieves the initial language based on the IP location.
* Default for global service is empty.
* Default for local service is 'fa' (equivalent to default-language).
* @returns The initial language.
*/
static GetInitialLanguage(): string;
static ColorThemeLight(): string;
static ColorThemeDark(): string;
static ColorThemeDeepDark(): string;
static ColorThemeInfo(): string;
static SelldoneActiveButtonColor(): string;
static GetCampaignId(): string | null;
static GetCampaignLinkId(): string | null;
static GetAffiliateId(): string | null;
static GetEmailId(): string | null;
static GetGDPREnable(): string | null;
static GetSelldoneCDN_Images(): string;
static GetSelldoneCDN_Jsons(): string;
static GetSelldoneCDNTemp_Files(): string;
static GetSelldoneCDN_AR(): string;
static GetSelldoneCDN_Videos(): string;
static GetSelldoneCDN_ID(): string;
static GetStorageDirectHost(): string | null;
static GetStorageDirect(): boolean;
static GetStorageDirectThumbnails(): boolean;
static GetOfficialBotTelegram(): string | null;
static GetLoginModes(): string[];
static AndroidApp(): string | null;
static IosApp(): string | null;
static GetReferrerMeta(): string | null;
static ShowSelldoneCopyright(): boolean;
static GetTemporaryAccessKey(): string | null;
static GetTwitterAccount(): string;
/**
* Retrieves the token for maps.
* @returns The map token.
*/
static MapToken(): string | null;
static MapStyle(): string | null;
/**
* Retrieves the captcha key.
* @returns The captcha key.
*/
static GetCaptchaKey(): string | null;
static GetLayoutOperator(): "official" | "test" | "dev" | null;
static GetLayoutImage(): string | null;
static GetLayoutVersion(): string | null;
static GetLayoutPackage(): string | null;
}