@evershop/evershop 2.1.1 → 2.1.2
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/dist/components/common/Area.js +199 -12
- package/dist/components/common/Area.js.map +1 -1
- package/dist/components/common/Editor.js +2 -1
- package/dist/components/common/Editor.js.map +1 -1
- package/dist/components/common/ExtendableTable.js +1 -1
- package/dist/components/common/ExtendableTable.js.map +1 -1
- package/dist/components/common/StaticImage.js +2 -2
- package/dist/components/common/StaticImage.js.map +1 -1
- package/dist/components/common/form/Editor.scss +3 -1
- package/dist/components/common/form/ReactSelectCreatableField.d.ts +1 -1
- package/dist/components/common/form/SelectField.js +3 -3
- package/dist/components/common/form/SelectField.js.map +1 -1
- package/dist/components/common/ui/Badge.d.ts +1 -1
- package/dist/components/common/ui/Item.js +1 -1
- package/dist/components/common/ui/Item.js.map +1 -1
- package/dist/components/common/ui/Sonner.d.ts +5 -0
- package/dist/components/common/ui/Sonner.js +24 -0
- package/dist/components/common/ui/Sonner.js.map +1 -0
- package/dist/components/common/ui/Tabs.d.ts +1 -1
- package/dist/components/frontStore/Footer.js +3 -1
- package/dist/components/frontStore/Footer.js.map +1 -1
- package/dist/components/frontStore/Pagination.js +1 -1
- package/dist/components/frontStore/Pagination.js.map +1 -1
- package/dist/components/frontStore/cart/CartContext.d.ts +2 -2
- package/dist/components/frontStore/cart/DefaultCartItemList.js +5 -5
- package/dist/components/frontStore/cart/DefaultCartItemList.js.map +1 -1
- package/dist/components/frontStore/cart/DefaultMiniCartDropdown.js +2 -19
- package/dist/components/frontStore/cart/DefaultMiniCartDropdown.js.map +1 -1
- package/dist/components/frontStore/cart/DefaultMinicartDropdownSummary.d.ts +7 -0
- package/dist/components/frontStore/cart/DefaultMinicartDropdownSummary.js +29 -0
- package/dist/components/frontStore/cart/DefaultMinicartDropdownSummary.js.map +1 -0
- package/dist/components/frontStore/catalog/CategoryInfo.js +2 -2
- package/dist/components/frontStore/catalog/CategoryInfo.js.map +1 -1
- package/dist/components/frontStore/catalog/DefaultCategoryFilterRender.js +1 -1
- package/dist/components/frontStore/catalog/DefaultCategoryFilterRender.js.map +1 -1
- package/dist/components/frontStore/catalog/DefaultProductFilterRender.js +3 -3
- package/dist/components/frontStore/catalog/DefaultProductFilterRender.js.map +1 -1
- package/dist/components/frontStore/catalog/ProductSorting.d.ts +2 -1
- package/dist/components/frontStore/catalog/ProductSorting.js +7 -3
- package/dist/components/frontStore/catalog/ProductSorting.js.map +1 -1
- package/dist/components/frontStore/catalog/SearchBox.d.ts +1 -1
- package/dist/components/frontStore/checkout/CheckoutButton.js +19 -12
- package/dist/components/frontStore/checkout/CheckoutButton.js.map +1 -1
- package/dist/components/frontStore/checkout/CheckoutContext.d.ts +10 -9
- package/dist/components/frontStore/checkout/CheckoutContext.js +39 -25
- package/dist/components/frontStore/checkout/CheckoutContext.js.map +1 -1
- package/dist/components/frontStore/checkout/ContactInformation.js +12 -8
- package/dist/components/frontStore/checkout/ContactInformation.js.map +1 -1
- package/dist/components/frontStore/checkout/Payment.js +19 -12
- package/dist/components/frontStore/checkout/Payment.js.map +1 -1
- package/dist/components/frontStore/checkout/Shipment.js +19 -13
- package/dist/components/frontStore/checkout/Shipment.js.map +1 -1
- package/dist/components/frontStore/checkout/payment/PaymentMethods.js +1 -1
- package/dist/components/frontStore/checkout/payment/PaymentMethods.js.map +1 -1
- package/dist/components/frontStore/checkout/shipment/ShippingMethods.js +2 -2
- package/dist/components/frontStore/checkout/shipment/ShippingMethods.js.map +1 -1
- package/dist/components/frontStore/customer/CustomerContext.d.ts +3 -3
- package/dist/components/frontStore/customer/RegistrationForm.js +1 -1
- package/dist/components/frontStore/customer/address/addressForm/AddressForm.js +1 -1
- package/dist/components/frontStore/customer/address/addressForm/AddressForm.js.map +1 -1
- package/dist/lib/componee/scanForComponents.js.map +1 -1
- package/dist/lib/event/EventProcessor.d.ts +17 -0
- package/dist/lib/event/EventProcessor.js +63 -0
- package/dist/lib/event/EventProcessor.js.map +1 -0
- package/dist/lib/event/EventStorage.d.ts +36 -0
- package/dist/lib/event/EventStorage.js +49 -0
- package/dist/lib/event/EventStorage.js.map +1 -0
- package/dist/lib/event/callSubscibers.d.ts +1 -1
- package/dist/lib/event/callSubscibers.js +7 -11
- package/dist/lib/event/callSubscibers.js.map +1 -1
- package/dist/lib/event/event-manager.js +38 -71
- package/dist/lib/event/event-manager.js.map +1 -1
- package/dist/lib/event/loadSubscribers.d.ts +10 -1
- package/dist/lib/event/loadSubscribers.js +2 -4
- package/dist/lib/event/loadSubscribers.js.map +1 -1
- package/dist/lib/event/tests/unit/EventProcessor.test.d.ts +1 -0
- package/dist/lib/event/tests/unit/EventProcessor.test.js +196 -0
- package/dist/lib/event/tests/unit/EventProcessor.test.js.map +1 -0
- package/dist/lib/event/tests/unit/callSubscribers.test.d.ts +1 -0
- package/dist/lib/event/tests/unit/callSubscribers.test.js +57 -0
- package/dist/lib/event/tests/unit/callSubscribers.test.js.map +1 -0
- package/dist/lib/mail/emailHelper.d.ts +2 -2
- package/dist/lib/postgres/connection.d.ts +3 -1
- package/dist/lib/postgres/connection.js +10 -6
- package/dist/lib/postgres/connection.js.map +1 -1
- package/dist/lib/postgres/query.d.ts +296 -0
- package/dist/lib/postgres/query.js +42 -0
- package/dist/lib/postgres/query.js.map +1 -0
- package/dist/lib/util/getConfig.d.ts +6 -6
- package/dist/lib/util/registry.d.ts +17 -2
- package/dist/lib/util/registry.js.map +1 -1
- package/dist/lib/util/sanitizeHtml.d.ts +16 -0
- package/dist/lib/util/sanitizeHtml.js +45 -0
- package/dist/lib/util/sanitizeHtml.js.map +1 -0
- package/dist/lib/webpack/loaders/AreaLoader.js +0 -1
- package/dist/lib/webpack/loaders/AreaLoader.js.map +1 -1
- package/dist/lib/webpack/util/getTailwindSources.js +1 -1
- package/dist/lib/webpack/util/getTailwindSources.js.map +1 -1
- package/dist/modules/auth/api/refreshUserToken/refreshToken.js +4 -6
- package/dist/modules/auth/api/refreshUserToken/refreshToken.js.map +1 -1
- package/dist/modules/auth/bootstrap.d.ts +1 -1
- package/dist/modules/auth/bootstrap.js +16 -14
- package/dist/modules/auth/bootstrap.js.map +1 -1
- package/dist/modules/auth/services/buildAdminUserPayload.d.ts +10 -0
- package/dist/modules/auth/services/buildAdminUserPayload.js +19 -0
- package/dist/modules/auth/services/buildAdminUserPayload.js.map +1 -0
- package/dist/modules/auth/services/loginUserWithEmail.d.ts +3 -7
- package/dist/modules/auth/services/loginUserWithEmail.js +15 -6
- package/dist/modules/auth/services/loginUserWithEmail.js.map +1 -1
- package/dist/modules/auth/services/logoutUser.d.ts +3 -4
- package/dist/modules/auth/services/logoutUser.js +12 -1
- package/dist/modules/auth/services/logoutUser.js.map +1 -1
- package/dist/modules/base/api/global/[apiResponse]apiErrorHandler.d.ts +3 -1
- package/dist/modules/base/api/global/[apiResponse]apiErrorHandler.js.map +1 -1
- package/dist/modules/base/api/global/[auth]apiResponse[apiErrorHandler].d.ts +3 -1
- package/dist/modules/base/api/global/[auth]apiResponse[apiErrorHandler].js.map +1 -1
- package/dist/modules/base/api/global/[auth]payloadValidate.d.ts +3 -1
- package/dist/modules/base/api/global/[auth]payloadValidate.js +3 -2
- package/dist/modules/base/api/global/[auth]payloadValidate.js.map +1 -1
- package/dist/modules/base/api/global/[payloadValidate]escapeHtml.d.ts +3 -1
- package/dist/modules/base/api/global/[payloadValidate]escapeHtml.js +0 -2
- package/dist/modules/base/api/global/[payloadValidate]escapeHtml.js.map +1 -1
- package/dist/modules/base/migration/Version-1.0.2.d.ts +2 -0
- package/dist/modules/base/migration/Version-1.0.2.js +22 -0
- package/dist/modules/base/migration/Version-1.0.2.js.map +1 -0
- package/dist/modules/base/pages/admin/all/global.scss +1 -1
- package/dist/modules/base/services/escapePayload.js +20 -13
- package/dist/modules/base/services/escapePayload.js.map +1 -1
- package/dist/modules/base/services/markSkipEscape.d.ts +5 -0
- package/dist/modules/base/services/markSkipEscape.js +25 -20
- package/dist/modules/base/services/markSkipEscape.js.map +1 -1
- package/dist/modules/catalog/api/createAttribute/createAttribute[finish].d.ts +3 -1
- package/dist/modules/catalog/api/createCategory/[context]bodyParser[auth].d.ts +1 -1
- package/dist/modules/catalog/api/createCategory/[context]bodyParser[auth].js.map +1 -1
- package/dist/modules/catalog/api/createCategory/createCategory[finish].d.ts +5 -1
- package/dist/modules/catalog/api/createCategory/createCategory[finish].js.map +1 -1
- package/dist/modules/catalog/api/createCategory/finish[apiResponse].d.ts +3 -1
- package/dist/modules/catalog/api/createCategory/finish[apiResponse].js +2 -2
- package/dist/modules/catalog/api/createCategory/finish[apiResponse].js.map +1 -1
- package/dist/modules/catalog/api/createCategory/payloadSchema.json +76 -0
- package/dist/modules/catalog/api/createCollection/[context]bodyParser[auth].d.ts +1 -1
- package/dist/modules/catalog/api/createCollection/[context]bodyParser[auth].js.map +1 -1
- package/dist/modules/catalog/api/createCollection/createCollection[finish].d.ts +4 -1
- package/dist/modules/catalog/api/createCollection/createCollection[finish].js.map +1 -1
- package/dist/modules/catalog/api/createCollection/finish[apiResponse].d.ts +3 -1
- package/dist/modules/catalog/api/createCollection/finish[apiResponse].js +1 -1
- package/dist/modules/catalog/api/createCollection/finish[apiResponse].js.map +1 -1
- package/dist/modules/catalog/{services/collection/collectionDataSchema.json → api/createCollection/payloadSchema.json} +1 -0
- package/dist/modules/catalog/api/createProduct/[context]bodyParser[auth].d.ts +1 -1
- package/dist/modules/catalog/api/createProduct/[context]bodyParser[auth].js.map +1 -1
- package/dist/modules/catalog/api/createProduct/createProduct[finish].d.ts +5 -1
- package/dist/modules/catalog/api/createProduct/createProduct[finish].js.map +1 -1
- package/dist/modules/catalog/api/createProduct/finish[apiResponse].d.ts +3 -1
- package/dist/modules/catalog/api/createProduct/finish[apiResponse].js +2 -2
- package/dist/modules/catalog/api/createProduct/finish[apiResponse].js.map +1 -1
- package/dist/modules/catalog/api/createProduct/payloadSchema.json +76 -0
- package/dist/modules/catalog/api/updateAttribute/updateAttribute[finish].d.ts +3 -1
- package/dist/modules/catalog/api/updateCategory/[context]bodyParser[auth].d.ts +1 -1
- package/dist/modules/catalog/api/updateCategory/[context]bodyParser[auth].js.map +1 -1
- package/dist/modules/catalog/api/updateCategory/finish[apiResponse].d.ts +3 -1
- package/dist/modules/catalog/api/updateCategory/finish[apiResponse].js +2 -2
- package/dist/modules/catalog/api/updateCategory/finish[apiResponse].js.map +1 -1
- package/dist/modules/catalog/api/updateCategory/payloadSchema.json +76 -0
- package/dist/modules/catalog/api/updateCategory/updateCategory[finish].d.ts +5 -1
- package/dist/modules/catalog/api/updateCategory/updateCategory[finish].js +1 -1
- package/dist/modules/catalog/api/updateCategory/updateCategory[finish].js.map +1 -1
- package/dist/modules/catalog/api/updateCollection/[context]bodyParser[auth].d.ts +1 -1
- package/dist/modules/catalog/api/updateCollection/[context]bodyParser[auth].js.map +1 -1
- package/dist/modules/catalog/api/updateCollection/finish[apiResponse].d.ts +3 -1
- package/dist/modules/catalog/api/updateCollection/finish[apiResponse].js +1 -1
- package/dist/modules/catalog/api/updateCollection/finish[apiResponse].js.map +1 -1
- package/{src/modules/catalog/services/collection/collectionDataSchema.json → dist/modules/catalog/api/updateCollection/payloadSchema.json} +1 -0
- package/dist/modules/catalog/api/updateCollection/updateCollection[finish].d.ts +5 -1
- package/dist/modules/catalog/api/updateCollection/updateCollection[finish].js +1 -1
- package/dist/modules/catalog/api/updateCollection/updateCollection[finish].js.map +1 -1
- package/dist/modules/catalog/api/updateProduct/[context]bodyParser[auth].d.ts +1 -1
- package/dist/modules/catalog/api/updateProduct/[context]bodyParser[auth].js.map +1 -1
- package/dist/modules/catalog/api/updateProduct/finish[apiResponse].d.ts +3 -1
- package/dist/modules/catalog/api/updateProduct/finish[apiResponse].js +2 -2
- package/dist/modules/catalog/api/updateProduct/finish[apiResponse].js.map +1 -1
- package/dist/modules/catalog/api/updateProduct/payloadSchema.json +76 -0
- package/dist/modules/catalog/api/updateProduct/updateProduct[finish].d.ts +5 -1
- package/dist/modules/catalog/api/updateProduct/updateProduct[finish].js +1 -1
- package/dist/modules/catalog/api/updateProduct/updateProduct[finish].js.map +1 -1
- package/dist/modules/catalog/graphql/types/Category/Category.resolvers.d.ts +36 -37
- package/dist/modules/catalog/graphql/types/Category/Category.resolvers.js +0 -18
- package/dist/modules/catalog/graphql/types/Category/Category.resolvers.js.map +1 -1
- package/dist/modules/catalog/graphql/types/Collection/Collection.resolvers.js +1 -8
- package/dist/modules/catalog/graphql/types/Collection/Collection.resolvers.js.map +1 -1
- package/dist/modules/catalog/graphql/types/Product/Product.resolvers.js +0 -18
- package/dist/modules/catalog/graphql/types/Product/Product.resolvers.js.map +1 -1
- package/dist/modules/catalog/pages/admin/productEdit/variants/CreateVariant.js +4 -3
- package/dist/modules/catalog/pages/admin/productEdit/variants/CreateVariant.js.map +1 -1
- package/dist/modules/catalog/pages/admin/productEdit/variants/CreateVariantGroup.d.ts +1 -0
- package/dist/modules/catalog/pages/admin/productEdit/variants/CreateVariantGroup.js +12 -6
- package/dist/modules/catalog/pages/admin/productEdit/variants/CreateVariantGroup.js.map +1 -1
- package/dist/modules/catalog/pages/admin/productEdit/variants/EditVariant.js +4 -3
- package/dist/modules/catalog/pages/admin/productEdit/variants/EditVariant.js.map +1 -1
- package/dist/modules/catalog/pages/admin/productEdit/variants/New.js +6 -10
- package/dist/modules/catalog/pages/admin/productEdit/variants/New.js.map +1 -1
- package/dist/modules/catalog/pages/admin/productEdit/variants/VariantModal.d.ts +2 -0
- package/dist/modules/catalog/pages/admin/productEdit/variants/VariantModal.js +8 -2
- package/dist/modules/catalog/pages/admin/productEdit/variants/VariantModal.js.map +1 -1
- package/dist/modules/catalog/pages/admin/productEdit+productNew/General.js +4 -1
- package/dist/modules/catalog/pages/admin/productEdit+productNew/General.js.map +1 -1
- package/dist/modules/catalog/pages/frontStore/categoryView/CategoryView.js +1 -6
- package/dist/modules/catalog/pages/frontStore/categoryView/CategoryView.js.map +1 -1
- package/dist/modules/catalog/pages/frontStore/productView/ProductView.js +7 -1
- package/dist/modules/catalog/pages/frontStore/productView/ProductView.js.map +1 -1
- package/dist/modules/catalog/services/attribute/createProductAttribute.d.ts +78 -2
- package/dist/modules/catalog/services/attribute/createProductAttribute.js +25 -1
- package/dist/modules/catalog/services/attribute/createProductAttribute.js.map +1 -1
- package/dist/modules/catalog/services/attribute/deleteProductAttribute.d.ts +7 -1
- package/dist/modules/catalog/services/attribute/deleteProductAttribute.js +13 -1
- package/dist/modules/catalog/services/attribute/deleteProductAttribute.js.map +1 -1
- package/dist/modules/catalog/services/attribute/updateProductAttribute.d.ts +56 -2
- package/dist/modules/catalog/services/attribute/updateProductAttribute.js +28 -6
- package/dist/modules/catalog/services/attribute/updateProductAttribute.js.map +1 -1
- package/dist/modules/catalog/services/category/createCategory.d.ts +28 -2
- package/dist/modules/catalog/services/category/createCategory.js +18 -1
- package/dist/modules/catalog/services/category/createCategory.js.map +1 -1
- package/dist/modules/catalog/services/category/deleteCategory.d.ts +7 -1
- package/dist/modules/catalog/services/category/deleteCategory.js +13 -1
- package/dist/modules/catalog/services/category/deleteCategory.js.map +1 -1
- package/dist/modules/catalog/services/category/updateCategory.d.ts +25 -1
- package/dist/modules/catalog/services/category/updateCategory.js +26 -4
- package/dist/modules/catalog/services/category/updateCategory.js.map +1 -1
- package/dist/modules/catalog/services/collection/createCollection.d.ts +12 -3
- package/dist/modules/catalog/services/collection/createCollection.js +20 -20
- package/dist/modules/catalog/services/collection/createCollection.js.map +1 -1
- package/dist/modules/catalog/services/collection/deleteCollection.d.ts +7 -1
- package/dist/modules/catalog/services/collection/deleteCollection.js +13 -1
- package/dist/modules/catalog/services/collection/deleteCollection.js.map +1 -1
- package/dist/modules/catalog/services/collection/updateCollection.d.ts +9 -1
- package/dist/modules/catalog/services/collection/updateCollection.js +22 -24
- package/dist/modules/catalog/services/collection/updateCollection.js.map +1 -1
- package/dist/modules/catalog/services/index.d.ts +29 -18
- package/dist/modules/catalog/services/index.js +35 -18
- package/dist/modules/catalog/services/index.js.map +1 -1
- package/dist/modules/catalog/services/product/createProduct.d.ts +56 -4
- package/dist/modules/catalog/services/product/createProduct.js +36 -1
- package/dist/modules/catalog/services/product/createProduct.js.map +1 -1
- package/dist/modules/catalog/services/product/deleteProduct.d.ts +7 -2
- package/dist/modules/catalog/services/product/deleteProduct.js +13 -1
- package/dist/modules/catalog/services/product/deleteProduct.js.map +1 -1
- package/dist/modules/catalog/services/product/updateProduct.d.ts +58 -2
- package/dist/modules/catalog/services/product/updateProduct.js +43 -4
- package/dist/modules/catalog/services/product/updateProduct.js.map +1 -1
- package/dist/modules/checkout/pages/frontStore/cart/ShoppingCart.js +1 -3
- package/dist/modules/checkout/pages/frontStore/cart/ShoppingCart.js.map +1 -1
- package/dist/modules/checkout/pages/frontStore/checkout/Checkout.js +3 -1
- package/dist/modules/checkout/pages/frontStore/checkout/Checkout.js.map +1 -1
- package/dist/modules/checkout/services/addBillingAddress.d.ts +15 -0
- package/dist/modules/checkout/services/addBillingAddress.js +24 -6
- package/dist/modules/checkout/services/addBillingAddress.js.map +1 -1
- package/dist/modules/checkout/services/addCartItem.d.ts +12 -0
- package/dist/modules/checkout/services/addCartItem.js +7 -1
- package/dist/modules/checkout/services/addCartItem.js.map +1 -1
- package/dist/modules/checkout/services/addShippingAddress.d.ts +13 -0
- package/dist/modules/checkout/services/addShippingAddress.js +18 -6
- package/dist/modules/checkout/services/addShippingAddress.js.map +1 -1
- package/dist/modules/checkout/services/checkout.d.ts +19 -1
- package/dist/modules/checkout/services/checkout.js +12 -6
- package/dist/modules/checkout/services/checkout.js.map +1 -1
- package/dist/modules/checkout/services/index.d.ts +5 -3
- package/dist/modules/checkout/services/index.js +5 -3
- package/dist/modules/checkout/services/index.js.map +1 -1
- package/dist/modules/checkout/services/orderCreator.d.ts +48 -0
- package/dist/modules/checkout/services/orderCreator.js +25 -1
- package/dist/modules/checkout/services/orderCreator.js.map +1 -1
- package/dist/modules/checkout/services/removeCartItem.d.ts +8 -0
- package/dist/modules/checkout/services/removeCartItem.js +7 -1
- package/dist/modules/checkout/services/removeCartItem.js.map +1 -1
- package/dist/modules/checkout/services/updateCartItemQty.d.ts +14 -0
- package/dist/modules/checkout/services/updateCartItemQty.js +7 -1
- package/dist/modules/checkout/services/updateCartItemQty.js.map +1 -1
- package/dist/modules/cms/api/createCmsPage/[context]bodyParser[auth].d.ts +1 -1
- package/dist/modules/cms/api/createCmsPage/[context]bodyParser[auth].js.map +1 -1
- package/dist/modules/cms/api/createCmsPage/createPage[finish].d.ts +3 -1
- package/dist/modules/cms/api/createCmsPage/createPage[finish].js +1 -1
- package/dist/modules/cms/api/createCmsPage/createPage[finish].js.map +1 -1
- package/dist/modules/cms/api/createCmsPage/finish[apiResponse].d.ts +3 -1
- package/dist/modules/cms/api/createCmsPage/finish[apiResponse].js +2 -2
- package/dist/modules/cms/api/createCmsPage/finish[apiResponse].js.map +1 -1
- package/dist/modules/cms/api/createCmsPage/payloadSchema.json +76 -0
- package/dist/modules/cms/api/deleteCmsPage/deleteCmsPage.d.ts +3 -1
- package/dist/modules/cms/api/deleteCmsPage/deleteCmsPage.js +1 -1
- package/dist/modules/cms/api/deleteCmsPage/deleteCmsPage.js.map +1 -1
- package/dist/modules/cms/api/updateCmsPage/[context]bodyParser[auth].d.ts +1 -1
- package/dist/modules/cms/api/updateCmsPage/[context]bodyParser[auth].js.map +1 -1
- package/dist/modules/cms/api/updateCmsPage/finish[apiResponse].d.ts +3 -1
- package/dist/modules/cms/api/updateCmsPage/finish[apiResponse].js +2 -2
- package/dist/modules/cms/api/updateCmsPage/finish[apiResponse].js.map +1 -1
- package/dist/modules/cms/api/updateCmsPage/payloadSchema.json +76 -0
- package/dist/modules/cms/api/updateCmsPage/updatePage[finish].d.ts +2 -1
- package/dist/modules/cms/api/updateCmsPage/updatePage[finish].js.map +1 -1
- package/dist/modules/cms/bootstrap.d.ts +1 -1
- package/dist/modules/cms/bootstrap.js +18 -0
- package/dist/modules/cms/bootstrap.js.map +1 -1
- package/dist/modules/cms/components/BasicMenu.js +1 -1
- package/dist/modules/cms/components/BasicMenu.js.map +1 -1
- package/dist/modules/cms/graphql/types/CmsPage/CmsPage.resolvers.js +0 -18
- package/dist/modules/cms/graphql/types/CmsPage/CmsPage.resolvers.js.map +1 -1
- package/dist/modules/cms/graphql/types/Widget/Widget.resolvers.js +0 -17
- package/dist/modules/cms/graphql/types/Widget/Widget.resolvers.js.map +1 -1
- package/dist/modules/cms/services/index.d.ts +3 -0
- package/dist/modules/cms/services/index.js +3 -0
- package/dist/modules/cms/services/index.js.map +1 -1
- package/dist/modules/cms/services/page/createPage.d.ts +18 -2
- package/dist/modules/cms/services/page/createPage.js +25 -7
- package/dist/modules/cms/services/page/createPage.js.map +1 -1
- package/dist/modules/cms/services/page/deletePage.d.ts +6 -2
- package/dist/modules/cms/services/page/deletePage.js +18 -6
- package/dist/modules/cms/services/page/deletePage.js.map +1 -1
- package/dist/modules/cms/services/page/pageDataSchema.json +9 -1
- package/dist/modules/cms/services/page/updatePage.d.ts +22 -1
- package/dist/modules/cms/services/page/updatePage.js +19 -2
- package/dist/modules/cms/services/page/updatePage.js.map +1 -1
- package/dist/modules/cms/services/widget/createWidget.d.ts +12 -1
- package/dist/modules/cms/services/widget/createWidget.js +14 -2
- package/dist/modules/cms/services/widget/createWidget.js.map +1 -1
- package/dist/modules/cms/services/widget/deleteWidget.d.ts +7 -1
- package/dist/modules/cms/services/widget/deleteWidget.js +13 -1
- package/dist/modules/cms/services/widget/deleteWidget.js.map +1 -1
- package/dist/modules/cms/services/widget/updateWidget.d.ts +7 -1
- package/dist/modules/cms/services/widget/updateWidget.js +15 -3
- package/dist/modules/cms/services/widget/updateWidget.js.map +1 -1
- package/dist/modules/cod/pages/frontStore/checkout/CashOnDelivery.js +2 -2
- package/dist/modules/cod/pages/frontStore/checkout/CashOnDelivery.js.map +1 -1
- package/dist/modules/customer/api/refreshCustomerToken/refreshToken.js +4 -6
- package/dist/modules/customer/api/refreshCustomerToken/refreshToken.js.map +1 -1
- package/dist/modules/customer/pages/frontStore/login/LoginPage.js +10 -9
- package/dist/modules/customer/pages/frontStore/login/LoginPage.js.map +1 -1
- package/dist/modules/customer/pages/frontStore/register/RegisterPage.js +14 -13
- package/dist/modules/customer/pages/frontStore/register/RegisterPage.js.map +1 -1
- package/dist/modules/customer/services/customer/address/createCustomerAddress.d.ts +13 -0
- package/dist/modules/customer/services/customer/address/createCustomerAddress.js +13 -1
- package/dist/modules/customer/services/customer/address/createCustomerAddress.js.map +1 -1
- package/dist/modules/customer/services/customer/address/deleteCustomerAddress.d.ts +5 -0
- package/dist/modules/customer/services/customer/address/deleteCustomerAddress.js +13 -1
- package/dist/modules/customer/services/customer/address/deleteCustomerAddress.js.map +1 -1
- package/dist/modules/customer/services/customer/address/updateCustomerAddress.d.ts +13 -0
- package/dist/modules/customer/services/customer/address/updateCustomerAddress.js +13 -1
- package/dist/modules/customer/services/customer/address/updateCustomerAddress.js.map +1 -1
- package/dist/modules/customer/services/customer/buildCustomerPayload.d.ts +8 -0
- package/dist/modules/customer/services/customer/buildCustomerPayload.js +19 -0
- package/dist/modules/customer/services/customer/buildCustomerPayload.js.map +1 -0
- package/dist/modules/customer/services/customer/createCustomer.d.ts +19 -1
- package/dist/modules/customer/services/customer/createCustomer.js +17 -4
- package/dist/modules/customer/services/customer/createCustomer.js.map +1 -1
- package/dist/modules/customer/services/customer/deleteCustomer.d.ts +7 -2
- package/dist/modules/customer/services/customer/deleteCustomer.js +13 -1
- package/dist/modules/customer/services/customer/deleteCustomer.js.map +1 -1
- package/dist/modules/customer/services/customer/loginCustomerWithEmail.js +3 -4
- package/dist/modules/customer/services/customer/loginCustomerWithEmail.js.map +1 -1
- package/dist/modules/customer/services/customer/updateCustomer.d.ts +23 -1
- package/dist/modules/customer/services/customer/updateCustomer.js +13 -1
- package/dist/modules/customer/services/customer/updateCustomer.js.map +1 -1
- package/dist/modules/customer/services/customer/updatePassword.d.ts +13 -0
- package/dist/modules/customer/services/customer/updatePassword.js +13 -1
- package/dist/modules/customer/services/customer/updatePassword.js.map +1 -1
- package/dist/modules/customer/services/index.d.ts +17 -11
- package/dist/modules/customer/services/index.js +26 -11
- package/dist/modules/customer/services/index.js.map +1 -1
- package/dist/modules/oms/bootstrap.js +8 -8
- package/dist/modules/oms/bootstrap.js.map +1 -1
- package/dist/modules/oms/services/addOrderActivityLog.d.ts +20 -0
- package/dist/modules/oms/services/addOrderActivityLog.js +7 -1
- package/dist/modules/oms/services/addOrderActivityLog.js.map +1 -1
- package/dist/modules/oms/services/addPaymentTransaction.d.ts +3 -0
- package/dist/modules/oms/services/addPaymentTransaction.js +16 -0
- package/dist/modules/oms/services/addPaymentTransaction.js.map +1 -0
- package/dist/modules/oms/services/cancelOrder.d.ts +61 -0
- package/dist/modules/oms/services/cancelOrder.js +31 -1
- package/dist/modules/oms/services/cancelOrder.js.map +1 -1
- package/dist/modules/oms/services/createShipment.d.ts +20 -0
- package/dist/modules/oms/services/createShipment.js +7 -1
- package/dist/modules/oms/services/createShipment.js.map +1 -1
- package/dist/modules/oms/services/index.d.ts +4 -0
- package/dist/modules/oms/services/index.js +4 -0
- package/dist/modules/oms/services/index.js.map +1 -1
- package/dist/modules/oms/services/orderLoader.d.ts +8 -0
- package/dist/modules/oms/services/orderLoader.js +57 -0
- package/dist/modules/oms/services/orderLoader.js.map +1 -0
- package/dist/modules/oms/services/statusManager.d.ts +54 -0
- package/dist/modules/oms/services/statusManager.js +101 -0
- package/dist/modules/oms/services/statusManager.js.map +1 -0
- package/dist/modules/oms/services/updateOrderStatus.d.ts +37 -0
- package/dist/modules/oms/services/updateOrderStatus.js +34 -9
- package/dist/modules/oms/services/updateOrderStatus.js.map +1 -1
- package/dist/modules/oms/services/updatePaymentStatus.d.ts +26 -0
- package/dist/modules/oms/services/updatePaymentStatus.js +13 -1
- package/dist/modules/oms/services/updatePaymentStatus.js.map +1 -1
- package/dist/modules/oms/services/updateShipmentStatus.d.ts +26 -0
- package/dist/modules/oms/services/updateShipmentStatus.js +13 -1
- package/dist/modules/oms/services/updateShipmentStatus.js.map +1 -1
- package/dist/modules/paypal/api/paypalAuthorizePayment/[bodyParser]authorize.js +1 -1
- package/dist/modules/paypal/api/paypalAuthorizePayment/[bodyParser]authorize.js.map +1 -1
- package/dist/modules/paypal/api/paypalCaptureAuthorizedPayment/[bodyParser]capture.js +2 -2
- package/dist/modules/paypal/api/paypalCaptureAuthorizedPayment/[bodyParser]capture.js.map +1 -1
- package/dist/modules/paypal/api/paypalCapturePayment/[bodyParser]capture.js +1 -1
- package/dist/modules/paypal/api/paypalCapturePayment/[bodyParser]capture.js.map +1 -1
- package/dist/modules/paypal/bootstrap.d.ts +1 -1
- package/dist/modules/paypal/bootstrap.js +22 -2
- package/dist/modules/paypal/bootstrap.js.map +1 -1
- package/dist/modules/paypal/graphql/types/PaypalSetting/PaypalSetting.admin.resolvers.d.ts +1 -1
- package/dist/modules/paypal/migration/Version-1.0.0.d.ts +3 -0
- package/dist/modules/paypal/migration/Version-1.0.0.js +19 -0
- package/dist/modules/paypal/migration/Version-1.0.0.js.map +1 -0
- package/dist/modules/paypal/pages/admin/orderEdit/PaypalCaptureButton.js +1 -1
- package/dist/modules/paypal/pages/admin/orderEdit/PaypalCaptureButton.js.map +1 -1
- package/dist/modules/paypal/pages/frontStore/checkout/Paypal.js +8 -3
- package/dist/modules/paypal/pages/frontStore/checkout/Paypal.js.map +1 -1
- package/dist/modules/promotion/api/createCoupon/createCoupon[finish].d.ts +1 -1
- package/dist/modules/promotion/api/updateCoupon/updateCoupon[finish].d.ts +1 -1
- package/dist/modules/promotion/services/coupon/createCoupon.d.ts +45 -1
- package/dist/modules/promotion/services/coupon/createCoupon.js +17 -5
- package/dist/modules/promotion/services/coupon/createCoupon.js.map +1 -1
- package/dist/modules/promotion/services/coupon/deleteCoupon.d.ts +8 -1
- package/dist/modules/promotion/services/coupon/deleteCoupon.js +16 -4
- package/dist/modules/promotion/services/coupon/deleteCoupon.js.map +1 -1
- package/dist/modules/promotion/services/coupon/updateCoupon.d.ts +8 -1
- package/dist/modules/promotion/services/coupon/updateCoupon.js +27 -13
- package/dist/modules/promotion/services/coupon/updateCoupon.js.map +1 -1
- package/dist/modules/promotion/services/index.d.ts +6 -0
- package/dist/modules/promotion/services/index.js +10 -0
- package/dist/modules/promotion/services/index.js.map +1 -0
- package/dist/modules/setting/services/setting.d.ts +10 -1
- package/dist/modules/setting/services/setting.js +27 -0
- package/dist/modules/setting/services/setting.js.map +1 -1
- package/dist/modules/stripe/api/capturePaymentIntent/[context]bodyParser[auth].d.ts +1 -1
- package/dist/modules/stripe/api/capturePaymentIntent/[context]bodyParser[auth].js.map +1 -1
- package/dist/modules/stripe/api/capturePaymentIntent/capturePaymentIntent.d.ts +4 -1
- package/dist/modules/stripe/api/capturePaymentIntent/capturePaymentIntent.js +6 -4
- package/dist/modules/stripe/api/capturePaymentIntent/capturePaymentIntent.js.map +1 -1
- package/dist/modules/stripe/api/createPaymentIntent/[context]bodyParser[auth].d.ts +1 -1
- package/dist/modules/stripe/api/createPaymentIntent/[context]bodyParser[auth].js.map +1 -1
- package/dist/modules/stripe/api/createPaymentIntent/createPaymentIntent.d.ts +3 -1
- package/dist/modules/stripe/api/createPaymentIntent/createPaymentIntent.js +4 -4
- package/dist/modules/stripe/api/createPaymentIntent/createPaymentIntent.js.map +1 -1
- package/dist/modules/stripe/api/refundPaymentIntent/[context]bodyParser[auth].d.ts +1 -1
- package/dist/modules/stripe/api/refundPaymentIntent/[context]bodyParser[auth].js.map +1 -1
- package/dist/modules/stripe/api/refundPaymentIntent/refundPaymentIntent.d.ts +1 -1
- package/dist/modules/stripe/api/refundPaymentIntent/refundPaymentIntent.js +11 -7
- package/dist/modules/stripe/api/refundPaymentIntent/refundPaymentIntent.js.map +1 -1
- package/dist/modules/stripe/api/stripeWebHook/[bodyJson]webhook.d.ts +3 -1
- package/dist/modules/stripe/api/stripeWebHook/[bodyJson]webhook.js +6 -6
- package/dist/modules/stripe/api/stripeWebHook/[bodyJson]webhook.js.map +1 -1
- package/dist/modules/stripe/api/stripeWebHook/bodyJson.d.ts +1 -1
- package/dist/modules/stripe/api/stripeWebHook/bodyJson.js.map +1 -1
- package/dist/modules/stripe/bootstrap.d.ts +1 -1
- package/dist/modules/stripe/bootstrap.js +31 -15
- package/dist/modules/stripe/bootstrap.js.map +1 -1
- package/dist/modules/stripe/graphql/types/StripeSetting/StripeSetting.resolvers.d.ts +1 -1
- package/dist/modules/stripe/migration/Version-1.0.0.d.ts +3 -0
- package/dist/modules/stripe/migration/Version-1.0.0.js +19 -0
- package/dist/modules/stripe/migration/Version-1.0.0.js.map +1 -0
- package/dist/modules/stripe/pages/admin/orderEdit/StripeCaptureButton.js +1 -1
- package/dist/modules/stripe/pages/admin/orderEdit/StripeCaptureButton.js.map +1 -1
- package/dist/modules/stripe/pages/admin/orderEdit/StripeRefundButton.js +7 -3
- package/dist/modules/stripe/pages/admin/orderEdit/StripeRefundButton.js.map +1 -1
- package/dist/modules/stripe/pages/frontStore/checkout/Stripe.js +16 -7
- package/dist/modules/stripe/pages/frontStore/checkout/Stripe.js.map +1 -1
- package/dist/modules/stripe/pages/frontStore/stripeReturn/index.d.ts +3 -1
- package/dist/modules/stripe/pages/frontStore/stripeReturn/index.js +8 -4
- package/dist/modules/stripe/pages/frontStore/stripeReturn/index.js.map +1 -1
- package/dist/modules/stripe/services/cancelPayment.d.ts +1 -1
- package/dist/modules/stripe/services/cancelPayment.js +3 -3
- package/dist/modules/stripe/services/cancelPayment.js.map +1 -1
- package/dist/types/apiResponse.d.ts +1 -1
- package/dist/types/appContext.d.ts +7 -4
- package/dist/types/customerAddress.d.ts +1 -1
- package/dist/types/db/index.d.ts +61 -61
- package/dist/types/event.d.ts +27 -14
- package/dist/types/registry.d.ts +119 -0
- package/dist/types/registry.js +2 -0
- package/dist/types/registry.js.map +1 -0
- package/dist/types/widget.d.ts +3 -0
- package/package.json +21 -12
- package/src/components/common/Area.tsx +256 -40
- package/src/components/common/Editor.tsx +6 -3
- package/src/components/common/ExtendableTable.tsx +1 -1
- package/src/components/common/StaticImage.tsx +2 -2
- package/src/components/common/form/Editor.scss +3 -1
- package/src/components/common/form/ReactSelectCreatableField.tsx +1 -1
- package/src/components/common/form/SelectField.tsx +1 -1
- package/src/components/common/ui/Item.tsx +1 -1
- package/src/components/common/ui/Sonner.tsx +43 -0
- package/src/components/frontStore/Footer.tsx +2 -0
- package/src/components/frontStore/Pagination.tsx +1 -1
- package/src/components/frontStore/cart/CartContext.tsx +2 -2
- package/src/components/frontStore/cart/DefaultCartItemList.tsx +5 -5
- package/src/components/frontStore/cart/DefaultMiniCartDropdown.tsx +7 -37
- package/src/components/frontStore/cart/DefaultMinicartDropdownSummary.tsx +57 -0
- package/src/components/frontStore/catalog/CategoryInfo.tsx +2 -2
- package/src/components/frontStore/catalog/DefaultCategoryFilterRender.tsx +1 -1
- package/src/components/frontStore/catalog/DefaultProductFilterRender.tsx +3 -3
- package/src/components/frontStore/catalog/ProductSorting.tsx +13 -4
- package/src/components/frontStore/catalog/SearchBox.tsx +1 -1
- package/src/components/frontStore/checkout/CheckoutButton.tsx +40 -31
- package/src/components/frontStore/checkout/CheckoutContext.tsx +55 -36
- package/src/components/frontStore/checkout/ContactInformation.tsx +28 -23
- package/src/components/frontStore/checkout/Payment.tsx +36 -27
- package/src/components/frontStore/checkout/Shipment.tsx +35 -28
- package/src/components/frontStore/checkout/payment/PaymentMethods.tsx +1 -1
- package/src/components/frontStore/checkout/shipment/ShippingMethods.tsx +6 -2
- package/src/components/frontStore/customer/CustomerContext.tsx +5 -5
- package/src/components/frontStore/customer/RegistrationForm.tsx +1 -1
- package/src/components/frontStore/customer/address/addressForm/AddressForm.tsx +1 -0
- package/src/lib/componee/scanForComponents.ts +0 -1
- package/src/lib/event/EventProcessor.ts +78 -0
- package/src/lib/event/EventStorage.ts +74 -0
- package/src/lib/event/callSubscibers.ts +13 -0
- package/src/lib/event/event-manager.ts +96 -0
- package/src/lib/event/{loadSubscribers.js → loadSubscribers.ts} +20 -8
- package/src/lib/event/tests/unit/EventProcessor.test.js +262 -0
- package/src/lib/event/tests/unit/callSubscribers.test.js +77 -0
- package/src/lib/mail/emailHelper.ts +2 -2
- package/src/lib/postgres/connection.ts +11 -7
- package/src/lib/postgres/query.ts +582 -0
- package/src/lib/util/getConfig.ts +6 -6
- package/src/lib/util/registry.ts +31 -0
- package/src/lib/util/sanitizeHtml.ts +59 -0
- package/src/lib/webpack/loaders/AreaLoader.js +0 -1
- package/src/lib/webpack/util/getTailwindSources.ts +1 -1
- package/src/modules/auth/api/refreshUserToken/refreshToken.ts +4 -6
- package/src/modules/auth/bootstrap.ts +33 -0
- package/src/modules/auth/services/buildAdminUserPayload.ts +22 -0
- package/src/modules/auth/services/loginUserWithEmail.ts +36 -6
- package/src/modules/auth/services/logoutUser.ts +22 -1
- package/src/modules/base/api/global/{[apiResponse]apiErrorHandler.js → [apiResponse]apiErrorHandler.ts} +8 -1
- package/src/modules/base/api/global/{[auth]apiResponse[apiErrorHandler].js → [auth]apiResponse[apiErrorHandler].ts} +7 -1
- package/src/modules/base/api/global/{[auth]payloadValidate.js → [auth]payloadValidate.ts} +10 -3
- package/src/modules/base/api/global/[payloadValidate]escapeHtml.ts +12 -0
- package/src/modules/base/migration/Version-1.0.2.js +37 -0
- package/src/modules/base/pages/admin/all/global.scss +1 -1
- package/src/modules/base/services/{escapePayload.js → escapePayload.ts} +17 -11
- package/src/modules/base/services/markSkipEscape.ts +43 -0
- package/src/modules/catalog/api/createCategory/createCategory[finish].ts +10 -0
- package/src/modules/catalog/api/createCategory/{finish[apiResponse].js → finish[apiResponse].ts} +13 -4
- package/src/modules/catalog/api/createCategory/payloadSchema.json +76 -0
- package/src/modules/catalog/api/createCollection/{createCollection[finish].js → createCollection[finish].ts} +2 -1
- package/src/modules/catalog/api/{updateCollection/finish[apiResponse].js → createCollection/finish[apiResponse].ts} +12 -3
- package/src/modules/catalog/api/createCollection/payloadSchema.json +94 -0
- package/src/modules/catalog/api/createProduct/createProduct[finish].ts +10 -0
- package/src/modules/catalog/api/createProduct/{finish[apiResponse].js → finish[apiResponse].ts} +13 -4
- package/src/modules/catalog/api/createProduct/payloadSchema.json +76 -0
- package/src/modules/catalog/api/updateCategory/{finish[apiResponse].js → finish[apiResponse].ts} +13 -4
- package/src/modules/catalog/api/updateCategory/payloadSchema.json +76 -0
- package/src/modules/catalog/api/updateCategory/updateCategory[finish].ts +14 -0
- package/src/modules/catalog/api/{createCollection/finish[apiResponse].js → updateCollection/finish[apiResponse].ts} +12 -3
- package/src/modules/catalog/api/updateCollection/payloadSchema.json +94 -0
- package/src/modules/catalog/api/updateCollection/updateCollection[finish].ts +14 -0
- package/src/modules/catalog/api/updateProduct/{finish[apiResponse].js → finish[apiResponse].ts} +13 -4
- package/src/modules/catalog/api/updateProduct/payloadSchema.json +76 -0
- package/src/modules/catalog/api/updateProduct/updateProduct[finish].ts +14 -0
- package/src/modules/catalog/graphql/types/Category/{Category.resolvers.js → Category.resolvers.ts} +0 -21
- package/src/modules/catalog/graphql/types/Collection/Collection.resolvers.js +1 -8
- package/src/modules/catalog/graphql/types/Product/Product.resolvers.ts +0 -20
- package/src/modules/catalog/pages/admin/productEdit/variants/CreateVariant.tsx +6 -2
- package/src/modules/catalog/pages/admin/productEdit/variants/CreateVariantGroup.tsx +22 -11
- package/src/modules/catalog/pages/admin/productEdit/variants/EditVariant.tsx +10 -3
- package/src/modules/catalog/pages/admin/productEdit/variants/New.tsx +8 -23
- package/src/modules/catalog/pages/admin/productEdit/variants/VariantModal.tsx +10 -2
- package/src/modules/catalog/pages/admin/productEdit+productNew/General.tsx +5 -2
- package/src/modules/catalog/pages/frontStore/categoryView/CategoryView.tsx +4 -8
- package/src/modules/catalog/pages/frontStore/productView/ProductView.tsx +10 -1
- package/src/modules/catalog/services/attribute/createProductAttribute.ts +146 -8
- package/src/modules/catalog/services/attribute/deleteProductAttribute.ts +58 -4
- package/src/modules/catalog/services/attribute/updateProductAttribute.ts +128 -12
- package/src/modules/catalog/services/category/createCategory.ts +66 -6
- package/src/modules/catalog/services/category/deleteCategory.ts +61 -4
- package/src/modules/catalog/services/category/updateCategory.ts +75 -10
- package/src/modules/catalog/services/collection/createCollection.ts +71 -30
- package/src/modules/catalog/services/collection/deleteCollection.ts +58 -4
- package/src/modules/catalog/services/collection/updateCollection.ts +70 -35
- package/src/modules/catalog/services/index.ts +46 -35
- package/src/modules/catalog/services/product/createProduct.ts +155 -11
- package/src/modules/catalog/services/product/deleteProduct.ts +58 -4
- package/src/modules/catalog/services/product/updateProduct.ts +168 -17
- package/src/modules/checkout/pages/frontStore/cart/ShoppingCart.tsx +0 -2
- package/src/modules/checkout/pages/frontStore/checkout/Checkout.tsx +2 -0
- package/src/modules/checkout/services/addBillingAddress.ts +74 -6
- package/src/modules/checkout/services/addCartItem.ts +31 -1
- package/src/modules/checkout/services/addShippingAddress.ts +54 -6
- package/src/modules/checkout/services/checkout.ts +35 -7
- package/src/modules/checkout/services/index.ts +17 -3
- package/src/modules/checkout/services/orderCreator.ts +105 -1
- package/src/modules/checkout/services/removeCartItem.ts +27 -1
- package/src/modules/checkout/services/updateCartItemQty.ts +33 -1
- package/src/modules/cms/api/createCmsPage/createPage[finish].ts +12 -0
- package/src/modules/cms/api/createCmsPage/{finish[apiResponse].js → finish[apiResponse].ts} +10 -4
- package/src/modules/cms/api/createCmsPage/payloadSchema.json +76 -0
- package/src/modules/cms/api/deleteCmsPage/{deleteCmsPage.js → deleteCmsPage.ts} +8 -2
- package/src/modules/cms/api/updateCmsPage/{finish[apiResponse].js → finish[apiResponse].ts} +10 -4
- package/src/modules/cms/api/updateCmsPage/payloadSchema.json +76 -0
- package/src/modules/cms/api/updateCmsPage/{updatePage[finish].js → updatePage[finish].ts} +2 -1
- package/src/modules/cms/{bootstrap.js → bootstrap.ts} +24 -3
- package/src/modules/cms/components/BasicMenu.tsx +1 -1
- package/src/modules/cms/graphql/types/CmsPage/CmsPage.resolvers.ts +0 -21
- package/src/modules/cms/graphql/types/Widget/Widget.resolvers.js +0 -20
- package/src/modules/cms/services/index.ts +3 -0
- package/src/modules/cms/services/page/{createPage.js → createPage.ts} +65 -8
- package/src/modules/cms/services/page/deletePage.ts +109 -0
- package/src/modules/cms/services/page/pageDataSchema.json +9 -1
- package/src/modules/cms/services/page/{updatePage.js → updatePage.ts} +68 -6
- package/src/modules/cms/services/widget/createWidget.ts +120 -0
- package/src/modules/cms/services/widget/deleteWidget.ts +97 -0
- package/src/modules/cms/services/widget/updateWidget.js +17 -1
- package/src/modules/cms/services/widget/updateWidget.ts +139 -0
- package/src/modules/cod/pages/frontStore/checkout/CashOnDelivery.tsx +4 -2
- package/src/modules/customer/api/refreshCustomerToken/refreshToken.ts +4 -6
- package/src/modules/customer/pages/frontStore/login/LoginPage.tsx +26 -24
- package/src/modules/customer/pages/frontStore/register/RegisterPage.tsx +24 -22
- package/src/modules/customer/services/customer/address/createCustomerAddress.ts +54 -2
- package/src/modules/customer/services/customer/address/deleteCustomerAddress.ts +49 -2
- package/src/modules/customer/services/customer/address/updateCustomerAddress.ts +55 -3
- package/src/modules/customer/services/customer/buildCustomerPayload.ts +20 -0
- package/src/modules/customer/services/customer/createCustomer.ts +60 -7
- package/src/modules/customer/services/customer/deleteCustomer.ts +55 -5
- package/src/modules/customer/services/customer/loginCustomerWithEmail.ts +3 -4
- package/src/modules/customer/services/customer/updateCustomer.ts +62 -5
- package/src/modules/customer/services/customer/updatePassword.ts +56 -3
- package/src/modules/customer/services/index.ts +34 -27
- package/src/modules/oms/bootstrap.ts +9 -8
- package/src/modules/oms/services/addOrderActivityLog.ts +31 -1
- package/src/modules/oms/services/addPaymentTransaction.ts +26 -0
- package/src/modules/oms/services/cancelOrder.ts +131 -1
- package/src/modules/oms/services/createShipment.ts +31 -1
- package/src/modules/oms/services/index.ts +4 -0
- package/src/modules/oms/services/orderLoader.ts +73 -0
- package/src/modules/oms/services/statusManager.ts +159 -0
- package/src/modules/oms/services/updateOrderStatus.ts +101 -9
- package/src/modules/oms/services/updatePaymentStatus.ts +53 -1
- package/src/modules/oms/services/updateShipmentStatus.ts +53 -1
- package/src/modules/paypal/api/paypalAuthorizePayment/[bodyParser]authorize.ts +1 -1
- package/src/modules/paypal/api/paypalCaptureAuthorizedPayment/[bodyParser]capture.ts +10 -2
- package/src/modules/paypal/api/paypalCapturePayment/[bodyParser]capture.ts +5 -1
- package/src/modules/paypal/{bootstrap.js → bootstrap.ts} +23 -2
- package/src/modules/paypal/migration/Version-1.0.0.ts +24 -0
- package/src/modules/paypal/pages/admin/orderEdit/PaypalCaptureButton.tsx +1 -1
- package/src/modules/paypal/pages/frontStore/checkout/Paypal.tsx +9 -3
- package/src/modules/promotion/services/coupon/createCoupon.ts +147 -0
- package/src/modules/promotion/services/coupon/deleteCoupon.ts +100 -0
- package/src/modules/promotion/services/coupon/updateCoupon.ts +130 -0
- package/src/modules/promotion/services/index.ts +11 -0
- package/src/modules/setting/services/setting.ts +40 -2
- package/src/modules/stripe/api/capturePaymentIntent/{capturePaymentIntent.js → capturePaymentIntent.ts} +14 -5
- package/src/modules/stripe/api/createPaymentIntent/{createPaymentIntent.js → createPaymentIntent.ts} +11 -5
- package/src/modules/stripe/api/refundPaymentIntent/{refundPaymentIntent.js → refundPaymentIntent.ts} +11 -7
- package/src/modules/stripe/api/stripeWebHook/{[bodyJson]webhook.js → [bodyJson]webhook.ts} +30 -10
- package/src/modules/stripe/{bootstrap.js → bootstrap.ts} +40 -15
- package/src/modules/stripe/migration/Version-1.0.0.ts +24 -0
- package/src/modules/stripe/pages/admin/orderEdit/StripeCaptureButton.jsx +1 -1
- package/src/modules/stripe/pages/admin/orderEdit/StripeRefundButton.tsx +9 -3
- package/src/modules/stripe/pages/frontStore/checkout/Stripe.tsx +16 -7
- package/src/modules/stripe/pages/frontStore/stripeReturn/{index.js → index.ts} +15 -5
- package/src/modules/stripe/services/{cancelPayment.js → cancelPayment.ts} +4 -4
- package/src/types/apiResponse.ts +1 -1
- package/src/types/appContext.tsx +9 -4
- package/src/types/customerAddress.ts +1 -1
- package/src/types/db/index.ts +61 -61
- package/src/types/event.ts +29 -15
- package/src/types/registry.ts +160 -0
- package/src/types/widget.ts +3 -0
- package/src/lib/event/callSubscibers.js +0 -19
- package/src/lib/event/event-manager.js +0 -134
- package/src/modules/auth/bootstrap.js +0 -28
- package/src/modules/base/api/global/[payloadValidate]escapeHtml.js +0 -12
- package/src/modules/base/services/markSkipEscape.js +0 -30
- package/src/modules/catalog/api/createCategory/createCategory[finish].js +0 -8
- package/src/modules/catalog/api/createProduct/createProduct[finish].js +0 -8
- package/src/modules/catalog/api/updateCategory/updateCategory[finish].js +0 -8
- package/src/modules/catalog/api/updateCollection/updateCollection[finish].js +0 -8
- package/src/modules/catalog/api/updateProduct/updateProduct[finish].js +0 -8
- package/src/modules/cms/api/createCmsPage/createPage[finish].js +0 -10
- package/src/modules/cms/services/page/deletePage.js +0 -55
- package/src/modules/cms/services/widget/createWidget.js +0 -71
- package/src/modules/cms/services/widget/deleteWidget.js +0 -47
- package/src/modules/promotion/services/coupon/createCoupon.js +0 -75
- package/src/modules/promotion/services/coupon/deleteCoupon.js +0 -49
- package/src/modules/promotion/services/coupon/updateCoupon.js +0 -94
- package/src/types/request.d.ts +0 -7
- /package/src/modules/catalog/api/createCategory/{[context]bodyParser[auth].js → [context]bodyParser[auth].ts} +0 -0
- /package/src/modules/catalog/api/createCollection/{[context]bodyParser[auth].js → [context]bodyParser[auth].ts} +0 -0
- /package/src/modules/catalog/api/createProduct/{[context]bodyParser[auth].js → [context]bodyParser[auth].ts} +0 -0
- /package/src/modules/catalog/api/updateCategory/{[context]bodyParser[auth].js → [context]bodyParser[auth].ts} +0 -0
- /package/src/modules/catalog/api/updateCollection/{[context]bodyParser[auth].js → [context]bodyParser[auth].ts} +0 -0
- /package/src/modules/catalog/api/updateProduct/{[context]bodyParser[auth].js → [context]bodyParser[auth].ts} +0 -0
- /package/src/modules/cms/api/createCmsPage/{[context]bodyParser[auth].js → [context]bodyParser[auth].ts} +0 -0
- /package/src/modules/cms/api/updateCmsPage/{[context]bodyParser[auth].js → [context]bodyParser[auth].ts} +0 -0
- /package/src/modules/stripe/api/capturePaymentIntent/{[context]bodyParser[auth].js → [context]bodyParser[auth].ts} +0 -0
- /package/src/modules/stripe/api/createPaymentIntent/{[context]bodyParser[auth].js → [context]bodyParser[auth].ts} +0 -0
- /package/src/modules/stripe/api/refundPaymentIntent/{[context]bodyParser[auth].js → [context]bodyParser[auth].ts} +0 -0
- /package/src/modules/stripe/api/stripeWebHook/{bodyJson.js → bodyJson.ts} +0 -0
|
@@ -5,7 +5,7 @@ export type SendEmailArguments = {
|
|
|
5
5
|
body?: string;
|
|
6
6
|
template: string;
|
|
7
7
|
data: EmailData;
|
|
8
|
-
[key: string]:
|
|
8
|
+
[key: string]: unknown;
|
|
9
9
|
};
|
|
10
10
|
/**
|
|
11
11
|
* Validates email arguments to ensure they meet the required format.
|
|
@@ -54,7 +54,7 @@ export interface EmailData {
|
|
|
54
54
|
postalCode?: string;
|
|
55
55
|
};
|
|
56
56
|
};
|
|
57
|
-
[key: string]:
|
|
57
|
+
[key: string]: unknown;
|
|
58
58
|
}
|
|
59
59
|
/**
|
|
60
60
|
* Builds email body from a template by replacing placeholders with actual data.
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { PoolClient } from '@evershop/postgres-query-builder';
|
|
2
2
|
import { Pool } from 'pg';
|
|
3
|
+
import type { PoolConfig } from 'pg';
|
|
4
|
+
declare const connectionSetting: PoolConfig;
|
|
3
5
|
declare const pool: Pool;
|
|
4
6
|
declare function getConnection(): Promise<PoolClient>;
|
|
5
|
-
export { pool, getConnection };
|
|
7
|
+
export { pool, getConnection, connectionSetting };
|
|
@@ -50,14 +50,18 @@ switch (sslMode) {
|
|
|
50
50
|
break;
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
|
-
|
|
54
|
-
//
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
53
|
+
// onConnect is awaited by pg before the client is handed to user code,
|
|
54
|
+
// unlike pool.on('connect', ...) which is not awaited (deprecated in pg@8.19.0).
|
|
55
|
+
// Cast needed because @types/pg doesn't yet declare onConnect in PoolConfig.
|
|
56
|
+
const pool = new Pool({
|
|
57
|
+
...connectionSetting,
|
|
58
|
+
onConnect: async (client) => {
|
|
59
|
+
const timeZone = getConfig('shop.timezone', 'UTC');
|
|
60
|
+
await client.query(`SET TIMEZONE TO "${timeZone}";`);
|
|
61
|
+
}
|
|
58
62
|
});
|
|
59
63
|
async function getConnection() {
|
|
60
64
|
return await pool.connect();
|
|
61
65
|
}
|
|
62
|
-
export { pool, getConnection };
|
|
66
|
+
export { pool, getConnection, connectionSetting };
|
|
63
67
|
//# sourceMappingURL=connection.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connection.js","sourceRoot":"","sources":["../../../src/lib/postgres/connection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,CAAC;AAEpB,OAAO,EAAE,IAAI,EAAE,MAAM,IAAI,CAAC;AAE1B,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAEjD,2EAA2E;AAC3E,MAAM,iBAAiB,GAAe;IACpC,IAAI,EAAE,OAAO,CAAC,GAAG,CAAC,OAAO;IACzB,IAAI,EAAE,OAAO,CAAC,GAAG,CAAC,OAA4B;IAC9C,IAAI,EAAE,OAAO,CAAC,GAAG,CAAC,OAAO;IACzB,QAAQ,EAAE,OAAO,CAAC,GAAG,CAAC,WAAW;IACjC,QAAQ,EAAE,OAAO,CAAC,GAAG,CAAC,OAAO;IAC7B,GAAG,EAAE,EAAE;CACR,CAAC;AAEF,cAAc;AACd,MAAM,OAAO,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC;AACvC,QAAQ,OAAO,EAAE,CAAC;IAChB,KAAK,SAAS,CAAC,CAAC,CAAC;QACf,iBAAiB,CAAC,GAAG,GAAG,KAAK,CAAC;QAC9B,MAAM;IACR,CAAC;IACD,KAAK,SAAS,CAAC;IACf,K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C;YACR,GAAG,CAAC,GAAG,GAAG,EAAE,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,CAAC;QAC5C,CAAC;QACD,iBAAiB,CAAC,GAAG,GAAG,GAAG,CAAC;QAC5B,MAAM;IACR,CAAC;IACD,KAAK,WAAW,CAAC,CAAC,CAAC;QACjB,iBAAiB,CAAC,GAAG,GAAG;YACtB,kBAAkB,EAAE,KAAK;SAC1B,CAAC;QACF,MAAM;IACR,CAAC;IACD,OAAO,CAAC,CAAC,CAAC;QACR,iBAAiB,CAAC,GAAG,GAAG,KAAK,CAAC;QAC9B,MAAM;IACR,CAAC;AACH,CAAC;AAED,uEAAuE;AACvE,iFAAiF;AACjF,6EAA6E;AAC7E,MAAM,IAAI,GAAG,IAAI,IAAI,CAAC;IACpB,GAAG,iBAAiB;IACpB,SAAS,EAAE,KAAK,EAAE,MAA+B,EAAE,EAAE;QACnD,MAAM,QAAQ,GAAG,SAAS,CAAC,eAAe,EAAE,KAAK,CAAC,CAAC;QACnD,MAAM,MAAM,CAAC,KAAK,CAAC,oBAAoB,QAAQ,IAAI,CAAC,CAAC;IACvD,CAAC;CACY,CAAC,CAAC;AAEjB,KAAK,UAAU,aAAa;IAC1B,OAAO,MAAM,IAAI,CAAC,OAAO,EAAE,CAAC;AAC9B,CAAC;AAED,OAAO,EAAE,IAAI,EAAE,aAAa,EAAE,iBAAiB,EAAE,CAAC"}
|
|
@@ -0,0 +1,296 @@
|
|
|
1
|
+
import type { SQLValue, PoolClient, Pool } from '@evershop/postgres-query-builder';
|
|
2
|
+
import type { AdminUserRow, AttributeRow, AttributeGroupRow, AttributeGroupLinkRow, AttributeOptionRow, CartRow, CartAddressRow, CartItemRow, CategoryRow, CategoryDescriptionRow, CmsPageRow, CmsPageDescriptionRow, CollectionRow, CouponRow, CustomerRow, CustomerAddressRow, CustomerGroupRow, EventRow, MigrationRow, OrderRow, OrderActivityRow, OrderAddressRow, OrderItemRow, PaymentTransactionRow, ProductRow, ProductAttributeValueIndexRow, ProductCategoryRow, ProductCollectionRow, ProductCustomOptionRow, ProductCustomOptionValueRow, ProductDescriptionRow, ProductImageRow, ProductInventoryRow, ResetPasswordTokenRow, SessionRow, SettingRow, ShipmentRow, ShippingMethodRow, ShippingZoneRow, ShippingZoneMethodRow, ShippingZoneProvinceRow, TaxClassRow, TaxRateRow, UrlRewriteRow, VariantGroupRow, WidgetRow } from '../../types/db/index.js';
|
|
3
|
+
export type TableName = 'admin_user' | 'attribute' | 'attribute_group' | 'attribute_group_link' | 'attribute_option' | 'cart' | 'cart_address' | 'cart_item' | 'category' | 'category_description' | 'cms_page' | 'cms_page_description' | 'collection' | 'coupon' | 'customer' | 'customer_address' | 'customer_group' | 'event' | 'migration' | 'order' | 'order_activity' | 'order_address' | 'order_item' | 'payment_transaction' | 'product' | 'product_attribute_value_index' | 'product_category' | 'product_collection' | 'product_custom_option' | 'product_custom_option_value' | 'product_description' | 'product_image' | 'product_inventory' | 'reset_password_token' | 'session' | 'setting' | 'shipment' | 'shipping_method' | 'shipping_zone' | 'shipping_zone_method' | 'shipping_zone_province' | 'tax_class' | 'tax_rate' | 'url_rewrite' | 'user_token_secret' | 'variant_group' | 'widget';
|
|
4
|
+
type TableColumnMap = {
|
|
5
|
+
admin_user: keyof AdminUserRow;
|
|
6
|
+
attribute: keyof AttributeRow;
|
|
7
|
+
attribute_group: keyof AttributeGroupRow;
|
|
8
|
+
attribute_group_link: keyof AttributeGroupLinkRow;
|
|
9
|
+
attribute_option: keyof AttributeOptionRow;
|
|
10
|
+
cart: keyof CartRow;
|
|
11
|
+
cart_address: keyof CartAddressRow;
|
|
12
|
+
cart_item: keyof CartItemRow;
|
|
13
|
+
category: keyof CategoryRow;
|
|
14
|
+
category_description: keyof CategoryDescriptionRow;
|
|
15
|
+
cms_page: keyof CmsPageRow;
|
|
16
|
+
cms_page_description: keyof CmsPageDescriptionRow;
|
|
17
|
+
collection: keyof CollectionRow;
|
|
18
|
+
coupon: keyof CouponRow;
|
|
19
|
+
customer: keyof CustomerRow;
|
|
20
|
+
customer_address: keyof CustomerAddressRow;
|
|
21
|
+
customer_group: keyof CustomerGroupRow;
|
|
22
|
+
event: keyof EventRow;
|
|
23
|
+
migration: keyof MigrationRow;
|
|
24
|
+
order: keyof OrderRow;
|
|
25
|
+
order_activity: keyof OrderActivityRow;
|
|
26
|
+
order_address: keyof OrderAddressRow;
|
|
27
|
+
order_item: keyof OrderItemRow;
|
|
28
|
+
payment_transaction: keyof PaymentTransactionRow;
|
|
29
|
+
product: keyof ProductRow;
|
|
30
|
+
product_attribute_value_index: keyof ProductAttributeValueIndexRow;
|
|
31
|
+
product_category: keyof ProductCategoryRow;
|
|
32
|
+
product_collection: keyof ProductCollectionRow;
|
|
33
|
+
product_custom_option: keyof ProductCustomOptionRow;
|
|
34
|
+
product_custom_option_value: keyof ProductCustomOptionValueRow;
|
|
35
|
+
product_description: keyof ProductDescriptionRow;
|
|
36
|
+
product_image: keyof ProductImageRow;
|
|
37
|
+
product_inventory: keyof ProductInventoryRow;
|
|
38
|
+
reset_password_token: keyof ResetPasswordTokenRow;
|
|
39
|
+
session: keyof SessionRow;
|
|
40
|
+
setting: keyof SettingRow;
|
|
41
|
+
shipment: keyof ShipmentRow;
|
|
42
|
+
shipping_method: keyof ShippingMethodRow;
|
|
43
|
+
shipping_zone: keyof ShippingZoneRow;
|
|
44
|
+
shipping_zone_method: keyof ShippingZoneMethodRow;
|
|
45
|
+
shipping_zone_province: keyof ShippingZoneProvinceRow;
|
|
46
|
+
tax_class: keyof TaxClassRow;
|
|
47
|
+
tax_rate: keyof TaxRateRow;
|
|
48
|
+
url_rewrite: keyof UrlRewriteRow;
|
|
49
|
+
user_token_secret: never;
|
|
50
|
+
variant_group: keyof VariantGroupRow;
|
|
51
|
+
widget: keyof WidgetRow;
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
* Extends `TableName` with a `string & {}` fallback so custom or future tables
|
|
55
|
+
* (not yet in the schema) are accepted without a compile error, while still
|
|
56
|
+
* surfacing the known table names as autocomplete suggestions.
|
|
57
|
+
*/
|
|
58
|
+
export type AnyTableName = TableName | (string & {});
|
|
59
|
+
type TableRowMap = {
|
|
60
|
+
admin_user: AdminUserRow;
|
|
61
|
+
attribute: AttributeRow;
|
|
62
|
+
attribute_group: AttributeGroupRow;
|
|
63
|
+
attribute_group_link: AttributeGroupLinkRow;
|
|
64
|
+
attribute_option: AttributeOptionRow;
|
|
65
|
+
cart: CartRow;
|
|
66
|
+
cart_address: CartAddressRow;
|
|
67
|
+
cart_item: CartItemRow;
|
|
68
|
+
category: CategoryRow;
|
|
69
|
+
category_description: CategoryDescriptionRow;
|
|
70
|
+
cms_page: CmsPageRow;
|
|
71
|
+
cms_page_description: CmsPageDescriptionRow;
|
|
72
|
+
collection: CollectionRow;
|
|
73
|
+
coupon: CouponRow;
|
|
74
|
+
customer: CustomerRow;
|
|
75
|
+
customer_address: CustomerAddressRow;
|
|
76
|
+
customer_group: CustomerGroupRow;
|
|
77
|
+
event: EventRow;
|
|
78
|
+
migration: MigrationRow;
|
|
79
|
+
order: OrderRow;
|
|
80
|
+
order_activity: OrderActivityRow;
|
|
81
|
+
order_address: OrderAddressRow;
|
|
82
|
+
order_item: OrderItemRow;
|
|
83
|
+
payment_transaction: PaymentTransactionRow;
|
|
84
|
+
product: ProductRow;
|
|
85
|
+
product_attribute_value_index: ProductAttributeValueIndexRow;
|
|
86
|
+
product_category: ProductCategoryRow;
|
|
87
|
+
product_collection: ProductCollectionRow;
|
|
88
|
+
product_custom_option: ProductCustomOptionRow;
|
|
89
|
+
product_custom_option_value: ProductCustomOptionValueRow;
|
|
90
|
+
product_description: ProductDescriptionRow;
|
|
91
|
+
product_image: ProductImageRow;
|
|
92
|
+
product_inventory: ProductInventoryRow;
|
|
93
|
+
reset_password_token: ResetPasswordTokenRow;
|
|
94
|
+
session: SessionRow;
|
|
95
|
+
setting: SettingRow;
|
|
96
|
+
shipment: ShipmentRow;
|
|
97
|
+
shipping_method: ShippingMethodRow;
|
|
98
|
+
shipping_zone: ShippingZoneRow;
|
|
99
|
+
shipping_zone_method: ShippingZoneMethodRow;
|
|
100
|
+
shipping_zone_province: ShippingZoneProvinceRow;
|
|
101
|
+
tax_class: TaxClassRow;
|
|
102
|
+
tax_rate: TaxRateRow;
|
|
103
|
+
url_rewrite: UrlRewriteRow;
|
|
104
|
+
user_token_secret: Record<string, any>;
|
|
105
|
+
variant_group: VariantGroupRow;
|
|
106
|
+
widget: WidgetRow;
|
|
107
|
+
};
|
|
108
|
+
/**
|
|
109
|
+
* Full row type for table `T`. Use `Partial<RowOf<T>>` in write operations.
|
|
110
|
+
* Falls back to `Record<string, any>` for unknown/custom tables.
|
|
111
|
+
*/
|
|
112
|
+
export type RowOf<T extends AnyTableName> = T extends TableName ? TableRowMap[T] : Record<string, any>;
|
|
113
|
+
/**
|
|
114
|
+
* Write-compatible version of a row type for use in `.given()`.
|
|
115
|
+
*
|
|
116
|
+
* PostgreSQL `numeric`/`decimal` columns are returned by `node-postgres` as
|
|
117
|
+
* `string` (to preserve precision), but the driver accepts both `string` and
|
|
118
|
+
* `number` as input. This mapped type widens every `string`-typed field to
|
|
119
|
+
* `string | number` (and `string | null` to `string | number | null`) so that
|
|
120
|
+
* calls like `.given({ amount: 42 })` compile without needing an explicit cast.
|
|
121
|
+
*/
|
|
122
|
+
export type WriteRow<T> = {
|
|
123
|
+
[K in keyof T]: T[K] extends string ? string | number : T[K] extends string | null ? string | number | null : T[K];
|
|
124
|
+
};
|
|
125
|
+
/**
|
|
126
|
+
* Known column names for table `T`.
|
|
127
|
+
* The `string & {}` fallback lets arbitrary expressions, qualified names, and
|
|
128
|
+
* aliased joined columns pass through without a compile error, while still
|
|
129
|
+
* surfacing the known column literals as autocomplete suggestions.
|
|
130
|
+
*/
|
|
131
|
+
/**
|
|
132
|
+
* Known column names for table `T`.
|
|
133
|
+
* Falls back to `string` for unknown/custom tables so any column name is accepted.
|
|
134
|
+
* The `string & {}` union keeps the known literal suggestions visible in autocomplete.
|
|
135
|
+
*/
|
|
136
|
+
export type ColumnOf<T extends AnyTableName> = T extends TableName ? TableColumnMap[T] | (string & {}) : string;
|
|
137
|
+
/**
|
|
138
|
+
* All known columns from all tables, prefixed with their table name.
|
|
139
|
+
* e.g. 'order.order_id' | 'order.status' | 'product.sku' | ...
|
|
140
|
+
* Used to provide autocomplete in `select()` before `.from()` is called.
|
|
141
|
+
*
|
|
142
|
+
* The mapped-type form `{ [T in TableName]: ... }[TableName]` is required to
|
|
143
|
+
* force correct per-table distribution. Using a generic alias `Prefix<TableName>`
|
|
144
|
+
* causes TypeScript to evaluate `TableColumnMap[T]` with T as the full union,
|
|
145
|
+
* producing a cross-product (e.g. 'product.amount') which is incorrect.
|
|
146
|
+
*/
|
|
147
|
+
export type AllPrefixedColumns = {
|
|
148
|
+
[T in TableName]: `${T}.${TableColumnMap[T] & string}`;
|
|
149
|
+
}[TableName];
|
|
150
|
+
/**
|
|
151
|
+
* WHERE-clause chain returned by write query methods (UPDATE / DELETE).
|
|
152
|
+
* Provides `.and()` / `.or()` for additional conditions, then `.execute()`.
|
|
153
|
+
*/
|
|
154
|
+
export interface TypedWriteConditionChain<T extends AnyTableName> {
|
|
155
|
+
and(field: ColumnOf<T>, operator: string, value: any): TypedWriteConditionChain<T>;
|
|
156
|
+
or(field: ColumnOf<T>, operator: string, value: any): TypedWriteConditionChain<T>;
|
|
157
|
+
andWhere(field: ColumnOf<T>, operator: string, value: any): TypedWriteConditionChain<T>;
|
|
158
|
+
orWhere(field: ColumnOf<T>, operator: string, value: any): TypedWriteConditionChain<T>;
|
|
159
|
+
execute(connection: PoolClient | Pool, releaseConnection?: boolean): Promise<any>;
|
|
160
|
+
}
|
|
161
|
+
/** Typed INSERT query. `.given()` accepts the row shape of table `T`. */
|
|
162
|
+
export interface TypedInsertQuery<T extends AnyTableName> {
|
|
163
|
+
given(data: Partial<WriteRow<RowOf<T>>>): TypedInsertQuery<T>;
|
|
164
|
+
prime(field: ColumnOf<T>, value: any): TypedInsertQuery<T>;
|
|
165
|
+
execute(connection: PoolClient | Pool, releaseConnection?: boolean): Promise<any>;
|
|
166
|
+
}
|
|
167
|
+
/** Typed UPDATE query. `.given()` / `.prime()` are constrained to columns of `T`. */
|
|
168
|
+
export interface TypedUpdateQuery<T extends AnyTableName> {
|
|
169
|
+
given(data: Partial<WriteRow<RowOf<T>>>): TypedUpdateQuery<T>;
|
|
170
|
+
prime(field: ColumnOf<T>, value: any): TypedUpdateQuery<T>;
|
|
171
|
+
where(field: ColumnOf<T>, operator: string, value: any): TypedWriteConditionChain<T>;
|
|
172
|
+
andWhere(field: ColumnOf<T>, operator: string, value: any): TypedWriteConditionChain<T>;
|
|
173
|
+
orWhere(field: ColumnOf<T>, operator: string, value: any): TypedWriteConditionChain<T>;
|
|
174
|
+
execute(connection: PoolClient | Pool, releaseConnection?: boolean): Promise<any>;
|
|
175
|
+
}
|
|
176
|
+
/** Typed DELETE query. `.where()` is constrained to columns of `T`. */
|
|
177
|
+
export interface TypedDeleteQuery<T extends AnyTableName> {
|
|
178
|
+
where(field: ColumnOf<T>, operator: string, value: any): TypedWriteConditionChain<T>;
|
|
179
|
+
andWhere(field: ColumnOf<T>, operator: string, value: any): TypedWriteConditionChain<T>;
|
|
180
|
+
orWhere(field: ColumnOf<T>, operator: string, value: any): TypedWriteConditionChain<T>;
|
|
181
|
+
execute(connection: PoolClient | Pool, releaseConnection?: boolean): Promise<any[]>;
|
|
182
|
+
}
|
|
183
|
+
/** Typed INSERT … ON CONFLICT DO UPDATE query. */
|
|
184
|
+
export interface TypedInsertOnUpdateQuery<T extends AnyTableName> {
|
|
185
|
+
given(data: Partial<WriteRow<RowOf<T>>>): TypedInsertOnUpdateQuery<T>;
|
|
186
|
+
prime(field: ColumnOf<T>, value: any): TypedInsertOnUpdateQuery<T>;
|
|
187
|
+
execute(connection: PoolClient | Pool, releaseConnection?: boolean): Promise<any>;
|
|
188
|
+
}
|
|
189
|
+
/**
|
|
190
|
+
* Returned by `.leftJoin()` / `.rightJoin()` / `.innerJoin()`.
|
|
191
|
+
* Call `.on()` to complete the join condition.
|
|
192
|
+
*/
|
|
193
|
+
export interface TypedJoin<T extends AnyTableName> {
|
|
194
|
+
on(column: string, operator: string, referencedColumn: string): TypedQueryChain<T>;
|
|
195
|
+
}
|
|
196
|
+
/**
|
|
197
|
+
* The WHERE-clause chain returned by `.where()` / `.andWhere()` / `.orWhere()`.
|
|
198
|
+
* Provides `.and()` / `.or()` for additional conditions, then `.execute()` / `.load()`.
|
|
199
|
+
*/
|
|
200
|
+
export interface TypedConditionChain<T extends AnyTableName> {
|
|
201
|
+
and(field: ColumnOf<T>, operator: string, value: any): TypedConditionChain<T>;
|
|
202
|
+
or(field: ColumnOf<T>, operator: string, value: any): TypedConditionChain<T>;
|
|
203
|
+
andWhere(field: ColumnOf<T>, operator: string, value: any): TypedConditionChain<T>;
|
|
204
|
+
orWhere(field: ColumnOf<T>, operator: string, value: any): TypedConditionChain<T>;
|
|
205
|
+
execute(connection: PoolClient | Pool, releaseConnection?: boolean): Promise<RowOf<T>[]>;
|
|
206
|
+
load(connection: PoolClient | Pool, releaseConnection?: boolean): Promise<RowOf<T> | null>;
|
|
207
|
+
}
|
|
208
|
+
/**
|
|
209
|
+
* A fully table-aware SELECT query chain.
|
|
210
|
+
* Every field parameter is constrained to the known columns of table `T`
|
|
211
|
+
* (with a `string` fallback so expressions and join aliases still work).
|
|
212
|
+
*/
|
|
213
|
+
export interface TypedQueryChain<T extends AnyTableName> {
|
|
214
|
+
/**
|
|
215
|
+
* Add a column to the SELECT clause. Accepts bare column names for table `T`
|
|
216
|
+
* (e.g. `'order_id'`) or prefixed names for cross-table references after joins
|
|
217
|
+
* (e.g. `'product.sku'`), as well as SQL expressions via `sql(...)`.
|
|
218
|
+
*/
|
|
219
|
+
select(field: ColumnOf<T> | AllPrefixedColumns | SQLValue, alias?: string): TypedQueryChain<T>;
|
|
220
|
+
/**
|
|
221
|
+
* Set the FROM table and re-narrow the chain to that table's columns.
|
|
222
|
+
* Calling `.from('order')` causes all subsequent `.where()`, `.orderBy()`,
|
|
223
|
+
* etc. to suggest only the columns of the `order` table.
|
|
224
|
+
*/
|
|
225
|
+
from<U extends AnyTableName>(table: U, alias?: string): TypedQueryChain<U>;
|
|
226
|
+
where(field: ColumnOf<T>, operator: string, value: any): TypedConditionChain<T>;
|
|
227
|
+
andWhere(field: ColumnOf<T>, operator: string, value: any): TypedConditionChain<T>;
|
|
228
|
+
orWhere(field: ColumnOf<T>, operator: string, value: any): TypedConditionChain<T>;
|
|
229
|
+
leftJoin(table: TableName | (string & {}), alias?: string): TypedJoin<T>;
|
|
230
|
+
rightJoin(table: TableName | (string & {}), alias?: string): TypedJoin<T>;
|
|
231
|
+
innerJoin(table: TableName | (string & {}), alias?: string): TypedJoin<T>;
|
|
232
|
+
groupBy(...fields: Array<ColumnOf<T>>): TypedQueryChain<T>;
|
|
233
|
+
orderBy(field: ColumnOf<T>, direction?: 'ASC' | 'DESC' | (string & {})): TypedQueryChain<T>;
|
|
234
|
+
orderDirection(direction: string): TypedQueryChain<T>;
|
|
235
|
+
having(field: ColumnOf<T>, operator: string, value: any): TypedQueryChain<T>;
|
|
236
|
+
limit(offset: number, limit: number): TypedQueryChain<T>;
|
|
237
|
+
removeOrderBy(): TypedQueryChain<T>;
|
|
238
|
+
removeGroupBy(): TypedQueryChain<T>;
|
|
239
|
+
removeLimit(): TypedQueryChain<T>;
|
|
240
|
+
execute(connection: PoolClient | Pool, releaseConnection?: boolean): Promise<RowOf<T>[]>;
|
|
241
|
+
load(connection: PoolClient | Pool, releaseConnection?: boolean): Promise<RowOf<T> | null>;
|
|
242
|
+
sql(): Promise<string>;
|
|
243
|
+
clone(): TypedQueryChain<T>;
|
|
244
|
+
}
|
|
245
|
+
/**
|
|
246
|
+
* The initial query builder, before a table is bound via `.from()`.
|
|
247
|
+
* Column arguments are drawn from the union of every known table's columns.
|
|
248
|
+
* Call `.from(tableName)` to bind a specific table and unlock per-table column
|
|
249
|
+
* suggestions on all subsequent methods.
|
|
250
|
+
*/
|
|
251
|
+
export interface UnboundSelectChain {
|
|
252
|
+
/**
|
|
253
|
+
* Add a column to the SELECT clause. Suggestions are shown as `table.column`
|
|
254
|
+
* (e.g. `'order.order_id'`, `'product.sku'`) so you know which table each
|
|
255
|
+
* column belongs to. You are responsible for calling `.from(table)` with
|
|
256
|
+
* the matching table afterwards.
|
|
257
|
+
*/
|
|
258
|
+
select(field: AllPrefixedColumns | (string & {}), alias?: string): UnboundSelectChain;
|
|
259
|
+
/**
|
|
260
|
+
* Bind a table and return a fully typed query chain.
|
|
261
|
+
*
|
|
262
|
+
* @example
|
|
263
|
+
* select('order.order_id', 'order.status').from('order').where('status', '=', 'pending').execute(pool)
|
|
264
|
+
*/
|
|
265
|
+
from<T extends AnyTableName>(table: T, alias?: string): TypedQueryChain<T>;
|
|
266
|
+
}
|
|
267
|
+
/**
|
|
268
|
+
* Begin a SELECT query.
|
|
269
|
+
*
|
|
270
|
+
* Column name suggestions are shown as `table.column` (e.g. `'order.order_id'`,
|
|
271
|
+
* `'product.sku'`) so you can see which table each column belongs to.
|
|
272
|
+
* Once you call `.from(tableName)`, the chain narrows to that table's columns
|
|
273
|
+
* for `.where()`, `.orderBy()`, `.groupBy()`, etc.
|
|
274
|
+
*
|
|
275
|
+
* @example
|
|
276
|
+
* // All columns shorthand:
|
|
277
|
+
* select().from('order').where('status', '=', 'pending').execute(pool)
|
|
278
|
+
*
|
|
279
|
+
* // Explicit columns with table-prefixed suggestions:
|
|
280
|
+
* select('order.order_id', 'order.uuid')
|
|
281
|
+
* .from('order')
|
|
282
|
+
* .orderBy('created_at', 'DESC')
|
|
283
|
+
* .execute(pool)
|
|
284
|
+
*/
|
|
285
|
+
export declare function select(...args: Array<AllPrefixedColumns | (string & {})>): UnboundSelectChain & {
|
|
286
|
+
from<T extends AnyTableName>(table: T, alias?: string): TypedQueryChain<T>;
|
|
287
|
+
};
|
|
288
|
+
/** Insert a row into a known EverShop table. `.given()` suggests columns of `T`. */
|
|
289
|
+
export declare function insert<T extends AnyTableName>(table: T): TypedInsertQuery<T>;
|
|
290
|
+
/** Update rows in a known EverShop table. `.given()` / `.where()` suggest columns of `T`. */
|
|
291
|
+
export declare function update<T extends AnyTableName>(table: T): TypedUpdateQuery<T>;
|
|
292
|
+
/** Delete rows from a known EverShop table. `.where()` suggests columns of `T`. */
|
|
293
|
+
export declare function del<T extends AnyTableName>(table: T): TypedDeleteQuery<T>;
|
|
294
|
+
/** Insert or update rows in a known EverShop table on conflict. `.given()` suggests columns of `T`. */
|
|
295
|
+
export declare function insertOnUpdate<T extends AnyTableName>(table: T, conflictColumns: Array<ColumnOf<T>>): TypedInsertOnUpdateQuery<T>;
|
|
296
|
+
export { node, getConnection, startTransaction, commit, rollback, release, execute, sql, value, SelectQuery, UpdateQuery, InsertQuery, InsertOnUpdateQuery, DeleteQuery, type SQLValue, type Binding, type Pool, type PoolClient, type JoinDefinition } from '@evershop/postgres-query-builder';
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { select as _select, insert as _insert, update as _update, del as _del, insertOnUpdate as _insertOnUpdate } from '@evershop/postgres-query-builder';
|
|
2
|
+
// ---- Typed factory functions ---------------------------------------------------
|
|
3
|
+
/**
|
|
4
|
+
* Begin a SELECT query.
|
|
5
|
+
*
|
|
6
|
+
* Column name suggestions are shown as `table.column` (e.g. `'order.order_id'`,
|
|
7
|
+
* `'product.sku'`) so you can see which table each column belongs to.
|
|
8
|
+
* Once you call `.from(tableName)`, the chain narrows to that table's columns
|
|
9
|
+
* for `.where()`, `.orderBy()`, `.groupBy()`, etc.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* // All columns shorthand:
|
|
13
|
+
* select().from('order').where('status', '=', 'pending').execute(pool)
|
|
14
|
+
*
|
|
15
|
+
* // Explicit columns with table-prefixed suggestions:
|
|
16
|
+
* select('order.order_id', 'order.uuid')
|
|
17
|
+
* .from('order')
|
|
18
|
+
* .orderBy('created_at', 'DESC')
|
|
19
|
+
* .execute(pool)
|
|
20
|
+
*/
|
|
21
|
+
export function select(...args) {
|
|
22
|
+
return _select(...args);
|
|
23
|
+
}
|
|
24
|
+
/** Insert a row into a known EverShop table. `.given()` suggests columns of `T`. */
|
|
25
|
+
export function insert(table) {
|
|
26
|
+
return _insert(table);
|
|
27
|
+
}
|
|
28
|
+
/** Update rows in a known EverShop table. `.given()` / `.where()` suggest columns of `T`. */
|
|
29
|
+
export function update(table) {
|
|
30
|
+
return _update(table);
|
|
31
|
+
}
|
|
32
|
+
/** Delete rows from a known EverShop table. `.where()` suggests columns of `T`. */
|
|
33
|
+
export function del(table) {
|
|
34
|
+
return _del(table);
|
|
35
|
+
}
|
|
36
|
+
/** Insert or update rows in a known EverShop table on conflict. `.given()` suggests columns of `T`. */
|
|
37
|
+
export function insertOnUpdate(table, conflictColumns) {
|
|
38
|
+
return _insertOnUpdate(table, conflictColumns);
|
|
39
|
+
}
|
|
40
|
+
// ---- Re-export everything else from postgres-query-builder ---------------------
|
|
41
|
+
export { node, getConnection, startTransaction, commit, rollback, release, execute, sql, value, SelectQuery, UpdateQuery, InsertQuery, InsertOnUpdateQuery, DeleteQuery } from '@evershop/postgres-query-builder';
|
|
42
|
+
//# sourceMappingURL=query.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"query.js","sourceRoot":"","sources":["../../../src/lib/postgres/query.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,MAAM,IAAI,OAAO,EACjB,MAAM,IAAI,OAAO,EACjB,MAAM,IAAI,OAAO,EACjB,GAAG,IAAI,IAAI,EACX,cAAc,IAAI,eAAe,EAClC,MAAM,kCAAkC,CAAC;AAmf1C,mFAAmF;AAEnF;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,UAAU,MAAM,CACpB,GAAG,IAA+C;IAIlD,OAAO,OAAO,CAAC,GAAI,IAAiB,CAAkC,CAAC;AACzE,CAAC;AAED,oFAAoF;AACpF,MAAM,UAAU,MAAM,CAAyB,KAAQ;IACrD,OAAO,OAAO,CAAC,KAAK,CAAmC,CAAC;AAC1D,CAAC;AAED,6FAA6F;AAC7F,MAAM,UAAU,MAAM,CAAyB,KAAQ;IACrD,OAAO,OAAO,CAAC,KAAK,CAAmC,CAAC;AAC1D,CAAC;AAED,mFAAmF;AACnF,MAAM,UAAU,GAAG,CAAyB,KAAQ;IAClD,OAAO,IAAI,CAAC,KAAK,CAAmC,CAAC;AACvD,CAAC;AAED,uGAAuG;AACvG,MAAM,UAAU,cAAc,CAC5B,KAAQ,EACR,eAAmC;IAEnC,OAAO,eAAe,CACpB,KAAK,EACL,eAA2B,CACc,CAAC;AAC9C,CAAC;AAED,mFAAmF;AAEnF,OAAO,EACL,IAAI,EACJ,aAAa,EACb,gBAAgB,EAChB,MAAM,EACN,QAAQ,EACR,OAAO,EACP,OAAO,EACP,GAAG,EACH,KAAK,EACL,WAAW,EACX,WAAW,EACX,WAAW,EACX,mBAAmB,EACnB,WAAW,EAMZ,MAAM,kCAAkC,CAAC"}
|
|
@@ -29,30 +29,30 @@ type ConfigStructure = {
|
|
|
29
29
|
order_confirmation?: {
|
|
30
30
|
enabled: boolean;
|
|
31
31
|
templatePath?: string | null;
|
|
32
|
-
[key: string]:
|
|
32
|
+
[key: string]: unknown;
|
|
33
33
|
};
|
|
34
34
|
customer_welcome?: {
|
|
35
35
|
enabled: boolean;
|
|
36
36
|
templatePath?: string | null;
|
|
37
|
-
[key: string]:
|
|
37
|
+
[key: string]: unknown;
|
|
38
38
|
};
|
|
39
39
|
reset_password?: {
|
|
40
40
|
enabled: boolean;
|
|
41
41
|
templatePath?: string | null;
|
|
42
|
-
[key: string]:
|
|
42
|
+
[key: string]: unknown;
|
|
43
43
|
};
|
|
44
44
|
};
|
|
45
45
|
stripe?: {
|
|
46
46
|
secretKey?: string;
|
|
47
47
|
publishableKey?: string;
|
|
48
|
-
[key: string]:
|
|
48
|
+
[key: string]: unknown;
|
|
49
49
|
};
|
|
50
50
|
paypal?: {
|
|
51
|
-
[key: string]:
|
|
51
|
+
[key: string]: unknown;
|
|
52
52
|
};
|
|
53
53
|
cod?: {
|
|
54
54
|
status?: number;
|
|
55
|
-
[key: string]:
|
|
55
|
+
[key: string]: unknown;
|
|
56
56
|
};
|
|
57
57
|
};
|
|
58
58
|
catalog: {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ValueRegistry } from '../../types/registry.js';
|
|
1
2
|
export type RegistryValue<T> = {
|
|
2
3
|
initValue: T;
|
|
3
4
|
context: Record<string, any>;
|
|
@@ -27,8 +28,22 @@ export declare function getValue<T>(name: string, initialization: T | AsyncProce
|
|
|
27
28
|
* @returns The value from the registry
|
|
28
29
|
*/
|
|
29
30
|
export declare function getValueSync<T>(name: string, initialization: T | SyncProcessor<T>, context: Record<string, any>, validator?: (value: T) => boolean): T;
|
|
30
|
-
|
|
31
|
-
|
|
31
|
+
/**
|
|
32
|
+
* Add a processor for a known registry value (typed).
|
|
33
|
+
*/
|
|
34
|
+
export declare function addProcessor<K extends keyof ValueRegistry>(name: K, callback: SyncProcessor<ValueRegistry[K]> | AsyncProcessor<ValueRegistry[K]>, priority?: number): void;
|
|
35
|
+
/**
|
|
36
|
+
* Add a processor for a custom registry value.
|
|
37
|
+
*/
|
|
38
|
+
export declare function addProcessor<T = unknown>(name: string, callback: SyncProcessor<T> | AsyncProcessor<T>, priority?: number): void;
|
|
39
|
+
/**
|
|
40
|
+
* Add a final (priority-1000) processor for a known registry value (typed).
|
|
41
|
+
*/
|
|
42
|
+
export declare function addFinalProcessor<K extends keyof ValueRegistry>(name: K, callback: SyncProcessor<ValueRegistry[K]> | AsyncProcessor<ValueRegistry[K]>): void;
|
|
43
|
+
/**
|
|
44
|
+
* Add a final (priority-1000) processor for a custom registry value.
|
|
45
|
+
*/
|
|
46
|
+
export declare function addFinalProcessor<T = unknown>(name: string, callback: SyncProcessor<T> | AsyncProcessor<T>): void;
|
|
32
47
|
export declare function getProcessors<T>(name: string): {
|
|
33
48
|
callback: SyncProcessor<T> | AsyncProcessor<T>;
|
|
34
49
|
priority: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registry.js","sourceRoot":"","sources":["../../../src/lib/util/registry.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"registry.js","sourceRoot":"","sources":["../../../src/lib/util/registry.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,oBAAoB,CAAC;AAGzC,IAAI,MAAM,GAAG,KAAK,CAAC;AAenB,MAAM,QAAQ;IAAd;QACE,WAAM,GAAgD,EAAE,CAAC;IA+L3D,CAAC;IA7LC,KAAK,CAAC,GAAG,CACP,IAAY,EACZ,SAAY,EACZ,OAA6B,EAC7B,SAAiC;QAEjC,IAAI,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC;YACtB,+FAA+F;YAC/F,IACE,OAAO,CAAC,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,SAAS,CAAC;gBAC/C,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,OAAO,CAAC;gBAC3C,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,OAAO,CAAC,EAChE,CAAC;gBACD,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC;YACjC,CAAC;QACH,CAAC;QAED,sCAAsC;QACtC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,IAAK,EAAuB,CAAC;QAClE,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,SAAS,GAAG,SAAS,CAAC;QACxC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,OAAO,GAAG,OAAO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AY;IAC1B,2FAA2F;IAC3F,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE;QAC3C,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,CAAC;YAC/D,OAAO,QAAQ,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC;QACpC,CAAC;IACH,CAAC,CAAC,CAAC;IACH,MAAM,GAAG,IAAI,CAAC;AAChB,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export interface Row {
|
|
2
|
+
id: string;
|
|
3
|
+
size: number;
|
|
4
|
+
columns: {
|
|
5
|
+
id: string;
|
|
6
|
+
size: number;
|
|
7
|
+
data: any;
|
|
8
|
+
}[];
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Sanitizes the HTML content in all EditorJS raw HTML blocks within the page content.
|
|
12
|
+
* Each column's `data` is an EditorJS block: { type, data: { ... } }.
|
|
13
|
+
* For "raw" type blocks, `data.html` is sanitized via sanitize-html.
|
|
14
|
+
*/
|
|
15
|
+
declare function sanitizeRawHtml(editorJSData: Row[]): void;
|
|
16
|
+
export { sanitizeRawHtml };
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import sanitizeHtml from 'sanitize-html';
|
|
2
|
+
// Extend the default allowed attributes to preserve CSS classes on all tags
|
|
3
|
+
const sanitizeOptions = {
|
|
4
|
+
allowedTags: sanitizeHtml.defaults.allowedTags.concat([
|
|
5
|
+
'img',
|
|
6
|
+
'figure',
|
|
7
|
+
'figcaption',
|
|
8
|
+
'video',
|
|
9
|
+
'source',
|
|
10
|
+
'iframe'
|
|
11
|
+
]),
|
|
12
|
+
allowedAttributes: {
|
|
13
|
+
...sanitizeHtml.defaults.allowedAttributes,
|
|
14
|
+
'*': ['class', 'id', 'style']
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* Sanitizes the HTML content in all EditorJS raw HTML blocks within the page content.
|
|
19
|
+
* Each column's `data` is an EditorJS block: { type, data: { ... } }.
|
|
20
|
+
* For "raw" type blocks, `data.html` is sanitized via sanitize-html.
|
|
21
|
+
*/
|
|
22
|
+
function sanitizeRawHtml(editorJSData) {
|
|
23
|
+
if (!Array.isArray(editorJSData)) {
|
|
24
|
+
return;
|
|
25
|
+
}
|
|
26
|
+
editorJSData.forEach((row) => {
|
|
27
|
+
if (!Array.isArray(row.columns)) {
|
|
28
|
+
return;
|
|
29
|
+
}
|
|
30
|
+
row.columns.forEach((column) => {
|
|
31
|
+
if (!column.data || !Array.isArray(column.data.blocks)) {
|
|
32
|
+
return;
|
|
33
|
+
}
|
|
34
|
+
column.data.blocks.forEach((block) => {
|
|
35
|
+
if (block.type === 'raw' &&
|
|
36
|
+
block.data &&
|
|
37
|
+
typeof block.data.html === 'string') {
|
|
38
|
+
block.data.html = sanitizeHtml(block.data.html, sanitizeOptions);
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
});
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
export { sanitizeRawHtml };
|
|
45
|
+
//# sourceMappingURL=sanitizeHtml.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sanitizeHtml.js","sourceRoot":"","sources":["../../../src/lib/util/sanitizeHtml.ts"],"names":[],"mappings":"AAAA,OAAO,YAAY,MAAM,eAAe,CAAC;AAEzC,4EAA4E;AAC5E,MAAM,eAAe,GAA0B;IAC7C,WAAW,EAAE,YAAY,CAAC,QAAQ,CAAC,WAAW,CAAC,MAAM,CAAC;QACpD,KAAK;QACL,QAAQ;QACR,YAAY;QACZ,OAAO;QACP,QAAQ;QACR,QAAQ;KACT,CAAC;IACF,iBAAiB,EAAE;QACjB,GAAG,YAAY,CAAC,QAAQ,CAAC,iBAAiB;QAC1C,GAAG,EAAE,CAAC,OAAO,EAAE,IAAI,EAAE,OAAO,CAAC;KAC9B;CACF,CAAC;AAYF;;;;GAIG;AACH,SAAS,eAAe,CAAC,YAAmB;IAC1C,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,YAAY,CAAC,EAAE,CAAC;QACjC,OAAO;IACT,CAAC;IACD,YAAY,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE;QAC3B,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,CAAC;YAChC,OAAO;QACT,CAAC;QACD,GAAG,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,EAAE;YAC7B,IAAI,CAAC,MAAM,CAAC,IAAI,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC;gBACvD,OAAO;YACT,CAAC;YACD,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE;gBACnC,IACE,KAAK,CAAC,IAAI,KAAK,KAAK;oBACpB,KAAK,CAAC,IAAI;oBACV,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,KAAK,QAAQ,EACnC,CAAC;oBACD,KAAK,CAAC,IAAI,CAAC,IAAI,GAAG,YAAY,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,EAAE,eAAe,CAAC,CAAC;gBACnE,CAAC;YACH,CAAC,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC;AAED,OAAO,EAAE,eAAe,EAAE,CAAC"}
|
|
@@ -87,7 +87,6 @@ export default function AreaLoader(c) {
|
|
|
87
87
|
Object.keys(components).forEach((routeId) => {
|
|
88
88
|
allRootComponents[routeId] = buildComponentsPerRoute(components[routeId], imports);
|
|
89
89
|
const route = routes.find((r) => r.id === routeId);
|
|
90
|
-
//console.log('building widgets for route', routeId, route);
|
|
91
90
|
const widgetComponents = buildWidgetComponentsPerRoute(route, widgets, imports);
|
|
92
91
|
Object.assign(allRootComponents[routeId], { '*': widgetComponents });
|
|
93
92
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AreaLoader.js","sourceRoot":"","sources":["../../../../src/lib/webpack/loaders/AreaLoader.js"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,CAAC;AACpB,OAAO,EAAE,aAAa,EAAE,MAAM,KAAK,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAC/B,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AACzE,OAAO,EAAE,qBAAqB,EAAE,MAAM,wCAAwC,CAAC;AAC/E,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAElE,SAAS,uBAAuB,CAAC,UAAU,EAAE,OAAO;IAClD,MAAM,KAAK,GAAG,EAAE,CAAC;IACjB,UAAU,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,EAAE;QAC5B,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC,EAAE,CAAC;YAC3B,OAAO;QACT,CAAC;QACD,MAAM,MAAM,GAAG,EAAE,CAAC,YAAY,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QAC/C,iDAAiD;QACjD,MAAM,WAAW,GACf,mGAAmG,CAAC;QACtG,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC;QACxC,IAAI,KAAK,EAAE,CAAC;YACV,+DAA+D;YAC/D,MAAM,KAAK,GAAG,KAAK,CAAC,CAAC,CAAC;iBACnB,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC;iBACrB,OAAO,CAAC,iCAAiC,EAAE,QAAQ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AAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,OAAO,CAAC,CAAC;YACnD,MAAM,gBAAgB,GAAG,6BAA6B,CACpD,KAAK,EACL,OAAO,EACP,OAAO,CACR,CAAC;YACF,MAAM,CAAC,MAAM,CAAC,iBAAiB,CAAC,OAAO,CAAC,EAAE,EAAE,GAAG,EAAE,gBAAgB,EAAE,CAAC,CAAC;QACvE,CAAC,CAAC,CAAC;IACL,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC;QACX,KAAK,CAAC,sBAAsB,CAAC,CAAC;QAC9B,KAAK,CAAC,CAAC,CAAC,CAAC;IACX,CAAC;IACD,MAAM,OAAO,GAAG,GAAG,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC,IAAI,CAClD,MAAM,CACP,0BAA0B,OAAO,CAAC,iBAAiB,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC;SAChE,OAAO,CAAC,OAAO,EAAE,EAAE,CAAC;SACpB,OAAO,CAAC,OAAO,EAAE,EAAE,CAAC;SACpB,OAAO,CAAC,OAAO,EAAE,EAAE,CAAC;SACpB,OAAO,CACN,OAAO,EACP,EAAE,CACH,+FAA+F,CAAC;IACnG,MAAM,MAAM,GAAG,CAAC,CAAC,OAAO,CAAC,eAAe,EAAE,OAAO,CAAC,CAAC;IACnD,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getTailwindSources.js","sourceRoot":"","sources":["../../../../src/lib/webpack/util/getTailwindSources.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAC;AACvE,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAEhE,MAAM,UAAU,kBAAkB;IAChC,MAAM,OA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