@unchainedshop/api 3.0.0-alpha7 → 3.0.0-rc10
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 +4 -4
- package/lib/api-index.d.ts.map +1 -1
- package/lib/api-index.js +3 -2
- package/lib/api-index.js.map +1 -1
- package/lib/context.d.ts +32 -3
- package/lib/context.d.ts.map +1 -1
- package/lib/context.js +17 -21
- package/lib/context.js.map +1 -1
- package/lib/errors.d.ts +3 -0
- package/lib/errors.d.ts.map +1 -1
- package/lib/errors.js +3 -0
- package/lib/errors.js.map +1 -1
- package/lib/express/createBulkImportMiddleware.d.ts +2 -3
- 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 +13 -18
- 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 +149 -86
- 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/addWebAuthnCredentials.js +3 -0
- package/lib/resolvers/mutations/accounts/addWebAuthnCredentials.js.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 +5 -2
- 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 +5 -2
- package/lib/resolvers/mutations/accounts/createWebAuthnCredentialRequestOptions.d.ts.map +1 -1
- package/lib/resolvers/mutations/accounts/createWebAuthnCredentialRequestOptions.js +2 -2
- 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/loginWithWebAuthn.js +4 -1
- package/lib/resolvers/mutations/accounts/loginWithWebAuthn.js.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/resetPassword.js +12 -43
- package/lib/resolvers/mutations/accounts/resetPassword.js.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/accounts/verifyWeb3Address.js +3 -1
- package/lib/resolvers/mutations/accounts/verifyWeb3Address.js.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 +2 -4
- package/lib/resolvers/mutations/countries/updateCountry.d.ts.map +1 -1
- package/lib/resolvers/mutations/countries/updateCountry.js +1 -5
- package/lib/resolvers/mutations/countries/updateCountry.js.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 +16 -6
- 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 +30 -13
- 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 +21 -10
- 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 +29 -11
- 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 +14 -8
- 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 +10 -5
- 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 +4 -2
- 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 +12 -7
- 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/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/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/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/validateResetPasswordToken.js +2 -2
- package/lib/resolvers/queries/users/validateResetPasswordToken.js.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 -3
- package/lib/resolvers/type/delivery-provider-types.d.ts.map +1 -1
- package/lib/resolvers/type/delivery-provider-types.js +18 -19
- package/lib/resolvers/type/delivery-provider-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 +34 -1
- package/lib/resolvers/type/filter/loaded-filter-types.js.map +1 -1
- package/lib/resolvers/type/index.d.ts +355 -147
- package/lib/resolvers/type/index.d.ts.map +1 -1
- package/lib/resolvers/type/index.js +3 -5
- 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 +10 -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 +0 -5
- 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 +19 -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 +1 -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 +9 -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 +0 -5
- 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 +15 -26
- 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 +19 -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 +9 -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 +12 -16
- 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 -15
- package/lib/resolvers/type/payment/payment-provider-types.d.ts.map +1 -1
- package/lib/resolvers/type/payment/payment-provider-types.js +20 -21
- package/lib/resolvers/type/payment/payment-provider-types.js.map +1 -1
- package/lib/resolvers/type/price-types.d.ts +0 -1
- package/lib/resolvers/type/price-types.d.ts.map +1 -1
- package/lib/resolvers/type/price-types.js.map +1 -1
- package/lib/resolvers/type/product/product-assortment-path-types.d.ts +1 -1
- package/lib/resolvers/type/product/product-assortment-path-types.d.ts.map +1 -1
- package/lib/resolvers/type/product/product-bundle-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 +32 -9
- package/lib/resolvers/type/product/product-configurable-types.js.map +1 -1
- package/lib/resolvers/type/product/product-discount.d.ts +6 -11
- package/lib/resolvers/type/product/product-discount.d.ts.map +1 -1
- package/lib/resolvers/type/product/product-discount.js +7 -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 +17 -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 -5
- package/lib/resolvers/type/product/product-simple-types.d.ts.map +1 -1
- package/lib/resolvers/type/product/product-simple-types.js +14 -48
- package/lib/resolvers/type/product/product-simple-types.js.map +1 -1
- package/lib/resolvers/type/product/product-tokenized-types.d.ts +2 -3
- package/lib/resolvers/type/product/product-tokenized-types.d.ts.map +1 -1
- package/lib/resolvers/type/product/product-tokenized-types.js +6 -22
- 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/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 +9 -3
- 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/inputTypes.d.ts.map +1 -1
- package/lib/schema/inputTypes.js +0 -1
- package/lib/schema/inputTypes.js.map +1 -1
- package/lib/schema/mutation.d.ts.map +1 -1
- package/lib/schema/mutation.js +8 -3
- 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/dispatch.d.ts.map +1 -1
- package/lib/schema/types/dispatch.js +0 -1
- package/lib/schema/types/dispatch.js.map +1 -1
- package/lib/schema/types/media.js +1 -1
- package/lib/schema/types/price.d.ts.map +1 -1
- package/lib/schema/types/price.js +0 -2
- package/lib/schema/types/price.js.map +1 -1
- package/lib/schema/types/product/product.js +1 -1
- package/lib/schema/types/stock.d.ts.map +1 -1
- package/lib/schema/types/stock.js +0 -1
- package/lib/schema/types/stock.js.map +1 -1
- package/package.json +64 -43
- package/src/api-index.ts +4 -3
- package/src/context.ts +55 -26
- package/src/errors.ts +14 -0
- package/src/express/createBulkImportMiddleware.ts +7 -11
- package/src/express/createERCMetadataMiddleware.ts +18 -28
- package/src/express/index.ts +36 -15
- package/src/fastify/bulkImportHandler.ts +62 -0
- package/src/fastify/ercMetadataHandler.ts +50 -0
- package/src/fastify/index.ts +46 -20
- package/src/loaders/index.ts +359 -277
- 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 +4 -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 +4 -4
- 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 +5 -2
- 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 +14 -47
- 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 +5 -2
- 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 +3 -8
- 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 +22 -7
- package/src/resolvers/mutations/orders/addCartProduct.ts +33 -13
- package/src/resolvers/mutations/orders/addCartQuotation.ts +31 -25
- package/src/resolvers/mutations/orders/addMultipleCartProducts.ts +45 -23
- package/src/resolvers/mutations/orders/checkoutCart.ts +15 -9
- 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 +11 -6
- 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 +7 -4
- package/src/resolvers/mutations/orders/updateCart.ts +13 -9
- 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/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 +3 -3
- 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 +26 -31
- 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 +58 -1
- package/src/resolvers/type/index.ts +3 -5
- 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 +6 -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 +23 -27
- package/src/resolvers/type/order/order-item-discount-types.ts +5 -20
- package/src/resolvers/type/order/order-item-types.ts +21 -33
- package/src/resolvers/type/order/order-payment-card-types.ts +8 -4
- package/src/resolvers/type/order/order-payment-discount-types.ts +17 -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 +23 -35
- package/src/resolvers/type/payment/payment-credentials-types.ts +11 -6
- package/src/resolvers/type/payment/payment-provider-types.ts +32 -71
- package/src/resolvers/type/price-types.ts +0 -1
- 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 +43 -16
- package/src/resolvers/type/product/product-discount.ts +8 -32
- package/src/resolvers/type/product/product-media-types.ts +1 -1
- package/src/resolvers/type/product/product-plan-types.ts +21 -14
- package/src/resolvers/type/product/product-review-types.ts +1 -1
- package/src/resolvers/type/product/product-simple-types.ts +17 -81
- package/src/resolvers/type/product/product-tokenized-types.ts +9 -39
- 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/token-types.ts +21 -10
- package/src/resolvers/type/user-types.ts +38 -15
- 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/inputTypes.ts +0 -1
- package/src/schema/mutation.ts +8 -3
- package/src/schema/query.ts +11 -4
- package/src/schema/types/assortment.ts +1 -1
- package/src/schema/types/dispatch.ts +0 -1
- package/src/schema/types/media.ts +1 -1
- package/src/schema/types/price.ts +0 -2
- package/src/schema/types/product/product.ts +1 -1
- package/src/schema/types/stock.ts +0 -1
- package/tests/api-index.test.ts +4 -4
- package/tsconfig.json +4 -4
- package/lib/express/passport/access-token-strategy.d.ts +0 -10
- package/lib/express/passport/access-token-strategy.d.ts.map +0 -1
- package/lib/express/passport/access-token-strategy.js +0 -33
- package/lib/express/passport/access-token-strategy.js.map +0 -1
- package/lib/express/passport/setup.d.ts +0 -4
- package/lib/express/passport/setup.d.ts.map +0 -1
- package/lib/express/passport/setup.js +0 -30
- package/lib/express/passport/setup.js.map +0 -1
- package/lib/resolvers/mutations/utils/getOrderCart.d.ts +0 -7
- package/lib/resolvers/mutations/utils/getOrderCart.d.ts.map +0 -1
- package/lib/resolvers/mutations/utils/getOrderCart.js +0 -13
- package/lib/resolvers/mutations/utils/getOrderCart.js.map +0 -1
- package/lib/resolvers/type/dispatch-types.d.ts +0 -15
- package/lib/resolvers/type/dispatch-types.d.ts.map +0 -1
- package/lib/resolvers/type/dispatch-types.js +0 -16
- package/lib/resolvers/type/dispatch-types.js.map +0 -1
- package/lib/resolvers/type/stock-types.d.ts +0 -14
- package/lib/resolvers/type/stock-types.d.ts.map +0 -1
- package/lib/resolvers/type/stock-types.js +0 -15
- package/lib/resolvers/type/stock-types.js.map +0 -1
- 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/resolvers/mutations/utils/getOrderCart.ts +0 -19
- package/src/resolvers/type/dispatch-types.ts +0 -30
- package/src/resolvers/type/stock-types.ts +0 -28
- package/src/types.ts +0 -94
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Bookmark } from '@unchainedshop/core-bookmarks';
|
|
2
2
|
import { SortOption } from '@unchainedshop/utils';
|
|
3
3
|
import { Enrollment, EnrollmentStatus } from '@unchainedshop/core-enrollments';
|
|
4
4
|
import { File } from '@unchainedshop/core-files';
|
|
@@ -6,22 +6,36 @@ import { Language } from '@unchainedshop/core-languages';
|
|
|
6
6
|
import { Order, OrderStatus } from '@unchainedshop/core-orders';
|
|
7
7
|
import { PaymentCredentials } from '@unchainedshop/core-payment';
|
|
8
8
|
import { Quotation } from '@unchainedshop/core-quotations';
|
|
9
|
-
import {
|
|
10
|
-
Email,
|
|
11
|
-
User as UserType,
|
|
12
|
-
UserProfile,
|
|
13
|
-
Web3Address,
|
|
14
|
-
WebAuthnCredentials,
|
|
15
|
-
PushSubscription,
|
|
16
|
-
} from '@unchainedshop/core-users';
|
|
9
|
+
import { Email, User as UserType, UserProfile } from '@unchainedshop/core-users';
|
|
17
10
|
import { TokenSurrogate } from '@unchainedshop/core-warehousing';
|
|
18
11
|
import { Roles, permissions } from '@unchainedshop/roles';
|
|
19
12
|
import { ProductReview } from '@unchainedshop/core-products';
|
|
13
|
+
import { Contact } from '@unchainedshop/mongodb';
|
|
14
|
+
import { Country } from '@unchainedshop/core-countries';
|
|
20
15
|
import { checkAction, checkTypeResolver } from '../../acl.js';
|
|
21
16
|
import { actions } from '../../roles/index.js';
|
|
22
|
-
import { Context } from '../../
|
|
23
|
-
|
|
24
|
-
|
|
17
|
+
import { Context } from '../../context.js';
|
|
18
|
+
|
|
19
|
+
export interface PushSubscription {
|
|
20
|
+
_id: string;
|
|
21
|
+
userAgent: string;
|
|
22
|
+
expirationTime: number;
|
|
23
|
+
endpoint: string;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export interface Web3Address {
|
|
27
|
+
address: string;
|
|
28
|
+
nonce?: number;
|
|
29
|
+
verified: boolean;
|
|
30
|
+
}
|
|
31
|
+
export interface WebAuthnCredentials {
|
|
32
|
+
id: string;
|
|
33
|
+
publicKey: string;
|
|
34
|
+
created: Date;
|
|
35
|
+
aaguid: string;
|
|
36
|
+
counter: number;
|
|
37
|
+
mdsMetadata: any;
|
|
38
|
+
}
|
|
25
39
|
|
|
26
40
|
type HelperType<P, T> = (user: UserType, params: P, context: Context) => Promise<T>;
|
|
27
41
|
|
|
@@ -100,7 +114,9 @@ const {
|
|
|
100
114
|
} = actions as Record<string, string>;
|
|
101
115
|
|
|
102
116
|
const getPrimaryEmail = (user: UserType) => {
|
|
103
|
-
return (user.emails || []).
|
|
117
|
+
return (user.emails || []).toSorted(
|
|
118
|
+
(left, right) => Number(right.verified) - Number(left.verified),
|
|
119
|
+
)?.[0];
|
|
104
120
|
};
|
|
105
121
|
|
|
106
122
|
export const User: UserHelperTypes = {
|
|
@@ -160,7 +176,7 @@ export const User: UserHelperTypes = {
|
|
|
160
176
|
const { modules, countryContext } = context;
|
|
161
177
|
await checkAction(context, viewUserOrders, [user, params]);
|
|
162
178
|
return modules.orders.cart({
|
|
163
|
-
|
|
179
|
+
countryCode: countryContext,
|
|
164
180
|
orderNumber: params.orderNumber,
|
|
165
181
|
userId: user._id,
|
|
166
182
|
});
|
|
@@ -168,7 +184,14 @@ export const User: UserHelperTypes = {
|
|
|
168
184
|
|
|
169
185
|
async tokens(user, params, context) {
|
|
170
186
|
await checkAction(context, viewUserPrivateInfos, [user, params]);
|
|
171
|
-
|
|
187
|
+
const walletAddresses =
|
|
188
|
+
user.services?.web3?.flatMap((service) => {
|
|
189
|
+
return service.verified ? [service.address] : [];
|
|
190
|
+
}) || [];
|
|
191
|
+
return context.modules.warehousing.findTokensForUser({
|
|
192
|
+
userId: user._id,
|
|
193
|
+
walletAddresses,
|
|
194
|
+
});
|
|
172
195
|
},
|
|
173
196
|
|
|
174
197
|
async country(user, params, context) {
|
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
WarehousingProvider as WarehousingProviderType,
|
|
5
|
-
} from '@unchainedshop/core-warehousing';
|
|
6
|
-
import { Context } from '../../types.js';
|
|
1
|
+
import { WarehousingDirector, WarehousingError, WarehousingInterface } from '@unchainedshop/core';
|
|
2
|
+
import { WarehousingProvider as WarehousingProviderType } from '@unchainedshop/core-warehousing';
|
|
3
|
+
import { Context } from '../../context.js';
|
|
7
4
|
|
|
8
5
|
export type HelperType<P, T> = (provider: WarehousingProviderType, params: P, context: Context) => T;
|
|
9
6
|
|
|
@@ -14,17 +11,23 @@ export interface WarehousingProviderHelperTypes {
|
|
|
14
11
|
}
|
|
15
12
|
|
|
16
13
|
export const WarehousingProvider: WarehousingProviderHelperTypes = {
|
|
17
|
-
interface(obj
|
|
18
|
-
const
|
|
19
|
-
if (!
|
|
20
|
-
return
|
|
14
|
+
interface(obj) {
|
|
15
|
+
const Adapter = WarehousingDirector.getAdapter(obj.adapterKey);
|
|
16
|
+
if (!Adapter) return null;
|
|
17
|
+
return {
|
|
18
|
+
_id: Adapter.key,
|
|
19
|
+
label: Adapter.label,
|
|
20
|
+
version: Adapter.version,
|
|
21
|
+
};
|
|
21
22
|
},
|
|
22
23
|
|
|
23
24
|
async configurationError(obj, _, context) {
|
|
24
|
-
|
|
25
|
+
const actions = await WarehousingDirector.actions(obj, {}, context);
|
|
26
|
+
return actions.configurationError();
|
|
25
27
|
},
|
|
26
28
|
|
|
27
29
|
async isActive(obj, _, context) {
|
|
28
|
-
|
|
30
|
+
const actions = await WarehousingDirector.actions(obj, {}, context);
|
|
31
|
+
return actions.isActive();
|
|
29
32
|
},
|
|
30
33
|
};
|
|
@@ -1,26 +1,38 @@
|
|
|
1
|
-
import { Context } from '
|
|
2
|
-
import { WebAuthnCredentials as WebAuthnCredentialsTypes } from '@unchainedshop/core-users';
|
|
1
|
+
import { Context } from '../../context.js';
|
|
3
2
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
mdsMetadata: HelperType<any, any>;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export const WebAuthnCredentials: WebAuthnCredentialsHelperTypes = {
|
|
17
|
-
async _id(obj) {
|
|
3
|
+
export const WebAuthnCredentials = {
|
|
4
|
+
async _id(obj: {
|
|
5
|
+
id: string;
|
|
6
|
+
publicKey: string;
|
|
7
|
+
created: Date;
|
|
8
|
+
aaguid: string;
|
|
9
|
+
counter: number;
|
|
10
|
+
mdsMetadata: any;
|
|
11
|
+
}) {
|
|
18
12
|
return obj.id;
|
|
19
13
|
},
|
|
20
|
-
async created(obj
|
|
14
|
+
async created(obj: {
|
|
15
|
+
id: string;
|
|
16
|
+
publicKey: string;
|
|
17
|
+
created: Date;
|
|
18
|
+
aaguid: string;
|
|
19
|
+
counter: number;
|
|
20
|
+
mdsMetadata: any;
|
|
21
|
+
}) {
|
|
21
22
|
return obj.created || new Date(0);
|
|
22
23
|
},
|
|
23
|
-
async mdsMetadata(
|
|
24
|
+
async mdsMetadata(
|
|
25
|
+
obj: {
|
|
26
|
+
id: string;
|
|
27
|
+
publicKey: string;
|
|
28
|
+
created: Date;
|
|
29
|
+
aaguid: string;
|
|
30
|
+
counter: number;
|
|
31
|
+
mdsMetadata: any;
|
|
32
|
+
},
|
|
33
|
+
_: never,
|
|
34
|
+
{ modules }: Context,
|
|
35
|
+
) {
|
|
24
36
|
const metadata = await modules.users.webAuthn.findMDSMetadataForAAGUID(obj.aaguid);
|
|
25
37
|
return metadata;
|
|
26
38
|
},
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { WorkerDirector } from '@unchainedshop/core';
|
|
2
|
+
import { Context } from '../../context.js';
|
|
2
3
|
import { Work as WorkType } from '@unchainedshop/core-worker';
|
|
3
4
|
import { buildObfuscatedFieldsFilter } from '@unchainedshop/utils';
|
|
4
5
|
|
|
@@ -18,8 +19,11 @@ export const Work: WorkHelperTypes = {
|
|
|
18
19
|
return modules.worker.status(obj);
|
|
19
20
|
},
|
|
20
21
|
|
|
21
|
-
type: (obj
|
|
22
|
-
|
|
22
|
+
type: (obj) => {
|
|
23
|
+
if (WorkerDirector.getActivePluginTypes().includes(obj.type)) {
|
|
24
|
+
return obj.type;
|
|
25
|
+
}
|
|
26
|
+
return 'UNKNOWN';
|
|
23
27
|
},
|
|
24
28
|
|
|
25
29
|
original: async (obj, _, { modules }) => {
|
package/src/roles/all.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Context } from '
|
|
1
|
+
import { Context } from '../context.js';
|
|
2
2
|
|
|
3
3
|
export const all = (role, actions) => {
|
|
4
4
|
const isInLoginMutationResponse = (root) => {
|
|
@@ -23,13 +23,19 @@ export const all = (role, actions) => {
|
|
|
23
23
|
|
|
24
24
|
if (isOwnedByUser) return true;
|
|
25
25
|
|
|
26
|
-
const accessKeyHeader = context.getHeader('x-token-accesskey')
|
|
26
|
+
const accessKeyHeader = context.getHeader('x-token-accesskey');
|
|
27
27
|
const accessKey = await context.modules.warehousing.buildAccessKeyForToken(tokenId);
|
|
28
28
|
if (accessKeyHeader === accessKey) return true;
|
|
29
29
|
|
|
30
30
|
return false;
|
|
31
31
|
};
|
|
32
32
|
|
|
33
|
+
const isFilePublic = async (file) => {
|
|
34
|
+
// Non private files or no files always resolve to true
|
|
35
|
+
if (!file?.meta?.isPrivate) return true;
|
|
36
|
+
return false;
|
|
37
|
+
};
|
|
38
|
+
|
|
33
39
|
role.allow(actions.viewEvent, () => false);
|
|
34
40
|
role.allow(actions.viewEvents, () => false);
|
|
35
41
|
role.allow(actions.viewUser, () => false);
|
|
@@ -93,6 +99,7 @@ export const all = (role, actions) => {
|
|
|
93
99
|
role.allow(actions.viewEnrollment, () => false);
|
|
94
100
|
role.allow(actions.viewTokens, () => false);
|
|
95
101
|
role.allow(actions.viewStatistics, () => false);
|
|
102
|
+
role.allow(actions.uploadUserAvatar, () => false);
|
|
96
103
|
|
|
97
104
|
// special case: when doing a login mutation, the user is not logged in technically yet,
|
|
98
105
|
// but should be able to see user data of the user that is about to be logged in
|
|
@@ -109,6 +116,9 @@ export const all = (role, actions) => {
|
|
|
109
116
|
role.allow(actions.updateToken, isOwnedToken);
|
|
110
117
|
role.allow(actions.viewToken, isOwnedToken);
|
|
111
118
|
|
|
119
|
+
// special case: access to file downloads should work when meta.isPrivate is not set
|
|
120
|
+
role.allow(actions.downloadFile, isFilePublic);
|
|
121
|
+
|
|
112
122
|
// only allow if query is not demanding for drafts or inactive item lists
|
|
113
123
|
role.allow(actions.viewProducts, (root, { includeDrafts }) => !includeDrafts);
|
|
114
124
|
role.allow(actions.viewAssortments, (root, { includeInactive }) => !includeInactive);
|
package/src/roles/index.ts
CHANGED
|
@@ -113,6 +113,9 @@ const actions: Record<string, string> = [
|
|
|
113
113
|
'heartbeat',
|
|
114
114
|
'confirmMediaUpload',
|
|
115
115
|
'viewStatistics',
|
|
116
|
+
'removeUser',
|
|
117
|
+
'downloadFile',
|
|
118
|
+
'uploadUserAvatar',
|
|
116
119
|
].reduce((oldValue, actionValue) => {
|
|
117
120
|
const newValue = oldValue;
|
|
118
121
|
newValue[actionValue] = actionValue;
|
package/src/roles/loggedIn.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Context } from '
|
|
1
|
+
import { Context } from '../context.js';
|
|
2
2
|
import { User } from '@unchainedshop/core-users';
|
|
3
3
|
|
|
4
4
|
export const loggedIn = (role: any, actions: Record<string, string>) => {
|
|
@@ -15,6 +15,14 @@ export const loggedIn = (role: any, actions: Record<string, string>) => {
|
|
|
15
15
|
// user wants to access himself
|
|
16
16
|
return true;
|
|
17
17
|
};
|
|
18
|
+
const canUpdateAvatar = (_, params: { userId?: string } = {}, context: Context) => {
|
|
19
|
+
const isVerified = context?.user?.emails.some(({ verified }) => verified);
|
|
20
|
+
if (!isVerified) return false;
|
|
21
|
+
if (params?.userId) {
|
|
22
|
+
return params?.userId === context?.userId;
|
|
23
|
+
}
|
|
24
|
+
return true;
|
|
25
|
+
};
|
|
18
26
|
|
|
19
27
|
const isOwnedEmailAddress = (obj: any, params: { email?: string }, { user }: Context) => {
|
|
20
28
|
return user?.emails?.some(
|
|
@@ -193,6 +201,18 @@ export const loggedIn = (role: any, actions: Record<string, string>) => {
|
|
|
193
201
|
return credentials.userId === userId;
|
|
194
202
|
};
|
|
195
203
|
|
|
204
|
+
const isFileAccessible = async (file, _, context) => {
|
|
205
|
+
const user = context?.user;
|
|
206
|
+
|
|
207
|
+
// Non private files or no files always resolve to true
|
|
208
|
+
if (!file?.meta?.isPrivate) return true;
|
|
209
|
+
|
|
210
|
+
// If private file, only return true if owned
|
|
211
|
+
if (file?.meta?.userId === user?._id) return true;
|
|
212
|
+
|
|
213
|
+
return false;
|
|
214
|
+
};
|
|
215
|
+
|
|
196
216
|
role.allow(actions.viewUser, isMyself);
|
|
197
217
|
role.allow(actions.viewUserRoles, isMyself);
|
|
198
218
|
role.allow(actions.viewUserOrders, isMyself);
|
|
@@ -202,6 +222,7 @@ export const loggedIn = (role: any, actions: Record<string, string>) => {
|
|
|
202
222
|
role.allow(actions.viewUserProductReviews, isMyself);
|
|
203
223
|
role.allow(actions.viewUserTokens, isMyself);
|
|
204
224
|
role.allow(actions.updateUser, isMyself);
|
|
225
|
+
role.allow(actions.removeUser, isMyself);
|
|
205
226
|
role.allow(actions.sendEmail, isOwnedEmailAddress);
|
|
206
227
|
role.allow(actions.viewOrder, isOwnedOrder);
|
|
207
228
|
role.allow(actions.updateOrder, isOwnedOrder);
|
|
@@ -225,4 +246,6 @@ export const loggedIn = (role: any, actions: Record<string, string>) => {
|
|
|
225
246
|
role.allow(actions.registerPaymentCredentials, () => true);
|
|
226
247
|
role.allow(actions.managePaymentCredentials, isOwnedPaymentCredential);
|
|
227
248
|
role.allow(actions.confirmMediaUpload, () => true);
|
|
249
|
+
role.allow(actions.downloadFile, isFileAccessible);
|
|
250
|
+
role.allow(actions.uploadUserAvatar, canUpdateAvatar);
|
|
228
251
|
};
|
package/src/schema/inputTypes.ts
CHANGED
package/src/schema/mutation.ts
CHANGED
|
@@ -75,7 +75,7 @@ export default [
|
|
|
75
75
|
"""
|
|
76
76
|
Create WebAuthn PublicKeyCredentialCreationOptions to use for Registering a new WebAuthn Device
|
|
77
77
|
"""
|
|
78
|
-
createWebAuthnCredentialCreationOptions(username: String!, extensionOptions: JSON): JSON
|
|
78
|
+
createWebAuthnCredentialCreationOptions(username: String!, extensionOptions: JSON): JSON
|
|
79
79
|
|
|
80
80
|
"""
|
|
81
81
|
Register WebAuthn Credentials for current user
|
|
@@ -90,7 +90,7 @@ export default [
|
|
|
90
90
|
"""
|
|
91
91
|
Create WebAuthn PublicKeyCredentialRequestrOptions to use for WebAuthn Login Flow
|
|
92
92
|
"""
|
|
93
|
-
createWebAuthnCredentialRequestOptions(username: String, extensionOptions: JSON): JSON
|
|
93
|
+
createWebAuthnCredentialRequestOptions(username: String, extensionOptions: JSON): JSON
|
|
94
94
|
|
|
95
95
|
"""
|
|
96
96
|
Creates an alternative cart. If you use this feature, you should use explicit orderId's when using the
|
|
@@ -304,7 +304,12 @@ export default [
|
|
|
304
304
|
"""
|
|
305
305
|
Remove any user or logged in user if userId is not provided
|
|
306
306
|
"""
|
|
307
|
-
removeUser(userId: ID): User!
|
|
307
|
+
removeUser(userId: ID, removeUserReviews: Boolean): User!
|
|
308
|
+
|
|
309
|
+
"""
|
|
310
|
+
Remove product reviews of a user
|
|
311
|
+
"""
|
|
312
|
+
removeUserProductReviews(userId: ID!): Boolean!
|
|
308
313
|
|
|
309
314
|
"""
|
|
310
315
|
Enroll a new user, setting enroll to true will let the user choose his password (e-mail gets sent)
|
package/src/schema/query.ts
CHANGED
|
@@ -15,12 +15,19 @@ export default [
|
|
|
15
15
|
includeGuests: Boolean = false
|
|
16
16
|
queryString: String
|
|
17
17
|
sort: [SortOptionInput!]
|
|
18
|
+
emailVerified: Boolean
|
|
19
|
+
lastLogin: DateFilterInput
|
|
18
20
|
): [User!]!
|
|
19
21
|
|
|
20
22
|
"""
|
|
21
23
|
Get total number of users in the system that match query
|
|
22
24
|
"""
|
|
23
|
-
usersCount(
|
|
25
|
+
usersCount(
|
|
26
|
+
includeGuests: Boolean = false
|
|
27
|
+
queryString: String
|
|
28
|
+
emailVerified: Boolean
|
|
29
|
+
lastLogin: DateFilterInput
|
|
30
|
+
): Int!
|
|
24
31
|
|
|
25
32
|
"""
|
|
26
33
|
Specific user data if userId provided, else returns currently logged in
|
|
@@ -475,15 +482,15 @@ export default [
|
|
|
475
482
|
"""
|
|
476
483
|
Returns aggregated report of all the events that occurred in the system
|
|
477
484
|
"""
|
|
478
|
-
eventStatistics(types: [String!],
|
|
485
|
+
eventStatistics(types: [String!], dateRange: DateFilterInput): [EventStatistics!]!
|
|
479
486
|
"""
|
|
480
487
|
Returns aggregated report of all the orders that occurred in the system
|
|
481
488
|
"""
|
|
482
|
-
orderStatistics(
|
|
489
|
+
orderStatistics(dateRange: DateFilterInput): OrderStatistics!
|
|
483
490
|
"""
|
|
484
491
|
Returns aggregated report of all the worker jobs that occurred in the system
|
|
485
492
|
"""
|
|
486
|
-
workStatistics(types: [String!],
|
|
493
|
+
workStatistics(types: [String!], dateRange: DateFilterInput): [WorkStatistics!]!
|
|
487
494
|
}
|
|
488
495
|
`,
|
|
489
496
|
];
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
export default [
|
|
2
2
|
/* GraphQL */ `
|
|
3
3
|
type Price @cacheControl(maxAge: 60) {
|
|
4
|
-
_id: ID!
|
|
5
4
|
isTaxable: Boolean!
|
|
6
5
|
isNetPrice: Boolean!
|
|
7
6
|
amount: Int!
|
|
@@ -9,7 +8,6 @@ export default [
|
|
|
9
8
|
}
|
|
10
9
|
|
|
11
10
|
type PriceRange @cacheControl(maxAge: 60) {
|
|
12
|
-
_id: ID!
|
|
13
11
|
minPrice: Price!
|
|
14
12
|
maxPrice: Price!
|
|
15
13
|
}
|
package/tests/api-index.test.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// Import the function to be tested.
|
|
2
|
-
import { admin } from '../
|
|
3
|
-
import { actions } from '../
|
|
4
|
-
import { checkAction, ensureActionExists, ensureIsFunction } from '../
|
|
5
|
-
import { NoPermissionError, PermissionSystemError } from '../
|
|
2
|
+
import { admin } from '../src/roles/admin.js';
|
|
3
|
+
import { actions } from '../src/roles/index.js';
|
|
4
|
+
import { checkAction, ensureActionExists, ensureIsFunction } from '../src/acl.js';
|
|
5
|
+
import { NoPermissionError, PermissionSystemError } from '../src/errors.js';
|
|
6
6
|
import { Roles } from '@unchainedshop/roles';
|
|
7
7
|
|
|
8
8
|
describe('API', () => {
|
package/tsconfig.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"extends": "../shared/base.tsconfig.json",
|
|
3
3
|
"compilerOptions": {
|
|
4
|
-
"
|
|
5
|
-
"
|
|
4
|
+
"declarationDir": "./lib",
|
|
5
|
+
"rootDir": "./src",
|
|
6
|
+
"outDir": "./lib"
|
|
6
7
|
},
|
|
7
|
-
"exclude": ["**/*.test.ts", "**/*.test.js", "tests"]
|
|
8
|
-
"include": ["./src"]
|
|
8
|
+
"exclude": ["**/*.test.ts", "**/*.test.js", "tests", "lib"]
|
|
9
9
|
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import Strategy from 'passport-strategy';
|
|
2
|
-
export default class AccessTokenStrategy extends Strategy {
|
|
3
|
-
name: string;
|
|
4
|
-
pass: any;
|
|
5
|
-
_verify: any;
|
|
6
|
-
success: any;
|
|
7
|
-
constructor(verify: any);
|
|
8
|
-
authenticate(req: any): void;
|
|
9
|
-
}
|
|
10
|
-
//# sourceMappingURL=access-token-strategy.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"access-token-strategy.d.ts","sourceRoot":"","sources":["../../../src/express/passport/access-token-strategy.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,mBAAmB,CAAC;AAEzC,MAAM,CAAC,OAAO,OAAO,mBAAoB,SAAQ,QAAQ;IACvD,IAAI,EAAE,MAAM,CAAC;IAEb,IAAI,EAAE,GAAG,CAAC;IAEV,OAAO,EAAE,GAAG,CAAC;IAEb,OAAO,EAAE,GAAG,CAAC;gBAED,MAAM,KAAA;IAalB,YAAY,CAAC,GAAG,KAAA;CAcjB"}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import Strategy from 'passport-strategy';
|
|
2
|
-
export default class AccessTokenStrategy extends Strategy {
|
|
3
|
-
name;
|
|
4
|
-
pass;
|
|
5
|
-
_verify;
|
|
6
|
-
success;
|
|
7
|
-
constructor(verify) {
|
|
8
|
-
super();
|
|
9
|
-
if (!verify) {
|
|
10
|
-
throw new TypeError('AccessTokenStrategy requires a verify callback');
|
|
11
|
-
}
|
|
12
|
-
// eslint-disable-next-line
|
|
13
|
-
this._verify = verify;
|
|
14
|
-
// Set the default name of our strategy
|
|
15
|
-
this.name = 'access-token';
|
|
16
|
-
}
|
|
17
|
-
authenticate(req) {
|
|
18
|
-
if (req.headers.authorization) {
|
|
19
|
-
const [type, token] = req.headers.authorization.split(' ');
|
|
20
|
-
if (type === 'Bearer') {
|
|
21
|
-
// eslint-disable-next-line
|
|
22
|
-
this._verify(token, (err, user) => {
|
|
23
|
-
if (!user || err)
|
|
24
|
-
return this.pass();
|
|
25
|
-
this.success(user);
|
|
26
|
-
});
|
|
27
|
-
return;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
this.pass();
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
//# sourceMappingURL=access-token-strategy.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"access-token-strategy.js","sourceRoot":"","sources":["../../../src/express/passport/access-token-strategy.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,mBAAmB,CAAC;AAEzC,MAAM,CAAC,OAAO,OAAO,mBAAoB,SAAQ,QAAQ;IACvD,IAAI,CAAS;IAEb,IAAI,CAAM;IAEV,OAAO,CAAM;IAEb,OAAO,CAAM;IAEb,YAAY,MAAM;QAChB,KAAK,EAAE,CAAC;QAER,IAAI,CAAC,MAAM,EAAE,CAAC;YACZ,MAAM,IAAI,SAAS,CAAC,gDAAgD,CAAC,CAAC;QACxE,CAAC;QACD,2BAA2B;QAC3B,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;QAEtB,uCAAuC;QACvC,IAAI,CAAC,IAAI,GAAG,cAAc,CAAC;IAC7B,CAAC;IAED,YAAY,CAAC,GAAG;QACd,IAAI,GAAG,CAAC,OAAO,CAAC,aAAa,EAAE,CAAC;YAC9B,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,GAAG,GAAG,CAAC,OAAO,CAAC,aAAa,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;YAC3D,IAAI,IAAI,KAAK,QAAQ,EAAE,CAAC;gBACtB,2BAA2B;gBAC3B,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC,GAAG,EAAE,IAAI,EAAE,EAAE;oBAChC,IAAI,CAAC,IAAI,IAAI,GAAG;wBAAE,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;oBACrC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;gBACrB,CAAC,CAAC,CAAC;gBACH,OAAO;YACT,CAAC;QACH,CAAC;QACD,IAAI,CAAC,IAAI,EAAE,CAAC;IACd,CAAC;CACF"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"setup.d.ts","sourceRoot":"","sources":["../../../src/express/passport/setup.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAIpD,QAAA,MAAM,aAAa,iBAAkB,aAAa,QAqCjD,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { Passport } from 'passport';
|
|
2
|
-
import AccessTokenStrategy from './access-token-strategy.js';
|
|
3
|
-
const setupPassport = (unchainedAPI) => {
|
|
4
|
-
const passport = new Passport();
|
|
5
|
-
passport.serializeUser(function serialize(user, done) {
|
|
6
|
-
done(null, user._id);
|
|
7
|
-
});
|
|
8
|
-
passport.deserializeUser(function deserialize(_id, done) {
|
|
9
|
-
unchainedAPI.modules.users.findUserById(_id).then((user) => {
|
|
10
|
-
done(null, user);
|
|
11
|
-
}, (error) => {
|
|
12
|
-
done(error, null);
|
|
13
|
-
});
|
|
14
|
-
});
|
|
15
|
-
passport.use(new AccessTokenStrategy(function verify(userToken, done) {
|
|
16
|
-
const [username] = userToken.split(':');
|
|
17
|
-
unchainedAPI.modules.users.findUserByToken(userToken).then((user) => {
|
|
18
|
-
if (user?.username === username) {
|
|
19
|
-
done(null, user);
|
|
20
|
-
return;
|
|
21
|
-
}
|
|
22
|
-
done(null, null);
|
|
23
|
-
}, (error) => {
|
|
24
|
-
done(error, null);
|
|
25
|
-
});
|
|
26
|
-
}));
|
|
27
|
-
return passport;
|
|
28
|
-
};
|
|
29
|
-
export default setupPassport;
|
|
30
|
-
//# sourceMappingURL=setup.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"setup.js","sourceRoot":"","sources":["../../../src/express/passport/setup.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AACpC,OAAO,mBAAmB,MAAM,4BAA4B,CAAC;AAE7D,MAAM,aAAa,GAAG,CAAC,YAA2B,EAAE,EAAE;IACpD,MAAM,QAAQ,GAAG,IAAI,QAAQ,EAAE,CAAC;IAEhC,QAAQ,CAAC,aAAa,CAAC,SAAS,SAAS,CAAC,IAAI,EAAE,IAAI;QAClD,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC;IACvB,CAAC,CAAC,CAAC;IAEH,QAAQ,CAAC,eAAe,CAAC,SAAS,WAAW,CAAC,GAAG,EAAE,IAAI;QACrD,YAAY,CAAC,OAAO,CAAC,KAAK,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,IAAI,CAC/C,CAAC,IAAI,EAAE,EAAE;YACP,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;QACnB,CAAC,EACD,CAAC,KAAK,EAAE,EAAE;YACR,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;QACpB,CAAC,CACF,CAAC;IACJ,CAAC,CAAC,CAAC;IAEH,QAAQ,CAAC,GAAG,CACV,IAAI,mBAAmB,CAAC,SAAS,MAAM,CAAC,SAAS,EAAE,IAAI;QACrD,MAAM,CAAC,QAAQ,CAAC,GAAG,SAAS,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QACxC,YAAY,CAAC,OAAO,CAAC,KAAK,CAAC,eAAe,CAAC,SAAS,CAAC,CAAC,IAAI,CACxD,CAAC,IAAI,EAAE,EAAE;YACP,IAAI,IAAI,EAAE,QAAQ,KAAK,QAAQ,EAAE,CAAC;gBAChC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;gBACjB,OAAO;YACT,CAAC;YACD,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;QACnB,CAAC,EACD,CAAC,KAAK,EAAE,EAAE;YACR,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;QACpB,CAAC,CACF,CAAC;IACJ,CAAC,CAAC,CACH,CAAC;IAEF,OAAO,QAAQ,CAAC;AAClB,CAAC,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { Context } from '../../../types.js';
|
|
2
|
-
import { User } from '@unchainedshop/core-users';
|
|
3
|
-
export declare const getOrderCart: (params: {
|
|
4
|
-
orderId?: string;
|
|
5
|
-
user: User;
|
|
6
|
-
}, context: Context) => Promise<import("@unchainedshop/core-orders").Order>;
|
|
7
|
-
//# sourceMappingURL=getOrderCart.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getOrderCart.d.ts","sourceRoot":"","sources":["../../../../src/resolvers/mutations/utils/getOrderCart.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAC;AAGjD,eAAO,MAAM,YAAY,WAAkB;IAAE,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,IAAI,CAAA;CAAE,WAAW,OAAO,wDAc5F,CAAC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { OrderNotFoundError } from '../../../errors.js';
|
|
2
|
-
export const getOrderCart = async (params, context) => {
|
|
3
|
-
const { modules, services } = context;
|
|
4
|
-
const { orderId, user } = params;
|
|
5
|
-
if (orderId) {
|
|
6
|
-
const order = await modules.orders.findOrder({ orderId });
|
|
7
|
-
if (!order)
|
|
8
|
-
throw new OrderNotFoundError({ orderId });
|
|
9
|
-
return order;
|
|
10
|
-
}
|
|
11
|
-
return services.orders.nextUserCart({ user, countryCode: context.countryContext, forceCartCreation: true }, context);
|
|
12
|
-
};
|
|
13
|
-
//# sourceMappingURL=getOrderCart.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getOrderCart.js","sourceRoot":"","sources":["../../../../src/resolvers/mutations/utils/getOrderCart.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAExD,MAAM,CAAC,MAAM,YAAY,GAAG,KAAK,EAAE,MAAwC,EAAE,OAAgB,EAAE,EAAE;IAC/F,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,OAAO,CAAC;IACtC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,MAAM,CAAC;IAEjC,IAAI,OAAO,EAAE,CAAC;QACZ,MAAM,KAAK,GAAG,MAAM,OAAO,CAAC,MAAM,CAAC,SAAS,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC;QAC1D,IAAI,CAAC,KAAK;YAAE,MAAM,IAAI,kBAAkB,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC;QACtD,OAAO,KAAK,CAAC;IACf,CAAC;IAED,OAAO,QAAQ,CAAC,MAAM,CAAC,YAAY,CACjC,EAAE,IAAI,EAAE,WAAW,EAAE,OAAO,CAAC,cAAc,EAAE,iBAAiB,EAAE,IAAI,EAAE,EACtE,OAAO,CACR,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { DeliveryProvider } from '@unchainedshop/core-delivery';
|
|
2
|
-
import { Product } from '@unchainedshop/core-products';
|
|
3
|
-
import { WarehousingProvider } from '@unchainedshop/core-warehousing';
|
|
4
|
-
export declare const Dispatch: {
|
|
5
|
-
_id: (params: {
|
|
6
|
-
product: Product;
|
|
7
|
-
deliveryProvider: DeliveryProvider;
|
|
8
|
-
warehousingProvider: WarehousingProvider;
|
|
9
|
-
referenceDate: Date;
|
|
10
|
-
quantity: number;
|
|
11
|
-
country: string;
|
|
12
|
-
userId?: string;
|
|
13
|
-
}) => string;
|
|
14
|
-
};
|
|
15
|
-
//# sourceMappingURL=dispatch-types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dispatch-types.d.ts","sourceRoot":"","sources":["../../../src/resolvers/type/dispatch-types.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AAEtE,eAAO,MAAM,QAAQ;kBACL;QACZ,OAAO,EAAE,OAAO,CAAC;QACjB,gBAAgB,EAAE,gBAAgB,CAAC;QACnC,mBAAmB,EAAE,mBAAmB,CAAC;QACzC,aAAa,EAAE,IAAI,CAAC;QACpB,QAAQ,EAAE,MAAM,CAAC;QACjB,OAAO,EAAE,MAAM,CAAC;QAChB,MAAM,CAAC,EAAE,MAAM,CAAC;KACjB;CAeF,CAAC"}
|