UNPKG

@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.

74 lines (73 loc) 2.71 kB
import type { Shop } from "../../models/shop/shop.model"; import { LabelingModes } from "../../enums/shop/options/LabelingOptions"; /** * Helper class for retrieving various shop-related configuration options. */ export declare class ShopOptionsHelper { /** * Returns the size unit configured for the shop. * @param shop The shop object containing configuration options. * @returns Size unit (e.g. "cm"). */ static GetSizeUnit(shop: Shop): string; /** * Returns the mass unit configured for the shop. * @param shop The shop object containing configuration options. * @returns Mass unit (e.g. "kg"). */ static GetMassUnit(shop: Shop): string; static GetDistanceUnit(shop: Shop): string; static GetShippingRestriction(shop: Shop): any; static GetAmp(shop: Shop): any; static GetBoost(shop: Shop): any; static GetLoginMethods(shop: Shop): any; static GetCheckout(shop: Shop): any; /** * Determines if guest checkout is enabled. * @param shop The shop object containing configuration options. * @returns Boolean indicating if guest checkout is enabled. */ static HasGuestCheckout(shop: Shop): boolean; static HasGuestPayment(shop: Shop): any; static HasMap(shop: Shop): boolean; static AskShippingAddress(shop: Shop, type: string): boolean | undefined; /** * Returns the active product types for the shop. * @param shop The shop object containing configuration options. * @returns Array of active product types. */ static GetActiveTypes(shop: Shop): string[]; /** * Returns the languages configured for the shop. * @param shop The shop object containing configuration options. * @returns Array of configured languages. */ static GetLanguages(shop: Shop): string[]; static GetShopMap(shop: Shop): any; /** * Checks if the shop map feature is enabled. * @param shop The shop object containing configuration options. * @returns Boolean indicating if the shop map feature is enabled. */ static IsEnableShopMap(shop: Shop): boolean; /** * Returns any custom variants configured for the shop. * @param shop The shop object containing configuration options. * @returns Object containing custom variants. */ static GetCustomVariants(shop: Shop): object; static GetLabeling(shop: Shop): { mode?: keyof typeof LabelingModes; SM?: string; SV?: string; SF?: string; SS?: string; SN?: string; POS?: string; AVO?: string; HYP?: string; BILL?: string; FUL?: string; VND?: string; }; }