@lustre/sdk 2.0.0-dev.2 → 2.0.0-dev.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +18 -18
- package/dist/api/FetchOptions.js +3 -0
- package/dist/api/FetchOptions.js.map +1 -0
- package/dist/api/QueryResolver.js +49 -57
- package/dist/api/QueryResolver.js.map +1 -1
- package/dist/{schema/queries/searchList.js → api/QueryTypes.js} +1 -1
- package/dist/api/QueryTypes.js.map +1 -0
- package/dist/api/fast1a64utf.js +9 -8
- package/dist/api/fast1a64utf.js.map +1 -1
- package/dist/api/fetchEntity.js.map +1 -1
- package/dist/api/fetchQuery.js.map +1 -1
- package/dist/api/getHash.js +2 -1
- package/dist/api/getHash.js.map +1 -1
- package/dist/index.js +5 -15
- package/dist/index.js.map +1 -1
- package/dist/schema/builtins.js.map +1 -1
- package/dist/{actions.js → schema/entities/alias.js} +1 -1
- package/dist/schema/entities/alias.js.map +1 -0
- package/dist/schema/entities/{product.js → brand.js} +1 -1
- package/dist/schema/entities/brand.js.map +1 -0
- package/dist/schema/entities/category.js +3 -0
- package/dist/schema/entities/category.js.map +1 -0
- package/dist/schema/entities/{variant.js → crawl.js} +1 -1
- package/dist/schema/entities/crawl.js.map +1 -0
- package/dist/schema/entities/index.js +17 -2
- package/dist/schema/entities/index.js.map +1 -1
- package/dist/schema/entities/media.js +3 -0
- package/dist/schema/entities/media.js.map +1 -0
- package/dist/schema/entities/offer.js +3 -0
- package/dist/schema/entities/offer.js.map +1 -0
- package/dist/schema/entities/productConfiguration.js +3 -0
- package/dist/schema/entities/productConfiguration.js.map +1 -0
- package/dist/schema/entities/productFamily.js +3 -0
- package/dist/schema/entities/productFamily.js.map +1 -0
- package/dist/schema/entities/productGeneration.js +3 -0
- package/dist/schema/entities/productGeneration.js.map +1 -0
- package/dist/schema/entities/productType.js +3 -0
- package/dist/schema/entities/productType.js.map +1 -0
- package/dist/schema/entities/rating.js +3 -0
- package/dist/schema/entities/rating.js.map +1 -0
- package/dist/schema/entities/source.js +3 -0
- package/dist/schema/entities/source.js.map +1 -0
- package/dist/schema/entities/spec.js +3 -0
- package/dist/schema/entities/spec.js.map +1 -0
- package/dist/schema/entities/specType.js +3 -0
- package/dist/schema/entities/specType.js.map +1 -0
- package/dist/schema/{queries/retailPageInfo.js → entities/specTypeChoice.js} +1 -1
- package/dist/schema/entities/specTypeChoice.js.map +1 -0
- package/dist/schema/entities/storePage.js +3 -0
- package/dist/schema/entities/storePage.js.map +1 -0
- package/dist/schema/entities/storePageQueueGroup.js +3 -0
- package/dist/schema/entities/storePageQueueGroup.js.map +1 -0
- package/dist/schema/entities/user.js +3 -0
- package/dist/schema/entities/user.js.map +1 -0
- package/dist/schema/mutations/createBrand.js +3 -0
- package/dist/schema/mutations/createBrand.js.map +1 -0
- package/dist/schema/mutations/createCategory.js +3 -0
- package/dist/schema/mutations/createCategory.js.map +1 -0
- package/dist/schema/mutations/createProductConfiguration.js +3 -0
- package/dist/schema/mutations/createProductConfiguration.js.map +1 -0
- package/dist/schema/mutations/createProductFamily.js +3 -0
- package/dist/schema/mutations/createProductFamily.js.map +1 -0
- package/dist/schema/mutations/createProductGeneration.js +3 -0
- package/dist/schema/mutations/createProductGeneration.js.map +1 -0
- package/dist/schema/mutations/createProductType.js +3 -0
- package/dist/schema/mutations/createProductType.js.map +1 -0
- package/dist/schema/mutations/createUser.js +3 -0
- package/dist/schema/mutations/createUser.js.map +1 -0
- package/dist/schema/mutations/storePageQueueClaimById.js +3 -0
- package/dist/schema/mutations/storePageQueueClaimById.js.map +1 -0
- package/dist/schema/mutations/storePageQueueClaimNext.js +3 -0
- package/dist/schema/mutations/storePageQueueClaimNext.js.map +1 -0
- package/dist/schema/mutations/storePageQueueHandle.js +3 -0
- package/dist/schema/mutations/storePageQueueHandle.js.map +1 -0
- package/dist/schema/{queries/productDocumentsByRetailPageUrls.js → mutations/storePageQueueHandleStorePageIdSet.js} +1 -1
- package/dist/schema/mutations/storePageQueueHandleStorePageIdSet.js.map +1 -0
- package/dist/schema/mutations/updateAlias.js +3 -0
- package/dist/schema/mutations/updateAlias.js.map +1 -0
- package/dist/schema/mutations/updateBrand.js +3 -0
- package/dist/schema/mutations/updateBrand.js.map +1 -0
- package/dist/schema/mutations/updateCategory.js +3 -0
- package/dist/schema/mutations/updateCategory.js.map +1 -0
- package/dist/schema/mutations/updateOffer.js +3 -0
- package/dist/schema/mutations/updateOffer.js.map +1 -0
- package/dist/schema/mutations/updateProductConfiguration.js +3 -0
- package/dist/schema/mutations/updateProductConfiguration.js.map +1 -0
- package/dist/schema/mutations/updateProductConfigurationProductType.js +3 -0
- package/dist/schema/mutations/updateProductConfigurationProductType.js.map +1 -0
- package/dist/schema/mutations/updateProductFamily.js +3 -0
- package/dist/schema/mutations/updateProductFamily.js.map +1 -0
- package/dist/schema/mutations/updateProductFamilyBrand.js +3 -0
- package/dist/schema/mutations/updateProductFamilyBrand.js.map +1 -0
- package/dist/schema/mutations/updateProductGeneration.js +3 -0
- package/dist/schema/mutations/updateProductGeneration.js.map +1 -0
- package/dist/schema/mutations/updateProductGenerationProductFamily.js +3 -0
- package/dist/schema/mutations/updateProductGenerationProductFamily.js.map +1 -0
- package/dist/schema/mutations/updateProductType.js +3 -0
- package/dist/schema/mutations/updateProductType.js.map +1 -0
- package/dist/schema/mutations/updateProductTypeProductGeneration.js +3 -0
- package/dist/schema/mutations/updateProductTypeProductGeneration.js.map +1 -0
- package/dist/schema/mutations/updateSource.js +3 -0
- package/dist/schema/mutations/updateSource.js.map +1 -0
- package/dist/schema/mutations/updateStorePage.js +3 -0
- package/dist/schema/mutations/updateStorePage.js.map +1 -0
- package/dist/schema/queries/aliasIdListBySomeId.js +3 -0
- package/dist/schema/queries/aliasIdListBySomeId.js.map +1 -0
- package/dist/schema/queries/appliedCategoryIdListBySomeId.js +3 -0
- package/dist/schema/queries/appliedCategoryIdListBySomeId.js.map +1 -0
- package/dist/schema/queries/baseScore.js +3 -0
- package/dist/schema/queries/baseScore.js.map +1 -0
- package/dist/schema/queries/baseScoreRatingIdList.js +3 -0
- package/dist/schema/queries/baseScoreRatingIdList.js.map +1 -0
- package/dist/schema/queries/baseScoresByCategoryId.js +3 -0
- package/dist/schema/queries/baseScoresByCategoryId.js.map +1 -0
- package/dist/schema/queries/bestInClass.js +3 -0
- package/dist/schema/queries/bestInClass.js.map +1 -0
- package/dist/schema/queries/brandAliasResolution.js +3 -0
- package/dist/schema/queries/brandAliasResolution.js.map +1 -0
- package/dist/schema/queries/brandCategoryRankings.js +3 -0
- package/dist/schema/queries/brandCategoryRankings.js.map +1 -0
- package/dist/schema/queries/brandIdBySomeId.js +3 -0
- package/dist/schema/queries/brandIdBySomeId.js.map +1 -0
- package/dist/schema/queries/brandIdList.js +3 -0
- package/dist/schema/queries/brandIdList.js.map +1 -0
- package/dist/schema/queries/brandIdListBySearch.js +3 -0
- package/dist/schema/queries/brandIdListBySearch.js.map +1 -0
- package/dist/schema/queries/brandSocialMediaPostList.js +3 -0
- package/dist/schema/queries/brandSocialMediaPostList.js.map +1 -0
- package/dist/schema/queries/categoryAliasResolution.js +3 -0
- package/dist/schema/queries/categoryAliasResolution.js.map +1 -0
- package/dist/schema/queries/categoryDisplayMode.js +3 -0
- package/dist/schema/queries/categoryDisplayMode.js.map +1 -0
- package/dist/schema/queries/categoryIdByUrlSlug.js +3 -0
- package/dist/schema/queries/categoryIdByUrlSlug.js.map +1 -0
- package/dist/schema/queries/categoryIdList.js +3 -0
- package/dist/schema/queries/categoryIdList.js.map +1 -0
- package/dist/schema/queries/categoryIdListBySomeId.js +3 -0
- package/dist/schema/queries/categoryIdListBySomeId.js.map +1 -0
- package/dist/schema/queries/categoryIdListBySourceId.js +3 -0
- package/dist/schema/queries/categoryIdListBySourceId.js.map +1 -0
- package/dist/schema/queries/categoryModifierSearchList.js +3 -0
- package/dist/schema/queries/categoryModifierSearchList.js.map +1 -0
- package/dist/schema/queries/categoryRankings.js +3 -0
- package/dist/schema/queries/categoryRankings.js.map +1 -0
- package/dist/schema/queries/categorySearchList.js +3 -0
- package/dist/schema/queries/categorySearchList.js.map +1 -0
- package/dist/schema/queries/categoryStatusList.js +3 -0
- package/dist/schema/queries/categoryStatusList.js.map +1 -0
- package/dist/schema/queries/crawlIdList.js +3 -0
- package/dist/schema/queries/crawlIdList.js.map +1 -0
- package/dist/schema/queries/crawlIdListByUrl.js +3 -0
- package/dist/schema/queries/crawlIdListByUrl.js.map +1 -0
- package/dist/schema/queries/descriptionMarkdown.js +3 -0
- package/dist/schema/queries/descriptionMarkdown.js.map +1 -0
- package/dist/schema/queries/entityType.js +3 -0
- package/dist/schema/queries/entityType.js.map +1 -0
- package/dist/schema/queries/fallbackPriceByProductTypeId.js +3 -0
- package/dist/schema/queries/fallbackPriceByProductTypeId.js.map +1 -0
- package/dist/schema/queries/inputLayerVersion.js +3 -0
- package/dist/schema/queries/inputLayerVersion.js.map +1 -0
- package/dist/schema/queries/latestRatingIdList.js +3 -0
- package/dist/schema/queries/latestRatingIdList.js.map +1 -0
- package/dist/schema/queries/latestRatingIdListBySomeId.js +3 -0
- package/dist/schema/queries/latestRatingIdListBySomeId.js.map +1 -0
- package/dist/schema/queries/mediaIdListBySomeId.js +3 -0
- package/dist/schema/queries/mediaIdListBySomeId.js.map +1 -0
- package/dist/schema/queries/mlCategoryDisplayMode.js +3 -0
- package/dist/schema/queries/mlCategoryDisplayMode.js.map +1 -0
- package/dist/schema/queries/noteMarkdown.js +3 -0
- package/dist/schema/queries/noteMarkdown.js.map +1 -0
- package/dist/schema/queries/offerIdListByStorePageId.js +3 -0
- package/dist/schema/queries/offerIdListByStorePageId.js.map +1 -0
- package/dist/schema/queries/possibleAliasIdListBySomeId.js +3 -0
- package/dist/schema/queries/possibleAliasIdListBySomeId.js.map +1 -0
- package/dist/schema/queries/possibleStorePageIdListBySomeId.js +3 -0
- package/dist/schema/queries/possibleStorePageIdListBySomeId.js.map +1 -0
- package/dist/schema/queries/preferredCategoryIdListByProductId.js +3 -0
- package/dist/schema/queries/preferredCategoryIdListByProductId.js.map +1 -0
- package/dist/schema/queries/preferredLatestRatingIdListBySomeId.js +3 -0
- package/dist/schema/queries/preferredLatestRatingIdListBySomeId.js.map +1 -0
- package/dist/schema/queries/preferredStorePageList.js +3 -0
- package/dist/schema/queries/preferredStorePageList.js.map +1 -0
- package/dist/schema/queries/priceHistoryLookup.js +3 -0
- package/dist/schema/queries/priceHistoryLookup.js.map +1 -0
- package/dist/schema/queries/pricePointCompetitors.js +3 -0
- package/dist/schema/queries/pricePointCompetitors.js.map +1 -0
- package/dist/schema/queries/priceRangeByCategoryId.js +3 -0
- package/dist/schema/queries/priceRangeByCategoryId.js.map +1 -0
- package/dist/schema/queries/productConfigurationIdListBySomeId.js +3 -0
- package/dist/schema/queries/productConfigurationIdListBySomeId.js.map +1 -0
- package/dist/schema/queries/productDealList.js +3 -0
- package/dist/schema/queries/productDealList.js.map +1 -0
- package/dist/schema/queries/productDocumentByStoreUrl.js +3 -0
- package/dist/schema/queries/productDocumentByStoreUrl.js.map +1 -0
- package/dist/schema/queries/productFamilyIdBySomeId.js +3 -0
- package/dist/schema/queries/productFamilyIdBySomeId.js.map +1 -0
- package/dist/schema/queries/productFamilyIdListBySomeId.js +3 -0
- package/dist/schema/queries/productFamilyIdListBySomeId.js.map +1 -0
- package/dist/schema/queries/productGenerationIdBySomeId.js +3 -0
- package/dist/schema/queries/productGenerationIdBySomeId.js.map +1 -0
- package/dist/schema/queries/productGenerationIdListBySomeId.js +3 -0
- package/dist/schema/queries/productGenerationIdListBySomeId.js.map +1 -0
- package/dist/schema/queries/productListSort.js +3 -0
- package/dist/schema/queries/productListSort.js.map +1 -0
- package/dist/schema/queries/productPricePointList.js +3 -0
- package/dist/schema/queries/productPricePointList.js.map +1 -0
- package/dist/schema/queries/productSearchList.js +3 -0
- package/dist/schema/queries/productSearchList.js.map +1 -0
- package/dist/schema/queries/productTypeIdBySomeId.js +3 -0
- package/dist/schema/queries/productTypeIdBySomeId.js.map +1 -0
- package/dist/schema/queries/productTypeIdByStoreUrl.js +3 -0
- package/dist/schema/queries/productTypeIdByStoreUrl.js.map +1 -0
- package/dist/schema/queries/productTypeIdListByCategoryId.js +3 -0
- package/dist/schema/queries/productTypeIdListByCategoryId.js.map +1 -0
- package/dist/schema/queries/productTypeIdListByModifiers.js +3 -0
- package/dist/schema/queries/productTypeIdListByModifiers.js.map +1 -0
- package/dist/schema/queries/productTypeIdListBySomeId.js +3 -0
- package/dist/schema/queries/productTypeIdListBySomeId.js.map +1 -0
- package/dist/schema/queries/saleMetrics.js +3 -0
- package/dist/schema/queries/saleMetrics.js.map +1 -0
- package/dist/schema/queries/sectionDataByCrawlId.js +3 -0
- package/dist/schema/queries/sectionDataByCrawlId.js.map +1 -0
- package/dist/schema/queries/sourceIdList.js +3 -0
- package/dist/schema/queries/sourceIdList.js.map +1 -0
- package/dist/schema/queries/specIdListBySomeId.js +3 -0
- package/dist/schema/queries/specIdListBySomeId.js.map +1 -0
- package/dist/schema/queries/specTypeIdList.js +3 -0
- package/dist/schema/queries/specTypeIdList.js.map +1 -0
- package/dist/schema/queries/specTypeValidValues.js +3 -0
- package/dist/schema/queries/specTypeValidValues.js.map +1 -0
- package/dist/schema/queries/specValueRangeListByCategoryId.js +3 -0
- package/dist/schema/queries/specValueRangeListByCategoryId.js.map +1 -0
- package/dist/schema/queries/stablePriceByProductId.js +3 -0
- package/dist/schema/queries/stablePriceByProductId.js.map +1 -0
- package/dist/schema/queries/stablePriceByProductIdAndStoreName.js +3 -0
- package/dist/schema/queries/stablePriceByProductIdAndStoreName.js.map +1 -0
- package/dist/schema/queries/stablePriceByStorePageId.js +3 -0
- package/dist/schema/queries/stablePriceByStorePageId.js.map +1 -0
- package/dist/schema/queries/storePageFetchData.js +3 -0
- package/dist/schema/queries/storePageFetchData.js.map +1 -0
- package/dist/schema/queries/storePageIdByUrl.js +3 -0
- package/dist/schema/queries/storePageIdByUrl.js.map +1 -0
- package/dist/schema/queries/storePageIdListBySomeId.js +3 -0
- package/dist/schema/queries/storePageIdListBySomeId.js.map +1 -0
- package/dist/schema/queries/storePageInfo.js +3 -0
- package/dist/schema/queries/storePageInfo.js.map +1 -0
- package/dist/schema/queries/storePageInfoBySku.js +3 -0
- package/dist/schema/queries/storePageInfoBySku.js.map +1 -0
- package/dist/schema/queries/storePageScrapeData.js +3 -0
- package/dist/schema/queries/storePageScrapeData.js.map +1 -0
- package/dist/schema/queries/subCategoryIdListByCategoryId.js +3 -0
- package/dist/schema/queries/subCategoryIdListByCategoryId.js.map +1 -0
- package/dist/schema/queries/subsetModifierDataByModifiers.js +3 -0
- package/dist/schema/queries/subsetModifierDataByModifiers.js.map +1 -0
- package/dist/schema/queries/unstableMediaIdListByCategoryId.js +3 -0
- package/dist/schema/queries/unstableMediaIdListByCategoryId.js.map +1 -0
- package/dist/schema/queries/unstableSourceTrust.js +3 -0
- package/dist/schema/queries/unstableSourceTrust.js.map +1 -0
- package/dist/schema/queries/userIdList.js +3 -0
- package/dist/schema/queries/userIdList.js.map +1 -0
- package/dist/schema/queries/userPermissionsByUserId.js +3 -0
- package/dist/schema/queries/userPermissionsByUserId.js.map +1 -0
- package/dist/schema/queries/userRestictedData.js +3 -0
- package/dist/schema/queries/userRestictedData.js.map +1 -0
- package/dist/schema/queries/userReviewAnalysis.js +3 -0
- package/dist/schema/queries/userReviewAnalysis.js.map +1 -0
- package/dist/schema/queries/whoAmI.js +3 -0
- package/dist/schema/queries/whoAmI.js.map +1 -0
- package/package.json +1 -20
- package/types/api/FetchOptions.d.ts +6 -0
- package/types/api/FetchOptions.d.ts.map +1 -0
- package/types/api/QueryResolver.d.ts +1 -4
- package/types/api/QueryResolver.d.ts.map +1 -1
- package/types/api/QueryTypes.d.ts +16 -0
- package/types/api/QueryTypes.d.ts.map +1 -0
- package/types/api/fetchEntity.d.ts +3 -3
- package/types/api/fetchEntity.d.ts.map +1 -1
- package/types/api/fetchQuery.d.ts +3 -6
- package/types/api/fetchQuery.d.ts.map +1 -1
- package/types/api/getHash.d.ts.map +1 -1
- package/types/index.d.ts +3 -5
- package/types/index.d.ts.map +1 -1
- package/types/schema/builtins.d.ts +69 -90
- package/types/schema/builtins.d.ts.map +1 -1
- package/types/schema/entities/alias.d.ts +6 -0
- package/types/schema/entities/alias.d.ts.map +1 -0
- package/types/schema/entities/brand.d.ts +5 -0
- package/types/schema/entities/brand.d.ts.map +1 -0
- package/types/schema/entities/category.d.ts +7 -0
- package/types/schema/entities/category.d.ts.map +1 -0
- package/types/schema/entities/crawl.d.ts +12 -0
- package/types/schema/entities/crawl.d.ts.map +1 -0
- package/types/schema/entities/index.d.ts +17 -2
- package/types/schema/entities/index.d.ts.map +1 -1
- package/types/schema/entities/media.d.ts +6 -0
- package/types/schema/entities/media.d.ts.map +1 -0
- package/types/schema/entities/offer.d.ts +11 -0
- package/types/schema/entities/offer.d.ts.map +1 -0
- package/types/schema/entities/productConfiguration.d.ts +5 -0
- package/types/schema/entities/productConfiguration.d.ts.map +1 -0
- package/types/schema/entities/productFamily.d.ts +5 -0
- package/types/schema/entities/productFamily.d.ts.map +1 -0
- package/types/schema/entities/productGeneration.d.ts +5 -0
- package/types/schema/entities/productGeneration.d.ts.map +1 -0
- package/types/schema/entities/productType.d.ts +5 -0
- package/types/schema/entities/productType.d.ts.map +1 -0
- package/types/schema/entities/rating.d.ts +53 -0
- package/types/schema/entities/rating.d.ts.map +1 -0
- package/types/schema/entities/source.d.ts +8 -0
- package/types/schema/entities/source.d.ts.map +1 -0
- package/types/schema/entities/spec.d.ts +22 -0
- package/types/schema/entities/spec.d.ts.map +1 -0
- package/types/schema/entities/specType.d.ts +6 -0
- package/types/schema/entities/specType.d.ts.map +1 -0
- package/types/schema/entities/specTypeChoice.d.ts +7 -0
- package/types/schema/entities/specTypeChoice.d.ts.map +1 -0
- package/types/schema/entities/storePage.d.ts +8 -0
- package/types/schema/entities/storePage.d.ts.map +1 -0
- package/types/schema/entities/storePageQueueGroup.d.ts +6 -0
- package/types/schema/entities/storePageQueueGroup.d.ts.map +1 -0
- package/types/schema/entities/user.d.ts +5 -0
- package/types/schema/entities/user.d.ts.map +1 -0
- package/types/schema/index.d.ts +206 -16
- package/types/schema/index.d.ts.map +1 -1
- package/types/schema/mutations/createBrand.d.ts +9 -0
- package/types/schema/mutations/createBrand.d.ts.map +1 -0
- package/types/schema/mutations/createCategory.d.ts +9 -0
- package/types/schema/mutations/createCategory.d.ts.map +1 -0
- package/types/schema/mutations/createProductConfiguration.d.ts +10 -0
- package/types/schema/mutations/createProductConfiguration.d.ts.map +1 -0
- package/types/schema/mutations/createProductFamily.d.ts +10 -0
- package/types/schema/mutations/createProductFamily.d.ts.map +1 -0
- package/types/schema/mutations/createProductGeneration.d.ts +10 -0
- package/types/schema/mutations/createProductGeneration.d.ts.map +1 -0
- package/types/schema/mutations/createProductType.d.ts +10 -0
- package/types/schema/mutations/createProductType.d.ts.map +1 -0
- package/types/schema/mutations/createUser.d.ts +10 -0
- package/types/schema/mutations/createUser.d.ts.map +1 -0
- package/types/schema/mutations/storePageQueueClaimById.d.ts +17 -0
- package/types/schema/mutations/storePageQueueClaimById.d.ts.map +1 -0
- package/types/schema/mutations/storePageQueueClaimNext.d.ts +15 -0
- package/types/schema/mutations/storePageQueueClaimNext.d.ts.map +1 -0
- package/types/schema/mutations/storePageQueueHandle.d.ts +15 -0
- package/types/schema/mutations/storePageQueueHandle.d.ts.map +1 -0
- package/types/schema/mutations/storePageQueueHandleStorePageIdSet.d.ts +15 -0
- package/types/schema/mutations/storePageQueueHandleStorePageIdSet.d.ts.map +1 -0
- package/types/schema/mutations/updateAlias.d.ts +8 -0
- package/types/schema/mutations/updateAlias.d.ts.map +1 -0
- package/types/schema/mutations/updateBrand.d.ts +8 -0
- package/types/schema/mutations/updateBrand.d.ts.map +1 -0
- package/types/schema/mutations/updateCategory.d.ts +10 -0
- package/types/schema/mutations/updateCategory.d.ts.map +1 -0
- package/types/schema/mutations/updateOffer.d.ts +8 -0
- package/types/schema/mutations/updateOffer.d.ts.map +1 -0
- package/types/schema/mutations/updateProductConfiguration.d.ts +8 -0
- package/types/schema/mutations/updateProductConfiguration.d.ts.map +1 -0
- package/types/schema/mutations/updateProductConfigurationProductType.d.ts +8 -0
- package/types/schema/mutations/updateProductConfigurationProductType.d.ts.map +1 -0
- package/types/schema/mutations/updateProductFamily.d.ts +8 -0
- package/types/schema/mutations/updateProductFamily.d.ts.map +1 -0
- package/types/schema/mutations/updateProductFamilyBrand.d.ts +8 -0
- package/types/schema/mutations/updateProductFamilyBrand.d.ts.map +1 -0
- package/types/schema/mutations/updateProductGeneration.d.ts +8 -0
- package/types/schema/mutations/updateProductGeneration.d.ts.map +1 -0
- package/types/schema/mutations/updateProductGenerationProductFamily.d.ts +8 -0
- package/types/schema/mutations/updateProductGenerationProductFamily.d.ts.map +1 -0
- package/types/schema/mutations/updateProductType.d.ts +8 -0
- package/types/schema/mutations/updateProductType.d.ts.map +1 -0
- package/types/schema/mutations/updateProductTypeProductGeneration.d.ts +8 -0
- package/types/schema/mutations/updateProductTypeProductGeneration.d.ts.map +1 -0
- package/types/schema/mutations/updateSource.d.ts +10 -0
- package/types/schema/mutations/updateSource.d.ts.map +1 -0
- package/types/schema/mutations/updateStorePage.d.ts +8 -0
- package/types/schema/mutations/updateStorePage.d.ts.map +1 -0
- package/types/schema/queries/affiliateUrl.d.ts +2 -1
- package/types/schema/queries/affiliateUrl.d.ts.map +1 -1
- package/types/schema/queries/aliasIdListBySomeId.d.ts +7 -0
- package/types/schema/queries/aliasIdListBySomeId.d.ts.map +1 -0
- package/types/schema/queries/appliedCategoryIdListBySomeId.d.ts +7 -0
- package/types/schema/queries/appliedCategoryIdListBySomeId.d.ts.map +1 -0
- package/types/schema/queries/baseScore.d.ts +9 -0
- package/types/schema/queries/baseScore.d.ts.map +1 -0
- package/types/schema/queries/baseScoreRatingIdList.d.ts +8 -0
- package/types/schema/queries/baseScoreRatingIdList.d.ts.map +1 -0
- package/types/schema/queries/baseScoresByCategoryId.d.ts +12 -0
- package/types/schema/queries/baseScoresByCategoryId.d.ts.map +1 -0
- package/types/schema/queries/bestInClass.d.ts +20 -0
- package/types/schema/queries/bestInClass.d.ts.map +1 -0
- package/types/schema/queries/brandAliasResolution.d.ts +11 -0
- package/types/schema/queries/brandAliasResolution.d.ts.map +1 -0
- package/types/schema/queries/brandCategoryRankings.d.ts +30 -0
- package/types/schema/queries/brandCategoryRankings.d.ts.map +1 -0
- package/types/schema/queries/brandIdBySomeId.d.ts +6 -0
- package/types/schema/queries/brandIdBySomeId.d.ts.map +1 -0
- package/types/schema/queries/brandIdList.d.ts +9 -0
- package/types/schema/queries/brandIdList.d.ts.map +1 -0
- package/types/schema/queries/brandIdListBySearch.d.ts +7 -0
- package/types/schema/queries/brandIdListBySearch.d.ts.map +1 -0
- package/types/schema/queries/brandSocialMediaPostList.d.ts +22 -0
- package/types/schema/queries/brandSocialMediaPostList.d.ts.map +1 -0
- package/types/schema/queries/categoryAliasResolution.d.ts +12 -0
- package/types/schema/queries/categoryAliasResolution.d.ts.map +1 -0
- package/types/schema/queries/categoryDisplayMode.d.ts +11 -0
- package/types/schema/queries/categoryDisplayMode.d.ts.map +1 -0
- package/types/schema/queries/categoryIdByUrlSlug.d.ts +6 -0
- package/types/schema/queries/categoryIdByUrlSlug.d.ts.map +1 -0
- package/types/schema/queries/categoryIdList.d.ts +9 -0
- package/types/schema/queries/categoryIdList.d.ts.map +1 -0
- package/types/schema/queries/categoryIdListBySomeId.d.ts +11 -0
- package/types/schema/queries/categoryIdListBySomeId.d.ts.map +1 -0
- package/types/schema/queries/categoryIdListBySourceId.d.ts +7 -0
- package/types/schema/queries/categoryIdListBySourceId.d.ts.map +1 -0
- package/types/schema/queries/categoryModifierSearchList.d.ts +22 -0
- package/types/schema/queries/categoryModifierSearchList.d.ts.map +1 -0
- package/types/schema/queries/categoryRankings.d.ts +14 -0
- package/types/schema/queries/categoryRankings.d.ts.map +1 -0
- package/types/schema/queries/categorySearchList.d.ts +17 -0
- package/types/schema/queries/categorySearchList.d.ts.map +1 -0
- package/types/schema/queries/categoryStatusList.d.ts +10 -0
- package/types/schema/queries/categoryStatusList.d.ts.map +1 -0
- package/types/schema/queries/crawlIdList.d.ts +12 -0
- package/types/schema/queries/crawlIdList.d.ts.map +1 -0
- package/types/schema/queries/crawlIdListByUrl.d.ts +7 -0
- package/types/schema/queries/crawlIdListByUrl.d.ts.map +1 -0
- package/types/schema/queries/descriptionMarkdown.d.ts +6 -0
- package/types/schema/queries/descriptionMarkdown.d.ts.map +1 -0
- package/types/schema/queries/entityType.d.ts +55 -0
- package/types/schema/queries/entityType.d.ts.map +1 -0
- package/types/schema/queries/fallbackPriceByProductTypeId.d.ts +7 -0
- package/types/schema/queries/fallbackPriceByProductTypeId.d.ts.map +1 -0
- package/types/schema/queries/inputLayerVersion.d.ts +6 -0
- package/types/schema/queries/inputLayerVersion.d.ts.map +1 -0
- package/types/schema/queries/latestRatingIdList.d.ts +7 -0
- package/types/schema/queries/latestRatingIdList.d.ts.map +1 -0
- package/types/schema/queries/latestRatingIdListBySomeId.d.ts +7 -0
- package/types/schema/queries/latestRatingIdListBySomeId.d.ts.map +1 -0
- package/types/schema/queries/mediaIdListBySomeId.d.ts +7 -0
- package/types/schema/queries/mediaIdListBySomeId.d.ts.map +1 -0
- package/types/schema/queries/mlCategoryDisplayMode.d.ts +9 -0
- package/types/schema/queries/mlCategoryDisplayMode.d.ts.map +1 -0
- package/types/schema/queries/noteMarkdown.d.ts +6 -0
- package/types/schema/queries/noteMarkdown.d.ts.map +1 -0
- package/types/schema/queries/offerIdListByStorePageId.d.ts +13 -0
- package/types/schema/queries/offerIdListByStorePageId.d.ts.map +1 -0
- package/types/schema/queries/possibleAliasIdListBySomeId.d.ts +7 -0
- package/types/schema/queries/possibleAliasIdListBySomeId.d.ts.map +1 -0
- package/types/schema/queries/possibleStorePageIdListBySomeId.d.ts +7 -0
- package/types/schema/queries/possibleStorePageIdListBySomeId.d.ts.map +1 -0
- package/types/schema/queries/preferredCategoryIdListByProductId.d.ts +7 -0
- package/types/schema/queries/preferredCategoryIdListByProductId.d.ts.map +1 -0
- package/types/schema/queries/preferredLatestRatingIdListBySomeId.d.ts +7 -0
- package/types/schema/queries/preferredLatestRatingIdListBySomeId.d.ts.map +1 -0
- package/types/schema/queries/preferredStorePageList.d.ts +12 -0
- package/types/schema/queries/preferredStorePageList.d.ts.map +1 -0
- package/types/schema/queries/priceHistoryLookup.d.ts +17 -0
- package/types/schema/queries/priceHistoryLookup.d.ts.map +1 -0
- package/types/schema/queries/pricePointCompetitors.d.ts +17 -0
- package/types/schema/queries/pricePointCompetitors.d.ts.map +1 -0
- package/types/schema/queries/priceRangeByCategoryId.d.ts +11 -0
- package/types/schema/queries/priceRangeByCategoryId.d.ts.map +1 -0
- package/types/schema/queries/productConfigurationIdListBySomeId.d.ts +7 -0
- package/types/schema/queries/productConfigurationIdListBySomeId.d.ts.map +1 -0
- package/types/schema/queries/productDealList.d.ts +14 -0
- package/types/schema/queries/productDealList.d.ts.map +1 -0
- package/types/schema/queries/productDocumentByStoreUrl.d.ts +8 -0
- package/types/schema/queries/productDocumentByStoreUrl.d.ts.map +1 -0
- package/types/schema/queries/productDocumentsByProductIds.d.ts +2 -2
- package/types/schema/queries/productDocumentsByProductIds.d.ts.map +1 -1
- package/types/schema/queries/productFamilyIdBySomeId.d.ts +6 -0
- package/types/schema/queries/productFamilyIdBySomeId.d.ts.map +1 -0
- package/types/schema/queries/productFamilyIdListBySomeId.d.ts +7 -0
- package/types/schema/queries/productFamilyIdListBySomeId.d.ts.map +1 -0
- package/types/schema/queries/productGenerationIdBySomeId.d.ts +6 -0
- package/types/schema/queries/productGenerationIdBySomeId.d.ts.map +1 -0
- package/types/schema/queries/productGenerationIdListBySomeId.d.ts +7 -0
- package/types/schema/queries/productGenerationIdListBySomeId.d.ts.map +1 -0
- package/types/schema/queries/productListSort.d.ts +10 -0
- package/types/schema/queries/productListSort.d.ts.map +1 -0
- package/types/schema/queries/productPricePointList.d.ts +14 -0
- package/types/schema/queries/productPricePointList.d.ts.map +1 -0
- package/types/schema/queries/productSearchList.d.ts +40 -0
- package/types/schema/queries/productSearchList.d.ts.map +1 -0
- package/types/schema/queries/productTypeIdBySomeId.d.ts +6 -0
- package/types/schema/queries/productTypeIdBySomeId.d.ts.map +1 -0
- package/types/schema/queries/productTypeIdByStoreUrl.d.ts +7 -0
- package/types/schema/queries/productTypeIdByStoreUrl.d.ts.map +1 -0
- package/types/schema/queries/productTypeIdListByCategoryId.d.ts +11 -0
- package/types/schema/queries/productTypeIdListByCategoryId.d.ts.map +1 -0
- package/types/schema/queries/productTypeIdListByModifiers.d.ts +8 -0
- package/types/schema/queries/productTypeIdListByModifiers.d.ts.map +1 -0
- package/types/schema/queries/productTypeIdListBySomeId.d.ts +7 -0
- package/types/schema/queries/productTypeIdListBySomeId.d.ts.map +1 -0
- package/types/schema/queries/saleMetrics.d.ts +9 -0
- package/types/schema/queries/saleMetrics.d.ts.map +1 -0
- package/types/schema/queries/sectionDataByCrawlId.d.ts +20 -0
- package/types/schema/queries/sectionDataByCrawlId.d.ts.map +1 -0
- package/types/schema/queries/sourceIdList.d.ts +5 -0
- package/types/schema/queries/sourceIdList.d.ts.map +1 -0
- package/types/schema/queries/specIdListBySomeId.d.ts +7 -0
- package/types/schema/queries/specIdListBySomeId.d.ts.map +1 -0
- package/types/schema/queries/specTypeIdList.d.ts +13 -0
- package/types/schema/queries/specTypeIdList.d.ts.map +1 -0
- package/types/schema/queries/specTypeValidValues.d.ts +16 -0
- package/types/schema/queries/specTypeValidValues.d.ts.map +1 -0
- package/types/schema/queries/specValueRangeListByCategoryId.d.ts +37 -0
- package/types/schema/queries/specValueRangeListByCategoryId.d.ts.map +1 -0
- package/types/schema/queries/stablePriceByProductId.d.ts +7 -0
- package/types/schema/queries/stablePriceByProductId.d.ts.map +1 -0
- package/types/schema/queries/stablePriceByProductIdAndStoreName.d.ts +8 -0
- package/types/schema/queries/stablePriceByProductIdAndStoreName.d.ts.map +1 -0
- package/types/schema/queries/stablePriceByStorePageId.d.ts +7 -0
- package/types/schema/queries/stablePriceByStorePageId.d.ts.map +1 -0
- package/types/schema/queries/storePageFetchData.d.ts +13 -0
- package/types/schema/queries/storePageFetchData.d.ts.map +1 -0
- package/types/schema/queries/storePageIdByUrl.d.ts +7 -0
- package/types/schema/queries/storePageIdByUrl.d.ts.map +1 -0
- package/types/schema/queries/storePageIdListBySomeId.d.ts +7 -0
- package/types/schema/queries/storePageIdListBySomeId.d.ts.map +1 -0
- package/types/schema/queries/storePageInfo.d.ts +12 -0
- package/types/schema/queries/storePageInfo.d.ts.map +1 -0
- package/types/schema/queries/storePageInfoBySku.d.ts +21 -0
- package/types/schema/queries/storePageInfoBySku.d.ts.map +1 -0
- package/types/schema/queries/storePageScrapeData.d.ts +10 -0
- package/types/schema/queries/storePageScrapeData.d.ts.map +1 -0
- package/types/schema/queries/subCategoryIdListByCategoryId.d.ts +7 -0
- package/types/schema/queries/subCategoryIdListByCategoryId.d.ts.map +1 -0
- package/types/schema/queries/subsetModifierDataByModifiers.d.ts +13 -0
- package/types/schema/queries/subsetModifierDataByModifiers.d.ts.map +1 -0
- package/types/schema/queries/unstableMediaIdListByCategoryId.d.ts +7 -0
- package/types/schema/queries/unstableMediaIdListByCategoryId.d.ts.map +1 -0
- package/types/schema/queries/unstableSourceTrust.d.ts +10 -0
- package/types/schema/queries/unstableSourceTrust.d.ts.map +1 -0
- package/types/schema/queries/userIdList.d.ts +5 -0
- package/types/schema/queries/userIdList.d.ts.map +1 -0
- package/types/schema/queries/userPermissionsByUserId.d.ts +8 -0
- package/types/schema/queries/userPermissionsByUserId.d.ts.map +1 -0
- package/types/schema/queries/userRestictedData.d.ts +11 -0
- package/types/schema/queries/userRestictedData.d.ts.map +1 -0
- package/types/schema/queries/userReviewAnalysis.d.ts +38 -0
- package/types/schema/queries/userReviewAnalysis.d.ts.map +1 -0
- package/types/schema/queries/whoAmI.d.ts +6 -0
- package/types/schema/queries/whoAmI.d.ts.map +1 -0
- package/types/schema/queries.d.ts +77 -5
- package/types/schema/queries.d.ts.map +1 -1
- package/types/schema/responses.d.ts +77 -5
- package/types/schema/responses.d.ts.map +1 -1
- package/dist/Context.js +0 -6
- package/dist/Context.js.map +0 -1
- package/dist/Provider.js +0 -14
- package/dist/Provider.js.map +0 -1
- package/dist/actions.js.map +0 -1
- package/dist/hooks/index.js +0 -18
- package/dist/hooks/index.js.map +0 -1
- package/dist/hooks/useApiDispatch.js +0 -10
- package/dist/hooks/useApiDispatch.js.map +0 -1
- package/dist/hooks/useApiSelector.js +0 -10
- package/dist/hooks/useApiSelector.js.map +0 -1
- package/dist/hooks/useApiStore.js +0 -10
- package/dist/hooks/useApiStore.js.map +0 -1
- package/dist/hooks/useEntities.js +0 -41
- package/dist/hooks/useEntities.js.map +0 -1
- package/dist/hooks/useEntity.js +0 -10
- package/dist/hooks/useEntity.js.map +0 -1
- package/dist/hooks/useQueries.js +0 -55
- package/dist/hooks/useQueries.js.map +0 -1
- package/dist/hooks/useQuery.js +0 -10
- package/dist/hooks/useQuery.js.map +0 -1
- package/dist/schema/entities/product.js.map +0 -1
- package/dist/schema/entities/variant.js.map +0 -1
- package/dist/schema/queries/productDocumentsByRetailPageUrls.js.map +0 -1
- package/dist/schema/queries/retailPageInfo.js.map +0 -1
- package/dist/schema/queries/retailPagePriceHistory.js +0 -3
- package/dist/schema/queries/retailPagePriceHistory.js.map +0 -1
- package/dist/schema/queries/retailPagePricing.js +0 -3
- package/dist/schema/queries/retailPagePricing.js.map +0 -1
- package/dist/schema/queries/searchList.js.map +0 -1
- package/dist/store/entities/index.js +0 -12
- package/dist/store/entities/index.js.map +0 -1
- package/dist/store/entities/makeEntityReducer.js +0 -24
- package/dist/store/entities/makeEntityReducer.js.map +0 -1
- package/dist/store/errors/index.js +0 -24
- package/dist/store/errors/index.js.map +0 -1
- package/dist/store/errors/makeErrorReducer.js +0 -24
- package/dist/store/errors/makeErrorReducer.js.map +0 -1
- package/dist/store/index.js +0 -17
- package/dist/store/index.js.map +0 -1
- package/dist/store/responses/index.js +0 -20
- package/dist/store/responses/index.js.map +0 -1
- package/dist/store/responses/makeResponseReducer.js +0 -24
- package/dist/store/responses/makeResponseReducer.js.map +0 -1
- package/types/Context.d.ts +0 -5
- package/types/Context.d.ts.map +0 -1
- package/types/Provider.d.ts +0 -4
- package/types/Provider.d.ts.map +0 -1
- package/types/actions.d.ts +0 -8
- package/types/actions.d.ts.map +0 -1
- package/types/hooks/index.d.ts +0 -8
- package/types/hooks/index.d.ts.map +0 -1
- package/types/hooks/useApiDispatch.d.ts +0 -4
- package/types/hooks/useApiDispatch.d.ts.map +0 -1
- package/types/hooks/useApiSelector.d.ts +0 -5
- package/types/hooks/useApiSelector.d.ts.map +0 -1
- package/types/hooks/useApiStore.d.ts +0 -3
- package/types/hooks/useApiStore.d.ts.map +0 -1
- package/types/hooks/useEntities.d.ts +0 -8
- package/types/hooks/useEntities.d.ts.map +0 -1
- package/types/hooks/useEntity.d.ts +0 -8
- package/types/hooks/useEntity.d.ts.map +0 -1
- package/types/hooks/useQueries.d.ts +0 -8
- package/types/hooks/useQueries.d.ts.map +0 -1
- package/types/hooks/useQuery.d.ts +0 -8
- package/types/hooks/useQuery.d.ts.map +0 -1
- package/types/schema/entities/product.d.ts +0 -5
- package/types/schema/entities/product.d.ts.map +0 -1
- package/types/schema/entities/variant.d.ts +0 -5
- package/types/schema/entities/variant.d.ts.map +0 -1
- package/types/schema/queries/productDocumentsByRetailPageUrls.d.ts +0 -6
- package/types/schema/queries/productDocumentsByRetailPageUrls.d.ts.map +0 -1
- package/types/schema/queries/retailPageInfo.d.ts +0 -18
- package/types/schema/queries/retailPageInfo.d.ts.map +0 -1
- package/types/schema/queries/retailPagePriceHistory.d.ts +0 -15
- package/types/schema/queries/retailPagePriceHistory.d.ts.map +0 -1
- package/types/schema/queries/retailPagePricing.d.ts +0 -10
- package/types/schema/queries/retailPagePricing.d.ts.map +0 -1
- package/types/schema/queries/searchList.d.ts +0 -54
- package/types/schema/queries/searchList.d.ts.map +0 -1
- package/types/store/entities/index.d.ts +0 -10
- package/types/store/entities/index.d.ts.map +0 -1
- package/types/store/entities/makeEntityReducer.d.ts +0 -6
- package/types/store/entities/makeEntityReducer.d.ts.map +0 -1
- package/types/store/errors/index.d.ts +0 -5
- package/types/store/errors/index.d.ts.map +0 -1
- package/types/store/errors/makeErrorReducer.d.ts +0 -6
- package/types/store/errors/makeErrorReducer.d.ts.map +0 -1
- package/types/store/index.d.ts +0 -32
- package/types/store/index.d.ts.map +0 -1
- package/types/store/responses/index.d.ts +0 -18
- package/types/store/responses/index.d.ts.map +0 -1
- package/types/store/responses/makeResponseReducer.d.ts +0 -6
- package/types/store/responses/makeResponseReducer.d.ts.map +0 -1
package/dist/hooks/index.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.useQuery = exports.useQueries = exports.useEntity = exports.useEntities = exports.useApiStore = exports.useApiSelector = exports.useApiDispatch = void 0;
|
|
4
|
-
var useApiDispatch_1 = require("./useApiDispatch");
|
|
5
|
-
Object.defineProperty(exports, "useApiDispatch", { enumerable: true, get: function () { return useApiDispatch_1.useApiDispatch; } });
|
|
6
|
-
var useApiSelector_1 = require("./useApiSelector");
|
|
7
|
-
Object.defineProperty(exports, "useApiSelector", { enumerable: true, get: function () { return useApiSelector_1.useApiSelector; } });
|
|
8
|
-
var useApiStore_1 = require("./useApiStore");
|
|
9
|
-
Object.defineProperty(exports, "useApiStore", { enumerable: true, get: function () { return useApiStore_1.useApiStore; } });
|
|
10
|
-
var useEntities_1 = require("./useEntities");
|
|
11
|
-
Object.defineProperty(exports, "useEntities", { enumerable: true, get: function () { return useEntities_1.useEntities; } });
|
|
12
|
-
var useEntity_1 = require("./useEntity");
|
|
13
|
-
Object.defineProperty(exports, "useEntity", { enumerable: true, get: function () { return useEntity_1.useEntity; } });
|
|
14
|
-
var useQueries_1 = require("./useQueries");
|
|
15
|
-
Object.defineProperty(exports, "useQueries", { enumerable: true, get: function () { return useQueries_1.useQueries; } });
|
|
16
|
-
var useQuery_1 = require("./useQuery");
|
|
17
|
-
Object.defineProperty(exports, "useQuery", { enumerable: true, get: function () { return useQuery_1.useQuery; } });
|
|
18
|
-
//# sourceMappingURL=index.js.map
|
package/dist/hooks/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":";;;AAAA,mDAAiD;AAAxC,gHAAA,cAAc,OAAA;AACvB,mDAAiD;AAAxC,gHAAA,cAAc,OAAA;AACvB,6CAA2C;AAAlC,0GAAA,WAAW,OAAA;AAGpB,6CAA2C;AAAlC,0GAAA,WAAW,OAAA;AACpB,yCAAuC;AAA9B,sGAAA,SAAS,OAAA;AAClB,2CAAyC;AAAhC,wGAAA,UAAU,OAAA;AACnB,uCAAqC;AAA5B,oGAAA,QAAQ,OAAA"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.useApiDispatch = void 0;
|
|
7
|
-
const react_redux_1 = require("react-redux");
|
|
8
|
-
const Context_1 = __importDefault(require("../Context"));
|
|
9
|
-
exports.useApiDispatch = react_redux_1.createDispatchHook(Context_1.default);
|
|
10
|
-
//# sourceMappingURL=useApiDispatch.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useApiDispatch.js","sourceRoot":"","sources":["../../src/hooks/useApiDispatch.ts"],"names":[],"mappings":";;;;;;AAAA,6CAAgD;AAGhD,yDAAkC;AAErB,QAAA,cAAc,GAAG,gCAAkB,CAAC,iBAAU,CAAyC,CAAA"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.useApiSelector = void 0;
|
|
7
|
-
const react_redux_1 = require("react-redux");
|
|
8
|
-
const Context_1 = __importDefault(require("../Context"));
|
|
9
|
-
exports.useApiSelector = react_redux_1.createSelectorHook(Context_1.default);
|
|
10
|
-
//# sourceMappingURL=useApiSelector.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useApiSelector.js","sourceRoot":"","sources":["../../src/hooks/useApiSelector.ts"],"names":[],"mappings":";;;;;;AAAA,6CAAgD;AAEhD,yDAAkC;AAKrB,QAAA,cAAc,GAAG,gCAAkB,CAAC,iBAAU,CAGrD,CAAA"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.useApiStore = void 0;
|
|
7
|
-
const react_redux_1 = require("react-redux");
|
|
8
|
-
const Context_1 = __importDefault(require("../Context"));
|
|
9
|
-
exports.useApiStore = react_redux_1.createStoreHook(Context_1.default);
|
|
10
|
-
//# sourceMappingURL=useApiStore.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useApiStore.js","sourceRoot":"","sources":["../../src/hooks/useApiStore.ts"],"names":[],"mappings":";;;;;;AAAA,6CAA6C;AAG7C,yDAAkC;AAErB,QAAA,WAAW,GAAgB,6BAAe,CAAC,iBAAU,CAAC,CAAA"}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.useEntities = void 0;
|
|
4
|
-
const react_1 = require("react");
|
|
5
|
-
const react_redux_1 = require("react-redux");
|
|
6
|
-
const _1 = require(".");
|
|
7
|
-
const QueryResolver_1 = require("../api/QueryResolver");
|
|
8
|
-
const useEntities = (type, ids, options = {}) => {
|
|
9
|
-
const { queryResolver = QueryResolver_1._getDefaultQueryResolver(), batchKey = type } = options;
|
|
10
|
-
const alwaysIds = ids || [];
|
|
11
|
-
const foundEntities = _1.useApiSelector((state) => alwaysIds.map((id) => state.entities[type][id]), react_redux_1.shallowEqual);
|
|
12
|
-
const neededEntities = _1.useApiSelector((state) => alwaysIds.filter((id) => state.entities[type][id] === undefined), react_redux_1.shallowEqual);
|
|
13
|
-
const dispatch = _1.useApiDispatch();
|
|
14
|
-
react_1.useEffect(() => {
|
|
15
|
-
if (neededEntities.length === 0) {
|
|
16
|
-
return;
|
|
17
|
-
}
|
|
18
|
-
const formatted = neededEntities.map((id) => {
|
|
19
|
-
const query = {
|
|
20
|
-
name: `entity-${type}`,
|
|
21
|
-
body: {
|
|
22
|
-
id,
|
|
23
|
-
},
|
|
24
|
-
};
|
|
25
|
-
return query;
|
|
26
|
-
});
|
|
27
|
-
formatted.forEach((query) => {
|
|
28
|
-
queryResolver.addQueryToQueue(query, { batchKey, dispatch }).catch((error) => {
|
|
29
|
-
console.error("Entity Hook Error:", error);
|
|
30
|
-
});
|
|
31
|
-
});
|
|
32
|
-
}, [neededEntities.length]);
|
|
33
|
-
if (ids !== undefined && foundEntities.every((entity) => entity !== undefined)) {
|
|
34
|
-
return foundEntities;
|
|
35
|
-
}
|
|
36
|
-
else {
|
|
37
|
-
return undefined;
|
|
38
|
-
}
|
|
39
|
-
};
|
|
40
|
-
exports.useEntities = useEntities;
|
|
41
|
-
//# sourceMappingURL=useEntities.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useEntities.js","sourceRoot":"","sources":["../../src/hooks/useEntities.ts"],"names":[],"mappings":";;;AAAA,iCAAiC;AACjC,6CAA0C;AAK1C,wBAAkD;AAClD,wDAA6E;AAuB7E,MAAM,WAAW,GAAG,CAKlB,IAAgB,EAChB,GAAyB,EACzB,UAGI,EAAE,EACgB,EAAE;IACxB,MAAM,EAAE,aAAa,GAAG,wCAAwB,EAAE,EAAE,QAAQ,GAAG,IAAI,EAAE,GAAG,OAAO,CAAA;IAE/E,MAAM,SAAS,GAAG,GAAG,IAAI,EAAE,CAAA;IAC3B,MAAM,aAAa,GAAG,iBAAc,CAClC,CAAC,KAAK,EAAE,EAAE,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,EAC1D,0BAAY,CACb,CAAA;IACD,MAAM,cAAc,GAAG,iBAAc,CACnC,CAAC,KAAK,EAAE,EAAE,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,KAAK,SAAS,CAAC,EAC3E,0BAAY,CACb,CAAA;IAED,MAAM,QAAQ,GAAG,iBAAc,EAAE,CAAA;IAEjC,iBAAS,CAAC,GAAG,EAAE;QACb,IAAI,cAAc,CAAC,MAAM,KAAK,CAAC,EAAE;YAC/B,OAAM;SACP;QAGD,MAAM,SAAS,GAAmB,cAAc,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE;YAC1D,MAAM,KAAK,GAAiB;gBAC1B,IAAI,EAAE,UAAU,IAAI,EAAE;gBACtB,IAAI,EAAE;oBACJ,EAAE;iBACH;aACc,CAAA;YACjB,OAAO,KAAK,CAAA;QACd,CAAC,CAAC,CAAA;QACF,SAAS,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE;YAC1B,aAAa,CAAC,eAAe,CAAC,KAAK,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE;gBAG3E,OAAO,CAAC,KAAK,CAAC,oBAAoB,EAAE,KAAK,CAAC,CAAA;YAC5C,CAAC,CAAC,CAAA;QACJ,CAAC,CAAC,CAAA;IACJ,CAAC,EAAE,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAA;IAE3B,IAAI,GAAG,KAAK,SAAS,IAAI,aAAa,CAAC,KAAK,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,KAAK,SAAS,CAAC,EAAE;QAC9E,OAAO,aAAyB,CAAA;KACjC;SAAM;QACL,OAAO,SAAS,CAAA;KACjB;AACH,CAAC,CAAA;AAEQ,kCAAW"}
|
package/dist/hooks/useEntity.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.useEntity = void 0;
|
|
4
|
-
const useEntities_1 = require("./useEntities");
|
|
5
|
-
const useEntity = (type, id, options = {}) => {
|
|
6
|
-
const entities = useEntities_1.useEntities(type, id ? [id] : undefined, options);
|
|
7
|
-
return entities && entities[0];
|
|
8
|
-
};
|
|
9
|
-
exports.useEntity = useEntity;
|
|
10
|
-
//# sourceMappingURL=useEntity.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useEntity.js","sourceRoot":"","sources":["../../src/hooks/useEntity.ts"],"names":[],"mappings":";;;AAGA,+CAA2C;AAsB3C,MAAM,SAAS,GAAG,CAKhB,IAAgB,EAChB,EAAsB,EACtB,UAGI,EAAE,EACc,EAAE;IACtB,MAAM,QAAQ,GAAG,yBAAW,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,SAAS,EAAE,OAAO,CAAC,CAAA;IAClE,OAAO,QAAQ,IAAK,QAAQ,CAAC,CAAC,CAAwB,CAAA;AACxD,CAAC,CAAA;AAEQ,8BAAS"}
|
package/dist/hooks/useQueries.js
DELETED
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.useQueries = void 0;
|
|
4
|
-
const react_1 = require("react");
|
|
5
|
-
const getQueryHash_1 = require("../api/getQueryHash");
|
|
6
|
-
const _1 = require(".");
|
|
7
|
-
const react_redux_1 = require("react-redux");
|
|
8
|
-
const QueryResolver_1 = require("../api/QueryResolver");
|
|
9
|
-
const useQueries = (name, bodyList, options = {}) => {
|
|
10
|
-
const { queryResolver = QueryResolver_1._getDefaultQueryResolver(), batchKey = name } = options;
|
|
11
|
-
const queries = bodyList === null || bodyList === void 0 ? void 0 : bodyList.map((body) => {
|
|
12
|
-
return {
|
|
13
|
-
name,
|
|
14
|
-
body,
|
|
15
|
-
};
|
|
16
|
-
});
|
|
17
|
-
const hashes = queries === null || queries === void 0 ? void 0 : queries.map((query) => getQueryHash_1.getQueryHash(query));
|
|
18
|
-
const dispatch = _1.useApiDispatch();
|
|
19
|
-
const results = _1.useApiSelector((state) => {
|
|
20
|
-
return hashes === null || hashes === void 0 ? void 0 : hashes.map((hash) => state.responses[name][hash]);
|
|
21
|
-
}, react_redux_1.shallowEqual);
|
|
22
|
-
react_1.useEffect(() => {
|
|
23
|
-
if (queries === undefined || results === undefined) {
|
|
24
|
-
return;
|
|
25
|
-
}
|
|
26
|
-
const neededQueries = queries.filter((_, index) => {
|
|
27
|
-
return results[index] === undefined;
|
|
28
|
-
});
|
|
29
|
-
if (neededQueries.length === 0) {
|
|
30
|
-
return;
|
|
31
|
-
}
|
|
32
|
-
neededQueries.forEach((query) => {
|
|
33
|
-
queryResolver.addQueryToQueue(query, { batchKey, dispatch }).catch((error) => {
|
|
34
|
-
console.error("Query Hook Error:", error);
|
|
35
|
-
});
|
|
36
|
-
});
|
|
37
|
-
}, [name, JSON.stringify(hashes || [])]);
|
|
38
|
-
const errors = _1.useApiSelector((state) => state.errors[name], react_redux_1.shallowEqual);
|
|
39
|
-
if (errors !== undefined) {
|
|
40
|
-
hashes === null || hashes === void 0 ? void 0 : hashes.forEach((hash) => {
|
|
41
|
-
var _a;
|
|
42
|
-
(_a = errors[hash]) === null || _a === void 0 ? void 0 : _a.forEach((err) => {
|
|
43
|
-
throw new Error(err.message);
|
|
44
|
-
});
|
|
45
|
-
});
|
|
46
|
-
}
|
|
47
|
-
if (results === null || results === void 0 ? void 0 : results.every((result) => result !== undefined)) {
|
|
48
|
-
return results;
|
|
49
|
-
}
|
|
50
|
-
else {
|
|
51
|
-
return undefined;
|
|
52
|
-
}
|
|
53
|
-
};
|
|
54
|
-
exports.useQueries = useQueries;
|
|
55
|
-
//# sourceMappingURL=useQueries.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useQueries.js","sourceRoot":"","sources":["../../src/hooks/useQueries.ts"],"names":[],"mappings":";;;AAAA,iCAAiC;AAGjC,sDAAiD;AAEjD,wBAAkD;AAClD,6CAA0C;AAC1C,wDAA6E;AAqB7E,MAAM,UAAU,GAAG,CAKjB,IAAe,EACf,QAAoC,EACpC,UAGI,EAAE,EACqB,EAAE;IAC7B,MAAM,EAAE,aAAa,GAAG,wCAAwB,EAAE,EAAE,QAAQ,GAAG,IAAI,EAAE,GAAG,OAAO,CAAA;IAC/E,MAAM,OAAO,GAAG,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;QACrC,OAAO;YACL,IAAI;YACJ,IAAI;SACW,CAAA;IACnB,CAAC,CAAC,CAAA;IACF,MAAM,MAAM,GAAG,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,2BAAY,CAAC,KAAK,CAAC,CAAC,CAAA;IAE3D,MAAM,QAAQ,GAAG,iBAAc,EAAE,CAAA;IAGjC,MAAM,OAAO,GAAG,iBAAc,CAAC,CAAC,KAAK,EAAE,EAAE;QACvC,OAAO,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,KAAK,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,CAAA;IAC3D,CAAC,EAAE,0BAAY,CAAC,CAAA;IAIhB,iBAAS,CAAC,GAAG,EAAE;QACb,IAAI,OAAO,KAAK,SAAS,IAAI,OAAO,KAAK,SAAS,EAAE;YAClD,OAAM;SACP;QACD,MAAM,aAAa,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE;YAChD,OAAO,OAAO,CAAC,KAAK,CAAC,KAAK,SAAS,CAAA;QACrC,CAAC,CAAC,CAAA;QACF,IAAI,aAAa,CAAC,MAAM,KAAK,CAAC,EAAE;YAC9B,OAAM;SACP;QACD,aAAa,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE;YAC9B,aAAa,CAAC,eAAe,CAAC,KAAK,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE;gBAG3E,OAAO,CAAC,KAAK,CAAC,mBAAmB,EAAE,KAAK,CAAC,CAAA;YAC3C,CAAC,CAAC,CAAA;QACJ,CAAC,CAAC,CAAA;IACJ,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,MAAM,IAAI,EAAE,CAAC,CAAC,CAAC,CAAA;IAGxC,MAAM,MAAM,GAAG,iBAAc,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,0BAAY,CAAC,CAAA;IAC1E,IAAI,MAAM,KAAK,SAAS,EAAE;QACxB,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE;;YACvB,MAAA,MAAM,CAAC,IAAI,CAAC,0CAAE,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE;gBAC5B,MAAM,IAAI,KAAK,CAAC,GAAG,CAAC,OAAO,CAAC,CAAA;YAC9B,CAAC,CAAC,CAAA;QACJ,CAAC,CAAC,CAAA;KACH;IACD,IAAI,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,KAAK,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,KAAK,SAAS,CAAC,EAAE;QACpD,OAAQ,OAAoC,CAAA;KAC7C;SAAM;QACL,OAAO,SAAS,CAAA;KACjB;AACH,CAAC,CAAA;AAEQ,gCAAU"}
|
package/dist/hooks/useQuery.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.useQuery = void 0;
|
|
4
|
-
const useQueries_1 = require("./useQueries");
|
|
5
|
-
const useQuery = (name, body, options = {}) => {
|
|
6
|
-
const queries = useQueries_1.useQueries(name, body && [body], options);
|
|
7
|
-
return queries && queries[0];
|
|
8
|
-
};
|
|
9
|
-
exports.useQuery = useQuery;
|
|
10
|
-
//# sourceMappingURL=useQuery.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useQuery.js","sourceRoot":"","sources":["../../src/hooks/useQuery.ts"],"names":[],"mappings":";;;AAAA,6CAAyC;AAuBzC,MAAM,QAAQ,GAAG,CAKf,IAAe,EACf,IAA8B,EAC9B,UAGI,EAAE,EACmB,EAAE;IAC3B,MAAM,OAAO,GAAG,uBAAU,CAAC,IAAI,EAAE,IAAI,IAAI,CAAC,IAAI,CAAC,EAAE,OAAO,CAAC,CAAA;IACzD,OAAO,OAAO,IAAK,OAAO,CAAC,CAAC,CAA6B,CAAA;AAC3D,CAAC,CAAA;AAEQ,4BAAQ"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"product.js","sourceRoot":"","sources":["../../../src/schema/entities/product.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"variant.js","sourceRoot":"","sources":["../../../src/schema/entities/variant.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"productDocumentsByRetailPageUrls.js","sourceRoot":"","sources":["../../../src/schema/queries/productDocumentsByRetailPageUrls.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"retailPageInfo.js","sourceRoot":"","sources":["../../../src/schema/queries/retailPageInfo.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"retailPagePriceHistory.js","sourceRoot":"","sources":["../../../src/schema/queries/retailPagePriceHistory.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"retailPagePricing.js","sourceRoot":"","sources":["../../../src/schema/queries/retailPagePricing.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"searchList.js","sourceRoot":"","sources":["../../../src/schema/queries/searchList.ts"],"names":[],"mappings":""}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const redux_1 = require("redux");
|
|
7
|
-
const makeEntityReducer_1 = __importDefault(require("./makeEntityReducer"));
|
|
8
|
-
exports.default = redux_1.combineReducers({
|
|
9
|
-
product: makeEntityReducer_1.default("product"),
|
|
10
|
-
variant: makeEntityReducer_1.default("variant"),
|
|
11
|
-
});
|
|
12
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/store/entities/index.ts"],"names":[],"mappings":";;;;;AAAA,iCAAuC;AAEvC,4EAAmD;AAEnD,kBAAe,uBAAe,CAAC;IAC7B,OAAO,EAAE,2BAAiB,CAAC,SAAS,CAAC;IACrC,OAAO,EAAE,2BAAiB,CAAC,SAAS,CAAC;CACtC,CAAC,CAAA"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const makeEntityReducer = (name) => {
|
|
4
|
-
return (state, action) => {
|
|
5
|
-
if (state === undefined) {
|
|
6
|
-
return {};
|
|
7
|
-
}
|
|
8
|
-
if (action.type !== "response_arrived") {
|
|
9
|
-
return state;
|
|
10
|
-
}
|
|
11
|
-
const allRawEntities = action.response.entities;
|
|
12
|
-
if (allRawEntities === undefined) {
|
|
13
|
-
return state;
|
|
14
|
-
}
|
|
15
|
-
const rawEntities = allRawEntities[name];
|
|
16
|
-
if (rawEntities === undefined) {
|
|
17
|
-
return state;
|
|
18
|
-
}
|
|
19
|
-
const next = Object.assign({}, state, rawEntities);
|
|
20
|
-
return next;
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
exports.default = makeEntityReducer;
|
|
24
|
-
//# sourceMappingURL=makeEntityReducer.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"makeEntityReducer.js","sourceRoot":"","sources":["../../../src/store/entities/makeEntityReducer.ts"],"names":[],"mappings":";;AAaA,MAAM,iBAAiB,GAAG,CAIxB,IAAa,EACiB,EAAE;IAChC,OAAO,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE;QACvB,IAAI,KAAK,KAAK,SAAS,EAAE;YACvB,OAAO,EAAa,CAAA;SACrB;QACD,IAAI,MAAM,CAAC,IAAI,KAAK,kBAAkB,EAAE;YACtC,OAAO,KAAK,CAAA;SACb;QACD,MAAM,cAAc,GAAG,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAA;QAC/C,IAAI,cAAc,KAAK,SAAS,EAAE;YAChC,OAAO,KAAK,CAAA;SACb;QACD,MAAM,WAAW,GAAG,cAAc,CAAC,IAAI,CAAC,CAAA;QACxC,IAAI,WAAW,KAAK,SAAS,EAAE;YAC7B,OAAO,KAAK,CAAA;SACb;QAQD,MAAM,IAAI,GAAY,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,KAAK,EAAE,WAAW,CAAC,CAAA;QAC3D,OAAO,IAAI,CAAA;IACb,CAAC,CAAA;AACH,CAAC,CAAA;AAED,kBAAe,iBAAiB,CAAA"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const errorsReducer = (state, action) => {
|
|
4
|
-
if (state === undefined) {
|
|
5
|
-
return {};
|
|
6
|
-
}
|
|
7
|
-
if (action.type !== "response_arrived") {
|
|
8
|
-
return state;
|
|
9
|
-
}
|
|
10
|
-
const allRawErrors = action.response.errors;
|
|
11
|
-
if (allRawErrors === undefined) {
|
|
12
|
-
return state;
|
|
13
|
-
}
|
|
14
|
-
const next = Object.assign({}, state);
|
|
15
|
-
for (const [queryName, errors] of Object.entries(allRawErrors)) {
|
|
16
|
-
if (errors === undefined) {
|
|
17
|
-
return state;
|
|
18
|
-
}
|
|
19
|
-
next[queryName] = errors;
|
|
20
|
-
}
|
|
21
|
-
return next;
|
|
22
|
-
};
|
|
23
|
-
exports.default = errorsReducer;
|
|
24
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/store/errors/index.ts"],"names":[],"mappings":";;AAGA,MAAM,aAAa,GAAG,CACpB,KAA8C,EAC9C,MAAkB,EACuB,EAAE;IAC3C,IAAI,KAAK,KAAK,SAAS,EAAE;QACvB,OAAO,EAAE,CAAA;KACV;IACD,IAAI,MAAM,CAAC,IAAI,KAAK,kBAAkB,EAAE;QACtC,OAAO,KAAK,CAAA;KACb;IAED,MAAM,YAAY,GAAG,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAA;IAC3C,IAAI,YAAY,KAAK,SAAS,EAAE;QAC9B,OAAO,KAAK,CAAA;KACb;IAED,MAAM,IAAI,qBAAQ,KAAK,CAAE,CAAA;IAEzB,KAAK,MAAM,CAAC,SAAS,EAAE,MAAM,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,EAAE;QAC9D,IAAI,MAAM,KAAK,SAAS,EAAE;YACxB,OAAO,KAAK,CAAA;SACb;QAED,IAAI,CAAC,SAAS,CAAC,GAAG,MAAM,CAAA;KACzB;IAED,OAAO,IAAI,CAAA;AACb,CAAC,CAAA;AAED,kBAAe,aAAa,CAAA"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const makeErrorReducer = (name) => {
|
|
4
|
-
return (state, action) => {
|
|
5
|
-
if (state === undefined) {
|
|
6
|
-
return {};
|
|
7
|
-
}
|
|
8
|
-
if (action.type !== "response_arrived") {
|
|
9
|
-
return state;
|
|
10
|
-
}
|
|
11
|
-
const allRawErrors = action.response.errors;
|
|
12
|
-
if (allRawErrors === undefined) {
|
|
13
|
-
return state;
|
|
14
|
-
}
|
|
15
|
-
const rawErrors = allRawErrors[name];
|
|
16
|
-
if (rawErrors === undefined) {
|
|
17
|
-
return state;
|
|
18
|
-
}
|
|
19
|
-
const next = Object.assign({}, state, rawErrors);
|
|
20
|
-
return next;
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
exports.default = makeErrorReducer;
|
|
24
|
-
//# sourceMappingURL=makeErrorReducer.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"makeErrorReducer.js","sourceRoot":"","sources":["../../../src/store/errors/makeErrorReducer.ts"],"names":[],"mappings":";;AASA,MAAM,gBAAgB,GAAG,CAIvB,IAAa,EACiB,EAAE;IAChC,OAAO,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE;QACvB,IAAI,KAAK,KAAK,SAAS,EAAE;YACvB,OAAO,EAAa,CAAA;SACrB;QACD,IAAI,MAAM,CAAC,IAAI,KAAK,kBAAkB,EAAE;YACtC,OAAO,KAAK,CAAA;SACb;QACD,MAAM,YAAY,GAAG,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAA;QAC3C,IAAI,YAAY,KAAK,SAAS,EAAE;YAC9B,OAAO,KAAK,CAAA;SACb;QACD,MAAM,SAAS,GAAG,YAAY,CAAC,IAAI,CAAC,CAAA;QACpC,IAAI,SAAS,KAAK,SAAS,EAAE;YAC3B,OAAO,KAAK,CAAA;SACb;QAED,MAAM,IAAI,GAAY,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,KAAK,EAAE,SAAS,CAAC,CAAA;QACzD,OAAO,IAAI,CAAA;IACb,CAAC,CAAA;AACH,CAAC,CAAA;AAED,kBAAe,gBAAgB,CAAA"}
|
package/dist/store/index.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const redux_1 = require("redux");
|
|
7
|
-
const entities_1 = __importDefault(require("./entities"));
|
|
8
|
-
const errors_1 = __importDefault(require("./errors"));
|
|
9
|
-
const responses_1 = __importDefault(require("./responses"));
|
|
10
|
-
const reducers = redux_1.combineReducers({
|
|
11
|
-
entities: entities_1.default,
|
|
12
|
-
responses: responses_1.default,
|
|
13
|
-
errors: errors_1.default,
|
|
14
|
-
});
|
|
15
|
-
const store = redux_1.createStore(reducers);
|
|
16
|
-
exports.default = store;
|
|
17
|
-
//# sourceMappingURL=index.js.map
|
package/dist/store/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/store/index.ts"],"names":[],"mappings":";;;;;AAAA,iCAAoD;AAMpD,0DAAiC;AACjC,sDAA6B;AAC7B,4DAAmC;AAUnC,MAAM,QAAQ,GAAG,uBAAe,CAAC;IAC/B,QAAQ,EAAR,kBAAQ;IACR,SAAS,EAAT,mBAAS;IACT,MAAM,EAAN,gBAAM;CACP,CAAC,CAAA;AAEF,MAAM,KAAK,GAAG,mBAAW,CAAC,QAAQ,CAAC,CAAA;AAEnC,kBAAe,KAAK,CAAA"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const redux_1 = require("redux");
|
|
7
|
-
const makeResponseReducer_1 = __importDefault(require("./makeResponseReducer"));
|
|
8
|
-
exports.default = redux_1.combineReducers({
|
|
9
|
-
affiliateUrl: makeResponseReducer_1.default("affiliateUrl"),
|
|
10
|
-
analyticsTrack: makeResponseReducer_1.default("analyticsTrack"),
|
|
11
|
-
retailPagePriceHistory: makeResponseReducer_1.default("retailPagePriceHistory"),
|
|
12
|
-
productDocumentsByRetailPageUrls: makeResponseReducer_1.default("productDocumentsByRetailPageUrls"),
|
|
13
|
-
productDocumentsByProductIds: makeResponseReducer_1.default("productDocumentsByProductIds"),
|
|
14
|
-
searchSuggestionList: makeResponseReducer_1.default("searchSuggestionList"),
|
|
15
|
-
searchList: makeResponseReducer_1.default("searchList"),
|
|
16
|
-
retailPageInfo: makeResponseReducer_1.default("retailPageInfo"),
|
|
17
|
-
retailPagePricing: makeResponseReducer_1.default("retailPagePricing"),
|
|
18
|
-
topProductDocumentList: makeResponseReducer_1.default("topProductDocumentList"),
|
|
19
|
-
});
|
|
20
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/store/responses/index.ts"],"names":[],"mappings":";;;;;AAAA,iCAAuC;AAEvC,gFAAuD;AAEvD,kBAAe,uBAAe,CAAC;IAC7B,YAAY,EAAE,6BAAmB,CAAC,cAAc,CAAC;IACjD,cAAc,EAAE,6BAAmB,CAAC,gBAAgB,CAAC;IACrD,sBAAsB,EAAE,6BAAmB,CAAC,wBAAwB,CAAC;IACrE,gCAAgC,EAAE,6BAAmB,CAAC,kCAAkC,CAAC;IACzF,4BAA4B,EAAE,6BAAmB,CAAC,8BAA8B,CAAC;IACjF,oBAAoB,EAAE,6BAAmB,CAAC,sBAAsB,CAAC;IACjE,UAAU,EAAE,6BAAmB,CAAC,YAAY,CAAC;IAC7C,cAAc,EAAE,6BAAmB,CAAC,gBAAgB,CAAC;IACrD,iBAAiB,EAAE,6BAAmB,CAAC,mBAAmB,CAAC;IAC3D,sBAAsB,EAAE,6BAAmB,CAAC,wBAAwB,CAAC;CACtE,CAAC,CAAA"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const makeResponseReducer = (name) => {
|
|
4
|
-
return (state, action) => {
|
|
5
|
-
if (state === undefined) {
|
|
6
|
-
return {};
|
|
7
|
-
}
|
|
8
|
-
if (action.type !== "response_arrived") {
|
|
9
|
-
return state;
|
|
10
|
-
}
|
|
11
|
-
const allRawResponses = action.response.responses;
|
|
12
|
-
if (allRawResponses === undefined) {
|
|
13
|
-
return state;
|
|
14
|
-
}
|
|
15
|
-
const rawResponses = allRawResponses[name];
|
|
16
|
-
if (rawResponses === undefined) {
|
|
17
|
-
return state;
|
|
18
|
-
}
|
|
19
|
-
const next = Object.assign({}, state, rawResponses);
|
|
20
|
-
return next;
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
exports.default = makeResponseReducer;
|
|
24
|
-
//# sourceMappingURL=makeResponseReducer.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"makeResponseReducer.js","sourceRoot":"","sources":["../../../src/store/responses/makeResponseReducer.ts"],"names":[],"mappings":";;AASA,MAAM,mBAAmB,GAAG,CAI1B,IAAa,EACiB,EAAE;IAChC,OAAO,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE;QACvB,IAAI,KAAK,KAAK,SAAS,EAAE;YACvB,OAAO,EAAa,CAAA;SACrB;QACD,IAAI,MAAM,CAAC,IAAI,KAAK,kBAAkB,EAAE;YACtC,OAAO,KAAK,CAAA;SACb;QACD,MAAM,eAAe,GAAG,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAA;QACjD,IAAI,eAAe,KAAK,SAAS,EAAE;YACjC,OAAO,KAAK,CAAA;SACb;QACD,MAAM,YAAY,GAAG,eAAe,CAAC,IAAI,CAAC,CAAA;QAC1C,IAAI,YAAY,KAAK,SAAS,EAAE;YAC9B,OAAO,KAAK,CAAA;SACb;QAED,MAAM,IAAI,GAAY,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,KAAK,EAAE,YAAY,CAAC,CAAA;QAC5D,OAAO,IAAI,CAAA;IACb,CAAC,CAAA;AACH,CAAC,CAAA;AAED,kBAAe,mBAAmB,CAAA"}
|
package/types/Context.d.ts
DELETED
package/types/Context.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Context.d.ts","sourceRoot":"","sources":["../src/Context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAiB,MAAM,OAAO,CAAA;AAC9C,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAA;;AASpD,wBAAyE"}
|
package/types/Provider.d.ts
DELETED
package/types/Provider.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Provider.d.ts","sourceRoot":"","sources":["../src/Provider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAMzB,QAAA,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAM3D,CAAA;AAED,eAAe,WAAW,CAAA"}
|
package/types/actions.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { Api } from "./schema";
|
|
2
|
-
export declare type ApiAction<Type extends string, Body extends Record<string, unknown>> = {
|
|
3
|
-
type: Type;
|
|
4
|
-
} & Body;
|
|
5
|
-
export declare type ApiActions = ApiAction<"response_arrived", {
|
|
6
|
-
response: Api;
|
|
7
|
-
}>;
|
|
8
|
-
//# sourceMappingURL=actions.d.ts.map
|
package/types/actions.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../src/actions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,iBAAgB;AAGnC,oBAAY,SAAS,CAAC,IAAI,SAAS,MAAM,EAAE,IAAI,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,IAAI;IACjF,IAAI,EAAE,IAAI,CAAA;CACX,GAAG,IAAI,CAAA;AAER,oBAAY,UAAU,GAAG,SAAS,CAAC,kBAAkB,EAAE;IAAE,QAAQ,EAAE,GAAG,CAAA;CAAE,CAAC,CAAA"}
|
package/types/hooks/index.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export { useApiDispatch } from "./useApiDispatch";
|
|
2
|
-
export { useApiSelector } from "./useApiSelector";
|
|
3
|
-
export { useApiStore } from "./useApiStore";
|
|
4
|
-
export { useEntities } from "./useEntities";
|
|
5
|
-
export { useEntity } from "./useEntity";
|
|
6
|
-
export { useQueries } from "./useQueries";
|
|
7
|
-
export { useQuery } from "./useQuery";
|
|
8
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAG3C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AACzC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useApiDispatch.d.ts","sourceRoot":"","sources":["../../src/hooks/useApiDispatch.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,mBAAiB;AAItC,eAAO,MAAM,cAAc,mBAAsD,UAAU,KAAK,IAAI,CAAA;AAEpG,oBAAY,WAAW,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAA"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { Store } from "../store";
|
|
2
|
-
declare type ApiStateSelector<R> = (state: Store) => R;
|
|
3
|
-
export declare const useApiSelector: <T>(sel: ApiStateSelector<T>, eq?: ((prev: Store, next: Store) => boolean) | undefined) => T;
|
|
4
|
-
export {};
|
|
5
|
-
//# sourceMappingURL=useApiSelector.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useApiSelector.d.ts","sourceRoot":"","sources":["../../src/hooks/useApiSelector.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,EAAE,iBAAe;AAE/B,aAAK,gBAAgB,CAAC,CAAC,IAAI,CAAC,KAAK,EAAE,KAAK,KAAK,CAAC,CAAA;AAE9C,eAAO,MAAM,cAAc,6CAEb,KAAK,QAAQ,KAAK,KAAK,OAAO,mBACtC,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useApiStore.d.ts","sourceRoot":"","sources":["../../src/hooks/useApiStore.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAI7B,eAAO,MAAM,WAAW,EAAE,MAAM,KAAmC,CAAA"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { ApiEntities, Id } from "../schema";
|
|
2
|
-
import QueryResolver from "../api/QueryResolver";
|
|
3
|
-
declare const useEntities: <EntityName extends keyof ApiEntities, IdType extends Id<EntityName>, Entity extends ApiEntities[EntityName][IdType]>(type: EntityName, ids: IdType[] | undefined, options?: {
|
|
4
|
-
queryResolver?: QueryResolver;
|
|
5
|
-
batchKey?: string;
|
|
6
|
-
}) => Entity[] | undefined;
|
|
7
|
-
export { useEntities };
|
|
8
|
-
//# sourceMappingURL=useEntities.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useEntities.d.ts","sourceRoot":"","sources":["../../src/hooks/useEntities.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,WAAW,EAAE,EAAE,EAAE,kBAAgB;AAG1C,OAAO,aAA2C,6BAA2B;AAuB7E,QAAA,MAAM,WAAW,+KAON;IACP,aAAa,CAAC,EAAE,aAAa,CAAA;IAC7B,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB,yBA6CF,CAAA;AAED,OAAO,EAAE,WAAW,EAAE,CAAA"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import QueryResolver from "../api/QueryResolver";
|
|
2
|
-
import type { ApiEntities, Id } from "../schema";
|
|
3
|
-
declare const useEntity: <EntityName extends keyof ApiEntities, IdType extends Id<EntityName>, Entity extends ApiEntities[EntityName][IdType]>(type: EntityName, id: IdType | undefined, options?: {
|
|
4
|
-
queryResolver?: QueryResolver;
|
|
5
|
-
batchKey?: string;
|
|
6
|
-
}) => Entity | undefined;
|
|
7
|
-
export { useEntity };
|
|
8
|
-
//# sourceMappingURL=useEntity.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useEntity.d.ts","sourceRoot":"","sources":["../../src/hooks/useEntity.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,6BAA2B;AAC/C,OAAO,KAAK,EAAE,WAAW,EAAE,EAAE,EAAE,kBAAgB;AAwB/C,QAAA,MAAM,SAAS,4KAOJ;IACP,aAAa,CAAC,EAAE,aAAa,CAAA;IAC7B,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB,uBAIF,CAAA;AAED,OAAO,EAAE,SAAS,EAAE,CAAA"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { ApiQueries, ApiResponses } from "../schema";
|
|
2
|
-
import QueryResolver from "../api/QueryResolver";
|
|
3
|
-
declare const useQueries: <QueryName extends keyof ApiQueries, QueryResult extends ApiResponses[QueryName][string], QueryRequest extends ApiQueries[QueryName][string]>(name: QueryName, bodyList: QueryRequest[] | undefined, options?: {
|
|
4
|
-
queryResolver?: QueryResolver;
|
|
5
|
-
batchKey?: string;
|
|
6
|
-
}) => QueryResult[] | undefined;
|
|
7
|
-
export { useQueries };
|
|
8
|
-
//# sourceMappingURL=useQueries.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useQueries.d.ts","sourceRoot":"","sources":["../../src/hooks/useQueries.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,kBAAgB;AAGnD,OAAO,aAA2C,6BAA2B;AAqB7E,QAAA,MAAM,UAAU,iNAOL;IACP,aAAa,CAAC,EAAE,aAAa,CAAA;IAC7B,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB,8BAqDF,CAAA;AAED,OAAO,EAAE,UAAU,EAAE,CAAA"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { ApiQueries, ApiResponses } from "../schema";
|
|
2
|
-
import QueryResolver from "../api/QueryResolver";
|
|
3
|
-
declare const useQuery: <QueryName extends keyof ApiQueries, QueryResult extends ApiResponses[QueryName][string], QueryRequest extends ApiQueries[QueryName][string]>(name: QueryName, body: QueryRequest | undefined, options?: {
|
|
4
|
-
queryResolver?: QueryResolver;
|
|
5
|
-
batchKey?: string;
|
|
6
|
-
}) => QueryResult | undefined;
|
|
7
|
-
export { useQuery };
|
|
8
|
-
//# sourceMappingURL=useQuery.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useQuery.d.ts","sourceRoot":"","sources":["../../src/hooks/useQuery.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,YAAY,EAAE,kBAAgB;AACxD,OAAO,aAAa,6BAA2B;AAoB/C,QAAA,MAAM,QAAQ,2MAOH;IACP,aAAa,CAAC,EAAE,aAAa,CAAA;IAC7B,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB,4BAIF,CAAA;AAED,OAAO,EAAE,QAAQ,EAAE,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"product.d.ts","sourceRoot":"","sources":["../../../src/schema/entities/product.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AAEpC,MAAM,WAAW,OAAQ,SAAQ,MAAM,CAAC,SAAS,CAAC;IAChD,IAAI,EAAE,MAAM,CAAA;CACb"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"variant.d.ts","sourceRoot":"","sources":["../../../src/schema/entities/variant.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AAEpC,MAAM,WAAW,OAAQ,SAAQ,MAAM,CAAC,SAAS,CAAC;IAChD,IAAI,EAAE,MAAM,CAAA;CACb"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { Url, ProductDocument } from "../builtins";
|
|
2
|
-
export interface ProductDocumentsByRetailPageUrlsQuery {
|
|
3
|
-
retailPageUrls: Url[];
|
|
4
|
-
}
|
|
5
|
-
export declare type ProductDocumentsByRetailPageUrlsResponse = ProductDocument[];
|
|
6
|
-
//# sourceMappingURL=productDocumentsByRetailPageUrls.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"productDocumentsByRetailPageUrls.d.ts","sourceRoot":"","sources":["../../../src/schema/queries/productDocumentsByRetailPageUrls.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAElD,MAAM,WAAW,qCAAqC;IACpD,cAAc,EAAE,GAAG,EAAE,CAAA;CACtB;AAED,oBAAY,wCAAwC,GAAG,eAAe,EAAE,CAAA"}
|