@unchainedshop/api 3.0.0-alpha7 → 3.0.0-rc2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/lib/api-index.d.ts +3 -3
- package/lib/api-index.d.ts.map +1 -1
- package/lib/api-index.js +2 -1
- package/lib/api-index.js.map +1 -1
- package/lib/context.d.ts +32 -2
- package/lib/context.d.ts.map +1 -1
- package/lib/context.js +13 -2
- package/lib/context.js.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/createBulkImportMiddleware.d.ts +1 -1
- package/lib/express/createBulkImportMiddleware.d.ts.map +1 -1
- package/lib/express/createBulkImportMiddleware.js +1 -1
- package/lib/express/createBulkImportMiddleware.js.map +1 -1
- package/lib/express/createERCMetadataMiddleware.d.ts +3 -5
- package/lib/express/createERCMetadataMiddleware.d.ts.map +1 -1
- package/lib/express/createERCMetadataMiddleware.js +12 -17
- package/lib/express/createERCMetadataMiddleware.js.map +1 -1
- package/lib/express/index.d.ts +2 -2
- package/lib/express/index.d.ts.map +1 -1
- package/lib/express/index.js +31 -12
- package/lib/express/index.js.map +1 -1
- package/lib/fastify/bulkImportHandler.d.ts +4 -0
- package/lib/fastify/bulkImportHandler.d.ts.map +1 -0
- package/lib/fastify/bulkImportHandler.js +47 -0
- package/lib/fastify/bulkImportHandler.js.map +1 -0
- package/lib/fastify/ercMetadataHandler.d.ts +4 -0
- package/lib/fastify/ercMetadataHandler.d.ts.map +1 -0
- package/lib/fastify/ercMetadataHandler.js +39 -0
- package/lib/fastify/ercMetadataHandler.js.map +1 -0
- package/lib/fastify/index.d.ts +2 -1
- package/lib/fastify/index.d.ts.map +1 -1
- package/lib/fastify/index.js +37 -17
- package/lib/fastify/index.js.map +1 -1
- package/lib/loaders/index.d.ts +63 -1
- package/lib/loaders/index.d.ts.map +1 -1
- package/lib/loaders/index.js +52 -17
- package/lib/loaders/index.js.map +1 -1
- package/lib/locale-context.d.ts +13 -4
- package/lib/locale-context.d.ts.map +1 -1
- package/lib/locale-context.js +10 -12
- package/lib/locale-context.js.map +1 -1
- package/lib/resolvers/mutations/accounts/addEmail.d.ts +1 -1
- package/lib/resolvers/mutations/accounts/addEmail.d.ts.map +1 -1
- package/lib/resolvers/mutations/accounts/addWeb3Address.d.ts +1 -1
- package/lib/resolvers/mutations/accounts/addWeb3Address.d.ts.map +1 -1
- package/lib/resolvers/mutations/accounts/addWebAuthnCredentials.d.ts +1 -1
- package/lib/resolvers/mutations/accounts/addWebAuthnCredentials.d.ts.map +1 -1
- package/lib/resolvers/mutations/accounts/changePassword.d.ts +1 -1
- package/lib/resolvers/mutations/accounts/changePassword.d.ts.map +1 -1
- package/lib/resolvers/mutations/accounts/createUser.d.ts +1 -1
- package/lib/resolvers/mutations/accounts/createUser.d.ts.map +1 -1
- package/lib/resolvers/mutations/accounts/createWebAuthnCredentialCreationOptions.d.ts +1 -1
- package/lib/resolvers/mutations/accounts/createWebAuthnCredentialCreationOptions.d.ts.map +1 -1
- package/lib/resolvers/mutations/accounts/createWebAuthnCredentialCreationOptions.js.map +1 -1
- package/lib/resolvers/mutations/accounts/createWebAuthnCredentialRequestOptions.d.ts +1 -1
- package/lib/resolvers/mutations/accounts/createWebAuthnCredentialRequestOptions.d.ts.map +1 -1
- package/lib/resolvers/mutations/accounts/createWebAuthnCredentialRequestOptions.js.map +1 -1
- package/lib/resolvers/mutations/accounts/enrollUser.d.ts +1 -1
- package/lib/resolvers/mutations/accounts/enrollUser.d.ts.map +1 -1
- package/lib/resolvers/mutations/accounts/forgotPassword.d.ts +1 -1
- package/lib/resolvers/mutations/accounts/forgotPassword.d.ts.map +1 -1
- package/lib/resolvers/mutations/accounts/loginAsGuest.d.ts +1 -1
- package/lib/resolvers/mutations/accounts/loginAsGuest.d.ts.map +1 -1
- package/lib/resolvers/mutations/accounts/loginAsGuest.js +2 -2
- package/lib/resolvers/mutations/accounts/loginAsGuest.js.map +1 -1
- package/lib/resolvers/mutations/accounts/loginWithPassword.d.ts +1 -1
- package/lib/resolvers/mutations/accounts/loginWithPassword.d.ts.map +1 -1
- package/lib/resolvers/mutations/accounts/loginWithPassword.js +2 -2
- package/lib/resolvers/mutations/accounts/loginWithPassword.js.map +1 -1
- package/lib/resolvers/mutations/accounts/loginWithWebAuthn.d.ts +1 -1
- package/lib/resolvers/mutations/accounts/loginWithWebAuthn.d.ts.map +1 -1
- package/lib/resolvers/mutations/accounts/logout.d.ts +1 -1
- package/lib/resolvers/mutations/accounts/logout.d.ts.map +1 -1
- package/lib/resolvers/mutations/accounts/removeEmail.d.ts +1 -1
- package/lib/resolvers/mutations/accounts/removeEmail.d.ts.map +1 -1
- package/lib/resolvers/mutations/accounts/removeWeb3Address.d.ts +1 -1
- package/lib/resolvers/mutations/accounts/removeWeb3Address.d.ts.map +1 -1
- package/lib/resolvers/mutations/accounts/removeWebAuthnCredentials.d.ts +1 -1
- package/lib/resolvers/mutations/accounts/removeWebAuthnCredentials.d.ts.map +1 -1
- package/lib/resolvers/mutations/accounts/resetPassword.d.ts +1 -1
- package/lib/resolvers/mutations/accounts/resetPassword.d.ts.map +1 -1
- package/lib/resolvers/mutations/accounts/sendEnrollmentEmail.d.ts +1 -1
- package/lib/resolvers/mutations/accounts/sendEnrollmentEmail.d.ts.map +1 -1
- package/lib/resolvers/mutations/accounts/sendVerificationEmail.d.ts +1 -1
- package/lib/resolvers/mutations/accounts/sendVerificationEmail.d.ts.map +1 -1
- package/lib/resolvers/mutations/accounts/setPassword.d.ts +1 -1
- package/lib/resolvers/mutations/accounts/setPassword.d.ts.map +1 -1
- package/lib/resolvers/mutations/accounts/setUsername.d.ts +1 -1
- package/lib/resolvers/mutations/accounts/setUsername.d.ts.map +1 -1
- package/lib/resolvers/mutations/accounts/verifyEmail.d.ts +1 -1
- package/lib/resolvers/mutations/accounts/verifyEmail.d.ts.map +1 -1
- package/lib/resolvers/mutations/accounts/verifyWeb3Address.d.ts +1 -1
- package/lib/resolvers/mutations/accounts/verifyWeb3Address.d.ts.map +1 -1
- package/lib/resolvers/mutations/assortments/addAssortmentFilter.d.ts +1 -1
- package/lib/resolvers/mutations/assortments/addAssortmentFilter.d.ts.map +1 -1
- package/lib/resolvers/mutations/assortments/addAssortmentLink.d.ts +1 -1
- package/lib/resolvers/mutations/assortments/addAssortmentLink.d.ts.map +1 -1
- package/lib/resolvers/mutations/assortments/addAssortmentProduct.d.ts +1 -1
- package/lib/resolvers/mutations/assortments/addAssortmentProduct.d.ts.map +1 -1
- package/lib/resolvers/mutations/assortments/createAssortment.d.ts +1 -1
- package/lib/resolvers/mutations/assortments/createAssortment.d.ts.map +1 -1
- package/lib/resolvers/mutations/assortments/prepareAssortmentMediaUpload.d.ts +1 -1
- package/lib/resolvers/mutations/assortments/prepareAssortmentMediaUpload.d.ts.map +1 -1
- package/lib/resolvers/mutations/assortments/prepareAssortmentMediaUpload.js +1 -1
- package/lib/resolvers/mutations/assortments/prepareAssortmentMediaUpload.js.map +1 -1
- package/lib/resolvers/mutations/assortments/removeAssortment.d.ts +1 -1
- package/lib/resolvers/mutations/assortments/removeAssortment.d.ts.map +1 -1
- package/lib/resolvers/mutations/assortments/removeAssortmentFilter.d.ts +1 -1
- package/lib/resolvers/mutations/assortments/removeAssortmentFilter.d.ts.map +1 -1
- package/lib/resolvers/mutations/assortments/removeAssortmentLink.d.ts +1 -1
- package/lib/resolvers/mutations/assortments/removeAssortmentLink.d.ts.map +1 -1
- package/lib/resolvers/mutations/assortments/removeAssortmentMedia.d.ts +1 -1
- package/lib/resolvers/mutations/assortments/removeAssortmentMedia.d.ts.map +1 -1
- package/lib/resolvers/mutations/assortments/removeAssortmentProduct.d.ts +1 -1
- package/lib/resolvers/mutations/assortments/removeAssortmentProduct.d.ts.map +1 -1
- package/lib/resolvers/mutations/assortments/reorderAssortmentFilters.d.ts +1 -1
- package/lib/resolvers/mutations/assortments/reorderAssortmentFilters.d.ts.map +1 -1
- package/lib/resolvers/mutations/assortments/reorderAssortmentLinks.d.ts +1 -1
- package/lib/resolvers/mutations/assortments/reorderAssortmentLinks.d.ts.map +1 -1
- package/lib/resolvers/mutations/assortments/reorderAssortmentMedia.d.ts +1 -1
- package/lib/resolvers/mutations/assortments/reorderAssortmentMedia.d.ts.map +1 -1
- package/lib/resolvers/mutations/assortments/reorderAssortmentProducts.d.ts +1 -1
- package/lib/resolvers/mutations/assortments/reorderAssortmentProducts.d.ts.map +1 -1
- package/lib/resolvers/mutations/assortments/setBaseAssortment.d.ts +1 -1
- package/lib/resolvers/mutations/assortments/setBaseAssortment.d.ts.map +1 -1
- package/lib/resolvers/mutations/assortments/updateAssortment.d.ts +1 -1
- package/lib/resolvers/mutations/assortments/updateAssortment.d.ts.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/updateAssortmentTexts.d.ts +1 -1
- package/lib/resolvers/mutations/assortments/updateAssortmentTexts.d.ts.map +1 -1
- package/lib/resolvers/mutations/bookmarks/bookmark.d.ts +1 -1
- package/lib/resolvers/mutations/bookmarks/bookmark.d.ts.map +1 -1
- package/lib/resolvers/mutations/bookmarks/createBookmark.d.ts +1 -1
- package/lib/resolvers/mutations/bookmarks/createBookmark.d.ts.map +1 -1
- package/lib/resolvers/mutations/bookmarks/removeBookmark.d.ts +1 -1
- package/lib/resolvers/mutations/bookmarks/removeBookmark.d.ts.map +1 -1
- package/lib/resolvers/mutations/countries/createCountry.d.ts +1 -1
- package/lib/resolvers/mutations/countries/createCountry.d.ts.map +1 -1
- package/lib/resolvers/mutations/countries/removeCountry.d.ts +1 -1
- package/lib/resolvers/mutations/countries/removeCountry.d.ts.map +1 -1
- package/lib/resolvers/mutations/countries/updateCountry.d.ts +1 -1
- package/lib/resolvers/mutations/countries/updateCountry.d.ts.map +1 -1
- package/lib/resolvers/mutations/currencies/createCurrency.d.ts +1 -1
- package/lib/resolvers/mutations/currencies/createCurrency.d.ts.map +1 -1
- package/lib/resolvers/mutations/currencies/removeCurrency.d.ts +1 -1
- package/lib/resolvers/mutations/currencies/removeCurrency.d.ts.map +1 -1
- package/lib/resolvers/mutations/currencies/updateCurrency.d.ts +1 -1
- package/lib/resolvers/mutations/currencies/updateCurrency.d.ts.map +1 -1
- package/lib/resolvers/mutations/delivery/createDeliveryProvider.d.ts +1 -1
- package/lib/resolvers/mutations/delivery/createDeliveryProvider.d.ts.map +1 -1
- package/lib/resolvers/mutations/delivery/createDeliveryProvider.js +5 -0
- package/lib/resolvers/mutations/delivery/createDeliveryProvider.js.map +1 -1
- package/lib/resolvers/mutations/delivery/removeDeliveryProvider.d.ts +1 -1
- package/lib/resolvers/mutations/delivery/removeDeliveryProvider.d.ts.map +1 -1
- package/lib/resolvers/mutations/delivery/updateDeliveryProvider.d.ts +1 -1
- package/lib/resolvers/mutations/delivery/updateDeliveryProvider.d.ts.map +1 -1
- package/lib/resolvers/mutations/enrollments/activateEnrollment.d.ts +1 -1
- package/lib/resolvers/mutations/enrollments/activateEnrollment.d.ts.map +1 -1
- package/lib/resolvers/mutations/enrollments/activateEnrollment.js +2 -2
- package/lib/resolvers/mutations/enrollments/activateEnrollment.js.map +1 -1
- package/lib/resolvers/mutations/enrollments/createEnrollment.d.ts +2 -2
- package/lib/resolvers/mutations/enrollments/createEnrollment.d.ts.map +1 -1
- package/lib/resolvers/mutations/enrollments/createEnrollment.js +7 -3
- package/lib/resolvers/mutations/enrollments/createEnrollment.js.map +1 -1
- package/lib/resolvers/mutations/enrollments/terminateEnrollment.d.ts +2 -2
- package/lib/resolvers/mutations/enrollments/terminateEnrollment.d.ts.map +1 -1
- package/lib/resolvers/mutations/enrollments/terminateEnrollment.js +2 -2
- package/lib/resolvers/mutations/enrollments/terminateEnrollment.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/enrollments/updateEnrollment.js +3 -2
- package/lib/resolvers/mutations/enrollments/updateEnrollment.js.map +1 -1
- package/lib/resolvers/mutations/files/confirmMediaUpload.d.ts +1 -1
- package/lib/resolvers/mutations/files/confirmMediaUpload.d.ts.map +1 -1
- package/lib/resolvers/mutations/files/confirmMediaUpload.js +1 -1
- package/lib/resolvers/mutations/files/confirmMediaUpload.js.map +1 -1
- package/lib/resolvers/mutations/filters/createFilter.d.ts +3 -2
- package/lib/resolvers/mutations/filters/createFilter.d.ts.map +1 -1
- package/lib/resolvers/mutations/filters/createFilter.js +3 -1
- package/lib/resolvers/mutations/filters/createFilter.js.map +1 -1
- package/lib/resolvers/mutations/filters/createFilterOption.d.ts +2 -2
- package/lib/resolvers/mutations/filters/createFilterOption.d.ts.map +1 -1
- package/lib/resolvers/mutations/filters/createFilterOption.js +3 -1
- package/lib/resolvers/mutations/filters/createFilterOption.js.map +1 -1
- package/lib/resolvers/mutations/filters/removeFilter.d.ts +1 -1
- package/lib/resolvers/mutations/filters/removeFilter.d.ts.map +1 -1
- package/lib/resolvers/mutations/filters/removeFilterOption.d.ts +1 -1
- package/lib/resolvers/mutations/filters/removeFilterOption.d.ts.map +1 -1
- package/lib/resolvers/mutations/filters/removeFilterOption.js +3 -1
- package/lib/resolvers/mutations/filters/removeFilterOption.js.map +1 -1
- package/lib/resolvers/mutations/filters/updateFilter.d.ts +1 -1
- package/lib/resolvers/mutations/filters/updateFilter.d.ts.map +1 -1
- package/lib/resolvers/mutations/filters/updateFilter.js +4 -1
- package/lib/resolvers/mutations/filters/updateFilter.js.map +1 -1
- package/lib/resolvers/mutations/filters/updateFilterTexts.d.ts +1 -1
- package/lib/resolvers/mutations/filters/updateFilterTexts.d.ts.map +1 -1
- package/lib/resolvers/mutations/index.d.ts +2 -0
- package/lib/resolvers/mutations/index.d.ts.map +1 -1
- package/lib/resolvers/mutations/index.js +3 -1
- package/lib/resolvers/mutations/index.js.map +1 -1
- package/lib/resolvers/mutations/languages/createLanguage.d.ts +1 -1
- package/lib/resolvers/mutations/languages/createLanguage.d.ts.map +1 -1
- package/lib/resolvers/mutations/languages/removeLanguage.d.ts +1 -1
- package/lib/resolvers/mutations/languages/removeLanguage.d.ts.map +1 -1
- package/lib/resolvers/mutations/languages/updateLanguage.d.ts +1 -1
- package/lib/resolvers/mutations/languages/updateLanguage.d.ts.map +1 -1
- package/lib/resolvers/mutations/orders/addCartDiscount.d.ts +1 -1
- package/lib/resolvers/mutations/orders/addCartDiscount.d.ts.map +1 -1
- package/lib/resolvers/mutations/orders/addCartDiscount.js +9 -4
- package/lib/resolvers/mutations/orders/addCartDiscount.js.map +1 -1
- package/lib/resolvers/mutations/orders/addCartProduct.d.ts +2 -2
- package/lib/resolvers/mutations/orders/addCartProduct.d.ts.map +1 -1
- package/lib/resolvers/mutations/orders/addCartProduct.js +22 -10
- package/lib/resolvers/mutations/orders/addCartProduct.js.map +1 -1
- package/lib/resolvers/mutations/orders/addCartQuotation.d.ts +1 -1
- package/lib/resolvers/mutations/orders/addCartQuotation.d.ts.map +1 -1
- package/lib/resolvers/mutations/orders/addCartQuotation.js +14 -8
- package/lib/resolvers/mutations/orders/addCartQuotation.js.map +1 -1
- package/lib/resolvers/mutations/orders/addMultipleCartProducts.d.ts +2 -2
- package/lib/resolvers/mutations/orders/addMultipleCartProducts.d.ts.map +1 -1
- package/lib/resolvers/mutations/orders/addMultipleCartProducts.js +21 -8
- package/lib/resolvers/mutations/orders/addMultipleCartProducts.js.map +1 -1
- package/lib/resolvers/mutations/orders/checkoutCart.d.ts +2 -2
- package/lib/resolvers/mutations/orders/checkoutCart.d.ts.map +1 -1
- package/lib/resolvers/mutations/orders/checkoutCart.js +5 -4
- package/lib/resolvers/mutations/orders/checkoutCart.js.map +1 -1
- package/lib/resolvers/mutations/orders/confirmOrder.d.ts +2 -2
- package/lib/resolvers/mutations/orders/confirmOrder.d.ts.map +1 -1
- package/lib/resolvers/mutations/orders/confirmOrder.js +2 -2
- package/lib/resolvers/mutations/orders/confirmOrder.js.map +1 -1
- package/lib/resolvers/mutations/orders/createCart.d.ts +2 -2
- package/lib/resolvers/mutations/orders/createCart.d.ts.map +1 -1
- package/lib/resolvers/mutations/orders/createCart.js +6 -1
- package/lib/resolvers/mutations/orders/createCart.js.map +1 -1
- package/lib/resolvers/mutations/orders/deliverOrder.d.ts +1 -1
- package/lib/resolvers/mutations/orders/deliverOrder.d.ts.map +1 -1
- package/lib/resolvers/mutations/orders/deliverOrder.js +2 -2
- package/lib/resolvers/mutations/orders/deliverOrder.js.map +1 -1
- package/lib/resolvers/mutations/orders/emptyCart.d.ts +2 -2
- package/lib/resolvers/mutations/orders/emptyCart.d.ts.map +1 -1
- package/lib/resolvers/mutations/orders/emptyCart.js +2 -2
- package/lib/resolvers/mutations/orders/emptyCart.js.map +1 -1
- package/lib/resolvers/mutations/orders/payOrder.d.ts +1 -1
- package/lib/resolvers/mutations/orders/payOrder.d.ts.map +1 -1
- package/lib/resolvers/mutations/orders/payOrder.js +2 -2
- package/lib/resolvers/mutations/orders/payOrder.js.map +1 -1
- package/lib/resolvers/mutations/orders/rejectOrder.d.ts +2 -2
- package/lib/resolvers/mutations/orders/rejectOrder.d.ts.map +1 -1
- package/lib/resolvers/mutations/orders/rejectOrder.js +2 -2
- package/lib/resolvers/mutations/orders/rejectOrder.js.map +1 -1
- package/lib/resolvers/mutations/orders/removeCartDiscount.d.ts +2 -2
- package/lib/resolvers/mutations/orders/removeCartDiscount.d.ts.map +1 -1
- package/lib/resolvers/mutations/orders/removeCartDiscount.js +16 -4
- package/lib/resolvers/mutations/orders/removeCartDiscount.js.map +1 -1
- package/lib/resolvers/mutations/orders/removeCartItem.d.ts +1 -1
- package/lib/resolvers/mutations/orders/removeCartItem.d.ts.map +1 -1
- package/lib/resolvers/mutations/orders/removeCartItem.js +2 -2
- package/lib/resolvers/mutations/orders/removeCartItem.js.map +1 -1
- package/lib/resolvers/mutations/orders/removeOrder.d.ts +1 -1
- package/lib/resolvers/mutations/orders/removeOrder.d.ts.map +1 -1
- package/lib/resolvers/mutations/orders/setOrderDeliveryProvider.d.ts +2 -2
- package/lib/resolvers/mutations/orders/setOrderDeliveryProvider.d.ts.map +1 -1
- package/lib/resolvers/mutations/orders/setOrderDeliveryProvider.js +3 -3
- package/lib/resolvers/mutations/orders/setOrderDeliveryProvider.js.map +1 -1
- package/lib/resolvers/mutations/orders/setOrderPaymentProvider.d.ts +2 -2
- package/lib/resolvers/mutations/orders/setOrderPaymentProvider.d.ts.map +1 -1
- package/lib/resolvers/mutations/orders/setOrderPaymentProvider.js +3 -3
- package/lib/resolvers/mutations/orders/setOrderPaymentProvider.js.map +1 -1
- package/lib/resolvers/mutations/orders/signPaymentProviderForCheckout.d.ts +1 -1
- package/lib/resolvers/mutations/orders/signPaymentProviderForCheckout.d.ts.map +1 -1
- package/lib/resolvers/mutations/orders/signPaymentProviderForCheckout.js +3 -1
- package/lib/resolvers/mutations/orders/signPaymentProviderForCheckout.js.map +1 -1
- package/lib/resolvers/mutations/orders/updateCart.d.ts +3 -3
- package/lib/resolvers/mutations/orders/updateCart.d.ts.map +1 -1
- package/lib/resolvers/mutations/orders/updateCart.js +4 -4
- package/lib/resolvers/mutations/orders/updateCart.js.map +1 -1
- package/lib/resolvers/mutations/orders/updateCartItem.d.ts +1 -1
- package/lib/resolvers/mutations/orders/updateCartItem.d.ts.map +1 -1
- package/lib/resolvers/mutations/orders/updateCartItem.js +13 -7
- package/lib/resolvers/mutations/orders/updateCartItem.js.map +1 -1
- package/lib/resolvers/mutations/orders/updateOrderDeliveryPickUp.d.ts +1 -1
- package/lib/resolvers/mutations/orders/updateOrderDeliveryPickUp.d.ts.map +1 -1
- package/lib/resolvers/mutations/orders/updateOrderDeliveryPickUp.js +2 -2
- package/lib/resolvers/mutations/orders/updateOrderDeliveryPickUp.js.map +1 -1
- package/lib/resolvers/mutations/orders/updateOrderDeliveryShipping.d.ts +1 -1
- package/lib/resolvers/mutations/orders/updateOrderDeliveryShipping.d.ts.map +1 -1
- package/lib/resolvers/mutations/orders/updateOrderDeliveryShipping.js +2 -2
- package/lib/resolvers/mutations/orders/updateOrderDeliveryShipping.js.map +1 -1
- package/lib/resolvers/mutations/orders/updateOrderPaymentCard.d.ts +1 -1
- package/lib/resolvers/mutations/orders/updateOrderPaymentCard.d.ts.map +1 -1
- package/lib/resolvers/mutations/orders/updateOrderPaymentCard.js +2 -2
- package/lib/resolvers/mutations/orders/updateOrderPaymentCard.js.map +1 -1
- package/lib/resolvers/mutations/orders/updateOrderPaymentGeneric.d.ts +1 -1
- package/lib/resolvers/mutations/orders/updateOrderPaymentGeneric.d.ts.map +1 -1
- package/lib/resolvers/mutations/orders/updateOrderPaymentGeneric.js +2 -2
- package/lib/resolvers/mutations/orders/updateOrderPaymentGeneric.js.map +1 -1
- package/lib/resolvers/mutations/orders/updateOrderPaymentInvoice.d.ts +1 -1
- package/lib/resolvers/mutations/orders/updateOrderPaymentInvoice.d.ts.map +1 -1
- package/lib/resolvers/mutations/orders/updateOrderPaymentInvoice.js +2 -2
- package/lib/resolvers/mutations/orders/updateOrderPaymentInvoice.js.map +1 -1
- package/lib/resolvers/mutations/payment/createPaymentProvider.d.ts +1 -1
- package/lib/resolvers/mutations/payment/createPaymentProvider.d.ts.map +1 -1
- package/lib/resolvers/mutations/payment/createPaymentProvider.js +6 -4
- package/lib/resolvers/mutations/payment/createPaymentProvider.js.map +1 -1
- package/lib/resolvers/mutations/payment/markPaymentCredentialsPreferred.d.ts +1 -1
- package/lib/resolvers/mutations/payment/markPaymentCredentialsPreferred.d.ts.map +1 -1
- package/lib/resolvers/mutations/payment/registerPaymentCredentials.d.ts +1 -1
- package/lib/resolvers/mutations/payment/registerPaymentCredentials.d.ts.map +1 -1
- package/lib/resolvers/mutations/payment/registerPaymentCredentials.js +5 -2
- package/lib/resolvers/mutations/payment/registerPaymentCredentials.js.map +1 -1
- package/lib/resolvers/mutations/payment/removePaymentCredentials.d.ts +1 -1
- package/lib/resolvers/mutations/payment/removePaymentCredentials.d.ts.map +1 -1
- package/lib/resolvers/mutations/payment/removePaymentProvider.d.ts +1 -1
- package/lib/resolvers/mutations/payment/removePaymentProvider.d.ts.map +1 -1
- package/lib/resolvers/mutations/payment/signPaymentProviderForCredentialRegistration.d.ts +1 -1
- package/lib/resolvers/mutations/payment/signPaymentProviderForCredentialRegistration.d.ts.map +1 -1
- package/lib/resolvers/mutations/payment/signPaymentProviderForCredentialRegistration.js +6 -3
- package/lib/resolvers/mutations/payment/signPaymentProviderForCredentialRegistration.js.map +1 -1
- package/lib/resolvers/mutations/payment/updatePaymentProvider.d.ts +1 -1
- package/lib/resolvers/mutations/payment/updatePaymentProvider.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/addProductReviewVote.d.ts +1 -1
- package/lib/resolvers/mutations/products/addProductReviewVote.d.ts.map +1 -1
- package/lib/resolvers/mutations/products/createProduct.d.ts +1 -1
- package/lib/resolvers/mutations/products/createProduct.d.ts.map +1 -1
- package/lib/resolvers/mutations/products/createProductBundleItem.d.ts +1 -1
- package/lib/resolvers/mutations/products/createProductBundleItem.d.ts.map +1 -1
- package/lib/resolvers/mutations/products/createProductReview.d.ts +1 -1
- package/lib/resolvers/mutations/products/createProductReview.d.ts.map +1 -1
- package/lib/resolvers/mutations/products/createProductVariation.d.ts +6 -1
- 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/createProductVariationOption.d.ts +2 -1
- package/lib/resolvers/mutations/products/createProductVariationOption.d.ts.map +1 -1
- package/lib/resolvers/mutations/products/createProductVariationOption.js.map +1 -1
- package/lib/resolvers/mutations/products/deleteUserProductReviews.d.ts +5 -0
- package/lib/resolvers/mutations/products/deleteUserProductReviews.d.ts.map +1 -0
- package/lib/resolvers/mutations/products/deleteUserProductReviews.js +15 -0
- package/lib/resolvers/mutations/products/deleteUserProductReviews.js.map +1 -0
- package/lib/resolvers/mutations/products/prepareProductMediaUpload.d.ts +1 -1
- package/lib/resolvers/mutations/products/prepareProductMediaUpload.d.ts.map +1 -1
- package/lib/resolvers/mutations/products/prepareProductMediaUpload.js +1 -1
- package/lib/resolvers/mutations/products/prepareProductMediaUpload.js.map +1 -1
- package/lib/resolvers/mutations/products/publishProduct.d.ts +1 -1
- package/lib/resolvers/mutations/products/publishProduct.d.ts.map +1 -1
- package/lib/resolvers/mutations/products/removeBundleItem.d.ts +1 -1
- package/lib/resolvers/mutations/products/removeBundleItem.d.ts.map +1 -1
- package/lib/resolvers/mutations/products/removeProduct.d.ts +1 -1
- package/lib/resolvers/mutations/products/removeProduct.d.ts.map +1 -1
- package/lib/resolvers/mutations/products/removeProduct.js +1 -1
- package/lib/resolvers/mutations/products/removeProduct.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/removeProductMedia.d.ts +1 -1
- package/lib/resolvers/mutations/products/removeProductMedia.d.ts.map +1 -1
- package/lib/resolvers/mutations/products/removeProductReview.d.ts +1 -1
- package/lib/resolvers/mutations/products/removeProductReview.d.ts.map +1 -1
- package/lib/resolvers/mutations/products/removeProductReviewVote.d.ts +1 -1
- package/lib/resolvers/mutations/products/removeProductReviewVote.d.ts.map +1 -1
- package/lib/resolvers/mutations/products/removeProductVariation.d.ts +1 -1
- package/lib/resolvers/mutations/products/removeProductVariation.d.ts.map +1 -1
- package/lib/resolvers/mutations/products/removeProductVariationOption.d.ts +1 -1
- package/lib/resolvers/mutations/products/removeProductVariationOption.d.ts.map +1 -1
- package/lib/resolvers/mutations/products/reorderProductMedia.d.ts +1 -1
- package/lib/resolvers/mutations/products/reorderProductMedia.d.ts.map +1 -1
- package/lib/resolvers/mutations/products/unpublishProduct.d.ts +1 -1
- package/lib/resolvers/mutations/products/unpublishProduct.d.ts.map +1 -1
- package/lib/resolvers/mutations/products/updateProduct.d.ts +1 -1
- package/lib/resolvers/mutations/products/updateProduct.d.ts.map +1 -1
- package/lib/resolvers/mutations/products/updateProductCommerce.d.ts +1 -1
- package/lib/resolvers/mutations/products/updateProductCommerce.d.ts.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/updateProductPlan.d.ts +1 -1
- package/lib/resolvers/mutations/products/updateProductPlan.d.ts.map +1 -1
- package/lib/resolvers/mutations/products/updateProductReview.d.ts +1 -1
- package/lib/resolvers/mutations/products/updateProductReview.d.ts.map +1 -1
- package/lib/resolvers/mutations/products/updateProductSupply.d.ts +1 -1
- package/lib/resolvers/mutations/products/updateProductSupply.d.ts.map +1 -1
- package/lib/resolvers/mutations/products/updateProductTexts.d.ts +1 -1
- package/lib/resolvers/mutations/products/updateProductTexts.d.ts.map +1 -1
- package/lib/resolvers/mutations/products/updateProductTokenization.d.ts +1 -1
- package/lib/resolvers/mutations/products/updateProductTokenization.d.ts.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/products/updateProductWarehousing.d.ts +1 -1
- package/lib/resolvers/mutations/products/updateProductWarehousing.d.ts.map +1 -1
- package/lib/resolvers/mutations/quotations/makeQuotationProposal.d.ts +2 -2
- package/lib/resolvers/mutations/quotations/makeQuotationProposal.d.ts.map +1 -1
- package/lib/resolvers/mutations/quotations/makeQuotationProposal.js +2 -2
- package/lib/resolvers/mutations/quotations/makeQuotationProposal.js.map +1 -1
- package/lib/resolvers/mutations/quotations/rejectQuotation.d.ts +2 -2
- package/lib/resolvers/mutations/quotations/rejectQuotation.d.ts.map +1 -1
- package/lib/resolvers/mutations/quotations/rejectQuotation.js +2 -2
- package/lib/resolvers/mutations/quotations/rejectQuotation.js.map +1 -1
- package/lib/resolvers/mutations/quotations/requestQuotation.d.ts +1 -1
- package/lib/resolvers/mutations/quotations/requestQuotation.d.ts.map +1 -1
- package/lib/resolvers/mutations/quotations/requestQuotation.js +5 -3
- package/lib/resolvers/mutations/quotations/requestQuotation.js.map +1 -1
- package/lib/resolvers/mutations/quotations/verifyQuotation.d.ts +2 -2
- package/lib/resolvers/mutations/quotations/verifyQuotation.d.ts.map +1 -1
- package/lib/resolvers/mutations/quotations/verifyQuotation.js +2 -2
- package/lib/resolvers/mutations/quotations/verifyQuotation.js.map +1 -1
- package/lib/resolvers/mutations/users/addPushSubscription.d.ts +1 -1
- package/lib/resolvers/mutations/users/addPushSubscription.d.ts.map +1 -1
- package/lib/resolvers/mutations/users/deleteUser.d.ts +6 -0
- package/lib/resolvers/mutations/users/deleteUser.d.ts.map +1 -0
- package/lib/resolvers/mutations/users/deleteUser.js +15 -0
- package/lib/resolvers/mutations/users/deleteUser.js.map +1 -0
- package/lib/resolvers/mutations/users/deleteUserProductReviews.d.ts +5 -0
- package/lib/resolvers/mutations/users/deleteUserProductReviews.d.ts.map +1 -0
- package/lib/resolvers/mutations/users/deleteUserProductReviews.js +15 -0
- package/lib/resolvers/mutations/users/deleteUserProductReviews.js.map +1 -0
- 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/prepareUserAvatarUpload.d.ts +1 -1
- package/lib/resolvers/mutations/users/prepareUserAvatarUpload.d.ts.map +1 -1
- package/lib/resolvers/mutations/users/prepareUserAvatarUpload.js +1 -1
- package/lib/resolvers/mutations/users/prepareUserAvatarUpload.js.map +1 -1
- package/lib/resolvers/mutations/users/removePushSubscription.d.ts +1 -1
- package/lib/resolvers/mutations/users/removePushSubscription.d.ts.map +1 -1
- package/lib/resolvers/mutations/users/removeUser.d.ts +3 -2
- package/lib/resolvers/mutations/users/removeUser.d.ts.map +1 -1
- package/lib/resolvers/mutations/users/removeUser.js +8 -4
- package/lib/resolvers/mutations/users/removeUser.js.map +1 -1
- package/lib/resolvers/mutations/users/removeUserProductReviews.d.ts +5 -0
- package/lib/resolvers/mutations/users/removeUserProductReviews.d.ts.map +1 -0
- package/lib/resolvers/mutations/users/removeUserProductReviews.js +15 -0
- package/lib/resolvers/mutations/users/removeUserProductReviews.js.map +1 -0
- 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/setUserTags.d.ts +1 -1
- package/lib/resolvers/mutations/users/setUserTags.d.ts.map +1 -1
- package/lib/resolvers/mutations/users/updateUserProfile.d.ts +1 -1
- package/lib/resolvers/mutations/users/updateUserProfile.d.ts.map +1 -1
- package/lib/resolvers/mutations/users/updateUserProfile.js +1 -1
- package/lib/resolvers/mutations/users/updateUserProfile.js.map +1 -1
- package/lib/resolvers/mutations/utils/getOrderCart.d.ts +2 -2
- package/lib/resolvers/mutations/utils/getOrderCart.d.ts.map +1 -1
- package/lib/resolvers/mutations/utils/getOrderCart.js +5 -1
- package/lib/resolvers/mutations/utils/getOrderCart.js.map +1 -1
- package/lib/resolvers/mutations/warehousing/createWarehousingProvider.d.ts +2 -2
- package/lib/resolvers/mutations/warehousing/createWarehousingProvider.d.ts.map +1 -1
- package/lib/resolvers/mutations/warehousing/createWarehousingProvider.js +11 -6
- package/lib/resolvers/mutations/warehousing/createWarehousingProvider.js.map +1 -1
- package/lib/resolvers/mutations/warehousing/exportToken.d.ts +1 -1
- package/lib/resolvers/mutations/warehousing/exportToken.d.ts.map +1 -1
- package/lib/resolvers/mutations/warehousing/invalidateToken.d.ts +1 -1
- package/lib/resolvers/mutations/warehousing/invalidateToken.d.ts.map +1 -1
- package/lib/resolvers/mutations/warehousing/invalidateToken.js +8 -3
- package/lib/resolvers/mutations/warehousing/invalidateToken.js.map +1 -1
- package/lib/resolvers/mutations/warehousing/removeWarehousingProvider.d.ts +1 -1
- package/lib/resolvers/mutations/warehousing/removeWarehousingProvider.d.ts.map +1 -1
- package/lib/resolvers/mutations/warehousing/updateWarehousingProvider.d.ts +2 -2
- package/lib/resolvers/mutations/warehousing/updateWarehousingProvider.d.ts.map +1 -1
- package/lib/resolvers/mutations/warehousing/updateWarehousingProvider.js +1 -2
- package/lib/resolvers/mutations/warehousing/updateWarehousingProvider.js.map +1 -1
- package/lib/resolvers/mutations/worker/addWork.d.ts +3 -3
- package/lib/resolvers/mutations/worker/addWork.d.ts.map +1 -1
- package/lib/resolvers/mutations/worker/addWork.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/finishWork.d.ts +1 -1
- package/lib/resolvers/mutations/worker/finishWork.d.ts.map +1 -1
- package/lib/resolvers/mutations/worker/processNextWork.d.ts +1 -1
- package/lib/resolvers/mutations/worker/processNextWork.d.ts.map +1 -1
- package/lib/resolvers/mutations/worker/processNextWork.js +2 -1
- package/lib/resolvers/mutations/worker/processNextWork.js.map +1 -1
- package/lib/resolvers/mutations/worker/removeWork.d.ts +1 -1
- package/lib/resolvers/mutations/worker/removeWork.d.ts.map +1 -1
- package/lib/resolvers/queries/assortments/assortment.d.ts +1 -1
- package/lib/resolvers/queries/assortments/assortment.d.ts.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/assortments/assortmentsCount.d.ts +1 -1
- package/lib/resolvers/queries/assortments/assortmentsCount.d.ts.map +1 -1
- package/lib/resolvers/queries/assortments/translatedAssortmentMediaTexts.d.ts +1 -1
- package/lib/resolvers/queries/assortments/translatedAssortmentMediaTexts.d.ts.map +1 -1
- package/lib/resolvers/queries/assortments/translatedAssortmentTexts.d.ts +1 -1
- package/lib/resolvers/queries/assortments/translatedAssortmentTexts.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/countriesCount.d.ts +1 -1
- package/lib/resolvers/queries/countries/countriesCount.d.ts.map +1 -1
- package/lib/resolvers/queries/countries/country.d.ts +1 -1
- package/lib/resolvers/queries/countries/country.d.ts.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/currenciesCount.d.ts +1 -1
- package/lib/resolvers/queries/currencies/currenciesCount.d.ts.map +1 -1
- package/lib/resolvers/queries/currencies/currency.d.ts +1 -1
- package/lib/resolvers/queries/currencies/currency.d.ts.map +1 -1
- package/lib/resolvers/queries/delivery/deliveryInterfaces.d.ts +6 -2
- package/lib/resolvers/queries/delivery/deliveryInterfaces.d.ts.map +1 -1
- package/lib/resolvers/queries/delivery/deliveryInterfaces.js +9 -2
- package/lib/resolvers/queries/delivery/deliveryInterfaces.js.map +1 -1
- package/lib/resolvers/queries/delivery/deliveryProvider.d.ts +1 -1
- package/lib/resolvers/queries/delivery/deliveryProvider.d.ts.map +1 -1
- package/lib/resolvers/queries/delivery/deliveryProviders.d.ts +5 -3
- package/lib/resolvers/queries/delivery/deliveryProviders.d.ts.map +1 -1
- package/lib/resolvers/queries/delivery/deliveryProviders.js.map +1 -1
- package/lib/resolvers/queries/delivery/deliveryProvidersCount.d.ts +5 -3
- package/lib/resolvers/queries/delivery/deliveryProvidersCount.d.ts.map +1 -1
- package/lib/resolvers/queries/delivery/deliveryProvidersCount.js.map +1 -1
- package/lib/resolvers/queries/enrollments/enrollment.d.ts +1 -1
- package/lib/resolvers/queries/enrollments/enrollment.d.ts.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/enrollments/enrollmentsCount.d.ts +1 -1
- package/lib/resolvers/queries/enrollments/enrollmentsCount.d.ts.map +1 -1
- package/lib/resolvers/queries/events/event.d.ts +1 -1
- package/lib/resolvers/queries/events/event.d.ts.map +1 -1
- package/lib/resolvers/queries/events/eventStatistics.d.ts +3 -3
- package/lib/resolvers/queries/events/eventStatistics.d.ts.map +1 -1
- package/lib/resolvers/queries/events/eventStatistics.js +2 -1
- package/lib/resolvers/queries/events/eventStatistics.js.map +1 -1
- package/lib/resolvers/queries/events/events.d.ts +1 -1
- package/lib/resolvers/queries/events/events.d.ts.map +1 -1
- package/lib/resolvers/queries/events/eventsCounts.d.ts +1 -1
- package/lib/resolvers/queries/events/eventsCounts.d.ts.map +1 -1
- package/lib/resolvers/queries/filters/filter.d.ts +1 -1
- package/lib/resolvers/queries/filters/filter.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/filtersCount.d.ts +1 -1
- package/lib/resolvers/queries/filters/filtersCount.d.ts.map +1 -1
- package/lib/resolvers/queries/filters/searchAssortments.d.ts +10 -2
- package/lib/resolvers/queries/filters/searchAssortments.d.ts.map +1 -1
- package/lib/resolvers/queries/filters/searchAssortments.js +3 -3
- package/lib/resolvers/queries/filters/searchAssortments.js.map +1 -1
- package/lib/resolvers/queries/filters/searchProducts.d.ts +7 -2
- package/lib/resolvers/queries/filters/searchProducts.d.ts.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/filters/translatedFilterTexts.d.ts +1 -1
- package/lib/resolvers/queries/filters/translatedFilterTexts.d.ts.map +1 -1
- package/lib/resolvers/queries/languages/language.d.ts +1 -1
- package/lib/resolvers/queries/languages/language.d.ts.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/languagesCount.d.ts +1 -1
- package/lib/resolvers/queries/languages/languagesCount.d.ts.map +1 -1
- package/lib/resolvers/queries/orders/order.d.ts +1 -1
- package/lib/resolvers/queries/orders/order.d.ts.map +1 -1
- package/lib/resolvers/queries/orders/orderStatistics.d.ts +3 -3
- package/lib/resolvers/queries/orders/orderStatistics.d.ts.map +1 -1
- package/lib/resolvers/queries/orders/orderStatistics.js +2 -1
- package/lib/resolvers/queries/orders/orderStatistics.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/ordersCount.d.ts +1 -1
- package/lib/resolvers/queries/orders/ordersCount.d.ts.map +1 -1
- package/lib/resolvers/queries/payment/paymentInterfaces.d.ts +6 -2
- package/lib/resolvers/queries/payment/paymentInterfaces.d.ts.map +1 -1
- package/lib/resolvers/queries/payment/paymentInterfaces.js +9 -2
- package/lib/resolvers/queries/payment/paymentInterfaces.js.map +1 -1
- package/lib/resolvers/queries/payment/paymentProvider.d.ts +1 -1
- package/lib/resolvers/queries/payment/paymentProvider.d.ts.map +1 -1
- package/lib/resolvers/queries/payment/paymentProviders.d.ts +1 -1
- package/lib/resolvers/queries/payment/paymentProviders.d.ts.map +1 -1
- package/lib/resolvers/queries/payment/paymentProvidersCount.d.ts +1 -1
- package/lib/resolvers/queries/payment/paymentProvidersCount.d.ts.map +1 -1
- package/lib/resolvers/queries/products/product.d.ts +1 -1
- package/lib/resolvers/queries/products/product.d.ts.map +1 -1
- package/lib/resolvers/queries/products/productCatalogPrices.d.ts +1 -1
- package/lib/resolvers/queries/products/productCatalogPrices.d.ts.map +1 -1
- package/lib/resolvers/queries/products/productReview.d.ts +1 -1
- package/lib/resolvers/queries/products/productReview.d.ts.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/productReviewsCount.d.ts +1 -1
- package/lib/resolvers/queries/products/productReviewsCount.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/products/productsCount.d.ts +1 -1
- package/lib/resolvers/queries/products/productsCount.d.ts.map +1 -1
- package/lib/resolvers/queries/products/translatedProductMediaTexts.d.ts +1 -1
- package/lib/resolvers/queries/products/translatedProductMediaTexts.d.ts.map +1 -1
- package/lib/resolvers/queries/products/translatedProductTexts.d.ts +1 -1
- package/lib/resolvers/queries/products/translatedProductTexts.d.ts.map +1 -1
- package/lib/resolvers/queries/products/translatedProductVariationTexts.d.ts +1 -1
- package/lib/resolvers/queries/products/translatedProductVariationTexts.d.ts.map +1 -1
- package/lib/resolvers/queries/quotations/quotation.d.ts +1 -1
- package/lib/resolvers/queries/quotations/quotation.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/quotationsCount.d.ts +1 -1
- package/lib/resolvers/queries/quotations/quotationsCount.d.ts.map +1 -1
- package/lib/resolvers/queries/shopInfo.d.ts +1 -1
- package/lib/resolvers/queries/shopInfo.d.ts.map +1 -1
- package/lib/resolvers/queries/users/me.d.ts +1 -1
- package/lib/resolvers/queries/users/me.d.ts.map +1 -1
- package/lib/resolvers/queries/users/user.d.ts +1 -1
- package/lib/resolvers/queries/users/user.d.ts.map +1 -1
- package/lib/resolvers/queries/users/users.d.ts +5 -2
- package/lib/resolvers/queries/users/users.d.ts.map +1 -1
- package/lib/resolvers/queries/users/users.js +1 -0
- package/lib/resolvers/queries/users/users.js.map +1 -1
- package/lib/resolvers/queries/users/usersCount.d.ts +1 -1
- package/lib/resolvers/queries/users/usersCount.d.ts.map +1 -1
- package/lib/resolvers/queries/users/validateResetPasswordToken.d.ts +1 -1
- package/lib/resolvers/queries/users/validateResetPasswordToken.d.ts.map +1 -1
- package/lib/resolvers/queries/users/validateVerifyEmailToken.d.ts +1 -1
- package/lib/resolvers/queries/users/validateVerifyEmailToken.d.ts.map +1 -1
- package/lib/resolvers/queries/warehousing/token.d.ts +1 -1
- package/lib/resolvers/queries/warehousing/token.d.ts.map +1 -1
- package/lib/resolvers/queries/warehousing/tokens.d.ts +1 -1
- package/lib/resolvers/queries/warehousing/tokens.d.ts.map +1 -1
- package/lib/resolvers/queries/warehousing/warehousingInterfaces.d.ts +7 -3
- package/lib/resolvers/queries/warehousing/warehousingInterfaces.d.ts.map +1 -1
- package/lib/resolvers/queries/warehousing/warehousingInterfaces.js +10 -3
- package/lib/resolvers/queries/warehousing/warehousingInterfaces.js.map +1 -1
- package/lib/resolvers/queries/warehousing/warehousingProvider.d.ts +1 -1
- package/lib/resolvers/queries/warehousing/warehousingProvider.d.ts.map +1 -1
- package/lib/resolvers/queries/warehousing/warehousingProviders.d.ts +5 -3
- package/lib/resolvers/queries/warehousing/warehousingProviders.d.ts.map +1 -1
- package/lib/resolvers/queries/warehousing/warehousingProviders.js.map +1 -1
- package/lib/resolvers/queries/warehousing/warehousingProvidersCount.d.ts +5 -3
- package/lib/resolvers/queries/warehousing/warehousingProvidersCount.d.ts.map +1 -1
- package/lib/resolvers/queries/warehousing/warehousingProvidersCount.js.map +1 -1
- package/lib/resolvers/queries/worker/activeWorkTypes.d.ts +1 -1
- package/lib/resolvers/queries/worker/activeWorkTypes.d.ts.map +1 -1
- package/lib/resolvers/queries/worker/activeWorkTypes.js +6 -1
- package/lib/resolvers/queries/worker/activeWorkTypes.js.map +1 -1
- package/lib/resolvers/queries/worker/work.d.ts +1 -1
- package/lib/resolvers/queries/worker/work.d.ts.map +1 -1
- package/lib/resolvers/queries/worker/workQueue.d.ts +1 -1
- package/lib/resolvers/queries/worker/workQueue.d.ts.map +1 -1
- package/lib/resolvers/queries/worker/workQueueCount.d.ts +2 -2
- package/lib/resolvers/queries/worker/workQueueCount.d.ts.map +1 -1
- package/lib/resolvers/queries/worker/workStatistics.d.ts +3 -3
- package/lib/resolvers/queries/worker/workStatistics.d.ts.map +1 -1
- package/lib/resolvers/queries/worker/workStatistics.js +2 -1
- package/lib/resolvers/queries/worker/workStatistics.js.map +1 -1
- package/lib/resolvers/type/assortment/assortment-filter-types.d.ts +1 -1
- package/lib/resolvers/type/assortment/assortment-filter-types.d.ts.map +1 -1
- package/lib/resolvers/type/assortment/assortment-link-types.d.ts +1 -1
- package/lib/resolvers/type/assortment/assortment-link-types.d.ts.map +1 -1
- package/lib/resolvers/type/assortment/assortment-media-types.d.ts +1 -1
- package/lib/resolvers/type/assortment/assortment-media-types.d.ts.map +1 -1
- package/lib/resolvers/type/assortment/assortment-path-link-types.d.ts +1 -1
- package/lib/resolvers/type/assortment/assortment-path-link-types.d.ts.map +1 -1
- package/lib/resolvers/type/assortment/assortment-product-types.d.ts +1 -1
- package/lib/resolvers/type/assortment/assortment-product-types.d.ts.map +1 -1
- package/lib/resolvers/type/assortment/assortment-types.d.ts +27 -26
- package/lib/resolvers/type/assortment/assortment-types.d.ts.map +1 -1
- package/lib/resolvers/type/assortment/assortment-types.js +14 -11
- package/lib/resolvers/type/assortment/assortment-types.js.map +1 -1
- package/lib/resolvers/type/bookmark-types.d.ts +4 -4
- package/lib/resolvers/type/bookmark-types.d.ts.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/delivery-provider-types.d.ts +3 -2
- package/lib/resolvers/type/delivery-provider-types.d.ts.map +1 -1
- package/lib/resolvers/type/delivery-provider-types.js +20 -19
- package/lib/resolvers/type/delivery-provider-types.js.map +1 -1
- package/lib/resolvers/type/dispatch-types.d.ts +1 -1
- package/lib/resolvers/type/dispatch-types.d.ts.map +1 -1
- package/lib/resolvers/type/dispatch-types.js +3 -6
- package/lib/resolvers/type/dispatch-types.js.map +1 -1
- package/lib/resolvers/type/enrollment/enrollment-delivery-types.d.ts +1 -1
- package/lib/resolvers/type/enrollment/enrollment-delivery-types.d.ts.map +1 -1
- package/lib/resolvers/type/enrollment/enrollment-payment-types.d.ts +1 -1
- package/lib/resolvers/type/enrollment/enrollment-payment-types.d.ts.map +1 -1
- package/lib/resolvers/type/enrollment/enrollment-period-types.d.ts +1 -1
- package/lib/resolvers/type/enrollment/enrollment-period-types.d.ts.map +1 -1
- package/lib/resolvers/type/enrollment/enrollment-plan-tyes.d.ts +1 -1
- package/lib/resolvers/type/enrollment/enrollment-plan-tyes.d.ts.map +1 -1
- package/lib/resolvers/type/enrollment/enrollment-types.d.ts +1 -1
- package/lib/resolvers/type/enrollment/enrollment-types.d.ts.map +1 -1
- package/lib/resolvers/type/event-types.d.ts +2 -2
- package/lib/resolvers/type/event-types.d.ts.map +1 -1
- package/lib/resolvers/type/filter/filter-option-types.d.ts +1 -1
- package/lib/resolvers/type/filter/filter-option-types.d.ts.map +1 -1
- package/lib/resolvers/type/filter/filter-types.d.ts +1 -1
- package/lib/resolvers/type/filter/filter-types.d.ts.map +1 -1
- package/lib/resolvers/type/filter/loaded-filter-option-types.d.ts +11 -1
- package/lib/resolvers/type/filter/loaded-filter-option-types.d.ts.map +1 -1
- package/lib/resolvers/type/filter/loaded-filter-option-types.js +15 -1
- package/lib/resolvers/type/filter/loaded-filter-option-types.js.map +1 -1
- package/lib/resolvers/type/filter/loaded-filter-types.d.ts +24 -1
- package/lib/resolvers/type/filter/loaded-filter-types.d.ts.map +1 -1
- package/lib/resolvers/type/filter/loaded-filter-types.js +35 -1
- package/lib/resolvers/type/filter/loaded-filter-types.js.map +1 -1
- package/lib/resolvers/type/index.d.ts +363 -121
- package/lib/resolvers/type/index.d.ts.map +1 -1
- package/lib/resolvers/type/index.js +3 -1
- package/lib/resolvers/type/index.js.map +1 -1
- package/lib/resolvers/type/language-types.d.ts +1 -1
- package/lib/resolvers/type/language-types.d.ts.map +1 -1
- package/lib/resolvers/type/media-types.d.ts +2 -2
- package/lib/resolvers/type/media-types.d.ts.map +1 -1
- package/lib/resolvers/type/media-types.js +17 -2
- package/lib/resolvers/type/media-types.js.map +1 -1
- package/lib/resolvers/type/order/order-delivery-discount-types.d.ts +11 -10
- package/lib/resolvers/type/order/order-delivery-discount-types.d.ts.map +1 -1
- package/lib/resolvers/type/order/order-delivery-discount-types.js +3 -6
- package/lib/resolvers/type/order/order-delivery-discount-types.js.map +1 -1
- package/lib/resolvers/type/order/order-delivery-pickup-types.d.ts +1 -1
- package/lib/resolvers/type/order/order-delivery-pickup-types.d.ts.map +1 -1
- package/lib/resolvers/type/order/order-delivery-pickup-types.js +14 -7
- package/lib/resolvers/type/order/order-delivery-pickup-types.js.map +1 -1
- package/lib/resolvers/type/order/order-delivery-shipping-types.d.ts +2 -2
- 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 -3
- 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-discount-types.d.ts +5 -3
- package/lib/resolvers/type/order/order-discount-types.d.ts.map +1 -1
- package/lib/resolvers/type/order/order-discount-types.js +3 -3
- package/lib/resolvers/type/order/order-discount-types.js.map +1 -1
- package/lib/resolvers/type/order/order-discountable-types.d.ts +3 -6
- package/lib/resolvers/type/order/order-discountable-types.d.ts.map +1 -1
- package/lib/resolvers/type/order/order-discountable-types.js.map +1 -1
- package/lib/resolvers/type/order/order-global-discount-types.d.ts +20 -14
- package/lib/resolvers/type/order/order-global-discount-types.d.ts.map +1 -1
- package/lib/resolvers/type/order/order-global-discount-types.js +3 -6
- package/lib/resolvers/type/order/order-global-discount-types.js.map +1 -1
- package/lib/resolvers/type/order/order-item-discount-types.d.ts +10 -11
- package/lib/resolvers/type/order/order-item-discount-types.d.ts.map +1 -1
- package/lib/resolvers/type/order/order-item-discount-types.js +3 -6
- package/lib/resolvers/type/order/order-item-discount-types.js.map +1 -1
- package/lib/resolvers/type/order/order-item-types.d.ts +4 -4
- package/lib/resolvers/type/order/order-item-types.d.ts.map +1 -1
- package/lib/resolvers/type/order/order-item-types.js +18 -20
- package/lib/resolvers/type/order/order-item-types.js.map +1 -1
- package/lib/resolvers/type/order/order-payment-card-types.d.ts +1 -1
- package/lib/resolvers/type/order/order-payment-card-types.d.ts.map +1 -1
- package/lib/resolvers/type/order/order-payment-card-types.js +7 -3
- package/lib/resolvers/type/order/order-payment-card-types.js.map +1 -1
- package/lib/resolvers/type/order/order-payment-discount-types.d.ts +20 -14
- package/lib/resolvers/type/order/order-payment-discount-types.d.ts.map +1 -1
- package/lib/resolvers/type/order/order-payment-discount-types.js +15 -12
- package/lib/resolvers/type/order/order-payment-discount-types.js.map +1 -1
- package/lib/resolvers/type/order/order-payment-generic-types.d.ts +1 -1
- package/lib/resolvers/type/order/order-payment-generic-types.d.ts.map +1 -1
- package/lib/resolvers/type/order/order-payment-generic-types.js +7 -3
- package/lib/resolvers/type/order/order-payment-generic-types.js.map +1 -1
- package/lib/resolvers/type/order/order-payment-invoice-types.d.ts +1 -1
- package/lib/resolvers/type/order/order-payment-invoice-types.d.ts.map +1 -1
- package/lib/resolvers/type/order/order-payment-invoice-types.js +7 -3
- 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-types.d.ts +4 -8
- package/lib/resolvers/type/order/order-types.d.ts.map +1 -1
- package/lib/resolvers/type/order/order-types.js +14 -13
- package/lib/resolvers/type/order/order-types.js.map +1 -1
- package/lib/resolvers/type/payment/payment-credentials-types.d.ts +1 -1
- package/lib/resolvers/type/payment/payment-credentials-types.d.ts.map +1 -1
- package/lib/resolvers/type/payment/payment-credentials-types.js +8 -3
- package/lib/resolvers/type/payment/payment-credentials-types.js.map +1 -1
- package/lib/resolvers/type/payment/payment-provider-types.d.ts +13 -14
- package/lib/resolvers/type/payment/payment-provider-types.d.ts.map +1 -1
- package/lib/resolvers/type/payment/payment-provider-types.js +22 -21
- package/lib/resolvers/type/payment/payment-provider-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-item-types.d.ts +1 -1
- package/lib/resolvers/type/product/product-bundle-item-types.d.ts.map +1 -1
- package/lib/resolvers/type/product/product-bundle-types.d.ts +7 -7
- package/lib/resolvers/type/product/product-bundle-types.d.ts.map +1 -1
- package/lib/resolvers/type/product/product-catalog-price-types.d.ts +1 -1
- package/lib/resolvers/type/product/product-catalog-price-types.d.ts.map +1 -1
- package/lib/resolvers/type/product/product-configurable-types.d.ts +3 -4
- package/lib/resolvers/type/product/product-configurable-types.d.ts.map +1 -1
- package/lib/resolvers/type/product/product-configurable-types.js +62 -8
- package/lib/resolvers/type/product/product-configurable-types.js.map +1 -1
- package/lib/resolvers/type/product/product-discount.d.ts +6 -10
- package/lib/resolvers/type/product/product-discount.d.ts.map +1 -1
- package/lib/resolvers/type/product/product-discount.js +9 -11
- package/lib/resolvers/type/product/product-discount.js.map +1 -1
- package/lib/resolvers/type/product/product-media-types.d.ts +1 -1
- package/lib/resolvers/type/product/product-media-types.d.ts.map +1 -1
- package/lib/resolvers/type/product/product-plan-types.d.ts +2 -2
- package/lib/resolvers/type/product/product-plan-types.d.ts.map +1 -1
- package/lib/resolvers/type/product/product-plan-types.js +21 -7
- 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-simple-types.d.ts +3 -3
- package/lib/resolvers/type/product/product-simple-types.d.ts.map +1 -1
- package/lib/resolvers/type/product/product-simple-types.js +11 -8
- package/lib/resolvers/type/product/product-simple-types.js.map +1 -1
- package/lib/resolvers/type/product/product-tokenized-types.d.ts +2 -2
- package/lib/resolvers/type/product/product-tokenized-types.d.ts.map +1 -1
- package/lib/resolvers/type/product/product-tokenized-types.js +6 -4
- package/lib/resolvers/type/product/product-tokenized-types.js.map +1 -1
- package/lib/resolvers/type/product/product-types.d.ts +2 -2
- package/lib/resolvers/type/product/product-types.d.ts.map +1 -1
- package/lib/resolvers/type/product/product-types.js +8 -5
- package/lib/resolvers/type/product/product-types.js.map +1 -1
- package/lib/resolvers/type/product/product-variation-assignment-types.d.ts +1 -1
- package/lib/resolvers/type/product/product-variation-assignment-types.d.ts.map +1 -1
- package/lib/resolvers/type/product/product-variation-assignment-vector.d.ts +1 -1
- package/lib/resolvers/type/product/product-variation-assignment-vector.d.ts.map +1 -1
- package/lib/resolvers/type/product/product-variation-option-types.d.ts +1 -1
- package/lib/resolvers/type/product/product-variation-option-types.d.ts.map +1 -1
- package/lib/resolvers/type/product/product-variation-types.d.ts +1 -1
- package/lib/resolvers/type/product/product-variation-types.d.ts.map +1 -1
- package/lib/resolvers/type/product-search-result-types.d.ts +28 -0
- package/lib/resolvers/type/product-search-result-types.d.ts.map +1 -0
- package/lib/resolvers/type/product-search-result-types.js +45 -0
- package/lib/resolvers/type/product-search-result-types.js.map +1 -0
- package/lib/resolvers/type/quotation-types.d.ts +1 -1
- package/lib/resolvers/type/quotation-types.d.ts.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/stock-types.d.ts +1 -1
- package/lib/resolvers/type/stock-types.d.ts.map +1 -1
- package/lib/resolvers/type/stock-types.js +3 -6
- package/lib/resolvers/type/stock-types.js.map +1 -1
- package/lib/resolvers/type/token-types.d.ts +3 -3
- package/lib/resolvers/type/token-types.d.ts.map +1 -1
- package/lib/resolvers/type/token-types.js +14 -6
- package/lib/resolvers/type/token-types.js.map +1 -1
- package/lib/resolvers/type/user-types.d.ts +24 -5
- package/lib/resolvers/type/user-types.d.ts.map +1 -1
- package/lib/resolvers/type/user-types.js +7 -1
- package/lib/resolvers/type/user-types.js.map +1 -1
- package/lib/resolvers/type/warehousing-provider-types.d.ts +3 -2
- package/lib/resolvers/type/warehousing-provider-types.d.ts.map +1 -1
- package/lib/resolvers/type/warehousing-provider-types.js +13 -6
- package/lib/resolvers/type/warehousing-provider-types.js.map +1 -1
- package/lib/resolvers/type/webauthn-credentials-types.d.ts +27 -10
- package/lib/resolvers/type/webauthn-credentials-types.d.ts.map +1 -1
- package/lib/resolvers/type/webauthn-credentials-types.js.map +1 -1
- package/lib/resolvers/type/work-types.d.ts +1 -1
- package/lib/resolvers/type/work-types.d.ts.map +1 -1
- package/lib/resolvers/type/work-types.js +6 -2
- package/lib/resolvers/type/work-types.js.map +1 -1
- package/lib/roles/all.d.ts.map +1 -1
- package/lib/roles/all.js +9 -0
- package/lib/roles/all.js.map +1 -1
- package/lib/roles/index.d.ts.map +1 -1
- package/lib/roles/index.js +3 -0
- package/lib/roles/index.js.map +1 -1
- package/lib/roles/loggedIn.d.ts.map +1 -1
- package/lib/roles/loggedIn.js +22 -0
- package/lib/roles/loggedIn.js.map +1 -1
- package/lib/schema/mutation.d.ts.map +1 -1
- package/lib/schema/mutation.js +6 -1
- package/lib/schema/mutation.js.map +1 -1
- package/lib/schema/query.d.ts.map +1 -1
- package/lib/schema/query.js +11 -4
- package/lib/schema/query.js.map +1 -1
- package/lib/schema/types/assortment.js +1 -1
- package/lib/schema/types/media.js +1 -1
- package/lib/schema/types/product/product.js +1 -1
- package/package.json +25 -41
- package/src/api-index.ts +3 -2
- package/src/context.ts +51 -6
- package/src/errors.ts +12 -0
- package/src/express/createBulkImportMiddleware.ts +6 -9
- package/src/express/createERCMetadataMiddleware.ts +17 -27
- package/src/express/index.ts +35 -13
- package/src/fastify/bulkImportHandler.ts +62 -0
- package/src/fastify/ercMetadataHandler.ts +50 -0
- package/src/fastify/index.ts +45 -18
- package/src/loaders/index.ts +295 -240
- package/src/locale-context.ts +25 -15
- package/src/resolvers/mutations/accounts/addEmail.ts +1 -1
- package/src/resolvers/mutations/accounts/addWeb3Address.ts +1 -1
- package/src/resolvers/mutations/accounts/addWebAuthnCredentials.ts +1 -1
- package/src/resolvers/mutations/accounts/changePassword.ts +1 -1
- package/src/resolvers/mutations/accounts/createUser.ts +1 -1
- package/src/resolvers/mutations/accounts/createWebAuthnCredentialCreationOptions.ts +2 -2
- package/src/resolvers/mutations/accounts/createWebAuthnCredentialRequestOptions.ts +2 -2
- package/src/resolvers/mutations/accounts/enrollUser.ts +1 -1
- package/src/resolvers/mutations/accounts/forgotPassword.ts +1 -1
- package/src/resolvers/mutations/accounts/loginAsGuest.ts +3 -3
- package/src/resolvers/mutations/accounts/loginWithPassword.ts +3 -3
- package/src/resolvers/mutations/accounts/loginWithWebAuthn.ts +1 -1
- package/src/resolvers/mutations/accounts/logout.ts +1 -1
- package/src/resolvers/mutations/accounts/removeEmail.ts +1 -1
- package/src/resolvers/mutations/accounts/removeWeb3Address.ts +1 -1
- package/src/resolvers/mutations/accounts/removeWebAuthnCredentials.ts +1 -1
- package/src/resolvers/mutations/accounts/resetPassword.ts +1 -1
- package/src/resolvers/mutations/accounts/sendEnrollmentEmail.ts +1 -1
- package/src/resolvers/mutations/accounts/sendVerificationEmail.ts +1 -1
- package/src/resolvers/mutations/accounts/setPassword.ts +1 -1
- package/src/resolvers/mutations/accounts/setUsername.ts +1 -1
- package/src/resolvers/mutations/accounts/verifyEmail.ts +1 -1
- package/src/resolvers/mutations/accounts/verifyWeb3Address.ts +1 -1
- package/src/resolvers/mutations/assortments/addAssortmentFilter.ts +1 -1
- package/src/resolvers/mutations/assortments/addAssortmentLink.ts +1 -1
- package/src/resolvers/mutations/assortments/addAssortmentProduct.ts +1 -1
- package/src/resolvers/mutations/assortments/createAssortment.ts +1 -1
- package/src/resolvers/mutations/assortments/prepareAssortmentMediaUpload.ts +6 -9
- package/src/resolvers/mutations/assortments/removeAssortment.ts +1 -1
- package/src/resolvers/mutations/assortments/removeAssortmentFilter.ts +1 -1
- package/src/resolvers/mutations/assortments/removeAssortmentLink.ts +1 -1
- package/src/resolvers/mutations/assortments/removeAssortmentMedia.ts +1 -1
- package/src/resolvers/mutations/assortments/removeAssortmentProduct.ts +1 -1
- 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/setBaseAssortment.ts +1 -1
- package/src/resolvers/mutations/assortments/updateAssortment.ts +1 -1
- package/src/resolvers/mutations/assortments/updateAssortmentMediaTexts.ts +1 -1
- package/src/resolvers/mutations/assortments/updateAssortmentTexts.ts +1 -1
- package/src/resolvers/mutations/bookmarks/bookmark.ts +1 -1
- package/src/resolvers/mutations/bookmarks/createBookmark.ts +1 -1
- package/src/resolvers/mutations/bookmarks/removeBookmark.ts +1 -1
- package/src/resolvers/mutations/countries/createCountry.ts +1 -1
- package/src/resolvers/mutations/countries/removeCountry.ts +1 -1
- package/src/resolvers/mutations/countries/updateCountry.ts +1 -1
- package/src/resolvers/mutations/currencies/createCurrency.ts +1 -1
- package/src/resolvers/mutations/currencies/removeCurrency.ts +1 -1
- package/src/resolvers/mutations/currencies/updateCurrency.ts +1 -1
- package/src/resolvers/mutations/delivery/createDeliveryProvider.ts +6 -1
- package/src/resolvers/mutations/delivery/removeDeliveryProvider.ts +1 -1
- package/src/resolvers/mutations/delivery/updateDeliveryProvider.ts +1 -1
- package/src/resolvers/mutations/enrollments/activateEnrollment.ts +3 -3
- package/src/resolvers/mutations/enrollments/createEnrollment.ts +20 -18
- package/src/resolvers/mutations/enrollments/terminateEnrollment.ts +3 -3
- package/src/resolvers/mutations/enrollments/updateEnrollment.ts +5 -4
- package/src/resolvers/mutations/files/confirmMediaUpload.ts +2 -2
- package/src/resolvers/mutations/filters/createFilter.ts +11 -10
- package/src/resolvers/mutations/filters/createFilterOption.ts +4 -3
- package/src/resolvers/mutations/filters/removeFilter.ts +1 -1
- package/src/resolvers/mutations/filters/removeFilterOption.ts +7 -8
- package/src/resolvers/mutations/filters/updateFilter.ts +6 -2
- package/src/resolvers/mutations/filters/updateFilterTexts.ts +1 -1
- package/src/resolvers/mutations/index.ts +3 -1
- package/src/resolvers/mutations/languages/createLanguage.ts +1 -1
- package/src/resolvers/mutations/languages/removeLanguage.ts +1 -1
- package/src/resolvers/mutations/languages/updateLanguage.ts +1 -1
- package/src/resolvers/mutations/orders/addCartDiscount.ts +15 -5
- package/src/resolvers/mutations/orders/addCartProduct.ts +25 -11
- package/src/resolvers/mutations/orders/addCartQuotation.ts +24 -23
- package/src/resolvers/mutations/orders/addMultipleCartProducts.ts +38 -21
- package/src/resolvers/mutations/orders/checkoutCart.ts +7 -5
- package/src/resolvers/mutations/orders/confirmOrder.ts +3 -3
- package/src/resolvers/mutations/orders/createCart.ts +7 -5
- package/src/resolvers/mutations/orders/deliverOrder.ts +3 -3
- package/src/resolvers/mutations/orders/emptyCart.ts +4 -3
- package/src/resolvers/mutations/orders/payOrder.ts +3 -3
- package/src/resolvers/mutations/orders/rejectOrder.ts +3 -3
- package/src/resolvers/mutations/orders/removeCartDiscount.ts +18 -5
- package/src/resolvers/mutations/orders/removeCartItem.ts +3 -3
- package/src/resolvers/mutations/orders/removeOrder.ts +1 -1
- package/src/resolvers/mutations/orders/setOrderDeliveryProvider.ts +4 -4
- package/src/resolvers/mutations/orders/setOrderPaymentProvider.ts +4 -4
- package/src/resolvers/mutations/orders/signPaymentProviderForCheckout.ts +6 -3
- package/src/resolvers/mutations/orders/updateCart.ts +6 -6
- package/src/resolvers/mutations/orders/updateCartItem.ts +15 -9
- package/src/resolvers/mutations/orders/updateOrderDeliveryPickUp.ts +3 -3
- package/src/resolvers/mutations/orders/updateOrderDeliveryShipping.ts +3 -3
- package/src/resolvers/mutations/orders/updateOrderPaymentCard.ts +3 -3
- package/src/resolvers/mutations/orders/updateOrderPaymentGeneric.ts +3 -3
- package/src/resolvers/mutations/orders/updateOrderPaymentInvoice.ts +3 -3
- package/src/resolvers/mutations/payment/createPaymentProvider.ts +7 -6
- package/src/resolvers/mutations/payment/markPaymentCredentialsPreferred.ts +1 -1
- package/src/resolvers/mutations/payment/registerPaymentCredentials.ts +6 -7
- package/src/resolvers/mutations/payment/removePaymentCredentials.ts +1 -1
- package/src/resolvers/mutations/payment/removePaymentProvider.ts +1 -1
- package/src/resolvers/mutations/payment/signPaymentProviderForCredentialRegistration.ts +9 -9
- package/src/resolvers/mutations/payment/updatePaymentProvider.ts +1 -1
- package/src/resolvers/mutations/products/addProductAssignment.ts +1 -1
- package/src/resolvers/mutations/products/addProductReviewVote.ts +1 -1
- package/src/resolvers/mutations/products/createProduct.ts +1 -1
- package/src/resolvers/mutations/products/createProductBundleItem.ts +1 -1
- package/src/resolvers/mutations/products/createProductReview.ts +1 -1
- package/src/resolvers/mutations/products/createProductVariation.ts +3 -1
- package/src/resolvers/mutations/products/createProductVariationOption.ts +2 -1
- package/src/resolvers/mutations/products/prepareProductMediaUpload.ts +6 -9
- package/src/resolvers/mutations/products/publishProduct.ts +1 -1
- package/src/resolvers/mutations/products/removeBundleItem.ts +1 -1
- package/src/resolvers/mutations/products/removeProduct.ts +2 -2
- package/src/resolvers/mutations/products/removeProductAssignment.ts +1 -1
- package/src/resolvers/mutations/products/removeProductMedia.ts +1 -1
- package/src/resolvers/mutations/products/removeProductReview.ts +1 -1
- package/src/resolvers/mutations/products/removeProductReviewVote.ts +1 -1
- package/src/resolvers/mutations/products/removeProductVariation.ts +1 -1
- package/src/resolvers/mutations/products/removeProductVariationOption.ts +1 -1
- package/src/resolvers/mutations/products/reorderProductMedia.ts +1 -1
- package/src/resolvers/mutations/products/unpublishProduct.ts +1 -1
- package/src/resolvers/mutations/products/updateProduct.ts +1 -1
- package/src/resolvers/mutations/products/updateProductCommerce.ts +1 -1
- package/src/resolvers/mutations/products/updateProductMediaTexts.ts +1 -1
- package/src/resolvers/mutations/products/updateProductPlan.ts +1 -1
- package/src/resolvers/mutations/products/updateProductReview.ts +1 -1
- package/src/resolvers/mutations/products/updateProductSupply.ts +1 -1
- package/src/resolvers/mutations/products/updateProductTexts.ts +1 -1
- package/src/resolvers/mutations/products/updateProductTokenization.ts +1 -1
- package/src/resolvers/mutations/products/updateProductVariationTexts.ts +1 -1
- package/src/resolvers/mutations/products/updateProductWarehousing.ts +1 -1
- package/src/resolvers/mutations/quotations/makeQuotationProposal.ts +3 -3
- package/src/resolvers/mutations/quotations/rejectQuotation.ts +3 -3
- package/src/resolvers/mutations/quotations/requestQuotation.ts +11 -11
- package/src/resolvers/mutations/quotations/verifyQuotation.ts +3 -3
- package/src/resolvers/mutations/users/addPushSubscription.ts +1 -1
- package/src/resolvers/mutations/users/heartbeat.ts +1 -1
- package/src/resolvers/mutations/users/prepareUserAvatarUpload.ts +6 -9
- package/src/resolvers/mutations/users/removePushSubscription.ts +1 -1
- package/src/resolvers/mutations/users/removeUser.ts +10 -6
- package/src/resolvers/mutations/users/removeUserProductReviews.ts +23 -0
- package/src/resolvers/mutations/users/setRoles.ts +1 -1
- package/src/resolvers/mutations/users/setUserTags.ts +1 -1
- package/src/resolvers/mutations/users/updateUserProfile.ts +2 -2
- package/src/resolvers/mutations/utils/getOrderCart.ts +6 -5
- package/src/resolvers/mutations/warehousing/createWarehousingProvider.ts +11 -6
- package/src/resolvers/mutations/warehousing/exportToken.ts +1 -1
- package/src/resolvers/mutations/warehousing/invalidateToken.ts +11 -5
- package/src/resolvers/mutations/warehousing/removeWarehousingProvider.ts +1 -1
- package/src/resolvers/mutations/warehousing/updateWarehousingProvider.ts +2 -4
- package/src/resolvers/mutations/worker/addWork.ts +3 -3
- package/src/resolvers/mutations/worker/allocateWork.ts +1 -1
- package/src/resolvers/mutations/worker/finishWork.ts +1 -1
- package/src/resolvers/mutations/worker/processNextWork.ts +3 -2
- package/src/resolvers/mutations/worker/removeWork.ts +1 -1
- package/src/resolvers/queries/assortments/assortment.ts +1 -1
- package/src/resolvers/queries/assortments/assortments.ts +1 -1
- package/src/resolvers/queries/assortments/assortmentsCount.ts +1 -1
- package/src/resolvers/queries/assortments/translatedAssortmentMediaTexts.ts +1 -1
- package/src/resolvers/queries/assortments/translatedAssortmentTexts.ts +1 -1
- package/src/resolvers/queries/countries/countries.ts +1 -1
- package/src/resolvers/queries/countries/countriesCount.ts +1 -1
- package/src/resolvers/queries/countries/country.ts +1 -1
- package/src/resolvers/queries/currencies/currencies.ts +1 -1
- package/src/resolvers/queries/currencies/currenciesCount.ts +1 -1
- package/src/resolvers/queries/currencies/currency.ts +1 -1
- package/src/resolvers/queries/delivery/deliveryInterfaces.ts +10 -3
- package/src/resolvers/queries/delivery/deliveryProvider.ts +1 -1
- package/src/resolvers/queries/delivery/deliveryProviders.ts +5 -3
- package/src/resolvers/queries/delivery/deliveryProvidersCount.ts +5 -3
- package/src/resolvers/queries/enrollments/enrollment.ts +1 -1
- package/src/resolvers/queries/enrollments/enrollments.ts +1 -1
- package/src/resolvers/queries/enrollments/enrollmentsCount.ts +1 -1
- package/src/resolvers/queries/events/event.ts +1 -1
- package/src/resolvers/queries/events/eventStatistics.ts +5 -3
- package/src/resolvers/queries/events/events.ts +1 -1
- package/src/resolvers/queries/events/eventsCounts.ts +1 -1
- package/src/resolvers/queries/filters/filter.ts +1 -1
- package/src/resolvers/queries/filters/filters.ts +1 -1
- package/src/resolvers/queries/filters/filtersCount.ts +1 -1
- package/src/resolvers/queries/filters/searchAssortments.ts +5 -9
- package/src/resolvers/queries/filters/searchProducts.ts +4 -6
- package/src/resolvers/queries/filters/translatedFilterTexts.ts +1 -1
- package/src/resolvers/queries/languages/language.ts +1 -1
- package/src/resolvers/queries/languages/languages.ts +1 -1
- package/src/resolvers/queries/languages/languagesCount.ts +1 -1
- package/src/resolvers/queries/orders/order.ts +1 -1
- package/src/resolvers/queries/orders/orderStatistics.ts +5 -3
- package/src/resolvers/queries/orders/orders.ts +1 -1
- package/src/resolvers/queries/orders/ordersCount.ts +1 -1
- package/src/resolvers/queries/payment/paymentInterfaces.ts +10 -3
- package/src/resolvers/queries/payment/paymentProvider.ts +1 -1
- package/src/resolvers/queries/payment/paymentProviders.ts +1 -1
- package/src/resolvers/queries/payment/paymentProvidersCount.ts +1 -1
- package/src/resolvers/queries/products/product.ts +1 -1
- package/src/resolvers/queries/products/productCatalogPrices.ts +1 -1
- package/src/resolvers/queries/products/productReview.ts +1 -1
- package/src/resolvers/queries/products/productReviews.ts +1 -1
- package/src/resolvers/queries/products/productReviewsCount.ts +1 -1
- package/src/resolvers/queries/products/products.ts +1 -1
- package/src/resolvers/queries/products/productsCount.ts +1 -1
- package/src/resolvers/queries/products/translatedProductMediaTexts.ts +1 -1
- package/src/resolvers/queries/products/translatedProductTexts.ts +1 -1
- package/src/resolvers/queries/products/translatedProductVariationTexts.ts +1 -1
- package/src/resolvers/queries/quotations/quotation.ts +1 -1
- package/src/resolvers/queries/quotations/quotations.ts +1 -1
- package/src/resolvers/queries/quotations/quotationsCount.ts +1 -1
- package/src/resolvers/queries/shopInfo.ts +1 -1
- package/src/resolvers/queries/users/me.ts +1 -1
- package/src/resolvers/queries/users/user.ts +1 -1
- package/src/resolvers/queries/users/users.ts +6 -2
- package/src/resolvers/queries/users/usersCount.ts +1 -1
- package/src/resolvers/queries/users/validateResetPasswordToken.ts +1 -1
- package/src/resolvers/queries/users/validateVerifyEmailToken.ts +1 -1
- package/src/resolvers/queries/warehousing/token.ts +1 -1
- package/src/resolvers/queries/warehousing/tokens.ts +1 -1
- package/src/resolvers/queries/warehousing/warehousingInterfaces.ts +12 -5
- package/src/resolvers/queries/warehousing/warehousingProvider.ts +1 -1
- package/src/resolvers/queries/warehousing/warehousingProviders.ts +5 -3
- package/src/resolvers/queries/warehousing/warehousingProvidersCount.ts +5 -3
- package/src/resolvers/queries/worker/activeWorkTypes.ts +7 -2
- package/src/resolvers/queries/worker/work.ts +1 -1
- package/src/resolvers/queries/worker/workQueue.ts +1 -1
- package/src/resolvers/queries/worker/workQueueCount.ts +2 -2
- package/src/resolvers/queries/worker/workStatistics.ts +5 -3
- package/src/resolvers/type/assortment/assortment-filter-types.ts +1 -1
- package/src/resolvers/type/assortment/assortment-link-types.ts +1 -1
- package/src/resolvers/type/assortment/assortment-media-types.ts +1 -1
- package/src/resolvers/type/assortment/assortment-path-link-types.ts +1 -1
- package/src/resolvers/type/assortment/assortment-product-types.ts +1 -1
- package/src/resolvers/type/assortment/assortment-types.ts +53 -69
- package/src/resolvers/type/bookmark-types.ts +4 -4
- package/src/resolvers/type/country-types.ts +1 -1
- package/src/resolvers/type/delivery-provider-types.ts +28 -30
- package/src/resolvers/type/dispatch-types.ts +13 -16
- package/src/resolvers/type/enrollment/enrollment-delivery-types.ts +1 -1
- package/src/resolvers/type/enrollment/enrollment-payment-types.ts +1 -1
- package/src/resolvers/type/enrollment/enrollment-period-types.ts +1 -1
- package/src/resolvers/type/enrollment/enrollment-plan-tyes.ts +1 -1
- package/src/resolvers/type/enrollment/enrollment-types.ts +1 -1
- package/src/resolvers/type/event-types.ts +2 -2
- package/src/resolvers/type/filter/filter-option-types.ts +1 -1
- package/src/resolvers/type/filter/filter-types.ts +1 -1
- package/src/resolvers/type/filter/loaded-filter-option-types.ts +18 -1
- package/src/resolvers/type/filter/loaded-filter-types.ts +59 -1
- package/src/resolvers/type/index.ts +3 -1
- package/src/resolvers/type/language-types.ts +1 -1
- package/src/resolvers/type/media-types.ts +17 -6
- package/src/resolvers/type/order/order-delivery-discount-types.ts +8 -23
- package/src/resolvers/type/order/order-delivery-pickup-types.ts +23 -8
- package/src/resolvers/type/order/order-delivery-shipping-types.ts +9 -5
- package/src/resolvers/type/order/order-delivery-types.ts +1 -1
- package/src/resolvers/type/order/order-discount-types.ts +7 -11
- package/src/resolvers/type/order/order-discountable-types.ts +9 -6
- package/src/resolvers/type/order/order-global-discount-types.ts +24 -27
- package/src/resolvers/type/order/order-item-discount-types.ts +7 -20
- package/src/resolvers/type/order/order-item-types.ts +21 -25
- package/src/resolvers/type/order/order-payment-card-types.ts +8 -4
- package/src/resolvers/type/order/order-payment-discount-types.ts +24 -28
- package/src/resolvers/type/order/order-payment-generic-types.ts +8 -4
- package/src/resolvers/type/order/order-payment-invoice-types.ts +8 -4
- package/src/resolvers/type/order/order-payment-types.ts +1 -1
- package/src/resolvers/type/order/order-types.ts +24 -32
- package/src/resolvers/type/payment/payment-credentials-types.ts +11 -6
- package/src/resolvers/type/payment/payment-provider-types.ts +33 -70
- package/src/resolvers/type/product/product-assortment-path-types.ts +1 -1
- package/src/resolvers/type/product/product-bundle-item-types.ts +1 -1
- package/src/resolvers/type/product/product-catalog-price-types.ts +1 -1
- package/src/resolvers/type/product/product-configurable-types.ts +85 -14
- package/src/resolvers/type/product/product-discount.ts +10 -32
- package/src/resolvers/type/product/product-media-types.ts +1 -1
- package/src/resolvers/type/product/product-plan-types.ts +29 -14
- package/src/resolvers/type/product/product-review-types.ts +1 -1
- package/src/resolvers/type/product/product-simple-types.ts +17 -20
- package/src/resolvers/type/product/product-tokenized-types.ts +11 -11
- package/src/resolvers/type/product/product-types.ts +12 -6
- package/src/resolvers/type/product/product-variation-assignment-types.ts +1 -1
- package/src/resolvers/type/product/product-variation-assignment-vector.ts +1 -1
- package/src/resolvers/type/product/product-variation-option-types.ts +1 -1
- package/src/resolvers/type/product/product-variation-types.ts +1 -1
- package/src/resolvers/type/product-search-result-types.ts +69 -0
- package/src/resolvers/type/quotation-types.ts +1 -1
- package/src/resolvers/type/shop-types.ts +1 -1
- package/src/resolvers/type/stock-types.ts +12 -15
- package/src/resolvers/type/token-types.ts +21 -10
- package/src/resolvers/type/user-types.ts +34 -13
- package/src/resolvers/type/warehousing-provider-types.ts +15 -12
- package/src/resolvers/type/webauthn-credentials-types.ts +30 -18
- package/src/resolvers/type/work-types.ts +7 -3
- package/src/roles/all.ts +12 -2
- package/src/roles/index.ts +3 -0
- package/src/roles/loggedIn.ts +24 -1
- package/src/schema/mutation.ts +6 -1
- package/src/schema/query.ts +11 -4
- package/src/schema/types/assortment.ts +1 -1
- package/src/schema/types/media.ts +1 -1
- package/src/schema/types/product/product.ts +1 -1
- package/tsconfig.json +4 -4
- package/lib/types.d.ts +0 -100
- package/lib/types.d.ts.map +0 -1
- package/lib/types.js +0 -2
- package/lib/types.js.map +0 -1
- package/src/express/passport/access-token-strategy.ts +0 -39
- package/src/express/passport/setup.ts +0 -44
- package/src/types.ts +0 -94
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payment-provider-types.js","sourceRoot":"","sources":["../../../../src/resolvers/type/payment/payment-provider-types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"payment-provider-types.js","sourceRoot":"","sources":["../../../../src/resolvers/type/payment/payment-provider-types.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAC9E,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAE9C,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,SAAS,CAAC,QAA6B;QACrC,MAAM,OAAO,GAAG,eAAe,CAAC,UAAU,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;QAChE,IAAI,CAAC,OAAO;YAAE,OAAO,IAAI,CAAC;QAC1B,OAAO;YACL,GAAG,EAAE,OAAO,CAAC,GAAG;YAChB,KAAK,EAAE,OAAO,CAAC,KAAK;YACpB,OAAO,EAAE,OAAO,CAAC,OAAO;SACzB,CAAC;IACJ,CAAC;IAED,KAAK,CAAC,kBAAkB,CAAC,eAAoC,EAAE,CAAC,EAAE,cAAuB;QACvF,MAAM,OAAO,GAAG,MAAM,eAAe,CAAC,OAAO,CAAC,eAAe,EAAE,EAAE,EAAE,c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E,WAAW,EAAE,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;YAC/F,MAAM,EAAE,UAAU,CAAC,MAAM;YACzB,YAAY,EAAE,UAAU,CAAC,QAAQ;YACjC,WAAW,EAAE,OAAO;YACpB,SAAS,EAAE,OAAO,CAAC,MAAM,EAAE,GAAG,CAAC;YAC/B,UAAU,EAAE,WAAW;SACxB,CAAC;IACJ,CAAC;CACF,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Product } from '@unchainedshop/core-products';
|
|
2
|
-
import { Context } from '../../../
|
|
2
|
+
import { Context } from '../../../context.js';
|
|
3
3
|
import { AssortmentPathLink, AssortmentProduct } from '@unchainedshop/core-assortments';
|
|
4
4
|
export type HelperType<P, T> = (product: Product, params: P, context: Context) => T;
|
|
5
5
|
export interface ProductAssortmentPathHelperTypes {
|
|
@@ -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,
|
|
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,KAAK,CAAC,kBAAkB,CAAC,CAAA;KAAE,EACnF,CAAC,EAAE,KAAK,EACR,OAAO,EAAE,OAAO,KACb,OAAO,CAAC,iBAAiB,CAAC,CAAC;CACjC;AAED,eAAO,MAAM,qBAAqB,EAAE,gCAOnC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Product, ProductBundleItem as ProductBundleItemType } from '@unchainedshop/core-products';
|
|
2
|
-
import { Context } from '../../../
|
|
2
|
+
import { Context } from '../../../context.js';
|
|
3
3
|
export interface ProductBundleItemHelperTypes {
|
|
4
4
|
product: (bundleItem: ProductBundleItemType, _: never, context: Context) => Promise<Product>;
|
|
5
5
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product-bundle-item-types.d.ts","sourceRoot":"","sources":["../../../../src/resolvers/type/product/product-bundle-item-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,iBAAiB,IAAI,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AACnG,OAAO,EAAE,OAAO,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"product-bundle-item-types.d.ts","sourceRoot":"","sources":["../../../../src/resolvers/type/product/product-bundle-item-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,iBAAiB,IAAI,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AACnG,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAE9C,MAAM,WAAW,4BAA4B;IAC3C,OAAO,EAAE,CAAC,UAAU,EAAE,qBAAqB,EAAE,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;CAC9F;AAED,eAAO,MAAM,iBAAiB,EAAE,4BAO/B,CAAC"}
|
|
@@ -4,32 +4,32 @@ export declare const BundleProduct: {
|
|
|
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 }: import("../../../
|
|
7
|
+
}, { modules }: import("../../../context.js").Context): Promise<Array<{
|
|
8
8
|
links: Array<import("@unchainedshop/core-assortments").AssortmentPathLink>;
|
|
9
9
|
}>>;
|
|
10
10
|
media(product: import("@unchainedshop/core-products").Product, params: {
|
|
11
11
|
limit: number;
|
|
12
12
|
offset: number;
|
|
13
13
|
tags?: Array<string>;
|
|
14
|
-
}, { modules }: import("../../../
|
|
14
|
+
}, { loaders, modules }: import("../../../context.js").Context): Promise<Array<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
19
|
sort?: Array<import("@unchainedshop/utils").SortOption>;
|
|
20
|
-
}, { modules }: import("../../../
|
|
20
|
+
}, { modules }: import("../../../context.js").Context): Promise<Array<import("@unchainedshop/core-products").ProductReview>>;
|
|
21
21
|
reviewsCount(product: import("@unchainedshop/core-products").Product, params: {
|
|
22
22
|
queryString?: string;
|
|
23
|
-
}, { modules }: import("../../../
|
|
23
|
+
}, { modules }: import("../../../context.js").Context): Promise<number>;
|
|
24
24
|
siblings(product: import("@unchainedshop/core-products").Product, params: {
|
|
25
25
|
assortmentId?: string;
|
|
26
26
|
limit: number;
|
|
27
27
|
offset: number;
|
|
28
28
|
includeInactive: boolean;
|
|
29
|
-
}, { modules }: import("../../../
|
|
30
|
-
status(product: import("@unchainedshop/core-products").Product, _: any, { modules }: import("../../../
|
|
29
|
+
}, { modules }: import("../../../context.js").Context): Promise<Array<typeof product>>;
|
|
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
|
-
}, requestContext: import("../../../
|
|
33
|
+
}, requestContext: 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,KAAK,CAAC,iBAAiB,CAAC;;;
|
|
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,KAAK,CAAC,iBAAiB,CAAC;;;mBAIsc,CAAC;;;;;;;YAAwV,CAAC;;;mBAA6iB,CAAC;aAAqB,CAAC;cAAsB,CAAC;YAAoB,CAAC;;;mBAAwU,CAAC;;;oBAAsO,CAAC;;;;;;;mBAAi7B,CAAC;;CADj6F,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Country } from '@unchainedshop/core-countries';
|
|
2
2
|
import { Currency } from '@unchainedshop/core-currencies';
|
|
3
3
|
import { ProductPrice } from '@unchainedshop/core-products';
|
|
4
|
-
import { Context } from '../../../
|
|
4
|
+
import { Context } from '../../../context.js';
|
|
5
5
|
export type ProductCatalogHelperType<P, T> = (productPrice: ProductPrice, params: P, context: Context) => T;
|
|
6
6
|
export interface ProductCatalogPriceHelperTypes {
|
|
7
7
|
isTaxable: ProductCatalogHelperType<never, boolean>;
|
|
@@ -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,
|
|
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"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { Product as ProductType, ProductAssignment, ProductConfiguration, ProductPriceRange } from '@unchainedshop/core-products';
|
|
2
|
-
import { Context } from '
|
|
3
|
-
import { ProductVariation } from '@unchainedshop/core-products';
|
|
1
|
+
import { Product as ProductType, ProductAssignment, ProductConfiguration, ProductPriceRange, ProductVariation } from '@unchainedshop/core-products';
|
|
2
|
+
import { Context } from '../../../context.js';
|
|
4
3
|
export declare const ConfigurableProduct: {
|
|
5
4
|
assignments(product: ProductType, params: {
|
|
6
5
|
includeInactive: boolean;
|
|
@@ -39,7 +38,7 @@ export declare const ConfigurableProduct: {
|
|
|
39
38
|
limit: number;
|
|
40
39
|
offset: number;
|
|
41
40
|
tags?: Array<string>;
|
|
42
|
-
}, { modules }: Context): Promise<Array<import("@unchainedshop/core-products").ProductMedia>>;
|
|
41
|
+
}, { loaders, modules }: Context): Promise<Array<import("@unchainedshop/core-products").ProductMedia>>;
|
|
43
42
|
reviews(product: ProductType, { limit, offset, sort, queryString, }: {
|
|
44
43
|
queryString?: string;
|
|
45
44
|
limit?: number;
|
|
@@ -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,
|
|
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;AAK9C,eAAO,MAAM,mBAAmB;yBAInB,WAAW,UACZ;QACN,eAAe,EAAE,OAAO,CAAC;KAC1B,eACY,OAAO,GACnB,OAAO,CACR,KAAK,CAAC;QACJ,UAAU,EAAE,iBAAiB,CAAC;QAC9B,OAAO,EAAE,OAAO,OAAO,CAAC;KACzB,CAAC,CACH;sBAKU,WAAW,iCAIjB;QACD,OAAO,EAAE,KAAK,CAAC,oBAAoB,CAAC,CAAC;QACrC,eAAe,EAAE,OAAO,CAAC;KAC1B,eACY,OAAO,GACnB,OAAO,CAAC,KAAK,CAAC,OAAO,OAAO,CAAC,CAAC;+BAOtB,WAAW,yEAMjB;QACD,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,eAAe,EAAE,OAAO,CAAC;QACzB,QAAQ,EAAE,MAAM,CAAC;QACjB,OAAO,EAAE,KAAK,CAAC,oBAAoB,CAAC,CAAC;KACtC,kBACe,OAAO,GACtB,OAAO,CAAC,iBAAiB,CAAC;wBAalB,WAAW,sBAIjB;QACD,KAAK,EAAE,MAAM,CAAC;QACd,MAAM,EAAE,MAAM,CAAC;KAChB,eACY,OAAO,GACnB,OAAO,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC;iCASxB,WAAW,sFAOjB;QACD,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,eAAe,EAAE,OAAO,CAAC;QACzB,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,OAAO,EAAE,KAAK,CAAC,oBAAoB,CAAC,CAAC;QACrC,WAAW,EAAE,OAAO,CAAC;KACtB,kBACe,OAAO,GACtB,OAAO,CAAC,iBAAiB,CAAC;;;mBAzEnB,CAAC;;;;;;;YAgBP,CAAA;;;mBAkBU,CAAC;aACV,CAAC;cACJ,CAAH;YAGO,CAAA;;;mBAeJ,CAAA;;;oBAaY,CAAC;;;;;;;mBAgCP,CAAJ;;CA6DL,CAAC"}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { Product } from './product-types.js';
|
|
2
|
+
import { sha256 } from '@unchainedshop/utils';
|
|
3
|
+
import { ProductPricingDirector } from '@unchainedshop/core';
|
|
2
4
|
export const ConfigurableProduct = {
|
|
3
5
|
...Product,
|
|
4
6
|
async assignments(product, params, { modules }) {
|
|
@@ -30,15 +32,67 @@ export const ConfigurableProduct = {
|
|
|
30
32
|
async simulatedPriceRange(product, { currency: forcedCurrencyCode, quantity, useNetPrice, vectors, includeInactive, }, requestContext) {
|
|
31
33
|
const { countryContext, modules } = requestContext;
|
|
32
34
|
const currency = forcedCurrencyCode || requestContext.currencyContext;
|
|
33
|
-
|
|
34
|
-
quantity,
|
|
35
|
-
currency,
|
|
36
|
-
userId: requestContext.userId,
|
|
37
|
-
country: countryContext,
|
|
38
|
-
useNetPrice,
|
|
39
|
-
vectors,
|
|
35
|
+
const products = await modules.products.proxyProducts(product, vectors, {
|
|
40
36
|
includeInactive,
|
|
41
|
-
}
|
|
37
|
+
});
|
|
38
|
+
const filteredPrices = (await Promise.all(products.map(async (proxyProduct) => {
|
|
39
|
+
const pricingContext = {
|
|
40
|
+
product: proxyProduct,
|
|
41
|
+
user: requestContext.user,
|
|
42
|
+
country: countryContext,
|
|
43
|
+
currency,
|
|
44
|
+
quantity,
|
|
45
|
+
};
|
|
46
|
+
const calculated = await ProductPricingDirector.rebuildCalculation(pricingContext, requestContext);
|
|
47
|
+
if (!calculated || !calculated.length)
|
|
48
|
+
return null;
|
|
49
|
+
const pricing = ProductPricingDirector.calculationSheet(pricingContext, calculated);
|
|
50
|
+
const unitPrice = pricing.unitPrice({ useNetPrice });
|
|
51
|
+
return {
|
|
52
|
+
_id: await sha256([
|
|
53
|
+
proxyProduct._id,
|
|
54
|
+
countryContext,
|
|
55
|
+
quantity,
|
|
56
|
+
useNetPrice,
|
|
57
|
+
requestContext.userId || 'ANONYMOUS',
|
|
58
|
+
].join('')),
|
|
59
|
+
...unitPrice,
|
|
60
|
+
isNetPrice: useNetPrice,
|
|
61
|
+
isTaxable: pricing.taxSum() > 0,
|
|
62
|
+
currencyCode: pricing.currency,
|
|
63
|
+
};
|
|
64
|
+
}))).filter(Boolean);
|
|
65
|
+
if (!filteredPrices.length)
|
|
66
|
+
return null;
|
|
67
|
+
const { minPrice, maxPrice } = modules.products.prices.priceRange({
|
|
68
|
+
productId: product._id,
|
|
69
|
+
prices: filteredPrices,
|
|
70
|
+
});
|
|
71
|
+
const minPriceHash = await sha256([
|
|
72
|
+
product._id,
|
|
73
|
+
minPrice?.isTaxable,
|
|
74
|
+
minPrice?.isNetPrice,
|
|
75
|
+
minPrice?.amount,
|
|
76
|
+
minPrice?.currencyCode,
|
|
77
|
+
].join(''));
|
|
78
|
+
const maxPriceHash = await sha256([
|
|
79
|
+
product._id,
|
|
80
|
+
maxPrice?.isTaxable,
|
|
81
|
+
maxPrice?.isNetPrice,
|
|
82
|
+
maxPrice?.amount,
|
|
83
|
+
maxPrice?.currencyCode,
|
|
84
|
+
].join(''));
|
|
85
|
+
return {
|
|
86
|
+
_id: await sha256([product._id, minPriceHash, maxPriceHash].join('')),
|
|
87
|
+
minPrice: {
|
|
88
|
+
_id: minPriceHash,
|
|
89
|
+
...minPrice,
|
|
90
|
+
},
|
|
91
|
+
maxPrice: {
|
|
92
|
+
_id: maxPriceHash,
|
|
93
|
+
...maxPrice,
|
|
94
|
+
},
|
|
95
|
+
};
|
|
42
96
|
},
|
|
43
97
|
};
|
|
44
98
|
//# sourceMappingURL=product-configurable-types.js.map
|
|
@@ -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;
|
|
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;AAC7C,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAC9C,OAAO,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAE7D,MAAM,CAAC,MA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F,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,MAAM,YAAY,GAAG,MAAM,MAAM,CAC/B;YACE,OAAO,CAAC,GAAG;YACX,QAAQ,EAAE,SAAS;YACnB,QAAQ,EAAE,UAAU;YACpB,QAAQ,EAAE,MAAM;YAChB,QAAQ,EAAE,YAAY;SACvB,CAAC,IAAI,CAAC,EAAE,CAAC,CACX,CAAC;QAEF,MAAM,YAAY,GAAG,MAAM,MAAM,CAC/B;YACE,OAAO,CAAC,GAAG;YACX,QAAQ,EAAE,SAAS;YACnB,QAAQ,EAAE,UAAU;YACpB,QAAQ,EAAE,MAAM;YAChB,QAAQ,EAAE,YAAY;SACvB,CAAC,IAAI,CAAC,EAAE,CAAC,CACX,CAAC;QAEF,OAAO;YACL,GAAG,EAAE,MAAM,MAAM,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,YAAY,EAAE,YAAY,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;YACrE,QAAQ,EAAE;gBACR,GAAG,EAAE,YAAY;gBACjB,GAAG,QAAQ;aACZ;YACD,QAAQ,EAAE;gBACR,GAAG,EAAE,YAAY;gBACjB,GAAG,QAAQ;aACZ;SACF,CAAC;IACJ,CAAC;CACF,CAAC"}
|
|
@@ -1,20 +1,16 @@
|
|
|
1
|
-
import { Context } from '@unchainedshop/api';
|
|
2
1
|
import { ProductDiscount as ProductDiscountType } from '@unchainedshop/core-products';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
interface: HelperType<Promise<{
|
|
2
|
+
export declare const ProductDiscount: {
|
|
3
|
+
interface: (productDiscount: ProductDiscountType) => Promise<{
|
|
6
4
|
_id: string;
|
|
7
5
|
label: string;
|
|
8
6
|
version: string;
|
|
9
7
|
isManualAdditionAllowed: boolean;
|
|
10
8
|
isManualRemovalAllowed: boolean;
|
|
11
|
-
}
|
|
12
|
-
total:
|
|
9
|
+
}>;
|
|
10
|
+
total(productDiscount: ProductDiscountType): Promise<{
|
|
13
11
|
_id: string;
|
|
14
12
|
amount: number;
|
|
15
13
|
currency: string;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
export declare const ProductDiscount: ProductDiscountHelperTypes;
|
|
19
|
-
export {};
|
|
14
|
+
}>;
|
|
15
|
+
};
|
|
20
16
|
//# sourceMappingURL=product-discount.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product-discount.d.ts","sourceRoot":"","sources":["../../../../src/resolvers/type/product/product-discount.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"product-discount.d.ts","sourceRoot":"","sources":["../../../../src/resolvers/type/product/product-discount.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,IAAI,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAItF,eAAO,MAAM,eAAe;iCACS,mBAAmB;;;;;;;2BAYzB,mBAAmB;;;;;CAWjD,CAAC"}
|
|
@@ -1,25 +1,23 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ProductDiscountDirector } from '@unchainedshop/core';
|
|
2
|
+
import { sha256 } from '@unchainedshop/utils';
|
|
2
3
|
export const ProductDiscount = {
|
|
3
|
-
interface: async (
|
|
4
|
-
const Interface =
|
|
4
|
+
interface: async (productDiscount) => {
|
|
5
|
+
const Interface = ProductDiscountDirector.getAdapter(productDiscount.discountKey);
|
|
5
6
|
if (!Interface)
|
|
6
7
|
return null;
|
|
7
8
|
return {
|
|
8
9
|
_id: Interface.key,
|
|
9
10
|
label: Interface.label,
|
|
10
11
|
version: Interface.version,
|
|
11
|
-
isManualAdditionAllowed: await Interface.isManualAdditionAllowed(
|
|
12
|
+
isManualAdditionAllowed: await Interface.isManualAdditionAllowed(productDiscount.code),
|
|
12
13
|
isManualRemovalAllowed: await Interface.isManualRemovalAllowed(),
|
|
13
14
|
};
|
|
14
15
|
},
|
|
15
|
-
total
|
|
16
|
-
const { total } =
|
|
17
|
-
if (total) {
|
|
16
|
+
async total(productDiscount) {
|
|
17
|
+
const { total, _id } = productDiscount;
|
|
18
|
+
if (productDiscount.total) {
|
|
18
19
|
return {
|
|
19
|
-
_id:
|
|
20
|
-
.createHash('sha256')
|
|
21
|
-
.update([`${obj._id}`, total.amount, total.currency].join(''))
|
|
22
|
-
.digest('hex'),
|
|
20
|
+
_id: await sha256([`${_id}`, total.amount, total.currency].join('')),
|
|
23
21
|
amount: total.amount,
|
|
24
22
|
currency: total.currency,
|
|
25
23
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product-discount.js","sourceRoot":"","sources":["../../../../src/resolvers/type/product/product-discount.ts"],"names":[],"mappings":"
|
|
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;AAC9D,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAE9C,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,KAAK,CAAC,eAAoC;QAC9C,MAAM,EAAE,KAAK,EAAE,GAAG,EAAE,GAAG,eAAe,CAAC;QACvC,IAAI,eAAe,CAAC,KAAK,EAAE,CAAC;YAC1B,OAAO;gBACL,GAAG,EAAE,MAAM,MAAM,CAAC,CAAC,GAAG,GAAG,EAAE,EAAE,KAAK,CAAC,MAAM,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;gBACpE,MAAM,EAAE,KAAK,CAAC,MAAM;gBACpB,QAAQ,EAAE,KAAK,CAAC,QAAQ;aACzB,CAAC;QACJ,CAAC;QACD,OAAO,IAAI,CAAC;IACd,CAAC;CACF,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Context } from '
|
|
1
|
+
import { Context } from '../../../context.js';
|
|
2
2
|
import { File } from '@unchainedshop/core-files';
|
|
3
3
|
import { ProductMedia as ProductMediaType, ProductMediaText } from '@unchainedshop/core-products';
|
|
4
4
|
export type HelperType<P, T> = (productMedia: ProductMediaType, params: P, context: Context) => T;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product-media-types.d.ts","sourceRoot":"","sources":["../../../../src/resolvers/type/product/product-media-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"product-media-types.d.ts","sourceRoot":"","sources":["../../../../src/resolvers/type/product/product-media-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAC;AACjD,OAAO,EAAE,YAAY,IAAI,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAElG,MAAM,MAAM,UAAU,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,YAAY,EAAE,gBAAgB,EAAE,MAAM,EAAE,CAAC,EAAE,OAAO,EAAE,OAAO,KAAK,CAAC,CAAC;AAElG,MAAM,WAAW,uBAAuB;IACtC,KAAK,EAAE,UAAU,CAAC;QAAE,WAAW,CAAC,EAAE,MAAM,CAAA;KAAE,EAAE,OAAO,CAAC,gBAAgB,CAAC,CAAC,CAAC;IACvE,IAAI,EAAE,UAAU,CAAC,KAAK,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC;CACxC;AAED,eAAO,MAAM,YAAY,EAAE,uBAe1B,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ProductConfiguration, ProductPrice, Product as ProductType } from '@unchainedshop/core-products';
|
|
2
|
-
import { Context } from '
|
|
2
|
+
import { Context } from '../../../context.js';
|
|
3
3
|
export declare const PlanProduct: {
|
|
4
4
|
catalogPrice(product: ProductType, { quantity, currency: forcedCurrencyCode }: {
|
|
5
5
|
quantity?: number;
|
|
@@ -31,7 +31,7 @@ export declare const PlanProduct: {
|
|
|
31
31
|
limit: number;
|
|
32
32
|
offset: number;
|
|
33
33
|
tags?: Array<string>;
|
|
34
|
-
}, { modules }: Context): Promise<Array<import("@unchainedshop/core-products").ProductMedia>>;
|
|
34
|
+
}, { loaders, modules }: Context): Promise<Array<import("@unchainedshop/core-products").ProductMedia>>;
|
|
35
35
|
reviews(product: ProductType, { limit, offset, sort, queryString, }: {
|
|
36
36
|
queryString?: string;
|
|
37
37
|
limit?: number;
|
|
@@ -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,
|
|
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;AAK9C,eAAO,MAAM,WAAW;0BAIX,WAAW,8CACwB;QAAE,QAAQ,CAAC,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;KAAE,kBACpE,OAAO,GACtB,OAAO,CAAC,YAAY,CAAC;wBAWjB,WAAW,2EAMb;QACD,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,WAAW,CAAC,EAAE,OAAO,CAAC;QACtB,aAAa,CAAC,EAAE,KAAK,CAAC,oBAAoB,CAAC,CAAC;KAC7C,kBACe,OAAO,GACtB,OAAO,CAAC,YAAY,CAAC;8BAgCjB,WAAW,oCACkB;QAAE,QAAQ,CAAC,EAAE,MAAM,CAAA;KAAE,kBACvC,OAAO,GACtB,OAAO,CACR,KAAK,CAAC;QACJ,WAAW,EAAE,MAAM,CAAC;QACpB,WAAW,EAAE,MAAM,CAAC;QACpB,KAAK,EAAE,YAAY,CAAC;KACrB,CAAC,CACH;4BAMuB,WAAW,GAAG,MAAM;uCAGT,WAAW,GAAG,MAAM;uCAGpB,WAAW,GAAG,MAAM;;;mBAxEjD,CAAC;;;;;;;YAkBQ,CAAC;;;mBAkBuD,CAAC;aACpE,CAAC;cAAsB,CAAC;YAAoB,CAAC;;;mBAc/C,CAAC;;;oBAUD,CAAA;;;;;;;mBAekZ,CAAC;;CADtZ,CAAC"}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { Product } from './product-types.js';
|
|
2
|
+
import { ProductPricingDirector } from '@unchainedshop/core';
|
|
3
|
+
import { sha256 } from '@unchainedshop/utils';
|
|
2
4
|
export const PlanProduct = {
|
|
3
5
|
...Product,
|
|
4
6
|
async catalogPrice(product, { quantity, currency: forcedCurrencyCode }, requestContext) {
|
|
@@ -11,16 +13,28 @@ export const PlanProduct = {
|
|
|
11
13
|
});
|
|
12
14
|
},
|
|
13
15
|
async simulatedPrice(obj, { currency: forcedCurrencyCode, quantity, useNetPrice, configuration, }, requestContext) {
|
|
14
|
-
const { countryContext,
|
|
16
|
+
const { countryContext, user } = requestContext;
|
|
15
17
|
const currency = forcedCurrencyCode || requestContext.currencyContext;
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
currency,
|
|
18
|
+
const pricingContext = {
|
|
19
|
+
product: obj,
|
|
20
|
+
user,
|
|
20
21
|
country: countryContext,
|
|
21
|
-
|
|
22
|
+
currency,
|
|
23
|
+
quantity,
|
|
22
24
|
configuration,
|
|
23
|
-
}
|
|
25
|
+
};
|
|
26
|
+
const calculated = await ProductPricingDirector.rebuildCalculation(pricingContext, requestContext);
|
|
27
|
+
if (!calculated || !calculated.length)
|
|
28
|
+
return null;
|
|
29
|
+
const pricing = ProductPricingDirector.calculationSheet(pricingContext, calculated);
|
|
30
|
+
const unitPrice = pricing.unitPrice({ useNetPrice });
|
|
31
|
+
return {
|
|
32
|
+
_id: await sha256([obj._id, countryContext, quantity, useNetPrice, user ? user._id : 'ANONYMOUS'].join('')),
|
|
33
|
+
...unitPrice,
|
|
34
|
+
isNetPrice: useNetPrice,
|
|
35
|
+
isTaxable: pricing.taxSum() > 0,
|
|
36
|
+
currencyCode: pricing.currency,
|
|
37
|
+
};
|
|
24
38
|
},
|
|
25
39
|
async leveledCatalogPrices(obj, { currency: forcedCurrencyCode }, requestContext) {
|
|
26
40
|
const { countryContext, modules } = requestContext;
|
|
@@ -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,CAA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
import { Context } from '
|
|
1
|
+
import { Context } from '../../../context.js';
|
|
2
2
|
import { Product } from '@unchainedshop/core-products';
|
|
3
3
|
import { ProductReview as ProductReviewType, ProductReviewVoteType, ProductVote } from '@unchainedshop/core-products';
|
|
4
4
|
import { User } from '@unchainedshop/core-users';
|
|
@@ -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,
|
|
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,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;CAC1D;AACD,eAAO,MAAM,aAAa,EAAE,wBAmB3B,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Product, ProductSupply } from '@unchainedshop/core-products';
|
|
2
|
-
import {
|
|
3
|
-
import { Context } from '@unchainedshop/api';
|
|
2
|
+
import { Context } from '../../../context.js';
|
|
4
3
|
import { DeliveryProviderType } from '@unchainedshop/core-delivery';
|
|
5
4
|
import { DeliveryProvider } from '@unchainedshop/core-delivery';
|
|
5
|
+
import { WarehousingProvider } from '@unchainedshop/core-warehousing';
|
|
6
6
|
export declare const SimpleProduct: {
|
|
7
7
|
simulatedDispatches(obj: Product, params: {
|
|
8
8
|
referenceDate: Date;
|
|
@@ -63,7 +63,7 @@ export declare const SimpleProduct: {
|
|
|
63
63
|
limit: number;
|
|
64
64
|
offset: number;
|
|
65
65
|
tags?: Array<string>;
|
|
66
|
-
}, { modules }: Context): Promise<Array<import("@unchainedshop/core-products").ProductMedia>>;
|
|
66
|
+
}, { loaders, modules }: Context): Promise<Array<import("@unchainedshop/core-products").ProductMedia>>;
|
|
67
67
|
reviews(product: Product, { limit, offset, sort, queryString, }: {
|
|
68
68
|
queryString?: string;
|
|
69
69
|
limit?: number;
|
|
@@ -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;
|
|
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;AAEtE,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,KAAK,CAAC;QACJ,GAAG,EAAE,MAAM,CAAC;QACZ,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;QACpC,mBAAmB,CAAC,EAAE,mBAAmB,CAAC;QAC1C,QAAQ,CAAC,EAAE,IAAI,CAAC;QAChB,gBAAgB,CAAC,EAAE,IAAI,CAAC;KACzB,CAAC,CACH;yBA6CM,OAAO,UACJ;QACN,aAAa,EAAE,IAAI,CAAC;QACpB,oBAAoB,EAAE,oBAAoB,CAAC;KAC5C,kBACe,OAAO,GACtB,OAAO,CACR,KAAK,CAAC;QACJ,GAAG,EAAE,MAAM,CAAC;QACZ,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;QACpC,mBAAmB,CAAC,EAAE,mBAAmB,CAAC;QAC1C,QAAQ,CAAC,EAAE,MAAM,CAAC;KACnB,CAAC,CACH;;;QA2C0B,MAAM;;;QAIX,MAAM;;;QAIJ,aAAa;;gBA5H9B,CAAC;gBAAmB,CAAA;;;gBAiBF,CAAC;gBAExB,CAAF;mBAA4B,CAAA;qBAA8B,CAAC;;;gBAqCjD,CAAC;;;;;;;;;;;mBA7CL,CAAC;;;;;;;YAYL,CAAC;;;mBAeK,CAAD;aAEO,CAAC;cAAsB,CAAC;YAAoB,CAAC;;;mBAenD,CAAC;;;oBAUP,CAAF;;;;;;;mBA6Ba,CAAC;;CAwCf,CAAC"}
|
|
@@ -1,18 +1,19 @@
|
|
|
1
|
+
import { WarehousingDirector } from '@unchainedshop/core';
|
|
1
2
|
import { PlanProduct } from './product-plan-types.js';
|
|
2
3
|
export const SimpleProduct = {
|
|
3
4
|
...PlanProduct,
|
|
4
5
|
async simulatedDispatches(obj, params, requestContext) {
|
|
5
6
|
const { deliveryProviderType, referenceDate, quantity } = params;
|
|
6
|
-
const { modules } = requestContext;
|
|
7
|
+
const { modules, services } = requestContext;
|
|
7
8
|
const deliveryProviders = await modules.delivery.findProviders({
|
|
8
9
|
type: deliveryProviderType,
|
|
9
10
|
});
|
|
10
11
|
return deliveryProviders.reduce(async (oldResult, deliveryProvider) => {
|
|
11
12
|
const result = await oldResult;
|
|
12
|
-
const warehousingProviders = await
|
|
13
|
+
const warehousingProviders = await services.orders.supportedWarehousingProviders({
|
|
13
14
|
product: obj,
|
|
14
15
|
deliveryProvider,
|
|
15
|
-
}
|
|
16
|
+
});
|
|
16
17
|
const mappedWarehousingProviders = await Promise.all(warehousingProviders.map(async (warehousingProvider) => {
|
|
17
18
|
const warehousingContext = {
|
|
18
19
|
deliveryProvider,
|
|
@@ -20,7 +21,8 @@ export const SimpleProduct = {
|
|
|
20
21
|
quantity,
|
|
21
22
|
referenceDate,
|
|
22
23
|
};
|
|
23
|
-
const
|
|
24
|
+
const director = await WarehousingDirector.actions(warehousingProvider, warehousingContext, requestContext);
|
|
25
|
+
const dispatch = await director.estimatedDispatch();
|
|
24
26
|
return {
|
|
25
27
|
warehousingProvider,
|
|
26
28
|
...warehousingContext,
|
|
@@ -31,24 +33,25 @@ export const SimpleProduct = {
|
|
|
31
33
|
}, Promise.resolve([]));
|
|
32
34
|
},
|
|
33
35
|
async simulatedStocks(obj, params, requestContext) {
|
|
34
|
-
const { modules } = requestContext;
|
|
36
|
+
const { modules, services } = requestContext;
|
|
35
37
|
const { referenceDate, deliveryProviderType } = params;
|
|
36
38
|
const deliveryProviders = await modules.delivery.findProviders({
|
|
37
39
|
type: deliveryProviderType,
|
|
38
40
|
});
|
|
39
41
|
return deliveryProviders.reduce(async (oldResult, deliveryProvider) => {
|
|
40
42
|
const result = await oldResult;
|
|
41
|
-
const warehousingProviders = await
|
|
43
|
+
const warehousingProviders = await services.orders.supportedWarehousingProviders({
|
|
42
44
|
product: obj,
|
|
43
45
|
deliveryProvider,
|
|
44
|
-
}
|
|
46
|
+
});
|
|
45
47
|
const mappedWarehousingProviders = await Promise.all(warehousingProviders.map(async (warehousingProvider) => {
|
|
46
48
|
const warehousingContext = {
|
|
47
49
|
deliveryProvider,
|
|
48
50
|
product: obj,
|
|
49
51
|
referenceDate,
|
|
50
52
|
};
|
|
51
|
-
const
|
|
53
|
+
const director = await WarehousingDirector.actions(warehousingProvider, warehousingContext, requestContext);
|
|
54
|
+
const stock = await director.estimatedStock();
|
|
52
55
|
return {
|
|
53
56
|
warehousingProvider,
|
|
54
57
|
...warehousingContext,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product-simple-types.js","sourceRoot":"","sources":["../../../../src/resolvers/type/product/product-simple-types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"product-simple-types.js","sourceRoot":"","sources":["../../../../src/resolvers/type/product/product-simple-types.ts"],"names":[],"mappings":"AACA,OAAO,EAAsB,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAI9E,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;QAUvB,MAAM,EAAE,oBAAoB,EAAE,aAAa,EAAE,QAAQ,EAAE,GAAG,MAAM,CAAC;QACjE,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,cAAc,CAAC;QAE7C,MAAM,iBAAiB,GAAG,MAAM,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAC;YAC7D,IAAI,EAAE,oBAAoB;SAC3B,CAAC,CAAC;QAEH,OAAO,iBAAiB,CAAC,MAAM,CAAC,KAAK,EAAE,SAAS,EAAE,gBAAgB,EAAE,EAAE;YACpE,MAAM,MAAM,GAAG,MAAM,SAAS,CAAC;YAE/B,MAAM,oB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Product, ProductContractConfiguration, ProductContractStandard } from '@unchainedshop/core-products';
|
|
2
2
|
import { WarehousingProvider } from '@unchainedshop/core-warehousing';
|
|
3
|
-
import { Context } from '@unchainedshop/api';
|
|
4
3
|
import { DeliveryProvider } from '@unchainedshop/core-delivery';
|
|
4
|
+
import { Context } from '../../../context.js';
|
|
5
5
|
export declare const TokenizedProduct: {
|
|
6
6
|
contractAddress({ tokenization }: Product): string;
|
|
7
7
|
contractConfiguration({ tokenization }: Product): ProductContractConfiguration;
|
|
@@ -45,7 +45,7 @@ export declare const TokenizedProduct: {
|
|
|
45
45
|
limit: number;
|
|
46
46
|
offset: number;
|
|
47
47
|
tags?: Array<string>;
|
|
48
|
-
}, { modules }: Context): Promise<Array<import("@unchainedshop/core-products").ProductMedia>>;
|
|
48
|
+
}, { loaders, modules }: Context): Promise<Array<import("@unchainedshop/core-products").ProductMedia>>;
|
|
49
49
|
reviews(product: Product, { limit, offset, sort, queryString, }: {
|
|
50
50
|
queryString?: string;
|
|
51
51
|
limit?: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product-tokenized-types.d.ts","sourceRoot":"","sources":["../../../../src/resolvers/type/product/product-tokenized-types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"product-tokenized-types.d.ts","sourceRoot":"","sources":["../../../../src/resolvers/type/product/product-tokenized-types.ts"],"names":[],"mappings":"AACA,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,KAAK,CAAC;QACJ,GAAG,EAAE,MAAM,CAAC;QACZ,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;QACpC,mBAAmB,CAAC,EAAE,mBAAmB,CAAC;QAC1C,QAAQ,CAAC,EAAE,MAAM,CAAC;KACnB,CAAC,CACH;oBAyCqB,OAAO,UAAU,KAAK,kBAAkB,OAAO;;gBA7ExC,CAAC;gBAC7B,CAAC;;;gBAkBO,CAAC;gBAAyB,CAAA;mBAA2B,CAAC;qBAC3C,CAAC;;;gBAsCsB,CAAC;;;;;;;;;;;mBA/CzC,CAAC;;;;;;;YAaF,CAAC;;;mBAqBS,CAAC;aAAqB,CAAC;cAAsB,CAAC;YAAoB,CAAC;;;mBAU7D,CAAC;;;oBAQqB,CAAC;;;;;;;mBA2B8N,CAAC;;CALzQ,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { WarehousingDirector } from '@unchainedshop/core';
|
|
1
2
|
import { PlanProduct } from './product-plan-types.js';
|
|
2
3
|
import { checkAction } from '../../../acl.js';
|
|
3
4
|
import { actions } from '../../../roles/index.js';
|
|
@@ -19,22 +20,23 @@ export const TokenizedProduct = {
|
|
|
19
20
|
return tokenization?.contractStandard;
|
|
20
21
|
},
|
|
21
22
|
async simulatedStocks(obj, params, requestContext) {
|
|
22
|
-
const { modules } = requestContext;
|
|
23
|
+
const { modules, services } = requestContext;
|
|
23
24
|
const { referenceDate } = params;
|
|
24
25
|
const deliveryProviders = await modules.delivery.findProviders({});
|
|
25
26
|
return deliveryProviders.reduce(async (oldResult, deliveryProvider) => {
|
|
26
27
|
const result = await oldResult;
|
|
27
|
-
const warehousingProviders = await
|
|
28
|
+
const warehousingProviders = await services.orders.supportedWarehousingProviders({
|
|
28
29
|
product: obj,
|
|
29
30
|
deliveryProvider,
|
|
30
|
-
}
|
|
31
|
+
});
|
|
31
32
|
const mappedWarehousingProviders = await Promise.all(warehousingProviders.map(async (warehousingProvider) => {
|
|
32
33
|
const warehousingContext = {
|
|
33
34
|
deliveryProvider,
|
|
34
35
|
product: obj,
|
|
35
36
|
referenceDate,
|
|
36
37
|
};
|
|
37
|
-
const
|
|
38
|
+
const director = await WarehousingDirector.actions(warehousingProvider, warehousingContext, requestContext);
|
|
39
|
+
const stock = await director.estimatedStock();
|
|
38
40
|
return {
|
|
39
41
|
warehousingProvider,
|
|
40
42
|
...warehousingContext,
|