@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.
47 lines (46 loc) • 1.62 kB
TypeScript
export declare namespace Analytics {
/**
* Describes the structure of a single platform.
*/
interface IPlatform {
/** The unique code identifier for the platform. */
code: string;
/** The human-readable title for the platform. */
title: string;
/** The path to the platform's icon asset. */
icon: string;
}
/**
* Enumerates various platforms with associated metadata.
*
* - `web`: Represents the web platform.
* - `api`: Represents the API platform.
* - `android`: Represents the Android mobile platform.
* - `ios`: Represents the iOS mobile platform.
*/
export const Platform: Record<string, IPlatform>;
/**
* Defines the structure for the device type.
*
* @property {string} code - A unique identifier for the device type.
* @property {string} title - The localized key corresponding to the display name of the device type.
* @property {string} icon - The FontAwesome icon class representing the device type.
* @property {string} color - The hexadecimal color code associated with the device type.
*/
interface IDeviceType {
code: string;
title: string;
icon: string;
color: string;
}
/**
* An array of device types with associated metadata.
* This constant provides details about common device types
* like desktop, mobile, and tablet, and includes icons and
* colors for visual representation.
*
* @type {DeviceTypeItem[]}
*/
export const DeviceType: IDeviceType[];
export {};
}