@unchainedshop/api 2.0.0-beta7 → 2.0.0-beta9
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/jest.config.js +9 -0
- package/lib/acl.d.ts +2 -0
- package/lib/acl.js +2 -2
- package/lib/acl.js.map +1 -1
- package/lib/api-index.d.ts +4 -6
- package/lib/api-index.js +5 -13
- package/lib/api-index.js.map +1 -1
- package/lib/context.d.ts +0 -1
- package/lib/context.js +0 -12
- package/lib/context.js.map +1 -1
- package/lib/createGraphQLServer.d.ts +1 -1
- package/lib/createGraphQLServer.js +13 -50
- package/lib/createGraphQLServer.js.map +1 -1
- package/lib/errors.d.ts +20 -0
- package/lib/errors.js +20 -0
- package/lib/errors.js.map +1 -1
- package/lib/express/createApolloMiddleware.d.ts +4 -0
- package/lib/express/createApolloMiddleware.js +34 -0
- package/lib/express/createApolloMiddleware.js.map +1 -0
- package/lib/express/createBulkImportMiddleware.d.ts +2 -0
- package/lib/express/createBulkImportMiddleware.js +79 -0
- package/lib/express/createBulkImportMiddleware.js.map +1 -0
- package/lib/express/createERCMetadataMiddleware.d.ts +3 -0
- package/lib/express/createERCMetadataMiddleware.js +57 -0
- package/lib/express/createERCMetadataMiddleware.js.map +1 -0
- package/lib/express/createSingleSignOnMiddleware.d.ts +6 -0
- package/lib/express/createSingleSignOnMiddleware.js +71 -0
- package/lib/express/createSingleSignOnMiddleware.js.map +1 -0
- package/lib/express/index.d.ts +6 -0
- package/lib/express/index.js +27 -0
- package/lib/express/index.js.map +1 -0
- package/lib/loaders/index.js +5 -9
- package/lib/loaders/index.js.map +1 -1
- package/lib/resolvers/mutations/accounts/changePassword.d.ts +0 -2
- package/lib/resolvers/mutations/accounts/changePassword.js +14 -3
- package/lib/resolvers/mutations/accounts/changePassword.js.map +1 -1
- package/lib/resolvers/mutations/accounts/createUser.js +19 -5
- package/lib/resolvers/mutations/accounts/createUser.js.map +1 -1
- package/lib/resolvers/mutations/accounts/disableTOTP.js +15 -2
- package/lib/resolvers/mutations/accounts/disableTOTP.js.map +1 -1
- package/lib/resolvers/mutations/accounts/enableTOTP.js +12 -1
- package/lib/resolvers/mutations/accounts/enableTOTP.js.map +1 -1
- package/lib/resolvers/mutations/accounts/enrollUser.js +18 -5
- package/lib/resolvers/mutations/accounts/enrollUser.js.map +1 -1
- package/lib/resolvers/mutations/accounts/forgotPassword.js +11 -1
- package/lib/resolvers/mutations/accounts/forgotPassword.js.map +1 -1
- package/lib/resolvers/mutations/accounts/impersonate.js +1 -1
- package/lib/resolvers/mutations/accounts/impersonate.js.map +1 -1
- package/lib/resolvers/mutations/accounts/loginWithPassword.d.ts +0 -1
- package/lib/resolvers/mutations/accounts/loginWithPassword.js +22 -4
- package/lib/resolvers/mutations/accounts/loginWithPassword.js.map +1 -1
- package/lib/resolvers/mutations/accounts/loginWithWebAuthn.js +13 -1
- package/lib/resolvers/mutations/accounts/loginWithWebAuthn.js.map +1 -1
- package/lib/resolvers/mutations/accounts/logout.d.ts +1 -1
- package/lib/resolvers/mutations/accounts/logout.js +6 -2
- package/lib/resolvers/mutations/accounts/logout.js.map +1 -1
- package/lib/resolvers/mutations/accounts/logoutAllSessions.js +4 -1
- package/lib/resolvers/mutations/accounts/logoutAllSessions.js.map +1 -1
- package/lib/resolvers/mutations/accounts/resetPassword.d.ts +0 -1
- package/lib/resolvers/mutations/accounts/resetPassword.js +18 -3
- package/lib/resolvers/mutations/accounts/resetPassword.js.map +1 -1
- package/lib/resolvers/mutations/accounts/setPassword.d.ts +0 -1
- package/lib/resolvers/mutations/accounts/setPassword.js +1 -1
- package/lib/resolvers/mutations/accounts/setPassword.js.map +1 -1
- package/lib/resolvers/mutations/assortments/addAssortmentFilter.js +1 -2
- package/lib/resolvers/mutations/assortments/addAssortmentFilter.js.map +1 -1
- package/lib/resolvers/mutations/assortments/addAssortmentLink.js +16 -9
- package/lib/resolvers/mutations/assortments/addAssortmentLink.js.map +1 -1
- package/lib/resolvers/mutations/assortments/addAssortmentMedia.js +2 -3
- package/lib/resolvers/mutations/assortments/addAssortmentMedia.js.map +1 -1
- package/lib/resolvers/mutations/assortments/addAssortmentProduct.js +1 -2
- package/lib/resolvers/mutations/assortments/addAssortmentProduct.js.map +1 -1
- package/lib/resolvers/mutations/assortments/createAssortment.js +1 -2
- package/lib/resolvers/mutations/assortments/createAssortment.js.map +1 -1
- package/lib/resolvers/mutations/assortments/prepareAssortmentMediaUpload.js +0 -1
- package/lib/resolvers/mutations/assortments/prepareAssortmentMediaUpload.js.map +1 -1
- package/lib/resolvers/mutations/assortments/removeAssortment.js +1 -1
- package/lib/resolvers/mutations/assortments/removeAssortment.js.map +1 -1
- package/lib/resolvers/mutations/assortments/removeAssortmentFilter.js +1 -1
- package/lib/resolvers/mutations/assortments/removeAssortmentFilter.js.map +1 -1
- package/lib/resolvers/mutations/assortments/removeAssortmentLink.js +1 -1
- package/lib/resolvers/mutations/assortments/removeAssortmentLink.js.map +1 -1
- package/lib/resolvers/mutations/assortments/removeAssortmentMedia.js +2 -2
- package/lib/resolvers/mutations/assortments/removeAssortmentMedia.js.map +1 -1
- package/lib/resolvers/mutations/assortments/removeAssortmentProduct.js +1 -1
- package/lib/resolvers/mutations/assortments/removeAssortmentProduct.js.map +1 -1
- package/lib/resolvers/mutations/assortments/reorderAssortmentFilters.js +1 -1
- package/lib/resolvers/mutations/assortments/reorderAssortmentFilters.js.map +1 -1
- package/lib/resolvers/mutations/assortments/reorderAssortmentLinks.js +1 -1
- package/lib/resolvers/mutations/assortments/reorderAssortmentLinks.js.map +1 -1
- package/lib/resolvers/mutations/assortments/reorderAssortmentMedia.js +1 -1
- package/lib/resolvers/mutations/assortments/reorderAssortmentMedia.js.map +1 -1
- package/lib/resolvers/mutations/assortments/reorderAssortmentProducts.js +1 -1
- package/lib/resolvers/mutations/assortments/reorderAssortmentProducts.js.map +1 -1
- package/lib/resolvers/mutations/assortments/setBaseAssortment.js +1 -1
- package/lib/resolvers/mutations/assortments/setBaseAssortment.js.map +1 -1
- package/lib/resolvers/mutations/assortments/updateAssortment.js +1 -1
- package/lib/resolvers/mutations/assortments/updateAssortment.js.map +1 -1
- package/lib/resolvers/mutations/assortments/updateAssortmentMediaTexts.js +1 -1
- package/lib/resolvers/mutations/assortments/updateAssortmentMediaTexts.js.map +1 -1
- package/lib/resolvers/mutations/assortments/updateAssortmentTexts.js +1 -1
- package/lib/resolvers/mutations/assortments/updateAssortmentTexts.js.map +1 -1
- package/lib/resolvers/mutations/bookmarks/bookmark.js +2 -2
- package/lib/resolvers/mutations/bookmarks/bookmark.js.map +1 -1
- package/lib/resolvers/mutations/bookmarks/createBookmark.js +1 -1
- package/lib/resolvers/mutations/bookmarks/createBookmark.js.map +1 -1
- package/lib/resolvers/mutations/countries/createCountry.js +1 -2
- package/lib/resolvers/mutations/countries/createCountry.js.map +1 -1
- package/lib/resolvers/mutations/countries/removeCountry.js +1 -1
- package/lib/resolvers/mutations/countries/removeCountry.js.map +1 -1
- package/lib/resolvers/mutations/countries/updateCountry.js +1 -1
- package/lib/resolvers/mutations/countries/updateCountry.js.map +1 -1
- package/lib/resolvers/mutations/currencies/createCurrency.js +1 -2
- package/lib/resolvers/mutations/currencies/createCurrency.js.map +1 -1
- package/lib/resolvers/mutations/currencies/removeCurrency.js +1 -1
- package/lib/resolvers/mutations/currencies/removeCurrency.js.map +1 -1
- package/lib/resolvers/mutations/currencies/updateCurrency.js +1 -1
- package/lib/resolvers/mutations/currencies/updateCurrency.js.map +1 -1
- package/lib/resolvers/mutations/delivery/createDeliveryProvider.js +1 -2
- package/lib/resolvers/mutations/delivery/createDeliveryProvider.js.map +1 -1
- package/lib/resolvers/mutations/delivery/removeDeliveryProvider.js +1 -1
- package/lib/resolvers/mutations/delivery/removeDeliveryProvider.js.map +1 -1
- package/lib/resolvers/mutations/delivery/updateDeliveryProvider.js +1 -1
- package/lib/resolvers/mutations/delivery/updateDeliveryProvider.js.map +1 -1
- package/lib/resolvers/mutations/enrollments/activateEnrollment.js +1 -1
- package/lib/resolvers/mutations/enrollments/activateEnrollment.js.map +1 -1
- package/lib/resolvers/mutations/enrollments/terminateEnrollment.js +1 -1
- package/lib/resolvers/mutations/enrollments/terminateEnrollment.js.map +1 -1
- package/lib/resolvers/mutations/enrollments/updateEnrollment.d.ts +1 -1
- package/lib/resolvers/mutations/enrollments/updateEnrollment.js +5 -5
- package/lib/resolvers/mutations/enrollments/updateEnrollment.js.map +1 -1
- package/lib/resolvers/mutations/filters/createFilter.js +1 -2
- package/lib/resolvers/mutations/filters/createFilter.js.map +1 -1
- package/lib/resolvers/mutations/filters/createFilterOption.js +1 -1
- package/lib/resolvers/mutations/filters/createFilterOption.js.map +1 -1
- package/lib/resolvers/mutations/filters/removeFilter.d.ts +1 -1
- package/lib/resolvers/mutations/filters/removeFilter.js +4 -4
- package/lib/resolvers/mutations/filters/removeFilter.js.map +1 -1
- package/lib/resolvers/mutations/filters/updateFilter.js +1 -1
- package/lib/resolvers/mutations/filters/updateFilter.js.map +1 -1
- package/lib/resolvers/mutations/filters/updateFilterTexts.js +1 -1
- package/lib/resolvers/mutations/filters/updateFilterTexts.js.map +1 -1
- package/lib/resolvers/mutations/index.d.ts +2 -1
- package/lib/resolvers/mutations/index.js +2 -0
- package/lib/resolvers/mutations/index.js.map +1 -1
- package/lib/resolvers/mutations/languages/createLanguage.js +1 -2
- package/lib/resolvers/mutations/languages/createLanguage.js.map +1 -1
- package/lib/resolvers/mutations/languages/removeLanguage.js +1 -1
- package/lib/resolvers/mutations/languages/removeLanguage.js.map +1 -1
- package/lib/resolvers/mutations/languages/updateLanguage.js +1 -1
- package/lib/resolvers/mutations/languages/updateLanguage.js.map +1 -1
- package/lib/resolvers/mutations/orders/createCart.js +1 -1
- package/lib/resolvers/mutations/orders/createCart.js.map +1 -1
- package/lib/resolvers/mutations/orders/payOrder.js +1 -1
- package/lib/resolvers/mutations/orders/payOrder.js.map +1 -1
- package/lib/resolvers/mutations/orders/removeOrder.js +1 -1
- package/lib/resolvers/mutations/orders/removeOrder.js.map +1 -1
- package/lib/resolvers/mutations/pageView.d.ts +1 -1
- package/lib/resolvers/mutations/pageView.js +2 -2
- package/lib/resolvers/mutations/pageView.js.map +1 -1
- package/lib/resolvers/mutations/payment/createPaymentProvider.js +1 -2
- package/lib/resolvers/mutations/payment/createPaymentProvider.js.map +1 -1
- package/lib/resolvers/mutations/payment/registerPaymentCredentials.js +2 -2
- package/lib/resolvers/mutations/payment/registerPaymentCredentials.js.map +1 -1
- package/lib/resolvers/mutations/payment/removePaymentProvider.js +1 -1
- package/lib/resolvers/mutations/payment/removePaymentProvider.js.map +1 -1
- package/lib/resolvers/mutations/payment/updatePaymentProvider.js +1 -1
- package/lib/resolvers/mutations/payment/updatePaymentProvider.js.map +1 -1
- package/lib/resolvers/mutations/products/addProductAssignment.js +1 -1
- package/lib/resolvers/mutations/products/addProductAssignment.js.map +1 -1
- package/lib/resolvers/mutations/products/addProductMedia.js +1 -2
- package/lib/resolvers/mutations/products/addProductMedia.js.map +1 -1
- package/lib/resolvers/mutations/products/addProductReviewVote.js +1 -1
- package/lib/resolvers/mutations/products/addProductReviewVote.js.map +1 -1
- package/lib/resolvers/mutations/products/createProduct.js +1 -2
- package/lib/resolvers/mutations/products/createProduct.js.map +1 -1
- package/lib/resolvers/mutations/products/createProductBundleItem.js +1 -1
- package/lib/resolvers/mutations/products/createProductBundleItem.js.map +1 -1
- package/lib/resolvers/mutations/products/createProductReview.js +1 -1
- package/lib/resolvers/mutations/products/createProductReview.js.map +1 -1
- package/lib/resolvers/mutations/products/createProductVariation.js +1 -2
- package/lib/resolvers/mutations/products/createProductVariation.js.map +1 -1
- package/lib/resolvers/mutations/products/createProductVariationOption.js +4 -1
- package/lib/resolvers/mutations/products/createProductVariationOption.js.map +1 -1
- package/lib/resolvers/mutations/products/prepareProductMediaUpload.js +0 -1
- package/lib/resolvers/mutations/products/prepareProductMediaUpload.js.map +1 -1
- package/lib/resolvers/mutations/products/publishProduct.js +1 -1
- package/lib/resolvers/mutations/products/publishProduct.js.map +1 -1
- package/lib/resolvers/mutations/products/removeBundleItem.js +2 -2
- package/lib/resolvers/mutations/products/removeBundleItem.js.map +1 -1
- package/lib/resolvers/mutations/products/removeProduct.d.ts +1 -1
- package/lib/resolvers/mutations/products/removeProduct.js +17 -8
- package/lib/resolvers/mutations/products/removeProduct.js.map +1 -1
- package/lib/resolvers/mutations/products/removeProductAssignment.js +1 -1
- package/lib/resolvers/mutations/products/removeProductAssignment.js.map +1 -1
- package/lib/resolvers/mutations/products/removeProductMedia.js +2 -2
- package/lib/resolvers/mutations/products/removeProductMedia.js.map +1 -1
- package/lib/resolvers/mutations/products/removeProductReview.js +1 -1
- package/lib/resolvers/mutations/products/removeProductReview.js.map +1 -1
- package/lib/resolvers/mutations/products/removeProductReviewVote.js +1 -1
- package/lib/resolvers/mutations/products/removeProductReviewVote.js.map +1 -1
- package/lib/resolvers/mutations/products/removeProductVariation.js +1 -1
- package/lib/resolvers/mutations/products/removeProductVariation.js.map +1 -1
- package/lib/resolvers/mutations/products/removeProductVariationOption.js +1 -1
- package/lib/resolvers/mutations/products/removeProductVariationOption.js.map +1 -1
- package/lib/resolvers/mutations/products/reorderProductMedia.js +1 -1
- package/lib/resolvers/mutations/products/reorderProductMedia.js.map +1 -1
- package/lib/resolvers/mutations/products/unpublishProduct.js +1 -1
- package/lib/resolvers/mutations/products/unpublishProduct.js.map +1 -1
- package/lib/resolvers/mutations/products/updateProduct.js +1 -1
- package/lib/resolvers/mutations/products/updateProduct.js.map +1 -1
- package/lib/resolvers/mutations/products/updateProductCommerce.js +1 -1
- package/lib/resolvers/mutations/products/updateProductCommerce.js.map +1 -1
- package/lib/resolvers/mutations/products/updateProductMediaTexts.js +1 -1
- package/lib/resolvers/mutations/products/updateProductMediaTexts.js.map +1 -1
- package/lib/resolvers/mutations/products/updateProductPlan.js +1 -1
- package/lib/resolvers/mutations/products/updateProductPlan.js.map +1 -1
- package/lib/resolvers/mutations/products/updateProductReview.js +1 -1
- package/lib/resolvers/mutations/products/updateProductReview.js.map +1 -1
- package/lib/resolvers/mutations/products/updateProductSupply.js +1 -1
- package/lib/resolvers/mutations/products/updateProductSupply.js.map +1 -1
- package/lib/resolvers/mutations/products/updateProductTexts.js +1 -1
- package/lib/resolvers/mutations/products/updateProductTexts.js.map +1 -1
- package/lib/resolvers/mutations/products/updateProductTokenization.js +1 -1
- package/lib/resolvers/mutations/products/updateProductTokenization.js.map +1 -1
- package/lib/resolvers/mutations/products/updateProductVariationTexts.js +1 -1
- package/lib/resolvers/mutations/products/updateProductVariationTexts.js.map +1 -1
- package/lib/resolvers/mutations/products/updateProductWarehousing.js +1 -1
- package/lib/resolvers/mutations/products/updateProductWarehousing.js.map +1 -1
- package/lib/resolvers/mutations/users/prepareUserAvatarUpload.js +0 -1
- package/lib/resolvers/mutations/users/prepareUserAvatarUpload.js.map +1 -1
- package/lib/resolvers/mutations/users/removeUser.d.ts +4 -0
- package/lib/resolvers/mutations/users/removeUser.js +11 -0
- package/lib/resolvers/mutations/users/removeUser.js.map +1 -0
- package/lib/resolvers/mutations/users/setRoles.js +1 -1
- package/lib/resolvers/mutations/users/setRoles.js.map +1 -1
- package/lib/resolvers/mutations/users/setUserTags.js +1 -1
- package/lib/resolvers/mutations/users/setUserTags.js.map +1 -1
- package/lib/resolvers/mutations/users/updateUserAvatar.js +1 -2
- package/lib/resolvers/mutations/users/updateUserAvatar.js.map +1 -1
- package/lib/resolvers/mutations/users/updateUserProfile.js +1 -1
- package/lib/resolvers/mutations/users/updateUserProfile.js.map +1 -1
- package/lib/resolvers/mutations/utils/getOrderCart.js +1 -1
- package/lib/resolvers/mutations/utils/getOrderCart.js.map +1 -1
- package/lib/resolvers/mutations/warehousing/createWarehousingProvider.js +1 -2
- package/lib/resolvers/mutations/warehousing/createWarehousingProvider.js.map +1 -1
- package/lib/resolvers/mutations/warehousing/removeWarehousingProvider.js +1 -1
- package/lib/resolvers/mutations/warehousing/removeWarehousingProvider.js.map +1 -1
- package/lib/resolvers/mutations/warehousing/updateWarehousingProvider.js +1 -1
- package/lib/resolvers/mutations/warehousing/updateWarehousingProvider.js.map +1 -1
- package/lib/resolvers/mutations/worker/addWork.js +1 -1
- package/lib/resolvers/mutations/worker/addWork.js.map +1 -1
- package/lib/resolvers/mutations/worker/finishWork.js +1 -1
- package/lib/resolvers/mutations/worker/finishWork.js.map +1 -1
- package/lib/resolvers/mutations/worker/removeWork.js +1 -1
- package/lib/resolvers/mutations/worker/removeWork.js.map +1 -1
- package/lib/resolvers/queries/products/productCatalogPrices.js +0 -1
- package/lib/resolvers/queries/products/productCatalogPrices.js.map +1 -1
- package/lib/resolvers/queries/users/users.d.ts +2 -1
- package/lib/resolvers/queries/users/users.js.map +1 -1
- package/lib/resolvers/queries/worker/workQueue.d.ts +1 -1
- package/lib/resolvers/queries/worker/workQueue.js +1 -1
- package/lib/resolvers/queries/worker/workQueue.js.map +1 -1
- package/lib/resolvers/type/assortment/assortment-filter-types.d.ts +2 -2
- package/lib/resolvers/type/assortment/assortment-filter-types.js +0 -1
- package/lib/resolvers/type/assortment/assortment-filter-types.js.map +1 -1
- package/lib/resolvers/type/assortment/assortment-link-types.d.ts +2 -2
- package/lib/resolvers/type/assortment/assortment-link-types.js +0 -2
- package/lib/resolvers/type/assortment/assortment-link-types.js.map +1 -1
- package/lib/resolvers/type/assortment/assortment-media-types.d.ts +1 -1
- package/lib/resolvers/type/assortment/assortment-media-types.js +2 -0
- package/lib/resolvers/type/assortment/assortment-media-types.js.map +1 -1
- package/lib/resolvers/type/assortment/assortment-path-link-types.d.ts +1 -4
- package/lib/resolvers/type/assortment/assortment-path-link-types.js +1 -7
- package/lib/resolvers/type/assortment/assortment-path-link-types.js.map +1 -1
- package/lib/resolvers/type/assortment/assortment-product-types.d.ts +2 -2
- package/lib/resolvers/type/assortment/assortment-product-types.js +0 -2
- package/lib/resolvers/type/assortment/assortment-product-types.js.map +1 -1
- package/lib/resolvers/type/assortment/assortment-types.d.ts +1 -1
- package/lib/resolvers/type/assortment/assortment-types.js +8 -4
- package/lib/resolvers/type/assortment/assortment-types.js.map +1 -1
- package/lib/resolvers/type/bookmark-types.d.ts +1 -1
- package/lib/resolvers/type/bookmark-types.js +0 -1
- package/lib/resolvers/type/bookmark-types.js.map +1 -1
- package/lib/resolvers/type/country-types.d.ts +1 -1
- package/lib/resolvers/type/delivery-provider-types.d.ts +1 -1
- package/lib/resolvers/type/enrollment/enrollment-delivery-types.d.ts +2 -2
- package/lib/resolvers/type/enrollment/enrollment-payment-types.d.ts +2 -2
- package/lib/resolvers/type/enrollment/enrollment-period-types.d.ts +2 -2
- package/lib/resolvers/type/enrollment/enrollment-plan-tyes.d.ts +2 -2
- package/lib/resolvers/type/enrollment/enrollment-plan-tyes.js +0 -1
- package/lib/resolvers/type/enrollment/enrollment-plan-tyes.js.map +1 -1
- package/lib/resolvers/type/enrollment/enrollment-types.d.ts +2 -2
- package/lib/resolvers/type/event-types.d.ts +1 -1
- package/lib/resolvers/type/filter/filter-option-types.d.ts +2 -2
- package/lib/resolvers/type/filter/filter-types.d.ts +2 -2
- package/lib/resolvers/type/index.d.ts +1 -0
- package/lib/resolvers/type/login-method-response-types.d.ts +1 -0
- package/lib/resolvers/type/order/order-delivery-discount-types.d.ts +1 -1
- package/lib/resolvers/type/order/order-delivery-pickup-types.d.ts +1 -1
- package/lib/resolvers/type/order/order-delivery-shipping-types.d.ts +1 -1
- package/lib/resolvers/type/order/order-discount-types.d.ts +1 -1
- package/lib/resolvers/type/order/order-global-discount-types.d.ts +1 -1
- package/lib/resolvers/type/order/order-item-discount-types.d.ts +1 -1
- package/lib/resolvers/type/order/order-item-types.d.ts +1 -1
- package/lib/resolvers/type/order/order-item-types.js +0 -3
- package/lib/resolvers/type/order/order-item-types.js.map +1 -1
- package/lib/resolvers/type/order/order-payment-card-types.d.ts +1 -1
- package/lib/resolvers/type/order/order-payment-discount-types.d.ts +1 -1
- package/lib/resolvers/type/order/order-payment-generic-types.d.ts +1 -1
- package/lib/resolvers/type/order/order-payment-invoice-types.d.ts +1 -1
- package/lib/resolvers/type/order/order-types.d.ts +1 -1
- package/lib/resolvers/type/price-types.d.ts +1 -1
- package/lib/resolvers/type/product/product-assortment-path-types.js +1 -0
- package/lib/resolvers/type/product/product-assortment-path-types.js.map +1 -1
- package/lib/resolvers/type/product/product-bundle-item-types.js +0 -1
- package/lib/resolvers/type/product/product-bundle-item-types.js.map +1 -1
- package/lib/resolvers/type/product/product-configurable-types.js +1 -0
- package/lib/resolvers/type/product/product-configurable-types.js.map +1 -1
- package/lib/resolvers/type/product/product-discount.d.ts +1 -1
- package/lib/resolvers/type/product/product-media-types.js +2 -0
- package/lib/resolvers/type/product/product-media-types.js.map +1 -1
- package/lib/resolvers/type/product/product-plan-types.js +1 -12
- package/lib/resolvers/type/product/product-plan-types.js.map +1 -1
- package/lib/resolvers/type/product/product-review-types.d.ts +1 -1
- package/lib/resolvers/type/product/product-review-types.js +0 -1
- package/lib/resolvers/type/product/product-review-types.js.map +1 -1
- package/lib/resolvers/type/product/product-variation-assignment-types.js +0 -1
- package/lib/resolvers/type/product/product-variation-assignment-types.js.map +1 -1
- package/lib/resolvers/type/quotation-types.d.ts +2 -2
- package/lib/resolvers/type/quotation-types.js +0 -1
- package/lib/resolvers/type/quotation-types.js.map +1 -1
- package/lib/resolvers/type/shop-types.d.ts +1 -1
- package/lib/resolvers/type/token-types.d.ts +1 -1
- package/lib/resolvers/type/token-types.js +2 -1
- package/lib/resolvers/type/token-types.js.map +1 -1
- package/lib/resolvers/type/user-types.d.ts +4 -3
- package/lib/resolvers/type/user-types.js +10 -21
- package/lib/resolvers/type/user-types.js.map +1 -1
- package/lib/resolvers/type/webauthn-credentials-types.d.ts +1 -1
- package/lib/resolvers/type/work-types.d.ts +1 -1
- package/lib/roles/admin.js +3 -72
- package/lib/roles/admin.js.map +1 -1
- package/lib/schema/{types/log.d.ts → directives.d.ts} +0 -0
- package/lib/schema/directives.js +15 -0
- package/lib/schema/directives.js.map +1 -0
- package/lib/schema/index.js +2 -1
- package/lib/schema/index.js.map +1 -1
- package/lib/schema/inputTypes.js +0 -15
- package/lib/schema/inputTypes.js.map +1 -1
- package/lib/schema/mutation.js +22 -36
- package/lib/schema/mutation.js.map +1 -1
- package/lib/schema/query.js +42 -22
- package/lib/schema/query.js.map +1 -1
- package/lib/schema/types/assortment.js +10 -10
- package/lib/schema/types/color.js +1 -1
- package/lib/schema/types/country.js +1 -1
- package/lib/schema/types/currency.js +1 -1
- package/lib/schema/types/delivery.js +3 -2
- package/lib/schema/types/delivery.js.map +1 -1
- package/lib/schema/types/dimensions.js +1 -1
- package/lib/schema/types/discount.js +1 -1
- package/lib/schema/types/filter.js +5 -8
- package/lib/schema/types/filter.js.map +1 -1
- package/lib/schema/types/geo-position.js +1 -1
- package/lib/schema/types/language.js +1 -1
- package/lib/schema/types/media.js +1 -1
- package/lib/schema/types/payment.js +3 -3
- package/lib/schema/types/price.js +2 -2
- package/lib/schema/types/product/bundle-product.js +2 -3
- package/lib/schema/types/product/bundle-product.js.map +1 -1
- package/lib/schema/types/product/configurable-product.js +7 -7
- package/lib/schema/types/product/plan-product.js +3 -3
- package/lib/schema/types/product/product.js +11 -11
- package/lib/schema/types/product/simple-product.js +4 -4
- package/lib/schema/types/product/tokenized-product.js +3 -3
- package/lib/schema/types/search.js +3 -8
- package/lib/schema/types/search.js.map +1 -1
- package/lib/schema/types/shop.js +2 -2
- package/lib/schema/types/types.js +1 -1
- package/lib/schema/types/user.js +4 -3
- package/lib/schema/types/user.js.map +1 -1
- package/lib/schema/types/warehousing.js +3 -3
- package/package.json +26 -12
- package/src/acl.ts +2 -2
- package/src/api-index.ts +6 -27
- package/src/context.ts +0 -18
- package/src/createGraphQLServer.ts +14 -68
- package/src/errors.ts +85 -0
- package/src/express/createApolloMiddleware.ts +40 -0
- package/src/express/createBulkImportMiddleware.ts +87 -0
- package/src/express/createERCMetadataMiddleware.ts +73 -0
- package/src/express/createSingleSignOnMiddleware.ts +84 -0
- package/src/express/index.ts +48 -0
- package/src/loaders/index.ts +27 -35
- package/src/resolvers/mutations/accounts/changePassword.ts +11 -6
- package/src/resolvers/mutations/accounts/createUser.ts +21 -6
- package/src/resolvers/mutations/accounts/disableTOTP.ts +13 -3
- package/src/resolvers/mutations/accounts/enableTOTP.ts +9 -2
- package/src/resolvers/mutations/accounts/enrollUser.ts +20 -5
- package/src/resolvers/mutations/accounts/forgotPassword.ts +8 -1
- package/src/resolvers/mutations/accounts/impersonate.ts +1 -1
- package/src/resolvers/mutations/accounts/loginWithPassword.ts +27 -5
- package/src/resolvers/mutations/accounts/loginWithWebAuthn.ts +13 -2
- package/src/resolvers/mutations/accounts/logout.ts +9 -2
- package/src/resolvers/mutations/accounts/logoutAllSessions.ts +7 -1
- package/src/resolvers/mutations/accounts/resetPassword.ts +21 -5
- package/src/resolvers/mutations/accounts/setPassword.ts +2 -2
- package/src/resolvers/mutations/assortments/addAssortmentFilter.ts +5 -9
- package/src/resolvers/mutations/assortments/addAssortmentLink.ts +22 -14
- package/src/resolvers/mutations/assortments/addAssortmentMedia.ts +2 -6
- package/src/resolvers/mutations/assortments/addAssortmentProduct.ts +0 -2
- package/src/resolvers/mutations/assortments/createAssortment.ts +4 -8
- package/src/resolvers/mutations/assortments/prepareAssortmentMediaUpload.ts +0 -1
- package/src/resolvers/mutations/assortments/removeAssortment.ts +1 -1
- package/src/resolvers/mutations/assortments/removeAssortmentFilter.ts +1 -1
- package/src/resolvers/mutations/assortments/removeAssortmentLink.ts +1 -1
- package/src/resolvers/mutations/assortments/removeAssortmentMedia.ts +2 -2
- package/src/resolvers/mutations/assortments/removeAssortmentProduct.ts +1 -1
- package/src/resolvers/mutations/assortments/reorderAssortmentFilters.ts +3 -6
- package/src/resolvers/mutations/assortments/reorderAssortmentLinks.ts +0 -1
- package/src/resolvers/mutations/assortments/reorderAssortmentMedia.ts +3 -6
- package/src/resolvers/mutations/assortments/reorderAssortmentProducts.ts +0 -1
- package/src/resolvers/mutations/assortments/setBaseAssortment.ts +1 -1
- package/src/resolvers/mutations/assortments/updateAssortment.ts +1 -1
- package/src/resolvers/mutations/assortments/updateAssortmentMediaTexts.ts +1 -1
- package/src/resolvers/mutations/assortments/updateAssortmentTexts.ts +1 -1
- package/src/resolvers/mutations/bookmarks/bookmark.ts +4 -7
- package/src/resolvers/mutations/bookmarks/createBookmark.ts +4 -7
- package/src/resolvers/mutations/countries/createCountry.ts +3 -7
- package/src/resolvers/mutations/countries/removeCountry.ts +1 -1
- package/src/resolvers/mutations/countries/updateCountry.ts +1 -1
- package/src/resolvers/mutations/currencies/createCurrency.ts +3 -7
- package/src/resolvers/mutations/currencies/removeCurrency.ts +1 -1
- package/src/resolvers/mutations/currencies/updateCurrency.ts +1 -1
- package/src/resolvers/mutations/delivery/createDeliveryProvider.ts +3 -7
- package/src/resolvers/mutations/delivery/removeDeliveryProvider.ts +1 -1
- package/src/resolvers/mutations/delivery/updateDeliveryProvider.ts +1 -1
- package/src/resolvers/mutations/enrollments/activateEnrollment.ts +1 -1
- package/src/resolvers/mutations/enrollments/terminateEnrollment.ts +1 -1
- package/src/resolvers/mutations/enrollments/updateEnrollment.ts +5 -5
- package/src/resolvers/mutations/filters/createFilter.ts +0 -2
- package/src/resolvers/mutations/filters/createFilterOption.ts +5 -1
- package/src/resolvers/mutations/filters/removeFilter.ts +4 -4
- package/src/resolvers/mutations/filters/updateFilter.ts +1 -1
- package/src/resolvers/mutations/filters/updateFilterTexts.ts +1 -1
- package/src/resolvers/mutations/index.ts +2 -0
- package/src/resolvers/mutations/languages/createLanguage.ts +3 -7
- package/src/resolvers/mutations/languages/removeLanguage.ts +1 -1
- package/src/resolvers/mutations/languages/updateLanguage.ts +1 -1
- package/src/resolvers/mutations/orders/createCart.ts +4 -1
- package/src/resolvers/mutations/orders/payOrder.ts +1 -1
- package/src/resolvers/mutations/orders/removeOrder.ts +1 -1
- package/src/resolvers/mutations/pageView.ts +2 -2
- package/src/resolvers/mutations/payment/createPaymentProvider.ts +3 -7
- package/src/resolvers/mutations/payment/registerPaymentCredentials.ts +6 -2
- package/src/resolvers/mutations/payment/removePaymentProvider.ts +1 -1
- package/src/resolvers/mutations/payment/updatePaymentProvider.ts +1 -1
- package/src/resolvers/mutations/products/addProductAssignment.ts +4 -8
- package/src/resolvers/mutations/products/addProductMedia.ts +1 -2
- package/src/resolvers/mutations/products/addProductReviewVote.ts +1 -1
- package/src/resolvers/mutations/products/createProduct.ts +4 -8
- package/src/resolvers/mutations/products/createProductBundleItem.ts +1 -1
- package/src/resolvers/mutations/products/createProductReview.ts +5 -8
- package/src/resolvers/mutations/products/createProductVariation.ts +6 -10
- package/src/resolvers/mutations/products/createProductVariationOption.ts +4 -5
- package/src/resolvers/mutations/products/prepareProductMediaUpload.ts +0 -1
- package/src/resolvers/mutations/products/publishProduct.ts +1 -1
- package/src/resolvers/mutations/products/removeBundleItem.ts +2 -2
- package/src/resolvers/mutations/products/removeProduct.ts +26 -7
- package/src/resolvers/mutations/products/removeProductAssignment.ts +1 -1
- package/src/resolvers/mutations/products/removeProductMedia.ts +2 -2
- package/src/resolvers/mutations/products/removeProductReview.ts +1 -1
- package/src/resolvers/mutations/products/removeProductReviewVote.ts +1 -1
- package/src/resolvers/mutations/products/removeProductVariation.ts +1 -1
- package/src/resolvers/mutations/products/removeProductVariationOption.ts +0 -1
- package/src/resolvers/mutations/products/reorderProductMedia.ts +1 -1
- package/src/resolvers/mutations/products/unpublishProduct.ts +1 -1
- package/src/resolvers/mutations/products/updateProduct.ts +1 -1
- package/src/resolvers/mutations/products/updateProductCommerce.ts +1 -1
- package/src/resolvers/mutations/products/updateProductMediaTexts.ts +1 -1
- package/src/resolvers/mutations/products/updateProductPlan.ts +1 -1
- package/src/resolvers/mutations/products/updateProductReview.ts +1 -1
- package/src/resolvers/mutations/products/updateProductSupply.ts +1 -1
- package/src/resolvers/mutations/products/updateProductTexts.ts +1 -1
- package/src/resolvers/mutations/products/updateProductTokenization.ts +1 -1
- package/src/resolvers/mutations/products/updateProductVariationTexts.ts +0 -1
- package/src/resolvers/mutations/products/updateProductWarehousing.ts +1 -1
- package/src/resolvers/mutations/users/prepareUserAvatarUpload.ts +0 -1
- package/src/resolvers/mutations/users/removeUser.ts +19 -0
- package/src/resolvers/mutations/users/setRoles.ts +1 -1
- package/src/resolvers/mutations/users/setUserTags.ts +1 -1
- package/src/resolvers/mutations/users/updateUserAvatar.ts +1 -2
- package/src/resolvers/mutations/users/updateUserProfile.ts +1 -1
- package/src/resolvers/mutations/utils/getOrderCart.ts +1 -1
- package/src/resolvers/mutations/warehousing/createWarehousingProvider.ts +3 -7
- package/src/resolvers/mutations/warehousing/removeWarehousingProvider.ts +1 -1
- package/src/resolvers/mutations/warehousing/updateWarehousingProvider.ts +1 -1
- package/src/resolvers/mutations/worker/addWork.ts +1 -1
- package/src/resolvers/mutations/worker/finishWork.ts +8 -12
- package/src/resolvers/mutations/worker/removeWork.ts +1 -1
- package/src/resolvers/queries/products/productCatalogPrices.ts +0 -1
- package/src/resolvers/queries/users/users.ts +2 -1
- package/src/resolvers/queries/worker/workQueue.ts +1 -1
- package/src/resolvers/type/assortment/assortment-filter-types.ts +0 -1
- package/src/resolvers/type/assortment/assortment-link-types.ts +0 -2
- package/src/resolvers/type/assortment/assortment-media-types.ts +2 -0
- package/src/resolvers/type/assortment/assortment-path-link-types.ts +1 -11
- package/src/resolvers/type/assortment/assortment-product-types.ts +0 -2
- package/src/resolvers/type/assortment/assortment-types.ts +9 -4
- package/src/resolvers/type/bookmark-types.ts +0 -1
- package/src/resolvers/type/enrollment/enrollment-plan-tyes.ts +0 -1
- package/src/resolvers/type/order/order-item-types.ts +0 -3
- package/src/resolvers/type/product/product-assortment-path-types.ts +1 -0
- package/src/resolvers/type/product/product-bundle-item-types.ts +0 -1
- package/src/resolvers/type/product/product-configurable-types.ts +1 -0
- package/src/resolvers/type/product/product-media-types.ts +2 -0
- package/src/resolvers/type/product/product-plan-types.ts +2 -18
- package/src/resolvers/type/product/product-review-types.ts +0 -1
- package/src/resolvers/type/product/product-variation-assignment-types.ts +0 -1
- package/src/resolvers/type/quotation-types.ts +0 -1
- package/src/resolvers/type/token-types.ts +2 -1
- package/src/resolvers/type/user-types.ts +14 -25
- package/src/roles/admin.ts +3 -72
- package/src/schema/directives.js +14 -0
- package/src/schema/index.js +2 -1
- package/src/schema/inputTypes.js +0 -15
- package/src/schema/mutation.js +22 -36
- package/src/schema/query.js +42 -22
- package/src/schema/types/assortment.js +10 -10
- package/src/schema/types/color.js +1 -1
- package/src/schema/types/country.js +1 -1
- package/src/schema/types/currency.js +1 -1
- package/src/schema/types/delivery.js +3 -2
- package/src/schema/types/dimensions.js +1 -1
- package/src/schema/types/discount.js +1 -1
- package/src/schema/types/filter.js +5 -8
- package/src/schema/types/geo-position.js +1 -1
- package/src/schema/types/language.js +1 -1
- package/src/schema/types/media.js +1 -1
- package/src/schema/types/payment.js +3 -3
- package/src/schema/types/price.js +2 -2
- package/src/schema/types/product/bundle-product.js +2 -3
- package/src/schema/types/product/configurable-product.js +7 -7
- package/src/schema/types/product/plan-product.js +3 -3
- package/src/schema/types/product/product.js +11 -11
- package/src/schema/types/product/simple-product.js +4 -4
- package/src/schema/types/product/tokenized-product.js +3 -3
- package/src/schema/types/search.js +3 -8
- package/src/schema/types/shop.js +2 -2
- package/src/schema/types/types.js +1 -1
- package/src/schema/types/user.js +4 -3
- package/src/schema/types/warehousing.js +3 -3
- package/tests/api-index.test.ts +78 -0
- package/lib/createBulkImportServer.d.ts +0 -2
- package/lib/createBulkImportServer.js +0 -81
- package/lib/createBulkImportServer.js.map +0 -1
- package/lib/createERCMetadataServer.d.ts +0 -2
- package/lib/createERCMetadataServer.js +0 -59
- package/lib/createERCMetadataServer.js.map +0 -1
- package/lib/schema/types/log.js +0 -16
- package/lib/schema/types/log.js.map +0 -1
- package/src/createBulkImportServer.ts +0 -95
- package/src/createERCMetadataServer.ts +0 -78
- package/src/schema/types/log.js +0 -15
package/lib/schema/query.js
CHANGED
|
@@ -7,13 +7,14 @@ export default [
|
|
|
7
7
|
me: User
|
|
8
8
|
|
|
9
9
|
"""
|
|
10
|
-
Get list of users
|
|
10
|
+
Get list of users, by default sorted by creation date (ascending) unless a queryString is set
|
|
11
11
|
"""
|
|
12
12
|
users(
|
|
13
13
|
limit: Int = 20
|
|
14
14
|
offset: Int = 0
|
|
15
15
|
includeGuests: Boolean = false
|
|
16
16
|
queryString: String
|
|
17
|
+
sort: [SortOptionInput!]
|
|
17
18
|
): [User!]!
|
|
18
19
|
|
|
19
20
|
"""
|
|
@@ -35,11 +36,12 @@ export default [
|
|
|
35
36
|
slugs: [String!]
|
|
36
37
|
includeDrafts: Boolean = false
|
|
37
38
|
queryString: String
|
|
38
|
-
): Int!
|
|
39
|
+
): Int! @cacheControl(maxAge: 180)
|
|
39
40
|
|
|
40
41
|
"""
|
|
41
42
|
Simple list of published products filtered either by tags or explicit slugs
|
|
42
43
|
If a slug is provided, limit and offset don't have any effect on the result
|
|
44
|
+
By default sorted by sequence (ascending) and published (ascending) unless a queryString is set
|
|
43
45
|
"""
|
|
44
46
|
products(
|
|
45
47
|
queryString: String
|
|
@@ -60,16 +62,18 @@ export default [
|
|
|
60
62
|
List products specified prices
|
|
61
63
|
"""
|
|
62
64
|
productCatalogPrices(productId: ID!): [ProductCatalogPrice!]!
|
|
65
|
+
@cacheControl(scope: PRIVATE, maxAge: 0)
|
|
63
66
|
|
|
64
67
|
"""
|
|
65
68
|
Localization: Meta data for product
|
|
66
69
|
"""
|
|
67
|
-
translatedProductTexts(productId: ID!): [ProductTexts!]!
|
|
70
|
+
translatedProductTexts(productId: ID!): [ProductTexts!]! @cacheControl(scope: PRIVATE, maxAge: 0)
|
|
68
71
|
|
|
69
72
|
"""
|
|
70
73
|
Localization: Media title/subtitle of a media that is attached to a product
|
|
71
74
|
"""
|
|
72
75
|
translatedProductMediaTexts(productMediaId: ID!): [ProductMediaTexts!]!
|
|
76
|
+
@cacheControl(scope: PRIVATE, maxAge: 0)
|
|
73
77
|
|
|
74
78
|
"""
|
|
75
79
|
Localization: Variations and Variation Options
|
|
@@ -77,15 +81,16 @@ export default [
|
|
|
77
81
|
translatedProductVariationTexts(
|
|
78
82
|
productVariationId: ID!
|
|
79
83
|
productVariationOptionValue: String
|
|
80
|
-
): [ProductVariationTexts!]!
|
|
84
|
+
): [ProductVariationTexts!]! @cacheControl(scope: PRIVATE, maxAge: 0)
|
|
81
85
|
|
|
82
86
|
"""
|
|
83
87
|
Returns total number languages
|
|
84
88
|
"""
|
|
85
89
|
languagesCount(includeInactive: Boolean = false, queryString: String): Int!
|
|
90
|
+
@cacheControl(maxAge: 180)
|
|
86
91
|
|
|
87
92
|
"""
|
|
88
|
-
Get all languages
|
|
93
|
+
Get all languages, by default sorted by creation date (ascending)
|
|
89
94
|
"""
|
|
90
95
|
languages(
|
|
91
96
|
limit: Int = 50
|
|
@@ -101,7 +106,7 @@ export default [
|
|
|
101
106
|
language(languageId: ID!): Language
|
|
102
107
|
|
|
103
108
|
"""
|
|
104
|
-
Get all countries
|
|
109
|
+
Get all countries, by default sorted by creation date (ascending)
|
|
105
110
|
"""
|
|
106
111
|
countries(
|
|
107
112
|
limit: Int = 50
|
|
@@ -115,6 +120,7 @@ export default [
|
|
|
115
120
|
Returns total number of countries
|
|
116
121
|
"""
|
|
117
122
|
countriesCount(includeInactive: Boolean = false, queryString: String): Int!
|
|
123
|
+
@cacheControl(maxAge: 180)
|
|
118
124
|
|
|
119
125
|
"""
|
|
120
126
|
Get a specific country by ID
|
|
@@ -125,9 +131,10 @@ export default [
|
|
|
125
131
|
Returns total number of currencies
|
|
126
132
|
"""
|
|
127
133
|
currenciesCount(includeInactive: Boolean = false, queryString: String): Int!
|
|
134
|
+
@cacheControl(maxAge: 180)
|
|
128
135
|
|
|
129
136
|
"""
|
|
130
|
-
Get all currencies
|
|
137
|
+
Get all currencies, by default sorted by creation date (ascending)
|
|
131
138
|
"""
|
|
132
139
|
currencies(
|
|
133
140
|
limit: Int = 50
|
|
@@ -145,42 +152,49 @@ export default [
|
|
|
145
152
|
"""
|
|
146
153
|
Returns total number of delivery providers, optionally filtered by type
|
|
147
154
|
"""
|
|
148
|
-
deliveryProvidersCount(type: DeliveryProviderType): Int!
|
|
155
|
+
deliveryProvidersCount(type: DeliveryProviderType): Int! @cacheControl(scope: PRIVATE, maxAge: 0)
|
|
149
156
|
|
|
150
157
|
"""
|
|
151
158
|
Get all delivery providers, optionally filtered by type
|
|
152
159
|
"""
|
|
153
160
|
deliveryProviders(type: DeliveryProviderType): [DeliveryProvider!]!
|
|
161
|
+
@cacheControl(scope: PRIVATE, maxAge: 0)
|
|
154
162
|
|
|
155
163
|
"""
|
|
156
164
|
Get a specific delivery provider by ID
|
|
157
165
|
"""
|
|
158
166
|
deliveryProvider(deliveryProviderId: ID!): DeliveryProvider
|
|
167
|
+
@cacheControl(scope: PRIVATE, maxAge: 0)
|
|
159
168
|
|
|
160
169
|
"""
|
|
161
170
|
Get all delivery interfaces filtered by type
|
|
162
171
|
"""
|
|
163
172
|
deliveryInterfaces(type: DeliveryProviderType!): [DeliveryInterface!]!
|
|
173
|
+
@cacheControl(scope: PRIVATE, maxAge: 0)
|
|
164
174
|
|
|
165
175
|
"""
|
|
166
176
|
Returns total number of delivery providers, optionally filtered by type
|
|
167
177
|
"""
|
|
168
178
|
warehousingProvidersCount(type: WarehousingProviderType): Int!
|
|
179
|
+
@cacheControl(scope: PRIVATE, maxAge: 0)
|
|
169
180
|
|
|
170
181
|
"""
|
|
171
182
|
Get all warehousing providers, optionally filtered by type
|
|
172
183
|
"""
|
|
173
184
|
warehousingProviders(type: WarehousingProviderType): [WarehousingProvider!]!
|
|
185
|
+
@cacheControl(scope: PRIVATE, maxAge: 0)
|
|
174
186
|
|
|
175
187
|
"""
|
|
176
188
|
Get a specific warehousing provider by ID
|
|
177
189
|
"""
|
|
178
190
|
warehousingProvider(warehousingProviderId: ID!): WarehousingProvider
|
|
191
|
+
@cacheControl(scope: PRIVATE, maxAge: 0)
|
|
179
192
|
|
|
180
193
|
"""
|
|
181
194
|
Get all warehousing interfaces filtered by type
|
|
182
195
|
"""
|
|
183
196
|
warehousingInterfaces(type: WarehousingProviderType!): [WarehousingInterface!]!
|
|
197
|
+
@cacheControl(scope: PRIVATE, maxAge: 0)
|
|
184
198
|
|
|
185
199
|
"""
|
|
186
200
|
Get token
|
|
@@ -190,22 +204,24 @@ export default [
|
|
|
190
204
|
"""
|
|
191
205
|
Returns total number of payment providers, optionally filtered by type
|
|
192
206
|
"""
|
|
193
|
-
paymentProvidersCount(type: PaymentProviderType): Int!
|
|
207
|
+
paymentProvidersCount(type: PaymentProviderType): Int! @cacheControl(scope: PRIVATE, maxAge: 0)
|
|
194
208
|
|
|
195
209
|
"""
|
|
196
210
|
Get all payment providers, optionally filtered by type
|
|
197
211
|
"""
|
|
198
212
|
paymentProviders(type: PaymentProviderType): [PaymentProvider!]!
|
|
213
|
+
@cacheControl(scope: PRIVATE, maxAge: 0)
|
|
199
214
|
|
|
200
215
|
"""
|
|
201
216
|
Get a specific payment provider by ID
|
|
202
217
|
"""
|
|
203
|
-
paymentProvider(paymentProviderId: ID!): PaymentProvider
|
|
218
|
+
paymentProvider(paymentProviderId: ID!): PaymentProvider @cacheControl(scope: PRIVATE, maxAge: 0)
|
|
204
219
|
|
|
205
220
|
"""
|
|
206
221
|
Get all payment interfaces filtered by type
|
|
207
222
|
"""
|
|
208
223
|
paymentInterfaces(type: PaymentProviderType!): [PaymentInterface!]!
|
|
224
|
+
@cacheControl(scope: PRIVATE, maxAge: 0)
|
|
209
225
|
|
|
210
226
|
"""
|
|
211
227
|
Returns total number of orders
|
|
@@ -213,7 +229,7 @@ export default [
|
|
|
213
229
|
ordersCount(includeCarts: Boolean = false, queryString: String): Int!
|
|
214
230
|
|
|
215
231
|
"""
|
|
216
|
-
Get all orders
|
|
232
|
+
Get all orders, by default sorted by creation date (descending)
|
|
217
233
|
"""
|
|
218
234
|
orders(
|
|
219
235
|
limit: Int = 10
|
|
@@ -234,7 +250,7 @@ export default [
|
|
|
234
250
|
shopInfo: Shop!
|
|
235
251
|
|
|
236
252
|
"""
|
|
237
|
-
Get all root assortments
|
|
253
|
+
Get all root assortments, by default sorted by sequence (ascending)
|
|
238
254
|
"""
|
|
239
255
|
assortments(
|
|
240
256
|
queryString: String
|
|
@@ -256,7 +272,7 @@ export default [
|
|
|
256
272
|
includeInactive: Boolean = false
|
|
257
273
|
includeLeaves: Boolean = false
|
|
258
274
|
queryString: String
|
|
259
|
-
): Int!
|
|
275
|
+
): Int! @cacheControl(maxAge: 180)
|
|
260
276
|
|
|
261
277
|
"""
|
|
262
278
|
Get a specific assortment by ID
|
|
@@ -267,24 +283,28 @@ export default [
|
|
|
267
283
|
Localization: Meta data for assortments
|
|
268
284
|
"""
|
|
269
285
|
translatedAssortmentTexts(assortmentId: ID!): [AssortmentTexts!]!
|
|
286
|
+
@cacheControl(scope: PRIVATE, maxAge: 0)
|
|
270
287
|
|
|
271
288
|
"""
|
|
272
289
|
Localization: Media title/subtitle of a media that is attached to a assortment
|
|
273
290
|
"""
|
|
274
291
|
translatedAssortmentMediaTexts(assortmentMediaId: ID!): [AssortmentMediaTexts!]!
|
|
292
|
+
@cacheControl(scope: PRIVATE, maxAge: 0)
|
|
275
293
|
|
|
276
294
|
"""
|
|
277
295
|
Localization: Filters and Filter Options
|
|
278
296
|
"""
|
|
279
297
|
translatedFilterTexts(filterId: ID!, filterOptionValue: String): [FilterTexts!]!
|
|
298
|
+
@cacheControl(scope: PRIVATE, maxAge: 0)
|
|
280
299
|
|
|
281
300
|
"""
|
|
282
301
|
Returns total number of filters
|
|
283
302
|
"""
|
|
284
303
|
filtersCount(includeInactive: Boolean = false, queryString: String): Int!
|
|
304
|
+
@cacheControl(maxAge: 180)
|
|
285
305
|
|
|
286
306
|
"""
|
|
287
|
-
Get all filters
|
|
307
|
+
Get all filters, by default sorted by creation date (ascending)
|
|
288
308
|
"""
|
|
289
309
|
filters(
|
|
290
310
|
limit: Int = 10
|
|
@@ -302,22 +322,22 @@ export default [
|
|
|
302
322
|
"""
|
|
303
323
|
Returns total number of product reviews
|
|
304
324
|
"""
|
|
305
|
-
productReviewsCount(queryString: String): Int!
|
|
325
|
+
productReviewsCount(queryString: String): Int! @cacheControl(scope: PRIVATE, maxAge: 0)
|
|
306
326
|
|
|
307
327
|
"""
|
|
308
|
-
Get all product reviews
|
|
328
|
+
Get all product reviews, by default sorted by creation date (descending)
|
|
309
329
|
"""
|
|
310
330
|
productReviews(
|
|
311
331
|
limit: Int = 10
|
|
312
332
|
offset: Int = 0
|
|
313
333
|
sort: [SortOptionInput!]
|
|
314
334
|
queryString: String
|
|
315
|
-
): [ProductReview!]!
|
|
335
|
+
): [ProductReview!]! @cacheControl(scope: PRIVATE, maxAge: 0)
|
|
316
336
|
|
|
317
337
|
"""
|
|
318
338
|
Get a specific product review by ID
|
|
319
339
|
"""
|
|
320
|
-
productReview(productReviewId: ID!): ProductReview!
|
|
340
|
+
productReview(productReviewId: ID!): ProductReview! @cacheControl(scope: PRIVATE, maxAge: 0)
|
|
321
341
|
|
|
322
342
|
"""
|
|
323
343
|
Returns total number of quotations
|
|
@@ -325,7 +345,7 @@ export default [
|
|
|
325
345
|
quotationsCount(queryString: String): Int!
|
|
326
346
|
|
|
327
347
|
"""
|
|
328
|
-
Get all quotations
|
|
348
|
+
Get all quotations, by default sorted by creation date (ascending)
|
|
329
349
|
"""
|
|
330
350
|
quotations(
|
|
331
351
|
limit: Int = 10
|
|
@@ -345,7 +365,7 @@ export default [
|
|
|
345
365
|
enrollmentsCount(queryString: String, status: [String!]): Int!
|
|
346
366
|
|
|
347
367
|
"""
|
|
348
|
-
Get all enrollments
|
|
368
|
+
Get all enrollments, by default sorted by creation date (ascending)
|
|
349
369
|
"""
|
|
350
370
|
enrollments(
|
|
351
371
|
limit: Int = 10
|
|
@@ -383,7 +403,7 @@ export default [
|
|
|
383
403
|
): AssortmentSearchResult!
|
|
384
404
|
|
|
385
405
|
"""
|
|
386
|
-
Get all work from the queue
|
|
406
|
+
Get all work from the queue, by default sorted by start date (desc), priority (desc), originalWorkId (asc) and created (asc)
|
|
387
407
|
"""
|
|
388
408
|
workQueue(
|
|
389
409
|
limit: Int = 10
|
|
@@ -420,7 +440,7 @@ export default [
|
|
|
420
440
|
event(eventId: ID!): Event
|
|
421
441
|
|
|
422
442
|
"""
|
|
423
|
-
Get all emitted events
|
|
443
|
+
Get all emitted events, by default sorted by creation date (desc)
|
|
424
444
|
"""
|
|
425
445
|
events(
|
|
426
446
|
types: [String!]
|
package/lib/schema/query.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query.js","sourceRoot":"","sources":["../../src/schema/query.js"],"names":[],"mappings":"AAAA,eAAe;IACb,aAAa,CAAC
|
|
1
|
+
{"version":3,"file":"query.js","sourceRoot":"","sources":["../../src/schema/query.js"],"names":[],"mappings":"AAAA,eAAe;IACb,aAAa,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAycb;CACF,CAAC"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
export default [
|
|
2
2
|
/* GraphQL */ `
|
|
3
|
-
type AssortmentMediaTexts {
|
|
3
|
+
type AssortmentMediaTexts @cacheControl(maxAge: 180) {
|
|
4
4
|
_id: ID!
|
|
5
5
|
locale: String
|
|
6
6
|
title: String
|
|
7
7
|
subtitle: String
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
-
type AssortmentMedia {
|
|
10
|
+
type AssortmentMedia @cacheControl(maxAge: 180) {
|
|
11
11
|
_id: ID!
|
|
12
12
|
tags: [LowerCaseString!]
|
|
13
13
|
file: Media!
|
|
@@ -18,10 +18,11 @@ export default [
|
|
|
18
18
|
"""
|
|
19
19
|
Assortment
|
|
20
20
|
"""
|
|
21
|
-
type Assortment {
|
|
21
|
+
type Assortment @cacheControl(maxAge: 180) {
|
|
22
22
|
_id: ID!
|
|
23
23
|
created: DateTime
|
|
24
24
|
updated: DateTime
|
|
25
|
+
deleted: DateTime
|
|
25
26
|
isActive: Boolean
|
|
26
27
|
isBase: Boolean
|
|
27
28
|
isRoot: Boolean
|
|
@@ -47,7 +48,7 @@ export default [
|
|
|
47
48
|
"""
|
|
48
49
|
Directed assortment to product paths (breadcrumbs)
|
|
49
50
|
"""
|
|
50
|
-
type AssortmentPath {
|
|
51
|
+
type AssortmentPath @cacheControl(maxAge: 180) {
|
|
51
52
|
links: [AssortmentPathLink!]!
|
|
52
53
|
}
|
|
53
54
|
|
|
@@ -56,14 +57,13 @@ export default [
|
|
|
56
57
|
assortmentId and assortmentTexts are there for convenience
|
|
57
58
|
to short-circuit breadcrumb lookups
|
|
58
59
|
"""
|
|
59
|
-
type AssortmentPathLink {
|
|
60
|
+
type AssortmentPathLink @cacheControl(maxAge: 180) {
|
|
60
61
|
assortmentId: ID!
|
|
61
|
-
assortmentSlug: String! @deprecated(reason: "Please use assortmentTexts")
|
|
62
62
|
assortmentTexts(forceLocale: String): AssortmentTexts!
|
|
63
63
|
link: AssortmentLink
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
-
type AssortmentProduct {
|
|
66
|
+
type AssortmentProduct @cacheControl(maxAge: 180) {
|
|
67
67
|
_id: ID!
|
|
68
68
|
sortKey: Int!
|
|
69
69
|
tags: [LowerCaseString!]
|
|
@@ -71,7 +71,7 @@ export default [
|
|
|
71
71
|
product: Product!
|
|
72
72
|
}
|
|
73
73
|
|
|
74
|
-
type AssortmentFilter {
|
|
74
|
+
type AssortmentFilter @cacheControl(maxAge: 180) {
|
|
75
75
|
_id: ID!
|
|
76
76
|
sortKey: Int!
|
|
77
77
|
tags: [LowerCaseString!]
|
|
@@ -79,7 +79,7 @@ export default [
|
|
|
79
79
|
filter: Filter!
|
|
80
80
|
}
|
|
81
81
|
|
|
82
|
-
type AssortmentLink {
|
|
82
|
+
type AssortmentLink @cacheControl(maxAge: 180) {
|
|
83
83
|
_id: ID!
|
|
84
84
|
sortKey: Int!
|
|
85
85
|
tags: [LowerCaseString!]
|
|
@@ -87,7 +87,7 @@ export default [
|
|
|
87
87
|
child: Assortment!
|
|
88
88
|
}
|
|
89
89
|
|
|
90
|
-
type AssortmentTexts {
|
|
90
|
+
type AssortmentTexts @cacheControl(maxAge: 180) {
|
|
91
91
|
_id: ID!
|
|
92
92
|
locale: String
|
|
93
93
|
slug: String
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export default [
|
|
2
2
|
/* GraphQL */ `
|
|
3
|
-
type DeliveryInterface {
|
|
3
|
+
type DeliveryInterface @cacheControl(maxAge: 180) {
|
|
4
4
|
_id: ID!
|
|
5
5
|
label: String
|
|
6
6
|
version: String
|
|
@@ -25,7 +25,7 @@ export default [
|
|
|
25
25
|
WRONG_CREDENTIALS
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
type DeliveryProvider {
|
|
28
|
+
type DeliveryProvider @cacheControl(maxAge: 60) {
|
|
29
29
|
_id: ID!
|
|
30
30
|
created: DateTime
|
|
31
31
|
updated: DateTime
|
|
@@ -36,6 +36,7 @@ export default [
|
|
|
36
36
|
configurationError: DeliveryProviderError
|
|
37
37
|
isActive: Boolean
|
|
38
38
|
simulatedPrice(currency: String, useNetPrice: Boolean = false, orderId: ID, context: JSON): Price
|
|
39
|
+
@cacheControl(scope: PRIVATE, maxAge: 10)
|
|
39
40
|
}
|
|
40
41
|
`,
|
|
41
42
|
];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delivery.js","sourceRoot":"","sources":["../../../src/schema/types/delivery.js"],"names":[],"mappings":"AAAA,eAAe;IACb,aAAa,CAAC
|
|
1
|
+
{"version":3,"file":"delivery.js","sourceRoot":"","sources":["../../../src/schema/types/delivery.js"],"names":[],"mappings":"AAAA,eAAe;IACb,aAAa,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCb;CACF,CAAC"}
|
|
@@ -22,20 +22,20 @@ export default [
|
|
|
22
22
|
RANGE
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
type FilterTexts {
|
|
25
|
+
type FilterTexts @cacheControl(maxAge: 180) {
|
|
26
26
|
_id: ID!
|
|
27
27
|
locale: String
|
|
28
28
|
title: String
|
|
29
29
|
subtitle: String
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
type FilterOption {
|
|
32
|
+
type FilterOption @cacheControl(maxAge: 180) {
|
|
33
33
|
_id: ID!
|
|
34
34
|
texts(forceLocale: String): FilterTexts
|
|
35
35
|
value: String
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
type Filter {
|
|
38
|
+
type Filter @cacheControl(maxAge: 180) {
|
|
39
39
|
_id: ID!
|
|
40
40
|
updated: DateTime
|
|
41
41
|
created: DateTime
|
|
@@ -46,17 +46,14 @@ export default [
|
|
|
46
46
|
options: [FilterOption!]
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
-
type LoadedFilterOption {
|
|
50
|
-
filteredProducts: Int! @deprecated(reason: "Renamed, use the filteredProductsCount field")
|
|
49
|
+
type LoadedFilterOption @cacheControl(maxAge: 180) {
|
|
51
50
|
filteredProductsCount: Int!
|
|
52
51
|
definition: FilterOption!
|
|
53
52
|
isSelected: Boolean
|
|
54
53
|
}
|
|
55
54
|
|
|
56
|
-
type LoadedFilter {
|
|
57
|
-
examinedProducts: Int! @deprecated(reason: "Renamed, use the productsCount field")
|
|
55
|
+
type LoadedFilter @cacheControl(maxAge: 180) {
|
|
58
56
|
productsCount: Int!
|
|
59
|
-
filteredProducts: Int! @deprecated(reason: "Renamed, use the filteredProductsCount field")
|
|
60
57
|
filteredProductsCount: Int!
|
|
61
58
|
definition: Filter!
|
|
62
59
|
isSelected: Boolean
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filter.js","sourceRoot":"","sources":["../../../src/schema/types/filter.js"],"names":[],"mappings":"AAAA,eAAe;IACb,aAAa,CAAC
|
|
1
|
+
{"version":3,"file":"filter.js","sourceRoot":"","sources":["../../../src/schema/types/filter.js"],"names":[],"mappings":"AAAA,eAAe;IACb,aAAa,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4Db;CACF,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export default [
|
|
2
2
|
/* GraphQL */ `
|
|
3
|
-
type PaymentInterface {
|
|
3
|
+
type PaymentInterface @cacheControl(maxAge: 180) {
|
|
4
4
|
_id: ID!
|
|
5
5
|
label: String
|
|
6
6
|
version: String
|
|
@@ -30,7 +30,7 @@ export default [
|
|
|
30
30
|
WRONG_CREDENTIALS
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
-
type PaymentCredentials {
|
|
33
|
+
type PaymentCredentials @cacheControl(maxAge: 0, scope: PRIVATE) {
|
|
34
34
|
_id: ID!
|
|
35
35
|
user: User!
|
|
36
36
|
paymentProvider: PaymentProvider!
|
|
@@ -40,7 +40,7 @@ export default [
|
|
|
40
40
|
isPreferred: Boolean!
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
-
type PaymentProvider {
|
|
43
|
+
type PaymentProvider @cacheControl(maxAge: 60) {
|
|
44
44
|
_id: ID!
|
|
45
45
|
created: DateTime
|
|
46
46
|
updated: DateTime
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export default [
|
|
2
2
|
/* GraphQL */ `
|
|
3
|
-
type Price {
|
|
3
|
+
type Price @cacheControl(maxAge: 60) {
|
|
4
4
|
_id: ID!
|
|
5
5
|
isTaxable: Boolean!
|
|
6
6
|
isNetPrice: Boolean!
|
|
@@ -8,7 +8,7 @@ export default [
|
|
|
8
8
|
currency: String!
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
type PriceRange {
|
|
11
|
+
type PriceRange @cacheControl(maxAge: 60) {
|
|
12
12
|
_id: ID!
|
|
13
13
|
minPrice: Price!
|
|
14
14
|
maxPrice: Price!
|
|
@@ -3,7 +3,7 @@ export default [
|
|
|
3
3
|
"""
|
|
4
4
|
A Bundle product consists of multiple configured products
|
|
5
5
|
"""
|
|
6
|
-
type BundleProduct implements Product {
|
|
6
|
+
type BundleProduct implements Product @cacheControl(maxAge: 180) {
|
|
7
7
|
_id: ID!
|
|
8
8
|
sequence: Int!
|
|
9
9
|
status: ProductStatus!
|
|
@@ -20,7 +20,6 @@ export default [
|
|
|
20
20
|
sort: [SortOptionInput!]
|
|
21
21
|
queryString: String
|
|
22
22
|
): [ProductReview!]!
|
|
23
|
-
|
|
24
23
|
assortmentPaths: [ProductAssortmentPath!]!
|
|
25
24
|
siblings(
|
|
26
25
|
assortmentId: ID
|
|
@@ -30,7 +29,7 @@ export default [
|
|
|
30
29
|
): [Product!]!
|
|
31
30
|
}
|
|
32
31
|
|
|
33
|
-
type ProductBundleItem {
|
|
32
|
+
type ProductBundleItem @cacheControl(maxAge: 180) {
|
|
34
33
|
product: Product!
|
|
35
34
|
quantity: Int!
|
|
36
35
|
configuration: [ProductConfigurationParameter!]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bundle-product.js","sourceRoot":"","sources":["../../../../src/schema/types/product/bundle-product.js"],"names":[],"mappings":"AAAA,eAAe;IACb,aAAa,CAAC
|
|
1
|
+
{"version":3,"file":"bundle-product.js","sourceRoot":"","sources":["../../../../src/schema/types/product/bundle-product.js"],"names":[],"mappings":"AAAA,eAAe;IACb,aAAa,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCb;CACF,CAAC"}
|
|
@@ -12,20 +12,20 @@ export default [
|
|
|
12
12
|
TEXT
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
type ProductVariationTexts {
|
|
15
|
+
type ProductVariationTexts @cacheControl(maxAge: 180) {
|
|
16
16
|
_id: ID!
|
|
17
17
|
locale: String
|
|
18
18
|
title: String
|
|
19
19
|
subtitle: String
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
type ProductVariationOption {
|
|
22
|
+
type ProductVariationOption @cacheControl(maxAge: 180) {
|
|
23
23
|
_id: ID!
|
|
24
24
|
texts(forceLocale: String): ProductVariationTexts
|
|
25
25
|
value: String
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
type ProductVariation {
|
|
28
|
+
type ProductVariation @cacheControl(maxAge: 180) {
|
|
29
29
|
_id: ID!
|
|
30
30
|
texts(forceLocale: String): ProductVariationTexts
|
|
31
31
|
type: ProductVariationType
|
|
@@ -36,7 +36,7 @@ export default [
|
|
|
36
36
|
"""
|
|
37
37
|
Key Value Combination
|
|
38
38
|
"""
|
|
39
|
-
type ProductVariationAssignmentVector {
|
|
39
|
+
type ProductVariationAssignmentVector @cacheControl(maxAge: 180) {
|
|
40
40
|
_id: ID!
|
|
41
41
|
variation: ProductVariation
|
|
42
42
|
option: ProductVariationOption
|
|
@@ -45,7 +45,7 @@ export default [
|
|
|
45
45
|
"""
|
|
46
46
|
Key Value Combination to Product Assignment
|
|
47
47
|
"""
|
|
48
|
-
type ProductVariationAssignment {
|
|
48
|
+
type ProductVariationAssignment @cacheControl(maxAge: 180) {
|
|
49
49
|
_id: ID!
|
|
50
50
|
|
|
51
51
|
"""
|
|
@@ -62,7 +62,7 @@ export default [
|
|
|
62
62
|
"""
|
|
63
63
|
Configurable Product (Proxy)
|
|
64
64
|
"""
|
|
65
|
-
type ConfigurableProduct implements Product {
|
|
65
|
+
type ConfigurableProduct implements Product @cacheControl(maxAge: 180) {
|
|
66
66
|
_id: ID!
|
|
67
67
|
sequence: Int!
|
|
68
68
|
status: ProductStatus!
|
|
@@ -97,7 +97,7 @@ export default [
|
|
|
97
97
|
includeInactive: Boolean = false
|
|
98
98
|
currency: String
|
|
99
99
|
useNetPrice: Boolean = false
|
|
100
|
-
): PriceRange
|
|
100
|
+
): PriceRange @cacheControl(scope: PRIVATE)
|
|
101
101
|
|
|
102
102
|
"""
|
|
103
103
|
Reduced list of possible products by key/value combinations
|