@infrab4a/connect 0.15.1 → 0.16.0-beta.0
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/bundles/infrab4a-connect.umd.js +111 -56
- package/bundles/infrab4a-connect.umd.js.map +1 -1
- package/{lib/domain → domain}/catalog/repositories/category.repository.d.ts +4 -1
- package/esm2015/domain/catalog/index.js +3 -0
- package/esm2015/domain/catalog/models/category.js +7 -0
- package/esm2015/domain/catalog/models/enums/index.js +2 -0
- package/esm2015/domain/catalog/models/enums/shops.enum.js +7 -0
- package/esm2015/domain/catalog/models/index.js +6 -0
- package/esm2015/domain/catalog/models/product.js +11 -0
- package/esm2015/domain/catalog/models/types/category-condition.type.js +2 -0
- package/esm2015/domain/catalog/models/types/category-filter.type.js +2 -0
- package/esm2015/domain/catalog/models/types/index.js +8 -0
- package/esm2015/domain/catalog/models/types/product-review.type.js +2 -0
- package/esm2015/domain/catalog/models/types/shops-description.type.js +2 -0
- package/esm2015/domain/catalog/models/types/shops-price.type.js +2 -0
- package/esm2015/domain/catalog/models/types/stock.type.js +2 -0
- package/esm2015/domain/catalog/models/types/variant-grade.type.js +2 -0
- package/esm2015/domain/catalog/models/variant.js +7 -0
- package/esm2015/domain/catalog/repositories/category.repository.js +2 -0
- package/esm2015/domain/catalog/repositories/index.js +5 -0
- package/esm2015/domain/catalog/repositories/product.repository.js +2 -0
- package/esm2015/domain/catalog/repositories/subscription-product.repository.js +2 -0
- package/esm2015/domain/catalog/repositories/variant.repository.js +2 -0
- package/esm2015/domain/general/index.js +3 -0
- package/esm2015/domain/general/model/base-model-with-identifier-fields.js +2 -0
- package/esm2015/domain/general/model/base.model.js +13 -0
- package/esm2015/domain/general/model/identifier-fields.js +2 -0
- package/esm2015/domain/general/model/index.js +5 -0
- package/esm2015/domain/general/model/types/base-model-builder.type.js +2 -0
- package/esm2015/domain/general/model/types/index.js +4 -0
- package/esm2015/domain/general/model/types/non-function-properties.type.js +2 -0
- package/esm2015/domain/general/model/types/non-function-property-name.type.js +2 -0
- package/esm2015/domain/general/repository/create.repository.js +2 -0
- package/esm2015/domain/general/repository/crud.repository.js +2 -0
- package/esm2015/domain/general/repository/delete.repository.js +2 -0
- package/esm2015/domain/general/repository/enums/index.js +3 -0
- package/esm2015/domain/general/repository/enums/update-option-actions.enum.js +9 -0
- package/esm2015/domain/general/repository/enums/where.enum.js +12 -0
- package/esm2015/domain/general/repository/find.repository.js +2 -0
- package/esm2015/domain/general/repository/get.repository.js +2 -0
- package/esm2015/domain/general/repository/index.js +10 -0
- package/esm2015/domain/general/repository/read.repository.js +2 -0
- package/esm2015/domain/general/repository/types/index.js +6 -0
- package/esm2015/domain/general/repository/types/repository-find-filters.type.js +2 -0
- package/esm2015/domain/general/repository/types/repository-find-result.type.js +2 -0
- package/esm2015/domain/general/repository/types/repository-limit-options.type.js +2 -0
- package/esm2015/domain/general/repository/types/repository-order-by-list.type.js +2 -0
- package/esm2015/domain/general/repository/types/repository-update-params.type.js +2 -0
- package/esm2015/domain/general/repository/update.repository.js +2 -0
- package/esm2015/domain/index.js +7 -0
- package/esm2015/domain/location/index.js +2 -0
- package/esm2015/domain/location/models/address.js +4 -0
- package/esm2015/domain/location/models/index.js +3 -0
- package/esm2015/domain/location/models/types/index.js +4 -0
- package/esm2015/domain/location/models/types/location-bound.type.js +2 -0
- package/esm2015/domain/location/models/types/location-geometry.type.js +2 -0
- package/esm2015/domain/location/models/types/location-lat-lng.type.js +2 -0
- package/esm2015/domain/shop-settings/enums/filter-type.enum.js +21 -0
- package/esm2015/domain/shop-settings/enums/index.js +3 -0
- package/esm2015/domain/shop-settings/enums/questions-filters.enum.js +21 -0
- package/esm2015/domain/shop-settings/helpers/beauty-questions.helper.js +46 -0
- package/esm2015/domain/shop-settings/helpers/index.js +2 -0
- package/esm2015/domain/shop-settings/index.js +5 -0
- package/esm2015/domain/shop-settings/models/home.js +7 -0
- package/esm2015/domain/shop-settings/models/index.js +4 -0
- package/esm2015/domain/shop-settings/models/shop-menu.js +7 -0
- package/esm2015/domain/shop-settings/models/types/banner.type.js +2 -0
- package/esm2015/domain/shop-settings/models/types/benefit.type.js +2 -0
- package/esm2015/domain/shop-settings/models/types/home-data.type.js +2 -0
- package/esm2015/domain/shop-settings/models/types/index.js +6 -0
- package/esm2015/domain/shop-settings/models/types/menu-nav.type.js +2 -0
- package/esm2015/domain/shop-settings/models/types/sub-menu.type.js +2 -0
- package/esm2015/domain/shop-settings/repositories/home.repository.js +2 -0
- package/esm2015/domain/shop-settings/repositories/index.js +3 -0
- package/esm2015/domain/shop-settings/repositories/shop-menu.repository.js +2 -0
- package/esm2015/domain/shopping/index.js +3 -0
- package/esm2015/domain/shopping/models/buy-2-win.js +14 -0
- package/esm2015/domain/shopping/models/checkout.js +38 -0
- package/esm2015/domain/shopping/models/coupons/coupon.js +23 -0
- package/esm2015/domain/shopping/models/coupons/enums/coupon-subtypes.enum.js +6 -0
- package/esm2015/domain/shopping/models/coupons/enums/coupon-types.enum.js +8 -0
- package/esm2015/domain/shopping/models/coupons/enums/exclusivities.enum.js +7 -0
- package/esm2015/domain/shopping/models/coupons/enums/index.js +4 -0
- package/esm2015/domain/shopping/models/coupons/financial-coupon.js +28 -0
- package/esm2015/domain/shopping/models/coupons/index.js +4 -0
- package/esm2015/domain/shopping/models/enums/checkout-types.enum.js +6 -0
- package/esm2015/domain/shopping/models/enums/index.js +3 -0
- package/esm2015/domain/shopping/models/enums/order-status.enum.js +12 -0
- package/esm2015/domain/shopping/models/index.js +12 -0
- package/esm2015/domain/shopping/models/line-item.js +4 -0
- package/esm2015/domain/shopping/models/order.js +11 -0
- package/esm2015/domain/shopping/models/payment.js +169 -0
- package/esm2015/domain/shopping/models/shipping-method.js +7 -0
- package/esm2015/domain/shopping/models/subscription/checkout.js +28 -0
- package/esm2015/domain/shopping/models/subscription/index.js +3 -0
- package/esm2015/domain/shopping/models/subscription/plan.js +7 -0
- package/esm2015/domain/shopping/models/types/index.js +8 -0
- package/esm2015/domain/shopping/models/types/payment-address.type.js +2 -0
- package/esm2015/domain/shopping/models/types/payment-billing.type.js +2 -0
- package/esm2015/domain/shopping/models/types/payment-card.type.js +2 -0
- package/esm2015/domain/shopping/models/types/payment-customer.type.js +2 -0
- package/esm2015/domain/shopping/models/types/payment-document.type.js +2 -0
- package/esm2015/domain/shopping/models/types/payment-item.type.js +2 -0
- package/esm2015/domain/shopping/models/types/payment-shipping.type.js +2 -0
- package/esm2015/domain/shopping/repositories/buy-2-win.repository.js +2 -0
- package/esm2015/domain/shopping/repositories/checkout.repository.js +2 -0
- package/esm2015/domain/shopping/repositories/coupon.repository.js +2 -0
- package/esm2015/domain/shopping/repositories/index.js +8 -0
- package/esm2015/domain/shopping/repositories/legacy-order.repository.js +2 -0
- package/esm2015/domain/shopping/repositories/order.repository.js +2 -0
- package/esm2015/domain/shopping/repositories/payment.repository.js +2 -0
- package/esm2015/domain/shopping/repositories/subscription/checkout.repository.js +2 -0
- package/esm2015/domain/shopping/repositories/subscription/index.js +3 -0
- package/esm2015/domain/shopping/repositories/subscription/plan.repository.js +2 -0
- package/esm2015/domain/users/errors/index.js +4 -0
- package/esm2015/domain/users/errors/unauthorized.error.js +7 -0
- package/esm2015/domain/users/errors/user-already-registered.error.js +7 -0
- package/esm2015/domain/users/errors/weak-password.error.js +7 -0
- package/esm2015/domain/users/index.js +6 -0
- package/esm2015/domain/users/models/beauty-profile.js +12 -0
- package/esm2015/domain/users/models/enums/accessory-importances.enum.js +7 -0
- package/esm2015/domain/users/models/enums/area.enum.js +13 -0
- package/esm2015/domain/users/models/enums/beard-problems.enum.js +11 -0
- package/esm2015/domain/users/models/enums/beard-sizes.enum.js +9 -0
- package/esm2015/domain/users/models/enums/beauty-product-importances.enum.js +8 -0
- package/esm2015/domain/users/models/enums/body-problems.enum.js +13 -0
- package/esm2015/domain/users/models/enums/body-shapes.enum.js +9 -0
- package/esm2015/domain/users/models/enums/body-tattoos.enum.js +7 -0
- package/esm2015/domain/users/models/enums/face-skin-oilinesses.enum.js +9 -0
- package/esm2015/domain/users/models/enums/face-skin-problems.enum.js +12 -0
- package/esm2015/domain/users/models/enums/face-skin-tones.enum.js +10 -0
- package/esm2015/domain/users/models/enums/family-incomes.enum.js +10 -0
- package/esm2015/domain/users/models/enums/fragrance-importances.enum.js +7 -0
- package/esm2015/domain/users/models/enums/hair-colors.enum.js +12 -0
- package/esm2015/domain/users/models/enums/hair-problems.enum.js +12 -0
- package/esm2015/domain/users/models/enums/hair-strands.enum.js +10 -0
- package/esm2015/domain/users/models/enums/hair-types.enum.js +9 -0
- package/esm2015/domain/users/models/enums/index.js +21 -0
- package/esm2015/domain/users/models/enums/office-position.enum.js +8 -0
- package/esm2015/domain/users/models/enums/product-spents.enum.js +10 -0
- package/esm2015/domain/users/models/enums/user-type.enum.js +10 -0
- package/esm2015/domain/users/models/index.js +8 -0
- package/esm2015/domain/users/models/lead.js +7 -0
- package/esm2015/domain/users/models/subscription/edition.js +7 -0
- package/esm2015/domain/users/models/subscription/enums/billing-status.enum.js +5 -0
- package/esm2015/domain/users/models/subscription/enums/edition-status.enum.js +6 -0
- package/esm2015/domain/users/models/subscription/enums/index.js +5 -0
- package/esm2015/domain/users/models/subscription/enums/payment-type.enum.js +7 -0
- package/esm2015/domain/users/models/subscription/enums/status.enum.js +6 -0
- package/esm2015/domain/users/models/subscription/index.js +5 -0
- package/esm2015/domain/users/models/subscription/payment.js +14 -0
- package/esm2015/domain/users/models/subscription/subscription.js +43 -0
- package/esm2015/domain/users/models/user-address.js +7 -0
- package/esm2015/domain/users/models/user-payment-method.js +7 -0
- package/esm2015/domain/users/models/user.js +26 -0
- package/esm2015/domain/users/repositories/beauty-profile.repository.js +2 -0
- package/esm2015/domain/users/repositories/edition.repository.js +2 -0
- package/esm2015/domain/users/repositories/index.js +9 -0
- package/esm2015/domain/users/repositories/lead.repository.js +2 -0
- package/esm2015/domain/users/repositories/subscription-payment.repository.js +2 -0
- package/esm2015/domain/users/repositories/subscription.repository.js +2 -0
- package/esm2015/domain/users/repositories/user-address.repository.js +2 -0
- package/esm2015/domain/users/repositories/user-payment-method.repository.js +2 -0
- package/esm2015/domain/users/repositories/user.repository.js +2 -0
- package/esm2015/domain/users/services/authentication.service.js +2 -0
- package/esm2015/domain/users/services/index.js +4 -0
- package/esm2015/domain/users/services/register.service.js +2 -0
- package/esm2015/domain/users/services/types/basic-user-data.type.js +2 -0
- package/esm2015/domain/users/services/types/index.js +2 -0
- package/esm2015/domain/users/use-cases/authentication.js +40 -0
- package/esm2015/domain/users/use-cases/index.js +5 -0
- package/esm2015/domain/users/use-cases/recovery-password.js +12 -0
- package/esm2015/domain/users/use-cases/register.js +34 -0
- package/esm2015/domain/users/use-cases/signout.js +12 -0
- package/esm2015/errors/duplicated-results.error.js +7 -0
- package/esm2015/errors/index.js +5 -0
- package/esm2015/errors/invalid-argument.error.js +7 -0
- package/esm2015/errors/not-found.error.js +7 -0
- package/esm2015/errors/required-argument.error.js +8 -0
- package/esm2015/index.js +6 -0
- package/esm2015/infra/elasticsearch/adapters/axios.adapter.js +22 -0
- package/esm2015/infra/elasticsearch/adapters/elastic-search.adapter.js +2 -0
- package/esm2015/infra/elasticsearch/adapters/index.js +3 -0
- package/esm2015/infra/elasticsearch/index.js +4 -0
- package/esm2015/infra/elasticsearch/indexes/index.js +2 -0
- package/esm2015/infra/elasticsearch/indexes/products-index.js +58 -0
- package/esm2015/infra/elasticsearch/types/elastic-search-result.js +2 -0
- package/esm2015/infra/elasticsearch/types/index.js +2 -0
- package/esm2015/infra/firebase/auth/authentication-firebase-auth.service.js +52 -0
- package/esm2015/infra/firebase/auth/index.js +3 -0
- package/esm2015/infra/firebase/auth/register-firebase-auth.service.js +26 -0
- package/esm2015/infra/firebase/auth/types/firebase-user-with-id.type.js +2 -0
- package/esm2015/infra/firebase/firestore/index.js +4 -0
- package/esm2015/infra/firebase/firestore/mixins/index.js +10 -0
- package/esm2015/infra/firebase/firestore/mixins/with-create-firestore.mixin.js +31 -0
- package/esm2015/infra/firebase/firestore/mixins/with-crud-firestore.mixin.js +10 -0
- package/esm2015/infra/firebase/firestore/mixins/with-delete-firestore.mixin.js +18 -0
- package/esm2015/infra/firebase/firestore/mixins/with-find-firestore.mixin.js +87 -0
- package/esm2015/infra/firebase/firestore/mixins/with-firestore.mixin.js +26 -0
- package/esm2015/infra/firebase/firestore/mixins/with-get-firestore.mixin.js +24 -0
- package/esm2015/infra/firebase/firestore/mixins/with-helpers.mixin.js +17 -0
- package/esm2015/infra/firebase/firestore/mixins/with-sub-collection.mixin.js +11 -0
- package/esm2015/infra/firebase/firestore/mixins/with-update-firestore.mixin.js +45 -0
- package/esm2015/infra/firebase/firestore/models/user-search.js +7 -0
- package/esm2015/infra/firebase/firestore/repositories/catalog/category-firestore.repository.js +59 -0
- package/esm2015/infra/firebase/firestore/repositories/catalog/index.js +5 -0
- package/esm2015/infra/firebase/firestore/repositories/catalog/product-firestore.repository.js +23 -0
- package/esm2015/infra/firebase/firestore/repositories/catalog/product-variant-firestore.repository.js +14 -0
- package/esm2015/infra/firebase/firestore/repositories/catalog/subscription-product-firestore.repository.js +12 -0
- package/esm2015/infra/firebase/firestore/repositories/index.js +5 -0
- package/esm2015/infra/firebase/firestore/repositories/shop-settings/home-firestore.repository.js +56 -0
- package/esm2015/infra/firebase/firestore/repositories/shop-settings/index.js +3 -0
- package/esm2015/infra/firebase/firestore/repositories/shop-settings/shop-menu-firestore.repository.js +12 -0
- package/esm2015/infra/firebase/firestore/repositories/shopping/buy-2-win-firestore.repository.js +12 -0
- package/esm2015/infra/firebase/firestore/repositories/shopping/checkout-firestore.repository.js +12 -0
- package/esm2015/infra/firebase/firestore/repositories/shopping/checkout-subscription-firestore.repository.js +12 -0
- package/esm2015/infra/firebase/firestore/repositories/shopping/coupon-firestore.repository.js +29 -0
- package/esm2015/infra/firebase/firestore/repositories/shopping/index.js +9 -0
- package/esm2015/infra/firebase/firestore/repositories/shopping/legacy-order-firestore.repository.js +9 -0
- package/esm2015/infra/firebase/firestore/repositories/shopping/order-firestore.repository.js +12 -0
- package/esm2015/infra/firebase/firestore/repositories/shopping/payment-firestore.repository.js +12 -0
- package/esm2015/infra/firebase/firestore/repositories/shopping/subscription-plan-firestore.repository.js +12 -0
- package/esm2015/infra/firebase/firestore/repositories/users/index.js +10 -0
- package/esm2015/infra/firebase/firestore/repositories/users/lead-firestore.repository.js +12 -0
- package/esm2015/infra/firebase/firestore/repositories/users/subscription-edition-firestore.repository.js +14 -0
- package/esm2015/infra/firebase/firestore/repositories/users/subscription-firestore.repository.js +12 -0
- package/esm2015/infra/firebase/firestore/repositories/users/subscription-payment-firestore.repository.js +14 -0
- package/esm2015/infra/firebase/firestore/repositories/users/user-address-firestore.repository.js +14 -0
- package/esm2015/infra/firebase/firestore/repositories/users/user-beauty-profile-firestore.repository.js +14 -0
- package/esm2015/infra/firebase/firestore/repositories/users/user-firestore.repository.js +70 -0
- package/esm2015/infra/firebase/firestore/repositories/users/user-payment-method-firestore.repository.js +14 -0
- package/esm2015/infra/firebase/firestore/repositories/users/user-search-firestore.repository.js +12 -0
- package/esm2015/infra/firebase/firestore/types/firestore-sub.repository.type.js +2 -0
- package/esm2015/infra/firebase/firestore/types/firestore.helpers.type.js +2 -0
- package/esm2015/infra/firebase/firestore/types/firestore.repository.type.js +2 -0
- package/esm2015/infra/firebase/firestore/types/index.js +4 -0
- package/esm2015/infra/firebase/index.js +3 -0
- package/esm2015/infra/index.js +3 -0
- package/esm2015/infrab4a-connect.js +2 -2
- package/esm2015/utils/index.js +6 -0
- package/esm2015/utils/mixins/base.mixin.js +6 -0
- package/esm2015/utils/mixins/index.js +3 -0
- package/esm2015/utils/mixins/mixin-ctor.type.js +2 -0
- package/esm2015/utils/types/index.js +2 -0
- package/esm2015/utils/types/prop.type.js +2 -0
- package/fesm2015/infrab4a-connect.js +87 -21
- package/fesm2015/infrab4a-connect.js.map +1 -1
- package/{lib/index.d.ts → index.d.ts} +1 -0
- package/infra/elasticsearch/adapters/axios.adapter.d.ts +11 -0
- package/infra/elasticsearch/adapters/elastic-search.adapter.d.ts +4 -0
- package/infra/elasticsearch/adapters/index.d.ts +2 -0
- package/infra/elasticsearch/index.d.ts +3 -0
- package/infra/elasticsearch/indexes/index.d.ts +1 -0
- package/infra/elasticsearch/indexes/products-index.d.ts +11 -0
- package/infra/elasticsearch/types/elastic-search-result.d.ts +7 -0
- package/infra/elasticsearch/types/index.d.ts +1 -0
- package/{lib/infra → infra}/firebase/firestore/repositories/catalog/category-firestore.repository.d.ts +3 -1
- package/infra/index.d.ts +2 -0
- package/infrab4a-connect.d.ts +1 -1
- package/package.json +2 -1
- package/esm2015/lib/domain/catalog/index.js +0 -3
- package/esm2015/lib/domain/catalog/models/category.js +0 -7
- package/esm2015/lib/domain/catalog/models/enums/index.js +0 -2
- package/esm2015/lib/domain/catalog/models/enums/shops.enum.js +0 -7
- package/esm2015/lib/domain/catalog/models/index.js +0 -6
- package/esm2015/lib/domain/catalog/models/product.js +0 -11
- package/esm2015/lib/domain/catalog/models/types/category-condition.type.js +0 -2
- package/esm2015/lib/domain/catalog/models/types/category-filter.type.js +0 -2
- package/esm2015/lib/domain/catalog/models/types/index.js +0 -8
- package/esm2015/lib/domain/catalog/models/types/product-review.type.js +0 -2
- package/esm2015/lib/domain/catalog/models/types/shops-description.type.js +0 -2
- package/esm2015/lib/domain/catalog/models/types/shops-price.type.js +0 -2
- package/esm2015/lib/domain/catalog/models/types/stock.type.js +0 -2
- package/esm2015/lib/domain/catalog/models/types/variant-grade.type.js +0 -2
- package/esm2015/lib/domain/catalog/models/variant.js +0 -7
- package/esm2015/lib/domain/catalog/repositories/category.repository.js +0 -2
- package/esm2015/lib/domain/catalog/repositories/index.js +0 -5
- package/esm2015/lib/domain/catalog/repositories/product.repository.js +0 -2
- package/esm2015/lib/domain/catalog/repositories/subscription-product.repository.js +0 -2
- package/esm2015/lib/domain/catalog/repositories/variant.repository.js +0 -2
- package/esm2015/lib/domain/general/index.js +0 -3
- package/esm2015/lib/domain/general/model/base-model-with-identifier-fields.js +0 -2
- package/esm2015/lib/domain/general/model/base.model.js +0 -13
- package/esm2015/lib/domain/general/model/identifier-fields.js +0 -2
- package/esm2015/lib/domain/general/model/index.js +0 -5
- package/esm2015/lib/domain/general/model/types/base-model-builder.type.js +0 -2
- package/esm2015/lib/domain/general/model/types/index.js +0 -4
- package/esm2015/lib/domain/general/model/types/non-function-properties.type.js +0 -2
- package/esm2015/lib/domain/general/model/types/non-function-property-name.type.js +0 -2
- package/esm2015/lib/domain/general/repository/create.repository.js +0 -2
- package/esm2015/lib/domain/general/repository/crud.repository.js +0 -2
- package/esm2015/lib/domain/general/repository/delete.repository.js +0 -2
- package/esm2015/lib/domain/general/repository/enums/index.js +0 -3
- package/esm2015/lib/domain/general/repository/enums/update-option-actions.enum.js +0 -9
- package/esm2015/lib/domain/general/repository/enums/where.enum.js +0 -12
- package/esm2015/lib/domain/general/repository/find.repository.js +0 -2
- package/esm2015/lib/domain/general/repository/get.repository.js +0 -2
- package/esm2015/lib/domain/general/repository/index.js +0 -10
- package/esm2015/lib/domain/general/repository/read.repository.js +0 -2
- package/esm2015/lib/domain/general/repository/types/index.js +0 -6
- package/esm2015/lib/domain/general/repository/types/repository-find-filters.type.js +0 -2
- package/esm2015/lib/domain/general/repository/types/repository-find-result.type.js +0 -2
- package/esm2015/lib/domain/general/repository/types/repository-limit-options.type.js +0 -2
- package/esm2015/lib/domain/general/repository/types/repository-order-by-list.type.js +0 -2
- package/esm2015/lib/domain/general/repository/types/repository-update-params.type.js +0 -2
- package/esm2015/lib/domain/general/repository/update.repository.js +0 -2
- package/esm2015/lib/domain/index.js +0 -7
- package/esm2015/lib/domain/location/index.js +0 -2
- package/esm2015/lib/domain/location/models/address.js +0 -4
- package/esm2015/lib/domain/location/models/index.js +0 -3
- package/esm2015/lib/domain/location/models/types/index.js +0 -4
- package/esm2015/lib/domain/location/models/types/location-bound.type.js +0 -2
- package/esm2015/lib/domain/location/models/types/location-geometry.type.js +0 -2
- package/esm2015/lib/domain/location/models/types/location-lat-lng.type.js +0 -2
- package/esm2015/lib/domain/shop-settings/enums/filter-type.enum.js +0 -21
- package/esm2015/lib/domain/shop-settings/enums/index.js +0 -3
- package/esm2015/lib/domain/shop-settings/enums/questions-filters.enum.js +0 -21
- package/esm2015/lib/domain/shop-settings/helpers/beauty-questions.helper.js +0 -46
- package/esm2015/lib/domain/shop-settings/helpers/index.js +0 -2
- package/esm2015/lib/domain/shop-settings/index.js +0 -5
- package/esm2015/lib/domain/shop-settings/models/home.js +0 -7
- package/esm2015/lib/domain/shop-settings/models/index.js +0 -4
- package/esm2015/lib/domain/shop-settings/models/shop-menu.js +0 -7
- package/esm2015/lib/domain/shop-settings/models/types/banner.type.js +0 -2
- package/esm2015/lib/domain/shop-settings/models/types/benefit.type.js +0 -2
- package/esm2015/lib/domain/shop-settings/models/types/home-data.type.js +0 -2
- package/esm2015/lib/domain/shop-settings/models/types/index.js +0 -6
- package/esm2015/lib/domain/shop-settings/models/types/menu-nav.type.js +0 -2
- package/esm2015/lib/domain/shop-settings/models/types/sub-menu.type.js +0 -2
- package/esm2015/lib/domain/shop-settings/repositories/home.repository.js +0 -2
- package/esm2015/lib/domain/shop-settings/repositories/index.js +0 -3
- package/esm2015/lib/domain/shop-settings/repositories/shop-menu.repository.js +0 -2
- package/esm2015/lib/domain/shopping/index.js +0 -3
- package/esm2015/lib/domain/shopping/models/buy-2-win.js +0 -14
- package/esm2015/lib/domain/shopping/models/checkout.js +0 -38
- package/esm2015/lib/domain/shopping/models/coupons/coupon.js +0 -23
- package/esm2015/lib/domain/shopping/models/coupons/enums/coupon-subtypes.enum.js +0 -6
- package/esm2015/lib/domain/shopping/models/coupons/enums/coupon-types.enum.js +0 -8
- package/esm2015/lib/domain/shopping/models/coupons/enums/exclusivities.enum.js +0 -7
- package/esm2015/lib/domain/shopping/models/coupons/enums/index.js +0 -4
- package/esm2015/lib/domain/shopping/models/coupons/financial-coupon.js +0 -28
- package/esm2015/lib/domain/shopping/models/coupons/index.js +0 -4
- package/esm2015/lib/domain/shopping/models/enums/checkout-types.enum.js +0 -6
- package/esm2015/lib/domain/shopping/models/enums/index.js +0 -3
- package/esm2015/lib/domain/shopping/models/enums/order-status.enum.js +0 -12
- package/esm2015/lib/domain/shopping/models/index.js +0 -12
- package/esm2015/lib/domain/shopping/models/line-item.js +0 -4
- package/esm2015/lib/domain/shopping/models/order.js +0 -11
- package/esm2015/lib/domain/shopping/models/payment.js +0 -169
- package/esm2015/lib/domain/shopping/models/shipping-method.js +0 -7
- package/esm2015/lib/domain/shopping/models/subscription/checkout.js +0 -28
- package/esm2015/lib/domain/shopping/models/subscription/index.js +0 -3
- package/esm2015/lib/domain/shopping/models/subscription/plan.js +0 -7
- package/esm2015/lib/domain/shopping/models/types/index.js +0 -8
- package/esm2015/lib/domain/shopping/models/types/payment-address.type.js +0 -2
- package/esm2015/lib/domain/shopping/models/types/payment-billing.type.js +0 -2
- package/esm2015/lib/domain/shopping/models/types/payment-card.type.js +0 -2
- package/esm2015/lib/domain/shopping/models/types/payment-customer.type.js +0 -2
- package/esm2015/lib/domain/shopping/models/types/payment-document.type.js +0 -2
- package/esm2015/lib/domain/shopping/models/types/payment-item.type.js +0 -2
- package/esm2015/lib/domain/shopping/models/types/payment-shipping.type.js +0 -2
- package/esm2015/lib/domain/shopping/repositories/buy-2-win.repository.js +0 -2
- package/esm2015/lib/domain/shopping/repositories/checkout.repository.js +0 -2
- package/esm2015/lib/domain/shopping/repositories/coupon.repository.js +0 -2
- package/esm2015/lib/domain/shopping/repositories/index.js +0 -8
- package/esm2015/lib/domain/shopping/repositories/legacy-order.repository.js +0 -2
- package/esm2015/lib/domain/shopping/repositories/order.repository.js +0 -2
- package/esm2015/lib/domain/shopping/repositories/payment.repository.js +0 -2
- package/esm2015/lib/domain/shopping/repositories/subscription/checkout.repository.js +0 -2
- package/esm2015/lib/domain/shopping/repositories/subscription/index.js +0 -3
- package/esm2015/lib/domain/shopping/repositories/subscription/plan.repository.js +0 -2
- package/esm2015/lib/domain/users/errors/index.js +0 -4
- package/esm2015/lib/domain/users/errors/unauthorized.error.js +0 -7
- package/esm2015/lib/domain/users/errors/user-already-registered.error.js +0 -7
- package/esm2015/lib/domain/users/errors/weak-password.error.js +0 -7
- package/esm2015/lib/domain/users/index.js +0 -6
- package/esm2015/lib/domain/users/models/beauty-profile.js +0 -12
- package/esm2015/lib/domain/users/models/enums/accessory-importances.enum.js +0 -7
- package/esm2015/lib/domain/users/models/enums/area.enum.js +0 -13
- package/esm2015/lib/domain/users/models/enums/beard-problems.enum.js +0 -11
- package/esm2015/lib/domain/users/models/enums/beard-sizes.enum.js +0 -9
- package/esm2015/lib/domain/users/models/enums/beauty-product-importances.enum.js +0 -8
- package/esm2015/lib/domain/users/models/enums/body-problems.enum.js +0 -13
- package/esm2015/lib/domain/users/models/enums/body-shapes.enum.js +0 -9
- package/esm2015/lib/domain/users/models/enums/body-tattoos.enum.js +0 -7
- package/esm2015/lib/domain/users/models/enums/face-skin-oilinesses.enum.js +0 -9
- package/esm2015/lib/domain/users/models/enums/face-skin-problems.enum.js +0 -12
- package/esm2015/lib/domain/users/models/enums/face-skin-tones.enum.js +0 -10
- package/esm2015/lib/domain/users/models/enums/family-incomes.enum.js +0 -10
- package/esm2015/lib/domain/users/models/enums/fragrance-importances.enum.js +0 -7
- package/esm2015/lib/domain/users/models/enums/hair-colors.enum.js +0 -12
- package/esm2015/lib/domain/users/models/enums/hair-problems.enum.js +0 -12
- package/esm2015/lib/domain/users/models/enums/hair-strands.enum.js +0 -10
- package/esm2015/lib/domain/users/models/enums/hair-types.enum.js +0 -9
- package/esm2015/lib/domain/users/models/enums/index.js +0 -21
- package/esm2015/lib/domain/users/models/enums/office-position.enum.js +0 -8
- package/esm2015/lib/domain/users/models/enums/product-spents.enum.js +0 -10
- package/esm2015/lib/domain/users/models/enums/user-type.enum.js +0 -10
- package/esm2015/lib/domain/users/models/index.js +0 -8
- package/esm2015/lib/domain/users/models/lead.js +0 -7
- package/esm2015/lib/domain/users/models/subscription/edition.js +0 -7
- package/esm2015/lib/domain/users/models/subscription/enums/billing-status.enum.js +0 -5
- package/esm2015/lib/domain/users/models/subscription/enums/edition-status.enum.js +0 -6
- package/esm2015/lib/domain/users/models/subscription/enums/index.js +0 -5
- package/esm2015/lib/domain/users/models/subscription/enums/payment-type.enum.js +0 -7
- package/esm2015/lib/domain/users/models/subscription/enums/status.enum.js +0 -6
- package/esm2015/lib/domain/users/models/subscription/index.js +0 -5
- package/esm2015/lib/domain/users/models/subscription/payment.js +0 -14
- package/esm2015/lib/domain/users/models/subscription/subscription.js +0 -43
- package/esm2015/lib/domain/users/models/user-address.js +0 -7
- package/esm2015/lib/domain/users/models/user-payment-method.js +0 -7
- package/esm2015/lib/domain/users/models/user.js +0 -26
- package/esm2015/lib/domain/users/repositories/beauty-profile.repository.js +0 -2
- package/esm2015/lib/domain/users/repositories/edition.repository.js +0 -2
- package/esm2015/lib/domain/users/repositories/index.js +0 -9
- package/esm2015/lib/domain/users/repositories/lead.repository.js +0 -2
- package/esm2015/lib/domain/users/repositories/subscription-payment.repository.js +0 -2
- package/esm2015/lib/domain/users/repositories/subscription.repository.js +0 -2
- package/esm2015/lib/domain/users/repositories/user-address.repository.js +0 -2
- package/esm2015/lib/domain/users/repositories/user-payment-method.repository.js +0 -2
- package/esm2015/lib/domain/users/repositories/user.repository.js +0 -2
- package/esm2015/lib/domain/users/services/authentication.service.js +0 -2
- package/esm2015/lib/domain/users/services/index.js +0 -4
- package/esm2015/lib/domain/users/services/register.service.js +0 -2
- package/esm2015/lib/domain/users/services/types/basic-user-data.type.js +0 -2
- package/esm2015/lib/domain/users/services/types/index.js +0 -2
- package/esm2015/lib/domain/users/use-cases/authentication.js +0 -40
- package/esm2015/lib/domain/users/use-cases/index.js +0 -5
- package/esm2015/lib/domain/users/use-cases/recovery-password.js +0 -12
- package/esm2015/lib/domain/users/use-cases/register.js +0 -34
- package/esm2015/lib/domain/users/use-cases/signout.js +0 -12
- package/esm2015/lib/errors/duplicated-results.error.js +0 -7
- package/esm2015/lib/errors/index.js +0 -5
- package/esm2015/lib/errors/invalid-argument.error.js +0 -7
- package/esm2015/lib/errors/not-found.error.js +0 -7
- package/esm2015/lib/errors/required-argument.error.js +0 -8
- package/esm2015/lib/index.js +0 -5
- package/esm2015/lib/infra/firebase/auth/authentication-firebase-auth.service.js +0 -52
- package/esm2015/lib/infra/firebase/auth/index.js +0 -3
- package/esm2015/lib/infra/firebase/auth/register-firebase-auth.service.js +0 -26
- package/esm2015/lib/infra/firebase/auth/types/firebase-user-with-id.type.js +0 -2
- package/esm2015/lib/infra/firebase/firestore/index.js +0 -4
- package/esm2015/lib/infra/firebase/firestore/mixins/index.js +0 -10
- package/esm2015/lib/infra/firebase/firestore/mixins/with-create-firestore.mixin.js +0 -31
- package/esm2015/lib/infra/firebase/firestore/mixins/with-crud-firestore.mixin.js +0 -10
- package/esm2015/lib/infra/firebase/firestore/mixins/with-delete-firestore.mixin.js +0 -18
- package/esm2015/lib/infra/firebase/firestore/mixins/with-find-firestore.mixin.js +0 -87
- package/esm2015/lib/infra/firebase/firestore/mixins/with-firestore.mixin.js +0 -26
- package/esm2015/lib/infra/firebase/firestore/mixins/with-get-firestore.mixin.js +0 -24
- package/esm2015/lib/infra/firebase/firestore/mixins/with-helpers.mixin.js +0 -17
- package/esm2015/lib/infra/firebase/firestore/mixins/with-sub-collection.mixin.js +0 -11
- package/esm2015/lib/infra/firebase/firestore/mixins/with-update-firestore.mixin.js +0 -45
- package/esm2015/lib/infra/firebase/firestore/models/user-search.js +0 -7
- package/esm2015/lib/infra/firebase/firestore/repositories/catalog/category-firestore.repository.js +0 -70
- package/esm2015/lib/infra/firebase/firestore/repositories/catalog/index.js +0 -5
- package/esm2015/lib/infra/firebase/firestore/repositories/catalog/product-firestore.repository.js +0 -23
- package/esm2015/lib/infra/firebase/firestore/repositories/catalog/product-variant-firestore.repository.js +0 -14
- package/esm2015/lib/infra/firebase/firestore/repositories/catalog/subscription-product-firestore.repository.js +0 -12
- package/esm2015/lib/infra/firebase/firestore/repositories/index.js +0 -5
- package/esm2015/lib/infra/firebase/firestore/repositories/shop-settings/home-firestore.repository.js +0 -56
- package/esm2015/lib/infra/firebase/firestore/repositories/shop-settings/index.js +0 -3
- package/esm2015/lib/infra/firebase/firestore/repositories/shop-settings/shop-menu-firestore.repository.js +0 -12
- package/esm2015/lib/infra/firebase/firestore/repositories/shopping/buy-2-win-firestore.repository.js +0 -12
- package/esm2015/lib/infra/firebase/firestore/repositories/shopping/checkout-firestore.repository.js +0 -12
- package/esm2015/lib/infra/firebase/firestore/repositories/shopping/checkout-subscription-firestore.repository.js +0 -12
- package/esm2015/lib/infra/firebase/firestore/repositories/shopping/coupon-firestore.repository.js +0 -29
- package/esm2015/lib/infra/firebase/firestore/repositories/shopping/index.js +0 -9
- package/esm2015/lib/infra/firebase/firestore/repositories/shopping/legacy-order-firestore.repository.js +0 -9
- package/esm2015/lib/infra/firebase/firestore/repositories/shopping/order-firestore.repository.js +0 -12
- package/esm2015/lib/infra/firebase/firestore/repositories/shopping/payment-firestore.repository.js +0 -12
- package/esm2015/lib/infra/firebase/firestore/repositories/shopping/subscription-plan-firestore.repository.js +0 -12
- package/esm2015/lib/infra/firebase/firestore/repositories/users/index.js +0 -10
- package/esm2015/lib/infra/firebase/firestore/repositories/users/lead-firestore.repository.js +0 -12
- package/esm2015/lib/infra/firebase/firestore/repositories/users/subscription-edition-firestore.repository.js +0 -14
- package/esm2015/lib/infra/firebase/firestore/repositories/users/subscription-firestore.repository.js +0 -12
- package/esm2015/lib/infra/firebase/firestore/repositories/users/subscription-payment-firestore.repository.js +0 -14
- package/esm2015/lib/infra/firebase/firestore/repositories/users/user-address-firestore.repository.js +0 -14
- package/esm2015/lib/infra/firebase/firestore/repositories/users/user-beauty-profile-firestore.repository.js +0 -14
- package/esm2015/lib/infra/firebase/firestore/repositories/users/user-firestore.repository.js +0 -70
- package/esm2015/lib/infra/firebase/firestore/repositories/users/user-payment-method-firestore.repository.js +0 -14
- package/esm2015/lib/infra/firebase/firestore/repositories/users/user-search-firestore.repository.js +0 -12
- package/esm2015/lib/infra/firebase/firestore/types/firestore-sub.repository.type.js +0 -2
- package/esm2015/lib/infra/firebase/firestore/types/firestore.helpers.type.js +0 -2
- package/esm2015/lib/infra/firebase/firestore/types/firestore.repository.type.js +0 -2
- package/esm2015/lib/infra/firebase/firestore/types/index.js +0 -4
- package/esm2015/lib/infra/firebase/index.js +0 -3
- package/esm2015/lib/infra/index.js +0 -2
- package/esm2015/lib/utils/index.js +0 -6
- package/esm2015/lib/utils/mixins/base.mixin.js +0 -6
- package/esm2015/lib/utils/mixins/index.js +0 -3
- package/esm2015/lib/utils/mixins/mixin-ctor.type.js +0 -2
- package/esm2015/lib/utils/types/index.js +0 -2
- package/esm2015/lib/utils/types/prop.type.js +0 -2
- package/esm2015/public-api.js +0 -3
- package/lib/infra/index.d.ts +0 -1
- package/public-api.d.ts +0 -2
- /package/{lib/domain → domain}/catalog/index.d.ts +0 -0
- /package/{lib/domain → domain}/catalog/models/category.d.ts +0 -0
- /package/{lib/domain → domain}/catalog/models/enums/index.d.ts +0 -0
- /package/{lib/domain → domain}/catalog/models/enums/shops.enum.d.ts +0 -0
- /package/{lib/domain → domain}/catalog/models/index.d.ts +0 -0
- /package/{lib/domain → domain}/catalog/models/product.d.ts +0 -0
- /package/{lib/domain → domain}/catalog/models/types/category-condition.type.d.ts +0 -0
- /package/{lib/domain → domain}/catalog/models/types/category-filter.type.d.ts +0 -0
- /package/{lib/domain → domain}/catalog/models/types/index.d.ts +0 -0
- /package/{lib/domain → domain}/catalog/models/types/product-review.type.d.ts +0 -0
- /package/{lib/domain → domain}/catalog/models/types/shops-description.type.d.ts +0 -0
- /package/{lib/domain → domain}/catalog/models/types/shops-price.type.d.ts +0 -0
- /package/{lib/domain → domain}/catalog/models/types/stock.type.d.ts +0 -0
- /package/{lib/domain → domain}/catalog/models/types/variant-grade.type.d.ts +0 -0
- /package/{lib/domain → domain}/catalog/models/variant.d.ts +0 -0
- /package/{lib/domain → domain}/catalog/repositories/index.d.ts +0 -0
- /package/{lib/domain → domain}/catalog/repositories/product.repository.d.ts +0 -0
- /package/{lib/domain → domain}/catalog/repositories/subscription-product.repository.d.ts +0 -0
- /package/{lib/domain → domain}/catalog/repositories/variant.repository.d.ts +0 -0
- /package/{lib/domain → domain}/general/index.d.ts +0 -0
- /package/{lib/domain → domain}/general/model/base-model-with-identifier-fields.d.ts +0 -0
- /package/{lib/domain → domain}/general/model/base.model.d.ts +0 -0
- /package/{lib/domain → domain}/general/model/identifier-fields.d.ts +0 -0
- /package/{lib/domain → domain}/general/model/index.d.ts +0 -0
- /package/{lib/domain → domain}/general/model/types/base-model-builder.type.d.ts +0 -0
- /package/{lib/domain → domain}/general/model/types/index.d.ts +0 -0
- /package/{lib/domain → domain}/general/model/types/non-function-properties.type.d.ts +0 -0
- /package/{lib/domain → domain}/general/model/types/non-function-property-name.type.d.ts +0 -0
- /package/{lib/domain → domain}/general/repository/create.repository.d.ts +0 -0
- /package/{lib/domain → domain}/general/repository/crud.repository.d.ts +0 -0
- /package/{lib/domain → domain}/general/repository/delete.repository.d.ts +0 -0
- /package/{lib/domain → domain}/general/repository/enums/index.d.ts +0 -0
- /package/{lib/domain → domain}/general/repository/enums/update-option-actions.enum.d.ts +0 -0
- /package/{lib/domain → domain}/general/repository/enums/where.enum.d.ts +0 -0
- /package/{lib/domain → domain}/general/repository/find.repository.d.ts +0 -0
- /package/{lib/domain → domain}/general/repository/get.repository.d.ts +0 -0
- /package/{lib/domain → domain}/general/repository/index.d.ts +0 -0
- /package/{lib/domain → domain}/general/repository/read.repository.d.ts +0 -0
- /package/{lib/domain → domain}/general/repository/types/index.d.ts +0 -0
- /package/{lib/domain → domain}/general/repository/types/repository-find-filters.type.d.ts +0 -0
- /package/{lib/domain → domain}/general/repository/types/repository-find-result.type.d.ts +0 -0
- /package/{lib/domain → domain}/general/repository/types/repository-limit-options.type.d.ts +0 -0
- /package/{lib/domain → domain}/general/repository/types/repository-order-by-list.type.d.ts +0 -0
- /package/{lib/domain → domain}/general/repository/types/repository-update-params.type.d.ts +0 -0
- /package/{lib/domain → domain}/general/repository/update.repository.d.ts +0 -0
- /package/{lib/domain → domain}/index.d.ts +0 -0
- /package/{lib/domain → domain}/location/index.d.ts +0 -0
- /package/{lib/domain → domain}/location/models/address.d.ts +0 -0
- /package/{lib/domain → domain}/location/models/index.d.ts +0 -0
- /package/{lib/domain → domain}/location/models/types/index.d.ts +0 -0
- /package/{lib/domain → domain}/location/models/types/location-bound.type.d.ts +0 -0
- /package/{lib/domain → domain}/location/models/types/location-geometry.type.d.ts +0 -0
- /package/{lib/domain → domain}/location/models/types/location-lat-lng.type.d.ts +0 -0
- /package/{lib/domain → domain}/shop-settings/enums/filter-type.enum.d.ts +0 -0
- /package/{lib/domain → domain}/shop-settings/enums/index.d.ts +0 -0
- /package/{lib/domain → domain}/shop-settings/enums/questions-filters.enum.d.ts +0 -0
- /package/{lib/domain → domain}/shop-settings/helpers/beauty-questions.helper.d.ts +0 -0
- /package/{lib/domain → domain}/shop-settings/helpers/index.d.ts +0 -0
- /package/{lib/domain → domain}/shop-settings/index.d.ts +0 -0
- /package/{lib/domain → domain}/shop-settings/models/home.d.ts +0 -0
- /package/{lib/domain → domain}/shop-settings/models/index.d.ts +0 -0
- /package/{lib/domain → domain}/shop-settings/models/shop-menu.d.ts +0 -0
- /package/{lib/domain → domain}/shop-settings/models/types/banner.type.d.ts +0 -0
- /package/{lib/domain → domain}/shop-settings/models/types/benefit.type.d.ts +0 -0
- /package/{lib/domain → domain}/shop-settings/models/types/home-data.type.d.ts +0 -0
- /package/{lib/domain → domain}/shop-settings/models/types/index.d.ts +0 -0
- /package/{lib/domain → domain}/shop-settings/models/types/menu-nav.type.d.ts +0 -0
- /package/{lib/domain → domain}/shop-settings/models/types/sub-menu.type.d.ts +0 -0
- /package/{lib/domain → domain}/shop-settings/repositories/home.repository.d.ts +0 -0
- /package/{lib/domain → domain}/shop-settings/repositories/index.d.ts +0 -0
- /package/{lib/domain → domain}/shop-settings/repositories/shop-menu.repository.d.ts +0 -0
- /package/{lib/domain → domain}/shopping/index.d.ts +0 -0
- /package/{lib/domain → domain}/shopping/models/buy-2-win.d.ts +0 -0
- /package/{lib/domain → domain}/shopping/models/checkout.d.ts +0 -0
- /package/{lib/domain → domain}/shopping/models/coupons/coupon.d.ts +0 -0
- /package/{lib/domain → domain}/shopping/models/coupons/enums/coupon-subtypes.enum.d.ts +0 -0
- /package/{lib/domain → domain}/shopping/models/coupons/enums/coupon-types.enum.d.ts +0 -0
- /package/{lib/domain → domain}/shopping/models/coupons/enums/exclusivities.enum.d.ts +0 -0
- /package/{lib/domain → domain}/shopping/models/coupons/enums/index.d.ts +0 -0
- /package/{lib/domain → domain}/shopping/models/coupons/financial-coupon.d.ts +0 -0
- /package/{lib/domain → domain}/shopping/models/coupons/index.d.ts +0 -0
- /package/{lib/domain → domain}/shopping/models/enums/checkout-types.enum.d.ts +0 -0
- /package/{lib/domain → domain}/shopping/models/enums/index.d.ts +0 -0
- /package/{lib/domain → domain}/shopping/models/enums/order-status.enum.d.ts +0 -0
- /package/{lib/domain → domain}/shopping/models/index.d.ts +0 -0
- /package/{lib/domain → domain}/shopping/models/line-item.d.ts +0 -0
- /package/{lib/domain → domain}/shopping/models/order.d.ts +0 -0
- /package/{lib/domain → domain}/shopping/models/payment.d.ts +0 -0
- /package/{lib/domain → domain}/shopping/models/shipping-method.d.ts +0 -0
- /package/{lib/domain → domain}/shopping/models/subscription/checkout.d.ts +0 -0
- /package/{lib/domain → domain}/shopping/models/subscription/index.d.ts +0 -0
- /package/{lib/domain → domain}/shopping/models/subscription/plan.d.ts +0 -0
- /package/{lib/domain → domain}/shopping/models/types/index.d.ts +0 -0
- /package/{lib/domain → domain}/shopping/models/types/payment-address.type.d.ts +0 -0
- /package/{lib/domain → domain}/shopping/models/types/payment-billing.type.d.ts +0 -0
- /package/{lib/domain → domain}/shopping/models/types/payment-card.type.d.ts +0 -0
- /package/{lib/domain → domain}/shopping/models/types/payment-customer.type.d.ts +0 -0
- /package/{lib/domain → domain}/shopping/models/types/payment-document.type.d.ts +0 -0
- /package/{lib/domain → domain}/shopping/models/types/payment-item.type.d.ts +0 -0
- /package/{lib/domain → domain}/shopping/models/types/payment-shipping.type.d.ts +0 -0
- /package/{lib/domain → domain}/shopping/repositories/buy-2-win.repository.d.ts +0 -0
- /package/{lib/domain → domain}/shopping/repositories/checkout.repository.d.ts +0 -0
- /package/{lib/domain → domain}/shopping/repositories/coupon.repository.d.ts +0 -0
- /package/{lib/domain → domain}/shopping/repositories/index.d.ts +0 -0
- /package/{lib/domain → domain}/shopping/repositories/legacy-order.repository.d.ts +0 -0
- /package/{lib/domain → domain}/shopping/repositories/order.repository.d.ts +0 -0
- /package/{lib/domain → domain}/shopping/repositories/payment.repository.d.ts +0 -0
- /package/{lib/domain → domain}/shopping/repositories/subscription/checkout.repository.d.ts +0 -0
- /package/{lib/domain → domain}/shopping/repositories/subscription/index.d.ts +0 -0
- /package/{lib/domain → domain}/shopping/repositories/subscription/plan.repository.d.ts +0 -0
- /package/{lib/domain → domain}/users/errors/index.d.ts +0 -0
- /package/{lib/domain → domain}/users/errors/unauthorized.error.d.ts +0 -0
- /package/{lib/domain → domain}/users/errors/user-already-registered.error.d.ts +0 -0
- /package/{lib/domain → domain}/users/errors/weak-password.error.d.ts +0 -0
- /package/{lib/domain → domain}/users/index.d.ts +0 -0
- /package/{lib/domain → domain}/users/models/beauty-profile.d.ts +0 -0
- /package/{lib/domain → domain}/users/models/enums/accessory-importances.enum.d.ts +0 -0
- /package/{lib/domain → domain}/users/models/enums/area.enum.d.ts +0 -0
- /package/{lib/domain → domain}/users/models/enums/beard-problems.enum.d.ts +0 -0
- /package/{lib/domain → domain}/users/models/enums/beard-sizes.enum.d.ts +0 -0
- /package/{lib/domain → domain}/users/models/enums/beauty-product-importances.enum.d.ts +0 -0
- /package/{lib/domain → domain}/users/models/enums/body-problems.enum.d.ts +0 -0
- /package/{lib/domain → domain}/users/models/enums/body-shapes.enum.d.ts +0 -0
- /package/{lib/domain → domain}/users/models/enums/body-tattoos.enum.d.ts +0 -0
- /package/{lib/domain → domain}/users/models/enums/face-skin-oilinesses.enum.d.ts +0 -0
- /package/{lib/domain → domain}/users/models/enums/face-skin-problems.enum.d.ts +0 -0
- /package/{lib/domain → domain}/users/models/enums/face-skin-tones.enum.d.ts +0 -0
- /package/{lib/domain → domain}/users/models/enums/family-incomes.enum.d.ts +0 -0
- /package/{lib/domain → domain}/users/models/enums/fragrance-importances.enum.d.ts +0 -0
- /package/{lib/domain → domain}/users/models/enums/hair-colors.enum.d.ts +0 -0
- /package/{lib/domain → domain}/users/models/enums/hair-problems.enum.d.ts +0 -0
- /package/{lib/domain → domain}/users/models/enums/hair-strands.enum.d.ts +0 -0
- /package/{lib/domain → domain}/users/models/enums/hair-types.enum.d.ts +0 -0
- /package/{lib/domain → domain}/users/models/enums/index.d.ts +0 -0
- /package/{lib/domain → domain}/users/models/enums/office-position.enum.d.ts +0 -0
- /package/{lib/domain → domain}/users/models/enums/product-spents.enum.d.ts +0 -0
- /package/{lib/domain → domain}/users/models/enums/user-type.enum.d.ts +0 -0
- /package/{lib/domain → domain}/users/models/index.d.ts +0 -0
- /package/{lib/domain → domain}/users/models/lead.d.ts +0 -0
- /package/{lib/domain → domain}/users/models/subscription/edition.d.ts +0 -0
- /package/{lib/domain → domain}/users/models/subscription/enums/billing-status.enum.d.ts +0 -0
- /package/{lib/domain → domain}/users/models/subscription/enums/edition-status.enum.d.ts +0 -0
- /package/{lib/domain → domain}/users/models/subscription/enums/index.d.ts +0 -0
- /package/{lib/domain → domain}/users/models/subscription/enums/payment-type.enum.d.ts +0 -0
- /package/{lib/domain → domain}/users/models/subscription/enums/status.enum.d.ts +0 -0
- /package/{lib/domain → domain}/users/models/subscription/index.d.ts +0 -0
- /package/{lib/domain → domain}/users/models/subscription/payment.d.ts +0 -0
- /package/{lib/domain → domain}/users/models/subscription/subscription.d.ts +0 -0
- /package/{lib/domain → domain}/users/models/user-address.d.ts +0 -0
- /package/{lib/domain → domain}/users/models/user-payment-method.d.ts +0 -0
- /package/{lib/domain → domain}/users/models/user.d.ts +0 -0
- /package/{lib/domain → domain}/users/repositories/beauty-profile.repository.d.ts +0 -0
- /package/{lib/domain → domain}/users/repositories/edition.repository.d.ts +0 -0
- /package/{lib/domain → domain}/users/repositories/index.d.ts +0 -0
- /package/{lib/domain → domain}/users/repositories/lead.repository.d.ts +0 -0
- /package/{lib/domain → domain}/users/repositories/subscription-payment.repository.d.ts +0 -0
- /package/{lib/domain → domain}/users/repositories/subscription.repository.d.ts +0 -0
- /package/{lib/domain → domain}/users/repositories/user-address.repository.d.ts +0 -0
- /package/{lib/domain → domain}/users/repositories/user-payment-method.repository.d.ts +0 -0
- /package/{lib/domain → domain}/users/repositories/user.repository.d.ts +0 -0
- /package/{lib/domain → domain}/users/services/authentication.service.d.ts +0 -0
- /package/{lib/domain → domain}/users/services/index.d.ts +0 -0
- /package/{lib/domain → domain}/users/services/register.service.d.ts +0 -0
- /package/{lib/domain → domain}/users/services/types/basic-user-data.type.d.ts +0 -0
- /package/{lib/domain → domain}/users/services/types/index.d.ts +0 -0
- /package/{lib/domain → domain}/users/use-cases/authentication.d.ts +0 -0
- /package/{lib/domain → domain}/users/use-cases/index.d.ts +0 -0
- /package/{lib/domain → domain}/users/use-cases/recovery-password.d.ts +0 -0
- /package/{lib/domain → domain}/users/use-cases/register.d.ts +0 -0
- /package/{lib/domain → domain}/users/use-cases/signout.d.ts +0 -0
- /package/{lib/errors → errors}/duplicated-results.error.d.ts +0 -0
- /package/{lib/errors → errors}/index.d.ts +0 -0
- /package/{lib/errors → errors}/invalid-argument.error.d.ts +0 -0
- /package/{lib/errors → errors}/not-found.error.d.ts +0 -0
- /package/{lib/errors → errors}/required-argument.error.d.ts +0 -0
- /package/{lib/infra → infra}/firebase/auth/authentication-firebase-auth.service.d.ts +0 -0
- /package/{lib/infra → infra}/firebase/auth/index.d.ts +0 -0
- /package/{lib/infra → infra}/firebase/auth/register-firebase-auth.service.d.ts +0 -0
- /package/{lib/infra → infra}/firebase/auth/types/firebase-user-with-id.type.d.ts +0 -0
- /package/{lib/infra → infra}/firebase/firestore/index.d.ts +0 -0
- /package/{lib/infra → infra}/firebase/firestore/mixins/index.d.ts +0 -0
- /package/{lib/infra → infra}/firebase/firestore/mixins/with-create-firestore.mixin.d.ts +0 -0
- /package/{lib/infra → infra}/firebase/firestore/mixins/with-crud-firestore.mixin.d.ts +0 -0
- /package/{lib/infra → infra}/firebase/firestore/mixins/with-delete-firestore.mixin.d.ts +0 -0
- /package/{lib/infra → infra}/firebase/firestore/mixins/with-find-firestore.mixin.d.ts +0 -0
- /package/{lib/infra → infra}/firebase/firestore/mixins/with-firestore.mixin.d.ts +0 -0
- /package/{lib/infra → infra}/firebase/firestore/mixins/with-get-firestore.mixin.d.ts +0 -0
- /package/{lib/infra → infra}/firebase/firestore/mixins/with-helpers.mixin.d.ts +0 -0
- /package/{lib/infra → infra}/firebase/firestore/mixins/with-sub-collection.mixin.d.ts +0 -0
- /package/{lib/infra → infra}/firebase/firestore/mixins/with-update-firestore.mixin.d.ts +0 -0
- /package/{lib/infra → infra}/firebase/firestore/models/user-search.d.ts +0 -0
- /package/{lib/infra → infra}/firebase/firestore/repositories/catalog/index.d.ts +0 -0
- /package/{lib/infra → infra}/firebase/firestore/repositories/catalog/product-firestore.repository.d.ts +0 -0
- /package/{lib/infra → infra}/firebase/firestore/repositories/catalog/product-variant-firestore.repository.d.ts +0 -0
- /package/{lib/infra → infra}/firebase/firestore/repositories/catalog/subscription-product-firestore.repository.d.ts +0 -0
- /package/{lib/infra → infra}/firebase/firestore/repositories/index.d.ts +0 -0
- /package/{lib/infra → infra}/firebase/firestore/repositories/shop-settings/home-firestore.repository.d.ts +0 -0
- /package/{lib/infra → infra}/firebase/firestore/repositories/shop-settings/index.d.ts +0 -0
- /package/{lib/infra → infra}/firebase/firestore/repositories/shop-settings/shop-menu-firestore.repository.d.ts +0 -0
- /package/{lib/infra → infra}/firebase/firestore/repositories/shopping/buy-2-win-firestore.repository.d.ts +0 -0
- /package/{lib/infra → infra}/firebase/firestore/repositories/shopping/checkout-firestore.repository.d.ts +0 -0
- /package/{lib/infra → infra}/firebase/firestore/repositories/shopping/checkout-subscription-firestore.repository.d.ts +0 -0
- /package/{lib/infra → infra}/firebase/firestore/repositories/shopping/coupon-firestore.repository.d.ts +0 -0
- /package/{lib/infra → infra}/firebase/firestore/repositories/shopping/index.d.ts +0 -0
- /package/{lib/infra → infra}/firebase/firestore/repositories/shopping/legacy-order-firestore.repository.d.ts +0 -0
- /package/{lib/infra → infra}/firebase/firestore/repositories/shopping/order-firestore.repository.d.ts +0 -0
- /package/{lib/infra → infra}/firebase/firestore/repositories/shopping/payment-firestore.repository.d.ts +0 -0
- /package/{lib/infra → infra}/firebase/firestore/repositories/shopping/subscription-plan-firestore.repository.d.ts +0 -0
- /package/{lib/infra → infra}/firebase/firestore/repositories/users/index.d.ts +0 -0
- /package/{lib/infra → infra}/firebase/firestore/repositories/users/lead-firestore.repository.d.ts +0 -0
- /package/{lib/infra → infra}/firebase/firestore/repositories/users/subscription-edition-firestore.repository.d.ts +0 -0
- /package/{lib/infra → infra}/firebase/firestore/repositories/users/subscription-firestore.repository.d.ts +0 -0
- /package/{lib/infra → infra}/firebase/firestore/repositories/users/subscription-payment-firestore.repository.d.ts +0 -0
- /package/{lib/infra → infra}/firebase/firestore/repositories/users/user-address-firestore.repository.d.ts +0 -0
- /package/{lib/infra → infra}/firebase/firestore/repositories/users/user-beauty-profile-firestore.repository.d.ts +0 -0
- /package/{lib/infra → infra}/firebase/firestore/repositories/users/user-firestore.repository.d.ts +0 -0
- /package/{lib/infra → infra}/firebase/firestore/repositories/users/user-payment-method-firestore.repository.d.ts +0 -0
- /package/{lib/infra → infra}/firebase/firestore/repositories/users/user-search-firestore.repository.d.ts +0 -0
- /package/{lib/infra → infra}/firebase/firestore/types/firestore-sub.repository.type.d.ts +0 -0
- /package/{lib/infra → infra}/firebase/firestore/types/firestore.helpers.type.d.ts +0 -0
- /package/{lib/infra → infra}/firebase/firestore/types/firestore.repository.type.d.ts +0 -0
- /package/{lib/infra → infra}/firebase/firestore/types/index.d.ts +0 -0
- /package/{lib/infra → infra}/firebase/index.d.ts +0 -0
- /package/{lib/utils → utils}/index.d.ts +0 -0
- /package/{lib/utils → utils}/mixins/base.mixin.d.ts +0 -0
- /package/{lib/utils → utils}/mixins/index.d.ts +0 -0
- /package/{lib/utils → utils}/mixins/mixin-ctor.type.d.ts +0 -0
- /package/{lib/utils → utils}/types/index.d.ts +0 -0
- /package/{lib/utils → utils}/types/prop.type.d.ts +0 -0
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('reflect-metadata'), require('class-transformer'), require('date-fns'), require('lodash'), require('ts-md5'), require('firebase'), require('firebase/app')) :
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@infrab4a/connect', ['exports', 'reflect-metadata', 'class-transformer', 'date-fns', 'lodash', 'ts-md5', 'firebase', 'firebase/app'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.infrab4a = global.infrab4a || {}, global.infrab4a.connect = {}), null, global["class-transformer"], global["date-fns"], global.lodash, global.tsMd5, global.firebase, global.firebase$1));
|
|
5
|
-
})(this, (function (exports, reflectMetadata, classTransformer, dateFns, lodash, tsMd5, firebase, firebase$1) { 'use strict';
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('reflect-metadata'), require('class-transformer'), require('date-fns'), require('lodash'), require('ts-md5'), require('axios'), require('firebase'), require('firebase/app')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@infrab4a/connect', ['exports', 'reflect-metadata', 'class-transformer', 'date-fns', 'lodash', 'ts-md5', 'axios', 'firebase', 'firebase/app'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.infrab4a = global.infrab4a || {}, global.infrab4a.connect = {}), null, global["class-transformer"], global["date-fns"], global.lodash, global.tsMd5, global.axios, global.firebase, global.firebase$1));
|
|
5
|
+
})(this, (function (exports, reflectMetadata, classTransformer, dateFns, lodash, tsMd5, axios, firebase, firebase$1) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
8
|
|
|
9
|
+
var axios__default = /*#__PURE__*/_interopDefaultLegacy(axios);
|
|
9
10
|
var firebase__default = /*#__PURE__*/_interopDefaultLegacy(firebase);
|
|
10
11
|
var firebase__default$1 = /*#__PURE__*/_interopDefaultLegacy(firebase$1);
|
|
11
12
|
|
|
@@ -1482,6 +1483,99 @@
|
|
|
1482
1483
|
return DuplicatedResultsError;
|
|
1483
1484
|
}(Error));
|
|
1484
1485
|
|
|
1486
|
+
var AxiosAdapter = /** @class */ (function () {
|
|
1487
|
+
function AxiosAdapter(config) {
|
|
1488
|
+
this.config = config;
|
|
1489
|
+
}
|
|
1490
|
+
AxiosAdapter.prototype.query = function (index, query) {
|
|
1491
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1492
|
+
var data;
|
|
1493
|
+
return __generator(this, function (_a) {
|
|
1494
|
+
switch (_a.label) {
|
|
1495
|
+
case 0: return [4 /*yield*/, axios__default["default"]({
|
|
1496
|
+
url: this.config.url + "/" + index,
|
|
1497
|
+
method: 'POST',
|
|
1498
|
+
headers: { Authorization: "Basic " + this.config.credential },
|
|
1499
|
+
data: query,
|
|
1500
|
+
})];
|
|
1501
|
+
case 1:
|
|
1502
|
+
data = (_a.sent()).data;
|
|
1503
|
+
return [2 /*return*/, {
|
|
1504
|
+
total: data.hits.total.value,
|
|
1505
|
+
hits: data.hits.hits,
|
|
1506
|
+
}];
|
|
1507
|
+
}
|
|
1508
|
+
});
|
|
1509
|
+
});
|
|
1510
|
+
};
|
|
1511
|
+
return AxiosAdapter;
|
|
1512
|
+
}());
|
|
1513
|
+
|
|
1514
|
+
var ProductsIndex = /** @class */ (function () {
|
|
1515
|
+
function ProductsIndex(adapter) {
|
|
1516
|
+
this.adapter = adapter;
|
|
1517
|
+
}
|
|
1518
|
+
ProductsIndex.prototype.findById = function (ids, options) {
|
|
1519
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1520
|
+
var publishedField, fields, hits;
|
|
1521
|
+
var _a;
|
|
1522
|
+
return __generator(this, function (_b) {
|
|
1523
|
+
switch (_b.label) {
|
|
1524
|
+
case 0:
|
|
1525
|
+
publishedField = options.shop === exports.Shops.GLAMSHOP ? 'publishedGlam' : 'published';
|
|
1526
|
+
fields = [
|
|
1527
|
+
'brand',
|
|
1528
|
+
'id',
|
|
1529
|
+
'images',
|
|
1530
|
+
'miniatures',
|
|
1531
|
+
'name',
|
|
1532
|
+
'price',
|
|
1533
|
+
'sku',
|
|
1534
|
+
'stock',
|
|
1535
|
+
'slug',
|
|
1536
|
+
'reviews',
|
|
1537
|
+
'pricePaid',
|
|
1538
|
+
'isGift',
|
|
1539
|
+
'stock',
|
|
1540
|
+
'weight',
|
|
1541
|
+
'tags',
|
|
1542
|
+
];
|
|
1543
|
+
return [4 /*yield*/, this.adapter.query('products/_search', Object.assign({ _source: fields, query: {
|
|
1544
|
+
bool: {
|
|
1545
|
+
filter: __spreadArray([
|
|
1546
|
+
{
|
|
1547
|
+
terms: {
|
|
1548
|
+
_id: ids,
|
|
1549
|
+
},
|
|
1550
|
+
},
|
|
1551
|
+
{
|
|
1552
|
+
term: (_a = {},
|
|
1553
|
+
_a[publishedField] = true,
|
|
1554
|
+
_a),
|
|
1555
|
+
}
|
|
1556
|
+
], __read((options.hasStock
|
|
1557
|
+
? [
|
|
1558
|
+
{
|
|
1559
|
+
range: {
|
|
1560
|
+
'stock.quantity': {
|
|
1561
|
+
gt: 0,
|
|
1562
|
+
},
|
|
1563
|
+
},
|
|
1564
|
+
},
|
|
1565
|
+
]
|
|
1566
|
+
: []))),
|
|
1567
|
+
},
|
|
1568
|
+
} }, (options.size ? { size: options.size } : {})))];
|
|
1569
|
+
case 1:
|
|
1570
|
+
hits = (_b.sent()).hits;
|
|
1571
|
+
return [2 /*return*/, hits.map(function (hit) { return Product.toInstance(hit._source); })];
|
|
1572
|
+
}
|
|
1573
|
+
});
|
|
1574
|
+
});
|
|
1575
|
+
};
|
|
1576
|
+
return ProductsIndex;
|
|
1577
|
+
}());
|
|
1578
|
+
|
|
1485
1579
|
var withFirestore = function (MixinBase) {
|
|
1486
1580
|
return /** @class */ (function (_super) {
|
|
1487
1581
|
__extends(class_1, _super);
|
|
@@ -2067,9 +2161,10 @@
|
|
|
2067
2161
|
|
|
2068
2162
|
var CategoryFirestoreRepository = /** @class */ (function (_super) {
|
|
2069
2163
|
__extends(CategoryFirestoreRepository, _super);
|
|
2070
|
-
function CategoryFirestoreRepository(firestore) {
|
|
2164
|
+
function CategoryFirestoreRepository(firestore, productsIndex) {
|
|
2071
2165
|
var _this = _super.call(this) || this;
|
|
2072
2166
|
_this.firestore = firestore;
|
|
2167
|
+
_this.productsIndex = productsIndex;
|
|
2073
2168
|
_this.collectionName = 'categories';
|
|
2074
2169
|
_this.model = Category;
|
|
2075
2170
|
return _this;
|
|
@@ -2097,7 +2192,7 @@
|
|
|
2097
2192
|
return __generator(this, function (_a) {
|
|
2098
2193
|
switch (_a.label) {
|
|
2099
2194
|
case 0: return [4 /*yield*/, this.collection(this.collectionName)
|
|
2100
|
-
.where('id', 'in', categoryIds
|
|
2195
|
+
.where('id', 'in', categoryIds)
|
|
2101
2196
|
.where('published', '==', true)
|
|
2102
2197
|
.get()];
|
|
2103
2198
|
case 1:
|
|
@@ -2128,56 +2223,14 @@
|
|
|
2128
2223
|
};
|
|
2129
2224
|
CategoryFirestoreRepository.prototype.mountCategory = function (category, options) {
|
|
2130
2225
|
return __awaiter(this, void 0, void 0, function () {
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
products = [];
|
|
2140
|
-
publishedField = category.shop === exports.Shops.GLAMSHOP ? 'publishedGlam' : 'published';
|
|
2141
|
-
_b.label = 1;
|
|
2142
|
-
case 1:
|
|
2143
|
-
_b.trys.push([1, 7, 8, 9]);
|
|
2144
|
-
chunks_1 = __values(chunks), chunks_1_1 = chunks_1.next();
|
|
2145
|
-
_b.label = 2;
|
|
2146
|
-
case 2:
|
|
2147
|
-
if (!!chunks_1_1.done) return [3 /*break*/, 6];
|
|
2148
|
-
productIds = chunks_1_1.value;
|
|
2149
|
-
if ((options === null || options === void 0 ? void 0 : options.limit) && products.length >= (options === null || options === void 0 ? void 0 : options.limit))
|
|
2150
|
-
return [3 /*break*/, 6];
|
|
2151
|
-
return [4 /*yield*/, this.collection('products').where(publishedField, '==', true).where('id', 'in', productIds)];
|
|
2152
|
-
case 3:
|
|
2153
|
-
query = _b.sent();
|
|
2154
|
-
if (options === null || options === void 0 ? void 0 : options.hasStock)
|
|
2155
|
-
query = query.where('stock.quantity', '>', 0);
|
|
2156
|
-
if (options === null || options === void 0 ? void 0 : options.limit)
|
|
2157
|
-
query = query.limit(options === null || options === void 0 ? void 0 : options.limit);
|
|
2158
|
-
return [4 /*yield*/, query.get()];
|
|
2159
|
-
case 4:
|
|
2160
|
-
productSnap = _b.sent();
|
|
2161
|
-
if (productSnap.empty)
|
|
2162
|
-
return [3 /*break*/, 5];
|
|
2163
|
-
products.push.apply(products, __spreadArray([], __read(productSnap.docs.map(function (doc) { return doc.data(); }))));
|
|
2164
|
-
_b.label = 5;
|
|
2165
|
-
case 5:
|
|
2166
|
-
chunks_1_1 = chunks_1.next();
|
|
2167
|
-
return [3 /*break*/, 2];
|
|
2168
|
-
case 6: return [3 /*break*/, 9];
|
|
2169
|
-
case 7:
|
|
2170
|
-
e_1_1 = _b.sent();
|
|
2171
|
-
e_1 = { error: e_1_1 };
|
|
2172
|
-
return [3 /*break*/, 9];
|
|
2173
|
-
case 8:
|
|
2174
|
-
try {
|
|
2175
|
-
if (chunks_1_1 && !chunks_1_1.done && (_a = chunks_1.return)) _a.call(chunks_1);
|
|
2176
|
-
}
|
|
2177
|
-
finally { if (e_1) throw e_1.error; }
|
|
2178
|
-
return [7 /*endfinally*/];
|
|
2179
|
-
case 9: return [2 /*return*/, products];
|
|
2180
|
-
}
|
|
2226
|
+
return __generator(this, function (_a) {
|
|
2227
|
+
if (!category.products)
|
|
2228
|
+
throw new RequiredArgumentError(['Category products is empty']);
|
|
2229
|
+
return [2 /*return*/, this.productsIndex.findById(category.products, {
|
|
2230
|
+
hasStock: options === null || options === void 0 ? void 0 : options.hasStock,
|
|
2231
|
+
size: options === null || options === void 0 ? void 0 : options.limit,
|
|
2232
|
+
shop: category.shop,
|
|
2233
|
+
})];
|
|
2181
2234
|
});
|
|
2182
2235
|
});
|
|
2183
2236
|
};
|
|
@@ -2584,6 +2637,7 @@
|
|
|
2584
2637
|
exports.Address = Address;
|
|
2585
2638
|
exports.Authentication = Authentication;
|
|
2586
2639
|
exports.AuthenticationFirebaseAuthService = AuthenticationFirebaseAuthService;
|
|
2640
|
+
exports.AxiosAdapter = AxiosAdapter;
|
|
2587
2641
|
exports.Base = Base;
|
|
2588
2642
|
exports.BaseModel = BaseModel;
|
|
2589
2643
|
exports.BeautyProfile = BeautyProfile;
|
|
@@ -2616,6 +2670,7 @@
|
|
|
2616
2670
|
exports.Product = Product;
|
|
2617
2671
|
exports.ProductFirestoreRepository = ProductFirestoreRepository;
|
|
2618
2672
|
exports.ProductVariantFirestoreRepository = ProductVariantFirestoreRepository;
|
|
2673
|
+
exports.ProductsIndex = ProductsIndex;
|
|
2619
2674
|
exports.RecoveryPassword = RecoveryPassword;
|
|
2620
2675
|
exports.Register = Register;
|
|
2621
2676
|
exports.RegisterFirebaseAuthService = RegisterFirebaseAuthService;
|