@unchainedshop/api 3.0.0-alpha7 → 3.0.0-rc2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/lib/api-index.d.ts +3 -3
- package/lib/api-index.d.ts.map +1 -1
- package/lib/api-index.js +2 -1
- package/lib/api-index.js.map +1 -1
- package/lib/context.d.ts +32 -2
- package/lib/context.d.ts.map +1 -1
- package/lib/context.js +13 -2
- package/lib/context.js.map +1 -1
- package/lib/errors.d.ts +2 -0
- package/lib/errors.d.ts.map +1 -1
- package/lib/errors.js +2 -0
- package/lib/errors.js.map +1 -1
- package/lib/express/createBulkImportMiddleware.d.ts +1 -1
- package/lib/express/createBulkImportMiddleware.d.ts.map +1 -1
- package/lib/express/createBulkImportMiddleware.js +1 -1
- package/lib/express/createBulkImportMiddleware.js.map +1 -1
- package/lib/express/createERCMetadataMiddleware.d.ts +3 -5
- package/lib/express/createERCMetadataMiddleware.d.ts.map +1 -1
- package/lib/express/createERCMetadataMiddleware.js +12 -17
- package/lib/express/createERCMetadataMiddleware.js.map +1 -1
- package/lib/express/index.d.ts +2 -2
- package/lib/express/index.d.ts.map +1 -1
- package/lib/express/index.js +31 -12
- package/lib/express/index.js.map +1 -1
- package/lib/fastify/bulkImportHandler.d.ts +4 -0
- package/lib/fastify/bulkImportHandler.d.ts.map +1 -0
- package/lib/fastify/bulkImportHandler.js +47 -0
- package/lib/fastify/bulkImportHandler.js.map +1 -0
- package/lib/fastify/ercMetadataHandler.d.ts +4 -0
- package/lib/fastify/ercMetadataHandler.d.ts.map +1 -0
- package/lib/fastify/ercMetadataHandler.js +39 -0
- package/lib/fastify/ercMetadataHandler.js.map +1 -0
- package/lib/fastify/index.d.ts +2 -1
- package/lib/fastify/index.d.ts.map +1 -1
- package/lib/fastify/index.js +37 -17
- package/lib/fastify/index.js.map +1 -1
- package/lib/loaders/index.d.ts +63 -1
- package/lib/loaders/index.d.ts.map +1 -1
- package/lib/loaders/index.js +52 -17
- package/lib/loaders/index.js.map +1 -1
- package/lib/locale-context.d.ts +13 -4
- package/lib/locale-context.d.ts.map +1 -1
- package/lib/locale-context.js +10 -12
- package/lib/locale-context.js.map +1 -1
- package/lib/resolvers/mutations/accounts/addEmail.d.ts +1 -1
- package/lib/resolvers/mutations/accounts/addEmail.d.ts.map +1 -1
- package/lib/resolvers/mutations/accounts/addWeb3Address.d.ts +1 -1
- package/lib/resolvers/mutations/accounts/addWeb3Address.d.ts.map +1 -1
- package/lib/resolvers/mutations/accounts/addWebAuthnCredentials.d.ts +1 -1
- package/lib/resolvers/mutations/accounts/addWebAuthnCredentials.d.ts.map +1 -1
- package/lib/resolvers/mutations/accounts/changePassword.d.ts +1 -1
- package/lib/resolvers/mutations/accounts/changePassword.d.ts.map +1 -1
- package/lib/resolvers/mutations/accounts/createUser.d.ts +1 -1
- package/lib/resolvers/mutations/accounts/createUser.d.ts.map +1 -1
- package/lib/resolvers/mutations/accounts/createWebAuthnCredentialCreationOptions.d.ts +1 -1
- package/lib/resolvers/mutations/accounts/createWebAuthnCredentialCreationOptions.d.ts.map +1 -1
- package/lib/resolvers/mutations/accounts/createWebAuthnCredentialCreationOptions.js.map +1 -1
- package/lib/resolvers/mutations/accounts/createWebAuthnCredentialRequestOptions.d.ts +1 -1
- package/lib/resolvers/mutations/accounts/createWebAuthnCredentialRequestOptions.d.ts.map +1 -1
- package/lib/resolvers/mutations/accounts/createWebAuthnCredentialRequestOptions.js.map +1 -1
- package/lib/resolvers/mutations/accounts/enrollUser.d.ts +1 -1
- package/lib/resolvers/mutations/accounts/enrollUser.d.ts.map +1 -1
- package/lib/resolvers/mutations/accounts/forgotPassword.d.ts +1 -1
- package/lib/resolvers/mutations/accounts/forgotPassword.d.ts.map +1 -1
- package/lib/resolvers/mutations/accounts/loginAsGuest.d.ts +1 -1
- package/lib/resolvers/mutations/accounts/loginAsGuest.d.ts.map +1 -1
- package/lib/resolvers/mutations/accounts/loginAsGuest.js +2 -2
- package/lib/resolvers/mutations/accounts/loginAsGuest.js.map +1 -1
- package/lib/resolvers/mutations/accounts/loginWithPassword.d.ts +1 -1
- package/lib/resolvers/mutations/accounts/loginWithPassword.d.ts.map +1 -1
- package/lib/resolvers/mutations/accounts/loginWithPassword.js +2 -2
- package/lib/resolvers/mutations/accounts/loginWithPassword.js.map +1 -1
- package/lib/resolvers/mutations/accounts/loginWithWebAuthn.d.ts +1 -1
- package/lib/resolvers/mutations/accounts/loginWithWebAuthn.d.ts.map +1 -1
- package/lib/resolvers/mutations/accounts/logout.d.ts +1 -1
- package/lib/resolvers/mutations/accounts/logout.d.ts.map +1 -1
- package/lib/resolvers/mutations/accounts/removeEmail.d.ts +1 -1
- package/lib/resolvers/mutations/accounts/removeEmail.d.ts.map +1 -1
- package/lib/resolvers/mutations/accounts/removeWeb3Address.d.ts +1 -1
- package/lib/resolvers/mutations/accounts/removeWeb3Address.d.ts.map +1 -1
- package/lib/resolvers/mutations/accounts/removeWebAuthnCredentials.d.ts +1 -1
- package/lib/resolvers/mutations/accounts/removeWebAuthnCredentials.d.ts.map +1 -1
- package/lib/resolvers/mutations/accounts/resetPassword.d.ts +1 -1
- package/lib/resolvers/mutations/accounts/resetPassword.d.ts.map +1 -1
- package/lib/resolvers/mutations/accounts/sendEnrollmentEmail.d.ts +1 -1
- package/lib/resolvers/mutations/accounts/sendEnrollmentEmail.d.ts.map +1 -1
- package/lib/resolvers/mutations/accounts/sendVerificationEmail.d.ts +1 -1
- package/lib/resolvers/mutations/accounts/sendVerificationEmail.d.ts.map +1 -1
- package/lib/resolvers/mutations/accounts/setPassword.d.ts +1 -1
- package/lib/resolvers/mutations/accounts/setPassword.d.ts.map +1 -1
- package/lib/resolvers/mutations/accounts/setUsername.d.ts +1 -1
- package/lib/resolvers/mutations/accounts/setUsername.d.ts.map +1 -1
- package/lib/resolvers/mutations/accounts/verifyEmail.d.ts +1 -1
- package/lib/resolvers/mutations/accounts/verifyEmail.d.ts.map +1 -1
- package/lib/resolvers/mutations/accounts/verifyWeb3Address.d.ts +1 -1
- package/lib/resolvers/mutations/accounts/verifyWeb3Address.d.ts.map +1 -1
- package/lib/resolvers/mutations/assortments/addAssortmentFilter.d.ts +1 -1
- package/lib/resolvers/mutations/assortments/addAssortmentFilter.d.ts.map +1 -1
- package/lib/resolvers/mutations/assortments/addAssortmentLink.d.ts +1 -1
- package/lib/resolvers/mutations/assortments/addAssortmentLink.d.ts.map +1 -1
- package/lib/resolvers/mutations/assortments/addAssortmentProduct.d.ts +1 -1
- package/lib/resolvers/mutations/assortments/addAssortmentProduct.d.ts.map +1 -1
- package/lib/resolvers/mutations/assortments/createAssortment.d.ts +1 -1
- package/lib/resolvers/mutations/assortments/createAssortment.d.ts.map +1 -1
- package/lib/resolvers/mutations/assortments/prepareAssortmentMediaUpload.d.ts +1 -1
- package/lib/resolvers/mutations/assortments/prepareAssortmentMediaUpload.d.ts.map +1 -1
- package/lib/resolvers/mutations/assortments/prepareAssortmentMediaUpload.js +1 -1
- package/lib/resolvers/mutations/assortments/prepareAssortmentMediaUpload.js.map +1 -1
- package/lib/resolvers/mutations/assortments/removeAssortment.d.ts +1 -1
- package/lib/resolvers/mutations/assortments/removeAssortment.d.ts.map +1 -1
- package/lib/resolvers/mutations/assortments/removeAssortmentFilter.d.ts +1 -1
- package/lib/resolvers/mutations/assortments/removeAssortmentFilter.d.ts.map +1 -1
- package/lib/resolvers/mutations/assortments/removeAssortmentLink.d.ts +1 -1
- package/lib/resolvers/mutations/assortments/removeAssortmentLink.d.ts.map +1 -1
- package/lib/resolvers/mutations/assortments/removeAssortmentMedia.d.ts +1 -1
- package/lib/resolvers/mutations/assortments/removeAssortmentMedia.d.ts.map +1 -1
- package/lib/resolvers/mutations/assortments/removeAssortmentProduct.d.ts +1 -1
- package/lib/resolvers/mutations/assortments/removeAssortmentProduct.d.ts.map +1 -1
- package/lib/resolvers/mutations/assortments/reorderAssortmentFilters.d.ts +1 -1
- package/lib/resolvers/mutations/assortments/reorderAssortmentFilters.d.ts.map +1 -1
- package/lib/resolvers/mutations/assortments/reorderAssortmentLinks.d.ts +1 -1
- package/lib/resolvers/mutations/assortments/reorderAssortmentLinks.d.ts.map +1 -1
- package/lib/resolvers/mutations/assortments/reorderAssortmentMedia.d.ts +1 -1
- package/lib/resolvers/mutations/assortments/reorderAssortmentMedia.d.ts.map +1 -1
- package/lib/resolvers/mutations/assortments/reorderAssortmentProducts.d.ts +1 -1
- package/lib/resolvers/mutations/assortments/reorderAssortmentProducts.d.ts.map +1 -1
- package/lib/resolvers/mutations/assortments/setBaseAssortment.d.ts +1 -1
- package/lib/resolvers/mutations/assortments/setBaseAssortment.d.ts.map +1 -1
- package/lib/resolvers/mutations/assortments/updateAssortment.d.ts +1 -1
- package/lib/resolvers/mutations/assortments/updateAssortment.d.ts.map +1 -1
- package/lib/resolvers/mutations/assortments/updateAssortmentMediaTexts.d.ts +1 -1
- package/lib/resolvers/mutations/assortments/updateAssortmentMediaTexts.d.ts.map +1 -1
- package/lib/resolvers/mutations/assortments/updateAssortmentTexts.d.ts +1 -1
- package/lib/resolvers/mutations/assortments/updateAssortmentTexts.d.ts.map +1 -1
- package/lib/resolvers/mutations/bookmarks/bookmark.d.ts +1 -1
- package/lib/resolvers/mutations/bookmarks/bookmark.d.ts.map +1 -1
- package/lib/resolvers/mutations/bookmarks/createBookmark.d.ts +1 -1
- package/lib/resolvers/mutations/bookmarks/createBookmark.d.ts.map +1 -1
- package/lib/resolvers/mutations/bookmarks/removeBookmark.d.ts +1 -1
- package/lib/resolvers/mutations/bookmarks/removeBookmark.d.ts.map +1 -1
- package/lib/resolvers/mutations/countries/createCountry.d.ts +1 -1
- package/lib/resolvers/mutations/countries/createCountry.d.ts.map +1 -1
- package/lib/resolvers/mutations/countries/removeCountry.d.ts +1 -1
- package/lib/resolvers/mutations/countries/removeCountry.d.ts.map +1 -1
- package/lib/resolvers/mutations/countries/updateCountry.d.ts +1 -1
- package/lib/resolvers/mutations/countries/updateCountry.d.ts.map +1 -1
- package/lib/resolvers/mutations/currencies/createCurrency.d.ts +1 -1
- package/lib/resolvers/mutations/currencies/createCurrency.d.ts.map +1 -1
- package/lib/resolvers/mutations/currencies/removeCurrency.d.ts +1 -1
- package/lib/resolvers/mutations/currencies/removeCurrency.d.ts.map +1 -1
- package/lib/resolvers/mutations/currencies/updateCurrency.d.ts +1 -1
- package/lib/resolvers/mutations/currencies/updateCurrency.d.ts.map +1 -1
- package/lib/resolvers/mutations/delivery/createDeliveryProvider.d.ts +1 -1
- package/lib/resolvers/mutations/delivery/createDeliveryProvider.d.ts.map +1 -1
- package/lib/resolvers/mutations/delivery/createDeliveryProvider.js +5 -0
- package/lib/resolvers/mutations/delivery/createDeliveryProvider.js.map +1 -1
- package/lib/resolvers/mutations/delivery/removeDeliveryProvider.d.ts +1 -1
- package/lib/resolvers/mutations/delivery/removeDeliveryProvider.d.ts.map +1 -1
- package/lib/resolvers/mutations/delivery/updateDeliveryProvider.d.ts +1 -1
- package/lib/resolvers/mutations/delivery/updateDeliveryProvider.d.ts.map +1 -1
- package/lib/resolvers/mutations/enrollments/activateEnrollment.d.ts +1 -1
- package/lib/resolvers/mutations/enrollments/activateEnrollment.d.ts.map +1 -1
- package/lib/resolvers/mutations/enrollments/activateEnrollment.js +2 -2
- package/lib/resolvers/mutations/enrollments/activateEnrollment.js.map +1 -1
- package/lib/resolvers/mutations/enrollments/createEnrollment.d.ts +2 -2
- package/lib/resolvers/mutations/enrollments/createEnrollment.d.ts.map +1 -1
- package/lib/resolvers/mutations/enrollments/createEnrollment.js +7 -3
- package/lib/resolvers/mutations/enrollments/createEnrollment.js.map +1 -1
- package/lib/resolvers/mutations/enrollments/terminateEnrollment.d.ts +2 -2
- package/lib/resolvers/mutations/enrollments/terminateEnrollment.d.ts.map +1 -1
- package/lib/resolvers/mutations/enrollments/terminateEnrollment.js +2 -2
- package/lib/resolvers/mutations/enrollments/terminateEnrollment.js.map +1 -1
- package/lib/resolvers/mutations/enrollments/updateEnrollment.d.ts +2 -2
- package/lib/resolvers/mutations/enrollments/updateEnrollment.d.ts.map +1 -1
- package/lib/resolvers/mutations/enrollments/updateEnrollment.js +3 -2
- package/lib/resolvers/mutations/enrollments/updateEnrollment.js.map +1 -1
- package/lib/resolvers/mutations/files/confirmMediaUpload.d.ts +1 -1
- package/lib/resolvers/mutations/files/confirmMediaUpload.d.ts.map +1 -1
- package/lib/resolvers/mutations/files/confirmMediaUpload.js +1 -1
- package/lib/resolvers/mutations/files/confirmMediaUpload.js.map +1 -1
- package/lib/resolvers/mutations/filters/createFilter.d.ts +3 -2
- package/lib/resolvers/mutations/filters/createFilter.d.ts.map +1 -1
- package/lib/resolvers/mutations/filters/createFilter.js +3 -1
- package/lib/resolvers/mutations/filters/createFilter.js.map +1 -1
- package/lib/resolvers/mutations/filters/createFilterOption.d.ts +2 -2
- package/lib/resolvers/mutations/filters/createFilterOption.d.ts.map +1 -1
- package/lib/resolvers/mutations/filters/createFilterOption.js +3 -1
- package/lib/resolvers/mutations/filters/createFilterOption.js.map +1 -1
- package/lib/resolvers/mutations/filters/removeFilter.d.ts +1 -1
- package/lib/resolvers/mutations/filters/removeFilter.d.ts.map +1 -1
- package/lib/resolvers/mutations/filters/removeFilterOption.d.ts +1 -1
- package/lib/resolvers/mutations/filters/removeFilterOption.d.ts.map +1 -1
- package/lib/resolvers/mutations/filters/removeFilterOption.js +3 -1
- package/lib/resolvers/mutations/filters/removeFilterOption.js.map +1 -1
- package/lib/resolvers/mutations/filters/updateFilter.d.ts +1 -1
- package/lib/resolvers/mutations/filters/updateFilter.d.ts.map +1 -1
- package/lib/resolvers/mutations/filters/updateFilter.js +4 -1
- package/lib/resolvers/mutations/filters/updateFilter.js.map +1 -1
- package/lib/resolvers/mutations/filters/updateFilterTexts.d.ts +1 -1
- package/lib/resolvers/mutations/filters/updateFilterTexts.d.ts.map +1 -1
- package/lib/resolvers/mutations/index.d.ts +2 -0
- package/lib/resolvers/mutations/index.d.ts.map +1 -1
- package/lib/resolvers/mutations/index.js +3 -1
- package/lib/resolvers/mutations/index.js.map +1 -1
- package/lib/resolvers/mutations/languages/createLanguage.d.ts +1 -1
- package/lib/resolvers/mutations/languages/createLanguage.d.ts.map +1 -1
- package/lib/resolvers/mutations/languages/removeLanguage.d.ts +1 -1
- package/lib/resolvers/mutations/languages/removeLanguage.d.ts.map +1 -1
- package/lib/resolvers/mutations/languages/updateLanguage.d.ts +1 -1
- package/lib/resolvers/mutations/languages/updateLanguage.d.ts.map +1 -1
- package/lib/resolvers/mutations/orders/addCartDiscount.d.ts +1 -1
- package/lib/resolvers/mutations/orders/addCartDiscount.d.ts.map +1 -1
- package/lib/resolvers/mutations/orders/addCartDiscount.js +9 -4
- package/lib/resolvers/mutations/orders/addCartDiscount.js.map +1 -1
- package/lib/resolvers/mutations/orders/addCartProduct.d.ts +2 -2
- package/lib/resolvers/mutations/orders/addCartProduct.d.ts.map +1 -1
- package/lib/resolvers/mutations/orders/addCartProduct.js +22 -10
- package/lib/resolvers/mutations/orders/addCartProduct.js.map +1 -1
- package/lib/resolvers/mutations/orders/addCartQuotation.d.ts +1 -1
- package/lib/resolvers/mutations/orders/addCartQuotation.d.ts.map +1 -1
- package/lib/resolvers/mutations/orders/addCartQuotation.js +14 -8
- package/lib/resolvers/mutations/orders/addCartQuotation.js.map +1 -1
- package/lib/resolvers/mutations/orders/addMultipleCartProducts.d.ts +2 -2
- package/lib/resolvers/mutations/orders/addMultipleCartProducts.d.ts.map +1 -1
- package/lib/resolvers/mutations/orders/addMultipleCartProducts.js +21 -8
- package/lib/resolvers/mutations/orders/addMultipleCartProducts.js.map +1 -1
- package/lib/resolvers/mutations/orders/checkoutCart.d.ts +2 -2
- package/lib/resolvers/mutations/orders/checkoutCart.d.ts.map +1 -1
- package/lib/resolvers/mutations/orders/checkoutCart.js +5 -4
- package/lib/resolvers/mutations/orders/checkoutCart.js.map +1 -1
- package/lib/resolvers/mutations/orders/confirmOrder.d.ts +2 -2
- package/lib/resolvers/mutations/orders/confirmOrder.d.ts.map +1 -1
- package/lib/resolvers/mutations/orders/confirmOrder.js +2 -2
- package/lib/resolvers/mutations/orders/confirmOrder.js.map +1 -1
- package/lib/resolvers/mutations/orders/createCart.d.ts +2 -2
- package/lib/resolvers/mutations/orders/createCart.d.ts.map +1 -1
- package/lib/resolvers/mutations/orders/createCart.js +6 -1
- package/lib/resolvers/mutations/orders/createCart.js.map +1 -1
- package/lib/resolvers/mutations/orders/deliverOrder.d.ts +1 -1
- package/lib/resolvers/mutations/orders/deliverOrder.d.ts.map +1 -1
- package/lib/resolvers/mutations/orders/deliverOrder.js +2 -2
- package/lib/resolvers/mutations/orders/deliverOrder.js.map +1 -1
- package/lib/resolvers/mutations/orders/emptyCart.d.ts +2 -2
- package/lib/resolvers/mutations/orders/emptyCart.d.ts.map +1 -1
- package/lib/resolvers/mutations/orders/emptyCart.js +2 -2
- package/lib/resolvers/mutations/orders/emptyCart.js.map +1 -1
- package/lib/resolvers/mutations/orders/payOrder.d.ts +1 -1
- package/lib/resolvers/mutations/orders/payOrder.d.ts.map +1 -1
- package/lib/resolvers/mutations/orders/payOrder.js +2 -2
- package/lib/resolvers/mutations/orders/payOrder.js.map +1 -1
- package/lib/resolvers/mutations/orders/rejectOrder.d.ts +2 -2
- package/lib/resolvers/mutations/orders/rejectOrder.d.ts.map +1 -1
- package/lib/resolvers/mutations/orders/rejectOrder.js +2 -2
- package/lib/resolvers/mutations/orders/rejectOrder.js.map +1 -1
- package/lib/resolvers/mutations/orders/removeCartDiscount.d.ts +2 -2
- package/lib/resolvers/mutations/orders/removeCartDiscount.d.ts.map +1 -1
- package/lib/resolvers/mutations/orders/removeCartDiscount.js +16 -4
- package/lib/resolvers/mutations/orders/removeCartDiscount.js.map +1 -1
- package/lib/resolvers/mutations/orders/removeCartItem.d.ts +1 -1
- package/lib/resolvers/mutations/orders/removeCartItem.d.ts.map +1 -1
- package/lib/resolvers/mutations/orders/removeCartItem.js +2 -2
- package/lib/resolvers/mutations/orders/removeCartItem.js.map +1 -1
- package/lib/resolvers/mutations/orders/removeOrder.d.ts +1 -1
- package/lib/resolvers/mutations/orders/removeOrder.d.ts.map +1 -1
- package/lib/resolvers/mutations/orders/setOrderDeliveryProvider.d.ts +2 -2
- package/lib/resolvers/mutations/orders/setOrderDeliveryProvider.d.ts.map +1 -1
- package/lib/resolvers/mutations/orders/setOrderDeliveryProvider.js +3 -3
- package/lib/resolvers/mutations/orders/setOrderDeliveryProvider.js.map +1 -1
- package/lib/resolvers/mutations/orders/setOrderPaymentProvider.d.ts +2 -2
- package/lib/resolvers/mutations/orders/setOrderPaymentProvider.d.ts.map +1 -1
- package/lib/resolvers/mutations/orders/setOrderPaymentProvider.js +3 -3
- package/lib/resolvers/mutations/orders/setOrderPaymentProvider.js.map +1 -1
- package/lib/resolvers/mutations/orders/signPaymentProviderForCheckout.d.ts +1 -1
- package/lib/resolvers/mutations/orders/signPaymentProviderForCheckout.d.ts.map +1 -1
- package/lib/resolvers/mutations/orders/signPaymentProviderForCheckout.js +3 -1
- package/lib/resolvers/mutations/orders/signPaymentProviderForCheckout.js.map +1 -1
- package/lib/resolvers/mutations/orders/updateCart.d.ts +3 -3
- package/lib/resolvers/mutations/orders/updateCart.d.ts.map +1 -1
- package/lib/resolvers/mutations/orders/updateCart.js +4 -4
- package/lib/resolvers/mutations/orders/updateCart.js.map +1 -1
- package/lib/resolvers/mutations/orders/updateCartItem.d.ts +1 -1
- package/lib/resolvers/mutations/orders/updateCartItem.d.ts.map +1 -1
- package/lib/resolvers/mutations/orders/updateCartItem.js +13 -7
- package/lib/resolvers/mutations/orders/updateCartItem.js.map +1 -1
- package/lib/resolvers/mutations/orders/updateOrderDeliveryPickUp.d.ts +1 -1
- package/lib/resolvers/mutations/orders/updateOrderDeliveryPickUp.d.ts.map +1 -1
- package/lib/resolvers/mutations/orders/updateOrderDeliveryPickUp.js +2 -2
- package/lib/resolvers/mutations/orders/updateOrderDeliveryPickUp.js.map +1 -1
- package/lib/resolvers/mutations/orders/updateOrderDeliveryShipping.d.ts +1 -1
- package/lib/resolvers/mutations/orders/updateOrderDeliveryShipping.d.ts.map +1 -1
- package/lib/resolvers/mutations/orders/updateOrderDeliveryShipping.js +2 -2
- package/lib/resolvers/mutations/orders/updateOrderDeliveryShipping.js.map +1 -1
- package/lib/resolvers/mutations/orders/updateOrderPaymentCard.d.ts +1 -1
- package/lib/resolvers/mutations/orders/updateOrderPaymentCard.d.ts.map +1 -1
- package/lib/resolvers/mutations/orders/updateOrderPaymentCard.js +2 -2
- package/lib/resolvers/mutations/orders/updateOrderPaymentCard.js.map +1 -1
- package/lib/resolvers/mutations/orders/updateOrderPaymentGeneric.d.ts +1 -1
- package/lib/resolvers/mutations/orders/updateOrderPaymentGeneric.d.ts.map +1 -1
- package/lib/resolvers/mutations/orders/updateOrderPaymentGeneric.js +2 -2
- package/lib/resolvers/mutations/orders/updateOrderPaymentGeneric.js.map +1 -1
- package/lib/resolvers/mutations/orders/updateOrderPaymentInvoice.d.ts +1 -1
- package/lib/resolvers/mutations/orders/updateOrderPaymentInvoice.d.ts.map +1 -1
- package/lib/resolvers/mutations/orders/updateOrderPaymentInvoice.js +2 -2
- package/lib/resolvers/mutations/orders/updateOrderPaymentInvoice.js.map +1 -1
- package/lib/resolvers/mutations/payment/createPaymentProvider.d.ts +1 -1
- package/lib/resolvers/mutations/payment/createPaymentProvider.d.ts.map +1 -1
- package/lib/resolvers/mutations/payment/createPaymentProvider.js +6 -4
- package/lib/resolvers/mutations/payment/createPaymentProvider.js.map +1 -1
- package/lib/resolvers/mutations/payment/markPaymentCredentialsPreferred.d.ts +1 -1
- package/lib/resolvers/mutations/payment/markPaymentCredentialsPreferred.d.ts.map +1 -1
- package/lib/resolvers/mutations/payment/registerPaymentCredentials.d.ts +1 -1
- package/lib/resolvers/mutations/payment/registerPaymentCredentials.d.ts.map +1 -1
- package/lib/resolvers/mutations/payment/registerPaymentCredentials.js +5 -2
- package/lib/resolvers/mutations/payment/registerPaymentCredentials.js.map +1 -1
- package/lib/resolvers/mutations/payment/removePaymentCredentials.d.ts +1 -1
- package/lib/resolvers/mutations/payment/removePaymentCredentials.d.ts.map +1 -1
- package/lib/resolvers/mutations/payment/removePaymentProvider.d.ts +1 -1
- package/lib/resolvers/mutations/payment/removePaymentProvider.d.ts.map +1 -1
- package/lib/resolvers/mutations/payment/signPaymentProviderForCredentialRegistration.d.ts +1 -1
- package/lib/resolvers/mutations/payment/signPaymentProviderForCredentialRegistration.d.ts.map +1 -1
- package/lib/resolvers/mutations/payment/signPaymentProviderForCredentialRegistration.js +6 -3
- package/lib/resolvers/mutations/payment/signPaymentProviderForCredentialRegistration.js.map +1 -1
- package/lib/resolvers/mutations/payment/updatePaymentProvider.d.ts +1 -1
- package/lib/resolvers/mutations/payment/updatePaymentProvider.d.ts.map +1 -1
- package/lib/resolvers/mutations/products/addProductAssignment.d.ts +1 -1
- package/lib/resolvers/mutations/products/addProductAssignment.d.ts.map +1 -1
- package/lib/resolvers/mutations/products/addProductReviewVote.d.ts +1 -1
- package/lib/resolvers/mutations/products/addProductReviewVote.d.ts.map +1 -1
- package/lib/resolvers/mutations/products/createProduct.d.ts +1 -1
- package/lib/resolvers/mutations/products/createProduct.d.ts.map +1 -1
- package/lib/resolvers/mutations/products/createProductBundleItem.d.ts +1 -1
- package/lib/resolvers/mutations/products/createProductBundleItem.d.ts.map +1 -1
- package/lib/resolvers/mutations/products/createProductReview.d.ts +1 -1
- package/lib/resolvers/mutations/products/createProductReview.d.ts.map +1 -1
- package/lib/resolvers/mutations/products/createProductVariation.d.ts +6 -1
- package/lib/resolvers/mutations/products/createProductVariation.d.ts.map +1 -1
- package/lib/resolvers/mutations/products/createProductVariation.js.map +1 -1
- package/lib/resolvers/mutations/products/createProductVariationOption.d.ts +2 -1
- package/lib/resolvers/mutations/products/createProductVariationOption.d.ts.map +1 -1
- package/lib/resolvers/mutations/products/createProductVariationOption.js.map +1 -1
- package/lib/resolvers/mutations/products/deleteUserProductReviews.d.ts +5 -0
- package/lib/resolvers/mutations/products/deleteUserProductReviews.d.ts.map +1 -0
- package/lib/resolvers/mutations/products/deleteUserProductReviews.js +15 -0
- package/lib/resolvers/mutations/products/deleteUserProductReviews.js.map +1 -0
- package/lib/resolvers/mutations/products/prepareProductMediaUpload.d.ts +1 -1
- package/lib/resolvers/mutations/products/prepareProductMediaUpload.d.ts.map +1 -1
- package/lib/resolvers/mutations/products/prepareProductMediaUpload.js +1 -1
- package/lib/resolvers/mutations/products/prepareProductMediaUpload.js.map +1 -1
- package/lib/resolvers/mutations/products/publishProduct.d.ts +1 -1
- package/lib/resolvers/mutations/products/publishProduct.d.ts.map +1 -1
- package/lib/resolvers/mutations/products/removeBundleItem.d.ts +1 -1
- package/lib/resolvers/mutations/products/removeBundleItem.d.ts.map +1 -1
- package/lib/resolvers/mutations/products/removeProduct.d.ts +1 -1
- package/lib/resolvers/mutations/products/removeProduct.d.ts.map +1 -1
- package/lib/resolvers/mutations/products/removeProduct.js +1 -1
- package/lib/resolvers/mutations/products/removeProduct.js.map +1 -1
- package/lib/resolvers/mutations/products/removeProductAssignment.d.ts +1 -1
- package/lib/resolvers/mutations/products/removeProductAssignment.d.ts.map +1 -1
- package/lib/resolvers/mutations/products/removeProductMedia.d.ts +1 -1
- package/lib/resolvers/mutations/products/removeProductMedia.d.ts.map +1 -1
- package/lib/resolvers/mutations/products/removeProductReview.d.ts +1 -1
- package/lib/resolvers/mutations/products/removeProductReview.d.ts.map +1 -1
- package/lib/resolvers/mutations/products/removeProductReviewVote.d.ts +1 -1
- package/lib/resolvers/mutations/products/removeProductReviewVote.d.ts.map +1 -1
- package/lib/resolvers/mutations/products/removeProductVariation.d.ts +1 -1
- package/lib/resolvers/mutations/products/removeProductVariation.d.ts.map +1 -1
- package/lib/resolvers/mutations/products/removeProductVariationOption.d.ts +1 -1
- package/lib/resolvers/mutations/products/removeProductVariationOption.d.ts.map +1 -1
- package/lib/resolvers/mutations/products/reorderProductMedia.d.ts +1 -1
- package/lib/resolvers/mutations/products/reorderProductMedia.d.ts.map +1 -1
- package/lib/resolvers/mutations/products/unpublishProduct.d.ts +1 -1
- package/lib/resolvers/mutations/products/unpublishProduct.d.ts.map +1 -1
- package/lib/resolvers/mutations/products/updateProduct.d.ts +1 -1
- package/lib/resolvers/mutations/products/updateProduct.d.ts.map +1 -1
- package/lib/resolvers/mutations/products/updateProductCommerce.d.ts +1 -1
- package/lib/resolvers/mutations/products/updateProductCommerce.d.ts.map +1 -1
- package/lib/resolvers/mutations/products/updateProductMediaTexts.d.ts +1 -1
- package/lib/resolvers/mutations/products/updateProductMediaTexts.d.ts.map +1 -1
- package/lib/resolvers/mutations/products/updateProductPlan.d.ts +1 -1
- package/lib/resolvers/mutations/products/updateProductPlan.d.ts.map +1 -1
- package/lib/resolvers/mutations/products/updateProductReview.d.ts +1 -1
- package/lib/resolvers/mutations/products/updateProductReview.d.ts.map +1 -1
- package/lib/resolvers/mutations/products/updateProductSupply.d.ts +1 -1
- package/lib/resolvers/mutations/products/updateProductSupply.d.ts.map +1 -1
- package/lib/resolvers/mutations/products/updateProductTexts.d.ts +1 -1
- package/lib/resolvers/mutations/products/updateProductTexts.d.ts.map +1 -1
- package/lib/resolvers/mutations/products/updateProductTokenization.d.ts +1 -1
- package/lib/resolvers/mutations/products/updateProductTokenization.d.ts.map +1 -1
- package/lib/resolvers/mutations/products/updateProductVariationTexts.d.ts +1 -1
- package/lib/resolvers/mutations/products/updateProductVariationTexts.d.ts.map +1 -1
- package/lib/resolvers/mutations/products/updateProductWarehousing.d.ts +1 -1
- package/lib/resolvers/mutations/products/updateProductWarehousing.d.ts.map +1 -1
- package/lib/resolvers/mutations/quotations/makeQuotationProposal.d.ts +2 -2
- package/lib/resolvers/mutations/quotations/makeQuotationProposal.d.ts.map +1 -1
- package/lib/resolvers/mutations/quotations/makeQuotationProposal.js +2 -2
- package/lib/resolvers/mutations/quotations/makeQuotationProposal.js.map +1 -1
- package/lib/resolvers/mutations/quotations/rejectQuotation.d.ts +2 -2
- package/lib/resolvers/mutations/quotations/rejectQuotation.d.ts.map +1 -1
- package/lib/resolvers/mutations/quotations/rejectQuotation.js +2 -2
- package/lib/resolvers/mutations/quotations/rejectQuotation.js.map +1 -1
- package/lib/resolvers/mutations/quotations/requestQuotation.d.ts +1 -1
- package/lib/resolvers/mutations/quotations/requestQuotation.d.ts.map +1 -1
- package/lib/resolvers/mutations/quotations/requestQuotation.js +5 -3
- package/lib/resolvers/mutations/quotations/requestQuotation.js.map +1 -1
- package/lib/resolvers/mutations/quotations/verifyQuotation.d.ts +2 -2
- package/lib/resolvers/mutations/quotations/verifyQuotation.d.ts.map +1 -1
- package/lib/resolvers/mutations/quotations/verifyQuotation.js +2 -2
- package/lib/resolvers/mutations/quotations/verifyQuotation.js.map +1 -1
- package/lib/resolvers/mutations/users/addPushSubscription.d.ts +1 -1
- package/lib/resolvers/mutations/users/addPushSubscription.d.ts.map +1 -1
- package/lib/resolvers/mutations/users/deleteUser.d.ts +6 -0
- package/lib/resolvers/mutations/users/deleteUser.d.ts.map +1 -0
- package/lib/resolvers/mutations/users/deleteUser.js +15 -0
- package/lib/resolvers/mutations/users/deleteUser.js.map +1 -0
- package/lib/resolvers/mutations/users/deleteUserProductReviews.d.ts +5 -0
- package/lib/resolvers/mutations/users/deleteUserProductReviews.d.ts.map +1 -0
- package/lib/resolvers/mutations/users/deleteUserProductReviews.js +15 -0
- package/lib/resolvers/mutations/users/deleteUserProductReviews.js.map +1 -0
- package/lib/resolvers/mutations/users/heartbeat.d.ts +1 -1
- package/lib/resolvers/mutations/users/heartbeat.d.ts.map +1 -1
- package/lib/resolvers/mutations/users/prepareUserAvatarUpload.d.ts +1 -1
- package/lib/resolvers/mutations/users/prepareUserAvatarUpload.d.ts.map +1 -1
- package/lib/resolvers/mutations/users/prepareUserAvatarUpload.js +1 -1
- package/lib/resolvers/mutations/users/prepareUserAvatarUpload.js.map +1 -1
- package/lib/resolvers/mutations/users/removePushSubscription.d.ts +1 -1
- package/lib/resolvers/mutations/users/removePushSubscription.d.ts.map +1 -1
- package/lib/resolvers/mutations/users/removeUser.d.ts +3 -2
- package/lib/resolvers/mutations/users/removeUser.d.ts.map +1 -1
- package/lib/resolvers/mutations/users/removeUser.js +8 -4
- package/lib/resolvers/mutations/users/removeUser.js.map +1 -1
- package/lib/resolvers/mutations/users/removeUserProductReviews.d.ts +5 -0
- package/lib/resolvers/mutations/users/removeUserProductReviews.d.ts.map +1 -0
- package/lib/resolvers/mutations/users/removeUserProductReviews.js +15 -0
- package/lib/resolvers/mutations/users/removeUserProductReviews.js.map +1 -0
- package/lib/resolvers/mutations/users/setRoles.d.ts +1 -1
- package/lib/resolvers/mutations/users/setRoles.d.ts.map +1 -1
- package/lib/resolvers/mutations/users/setUserTags.d.ts +1 -1
- package/lib/resolvers/mutations/users/setUserTags.d.ts.map +1 -1
- package/lib/resolvers/mutations/users/updateUserProfile.d.ts +1 -1
- package/lib/resolvers/mutations/users/updateUserProfile.d.ts.map +1 -1
- package/lib/resolvers/mutations/users/updateUserProfile.js +1 -1
- package/lib/resolvers/mutations/users/updateUserProfile.js.map +1 -1
- package/lib/resolvers/mutations/utils/getOrderCart.d.ts +2 -2
- package/lib/resolvers/mutations/utils/getOrderCart.d.ts.map +1 -1
- package/lib/resolvers/mutations/utils/getOrderCart.js +5 -1
- package/lib/resolvers/mutations/utils/getOrderCart.js.map +1 -1
- package/lib/resolvers/mutations/warehousing/createWarehousingProvider.d.ts +2 -2
- package/lib/resolvers/mutations/warehousing/createWarehousingProvider.d.ts.map +1 -1
- package/lib/resolvers/mutations/warehousing/createWarehousingProvider.js +11 -6
- package/lib/resolvers/mutations/warehousing/createWarehousingProvider.js.map +1 -1
- package/lib/resolvers/mutations/warehousing/exportToken.d.ts +1 -1
- package/lib/resolvers/mutations/warehousing/exportToken.d.ts.map +1 -1
- package/lib/resolvers/mutations/warehousing/invalidateToken.d.ts +1 -1
- package/lib/resolvers/mutations/warehousing/invalidateToken.d.ts.map +1 -1
- package/lib/resolvers/mutations/warehousing/invalidateToken.js +8 -3
- package/lib/resolvers/mutations/warehousing/invalidateToken.js.map +1 -1
- package/lib/resolvers/mutations/warehousing/removeWarehousingProvider.d.ts +1 -1
- package/lib/resolvers/mutations/warehousing/removeWarehousingProvider.d.ts.map +1 -1
- package/lib/resolvers/mutations/warehousing/updateWarehousingProvider.d.ts +2 -2
- package/lib/resolvers/mutations/warehousing/updateWarehousingProvider.d.ts.map +1 -1
- package/lib/resolvers/mutations/warehousing/updateWarehousingProvider.js +1 -2
- package/lib/resolvers/mutations/warehousing/updateWarehousingProvider.js.map +1 -1
- package/lib/resolvers/mutations/worker/addWork.d.ts +3 -3
- package/lib/resolvers/mutations/worker/addWork.d.ts.map +1 -1
- package/lib/resolvers/mutations/worker/addWork.js.map +1 -1
- package/lib/resolvers/mutations/worker/allocateWork.d.ts +1 -1
- package/lib/resolvers/mutations/worker/allocateWork.d.ts.map +1 -1
- package/lib/resolvers/mutations/worker/finishWork.d.ts +1 -1
- package/lib/resolvers/mutations/worker/finishWork.d.ts.map +1 -1
- package/lib/resolvers/mutations/worker/processNextWork.d.ts +1 -1
- package/lib/resolvers/mutations/worker/processNextWork.d.ts.map +1 -1
- package/lib/resolvers/mutations/worker/processNextWork.js +2 -1
- package/lib/resolvers/mutations/worker/processNextWork.js.map +1 -1
- package/lib/resolvers/mutations/worker/removeWork.d.ts +1 -1
- package/lib/resolvers/mutations/worker/removeWork.d.ts.map +1 -1
- package/lib/resolvers/queries/assortments/assortment.d.ts +1 -1
- package/lib/resolvers/queries/assortments/assortment.d.ts.map +1 -1
- package/lib/resolvers/queries/assortments/assortments.d.ts +1 -1
- package/lib/resolvers/queries/assortments/assortments.d.ts.map +1 -1
- package/lib/resolvers/queries/assortments/assortmentsCount.d.ts +1 -1
- package/lib/resolvers/queries/assortments/assortmentsCount.d.ts.map +1 -1
- package/lib/resolvers/queries/assortments/translatedAssortmentMediaTexts.d.ts +1 -1
- package/lib/resolvers/queries/assortments/translatedAssortmentMediaTexts.d.ts.map +1 -1
- package/lib/resolvers/queries/assortments/translatedAssortmentTexts.d.ts +1 -1
- package/lib/resolvers/queries/assortments/translatedAssortmentTexts.d.ts.map +1 -1
- package/lib/resolvers/queries/countries/countries.d.ts +1 -1
- package/lib/resolvers/queries/countries/countries.d.ts.map +1 -1
- package/lib/resolvers/queries/countries/countriesCount.d.ts +1 -1
- package/lib/resolvers/queries/countries/countriesCount.d.ts.map +1 -1
- package/lib/resolvers/queries/countries/country.d.ts +1 -1
- package/lib/resolvers/queries/countries/country.d.ts.map +1 -1
- package/lib/resolvers/queries/currencies/currencies.d.ts +1 -1
- package/lib/resolvers/queries/currencies/currencies.d.ts.map +1 -1
- package/lib/resolvers/queries/currencies/currenciesCount.d.ts +1 -1
- package/lib/resolvers/queries/currencies/currenciesCount.d.ts.map +1 -1
- package/lib/resolvers/queries/currencies/currency.d.ts +1 -1
- package/lib/resolvers/queries/currencies/currency.d.ts.map +1 -1
- package/lib/resolvers/queries/delivery/deliveryInterfaces.d.ts +6 -2
- package/lib/resolvers/queries/delivery/deliveryInterfaces.d.ts.map +1 -1
- package/lib/resolvers/queries/delivery/deliveryInterfaces.js +9 -2
- package/lib/resolvers/queries/delivery/deliveryInterfaces.js.map +1 -1
- package/lib/resolvers/queries/delivery/deliveryProvider.d.ts +1 -1
- package/lib/resolvers/queries/delivery/deliveryProvider.d.ts.map +1 -1
- package/lib/resolvers/queries/delivery/deliveryProviders.d.ts +5 -3
- package/lib/resolvers/queries/delivery/deliveryProviders.d.ts.map +1 -1
- package/lib/resolvers/queries/delivery/deliveryProviders.js.map +1 -1
- package/lib/resolvers/queries/delivery/deliveryProvidersCount.d.ts +5 -3
- package/lib/resolvers/queries/delivery/deliveryProvidersCount.d.ts.map +1 -1
- package/lib/resolvers/queries/delivery/deliveryProvidersCount.js.map +1 -1
- package/lib/resolvers/queries/enrollments/enrollment.d.ts +1 -1
- package/lib/resolvers/queries/enrollments/enrollment.d.ts.map +1 -1
- package/lib/resolvers/queries/enrollments/enrollments.d.ts +1 -1
- package/lib/resolvers/queries/enrollments/enrollments.d.ts.map +1 -1
- package/lib/resolvers/queries/enrollments/enrollmentsCount.d.ts +1 -1
- package/lib/resolvers/queries/enrollments/enrollmentsCount.d.ts.map +1 -1
- package/lib/resolvers/queries/events/event.d.ts +1 -1
- package/lib/resolvers/queries/events/event.d.ts.map +1 -1
- package/lib/resolvers/queries/events/eventStatistics.d.ts +3 -3
- package/lib/resolvers/queries/events/eventStatistics.d.ts.map +1 -1
- package/lib/resolvers/queries/events/eventStatistics.js +2 -1
- package/lib/resolvers/queries/events/eventStatistics.js.map +1 -1
- package/lib/resolvers/queries/events/events.d.ts +1 -1
- package/lib/resolvers/queries/events/events.d.ts.map +1 -1
- package/lib/resolvers/queries/events/eventsCounts.d.ts +1 -1
- package/lib/resolvers/queries/events/eventsCounts.d.ts.map +1 -1
- package/lib/resolvers/queries/filters/filter.d.ts +1 -1
- package/lib/resolvers/queries/filters/filter.d.ts.map +1 -1
- package/lib/resolvers/queries/filters/filters.d.ts +1 -1
- package/lib/resolvers/queries/filters/filters.d.ts.map +1 -1
- package/lib/resolvers/queries/filters/filtersCount.d.ts +1 -1
- package/lib/resolvers/queries/filters/filtersCount.d.ts.map +1 -1
- package/lib/resolvers/queries/filters/searchAssortments.d.ts +10 -2
- package/lib/resolvers/queries/filters/searchAssortments.d.ts.map +1 -1
- package/lib/resolvers/queries/filters/searchAssortments.js +3 -3
- package/lib/resolvers/queries/filters/searchAssortments.js.map +1 -1
- package/lib/resolvers/queries/filters/searchProducts.d.ts +7 -2
- package/lib/resolvers/queries/filters/searchProducts.d.ts.map +1 -1
- package/lib/resolvers/queries/filters/searchProducts.js +3 -3
- package/lib/resolvers/queries/filters/searchProducts.js.map +1 -1
- package/lib/resolvers/queries/filters/translatedFilterTexts.d.ts +1 -1
- package/lib/resolvers/queries/filters/translatedFilterTexts.d.ts.map +1 -1
- package/lib/resolvers/queries/languages/language.d.ts +1 -1
- package/lib/resolvers/queries/languages/language.d.ts.map +1 -1
- package/lib/resolvers/queries/languages/languages.d.ts +1 -1
- package/lib/resolvers/queries/languages/languages.d.ts.map +1 -1
- package/lib/resolvers/queries/languages/languagesCount.d.ts +1 -1
- package/lib/resolvers/queries/languages/languagesCount.d.ts.map +1 -1
- package/lib/resolvers/queries/orders/order.d.ts +1 -1
- package/lib/resolvers/queries/orders/order.d.ts.map +1 -1
- package/lib/resolvers/queries/orders/orderStatistics.d.ts +3 -3
- package/lib/resolvers/queries/orders/orderStatistics.d.ts.map +1 -1
- package/lib/resolvers/queries/orders/orderStatistics.js +2 -1
- package/lib/resolvers/queries/orders/orderStatistics.js.map +1 -1
- package/lib/resolvers/queries/orders/orders.d.ts +1 -1
- package/lib/resolvers/queries/orders/orders.d.ts.map +1 -1
- package/lib/resolvers/queries/orders/ordersCount.d.ts +1 -1
- package/lib/resolvers/queries/orders/ordersCount.d.ts.map +1 -1
- package/lib/resolvers/queries/payment/paymentInterfaces.d.ts +6 -2
- package/lib/resolvers/queries/payment/paymentInterfaces.d.ts.map +1 -1
- package/lib/resolvers/queries/payment/paymentInterfaces.js +9 -2
- package/lib/resolvers/queries/payment/paymentInterfaces.js.map +1 -1
- package/lib/resolvers/queries/payment/paymentProvider.d.ts +1 -1
- package/lib/resolvers/queries/payment/paymentProvider.d.ts.map +1 -1
- package/lib/resolvers/queries/payment/paymentProviders.d.ts +1 -1
- package/lib/resolvers/queries/payment/paymentProviders.d.ts.map +1 -1
- package/lib/resolvers/queries/payment/paymentProvidersCount.d.ts +1 -1
- package/lib/resolvers/queries/payment/paymentProvidersCount.d.ts.map +1 -1
- package/lib/resolvers/queries/products/product.d.ts +1 -1
- package/lib/resolvers/queries/products/product.d.ts.map +1 -1
- package/lib/resolvers/queries/products/productCatalogPrices.d.ts +1 -1
- package/lib/resolvers/queries/products/productCatalogPrices.d.ts.map +1 -1
- package/lib/resolvers/queries/products/productReview.d.ts +1 -1
- package/lib/resolvers/queries/products/productReview.d.ts.map +1 -1
- package/lib/resolvers/queries/products/productReviews.d.ts +1 -1
- package/lib/resolvers/queries/products/productReviews.d.ts.map +1 -1
- package/lib/resolvers/queries/products/productReviewsCount.d.ts +1 -1
- package/lib/resolvers/queries/products/productReviewsCount.d.ts.map +1 -1
- package/lib/resolvers/queries/products/products.d.ts +1 -1
- package/lib/resolvers/queries/products/products.d.ts.map +1 -1
- package/lib/resolvers/queries/products/productsCount.d.ts +1 -1
- package/lib/resolvers/queries/products/productsCount.d.ts.map +1 -1
- package/lib/resolvers/queries/products/translatedProductMediaTexts.d.ts +1 -1
- package/lib/resolvers/queries/products/translatedProductMediaTexts.d.ts.map +1 -1
- package/lib/resolvers/queries/products/translatedProductTexts.d.ts +1 -1
- package/lib/resolvers/queries/products/translatedProductTexts.d.ts.map +1 -1
- package/lib/resolvers/queries/products/translatedProductVariationTexts.d.ts +1 -1
- package/lib/resolvers/queries/products/translatedProductVariationTexts.d.ts.map +1 -1
- package/lib/resolvers/queries/quotations/quotation.d.ts +1 -1
- package/lib/resolvers/queries/quotations/quotation.d.ts.map +1 -1
- package/lib/resolvers/queries/quotations/quotations.d.ts +1 -1
- package/lib/resolvers/queries/quotations/quotations.d.ts.map +1 -1
- package/lib/resolvers/queries/quotations/quotationsCount.d.ts +1 -1
- package/lib/resolvers/queries/quotations/quotationsCount.d.ts.map +1 -1
- package/lib/resolvers/queries/shopInfo.d.ts +1 -1
- package/lib/resolvers/queries/shopInfo.d.ts.map +1 -1
- package/lib/resolvers/queries/users/me.d.ts +1 -1
- package/lib/resolvers/queries/users/me.d.ts.map +1 -1
- package/lib/resolvers/queries/users/user.d.ts +1 -1
- package/lib/resolvers/queries/users/user.d.ts.map +1 -1
- package/lib/resolvers/queries/users/users.d.ts +5 -2
- package/lib/resolvers/queries/users/users.d.ts.map +1 -1
- package/lib/resolvers/queries/users/users.js +1 -0
- package/lib/resolvers/queries/users/users.js.map +1 -1
- package/lib/resolvers/queries/users/usersCount.d.ts +1 -1
- package/lib/resolvers/queries/users/usersCount.d.ts.map +1 -1
- package/lib/resolvers/queries/users/validateResetPasswordToken.d.ts +1 -1
- package/lib/resolvers/queries/users/validateResetPasswordToken.d.ts.map +1 -1
- package/lib/resolvers/queries/users/validateVerifyEmailToken.d.ts +1 -1
- package/lib/resolvers/queries/users/validateVerifyEmailToken.d.ts.map +1 -1
- package/lib/resolvers/queries/warehousing/token.d.ts +1 -1
- package/lib/resolvers/queries/warehousing/token.d.ts.map +1 -1
- package/lib/resolvers/queries/warehousing/tokens.d.ts +1 -1
- package/lib/resolvers/queries/warehousing/tokens.d.ts.map +1 -1
- package/lib/resolvers/queries/warehousing/warehousingInterfaces.d.ts +7 -3
- package/lib/resolvers/queries/warehousing/warehousingInterfaces.d.ts.map +1 -1
- package/lib/resolvers/queries/warehousing/warehousingInterfaces.js +10 -3
- package/lib/resolvers/queries/warehousing/warehousingInterfaces.js.map +1 -1
- package/lib/resolvers/queries/warehousing/warehousingProvider.d.ts +1 -1
- package/lib/resolvers/queries/warehousing/warehousingProvider.d.ts.map +1 -1
- package/lib/resolvers/queries/warehousing/warehousingProviders.d.ts +5 -3
- package/lib/resolvers/queries/warehousing/warehousingProviders.d.ts.map +1 -1
- package/lib/resolvers/queries/warehousing/warehousingProviders.js.map +1 -1
- package/lib/resolvers/queries/warehousing/warehousingProvidersCount.d.ts +5 -3
- package/lib/resolvers/queries/warehousing/warehousingProvidersCount.d.ts.map +1 -1
- package/lib/resolvers/queries/warehousing/warehousingProvidersCount.js.map +1 -1
- package/lib/resolvers/queries/worker/activeWorkTypes.d.ts +1 -1
- package/lib/resolvers/queries/worker/activeWorkTypes.d.ts.map +1 -1
- package/lib/resolvers/queries/worker/activeWorkTypes.js +6 -1
- package/lib/resolvers/queries/worker/activeWorkTypes.js.map +1 -1
- package/lib/resolvers/queries/worker/work.d.ts +1 -1
- package/lib/resolvers/queries/worker/work.d.ts.map +1 -1
- package/lib/resolvers/queries/worker/workQueue.d.ts +1 -1
- package/lib/resolvers/queries/worker/workQueue.d.ts.map +1 -1
- package/lib/resolvers/queries/worker/workQueueCount.d.ts +2 -2
- package/lib/resolvers/queries/worker/workQueueCount.d.ts.map +1 -1
- package/lib/resolvers/queries/worker/workStatistics.d.ts +3 -3
- package/lib/resolvers/queries/worker/workStatistics.d.ts.map +1 -1
- package/lib/resolvers/queries/worker/workStatistics.js +2 -1
- package/lib/resolvers/queries/worker/workStatistics.js.map +1 -1
- package/lib/resolvers/type/assortment/assortment-filter-types.d.ts +1 -1
- package/lib/resolvers/type/assortment/assortment-filter-types.d.ts.map +1 -1
- package/lib/resolvers/type/assortment/assortment-link-types.d.ts +1 -1
- package/lib/resolvers/type/assortment/assortment-link-types.d.ts.map +1 -1
- package/lib/resolvers/type/assortment/assortment-media-types.d.ts +1 -1
- package/lib/resolvers/type/assortment/assortment-media-types.d.ts.map +1 -1
- package/lib/resolvers/type/assortment/assortment-path-link-types.d.ts +1 -1
- package/lib/resolvers/type/assortment/assortment-path-link-types.d.ts.map +1 -1
- package/lib/resolvers/type/assortment/assortment-product-types.d.ts +1 -1
- package/lib/resolvers/type/assortment/assortment-product-types.d.ts.map +1 -1
- package/lib/resolvers/type/assortment/assortment-types.d.ts +27 -26
- package/lib/resolvers/type/assortment/assortment-types.d.ts.map +1 -1
- package/lib/resolvers/type/assortment/assortment-types.js +14 -11
- package/lib/resolvers/type/assortment/assortment-types.js.map +1 -1
- package/lib/resolvers/type/bookmark-types.d.ts +4 -4
- package/lib/resolvers/type/bookmark-types.d.ts.map +1 -1
- package/lib/resolvers/type/country-types.d.ts +1 -1
- package/lib/resolvers/type/country-types.d.ts.map +1 -1
- package/lib/resolvers/type/delivery-provider-types.d.ts +3 -2
- package/lib/resolvers/type/delivery-provider-types.d.ts.map +1 -1
- package/lib/resolvers/type/delivery-provider-types.js +20 -19
- package/lib/resolvers/type/delivery-provider-types.js.map +1 -1
- package/lib/resolvers/type/dispatch-types.d.ts +1 -1
- package/lib/resolvers/type/dispatch-types.d.ts.map +1 -1
- package/lib/resolvers/type/dispatch-types.js +3 -6
- package/lib/resolvers/type/dispatch-types.js.map +1 -1
- package/lib/resolvers/type/enrollment/enrollment-delivery-types.d.ts +1 -1
- package/lib/resolvers/type/enrollment/enrollment-delivery-types.d.ts.map +1 -1
- package/lib/resolvers/type/enrollment/enrollment-payment-types.d.ts +1 -1
- package/lib/resolvers/type/enrollment/enrollment-payment-types.d.ts.map +1 -1
- package/lib/resolvers/type/enrollment/enrollment-period-types.d.ts +1 -1
- package/lib/resolvers/type/enrollment/enrollment-period-types.d.ts.map +1 -1
- package/lib/resolvers/type/enrollment/enrollment-plan-tyes.d.ts +1 -1
- package/lib/resolvers/type/enrollment/enrollment-plan-tyes.d.ts.map +1 -1
- package/lib/resolvers/type/enrollment/enrollment-types.d.ts +1 -1
- package/lib/resolvers/type/enrollment/enrollment-types.d.ts.map +1 -1
- package/lib/resolvers/type/event-types.d.ts +2 -2
- package/lib/resolvers/type/event-types.d.ts.map +1 -1
- package/lib/resolvers/type/filter/filter-option-types.d.ts +1 -1
- package/lib/resolvers/type/filter/filter-option-types.d.ts.map +1 -1
- package/lib/resolvers/type/filter/filter-types.d.ts +1 -1
- package/lib/resolvers/type/filter/filter-types.d.ts.map +1 -1
- package/lib/resolvers/type/filter/loaded-filter-option-types.d.ts +11 -1
- package/lib/resolvers/type/filter/loaded-filter-option-types.d.ts.map +1 -1
- package/lib/resolvers/type/filter/loaded-filter-option-types.js +15 -1
- package/lib/resolvers/type/filter/loaded-filter-option-types.js.map +1 -1
- package/lib/resolvers/type/filter/loaded-filter-types.d.ts +24 -1
- package/lib/resolvers/type/filter/loaded-filter-types.d.ts.map +1 -1
- package/lib/resolvers/type/filter/loaded-filter-types.js +35 -1
- package/lib/resolvers/type/filter/loaded-filter-types.js.map +1 -1
- package/lib/resolvers/type/index.d.ts +363 -121
- package/lib/resolvers/type/index.d.ts.map +1 -1
- package/lib/resolvers/type/index.js +3 -1
- package/lib/resolvers/type/index.js.map +1 -1
- package/lib/resolvers/type/language-types.d.ts +1 -1
- package/lib/resolvers/type/language-types.d.ts.map +1 -1
- package/lib/resolvers/type/media-types.d.ts +2 -2
- package/lib/resolvers/type/media-types.d.ts.map +1 -1
- package/lib/resolvers/type/media-types.js +17 -2
- package/lib/resolvers/type/media-types.js.map +1 -1
- package/lib/resolvers/type/order/order-delivery-discount-types.d.ts +11 -10
- package/lib/resolvers/type/order/order-delivery-discount-types.d.ts.map +1 -1
- package/lib/resolvers/type/order/order-delivery-discount-types.js +3 -6
- package/lib/resolvers/type/order/order-delivery-discount-types.js.map +1 -1
- package/lib/resolvers/type/order/order-delivery-pickup-types.d.ts +1 -1
- package/lib/resolvers/type/order/order-delivery-pickup-types.d.ts.map +1 -1
- package/lib/resolvers/type/order/order-delivery-pickup-types.js +14 -7
- package/lib/resolvers/type/order/order-delivery-pickup-types.js.map +1 -1
- package/lib/resolvers/type/order/order-delivery-shipping-types.d.ts +2 -2
- package/lib/resolvers/type/order/order-delivery-shipping-types.d.ts.map +1 -1
- package/lib/resolvers/type/order/order-delivery-shipping-types.js +7 -3
- package/lib/resolvers/type/order/order-delivery-shipping-types.js.map +1 -1
- package/lib/resolvers/type/order/order-delivery-types.d.ts +1 -1
- package/lib/resolvers/type/order/order-delivery-types.d.ts.map +1 -1
- package/lib/resolvers/type/order/order-discount-types.d.ts +5 -3
- package/lib/resolvers/type/order/order-discount-types.d.ts.map +1 -1
- package/lib/resolvers/type/order/order-discount-types.js +3 -3
- package/lib/resolvers/type/order/order-discount-types.js.map +1 -1
- package/lib/resolvers/type/order/order-discountable-types.d.ts +3 -6
- package/lib/resolvers/type/order/order-discountable-types.d.ts.map +1 -1
- package/lib/resolvers/type/order/order-discountable-types.js.map +1 -1
- package/lib/resolvers/type/order/order-global-discount-types.d.ts +20 -14
- package/lib/resolvers/type/order/order-global-discount-types.d.ts.map +1 -1
- package/lib/resolvers/type/order/order-global-discount-types.js +3 -6
- package/lib/resolvers/type/order/order-global-discount-types.js.map +1 -1
- package/lib/resolvers/type/order/order-item-discount-types.d.ts +10 -11
- package/lib/resolvers/type/order/order-item-discount-types.d.ts.map +1 -1
- package/lib/resolvers/type/order/order-item-discount-types.js +3 -6
- package/lib/resolvers/type/order/order-item-discount-types.js.map +1 -1
- package/lib/resolvers/type/order/order-item-types.d.ts +4 -4
- package/lib/resolvers/type/order/order-item-types.d.ts.map +1 -1
- package/lib/resolvers/type/order/order-item-types.js +18 -20
- package/lib/resolvers/type/order/order-item-types.js.map +1 -1
- package/lib/resolvers/type/order/order-payment-card-types.d.ts +1 -1
- package/lib/resolvers/type/order/order-payment-card-types.d.ts.map +1 -1
- package/lib/resolvers/type/order/order-payment-card-types.js +7 -3
- package/lib/resolvers/type/order/order-payment-card-types.js.map +1 -1
- package/lib/resolvers/type/order/order-payment-discount-types.d.ts +20 -14
- package/lib/resolvers/type/order/order-payment-discount-types.d.ts.map +1 -1
- package/lib/resolvers/type/order/order-payment-discount-types.js +15 -12
- package/lib/resolvers/type/order/order-payment-discount-types.js.map +1 -1
- package/lib/resolvers/type/order/order-payment-generic-types.d.ts +1 -1
- package/lib/resolvers/type/order/order-payment-generic-types.d.ts.map +1 -1
- package/lib/resolvers/type/order/order-payment-generic-types.js +7 -3
- package/lib/resolvers/type/order/order-payment-generic-types.js.map +1 -1
- package/lib/resolvers/type/order/order-payment-invoice-types.d.ts +1 -1
- package/lib/resolvers/type/order/order-payment-invoice-types.d.ts.map +1 -1
- package/lib/resolvers/type/order/order-payment-invoice-types.js +7 -3
- package/lib/resolvers/type/order/order-payment-invoice-types.js.map +1 -1
- package/lib/resolvers/type/order/order-payment-types.d.ts +1 -1
- package/lib/resolvers/type/order/order-payment-types.d.ts.map +1 -1
- package/lib/resolvers/type/order/order-types.d.ts +4 -8
- package/lib/resolvers/type/order/order-types.d.ts.map +1 -1
- package/lib/resolvers/type/order/order-types.js +14 -13
- package/lib/resolvers/type/order/order-types.js.map +1 -1
- package/lib/resolvers/type/payment/payment-credentials-types.d.ts +1 -1
- package/lib/resolvers/type/payment/payment-credentials-types.d.ts.map +1 -1
- package/lib/resolvers/type/payment/payment-credentials-types.js +8 -3
- package/lib/resolvers/type/payment/payment-credentials-types.js.map +1 -1
- package/lib/resolvers/type/payment/payment-provider-types.d.ts +13 -14
- package/lib/resolvers/type/payment/payment-provider-types.d.ts.map +1 -1
- package/lib/resolvers/type/payment/payment-provider-types.js +22 -21
- package/lib/resolvers/type/payment/payment-provider-types.js.map +1 -1
- package/lib/resolvers/type/product/product-assortment-path-types.d.ts +1 -1
- package/lib/resolvers/type/product/product-assortment-path-types.d.ts.map +1 -1
- package/lib/resolvers/type/product/product-bundle-item-types.d.ts +1 -1
- package/lib/resolvers/type/product/product-bundle-item-types.d.ts.map +1 -1
- package/lib/resolvers/type/product/product-bundle-types.d.ts +7 -7
- package/lib/resolvers/type/product/product-bundle-types.d.ts.map +1 -1
- package/lib/resolvers/type/product/product-catalog-price-types.d.ts +1 -1
- package/lib/resolvers/type/product/product-catalog-price-types.d.ts.map +1 -1
- package/lib/resolvers/type/product/product-configurable-types.d.ts +3 -4
- package/lib/resolvers/type/product/product-configurable-types.d.ts.map +1 -1
- package/lib/resolvers/type/product/product-configurable-types.js +62 -8
- package/lib/resolvers/type/product/product-configurable-types.js.map +1 -1
- package/lib/resolvers/type/product/product-discount.d.ts +6 -10
- package/lib/resolvers/type/product/product-discount.d.ts.map +1 -1
- package/lib/resolvers/type/product/product-discount.js +9 -11
- package/lib/resolvers/type/product/product-discount.js.map +1 -1
- package/lib/resolvers/type/product/product-media-types.d.ts +1 -1
- package/lib/resolvers/type/product/product-media-types.d.ts.map +1 -1
- package/lib/resolvers/type/product/product-plan-types.d.ts +2 -2
- package/lib/resolvers/type/product/product-plan-types.d.ts.map +1 -1
- package/lib/resolvers/type/product/product-plan-types.js +21 -7
- package/lib/resolvers/type/product/product-plan-types.js.map +1 -1
- package/lib/resolvers/type/product/product-review-types.d.ts +1 -1
- package/lib/resolvers/type/product/product-review-types.d.ts.map +1 -1
- package/lib/resolvers/type/product/product-simple-types.d.ts +3 -3
- package/lib/resolvers/type/product/product-simple-types.d.ts.map +1 -1
- package/lib/resolvers/type/product/product-simple-types.js +11 -8
- package/lib/resolvers/type/product/product-simple-types.js.map +1 -1
- package/lib/resolvers/type/product/product-tokenized-types.d.ts +2 -2
- package/lib/resolvers/type/product/product-tokenized-types.d.ts.map +1 -1
- package/lib/resolvers/type/product/product-tokenized-types.js +6 -4
- package/lib/resolvers/type/product/product-tokenized-types.js.map +1 -1
- package/lib/resolvers/type/product/product-types.d.ts +2 -2
- package/lib/resolvers/type/product/product-types.d.ts.map +1 -1
- package/lib/resolvers/type/product/product-types.js +8 -5
- package/lib/resolvers/type/product/product-types.js.map +1 -1
- package/lib/resolvers/type/product/product-variation-assignment-types.d.ts +1 -1
- package/lib/resolvers/type/product/product-variation-assignment-types.d.ts.map +1 -1
- package/lib/resolvers/type/product/product-variation-assignment-vector.d.ts +1 -1
- package/lib/resolvers/type/product/product-variation-assignment-vector.d.ts.map +1 -1
- package/lib/resolvers/type/product/product-variation-option-types.d.ts +1 -1
- package/lib/resolvers/type/product/product-variation-option-types.d.ts.map +1 -1
- package/lib/resolvers/type/product/product-variation-types.d.ts +1 -1
- package/lib/resolvers/type/product/product-variation-types.d.ts.map +1 -1
- package/lib/resolvers/type/product-search-result-types.d.ts +28 -0
- package/lib/resolvers/type/product-search-result-types.d.ts.map +1 -0
- package/lib/resolvers/type/product-search-result-types.js +45 -0
- package/lib/resolvers/type/product-search-result-types.js.map +1 -0
- package/lib/resolvers/type/quotation-types.d.ts +1 -1
- package/lib/resolvers/type/quotation-types.d.ts.map +1 -1
- package/lib/resolvers/type/shop-types.d.ts +1 -1
- package/lib/resolvers/type/shop-types.d.ts.map +1 -1
- package/lib/resolvers/type/stock-types.d.ts +1 -1
- package/lib/resolvers/type/stock-types.d.ts.map +1 -1
- package/lib/resolvers/type/stock-types.js +3 -6
- package/lib/resolvers/type/stock-types.js.map +1 -1
- package/lib/resolvers/type/token-types.d.ts +3 -3
- package/lib/resolvers/type/token-types.d.ts.map +1 -1
- package/lib/resolvers/type/token-types.js +14 -6
- package/lib/resolvers/type/token-types.js.map +1 -1
- package/lib/resolvers/type/user-types.d.ts +24 -5
- package/lib/resolvers/type/user-types.d.ts.map +1 -1
- package/lib/resolvers/type/user-types.js +7 -1
- package/lib/resolvers/type/user-types.js.map +1 -1
- package/lib/resolvers/type/warehousing-provider-types.d.ts +3 -2
- package/lib/resolvers/type/warehousing-provider-types.d.ts.map +1 -1
- package/lib/resolvers/type/warehousing-provider-types.js +13 -6
- package/lib/resolvers/type/warehousing-provider-types.js.map +1 -1
- package/lib/resolvers/type/webauthn-credentials-types.d.ts +27 -10
- package/lib/resolvers/type/webauthn-credentials-types.d.ts.map +1 -1
- package/lib/resolvers/type/webauthn-credentials-types.js.map +1 -1
- package/lib/resolvers/type/work-types.d.ts +1 -1
- package/lib/resolvers/type/work-types.d.ts.map +1 -1
- package/lib/resolvers/type/work-types.js +6 -2
- package/lib/resolvers/type/work-types.js.map +1 -1
- package/lib/roles/all.d.ts.map +1 -1
- package/lib/roles/all.js +9 -0
- package/lib/roles/all.js.map +1 -1
- package/lib/roles/index.d.ts.map +1 -1
- package/lib/roles/index.js +3 -0
- package/lib/roles/index.js.map +1 -1
- package/lib/roles/loggedIn.d.ts.map +1 -1
- package/lib/roles/loggedIn.js +22 -0
- package/lib/roles/loggedIn.js.map +1 -1
- package/lib/schema/mutation.d.ts.map +1 -1
- package/lib/schema/mutation.js +6 -1
- package/lib/schema/mutation.js.map +1 -1
- package/lib/schema/query.d.ts.map +1 -1
- package/lib/schema/query.js +11 -4
- package/lib/schema/query.js.map +1 -1
- package/lib/schema/types/assortment.js +1 -1
- package/lib/schema/types/media.js +1 -1
- package/lib/schema/types/product/product.js +1 -1
- package/package.json +25 -41
- package/src/api-index.ts +3 -2
- package/src/context.ts +51 -6
- package/src/errors.ts +12 -0
- package/src/express/createBulkImportMiddleware.ts +6 -9
- package/src/express/createERCMetadataMiddleware.ts +17 -27
- package/src/express/index.ts +35 -13
- package/src/fastify/bulkImportHandler.ts +62 -0
- package/src/fastify/ercMetadataHandler.ts +50 -0
- package/src/fastify/index.ts +45 -18
- package/src/loaders/index.ts +295 -240
- package/src/locale-context.ts +25 -15
- package/src/resolvers/mutations/accounts/addEmail.ts +1 -1
- package/src/resolvers/mutations/accounts/addWeb3Address.ts +1 -1
- package/src/resolvers/mutations/accounts/addWebAuthnCredentials.ts +1 -1
- package/src/resolvers/mutations/accounts/changePassword.ts +1 -1
- package/src/resolvers/mutations/accounts/createUser.ts +1 -1
- package/src/resolvers/mutations/accounts/createWebAuthnCredentialCreationOptions.ts +2 -2
- package/src/resolvers/mutations/accounts/createWebAuthnCredentialRequestOptions.ts +2 -2
- package/src/resolvers/mutations/accounts/enrollUser.ts +1 -1
- package/src/resolvers/mutations/accounts/forgotPassword.ts +1 -1
- package/src/resolvers/mutations/accounts/loginAsGuest.ts +3 -3
- package/src/resolvers/mutations/accounts/loginWithPassword.ts +3 -3
- package/src/resolvers/mutations/accounts/loginWithWebAuthn.ts +1 -1
- package/src/resolvers/mutations/accounts/logout.ts +1 -1
- package/src/resolvers/mutations/accounts/removeEmail.ts +1 -1
- package/src/resolvers/mutations/accounts/removeWeb3Address.ts +1 -1
- package/src/resolvers/mutations/accounts/removeWebAuthnCredentials.ts +1 -1
- package/src/resolvers/mutations/accounts/resetPassword.ts +1 -1
- package/src/resolvers/mutations/accounts/sendEnrollmentEmail.ts +1 -1
- package/src/resolvers/mutations/accounts/sendVerificationEmail.ts +1 -1
- package/src/resolvers/mutations/accounts/setPassword.ts +1 -1
- package/src/resolvers/mutations/accounts/setUsername.ts +1 -1
- package/src/resolvers/mutations/accounts/verifyEmail.ts +1 -1
- package/src/resolvers/mutations/accounts/verifyWeb3Address.ts +1 -1
- package/src/resolvers/mutations/assortments/addAssortmentFilter.ts +1 -1
- package/src/resolvers/mutations/assortments/addAssortmentLink.ts +1 -1
- package/src/resolvers/mutations/assortments/addAssortmentProduct.ts +1 -1
- package/src/resolvers/mutations/assortments/createAssortment.ts +1 -1
- package/src/resolvers/mutations/assortments/prepareAssortmentMediaUpload.ts +6 -9
- package/src/resolvers/mutations/assortments/removeAssortment.ts +1 -1
- package/src/resolvers/mutations/assortments/removeAssortmentFilter.ts +1 -1
- package/src/resolvers/mutations/assortments/removeAssortmentLink.ts +1 -1
- package/src/resolvers/mutations/assortments/removeAssortmentMedia.ts +1 -1
- package/src/resolvers/mutations/assortments/removeAssortmentProduct.ts +1 -1
- package/src/resolvers/mutations/assortments/reorderAssortmentFilters.ts +1 -1
- package/src/resolvers/mutations/assortments/reorderAssortmentLinks.ts +1 -1
- package/src/resolvers/mutations/assortments/reorderAssortmentMedia.ts +1 -1
- package/src/resolvers/mutations/assortments/reorderAssortmentProducts.ts +1 -1
- package/src/resolvers/mutations/assortments/setBaseAssortment.ts +1 -1
- package/src/resolvers/mutations/assortments/updateAssortment.ts +1 -1
- package/src/resolvers/mutations/assortments/updateAssortmentMediaTexts.ts +1 -1
- package/src/resolvers/mutations/assortments/updateAssortmentTexts.ts +1 -1
- package/src/resolvers/mutations/bookmarks/bookmark.ts +1 -1
- package/src/resolvers/mutations/bookmarks/createBookmark.ts +1 -1
- package/src/resolvers/mutations/bookmarks/removeBookmark.ts +1 -1
- package/src/resolvers/mutations/countries/createCountry.ts +1 -1
- package/src/resolvers/mutations/countries/removeCountry.ts +1 -1
- package/src/resolvers/mutations/countries/updateCountry.ts +1 -1
- package/src/resolvers/mutations/currencies/createCurrency.ts +1 -1
- package/src/resolvers/mutations/currencies/removeCurrency.ts +1 -1
- package/src/resolvers/mutations/currencies/updateCurrency.ts +1 -1
- package/src/resolvers/mutations/delivery/createDeliveryProvider.ts +6 -1
- package/src/resolvers/mutations/delivery/removeDeliveryProvider.ts +1 -1
- package/src/resolvers/mutations/delivery/updateDeliveryProvider.ts +1 -1
- package/src/resolvers/mutations/enrollments/activateEnrollment.ts +3 -3
- package/src/resolvers/mutations/enrollments/createEnrollment.ts +20 -18
- package/src/resolvers/mutations/enrollments/terminateEnrollment.ts +3 -3
- package/src/resolvers/mutations/enrollments/updateEnrollment.ts +5 -4
- package/src/resolvers/mutations/files/confirmMediaUpload.ts +2 -2
- package/src/resolvers/mutations/filters/createFilter.ts +11 -10
- package/src/resolvers/mutations/filters/createFilterOption.ts +4 -3
- package/src/resolvers/mutations/filters/removeFilter.ts +1 -1
- package/src/resolvers/mutations/filters/removeFilterOption.ts +7 -8
- package/src/resolvers/mutations/filters/updateFilter.ts +6 -2
- package/src/resolvers/mutations/filters/updateFilterTexts.ts +1 -1
- package/src/resolvers/mutations/index.ts +3 -1
- package/src/resolvers/mutations/languages/createLanguage.ts +1 -1
- package/src/resolvers/mutations/languages/removeLanguage.ts +1 -1
- package/src/resolvers/mutations/languages/updateLanguage.ts +1 -1
- package/src/resolvers/mutations/orders/addCartDiscount.ts +15 -5
- package/src/resolvers/mutations/orders/addCartProduct.ts +25 -11
- package/src/resolvers/mutations/orders/addCartQuotation.ts +24 -23
- package/src/resolvers/mutations/orders/addMultipleCartProducts.ts +38 -21
- package/src/resolvers/mutations/orders/checkoutCart.ts +7 -5
- package/src/resolvers/mutations/orders/confirmOrder.ts +3 -3
- package/src/resolvers/mutations/orders/createCart.ts +7 -5
- package/src/resolvers/mutations/orders/deliverOrder.ts +3 -3
- package/src/resolvers/mutations/orders/emptyCart.ts +4 -3
- package/src/resolvers/mutations/orders/payOrder.ts +3 -3
- package/src/resolvers/mutations/orders/rejectOrder.ts +3 -3
- package/src/resolvers/mutations/orders/removeCartDiscount.ts +18 -5
- package/src/resolvers/mutations/orders/removeCartItem.ts +3 -3
- package/src/resolvers/mutations/orders/removeOrder.ts +1 -1
- package/src/resolvers/mutations/orders/setOrderDeliveryProvider.ts +4 -4
- package/src/resolvers/mutations/orders/setOrderPaymentProvider.ts +4 -4
- package/src/resolvers/mutations/orders/signPaymentProviderForCheckout.ts +6 -3
- package/src/resolvers/mutations/orders/updateCart.ts +6 -6
- package/src/resolvers/mutations/orders/updateCartItem.ts +15 -9
- package/src/resolvers/mutations/orders/updateOrderDeliveryPickUp.ts +3 -3
- package/src/resolvers/mutations/orders/updateOrderDeliveryShipping.ts +3 -3
- package/src/resolvers/mutations/orders/updateOrderPaymentCard.ts +3 -3
- package/src/resolvers/mutations/orders/updateOrderPaymentGeneric.ts +3 -3
- package/src/resolvers/mutations/orders/updateOrderPaymentInvoice.ts +3 -3
- package/src/resolvers/mutations/payment/createPaymentProvider.ts +7 -6
- package/src/resolvers/mutations/payment/markPaymentCredentialsPreferred.ts +1 -1
- package/src/resolvers/mutations/payment/registerPaymentCredentials.ts +6 -7
- package/src/resolvers/mutations/payment/removePaymentCredentials.ts +1 -1
- package/src/resolvers/mutations/payment/removePaymentProvider.ts +1 -1
- package/src/resolvers/mutations/payment/signPaymentProviderForCredentialRegistration.ts +9 -9
- package/src/resolvers/mutations/payment/updatePaymentProvider.ts +1 -1
- package/src/resolvers/mutations/products/addProductAssignment.ts +1 -1
- package/src/resolvers/mutations/products/addProductReviewVote.ts +1 -1
- package/src/resolvers/mutations/products/createProduct.ts +1 -1
- package/src/resolvers/mutations/products/createProductBundleItem.ts +1 -1
- package/src/resolvers/mutations/products/createProductReview.ts +1 -1
- package/src/resolvers/mutations/products/createProductVariation.ts +3 -1
- package/src/resolvers/mutations/products/createProductVariationOption.ts +2 -1
- package/src/resolvers/mutations/products/prepareProductMediaUpload.ts +6 -9
- package/src/resolvers/mutations/products/publishProduct.ts +1 -1
- package/src/resolvers/mutations/products/removeBundleItem.ts +1 -1
- package/src/resolvers/mutations/products/removeProduct.ts +2 -2
- package/src/resolvers/mutations/products/removeProductAssignment.ts +1 -1
- package/src/resolvers/mutations/products/removeProductMedia.ts +1 -1
- package/src/resolvers/mutations/products/removeProductReview.ts +1 -1
- package/src/resolvers/mutations/products/removeProductReviewVote.ts +1 -1
- package/src/resolvers/mutations/products/removeProductVariation.ts +1 -1
- package/src/resolvers/mutations/products/removeProductVariationOption.ts +1 -1
- package/src/resolvers/mutations/products/reorderProductMedia.ts +1 -1
- package/src/resolvers/mutations/products/unpublishProduct.ts +1 -1
- package/src/resolvers/mutations/products/updateProduct.ts +1 -1
- package/src/resolvers/mutations/products/updateProductCommerce.ts +1 -1
- package/src/resolvers/mutations/products/updateProductMediaTexts.ts +1 -1
- package/src/resolvers/mutations/products/updateProductPlan.ts +1 -1
- package/src/resolvers/mutations/products/updateProductReview.ts +1 -1
- package/src/resolvers/mutations/products/updateProductSupply.ts +1 -1
- package/src/resolvers/mutations/products/updateProductTexts.ts +1 -1
- package/src/resolvers/mutations/products/updateProductTokenization.ts +1 -1
- package/src/resolvers/mutations/products/updateProductVariationTexts.ts +1 -1
- package/src/resolvers/mutations/products/updateProductWarehousing.ts +1 -1
- package/src/resolvers/mutations/quotations/makeQuotationProposal.ts +3 -3
- package/src/resolvers/mutations/quotations/rejectQuotation.ts +3 -3
- package/src/resolvers/mutations/quotations/requestQuotation.ts +11 -11
- package/src/resolvers/mutations/quotations/verifyQuotation.ts +3 -3
- package/src/resolvers/mutations/users/addPushSubscription.ts +1 -1
- package/src/resolvers/mutations/users/heartbeat.ts +1 -1
- package/src/resolvers/mutations/users/prepareUserAvatarUpload.ts +6 -9
- package/src/resolvers/mutations/users/removePushSubscription.ts +1 -1
- package/src/resolvers/mutations/users/removeUser.ts +10 -6
- package/src/resolvers/mutations/users/removeUserProductReviews.ts +23 -0
- package/src/resolvers/mutations/users/setRoles.ts +1 -1
- package/src/resolvers/mutations/users/setUserTags.ts +1 -1
- package/src/resolvers/mutations/users/updateUserProfile.ts +2 -2
- package/src/resolvers/mutations/utils/getOrderCart.ts +6 -5
- package/src/resolvers/mutations/warehousing/createWarehousingProvider.ts +11 -6
- package/src/resolvers/mutations/warehousing/exportToken.ts +1 -1
- package/src/resolvers/mutations/warehousing/invalidateToken.ts +11 -5
- package/src/resolvers/mutations/warehousing/removeWarehousingProvider.ts +1 -1
- package/src/resolvers/mutations/warehousing/updateWarehousingProvider.ts +2 -4
- package/src/resolvers/mutations/worker/addWork.ts +3 -3
- package/src/resolvers/mutations/worker/allocateWork.ts +1 -1
- package/src/resolvers/mutations/worker/finishWork.ts +1 -1
- package/src/resolvers/mutations/worker/processNextWork.ts +3 -2
- package/src/resolvers/mutations/worker/removeWork.ts +1 -1
- package/src/resolvers/queries/assortments/assortment.ts +1 -1
- package/src/resolvers/queries/assortments/assortments.ts +1 -1
- package/src/resolvers/queries/assortments/assortmentsCount.ts +1 -1
- package/src/resolvers/queries/assortments/translatedAssortmentMediaTexts.ts +1 -1
- package/src/resolvers/queries/assortments/translatedAssortmentTexts.ts +1 -1
- package/src/resolvers/queries/countries/countries.ts +1 -1
- package/src/resolvers/queries/countries/countriesCount.ts +1 -1
- package/src/resolvers/queries/countries/country.ts +1 -1
- package/src/resolvers/queries/currencies/currencies.ts +1 -1
- package/src/resolvers/queries/currencies/currenciesCount.ts +1 -1
- package/src/resolvers/queries/currencies/currency.ts +1 -1
- package/src/resolvers/queries/delivery/deliveryInterfaces.ts +10 -3
- package/src/resolvers/queries/delivery/deliveryProvider.ts +1 -1
- package/src/resolvers/queries/delivery/deliveryProviders.ts +5 -3
- package/src/resolvers/queries/delivery/deliveryProvidersCount.ts +5 -3
- package/src/resolvers/queries/enrollments/enrollment.ts +1 -1
- package/src/resolvers/queries/enrollments/enrollments.ts +1 -1
- package/src/resolvers/queries/enrollments/enrollmentsCount.ts +1 -1
- package/src/resolvers/queries/events/event.ts +1 -1
- package/src/resolvers/queries/events/eventStatistics.ts +5 -3
- package/src/resolvers/queries/events/events.ts +1 -1
- package/src/resolvers/queries/events/eventsCounts.ts +1 -1
- package/src/resolvers/queries/filters/filter.ts +1 -1
- package/src/resolvers/queries/filters/filters.ts +1 -1
- package/src/resolvers/queries/filters/filtersCount.ts +1 -1
- package/src/resolvers/queries/filters/searchAssortments.ts +5 -9
- package/src/resolvers/queries/filters/searchProducts.ts +4 -6
- package/src/resolvers/queries/filters/translatedFilterTexts.ts +1 -1
- package/src/resolvers/queries/languages/language.ts +1 -1
- package/src/resolvers/queries/languages/languages.ts +1 -1
- package/src/resolvers/queries/languages/languagesCount.ts +1 -1
- package/src/resolvers/queries/orders/order.ts +1 -1
- package/src/resolvers/queries/orders/orderStatistics.ts +5 -3
- package/src/resolvers/queries/orders/orders.ts +1 -1
- package/src/resolvers/queries/orders/ordersCount.ts +1 -1
- package/src/resolvers/queries/payment/paymentInterfaces.ts +10 -3
- package/src/resolvers/queries/payment/paymentProvider.ts +1 -1
- package/src/resolvers/queries/payment/paymentProviders.ts +1 -1
- package/src/resolvers/queries/payment/paymentProvidersCount.ts +1 -1
- package/src/resolvers/queries/products/product.ts +1 -1
- package/src/resolvers/queries/products/productCatalogPrices.ts +1 -1
- package/src/resolvers/queries/products/productReview.ts +1 -1
- package/src/resolvers/queries/products/productReviews.ts +1 -1
- package/src/resolvers/queries/products/productReviewsCount.ts +1 -1
- package/src/resolvers/queries/products/products.ts +1 -1
- package/src/resolvers/queries/products/productsCount.ts +1 -1
- package/src/resolvers/queries/products/translatedProductMediaTexts.ts +1 -1
- package/src/resolvers/queries/products/translatedProductTexts.ts +1 -1
- package/src/resolvers/queries/products/translatedProductVariationTexts.ts +1 -1
- package/src/resolvers/queries/quotations/quotation.ts +1 -1
- package/src/resolvers/queries/quotations/quotations.ts +1 -1
- package/src/resolvers/queries/quotations/quotationsCount.ts +1 -1
- package/src/resolvers/queries/shopInfo.ts +1 -1
- package/src/resolvers/queries/users/me.ts +1 -1
- package/src/resolvers/queries/users/user.ts +1 -1
- package/src/resolvers/queries/users/users.ts +6 -2
- package/src/resolvers/queries/users/usersCount.ts +1 -1
- package/src/resolvers/queries/users/validateResetPasswordToken.ts +1 -1
- package/src/resolvers/queries/users/validateVerifyEmailToken.ts +1 -1
- package/src/resolvers/queries/warehousing/token.ts +1 -1
- package/src/resolvers/queries/warehousing/tokens.ts +1 -1
- package/src/resolvers/queries/warehousing/warehousingInterfaces.ts +12 -5
- package/src/resolvers/queries/warehousing/warehousingProvider.ts +1 -1
- package/src/resolvers/queries/warehousing/warehousingProviders.ts +5 -3
- package/src/resolvers/queries/warehousing/warehousingProvidersCount.ts +5 -3
- package/src/resolvers/queries/worker/activeWorkTypes.ts +7 -2
- package/src/resolvers/queries/worker/work.ts +1 -1
- package/src/resolvers/queries/worker/workQueue.ts +1 -1
- package/src/resolvers/queries/worker/workQueueCount.ts +2 -2
- package/src/resolvers/queries/worker/workStatistics.ts +5 -3
- package/src/resolvers/type/assortment/assortment-filter-types.ts +1 -1
- package/src/resolvers/type/assortment/assortment-link-types.ts +1 -1
- package/src/resolvers/type/assortment/assortment-media-types.ts +1 -1
- package/src/resolvers/type/assortment/assortment-path-link-types.ts +1 -1
- package/src/resolvers/type/assortment/assortment-product-types.ts +1 -1
- package/src/resolvers/type/assortment/assortment-types.ts +53 -69
- package/src/resolvers/type/bookmark-types.ts +4 -4
- package/src/resolvers/type/country-types.ts +1 -1
- package/src/resolvers/type/delivery-provider-types.ts +28 -30
- package/src/resolvers/type/dispatch-types.ts +13 -16
- package/src/resolvers/type/enrollment/enrollment-delivery-types.ts +1 -1
- package/src/resolvers/type/enrollment/enrollment-payment-types.ts +1 -1
- package/src/resolvers/type/enrollment/enrollment-period-types.ts +1 -1
- package/src/resolvers/type/enrollment/enrollment-plan-tyes.ts +1 -1
- package/src/resolvers/type/enrollment/enrollment-types.ts +1 -1
- package/src/resolvers/type/event-types.ts +2 -2
- package/src/resolvers/type/filter/filter-option-types.ts +1 -1
- package/src/resolvers/type/filter/filter-types.ts +1 -1
- package/src/resolvers/type/filter/loaded-filter-option-types.ts +18 -1
- package/src/resolvers/type/filter/loaded-filter-types.ts +59 -1
- package/src/resolvers/type/index.ts +3 -1
- package/src/resolvers/type/language-types.ts +1 -1
- package/src/resolvers/type/media-types.ts +17 -6
- package/src/resolvers/type/order/order-delivery-discount-types.ts +8 -23
- package/src/resolvers/type/order/order-delivery-pickup-types.ts +23 -8
- package/src/resolvers/type/order/order-delivery-shipping-types.ts +9 -5
- package/src/resolvers/type/order/order-delivery-types.ts +1 -1
- package/src/resolvers/type/order/order-discount-types.ts +7 -11
- package/src/resolvers/type/order/order-discountable-types.ts +9 -6
- package/src/resolvers/type/order/order-global-discount-types.ts +24 -27
- package/src/resolvers/type/order/order-item-discount-types.ts +7 -20
- package/src/resolvers/type/order/order-item-types.ts +21 -25
- package/src/resolvers/type/order/order-payment-card-types.ts +8 -4
- package/src/resolvers/type/order/order-payment-discount-types.ts +24 -28
- package/src/resolvers/type/order/order-payment-generic-types.ts +8 -4
- package/src/resolvers/type/order/order-payment-invoice-types.ts +8 -4
- package/src/resolvers/type/order/order-payment-types.ts +1 -1
- package/src/resolvers/type/order/order-types.ts +24 -32
- package/src/resolvers/type/payment/payment-credentials-types.ts +11 -6
- package/src/resolvers/type/payment/payment-provider-types.ts +33 -70
- package/src/resolvers/type/product/product-assortment-path-types.ts +1 -1
- package/src/resolvers/type/product/product-bundle-item-types.ts +1 -1
- package/src/resolvers/type/product/product-catalog-price-types.ts +1 -1
- package/src/resolvers/type/product/product-configurable-types.ts +85 -14
- package/src/resolvers/type/product/product-discount.ts +10 -32
- package/src/resolvers/type/product/product-media-types.ts +1 -1
- package/src/resolvers/type/product/product-plan-types.ts +29 -14
- package/src/resolvers/type/product/product-review-types.ts +1 -1
- package/src/resolvers/type/product/product-simple-types.ts +17 -20
- package/src/resolvers/type/product/product-tokenized-types.ts +11 -11
- package/src/resolvers/type/product/product-types.ts +12 -6
- package/src/resolvers/type/product/product-variation-assignment-types.ts +1 -1
- package/src/resolvers/type/product/product-variation-assignment-vector.ts +1 -1
- package/src/resolvers/type/product/product-variation-option-types.ts +1 -1
- package/src/resolvers/type/product/product-variation-types.ts +1 -1
- package/src/resolvers/type/product-search-result-types.ts +69 -0
- package/src/resolvers/type/quotation-types.ts +1 -1
- package/src/resolvers/type/shop-types.ts +1 -1
- package/src/resolvers/type/stock-types.ts +12 -15
- package/src/resolvers/type/token-types.ts +21 -10
- package/src/resolvers/type/user-types.ts +34 -13
- package/src/resolvers/type/warehousing-provider-types.ts +15 -12
- package/src/resolvers/type/webauthn-credentials-types.ts +30 -18
- package/src/resolvers/type/work-types.ts +7 -3
- package/src/roles/all.ts +12 -2
- package/src/roles/index.ts +3 -0
- package/src/roles/loggedIn.ts +24 -1
- package/src/schema/mutation.ts +6 -1
- package/src/schema/query.ts +11 -4
- package/src/schema/types/assortment.ts +1 -1
- package/src/schema/types/media.ts +1 -1
- package/src/schema/types/product/product.ts +1 -1
- package/tsconfig.json +4 -4
- package/lib/types.d.ts +0 -100
- package/lib/types.d.ts.map +0 -1
- package/lib/types.js +0 -2
- package/lib/types.js.map +0 -1
- package/src/express/passport/access-token-strategy.ts +0 -39
- package/src/express/passport/setup.ts +0 -44
- package/src/types.ts +0 -94
package/README.md
CHANGED
package/lib/api-index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { GraphQLServerOptions } from './createGraphQLServer.js';
|
|
2
|
-
import { createContextResolver, setCurrentContextResolver, getCurrentContextResolver } from './context.js';
|
|
2
|
+
import { createContextResolver, setCurrentContextResolver, getCurrentContextResolver, AdminUiConfig } from './context.js';
|
|
3
3
|
import { UnchainedCore } from '@unchainedshop/core';
|
|
4
|
-
import { AdminUiConfig } from './types.js';
|
|
5
4
|
export * from './context.js';
|
|
6
|
-
export * from './
|
|
5
|
+
export * from './locale-context.js';
|
|
6
|
+
export * from './loaders/index.js';
|
|
7
7
|
export * as acl from './acl.js';
|
|
8
8
|
export * as errors from './errors.js';
|
|
9
9
|
export * as roles from './roles/index.js';
|
package/lib/api-index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api-index.d.ts","sourceRoot":"","sources":["../src/api-index.ts"],"names":[],"mappings":"AAAA,OAA4B,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AACrF,OAAO,EACL,qBAAqB,EACrB,yBAAyB,EACzB,yBAAyB,
|
|
1
|
+
{"version":3,"file":"api-index.d.ts","sourceRoot":"","sources":["../src/api-index.ts"],"names":[],"mappings":"AAAA,OAA4B,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AACrF,OAAO,EACL,qBAAqB,EACrB,yBAAyB,EACzB,yBAAyB,EACzB,aAAa,EACd,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEpD,cAAc,cAAc,CAAC;AAC7B,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,OAAO,KAAK,GAAG,MAAM,UAAU,CAAC;AAChC,OAAO,KAAK,MAAM,MAAM,aAAa,CAAC;AACtC,OAAO,KAAK,KAAK,MAAM,kBAAkB,CAAC;AAC1C,OAAO,EAAE,qBAAqB,EAAE,yBAAyB,EAAE,yBAAyB,EAAE,CAAC;AAMvF,MAAM,MAAM,sBAAsB,GAAG;IACnC,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,YAAY,EAAE,aAAa,CAAC;IAC5B,OAAO,CAAC,EAAE,GAAG,CAAC;IACd,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACtB,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAC1B,GAAG,oBAAoB,CAAC;AAEzB,eAAO,MAAM,cAAc,YAAmB,sBAAsB,iEAmCnE,CAAC"}
|
package/lib/api-index.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import createGraphQLServer from './createGraphQLServer.js';
|
|
2
2
|
import { createContextResolver, setCurrentContextResolver, getCurrentContextResolver, } from './context.js';
|
|
3
3
|
export * from './context.js';
|
|
4
|
-
export * from './
|
|
4
|
+
export * from './locale-context.js';
|
|
5
|
+
export * from './loaders/index.js';
|
|
5
6
|
export * as acl from './acl.js';
|
|
6
7
|
export * as errors from './errors.js';
|
|
7
8
|
export * as roles from './roles/index.js';
|
package/lib/api-index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api-index.js","sourceRoot":"","sources":["../src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AAE,eAAe,CAAC,CAAC;QAC/C,CAAC;QACH,CAAC,CAAC,eAAe,CACpB,CAAC;IAEF,OAAO,mBAAmB,CAAC;QACzB,QAAQ,EAAE;YACR,GAAG,oBAAoB,CAAC;gBACtB,OAAO,EAAE,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC;gBAC7B,MAAM;gBACN,SAAS;aACV,CAAC;YACF,GAAG,kBAAkB;SACtB;QACD,SAAS,EAAE,CAAC,SAAS,EAAE,GAAG,mBAAmB,CAAC;QAC9C,GAAG,aAAa;KACjB,CAAC,CAAC;AACL,CAAC,CAAC"}
|
package/lib/context.d.ts
CHANGED
|
@@ -1,18 +1,48 @@
|
|
|
1
1
|
import { UnchainedCore } from '@unchainedshop/core';
|
|
2
|
+
import { UnchainedLoaders } from './loaders/index.js';
|
|
3
|
+
import { UnchainedLocaleContext } from './locale-context.js';
|
|
2
4
|
import { UnchainedServerOptions } from './api-index.js';
|
|
3
|
-
import {
|
|
5
|
+
import { User } from '@unchainedshop/core-users';
|
|
6
|
+
export interface UnchainedUserContext {
|
|
7
|
+
login: (user: User) => Promise<{
|
|
8
|
+
_id: string;
|
|
9
|
+
tokenExpires: Date;
|
|
10
|
+
}>;
|
|
11
|
+
logout: () => Promise<boolean>;
|
|
12
|
+
userId?: string;
|
|
13
|
+
user?: User;
|
|
14
|
+
remoteAddress?: string;
|
|
15
|
+
remotePort?: string;
|
|
16
|
+
userAgent?: string;
|
|
17
|
+
}
|
|
18
|
+
export interface CustomAdminUiProperties {
|
|
19
|
+
entityName: string;
|
|
20
|
+
inlineFragment: string;
|
|
21
|
+
}
|
|
22
|
+
export interface AdminUiConfig {
|
|
23
|
+
customProperties?: CustomAdminUiProperties[];
|
|
24
|
+
}
|
|
25
|
+
export type UnchainedHTTPServerContext = {
|
|
26
|
+
setHeader: (key: string, value: string) => void;
|
|
27
|
+
getHeader: (key: string) => string;
|
|
28
|
+
};
|
|
29
|
+
export type Context = UnchainedCore & {
|
|
30
|
+
version?: string;
|
|
31
|
+
roles?: any;
|
|
32
|
+
adminUiConfig?: AdminUiConfig;
|
|
33
|
+
} & UnchainedUserContext & UnchainedLocaleContext & UnchainedLoaders & UnchainedHTTPServerContext;
|
|
4
34
|
export declare const getCurrentContextResolver: () => UnchainedContextResolver;
|
|
5
35
|
export declare const setCurrentContextResolver: (newContext: UnchainedContextResolver) => void;
|
|
6
36
|
export type UnchainedContextResolver = (params: UnchainedHTTPServerContext & {
|
|
7
37
|
remoteAddress?: string;
|
|
8
38
|
remotePort?: number;
|
|
9
|
-
user?: any;
|
|
10
39
|
userId?: string;
|
|
11
40
|
login: (user: any) => Promise<{
|
|
12
41
|
_id: string;
|
|
13
42
|
user: any;
|
|
14
43
|
tokenExpires: Date;
|
|
15
44
|
}>;
|
|
45
|
+
accessToken?: string;
|
|
16
46
|
logout: () => Promise<boolean>;
|
|
17
47
|
}) => Promise<Context>;
|
|
18
48
|
export declare const loadJSON: (filename: any) => any;
|
package/lib/context.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../src/context.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../src/context.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAA2B,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAC1E,OAAO,EAAoB,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAC/E,OAAO,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AACxD,OAAO,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAC;AAEjD,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,OAAO,CAAC;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,YAAY,EAAE,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AAE,GAAG,CAAC;QAAC,YAAY,EAAE,IAAI,CAAA;KAAE,CAAC,CAAC;IAC9E,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,MAAM,OAAO,CAAC,OAAO,CAAC,CAAC;CAChC,KACE,OAAO,CAAC,OAAO,CAAC,CAAC;AAEtB,eAAO,MAAM,QAAQ,wBAapB,CAAC;AAMF,eAAO,MAAM,qBAAqB,iBAEhB,aAAa,mBACV,IAAI,CAAC,sBAAsB,EAAE,OAAO,GAAG,eAAe,CAAC,KACvE,wBA6BF,CAAC"}
|
package/lib/context.js
CHANGED
|
@@ -24,11 +24,22 @@ export const loadJSON = (filename) => {
|
|
|
24
24
|
};
|
|
25
25
|
const packageJson = loadJSON('../package.json');
|
|
26
26
|
const { UNCHAINED_API_VERSION = packageJson?.version || '2.x' } = process.env;
|
|
27
|
-
export const createContextResolver = (unchainedAPI, unchainedConfig) => async ({ getHeader, setHeader, remoteAddress, remotePort,
|
|
27
|
+
export const createContextResolver = (unchainedAPI, unchainedConfig) => async ({ getHeader, setHeader, remoteAddress, remotePort, userId, accessToken, login, logout }) => {
|
|
28
28
|
const abstractHttpServerContext = { remoteAddress, remotePort, getHeader, setHeader };
|
|
29
29
|
const loaders = await instantiateLoaders(unchainedAPI);
|
|
30
30
|
const localeContext = await getLocaleContext(abstractHttpServerContext, unchainedAPI);
|
|
31
|
-
const userContext = {
|
|
31
|
+
const userContext = { login, logout };
|
|
32
|
+
if (accessToken) {
|
|
33
|
+
const accessTokenUser = await unchainedAPI.modules.users.findUserByToken(accessToken);
|
|
34
|
+
if (accessTokenUser) {
|
|
35
|
+
userContext.user = accessTokenUser;
|
|
36
|
+
userContext.userId = accessTokenUser._id;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
if (userId && !userContext.userId) {
|
|
40
|
+
userContext.user = await unchainedAPI.modules.users.findUserById(userId);
|
|
41
|
+
userContext.userId = userId;
|
|
42
|
+
}
|
|
32
43
|
return {
|
|
33
44
|
...unchainedAPI,
|
|
34
45
|
...unchainedConfig,
|
package/lib/context.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.js","sourceRoot":"","sources":["../src/context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,CAAC;AACpB,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,
|
|
1
|
+
{"version":3,"file":"context.js","sourceRoot":"","sources":["../src/context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,CAAC;AACpB,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,kBAAwC,MAAM,oBAAoB,CAAC;AAC1E,OAAO,EAAE,gBAAgB,EAA0B,MAAM,qBAAqB,CAAC;AAqC/E,IAAI,OAAO,CAAC;AAEZ,MAAM,CAAC,MAAM,yBAAyB,GAAG,GAA6B,EAAE,CAAC,OAAO,CAAC;AAEjF,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,UAAoC,EAAE,EAAE;IAChF,OAAO,GAAG,UAAU,CAAC;AACvB,CAAC,CAAC;AAaF,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,QAAQ,EAAE,EAAE;IACnC,IAAI,CAAC;QACH,MAAM,IAAI,GAAG,OAAO,UAAU,KAAK,WAAW,IAAI,UAAU,CAAC;QAC7D,IAAI,CAAC,IAAI;YACP,OAAO;gBACL,OAAO,EAAE,OAAO,CAAC,GAAG,CAAC,mBAAmB;aACzC,CAAC;QACJ,MAAM,YAAY,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,QAAQ,CAAC,CAAC;QAChE,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,YAAY,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC,CAAC;QAChE,OAAO,IAAI,CAAC;IACd,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,IAAI,CAAC;IACd,CAAC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;QAChB,GAAG,WAAW;QACd,OAAO;QACP,OAAO,EAAE,qBAAqB;QAC9B,SAAS;QACT,SAAS;KACV,CAAC;AACJ,CAAC,CAAC"}
|
package/lib/errors.d.ts
CHANGED
|
@@ -27,6 +27,8 @@ export declare const OrderItemNotFoundError: any;
|
|
|
27
27
|
export declare const OrderNotFoundError: any;
|
|
28
28
|
export declare const OrderNumberAlreadyExistsError: any;
|
|
29
29
|
export declare const OrderDiscountNotFoundError: any;
|
|
30
|
+
export declare const OrderDiscountCodeNotValidError: any;
|
|
31
|
+
export declare const OrderDiscountCodeAlreadyPresentError: any;
|
|
30
32
|
export declare const OrderDeliveryNotFoundError: any;
|
|
31
33
|
export declare const OrderPaymentNotFoundError: any;
|
|
32
34
|
export declare const OrderPaymentTypeError: any;
|
package/lib/errors.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,WAAW,SAAU,MAAM,WAAW,MAAM,KAAG,GAUzD,CAAC;AAEJ,eAAO,MAAM,qBAAqB,KAAkE,CAAC;AACrG,eAAO,MAAM,iBAAiB,KAAqD,CAAC;AACpF,eAAO,MAAM,oBAAoB,KAA2D,CAAC;AAE7F,eAAO,MAAM,6BAA6B,KAGzC,CAAC;AAEF,eAAO,MAAM,yBAAyB,KAGrC,CAAC;AAEF,eAAO,MAAM,0BAA0B,KAGtC,CAAC;AACF,eAAO,MAAM,uBAAuB,KAGnC,CAAC;AAEF,eAAO,MAAM,qBAAqB,KAGjC,CAAC;AAEF,eAAO,MAAM,uBAAuB,KAAiE,CAAC;AAEtG,eAAO,MAAM,6BAA6B,KAGzC,CAAC;AAEF,eAAO,MAAM,2BAA2B,KAGvC,CAAC;AAEF,eAAO,MAAM,8BAA8B,KAG1C,CAAC;AAEF,eAAO,MAAM,4BAA4B,KAGxC,CAAC;AACF,eAAO,MAAM,mBAAmB,KAAyD,CAAC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B,KAAqD,CAAC;AAEpF,eAAO,MAAM,sBAAsB,KAA8D,CAAC"}
|
package/lib/errors.js
CHANGED
|
@@ -37,6 +37,8 @@ export const OrderItemNotFoundError = createError('OrderItemNotFoundError', 'Ord
|
|
|
37
37
|
export const OrderNotFoundError = createError('OrderNotFoundError', 'Order not found');
|
|
38
38
|
export const OrderNumberAlreadyExistsError = createError('OrderNumberAlreadyExistsError', 'This orderNumber has already been used by another order');
|
|
39
39
|
export const OrderDiscountNotFoundError = createError('OrderDiscountNotFoundError', 'Order discount not found');
|
|
40
|
+
export const OrderDiscountCodeNotValidError = createError('OrderDiscountCodeNotValidError', 'Order discount code not valid');
|
|
41
|
+
export const OrderDiscountCodeAlreadyPresentError = createError('OrderDiscountCodeAlreadyPresentError', 'Order discount code already present');
|
|
40
42
|
export const OrderDeliveryNotFoundError = createError('OrderDeliveryNotFoundError', 'Order delivery not found');
|
|
41
43
|
export const OrderPaymentNotFoundError = createError('OrderPaymentNotFoundError', 'Order payment not found');
|
|
42
44
|
export const OrderPaymentTypeError = createError('OrderPaymentTypeError', 'The current type of the order payment does not allow this operation');
|
package/lib/errors.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAEvC,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,IAAY,EAAE,OAAe,EAAO,EAAE,CAChE,KAAM,SAAQ,YAAY;IACxB,YAAY,EAAE,OAAO,EAAE,eAAe,EAAE,GAAG,IAAI,EAAE;QAC/C,KAAK,CAAC,eAAe,IAAI,OAAO,EAAE;YAChC,UAAU,EAAE;gBACV,IAAI;gBACJ,GAAG,IAAI;aACR;SACF,CAAC,CAAC;IACL,CAAC;CACF,CAAC;AAEJ,MAAM,CAAC,MAAM,qBAAqB,GAAG,WAAW,CAAC,uBAAuB,EAAE,yBAAyB,CAAC,CAA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MAAM,CAAC,MAAM,yBAAyB,GAAG,WAAW,CAClD,sBAAsB,EACtB,iCAAiC,CAClC,CAAC;AAEF,MAAM,CAAC,MAAM,oBAAoB,GAAG,WAAW,CAC7C,sBAAsB,EACtB,8CAA8C,CAC/C,CAAC;AAEF,MAAM,CAAC,MAAM,wBAAwB,GAAG,WAAW,CACjD,qBAAqB,EACrB,8EAA8E,CAC/E,CAAC;AAEF,MAAM,CAAC,MAAM,mCAAmC,GAAG,WAAW,CAC5D,gCAAgC,EAChC,kGAAkG,CACnG,CAAC;AAEF,MAAM,CAAC,MAAM,gCAAgC,GAAG,WAAW,CACzD,6BAA6B,EAC7B,4GAA4G,CAC7G,CAAC;AAEF,MAAM,CAAC,MAAM,8BAA8B,GAAG,WAAW,CACvD,2BAA2B,EAC3B,4HAA4H,CAC7H,CAAC;AAEF,MAAM,CAAC,MAAM,6BAA6B,GAAG,WAAW,CACtD,0BAA0B,EAC1B,gIAAgI,CACjI,CAAC;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAAG,WAAW,CAAC,mBAAmB,EAAE,gBAAgB,CAAC,CAAC;AAEpF,MAAM,CAAC,MAAM,sBAAsB,GAAG,WAAW,CAAC,mBAAmB,EAAE,yBAAyB,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createBulkImportMiddleware.d.ts","sourceRoot":"","sources":["../../src/express/createBulkImportMiddleware.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,MAAM,CAAC;AACvC,OAAO,EAAE,OAAO,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"createBulkImportMiddleware.d.ts","sourceRoot":"","sources":["../../src/express/createBulkImportMiddleware.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,MAAM,CAAC;AACvC,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAgBxC,wBAA8B,oBAAoB,CAChD,GAAG,EAAE,eAAe,GAAG;IAAE,KAAK,CAAC,EAAE,GAAG,CAAC;IAAC,gBAAgB,EAAE,OAAO,CAAA;CAAE,EACjE,GAAG,KAAA,iBA4CJ"}
|
|
@@ -31,7 +31,7 @@ export default async function bulkImportMiddleware(req, res) {
|
|
|
31
31
|
directoryName: 'bulk-import-streams',
|
|
32
32
|
rawFile: Promise.resolve({ filename: `${date}.json`, createReadStream: () => req }),
|
|
33
33
|
meta: {},
|
|
34
|
-
}
|
|
34
|
+
});
|
|
35
35
|
input.payloadId = file._id;
|
|
36
36
|
input.payloadSize = file.size;
|
|
37
37
|
const purgedInput = Object.fromEntries(Object.entries(input).filter(([, value]) => Boolean(value)));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createBulkImportMiddleware.js","sourceRoot":"","sources":["../../src/express/createBulkImportMiddleware.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAI5C,MAAM,MAAM,GAAG,YAAY,CAAC,uBAAuB,CAAC,CAAC;AAErD,MAAM,YAAY,GAAG,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE;IAClC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC;IACxB,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC;IACnB,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC;AAC9E,CAAC,CAAC;AAEF,MAAM,kBAAkB,GAAG,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,EAAE;IACvC,MAAM,CAAC,KAAK,CAAC,kC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IAAI,GAAG,MAAM,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,oBAAoB,CAAC;YAC7D,aAAa,EAAE,qBAAqB;YACpC,OAAO,EAAE,OAAO,CAAC,OAAO,CAAC,EAAE,QAAQ,EAAE,GAAG,IAAI,OAAO,EAAE,gBAAgB,EAAE,GAAG,EAAE,CAAC,GAAG,EAAE,CAAC;YACnF,IAAI,EAAE,EAAE;SACT,CAAC,CAAC;QAEH,KAAK,CAAC,SAAS,GAAG,IAAI,CAAC,GAAG,CAAC;QAC3B,KAAK,CAAC,WAAW,GAAG,IAAI,CAAC,IAAI,CAAC;QAE9B,MAAM,WAAW,GAAG,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QAEpG,MAAM,IAAI,GAAG,MAAM,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC;YAChD,IAAI,EAAE,aAAa;YACnB,KAAK,EAAE,WAAW;YAClB,OAAO,EAAE,CAAC;YACV,QAAQ,EAAE,EAAE;SACb,CAAC,CAAC;QAEH,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC;QACnB,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC;IAChC,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC;QACX,YAAY,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;IACvB,CAAC;AACH,CAAC"}
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
export default
|
|
4
|
-
unchainedContext: Context;
|
|
5
|
-
}, res: any): Promise<void>;
|
|
1
|
+
import { RequestHandler } from 'express';
|
|
2
|
+
declare const ercMetadataMiddleware: RequestHandler;
|
|
3
|
+
export default ercMetadataMiddleware;
|
|
6
4
|
//# sourceMappingURL=createERCMetadataMiddleware.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createERCMetadataMiddleware.d.ts","sourceRoot":"","sources":["../../src/express/createERCMetadataMiddleware.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"createERCMetadataMiddleware.d.ts","sourceRoot":"","sources":["../../src/express/createERCMetadataMiddleware.ts"],"names":[],"mappings":"AAGA,OAAO,EAAW,cAAc,EAAE,MAAM,SAAS,CAAC;AAgBlD,QAAA,MAAM,qBAAqB,EAAE,cAuC5B,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import path from 'path';
|
|
2
2
|
import { createLogger } from '@unchainedshop/logger';
|
|
3
|
-
import { systemLocale } from '@unchainedshop/utils';
|
|
4
3
|
const logger = createLogger('unchained:erc-metadata');
|
|
5
4
|
const errorHandler = (res) => (e) => {
|
|
6
5
|
logger.error(e.message);
|
|
@@ -12,33 +11,28 @@ const methodWrongHandler = (res) => () => {
|
|
|
12
11
|
res.writeHead(404);
|
|
13
12
|
res.end();
|
|
14
13
|
};
|
|
15
|
-
|
|
14
|
+
const ercMetadataMiddleware = async (req, res) => {
|
|
16
15
|
try {
|
|
17
16
|
if (req.method !== 'GET') {
|
|
18
17
|
methodWrongHandler(res)();
|
|
19
18
|
return;
|
|
20
19
|
}
|
|
21
|
-
const
|
|
20
|
+
const { services, localeContext } = req.unchainedContext;
|
|
22
21
|
const url = new URL(req.url, process.env.ROOT_URL);
|
|
23
22
|
const parsedPath = path.parse(url.pathname);
|
|
24
23
|
if (parsedPath.ext !== '.json')
|
|
25
24
|
throw new Error('Invalid ERC Metadata URI');
|
|
26
25
|
const [, productId, localeOrTokenFilename, tokenFileName] = url.pathname.split('/');
|
|
27
|
-
const locale = tokenFileName ? localeOrTokenFilename :
|
|
28
|
-
const
|
|
29
|
-
const product = await context.modules.products.findProduct({
|
|
26
|
+
const locale = tokenFileName ? new Intl.Locale(localeOrTokenFilename) : localeContext;
|
|
27
|
+
const ercMetadata = await services.warehousing.ercMetadata({
|
|
30
28
|
productId,
|
|
29
|
+
locale,
|
|
30
|
+
chainTokenId: parsedPath.name,
|
|
31
31
|
});
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
}
|
|
36
|
-
const ercMetadata = await context.modules.warehousing.tokenMetadata(chainTokenId, {
|
|
37
|
-
token,
|
|
38
|
-
product,
|
|
39
|
-
locale: new Intl.Locale(locale),
|
|
40
|
-
referenceDate: new Date(),
|
|
41
|
-
}, context);
|
|
32
|
+
if (!ercMetadata) {
|
|
33
|
+
methodWrongHandler(res);
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
42
36
|
const body = JSON.stringify(ercMetadata);
|
|
43
37
|
res.writeHead(200, {
|
|
44
38
|
'Content-Length': Buffer.byteLength(body),
|
|
@@ -49,5 +43,6 @@ export default async function ercMetadataMiddleware(req, res) {
|
|
|
49
43
|
catch (e) {
|
|
50
44
|
errorHandler(res)(e);
|
|
51
45
|
}
|
|
52
|
-
}
|
|
46
|
+
};
|
|
47
|
+
export default ercMetadataMiddleware;
|
|
53
48
|
//# sourceMappingURL=createERCMetadataMiddleware.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createERCMetadataMiddleware.js","sourceRoot":"","sources":["../../src/express/createERCMetadataMiddleware.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"createERCMetadataMiddleware.js","sourceRoot":"","sources":["../../src/express/createERCMetadataMiddleware.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAIrD,MAAM,MAAM,GAAG,YAAY,CAAC,wBAAwB,CAAC,CAAC;AAEtD,MAAM,YAAY,GAAG,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE;IACl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AM,MAAM,GAAG,aAAa,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,MAAM,CAAC,qBAAqB,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC;QAEtF,MAAM,WAAW,GAAG,MAAM,QAAQ,CAAC,WAAW,CAAC,WAAW,CAAC;YACzD,SAAS;YACT,MAAM;YACN,YAAY,EAAE,UAAU,CAAC,IAAI;SAC9B,CAAC,CAAC;QAEH,IAAI,CAAC,WAAW,EAAE,CAAC;YACjB,kBAAkB,CAAC,GAAG,CAAC,CAAC;YACxB,OAAO;QACT,CAAC;QAED,MAAM,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;QACzC,GAAG,CAAC,SAAS,CAAC,GAAG,EAAE;YACjB,gBAAgB,EAAE,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC;YACzC,cAAc,EAAE,YAAY;SAC7B,CAAC,CAAC;QACH,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IAChB,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC;QACX,YAAY,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;IACvB,CAAC;AACH,CAAC,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
|
package/lib/express/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import e from 'express';
|
|
2
2
|
import { YogaServerInstance } from 'graphql-yoga';
|
|
3
3
|
import { mongodb } from '@unchainedshop/mongodb';
|
|
4
4
|
import { UnchainedCore } from '@unchainedshop/core';
|
|
5
|
-
export declare const connect: (expressApp: e.Express, { graphqlHandler, db,
|
|
5
|
+
export declare const connect: (expressApp: e.Express, { graphqlHandler, db, }: {
|
|
6
6
|
graphqlHandler: YogaServerInstance<any, any>;
|
|
7
7
|
db: mongodb.Db;
|
|
8
8
|
unchainedAPI: UnchainedCore;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/express/index.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/express/index.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,SAAS,CAAC;AAOxB,OAAO,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AA2GpD,eAAO,MAAM,OAAO,eACN,CAAC,CAAC,OAAO,2BAIlB;IAAE,cAAc,EAAE,kBAAkB,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;IAAC,EAAE,EAAE,OAAO,CAAC,EAAE,CAAC;IAAC,YAAY,EAAE,aAAa,CAAA;CAAE,SAkDjG,CAAC"}
|
package/lib/express/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import createBulkImportMiddleware from './createBulkImportMiddleware.js';
|
|
|
3
3
|
import createERCMetadataMiddleware from './createERCMetadataMiddleware.js';
|
|
4
4
|
import session from 'express-session';
|
|
5
5
|
import MongoStore from 'connect-mongo';
|
|
6
|
-
import
|
|
6
|
+
import { Passport } from 'passport';
|
|
7
7
|
import { emit } from '@unchainedshop/events';
|
|
8
8
|
import { API_EVENTS } from '../events.js';
|
|
9
9
|
const resolveUserRemoteAddress = (req) => {
|
|
@@ -13,7 +13,7 @@ const resolveUserRemoteAddress = (req) => {
|
|
|
13
13
|
const remotePort = req.socket?.remotePort;
|
|
14
14
|
return { remoteAddress, remotePort };
|
|
15
15
|
};
|
|
16
|
-
const { BULK_IMPORT_API_PATH = '/bulk-import', ERC_METADATA_API_PATH = '/erc-metadata', GRAPHQL_API_PATH = '/graphql', UNCHAINED_COOKIE_NAME = 'unchained_token', UNCHAINED_COOKIE_PATH = '/', UNCHAINED_COOKIE_DOMAIN, } = process.env;
|
|
16
|
+
const { BULK_IMPORT_API_PATH = '/bulk-import', ERC_METADATA_API_PATH = '/erc-metadata', GRAPHQL_API_PATH = '/graphql', UNCHAINED_COOKIE_NAME = 'unchained_token', UNCHAINED_COOKIE_PATH = '/', UNCHAINED_COOKIE_DOMAIN, UNCHAINED_COOKIE_SAMESITE, UNCHAINED_COOKIE_INSECURE, } = process.env;
|
|
17
17
|
const addContext = async function middlewareWithContext(req, res, next) {
|
|
18
18
|
try {
|
|
19
19
|
const setHeader = (key, value) => res.setHeader(key, value);
|
|
@@ -31,10 +31,11 @@ const addContext = async function middlewareWithContext(req, res, next) {
|
|
|
31
31
|
});
|
|
32
32
|
const tokenObject = {
|
|
33
33
|
_id: req.sessionID,
|
|
34
|
+
userId: user._id,
|
|
34
35
|
/* eslint-disable-next-line */
|
|
35
36
|
tokenExpires: new Date(req.session?.cookie._expires),
|
|
36
37
|
};
|
|
37
|
-
await emit(API_EVENTS.API_LOGIN_TOKEN_CREATED,
|
|
38
|
+
await emit(API_EVENTS.API_LOGIN_TOKEN_CREATED, tokenObject);
|
|
38
39
|
/* eslint-disable-next-line */
|
|
39
40
|
user._inLoginMethodResponse = true;
|
|
40
41
|
return { user, ...tokenObject };
|
|
@@ -61,6 +62,7 @@ const addContext = async function middlewareWithContext(req, res, next) {
|
|
|
61
62
|
await emit(API_EVENTS.API_LOGOUT, tokenObject);
|
|
62
63
|
return true;
|
|
63
64
|
};
|
|
65
|
+
const [, accessToken] = req.headers.authorization?.split(' ') || [];
|
|
64
66
|
req.unchainedContext = await context({
|
|
65
67
|
setHeader,
|
|
66
68
|
getHeader,
|
|
@@ -68,7 +70,7 @@ const addContext = async function middlewareWithContext(req, res, next) {
|
|
|
68
70
|
remotePort,
|
|
69
71
|
login,
|
|
70
72
|
logout,
|
|
71
|
-
|
|
73
|
+
accessToken,
|
|
72
74
|
userId: req.user?._id,
|
|
73
75
|
});
|
|
74
76
|
next();
|
|
@@ -77,8 +79,25 @@ const addContext = async function middlewareWithContext(req, res, next) {
|
|
|
77
79
|
next(error);
|
|
78
80
|
}
|
|
79
81
|
};
|
|
80
|
-
export const connect = (expressApp, { graphqlHandler, db,
|
|
81
|
-
const passport =
|
|
82
|
+
export const connect = (expressApp, { graphqlHandler, db, }) => {
|
|
83
|
+
const passport = new Passport();
|
|
84
|
+
passport.serializeUser(function serialize(user, done) {
|
|
85
|
+
done(null, user._id);
|
|
86
|
+
});
|
|
87
|
+
passport.deserializeUser(function deserialize(_id, done) {
|
|
88
|
+
done(null, { _id });
|
|
89
|
+
});
|
|
90
|
+
const name = UNCHAINED_COOKIE_NAME;
|
|
91
|
+
const domain = UNCHAINED_COOKIE_DOMAIN;
|
|
92
|
+
const path = UNCHAINED_COOKIE_PATH;
|
|
93
|
+
const secure = UNCHAINED_COOKIE_INSECURE ? false : true;
|
|
94
|
+
const sameSite = ({
|
|
95
|
+
none: 'none',
|
|
96
|
+
lax: 'lax',
|
|
97
|
+
strict: 'strict',
|
|
98
|
+
'1': true,
|
|
99
|
+
'0': false,
|
|
100
|
+
}[UNCHAINED_COOKIE_SAMESITE?.trim()?.toLowerCase()] || false);
|
|
82
101
|
expressApp.use(session({
|
|
83
102
|
secret: process.env.UNCHAINED_TOKEN_SECRET,
|
|
84
103
|
store: MongoStore.create({
|
|
@@ -86,18 +105,18 @@ export const connect = (expressApp, { graphqlHandler, db, unchainedAPI, }) => {
|
|
|
86
105
|
dbName: db.databaseName,
|
|
87
106
|
collectionName: 'sessions',
|
|
88
107
|
}),
|
|
89
|
-
name
|
|
108
|
+
name,
|
|
90
109
|
saveUninitialized: false,
|
|
91
110
|
resave: false,
|
|
92
111
|
cookie: {
|
|
93
|
-
domain
|
|
94
|
-
path
|
|
95
|
-
sameSite
|
|
96
|
-
secure
|
|
112
|
+
domain,
|
|
113
|
+
path,
|
|
114
|
+
sameSite,
|
|
115
|
+
secure,
|
|
97
116
|
httpOnly: true,
|
|
98
117
|
maxAge: 1000 * 60 * 60 * 24 * 7,
|
|
99
118
|
},
|
|
100
|
-
}), passport.initialize(), passport.session(),
|
|
119
|
+
}), passport.initialize(), passport.session(), addContext);
|
|
101
120
|
expressApp.use(GRAPHQL_API_PATH, graphqlHandler.handle);
|
|
102
121
|
expressApp.use(ERC_METADATA_API_PATH, createERCMetadataMiddleware);
|
|
103
122
|
expressApp.use(BULK_IMPORT_API_PATH, createBulkImportMiddleware);
|
package/lib/express/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/express/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,yBAAyB,EAAE,MAAM,eAAe,CAAC;AAC1D,OAAO,0BAA0B,MAAM,iCAAiC,CAAC;AACzE,OAAO,2BAA2B,MAAM,kCAAkC,CAAC;AAC3E,OAAO,OAAO,MAAM,iBAAiB,CAAC;AACtC,OAAO,UAAU,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/express/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,yBAAyB,EAAE,MAAM,eAAe,CAAC;AAC1D,OAAO,0BAA0B,MAAM,iCAAiC,CAAC;AACzE,OAAO,2BAA2B,MAAM,kCAAkC,CAAC;AAC3E,OAAO,OAAO,MAAM,iBAAiB,CAAC;AACtC,OAAO,UAAU,MAAM,eAAe,CAAC;AACvC,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAIpC,OAAO,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAI1C,MAAM,wBAAwB,GAAG,CAAC,GAAoB,EAAE,EAAE;IACxD,MAAM,aAAa,GAChB,GAAG,CAAC,OAAO,CAAC,WAAW,CAAY;QACnC,GAAG,CAAC,OAAO,CAAC,iBAAiB,CAAY;QAC1C,GAAG,CAAC,MAAM,EAAE,aAAa,CAAC;IAE5B,MAAM,UAAU,GAAG,GAAG,CAAC,MAAM,EAAE,UAAU,CAAC;IAE1C,OAAO,EAAE,aAAa,EAAE,UAAU,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MAAM,CAAC;YACvB,MAAM,EAAG,EAAU,CAAC,MAAM;YAC1B,MAAM,EAAE,EAAE,CAAC,YAAY;YACvB,cAAc,EAAE,UAAU;SAC3B,CAAC;QACF,IAAI;QACJ,iBAAiB,EAAE,KAAK;QACxB,MAAM,EAAE,KAAK;QACb,MAAM,EAAE;YACN,MAAM;YACN,IAAI;YACJ,QAAQ;YACR,MAAM;YACN,QAAQ,EAAE,IAAI;YACd,MAAM,EAAE,IAAI,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC;SAChC;KACF,CAAC,EACF,QAAQ,CAAC,UAAU,EAAE,EACrB,QAAQ,CAAC,OAAO,EAAE,EAClB,UAAU,CACX,CAAC;IACF,UAAU,CAAC,GAAG,CAAC,gBAAgB,EAAE,cAAc,CAAC,MAAM,CAAC,CAAC;IACxD,UAAU,CAAC,GAAG,CAAC,qBAAqB,EAAE,2BAA2B,CAAC,CAAC;IACnE,UAAU,CAAC,GAAG,CAAC,oBAAoB,EAAE,0BAA0B,CAAC,CAAC;AACnE,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bulkImportHandler.d.ts","sourceRoot":"","sources":["../../src/fastify/bulkImportHandler.ts"],"names":[],"mappings":"AAIA,OAAO,EAAkB,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAU7D,QAAA,MAAM,iBAAiB,EAAE,kBA6CxB,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { createLogger } from '@unchainedshop/logger';
|
|
2
|
+
import { checkAction } from '../acl.js';
|
|
3
|
+
import { actions } from '../roles/index.js';
|
|
4
|
+
const logger = createLogger('unchained:bulk-import');
|
|
5
|
+
const errorHandler = (res) => (e) => {
|
|
6
|
+
logger.error(e.message);
|
|
7
|
+
res.status(503);
|
|
8
|
+
return res.send(JSON.stringify({ name: e.name, code: e.code, message: e.message }));
|
|
9
|
+
};
|
|
10
|
+
const bulkImportHandler = async (req, res) => {
|
|
11
|
+
try {
|
|
12
|
+
const context = req.unchainedContext;
|
|
13
|
+
const query = req.query;
|
|
14
|
+
await checkAction(context, actions.bulkImport);
|
|
15
|
+
const input = {
|
|
16
|
+
createShouldUpsertIfIDExists: !!query?.createShouldUpsertIfIDExists,
|
|
17
|
+
updateShouldUpsertIfIDNotExists: !!query?.updateShouldUpsertIfIDNotExists,
|
|
18
|
+
skipCacheInvalidation: !!query?.skipCacheInvalidation,
|
|
19
|
+
remoteAddress: context.remoteAddress,
|
|
20
|
+
};
|
|
21
|
+
const date = new Date().toISOString();
|
|
22
|
+
const file = await context.services.files.uploadFileFromStream({
|
|
23
|
+
directoryName: 'bulk-import-streams',
|
|
24
|
+
rawFile: Promise.resolve({ filename: `${date}.json`, createReadStream: () => req }),
|
|
25
|
+
meta: {},
|
|
26
|
+
});
|
|
27
|
+
input.payloadId = file._id;
|
|
28
|
+
input.payloadSize = file.size;
|
|
29
|
+
const purgedInput = Object.fromEntries(Object.entries(input).filter(([, value]) => Boolean(value)));
|
|
30
|
+
const work = await context.modules.worker.addWork({
|
|
31
|
+
type: 'BULK_IMPORT',
|
|
32
|
+
input: purgedInput,
|
|
33
|
+
retries: 0,
|
|
34
|
+
priority: 10,
|
|
35
|
+
});
|
|
36
|
+
const body = JSON.stringify(work);
|
|
37
|
+
res.status(200);
|
|
38
|
+
res.header('Content-Length', Buffer.byteLength(body));
|
|
39
|
+
res.header('Content-Type', 'application/json');
|
|
40
|
+
return res.send(body);
|
|
41
|
+
}
|
|
42
|
+
catch (e) {
|
|
43
|
+
errorHandler(res)(e);
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
export default bulkImportHandler;
|
|
47
|
+
//# sourceMappingURL=bulkImportHandler.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bulkImportHandler.js","sourceRoot":"","sources":["../../src/fastify/bulkImportHandler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,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ourceRoot":"","sources":["../../src/fastify/ercMetadataHandler.ts"],"names":[],"mappings":"AAEA,OAAO,EAAkB,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAgB7D,QAAA,MAAM,kBAAkB,EAAE,kBA6BzB,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { createLogger } from '@unchainedshop/logger';
|
|
2
|
+
const logger = createLogger('unchained:erc-metadata');
|
|
3
|
+
const errorHandler = (res) => (e) => {
|
|
4
|
+
logger.error(e.message);
|
|
5
|
+
res.status(503);
|
|
6
|
+
return res.send(JSON.stringify({ name: e.name, code: e.code, message: e.message }));
|
|
7
|
+
};
|
|
8
|
+
const notFoundHandler = (res) => {
|
|
9
|
+
logger.error('Method not supported, return 404');
|
|
10
|
+
res.status(404);
|
|
11
|
+
return res.send();
|
|
12
|
+
};
|
|
13
|
+
const ercMetadataHandler = async (req, res) => {
|
|
14
|
+
try {
|
|
15
|
+
const { services, localeContext } = req.unchainedContext;
|
|
16
|
+
const url = new URL(req.url, process.env.ROOT_URL);
|
|
17
|
+
if (!url.pathname.toLowerCase().endsWith('.json'))
|
|
18
|
+
throw new Error('Invalid ERC Metadata URI');
|
|
19
|
+
const { productId, localeOrTokenFilename, tokenFileName } = req.params;
|
|
20
|
+
const locale = tokenFileName ? new Intl.Locale(localeOrTokenFilename) : localeContext;
|
|
21
|
+
const ercMetadata = await services.warehousing.ercMetadata({
|
|
22
|
+
productId,
|
|
23
|
+
locale,
|
|
24
|
+
chainTokenId: (tokenFileName || localeOrTokenFilename).toLowerCase().replace('.json', ''),
|
|
25
|
+
});
|
|
26
|
+
if (!ercMetadata)
|
|
27
|
+
return notFoundHandler(res);
|
|
28
|
+
const body = JSON.stringify(ercMetadata);
|
|
29
|
+
res.status(200);
|
|
30
|
+
res.header('Content-Length', Buffer.byteLength(body));
|
|
31
|
+
res.header('Content-Type', 'application/json');
|
|
32
|
+
return res.send(body);
|
|
33
|
+
}
|
|
34
|
+
catch (e) {
|
|
35
|
+
return errorHandler(res)(e);
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
export default ercMetadataHandler;
|
|
39
|
+
//# sourceMappingURL=ercMetadataHandler.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ercMetadataHandler.js","sourceRoot":"","sources":["../../src/fastify/ercMetadataHandler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAIrD,MAAM,MAAM,GAAG,YAAY,CAAC,wBAAwB,CAAC,CAAC;AAEtD,MAAM,YAAY,GAAG,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE;IAClC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC;IACxB,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;IAChB,OAAO,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC;AACtF,CAAC,CAAC;AAEF,MAAM,eAAe,GAAG,CAAC,GAAG,EAAE,EAAE;IAC9B,MAAM,CAAC,KAAK,CAAC,kCAAkC,CAAC,CAAC;IACjD,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;IAChB,OAAO,GAAG,CAAC,IAAI,EAAE,CAAC;AACpB,CAAC,CAAC;AAEF,MAAM,kBAAkB,GAAuB,KAAK,EAClD,GAAmD,EACnD,GAAG,EACH,EAAE;IACF,IAAI,CAAC;QACH,MAAM,EAAE,QAAQ,EAAE,aAAa,EAAE,GAAG,GAAG,CAAC,gBAAgB,CAAC;QACzD,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,GAAG,CAAC,GAAG,EAAE,OAAO,CAAC,GAAG,CAAC,QAA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