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.

30 lines (29 loc) 1.41 kB
export declare class CDN { selldone_service_url: string; shop_cdn_images: string; shop_cdn_jsons: string; shop_cdn_temp_files: string; shop_cdn_ar: string; shop_cdn_videos: string; cdn_image_by_id: string; storage_direct: boolean; storage_direct_thumbnails: boolean; storage_direct_url: string | null; constructor(); GET_SHOP_IMAGE_PATH(file_name: string | null, size?: number | null, random_fill?: boolean | number): string | null; GET_PUBLIC_FILE_PATH(file_name: string): string; GET_SHOP_JSON_PATH(file_name: string): string; GET_SHOP_TEMP_FILE_PATH(file_name: string): string | null; GET_USER_AVATAR(user_id: number, size?: "small" | "big" | null): string | null; GET_SHOP_3D_MODEL_PATH(shop_name: string, product_id: number, variant_id: number | null, folder_name: string, file_name: string): string; /** * Get video url (Direct from cloud storage) * @param file_name */ GET_VIDEO_URL(file_name: string): string | null; GET_SHOP_ICON(shop_id: number | string, size?: number): string; GET_CATEGORY_ICON(category_id: number | string, size?: number | null): string; GET_PRODUCT_IMAGE(product_id: number | string, size?: number | null): string; GET_DELIVERY_SERVICE_ICON(delivery_service_id: number | string, size?: number | null): string; GET_CONNECT_ICON(connect_id: number | string): string; }