From 704316c3daf89293ba374aa0ee66fb13003d3c65 Mon Sep 17 00:00:00 2001 From: Heitor Ramon Ribeiro Date: Fri, 7 May 2021 23:49:20 -0300 Subject: [PATCH 1/3] refactor(api-client): removed non-default magento products query parameters --- .../src/fragments/productFragment.graphql | 2 - packages/api-client/src/types/GraphQL.ts | 732 +++++++++--------- 2 files changed, 366 insertions(+), 368 deletions(-) diff --git a/packages/api-client/src/fragments/productFragment.graphql b/packages/api-client/src/fragments/productFragment.graphql index 6997b119d..2533e9ae4 100644 --- a/packages/api-client/src/fragments/productFragment.graphql +++ b/packages/api-client/src/fragments/productFragment.graphql @@ -9,11 +9,9 @@ fragment ProductData on ProductInterface { __typename sku name - new stock_status only_x_left_in_stock rating_summary - sale ...ProductThumbnailData ...ProductPriceRangeData ...ProductUrlFragmentData diff --git a/packages/api-client/src/types/GraphQL.ts b/packages/api-client/src/types/GraphQL.ts index 8f4e450fa..62e469ce9 100644 --- a/packages/api-client/src/types/GraphQL.ts +++ b/packages/api-client/src/types/GraphQL.ts @@ -7116,271 +7116,271 @@ export type RelatedProductQuery = { products?: Maybe<{ items?: Maybe & { related_products?: Maybe - & ProductThumbnailData_BundleProduct_Fragment - & ProductPriceRangeData_BundleProduct_Fragment - & ProductUrlFragmentData_BundleProduct_Fragment - & ProductCategoriesData_BundleProduct_Fragment + & Pick + & { thumbnail?: Maybe>, price_range: { minimum_price: { final_price: Pick, regular_price: Pick } }, url_rewrites?: Maybe>>>, categories?: Maybe + & { breadcrumbs?: Maybe>>> } + )>>> } ) | ( { __typename: 'ConfigurableProduct' } - & Pick - & ProductThumbnailData_ConfigurableProduct_Fragment - & ProductPriceRangeData_ConfigurableProduct_Fragment - & ProductUrlFragmentData_ConfigurableProduct_Fragment - & ProductCategoriesData_ConfigurableProduct_Fragment + & Pick + & { thumbnail?: Maybe>, price_range: { minimum_price: { final_price: Pick, regular_price: Pick } }, url_rewrites?: Maybe>>>, categories?: Maybe + & { breadcrumbs?: Maybe>>> } + )>>> } ) | ( { __typename: 'DownloadableProduct' } - & Pick - & ProductThumbnailData_DownloadableProduct_Fragment - & ProductPriceRangeData_DownloadableProduct_Fragment - & ProductUrlFragmentData_DownloadableProduct_Fragment - & ProductCategoriesData_DownloadableProduct_Fragment + & Pick + & { thumbnail?: Maybe>, price_range: { minimum_price: { final_price: Pick, regular_price: Pick } }, url_rewrites?: Maybe>>>, categories?: Maybe + & { breadcrumbs?: Maybe>>> } + )>>> } ) | ( { __typename: 'GroupedProduct' } - & Pick - & ProductThumbnailData_GroupedProduct_Fragment - & ProductPriceRangeData_GroupedProduct_Fragment - & ProductUrlFragmentData_GroupedProduct_Fragment - & ProductCategoriesData_GroupedProduct_Fragment + & Pick + & { thumbnail?: Maybe>, price_range: { minimum_price: { final_price: Pick, regular_price: Pick } }, url_rewrites?: Maybe>>>, categories?: Maybe + & { breadcrumbs?: Maybe>>> } + )>>> } ) | ( { __typename: 'SimpleProduct' } - & Pick - & ProductThumbnailData_SimpleProduct_Fragment - & ProductPriceRangeData_SimpleProduct_Fragment - & ProductUrlFragmentData_SimpleProduct_Fragment - & ProductCategoriesData_SimpleProduct_Fragment + & Pick + & { thumbnail?: Maybe>, price_range: { minimum_price: { final_price: Pick, regular_price: Pick } }, url_rewrites?: Maybe>>>, categories?: Maybe + & { breadcrumbs?: Maybe>>> } + )>>> } ) | ( { __typename: 'VirtualProduct' } - & Pick - & ProductThumbnailData_VirtualProduct_Fragment - & ProductPriceRangeData_VirtualProduct_Fragment - & ProductUrlFragmentData_VirtualProduct_Fragment - & ProductCategoriesData_VirtualProduct_Fragment + & Pick + & { thumbnail?: Maybe>, price_range: { minimum_price: { final_price: Pick, regular_price: Pick } }, url_rewrites?: Maybe>>>, categories?: Maybe + & { breadcrumbs?: Maybe>>> } + )>>> } )>>> } ) | ( Pick & { related_products?: Maybe - & ProductThumbnailData_BundleProduct_Fragment - & ProductPriceRangeData_BundleProduct_Fragment - & ProductUrlFragmentData_BundleProduct_Fragment - & ProductCategoriesData_BundleProduct_Fragment + & Pick + & { thumbnail?: Maybe>, price_range: { minimum_price: { final_price: Pick, regular_price: Pick } }, url_rewrites?: Maybe>>>, categories?: Maybe + & { breadcrumbs?: Maybe>>> } + )>>> } ) | ( { __typename: 'ConfigurableProduct' } - & Pick - & ProductThumbnailData_ConfigurableProduct_Fragment - & ProductPriceRangeData_ConfigurableProduct_Fragment - & ProductUrlFragmentData_ConfigurableProduct_Fragment - & ProductCategoriesData_ConfigurableProduct_Fragment + & Pick + & { thumbnail?: Maybe>, price_range: { minimum_price: { final_price: Pick, regular_price: Pick } }, url_rewrites?: Maybe>>>, categories?: Maybe + & { breadcrumbs?: Maybe>>> } + )>>> } ) | ( { __typename: 'DownloadableProduct' } - & Pick - & ProductThumbnailData_DownloadableProduct_Fragment - & ProductPriceRangeData_DownloadableProduct_Fragment - & ProductUrlFragmentData_DownloadableProduct_Fragment - & ProductCategoriesData_DownloadableProduct_Fragment + & Pick + & { thumbnail?: Maybe>, price_range: { minimum_price: { final_price: Pick, regular_price: Pick } }, url_rewrites?: Maybe>>>, categories?: Maybe + & { breadcrumbs?: Maybe>>> } + )>>> } ) | ( { __typename: 'GroupedProduct' } - & Pick - & ProductThumbnailData_GroupedProduct_Fragment - & ProductPriceRangeData_GroupedProduct_Fragment - & ProductUrlFragmentData_GroupedProduct_Fragment - & ProductCategoriesData_GroupedProduct_Fragment + & Pick + & { thumbnail?: Maybe>, price_range: { minimum_price: { final_price: Pick, regular_price: Pick } }, url_rewrites?: Maybe>>>, categories?: Maybe + & { breadcrumbs?: Maybe>>> } + )>>> } ) | ( { __typename: 'SimpleProduct' } - & Pick - & ProductThumbnailData_SimpleProduct_Fragment - & ProductPriceRangeData_SimpleProduct_Fragment - & ProductUrlFragmentData_SimpleProduct_Fragment - & ProductCategoriesData_SimpleProduct_Fragment + & Pick + & { thumbnail?: Maybe>, price_range: { minimum_price: { final_price: Pick, regular_price: Pick } }, url_rewrites?: Maybe>>>, categories?: Maybe + & { breadcrumbs?: Maybe>>> } + )>>> } ) | ( { __typename: 'VirtualProduct' } - & Pick - & ProductThumbnailData_VirtualProduct_Fragment - & ProductPriceRangeData_VirtualProduct_Fragment - & ProductUrlFragmentData_VirtualProduct_Fragment - & ProductCategoriesData_VirtualProduct_Fragment + & Pick + & { thumbnail?: Maybe>, price_range: { minimum_price: { final_price: Pick, regular_price: Pick } }, url_rewrites?: Maybe>>>, categories?: Maybe + & { breadcrumbs?: Maybe>>> } + )>>> } )>>> } ) | ( Pick & { related_products?: Maybe - & ProductThumbnailData_BundleProduct_Fragment - & ProductPriceRangeData_BundleProduct_Fragment - & ProductUrlFragmentData_BundleProduct_Fragment - & ProductCategoriesData_BundleProduct_Fragment + & Pick + & { thumbnail?: Maybe>, price_range: { minimum_price: { final_price: Pick, regular_price: Pick } }, url_rewrites?: Maybe>>>, categories?: Maybe + & { breadcrumbs?: Maybe>>> } + )>>> } ) | ( { __typename: 'ConfigurableProduct' } - & Pick - & ProductThumbnailData_ConfigurableProduct_Fragment - & ProductPriceRangeData_ConfigurableProduct_Fragment - & ProductUrlFragmentData_ConfigurableProduct_Fragment - & ProductCategoriesData_ConfigurableProduct_Fragment + & Pick + & { thumbnail?: Maybe>, price_range: { minimum_price: { final_price: Pick, regular_price: Pick } }, url_rewrites?: Maybe>>>, categories?: Maybe + & { breadcrumbs?: Maybe>>> } + )>>> } ) | ( { __typename: 'DownloadableProduct' } - & Pick - & ProductThumbnailData_DownloadableProduct_Fragment - & ProductPriceRangeData_DownloadableProduct_Fragment - & ProductUrlFragmentData_DownloadableProduct_Fragment - & ProductCategoriesData_DownloadableProduct_Fragment + & Pick + & { thumbnail?: Maybe>, price_range: { minimum_price: { final_price: Pick, regular_price: Pick } }, url_rewrites?: Maybe>>>, categories?: Maybe + & { breadcrumbs?: Maybe>>> } + )>>> } ) | ( { __typename: 'GroupedProduct' } - & Pick - & ProductThumbnailData_GroupedProduct_Fragment - & ProductPriceRangeData_GroupedProduct_Fragment - & ProductUrlFragmentData_GroupedProduct_Fragment - & ProductCategoriesData_GroupedProduct_Fragment + & Pick + & { thumbnail?: Maybe>, price_range: { minimum_price: { final_price: Pick, regular_price: Pick } }, url_rewrites?: Maybe>>>, categories?: Maybe + & { breadcrumbs?: Maybe>>> } + )>>> } ) | ( { __typename: 'SimpleProduct' } - & Pick - & ProductThumbnailData_SimpleProduct_Fragment - & ProductPriceRangeData_SimpleProduct_Fragment - & ProductUrlFragmentData_SimpleProduct_Fragment - & ProductCategoriesData_SimpleProduct_Fragment + & Pick + & { thumbnail?: Maybe>, price_range: { minimum_price: { final_price: Pick, regular_price: Pick } }, url_rewrites?: Maybe>>>, categories?: Maybe + & { breadcrumbs?: Maybe>>> } + )>>> } ) | ( { __typename: 'VirtualProduct' } - & Pick - & ProductThumbnailData_VirtualProduct_Fragment - & ProductPriceRangeData_VirtualProduct_Fragment - & ProductUrlFragmentData_VirtualProduct_Fragment - & ProductCategoriesData_VirtualProduct_Fragment + & Pick + & { thumbnail?: Maybe>, price_range: { minimum_price: { final_price: Pick, regular_price: Pick } }, url_rewrites?: Maybe>>>, categories?: Maybe + & { breadcrumbs?: Maybe>>> } + )>>> } )>>> } ) | ( Pick & { related_products?: Maybe - & ProductThumbnailData_BundleProduct_Fragment - & ProductPriceRangeData_BundleProduct_Fragment - & ProductUrlFragmentData_BundleProduct_Fragment - & ProductCategoriesData_BundleProduct_Fragment + & Pick + & { thumbnail?: Maybe>, price_range: { minimum_price: { final_price: Pick, regular_price: Pick } }, url_rewrites?: Maybe>>>, categories?: Maybe + & { breadcrumbs?: Maybe>>> } + )>>> } ) | ( { __typename: 'ConfigurableProduct' } - & Pick - & ProductThumbnailData_ConfigurableProduct_Fragment - & ProductPriceRangeData_ConfigurableProduct_Fragment - & ProductUrlFragmentData_ConfigurableProduct_Fragment - & ProductCategoriesData_ConfigurableProduct_Fragment + & Pick + & { thumbnail?: Maybe>, price_range: { minimum_price: { final_price: Pick, regular_price: Pick } }, url_rewrites?: Maybe>>>, categories?: Maybe + & { breadcrumbs?: Maybe>>> } + )>>> } ) | ( { __typename: 'DownloadableProduct' } - & Pick - & ProductThumbnailData_DownloadableProduct_Fragment - & ProductPriceRangeData_DownloadableProduct_Fragment - & ProductUrlFragmentData_DownloadableProduct_Fragment - & ProductCategoriesData_DownloadableProduct_Fragment + & Pick + & { thumbnail?: Maybe>, price_range: { minimum_price: { final_price: Pick, regular_price: Pick } }, url_rewrites?: Maybe>>>, categories?: Maybe + & { breadcrumbs?: Maybe>>> } + )>>> } ) | ( { __typename: 'GroupedProduct' } - & Pick - & ProductThumbnailData_GroupedProduct_Fragment - & ProductPriceRangeData_GroupedProduct_Fragment - & ProductUrlFragmentData_GroupedProduct_Fragment - & ProductCategoriesData_GroupedProduct_Fragment + & Pick + & { thumbnail?: Maybe>, price_range: { minimum_price: { final_price: Pick, regular_price: Pick } }, url_rewrites?: Maybe>>>, categories?: Maybe + & { breadcrumbs?: Maybe>>> } + )>>> } ) | ( { __typename: 'SimpleProduct' } - & Pick - & ProductThumbnailData_SimpleProduct_Fragment - & ProductPriceRangeData_SimpleProduct_Fragment - & ProductUrlFragmentData_SimpleProduct_Fragment - & ProductCategoriesData_SimpleProduct_Fragment + & Pick + & { thumbnail?: Maybe>, price_range: { minimum_price: { final_price: Pick, regular_price: Pick } }, url_rewrites?: Maybe>>>, categories?: Maybe + & { breadcrumbs?: Maybe>>> } + )>>> } ) | ( { __typename: 'VirtualProduct' } - & Pick - & ProductThumbnailData_VirtualProduct_Fragment - & ProductPriceRangeData_VirtualProduct_Fragment - & ProductUrlFragmentData_VirtualProduct_Fragment - & ProductCategoriesData_VirtualProduct_Fragment + & Pick + & { thumbnail?: Maybe>, price_range: { minimum_price: { final_price: Pick, regular_price: Pick } }, url_rewrites?: Maybe>>>, categories?: Maybe + & { breadcrumbs?: Maybe>>> } + )>>> } )>>> } ) | ( Pick & { related_products?: Maybe - & ProductThumbnailData_BundleProduct_Fragment - & ProductPriceRangeData_BundleProduct_Fragment - & ProductUrlFragmentData_BundleProduct_Fragment - & ProductCategoriesData_BundleProduct_Fragment + & Pick + & { thumbnail?: Maybe>, price_range: { minimum_price: { final_price: Pick, regular_price: Pick } }, url_rewrites?: Maybe>>>, categories?: Maybe + & { breadcrumbs?: Maybe>>> } + )>>> } ) | ( { __typename: 'ConfigurableProduct' } - & Pick - & ProductThumbnailData_ConfigurableProduct_Fragment - & ProductPriceRangeData_ConfigurableProduct_Fragment - & ProductUrlFragmentData_ConfigurableProduct_Fragment - & ProductCategoriesData_ConfigurableProduct_Fragment + & Pick + & { thumbnail?: Maybe>, price_range: { minimum_price: { final_price: Pick, regular_price: Pick } }, url_rewrites?: Maybe>>>, categories?: Maybe + & { breadcrumbs?: Maybe>>> } + )>>> } ) | ( { __typename: 'DownloadableProduct' } - & Pick - & ProductThumbnailData_DownloadableProduct_Fragment - & ProductPriceRangeData_DownloadableProduct_Fragment - & ProductUrlFragmentData_DownloadableProduct_Fragment - & ProductCategoriesData_DownloadableProduct_Fragment + & Pick + & { thumbnail?: Maybe>, price_range: { minimum_price: { final_price: Pick, regular_price: Pick } }, url_rewrites?: Maybe>>>, categories?: Maybe + & { breadcrumbs?: Maybe>>> } + )>>> } ) | ( { __typename: 'GroupedProduct' } - & Pick - & ProductThumbnailData_GroupedProduct_Fragment - & ProductPriceRangeData_GroupedProduct_Fragment - & ProductUrlFragmentData_GroupedProduct_Fragment - & ProductCategoriesData_GroupedProduct_Fragment + & Pick + & { thumbnail?: Maybe>, price_range: { minimum_price: { final_price: Pick, regular_price: Pick } }, url_rewrites?: Maybe>>>, categories?: Maybe + & { breadcrumbs?: Maybe>>> } + )>>> } ) | ( { __typename: 'SimpleProduct' } - & Pick - & ProductThumbnailData_SimpleProduct_Fragment - & ProductPriceRangeData_SimpleProduct_Fragment - & ProductUrlFragmentData_SimpleProduct_Fragment - & ProductCategoriesData_SimpleProduct_Fragment + & Pick + & { thumbnail?: Maybe>, price_range: { minimum_price: { final_price: Pick, regular_price: Pick } }, url_rewrites?: Maybe>>>, categories?: Maybe + & { breadcrumbs?: Maybe>>> } + )>>> } ) | ( { __typename: 'VirtualProduct' } - & Pick - & ProductThumbnailData_VirtualProduct_Fragment - & ProductPriceRangeData_VirtualProduct_Fragment - & ProductUrlFragmentData_VirtualProduct_Fragment - & ProductCategoriesData_VirtualProduct_Fragment + & Pick + & { thumbnail?: Maybe>, price_range: { minimum_price: { final_price: Pick, regular_price: Pick } }, url_rewrites?: Maybe>>>, categories?: Maybe + & { breadcrumbs?: Maybe>>> } + )>>> } )>>> } ) | ( Pick & { related_products?: Maybe - & ProductThumbnailData_BundleProduct_Fragment - & ProductPriceRangeData_BundleProduct_Fragment - & ProductUrlFragmentData_BundleProduct_Fragment - & ProductCategoriesData_BundleProduct_Fragment + & Pick + & { thumbnail?: Maybe>, price_range: { minimum_price: { final_price: Pick, regular_price: Pick } }, url_rewrites?: Maybe>>>, categories?: Maybe + & { breadcrumbs?: Maybe>>> } + )>>> } ) | ( { __typename: 'ConfigurableProduct' } - & Pick - & ProductThumbnailData_ConfigurableProduct_Fragment - & ProductPriceRangeData_ConfigurableProduct_Fragment - & ProductUrlFragmentData_ConfigurableProduct_Fragment - & ProductCategoriesData_ConfigurableProduct_Fragment + & Pick + & { thumbnail?: Maybe>, price_range: { minimum_price: { final_price: Pick, regular_price: Pick } }, url_rewrites?: Maybe>>>, categories?: Maybe + & { breadcrumbs?: Maybe>>> } + )>>> } ) | ( { __typename: 'DownloadableProduct' } - & Pick - & ProductThumbnailData_DownloadableProduct_Fragment - & ProductPriceRangeData_DownloadableProduct_Fragment - & ProductUrlFragmentData_DownloadableProduct_Fragment - & ProductCategoriesData_DownloadableProduct_Fragment + & Pick + & { thumbnail?: Maybe>, price_range: { minimum_price: { final_price: Pick, regular_price: Pick } }, url_rewrites?: Maybe>>>, categories?: Maybe + & { breadcrumbs?: Maybe>>> } + )>>> } ) | ( { __typename: 'GroupedProduct' } - & Pick - & ProductThumbnailData_GroupedProduct_Fragment - & ProductPriceRangeData_GroupedProduct_Fragment - & ProductUrlFragmentData_GroupedProduct_Fragment - & ProductCategoriesData_GroupedProduct_Fragment + & Pick + & { thumbnail?: Maybe>, price_range: { minimum_price: { final_price: Pick, regular_price: Pick } }, url_rewrites?: Maybe>>>, categories?: Maybe + & { breadcrumbs?: Maybe>>> } + )>>> } ) | ( { __typename: 'SimpleProduct' } - & Pick - & ProductThumbnailData_SimpleProduct_Fragment - & ProductPriceRangeData_SimpleProduct_Fragment - & ProductUrlFragmentData_SimpleProduct_Fragment - & ProductCategoriesData_SimpleProduct_Fragment + & Pick + & { thumbnail?: Maybe>, price_range: { minimum_price: { final_price: Pick, regular_price: Pick } }, url_rewrites?: Maybe>>>, categories?: Maybe + & { breadcrumbs?: Maybe>>> } + )>>> } ) | ( { __typename: 'VirtualProduct' } - & Pick - & ProductThumbnailData_VirtualProduct_Fragment - & ProductPriceRangeData_VirtualProduct_Fragment - & ProductUrlFragmentData_VirtualProduct_Fragment - & ProductCategoriesData_VirtualProduct_Fragment + & Pick + & { thumbnail?: Maybe>, price_range: { minimum_price: { final_price: Pick, regular_price: Pick } }, url_rewrites?: Maybe>>>, categories?: Maybe + & { breadcrumbs?: Maybe>>> } + )>>> } )>>> } )>>> }> }; @@ -7490,271 +7490,271 @@ export type UpsellProductsQuery = { products?: Maybe<{ items?: Maybe & { upsell_products?: Maybe - & ProductThumbnailData_BundleProduct_Fragment - & ProductPriceRangeData_BundleProduct_Fragment - & ProductUrlFragmentData_BundleProduct_Fragment - & ProductCategoriesData_BundleProduct_Fragment + & Pick + & { thumbnail?: Maybe>, price_range: { minimum_price: { final_price: Pick, regular_price: Pick } }, url_rewrites?: Maybe>>>, categories?: Maybe + & { breadcrumbs?: Maybe>>> } + )>>> } ) | ( { __typename: 'ConfigurableProduct' } - & Pick - & ProductThumbnailData_ConfigurableProduct_Fragment - & ProductPriceRangeData_ConfigurableProduct_Fragment - & ProductUrlFragmentData_ConfigurableProduct_Fragment - & ProductCategoriesData_ConfigurableProduct_Fragment + & Pick + & { thumbnail?: Maybe>, price_range: { minimum_price: { final_price: Pick, regular_price: Pick } }, url_rewrites?: Maybe>>>, categories?: Maybe + & { breadcrumbs?: Maybe>>> } + )>>> } ) | ( { __typename: 'DownloadableProduct' } - & Pick - & ProductThumbnailData_DownloadableProduct_Fragment - & ProductPriceRangeData_DownloadableProduct_Fragment - & ProductUrlFragmentData_DownloadableProduct_Fragment - & ProductCategoriesData_DownloadableProduct_Fragment + & Pick + & { thumbnail?: Maybe>, price_range: { minimum_price: { final_price: Pick, regular_price: Pick } }, url_rewrites?: Maybe>>>, categories?: Maybe + & { breadcrumbs?: Maybe>>> } + )>>> } ) | ( { __typename: 'GroupedProduct' } - & Pick - & ProductThumbnailData_GroupedProduct_Fragment - & ProductPriceRangeData_GroupedProduct_Fragment - & ProductUrlFragmentData_GroupedProduct_Fragment - & ProductCategoriesData_GroupedProduct_Fragment + & Pick + & { thumbnail?: Maybe>, price_range: { minimum_price: { final_price: Pick, regular_price: Pick } }, url_rewrites?: Maybe>>>, categories?: Maybe + & { breadcrumbs?: Maybe>>> } + )>>> } ) | ( { __typename: 'SimpleProduct' } - & Pick - & ProductThumbnailData_SimpleProduct_Fragment - & ProductPriceRangeData_SimpleProduct_Fragment - & ProductUrlFragmentData_SimpleProduct_Fragment - & ProductCategoriesData_SimpleProduct_Fragment + & Pick + & { thumbnail?: Maybe>, price_range: { minimum_price: { final_price: Pick, regular_price: Pick } }, url_rewrites?: Maybe>>>, categories?: Maybe + & { breadcrumbs?: Maybe>>> } + )>>> } ) | ( { __typename: 'VirtualProduct' } - & Pick - & ProductThumbnailData_VirtualProduct_Fragment - & ProductPriceRangeData_VirtualProduct_Fragment - & ProductUrlFragmentData_VirtualProduct_Fragment - & ProductCategoriesData_VirtualProduct_Fragment + & Pick + & { thumbnail?: Maybe>, price_range: { minimum_price: { final_price: Pick, regular_price: Pick } }, url_rewrites?: Maybe>>>, categories?: Maybe + & { breadcrumbs?: Maybe>>> } + )>>> } )>>> } ) | ( Pick & { upsell_products?: Maybe - & ProductThumbnailData_BundleProduct_Fragment - & ProductPriceRangeData_BundleProduct_Fragment - & ProductUrlFragmentData_BundleProduct_Fragment - & ProductCategoriesData_BundleProduct_Fragment + & Pick + & { thumbnail?: Maybe>, price_range: { minimum_price: { final_price: Pick, regular_price: Pick } }, url_rewrites?: Maybe>>>, categories?: Maybe + & { breadcrumbs?: Maybe>>> } + )>>> } ) | ( { __typename: 'ConfigurableProduct' } - & Pick - & ProductThumbnailData_ConfigurableProduct_Fragment - & ProductPriceRangeData_ConfigurableProduct_Fragment - & ProductUrlFragmentData_ConfigurableProduct_Fragment - & ProductCategoriesData_ConfigurableProduct_Fragment + & Pick + & { thumbnail?: Maybe>, price_range: { minimum_price: { final_price: Pick, regular_price: Pick } }, url_rewrites?: Maybe>>>, categories?: Maybe + & { breadcrumbs?: Maybe>>> } + )>>> } ) | ( { __typename: 'DownloadableProduct' } - & Pick - & ProductThumbnailData_DownloadableProduct_Fragment - & ProductPriceRangeData_DownloadableProduct_Fragment - & ProductUrlFragmentData_DownloadableProduct_Fragment - & ProductCategoriesData_DownloadableProduct_Fragment + & Pick + & { thumbnail?: Maybe>, price_range: { minimum_price: { final_price: Pick, regular_price: Pick } }, url_rewrites?: Maybe>>>, categories?: Maybe + & { breadcrumbs?: Maybe>>> } + )>>> } ) | ( { __typename: 'GroupedProduct' } - & Pick - & ProductThumbnailData_GroupedProduct_Fragment - & ProductPriceRangeData_GroupedProduct_Fragment - & ProductUrlFragmentData_GroupedProduct_Fragment - & ProductCategoriesData_GroupedProduct_Fragment + & Pick + & { thumbnail?: Maybe>, price_range: { minimum_price: { final_price: Pick, regular_price: Pick } }, url_rewrites?: Maybe>>>, categories?: Maybe + & { breadcrumbs?: Maybe>>> } + )>>> } ) | ( { __typename: 'SimpleProduct' } - & Pick - & ProductThumbnailData_SimpleProduct_Fragment - & ProductPriceRangeData_SimpleProduct_Fragment - & ProductUrlFragmentData_SimpleProduct_Fragment - & ProductCategoriesData_SimpleProduct_Fragment + & Pick + & { thumbnail?: Maybe>, price_range: { minimum_price: { final_price: Pick, regular_price: Pick } }, url_rewrites?: Maybe>>>, categories?: Maybe + & { breadcrumbs?: Maybe>>> } + )>>> } ) | ( { __typename: 'VirtualProduct' } - & Pick - & ProductThumbnailData_VirtualProduct_Fragment - & ProductPriceRangeData_VirtualProduct_Fragment - & ProductUrlFragmentData_VirtualProduct_Fragment - & ProductCategoriesData_VirtualProduct_Fragment + & Pick + & { thumbnail?: Maybe>, price_range: { minimum_price: { final_price: Pick, regular_price: Pick } }, url_rewrites?: Maybe>>>, categories?: Maybe + & { breadcrumbs?: Maybe>>> } + )>>> } )>>> } ) | ( Pick & { upsell_products?: Maybe - & ProductThumbnailData_BundleProduct_Fragment - & ProductPriceRangeData_BundleProduct_Fragment - & ProductUrlFragmentData_BundleProduct_Fragment - & ProductCategoriesData_BundleProduct_Fragment + & Pick + & { thumbnail?: Maybe>, price_range: { minimum_price: { final_price: Pick, regular_price: Pick } }, url_rewrites?: Maybe>>>, categories?: Maybe + & { breadcrumbs?: Maybe>>> } + )>>> } ) | ( { __typename: 'ConfigurableProduct' } - & Pick - & ProductThumbnailData_ConfigurableProduct_Fragment - & ProductPriceRangeData_ConfigurableProduct_Fragment - & ProductUrlFragmentData_ConfigurableProduct_Fragment - & ProductCategoriesData_ConfigurableProduct_Fragment + & Pick + & { thumbnail?: Maybe>, price_range: { minimum_price: { final_price: Pick, regular_price: Pick } }, url_rewrites?: Maybe>>>, categories?: Maybe + & { breadcrumbs?: Maybe>>> } + )>>> } ) | ( { __typename: 'DownloadableProduct' } - & Pick - & ProductThumbnailData_DownloadableProduct_Fragment - & ProductPriceRangeData_DownloadableProduct_Fragment - & ProductUrlFragmentData_DownloadableProduct_Fragment - & ProductCategoriesData_DownloadableProduct_Fragment + & Pick + & { thumbnail?: Maybe>, price_range: { minimum_price: { final_price: Pick, regular_price: Pick } }, url_rewrites?: Maybe>>>, categories?: Maybe + & { breadcrumbs?: Maybe>>> } + )>>> } ) | ( { __typename: 'GroupedProduct' } - & Pick - & ProductThumbnailData_GroupedProduct_Fragment - & ProductPriceRangeData_GroupedProduct_Fragment - & ProductUrlFragmentData_GroupedProduct_Fragment - & ProductCategoriesData_GroupedProduct_Fragment + & Pick + & { thumbnail?: Maybe>, price_range: { minimum_price: { final_price: Pick, regular_price: Pick } }, url_rewrites?: Maybe>>>, categories?: Maybe + & { breadcrumbs?: Maybe>>> } + )>>> } ) | ( { __typename: 'SimpleProduct' } - & Pick - & ProductThumbnailData_SimpleProduct_Fragment - & ProductPriceRangeData_SimpleProduct_Fragment - & ProductUrlFragmentData_SimpleProduct_Fragment - & ProductCategoriesData_SimpleProduct_Fragment + & Pick + & { thumbnail?: Maybe>, price_range: { minimum_price: { final_price: Pick, regular_price: Pick } }, url_rewrites?: Maybe>>>, categories?: Maybe + & { breadcrumbs?: Maybe>>> } + )>>> } ) | ( { __typename: 'VirtualProduct' } - & Pick - & ProductThumbnailData_VirtualProduct_Fragment - & ProductPriceRangeData_VirtualProduct_Fragment - & ProductUrlFragmentData_VirtualProduct_Fragment - & ProductCategoriesData_VirtualProduct_Fragment + & Pick + & { thumbnail?: Maybe>, price_range: { minimum_price: { final_price: Pick, regular_price: Pick } }, url_rewrites?: Maybe>>>, categories?: Maybe + & { breadcrumbs?: Maybe>>> } + )>>> } )>>> } ) | ( Pick & { upsell_products?: Maybe - & ProductThumbnailData_BundleProduct_Fragment - & ProductPriceRangeData_BundleProduct_Fragment - & ProductUrlFragmentData_BundleProduct_Fragment - & ProductCategoriesData_BundleProduct_Fragment + & Pick + & { thumbnail?: Maybe>, price_range: { minimum_price: { final_price: Pick, regular_price: Pick } }, url_rewrites?: Maybe>>>, categories?: Maybe + & { breadcrumbs?: Maybe>>> } + )>>> } ) | ( { __typename: 'ConfigurableProduct' } - & Pick - & ProductThumbnailData_ConfigurableProduct_Fragment - & ProductPriceRangeData_ConfigurableProduct_Fragment - & ProductUrlFragmentData_ConfigurableProduct_Fragment - & ProductCategoriesData_ConfigurableProduct_Fragment + & Pick + & { thumbnail?: Maybe>, price_range: { minimum_price: { final_price: Pick, regular_price: Pick } }, url_rewrites?: Maybe>>>, categories?: Maybe + & { breadcrumbs?: Maybe>>> } + )>>> } ) | ( { __typename: 'DownloadableProduct' } - & Pick - & ProductThumbnailData_DownloadableProduct_Fragment - & ProductPriceRangeData_DownloadableProduct_Fragment - & ProductUrlFragmentData_DownloadableProduct_Fragment - & ProductCategoriesData_DownloadableProduct_Fragment + & Pick + & { thumbnail?: Maybe>, price_range: { minimum_price: { final_price: Pick, regular_price: Pick } }, url_rewrites?: Maybe>>>, categories?: Maybe + & { breadcrumbs?: Maybe>>> } + )>>> } ) | ( { __typename: 'GroupedProduct' } - & Pick - & ProductThumbnailData_GroupedProduct_Fragment - & ProductPriceRangeData_GroupedProduct_Fragment - & ProductUrlFragmentData_GroupedProduct_Fragment - & ProductCategoriesData_GroupedProduct_Fragment + & Pick + & { thumbnail?: Maybe>, price_range: { minimum_price: { final_price: Pick, regular_price: Pick } }, url_rewrites?: Maybe>>>, categories?: Maybe + & { breadcrumbs?: Maybe>>> } + )>>> } ) | ( { __typename: 'SimpleProduct' } - & Pick - & ProductThumbnailData_SimpleProduct_Fragment - & ProductPriceRangeData_SimpleProduct_Fragment - & ProductUrlFragmentData_SimpleProduct_Fragment - & ProductCategoriesData_SimpleProduct_Fragment + & Pick + & { thumbnail?: Maybe>, price_range: { minimum_price: { final_price: Pick, regular_price: Pick } }, url_rewrites?: Maybe>>>, categories?: Maybe + & { breadcrumbs?: Maybe>>> } + )>>> } ) | ( { __typename: 'VirtualProduct' } - & Pick - & ProductThumbnailData_VirtualProduct_Fragment - & ProductPriceRangeData_VirtualProduct_Fragment - & ProductUrlFragmentData_VirtualProduct_Fragment - & ProductCategoriesData_VirtualProduct_Fragment + & Pick + & { thumbnail?: Maybe>, price_range: { minimum_price: { final_price: Pick, regular_price: Pick } }, url_rewrites?: Maybe>>>, categories?: Maybe + & { breadcrumbs?: Maybe>>> } + )>>> } )>>> } ) | ( Pick & { upsell_products?: Maybe - & ProductThumbnailData_BundleProduct_Fragment - & ProductPriceRangeData_BundleProduct_Fragment - & ProductUrlFragmentData_BundleProduct_Fragment - & ProductCategoriesData_BundleProduct_Fragment + & Pick + & { thumbnail?: Maybe>, price_range: { minimum_price: { final_price: Pick, regular_price: Pick } }, url_rewrites?: Maybe>>>, categories?: Maybe + & { breadcrumbs?: Maybe>>> } + )>>> } ) | ( { __typename: 'ConfigurableProduct' } - & Pick - & ProductThumbnailData_ConfigurableProduct_Fragment - & ProductPriceRangeData_ConfigurableProduct_Fragment - & ProductUrlFragmentData_ConfigurableProduct_Fragment - & ProductCategoriesData_ConfigurableProduct_Fragment + & Pick + & { thumbnail?: Maybe>, price_range: { minimum_price: { final_price: Pick, regular_price: Pick } }, url_rewrites?: Maybe>>>, categories?: Maybe + & { breadcrumbs?: Maybe>>> } + )>>> } ) | ( { __typename: 'DownloadableProduct' } - & Pick - & ProductThumbnailData_DownloadableProduct_Fragment - & ProductPriceRangeData_DownloadableProduct_Fragment - & ProductUrlFragmentData_DownloadableProduct_Fragment - & ProductCategoriesData_DownloadableProduct_Fragment + & Pick + & { thumbnail?: Maybe>, price_range: { minimum_price: { final_price: Pick, regular_price: Pick } }, url_rewrites?: Maybe>>>, categories?: Maybe + & { breadcrumbs?: Maybe>>> } + )>>> } ) | ( { __typename: 'GroupedProduct' } - & Pick - & ProductThumbnailData_GroupedProduct_Fragment - & ProductPriceRangeData_GroupedProduct_Fragment - & ProductUrlFragmentData_GroupedProduct_Fragment - & ProductCategoriesData_GroupedProduct_Fragment + & Pick + & { thumbnail?: Maybe>, price_range: { minimum_price: { final_price: Pick, regular_price: Pick } }, url_rewrites?: Maybe>>>, categories?: Maybe + & { breadcrumbs?: Maybe>>> } + )>>> } ) | ( { __typename: 'SimpleProduct' } - & Pick - & ProductThumbnailData_SimpleProduct_Fragment - & ProductPriceRangeData_SimpleProduct_Fragment - & ProductUrlFragmentData_SimpleProduct_Fragment - & ProductCategoriesData_SimpleProduct_Fragment + & Pick + & { thumbnail?: Maybe>, price_range: { minimum_price: { final_price: Pick, regular_price: Pick } }, url_rewrites?: Maybe>>>, categories?: Maybe + & { breadcrumbs?: Maybe>>> } + )>>> } ) | ( { __typename: 'VirtualProduct' } - & Pick - & ProductThumbnailData_VirtualProduct_Fragment - & ProductPriceRangeData_VirtualProduct_Fragment - & ProductUrlFragmentData_VirtualProduct_Fragment - & ProductCategoriesData_VirtualProduct_Fragment + & Pick + & { thumbnail?: Maybe>, price_range: { minimum_price: { final_price: Pick, regular_price: Pick } }, url_rewrites?: Maybe>>>, categories?: Maybe + & { breadcrumbs?: Maybe>>> } + )>>> } )>>> } ) | ( Pick & { upsell_products?: Maybe - & ProductThumbnailData_BundleProduct_Fragment - & ProductPriceRangeData_BundleProduct_Fragment - & ProductUrlFragmentData_BundleProduct_Fragment - & ProductCategoriesData_BundleProduct_Fragment + & Pick + & { thumbnail?: Maybe>, price_range: { minimum_price: { final_price: Pick, regular_price: Pick } }, url_rewrites?: Maybe>>>, categories?: Maybe + & { breadcrumbs?: Maybe>>> } + )>>> } ) | ( { __typename: 'ConfigurableProduct' } - & Pick - & ProductThumbnailData_ConfigurableProduct_Fragment - & ProductPriceRangeData_ConfigurableProduct_Fragment - & ProductUrlFragmentData_ConfigurableProduct_Fragment - & ProductCategoriesData_ConfigurableProduct_Fragment + & Pick + & { thumbnail?: Maybe>, price_range: { minimum_price: { final_price: Pick, regular_price: Pick } }, url_rewrites?: Maybe>>>, categories?: Maybe + & { breadcrumbs?: Maybe>>> } + )>>> } ) | ( { __typename: 'DownloadableProduct' } - & Pick - & ProductThumbnailData_DownloadableProduct_Fragment - & ProductPriceRangeData_DownloadableProduct_Fragment - & ProductUrlFragmentData_DownloadableProduct_Fragment - & ProductCategoriesData_DownloadableProduct_Fragment + & Pick + & { thumbnail?: Maybe>, price_range: { minimum_price: { final_price: Pick, regular_price: Pick } }, url_rewrites?: Maybe>>>, categories?: Maybe + & { breadcrumbs?: Maybe>>> } + )>>> } ) | ( { __typename: 'GroupedProduct' } - & Pick - & ProductThumbnailData_GroupedProduct_Fragment - & ProductPriceRangeData_GroupedProduct_Fragment - & ProductUrlFragmentData_GroupedProduct_Fragment - & ProductCategoriesData_GroupedProduct_Fragment + & Pick + & { thumbnail?: Maybe>, price_range: { minimum_price: { final_price: Pick, regular_price: Pick } }, url_rewrites?: Maybe>>>, categories?: Maybe + & { breadcrumbs?: Maybe>>> } + )>>> } ) | ( { __typename: 'SimpleProduct' } - & Pick - & ProductThumbnailData_SimpleProduct_Fragment - & ProductPriceRangeData_SimpleProduct_Fragment - & ProductUrlFragmentData_SimpleProduct_Fragment - & ProductCategoriesData_SimpleProduct_Fragment + & Pick + & { thumbnail?: Maybe>, price_range: { minimum_price: { final_price: Pick, regular_price: Pick } }, url_rewrites?: Maybe>>>, categories?: Maybe + & { breadcrumbs?: Maybe>>> } + )>>> } ) | ( { __typename: 'VirtualProduct' } - & Pick - & ProductThumbnailData_VirtualProduct_Fragment - & ProductPriceRangeData_VirtualProduct_Fragment - & ProductUrlFragmentData_VirtualProduct_Fragment - & ProductCategoriesData_VirtualProduct_Fragment + & Pick + & { thumbnail?: Maybe>, price_range: { minimum_price: { final_price: Pick, regular_price: Pick } }, url_rewrites?: Maybe>>>, categories?: Maybe + & { breadcrumbs?: Maybe>>> } + )>>> } )>>> } )>>> }> }; @@ -8116,7 +8116,7 @@ export type ProductCategoriesDataFragment = ProductCategoriesData_BundleProduct_ type ProductData_BundleProduct_Fragment = ( { __typename: 'BundleProduct' } - & Pick + & Pick & ProductThumbnailData_BundleProduct_Fragment & ProductPriceRangeData_BundleProduct_Fragment & ProductUrlFragmentData_BundleProduct_Fragment @@ -8125,7 +8125,7 @@ type ProductData_BundleProduct_Fragment = ( type ProductData_ConfigurableProduct_Fragment = ( { __typename: 'ConfigurableProduct' } - & Pick + & Pick & ProductThumbnailData_ConfigurableProduct_Fragment & ProductPriceRangeData_ConfigurableProduct_Fragment & ProductUrlFragmentData_ConfigurableProduct_Fragment @@ -8135,7 +8135,7 @@ type ProductData_ConfigurableProduct_Fragment = ( type ProductData_DownloadableProduct_Fragment = ( { __typename: 'DownloadableProduct' } - & Pick + & Pick & ProductThumbnailData_DownloadableProduct_Fragment & ProductPriceRangeData_DownloadableProduct_Fragment & ProductUrlFragmentData_DownloadableProduct_Fragment @@ -8144,7 +8144,7 @@ type ProductData_DownloadableProduct_Fragment = ( type ProductData_GroupedProduct_Fragment = ( { __typename: 'GroupedProduct' } - & Pick + & Pick & ProductThumbnailData_GroupedProduct_Fragment & ProductPriceRangeData_GroupedProduct_Fragment & ProductUrlFragmentData_GroupedProduct_Fragment @@ -8153,7 +8153,7 @@ type ProductData_GroupedProduct_Fragment = ( type ProductData_SimpleProduct_Fragment = ( { __typename: 'SimpleProduct' } - & Pick + & Pick & ProductThumbnailData_SimpleProduct_Fragment & ProductPriceRangeData_SimpleProduct_Fragment & ProductUrlFragmentData_SimpleProduct_Fragment @@ -8162,7 +8162,7 @@ type ProductData_SimpleProduct_Fragment = ( type ProductData_VirtualProduct_Fragment = ( { __typename: 'VirtualProduct' } - & Pick + & Pick & ProductThumbnailData_VirtualProduct_Fragment & ProductPriceRangeData_VirtualProduct_Fragment & ProductUrlFragmentData_VirtualProduct_Fragment From 26deb2fb70030369d484072fadda9aed5056b4ac Mon Sep 17 00:00:00 2001 From: Heitor Ramon Ribeiro Date: Fri, 7 May 2021 23:49:38 -0300 Subject: [PATCH 2/3] refactor(theme): removed non-default magento products query parameters --- packages/theme/pages/Home.vue | 3 --- 1 file changed, 3 deletions(-) diff --git a/packages/theme/pages/Home.vue b/packages/theme/pages/Home.vue index ae77e95b1..8f7ed2547 100644 --- a/packages/theme/pages/Home.vue +++ b/packages/theme/pages/Home.vue @@ -120,9 +120,6 @@ export default { await newProductsSearch({ pageSize: 10, currentPage: 1, - new: { - eq: '1', - }, sort: { position: 'ASC', }, From 0707f9420528bef2197a12fc23dc47e952b1001d Mon Sep 17 00:00:00 2001 From: Heitor Ramon Ribeiro Date: Fri, 7 May 2021 23:49:47 -0300 Subject: [PATCH 3/3] chore: release version 1.0.0-beta.5 --- packages/api-client/package.json | 2 +- packages/composables/package.json | 4 ++-- packages/theme/package.json | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/api-client/package.json b/packages/api-client/package.json index 2da54b222..c753a627e 100644 --- a/packages/api-client/package.json +++ b/packages/api-client/package.json @@ -1,6 +1,6 @@ { "name": "@vue-storefront/magento-api", - "version": "1.0.0-beta.4.1", + "version": "1.0.0-beta.5", "sideEffects": false, "license": "MIT", "server": "server/index.js", diff --git a/packages/composables/package.json b/packages/composables/package.json index 383c3bc7e..d3eb6c42a 100644 --- a/packages/composables/package.json +++ b/packages/composables/package.json @@ -1,6 +1,6 @@ { "name": "@vue-storefront/magento", - "version": "1.0.0-beta.4.1", + "version": "1.0.0-beta.5", "license": "MIT", "sideEffects": false, "main": "lib/index.cjs.js", @@ -24,7 +24,7 @@ "access": "public" }, "dependencies": { - "@vue-storefront/magento-api": "^1.0.0-beta.4.1", + "@vue-storefront/magento-api": "^1.0.0-beta.5", "@vue-storefront/core": "^2.3.1", "vue": "^2.6.x" }, diff --git a/packages/theme/package.json b/packages/theme/package.json index f9557374d..427cd6c05 100644 --- a/packages/theme/package.json +++ b/packages/theme/package.json @@ -1,6 +1,6 @@ { "name": "@vue-storefront/magento-theme", - "version": "1.0.0-beta.4.1", + "version": "1.0.0-beta.5", "private": true, "license": "MIT", "scripts": { @@ -24,7 +24,7 @@ "@nuxtjs/style-resources": "^1.0.0", "@storefront-ui/vue": "^0.10.5", "@vue-storefront/core": "^2.3.1", - "@vue-storefront/magento": "^1.0.0-beta.4.1", + "@vue-storefront/magento": "^1.0.0-beta.5", "@vue-storefront/middleware": "^2.3.1", "@vue-storefront/nuxt": "^2.3.1", "@vue-storefront/nuxt-theme": "^2.3.1",