import gql from 'graphql-tag'; import {Trunkshow} from 'types/TrunkshowTypes'; export interface TrunkshowQueryData { trunkshow: Trunkshow; } export interface TrunkshowQueryVars { slug: string; countryCode?: string; abTests?: string[]; clientCountryCode?: string; depositRate?: number; } const TRUNKSHOW_QUERY = gql` query Trunkshow( $slug: String $countryCode: String $clientCountryCode: String $abTests: [String] $depositRate: Float ) { trunkshow( slug: $slug ab_tests: $abTests client_country_code: $clientCountryCode ) { active_start_i active_end_i look_count id name slug page_type_slugs restricted active_for { designer_ids group_ids } description season_name designer_names designer_slugs looks { edges { node { id name next_look_id previous_look_id primary_image_urls { raw main } countdown_message trunkshow_name trunkshow_expired variants(first: 300) { edges { node { id name type product_id designer_name availability tag master available customizable limited_trunkshow_data { id } master_variants_data { id href color coming_soon can_sell label collections process_delivery_dates { delivery_starts_on delivery_ends_on } color_swatch_image_url primary_image_urls { small medium large } alternate_image_urls { small medium large } inventory { sku size available on_hand can_sell } prices( country_code: $countryCode deposit_rate: $depositRate ) { currency current_price { human price currency currency_html_code } original_price { human price currency currency_html_code } deposit_price { human price currency currency_html_code } } } other_variants_data { id href can_sell color color_swatch_image_url coming_soon label collections process_delivery_dates { delivery_starts_on delivery_ends_on } primary_image_urls { small medium large } alternate_image_urls { small medium large } inventory { sku size available on_hand can_sell } prices(country_code: $countryCode) { currency current_price { human price currency currency_html_code } original_price { human price currency currency_html_code } deposit_price { human price currency currency_html_code } } } } } } } } } variants(first: 300) { edges { node { id name type product_id designer_name availability tag master available customizable limited_trunkshow_data { id } master_variants_data { id href color coming_soon can_sell label collections process_delivery_dates { delivery_starts_on delivery_ends_on } color_swatch_image_url primary_image_urls { small medium large } alternate_image_urls { small medium large } inventory { sku size available on_hand can_sell } prices(country_code: $countryCode, deposit_rate: $depositRate) { currency current_price { human price currency currency_html_code } original_price { human price currency currency_html_code } deposit_price { human price currency currency_html_code } } } other_variants_data { id href can_sell color color_swatch_image_url coming_soon label collections process_delivery_dates { delivery_starts_on delivery_ends_on } primary_image_urls { small medium large } alternate_image_urls { small medium large } inventory { sku size available on_hand can_sell } prices(country_code: $countryCode) { currency current_price { human price currency currency_html_code } original_price { human price currency currency_html_code } deposit_price { human price currency currency_html_code } } } } } } } } `; export default TRUNKSHOW_QUERY;