UNPKG

@fast-simon/storefront-kit

Version:

A comprehensive kit for developing storefronts with Fast Simon components, utilities, and React/Hydrogen support.

68 lines (67 loc) 2.02 kB
import { ServerProduct } from "@fast-simon/types"; export declare const transformToShopifyStructure: (products: ServerProduct[]) => { products: { nodes: (ServerProduct | { c: string; c_date?: number; d: string; f: number; id: string; iso: boolean; l: string; p: string; p_c: string; p_max: string; p_max_c: string; p_min: string; p_min_c: string; p_spl: number; review: number; reviews_count: number; s: string; sku: string; skus: string[]; t: string; t2: string; u: string; v_c: number; vra: [number, [string, string | number | boolean | string[] | number[] | boolean[] | undefined][]][]; vrc: object; att?: [string, string[] | [string, string[]][]][]; alt?: [string, string, (number | undefined)?][]; promotile?: boolean; handle: string | undefined; title: string; priceRange: { minVariantPrice: { amount: string; currencyCode: string; }; }; images: { nodes: { altText: string; height: number; width: number; id: string; url: string; }[]; }; featuredImage: { altText: string; height: number; width: number; id: string; url: string; }; variants: { nodes: { selectedOptions: { name: string; value: string; }[]; }[]; }; })[]; }; };