@unchainedshop/api 3.1.13 → 4.0.0-rc.3
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/api-index.d.ts.map +1 -1
- package/lib/api-index.js +4 -1
- package/lib/api-index.js.map +1 -1
- 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 -1
- package/lib/errors.d.ts.map +1 -1
- package/lib/errors.js +2 -1
- package/lib/errors.js.map +1 -1
- package/lib/express/createBulkImportMiddleware copy.d.ts +6 -0
- package/lib/express/createBulkImportMiddleware copy.d.ts.map +1 -0
- package/lib/express/createBulkImportMiddleware copy.js +49 -0
- package/lib/express/createBulkImportMiddleware copy.js.map +1 -0
- 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.map +1 -1
- package/lib/express/createMCPMiddleware.js +12 -3
- package/lib/express/createMCPMiddleware.js.map +1 -1
- package/lib/express/createTempUploadMiddleware.d.ts +7 -0
- package/lib/express/createTempUploadMiddleware.d.ts.map +1 -0
- package/lib/express/createTempUploadMiddleware.js +48 -0
- package/lib/express/createTempUploadMiddleware.js.map +1 -0
- package/lib/express/index.d.ts.map +1 -1
- package/lib/express/index.js +17 -6
- package/lib/express/index.js.map +1 -1
- package/lib/express/setupMCPChatHandler.d.ts +3 -0
- package/lib/express/setupMCPChatHandler.d.ts.map +1 -0
- package/lib/express/setupMCPChatHandler.js +57 -0
- package/lib/express/setupMCPChatHandler.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.d.ts.map +1 -1
- package/lib/fastify/index.js +24 -5
- package/lib/fastify/index.js.map +1 -1
- package/lib/fastify/mcpChatHandler.d.ts +3 -0
- package/lib/fastify/mcpChatHandler.d.ts.map +1 -0
- package/lib/fastify/mcpChatHandler.js +60 -0
- package/lib/fastify/mcpChatHandler.js.map +1 -0
- package/lib/fastify/mcpHandler copy.d.ts +4 -0
- package/lib/fastify/mcpHandler copy.d.ts.map +1 -0
- package/lib/fastify/mcpHandler copy.js +72 -0
- package/lib/fastify/mcpHandler copy.js.map +1 -0
- package/lib/fastify/mcpHandler.d.ts +4 -0
- package/lib/fastify/mcpHandler.d.ts.map +1 -0
- package/lib/fastify/mcpHandler.js +78 -0
- package/lib/fastify/mcpHandler.js.map +1 -0
- package/lib/fastify/tempUploadHandler.d.ts +4 -0
- package/lib/fastify/tempUploadHandler.d.ts.map +1 -0
- package/lib/fastify/tempUploadHandler.js +41 -0
- package/lib/fastify/tempUploadHandler.js.map +1 -0
- package/lib/loaders/buildLocaleMap.d.ts +4 -4
- package/lib/loaders/buildLocaleMap.d.ts.map +1 -1
- package/lib/loaders/buildLocaleMap.js +34 -5
- package/lib/loaders/buildLocaleMap.js.map +1 -1
- package/lib/loaders/buildTextMap.d.ts +2 -2
- package/lib/loaders/buildTextMap.d.ts.map +1 -1
- package/lib/loaders/buildTextMap.js +3 -0
- package/lib/loaders/buildTextMap.js.map +1 -1
- package/lib/loaders/index.d.ts +79 -49
- package/lib/loaders/index.d.ts.map +1 -1
- package/lib/loaders/index.js +47 -240
- package/lib/loaders/index.js.map +1 -1
- 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 +1 -1
- package/lib/mcp/index.d.ts.map +1 -1
- package/lib/mcp/index.js +38 -2
- package/lib/mcp/index.js.map +1 -1
- package/lib/mcp/tools/addProductAssignmentHandler.js.map +1 -1
- package/lib/mcp/tools/addProductMediaUploadHandler.d.ts +28 -0
- package/lib/mcp/tools/addProductMediaUploadHandler.d.ts.map +1 -0
- package/lib/mcp/tools/addProductMediaUploadHandler.js +62 -0
- package/lib/mcp/tools/addProductMediaUploadHandler.js.map +1 -0
- package/lib/mcp/tools/createLanguageHandler.d.ts +36 -0
- package/lib/mcp/tools/createLanguageHandler.d.ts.map +1 -0
- package/lib/mcp/tools/createLanguageHandler.js +39 -0
- package/lib/mcp/tools/createLanguageHandler.js.map +1 -0
- package/lib/mcp/tools/createProductVariationHandler.d.ts +2 -2
- package/lib/mcp/tools/createProductVariationHandler.d.ts.map +1 -1
- package/lib/mcp/tools/createProductVariationHandler.js +10 -4
- package/lib/mcp/tools/createProductVariationHandler.js.map +1 -1
- package/lib/mcp/tools/createProductVariationOptionHandler.d.ts +60 -0
- package/lib/mcp/tools/createProductVariationOptionHandler.d.ts.map +1 -0
- package/lib/mcp/tools/createProductVariationOptionHandler.js +59 -0
- package/lib/mcp/tools/createProductVariationOptionHandler.js.map +1 -0
- package/lib/mcp/tools/getProduct.d.ts.map +1 -1
- package/lib/mcp/tools/getProduct.js +2 -45
- package/lib/mcp/tools/getProduct.js.map +1 -1
- package/lib/mcp/tools/index.d.ts +33 -0
- package/lib/mcp/tools/index.d.ts.map +1 -1
- package/lib/mcp/tools/index.js +33 -0
- package/lib/mcp/tools/index.js.map +1 -1
- package/lib/mcp/tools/listProducts.d.ts.map +1 -1
- package/lib/mcp/tools/listProducts.js +29 -17
- package/lib/mcp/tools/listProducts.js.map +1 -1
- package/lib/mcp/tools/productReviewsCountHandler.d.ts +20 -0
- package/lib/mcp/tools/productReviewsCountHandler.d.ts.map +1 -0
- package/lib/mcp/tools/productReviewsCountHandler.js +30 -0
- package/lib/mcp/tools/productReviewsCountHandler.js.map +1 -0
- package/lib/mcp/tools/productReviewsHandler.d.ts +56 -0
- package/lib/mcp/tools/productReviewsHandler.d.ts.map +1 -0
- package/lib/mcp/tools/productReviewsHandler.js +45 -0
- package/lib/mcp/tools/productReviewsHandler.js.map +1 -0
- package/lib/mcp/tools/removeLanguageHandler.d.ts +20 -0
- package/lib/mcp/tools/removeLanguageHandler.d.ts.map +1 -0
- package/lib/mcp/tools/removeLanguageHandler.js +35 -0
- package/lib/mcp/tools/removeLanguageHandler.js.map +1 -0
- package/lib/mcp/tools/removeProductAssignmentHandler.d.ts +48 -0
- package/lib/mcp/tools/removeProductAssignmentHandler.d.ts.map +1 -0
- package/lib/mcp/tools/removeProductAssignmentHandler.js +51 -0
- package/lib/mcp/tools/removeProductAssignmentHandler.js.map +1 -0
- package/lib/mcp/tools/removeProductHandler.d.ts +20 -0
- package/lib/mcp/tools/removeProductHandler.d.ts.map +1 -0
- package/lib/mcp/tools/removeProductHandler.js +34 -0
- package/lib/mcp/tools/removeProductHandler.js.map +1 -0
- package/lib/mcp/tools/removeProductMediaHandler.d.ts +20 -0
- package/lib/mcp/tools/removeProductMediaHandler.d.ts.map +1 -0
- package/lib/mcp/tools/removeProductMediaHandler.js +42 -0
- package/lib/mcp/tools/removeProductMediaHandler.js.map +1 -0
- package/lib/mcp/tools/removeProductVariationOptionHandler.d.ts +24 -0
- package/lib/mcp/tools/removeProductVariationOptionHandler.d.ts.map +1 -0
- package/lib/mcp/tools/removeProductVariationOptionHandler.js +47 -0
- package/lib/mcp/tools/removeProductVariationOptionHandler.js.map +1 -0
- package/lib/mcp/tools/reorderProductMediaHandler.d.ts +44 -0
- package/lib/mcp/tools/reorderProductMediaHandler.d.ts.map +1 -0
- package/lib/mcp/tools/reorderProductMediaHandler.js +39 -0
- package/lib/mcp/tools/reorderProductMediaHandler.js.map +1 -0
- package/lib/mcp/tools/updateLanguageHandler.d.ts +48 -0
- package/lib/mcp/tools/updateLanguageHandler.d.ts.map +1 -0
- package/lib/mcp/tools/updateLanguageHandler.js +40 -0
- package/lib/mcp/tools/updateLanguageHandler.js.map +1 -0
- package/lib/mcp/tools/updateProductMediaTextsHandler.d.ts +56 -0
- package/lib/mcp/tools/updateProductMediaTextsHandler.d.ts.map +1 -0
- package/lib/mcp/tools/updateProductMediaTextsHandler.js +45 -0
- package/lib/mcp/tools/updateProductMediaTextsHandler.js.map +1 -0
- package/lib/mcp/utils/getNormalizedProductDetails.d.ts.map +1 -1
- package/lib/mcp/utils/getNormalizedProductDetails.js +2 -0
- package/lib/mcp/utils/getNormalizedProductDetails.js.map +1 -1
- 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.d.ts.map +1 -1
- package/lib/resolvers/queries/filters/searchAssortments.js +2 -7
- package/lib/resolvers/queries/filters/searchAssortments.js.map +1 -1
- package/lib/resolvers/queries/filters/searchProducts.d.ts.map +1 -1
- package/lib/resolvers/queries/filters/searchProducts.js +3 -8
- 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.js +1 -1
- package/lib/roles/all.js.map +1 -1
- package/lib/roles/index.d.ts.map +1 -1
- package/lib/roles/index.js +1 -0
- package/lib/roles/index.js.map +1 -1
- package/lib/roles/loggedIn.d.ts.map +1 -1
- package/lib/roles/loggedIn.js +1 -0
- package/lib/roles/loggedIn.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/package.json +32 -16
- package/src/api-index.ts +4 -1
- package/src/context.ts +3 -3
- package/src/createGraphQLServer.ts +2 -2
- package/src/errors.ts +10 -4
- package/src/express/createERCMetadataMiddleware.ts +11 -5
- package/src/express/createMCPMiddleware.ts +91 -0
- package/src/express/createTempUploadMiddleware.ts +60 -0
- package/src/express/index.ts +37 -9
- package/src/fastify/ercMetadataHandler.ts +11 -5
- package/src/fastify/index.ts +34 -5
- package/src/fastify/mcpHandler.ts +97 -0
- package/src/fastify/tempUploadHandler.ts +52 -0
- 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/buildLocaleMap.test.ts +9 -5
- package/src/loaders/buildLocaleMap.ts +43 -9
- package/src/loaders/buildTextMap.ts +4 -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 -329
- 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/mcp/README.md +25 -0
- package/src/mcp/index.ts +313 -0
- package/src/mcp/tools/addProductAssignmentHandler.ts +118 -0
- package/src/mcp/tools/addProductMediaUploadHandler.ts +79 -0
- package/src/mcp/tools/countriesHandler.ts +60 -0
- package/src/mcp/tools/countryHandler.ts +40 -0
- package/src/mcp/tools/createLanguageHandler.ts +46 -0
- package/src/mcp/tools/createProduct.ts +75 -0
- package/src/mcp/tools/createProductVariationHandler.ts +93 -0
- package/src/mcp/tools/createProductVariationOptionHandler.ts +73 -0
- package/src/mcp/tools/currenciesHandler.ts +63 -0
- package/src/mcp/tools/currencyHandler.ts +40 -0
- package/src/mcp/tools/getProduct.ts +74 -0
- package/src/mcp/tools/index.ts +39 -0
- package/src/mcp/tools/languageHandler.ts +37 -0
- package/src/mcp/tools/languagesHandler.ts +54 -0
- package/src/mcp/tools/listProducts.ts +148 -0
- package/src/mcp/tools/productReviewsCountHandler.ts +36 -0
- package/src/mcp/tools/productReviewsHandler.ts +54 -0
- package/src/mcp/tools/productsCountHandler.ts +38 -0
- package/src/mcp/tools/publishProduct.ts +45 -0
- package/src/mcp/tools/removeLanguageHandler.ts +42 -0
- package/src/mcp/tools/removeProductAssignmentHandler.ts +61 -0
- package/src/mcp/tools/removeProductHandler.ts +40 -0
- package/src/mcp/tools/removeProductMediaHandler.ts +49 -0
- package/src/mcp/tools/removeProductVariationHandler.ts +51 -0
- package/src/mcp/tools/removeProductVariationOptionHandler.ts +58 -0
- package/src/mcp/tools/reorderProductMediaHandler.ts +48 -0
- package/src/mcp/tools/unPublishProduct.ts +46 -0
- package/src/mcp/tools/updateLanguageHandler.ts +47 -0
- package/src/mcp/tools/updateProduct.ts +51 -0
- package/src/mcp/tools/updateProductCommerceHandler.ts +79 -0
- package/src/mcp/tools/updateProductMediaTextsHandler.ts +56 -0
- package/src/mcp/tools/updateProductPlanHandler.ts +58 -0
- package/src/mcp/tools/updateProductSupplyHandler.ts +59 -0
- package/src/mcp/tools/updateProductTextsHandler.ts +59 -0
- package/src/mcp/tools/updateProductTokenizationHandler.ts +58 -0
- package/src/mcp/tools/updateProductWarehousingHandler.ts +54 -0
- package/src/mcp/utils/getNormalizedProductDetails.ts +42 -0
- package/src/mcp/utils/normalizeMediaUrl.ts +26 -0
- 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 +45 -2
- 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 -7
- package/src/resolvers/queries/filters/searchProducts.ts +3 -8
- 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 +1 -1
- package/src/roles/index.ts +1 -0
- package/src/roles/loggedIn.ts +1 -0
- 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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product-assortment-path-types.d.ts","sourceRoot":"","sources":["../../../../src/resolvers/type/product/product-assortment-path-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AAExF,MAAM,MAAM,UAAU,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,CAAC,EAAE,OAAO,EAAE,OAAO,KAAK,CAAC,CAAC;AACpF,MAAM,WAAW,gCAAgC;IAC/C,iBAAiB,EAAE,CACjB,IAAI,EAAE;QAAE,YAAY,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"product-assortment-path-types.d.ts","sourceRoot":"","sources":["../../../../src/resolvers/type/product/product-assortment-path-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AAExF,MAAM,MAAM,UAAU,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,CAAC,EAAE,OAAO,EAAE,OAAO,KAAK,CAAC,CAAC;AACpF,MAAM,WAAW,gCAAgC;IAC/C,iBAAiB,EAAE,CACjB,IAAI,EAAE;QAAE,YAAY,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,kBAAkB,EAAE,CAAA;KAAE,EAC9E,CAAC,EAAE,KAAK,EACR,OAAO,EAAE,OAAO,KACb,OAAO,CAAC,iBAAiB,CAAC,CAAC;CACjC;AAED,eAAO,MAAM,qBAAqB,EAAE,gCAOnC,CAAC"}
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import { ProductBundleItem } from '@unchainedshop/core-products';
|
|
2
2
|
export declare const BundleProduct: {
|
|
3
|
-
bundleItems(product: any):
|
|
3
|
+
bundleItems(product: any): ProductBundleItem[];
|
|
4
4
|
__resolveType: (product: import("@unchainedshop/core-products").Product) => string;
|
|
5
5
|
assortmentPaths(product: import("@unchainedshop/core-products").Product, params: {
|
|
6
6
|
forceLocale?: string;
|
|
7
|
-
}, { modules, loaders }: import("../../../context.js").Context): Promise<
|
|
8
|
-
links:
|
|
9
|
-
}
|
|
7
|
+
}, { modules, loaders }: import("../../../context.js").Context): Promise<{
|
|
8
|
+
links: import("@unchainedshop/core-assortments").AssortmentPathLink[];
|
|
9
|
+
}[]>;
|
|
10
10
|
media(product: import("@unchainedshop/core-products").Product, params: {
|
|
11
11
|
limit: number;
|
|
12
12
|
offset: number;
|
|
13
|
-
tags?:
|
|
14
|
-
}, { loaders, modules }: import("../../../context.js").Context): Promise<
|
|
13
|
+
tags?: string[];
|
|
14
|
+
}, { loaders, modules }: import("../../../context.js").Context): Promise<import("@unchainedshop/core-products").ProductMedia[]>;
|
|
15
15
|
reviews(product: import("@unchainedshop/core-products").Product, { limit, offset, sort, queryString, }: {
|
|
16
16
|
queryString?: string;
|
|
17
17
|
limit?: number;
|
|
18
18
|
offset?: number;
|
|
19
|
-
sort?:
|
|
20
|
-
}, { modules }: import("../../../context.js").Context): Promise<
|
|
19
|
+
sort?: import("@unchainedshop/utils").SortOption[];
|
|
20
|
+
}, { modules }: import("../../../context.js").Context): Promise<import("@unchainedshop/core-products").ProductReview[]>;
|
|
21
21
|
reviewsCount(product: import("@unchainedshop/core-products").Product, params: {
|
|
22
22
|
queryString?: string;
|
|
23
23
|
}, { modules }: import("../../../context.js").Context): Promise<number>;
|
|
@@ -26,10 +26,10 @@ export declare const BundleProduct: {
|
|
|
26
26
|
limit: number;
|
|
27
27
|
offset: number;
|
|
28
28
|
includeInactive: boolean;
|
|
29
|
-
}, { modules }: import("../../../context.js").Context): Promise<
|
|
29
|
+
}, { modules }: import("../../../context.js").Context): Promise<(typeof product)[]>;
|
|
30
30
|
status(product: import("@unchainedshop/core-products").Product, _: any, { modules }: import("../../../context.js").Context): import("@unchainedshop/core-products").ProductStatus;
|
|
31
31
|
texts(product: import("@unchainedshop/core-products").Product, { forceLocale, }: {
|
|
32
32
|
forceLocale?: string;
|
|
33
|
-
},
|
|
33
|
+
}, { locale, loaders }: import("../../../context.js").Context): Promise<import("@unchainedshop/core-products").ProductText>;
|
|
34
34
|
};
|
|
35
35
|
//# sourceMappingURL=product-bundle-types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product-bundle-types.d.ts","sourceRoot":"","sources":["../../../../src/resolvers/type/product/product-bundle-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AAGjE,eAAO,MAAM,aAAa;+BAGF,
|
|
1
|
+
{"version":3,"file":"product-bundle-types.d.ts","sourceRoot":"","sources":["../../../../src/resolvers/type/product/product-bundle-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AAGjE,eAAO,MAAM,aAAa;+BAGF,iBAAiB,EAAE;;;mBAIgd,CAAC;;;;;;;YAAwoB,CAAC;;;mBAAmiB,CAAC;aAAqB,CAAC;cAAsB,CAAC;YAAoB,CAAC;;;mBAA8T,CAAC;;;oBAAuP,CAAC;;;;;;;mBAAu6B,CAAC;;CADzsG,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product-catalog-price-types.d.ts","sourceRoot":"","sources":["../../../../src/resolvers/type/product/product-catalog-price-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AACxD,OAAO,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAC1D,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAE9C,MAAM,MAAM,wBAAwB,CAAC,CAAC,EAAE,CAAC,IAAI,CAC3C,YAAY,EAAE,YAAY,EAC1B,MAAM,EAAE,CAAC,EACT,OAAO,EAAE,OAAO,KACb,CAAC,CAAC;AAEP,MAAM,WAAW,8BAA8B;IAC7C,SAAS,EAAE,wBAAwB,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IAEpD,UAAU,EAAE,wBAAwB,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IAErD,OAAO,EAAE,wBAAwB,CAAC,KAAK,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC;IAC3D,QAAQ,EAAE,wBAAwB,CAAC,KAAK,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC;CAC9D;AAED,eAAO,MAAM,mBAAmB,EAAE,
|
|
1
|
+
{"version":3,"file":"product-catalog-price-types.d.ts","sourceRoot":"","sources":["../../../../src/resolvers/type/product/product-catalog-price-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AACxD,OAAO,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAC1D,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAE9C,MAAM,MAAM,wBAAwB,CAAC,CAAC,EAAE,CAAC,IAAI,CAC3C,YAAY,EAAE,YAAY,EAC1B,MAAM,EAAE,CAAC,EACT,OAAO,EAAE,OAAO,KACb,CAAC,CAAC;AAEP,MAAM,WAAW,8BAA8B;IAC7C,SAAS,EAAE,wBAAwB,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IAEpD,UAAU,EAAE,wBAAwB,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IAErD,OAAO,EAAE,wBAAwB,CAAC,KAAK,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC;IAC3D,QAAQ,EAAE,wBAAwB,CAAC,KAAK,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC;CAC9D;AAED,eAAO,MAAM,mBAAmB,EAAE,8BAajC,CAAC"}
|
|
@@ -5,13 +5,11 @@ export const ProductCatalogPrice = {
|
|
|
5
5
|
isNetPrice: ({ isNetPrice }) => {
|
|
6
6
|
return isNetPrice || false;
|
|
7
7
|
},
|
|
8
|
-
country: async ({ countryCode }, _, {
|
|
9
|
-
|
|
10
|
-
return modules.countries.findCountry({ isoCode: countryCode });
|
|
8
|
+
country: async ({ countryCode }, _, { loaders }) => {
|
|
9
|
+
return loaders.countryLoader.load({ isoCode: countryCode });
|
|
11
10
|
},
|
|
12
|
-
currency: async ({ currencyCode }, _, {
|
|
13
|
-
|
|
14
|
-
return modules.currencies.findCurrency({ isoCode: currencyCode });
|
|
11
|
+
currency: async ({ currencyCode }, _, { loaders }) => {
|
|
12
|
+
return loaders.currencyLoader.load({ isoCode: currencyCode });
|
|
15
13
|
},
|
|
16
14
|
};
|
|
17
15
|
//# sourceMappingURL=product-catalog-price-types.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product-catalog-price-types.js","sourceRoot":"","sources":["../../../../src/resolvers/type/product/product-catalog-price-types.ts"],"names":[],"mappings":"AAoBA,MAAM,CAAC,MAAM,mBAAmB,GAAmC;IACjE,SAAS,EAAE,CAAC,EAAE,SAAS,EAAE,EAAE,EAAE;QAC3B,OAAO,SAAS,IAAI,KAAK,CAAC;IAC5B,CAAC;IACD,UAAU,EAAE,CAAC,EAAE,UAAU,EAAE,EAAE,EAAE;QAC7B,OAAO,UAAU,IAAI,KAAK,CAAC;IAC7B,CAAC;IACD,OAAO,EAAE,KAAK,EAAE,EAAE,WAAW,EAAE,EAAE,CAAC,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;QACjD,
|
|
1
|
+
{"version":3,"file":"product-catalog-price-types.js","sourceRoot":"","sources":["../../../../src/resolvers/type/product/product-catalog-price-types.ts"],"names":[],"mappings":"AAoBA,MAAM,CAAC,MAAM,mBAAmB,GAAmC;IACjE,SAAS,EAAE,CAAC,EAAE,SAAS,EAAE,EAAE,EAAE;QAC3B,OAAO,SAAS,IAAI,KAAK,CAAC;IAC5B,CAAC;IACD,UAAU,EAAE,CAAC,EAAE,UAAU,EAAE,EAAE,EAAE;QAC7B,OAAO,UAAU,IAAI,KAAK,CAAC;IAC7B,CAAC;IACD,OAAO,EAAE,KAAK,EAAE,EAAE,WAAW,EAAE,EAAE,CAAC,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;QACjD,OAAO,OAAO,CAAC,aAAa,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,WAAW,EAAE,CAAC,CAAC;IAC9D,CAAC;IACD,QAAQ,EAAE,KAAK,EAAE,EAAE,YAAY,EAAE,EAAE,CAAC,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;QACnD,OAAO,OAAO,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,YAAY,EAAE,CAAC,CAAC;IAChE,CAAC;CACF,CAAC"}
|
|
@@ -3,48 +3,48 @@ import { Context } from '../../../context.js';
|
|
|
3
3
|
export declare const ConfigurableProduct: {
|
|
4
4
|
assignments(product: ProductType, params: {
|
|
5
5
|
includeInactive: boolean;
|
|
6
|
-
}, { modules }: Context): Promise<
|
|
6
|
+
}, { modules }: Context): Promise<{
|
|
7
7
|
assignment: ProductAssignment;
|
|
8
8
|
product: typeof product;
|
|
9
|
-
}
|
|
9
|
+
}[]>;
|
|
10
10
|
products(product: ProductType, { vectors, includeInactive, }: {
|
|
11
|
-
vectors:
|
|
11
|
+
vectors: ProductConfiguration[];
|
|
12
12
|
includeInactive: boolean;
|
|
13
|
-
}, { modules }: Context): Promise<
|
|
14
|
-
catalogPriceRange(product: ProductType, { quantity, vectors,
|
|
15
|
-
|
|
13
|
+
}, { modules }: Context): Promise<(typeof product)[]>;
|
|
14
|
+
catalogPriceRange(product: ProductType, { quantity, vectors, currencyCode, includeInactive, }: {
|
|
15
|
+
currencyCode?: string;
|
|
16
16
|
includeInactive: boolean;
|
|
17
17
|
quantity: number;
|
|
18
|
-
vectors:
|
|
18
|
+
vectors: ProductConfiguration[];
|
|
19
19
|
}, requestContext: Context): Promise<ProductPriceRange>;
|
|
20
20
|
variations(product: ProductType, { limit, offset, }: {
|
|
21
21
|
limit: number;
|
|
22
22
|
offset: number;
|
|
23
|
-
}, { modules }: Context): Promise<
|
|
24
|
-
simulatedPriceRange(product: ProductType, {
|
|
25
|
-
|
|
23
|
+
}, { modules }: Context): Promise<ProductVariation[]>;
|
|
24
|
+
simulatedPriceRange(product: ProductType, { currencyCode: forcedCurrencyCode, quantity, useNetPrice, vectors, includeInactive, }: {
|
|
25
|
+
currencyCode?: string;
|
|
26
26
|
includeInactive: boolean;
|
|
27
27
|
quantity?: number;
|
|
28
|
-
vectors:
|
|
28
|
+
vectors: ProductConfiguration[];
|
|
29
29
|
useNetPrice: boolean;
|
|
30
30
|
}, requestContext: Context): Promise<ProductPriceRange>;
|
|
31
31
|
__resolveType: (product: ProductType) => string;
|
|
32
32
|
assortmentPaths(product: ProductType, params: {
|
|
33
33
|
forceLocale?: string;
|
|
34
|
-
}, { modules, loaders }: Context): Promise<
|
|
35
|
-
links:
|
|
36
|
-
}
|
|
34
|
+
}, { modules, loaders }: Context): Promise<{
|
|
35
|
+
links: import("@unchainedshop/core-assortments").AssortmentPathLink[];
|
|
36
|
+
}[]>;
|
|
37
37
|
media(product: ProductType, params: {
|
|
38
38
|
limit: number;
|
|
39
39
|
offset: number;
|
|
40
|
-
tags?:
|
|
41
|
-
}, { loaders, modules }: Context): Promise<
|
|
40
|
+
tags?: string[];
|
|
41
|
+
}, { loaders, modules }: Context): Promise<import("@unchainedshop/core-products").ProductMedia[]>;
|
|
42
42
|
reviews(product: ProductType, { limit, offset, sort, queryString, }: {
|
|
43
43
|
queryString?: string;
|
|
44
44
|
limit?: number;
|
|
45
45
|
offset?: number;
|
|
46
|
-
sort?:
|
|
47
|
-
}, { modules }: Context): Promise<
|
|
46
|
+
sort?: import("@unchainedshop/utils").SortOption[];
|
|
47
|
+
}, { modules }: Context): Promise<import("@unchainedshop/core-products").ProductReview[]>;
|
|
48
48
|
reviewsCount(product: ProductType, params: {
|
|
49
49
|
queryString?: string;
|
|
50
50
|
}, { modules }: Context): Promise<number>;
|
|
@@ -53,10 +53,10 @@ export declare const ConfigurableProduct: {
|
|
|
53
53
|
limit: number;
|
|
54
54
|
offset: number;
|
|
55
55
|
includeInactive: boolean;
|
|
56
|
-
}, { modules }: Context): Promise<
|
|
56
|
+
}, { modules }: Context): Promise<(typeof product)[]>;
|
|
57
57
|
status(product: ProductType, _: any, { modules }: Context): import("@unchainedshop/core-products").ProductStatus;
|
|
58
58
|
texts(product: ProductType, { forceLocale, }: {
|
|
59
59
|
forceLocale?: string;
|
|
60
|
-
},
|
|
60
|
+
}, { locale, loaders }: Context): Promise<import("@unchainedshop/core-products").ProductText>;
|
|
61
61
|
};
|
|
62
62
|
//# sourceMappingURL=product-configurable-types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product-configurable-types.d.ts","sourceRoot":"","sources":["../../../../src/resolvers/type/product/product-configurable-types.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,IAAI,WAAW,EACtB,iBAAiB,EACjB,oBAAoB,EACpB,iBAAiB,EACjB,gBAAgB,EACjB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAG9C,eAAO,MAAM,mBAAmB;yBAInB,WAAW,UACZ;QACN,eAAe,EAAE,OAAO,CAAC;KAC1B,eACY,OAAO,GACnB,OAAO,CACR
|
|
1
|
+
{"version":3,"file":"product-configurable-types.d.ts","sourceRoot":"","sources":["../../../../src/resolvers/type/product/product-configurable-types.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,IAAI,WAAW,EACtB,iBAAiB,EACjB,oBAAoB,EACpB,iBAAiB,EACjB,gBAAgB,EACjB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAG9C,eAAO,MAAM,mBAAmB;yBAInB,WAAW,UACZ;QACN,eAAe,EAAE,OAAO,CAAC;KAC1B,eACY,OAAO,GACnB,OAAO,CACR;QACE,UAAU,EAAE,iBAAiB,CAAC;QAC9B,OAAO,EAAE,OAAO,OAAO,CAAC;KACzB,EAAE,CACJ;sBAKU,WAAW,iCAIjB;QACD,OAAO,EAAE,oBAAoB,EAAE,CAAC;QAChC,eAAe,EAAE,OAAO,CAAC;KAC1B,eACY,OAAO,GACnB,OAAO,CAAC,CAAC,OAAO,OAAO,CAAC,EAAE,CAAC;+BAOnB,WAAW,yDAMjB;QACD,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,eAAe,EAAE,OAAO,CAAC;QACzB,QAAQ,EAAE,MAAM,CAAC;QACjB,OAAO,EAAE,oBAAoB,EAAE,CAAC;KACjC,kBACe,OAAO,GACtB,OAAO,CAAC,iBAAiB,CAAC;wBAYlB,WAAW,sBAIjB;QACD,KAAK,EAAE,MAAM,CAAC;QACd,MAAM,EAAE,MAAM,CAAC;KAChB,eACY,OAAO,GACnB,OAAO,CAAC,gBAAgB,EAAE,CAAC;iCASnB,WAAW,0FAOjB;QACD,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,eAAe,EAAE,OAAO,CAAC;QACzB,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,OAAO,EAAE,oBAAoB,EAAE,CAAC;QAChC,WAAW,EAAE,OAAO,CAAC;KACtB,kBACe,OAAO,GACtB,OAAO,CAAC,iBAAiB,CAAC;;;mBAlE3B,CAAF;;;;;;;YA0BI,CAAC;;;mBA8BD,CAAL;aACM,CAAC;cACD,CAAC;YACW,CAAC;;;mBAU+B,CAAC;;;oBASzC,CAAC;;;;;;;mBAmC0D,CAAC;;CADtE,CAAC"}
|
|
@@ -9,28 +9,26 @@ export const ConfigurableProduct = {
|
|
|
9
9
|
includeInactive,
|
|
10
10
|
});
|
|
11
11
|
},
|
|
12
|
-
async catalogPriceRange(product, { quantity, vectors,
|
|
13
|
-
const {
|
|
14
|
-
const currencyCode = forcedCurrencyCode || requestContext.currencyContext;
|
|
12
|
+
async catalogPriceRange(product, { quantity, vectors, currencyCode, includeInactive, }, requestContext) {
|
|
13
|
+
const { countryCode, modules } = requestContext;
|
|
15
14
|
return modules.products.prices.catalogPriceRange(product, {
|
|
16
15
|
quantity,
|
|
17
16
|
vectors,
|
|
18
17
|
includeInactive,
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
countryCode,
|
|
19
|
+
currencyCode,
|
|
21
20
|
});
|
|
22
21
|
},
|
|
23
22
|
async variations(product, { limit = 10, offset = 0, }, { modules }) {
|
|
24
|
-
// TODO: use loader?
|
|
25
23
|
return modules.products.variations.findProductVariations({
|
|
26
24
|
productId: product._id,
|
|
27
25
|
limit,
|
|
28
26
|
offset,
|
|
29
27
|
});
|
|
30
28
|
},
|
|
31
|
-
async simulatedPriceRange(product, {
|
|
32
|
-
const {
|
|
33
|
-
const
|
|
29
|
+
async simulatedPriceRange(product, { currencyCode: forcedCurrencyCode, quantity, useNetPrice, vectors, includeInactive, }, requestContext) {
|
|
30
|
+
const { countryCode, modules, services } = requestContext;
|
|
31
|
+
const currencyCode = forcedCurrencyCode || requestContext.currencyCode;
|
|
34
32
|
const products = await modules.products.proxyProducts(product, vectors, {
|
|
35
33
|
includeInactive,
|
|
36
34
|
});
|
|
@@ -38,8 +36,8 @@ export const ConfigurableProduct = {
|
|
|
38
36
|
const pricingContext = {
|
|
39
37
|
product: proxyProduct,
|
|
40
38
|
user: requestContext.user,
|
|
41
|
-
|
|
42
|
-
|
|
39
|
+
countryCode,
|
|
40
|
+
currencyCode,
|
|
43
41
|
quantity,
|
|
44
42
|
};
|
|
45
43
|
const pricing = await services.products.simulateProductPricing(pricingContext);
|
|
@@ -50,7 +48,7 @@ export const ConfigurableProduct = {
|
|
|
50
48
|
...unitPrice,
|
|
51
49
|
isNetPrice: useNetPrice,
|
|
52
50
|
isTaxable: pricing.taxSum() > 0,
|
|
53
|
-
currencyCode: pricing.
|
|
51
|
+
currencyCode: pricing.currencyCode,
|
|
54
52
|
};
|
|
55
53
|
}))).filter(Boolean);
|
|
56
54
|
if (!filteredPrices.length)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product-configurable-types.js","sourceRoot":"","sources":["../../../../src/resolvers/type/product/product-configurable-types.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAE7C,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,GAAG,OAAO;IAEV,KAAK,CAAC,WAAW,CACf,OAAoB,EACpB,MAEC,EACD,EAAE,OAAO,EAAW;QAOpB,OAAO,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;IAC5D,CAAC;IAED,KAAK,CAAC,QAAQ,CACZ,OAAoB,EACpB,EACE,OAAO,EACP,eAAe,GAIhB,EACD,EAAE,OAAO,EAAW;QAEpB,OAAO,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAC,OAAO,EAAE,OAAO,EAAE;YACtD,eAAe;SAChB,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,iBAAiB,CACrB,OAAoB,EACpB,EACE,QAAQ,EACR,OAAO,EACP,
|
|
1
|
+
{"version":3,"file":"product-configurable-types.js","sourceRoot":"","sources":["../../../../src/resolvers/type/product/product-configurable-types.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAE7C,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,GAAG,OAAO;IAEV,KAAK,CAAC,WAAW,CACf,OAAoB,EACpB,MAEC,EACD,EAAE,OAAO,EAAW;QAOpB,OAAO,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;IAC5D,CAAC;IAED,KAAK,CAAC,QAAQ,CACZ,OAAoB,EACpB,EACE,OAAO,EACP,eAAe,GAIhB,EACD,EAAE,OAAO,EAAW;QAEpB,OAAO,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAC,OAAO,EAAE,OAAO,EAAE;YACtD,eAAe;SAChB,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,iBAAiB,CACrB,OAAoB,EACpB,EACE,QAAQ,EACR,OAAO,EACP,YAAY,EACZ,eAAe,GAMhB,EACD,cAAuB;QAEvB,MAAM,EAAE,WAAW,EAAE,OAAO,EAAE,GAAG,cAAc,CAAC;QAChD,OAAO,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC,iBAAiB,CAAC,OAAO,EAAE;YACxD,QAAQ;YACR,OAAO;YACP,eAAe;YACf,WAAW;YACX,YAAY;SACb,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,UAAU,CACd,OAAoB,EACpB,EACE,KAAK,GAAG,EAAE,EACV,MAAM,GAAG,CAAC,GAIX,EACD,EAAE,OAAO,EAAW;QAEpB,OAAO,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAC,qBAAqB,CAAC;YACvD,SAAS,EAAE,OAAO,CAAC,GAAG;YACtB,KAAK;YACL,MAAM;SACP,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,mBAAmB,CACvB,OAAoB,EACpB,EACE,YAAY,EAAE,kBAAkB,EAChC,QAAQ,EACR,WAAW,EACX,OAAO,EACP,eAAe,GAOhB,EACD,cAAuB;QAEvB,MAAM,EAAE,WAAW,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,cAAc,CAAC;QAE1D,MAAM,YAAY,GAAG,kBAAkB,IAAI,cAAc,CAAC,YAAY,CAAC;QAEvE,MAAM,QAAQ,GAAG,MAAM,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAC,OAAO,EAAE,OAAO,EAAE;YACtE,eAAe;SAChB,CAAC,CAAC;QAEH,MAAM,cAAc,GAAG,CACrB,MAAM,OAAO,CAAC,GAAG,CACf,QAAQ,CAAC,GAAG,CAAC,KAAK,EAAE,YAAY,EAAE,EAAE;YAClC,MAAM,cAAc,GAAG;gBACrB,OAAO,EAAE,YAAY;gBACrB,IAAI,EAAE,cAAc,CAAC,IAAI;gBACzB,WAAW;gBACX,YAAY;gBACZ,QAAQ;aACT,CAAC;YAEF,MAAM,OAAO,GAAG,MAAM,QAAQ,CAAC,QAAQ,CAAC,sBAAsB,CAAC,cAAc,CAAC,CAAC;YAC/E,IAAI,CAAC,OAAO;gBAAE,OAAO,IAAI,CAAC;YAC1B,MAAM,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC,EAAE,WAAW,EAAE,CAAC,CAAC;YAErD,OAAO;gBACL,GAAG,SAAS;gBACZ,UAAU,EAAE,WAAW;gBACvB,SAAS,EAAE,OAAO,CAAC,MAAM,EAAE,GAAG,CAAC;gBAC/B,YAAY,EAAE,OAAO,CAAC,YAAY;aACnC,CAAC;QACJ,CAAC,CAAC,CACH,CACF,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QAElB,IAAI,CAAC,cAAc,CAAC,MAAM;YAAE,OAAO,IAAI,CAAC;QAExC,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,GAAG,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC,UAAU,CAAC;YAChE,SAAS,EAAE,OAAO,CAAC,GAAa;YAChC,MAAM,EAAE,cAAc;SACvB,CAAC,CAAC;QAEH,OAAO;YACL,QAAQ;YACR,QAAQ;SACT,CAAC;IACJ,CAAC;CACF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product-discount.js","sourceRoot":"","sources":["../../../../src/resolvers/type/product/product-discount.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AAE9D,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,SAAS,EAAE,KAAK,EAAE,eAAoC,EAAE,EAAE;QACxD,MAAM,SAAS,GAAG,uBAAuB,CAAC,UAAU,CAAC,eAAe,CAAC,WAAW,CAAC,CAAC;QAClF,IAAI,CAAC,SAAS;YAAE,OAAO,IAAI,CAAC;QAC5B,OAAO;YACL,GAAG,EAAE,SAAS,CAAC,GAAG;YAClB,KAAK,EAAE,SAAS,CAAC,KAAK;YACtB,OAAO,EAAE,SAAS,CAAC,OAAO;YAC1B,uBAAuB,EAAE,MAAM,SAAS,CAAC,uBAAuB,CAAC,eAAe,CAAC,IAAI,CAAC;YACtF,sBAAsB,EAAE,MAAM,SAAS,CAAC,sBAAsB,EAAE;SACjE,CAAC;IACJ,CAAC;IAED,KAAK,CAAC,eAAoC;QACxC,MAAM,EAAE,KAAK,EAAE,GAAG,eAAe,CAAC;QAClC,IAAI,eAAe,CAAC,KAAK,EAAE,CAAC;YAC1B,OAAO;gBACL,MAAM,EAAE,KAAK,CAAC,MAAM;gBACpB,
|
|
1
|
+
{"version":3,"file":"product-discount.js","sourceRoot":"","sources":["../../../../src/resolvers/type/product/product-discount.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AAE9D,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,SAAS,EAAE,KAAK,EAAE,eAAoC,EAAE,EAAE;QACxD,MAAM,SAAS,GAAG,uBAAuB,CAAC,UAAU,CAAC,eAAe,CAAC,WAAW,CAAC,CAAC;QAClF,IAAI,CAAC,SAAS;YAAE,OAAO,IAAI,CAAC;QAC5B,OAAO;YACL,GAAG,EAAE,SAAS,CAAC,GAAG;YAClB,KAAK,EAAE,SAAS,CAAC,KAAK;YACtB,OAAO,EAAE,SAAS,CAAC,OAAO;YAC1B,uBAAuB,EAAE,MAAM,SAAS,CAAC,uBAAuB,CAAC,eAAe,CAAC,IAAI,CAAC;YACtF,sBAAsB,EAAE,MAAM,SAAS,CAAC,sBAAsB,EAAE;SACjE,CAAC;IACJ,CAAC;IAED,KAAK,CAAC,eAAoC;QACxC,MAAM,EAAE,KAAK,EAAE,GAAG,eAAe,CAAC;QAClC,IAAI,eAAe,CAAC,KAAK,EAAE,CAAC;YAC1B,OAAO;gBACL,MAAM,EAAE,KAAK,CAAC,MAAM;gBACpB,YAAY,EAAE,KAAK,CAAC,YAAY;aACjC,CAAC;QACJ,CAAC;QACD,OAAO,IAAI,CAAC;IACd,CAAC;CACF,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export const ProductMedia = {
|
|
2
2
|
async texts(obj, { forceLocale }, requestContext) {
|
|
3
|
-
const {
|
|
3
|
+
const { locale, loaders } = requestContext;
|
|
4
4
|
return loaders.productMediaTextLoader.load({
|
|
5
5
|
productMediaId: obj._id,
|
|
6
|
-
locale: forceLocale
|
|
6
|
+
locale: forceLocale ? new Intl.Locale(forceLocale) : locale,
|
|
7
7
|
});
|
|
8
8
|
},
|
|
9
9
|
async file(obj, _, requestContext) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product-media-types.js","sourceRoot":"","sources":["../../../../src/resolvers/type/product/product-media-types.ts"],"names":[],"mappings":"AAWA,MAAM,CAAC,MAAM,YAAY,GAA4B;IACnD,KAAK,CAAC,KAAK,CAAC,GAAG,EAAE,EAAE,WAAW,EAAE,EAAE,cAAc;QAC9C,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"product-media-types.js","sourceRoot":"","sources":["../../../../src/resolvers/type/product/product-media-types.ts"],"names":[],"mappings":"AAWA,MAAM,CAAC,MAAM,YAAY,GAA4B;IACnD,KAAK,CAAC,KAAK,CAAC,GAAG,EAAE,EAAE,WAAW,EAAE,EAAE,cAAc;QAC9C,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,cAAc,CAAC;QAC3C,OAAO,OAAO,CAAC,sBAAsB,CAAC,IAAI,CAAC;YACzC,cAAc,EAAE,GAAG,CAAC,GAAG;YACvB,MAAM,EAAE,WAAW,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,MAAM;SAC5D,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,EAAE,cAAc;QAC/B,MAAM,EAAE,OAAO,EAAE,GAAG,cAAc,CAAC;QACnC,OAAO,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC;YAC7B,MAAM,EAAE,GAAG,CAAC,OAAO;SACpB,CAAC,CAAC;IACL,CAAC;CACF,CAAC"}
|
|
@@ -1,43 +1,43 @@
|
|
|
1
1
|
import { ProductConfiguration, ProductPrice, Product as ProductType } from '@unchainedshop/core-products';
|
|
2
2
|
import { Context } from '../../../context.js';
|
|
3
3
|
export declare const PlanProduct: {
|
|
4
|
-
catalogPrice(product: ProductType, { quantity,
|
|
4
|
+
catalogPrice(product: ProductType, { quantity, currencyCode: forcedCurrencyCode }: {
|
|
5
5
|
quantity?: number;
|
|
6
|
-
|
|
6
|
+
currencyCode?: string;
|
|
7
7
|
}, requestContext: Context): Promise<ProductPrice>;
|
|
8
|
-
simulatedPrice(
|
|
8
|
+
simulatedPrice(product: ProductType, { currencyCode: forcedCurrencyCode, quantity, useNetPrice, configuration, }: {
|
|
9
9
|
quantity?: number;
|
|
10
|
-
|
|
10
|
+
currencyCode?: string;
|
|
11
11
|
useNetPrice?: boolean;
|
|
12
|
-
configuration?:
|
|
12
|
+
configuration?: ProductConfiguration[];
|
|
13
13
|
}, requestContext: Context): Promise<ProductPrice>;
|
|
14
|
-
leveledCatalogPrices(
|
|
15
|
-
|
|
16
|
-
}, requestContext: Context): Promise<
|
|
14
|
+
leveledCatalogPrices(product: ProductType, { currencyCode: forcedCurrencyCode }: {
|
|
15
|
+
currencyCode?: string;
|
|
16
|
+
}, requestContext: Context): Promise<{
|
|
17
17
|
minQuantity: number;
|
|
18
18
|
maxQuantity: number;
|
|
19
19
|
price: ProductPrice;
|
|
20
|
-
}
|
|
20
|
+
}[]>;
|
|
21
21
|
salesUnit({ commerce }: ProductType): string;
|
|
22
22
|
salesQuantityPerUnit({ commerce }: ProductType): string;
|
|
23
23
|
defaultOrderQuantity({ commerce }: ProductType): number;
|
|
24
24
|
__resolveType: (product: ProductType) => string;
|
|
25
25
|
assortmentPaths(product: ProductType, params: {
|
|
26
26
|
forceLocale?: string;
|
|
27
|
-
}, { modules, loaders }: Context): Promise<
|
|
28
|
-
links:
|
|
29
|
-
}
|
|
27
|
+
}, { modules, loaders }: Context): Promise<{
|
|
28
|
+
links: import("@unchainedshop/core-assortments").AssortmentPathLink[];
|
|
29
|
+
}[]>;
|
|
30
30
|
media(product: ProductType, params: {
|
|
31
31
|
limit: number;
|
|
32
32
|
offset: number;
|
|
33
|
-
tags?:
|
|
34
|
-
}, { loaders, modules }: Context): Promise<
|
|
33
|
+
tags?: string[];
|
|
34
|
+
}, { loaders, modules }: Context): Promise<import("@unchainedshop/core-products").ProductMedia[]>;
|
|
35
35
|
reviews(product: ProductType, { limit, offset, sort, queryString, }: {
|
|
36
36
|
queryString?: string;
|
|
37
37
|
limit?: number;
|
|
38
38
|
offset?: number;
|
|
39
|
-
sort?:
|
|
40
|
-
}, { modules }: Context): Promise<
|
|
39
|
+
sort?: import("@unchainedshop/utils").SortOption[];
|
|
40
|
+
}, { modules }: Context): Promise<import("@unchainedshop/core-products").ProductReview[]>;
|
|
41
41
|
reviewsCount(product: ProductType, params: {
|
|
42
42
|
queryString?: string;
|
|
43
43
|
}, { modules }: Context): Promise<number>;
|
|
@@ -46,10 +46,10 @@ export declare const PlanProduct: {
|
|
|
46
46
|
limit: number;
|
|
47
47
|
offset: number;
|
|
48
48
|
includeInactive: boolean;
|
|
49
|
-
}, { modules }: Context): Promise<
|
|
49
|
+
}, { modules }: Context): Promise<(typeof product)[]>;
|
|
50
50
|
status(product: ProductType, _: any, { modules }: Context): import("@unchainedshop/core-products").ProductStatus;
|
|
51
51
|
texts(product: ProductType, { forceLocale, }: {
|
|
52
52
|
forceLocale?: string;
|
|
53
|
-
},
|
|
53
|
+
}, { locale, loaders }: Context): Promise<import("@unchainedshop/core-products").ProductText>;
|
|
54
54
|
};
|
|
55
55
|
//# sourceMappingURL=product-plan-types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product-plan-types.d.ts","sourceRoot":"","sources":["../../../../src/resolvers/type/product/product-plan-types.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EACpB,YAAY,EACZ,OAAO,IAAI,WAAW,EACvB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAG9C,eAAO,MAAM,WAAW;0BAIX,WAAW,
|
|
1
|
+
{"version":3,"file":"product-plan-types.d.ts","sourceRoot":"","sources":["../../../../src/resolvers/type/product/product-plan-types.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EACpB,YAAY,EACZ,OAAO,IAAI,WAAW,EACvB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAG9C,eAAO,MAAM,WAAW;0BAIX,WAAW,kDAC4B;QAAE,QAAQ,CAAC,EAAE,MAAM,CAAC;QAAC,YAAY,CAAC,EAAE,MAAM,CAAA;KAAE,kBAC5E,OAAO,GACtB,OAAO,CAAC,YAAY,CAAC;4BAWb,WAAW,+EAMjB;QACD,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,WAAW,CAAC,EAAE,OAAO,CAAC;QACtB,aAAa,CAAC,EAAE,oBAAoB,EAAE,CAAC;KACxC,kBACe,OAAO,GACtB,OAAO,CAAC,YAAY,CAAC;kCA0Bb,WAAW,wCACkB;QAAE,YAAY,CAAC,EAAE,MAAM,CAAA;KAAE,kBAC/C,OAAO,GACtB,OAAO,CACR;QACE,WAAW,EAAE,MAAM,CAAC;QACpB,WAAW,EAAE,MAAM,CAAC;QACpB,KAAK,EAAE,YAAY,CAAC;KACrB,EAAE,CACJ;4BAMuB,WAAW,GAAG,MAAM;uCAGT,WAAW,GAAG,MAAM;uCAGpB,WAAW,GAAG,MAAM;;;mBA1DxC,CAAC;;;;;;;YAyBX,CAAA;;;mBAsB8B,CAAC;aAChC,CAAC;cAAsB,CAAC;YAAoB,CAAC;;;mBASjD,CAAA;;;oBAKmI,CAAC;;;;;;;mBAAu6B,CAAC;;CAD7iC,CAAC"}
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import { Product } from './product-types.js';
|
|
2
2
|
export const PlanProduct = {
|
|
3
3
|
...Product,
|
|
4
|
-
async catalogPrice(product, { quantity,
|
|
5
|
-
const { modules,
|
|
6
|
-
const
|
|
4
|
+
async catalogPrice(product, { quantity, currencyCode: forcedCurrencyCode }, requestContext) {
|
|
5
|
+
const { modules, countryCode } = requestContext;
|
|
6
|
+
const currencyCode = forcedCurrencyCode || requestContext.currencyCode;
|
|
7
7
|
return modules.products.prices.price(product, {
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
countryCode,
|
|
9
|
+
currencyCode,
|
|
10
10
|
quantity,
|
|
11
11
|
});
|
|
12
12
|
},
|
|
13
|
-
async simulatedPrice(
|
|
14
|
-
const {
|
|
15
|
-
const
|
|
13
|
+
async simulatedPrice(product, { currencyCode: forcedCurrencyCode, quantity, useNetPrice, configuration, }, requestContext) {
|
|
14
|
+
const { countryCode, user, services } = requestContext;
|
|
15
|
+
const currencyCode = forcedCurrencyCode || requestContext.currencyCode;
|
|
16
16
|
const pricingContext = {
|
|
17
|
-
product
|
|
17
|
+
product,
|
|
18
18
|
user,
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
countryCode,
|
|
20
|
+
currencyCode,
|
|
21
21
|
quantity,
|
|
22
22
|
configuration,
|
|
23
23
|
};
|
|
@@ -29,13 +29,13 @@ export const PlanProduct = {
|
|
|
29
29
|
...unitPrice,
|
|
30
30
|
isNetPrice: useNetPrice,
|
|
31
31
|
isTaxable: pricing.taxSum() > 0,
|
|
32
|
-
currencyCode: pricing.
|
|
32
|
+
currencyCode: pricing.currencyCode,
|
|
33
33
|
};
|
|
34
34
|
},
|
|
35
|
-
async leveledCatalogPrices(
|
|
36
|
-
const {
|
|
37
|
-
const
|
|
38
|
-
return modules.products.prices.catalogPricesLeveled(
|
|
35
|
+
async leveledCatalogPrices(product, { currencyCode: forcedCurrencyCode }, requestContext) {
|
|
36
|
+
const { countryCode, modules } = requestContext;
|
|
37
|
+
const currencyCode = forcedCurrencyCode || requestContext.currencyCode;
|
|
38
|
+
return modules.products.prices.catalogPricesLeveled(product, { currencyCode, countryCode });
|
|
39
39
|
},
|
|
40
40
|
salesUnit({ commerce }) {
|
|
41
41
|
return commerce?.salesUnit;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product-plan-types.js","sourceRoot":"","sources":["../../../../src/resolvers/type/product/product-plan-types.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAE7C,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,GAAG,OAAO;IAEV,KAAK,CAAC,YAAY,CAChB,OAAoB,EACpB,EAAE,QAAQ,EAAE,
|
|
1
|
+
{"version":3,"file":"product-plan-types.js","sourceRoot":"","sources":["../../../../src/resolvers/type/product/product-plan-types.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAE7C,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,GAAG,OAAO;IAEV,KAAK,CAAC,YAAY,CAChB,OAAoB,EACpB,EAAE,QAAQ,EAAE,YAAY,EAAE,kBAAkB,EAAgD,EAC5F,cAAuB;QAEvB,MAAM,EAAE,OAAO,EAAE,WAAW,EAAE,GAAG,cAAc,CAAC;QAChD,MAAM,YAAY,GAAG,kBAAkB,IAAI,cAAc,CAAC,YAAY,CAAC;QACvE,OAAO,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,OAAO,EAAE;YAC5C,WAAW;YACX,YAAY;YACZ,QAAQ;SACT,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,cAAc,CAClB,OAAoB,EACpB,EACE,YAAY,EAAE,kBAAkB,EAChC,QAAQ,EACR,WAAW,EACX,aAAa,GAMd,EACD,cAAuB;QAEvB,MAAM,EAAE,WAAW,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,cAAc,CAAC;QACvD,MAAM,YAAY,GAAG,kBAAkB,IAAI,cAAc,CAAC,YAAY,CAAC;QAEvE,MAAM,cAAc,GAAG;YACrB,OAAO;YACP,IAAI;YACJ,WAAW;YACX,YAAY;YACZ,QAAQ;YACR,aAAa;SACd,CAAC;QAEF,MAAM,OAAO,GAAG,MAAM,QAAQ,CAAC,QAAQ,CAAC,sBAAsB,CAAC,cAAc,CAAC,CAAC;QAC/E,IAAI,CAAC,OAAO;YAAE,OAAO,IAAI,CAAC;QAC1B,MAAM,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC,EAAE,WAAW,EAAE,CAAC,CAAC;QAErD,OAAO;YACL,GAAG,SAAS;YACZ,UAAU,EAAE,WAAW;YACvB,SAAS,EAAE,OAAO,CAAC,MAAM,EAAE,GAAG,CAAC;YAC/B,YAAY,EAAE,OAAO,CAAC,YAAY;SACnC,CAAC;IACJ,CAAC;IAED,KAAK,CAAC,oBAAoB,CACxB,OAAoB,EACpB,EAAE,YAAY,EAAE,kBAAkB,EAA6B,EAC/D,cAAuB;QAQvB,MAAM,EAAE,WAAW,EAAE,OAAO,EAAE,GAAG,cAAc,CAAC;QAChD,MAAM,YAAY,GAAG,kBAAkB,IAAI,cAAc,CAAC,YAAY,CAAC;QACvE,OAAO,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC,oBAAoB,CAAC,OAAO,EAAE,EAAE,YAAY,EAAE,WAAW,EAAE,CAAC,CAAC;IAC9F,CAAC;IAED,SAAS,CAAC,EAAE,QAAQ,EAAe;QACjC,OAAO,QAAQ,EAAE,SAAS,CAAC;IAC7B,CAAC;IACD,oBAAoB,CAAC,EAAE,QAAQ,EAAe;QAC5C,OAAO,QAAQ,EAAE,oBAAoB,CAAC;IACxC,CAAC;IACD,oBAAoB,CAAC,EAAE,QAAQ,EAAe;QAC5C,OAAO,QAAQ,EAAE,oBAAoB,CAAC;IACxC,CAAC;CACF,CAAC"}
|
|
@@ -9,7 +9,7 @@ export interface ProductReviewHelperTypes {
|
|
|
9
9
|
voteCount: HelperType<{
|
|
10
10
|
type: ProductReviewVoteType;
|
|
11
11
|
}, number>;
|
|
12
|
-
ownVotes: HelperType<never, Promise<
|
|
12
|
+
ownVotes: HelperType<never, Promise<ProductVote[]>>;
|
|
13
13
|
}
|
|
14
14
|
export declare const ProductReview: ProductReviewHelperTypes;
|
|
15
15
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product-review-types.d.ts","sourceRoot":"","sources":["../../../../src/resolvers/type/product/product-review-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AACvD,OAAO,EACL,aAAa,IAAI,iBAAiB,EAClC,qBAAqB,EACrB,WAAW,EACZ,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAC;AAEjD,KAAK,UAAU,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,OAAO,EAAE,iBAAiB,EAAE,MAAM,EAAE,CAAC,EAAE,OAAO,EAAE,OAAO,KAAK,CAAC,CAAC;AAEvF,MAAM,WAAW,wBAAwB;IACvC,MAAM,EAAE,UAAU,CAAC,KAAK,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC;IACzC,OAAO,EAAE,UAAU,CAAC,KAAK,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC;IAC7C,SAAS,EAAE,UAAU,CAAC;QAAE,IAAI,EAAE,qBAAqB,CAAA;KAAE,EAAE,MAAM,CAAC,CAAC;IAC/D,QAAQ,EAAE,UAAU,CAAC,KAAK,EAAE,OAAO,CAAC,
|
|
1
|
+
{"version":3,"file":"product-review-types.d.ts","sourceRoot":"","sources":["../../../../src/resolvers/type/product/product-review-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AACvD,OAAO,EACL,aAAa,IAAI,iBAAiB,EAClC,qBAAqB,EACrB,WAAW,EACZ,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAC;AAEjD,KAAK,UAAU,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,OAAO,EAAE,iBAAiB,EAAE,MAAM,EAAE,CAAC,EAAE,OAAO,EAAE,OAAO,KAAK,CAAC,CAAC;AAEvF,MAAM,WAAW,wBAAwB;IACvC,MAAM,EAAE,UAAU,CAAC,KAAK,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC;IACzC,OAAO,EAAE,UAAU,CAAC,KAAK,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC;IAC7C,SAAS,EAAE,UAAU,CAAC;QAAE,IAAI,EAAE,qBAAqB,CAAA;KAAE,EAAE,MAAM,CAAC,CAAC;IAC/D,QAAQ,EAAE,UAAU,CAAC,KAAK,EAAE,OAAO,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC;CACrD;AACD,eAAO,MAAM,aAAa,EAAE,wBAmB3B,CAAC"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
export const ProductReview = {
|
|
2
|
-
author: async (obj, _, {
|
|
3
|
-
|
|
4
|
-
return modules.users.findUserById(obj.authorId);
|
|
2
|
+
author: async (obj, _, { loaders }) => {
|
|
3
|
+
return loaders.userLoader.load({ userId: obj.authorId });
|
|
5
4
|
},
|
|
6
5
|
product: async (review, _, { loaders }) => {
|
|
7
6
|
const product = await loaders.productLoader.load({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product-review-types.js","sourceRoot":"","sources":["../../../../src/resolvers/type/product/product-review-types.ts"],"names":[],"mappings":"AAiBA,MAAM,CAAC,MAAM,aAAa,GAA6B;IACrD,MAAM,EAAE,KAAK,EAAE,GAAG,EAAE,CAAC,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;QACpC,
|
|
1
|
+
{"version":3,"file":"product-review-types.js","sourceRoot":"","sources":["../../../../src/resolvers/type/product/product-review-types.ts"],"names":[],"mappings":"AAiBA,MAAM,CAAC,MAAM,aAAa,GAA6B;IACrD,MAAM,EAAE,KAAK,EAAE,GAAG,EAAE,CAAC,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;QACpC,OAAO,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,GAAG,CAAC,QAAQ,EAAE,CAAC,CAAC;IAC3D,CAAC;IAED,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;QACxC,MAAM,OAAO,GAAG,MAAM,OAAO,CAAC,aAAa,CAAC,IAAI,CAAC;YAC/C,SAAS,EAAE,MAAM,CAAC,SAAS;SAC5B,CAAC,CAAC;QACH,OAAO,OAAO,CAAC;IACjB,CAAC;IAED,QAAQ,EAAE,KAAK,EAAE,GAAG,EAAE,CAAC,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,EAAE;QAC9C,OAAO,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,KAAK,CAAC,QAAQ,CAAC,GAAG,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IAClE,CAAC;IAED,SAAS,EAAE,CAAC,GAAG,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;QACxC,OAAO,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,KAAK,CAAC,gBAAgB,CAAC,GAAG,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC;IAC/E,CAAC;CACF,CAAC"}
|
|
@@ -8,20 +8,20 @@ export declare const SimpleProduct: {
|
|
|
8
8
|
referenceDate: Date;
|
|
9
9
|
quantity: number;
|
|
10
10
|
deliveryProviderType: DeliveryProviderType;
|
|
11
|
-
}, requestContext: Context): Promise<
|
|
11
|
+
}, requestContext: Context): Promise<{
|
|
12
12
|
deliveryProvider?: DeliveryProvider;
|
|
13
13
|
warehousingProvider?: WarehousingProvider;
|
|
14
14
|
shipping?: Date;
|
|
15
15
|
earliestDelivery?: Date;
|
|
16
|
-
}
|
|
16
|
+
}[]>;
|
|
17
17
|
simulatedStocks(obj: Product, params: {
|
|
18
18
|
referenceDate: Date;
|
|
19
19
|
deliveryProviderType: DeliveryProviderType;
|
|
20
|
-
}, requestContext: Context): Promise<
|
|
20
|
+
}, requestContext: Context): Promise<{
|
|
21
21
|
deliveryProvider?: DeliveryProvider;
|
|
22
22
|
warehousingProvider?: WarehousingProvider;
|
|
23
23
|
quantity?: number;
|
|
24
|
-
}
|
|
24
|
+
}[]>;
|
|
25
25
|
baseUnit({ warehousing }: {
|
|
26
26
|
warehousing: any;
|
|
27
27
|
}): string;
|
|
@@ -31,43 +31,43 @@ export declare const SimpleProduct: {
|
|
|
31
31
|
dimensions({ supply }: {
|
|
32
32
|
supply: any;
|
|
33
33
|
}): ProductSupply;
|
|
34
|
-
catalogPrice(product: Product, { quantity,
|
|
34
|
+
catalogPrice(product: Product, { quantity, currencyCode: forcedCurrencyCode }: {
|
|
35
35
|
quantity?: number;
|
|
36
|
-
|
|
36
|
+
currencyCode?: string;
|
|
37
37
|
}, requestContext: Context): Promise<import("@unchainedshop/core-products").ProductPrice>;
|
|
38
|
-
simulatedPrice(
|
|
38
|
+
simulatedPrice(product: Product, { currencyCode: forcedCurrencyCode, quantity, useNetPrice, configuration, }: {
|
|
39
39
|
quantity?: number;
|
|
40
|
-
|
|
40
|
+
currencyCode?: string;
|
|
41
41
|
useNetPrice?: boolean;
|
|
42
|
-
configuration?:
|
|
42
|
+
configuration?: import("@unchainedshop/core-products").ProductConfiguration[];
|
|
43
43
|
}, requestContext: Context): Promise<import("@unchainedshop/core-products").ProductPrice>;
|
|
44
|
-
leveledCatalogPrices(
|
|
45
|
-
|
|
46
|
-
}, requestContext: Context): Promise<
|
|
44
|
+
leveledCatalogPrices(product: Product, { currencyCode: forcedCurrencyCode }: {
|
|
45
|
+
currencyCode?: string;
|
|
46
|
+
}, requestContext: Context): Promise<{
|
|
47
47
|
minQuantity: number;
|
|
48
48
|
maxQuantity: number;
|
|
49
49
|
price: import("@unchainedshop/core-products").ProductPrice;
|
|
50
|
-
}
|
|
50
|
+
}[]>;
|
|
51
51
|
salesUnit({ commerce }: Product): string;
|
|
52
52
|
salesQuantityPerUnit({ commerce }: Product): string;
|
|
53
53
|
defaultOrderQuantity({ commerce }: Product): number;
|
|
54
54
|
__resolveType: (product: Product) => string;
|
|
55
55
|
assortmentPaths(product: Product, params: {
|
|
56
56
|
forceLocale?: string;
|
|
57
|
-
}, { modules, loaders }: Context): Promise<
|
|
58
|
-
links:
|
|
59
|
-
}
|
|
57
|
+
}, { modules, loaders }: Context): Promise<{
|
|
58
|
+
links: import("@unchainedshop/core-assortments").AssortmentPathLink[];
|
|
59
|
+
}[]>;
|
|
60
60
|
media(product: Product, params: {
|
|
61
61
|
limit: number;
|
|
62
62
|
offset: number;
|
|
63
|
-
tags?:
|
|
64
|
-
}, { loaders, modules }: Context): Promise<
|
|
63
|
+
tags?: string[];
|
|
64
|
+
}, { loaders, modules }: Context): Promise<import("@unchainedshop/core-products").ProductMedia[]>;
|
|
65
65
|
reviews(product: Product, { limit, offset, sort, queryString, }: {
|
|
66
66
|
queryString?: string;
|
|
67
67
|
limit?: number;
|
|
68
68
|
offset?: number;
|
|
69
|
-
sort?:
|
|
70
|
-
}, { modules }: Context): Promise<
|
|
69
|
+
sort?: import("@unchainedshop/utils").SortOption[];
|
|
70
|
+
}, { modules }: Context): Promise<import("@unchainedshop/core-products").ProductReview[]>;
|
|
71
71
|
reviewsCount(product: Product, params: {
|
|
72
72
|
queryString?: string;
|
|
73
73
|
}, { modules }: Context): Promise<number>;
|
|
@@ -76,10 +76,10 @@ export declare const SimpleProduct: {
|
|
|
76
76
|
limit: number;
|
|
77
77
|
offset: number;
|
|
78
78
|
includeInactive: boolean;
|
|
79
|
-
}, { modules }: Context): Promise<
|
|
79
|
+
}, { modules }: Context): Promise<(typeof product)[]>;
|
|
80
80
|
status(product: Product, _: any, { modules }: Context): import("@unchainedshop/core-products").ProductStatus;
|
|
81
81
|
texts(product: Product, { forceLocale, }: {
|
|
82
82
|
forceLocale?: string;
|
|
83
|
-
},
|
|
83
|
+
}, { locale, loaders }: Context): Promise<import("@unchainedshop/core-products").ProductText>;
|
|
84
84
|
};
|
|
85
85
|
//# sourceMappingURL=product-simple-types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product-simple-types.d.ts","sourceRoot":"","sources":["../../../../src/resolvers/type/product/product-simple-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AACtE,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAEhE,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AAEtE,eAAO,MAAM,aAAa;6BAIjB,OAAO,UACJ;QAAE,aAAa,EAAE,IAAI,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAC;QAAC,oBAAoB,EAAE,oBAAoB,CAAA;KAAE,kBAC7E,OAAO,GACtB,OAAO,CACR
|
|
1
|
+
{"version":3,"file":"product-simple-types.d.ts","sourceRoot":"","sources":["../../../../src/resolvers/type/product/product-simple-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AACtE,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAEhE,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AAEtE,eAAO,MAAM,aAAa;6BAIjB,OAAO,UACJ;QAAE,aAAa,EAAE,IAAI,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAC;QAAC,oBAAoB,EAAE,oBAAoB,CAAA;KAAE,kBAC7E,OAAO,GACtB,OAAO,CACR;QACE,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;QACpC,mBAAmB,CAAC,EAAE,mBAAmB,CAAC;QAC1C,QAAQ,CAAC,EAAE,IAAI,CAAC;QAChB,gBAAgB,CAAC,EAAE,IAAI,CAAC;KACzB,EAAE,CACJ;yBAWM,OAAO,UACJ;QACN,aAAa,EAAE,IAAI,CAAC;QACpB,oBAAoB,EAAE,oBAAoB,CAAC;KAC5C,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;;;QAS0B,MAAM;;;QAIX,MAAM;;;QAIJ,aAAa;;gBAxDgB,CAAC;oBAEjD,CAAA;;;gBAiBC,CAAC;oBAA4B,CAAC;mBAC/B,CAAC;qBAEF,CAAH;;;oBAoCgD,CAAC;;;;;;;;;;;mBA1ClD,CAAA;;;;;;;YA0BwB,CAAC;;;mBAyBT,CAAC;aAAqB,CAAC;cAAsB,CAAC;YAAoB,CAAC;;;mBAA8T,CAAC;;;oBAAuP,CAAC;;;;;;;mBAAu6B,CAAC;;CADnjD,CAAC"}
|