@taon-dev/e-commerce 21.0.4 → 21.0.5
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/VERIFIED-BUILD-DATA.jsonc +3 -3
- package/browser/fesm2022/e-commerce-browser-taon-e-commerce-customer-address.constants.ts.en-US.i18n.data-DC_CevEg.mjs +15 -0
- package/browser/fesm2022/e-commerce-browser-taon-e-commerce-customer-address.constants.ts.en-US.i18n.data-DC_CevEg.mjs.map +1 -0
- package/browser/fesm2022/e-commerce-browser-taon-e-commerce-customer-address.constants.ts.pl-PL.i18n.data-CcXrYrto.mjs +15 -0
- package/browser/fesm2022/e-commerce-browser-taon-e-commerce-customer-address.constants.ts.pl-PL.i18n.data-CcXrYrto.mjs.map +1 -0
- package/browser/fesm2022/e-commerce-browser-taon-e-commerce-order-item.constants.ts.en-US.i18n.data-39idoaMN.mjs +15 -0
- package/browser/fesm2022/e-commerce-browser-taon-e-commerce-order-item.constants.ts.en-US.i18n.data-39idoaMN.mjs.map +1 -0
- package/browser/fesm2022/e-commerce-browser-taon-e-commerce-order-item.constants.ts.pl-PL.i18n.data-CBnzq5TF.mjs +15 -0
- package/browser/fesm2022/e-commerce-browser-taon-e-commerce-order-item.constants.ts.pl-PL.i18n.data-CBnzq5TF.mjs.map +1 -0
- package/browser/fesm2022/e-commerce-browser-taon-e-commerce-order.constants.ts.en-US.i18n.data-BlXHdUA1.mjs +15 -0
- package/browser/fesm2022/e-commerce-browser-taon-e-commerce-order.constants.ts.en-US.i18n.data-BlXHdUA1.mjs.map +1 -0
- package/browser/fesm2022/e-commerce-browser-taon-e-commerce-order.constants.ts.pl-PL.i18n.data-CPLpYCri.mjs +15 -0
- package/browser/fesm2022/e-commerce-browser-taon-e-commerce-order.constants.ts.pl-PL.i18n.data-CPLpYCri.mjs.map +1 -0
- package/browser/fesm2022/e-commerce-browser-taon-e-commerce-payment-transaction.constants.ts.en-US.i18n.data-C8fTMhcu.mjs +15 -0
- package/browser/fesm2022/e-commerce-browser-taon-e-commerce-payment-transaction.constants.ts.en-US.i18n.data-C8fTMhcu.mjs.map +1 -0
- package/browser/fesm2022/e-commerce-browser-taon-e-commerce-payment-transaction.constants.ts.pl-PL.i18n.data-9VHu058_.mjs +15 -0
- package/browser/fesm2022/e-commerce-browser-taon-e-commerce-payment-transaction.constants.ts.pl-PL.i18n.data-9VHu058_.mjs.map +1 -0
- package/browser/fesm2022/e-commerce-browser-taon-e-commerce-product-permission.constants.ts.en-US.i18n.data-BVP8Fo-v.mjs +15 -0
- package/browser/fesm2022/e-commerce-browser-taon-e-commerce-product-permission.constants.ts.en-US.i18n.data-BVP8Fo-v.mjs.map +1 -0
- package/browser/fesm2022/e-commerce-browser-taon-e-commerce-product-permission.constants.ts.pl-PL.i18n.data-D7mHABSf.mjs +15 -0
- package/browser/fesm2022/e-commerce-browser-taon-e-commerce-product-permission.constants.ts.pl-PL.i18n.data-D7mHABSf.mjs.map +1 -0
- package/browser/fesm2022/e-commerce-browser.mjs +3431 -355
- package/browser/fesm2022/e-commerce-browser.mjs.map +1 -1
- package/browser/package.json +1 -1
- package/browser/types/e-commerce-browser.d.ts +1075 -91
- package/browser-prod/fesm2022/e-commerce-browser-prod-taon-e-commerce-customer-address.constants.ts.en-US.i18n.data-DC_CevEg.mjs +15 -0
- package/browser-prod/fesm2022/e-commerce-browser-prod-taon-e-commerce-customer-address.constants.ts.en-US.i18n.data-DC_CevEg.mjs.map +1 -0
- package/browser-prod/fesm2022/e-commerce-browser-prod-taon-e-commerce-customer-address.constants.ts.pl-PL.i18n.data-CcXrYrto.mjs +15 -0
- package/browser-prod/fesm2022/e-commerce-browser-prod-taon-e-commerce-customer-address.constants.ts.pl-PL.i18n.data-CcXrYrto.mjs.map +1 -0
- package/browser-prod/fesm2022/e-commerce-browser-prod-taon-e-commerce-order-item.constants.ts.en-US.i18n.data-39idoaMN.mjs +15 -0
- package/browser-prod/fesm2022/e-commerce-browser-prod-taon-e-commerce-order-item.constants.ts.en-US.i18n.data-39idoaMN.mjs.map +1 -0
- package/browser-prod/fesm2022/e-commerce-browser-prod-taon-e-commerce-order-item.constants.ts.pl-PL.i18n.data-CBnzq5TF.mjs +15 -0
- package/browser-prod/fesm2022/e-commerce-browser-prod-taon-e-commerce-order-item.constants.ts.pl-PL.i18n.data-CBnzq5TF.mjs.map +1 -0
- package/browser-prod/fesm2022/e-commerce-browser-prod-taon-e-commerce-order.constants.ts.en-US.i18n.data-BlXHdUA1.mjs +15 -0
- package/browser-prod/fesm2022/e-commerce-browser-prod-taon-e-commerce-order.constants.ts.en-US.i18n.data-BlXHdUA1.mjs.map +1 -0
- package/browser-prod/fesm2022/e-commerce-browser-prod-taon-e-commerce-order.constants.ts.pl-PL.i18n.data-CPLpYCri.mjs +15 -0
- package/browser-prod/fesm2022/e-commerce-browser-prod-taon-e-commerce-order.constants.ts.pl-PL.i18n.data-CPLpYCri.mjs.map +1 -0
- package/browser-prod/fesm2022/e-commerce-browser-prod-taon-e-commerce-payment-transaction.constants.ts.en-US.i18n.data-C8fTMhcu.mjs +15 -0
- package/browser-prod/fesm2022/e-commerce-browser-prod-taon-e-commerce-payment-transaction.constants.ts.en-US.i18n.data-C8fTMhcu.mjs.map +1 -0
- package/browser-prod/fesm2022/e-commerce-browser-prod-taon-e-commerce-payment-transaction.constants.ts.pl-PL.i18n.data-9VHu058_.mjs +15 -0
- package/browser-prod/fesm2022/e-commerce-browser-prod-taon-e-commerce-payment-transaction.constants.ts.pl-PL.i18n.data-9VHu058_.mjs.map +1 -0
- package/browser-prod/fesm2022/e-commerce-browser-prod-taon-e-commerce-product-permission.constants.ts.en-US.i18n.data-BVP8Fo-v.mjs +15 -0
- package/browser-prod/fesm2022/e-commerce-browser-prod-taon-e-commerce-product-permission.constants.ts.en-US.i18n.data-BVP8Fo-v.mjs.map +1 -0
- package/browser-prod/fesm2022/e-commerce-browser-prod-taon-e-commerce-product-permission.constants.ts.pl-PL.i18n.data-D7mHABSf.mjs +15 -0
- package/browser-prod/fesm2022/e-commerce-browser-prod-taon-e-commerce-product-permission.constants.ts.pl-PL.i18n.data-D7mHABSf.mjs.map +1 -0
- package/browser-prod/fesm2022/e-commerce-browser-prod.mjs +3427 -351
- package/browser-prod/fesm2022/e-commerce-browser-prod.mjs.map +1 -1
- package/browser-prod/package.json +1 -1
- package/browser-prod/types/e-commerce-browser-prod.d.ts +979 -39
- package/browser-prod.split-namespaces.json +61 -1
- package/html/lib/taon-cart/taon-cart.component.html +176 -0
- package/html/lib/taon-cart-button/taon-cart-button.component.html +12 -0
- package/html/lib/taon-e-commerce-backoffice/taon-e-commerce-backoffice.component.html +9 -4
- package/html/lib/taon-e-commerce-backoffice-dashboard/taon-e-commerce-backoffice-dashboard.component.html +39 -0
- package/html/lib/taon-e-commerce-backoffice-settings/taon-e-commerce-backoffice-settings.component.html +40 -0
- package/html/lib/taon-e-commerce-order/taon-e-commerce-orders-backoffice/taon-e-commerce-order-details-backoffice.component.html +89 -0
- package/html/lib/taon-e-commerce-order/taon-e-commerce-orders-backoffice/taon-e-commerce-orders-backoffice.component.html +16 -0
- package/html/lib/taon-e-commerce-payment-transaction/taon-e-commerce-payment-transactions-backoffice/taon-e-commerce-payment-transaction-details-backoffice.component.html +53 -0
- package/html/lib/taon-e-commerce-payment-transaction/taon-e-commerce-payment-transactions-backoffice/taon-e-commerce-payment-transactions-backoffice.component.html +18 -0
- package/html/lib/taon-e-commerce-product/taon-e-commerce-product-edit-dialog.component.html +137 -0
- package/html/lib/taon-e-commerce-product/taon-e-commerce-products-backoffice/taon-e-commerce-products-backoffice.component.html +36 -0
- package/lib/build-info._auto-generated_.d.ts +1 -1
- package/lib/build-info._auto-generated_.js +1 -1
- package/lib/index._auto-generated_.d.ts +106 -1
- package/lib/index._auto-generated_.js +105 -0
- package/lib/index._auto-generated_.js.map +1 -1
- package/lib/package.json +1 -1
- package/lib/taon-cart/index.d.ts +2 -0
- package/lib/taon-cart/index.js +19 -0
- package/lib/taon-cart/index.js.map +1 -0
- package/lib/taon-cart/taon-cart.models.d.ts +6 -0
- package/lib/taon-cart/taon-cart.models.js +3 -0
- package/lib/taon-cart/taon-cart.models.js.map +1 -0
- package/lib/taon-cart-button/index.d.ts +2 -0
- package/lib/taon-cart-button/index.js +19 -0
- package/lib/taon-cart-button/index.js.map +1 -0
- package/lib/taon-cart-button/taon-cart-button.models.d.ts +1 -0
- package/lib/taon-cart-button/taon-cart-button.models.js +3 -0
- package/lib/taon-cart-button/taon-cart-button.models.js.map +1 -0
- package/lib/taon-e-commerce-backoffice/index.js +2 -2
- package/lib/taon-e-commerce-backoffice-dashboard/index.d.ts +1 -0
- package/lib/taon-e-commerce-backoffice-dashboard/index.js +5 -0
- package/lib/taon-e-commerce-backoffice-dashboard/index.js.map +1 -0
- package/lib/taon-e-commerce-backoffice-dashboard/taon-e-commerce-backoffice-dashboard.models.d.ts +1 -0
- package/lib/taon-e-commerce-backoffice-dashboard/taon-e-commerce-backoffice-dashboard.models.js +3 -0
- package/lib/taon-e-commerce-backoffice-dashboard/taon-e-commerce-backoffice-dashboard.models.js.map +1 -0
- package/lib/taon-e-commerce-backoffice-settings/index.d.ts +1 -0
- package/lib/taon-e-commerce-backoffice-settings/index.js +5 -0
- package/lib/taon-e-commerce-backoffice-settings/index.js.map +1 -0
- package/lib/taon-e-commerce-backoffice-settings/taon-e-commerce-backoffice-settings.context.d.ts +16 -0
- package/lib/taon-e-commerce-backoffice-settings/taon-e-commerce-backoffice-settings.context.js +14 -0
- package/lib/taon-e-commerce-backoffice-settings/taon-e-commerce-backoffice-settings.context.js.map +1 -0
- package/lib/taon-e-commerce-backoffice-settings/taon-e-commerce-backoffice-settings.controller.d.ts +6 -0
- package/lib/taon-e-commerce-backoffice-settings/taon-e-commerce-backoffice-settings.controller.js +54 -0
- package/lib/taon-e-commerce-backoffice-settings/taon-e-commerce-backoffice-settings.controller.js.map +1 -0
- package/lib/taon-e-commerce-backoffice-settings/taon-e-commerce-backoffice-settings.models.d.ts +1 -0
- package/lib/taon-e-commerce-backoffice-settings/taon-e-commerce-backoffice-settings.models.js +3 -0
- package/lib/taon-e-commerce-backoffice-settings/taon-e-commerce-backoffice-settings.models.js.map +1 -0
- package/lib/taon-e-commerce-backoffice-settings/taon-e-commerce-settings.kv.repository.d.ts +3 -0
- package/lib/taon-e-commerce-backoffice-settings/taon-e-commerce-settings.kv.repository.js +19 -0
- package/lib/taon-e-commerce-backoffice-settings/taon-e-commerce-settings.kv.repository.js.map +1 -0
- package/lib/taon-e-commerce-cart/taon-e-commerce-cart.abstract.context.js +4 -1
- package/lib/taon-e-commerce-cart/taon-e-commerce-cart.abstract.context.js.map +1 -1
- package/lib/taon-e-commerce-cart/taon-e-commerce-cart.entity.d.ts +5 -3
- package/lib/taon-e-commerce-cart/taon-e-commerce-cart.entity.js +20 -37
- package/lib/taon-e-commerce-cart/taon-e-commerce-cart.entity.js.map +1 -1
- package/lib/taon-e-commerce-cart-item/taon-e-commerce-cart-item.entity.d.ts +6 -2
- package/lib/taon-e-commerce-cart-item/taon-e-commerce-cart-item.entity.js +29 -32
- package/lib/taon-e-commerce-cart-item/taon-e-commerce-cart-item.entity.js.map +1 -1
- package/lib/taon-e-commerce-customer/index.d.ts +3 -0
- package/lib/taon-e-commerce-customer/index.js +20 -0
- package/lib/taon-e-commerce-customer/index.js.map +1 -0
- package/lib/taon-e-commerce-customer/taon-e-commerce-customer.controller.d.ts +24 -0
- package/lib/taon-e-commerce-customer/taon-e-commerce-customer.controller.js +141 -0
- package/lib/taon-e-commerce-customer/taon-e-commerce-customer.controller.js.map +1 -0
- package/lib/taon-e-commerce-customer/taon-e-commerce-customer.repository.d.ts +13 -0
- package/lib/taon-e-commerce-customer/taon-e-commerce-customer.repository.js +130 -0
- package/lib/taon-e-commerce-customer/taon-e-commerce-customer.repository.js.map +1 -0
- package/lib/taon-e-commerce-customer-address/i18n/taon-e-commerce-customer-address.constants.ts.en-US.i18n.data.d.ts +15 -0
- package/lib/taon-e-commerce-customer-address/i18n/taon-e-commerce-customer-address.constants.ts.en-US.i18n.data.js +15 -0
- package/lib/taon-e-commerce-customer-address/i18n/taon-e-commerce-customer-address.constants.ts.en-US.i18n.data.js.map +1 -0
- package/lib/taon-e-commerce-customer-address/i18n/taon-e-commerce-customer-address.constants.ts.pl-PL.i18n.data.d.ts +15 -0
- package/lib/taon-e-commerce-customer-address/i18n/taon-e-commerce-customer-address.constants.ts.pl-PL.i18n.data.js +15 -0
- package/lib/taon-e-commerce-customer-address/i18n/taon-e-commerce-customer-address.constants.ts.pl-PL.i18n.data.js.map +1 -0
- package/lib/taon-e-commerce-customer-address/i18n/taon-e-commerce-customer-address.translation.d.ts +4 -0
- package/lib/taon-e-commerce-customer-address/i18n/taon-e-commerce-customer-address.translation.js +5 -0
- package/lib/taon-e-commerce-customer-address/i18n/taon-e-commerce-customer-address.translation.js.map +1 -0
- package/lib/taon-e-commerce-customer-address/index.d.ts +12 -0
- package/lib/taon-e-commerce-customer-address/index.js +29 -0
- package/lib/taon-e-commerce-customer-address/index.js.map +1 -0
- package/lib/taon-e-commerce-customer-address/taon-e-commerce-customer-address.abstract.context.d.ts +16 -0
- package/lib/taon-e-commerce-customer-address/taon-e-commerce-customer-address.abstract.context.js +28 -0
- package/lib/taon-e-commerce-customer-address/taon-e-commerce-customer-address.abstract.context.js.map +1 -0
- package/lib/taon-e-commerce-customer-address/taon-e-commerce-customer-address.constants.d.ts +6 -0
- package/lib/taon-e-commerce-customer-address/taon-e-commerce-customer-address.constants.js +18 -0
- package/lib/taon-e-commerce-customer-address/taon-e-commerce-customer-address.constants.js.map +1 -0
- package/lib/taon-e-commerce-customer-address/taon-e-commerce-customer-address.controller.d.ts +10 -0
- package/lib/taon-e-commerce-customer-address/taon-e-commerce-customer-address.controller.js +56 -0
- package/lib/taon-e-commerce-customer-address/taon-e-commerce-customer-address.controller.js.map +1 -0
- package/lib/taon-e-commerce-customer-address/taon-e-commerce-customer-address.entity.d.ts +18 -0
- package/lib/taon-e-commerce-customer-address/taon-e-commerce-customer-address.entity.js +97 -0
- package/lib/taon-e-commerce-customer-address/taon-e-commerce-customer-address.entity.js.map +1 -0
- package/lib/taon-e-commerce-customer-address/taon-e-commerce-customer-address.kv.repository.d.ts +7 -0
- package/lib/taon-e-commerce-customer-address/taon-e-commerce-customer-address.kv.repository.js +24 -0
- package/lib/taon-e-commerce-customer-address/taon-e-commerce-customer-address.kv.repository.js.map +1 -0
- package/lib/taon-e-commerce-customer-address/taon-e-commerce-customer-address.middleware.d.ts +3 -0
- package/lib/taon-e-commerce-customer-address/taon-e-commerce-customer-address.middleware.js +21 -0
- package/lib/taon-e-commerce-customer-address/taon-e-commerce-customer-address.middleware.js.map +1 -0
- package/lib/taon-e-commerce-customer-address/taon-e-commerce-customer-address.models.d.ts +6 -0
- package/lib/taon-e-commerce-customer-address/taon-e-commerce-customer-address.models.js +12 -0
- package/lib/taon-e-commerce-customer-address/taon-e-commerce-customer-address.models.js.map +1 -0
- package/lib/taon-e-commerce-customer-address/taon-e-commerce-customer-address.provider.d.ts +12 -0
- package/lib/taon-e-commerce-customer-address/taon-e-commerce-customer-address.provider.js +32 -0
- package/lib/taon-e-commerce-customer-address/taon-e-commerce-customer-address.provider.js.map +1 -0
- package/lib/taon-e-commerce-customer-address/taon-e-commerce-customer-address.repository.d.ts +9 -0
- package/lib/taon-e-commerce-customer-address/taon-e-commerce-customer-address.repository.js +37 -0
- package/lib/taon-e-commerce-customer-address/taon-e-commerce-customer-address.repository.js.map +1 -0
- package/lib/taon-e-commerce-customer-address/taon-e-commerce-customer-address.subscriber.d.ts +6 -0
- package/lib/taon-e-commerce-customer-address/taon-e-commerce-customer-address.subscriber.js +28 -0
- package/lib/taon-e-commerce-customer-address/taon-e-commerce-customer-address.subscriber.js.map +1 -0
- package/lib/taon-e-commerce-customer-address/taon-e-commerce-customer-address.utils.d.ts +4 -0
- package/lib/taon-e-commerce-customer-address/taon-e-commerce-customer-address.utils.js +11 -0
- package/lib/taon-e-commerce-customer-address/taon-e-commerce-customer-address.utils.js.map +1 -0
- package/lib/taon-e-commerce-customer-address/taon-e-commerce-customer-address.validators.d.ts +7 -0
- package/lib/taon-e-commerce-customer-address/taon-e-commerce-customer-address.validators.js +3 -0
- package/lib/taon-e-commerce-customer-address/taon-e-commerce-customer-address.validators.js.map +1 -0
- package/lib/taon-e-commerce-order/i18n/taon-e-commerce-order.constants.ts.en-US.i18n.data.d.ts +15 -0
- package/lib/taon-e-commerce-order/i18n/taon-e-commerce-order.constants.ts.en-US.i18n.data.js +15 -0
- package/lib/taon-e-commerce-order/i18n/taon-e-commerce-order.constants.ts.en-US.i18n.data.js.map +1 -0
- package/lib/taon-e-commerce-order/i18n/taon-e-commerce-order.constants.ts.pl-PL.i18n.data.d.ts +15 -0
- package/lib/taon-e-commerce-order/i18n/taon-e-commerce-order.constants.ts.pl-PL.i18n.data.js +15 -0
- package/lib/taon-e-commerce-order/i18n/taon-e-commerce-order.constants.ts.pl-PL.i18n.data.js.map +1 -0
- package/lib/taon-e-commerce-order/i18n/taon-e-commerce-order.translation.d.ts +4 -0
- package/lib/taon-e-commerce-order/i18n/taon-e-commerce-order.translation.js +5 -0
- package/lib/taon-e-commerce-order/i18n/taon-e-commerce-order.translation.js.map +1 -0
- package/lib/taon-e-commerce-order/index.d.ts +12 -0
- package/lib/taon-e-commerce-order/index.js +29 -0
- package/lib/taon-e-commerce-order/index.js.map +1 -0
- package/lib/taon-e-commerce-order/taon-e-commerce-order.abstract.context.d.ts +16 -0
- package/lib/taon-e-commerce-order/taon-e-commerce-order.abstract.context.js +28 -0
- package/lib/taon-e-commerce-order/taon-e-commerce-order.abstract.context.js.map +1 -0
- package/lib/taon-e-commerce-order/taon-e-commerce-order.constants.d.ts +6 -0
- package/lib/taon-e-commerce-order/taon-e-commerce-order.constants.js +18 -0
- package/lib/taon-e-commerce-order/taon-e-commerce-order.constants.js.map +1 -0
- package/lib/taon-e-commerce-order/taon-e-commerce-order.controller.d.ts +10 -0
- package/lib/taon-e-commerce-order/taon-e-commerce-order.controller.js +56 -0
- package/lib/taon-e-commerce-order/taon-e-commerce-order.controller.js.map +1 -0
- package/lib/taon-e-commerce-order/taon-e-commerce-order.entity.d.ts +16 -0
- package/lib/taon-e-commerce-order/taon-e-commerce-order.entity.js +79 -0
- package/lib/taon-e-commerce-order/taon-e-commerce-order.entity.js.map +1 -0
- package/lib/taon-e-commerce-order/taon-e-commerce-order.kv.repository.d.ts +7 -0
- package/lib/taon-e-commerce-order/taon-e-commerce-order.kv.repository.js +24 -0
- package/lib/taon-e-commerce-order/taon-e-commerce-order.kv.repository.js.map +1 -0
- package/lib/taon-e-commerce-order/taon-e-commerce-order.middleware.d.ts +3 -0
- package/lib/taon-e-commerce-order/taon-e-commerce-order.middleware.js +21 -0
- package/lib/taon-e-commerce-order/taon-e-commerce-order.middleware.js.map +1 -0
- package/lib/taon-e-commerce-order/taon-e-commerce-order.models.d.ts +6 -0
- package/lib/taon-e-commerce-order/taon-e-commerce-order.models.js +12 -0
- package/lib/taon-e-commerce-order/taon-e-commerce-order.models.js.map +1 -0
- package/lib/taon-e-commerce-order/taon-e-commerce-order.provider.d.ts +12 -0
- package/lib/taon-e-commerce-order/taon-e-commerce-order.provider.js +32 -0
- package/lib/taon-e-commerce-order/taon-e-commerce-order.provider.js.map +1 -0
- package/lib/taon-e-commerce-order/taon-e-commerce-order.repository.d.ts +9 -0
- package/lib/taon-e-commerce-order/taon-e-commerce-order.repository.js +37 -0
- package/lib/taon-e-commerce-order/taon-e-commerce-order.repository.js.map +1 -0
- package/lib/taon-e-commerce-order/taon-e-commerce-order.subscriber.d.ts +6 -0
- package/lib/taon-e-commerce-order/taon-e-commerce-order.subscriber.js +28 -0
- package/lib/taon-e-commerce-order/taon-e-commerce-order.subscriber.js.map +1 -0
- package/lib/taon-e-commerce-order/taon-e-commerce-order.utils.d.ts +4 -0
- package/lib/taon-e-commerce-order/taon-e-commerce-order.utils.js +11 -0
- package/lib/taon-e-commerce-order/taon-e-commerce-order.utils.js.map +1 -0
- package/lib/taon-e-commerce-order/taon-e-commerce-order.validators.d.ts +7 -0
- package/lib/taon-e-commerce-order/taon-e-commerce-order.validators.js +3 -0
- package/lib/taon-e-commerce-order/taon-e-commerce-order.validators.js.map +1 -0
- package/lib/taon-e-commerce-order/taon-e-commerce-orders-backoffice/index.d.ts +1 -0
- package/lib/taon-e-commerce-order/taon-e-commerce-orders-backoffice/index.js +5 -0
- package/lib/taon-e-commerce-order/taon-e-commerce-orders-backoffice/index.js.map +1 -0
- package/lib/taon-e-commerce-order/taon-e-commerce-orders-backoffice/taon-e-commerce-orders-backoffice.models.d.ts +1 -0
- package/lib/taon-e-commerce-order/taon-e-commerce-orders-backoffice/taon-e-commerce-orders-backoffice.models.js +3 -0
- package/lib/taon-e-commerce-order/taon-e-commerce-orders-backoffice/taon-e-commerce-orders-backoffice.models.js.map +1 -0
- package/lib/taon-e-commerce-order-item/i18n/taon-e-commerce-order-item.constants.ts.en-US.i18n.data.d.ts +15 -0
- package/lib/taon-e-commerce-order-item/i18n/taon-e-commerce-order-item.constants.ts.en-US.i18n.data.js +15 -0
- package/lib/taon-e-commerce-order-item/i18n/taon-e-commerce-order-item.constants.ts.en-US.i18n.data.js.map +1 -0
- package/lib/taon-e-commerce-order-item/i18n/taon-e-commerce-order-item.constants.ts.pl-PL.i18n.data.d.ts +15 -0
- package/lib/taon-e-commerce-order-item/i18n/taon-e-commerce-order-item.constants.ts.pl-PL.i18n.data.js +15 -0
- package/lib/taon-e-commerce-order-item/i18n/taon-e-commerce-order-item.constants.ts.pl-PL.i18n.data.js.map +1 -0
- package/lib/taon-e-commerce-order-item/i18n/taon-e-commerce-order-item.translation.d.ts +4 -0
- package/lib/taon-e-commerce-order-item/i18n/taon-e-commerce-order-item.translation.js +5 -0
- package/lib/taon-e-commerce-order-item/i18n/taon-e-commerce-order-item.translation.js.map +1 -0
- package/lib/taon-e-commerce-order-item/index.d.ts +12 -0
- package/lib/taon-e-commerce-order-item/index.js +29 -0
- package/lib/taon-e-commerce-order-item/index.js.map +1 -0
- package/lib/taon-e-commerce-order-item/taon-e-commerce-order-item.abstract.context.d.ts +16 -0
- package/lib/taon-e-commerce-order-item/taon-e-commerce-order-item.abstract.context.js +28 -0
- package/lib/taon-e-commerce-order-item/taon-e-commerce-order-item.abstract.context.js.map +1 -0
- package/lib/taon-e-commerce-order-item/taon-e-commerce-order-item.constants.d.ts +6 -0
- package/lib/taon-e-commerce-order-item/taon-e-commerce-order-item.constants.js +18 -0
- package/lib/taon-e-commerce-order-item/taon-e-commerce-order-item.constants.js.map +1 -0
- package/lib/taon-e-commerce-order-item/taon-e-commerce-order-item.controller.d.ts +10 -0
- package/lib/taon-e-commerce-order-item/taon-e-commerce-order-item.controller.js +56 -0
- package/lib/taon-e-commerce-order-item/taon-e-commerce-order-item.controller.js.map +1 -0
- package/lib/taon-e-commerce-order-item/taon-e-commerce-order-item.entity.d.ts +15 -0
- package/lib/taon-e-commerce-order-item/taon-e-commerce-order-item.entity.js +81 -0
- package/lib/taon-e-commerce-order-item/taon-e-commerce-order-item.entity.js.map +1 -0
- package/lib/taon-e-commerce-order-item/taon-e-commerce-order-item.kv.repository.d.ts +7 -0
- package/lib/taon-e-commerce-order-item/taon-e-commerce-order-item.kv.repository.js +24 -0
- package/lib/taon-e-commerce-order-item/taon-e-commerce-order-item.kv.repository.js.map +1 -0
- package/lib/taon-e-commerce-order-item/taon-e-commerce-order-item.middleware.d.ts +3 -0
- package/lib/taon-e-commerce-order-item/taon-e-commerce-order-item.middleware.js +21 -0
- package/lib/taon-e-commerce-order-item/taon-e-commerce-order-item.middleware.js.map +1 -0
- package/lib/taon-e-commerce-order-item/taon-e-commerce-order-item.models.d.ts +6 -0
- package/lib/taon-e-commerce-order-item/taon-e-commerce-order-item.models.js +12 -0
- package/lib/taon-e-commerce-order-item/taon-e-commerce-order-item.models.js.map +1 -0
- package/lib/taon-e-commerce-order-item/taon-e-commerce-order-item.provider.d.ts +12 -0
- package/lib/taon-e-commerce-order-item/taon-e-commerce-order-item.provider.js +32 -0
- package/lib/taon-e-commerce-order-item/taon-e-commerce-order-item.provider.js.map +1 -0
- package/lib/taon-e-commerce-order-item/taon-e-commerce-order-item.repository.d.ts +9 -0
- package/lib/taon-e-commerce-order-item/taon-e-commerce-order-item.repository.js +37 -0
- package/lib/taon-e-commerce-order-item/taon-e-commerce-order-item.repository.js.map +1 -0
- package/lib/taon-e-commerce-order-item/taon-e-commerce-order-item.subscriber.d.ts +6 -0
- package/lib/taon-e-commerce-order-item/taon-e-commerce-order-item.subscriber.js +28 -0
- package/lib/taon-e-commerce-order-item/taon-e-commerce-order-item.subscriber.js.map +1 -0
- package/lib/taon-e-commerce-order-item/taon-e-commerce-order-item.utils.d.ts +4 -0
- package/lib/taon-e-commerce-order-item/taon-e-commerce-order-item.utils.js +11 -0
- package/lib/taon-e-commerce-order-item/taon-e-commerce-order-item.utils.js.map +1 -0
- package/lib/taon-e-commerce-order-item/taon-e-commerce-order-item.validators.d.ts +7 -0
- package/lib/taon-e-commerce-order-item/taon-e-commerce-order-item.validators.js +3 -0
- package/lib/taon-e-commerce-order-item/taon-e-commerce-order-item.validators.js.map +1 -0
- package/lib/taon-e-commerce-payment-transaction/i18n/taon-e-commerce-payment-transaction.constants.ts.en-US.i18n.data.d.ts +15 -0
- package/lib/taon-e-commerce-payment-transaction/i18n/taon-e-commerce-payment-transaction.constants.ts.en-US.i18n.data.js +15 -0
- package/lib/taon-e-commerce-payment-transaction/i18n/taon-e-commerce-payment-transaction.constants.ts.en-US.i18n.data.js.map +1 -0
- package/lib/taon-e-commerce-payment-transaction/i18n/taon-e-commerce-payment-transaction.constants.ts.pl-PL.i18n.data.d.ts +15 -0
- package/lib/taon-e-commerce-payment-transaction/i18n/taon-e-commerce-payment-transaction.constants.ts.pl-PL.i18n.data.js +15 -0
- package/lib/taon-e-commerce-payment-transaction/i18n/taon-e-commerce-payment-transaction.constants.ts.pl-PL.i18n.data.js.map +1 -0
- package/lib/taon-e-commerce-payment-transaction/i18n/taon-e-commerce-payment-transaction.translation.d.ts +4 -0
- package/lib/taon-e-commerce-payment-transaction/i18n/taon-e-commerce-payment-transaction.translation.js +5 -0
- package/lib/taon-e-commerce-payment-transaction/i18n/taon-e-commerce-payment-transaction.translation.js.map +1 -0
- package/lib/taon-e-commerce-payment-transaction/index.d.ts +12 -0
- package/lib/taon-e-commerce-payment-transaction/index.js +29 -0
- package/lib/taon-e-commerce-payment-transaction/index.js.map +1 -0
- package/lib/taon-e-commerce-payment-transaction/taon-e-commerce-payment-transaction.abstract.context.d.ts +16 -0
- package/lib/taon-e-commerce-payment-transaction/taon-e-commerce-payment-transaction.abstract.context.js +28 -0
- package/lib/taon-e-commerce-payment-transaction/taon-e-commerce-payment-transaction.abstract.context.js.map +1 -0
- package/lib/taon-e-commerce-payment-transaction/taon-e-commerce-payment-transaction.constants.d.ts +6 -0
- package/lib/taon-e-commerce-payment-transaction/taon-e-commerce-payment-transaction.constants.js +18 -0
- package/lib/taon-e-commerce-payment-transaction/taon-e-commerce-payment-transaction.constants.js.map +1 -0
- package/lib/taon-e-commerce-payment-transaction/taon-e-commerce-payment-transaction.controller.d.ts +10 -0
- package/lib/taon-e-commerce-payment-transaction/taon-e-commerce-payment-transaction.controller.js +56 -0
- package/lib/taon-e-commerce-payment-transaction/taon-e-commerce-payment-transaction.controller.js.map +1 -0
- package/lib/taon-e-commerce-payment-transaction/taon-e-commerce-payment-transaction.entity.d.ts +13 -0
- package/lib/taon-e-commerce-payment-transaction/taon-e-commerce-payment-transaction.entity.js +73 -0
- package/lib/taon-e-commerce-payment-transaction/taon-e-commerce-payment-transaction.entity.js.map +1 -0
- package/lib/taon-e-commerce-payment-transaction/taon-e-commerce-payment-transaction.kv.repository.d.ts +7 -0
- package/lib/taon-e-commerce-payment-transaction/taon-e-commerce-payment-transaction.kv.repository.js +24 -0
- package/lib/taon-e-commerce-payment-transaction/taon-e-commerce-payment-transaction.kv.repository.js.map +1 -0
- package/lib/taon-e-commerce-payment-transaction/taon-e-commerce-payment-transaction.middleware.d.ts +3 -0
- package/lib/taon-e-commerce-payment-transaction/taon-e-commerce-payment-transaction.middleware.js +21 -0
- package/lib/taon-e-commerce-payment-transaction/taon-e-commerce-payment-transaction.middleware.js.map +1 -0
- package/lib/taon-e-commerce-payment-transaction/taon-e-commerce-payment-transaction.models.d.ts +6 -0
- package/lib/taon-e-commerce-payment-transaction/taon-e-commerce-payment-transaction.models.js +12 -0
- package/lib/taon-e-commerce-payment-transaction/taon-e-commerce-payment-transaction.models.js.map +1 -0
- package/lib/taon-e-commerce-payment-transaction/taon-e-commerce-payment-transaction.provider.d.ts +12 -0
- package/lib/taon-e-commerce-payment-transaction/taon-e-commerce-payment-transaction.provider.js +32 -0
- package/lib/taon-e-commerce-payment-transaction/taon-e-commerce-payment-transaction.provider.js.map +1 -0
- package/lib/taon-e-commerce-payment-transaction/taon-e-commerce-payment-transaction.repository.d.ts +9 -0
- package/lib/taon-e-commerce-payment-transaction/taon-e-commerce-payment-transaction.repository.js +37 -0
- package/lib/taon-e-commerce-payment-transaction/taon-e-commerce-payment-transaction.repository.js.map +1 -0
- package/lib/taon-e-commerce-payment-transaction/taon-e-commerce-payment-transaction.subscriber.d.ts +6 -0
- package/lib/taon-e-commerce-payment-transaction/taon-e-commerce-payment-transaction.subscriber.js +28 -0
- package/lib/taon-e-commerce-payment-transaction/taon-e-commerce-payment-transaction.subscriber.js.map +1 -0
- package/lib/taon-e-commerce-payment-transaction/taon-e-commerce-payment-transaction.utils.d.ts +4 -0
- package/lib/taon-e-commerce-payment-transaction/taon-e-commerce-payment-transaction.utils.js +11 -0
- package/lib/taon-e-commerce-payment-transaction/taon-e-commerce-payment-transaction.utils.js.map +1 -0
- package/lib/taon-e-commerce-payment-transaction/taon-e-commerce-payment-transaction.validators.d.ts +7 -0
- package/lib/taon-e-commerce-payment-transaction/taon-e-commerce-payment-transaction.validators.js +3 -0
- package/lib/taon-e-commerce-payment-transaction/taon-e-commerce-payment-transaction.validators.js.map +1 -0
- package/lib/taon-e-commerce-payment-transaction/taon-e-commerce-payment-transactions-backoffice/index.d.ts +1 -0
- package/lib/taon-e-commerce-payment-transaction/taon-e-commerce-payment-transactions-backoffice/index.js +5 -0
- package/lib/taon-e-commerce-payment-transaction/taon-e-commerce-payment-transactions-backoffice/index.js.map +1 -0
- package/lib/taon-e-commerce-payment-transaction/taon-e-commerce-payment-transactions-backoffice/taon-e-commerce-payment-transactions-backoffice.models.d.ts +1 -0
- package/lib/taon-e-commerce-payment-transaction/taon-e-commerce-payment-transactions-backoffice/taon-e-commerce-payment-transactions-backoffice.models.js +3 -0
- package/lib/taon-e-commerce-payment-transaction/taon-e-commerce-payment-transactions-backoffice/taon-e-commerce-payment-transactions-backoffice.models.js.map +1 -0
- package/lib/taon-e-commerce-product/taon-e-commerce-product.controller.d.ts +3 -3
- package/lib/taon-e-commerce-product/taon-e-commerce-product.controller.js +12 -0
- package/lib/taon-e-commerce-product/taon-e-commerce-product.controller.js.map +1 -1
- package/lib/taon-e-commerce-product/taon-e-commerce-product.entity.d.ts +17 -1
- package/lib/taon-e-commerce-product/taon-e-commerce-product.entity.js +69 -12
- package/lib/taon-e-commerce-product/taon-e-commerce-product.entity.js.map +1 -1
- package/lib/taon-e-commerce-product/taon-e-commerce-product.provider.d.ts +9 -1
- package/lib/taon-e-commerce-product/taon-e-commerce-product.provider.js +11 -1
- package/lib/taon-e-commerce-product/taon-e-commerce-product.provider.js.map +1 -1
- package/lib/taon-e-commerce-product/taon-e-commerce-product.subscriber.d.ts +1 -2
- package/lib/taon-e-commerce-product/taon-e-commerce-product.subscriber.js.map +1 -1
- package/lib/taon-e-commerce-product/taon-e-commerce-products-backoffice/index.d.ts +1 -0
- package/lib/taon-e-commerce-product/taon-e-commerce-products-backoffice/index.js +5 -0
- package/lib/taon-e-commerce-product/taon-e-commerce-products-backoffice/index.js.map +1 -0
- package/lib/taon-e-commerce-product/taon-e-commerce-products-backoffice/taon-e-commerce-products-backoffice.models.d.ts +1 -0
- package/lib/taon-e-commerce-product/taon-e-commerce-products-backoffice/taon-e-commerce-products-backoffice.models.js +3 -0
- package/lib/taon-e-commerce-product/taon-e-commerce-products-backoffice/taon-e-commerce-products-backoffice.models.js.map +1 -0
- package/lib/taon-e-commerce-product-permission/i18n/taon-e-commerce-product-permission.constants.ts.en-US.i18n.data.d.ts +15 -0
- package/lib/taon-e-commerce-product-permission/i18n/taon-e-commerce-product-permission.constants.ts.en-US.i18n.data.js +15 -0
- package/lib/taon-e-commerce-product-permission/i18n/taon-e-commerce-product-permission.constants.ts.en-US.i18n.data.js.map +1 -0
- package/lib/taon-e-commerce-product-permission/i18n/taon-e-commerce-product-permission.constants.ts.pl-PL.i18n.data.d.ts +15 -0
- package/lib/taon-e-commerce-product-permission/i18n/taon-e-commerce-product-permission.constants.ts.pl-PL.i18n.data.js +15 -0
- package/lib/taon-e-commerce-product-permission/i18n/taon-e-commerce-product-permission.constants.ts.pl-PL.i18n.data.js.map +1 -0
- package/lib/taon-e-commerce-product-permission/i18n/taon-e-commerce-product-permission.translation.d.ts +4 -0
- package/lib/taon-e-commerce-product-permission/i18n/taon-e-commerce-product-permission.translation.js +5 -0
- package/lib/taon-e-commerce-product-permission/i18n/taon-e-commerce-product-permission.translation.js.map +1 -0
- package/lib/taon-e-commerce-product-permission/index.d.ts +12 -0
- package/lib/taon-e-commerce-product-permission/index.js +29 -0
- package/lib/taon-e-commerce-product-permission/index.js.map +1 -0
- package/lib/taon-e-commerce-product-permission/taon-e-commerce-product-permission.abstract.context.d.ts +16 -0
- package/lib/taon-e-commerce-product-permission/taon-e-commerce-product-permission.abstract.context.js +28 -0
- package/lib/taon-e-commerce-product-permission/taon-e-commerce-product-permission.abstract.context.js.map +1 -0
- package/lib/taon-e-commerce-product-permission/taon-e-commerce-product-permission.constants.d.ts +6 -0
- package/lib/taon-e-commerce-product-permission/taon-e-commerce-product-permission.constants.js +18 -0
- package/lib/taon-e-commerce-product-permission/taon-e-commerce-product-permission.constants.js.map +1 -0
- package/lib/taon-e-commerce-product-permission/taon-e-commerce-product-permission.controller.d.ts +10 -0
- package/lib/taon-e-commerce-product-permission/taon-e-commerce-product-permission.controller.js +56 -0
- package/lib/taon-e-commerce-product-permission/taon-e-commerce-product-permission.controller.js.map +1 -0
- package/lib/taon-e-commerce-product-permission/taon-e-commerce-product-permission.entity.d.ts +9 -0
- package/lib/taon-e-commerce-product-permission/taon-e-commerce-product-permission.entity.js +52 -0
- package/lib/taon-e-commerce-product-permission/taon-e-commerce-product-permission.entity.js.map +1 -0
- package/lib/taon-e-commerce-product-permission/taon-e-commerce-product-permission.kv.repository.d.ts +7 -0
- package/lib/taon-e-commerce-product-permission/taon-e-commerce-product-permission.kv.repository.js +24 -0
- package/lib/taon-e-commerce-product-permission/taon-e-commerce-product-permission.kv.repository.js.map +1 -0
- package/lib/taon-e-commerce-product-permission/taon-e-commerce-product-permission.middleware.d.ts +3 -0
- package/lib/taon-e-commerce-product-permission/taon-e-commerce-product-permission.middleware.js +21 -0
- package/lib/taon-e-commerce-product-permission/taon-e-commerce-product-permission.middleware.js.map +1 -0
- package/lib/taon-e-commerce-product-permission/taon-e-commerce-product-permission.models.d.ts +6 -0
- package/lib/taon-e-commerce-product-permission/taon-e-commerce-product-permission.models.js +12 -0
- package/lib/taon-e-commerce-product-permission/taon-e-commerce-product-permission.models.js.map +1 -0
- package/lib/taon-e-commerce-product-permission/taon-e-commerce-product-permission.provider.d.ts +12 -0
- package/lib/taon-e-commerce-product-permission/taon-e-commerce-product-permission.provider.js +32 -0
- package/lib/taon-e-commerce-product-permission/taon-e-commerce-product-permission.provider.js.map +1 -0
- package/lib/taon-e-commerce-product-permission/taon-e-commerce-product-permission.repository.d.ts +9 -0
- package/lib/taon-e-commerce-product-permission/taon-e-commerce-product-permission.repository.js +37 -0
- package/lib/taon-e-commerce-product-permission/taon-e-commerce-product-permission.repository.js.map +1 -0
- package/lib/taon-e-commerce-product-permission/taon-e-commerce-product-permission.subscriber.d.ts +6 -0
- package/lib/taon-e-commerce-product-permission/taon-e-commerce-product-permission.subscriber.js +28 -0
- package/lib/taon-e-commerce-product-permission/taon-e-commerce-product-permission.subscriber.js.map +1 -0
- package/lib/taon-e-commerce-product-permission/taon-e-commerce-product-permission.utils.d.ts +4 -0
- package/lib/taon-e-commerce-product-permission/taon-e-commerce-product-permission.utils.js +11 -0
- package/lib/taon-e-commerce-product-permission/taon-e-commerce-product-permission.utils.js.map +1 -0
- package/lib/taon-e-commerce-product-permission/taon-e-commerce-product-permission.validators.d.ts +7 -0
- package/lib/taon-e-commerce-product-permission/taon-e-commerce-product-permission.validators.js +3 -0
- package/lib/taon-e-commerce-product-permission/taon-e-commerce-product-permission.validators.js.map +1 -0
- package/lib/taon-e-commerce.abstract.context.js +12 -1
- package/lib/taon-e-commerce.abstract.context.js.map +1 -1
- package/lib-esm/lib/build-info._auto-generated_.d.ts +1 -1
- package/lib-esm/lib/build-info._auto-generated_.js +1 -1
- package/lib-esm/lib/index._auto-generated_.d.ts +106 -1
- package/lib-esm/lib/index._auto-generated_.js +105 -0
- package/lib-esm/lib/index._auto-generated_.js.map +1 -1
- package/lib-esm/lib/taon-cart/index.d.ts +2 -0
- package/lib-esm/lib/taon-cart/index.js +3 -0
- package/lib-esm/lib/taon-cart/index.js.map +1 -0
- package/lib-esm/lib/taon-cart/taon-cart.models.d.ts +6 -0
- package/lib-esm/lib/taon-cart/taon-cart.models.js +2 -0
- package/lib-esm/lib/taon-cart/taon-cart.models.js.map +1 -0
- package/lib-esm/lib/taon-cart-button/index.d.ts +2 -0
- package/lib-esm/lib/taon-cart-button/index.js +3 -0
- package/lib-esm/lib/taon-cart-button/index.js.map +1 -0
- package/lib-esm/lib/taon-cart-button/taon-cart-button.models.d.ts +1 -0
- package/lib-esm/lib/taon-cart-button/taon-cart-button.models.js +2 -0
- package/lib-esm/lib/taon-cart-button/taon-cart-button.models.js.map +1 -0
- package/lib-esm/lib/taon-e-commerce-backoffice/index.js +1 -1
- package/lib-esm/lib/taon-e-commerce-backoffice-dashboard/index.d.ts +1 -0
- package/lib-esm/lib/taon-e-commerce-backoffice-dashboard/index.js +2 -0
- package/lib-esm/lib/taon-e-commerce-backoffice-dashboard/index.js.map +1 -0
- package/lib-esm/lib/taon-e-commerce-backoffice-dashboard/taon-e-commerce-backoffice-dashboard.models.d.ts +1 -0
- package/lib-esm/lib/taon-e-commerce-backoffice-dashboard/taon-e-commerce-backoffice-dashboard.models.js +2 -0
- package/lib-esm/lib/taon-e-commerce-backoffice-dashboard/taon-e-commerce-backoffice-dashboard.models.js.map +1 -0
- package/lib-esm/lib/taon-e-commerce-backoffice-settings/index.d.ts +1 -0
- package/lib-esm/lib/taon-e-commerce-backoffice-settings/index.js +2 -0
- package/lib-esm/lib/taon-e-commerce-backoffice-settings/index.js.map +1 -0
- package/lib-esm/lib/taon-e-commerce-backoffice-settings/taon-e-commerce-backoffice-settings.context.d.ts +16 -0
- package/lib-esm/lib/taon-e-commerce-backoffice-settings/taon-e-commerce-backoffice-settings.context.js +11 -0
- package/lib-esm/lib/taon-e-commerce-backoffice-settings/taon-e-commerce-backoffice-settings.context.js.map +1 -0
- package/lib-esm/lib/taon-e-commerce-backoffice-settings/taon-e-commerce-backoffice-settings.controller.d.ts +6 -0
- package/lib-esm/lib/taon-e-commerce-backoffice-settings/taon-e-commerce-backoffice-settings.controller.js +39 -0
- package/lib-esm/lib/taon-e-commerce-backoffice-settings/taon-e-commerce-backoffice-settings.controller.js.map +1 -0
- package/lib-esm/lib/taon-e-commerce-backoffice-settings/taon-e-commerce-backoffice-settings.models.d.ts +1 -0
- package/lib-esm/lib/taon-e-commerce-backoffice-settings/taon-e-commerce-backoffice-settings.models.js +2 -0
- package/lib-esm/lib/taon-e-commerce-backoffice-settings/taon-e-commerce-backoffice-settings.models.js.map +1 -0
- package/lib-esm/lib/taon-e-commerce-backoffice-settings/taon-e-commerce-settings.kv.repository.d.ts +3 -0
- package/lib-esm/lib/taon-e-commerce-backoffice-settings/taon-e-commerce-settings.kv.repository.js +10 -0
- package/lib-esm/lib/taon-e-commerce-backoffice-settings/taon-e-commerce-settings.kv.repository.js.map +1 -0
- package/lib-esm/lib/taon-e-commerce-cart/taon-e-commerce-cart.abstract.context.js +4 -1
- package/lib-esm/lib/taon-e-commerce-cart/taon-e-commerce-cart.abstract.context.js.map +1 -1
- package/lib-esm/lib/taon-e-commerce-cart/taon-e-commerce-cart.entity.d.ts +5 -3
- package/lib-esm/lib/taon-e-commerce-cart/taon-e-commerce-cart.entity.js +18 -35
- package/lib-esm/lib/taon-e-commerce-cart/taon-e-commerce-cart.entity.js.map +1 -1
- package/lib-esm/lib/taon-e-commerce-cart-item/taon-e-commerce-cart-item.entity.d.ts +6 -2
- package/lib-esm/lib/taon-e-commerce-cart-item/taon-e-commerce-cart-item.entity.js +30 -33
- package/lib-esm/lib/taon-e-commerce-cart-item/taon-e-commerce-cart-item.entity.js.map +1 -1
- package/lib-esm/lib/taon-e-commerce-customer/index.d.ts +3 -0
- package/lib-esm/lib/taon-e-commerce-customer/index.js +4 -0
- package/lib-esm/lib/taon-e-commerce-customer/index.js.map +1 -0
- package/lib-esm/lib/taon-e-commerce-customer/taon-e-commerce-customer.controller.d.ts +24 -0
- package/lib-esm/lib/taon-e-commerce-customer/taon-e-commerce-customer.controller.js +126 -0
- package/lib-esm/lib/taon-e-commerce-customer/taon-e-commerce-customer.controller.js.map +1 -0
- package/lib-esm/lib/taon-e-commerce-customer/taon-e-commerce-customer.repository.d.ts +13 -0
- package/lib-esm/lib/taon-e-commerce-customer/taon-e-commerce-customer.repository.js +121 -0
- package/lib-esm/lib/taon-e-commerce-customer/taon-e-commerce-customer.repository.js.map +1 -0
- package/lib-esm/lib/taon-e-commerce-customer-address/i18n/taon-e-commerce-customer-address.constants.ts.en-US.i18n.data.d.ts +15 -0
- package/lib-esm/lib/taon-e-commerce-customer-address/i18n/taon-e-commerce-customer-address.constants.ts.en-US.i18n.data.js +13 -0
- package/lib-esm/lib/taon-e-commerce-customer-address/i18n/taon-e-commerce-customer-address.constants.ts.en-US.i18n.data.js.map +1 -0
- package/lib-esm/lib/taon-e-commerce-customer-address/i18n/taon-e-commerce-customer-address.constants.ts.pl-PL.i18n.data.d.ts +15 -0
- package/lib-esm/lib/taon-e-commerce-customer-address/i18n/taon-e-commerce-customer-address.constants.ts.pl-PL.i18n.data.js +13 -0
- package/lib-esm/lib/taon-e-commerce-customer-address/i18n/taon-e-commerce-customer-address.constants.ts.pl-PL.i18n.data.js.map +1 -0
- package/lib-esm/lib/taon-e-commerce-customer-address/i18n/taon-e-commerce-customer-address.translation.d.ts +4 -0
- package/lib-esm/lib/taon-e-commerce-customer-address/i18n/taon-e-commerce-customer-address.translation.js +4 -0
- package/lib-esm/lib/taon-e-commerce-customer-address/i18n/taon-e-commerce-customer-address.translation.js.map +1 -0
- package/lib-esm/lib/taon-e-commerce-customer-address/index.d.ts +12 -0
- package/lib-esm/lib/taon-e-commerce-customer-address/index.js +13 -0
- package/lib-esm/lib/taon-e-commerce-customer-address/index.js.map +1 -0
- package/lib-esm/lib/taon-e-commerce-customer-address/taon-e-commerce-customer-address.abstract.context.d.ts +16 -0
- package/lib-esm/lib/taon-e-commerce-customer-address/taon-e-commerce-customer-address.abstract.context.js +25 -0
- package/lib-esm/lib/taon-e-commerce-customer-address/taon-e-commerce-customer-address.abstract.context.js.map +1 -0
- package/lib-esm/lib/taon-e-commerce-customer-address/taon-e-commerce-customer-address.constants.d.ts +6 -0
- package/lib-esm/lib/taon-e-commerce-customer-address/taon-e-commerce-customer-address.constants.js +15 -0
- package/lib-esm/lib/taon-e-commerce-customer-address/taon-e-commerce-customer-address.constants.js.map +1 -0
- package/lib-esm/lib/taon-e-commerce-customer-address/taon-e-commerce-customer-address.controller.d.ts +10 -0
- package/lib-esm/lib/taon-e-commerce-customer-address/taon-e-commerce-customer-address.controller.js +41 -0
- package/lib-esm/lib/taon-e-commerce-customer-address/taon-e-commerce-customer-address.controller.js.map +1 -0
- package/lib-esm/lib/taon-e-commerce-customer-address/taon-e-commerce-customer-address.entity.d.ts +18 -0
- package/lib-esm/lib/taon-e-commerce-customer-address/taon-e-commerce-customer-address.entity.js +85 -0
- package/lib-esm/lib/taon-e-commerce-customer-address/taon-e-commerce-customer-address.entity.js.map +1 -0
- package/lib-esm/lib/taon-e-commerce-customer-address/taon-e-commerce-customer-address.kv.repository.d.ts +7 -0
- package/lib-esm/lib/taon-e-commerce-customer-address/taon-e-commerce-customer-address.kv.repository.js +15 -0
- package/lib-esm/lib/taon-e-commerce-customer-address/taon-e-commerce-customer-address.kv.repository.js.map +1 -0
- package/lib-esm/lib/taon-e-commerce-customer-address/taon-e-commerce-customer-address.middleware.d.ts +3 -0
- package/lib-esm/lib/taon-e-commerce-customer-address/taon-e-commerce-customer-address.middleware.js +12 -0
- package/lib-esm/lib/taon-e-commerce-customer-address/taon-e-commerce-customer-address.middleware.js.map +1 -0
- package/lib-esm/lib/taon-e-commerce-customer-address/taon-e-commerce-customer-address.models.d.ts +6 -0
- package/lib-esm/lib/taon-e-commerce-customer-address/taon-e-commerce-customer-address.models.js +9 -0
- package/lib-esm/lib/taon-e-commerce-customer-address/taon-e-commerce-customer-address.models.js.map +1 -0
- package/lib-esm/lib/taon-e-commerce-customer-address/taon-e-commerce-customer-address.provider.d.ts +12 -0
- package/lib-esm/lib/taon-e-commerce-customer-address/taon-e-commerce-customer-address.provider.js +22 -0
- package/lib-esm/lib/taon-e-commerce-customer-address/taon-e-commerce-customer-address.provider.js.map +1 -0
- package/lib-esm/lib/taon-e-commerce-customer-address/taon-e-commerce-customer-address.repository.d.ts +9 -0
- package/lib-esm/lib/taon-e-commerce-customer-address/taon-e-commerce-customer-address.repository.js +28 -0
- package/lib-esm/lib/taon-e-commerce-customer-address/taon-e-commerce-customer-address.repository.js.map +1 -0
- package/lib-esm/lib/taon-e-commerce-customer-address/taon-e-commerce-customer-address.subscriber.d.ts +6 -0
- package/lib-esm/lib/taon-e-commerce-customer-address/taon-e-commerce-customer-address.subscriber.js +19 -0
- package/lib-esm/lib/taon-e-commerce-customer-address/taon-e-commerce-customer-address.subscriber.js.map +1 -0
- package/lib-esm/lib/taon-e-commerce-customer-address/taon-e-commerce-customer-address.utils.d.ts +4 -0
- package/lib-esm/lib/taon-e-commerce-customer-address/taon-e-commerce-customer-address.utils.js +8 -0
- package/lib-esm/lib/taon-e-commerce-customer-address/taon-e-commerce-customer-address.utils.js.map +1 -0
- package/lib-esm/lib/taon-e-commerce-customer-address/taon-e-commerce-customer-address.validators.d.ts +7 -0
- package/lib-esm/lib/taon-e-commerce-customer-address/taon-e-commerce-customer-address.validators.js +2 -0
- package/lib-esm/lib/taon-e-commerce-customer-address/taon-e-commerce-customer-address.validators.js.map +1 -0
- package/lib-esm/lib/taon-e-commerce-order/i18n/taon-e-commerce-order.constants.ts.en-US.i18n.data.d.ts +15 -0
- package/lib-esm/lib/taon-e-commerce-order/i18n/taon-e-commerce-order.constants.ts.en-US.i18n.data.js +13 -0
- package/lib-esm/lib/taon-e-commerce-order/i18n/taon-e-commerce-order.constants.ts.en-US.i18n.data.js.map +1 -0
- package/lib-esm/lib/taon-e-commerce-order/i18n/taon-e-commerce-order.constants.ts.pl-PL.i18n.data.d.ts +15 -0
- package/lib-esm/lib/taon-e-commerce-order/i18n/taon-e-commerce-order.constants.ts.pl-PL.i18n.data.js +13 -0
- package/lib-esm/lib/taon-e-commerce-order/i18n/taon-e-commerce-order.constants.ts.pl-PL.i18n.data.js.map +1 -0
- package/lib-esm/lib/taon-e-commerce-order/i18n/taon-e-commerce-order.translation.d.ts +4 -0
- package/lib-esm/lib/taon-e-commerce-order/i18n/taon-e-commerce-order.translation.js +4 -0
- package/lib-esm/lib/taon-e-commerce-order/i18n/taon-e-commerce-order.translation.js.map +1 -0
- package/lib-esm/lib/taon-e-commerce-order/index.d.ts +12 -0
- package/lib-esm/lib/taon-e-commerce-order/index.js +13 -0
- package/lib-esm/lib/taon-e-commerce-order/index.js.map +1 -0
- package/lib-esm/lib/taon-e-commerce-order/taon-e-commerce-order.abstract.context.d.ts +16 -0
- package/lib-esm/lib/taon-e-commerce-order/taon-e-commerce-order.abstract.context.js +25 -0
- package/lib-esm/lib/taon-e-commerce-order/taon-e-commerce-order.abstract.context.js.map +1 -0
- package/lib-esm/lib/taon-e-commerce-order/taon-e-commerce-order.constants.d.ts +6 -0
- package/lib-esm/lib/taon-e-commerce-order/taon-e-commerce-order.constants.js +15 -0
- package/lib-esm/lib/taon-e-commerce-order/taon-e-commerce-order.constants.js.map +1 -0
- package/lib-esm/lib/taon-e-commerce-order/taon-e-commerce-order.controller.d.ts +10 -0
- package/lib-esm/lib/taon-e-commerce-order/taon-e-commerce-order.controller.js +41 -0
- package/lib-esm/lib/taon-e-commerce-order/taon-e-commerce-order.controller.js.map +1 -0
- package/lib-esm/lib/taon-e-commerce-order/taon-e-commerce-order.entity.d.ts +16 -0
- package/lib-esm/lib/taon-e-commerce-order/taon-e-commerce-order.entity.js +67 -0
- package/lib-esm/lib/taon-e-commerce-order/taon-e-commerce-order.entity.js.map +1 -0
- package/lib-esm/lib/taon-e-commerce-order/taon-e-commerce-order.kv.repository.d.ts +7 -0
- package/lib-esm/lib/taon-e-commerce-order/taon-e-commerce-order.kv.repository.js +15 -0
- package/lib-esm/lib/taon-e-commerce-order/taon-e-commerce-order.kv.repository.js.map +1 -0
- package/lib-esm/lib/taon-e-commerce-order/taon-e-commerce-order.middleware.d.ts +3 -0
- package/lib-esm/lib/taon-e-commerce-order/taon-e-commerce-order.middleware.js +12 -0
- package/lib-esm/lib/taon-e-commerce-order/taon-e-commerce-order.middleware.js.map +1 -0
- package/lib-esm/lib/taon-e-commerce-order/taon-e-commerce-order.models.d.ts +6 -0
- package/lib-esm/lib/taon-e-commerce-order/taon-e-commerce-order.models.js +9 -0
- package/lib-esm/lib/taon-e-commerce-order/taon-e-commerce-order.models.js.map +1 -0
- package/lib-esm/lib/taon-e-commerce-order/taon-e-commerce-order.provider.d.ts +12 -0
- package/lib-esm/lib/taon-e-commerce-order/taon-e-commerce-order.provider.js +22 -0
- package/lib-esm/lib/taon-e-commerce-order/taon-e-commerce-order.provider.js.map +1 -0
- package/lib-esm/lib/taon-e-commerce-order/taon-e-commerce-order.repository.d.ts +9 -0
- package/lib-esm/lib/taon-e-commerce-order/taon-e-commerce-order.repository.js +28 -0
- package/lib-esm/lib/taon-e-commerce-order/taon-e-commerce-order.repository.js.map +1 -0
- package/lib-esm/lib/taon-e-commerce-order/taon-e-commerce-order.subscriber.d.ts +6 -0
- package/lib-esm/lib/taon-e-commerce-order/taon-e-commerce-order.subscriber.js +19 -0
- package/lib-esm/lib/taon-e-commerce-order/taon-e-commerce-order.subscriber.js.map +1 -0
- package/lib-esm/lib/taon-e-commerce-order/taon-e-commerce-order.utils.d.ts +4 -0
- package/lib-esm/lib/taon-e-commerce-order/taon-e-commerce-order.utils.js +8 -0
- package/lib-esm/lib/taon-e-commerce-order/taon-e-commerce-order.utils.js.map +1 -0
- package/lib-esm/lib/taon-e-commerce-order/taon-e-commerce-order.validators.d.ts +7 -0
- package/lib-esm/lib/taon-e-commerce-order/taon-e-commerce-order.validators.js +2 -0
- package/lib-esm/lib/taon-e-commerce-order/taon-e-commerce-order.validators.js.map +1 -0
- package/lib-esm/lib/taon-e-commerce-order/taon-e-commerce-orders-backoffice/index.d.ts +1 -0
- package/lib-esm/lib/taon-e-commerce-order/taon-e-commerce-orders-backoffice/index.js +2 -0
- package/lib-esm/lib/taon-e-commerce-order/taon-e-commerce-orders-backoffice/index.js.map +1 -0
- package/lib-esm/lib/taon-e-commerce-order/taon-e-commerce-orders-backoffice/taon-e-commerce-orders-backoffice.models.d.ts +1 -0
- package/lib-esm/lib/taon-e-commerce-order/taon-e-commerce-orders-backoffice/taon-e-commerce-orders-backoffice.models.js +2 -0
- package/lib-esm/lib/taon-e-commerce-order/taon-e-commerce-orders-backoffice/taon-e-commerce-orders-backoffice.models.js.map +1 -0
- package/lib-esm/lib/taon-e-commerce-order-item/i18n/taon-e-commerce-order-item.constants.ts.en-US.i18n.data.d.ts +15 -0
- package/lib-esm/lib/taon-e-commerce-order-item/i18n/taon-e-commerce-order-item.constants.ts.en-US.i18n.data.js +13 -0
- package/lib-esm/lib/taon-e-commerce-order-item/i18n/taon-e-commerce-order-item.constants.ts.en-US.i18n.data.js.map +1 -0
- package/lib-esm/lib/taon-e-commerce-order-item/i18n/taon-e-commerce-order-item.constants.ts.pl-PL.i18n.data.d.ts +15 -0
- package/lib-esm/lib/taon-e-commerce-order-item/i18n/taon-e-commerce-order-item.constants.ts.pl-PL.i18n.data.js +13 -0
- package/lib-esm/lib/taon-e-commerce-order-item/i18n/taon-e-commerce-order-item.constants.ts.pl-PL.i18n.data.js.map +1 -0
- package/lib-esm/lib/taon-e-commerce-order-item/i18n/taon-e-commerce-order-item.translation.d.ts +4 -0
- package/lib-esm/lib/taon-e-commerce-order-item/i18n/taon-e-commerce-order-item.translation.js +4 -0
- package/lib-esm/lib/taon-e-commerce-order-item/i18n/taon-e-commerce-order-item.translation.js.map +1 -0
- package/lib-esm/lib/taon-e-commerce-order-item/index.d.ts +12 -0
- package/lib-esm/lib/taon-e-commerce-order-item/index.js +13 -0
- package/lib-esm/lib/taon-e-commerce-order-item/index.js.map +1 -0
- package/lib-esm/lib/taon-e-commerce-order-item/taon-e-commerce-order-item.abstract.context.d.ts +16 -0
- package/lib-esm/lib/taon-e-commerce-order-item/taon-e-commerce-order-item.abstract.context.js +25 -0
- package/lib-esm/lib/taon-e-commerce-order-item/taon-e-commerce-order-item.abstract.context.js.map +1 -0
- package/lib-esm/lib/taon-e-commerce-order-item/taon-e-commerce-order-item.constants.d.ts +6 -0
- package/lib-esm/lib/taon-e-commerce-order-item/taon-e-commerce-order-item.constants.js +15 -0
- package/lib-esm/lib/taon-e-commerce-order-item/taon-e-commerce-order-item.constants.js.map +1 -0
- package/lib-esm/lib/taon-e-commerce-order-item/taon-e-commerce-order-item.controller.d.ts +10 -0
- package/lib-esm/lib/taon-e-commerce-order-item/taon-e-commerce-order-item.controller.js +41 -0
- package/lib-esm/lib/taon-e-commerce-order-item/taon-e-commerce-order-item.controller.js.map +1 -0
- package/lib-esm/lib/taon-e-commerce-order-item/taon-e-commerce-order-item.entity.d.ts +15 -0
- package/lib-esm/lib/taon-e-commerce-order-item/taon-e-commerce-order-item.entity.js +69 -0
- package/lib-esm/lib/taon-e-commerce-order-item/taon-e-commerce-order-item.entity.js.map +1 -0
- package/lib-esm/lib/taon-e-commerce-order-item/taon-e-commerce-order-item.kv.repository.d.ts +7 -0
- package/lib-esm/lib/taon-e-commerce-order-item/taon-e-commerce-order-item.kv.repository.js +15 -0
- package/lib-esm/lib/taon-e-commerce-order-item/taon-e-commerce-order-item.kv.repository.js.map +1 -0
- package/lib-esm/lib/taon-e-commerce-order-item/taon-e-commerce-order-item.middleware.d.ts +3 -0
- package/lib-esm/lib/taon-e-commerce-order-item/taon-e-commerce-order-item.middleware.js +12 -0
- package/lib-esm/lib/taon-e-commerce-order-item/taon-e-commerce-order-item.middleware.js.map +1 -0
- package/lib-esm/lib/taon-e-commerce-order-item/taon-e-commerce-order-item.models.d.ts +6 -0
- package/lib-esm/lib/taon-e-commerce-order-item/taon-e-commerce-order-item.models.js +9 -0
- package/lib-esm/lib/taon-e-commerce-order-item/taon-e-commerce-order-item.models.js.map +1 -0
- package/lib-esm/lib/taon-e-commerce-order-item/taon-e-commerce-order-item.provider.d.ts +12 -0
- package/lib-esm/lib/taon-e-commerce-order-item/taon-e-commerce-order-item.provider.js +22 -0
- package/lib-esm/lib/taon-e-commerce-order-item/taon-e-commerce-order-item.provider.js.map +1 -0
- package/lib-esm/lib/taon-e-commerce-order-item/taon-e-commerce-order-item.repository.d.ts +9 -0
- package/lib-esm/lib/taon-e-commerce-order-item/taon-e-commerce-order-item.repository.js +28 -0
- package/lib-esm/lib/taon-e-commerce-order-item/taon-e-commerce-order-item.repository.js.map +1 -0
- package/lib-esm/lib/taon-e-commerce-order-item/taon-e-commerce-order-item.subscriber.d.ts +6 -0
- package/lib-esm/lib/taon-e-commerce-order-item/taon-e-commerce-order-item.subscriber.js +19 -0
- package/lib-esm/lib/taon-e-commerce-order-item/taon-e-commerce-order-item.subscriber.js.map +1 -0
- package/lib-esm/lib/taon-e-commerce-order-item/taon-e-commerce-order-item.utils.d.ts +4 -0
- package/lib-esm/lib/taon-e-commerce-order-item/taon-e-commerce-order-item.utils.js +8 -0
- package/lib-esm/lib/taon-e-commerce-order-item/taon-e-commerce-order-item.utils.js.map +1 -0
- package/lib-esm/lib/taon-e-commerce-order-item/taon-e-commerce-order-item.validators.d.ts +7 -0
- package/lib-esm/lib/taon-e-commerce-order-item/taon-e-commerce-order-item.validators.js +2 -0
- package/lib-esm/lib/taon-e-commerce-order-item/taon-e-commerce-order-item.validators.js.map +1 -0
- package/lib-esm/lib/taon-e-commerce-payment-transaction/i18n/taon-e-commerce-payment-transaction.constants.ts.en-US.i18n.data.d.ts +15 -0
- package/lib-esm/lib/taon-e-commerce-payment-transaction/i18n/taon-e-commerce-payment-transaction.constants.ts.en-US.i18n.data.js +13 -0
- package/lib-esm/lib/taon-e-commerce-payment-transaction/i18n/taon-e-commerce-payment-transaction.constants.ts.en-US.i18n.data.js.map +1 -0
- package/lib-esm/lib/taon-e-commerce-payment-transaction/i18n/taon-e-commerce-payment-transaction.constants.ts.pl-PL.i18n.data.d.ts +15 -0
- package/lib-esm/lib/taon-e-commerce-payment-transaction/i18n/taon-e-commerce-payment-transaction.constants.ts.pl-PL.i18n.data.js +13 -0
- package/lib-esm/lib/taon-e-commerce-payment-transaction/i18n/taon-e-commerce-payment-transaction.constants.ts.pl-PL.i18n.data.js.map +1 -0
- package/lib-esm/lib/taon-e-commerce-payment-transaction/i18n/taon-e-commerce-payment-transaction.translation.d.ts +4 -0
- package/lib-esm/lib/taon-e-commerce-payment-transaction/i18n/taon-e-commerce-payment-transaction.translation.js +4 -0
- package/lib-esm/lib/taon-e-commerce-payment-transaction/i18n/taon-e-commerce-payment-transaction.translation.js.map +1 -0
- package/lib-esm/lib/taon-e-commerce-payment-transaction/index.d.ts +12 -0
- package/lib-esm/lib/taon-e-commerce-payment-transaction/index.js +13 -0
- package/lib-esm/lib/taon-e-commerce-payment-transaction/index.js.map +1 -0
- package/lib-esm/lib/taon-e-commerce-payment-transaction/taon-e-commerce-payment-transaction.abstract.context.d.ts +16 -0
- package/lib-esm/lib/taon-e-commerce-payment-transaction/taon-e-commerce-payment-transaction.abstract.context.js +25 -0
- package/lib-esm/lib/taon-e-commerce-payment-transaction/taon-e-commerce-payment-transaction.abstract.context.js.map +1 -0
- package/lib-esm/lib/taon-e-commerce-payment-transaction/taon-e-commerce-payment-transaction.constants.d.ts +6 -0
- package/lib-esm/lib/taon-e-commerce-payment-transaction/taon-e-commerce-payment-transaction.constants.js +15 -0
- package/lib-esm/lib/taon-e-commerce-payment-transaction/taon-e-commerce-payment-transaction.constants.js.map +1 -0
- package/lib-esm/lib/taon-e-commerce-payment-transaction/taon-e-commerce-payment-transaction.controller.d.ts +10 -0
- package/lib-esm/lib/taon-e-commerce-payment-transaction/taon-e-commerce-payment-transaction.controller.js +41 -0
- package/lib-esm/lib/taon-e-commerce-payment-transaction/taon-e-commerce-payment-transaction.controller.js.map +1 -0
- package/lib-esm/lib/taon-e-commerce-payment-transaction/taon-e-commerce-payment-transaction.entity.d.ts +13 -0
- package/lib-esm/lib/taon-e-commerce-payment-transaction/taon-e-commerce-payment-transaction.entity.js +61 -0
- package/lib-esm/lib/taon-e-commerce-payment-transaction/taon-e-commerce-payment-transaction.entity.js.map +1 -0
- package/lib-esm/lib/taon-e-commerce-payment-transaction/taon-e-commerce-payment-transaction.kv.repository.d.ts +7 -0
- package/lib-esm/lib/taon-e-commerce-payment-transaction/taon-e-commerce-payment-transaction.kv.repository.js +15 -0
- package/lib-esm/lib/taon-e-commerce-payment-transaction/taon-e-commerce-payment-transaction.kv.repository.js.map +1 -0
- package/lib-esm/lib/taon-e-commerce-payment-transaction/taon-e-commerce-payment-transaction.middleware.d.ts +3 -0
- package/lib-esm/lib/taon-e-commerce-payment-transaction/taon-e-commerce-payment-transaction.middleware.js +12 -0
- package/lib-esm/lib/taon-e-commerce-payment-transaction/taon-e-commerce-payment-transaction.middleware.js.map +1 -0
- package/lib-esm/lib/taon-e-commerce-payment-transaction/taon-e-commerce-payment-transaction.models.d.ts +6 -0
- package/lib-esm/lib/taon-e-commerce-payment-transaction/taon-e-commerce-payment-transaction.models.js +9 -0
- package/lib-esm/lib/taon-e-commerce-payment-transaction/taon-e-commerce-payment-transaction.models.js.map +1 -0
- package/lib-esm/lib/taon-e-commerce-payment-transaction/taon-e-commerce-payment-transaction.provider.d.ts +12 -0
- package/lib-esm/lib/taon-e-commerce-payment-transaction/taon-e-commerce-payment-transaction.provider.js +22 -0
- package/lib-esm/lib/taon-e-commerce-payment-transaction/taon-e-commerce-payment-transaction.provider.js.map +1 -0
- package/lib-esm/lib/taon-e-commerce-payment-transaction/taon-e-commerce-payment-transaction.repository.d.ts +9 -0
- package/lib-esm/lib/taon-e-commerce-payment-transaction/taon-e-commerce-payment-transaction.repository.js +28 -0
- package/lib-esm/lib/taon-e-commerce-payment-transaction/taon-e-commerce-payment-transaction.repository.js.map +1 -0
- package/lib-esm/lib/taon-e-commerce-payment-transaction/taon-e-commerce-payment-transaction.subscriber.d.ts +6 -0
- package/lib-esm/lib/taon-e-commerce-payment-transaction/taon-e-commerce-payment-transaction.subscriber.js +19 -0
- package/lib-esm/lib/taon-e-commerce-payment-transaction/taon-e-commerce-payment-transaction.subscriber.js.map +1 -0
- package/lib-esm/lib/taon-e-commerce-payment-transaction/taon-e-commerce-payment-transaction.utils.d.ts +4 -0
- package/lib-esm/lib/taon-e-commerce-payment-transaction/taon-e-commerce-payment-transaction.utils.js +8 -0
- package/lib-esm/lib/taon-e-commerce-payment-transaction/taon-e-commerce-payment-transaction.utils.js.map +1 -0
- package/lib-esm/lib/taon-e-commerce-payment-transaction/taon-e-commerce-payment-transaction.validators.d.ts +7 -0
- package/lib-esm/lib/taon-e-commerce-payment-transaction/taon-e-commerce-payment-transaction.validators.js +2 -0
- package/lib-esm/lib/taon-e-commerce-payment-transaction/taon-e-commerce-payment-transaction.validators.js.map +1 -0
- package/lib-esm/lib/taon-e-commerce-payment-transaction/taon-e-commerce-payment-transactions-backoffice/index.d.ts +1 -0
- package/lib-esm/lib/taon-e-commerce-payment-transaction/taon-e-commerce-payment-transactions-backoffice/index.js +2 -0
- package/lib-esm/lib/taon-e-commerce-payment-transaction/taon-e-commerce-payment-transactions-backoffice/index.js.map +1 -0
- package/lib-esm/lib/taon-e-commerce-payment-transaction/taon-e-commerce-payment-transactions-backoffice/taon-e-commerce-payment-transactions-backoffice.models.d.ts +1 -0
- package/lib-esm/lib/taon-e-commerce-payment-transaction/taon-e-commerce-payment-transactions-backoffice/taon-e-commerce-payment-transactions-backoffice.models.js +2 -0
- package/lib-esm/lib/taon-e-commerce-payment-transaction/taon-e-commerce-payment-transactions-backoffice/taon-e-commerce-payment-transactions-backoffice.models.js.map +1 -0
- package/lib-esm/lib/taon-e-commerce-product/taon-e-commerce-product.controller.d.ts +3 -3
- package/lib-esm/lib/taon-e-commerce-product/taon-e-commerce-product.controller.js +13 -1
- package/lib-esm/lib/taon-e-commerce-product/taon-e-commerce-product.controller.js.map +1 -1
- package/lib-esm/lib/taon-e-commerce-product/taon-e-commerce-product.entity.d.ts +17 -1
- package/lib-esm/lib/taon-e-commerce-product/taon-e-commerce-product.entity.js +70 -13
- package/lib-esm/lib/taon-e-commerce-product/taon-e-commerce-product.entity.js.map +1 -1
- package/lib-esm/lib/taon-e-commerce-product/taon-e-commerce-product.provider.d.ts +9 -1
- package/lib-esm/lib/taon-e-commerce-product/taon-e-commerce-product.provider.js +10 -1
- package/lib-esm/lib/taon-e-commerce-product/taon-e-commerce-product.provider.js.map +1 -1
- package/lib-esm/lib/taon-e-commerce-product/taon-e-commerce-product.subscriber.d.ts +1 -2
- package/lib-esm/lib/taon-e-commerce-product/taon-e-commerce-product.subscriber.js.map +1 -1
- package/lib-esm/lib/taon-e-commerce-product/taon-e-commerce-products-backoffice/index.d.ts +1 -0
- package/lib-esm/lib/taon-e-commerce-product/taon-e-commerce-products-backoffice/index.js +2 -0
- package/lib-esm/lib/taon-e-commerce-product/taon-e-commerce-products-backoffice/index.js.map +1 -0
- package/lib-esm/lib/taon-e-commerce-product/taon-e-commerce-products-backoffice/taon-e-commerce-products-backoffice.models.d.ts +1 -0
- package/lib-esm/lib/taon-e-commerce-product/taon-e-commerce-products-backoffice/taon-e-commerce-products-backoffice.models.js +2 -0
- package/lib-esm/lib/taon-e-commerce-product/taon-e-commerce-products-backoffice/taon-e-commerce-products-backoffice.models.js.map +1 -0
- package/lib-esm/lib/taon-e-commerce-product-permission/i18n/taon-e-commerce-product-permission.constants.ts.en-US.i18n.data.d.ts +15 -0
- package/lib-esm/lib/taon-e-commerce-product-permission/i18n/taon-e-commerce-product-permission.constants.ts.en-US.i18n.data.js +13 -0
- package/lib-esm/lib/taon-e-commerce-product-permission/i18n/taon-e-commerce-product-permission.constants.ts.en-US.i18n.data.js.map +1 -0
- package/lib-esm/lib/taon-e-commerce-product-permission/i18n/taon-e-commerce-product-permission.constants.ts.pl-PL.i18n.data.d.ts +15 -0
- package/lib-esm/lib/taon-e-commerce-product-permission/i18n/taon-e-commerce-product-permission.constants.ts.pl-PL.i18n.data.js +13 -0
- package/lib-esm/lib/taon-e-commerce-product-permission/i18n/taon-e-commerce-product-permission.constants.ts.pl-PL.i18n.data.js.map +1 -0
- package/lib-esm/lib/taon-e-commerce-product-permission/i18n/taon-e-commerce-product-permission.translation.d.ts +4 -0
- package/lib-esm/lib/taon-e-commerce-product-permission/i18n/taon-e-commerce-product-permission.translation.js +4 -0
- package/lib-esm/lib/taon-e-commerce-product-permission/i18n/taon-e-commerce-product-permission.translation.js.map +1 -0
- package/lib-esm/lib/taon-e-commerce-product-permission/index.d.ts +12 -0
- package/lib-esm/lib/taon-e-commerce-product-permission/index.js +13 -0
- package/lib-esm/lib/taon-e-commerce-product-permission/index.js.map +1 -0
- package/lib-esm/lib/taon-e-commerce-product-permission/taon-e-commerce-product-permission.abstract.context.d.ts +16 -0
- package/lib-esm/lib/taon-e-commerce-product-permission/taon-e-commerce-product-permission.abstract.context.js +25 -0
- package/lib-esm/lib/taon-e-commerce-product-permission/taon-e-commerce-product-permission.abstract.context.js.map +1 -0
- package/lib-esm/lib/taon-e-commerce-product-permission/taon-e-commerce-product-permission.constants.d.ts +6 -0
- package/lib-esm/lib/taon-e-commerce-product-permission/taon-e-commerce-product-permission.constants.js +15 -0
- package/lib-esm/lib/taon-e-commerce-product-permission/taon-e-commerce-product-permission.constants.js.map +1 -0
- package/lib-esm/lib/taon-e-commerce-product-permission/taon-e-commerce-product-permission.controller.d.ts +10 -0
- package/lib-esm/lib/taon-e-commerce-product-permission/taon-e-commerce-product-permission.controller.js +41 -0
- package/lib-esm/lib/taon-e-commerce-product-permission/taon-e-commerce-product-permission.controller.js.map +1 -0
- package/lib-esm/lib/taon-e-commerce-product-permission/taon-e-commerce-product-permission.entity.d.ts +9 -0
- package/lib-esm/lib/taon-e-commerce-product-permission/taon-e-commerce-product-permission.entity.js +40 -0
- package/lib-esm/lib/taon-e-commerce-product-permission/taon-e-commerce-product-permission.entity.js.map +1 -0
- package/lib-esm/lib/taon-e-commerce-product-permission/taon-e-commerce-product-permission.kv.repository.d.ts +7 -0
- package/lib-esm/lib/taon-e-commerce-product-permission/taon-e-commerce-product-permission.kv.repository.js +15 -0
- package/lib-esm/lib/taon-e-commerce-product-permission/taon-e-commerce-product-permission.kv.repository.js.map +1 -0
- package/lib-esm/lib/taon-e-commerce-product-permission/taon-e-commerce-product-permission.middleware.d.ts +3 -0
- package/lib-esm/lib/taon-e-commerce-product-permission/taon-e-commerce-product-permission.middleware.js +12 -0
- package/lib-esm/lib/taon-e-commerce-product-permission/taon-e-commerce-product-permission.middleware.js.map +1 -0
- package/lib-esm/lib/taon-e-commerce-product-permission/taon-e-commerce-product-permission.models.d.ts +6 -0
- package/lib-esm/lib/taon-e-commerce-product-permission/taon-e-commerce-product-permission.models.js +9 -0
- package/lib-esm/lib/taon-e-commerce-product-permission/taon-e-commerce-product-permission.models.js.map +1 -0
- package/lib-esm/lib/taon-e-commerce-product-permission/taon-e-commerce-product-permission.provider.d.ts +12 -0
- package/lib-esm/lib/taon-e-commerce-product-permission/taon-e-commerce-product-permission.provider.js +22 -0
- package/lib-esm/lib/taon-e-commerce-product-permission/taon-e-commerce-product-permission.provider.js.map +1 -0
- package/lib-esm/lib/taon-e-commerce-product-permission/taon-e-commerce-product-permission.repository.d.ts +9 -0
- package/lib-esm/lib/taon-e-commerce-product-permission/taon-e-commerce-product-permission.repository.js +28 -0
- package/lib-esm/lib/taon-e-commerce-product-permission/taon-e-commerce-product-permission.repository.js.map +1 -0
- package/lib-esm/lib/taon-e-commerce-product-permission/taon-e-commerce-product-permission.subscriber.d.ts +6 -0
- package/lib-esm/lib/taon-e-commerce-product-permission/taon-e-commerce-product-permission.subscriber.js +19 -0
- package/lib-esm/lib/taon-e-commerce-product-permission/taon-e-commerce-product-permission.subscriber.js.map +1 -0
- package/lib-esm/lib/taon-e-commerce-product-permission/taon-e-commerce-product-permission.utils.d.ts +4 -0
- package/lib-esm/lib/taon-e-commerce-product-permission/taon-e-commerce-product-permission.utils.js +8 -0
- package/lib-esm/lib/taon-e-commerce-product-permission/taon-e-commerce-product-permission.utils.js.map +1 -0
- package/lib-esm/lib/taon-e-commerce-product-permission/taon-e-commerce-product-permission.validators.d.ts +7 -0
- package/lib-esm/lib/taon-e-commerce-product-permission/taon-e-commerce-product-permission.validators.js +2 -0
- package/lib-esm/lib/taon-e-commerce-product-permission/taon-e-commerce-product-permission.validators.js.map +1 -0
- package/lib-esm/lib/taon-e-commerce.abstract.context.js +12 -1
- package/lib-esm/lib/taon-e-commerce.abstract.context.js.map +1 -1
- package/lib-prod/build-info._auto-generated_.d.ts +1 -1
- package/lib-prod/build-info._auto-generated_.js +1 -1
- package/lib-prod/index._auto-generated_.d.ts +77 -0
- package/lib-prod/index._auto-generated_.js +105 -0
- package/lib-prod/index._auto-generated_.js.map +1 -1
- package/lib-prod/package.json +1 -1
- package/lib-prod/taon-cart/index.d.ts +1 -0
- package/lib-prod/taon-cart/index.js +3 -0
- package/lib-prod/taon-cart/index.js.map +1 -0
- package/lib-prod/taon-cart/taon-cart.models.d.ts +5 -0
- package/lib-prod/taon-cart/taon-cart.models.js +3 -0
- package/lib-prod/taon-cart/taon-cart.models.js.map +1 -0
- package/lib-prod/taon-cart-button/index.d.ts +1 -0
- package/lib-prod/taon-cart-button/index.js +3 -0
- package/lib-prod/taon-cart-button/index.js.map +1 -0
- package/lib-prod/taon-cart-button/taon-cart-button.models.d.ts +0 -0
- package/lib-prod/taon-cart-button/taon-cart-button.models.js +3 -0
- package/lib-prod/taon-cart-button/taon-cart-button.models.js.map +1 -0
- package/lib-prod/taon-e-commerce-backoffice/index.d.ts +1 -1
- package/lib-prod/taon-e-commerce-backoffice/index.js +1 -1
- package/lib-prod/taon-e-commerce-backoffice-dashboard/index.d.ts +1 -0
- package/lib-prod/taon-e-commerce-backoffice-dashboard/index.js +2 -0
- package/lib-prod/taon-e-commerce-backoffice-dashboard/index.js.map +1 -0
- package/lib-prod/taon-e-commerce-backoffice-dashboard/taon-e-commerce-backoffice-dashboard.models.d.ts +0 -0
- package/lib-prod/taon-e-commerce-backoffice-dashboard/taon-e-commerce-backoffice-dashboard.models.js +3 -0
- package/lib-prod/taon-e-commerce-backoffice-dashboard/taon-e-commerce-backoffice-dashboard.models.js.map +1 -0
- package/lib-prod/taon-e-commerce-backoffice-settings/index.d.ts +1 -0
- package/lib-prod/taon-e-commerce-backoffice-settings/index.js +2 -0
- package/lib-prod/taon-e-commerce-backoffice-settings/index.js.map +1 -0
- package/lib-prod/taon-e-commerce-backoffice-settings/taon-e-commerce-backoffice-settings.context.d.ts +16 -0
- package/lib-prod/taon-e-commerce-backoffice-settings/taon-e-commerce-backoffice-settings.context.js +11 -0
- package/lib-prod/taon-e-commerce-backoffice-settings/taon-e-commerce-backoffice-settings.context.js.map +1 -0
- package/lib-prod/taon-e-commerce-backoffice-settings/taon-e-commerce-backoffice-settings.controller.d.ts +6 -0
- package/lib-prod/taon-e-commerce-backoffice-settings/taon-e-commerce-backoffice-settings.controller.js +39 -0
- package/lib-prod/taon-e-commerce-backoffice-settings/taon-e-commerce-backoffice-settings.controller.js.map +1 -0
- package/lib-prod/taon-e-commerce-backoffice-settings/taon-e-commerce-backoffice-settings.models.d.ts +0 -0
- package/lib-prod/taon-e-commerce-backoffice-settings/taon-e-commerce-backoffice-settings.models.js +3 -0
- package/lib-prod/taon-e-commerce-backoffice-settings/taon-e-commerce-backoffice-settings.models.js.map +1 -0
- package/lib-prod/taon-e-commerce-backoffice-settings/taon-e-commerce-settings.kv.repository.d.ts +3 -0
- package/lib-prod/taon-e-commerce-backoffice-settings/taon-e-commerce-settings.kv.repository.js +10 -0
- package/lib-prod/taon-e-commerce-backoffice-settings/taon-e-commerce-settings.kv.repository.js.map +1 -0
- package/lib-prod/taon-e-commerce-cart/taon-e-commerce-cart.abstract.context.js +4 -1
- package/lib-prod/taon-e-commerce-cart/taon-e-commerce-cart.abstract.context.js.map +1 -1
- package/lib-prod/taon-e-commerce-cart/taon-e-commerce-cart.entity.d.ts +5 -3
- package/lib-prod/taon-e-commerce-cart/taon-e-commerce-cart.entity.js +18 -35
- package/lib-prod/taon-e-commerce-cart/taon-e-commerce-cart.entity.js.map +1 -1
- package/lib-prod/taon-e-commerce-cart-item/taon-e-commerce-cart-item.entity.d.ts +6 -2
- package/lib-prod/taon-e-commerce-cart-item/taon-e-commerce-cart-item.entity.js +30 -33
- package/lib-prod/taon-e-commerce-cart-item/taon-e-commerce-cart-item.entity.js.map +1 -1
- package/lib-prod/taon-e-commerce-customer/index.d.ts +2 -0
- package/lib-prod/taon-e-commerce-customer/index.js +4 -0
- package/lib-prod/taon-e-commerce-customer/index.js.map +1 -0
- package/lib-prod/taon-e-commerce-customer/taon-e-commerce-customer.controller.d.ts +24 -0
- package/lib-prod/taon-e-commerce-customer/taon-e-commerce-customer.controller.js +126 -0
- package/lib-prod/taon-e-commerce-customer/taon-e-commerce-customer.controller.js.map +1 -0
- package/lib-prod/taon-e-commerce-customer/taon-e-commerce-customer.repository.d.ts +13 -0
- package/lib-prod/taon-e-commerce-customer/taon-e-commerce-customer.repository.js +121 -0
- package/lib-prod/taon-e-commerce-customer/taon-e-commerce-customer.repository.js.map +1 -0
- package/lib-prod/taon-e-commerce-customer-address/i18n/taon-e-commerce-customer-address.constants.ts.en-US.i18n.data.d.ts +15 -0
- package/lib-prod/taon-e-commerce-customer-address/i18n/taon-e-commerce-customer-address.constants.ts.en-US.i18n.data.js +13 -0
- package/lib-prod/taon-e-commerce-customer-address/i18n/taon-e-commerce-customer-address.constants.ts.en-US.i18n.data.js.map +1 -0
- package/lib-prod/taon-e-commerce-customer-address/i18n/taon-e-commerce-customer-address.constants.ts.pl-PL.i18n.data.d.ts +15 -0
- package/lib-prod/taon-e-commerce-customer-address/i18n/taon-e-commerce-customer-address.constants.ts.pl-PL.i18n.data.js +13 -0
- package/lib-prod/taon-e-commerce-customer-address/i18n/taon-e-commerce-customer-address.constants.ts.pl-PL.i18n.data.js.map +1 -0
- package/lib-prod/taon-e-commerce-customer-address/i18n/taon-e-commerce-customer-address.translation.d.ts +4 -0
- package/lib-prod/taon-e-commerce-customer-address/i18n/taon-e-commerce-customer-address.translation.js +4 -0
- package/lib-prod/taon-e-commerce-customer-address/i18n/taon-e-commerce-customer-address.translation.js.map +1 -0
- package/lib-prod/taon-e-commerce-customer-address/index.d.ts +10 -0
- package/lib-prod/taon-e-commerce-customer-address/index.js +13 -0
- package/lib-prod/taon-e-commerce-customer-address/index.js.map +1 -0
- package/lib-prod/taon-e-commerce-customer-address/taon-e-commerce-customer-address.abstract.context.d.ts +16 -0
- package/lib-prod/taon-e-commerce-customer-address/taon-e-commerce-customer-address.abstract.context.js +25 -0
- package/lib-prod/taon-e-commerce-customer-address/taon-e-commerce-customer-address.abstract.context.js.map +1 -0
- package/lib-prod/taon-e-commerce-customer-address/taon-e-commerce-customer-address.constants.d.ts +6 -0
- package/lib-prod/taon-e-commerce-customer-address/taon-e-commerce-customer-address.constants.js +15 -0
- package/lib-prod/taon-e-commerce-customer-address/taon-e-commerce-customer-address.constants.js.map +1 -0
- package/lib-prod/taon-e-commerce-customer-address/taon-e-commerce-customer-address.controller.d.ts +10 -0
- package/lib-prod/taon-e-commerce-customer-address/taon-e-commerce-customer-address.controller.js +41 -0
- package/lib-prod/taon-e-commerce-customer-address/taon-e-commerce-customer-address.controller.js.map +1 -0
- package/lib-prod/taon-e-commerce-customer-address/taon-e-commerce-customer-address.entity.d.ts +18 -0
- package/lib-prod/taon-e-commerce-customer-address/taon-e-commerce-customer-address.entity.js +85 -0
- package/lib-prod/taon-e-commerce-customer-address/taon-e-commerce-customer-address.entity.js.map +1 -0
- package/lib-prod/taon-e-commerce-customer-address/taon-e-commerce-customer-address.kv.repository.d.ts +7 -0
- package/lib-prod/taon-e-commerce-customer-address/taon-e-commerce-customer-address.kv.repository.js +15 -0
- package/lib-prod/taon-e-commerce-customer-address/taon-e-commerce-customer-address.kv.repository.js.map +1 -0
- package/lib-prod/taon-e-commerce-customer-address/taon-e-commerce-customer-address.middleware.d.ts +3 -0
- package/lib-prod/taon-e-commerce-customer-address/taon-e-commerce-customer-address.middleware.js +12 -0
- package/lib-prod/taon-e-commerce-customer-address/taon-e-commerce-customer-address.middleware.js.map +1 -0
- package/lib-prod/taon-e-commerce-customer-address/taon-e-commerce-customer-address.models.d.ts +4 -0
- package/lib-prod/taon-e-commerce-customer-address/taon-e-commerce-customer-address.models.js +8 -0
- package/lib-prod/taon-e-commerce-customer-address/taon-e-commerce-customer-address.models.js.map +1 -0
- package/lib-prod/taon-e-commerce-customer-address/taon-e-commerce-customer-address.provider.d.ts +12 -0
- package/lib-prod/taon-e-commerce-customer-address/taon-e-commerce-customer-address.provider.js +22 -0
- package/lib-prod/taon-e-commerce-customer-address/taon-e-commerce-customer-address.provider.js.map +1 -0
- package/lib-prod/taon-e-commerce-customer-address/taon-e-commerce-customer-address.repository.d.ts +9 -0
- package/lib-prod/taon-e-commerce-customer-address/taon-e-commerce-customer-address.repository.js +28 -0
- package/lib-prod/taon-e-commerce-customer-address/taon-e-commerce-customer-address.repository.js.map +1 -0
- package/lib-prod/taon-e-commerce-customer-address/taon-e-commerce-customer-address.subscriber.d.ts +6 -0
- package/lib-prod/taon-e-commerce-customer-address/taon-e-commerce-customer-address.subscriber.js +19 -0
- package/lib-prod/taon-e-commerce-customer-address/taon-e-commerce-customer-address.subscriber.js.map +1 -0
- package/lib-prod/taon-e-commerce-customer-address/taon-e-commerce-customer-address.utils.d.ts +2 -0
- package/lib-prod/taon-e-commerce-customer-address/taon-e-commerce-customer-address.utils.js +6 -0
- package/lib-prod/taon-e-commerce-customer-address/taon-e-commerce-customer-address.utils.js.map +1 -0
- package/lib-prod/taon-e-commerce-customer-address/taon-e-commerce-customer-address.validators.d.ts +1 -0
- package/lib-prod/taon-e-commerce-customer-address/taon-e-commerce-customer-address.validators.js +22 -0
- package/lib-prod/taon-e-commerce-customer-address/taon-e-commerce-customer-address.validators.js.map +1 -0
- package/lib-prod/taon-e-commerce-order/i18n/taon-e-commerce-order.constants.ts.en-US.i18n.data.d.ts +15 -0
- package/lib-prod/taon-e-commerce-order/i18n/taon-e-commerce-order.constants.ts.en-US.i18n.data.js +13 -0
- package/lib-prod/taon-e-commerce-order/i18n/taon-e-commerce-order.constants.ts.en-US.i18n.data.js.map +1 -0
- package/lib-prod/taon-e-commerce-order/i18n/taon-e-commerce-order.constants.ts.pl-PL.i18n.data.d.ts +15 -0
- package/lib-prod/taon-e-commerce-order/i18n/taon-e-commerce-order.constants.ts.pl-PL.i18n.data.js +13 -0
- package/lib-prod/taon-e-commerce-order/i18n/taon-e-commerce-order.constants.ts.pl-PL.i18n.data.js.map +1 -0
- package/lib-prod/taon-e-commerce-order/i18n/taon-e-commerce-order.translation.d.ts +4 -0
- package/lib-prod/taon-e-commerce-order/i18n/taon-e-commerce-order.translation.js +4 -0
- package/lib-prod/taon-e-commerce-order/i18n/taon-e-commerce-order.translation.js.map +1 -0
- package/lib-prod/taon-e-commerce-order/index.d.ts +10 -0
- package/lib-prod/taon-e-commerce-order/index.js +13 -0
- package/lib-prod/taon-e-commerce-order/index.js.map +1 -0
- package/lib-prod/taon-e-commerce-order/taon-e-commerce-order.abstract.context.d.ts +16 -0
- package/lib-prod/taon-e-commerce-order/taon-e-commerce-order.abstract.context.js +25 -0
- package/lib-prod/taon-e-commerce-order/taon-e-commerce-order.abstract.context.js.map +1 -0
- package/lib-prod/taon-e-commerce-order/taon-e-commerce-order.constants.d.ts +6 -0
- package/lib-prod/taon-e-commerce-order/taon-e-commerce-order.constants.js +15 -0
- package/lib-prod/taon-e-commerce-order/taon-e-commerce-order.constants.js.map +1 -0
- package/lib-prod/taon-e-commerce-order/taon-e-commerce-order.controller.d.ts +10 -0
- package/lib-prod/taon-e-commerce-order/taon-e-commerce-order.controller.js +41 -0
- package/lib-prod/taon-e-commerce-order/taon-e-commerce-order.controller.js.map +1 -0
- package/lib-prod/taon-e-commerce-order/taon-e-commerce-order.entity.d.ts +16 -0
- package/lib-prod/taon-e-commerce-order/taon-e-commerce-order.entity.js +67 -0
- package/lib-prod/taon-e-commerce-order/taon-e-commerce-order.entity.js.map +1 -0
- package/lib-prod/taon-e-commerce-order/taon-e-commerce-order.kv.repository.d.ts +7 -0
- package/lib-prod/taon-e-commerce-order/taon-e-commerce-order.kv.repository.js +15 -0
- package/lib-prod/taon-e-commerce-order/taon-e-commerce-order.kv.repository.js.map +1 -0
- package/lib-prod/taon-e-commerce-order/taon-e-commerce-order.middleware.d.ts +3 -0
- package/lib-prod/taon-e-commerce-order/taon-e-commerce-order.middleware.js +12 -0
- package/lib-prod/taon-e-commerce-order/taon-e-commerce-order.middleware.js.map +1 -0
- package/lib-prod/taon-e-commerce-order/taon-e-commerce-order.models.d.ts +4 -0
- package/lib-prod/taon-e-commerce-order/taon-e-commerce-order.models.js +8 -0
- package/lib-prod/taon-e-commerce-order/taon-e-commerce-order.models.js.map +1 -0
- package/lib-prod/taon-e-commerce-order/taon-e-commerce-order.provider.d.ts +12 -0
- package/lib-prod/taon-e-commerce-order/taon-e-commerce-order.provider.js +22 -0
- package/lib-prod/taon-e-commerce-order/taon-e-commerce-order.provider.js.map +1 -0
- package/lib-prod/taon-e-commerce-order/taon-e-commerce-order.repository.d.ts +9 -0
- package/lib-prod/taon-e-commerce-order/taon-e-commerce-order.repository.js +28 -0
- package/lib-prod/taon-e-commerce-order/taon-e-commerce-order.repository.js.map +1 -0
- package/lib-prod/taon-e-commerce-order/taon-e-commerce-order.subscriber.d.ts +6 -0
- package/lib-prod/taon-e-commerce-order/taon-e-commerce-order.subscriber.js +19 -0
- package/lib-prod/taon-e-commerce-order/taon-e-commerce-order.subscriber.js.map +1 -0
- package/lib-prod/taon-e-commerce-order/taon-e-commerce-order.utils.d.ts +2 -0
- package/lib-prod/taon-e-commerce-order/taon-e-commerce-order.utils.js +6 -0
- package/lib-prod/taon-e-commerce-order/taon-e-commerce-order.utils.js.map +1 -0
- package/lib-prod/taon-e-commerce-order/taon-e-commerce-order.validators.d.ts +1 -0
- package/lib-prod/taon-e-commerce-order/taon-e-commerce-order.validators.js +22 -0
- package/lib-prod/taon-e-commerce-order/taon-e-commerce-order.validators.js.map +1 -0
- package/lib-prod/taon-e-commerce-order/taon-e-commerce-orders-backoffice/index.d.ts +1 -0
- package/lib-prod/taon-e-commerce-order/taon-e-commerce-orders-backoffice/index.js +2 -0
- package/lib-prod/taon-e-commerce-order/taon-e-commerce-orders-backoffice/index.js.map +1 -0
- package/lib-prod/taon-e-commerce-order/taon-e-commerce-orders-backoffice/taon-e-commerce-orders-backoffice.models.d.ts +0 -0
- package/lib-prod/taon-e-commerce-order/taon-e-commerce-orders-backoffice/taon-e-commerce-orders-backoffice.models.js +3 -0
- package/lib-prod/taon-e-commerce-order/taon-e-commerce-orders-backoffice/taon-e-commerce-orders-backoffice.models.js.map +1 -0
- package/lib-prod/taon-e-commerce-order-item/i18n/taon-e-commerce-order-item.constants.ts.en-US.i18n.data.d.ts +15 -0
- package/lib-prod/taon-e-commerce-order-item/i18n/taon-e-commerce-order-item.constants.ts.en-US.i18n.data.js +13 -0
- package/lib-prod/taon-e-commerce-order-item/i18n/taon-e-commerce-order-item.constants.ts.en-US.i18n.data.js.map +1 -0
- package/lib-prod/taon-e-commerce-order-item/i18n/taon-e-commerce-order-item.constants.ts.pl-PL.i18n.data.d.ts +15 -0
- package/lib-prod/taon-e-commerce-order-item/i18n/taon-e-commerce-order-item.constants.ts.pl-PL.i18n.data.js +13 -0
- package/lib-prod/taon-e-commerce-order-item/i18n/taon-e-commerce-order-item.constants.ts.pl-PL.i18n.data.js.map +1 -0
- package/lib-prod/taon-e-commerce-order-item/i18n/taon-e-commerce-order-item.translation.d.ts +4 -0
- package/lib-prod/taon-e-commerce-order-item/i18n/taon-e-commerce-order-item.translation.js +4 -0
- package/lib-prod/taon-e-commerce-order-item/i18n/taon-e-commerce-order-item.translation.js.map +1 -0
- package/lib-prod/taon-e-commerce-order-item/index.d.ts +10 -0
- package/lib-prod/taon-e-commerce-order-item/index.js +13 -0
- package/lib-prod/taon-e-commerce-order-item/index.js.map +1 -0
- package/lib-prod/taon-e-commerce-order-item/taon-e-commerce-order-item.abstract.context.d.ts +16 -0
- package/lib-prod/taon-e-commerce-order-item/taon-e-commerce-order-item.abstract.context.js +25 -0
- package/lib-prod/taon-e-commerce-order-item/taon-e-commerce-order-item.abstract.context.js.map +1 -0
- package/lib-prod/taon-e-commerce-order-item/taon-e-commerce-order-item.constants.d.ts +6 -0
- package/lib-prod/taon-e-commerce-order-item/taon-e-commerce-order-item.constants.js +15 -0
- package/lib-prod/taon-e-commerce-order-item/taon-e-commerce-order-item.constants.js.map +1 -0
- package/lib-prod/taon-e-commerce-order-item/taon-e-commerce-order-item.controller.d.ts +10 -0
- package/lib-prod/taon-e-commerce-order-item/taon-e-commerce-order-item.controller.js +41 -0
- package/lib-prod/taon-e-commerce-order-item/taon-e-commerce-order-item.controller.js.map +1 -0
- package/lib-prod/taon-e-commerce-order-item/taon-e-commerce-order-item.entity.d.ts +15 -0
- package/lib-prod/taon-e-commerce-order-item/taon-e-commerce-order-item.entity.js +69 -0
- package/lib-prod/taon-e-commerce-order-item/taon-e-commerce-order-item.entity.js.map +1 -0
- package/lib-prod/taon-e-commerce-order-item/taon-e-commerce-order-item.kv.repository.d.ts +7 -0
- package/lib-prod/taon-e-commerce-order-item/taon-e-commerce-order-item.kv.repository.js +15 -0
- package/lib-prod/taon-e-commerce-order-item/taon-e-commerce-order-item.kv.repository.js.map +1 -0
- package/lib-prod/taon-e-commerce-order-item/taon-e-commerce-order-item.middleware.d.ts +3 -0
- package/lib-prod/taon-e-commerce-order-item/taon-e-commerce-order-item.middleware.js +12 -0
- package/lib-prod/taon-e-commerce-order-item/taon-e-commerce-order-item.middleware.js.map +1 -0
- package/lib-prod/taon-e-commerce-order-item/taon-e-commerce-order-item.models.d.ts +4 -0
- package/lib-prod/taon-e-commerce-order-item/taon-e-commerce-order-item.models.js +8 -0
- package/lib-prod/taon-e-commerce-order-item/taon-e-commerce-order-item.models.js.map +1 -0
- package/lib-prod/taon-e-commerce-order-item/taon-e-commerce-order-item.provider.d.ts +12 -0
- package/lib-prod/taon-e-commerce-order-item/taon-e-commerce-order-item.provider.js +22 -0
- package/lib-prod/taon-e-commerce-order-item/taon-e-commerce-order-item.provider.js.map +1 -0
- package/lib-prod/taon-e-commerce-order-item/taon-e-commerce-order-item.repository.d.ts +9 -0
- package/lib-prod/taon-e-commerce-order-item/taon-e-commerce-order-item.repository.js +28 -0
- package/lib-prod/taon-e-commerce-order-item/taon-e-commerce-order-item.repository.js.map +1 -0
- package/lib-prod/taon-e-commerce-order-item/taon-e-commerce-order-item.subscriber.d.ts +6 -0
- package/lib-prod/taon-e-commerce-order-item/taon-e-commerce-order-item.subscriber.js +19 -0
- package/lib-prod/taon-e-commerce-order-item/taon-e-commerce-order-item.subscriber.js.map +1 -0
- package/lib-prod/taon-e-commerce-order-item/taon-e-commerce-order-item.utils.d.ts +2 -0
- package/lib-prod/taon-e-commerce-order-item/taon-e-commerce-order-item.utils.js +6 -0
- package/lib-prod/taon-e-commerce-order-item/taon-e-commerce-order-item.utils.js.map +1 -0
- package/lib-prod/taon-e-commerce-order-item/taon-e-commerce-order-item.validators.d.ts +1 -0
- package/lib-prod/taon-e-commerce-order-item/taon-e-commerce-order-item.validators.js +22 -0
- package/lib-prod/taon-e-commerce-order-item/taon-e-commerce-order-item.validators.js.map +1 -0
- package/lib-prod/taon-e-commerce-payment-transaction/i18n/taon-e-commerce-payment-transaction.constants.ts.en-US.i18n.data.d.ts +15 -0
- package/lib-prod/taon-e-commerce-payment-transaction/i18n/taon-e-commerce-payment-transaction.constants.ts.en-US.i18n.data.js +13 -0
- package/lib-prod/taon-e-commerce-payment-transaction/i18n/taon-e-commerce-payment-transaction.constants.ts.en-US.i18n.data.js.map +1 -0
- package/lib-prod/taon-e-commerce-payment-transaction/i18n/taon-e-commerce-payment-transaction.constants.ts.pl-PL.i18n.data.d.ts +15 -0
- package/lib-prod/taon-e-commerce-payment-transaction/i18n/taon-e-commerce-payment-transaction.constants.ts.pl-PL.i18n.data.js +13 -0
- package/lib-prod/taon-e-commerce-payment-transaction/i18n/taon-e-commerce-payment-transaction.constants.ts.pl-PL.i18n.data.js.map +1 -0
- package/lib-prod/taon-e-commerce-payment-transaction/i18n/taon-e-commerce-payment-transaction.translation.d.ts +4 -0
- package/lib-prod/taon-e-commerce-payment-transaction/i18n/taon-e-commerce-payment-transaction.translation.js +4 -0
- package/lib-prod/taon-e-commerce-payment-transaction/i18n/taon-e-commerce-payment-transaction.translation.js.map +1 -0
- package/lib-prod/taon-e-commerce-payment-transaction/index.d.ts +10 -0
- package/lib-prod/taon-e-commerce-payment-transaction/index.js +13 -0
- package/lib-prod/taon-e-commerce-payment-transaction/index.js.map +1 -0
- package/lib-prod/taon-e-commerce-payment-transaction/taon-e-commerce-payment-transaction.abstract.context.d.ts +16 -0
- package/lib-prod/taon-e-commerce-payment-transaction/taon-e-commerce-payment-transaction.abstract.context.js +25 -0
- package/lib-prod/taon-e-commerce-payment-transaction/taon-e-commerce-payment-transaction.abstract.context.js.map +1 -0
- package/lib-prod/taon-e-commerce-payment-transaction/taon-e-commerce-payment-transaction.constants.d.ts +6 -0
- package/lib-prod/taon-e-commerce-payment-transaction/taon-e-commerce-payment-transaction.constants.js +15 -0
- package/lib-prod/taon-e-commerce-payment-transaction/taon-e-commerce-payment-transaction.constants.js.map +1 -0
- package/lib-prod/taon-e-commerce-payment-transaction/taon-e-commerce-payment-transaction.controller.d.ts +10 -0
- package/lib-prod/taon-e-commerce-payment-transaction/taon-e-commerce-payment-transaction.controller.js +41 -0
- package/lib-prod/taon-e-commerce-payment-transaction/taon-e-commerce-payment-transaction.controller.js.map +1 -0
- package/lib-prod/taon-e-commerce-payment-transaction/taon-e-commerce-payment-transaction.entity.d.ts +13 -0
- package/lib-prod/taon-e-commerce-payment-transaction/taon-e-commerce-payment-transaction.entity.js +61 -0
- package/lib-prod/taon-e-commerce-payment-transaction/taon-e-commerce-payment-transaction.entity.js.map +1 -0
- package/lib-prod/taon-e-commerce-payment-transaction/taon-e-commerce-payment-transaction.kv.repository.d.ts +7 -0
- package/lib-prod/taon-e-commerce-payment-transaction/taon-e-commerce-payment-transaction.kv.repository.js +15 -0
- package/lib-prod/taon-e-commerce-payment-transaction/taon-e-commerce-payment-transaction.kv.repository.js.map +1 -0
- package/lib-prod/taon-e-commerce-payment-transaction/taon-e-commerce-payment-transaction.middleware.d.ts +3 -0
- package/lib-prod/taon-e-commerce-payment-transaction/taon-e-commerce-payment-transaction.middleware.js +12 -0
- package/lib-prod/taon-e-commerce-payment-transaction/taon-e-commerce-payment-transaction.middleware.js.map +1 -0
- package/lib-prod/taon-e-commerce-payment-transaction/taon-e-commerce-payment-transaction.models.d.ts +4 -0
- package/lib-prod/taon-e-commerce-payment-transaction/taon-e-commerce-payment-transaction.models.js +8 -0
- package/lib-prod/taon-e-commerce-payment-transaction/taon-e-commerce-payment-transaction.models.js.map +1 -0
- package/lib-prod/taon-e-commerce-payment-transaction/taon-e-commerce-payment-transaction.provider.d.ts +12 -0
- package/lib-prod/taon-e-commerce-payment-transaction/taon-e-commerce-payment-transaction.provider.js +22 -0
- package/lib-prod/taon-e-commerce-payment-transaction/taon-e-commerce-payment-transaction.provider.js.map +1 -0
- package/lib-prod/taon-e-commerce-payment-transaction/taon-e-commerce-payment-transaction.repository.d.ts +9 -0
- package/lib-prod/taon-e-commerce-payment-transaction/taon-e-commerce-payment-transaction.repository.js +28 -0
- package/lib-prod/taon-e-commerce-payment-transaction/taon-e-commerce-payment-transaction.repository.js.map +1 -0
- package/lib-prod/taon-e-commerce-payment-transaction/taon-e-commerce-payment-transaction.subscriber.d.ts +6 -0
- package/lib-prod/taon-e-commerce-payment-transaction/taon-e-commerce-payment-transaction.subscriber.js +19 -0
- package/lib-prod/taon-e-commerce-payment-transaction/taon-e-commerce-payment-transaction.subscriber.js.map +1 -0
- package/lib-prod/taon-e-commerce-payment-transaction/taon-e-commerce-payment-transaction.utils.d.ts +2 -0
- package/lib-prod/taon-e-commerce-payment-transaction/taon-e-commerce-payment-transaction.utils.js +6 -0
- package/lib-prod/taon-e-commerce-payment-transaction/taon-e-commerce-payment-transaction.utils.js.map +1 -0
- package/lib-prod/taon-e-commerce-payment-transaction/taon-e-commerce-payment-transaction.validators.d.ts +1 -0
- package/lib-prod/taon-e-commerce-payment-transaction/taon-e-commerce-payment-transaction.validators.js +22 -0
- package/lib-prod/taon-e-commerce-payment-transaction/taon-e-commerce-payment-transaction.validators.js.map +1 -0
- package/lib-prod/taon-e-commerce-payment-transaction/taon-e-commerce-payment-transactions-backoffice/index.d.ts +1 -0
- package/lib-prod/taon-e-commerce-payment-transaction/taon-e-commerce-payment-transactions-backoffice/index.js +2 -0
- package/lib-prod/taon-e-commerce-payment-transaction/taon-e-commerce-payment-transactions-backoffice/index.js.map +1 -0
- package/lib-prod/taon-e-commerce-payment-transaction/taon-e-commerce-payment-transactions-backoffice/taon-e-commerce-payment-transactions-backoffice.models.d.ts +0 -0
- package/lib-prod/taon-e-commerce-payment-transaction/taon-e-commerce-payment-transactions-backoffice/taon-e-commerce-payment-transactions-backoffice.models.js +3 -0
- package/lib-prod/taon-e-commerce-payment-transaction/taon-e-commerce-payment-transactions-backoffice/taon-e-commerce-payment-transactions-backoffice.models.js.map +1 -0
- package/lib-prod/taon-e-commerce-product/taon-e-commerce-product.controller.d.ts +3 -3
- package/lib-prod/taon-e-commerce-product/taon-e-commerce-product.controller.js +13 -1
- package/lib-prod/taon-e-commerce-product/taon-e-commerce-product.controller.js.map +1 -1
- package/lib-prod/taon-e-commerce-product/taon-e-commerce-product.entity.d.ts +17 -1
- package/lib-prod/taon-e-commerce-product/taon-e-commerce-product.entity.js +70 -13
- package/lib-prod/taon-e-commerce-product/taon-e-commerce-product.entity.js.map +1 -1
- package/lib-prod/taon-e-commerce-product/taon-e-commerce-product.provider.d.ts +9 -1
- package/lib-prod/taon-e-commerce-product/taon-e-commerce-product.provider.js +10 -1
- package/lib-prod/taon-e-commerce-product/taon-e-commerce-product.provider.js.map +1 -1
- package/lib-prod/taon-e-commerce-product/taon-e-commerce-product.subscriber.d.ts +1 -2
- package/lib-prod/taon-e-commerce-product/taon-e-commerce-product.subscriber.js.map +1 -1
- package/lib-prod/taon-e-commerce-product/taon-e-commerce-products-backoffice/index.d.ts +1 -0
- package/lib-prod/taon-e-commerce-product/taon-e-commerce-products-backoffice/index.js +2 -0
- package/lib-prod/taon-e-commerce-product/taon-e-commerce-products-backoffice/index.js.map +1 -0
- package/lib-prod/taon-e-commerce-product/taon-e-commerce-products-backoffice/taon-e-commerce-products-backoffice.models.d.ts +0 -0
- package/lib-prod/taon-e-commerce-product/taon-e-commerce-products-backoffice/taon-e-commerce-products-backoffice.models.js +3 -0
- package/lib-prod/taon-e-commerce-product/taon-e-commerce-products-backoffice/taon-e-commerce-products-backoffice.models.js.map +1 -0
- package/lib-prod/taon-e-commerce-product-permission/i18n/taon-e-commerce-product-permission.constants.ts.en-US.i18n.data.d.ts +15 -0
- package/lib-prod/taon-e-commerce-product-permission/i18n/taon-e-commerce-product-permission.constants.ts.en-US.i18n.data.js +13 -0
- package/lib-prod/taon-e-commerce-product-permission/i18n/taon-e-commerce-product-permission.constants.ts.en-US.i18n.data.js.map +1 -0
- package/lib-prod/taon-e-commerce-product-permission/i18n/taon-e-commerce-product-permission.constants.ts.pl-PL.i18n.data.d.ts +15 -0
- package/lib-prod/taon-e-commerce-product-permission/i18n/taon-e-commerce-product-permission.constants.ts.pl-PL.i18n.data.js +13 -0
- package/lib-prod/taon-e-commerce-product-permission/i18n/taon-e-commerce-product-permission.constants.ts.pl-PL.i18n.data.js.map +1 -0
- package/lib-prod/taon-e-commerce-product-permission/i18n/taon-e-commerce-product-permission.translation.d.ts +4 -0
- package/lib-prod/taon-e-commerce-product-permission/i18n/taon-e-commerce-product-permission.translation.js +4 -0
- package/lib-prod/taon-e-commerce-product-permission/i18n/taon-e-commerce-product-permission.translation.js.map +1 -0
- package/lib-prod/taon-e-commerce-product-permission/index.d.ts +10 -0
- package/lib-prod/taon-e-commerce-product-permission/index.js +13 -0
- package/lib-prod/taon-e-commerce-product-permission/index.js.map +1 -0
- package/lib-prod/taon-e-commerce-product-permission/taon-e-commerce-product-permission.abstract.context.d.ts +16 -0
- package/lib-prod/taon-e-commerce-product-permission/taon-e-commerce-product-permission.abstract.context.js +25 -0
- package/lib-prod/taon-e-commerce-product-permission/taon-e-commerce-product-permission.abstract.context.js.map +1 -0
- package/lib-prod/taon-e-commerce-product-permission/taon-e-commerce-product-permission.constants.d.ts +6 -0
- package/lib-prod/taon-e-commerce-product-permission/taon-e-commerce-product-permission.constants.js +15 -0
- package/lib-prod/taon-e-commerce-product-permission/taon-e-commerce-product-permission.constants.js.map +1 -0
- package/lib-prod/taon-e-commerce-product-permission/taon-e-commerce-product-permission.controller.d.ts +10 -0
- package/lib-prod/taon-e-commerce-product-permission/taon-e-commerce-product-permission.controller.js +41 -0
- package/lib-prod/taon-e-commerce-product-permission/taon-e-commerce-product-permission.controller.js.map +1 -0
- package/lib-prod/taon-e-commerce-product-permission/taon-e-commerce-product-permission.entity.d.ts +9 -0
- package/lib-prod/taon-e-commerce-product-permission/taon-e-commerce-product-permission.entity.js +40 -0
- package/lib-prod/taon-e-commerce-product-permission/taon-e-commerce-product-permission.entity.js.map +1 -0
- package/lib-prod/taon-e-commerce-product-permission/taon-e-commerce-product-permission.kv.repository.d.ts +7 -0
- package/lib-prod/taon-e-commerce-product-permission/taon-e-commerce-product-permission.kv.repository.js +15 -0
- package/lib-prod/taon-e-commerce-product-permission/taon-e-commerce-product-permission.kv.repository.js.map +1 -0
- package/lib-prod/taon-e-commerce-product-permission/taon-e-commerce-product-permission.middleware.d.ts +3 -0
- package/lib-prod/taon-e-commerce-product-permission/taon-e-commerce-product-permission.middleware.js +12 -0
- package/lib-prod/taon-e-commerce-product-permission/taon-e-commerce-product-permission.middleware.js.map +1 -0
- package/lib-prod/taon-e-commerce-product-permission/taon-e-commerce-product-permission.models.d.ts +4 -0
- package/lib-prod/taon-e-commerce-product-permission/taon-e-commerce-product-permission.models.js +8 -0
- package/lib-prod/taon-e-commerce-product-permission/taon-e-commerce-product-permission.models.js.map +1 -0
- package/lib-prod/taon-e-commerce-product-permission/taon-e-commerce-product-permission.provider.d.ts +12 -0
- package/lib-prod/taon-e-commerce-product-permission/taon-e-commerce-product-permission.provider.js +22 -0
- package/lib-prod/taon-e-commerce-product-permission/taon-e-commerce-product-permission.provider.js.map +1 -0
- package/lib-prod/taon-e-commerce-product-permission/taon-e-commerce-product-permission.repository.d.ts +9 -0
- package/lib-prod/taon-e-commerce-product-permission/taon-e-commerce-product-permission.repository.js +28 -0
- package/lib-prod/taon-e-commerce-product-permission/taon-e-commerce-product-permission.repository.js.map +1 -0
- package/lib-prod/taon-e-commerce-product-permission/taon-e-commerce-product-permission.subscriber.d.ts +6 -0
- package/lib-prod/taon-e-commerce-product-permission/taon-e-commerce-product-permission.subscriber.js +19 -0
- package/lib-prod/taon-e-commerce-product-permission/taon-e-commerce-product-permission.subscriber.js.map +1 -0
- package/lib-prod/taon-e-commerce-product-permission/taon-e-commerce-product-permission.utils.d.ts +2 -0
- package/lib-prod/taon-e-commerce-product-permission/taon-e-commerce-product-permission.utils.js +6 -0
- package/lib-prod/taon-e-commerce-product-permission/taon-e-commerce-product-permission.utils.js.map +1 -0
- package/lib-prod/taon-e-commerce-product-permission/taon-e-commerce-product-permission.validators.d.ts +1 -0
- package/lib-prod/taon-e-commerce-product-permission/taon-e-commerce-product-permission.validators.js +22 -0
- package/lib-prod/taon-e-commerce-product-permission/taon-e-commerce-product-permission.validators.js.map +1 -0
- package/lib-prod/taon-e-commerce.abstract.context.js +12 -1
- package/lib-prod/taon-e-commerce.abstract.context.js.map +1 -1
- package/lib-prod.split-namespaces.json +41 -1
- package/package.json +1 -1
- package/scss/global.scss +2 -0
- package/scss/lib/taon-cart/taon-cart.component.scss +74 -0
- package/scss/lib/taon-cart-button/taon-cart-button.component.scss +7 -0
- package/scss/lib/taon-e-commerce-backoffice-dashboard/taon-e-commerce-backoffice-dashboard.component.scss +28 -0
- package/scss/lib/taon-e-commerce-backoffice-settings/taon-e-commerce-backoffice-settings.component.scss +29 -0
- package/scss/lib/taon-e-commerce-order/taon-e-commerce-orders-backoffice/taon-e-commerce-order-details-backoffice.component.scss +33 -0
- package/scss/lib/taon-e-commerce-order/taon-e-commerce-orders-backoffice/taon-e-commerce-orders-backoffice.component.scss +6 -0
- package/scss/lib/taon-e-commerce-payment-transaction/taon-e-commerce-payment-transactions-backoffice/taon-e-commerce-payment-transaction-details-backoffice.component.scss +21 -0
- package/scss/lib/taon-e-commerce-payment-transaction/taon-e-commerce-payment-transactions-backoffice/taon-e-commerce-payment-transactions-backoffice.component.scss +3 -0
- package/scss/lib/taon-e-commerce-product/taon-e-commerce-product-edit-dialog.component.scss +35 -0
- package/scss/lib/taon-e-commerce-product/taon-e-commerce-products-backoffice/taon-e-commerce-products-backoffice.component.scss +25 -0
- package/websql/fesm2022/e-commerce-websql-taon-e-commerce-customer-address.constants.ts.en-US.i18n.data-DC_CevEg.mjs +15 -0
- package/websql/fesm2022/e-commerce-websql-taon-e-commerce-customer-address.constants.ts.en-US.i18n.data-DC_CevEg.mjs.map +1 -0
- package/websql/fesm2022/e-commerce-websql-taon-e-commerce-customer-address.constants.ts.pl-PL.i18n.data-CcXrYrto.mjs +15 -0
- package/websql/fesm2022/e-commerce-websql-taon-e-commerce-customer-address.constants.ts.pl-PL.i18n.data-CcXrYrto.mjs.map +1 -0
- package/websql/fesm2022/e-commerce-websql-taon-e-commerce-order-item.constants.ts.en-US.i18n.data-39idoaMN.mjs +15 -0
- package/websql/fesm2022/e-commerce-websql-taon-e-commerce-order-item.constants.ts.en-US.i18n.data-39idoaMN.mjs.map +1 -0
- package/websql/fesm2022/e-commerce-websql-taon-e-commerce-order-item.constants.ts.pl-PL.i18n.data-CBnzq5TF.mjs +15 -0
- package/websql/fesm2022/e-commerce-websql-taon-e-commerce-order-item.constants.ts.pl-PL.i18n.data-CBnzq5TF.mjs.map +1 -0
- package/websql/fesm2022/e-commerce-websql-taon-e-commerce-order.constants.ts.en-US.i18n.data-BlXHdUA1.mjs +15 -0
- package/websql/fesm2022/e-commerce-websql-taon-e-commerce-order.constants.ts.en-US.i18n.data-BlXHdUA1.mjs.map +1 -0
- package/websql/fesm2022/e-commerce-websql-taon-e-commerce-order.constants.ts.pl-PL.i18n.data-CPLpYCri.mjs +15 -0
- package/websql/fesm2022/e-commerce-websql-taon-e-commerce-order.constants.ts.pl-PL.i18n.data-CPLpYCri.mjs.map +1 -0
- package/websql/fesm2022/e-commerce-websql-taon-e-commerce-payment-transaction.constants.ts.en-US.i18n.data-C8fTMhcu.mjs +15 -0
- package/websql/fesm2022/e-commerce-websql-taon-e-commerce-payment-transaction.constants.ts.en-US.i18n.data-C8fTMhcu.mjs.map +1 -0
- package/websql/fesm2022/e-commerce-websql-taon-e-commerce-payment-transaction.constants.ts.pl-PL.i18n.data-9VHu058_.mjs +15 -0
- package/websql/fesm2022/e-commerce-websql-taon-e-commerce-payment-transaction.constants.ts.pl-PL.i18n.data-9VHu058_.mjs.map +1 -0
- package/websql/fesm2022/e-commerce-websql-taon-e-commerce-product-permission.constants.ts.en-US.i18n.data-BVP8Fo-v.mjs +15 -0
- package/websql/fesm2022/e-commerce-websql-taon-e-commerce-product-permission.constants.ts.en-US.i18n.data-BVP8Fo-v.mjs.map +1 -0
- package/websql/fesm2022/e-commerce-websql-taon-e-commerce-product-permission.constants.ts.pl-PL.i18n.data-D7mHABSf.mjs +15 -0
- package/websql/fesm2022/e-commerce-websql-taon-e-commerce-product-permission.constants.ts.pl-PL.i18n.data-D7mHABSf.mjs.map +1 -0
- package/websql/fesm2022/e-commerce-websql.mjs +3323 -322
- package/websql/fesm2022/e-commerce-websql.mjs.map +1 -1
- package/websql/package.json +1 -1
- package/websql/types/e-commerce-websql.d.ts +1075 -91
- package/websql-prod/fesm2022/e-commerce-websql-prod-taon-e-commerce-customer-address.constants.ts.en-US.i18n.data-DC_CevEg.mjs +15 -0
- package/websql-prod/fesm2022/e-commerce-websql-prod-taon-e-commerce-customer-address.constants.ts.en-US.i18n.data-DC_CevEg.mjs.map +1 -0
- package/websql-prod/fesm2022/e-commerce-websql-prod-taon-e-commerce-customer-address.constants.ts.pl-PL.i18n.data-CcXrYrto.mjs +15 -0
- package/websql-prod/fesm2022/e-commerce-websql-prod-taon-e-commerce-customer-address.constants.ts.pl-PL.i18n.data-CcXrYrto.mjs.map +1 -0
- package/websql-prod/fesm2022/e-commerce-websql-prod-taon-e-commerce-order-item.constants.ts.en-US.i18n.data-39idoaMN.mjs +15 -0
- package/websql-prod/fesm2022/e-commerce-websql-prod-taon-e-commerce-order-item.constants.ts.en-US.i18n.data-39idoaMN.mjs.map +1 -0
- package/websql-prod/fesm2022/e-commerce-websql-prod-taon-e-commerce-order-item.constants.ts.pl-PL.i18n.data-CBnzq5TF.mjs +15 -0
- package/websql-prod/fesm2022/e-commerce-websql-prod-taon-e-commerce-order-item.constants.ts.pl-PL.i18n.data-CBnzq5TF.mjs.map +1 -0
- package/websql-prod/fesm2022/e-commerce-websql-prod-taon-e-commerce-order.constants.ts.en-US.i18n.data-BlXHdUA1.mjs +15 -0
- package/websql-prod/fesm2022/e-commerce-websql-prod-taon-e-commerce-order.constants.ts.en-US.i18n.data-BlXHdUA1.mjs.map +1 -0
- package/websql-prod/fesm2022/e-commerce-websql-prod-taon-e-commerce-order.constants.ts.pl-PL.i18n.data-CPLpYCri.mjs +15 -0
- package/websql-prod/fesm2022/e-commerce-websql-prod-taon-e-commerce-order.constants.ts.pl-PL.i18n.data-CPLpYCri.mjs.map +1 -0
- package/websql-prod/fesm2022/e-commerce-websql-prod-taon-e-commerce-payment-transaction.constants.ts.en-US.i18n.data-C8fTMhcu.mjs +15 -0
- package/websql-prod/fesm2022/e-commerce-websql-prod-taon-e-commerce-payment-transaction.constants.ts.en-US.i18n.data-C8fTMhcu.mjs.map +1 -0
- package/websql-prod/fesm2022/e-commerce-websql-prod-taon-e-commerce-payment-transaction.constants.ts.pl-PL.i18n.data-9VHu058_.mjs +15 -0
- package/websql-prod/fesm2022/e-commerce-websql-prod-taon-e-commerce-payment-transaction.constants.ts.pl-PL.i18n.data-9VHu058_.mjs.map +1 -0
- package/websql-prod/fesm2022/e-commerce-websql-prod-taon-e-commerce-product-permission.constants.ts.en-US.i18n.data-BVP8Fo-v.mjs +15 -0
- package/websql-prod/fesm2022/e-commerce-websql-prod-taon-e-commerce-product-permission.constants.ts.en-US.i18n.data-BVP8Fo-v.mjs.map +1 -0
- package/websql-prod/fesm2022/e-commerce-websql-prod-taon-e-commerce-product-permission.constants.ts.pl-PL.i18n.data-D7mHABSf.mjs +15 -0
- package/websql-prod/fesm2022/e-commerce-websql-prod-taon-e-commerce-product-permission.constants.ts.pl-PL.i18n.data-D7mHABSf.mjs.map +1 -0
- package/websql-prod/fesm2022/e-commerce-websql-prod.mjs +3318 -317
- package/websql-prod/fesm2022/e-commerce-websql-prod.mjs.map +1 -1
- package/websql-prod/package.json +1 -1
- package/websql-prod/types/e-commerce-websql-prod.d.ts +979 -39
- package/websql-prod.split-namespaces.json +61 -1
|
@@ -1,16 +1,37 @@
|
|
|
1
1
|
import { __decorate, __metadata, __param } from 'tslib';
|
|
2
2
|
import { MyAppRole, MyAppPermission, MyAppGroup, TaonCmsAbstractContext } from '@taon-dev/cms/websql-prod';
|
|
3
|
-
import { TaonAuthContextRepository } from '@taon-dev/session/websql-prod';
|
|
4
|
-
import { TaonBaseMigration, TaonMigration, TaonBaseAbstractEntity, Column, TaonEntity, TaonBaseRepository, TaonRepository, TaonBaseCrudController, ClassHelpers__NS__getName, GET, Query, TaonController, TaonBaseProvider, TaonProvider, createContext, TaonBaseContext,
|
|
3
|
+
import { TaonAuthContextRepository, TaonSessionUserEntity, TaonPermissionEntity, TaonSessionRepository, TaonPermissionApiService } from '@taon-dev/session/websql-prod';
|
|
4
|
+
import { TaonBaseMigration, TaonMigration, TaonBaseAbstractEntity, Column, ManyToOne, JoinColumn, CreateDateColumn, UpdateDateColumn, Index, TaonEntity, OneToMany, String500Column, BooleanColumn, TaonBaseRepository, TaonRepository, TaonBaseCrudController, ClassHelpers__NS__getName, GET, Query, TaonController, TaonBaseProvider, TaonProvider, TaonBaseController, POST, Body, createContext, TaonBaseContext, TaonBaseClass, TaonBaseKvRepository, PUT, TaonBaseAngularService, TaonBaseMiddleware, TaonMiddleware, TaonBaseSubscriberForEntity, TaonSubscriber } from 'taon/websql-prod';
|
|
5
5
|
import { decodeEnv, UtilsJson__NS__getValue } from 'tnp-core/websql-prod';
|
|
6
6
|
import { Translation } from '@taon-dev/i18n/websql-prod';
|
|
7
7
|
import { BaseCommandLineFeature } from 'tnp-helpers/websql-prod';
|
|
8
8
|
import { Raw } from 'taon-typeorm/websql-prod';
|
|
9
|
-
import { AsyncPipe } from '@angular/common';
|
|
9
|
+
import { CurrencyPipe, DatePipe, AsyncPipe } from '@angular/common';
|
|
10
10
|
import * as i0 from '@angular/core';
|
|
11
|
-
import { ChangeDetectionStrategy, Component,
|
|
12
|
-
import
|
|
11
|
+
import { Injectable, inject, signal, Input, ChangeDetectionStrategy, Component, ViewChild } from '@angular/core';
|
|
12
|
+
import * as i1 from '@angular/material/button';
|
|
13
|
+
import { MatButtonModule } from '@angular/material/button';
|
|
14
|
+
import * as i4 from '@angular/material/dialog';
|
|
15
|
+
import { MatDialogRef, MatDialog, MAT_DIALOG_DATA, MatDialogModule } from '@angular/material/dialog';
|
|
16
|
+
import * as i2 from '@angular/material/icon';
|
|
17
|
+
import { MatIconModule } from '@angular/material/icon';
|
|
18
|
+
import * as i3 from '@angular/material/tabs';
|
|
19
|
+
import { MatTabsModule } from '@angular/material/tabs';
|
|
20
|
+
import { TaonDatatableComponent, adminLazyRoute } from '@taon-dev/ui/websql-prod';
|
|
21
|
+
import * as i1$1 from '@angular/material/badge';
|
|
22
|
+
import { MatBadgeModule } from '@angular/material/badge';
|
|
23
|
+
import { RouterOutlet, ActivatedRoute, Router } from '@angular/router';
|
|
13
24
|
import { map } from 'rxjs/operators';
|
|
25
|
+
import * as i1$2 from '@angular/forms';
|
|
26
|
+
import { FormsModule } from '@angular/forms';
|
|
27
|
+
import * as i3$1 from '@angular/material/checkbox';
|
|
28
|
+
import { MatCheckboxModule } from '@angular/material/checkbox';
|
|
29
|
+
import * as i5 from '@angular/material/form-field';
|
|
30
|
+
import { MatFormFieldModule } from '@angular/material/form-field';
|
|
31
|
+
import * as i6 from '@angular/material/input';
|
|
32
|
+
import { MatInputModule } from '@angular/material/input';
|
|
33
|
+
import * as i7 from '@angular/material/select';
|
|
34
|
+
import { MatSelectModule } from '@angular/material/select';
|
|
14
35
|
|
|
15
36
|
//#region Migration class for context "ECommerceContext"
|
|
16
37
|
let ECommerceContext_1791132517216_initial = class ECommerceContext_1791132517216_initial extends TaonBaseMigration {
|
|
@@ -980,12 +1001,12 @@ const CURRENT_PACKAGE_TAON_VERSION = 'v21';
|
|
|
980
1001
|
/**
|
|
981
1002
|
* Autogenerated by current cli tool. Use *tnp release* to bump version.
|
|
982
1003
|
*/
|
|
983
|
-
const CURRENT_PACKAGE_VERSION = '21.0.
|
|
1004
|
+
const CURRENT_PACKAGE_VERSION = '21.0.5';
|
|
984
1005
|
// THIS FILE IS GENERATED - DO NOT MODIFY
|
|
985
1006
|
|
|
986
|
-
const t$
|
|
1007
|
+
const t$8 = Translation.for('src/lib/my-organization-proj.ts', { "src/lib/my-organization-proj.ts": { "en-US": async () => (await import('./e-commerce-websql-prod-my-organization-proj.ts.en-US.i18n.data-CoSik70Y.mjs')).default, "pl-PL": async () => (await import('./e-commerce-websql-prod-my-organization-proj.ts.pl-PL.i18n.data-BZPsT3Zk.mjs')).default } });
|
|
987
1008
|
function myOrgProj() {
|
|
988
|
-
t$
|
|
1009
|
+
t$8.gettext('My Translated Company Name!');
|
|
989
1010
|
}
|
|
990
1011
|
|
|
991
1012
|
//#region tnp-helpers cli template
|
|
@@ -1077,39 +1098,328 @@ async function startCli(argsv, filename) {
|
|
|
1077
1098
|
return (void 0);
|
|
1078
1099
|
}
|
|
1079
1100
|
|
|
1080
|
-
|
|
1081
|
-
let TaonECommerceCartEntity = class TaonECommerceCartEntity extends TaonBaseAbstractEntity {
|
|
1101
|
+
let TaonECommercePaymentTransactionEntity = class TaonECommercePaymentTransactionEntity extends TaonBaseAbstractEntity {
|
|
1082
1102
|
};
|
|
1083
1103
|
__decorate([
|
|
1084
|
-
Column({ type: '
|
|
1085
|
-
//#endregion
|
|
1086
|
-
,
|
|
1104
|
+
Column({ type: 'int' }),
|
|
1087
1105
|
__metadata("design:type", Number)
|
|
1088
|
-
],
|
|
1106
|
+
], TaonECommercePaymentTransactionEntity.prototype, "orderId", void 0);
|
|
1089
1107
|
__decorate([
|
|
1090
|
-
Column({ type: 'varchar'
|
|
1091
|
-
//#endregion
|
|
1092
|
-
,
|
|
1108
|
+
Column({ type: 'varchar' }),
|
|
1093
1109
|
__metadata("design:type", String)
|
|
1094
|
-
],
|
|
1110
|
+
], TaonECommercePaymentTransactionEntity.prototype, "provider", void 0);
|
|
1095
1111
|
__decorate([
|
|
1096
|
-
Column({ type: 'varchar'
|
|
1097
|
-
//#endregion
|
|
1098
|
-
,
|
|
1112
|
+
Column({ type: 'varchar' }),
|
|
1099
1113
|
__metadata("design:type", String)
|
|
1100
|
-
],
|
|
1114
|
+
], TaonECommercePaymentTransactionEntity.prototype, "providerTransactionId", void 0);
|
|
1101
1115
|
__decorate([
|
|
1102
|
-
Column({ type: '
|
|
1103
|
-
|
|
1104
|
-
|
|
1116
|
+
Column({ type: 'varchar' }),
|
|
1117
|
+
__metadata("design:type", String)
|
|
1118
|
+
], TaonECommercePaymentTransactionEntity.prototype, "status", void 0);
|
|
1119
|
+
__decorate([
|
|
1120
|
+
Column({ type: 'float' }),
|
|
1121
|
+
__metadata("design:type", Number)
|
|
1122
|
+
], TaonECommercePaymentTransactionEntity.prototype, "amount", void 0);
|
|
1123
|
+
__decorate([
|
|
1124
|
+
Column({ type: 'varchar', length: 3 }),
|
|
1125
|
+
__metadata("design:type", String)
|
|
1126
|
+
], TaonECommercePaymentTransactionEntity.prototype, "currency", void 0);
|
|
1127
|
+
__decorate([
|
|
1128
|
+
ManyToOne(() => TaonECommerceOrderEntity, order => order.transactions, {
|
|
1129
|
+
onDelete: 'CASCADE',
|
|
1130
|
+
}),
|
|
1131
|
+
JoinColumn({ name: 'orderId' }),
|
|
1132
|
+
__metadata("design:type", TaonECommerceOrderEntity)
|
|
1133
|
+
], TaonECommercePaymentTransactionEntity.prototype, "order", void 0);
|
|
1134
|
+
__decorate([
|
|
1135
|
+
CreateDateColumn(),
|
|
1136
|
+
__metadata("design:type", Date)
|
|
1137
|
+
], TaonECommercePaymentTransactionEntity.prototype, "createdAt", void 0);
|
|
1138
|
+
__decorate([
|
|
1139
|
+
UpdateDateColumn(),
|
|
1140
|
+
__metadata("design:type", Date)
|
|
1141
|
+
], TaonECommercePaymentTransactionEntity.prototype, "updatedAt", void 0);
|
|
1142
|
+
TaonECommercePaymentTransactionEntity = __decorate([
|
|
1143
|
+
Index(['provider', 'providerTransactionId'], { unique: true }),
|
|
1144
|
+
TaonEntity({
|
|
1145
|
+
className: 'TaonECommercePaymentTransactionEntity',
|
|
1146
|
+
createTable: true,
|
|
1147
|
+
})
|
|
1148
|
+
], TaonECommercePaymentTransactionEntity);
|
|
1149
|
+
|
|
1150
|
+
let TaonECommerceOrderEntity = class TaonECommerceOrderEntity extends TaonBaseAbstractEntity {
|
|
1151
|
+
};
|
|
1152
|
+
__decorate([
|
|
1153
|
+
Column({ type: 'int' }),
|
|
1154
|
+
__metadata("design:type", Number)
|
|
1155
|
+
], TaonECommerceOrderEntity.prototype, "userId", void 0);
|
|
1156
|
+
__decorate([
|
|
1157
|
+
Column({ type: 'varchar' }),
|
|
1158
|
+
__metadata("design:type", String)
|
|
1159
|
+
], TaonECommerceOrderEntity.prototype, "status", void 0);
|
|
1160
|
+
__decorate([
|
|
1161
|
+
Column({ type: 'varchar', length: 3 }),
|
|
1162
|
+
__metadata("design:type", String)
|
|
1163
|
+
], TaonECommerceOrderEntity.prototype, "currency", void 0);
|
|
1164
|
+
__decorate([
|
|
1165
|
+
Column({ type: 'float' }),
|
|
1166
|
+
__metadata("design:type", Number)
|
|
1167
|
+
], TaonECommerceOrderEntity.prototype, "subtotal", void 0);
|
|
1168
|
+
__decorate([
|
|
1169
|
+
Column({ type: 'float' }),
|
|
1170
|
+
__metadata("design:type", Number)
|
|
1171
|
+
], TaonECommerceOrderEntity.prototype, "total", void 0);
|
|
1172
|
+
__decorate([
|
|
1173
|
+
ManyToOne(() => TaonSessionUserEntity, {
|
|
1174
|
+
onDelete: 'RESTRICT',
|
|
1175
|
+
}),
|
|
1176
|
+
JoinColumn({ name: 'userId' }),
|
|
1177
|
+
__metadata("design:type", TaonSessionUserEntity)
|
|
1178
|
+
], TaonECommerceOrderEntity.prototype, "user", void 0);
|
|
1179
|
+
__decorate([
|
|
1180
|
+
OneToMany(() => TaonECommerceOrderItemEntity, item => item.order),
|
|
1181
|
+
__metadata("design:type", Array)
|
|
1182
|
+
], TaonECommerceOrderEntity.prototype, "items", void 0);
|
|
1183
|
+
__decorate([
|
|
1184
|
+
OneToMany(() => TaonECommercePaymentTransactionEntity, transaction => transaction.order),
|
|
1185
|
+
__metadata("design:type", Array)
|
|
1186
|
+
], TaonECommerceOrderEntity.prototype, "transactions", void 0);
|
|
1187
|
+
__decorate([
|
|
1188
|
+
CreateDateColumn(),
|
|
1189
|
+
__metadata("design:type", Date)
|
|
1190
|
+
], TaonECommerceOrderEntity.prototype, "createdAt", void 0);
|
|
1191
|
+
__decorate([
|
|
1192
|
+
UpdateDateColumn(),
|
|
1193
|
+
__metadata("design:type", Date)
|
|
1194
|
+
], TaonECommerceOrderEntity.prototype, "updatedAt", void 0);
|
|
1195
|
+
TaonECommerceOrderEntity = __decorate([
|
|
1196
|
+
TaonEntity({
|
|
1197
|
+
className: 'TaonECommerceOrderEntity',
|
|
1198
|
+
createTable: true,
|
|
1199
|
+
})
|
|
1200
|
+
], TaonECommerceOrderEntity);
|
|
1201
|
+
|
|
1202
|
+
let TaonECommerceOrderItemEntity = class TaonECommerceOrderItemEntity extends TaonBaseAbstractEntity {
|
|
1203
|
+
};
|
|
1204
|
+
__decorate([
|
|
1205
|
+
Column({ type: 'int' }),
|
|
1206
|
+
__metadata("design:type", Number)
|
|
1207
|
+
], TaonECommerceOrderItemEntity.prototype, "orderId", void 0);
|
|
1208
|
+
__decorate([
|
|
1209
|
+
Column({ type: 'int' }),
|
|
1210
|
+
__metadata("design:type", Number)
|
|
1211
|
+
], TaonECommerceOrderItemEntity.prototype, "productId", void 0);
|
|
1212
|
+
__decorate([
|
|
1213
|
+
Column({ type: 'varchar' }),
|
|
1214
|
+
__metadata("design:type", String)
|
|
1215
|
+
], TaonECommerceOrderItemEntity.prototype, "productName", void 0);
|
|
1216
|
+
__decorate([
|
|
1217
|
+
Column({ type: 'float' }),
|
|
1218
|
+
__metadata("design:type", Number)
|
|
1219
|
+
], TaonECommerceOrderItemEntity.prototype, "unitPrice", void 0);
|
|
1220
|
+
__decorate([
|
|
1221
|
+
Column({ type: 'int' }),
|
|
1222
|
+
__metadata("design:type", Number)
|
|
1223
|
+
], TaonECommerceOrderItemEntity.prototype, "quantity", void 0);
|
|
1224
|
+
__decorate([
|
|
1225
|
+
Column({ type: 'float' }),
|
|
1226
|
+
__metadata("design:type", Number)
|
|
1227
|
+
], TaonECommerceOrderItemEntity.prototype, "totalPrice", void 0);
|
|
1228
|
+
__decorate([
|
|
1229
|
+
ManyToOne(() => TaonECommerceOrderEntity, order => order.items, {
|
|
1230
|
+
onDelete: 'CASCADE',
|
|
1231
|
+
}),
|
|
1232
|
+
JoinColumn({ name: 'orderId' }),
|
|
1233
|
+
__metadata("design:type", TaonECommerceOrderEntity)
|
|
1234
|
+
], TaonECommerceOrderItemEntity.prototype, "order", void 0);
|
|
1235
|
+
__decorate([
|
|
1236
|
+
ManyToOne(() => TaonECommerceProductEntity, product => product.orderItems, {
|
|
1237
|
+
onDelete: 'RESTRICT',
|
|
1238
|
+
}),
|
|
1239
|
+
JoinColumn({ name: 'productId' }),
|
|
1240
|
+
__metadata("design:type", TaonECommerceProductEntity)
|
|
1241
|
+
], TaonECommerceOrderItemEntity.prototype, "product", void 0);
|
|
1242
|
+
__decorate([
|
|
1243
|
+
CreateDateColumn(),
|
|
1244
|
+
__metadata("design:type", Date)
|
|
1245
|
+
], TaonECommerceOrderItemEntity.prototype, "createdAt", void 0);
|
|
1246
|
+
__decorate([
|
|
1247
|
+
UpdateDateColumn(),
|
|
1248
|
+
__metadata("design:type", Date)
|
|
1249
|
+
], TaonECommerceOrderItemEntity.prototype, "updatedAt", void 0);
|
|
1250
|
+
TaonECommerceOrderItemEntity = __decorate([
|
|
1251
|
+
TaonEntity({
|
|
1252
|
+
className: 'TaonECommerceOrderItemEntity',
|
|
1253
|
+
createTable: true,
|
|
1254
|
+
})
|
|
1255
|
+
], TaonECommerceOrderItemEntity);
|
|
1256
|
+
|
|
1257
|
+
let TaonECommerceProductPermissionEntity = class TaonECommerceProductPermissionEntity extends TaonBaseAbstractEntity {
|
|
1258
|
+
};
|
|
1259
|
+
__decorate([
|
|
1260
|
+
Column({ type: 'int' }),
|
|
1261
|
+
__metadata("design:type", Number)
|
|
1262
|
+
], TaonECommerceProductPermissionEntity.prototype, "productId", void 0);
|
|
1263
|
+
__decorate([
|
|
1264
|
+
Column({ type: 'int' }),
|
|
1265
|
+
__metadata("design:type", Number)
|
|
1266
|
+
], TaonECommerceProductPermissionEntity.prototype, "permissionId", void 0);
|
|
1267
|
+
__decorate([
|
|
1268
|
+
ManyToOne(() => TaonECommerceProductEntity, product => product.permissions, {
|
|
1269
|
+
onDelete: 'CASCADE',
|
|
1270
|
+
}),
|
|
1271
|
+
JoinColumn({ name: 'productId' }),
|
|
1272
|
+
__metadata("design:type", TaonECommerceProductEntity)
|
|
1273
|
+
], TaonECommerceProductPermissionEntity.prototype, "product", void 0);
|
|
1274
|
+
__decorate([
|
|
1275
|
+
ManyToOne(() => TaonPermissionEntity, {
|
|
1276
|
+
onDelete: 'CASCADE',
|
|
1277
|
+
}),
|
|
1278
|
+
JoinColumn({ name: 'permissionId' }),
|
|
1279
|
+
__metadata("design:type", TaonPermissionEntity)
|
|
1280
|
+
], TaonECommerceProductPermissionEntity.prototype, "permission", void 0);
|
|
1281
|
+
TaonECommerceProductPermissionEntity = __decorate([
|
|
1282
|
+
Index(['productId', 'permissionId'], { unique: true }),
|
|
1283
|
+
TaonEntity({
|
|
1284
|
+
className: 'TaonECommerceProductPermissionEntity',
|
|
1285
|
+
createTable: true,
|
|
1286
|
+
})
|
|
1287
|
+
], TaonECommerceProductPermissionEntity);
|
|
1288
|
+
|
|
1289
|
+
let TaonECommerceProductEntity = class TaonECommerceProductEntity extends TaonBaseAbstractEntity {
|
|
1290
|
+
};
|
|
1291
|
+
__decorate([
|
|
1292
|
+
String500Column(),
|
|
1293
|
+
__metadata("design:type", String)
|
|
1294
|
+
], TaonECommerceProductEntity.prototype, "name", void 0);
|
|
1295
|
+
__decorate([
|
|
1296
|
+
Column({ type: 'text', nullable: true }),
|
|
1297
|
+
__metadata("design:type", String)
|
|
1298
|
+
], TaonECommerceProductEntity.prototype, "description", void 0);
|
|
1299
|
+
__decorate([
|
|
1300
|
+
BooleanColumn(true),
|
|
1301
|
+
__metadata("design:type", Boolean)
|
|
1302
|
+
], TaonECommerceProductEntity.prototype, "active", void 0);
|
|
1303
|
+
__decorate([
|
|
1304
|
+
Column({ type: 'varchar' }),
|
|
1305
|
+
__metadata("design:type", String)
|
|
1306
|
+
], TaonECommerceProductEntity.prototype, "type", void 0);
|
|
1307
|
+
__decorate([
|
|
1308
|
+
Column({ type: 'float' }),
|
|
1309
|
+
__metadata("design:type", Number)
|
|
1310
|
+
], TaonECommerceProductEntity.prototype, "price", void 0);
|
|
1311
|
+
__decorate([
|
|
1312
|
+
Column({ type: 'varchar', length: 3, default: 'USD' }),
|
|
1313
|
+
__metadata("design:type", String)
|
|
1314
|
+
], TaonECommerceProductEntity.prototype, "currency", void 0);
|
|
1315
|
+
__decorate([
|
|
1316
|
+
Column({ type: 'varchar', nullable: true }),
|
|
1317
|
+
__metadata("design:type", String)
|
|
1318
|
+
], TaonECommerceProductEntity.prototype, "stripeProductId", void 0);
|
|
1319
|
+
__decorate([
|
|
1320
|
+
Column({ type: 'varchar', nullable: true }),
|
|
1321
|
+
__metadata("design:type", String)
|
|
1322
|
+
], TaonECommerceProductEntity.prototype, "stripePriceId", void 0);
|
|
1323
|
+
__decorate([
|
|
1324
|
+
Column({ type: 'datetime', nullable: true }),
|
|
1325
|
+
__metadata("design:type", Date)
|
|
1326
|
+
], TaonECommerceProductEntity.prototype, "stripeLastSyncedAt", void 0);
|
|
1327
|
+
__decorate([
|
|
1328
|
+
CreateDateColumn(),
|
|
1329
|
+
__metadata("design:type", Date)
|
|
1330
|
+
], TaonECommerceProductEntity.prototype, "createdAt", void 0);
|
|
1331
|
+
__decorate([
|
|
1332
|
+
UpdateDateColumn(),
|
|
1333
|
+
__metadata("design:type", Date)
|
|
1334
|
+
], TaonECommerceProductEntity.prototype, "updatedAt", void 0);
|
|
1335
|
+
__decorate([
|
|
1336
|
+
OneToMany(() => TaonECommerceProductPermissionEntity, link => link.product),
|
|
1337
|
+
__metadata("design:type", Array)
|
|
1338
|
+
], TaonECommerceProductEntity.prototype, "permissions", void 0);
|
|
1339
|
+
__decorate([
|
|
1340
|
+
OneToMany(() => TaonECommerceCartItemEntity, item => item.product),
|
|
1341
|
+
__metadata("design:type", Array)
|
|
1342
|
+
], TaonECommerceProductEntity.prototype, "cartItems", void 0);
|
|
1343
|
+
__decorate([
|
|
1344
|
+
OneToMany(() => TaonECommerceOrderItemEntity, item => item.product),
|
|
1345
|
+
__metadata("design:type", Array)
|
|
1346
|
+
], TaonECommerceProductEntity.prototype, "orderItems", void 0);
|
|
1347
|
+
TaonECommerceProductEntity = __decorate([
|
|
1348
|
+
TaonEntity({
|
|
1349
|
+
className: 'TaonECommerceProductEntity',
|
|
1350
|
+
createTable: true,
|
|
1351
|
+
})
|
|
1352
|
+
], TaonECommerceProductEntity);
|
|
1353
|
+
|
|
1354
|
+
let TaonECommerceCartItemEntity = class TaonECommerceCartItemEntity extends TaonBaseAbstractEntity {
|
|
1355
|
+
};
|
|
1356
|
+
__decorate([
|
|
1357
|
+
Column({ type: 'int' }),
|
|
1358
|
+
__metadata("design:type", Number)
|
|
1359
|
+
], TaonECommerceCartItemEntity.prototype, "cartId", void 0);
|
|
1360
|
+
__decorate([
|
|
1361
|
+
Column({ type: 'int' }),
|
|
1362
|
+
__metadata("design:type", Number)
|
|
1363
|
+
], TaonECommerceCartItemEntity.prototype, "productId", void 0);
|
|
1364
|
+
__decorate([
|
|
1365
|
+
Column({ type: 'int', default: 1 }),
|
|
1366
|
+
__metadata("design:type", Number)
|
|
1367
|
+
], TaonECommerceCartItemEntity.prototype, "quantity", void 0);
|
|
1368
|
+
__decorate([
|
|
1369
|
+
ManyToOne(() => TaonECommerceCartEntity, cart => cart.items, {
|
|
1370
|
+
onDelete: 'CASCADE',
|
|
1371
|
+
}),
|
|
1372
|
+
JoinColumn({ name: 'cartId' }),
|
|
1373
|
+
__metadata("design:type", TaonECommerceCartEntity)
|
|
1374
|
+
], TaonECommerceCartItemEntity.prototype, "cart", void 0);
|
|
1375
|
+
__decorate([
|
|
1376
|
+
ManyToOne(() => TaonECommerceProductEntity, product => product.cartItems, {
|
|
1377
|
+
onDelete: 'RESTRICT',
|
|
1378
|
+
}),
|
|
1379
|
+
JoinColumn({ name: 'productId' }),
|
|
1380
|
+
__metadata("design:type", TaonECommerceProductEntity)
|
|
1381
|
+
], TaonECommerceCartItemEntity.prototype, "product", void 0);
|
|
1382
|
+
__decorate([
|
|
1383
|
+
CreateDateColumn(),
|
|
1384
|
+
__metadata("design:type", Date)
|
|
1385
|
+
], TaonECommerceCartItemEntity.prototype, "createdAt", void 0);
|
|
1386
|
+
__decorate([
|
|
1387
|
+
UpdateDateColumn(),
|
|
1388
|
+
__metadata("design:type", Date)
|
|
1389
|
+
], TaonECommerceCartItemEntity.prototype, "updatedAt", void 0);
|
|
1390
|
+
TaonECommerceCartItemEntity = __decorate([
|
|
1391
|
+
Index(['cartId', 'productId'], { unique: true }),
|
|
1392
|
+
TaonEntity({
|
|
1393
|
+
className: 'TaonECommerceCartItemEntity',
|
|
1394
|
+
createTable: true,
|
|
1395
|
+
})
|
|
1396
|
+
], TaonECommerceCartItemEntity);
|
|
1397
|
+
|
|
1398
|
+
let TaonECommerceCartEntity = class TaonECommerceCartEntity extends TaonBaseAbstractEntity {
|
|
1399
|
+
};
|
|
1400
|
+
__decorate([
|
|
1401
|
+
Column({ type: 'int' }),
|
|
1402
|
+
__metadata("design:type", Number)
|
|
1403
|
+
], TaonECommerceCartEntity.prototype, "userId", void 0);
|
|
1404
|
+
__decorate([
|
|
1405
|
+
ManyToOne(() => TaonSessionUserEntity, {
|
|
1406
|
+
onDelete: 'CASCADE',
|
|
1407
|
+
}),
|
|
1408
|
+
JoinColumn({ name: 'userId' }),
|
|
1409
|
+
__metadata("design:type", TaonSessionUserEntity)
|
|
1410
|
+
], TaonECommerceCartEntity.prototype, "user", void 0);
|
|
1411
|
+
__decorate([
|
|
1412
|
+
CreateDateColumn(),
|
|
1105
1413
|
__metadata("design:type", Date)
|
|
1106
1414
|
], TaonECommerceCartEntity.prototype, "createdAt", void 0);
|
|
1107
1415
|
__decorate([
|
|
1108
|
-
|
|
1109
|
-
//#endregion
|
|
1110
|
-
,
|
|
1416
|
+
UpdateDateColumn(),
|
|
1111
1417
|
__metadata("design:type", Date)
|
|
1112
1418
|
], TaonECommerceCartEntity.prototype, "updatedAt", void 0);
|
|
1419
|
+
__decorate([
|
|
1420
|
+
OneToMany(() => TaonECommerceCartItemEntity, item => item.cart),
|
|
1421
|
+
__metadata("design:type", Array)
|
|
1422
|
+
], TaonECommerceCartEntity.prototype, "items", void 0);
|
|
1113
1423
|
TaonECommerceCartEntity = __decorate([
|
|
1114
1424
|
TaonEntity({
|
|
1115
1425
|
className: 'TaonECommerceCartEntity',
|
|
@@ -1196,6 +1506,248 @@ TaonECommerceCartProvider = __decorate([
|
|
|
1196
1506
|
})
|
|
1197
1507
|
], TaonECommerceCartProvider);
|
|
1198
1508
|
|
|
1509
|
+
let TaonECommerceCustomerRepository = class TaonECommerceCustomerRepository extends TaonBaseRepository {
|
|
1510
|
+
constructor() {
|
|
1511
|
+
super(...arguments);
|
|
1512
|
+
this.entityClassResolveFn = () => TaonECommerceCartEntity;
|
|
1513
|
+
}
|
|
1514
|
+
async getCart(userId) {
|
|
1515
|
+
//#region @websqlFunc
|
|
1516
|
+
let cart = await this.repo.findOne({
|
|
1517
|
+
where: { userId },
|
|
1518
|
+
relations: { items: { product: true } },
|
|
1519
|
+
});
|
|
1520
|
+
if (!cart) {
|
|
1521
|
+
cart = await this.repo.save(this.repo.create({ userId }));
|
|
1522
|
+
cart = await this.repo.findOne({
|
|
1523
|
+
where: { id: cart.id },
|
|
1524
|
+
relations: { items: { product: true } },
|
|
1525
|
+
});
|
|
1526
|
+
}
|
|
1527
|
+
if (!cart) {
|
|
1528
|
+
throw new Error('Unable to load the current user cart.');
|
|
1529
|
+
}
|
|
1530
|
+
return cart;
|
|
1531
|
+
//#endregion
|
|
1532
|
+
}
|
|
1533
|
+
async addProduct(userId, productId, quantity) {
|
|
1534
|
+
//#region @websqlFunc
|
|
1535
|
+
if (!Number.isSafeInteger(productId) ||
|
|
1536
|
+
productId <= 0 ||
|
|
1537
|
+
!Number.isSafeInteger(quantity) ||
|
|
1538
|
+
quantity <= 0) {
|
|
1539
|
+
throw new Error('Product and quantity must be positive whole numbers.');
|
|
1540
|
+
}
|
|
1541
|
+
const product = await this.connection
|
|
1542
|
+
.getRepository(TaonECommerceProductEntity)
|
|
1543
|
+
.findOne({ where: { id: productId, active: true } });
|
|
1544
|
+
if (!product) {
|
|
1545
|
+
throw new Error('The selected product is not available.');
|
|
1546
|
+
}
|
|
1547
|
+
const cart = await this.getCart(userId);
|
|
1548
|
+
const items = this.connection.getRepository(TaonECommerceCartItemEntity);
|
|
1549
|
+
const existing = await items.findOne({
|
|
1550
|
+
where: { cartId: cart.id, productId },
|
|
1551
|
+
});
|
|
1552
|
+
if (existing) {
|
|
1553
|
+
existing.quantity += quantity;
|
|
1554
|
+
await items.save(existing);
|
|
1555
|
+
}
|
|
1556
|
+
else {
|
|
1557
|
+
await items.save(items.create({ cartId: cart.id, productId, quantity }));
|
|
1558
|
+
}
|
|
1559
|
+
return this.getCart(userId);
|
|
1560
|
+
//#endregion
|
|
1561
|
+
}
|
|
1562
|
+
async setItemQuantity(userId, itemId, quantity) {
|
|
1563
|
+
//#region @websqlFunc
|
|
1564
|
+
if (!Number.isSafeInteger(itemId) ||
|
|
1565
|
+
itemId <= 0 ||
|
|
1566
|
+
!Number.isSafeInteger(quantity) ||
|
|
1567
|
+
quantity <= 0) {
|
|
1568
|
+
throw new Error('Item and quantity must be positive whole numbers.');
|
|
1569
|
+
}
|
|
1570
|
+
const cart = await this.getCart(userId);
|
|
1571
|
+
const items = this.connection.getRepository(TaonECommerceCartItemEntity);
|
|
1572
|
+
const item = await items.findOne({
|
|
1573
|
+
where: { id: itemId, cartId: cart.id },
|
|
1574
|
+
});
|
|
1575
|
+
if (!item) {
|
|
1576
|
+
throw new Error('The cart item was not found.');
|
|
1577
|
+
}
|
|
1578
|
+
item.quantity = quantity;
|
|
1579
|
+
await items.save(item);
|
|
1580
|
+
return this.getCart(userId);
|
|
1581
|
+
//#endregion
|
|
1582
|
+
}
|
|
1583
|
+
async removeItem(userId, itemId) {
|
|
1584
|
+
//#region @websqlFunc
|
|
1585
|
+
if (!Number.isSafeInteger(itemId) || itemId <= 0) {
|
|
1586
|
+
throw new Error('The cart item ID is invalid.');
|
|
1587
|
+
}
|
|
1588
|
+
const cart = await this.getCart(userId);
|
|
1589
|
+
const items = this.connection.getRepository(TaonECommerceCartItemEntity);
|
|
1590
|
+
const item = await items.findOne({
|
|
1591
|
+
where: { id: itemId, cartId: cart.id },
|
|
1592
|
+
});
|
|
1593
|
+
if (!item) {
|
|
1594
|
+
throw new Error('The cart item was not found.');
|
|
1595
|
+
}
|
|
1596
|
+
await items.remove(item);
|
|
1597
|
+
return this.getCart(userId);
|
|
1598
|
+
//#endregion
|
|
1599
|
+
}
|
|
1600
|
+
async getOrders(userId) {
|
|
1601
|
+
//#region @websqlFunc
|
|
1602
|
+
return this.connection.getRepository(TaonECommerceOrderEntity).find({
|
|
1603
|
+
where: { userId },
|
|
1604
|
+
order: { createdAt: 'DESC' },
|
|
1605
|
+
});
|
|
1606
|
+
//#endregion
|
|
1607
|
+
}
|
|
1608
|
+
async getTransactions(userId) {
|
|
1609
|
+
//#region @websqlFunc
|
|
1610
|
+
return this.connection
|
|
1611
|
+
.getRepository(TaonECommercePaymentTransactionEntity)
|
|
1612
|
+
.find({
|
|
1613
|
+
where: { order: { userId } },
|
|
1614
|
+
relations: { order: true },
|
|
1615
|
+
order: { createdAt: 'DESC' },
|
|
1616
|
+
});
|
|
1617
|
+
//#endregion
|
|
1618
|
+
}
|
|
1619
|
+
};
|
|
1620
|
+
TaonECommerceCustomerRepository = __decorate([
|
|
1621
|
+
TaonRepository({
|
|
1622
|
+
className: 'TaonECommerceCustomerRepository',
|
|
1623
|
+
})
|
|
1624
|
+
], TaonECommerceCustomerRepository);
|
|
1625
|
+
|
|
1626
|
+
let TaonECommerceCustomerController = class TaonECommerceCustomerController extends TaonBaseController {
|
|
1627
|
+
constructor() {
|
|
1628
|
+
super(...arguments);
|
|
1629
|
+
this.sessionRepository = this.injectCustomRepo(TaonSessionRepository);
|
|
1630
|
+
this.customerRepository = this.injectCustomRepo(TaonECommerceCustomerRepository);
|
|
1631
|
+
this.unsubscribedUsers = new Set();
|
|
1632
|
+
}
|
|
1633
|
+
async beforeEachRequest({ req, res, }) {
|
|
1634
|
+
await this.sessionRepository.throwIfNotAuthenticated({ req, res });
|
|
1635
|
+
}
|
|
1636
|
+
getMyCart() {
|
|
1637
|
+
return async (req) => {
|
|
1638
|
+
const userId = Number('userId' in req ? req.userId : undefined);
|
|
1639
|
+
return this.customerRepository.getCart(userId);
|
|
1640
|
+
};
|
|
1641
|
+
}
|
|
1642
|
+
addToMyCart(productId, quantity) {
|
|
1643
|
+
return async (req) => {
|
|
1644
|
+
const userId = Number('userId' in req ? req.userId : undefined);
|
|
1645
|
+
return this.customerRepository.addProduct(userId, productId, quantity);
|
|
1646
|
+
};
|
|
1647
|
+
}
|
|
1648
|
+
updateMyCartItem(itemId, quantity) {
|
|
1649
|
+
return async (req) => {
|
|
1650
|
+
const userId = Number('userId' in req ? req.userId : undefined);
|
|
1651
|
+
return this.customerRepository.setItemQuantity(userId, itemId, quantity);
|
|
1652
|
+
};
|
|
1653
|
+
}
|
|
1654
|
+
removeFromMyCart(itemId) {
|
|
1655
|
+
return async (req) => {
|
|
1656
|
+
const userId = Number('userId' in req ? req.userId : undefined);
|
|
1657
|
+
return this.customerRepository.removeItem(userId, itemId);
|
|
1658
|
+
};
|
|
1659
|
+
}
|
|
1660
|
+
getMyOrders() {
|
|
1661
|
+
return async (req) => {
|
|
1662
|
+
const userId = Number('userId' in req ? req.userId : undefined);
|
|
1663
|
+
return this.customerRepository.getOrders(userId);
|
|
1664
|
+
};
|
|
1665
|
+
}
|
|
1666
|
+
getMyTransactions() {
|
|
1667
|
+
return async (req) => {
|
|
1668
|
+
const userId = Number('userId' in req ? req.userId : undefined);
|
|
1669
|
+
return this.customerRepository.getTransactions(userId);
|
|
1670
|
+
};
|
|
1671
|
+
}
|
|
1672
|
+
getMySubscriptionStatuses() {
|
|
1673
|
+
return async (req) => {
|
|
1674
|
+
const userId = Number('userId' in req ? req.userId : undefined);
|
|
1675
|
+
return [
|
|
1676
|
+
{
|
|
1677
|
+
id: `example-subscription-${userId}`,
|
|
1678
|
+
productName: 'Example subscription',
|
|
1679
|
+
status: this.unsubscribedUsers.has(userId) ? 'cancelled' : 'active',
|
|
1680
|
+
validUntil: null,
|
|
1681
|
+
},
|
|
1682
|
+
];
|
|
1683
|
+
};
|
|
1684
|
+
}
|
|
1685
|
+
unsubscribeFromExampleSubscription() {
|
|
1686
|
+
return async (req) => {
|
|
1687
|
+
const userId = Number('userId' in req ? req.userId : undefined);
|
|
1688
|
+
this.unsubscribedUsers.add(userId);
|
|
1689
|
+
};
|
|
1690
|
+
}
|
|
1691
|
+
};
|
|
1692
|
+
__decorate([
|
|
1693
|
+
GET(),
|
|
1694
|
+
__metadata("design:type", Function),
|
|
1695
|
+
__metadata("design:paramtypes", []),
|
|
1696
|
+
__metadata("design:returntype", Object)
|
|
1697
|
+
], TaonECommerceCustomerController.prototype, "getMyCart", null);
|
|
1698
|
+
__decorate([
|
|
1699
|
+
POST(),
|
|
1700
|
+
__param(0, Body('productId')),
|
|
1701
|
+
__param(1, Body('quantity')),
|
|
1702
|
+
__metadata("design:type", Function),
|
|
1703
|
+
__metadata("design:paramtypes", [Number, Number]),
|
|
1704
|
+
__metadata("design:returntype", Object)
|
|
1705
|
+
], TaonECommerceCustomerController.prototype, "addToMyCart", null);
|
|
1706
|
+
__decorate([
|
|
1707
|
+
POST(),
|
|
1708
|
+
__param(0, Body('itemId')),
|
|
1709
|
+
__param(1, Body('quantity')),
|
|
1710
|
+
__metadata("design:type", Function),
|
|
1711
|
+
__metadata("design:paramtypes", [Number, Number]),
|
|
1712
|
+
__metadata("design:returntype", Object)
|
|
1713
|
+
], TaonECommerceCustomerController.prototype, "updateMyCartItem", null);
|
|
1714
|
+
__decorate([
|
|
1715
|
+
POST(),
|
|
1716
|
+
__param(0, Body('itemId')),
|
|
1717
|
+
__metadata("design:type", Function),
|
|
1718
|
+
__metadata("design:paramtypes", [Number]),
|
|
1719
|
+
__metadata("design:returntype", Object)
|
|
1720
|
+
], TaonECommerceCustomerController.prototype, "removeFromMyCart", null);
|
|
1721
|
+
__decorate([
|
|
1722
|
+
GET(),
|
|
1723
|
+
__metadata("design:type", Function),
|
|
1724
|
+
__metadata("design:paramtypes", []),
|
|
1725
|
+
__metadata("design:returntype", Object)
|
|
1726
|
+
], TaonECommerceCustomerController.prototype, "getMyOrders", null);
|
|
1727
|
+
__decorate([
|
|
1728
|
+
GET(),
|
|
1729
|
+
__metadata("design:type", Function),
|
|
1730
|
+
__metadata("design:paramtypes", []),
|
|
1731
|
+
__metadata("design:returntype", Object)
|
|
1732
|
+
], TaonECommerceCustomerController.prototype, "getMyTransactions", null);
|
|
1733
|
+
__decorate([
|
|
1734
|
+
GET(),
|
|
1735
|
+
__metadata("design:type", Function),
|
|
1736
|
+
__metadata("design:paramtypes", []),
|
|
1737
|
+
__metadata("design:returntype", Object)
|
|
1738
|
+
], TaonECommerceCustomerController.prototype, "getMySubscriptionStatuses", null);
|
|
1739
|
+
__decorate([
|
|
1740
|
+
POST(),
|
|
1741
|
+
__metadata("design:type", Function),
|
|
1742
|
+
__metadata("design:paramtypes", []),
|
|
1743
|
+
__metadata("design:returntype", Object)
|
|
1744
|
+
], TaonECommerceCustomerController.prototype, "unsubscribeFromExampleSubscription", null);
|
|
1745
|
+
TaonECommerceCustomerController = __decorate([
|
|
1746
|
+
TaonController({
|
|
1747
|
+
className: 'TaonECommerceCustomerController',
|
|
1748
|
+
})
|
|
1749
|
+
], TaonECommerceCustomerController);
|
|
1750
|
+
|
|
1199
1751
|
//#region imports
|
|
1200
1752
|
// import { TaonECommerceCartMiddleware } from './taon-e-commerce-cart.middleware';
|
|
1201
1753
|
// import { TaonECommerceCartSubscriber } from './taon-e-commerce-cart.subscriber';
|
|
@@ -1205,56 +1757,17 @@ const TaonECommerceCartAbstractContext = createContext(() => ({
|
|
|
1205
1757
|
abstract: true,
|
|
1206
1758
|
contexts: { TaonBaseContext },
|
|
1207
1759
|
entities: { TaonECommerceCartEntity },
|
|
1208
|
-
controllers: { TaonECommerceCartController },
|
|
1209
1760
|
repositories: {
|
|
1210
1761
|
// TaonECommerceCartKvRepository
|
|
1211
1762
|
TaonECommerceCartRepository,
|
|
1763
|
+
TaonECommerceCustomerRepository,
|
|
1212
1764
|
},
|
|
1765
|
+
controllers: { TaonECommerceCartController, TaonECommerceCustomerController },
|
|
1213
1766
|
providers: { TaonECommerceCartProvider },
|
|
1214
1767
|
// middlewares: { TaonECommerceCartMiddleware },
|
|
1215
1768
|
// subscribers: { TaonECommerceCartSubscriber },
|
|
1216
1769
|
}));
|
|
1217
1770
|
|
|
1218
|
-
//#endregion
|
|
1219
|
-
let TaonECommerceCartItemEntity = class TaonECommerceCartItemEntity extends TaonBaseAbstractEntity {
|
|
1220
|
-
};
|
|
1221
|
-
__decorate([
|
|
1222
|
-
Column({ type: 'integer' })
|
|
1223
|
-
//#endregion
|
|
1224
|
-
,
|
|
1225
|
-
__metadata("design:type", Number)
|
|
1226
|
-
], TaonECommerceCartItemEntity.prototype, "cartId", void 0);
|
|
1227
|
-
__decorate([
|
|
1228
|
-
Column({ type: 'integer' })
|
|
1229
|
-
//#endregion
|
|
1230
|
-
,
|
|
1231
|
-
__metadata("design:type", Number)
|
|
1232
|
-
], TaonECommerceCartItemEntity.prototype, "productVariantId", void 0);
|
|
1233
|
-
__decorate([
|
|
1234
|
-
Column({ type: 'integer', default: 1 })
|
|
1235
|
-
//#endregion
|
|
1236
|
-
,
|
|
1237
|
-
__metadata("design:type", Number)
|
|
1238
|
-
], TaonECommerceCartItemEntity.prototype, "quantity", void 0);
|
|
1239
|
-
__decorate([
|
|
1240
|
-
Column({ type: 'integer' })
|
|
1241
|
-
//#endregion
|
|
1242
|
-
,
|
|
1243
|
-
__metadata("design:type", Number)
|
|
1244
|
-
], TaonECommerceCartItemEntity.prototype, "unitPrice", void 0);
|
|
1245
|
-
__decorate([
|
|
1246
|
-
Column({ type: 'datetime' })
|
|
1247
|
-
//#endregion
|
|
1248
|
-
,
|
|
1249
|
-
__metadata("design:type", Date)
|
|
1250
|
-
], TaonECommerceCartItemEntity.prototype, "createdAt", void 0);
|
|
1251
|
-
TaonECommerceCartItemEntity = __decorate([
|
|
1252
|
-
TaonEntity({
|
|
1253
|
-
className: 'TaonECommerceCartItemEntity',
|
|
1254
|
-
createTable: true,
|
|
1255
|
-
})
|
|
1256
|
-
], TaonECommerceCartItemEntity);
|
|
1257
|
-
|
|
1258
1771
|
//#endregion
|
|
1259
1772
|
let TaonECommerceCartItemRepository = class TaonECommerceCartItemRepository extends TaonBaseRepository {
|
|
1260
1773
|
constructor() {
|
|
@@ -1353,45 +1866,79 @@ const TaonECommerceCartItemAbstractContext = createContext(() => ({
|
|
|
1353
1866
|
// subscribers: { TaonECommerceCartItemSubscriber },
|
|
1354
1867
|
}));
|
|
1355
1868
|
|
|
1356
|
-
|
|
1357
|
-
const TaonECommerceProductDefaultsValues = {
|
|
1358
|
-
description: '',
|
|
1359
|
-
version: 0,
|
|
1360
|
-
id: void 0,
|
|
1361
|
-
};
|
|
1362
|
-
var TaonECommerceProductErrors;
|
|
1363
|
-
(function (TaonECommerceProductErrors) {
|
|
1364
|
-
TaonECommerceProductErrors["INVALID_PASSWORD_EXAMPLE_ERROR"] = "INVALID_PASSWORD_EXAMPLE_ERROR";
|
|
1365
|
-
})(TaonECommerceProductErrors || (TaonECommerceProductErrors = {}));
|
|
1366
|
-
const TaonECommerceProductTranslationErorsMap = new Map([
|
|
1367
|
-
[TaonECommerceProductErrors.INVALID_PASSWORD_EXAMPLE_ERROR, t$2.gettext('Invalid Password')],
|
|
1368
|
-
]);
|
|
1369
|
-
|
|
1370
|
-
//#endregion
|
|
1371
|
-
let TaonECommerceProductEntity = class TaonECommerceProductEntity extends TaonBaseAbstractEntity {
|
|
1869
|
+
let TaonECommerceCustomerAddressEntity = class TaonECommerceCustomerAddressEntity extends TaonBaseAbstractEntity {
|
|
1372
1870
|
};
|
|
1373
1871
|
__decorate([
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
})
|
|
1379
|
-
//#endregion
|
|
1380
|
-
,
|
|
1872
|
+
Column({ type: 'int' }),
|
|
1873
|
+
__metadata("design:type", Number)
|
|
1874
|
+
], TaonECommerceCustomerAddressEntity.prototype, "userId", void 0);
|
|
1875
|
+
__decorate([
|
|
1876
|
+
Column({ type: 'varchar' }),
|
|
1381
1877
|
__metadata("design:type", String)
|
|
1382
|
-
],
|
|
1383
|
-
|
|
1878
|
+
], TaonECommerceCustomerAddressEntity.prototype, "type", void 0);
|
|
1879
|
+
__decorate([
|
|
1880
|
+
Column({ type: 'varchar' }),
|
|
1881
|
+
__metadata("design:type", String)
|
|
1882
|
+
], TaonECommerceCustomerAddressEntity.prototype, "firstName", void 0);
|
|
1883
|
+
__decorate([
|
|
1884
|
+
Column({ type: 'varchar' }),
|
|
1885
|
+
__metadata("design:type", String)
|
|
1886
|
+
], TaonECommerceCustomerAddressEntity.prototype, "lastName", void 0);
|
|
1887
|
+
__decorate([
|
|
1888
|
+
Column({ type: 'varchar', nullable: true }),
|
|
1889
|
+
__metadata("design:type", String)
|
|
1890
|
+
], TaonECommerceCustomerAddressEntity.prototype, "company", void 0);
|
|
1891
|
+
__decorate([
|
|
1892
|
+
Column({ type: 'varchar' }),
|
|
1893
|
+
__metadata("design:type", String)
|
|
1894
|
+
], TaonECommerceCustomerAddressEntity.prototype, "addressLine1", void 0);
|
|
1895
|
+
__decorate([
|
|
1896
|
+
Column({ type: 'varchar', nullable: true }),
|
|
1897
|
+
__metadata("design:type", String)
|
|
1898
|
+
], TaonECommerceCustomerAddressEntity.prototype, "addressLine2", void 0);
|
|
1899
|
+
__decorate([
|
|
1900
|
+
Column({ type: 'varchar' }),
|
|
1901
|
+
__metadata("design:type", String)
|
|
1902
|
+
], TaonECommerceCustomerAddressEntity.prototype, "city", void 0);
|
|
1903
|
+
__decorate([
|
|
1904
|
+
Column({ type: 'varchar' }),
|
|
1905
|
+
__metadata("design:type", String)
|
|
1906
|
+
], TaonECommerceCustomerAddressEntity.prototype, "postalCode", void 0);
|
|
1907
|
+
__decorate([
|
|
1908
|
+
Column({ type: 'varchar' }),
|
|
1909
|
+
__metadata("design:type", String)
|
|
1910
|
+
], TaonECommerceCustomerAddressEntity.prototype, "country", void 0);
|
|
1911
|
+
__decorate([
|
|
1912
|
+
Column({ type: 'varchar', nullable: true }),
|
|
1913
|
+
__metadata("design:type", String)
|
|
1914
|
+
], TaonECommerceCustomerAddressEntity.prototype, "phone", void 0);
|
|
1915
|
+
__decorate([
|
|
1916
|
+
ManyToOne(() => TaonSessionUserEntity, {
|
|
1917
|
+
onDelete: 'CASCADE',
|
|
1918
|
+
}),
|
|
1919
|
+
JoinColumn({ name: 'userId' }),
|
|
1920
|
+
__metadata("design:type", TaonSessionUserEntity)
|
|
1921
|
+
], TaonECommerceCustomerAddressEntity.prototype, "user", void 0);
|
|
1922
|
+
__decorate([
|
|
1923
|
+
CreateDateColumn(),
|
|
1924
|
+
__metadata("design:type", Date)
|
|
1925
|
+
], TaonECommerceCustomerAddressEntity.prototype, "createdAt", void 0);
|
|
1926
|
+
__decorate([
|
|
1927
|
+
UpdateDateColumn(),
|
|
1928
|
+
__metadata("design:type", Date)
|
|
1929
|
+
], TaonECommerceCustomerAddressEntity.prototype, "updatedAt", void 0);
|
|
1930
|
+
TaonECommerceCustomerAddressEntity = __decorate([
|
|
1384
1931
|
TaonEntity({
|
|
1385
|
-
className: '
|
|
1932
|
+
className: 'TaonECommerceCustomerAddressEntity',
|
|
1386
1933
|
createTable: true,
|
|
1387
1934
|
})
|
|
1388
|
-
],
|
|
1935
|
+
], TaonECommerceCustomerAddressEntity);
|
|
1389
1936
|
|
|
1390
1937
|
//#endregion
|
|
1391
|
-
let
|
|
1938
|
+
let TaonECommerceCustomerAddressRepository = class TaonECommerceCustomerAddressRepository extends TaonBaseRepository {
|
|
1392
1939
|
constructor() {
|
|
1393
1940
|
super(...arguments);
|
|
1394
|
-
this.entityClassResolveFn = () =>
|
|
1941
|
+
this.entityClassResolveFn = () => TaonECommerceCustomerAddressEntity;
|
|
1395
1942
|
}
|
|
1396
1943
|
/**
|
|
1397
1944
|
* TODO remove this demo example method
|
|
@@ -1407,19 +1954,19 @@ let TaonECommerceProductRepository = class TaonECommerceProductRepository extend
|
|
|
1407
1954
|
//#endregion
|
|
1408
1955
|
}
|
|
1409
1956
|
};
|
|
1410
|
-
|
|
1957
|
+
TaonECommerceCustomerAddressRepository = __decorate([
|
|
1411
1958
|
TaonRepository({
|
|
1412
|
-
className: '
|
|
1959
|
+
className: 'TaonECommerceCustomerAddressRepository',
|
|
1413
1960
|
})
|
|
1414
|
-
],
|
|
1961
|
+
], TaonECommerceCustomerAddressRepository);
|
|
1415
1962
|
|
|
1416
|
-
var
|
|
1963
|
+
var TaonECommerceCustomerAddressController_1;
|
|
1417
1964
|
//#endregion
|
|
1418
|
-
let
|
|
1965
|
+
let TaonECommerceCustomerAddressController = TaonECommerceCustomerAddressController_1 = class TaonECommerceCustomerAddressController extends TaonBaseCrudController {
|
|
1419
1966
|
constructor() {
|
|
1420
1967
|
super(...arguments);
|
|
1421
|
-
this.entityClassResolveFn = () =>
|
|
1422
|
-
this.
|
|
1968
|
+
this.entityClassResolveFn = () => TaonECommerceCustomerAddressEntity;
|
|
1969
|
+
this.taonECommerceCustomerAddressRepository = this.injectCustomRepo(TaonECommerceCustomerAddressRepository);
|
|
1423
1970
|
//#endregion
|
|
1424
1971
|
}
|
|
1425
1972
|
//#region methods & getters / hello world
|
|
@@ -1430,8 +1977,8 @@ let TaonECommerceProductController = TaonECommerceProductController_1 = class Ta
|
|
|
1430
1977
|
//#region @websqlFunc
|
|
1431
1978
|
return async (req, res) => {
|
|
1432
1979
|
const numOfEntities = await this.db.count();
|
|
1433
|
-
const numberOfEvenEntities = await this.
|
|
1434
|
-
return `Hello ${yourName || 'world'} from ${ClassHelpers__NS__getName(
|
|
1980
|
+
const numberOfEvenEntities = await this.taonECommerceCustomerAddressRepository.countEntitesWithEvenId();
|
|
1981
|
+
return `Hello ${yourName || 'world'} from ${ClassHelpers__NS__getName(TaonECommerceCustomerAddressController_1)}
|
|
1435
1982
|
controller.. ${numOfEntities} entites in db..
|
|
1436
1983
|
${numberOfEvenEntities} entites with even ids (2,4,6,8 etc.)
|
|
1437
1984
|
`;
|
|
@@ -1445,212 +1992,1657 @@ __decorate([
|
|
|
1445
1992
|
__metadata("design:type", Function),
|
|
1446
1993
|
__metadata("design:paramtypes", [String]),
|
|
1447
1994
|
__metadata("design:returntype", Object)
|
|
1448
|
-
],
|
|
1449
|
-
|
|
1995
|
+
], TaonECommerceCustomerAddressController.prototype, "helloWord", null);
|
|
1996
|
+
TaonECommerceCustomerAddressController = TaonECommerceCustomerAddressController_1 = __decorate([
|
|
1450
1997
|
TaonController({
|
|
1451
|
-
className: '
|
|
1998
|
+
className: 'TaonECommerceCustomerAddressController',
|
|
1999
|
+
// allowedMethods: []
|
|
1452
2000
|
})
|
|
1453
|
-
],
|
|
2001
|
+
], TaonECommerceCustomerAddressController);
|
|
1454
2002
|
|
|
1455
2003
|
//#endregion
|
|
1456
|
-
|
|
2004
|
+
class TaonTaonECommerceCustomerAddressConfig extends TaonBaseClass {
|
|
2005
|
+
}
|
|
2006
|
+
let TaonECommerceCustomerAddressProvider = class TaonECommerceCustomerAddressProvider extends TaonBaseProvider {
|
|
1457
2007
|
constructor() {
|
|
1458
2008
|
super(...arguments);
|
|
1459
|
-
this.
|
|
2009
|
+
this.enabledTaonECommerceCustomerAddressOption = true;
|
|
2010
|
+
this.config = new TaonTaonECommerceCustomerAddressConfig();
|
|
2011
|
+
}
|
|
2012
|
+
clone() {
|
|
2013
|
+
return {
|
|
2014
|
+
enabledTaonECommerceCustomerAddressOption: this.enabledTaonECommerceCustomerAddressOption,
|
|
2015
|
+
config: this.config.clone(),
|
|
2016
|
+
};
|
|
1460
2017
|
}
|
|
1461
2018
|
};
|
|
1462
|
-
|
|
2019
|
+
TaonECommerceCustomerAddressProvider = __decorate([
|
|
1463
2020
|
TaonProvider({
|
|
1464
|
-
className: '
|
|
2021
|
+
className: 'TaonECommerceCustomerAddressProvider',
|
|
1465
2022
|
})
|
|
1466
|
-
],
|
|
2023
|
+
], TaonECommerceCustomerAddressProvider);
|
|
1467
2024
|
|
|
1468
2025
|
//#region imports
|
|
1469
|
-
// import {
|
|
1470
|
-
// import {
|
|
2026
|
+
// import { TaonECommerceCustomerAddressMiddleware } from './taon-e-commerce-customer-address.middleware';
|
|
2027
|
+
// import { TaonECommerceCustomerAddressSubscriber } from './taon-e-commerce-customer-address.subscriber';
|
|
1471
2028
|
//#endregion
|
|
1472
|
-
const
|
|
1473
|
-
contextName: '
|
|
2029
|
+
const TaonECommerceCustomerAddressAbstractContext = createContext(() => ({
|
|
2030
|
+
contextName: 'TaonECommerceCustomerAddressAbstractContext',
|
|
1474
2031
|
abstract: true,
|
|
1475
2032
|
contexts: { TaonBaseContext },
|
|
1476
|
-
entities: {
|
|
1477
|
-
controllers: {
|
|
2033
|
+
entities: { TaonECommerceCustomerAddressEntity },
|
|
2034
|
+
controllers: { TaonECommerceCustomerAddressController },
|
|
1478
2035
|
repositories: {
|
|
1479
|
-
//
|
|
1480
|
-
|
|
1481
|
-
},
|
|
1482
|
-
providers: { TaonECommerceProductProvider },
|
|
1483
|
-
// middlewares: { TaonECommerceProductMiddleware },
|
|
1484
|
-
// subscribers: { TaonECommerceProductSubscriber },
|
|
1485
|
-
}));
|
|
1486
|
-
|
|
1487
|
-
const TaonECommerceAbstractContext = createContext(() => ({
|
|
1488
|
-
contextName: 'TaonECommerceAbstractContext',
|
|
1489
|
-
abstract: true,
|
|
1490
|
-
contexts: {
|
|
1491
|
-
TaonCmsAbstractContext,
|
|
1492
|
-
// local contexts
|
|
1493
|
-
TaonECommerceCartAbstractContext,
|
|
1494
|
-
TaonECommerceCartItemAbstractContext,
|
|
1495
|
-
TaonECommerceProductAbstractContext,
|
|
2036
|
+
// TaonECommerceCustomerAddressKvRepository
|
|
2037
|
+
TaonECommerceCustomerAddressRepository,
|
|
1496
2038
|
},
|
|
2039
|
+
providers: { TaonECommerceCustomerAddressProvider },
|
|
2040
|
+
// middlewares: { TaonECommerceCustomerAddressMiddleware },
|
|
2041
|
+
// subscribers: { TaonECommerceCustomerAddressSubscriber },
|
|
1497
2042
|
}));
|
|
1498
2043
|
|
|
1499
|
-
;
|
|
1500
|
-
// THIS FILE IS GENERATED - DO NOT MODIFY
|
|
1501
|
-
|
|
1502
|
-
//#region imports
|
|
1503
|
-
//#endregion
|
|
1504
|
-
class TaonECommerceBackofficeComponent {
|
|
1505
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: TaonECommerceBackofficeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1506
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.0.9", type: TaonECommerceBackofficeComponent, isStandalone: true, selector: "app-taon-e-commerce-backoffice", ngImport: i0, template: "<router-outlet></router-outlet>\n<p>\n taon-e-commerce-backoffice works!\n</p>", styles: [":host{display:block}\n"], dependencies: [{ kind: "directive", type: RouterOutlet, selector: "router-outlet", inputs: ["name", "routerOutletData"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
1507
|
-
}
|
|
1508
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: TaonECommerceBackofficeComponent, decorators: [{
|
|
1509
|
-
type: Component,
|
|
1510
|
-
args: [{ selector: 'app-taon-e-commerce-backoffice', changeDetection: ChangeDetectionStrategy.OnPush, imports: [AsyncPipe, RouterOutlet], template: "<router-outlet></router-outlet>\n<p>\n taon-e-commerce-backoffice works!\n</p>", styles: [":host{display:block}\n"] }]
|
|
1511
|
-
}] });
|
|
1512
|
-
|
|
1513
|
-
var taonECommerceBackoffice_component = /*#__PURE__*/Object.freeze({
|
|
1514
|
-
__proto__: null,
|
|
1515
|
-
TaonECommerceBackofficeComponent: TaonECommerceBackofficeComponent
|
|
1516
|
-
});
|
|
1517
|
-
|
|
1518
|
-
//namespace TaonECommerceBackofficeModels
|
|
1519
|
-
//end of namespace TaonECommerceBackofficeModels
|
|
1520
|
-
|
|
1521
|
-
//#endregion
|
|
1522
|
-
const TaonECommerceBackofficeRoutes = [
|
|
1523
|
-
{
|
|
1524
|
-
path: '',
|
|
1525
|
-
loadComponent: () => Promise.resolve().then(function () { return taonECommerceBackoffice_component; }).then(m => m.TaonECommerceBackofficeComponent),
|
|
1526
|
-
children: [
|
|
1527
|
-
// adminLazyRoute({
|
|
1528
|
-
// path: 'dashboard',
|
|
1529
|
-
// menuItem: 'Dashboard',
|
|
1530
|
-
// icon: 'dashboard',
|
|
1531
|
-
// expandable: false,
|
|
1532
|
-
// loader: () =>
|
|
1533
|
-
// import('./anothermodule.routes').then(m => m.DashboardRoutes),
|
|
1534
|
-
// }),
|
|
1535
|
-
],
|
|
1536
|
-
},
|
|
1537
|
-
];
|
|
1538
|
-
/**
|
|
1539
|
-
* By default exporting TaonECommerceBackofficeRoutes,
|
|
1540
|
-
* the command `taon generate:app:routes`
|
|
1541
|
-
* will automatically add them to the root routes in ./src/app.ts.
|
|
1542
|
-
*/
|
|
1543
|
-
// export default TaonECommerceBackofficeRoutes;
|
|
1544
|
-
|
|
1545
|
-
//#region imports
|
|
1546
2044
|
//#endregion
|
|
1547
|
-
class
|
|
2045
|
+
let TaonECommerceOrderRepository = class TaonECommerceOrderRepository extends TaonBaseRepository {
|
|
1548
2046
|
constructor() {
|
|
1549
2047
|
super(...arguments);
|
|
1550
|
-
this.
|
|
1551
|
-
}
|
|
1552
|
-
get allMyEntities$() {
|
|
1553
|
-
return this.taonECommerceCartController.getAll().request().observable.pipe(map(res => res.body?.json));
|
|
2048
|
+
this.entityClassResolveFn = () => TaonECommerceOrderEntity;
|
|
1554
2049
|
}
|
|
1555
|
-
|
|
1556
|
-
|
|
2050
|
+
/**
|
|
2051
|
+
* TODO remove this demo example method
|
|
2052
|
+
*/
|
|
2053
|
+
async countEntitesWithEvenId() {
|
|
2054
|
+
//#region @websqlFunc
|
|
2055
|
+
const result = await this.count({
|
|
2056
|
+
where: {
|
|
2057
|
+
id: Raw(alias => `${alias} % 2 = 0`),
|
|
2058
|
+
},
|
|
2059
|
+
});
|
|
2060
|
+
return result;
|
|
2061
|
+
//#endregion
|
|
1557
2062
|
}
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
2063
|
+
};
|
|
2064
|
+
TaonECommerceOrderRepository = __decorate([
|
|
2065
|
+
TaonRepository({
|
|
2066
|
+
className: 'TaonECommerceOrderRepository',
|
|
2067
|
+
})
|
|
2068
|
+
], TaonECommerceOrderRepository);
|
|
1564
2069
|
|
|
1565
|
-
|
|
2070
|
+
var TaonECommerceOrderController_1;
|
|
1566
2071
|
//#endregion
|
|
1567
|
-
class
|
|
2072
|
+
let TaonECommerceOrderController = TaonECommerceOrderController_1 = class TaonECommerceOrderController extends TaonBaseCrudController {
|
|
1568
2073
|
constructor() {
|
|
1569
2074
|
super(...arguments);
|
|
1570
|
-
this.
|
|
2075
|
+
this.entityClassResolveFn = () => TaonECommerceOrderEntity;
|
|
2076
|
+
this.taonECommerceOrderRepository = this.injectCustomRepo(TaonECommerceOrderRepository);
|
|
2077
|
+
//#endregion
|
|
1571
2078
|
}
|
|
1572
|
-
|
|
1573
|
-
|
|
2079
|
+
//#region methods & getters / hello world
|
|
2080
|
+
/**
|
|
2081
|
+
* TODO remove this demo example method
|
|
2082
|
+
*/
|
|
2083
|
+
helloWord(yourName) {
|
|
2084
|
+
//#region @websqlFunc
|
|
2085
|
+
return async (req, res) => {
|
|
2086
|
+
const numOfEntities = await this.db.count();
|
|
2087
|
+
const numberOfEvenEntities = await this.taonECommerceOrderRepository.countEntitesWithEvenId();
|
|
2088
|
+
return `Hello ${yourName || 'world'} from ${ClassHelpers__NS__getName(TaonECommerceOrderController_1)}
|
|
2089
|
+
controller.. ${numOfEntities} entites in db..
|
|
2090
|
+
${numberOfEvenEntities} entites with even ids (2,4,6,8 etc.)
|
|
2091
|
+
`;
|
|
2092
|
+
};
|
|
2093
|
+
//#endregion
|
|
1574
2094
|
}
|
|
1575
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: TaonECommerceCartConfigService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1576
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: TaonECommerceCartConfigService }); }
|
|
1577
|
-
}
|
|
1578
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: TaonECommerceCartConfigService, decorators: [{
|
|
1579
|
-
type: Injectable
|
|
1580
|
-
}] });
|
|
1581
|
-
|
|
1582
|
-
const t$1 = Translation.for('src/lib/taon-e-commerce-cart/taon-e-commerce-cart.constants.ts', { "src/lib/taon-e-commerce-cart/taon-e-commerce-cart.constants.ts": { "en-US": async () => (await import('./e-commerce-websql-prod-taon-e-commerce-cart.constants.ts.en-US.i18n.data-snFp9dC8.mjs')).default, "pl-PL": async () => (await import('./e-commerce-websql-prod-taon-e-commerce-cart.constants.ts.pl-PL.i18n.data-CQ0D39Jb.mjs')).default } });
|
|
1583
|
-
const TaonECommerceCartDefaultsValues = {
|
|
1584
|
-
description: '',
|
|
1585
|
-
version: 0,
|
|
1586
|
-
id: void 0,
|
|
1587
2095
|
};
|
|
1588
|
-
|
|
1589
|
-
(
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
]);
|
|
2096
|
+
__decorate([
|
|
2097
|
+
GET(),
|
|
2098
|
+
__param(0, Query('yourName')),
|
|
2099
|
+
__metadata("design:type", Function),
|
|
2100
|
+
__metadata("design:paramtypes", [String]),
|
|
2101
|
+
__metadata("design:returntype", Object)
|
|
2102
|
+
], TaonECommerceOrderController.prototype, "helloWord", null);
|
|
2103
|
+
TaonECommerceOrderController = TaonECommerceOrderController_1 = __decorate([
|
|
2104
|
+
TaonController({
|
|
2105
|
+
className: 'TaonECommerceOrderController',
|
|
2106
|
+
// allowedMethods: []
|
|
2107
|
+
})
|
|
2108
|
+
], TaonECommerceOrderController);
|
|
1595
2109
|
|
|
1596
2110
|
//#endregion
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
2111
|
+
class TaonTaonECommerceOrderConfig extends TaonBaseClass {
|
|
2112
|
+
}
|
|
2113
|
+
let TaonECommerceOrderProvider = class TaonECommerceOrderProvider extends TaonBaseProvider {
|
|
2114
|
+
constructor() {
|
|
2115
|
+
super(...arguments);
|
|
2116
|
+
this.enabledTaonECommerceOrderOption = true;
|
|
2117
|
+
this.config = new TaonTaonECommerceOrderConfig();
|
|
2118
|
+
}
|
|
2119
|
+
clone() {
|
|
2120
|
+
return {
|
|
2121
|
+
enabledTaonECommerceOrderOption: this.enabledTaonECommerceOrderOption,
|
|
2122
|
+
config: this.config.clone(),
|
|
2123
|
+
};
|
|
1600
2124
|
}
|
|
1601
2125
|
};
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
className: '
|
|
2126
|
+
TaonECommerceOrderProvider = __decorate([
|
|
2127
|
+
TaonProvider({
|
|
2128
|
+
className: 'TaonECommerceOrderProvider',
|
|
1605
2129
|
})
|
|
1606
|
-
],
|
|
2130
|
+
], TaonECommerceOrderProvider);
|
|
1607
2131
|
|
|
2132
|
+
//#region imports
|
|
2133
|
+
// import { TaonECommerceOrderMiddleware } from './taon-e-commerce-order.middleware';
|
|
2134
|
+
// import { TaonECommerceOrderSubscriber } from './taon-e-commerce-order.subscriber';
|
|
1608
2135
|
//#endregion
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
}
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
})
|
|
1623
|
-
//end of namespace TaonECommerceCartModels
|
|
2136
|
+
const TaonECommerceOrderAbstractContext = createContext(() => ({
|
|
2137
|
+
contextName: 'TaonECommerceOrderAbstractContext',
|
|
2138
|
+
abstract: true,
|
|
2139
|
+
contexts: { TaonBaseContext },
|
|
2140
|
+
entities: { TaonECommerceOrderEntity },
|
|
2141
|
+
controllers: { TaonECommerceOrderController },
|
|
2142
|
+
repositories: {
|
|
2143
|
+
// TaonECommerceOrderKvRepository
|
|
2144
|
+
TaonECommerceOrderRepository,
|
|
2145
|
+
},
|
|
2146
|
+
providers: { TaonECommerceOrderProvider },
|
|
2147
|
+
// middlewares: { TaonECommerceOrderMiddleware },
|
|
2148
|
+
// subscribers: { TaonECommerceOrderSubscriber },
|
|
2149
|
+
}));
|
|
1624
2150
|
|
|
1625
2151
|
//#endregion
|
|
1626
|
-
let
|
|
2152
|
+
let TaonECommerceOrderItemRepository = class TaonECommerceOrderItemRepository extends TaonBaseRepository {
|
|
1627
2153
|
constructor() {
|
|
1628
2154
|
super(...arguments);
|
|
1629
|
-
this.
|
|
2155
|
+
this.entityClassResolveFn = () => TaonECommerceOrderItemEntity;
|
|
1630
2156
|
}
|
|
1631
|
-
|
|
2157
|
+
/**
|
|
2158
|
+
* TODO remove this demo example method
|
|
2159
|
+
*/
|
|
2160
|
+
async countEntitesWithEvenId() {
|
|
2161
|
+
//#region @websqlFunc
|
|
2162
|
+
const result = await this.count({
|
|
2163
|
+
where: {
|
|
2164
|
+
id: Raw(alias => `${alias} % 2 = 0`),
|
|
2165
|
+
},
|
|
2166
|
+
});
|
|
2167
|
+
return result;
|
|
2168
|
+
//#endregion
|
|
2169
|
+
}
|
|
2170
|
+
};
|
|
2171
|
+
TaonECommerceOrderItemRepository = __decorate([
|
|
2172
|
+
TaonRepository({
|
|
2173
|
+
className: 'TaonECommerceOrderItemRepository',
|
|
2174
|
+
})
|
|
2175
|
+
], TaonECommerceOrderItemRepository);
|
|
2176
|
+
|
|
2177
|
+
var TaonECommerceOrderItemController_1;
|
|
2178
|
+
//#endregion
|
|
2179
|
+
let TaonECommerceOrderItemController = TaonECommerceOrderItemController_1 = class TaonECommerceOrderItemController extends TaonBaseCrudController {
|
|
2180
|
+
constructor() {
|
|
2181
|
+
super(...arguments);
|
|
2182
|
+
this.entityClassResolveFn = () => TaonECommerceOrderItemEntity;
|
|
2183
|
+
this.taonECommerceOrderItemRepository = this.injectCustomRepo(TaonECommerceOrderItemRepository);
|
|
2184
|
+
//#endregion
|
|
2185
|
+
}
|
|
2186
|
+
//#region methods & getters / hello world
|
|
2187
|
+
/**
|
|
2188
|
+
* TODO remove this demo example method
|
|
2189
|
+
*/
|
|
2190
|
+
helloWord(yourName) {
|
|
2191
|
+
//#region @websqlFunc
|
|
2192
|
+
return async (req, res) => {
|
|
2193
|
+
const numOfEntities = await this.db.count();
|
|
2194
|
+
const numberOfEvenEntities = await this.taonECommerceOrderItemRepository.countEntitesWithEvenId();
|
|
2195
|
+
return `Hello ${yourName || 'world'} from ${ClassHelpers__NS__getName(TaonECommerceOrderItemController_1)}
|
|
2196
|
+
controller.. ${numOfEntities} entites in db..
|
|
2197
|
+
${numberOfEvenEntities} entites with even ids (2,4,6,8 etc.)
|
|
2198
|
+
`;
|
|
2199
|
+
};
|
|
2200
|
+
//#endregion
|
|
2201
|
+
}
|
|
2202
|
+
};
|
|
2203
|
+
__decorate([
|
|
2204
|
+
GET(),
|
|
2205
|
+
__param(0, Query('yourName')),
|
|
2206
|
+
__metadata("design:type", Function),
|
|
2207
|
+
__metadata("design:paramtypes", [String]),
|
|
2208
|
+
__metadata("design:returntype", Object)
|
|
2209
|
+
], TaonECommerceOrderItemController.prototype, "helloWord", null);
|
|
2210
|
+
TaonECommerceOrderItemController = TaonECommerceOrderItemController_1 = __decorate([
|
|
2211
|
+
TaonController({
|
|
2212
|
+
className: 'TaonECommerceOrderItemController',
|
|
2213
|
+
// allowedMethods: []
|
|
2214
|
+
})
|
|
2215
|
+
], TaonECommerceOrderItemController);
|
|
2216
|
+
|
|
2217
|
+
//#endregion
|
|
2218
|
+
class TaonTaonECommerceOrderItemConfig extends TaonBaseClass {
|
|
2219
|
+
}
|
|
2220
|
+
let TaonECommerceOrderItemProvider = class TaonECommerceOrderItemProvider extends TaonBaseProvider {
|
|
2221
|
+
constructor() {
|
|
2222
|
+
super(...arguments);
|
|
2223
|
+
this.enabledTaonECommerceOrderItemOption = true;
|
|
2224
|
+
this.config = new TaonTaonECommerceOrderItemConfig();
|
|
2225
|
+
}
|
|
2226
|
+
clone() {
|
|
2227
|
+
return {
|
|
2228
|
+
enabledTaonECommerceOrderItemOption: this.enabledTaonECommerceOrderItemOption,
|
|
2229
|
+
config: this.config.clone(),
|
|
2230
|
+
};
|
|
2231
|
+
}
|
|
2232
|
+
};
|
|
2233
|
+
TaonECommerceOrderItemProvider = __decorate([
|
|
2234
|
+
TaonProvider({
|
|
2235
|
+
className: 'TaonECommerceOrderItemProvider',
|
|
2236
|
+
})
|
|
2237
|
+
], TaonECommerceOrderItemProvider);
|
|
2238
|
+
|
|
2239
|
+
//#region imports
|
|
2240
|
+
// import { TaonECommerceOrderItemMiddleware } from './taon-e-commerce-order-item.middleware';
|
|
2241
|
+
// import { TaonECommerceOrderItemSubscriber } from './taon-e-commerce-order-item.subscriber';
|
|
2242
|
+
//#endregion
|
|
2243
|
+
const TaonECommerceOrderItemAbstractContext = createContext(() => ({
|
|
2244
|
+
contextName: 'TaonECommerceOrderItemAbstractContext',
|
|
2245
|
+
abstract: true,
|
|
2246
|
+
contexts: { TaonBaseContext },
|
|
2247
|
+
entities: { TaonECommerceOrderItemEntity },
|
|
2248
|
+
controllers: { TaonECommerceOrderItemController },
|
|
2249
|
+
repositories: {
|
|
2250
|
+
// TaonECommerceOrderItemKvRepository
|
|
2251
|
+
TaonECommerceOrderItemRepository,
|
|
2252
|
+
},
|
|
2253
|
+
providers: { TaonECommerceOrderItemProvider },
|
|
2254
|
+
// middlewares: { TaonECommerceOrderItemMiddleware },
|
|
2255
|
+
// subscribers: { TaonECommerceOrderItemSubscriber },
|
|
2256
|
+
}));
|
|
2257
|
+
|
|
2258
|
+
//#endregion
|
|
2259
|
+
let TaonECommercePaymentTransactionRepository = class TaonECommercePaymentTransactionRepository extends TaonBaseRepository {
|
|
2260
|
+
constructor() {
|
|
2261
|
+
super(...arguments);
|
|
2262
|
+
this.entityClassResolveFn = () => TaonECommercePaymentTransactionEntity;
|
|
2263
|
+
}
|
|
2264
|
+
/**
|
|
2265
|
+
* TODO remove this demo example method
|
|
2266
|
+
*/
|
|
2267
|
+
async countEntitesWithEvenId() {
|
|
2268
|
+
//#region @websqlFunc
|
|
2269
|
+
const result = await this.count({
|
|
2270
|
+
where: {
|
|
2271
|
+
id: Raw(alias => `${alias} % 2 = 0`),
|
|
2272
|
+
},
|
|
2273
|
+
});
|
|
2274
|
+
return result;
|
|
2275
|
+
//#endregion
|
|
2276
|
+
}
|
|
2277
|
+
};
|
|
2278
|
+
TaonECommercePaymentTransactionRepository = __decorate([
|
|
2279
|
+
TaonRepository({
|
|
2280
|
+
className: 'TaonECommercePaymentTransactionRepository',
|
|
2281
|
+
})
|
|
2282
|
+
], TaonECommercePaymentTransactionRepository);
|
|
2283
|
+
|
|
2284
|
+
var TaonECommercePaymentTransactionController_1;
|
|
2285
|
+
//#endregion
|
|
2286
|
+
let TaonECommercePaymentTransactionController = TaonECommercePaymentTransactionController_1 = class TaonECommercePaymentTransactionController extends TaonBaseCrudController {
|
|
2287
|
+
constructor() {
|
|
2288
|
+
super(...arguments);
|
|
2289
|
+
this.entityClassResolveFn = () => TaonECommercePaymentTransactionEntity;
|
|
2290
|
+
this.taonECommercePaymentTransactionRepository = this.injectCustomRepo(TaonECommercePaymentTransactionRepository);
|
|
2291
|
+
//#endregion
|
|
2292
|
+
}
|
|
2293
|
+
//#region methods & getters / hello world
|
|
2294
|
+
/**
|
|
2295
|
+
* TODO remove this demo example method
|
|
2296
|
+
*/
|
|
2297
|
+
helloWord(yourName) {
|
|
2298
|
+
//#region @websqlFunc
|
|
2299
|
+
return async (req, res) => {
|
|
2300
|
+
const numOfEntities = await this.db.count();
|
|
2301
|
+
const numberOfEvenEntities = await this.taonECommercePaymentTransactionRepository.countEntitesWithEvenId();
|
|
2302
|
+
return `Hello ${yourName || 'world'} from ${ClassHelpers__NS__getName(TaonECommercePaymentTransactionController_1)}
|
|
2303
|
+
controller.. ${numOfEntities} entites in db..
|
|
2304
|
+
${numberOfEvenEntities} entites with even ids (2,4,6,8 etc.)
|
|
2305
|
+
`;
|
|
2306
|
+
};
|
|
2307
|
+
//#endregion
|
|
2308
|
+
}
|
|
2309
|
+
};
|
|
2310
|
+
__decorate([
|
|
2311
|
+
GET(),
|
|
2312
|
+
__param(0, Query('yourName')),
|
|
2313
|
+
__metadata("design:type", Function),
|
|
2314
|
+
__metadata("design:paramtypes", [String]),
|
|
2315
|
+
__metadata("design:returntype", Object)
|
|
2316
|
+
], TaonECommercePaymentTransactionController.prototype, "helloWord", null);
|
|
2317
|
+
TaonECommercePaymentTransactionController = TaonECommercePaymentTransactionController_1 = __decorate([
|
|
2318
|
+
TaonController({
|
|
2319
|
+
className: 'TaonECommercePaymentTransactionController',
|
|
2320
|
+
// allowedMethods: []
|
|
2321
|
+
})
|
|
2322
|
+
], TaonECommercePaymentTransactionController);
|
|
2323
|
+
|
|
2324
|
+
//#endregion
|
|
2325
|
+
class TaonTaonECommercePaymentTransactionConfig extends TaonBaseClass {
|
|
2326
|
+
}
|
|
2327
|
+
let TaonECommercePaymentTransactionProvider = class TaonECommercePaymentTransactionProvider extends TaonBaseProvider {
|
|
2328
|
+
constructor() {
|
|
2329
|
+
super(...arguments);
|
|
2330
|
+
this.enabledTaonECommercePaymentTransactionOption = true;
|
|
2331
|
+
this.config = new TaonTaonECommercePaymentTransactionConfig();
|
|
2332
|
+
}
|
|
2333
|
+
clone() {
|
|
2334
|
+
return {
|
|
2335
|
+
enabledTaonECommercePaymentTransactionOption: this.enabledTaonECommercePaymentTransactionOption,
|
|
2336
|
+
config: this.config.clone(),
|
|
2337
|
+
};
|
|
2338
|
+
}
|
|
2339
|
+
};
|
|
2340
|
+
TaonECommercePaymentTransactionProvider = __decorate([
|
|
2341
|
+
TaonProvider({
|
|
2342
|
+
className: 'TaonECommercePaymentTransactionProvider',
|
|
2343
|
+
})
|
|
2344
|
+
], TaonECommercePaymentTransactionProvider);
|
|
2345
|
+
|
|
2346
|
+
//#region imports
|
|
2347
|
+
// import { TaonECommercePaymentTransactionMiddleware } from './taon-e-commerce-payment-transaction.middleware';
|
|
2348
|
+
// import { TaonECommercePaymentTransactionSubscriber } from './taon-e-commerce-payment-transaction.subscriber';
|
|
2349
|
+
//#endregion
|
|
2350
|
+
const TaonECommercePaymentTransactionAbstractContext = createContext(() => ({
|
|
2351
|
+
contextName: 'TaonECommercePaymentTransactionAbstractContext',
|
|
2352
|
+
abstract: true,
|
|
2353
|
+
contexts: { TaonBaseContext },
|
|
2354
|
+
entities: { TaonECommercePaymentTransactionEntity },
|
|
2355
|
+
controllers: { TaonECommercePaymentTransactionController },
|
|
2356
|
+
repositories: {
|
|
2357
|
+
// TaonECommercePaymentTransactionKvRepository
|
|
2358
|
+
TaonECommercePaymentTransactionRepository,
|
|
2359
|
+
},
|
|
2360
|
+
providers: { TaonECommercePaymentTransactionProvider },
|
|
2361
|
+
// middlewares: { TaonECommercePaymentTransactionMiddleware },
|
|
2362
|
+
// subscribers: { TaonECommercePaymentTransactionSubscriber },
|
|
2363
|
+
}));
|
|
2364
|
+
|
|
2365
|
+
//#endregion
|
|
2366
|
+
let TaonECommerceProductRepository = class TaonECommerceProductRepository extends TaonBaseRepository {
|
|
2367
|
+
constructor() {
|
|
2368
|
+
super(...arguments);
|
|
2369
|
+
this.entityClassResolveFn = () => TaonECommerceProductEntity;
|
|
2370
|
+
}
|
|
2371
|
+
/**
|
|
2372
|
+
* TODO remove this demo example method
|
|
2373
|
+
*/
|
|
2374
|
+
async countEntitesWithEvenId() {
|
|
2375
|
+
//#region @websqlFunc
|
|
2376
|
+
const result = await this.count({
|
|
2377
|
+
where: {
|
|
2378
|
+
id: Raw(alias => `${alias} % 2 = 0`),
|
|
2379
|
+
},
|
|
2380
|
+
});
|
|
2381
|
+
return result;
|
|
2382
|
+
//#endregion
|
|
2383
|
+
}
|
|
2384
|
+
};
|
|
2385
|
+
TaonECommerceProductRepository = __decorate([
|
|
2386
|
+
TaonRepository({
|
|
2387
|
+
className: 'TaonECommerceProductRepository',
|
|
2388
|
+
})
|
|
2389
|
+
], TaonECommerceProductRepository);
|
|
2390
|
+
|
|
2391
|
+
var TaonECommerceProductController_1;
|
|
2392
|
+
//#endregion
|
|
2393
|
+
let TaonECommerceProductController = TaonECommerceProductController_1 = class TaonECommerceProductController extends TaonBaseCrudController {
|
|
2394
|
+
constructor() {
|
|
2395
|
+
super(...arguments);
|
|
2396
|
+
this.entityClassResolveFn = () => TaonECommerceProductEntity;
|
|
2397
|
+
this.taonECommerceProductRepository = this.injectCustomRepo(TaonECommerceProductRepository);
|
|
2398
|
+
//#endregion
|
|
2399
|
+
}
|
|
2400
|
+
syncWithStripe() {
|
|
2401
|
+
return async () => {
|
|
2402
|
+
throw new Error('Stripe synchronization is not configured for this project.');
|
|
2403
|
+
};
|
|
2404
|
+
}
|
|
2405
|
+
//#region methods & getters / hello world
|
|
2406
|
+
/**
|
|
2407
|
+
* TODO remove this demo example method
|
|
2408
|
+
*/
|
|
2409
|
+
helloWord(yourName) {
|
|
2410
|
+
//#region @websqlFunc
|
|
2411
|
+
return async (req, res) => {
|
|
2412
|
+
const numOfEntities = await this.db.count();
|
|
2413
|
+
const numberOfEvenEntities = await this.taonECommerceProductRepository.countEntitesWithEvenId();
|
|
2414
|
+
return `Hello ${yourName || 'world'} from ${ClassHelpers__NS__getName(TaonECommerceProductController_1)}
|
|
2415
|
+
controller.. ${numOfEntities} entites in db..
|
|
2416
|
+
${numberOfEvenEntities} entites with even ids (2,4,6,8 etc.)
|
|
2417
|
+
`;
|
|
2418
|
+
};
|
|
2419
|
+
//#endregion
|
|
2420
|
+
}
|
|
2421
|
+
};
|
|
2422
|
+
__decorate([
|
|
2423
|
+
POST(),
|
|
2424
|
+
__metadata("design:type", Function),
|
|
2425
|
+
__metadata("design:paramtypes", []),
|
|
2426
|
+
__metadata("design:returntype", Object)
|
|
2427
|
+
], TaonECommerceProductController.prototype, "syncWithStripe", null);
|
|
2428
|
+
__decorate([
|
|
2429
|
+
GET(),
|
|
2430
|
+
__param(0, Query('yourName')),
|
|
2431
|
+
__metadata("design:type", Function),
|
|
2432
|
+
__metadata("design:paramtypes", [String]),
|
|
2433
|
+
__metadata("design:returntype", Object)
|
|
2434
|
+
], TaonECommerceProductController.prototype, "helloWord", null);
|
|
2435
|
+
TaonECommerceProductController = TaonECommerceProductController_1 = __decorate([
|
|
2436
|
+
TaonController({
|
|
2437
|
+
className: 'TaonECommerceProductController',
|
|
2438
|
+
allowedMethods: ['getAll', 'paginationQuery', 'save', 'updateById'],
|
|
2439
|
+
})
|
|
2440
|
+
], TaonECommerceProductController);
|
|
2441
|
+
|
|
2442
|
+
//#endregion
|
|
2443
|
+
class TaonTaonECommerceProductConfig extends TaonBaseClass {
|
|
2444
|
+
}
|
|
2445
|
+
let TaonECommerceProductProvider = class TaonECommerceProductProvider extends TaonBaseProvider {
|
|
2446
|
+
constructor() {
|
|
2447
|
+
super(...arguments);
|
|
2448
|
+
this.enabledTaonECommerceProductOption = true;
|
|
2449
|
+
this.config = new TaonTaonECommerceProductConfig();
|
|
2450
|
+
}
|
|
2451
|
+
clone() {
|
|
2452
|
+
return {
|
|
2453
|
+
enabledTaonECommerceProductOption: this.enabledTaonECommerceProductOption,
|
|
2454
|
+
config: this.config.clone(),
|
|
2455
|
+
};
|
|
2456
|
+
}
|
|
2457
|
+
};
|
|
2458
|
+
TaonECommerceProductProvider = __decorate([
|
|
2459
|
+
TaonProvider({
|
|
2460
|
+
className: 'TaonECommerceProductProvider',
|
|
2461
|
+
})
|
|
2462
|
+
], TaonECommerceProductProvider);
|
|
2463
|
+
|
|
2464
|
+
//#region imports
|
|
2465
|
+
// import { TaonECommerceProductMiddleware } from './taon-e-commerce-product.middleware';
|
|
2466
|
+
// import { TaonECommerceProductSubscriber } from './taon-e-commerce-product.subscriber';
|
|
2467
|
+
//#endregion
|
|
2468
|
+
const TaonECommerceProductAbstractContext = createContext(() => ({
|
|
2469
|
+
contextName: 'TaonECommerceProductAbstractContext',
|
|
2470
|
+
abstract: true,
|
|
2471
|
+
contexts: { TaonBaseContext },
|
|
2472
|
+
entities: { TaonECommerceProductEntity },
|
|
2473
|
+
controllers: { TaonECommerceProductController },
|
|
2474
|
+
repositories: {
|
|
2475
|
+
// TaonECommerceProductKvRepository
|
|
2476
|
+
TaonECommerceProductRepository,
|
|
2477
|
+
},
|
|
2478
|
+
providers: { TaonECommerceProductProvider },
|
|
2479
|
+
// middlewares: { TaonECommerceProductMiddleware },
|
|
2480
|
+
// subscribers: { TaonECommerceProductSubscriber },
|
|
2481
|
+
}));
|
|
2482
|
+
|
|
2483
|
+
//#endregion
|
|
2484
|
+
let TaonECommerceProductPermissionRepository = class TaonECommerceProductPermissionRepository extends TaonBaseRepository {
|
|
2485
|
+
constructor() {
|
|
2486
|
+
super(...arguments);
|
|
2487
|
+
this.entityClassResolveFn = () => TaonECommerceProductPermissionEntity;
|
|
2488
|
+
}
|
|
2489
|
+
/**
|
|
2490
|
+
* TODO remove this demo example method
|
|
2491
|
+
*/
|
|
2492
|
+
async countEntitesWithEvenId() {
|
|
2493
|
+
//#region @websqlFunc
|
|
2494
|
+
const result = await this.count({
|
|
2495
|
+
where: {
|
|
2496
|
+
id: Raw(alias => `${alias} % 2 = 0`),
|
|
2497
|
+
},
|
|
2498
|
+
});
|
|
2499
|
+
return result;
|
|
2500
|
+
//#endregion
|
|
2501
|
+
}
|
|
2502
|
+
};
|
|
2503
|
+
TaonECommerceProductPermissionRepository = __decorate([
|
|
2504
|
+
TaonRepository({
|
|
2505
|
+
className: 'TaonECommerceProductPermissionRepository',
|
|
2506
|
+
})
|
|
2507
|
+
], TaonECommerceProductPermissionRepository);
|
|
2508
|
+
|
|
2509
|
+
var TaonECommerceProductPermissionController_1;
|
|
2510
|
+
//#endregion
|
|
2511
|
+
let TaonECommerceProductPermissionController = TaonECommerceProductPermissionController_1 = class TaonECommerceProductPermissionController extends TaonBaseCrudController {
|
|
2512
|
+
constructor() {
|
|
2513
|
+
super(...arguments);
|
|
2514
|
+
this.entityClassResolveFn = () => TaonECommerceProductPermissionEntity;
|
|
2515
|
+
this.taonECommerceProductPermissionRepository = this.injectCustomRepo(TaonECommerceProductPermissionRepository);
|
|
2516
|
+
//#endregion
|
|
2517
|
+
}
|
|
2518
|
+
//#region methods & getters / hello world
|
|
2519
|
+
/**
|
|
2520
|
+
* TODO remove this demo example method
|
|
2521
|
+
*/
|
|
2522
|
+
helloWord(yourName) {
|
|
2523
|
+
//#region @websqlFunc
|
|
2524
|
+
return async (req, res) => {
|
|
2525
|
+
const numOfEntities = await this.db.count();
|
|
2526
|
+
const numberOfEvenEntities = await this.taonECommerceProductPermissionRepository.countEntitesWithEvenId();
|
|
2527
|
+
return `Hello ${yourName || 'world'} from ${ClassHelpers__NS__getName(TaonECommerceProductPermissionController_1)}
|
|
2528
|
+
controller.. ${numOfEntities} entites in db..
|
|
2529
|
+
${numberOfEvenEntities} entites with even ids (2,4,6,8 etc.)
|
|
2530
|
+
`;
|
|
2531
|
+
};
|
|
2532
|
+
//#endregion
|
|
2533
|
+
}
|
|
2534
|
+
};
|
|
2535
|
+
__decorate([
|
|
2536
|
+
GET(),
|
|
2537
|
+
__param(0, Query('yourName')),
|
|
2538
|
+
__metadata("design:type", Function),
|
|
2539
|
+
__metadata("design:paramtypes", [String]),
|
|
2540
|
+
__metadata("design:returntype", Object)
|
|
2541
|
+
], TaonECommerceProductPermissionController.prototype, "helloWord", null);
|
|
2542
|
+
TaonECommerceProductPermissionController = TaonECommerceProductPermissionController_1 = __decorate([
|
|
2543
|
+
TaonController({
|
|
2544
|
+
className: 'TaonECommerceProductPermissionController',
|
|
2545
|
+
// allowedMethods: []
|
|
2546
|
+
})
|
|
2547
|
+
], TaonECommerceProductPermissionController);
|
|
2548
|
+
|
|
2549
|
+
//#endregion
|
|
2550
|
+
class TaonTaonECommerceProductPermissionConfig extends TaonBaseClass {
|
|
2551
|
+
}
|
|
2552
|
+
let TaonECommerceProductPermissionProvider = class TaonECommerceProductPermissionProvider extends TaonBaseProvider {
|
|
2553
|
+
constructor() {
|
|
2554
|
+
super(...arguments);
|
|
2555
|
+
this.enabledTaonECommerceProductPermissionOption = true;
|
|
2556
|
+
this.config = new TaonTaonECommerceProductPermissionConfig();
|
|
2557
|
+
}
|
|
2558
|
+
clone() {
|
|
2559
|
+
return {
|
|
2560
|
+
enabledTaonECommerceProductPermissionOption: this.enabledTaonECommerceProductPermissionOption,
|
|
2561
|
+
config: this.config.clone(),
|
|
2562
|
+
};
|
|
2563
|
+
}
|
|
2564
|
+
};
|
|
2565
|
+
TaonECommerceProductPermissionProvider = __decorate([
|
|
2566
|
+
TaonProvider({
|
|
2567
|
+
className: 'TaonECommerceProductPermissionProvider',
|
|
2568
|
+
})
|
|
2569
|
+
], TaonECommerceProductPermissionProvider);
|
|
2570
|
+
|
|
2571
|
+
//#region imports
|
|
2572
|
+
// import { TaonECommerceProductPermissionMiddleware } from './taon-e-commerce-product-permission.middleware';
|
|
2573
|
+
// import { TaonECommerceProductPermissionSubscriber } from './taon-e-commerce-product-permission.subscriber';
|
|
2574
|
+
//#endregion
|
|
2575
|
+
const TaonECommerceProductPermissionAbstractContext = createContext(() => ({
|
|
2576
|
+
contextName: 'TaonECommerceProductPermissionAbstractContext',
|
|
2577
|
+
abstract: true,
|
|
2578
|
+
contexts: { TaonBaseContext },
|
|
2579
|
+
entities: { TaonECommerceProductPermissionEntity },
|
|
2580
|
+
controllers: { TaonECommerceProductPermissionController },
|
|
2581
|
+
repositories: {
|
|
2582
|
+
// TaonECommerceProductPermissionKvRepository
|
|
2583
|
+
TaonECommerceProductPermissionRepository,
|
|
2584
|
+
},
|
|
2585
|
+
providers: { TaonECommerceProductPermissionProvider },
|
|
2586
|
+
// middlewares: { TaonECommerceProductPermissionMiddleware },
|
|
2587
|
+
// subscribers: { TaonECommerceProductPermissionSubscriber },
|
|
2588
|
+
}));
|
|
2589
|
+
|
|
2590
|
+
let TaonECommerceSettingsKvRepository = class TaonECommerceSettingsKvRepository extends TaonBaseKvRepository {
|
|
2591
|
+
};
|
|
2592
|
+
TaonECommerceSettingsKvRepository = __decorate([
|
|
2593
|
+
TaonRepository({
|
|
2594
|
+
className: 'TaonECommerceSettingsKvRepository',
|
|
2595
|
+
})
|
|
2596
|
+
], TaonECommerceSettingsKvRepository);
|
|
2597
|
+
|
|
2598
|
+
let TaonECommerceBackofficeSettingsController = class TaonECommerceBackofficeSettingsController extends TaonBaseController {
|
|
2599
|
+
constructor() {
|
|
2600
|
+
super(...arguments);
|
|
2601
|
+
this.settings = this.injectCustomRepo(TaonECommerceSettingsKvRepository);
|
|
2602
|
+
}
|
|
2603
|
+
getSellingEnabled() {
|
|
2604
|
+
return async () => {
|
|
2605
|
+
return (await this.settings.get('sellingEnabled')) ?? true;
|
|
2606
|
+
};
|
|
2607
|
+
}
|
|
2608
|
+
setSellingEnabled(enabled) {
|
|
2609
|
+
return async () => {
|
|
2610
|
+
if (typeof enabled !== 'boolean') {
|
|
2611
|
+
throw new Error('Selling enabled must be a boolean.');
|
|
2612
|
+
}
|
|
2613
|
+
await this.settings.set('sellingEnabled', enabled);
|
|
2614
|
+
return enabled;
|
|
2615
|
+
};
|
|
2616
|
+
}
|
|
2617
|
+
};
|
|
2618
|
+
__decorate([
|
|
2619
|
+
GET(),
|
|
2620
|
+
__metadata("design:type", Function),
|
|
2621
|
+
__metadata("design:paramtypes", []),
|
|
2622
|
+
__metadata("design:returntype", Object)
|
|
2623
|
+
], TaonECommerceBackofficeSettingsController.prototype, "getSellingEnabled", null);
|
|
2624
|
+
__decorate([
|
|
2625
|
+
PUT(),
|
|
2626
|
+
__param(0, Body('enabled')),
|
|
2627
|
+
__metadata("design:type", Function),
|
|
2628
|
+
__metadata("design:paramtypes", [Boolean]),
|
|
2629
|
+
__metadata("design:returntype", Object)
|
|
2630
|
+
], TaonECommerceBackofficeSettingsController.prototype, "setSellingEnabled", null);
|
|
2631
|
+
TaonECommerceBackofficeSettingsController = __decorate([
|
|
2632
|
+
TaonController({
|
|
2633
|
+
className: 'TaonECommerceBackofficeSettingsController',
|
|
2634
|
+
})
|
|
2635
|
+
], TaonECommerceBackofficeSettingsController);
|
|
2636
|
+
|
|
2637
|
+
const TaonECommerceBackofficeSettingsContext = createContext(() => ({
|
|
2638
|
+
contextName: 'TaonECommerceBackofficeSettingsContext',
|
|
2639
|
+
abstract: true,
|
|
2640
|
+
contexts: { TaonBaseContext },
|
|
2641
|
+
controllers: { TaonECommerceBackofficeSettingsController },
|
|
2642
|
+
repositories: { TaonECommerceSettingsKvRepository },
|
|
2643
|
+
}));
|
|
2644
|
+
|
|
2645
|
+
const TaonECommerceAbstractContext = createContext(() => ({
|
|
2646
|
+
contextName: 'TaonECommerceAbstractContext',
|
|
2647
|
+
abstract: true,
|
|
2648
|
+
contexts: {
|
|
2649
|
+
TaonCmsAbstractContext,
|
|
2650
|
+
TaonECommerceCartAbstractContext,
|
|
2651
|
+
TaonECommerceCartItemAbstractContext,
|
|
2652
|
+
TaonECommerceCustomerAddressAbstractContext,
|
|
2653
|
+
TaonECommerceOrderAbstractContext,
|
|
2654
|
+
TaonECommerceOrderItemAbstractContext,
|
|
2655
|
+
TaonECommercePaymentTransactionAbstractContext,
|
|
2656
|
+
TaonECommerceProductAbstractContext,
|
|
2657
|
+
TaonECommerceProductPermissionAbstractContext,
|
|
2658
|
+
TaonECommerceBackofficeSettingsContext,
|
|
2659
|
+
},
|
|
2660
|
+
}));
|
|
2661
|
+
|
|
2662
|
+
;
|
|
2663
|
+
// THIS FILE IS GENERATED - DO NOT MODIFY
|
|
2664
|
+
|
|
2665
|
+
class TaonECommerceCustomerApiService extends TaonBaseAngularService {
|
|
2666
|
+
constructor() {
|
|
2667
|
+
super(...arguments);
|
|
2668
|
+
this.controller = this.injectController(TaonECommerceCustomerController);
|
|
2669
|
+
}
|
|
2670
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: TaonECommerceCustomerApiService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2671
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: TaonECommerceCustomerApiService }); }
|
|
2672
|
+
}
|
|
2673
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: TaonECommerceCustomerApiService, decorators: [{
|
|
2674
|
+
type: Injectable
|
|
2675
|
+
}] });
|
|
2676
|
+
|
|
2677
|
+
class TaonCartComponent {
|
|
2678
|
+
constructor() {
|
|
2679
|
+
this.config = {};
|
|
2680
|
+
this.api = inject(TaonECommerceCustomerApiService);
|
|
2681
|
+
this.dialogRef = inject(MatDialogRef, { optional: true });
|
|
2682
|
+
this.cart = signal(null, ...(ngDevMode ? [{ debugName: "cart" }] : []));
|
|
2683
|
+
this.orders = signal([], ...(ngDevMode ? [{ debugName: "orders" }] : []));
|
|
2684
|
+
this.transactions = signal([], ...(ngDevMode ? [{ debugName: "transactions" }] : []));
|
|
2685
|
+
this.subscriptions = signal([], ...(ngDevMode ? [{ debugName: "subscriptions" }] : []));
|
|
2686
|
+
this.loadingCart = signal(false, ...(ngDevMode ? [{ debugName: "loadingCart" }] : []));
|
|
2687
|
+
this.loadingOrders = signal(false, ...(ngDevMode ? [{ debugName: "loadingOrders" }] : []));
|
|
2688
|
+
this.loadingTransactions = signal(false, ...(ngDevMode ? [{ debugName: "loadingTransactions" }] : []));
|
|
2689
|
+
this.loadingSubscriptions = signal(false, ...(ngDevMode ? [{ debugName: "loadingSubscriptions" }] : []));
|
|
2690
|
+
this.error = signal('', ...(ngDevMode ? [{ debugName: "error" }] : []));
|
|
2691
|
+
this.orderColumns = [
|
|
2692
|
+
{ header: 'Order ID', field: 'id', sortable: true },
|
|
2693
|
+
{ header: 'Status', field: 'status', sortable: true },
|
|
2694
|
+
{ header: 'Total', field: 'total', sortable: true },
|
|
2695
|
+
{ header: 'Currency', field: 'currency', sortable: true },
|
|
2696
|
+
{ header: 'Created', field: 'createdAt', sortable: true },
|
|
2697
|
+
];
|
|
2698
|
+
this.transactionColumns = [
|
|
2699
|
+
{ header: 'ID', field: 'id', sortable: true },
|
|
2700
|
+
{ header: 'Order ID', field: 'orderId', sortable: true },
|
|
2701
|
+
{ header: 'Provider', field: 'provider', sortable: true },
|
|
2702
|
+
{ header: 'Status', field: 'status', sortable: true },
|
|
2703
|
+
{ header: 'Amount', field: 'amount', sortable: true },
|
|
2704
|
+
{ header: 'Currency', field: 'currency', sortable: true },
|
|
2705
|
+
{ header: 'Created', field: 'createdAt', sortable: true },
|
|
2706
|
+
];
|
|
2707
|
+
void this.loadCart();
|
|
2708
|
+
}
|
|
2709
|
+
close() {
|
|
2710
|
+
this.dialogRef?.close();
|
|
2711
|
+
}
|
|
2712
|
+
onMainTabChange(index) {
|
|
2713
|
+
if (index === (this.hasSuggestedProducts ? 2 : 1)) {
|
|
2714
|
+
void this.loadSubscriptions();
|
|
2715
|
+
}
|
|
2716
|
+
}
|
|
2717
|
+
onSettingsTabChange(index) {
|
|
2718
|
+
if (index === 0) {
|
|
2719
|
+
void this.loadSubscriptions();
|
|
2720
|
+
}
|
|
2721
|
+
else if (index === 1) {
|
|
2722
|
+
void this.loadOrders();
|
|
2723
|
+
}
|
|
2724
|
+
else if (index === 2) {
|
|
2725
|
+
void this.loadTransactions();
|
|
2726
|
+
}
|
|
2727
|
+
}
|
|
2728
|
+
get suggestedProducts() {
|
|
2729
|
+
return this.config?.suggestedProducts ?? [];
|
|
2730
|
+
}
|
|
2731
|
+
get hasSuggestedProducts() {
|
|
2732
|
+
return this.suggestedProducts.length > 0;
|
|
2733
|
+
}
|
|
2734
|
+
async loadCart() {
|
|
2735
|
+
this.loadingCart.set(true);
|
|
2736
|
+
this.error.set('');
|
|
2737
|
+
try {
|
|
2738
|
+
this.cart.set(await this.request(this.api.controller.getMyCart().request()));
|
|
2739
|
+
}
|
|
2740
|
+
catch (error) {
|
|
2741
|
+
this.reportError('Unable to load your cart.', error);
|
|
2742
|
+
}
|
|
2743
|
+
finally {
|
|
2744
|
+
this.loadingCart.set(false);
|
|
2745
|
+
}
|
|
2746
|
+
}
|
|
2747
|
+
async addProduct(product) {
|
|
2748
|
+
if (typeof product.id !== 'number') {
|
|
2749
|
+
this.error.set('This suggested product does not have a saved product ID.');
|
|
2750
|
+
return;
|
|
2751
|
+
}
|
|
2752
|
+
try {
|
|
2753
|
+
this.cart.set(await this.request(this.api.controller.addToMyCart(product.id, 1).request()));
|
|
2754
|
+
}
|
|
2755
|
+
catch (error) {
|
|
2756
|
+
this.reportError('Unable to add this product to your cart.', error);
|
|
2757
|
+
}
|
|
2758
|
+
}
|
|
2759
|
+
async updateQuantity(itemId, quantity) {
|
|
2760
|
+
if (quantity < 1) {
|
|
2761
|
+
await this.removeItem(itemId);
|
|
2762
|
+
return;
|
|
2763
|
+
}
|
|
2764
|
+
try {
|
|
2765
|
+
this.cart.set(await this.request(this.api.controller.updateMyCartItem(itemId, quantity).request()));
|
|
2766
|
+
}
|
|
2767
|
+
catch (error) {
|
|
2768
|
+
this.reportError('Unable to update the cart item.', error);
|
|
2769
|
+
}
|
|
2770
|
+
}
|
|
2771
|
+
async removeItem(itemId) {
|
|
2772
|
+
try {
|
|
2773
|
+
this.cart.set(await this.request(this.api.controller.removeFromMyCart(itemId).request()));
|
|
2774
|
+
}
|
|
2775
|
+
catch (error) {
|
|
2776
|
+
this.reportError('Unable to remove the cart item.', error);
|
|
2777
|
+
}
|
|
2778
|
+
}
|
|
2779
|
+
async loadOrders() {
|
|
2780
|
+
this.loadingOrders.set(true);
|
|
2781
|
+
this.error.set('');
|
|
2782
|
+
try {
|
|
2783
|
+
this.orders.set(await this.request(this.api.controller.getMyOrders().request()));
|
|
2784
|
+
}
|
|
2785
|
+
catch (error) {
|
|
2786
|
+
this.reportError('Unable to load your orders.', error);
|
|
2787
|
+
}
|
|
2788
|
+
finally {
|
|
2789
|
+
this.loadingOrders.set(false);
|
|
2790
|
+
}
|
|
2791
|
+
}
|
|
2792
|
+
async loadTransactions() {
|
|
2793
|
+
this.loadingTransactions.set(true);
|
|
2794
|
+
this.error.set('');
|
|
2795
|
+
try {
|
|
2796
|
+
this.transactions.set(await this.request(this.api.controller.getMyTransactions().request()));
|
|
2797
|
+
}
|
|
2798
|
+
catch (error) {
|
|
2799
|
+
this.reportError('Unable to load your transactions.', error);
|
|
2800
|
+
}
|
|
2801
|
+
finally {
|
|
2802
|
+
this.loadingTransactions.set(false);
|
|
2803
|
+
}
|
|
2804
|
+
}
|
|
2805
|
+
async loadSubscriptions() {
|
|
2806
|
+
this.loadingSubscriptions.set(true);
|
|
2807
|
+
this.error.set('');
|
|
2808
|
+
try {
|
|
2809
|
+
this.subscriptions.set(await this.request(this.api.controller.getMySubscriptionStatuses().request()));
|
|
2810
|
+
}
|
|
2811
|
+
catch (error) {
|
|
2812
|
+
this.reportError('Unable to load subscription statuses.', error);
|
|
2813
|
+
}
|
|
2814
|
+
finally {
|
|
2815
|
+
this.loadingSubscriptions.set(false);
|
|
2816
|
+
}
|
|
2817
|
+
}
|
|
2818
|
+
async unsubscribe() {
|
|
2819
|
+
this.error.set('');
|
|
2820
|
+
try {
|
|
2821
|
+
const response = await this.api.controller
|
|
2822
|
+
.unsubscribeFromExampleSubscription()
|
|
2823
|
+
.request();
|
|
2824
|
+
if (response.statusCode >= 400) {
|
|
2825
|
+
throw new Error(response.responseText || 'The request failed.');
|
|
2826
|
+
}
|
|
2827
|
+
await this.loadSubscriptions();
|
|
2828
|
+
}
|
|
2829
|
+
catch (error) {
|
|
2830
|
+
this.reportError('Unable to unsubscribe.', error);
|
|
2831
|
+
}
|
|
2832
|
+
}
|
|
2833
|
+
async request(endpoint) {
|
|
2834
|
+
const response = await endpoint;
|
|
2835
|
+
if (response.statusCode >= 400) {
|
|
2836
|
+
throw new Error(response.responseText || 'The request failed.');
|
|
2837
|
+
}
|
|
2838
|
+
const result = response.body?.json;
|
|
2839
|
+
if (result === undefined || result === null) {
|
|
2840
|
+
throw new Error('The server returned an empty response.');
|
|
2841
|
+
}
|
|
2842
|
+
return result;
|
|
2843
|
+
}
|
|
2844
|
+
reportError(message, error) {
|
|
2845
|
+
console.error('[taon-cart]', message, error);
|
|
2846
|
+
this.error.set(error instanceof Error ? error.message : message);
|
|
2847
|
+
}
|
|
2848
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: TaonCartComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2849
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.0.9", type: TaonCartComponent, isStandalone: true, selector: "taon-cart", inputs: { config: "config" }, providers: [TaonECommerceCustomerApiService], ngImport: i0, template: "<section class=\"cart-shell\">\n <header class=\"cart-header\">\n <h2>Shopping</h2>\n <button\n mat-icon-button\n type=\"button\"\n aria-label=\"Close cart\"\n (click)=\"close()\">\n <mat-icon>close</mat-icon>\n </button>\n </header>\n @if (error()) {\n <p\n class=\"error\"\n role=\"alert\">\n {{ error() }}\n </p>\n }\n <mat-tab-group\n (selectedIndexChange)=\"onMainTabChange($event)\"\n [selectedIndex]=\"hasSuggestedProducts ? 0 : 1\">\n @if (hasSuggestedProducts) {\n <mat-tab label=\"Buy\">\n <div class=\"products\">\n @for (product of suggestedProducts; track product.id) {\n <article class=\"product\">\n <h3>{{ product.name }}</h3>\n @if (product.description) {\n <p>{{ product.description }}</p>\n }\n <p>{{ product.price | currency: product.currency }}</p>\n <button\n mat-flat-button\n type=\"button\"\n (click)=\"addProduct(product)\">\n Add to cart\n </button>\n </article>\n }\n </div>\n </mat-tab>\n } @else {\n <mat-tab\n label=\"Buy\"\n [disabled]=\"true\"></mat-tab>\n }\n <mat-tab label=\"Cart\">\n @if (loadingCart()) {\n <p role=\"status\">Loading cart...</p>\n } @else if (!cart()?.items?.length) {\n <p>Your cart is empty.</p>\n } @else {\n <div class=\"cart-items\">\n @for (item of cart()!.items; track item.id) {\n <article class=\"cart-item\">\n <div class=\"item-product\">\n <strong>{{ item.product.name }}</strong>\n <span\n >{{\n item.product.price | currency: item.product.currency\n }}\n each</span\n >\n </div>\n <div class=\"quantity\">\n <button\n mat-icon-button\n type=\"button\"\n aria-label=\"Decrease quantity\"\n (click)=\"updateQuantity(item.id!, item.quantity - 1)\">\n <mat-icon>remove</mat-icon>\n </button>\n <span>{{ item.quantity }}</span>\n <button\n mat-icon-button\n type=\"button\"\n aria-label=\"Increase quantity\"\n (click)=\"updateQuantity(item.id!, item.quantity + 1)\">\n <mat-icon>add</mat-icon>\n </button>\n </div>\n <strong>{{\n item.product.price * item.quantity\n | currency: item.product.currency\n }}</strong>\n <button\n mat-button\n type=\"button\"\n (click)=\"removeItem(item.id!)\">\n Remove\n </button>\n </article>\n }\n </div>\n }\n </mat-tab>\n <mat-tab>\n <ng-template mat-tab-label>\n <mat-icon aria-hidden=\"true\">settings</mat-icon>\n <span>Settings</span>\n </ng-template>\n <mat-tab-group (selectedIndexChange)=\"onSettingsTabChange($event)\">\n <mat-tab label=\"Settings\">\n @if (loadingSubscriptions()) {\n <p role=\"status\">Loading subscription statuses...</p>\n } @else if (!subscriptions().length) {\n <p>No subscriptions.</p>\n } @else {\n <div class=\"table-scroll\">\n <table>\n <thead>\n <tr>\n <th>Subscription</th>\n <th>Status</th>\n <th>Valid until</th>\n <th></th>\n </tr>\n </thead>\n <tbody>\n @for (\n subscription of subscriptions();\n track subscription.id\n ) {\n <tr>\n <td>{{ subscription.productName }}</td>\n <td>{{ subscription.status }}</td>\n <td>\n {{\n subscription.validUntil\n ? (subscription.validUntil | date)\n : '\u2014'\n }}\n </td>\n <td>\n @if (subscription.status === 'active') {\n <button\n mat-button\n type=\"button\"\n (click)=\"unsubscribe()\">\n Unsubscribe\n </button>\n }\n </td>\n </tr>\n }\n </tbody>\n </table>\n </div>\n }\n </mat-tab>\n <mat-tab label=\"Orders\">\n @if (loadingOrders()) {\n <p role=\"status\">Loading orders...</p>\n } @else {\n <taon-datatable\n [data]=\"orders()\"\n [columns]=\"orderColumns\"\n [hideAddButton]=\"true\"\n [hideSearch]=\"true\" />\n }\n </mat-tab>\n <mat-tab label=\"Transactions\">\n @if (loadingTransactions()) {\n <p role=\"status\">Loading transactions...</p>\n } @else {\n <taon-datatable\n [data]=\"transactions()\"\n [columns]=\"transactionColumns\"\n [hideAddButton]=\"true\"\n [hideSearch]=\"true\" />\n }\n </mat-tab>\n </mat-tab-group>\n </mat-tab>\n </mat-tab-group>\n</section>\n", styles: [":host{display:block}.cart-shell{padding:1rem}.cart-header{display:flex;align-items:center;justify-content:space-between}.products,.cart-items{display:grid;gap:1rem;padding:1rem 0}.products{grid-template-columns:repeat(auto-fill,minmax(220px,1fr))}.product,.cart-item{border:1px solid rgba(127,127,127,.35);border-radius:.5rem;padding:1rem}.cart-item{display:grid;grid-template-columns:minmax(160px,1fr) auto auto auto;align-items:center;gap:1rem}.item-product{display:grid;gap:.25rem}.quantity{display:flex;align-items:center}.table-scroll{overflow-x:auto}table{width:100%;border-collapse:collapse}th,td{padding:.75rem;border-bottom:1px solid rgba(127,127,127,.25);text-align:left}.error{color:#b00020}@media(max-width:600px){.cart-item{grid-template-columns:1fr auto}}\n"], dependencies: [{ kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i1.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "component", type: i1.MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatTabsModule }, { kind: "directive", type: i3.MatTabLabel, selector: "[mat-tab-label], [matTabLabel]" }, { kind: "component", type: i3.MatTab, selector: "mat-tab", inputs: ["disabled", "label", "aria-label", "aria-labelledby", "labelClass", "bodyClass", "id"], exportAs: ["matTab"] }, { kind: "component", type: i3.MatTabGroup, selector: "mat-tab-group", inputs: ["color", "fitInkBarToContent", "mat-stretch-tabs", "mat-align-tabs", "dynamicHeight", "selectedIndex", "headerPosition", "animationDuration", "contentTabIndex", "disablePagination", "disableRipple", "preserveContent", "backgroundColor", "aria-label", "aria-labelledby"], outputs: ["selectedIndexChange", "focusChange", "animationDone", "selectedTabChange"], exportAs: ["matTabGroup"] }, { kind: "component", type: TaonDatatableComponent, selector: "taon-datatable", inputs: ["pageNumber", "pageSize", "pageSizeOptions", "allowedColumns", "expansionTemplate", "entityCrudController", "columns", "hideSearch", "hideAddButton", "safe", "searchMode", "callQueryMethod", "data", "showPaginator"], outputs: ["expansionChange", "addingItem"] }, { kind: "pipe", type: CurrencyPipe, name: "currency" }, { kind: "pipe", type: DatePipe, name: "date" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
2850
|
+
}
|
|
2851
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: TaonCartComponent, decorators: [{
|
|
2852
|
+
type: Component,
|
|
2853
|
+
args: [{ selector: 'taon-cart', changeDetection: ChangeDetectionStrategy.OnPush, imports: [
|
|
2854
|
+
CurrencyPipe,
|
|
2855
|
+
DatePipe,
|
|
2856
|
+
MatButtonModule,
|
|
2857
|
+
MatIconModule,
|
|
2858
|
+
MatTabsModule,
|
|
2859
|
+
TaonDatatableComponent,
|
|
2860
|
+
], providers: [TaonECommerceCustomerApiService], template: "<section class=\"cart-shell\">\n <header class=\"cart-header\">\n <h2>Shopping</h2>\n <button\n mat-icon-button\n type=\"button\"\n aria-label=\"Close cart\"\n (click)=\"close()\">\n <mat-icon>close</mat-icon>\n </button>\n </header>\n @if (error()) {\n <p\n class=\"error\"\n role=\"alert\">\n {{ error() }}\n </p>\n }\n <mat-tab-group\n (selectedIndexChange)=\"onMainTabChange($event)\"\n [selectedIndex]=\"hasSuggestedProducts ? 0 : 1\">\n @if (hasSuggestedProducts) {\n <mat-tab label=\"Buy\">\n <div class=\"products\">\n @for (product of suggestedProducts; track product.id) {\n <article class=\"product\">\n <h3>{{ product.name }}</h3>\n @if (product.description) {\n <p>{{ product.description }}</p>\n }\n <p>{{ product.price | currency: product.currency }}</p>\n <button\n mat-flat-button\n type=\"button\"\n (click)=\"addProduct(product)\">\n Add to cart\n </button>\n </article>\n }\n </div>\n </mat-tab>\n } @else {\n <mat-tab\n label=\"Buy\"\n [disabled]=\"true\"></mat-tab>\n }\n <mat-tab label=\"Cart\">\n @if (loadingCart()) {\n <p role=\"status\">Loading cart...</p>\n } @else if (!cart()?.items?.length) {\n <p>Your cart is empty.</p>\n } @else {\n <div class=\"cart-items\">\n @for (item of cart()!.items; track item.id) {\n <article class=\"cart-item\">\n <div class=\"item-product\">\n <strong>{{ item.product.name }}</strong>\n <span\n >{{\n item.product.price | currency: item.product.currency\n }}\n each</span\n >\n </div>\n <div class=\"quantity\">\n <button\n mat-icon-button\n type=\"button\"\n aria-label=\"Decrease quantity\"\n (click)=\"updateQuantity(item.id!, item.quantity - 1)\">\n <mat-icon>remove</mat-icon>\n </button>\n <span>{{ item.quantity }}</span>\n <button\n mat-icon-button\n type=\"button\"\n aria-label=\"Increase quantity\"\n (click)=\"updateQuantity(item.id!, item.quantity + 1)\">\n <mat-icon>add</mat-icon>\n </button>\n </div>\n <strong>{{\n item.product.price * item.quantity\n | currency: item.product.currency\n }}</strong>\n <button\n mat-button\n type=\"button\"\n (click)=\"removeItem(item.id!)\">\n Remove\n </button>\n </article>\n }\n </div>\n }\n </mat-tab>\n <mat-tab>\n <ng-template mat-tab-label>\n <mat-icon aria-hidden=\"true\">settings</mat-icon>\n <span>Settings</span>\n </ng-template>\n <mat-tab-group (selectedIndexChange)=\"onSettingsTabChange($event)\">\n <mat-tab label=\"Settings\">\n @if (loadingSubscriptions()) {\n <p role=\"status\">Loading subscription statuses...</p>\n } @else if (!subscriptions().length) {\n <p>No subscriptions.</p>\n } @else {\n <div class=\"table-scroll\">\n <table>\n <thead>\n <tr>\n <th>Subscription</th>\n <th>Status</th>\n <th>Valid until</th>\n <th></th>\n </tr>\n </thead>\n <tbody>\n @for (\n subscription of subscriptions();\n track subscription.id\n ) {\n <tr>\n <td>{{ subscription.productName }}</td>\n <td>{{ subscription.status }}</td>\n <td>\n {{\n subscription.validUntil\n ? (subscription.validUntil | date)\n : '\u2014'\n }}\n </td>\n <td>\n @if (subscription.status === 'active') {\n <button\n mat-button\n type=\"button\"\n (click)=\"unsubscribe()\">\n Unsubscribe\n </button>\n }\n </td>\n </tr>\n }\n </tbody>\n </table>\n </div>\n }\n </mat-tab>\n <mat-tab label=\"Orders\">\n @if (loadingOrders()) {\n <p role=\"status\">Loading orders...</p>\n } @else {\n <taon-datatable\n [data]=\"orders()\"\n [columns]=\"orderColumns\"\n [hideAddButton]=\"true\"\n [hideSearch]=\"true\" />\n }\n </mat-tab>\n <mat-tab label=\"Transactions\">\n @if (loadingTransactions()) {\n <p role=\"status\">Loading transactions...</p>\n } @else {\n <taon-datatable\n [data]=\"transactions()\"\n [columns]=\"transactionColumns\"\n [hideAddButton]=\"true\"\n [hideSearch]=\"true\" />\n }\n </mat-tab>\n </mat-tab-group>\n </mat-tab>\n </mat-tab-group>\n</section>\n", styles: [":host{display:block}.cart-shell{padding:1rem}.cart-header{display:flex;align-items:center;justify-content:space-between}.products,.cart-items{display:grid;gap:1rem;padding:1rem 0}.products{grid-template-columns:repeat(auto-fill,minmax(220px,1fr))}.product,.cart-item{border:1px solid rgba(127,127,127,.35);border-radius:.5rem;padding:1rem}.cart-item{display:grid;grid-template-columns:minmax(160px,1fr) auto auto auto;align-items:center;gap:1rem}.item-product{display:grid;gap:.25rem}.quantity{display:flex;align-items:center}.table-scroll{overflow-x:auto}table{width:100%;border-collapse:collapse}th,td{padding:.75rem;border-bottom:1px solid rgba(127,127,127,.25);text-align:left}.error{color:#b00020}@media(max-width:600px){.cart-item{grid-template-columns:1fr auto}}\n"] }]
|
|
2861
|
+
}], ctorParameters: () => [], propDecorators: { config: [{
|
|
2862
|
+
type: Input
|
|
2863
|
+
}] } });
|
|
2864
|
+
|
|
2865
|
+
//namespace TaonCartModels
|
|
2866
|
+
|
|
2867
|
+
class TaonCartButtonComponent {
|
|
2868
|
+
constructor() {
|
|
2869
|
+
this.config = {};
|
|
2870
|
+
this.dialog = inject(MatDialog);
|
|
2871
|
+
this.api = inject(TaonECommerceCustomerApiService);
|
|
2872
|
+
this.cartItemCount = signal(0, ...(ngDevMode ? [{ debugName: "cartItemCount" }] : []));
|
|
2873
|
+
this.error = signal('', ...(ngDevMode ? [{ debugName: "error" }] : []));
|
|
2874
|
+
void this.loadCartCount();
|
|
2875
|
+
}
|
|
2876
|
+
get badgeText() {
|
|
2877
|
+
return this.config?.iconShortText ?? String(this.cartItemCount());
|
|
2878
|
+
}
|
|
2879
|
+
openCart() {
|
|
2880
|
+
const dialog = this.dialog.open(TaonCartComponent, {
|
|
2881
|
+
width: '100vw',
|
|
2882
|
+
height: '100dvh',
|
|
2883
|
+
maxWidth: '100vw',
|
|
2884
|
+
maxHeight: '100dvh',
|
|
2885
|
+
panelClass: 'taon-cart-fullscreen-dialog',
|
|
2886
|
+
});
|
|
2887
|
+
dialog.componentRef?.setInput('config', this.config);
|
|
2888
|
+
dialog.afterClosed().subscribe(() => void this.loadCartCount());
|
|
2889
|
+
}
|
|
2890
|
+
async loadCartCount() {
|
|
2891
|
+
try {
|
|
2892
|
+
const response = await this.api.controller.getMyCart().request();
|
|
2893
|
+
if (response.statusCode >= 400) {
|
|
2894
|
+
throw new Error(response.responseText || 'Unable to load your cart.');
|
|
2895
|
+
}
|
|
2896
|
+
const cart = response.body?.json;
|
|
2897
|
+
if (!cart || !Array.isArray(cart.items)) {
|
|
2898
|
+
throw new Error('The cart response was invalid.');
|
|
2899
|
+
}
|
|
2900
|
+
this.cartItemCount.set(cart.items.reduce((count, item) => count + item.quantity, 0));
|
|
2901
|
+
}
|
|
2902
|
+
catch (error) {
|
|
2903
|
+
console.error('[taon-cart-button] Unable to load cart count', error);
|
|
2904
|
+
this.error.set(error instanceof Error ? error.message : 'Unable to load your cart.');
|
|
2905
|
+
}
|
|
2906
|
+
}
|
|
2907
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: TaonCartButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2908
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.0.9", type: TaonCartButtonComponent, isStandalone: true, selector: "taon-cart-button", inputs: { config: "config" }, providers: [TaonECommerceCustomerApiService], ngImport: i0, template: "<button\n mat-icon-button\n type=\"button\"\n aria-label=\"Open shopping cart\"\n [matBadge]=\"badgeText\"\n [matBadgeHidden]=\"false\"\n (click)=\"openCart()\">\n <mat-icon>shopping_cart</mat-icon>\n</button>\n@if (error()) {\n <span class=\"cart-button-error\" role=\"alert\" [title]=\"error()\">!</span>\n}", styles: [":host{display:block}.cart-button-error{color:#b00020}\n"], dependencies: [{ kind: "ngmodule", type: MatBadgeModule }, { kind: "directive", type: i1$1.MatBadge, selector: "[matBadge]", inputs: ["matBadgeColor", "matBadgeOverlap", "matBadgeDisabled", "matBadgePosition", "matBadge", "matBadgeDescription", "matBadgeSize", "matBadgeHidden"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i1.MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
2909
|
+
}
|
|
2910
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: TaonCartButtonComponent, decorators: [{
|
|
2911
|
+
type: Component,
|
|
2912
|
+
args: [{ selector: 'taon-cart-button', changeDetection: ChangeDetectionStrategy.OnPush, imports: [MatBadgeModule, MatButtonModule, MatIconModule], providers: [TaonECommerceCustomerApiService], template: "<button\n mat-icon-button\n type=\"button\"\n aria-label=\"Open shopping cart\"\n [matBadge]=\"badgeText\"\n [matBadgeHidden]=\"false\"\n (click)=\"openCart()\">\n <mat-icon>shopping_cart</mat-icon>\n</button>\n@if (error()) {\n <span class=\"cart-button-error\" role=\"alert\" [title]=\"error()\">!</span>\n}", styles: [":host{display:block}.cart-button-error{color:#b00020}\n"] }]
|
|
2913
|
+
}], ctorParameters: () => [], propDecorators: { config: [{
|
|
2914
|
+
type: Input
|
|
2915
|
+
}] } });
|
|
2916
|
+
|
|
2917
|
+
var taonCartButton_component = /*#__PURE__*/Object.freeze({
|
|
2918
|
+
__proto__: null,
|
|
2919
|
+
TaonCartButtonComponent: TaonCartButtonComponent
|
|
2920
|
+
});
|
|
2921
|
+
|
|
2922
|
+
//namespace TaonCartButtonModels
|
|
2923
|
+
//end of namespace TaonCartButtonModels
|
|
2924
|
+
|
|
2925
|
+
//#endregion
|
|
2926
|
+
const TaonCartButtonRoutes = [
|
|
2927
|
+
{
|
|
2928
|
+
path: '',
|
|
2929
|
+
loadComponent: () => Promise.resolve().then(function () { return taonCartButton_component; }).then(m => m.TaonCartButtonComponent),
|
|
2930
|
+
children: [
|
|
2931
|
+
// adminLazyRoute({
|
|
2932
|
+
// path: 'dashboard',
|
|
2933
|
+
// menuItem: 'Dashboard',
|
|
2934
|
+
// icon: 'dashboard',
|
|
2935
|
+
// expandable: false,
|
|
2936
|
+
// loader: () =>
|
|
2937
|
+
// import('./anothermodule.routes').then(m => m.DashboardRoutes),
|
|
2938
|
+
// }),
|
|
2939
|
+
],
|
|
2940
|
+
},
|
|
2941
|
+
];
|
|
2942
|
+
/**
|
|
2943
|
+
* By default exporting TaonCartButtonRoutes,
|
|
2944
|
+
* the command `taon generate:app:routes`
|
|
2945
|
+
* will automatically add them to the root routes in ./src/app.ts.
|
|
2946
|
+
*/
|
|
2947
|
+
// export default TaonCartButtonRoutes;
|
|
2948
|
+
|
|
2949
|
+
//#region imports
|
|
2950
|
+
//#endregion
|
|
2951
|
+
class TaonECommerceBackofficeComponent {
|
|
2952
|
+
constructor() {
|
|
2953
|
+
this.componentLoaded = false;
|
|
2954
|
+
}
|
|
2955
|
+
onRouteActivate(component) {
|
|
2956
|
+
this.componentLoaded = !!component;
|
|
2957
|
+
}
|
|
2958
|
+
onRouteDeactivate(component) {
|
|
2959
|
+
this.componentLoaded = false;
|
|
2960
|
+
}
|
|
2961
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: TaonECommerceBackofficeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2962
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.0.9", type: TaonECommerceBackofficeComponent, isStandalone: true, selector: "app-taon-e-commerce-backoffice", ngImport: i0, template: "@if (!componentLoaded) {\n <code>\n In E-commerce section you can manager everything about your e-business.\n </code>\n}\n\n<router-outlet\n (activate)=\"onRouteActivate($event)\"\n (deactivate)=\"onRouteDeactivate($event)\"></router-outlet>\n", styles: [":host{display:block}\n"], dependencies: [{ kind: "directive", type: RouterOutlet, selector: "router-outlet", inputs: ["name", "routerOutletData"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
2963
|
+
}
|
|
2964
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: TaonECommerceBackofficeComponent, decorators: [{
|
|
2965
|
+
type: Component,
|
|
2966
|
+
args: [{ selector: 'app-taon-e-commerce-backoffice', changeDetection: ChangeDetectionStrategy.OnPush, imports: [AsyncPipe, RouterOutlet], template: "@if (!componentLoaded) {\n <code>\n In E-commerce section you can manager everything about your e-business.\n </code>\n}\n\n<router-outlet\n (activate)=\"onRouteActivate($event)\"\n (deactivate)=\"onRouteDeactivate($event)\"></router-outlet>\n", styles: [":host{display:block}\n"] }]
|
|
2967
|
+
}] });
|
|
2968
|
+
|
|
2969
|
+
var taonECommerceBackoffice_component = /*#__PURE__*/Object.freeze({
|
|
2970
|
+
__proto__: null,
|
|
2971
|
+
TaonECommerceBackofficeComponent: TaonECommerceBackofficeComponent
|
|
2972
|
+
});
|
|
2973
|
+
|
|
2974
|
+
//namespace TaonECommerceBackofficeModels
|
|
2975
|
+
//end of namespace TaonECommerceBackofficeModels
|
|
2976
|
+
|
|
2977
|
+
//#endregion
|
|
2978
|
+
const TaonECommerceBackofficeRoutes = [
|
|
2979
|
+
{
|
|
2980
|
+
path: '',
|
|
2981
|
+
loadComponent: () => Promise.resolve().then(function () { return taonECommerceBackoffice_component; }).then(m => m.TaonECommerceBackofficeComponent),
|
|
2982
|
+
children: [
|
|
2983
|
+
adminLazyRoute({
|
|
2984
|
+
path: 'dashboard',
|
|
2985
|
+
menuItem: 'Dashboard',
|
|
2986
|
+
icon: 'dashboard',
|
|
2987
|
+
loader: () => Promise.resolve().then(function () { return taonECommerceBackofficeDashboard_routes; }).then(m => m.TaonECommerceBackofficeDashboardRoutes),
|
|
2988
|
+
}),
|
|
2989
|
+
adminLazyRoute({
|
|
2990
|
+
path: 'products',
|
|
2991
|
+
menuItem: 'Products',
|
|
2992
|
+
icon: 'inventory',
|
|
2993
|
+
expandable: false,
|
|
2994
|
+
loader: () => Promise.resolve().then(function () { return taonECommerceProductsBackoffice_routes; }).then(m => m.TaonECommerceProductsBackofficeRoutes),
|
|
2995
|
+
}),
|
|
2996
|
+
adminLazyRoute({
|
|
2997
|
+
path: 'orders',
|
|
2998
|
+
menuItem: 'Orders',
|
|
2999
|
+
icon: 'receipt_long',
|
|
3000
|
+
expandable: false,
|
|
3001
|
+
loader: () => Promise.resolve().then(function () { return taonECommerceOrdersBackoffice_routes; }).then(m => m.TaonECommerceOrdersBackofficeRoutes),
|
|
3002
|
+
}),
|
|
3003
|
+
adminLazyRoute({
|
|
3004
|
+
path: 'payment-transactions',
|
|
3005
|
+
menuItem: 'Transactions',
|
|
3006
|
+
icon: 'payments',
|
|
3007
|
+
expandable: false,
|
|
3008
|
+
loader: () => Promise.resolve().then(function () { return taonECommercePaymentTransactionsBackoffice_routes; }).then(m => m.TaonECommercePaymentTransactionsBackofficeRoutes),
|
|
3009
|
+
}),
|
|
3010
|
+
adminLazyRoute({
|
|
3011
|
+
path: 'settings',
|
|
3012
|
+
menuItem: 'Settings',
|
|
3013
|
+
icon: 'settings',
|
|
3014
|
+
expandable: false,
|
|
3015
|
+
loader: () => Promise.resolve().then(function () { return taonECommerceBackofficeSettings_routes; }).then(m => m.TaonECommerceBackofficeSettingsRoutes),
|
|
3016
|
+
}),
|
|
3017
|
+
],
|
|
3018
|
+
},
|
|
3019
|
+
];
|
|
3020
|
+
/**
|
|
3021
|
+
* By default exporting TaonECommerceBackofficeRoutes,
|
|
3022
|
+
* the command `taon generate:app:routes`
|
|
3023
|
+
* will automatically add them to the root routes in ./src/app.ts.
|
|
3024
|
+
*/
|
|
3025
|
+
// export default TaonECommerceBackofficeRoutes;
|
|
3026
|
+
|
|
3027
|
+
//#region imports
|
|
3028
|
+
//#endregion
|
|
3029
|
+
class TaonECommerceOrderItemApiService extends TaonBaseAngularService {
|
|
3030
|
+
constructor() {
|
|
3031
|
+
super(...arguments);
|
|
3032
|
+
this.taonECommerceOrderItemController = this.injectController(TaonECommerceOrderItemController);
|
|
3033
|
+
}
|
|
3034
|
+
get allMyEntities$() {
|
|
3035
|
+
return this.taonECommerceOrderItemController.getAll().request().observable.pipe(map(res => res.body?.json));
|
|
3036
|
+
}
|
|
3037
|
+
helloWorld(user) {
|
|
3038
|
+
return this.taonECommerceOrderItemController.helloWord(user).request().observable.pipe(map(res => res.responseText));
|
|
3039
|
+
}
|
|
3040
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: TaonECommerceOrderItemApiService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3041
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: TaonECommerceOrderItemApiService }); }
|
|
3042
|
+
}
|
|
3043
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: TaonECommerceOrderItemApiService, decorators: [{
|
|
3044
|
+
type: Injectable
|
|
3045
|
+
}] });
|
|
3046
|
+
|
|
3047
|
+
//#region imports
|
|
3048
|
+
//#endregion
|
|
3049
|
+
class TaonECommerceOrderApiService extends TaonBaseAngularService {
|
|
3050
|
+
constructor() {
|
|
3051
|
+
super(...arguments);
|
|
3052
|
+
this.taonECommerceOrderController = this.injectController(TaonECommerceOrderController);
|
|
3053
|
+
}
|
|
3054
|
+
get allMyEntities$() {
|
|
3055
|
+
return this.taonECommerceOrderController.getAll().request().observable.pipe(map(res => res.body?.json));
|
|
3056
|
+
}
|
|
3057
|
+
helloWorld(user) {
|
|
3058
|
+
return this.taonECommerceOrderController.helloWord(user).request().observable.pipe(map(res => res.responseText));
|
|
3059
|
+
}
|
|
3060
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: TaonECommerceOrderApiService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3061
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: TaonECommerceOrderApiService }); }
|
|
3062
|
+
}
|
|
3063
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: TaonECommerceOrderApiService, decorators: [{
|
|
3064
|
+
type: Injectable
|
|
3065
|
+
}] });
|
|
3066
|
+
|
|
3067
|
+
class TaonECommerceBackofficeDashboardComponent {
|
|
3068
|
+
constructor() {
|
|
3069
|
+
this.orderApi = inject(TaonECommerceOrderApiService);
|
|
3070
|
+
this.orderItemApi = inject(TaonECommerceOrderItemApiService);
|
|
3071
|
+
this.summary = signal(null, ...(ngDevMode ? [{ debugName: "summary" }] : []));
|
|
3072
|
+
this.loading = signal(true, ...(ngDevMode ? [{ debugName: "loading" }] : []));
|
|
3073
|
+
this.error = signal('', ...(ngDevMode ? [{ debugName: "error" }] : []));
|
|
3074
|
+
void this.load();
|
|
3075
|
+
}
|
|
3076
|
+
async load() {
|
|
3077
|
+
this.loading.set(true);
|
|
3078
|
+
this.error.set('');
|
|
3079
|
+
this.summary.set(null);
|
|
3080
|
+
try {
|
|
3081
|
+
const [ordersResponse, itemsResponse] = await Promise.all([
|
|
3082
|
+
this.orderApi.taonECommerceOrderController.getAll().request(),
|
|
3083
|
+
this.orderItemApi.taonECommerceOrderItemController.getAll().request(),
|
|
3084
|
+
]);
|
|
3085
|
+
if (ordersResponse.statusCode >= 400 || itemsResponse.statusCode >= 400) {
|
|
3086
|
+
throw new Error(ordersResponse.responseText ||
|
|
3087
|
+
itemsResponse.responseText ||
|
|
3088
|
+
'Unable to load e-commerce summary data.');
|
|
3089
|
+
}
|
|
3090
|
+
const orders = ordersResponse.body?.json;
|
|
3091
|
+
const items = itemsResponse.body?.json;
|
|
3092
|
+
if (!Array.isArray(orders) || !Array.isArray(items)) {
|
|
3093
|
+
throw new Error('The e-commerce summary response was invalid.');
|
|
3094
|
+
}
|
|
3095
|
+
const paidOrders = orders.filter(order => order.status === 'paid');
|
|
3096
|
+
const paidOrderIds = new Set(paidOrders.map(order => order.id));
|
|
3097
|
+
const productsSold = items
|
|
3098
|
+
.filter(item => paidOrderIds.has(item.orderId))
|
|
3099
|
+
.reduce((count, item) => count + item.quantity, 0);
|
|
3100
|
+
const earningsByCurrency = new Map();
|
|
3101
|
+
for (const order of paidOrders) {
|
|
3102
|
+
const currency = order.currency.toUpperCase();
|
|
3103
|
+
const total = Number(order.total);
|
|
3104
|
+
if (!Number.isFinite(total)) {
|
|
3105
|
+
throw new Error(`Order ${order.id} has an invalid total.`);
|
|
3106
|
+
}
|
|
3107
|
+
earningsByCurrency.set(currency, (earningsByCurrency.get(currency) ?? 0) + total);
|
|
3108
|
+
}
|
|
3109
|
+
this.summary.set({
|
|
3110
|
+
paidOrders: paidOrders.length,
|
|
3111
|
+
productsSold,
|
|
3112
|
+
earnings: [...earningsByCurrency].map(([currency, total]) => ({
|
|
3113
|
+
currency,
|
|
3114
|
+
total,
|
|
3115
|
+
})),
|
|
3116
|
+
});
|
|
3117
|
+
}
|
|
3118
|
+
catch (error) {
|
|
3119
|
+
console.error('[taon-e-commerce-dashboard] Unable to load summary', error);
|
|
3120
|
+
this.error.set(error instanceof Error
|
|
3121
|
+
? error.message
|
|
3122
|
+
: 'Unable to load e-commerce summary data.');
|
|
3123
|
+
}
|
|
3124
|
+
finally {
|
|
3125
|
+
this.loading.set(false);
|
|
3126
|
+
}
|
|
3127
|
+
}
|
|
3128
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: TaonECommerceBackofficeDashboardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3129
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.0.9", type: TaonECommerceBackofficeDashboardComponent, isStandalone: true, selector: "app-taon-e-commerce-backoffice-dashboard", providers: [TaonECommerceOrderApiService, TaonECommerceOrderItemApiService], ngImport: i0, template: "<h1>E-commerce Dashboard</h1>\n\n@if (loading()) {\n <p role=\"status\">Loading e-commerce summary...</p>\n} @else if (summary(); as stats) {\n <section\n class=\"summary-cards\"\n aria-label=\"E-commerce summary\">\n <article>\n <h2>Paid orders</h2>\n <p>{{ stats.paidOrders }}</p>\n </article>\n <article>\n <h2>Products sold</h2>\n <p>{{ stats.productsSold }}</p>\n </article>\n <article>\n <h2>Total earnings</h2>\n @for (earning of stats.earnings; track earning.currency) {\n <p>{{ earning.total.toFixed(2) }} {{ earning.currency }}</p>\n } @empty {\n <p>0.00</p>\n }\n </article>\n </section>\n}\n\n@if (error()) {\n <p\n class=\"error\"\n role=\"alert\">\n {{ error() }}\n </p>\n <button\n type=\"button\"\n (click)=\"load()\">\n Try again\n </button>\n}\n", styles: [":host{display:block}.summary-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(12rem,1fr));gap:1rem}.summary-cards article{padding:1.25rem;border:1px solid #ddd;border-radius:.5rem}.summary-cards h2{margin-top:0;font-size:1rem}.summary-cards p{margin-bottom:0;font-size:1.5rem}.error{color:#b3261e}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
3130
|
+
}
|
|
3131
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: TaonECommerceBackofficeDashboardComponent, decorators: [{
|
|
3132
|
+
type: Component,
|
|
3133
|
+
args: [{ selector: 'app-taon-e-commerce-backoffice-dashboard', changeDetection: ChangeDetectionStrategy.OnPush, imports: [], providers: [TaonECommerceOrderApiService, TaonECommerceOrderItemApiService], template: "<h1>E-commerce Dashboard</h1>\n\n@if (loading()) {\n <p role=\"status\">Loading e-commerce summary...</p>\n} @else if (summary(); as stats) {\n <section\n class=\"summary-cards\"\n aria-label=\"E-commerce summary\">\n <article>\n <h2>Paid orders</h2>\n <p>{{ stats.paidOrders }}</p>\n </article>\n <article>\n <h2>Products sold</h2>\n <p>{{ stats.productsSold }}</p>\n </article>\n <article>\n <h2>Total earnings</h2>\n @for (earning of stats.earnings; track earning.currency) {\n <p>{{ earning.total.toFixed(2) }} {{ earning.currency }}</p>\n } @empty {\n <p>0.00</p>\n }\n </article>\n </section>\n}\n\n@if (error()) {\n <p\n class=\"error\"\n role=\"alert\">\n {{ error() }}\n </p>\n <button\n type=\"button\"\n (click)=\"load()\">\n Try again\n </button>\n}\n", styles: [":host{display:block}.summary-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(12rem,1fr));gap:1rem}.summary-cards article{padding:1.25rem;border:1px solid #ddd;border-radius:.5rem}.summary-cards h2{margin-top:0;font-size:1rem}.summary-cards p{margin-bottom:0;font-size:1.5rem}.error{color:#b3261e}\n"] }]
|
|
3134
|
+
}], ctorParameters: () => [] });
|
|
3135
|
+
|
|
3136
|
+
var taonECommerceBackofficeDashboard_component = /*#__PURE__*/Object.freeze({
|
|
3137
|
+
__proto__: null,
|
|
3138
|
+
TaonECommerceBackofficeDashboardComponent: TaonECommerceBackofficeDashboardComponent
|
|
3139
|
+
});
|
|
3140
|
+
|
|
3141
|
+
//namespace TaonECommerceBackofficeDashboardModels
|
|
3142
|
+
//end of namespace TaonECommerceBackofficeDashboardModels
|
|
3143
|
+
|
|
3144
|
+
//#endregion
|
|
3145
|
+
const TaonECommerceBackofficeDashboardRoutes = [
|
|
3146
|
+
{
|
|
3147
|
+
path: '',
|
|
3148
|
+
loadComponent: () => Promise.resolve().then(function () { return taonECommerceBackofficeDashboard_component; }).then(m => m.TaonECommerceBackofficeDashboardComponent),
|
|
3149
|
+
children: [
|
|
3150
|
+
// adminLazyRoute({
|
|
3151
|
+
// path: 'dashboard',
|
|
3152
|
+
// menuItem: 'Dashboard',
|
|
3153
|
+
// icon: 'dashboard',
|
|
3154
|
+
// expandable: false,
|
|
3155
|
+
// loader: () =>
|
|
3156
|
+
// import('./anothermodule.routes').then(m => m.DashboardRoutes),
|
|
3157
|
+
// }),
|
|
3158
|
+
],
|
|
3159
|
+
},
|
|
3160
|
+
];
|
|
3161
|
+
/**
|
|
3162
|
+
* By default exporting TaonECommerceBackofficeDashboardRoutes,
|
|
3163
|
+
* the command `taon generate:app:routes`
|
|
3164
|
+
* will automatically add them to the root routes in ./src/app.ts.
|
|
3165
|
+
*/
|
|
3166
|
+
// export default TaonECommerceBackofficeDashboardRoutes;
|
|
3167
|
+
|
|
3168
|
+
var taonECommerceBackofficeDashboard_routes = /*#__PURE__*/Object.freeze({
|
|
3169
|
+
__proto__: null,
|
|
3170
|
+
TaonECommerceBackofficeDashboardRoutes: TaonECommerceBackofficeDashboardRoutes
|
|
3171
|
+
});
|
|
3172
|
+
|
|
3173
|
+
class TaonECommerceBackofficeSettingsApiService extends TaonBaseAngularService {
|
|
3174
|
+
constructor() {
|
|
3175
|
+
super(...arguments);
|
|
3176
|
+
this.controller = this.injectController(TaonECommerceBackofficeSettingsController);
|
|
3177
|
+
}
|
|
3178
|
+
async getSellingEnabled() {
|
|
3179
|
+
const response = await this.controller.getSellingEnabled().request();
|
|
3180
|
+
const enabled = response.body?.json;
|
|
3181
|
+
if (response.statusCode >= 400 || typeof enabled !== 'boolean') {
|
|
3182
|
+
throw new Error(response.responseText || 'Unable to load the selling setting.');
|
|
3183
|
+
}
|
|
3184
|
+
return enabled;
|
|
3185
|
+
}
|
|
3186
|
+
async setSellingEnabled(enabled) {
|
|
3187
|
+
const response = await this.controller.setSellingEnabled(enabled).request();
|
|
3188
|
+
const saved = response.body?.json;
|
|
3189
|
+
if (response.statusCode >= 400 || typeof saved !== 'boolean') {
|
|
3190
|
+
throw new Error(response.responseText || 'Unable to update the selling setting.');
|
|
3191
|
+
}
|
|
3192
|
+
return saved;
|
|
3193
|
+
}
|
|
3194
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: TaonECommerceBackofficeSettingsApiService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3195
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: TaonECommerceBackofficeSettingsApiService }); }
|
|
3196
|
+
}
|
|
3197
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: TaonECommerceBackofficeSettingsApiService, decorators: [{
|
|
3198
|
+
type: Injectable
|
|
3199
|
+
}] });
|
|
3200
|
+
|
|
3201
|
+
class TaonECommerceBackofficeSettingsComponent {
|
|
3202
|
+
constructor() {
|
|
3203
|
+
this.api = inject(TaonECommerceBackofficeSettingsApiService);
|
|
3204
|
+
this.sellingEnabled = signal(null, ...(ngDevMode ? [{ debugName: "sellingEnabled" }] : []));
|
|
3205
|
+
this.loading = signal(true, ...(ngDevMode ? [{ debugName: "loading" }] : []));
|
|
3206
|
+
this.saving = signal(false, ...(ngDevMode ? [{ debugName: "saving" }] : []));
|
|
3207
|
+
this.error = signal('', ...(ngDevMode ? [{ debugName: "error" }] : []));
|
|
3208
|
+
void this.load();
|
|
3209
|
+
}
|
|
3210
|
+
async load() {
|
|
3211
|
+
this.loading.set(true);
|
|
3212
|
+
this.error.set('');
|
|
3213
|
+
try {
|
|
3214
|
+
this.sellingEnabled.set(await this.api.getSellingEnabled());
|
|
3215
|
+
}
|
|
3216
|
+
catch (error) {
|
|
3217
|
+
console.error('[taon-e-commerce-settings] Unable to load the selling setting', error);
|
|
3218
|
+
this.error.set(error instanceof Error
|
|
3219
|
+
? error.message
|
|
3220
|
+
: 'Unable to load the selling setting.');
|
|
3221
|
+
}
|
|
3222
|
+
finally {
|
|
3223
|
+
this.loading.set(false);
|
|
3224
|
+
}
|
|
3225
|
+
}
|
|
3226
|
+
async toggleSelling() {
|
|
3227
|
+
const current = this.sellingEnabled();
|
|
3228
|
+
if (current === null || this.saving()) {
|
|
3229
|
+
return;
|
|
3230
|
+
}
|
|
3231
|
+
this.saving.set(true);
|
|
3232
|
+
this.error.set('');
|
|
3233
|
+
try {
|
|
3234
|
+
this.sellingEnabled.set(await this.api.setSellingEnabled(!current));
|
|
3235
|
+
}
|
|
3236
|
+
catch (error) {
|
|
3237
|
+
console.error('[taon-e-commerce-settings] Unable to update the selling setting', error);
|
|
3238
|
+
this.error.set(error instanceof Error
|
|
3239
|
+
? error.message
|
|
3240
|
+
: 'Unable to update the selling setting.');
|
|
3241
|
+
}
|
|
3242
|
+
finally {
|
|
3243
|
+
this.saving.set(false);
|
|
3244
|
+
}
|
|
3245
|
+
}
|
|
3246
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: TaonECommerceBackofficeSettingsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3247
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.0.9", type: TaonECommerceBackofficeSettingsComponent, isStandalone: true, selector: "app-taon-e-commerce-backoffice-settings", providers: [TaonECommerceBackofficeSettingsApiService], ngImport: i0, template: "<h1>E-commerce Settings</h1>\n\n<section\n class=\"setting\"\n aria-labelledby=\"selling-setting\">\n <div>\n <h2 id=\"selling-setting\">Selling enabled</h2>\n @if (sellingEnabled() === false) {\n <p>Checkout and purchasing are paused.</p>\n } @else if (sellingEnabled() === true) {\n <p>Customers can purchase products.</p>\n }\n </div>\n\n @if (loading()) {\n <p role=\"status\">Loading setting...</p>\n } @else if (sellingEnabled() !== null) {\n <button\n mat-flat-button\n type=\"button\"\n [disabled]=\"saving()\"\n (click)=\"toggleSelling()\">\n @if (saving()) {\n Saving...\n } @else if (sellingEnabled()) {\n Disable selling\n } @else {\n Enable selling\n }\n </button>\n }\n</section>\n\n@if (error()) {\n <p\n class=\"error\"\n role=\"alert\">\n {{ error() }}\n </p>\n}\n", styles: [":host{display:block}.setting{display:flex;align-items:center;justify-content:space-between;gap:1rem;max-width:48rem;padding:1.25rem;border:1px solid #ddd;border-radius:.5rem}.setting h2,.setting p{margin:.25rem 0}.error{color:#b3261e}@media(max-width:600px){.setting{align-items:flex-start;flex-direction:column}}\n"], dependencies: [{ kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i1.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
3248
|
+
}
|
|
3249
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: TaonECommerceBackofficeSettingsComponent, decorators: [{
|
|
3250
|
+
type: Component,
|
|
3251
|
+
args: [{ selector: 'app-taon-e-commerce-backoffice-settings', changeDetection: ChangeDetectionStrategy.OnPush, imports: [MatButtonModule], providers: [TaonECommerceBackofficeSettingsApiService], template: "<h1>E-commerce Settings</h1>\n\n<section\n class=\"setting\"\n aria-labelledby=\"selling-setting\">\n <div>\n <h2 id=\"selling-setting\">Selling enabled</h2>\n @if (sellingEnabled() === false) {\n <p>Checkout and purchasing are paused.</p>\n } @else if (sellingEnabled() === true) {\n <p>Customers can purchase products.</p>\n }\n </div>\n\n @if (loading()) {\n <p role=\"status\">Loading setting...</p>\n } @else if (sellingEnabled() !== null) {\n <button\n mat-flat-button\n type=\"button\"\n [disabled]=\"saving()\"\n (click)=\"toggleSelling()\">\n @if (saving()) {\n Saving...\n } @else if (sellingEnabled()) {\n Disable selling\n } @else {\n Enable selling\n }\n </button>\n }\n</section>\n\n@if (error()) {\n <p\n class=\"error\"\n role=\"alert\">\n {{ error() }}\n </p>\n}\n", styles: [":host{display:block}.setting{display:flex;align-items:center;justify-content:space-between;gap:1rem;max-width:48rem;padding:1.25rem;border:1px solid #ddd;border-radius:.5rem}.setting h2,.setting p{margin:.25rem 0}.error{color:#b3261e}@media(max-width:600px){.setting{align-items:flex-start;flex-direction:column}}\n"] }]
|
|
3252
|
+
}], ctorParameters: () => [] });
|
|
3253
|
+
|
|
3254
|
+
var taonECommerceBackofficeSettings_component = /*#__PURE__*/Object.freeze({
|
|
3255
|
+
__proto__: null,
|
|
3256
|
+
TaonECommerceBackofficeSettingsComponent: TaonECommerceBackofficeSettingsComponent
|
|
3257
|
+
});
|
|
3258
|
+
|
|
3259
|
+
//namespace TaonECommerceBackofficeSettingsModels
|
|
3260
|
+
//end of namespace TaonECommerceBackofficeSettingsModels
|
|
3261
|
+
|
|
3262
|
+
//#endregion
|
|
3263
|
+
const TaonECommerceBackofficeSettingsRoutes = [
|
|
3264
|
+
{
|
|
3265
|
+
path: '',
|
|
3266
|
+
loadComponent: () => Promise.resolve().then(function () { return taonECommerceBackofficeSettings_component; }).then(m => m.TaonECommerceBackofficeSettingsComponent),
|
|
3267
|
+
children: [
|
|
3268
|
+
// adminLazyRoute({
|
|
3269
|
+
// path: 'dashboard',
|
|
3270
|
+
// menuItem: 'Dashboard',
|
|
3271
|
+
// icon: 'dashboard',
|
|
3272
|
+
// expandable: false,
|
|
3273
|
+
// loader: () =>
|
|
3274
|
+
// import('./anothermodule.routes').then(m => m.DashboardRoutes),
|
|
3275
|
+
// }),
|
|
3276
|
+
],
|
|
3277
|
+
},
|
|
3278
|
+
];
|
|
3279
|
+
/**
|
|
3280
|
+
* By default exporting TaonECommerceBackofficeSettingsRoutes,
|
|
3281
|
+
* the command `taon generate:app:routes`
|
|
3282
|
+
* will automatically add them to the root routes in ./src/app.ts.
|
|
3283
|
+
*/
|
|
3284
|
+
// export default TaonECommerceBackofficeSettingsRoutes;
|
|
3285
|
+
|
|
3286
|
+
var taonECommerceBackofficeSettings_routes = /*#__PURE__*/Object.freeze({
|
|
3287
|
+
__proto__: null,
|
|
3288
|
+
TaonECommerceBackofficeSettingsRoutes: TaonECommerceBackofficeSettingsRoutes
|
|
3289
|
+
});
|
|
3290
|
+
|
|
3291
|
+
//#region imports
|
|
3292
|
+
//#endregion
|
|
3293
|
+
class TaonECommerceCartApiService extends TaonBaseAngularService {
|
|
3294
|
+
constructor() {
|
|
3295
|
+
super(...arguments);
|
|
3296
|
+
this.taonECommerceCartController = this.injectController(TaonECommerceCartController);
|
|
3297
|
+
}
|
|
3298
|
+
get allMyEntities$() {
|
|
3299
|
+
return this.taonECommerceCartController.getAll().request().observable.pipe(map(res => res.body?.json));
|
|
3300
|
+
}
|
|
3301
|
+
helloWorld(user) {
|
|
3302
|
+
return this.taonECommerceCartController.helloWord(user).request().observable.pipe(map(res => res.responseText));
|
|
3303
|
+
}
|
|
3304
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: TaonECommerceCartApiService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3305
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: TaonECommerceCartApiService }); }
|
|
3306
|
+
}
|
|
3307
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: TaonECommerceCartApiService, decorators: [{
|
|
3308
|
+
type: Injectable
|
|
3309
|
+
}] });
|
|
3310
|
+
|
|
3311
|
+
//#region imports
|
|
3312
|
+
//#endregion
|
|
3313
|
+
class TaonECommerceCartConfigService extends TaonBaseAngularService {
|
|
3314
|
+
constructor() {
|
|
3315
|
+
super(...arguments);
|
|
3316
|
+
this.taonECommerceCartProvider = this.injectProvider(TaonECommerceCartProvider);
|
|
3317
|
+
}
|
|
3318
|
+
get isEnableOption() {
|
|
3319
|
+
return this.taonECommerceCartProvider.enabledTaonECommerceCartOption;
|
|
3320
|
+
}
|
|
3321
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: TaonECommerceCartConfigService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3322
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: TaonECommerceCartConfigService }); }
|
|
3323
|
+
}
|
|
3324
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: TaonECommerceCartConfigService, decorators: [{
|
|
3325
|
+
type: Injectable
|
|
3326
|
+
}] });
|
|
3327
|
+
|
|
3328
|
+
const t$7 = Translation.for('src/lib/taon-e-commerce-cart/taon-e-commerce-cart.constants.ts', { "src/lib/taon-e-commerce-cart/taon-e-commerce-cart.constants.ts": { "en-US": async () => (await import('./e-commerce-websql-prod-taon-e-commerce-cart.constants.ts.en-US.i18n.data-snFp9dC8.mjs')).default, "pl-PL": async () => (await import('./e-commerce-websql-prod-taon-e-commerce-cart.constants.ts.pl-PL.i18n.data-CQ0D39Jb.mjs')).default } });
|
|
3329
|
+
const TaonECommerceCartDefaultsValues = {
|
|
3330
|
+
description: '',
|
|
3331
|
+
version: 0,
|
|
3332
|
+
id: void 0,
|
|
3333
|
+
};
|
|
3334
|
+
var TaonECommerceCartErrors;
|
|
3335
|
+
(function (TaonECommerceCartErrors) {
|
|
3336
|
+
TaonECommerceCartErrors["INVALID_PASSWORD_EXAMPLE_ERROR"] = "INVALID_PASSWORD_EXAMPLE_ERROR";
|
|
3337
|
+
})(TaonECommerceCartErrors || (TaonECommerceCartErrors = {}));
|
|
3338
|
+
const TaonECommerceCartTranslationErorsMap = new Map([
|
|
3339
|
+
[TaonECommerceCartErrors.INVALID_PASSWORD_EXAMPLE_ERROR, t$7.gettext('Invalid Password')],
|
|
3340
|
+
]);
|
|
3341
|
+
|
|
3342
|
+
//#endregion
|
|
3343
|
+
let TaonECommerceCartKvRepository = class TaonECommerceCartKvRepository extends TaonBaseKvRepository {
|
|
3344
|
+
async notifyUsers(users) {
|
|
3345
|
+
this.set('usersToNotify', users);
|
|
3346
|
+
}
|
|
3347
|
+
};
|
|
3348
|
+
TaonECommerceCartKvRepository = __decorate([
|
|
3349
|
+
TaonRepository({
|
|
3350
|
+
className: 'TaonECommerceCartKvRepository',
|
|
3351
|
+
})
|
|
3352
|
+
], TaonECommerceCartKvRepository);
|
|
3353
|
+
|
|
3354
|
+
//#endregion
|
|
3355
|
+
let TaonECommerceCartMiddleware = class TaonECommerceCartMiddleware extends TaonBaseMiddleware {
|
|
3356
|
+
};
|
|
3357
|
+
TaonECommerceCartMiddleware = __decorate([
|
|
3358
|
+
TaonMiddleware({
|
|
3359
|
+
className: 'TaonECommerceCartMiddleware',
|
|
3360
|
+
})
|
|
3361
|
+
], TaonECommerceCartMiddleware);
|
|
3362
|
+
|
|
3363
|
+
//namespace TaonECommerceCartModels
|
|
3364
|
+
var TaonECommerceCartModels__NS__TaonECommerceCartState;
|
|
3365
|
+
(function (TaonECommerceCartModels__NS__TaonECommerceCartState) {
|
|
3366
|
+
TaonECommerceCartModels__NS__TaonECommerceCartState["Active"] = "active";
|
|
3367
|
+
TaonECommerceCartModels__NS__TaonECommerceCartState["Inactive"] = "inactive";
|
|
3368
|
+
})(TaonECommerceCartModels__NS__TaonECommerceCartState || (TaonECommerceCartModels__NS__TaonECommerceCartState = {}));
|
|
3369
|
+
//end of namespace TaonECommerceCartModels
|
|
3370
|
+
|
|
3371
|
+
//#endregion
|
|
3372
|
+
let TaonECommerceCartSubscriber = class TaonECommerceCartSubscriber extends TaonBaseSubscriberForEntity {
|
|
3373
|
+
constructor() {
|
|
3374
|
+
super(...arguments);
|
|
3375
|
+
this.taonECommerceCartProvider = this.injectProvider(TaonECommerceCartProvider);
|
|
3376
|
+
}
|
|
3377
|
+
listenTo() {
|
|
1632
3378
|
return TaonECommerceCartEntity;
|
|
1633
3379
|
}
|
|
1634
3380
|
};
|
|
1635
|
-
TaonECommerceCartSubscriber = __decorate([
|
|
3381
|
+
TaonECommerceCartSubscriber = __decorate([
|
|
3382
|
+
TaonSubscriber({
|
|
3383
|
+
className: 'TaonECommerceCartSubscriber',
|
|
3384
|
+
// allowedEvents: ['afterUpdate'],
|
|
3385
|
+
})
|
|
3386
|
+
], TaonECommerceCartSubscriber);
|
|
3387
|
+
|
|
3388
|
+
//namespace TaonECommerceCartUtils
|
|
3389
|
+
function TaonECommerceCartUtils__NS__isActive(state) {
|
|
3390
|
+
return state === 'active';
|
|
3391
|
+
}
|
|
3392
|
+
//end of namespace TaonECommerceCartUtils
|
|
3393
|
+
|
|
3394
|
+
//namespace TaonECommerceCartValidators
|
|
3395
|
+
//#region @browser
|
|
3396
|
+
/**
|
|
3397
|
+
* TODO REMOVE THIS EXAMPLE.
|
|
3398
|
+
*/
|
|
3399
|
+
const TaonECommerceCartValidators__NS__passwordMatchValidator = (control) => {
|
|
3400
|
+
const password = control.get('password');
|
|
3401
|
+
const passwordRepeat = control.get('passwordRepeat');
|
|
3402
|
+
if (!password || !passwordRepeat) {
|
|
3403
|
+
return null;
|
|
3404
|
+
}
|
|
3405
|
+
return password.value === passwordRepeat.value
|
|
3406
|
+
? null
|
|
3407
|
+
: { [TaonECommerceCartErrors.INVALID_PASSWORD_EXAMPLE_ERROR]: true };
|
|
3408
|
+
};
|
|
3409
|
+
//#endregion
|
|
3410
|
+
//end of namespace TaonECommerceCartValidators
|
|
3411
|
+
|
|
3412
|
+
//#region imports
|
|
3413
|
+
//#endregion
|
|
3414
|
+
class TaonECommerceCartItemApiService extends TaonBaseAngularService {
|
|
3415
|
+
constructor() {
|
|
3416
|
+
super(...arguments);
|
|
3417
|
+
this.taonECommerceCartItemController = this.injectController(TaonECommerceCartItemController);
|
|
3418
|
+
}
|
|
3419
|
+
get allMyEntities$() {
|
|
3420
|
+
return this.taonECommerceCartItemController.getAll().request().observable.pipe(map(res => res.body?.json));
|
|
3421
|
+
}
|
|
3422
|
+
helloWorld(user) {
|
|
3423
|
+
return this.taonECommerceCartItemController.helloWord(user).request().observable.pipe(map(res => res.responseText));
|
|
3424
|
+
}
|
|
3425
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: TaonECommerceCartItemApiService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3426
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: TaonECommerceCartItemApiService }); }
|
|
3427
|
+
}
|
|
3428
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: TaonECommerceCartItemApiService, decorators: [{
|
|
3429
|
+
type: Injectable
|
|
3430
|
+
}] });
|
|
3431
|
+
|
|
3432
|
+
//#region imports
|
|
3433
|
+
//#endregion
|
|
3434
|
+
class TaonECommerceCartItemConfigService extends TaonBaseAngularService {
|
|
3435
|
+
constructor() {
|
|
3436
|
+
super(...arguments);
|
|
3437
|
+
this.taonECommerceCartItemProvider = this.injectProvider(TaonECommerceCartItemProvider);
|
|
3438
|
+
}
|
|
3439
|
+
get isEnableOption() {
|
|
3440
|
+
return this.taonECommerceCartItemProvider.enabledTaonECommerceCartItemOption;
|
|
3441
|
+
}
|
|
3442
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: TaonECommerceCartItemConfigService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3443
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: TaonECommerceCartItemConfigService }); }
|
|
3444
|
+
}
|
|
3445
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: TaonECommerceCartItemConfigService, decorators: [{
|
|
3446
|
+
type: Injectable
|
|
3447
|
+
}] });
|
|
3448
|
+
|
|
3449
|
+
const t$6 = Translation.for('src/lib/taon-e-commerce-cart-item/taon-e-commerce-cart-item.constants.ts', { "src/lib/taon-e-commerce-cart-item/taon-e-commerce-cart-item.constants.ts": { "en-US": async () => (await import('./e-commerce-websql-prod-taon-e-commerce-cart-item.constants.ts.en-US.i18n.data-CQcNgSV4.mjs')).default, "pl-PL": async () => (await import('./e-commerce-websql-prod-taon-e-commerce-cart-item.constants.ts.pl-PL.i18n.data-BKHxcR5F.mjs')).default } });
|
|
3450
|
+
const TaonECommerceCartItemDefaultsValues = {
|
|
3451
|
+
description: '',
|
|
3452
|
+
version: 0,
|
|
3453
|
+
id: void 0,
|
|
3454
|
+
};
|
|
3455
|
+
var TaonECommerceCartItemErrors;
|
|
3456
|
+
(function (TaonECommerceCartItemErrors) {
|
|
3457
|
+
TaonECommerceCartItemErrors["INVALID_PASSWORD_EXAMPLE_ERROR"] = "INVALID_PASSWORD_EXAMPLE_ERROR";
|
|
3458
|
+
})(TaonECommerceCartItemErrors || (TaonECommerceCartItemErrors = {}));
|
|
3459
|
+
const TaonECommerceCartItemTranslationErorsMap = new Map([
|
|
3460
|
+
[TaonECommerceCartItemErrors.INVALID_PASSWORD_EXAMPLE_ERROR, t$6.gettext('Invalid Password')],
|
|
3461
|
+
]);
|
|
3462
|
+
|
|
3463
|
+
//#endregion
|
|
3464
|
+
let TaonECommerceCartItemKvRepository = class TaonECommerceCartItemKvRepository extends TaonBaseKvRepository {
|
|
3465
|
+
async notifyUsers(users) {
|
|
3466
|
+
this.set('usersToNotify', users);
|
|
3467
|
+
}
|
|
3468
|
+
};
|
|
3469
|
+
TaonECommerceCartItemKvRepository = __decorate([
|
|
3470
|
+
TaonRepository({
|
|
3471
|
+
className: 'TaonECommerceCartItemKvRepository',
|
|
3472
|
+
})
|
|
3473
|
+
], TaonECommerceCartItemKvRepository);
|
|
3474
|
+
|
|
3475
|
+
//#endregion
|
|
3476
|
+
let TaonECommerceCartItemMiddleware = class TaonECommerceCartItemMiddleware extends TaonBaseMiddleware {
|
|
3477
|
+
};
|
|
3478
|
+
TaonECommerceCartItemMiddleware = __decorate([
|
|
3479
|
+
TaonMiddleware({
|
|
3480
|
+
className: 'TaonECommerceCartItemMiddleware',
|
|
3481
|
+
})
|
|
3482
|
+
], TaonECommerceCartItemMiddleware);
|
|
3483
|
+
|
|
3484
|
+
//namespace TaonECommerceCartItemModels
|
|
3485
|
+
var TaonECommerceCartItemModels__NS__TaonECommerceCartItemState;
|
|
3486
|
+
(function (TaonECommerceCartItemModels__NS__TaonECommerceCartItemState) {
|
|
3487
|
+
TaonECommerceCartItemModels__NS__TaonECommerceCartItemState["Active"] = "active";
|
|
3488
|
+
TaonECommerceCartItemModels__NS__TaonECommerceCartItemState["Inactive"] = "inactive";
|
|
3489
|
+
})(TaonECommerceCartItemModels__NS__TaonECommerceCartItemState || (TaonECommerceCartItemModels__NS__TaonECommerceCartItemState = {}));
|
|
3490
|
+
//end of namespace TaonECommerceCartItemModels
|
|
3491
|
+
|
|
3492
|
+
//#endregion
|
|
3493
|
+
let TaonECommerceCartItemSubscriber = class TaonECommerceCartItemSubscriber extends TaonBaseSubscriberForEntity {
|
|
3494
|
+
constructor() {
|
|
3495
|
+
super(...arguments);
|
|
3496
|
+
this.taonECommerceCartItemProvider = this.injectProvider(TaonECommerceCartItemProvider);
|
|
3497
|
+
}
|
|
3498
|
+
listenTo() {
|
|
3499
|
+
return TaonECommerceCartItemEntity;
|
|
3500
|
+
}
|
|
3501
|
+
};
|
|
3502
|
+
TaonECommerceCartItemSubscriber = __decorate([
|
|
3503
|
+
TaonSubscriber({
|
|
3504
|
+
className: 'TaonECommerceCartItemSubscriber',
|
|
3505
|
+
// allowedEvents: ['afterUpdate'],
|
|
3506
|
+
})
|
|
3507
|
+
], TaonECommerceCartItemSubscriber);
|
|
3508
|
+
|
|
3509
|
+
//namespace TaonECommerceCartItemUtils
|
|
3510
|
+
function TaonECommerceCartItemUtils__NS__isActive(state) {
|
|
3511
|
+
return state === 'active';
|
|
3512
|
+
}
|
|
3513
|
+
//end of namespace TaonECommerceCartItemUtils
|
|
3514
|
+
|
|
3515
|
+
//namespace TaonECommerceCartItemValidators
|
|
3516
|
+
//#region @browser
|
|
3517
|
+
/**
|
|
3518
|
+
* TODO REMOVE THIS EXAMPLE.
|
|
3519
|
+
*/
|
|
3520
|
+
const TaonECommerceCartItemValidators__NS__passwordMatchValidator = (control) => {
|
|
3521
|
+
const password = control.get('password');
|
|
3522
|
+
const passwordRepeat = control.get('passwordRepeat');
|
|
3523
|
+
if (!password || !passwordRepeat) {
|
|
3524
|
+
return null;
|
|
3525
|
+
}
|
|
3526
|
+
return password.value === passwordRepeat.value
|
|
3527
|
+
? null
|
|
3528
|
+
: { [TaonECommerceCartItemErrors.INVALID_PASSWORD_EXAMPLE_ERROR]: true };
|
|
3529
|
+
};
|
|
3530
|
+
//#endregion
|
|
3531
|
+
//end of namespace TaonECommerceCartItemValidators
|
|
3532
|
+
|
|
3533
|
+
//#region imports
|
|
3534
|
+
//#endregion
|
|
3535
|
+
class TaonECommerceCustomerAddressApiService extends TaonBaseAngularService {
|
|
3536
|
+
constructor() {
|
|
3537
|
+
super(...arguments);
|
|
3538
|
+
this.taonECommerceCustomerAddressController = this.injectController(TaonECommerceCustomerAddressController);
|
|
3539
|
+
}
|
|
3540
|
+
get allMyEntities$() {
|
|
3541
|
+
return this.taonECommerceCustomerAddressController.getAll().request().observable.pipe(map(res => res.body?.json));
|
|
3542
|
+
}
|
|
3543
|
+
helloWorld(user) {
|
|
3544
|
+
return this.taonECommerceCustomerAddressController.helloWord(user).request().observable.pipe(map(res => res.responseText));
|
|
3545
|
+
}
|
|
3546
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: TaonECommerceCustomerAddressApiService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3547
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: TaonECommerceCustomerAddressApiService }); }
|
|
3548
|
+
}
|
|
3549
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: TaonECommerceCustomerAddressApiService, decorators: [{
|
|
3550
|
+
type: Injectable
|
|
3551
|
+
}] });
|
|
3552
|
+
|
|
3553
|
+
//#region imports
|
|
3554
|
+
//#endregion
|
|
3555
|
+
class TaonECommerceCustomerAddressConfigService extends TaonBaseAngularService {
|
|
3556
|
+
constructor() {
|
|
3557
|
+
super(...arguments);
|
|
3558
|
+
this.taonECommerceCustomerAddressProvider = this.injectProvider(TaonECommerceCustomerAddressProvider);
|
|
3559
|
+
}
|
|
3560
|
+
get isEnableOption() {
|
|
3561
|
+
return this.taonECommerceCustomerAddressProvider.enabledTaonECommerceCustomerAddressOption;
|
|
3562
|
+
}
|
|
3563
|
+
clone() {
|
|
3564
|
+
const cloned = this.taonECommerceCustomerAddressProvider.clone();
|
|
3565
|
+
return cloned;
|
|
3566
|
+
}
|
|
3567
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: TaonECommerceCustomerAddressConfigService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3568
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: TaonECommerceCustomerAddressConfigService }); }
|
|
3569
|
+
}
|
|
3570
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: TaonECommerceCustomerAddressConfigService, decorators: [{
|
|
3571
|
+
type: Injectable
|
|
3572
|
+
}] });
|
|
3573
|
+
|
|
3574
|
+
const t$5 = Translation.for('src/lib/taon-e-commerce-customer-address/taon-e-commerce-customer-address.constants.ts', { "src/lib/taon-e-commerce-customer-address/taon-e-commerce-customer-address.constants.ts": { "en-US": async () => (await import('./e-commerce-websql-prod-taon-e-commerce-customer-address.constants.ts.en-US.i18n.data-DC_CevEg.mjs')).default, "pl-PL": async () => (await import('./e-commerce-websql-prod-taon-e-commerce-customer-address.constants.ts.pl-PL.i18n.data-CcXrYrto.mjs')).default } });
|
|
3575
|
+
const TaonECommerceCustomerAddressDefaultsValues = {
|
|
3576
|
+
description: '',
|
|
3577
|
+
version: 0,
|
|
3578
|
+
id: void 0,
|
|
3579
|
+
};
|
|
3580
|
+
var TaonECommerceCustomerAddressErrors;
|
|
3581
|
+
(function (TaonECommerceCustomerAddressErrors) {
|
|
3582
|
+
TaonECommerceCustomerAddressErrors["INVALID_PASSWORD_EXAMPLE_ERROR"] = "INVALID_PASSWORD_EXAMPLE_ERROR";
|
|
3583
|
+
})(TaonECommerceCustomerAddressErrors || (TaonECommerceCustomerAddressErrors = {}));
|
|
3584
|
+
const TaonECommerceCustomerAddressTranslationErorsMap = new Map([
|
|
3585
|
+
[TaonECommerceCustomerAddressErrors.INVALID_PASSWORD_EXAMPLE_ERROR, t$5.gettext('Invalid Password')],
|
|
3586
|
+
]);
|
|
3587
|
+
|
|
3588
|
+
//#endregion
|
|
3589
|
+
let TaonECommerceCustomerAddressKvRepository = class TaonECommerceCustomerAddressKvRepository extends TaonBaseKvRepository {
|
|
3590
|
+
async notifyUsers(users) {
|
|
3591
|
+
this.set('usersToNotify', users);
|
|
3592
|
+
}
|
|
3593
|
+
};
|
|
3594
|
+
TaonECommerceCustomerAddressKvRepository = __decorate([
|
|
3595
|
+
TaonRepository({
|
|
3596
|
+
className: 'TaonECommerceCustomerAddressKvRepository',
|
|
3597
|
+
})
|
|
3598
|
+
], TaonECommerceCustomerAddressKvRepository);
|
|
3599
|
+
|
|
3600
|
+
//#endregion
|
|
3601
|
+
let TaonECommerceCustomerAddressMiddleware = class TaonECommerceCustomerAddressMiddleware extends TaonBaseMiddleware {
|
|
3602
|
+
};
|
|
3603
|
+
TaonECommerceCustomerAddressMiddleware = __decorate([
|
|
3604
|
+
TaonMiddleware({
|
|
3605
|
+
className: 'TaonECommerceCustomerAddressMiddleware',
|
|
3606
|
+
})
|
|
3607
|
+
], TaonECommerceCustomerAddressMiddleware);
|
|
3608
|
+
|
|
3609
|
+
//namespace TaonECommerceCustomerAddressModels
|
|
3610
|
+
var TaonECommerceCustomerAddressModels__NS__TaonECommerceCustomerAddressState;
|
|
3611
|
+
(function (TaonECommerceCustomerAddressModels__NS__TaonECommerceCustomerAddressState) {
|
|
3612
|
+
TaonECommerceCustomerAddressModels__NS__TaonECommerceCustomerAddressState["Active"] = "active";
|
|
3613
|
+
TaonECommerceCustomerAddressModels__NS__TaonECommerceCustomerAddressState["Inactive"] = "inactive";
|
|
3614
|
+
})(TaonECommerceCustomerAddressModels__NS__TaonECommerceCustomerAddressState || (TaonECommerceCustomerAddressModels__NS__TaonECommerceCustomerAddressState = {}));
|
|
3615
|
+
//end of namespace TaonECommerceCustomerAddressModels
|
|
3616
|
+
|
|
3617
|
+
//#endregion
|
|
3618
|
+
let TaonECommerceCustomerAddressSubscriber = class TaonECommerceCustomerAddressSubscriber extends TaonBaseSubscriberForEntity {
|
|
3619
|
+
constructor() {
|
|
3620
|
+
super(...arguments);
|
|
3621
|
+
this.taonECommerceCustomerAddressProvider = this.injectProvider(TaonECommerceCustomerAddressProvider);
|
|
3622
|
+
}
|
|
3623
|
+
listenTo() {
|
|
3624
|
+
return TaonECommerceCustomerAddressEntity;
|
|
3625
|
+
}
|
|
3626
|
+
};
|
|
3627
|
+
TaonECommerceCustomerAddressSubscriber = __decorate([
|
|
1636
3628
|
TaonSubscriber({
|
|
1637
|
-
className: '
|
|
3629
|
+
className: 'TaonECommerceCustomerAddressSubscriber',
|
|
1638
3630
|
// allowedEvents: ['afterUpdate'],
|
|
1639
3631
|
})
|
|
1640
|
-
],
|
|
3632
|
+
], TaonECommerceCustomerAddressSubscriber);
|
|
1641
3633
|
|
|
1642
|
-
//namespace
|
|
1643
|
-
function
|
|
3634
|
+
//namespace TaonECommerceCustomerAddressUtils
|
|
3635
|
+
function TaonECommerceCustomerAddressUtils__NS__isActive(state) {
|
|
1644
3636
|
return state === 'active';
|
|
1645
3637
|
}
|
|
1646
|
-
//end of namespace
|
|
3638
|
+
//end of namespace TaonECommerceCustomerAddressUtils
|
|
1647
3639
|
|
|
1648
|
-
//namespace
|
|
3640
|
+
//namespace TaonECommerceCustomerAddressValidators
|
|
1649
3641
|
//#region @browser
|
|
1650
3642
|
/**
|
|
1651
3643
|
* TODO REMOVE THIS EXAMPLE.
|
|
1652
3644
|
*/
|
|
1653
|
-
const
|
|
3645
|
+
const TaonECommerceCustomerAddressValidators__NS__passwordMatchValidator = (control) => {
|
|
1654
3646
|
const password = control.get('password');
|
|
1655
3647
|
const passwordRepeat = control.get('passwordRepeat');
|
|
1656
3648
|
if (!password || !passwordRepeat) {
|
|
@@ -1658,120 +3650,334 @@ const TaonECommerceCartValidators__NS__passwordMatchValidator = (control) => {
|
|
|
1658
3650
|
}
|
|
1659
3651
|
return password.value === passwordRepeat.value
|
|
1660
3652
|
? null
|
|
1661
|
-
: { [
|
|
3653
|
+
: { [TaonECommerceCustomerAddressErrors.INVALID_PASSWORD_EXAMPLE_ERROR]: true };
|
|
1662
3654
|
};
|
|
1663
3655
|
//#endregion
|
|
1664
|
-
//end of namespace
|
|
3656
|
+
//end of namespace TaonECommerceCustomerAddressValidators
|
|
1665
3657
|
|
|
1666
3658
|
//#region imports
|
|
1667
3659
|
//#endregion
|
|
1668
|
-
class
|
|
3660
|
+
class TaonECommerceOrderConfigService extends TaonBaseAngularService {
|
|
1669
3661
|
constructor() {
|
|
1670
3662
|
super(...arguments);
|
|
1671
|
-
this.
|
|
3663
|
+
this.taonECommerceOrderProvider = this.injectProvider(TaonECommerceOrderProvider);
|
|
3664
|
+
}
|
|
3665
|
+
get isEnableOption() {
|
|
3666
|
+
return this.taonECommerceOrderProvider.enabledTaonECommerceOrderOption;
|
|
3667
|
+
}
|
|
3668
|
+
clone() {
|
|
3669
|
+
const cloned = this.taonECommerceOrderProvider.clone();
|
|
3670
|
+
return cloned;
|
|
3671
|
+
}
|
|
3672
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: TaonECommerceOrderConfigService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3673
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: TaonECommerceOrderConfigService }); }
|
|
3674
|
+
}
|
|
3675
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: TaonECommerceOrderConfigService, decorators: [{
|
|
3676
|
+
type: Injectable
|
|
3677
|
+
}] });
|
|
3678
|
+
|
|
3679
|
+
const t$4 = Translation.for('src/lib/taon-e-commerce-order/taon-e-commerce-order.constants.ts', { "src/lib/taon-e-commerce-order/taon-e-commerce-order.constants.ts": { "en-US": async () => (await import('./e-commerce-websql-prod-taon-e-commerce-order.constants.ts.en-US.i18n.data-BlXHdUA1.mjs')).default, "pl-PL": async () => (await import('./e-commerce-websql-prod-taon-e-commerce-order.constants.ts.pl-PL.i18n.data-CPLpYCri.mjs')).default } });
|
|
3680
|
+
const TaonECommerceOrderDefaultsValues = {
|
|
3681
|
+
description: '',
|
|
3682
|
+
version: 0,
|
|
3683
|
+
id: void 0,
|
|
3684
|
+
};
|
|
3685
|
+
var TaonECommerceOrderErrors;
|
|
3686
|
+
(function (TaonECommerceOrderErrors) {
|
|
3687
|
+
TaonECommerceOrderErrors["INVALID_PASSWORD_EXAMPLE_ERROR"] = "INVALID_PASSWORD_EXAMPLE_ERROR";
|
|
3688
|
+
})(TaonECommerceOrderErrors || (TaonECommerceOrderErrors = {}));
|
|
3689
|
+
const TaonECommerceOrderTranslationErorsMap = new Map([
|
|
3690
|
+
[TaonECommerceOrderErrors.INVALID_PASSWORD_EXAMPLE_ERROR, t$4.gettext('Invalid Password')],
|
|
3691
|
+
]);
|
|
3692
|
+
|
|
3693
|
+
//#endregion
|
|
3694
|
+
let TaonECommerceOrderKvRepository = class TaonECommerceOrderKvRepository extends TaonBaseKvRepository {
|
|
3695
|
+
async notifyUsers(users) {
|
|
3696
|
+
this.set('usersToNotify', users);
|
|
3697
|
+
}
|
|
3698
|
+
};
|
|
3699
|
+
TaonECommerceOrderKvRepository = __decorate([
|
|
3700
|
+
TaonRepository({
|
|
3701
|
+
className: 'TaonECommerceOrderKvRepository',
|
|
3702
|
+
})
|
|
3703
|
+
], TaonECommerceOrderKvRepository);
|
|
3704
|
+
|
|
3705
|
+
//#endregion
|
|
3706
|
+
let TaonECommerceOrderMiddleware = class TaonECommerceOrderMiddleware extends TaonBaseMiddleware {
|
|
3707
|
+
};
|
|
3708
|
+
TaonECommerceOrderMiddleware = __decorate([
|
|
3709
|
+
TaonMiddleware({
|
|
3710
|
+
className: 'TaonECommerceOrderMiddleware',
|
|
3711
|
+
})
|
|
3712
|
+
], TaonECommerceOrderMiddleware);
|
|
3713
|
+
|
|
3714
|
+
//namespace TaonECommerceOrderModels
|
|
3715
|
+
var TaonECommerceOrderModels__NS__TaonECommerceOrderState;
|
|
3716
|
+
(function (TaonECommerceOrderModels__NS__TaonECommerceOrderState) {
|
|
3717
|
+
TaonECommerceOrderModels__NS__TaonECommerceOrderState["Active"] = "active";
|
|
3718
|
+
TaonECommerceOrderModels__NS__TaonECommerceOrderState["Inactive"] = "inactive";
|
|
3719
|
+
})(TaonECommerceOrderModels__NS__TaonECommerceOrderState || (TaonECommerceOrderModels__NS__TaonECommerceOrderState = {}));
|
|
3720
|
+
//end of namespace TaonECommerceOrderModels
|
|
3721
|
+
|
|
3722
|
+
//#endregion
|
|
3723
|
+
let TaonECommerceOrderSubscriber = class TaonECommerceOrderSubscriber extends TaonBaseSubscriberForEntity {
|
|
3724
|
+
constructor() {
|
|
3725
|
+
super(...arguments);
|
|
3726
|
+
this.taonECommerceOrderProvider = this.injectProvider(TaonECommerceOrderProvider);
|
|
3727
|
+
}
|
|
3728
|
+
listenTo() {
|
|
3729
|
+
return TaonECommerceOrderEntity;
|
|
3730
|
+
}
|
|
3731
|
+
};
|
|
3732
|
+
TaonECommerceOrderSubscriber = __decorate([
|
|
3733
|
+
TaonSubscriber({
|
|
3734
|
+
className: 'TaonECommerceOrderSubscriber',
|
|
3735
|
+
// allowedEvents: ['afterUpdate'],
|
|
3736
|
+
})
|
|
3737
|
+
], TaonECommerceOrderSubscriber);
|
|
3738
|
+
|
|
3739
|
+
//namespace TaonECommerceOrderUtils
|
|
3740
|
+
function TaonECommerceOrderUtils__NS__isActive(state) {
|
|
3741
|
+
return state === 'active';
|
|
3742
|
+
}
|
|
3743
|
+
//end of namespace TaonECommerceOrderUtils
|
|
3744
|
+
|
|
3745
|
+
//namespace TaonECommerceOrderValidators
|
|
3746
|
+
//#region @browser
|
|
3747
|
+
/**
|
|
3748
|
+
* TODO REMOVE THIS EXAMPLE.
|
|
3749
|
+
*/
|
|
3750
|
+
const TaonECommerceOrderValidators__NS__passwordMatchValidator = (control) => {
|
|
3751
|
+
const password = control.get('password');
|
|
3752
|
+
const passwordRepeat = control.get('passwordRepeat');
|
|
3753
|
+
if (!password || !passwordRepeat) {
|
|
3754
|
+
return null;
|
|
3755
|
+
}
|
|
3756
|
+
return password.value === passwordRepeat.value
|
|
3757
|
+
? null
|
|
3758
|
+
: { [TaonECommerceOrderErrors.INVALID_PASSWORD_EXAMPLE_ERROR]: true };
|
|
3759
|
+
};
|
|
3760
|
+
//#endregion
|
|
3761
|
+
//end of namespace TaonECommerceOrderValidators
|
|
3762
|
+
|
|
3763
|
+
//#region imports
|
|
3764
|
+
//#endregion
|
|
3765
|
+
class TaonECommerceOrderItemConfigService extends TaonBaseAngularService {
|
|
3766
|
+
constructor() {
|
|
3767
|
+
super(...arguments);
|
|
3768
|
+
this.taonECommerceOrderItemProvider = this.injectProvider(TaonECommerceOrderItemProvider);
|
|
3769
|
+
}
|
|
3770
|
+
get isEnableOption() {
|
|
3771
|
+
return this.taonECommerceOrderItemProvider.enabledTaonECommerceOrderItemOption;
|
|
3772
|
+
}
|
|
3773
|
+
clone() {
|
|
3774
|
+
const cloned = this.taonECommerceOrderItemProvider.clone();
|
|
3775
|
+
return cloned;
|
|
3776
|
+
}
|
|
3777
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: TaonECommerceOrderItemConfigService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3778
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: TaonECommerceOrderItemConfigService }); }
|
|
3779
|
+
}
|
|
3780
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: TaonECommerceOrderItemConfigService, decorators: [{
|
|
3781
|
+
type: Injectable
|
|
3782
|
+
}] });
|
|
3783
|
+
|
|
3784
|
+
const t$3 = Translation.for('src/lib/taon-e-commerce-order-item/taon-e-commerce-order-item.constants.ts', { "src/lib/taon-e-commerce-order-item/taon-e-commerce-order-item.constants.ts": { "en-US": async () => (await import('./e-commerce-websql-prod-taon-e-commerce-order-item.constants.ts.en-US.i18n.data-39idoaMN.mjs')).default, "pl-PL": async () => (await import('./e-commerce-websql-prod-taon-e-commerce-order-item.constants.ts.pl-PL.i18n.data-CBnzq5TF.mjs')).default } });
|
|
3785
|
+
const TaonECommerceOrderItemDefaultsValues = {
|
|
3786
|
+
description: '',
|
|
3787
|
+
version: 0,
|
|
3788
|
+
id: void 0,
|
|
3789
|
+
};
|
|
3790
|
+
var TaonECommerceOrderItemErrors;
|
|
3791
|
+
(function (TaonECommerceOrderItemErrors) {
|
|
3792
|
+
TaonECommerceOrderItemErrors["INVALID_PASSWORD_EXAMPLE_ERROR"] = "INVALID_PASSWORD_EXAMPLE_ERROR";
|
|
3793
|
+
})(TaonECommerceOrderItemErrors || (TaonECommerceOrderItemErrors = {}));
|
|
3794
|
+
const TaonECommerceOrderItemTranslationErorsMap = new Map([
|
|
3795
|
+
[TaonECommerceOrderItemErrors.INVALID_PASSWORD_EXAMPLE_ERROR, t$3.gettext('Invalid Password')],
|
|
3796
|
+
]);
|
|
3797
|
+
|
|
3798
|
+
//#endregion
|
|
3799
|
+
let TaonECommerceOrderItemKvRepository = class TaonECommerceOrderItemKvRepository extends TaonBaseKvRepository {
|
|
3800
|
+
async notifyUsers(users) {
|
|
3801
|
+
this.set('usersToNotify', users);
|
|
3802
|
+
}
|
|
3803
|
+
};
|
|
3804
|
+
TaonECommerceOrderItemKvRepository = __decorate([
|
|
3805
|
+
TaonRepository({
|
|
3806
|
+
className: 'TaonECommerceOrderItemKvRepository',
|
|
3807
|
+
})
|
|
3808
|
+
], TaonECommerceOrderItemKvRepository);
|
|
3809
|
+
|
|
3810
|
+
//#endregion
|
|
3811
|
+
let TaonECommerceOrderItemMiddleware = class TaonECommerceOrderItemMiddleware extends TaonBaseMiddleware {
|
|
3812
|
+
};
|
|
3813
|
+
TaonECommerceOrderItemMiddleware = __decorate([
|
|
3814
|
+
TaonMiddleware({
|
|
3815
|
+
className: 'TaonECommerceOrderItemMiddleware',
|
|
3816
|
+
})
|
|
3817
|
+
], TaonECommerceOrderItemMiddleware);
|
|
3818
|
+
|
|
3819
|
+
//namespace TaonECommerceOrderItemModels
|
|
3820
|
+
var TaonECommerceOrderItemModels__NS__TaonECommerceOrderItemState;
|
|
3821
|
+
(function (TaonECommerceOrderItemModels__NS__TaonECommerceOrderItemState) {
|
|
3822
|
+
TaonECommerceOrderItemModels__NS__TaonECommerceOrderItemState["Active"] = "active";
|
|
3823
|
+
TaonECommerceOrderItemModels__NS__TaonECommerceOrderItemState["Inactive"] = "inactive";
|
|
3824
|
+
})(TaonECommerceOrderItemModels__NS__TaonECommerceOrderItemState || (TaonECommerceOrderItemModels__NS__TaonECommerceOrderItemState = {}));
|
|
3825
|
+
//end of namespace TaonECommerceOrderItemModels
|
|
3826
|
+
|
|
3827
|
+
//#endregion
|
|
3828
|
+
let TaonECommerceOrderItemSubscriber = class TaonECommerceOrderItemSubscriber extends TaonBaseSubscriberForEntity {
|
|
3829
|
+
constructor() {
|
|
3830
|
+
super(...arguments);
|
|
3831
|
+
this.taonECommerceOrderItemProvider = this.injectProvider(TaonECommerceOrderItemProvider);
|
|
3832
|
+
}
|
|
3833
|
+
listenTo() {
|
|
3834
|
+
return TaonECommerceOrderItemEntity;
|
|
3835
|
+
}
|
|
3836
|
+
};
|
|
3837
|
+
TaonECommerceOrderItemSubscriber = __decorate([
|
|
3838
|
+
TaonSubscriber({
|
|
3839
|
+
className: 'TaonECommerceOrderItemSubscriber',
|
|
3840
|
+
// allowedEvents: ['afterUpdate'],
|
|
3841
|
+
})
|
|
3842
|
+
], TaonECommerceOrderItemSubscriber);
|
|
3843
|
+
|
|
3844
|
+
//namespace TaonECommerceOrderItemUtils
|
|
3845
|
+
function TaonECommerceOrderItemUtils__NS__isActive(state) {
|
|
3846
|
+
return state === 'active';
|
|
3847
|
+
}
|
|
3848
|
+
//end of namespace TaonECommerceOrderItemUtils
|
|
3849
|
+
|
|
3850
|
+
//namespace TaonECommerceOrderItemValidators
|
|
3851
|
+
//#region @browser
|
|
3852
|
+
/**
|
|
3853
|
+
* TODO REMOVE THIS EXAMPLE.
|
|
3854
|
+
*/
|
|
3855
|
+
const TaonECommerceOrderItemValidators__NS__passwordMatchValidator = (control) => {
|
|
3856
|
+
const password = control.get('password');
|
|
3857
|
+
const passwordRepeat = control.get('passwordRepeat');
|
|
3858
|
+
if (!password || !passwordRepeat) {
|
|
3859
|
+
return null;
|
|
3860
|
+
}
|
|
3861
|
+
return password.value === passwordRepeat.value
|
|
3862
|
+
? null
|
|
3863
|
+
: { [TaonECommerceOrderItemErrors.INVALID_PASSWORD_EXAMPLE_ERROR]: true };
|
|
3864
|
+
};
|
|
3865
|
+
//#endregion
|
|
3866
|
+
//end of namespace TaonECommerceOrderItemValidators
|
|
3867
|
+
|
|
3868
|
+
//#region imports
|
|
3869
|
+
//#endregion
|
|
3870
|
+
class TaonECommercePaymentTransactionApiService extends TaonBaseAngularService {
|
|
3871
|
+
constructor() {
|
|
3872
|
+
super(...arguments);
|
|
3873
|
+
this.taonECommercePaymentTransactionController = this.injectController(TaonECommercePaymentTransactionController);
|
|
1672
3874
|
}
|
|
1673
3875
|
get allMyEntities$() {
|
|
1674
|
-
return this.
|
|
3876
|
+
return this.taonECommercePaymentTransactionController.getAll().request().observable.pipe(map(res => res.body?.json));
|
|
1675
3877
|
}
|
|
1676
3878
|
helloWorld(user) {
|
|
1677
|
-
return this.
|
|
3879
|
+
return this.taonECommercePaymentTransactionController.helloWord(user).request().observable.pipe(map(res => res.responseText));
|
|
1678
3880
|
}
|
|
1679
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type:
|
|
1680
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type:
|
|
3881
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: TaonECommercePaymentTransactionApiService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3882
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: TaonECommercePaymentTransactionApiService }); }
|
|
1681
3883
|
}
|
|
1682
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type:
|
|
3884
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: TaonECommercePaymentTransactionApiService, decorators: [{
|
|
1683
3885
|
type: Injectable
|
|
1684
3886
|
}] });
|
|
1685
3887
|
|
|
1686
3888
|
//#region imports
|
|
1687
3889
|
//#endregion
|
|
1688
|
-
class
|
|
3890
|
+
class TaonECommercePaymentTransactionConfigService extends TaonBaseAngularService {
|
|
1689
3891
|
constructor() {
|
|
1690
3892
|
super(...arguments);
|
|
1691
|
-
this.
|
|
3893
|
+
this.taonECommercePaymentTransactionProvider = this.injectProvider(TaonECommercePaymentTransactionProvider);
|
|
1692
3894
|
}
|
|
1693
3895
|
get isEnableOption() {
|
|
1694
|
-
return this.
|
|
3896
|
+
return this.taonECommercePaymentTransactionProvider.enabledTaonECommercePaymentTransactionOption;
|
|
1695
3897
|
}
|
|
1696
|
-
|
|
1697
|
-
|
|
3898
|
+
clone() {
|
|
3899
|
+
const cloned = this.taonECommercePaymentTransactionProvider.clone();
|
|
3900
|
+
return cloned;
|
|
3901
|
+
}
|
|
3902
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: TaonECommercePaymentTransactionConfigService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3903
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: TaonECommercePaymentTransactionConfigService }); }
|
|
1698
3904
|
}
|
|
1699
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type:
|
|
3905
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: TaonECommercePaymentTransactionConfigService, decorators: [{
|
|
1700
3906
|
type: Injectable
|
|
1701
3907
|
}] });
|
|
1702
3908
|
|
|
1703
|
-
const t = Translation.for('src/lib/taon-e-commerce-
|
|
1704
|
-
const
|
|
3909
|
+
const t$2 = Translation.for('src/lib/taon-e-commerce-payment-transaction/taon-e-commerce-payment-transaction.constants.ts', { "src/lib/taon-e-commerce-payment-transaction/taon-e-commerce-payment-transaction.constants.ts": { "en-US": async () => (await import('./e-commerce-websql-prod-taon-e-commerce-payment-transaction.constants.ts.en-US.i18n.data-C8fTMhcu.mjs')).default, "pl-PL": async () => (await import('./e-commerce-websql-prod-taon-e-commerce-payment-transaction.constants.ts.pl-PL.i18n.data-9VHu058_.mjs')).default } });
|
|
3910
|
+
const TaonECommercePaymentTransactionDefaultsValues = {
|
|
1705
3911
|
description: '',
|
|
1706
3912
|
version: 0,
|
|
1707
3913
|
id: void 0,
|
|
1708
3914
|
};
|
|
1709
|
-
var
|
|
1710
|
-
(function (
|
|
1711
|
-
|
|
1712
|
-
})(
|
|
1713
|
-
const
|
|
1714
|
-
[
|
|
3915
|
+
var TaonECommercePaymentTransactionErrors;
|
|
3916
|
+
(function (TaonECommercePaymentTransactionErrors) {
|
|
3917
|
+
TaonECommercePaymentTransactionErrors["INVALID_PASSWORD_EXAMPLE_ERROR"] = "INVALID_PASSWORD_EXAMPLE_ERROR";
|
|
3918
|
+
})(TaonECommercePaymentTransactionErrors || (TaonECommercePaymentTransactionErrors = {}));
|
|
3919
|
+
const TaonECommercePaymentTransactionTranslationErorsMap = new Map([
|
|
3920
|
+
[TaonECommercePaymentTransactionErrors.INVALID_PASSWORD_EXAMPLE_ERROR, t$2.gettext('Invalid Password')],
|
|
1715
3921
|
]);
|
|
1716
3922
|
|
|
1717
3923
|
//#endregion
|
|
1718
|
-
let
|
|
3924
|
+
let TaonECommercePaymentTransactionKvRepository = class TaonECommercePaymentTransactionKvRepository extends TaonBaseKvRepository {
|
|
1719
3925
|
async notifyUsers(users) {
|
|
1720
3926
|
this.set('usersToNotify', users);
|
|
1721
3927
|
}
|
|
1722
3928
|
};
|
|
1723
|
-
|
|
3929
|
+
TaonECommercePaymentTransactionKvRepository = __decorate([
|
|
1724
3930
|
TaonRepository({
|
|
1725
|
-
className: '
|
|
3931
|
+
className: 'TaonECommercePaymentTransactionKvRepository',
|
|
1726
3932
|
})
|
|
1727
|
-
],
|
|
3933
|
+
], TaonECommercePaymentTransactionKvRepository);
|
|
1728
3934
|
|
|
1729
3935
|
//#endregion
|
|
1730
|
-
let
|
|
3936
|
+
let TaonECommercePaymentTransactionMiddleware = class TaonECommercePaymentTransactionMiddleware extends TaonBaseMiddleware {
|
|
1731
3937
|
};
|
|
1732
|
-
|
|
3938
|
+
TaonECommercePaymentTransactionMiddleware = __decorate([
|
|
1733
3939
|
TaonMiddleware({
|
|
1734
|
-
className: '
|
|
3940
|
+
className: 'TaonECommercePaymentTransactionMiddleware',
|
|
1735
3941
|
})
|
|
1736
|
-
],
|
|
3942
|
+
], TaonECommercePaymentTransactionMiddleware);
|
|
1737
3943
|
|
|
1738
|
-
//namespace
|
|
1739
|
-
var
|
|
1740
|
-
(function (
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
})(
|
|
1744
|
-
//end of namespace
|
|
3944
|
+
//namespace TaonECommercePaymentTransactionModels
|
|
3945
|
+
var TaonECommercePaymentTransactionModels__NS__TaonECommercePaymentTransactionState;
|
|
3946
|
+
(function (TaonECommercePaymentTransactionModels__NS__TaonECommercePaymentTransactionState) {
|
|
3947
|
+
TaonECommercePaymentTransactionModels__NS__TaonECommercePaymentTransactionState["Active"] = "active";
|
|
3948
|
+
TaonECommercePaymentTransactionModels__NS__TaonECommercePaymentTransactionState["Inactive"] = "inactive";
|
|
3949
|
+
})(TaonECommercePaymentTransactionModels__NS__TaonECommercePaymentTransactionState || (TaonECommercePaymentTransactionModels__NS__TaonECommercePaymentTransactionState = {}));
|
|
3950
|
+
//end of namespace TaonECommercePaymentTransactionModels
|
|
1745
3951
|
|
|
1746
3952
|
//#endregion
|
|
1747
|
-
let
|
|
3953
|
+
let TaonECommercePaymentTransactionSubscriber = class TaonECommercePaymentTransactionSubscriber extends TaonBaseSubscriberForEntity {
|
|
1748
3954
|
constructor() {
|
|
1749
3955
|
super(...arguments);
|
|
1750
|
-
this.
|
|
3956
|
+
this.taonECommercePaymentTransactionProvider = this.injectProvider(TaonECommercePaymentTransactionProvider);
|
|
1751
3957
|
}
|
|
1752
3958
|
listenTo() {
|
|
1753
|
-
return
|
|
3959
|
+
return TaonECommercePaymentTransactionEntity;
|
|
1754
3960
|
}
|
|
1755
3961
|
};
|
|
1756
|
-
|
|
3962
|
+
TaonECommercePaymentTransactionSubscriber = __decorate([
|
|
1757
3963
|
TaonSubscriber({
|
|
1758
|
-
className: '
|
|
3964
|
+
className: 'TaonECommercePaymentTransactionSubscriber',
|
|
1759
3965
|
// allowedEvents: ['afterUpdate'],
|
|
1760
3966
|
})
|
|
1761
|
-
],
|
|
3967
|
+
], TaonECommercePaymentTransactionSubscriber);
|
|
1762
3968
|
|
|
1763
|
-
//namespace
|
|
1764
|
-
function
|
|
3969
|
+
//namespace TaonECommercePaymentTransactionUtils
|
|
3970
|
+
function TaonECommercePaymentTransactionUtils__NS__isActive(state) {
|
|
1765
3971
|
return state === 'active';
|
|
1766
3972
|
}
|
|
1767
|
-
//end of namespace
|
|
3973
|
+
//end of namespace TaonECommercePaymentTransactionUtils
|
|
1768
3974
|
|
|
1769
|
-
//namespace
|
|
3975
|
+
//namespace TaonECommercePaymentTransactionValidators
|
|
1770
3976
|
//#region @browser
|
|
1771
3977
|
/**
|
|
1772
3978
|
* TODO REMOVE THIS EXAMPLE.
|
|
1773
3979
|
*/
|
|
1774
|
-
const
|
|
3980
|
+
const TaonECommercePaymentTransactionValidators__NS__passwordMatchValidator = (control) => {
|
|
1775
3981
|
const password = control.get('password');
|
|
1776
3982
|
const passwordRepeat = control.get('passwordRepeat');
|
|
1777
3983
|
if (!password || !passwordRepeat) {
|
|
@@ -1779,10 +3985,30 @@ const TaonECommerceCartItemValidators__NS__passwordMatchValidator = (control) =>
|
|
|
1779
3985
|
}
|
|
1780
3986
|
return password.value === passwordRepeat.value
|
|
1781
3987
|
? null
|
|
1782
|
-
: { [
|
|
3988
|
+
: { [TaonECommercePaymentTransactionErrors.INVALID_PASSWORD_EXAMPLE_ERROR]: true };
|
|
1783
3989
|
};
|
|
1784
3990
|
//#endregion
|
|
1785
|
-
//end of namespace
|
|
3991
|
+
//end of namespace TaonECommercePaymentTransactionValidators
|
|
3992
|
+
|
|
3993
|
+
//#region imports
|
|
3994
|
+
//#endregion
|
|
3995
|
+
class TaonECommerceProductPermissionApiService extends TaonBaseAngularService {
|
|
3996
|
+
constructor() {
|
|
3997
|
+
super(...arguments);
|
|
3998
|
+
this.taonECommerceProductPermissionController = this.injectController(TaonECommerceProductPermissionController);
|
|
3999
|
+
}
|
|
4000
|
+
get allMyEntities$() {
|
|
4001
|
+
return this.taonECommerceProductPermissionController.getAll().request().observable.pipe(map(res => res.body?.json));
|
|
4002
|
+
}
|
|
4003
|
+
helloWorld(user) {
|
|
4004
|
+
return this.taonECommerceProductPermissionController.helloWord(user).request().observable.pipe(map(res => res.responseText));
|
|
4005
|
+
}
|
|
4006
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: TaonECommerceProductPermissionApiService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4007
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: TaonECommerceProductPermissionApiService }); }
|
|
4008
|
+
}
|
|
4009
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: TaonECommerceProductPermissionApiService, decorators: [{
|
|
4010
|
+
type: Injectable
|
|
4011
|
+
}] });
|
|
1786
4012
|
|
|
1787
4013
|
//#region imports
|
|
1788
4014
|
//#endregion
|
|
@@ -1791,18 +4017,213 @@ class TaonECommerceProductApiService extends TaonBaseAngularService {
|
|
|
1791
4017
|
super(...arguments);
|
|
1792
4018
|
this.taonECommerceProductController = this.injectController(TaonECommerceProductController);
|
|
1793
4019
|
}
|
|
1794
|
-
|
|
1795
|
-
return this.taonECommerceProductController.getAll()
|
|
4020
|
+
getAllProductForUser() {
|
|
4021
|
+
return this.taonECommerceProductController.getAll()
|
|
4022
|
+
.request().observable.pipe(map(res => res.body.json), map(c => ({
|
|
4023
|
+
suggestedProducts: c,
|
|
4024
|
+
})));
|
|
4025
|
+
}
|
|
4026
|
+
async syncWithStripe() {
|
|
4027
|
+
const response = await this.taonECommerceProductController.syncWithStripe().request();
|
|
4028
|
+
if (response.statusCode >= 400) {
|
|
4029
|
+
throw new Error(response.responseText ||
|
|
4030
|
+
'Stripe synchronization is not configured for this project.');
|
|
4031
|
+
}
|
|
4032
|
+
}
|
|
4033
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: TaonECommerceProductApiService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4034
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: TaonECommerceProductApiService }); }
|
|
4035
|
+
}
|
|
4036
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: TaonECommerceProductApiService, decorators: [{
|
|
4037
|
+
type: Injectable
|
|
4038
|
+
}] });
|
|
4039
|
+
|
|
4040
|
+
class TaonECommerceProductEditDialogComponent {
|
|
4041
|
+
constructor() {
|
|
4042
|
+
this.data = inject(MAT_DIALOG_DATA);
|
|
4043
|
+
this.dialogRef = inject((MatDialogRef));
|
|
4044
|
+
this.productApi = inject(TaonECommerceProductApiService);
|
|
4045
|
+
this.productPermissionApi = inject(TaonECommerceProductPermissionApiService);
|
|
4046
|
+
this.permissionApi = inject(TaonPermissionApiService);
|
|
4047
|
+
this.productTypes = ['digital', 'physical', 'service'];
|
|
4048
|
+
this.currencies = ['PLN', 'EUR', 'USD'];
|
|
4049
|
+
this.initialCurrency = this.currencies.find(currency => currency === this.data.product?.currency) ?? 'USD';
|
|
4050
|
+
this.draft = signal({
|
|
4051
|
+
name: this.data.product?.name ?? '',
|
|
4052
|
+
description: this.data.product?.description ?? '',
|
|
4053
|
+
active: this.data.product?.active ?? true,
|
|
4054
|
+
type: this.data.product?.type ?? 'digital',
|
|
4055
|
+
price: this.data.product?.price ?? 0,
|
|
4056
|
+
currency: this.initialCurrency,
|
|
4057
|
+
}, ...(ngDevMode ? [{ debugName: "draft" }] : []));
|
|
4058
|
+
this.permissions = signal([], ...(ngDevMode ? [{ debugName: "permissions" }] : []));
|
|
4059
|
+
this.selectedPermissionIds = signal([], ...(ngDevMode ? [{ debugName: "selectedPermissionIds" }] : []));
|
|
4060
|
+
this.loading = signal(true, ...(ngDevMode ? [{ debugName: "loading" }] : []));
|
|
4061
|
+
this.permissionsLoaded = signal(false, ...(ngDevMode ? [{ debugName: "permissionsLoaded" }] : []));
|
|
4062
|
+
this.saving = signal(false, ...(ngDevMode ? [{ debugName: "saving" }] : []));
|
|
4063
|
+
this.error = signal('', ...(ngDevMode ? [{ debugName: "error" }] : []));
|
|
4064
|
+
void this.load();
|
|
4065
|
+
}
|
|
4066
|
+
async load() {
|
|
4067
|
+
this.loading.set(true);
|
|
4068
|
+
this.error.set('');
|
|
4069
|
+
this.permissionsLoaded.set(false);
|
|
4070
|
+
try {
|
|
4071
|
+
const [permissionsResponse, linksResponse] = await Promise.all([
|
|
4072
|
+
this.permissionApi.taonPermissionController.getAll().request(),
|
|
4073
|
+
this.productPermissionApi.taonECommerceProductPermissionController.getAll()
|
|
4074
|
+
.request(),
|
|
4075
|
+
]);
|
|
4076
|
+
if (permissionsResponse.statusCode >= 400 ||
|
|
4077
|
+
linksResponse.statusCode >= 400) {
|
|
4078
|
+
throw new Error(permissionsResponse.responseText ||
|
|
4079
|
+
linksResponse.responseText ||
|
|
4080
|
+
'Unable to load product permissions.');
|
|
4081
|
+
}
|
|
4082
|
+
const permissionRows = permissionsResponse.body?.json;
|
|
4083
|
+
const productPermissionRows = linksResponse.body?.json;
|
|
4084
|
+
if (!Array.isArray(permissionRows) ||
|
|
4085
|
+
!Array.isArray(productPermissionRows)) {
|
|
4086
|
+
throw new Error('The permissions response was invalid.');
|
|
4087
|
+
}
|
|
4088
|
+
this.permissions.set(permissionRows);
|
|
4089
|
+
this.permissionsLoaded.set(true);
|
|
4090
|
+
const productId = this.data.product?.id;
|
|
4091
|
+
this.selectedPermissionIds.set(typeof productId === 'number'
|
|
4092
|
+
? productPermissionRows
|
|
4093
|
+
.filter(link => link.productId === productId)
|
|
4094
|
+
.map(link => link.permissionId)
|
|
4095
|
+
: []);
|
|
4096
|
+
}
|
|
4097
|
+
catch (error) {
|
|
4098
|
+
console.error('[taon-e-commerce-product-edit] Unable to load permissions', error);
|
|
4099
|
+
this.error.set(error instanceof Error
|
|
4100
|
+
? error.message
|
|
4101
|
+
: 'Unable to load product permissions.');
|
|
4102
|
+
}
|
|
4103
|
+
finally {
|
|
4104
|
+
this.loading.set(false);
|
|
4105
|
+
}
|
|
4106
|
+
}
|
|
4107
|
+
updateType(type) {
|
|
4108
|
+
this.draft.update(draft => ({ ...draft, type }));
|
|
1796
4109
|
}
|
|
1797
|
-
|
|
1798
|
-
|
|
4110
|
+
updatePrice(price) {
|
|
4111
|
+
this.draft.update(draft => ({ ...draft, price }));
|
|
1799
4112
|
}
|
|
1800
|
-
|
|
1801
|
-
|
|
4113
|
+
updateName(name) {
|
|
4114
|
+
this.draft.update(draft => ({ ...draft, name }));
|
|
4115
|
+
}
|
|
4116
|
+
updateDescription(description) {
|
|
4117
|
+
this.draft.update(draft => ({ ...draft, description }));
|
|
4118
|
+
}
|
|
4119
|
+
updateActive(active) {
|
|
4120
|
+
this.draft.update(draft => ({ ...draft, active }));
|
|
4121
|
+
}
|
|
4122
|
+
updateCurrency(currency) {
|
|
4123
|
+
this.draft.update(draft => ({ ...draft, currency }));
|
|
4124
|
+
}
|
|
4125
|
+
async save() {
|
|
4126
|
+
if (this.saving() || this.loading() || !this.permissionsLoaded()) {
|
|
4127
|
+
return;
|
|
4128
|
+
}
|
|
4129
|
+
const draft = this.draft();
|
|
4130
|
+
if (!draft.name.trim() ||
|
|
4131
|
+
!this.currencies.includes(draft.currency) ||
|
|
4132
|
+
draft.price === null ||
|
|
4133
|
+
!Number.isFinite(draft.price) ||
|
|
4134
|
+
draft.price < 0) {
|
|
4135
|
+
this.error.set('Enter a name, a supported currency, and a non-negative price.');
|
|
4136
|
+
return;
|
|
4137
|
+
}
|
|
4138
|
+
this.saving.set(true);
|
|
4139
|
+
this.error.set('');
|
|
4140
|
+
try {
|
|
4141
|
+
const product = Object.assign(new TaonECommerceProductEntity(), {
|
|
4142
|
+
...this.data.product,
|
|
4143
|
+
name: draft.name.trim(),
|
|
4144
|
+
description: draft.description.trim() || null,
|
|
4145
|
+
active: draft.active,
|
|
4146
|
+
type: draft.type,
|
|
4147
|
+
price: draft.price,
|
|
4148
|
+
currency: draft.currency,
|
|
4149
|
+
});
|
|
4150
|
+
const productResponse = this.data.product
|
|
4151
|
+
? await this.productApi.taonECommerceProductController.updateById(this.data.product.id, product).request()
|
|
4152
|
+
: await this.productApi.taonECommerceProductController.save(product)
|
|
4153
|
+
.request();
|
|
4154
|
+
if (productResponse.statusCode >= 400) {
|
|
4155
|
+
throw new Error(productResponse.responseText || 'Unable to save the product.');
|
|
4156
|
+
}
|
|
4157
|
+
const savedProduct = productResponse.body?.json;
|
|
4158
|
+
if (!savedProduct || typeof savedProduct.id !== 'number') {
|
|
4159
|
+
throw new Error('The saved product response was invalid.');
|
|
4160
|
+
}
|
|
4161
|
+
this.data.product = savedProduct;
|
|
4162
|
+
const linksResponse = await this.productPermissionApi.taonECommerceProductPermissionController.getAll()
|
|
4163
|
+
.request();
|
|
4164
|
+
if (linksResponse.statusCode >= 400 ||
|
|
4165
|
+
!Array.isArray(linksResponse.body?.json)) {
|
|
4166
|
+
throw new Error(linksResponse.responseText ||
|
|
4167
|
+
'Unable to update the product permissions.');
|
|
4168
|
+
}
|
|
4169
|
+
const existingLinks = linksResponse.body.json.filter(link => link.productId === savedProduct.id);
|
|
4170
|
+
const selectedIds = new Set(this.selectedPermissionIds());
|
|
4171
|
+
for (const link of existingLinks) {
|
|
4172
|
+
if (!selectedIds.has(link.permissionId)) {
|
|
4173
|
+
const deleteResponse = await this.productPermissionApi.taonECommerceProductPermissionController.deleteById(link.id).request();
|
|
4174
|
+
if (deleteResponse.statusCode >= 400) {
|
|
4175
|
+
throw new Error(deleteResponse.responseText ||
|
|
4176
|
+
'Unable to remove a product permission.');
|
|
4177
|
+
}
|
|
4178
|
+
}
|
|
4179
|
+
}
|
|
4180
|
+
const existingIds = new Set(existingLinks.map(link => link.permissionId));
|
|
4181
|
+
for (const permissionId of selectedIds) {
|
|
4182
|
+
if (!existingIds.has(permissionId)) {
|
|
4183
|
+
const link = Object.assign(new TaonECommerceProductPermissionEntity(), {
|
|
4184
|
+
productId: savedProduct.id,
|
|
4185
|
+
permissionId,
|
|
4186
|
+
});
|
|
4187
|
+
const saveResponse = await this.productPermissionApi.taonECommerceProductPermissionController.save(link).request();
|
|
4188
|
+
if (saveResponse.statusCode >= 400) {
|
|
4189
|
+
throw new Error(saveResponse.responseText ||
|
|
4190
|
+
'Unable to attach a permission to the product.');
|
|
4191
|
+
}
|
|
4192
|
+
}
|
|
4193
|
+
}
|
|
4194
|
+
this.dialogRef.close(savedProduct);
|
|
4195
|
+
}
|
|
4196
|
+
catch (error) {
|
|
4197
|
+
console.error('[taon-e-commerce-product-edit] Unable to save product', error);
|
|
4198
|
+
this.error.set(error instanceof Error ? error.message : 'Unable to save the product.');
|
|
4199
|
+
}
|
|
4200
|
+
finally {
|
|
4201
|
+
this.saving.set(false);
|
|
4202
|
+
}
|
|
4203
|
+
}
|
|
4204
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: TaonECommerceProductEditDialogComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4205
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.0.9", type: TaonECommerceProductEditDialogComponent, isStandalone: true, selector: "taon-e-commerce-product-edit-dialog", providers: [
|
|
4206
|
+
TaonECommerceProductApiService,
|
|
4207
|
+
TaonECommerceProductPermissionApiService,
|
|
4208
|
+
TaonPermissionApiService,
|
|
4209
|
+
], ngImport: i0, template: "<h2 mat-dialog-title>{{ data.product ? 'Edit product' : 'Add product' }}</h2>\n<br>\n<mat-dialog-content>\n @if (loading()) {\n <p role=\"status\">Loading permissions...</p>\n } @else {\n <form class=\"product-form\">\n <mat-form-field appearance=\"outline\">\n <mat-label>Name</mat-label>\n <input\n matInput\n required\n [ngModel]=\"draft().name\"\n (ngModelChange)=\"updateName($event)\"\n name=\"name\" />\n </mat-form-field>\n\n <mat-form-field appearance=\"outline\">\n <mat-label>Description</mat-label>\n <textarea\n matInput\n rows=\"4\"\n [ngModel]=\"draft().description\"\n (ngModelChange)=\"updateDescription($event)\"\n name=\"description\"></textarea>\n </mat-form-field>\n\n <mat-checkbox\n [checked]=\"draft().active\"\n (change)=\"updateActive($event.checked)\"\n >Active</mat-checkbox\n >\n\n <mat-form-field appearance=\"outline\">\n <mat-label>Type</mat-label>\n <mat-select\n [value]=\"draft().type\"\n (selectionChange)=\"updateType($event.value)\">\n @for (type of productTypes; track type) {\n <mat-option [value]=\"type\">{{ type }}</mat-option>\n }\n </mat-select>\n </mat-form-field>\n\n <div class=\"price-fields\">\n <mat-form-field appearance=\"outline\">\n <mat-label>Price</mat-label>\n <input\n matInput\n type=\"number\"\n min=\"0\"\n step=\"0.01\"\n [ngModel]=\"draft().price\"\n (ngModelChange)=\"updatePrice($event)\"\n name=\"price\" />\n </mat-form-field>\n\n <mat-form-field appearance=\"outline\">\n <mat-label>Currency</mat-label>\n <mat-select\n [value]=\"draft().currency\"\n (selectionChange)=\"updateCurrency($event.value)\">\n @for (currency of currencies; track currency) {\n <mat-option [value]=\"currency\">{{ currency }}</mat-option>\n }\n </mat-select>\n </mat-form-field>\n </div>\n\n <mat-form-field appearance=\"outline\">\n <mat-label>Attached permissions</mat-label>\n <mat-select\n multiple\n [value]=\"selectedPermissionIds()\"\n (selectionChange)=\"selectedPermissionIds.set($event.value)\">\n @for (permission of permissions(); track permission.id) {\n <mat-option [value]=\"permission.id\"\n >{{ permission.name }} ({{ permission.code }})</mat-option\n >\n }\n </mat-select>\n </mat-form-field>\n\n @if (data.product) {\n <section\n class=\"stripe-info\"\n aria-label=\"Stripe synchronization information\">\n <h3>Stripe synchronization</h3>\n <p>\n Stripe Product ID:\n {{ data.product.stripeProductId || 'Not synchronized' }}\n </p>\n <p>\n Stripe Price ID:\n {{ data.product.stripePriceId || 'Not synchronized' }}\n </p>\n <p>\n Last synchronized: {{ data.product.stripeLastSyncedAt || 'Never' }}\n </p>\n </section>\n }\n </form>\n }\n\n @if (error()) {\n <p\n class=\"error\"\n role=\"alert\">\n {{ error() }}\n </p>\n @if (!permissionsLoaded() && !loading()) {\n <button\n mat-button\n type=\"button\"\n (click)=\"load()\">\n Retry loading permissions\n </button>\n }\n }\n</mat-dialog-content>\n\n<mat-dialog-actions align=\"end\">\n <button\n mat-button\n type=\"button\"\n [disabled]=\"saving()\"\n (click)=\"dialogRef.close()\">\n Cancel\n </button>\n <button\n mat-flat-button\n type=\"button\"\n [disabled]=\"loading() || saving() || !permissionsLoaded()\"\n (click)=\"save()\">\n {{ saving() ? 'Saving...' : 'Save' }}\n </button>\n</mat-dialog-actions>\n", styles: [".product-form{display:grid;gap:1rem;min-width:min(36rem,80vw)}.price-fields{display:grid;grid-template-columns:2fr 1fr;gap:1rem}.stripe-info{border-top:1px solid #ddd;padding-top:.75rem;overflow-wrap:anywhere}.stripe-info h3{margin:0 0 .5rem}.stripe-info p{margin:.25rem 0}.error{color:#b3261e}@media(max-width:600px){.product-form{min-width:0}}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$2.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1$2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$2.NumberValueAccessor, selector: "input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]" }, { kind: "directive", type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$2.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i1$2.MinValidator, selector: "input[type=number][min][formControlName],input[type=number][min][formControl],input[type=number][min][ngModel]", inputs: ["min"] }, { kind: "directive", type: i1$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i1$2.NgForm, selector: "form:not([ngNoForm]):not([formGroup]):not([formArray]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i1.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "ngmodule", type: MatCheckboxModule }, { kind: "component", type: i3$1.MatCheckbox, selector: "mat-checkbox", inputs: ["aria-label", "aria-labelledby", "aria-describedby", "aria-expanded", "aria-controls", "aria-owns", "id", "required", "labelPosition", "name", "value", "disableRipple", "tabIndex", "color", "disabledInteractive", "checked", "disabled", "indeterminate"], outputs: ["change", "indeterminateChange"], exportAs: ["matCheckbox"] }, { kind: "ngmodule", type: MatDialogModule }, { kind: "directive", type: i4.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { kind: "directive", type: i4.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]", inputs: ["align"] }, { kind: "directive", type: i4.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "component", type: i5.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i5.MatLabel, selector: "mat-label" }, { kind: "ngmodule", type: MatInputModule }, { kind: "directive", type: i6.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "ngmodule", type: MatSelectModule }, { kind: "component", type: i7.MatSelect, selector: "mat-select", inputs: ["aria-describedby", "panelClass", "disabled", "disableRipple", "tabIndex", "hideSingleSelectionIndicator", "placeholder", "required", "multiple", "disableOptionCentering", "compareWith", "value", "aria-label", "aria-labelledby", "errorStateMatcher", "typeaheadDebounceInterval", "sortComparator", "id", "panelWidth", "canSelectNullableOptions"], outputs: ["openedChange", "opened", "closed", "selectionChange", "valueChange"], exportAs: ["matSelect"] }, { kind: "component", type: i7.MatOption, selector: "mat-option", inputs: ["value", "id", "disabled"], outputs: ["onSelectionChange"], exportAs: ["matOption"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
1802
4210
|
}
|
|
1803
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type:
|
|
1804
|
-
type:
|
|
1805
|
-
|
|
4211
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: TaonECommerceProductEditDialogComponent, decorators: [{
|
|
4212
|
+
type: Component,
|
|
4213
|
+
args: [{ selector: 'taon-e-commerce-product-edit-dialog', changeDetection: ChangeDetectionStrategy.OnPush, imports: [
|
|
4214
|
+
FormsModule,
|
|
4215
|
+
MatButtonModule,
|
|
4216
|
+
MatCheckboxModule,
|
|
4217
|
+
MatDialogModule,
|
|
4218
|
+
MatFormFieldModule,
|
|
4219
|
+
MatInputModule,
|
|
4220
|
+
MatSelectModule,
|
|
4221
|
+
], providers: [
|
|
4222
|
+
TaonECommerceProductApiService,
|
|
4223
|
+
TaonECommerceProductPermissionApiService,
|
|
4224
|
+
TaonPermissionApiService,
|
|
4225
|
+
], template: "<h2 mat-dialog-title>{{ data.product ? 'Edit product' : 'Add product' }}</h2>\n<br>\n<mat-dialog-content>\n @if (loading()) {\n <p role=\"status\">Loading permissions...</p>\n } @else {\n <form class=\"product-form\">\n <mat-form-field appearance=\"outline\">\n <mat-label>Name</mat-label>\n <input\n matInput\n required\n [ngModel]=\"draft().name\"\n (ngModelChange)=\"updateName($event)\"\n name=\"name\" />\n </mat-form-field>\n\n <mat-form-field appearance=\"outline\">\n <mat-label>Description</mat-label>\n <textarea\n matInput\n rows=\"4\"\n [ngModel]=\"draft().description\"\n (ngModelChange)=\"updateDescription($event)\"\n name=\"description\"></textarea>\n </mat-form-field>\n\n <mat-checkbox\n [checked]=\"draft().active\"\n (change)=\"updateActive($event.checked)\"\n >Active</mat-checkbox\n >\n\n <mat-form-field appearance=\"outline\">\n <mat-label>Type</mat-label>\n <mat-select\n [value]=\"draft().type\"\n (selectionChange)=\"updateType($event.value)\">\n @for (type of productTypes; track type) {\n <mat-option [value]=\"type\">{{ type }}</mat-option>\n }\n </mat-select>\n </mat-form-field>\n\n <div class=\"price-fields\">\n <mat-form-field appearance=\"outline\">\n <mat-label>Price</mat-label>\n <input\n matInput\n type=\"number\"\n min=\"0\"\n step=\"0.01\"\n [ngModel]=\"draft().price\"\n (ngModelChange)=\"updatePrice($event)\"\n name=\"price\" />\n </mat-form-field>\n\n <mat-form-field appearance=\"outline\">\n <mat-label>Currency</mat-label>\n <mat-select\n [value]=\"draft().currency\"\n (selectionChange)=\"updateCurrency($event.value)\">\n @for (currency of currencies; track currency) {\n <mat-option [value]=\"currency\">{{ currency }}</mat-option>\n }\n </mat-select>\n </mat-form-field>\n </div>\n\n <mat-form-field appearance=\"outline\">\n <mat-label>Attached permissions</mat-label>\n <mat-select\n multiple\n [value]=\"selectedPermissionIds()\"\n (selectionChange)=\"selectedPermissionIds.set($event.value)\">\n @for (permission of permissions(); track permission.id) {\n <mat-option [value]=\"permission.id\"\n >{{ permission.name }} ({{ permission.code }})</mat-option\n >\n }\n </mat-select>\n </mat-form-field>\n\n @if (data.product) {\n <section\n class=\"stripe-info\"\n aria-label=\"Stripe synchronization information\">\n <h3>Stripe synchronization</h3>\n <p>\n Stripe Product ID:\n {{ data.product.stripeProductId || 'Not synchronized' }}\n </p>\n <p>\n Stripe Price ID:\n {{ data.product.stripePriceId || 'Not synchronized' }}\n </p>\n <p>\n Last synchronized: {{ data.product.stripeLastSyncedAt || 'Never' }}\n </p>\n </section>\n }\n </form>\n }\n\n @if (error()) {\n <p\n class=\"error\"\n role=\"alert\">\n {{ error() }}\n </p>\n @if (!permissionsLoaded() && !loading()) {\n <button\n mat-button\n type=\"button\"\n (click)=\"load()\">\n Retry loading permissions\n </button>\n }\n }\n</mat-dialog-content>\n\n<mat-dialog-actions align=\"end\">\n <button\n mat-button\n type=\"button\"\n [disabled]=\"saving()\"\n (click)=\"dialogRef.close()\">\n Cancel\n </button>\n <button\n mat-flat-button\n type=\"button\"\n [disabled]=\"loading() || saving() || !permissionsLoaded()\"\n (click)=\"save()\">\n {{ saving() ? 'Saving...' : 'Save' }}\n </button>\n</mat-dialog-actions>\n", styles: [".product-form{display:grid;gap:1rem;min-width:min(36rem,80vw)}.price-fields{display:grid;grid-template-columns:2fr 1fr;gap:1rem}.stripe-info{border-top:1px solid #ddd;padding-top:.75rem;overflow-wrap:anywhere}.stripe-info h3{margin:0 0 .5rem}.stripe-info p{margin:.25rem 0}.error{color:#b3261e}@media(max-width:600px){.product-form{min-width:0}}\n"] }]
|
|
4226
|
+
}], ctorParameters: () => [] });
|
|
1806
4227
|
|
|
1807
4228
|
//#region imports
|
|
1808
4229
|
//#endregion
|
|
@@ -1814,6 +4235,10 @@ class TaonECommerceProductConfigService extends TaonBaseAngularService {
|
|
|
1814
4235
|
get isEnableOption() {
|
|
1815
4236
|
return this.taonECommerceProductProvider.enabledTaonECommerceProductOption;
|
|
1816
4237
|
}
|
|
4238
|
+
clone() {
|
|
4239
|
+
const cloned = this.taonECommerceProductProvider.clone();
|
|
4240
|
+
return cloned;
|
|
4241
|
+
}
|
|
1817
4242
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: TaonECommerceProductConfigService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1818
4243
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: TaonECommerceProductConfigService }); }
|
|
1819
4244
|
}
|
|
@@ -1821,6 +4246,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImpor
|
|
|
1821
4246
|
type: Injectable
|
|
1822
4247
|
}] });
|
|
1823
4248
|
|
|
4249
|
+
const t$1 = Translation.for('src/lib/taon-e-commerce-product/taon-e-commerce-product.constants.ts', { "src/lib/taon-e-commerce-product/taon-e-commerce-product.constants.ts": { "en-US": async () => (await import('./e-commerce-websql-prod-taon-e-commerce-product.constants.ts.en-US.i18n.data-BX9RYHG7.mjs')).default, "pl-PL": async () => (await import('./e-commerce-websql-prod-taon-e-commerce-product.constants.ts.pl-PL.i18n.data-DuUR5O9c.mjs')).default } });
|
|
4250
|
+
const TaonECommerceProductDefaultsValues = {
|
|
4251
|
+
description: '',
|
|
4252
|
+
version: 0,
|
|
4253
|
+
id: void 0,
|
|
4254
|
+
};
|
|
4255
|
+
var TaonECommerceProductErrors;
|
|
4256
|
+
(function (TaonECommerceProductErrors) {
|
|
4257
|
+
TaonECommerceProductErrors["INVALID_PASSWORD_EXAMPLE_ERROR"] = "INVALID_PASSWORD_EXAMPLE_ERROR";
|
|
4258
|
+
})(TaonECommerceProductErrors || (TaonECommerceProductErrors = {}));
|
|
4259
|
+
const TaonECommerceProductTranslationErorsMap = new Map([
|
|
4260
|
+
[TaonECommerceProductErrors.INVALID_PASSWORD_EXAMPLE_ERROR, t$1.gettext('Invalid Password')],
|
|
4261
|
+
]);
|
|
4262
|
+
|
|
1824
4263
|
//#endregion
|
|
1825
4264
|
let TaonECommerceProductKvRepository = class TaonECommerceProductKvRepository extends TaonBaseKvRepository {
|
|
1826
4265
|
async notifyUsers(users) {
|
|
@@ -1891,12 +4330,574 @@ const TaonECommerceProductValidators__NS__passwordMatchValidator = (control) =>
|
|
|
1891
4330
|
//#endregion
|
|
1892
4331
|
//end of namespace TaonECommerceProductValidators
|
|
1893
4332
|
|
|
4333
|
+
//#region imports
|
|
4334
|
+
//#endregion
|
|
4335
|
+
class TaonECommerceProductPermissionConfigService extends TaonBaseAngularService {
|
|
4336
|
+
constructor() {
|
|
4337
|
+
super(...arguments);
|
|
4338
|
+
this.taonECommerceProductPermissionProvider = this.injectProvider(TaonECommerceProductPermissionProvider);
|
|
4339
|
+
}
|
|
4340
|
+
get isEnableOption() {
|
|
4341
|
+
return this.taonECommerceProductPermissionProvider.enabledTaonECommerceProductPermissionOption;
|
|
4342
|
+
}
|
|
4343
|
+
clone() {
|
|
4344
|
+
const cloned = this.taonECommerceProductPermissionProvider.clone();
|
|
4345
|
+
return cloned;
|
|
4346
|
+
}
|
|
4347
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: TaonECommerceProductPermissionConfigService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4348
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: TaonECommerceProductPermissionConfigService }); }
|
|
4349
|
+
}
|
|
4350
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: TaonECommerceProductPermissionConfigService, decorators: [{
|
|
4351
|
+
type: Injectable
|
|
4352
|
+
}] });
|
|
4353
|
+
|
|
4354
|
+
const t = Translation.for('src/lib/taon-e-commerce-product-permission/taon-e-commerce-product-permission.constants.ts', { "src/lib/taon-e-commerce-product-permission/taon-e-commerce-product-permission.constants.ts": { "en-US": async () => (await import('./e-commerce-websql-prod-taon-e-commerce-product-permission.constants.ts.en-US.i18n.data-BVP8Fo-v.mjs')).default, "pl-PL": async () => (await import('./e-commerce-websql-prod-taon-e-commerce-product-permission.constants.ts.pl-PL.i18n.data-D7mHABSf.mjs')).default } });
|
|
4355
|
+
const TaonECommerceProductPermissionDefaultsValues = {
|
|
4356
|
+
description: '',
|
|
4357
|
+
version: 0,
|
|
4358
|
+
id: void 0,
|
|
4359
|
+
};
|
|
4360
|
+
var TaonECommerceProductPermissionErrors;
|
|
4361
|
+
(function (TaonECommerceProductPermissionErrors) {
|
|
4362
|
+
TaonECommerceProductPermissionErrors["INVALID_PASSWORD_EXAMPLE_ERROR"] = "INVALID_PASSWORD_EXAMPLE_ERROR";
|
|
4363
|
+
})(TaonECommerceProductPermissionErrors || (TaonECommerceProductPermissionErrors = {}));
|
|
4364
|
+
const TaonECommerceProductPermissionTranslationErorsMap = new Map([
|
|
4365
|
+
[TaonECommerceProductPermissionErrors.INVALID_PASSWORD_EXAMPLE_ERROR, t.gettext('Invalid Password')],
|
|
4366
|
+
]);
|
|
4367
|
+
|
|
4368
|
+
//#endregion
|
|
4369
|
+
let TaonECommerceProductPermissionKvRepository = class TaonECommerceProductPermissionKvRepository extends TaonBaseKvRepository {
|
|
4370
|
+
async notifyUsers(users) {
|
|
4371
|
+
this.set('usersToNotify', users);
|
|
4372
|
+
}
|
|
4373
|
+
};
|
|
4374
|
+
TaonECommerceProductPermissionKvRepository = __decorate([
|
|
4375
|
+
TaonRepository({
|
|
4376
|
+
className: 'TaonECommerceProductPermissionKvRepository',
|
|
4377
|
+
})
|
|
4378
|
+
], TaonECommerceProductPermissionKvRepository);
|
|
4379
|
+
|
|
4380
|
+
//#endregion
|
|
4381
|
+
let TaonECommerceProductPermissionMiddleware = class TaonECommerceProductPermissionMiddleware extends TaonBaseMiddleware {
|
|
4382
|
+
};
|
|
4383
|
+
TaonECommerceProductPermissionMiddleware = __decorate([
|
|
4384
|
+
TaonMiddleware({
|
|
4385
|
+
className: 'TaonECommerceProductPermissionMiddleware',
|
|
4386
|
+
})
|
|
4387
|
+
], TaonECommerceProductPermissionMiddleware);
|
|
4388
|
+
|
|
4389
|
+
//namespace TaonECommerceProductPermissionModels
|
|
4390
|
+
var TaonECommerceProductPermissionModels__NS__TaonECommerceProductPermissionState;
|
|
4391
|
+
(function (TaonECommerceProductPermissionModels__NS__TaonECommerceProductPermissionState) {
|
|
4392
|
+
TaonECommerceProductPermissionModels__NS__TaonECommerceProductPermissionState["Active"] = "active";
|
|
4393
|
+
TaonECommerceProductPermissionModels__NS__TaonECommerceProductPermissionState["Inactive"] = "inactive";
|
|
4394
|
+
})(TaonECommerceProductPermissionModels__NS__TaonECommerceProductPermissionState || (TaonECommerceProductPermissionModels__NS__TaonECommerceProductPermissionState = {}));
|
|
4395
|
+
//end of namespace TaonECommerceProductPermissionModels
|
|
4396
|
+
|
|
4397
|
+
//#endregion
|
|
4398
|
+
let TaonECommerceProductPermissionSubscriber = class TaonECommerceProductPermissionSubscriber extends TaonBaseSubscriberForEntity {
|
|
4399
|
+
constructor() {
|
|
4400
|
+
super(...arguments);
|
|
4401
|
+
this.taonECommerceProductPermissionProvider = this.injectProvider(TaonECommerceProductPermissionProvider);
|
|
4402
|
+
}
|
|
4403
|
+
listenTo() {
|
|
4404
|
+
return TaonECommerceProductPermissionEntity;
|
|
4405
|
+
}
|
|
4406
|
+
};
|
|
4407
|
+
TaonECommerceProductPermissionSubscriber = __decorate([
|
|
4408
|
+
TaonSubscriber({
|
|
4409
|
+
className: 'TaonECommerceProductPermissionSubscriber',
|
|
4410
|
+
// allowedEvents: ['afterUpdate'],
|
|
4411
|
+
})
|
|
4412
|
+
], TaonECommerceProductPermissionSubscriber);
|
|
4413
|
+
|
|
4414
|
+
//namespace TaonECommerceProductPermissionUtils
|
|
4415
|
+
function TaonECommerceProductPermissionUtils__NS__isActive(state) {
|
|
4416
|
+
return state === 'active';
|
|
4417
|
+
}
|
|
4418
|
+
//end of namespace TaonECommerceProductPermissionUtils
|
|
4419
|
+
|
|
4420
|
+
//namespace TaonECommerceProductPermissionValidators
|
|
4421
|
+
//#region @browser
|
|
4422
|
+
/**
|
|
4423
|
+
* TODO REMOVE THIS EXAMPLE.
|
|
4424
|
+
*/
|
|
4425
|
+
const TaonECommerceProductPermissionValidators__NS__passwordMatchValidator = (control) => {
|
|
4426
|
+
const password = control.get('password');
|
|
4427
|
+
const passwordRepeat = control.get('passwordRepeat');
|
|
4428
|
+
if (!password || !passwordRepeat) {
|
|
4429
|
+
return null;
|
|
4430
|
+
}
|
|
4431
|
+
return password.value === passwordRepeat.value
|
|
4432
|
+
? null
|
|
4433
|
+
: { [TaonECommerceProductPermissionErrors.INVALID_PASSWORD_EXAMPLE_ERROR]: true };
|
|
4434
|
+
};
|
|
4435
|
+
//#endregion
|
|
4436
|
+
//end of namespace TaonECommerceProductPermissionValidators
|
|
4437
|
+
|
|
4438
|
+
;
|
|
4439
|
+
// THIS FILE IS GENERATED - DO NOT MODIFY
|
|
4440
|
+
|
|
4441
|
+
;
|
|
4442
|
+
// THIS FILE IS GENERATED - DO NOT MODIFY
|
|
4443
|
+
|
|
4444
|
+
;
|
|
4445
|
+
// THIS FILE IS GENERATED - DO NOT MODIFY
|
|
4446
|
+
|
|
4447
|
+
;
|
|
4448
|
+
// THIS FILE IS GENERATED - DO NOT MODIFY
|
|
4449
|
+
|
|
4450
|
+
class TaonECommerceOrderDetailsBackofficeComponent {
|
|
4451
|
+
constructor() {
|
|
4452
|
+
this.route = inject(ActivatedRoute);
|
|
4453
|
+
this.orderApi = inject(TaonECommerceOrderApiService);
|
|
4454
|
+
this.itemApi = inject(TaonECommerceOrderItemApiService);
|
|
4455
|
+
this.transactionApi = inject(TaonECommercePaymentTransactionApiService);
|
|
4456
|
+
this.order = signal(null, ...(ngDevMode ? [{ debugName: "order" }] : []));
|
|
4457
|
+
this.items = signal([], ...(ngDevMode ? [{ debugName: "items" }] : []));
|
|
4458
|
+
this.transactions = signal([], ...(ngDevMode ? [{ debugName: "transactions" }] : []));
|
|
4459
|
+
this.loading = signal(true, ...(ngDevMode ? [{ debugName: "loading" }] : []));
|
|
4460
|
+
this.error = signal('', ...(ngDevMode ? [{ debugName: "error" }] : []));
|
|
4461
|
+
void this.load();
|
|
4462
|
+
}
|
|
4463
|
+
async load() {
|
|
4464
|
+
const id = Number(this.route.snapshot.paramMap.get('id'));
|
|
4465
|
+
if (!Number.isInteger(id) || id < 1) {
|
|
4466
|
+
this.loading.set(false);
|
|
4467
|
+
this.error.set('The order ID is invalid.');
|
|
4468
|
+
return;
|
|
4469
|
+
}
|
|
4470
|
+
this.loading.set(true);
|
|
4471
|
+
this.error.set('');
|
|
4472
|
+
try {
|
|
4473
|
+
const [orderResponse, itemsResponse, transactionsResponse] = await Promise.all([
|
|
4474
|
+
this.orderApi.taonECommerceOrderController.getBy(id).request(),
|
|
4475
|
+
this.itemApi.taonECommerceOrderItemController.getAll().request(),
|
|
4476
|
+
this.transactionApi.taonECommercePaymentTransactionController.getAll()
|
|
4477
|
+
.request(),
|
|
4478
|
+
]);
|
|
4479
|
+
if (orderResponse.statusCode >= 400 ||
|
|
4480
|
+
itemsResponse.statusCode >= 400 ||
|
|
4481
|
+
transactionsResponse.statusCode >= 400) {
|
|
4482
|
+
throw new Error(orderResponse.responseText ||
|
|
4483
|
+
itemsResponse.responseText ||
|
|
4484
|
+
transactionsResponse.responseText ||
|
|
4485
|
+
'Unable to load order details.');
|
|
4486
|
+
}
|
|
4487
|
+
const order = orderResponse.body?.json;
|
|
4488
|
+
const items = itemsResponse.body?.json;
|
|
4489
|
+
const transactions = transactionsResponse.body?.json;
|
|
4490
|
+
if (!order || !Array.isArray(items) || !Array.isArray(transactions)) {
|
|
4491
|
+
throw new Error('The order details response was invalid.');
|
|
4492
|
+
}
|
|
4493
|
+
this.order.set(order);
|
|
4494
|
+
this.items.set(items.filter(item => item.orderId === id));
|
|
4495
|
+
this.transactions.set(transactions.filter(transaction => transaction.orderId === id));
|
|
4496
|
+
}
|
|
4497
|
+
catch (error) {
|
|
4498
|
+
console.error('[taon-e-commerce-order-details] Unable to load order', error);
|
|
4499
|
+
this.error.set(error instanceof Error
|
|
4500
|
+
? error.message
|
|
4501
|
+
: 'Unable to load order details.');
|
|
4502
|
+
}
|
|
4503
|
+
finally {
|
|
4504
|
+
this.loading.set(false);
|
|
4505
|
+
}
|
|
4506
|
+
}
|
|
4507
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: TaonECommerceOrderDetailsBackofficeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4508
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.0.9", type: TaonECommerceOrderDetailsBackofficeComponent, isStandalone: true, selector: "taon-e-commerce-order-details-backoffice", providers: [
|
|
4509
|
+
TaonECommerceOrderApiService,
|
|
4510
|
+
TaonECommerceOrderItemApiService,
|
|
4511
|
+
TaonECommercePaymentTransactionApiService,
|
|
4512
|
+
], ngImport: i0, template: "<section class=\"order-details\">\n <h2>Order details</h2>\n\n @if (loading()) {\n <p role=\"status\">Loading order...</p>\n } @else if (order(); as currentOrder) {\n <dl class=\"order-info\">\n <dt>Order ID</dt>\n <dd>{{ currentOrder.id }}</dd>\n <dt>User</dt>\n <dd>#{{ currentOrder.userId }}</dd>\n <dt>Status</dt>\n <dd>{{ currentOrder.status }}</dd>\n <dt>Created</dt>\n <dd>{{ currentOrder.createdAt }}</dd>\n <dt>Subtotal</dt>\n <dd>{{ currentOrder.subtotal }} {{ currentOrder.currency }}</dd>\n <dt>Total</dt>\n <dd>{{ currentOrder.total }} {{ currentOrder.currency }}</dd>\n </dl>\n\n <h3>Items</h3>\n <table>\n <thead>\n <tr>\n <th>Product</th>\n <th>Quantity</th>\n <th>Unit price</th>\n <th>Total</th>\n </tr>\n </thead>\n <tbody>\n @for (item of items(); track item.id) {\n <tr>\n <td>{{ item.productName }}</td>\n <td>{{ item.quantity }}</td>\n <td>{{ item.unitPrice }} {{ currentOrder.currency }}</td>\n <td>{{ item.totalPrice }} {{ currentOrder.currency }}</td>\n </tr>\n } @empty {\n <tr>\n <td colspan=\"4\">No items in this order.</td>\n </tr>\n }\n </tbody>\n </table>\n\n <h3>Payment transactions</h3>\n <table>\n <thead>\n <tr>\n <th>ID</th>\n <th>Provider</th>\n <th>Provider transaction</th>\n <th>Status</th>\n <th>Amount</th>\n </tr>\n </thead>\n <tbody>\n @for (transaction of transactions(); track transaction.id) {\n <tr>\n <td>{{ transaction.id }}</td>\n <td>{{ transaction.provider }}</td>\n <td>{{ transaction.providerTransactionId }}</td>\n <td>{{ transaction.status }}</td>\n <td>{{ transaction.amount }} {{ transaction.currency }}</td>\n </tr>\n } @empty {\n <tr>\n <td colspan=\"5\">No payment transactions.</td>\n </tr>\n }\n </tbody>\n </table>\n }\n\n @if (error()) {\n <p\n class=\"error\"\n role=\"alert\">\n {{ error() }}\n </p>\n <button\n type=\"button\"\n (click)=\"load()\">\n Try again\n </button>\n }\n</section>\n", styles: [".order-details{margin-top:1.5rem;padding:1.25rem;border:1px solid #ddd;border-radius:.5rem;overflow-x:auto}.order-info{display:grid;grid-template-columns:max-content 1fr;gap:.5rem 1rem}.order-info dt{font-weight:600}table{width:100%;border-collapse:collapse}th,td{padding:.5rem;border-bottom:1px solid #ddd;text-align:left}.error{color:#b3261e}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
4513
|
+
}
|
|
4514
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: TaonECommerceOrderDetailsBackofficeComponent, decorators: [{
|
|
4515
|
+
type: Component,
|
|
4516
|
+
args: [{ selector: 'taon-e-commerce-order-details-backoffice', changeDetection: ChangeDetectionStrategy.OnPush, imports: [], providers: [
|
|
4517
|
+
TaonECommerceOrderApiService,
|
|
4518
|
+
TaonECommerceOrderItemApiService,
|
|
4519
|
+
TaonECommercePaymentTransactionApiService,
|
|
4520
|
+
], template: "<section class=\"order-details\">\n <h2>Order details</h2>\n\n @if (loading()) {\n <p role=\"status\">Loading order...</p>\n } @else if (order(); as currentOrder) {\n <dl class=\"order-info\">\n <dt>Order ID</dt>\n <dd>{{ currentOrder.id }}</dd>\n <dt>User</dt>\n <dd>#{{ currentOrder.userId }}</dd>\n <dt>Status</dt>\n <dd>{{ currentOrder.status }}</dd>\n <dt>Created</dt>\n <dd>{{ currentOrder.createdAt }}</dd>\n <dt>Subtotal</dt>\n <dd>{{ currentOrder.subtotal }} {{ currentOrder.currency }}</dd>\n <dt>Total</dt>\n <dd>{{ currentOrder.total }} {{ currentOrder.currency }}</dd>\n </dl>\n\n <h3>Items</h3>\n <table>\n <thead>\n <tr>\n <th>Product</th>\n <th>Quantity</th>\n <th>Unit price</th>\n <th>Total</th>\n </tr>\n </thead>\n <tbody>\n @for (item of items(); track item.id) {\n <tr>\n <td>{{ item.productName }}</td>\n <td>{{ item.quantity }}</td>\n <td>{{ item.unitPrice }} {{ currentOrder.currency }}</td>\n <td>{{ item.totalPrice }} {{ currentOrder.currency }}</td>\n </tr>\n } @empty {\n <tr>\n <td colspan=\"4\">No items in this order.</td>\n </tr>\n }\n </tbody>\n </table>\n\n <h3>Payment transactions</h3>\n <table>\n <thead>\n <tr>\n <th>ID</th>\n <th>Provider</th>\n <th>Provider transaction</th>\n <th>Status</th>\n <th>Amount</th>\n </tr>\n </thead>\n <tbody>\n @for (transaction of transactions(); track transaction.id) {\n <tr>\n <td>{{ transaction.id }}</td>\n <td>{{ transaction.provider }}</td>\n <td>{{ transaction.providerTransactionId }}</td>\n <td>{{ transaction.status }}</td>\n <td>{{ transaction.amount }} {{ transaction.currency }}</td>\n </tr>\n } @empty {\n <tr>\n <td colspan=\"5\">No payment transactions.</td>\n </tr>\n }\n </tbody>\n </table>\n }\n\n @if (error()) {\n <p\n class=\"error\"\n role=\"alert\">\n {{ error() }}\n </p>\n <button\n type=\"button\"\n (click)=\"load()\">\n Try again\n </button>\n }\n</section>\n", styles: [".order-details{margin-top:1.5rem;padding:1.25rem;border:1px solid #ddd;border-radius:.5rem;overflow-x:auto}.order-info{display:grid;grid-template-columns:max-content 1fr;gap:.5rem 1rem}.order-info dt{font-weight:600}table{width:100%;border-collapse:collapse}th,td{padding:.5rem;border-bottom:1px solid #ddd;text-align:left}.error{color:#b3261e}\n"] }]
|
|
4521
|
+
}], ctorParameters: () => [] });
|
|
4522
|
+
|
|
4523
|
+
var taonECommerceOrderDetailsBackoffice_component = /*#__PURE__*/Object.freeze({
|
|
4524
|
+
__proto__: null,
|
|
4525
|
+
TaonECommerceOrderDetailsBackofficeComponent: TaonECommerceOrderDetailsBackofficeComponent
|
|
4526
|
+
});
|
|
4527
|
+
|
|
4528
|
+
class TaonECommerceOrdersBackofficeComponent {
|
|
4529
|
+
constructor() {
|
|
4530
|
+
this.route = inject(ActivatedRoute);
|
|
4531
|
+
this.router = inject(Router);
|
|
4532
|
+
this.api = inject(TaonECommerceOrderApiService);
|
|
4533
|
+
this.columns = [
|
|
4534
|
+
{ header: 'Order ID', field: 'id', sortable: true },
|
|
4535
|
+
{ header: 'User', field: 'userId', sortable: true },
|
|
4536
|
+
{ header: 'Status', field: 'status', sortable: true },
|
|
4537
|
+
{ header: 'Total', field: 'total', sortable: true },
|
|
4538
|
+
{ header: 'Currency', field: 'currency', sortable: true },
|
|
4539
|
+
{ header: 'Created', field: 'createdAt', sortable: true },
|
|
4540
|
+
{
|
|
4541
|
+
header: 'Actions',
|
|
4542
|
+
field: 'actions',
|
|
4543
|
+
type: 'button',
|
|
4544
|
+
buttons: [
|
|
4545
|
+
{
|
|
4546
|
+
type: 'icon',
|
|
4547
|
+
icon: 'open_in_new',
|
|
4548
|
+
tooltip: 'View order',
|
|
4549
|
+
click: (order) => this.openOrder(order),
|
|
4550
|
+
},
|
|
4551
|
+
],
|
|
4552
|
+
},
|
|
4553
|
+
];
|
|
4554
|
+
}
|
|
4555
|
+
ngAfterViewInit() {
|
|
4556
|
+
this.datatable.reload();
|
|
4557
|
+
}
|
|
4558
|
+
openOrder(order) {
|
|
4559
|
+
if (typeof order.id !== 'number') {
|
|
4560
|
+
return;
|
|
4561
|
+
}
|
|
4562
|
+
void this.router.navigate([order.id], { relativeTo: this.route });
|
|
4563
|
+
}
|
|
4564
|
+
get crud() {
|
|
4565
|
+
return this.api.taonECommerceOrderController;
|
|
4566
|
+
}
|
|
4567
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: TaonECommerceOrdersBackofficeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4568
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.0.9", type: TaonECommerceOrdersBackofficeComponent, isStandalone: true, selector: "app-taon-e-commerce-orders-backoffice", providers: [TaonECommerceOrderApiService], viewQueries: [{ propertyName: "datatable", first: true, predicate: TaonDatatableComponent, descendants: true }], ngImport: i0, template: "<h1>Orders</h1>\n<taon-datatable\n [entityCrudController]=\"crud\"\n [columns]=\"columns\"\n [hideAddButton]=\"true\"\n [allowedColumns]=\"[\n 'id',\n 'userId',\n 'status',\n 'total',\n 'currency',\n 'createdAt',\n ]\"\n searchMode=\"advanced\">\n</taon-datatable>\n<router-outlet></router-outlet>\n", styles: [":host{display:block}\n"], dependencies: [{ kind: "directive", type: RouterOutlet, selector: "router-outlet", inputs: ["name", "routerOutletData"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }, { kind: "component", type: TaonDatatableComponent, selector: "taon-datatable", inputs: ["pageNumber", "pageSize", "pageSizeOptions", "allowedColumns", "expansionTemplate", "entityCrudController", "columns", "hideSearch", "hideAddButton", "safe", "searchMode", "callQueryMethod", "data", "showPaginator"], outputs: ["expansionChange", "addingItem"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
4569
|
+
}
|
|
4570
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: TaonECommerceOrdersBackofficeComponent, decorators: [{
|
|
4571
|
+
type: Component,
|
|
4572
|
+
args: [{ selector: 'app-taon-e-commerce-orders-backoffice', changeDetection: ChangeDetectionStrategy.OnPush, imports: [RouterOutlet, TaonDatatableComponent], providers: [TaonECommerceOrderApiService], template: "<h1>Orders</h1>\n<taon-datatable\n [entityCrudController]=\"crud\"\n [columns]=\"columns\"\n [hideAddButton]=\"true\"\n [allowedColumns]=\"[\n 'id',\n 'userId',\n 'status',\n 'total',\n 'currency',\n 'createdAt',\n ]\"\n searchMode=\"advanced\">\n</taon-datatable>\n<router-outlet></router-outlet>\n", styles: [":host{display:block}\n"] }]
|
|
4573
|
+
}], propDecorators: { datatable: [{
|
|
4574
|
+
type: ViewChild,
|
|
4575
|
+
args: [TaonDatatableComponent]
|
|
4576
|
+
}] } });
|
|
4577
|
+
|
|
4578
|
+
var taonECommerceOrdersBackoffice_component = /*#__PURE__*/Object.freeze({
|
|
4579
|
+
__proto__: null,
|
|
4580
|
+
TaonECommerceOrdersBackofficeComponent: TaonECommerceOrdersBackofficeComponent
|
|
4581
|
+
});
|
|
4582
|
+
|
|
4583
|
+
//namespace TaonECommerceOrdersBackofficeModels
|
|
4584
|
+
//end of namespace TaonECommerceOrdersBackofficeModels
|
|
4585
|
+
|
|
4586
|
+
//#endregion
|
|
4587
|
+
const TaonECommerceOrdersBackofficeRoutes = [
|
|
4588
|
+
{
|
|
4589
|
+
path: '',
|
|
4590
|
+
loadComponent: () => Promise.resolve().then(function () { return taonECommerceOrdersBackoffice_component; }).then(m => m.TaonECommerceOrdersBackofficeComponent),
|
|
4591
|
+
children: [
|
|
4592
|
+
{
|
|
4593
|
+
path: ':id',
|
|
4594
|
+
loadComponent: () => Promise.resolve().then(function () { return taonECommerceOrderDetailsBackoffice_component; }).then(m => m.TaonECommerceOrderDetailsBackofficeComponent),
|
|
4595
|
+
},
|
|
4596
|
+
],
|
|
4597
|
+
},
|
|
4598
|
+
];
|
|
4599
|
+
/**
|
|
4600
|
+
* By default exporting TaonECommerceOrdersBackofficeRoutes,
|
|
4601
|
+
* the command `taon generate:app:routes`
|
|
4602
|
+
* will automatically add them to the root routes in ./src/app.ts.
|
|
4603
|
+
*/
|
|
4604
|
+
// export default TaonECommerceOrdersBackofficeRoutes;
|
|
4605
|
+
|
|
4606
|
+
var taonECommerceOrdersBackoffice_routes = /*#__PURE__*/Object.freeze({
|
|
4607
|
+
__proto__: null,
|
|
4608
|
+
TaonECommerceOrdersBackofficeRoutes: TaonECommerceOrdersBackofficeRoutes
|
|
4609
|
+
});
|
|
4610
|
+
|
|
4611
|
+
;
|
|
4612
|
+
// THIS FILE IS GENERATED - DO NOT MODIFY
|
|
4613
|
+
|
|
1894
4614
|
;
|
|
1895
4615
|
// THIS FILE IS GENERATED - DO NOT MODIFY
|
|
1896
4616
|
|
|
4617
|
+
class TaonECommercePaymentTransactionDetailsBackofficeComponent {
|
|
4618
|
+
constructor() {
|
|
4619
|
+
this.route = inject(ActivatedRoute);
|
|
4620
|
+
this.transactionApi = inject(TaonECommercePaymentTransactionApiService);
|
|
4621
|
+
this.orderApi = inject(TaonECommerceOrderApiService);
|
|
4622
|
+
this.transaction = signal(null, ...(ngDevMode ? [{ debugName: "transaction" }] : []));
|
|
4623
|
+
this.order = signal(null, ...(ngDevMode ? [{ debugName: "order" }] : []));
|
|
4624
|
+
this.loading = signal(true, ...(ngDevMode ? [{ debugName: "loading" }] : []));
|
|
4625
|
+
this.error = signal('', ...(ngDevMode ? [{ debugName: "error" }] : []));
|
|
4626
|
+
void this.load();
|
|
4627
|
+
}
|
|
4628
|
+
async load() {
|
|
4629
|
+
const id = Number(this.route.snapshot.paramMap.get('id'));
|
|
4630
|
+
if (!Number.isInteger(id) || id < 1) {
|
|
4631
|
+
this.loading.set(false);
|
|
4632
|
+
this.error.set('The transaction ID is invalid.');
|
|
4633
|
+
return;
|
|
4634
|
+
}
|
|
4635
|
+
this.loading.set(true);
|
|
4636
|
+
this.error.set('');
|
|
4637
|
+
try {
|
|
4638
|
+
const transactionResponse = await this.transactionApi.taonECommercePaymentTransactionController.getBy(id).request();
|
|
4639
|
+
if (transactionResponse.statusCode >= 400) {
|
|
4640
|
+
throw new Error(transactionResponse.responseText ||
|
|
4641
|
+
'Unable to load transaction details.');
|
|
4642
|
+
}
|
|
4643
|
+
const transaction = transactionResponse.body?.json;
|
|
4644
|
+
if (!transaction || typeof transaction.orderId !== 'number') {
|
|
4645
|
+
throw new Error('The transaction details response was invalid.');
|
|
4646
|
+
}
|
|
4647
|
+
const orderResponse = await this.orderApi.taonECommerceOrderController.getBy(transaction.orderId).request();
|
|
4648
|
+
if (orderResponse.statusCode >= 400 || !orderResponse.body?.json) {
|
|
4649
|
+
throw new Error(orderResponse.responseText || 'Unable to load the related order.');
|
|
4650
|
+
}
|
|
4651
|
+
this.transaction.set(transaction);
|
|
4652
|
+
this.order.set(orderResponse.body.json);
|
|
4653
|
+
}
|
|
4654
|
+
catch (error) {
|
|
4655
|
+
console.error('[taon-e-commerce-transaction-details] Unable to load transaction', error);
|
|
4656
|
+
this.error.set(error instanceof Error
|
|
4657
|
+
? error.message
|
|
4658
|
+
: 'Unable to load transaction details.');
|
|
4659
|
+
}
|
|
4660
|
+
finally {
|
|
4661
|
+
this.loading.set(false);
|
|
4662
|
+
}
|
|
4663
|
+
}
|
|
4664
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: TaonECommercePaymentTransactionDetailsBackofficeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4665
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.0.9", type: TaonECommercePaymentTransactionDetailsBackofficeComponent, isStandalone: true, selector: "taon-e-commerce-payment-transaction-details-backoffice", providers: [
|
|
4666
|
+
TaonECommercePaymentTransactionApiService,
|
|
4667
|
+
TaonECommerceOrderApiService,
|
|
4668
|
+
], ngImport: i0, template: "<section class=\"transaction-details\">\n <h2>Transaction details</h2>\n\n @if (loading()) {\n <p role=\"status\">Loading transaction...</p>\n } @else if (transaction(); as currentTransaction) {\n <dl>\n <dt>Transaction ID</dt>\n <dd>{{ currentTransaction.id }}</dd>\n <dt>Order ID</dt>\n <dd>{{ currentTransaction.orderId }}</dd>\n <dt>Provider</dt>\n <dd>{{ currentTransaction.provider }}</dd>\n <dt>Provider transaction ID</dt>\n <dd>{{ currentTransaction.providerTransactionId }}</dd>\n <dt>Status</dt>\n <dd>{{ currentTransaction.status }}</dd>\n <dt>Amount</dt>\n <dd>{{ currentTransaction.amount }} {{ currentTransaction.currency }}</dd>\n <dt>Created</dt>\n <dd>{{ currentTransaction.createdAt }}</dd>\n </dl>\n\n @if (order(); as relatedOrder) {\n <h3>Related order</h3>\n <dl>\n <dt>Order ID</dt>\n <dd>{{ relatedOrder.id }}</dd>\n <dt>User</dt>\n <dd>#{{ relatedOrder.userId }}</dd>\n <dt>Status</dt>\n <dd>{{ relatedOrder.status }}</dd>\n <dt>Total</dt>\n <dd>{{ relatedOrder.total }} {{ relatedOrder.currency }}</dd>\n <dt>Created</dt>\n <dd>{{ relatedOrder.createdAt }}</dd>\n </dl>\n }\n }\n\n @if (error()) {\n <p\n class=\"error\"\n role=\"alert\">\n {{ error() }}\n </p>\n <button\n type=\"button\"\n (click)=\"load()\">\n Try again\n </button>\n }\n</section>\n", styles: [".transaction-details{margin-top:1.5rem;padding:1.25rem;border:1px solid #ddd;border-radius:.5rem;overflow-wrap:anywhere}dl{display:grid;grid-template-columns:max-content 1fr;gap:.5rem 1rem}dt{font-weight:600}.error{color:#b3261e}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
4669
|
+
}
|
|
4670
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: TaonECommercePaymentTransactionDetailsBackofficeComponent, decorators: [{
|
|
4671
|
+
type: Component,
|
|
4672
|
+
args: [{ selector: 'taon-e-commerce-payment-transaction-details-backoffice', changeDetection: ChangeDetectionStrategy.OnPush, imports: [], providers: [
|
|
4673
|
+
TaonECommercePaymentTransactionApiService,
|
|
4674
|
+
TaonECommerceOrderApiService,
|
|
4675
|
+
], template: "<section class=\"transaction-details\">\n <h2>Transaction details</h2>\n\n @if (loading()) {\n <p role=\"status\">Loading transaction...</p>\n } @else if (transaction(); as currentTransaction) {\n <dl>\n <dt>Transaction ID</dt>\n <dd>{{ currentTransaction.id }}</dd>\n <dt>Order ID</dt>\n <dd>{{ currentTransaction.orderId }}</dd>\n <dt>Provider</dt>\n <dd>{{ currentTransaction.provider }}</dd>\n <dt>Provider transaction ID</dt>\n <dd>{{ currentTransaction.providerTransactionId }}</dd>\n <dt>Status</dt>\n <dd>{{ currentTransaction.status }}</dd>\n <dt>Amount</dt>\n <dd>{{ currentTransaction.amount }} {{ currentTransaction.currency }}</dd>\n <dt>Created</dt>\n <dd>{{ currentTransaction.createdAt }}</dd>\n </dl>\n\n @if (order(); as relatedOrder) {\n <h3>Related order</h3>\n <dl>\n <dt>Order ID</dt>\n <dd>{{ relatedOrder.id }}</dd>\n <dt>User</dt>\n <dd>#{{ relatedOrder.userId }}</dd>\n <dt>Status</dt>\n <dd>{{ relatedOrder.status }}</dd>\n <dt>Total</dt>\n <dd>{{ relatedOrder.total }} {{ relatedOrder.currency }}</dd>\n <dt>Created</dt>\n <dd>{{ relatedOrder.createdAt }}</dd>\n </dl>\n }\n }\n\n @if (error()) {\n <p\n class=\"error\"\n role=\"alert\">\n {{ error() }}\n </p>\n <button\n type=\"button\"\n (click)=\"load()\">\n Try again\n </button>\n }\n</section>\n", styles: [".transaction-details{margin-top:1.5rem;padding:1.25rem;border:1px solid #ddd;border-radius:.5rem;overflow-wrap:anywhere}dl{display:grid;grid-template-columns:max-content 1fr;gap:.5rem 1rem}dt{font-weight:600}.error{color:#b3261e}\n"] }]
|
|
4676
|
+
}], ctorParameters: () => [] });
|
|
4677
|
+
|
|
4678
|
+
var taonECommercePaymentTransactionDetailsBackoffice_component = /*#__PURE__*/Object.freeze({
|
|
4679
|
+
__proto__: null,
|
|
4680
|
+
TaonECommercePaymentTransactionDetailsBackofficeComponent: TaonECommercePaymentTransactionDetailsBackofficeComponent
|
|
4681
|
+
});
|
|
4682
|
+
|
|
4683
|
+
class TaonECommercePaymentTransactionsBackofficeComponent {
|
|
4684
|
+
constructor() {
|
|
4685
|
+
this.route = inject(ActivatedRoute);
|
|
4686
|
+
this.router = inject(Router);
|
|
4687
|
+
this.api = inject(TaonECommercePaymentTransactionApiService);
|
|
4688
|
+
this.columns = [
|
|
4689
|
+
{ header: 'ID', field: 'id', sortable: true },
|
|
4690
|
+
{ header: 'Order ID', field: 'orderId', sortable: true },
|
|
4691
|
+
{ header: 'Provider', field: 'provider', sortable: true },
|
|
4692
|
+
{
|
|
4693
|
+
header: 'Provider transaction ID',
|
|
4694
|
+
field: 'providerTransactionId',
|
|
4695
|
+
sortable: true,
|
|
4696
|
+
},
|
|
4697
|
+
{ header: 'Status', field: 'status', sortable: true },
|
|
4698
|
+
{ header: 'Amount', field: 'amount', sortable: true },
|
|
4699
|
+
{ header: 'Currency', field: 'currency', sortable: true },
|
|
4700
|
+
{ header: 'Created', field: 'createdAt', sortable: true },
|
|
4701
|
+
{
|
|
4702
|
+
header: 'Actions',
|
|
4703
|
+
field: 'actions',
|
|
4704
|
+
type: 'button',
|
|
4705
|
+
buttons: [
|
|
4706
|
+
{
|
|
4707
|
+
type: 'icon',
|
|
4708
|
+
icon: 'open_in_new',
|
|
4709
|
+
tooltip: 'View transaction',
|
|
4710
|
+
click: (transaction) => this.openTransaction(transaction),
|
|
4711
|
+
},
|
|
4712
|
+
],
|
|
4713
|
+
},
|
|
4714
|
+
];
|
|
4715
|
+
}
|
|
4716
|
+
ngAfterViewInit() {
|
|
4717
|
+
this.datatable.reload();
|
|
4718
|
+
}
|
|
4719
|
+
openTransaction(transaction) {
|
|
4720
|
+
if (typeof transaction.id !== 'number') {
|
|
4721
|
+
return;
|
|
4722
|
+
}
|
|
4723
|
+
void this.router.navigate([transaction.id], { relativeTo: this.route });
|
|
4724
|
+
}
|
|
4725
|
+
get crud() {
|
|
4726
|
+
return this.api.taonECommercePaymentTransactionController;
|
|
4727
|
+
}
|
|
4728
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: TaonECommercePaymentTransactionsBackofficeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4729
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.0.9", type: TaonECommercePaymentTransactionsBackofficeComponent, isStandalone: true, selector: "app-taon-e-commerce-payment-transactions-backoffice", providers: [TaonECommercePaymentTransactionApiService], viewQueries: [{ propertyName: "datatable", first: true, predicate: TaonDatatableComponent, descendants: true }], ngImport: i0, template: "<h1>Transactions</h1>\n<taon-datatable\n [entityCrudController]=\"crud\"\n [columns]=\"columns\"\n [hideAddButton]=\"true\"\n [allowedColumns]=\"[\n 'id',\n 'orderId',\n 'provider',\n 'providerTransactionId',\n 'status',\n 'amount',\n 'currency',\n 'createdAt',\n ]\"\n searchMode=\"advanced\">\n</taon-datatable>\n<router-outlet></router-outlet>\n", styles: [":host{display:block}\n"], dependencies: [{ kind: "directive", type: RouterOutlet, selector: "router-outlet", inputs: ["name", "routerOutletData"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }, { kind: "component", type: TaonDatatableComponent, selector: "taon-datatable", inputs: ["pageNumber", "pageSize", "pageSizeOptions", "allowedColumns", "expansionTemplate", "entityCrudController", "columns", "hideSearch", "hideAddButton", "safe", "searchMode", "callQueryMethod", "data", "showPaginator"], outputs: ["expansionChange", "addingItem"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
4730
|
+
}
|
|
4731
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: TaonECommercePaymentTransactionsBackofficeComponent, decorators: [{
|
|
4732
|
+
type: Component,
|
|
4733
|
+
args: [{ selector: 'app-taon-e-commerce-payment-transactions-backoffice', changeDetection: ChangeDetectionStrategy.OnPush, imports: [RouterOutlet, TaonDatatableComponent], providers: [TaonECommercePaymentTransactionApiService], template: "<h1>Transactions</h1>\n<taon-datatable\n [entityCrudController]=\"crud\"\n [columns]=\"columns\"\n [hideAddButton]=\"true\"\n [allowedColumns]=\"[\n 'id',\n 'orderId',\n 'provider',\n 'providerTransactionId',\n 'status',\n 'amount',\n 'currency',\n 'createdAt',\n ]\"\n searchMode=\"advanced\">\n</taon-datatable>\n<router-outlet></router-outlet>\n", styles: [":host{display:block}\n"] }]
|
|
4734
|
+
}], propDecorators: { datatable: [{
|
|
4735
|
+
type: ViewChild,
|
|
4736
|
+
args: [TaonDatatableComponent]
|
|
4737
|
+
}] } });
|
|
4738
|
+
|
|
4739
|
+
var taonECommercePaymentTransactionsBackoffice_component = /*#__PURE__*/Object.freeze({
|
|
4740
|
+
__proto__: null,
|
|
4741
|
+
TaonECommercePaymentTransactionsBackofficeComponent: TaonECommercePaymentTransactionsBackofficeComponent
|
|
4742
|
+
});
|
|
4743
|
+
|
|
4744
|
+
//namespace TaonECommercePaymentTransactionsBackofficeModels
|
|
4745
|
+
//end of namespace TaonECommercePaymentTransactionsBackofficeModels
|
|
4746
|
+
|
|
4747
|
+
//#endregion
|
|
4748
|
+
const TaonECommercePaymentTransactionsBackofficeRoutes = [
|
|
4749
|
+
{
|
|
4750
|
+
path: '',
|
|
4751
|
+
loadComponent: () => Promise.resolve().then(function () { return taonECommercePaymentTransactionsBackoffice_component; }).then(m => m.TaonECommercePaymentTransactionsBackofficeComponent),
|
|
4752
|
+
children: [
|
|
4753
|
+
{
|
|
4754
|
+
path: ':id',
|
|
4755
|
+
loadComponent: () => Promise.resolve().then(function () { return taonECommercePaymentTransactionDetailsBackoffice_component; }).then(m => m.TaonECommercePaymentTransactionDetailsBackofficeComponent),
|
|
4756
|
+
},
|
|
4757
|
+
],
|
|
4758
|
+
},
|
|
4759
|
+
];
|
|
4760
|
+
/**
|
|
4761
|
+
* By default exporting TaonECommercePaymentTransactionsBackofficeRoutes,
|
|
4762
|
+
* the command `taon generate:app:routes`
|
|
4763
|
+
* will automatically add them to the root routes in ./src/app.ts.
|
|
4764
|
+
*/
|
|
4765
|
+
// export default TaonECommercePaymentTransactionsBackofficeRoutes;
|
|
4766
|
+
|
|
4767
|
+
var taonECommercePaymentTransactionsBackoffice_routes = /*#__PURE__*/Object.freeze({
|
|
4768
|
+
__proto__: null,
|
|
4769
|
+
TaonECommercePaymentTransactionsBackofficeRoutes: TaonECommercePaymentTransactionsBackofficeRoutes
|
|
4770
|
+
});
|
|
4771
|
+
|
|
1897
4772
|
;
|
|
1898
4773
|
// THIS FILE IS GENERATED - DO NOT MODIFY
|
|
1899
4774
|
|
|
4775
|
+
class TaonECommerceProductsBackofficeComponent {
|
|
4776
|
+
constructor() {
|
|
4777
|
+
this.api = inject(TaonECommerceProductApiService);
|
|
4778
|
+
this.columns = [
|
|
4779
|
+
{ header: 'ID', field: 'id', sortable: true },
|
|
4780
|
+
{ header: 'Name', field: 'name', sortable: true },
|
|
4781
|
+
{ header: 'Type', field: 'type', sortable: true },
|
|
4782
|
+
{ header: 'Price', field: 'price', sortable: true },
|
|
4783
|
+
{ header: 'Currency', field: 'currency', sortable: true },
|
|
4784
|
+
{ header: 'Active', field: 'active', sortable: true },
|
|
4785
|
+
{
|
|
4786
|
+
header: 'Stripe synchronized',
|
|
4787
|
+
field: 'stripeLastSyncedAt',
|
|
4788
|
+
sortable: true,
|
|
4789
|
+
},
|
|
4790
|
+
{
|
|
4791
|
+
header: 'Actions',
|
|
4792
|
+
field: 'actions',
|
|
4793
|
+
type: 'button',
|
|
4794
|
+
buttons: [
|
|
4795
|
+
{
|
|
4796
|
+
type: 'icon',
|
|
4797
|
+
icon: 'edit',
|
|
4798
|
+
tooltip: 'Edit product',
|
|
4799
|
+
click: (product) => this.edit(product),
|
|
4800
|
+
},
|
|
4801
|
+
],
|
|
4802
|
+
},
|
|
4803
|
+
];
|
|
4804
|
+
this.dialog = inject(MatDialog);
|
|
4805
|
+
this.syncInProgress = signal(false, ...(ngDevMode ? [{ debugName: "syncInProgress" }] : []));
|
|
4806
|
+
this.syncError = signal('', ...(ngDevMode ? [{ debugName: "syncError" }] : []));
|
|
4807
|
+
}
|
|
4808
|
+
ngAfterViewInit() {
|
|
4809
|
+
this.datatable.reload();
|
|
4810
|
+
}
|
|
4811
|
+
add() {
|
|
4812
|
+
this.openEditor({});
|
|
4813
|
+
}
|
|
4814
|
+
edit(product) {
|
|
4815
|
+
this.openEditor({ product });
|
|
4816
|
+
}
|
|
4817
|
+
async syncWithStripe() {
|
|
4818
|
+
if (this.syncInProgress()) {
|
|
4819
|
+
return;
|
|
4820
|
+
}
|
|
4821
|
+
this.syncInProgress.set(true);
|
|
4822
|
+
this.syncError.set('');
|
|
4823
|
+
try {
|
|
4824
|
+
await this.api.syncWithStripe();
|
|
4825
|
+
this.datatable.reload();
|
|
4826
|
+
}
|
|
4827
|
+
catch (error) {
|
|
4828
|
+
console.error('[taon-e-commerce-products-backoffice] Stripe sync failed', error);
|
|
4829
|
+
this.syncError.set(error instanceof Error
|
|
4830
|
+
? error.message
|
|
4831
|
+
: 'Stripe synchronization could not be completed.');
|
|
4832
|
+
}
|
|
4833
|
+
finally {
|
|
4834
|
+
this.syncInProgress.set(false);
|
|
4835
|
+
}
|
|
4836
|
+
}
|
|
4837
|
+
openEditor(data) {
|
|
4838
|
+
const ref = this.dialog.open(TaonECommerceProductEditDialogComponent, {
|
|
4839
|
+
data,
|
|
4840
|
+
width: '44rem',
|
|
4841
|
+
maxWidth: '95vw',
|
|
4842
|
+
disableClose: true,
|
|
4843
|
+
});
|
|
4844
|
+
ref.afterClosed().subscribe(product => {
|
|
4845
|
+
if (product) {
|
|
4846
|
+
this.datatable.reload();
|
|
4847
|
+
}
|
|
4848
|
+
});
|
|
4849
|
+
}
|
|
4850
|
+
get crud() {
|
|
4851
|
+
return this.api.taonECommerceProductController;
|
|
4852
|
+
}
|
|
4853
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: TaonECommerceProductsBackofficeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4854
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.0.9", type: TaonECommerceProductsBackofficeComponent, isStandalone: true, selector: "app-taon-e-commerce-products-backoffice", providers: [TaonECommerceProductApiService], viewQueries: [{ propertyName: "datatable", first: true, predicate: TaonDatatableComponent, descendants: true }], ngImport: i0, template: "<header class=\"page-header pb-2\">\n <h1>Products</h1>\n <div class=\"actions\">\n <button\n mat-stroked-button\n type=\"button\"\n [disabled]=\"syncInProgress()\"\n (click)=\"syncWithStripe()\">\n {{ syncInProgress() ? 'Syncing...' : 'Sync with Stripe' }}\n </button>\n </div>\n</header>\n\n@if (syncError()) {\n <p\n class=\"error\"\n role=\"alert\">\n {{ syncError() }}\n </p>\n}\n\n<taon-datatable\n [entityCrudController]=\"crud\"\n [columns]=\"columns\"\n [allowedColumns]=\"[\n 'id',\n 'name',\n 'type',\n 'price',\n 'currency',\n 'active',\n 'stripeLastSyncedAt',\n ]\"\n searchMode=\"advanced\"\n (addingItem)=\"add()\">\n</taon-datatable>\n", styles: [":host{display:block}.page-header{display:flex;align-items:center;justify-content:space-between;gap:1rem}.actions{display:flex;gap:.75rem}.error{color:#b3261e}@media(max-width:600px){.page-header{align-items:flex-start;flex-direction:column}}\n"], dependencies: [{ kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i1.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "component", type: TaonDatatableComponent, selector: "taon-datatable", inputs: ["pageNumber", "pageSize", "pageSizeOptions", "allowedColumns", "expansionTemplate", "entityCrudController", "columns", "hideSearch", "hideAddButton", "safe", "searchMode", "callQueryMethod", "data", "showPaginator"], outputs: ["expansionChange", "addingItem"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
4855
|
+
}
|
|
4856
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: TaonECommerceProductsBackofficeComponent, decorators: [{
|
|
4857
|
+
type: Component,
|
|
4858
|
+
args: [{ selector: 'app-taon-e-commerce-products-backoffice', changeDetection: ChangeDetectionStrategy.OnPush, imports: [MatButtonModule, TaonDatatableComponent], providers: [TaonECommerceProductApiService], template: "<header class=\"page-header pb-2\">\n <h1>Products</h1>\n <div class=\"actions\">\n <button\n mat-stroked-button\n type=\"button\"\n [disabled]=\"syncInProgress()\"\n (click)=\"syncWithStripe()\">\n {{ syncInProgress() ? 'Syncing...' : 'Sync with Stripe' }}\n </button>\n </div>\n</header>\n\n@if (syncError()) {\n <p\n class=\"error\"\n role=\"alert\">\n {{ syncError() }}\n </p>\n}\n\n<taon-datatable\n [entityCrudController]=\"crud\"\n [columns]=\"columns\"\n [allowedColumns]=\"[\n 'id',\n 'name',\n 'type',\n 'price',\n 'currency',\n 'active',\n 'stripeLastSyncedAt',\n ]\"\n searchMode=\"advanced\"\n (addingItem)=\"add()\">\n</taon-datatable>\n", styles: [":host{display:block}.page-header{display:flex;align-items:center;justify-content:space-between;gap:1rem}.actions{display:flex;gap:.75rem}.error{color:#b3261e}@media(max-width:600px){.page-header{align-items:flex-start;flex-direction:column}}\n"] }]
|
|
4859
|
+
}], propDecorators: { datatable: [{
|
|
4860
|
+
type: ViewChild,
|
|
4861
|
+
args: [TaonDatatableComponent]
|
|
4862
|
+
}] } });
|
|
4863
|
+
|
|
4864
|
+
var taonECommerceProductsBackoffice_component = /*#__PURE__*/Object.freeze({
|
|
4865
|
+
__proto__: null,
|
|
4866
|
+
TaonECommerceProductsBackofficeComponent: TaonECommerceProductsBackofficeComponent
|
|
4867
|
+
});
|
|
4868
|
+
|
|
4869
|
+
//namespace TaonECommerceProductsBackofficeModels
|
|
4870
|
+
//end of namespace TaonECommerceProductsBackofficeModels
|
|
4871
|
+
|
|
4872
|
+
//#endregion
|
|
4873
|
+
const TaonECommerceProductsBackofficeRoutes = [
|
|
4874
|
+
{
|
|
4875
|
+
path: '',
|
|
4876
|
+
loadComponent: () => Promise.resolve().then(function () { return taonECommerceProductsBackoffice_component; }).then(m => m.TaonECommerceProductsBackofficeComponent),
|
|
4877
|
+
children: [
|
|
4878
|
+
// adminLazyRoute({
|
|
4879
|
+
// path: 'dashboard',
|
|
4880
|
+
// menuItem: 'Dashboard',
|
|
4881
|
+
// icon: 'dashboard',
|
|
4882
|
+
// expandable: false,
|
|
4883
|
+
// loader: () =>
|
|
4884
|
+
// import('./anothermodule.routes').then(m => m.DashboardRoutes),
|
|
4885
|
+
// }),
|
|
4886
|
+
],
|
|
4887
|
+
},
|
|
4888
|
+
];
|
|
4889
|
+
/**
|
|
4890
|
+
* By default exporting TaonECommerceProductsBackofficeRoutes,
|
|
4891
|
+
* the command `taon generate:app:routes`
|
|
4892
|
+
* will automatically add them to the root routes in ./src/app.ts.
|
|
4893
|
+
*/
|
|
4894
|
+
// export default TaonECommerceProductsBackofficeRoutes;
|
|
4895
|
+
|
|
4896
|
+
var taonECommerceProductsBackoffice_routes = /*#__PURE__*/Object.freeze({
|
|
4897
|
+
__proto__: null,
|
|
4898
|
+
TaonECommerceProductsBackofficeRoutes: TaonECommerceProductsBackofficeRoutes
|
|
4899
|
+
});
|
|
4900
|
+
|
|
1900
4901
|
;
|
|
1901
4902
|
// THIS FILE IS GENERATED - DO NOT MODIFY
|
|
1902
4903
|
|
|
@@ -1913,5 +4914,5 @@ var index = {};
|
|
|
1913
4914
|
* Generated bundle index. Do not edit.
|
|
1914
4915
|
*/
|
|
1915
4916
|
|
|
1916
|
-
export { APP_ID, BUILD_BASE_HREF, BUILD_FRAMEWORK_CLI_NAME, CURRENT_PACKAGE_TAON_VERSION, CURRENT_PACKAGE_VERSION, ENV_ANGULAR_NODE_APP_BUILD_BASE_HREF, ENV_ANGULAR_NODE_APP_BUILD_ELECTRON_SHOW_DEV_TOOLS, ENV_ANGULAR_NODE_APP_BUILD_GEN_ONLY_CLIENT_CODE, ENV_ANGULAR_NODE_APP_BUILD_OVERRIDE_OUTPUT_PATH, ENV_ANGULAR_NODE_APP_BUILD_PROD, ENV_ANGULAR_NODE_APP_BUILD_PWA_DISABLE_SERVICE_WORKER, ENV_ANGULAR_NODE_APP_BUILD_PWA_NAME, ENV_ANGULAR_NODE_APP_BUILD_PWA_SHORT_NAME, ENV_ANGULAR_NODE_APP_BUILD_PWA_START_URL, ENV_ANGULAR_NODE_APP_BUILD_SSR, ENV_ANGULAR_NODE_APP_BUILD_WATCH, ENV_ANGULAR_NODE_APP_BUILD_WEBSQL, ENV_ANGULAR_NODE_APP_CONFIG_GOOGLE_CLIENT_ID, ENV_ANGULAR_NODE_APP_CONFIG_GOOGLE_SECRET, ENV_ANGULAR_NODE_APP_CONFIG_SUPER_USERS, ENV_ANGULAR_NODE_APP_CONTAINER_END, ENV_ANGULAR_NODE_APP_CONTAINER_ONLY, ENV_ANGULAR_NODE_APP_CONTAINER_SKIP, ENV_ANGULAR_NODE_APP_CONTAINER_SKIP_RELEASED, ENV_ANGULAR_NODE_APP_CONTAINER_START, ENV_ANGULAR_NODE_APP_COPY_TO_MANAGER_BEFORE_COPY_HOOK, ENV_ANGULAR_NODE_APP_COPY_TO_MANAGER_COPY_TO_LOCATIONS, ENV_ANGULAR_NODE_APP_COPY_TO_MANAGER_COPY_TO_PROJECTS, ENV_ANGULAR_NODE_APP_COPY_TO_MANAGER_SKIP, ENV_ANGULAR_NODE_APP_DOCKER_ADDITIONAL_CONTAINER, ENV_ANGULAR_NODE_APP_DOCKER_SKIP_START_IN_ORDER, ENV_ANGULAR_NODE_APP_DOCKER_SKIP_USING_MYSQL_DB, ENV_ANGULAR_NODE_APP_FINISH_CALLBACK, ENV_ANGULAR_NODE_APP_INIT_BRANDING, ENV_ANGULAR_NODE_APP_INIT_STRUCT, ENV_ANGULAR_NODE_APP_IS_CI_PROCESS, ENV_ANGULAR_NODE_APP_LOADING_PRE_ANGULAR_BOOTSTRAP_BACKGROUND, ENV_ANGULAR_NODE_APP_LOADING_PRE_ANGULAR_BOOTSTRAP_LOADER, ENV_ANGULAR_NODE_APP_LOADING_PRE_ANGULAR_BOOTSTRAP_LOADER_NAME, ENV_ANGULAR_NODE_APP_PURPOSE, ENV_ANGULAR_NODE_APP_RECURSIVE_ACTION, ENV_ANGULAR_NODE_APP_RELEASE_AUTO_RELEASE_TASK_NAME, ENV_ANGULAR_NODE_APP_RELEASE_AUTO_RELEASE_USING_CONFIG, ENV_ANGULAR_NODE_APP_RELEASE_CLI_COMPRESS, ENV_ANGULAR_NODE_APP_RELEASE_CLI_INCLUDE_NODE_MODULES, ENV_ANGULAR_NODE_APP_RELEASE_CLI_MINIFY, ENV_ANGULAR_NODE_APP_RELEASE_CLI_OBSCURE, ENV_ANGULAR_NODE_APP_RELEASE_CLI_UGLIFY, ENV_ANGULAR_NODE_APP_RELEASE_ENV_NAME, ENV_ANGULAR_NODE_APP_RELEASE_ENV_NUMBER, ENV_ANGULAR_NODE_APP_RELEASE_INSTALL_LOCALLY, ENV_ANGULAR_NODE_APP_RELEASE_LIB_COMPRESS, ENV_ANGULAR_NODE_APP_RELEASE_LIB_DO_NOT_INCLUDE_LIB_FILES, ENV_ANGULAR_NODE_APP_RELEASE_LIB_INCLUDE_SOURCE_MAPS, ENV_ANGULAR_NODE_APP_RELEASE_LIB_OBSCURE_FILE_BY_FILE, ENV_ANGULAR_NODE_APP_RELEASE_LIB_REMOVE_DTS, ENV_ANGULAR_NODE_APP_RELEASE_LIB_UGLIFY_FILE_BY_FILE, ENV_ANGULAR_NODE_APP_RELEASE_NODE_BACKEND_APP_MINIFY, ENV_ANGULAR_NODE_APP_RELEASE_PUSH_TO_ALL_ORIGINS_WHEN_LOCAL_RELEASE_BRANCH, ENV_ANGULAR_NODE_APP_RELEASE_RELEASE_TYPE, ENV_ANGULAR_NODE_APP_RELEASE_RELEASE_VERSION_BUMP_TYPE, ENV_ANGULAR_NODE_APP_RELEASE_REMOVE_RELEASE_OUTPUT_AFTER_LOCAL_INSTALL, ENV_ANGULAR_NODE_APP_RELEASE_RESOLVED_NEW_VERSION, ENV_ANGULAR_NODE_APP_RELEASE_SKIP_BUILDING_ARTIFACTS, ENV_ANGULAR_NODE_APP_RELEASE_SKIP_CODE_CUTTING, ENV_ANGULAR_NODE_APP_RELEASE_SKIP_DEPLOY, ENV_ANGULAR_NODE_APP_RELEASE_SKIP_NPM_PUBLISH, ENV_ANGULAR_NODE_APP_RELEASE_SKIP_RELEASE_QUESTION, ENV_ANGULAR_NODE_APP_RELEASE_SKIP_RESOLVING_GIT_CHANGES, ENV_ANGULAR_NODE_APP_RELEASE_SKIP_TAG_GIT_PUSH, ENV_ANGULAR_NODE_APP_RELEASE_TAON_INSTANCE_IP, ENV_ANGULAR_NODE_APP_RELEASE_TARGET_ARTIFACT, ENV_ANGULAR_NODE_APP_RELEASE_USE_LOCAL_RELEASE_BRANCH, ENV_ANGULAR_NODE_APP_WEBSITE_DOMAIN, ENV_ANGULAR_NODE_APP_WEBSITE_TITLE, ENV_ANGULAR_NODE_APP_WEBSITE_USE_DOMAIN, ENV_DOCS_WEBAPP_BUILD_BASE_HREF, ENV_DOCS_WEBAPP_BUILD_ELECTRON_SHOW_DEV_TOOLS, ENV_DOCS_WEBAPP_BUILD_GEN_ONLY_CLIENT_CODE, ENV_DOCS_WEBAPP_BUILD_OVERRIDE_OUTPUT_PATH, ENV_DOCS_WEBAPP_BUILD_PROD, ENV_DOCS_WEBAPP_BUILD_PWA_DISABLE_SERVICE_WORKER, ENV_DOCS_WEBAPP_BUILD_PWA_NAME, ENV_DOCS_WEBAPP_BUILD_PWA_SHORT_NAME, ENV_DOCS_WEBAPP_BUILD_PWA_START_URL, ENV_DOCS_WEBAPP_BUILD_SSR, ENV_DOCS_WEBAPP_BUILD_WATCH, ENV_DOCS_WEBAPP_BUILD_WEBSQL, ENV_DOCS_WEBAPP_CONFIG_GOOGLE_CLIENT_ID, ENV_DOCS_WEBAPP_CONFIG_GOOGLE_SECRET, ENV_DOCS_WEBAPP_CONFIG_SUPER_USERS, ENV_DOCS_WEBAPP_CONTAINER_END, ENV_DOCS_WEBAPP_CONTAINER_ONLY, ENV_DOCS_WEBAPP_CONTAINER_SKIP, ENV_DOCS_WEBAPP_CONTAINER_SKIP_RELEASED, ENV_DOCS_WEBAPP_CONTAINER_START, ENV_DOCS_WEBAPP_COPY_TO_MANAGER_BEFORE_COPY_HOOK, ENV_DOCS_WEBAPP_COPY_TO_MANAGER_COPY_TO_LOCATIONS, ENV_DOCS_WEBAPP_COPY_TO_MANAGER_COPY_TO_PROJECTS, ENV_DOCS_WEBAPP_COPY_TO_MANAGER_SKIP, ENV_DOCS_WEBAPP_DOCKER_ADDITIONAL_CONTAINER, ENV_DOCS_WEBAPP_DOCKER_SKIP_START_IN_ORDER, ENV_DOCS_WEBAPP_DOCKER_SKIP_USING_MYSQL_DB, ENV_DOCS_WEBAPP_FINISH_CALLBACK, ENV_DOCS_WEBAPP_INIT_BRANDING, ENV_DOCS_WEBAPP_INIT_STRUCT, ENV_DOCS_WEBAPP_IS_CI_PROCESS, ENV_DOCS_WEBAPP_LOADING_PRE_ANGULAR_BOOTSTRAP_BACKGROUND, ENV_DOCS_WEBAPP_LOADING_PRE_ANGULAR_BOOTSTRAP_LOADER, ENV_DOCS_WEBAPP_LOADING_PRE_ANGULAR_BOOTSTRAP_LOADER_NAME, ENV_DOCS_WEBAPP_PURPOSE, ENV_DOCS_WEBAPP_RECURSIVE_ACTION, ENV_DOCS_WEBAPP_RELEASE_AUTO_RELEASE_TASK_NAME, ENV_DOCS_WEBAPP_RELEASE_AUTO_RELEASE_USING_CONFIG, ENV_DOCS_WEBAPP_RELEASE_CLI_COMPRESS, ENV_DOCS_WEBAPP_RELEASE_CLI_INCLUDE_NODE_MODULES, ENV_DOCS_WEBAPP_RELEASE_CLI_MINIFY, ENV_DOCS_WEBAPP_RELEASE_CLI_OBSCURE, ENV_DOCS_WEBAPP_RELEASE_CLI_UGLIFY, ENV_DOCS_WEBAPP_RELEASE_ENV_NAME, ENV_DOCS_WEBAPP_RELEASE_ENV_NUMBER, ENV_DOCS_WEBAPP_RELEASE_INSTALL_LOCALLY, ENV_DOCS_WEBAPP_RELEASE_LIB_COMPRESS, ENV_DOCS_WEBAPP_RELEASE_LIB_DO_NOT_INCLUDE_LIB_FILES, ENV_DOCS_WEBAPP_RELEASE_LIB_INCLUDE_SOURCE_MAPS, ENV_DOCS_WEBAPP_RELEASE_LIB_OBSCURE_FILE_BY_FILE, ENV_DOCS_WEBAPP_RELEASE_LIB_REMOVE_DTS, ENV_DOCS_WEBAPP_RELEASE_LIB_UGLIFY_FILE_BY_FILE, ENV_DOCS_WEBAPP_RELEASE_NODE_BACKEND_APP_MINIFY, ENV_DOCS_WEBAPP_RELEASE_PUSH_TO_ALL_ORIGINS_WHEN_LOCAL_RELEASE_BRANCH, ENV_DOCS_WEBAPP_RELEASE_RELEASE_TYPE, ENV_DOCS_WEBAPP_RELEASE_RELEASE_VERSION_BUMP_TYPE, ENV_DOCS_WEBAPP_RELEASE_REMOVE_RELEASE_OUTPUT_AFTER_LOCAL_INSTALL, ENV_DOCS_WEBAPP_RELEASE_RESOLVED_NEW_VERSION, ENV_DOCS_WEBAPP_RELEASE_SKIP_BUILDING_ARTIFACTS, ENV_DOCS_WEBAPP_RELEASE_SKIP_CODE_CUTTING, ENV_DOCS_WEBAPP_RELEASE_SKIP_DEPLOY, ENV_DOCS_WEBAPP_RELEASE_SKIP_NPM_PUBLISH, ENV_DOCS_WEBAPP_RELEASE_SKIP_RELEASE_QUESTION, ENV_DOCS_WEBAPP_RELEASE_SKIP_RESOLVING_GIT_CHANGES, ENV_DOCS_WEBAPP_RELEASE_SKIP_TAG_GIT_PUSH, ENV_DOCS_WEBAPP_RELEASE_TAON_INSTANCE_IP, ENV_DOCS_WEBAPP_RELEASE_TARGET_ARTIFACT, ENV_DOCS_WEBAPP_RELEASE_USE_LOCAL_RELEASE_BRANCH, ENV_DOCS_WEBAPP_WEBSITE_DOMAIN, ENV_DOCS_WEBAPP_WEBSITE_TITLE, ENV_DOCS_WEBAPP_WEBSITE_USE_DOMAIN, ENV_ELECTRON_APP_BUILD_BASE_HREF, ENV_ELECTRON_APP_BUILD_ELECTRON_SHOW_DEV_TOOLS, ENV_ELECTRON_APP_BUILD_GEN_ONLY_CLIENT_CODE, ENV_ELECTRON_APP_BUILD_OVERRIDE_OUTPUT_PATH, ENV_ELECTRON_APP_BUILD_PROD, ENV_ELECTRON_APP_BUILD_PWA_DISABLE_SERVICE_WORKER, ENV_ELECTRON_APP_BUILD_PWA_NAME, ENV_ELECTRON_APP_BUILD_PWA_SHORT_NAME, ENV_ELECTRON_APP_BUILD_PWA_START_URL, ENV_ELECTRON_APP_BUILD_SSR, ENV_ELECTRON_APP_BUILD_WATCH, ENV_ELECTRON_APP_BUILD_WEBSQL, ENV_ELECTRON_APP_CONFIG_GOOGLE_CLIENT_ID, ENV_ELECTRON_APP_CONFIG_GOOGLE_SECRET, ENV_ELECTRON_APP_CONFIG_SUPER_USERS, ENV_ELECTRON_APP_CONTAINER_END, ENV_ELECTRON_APP_CONTAINER_ONLY, ENV_ELECTRON_APP_CONTAINER_SKIP, ENV_ELECTRON_APP_CONTAINER_SKIP_RELEASED, ENV_ELECTRON_APP_CONTAINER_START, ENV_ELECTRON_APP_COPY_TO_MANAGER_BEFORE_COPY_HOOK, ENV_ELECTRON_APP_COPY_TO_MANAGER_COPY_TO_LOCATIONS, ENV_ELECTRON_APP_COPY_TO_MANAGER_COPY_TO_PROJECTS, ENV_ELECTRON_APP_COPY_TO_MANAGER_SKIP, ENV_ELECTRON_APP_DOCKER_ADDITIONAL_CONTAINER, ENV_ELECTRON_APP_DOCKER_SKIP_START_IN_ORDER, ENV_ELECTRON_APP_DOCKER_SKIP_USING_MYSQL_DB, ENV_ELECTRON_APP_FINISH_CALLBACK, ENV_ELECTRON_APP_INIT_BRANDING, ENV_ELECTRON_APP_INIT_STRUCT, ENV_ELECTRON_APP_IS_CI_PROCESS, ENV_ELECTRON_APP_LOADING_PRE_ANGULAR_BOOTSTRAP_BACKGROUND, ENV_ELECTRON_APP_LOADING_PRE_ANGULAR_BOOTSTRAP_LOADER, ENV_ELECTRON_APP_LOADING_PRE_ANGULAR_BOOTSTRAP_LOADER_NAME, ENV_ELECTRON_APP_PURPOSE, ENV_ELECTRON_APP_RECURSIVE_ACTION, ENV_ELECTRON_APP_RELEASE_AUTO_RELEASE_TASK_NAME, ENV_ELECTRON_APP_RELEASE_AUTO_RELEASE_USING_CONFIG, ENV_ELECTRON_APP_RELEASE_CLI_COMPRESS, ENV_ELECTRON_APP_RELEASE_CLI_INCLUDE_NODE_MODULES, ENV_ELECTRON_APP_RELEASE_CLI_MINIFY, ENV_ELECTRON_APP_RELEASE_CLI_OBSCURE, ENV_ELECTRON_APP_RELEASE_CLI_UGLIFY, ENV_ELECTRON_APP_RELEASE_ENV_NAME, ENV_ELECTRON_APP_RELEASE_ENV_NUMBER, ENV_ELECTRON_APP_RELEASE_INSTALL_LOCALLY, ENV_ELECTRON_APP_RELEASE_LIB_COMPRESS, ENV_ELECTRON_APP_RELEASE_LIB_DO_NOT_INCLUDE_LIB_FILES, ENV_ELECTRON_APP_RELEASE_LIB_INCLUDE_SOURCE_MAPS, ENV_ELECTRON_APP_RELEASE_LIB_OBSCURE_FILE_BY_FILE, ENV_ELECTRON_APP_RELEASE_LIB_REMOVE_DTS, ENV_ELECTRON_APP_RELEASE_LIB_UGLIFY_FILE_BY_FILE, ENV_ELECTRON_APP_RELEASE_NODE_BACKEND_APP_MINIFY, ENV_ELECTRON_APP_RELEASE_PUSH_TO_ALL_ORIGINS_WHEN_LOCAL_RELEASE_BRANCH, ENV_ELECTRON_APP_RELEASE_RELEASE_TYPE, ENV_ELECTRON_APP_RELEASE_RELEASE_VERSION_BUMP_TYPE, ENV_ELECTRON_APP_RELEASE_REMOVE_RELEASE_OUTPUT_AFTER_LOCAL_INSTALL, ENV_ELECTRON_APP_RELEASE_RESOLVED_NEW_VERSION, ENV_ELECTRON_APP_RELEASE_SKIP_BUILDING_ARTIFACTS, ENV_ELECTRON_APP_RELEASE_SKIP_CODE_CUTTING, ENV_ELECTRON_APP_RELEASE_SKIP_DEPLOY, ENV_ELECTRON_APP_RELEASE_SKIP_NPM_PUBLISH, ENV_ELECTRON_APP_RELEASE_SKIP_RELEASE_QUESTION, ENV_ELECTRON_APP_RELEASE_SKIP_RESOLVING_GIT_CHANGES, ENV_ELECTRON_APP_RELEASE_SKIP_TAG_GIT_PUSH, ENV_ELECTRON_APP_RELEASE_TAON_INSTANCE_IP, ENV_ELECTRON_APP_RELEASE_TARGET_ARTIFACT, ENV_ELECTRON_APP_RELEASE_USE_LOCAL_RELEASE_BRANCH, ENV_ELECTRON_APP_WEBSITE_DOMAIN, ENV_ELECTRON_APP_WEBSITE_TITLE, ENV_ELECTRON_APP_WEBSITE_USE_DOMAIN, ENV_MOBILE_APP_BUILD_BASE_HREF, ENV_MOBILE_APP_BUILD_ELECTRON_SHOW_DEV_TOOLS, ENV_MOBILE_APP_BUILD_GEN_ONLY_CLIENT_CODE, ENV_MOBILE_APP_BUILD_OVERRIDE_OUTPUT_PATH, ENV_MOBILE_APP_BUILD_PROD, ENV_MOBILE_APP_BUILD_PWA_DISABLE_SERVICE_WORKER, ENV_MOBILE_APP_BUILD_PWA_NAME, ENV_MOBILE_APP_BUILD_PWA_SHORT_NAME, ENV_MOBILE_APP_BUILD_PWA_START_URL, ENV_MOBILE_APP_BUILD_SSR, ENV_MOBILE_APP_BUILD_WATCH, ENV_MOBILE_APP_BUILD_WEBSQL, ENV_MOBILE_APP_CONFIG_GOOGLE_CLIENT_ID, ENV_MOBILE_APP_CONFIG_GOOGLE_SECRET, ENV_MOBILE_APP_CONFIG_SUPER_USERS, ENV_MOBILE_APP_CONTAINER_END, ENV_MOBILE_APP_CONTAINER_ONLY, ENV_MOBILE_APP_CONTAINER_SKIP, ENV_MOBILE_APP_CONTAINER_SKIP_RELEASED, ENV_MOBILE_APP_CONTAINER_START, ENV_MOBILE_APP_COPY_TO_MANAGER_BEFORE_COPY_HOOK, ENV_MOBILE_APP_COPY_TO_MANAGER_COPY_TO_LOCATIONS, ENV_MOBILE_APP_COPY_TO_MANAGER_COPY_TO_PROJECTS, ENV_MOBILE_APP_COPY_TO_MANAGER_SKIP, ENV_MOBILE_APP_DOCKER_ADDITIONAL_CONTAINER, ENV_MOBILE_APP_DOCKER_SKIP_START_IN_ORDER, ENV_MOBILE_APP_DOCKER_SKIP_USING_MYSQL_DB, ENV_MOBILE_APP_FINISH_CALLBACK, ENV_MOBILE_APP_INIT_BRANDING, ENV_MOBILE_APP_INIT_STRUCT, ENV_MOBILE_APP_IS_CI_PROCESS, ENV_MOBILE_APP_LOADING_PRE_ANGULAR_BOOTSTRAP_BACKGROUND, ENV_MOBILE_APP_LOADING_PRE_ANGULAR_BOOTSTRAP_LOADER, ENV_MOBILE_APP_LOADING_PRE_ANGULAR_BOOTSTRAP_LOADER_NAME, ENV_MOBILE_APP_PURPOSE, ENV_MOBILE_APP_RECURSIVE_ACTION, ENV_MOBILE_APP_RELEASE_AUTO_RELEASE_TASK_NAME, ENV_MOBILE_APP_RELEASE_AUTO_RELEASE_USING_CONFIG, ENV_MOBILE_APP_RELEASE_CLI_COMPRESS, ENV_MOBILE_APP_RELEASE_CLI_INCLUDE_NODE_MODULES, ENV_MOBILE_APP_RELEASE_CLI_MINIFY, ENV_MOBILE_APP_RELEASE_CLI_OBSCURE, ENV_MOBILE_APP_RELEASE_CLI_UGLIFY, ENV_MOBILE_APP_RELEASE_ENV_NAME, ENV_MOBILE_APP_RELEASE_ENV_NUMBER, ENV_MOBILE_APP_RELEASE_INSTALL_LOCALLY, ENV_MOBILE_APP_RELEASE_LIB_COMPRESS, ENV_MOBILE_APP_RELEASE_LIB_DO_NOT_INCLUDE_LIB_FILES, ENV_MOBILE_APP_RELEASE_LIB_INCLUDE_SOURCE_MAPS, ENV_MOBILE_APP_RELEASE_LIB_OBSCURE_FILE_BY_FILE, ENV_MOBILE_APP_RELEASE_LIB_REMOVE_DTS, ENV_MOBILE_APP_RELEASE_LIB_UGLIFY_FILE_BY_FILE, ENV_MOBILE_APP_RELEASE_NODE_BACKEND_APP_MINIFY, ENV_MOBILE_APP_RELEASE_PUSH_TO_ALL_ORIGINS_WHEN_LOCAL_RELEASE_BRANCH, ENV_MOBILE_APP_RELEASE_RELEASE_TYPE, ENV_MOBILE_APP_RELEASE_RELEASE_VERSION_BUMP_TYPE, ENV_MOBILE_APP_RELEASE_REMOVE_RELEASE_OUTPUT_AFTER_LOCAL_INSTALL, ENV_MOBILE_APP_RELEASE_RESOLVED_NEW_VERSION, ENV_MOBILE_APP_RELEASE_SKIP_BUILDING_ARTIFACTS, ENV_MOBILE_APP_RELEASE_SKIP_CODE_CUTTING, ENV_MOBILE_APP_RELEASE_SKIP_DEPLOY, ENV_MOBILE_APP_RELEASE_SKIP_NPM_PUBLISH, ENV_MOBILE_APP_RELEASE_SKIP_RELEASE_QUESTION, ENV_MOBILE_APP_RELEASE_SKIP_RESOLVING_GIT_CHANGES, ENV_MOBILE_APP_RELEASE_SKIP_TAG_GIT_PUSH, ENV_MOBILE_APP_RELEASE_TAON_INSTANCE_IP, ENV_MOBILE_APP_RELEASE_TARGET_ARTIFACT, ENV_MOBILE_APP_RELEASE_USE_LOCAL_RELEASE_BRANCH, ENV_MOBILE_APP_WEBSITE_DOMAIN, ENV_MOBILE_APP_WEBSITE_TITLE, ENV_MOBILE_APP_WEBSITE_USE_DOMAIN, ENV_NPM_LIB_AND_CLI_TOOL_BUILD_BASE_HREF, ENV_NPM_LIB_AND_CLI_TOOL_BUILD_ELECTRON_SHOW_DEV_TOOLS, ENV_NPM_LIB_AND_CLI_TOOL_BUILD_GEN_ONLY_CLIENT_CODE, ENV_NPM_LIB_AND_CLI_TOOL_BUILD_OVERRIDE_OUTPUT_PATH, ENV_NPM_LIB_AND_CLI_TOOL_BUILD_PROD, ENV_NPM_LIB_AND_CLI_TOOL_BUILD_PWA_DISABLE_SERVICE_WORKER, ENV_NPM_LIB_AND_CLI_TOOL_BUILD_PWA_NAME, ENV_NPM_LIB_AND_CLI_TOOL_BUILD_PWA_SHORT_NAME, ENV_NPM_LIB_AND_CLI_TOOL_BUILD_PWA_START_URL, ENV_NPM_LIB_AND_CLI_TOOL_BUILD_SSR, ENV_NPM_LIB_AND_CLI_TOOL_BUILD_WATCH, ENV_NPM_LIB_AND_CLI_TOOL_BUILD_WEBSQL, ENV_NPM_LIB_AND_CLI_TOOL_CONFIG_GOOGLE_CLIENT_ID, ENV_NPM_LIB_AND_CLI_TOOL_CONFIG_GOOGLE_SECRET, ENV_NPM_LIB_AND_CLI_TOOL_CONFIG_SUPER_USERS, ENV_NPM_LIB_AND_CLI_TOOL_CONTAINER_END, ENV_NPM_LIB_AND_CLI_TOOL_CONTAINER_ONLY, ENV_NPM_LIB_AND_CLI_TOOL_CONTAINER_SKIP, ENV_NPM_LIB_AND_CLI_TOOL_CONTAINER_SKIP_RELEASED, ENV_NPM_LIB_AND_CLI_TOOL_CONTAINER_START, ENV_NPM_LIB_AND_CLI_TOOL_COPY_TO_MANAGER_BEFORE_COPY_HOOK, ENV_NPM_LIB_AND_CLI_TOOL_COPY_TO_MANAGER_COPY_TO_LOCATIONS, ENV_NPM_LIB_AND_CLI_TOOL_COPY_TO_MANAGER_COPY_TO_PROJECTS, ENV_NPM_LIB_AND_CLI_TOOL_COPY_TO_MANAGER_SKIP, ENV_NPM_LIB_AND_CLI_TOOL_DOCKER_ADDITIONAL_CONTAINER, ENV_NPM_LIB_AND_CLI_TOOL_DOCKER_SKIP_START_IN_ORDER, ENV_NPM_LIB_AND_CLI_TOOL_DOCKER_SKIP_USING_MYSQL_DB, ENV_NPM_LIB_AND_CLI_TOOL_FINISH_CALLBACK, ENV_NPM_LIB_AND_CLI_TOOL_INIT_BRANDING, ENV_NPM_LIB_AND_CLI_TOOL_INIT_STRUCT, ENV_NPM_LIB_AND_CLI_TOOL_IS_CI_PROCESS, ENV_NPM_LIB_AND_CLI_TOOL_LOADING_PRE_ANGULAR_BOOTSTRAP_BACKGROUND, ENV_NPM_LIB_AND_CLI_TOOL_LOADING_PRE_ANGULAR_BOOTSTRAP_LOADER, ENV_NPM_LIB_AND_CLI_TOOL_LOADING_PRE_ANGULAR_BOOTSTRAP_LOADER_NAME, ENV_NPM_LIB_AND_CLI_TOOL_PURPOSE, ENV_NPM_LIB_AND_CLI_TOOL_RECURSIVE_ACTION, ENV_NPM_LIB_AND_CLI_TOOL_RELEASE_AUTO_RELEASE_TASK_NAME, ENV_NPM_LIB_AND_CLI_TOOL_RELEASE_AUTO_RELEASE_USING_CONFIG, ENV_NPM_LIB_AND_CLI_TOOL_RELEASE_CLI_COMPRESS, ENV_NPM_LIB_AND_CLI_TOOL_RELEASE_CLI_INCLUDE_NODE_MODULES, ENV_NPM_LIB_AND_CLI_TOOL_RELEASE_CLI_MINIFY, ENV_NPM_LIB_AND_CLI_TOOL_RELEASE_CLI_OBSCURE, ENV_NPM_LIB_AND_CLI_TOOL_RELEASE_CLI_UGLIFY, ENV_NPM_LIB_AND_CLI_TOOL_RELEASE_ENV_NAME, ENV_NPM_LIB_AND_CLI_TOOL_RELEASE_ENV_NUMBER, ENV_NPM_LIB_AND_CLI_TOOL_RELEASE_INSTALL_LOCALLY, ENV_NPM_LIB_AND_CLI_TOOL_RELEASE_LIB_COMPRESS, ENV_NPM_LIB_AND_CLI_TOOL_RELEASE_LIB_DO_NOT_INCLUDE_LIB_FILES, ENV_NPM_LIB_AND_CLI_TOOL_RELEASE_LIB_INCLUDE_SOURCE_MAPS, ENV_NPM_LIB_AND_CLI_TOOL_RELEASE_LIB_OBSCURE_FILE_BY_FILE, ENV_NPM_LIB_AND_CLI_TOOL_RELEASE_LIB_REMOVE_DTS, ENV_NPM_LIB_AND_CLI_TOOL_RELEASE_LIB_UGLIFY_FILE_BY_FILE, ENV_NPM_LIB_AND_CLI_TOOL_RELEASE_NODE_BACKEND_APP_MINIFY, ENV_NPM_LIB_AND_CLI_TOOL_RELEASE_PUSH_TO_ALL_ORIGINS_WHEN_LOCAL_RELEASE_BRANCH, ENV_NPM_LIB_AND_CLI_TOOL_RELEASE_RELEASE_TYPE, ENV_NPM_LIB_AND_CLI_TOOL_RELEASE_RELEASE_VERSION_BUMP_TYPE, ENV_NPM_LIB_AND_CLI_TOOL_RELEASE_REMOVE_RELEASE_OUTPUT_AFTER_LOCAL_INSTALL, ENV_NPM_LIB_AND_CLI_TOOL_RELEASE_RESOLVED_NEW_VERSION, ENV_NPM_LIB_AND_CLI_TOOL_RELEASE_SKIP_BUILDING_ARTIFACTS, ENV_NPM_LIB_AND_CLI_TOOL_RELEASE_SKIP_CODE_CUTTING, ENV_NPM_LIB_AND_CLI_TOOL_RELEASE_SKIP_DEPLOY, ENV_NPM_LIB_AND_CLI_TOOL_RELEASE_SKIP_NPM_PUBLISH, ENV_NPM_LIB_AND_CLI_TOOL_RELEASE_SKIP_RELEASE_QUESTION, ENV_NPM_LIB_AND_CLI_TOOL_RELEASE_SKIP_RESOLVING_GIT_CHANGES, ENV_NPM_LIB_AND_CLI_TOOL_RELEASE_SKIP_TAG_GIT_PUSH, ENV_NPM_LIB_AND_CLI_TOOL_RELEASE_TAON_INSTANCE_IP, ENV_NPM_LIB_AND_CLI_TOOL_RELEASE_TARGET_ARTIFACT, ENV_NPM_LIB_AND_CLI_TOOL_RELEASE_USE_LOCAL_RELEASE_BRANCH, ENV_NPM_LIB_AND_CLI_TOOL_WEBSITE_DOMAIN, ENV_NPM_LIB_AND_CLI_TOOL_WEBSITE_TITLE, ENV_NPM_LIB_AND_CLI_TOOL_WEBSITE_USE_DOMAIN, ENV_VSCODE_PLUGIN_BUILD_BASE_HREF, ENV_VSCODE_PLUGIN_BUILD_ELECTRON_SHOW_DEV_TOOLS, ENV_VSCODE_PLUGIN_BUILD_GEN_ONLY_CLIENT_CODE, ENV_VSCODE_PLUGIN_BUILD_OVERRIDE_OUTPUT_PATH, ENV_VSCODE_PLUGIN_BUILD_PROD, ENV_VSCODE_PLUGIN_BUILD_PWA_DISABLE_SERVICE_WORKER, ENV_VSCODE_PLUGIN_BUILD_PWA_NAME, ENV_VSCODE_PLUGIN_BUILD_PWA_SHORT_NAME, ENV_VSCODE_PLUGIN_BUILD_PWA_START_URL, ENV_VSCODE_PLUGIN_BUILD_SSR, ENV_VSCODE_PLUGIN_BUILD_WATCH, ENV_VSCODE_PLUGIN_BUILD_WEBSQL, ENV_VSCODE_PLUGIN_CONFIG_GOOGLE_CLIENT_ID, ENV_VSCODE_PLUGIN_CONFIG_GOOGLE_SECRET, ENV_VSCODE_PLUGIN_CONFIG_SUPER_USERS, ENV_VSCODE_PLUGIN_CONTAINER_END, ENV_VSCODE_PLUGIN_CONTAINER_ONLY, ENV_VSCODE_PLUGIN_CONTAINER_SKIP, ENV_VSCODE_PLUGIN_CONTAINER_SKIP_RELEASED, ENV_VSCODE_PLUGIN_CONTAINER_START, ENV_VSCODE_PLUGIN_COPY_TO_MANAGER_BEFORE_COPY_HOOK, ENV_VSCODE_PLUGIN_COPY_TO_MANAGER_COPY_TO_LOCATIONS, ENV_VSCODE_PLUGIN_COPY_TO_MANAGER_COPY_TO_PROJECTS, ENV_VSCODE_PLUGIN_COPY_TO_MANAGER_SKIP, ENV_VSCODE_PLUGIN_DOCKER_ADDITIONAL_CONTAINER, ENV_VSCODE_PLUGIN_DOCKER_SKIP_START_IN_ORDER, ENV_VSCODE_PLUGIN_DOCKER_SKIP_USING_MYSQL_DB, ENV_VSCODE_PLUGIN_FINISH_CALLBACK, ENV_VSCODE_PLUGIN_INIT_BRANDING, ENV_VSCODE_PLUGIN_INIT_STRUCT, ENV_VSCODE_PLUGIN_IS_CI_PROCESS, ENV_VSCODE_PLUGIN_LOADING_PRE_ANGULAR_BOOTSTRAP_BACKGROUND, ENV_VSCODE_PLUGIN_LOADING_PRE_ANGULAR_BOOTSTRAP_LOADER, ENV_VSCODE_PLUGIN_LOADING_PRE_ANGULAR_BOOTSTRAP_LOADER_NAME, ENV_VSCODE_PLUGIN_PURPOSE, ENV_VSCODE_PLUGIN_RECURSIVE_ACTION, ENV_VSCODE_PLUGIN_RELEASE_AUTO_RELEASE_TASK_NAME, ENV_VSCODE_PLUGIN_RELEASE_AUTO_RELEASE_USING_CONFIG, ENV_VSCODE_PLUGIN_RELEASE_CLI_COMPRESS, ENV_VSCODE_PLUGIN_RELEASE_CLI_INCLUDE_NODE_MODULES, ENV_VSCODE_PLUGIN_RELEASE_CLI_MINIFY, ENV_VSCODE_PLUGIN_RELEASE_CLI_OBSCURE, ENV_VSCODE_PLUGIN_RELEASE_CLI_UGLIFY, ENV_VSCODE_PLUGIN_RELEASE_ENV_NAME, ENV_VSCODE_PLUGIN_RELEASE_ENV_NUMBER, ENV_VSCODE_PLUGIN_RELEASE_INSTALL_LOCALLY, ENV_VSCODE_PLUGIN_RELEASE_LIB_COMPRESS, ENV_VSCODE_PLUGIN_RELEASE_LIB_DO_NOT_INCLUDE_LIB_FILES, ENV_VSCODE_PLUGIN_RELEASE_LIB_INCLUDE_SOURCE_MAPS, ENV_VSCODE_PLUGIN_RELEASE_LIB_OBSCURE_FILE_BY_FILE, ENV_VSCODE_PLUGIN_RELEASE_LIB_REMOVE_DTS, ENV_VSCODE_PLUGIN_RELEASE_LIB_UGLIFY_FILE_BY_FILE, ENV_VSCODE_PLUGIN_RELEASE_NODE_BACKEND_APP_MINIFY, ENV_VSCODE_PLUGIN_RELEASE_PUSH_TO_ALL_ORIGINS_WHEN_LOCAL_RELEASE_BRANCH, ENV_VSCODE_PLUGIN_RELEASE_RELEASE_TYPE, ENV_VSCODE_PLUGIN_RELEASE_RELEASE_VERSION_BUMP_TYPE, ENV_VSCODE_PLUGIN_RELEASE_REMOVE_RELEASE_OUTPUT_AFTER_LOCAL_INSTALL, ENV_VSCODE_PLUGIN_RELEASE_RESOLVED_NEW_VERSION, ENV_VSCODE_PLUGIN_RELEASE_SKIP_BUILDING_ARTIFACTS, ENV_VSCODE_PLUGIN_RELEASE_SKIP_CODE_CUTTING, ENV_VSCODE_PLUGIN_RELEASE_SKIP_DEPLOY, ENV_VSCODE_PLUGIN_RELEASE_SKIP_NPM_PUBLISH, ENV_VSCODE_PLUGIN_RELEASE_SKIP_RELEASE_QUESTION, ENV_VSCODE_PLUGIN_RELEASE_SKIP_RESOLVING_GIT_CHANGES, ENV_VSCODE_PLUGIN_RELEASE_SKIP_TAG_GIT_PUSH, ENV_VSCODE_PLUGIN_RELEASE_TAON_INSTANCE_IP, ENV_VSCODE_PLUGIN_RELEASE_TARGET_ARTIFACT, ENV_VSCODE_PLUGIN_RELEASE_USE_LOCAL_RELEASE_BRANCH, ENV_VSCODE_PLUGIN_WEBSITE_DOMAIN, ENV_VSCODE_PLUGIN_WEBSITE_TITLE, ENV_VSCODE_PLUGIN_WEBSITE_USE_DOMAIN, MIGRATIONS_CLASSES_FOR_ECommerceContext, PROJECT_NPM_NAME, TaonECommerceAbstractContext, TaonECommerceBackofficeComponent, TaonECommerceBackofficeRoutes, TaonECommerceCartAbstractContext, TaonECommerceCartApiService, TaonECommerceCartConfigService, TaonECommerceCartController, TaonECommerceCartDefaultsValues, TaonECommerceCartEntity, TaonECommerceCartErrors, TaonECommerceCartItemAbstractContext, TaonECommerceCartItemApiService, TaonECommerceCartItemConfigService, TaonECommerceCartItemController, TaonECommerceCartItemDefaultsValues, TaonECommerceCartItemEntity, TaonECommerceCartItemErrors, TaonECommerceCartItemKvRepository, TaonECommerceCartItemMiddleware, TaonECommerceCartItemModels__NS__TaonECommerceCartItemState, TaonECommerceCartItemProvider, TaonECommerceCartItemRepository, TaonECommerceCartItemSubscriber, TaonECommerceCartItemTranslationErorsMap, TaonECommerceCartItemUtils__NS__isActive, TaonECommerceCartItemValidators__NS__passwordMatchValidator, TaonECommerceCartKvRepository, TaonECommerceCartMiddleware, TaonECommerceCartModels__NS__TaonECommerceCartState, TaonECommerceCartProvider, TaonECommerceCartRepository, TaonECommerceCartSubscriber, TaonECommerceCartTranslationErorsMap, TaonECommerceCartUtils__NS__isActive, TaonECommerceCartValidators__NS__passwordMatchValidator, TaonECommerceProductAbstractContext, TaonECommerceProductApiService, TaonECommerceProductConfigService, TaonECommerceProductController, TaonECommerceProductDefaultsValues, TaonECommerceProductEntity, TaonECommerceProductErrors, TaonECommerceProductKvRepository, TaonECommerceProductMiddleware, TaonECommerceProductModels__NS__TaonECommerceProductState, TaonECommerceProductProvider, TaonECommerceProductRepository, TaonECommerceProductSubscriber, TaonECommerceProductTranslationErorsMap, TaonECommerceProductUtils__NS__isActive, TaonECommerceProductValidators__NS__passwordMatchValidator, myOrgProj, startCli };
|
|
4917
|
+
export { APP_ID, BUILD_BASE_HREF, BUILD_FRAMEWORK_CLI_NAME, CURRENT_PACKAGE_TAON_VERSION, CURRENT_PACKAGE_VERSION, ENV_ANGULAR_NODE_APP_BUILD_BASE_HREF, ENV_ANGULAR_NODE_APP_BUILD_ELECTRON_SHOW_DEV_TOOLS, ENV_ANGULAR_NODE_APP_BUILD_GEN_ONLY_CLIENT_CODE, ENV_ANGULAR_NODE_APP_BUILD_OVERRIDE_OUTPUT_PATH, ENV_ANGULAR_NODE_APP_BUILD_PROD, ENV_ANGULAR_NODE_APP_BUILD_PWA_DISABLE_SERVICE_WORKER, ENV_ANGULAR_NODE_APP_BUILD_PWA_NAME, ENV_ANGULAR_NODE_APP_BUILD_PWA_SHORT_NAME, ENV_ANGULAR_NODE_APP_BUILD_PWA_START_URL, ENV_ANGULAR_NODE_APP_BUILD_SSR, ENV_ANGULAR_NODE_APP_BUILD_WATCH, ENV_ANGULAR_NODE_APP_BUILD_WEBSQL, ENV_ANGULAR_NODE_APP_CONFIG_GOOGLE_CLIENT_ID, ENV_ANGULAR_NODE_APP_CONFIG_GOOGLE_SECRET, ENV_ANGULAR_NODE_APP_CONFIG_SUPER_USERS, ENV_ANGULAR_NODE_APP_CONTAINER_END, ENV_ANGULAR_NODE_APP_CONTAINER_ONLY, ENV_ANGULAR_NODE_APP_CONTAINER_SKIP, ENV_ANGULAR_NODE_APP_CONTAINER_SKIP_RELEASED, ENV_ANGULAR_NODE_APP_CONTAINER_START, ENV_ANGULAR_NODE_APP_COPY_TO_MANAGER_BEFORE_COPY_HOOK, ENV_ANGULAR_NODE_APP_COPY_TO_MANAGER_COPY_TO_LOCATIONS, ENV_ANGULAR_NODE_APP_COPY_TO_MANAGER_COPY_TO_PROJECTS, ENV_ANGULAR_NODE_APP_COPY_TO_MANAGER_SKIP, ENV_ANGULAR_NODE_APP_DOCKER_ADDITIONAL_CONTAINER, ENV_ANGULAR_NODE_APP_DOCKER_SKIP_START_IN_ORDER, ENV_ANGULAR_NODE_APP_DOCKER_SKIP_USING_MYSQL_DB, ENV_ANGULAR_NODE_APP_FINISH_CALLBACK, ENV_ANGULAR_NODE_APP_INIT_BRANDING, ENV_ANGULAR_NODE_APP_INIT_STRUCT, ENV_ANGULAR_NODE_APP_IS_CI_PROCESS, ENV_ANGULAR_NODE_APP_LOADING_PRE_ANGULAR_BOOTSTRAP_BACKGROUND, ENV_ANGULAR_NODE_APP_LOADING_PRE_ANGULAR_BOOTSTRAP_LOADER, ENV_ANGULAR_NODE_APP_LOADING_PRE_ANGULAR_BOOTSTRAP_LOADER_NAME, ENV_ANGULAR_NODE_APP_PURPOSE, ENV_ANGULAR_NODE_APP_RECURSIVE_ACTION, ENV_ANGULAR_NODE_APP_RELEASE_AUTO_RELEASE_TASK_NAME, ENV_ANGULAR_NODE_APP_RELEASE_AUTO_RELEASE_USING_CONFIG, ENV_ANGULAR_NODE_APP_RELEASE_CLI_COMPRESS, ENV_ANGULAR_NODE_APP_RELEASE_CLI_INCLUDE_NODE_MODULES, ENV_ANGULAR_NODE_APP_RELEASE_CLI_MINIFY, ENV_ANGULAR_NODE_APP_RELEASE_CLI_OBSCURE, ENV_ANGULAR_NODE_APP_RELEASE_CLI_UGLIFY, ENV_ANGULAR_NODE_APP_RELEASE_ENV_NAME, ENV_ANGULAR_NODE_APP_RELEASE_ENV_NUMBER, ENV_ANGULAR_NODE_APP_RELEASE_INSTALL_LOCALLY, ENV_ANGULAR_NODE_APP_RELEASE_LIB_COMPRESS, ENV_ANGULAR_NODE_APP_RELEASE_LIB_DO_NOT_INCLUDE_LIB_FILES, ENV_ANGULAR_NODE_APP_RELEASE_LIB_INCLUDE_SOURCE_MAPS, ENV_ANGULAR_NODE_APP_RELEASE_LIB_OBSCURE_FILE_BY_FILE, ENV_ANGULAR_NODE_APP_RELEASE_LIB_REMOVE_DTS, ENV_ANGULAR_NODE_APP_RELEASE_LIB_UGLIFY_FILE_BY_FILE, ENV_ANGULAR_NODE_APP_RELEASE_NODE_BACKEND_APP_MINIFY, ENV_ANGULAR_NODE_APP_RELEASE_PUSH_TO_ALL_ORIGINS_WHEN_LOCAL_RELEASE_BRANCH, ENV_ANGULAR_NODE_APP_RELEASE_RELEASE_TYPE, ENV_ANGULAR_NODE_APP_RELEASE_RELEASE_VERSION_BUMP_TYPE, ENV_ANGULAR_NODE_APP_RELEASE_REMOVE_RELEASE_OUTPUT_AFTER_LOCAL_INSTALL, ENV_ANGULAR_NODE_APP_RELEASE_RESOLVED_NEW_VERSION, ENV_ANGULAR_NODE_APP_RELEASE_SKIP_BUILDING_ARTIFACTS, ENV_ANGULAR_NODE_APP_RELEASE_SKIP_CODE_CUTTING, ENV_ANGULAR_NODE_APP_RELEASE_SKIP_DEPLOY, ENV_ANGULAR_NODE_APP_RELEASE_SKIP_NPM_PUBLISH, ENV_ANGULAR_NODE_APP_RELEASE_SKIP_RELEASE_QUESTION, ENV_ANGULAR_NODE_APP_RELEASE_SKIP_RESOLVING_GIT_CHANGES, ENV_ANGULAR_NODE_APP_RELEASE_SKIP_TAG_GIT_PUSH, ENV_ANGULAR_NODE_APP_RELEASE_TAON_INSTANCE_IP, ENV_ANGULAR_NODE_APP_RELEASE_TARGET_ARTIFACT, ENV_ANGULAR_NODE_APP_RELEASE_USE_LOCAL_RELEASE_BRANCH, ENV_ANGULAR_NODE_APP_WEBSITE_DOMAIN, ENV_ANGULAR_NODE_APP_WEBSITE_TITLE, ENV_ANGULAR_NODE_APP_WEBSITE_USE_DOMAIN, ENV_DOCS_WEBAPP_BUILD_BASE_HREF, ENV_DOCS_WEBAPP_BUILD_ELECTRON_SHOW_DEV_TOOLS, ENV_DOCS_WEBAPP_BUILD_GEN_ONLY_CLIENT_CODE, ENV_DOCS_WEBAPP_BUILD_OVERRIDE_OUTPUT_PATH, ENV_DOCS_WEBAPP_BUILD_PROD, ENV_DOCS_WEBAPP_BUILD_PWA_DISABLE_SERVICE_WORKER, ENV_DOCS_WEBAPP_BUILD_PWA_NAME, ENV_DOCS_WEBAPP_BUILD_PWA_SHORT_NAME, ENV_DOCS_WEBAPP_BUILD_PWA_START_URL, ENV_DOCS_WEBAPP_BUILD_SSR, ENV_DOCS_WEBAPP_BUILD_WATCH, ENV_DOCS_WEBAPP_BUILD_WEBSQL, ENV_DOCS_WEBAPP_CONFIG_GOOGLE_CLIENT_ID, ENV_DOCS_WEBAPP_CONFIG_GOOGLE_SECRET, ENV_DOCS_WEBAPP_CONFIG_SUPER_USERS, ENV_DOCS_WEBAPP_CONTAINER_END, ENV_DOCS_WEBAPP_CONTAINER_ONLY, ENV_DOCS_WEBAPP_CONTAINER_SKIP, ENV_DOCS_WEBAPP_CONTAINER_SKIP_RELEASED, ENV_DOCS_WEBAPP_CONTAINER_START, ENV_DOCS_WEBAPP_COPY_TO_MANAGER_BEFORE_COPY_HOOK, ENV_DOCS_WEBAPP_COPY_TO_MANAGER_COPY_TO_LOCATIONS, ENV_DOCS_WEBAPP_COPY_TO_MANAGER_COPY_TO_PROJECTS, ENV_DOCS_WEBAPP_COPY_TO_MANAGER_SKIP, ENV_DOCS_WEBAPP_DOCKER_ADDITIONAL_CONTAINER, ENV_DOCS_WEBAPP_DOCKER_SKIP_START_IN_ORDER, ENV_DOCS_WEBAPP_DOCKER_SKIP_USING_MYSQL_DB, ENV_DOCS_WEBAPP_FINISH_CALLBACK, ENV_DOCS_WEBAPP_INIT_BRANDING, ENV_DOCS_WEBAPP_INIT_STRUCT, ENV_DOCS_WEBAPP_IS_CI_PROCESS, ENV_DOCS_WEBAPP_LOADING_PRE_ANGULAR_BOOTSTRAP_BACKGROUND, ENV_DOCS_WEBAPP_LOADING_PRE_ANGULAR_BOOTSTRAP_LOADER, ENV_DOCS_WEBAPP_LOADING_PRE_ANGULAR_BOOTSTRAP_LOADER_NAME, ENV_DOCS_WEBAPP_PURPOSE, ENV_DOCS_WEBAPP_RECURSIVE_ACTION, ENV_DOCS_WEBAPP_RELEASE_AUTO_RELEASE_TASK_NAME, ENV_DOCS_WEBAPP_RELEASE_AUTO_RELEASE_USING_CONFIG, ENV_DOCS_WEBAPP_RELEASE_CLI_COMPRESS, ENV_DOCS_WEBAPP_RELEASE_CLI_INCLUDE_NODE_MODULES, ENV_DOCS_WEBAPP_RELEASE_CLI_MINIFY, ENV_DOCS_WEBAPP_RELEASE_CLI_OBSCURE, ENV_DOCS_WEBAPP_RELEASE_CLI_UGLIFY, ENV_DOCS_WEBAPP_RELEASE_ENV_NAME, ENV_DOCS_WEBAPP_RELEASE_ENV_NUMBER, ENV_DOCS_WEBAPP_RELEASE_INSTALL_LOCALLY, ENV_DOCS_WEBAPP_RELEASE_LIB_COMPRESS, ENV_DOCS_WEBAPP_RELEASE_LIB_DO_NOT_INCLUDE_LIB_FILES, ENV_DOCS_WEBAPP_RELEASE_LIB_INCLUDE_SOURCE_MAPS, ENV_DOCS_WEBAPP_RELEASE_LIB_OBSCURE_FILE_BY_FILE, ENV_DOCS_WEBAPP_RELEASE_LIB_REMOVE_DTS, ENV_DOCS_WEBAPP_RELEASE_LIB_UGLIFY_FILE_BY_FILE, ENV_DOCS_WEBAPP_RELEASE_NODE_BACKEND_APP_MINIFY, ENV_DOCS_WEBAPP_RELEASE_PUSH_TO_ALL_ORIGINS_WHEN_LOCAL_RELEASE_BRANCH, ENV_DOCS_WEBAPP_RELEASE_RELEASE_TYPE, ENV_DOCS_WEBAPP_RELEASE_RELEASE_VERSION_BUMP_TYPE, ENV_DOCS_WEBAPP_RELEASE_REMOVE_RELEASE_OUTPUT_AFTER_LOCAL_INSTALL, ENV_DOCS_WEBAPP_RELEASE_RESOLVED_NEW_VERSION, ENV_DOCS_WEBAPP_RELEASE_SKIP_BUILDING_ARTIFACTS, ENV_DOCS_WEBAPP_RELEASE_SKIP_CODE_CUTTING, ENV_DOCS_WEBAPP_RELEASE_SKIP_DEPLOY, ENV_DOCS_WEBAPP_RELEASE_SKIP_NPM_PUBLISH, ENV_DOCS_WEBAPP_RELEASE_SKIP_RELEASE_QUESTION, ENV_DOCS_WEBAPP_RELEASE_SKIP_RESOLVING_GIT_CHANGES, ENV_DOCS_WEBAPP_RELEASE_SKIP_TAG_GIT_PUSH, ENV_DOCS_WEBAPP_RELEASE_TAON_INSTANCE_IP, ENV_DOCS_WEBAPP_RELEASE_TARGET_ARTIFACT, ENV_DOCS_WEBAPP_RELEASE_USE_LOCAL_RELEASE_BRANCH, ENV_DOCS_WEBAPP_WEBSITE_DOMAIN, ENV_DOCS_WEBAPP_WEBSITE_TITLE, ENV_DOCS_WEBAPP_WEBSITE_USE_DOMAIN, ENV_ELECTRON_APP_BUILD_BASE_HREF, ENV_ELECTRON_APP_BUILD_ELECTRON_SHOW_DEV_TOOLS, ENV_ELECTRON_APP_BUILD_GEN_ONLY_CLIENT_CODE, ENV_ELECTRON_APP_BUILD_OVERRIDE_OUTPUT_PATH, ENV_ELECTRON_APP_BUILD_PROD, ENV_ELECTRON_APP_BUILD_PWA_DISABLE_SERVICE_WORKER, ENV_ELECTRON_APP_BUILD_PWA_NAME, ENV_ELECTRON_APP_BUILD_PWA_SHORT_NAME, ENV_ELECTRON_APP_BUILD_PWA_START_URL, ENV_ELECTRON_APP_BUILD_SSR, ENV_ELECTRON_APP_BUILD_WATCH, ENV_ELECTRON_APP_BUILD_WEBSQL, ENV_ELECTRON_APP_CONFIG_GOOGLE_CLIENT_ID, ENV_ELECTRON_APP_CONFIG_GOOGLE_SECRET, ENV_ELECTRON_APP_CONFIG_SUPER_USERS, ENV_ELECTRON_APP_CONTAINER_END, ENV_ELECTRON_APP_CONTAINER_ONLY, ENV_ELECTRON_APP_CONTAINER_SKIP, ENV_ELECTRON_APP_CONTAINER_SKIP_RELEASED, ENV_ELECTRON_APP_CONTAINER_START, ENV_ELECTRON_APP_COPY_TO_MANAGER_BEFORE_COPY_HOOK, ENV_ELECTRON_APP_COPY_TO_MANAGER_COPY_TO_LOCATIONS, ENV_ELECTRON_APP_COPY_TO_MANAGER_COPY_TO_PROJECTS, ENV_ELECTRON_APP_COPY_TO_MANAGER_SKIP, ENV_ELECTRON_APP_DOCKER_ADDITIONAL_CONTAINER, ENV_ELECTRON_APP_DOCKER_SKIP_START_IN_ORDER, ENV_ELECTRON_APP_DOCKER_SKIP_USING_MYSQL_DB, ENV_ELECTRON_APP_FINISH_CALLBACK, ENV_ELECTRON_APP_INIT_BRANDING, ENV_ELECTRON_APP_INIT_STRUCT, ENV_ELECTRON_APP_IS_CI_PROCESS, ENV_ELECTRON_APP_LOADING_PRE_ANGULAR_BOOTSTRAP_BACKGROUND, ENV_ELECTRON_APP_LOADING_PRE_ANGULAR_BOOTSTRAP_LOADER, ENV_ELECTRON_APP_LOADING_PRE_ANGULAR_BOOTSTRAP_LOADER_NAME, ENV_ELECTRON_APP_PURPOSE, ENV_ELECTRON_APP_RECURSIVE_ACTION, ENV_ELECTRON_APP_RELEASE_AUTO_RELEASE_TASK_NAME, ENV_ELECTRON_APP_RELEASE_AUTO_RELEASE_USING_CONFIG, ENV_ELECTRON_APP_RELEASE_CLI_COMPRESS, ENV_ELECTRON_APP_RELEASE_CLI_INCLUDE_NODE_MODULES, ENV_ELECTRON_APP_RELEASE_CLI_MINIFY, ENV_ELECTRON_APP_RELEASE_CLI_OBSCURE, ENV_ELECTRON_APP_RELEASE_CLI_UGLIFY, ENV_ELECTRON_APP_RELEASE_ENV_NAME, ENV_ELECTRON_APP_RELEASE_ENV_NUMBER, ENV_ELECTRON_APP_RELEASE_INSTALL_LOCALLY, ENV_ELECTRON_APP_RELEASE_LIB_COMPRESS, ENV_ELECTRON_APP_RELEASE_LIB_DO_NOT_INCLUDE_LIB_FILES, ENV_ELECTRON_APP_RELEASE_LIB_INCLUDE_SOURCE_MAPS, ENV_ELECTRON_APP_RELEASE_LIB_OBSCURE_FILE_BY_FILE, ENV_ELECTRON_APP_RELEASE_LIB_REMOVE_DTS, ENV_ELECTRON_APP_RELEASE_LIB_UGLIFY_FILE_BY_FILE, ENV_ELECTRON_APP_RELEASE_NODE_BACKEND_APP_MINIFY, ENV_ELECTRON_APP_RELEASE_PUSH_TO_ALL_ORIGINS_WHEN_LOCAL_RELEASE_BRANCH, ENV_ELECTRON_APP_RELEASE_RELEASE_TYPE, ENV_ELECTRON_APP_RELEASE_RELEASE_VERSION_BUMP_TYPE, ENV_ELECTRON_APP_RELEASE_REMOVE_RELEASE_OUTPUT_AFTER_LOCAL_INSTALL, ENV_ELECTRON_APP_RELEASE_RESOLVED_NEW_VERSION, ENV_ELECTRON_APP_RELEASE_SKIP_BUILDING_ARTIFACTS, ENV_ELECTRON_APP_RELEASE_SKIP_CODE_CUTTING, ENV_ELECTRON_APP_RELEASE_SKIP_DEPLOY, ENV_ELECTRON_APP_RELEASE_SKIP_NPM_PUBLISH, ENV_ELECTRON_APP_RELEASE_SKIP_RELEASE_QUESTION, ENV_ELECTRON_APP_RELEASE_SKIP_RESOLVING_GIT_CHANGES, ENV_ELECTRON_APP_RELEASE_SKIP_TAG_GIT_PUSH, ENV_ELECTRON_APP_RELEASE_TAON_INSTANCE_IP, ENV_ELECTRON_APP_RELEASE_TARGET_ARTIFACT, ENV_ELECTRON_APP_RELEASE_USE_LOCAL_RELEASE_BRANCH, ENV_ELECTRON_APP_WEBSITE_DOMAIN, ENV_ELECTRON_APP_WEBSITE_TITLE, ENV_ELECTRON_APP_WEBSITE_USE_DOMAIN, ENV_MOBILE_APP_BUILD_BASE_HREF, ENV_MOBILE_APP_BUILD_ELECTRON_SHOW_DEV_TOOLS, ENV_MOBILE_APP_BUILD_GEN_ONLY_CLIENT_CODE, ENV_MOBILE_APP_BUILD_OVERRIDE_OUTPUT_PATH, ENV_MOBILE_APP_BUILD_PROD, ENV_MOBILE_APP_BUILD_PWA_DISABLE_SERVICE_WORKER, ENV_MOBILE_APP_BUILD_PWA_NAME, ENV_MOBILE_APP_BUILD_PWA_SHORT_NAME, ENV_MOBILE_APP_BUILD_PWA_START_URL, ENV_MOBILE_APP_BUILD_SSR, ENV_MOBILE_APP_BUILD_WATCH, ENV_MOBILE_APP_BUILD_WEBSQL, ENV_MOBILE_APP_CONFIG_GOOGLE_CLIENT_ID, ENV_MOBILE_APP_CONFIG_GOOGLE_SECRET, ENV_MOBILE_APP_CONFIG_SUPER_USERS, ENV_MOBILE_APP_CONTAINER_END, ENV_MOBILE_APP_CONTAINER_ONLY, ENV_MOBILE_APP_CONTAINER_SKIP, ENV_MOBILE_APP_CONTAINER_SKIP_RELEASED, ENV_MOBILE_APP_CONTAINER_START, ENV_MOBILE_APP_COPY_TO_MANAGER_BEFORE_COPY_HOOK, ENV_MOBILE_APP_COPY_TO_MANAGER_COPY_TO_LOCATIONS, ENV_MOBILE_APP_COPY_TO_MANAGER_COPY_TO_PROJECTS, ENV_MOBILE_APP_COPY_TO_MANAGER_SKIP, ENV_MOBILE_APP_DOCKER_ADDITIONAL_CONTAINER, ENV_MOBILE_APP_DOCKER_SKIP_START_IN_ORDER, ENV_MOBILE_APP_DOCKER_SKIP_USING_MYSQL_DB, ENV_MOBILE_APP_FINISH_CALLBACK, ENV_MOBILE_APP_INIT_BRANDING, ENV_MOBILE_APP_INIT_STRUCT, ENV_MOBILE_APP_IS_CI_PROCESS, ENV_MOBILE_APP_LOADING_PRE_ANGULAR_BOOTSTRAP_BACKGROUND, ENV_MOBILE_APP_LOADING_PRE_ANGULAR_BOOTSTRAP_LOADER, ENV_MOBILE_APP_LOADING_PRE_ANGULAR_BOOTSTRAP_LOADER_NAME, ENV_MOBILE_APP_PURPOSE, ENV_MOBILE_APP_RECURSIVE_ACTION, ENV_MOBILE_APP_RELEASE_AUTO_RELEASE_TASK_NAME, ENV_MOBILE_APP_RELEASE_AUTO_RELEASE_USING_CONFIG, ENV_MOBILE_APP_RELEASE_CLI_COMPRESS, ENV_MOBILE_APP_RELEASE_CLI_INCLUDE_NODE_MODULES, ENV_MOBILE_APP_RELEASE_CLI_MINIFY, ENV_MOBILE_APP_RELEASE_CLI_OBSCURE, ENV_MOBILE_APP_RELEASE_CLI_UGLIFY, ENV_MOBILE_APP_RELEASE_ENV_NAME, ENV_MOBILE_APP_RELEASE_ENV_NUMBER, ENV_MOBILE_APP_RELEASE_INSTALL_LOCALLY, ENV_MOBILE_APP_RELEASE_LIB_COMPRESS, ENV_MOBILE_APP_RELEASE_LIB_DO_NOT_INCLUDE_LIB_FILES, ENV_MOBILE_APP_RELEASE_LIB_INCLUDE_SOURCE_MAPS, ENV_MOBILE_APP_RELEASE_LIB_OBSCURE_FILE_BY_FILE, ENV_MOBILE_APP_RELEASE_LIB_REMOVE_DTS, ENV_MOBILE_APP_RELEASE_LIB_UGLIFY_FILE_BY_FILE, ENV_MOBILE_APP_RELEASE_NODE_BACKEND_APP_MINIFY, ENV_MOBILE_APP_RELEASE_PUSH_TO_ALL_ORIGINS_WHEN_LOCAL_RELEASE_BRANCH, ENV_MOBILE_APP_RELEASE_RELEASE_TYPE, ENV_MOBILE_APP_RELEASE_RELEASE_VERSION_BUMP_TYPE, ENV_MOBILE_APP_RELEASE_REMOVE_RELEASE_OUTPUT_AFTER_LOCAL_INSTALL, ENV_MOBILE_APP_RELEASE_RESOLVED_NEW_VERSION, ENV_MOBILE_APP_RELEASE_SKIP_BUILDING_ARTIFACTS, ENV_MOBILE_APP_RELEASE_SKIP_CODE_CUTTING, ENV_MOBILE_APP_RELEASE_SKIP_DEPLOY, ENV_MOBILE_APP_RELEASE_SKIP_NPM_PUBLISH, ENV_MOBILE_APP_RELEASE_SKIP_RELEASE_QUESTION, ENV_MOBILE_APP_RELEASE_SKIP_RESOLVING_GIT_CHANGES, ENV_MOBILE_APP_RELEASE_SKIP_TAG_GIT_PUSH, ENV_MOBILE_APP_RELEASE_TAON_INSTANCE_IP, ENV_MOBILE_APP_RELEASE_TARGET_ARTIFACT, ENV_MOBILE_APP_RELEASE_USE_LOCAL_RELEASE_BRANCH, ENV_MOBILE_APP_WEBSITE_DOMAIN, ENV_MOBILE_APP_WEBSITE_TITLE, ENV_MOBILE_APP_WEBSITE_USE_DOMAIN, ENV_NPM_LIB_AND_CLI_TOOL_BUILD_BASE_HREF, ENV_NPM_LIB_AND_CLI_TOOL_BUILD_ELECTRON_SHOW_DEV_TOOLS, ENV_NPM_LIB_AND_CLI_TOOL_BUILD_GEN_ONLY_CLIENT_CODE, ENV_NPM_LIB_AND_CLI_TOOL_BUILD_OVERRIDE_OUTPUT_PATH, ENV_NPM_LIB_AND_CLI_TOOL_BUILD_PROD, ENV_NPM_LIB_AND_CLI_TOOL_BUILD_PWA_DISABLE_SERVICE_WORKER, ENV_NPM_LIB_AND_CLI_TOOL_BUILD_PWA_NAME, ENV_NPM_LIB_AND_CLI_TOOL_BUILD_PWA_SHORT_NAME, ENV_NPM_LIB_AND_CLI_TOOL_BUILD_PWA_START_URL, ENV_NPM_LIB_AND_CLI_TOOL_BUILD_SSR, ENV_NPM_LIB_AND_CLI_TOOL_BUILD_WATCH, ENV_NPM_LIB_AND_CLI_TOOL_BUILD_WEBSQL, ENV_NPM_LIB_AND_CLI_TOOL_CONFIG_GOOGLE_CLIENT_ID, ENV_NPM_LIB_AND_CLI_TOOL_CONFIG_GOOGLE_SECRET, ENV_NPM_LIB_AND_CLI_TOOL_CONFIG_SUPER_USERS, ENV_NPM_LIB_AND_CLI_TOOL_CONTAINER_END, ENV_NPM_LIB_AND_CLI_TOOL_CONTAINER_ONLY, ENV_NPM_LIB_AND_CLI_TOOL_CONTAINER_SKIP, ENV_NPM_LIB_AND_CLI_TOOL_CONTAINER_SKIP_RELEASED, ENV_NPM_LIB_AND_CLI_TOOL_CONTAINER_START, ENV_NPM_LIB_AND_CLI_TOOL_COPY_TO_MANAGER_BEFORE_COPY_HOOK, ENV_NPM_LIB_AND_CLI_TOOL_COPY_TO_MANAGER_COPY_TO_LOCATIONS, ENV_NPM_LIB_AND_CLI_TOOL_COPY_TO_MANAGER_COPY_TO_PROJECTS, ENV_NPM_LIB_AND_CLI_TOOL_COPY_TO_MANAGER_SKIP, ENV_NPM_LIB_AND_CLI_TOOL_DOCKER_ADDITIONAL_CONTAINER, ENV_NPM_LIB_AND_CLI_TOOL_DOCKER_SKIP_START_IN_ORDER, ENV_NPM_LIB_AND_CLI_TOOL_DOCKER_SKIP_USING_MYSQL_DB, ENV_NPM_LIB_AND_CLI_TOOL_FINISH_CALLBACK, ENV_NPM_LIB_AND_CLI_TOOL_INIT_BRANDING, ENV_NPM_LIB_AND_CLI_TOOL_INIT_STRUCT, ENV_NPM_LIB_AND_CLI_TOOL_IS_CI_PROCESS, ENV_NPM_LIB_AND_CLI_TOOL_LOADING_PRE_ANGULAR_BOOTSTRAP_BACKGROUND, ENV_NPM_LIB_AND_CLI_TOOL_LOADING_PRE_ANGULAR_BOOTSTRAP_LOADER, ENV_NPM_LIB_AND_CLI_TOOL_LOADING_PRE_ANGULAR_BOOTSTRAP_LOADER_NAME, ENV_NPM_LIB_AND_CLI_TOOL_PURPOSE, ENV_NPM_LIB_AND_CLI_TOOL_RECURSIVE_ACTION, ENV_NPM_LIB_AND_CLI_TOOL_RELEASE_AUTO_RELEASE_TASK_NAME, ENV_NPM_LIB_AND_CLI_TOOL_RELEASE_AUTO_RELEASE_USING_CONFIG, ENV_NPM_LIB_AND_CLI_TOOL_RELEASE_CLI_COMPRESS, ENV_NPM_LIB_AND_CLI_TOOL_RELEASE_CLI_INCLUDE_NODE_MODULES, ENV_NPM_LIB_AND_CLI_TOOL_RELEASE_CLI_MINIFY, ENV_NPM_LIB_AND_CLI_TOOL_RELEASE_CLI_OBSCURE, ENV_NPM_LIB_AND_CLI_TOOL_RELEASE_CLI_UGLIFY, ENV_NPM_LIB_AND_CLI_TOOL_RELEASE_ENV_NAME, ENV_NPM_LIB_AND_CLI_TOOL_RELEASE_ENV_NUMBER, ENV_NPM_LIB_AND_CLI_TOOL_RELEASE_INSTALL_LOCALLY, ENV_NPM_LIB_AND_CLI_TOOL_RELEASE_LIB_COMPRESS, ENV_NPM_LIB_AND_CLI_TOOL_RELEASE_LIB_DO_NOT_INCLUDE_LIB_FILES, ENV_NPM_LIB_AND_CLI_TOOL_RELEASE_LIB_INCLUDE_SOURCE_MAPS, ENV_NPM_LIB_AND_CLI_TOOL_RELEASE_LIB_OBSCURE_FILE_BY_FILE, ENV_NPM_LIB_AND_CLI_TOOL_RELEASE_LIB_REMOVE_DTS, ENV_NPM_LIB_AND_CLI_TOOL_RELEASE_LIB_UGLIFY_FILE_BY_FILE, ENV_NPM_LIB_AND_CLI_TOOL_RELEASE_NODE_BACKEND_APP_MINIFY, ENV_NPM_LIB_AND_CLI_TOOL_RELEASE_PUSH_TO_ALL_ORIGINS_WHEN_LOCAL_RELEASE_BRANCH, ENV_NPM_LIB_AND_CLI_TOOL_RELEASE_RELEASE_TYPE, ENV_NPM_LIB_AND_CLI_TOOL_RELEASE_RELEASE_VERSION_BUMP_TYPE, ENV_NPM_LIB_AND_CLI_TOOL_RELEASE_REMOVE_RELEASE_OUTPUT_AFTER_LOCAL_INSTALL, ENV_NPM_LIB_AND_CLI_TOOL_RELEASE_RESOLVED_NEW_VERSION, ENV_NPM_LIB_AND_CLI_TOOL_RELEASE_SKIP_BUILDING_ARTIFACTS, ENV_NPM_LIB_AND_CLI_TOOL_RELEASE_SKIP_CODE_CUTTING, ENV_NPM_LIB_AND_CLI_TOOL_RELEASE_SKIP_DEPLOY, ENV_NPM_LIB_AND_CLI_TOOL_RELEASE_SKIP_NPM_PUBLISH, ENV_NPM_LIB_AND_CLI_TOOL_RELEASE_SKIP_RELEASE_QUESTION, ENV_NPM_LIB_AND_CLI_TOOL_RELEASE_SKIP_RESOLVING_GIT_CHANGES, ENV_NPM_LIB_AND_CLI_TOOL_RELEASE_SKIP_TAG_GIT_PUSH, ENV_NPM_LIB_AND_CLI_TOOL_RELEASE_TAON_INSTANCE_IP, ENV_NPM_LIB_AND_CLI_TOOL_RELEASE_TARGET_ARTIFACT, ENV_NPM_LIB_AND_CLI_TOOL_RELEASE_USE_LOCAL_RELEASE_BRANCH, ENV_NPM_LIB_AND_CLI_TOOL_WEBSITE_DOMAIN, ENV_NPM_LIB_AND_CLI_TOOL_WEBSITE_TITLE, ENV_NPM_LIB_AND_CLI_TOOL_WEBSITE_USE_DOMAIN, ENV_VSCODE_PLUGIN_BUILD_BASE_HREF, ENV_VSCODE_PLUGIN_BUILD_ELECTRON_SHOW_DEV_TOOLS, ENV_VSCODE_PLUGIN_BUILD_GEN_ONLY_CLIENT_CODE, ENV_VSCODE_PLUGIN_BUILD_OVERRIDE_OUTPUT_PATH, ENV_VSCODE_PLUGIN_BUILD_PROD, ENV_VSCODE_PLUGIN_BUILD_PWA_DISABLE_SERVICE_WORKER, ENV_VSCODE_PLUGIN_BUILD_PWA_NAME, ENV_VSCODE_PLUGIN_BUILD_PWA_SHORT_NAME, ENV_VSCODE_PLUGIN_BUILD_PWA_START_URL, ENV_VSCODE_PLUGIN_BUILD_SSR, ENV_VSCODE_PLUGIN_BUILD_WATCH, ENV_VSCODE_PLUGIN_BUILD_WEBSQL, ENV_VSCODE_PLUGIN_CONFIG_GOOGLE_CLIENT_ID, ENV_VSCODE_PLUGIN_CONFIG_GOOGLE_SECRET, ENV_VSCODE_PLUGIN_CONFIG_SUPER_USERS, ENV_VSCODE_PLUGIN_CONTAINER_END, ENV_VSCODE_PLUGIN_CONTAINER_ONLY, ENV_VSCODE_PLUGIN_CONTAINER_SKIP, ENV_VSCODE_PLUGIN_CONTAINER_SKIP_RELEASED, ENV_VSCODE_PLUGIN_CONTAINER_START, ENV_VSCODE_PLUGIN_COPY_TO_MANAGER_BEFORE_COPY_HOOK, ENV_VSCODE_PLUGIN_COPY_TO_MANAGER_COPY_TO_LOCATIONS, ENV_VSCODE_PLUGIN_COPY_TO_MANAGER_COPY_TO_PROJECTS, ENV_VSCODE_PLUGIN_COPY_TO_MANAGER_SKIP, ENV_VSCODE_PLUGIN_DOCKER_ADDITIONAL_CONTAINER, ENV_VSCODE_PLUGIN_DOCKER_SKIP_START_IN_ORDER, ENV_VSCODE_PLUGIN_DOCKER_SKIP_USING_MYSQL_DB, ENV_VSCODE_PLUGIN_FINISH_CALLBACK, ENV_VSCODE_PLUGIN_INIT_BRANDING, ENV_VSCODE_PLUGIN_INIT_STRUCT, ENV_VSCODE_PLUGIN_IS_CI_PROCESS, ENV_VSCODE_PLUGIN_LOADING_PRE_ANGULAR_BOOTSTRAP_BACKGROUND, ENV_VSCODE_PLUGIN_LOADING_PRE_ANGULAR_BOOTSTRAP_LOADER, ENV_VSCODE_PLUGIN_LOADING_PRE_ANGULAR_BOOTSTRAP_LOADER_NAME, ENV_VSCODE_PLUGIN_PURPOSE, ENV_VSCODE_PLUGIN_RECURSIVE_ACTION, ENV_VSCODE_PLUGIN_RELEASE_AUTO_RELEASE_TASK_NAME, ENV_VSCODE_PLUGIN_RELEASE_AUTO_RELEASE_USING_CONFIG, ENV_VSCODE_PLUGIN_RELEASE_CLI_COMPRESS, ENV_VSCODE_PLUGIN_RELEASE_CLI_INCLUDE_NODE_MODULES, ENV_VSCODE_PLUGIN_RELEASE_CLI_MINIFY, ENV_VSCODE_PLUGIN_RELEASE_CLI_OBSCURE, ENV_VSCODE_PLUGIN_RELEASE_CLI_UGLIFY, ENV_VSCODE_PLUGIN_RELEASE_ENV_NAME, ENV_VSCODE_PLUGIN_RELEASE_ENV_NUMBER, ENV_VSCODE_PLUGIN_RELEASE_INSTALL_LOCALLY, ENV_VSCODE_PLUGIN_RELEASE_LIB_COMPRESS, ENV_VSCODE_PLUGIN_RELEASE_LIB_DO_NOT_INCLUDE_LIB_FILES, ENV_VSCODE_PLUGIN_RELEASE_LIB_INCLUDE_SOURCE_MAPS, ENV_VSCODE_PLUGIN_RELEASE_LIB_OBSCURE_FILE_BY_FILE, ENV_VSCODE_PLUGIN_RELEASE_LIB_REMOVE_DTS, ENV_VSCODE_PLUGIN_RELEASE_LIB_UGLIFY_FILE_BY_FILE, ENV_VSCODE_PLUGIN_RELEASE_NODE_BACKEND_APP_MINIFY, ENV_VSCODE_PLUGIN_RELEASE_PUSH_TO_ALL_ORIGINS_WHEN_LOCAL_RELEASE_BRANCH, ENV_VSCODE_PLUGIN_RELEASE_RELEASE_TYPE, ENV_VSCODE_PLUGIN_RELEASE_RELEASE_VERSION_BUMP_TYPE, ENV_VSCODE_PLUGIN_RELEASE_REMOVE_RELEASE_OUTPUT_AFTER_LOCAL_INSTALL, ENV_VSCODE_PLUGIN_RELEASE_RESOLVED_NEW_VERSION, ENV_VSCODE_PLUGIN_RELEASE_SKIP_BUILDING_ARTIFACTS, ENV_VSCODE_PLUGIN_RELEASE_SKIP_CODE_CUTTING, ENV_VSCODE_PLUGIN_RELEASE_SKIP_DEPLOY, ENV_VSCODE_PLUGIN_RELEASE_SKIP_NPM_PUBLISH, ENV_VSCODE_PLUGIN_RELEASE_SKIP_RELEASE_QUESTION, ENV_VSCODE_PLUGIN_RELEASE_SKIP_RESOLVING_GIT_CHANGES, ENV_VSCODE_PLUGIN_RELEASE_SKIP_TAG_GIT_PUSH, ENV_VSCODE_PLUGIN_RELEASE_TAON_INSTANCE_IP, ENV_VSCODE_PLUGIN_RELEASE_TARGET_ARTIFACT, ENV_VSCODE_PLUGIN_RELEASE_USE_LOCAL_RELEASE_BRANCH, ENV_VSCODE_PLUGIN_WEBSITE_DOMAIN, ENV_VSCODE_PLUGIN_WEBSITE_TITLE, ENV_VSCODE_PLUGIN_WEBSITE_USE_DOMAIN, MIGRATIONS_CLASSES_FOR_ECommerceContext, PROJECT_NPM_NAME, TaonCartButtonComponent, TaonCartButtonRoutes, TaonCartComponent, TaonECommerceAbstractContext, TaonECommerceBackofficeComponent, TaonECommerceBackofficeDashboardComponent, TaonECommerceBackofficeDashboardRoutes, TaonECommerceBackofficeRoutes, TaonECommerceBackofficeSettingsApiService, TaonECommerceBackofficeSettingsComponent, TaonECommerceBackofficeSettingsContext, TaonECommerceBackofficeSettingsController, TaonECommerceBackofficeSettingsRoutes, TaonECommerceCartAbstractContext, TaonECommerceCartApiService, TaonECommerceCartConfigService, TaonECommerceCartController, TaonECommerceCartDefaultsValues, TaonECommerceCartEntity, TaonECommerceCartErrors, TaonECommerceCartItemAbstractContext, TaonECommerceCartItemApiService, TaonECommerceCartItemConfigService, TaonECommerceCartItemController, TaonECommerceCartItemDefaultsValues, TaonECommerceCartItemEntity, TaonECommerceCartItemErrors, TaonECommerceCartItemKvRepository, TaonECommerceCartItemMiddleware, TaonECommerceCartItemModels__NS__TaonECommerceCartItemState, TaonECommerceCartItemProvider, TaonECommerceCartItemRepository, TaonECommerceCartItemSubscriber, TaonECommerceCartItemTranslationErorsMap, TaonECommerceCartItemUtils__NS__isActive, TaonECommerceCartItemValidators__NS__passwordMatchValidator, TaonECommerceCartKvRepository, TaonECommerceCartMiddleware, TaonECommerceCartModels__NS__TaonECommerceCartState, TaonECommerceCartProvider, TaonECommerceCartRepository, TaonECommerceCartSubscriber, TaonECommerceCartTranslationErorsMap, TaonECommerceCartUtils__NS__isActive, TaonECommerceCartValidators__NS__passwordMatchValidator, TaonECommerceCustomerAddressAbstractContext, TaonECommerceCustomerAddressApiService, TaonECommerceCustomerAddressConfigService, TaonECommerceCustomerAddressController, TaonECommerceCustomerAddressDefaultsValues, TaonECommerceCustomerAddressEntity, TaonECommerceCustomerAddressErrors, TaonECommerceCustomerAddressKvRepository, TaonECommerceCustomerAddressMiddleware, TaonECommerceCustomerAddressModels__NS__TaonECommerceCustomerAddressState, TaonECommerceCustomerAddressProvider, TaonECommerceCustomerAddressRepository, TaonECommerceCustomerAddressSubscriber, TaonECommerceCustomerAddressTranslationErorsMap, TaonECommerceCustomerAddressUtils__NS__isActive, TaonECommerceCustomerAddressValidators__NS__passwordMatchValidator, TaonECommerceCustomerApiService, TaonECommerceCustomerController, TaonECommerceCustomerRepository, TaonECommerceOrderAbstractContext, TaonECommerceOrderApiService, TaonECommerceOrderConfigService, TaonECommerceOrderController, TaonECommerceOrderDefaultsValues, TaonECommerceOrderDetailsBackofficeComponent, TaonECommerceOrderEntity, TaonECommerceOrderErrors, TaonECommerceOrderItemAbstractContext, TaonECommerceOrderItemApiService, TaonECommerceOrderItemConfigService, TaonECommerceOrderItemController, TaonECommerceOrderItemDefaultsValues, TaonECommerceOrderItemEntity, TaonECommerceOrderItemErrors, TaonECommerceOrderItemKvRepository, TaonECommerceOrderItemMiddleware, TaonECommerceOrderItemModels__NS__TaonECommerceOrderItemState, TaonECommerceOrderItemProvider, TaonECommerceOrderItemRepository, TaonECommerceOrderItemSubscriber, TaonECommerceOrderItemTranslationErorsMap, TaonECommerceOrderItemUtils__NS__isActive, TaonECommerceOrderItemValidators__NS__passwordMatchValidator, TaonECommerceOrderKvRepository, TaonECommerceOrderMiddleware, TaonECommerceOrderModels__NS__TaonECommerceOrderState, TaonECommerceOrderProvider, TaonECommerceOrderRepository, TaonECommerceOrderSubscriber, TaonECommerceOrderTranslationErorsMap, TaonECommerceOrderUtils__NS__isActive, TaonECommerceOrderValidators__NS__passwordMatchValidator, TaonECommerceOrdersBackofficeComponent, TaonECommerceOrdersBackofficeRoutes, TaonECommercePaymentTransactionAbstractContext, TaonECommercePaymentTransactionApiService, TaonECommercePaymentTransactionConfigService, TaonECommercePaymentTransactionController, TaonECommercePaymentTransactionDefaultsValues, TaonECommercePaymentTransactionDetailsBackofficeComponent, TaonECommercePaymentTransactionEntity, TaonECommercePaymentTransactionErrors, TaonECommercePaymentTransactionKvRepository, TaonECommercePaymentTransactionMiddleware, TaonECommercePaymentTransactionModels__NS__TaonECommercePaymentTransactionState, TaonECommercePaymentTransactionProvider, TaonECommercePaymentTransactionRepository, TaonECommercePaymentTransactionSubscriber, TaonECommercePaymentTransactionTranslationErorsMap, TaonECommercePaymentTransactionUtils__NS__isActive, TaonECommercePaymentTransactionValidators__NS__passwordMatchValidator, TaonECommercePaymentTransactionsBackofficeComponent, TaonECommercePaymentTransactionsBackofficeRoutes, TaonECommerceProductAbstractContext, TaonECommerceProductApiService, TaonECommerceProductConfigService, TaonECommerceProductController, TaonECommerceProductDefaultsValues, TaonECommerceProductEditDialogComponent, TaonECommerceProductEntity, TaonECommerceProductErrors, TaonECommerceProductKvRepository, TaonECommerceProductMiddleware, TaonECommerceProductModels__NS__TaonECommerceProductState, TaonECommerceProductPermissionAbstractContext, TaonECommerceProductPermissionApiService, TaonECommerceProductPermissionConfigService, TaonECommerceProductPermissionController, TaonECommerceProductPermissionDefaultsValues, TaonECommerceProductPermissionEntity, TaonECommerceProductPermissionErrors, TaonECommerceProductPermissionKvRepository, TaonECommerceProductPermissionMiddleware, TaonECommerceProductPermissionModels__NS__TaonECommerceProductPermissionState, TaonECommerceProductPermissionProvider, TaonECommerceProductPermissionRepository, TaonECommerceProductPermissionSubscriber, TaonECommerceProductPermissionTranslationErorsMap, TaonECommerceProductPermissionUtils__NS__isActive, TaonECommerceProductPermissionValidators__NS__passwordMatchValidator, TaonECommerceProductProvider, TaonECommerceProductRepository, TaonECommerceProductSubscriber, TaonECommerceProductTranslationErorsMap, TaonECommerceProductUtils__NS__isActive, TaonECommerceProductValidators__NS__passwordMatchValidator, TaonECommerceProductsBackofficeComponent, TaonECommerceProductsBackofficeRoutes, TaonECommerceSettingsKvRepository, TaonTaonECommerceCustomerAddressConfig, TaonTaonECommerceOrderConfig, TaonTaonECommerceOrderItemConfig, TaonTaonECommercePaymentTransactionConfig, TaonTaonECommerceProductConfig, TaonTaonECommerceProductPermissionConfig, myOrgProj, startCli };
|
|
1917
4918
|
//# sourceMappingURL=e-commerce-websql-prod.mjs.map
|