@infrab4a/connect 1.0.2 → 1.0.3-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +24 -24
- package/bundles/infrab4a-connect.umd.js +4273 -4273
- package/bundles/infrab4a-connect.umd.js.map +1 -1
- package/domain/catalog/index.d.ts +2 -2
- package/domain/catalog/models/category.d.ts +23 -23
- package/domain/catalog/models/enums/index.d.ts +1 -1
- package/domain/catalog/models/enums/shops.enum.d.ts +5 -5
- package/domain/catalog/models/index.d.ts +6 -6
- package/domain/catalog/models/kit-product.d.ts +12 -12
- package/domain/catalog/models/product.d.ts +40 -40
- package/domain/catalog/models/types/category-condition.type.d.ts +4 -4
- package/domain/catalog/models/types/category-filter.type.d.ts +4 -4
- package/domain/catalog/models/types/index.d.ts +7 -7
- package/domain/catalog/models/types/product-review.type.d.ts +17 -17
- package/domain/catalog/models/types/shops-description.type.d.ts +7 -7
- package/domain/catalog/models/types/shops-price.type.d.ts +10 -10
- package/domain/catalog/models/types/stock.type.d.ts +3 -3
- package/domain/catalog/models/types/variant-grade.type.d.ts +4 -4
- package/domain/catalog/models/variant.d.ts +18 -18
- package/domain/catalog/repositories/category.repository.d.ts +15 -15
- package/domain/catalog/repositories/index.d.ts +4 -4
- package/domain/catalog/repositories/product.repository.d.ts +12 -12
- package/domain/catalog/repositories/subscription-product.repository.d.ts +4 -4
- package/domain/catalog/repositories/variant.repository.d.ts +4 -4
- package/domain/generic/index.d.ts +2 -2
- package/domain/generic/model/base.model.d.ts +10 -10
- package/domain/generic/model/identifier-fields.d.ts +4 -4
- package/domain/generic/model/index.d.ts +3 -3
- package/domain/generic/model/types/base-model-builder.type.d.ts +15 -15
- package/domain/generic/model/types/identifier-model.type.d.ts +7 -7
- package/domain/generic/model/types/index.d.ts +5 -5
- package/domain/generic/model/types/model-base-structure.type.d.ts +6 -6
- package/domain/generic/model/types/non-function-properties.type.d.ts +12 -12
- package/domain/generic/model/types/non-function-property-name.type.d.ts +4 -4
- package/domain/generic/repository/create.repository.d.ts +8 -8
- package/domain/generic/repository/crud.repository.d.ts +19 -19
- package/domain/generic/repository/delete.repository.d.ts +7 -7
- package/domain/generic/repository/enums/index.d.ts +2 -2
- package/domain/generic/repository/enums/update-option-actions.enum.d.ts +7 -7
- package/domain/generic/repository/enums/where.enum.d.ts +13 -13
- package/domain/generic/repository/find.repository.d.ts +11 -11
- package/domain/generic/repository/get.repository.d.ts +5 -5
- package/domain/generic/repository/index.d.ts +9 -9
- package/domain/generic/repository/read.repository.d.ts +14 -14
- package/domain/generic/repository/types/index.d.ts +6 -6
- package/domain/generic/repository/types/repository-find-filters.type.d.ts +13 -13
- package/domain/generic/repository/types/repository-find-result.type.d.ts +4 -4
- package/domain/generic/repository/types/repository-limit-options.type.d.ts +4 -4
- package/domain/generic/repository/types/repository-order-by-list.type.d.ts +5 -5
- package/domain/generic/repository/types/repository-update-params.type.d.ts +11 -11
- package/domain/generic/repository/types/where-options.type.d.ts +2 -2
- package/domain/generic/repository/update.repository.d.ts +6 -6
- package/domain/index.d.ts +6 -6
- package/domain/location/index.d.ts +1 -1
- package/domain/location/models/address.d.ts +22 -22
- package/domain/location/models/index.d.ts +2 -2
- package/domain/location/models/types/index.d.ts +3 -3
- package/domain/location/models/types/location-bound.type.d.ts +6 -6
- package/domain/location/models/types/location-geometry.type.d.ts +7 -7
- package/domain/location/models/types/location-lat-lng.type.d.ts +4 -4
- package/domain/shop-settings/enums/filter-type.enum.d.ts +19 -19
- package/domain/shop-settings/enums/index.d.ts +2 -2
- package/domain/shop-settings/enums/questions-filters.enum.d.ts +19 -19
- package/domain/shop-settings/helpers/beauty-questions.helper.d.ts +9 -9
- package/domain/shop-settings/helpers/index.d.ts +1 -1
- package/domain/shop-settings/index.d.ts +4 -4
- package/domain/shop-settings/models/home.d.ts +17 -17
- package/domain/shop-settings/models/index.d.ts +3 -3
- package/domain/shop-settings/models/shop-menu.d.ts +7 -7
- package/domain/shop-settings/models/types/banner.type.d.ts +6 -6
- package/domain/shop-settings/models/types/benefit.type.d.ts +5 -5
- package/domain/shop-settings/models/types/home-data.type.d.ts +15 -15
- package/domain/shop-settings/models/types/index.d.ts +5 -5
- package/domain/shop-settings/models/types/menu-nav.type.d.ts +8 -8
- package/domain/shop-settings/models/types/sub-menu.type.d.ts +8 -8
- package/domain/shop-settings/repositories/home.repository.d.ts +4 -4
- package/domain/shop-settings/repositories/index.d.ts +2 -2
- package/domain/shop-settings/repositories/shop-menu.repository.d.ts +4 -4
- package/domain/shopping/index.d.ts +2 -2
- package/domain/shopping/models/buy-2-win.d.ts +16 -16
- package/domain/shopping/models/checkout.d.ts +27 -27
- package/domain/shopping/models/coupons/coupon.d.ts +26 -26
- package/domain/shopping/models/coupons/enums/coupon-subtypes.enum.d.ts +4 -4
- package/domain/shopping/models/coupons/enums/coupon-types.enum.d.ts +6 -6
- package/domain/shopping/models/coupons/enums/exclusivities.enum.d.ts +5 -5
- package/domain/shopping/models/coupons/enums/index.d.ts +3 -3
- package/domain/shopping/models/coupons/financial-coupon.d.ts +9 -9
- package/domain/shopping/models/coupons/index.d.ts +3 -3
- package/domain/shopping/models/enums/checkout-types.enum.d.ts +4 -4
- package/domain/shopping/models/enums/index.d.ts +2 -2
- package/domain/shopping/models/enums/order-status.enum.d.ts +10 -10
- package/domain/shopping/models/index.d.ts +11 -11
- package/domain/shopping/models/line-item.d.ts +8 -8
- package/domain/shopping/models/order.d.ts +9 -9
- package/domain/shopping/models/payment.d.ts +67 -67
- package/domain/shopping/models/shipping-method.d.ts +16 -16
- package/domain/shopping/models/subscription/checkout.d.ts +21 -21
- package/domain/shopping/models/subscription/index.d.ts +2 -2
- package/domain/shopping/models/subscription/plan.d.ts +10 -10
- package/domain/shopping/models/types/index.d.ts +7 -7
- package/domain/shopping/models/types/payment-address.type.d.ts +12 -12
- package/domain/shopping/models/types/payment-billing.type.d.ts +7 -7
- package/domain/shopping/models/types/payment-card.type.d.ts +14 -14
- package/domain/shopping/models/types/payment-customer.type.d.ts +18 -18
- package/domain/shopping/models/types/payment-document.type.d.ts +6 -6
- package/domain/shopping/models/types/payment-item.type.d.ts +11 -11
- package/domain/shopping/models/types/payment-shipping.type.d.ts +10 -10
- package/domain/shopping/repositories/buy-2-win.repository.d.ts +4 -4
- package/domain/shopping/repositories/checkout.repository.d.ts +4 -4
- package/domain/shopping/repositories/coupon.repository.d.ts +4 -4
- package/domain/shopping/repositories/index.d.ts +7 -7
- package/domain/shopping/repositories/legacy-order.repository.d.ts +3 -3
- package/domain/shopping/repositories/order.repository.d.ts +4 -4
- package/domain/shopping/repositories/payment.repository.d.ts +4 -4
- package/domain/shopping/repositories/subscription/checkout.repository.d.ts +4 -4
- package/domain/shopping/repositories/subscription/index.d.ts +2 -2
- package/domain/shopping/repositories/subscription/plan.repository.d.ts +4 -4
- package/domain/users/errors/index.d.ts +3 -3
- package/domain/users/errors/unauthorized.error.d.ts +5 -5
- package/domain/users/errors/user-already-registered.error.d.ts +5 -5
- package/domain/users/errors/weak-password.error.d.ts +5 -5
- package/domain/users/index.d.ts +5 -5
- package/domain/users/models/beauty-profile.d.ts +11 -11
- package/domain/users/models/enums/accessory-importances.enum.d.ts +5 -5
- package/domain/users/models/enums/area.enum.d.ts +11 -11
- package/domain/users/models/enums/beard-problems.enum.d.ts +9 -9
- package/domain/users/models/enums/beard-sizes.enum.d.ts +7 -7
- package/domain/users/models/enums/beauty-product-importances.enum.d.ts +6 -6
- package/domain/users/models/enums/body-problems.enum.d.ts +11 -11
- package/domain/users/models/enums/body-shapes.enum.d.ts +7 -7
- package/domain/users/models/enums/body-tattoos.enum.d.ts +5 -5
- package/domain/users/models/enums/face-skin-oilinesses.enum.d.ts +7 -7
- package/domain/users/models/enums/face-skin-problems.enum.d.ts +10 -10
- package/domain/users/models/enums/face-skin-tones.enum.d.ts +8 -8
- package/domain/users/models/enums/family-incomes.enum.d.ts +8 -8
- package/domain/users/models/enums/fragrance-importances.enum.d.ts +5 -5
- package/domain/users/models/enums/hair-colors.enum.d.ts +10 -10
- package/domain/users/models/enums/hair-problems.enum.d.ts +10 -10
- package/domain/users/models/enums/hair-strands.enum.d.ts +8 -8
- package/domain/users/models/enums/hair-types.enum.d.ts +7 -7
- package/domain/users/models/enums/index.d.ts +20 -20
- package/domain/users/models/enums/office-position.enum.d.ts +6 -6
- package/domain/users/models/enums/product-spents.enum.d.ts +8 -8
- package/domain/users/models/enums/user-type.enum.d.ts +8 -8
- package/domain/users/models/index.d.ts +7 -7
- package/domain/users/models/lead.d.ts +7 -7
- package/domain/users/models/subscription/edition.d.ts +16 -16
- package/domain/users/models/subscription/enums/billing-status.enum.d.ts +3 -3
- package/domain/users/models/subscription/enums/edition-status.enum.d.ts +4 -4
- package/domain/users/models/subscription/enums/index.d.ts +4 -4
- package/domain/users/models/subscription/enums/payment-type.enum.d.ts +5 -5
- package/domain/users/models/subscription/enums/status.enum.d.ts +4 -4
- package/domain/users/models/subscription/index.d.ts +4 -4
- package/domain/users/models/subscription/payment.d.ts +13 -13
- package/domain/users/models/subscription/subscription.d.ts +28 -28
- package/domain/users/models/user-address.d.ts +7 -7
- package/domain/users/models/user-payment-method.d.ts +14 -14
- package/domain/users/models/user.d.ts +28 -28
- package/domain/users/repositories/beauty-profile.repository.d.ts +4 -4
- package/domain/users/repositories/edition.repository.d.ts +4 -4
- package/domain/users/repositories/index.d.ts +8 -8
- package/domain/users/repositories/lead.repository.d.ts +4 -4
- package/domain/users/repositories/subscription-payment.repository.d.ts +4 -4
- package/domain/users/repositories/subscription.repository.d.ts +4 -4
- package/domain/users/repositories/user-address.repository.d.ts +4 -4
- package/domain/users/repositories/user-payment-method.repository.d.ts +4 -4
- package/domain/users/repositories/user.repository.d.ts +6 -6
- package/domain/users/services/authentication.service.d.ts +12 -12
- package/domain/users/services/index.d.ts +3 -3
- package/domain/users/services/register.service.d.ts +7 -7
- package/domain/users/services/types/basic-user-data.type.d.ts +4 -4
- package/domain/users/services/types/index.d.ts +1 -1
- package/domain/users/use-cases/authentication.d.ts +21 -21
- package/domain/users/use-cases/index.d.ts +4 -4
- package/domain/users/use-cases/recovery-password.d.ts +6 -6
- package/domain/users/use-cases/register.d.ts +13 -13
- package/domain/users/use-cases/signout.d.ts +6 -6
- package/errors/duplicated-results.error.d.ts +5 -5
- package/errors/index.d.ts +4 -4
- package/errors/invalid-argument.error.d.ts +5 -5
- package/errors/not-found.error.d.ts +5 -5
- package/errors/required-argument.error.d.ts +6 -6
- package/esm2015/domain/catalog/index.js +3 -3
- package/esm2015/domain/catalog/models/category.js +10 -10
- package/esm2015/domain/catalog/models/enums/index.js +2 -2
- package/esm2015/domain/catalog/models/enums/shops.enum.js +7 -7
- package/esm2015/domain/catalog/models/index.js +7 -7
- package/esm2015/domain/catalog/models/kit-product.js +18 -18
- package/esm2015/domain/catalog/models/product.js +21 -21
- package/esm2015/domain/catalog/models/types/category-condition.type.js +2 -2
- package/esm2015/domain/catalog/models/types/category-filter.type.js +2 -2
- package/esm2015/domain/catalog/models/types/index.js +8 -8
- package/esm2015/domain/catalog/models/types/product-review.type.js +2 -2
- package/esm2015/domain/catalog/models/types/shops-description.type.js +2 -2
- package/esm2015/domain/catalog/models/types/shops-price.type.js +2 -2
- package/esm2015/domain/catalog/models/types/stock.type.js +2 -2
- package/esm2015/domain/catalog/models/types/variant-grade.type.js +2 -2
- package/esm2015/domain/catalog/models/variant.js +10 -10
- package/esm2015/domain/catalog/repositories/category.repository.js +2 -2
- package/esm2015/domain/catalog/repositories/index.js +5 -5
- package/esm2015/domain/catalog/repositories/product.repository.js +2 -2
- package/esm2015/domain/catalog/repositories/subscription-product.repository.js +2 -2
- package/esm2015/domain/catalog/repositories/variant.repository.js +2 -2
- package/esm2015/domain/generic/index.js +3 -3
- package/esm2015/domain/generic/model/base.model.js +23 -23
- package/esm2015/domain/generic/model/identifier-fields.js +2 -2
- package/esm2015/domain/generic/model/index.js +4 -4
- package/esm2015/domain/generic/model/types/base-model-builder.type.js +2 -2
- package/esm2015/domain/generic/model/types/identifier-model.type.js +2 -2
- package/esm2015/domain/generic/model/types/index.js +6 -6
- package/esm2015/domain/generic/model/types/model-base-structure.type.js +2 -2
- package/esm2015/domain/generic/model/types/non-function-properties.type.js +2 -2
- package/esm2015/domain/generic/model/types/non-function-property-name.type.js +2 -2
- package/esm2015/domain/generic/repository/create.repository.js +2 -2
- package/esm2015/domain/generic/repository/crud.repository.js +2 -2
- package/esm2015/domain/generic/repository/delete.repository.js +2 -2
- package/esm2015/domain/generic/repository/enums/index.js +3 -3
- package/esm2015/domain/generic/repository/enums/update-option-actions.enum.js +9 -9
- package/esm2015/domain/generic/repository/enums/where.enum.js +15 -15
- package/esm2015/domain/generic/repository/find.repository.js +2 -2
- package/esm2015/domain/generic/repository/get.repository.js +2 -2
- package/esm2015/domain/generic/repository/index.js +10 -10
- package/esm2015/domain/generic/repository/read.repository.js +2 -2
- package/esm2015/domain/generic/repository/types/index.js +7 -7
- package/esm2015/domain/generic/repository/types/repository-find-filters.type.js +2 -2
- package/esm2015/domain/generic/repository/types/repository-find-result.type.js +2 -2
- package/esm2015/domain/generic/repository/types/repository-limit-options.type.js +2 -2
- package/esm2015/domain/generic/repository/types/repository-order-by-list.type.js +2 -2
- package/esm2015/domain/generic/repository/types/repository-update-params.type.js +2 -2
- package/esm2015/domain/generic/repository/types/where-options.type.js +2 -2
- package/esm2015/domain/generic/repository/update.repository.js +2 -2
- package/esm2015/domain/index.js +7 -7
- package/esm2015/domain/location/index.js +2 -2
- package/esm2015/domain/location/models/address.js +7 -7
- package/esm2015/domain/location/models/index.js +3 -3
- package/esm2015/domain/location/models/types/index.js +4 -4
- package/esm2015/domain/location/models/types/location-bound.type.js +2 -2
- package/esm2015/domain/location/models/types/location-geometry.type.js +2 -2
- package/esm2015/domain/location/models/types/location-lat-lng.type.js +2 -2
- package/esm2015/domain/shop-settings/enums/filter-type.enum.js +21 -21
- package/esm2015/domain/shop-settings/enums/index.js +3 -3
- package/esm2015/domain/shop-settings/enums/questions-filters.enum.js +21 -21
- package/esm2015/domain/shop-settings/helpers/beauty-questions.helper.js +46 -46
- package/esm2015/domain/shop-settings/helpers/index.js +2 -2
- package/esm2015/domain/shop-settings/index.js +5 -5
- package/esm2015/domain/shop-settings/models/home.js +7 -7
- package/esm2015/domain/shop-settings/models/index.js +4 -4
- package/esm2015/domain/shop-settings/models/shop-menu.js +7 -7
- package/esm2015/domain/shop-settings/models/types/banner.type.js +2 -2
- package/esm2015/domain/shop-settings/models/types/benefit.type.js +2 -2
- package/esm2015/domain/shop-settings/models/types/home-data.type.js +2 -2
- package/esm2015/domain/shop-settings/models/types/index.js +6 -6
- package/esm2015/domain/shop-settings/models/types/menu-nav.type.js +2 -2
- package/esm2015/domain/shop-settings/models/types/sub-menu.type.js +2 -2
- package/esm2015/domain/shop-settings/repositories/home.repository.js +2 -2
- package/esm2015/domain/shop-settings/repositories/index.js +3 -3
- package/esm2015/domain/shop-settings/repositories/shop-menu.repository.js +2 -2
- package/esm2015/domain/shopping/index.js +3 -3
- package/esm2015/domain/shopping/models/buy-2-win.js +14 -14
- package/esm2015/domain/shopping/models/checkout.js +38 -38
- package/esm2015/domain/shopping/models/coupons/coupon.js +23 -23
- package/esm2015/domain/shopping/models/coupons/enums/coupon-subtypes.enum.js +6 -6
- package/esm2015/domain/shopping/models/coupons/enums/coupon-types.enum.js +8 -8
- package/esm2015/domain/shopping/models/coupons/enums/exclusivities.enum.js +7 -7
- package/esm2015/domain/shopping/models/coupons/enums/index.js +4 -4
- package/esm2015/domain/shopping/models/coupons/financial-coupon.js +28 -28
- package/esm2015/domain/shopping/models/coupons/index.js +4 -4
- package/esm2015/domain/shopping/models/enums/checkout-types.enum.js +6 -6
- package/esm2015/domain/shopping/models/enums/index.js +3 -3
- package/esm2015/domain/shopping/models/enums/order-status.enum.js +12 -12
- package/esm2015/domain/shopping/models/index.js +12 -12
- package/esm2015/domain/shopping/models/line-item.js +4 -4
- package/esm2015/domain/shopping/models/order.js +11 -11
- package/esm2015/domain/shopping/models/payment.js +169 -169
- package/esm2015/domain/shopping/models/shipping-method.js +7 -7
- package/esm2015/domain/shopping/models/subscription/checkout.js +28 -28
- package/esm2015/domain/shopping/models/subscription/index.js +3 -3
- package/esm2015/domain/shopping/models/subscription/plan.js +7 -7
- package/esm2015/domain/shopping/models/types/index.js +8 -8
- package/esm2015/domain/shopping/models/types/payment-address.type.js +2 -2
- package/esm2015/domain/shopping/models/types/payment-billing.type.js +2 -2
- package/esm2015/domain/shopping/models/types/payment-card.type.js +2 -2
- package/esm2015/domain/shopping/models/types/payment-customer.type.js +2 -2
- package/esm2015/domain/shopping/models/types/payment-document.type.js +2 -2
- package/esm2015/domain/shopping/models/types/payment-item.type.js +2 -2
- package/esm2015/domain/shopping/models/types/payment-shipping.type.js +2 -2
- package/esm2015/domain/shopping/repositories/buy-2-win.repository.js +2 -2
- package/esm2015/domain/shopping/repositories/checkout.repository.js +2 -2
- package/esm2015/domain/shopping/repositories/coupon.repository.js +2 -2
- package/esm2015/domain/shopping/repositories/index.js +8 -8
- package/esm2015/domain/shopping/repositories/legacy-order.repository.js +2 -2
- package/esm2015/domain/shopping/repositories/order.repository.js +2 -2
- package/esm2015/domain/shopping/repositories/payment.repository.js +2 -2
- package/esm2015/domain/shopping/repositories/subscription/checkout.repository.js +2 -2
- package/esm2015/domain/shopping/repositories/subscription/index.js +3 -3
- package/esm2015/domain/shopping/repositories/subscription/plan.repository.js +2 -2
- package/esm2015/domain/users/errors/index.js +4 -4
- package/esm2015/domain/users/errors/unauthorized.error.js +8 -8
- package/esm2015/domain/users/errors/user-already-registered.error.js +8 -8
- package/esm2015/domain/users/errors/weak-password.error.js +8 -8
- package/esm2015/domain/users/index.js +6 -6
- package/esm2015/domain/users/models/beauty-profile.js +12 -12
- package/esm2015/domain/users/models/enums/accessory-importances.enum.js +7 -7
- package/esm2015/domain/users/models/enums/area.enum.js +13 -13
- package/esm2015/domain/users/models/enums/beard-problems.enum.js +11 -11
- package/esm2015/domain/users/models/enums/beard-sizes.enum.js +9 -9
- package/esm2015/domain/users/models/enums/beauty-product-importances.enum.js +8 -8
- package/esm2015/domain/users/models/enums/body-problems.enum.js +13 -13
- package/esm2015/domain/users/models/enums/body-shapes.enum.js +9 -9
- package/esm2015/domain/users/models/enums/body-tattoos.enum.js +7 -7
- package/esm2015/domain/users/models/enums/face-skin-oilinesses.enum.js +9 -9
- package/esm2015/domain/users/models/enums/face-skin-problems.enum.js +12 -12
- package/esm2015/domain/users/models/enums/face-skin-tones.enum.js +10 -10
- package/esm2015/domain/users/models/enums/family-incomes.enum.js +10 -10
- package/esm2015/domain/users/models/enums/fragrance-importances.enum.js +7 -7
- package/esm2015/domain/users/models/enums/hair-colors.enum.js +12 -12
- package/esm2015/domain/users/models/enums/hair-problems.enum.js +12 -12
- package/esm2015/domain/users/models/enums/hair-strands.enum.js +10 -10
- package/esm2015/domain/users/models/enums/hair-types.enum.js +9 -9
- package/esm2015/domain/users/models/enums/index.js +21 -21
- package/esm2015/domain/users/models/enums/office-position.enum.js +8 -8
- package/esm2015/domain/users/models/enums/product-spents.enum.js +10 -10
- package/esm2015/domain/users/models/enums/user-type.enum.js +10 -10
- package/esm2015/domain/users/models/index.js +8 -8
- package/esm2015/domain/users/models/lead.js +7 -7
- package/esm2015/domain/users/models/subscription/edition.js +7 -7
- package/esm2015/domain/users/models/subscription/enums/billing-status.enum.js +5 -5
- package/esm2015/domain/users/models/subscription/enums/edition-status.enum.js +6 -6
- package/esm2015/domain/users/models/subscription/enums/index.js +5 -5
- package/esm2015/domain/users/models/subscription/enums/payment-type.enum.js +7 -7
- package/esm2015/domain/users/models/subscription/enums/status.enum.js +6 -6
- package/esm2015/domain/users/models/subscription/index.js +5 -5
- package/esm2015/domain/users/models/subscription/payment.js +14 -14
- package/esm2015/domain/users/models/subscription/subscription.js +43 -43
- package/esm2015/domain/users/models/user-address.js +7 -7
- package/esm2015/domain/users/models/user-payment-method.js +7 -7
- package/esm2015/domain/users/models/user.js +26 -26
- package/esm2015/domain/users/repositories/beauty-profile.repository.js +2 -2
- package/esm2015/domain/users/repositories/edition.repository.js +2 -2
- package/esm2015/domain/users/repositories/index.js +9 -9
- package/esm2015/domain/users/repositories/lead.repository.js +2 -2
- package/esm2015/domain/users/repositories/subscription-payment.repository.js +2 -2
- package/esm2015/domain/users/repositories/subscription.repository.js +2 -2
- package/esm2015/domain/users/repositories/user-address.repository.js +2 -2
- package/esm2015/domain/users/repositories/user-payment-method.repository.js +2 -2
- package/esm2015/domain/users/repositories/user.repository.js +2 -2
- package/esm2015/domain/users/services/authentication.service.js +2 -2
- package/esm2015/domain/users/services/index.js +4 -4
- package/esm2015/domain/users/services/register.service.js +2 -2
- package/esm2015/domain/users/services/types/basic-user-data.type.js +2 -2
- package/esm2015/domain/users/services/types/index.js +2 -2
- package/esm2015/domain/users/use-cases/authentication.js +40 -40
- package/esm2015/domain/users/use-cases/index.js +5 -5
- package/esm2015/domain/users/use-cases/recovery-password.js +12 -12
- package/esm2015/domain/users/use-cases/register.js +34 -34
- package/esm2015/domain/users/use-cases/signout.js +12 -12
- package/esm2015/errors/duplicated-results.error.js +8 -8
- package/esm2015/errors/index.js +5 -5
- package/esm2015/errors/invalid-argument.error.js +8 -8
- package/esm2015/errors/not-found.error.js +8 -8
- package/esm2015/errors/required-argument.error.js +9 -9
- package/esm2015/index.js +6 -6
- package/esm2015/infra/elasticsearch/adapters/axios.adapter.js +57 -57
- package/esm2015/infra/elasticsearch/adapters/elastic-search.adapter.js +2 -2
- package/esm2015/infra/elasticsearch/adapters/index.js +3 -3
- package/esm2015/infra/elasticsearch/index.js +4 -4
- package/esm2015/infra/elasticsearch/indexes/index.js +2 -2
- package/esm2015/infra/elasticsearch/indexes/products-index.js +93 -93
- package/esm2015/infra/elasticsearch/types/elastic-search-result.js +2 -2
- package/esm2015/infra/elasticsearch/types/index.js +2 -2
- package/esm2015/infra/firebase/auth/authentication-firebase-auth.service.js +52 -52
- package/esm2015/infra/firebase/auth/index.js +3 -3
- package/esm2015/infra/firebase/auth/register-firebase-auth.service.js +26 -26
- package/esm2015/infra/firebase/auth/types/firebase-user-with-id.type.js +2 -2
- package/esm2015/infra/firebase/firestore/index.js +4 -4
- package/esm2015/infra/firebase/firestore/mixins/index.js +10 -10
- package/esm2015/infra/firebase/firestore/mixins/with-create-firestore.mixin.js +31 -31
- package/esm2015/infra/firebase/firestore/mixins/with-crud-firestore.mixin.js +10 -10
- package/esm2015/infra/firebase/firestore/mixins/with-delete-firestore.mixin.js +18 -18
- package/esm2015/infra/firebase/firestore/mixins/with-find-firestore.mixin.js +92 -92
- package/esm2015/infra/firebase/firestore/mixins/with-firestore.mixin.js +22 -22
- package/esm2015/infra/firebase/firestore/mixins/with-get-firestore.mixin.js +24 -24
- package/esm2015/infra/firebase/firestore/mixins/with-helpers.mixin.js +17 -17
- package/esm2015/infra/firebase/firestore/mixins/with-sub-collection.mixin.js +11 -11
- package/esm2015/infra/firebase/firestore/mixins/with-update-firestore.mixin.js +45 -45
- package/esm2015/infra/firebase/firestore/models/user-search.js +7 -7
- package/esm2015/infra/firebase/firestore/repositories/catalog/category-firestore.repository.js +72 -72
- package/esm2015/infra/firebase/firestore/repositories/catalog/index.js +5 -5
- package/esm2015/infra/firebase/firestore/repositories/catalog/product-firestore.repository.js +52 -52
- package/esm2015/infra/firebase/firestore/repositories/catalog/product-variant-firestore.repository.js +14 -14
- package/esm2015/infra/firebase/firestore/repositories/catalog/subscription-product-firestore.repository.js +12 -12
- package/esm2015/infra/firebase/firestore/repositories/index.js +5 -5
- package/esm2015/infra/firebase/firestore/repositories/shop-settings/home-firestore.repository.js +56 -56
- package/esm2015/infra/firebase/firestore/repositories/shop-settings/index.js +3 -3
- package/esm2015/infra/firebase/firestore/repositories/shop-settings/shop-menu-firestore.repository.js +12 -12
- package/esm2015/infra/firebase/firestore/repositories/shopping/buy-2-win-firestore.repository.js +12 -12
- package/esm2015/infra/firebase/firestore/repositories/shopping/checkout-firestore.repository.js +12 -12
- package/esm2015/infra/firebase/firestore/repositories/shopping/checkout-subscription-firestore.repository.js +12 -12
- package/esm2015/infra/firebase/firestore/repositories/shopping/coupon-firestore.repository.js +29 -29
- package/esm2015/infra/firebase/firestore/repositories/shopping/index.js +9 -9
- package/esm2015/infra/firebase/firestore/repositories/shopping/legacy-order-firestore.repository.js +9 -9
- package/esm2015/infra/firebase/firestore/repositories/shopping/order-firestore.repository.js +12 -12
- package/esm2015/infra/firebase/firestore/repositories/shopping/payment-firestore.repository.js +12 -12
- package/esm2015/infra/firebase/firestore/repositories/shopping/subscription-plan-firestore.repository.js +12 -12
- package/esm2015/infra/firebase/firestore/repositories/users/index.js +10 -10
- package/esm2015/infra/firebase/firestore/repositories/users/lead-firestore.repository.js +12 -12
- package/esm2015/infra/firebase/firestore/repositories/users/subscription-edition-firestore.repository.js +14 -14
- package/esm2015/infra/firebase/firestore/repositories/users/subscription-firestore.repository.js +12 -12
- package/esm2015/infra/firebase/firestore/repositories/users/subscription-payment-firestore.repository.js +14 -14
- package/esm2015/infra/firebase/firestore/repositories/users/user-address-firestore.repository.js +14 -14
- package/esm2015/infra/firebase/firestore/repositories/users/user-beauty-profile-firestore.repository.js +14 -14
- package/esm2015/infra/firebase/firestore/repositories/users/user-firestore.repository.js +70 -70
- package/esm2015/infra/firebase/firestore/repositories/users/user-payment-method-firestore.repository.js +14 -14
- package/esm2015/infra/firebase/firestore/repositories/users/user-search-firestore.repository.js +12 -12
- package/esm2015/infra/firebase/firestore/types/firestore-sub.repository.type.js +2 -2
- package/esm2015/infra/firebase/firestore/types/firestore.helpers.type.js +2 -2
- package/esm2015/infra/firebase/firestore/types/firestore.repository.type.js +2 -2
- package/esm2015/infra/firebase/firestore/types/index.js +4 -4
- package/esm2015/infra/firebase/index.js +3 -3
- package/esm2015/infra/hasura-graphql/enums/hasura-graphql-column-type.enum.js +13 -13
- package/esm2015/infra/hasura-graphql/enums/hasura-graphql-where.enum.js +15 -15
- package/esm2015/infra/hasura-graphql/enums/index.js +3 -3
- package/esm2015/infra/hasura-graphql/index.js +5 -5
- package/esm2015/infra/hasura-graphql/mixins/helpers/attribute-option.helper.js +31 -31
- package/esm2015/infra/hasura-graphql/mixins/helpers/filter-option.helper.js +22 -22
- package/esm2015/infra/hasura-graphql/mixins/helpers/graphql-field.helper.js +72 -72
- package/esm2015/infra/hasura-graphql/mixins/helpers/index.js +4 -4
- package/esm2015/infra/hasura-graphql/mixins/index.js +8 -8
- package/esm2015/infra/hasura-graphql/mixins/with-create-hasura-graphql.mixin.js +45 -45
- package/esm2015/infra/hasura-graphql/mixins/with-crud-hasura-graphql.mixin.js +10 -10
- package/esm2015/infra/hasura-graphql/mixins/with-delete-hasura-graphql.mixin.js +29 -29
- package/esm2015/infra/hasura-graphql/mixins/with-find-hasura-graphql.mixin.js +93 -93
- package/esm2015/infra/hasura-graphql/mixins/with-get-hasura-graphql.mixin.js +35 -35
- package/esm2015/infra/hasura-graphql/mixins/with-hasura-graphql.mixin.js +94 -94
- package/esm2015/infra/hasura-graphql/mixins/with-update-hasura-graphql.mixin.js +56 -56
- package/esm2015/infra/hasura-graphql/models/category-hasura-graphql.js +4 -4
- package/esm2015/infra/hasura-graphql/models/index.js +5 -5
- package/esm2015/infra/hasura-graphql/models/kit-product-hasura-graphql.js +15 -15
- package/esm2015/infra/hasura-graphql/models/product-hasura-graphql.js +11 -11
- package/esm2015/infra/hasura-graphql/models/variant-hasura-graphql.js +9 -9
- package/esm2015/infra/hasura-graphql/repositories/catalog/category-hasura-graphql.repository.js +135 -135
- package/esm2015/infra/hasura-graphql/repositories/catalog/index.js +4 -4
- package/esm2015/infra/hasura-graphql/repositories/catalog/product-hasura-graphql.repository.js +387 -387
- package/esm2015/infra/hasura-graphql/repositories/catalog/variant-hasura-graphql.repository.js +119 -119
- package/esm2015/infra/hasura-graphql/repositories/index.js +2 -2
- package/esm2015/infra/hasura-graphql/types/fields.type.js +2 -2
- package/esm2015/infra/hasura-graphql/types/graphql.repository.type.js +2 -2
- package/esm2015/infra/hasura-graphql/types/hasura-graphql-auth-options.type.js +2 -2
- package/esm2015/infra/hasura-graphql/types/hasura-graphql-fields.type.js +2 -2
- package/esm2015/infra/hasura-graphql/types/hasura-graphql-headers.type.js +2 -2
- package/esm2015/infra/hasura-graphql/types/index.js +9 -9
- package/esm2015/infra/hasura-graphql/types/nested-field.type.js +2 -2
- package/esm2015/infra/hasura-graphql/types/query-builder-options.type.js +2 -2
- package/esm2015/infra/hasura-graphql/types/variable-options.type.js +2 -2
- package/esm2015/infra/index.js +4 -4
- package/esm2015/infrab4a-connect.js +4 -4
- package/esm2015/utils/index.js +8 -8
- package/esm2015/utils/is-uuid.js +3 -3
- package/esm2015/utils/mixins/base.mixin.js +6 -6
- package/esm2015/utils/mixins/index.js +4 -4
- package/esm2015/utils/mixins/merge-constructor-params.type.js +2 -2
- package/esm2015/utils/mixins/mixin-ctor.type.js +2 -2
- package/esm2015/utils/parse-datetime.js +14 -14
- package/esm2015/utils/types/array-element.type.js +2 -2
- package/esm2015/utils/types/index.js +3 -3
- package/esm2015/utils/types/prop.type.js +2 -2
- package/fesm2015/infrab4a-connect.js +2909 -2909
- package/fesm2015/infrab4a-connect.js.map +1 -1
- package/index.d.ts +5 -5
- package/infra/elasticsearch/adapters/axios.adapter.d.ts +14 -14
- package/infra/elasticsearch/adapters/elastic-search.adapter.d.ts +7 -7
- package/infra/elasticsearch/adapters/index.d.ts +2 -2
- package/infra/elasticsearch/index.d.ts +3 -3
- package/infra/elasticsearch/indexes/index.d.ts +1 -1
- package/infra/elasticsearch/indexes/products-index.d.ts +15 -15
- package/infra/elasticsearch/types/elastic-search-result.d.ts +7 -7
- package/infra/elasticsearch/types/index.d.ts +1 -1
- package/infra/firebase/auth/authentication-firebase-auth.service.d.ts +12 -12
- package/infra/firebase/auth/index.d.ts +2 -2
- package/infra/firebase/auth/register-firebase-auth.service.d.ts +8 -8
- package/infra/firebase/auth/types/firebase-user-with-id.type.d.ts +3 -3
- package/infra/firebase/firestore/index.d.ts +3 -3
- package/infra/firebase/firestore/mixins/index.d.ts +9 -9
- package/infra/firebase/firestore/mixins/with-create-firestore.mixin.d.ts +4 -4
- package/infra/firebase/firestore/mixins/with-crud-firestore.mixin.d.ts +4 -4
- package/infra/firebase/firestore/mixins/with-delete-firestore.mixin.d.ts +4 -4
- package/infra/firebase/firestore/mixins/with-find-firestore.mixin.d.ts +4 -4
- package/infra/firebase/firestore/mixins/with-firestore.mixin.d.ts +4 -4
- package/infra/firebase/firestore/mixins/with-get-firestore.mixin.d.ts +4 -4
- package/infra/firebase/firestore/mixins/with-helpers.mixin.d.ts +11 -11
- package/infra/firebase/firestore/mixins/with-sub-collection.mixin.d.ts +7 -7
- package/infra/firebase/firestore/mixins/with-update-firestore.mixin.d.ts +7 -7
- package/infra/firebase/firestore/models/user-search.d.ts +9 -9
- package/infra/firebase/firestore/repositories/catalog/category-firestore.repository.d.ts +17 -17
- package/infra/firebase/firestore/repositories/catalog/index.d.ts +4 -4
- package/infra/firebase/firestore/repositories/catalog/product-firestore.repository.d.ts +11 -11
- package/infra/firebase/firestore/repositories/catalog/product-variant-firestore.repository.d.ts +13 -13
- package/infra/firebase/firestore/repositories/catalog/subscription-product-firestore.repository.d.ts +8 -8
- package/infra/firebase/firestore/repositories/index.d.ts +4 -4
- package/infra/firebase/firestore/repositories/shop-settings/home-firestore.repository.d.ts +16 -16
- package/infra/firebase/firestore/repositories/shop-settings/index.d.ts +2 -2
- package/infra/firebase/firestore/repositories/shop-settings/shop-menu-firestore.repository.d.ts +8 -8
- package/infra/firebase/firestore/repositories/shopping/buy-2-win-firestore.repository.d.ts +8 -8
- package/infra/firebase/firestore/repositories/shopping/checkout-firestore.repository.d.ts +8 -8
- package/infra/firebase/firestore/repositories/shopping/checkout-subscription-firestore.repository.d.ts +8 -8
- package/infra/firebase/firestore/repositories/shopping/coupon-firestore.repository.d.ts +12 -12
- package/infra/firebase/firestore/repositories/shopping/index.d.ts +8 -8
- package/infra/firebase/firestore/repositories/shopping/legacy-order-firestore.repository.d.ts +7 -7
- package/infra/firebase/firestore/repositories/shopping/order-firestore.repository.d.ts +8 -8
- package/infra/firebase/firestore/repositories/shopping/payment-firestore.repository.d.ts +8 -8
- package/infra/firebase/firestore/repositories/shopping/subscription-plan-firestore.repository.d.ts +8 -8
- package/infra/firebase/firestore/repositories/users/index.d.ts +9 -9
- package/infra/firebase/firestore/repositories/users/lead-firestore.repository.d.ts +8 -8
- package/infra/firebase/firestore/repositories/users/subscription-edition-firestore.repository.d.ts +13 -13
- package/infra/firebase/firestore/repositories/users/subscription-firestore.repository.d.ts +8 -8
- package/infra/firebase/firestore/repositories/users/subscription-payment-firestore.repository.d.ts +13 -13
- package/infra/firebase/firestore/repositories/users/user-address-firestore.repository.d.ts +13 -13
- package/infra/firebase/firestore/repositories/users/user-beauty-profile-firestore.repository.d.ts +13 -13
- package/infra/firebase/firestore/repositories/users/user-firestore.repository.d.ts +19 -19
- package/infra/firebase/firestore/repositories/users/user-payment-method-firestore.repository.d.ts +13 -13
- package/infra/firebase/firestore/repositories/users/user-search-firestore.repository.d.ts +9 -9
- package/infra/firebase/firestore/types/firestore-sub.repository.type.d.ts +6 -6
- package/infra/firebase/firestore/types/firestore.helpers.type.d.ts +8 -8
- package/infra/firebase/firestore/types/firestore.repository.type.d.ts +12 -12
- package/infra/firebase/firestore/types/index.d.ts +3 -3
- package/infra/firebase/index.d.ts +2 -2
- package/infra/hasura-graphql/enums/hasura-graphql-column-type.enum.d.ts +11 -11
- package/infra/hasura-graphql/enums/hasura-graphql-where.enum.d.ts +13 -13
- package/infra/hasura-graphql/enums/index.d.ts +2 -2
- package/infra/hasura-graphql/index.d.ts +4 -4
- package/infra/hasura-graphql/mixins/helpers/attribute-option.helper.d.ts +13 -13
- package/infra/hasura-graphql/mixins/helpers/filter-option.helper.d.ts +6 -6
- package/infra/hasura-graphql/mixins/helpers/graphql-field.helper.d.ts +8 -8
- package/infra/hasura-graphql/mixins/helpers/index.d.ts +3 -3
- package/infra/hasura-graphql/mixins/index.d.ts +7 -7
- package/infra/hasura-graphql/mixins/with-create-hasura-graphql.mixin.d.ts +8 -8
- package/infra/hasura-graphql/mixins/with-crud-hasura-graphql.mixin.d.ts +11 -11
- package/infra/hasura-graphql/mixins/with-delete-hasura-graphql.mixin.d.ts +7 -7
- package/infra/hasura-graphql/mixins/with-find-hasura-graphql.mixin.d.ts +31 -31
- package/infra/hasura-graphql/mixins/with-get-hasura-graphql.mixin.d.ts +24 -24
- package/infra/hasura-graphql/mixins/with-hasura-graphql.mixin.d.ts +11 -11
- package/infra/hasura-graphql/mixins/with-update-hasura-graphql.mixin.d.ts +14 -14
- package/infra/hasura-graphql/models/category-hasura-graphql.d.ts +6 -6
- package/infra/hasura-graphql/models/index.d.ts +4 -4
- package/infra/hasura-graphql/models/kit-product-hasura-graphql.d.ts +6 -6
- package/infra/hasura-graphql/models/product-hasura-graphql.d.ts +10 -10
- package/infra/hasura-graphql/models/variant-hasura-graphql.d.ts +9 -9
- package/infra/hasura-graphql/repositories/catalog/category-hasura-graphql.repository.d.ts +22 -22
- package/infra/hasura-graphql/repositories/catalog/index.d.ts +3 -3
- package/infra/hasura-graphql/repositories/catalog/product-hasura-graphql.repository.d.ts +27 -27
- package/infra/hasura-graphql/repositories/catalog/variant-hasura-graphql.repository.d.ts +14 -14
- package/infra/hasura-graphql/repositories/index.d.ts +1 -1
- package/infra/hasura-graphql/types/fields.type.d.ts +2 -2
- package/infra/hasura-graphql/types/graphql.repository.type.d.ts +21 -21
- package/infra/hasura-graphql/types/hasura-graphql-auth-options.type.d.ts +8 -8
- package/infra/hasura-graphql/types/hasura-graphql-fields.type.d.ts +36 -36
- package/infra/hasura-graphql/types/hasura-graphql-headers.type.d.ts +7 -7
- package/infra/hasura-graphql/types/index.d.ts +8 -8
- package/infra/hasura-graphql/types/nested-field.type.d.ts +7 -7
- package/infra/hasura-graphql/types/query-builder-options.type.d.ts +7 -7
- package/infra/hasura-graphql/types/variable-options.type.d.ts +9 -9
- package/infra/index.d.ts +3 -3
- package/infrab4a-connect.d.ts +5 -5
- package/package.json +1 -1
- package/utils/index.d.ts +7 -7
- package/utils/is-uuid.d.ts +1 -1
- package/utils/mixins/base.mixin.d.ts +3 -3
- package/utils/mixins/index.d.ts +3 -3
- package/utils/mixins/merge-constructor-params.type.d.ts +3 -3
- package/utils/mixins/mixin-ctor.type.d.ts +1 -1
- package/utils/parse-datetime.d.ts +1 -1
- package/utils/types/array-element.type.d.ts +1 -1
- package/utils/types/index.d.ts +2 -2
- package/utils/types/prop.type.d.ts +1 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { BasicUserData } from './types/basic-user-data.type';
|
|
2
|
-
export declare type LoginAndPasswordParams = {
|
|
3
|
-
email: string;
|
|
4
|
-
password: string;
|
|
5
|
-
};
|
|
6
|
-
export interface AuthenticationService {
|
|
7
|
-
signInWithEmailAndPassword(data: LoginAndPasswordParams): Promise<BasicUserData>;
|
|
8
|
-
signInWithGoogle(): Promise<BasicUserData>;
|
|
9
|
-
signOut(): Promise<void>;
|
|
10
|
-
signInAnonymously(): Promise<Pick<BasicUserData, 'id' | 'isAnonymous'>>;
|
|
11
|
-
sendPasswordResetEmail(email: string): Promise<void>;
|
|
12
|
-
}
|
|
1
|
+
import { BasicUserData } from './types/basic-user-data.type';
|
|
2
|
+
export declare type LoginAndPasswordParams = {
|
|
3
|
+
email: string;
|
|
4
|
+
password: string;
|
|
5
|
+
};
|
|
6
|
+
export interface AuthenticationService {
|
|
7
|
+
signInWithEmailAndPassword(data: LoginAndPasswordParams): Promise<BasicUserData>;
|
|
8
|
+
signInWithGoogle(): Promise<BasicUserData>;
|
|
9
|
+
signOut(): Promise<void>;
|
|
10
|
+
signInAnonymously(): Promise<Pick<BasicUserData, 'id' | 'isAnonymous'>>;
|
|
11
|
+
sendPasswordResetEmail(email: string): Promise<void>;
|
|
12
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './authentication.service';
|
|
2
|
-
export * from './register.service';
|
|
3
|
-
export * from './types';
|
|
1
|
+
export * from './authentication.service';
|
|
2
|
+
export * from './register.service';
|
|
3
|
+
export * from './types';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { BasicUserData } from './types/basic-user-data.type';
|
|
2
|
-
export declare type RegisterParams = Omit<BasicUserData, 'isAnonymous'> & {
|
|
3
|
-
password: string;
|
|
4
|
-
};
|
|
5
|
-
export interface RegisterService {
|
|
6
|
-
register(params: RegisterParams): Promise<BasicUserData>;
|
|
7
|
-
}
|
|
1
|
+
import { BasicUserData } from './types/basic-user-data.type';
|
|
2
|
+
export declare type RegisterParams = Omit<BasicUserData, 'isAnonymous'> & {
|
|
3
|
+
password: string;
|
|
4
|
+
};
|
|
5
|
+
export interface RegisterService {
|
|
6
|
+
register(params: RegisterParams): Promise<BasicUserData>;
|
|
7
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { User } from '../../models/user';
|
|
2
|
-
export declare type BasicUserData = Partial<Pick<User, 'id' | 'cpf' | 'email' | 'firstName' | 'lastName' | 'displayName' | 'phone' | 'birthday'>> & {
|
|
3
|
-
isAnonymous: boolean;
|
|
4
|
-
};
|
|
1
|
+
import { User } from '../../models/user';
|
|
2
|
+
export declare type BasicUserData = Partial<Pick<User, 'id' | 'cpf' | 'email' | 'firstName' | 'lastName' | 'displayName' | 'phone' | 'birthday'>> & {
|
|
3
|
+
isAnonymous: boolean;
|
|
4
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './basic-user-data.type';
|
|
1
|
+
export * from './basic-user-data.type';
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { User } from '../models';
|
|
2
|
-
import { AuthenticationService } from '../services/authentication.service';
|
|
3
|
-
import { UserRepository } from '../repositories/user.repository';
|
|
4
|
-
export declare enum SignInMethods {
|
|
5
|
-
EMAIL_PASSWORD = "email_password",
|
|
6
|
-
GOOGLE = "google"
|
|
7
|
-
}
|
|
8
|
-
declare type SignInMethod = Lowercase<keyof typeof SignInMethods>;
|
|
9
|
-
declare type SignInParams = {
|
|
10
|
-
email?: string;
|
|
11
|
-
password?: string;
|
|
12
|
-
};
|
|
13
|
-
export declare class Authentication {
|
|
14
|
-
private readonly authService;
|
|
15
|
-
private readonly userRepository;
|
|
16
|
-
constructor(authService: AuthenticationService, userRepository: UserRepository);
|
|
17
|
-
signIn({ email, password }: SignInParams, signInMethod: SignInMethod): Promise<User>;
|
|
18
|
-
private getServiceByMethod;
|
|
19
|
-
private createsUserByCredential;
|
|
20
|
-
}
|
|
21
|
-
export {};
|
|
1
|
+
import { User } from '../models';
|
|
2
|
+
import { AuthenticationService } from '../services/authentication.service';
|
|
3
|
+
import { UserRepository } from '../repositories/user.repository';
|
|
4
|
+
export declare enum SignInMethods {
|
|
5
|
+
EMAIL_PASSWORD = "email_password",
|
|
6
|
+
GOOGLE = "google"
|
|
7
|
+
}
|
|
8
|
+
declare type SignInMethod = Lowercase<keyof typeof SignInMethods>;
|
|
9
|
+
declare type SignInParams = {
|
|
10
|
+
email?: string;
|
|
11
|
+
password?: string;
|
|
12
|
+
};
|
|
13
|
+
export declare class Authentication {
|
|
14
|
+
private readonly authService;
|
|
15
|
+
private readonly userRepository;
|
|
16
|
+
constructor(authService: AuthenticationService, userRepository: UserRepository);
|
|
17
|
+
signIn({ email, password }: SignInParams, signInMethod: SignInMethod): Promise<User>;
|
|
18
|
+
private getServiceByMethod;
|
|
19
|
+
private createsUserByCredential;
|
|
20
|
+
}
|
|
21
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './authentication';
|
|
2
|
-
export * from './register';
|
|
3
|
-
export * from './signout';
|
|
4
|
-
export * from './recovery-password';
|
|
1
|
+
export * from './authentication';
|
|
2
|
+
export * from './register';
|
|
3
|
+
export * from './signout';
|
|
4
|
+
export * from './recovery-password';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { AuthenticationService } from '../services/authentication.service';
|
|
2
|
-
export declare class RecoveryPassword {
|
|
3
|
-
private readonly authService;
|
|
4
|
-
constructor(authService: AuthenticationService);
|
|
5
|
-
sendEmail(email: string): Promise<void>;
|
|
6
|
-
}
|
|
1
|
+
import { AuthenticationService } from '../services/authentication.service';
|
|
2
|
+
export declare class RecoveryPassword {
|
|
3
|
+
private readonly authService;
|
|
4
|
+
constructor(authService: AuthenticationService);
|
|
5
|
+
sendEmail(email: string): Promise<void>;
|
|
6
|
+
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { User } from '../models';
|
|
2
|
-
import { RegisterService } from '../services/register.service';
|
|
3
|
-
import { UserRepository } from '../repositories/user.repository';
|
|
4
|
-
declare type RegisterParams = Partial<User> & {
|
|
5
|
-
password: string;
|
|
6
|
-
};
|
|
7
|
-
export declare class Register {
|
|
8
|
-
private readonly registerService;
|
|
9
|
-
private readonly userRepository;
|
|
10
|
-
constructor(registerService: RegisterService, userRepository: UserRepository);
|
|
11
|
-
register(params: RegisterParams): Promise<User>;
|
|
12
|
-
}
|
|
13
|
-
export {};
|
|
1
|
+
import { User } from '../models';
|
|
2
|
+
import { RegisterService } from '../services/register.service';
|
|
3
|
+
import { UserRepository } from '../repositories/user.repository';
|
|
4
|
+
declare type RegisterParams = Partial<User> & {
|
|
5
|
+
password: string;
|
|
6
|
+
};
|
|
7
|
+
export declare class Register {
|
|
8
|
+
private readonly registerService;
|
|
9
|
+
private readonly userRepository;
|
|
10
|
+
constructor(registerService: RegisterService, userRepository: UserRepository);
|
|
11
|
+
register(params: RegisterParams): Promise<User>;
|
|
12
|
+
}
|
|
13
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { AuthenticationService } from '../services/authentication.service';
|
|
2
|
-
export declare class SignOut {
|
|
3
|
-
private readonly authService;
|
|
4
|
-
constructor(authService: AuthenticationService);
|
|
5
|
-
signOut(): Promise<void>;
|
|
6
|
-
}
|
|
1
|
+
import { AuthenticationService } from '../services/authentication.service';
|
|
2
|
+
export declare class SignOut {
|
|
3
|
+
private readonly authService;
|
|
4
|
+
constructor(authService: AuthenticationService);
|
|
5
|
+
signOut(): Promise<void>;
|
|
6
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CustomError } from 'ts-custom-error';
|
|
2
|
-
export declare class DuplicatedResultsError extends CustomError {
|
|
3
|
-
readonly message: any;
|
|
4
|
-
constructor(message: any);
|
|
5
|
-
}
|
|
1
|
+
import { CustomError } from 'ts-custom-error';
|
|
2
|
+
export declare class DuplicatedResultsError extends CustomError {
|
|
3
|
+
readonly message: any;
|
|
4
|
+
constructor(message: any);
|
|
5
|
+
}
|
package/errors/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './invalid-argument.error';
|
|
2
|
-
export * from './required-argument.error';
|
|
3
|
-
export * from './not-found.error';
|
|
4
|
-
export * from './duplicated-results.error';
|
|
1
|
+
export * from './invalid-argument.error';
|
|
2
|
+
export * from './required-argument.error';
|
|
3
|
+
export * from './not-found.error';
|
|
4
|
+
export * from './duplicated-results.error';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CustomError } from 'ts-custom-error';
|
|
2
|
-
export declare class InvalidArgumentError extends CustomError {
|
|
3
|
-
readonly message: any;
|
|
4
|
-
constructor(message: any);
|
|
5
|
-
}
|
|
1
|
+
import { CustomError } from 'ts-custom-error';
|
|
2
|
+
export declare class InvalidArgumentError extends CustomError {
|
|
3
|
+
readonly message: any;
|
|
4
|
+
constructor(message: any);
|
|
5
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CustomError } from 'ts-custom-error';
|
|
2
|
-
export declare class NotFoundError extends CustomError {
|
|
3
|
-
readonly message: any;
|
|
4
|
-
constructor(message: any);
|
|
5
|
-
}
|
|
1
|
+
import { CustomError } from 'ts-custom-error';
|
|
2
|
+
export declare class NotFoundError extends CustomError {
|
|
3
|
+
readonly message: any;
|
|
4
|
+
constructor(message: any);
|
|
5
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { CustomError } from 'ts-custom-error';
|
|
2
|
-
export declare class RequiredArgumentError extends CustomError {
|
|
3
|
-
readonly args: string[];
|
|
4
|
-
arguments: string[];
|
|
5
|
-
constructor(args: string[]);
|
|
6
|
-
}
|
|
1
|
+
import { CustomError } from 'ts-custom-error';
|
|
2
|
+
export declare class RequiredArgumentError extends CustomError {
|
|
3
|
+
readonly args: string[];
|
|
4
|
+
arguments: string[];
|
|
5
|
+
constructor(args: string[]);
|
|
6
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './models';
|
|
2
|
-
export * from './repositories';
|
|
3
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
export * from './models';
|
|
2
|
+
export * from './repositories';
|
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb25uZWN0L3NyYy9kb21haW4vY2F0YWxvZy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLFVBQVUsQ0FBQTtBQUN4QixjQUFjLGdCQUFnQixDQUFBIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9tb2RlbHMnXHJcbmV4cG9ydCAqIGZyb20gJy4vcmVwb3NpdG9yaWVzJ1xyXG4iXX0=
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { BaseModel } from '../../generic/model';
|
|
2
|
-
export class Category extends BaseModel {
|
|
3
|
-
identifierFields() {
|
|
4
|
-
return ['id'];
|
|
5
|
-
}
|
|
6
|
-
static get identifiersFields() {
|
|
7
|
-
return ['id'];
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
import { BaseModel } from '../../generic/model';
|
|
2
|
+
export class Category extends BaseModel {
|
|
3
|
+
identifierFields() {
|
|
4
|
+
return ['id'];
|
|
5
|
+
}
|
|
6
|
+
static get identifiersFields() {
|
|
7
|
+
return ['id'];
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2F0ZWdvcnkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb25uZWN0L3NyYy9kb21haW4vY2F0YWxvZy9tb2RlbHMvY2F0ZWdvcnkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBK0MsTUFBTSxxQkFBcUIsQ0FBQTtBQUs1RixNQUFNLE9BQU8sUUFBUyxTQUFRLFNBQW1CO0lBa0IvQyxnQkFBZ0I7UUFDZCxPQUFPLENBQUMsSUFBSSxDQUFDLENBQUE7SUFDZixDQUFDO0lBRUQsTUFBTSxLQUFLLGlCQUFpQjtRQUMxQixPQUFPLENBQUMsSUFBSSxDQUFDLENBQUE7SUFDZixDQUFDO0NBQ0YiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBCYXNlTW9kZWwsIEdlbmVyaWNJZGVudGlmaWVyLCBOb25GdW5jdGlvblByb3BlcnR5TmFtZXMgfSBmcm9tICcuLi8uLi9nZW5lcmljL21vZGVsJ1xyXG5pbXBvcnQgeyBTaG9wcyB9IGZyb20gJy4vZW51bXMnXHJcblxyXG5pbXBvcnQgeyBDYXRlZ29yeUNvbmRpdGlvbiwgQ2F0ZWdvcnlGaWx0ZXIgfSBmcm9tICcuL3R5cGVzJ1xyXG5cclxuZXhwb3J0IGNsYXNzIENhdGVnb3J5IGV4dGVuZHMgQmFzZU1vZGVsPENhdGVnb3J5PiB7XHJcbiAgaWQ6IHN0cmluZ1xyXG4gIGJyYW5kQ2F0ZWdvcnk6IGJvb2xlYW5cclxuICBicmFuZExvZ28/OiBzdHJpbmdcclxuICBuYW1lOiBzdHJpbmdcclxuICBzbHVnOiBzdHJpbmdcclxuICBpbWFnZT86IHN0cmluZ1xyXG4gIGJyYW5kQ2F0ZWdvcnlCYW5uZXI/OiBzdHJpbmdcclxuICBicmFuZENhdGVnb3J5QmFubmVyTW9iaWxlPzogc3RyaW5nXHJcbiAgZGVzY3JpcHRpb246IHN0cmluZ1xyXG4gIGNvbmRpdGlvbnM/OiBDYXRlZ29yeUNvbmRpdGlvblxyXG4gIHByb2R1Y3RzPzogc3RyaW5nW11cclxuICBmaWx0ZXJzPzogQ2F0ZWdvcnlGaWx0ZXJbXVxyXG4gIGNyZWF0ZWRBdD86IERhdGVcclxuICB1cGRhdGVkQXQ/OiBEYXRlXHJcbiAgc2hvcDogU2hvcHNcclxuICBwdWJsaXNoZWQ6IGJvb2xlYW5cclxuXHJcbiAgaWRlbnRpZmllckZpZWxkcygpOiBOb25GdW5jdGlvblByb3BlcnR5TmFtZXM8Q2F0ZWdvcnk+W10ge1xyXG4gICAgcmV0dXJuIFsnaWQnXVxyXG4gIH1cclxuXHJcbiAgc3RhdGljIGdldCBpZGVudGlmaWVyc0ZpZWxkcygpOiBHZW5lcmljSWRlbnRpZmllcltdIHtcclxuICAgIHJldHVybiBbJ2lkJ11cclxuICB9XHJcbn1cclxuIl19
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './shops.enum';
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
export * from './shops.enum';
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb25uZWN0L3NyYy9kb21haW4vY2F0YWxvZy9tb2RlbHMvZW51bXMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxjQUFjLENBQUEiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL3Nob3BzLmVudW0nXHJcbiJdfQ==
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export var Shops;
|
|
2
|
-
(function (Shops) {
|
|
3
|
-
Shops["MENSMARKET"] = "mensmarket";
|
|
4
|
-
Shops["GLAMSHOP"] = "Glamshop";
|
|
5
|
-
Shops["GLAMPOINTS"] = "Glampoints";
|
|
6
|
-
})(Shops || (Shops = {}));
|
|
7
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
export var Shops;
|
|
2
|
+
(function (Shops) {
|
|
3
|
+
Shops["MENSMARKET"] = "mensmarket";
|
|
4
|
+
Shops["GLAMSHOP"] = "Glamshop";
|
|
5
|
+
Shops["GLAMPOINTS"] = "Glampoints";
|
|
6
|
+
})(Shops || (Shops = {}));
|
|
7
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2hvcHMuZW51bS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2Nvbm5lY3Qvc3JjL2RvbWFpbi9jYXRhbG9nL21vZGVscy9lbnVtcy9zaG9wcy5lbnVtLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE1BQU0sQ0FBTixJQUFZLEtBSVg7QUFKRCxXQUFZLEtBQUs7SUFDZixrQ0FBeUIsQ0FBQTtJQUN6Qiw4QkFBcUIsQ0FBQTtJQUNyQixrQ0FBeUIsQ0FBQTtBQUMzQixDQUFDLEVBSlcsS0FBSyxLQUFMLEtBQUssUUFJaEIiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgZW51bSBTaG9wcyB7XHJcbiAgTUVOU01BUktFVCA9IGBtZW5zbWFya2V0YCxcclxuICBHTEFNU0hPUCA9ICdHbGFtc2hvcCcsXHJcbiAgR0xBTVBPSU5UUyA9ICdHbGFtcG9pbnRzJ1xyXG59XHJcbiJdfQ==
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export * from './category';
|
|
2
|
-
export * from './enums';
|
|
3
|
-
export * from './kit-product';
|
|
4
|
-
export * from './product';
|
|
5
|
-
export * from './types';
|
|
6
|
-
export * from './variant';
|
|
7
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
export * from './category';
|
|
2
|
+
export * from './enums';
|
|
3
|
+
export * from './kit-product';
|
|
4
|
+
export * from './product';
|
|
5
|
+
export * from './types';
|
|
6
|
+
export * from './variant';
|
|
7
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb25uZWN0L3NyYy9kb21haW4vY2F0YWxvZy9tb2RlbHMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxZQUFZLENBQUE7QUFDMUIsY0FBYyxTQUFTLENBQUE7QUFDdkIsY0FBYyxlQUFlLENBQUE7QUFDN0IsY0FBYyxXQUFXLENBQUE7QUFDekIsY0FBYyxTQUFTLENBQUE7QUFDdkIsY0FBYyxXQUFXLENBQUEiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2NhdGVnb3J5J1xyXG5leHBvcnQgKiBmcm9tICcuL2VudW1zJ1xyXG5leHBvcnQgKiBmcm9tICcuL2tpdC1wcm9kdWN0J1xyXG5leHBvcnQgKiBmcm9tICcuL3Byb2R1Y3QnXHJcbmV4cG9ydCAqIGZyb20gJy4vdHlwZXMnXHJcbmV4cG9ydCAqIGZyb20gJy4vdmFyaWFudCdcclxuIl19
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { __decorate, __metadata } from "tslib";
|
|
2
|
-
import { Type } from 'class-transformer';
|
|
3
|
-
import { BaseModel } from '../../generic/model';
|
|
4
|
-
import { Product } from './product';
|
|
5
|
-
export class KitProduct extends BaseModel {
|
|
6
|
-
static get identifiersFields() {
|
|
7
|
-
return ['productId', 'kitProducId'];
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
__decorate([
|
|
11
|
-
Type(() => Product),
|
|
12
|
-
__metadata("design:type", Product)
|
|
13
|
-
], KitProduct.prototype, "kit", void 0);
|
|
14
|
-
__decorate([
|
|
15
|
-
Type(() => Product),
|
|
16
|
-
__metadata("design:type", Product)
|
|
17
|
-
], KitProduct.prototype, "product", void 0);
|
|
18
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
import { __decorate, __metadata } from "tslib";
|
|
2
|
+
import { Type } from 'class-transformer';
|
|
3
|
+
import { BaseModel } from '../../generic/model';
|
|
4
|
+
import { Product } from './product';
|
|
5
|
+
export class KitProduct extends BaseModel {
|
|
6
|
+
static get identifiersFields() {
|
|
7
|
+
return ['productId', 'kitProducId'];
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
__decorate([
|
|
11
|
+
Type(() => Product),
|
|
12
|
+
__metadata("design:type", Product)
|
|
13
|
+
], KitProduct.prototype, "kit", void 0);
|
|
14
|
+
__decorate([
|
|
15
|
+
Type(() => Product),
|
|
16
|
+
__metadata("design:type", Product)
|
|
17
|
+
], KitProduct.prototype, "product", void 0);
|
|
18
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoia2l0LXByb2R1Y3QuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb25uZWN0L3NyYy9kb21haW4vY2F0YWxvZy9tb2RlbHMva2l0LXByb2R1Y3QudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLE9BQU8sRUFBRSxJQUFJLEVBQUUsTUFBTSxtQkFBbUIsQ0FBQTtBQUV4QyxPQUFPLEVBQUUsU0FBUyxFQUFFLE1BQU0scUJBQXFCLENBQUE7QUFFL0MsT0FBTyxFQUFFLE9BQU8sRUFBRSxNQUFNLFdBQVcsQ0FBQTtBQUluQyxNQUFNLE9BQU8sVUFBVyxTQUFRLFNBQTRDO0lBVzFFLE1BQU0sS0FBSyxpQkFBaUI7UUFDMUIsT0FBTyxDQUFDLFdBQVcsRUFBRSxhQUFhLENBQUMsQ0FBQTtJQUNyQyxDQUFDO0NBQ0Y7QUFSQztJQURDLElBQUksQ0FBQyxHQUFHLEVBQUUsQ0FBQyxPQUFPLENBQUM7OEJBQ2YsT0FBTzt1Q0FBQTtBQUdaO0lBREMsSUFBSSxDQUFDLEdBQUcsRUFBRSxDQUFDLE9BQU8sQ0FBQzs4QkFDWCxPQUFPOzJDQUFBIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgVHlwZSB9IGZyb20gJ2NsYXNzLXRyYW5zZm9ybWVyJ1xyXG5cclxuaW1wb3J0IHsgQmFzZU1vZGVsIH0gZnJvbSAnLi4vLi4vZ2VuZXJpYy9tb2RlbCdcclxuXHJcbmltcG9ydCB7IFByb2R1Y3QgfSBmcm9tICcuL3Byb2R1Y3QnXHJcblxyXG50eXBlIEtpdFByb2R1Y3RJZGVudGlmaWVycyA9ICdwcm9kdWN0SWQnIHwgJ2tpdFByb2R1Y0lkJ1xyXG5cclxuZXhwb3J0IGNsYXNzIEtpdFByb2R1Y3QgZXh0ZW5kcyBCYXNlTW9kZWw8S2l0UHJvZHVjdCwgS2l0UHJvZHVjdElkZW50aWZpZXJzPiB7XHJcbiAgcHJvZHVjdElkOiBzdHJpbmdcclxuICBraXRQcm9kdWN0SWQ6IHN0cmluZ1xyXG4gIHF1YW50aXR5OiBudW1iZXJcclxuXHJcbiAgQFR5cGUoKCkgPT4gUHJvZHVjdClcclxuICBraXQ6IFByb2R1Y3RcclxuXHJcbiAgQFR5cGUoKCkgPT4gUHJvZHVjdClcclxuICBwcm9kdWN0OiBQcm9kdWN0XHJcblxyXG4gIHN0YXRpYyBnZXQgaWRlbnRpZmllcnNGaWVsZHMoKTogS2l0UHJvZHVjdElkZW50aWZpZXJzW10ge1xyXG4gICAgcmV0dXJuIFsncHJvZHVjdElkJywgJ2tpdFByb2R1Y0lkJ11cclxuICB9XHJcbn1cclxuIl19
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { __decorate, __metadata } from "tslib";
|
|
2
|
-
import { Type } from 'class-transformer';
|
|
3
|
-
import { BaseModel } from '../../generic/model';
|
|
4
|
-
import { KitProduct } from './kit-product';
|
|
5
|
-
export class Product extends BaseModel {
|
|
6
|
-
identifierFields() {
|
|
7
|
-
return ['id'];
|
|
8
|
-
}
|
|
9
|
-
getInfoByShop(shop) {
|
|
10
|
-
var _a, _b, _c, _d, _e, _f;
|
|
11
|
-
return Object.assign(Object.assign(Object.assign({}, (((_b = (_a = this.description) === null || _a === void 0 ? void 0 : _a[shop]) === null || _b === void 0 ? void 0 : _b.description) ? { description: (_d = (_c = this.description) === null || _c === void 0 ? void 0 : _c[shop]) === null || _d === void 0 ? void 0 : _d.description } : {})), (((_e = this.price) === null || _e === void 0 ? void 0 : _e[shop]) || {})), (((_f = this.stock) === null || _f === void 0 ? void 0 : _f[shop]) || {}));
|
|
12
|
-
}
|
|
13
|
-
static get identifiersFields() {
|
|
14
|
-
return ['id'];
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
__decorate([
|
|
18
|
-
Type(() => KitProduct),
|
|
19
|
-
__metadata("design:type", Array)
|
|
20
|
-
], Product.prototype, "kitProducts", void 0);
|
|
21
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
import { __decorate, __metadata } from "tslib";
|
|
2
|
+
import { Type } from 'class-transformer';
|
|
3
|
+
import { BaseModel } from '../../generic/model';
|
|
4
|
+
import { KitProduct } from './kit-product';
|
|
5
|
+
export class Product extends BaseModel {
|
|
6
|
+
identifierFields() {
|
|
7
|
+
return ['id'];
|
|
8
|
+
}
|
|
9
|
+
getInfoByShop(shop) {
|
|
10
|
+
var _a, _b, _c, _d, _e, _f;
|
|
11
|
+
return Object.assign(Object.assign(Object.assign({}, (((_b = (_a = this.description) === null || _a === void 0 ? void 0 : _a[shop]) === null || _b === void 0 ? void 0 : _b.description) ? { description: (_d = (_c = this.description) === null || _c === void 0 ? void 0 : _c[shop]) === null || _d === void 0 ? void 0 : _d.description } : {})), (((_e = this.price) === null || _e === void 0 ? void 0 : _e[shop]) || {})), (((_f = this.stock) === null || _f === void 0 ? void 0 : _f[shop]) || {}));
|
|
12
|
+
}
|
|
13
|
+
static get identifiersFields() {
|
|
14
|
+
return ['id'];
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
__decorate([
|
|
18
|
+
Type(() => KitProduct),
|
|
19
|
+
__metadata("design:type", Array)
|
|
20
|
+
], Product.prototype, "kitProducts", void 0);
|
|
21
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJvZHVjdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2Nvbm5lY3Qvc3JjL2RvbWFpbi9jYXRhbG9nL21vZGVscy9wcm9kdWN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxPQUFPLEVBQUUsSUFBSSxFQUFFLE1BQU0sbUJBQW1CLENBQUE7QUFDeEMsT0FBTyxFQUFFLFNBQVMsRUFBK0MsTUFBTSxxQkFBcUIsQ0FBQTtBQUc1RixPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sZUFBZSxDQUFBO0FBSTFDLE1BQU0sT0FBTyxPQUFRLFNBQVEsU0FBa0I7SUFrQzdDLGdCQUFnQjtRQUNkLE9BQU8sQ0FBQyxJQUFJLENBQUMsQ0FBQTtJQUNmLENBQUM7SUFFRCxhQUFhLENBQUMsSUFBVzs7UUFDdkIscURBQ0ssQ0FBQyxDQUFBLE1BQUEsTUFBQSxJQUFJLENBQUMsV0FBVywwQ0FBRyxJQUFJLENBQUMsMENBQUUsV0FBVyxFQUFDLENBQUMsQ0FBQyxFQUFFLFdBQVcsRUFBRSxNQUFBLE1BQUEsSUFBSSxDQUFDLFdBQVcsMENBQUcsSUFBSSxDQUFDLDBDQUFFLFdBQVcsRUFBRSxDQUFDLENBQUMsQ0FBQyxFQUFFLENBQUMsR0FDckcsQ0FBQyxDQUFBLE1BQUEsSUFBSSxDQUFDLEtBQUssMENBQUcsSUFBSSxDQUFDLEtBQUksRUFBRSxDQUFDLEdBQzFCLENBQUMsQ0FBQSxNQUFBLElBQUksQ0FBQyxLQUFLLDBDQUFHLElBQUksQ0FBQyxLQUFJLEVBQUUsQ0FBQyxFQUM5QjtJQUNILENBQUM7SUFFRCxNQUFNLEtBQUssaUJBQWlCO1FBQzFCLE9BQU8sQ0FBQyxJQUFJLENBQUMsQ0FBQTtJQUNmLENBQUM7Q0FDRjtBQWpCQztJQURDLElBQUksQ0FBQyxHQUFHLEVBQUUsQ0FBQyxVQUFVLENBQUM7OzRDQUNHIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgVHlwZSB9IGZyb20gJ2NsYXNzLXRyYW5zZm9ybWVyJ1xyXG5pbXBvcnQgeyBCYXNlTW9kZWwsIEdlbmVyaWNJZGVudGlmaWVyLCBOb25GdW5jdGlvblByb3BlcnR5TmFtZXMgfSBmcm9tICcuLi8uLi9nZW5lcmljL21vZGVsJ1xyXG5cclxuaW1wb3J0IHsgU2hvcHMgfSBmcm9tICcuL2VudW1zL3Nob3BzLmVudW0nXHJcbmltcG9ydCB7IEtpdFByb2R1Y3QgfSBmcm9tICcuL2tpdC1wcm9kdWN0J1xyXG5pbXBvcnQgeyBQcm9kdWN0UmV2aWV3LCBTaG9wRGVzY3JpcHRpb24sIFNob3BQcmljZSwgU2hvcHNEZXNjcmlwdGlvbiwgU2hvcHNQcmljZSwgU3RvY2sgfSBmcm9tICcuL3R5cGVzJ1xyXG5pbXBvcnQgeyBWYXJpYW50IH0gZnJvbSAnLi92YXJpYW50J1xyXG5cclxuZXhwb3J0IGNsYXNzIFByb2R1Y3QgZXh0ZW5kcyBCYXNlTW9kZWw8UHJvZHVjdD4ge1xyXG4gIGlkOiBzdHJpbmdcclxuICBuYW1lOiBzdHJpbmdcclxuICBzbHVnOiBzdHJpbmdcclxuICBzaG9wQXZhaWxhYmlsaXR5OiBTaG9wc1tdXHJcbiAgZGVzY3JpcHRpb246IFNob3BzRGVzY3JpcHRpb25cclxuICBza3U6IHN0cmluZ1xyXG4gIHByaWNlOiBTaG9wc1ByaWNlXHJcbiAgaGFzVmFyaWFudHM6IGJvb2xlYW5cclxuICBOQ006IHN0cmluZ1xyXG4gIEVBTjogc3RyaW5nXHJcbiAgQ0VTVDogc3RyaW5nXHJcbiAgd2VpZ2h0OiBudW1iZXJcclxuICBzdG9jazogU3RvY2tcclxuICBjb3N0UHJpY2U6IG51bWJlclxyXG4gIGltYWdlcz86IHN0cmluZ1tdXHJcbiAgbWluaWF0dXJlcz86IHN0cmluZ1tdXHJcbiAgcHVibGlzaGVkOiBib29sZWFuXHJcbiAgcHVibGlzaGVkR2xhbTogYm9vbGVhblxyXG4gIGNyZWF0ZWRBdD86IERhdGVcclxuICB1cGRhdGVkQXQ/OiBEYXRlXHJcbiAgYnJhbmQ6IHN0cmluZ1xyXG4gIHRhZ3M/OiBzdHJpbmdbXVxyXG4gIHR5cGU/OiBzdHJpbmdcclxuICBjYXRlZ29yaWVzPzogc3RyaW5nW11cclxuICByZXZpZXdzPzogUHJvZHVjdFJldmlld1tdXHJcbiAgdmFyaWFudD86IFZhcmlhbnRcclxuICB2aWRlbz86IHN0cmluZ1xyXG4gIGlzS2l0PzogYm9vbGVhblxyXG4gIHJhdGU/OiBudW1iZXJcclxuXHJcbiAgQFR5cGUoKCkgPT4gS2l0UHJvZHVjdClcclxuICBraXRQcm9kdWN0cz86IEtpdFByb2R1Y3RbXVxyXG5cclxuICBpZGVudGlmaWVyRmllbGRzKCk6IE5vbkZ1bmN0aW9uUHJvcGVydHlOYW1lczxQcm9kdWN0PltdIHtcclxuICAgIHJldHVybiBbJ2lkJ11cclxuICB9XHJcblxyXG4gIGdldEluZm9CeVNob3Aoc2hvcDogU2hvcHMpOiBTaG9wRGVzY3JpcHRpb24gJiBTaG9wUHJpY2UgJiBTdG9jayB7XHJcbiAgICByZXR1cm4ge1xyXG4gICAgICAuLi4odGhpcy5kZXNjcmlwdGlvbj8uW3Nob3BdPy5kZXNjcmlwdGlvbiA/IHsgZGVzY3JpcHRpb246IHRoaXMuZGVzY3JpcHRpb24/LltzaG9wXT8uZGVzY3JpcHRpb24gfSA6IHt9KSxcclxuICAgICAgLi4uKHRoaXMucHJpY2U/LltzaG9wXSB8fCB7fSksXHJcbiAgICAgIC4uLih0aGlzLnN0b2NrPy5bc2hvcF0gfHwge30pLFxyXG4gICAgfVxyXG4gIH1cclxuXHJcbiAgc3RhdGljIGdldCBpZGVudGlmaWVyc0ZpZWxkcygpOiBHZW5lcmljSWRlbnRpZmllcltdIHtcclxuICAgIHJldHVybiBbJ2lkJ11cclxuICB9XHJcbn1cclxuIl19
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {};
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
export {};
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2F0ZWdvcnktY29uZGl0aW9uLnR5cGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb25uZWN0L3NyYy9kb21haW4vY2F0YWxvZy9tb2RlbHMvdHlwZXMvY2F0ZWdvcnktY29uZGl0aW9uLnR5cGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCB0eXBlIENhdGVnb3J5Q29uZGl0aW9uID0ge1xyXG4gIHRhZ3M/OiBzdHJpbmdbXVxyXG4gIGJyYW5kPzogc3RyaW5nXHJcbn1cclxuIl19
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {};
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
export {};
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2F0ZWdvcnktZmlsdGVyLnR5cGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb25uZWN0L3NyYy9kb21haW4vY2F0YWxvZy9tb2RlbHMvdHlwZXMvY2F0ZWdvcnktZmlsdGVyLnR5cGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCB0eXBlIENhdGVnb3J5RmlsdGVyID0ge1xyXG4gIG5hbWU/OiBzdHJpbmdcclxuICB0YWdzPzogc3RyaW5nW11cclxufVxyXG4iXX0=
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export * from './shops-description.type';
|
|
2
|
-
export * from './shops-price.type';
|
|
3
|
-
export * from './stock.type';
|
|
4
|
-
export * from './category-condition.type';
|
|
5
|
-
export * from './category-filter.type';
|
|
6
|
-
export * from './product-review.type';
|
|
7
|
-
export * from './variant-grade.type';
|
|
8
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
export * from './shops-description.type';
|
|
2
|
+
export * from './shops-price.type';
|
|
3
|
+
export * from './stock.type';
|
|
4
|
+
export * from './category-condition.type';
|
|
5
|
+
export * from './category-filter.type';
|
|
6
|
+
export * from './product-review.type';
|
|
7
|
+
export * from './variant-grade.type';
|
|
8
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb25uZWN0L3NyYy9kb21haW4vY2F0YWxvZy9tb2RlbHMvdHlwZXMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYywwQkFBMEIsQ0FBQTtBQUN4QyxjQUFjLG9CQUFvQixDQUFBO0FBQ2xDLGNBQWMsY0FBYyxDQUFBO0FBQzVCLGNBQWMsMkJBQTJCLENBQUE7QUFDekMsY0FBYyx3QkFBd0IsQ0FBQTtBQUN0QyxjQUFjLHVCQUF1QixDQUFBO0FBQ3JDLGNBQWMsc0JBQXNCLENBQUEiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL3Nob3BzLWRlc2NyaXB0aW9uLnR5cGUnXHJcbmV4cG9ydCAqIGZyb20gJy4vc2hvcHMtcHJpY2UudHlwZSdcclxuZXhwb3J0ICogZnJvbSAnLi9zdG9jay50eXBlJ1xyXG5leHBvcnQgKiBmcm9tICcuL2NhdGVnb3J5LWNvbmRpdGlvbi50eXBlJ1xyXG5leHBvcnQgKiBmcm9tICcuL2NhdGVnb3J5LWZpbHRlci50eXBlJ1xyXG5leHBvcnQgKiBmcm9tICcuL3Byb2R1Y3QtcmV2aWV3LnR5cGUnXHJcbmV4cG9ydCAqIGZyb20gJy4vdmFyaWFudC1ncmFkZS50eXBlJ1xyXG4iXX0=
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {};
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
export {};
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJvZHVjdC1yZXZpZXcudHlwZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2Nvbm5lY3Qvc3JjL2RvbWFpbi9jYXRhbG9nL21vZGVscy90eXBlcy9wcm9kdWN0LXJldmlldy50eXBlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBTaG9wcyB9IGZyb20gJy4uL2VudW1zL3Nob3BzLmVudW0nXHJcblxyXG5leHBvcnQgdHlwZSBQcm9kdWN0UmV2aWV3ID0ge1xyXG4gIGlkPzogc3RyaW5nXHJcbiAgc2hvcDogU2hvcHNcclxuICByYXRlOiBudW1iZXJcclxuICBhdXRob3I/OiBzdHJpbmdcclxuICBlbWFpbD86IHN0cmluZ1xyXG4gIGxvY2F0aW9uPzogc3RyaW5nXHJcbiAgcmV2aWV3Pzogc3RyaW5nXHJcbiAgc3RhdHVzPzogYm9vbGVhblxyXG4gIHRpdGxlPzogc3RyaW5nXHJcbiAgcGVyc29uSWQ/OiBudW1iZXJcclxuICBwb2ludHM/OiBudW1iZXJcclxuICBvcmRlcklkPzogc3RyaW5nXHJcbiAgY3JlYXRlZEF0PzogRGF0ZVxyXG4gIHVwZGF0ZWRBdD86IERhdGVcclxufVxyXG4iXX0=
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {};
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
export {};
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2hvcHMtZGVzY3JpcHRpb24udHlwZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2Nvbm5lY3Qvc3JjL2RvbWFpbi9jYXRhbG9nL21vZGVscy90eXBlcy9zaG9wcy1kZXNjcmlwdGlvbi50eXBlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBTaG9wcyB9IGZyb20gJy4uL2VudW1zL3Nob3BzLmVudW0nXHJcblxyXG5leHBvcnQgdHlwZSBTaG9wRGVzY3JpcHRpb24gPSB7XHJcbiAgZGVzY3JpcHRpb246IHN0cmluZ1xyXG59XHJcblxyXG5leHBvcnQgdHlwZSBTaG9wc0Rlc2NyaXB0aW9uID0ge1xyXG4gIFtLIGluIFNob3BzXT86IFNob3BEZXNjcmlwdGlvblxyXG59XHJcbiJdfQ==
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {};
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
export {};
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2hvcHMtcHJpY2UudHlwZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2Nvbm5lY3Qvc3JjL2RvbWFpbi9jYXRhbG9nL21vZGVscy90eXBlcy9zaG9wcy1wcmljZS50eXBlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBTaG9wcyB9IGZyb20gJy4uL2VudW1zL3Nob3BzLmVudW0nXHJcblxyXG5leHBvcnQgdHlwZSBTaG9wUHJpY2UgPSB7XHJcbiAgcHJpY2U6IG51bWJlclxyXG4gIGZ1bGxQcmljZTogbnVtYmVyXHJcbiAgc3Vic2NyaWJlckRpc2NvdW50UGVyY2VudGFnZT86IG51bWJlclxyXG4gIHN1YnNjcmliZXJQcmljZT86IG51bWJlclxyXG59XHJcblxyXG5leHBvcnQgdHlwZSBTaG9wc1ByaWNlID0ge1xyXG4gIFtLIGluIFNob3BzXT86IFNob3BQcmljZVxyXG59XHJcbiJdfQ==
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {};
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
export {};
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RvY2sudHlwZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2Nvbm5lY3Qvc3JjL2RvbWFpbi9jYXRhbG9nL21vZGVscy90eXBlcy9zdG9jay50eXBlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgdHlwZSBTdG9jayA9IHtcclxuICBxdWFudGl0eTogbnVtYmVyXHJcbn1cclxuIl19
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {};
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
export {};
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmFyaWFudC1ncmFkZS50eXBlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY29ubmVjdC9zcmMvZG9tYWluL2NhdGFsb2cvbW9kZWxzL3R5cGVzL3ZhcmlhbnQtZ3JhZGUudHlwZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IHR5cGUgVmFyaWFudEdyYWRlID0ge1xyXG4gIHRpdGxlOiBzdHJpbmdcclxuICB2YWx1ZTogc3RyaW5nXHJcbn1cclxuIl19
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { BaseModel } from '../../generic/model';
|
|
2
|
-
export class Variant extends BaseModel {
|
|
3
|
-
identifierFields() {
|
|
4
|
-
return ['id'];
|
|
5
|
-
}
|
|
6
|
-
static get identifiersFields() {
|
|
7
|
-
return ['id', 'productId'];
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
import { BaseModel } from '../../generic/model';
|
|
2
|
+
export class Variant extends BaseModel {
|
|
3
|
+
identifierFields() {
|
|
4
|
+
return ['id'];
|
|
5
|
+
}
|
|
6
|
+
static get identifiersFields() {
|
|
7
|
+
return ['id', 'productId'];
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmFyaWFudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2Nvbm5lY3Qvc3JjL2RvbWFpbi9jYXRhbG9nL21vZGVscy92YXJpYW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQTRCLE1BQU0scUJBQXFCLENBQUE7QUFNekUsTUFBTSxPQUFPLE9BQVEsU0FBUSxTQUE2QztJQWF4RSxnQkFBZ0I7UUFDZCxPQUFPLENBQUMsSUFBSSxDQUFDLENBQUE7SUFDZixDQUFDO0lBRUQsTUFBTSxLQUFLLGlCQUFpQjtRQUMxQixPQUFPLENBQUMsSUFBSSxFQUFFLFdBQVcsQ0FBQyxDQUFBO0lBQzVCLENBQUM7Q0FDRiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IEJhc2VNb2RlbCwgTm9uRnVuY3Rpb25Qcm9wZXJ0eU5hbWVzIH0gZnJvbSAnLi4vLi4vZ2VuZXJpYy9tb2RlbCdcclxuXHJcbmltcG9ydCB7IFNob3BzUHJpY2UsIFN0b2NrLCBWYXJpYW50R3JhZGUgfSBmcm9tICcuL3R5cGVzJ1xyXG5cclxuZXhwb3J0IHR5cGUgUHJvZHVjdFZhcmlhbnRJZGVudGlmaWVycyA9ICdpZCcgfCAncHJvZHVjdElkJ1xyXG5cclxuZXhwb3J0IGNsYXNzIFZhcmlhbnQgZXh0ZW5kcyBCYXNlTW9kZWw8VmFyaWFudCwgUHJvZHVjdFZhcmlhbnRJZGVudGlmaWVycz4ge1xyXG4gIGlkOiBzdHJpbmdcclxuICBwcm9kdWN0SWQ6IHN0cmluZ1xyXG4gIHNrdTogc3RyaW5nXHJcbiAgcHJpY2U6IFNob3BzUHJpY2VcclxuICBFQU46IHN0cmluZ1xyXG4gIHN0b2NrOiBTdG9ja1xyXG4gIGdyYWRlPzogVmFyaWFudEdyYWRlW11cclxuICBjb3N0UHJpY2U6IG51bWJlclxyXG4gIHdlaWdodDogbnVtYmVyXHJcbiAgY3JlYXRlZEF0PzogRGF0ZVxyXG4gIHVwZGF0ZWRBdD86IERhdGVcclxuXHJcbiAgaWRlbnRpZmllckZpZWxkcygpOiBOb25GdW5jdGlvblByb3BlcnR5TmFtZXM8VmFyaWFudD5bXSB7XHJcbiAgICByZXR1cm4gWydpZCddXHJcbiAgfVxyXG5cclxuICBzdGF0aWMgZ2V0IGlkZW50aWZpZXJzRmllbGRzKCk6IFByb2R1Y3RWYXJpYW50SWRlbnRpZmllcnNbXSB7XHJcbiAgICByZXR1cm4gWydpZCcsICdwcm9kdWN0SWQnXVxyXG4gIH1cclxufVxyXG4iXX0=
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {};
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
export {};
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2F0ZWdvcnkucmVwb3NpdG9yeS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2Nvbm5lY3Qvc3JjL2RvbWFpbi9jYXRhbG9nL3JlcG9zaXRvcmllcy9jYXRlZ29yeS5yZXBvc2l0b3J5LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBDYXRlZ29yeSB9IGZyb20gJy4uL21vZGVscy9jYXRlZ29yeSdcclxuaW1wb3J0IHsgQ3J1ZFJlcG9zaXRvcnkgfSBmcm9tICcuLi8uLi9nZW5lcmljL3JlcG9zaXRvcnkvY3J1ZC5yZXBvc2l0b3J5J1xyXG5pbXBvcnQgeyBTaG9wcyB9IGZyb20gJy4uL21vZGVscy9lbnVtcy9zaG9wcy5lbnVtJ1xyXG5pbXBvcnQgeyBQcm9kdWN0IH0gZnJvbSAnLi4vbW9kZWxzJ1xyXG5cclxuZXhwb3J0IGludGVyZmFjZSBDYXRlZ29yeVJlcG9zaXRvcnkgZXh0ZW5kcyBDcnVkUmVwb3NpdG9yeTxDYXRlZ29yeT4ge1xyXG4gIGdldENhdGVnb3J5QnlTbHVnKHNsdWc6IHN0cmluZywgc2hvcDogU2hvcHMpOiBQcm9taXNlPENhdGVnb3J5PlxyXG4gIGdldENhdGVnb3JpZXNGb3JIb21lKGNhdGVnb3J5SWRzOiBzdHJpbmdbXSwgbGltaXQ/OiBudW1iZXIpOiBQcm9taXNlPHsgY2F0ZWdvcnk6IENhdGVnb3J5OyBwcm9kdWN0czogUHJvZHVjdFtdIH1bXT5cclxuICBtb3VudENhdGVnb3J5KGNhdGVnb3J5OiBDYXRlZ29yeSwgb3B0aW9ucz86IHsgbGltaXQ/OiBudW1iZXI7IGhhc1N0b2NrPzogYm9vbGVhbiB9KTogUHJvbWlzZTxQcm9kdWN0W10+XHJcbn1cclxuIl19
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from './category.repository';
|
|
2
|
-
export * from './product.repository';
|
|
3
|
-
export * from './subscription-product.repository';
|
|
4
|
-
export * from './variant.repository';
|
|
5
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
export * from './category.repository';
|
|
2
|
+
export * from './product.repository';
|
|
3
|
+
export * from './subscription-product.repository';
|
|
4
|
+
export * from './variant.repository';
|
|
5
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb25uZWN0L3NyYy9kb21haW4vY2F0YWxvZy9yZXBvc2l0b3JpZXMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyx1QkFBdUIsQ0FBQTtBQUNyQyxjQUFjLHNCQUFzQixDQUFBO0FBQ3BDLGNBQWMsbUNBQW1DLENBQUE7QUFDakQsY0FBYyxzQkFBc0IsQ0FBQSIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vY2F0ZWdvcnkucmVwb3NpdG9yeSdcclxuZXhwb3J0ICogZnJvbSAnLi9wcm9kdWN0LnJlcG9zaXRvcnknXHJcbmV4cG9ydCAqIGZyb20gJy4vc3Vic2NyaXB0aW9uLXByb2R1Y3QucmVwb3NpdG9yeSdcclxuZXhwb3J0ICogZnJvbSAnLi92YXJpYW50LnJlcG9zaXRvcnknXHJcbiJdfQ==
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {};
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
export {};
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJvZHVjdC5yZXBvc2l0b3J5LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY29ubmVjdC9zcmMvZG9tYWluL2NhdGFsb2cvcmVwb3NpdG9yaWVzL3Byb2R1Y3QucmVwb3NpdG9yeS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgQ3J1ZFJlcG9zaXRvcnkgfSBmcm9tICcuLi8uLi9nZW5lcmljL3JlcG9zaXRvcnkvY3J1ZC5yZXBvc2l0b3J5JztcclxuaW1wb3J0IHsgUHJvZHVjdCwgUHJvZHVjdFJldmlldyB9IGZyb20gJy4uL21vZGVscyc7XHJcblxyXG5leHBvcnQgdHlwZSBSZXZpZXdTdGF0dXNQYXJhbXMgPSAncGVuZGluZycgfCAnYXBwcm92ZWQnIHwgJ3JlamVjdGVkJ1xyXG5leHBvcnQgdHlwZSBSZXZpZXdXaXRoUHJvZHVjdERhdGEgPSBQcm9kdWN0UmV2aWV3ICYgeyBwcm9kdWN0SWQ6IHN0cmluZzsgcHJvZHVjdE5hbWU6IHN0cmluZzsgcHJvZHVjdFNrdTogc3RyaW5nIH1cclxuXHJcbmV4cG9ydCBpbnRlcmZhY2UgUHJvZHVjdFJlcG9zaXRvcnkgZXh0ZW5kcyBDcnVkUmVwb3NpdG9yeTxQcm9kdWN0PiB7XHJcbiAgZ2V0QnlTbHVnKHNsdWc6IHN0cmluZyk6IFByb21pc2U8UHJvZHVjdD5cclxuICBmZXRjaFJldmlld3Moc3RhdHVzOiBSZXZpZXdTdGF0dXNQYXJhbXMpOiBQcm9taXNlPFJldmlld1dpdGhQcm9kdWN0RGF0YVtdPlxyXG59XHJcbiJdfQ==
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {};
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
export {};
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3Vic2NyaXB0aW9uLXByb2R1Y3QucmVwb3NpdG9yeS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2Nvbm5lY3Qvc3JjL2RvbWFpbi9jYXRhbG9nL3JlcG9zaXRvcmllcy9zdWJzY3JpcHRpb24tcHJvZHVjdC5yZXBvc2l0b3J5LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBDcnVkUmVwb3NpdG9yeSB9IGZyb20gJy4uLy4uL2dlbmVyaWMvcmVwb3NpdG9yeS9jcnVkLnJlcG9zaXRvcnknXHJcbmltcG9ydCB7IFByb2R1Y3QgfSBmcm9tICcuLi9tb2RlbHMnXHJcblxyXG5leHBvcnQgaW50ZXJmYWNlIFN1YnNjcmlwdGlvblByb2R1Y3RSZXBvc2l0b3J5IGV4dGVuZHMgQ3J1ZFJlcG9zaXRvcnk8UHJvZHVjdD4ge31cclxuIl19
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {};
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
export {};
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmFyaWFudC5yZXBvc2l0b3J5LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY29ubmVjdC9zcmMvZG9tYWluL2NhdGFsb2cvcmVwb3NpdG9yaWVzL3ZhcmlhbnQucmVwb3NpdG9yeS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgQ3J1ZFJlcG9zaXRvcnkgfSBmcm9tICcuLi8uLi9nZW5lcmljL3JlcG9zaXRvcnkvY3J1ZC5yZXBvc2l0b3J5J1xyXG5pbXBvcnQgeyBWYXJpYW50IH0gZnJvbSAnLi4vbW9kZWxzL3ZhcmlhbnQnXHJcblxyXG5leHBvcnQgaW50ZXJmYWNlIFZhcmlhbnRSZXBvc2l0b3J5IGV4dGVuZHMgQ3J1ZFJlcG9zaXRvcnk8VmFyaWFudD4ge31cclxuIl19
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './model';
|
|
2
|
-
export * from './repository';
|
|
3
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
export * from './model';
|
|
2
|
+
export * from './repository';
|
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb25uZWN0L3NyYy9kb21haW4vZ2VuZXJpYy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLFNBQVMsQ0FBQTtBQUN2QixjQUFjLGNBQWMsQ0FBQSIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vbW9kZWwnXHJcbmV4cG9ydCAqIGZyb20gJy4vcmVwb3NpdG9yeSdcclxuIl19
|