@unchainedshop/api 3.0.0-alpha7 → 3.0.0-rc1
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 +337 -120
- 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 +4 -4
- 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 +1 -1
- package/lib/resolvers/type/webauthn-credentials-types.d.ts.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 +12 -5
- package/src/resolvers/type/warehousing-provider-types.ts +15 -12
- package/src/resolvers/type/webauthn-credentials-types.ts +1 -1
- 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":"product-tokenized-types.js","sourceRoot":"","sources":["../../../../src/resolvers/type/product/product-tokenized-types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"product-tokenized-types.js","sourceRoot":"","sources":["../../../../src/resolvers/type/product/product-tokenized-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsB,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAU9E,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAElD,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,GAAG,WAAW;IAEd,eAAe,CAAC,EAAE,YAAY,EAAW;QACvC,OAAO,YAAY,EAAE,eAAe,CAAC;IACvC,CAAC;IAED,qBAAqB,CAAC,EAAE,YAAY,EAAW;QAC7C,IAAI,CAAC,YAAY;YAAE,OAAO,IAAI,CAAC;QAC/B,OAAO;YACL,MAAM,EAAE,YAAY,CAAC,MAAM;YAC3B,OAAO,EAAE,YAAY,CAAC,OAAO;YAC7B,qBAAqB,EAAE,YAAY,CAAC,qBAAqB;SAC1D,CAAC;IACJ,CAAC;IAED,gBAAgB,CAAC,EAAE,YAAY,EAAW;QACxC,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AgB,EAAE,MAAa,EAAE,cAAuB;QACnE,MAAM,WAAW,CAAC,cAAc,EAAE,OAAO,CAAC,UAAU,EAAE,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC,CAAC;QAE3E,MAAM,MAAM,GAAG,MAAM,cAAc,CAAC,OAAO,CAAC,WAAW,CAAC,UAAU,CAAC;YACjE,SAAS,EAAE,OAAO,CAAC,GAAG;SACvB,CAAC,CAAC;QACH,OAAO,MAAM,CAAC;IAChB,CAAC;CACF,CAAC;AAEF,OAAO,gBAAgB,CAAC,SAAS,CAAC;AAClC,OAAO,gBAAgB,CAAC,oBAAoB,CAAC;AAC7C,OAAO,gBAAgB,CAAC,oBAAoB,CAAC"}
|
|
@@ -4,7 +4,7 @@ import { SortOption } from '@unchainedshop/utils';
|
|
|
4
4
|
import { AssortmentPathLink } from '@unchainedshop/core-assortments';
|
|
5
5
|
import { ProductMedia } from '@unchainedshop/core-products';
|
|
6
6
|
import { ProductReview } from '@unchainedshop/core-products';
|
|
7
|
-
import { Context } from '../../../
|
|
7
|
+
import { Context } from '../../../context.js';
|
|
8
8
|
export declare const Product: {
|
|
9
9
|
__resolveType: (product: ProductType) => string;
|
|
10
10
|
assortmentPaths(product: ProductType, params: {
|
|
@@ -16,7 +16,7 @@ export declare const Product: {
|
|
|
16
16
|
limit: number;
|
|
17
17
|
offset: number;
|
|
18
18
|
tags?: Array<string>;
|
|
19
|
-
}, { modules }: Context): Promise<Array<ProductMedia>>;
|
|
19
|
+
}, { loaders, modules }: Context): Promise<Array<ProductMedia>>;
|
|
20
20
|
reviews(product: ProductType, { limit, offset, sort, queryString, }: {
|
|
21
21
|
queryString?: string;
|
|
22
22
|
limit?: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product-types.d.ts","sourceRoot":"","sources":["../../../../src/resolvers/type/product/product-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,8BAA8B,CAAC;AACnF,OAAO,EAAE,aAAa,EAAgB,MAAM,8BAA8B,CAAC;AAE3E,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAC7D,OAAO,EAAE,OAAO,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"product-types.d.ts","sourceRoot":"","sources":["../../../../src/resolvers/type/product/product-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,8BAA8B,CAAC;AACnF,OAAO,EAAE,aAAa,EAAgB,MAAM,8BAA8B,CAAC;AAE3E,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAC7D,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAE9C,eAAO,MAAM,OAAO;6BACO,WAAW,KAAG,MAAM;6BAMlC,WAAW,UACZ;QACN,WAAW,CAAC,EAAE,MAAM,CAAC;KACtB,eACY,OAAO,GACnB,OAAO,CACR,KAAK,CAAC;QACJ,KAAK,EAAE,KAAK,CAAC,kBAAkB,CAAC,CAAC;KAClC,CAAC,CACH;mBAQU,WAAW,UACZ;QACN,KAAK,EAAE,MAAM,CAAC;QACd,MAAM,EAAE,MAAM,CAAC;QACf,IAAI,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;KACtB,wBACqB,OAAO,GAC5B,OAAO,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC;qBAcpB,WAAW,yCAMjB;QACD,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,IAAI,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,CAAC;KAC1B,eACY,OAAO,GACnB,OAAO,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC;0BAUrB,WAAW,UACZ;QACN,WAAW,CAAC,EAAE,MAAM,CAAC;KACtB,eACY,OAAO,GACnB,OAAO,CAAC,MAAM,CAAC;sBAKP,WAAW,UACZ;QACN,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,KAAK,EAAE,MAAM,CAAC;QACd,MAAM,EAAE,MAAM,CAAC;QACf,eAAe,EAAE,OAAO,CAAC;KAC1B,eACY,OAAO,GACnB,OAAO,CAAC,KAAK,CAAC,OAAO,OAAO,CAAC,CAAC;oBAuBjB,WAAW,uBAAkB,OAAO,GAAG,aAAa;mBAKzD,WAAW,oBAGjB;QACD,WAAW,CAAC,EAAE,MAAM,CAAC;KACtB,kBACe,OAAO,GACtB,OAAO,CAAC,WAAW,CAAC;CAOxB,CAAC"}
|
|
@@ -11,11 +11,14 @@ export const Product = {
|
|
|
11
11
|
});
|
|
12
12
|
},
|
|
13
13
|
// TODO: Use a loader!
|
|
14
|
-
async media(product, params, { modules }) {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
14
|
+
async media(product, params, { loaders, modules }) {
|
|
15
|
+
if (params.offset || params.tags) {
|
|
16
|
+
return modules.products.media.findProductMedias({
|
|
17
|
+
productId: product._id,
|
|
18
|
+
...params,
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
return (await loaders.productMediasLoader.load({ productId: product._id })).slice(params.offset, params.offset + params.limit);
|
|
19
22
|
},
|
|
20
23
|
async reviews(product, { limit = 10, offset = 0, sort, queryString, }, { modules }) {
|
|
21
24
|
return modules.products.reviews.findProductReviews({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product-types.js","sourceRoot":"","sources":["../../../../src/resolvers/type/product/product-types.ts"],"names":[],"mappings":"AACA,OAAO,EAAiB,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC3E,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAOpD,MAAM,CAAC,MAAM,OAAO,GAAG;IACrB,aAAa,EAAE,CAAC,OAAoB,EAAU,EAAE;QAC9C,MAAM,oBAAoB,GAAG,YAAY,CAAC,YAAY,CAAC,CAAC;QACxD,OAAO,oBAAoB,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IAC5C,CAAC;IAED,KAAK,CAAC,eAAe,CACnB,OAAoB,EACpB,MAEC,EACD,EAAE,OAAO,EAAW;QAMpB,OAAO,OAAO,CAAC,WAAW,CAAC,WAAW,CAAC;YACrC,SAAS,EAAE,OAAO,CAAC,GAAG;SACvB,CAAC,CAAC;IACL,CAAC;IAED,sBAAsB;IACtB,KAAK,CAAC,KAAK,CACT,OAAoB,EACpB,MAIC,EACD,EAAE,OAAO,EAAW;
|
|
1
|
+
{"version":3,"file":"product-types.js","sourceRoot":"","sources":["../../../../src/resolvers/type/product/product-types.ts"],"names":[],"mappings":"AACA,OAAO,EAAiB,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC3E,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAOpD,MAAM,CAAC,MAAM,OAAO,GAAG;IACrB,aAAa,EAAE,CAAC,OAAoB,EAAU,EAAE;QAC9C,MAAM,oBAAoB,GAAG,YAAY,CAAC,YAAY,CAAC,CAAC;QACxD,OAAO,oBAAoB,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IAC5C,CAAC;IAED,KAAK,CAAC,eAAe,CACnB,OAAoB,EACpB,MAEC,EACD,EAAE,OAAO,EAAW;QAMpB,OAAO,OAAO,CAAC,WAAW,CAAC,WAAW,CAAC;YACrC,SAAS,EAAE,OAAO,CAAC,GAAG;SACvB,CAAC,CAAC;IACL,CAAC;IAED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CAAC;QAExE,MAAM,SAAS,GAAG,OAAO,CAAC,GAAG,CAAC;QAC9B,MAAM,aAAa,GAAG,YAAY;YAChC,CAAC,CAAC,CAAC,YAAY,CAAC;YAChB,CAAC,CAAC,MAAM,OAAO,CAAC,WAAW,CAAC,QAAQ,CAAC,iBAAiB,CAAC,EAAE,SAAS,EAAE,CAAC,CAAC;QAExE,IAAI,CAAC,aAAa,CAAC,MAAM;YAAE,OAAO,EAAE,CAAC;QAErC,MAAM,UAAU,GAAG,MAAM,OAAO,CAAC,WAAW,CAAC,QAAQ,CAAC,mBAAmB,CAAC;YACxE,SAAS;YACT,aAAa;SACd,CAAC,CAAC;QAEH,OAAO,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAC;YACnC,UAAU;YACV,aAAa,EAAE,eAAe;YAC9B,KAAK;YACL,MAAM;SACP,CAAC,CAAC;IACL,CAAC;IAED,MAAM,CAAC,OAAoB,EAAE,CAAC,EAAE,EAAE,OAAO,EAAW;QAClD,OAAO,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC;IACpD,CAAC;IAED,KAAK,CAAC,KAAK,CACT,OAAoB,EACpB,EACE,WAAW,GAGZ,EACD,cAAuB;QAEvB,MAAM,EAAE,aAAa,EAAE,OAAO,EAAE,GAAG,cAAc,CAAC;QAClD,OAAO,OAAO,CAAC,iBAAiB,CAAC,IAAI,CAAC;YACpC,SAAS,EAAE,OAAO,CAAC,GAAG;YACtB,MAAM,EAAE,WAAW,IAAI,aAAa,CAAC,QAAQ;SAC9C,CAAC,CAAC;IACL,CAAC;CACF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product-variation-assignment-types.d.ts","sourceRoot":"","sources":["../../../../src/resolvers/type/product/product-variation-assignment-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"product-variation-assignment-types.d.ts","sourceRoot":"","sources":["../../../../src/resolvers/type/product/product-variation-assignment-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AAEhG,MAAM,MAAM,oBAAoB,CAAC,CAAC,IAAI,CACpC,IAAI,EAAE;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,UAAU,EAAE,iBAAiB,CAAA;CAAE,EACzD,CAAC,EAAE,KAAK,EACR,OAAO,EAAE,OAAO,KACb,CAAC,CAAC;AAEP,MAAM,WAAW,qCAAqC;IACpD,GAAG,EAAE,oBAAoB,CAAC,MAAM,CAAC,CAAC;IAClC,OAAO,EAAE,oBAAoB,CAAC,KAAK,CAAC;QAAE,OAAO,EAAE,OAAO,CAAA;KAAE,GAAG,oBAAoB,CAAC,CAAC,CAAC;IAClF,OAAO,EAAE,oBAAoB,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC;CACjD;AAED,eAAO,MAAM,0BAA0B,EAAE,qCAiBxC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Context } from '
|
|
1
|
+
import { Context } from '../../../context.js';
|
|
2
2
|
import { Product, ProductConfiguration } from '@unchainedshop/core-products';
|
|
3
3
|
import { ProductVariation } from '@unchainedshop/core-products';
|
|
4
4
|
export type AssignmentVectorHelperType<T> = (data: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product-variation-assignment-vector.d.ts","sourceRoot":"","sources":["../../../../src/resolvers/type/product/product-variation-assignment-vector.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"product-variation-assignment-vector.d.ts","sourceRoot":"","sources":["../../../../src/resolvers/type/product/product-variation-assignment-vector.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AAC7E,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAEhE,MAAM,MAAM,0BAA0B,CAAC,CAAC,IAAI,CAC1C,IAAI,EAAE;IAAE,OAAO,EAAE,OAAO,CAAA;CAAE,GAAG,oBAAoB,EACjD,CAAC,EAAE,KAAK,EACR,OAAO,EAAE,OAAO,KACb,CAAC,CAAC;AAEP,MAAM,WAAW,2CAA2C;IAC1D,GAAG,EAAE,0BAA0B,CAAC,MAAM,CAAC,CAAC;IACxC,MAAM,EAAE,0BAA0B,CAAC,OAAO,CAAC;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,sBAAsB,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC,CAAC;IAC7F,SAAS,EAAE,0BAA0B,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAC,CAAC;CAClE;AAED,eAAO,MAAM,gCAAgC,EAAE,2CAiB9C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product-variation-option-types.d.ts","sourceRoot":"","sources":["../../../../src/resolvers/type/product/product-variation-option-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"product-variation-option-types.d.ts","sourceRoot":"","sources":["../../../../src/resolvers/type/product/product-variation-option-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AAEpE,MAAM,MAAM,gBAAgB,CAAC,CAAC,EAAE,CAAC,IAAI,CACnC,MAAM,EAAE;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,sBAAsB,EAAE,MAAM,CAAA;CAAE,EACvD,MAAM,EAAE,CAAC,EACT,OAAO,EAAE,OAAO,KACb,CAAC,CAAC;AAEP,MAAM,WAAW,iCAAiC;IAChD,GAAG,EAAE,gBAAgB,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;IACrC,KAAK,EAAE,gBAAgB,CAAC;QAAE,WAAW,CAAC,EAAE,MAAM,CAAA;KAAE,EAAE,OAAO,CAAC,oBAAoB,CAAC,CAAC,CAAC;IACjF,KAAK,EAAE,gBAAgB,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;CACxC;AACD,eAAO,MAAM,sBAAsB,EAAE,iCAepC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Context } from '
|
|
1
|
+
import { Context } from '../../../context.js';
|
|
2
2
|
import { ProductVariation as ProductVariationType, ProductVariationText } from '@unchainedshop/core-products';
|
|
3
3
|
export type HelperType<P, T> = (productVariation: ProductVariationType, params: P, context: Context) => T;
|
|
4
4
|
export interface ProductVariationHelperTypes {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product-variation-types.d.ts","sourceRoot":"","sources":["../../../../src/resolvers/type/product/product-variation-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"product-variation-types.d.ts","sourceRoot":"","sources":["../../../../src/resolvers/type/product/product-variation-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EACL,gBAAgB,IAAI,oBAAoB,EACxC,oBAAoB,EACrB,MAAM,8BAA8B,CAAC;AAEtC,MAAM,MAAM,UAAU,CAAC,CAAC,EAAE,CAAC,IAAI,CAC7B,gBAAgB,EAAE,oBAAoB,EACtC,MAAM,EAAE,CAAC,EACT,OAAO,EAAE,OAAO,KACb,CAAC,CAAC;AAEP,MAAM,WAAW,2BAA2B;IAC1C,OAAO,EAAE,UAAU,CACjB,KAAK,EACL,KAAK,CAAC;QACJ,GAAG,EAAE,MAAM,CAAC;QACZ,sBAAsB,EAAE,MAAM,CAAC;KAChC,CAAC,CACH,CAAC;IACF,KAAK,EAAE,UAAU,CAAC;QAAE,WAAW,CAAC,EAAE,MAAM,CAAA;KAAE,EAAE,OAAO,CAAC,oBAAoB,CAAC,CAAC,CAAC;CAC5E;AACD,eAAO,MAAM,gBAAgB,EAAE,2BAW9B,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Context } from '../../context.js';
|
|
2
|
+
import { SearchConfiguration } from '@unchainedshop/core-filters';
|
|
3
|
+
type SearchResultData = {
|
|
4
|
+
searchConfiguration: SearchConfiguration & {
|
|
5
|
+
productSelector: any;
|
|
6
|
+
};
|
|
7
|
+
totalProductIds: Array<string>;
|
|
8
|
+
aggregatedTotalProductIds: Array<string>;
|
|
9
|
+
aggregatedFilteredProductIds: Array<string>;
|
|
10
|
+
};
|
|
11
|
+
export declare const ProductSearchResult: {
|
|
12
|
+
productsCount: ({ searchConfiguration, aggregatedTotalProductIds }: SearchResultData, _: never, context: Context) => Promise<number>;
|
|
13
|
+
filteredProductsCount: ({ searchConfiguration, aggregatedFilteredProductIds }: SearchResultData, _: never, context: Context) => Promise<number>;
|
|
14
|
+
products: ({ searchConfiguration, aggregatedFilteredProductIds }: SearchResultData, { offset, limit }: {
|
|
15
|
+
offset: any;
|
|
16
|
+
limit: any;
|
|
17
|
+
}, context: Context) => Promise<import("@unchainedshop/core-products").Product[]>;
|
|
18
|
+
filters({ searchConfiguration, totalProductIds }: SearchResultData, _: never, context: Context): Promise<{
|
|
19
|
+
forceLiveCollection: boolean;
|
|
20
|
+
searchQuery: import("@unchainedshop/core-filters").SearchQuery;
|
|
21
|
+
filter: import("@unchainedshop/core-filters").Filter;
|
|
22
|
+
examinedProductIdSet: Set<string>;
|
|
23
|
+
filteredByOtherFiltersSet: Set<string>;
|
|
24
|
+
filteredByThisFilterSet: Set<string>;
|
|
25
|
+
}[]>;
|
|
26
|
+
};
|
|
27
|
+
export {};
|
|
28
|
+
//# sourceMappingURL=product-search-result-types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"product-search-result-types.d.ts","sourceRoot":"","sources":["../../../src/resolvers/type/product-search-result-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC3C,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAElE,KAAK,gBAAgB,GAAG;IACtB,mBAAmB,EAAE,mBAAmB,GAAG;QAAE,eAAe,EAAE,GAAG,CAAA;KAAE,CAAC;IACpE,eAAe,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC/B,yBAAyB,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACzC,4BAA4B,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAC7C,CAAC;AAEF,eAAO,MAAM,mBAAmB;wEAEwB,gBAAgB,KACjE,KAAK,WACC,OAAO;mFAYuC,gBAAgB,KACpE,KAAK,WACC,OAAO;sEAYuC,gBAAgB;;;gBAE9D,OAAO;sDAcsC,gBAAgB,KAAK,KAAK,WAAW,OAAO;;;uBA7C5F,6BACI;;;;;CAwDb,CAAC"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
export const ProductSearchResult = {
|
|
2
|
+
productsCount: async ({ searchConfiguration, aggregatedTotalProductIds }, _, context) => {
|
|
3
|
+
if (aggregatedTotalProductIds?.length < 1)
|
|
4
|
+
return 0;
|
|
5
|
+
const { modules } = context;
|
|
6
|
+
return modules.products.search.countFilteredProducts({
|
|
7
|
+
productSelector: searchConfiguration.productSelector,
|
|
8
|
+
productIds: aggregatedTotalProductIds,
|
|
9
|
+
});
|
|
10
|
+
},
|
|
11
|
+
filteredProductsCount: async ({ searchConfiguration, aggregatedFilteredProductIds }, _, context) => {
|
|
12
|
+
if (aggregatedFilteredProductIds?.length < 1)
|
|
13
|
+
return 0;
|
|
14
|
+
const { modules } = context;
|
|
15
|
+
return modules.products.search.countFilteredProducts({
|
|
16
|
+
productSelector: searchConfiguration.productSelector,
|
|
17
|
+
productIds: aggregatedFilteredProductIds,
|
|
18
|
+
});
|
|
19
|
+
},
|
|
20
|
+
products: async ({ searchConfiguration, aggregatedFilteredProductIds }, { offset, limit }, context) => {
|
|
21
|
+
if (aggregatedFilteredProductIds?.length < 1)
|
|
22
|
+
return [];
|
|
23
|
+
const { modules } = context;
|
|
24
|
+
return modules.products.search.findFilteredProducts({
|
|
25
|
+
limit,
|
|
26
|
+
offset,
|
|
27
|
+
productIds: aggregatedFilteredProductIds,
|
|
28
|
+
productSelector: searchConfiguration.productSelector,
|
|
29
|
+
sort: searchConfiguration.sortStage,
|
|
30
|
+
});
|
|
31
|
+
},
|
|
32
|
+
async filters({ searchConfiguration, totalProductIds }, _, context) {
|
|
33
|
+
const { modules, services } = context;
|
|
34
|
+
const relevantProductIds = await modules.products.findProductIds({
|
|
35
|
+
productSelector: searchConfiguration.productSelector,
|
|
36
|
+
productIds: totalProductIds,
|
|
37
|
+
includeDrafts: searchConfiguration.searchQuery.includeInactive,
|
|
38
|
+
});
|
|
39
|
+
return services.filters.loadFilters(searchConfiguration.searchQuery, {
|
|
40
|
+
productIds: relevantProductIds,
|
|
41
|
+
forceLiveCollection: searchConfiguration.forceLiveCollection,
|
|
42
|
+
});
|
|
43
|
+
},
|
|
44
|
+
};
|
|
45
|
+
//# sourceMappingURL=product-search-result-types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"product-search-result-types.js","sourceRoot":"","sources":["../../../src/resolvers/type/product-search-result-types.ts"],"names":[],"mappings":"AAUA,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,aAAa,EAAE,KAAK,EAClB,EAAE,mBAAmB,EAAE,yBAAyB,EAAoB,EACpE,CAAQ,EACR,OAAgB,EAChB,EAAE;QACF,IAAI,yBAAyB,EAAE,MAAM,GAAG,CAAC;YAAE,OAAO,CAAC,CAAC;QAEpD,MAAM,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC;QAC5B,OAAO,OAAO,CAAC,QAAQ,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D,UAAU,EAAE,eAAe;YAC3B,aAAa,EAAE,mBAAmB,CAAC,WAAW,CAAC,eAAe;SAC/D,CAAC,CAAC;QACH,OAAO,QAAQ,CAAC,OAAO,CAAC,WAAW,CAAC,mBAAmB,CAAC,WAAW,EAAE;YACnE,UAAU,EAAE,kBAAkB;YAC9B,mBAAmB,EAAE,mBAAmB,CAAC,mBAAmB;SAC7D,CAAC,CAAC;IACL,CAAC;CACF,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Quotation as QuotationType } from '@unchainedshop/core-quotations';
|
|
2
|
-
import { Context } from '
|
|
2
|
+
import { Context } from '../../context.js';
|
|
3
3
|
import { User } from '@unchainedshop/core-users';
|
|
4
4
|
import { Product } from '@unchainedshop/core-products';
|
|
5
5
|
import { Country } from '@unchainedshop/core-countries';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"quotation-types.d.ts","sourceRoot":"","sources":["../../../src/resolvers/type/quotation-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,IAAI,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAC5E,OAAO,EAAE,OAAO,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"quotation-types.d.ts","sourceRoot":"","sources":["../../../src/resolvers/type/quotation-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,IAAI,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAC5E,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC3C,OAAO,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAC;AACjD,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AACxD,OAAO,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAE1D,KAAK,UAAU,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,SAAS,EAAE,aAAa,EAAE,MAAM,EAAE,CAAC,EAAE,OAAO,EAAE,OAAO,KAAK,CAAC,CAAC;AAErF,KAAK,oBAAoB,GAAG;IAC1B,OAAO,EAAE,UAAU,CAAC,KAAK,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC;IAC7C,QAAQ,EAAE,UAAU,CAAC,KAAK,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC/C,SAAS,EAAE,UAAU,CAAC;QAAE,aAAa,EAAE,IAAI,CAAA;KAAE,EAAE,OAAO,CAAC,CAAC;IACxD,MAAM,EAAE,UAAU,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;IAClC,OAAO,EAAE,UAAU,CAAC,KAAK,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC;IAC7C,IAAI,EAAE,UAAU,CAAC,KAAK,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC;CACxC,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,oBAkBvB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Context } from '
|
|
1
|
+
import { Context } from '../../context.js';
|
|
2
2
|
import { Country } from '@unchainedshop/core-countries';
|
|
3
3
|
import { Language } from '@unchainedshop/core-languages';
|
|
4
4
|
type HelperType<T> = (root: never, params: never, context: Context) => Promise<T>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shop-types.d.ts","sourceRoot":"","sources":["../../../src/resolvers/type/shop-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"shop-types.d.ts","sourceRoot":"","sources":["../../../src/resolvers/type/shop-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC3C,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AACxD,OAAO,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AAIzD,KAAK,UAAU,CAAC,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,KAAK,OAAO,CAAC,CAAC,CAAC,CAAC;AAElF,MAAM,WAAW,eAAe;IAC9B,GAAG,EAAE,MAAM,MAAM,CAAC;IAClB,OAAO,EAAE,UAAU,CAAC,OAAO,CAAC,CAAC;IAC7B,QAAQ,EAAE,UAAU,CAAC,QAAQ,CAAC,CAAC;IAC/B,SAAS,EAAE,UAAU,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC;CACtC;AAED,eAAO,MAAM,IAAI,EAAE,eAkBlB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stock-types.d.ts","sourceRoot":"","sources":["../../../src/resolvers/type/stock-types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"stock-types.d.ts","sourceRoot":"","sources":["../../../src/resolvers/type/stock-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AAGtE,eAAO,MAAM,KAAK;kBACI;QAClB,OAAO,EAAE,OAAO,CAAC;QACjB,gBAAgB,EAAE,gBAAgB,CAAC;QACnC,mBAAmB,EAAE,mBAAmB,CAAC;QACzC,aAAa,EAAE,IAAI,CAAC;QACpB,OAAO,EAAE,MAAM,CAAC;QAChB,MAAM,CAAC,EAAE,MAAM,CAAC;KACjB;CAWF,CAAC"}
|
|
@@ -1,15 +1,12 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { sha256 } from '@unchainedshop/utils';
|
|
2
2
|
export const Stock = {
|
|
3
|
-
_id: (params) =>
|
|
4
|
-
.createHash('sha256')
|
|
5
|
-
.update([
|
|
3
|
+
_id: async (params) => await sha256([
|
|
6
4
|
params.product._id,
|
|
7
5
|
params.deliveryProvider._id,
|
|
8
6
|
params.warehousingProvider._id,
|
|
9
7
|
params.referenceDate,
|
|
10
8
|
params.country,
|
|
11
9
|
params.userId || 'ANONYMOUS',
|
|
12
|
-
].join(''))
|
|
13
|
-
.digest('hex'),
|
|
10
|
+
].join('')),
|
|
14
11
|
};
|
|
15
12
|
//# sourceMappingURL=stock-types.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stock-types.js","sourceRoot":"","sources":["../../../src/resolvers/type/stock-types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"stock-types.js","sourceRoot":"","sources":["../../../src/resolvers/type/stock-types.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAE9C,MAAM,CAAC,MAAM,KAAK,GAAG;IACnB,GAAG,EAAE,KAAK,EAAE,MAOX,EAAE,EAAE,CACH,MAAM,MAAM,CACV;QACE,MAAM,CAAC,OAAO,CAAC,GAAG;QAClB,MAAM,CAAC,gBAAgB,CAAC,GAAG;QAC3B,MAAM,CAAC,mBAAmB,CAAC,GAAG;QAC9B,MAAM,CAAC,aAAa;QACpB,MAAM,CAAC,OAAO;QACd,MAAM,CAAC,MAAM,IAAI,WAAW;KAC7B,CAAC,IAAI,CAAC,EAAE,CAAC,CACX;CACJ,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Context } from '
|
|
2
|
-
import {
|
|
1
|
+
import { Context } from '../../context.js';
|
|
2
|
+
import { TokenSurrogate, TokenStatus } from '@unchainedshop/core-warehousing';
|
|
3
3
|
export declare const Token: {
|
|
4
4
|
product: (token: TokenSurrogate, params: never, { modules }: Context) => Promise<import("@unchainedshop/core-products").Product>;
|
|
5
5
|
user: (token: TokenSurrogate, params: never, { modules }: Context) => Promise<import("@unchainedshop/core-users").User>;
|
|
@@ -7,7 +7,7 @@ export declare const Token: {
|
|
|
7
7
|
ercMetadata: (token: TokenSurrogate, { forceLocale }: {
|
|
8
8
|
forceLocale: string;
|
|
9
9
|
}, context: Context) => Promise<any>;
|
|
10
|
-
isInvalidateable: (token: TokenSurrogate, _params: never, context: Context) => Promise<
|
|
10
|
+
isInvalidateable: (token: TokenSurrogate, _params: never, context: Context) => Promise<any>;
|
|
11
11
|
accessKey: (token: TokenSurrogate, params: never, requestContext: Context) => Promise<string>;
|
|
12
12
|
};
|
|
13
13
|
//# sourceMappingURL=token-types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"token-types.d.ts","sourceRoot":"","sources":["../../../src/resolvers/type/token-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"token-types.d.ts","sourceRoot":"","sources":["../../../src/resolvers/type/token-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC3C,OAAO,EAAE,cAAc,EAAE,WAAW,EAA2B,MAAM,iCAAiC,CAAC;AAMvG,eAAO,MAAM,KAAK;qBACO,cAAc,UAAU,KAAK,eAAe,OAAO;kBAItD,cAAc,UAAU,KAAK,eAAe,OAAO;oBAKjD,cAAc,UAAU,KAAK,eAAe,OAAO;yBAahE,cAAc,mBACJ;QAAE,WAAW,EAAE,MAAM,CAAA;KAAE,WAC/B,OAAO;8BAsBc,cAAc,WAAW,KAAK,WAAW,OAAO;uBAsBvD,cAAc,UAAU,KAAK,kBAAkB,OAAO;CAOhF,CAAC"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { TokenStatus } from '@unchainedshop/core-warehousing';
|
|
1
|
+
import { TokenStatus, WarehousingProviderType } from '@unchainedshop/core-warehousing';
|
|
2
2
|
import { WorkStatus } from '@unchainedshop/core-worker';
|
|
3
3
|
import { checkAction } from '../../acl.js';
|
|
4
4
|
import { actions } from '../../roles/index.js';
|
|
5
|
+
import { WarehousingDirector } from '@unchainedshop/core';
|
|
5
6
|
export const Token = {
|
|
6
7
|
product: async (token, params, { modules }) => {
|
|
7
8
|
return modules.products.findProduct({ productId: token.productId });
|
|
@@ -26,20 +27,27 @@ export const Token = {
|
|
|
26
27
|
ercMetadata: async (token, { forceLocale }, context) => {
|
|
27
28
|
const { modules } = context;
|
|
28
29
|
const product = await modules.products.findProduct({ productId: token.productId });
|
|
29
|
-
const
|
|
30
|
-
|
|
30
|
+
const virtualProviders = await context.modules.warehousing.findProviders({
|
|
31
|
+
type: WarehousingProviderType.VIRTUAL,
|
|
32
|
+
});
|
|
33
|
+
return WarehousingDirector.tokenMetadata(virtualProviders, {
|
|
31
34
|
product,
|
|
32
|
-
|
|
35
|
+
token,
|
|
36
|
+
locale: forceLocale ? new Intl.Locale(forceLocale) : context.localeContext,
|
|
37
|
+
quantity: token?.quantity || 1,
|
|
33
38
|
referenceDate: new Date(),
|
|
34
39
|
}, context);
|
|
35
|
-
return ercMetadata;
|
|
36
40
|
},
|
|
37
41
|
isInvalidateable: async (token, _params, context) => {
|
|
38
42
|
const { modules } = context;
|
|
39
43
|
const product = await modules.products.findProduct({ productId: token.productId });
|
|
40
|
-
const
|
|
44
|
+
const virtualProviders = await context.modules.warehousing.findProviders({
|
|
45
|
+
type: WarehousingProviderType.VIRTUAL,
|
|
46
|
+
});
|
|
47
|
+
const isInvalidateable = await WarehousingDirector.isInvalidateable(virtualProviders, {
|
|
41
48
|
token,
|
|
42
49
|
product,
|
|
50
|
+
quantity: token?.quantity || 1,
|
|
43
51
|
referenceDate: new Date(),
|
|
44
52
|
}, context);
|
|
45
53
|
return isInvalidateable;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"token-types.js","sourceRoot":"","sources":["../../../src/resolvers/type/token-types.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"token-types.js","sourceRoot":"","sources":["../../../src/resolvers/type/token-types.ts"],"names":[],"mappings":"AACA,OAAO,EAAkB,WAAW,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CA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jE,gBAAgB,EAChB;YACE,KAAK;YACL,OAAO;YACP,QAAQ,EAAE,KAAK,EAAE,QAAQ,IAAI,CAAC;YAC9B,aAAa,EAAE,IAAI,IAAI,EAAE;SAC1B,EACD,OAAO,CACR,CAAC;QAEF,OAAO,gBAAgB,CAAC;IAC1B,CAAC;IAED,SAAS,EAAE,KAAK,EAAE,KAAqB,EAAE,MAAa,EAAE,cAAuB,EAAE,EAAE;QACjF,MAAM,EAAE,OAAO,EAAE,GAAG,cAAc,CAAC;QACnC,MAAM,WAAW,CAAC,cAAc,EAAE,OAAO,CAAC,WAAW,EAAE,CAAC,SAAS,EAAE,EAAE,OAAO,EAAE,KAAK,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC;QAC5F,6FAA6F;QAC7F,sBAAsB;QACtB,OAAO,OAAO,CAAC,WAAW,CAAC,sBAAsB,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IAC/D,CAAC;CACF,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Bookmark } from '@unchainedshop/core-bookmarks';
|
|
2
2
|
import { SortOption } from '@unchainedshop/utils';
|
|
3
3
|
import { Enrollment, EnrollmentStatus } from '@unchainedshop/core-enrollments';
|
|
4
4
|
import { File } from '@unchainedshop/core-files';
|
|
@@ -9,9 +9,9 @@ import { Quotation } from '@unchainedshop/core-quotations';
|
|
|
9
9
|
import { Email, User as UserType, UserProfile, Web3Address, WebAuthnCredentials, PushSubscription } from '@unchainedshop/core-users';
|
|
10
10
|
import { TokenSurrogate } from '@unchainedshop/core-warehousing';
|
|
11
11
|
import { ProductReview } from '@unchainedshop/core-products';
|
|
12
|
-
import { Context } from '../../
|
|
13
|
-
import
|
|
14
|
-
import
|
|
12
|
+
import { Context } from '../../context.js';
|
|
13
|
+
import { Contact } from '@unchainedshop/mongodb';
|
|
14
|
+
import { Country } from '@unchainedshop/core-countries';
|
|
15
15
|
type HelperType<P, T> = (user: UserType, params: P, context: Context) => Promise<T>;
|
|
16
16
|
export interface UserHelperTypes {
|
|
17
17
|
_id: HelperType<any, boolean>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user-types.d.ts","sourceRoot":"","sources":["../../../src/resolvers/type/user-types.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"user-types.d.ts","sourceRoot":"","sources":["../../../src/resolvers/type/user-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AACzD,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAC/E,OAAO,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAC;AACjD,OAAO,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AACzD,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AACjE,OAAO,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAC;AAC3D,OAAO,EACL,KAAK,EACL,IAAI,IAAI,QAAQ,EAChB,WAAW,EACX,WAAW,EACX,mBAAmB,EACnB,gBAAgB,EACjB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AAEjE,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAG7D,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC3C,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AAExD,KAAK,UAAU,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAC,EAAE,OAAO,EAAE,OAAO,KAAK,OAAO,CA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,IAAI,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,CAAC;QAAC,WAAW,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE,EACpG,KAAK,CAAC,SAAS,CAAC,CACjB,CAAC;IACF,KAAK,EAAE,UAAU,CAAC,GAAG,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC;IACtC,IAAI,EAAE,UAAU,CAAC,GAAG,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC;IACrC,QAAQ,EAAE,UAAU,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC;IAClC,iBAAiB,EAAE,UAAU,CAAC,GAAG,EAAE,KAAK,CAAC,gBAAgB,CAAC,CAAC,CAAC;IAC5D,OAAO,EAAE,UAAU,CACjB;QACE,IAAI,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,CAAC;QACzB,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,MAAM,CAAC,EAAE,MAAM,CAAC;KACjB,EACD,KAAK,CAAC,aAAa,CAAC,CACrB,CAAC;IACF,YAAY,EAAE,UAAU,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC;CACvC;AAeD,eAAO,MAAM,IAAI,EAAE,eAsKlB,CAAC"}
|
|
@@ -61,7 +61,13 @@ export const User = {
|
|
|
61
61
|
},
|
|
62
62
|
async tokens(user, params, context) {
|
|
63
63
|
await checkAction(context, viewUserPrivateInfos, [user, params]);
|
|
64
|
-
|
|
64
|
+
const walletAddresses = user.services?.web3?.flatMap((service) => {
|
|
65
|
+
return service.verified ? [service.address] : [];
|
|
66
|
+
}) || [];
|
|
67
|
+
return context.modules.warehousing.findTokensForUser({
|
|
68
|
+
userId: user._id,
|
|
69
|
+
walletAddresses,
|
|
70
|
+
});
|
|
65
71
|
},
|
|
66
72
|
async country(user, params, context) {
|
|
67
73
|
await checkAction(context, viewUserPrivateInfos, [user, params]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user-types.js","sourceRoot":"","sources":["../../../src/resolvers/type/user-types.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAE1D,OAAO,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAC9D,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAwE/C,MAAM,EACJ,oBAAoB,EACpB,mBAAmB,EACnB,cAAc,EACd,mBAAmB,EACnB,kBAAkB,EAClB,sBAAsB,GACvB,GAAG,OAAiC,CAAC;AAEtC,MAAM,eAAe,GAAG,CAAC,IAAc,EAAE,EAAE;IACzC,OAAO,CAAC,IAAI,CAAC,MAAM,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,GAAG,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;AACxG,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAoB;IACnC,GAAG,EAAE,iBAAiB,CAAC,mBAAmB,EAAE,KAAK,CAAC;IAClD,OAAO,EAAE,iBAAiB,CAAC,oBAAoB,EAAE,SAAS,CAAC;IAC3D,OAAO,EAAE,iBAAiB,CAAC,oBAAoB,EAAE,SAAS,CAAC;IAC3D,OAAO,EAAE,iBAAiB,CAAC,oBAAoB,EAAE,SAAS,CAAC;IAC3D,MAAM,EAAE,iBAAiB,CAAC,oBAAoB,EAAE,QAAQ,CAAC;IACzD,kBAAkB,EAAE,iBAAiB,CAAC,oBAAoB,EAAE,oBAAoB,CAAC;IACjF,WAAW,EAAE,iBAAiB,CAAC,oBAAoB,EAAE,aAAa,CAAC;IACnE,SAAS,EAAE,iBAAiB,CAAC,oBAA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,QAAQ,CAAC,OAAO,CAAC,KAAK,CAAC;YACpC,QAAQ,EAAE,IAAI,CAAC,GAAG;SACnB,CAAC,CAAC;IACL,CAAC;CACF,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { WarehousingError, WarehousingInterface
|
|
2
|
-
import {
|
|
1
|
+
import { WarehousingError, WarehousingInterface } from '@unchainedshop/core';
|
|
2
|
+
import { WarehousingProvider as WarehousingProviderType } from '@unchainedshop/core-warehousing';
|
|
3
|
+
import { Context } from '../../context.js';
|
|
3
4
|
export type HelperType<P, T> = (provider: WarehousingProviderType, params: P, context: Context) => T;
|
|
4
5
|
export interface WarehousingProviderHelperTypes {
|
|
5
6
|
configurationError: HelperType<never, Promise<WarehousingError>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"warehousing-provider-types.d.ts","sourceRoot":"","sources":["../../../src/resolvers/type/warehousing-provider-types.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"warehousing-provider-types.d.ts","sourceRoot":"","sources":["../../../src/resolvers/type/warehousing-provider-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAClG,OAAO,EAAE,mBAAmB,IAAI,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AACjG,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAE3C,MAAM,MAAM,UAAU,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,QAAQ,EAAE,uBAAuB,EAAE,MAAM,EAAE,CAAC,EAAE,OAAO,EAAE,OAAO,KAAK,CAAC,CAAC;AAErG,MAAM,WAAW,8BAA8B;IAC7C,kBAAkB,EAAE,UAAU,CAAC,KAAK,EAAE,OAAO,CAAC,gBAAgB,CAAC,CAAC,CAAC;IACjE,SAAS,EAAE,UAAU,CAAC,KAAK,EAAE,oBAAoB,CAAC,CAAC;IACnD,QAAQ,EAAE,UAAU,CAAC,KAAK,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC;CAC/C;AAED,eAAO,MAAM,mBAAmB,EAAE,8BAoBjC,CAAC"}
|
|
@@ -1,15 +1,22 @@
|
|
|
1
|
+
import { WarehousingDirector } from '@unchainedshop/core';
|
|
1
2
|
export const WarehousingProvider = {
|
|
2
|
-
interface(obj
|
|
3
|
-
const
|
|
4
|
-
if (!
|
|
3
|
+
interface(obj) {
|
|
4
|
+
const Adapter = WarehousingDirector.getAdapter(obj.adapterKey);
|
|
5
|
+
if (!Adapter)
|
|
5
6
|
return null;
|
|
6
|
-
return
|
|
7
|
+
return {
|
|
8
|
+
_id: Adapter.key,
|
|
9
|
+
label: Adapter.label,
|
|
10
|
+
version: Adapter.version,
|
|
11
|
+
};
|
|
7
12
|
},
|
|
8
13
|
async configurationError(obj, _, context) {
|
|
9
|
-
|
|
14
|
+
const actions = await WarehousingDirector.actions(obj, {}, context);
|
|
15
|
+
return actions.configurationError();
|
|
10
16
|
},
|
|
11
17
|
async isActive(obj, _, context) {
|
|
12
|
-
|
|
18
|
+
const actions = await WarehousingDirector.actions(obj, {}, context);
|
|
19
|
+
return actions.isActive();
|
|
13
20
|
},
|
|
14
21
|
};
|
|
15
22
|
//# sourceMappingURL=warehousing-provider-types.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"warehousing-provider-types.js","sourceRoot":"","sources":["../../../src/resolvers/type/warehousing-provider-types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"warehousing-provider-types.js","sourceRoot":"","sources":["../../../src/resolvers/type/warehousing-provider-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAA0C,MAAM,qBAAqB,CAAC;AAYlG,MAAM,CAAC,MAAM,mBAAmB,GAAmC;IACjE,SAAS,CAAC,GAAG;QACX,MAAM,OAAO,GAAG,mBAAmB,CAAC,UAAU,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;QAC/D,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,GAAG,EAAE,CAAC,EAAE,OAAO;QACtC,MAAM,OAAO,GAAG,MAAM,mBAAmB,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;QACpE,OAAO,OAAO,CAAC,kBAAkB,EAAE,CAAC;IACtC,CAAC;IAED,KAAK,CAAC,QAAQ,CAAC,GAAG,EAAE,CAAC,EAAE,OAAO;QAC5B,MAAM,OAAO,GAAG,MAAM,mBAAmB,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;QACpE,OAAO,OAAO,CAAC,QAAQ,EAAE,CAAC;IAC5B,CAAC;CACF,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Context } from '
|
|
1
|
+
import { Context } from '../../context.js';
|
|
2
2
|
import { WebAuthnCredentials as WebAuthnCredentialsTypes } from '@unchainedshop/core-users';
|
|
3
3
|
type HelperType<P, T> = (credentials: WebAuthnCredentialsTypes, params: P, context: Context) => Promise<T>;
|
|
4
4
|
export interface WebAuthnCredentialsHelperTypes {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webauthn-credentials-types.d.ts","sourceRoot":"","sources":["../../../src/resolvers/type/webauthn-credentials-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"webauthn-credentials-types.d.ts","sourceRoot":"","sources":["../../../src/resolvers/type/webauthn-credentials-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC3C,OAAO,EAAE,mBAAmB,IAAI,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AAE5F,KAAK,UAAU,CAAC,CAAC,EAAE,CAAC,IAAI,CACtB,WAAW,EAAE,wBAAwB,EACrC,MAAM,EAAE,CAAC,EACT,OAAO,EAAE,OAAO,KACb,OAAO,CAAC,CAAC,CAAC,CAAC;AAEhB,MAAM,WAAW,8BAA8B;IAC7C,GAAG,EAAE,UAAU,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC;IAC7B,OAAO,EAAE,UAAU,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;IAC/B,WAAW,EAAE,UAAU,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;CACnC;AAED,eAAO,MAAM,mBAAmB,EAAE,8BAWjC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"work-types.d.ts","sourceRoot":"","sources":["../../../src/resolvers/type/work-types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"work-types.d.ts","sourceRoot":"","sources":["../../../src/resolvers/type/work-types.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC3C,OAAO,EAAE,IAAI,IAAI,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AAG9D,KAAK,UAAU,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAC,EAAE,OAAO,EAAE,OAAO,KAAK,CAAC,CAAC;AAE3E,MAAM,WAAW,eAAe;IAC9B,MAAM,EAAE,UAAU,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;IAClC,IAAI,EAAE,UAAU,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;IAChC,MAAM,EAAE,UAAU,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;IAC/B,KAAK,EAAE,UAAU,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;IAC9B,KAAK,EAAE,UAAU,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;IAC9B,QAAQ,EAAE,UAAU,CAAC,KAAK,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC;CAChD;AAED,eAAO,MAAM,IAAI,EAAE,eA4BlB,CAAC"}
|
|
@@ -1,10 +1,14 @@
|
|
|
1
|
+
import { WorkerDirector } from '@unchainedshop/core';
|
|
1
2
|
import { buildObfuscatedFieldsFilter } from '@unchainedshop/utils';
|
|
2
3
|
export const Work = {
|
|
3
4
|
status: (obj, _, { modules }) => {
|
|
4
5
|
return modules.worker.status(obj);
|
|
5
6
|
},
|
|
6
|
-
type: (obj
|
|
7
|
-
|
|
7
|
+
type: (obj) => {
|
|
8
|
+
if (WorkerDirector.getActivePluginTypes().includes(obj.type)) {
|
|
9
|
+
return obj.type;
|
|
10
|
+
}
|
|
11
|
+
return 'UNKNOWN';
|
|
8
12
|
},
|
|
9
13
|
original: async (obj, _, { modules }) => {
|
|
10
14
|
if (!obj.originalWorkId)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"work-types.js","sourceRoot":"","sources":["../../../src/resolvers/type/work-types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"work-types.js","sourceRoot":"","sources":["../../../src/resolvers/type/work-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAGrD,OAAO,EAAE,2BAA2B,EAAE,MAAM,sBAAsB,CAAC;AAanE,MAAM,CAAC,MAAM,IAAI,GAAoB;IACnC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;QAC9B,OAAO,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;IACpC,CAAC;IAED,IAAI,EAAE,CAAC,GAAG,EAAE,EAAE;QACZ,IAAI,cAAc,CAAC,oBAAoB,EAAE,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC;YAC7D,OAAO,GAAG,CAAC,IAAI,CAAC;QAClB,CAAC;QACD,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,QAAQ,EAAE,KAAK,EAAE,GAAG,EAAE,CAAC,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;QACtC,IAAI,CAAC,GAAG,CAAC,cAAc;YAAE,OAAO,IAAI,CAAC;QACrC,OAAO,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,GAAG,CAAC,cAAc,EAAE,CAAC,CAAC;IACjE,CAAC;IAED,KAAK,EAAE,CAAC,GAAG,EAAE,CAAC,EAAE,EAAE,OAAO,EAAW,EAAE,EAAE;QACtC,OAAO,2BAA2B,CAAC,OAAO,CAAC,MAAM,EAAE,oBAAoB,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;IACtF,CAAC;IAED,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,EAAE,EAAE,OAAO,EAAW,EAAE,EAAE;QACvC,OAAO,2BAA2B,CAAC,OAAO,CAAC,MAAM,EAAE,oBAAoB,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACvF,CAAC;IAED,KAAK,EAAE,CAAC,GAAG,EAAE,CAAC,EAAE,EAAE,OAAO,EAAW,EAAE,EAAE;QACtC,OAAO,2BAA2B,CAAC,OAAO,CAAC,MAAM,EAAE,oBAAoB,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;IACtF,CAAC;CACF,CAAC"}
|
package/lib/roles/all.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"all.d.ts","sourceRoot":"","sources":["../../src/roles/all.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,GAAG,
|
|
1
|
+
{"version":3,"file":"all.d.ts","sourceRoot":"","sources":["../../src/roles/all.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,GAAG,mCAsJf,CAAC"}
|