Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add function to convert search-document info into Product #29

Merged
merged 5 commits into from
Feb 20, 2024

Conversation

thalytafabrine
Copy link
Member

What problem is this solving?

How should this be manually tested?

You can compare the intelligent-search-api response (which uses this new function) with the graphql response for product (that currently uses catalog-api results)

Graphql query you can use to check the fields:

query{
  product(identifier:{ field: sku, value: 326782298 }, salesChannel: 1) {
    brand
    brandId
    cacheId
    categories
    categoryId
    clusterHighlights{
      id
      name
    }
    description
    items {
      attachments{
        domainValues{
          FieldName
          MaxCaracters
          DomainValues
        }
        id
        required
      }
      complementName
      ean
      images{
        imageId
        imageTag
        imageUrl
        imageText
        imageLabel
      }
      itemId
      kitItems{
        itemId
        amount
      }
      measurementUnit
      name
      nameComplete
      referenceId{
        Key
        Value
      }
      sellers{
        addToCartLink
        commertialOffer{
          AvailableQuantity
          CacheVersionUsedToCallCheckout
          Installments{
            InterestRate
            Name
            NumberOfInstallments
            PaymentSystemGroupName
            PaymentSystemName
            TotalValuePlusInterestRate
            Value
          }
          ListPrice
          Price
          PriceValidUntil
          PriceWithoutDiscount
          RewardValue
          Tax
          discountHighlights{
            name
            additionalInfo{
              key
              value
            }
          }
          spotPrice
          taxPercentage
          teasers{
            name
            generalValues{
              key
              value
            }
            effects{
              parameters{
                name
                value
              }
            }
            conditions{
              parameters{
                name
                value
              }
            }
          }
        }
        sellerDefault
        sellerId
        sellerName
      }
      unitMultiplier
      variations{
        originalName
        name
        values
      }
      videos{
        videoUrl
      }
    }
  	jsonSpecifications
    link
    linkText
    priceRange{
      listPrice {
        lowPrice
        highPrice
      }
      sellingPrice{
        lowPrice
        highPrice
      }
    }
    productClusters{
      id
      name
    }
    productId
    productName
    productReference
    properties{
      name
      originalName
      values
    }
    releaseDate
    selectedProperties{
      key
      value
    }
    skuSpecifications {
      field {
        originalName
        name
      }
    }
    specificationGroups{
      name
      originalName
      specifications{
        name
        originalName
        values
      }
    }
  }
}

long cat

Screenshots or example usage

Type of changes

✔️ Type of Change
_ Bug fix
✔️ New feature
_ Breaking change
_ Technical improvements

@hiagolcm hiagolcm merged commit d5dbd43 into main Feb 20, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants