@unchainedshop/api 3.1.11 → 4.0.0-rc.2
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/lib/context.d.ts +2 -2
- package/lib/context.d.ts.map +1 -1
- package/lib/context.js +1 -1
- package/lib/context.js.map +1 -1
- package/lib/createGraphQLServer.d.ts +2 -2
- package/lib/createGraphQLServer.d.ts.map +1 -1
- package/lib/errors.d.ts +2 -0
- package/lib/errors.d.ts.map +1 -1
- package/lib/errors.js +2 -0
- package/lib/errors.js.map +1 -1
- package/lib/express/createERCMetadataMiddleware.d.ts.map +1 -1
- package/lib/express/createERCMetadataMiddleware.js +9 -5
- package/lib/express/createERCMetadataMiddleware.js.map +1 -1
- package/lib/express/createMCPMiddleware.d.ts +8 -0
- package/lib/express/createMCPMiddleware.d.ts.map +1 -0
- package/lib/express/createMCPMiddleware.js +46 -0
- package/lib/express/createMCPMiddleware.js.map +1 -0
- package/lib/express/index.d.ts.map +1 -1
- package/lib/express/index.js +0 -2
- package/lib/express/index.js.map +1 -1
- package/lib/express/mcpHandler.d.ts.map +1 -0
- package/lib/express/mcpHandler.js +68 -0
- package/lib/express/mcpHandler.js.map +1 -0
- package/lib/fastify/ercMetadataHandler.d.ts.map +1 -1
- package/lib/fastify/ercMetadataHandler.js +9 -5
- package/lib/fastify/ercMetadataHandler.js.map +1 -1
- package/lib/fastify/index copy.d.ts.map +1 -0
- package/lib/fastify/index copy.js +157 -0
- package/lib/fastify/index copy.js.map +1 -0
- package/lib/fastify/index.d.ts.map +1 -1
- package/lib/fastify/index.js +0 -3
- package/lib/fastify/index.js.map +1 -1
- package/lib/fastify/mcpHandler.d.ts +8 -0
- package/lib/fastify/mcpHandler.d.ts.map +1 -0
- package/lib/fastify/mcpHandler.js +46 -0
- package/lib/fastify/mcpHandler.js.map +1 -0
- package/lib/loaders/assortmentLinkLoader.d.ts +12 -0
- package/lib/loaders/assortmentLinkLoader.d.ts.map +1 -0
- package/lib/loaders/assortmentLinkLoader.js +23 -0
- package/lib/loaders/assortmentLinkLoader.js.map +1 -0
- package/lib/loaders/assortmentLinksLoader.d.ts +14 -0
- package/lib/loaders/assortmentLinksLoader.d.ts.map +1 -0
- package/lib/loaders/assortmentLinksLoader.js +38 -0
- package/lib/loaders/assortmentLinksLoader.js.map +1 -0
- package/lib/loaders/assortmentLoader.d.ts +10 -0
- package/lib/loaders/assortmentLoader.d.ts.map +1 -0
- package/lib/loaders/assortmentLoader.js +15 -0
- package/lib/loaders/assortmentLoader.js.map +1 -0
- package/lib/loaders/assortmentMediaTextLoader.d.ts +12 -0
- package/lib/loaders/assortmentMediaTextLoader.d.ts.map +1 -0
- package/lib/loaders/assortmentMediaTextLoader.js +15 -0
- package/lib/loaders/assortmentMediaTextLoader.js.map +1 -0
- package/lib/loaders/assortmentMediasLoader.d.ts +10 -0
- package/lib/loaders/assortmentMediasLoader.d.ts.map +1 -0
- package/lib/loaders/assortmentMediasLoader.js +18 -0
- package/lib/loaders/assortmentMediasLoader.js.map +1 -0
- package/lib/loaders/assortmentProductLoader.d.ts +12 -0
- package/lib/loaders/assortmentProductLoader.d.ts.map +1 -0
- package/lib/loaders/assortmentProductLoader.js +14 -0
- package/lib/loaders/assortmentProductLoader.js.map +1 -0
- package/lib/loaders/assortmentProductsLoader.d.ts +10 -0
- package/lib/loaders/assortmentProductsLoader.d.ts.map +1 -0
- package/lib/loaders/assortmentProductsLoader.js +18 -0
- package/lib/loaders/assortmentProductsLoader.js.map +1 -0
- package/lib/loaders/assortmentTextLoader.d.ts +12 -0
- package/lib/loaders/assortmentTextLoader.d.ts.map +1 -0
- package/lib/loaders/assortmentTextLoader.js +15 -0
- package/lib/loaders/assortmentTextLoader.js.map +1 -0
- package/lib/loaders/buildTextMap.d.ts +2 -2
- package/lib/loaders/buildTextMap.d.ts.map +1 -1
- package/lib/loaders/countryLoader.d.ts +10 -0
- package/lib/loaders/countryLoader.d.ts.map +1 -0
- package/lib/loaders/countryLoader.js +14 -0
- package/lib/loaders/countryLoader.js.map +1 -0
- package/lib/loaders/currencyLoader.d.ts +10 -0
- package/lib/loaders/currencyLoader.d.ts.map +1 -0
- package/lib/loaders/currencyLoader.js +14 -0
- package/lib/loaders/currencyLoader.js.map +1 -0
- package/lib/loaders/deliveryProviderLoader.d.ts +10 -0
- package/lib/loaders/deliveryProviderLoader.d.ts.map +1 -0
- package/lib/loaders/deliveryProviderLoader.js +13 -0
- package/lib/loaders/deliveryProviderLoader.js.map +1 -0
- package/lib/loaders/fileLoader.d.ts +10 -0
- package/lib/loaders/fileLoader.d.ts.map +1 -0
- package/lib/loaders/fileLoader.js +13 -0
- package/lib/loaders/fileLoader.js.map +1 -0
- package/lib/loaders/filterLoader.d.ts +10 -0
- package/lib/loaders/filterLoader.d.ts.map +1 -0
- package/lib/loaders/filterLoader.js +14 -0
- package/lib/loaders/filterLoader.js.map +1 -0
- package/lib/loaders/filterTextLoader.d.ts +14 -0
- package/lib/loaders/filterTextLoader.d.ts.map +1 -0
- package/lib/loaders/filterTextLoader.js +15 -0
- package/lib/loaders/filterTextLoader.js.map +1 -0
- package/lib/loaders/index.d.ts +79 -49
- package/lib/loaders/index.d.ts.map +1 -1
- package/lib/loaders/index.js +47 -268
- package/lib/loaders/index.js.map +1 -1
- package/lib/loaders/languageLoader.d.ts +10 -0
- package/lib/loaders/languageLoader.d.ts.map +1 -0
- package/lib/loaders/languageLoader.js +14 -0
- package/lib/loaders/languageLoader.js.map +1 -0
- package/lib/loaders/orderLoader.d.ts +10 -0
- package/lib/loaders/orderLoader.d.ts.map +1 -0
- package/lib/loaders/orderLoader.js +16 -0
- package/lib/loaders/orderLoader.js.map +1 -0
- package/lib/loaders/paymentProviderLoader.d.ts +10 -0
- package/lib/loaders/paymentProviderLoader.d.ts.map +1 -0
- package/lib/loaders/paymentProviderLoader.js +13 -0
- package/lib/loaders/paymentProviderLoader.js.map +1 -0
- package/lib/loaders/productLoader.d.ts +10 -0
- package/lib/loaders/productLoader.d.ts.map +1 -0
- package/lib/loaders/productLoader.js +16 -0
- package/lib/loaders/productLoader.js.map +1 -0
- package/lib/loaders/productLoaderBySKU.d.ts +10 -0
- package/lib/loaders/productLoaderBySKU.d.ts.map +1 -0
- package/lib/loaders/productLoaderBySKU.js +16 -0
- package/lib/loaders/productLoaderBySKU.js.map +1 -0
- package/lib/loaders/productMediaTextLoader.d.ts +12 -0
- package/lib/loaders/productMediaTextLoader.d.ts.map +1 -0
- package/lib/loaders/productMediaTextLoader.js +15 -0
- package/lib/loaders/productMediaTextLoader.js.map +1 -0
- package/lib/loaders/productMediasLoader.d.ts +10 -0
- package/lib/loaders/productMediasLoader.d.ts.map +1 -0
- package/lib/loaders/productMediasLoader.js +18 -0
- package/lib/loaders/productMediasLoader.js.map +1 -0
- package/lib/loaders/productTextLoader.d.ts +12 -0
- package/lib/loaders/productTextLoader.d.ts.map +1 -0
- package/lib/loaders/productTextLoader.js +15 -0
- package/lib/loaders/productTextLoader.js.map +1 -0
- package/lib/loaders/userLoader.d.ts +10 -0
- package/lib/loaders/userLoader.d.ts.map +1 -0
- package/lib/loaders/userLoader.js +17 -0
- package/lib/loaders/userLoader.js.map +1 -0
- package/lib/loaders/utils.d.ts +7 -0
- package/lib/loaders/utils.d.ts.map +1 -0
- package/lib/loaders/utils.js +29 -0
- package/lib/loaders/utils.js.map +1 -0
- package/lib/locale-context.d.ts +3 -3
- package/lib/locale-context.d.ts.map +1 -1
- package/lib/locale-context.js +9 -10
- package/lib/locale-context.js.map +1 -1
- package/lib/mcp/index.d.ts +95 -0
- package/lib/mcp/index.d.ts.map +1 -0
- package/lib/mcp/index.js +138 -0
- package/lib/mcp/index.js.map +1 -0
- package/lib/mcp/server.d.ts +4 -0
- package/lib/mcp/server.d.ts.map +1 -0
- package/lib/mcp/server.js +60 -0
- package/lib/mcp/server.js.map +1 -0
- package/lib/mcp/types.d.ts +28 -0
- package/lib/mcp/types.d.ts.map +1 -0
- package/lib/mcp/types.js +2 -0
- package/lib/mcp/types.js.map +1 -0
- package/lib/middleware/accountLockout.d.ts.map +1 -0
- package/lib/middleware/accountLockout.js +84 -0
- package/lib/middleware/accountLockout.js.map +1 -0
- package/lib/middleware/rateLimiter.d.ts.map +1 -0
- package/lib/middleware/rateLimiter.js +91 -0
- package/lib/middleware/rateLimiter.js.map +1 -0
- package/lib/plugins/inputValidation.d.ts.map +1 -0
- package/lib/plugins/inputValidation.js +95 -0
- package/lib/plugins/inputValidation.js.map +1 -0
- package/lib/resolvers/mutations/accounts/createUser.d.ts.map +1 -1
- package/lib/resolvers/mutations/accounts/createUser.js +4 -5
- package/lib/resolvers/mutations/accounts/createUser.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/loginAsGuest.d.ts.map +1 -1
- package/lib/resolvers/mutations/accounts/loginAsGuest.js +4 -5
- package/lib/resolvers/mutations/accounts/loginAsGuest.js.map +1 -1
- package/lib/resolvers/mutations/accounts/loginWithPassword.js +3 -3
- package/lib/resolvers/mutations/accounts/loginWithPassword.js.map +1 -1
- package/lib/resolvers/mutations/accounts/loginWithWebAuthn.js +3 -3
- package/lib/resolvers/mutations/accounts/loginWithWebAuthn.js.map +1 -1
- package/lib/resolvers/mutations/accounts/resetPassword.js +3 -3
- package/lib/resolvers/mutations/accounts/resetPassword.js.map +1 -1
- package/lib/resolvers/mutations/accounts/stopImpersonation.js +1 -1
- package/lib/resolvers/mutations/accounts/stopImpersonation.js.map +1 -1
- package/lib/resolvers/mutations/accounts/verifyEmail.js +3 -3
- package/lib/resolvers/mutations/accounts/verifyEmail.js.map +1 -1
- package/lib/resolvers/mutations/assortments/reorderAssortmentFilters.d.ts +2 -2
- package/lib/resolvers/mutations/assortments/reorderAssortmentFilters.d.ts.map +1 -1
- package/lib/resolvers/mutations/assortments/reorderAssortmentFilters.js.map +1 -1
- package/lib/resolvers/mutations/assortments/reorderAssortmentLinks.d.ts +2 -2
- package/lib/resolvers/mutations/assortments/reorderAssortmentLinks.d.ts.map +1 -1
- package/lib/resolvers/mutations/assortments/reorderAssortmentLinks.js.map +1 -1
- package/lib/resolvers/mutations/assortments/reorderAssortmentMedia.d.ts +2 -2
- package/lib/resolvers/mutations/assortments/reorderAssortmentMedia.d.ts.map +1 -1
- package/lib/resolvers/mutations/assortments/reorderAssortmentMedia.js.map +1 -1
- package/lib/resolvers/mutations/assortments/reorderAssortmentProducts.d.ts +2 -2
- package/lib/resolvers/mutations/assortments/reorderAssortmentProducts.d.ts.map +1 -1
- package/lib/resolvers/mutations/assortments/reorderAssortmentProducts.js.map +1 -1
- package/lib/resolvers/mutations/assortments/updateAssortmentMediaTexts.d.ts +1 -1
- package/lib/resolvers/mutations/assortments/updateAssortmentMediaTexts.d.ts.map +1 -1
- package/lib/resolvers/mutations/assortments/updateAssortmentMediaTexts.js.map +1 -1
- package/lib/resolvers/mutations/assortments/updateAssortmentTexts.d.ts +1 -1
- package/lib/resolvers/mutations/assortments/updateAssortmentTexts.d.ts.map +1 -1
- package/lib/resolvers/mutations/assortments/updateAssortmentTexts.js.map +1 -1
- package/lib/resolvers/mutations/enrollments/createEnrollment.js +3 -3
- package/lib/resolvers/mutations/enrollments/createEnrollment.js.map +1 -1
- package/lib/resolvers/mutations/enrollments/updateEnrollment.d.ts +2 -2
- package/lib/resolvers/mutations/enrollments/updateEnrollment.d.ts.map +1 -1
- package/lib/resolvers/mutations/filters/createFilter.d.ts.map +1 -1
- package/lib/resolvers/mutations/filters/createFilter.js +2 -6
- package/lib/resolvers/mutations/filters/createFilter.js.map +1 -1
- package/lib/resolvers/mutations/filters/updateFilterTexts.d.ts +2 -2
- package/lib/resolvers/mutations/filters/updateFilterTexts.d.ts.map +1 -1
- package/lib/resolvers/mutations/orders/addCartDiscount.js +1 -1
- package/lib/resolvers/mutations/orders/addCartDiscount.js.map +1 -1
- package/lib/resolvers/mutations/orders/addCartProduct.js +1 -1
- package/lib/resolvers/mutations/orders/addCartProduct.js.map +1 -1
- package/lib/resolvers/mutations/orders/addCartQuotation.d.ts +2 -2
- package/lib/resolvers/mutations/orders/addCartQuotation.d.ts.map +1 -1
- package/lib/resolvers/mutations/orders/addCartQuotation.js +1 -1
- package/lib/resolvers/mutations/orders/addCartQuotation.js.map +1 -1
- package/lib/resolvers/mutations/orders/addMultipleCartProducts.d.ts +4 -4
- package/lib/resolvers/mutations/orders/addMultipleCartProducts.d.ts.map +1 -1
- package/lib/resolvers/mutations/orders/addMultipleCartProducts.js +1 -1
- package/lib/resolvers/mutations/orders/addMultipleCartProducts.js.map +1 -1
- package/lib/resolvers/mutations/orders/checkoutCart.js +1 -1
- package/lib/resolvers/mutations/orders/checkoutCart.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/emptyCart.js +1 -1
- package/lib/resolvers/mutations/orders/emptyCart.js.map +1 -1
- package/lib/resolvers/mutations/orders/signPaymentProviderForCheckout.js +1 -1
- package/lib/resolvers/mutations/orders/signPaymentProviderForCheckout.js.map +1 -1
- package/lib/resolvers/mutations/orders/updateCart.js +1 -1
- package/lib/resolvers/mutations/orders/updateCart.js.map +1 -1
- package/lib/resolvers/mutations/orders/updateCartItem.d.ts +2 -2
- package/lib/resolvers/mutations/orders/updateCartItem.d.ts.map +1 -1
- package/lib/resolvers/mutations/products/addProductAssignment.d.ts +1 -1
- package/lib/resolvers/mutations/products/addProductAssignment.d.ts.map +1 -1
- package/lib/resolvers/mutations/products/addProductAssignment.js +35 -2
- package/lib/resolvers/mutations/products/addProductAssignment.js.map +1 -1
- package/lib/resolvers/mutations/products/createProductVariation.d.ts +2 -2
- package/lib/resolvers/mutations/products/createProductVariation.d.ts.map +1 -1
- package/lib/resolvers/mutations/products/createProductVariation.js.map +1 -1
- package/lib/resolvers/mutations/products/removeProductAssignment.d.ts +1 -1
- package/lib/resolvers/mutations/products/removeProductAssignment.d.ts.map +1 -1
- package/lib/resolvers/mutations/products/removeProductAssignment.js.map +1 -1
- package/lib/resolvers/mutations/products/reorderProductMedia.d.ts +2 -2
- package/lib/resolvers/mutations/products/reorderProductMedia.d.ts.map +1 -1
- package/lib/resolvers/mutations/products/reorderProductMedia.js.map +1 -1
- package/lib/resolvers/mutations/products/updateProductMediaTexts.d.ts +1 -1
- package/lib/resolvers/mutations/products/updateProductMediaTexts.d.ts.map +1 -1
- package/lib/resolvers/mutations/products/updateProductMediaTexts.js.map +1 -1
- package/lib/resolvers/mutations/products/updateProductVariationTexts.d.ts +1 -1
- package/lib/resolvers/mutations/products/updateProductVariationTexts.d.ts.map +1 -1
- package/lib/resolvers/mutations/quotations/requestQuotation.d.ts +2 -2
- package/lib/resolvers/mutations/quotations/requestQuotation.d.ts.map +1 -1
- package/lib/resolvers/mutations/quotations/requestQuotation.js +3 -3
- package/lib/resolvers/mutations/quotations/requestQuotation.js.map +1 -1
- package/lib/resolvers/mutations/users/heartbeat.d.ts +1 -1
- package/lib/resolvers/mutations/users/heartbeat.d.ts.map +1 -1
- package/lib/resolvers/mutations/users/heartbeat.js +3 -3
- package/lib/resolvers/mutations/users/heartbeat.js.map +1 -1
- package/lib/resolvers/mutations/users/setRoles.d.ts +1 -1
- package/lib/resolvers/mutations/users/setRoles.d.ts.map +1 -1
- package/lib/resolvers/mutations/users/setRoles.js.map +1 -1
- package/lib/resolvers/mutations/users/setUserTags.d.ts +1 -1
- package/lib/resolvers/mutations/users/setUserTags.d.ts.map +1 -1
- package/lib/resolvers/mutations/users/setUserTags.js.map +1 -1
- package/lib/resolvers/mutations/warehousing/invalidateToken.js +1 -3
- package/lib/resolvers/mutations/warehousing/invalidateToken.js.map +1 -1
- package/lib/resolvers/mutations/worker/allocateWork.d.ts +1 -1
- package/lib/resolvers/mutations/worker/allocateWork.d.ts.map +1 -1
- package/lib/resolvers/mutations/worker/allocateWork.js.map +1 -1
- package/lib/resolvers/queries/assortments/assortments.d.ts +1 -1
- package/lib/resolvers/queries/assortments/assortments.d.ts.map +1 -1
- package/lib/resolvers/queries/countries/countries.d.ts +1 -1
- package/lib/resolvers/queries/countries/countries.d.ts.map +1 -1
- package/lib/resolvers/queries/countries/countries.js.map +1 -1
- package/lib/resolvers/queries/currencies/currencies.d.ts +1 -1
- package/lib/resolvers/queries/currencies/currencies.d.ts.map +1 -1
- package/lib/resolvers/queries/currencies/currencies.js.map +1 -1
- package/lib/resolvers/queries/enrollments/enrollments.d.ts +1 -1
- package/lib/resolvers/queries/enrollments/enrollments.d.ts.map +1 -1
- package/lib/resolvers/queries/filters/filters.d.ts +1 -1
- package/lib/resolvers/queries/filters/filters.d.ts.map +1 -1
- package/lib/resolvers/queries/filters/searchAssortments.js +2 -2
- package/lib/resolvers/queries/filters/searchAssortments.js.map +1 -1
- package/lib/resolvers/queries/filters/searchProducts.js +3 -3
- package/lib/resolvers/queries/filters/searchProducts.js.map +1 -1
- package/lib/resolvers/queries/languages/languages.d.ts +1 -1
- package/lib/resolvers/queries/languages/languages.d.ts.map +1 -1
- package/lib/resolvers/queries/languages/languages.js.map +1 -1
- package/lib/resolvers/queries/orders/orders.d.ts +1 -1
- package/lib/resolvers/queries/orders/orders.d.ts.map +1 -1
- package/lib/resolvers/queries/orders/orders.js.map +1 -1
- package/lib/resolvers/queries/products/productReviews.d.ts +1 -1
- package/lib/resolvers/queries/products/productReviews.d.ts.map +1 -1
- package/lib/resolvers/queries/products/products.d.ts +1 -1
- package/lib/resolvers/queries/products/products.d.ts.map +1 -1
- package/lib/resolvers/queries/quotations/quotations.d.ts +1 -1
- package/lib/resolvers/queries/quotations/quotations.d.ts.map +1 -1
- package/lib/resolvers/queries/quotations/quotations.js.map +1 -1
- package/lib/resolvers/queries/users/impersonator.d.ts.map +1 -1
- package/lib/resolvers/queries/users/impersonator.js +1 -1
- package/lib/resolvers/queries/users/impersonator.js.map +1 -1
- package/lib/resolvers/queries/users/user.d.ts.map +1 -1
- package/lib/resolvers/queries/users/user.js.map +1 -1
- package/lib/resolvers/queries/users/users.d.ts +1 -1
- package/lib/resolvers/queries/users/users.d.ts.map +1 -1
- package/lib/resolvers/queries/worker/workQueue.d.ts +3 -3
- package/lib/resolvers/queries/worker/workQueue.d.ts.map +1 -1
- package/lib/resolvers/type/assortment/assortment-filter-types.d.ts +4 -8
- package/lib/resolvers/type/assortment/assortment-filter-types.d.ts.map +1 -1
- package/lib/resolvers/type/assortment/assortment-filter-types.js +4 -6
- 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.d.ts.map +1 -1
- package/lib/resolvers/type/assortment/assortment-media-types.js +2 -2
- package/lib/resolvers/type/assortment/assortment-media-types.js.map +1 -1
- package/lib/resolvers/type/assortment/assortment-path-link-types.d.ts +2 -2
- package/lib/resolvers/type/assortment/assortment-path-link-types.d.ts.map +1 -1
- package/lib/resolvers/type/assortment/assortment-path-link-types.js +2 -2
- 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.d.ts.map +1 -1
- package/lib/resolvers/type/assortment/assortment-types.d.ts +2 -2
- package/lib/resolvers/type/assortment/assortment-types.d.ts.map +1 -1
- package/lib/resolvers/type/assortment/assortment-types.js +5 -5
- package/lib/resolvers/type/assortment/assortment-types.js.map +1 -1
- package/lib/resolvers/type/bookmark-types.d.ts.map +1 -1
- package/lib/resolvers/type/bookmark-types.js +2 -3
- package/lib/resolvers/type/bookmark-types.js.map +1 -1
- package/lib/resolvers/type/country-types.d.ts +1 -1
- package/lib/resolvers/type/country-types.d.ts.map +1 -1
- package/lib/resolvers/type/country-types.js +4 -7
- package/lib/resolvers/type/country-types.js.map +1 -1
- package/lib/resolvers/type/delivery-provider-types.d.ts +10 -13
- package/lib/resolvers/type/delivery-provider-types.d.ts.map +1 -1
- package/lib/resolvers/type/delivery-provider-types.js +8 -9
- package/lib/resolvers/type/delivery-provider-types.js.map +1 -1
- package/lib/resolvers/type/enrollment/enrollment-delivery-types.d.ts +2 -6
- package/lib/resolvers/type/enrollment/enrollment-delivery-types.d.ts.map +1 -1
- package/lib/resolvers/type/enrollment/enrollment-delivery-types.js +4 -3
- package/lib/resolvers/type/enrollment/enrollment-delivery-types.js.map +1 -1
- package/lib/resolvers/type/enrollment/enrollment-payment-types.d.ts +2 -6
- package/lib/resolvers/type/enrollment/enrollment-payment-types.d.ts.map +1 -1
- package/lib/resolvers/type/enrollment/enrollment-payment-types.js +2 -3
- package/lib/resolvers/type/enrollment/enrollment-payment-types.js.map +1 -1
- package/lib/resolvers/type/enrollment/enrollment-period-types.d.ts +2 -6
- package/lib/resolvers/type/enrollment/enrollment-period-types.d.ts.map +1 -1
- package/lib/resolvers/type/enrollment/enrollment-period-types.js +2 -3
- package/lib/resolvers/type/enrollment/enrollment-period-types.js.map +1 -1
- package/lib/resolvers/type/enrollment/enrollment-plan-tyes.d.ts +2 -6
- package/lib/resolvers/type/enrollment/enrollment-plan-tyes.d.ts.map +1 -1
- package/lib/resolvers/type/enrollment/enrollment-plan-tyes.js +2 -3
- package/lib/resolvers/type/enrollment/enrollment-plan-tyes.js.map +1 -1
- package/lib/resolvers/type/enrollment/enrollment-types.d.ts +15 -14
- package/lib/resolvers/type/enrollment/enrollment-types.d.ts.map +1 -1
- package/lib/resolvers/type/enrollment/enrollment-types.js +3 -6
- package/lib/resolvers/type/enrollment/enrollment-types.js.map +1 -1
- package/lib/resolvers/type/filter/filter-option-types.d.ts +6 -9
- package/lib/resolvers/type/filter/filter-option-types.d.ts.map +1 -1
- package/lib/resolvers/type/filter/filter-option-types.js +2 -3
- package/lib/resolvers/type/filter/filter-option-types.js.map +1 -1
- package/lib/resolvers/type/filter/filter-types.d.ts +16 -8
- package/lib/resolvers/type/filter/filter-types.d.ts.map +1 -1
- package/lib/resolvers/type/filter/filter-types.js +2 -3
- package/lib/resolvers/type/filter/filter-types.js.map +1 -1
- package/lib/resolvers/type/filter/loaded-filter-types.d.ts +2 -3
- package/lib/resolvers/type/filter/loaded-filter-types.d.ts.map +1 -1
- package/lib/resolvers/type/index.d.ts +273 -261
- package/lib/resolvers/type/index.d.ts.map +1 -1
- package/lib/resolvers/type/login-method-response-types.js +1 -1
- package/lib/resolvers/type/login-method-response-types.js.map +1 -1
- package/lib/resolvers/type/order/order-delivery-discount-types.d.ts +1 -1
- package/lib/resolvers/type/order/order-delivery-discount-types.d.ts.map +1 -1
- package/lib/resolvers/type/order/order-delivery-discount-types.js +1 -2
- package/lib/resolvers/type/order/order-delivery-discount-types.js.map +1 -1
- package/lib/resolvers/type/order/order-delivery-pickup-types.d.ts +13 -12
- package/lib/resolvers/type/order/order-delivery-pickup-types.d.ts.map +1 -1
- package/lib/resolvers/type/order/order-delivery-pickup-types.js +10 -14
- package/lib/resolvers/type/order/order-delivery-pickup-types.js.map +1 -1
- package/lib/resolvers/type/order/order-delivery-shipping-types.d.ts +12 -12
- package/lib/resolvers/type/order/order-delivery-shipping-types.d.ts.map +1 -1
- package/lib/resolvers/type/order/order-delivery-shipping-types.js +7 -10
- package/lib/resolvers/type/order/order-delivery-shipping-types.js.map +1 -1
- package/lib/resolvers/type/order/order-delivery-types.d.ts +1 -1
- package/lib/resolvers/type/order/order-delivery-types.d.ts.map +1 -1
- package/lib/resolvers/type/order/order-delivery-types.js +2 -3
- package/lib/resolvers/type/order/order-delivery-types.js.map +1 -1
- package/lib/resolvers/type/order/order-discount-types.d.ts +11 -13
- package/lib/resolvers/type/order/order-discount-types.d.ts.map +1 -1
- package/lib/resolvers/type/order/order-discount-types.js +9 -16
- package/lib/resolvers/type/order/order-discount-types.js.map +1 -1
- package/lib/resolvers/type/order/order-global-discount-types.d.ts +1 -1
- package/lib/resolvers/type/order/order-global-discount-types.d.ts.map +1 -1
- package/lib/resolvers/type/order/order-global-discount-types.js +1 -2
- package/lib/resolvers/type/order/order-global-discount-types.js.map +1 -1
- package/lib/resolvers/type/order/order-item-discount-types.d.ts +1 -1
- package/lib/resolvers/type/order/order-item-discount-types.d.ts.map +1 -1
- package/lib/resolvers/type/order/order-item-discount-types.js +1 -2
- package/lib/resolvers/type/order/order-item-discount-types.js.map +1 -1
- package/lib/resolvers/type/order/order-item-types.d.ts +5 -5
- package/lib/resolvers/type/order/order-item-types.d.ts.map +1 -1
- package/lib/resolvers/type/order/order-item-types.js +14 -17
- package/lib/resolvers/type/order/order-item-types.js.map +1 -1
- package/lib/resolvers/type/order/order-payment-card-types.d.ts +11 -10
- package/lib/resolvers/type/order/order-payment-card-types.d.ts.map +1 -1
- package/lib/resolvers/type/order/order-payment-card-types.js +6 -9
- package/lib/resolvers/type/order/order-payment-card-types.js.map +1 -1
- package/lib/resolvers/type/order/order-payment-discount-types.d.ts +1 -1
- package/lib/resolvers/type/order/order-payment-discount-types.d.ts.map +1 -1
- package/lib/resolvers/type/order/order-payment-discount-types.js +2 -4
- package/lib/resolvers/type/order/order-payment-discount-types.js.map +1 -1
- package/lib/resolvers/type/order/order-payment-generic-types.d.ts +11 -10
- package/lib/resolvers/type/order/order-payment-generic-types.d.ts.map +1 -1
- package/lib/resolvers/type/order/order-payment-generic-types.js +6 -9
- package/lib/resolvers/type/order/order-payment-generic-types.js.map +1 -1
- package/lib/resolvers/type/order/order-payment-invoice-types.d.ts +11 -10
- package/lib/resolvers/type/order/order-payment-invoice-types.d.ts.map +1 -1
- package/lib/resolvers/type/order/order-payment-invoice-types.js +6 -9
- package/lib/resolvers/type/order/order-payment-invoice-types.js.map +1 -1
- package/lib/resolvers/type/order/order-payment-types.d.ts +1 -1
- package/lib/resolvers/type/order/order-payment-types.d.ts.map +1 -1
- package/lib/resolvers/type/order/order-payment-types.js +2 -3
- package/lib/resolvers/type/order/order-payment-types.js.map +1 -1
- package/lib/resolvers/type/order/order-types.d.ts +6 -6
- package/lib/resolvers/type/order/order-types.d.ts.map +1 -1
- package/lib/resolvers/type/order/order-types.js +7 -15
- package/lib/resolvers/type/order/order-types.js.map +1 -1
- package/lib/resolvers/type/payment/payment-credentials-types.d.ts.map +1 -1
- package/lib/resolvers/type/payment/payment-credentials-types.js +6 -9
- package/lib/resolvers/type/payment/payment-credentials-types.js.map +1 -1
- package/lib/resolvers/type/payment/payment-provider-types.d.ts +2 -2
- package/lib/resolvers/type/payment/payment-provider-types.d.ts.map +1 -1
- package/lib/resolvers/type/payment/payment-provider-types.js +8 -9
- package/lib/resolvers/type/payment/payment-provider-types.js.map +1 -1
- package/lib/resolvers/type/price-types.d.ts +3 -4
- package/lib/resolvers/type/price-types.d.ts.map +1 -1
- package/lib/resolvers/type/price-types.js +2 -2
- package/lib/resolvers/type/price-types.js.map +1 -1
- package/lib/resolvers/type/product/product-assortment-path-types.d.ts +1 -1
- package/lib/resolvers/type/product/product-assortment-path-types.d.ts.map +1 -1
- package/lib/resolvers/type/product/product-bundle-types.d.ts +10 -10
- package/lib/resolvers/type/product/product-bundle-types.d.ts.map +1 -1
- package/lib/resolvers/type/product/product-catalog-price-types.d.ts.map +1 -1
- package/lib/resolvers/type/product/product-catalog-price-types.js +4 -6
- package/lib/resolvers/type/product/product-catalog-price-types.js.map +1 -1
- package/lib/resolvers/type/product/product-configurable-types.d.ts +20 -20
- package/lib/resolvers/type/product/product-configurable-types.d.ts.map +1 -1
- package/lib/resolvers/type/product/product-configurable-types.js +10 -12
- 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-discount.js +1 -1
- package/lib/resolvers/type/product/product-discount.js.map +1 -1
- package/lib/resolvers/type/product/product-media-types.js +2 -2
- package/lib/resolvers/type/product/product-media-types.js.map +1 -1
- package/lib/resolvers/type/product/product-plan-types.d.ts +18 -18
- package/lib/resolvers/type/product/product-plan-types.d.ts.map +1 -1
- package/lib/resolvers/type/product/product-plan-types.js +16 -16
- 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.d.ts.map +1 -1
- package/lib/resolvers/type/product/product-review-types.js +2 -3
- package/lib/resolvers/type/product/product-review-types.js.map +1 -1
- package/lib/resolvers/type/product/product-simple-types.d.ts +22 -22
- package/lib/resolvers/type/product/product-simple-types.d.ts.map +1 -1
- package/lib/resolvers/type/product/product-simple-types.js +3 -11
- package/lib/resolvers/type/product/product-simple-types.js.map +1 -1
- package/lib/resolvers/type/product/product-tokenized-types.d.ts +20 -20
- package/lib/resolvers/type/product/product-tokenized-types.d.ts.map +1 -1
- package/lib/resolvers/type/product/product-tokenized-types.js +1 -5
- package/lib/resolvers/type/product/product-tokenized-types.js.map +1 -1
- package/lib/resolvers/type/product/product-types.d.ts +9 -9
- package/lib/resolvers/type/product/product-types.d.ts.map +1 -1
- package/lib/resolvers/type/product/product-types.js +2 -5
- package/lib/resolvers/type/product/product-types.js.map +1 -1
- package/lib/resolvers/type/product/product-variation-assignment-types.d.ts +2 -2
- package/lib/resolvers/type/product/product-variation-assignment-types.d.ts.map +1 -1
- package/lib/resolvers/type/product/product-variation-assignment-types.js +1 -1
- package/lib/resolvers/type/product/product-variation-assignment-types.js.map +1 -1
- package/lib/resolvers/type/product/product-variation-assignment-vector.js +2 -2
- package/lib/resolvers/type/product/product-variation-assignment-vector.js.map +1 -1
- package/lib/resolvers/type/product/product-variation-option-types.js +3 -3
- package/lib/resolvers/type/product/product-variation-option-types.js.map +1 -1
- package/lib/resolvers/type/product/product-variation-types.d.ts +2 -2
- package/lib/resolvers/type/product/product-variation-types.d.ts.map +1 -1
- package/lib/resolvers/type/product/product-variation-types.js +3 -3
- package/lib/resolvers/type/product/product-variation-types.js.map +1 -1
- package/lib/resolvers/type/product-search-result-types.d.ts +5 -6
- package/lib/resolvers/type/product-search-result-types.d.ts.map +1 -1
- package/lib/resolvers/type/quotation-types.d.ts +8 -15
- package/lib/resolvers/type/quotation-types.d.ts.map +1 -1
- package/lib/resolvers/type/quotation-types.js +3 -6
- package/lib/resolvers/type/quotation-types.js.map +1 -1
- package/lib/resolvers/type/shop-types.d.ts +1 -1
- package/lib/resolvers/type/shop-types.d.ts.map +1 -1
- package/lib/resolvers/type/shop-types.js +4 -6
- package/lib/resolvers/type/shop-types.js.map +1 -1
- package/lib/resolvers/type/token-types.d.ts +2 -2
- package/lib/resolvers/type/token-types.d.ts.map +1 -1
- package/lib/resolvers/type/token-types.js +12 -26
- package/lib/resolvers/type/token-types.js.map +1 -1
- package/lib/resolvers/type/user-types.d.ts +22 -22
- package/lib/resolvers/type/user-types.d.ts.map +1 -1
- package/lib/resolvers/type/user-types.js +5 -16
- package/lib/resolvers/type/user-types.js.map +1 -1
- package/lib/resolvers/type/work-types.d.ts.map +1 -1
- package/lib/resolvers/type/work-types.js +0 -1
- package/lib/resolvers/type/work-types.js.map +1 -1
- package/lib/roles/all.d.ts.map +1 -1
- package/lib/roles/all.js +0 -1
- package/lib/roles/all.js.map +1 -1
- package/lib/schema/types/assortment.js +5 -5
- package/lib/schema/types/country.js +1 -1
- package/lib/schema/types/delivery.d.ts.map +1 -1
- package/lib/schema/types/delivery.js +6 -2
- package/lib/schema/types/delivery.js.map +1 -1
- package/lib/schema/types/filter.js +3 -3
- package/lib/schema/types/payment.d.ts.map +1 -1
- package/lib/schema/types/payment.js +6 -2
- package/lib/schema/types/payment.js.map +1 -1
- package/lib/schema/types/price.js +1 -1
- package/lib/schema/types/product/bundle-product.js +1 -1
- package/lib/schema/types/product/configurable-product.js +6 -6
- package/lib/schema/types/product/plan-product.js +5 -5
- package/lib/schema/types/product/product.js +4 -4
- package/lib/schema/types/product/simple-product.js +4 -4
- package/lib/schema/types/product/tokenized-product.js +5 -5
- package/lib/schema/types/warehousing.js +1 -1
- package/lib/utils/inputValidation.d.ts.map +1 -0
- package/lib/utils/inputValidation.js +51 -0
- package/lib/utils/inputValidation.js.map +1 -0
- package/package.json +12 -12
- package/src/context.ts +3 -3
- package/src/createGraphQLServer.ts +2 -2
- package/src/errors.ts +10 -0
- package/src/express/createERCMetadataMiddleware.ts +11 -5
- package/src/express/index.ts +2 -3
- package/src/fastify/ercMetadataHandler.ts +11 -5
- package/src/fastify/index.ts +2 -3
- package/src/loaders/assortmentLinkLoader.ts +32 -0
- package/src/loaders/assortmentLinksLoader.ts +46 -0
- package/src/loaders/assortmentLoader.ts +20 -0
- package/src/loaders/assortmentMediaTextLoader.ts +26 -0
- package/src/loaders/assortmentMediasLoader.ts +21 -0
- package/src/loaders/assortmentProductLoader.ts +19 -0
- package/src/loaders/assortmentProductsLoader.ts +22 -0
- package/src/loaders/assortmentTextLoader.ts +24 -0
- package/src/loaders/buildTextMap.ts +1 -1
- package/src/loaders/countryLoader.ts +20 -0
- package/src/loaders/currencyLoader.ts +20 -0
- package/src/loaders/deliveryProviderLoader.ts +19 -0
- package/src/loaders/fileLoader.ts +19 -0
- package/src/loaders/filterLoader.ts +20 -0
- package/src/loaders/filterTextLoader.ts +26 -0
- package/src/loaders/index.ts +48 -360
- package/src/loaders/languageLoader.ts +20 -0
- package/src/loaders/orderLoader.ts +22 -0
- package/src/loaders/paymentProviderLoader.ts +19 -0
- package/src/loaders/productLoader.ts +22 -0
- package/src/loaders/productLoaderBySKU.ts +22 -0
- package/src/loaders/productMediaTextLoader.ts +24 -0
- package/src/loaders/productMediasLoader.ts +21 -0
- package/src/loaders/productTextLoader.ts +22 -0
- package/src/loaders/userLoader.ts +23 -0
- package/src/loaders/utils.ts +35 -0
- package/src/locale-context.ts +16 -22
- package/src/resolvers/mutations/accounts/createUser.ts +4 -6
- package/src/resolvers/mutations/accounts/impersonate.ts +1 -1
- package/src/resolvers/mutations/accounts/loginAsGuest.ts +4 -6
- package/src/resolvers/mutations/accounts/loginWithPassword.ts +3 -3
- package/src/resolvers/mutations/accounts/loginWithWebAuthn.ts +3 -3
- package/src/resolvers/mutations/accounts/resetPassword.ts +3 -3
- package/src/resolvers/mutations/accounts/stopImpersonation.ts +1 -1
- package/src/resolvers/mutations/accounts/verifyEmail.ts +3 -3
- package/src/resolvers/mutations/assortments/reorderAssortmentFilters.ts +1 -1
- package/src/resolvers/mutations/assortments/reorderAssortmentLinks.ts +1 -1
- package/src/resolvers/mutations/assortments/reorderAssortmentMedia.ts +1 -1
- package/src/resolvers/mutations/assortments/reorderAssortmentProducts.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/enrollments/createEnrollment.ts +3 -3
- package/src/resolvers/mutations/enrollments/updateEnrollment.ts +2 -2
- package/src/resolvers/mutations/filters/createFilter.ts +2 -6
- package/src/resolvers/mutations/filters/updateFilterTexts.ts +1 -1
- package/src/resolvers/mutations/orders/addCartDiscount.ts +1 -1
- package/src/resolvers/mutations/orders/addCartProduct.ts +1 -1
- package/src/resolvers/mutations/orders/addCartQuotation.ts +2 -2
- package/src/resolvers/mutations/orders/addMultipleCartProducts.ts +4 -4
- package/src/resolvers/mutations/orders/checkoutCart.ts +1 -1
- package/src/resolvers/mutations/orders/createCart.ts +1 -1
- package/src/resolvers/mutations/orders/emptyCart.ts +1 -1
- package/src/resolvers/mutations/orders/signPaymentProviderForCheckout.ts +1 -1
- package/src/resolvers/mutations/orders/updateCart.ts +1 -1
- package/src/resolvers/mutations/orders/updateCartItem.ts +1 -1
- package/src/resolvers/mutations/products/addProductAssignment.ts +50 -3
- package/src/resolvers/mutations/products/createProductVariation.ts +5 -1
- package/src/resolvers/mutations/products/removeProductAssignment.ts +1 -1
- package/src/resolvers/mutations/products/reorderProductMedia.ts +1 -1
- package/src/resolvers/mutations/products/updateProductMediaTexts.ts +1 -1
- package/src/resolvers/mutations/products/updateProductVariationTexts.ts +1 -1
- package/src/resolvers/mutations/quotations/requestQuotation.ts +4 -4
- package/src/resolvers/mutations/users/heartbeat.ts +3 -3
- package/src/resolvers/mutations/users/setRoles.ts +1 -1
- package/src/resolvers/mutations/users/setUserTags.ts +1 -1
- package/src/resolvers/mutations/warehousing/invalidateToken.ts +3 -3
- package/src/resolvers/mutations/worker/allocateWork.ts +1 -1
- package/src/resolvers/queries/assortments/assortments.ts +1 -1
- package/src/resolvers/queries/countries/countries.ts +1 -1
- package/src/resolvers/queries/currencies/currencies.ts +1 -1
- package/src/resolvers/queries/enrollments/enrollments.ts +1 -1
- package/src/resolvers/queries/filters/filters.ts +1 -1
- package/src/resolvers/queries/filters/searchAssortments.ts +2 -2
- package/src/resolvers/queries/filters/searchProducts.ts +3 -3
- package/src/resolvers/queries/languages/languages.ts +1 -1
- package/src/resolvers/queries/orders/orders.ts +1 -1
- package/src/resolvers/queries/products/productReviews.ts +1 -1
- package/src/resolvers/queries/products/products.ts +1 -1
- package/src/resolvers/queries/quotations/quotations.ts +1 -1
- package/src/resolvers/queries/users/impersonator.ts +2 -1
- package/src/resolvers/queries/users/user.ts +1 -0
- package/src/resolvers/queries/users/users.ts +1 -1
- package/src/resolvers/queries/worker/workQueue.ts +3 -3
- package/src/resolvers/type/assortment/assortment-filter-types.ts +6 -16
- package/src/resolvers/type/assortment/assortment-link-types.ts +2 -2
- package/src/resolvers/type/assortment/assortment-media-types.ts +2 -2
- package/src/resolvers/type/assortment/assortment-path-link-types.ts +3 -3
- package/src/resolvers/type/assortment/assortment-product-types.ts +2 -2
- package/src/resolvers/type/assortment/assortment-types.ts +6 -6
- package/src/resolvers/type/bookmark-types.ts +2 -3
- package/src/resolvers/type/country-types.ts +5 -8
- package/src/resolvers/type/delivery-provider-types.ts +26 -47
- package/src/resolvers/type/enrollment/enrollment-delivery-types.ts +5 -11
- package/src/resolvers/type/enrollment/enrollment-payment-types.ts +3 -11
- package/src/resolvers/type/enrollment/enrollment-period-types.ts +3 -11
- package/src/resolvers/type/enrollment/enrollment-plan-tyes.ts +3 -11
- package/src/resolvers/type/enrollment/enrollment-types.ts +10 -25
- package/src/resolvers/type/filter/filter-option-types.ts +10 -15
- package/src/resolvers/type/filter/filter-types.ts +5 -13
- package/src/resolvers/type/filter/loaded-filter-types.ts +2 -2
- package/src/resolvers/type/login-method-response-types.ts +1 -1
- package/src/resolvers/type/order/order-delivery-discount-types.ts +1 -2
- package/src/resolvers/type/order/order-delivery-pickup-types.ts +12 -28
- package/src/resolvers/type/order/order-delivery-shipping-types.ts +9 -23
- package/src/resolvers/type/order/order-delivery-types.ts +2 -3
- package/src/resolvers/type/order/order-discount-types.ts +12 -39
- package/src/resolvers/type/order/order-global-discount-types.ts +1 -2
- package/src/resolvers/type/order/order-item-discount-types.ts +1 -2
- package/src/resolvers/type/order/order-item-types.ts +19 -27
- package/src/resolvers/type/order/order-payment-card-types.ts +8 -21
- package/src/resolvers/type/order/order-payment-discount-types.ts +1 -2
- package/src/resolvers/type/order/order-payment-generic-types.ts +8 -20
- package/src/resolvers/type/order/order-payment-invoice-types.ts +8 -20
- package/src/resolvers/type/order/order-payment-types.ts +2 -3
- package/src/resolvers/type/order/order-types.ts +10 -22
- package/src/resolvers/type/payment/payment-credentials-types.ts +6 -10
- package/src/resolvers/type/payment/payment-provider-types.ts +9 -10
- package/src/resolvers/type/price-types.ts +4 -4
- package/src/resolvers/type/product/product-assortment-path-types.ts +1 -1
- package/src/resolvers/type/product/product-bundle-types.ts +1 -1
- package/src/resolvers/type/product/product-catalog-price-types.ts +4 -6
- package/src/resolvers/type/product/product-configurable-types.ts +20 -21
- package/src/resolvers/type/product/product-discount.ts +1 -1
- package/src/resolvers/type/product/product-media-types.ts +2 -2
- package/src/resolvers/type/product/product-plan-types.ts +22 -22
- package/src/resolvers/type/product/product-review-types.ts +3 -4
- package/src/resolvers/type/product/product-simple-types.ts +7 -19
- package/src/resolvers/type/product/product-tokenized-types.ts +3 -10
- package/src/resolvers/type/product/product-types.ts +10 -13
- package/src/resolvers/type/product/product-variation-assignment-types.ts +2 -2
- package/src/resolvers/type/product/product-variation-assignment-vector.ts +2 -2
- package/src/resolvers/type/product/product-variation-option-types.ts +3 -3
- package/src/resolvers/type/product/product-variation-types.ts +5 -5
- package/src/resolvers/type/product-search-result-types.ts +5 -5
- package/src/resolvers/type/quotation-types.ts +11 -25
- package/src/resolvers/type/shop-types.ts +5 -7
- package/src/resolvers/type/token-types.ts +15 -32
- package/src/resolvers/type/user-types.ts +27 -39
- package/src/resolvers/type/work-types.ts +0 -2
- package/src/roles/all.ts +0 -1
- package/src/schema/types/assortment.ts +5 -5
- package/src/schema/types/country.ts +1 -1
- package/src/schema/types/delivery.ts +6 -2
- package/src/schema/types/filter.ts +3 -3
- package/src/schema/types/payment.ts +6 -2
- package/src/schema/types/price.ts +1 -1
- package/src/schema/types/product/bundle-product.ts +1 -1
- package/src/schema/types/product/configurable-product.ts +6 -6
- package/src/schema/types/product/plan-product.ts +5 -5
- package/src/schema/types/product/product.ts +4 -4
- package/src/schema/types/product/simple-product.ts +4 -4
- package/src/schema/types/product/tokenized-product.ts +5 -5
- package/src/schema/types/warehousing.ts +1 -1
|
@@ -3,25 +3,17 @@ export const SimpleProduct = {
|
|
|
3
3
|
...PlanProduct,
|
|
4
4
|
async simulatedDispatches(obj, params, requestContext) {
|
|
5
5
|
const { referenceDate, quantity } = params;
|
|
6
|
-
const { services
|
|
7
|
-
// TODO: use loader?
|
|
8
|
-
const deliveryProviders = await modules.delivery.findProviders({});
|
|
6
|
+
const { services } = requestContext;
|
|
9
7
|
return services.products.simulateProductDispatching({
|
|
10
|
-
deliveryProviders,
|
|
11
8
|
product: obj,
|
|
12
9
|
quantity,
|
|
13
10
|
referenceDate,
|
|
14
11
|
});
|
|
15
12
|
},
|
|
16
13
|
async simulatedStocks(obj, params, requestContext) {
|
|
17
|
-
const {
|
|
18
|
-
const { referenceDate
|
|
19
|
-
// TODO: use loader?
|
|
20
|
-
const deliveryProviders = await modules.delivery.findProviders({
|
|
21
|
-
type: deliveryProviderType,
|
|
22
|
-
});
|
|
14
|
+
const { services } = requestContext;
|
|
15
|
+
const { referenceDate } = params;
|
|
23
16
|
return services.products.simulateProductInventory({
|
|
24
|
-
deliveryProviders,
|
|
25
17
|
product: obj,
|
|
26
18
|
referenceDate,
|
|
27
19
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product-simple-types.js","sourceRoot":"","sources":["../../../../src/resolvers/type/product/product-simple-types.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAGtD,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,GAAG,WAAW;IAEd,KAAK,CAAC,mBAAmB,CACvB,GAAY,EACZ,MAA6F,EAC7F,cAAuB;QASvB,MAAM,EAAE,aAAa,EAAE,QAAQ,EAAE,GAAG,MAAM,CAAC;QAC3C,MAAM,EAAE,QAAQ,EAAE,
|
|
1
|
+
{"version":3,"file":"product-simple-types.js","sourceRoot":"","sources":["../../../../src/resolvers/type/product/product-simple-types.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAGtD,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,GAAG,WAAW;IAEd,KAAK,CAAC,mBAAmB,CACvB,GAAY,EACZ,MAA6F,EAC7F,cAAuB;QASvB,MAAM,EAAE,aAAa,EAAE,QAAQ,EAAE,GAAG,MAAM,CAAC;QAC3C,MAAM,EAAE,QAAQ,EAAE,GAAG,cAAc,CAAC;QACpC,OAAO,QAAQ,CAAC,QAAQ,CAAC,0BAA0B,CAAC;YAClD,OAAO,EAAE,GAAG;YACZ,QAAQ;YACR,aAAa;SACd,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,eAAe,CACnB,GAAY,EACZ,MAGC,EACD,cAAuB;QAQvB,MAAM,EAAE,QAAQ,EAAE,GAAG,cAAc,CAAC;QACpC,MAAM,EAAE,aAAa,EAAE,GAAG,MAAM,CAAC;QACjC,OAAO,QAAQ,CAAC,QAAQ,CAAC,wBAAwB,CAAC;YAChD,OAAO,EAAE,GAAG;YACZ,aAAa;SACd,CAAC,CAAC;IACL,CAAC;IAED,QAAQ,CAAC,EAAE,WAAW,EAAE;QACtB,OAAO,WAAW,EAAE,QAAQ,CAAC;IAC/B,CAAC;IAED,GAAG,CAAC,EAAE,WAAW,EAAE;QACjB,OAAO,WAAW,EAAE,GAAG,CAAC;IAC1B,CAAC;IAED,UAAU,CAAC,EAAE,MAAM,EAAE;QACnB,IAAI,CAAC,MAAM;YAAE,OAAO,IAAI,CAAC;QACzB,MAAM,EAAE,YAAY,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,GAAG,MAAM,CAAC;QAC9F,OAAO;YACL,YAAY;YACZ,mBAAmB;YACnB,mBAAmB;YACnB,kBAAkB;SACnB,CAAC;IACJ,CAAC;CACF,CAAC"}
|
|
@@ -8,49 +8,49 @@ export declare const TokenizedProduct: {
|
|
|
8
8
|
contractStandard({ tokenization }: Product): ProductContractStandard;
|
|
9
9
|
simulatedStocks(obj: Product, params: {
|
|
10
10
|
referenceDate: Date;
|
|
11
|
-
}, requestContext: Context): Promise<
|
|
11
|
+
}, requestContext: Context): Promise<{
|
|
12
12
|
deliveryProvider?: DeliveryProvider;
|
|
13
13
|
warehousingProvider?: WarehousingProvider;
|
|
14
14
|
quantity?: number;
|
|
15
|
-
}
|
|
15
|
+
}[]>;
|
|
16
16
|
tokens(product: Product, params: never, requestContext: Context): Promise<import("@unchainedshop/core-warehousing").TokenSurrogate[]>;
|
|
17
|
-
catalogPrice(product: Product, { quantity,
|
|
17
|
+
catalogPrice(product: Product, { quantity, currencyCode: forcedCurrencyCode }: {
|
|
18
18
|
quantity?: number;
|
|
19
|
-
|
|
19
|
+
currencyCode?: string;
|
|
20
20
|
}, requestContext: Context): Promise<import("@unchainedshop/core-products").ProductPrice>;
|
|
21
|
-
simulatedPrice(
|
|
21
|
+
simulatedPrice(product: Product, { currencyCode: forcedCurrencyCode, quantity, useNetPrice, configuration, }: {
|
|
22
22
|
quantity?: number;
|
|
23
|
-
|
|
23
|
+
currencyCode?: string;
|
|
24
24
|
useNetPrice?: boolean;
|
|
25
|
-
configuration?:
|
|
25
|
+
configuration?: import("@unchainedshop/core-products").ProductConfiguration[];
|
|
26
26
|
}, requestContext: Context): Promise<import("@unchainedshop/core-products").ProductPrice>;
|
|
27
|
-
leveledCatalogPrices(
|
|
28
|
-
|
|
29
|
-
}, requestContext: Context): Promise<
|
|
27
|
+
leveledCatalogPrices(product: Product, { currencyCode: forcedCurrencyCode }: {
|
|
28
|
+
currencyCode?: string;
|
|
29
|
+
}, requestContext: Context): Promise<{
|
|
30
30
|
minQuantity: number;
|
|
31
31
|
maxQuantity: number;
|
|
32
32
|
price: import("@unchainedshop/core-products").ProductPrice;
|
|
33
|
-
}
|
|
33
|
+
}[]>;
|
|
34
34
|
salesUnit({ commerce }: Product): string;
|
|
35
35
|
salesQuantityPerUnit({ commerce }: Product): string;
|
|
36
36
|
defaultOrderQuantity({ commerce }: Product): number;
|
|
37
37
|
__resolveType: (product: Product) => string;
|
|
38
38
|
assortmentPaths(product: Product, params: {
|
|
39
39
|
forceLocale?: string;
|
|
40
|
-
}, { modules, loaders }: Context): Promise<
|
|
41
|
-
links:
|
|
42
|
-
}
|
|
40
|
+
}, { modules, loaders }: Context): Promise<{
|
|
41
|
+
links: import("@unchainedshop/core-assortments").AssortmentPathLink[];
|
|
42
|
+
}[]>;
|
|
43
43
|
media(product: Product, params: {
|
|
44
44
|
limit: number;
|
|
45
45
|
offset: number;
|
|
46
|
-
tags?:
|
|
47
|
-
}, { loaders, modules }: Context): Promise<
|
|
46
|
+
tags?: string[];
|
|
47
|
+
}, { loaders, modules }: Context): Promise<import("@unchainedshop/core-products").ProductMedia[]>;
|
|
48
48
|
reviews(product: Product, { limit, offset, sort, queryString, }: {
|
|
49
49
|
queryString?: string;
|
|
50
50
|
limit?: number;
|
|
51
51
|
offset?: number;
|
|
52
|
-
sort?:
|
|
53
|
-
}, { modules }: Context): Promise<
|
|
52
|
+
sort?: import("@unchainedshop/utils").SortOption[];
|
|
53
|
+
}, { modules }: Context): Promise<import("@unchainedshop/core-products").ProductReview[]>;
|
|
54
54
|
reviewsCount(product: Product, params: {
|
|
55
55
|
queryString?: string;
|
|
56
56
|
}, { modules }: Context): Promise<number>;
|
|
@@ -59,10 +59,10 @@ export declare const TokenizedProduct: {
|
|
|
59
59
|
limit: number;
|
|
60
60
|
offset: number;
|
|
61
61
|
includeInactive: boolean;
|
|
62
|
-
}, { modules }: Context): Promise<
|
|
62
|
+
}, { modules }: Context): Promise<(typeof product)[]>;
|
|
63
63
|
status(product: Product, _: any, { modules }: Context): import("@unchainedshop/core-products").ProductStatus;
|
|
64
64
|
texts(product: Product, { forceLocale, }: {
|
|
65
65
|
forceLocale?: string;
|
|
66
|
-
},
|
|
66
|
+
}, { locale, loaders }: Context): Promise<import("@unchainedshop/core-products").ProductText>;
|
|
67
67
|
};
|
|
68
68
|
//# sourceMappingURL=product-tokenized-types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product-tokenized-types.d.ts","sourceRoot":"","sources":["../../../../src/resolvers/type/product/product-tokenized-types.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,EACP,4BAA4B,EAC5B,uBAAuB,EACxB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AACtE,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAEhE,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAK9C,eAAO,MAAM,gBAAgB;sCAGO,OAAO,GAAG,MAAM;4CAIV,OAAO,GAAG,4BAA4B;uCAS3C,OAAO,GAAG,uBAAuB;yBAK7D,OAAO,UACJ;QACN,aAAa,EAAE,IAAI,CAAC;KACrB,kBACe,OAAO,GACtB,OAAO,CACR
|
|
1
|
+
{"version":3,"file":"product-tokenized-types.d.ts","sourceRoot":"","sources":["../../../../src/resolvers/type/product/product-tokenized-types.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,EACP,4BAA4B,EAC5B,uBAAuB,EACxB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AACtE,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAEhE,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAK9C,eAAO,MAAM,gBAAgB;sCAGO,OAAO,GAAG,MAAM;4CAIV,OAAO,GAAG,4BAA4B;uCAS3C,OAAO,GAAG,uBAAuB;yBAK7D,OAAO,UACJ;QACN,aAAa,EAAE,IAAI,CAAC;KACrB,kBACe,OAAO,GACtB,OAAO,CACR;QACE,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;QACpC,mBAAmB,CAAC,EAAE,mBAAmB,CAAC;QAC1C,QAAQ,CAAC,EAAE,MAAM,CAAC;KACnB,EAAE,CACJ;oBASqB,OAAO,UAAU,KAAK,kBAAkB,OAAO;;gBA5ClE,CAAC;oBAAsB,CAAC;;;gBAgBzB,CAAH;oBAGe,CAAC;mBAA2B,CAAC;qBACzC,CAAD;;;oBAiCQ,CAAC;;;;;;;;;;;mBAvCN,CAAL;;;;;;;YAyBK,CAAC;;;mBAiBuE,CAAC;aAAqB,CAAC;cAAsB,CAAC;YAAoB,CAAC;;;mBAA8T,CAAC;;;oBAAuP,CAAC;;;;;;;mBAAu6B,CAAC;;CAL/mD,CAAC"}
|
|
@@ -19,19 +19,15 @@ export const TokenizedProduct = {
|
|
|
19
19
|
return tokenization?.contractStandard;
|
|
20
20
|
},
|
|
21
21
|
async simulatedStocks(obj, params, requestContext) {
|
|
22
|
-
const {
|
|
22
|
+
const { services } = requestContext;
|
|
23
23
|
const { referenceDate } = params;
|
|
24
|
-
// TODO: use loader?
|
|
25
|
-
const deliveryProviders = await modules.delivery.findProviders({});
|
|
26
24
|
return services.products.simulateProductInventory({
|
|
27
|
-
deliveryProviders,
|
|
28
25
|
product: obj,
|
|
29
26
|
referenceDate,
|
|
30
27
|
});
|
|
31
28
|
},
|
|
32
29
|
async tokens(product, params, requestContext) {
|
|
33
30
|
await checkAction(requestContext, actions.viewTokens, [undefined, params]);
|
|
34
|
-
// TODO: use loader?
|
|
35
31
|
const tokens = await requestContext.modules.warehousing.findTokens({
|
|
36
32
|
productId: product._id,
|
|
37
33
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product-tokenized-types.js","sourceRoot":"","sources":["../../../../src/resolvers/type/product/product-tokenized-types.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAElD,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,GAAG,WAAW;IAEd,eAAe,CAAC,EAAE,YAAY,EAAW;QACvC,OAAO,YAAY,EAAE,eAAe,CAAC;IACvC,CAAC;IAED,qBAAqB,CAAC,EAAE,YAAY,EAAW;QAC7C,IAAI,CAAC,YAAY;YAAE,OAAO,IAAI,CAAC;QAC/B,OAAO;YACL,MAAM,EAAE,YAAY,CAAC,MAAM;YAC3B,OAAO,EAAE,YAAY,CAAC,OAAO;YAC7B,qBAAqB,EAAE,YAAY,CAAC,qBAAqB;SAC1D,CAAC;IACJ,CAAC;IAED,gBAAgB,CAAC,EAAE,YAAY,EAAW;QACxC,OAAO,YAAY,EAAE,gBAAgB,CAAC;IACxC,CAAC;IAED,KAAK,CAAC,eAAe,CACnB,GAAY,EACZ,MAEC,EACD,cAAuB;QAQvB,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"product-tokenized-types.js","sourceRoot":"","sources":["../../../../src/resolvers/type/product/product-tokenized-types.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAElD,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,GAAG,WAAW;IAEd,eAAe,CAAC,EAAE,YAAY,EAAW;QACvC,OAAO,YAAY,EAAE,eAAe,CAAC;IACvC,CAAC;IAED,qBAAqB,CAAC,EAAE,YAAY,EAAW;QAC7C,IAAI,CAAC,YAAY;YAAE,OAAO,IAAI,CAAC;QAC/B,OAAO;YACL,MAAM,EAAE,YAAY,CAAC,MAAM;YAC3B,OAAO,EAAE,YAAY,CAAC,OAAO;YAC7B,qBAAqB,EAAE,YAAY,CAAC,qBAAqB;SAC1D,CAAC;IACJ,CAAC;IAED,gBAAgB,CAAC,EAAE,YAAY,EAAW;QACxC,OAAO,YAAY,EAAE,gBAAgB,CAAC;IACxC,CAAC;IAED,KAAK,CAAC,eAAe,CACnB,GAAY,EACZ,MAEC,EACD,cAAuB;QAQvB,MAAM,EAAE,QAAQ,EAAE,GAAG,cAAc,CAAC;QACpC,MAAM,EAAE,aAAa,EAAE,GAAG,MAAM,CAAC;QACjC,OAAO,QAAQ,CAAC,QAAQ,CAAC,wBAAwB,CAAC;YAChD,OAAO,EAAE,GAAG;YACZ,aAAa;SACd,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,OAAgB,EAAE,MAAa,EAAE,cAAuB;QACnE,MAAM,WAAW,CAAC,cAAc,EAAE,OAAO,CAAC,UAAU,EAAE,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC,CAAC;QAC3E,MAAM,MAAM,GAAG,MAAM,cAAc,CAAC,OAAO,CAAC,WAAW,CAAC,UAAU,CAAC;YACjE,SAAS,EAAE,OAAO,CAAC,GAAG;SACvB,CAAC,CAAC;QACH,OAAO,MAAM,CAAC;IAChB,CAAC;CACF,CAAC;AAEF,OAAO,gBAAgB,CAAC,SAAS,CAAC;AAClC,OAAO,gBAAgB,CAAC,oBAAoB,CAAC;AAC7C,OAAO,gBAAgB,CAAC,oBAAoB,CAAC"}
|
|
@@ -9,20 +9,20 @@ export declare const Product: {
|
|
|
9
9
|
__resolveType: (product: ProductType) => string;
|
|
10
10
|
assortmentPaths(product: ProductType, params: {
|
|
11
11
|
forceLocale?: string;
|
|
12
|
-
}, { modules, loaders }: Context): Promise<
|
|
13
|
-
links:
|
|
14
|
-
}
|
|
12
|
+
}, { modules, loaders }: Context): Promise<{
|
|
13
|
+
links: AssortmentPathLink[];
|
|
14
|
+
}[]>;
|
|
15
15
|
media(product: ProductType, params: {
|
|
16
16
|
limit: number;
|
|
17
17
|
offset: number;
|
|
18
|
-
tags?:
|
|
19
|
-
}, { loaders, modules }: Context): Promise<
|
|
18
|
+
tags?: string[];
|
|
19
|
+
}, { loaders, modules }: Context): Promise<ProductMedia[]>;
|
|
20
20
|
reviews(product: ProductType, { limit, offset, sort, queryString, }: {
|
|
21
21
|
queryString?: string;
|
|
22
22
|
limit?: number;
|
|
23
23
|
offset?: number;
|
|
24
|
-
sort?:
|
|
25
|
-
}, { modules }: Context): Promise<
|
|
24
|
+
sort?: SortOption[];
|
|
25
|
+
}, { modules }: Context): Promise<ProductReview[]>;
|
|
26
26
|
reviewsCount(product: ProductType, params: {
|
|
27
27
|
queryString?: string;
|
|
28
28
|
}, { modules }: Context): Promise<number>;
|
|
@@ -31,10 +31,10 @@ export declare const Product: {
|
|
|
31
31
|
limit: number;
|
|
32
32
|
offset: number;
|
|
33
33
|
includeInactive: boolean;
|
|
34
|
-
}, { modules }: Context): Promise<
|
|
34
|
+
}, { modules }: Context): Promise<(typeof product)[]>;
|
|
35
35
|
status(product: ProductType, _: any, { modules }: Context): ProductStatus;
|
|
36
36
|
texts(product: ProductType, { forceLocale, }: {
|
|
37
37
|
forceLocale?: string;
|
|
38
|
-
},
|
|
38
|
+
}, { locale, loaders }: Context): Promise<ProductText>;
|
|
39
39
|
};
|
|
40
40
|
//# sourceMappingURL=product-types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product-types.d.ts","sourceRoot":"","sources":["../../../../src/resolvers/type/product/product-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,8BAA8B,CAAC;AACnF,OAAO,EAAE,aAAa,EAAgB,MAAM,8BAA8B,CAAC;AAE3E,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAC7D,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAE9C,eAAO,MAAM,OAAO;6BACO,WAAW,KAAG,MAAM;6BAMlC,WAAW,UACZ;QACN,WAAW,CAAC,EAAE,MAAM,CAAC;KACtB,wBACqB,OAAO,GAC5B,OAAO,CACR
|
|
1
|
+
{"version":3,"file":"product-types.d.ts","sourceRoot":"","sources":["../../../../src/resolvers/type/product/product-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,8BAA8B,CAAC;AACnF,OAAO,EAAE,aAAa,EAAgB,MAAM,8BAA8B,CAAC;AAE3E,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAC7D,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAE9C,eAAO,MAAM,OAAO;6BACO,WAAW,KAAG,MAAM;6BAMlC,WAAW,UACZ;QACN,WAAW,CAAC,EAAE,MAAM,CAAC;KACtB,wBACqB,OAAO,GAC5B,OAAO,CACR;QACE,KAAK,EAAE,kBAAkB,EAAE,CAAC;KAC7B,EAAE,CACJ;mBAmBU,WAAW,UACZ;QACN,KAAK,EAAE,MAAM,CAAC;QACd,MAAM,EAAE,MAAM,CAAC;QACf,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;KACjB,wBACqB,OAAO,GAC5B,OAAO,CAAC,YAAY,EAAE,CAAC;qBAcf,WAAW,yCAMjB;QACD,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,IAAI,CAAC,EAAE,UAAU,EAAE,CAAC;KACrB,eACY,OAAO,GACnB,OAAO,CAAC,aAAa,EAAE,CAAC;0BAUhB,WAAW,UACZ;QACN,WAAW,CAAC,EAAE,MAAM,CAAC;KACtB,eACY,OAAO,GACnB,OAAO,CAAC,MAAM,CAAC;sBAMP,WAAW,UACZ;QACN,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,KAAK,EAAE,MAAM,CAAC;QACd,MAAM,EAAE,MAAM,CAAC;QACf,eAAe,EAAE,OAAO,CAAC;KAC1B,eACY,OAAO,GACnB,OAAO,CAAC,CAAC,OAAO,OAAO,CAAC,EAAE,CAAC;oBAuBd,WAAW,uBAAkB,OAAO,GAAG,aAAa;mBAKzD,WAAW,oBAGjB;QACD,WAAW,CAAC,EAAE,MAAM,CAAC;KACtB,uBACoB,OAAO,GAC3B,OAAO,CAAC,WAAW,CAAC;CAMxB,CAAC"}
|
|
@@ -17,7 +17,6 @@ export const Product = {
|
|
|
17
17
|
}),
|
|
18
18
|
});
|
|
19
19
|
},
|
|
20
|
-
// TODO: Use a loader!
|
|
21
20
|
async media(product, params, { loaders, modules }) {
|
|
22
21
|
if (params.offset || params.tags) {
|
|
23
22
|
return modules.products.media.findProductMedias({
|
|
@@ -28,7 +27,6 @@ export const Product = {
|
|
|
28
27
|
return (await loaders.productMediasLoader.load({ productId: product._id })).slice(params.offset, params.offset + params.limit);
|
|
29
28
|
},
|
|
30
29
|
async reviews(product, { limit = 10, offset = 0, sort, queryString, }, { modules }) {
|
|
31
|
-
// TODO: use loader?
|
|
32
30
|
return modules.products.reviews.findProductReviews({
|
|
33
31
|
productId: product._id,
|
|
34
32
|
limit,
|
|
@@ -63,11 +61,10 @@ export const Product = {
|
|
|
63
61
|
status(product, _, { modules }) {
|
|
64
62
|
return modules.products.normalizedStatus(product);
|
|
65
63
|
},
|
|
66
|
-
async texts(product, { forceLocale, },
|
|
67
|
-
const { localeContext, loaders } = requestContext;
|
|
64
|
+
async texts(product, { forceLocale, }, { locale, loaders }) {
|
|
68
65
|
return loaders.productTextLoader.load({
|
|
69
66
|
productId: product._id,
|
|
70
|
-
locale: forceLocale
|
|
67
|
+
locale: forceLocale ? new Intl.Locale(forceLocale) : locale,
|
|
71
68
|
});
|
|
72
69
|
},
|
|
73
70
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product-types.js","sourceRoot":"","sources":["../../../../src/resolvers/type/product/product-types.ts"],"names":[],"mappings":"AACA,OAAO,EAAiB,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC3E,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAOpD,MAAM,CAAC,MAAM,OAAO,GAAG;IACrB,aAAa,EAAE,CAAC,OAAoB,EAAU,EAAE;QAC9C,MAAM,oBAAoB,GAAG,YAAY,CAAC,YAAY,CAAC,CAAC;QACxD,OAAO,oBAAoB,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IAC5C,CAAC;IAED,KAAK,CAAC,eAAe,CACnB,OAAoB,EACpB,MAEC,EACD,EAAE,OAAO,EAAE,OAAO,EAAW;QAM7B,OAAO,OAAO,CAAC,WAAW,CAAC,WAAW,CACpC;YACE,SAAS,EAAE,OAAO,CAAC,GAAG;SACvB,EACD;YACE,yBAAyB,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE,CAC7C,OAAO,CAAC,wBAAwB,CAAC,IAAI,CAAC;gBACpC,SAAS;aACV,CAAC;YACJ,sBAAsB,EAAE,KAAK,EAAE,iBAAiB,EAAE,EAAE,CAClD,OAAO,CAAC,qBAAqB,CAAC,IAAI,CAAC;gBACjC,iBAAiB;aAClB,CAAC;SACL,CACF,CAAC;IACJ,CAAC;IAED,
|
|
1
|
+
{"version":3,"file":"product-types.js","sourceRoot":"","sources":["../../../../src/resolvers/type/product/product-types.ts"],"names":[],"mappings":"AACA,OAAO,EAAiB,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC3E,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAOpD,MAAM,CAAC,MAAM,OAAO,GAAG;IACrB,aAAa,EAAE,CAAC,OAAoB,EAAU,EAAE;QAC9C,MAAM,oBAAoB,GAAG,YAAY,CAAC,YAAY,CAAC,CAAC;QACxD,OAAO,oBAAoB,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IAC5C,CAAC;IAED,KAAK,CAAC,eAAe,CACnB,OAAoB,EACpB,MAEC,EACD,EAAE,OAAO,EAAE,OAAO,EAAW;QAM7B,OAAO,OAAO,CAAC,WAAW,CAAC,WAAW,CACpC;YACE,SAAS,EAAE,OAAO,CAAC,GAAG;SACvB,EACD;YACE,yBAAyB,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE,CAC7C,OAAO,CAAC,wBAAwB,CAAC,IAAI,CAAC;gBACpC,SAAS;aACV,CAAC;YACJ,sBAAsB,EAAE,KAAK,EAAE,iBAAiB,EAAE,EAAE,CAClD,OAAO,CAAC,qBAAqB,CAAC,IAAI,CAAC;gBACjC,iBAAiB;aAClB,CAAC;SACL,CACF,CAAC;IACJ,CAAC;IAED,KAAK,CAAC,KAAK,CACT,OAAoB,EACpB,MAIC,EACD,EAAE,OAAO,EAAE,OAAO,EAAW;QAE7B,IAAI,MAAM,CAAC,MAAM,IAAI,MAAM,CAAC,IAAI,EAAE,CAAC;YACjC,OAAO,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,iBAAiB,CAAC;gBAC9C,SAAS,EAAE,OAAO,CAAC,GAAG;gBACtB,GAAG,MAAM;aACV,CAAC,CAAC;QACL,CAAC;QACD,OAAO,CAAC,MAAM,OAAO,CAAC,mBAAmB,CAAC,IAAI,CAAC,EAAE,SAAS,EAAE,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC,KAAK,CAC/E,MAAM,CAAC,MAAM,EACb,MAAM,CAAC,MAAM,GAAG,MAAM,CAAC,KAAK,CAC7B,CAAC;IACJ,CAAC;IAED,KAAK,CAAC,OAAO,CACX,OAAoB,EACpB,EACE,KAAK,GAAG,EAAE,EACV,MAAM,GAAG,CAAC,EACV,IAAI,EACJ,WAAW,GAMZ,EACD,EAAE,OAAO,EAAW;QAEpB,OAAO,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,kBAAkB,CAAC;YACjD,SAAS,EAAE,OAAO,CAAC,GAAG;YACtB,KAAK;YACL,MAAM;YACN,IAAI;YACJ,WAAW;SACZ,CAAC,CAAC;IACL,CAAC;IACD,KAAK,CAAC,YAAY,CAChB,OAAoB,EACpB,MAEC,EACD,EAAE,OAAO,EAAW;QAEpB,OAAO,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,GAAG,MAAM,EAAE,SAAS,EAAE,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC;IAC/E,CAAC;IAED,cAAc;IACd,KAAK,CAAC,QAAQ,CACZ,OAAoB,EACpB,MAKC,EACD,EAAE,OAAO,EAAW;QAEpB,MAAM,EAAE,YAAY,EAAE,KAAK,EAAE,MAAM,EAAE,eAAe,GAAG,KAAK,EAAE,GAAG,MAAM,CAAC;QAExE,MAAM,SAAS,GAAG,OAAO,CAAC,GAAG,CAAC;QAC9B,MAAM,aAAa,GAAG,YAAY;YAChC,CAAC,CAAC,CAAC,YAAY,CAAC;YAChB,CAAC,CAAC,MAAM,OAAO,CAAC,WAAW,CAAC,QAAQ,CAAC,iBAAiB,CAAC,EAAE,SAAS,EAAE,CAAC,CAAC;QAExE,IAAI,CAAC,aAAa,CAAC,MAAM;YAAE,OAAO,EAAE,CAAC;QAErC,MAAM,UAAU,GAAG,MAAM,OAAO,CAAC,WAAW,CAAC,QAAQ,CAAC,YAAY,CAAC;YACjE,SAAS;YACT,aAAa;SACd,CAAC,CAAC;QAEH,OAAO,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAC;YACnC,UAAU;YACV,aAAa,EAAE,eAAe;YAC9B,KAAK;YACL,MAAM;SACP,CAAC,CAAC;IACL,CAAC;IAED,MAAM,CAAC,OAAoB,EAAE,CAAC,EAAE,EAAE,OAAO,EAAW;QAClD,OAAO,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC;IACpD,CAAC;IAED,KAAK,CAAC,KAAK,CACT,OAAoB,EACpB,EACE,WAAW,GAGZ,EACD,EAAE,MAAM,EAAE,OAAO,EAAW;QAE5B,OAAO,OAAO,CAAC,iBAAiB,CAAC,IAAI,CAAC;YACpC,SAAS,EAAE,OAAO,CAAC,GAAG;YACtB,MAAM,EAAE,WAAW,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,MAAM;SAC5D,CAAC,CAAC;IACL,CAAC;CACF,CAAC"}
|
|
@@ -6,9 +6,9 @@ export type AssignmentHelperType<T> = (data: {
|
|
|
6
6
|
}, _: never, context: Context) => T;
|
|
7
7
|
export interface ProductVariationAssignmentHelperTypes {
|
|
8
8
|
_id: AssignmentHelperType<string>;
|
|
9
|
-
vectors: AssignmentHelperType<
|
|
9
|
+
vectors: AssignmentHelperType<({
|
|
10
10
|
product: Product;
|
|
11
|
-
} & ProductConfiguration
|
|
11
|
+
} & ProductConfiguration)[]>;
|
|
12
12
|
product: AssignmentHelperType<Promise<Product>>;
|
|
13
13
|
}
|
|
14
14
|
export declare const ProductVariationAssignment: ProductVariationAssignmentHelperTypes;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product-variation-assignment-types.d.ts","sourceRoot":"","sources":["../../../../src/resolvers/type/product/product-variation-assignment-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AAEhG,MAAM,MAAM,oBAAoB,CAAC,CAAC,IAAI,CACpC,IAAI,EAAE;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,UAAU,EAAE,iBAAiB,CAAA;CAAE,EACzD,CAAC,EAAE,KAAK,EACR,OAAO,EAAE,OAAO,KACb,CAAC,CAAC;AAEP,MAAM,WAAW,qCAAqC;IACpD,GAAG,EAAE,oBAAoB,CAAC,MAAM,CAAC,CAAC;IAClC,OAAO,EAAE,oBAAoB,CAAC,
|
|
1
|
+
{"version":3,"file":"product-variation-assignment-types.d.ts","sourceRoot":"","sources":["../../../../src/resolvers/type/product/product-variation-assignment-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AAEhG,MAAM,MAAM,oBAAoB,CAAC,CAAC,IAAI,CACpC,IAAI,EAAE;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,UAAU,EAAE,iBAAiB,CAAA;CAAE,EACzD,CAAC,EAAE,KAAK,EACR,OAAO,EAAE,OAAO,KACb,CAAC,CAAC;AAEP,MAAM,WAAW,qCAAqC;IACpD,GAAG,EAAE,oBAAoB,CAAC,MAAM,CAAC,CAAC;IAClC,OAAO,EAAE,oBAAoB,CAAC,CAAC;QAAE,OAAO,EAAE,OAAO,CAAA;KAAE,GAAG,oBAAoB,CAAC,EAAE,CAAC,CAAC;IAC/E,OAAO,EAAE,oBAAoB,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC;CACjD;AAED,eAAO,MAAM,0BAA0B,EAAE,qCAiBxC,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export const ProductVariationAssignment = {
|
|
2
2
|
_id: ({ product, assignment }) => {
|
|
3
|
-
return `${product
|
|
3
|
+
return `${product?._id}:${Object.values(assignment.vector).join('-')}`;
|
|
4
4
|
},
|
|
5
5
|
vectors: ({ assignment, product }) => {
|
|
6
6
|
return Object.keys(assignment.vector || {}).map((key) => ({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product-variation-assignment-types.js","sourceRoot":"","sources":["../../../../src/resolvers/type/product/product-variation-assignment-types.ts"],"names":[],"mappings":"AAeA,MAAM,CAAC,MAAM,0BAA0B,GAA0C;IAC/E,GAAG,EAAE,CAAC,EAAE,OAAO,EAAE,UAAU,EAAE,EAAE,EAAE;QAC/B,OAAO,GAAG,OAAO,
|
|
1
|
+
{"version":3,"file":"product-variation-assignment-types.js","sourceRoot":"","sources":["../../../../src/resolvers/type/product/product-variation-assignment-types.ts"],"names":[],"mappings":"AAeA,MAAM,CAAC,MAAM,0BAA0B,GAA0C;IAC/E,GAAG,EAAE,CAAC,EAAE,OAAO,EAAE,UAAU,EAAE,EAAE,EAAE;QAC/B,OAAO,GAAG,OAAO,EAAE,GAAG,IAAI,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC;IACzE,CAAC;IACD,OAAO,EAAE,CAAC,EAAE,UAAU,EAAE,OAAO,EAAE,EAAE,EAAE;QACnC,OAAO,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,MAAM,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;YACxD,GAAG;YACH,KAAK,EAAE,UAAU,CAAC,MAAM,CAAC,GAAG,CAAC;YAC7B,OAAO;SACR,CAAC,CAAC,CAAC;IACN,CAAC;IACD,OAAO,EAAE,KAAK,EAAE,EAAE,UAAU,EAAE,EAAE,CAAC,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;QAChD,MAAM,OAAO,GAAG,MAAM,OAAO,CAAC,aAAa,CAAC,IAAI,CAAC;YAC/C,SAAS,EAAE,UAAU,CAAC,SAAS;SAChC,CAAC,CAAC;QACH,OAAO,OAAO,CAAC;IACjB,CAAC;CACF,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export const ProductVariationAssignmentVector = {
|
|
2
2
|
_id: ({ product, key, value }) => `${product._id}:${key}=${value}`,
|
|
3
3
|
option: async (obj, _, { modules }) => {
|
|
4
|
-
// TODO: use loader
|
|
4
|
+
// TODO: use product variation loader
|
|
5
5
|
const productVariation = await modules.products.variations.findProductVariationByKey({
|
|
6
6
|
key: obj.key,
|
|
7
7
|
productId: obj.product._id,
|
|
@@ -12,7 +12,7 @@ export const ProductVariationAssignmentVector = {
|
|
|
12
12
|
};
|
|
13
13
|
},
|
|
14
14
|
variation: (obj, _, { modules }) => {
|
|
15
|
-
// TODO: use loader
|
|
15
|
+
// TODO: use product variation loader
|
|
16
16
|
return modules.products.variations.findProductVariationByKey({
|
|
17
17
|
productId: obj?.product?._id,
|
|
18
18
|
key: obj?.key,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product-variation-assignment-vector.js","sourceRoot":"","sources":["../../../../src/resolvers/type/product/product-variation-assignment-vector.ts"],"names":[],"mappings":"AAgBA,MAAM,CAAC,MAAM,gCAAgC,GAAgD;IAC3F,GAAG,EAAE,CAAC,EAAE,OAAO,EAAE,GAAG,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,GAAG,OAAO,CAAC,GAAG,IAAI,GAAG,IAAI,KAAK,EAAE;IAElE,MAAM,EAAE,KAAK,EAAE,GAAG,EAAE,CAAC,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;QACpC,
|
|
1
|
+
{"version":3,"file":"product-variation-assignment-vector.js","sourceRoot":"","sources":["../../../../src/resolvers/type/product/product-variation-assignment-vector.ts"],"names":[],"mappings":"AAgBA,MAAM,CAAC,MAAM,gCAAgC,GAAgD;IAC3F,GAAG,EAAE,CAAC,EAAE,OAAO,EAAE,GAAG,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,GAAG,OAAO,CAAC,GAAG,IAAI,GAAG,IAAI,KAAK,EAAE;IAElE,MAAM,EAAE,KAAK,EAAE,GAAG,EAAE,CAAC,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;QACpC,qCAAqC;QACrC,MAAM,gBAAgB,GAAG,MAAM,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAC,yBAAyB,CAAC;YACnF,GAAG,EAAE,GAAG,CAAC,GAAG;YACZ,SAAS,EAAE,GAAG,CAAC,OAAO,CAAC,GAAG;SAC3B,CAAC,CAAC;QACH,OAAO;YACL,GAAG,EAAE,gBAAgB,CAAC,GAAG;YACzB,sBAAsB,EAAE,GAAG,CAAC,KAAK;SAClC,CAAC;IACJ,CAAC;IAED,SAAS,EAAE,CAAC,GAAG,EAAE,CAAC,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;QACjC,qCAAqC;QACrC,OAAO,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAC,yBAAyB,CAAC;YAC3D,SAAS,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG;YAC5B,GAAG,EAAE,GAAG,EAAE,GAAG;SACd,CAAC,CAAC;IACL,CAAC;CACF,CAAC"}
|
|
@@ -5,12 +5,12 @@ export const ProductVariationOption = {
|
|
|
5
5
|
value: (obj) => {
|
|
6
6
|
return obj.productVariationOption;
|
|
7
7
|
},
|
|
8
|
-
texts: async (obj, { forceLocale }, { modules,
|
|
9
|
-
// TODO: use loader
|
|
8
|
+
texts: async (obj, { forceLocale }, { modules, locale }) => {
|
|
9
|
+
// TODO: use variation text loader
|
|
10
10
|
return modules.products.variations.texts.findLocalizedVariationText({
|
|
11
|
-
locale: forceLocale || localeContext.baseName,
|
|
12
11
|
productVariationId: obj._id,
|
|
13
12
|
productVariationOptionValue: obj.productVariationOption,
|
|
13
|
+
locale: forceLocale ? new Intl.Locale(forceLocale) : locale,
|
|
14
14
|
});
|
|
15
15
|
},
|
|
16
16
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product-variation-option-types.js","sourceRoot":"","sources":["../../../../src/resolvers/type/product/product-variation-option-types.ts"],"names":[],"mappings":"AAcA,MAAM,CAAC,MAAM,sBAAsB,GAAsC;IACvE,GAAG,EAAE,CAAC,GAAG,EAAE,EAAE;QACX,OAAO,GAAG,GAAG,CAAC,GAAG,IAAI,GAAG,CAAC,sBAAsB,EAAE,CAAC;IACpD,CAAC;IACD,KAAK,EAAE,CAAC,GAAG,EAAE,EAAE;QACb,OAAO,GAAG,CAAC,sBAAsB,CAAC;IACpC,CAAC;IAED,KAAK,EAAE,KAAK,EAAE,GAAG,EAAE,EAAE,WAAW,EAAE,EAAE,EAAE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"product-variation-option-types.js","sourceRoot":"","sources":["../../../../src/resolvers/type/product/product-variation-option-types.ts"],"names":[],"mappings":"AAcA,MAAM,CAAC,MAAM,sBAAsB,GAAsC;IACvE,GAAG,EAAE,CAAC,GAAG,EAAE,EAAE;QACX,OAAO,GAAG,GAAG,CAAC,GAAG,IAAI,GAAG,CAAC,sBAAsB,EAAE,CAAC;IACpD,CAAC;IACD,KAAK,EAAE,CAAC,GAAG,EAAE,EAAE;QACb,OAAO,GAAG,CAAC,sBAAsB,CAAC;IACpC,CAAC;IAED,KAAK,EAAE,KAAK,EAAE,GAAG,EAAE,EAAE,WAAW,EAAE,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,EAAE;QACzD,kCAAkC;QAClC,OAAO,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAC,KAAK,CAAC,0BAA0B,CAAC;YAClE,kBAAkB,EAAE,GAAG,CAAC,GAAG;YAC3B,2BAA2B,EAAE,GAAG,CAAC,sBAAsB;YACvD,MAAM,EAAE,WAAW,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,MAAM;SAC5D,CAAC,CAAC;IACL,CAAC;CACF,CAAC"}
|
|
@@ -2,10 +2,10 @@ import { Context } from '../../../context.js';
|
|
|
2
2
|
import { ProductVariation as ProductVariationType, ProductVariationText } from '@unchainedshop/core-products';
|
|
3
3
|
export type HelperType<P, T> = (productVariation: ProductVariationType, params: P, context: Context) => T;
|
|
4
4
|
export interface ProductVariationHelperTypes {
|
|
5
|
-
options: HelperType<never,
|
|
5
|
+
options: HelperType<never, {
|
|
6
6
|
_id: string;
|
|
7
7
|
productVariationOption: string;
|
|
8
|
-
}
|
|
8
|
+
}[]>;
|
|
9
9
|
texts: HelperType<{
|
|
10
10
|
forceLocale?: string;
|
|
11
11
|
}, Promise<ProductVariationText>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product-variation-types.d.ts","sourceRoot":"","sources":["../../../../src/resolvers/type/product/product-variation-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EACL,gBAAgB,IAAI,oBAAoB,EACxC,oBAAoB,EACrB,MAAM,8BAA8B,CAAC;AAEtC,MAAM,MAAM,UAAU,CAAC,CAAC,EAAE,CAAC,IAAI,CAC7B,gBAAgB,EAAE,oBAAoB,EACtC,MAAM,EAAE,CAAC,EACT,OAAO,EAAE,OAAO,KACb,CAAC,CAAC;AAEP,MAAM,WAAW,2BAA2B;IAC1C,OAAO,EAAE,UAAU,CACjB,KAAK,EACL
|
|
1
|
+
{"version":3,"file":"product-variation-types.d.ts","sourceRoot":"","sources":["../../../../src/resolvers/type/product/product-variation-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EACL,gBAAgB,IAAI,oBAAoB,EACxC,oBAAoB,EACrB,MAAM,8BAA8B,CAAC;AAEtC,MAAM,MAAM,UAAU,CAAC,CAAC,EAAE,CAAC,IAAI,CAC7B,gBAAgB,EAAE,oBAAoB,EACtC,MAAM,EAAE,CAAC,EACT,OAAO,EAAE,OAAO,KACb,CAAC,CAAC;AAEP,MAAM,WAAW,2BAA2B;IAC1C,OAAO,EAAE,UAAU,CACjB,KAAK,EACL;QACE,GAAG,EAAE,MAAM,CAAC;QACZ,sBAAsB,EAAE,MAAM,CAAC;KAChC,EAAE,CACJ,CAAC;IACF,KAAK,EAAE,UAAU,CAAC;QAAE,WAAW,CAAC,EAAE,MAAM,CAAA;KAAE,EAAE,OAAO,CAAC,oBAAoB,CAAC,CAAC,CAAC;CAC5E;AACD,eAAO,MAAM,gBAAgB,EAAE,2BAe9B,CAAC"}
|
|
@@ -5,11 +5,11 @@ export const ProductVariation = {
|
|
|
5
5
|
productVariationOption: option,
|
|
6
6
|
}));
|
|
7
7
|
},
|
|
8
|
-
texts: async (obj, { forceLocale }, { modules,
|
|
9
|
-
// TODO: use loader
|
|
8
|
+
texts: async (obj, { forceLocale }, { modules, locale }) => {
|
|
9
|
+
// TODO: use variation text loader
|
|
10
10
|
return modules.products.variations.texts.findLocalizedVariationText({
|
|
11
11
|
productVariationId: obj._id,
|
|
12
|
-
locale: forceLocale
|
|
12
|
+
locale: forceLocale ? new Intl.Locale(forceLocale) : locale,
|
|
13
13
|
});
|
|
14
14
|
},
|
|
15
15
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product-variation-types.js","sourceRoot":"","sources":["../../../../src/resolvers/type/product/product-variation-types.ts"],"names":[],"mappings":"AAsBA,MAAM,CAAC,MAAM,gBAAgB,GAAgC;IAC3D,OAAO,EAAE,CAAC,GAAG,EAAE,EAAE;QACf,OAAO,CAAC,GAAG,CAAC,OAAO,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;YAC1C,GAAG,EAAE,GAAG,CAAC,GAAG;YACZ,sBAAsB,EAAE,MAAM;SAC/B,CAAC,CAAC,CAAC;IACN,CAAC;IAED,KAAK,EAAE,KAAK,EAAE,GAAG,EAAE,EAAE,WAAW,EAAE,EAAE,EAAE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"product-variation-types.js","sourceRoot":"","sources":["../../../../src/resolvers/type/product/product-variation-types.ts"],"names":[],"mappings":"AAsBA,MAAM,CAAC,MAAM,gBAAgB,GAAgC;IAC3D,OAAO,EAAE,CAAC,GAAG,EAAE,EAAE;QACf,OAAO,CAAC,GAAG,CAAC,OAAO,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;YAC1C,GAAG,EAAE,GAAG,CAAC,GAAG;YACZ,sBAAsB,EAAE,MAAM;SAC/B,CAAC,CAAC,CAAC;IACN,CAAC;IAED,KAAK,EAAE,KAAK,EAAE,GAAG,EAAE,EAAE,WAAW,EAAE,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,EAAE;QACzD,kCAAkC;QAClC,OAAO,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAC,KAAK,CAAC,0BAA0B,CAAC;YAClE,kBAAkB,EAAE,GAAG,CAAC,GAAG;YAC3B,MAAM,EAAE,WAAW,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,MAAM;SAC5D,CAAC,CAAC;IACL,CAAC;CACF,CAAC"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { Context } from '../../context.js';
|
|
2
2
|
import { SearchConfiguration } from '@unchainedshop/core-filters';
|
|
3
|
-
|
|
3
|
+
export interface SearchResultData {
|
|
4
4
|
searchConfiguration: SearchConfiguration & {
|
|
5
5
|
productSelector: any;
|
|
6
6
|
};
|
|
7
|
-
totalProductIds:
|
|
8
|
-
aggregatedTotalProductIds:
|
|
9
|
-
aggregatedFilteredProductIds:
|
|
10
|
-
}
|
|
7
|
+
totalProductIds: string[];
|
|
8
|
+
aggregatedTotalProductIds: string[];
|
|
9
|
+
aggregatedFilteredProductIds: string[];
|
|
10
|
+
}
|
|
11
11
|
export declare const ProductSearchResult: {
|
|
12
12
|
productsCount: ({ searchConfiguration, aggregatedTotalProductIds }: SearchResultData, _: never, context: Context) => Promise<number>;
|
|
13
13
|
filteredProductsCount: ({ searchConfiguration, aggregatedFilteredProductIds }: SearchResultData, _: never, context: Context) => Promise<number>;
|
|
@@ -24,5 +24,4 @@ export declare const ProductSearchResult: {
|
|
|
24
24
|
filteredByThisFilterSet: Set<string>;
|
|
25
25
|
}[]>;
|
|
26
26
|
};
|
|
27
|
-
export {};
|
|
28
27
|
//# sourceMappingURL=product-search-result-types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product-search-result-types.d.ts","sourceRoot":"","sources":["../../../src/resolvers/type/product-search-result-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC3C,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAElE,
|
|
1
|
+
{"version":3,"file":"product-search-result-types.d.ts","sourceRoot":"","sources":["../../../src/resolvers/type/product-search-result-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC3C,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAElE,MAAM,WAAW,gBAAgB;IAC/B,mBAAmB,EAAE,mBAAmB,GAAG;QAAE,eAAe,EAAE,GAAG,CAAA;KAAE,CAAC;IACpE,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,yBAAyB,EAAE,MAAM,EAAE,CAAC;IACpC,4BAA4B,EAAE,MAAM,EAAE,CAAC;CACxC;AAED,eAAO,MAAM,mBAAmB;wEAEwB,gBAAgB,KACjE,KAAK,WACC,OAAO;mFAYuC,gBAAgB,KACpE,KAAK,WACC,OAAO;sEAYuC,gBAAgB;;;gBAE9D,OAAO;sDAcsC,gBAAgB,KAAK,KAAK,WAAW,OAAO;;;;;;;;CAYrG,CAAC"}
|
|
@@ -1,20 +1,13 @@
|
|
|
1
1
|
import { Quotation as QuotationType } from '@unchainedshop/core-quotations';
|
|
2
2
|
import { Context } from '../../context.js';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
type HelperType<P, T> = (quotation: QuotationType, params: P, context: Context) => T;
|
|
8
|
-
type QuotationHelperTypes = {
|
|
9
|
-
country: HelperType<never, Promise<Country>>;
|
|
10
|
-
currency: HelperType<never, Promise<Currency>>;
|
|
11
|
-
isExpired: HelperType<{
|
|
3
|
+
export declare const Quotation: {
|
|
4
|
+
country: (obj: QuotationType, _: never, { loaders }: Context) => Promise<import("@unchainedshop/core-countries").Country>;
|
|
5
|
+
currency: (obj: QuotationType, _: never, { loaders }: Context) => Promise<import("@unchainedshop/core-currencies").Currency>;
|
|
6
|
+
isExpired: (obj: QuotationType, { referenceDate }: {
|
|
12
7
|
referenceDate: Date;
|
|
13
|
-
}, boolean
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
user:
|
|
8
|
+
}, { modules }: Context) => boolean;
|
|
9
|
+
product: (obj: QuotationType, _: never, { loaders }: Context) => Promise<import("@unchainedshop/core-products").Product>;
|
|
10
|
+
status: (obj: QuotationType, _: never, { modules }: Context) => import("@unchainedshop/core-quotations").QuotationStatus;
|
|
11
|
+
user: (obj: QuotationType, _: never, { loaders }: Context) => Promise<import("@unchainedshop/core-users").User>;
|
|
17
12
|
};
|
|
18
|
-
export declare const Quotation: QuotationHelperTypes;
|
|
19
|
-
export {};
|
|
20
13
|
//# sourceMappingURL=quotation-types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"quotation-types.d.ts","sourceRoot":"","sources":["../../../src/resolvers/type/quotation-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,IAAI,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAC5E,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"quotation-types.d.ts","sourceRoot":"","sources":["../../../src/resolvers/type/quotation-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,IAAI,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAC5E,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAE3C,eAAO,MAAM,SAAS;mBACC,aAAa,KAAK,KAAK,eAAe,OAAO;oBAG5C,aAAa,KAAK,KAAK,eAAe,OAAO;qBAGlD,aAAa,qBAAqB;QAAE,aAAa,EAAE,IAAI,CAAA;KAAE,eAAe,OAAO;mBAG3E,aAAa,KAAK,KAAK,eAAe,OAAO;kBAOpD,aAAa,KAAK,KAAK,eAAe,OAAO;gBAGzC,aAAa,KAAK,KAAK,eAAe,OAAO;CAEhE,CAAC"}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
export const Quotation = {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
// TODO: use loader
|
|
5
|
-
currency: async (obj, _, { modules }) => modules.currencies.findCurrency({ isoCode: obj.currency }),
|
|
2
|
+
country: async (obj, _, { loaders }) => loaders.countryLoader.load({ isoCode: obj.countryCode }),
|
|
3
|
+
currency: async (obj, _, { loaders }) => loaders.currencyLoader.load({ isoCode: obj.currencyCode }),
|
|
6
4
|
isExpired: (obj, { referenceDate }, { modules }) => modules.quotations.isExpired(obj, { referenceDate }),
|
|
7
5
|
product: async (obj, _, { loaders }) => {
|
|
8
6
|
const product = await loaders.productLoader.load({
|
|
@@ -11,7 +9,6 @@ export const Quotation = {
|
|
|
11
9
|
return product;
|
|
12
10
|
},
|
|
13
11
|
status: (obj, _, { modules }) => modules.quotations.normalizedStatus(obj),
|
|
14
|
-
|
|
15
|
-
user: (obj, _, { modules }) => modules.users.findUserById(obj.userId),
|
|
12
|
+
user: async (obj, _, { loaders }) => loaders.userLoader.load({ userId: obj.userId }),
|
|
16
13
|
};
|
|
17
14
|
//# sourceMappingURL=quotation-types.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"quotation-types.js","sourceRoot":"","sources":["../../../src/resolvers/type/quotation-types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"quotation-types.js","sourceRoot":"","sources":["../../../src/resolvers/type/quotation-types.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,MAAM,SAAS,GAAG;IACvB,OAAO,EAAE,KAAK,EAAE,GAAkB,EAAE,CAAQ,EAAE,EAAE,OAAO,EAAW,EAAE,EAAE,CACpE,OAAO,CAAC,aAAa,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,GAAG,CAAC,WAAW,EAAE,CAAC;IAE1D,QAAQ,EAAE,KAAK,EAAE,GAAkB,EAAE,CAAQ,EAAE,EAAE,OAAO,EAAW,EAAE,EAAE,CACrE,OAAO,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,GAAG,CAAC,YAAY,EAAE,CAAC;IAE5D,SAAS,EAAE,CAAC,GAAkB,EAAE,EAAE,aAAa,EAA2B,EAAE,EAAE,OAAO,EAAW,EAAE,EAAE,CAClG,OAAO,CAAC,UAAU,CAAC,SAAS,CAAC,GAAG,EAAE,EAAE,aAAa,EAAE,CAAC;IAEtD,OAAO,EAAE,KAAK,EAAE,GAAkB,EAAE,CAAQ,EAAE,EAAE,OAAO,EAAW,EAAE,EAAE;QACpE,MAAM,OAAO,GAAG,MAAM,OAAO,CAAC,aAAa,CAAC,IAAI,CAAC;YAC/C,SAAS,EAAE,GAAG,CAAC,SAAS;SACzB,CAAC,CAAC;QACH,OAAO,OAAO,CAAC;IACjB,CAAC;IAED,MAAM,EAAE,CAAC,GAAkB,EAAE,CAAQ,EAAE,EAAE,OAAO,EAAW,EAAE,EAAE,CAC7D,OAAO,CAAC,UAAU,CAAC,gBAAgB,CAAC,GAAG,CAAC;IAE1C,IAAI,EAAE,KAAK,EAAE,GAAkB,EAAE,CAAQ,EAAE,EAAE,OAAO,EAAW,EAAE,EAAE,CACjE,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,CAAC;CAClD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shop-types.d.ts","sourceRoot":"","sources":["../../../src/resolvers/type/shop-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC3C,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AACxD,OAAO,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AAIzD,KAAK,UAAU,CAAC,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,KAAK,OAAO,CAAC,CAAC,CAAC,CAAC;AAElF,MAAM,WAAW,eAAe;IAC9B,GAAG,EAAE,MAAM,MAAM,CAAC;IAClB,OAAO,EAAE,UAAU,CAAC,OAAO,CAAC,CAAC;IAC7B,QAAQ,EAAE,UAAU,CAAC,QAAQ,CAAC,CAAC;IAC/B,SAAS,EAAE,UAAU,CAAC,
|
|
1
|
+
{"version":3,"file":"shop-types.d.ts","sourceRoot":"","sources":["../../../src/resolvers/type/shop-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC3C,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AACxD,OAAO,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AAIzD,KAAK,UAAU,CAAC,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,KAAK,OAAO,CAAC,CAAC,CAAC,CAAC;AAElF,MAAM,WAAW,eAAe;IAC9B,GAAG,EAAE,MAAM,MAAM,CAAC;IAClB,OAAO,EAAE,UAAU,CAAC,OAAO,CAAC,CAAC;IAC7B,QAAQ,EAAE,UAAU,CAAC,QAAQ,CAAC,CAAC;IAC/B,SAAS,EAAE,UAAU,CAAC,MAAM,EAAE,CAAC,CAAC;CACjC;AAED,eAAO,MAAM,IAAI,EAAE,eAkBlB,CAAC"}
|
|
@@ -4,13 +4,11 @@ export const Shop = {
|
|
|
4
4
|
_id() {
|
|
5
5
|
return 'root';
|
|
6
6
|
},
|
|
7
|
-
language: async (_root, _params, {
|
|
8
|
-
|
|
9
|
-
return modules.languages.findLanguage({ isoCode: localeContext.language });
|
|
7
|
+
language: async (_root, _params, { locale, loaders }) => {
|
|
8
|
+
return loaders.languageLoader.load({ isoCode: locale.language });
|
|
10
9
|
},
|
|
11
|
-
country: async (_root, _params, {
|
|
12
|
-
|
|
13
|
-
return modules.countries.findCountry({ isoCode: countryContext });
|
|
10
|
+
country: async (_root, _params, { countryCode, loaders }) => {
|
|
11
|
+
return loaders.countryLoader.load({ isoCode: countryCode });
|
|
14
12
|
},
|
|
15
13
|
userRoles: async (_root, _params, context) => {
|
|
16
14
|
await checkAction(context, actions.manageUsers);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shop-types.js","sourceRoot":"","sources":["../../../src/resolvers/type/shop-types.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAWzD,MAAM,CAAC,MAAM,IAAI,GAAoB;IACnC,GAAG;QACD,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,
|
|
1
|
+
{"version":3,"file":"shop-types.js","sourceRoot":"","sources":["../../../src/resolvers/type/shop-types.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAWzD,MAAM,CAAC,MAAM,IAAI,GAAoB;IACnC,GAAG;QACD,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,EAAE;QACtD,OAAO,OAAO,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,MAAM,CAAC,QAAQ,EAAE,CAAC,CAAC;IACnE,CAAC;IACD,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,WAAW,EAAE,OAAO,EAAE,EAAE,EAAE;QAC1D,OAAO,OAAO,CAAC,aAAa,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,WAAW,EAAE,CAAC,CAAC;IAC9D,CAAC;IAED,SAAS,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,EAAE;QAC3C,MAAM,WAAW,CAAC,OAAO,EAAG,OAAe,CAAC,WAAW,CAAC,CAAC;QACzD,OAAO,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC;aAC3B,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,IAAI,CAAC;aACvB,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC;IACrD,CAAC;CACF,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Context } from '../../context.js';
|
|
2
2
|
import { TokenSurrogate, TokenStatus } from '@unchainedshop/core-warehousing';
|
|
3
3
|
export declare const Token: {
|
|
4
|
-
product: (token: TokenSurrogate, params: never, {
|
|
5
|
-
user: (token: TokenSurrogate, params: never, {
|
|
4
|
+
product: (token: TokenSurrogate, params: never, { loaders }: Context) => Promise<import("@unchainedshop/core-products").Product>;
|
|
5
|
+
user: (token: TokenSurrogate, params: never, { loaders }: Context) => Promise<import("@unchainedshop/core-users").User>;
|
|
6
6
|
status: (token: TokenSurrogate, params: never, { modules }: Context) => Promise<TokenStatus>;
|
|
7
7
|
ercMetadata: (token: TokenSurrogate, { forceLocale }: {
|
|
8
8
|
forceLocale: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"token-types.d.ts","sourceRoot":"","sources":["../../../src/resolvers/type/token-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC3C,OAAO,EAAE,cAAc,EAAE,WAAW,EAA2B,MAAM,iCAAiC,CAAC;AAMvG,eAAO,MAAM,KAAK;qBACO,cAAc,UAAU,KAAK,eAAe,OAAO;
|
|
1
|
+
{"version":3,"file":"token-types.d.ts","sourceRoot":"","sources":["../../../src/resolvers/type/token-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC3C,OAAO,EAAE,cAAc,EAAE,WAAW,EAA2B,MAAM,iCAAiC,CAAC;AAMvG,eAAO,MAAM,KAAK;qBACO,cAAc,UAAU,KAAK,eAAe,OAAO;kBAItD,cAAc,UAAU,KAAK,eAAe,OAAO;oBAKjD,cAAc,UAAU,KAAK,eAAe,OAAO;yBAahE,cAAc,mBACJ;QAAE,WAAW,EAAE,MAAM,CAAA;KAAE,WAC/B,OAAO;8BAYc,cAAc,WAAW,KAAK,WAAW,OAAO;uBAsBvD,cAAc,UAAU,KAAK,kBAAkB,OAAO;CAOhF,CAAC"}
|