Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
@skava/graphql / src / models / Product.graphql.ts
Size: Mime:
import { gql } from 'apollo-server'
import Sku from './Sku.graphql'

export default gql`
  ${Sku}

  type ProductChildren {
    skus: [Sku]
    products: [Product]
    relatedproducts: [Product]
    recommentedproducts: [Product]
  }

  type Specifications {
    label: String
    value: String
  }

  type Product {
    identifier: ID!
    image: String
    type: String
    name: String
    children: ProductChildren
    properties: ProductProperties
    additional: [LabelValue]
    specifications: [LabelValue]
  }

  type ProductProperties {
    buyinfo: ProductBuyInfo
    iteminfo: ProductItemInfo
    reviewrating: ReviewRating
    skuprops: SkuProps
    state: State
  }

  type ProductBuyInfo implements IBuyInfo {
    pricing: Pricing
    inventorystatus: String
    instock: String
    preorder: String
    preorderdate: String
    deliverydate: String
    availablequantity: String
    availability: [Availability]
    promomessages: [Label]
  }

  type ProductItemInfo {
    categoryids: [LabelValue]
    flags: [LabelValue]
    videos: [LabelValue]
    additionalimages: [LabelValue]
    description: [LabelValue]
    ismasterproduct: Boolean
    iscollection: Boolean
    isgroupproduct: Boolean
    brand: String
  }

  type ReviewRating {
    reviewcount: String
    recommendedcount: String
    reviews: [CountValue]
    rating: String
    ratingrange: String
  }

  type CountValue {
    count: String
    value: String
  }

  type SkuProps {
    color: [ImageName]
    size1: [Name]
    style: [Name]
  }

  type State {
    starttime: String
    additionalinfo: [LabelValue]
  }
`